Commit graph

4 commits

Author SHA1 Message Date
Simon Klee
5c873ff272
feat(cli-rs): add the P-CLI and P-PTY parity runners
A fake server serves a scenario's route table and logs requests. P-CLI runs the TS CLI from source and opencode-rs against it in isolated homes and compares exit code, stdout, stderr and requests. P-PTY runs both under a PTY through OpenTUI's embedded terminal and compares the OSC log and screen checkpoints.
2026-11-04 18:47:33 +01:00
Simon Klee
267c1ff412
chore(cli-rs): declare effect for the command dump
script/gen/commands.ts imports effect; without the dev dependency the package typecheck cannot resolve it.
2026-11-04 18:19:46 +01:00
Simon Klee
20b0af8827
feat(cli-rs): dump TUI component cells to P-COMP fixtures
renderComponent renders a TUI component in createTestRenderer at a fixed size and theme, inside the TUI providers or bare, and writes its cells through the same native resolved-chars call opentui-rust's Capture uses. bun run fixtures now also runs parity/component scripts.
2026-11-04 18:15:40 +01:00
Simon Klee
271fc7c26d
feat(cli-rs): scaffold the Rust client workspace
Add packages/cli-rs: a Cargo workspace with the 14 crates of the plan,
module stubs for api, local, service, store, and ui, and the expected
third-party crates in [workspace.dependencies]. opentui is a path
dependency on the local opentui-rust checkout, linked statically.

script/opentui-lib.sh copies native artifacts whose header matches the
bindings into ~/.cache/opencode-rs/opentui, where .cargo/config.toml
points OPENTUI_LIB_DIR. opencode-rs --version runs; script/live.sh
runs it against the elected background service.
2026-11-04 17:52:34 +01:00