Skip to content

feat: report repo-bootcamp version in bootcamp doctor#61

Merged
Arthur742Ramos merged 1 commit into
mainfrom
arthur742ramos/doctor-version
Jun 11, 2026
Merged

feat: report repo-bootcamp version in bootcamp doctor#61
Arthur742Ramos merged 1 commit into
mainfrom
arthur742ramos/doctor-version

Conversation

@Arthur742Ramos

Copy link
Copy Markdown
Owner

Summary

bootcamp doctor diagnoses Node, git, gh, auth, mermaid-cli, and cache health — but never reported which version of the tool itself is running, which is the first thing you want in a bug report or support thread.

It now reports the running package version as the leading info line:

repo-bootcamp environment check
  · repo-bootcamp: v1.0.0
  ✓ Node.js runtime: v24.15.0 (>= 20 required)
  ✓ git: git version 2.53.0
  ...

and exposes it as environment.toolVersion (plus a version check) in --json output.

Also fixed

A stray duplicate ### Added header in the CHANGELOG's Unreleased section (a merge artifact) is cleaned up in this PR.

Implementation

  • Added toolVersion to the pure EnvironmentSnapshot (sourced from package.json, the same way cli.ts reads the version).
  • evaluateDoctor emits a leading version info check — info severity, so it never affects the pass/fail outcome.

Testing

  • Extended doctor unit tests: the version info check and the --json environment.toolVersion field.
  • New doctor E2E spec (none existed before): asserts the human report shows repo-bootcamp: vX.Y.Z and the JSON payload carries environment.toolVersion and a version check.
  • Full suite green: npm test → 1129 passing; typecheck + lint + build clean.

🤖 Generated with Claude Code

`bootcamp doctor` diagnoses Node, git, gh, auth, mermaid, and cache, but
never surfaced which version of the tool itself was running — the first thing
you want in a bug report. It now reports the running package version as the
leading info check ("repo-bootcamp: v1.2.3") and exposes it as
`environment.toolVersion` in `--json` output.

Also fixes a stray duplicate `### Added` header in the CHANGELOG Unreleased
section.

Tests: extended doctor unit tests (version info check + JSON toolVersion
field) and added a new doctor E2E spec (none existed) asserting the human
report shows the version and the JSON payload carries environment.toolVersion
and a `version` check.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Arthur742Ramos Arthur742Ramos force-pushed the arthur742ramos/doctor-version branch from e8fe9e6 to 9ebcd72 Compare June 11, 2026 20:12
@Arthur742Ramos Arthur742Ramos merged commit bc1118c into main Jun 11, 2026
13 checks passed
@Arthur742Ramos Arthur742Ramos deleted the arthur742ramos/doctor-version branch June 11, 2026 20:18
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