vtcode-core 0.97.2

Core library for VT Code - a Rust-based terminal coding agent
[package]
name = "vtcode-core"
version.workspace = true
edition.workspace = true
rust-version = "1.88"
authors = ["Vinh Nguyen <vinhnguyen2308@gmail.com>"]
description = "Core library for VT Code - a Rust-based terminal coding agent"
license.workspace = true
readme = "README.md"
homepage = "https://github.com/vinhnx/vtcode"
repository = "https://github.com/vinhnx/vtcode"
documentation = "https://docs.rs/vtcode-core"
keywords = ["ai", "coding", "agent", "llm", "rust"]
categories = ["development-tools", "api-bindings"]
include = [
    "src/",
    "tests/",
    "examples/",
    "benches/",
    "build.rs",
    "Cargo.toml",
    "README.md",
    "LICENSE",
    "embedded_assets_source/",
    "templates/",
]
[dependencies]
anyhow = { workspace = true }
hashbrown = { workspace = true }
clap = { workspace = true, features = ["derive"] }
reqwest = { workspace = true }
rmcp-reqwest = { package = "reqwest", version = "0.13.2", default-features = false, features = [
    "json",
    "rustls",
    "stream",
] }
serde = { workspace = true }
serde_json = { workspace = true }
json5 = "1.3"
toml = { workspace = true }
toml_edit = "0.25"
tokio = { workspace = true, features = [
    "fs",
    "io-util",
    "macros",
    "rt-multi-thread",
    "sync",
    "process",
] }
tokio-util = { workspace = true, features = ["codec"] }
async-process = "2.2"
futures = { workspace = true }
futures-lite = "2.3"
async-stream = "0.3"
base64 = { workspace = true }
walkdir = { workspace = true }
glob = "0.3"
ignore = { workspace = true }
thiserror = { workspace = true }
dialoguer = { workspace = true }
regex = { workspace = true }
shell-words = { workspace = true }
tree-sitter = "0.26"
tree-sitter-bash = "0.25"
tree-sitter-go = "0.25.0"
tree-sitter-java = "0.23.5"
tree-sitter-javascript = "0.25.0"
tree-sitter-python = "0.25.0"
tree-sitter-rust = "0.24.2"
tree-sitter-typescript = "0.23.2"
indexmap = { workspace = true }
tempfile = { workspace = true }
dunce = "1.0"
include_dir = "0.7"
once_cell = { workspace = true }
parking_lot = "0.12"
sha2 = { workspace = true }
lru = "0.16"
num_cpus = { workspace = true }
chrono = { workspace = true } # For timestamp handling in CLI
iana-time-zone = "0.1"
humantime = "2.1"
terminal_size = "0.4.4"
async-trait = { workspace = true }
bytes = "1.11"
# Home directory detection
dirs = { workspace = true }
# YAML support
serde-saphyr = { workspace = true }
# Zip support for skill packaging
zip = { version = "8.4", default-features = false, features = ["deflate"] }
flate2 = "1.1"
tar = "0.4"
# Semantic versioning for Ollama version detection (Codex pattern)
semver = { workspace = true }
tracing = { workspace = true }
tracing-subscriber = { workspace = true }
# ANSI styling
anstyle = { workspace = true }
anstream = "1.0"
colorchoice-clap = "1.0"
quick_cache = "0.6"
roff = "1.1"
unicode-width = { workspace = true }
crossterm = { workspace = true, features = ["event-stream"] }
nix = { version = "0.31", features = ["user", "signal", "poll", "term"] }
ratatui = { workspace = true, features = [
    "crossterm",
    "unstable-rendered-line-info",
    "unstable-widget-ref",
] }

