[package]
name = "joy-cli"
version = "0.14.0"
edition = "2021"
license = "MIT"
description = "CLI for Joy product management - Git-native, terminal-first"
repository = "https://github.com/joyint/joy"
homepage = "https://joyint.com/en/joy"
readme = "README.md"

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

[dependencies]
joy-core = { version = "0.14.0", path = "../joy-core" }
minijinja = { workspace = true }
joy-ai = { version = "0.14.0", path = "../joy-ai" }
clap = { workspace = true }
clap_complete = { version = "4.5", features = ["unstable-dynamic"] }
anyhow = { workspace = true }
chrono = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
serde_yaml_ng = { workspace = true }
tokio = { workspace = true }

# TUI (optional)
ratatui = { version = "0.29", optional = true }
crossterm = { version = "0.28", optional = true }

# Server (optional)
axum = { version = "0.8", optional = true }
tower-http = { version = "0.6", optional = true, features = ["cors"] }
rpassword = "7"
unicode-width = "0.2.0"
toml_edit = "0.25.5"
glob = "0.3.3"
termimad = "0.31"
hex = "0.4"

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

[features]
default = ["tui"]
tui = ["dep:ratatui", "dep:crossterm"]
server = ["dep:axum", "dep:tower-http"]
full = ["tui", "server"]
fast-kdf = ["joy-core/fast-kdf"]
