fix(cua): update driver and skill name#1902
Conversation
📝 WalkthroughWalkthroughThis PR updates the bundled CUA driver reference from v0.6.7 to v0.7.1 across docs, plugin manifest, vendor metadata, and tool policies (adding ChangesCUA driver 0.7.1 update
Estimated code review effort: 3 (Moderate) | ~25 minutes Computer-use skill rename and active-skill migration
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant Session
participant skillPresenter
participant Storage
Session->>skillPresenter: getActiveSkills(sessionId)
skillPresenter->>skillPresenter: validateSkillNames resolves cua-driver via SKILL_NAME_ALIASES
skillPresenter->>skillPresenter: areSkillListsEqual compares resolved vs persisted list
skillPresenter->>Storage: persist normalized ['computer-use']
skillPresenter-->>Session: return ['computer-use']
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
test/main/presenter/pluginPresenter.test.ts (1)
1145-1158: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winAdd Darwin asset assertions.
plugins/cua/vendor/cua-driver/upstream.jsonalso listsdarwin-arm64anddarwin-x64assets, but this test only checks Windows and Linux filenames. Adding those two assertions would cover the fullsupportedTargetsset.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@test/main/presenter/pluginPresenter.test.ts` around lines 1145 - 1158, The CUA tool policy test in pluginPresenter.test should cover the full supportedTargets set, not just Windows and Linux filenames. Update the existing assertion block in the test around the CUA manifest/policy checks to also verify the Darwin assets from upstream.json by asserting the presence of both darwin-arm64 and darwin-x64 filenames alongside the current platform checks.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@test/main/presenter/pluginPresenter.test.ts`:
- Around line 1145-1158: The CUA tool policy test in pluginPresenter.test should
cover the full supportedTargets set, not just Windows and Linux filenames.
Update the existing assertion block in the test around the CUA manifest/policy
checks to also verify the Darwin assets from upstream.json by asserting the
presence of both darwin-arm64 and darwin-x64 filenames alongside the current
platform checks.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: ff69809e-3151-43ce-aa60-5b93bff742c2
📒 Files selected for processing (16)
docs/features/cua-cross-platform-computer-use/plan.mddocs/features/cua-cross-platform-computer-use/spec.mddocs/features/cua-cross-platform-computer-use/tasks.mddocs/issues/cua-computer-use-skill-name/spec.mddocs/issues/cua-driver-0-7-1-update/spec.mdplugins/cua/plugin.jsonplugins/cua/policies/tool-policy.jsonplugins/cua/skills/computer-use/README.mdplugins/cua/skills/computer-use/RECORDING.mdplugins/cua/skills/computer-use/SKILL.mdplugins/cua/skills/computer-use/TESTS.mdplugins/cua/skills/computer-use/WEB_APPS.mdplugins/cua/vendor/cua-driver/upstream.jsonsrc/main/presenter/skillPresenter/index.tstest/main/presenter/pluginPresenter.test.tstest/main/presenter/skillPresenter/skillPresenter.test.ts
Summary
cua-driver-rs-v0.7.1cua-drivertocomputer-usecua-drivertocomputer-useValidation
corepack pnpm exec vitest run test/main/presenter/pluginPresenter.test.tscorepack pnpm exec vitest run test/main/presenter/skillPresenter/skillPresenter.test.tscorepack pnpm run plugin:cua:build:mac:arm64corepack pnpm run plugin:cua:build:win:x64corepack pnpm run plugin:cua:build:linux:x64corepack pnpm run plugin:bundle -- --name cua --platform darwin --arch arm64corepack pnpm run formatcorepack pnpm run i18ncorepack pnpm run lintgit diff --checkCloses #1898
Closes #1900
Summary by CodeRabbit
New Features
Bug Fixes
Documentation