Commit 8b9e330
!134 merge fix/ohos-agent-auto-install into main
feat(acp): add HarmonyOS Claude and Codex agents
Created-by: guantw
Commit-by: guantw
Merged-by: SWangHash
Description: ## Summary
Add HarmonyOS-specific ACP Agent detection and installation support while preserving the existing behavior on Windows, Linux, macOS, and remote workspaces.
HarmonyOS now supports:
- Kimi Code
- Qwen Code
- CodeBuddy Code
- Claude Code
- Codex
- DeepSeek Harness
- OpenCode detection and guided acquisition
The DeepSeek Harness ACP bridge is packaged into the HarmonyOS HAP and reused through its existing `bitfun-acp` profile.
Fixes #
## Type and Areas
Type:
Feature / UI/UX
Areas:
HarmonyOS, ACP Agents, installer, web UI, Rust core, HAP packaging
## Motivation / Impact
HarmonyOS users can detect, install, and add supported ACP Agents directly from BitFun.
Agent definitions now select the appropriate implementation for the current platform. Existing Windows, Linux, macOS, and remote-workspace behavior remains unchanged.
OpenCode does not modify the user's third-party HarmonyBrew trust configuration. If an existing installation is detected, it can be added directly; otherwise, BitFun provides the corresponding installation source.
## Verification
- Passed focused ACP Agent frontend tests.
- Passed DeepSeek Harness ACP bridge tests.
- Passed TypeScript type checking and Rust formatting checks.
- Successfully built the production HarmonyOS HAP.
- Verified the packaged HAP contains the required DeepSeek Harness ACP resources.
- Installed and tested the HAP on a physical HarmonyOS device.
- Verified Agent detection, installation, configuration, and ACP startup flows on the device.
## Reviewer Notes
HarmonyOS uses platform-specific provisioning definitions. Other desktop platforms and remote workspaces continue using the existing upstream Agent definitions.
The implementation does not automatically modify or replace the user's HarmonyBrew tap trust configuration.
## 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!13413 files changed
Lines changed: 953 additions & 265 deletions
File tree
- scripts
- src
- crates/interfaces/acp/src/client
- web-ui/src
- infrastructure/config/components
- locales
- en-US/settings
- zh-CN/settings
- zh-TW/settings
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| 40 | + | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
| |||
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
48 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
49 | 67 | | |
50 | 68 | | |
51 | 69 | | |
| |||
185 | 203 | | |
186 | 204 | | |
187 | 205 | | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
188 | 235 | | |
189 | 236 | | |
190 | 237 | | |
| |||
217 | 264 | | |
218 | 265 | | |
219 | 266 | | |
| 267 | + | |
220 | 268 | | |
221 | 269 | | |
| 270 | + | |
222 | 271 | | |
223 | 272 | | |
224 | 273 | | |
| |||
227 | 276 | | |
228 | 277 | | |
229 | 278 | | |
| 279 | + | |
230 | 280 | | |
231 | 281 | | |
232 | 282 | | |
| |||
242 | 292 | | |
243 | 293 | | |
244 | 294 | | |
| 295 | + | |
| 296 | + | |
245 | 297 | | |
246 | 298 | | |
247 | 299 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
16 | 20 | | |
17 | 21 | | |
18 | 22 | | |
| |||
149 | 153 | | |
150 | 154 | | |
151 | 155 | | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
152 | 184 | | |
153 | 185 | | |
154 | 186 | | |
| |||
0 commit comments