Repository navigation
vcli-cli: user-facing CLI over framed-JSON IPC (plan 5) - #11
Merged
Merged
Conversation
… via process_group
blaksmatic
force-pushed
the
implement/plan-5-vcli-cli
branch
from
April 22, 2026 03:58
8c526bc to
6d3d41d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Ships the user-facing
vclibinary — a thin client over the framed-JSON IPC protocol that speaks to thevcli-daemon(#10). Every v0 command supports--json; exit codes match spec §589 exactly (0success,1generic,2validation,3not found,4daemon not running).Architecture
vcli-ipc(transport),vcli-dsl(local preflight onsubmit),vcli-core(ids, state, errors, events).#![forbid(unsafe_code)]at crate root. Daemon-spawn path usesCommandExt::process_group(0)andCommandExt::exec(), both safe stable Rust.clapderive gives us structured parsing and auto-generated--help.formatmodule withPretty/Jsonbackends so every command gets both for free.run()returnsi32;main.rsis a three-liner.vcli_dsl::validate_valueonsubmitis a UX optimization (Decision F4); the daemon still re-validates authoritatively.Commands
submit,list,cancel,logs,resume,daemon {start|run|stop|status},health,gc.What's in this PR
20 plan tasks across 21 commits, per
docs/superpowers/plans/2026-04-17-vcli-cli.md. Highlights:CliError+ExitCodemapping (spec §589)clapderive Cli/Command skeleton for every v0 commandutil— socket resolution, file read, ISO-8601 formatter (Howard Hinnant civil_from_days)client::connectmaps ENOENT/ECONNREFUSED →DaemonDownformat—Table+render_valuedaemon startdetaches viaprocess_group(0);daemon runexecs for launchd/systemdlib::rundispatcher wiring everyCommandto its handlerFakeHandler, binary-level smoke tests viaassert_cmdStacking
This PR is built on top of #10 (plan-4
vcli-daemon). It targetsmaster— the diff will narrow to onlyvcli-clicommits once #10 merges. Please review/merge #10 first.Test Plan
cargo test --workspace --lockedgreen on macOS (574 tests)cargo clippy --workspace --all-targets -- -D warningscleancargo fmt --all -- --checkclean#![forbid(unsafe_code)]at crate root🤖 Generated with Claude Code