Skip to content

feat(prismpm): CLI groups named after the modules (Part of #441) - #627

Merged
afflom merged 1 commit into
mainfrom
claude/project-thread-v1zdl1
Nov 12, 2026
Merged

afflom merged 1 commit into
mainfrom
claude/project-thread-v1zdl1

Conversation

@afflom

@afflom afflom commented Nov 12, 2026

Copy link
Copy Markdown
Member

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.
  • One table: the [[group]] rows of model/commands.toml. repo-model checks each row is sorted, unique, kebab-case and runs a registered command; the CLI parses its groups from the same rows (include_str!, like completion); cargo xtask validate-model --write renders them into CONTRACTS.md. A test checks every group module is a module of model/modules.toml.
  • prismpm <module> / --help prints the module's verbs (exit 0); an unknown verb exits 2 with PP1001 (as a JSON envelope under --json). verify stays the model verification unless the next word is one of its verbs. prismpm --help lists the groups and shell completion offers the module names.
  • No new command names in the stable command contract, so no schema, error or count changes.

Tests

  • cargo test -p prismpm --lib cli::tests: 4 new tests (every group expands to its command, flat verbs and verify keep working, group help/unknown verb, completion). The 2 text_cli failures in that filter are the known local toolchain-pin failures, same on main.
  • cargo test -p repo-model with a planted-row test; cargo xtask validate-model, check-modules, clippy and fmt clean.

Generated by Claude Code

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
@afflom
afflom merged commit f52af34 into main Nov 12, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants