Add the missing runtime surface so the Rust runtime can hold a conversation, stream assistant output into content blocks, execute permission-gated tools, persist session history to JSON, and assemble a Claude Code-style system prompt without introducing new dependencies. The implementation keeps the public surface explicit by splitting bootstrap, conversation, permissions, session persistence, prompt building, and JSON support into focused modules. It also fixes workspace clippy priority config and the CLI help match so the required verification stack can run cleanly. Constraint: Session persistence needed on-disk JSON without adding new dependencies Constraint: This worktree owns the conversation/session/permissions slice for rcc/runtime Rejected: Add serde/serde_json for persistence | workspace guidance prefers no new dependencies Rejected: Keep everything in lib.rs | would blur boundaries and make loop/session testing harder Confidence: medium Scope-risk: moderate Reversibility: clean Directive: If upstream Claude Code prompt/session parity becomes stricter, extend these modules instead of re-collapsing them into lib.rs Tested: cargo fmt --all && cargo clippy --workspace --all-targets --all-features -- -D warnings && cargo test --workspace Not-tested: Multi-tool batches in a single assistant message; manual editing of persisted JSON outside the runtime schema
20 lines
388 B
TOML
20 lines
388 B
TOML
[workspace]
|
|
members = ["crates/*"]
|
|
resolver = "2"
|
|
|
|
[workspace.package]
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
license = "MIT"
|
|
publish = false
|
|
|
|
[workspace.lints.rust]
|
|
unsafe_code = "forbid"
|
|
|
|
[workspace.lints.clippy]
|
|
all = { level = "warn", priority = -1 }
|
|
pedantic = { level = "warn", priority = -1 }
|
|
module_name_repetitions = "allow"
|
|
missing_panics_doc = "allow"
|
|
missing_errors_doc = "allow"
|