feat(scripts): -Track flag + install.ps1 $PROFILE fix#32
Open
abdout wants to merge 1 commit into
Open
Conversation
Closes two open acceptance criteria from spec #28. 1. **install.ps1 \$PROFILE bug (real)**: previously appended only the comment '# Claude Code (Kun Engine)' to \$PROFILE — never the actual c/cc/env-loader/PATH-prepend block. Users had to run 'doctor -Fix' afterward to get a working 'c' command. Fixed by sourcing lib/Fix-Shell.ps1 (already shipping in #29) and calling Repair-Profile. install.ps1 and 'doctor -Fix' now produce identical \$PROFILE output. 2. **bootstrap -Track flag**: new lib/Track-Issue.ps1 with New-TrackingIssue / Update-TrackingIssue / Close-TrackingIssue. When -Track is set, bootstrap creates a GitHub issue in databayt/kun at step 3 with a 17-item checkbox list, then flips each box live as steps complete. On success: closes the issue with a green comment. On failure: leaves it open with the last 40 log lines attached for forensics. - Requires gh auth (silently degrades if unauthed at step 3, then retroactively creates the issue after step 12 OAuth) - All gh calls are wrapped in try/catch — tracking failures never abort the bootstrap itself - Issue label: 'bootstrap-run' (created on first use) Smoke-tested via 'bootstrap -DryRun -SkipOAuth -SkipWebStorm -Track' — runs all 16 steps cleanly with the new wiring. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
7 tasks
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.
Summary
Closes two open acceptance criteria from spec #28.
1.
install.ps1$PROFILEbug fixThe current
install.ps1only appends a comment to$PROFILE— never the actualcfunction. Users had to rundoctor -Fixafter install to get a workingccommand (and most never knew that).Before (the existing bug):
After:
install.ps1anddoctor -Fixnow produce identical$PROFILEoutput — the canonical c/cc/env-loader/PATH-prepend block fromFix-Shell.ps1(already shipping in #29).2.
bootstrap -TrackflagNew
lib/Track-Issue.ps1(95 lines) —New-TrackingIssue,Update-TrackingIssue,Close-TrackingIssue. When-Trackis set, bootstrap creates a GitHub issue at step 3, flips each checkbox live as steps complete, and finalizes at step 16:Live progress visible from your phone via the GitHub mobile app while the laptop is grinding. Useful for cross-device monitoring and post-mortem forensics.
Design choices
gh auth statusisn't green at step 3,-Tracksilently degrades (warning printed, bootstrap continues without tracking). After step 12 OAuth completes, bootstrap retroactively creates the issue and back-fills checkboxes 0-12.ghcall is wrapped intry/catch— a GitHub 5xx or network blip never aborts the bootstrap itself.✅ Bootstrap completed successfullyTest plan
Parser::ParseFile)bootstrap -DryRun -SkipOAuth -SkipWebStorm -Trackruns all 16 steps without errorsbootstrap -Trackcreates a real issue, updates live, closes on success-Trackwarns at step 3, retroactively creates issue after step 12Dependencies
This branch stacks on
feat/bootstrap(#31). Merge order:Closes the two remaining spec #28 ACs:
bootstrap -Trackcreates and updates a GitHub tracking issue🤖 Generated with Claude Code