chore: align CLI .version() literals with package.json across 6 packages#72
Merged
Merged
Conversation
Six packages hard-coded .version("1.0.0") in their commander entry,
while their package.json said 0.1.0 or 0.2.0. Every <bin> --version
invocation lied to the user. understanding-gate had the same shape
and was fixed in PR #70; this sweep covers the remaining six.
| Package | package.json | was | now | file |
|-------------------------|--------------|-----------|-----------|---------------------|
| claim-gate | 0.2.0 | "1.0.0" | "0.2.0" | src/cli.ts:8 |
| debug-playbook-engine | 0.1.0 | '1.0.0' | '0.1.0' | src/index.ts:13 |
| domain-router | 0.1.0 | '1.0.0' | '0.1.0' | src/index.ts:13 |
| evidence-ledger | 0.2.0 | "1.0.0" | "0.2.0" | src/cli.ts:24 |
| grounding-wrapper | 0.2.0 | '1.0.0' | '0.2.0' | src/index.ts:25 |
| readme-first-resolver | 0.1.0 | '1.0.0' | '0.1.0' | src/index.ts:13 |
Quote style preserved per file (mix of " and ' across the monorepo).
Verification, per touched package:
- claim-gate 22/22 vitest, tsc clean
- debug-playbook-engine 21/21 jest, tsc clean
- domain-router 29/29 jest, tsc clean
- evidence-ledger 57/57 vitest, tsc clean
- grounding-wrapper 25/25 jest, tsc clean
- readme-first-resolver 14/14 jest, tsc clean
Total 168 / 168 green. No package.json bumps (no release implied).
Refs agent-tasks 163a2845-4b05-4c24-83d1-8e4fb36a4e96.
Co-Authored-By: Claude Opus 4.7 (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.
Refs agent-tasks
163a2845-4b05-4c24-83d1-8e4fb36a4e96. Third post-Phase-2 drift cleanup PR; siblings #70 (understanding-gate README) and #71 (debug-playbook-engine canMakeClaim example) already merged.Why
Six packages hard-coded
.version("1.0.0")in their commander entry whilepackage.jsonwas at 0.1.0 or 0.2.0. Every<bin> --versioninvocation printed a wrong number. Same shapeunderstanding-gatehad pre-PR-#70.What changed
One-character (well, three-character) literal swap per file, no behaviour change. Quote style preserved per file (mix of
"and'across the monorepo, not normalized).claim-gate"1.0.0""0.2.0"packages/claim-gate/src/cli.ts:8debug-playbook-engine'1.0.0''0.1.0'packages/debug-playbook-engine/src/index.ts:13domain-router'1.0.0''0.1.0'packages/domain-router/src/index.ts:13evidence-ledger"1.0.0""0.2.0"packages/evidence-ledger/src/cli.ts:24grounding-wrapper'1.0.0''0.2.0'packages/grounding-wrapper/src/index.ts:25readme-first-resolver'1.0.0''0.1.0'packages/readme-first-resolver/src/index.ts:13Verification
Per touched package,
npm testplusnpm run typecheck:claim-gatedebug-playbook-enginedomain-routerevidence-ledgergrounding-wrapperreadme-first-resolverTotal 168 / 168 green. slop-detector clean on commit message.
Out of scope
package.jsonversion bumps. The fix is "make the CLI agree with the published version", not "cut a release".cli.ts.version()literal matchespackage.json) was offered as optional in the task description; can be filed as a follow-up if useful.detectClaimTypeinclaim-gate/src/cli.ts:4,recordStepindebug-playbook-engine/src/index.ts:4,advancePhaseinreadme-first-resolver/src/index.ts:7). Not introduced by this PR; they were sitting on master. Out of scope for a one-line version fix.Test plan
package.jsonversionon master.