Repository navigation
feat(status): print the pass as JSON, and name this machine's setup on --help - #108
Merged
Merged
Conversation
A session using the /dw-mc skill, or jq, needs the pass without parsing the table. The document carries what the table says after it, troubles and the left-out count, and it reads the watermark without moving it, because a machine reading the pass is not me looking. Refs #48 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The root help screen now says where the configuration is, how many repositories it registers and where the state lives. The file is read only when --help runs, and a file that cannot be read or is missing shortens the line instead of taking the help screen down. Refs #48 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…lformed Only a malformed file earns "cannot be read"; a store that fails outright drops the setup lines instead of misreporting the file. ADR 0010 now names --help as the one screen that keeps going on such a file. Refs #48 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.
An agent session using the
/dw-mcskill, orjq, cannot read what every tracked PR waits on without parsing a table drawn for me.dw-mc status --jsonprints the same pass as one document, and the root help screen names where this machine keeps its configuration and state, so a new terminal shows at a glance whether the tool is set up.What changes
dw-mc status --json— prints the pass through theStatusJsonschema: every row's bucket, reason, stamp, what moved and every fact flat, thenrepos,leftOutandtroubles. It honours--repoand--all, reads the watermark without moving it, draws no heartbeat, and prints the same shape with empty arrays where nothing is registered.dw-mc --help— under the logo,confignames the file and how many repositories it registers, andstatenames the state directory. The file is read only when--helpruns; a malformed file or none shortens the line and keeps the screen.--helpas the one screen that keeps going on a file this version cannot read.skills/dw-mc/SKILL.md— list--jsononstatusand send a session to it.Test plan
pnpm check— pass, 781 testssrc/cli/status.test.ts— six new cases: shape and order,since, the watermark left alone, troubles andleftOutwith no heartbeat,--repo/--all, nothing registeredsrc/cli/header.test.ts— six new cases: the two lines, XDG paths, dimmed paths, no config, malformed config, and nothing on--version,status --helpor a failed parsenode dist/bin.js --help,--versionandstatus --json | jqon this machine — the two lines under the logo, the version screen as before, one document, exit 0dw-mc --helpwith a malformedconfig.yamlsays it cannot be read and still prints the helpRisk
Low: both changes only read. If the help lines are wrong, the way back is a revert;
statuswithout--jsonis untouched.Closes #48
🤖 Generated with Claude Code