perg = "0.8.0"
nucleo-matcher = "0.3"
vtcode-file-search = { version = "0.97.2", path = "../vtcode-file-search" }
catppuccin = { version = "2.7", default-features = false }
rig = { package = "rig-core", version = "0.23.1", default-features = false, features = [
    "reqwest-rustls",
] }
vt100 = "0.16.2"
portable-pty = "0.9.0"
ansi-to-tui = "8.0.1"
vtcode-commons = { path = "../vtcode-commons", version = "0.97.2" }
vtcode-exec-events = { path = "../vtcode-exec-events", version = "0.97.2" }
vtcode-auth = { path = "../vtcode-auth", version = "0.97.2" }
vtcode-config = { path = "../vtcode-config", version = "0.97.2" }
vtcode-theme = { path = "../vtcode-theme", version = "0.97.2" }
vtcode-tui = { path = "../vtcode-tui", version = "0.97.2" }
vtcode-collaboration-tool-specs = { path = "../vtcode-collaboration-tool-specs", version = "0.97.2" }
vtcode-utility-tool-specs = { path = "../vtcode-utility-tool-specs", version = "0.97.2" }
vtcode-markdown-store = { path = "../vtcode-markdown-store", version = "0.97.2" }
vtcode-indexer = { path = "../vtcode-indexer", version = "0.97.2" }
vtcode-bash-runner = { path = "../vtcode-bash-runner", version = "0.97.2" }
vtcode-terminal-detection = { path = "../vtcode-terminal-detection", version = "0.97.2" }
vtcode-ghostty-vt-sys = { path = "../vtcode-ghostty-vt-sys", version = "0.97.2" }

# Schema generation
schemars = { workspace = true, optional = true }

# MCP (Model Context Protocol) support
# Phase 1: Upgrade to 0.9.0+ for improved transport and lifecycle management
rmcp = { version = "1.3", features = [
    "client",
    "transport-child-process",
    "transport-streamable-http-client-reqwest",
] }
openai-harmony = "0.0.8"
url = { workspace = true }
jsonschema = "0.45"
uuid = { workspace = true, features = ["v4", "fast-rng", "serde"] }
which = "8.0.2"
textwrap = "0.16"
editor-command = "2.0"
rustc-hash = { workspace = true }
arc-swap = "1.9"
libloading = { workspace = true }
webbrowser = "1.2"

notify = "8.2.0"
notify-rust = { version = "4.12", optional = true }
ring = { workspace = true }

# A2A (Agent2Agent) Protocol HTTP server support
axum = { version = "0.8", features = ["json", "macros"], optional = true }
tower = { version = "0.5", optional = true }
tower-http = { version = "0.6", features = ["cors", "trace"], optional = true }
tokio-stream = { version = "0.1", optional = true }
tokio-tungstenite = { version = "0.29", default-features = false, features = [
    "connect",
    "rustls-tls-webpki-roots",
] }
smallvec = "1.15.1"

[build-dependencies]
vtcode-config = { path = "../vtcode-config", version = "0.97.2" }

[target.'cfg(target_os = "linux")'.dependencies]
libc = { workspace = true }

[target.'cfg(target_os = "macos")'.dependencies]
libc = { workspace = true }
xattr = "1.6"

[[example]]
name = "anstyle_test"
path = "examples/anstyle_test.rs"

[[example]]
name = "dialoguer_example"
path = "examples/dialoguer_example.rs"

[[example]]
name = "migration_test"
path = "examples/migration_test.rs"

[features]
default = []
schema = ["dep:schemars", "vtcode-config/schema"]
a2a-server = ["dep:axum", "dep:tower", "dep:tower-http", "dep:tokio-stream"]
anthropic-api = ["dep:axum", "dep:tower", "dep:tower-http", "dep:tokio-stream"]
desktop-notifications = ["dep:notify-rust"]

[package.metadata.cargo-machete]
ignored = ["toml_edit", "tower"]

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[dev-dependencies]
assert_fs = { workspace = true }
mockito = "1.7"
proptest = "1.11"
criterion = { workspace = true }
wiremock = "0.6.5"
serial_test = { workspace = true }

[[bench]]
name = "tool_pipeline"
harness = false

[[bench]]
name = "agent_harness"
harness = false

[lints]
workspace = true