Repository navigation
feat(prism-code): Docker's spellings and the familiarity transcript (Part of #347) - #637
Merged
Merged
Conversation
…s and stored image names, with the familiarity transcript (Part of #347) prism-code ps and prism-code logs are containers ps and containers logs. container, image and volume name the same groups as their plurals, and containers ls lists as ps does. run and inspect on the CLI, and prism.containers.run and prism.images.inspect in the SDK, open the image the local store keeps under a name; a path that exists still wins. The ten most common Docker tasks, spelled as Docker's CLI and SDK spell them, are committed as test/fixtures/familiarity.json, and test/familiarity.test.mjs runs every step against a local registry. The developer surface now lists the top-level verbs and the singular groups, and cargo xtask check-developer-view accepts all 197 names. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3N4k8eo7mrfwURU1WM
…help now prints The group help prints each module's top-level aliases, so cli.json lists ps, logs, tag and rmi, the containers summary names ls and the singular groups, and the prism skill's command block is regenerated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3N4k8eo7mrfwURU1WM
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 #347. This is the familiarity test from its "done when": the ten most common Docker tasks (build, run, inspect, tag, push, pull, list images, list containers, logs, remove), done against Prism through both the CLI and the SDK. The transcript is committed as a fixture, and CI runs it again.
What changes
I ran the ten tasks the way Docker spells them and found these gaps. This PR closes them:
prism-code psandprism-code logsare top-level verbs again. They meancontainers psandcontainers logs, declared asaliasesinsrc/cli/containers.mjs.containers lslists the same rows asps.container,imageandvolumename the same groups as their plurals, soprism-code container ls -aandprism-code image lswork. They come fromMODULE_ALIASESandmoduleOfinsrc/cli/index.mjs.prism-code run calc:latest <input>,prism-code inspect calc:latest,prism.containers.run('calc:latest', input)andprism.images.inspect('calc:latest'), which all open the image the local store (Local image store: prism images, tag and rmi #349) keeps under that name. A path that exists still wins.loginandlogout.developerSurfacelists the singular groups as namespaces.developer-surface.jsonis regenerated, andcargo xtask check-developer-viewaccepts all 197 names.The transcript
test/fixtures/familiarity.jsonholds each task twice:dockerrenamedprism-code;prismclient equivalent.test/familiarity.test.mjsruns every CLI step against the in-process registry, checking the exit code and the stdout pattern, and then runs the SDK flow.buildruns underPRISM_CODE_DRY_RUNon the CLI and with a fake builder in the SDK, because CI has no builder image. The fixture's note says so.Checks
npm testinsdk/npm/prism-code: 910 pass and 1 fails. The failure isreference-archives.test.mjs, which cannot resolve the siblingprism-codepackage without the workspace install CI does. The same failure happens without this change.cargo xtask check-developer-viewpasses.scripts/package-allowances/familiarity.json, 4 KiB.Still open in #347 after this PR: view schemas for the JSON output and the SDK return values, the 0.2.0 examples run through the aliases, and the prose renames.
Generated by Claude Code