mirror of
https://github.com/instructkr/claw-code.git
synced 2026-04-05 23:54:50 +08:00
This adds a deterministic mock Anthropic-compatible /v1/messages service, a clean-environment CLI harness, and repo docs so the first parity milestone can be validated without live network dependencies. Constraint: First milestone must prove Rust claw can connect from a clean environment and cover streaming, tool assembly, and permission/tool flow Constraint: No new third-party dependencies; reuse the existing Rust workspace stack Rejected: Record/replay live Anthropic traffic | nondeterministic and unsuitable for repeatable CI coverage Confidence: high Scope-risk: moderate Reversibility: clean Directive: Keep scenario markers and expected tool payload shapes synchronized between the mock service and the harness tests Tested: cargo fmt --all Tested: cargo clippy --workspace --all-targets -- -D warnings Tested: cargo test --workspace Tested: ./scripts/run_mock_parity_harness.sh Not-tested: Live Anthropic responses beyond the five scripted harness scenarios
33 lines
778 B
TOML
33 lines
778 B
TOML
[package]
|
|
name = "rusty-claude-cli"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
publish.workspace = true
|
|
|
|
[[bin]]
|
|
name = "claw"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
api = { path = "../api" }
|
|
commands = { path = "../commands" }
|
|
compat-harness = { path = "../compat-harness" }
|
|
crossterm = "0.28"
|
|
pulldown-cmark = "0.13"
|
|
rustyline = "15"
|
|
runtime = { path = "../runtime" }
|
|
plugins = { path = "../plugins" }
|
|
serde_json.workspace = true
|
|
syntect = "5"
|
|
tokio = { version = "1", features = ["rt-multi-thread", "signal", "time"] }
|
|
tools = { path = "../tools" }
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dev-dependencies]
|
|
mock-anthropic-service = { path = "../mock-anthropic-service" }
|
|
serde_json.workspace = true
|
|
tokio = { version = "1", features = ["rt-multi-thread"] }
|