oxi-cli 0.31.0

Terminal-based AI coding assistant — multi-provider, streaming-first, extensible
Documentation
[package]
name = "oxi-cli"
version = "0.31.0"
edition.workspace = true
rust-version.workspace = true
description = "Terminal-based AI coding assistant — multi-provider, streaming-first, extensible"
readme = "README.md"
license = "MIT"
authors = ["a7garden <a7garden@icloud.com>"]
repository = "https://github.com/a7garden/oxi"
keywords = ["ai", "coding", "assistant", "llm", "cli"]
categories = ["command-line-utilities", "development-tools"]
exclude = ["target/", "benches/"]

[[bin]]
name = "oxi"
path = "src/main.rs"

[lib]
name = "oxi"
path = "src/lib.rs"

[dependencies]
oxi-ai = { version = "0.31.0", path = "../oxi-ai" }
oxi-agent = { version = "0.31.0", path = "../oxi-agent" }
oxi-sdk = { version = "0.31.0", path = "../oxi-sdk" }
oxi-tui = { version = "0.31.0", path = "../oxi-tui" }

# Async runtime
tokio = { version = "1", features = ["full"] }
futures = "0.3"

# Serialization
serde = { version = "1", features = ["derive"] }
serde_json = "1"
toml = "0.8"

# CLI
clap = { version = "4", features = ["derive"] }

# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }

# Error handling
anyhow = "1"
thiserror = { workspace = true }

# Utilities
uuid = { version = "1", features = ["v4", "serde"] }
chrono = { version = "0.4", features = ["serde"] }
dirs = "5"
parking_lot = "0.12"
crossterm = "0.29"
ratatui = { version = "0.30", features = ["crossterm"] }
unicode-width = "0.2"
base64 = "0.22"
rand = "0.8"
sha2 = "0.10"
url = "2"

# Image processing
image = { version = "0.25", default-features = false, features = ["png", "jpeg", "gif", "webp", "bmp"] }

# Dynamic loading for extensions
libloading = "0.8"
# Pinned to extism 1.21.0 (wasmtime 41.x).
#
# extism 1.30.0 (published 2026-06-04) is uncompilable: it assumes
# `wasmtime::Error: std::error::Error`, but wasmtime 43 deliberately
# removed that impl (see `wasmtime-internal-core-43.0.2/src/error/error.rs`).
# Result: 41 E0277 errors in extism's own code, not in oxi.
#
# This pin also defends against the `cargo install` resolution issue
# (rust-lang/cargo#7169) where `cargo install --path` ignores the
# workspace `Cargo.lock` and resolves to the latest matching version.
# `^1.21` (= >=1.21, <2.0) lets cargo pick the broken 1.30.0; `=1.21.0`
# does not. See deny.toml and .cargo/audit.toml for the wasmtime-41
# CVE tracking that motivates staying on 1.21.x until extism ships a
# working wasmtime-43 release.
extism = { version = "=1.21.0", default-features = false }
tempfile = "3"
regex = "1"
# Semver
semver = { version = "1", features = ["serde"] }

# HTTP client for version check
reqwest = { version = "0.12", features = ["json", "rustls-tls"], default-features = false }

# Self-update (optional)
self_update = { version = "0.41", features = ["archive-tar", "compression-flate2"], optional = true }
serde_yaml = "0.9"

# OAuth support
urlencoding = "2.1"

# Filesystem watching
notify = "6"

# Archive extraction for tools-manager
flate2 = "1"
tar = "0.4"
zip = "2"

# Unix primitives for SIGTSTP
[target.'cfg(unix)'.dependencies]
libc = "0.2"

[features]
default = ["self-update"]
self-update = ["dep:self_update"]

[dev-dependencies]
tempfile = "3"
assert_cmd = "2"
predicates = "3"