[package]
name = "kei-spawn"
version = "0.1.0"
edition.workspace = true
rust-version.workspace = true
description = "Agent substrate v1 — automation envelope around prepare + ledger fork + verify"
authors.workspace = true
license.workspace = true

[[bin]]
name = "kei-spawn"
path = "src/main.rs"

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

[features]
default = []
# Enables the real reqwest-backed HttpDriver for `kei-spawn drive`.
# Off by default: v0.1 ships with ManualDriver only (no network deps).
http-driver = ["dep:reqwest"]

[dependencies]
kei-agent-runtime = { path = "../kei-agent-runtime" }
clap = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
anyhow = { workspace = true }
sha2 = { workspace = true }
toml = { workspace = true }
reqwest = { workspace = true, optional = true, features = ["blocking"] }

[dev-dependencies]
tempfile = { workspace = true }
httpmock = "0.7"

[package.metadata.keisei]
backend = "none"
description = "Wraps kei-agent-runtime prepare + kei-ledger fork + kei-agent-runtime verify into a single CLI. Step 3 (Agent tool call) stays with the orchestrator."
authors = ["Denis Parfionovich <parfionovich@keilab.io>"]
