-
-
Notifications
You must be signed in to change notification settings - Fork 4
feat: detect installation method for update notifications #120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Patch coverage should only run on PRs, not on direct pushes to main or develop. This was causing false failures on release merges. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add detection for npm, Homebrew, and Go installations to show the appropriate update command in the update notification. Previously only npm was detected, falling back to the GitHub releases page URL. Now detects: - npm: node_modules/@tastehub/ckb path - brew: /opt/homebrew/Cellar/, /usr/local/Cellar/, linuxbrew paths - go: GOBIN, GOPATH/bin, or ~/go/bin paths Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
NFR Tests ✅ 39 unchangedComparing PR against main branch (dynamic baseline). Regressions: 0 ✅ Thresholds: WARN ≥ +5% • FAIL ≥ +10% All scenarios
* = new scenario, compared against static baseline |
🟢 Change Impact Analysis
Blast Radius: 0 modules, 1 files, 12 unique callers 📝 Changed Symbols (85)
🎯 Affected Downstream (12)
Recommendations
Generated by CKB |
Add a CLI command that detects the installation method and runs the appropriate update command (npm/brew/go install). Includes --dry-run flag to preview the command without executing. For unknown installation methods, opens the GitHub releases page. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
CKB Analysis
Risk factors: Touches 1 hotspot(s)
🎯 Change Impact Analysis · 🟢 LOW · 85 changed → 12 affected
Symbols changed in this PR:
Downstream symbols affected:
Recommendations:
💣 Blast radius · 0 symbols · 1 tests · 0 consumersTests that may break:
🔥 Hotspots · 1 volatile files
📊 Complexity · 1 violations
💡 Quick wins · 10 suggestions
📚 Stale docs · 143 broken references
Generated by CKB · Run details |
🔐 Security Audit Results
📦 Dependency VulnerabilitiesFound 7 vulnerability(ies) across 2 scanner(s) DetailsTrivy (4 findings)
OSV-Scanner (3 findings)
📜 License IssuesFound 119 non-permissive license(s) Details
Generated by CKB Security Audit | View Details | Security Tab |
Codecov Report❌ Patch coverage is
❌ Your patch check has failed because the patch coverage (27.6%) is below the target coverage (30.0%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #120 +/- ##
=======================================
- Coverage 45.1% 45.1% -0.1%
=======================================
Files 350 351 +1
Lines 59739 59844 +105
=======================================
+ Hits 26957 26995 +38
- Misses 30955 31021 +66
- Partials 1827 1828 +1
Flags with carried forward coverage won't be shown. Click here to find out more. 📢 Thoughts on this report? Let us know! 🚀 New features to boost your workflow:
|
Summary
ckb updatecommand to self-update using the detected package managerDetection methods
node_modules/@tastehub/ckbin pathnpm update -g @tastehub/ckb/opt/homebrew/Cellar/,/usr/local/Cellar/, or linuxbrew pathsbrew upgrade ckbGOBIN,GOPATH/bin, or~/go/binpathsgo install github.com/SimplyLiz/CodeMCP/cmd/ckb@latestNew CLI command
--dry-runflag shows the command without executing itTest plan
getUpgradeCommand()with all install methodsckb update --dry-run🤖 Generated with Claude Code