Commit graph

3 commits

Author SHA1 Message Date
Simon Klee
cbd79ff280
feat(cli-rs): add the --wizard command wizard
Port Effect CLI's wizard: it asks for the selected command's flags and arguments,
or for a subcommand, with Effect's select, confirm, toggle, integer, and text prompts,
prints the command line, and runs it after a confirmation by running the binary
again with it. Required arguments are not checked next to --wizard, so it can ask
for them. The prompts share the Clack kit's raw mode and key decoding.
2026-11-05 00:29:49 +01:00
Simon Klee
20cc335300
feat(cli-rs): add the api command
Ports handlers/api.ts: an OpenAPI operation ID with --param path and query values, or a raw method and path, with -d and -H. Error replies print their body and HTTP status with exit 1. P-CLI compares ten cases with TS on the fake server.
2026-11-04 23:51:13 +01:00
Simon Klee
6fa6bdf1a1
feat(cli-rs): add models, reload, and the debug commands
models, reload, debug agents, debug config (redacted), debug heap-dump, and debug
paths, ported from the TS handlers. Reads print the server's JSON as it came, as
the Promise client returns it, so Client::json is public. Sorting follows
localeCompare. P-CLI scenarios in parity/scenarios/C.1 pass against TS; H.3's
models case now runs for Rust too.
2026-11-04 19:18:32 +01:00