You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
SWangHash
authored and
SWangHash
committed
!121 merge fix/ohos-agent-auto-install into main
feat(acp): add platform-aware agent provisioning
Created-by: guantw
Commit-by: guantw
Merged-by: SWangHash
Description: ## Summary
- Select ACP Agent presets by execution platform: HarmonyOS local runtimes expose Kimi Code, Qwen Code, and CodeBuddy Code, while standard local and remote runtimes keep the existing catalog.
- Add managed HarmonyOS provisioning with formula-specific HarmonyBrew paths for Kimi Code and Qwen Code, plus HarmonyBrew-owned Node/npm and an OHOS compatibility shim for CodeBuddy Code.
- Reuse already installed CLIs, add requirement and provisioning status reporting with cancellation-safe cleanup, and update localized setup actions and errors.
## Type and Areas
Type: Feature / UI/UX / test
Areas: ACP interface, desktop/Tauri API, Web UI settings, HarmonyOS provisioning, i18n
## Motivation / Impact
HarmonyOS users can detect, install, and add supported ACP agents from BitFun without treating unrelated HNP tools as valid runtimes. Existing installations are reused instead of reinstalled. Standard local and remote workspaces continue to use the existing portable Agent catalog and npm-based setup path.
## Verification
- `pnpm run fmt:rs` — passed.
- `pnpm --dir src/web-ui exec vitest run src/infrastructure/config/components/AcpAgentsConfig.test.tsx` — passed (17/17).
- Focused ESLint checks for `AcpAgentsConfig.tsx` and `AcpAgentsConfig.test.tsx` — passed.
- `pnpm run check:repo-hygiene` — passed.
- `git diff --check` — passed.
- `pnpm --dir src/web-ui build` — passed.
- Built, signed, inspected, and installed the HarmonyOS HAP on a USB device.
- `pnpm run type-check:web` still reports pre-existing duplicate implementation errors in `src/web-ui/src/infrastructure/api/WorkspaceAPI.ts`; this PR does not modify that file.
## Reviewer Notes
- HarmonyOS detection-only support for OpenCode is intentionally out of scope.
- Managed provisioning does not modify the user's HarmonyBrew configuration; it resolves explicit HarmonyBrew executables and prefixes for child processes.
- The HarmonyOS local path was exercised on a device. Standard local and remote runtime execution was not manually re-exercised; focused tests cover catalog selection and action states.
## Checklist
- [x] This PR is focused and does not include secrets, temporary prompts, generated scratch files, or unrelated artifacts.
- [x] Relevant verification is recorded above, or skipped checks are explained.
- [x] User-facing strings, docs, and locales are updated where applicable.
See merge request: OpenHarmonyPCDeveloper/BitFun!121
0 commit comments