feat(skill): add upgrade command (0.2.9)#43
Merged
Conversation
🔒 门禁检查结果
Rust 测试覆盖率
前端测试覆盖率
✅ 所有检查通过,可以合入
|
added 6 commits
June 20, 2026 21:09
- Add workflow_call trigger to test-upgrade.yml for reusable workflow - Add publish-sim job: validates tarball file list and package structure - Wire test-upgrade as a required check in ci.yml gate-result - Include upgrade test status in gate summary and PR comment
Reusable workflow via uses: doesn't expose jobs to needs context. Inline publish-sim, skill-upgrade-flow, skill-unit-test directly into ci.yml so gate-result can check their status. Remove workflow_call from test-upgrade.yml (not needed for inline). Keep test-upgrade.yml as standalone workflow for PR/manual triggers.
0.3.0 doesn't exist; use 0.2.9 (next release after current 0.2.8) as the example version in upgrade command docs.
2 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.
Problem
Users have no way to upgrade cli-box without manually running npm commands and restarting services.
npx cli-box-skill installoverwrites SKILL.md, which may contain user customizations. Additionally, the upgrade flow had no CI coverage — regressions in publish/install/upgrade could ship undetected.Solution
1. Add
upgradecommandcli-box-skill upgrade [version]safely stops sandboxes/daemon/Electron before upgradingupgradepreserves SKILL.md (unlikeinstall)2. CI integration for upgrade flow
ci.yml)test-upgrade.ymlremains as standalone workflow for PR path-filtered + manual triggersKey commits
42b498efeat(skill): add upgrade helper functions to shared.mjs16ad931feat(skill): add upgrade subcommand to cli-box-skill89d6d8fdocs(skill): add upgrade instructions to SKILL.md9e6cd3fdocs: add upgrade instructions to README.md050efcdci: inline upgrade test jobs into CI gate322a2e6ci: integrate test-upgrade into CI gate + add publish simulationTest Plan
cli-box-skill upgradewith no daemon runningcli-box-skill upgradewith running sandboxes (Cancel flow)cli-box-skill upgradewith running sandboxes (Close all flow)