fix(npm): correct install URLs + unconditional skill install (0.2.6)#39
Merged
Conversation
- Point all curl install URLs at packages/cli-box-skill/skill/install.sh (the repo has no root skill/ dir); fix ZN-Ice -> Shadow-Azure owner in the cli-box-wrapper.js fallback URL - postinstall.mjs and install.sh now install SKILL.md unconditionally: they create ~/.claude/skills/cli-box and ~/.config/opencode/skills/cli-box even when the harness is not yet installed, so 'npm install -g cli-box-skill' is truly out-of-the-box for Claude Code and OpenCode - Sync release/release-pipeline.md to the actual 3-package npm pipeline - Bump version 0.2.5 -> 0.2.6 Co-Authored-By: Claude <noreply@anthropic.com>
🔒 门禁检查结果
Rust 测试覆盖率
前端测试覆盖率
✅ 所有检查通过,可以合入
|
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
After 0.2.5 we found two issues blocking a true out-of-the-box
npm install -g cli-box-skillexperience:main/skill/install.sh, but the repo has no rootskill/dir (it moved topackages/cli-box-skill/skill/install.sh) — all 404. Thecli-box-wrapper.jsfallback additionally used the wrong owner (ZN-Ice). Thenpm installmain path was unaffected (it resolves the platform package), but the "No npm? curl it" alternative and the fallback message were dead.postinstall.mjsandinstall.shgated theSKILL.mdcopy on~/.claude//~/.config/opencode/already existing — so on a fresh machine the skill silently wasn't placed.release/release-pipeline.mdwas stale (version 0.2.0, rootskill/).Solution
main/packages/cli-box-skill/skill/install.shacrossREADME.md,README.zh-cn.md,docs/guide/installation.md, andpackages/cli-box-skill/{skill/SKILL.md, README.md, postinstall.mjs, bin/cli-box-wrapper.js}(ownerZN-Ice→Shadow-Azure).postinstall.mjsandinstall.shinstallSKILL.mdunconditionally (create~/.claude/skills/cli-box+~/.config/opencode/skills/cli-boxviamkdir -peven when the harness isn't installed yet) — so the skill is discovered the moment Claude Code / OpenCode runs.release/release-pipeline.mdto reflect the actual 3-package npm pipeline (cli-box-skill+cli-box-darwin-arm64+cli-box-electron-darwin-arm64, npm versions injected from the git tag by CI).0.2.5 → 0.2.6(Cargo.toml,electron-app/package.json,release.sh).Test Plan
tests/e2e-skill-install.sh(CI mode) — all 3 tests pass; Test 2 now landsSKILL.mdin a fresh HOME (previously a warn), proving the unconditional installmain/skill/install.sh/ZN-Icereferences remain in live filesv0.2.6→gh release create→ CI publishes GitHub Release assets + 3 npm packagesnpm install cli-box-skill@0.2.6→ verify binaries symlinked,cli-box --helpworks,SKILL.mdin both skill dirs on a fresh HOME🤖 Generated with Claude Code