Phase 2 of the WSL2 jumphost build. Workspace: gsh/ (binary) + libgsh/ (library). libgsh modules: ac.rs — AC validation (R-22 single-use, R-23 corpus match, expiry) cr.rs — CR construction + broker posting + inline AC request corpus.rs — Corpus directory gate (killswitch) config.rs — GshConfig from environment registry.rs — Filesystem-based consumed AC registry gsh/src/main.rs: CLI only (~170 lines). Clap args, mode detection, calls libgsh, formats output. 11 unit tests in libgsh: ac: valid AC, expired, corpus mismatch, replay, missing context_id cr: broker URL formatting corpus: ungoverned skip, missing dir, command name extraction registry: consume and check config: default corpus_cid Zero behavior change. Same JSON output, same exit codes, same flags, same env vars, same broker interaction. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
22 lines
527 B
TOML
22 lines
527 B
TOML
[workspace]
|
|
members = ["libgsh", "gsh"]
|
|
resolver = "2"
|
|
|
|
[workspace.package]
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
license = "MIT OR Apache-2.0"
|
|
repository = "https://git.guildhouse.dev/guildhouse/gsh"
|
|
|
|
[workspace.dependencies]
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
reqwest = { version = "0.12", features = ["blocking", "json"] }
|
|
thiserror = "2"
|
|
anyhow = "1"
|
|
clap = { version = "4", features = ["derive"] }
|
|
sha2 = "0.10"
|
|
hex = "0.4"
|
|
uuid = { version = "1", features = ["v4"] }
|
|
chrono = "0.4"
|
|
dirs = "5"
|