Skip to content

fix(ci): use sed to set npm package version#20

Merged
Shadow-Azure merged 1 commit into
mainfrom
fix/npm-version-sed
Jun 4, 2026
Merged

fix(ci): use sed to set npm package version#20
Shadow-Azure merged 1 commit into
mainfrom
fix/npm-version-sed

Conversation

@Shadow-Azure

Copy link
Copy Markdown
Owner

问题

npm version -w 失败,因为项目是 Cargo workspace,没有根目录 package.json

npm error enoent Could not read package.json: Error: ENOENT: no such file or directory

解决方案

sed 直接修改各 package.json 中的 version 字段,同时更新 cli-box-skill 的 optionalDependencies 版本。

Root package.json doesn't exist (Cargo workspace), so npm version -w fails.
Use sed to directly update version in each package.json.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown

🔒 门禁检查结果

检查项 状态
Rust 格式化 ✅ success
Rust Clippy ✅ success
Rust 测试 & 覆盖率 ✅ success
前端测试 & 覆盖率 ✅ success
Playwright E2E ✅ success
统一测试 (test.sh) ✅ success
安全检查 ✅ success

Rust 测试覆盖率

指标 覆盖率
行覆盖率 69.2%
分支覆盖率 0.0%
模块 行覆盖率
crates.cli-box-core.src.sandbox ███████████████████░ 98.8%
crates.cli-box-core.src.server █████████████████░░░ 87.5%
crates.cli-box-core.src ███████████░░░░░░░░░ 55.3%
crates.cli-box-core.src.capture ████████████████████ 100.0%
crates.cli-box-core.src.instance ███████████████████░ 99.1%
crates.cli-box-core.src.process █████████████░░░░░░░ 65.7%
crates.cli-box-core.src.automation ███████████░░░░░░░░░ 58.8%
crates.cli-box-core.src.daemon ██████████░░░░░░░░░░ 53.2%

详细报告见 Rust 覆盖率 artifact

前端测试覆盖率

指标 覆盖率
行覆盖率 ████████████████░░░░ 82.3%
分支覆盖率 68.9%
函数覆盖率 80.0%
语句覆盖率 80.0%
文件 行覆盖率
src/tests/mocks/websocket.ts ██████████████████░░ 88.0%
src/tests/mocks/xterm.ts ████████████████████ 100.0%
src/renderer/api.ts ██████████████░░░░░░ 68.2%
src/renderer/tabState.ts ████████████████████ 100.0%

详细报告见前端覆盖率 artifact

✅ 所有检查通过,可以合入

点击 Squash and merge 合并此PR

@Shadow-Azure
Shadow-Azure merged commit da55f4d into main Jun 4, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant