Repository navigation
Split src/doctor.ts: Windows checks into src/doctor-windows.ts (#141) - #143
Merged
Merged
Conversation
src/doctor.ts was about 5,257 tokens, over the 5,000-token limit for files agents edit. The Windows checks from #108 (SystemRoot, execution policy, path-relative PATH entries, Claude Code version) and their helpers move verbatim to src/doctor-windows.ts; doctor.ts keeps the runner, the types and the cross-platform checks, and calls windowsChecks in the same place. No change in behaviour: same exports, check order, ids and messages. doctor and doctor --json give byte-identical output before and after. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <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.
Closes #141.
src/doctor.tswas about 5,257 tokens, over the file-size limit, so edits to it were blocked. The Windows checks from #108 (SystemRoot, execution policy, PATH entries that aren't full paths, Claude Code version) move unchanged tosrc/doctor-windows.ts, which exportswindowsChecks. Everything that imported fromdoctor.tsimports the same names, and the check order, ids and messages are unchanged. The two files import each other's types only.src/doctor.tssrc/doctor-windows.tsChecks
cloudpin doctoranddoctor --json(withCLOUDPIN_NO_UPDATE_CHECK=1) give byte-identical output on main and on this branch.npm run typecheck: exit 0.npm test: 1267 passed, 8 skipped.🤖 Generated with Claude Code