[package]
edition = "2021"
rust-version = "1.88"
name = "newt-core"
version = "0.7.1"
authors = ["Shawn Hartsock <hartsock@users.noreply.github.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Newt-Agent core types, errors, and the NeMoCode-style tier router"
homepage = "https://github.com/hartsock/newt-agent"
readme = "README.md"
keywords = [
"newt",
"agent",
"router",
"llm",
"nemo",
]
categories = [
"api-bindings",
"text-processing",
]
license = "Apache-2.0"
repository = "https://github.com/hartsock/newt-agent"
[features]
default = ["markdown"]
markdown = [
"dep:pulldown-cmark",
"dep:unicode-width",
]
markdown-syntect = [
"markdown",
"dep:syntect",
]
markdown-table-formatter = ["dep:markdown-table-formatter"]
pyo3 = ["dep:pyo3"]
[lib]
name = "newt_core"
path = "src/lib.rs"
[[example]]
name = "render_md"
path = "examples/render_md.rs"
[[test]]
name = "cowork_acceptance"
path = "tests/cowork_acceptance.rs"
[[test]]
name = "router_integration"
path = "tests/router_integration.rs"
[[test]]
name = "store"
path = "tests/store.rs"
[[test]]
name = "workspace_key"
path = "tests/workspace_key.rs"
[dependencies.agent-bridle]
version = "0.7"
features = [
"shell",
"web",
"host-shell",
"os-sandbox",
"brush",
"carried-coreutils",
]
[dependencies.agent-mesh-protocol]
version = "0.6"
[dependencies.anyhow]
version = "1.0"
[dependencies.async-trait]
version = "0.1"
[dependencies.base64]
version = "0.22"
[dependencies.blake3]
version = "1"
[dependencies.chrono]
version = "0.4"
features = ["serde"]
[dependencies.crossterm]
version = "0.28"
[dependencies.ignore]
version = "0.4"
[dependencies.markdown-table-formatter]
version = "0.3"
optional = true
[dependencies.newt-skills]
version = "=0.7.1"
[dependencies.pulldown-cmark]
version = "0.12"
optional = true
default-features = false
[dependencies.pyo3]
version = "0.28"
features = ["macros"]
optional = true
default-features = false
[dependencies.regex]
version = "1"
[dependencies.reqwest]
version = "0.12"
features = [
"rustls-tls-native-roots",
"json",
"stream",
]
default-features = false
[dependencies.rusqlite]
version = "0.31"
features = ["bundled"]
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.serde_yaml]
version = "0.9"
[dependencies.syntect]
version = "5"
features = [
"parsing",
"default-syntaxes",
"default-themes",
"html",
"yaml-load",
"dump-load",
"dump-create",
"regex-fancy",
]
optional = true
default-features = false
[dependencies.thiserror]
version = "2.0"
[dependencies.tokio]
version = "1"
features = ["full"]
[dependencies.toml]
version = "1.0"
[dependencies.toml_edit]
version = "0.25"
[dependencies.tracing]
version = "0.1"
[dependencies.unicode-width]
version = "0.2"
optional = true
[dependencies.uuid]
version = "1"
features = [
"v4",
"v5",
"serde",
]
[dev-dependencies.rusqlite]
version = "0.31"
features = ["bundled"]
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.tokio]
version = "1"
features = ["full"]
[dev-dependencies.wiremock]
version = "0.6"
[lints.clippy]
explicit_iter_loop = "warn"
flat_map_option = "warn"
implicit_clone = "warn"
needless_for_each = "warn"
semicolon_if_nothing_returned = "warn"
uninlined_format_args = "warn"
use_self = "warn"
useless_conversion = "warn"