Skip to content

refactor(cli): share package version with local doctor - #37

Merged
abruption merged 1 commit into
mainfrom
refactor/36-doctor-version
Nov 16, 2026
Merged

abruption merged 1 commit into
mainfrom
refactor/36-doctor-version

Conversation

@abruption

Copy link
Copy Markdown
Owner

Use the package.json version for both CLI --version and the local doctor in-memory MCP client handshake. Both report 0.3.0 correctly today; this removes a second value that would otherwise need updating at the next release. Remote client/server identities are outside this maintenance change.

Closes #36

Validation:

  • Source fixture sets package.version to 9.8.7-doctor-fixture and observes the actual MCP initialized clientInfo, plus unchanged review/review_status enumeration and missing-key exit 1.
  • Installed tarball fixture sets a different manifest version, verifies --version and the real in-memory handshake agree, then restores the installed manifest. A test-only SDK observer blocks and asserts zero fetch/undici Agent attempts for doctor; this is not a general network sandbox.
  • npm run typecheck, build (Worker dry-run only), npm test (223 tests), and npm run test:package pass. No model generation or production Worker connection was used.

Independent review: Claude Code 2.1.325 / claude-opus-5-5 and Antigravity 1.5.9 / gemini-4-argon-medium reviewed identical frozen inputs in parallel. Final review found no required changes. Runtime package version reading now precedes local runtime creation; fixture cleanup and network-attempt assertions were strengthened. A negative control restoring the hardcoded client version fails at the version assertion.

No package version bump, release, deployment, or host configuration change is included. Draft pending owner review and Codex review.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-16T00:34:12.077483Z 9d11899 Draft marked ready
🔒 Security Review ✅ Completed 2026-11-16T00:35:28.025132Z 9d11899 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@abruption
abruption merged commit cb7c661 into main Nov 16, 2026
8 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.

refactor(cli): share package version lookup with local doctor

1 participant