Repository navigation
feat(prismpm): CLI groups named after the modules (Part of #441) - #627
Merged
Merged
Conversation
prismpm <module> <verb> runs a flat command, from the [[group]] rows of model/commands.toml: images, verify, auth, system, containers, client. The model gate checks each row runs a registered command; the CLI parses the same rows; CONTRACTS.md lists them. Flat commands stay as aliases. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3PgppT8GnGncwN533c
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.
Requested by Alex · project thread
Part of #441 (Rust side of "the CLI groups match the module names"; the JS side is #625).
What changes
prismpm <module> <verb>runs a flat command with the same arguments, output and result schema. Groups:images(build, inspect, pull, push, verify→check, export-browser),verify(check, attestation, signature, release, replay, model→verify, conformance, acceptance, browser-publication),auth(attest, sign, sign-evidence),system(lock, update, fetch, authority, clean),containers(run, status),client(generate, completion, template). Flat commands stay as aliases.[[group]]rows ofmodel/commands.toml.repo-modelchecks each row is sorted, unique, kebab-case and runs a registered command; the CLI parses its groups from the same rows (include_str!, likecompletion);cargo xtask validate-model --writerenders them intoCONTRACTS.md. A test checks every group module is a module ofmodel/modules.toml.prismpm <module>/--helpprints the module's verbs (exit 0); an unknown verb exits 2 withPP1001(as a JSON envelope under--json).verifystays the model verification unless the next word is one of its verbs.prismpm --helplists the groups and shell completion offers the module names.Tests
cargo test -p prismpm --lib cli::tests: 4 new tests (every group expands to its command, flat verbs andverifykeep working, group help/unknown verb, completion). The 2text_clifailures in that filter are the known local toolchain-pin failures, same on main.cargo test -p repo-modelwith a planted-row test;cargo xtask validate-model,check-modules, clippy and fmt clean.Generated by Claude Code