New 'fork' subcommand copies capability dir + rewrites capability.toml with [lineage].fork_from + parents + creator + created. Refuses clobber, validates slug regex. Tests: 4 integration + 2 unit (epoch_to_iso, split_cap_name) = 6/6. Doc update in AGENT-SUBSTRATE-SCHEMA.md §Orchestrator ergonomics. Zero-chrono ISO-8601 via Hinnant's algorithm (single-file). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
29 lines
709 B
TOML
29 lines
709 B
TOML
[package]
|
|
name = "kei-capability"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
rust-version = "1.75"
|
|
description = "Hook-protocol CLI adapter — routes PreToolUse check + on-return verify to kei-agent-runtime capabilities"
|
|
|
|
[[bin]]
|
|
name = "kei-capability"
|
|
path = "src/main.rs"
|
|
|
|
[lib]
|
|
name = "kei_capability"
|
|
path = "src/lib.rs"
|
|
|
|
[dependencies]
|
|
kei-agent-runtime = { path = "../kei-agent-runtime" }
|
|
clap = { version = "4", features = ["derive"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
anyhow = "1"
|
|
toml = "0.8"
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3"
|
|
|
|
[package.metadata.keisei]
|
|
backend = "none"
|
|
description = "Hook-protocol CLI — `kei-capability check <name>` / `kei-capability verify <name>`"
|