@deveco-test/deveco-code-darwin-arm64 0.1.0-1.3 → 0.1.0-20261130
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +512 -0
- package/LICENSE +180 -0
- package/LICENSES/MIT.txt +22 -0
- package/LICENSING.md +25 -0
- package/NOTICE +180 -0
- package/README.md +81 -14
- package/bin/deveco +2 -2
- package/package.json +10 -2
- package/vendor/ripgrep/rg +0 -0
- package/vendor/sandbox/build-identity.json +10 -0
- package/vendor/sandbox/platform-package.json +21 -0
- package/vendor/sandbox/sandbox.node +0 -0
- package/vendor/sandbox/wrapper-package.json +41 -0
- package/assets/readme/readme-screenshot.png +0 -0
- package/vendor/mcp-bridge-native/napi_bridge.node +0 -0
- package/vendor/mcp-bridge-native/package.json +0 -15
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,512 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## v0.2.6 (2026-11-19)
|
|
4
|
+
|
|
5
|
+
### DevEco Code 核心
|
|
6
|
+
|
|
7
|
+
#### 缺陷修复
|
|
8
|
+
|
|
9
|
+
- 修复鸿蒙版本若干已知问题
|
|
10
|
+
|
|
11
|
+
## v0.2.5 (2026-10-28)
|
|
12
|
+
|
|
13
|
+
### DevEco Code 核心
|
|
14
|
+
|
|
15
|
+
#### 新特性
|
|
16
|
+
|
|
17
|
+
- 新增 MasterGo 设计稿转 ArkTS 能力,与 Pixso / Figma 共用 Fast / Full 工作流;自动选择接入方案,支持社区插件引导安装、本机配对、断线自动重连与后台取数(`ca4e90b8a8`、`eac6390a05`)
|
|
18
|
+
- 新增 `/analyze` 故障分析命令与 `dfx` 子代理,自动识别 AppFreeze / CppCrash / JSCrash 并给出修复建议,输出会话内摘要与独立 HTML 报告(`a690f2fdf6`)
|
|
19
|
+
- 登录成功后保存国家 / 地区码,供 DevEco Studio 读取同一用户的国别设置(`cc7a159dc7`)
|
|
20
|
+
|
|
21
|
+
#### 优化
|
|
22
|
+
|
|
23
|
+
- 设计稿转 ArkTS 技能更名为 `hmos-design-to-arkts`,Pixso / Figma 路径新增 MCP 依赖前置检查与安装引导(`99ccfbb878`)
|
|
24
|
+
- ArkTS 静态检查改由 `devecocli check arkts` 提供,移除内置 `arkts_check` 工具(`d04f53cbf6`)
|
|
25
|
+
- 补充 ArkTS 导航路由规则:路由表与 `.navDestination` 互斥、`loadContent` 路径须与 `main_pages.json` 注册一致、禁止通过 `AppStorage` 共享 `NavPathStack`;同步修正 `globalThis` 替换与 `loadContent` 示例措辞(`dc24c217da`、`98c7eac57f`)
|
|
26
|
+
- 大幅降低运行时内存占用:启用 JSC 小堆模式、启动后执行一次全量回收、合并重复的模型目录副本、精简服务端与终端间的 provider 数据、缩小 SQLite 页缓存、tree-sitter 改为惰性加载(`58b604e8bd`、`d76dc150be`、`53a75727e6`、`acaee48d7e`、`6dbd51f048`、`ace7a2af99`)
|
|
27
|
+
- 体验数据上报新增缓存 token 统计,token 字段统一为 `inputTokens` / `outputTokens`;修复上报队列静默丢事件与同意状态未知时反复重试(`aa24ee3478`)
|
|
28
|
+
- 界面验证缺少模型时给出明确提示与配置指引(`13bafe6583`)
|
|
29
|
+
|
|
30
|
+
#### 缺陷修复
|
|
31
|
+
|
|
32
|
+
- 修复会话工作目录被删除后会话彻底不可用的问题:改为给出明确提示,并支持把会话迁移到仍存在的目录、完整保留历史(`f5f0a35a4f`)
|
|
33
|
+
- 修复首次登录需重复签署协议、协议面板偶发卡在加载态的问题;在线协议检查收敛到启动与华为登录两个时机(`abc2d62370`、`800418221a`)
|
|
34
|
+
- 模型排队不再受全局重试上限约束,保留服务端排队位置直到成功或用户中断(`b52d4be71b`)
|
|
35
|
+
- 用户中断主会话后,已完成的后台任务结果不再立即注入,改为随下一次提问一并提交(`cc1d2d3a04`)
|
|
36
|
+
- 为 SSE 事件订阅、工具 HTTP 响应体、MCP 资源附件设置大小上限,避免超大响应撑爆内存(`80a8cac569`、`1919b100ba`、`ffea464666`)
|
|
37
|
+
|
|
38
|
+
#### 重构
|
|
39
|
+
|
|
40
|
+
- 拆分协议检查与界面准入相关函数,降低复杂度(`8e630593d5`)
|
|
41
|
+
|
|
42
|
+
### TUI 终端界面
|
|
43
|
+
|
|
44
|
+
#### 优化
|
|
45
|
+
|
|
46
|
+
- 切换会话时回收非活跃会话的消息、附件与差异数据,缓解长时使用下的内存增长(`f2ec8101a6`)
|
|
47
|
+
|
|
48
|
+
## v0.2.4 (2026-10-15)
|
|
49
|
+
|
|
50
|
+
### DevEco Code 核心
|
|
51
|
+
|
|
52
|
+
#### 新特性
|
|
53
|
+
|
|
54
|
+
- 新增设计稿转 ArkTS 能力:支持将 Pixso / Figma 设计稿转换为可运行的 ArkTS 页面,覆盖需求澄清、方案设计、页面与交互实现、HDS 组件适配、质量审计全流程,提供 Fast / Full 两档模式,Full 模式额外支持多轮视觉校准(`e7b2941857`)
|
|
55
|
+
|
|
56
|
+
#### 缺陷修复
|
|
57
|
+
|
|
58
|
+
- 修复 `devecocli` 在非包目录工作目录下调用挂起的问题(`74a8dcd630`)
|
|
59
|
+
- 修复模型输出上限未按配置生效,避免长输出被截断、部分模型反复触发上下文压缩(`f535194ff6`)
|
|
60
|
+
|
|
61
|
+
## v0.2.3 (2026-10-10)
|
|
62
|
+
|
|
63
|
+
### DevEco Code 核心
|
|
64
|
+
|
|
65
|
+
#### 新特性
|
|
66
|
+
|
|
67
|
+
- 新增历史裁剪(Snip):长会话中自动精简较早轮次的文件读取与搜索结果,降低上下文占用(`66ecf05`)
|
|
68
|
+
|
|
69
|
+
#### 缺陷修复
|
|
70
|
+
|
|
71
|
+
- 修复启动后停留在检查界面无法进入的问题(`74c374d`)
|
|
72
|
+
|
|
73
|
+
### TUI 终端界面
|
|
74
|
+
|
|
75
|
+
#### 新特性
|
|
76
|
+
|
|
77
|
+
- 会话中展示历史裁剪提示,Context 面板同步扣减裁剪释放的 token(`66ecf05`)
|
|
78
|
+
|
|
79
|
+
## v0.2.2 (2026-10-09)
|
|
80
|
+
|
|
81
|
+
### DevEco Code 核心
|
|
82
|
+
|
|
83
|
+
#### 新特性
|
|
84
|
+
|
|
85
|
+
- 体验改进数据上报改为按账号记录、默认关闭,可随时在隐私设置中更改(`6549dc8c77`)
|
|
86
|
+
|
|
87
|
+
#### 缺陷修复
|
|
88
|
+
|
|
89
|
+
- 修复第三方 Provider 场景下未校验 `DEVECO_HOME` 配置(`fa01f1e4f7`)
|
|
90
|
+
- 修复若干鸿蒙电脑上的已知问题
|
|
91
|
+
|
|
92
|
+
### TUI 终端界面
|
|
93
|
+
|
|
94
|
+
#### 优化
|
|
95
|
+
|
|
96
|
+
- 用量配额条改为「剩余优先」显示,剩余不足 20% 时黄色告警,配额超额时显示超额用量(`a81c536c9a`)
|
|
97
|
+
|
|
98
|
+
## v0.2.1 (2026-09-29)
|
|
99
|
+
|
|
100
|
+
### DevEco Code 核心
|
|
101
|
+
|
|
102
|
+
#### 缺陷修复
|
|
103
|
+
|
|
104
|
+
- 修复代理网络环境下华为账号登录与协议请求失败(`c68ca36`)
|
|
105
|
+
- 修复 Codex 登录后 gpt-6 系列模型未显示(`a7ae14c`)
|
|
106
|
+
- 修复一些已知问题
|
|
107
|
+
|
|
108
|
+
## v0.2.0 (2026-09-24)
|
|
109
|
+
|
|
110
|
+
### DevEco Code 核心
|
|
111
|
+
|
|
112
|
+
#### 新特性
|
|
113
|
+
|
|
114
|
+
- 支持鸿蒙电脑(`160e645`)
|
|
115
|
+
- 使用第三方 Provider 无需登录华为账号,仅内置模型需登录并完成实名认证(`c6f4854`)
|
|
116
|
+
- 更新内置 DevEco CLI 至 v1.3.4(`5ede2fc4`)
|
|
117
|
+
- worktree 特性默认开启(`c97716f`)
|
|
118
|
+
- 向生成 `.ets` 代码的 agent 注入 ArkTS/ArkUI 代码规范(`fc6488e`)
|
|
119
|
+
- 支持在非空目录中安全创建项目(`884c5ff`)
|
|
120
|
+
- 文档检索命令统一经由内置 CLI 代理(`1d76bfd`)
|
|
121
|
+
- 新增技能偏好设置,支持按全局或项目禁用指定技能(`791f934`)
|
|
122
|
+
- 新增实名认证引导弹窗,关闭华为授权弹窗时终止进行中的登录流程(`4fa3304`)
|
|
123
|
+
|
|
124
|
+
#### 优化
|
|
125
|
+
|
|
126
|
+
- 构建、运行、日志能力收敛至内置 DevEco CLI,统一由 `devecocli` 承接,新增日志清理、`--tail` 校验、创建冲突检测与模拟器自动启动(`3f6eb64`、`559922d`、`1d60720`)
|
|
127
|
+
- 更新 UI 验证 MCP(`b24c309`)
|
|
128
|
+
- 模型推理强度档位改由模型目录自动派生,扩展支持的模型范围(`14078a2`)
|
|
129
|
+
- 补充 ArkTS 状态管理与导航相关规范(`59529e5`)
|
|
130
|
+
|
|
131
|
+
#### 缺陷修复
|
|
132
|
+
|
|
133
|
+
- 修复自动启动模拟器后未等待就绪即运行导致阻塞(`5473f6d`)
|
|
134
|
+
- 恢复内置 CLI 技能加载(`2574319`)
|
|
135
|
+
- 修复 Windows 下 Bun 虚拟路径识别(`9cb1dc2`)
|
|
136
|
+
- 修复日志清理未校验目标设备、失败被误报为成功(`8bc95e6`)
|
|
137
|
+
- 修复文档预览截断后无法读取完整内容(`e65b278`)
|
|
138
|
+
- 修复 goal 模式文档检索范围与 build 模式不一致(`f71cc15`)
|
|
139
|
+
- 快照排除 `.codegenie` 目录(`431d772`)
|
|
140
|
+
- 修复 trace 上报字段因空值被平台丢弃(`e5bc1fa`)
|
|
141
|
+
- 升级 Bun 至 1.4.2,修复 pty 状态卡在运行中、SSE 超时未捕获异常(`aeb4536`)
|
|
142
|
+
- 修复自动合并工作流在合并失败时仍提示成功(`9d90028`)
|
|
143
|
+
- 修复认证后模型列表未同步刷新(`472631f`)
|
|
144
|
+
- 恢复项目创建技能及其校验脚本(`fc92b20`)
|
|
145
|
+
|
|
146
|
+
#### 重构
|
|
147
|
+
|
|
148
|
+
- 技能体系重整:`arkts-grammar-standards` 重命名为 `hmos-arkui-develop-skill` 并重组参考文档,移除废弃的 `arkts-error-fixes`(`770a829`、`b01d8d1`、`05f3bd8`)
|
|
149
|
+
|
|
150
|
+
#### 文档
|
|
151
|
+
|
|
152
|
+
- 对齐内置 CLI 技能文档(`29799f4`)
|
|
153
|
+
|
|
154
|
+
### TUI 终端界面
|
|
155
|
+
|
|
156
|
+
#### 新特性
|
|
157
|
+
|
|
158
|
+
- 会话滚动至非边缘时显示跳转提示,点击可跳至最早/最新消息并重新吸附(`8f6bf1a`)
|
|
159
|
+
|
|
160
|
+
#### 缺陷修复
|
|
161
|
+
|
|
162
|
+
- 修复 token 耗尽时按 Esc 导致上下文丢失(`eee4fce`)
|
|
163
|
+
- 修复引导流程同意门禁死循环与面板重挂载异常(`1063ce2`、`0707911`)
|
|
164
|
+
|
|
165
|
+
## v0.1.12 (2026-09-04)
|
|
166
|
+
|
|
167
|
+
### DevEco Code 核心
|
|
168
|
+
|
|
169
|
+
#### 新特性
|
|
170
|
+
|
|
171
|
+
- 云端模型配置无损保留,支持 `Ctrl+T` 切换推理强度档位,状态栏展示当前生效档位(`a1568e0`)
|
|
172
|
+
- 更新内置 DevEco CLI 至 v1.3.2(`acfaa13`)
|
|
173
|
+
|
|
174
|
+
#### 缺陷修复
|
|
175
|
+
|
|
176
|
+
- 修复推理模型的思考内容被误用作会话标题(`6a78fac`)
|
|
177
|
+
|
|
178
|
+
## v0.1.11 (2026-09-02)
|
|
179
|
+
|
|
180
|
+
### DevEco Code 核心
|
|
181
|
+
|
|
182
|
+
#### 缺陷修复
|
|
183
|
+
|
|
184
|
+
- 实名认证复核改为复用浏览器登录流程,简化重新验证操作(`849623b9ce`)
|
|
185
|
+
|
|
186
|
+
#### 文档
|
|
187
|
+
|
|
188
|
+
- Provider 配置示例改用通用占位符,消除误导性内置 provider 示例(`0e75e01467`)
|
|
189
|
+
|
|
190
|
+
### TUI 终端界面
|
|
191
|
+
|
|
192
|
+
#### 新特性
|
|
193
|
+
|
|
194
|
+
- 新增 `/usage` 和 `/stats` 命令,打开标签式面板展示用量与配额统计,含热力图、模型卡片及配额进度(`a063068cf2`)
|
|
195
|
+
|
|
196
|
+
## v0.1.10 (2026-08-29)
|
|
197
|
+
|
|
198
|
+
### DevEco Code 核心
|
|
199
|
+
|
|
200
|
+
#### 新特性
|
|
201
|
+
|
|
202
|
+
- 新增 `--auto`/`--yolo` 权限自动批准标志,跳过工具调用确认(`89c7804`)
|
|
203
|
+
- 更新内置 DevEco CLI 至 v1.3.0(`c95e744`、`ecd05b6`)
|
|
204
|
+
|
|
205
|
+
#### 优化
|
|
206
|
+
|
|
207
|
+
- 移除过时的 `DEVECO_DEFAULTS` 回退逻辑(`f353e9a`)
|
|
208
|
+
|
|
209
|
+
#### 缺陷修复
|
|
210
|
+
|
|
211
|
+
- 修复登录 URL 在 Windows 上无法通过 shell 打开的问题(`185b685`)
|
|
212
|
+
- 限制会话重试次数,配额耗尽时提前终止(`10f8246`)
|
|
213
|
+
|
|
214
|
+
### TUI 终端界面
|
|
215
|
+
|
|
216
|
+
#### 新特性
|
|
217
|
+
|
|
218
|
+
- 新增 subagent 监控侧边栏面板(`57be7fa`)
|
|
219
|
+
- 流式编辑统计改为按行计数(`690909f`)
|
|
220
|
+
|
|
221
|
+
#### 缺陷修复
|
|
222
|
+
|
|
223
|
+
- 修复模板化技能体的技能徽章渲染问题(`0c326df`)
|
|
224
|
+
- 优化收集对话框交互细节(`e1816523`)
|
|
225
|
+
|
|
226
|
+
## v0.1.9 (2026-08-20)
|
|
227
|
+
|
|
228
|
+
### DevEco Code 核心
|
|
229
|
+
|
|
230
|
+
#### 新特性
|
|
231
|
+
|
|
232
|
+
- 内置 [DevEco CLI](https://gitcode.com/openharmony-sig/deveco-cli),封装 `ohpm`、`hvigor`、`hdc` 等工具链,集成脚手架、技能安装与 MCP 服务
|
|
233
|
+
|
|
234
|
+
#### 优化
|
|
235
|
+
|
|
236
|
+
- 加固 Windows 安装程序:新增互斥锁防并发安装、失败自动重试、原子切换启动器(`1452fe8`)
|
|
237
|
+
|
|
238
|
+
#### 缺陷修复
|
|
239
|
+
|
|
240
|
+
- 修复 Windows baseline 包 CLI 入口缺失问题(`437de3d`)
|
|
241
|
+
|
|
242
|
+
### TUI 终端界面
|
|
243
|
+
|
|
244
|
+
#### 优化
|
|
245
|
+
|
|
246
|
+
- 音频播放支持设备热切换:输出设备变更时自动重新绑定,恢复播放(`2bf3a39`)
|
|
247
|
+
- 更新日志导出命令的国际化描述(`73882b9`)
|
|
248
|
+
|
|
249
|
+
## v0.1.8 (2026-08-18)
|
|
250
|
+
|
|
251
|
+
### DevEco Code 核心
|
|
252
|
+
|
|
253
|
+
#### 新特性
|
|
254
|
+
|
|
255
|
+
- 新增 Web UI 服务,支持通过浏览器直接访问 DevEco Code(`9d0e9ad`、`f11cd68`)
|
|
256
|
+
- 凭证存储采用操作系统钥匙串加密,提升静态安全性(`02271d0`)
|
|
257
|
+
- 登录流程新增第三方供应商确认环节(`1cf075d`)
|
|
258
|
+
- 地区访问策略新增欧洲时区限制(`cf5b6c0`)
|
|
259
|
+
|
|
260
|
+
#### 优化
|
|
261
|
+
|
|
262
|
+
- 版本检查改为后台异步执行,不阻塞启动流程(`6174dc9`)
|
|
263
|
+
|
|
264
|
+
#### 缺陷修复
|
|
265
|
+
|
|
266
|
+
- 多项安全加固:防御路径穿越与 SQL 注入、SSRF 与 HTML 注入防护、认证 Cookie 加固、分享 ID 防猜测、图标上传校验、账单 URL 加固、管理员权限校验、密钥字段重命名、移除 URL 中的认证参数(`86d6cfc`、`d75cad2`、`8ef8464`、`e1442c6`、`6b5f93f`、`4957539`、`e26bc29`、`ba09517`、`d033446`、`67b45f3`、`9fec08d`、`76dc880`、`e89f08d`、`96f78c1`、`5ffe841`、`c6f60db`、`5bb6e89`、`745d33a`、`598b1c4`、`35e5a31`)
|
|
267
|
+
- 修复 TLS 密码套件兼容性问题,适配 BoringSSL 环境(`2e16be9`、`cded53e`、`86d5be8`、`f1d0b45`、`7982bc8`、`bf1f25a`)
|
|
268
|
+
- 修复版本检查挂起导致自升级失败,消除重复升级通知(`1a03fa6`、`f3c75ba`、`6b92f54`、`44fd3e1`)
|
|
269
|
+
- 修复会话排序因 ID 回绕导致乱序(`340893e`)
|
|
270
|
+
- 修复重跑失败命令问题,新增 list-issues 命令(`5de32c2`)
|
|
271
|
+
- 加固 ui-verification 进程清理与环境变量限制(`bead02d`、`0cc4a4d`)
|
|
272
|
+
- 修复 Web 搜索 API 密钥传递方式(`a7d9a23`)
|
|
273
|
+
- 修复地区受限错误未正确展示(`5b4eb0e`)
|
|
274
|
+
- 移除内置默认模型回退逻辑(`53c7042`)
|
|
275
|
+
- 修复实名认证状态检查返回缓存数据导致状态不同步(`e4d8905`)
|
|
276
|
+
- 修复 token 刷新失败时未正确触发重新登录(`e842e4e`)
|
|
277
|
+
|
|
278
|
+
#### 文档
|
|
279
|
+
|
|
280
|
+
- 统一 CLAUDE.md 与 AGENTS.md 规范(`119f9f7`、`b4766ae`)
|
|
281
|
+
|
|
282
|
+
### TUI 终端界面
|
|
283
|
+
|
|
284
|
+
#### 新特性
|
|
285
|
+
|
|
286
|
+
- 新增 token 用量统计,支持 verbose 模式查看(`51c36bd`)
|
|
287
|
+
|
|
288
|
+
#### 优化
|
|
289
|
+
|
|
290
|
+
- 版本检查流程重构:后台异步检查并展示 spinner 动画,升级等待界面显示 logo(`d6472f5`、`1a7c557`、`44fd3e1`)
|
|
291
|
+
|
|
292
|
+
#### 缺陷修复
|
|
293
|
+
|
|
294
|
+
- 修复升级状态管理:成功后清除状态、消除重复通知弹窗(`f3c75ba`、`6b92f54`)
|
|
295
|
+
- 修复升级进度条卡顿问题(`1a7c557`)
|
|
296
|
+
- 修复日志导出对话框 URL 校验(`31ac49c`)
|
|
297
|
+
|
|
298
|
+
## v0.1.7 (2026-08-03)
|
|
299
|
+
|
|
300
|
+
### DevEco Code 核心
|
|
301
|
+
|
|
302
|
+
#### 新特性
|
|
303
|
+
|
|
304
|
+
- 地区访问策略新增 UTC+8 偏移回退与系统区域检测,扩展中国时区白名单(`bc637c8`)
|
|
305
|
+
|
|
306
|
+
### TUI 终端界面
|
|
307
|
+
|
|
308
|
+
#### 缺陷修复
|
|
309
|
+
|
|
310
|
+
- 修复流式编辑/写入字数统计因 JSON 转义未解码导致计数虚高(`a6e432e`)
|
|
311
|
+
- 修复启动时布局竞争导致的偶现启动失败问题(`c17c895`)
|
|
312
|
+
|
|
313
|
+
## v0.1.6 (2026-08-01)
|
|
314
|
+
|
|
315
|
+
### DevEco Code 核心
|
|
316
|
+
|
|
317
|
+
#### 新特性
|
|
318
|
+
|
|
319
|
+
- 新增地区访问策略,基于时区与实名国籍限制中国大陆区域使用(`5810c71`、`2e408b5`)
|
|
320
|
+
- 集成 Magpie 埋点:采集工具调用链路,复用端点配置,过滤非 DevEco 事件,优化归因精度与统一同意管理(`8a0413a`、`6e6043e`、`1776688`、`766509a`、`fbfd228`、`4a888ee`)
|
|
321
|
+
- 新增 GitCode CI/CD 工作流,涵盖发版、类型检查与测试(`7df5df8`)
|
|
322
|
+
|
|
323
|
+
#### 缺陷修复
|
|
324
|
+
|
|
325
|
+
- 安全加固:密码采用恒定时间比对、登录 URL 防命令注入、工具参数限制为 JSON(`20e4567`、`9fb4045`、`273b7d7`)
|
|
326
|
+
|
|
327
|
+
### TUI 终端界面
|
|
328
|
+
|
|
329
|
+
#### 新特性
|
|
330
|
+
|
|
331
|
+
- 编辑流式输出时实时显示字数统计(`af0d72d`)
|
|
332
|
+
|
|
333
|
+
#### 优化
|
|
334
|
+
|
|
335
|
+
- 移除 `/btw` 命令说明文本(`c0191d1`)
|
|
336
|
+
|
|
337
|
+
## v0.1.5 (2026-07-27)
|
|
338
|
+
|
|
339
|
+
### DevEco Code 核心
|
|
340
|
+
|
|
341
|
+
#### 新特性
|
|
342
|
+
|
|
343
|
+
- 启动前弹出工作区信任确认,防止在不受信目录下误执行(`e4c18b6`)
|
|
344
|
+
|
|
345
|
+
### TUI 终端界面
|
|
346
|
+
|
|
347
|
+
#### 新特性
|
|
348
|
+
|
|
349
|
+
- 新增通知设置对话框,支持全局开关、音量调节及 6 类事件的独立音效选择(`c3f91a6`)
|
|
350
|
+
|
|
351
|
+
#### 优化
|
|
352
|
+
|
|
353
|
+
- 移除日志收集菜单与崩溃后自动上报弹窗(`0483e25`)
|
|
354
|
+
|
|
355
|
+
#### 缺陷修复
|
|
356
|
+
|
|
357
|
+
- 规范化 btw 浮层错误展示:按错误码映射 i18n 文案,修复出错时提示键误显示(`1f0e98e`)
|
|
358
|
+
|
|
359
|
+
## v0.1.4 (2026-07-24)
|
|
360
|
+
|
|
361
|
+
### DevEco Code 核心
|
|
362
|
+
|
|
363
|
+
#### 新特性
|
|
364
|
+
|
|
365
|
+
- 新增崩溃检测与日志自动上传,上传前对敏感信息做脱敏处理(`a7d9157`、`17e1bc4`、`99dafcc`、`3722c14`)
|
|
366
|
+
- 新增 TUI 使用遥测与会话级 AI 追踪打点(`0e9ff88`、`ab5d917`、`5f0ec58`)
|
|
367
|
+
- 同步会话级调试能力,增强 debug 命令的会话诊断(`2e41d04`)
|
|
368
|
+
|
|
369
|
+
#### 优化
|
|
370
|
+
|
|
371
|
+
- 清理冗余 `.ts` 技能脚本源文件(`af8bf56`)
|
|
372
|
+
- 修复斜杠命令需额外空格才能退出搜索模式的问题(`8754402`)
|
|
373
|
+
- 技能默认资源新增 `customize-deveco`,修复 `deveco-create-project` 的 codeCheck 校验规则(`89f9fd0`、`21a76ef`)
|
|
374
|
+
- 0-1 技能新增 `AGENTS.md` 配置引导,修复 goal 模式 `plan.md` 未指定 v2 状态管理(`845fa8d`、`7cd45ac`)
|
|
375
|
+
|
|
376
|
+
### TUI 终端界面
|
|
377
|
+
|
|
378
|
+
#### 新特性
|
|
379
|
+
|
|
380
|
+
- 新增 `/btw` 浮层,支持会话中随时提追问(`3902edf`)
|
|
381
|
+
- 智能 Esc 中断:单击中断生成,再按确认取消对话(`510cbca`)
|
|
382
|
+
- 登录页展示错误信息,未通过时即时反馈原因(`29afa10`)
|
|
383
|
+
|
|
384
|
+
#### 缺陷修复
|
|
385
|
+
|
|
386
|
+
- 修复 JetBrains Terminal 下鼠标悬停异常(`806bd0a`)
|
|
387
|
+
- 修复反复 `Ctrl+C` 重启后终端黑屏(`cefa9a8`)
|
|
388
|
+
|
|
389
|
+
## v0.1.3 (2026-07-17)
|
|
390
|
+
|
|
391
|
+
### DevEco Code 核心
|
|
392
|
+
|
|
393
|
+
#### 新特性
|
|
394
|
+
|
|
395
|
+
- 新增离线发版说明查看器,登录后可在 TUI 内直接浏览历史版本的更新内容(`44540db`)
|
|
396
|
+
- 登录流程增加实名校验环节,未通过时引导用户完成实名(`a8671f2`)
|
|
397
|
+
- 协议需重新签署时显示 toast 提示,及时告知用户协议状态变更(`dff7998`)
|
|
398
|
+
- 适配 API >= 26 的 `sdkVersion` 格式,确保新版本 API 元数据与构建链一致(`9ce4d1f`)
|
|
399
|
+
- 过滤技能加载时引入的冗余 `skill_files`,仅保留运行所需文件(`25acb4d`)
|
|
400
|
+
- OpenAI 兼容 provider 支持 `user_id` 透传,便于追踪与会话关联(`4ed0b88`)
|
|
401
|
+
|
|
402
|
+
#### 优化
|
|
403
|
+
|
|
404
|
+
- 缓存认证检查结果,执行 `/new` 命令时跳过重复校验,提升新建会话响应速度(`82eb48d`)
|
|
405
|
+
- 升级版本时,patch 版本(x.y.z → x.y.z+1)的更新无需用户确认(`e4d57ef`)
|
|
406
|
+
|
|
407
|
+
### TUI 终端界面
|
|
408
|
+
|
|
409
|
+
#### 新特性
|
|
410
|
+
|
|
411
|
+
- 终端支持双击选词,便于按词粒度复制或编辑(`8f7b12c`)
|
|
412
|
+
- `Ctrl+C` / `Ctrl+D` 退出改为两段式确认,避免误触导致会话意外终止(`14a16c3`)
|
|
413
|
+
- 替换 AI 提示的警告图标,并补齐对应 i18n 文案(`a292d16`)
|
|
414
|
+
|
|
415
|
+
#### 缺陷修复
|
|
416
|
+
|
|
417
|
+
- 优化 onboarding 页面间距与滚动条可见性,改善长内容场景下的浏览体验(`70f52b5`)
|
|
418
|
+
|
|
419
|
+
## v0.1.2 (2026-07-09)
|
|
420
|
+
|
|
421
|
+
### DevEco Code 核心
|
|
422
|
+
|
|
423
|
+
#### 新特性
|
|
424
|
+
|
|
425
|
+
- 全面更新 `arkts` 技能知识库,扩展 ArkUI 组件参考与 API 护栏,提升代码生成准确性(`638c180`)
|
|
426
|
+
|
|
427
|
+
#### 优化
|
|
428
|
+
|
|
429
|
+
- goal 模式 `plan.md` 工程结构输出对齐 ArkUI 最佳实践(`3b11304`)
|
|
430
|
+
|
|
431
|
+
#### 缺陷修复
|
|
432
|
+
|
|
433
|
+
- 加固认证链路:改进 token 刷新错误处理,启动时自动检测 JWT 过期并提示重登录(`802431c`、`b45c586`)
|
|
434
|
+
- 修复 `arkts-check` 对 `$$` / `$` 绑定语法糖的假阳性告警(`f427e94`)
|
|
435
|
+
- plan 模式阶段评审检测需求范围变化并强制回溯(`16e4024`)
|
|
436
|
+
|
|
437
|
+
#### 重构
|
|
438
|
+
|
|
439
|
+
- 登录与 `DEVECO_HOME` 检测迁移至 TUI onboarding,统一引导入口(`7c26d1e`)
|
|
440
|
+
- 清理过时 `arkui-knowledge` 技能引用(`43b826e`)
|
|
441
|
+
- 提示词补充 DevEco Studio 签名配置手动操作提醒(`6cc90ad`)
|
|
442
|
+
|
|
443
|
+
### TUI 终端界面
|
|
444
|
+
|
|
445
|
+
#### 优化
|
|
446
|
+
|
|
447
|
+
- `/feedback` 跳转修正为 GitCode issues 页面(`a8ba6c8`)
|
|
448
|
+
|
|
449
|
+
#### 缺陷修复
|
|
450
|
+
|
|
451
|
+
- 恢复主视图选中即复制(copy-on-select)功能(`5901beb`)
|
|
452
|
+
|
|
453
|
+
## v0.1.1 (2026-07-02)
|
|
454
|
+
|
|
455
|
+
### DevEco Code 核心
|
|
456
|
+
|
|
457
|
+
#### 新特性
|
|
458
|
+
|
|
459
|
+
- 新增 `arkts_check` 静态检查工具,于项目构建前置执行,并替代原有的 `check_ets_files` 校验(`30ebb05`、`f7afb1b`、`471fd82`)
|
|
460
|
+
- 新增 `debug` 调试命令,并完善其中文使用说明(`32bfb77`、`0ea5493`)
|
|
461
|
+
- 为 DevEco Code 推理模型启用 `thinking` 参数,支持推理过程输出(`766e2d6`)
|
|
462
|
+
- 默认启用后台 subagent 运行时开关,提升并行任务处理能力(`7eb2c42`)
|
|
463
|
+
- 模板复制脚本(`copy-template.mjs`)执行完成后,会话工作目录自动切换至生成的项目根目录(`44a56b1`)
|
|
464
|
+
- 新增 Windows baseline 版本包发布,以兼容不支持 AVX2 指令集的 CPU(`f198b45`)
|
|
465
|
+
|
|
466
|
+
#### 优化
|
|
467
|
+
|
|
468
|
+
- 强化 goal 模式需求澄清能力,并在 spec-implementation 阶段抽离专用 subagent 承载实现(`615b731`、`4963e0d`)
|
|
469
|
+
- 工具调用支持并行执行,缩短多工具场景耗时(`9c89cc1`)
|
|
470
|
+
- 加固 `arkts_check` 的 `ensureScriptOnDisk` 校验,提升脚本落盘检查的稳健性(`b6790b0`)
|
|
471
|
+
- 主包打包纳入 `README.md` 与 `assets/` 资源,保障安装后文档与素材随包可用(`1d54cef`)
|
|
472
|
+
- 调整一项 runtime flag 默认值为 `false`,收敛默认行为(`0fdb5fc`)
|
|
473
|
+
|
|
474
|
+
#### 缺陷修复
|
|
475
|
+
|
|
476
|
+
- 加固 token 刷新链路:整合刷新逻辑、防御空 `accessToken`、新增 `SESSION_EXPIRED` 状态并在刷新时同步更新内存态 token,避免会话因令牌失效而中断(`b545602`、`17ad7a5`、`cb71b79`)
|
|
477
|
+
- `deveco-create-project` 的 SDK 错误改为立即终止而非回退兜底,并完善 SDK 版本确认逻辑(含 codeCheck),防止错误被静默吞没(`c185817`、`8b3270b`、`2277984`)
|
|
478
|
+
- 修复复制模板时 `modelVersion` 与 `EntryAbility_label` 字段未正确同步的问题(`d438216`)
|
|
479
|
+
- 修复内置技能提取与开发模式加载失效的问题(`0e9dee5`)
|
|
480
|
+
- 升级 `@deveco-codegenie/mcp-bridge` 至 1.1.11,并将其从 `minimumReleaseAge` 发布门禁中豁免(`f60775a`、`c93e1cc`)
|
|
481
|
+
- 恢复 deveco-code 打包的自定义构建配置,并补回 ripgrep / mcp-bridge 下载的 postinstall 钩子,保障安装期二进制就位(`5ff55b5`、`107cfb8`)
|
|
482
|
+
- 对齐 `build.ts` 与 `pipeline-build.ts` 中的 vendor 路径,消除本地与流水线构建产物差异(`7dded29`)
|
|
483
|
+
- 修复 PowerShell 下中文输出乱码,保障 Windows 终端中文可读(`5d72cbb`)
|
|
484
|
+
|
|
485
|
+
#### 重构
|
|
486
|
+
|
|
487
|
+
- 将全部 `Log.create` 调用迁移至 `Effect.log*`,并移除旧版 Log 模块,统一日志体系(`d169b1c`)
|
|
488
|
+
|
|
489
|
+
#### 文档
|
|
490
|
+
|
|
491
|
+
- 上线离线文档站点,并于 README 中补充访问入口(`42b361f`)
|
|
492
|
+
- 移除冗余的 overview 条目与 Releases 下载说明,精简文档表述(`6c7e6a5`)
|
|
493
|
+
- 在 UI 校验文档中澄清多模态模型的使用方式,避免误用(`4453391`)
|
|
494
|
+
|
|
495
|
+
### TUI 终端界面
|
|
496
|
+
|
|
497
|
+
#### 新特性
|
|
498
|
+
|
|
499
|
+
- 落地中英文国际化首版,覆盖命令菜单、权限提示、`/init`、`/review` 等交互节点,支持运行时语言切换(`999e6df`、`89d5698`、`093451b`、`80b4eb7`、`ba3701d`)
|
|
500
|
+
- 点击 logo 时新增交互式爆破动效,增强启动时刻的视觉反馈(`bace2c3`)
|
|
501
|
+
- `@` 弹层新增「输入即过滤」提示,提升智能体 / 文件检索的引导性(`d86ac61`)
|
|
502
|
+
|
|
503
|
+
#### 优化
|
|
504
|
+
|
|
505
|
+
- 默认启用会话滚动条,改善长会话浏览体验(`05e6a93`)
|
|
506
|
+
|
|
507
|
+
#### 缺陷修复
|
|
508
|
+
|
|
509
|
+
- 移除 `/language` 斜杠命令(保留调色板入口)并清理冗余的 `prompt.*` i18n 键(`fac0737`、`57ed63b`)
|
|
510
|
+
- 退出尾声 logo 配色与 CLI banner 调色板对齐,统一视觉收尾(`f0a93b4`)
|
|
511
|
+
- 恢复 `DEVECO_HOME` 自动检测与登录检查(含 `requireLogin` 前置校验),避免未登录态误入主界面(`b33e8d4`、`cd4a560`)
|
|
512
|
+
- 修复 `unknown component type: spinner` 运行报错,消除启动期组件渲染异常(`912ab20`)
|
package/LICENSE
ADDED
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
15
|
+
other entities that control, are controlled by, or are under common
|
|
16
|
+
control with that entity. For the purposes of this definition,
|
|
17
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
18
|
+
direction or management of such entity, whether by contract or
|
|
19
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
20
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
21
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
22
|
+
exercising permissions granted by this License.
|
|
23
|
+
|
|
24
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
25
|
+
including but not limited to software source code, documentation
|
|
26
|
+
source, and configuration files.
|
|
27
|
+
"Object" form shall mean any form resulting from mechanical
|
|
28
|
+
transformation or translation of a Source form, including but
|
|
29
|
+
not limited to compiled object code, generated documentation,
|
|
30
|
+
and conversions to other media types.
|
|
31
|
+
|
|
32
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
33
|
+
Object form, made available under the License, as indicated by a
|
|
34
|
+
copyright notice that is included in or attached to the work
|
|
35
|
+
(an example is provided in the Appendix below).
|
|
36
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
37
|
+
form, that is based on (or derived from) the Work and for which the
|
|
38
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
39
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
40
|
+
of this License, Derivative Works shall not include works that remain
|
|
41
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
42
|
+
the Work and Derivative Works thereof.
|
|
43
|
+
"Contribution" shall mean any work of authorship, including
|
|
44
|
+
the original version of the Work and any modifications or additions
|
|
45
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
46
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
47
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
48
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
49
|
+
means any form of electronic, verbal, or written communication sent
|
|
50
|
+
to the Licensor or its representatives, including but not limited to
|
|
51
|
+
communication on electronic mailing lists, source code control systems,
|
|
52
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
53
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
54
|
+
excluding communication that is conspicuously marked or otherwise
|
|
55
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
56
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
57
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
58
|
+
subsequently incorporated within the Work.
|
|
59
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
60
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
61
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
62
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
63
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
64
|
+
Work and such Derivative Works in Source or Object form.
|
|
65
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
66
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
67
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
68
|
+
(except as stated in this section) patent license to make, have made,
|
|
69
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
70
|
+
where such license applies only to those patent claims licensable
|
|
71
|
+
by such Contributor that are necessarily infringed by their
|
|
72
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
73
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
74
|
+
institute patent litigation against any entity (including a
|
|
75
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
76
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
77
|
+
or contributory patent infringement, then any patent licenses
|
|
78
|
+
granted to You under this License for that Work shall terminate
|
|
79
|
+
as of the date such litigation is filed.
|
|
80
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
81
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
82
|
+
modifications, and in Source or Object form, provided that You
|
|
83
|
+
meet the following conditions:
|
|
84
|
+
|
|
85
|
+
(a) You must give any other recipients of the Work or
|
|
86
|
+
Derivative Works a copy of this License; and
|
|
87
|
+
|
|
88
|
+
(b) You must cause any modified files to carry prominent notices
|
|
89
|
+
stating that You changed the files; and
|
|
90
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
91
|
+
that You distribute, all copyright, patent, trademark, and
|
|
92
|
+
attribution notices from the Source form of the Work,
|
|
93
|
+
excluding those notices that do not pertain to any part of
|
|
94
|
+
the Derivative Works; and
|
|
95
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
96
|
+
distribution, then any Derivative Works that You distribute must
|
|
97
|
+
include a readable copy of the attribution notices contained
|
|
98
|
+
within such NOTICE file, excluding those notices that do not
|
|
99
|
+
pertain to any part of the Derivative Works, in at least one
|
|
100
|
+
of the following places: within a NOTICE text file distributed
|
|
101
|
+
as part of the Derivative Works; within the Source form or
|
|
102
|
+
documentation, if provided along with the Derivative Works; or,
|
|
103
|
+
within a display generated by the Derivative Works, if and
|
|
104
|
+
wherever such third-party notices normally appear. The contents
|
|
105
|
+
of the NOTICE file are for informational purposes only and
|
|
106
|
+
do not modify the License. You may add Your own attribution
|
|
107
|
+
notices within Derivative Works that You distribute, alongside
|
|
108
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
109
|
+
that such additional attribution notices cannot be construed
|
|
110
|
+
as modifying the License.
|
|
111
|
+
You may add Your own copyright statement to Your modifications and
|
|
112
|
+
may provide additional or different license terms and conditions
|
|
113
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
114
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
115
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
116
|
+
the conditions stated in this License.
|
|
117
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
118
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
119
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
120
|
+
this License, without any additional terms or conditions.
|
|
121
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
122
|
+
the terms of any separate license agreement you may have executed
|
|
123
|
+
with Licensor regarding such Contributions.
|
|
124
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
125
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
126
|
+
except as required for reasonable and customary use in describing the
|
|
127
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
128
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
129
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
130
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
131
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
132
|
+
implied, including, without limitation, any warranties or conditions
|
|
133
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
134
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
135
|
+
appropriateness of using or redistributing the Work and assume any
|
|
136
|
+
risks associated with Your exercise of permissions under this License.
|
|
137
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
138
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
139
|
+
unless required by applicable law (such as deliberate and grossly
|
|
140
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
141
|
+
liable to You for damages, including any direct, indirect, special,
|
|
142
|
+
incidental, or consequential damages of any character arising as a
|
|
143
|
+
result of this License or out of the use or inability to use the
|
|
144
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
145
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
146
|
+
other commercial damages or losses), even if such Contributor
|
|
147
|
+
has been advised of the possibility of such damages.
|
|
148
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
149
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
150
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
151
|
+
or other liability obligations and/or rights consistent with this
|
|
152
|
+
License. However, in accepting such obligations, You may act only
|
|
153
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
154
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
155
|
+
defend, and hold each Contributor harmless for any liability
|
|
156
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
157
|
+
of your accepting any such warranty or additional liability.
|
|
158
|
+
END OF TERMS AND CONDITIONS
|
|
159
|
+
|
|
160
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
161
|
+
To apply the Apache License to your work, attach the following
|
|
162
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
163
|
+
replaced with your own identifying information. (Don't include
|
|
164
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
165
|
+
comment syntax for the file format. We also recommend that a
|
|
166
|
+
file or class name and description of purpose be included on the
|
|
167
|
+
same "printed page" as the copyright notice for easier
|
|
168
|
+
identification within third-party archives.
|
|
169
|
+
Copyright [yyyy] [name of copyright owner]
|
|
170
|
+
|
|
171
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
172
|
+
you may not use this file except in compliance with the License.
|
|
173
|
+
You may obtain a copy of the License at
|
|
174
|
+
|
|
175
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
176
|
+
Unless required by applicable law or agreed to in writing, software
|
|
177
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
178
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
179
|
+
See the License for the specific language governing permissions and
|
|
180
|
+
limitations under the License.
|
package/LICENSES/MIT.txt
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 opencode
|
|
4
|
+
Copyright (c) 2025-present DevEco Code Contributors
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
SOFTWARE.
|
package/LICENSING.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# DevEco Code licensing policy
|
|
2
|
+
|
|
3
|
+
DevEco Code is distributed under the [Apache License 2.0](LICENSE). This policy
|
|
4
|
+
takes effect with the commit that introduces the repository-wide Apache-2.0
|
|
5
|
+
license. It applies to the project code throughout the repository, including
|
|
6
|
+
existing project files and new original contributions after that commit.
|
|
7
|
+
|
|
8
|
+
Project code previously distributed under MIT, including code derived from
|
|
9
|
+
OpenCode, is sublicensed under Apache-2.0 in DevEco Code distributions starting
|
|
10
|
+
with that commit. The upstream copyright and [MIT license notice](LICENSES/MIT.txt)
|
|
11
|
+
are preserved. Recipients of earlier MIT releases can continue to use those
|
|
12
|
+
releases under MIT. This sublicense grants no patent rights on behalf of
|
|
13
|
+
upstream MIT contributors.
|
|
14
|
+
|
|
15
|
+
Third-party material retains its applicable licenses and attribution.
|
|
16
|
+
Preserve existing copyright, license, and attribution notices when editing
|
|
17
|
+
or importing code. See [NOTICE](NOTICE) for attribution. Contributors must
|
|
18
|
+
have the right to submit their contributions under Apache-2.0.
|
|
19
|
+
|
|
20
|
+
New original project files are covered by this policy and do not require an
|
|
21
|
+
individual license header. An optional header can use
|
|
22
|
+
`SPDX-License-Identifier: Apache-2.0`.
|
|
23
|
+
|
|
24
|
+
Distribute `LICENSE`, `LICENSING.md`, `NOTICE`, and `LICENSES/MIT.txt`
|
|
25
|
+
with DevEco Code releases, along with applicable third-party notices.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
NOTICE
|
|
2
|
+
|
|
3
|
+
DevEco Code
|
|
4
|
+
Copyright (c) 2025-present DevEco Code Contributors
|
|
5
|
+
|
|
6
|
+
DevEco Code is distributed under the Apache License 2.0 (LICENSE).
|
|
7
|
+
See LICENSING.md for the scope of the Apache-2.0 sublicense.
|
|
8
|
+
The original MIT license and copyright notices are in LICENSES/MIT.txt.
|
|
9
|
+
|
|
10
|
+
This project is derived from OpenCode (https://github.com/anomalyco/opencode)
|
|
11
|
+
and includes modifications for HarmonyOS development and DevEco integration.
|
|
12
|
+
Copyright (c) 2025 opencode
|
|
13
|
+
|
|
14
|
+
Third-party components retain their respective licenses and notices.
|
|
15
|
+
|
|
16
|
+
===================================================================
|
|
17
|
+
THIRD-PARTY SOFTWARE NOTICES AND INFORMATION
|
|
18
|
+
===================================================================
|
|
19
|
+
|
|
20
|
+
This project uses third-party software components. The following
|
|
21
|
+
is a list of these components and their license information.
|
|
22
|
+
|
|
23
|
+
MIT License
|
|
24
|
+
|
|
25
|
+
The following components are licensed under the MIT License:
|
|
26
|
+
|
|
27
|
+
- @actions/core (1.11.1)
|
|
28
|
+
- @actions/github (6.0.1)
|
|
29
|
+
- @clack/core (1.6.0)
|
|
30
|
+
- @clack/prompts (1.0.0-alpha.1) - Copyright (c) Nate Moore
|
|
31
|
+
- @clack/prompts (1.9.0)
|
|
32
|
+
- @deveco/deveco-cli (1.3.4)
|
|
33
|
+
- @effect/opentelemetry (4.0.0-beta.74)
|
|
34
|
+
- @effect/platform-node (4.0.0-beta.74)
|
|
35
|
+
- @ff-labs/fff-bun (0.9.4) - Copyright (c) Dmitry Kovalenko
|
|
36
|
+
- @gitlab/opencode-gitlab-auth (1.3.3) - Copyright (c) Vladimir Glafirov
|
|
37
|
+
- @modelcontextprotocol/sdk (1.29.0) - Copyright (c) Anthropic, PBC (https://anthropic.com)
|
|
38
|
+
- @octokit/graphql (9.0.2) - Copyright (c) Gregor Martynus (https://github.com/gr2m)
|
|
39
|
+
- @octokit/rest (22.0.0) - Copyright (c) Gregor Martynus (https://github.com/gr2m)
|
|
40
|
+
- @openauthjs/openauth (0.0.0-20250322224806)
|
|
41
|
+
- @opentui/core (0.3.4)
|
|
42
|
+
- @opentui/keymap (0.3.4)
|
|
43
|
+
- @opentui/solid (0.3.4)
|
|
44
|
+
- @parcel/watcher (2.5.1)
|
|
45
|
+
- @solid-primitives/event-bus (1.1.2) - Copyright (c) Damian Tarnawski @thetarnav <gthetarnav@gmail.com>
|
|
46
|
+
- @solid-primitives/scheduled (1.5.2)
|
|
47
|
+
- @standard-schema/spec (1.0.0) - Copyright (c) Colin McDonnell
|
|
48
|
+
- @types/ws (8.18.1)
|
|
49
|
+
- ai-gateway-provider (3.1.2) - Copyright (c) Cloudflare Inc.
|
|
50
|
+
- bonjour-service (1.3.0) - Copyright (c) ON LX Lited <team@onlx.ltd> (https://onlx.ltd)
|
|
51
|
+
- chokidar (4.0.3) - Copyright (c) Paul Miller (https://paulmillr.com)
|
|
52
|
+
- commander (13.1.0)
|
|
53
|
+
- commander (14.0.3)
|
|
54
|
+
- cross-spawn (7.0.6) - Copyright (c) André Cruz <andre@moxy.studio>
|
|
55
|
+
- date-format (4.0.14)
|
|
56
|
+
- debug (4.4.3)
|
|
57
|
+
- decimal.js (10.5.0) - Copyright (c) Michael Mclaughlin
|
|
58
|
+
- effect (4.0.0-beta.74)
|
|
59
|
+
- fast-string-truncated-width (3.0.3)
|
|
60
|
+
- fast-string-width (3.0.2)
|
|
61
|
+
- fast-wrap-ansi (0.2.2)
|
|
62
|
+
- fs-extra (8.1.0)
|
|
63
|
+
- fuzzysort (3.1.0) - Copyright (c) farzher
|
|
64
|
+
- gitlab-ai-provider (6.9.3) - Copyright (c) Vladimir Glafirov
|
|
65
|
+
- gray-matter (4.0.3) - Copyright (c) Jon Schlinkert (https://github.com/jonschlinkert)
|
|
66
|
+
- homegraph (1.6.4)
|
|
67
|
+
- hono (4.12.26) - Copyright (c) Yusuke Wada <yusuke@kamawada.com> (https://github.com/yusukebe)
|
|
68
|
+
- htmlparser2 (8.0.2) - Copyright (c) Felix Boehm <me@feedic.com>
|
|
69
|
+
- ignore (7.0.5) - Copyright (c) kael
|
|
70
|
+
- ignore (7.0.14)
|
|
71
|
+
- immer (11.1.4) - Copyright (c) Michel Weststrate <info@michel.codes>
|
|
72
|
+
- jsonc-parser (3.3.1) - Copyright (c) Microsoft Corporation
|
|
73
|
+
- jsonfile (4.0.0)
|
|
74
|
+
- mime-types (3.0.2)
|
|
75
|
+
- ms (2.1.3)
|
|
76
|
+
- node-sqlite3-wasm (0.8.61)
|
|
77
|
+
- open (10.1.2) - Copyright (c) Sindre Sorhus
|
|
78
|
+
- opencode-gitlab-auth (2.1.0) - Copyright (c) Vladimir Glafirov
|
|
79
|
+
- opencode-poe-auth (0.0.1)
|
|
80
|
+
- opentui-spinner (0.0.7) - Copyright (c) Matt Simpson
|
|
81
|
+
- partial-json (0.1.7) - Copyright (c) Muspi Merol <me@promplate.dev>
|
|
82
|
+
- picomatch (4.0.7)
|
|
83
|
+
- remeda (2.26.0) - Copyright (c) Łukasz Sentkiewicz
|
|
84
|
+
- rfdc (1.4.1)
|
|
85
|
+
- sisteransi (2.0.0)
|
|
86
|
+
- sisteransi (1.0.5)
|
|
87
|
+
- solid-js (1.9.10) - Copyright (c) Ryan Carniato
|
|
88
|
+
- streamroller (3.1.5)
|
|
89
|
+
- strip-ansi (7.1.2) - Copyright (c) Sindre Sorhus
|
|
90
|
+
- tree-sitter-bash (0.25.0) - Copyright (c) Max Brunsfeld
|
|
91
|
+
- tree-sitter-powershell (0.25.10)
|
|
92
|
+
- turndown (7.2.0) - Copyright (c) Dom Christie
|
|
93
|
+
- ui-verification-mcp (0.0.17)
|
|
94
|
+
- ulid (3.0.1) - Copyright (c) Alizain Feerasta
|
|
95
|
+
- universalify (0.1.2)
|
|
96
|
+
- vscode-jsonrpc (8.2.1) - Copyright (c) Microsoft Corporation
|
|
97
|
+
- web-tree-sitter (0.25.10) - Copyright (c) Max Brunsfeld
|
|
98
|
+
- ws (8.21.0) - Copyright (c) Einar Otto Stangvik <einaros@gmail.com> (http://2x.io)
|
|
99
|
+
- xdg-basedir (5.1.0) - Copyright (c) Sindre Sorhus
|
|
100
|
+
- yargs (18.0.0)
|
|
101
|
+
- zod (4.6.5) - Copyright (c) Colin McDonnell <zod@colinhacks.com>
|
|
102
|
+
|
|
103
|
+
-------------------------------------------------------------------
|
|
104
|
+
|
|
105
|
+
Apache License 2.0
|
|
106
|
+
|
|
107
|
+
The following components are licensed under the Apache License 2.0:
|
|
108
|
+
|
|
109
|
+
- @agentclientprotocol/sdk (0.21.0) - Copyright (c) Zed Industries
|
|
110
|
+
- @ai-sdk/alibaba (1.0.17)
|
|
111
|
+
- @ai-sdk/amazon-bedrock (4.0.112)
|
|
112
|
+
- @ai-sdk/anthropic (3.0.82)
|
|
113
|
+
- @ai-sdk/azure (3.0.49)
|
|
114
|
+
- @ai-sdk/cerebras (2.0.41)
|
|
115
|
+
- @ai-sdk/cohere (3.0.27)
|
|
116
|
+
- @ai-sdk/deepinfra (2.0.41)
|
|
117
|
+
- @ai-sdk/gateway (3.0.104)
|
|
118
|
+
- @ai-sdk/google (3.0.73)
|
|
119
|
+
- @ai-sdk/google-vertex (4.0.128)
|
|
120
|
+
- @ai-sdk/groq (3.0.31)
|
|
121
|
+
- @ai-sdk/mistral (3.0.27)
|
|
122
|
+
- @ai-sdk/openai (3.0.53)
|
|
123
|
+
- @ai-sdk/openai-compatible (2.0.41)
|
|
124
|
+
- @ai-sdk/perplexity (3.0.26)
|
|
125
|
+
- @ai-sdk/provider (3.0.8)
|
|
126
|
+
- @ai-sdk/togetherai (2.0.41)
|
|
127
|
+
- @ai-sdk/vercel (2.0.39)
|
|
128
|
+
- @ai-sdk/xai (3.0.82)
|
|
129
|
+
- @aws-sdk/credential-providers (3.1057.0) - Copyright (c) AWS SDK for JavaScript Team
|
|
130
|
+
- @openrouter/ai-sdk-provider (2.9.0)
|
|
131
|
+
- @opentelemetry/api (1.9.0) - Copyright (c) OpenTelemetry Authors
|
|
132
|
+
- @opentelemetry/context-async-hooks (2.6.1) - Copyright (c) OpenTelemetry Authors
|
|
133
|
+
- @opentelemetry/exporter-trace-otlp-http (0.214.0) - Copyright (c) OpenTelemetry Authors
|
|
134
|
+
- @opentelemetry/sdk-trace-base (2.6.1) - Copyright (c) OpenTelemetry Authors
|
|
135
|
+
- @opentelemetry/sdk-trace-node (2.6.1) - Copyright (c) OpenTelemetry Authors
|
|
136
|
+
- @pierre/diffs (1.2.10)
|
|
137
|
+
- @silvia-odwyer/photon-node (0.3.4)
|
|
138
|
+
- ai (6.0.168)
|
|
139
|
+
- arkanalyzer (1.0.95)
|
|
140
|
+
- drizzle-orm (1.0.0-rc.2) - Copyright (c) Drizzle Team
|
|
141
|
+
- google-auth-library (10.5.0) - Copyright (c) Google Inc.
|
|
142
|
+
- log4js (6.9.1)
|
|
143
|
+
- venice-ai-sdk-provider (2.0.2)
|
|
144
|
+
|
|
145
|
+
-------------------------------------------------------------------
|
|
146
|
+
|
|
147
|
+
BSD 3-Clause License
|
|
148
|
+
|
|
149
|
+
The following components are licensed under the BSD 3-Clause License:
|
|
150
|
+
|
|
151
|
+
- @zip.js/zip.js (2.7.62) - Copyright (c) Gildas Lormeau
|
|
152
|
+
- diff (9.0.0)
|
|
153
|
+
|
|
154
|
+
-------------------------------------------------------------------
|
|
155
|
+
|
|
156
|
+
ISC License
|
|
157
|
+
|
|
158
|
+
The following components are licensed under the ISC License:
|
|
159
|
+
|
|
160
|
+
- flatted (3.4.4)
|
|
161
|
+
- graceful-fs (4.2.11)
|
|
162
|
+
- minimatch (10.0.3) - Copyright (c) Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me)
|
|
163
|
+
- npm-package-arg (13.0.2) - Copyright (c) GitHub Inc.
|
|
164
|
+
- semver (7.8.5) - Copyright (c) GitHub Inc.
|
|
165
|
+
|
|
166
|
+
-------------------------------------------------------------------
|
|
167
|
+
|
|
168
|
+
BlueOak-1.0.0
|
|
169
|
+
|
|
170
|
+
The following components are licensed under the BlueOak-1.0.0:
|
|
171
|
+
|
|
172
|
+
- glob (13.0.5) - Copyright (c) Isaac Z. Schlueter <i@izs.me> (https://blog.izs.me/)
|
|
173
|
+
|
|
174
|
+
-------------------------------------------------------------------
|
|
175
|
+
|
|
176
|
+
Unlicense
|
|
177
|
+
|
|
178
|
+
The following components are licensed under the Unlicense:
|
|
179
|
+
|
|
180
|
+
- tree-sitter-wasms (0.1.13)
|
package/README.md
CHANGED
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
<img alt="Node.js" src="https://img.shields.io/badge/Node.js-%3E%3D22-green.svg" />
|
|
13
13
|
<img alt="platform" src="https://img.shields.io/badge/platform-macOS%20(Arm%20%7C%20x64)%20%7C%20Windows-blue.svg" />
|
|
14
14
|
<a href="https://developer.huawei.com/consumer/cn/deveco-studio/"><img alt="DevEco Studio" src="https://img.shields.io/badge/DevEco%20Studio-%3E%3D6.1-orange.svg" /></a>
|
|
15
|
-
<a href="https://gitcode.com/openharmony-sig/deveco-code/blob/develop/LICENSE"><img alt="License" src="https://img.shields.io/badge/license-
|
|
15
|
+
<a href="https://gitcode.com/openharmony-sig/deveco-code/blob/develop/LICENSE"><img alt="License" src="https://img.shields.io/badge/license-Apache--2.0-green.svg" /></a>
|
|
16
16
|
</p>
|
|
17
17
|
|
|
18
18
|
<p align="center">
|
|
19
|
-
<img src="
|
|
19
|
+
<img src="https://raw.gitcode.com/openharmony-sig/deveco-code/raw/develop/assets/readme/readme-screenshot.png" alt="DevEco Code" width="600">
|
|
20
20
|
</p>
|
|
21
21
|
|
|
22
22
|
***
|
|
@@ -79,7 +79,7 @@ DevEco Code 当前通过 npm 提供以下平台安装包:
|
|
|
79
79
|
|
|
80
80
|
**终端 Shell**
|
|
81
81
|
|
|
82
|
-
- Windows:PowerShell 7+(推荐)、PowerShell 5.1+
|
|
82
|
+
- Windows:PowerShell 7+(推荐)、Windows PowerShell 5.1+
|
|
83
83
|
- macOS:Zsh(推荐)、Bash
|
|
84
84
|
|
|
85
85
|
**网络**
|
|
@@ -149,18 +149,23 @@ deveco auth logout
|
|
|
149
149
|
|
|
150
150
|
登录后可使用 DevEco Code 提供的免费模型通道。
|
|
151
151
|
|
|
152
|
-
在 DevEco Code 中输入 `/models` 可进入模型配置界面。当前免费提供 `GLM-5.1` 模型,单账号默认每分钟 50 次请求。也可以通过 `
|
|
152
|
+
在 DevEco Code 中输入 `/models` 可进入模型配置界面。当前免费提供 `GLM-5.1` 模型,单账号默认每分钟 50 次请求。也可以通过 `/connect` 进入 Provider 选择界面,配置支持的第三方模型。
|
|
153
153
|
|
|
154
|
-
|
|
154
|
+
内置免费模型通道在登录后自动可用,无需在配置文件中手动配置。如需接入其他模型服务,可以通过 `deveco.jsonc` 配置第三方 Provider(以下字段均为占位符,请替换为你的服务商信息):
|
|
155
155
|
|
|
156
156
|
```jsonc
|
|
157
157
|
{
|
|
158
158
|
"$schema": "https://opencode.ai/config.json",
|
|
159
159
|
"provider": {
|
|
160
|
-
"
|
|
161
|
-
|
|
160
|
+
// Provider ID,自定义命名即可,其他配置中通过 "<provider-id>/<model-id>" 引用模型
|
|
161
|
+
"myprovider": {
|
|
162
|
+
// 可选,缺省即为 openai-compatible;非 OpenAI 兼容的服务商才需要指定
|
|
163
|
+
"npm": "@ai-sdk/openai-compatible",
|
|
164
|
+
// 显示名称,可自定义
|
|
165
|
+
"name": "My Provider",
|
|
162
166
|
"models": {
|
|
163
|
-
|
|
167
|
+
// 替换为服务商提供的模型 ID
|
|
168
|
+
"<your-model-id>": {
|
|
164
169
|
"tool_call": true,
|
|
165
170
|
"limit": {
|
|
166
171
|
"context": 200000,
|
|
@@ -169,14 +174,55 @@ deveco auth logout
|
|
|
169
174
|
}
|
|
170
175
|
},
|
|
171
176
|
"options": {
|
|
172
|
-
|
|
173
|
-
"
|
|
177
|
+
// 替换为服务商的 API 地址
|
|
178
|
+
"baseURL": "https://<your-endpoint>/v1",
|
|
179
|
+
// 替换为你的 API Key
|
|
180
|
+
"apiKey": "<your-api-key>"
|
|
174
181
|
}
|
|
175
182
|
}
|
|
176
183
|
}
|
|
177
184
|
}
|
|
178
185
|
```
|
|
179
186
|
|
|
187
|
+
**UI 检查配置**
|
|
188
|
+
|
|
189
|
+
UI 检查是功能验证阶段的可选能力,用于验证界面是否符合需求描述。
|
|
190
|
+
|
|
191
|
+
该功能需调用多模态模型(仅用于 UI 检查,不作为主对话模型):已登录账号时默认使用内置 Qwen3.5 模型,未登录时则跳过 UI 检查。
|
|
192
|
+
|
|
193
|
+
如需配置第三方多模态模型(仅支持 Qwen 系列),可在 `deveco.jsonc` 的 `agent` 中指定,以 qwen3-vl-plus 为例:
|
|
194
|
+
|
|
195
|
+
```jsonc
|
|
196
|
+
{
|
|
197
|
+
"$schema": "https://opencode.ai/config.json",
|
|
198
|
+
"provider": {
|
|
199
|
+
"myprovider": {
|
|
200
|
+
"npm": "@ai-sdk/openai-compatible",
|
|
201
|
+
"name": "alibaba",
|
|
202
|
+
"options": {
|
|
203
|
+
"baseURL": "https://dashscope.aliyuncs.com/compatible-mode/v1",
|
|
204
|
+
"apiKey": "<your-api-key>",
|
|
205
|
+
},
|
|
206
|
+
"models": {
|
|
207
|
+
"qwen3-vl-plus": {
|
|
208
|
+
"modalities": {
|
|
209
|
+
"input": ["text", "image"],
|
|
210
|
+
"output": ["text"],
|
|
211
|
+
},
|
|
212
|
+
},
|
|
213
|
+
},
|
|
214
|
+
},
|
|
215
|
+
},
|
|
216
|
+
"agent": {
|
|
217
|
+
"ui_verification": {
|
|
218
|
+
"mode": "subagent",
|
|
219
|
+
"model": "myprovider/qwen3-vl-plus", // 格式为 <provider-id>/<model-id>
|
|
220
|
+
"hidden": true,
|
|
221
|
+
},
|
|
222
|
+
},
|
|
223
|
+
}
|
|
224
|
+
```
|
|
225
|
+
|
|
180
226
|
配置文件读取优先级:
|
|
181
227
|
|
|
182
228
|
1. 项目目录下 `.deveco/deveco.jsonc`
|
|
@@ -200,12 +246,33 @@ DevEco Code 集成了常用 HarmonyOS 开发工具能力:
|
|
|
200
246
|
| `build_project` | 执行编译构建并导出构建产物 |
|
|
201
247
|
| `start_app` | 在模拟器或真机上运行应用 |
|
|
202
248
|
| `hdc_log` | 收集/清理设备日志/查看连接模拟器 |
|
|
203
|
-
| `
|
|
204
|
-
| `arkts_knowledge_search` | HarmonyOS 知识搜索 |
|
|
249
|
+
| `verify_ui` | 执行 UI 操作验证功能是否正确 |
|
|
205
250
|
| `switch_cwd` | 切换构建项目路径 |
|
|
206
251
|
|
|
207
252
|
常见场景包括:从零到一创建 HarmonyOS 工程、增量开发页面、修复编译报错、真机调试。
|
|
208
253
|
|
|
254
|
+
### UX 设计稿生成 ArkTS 代码
|
|
255
|
+
|
|
256
|
+
内置 `hmos-design-to-arkts` Skill 可把 Figma / Pixso / MasterGo 的 UX 设计稿转换成现有 ArkTS 工程中的页面。支持基于直板机设计稿生成一套 ArkTS 代码,同时具备响应式布局与多设备适配能力,可在直板机、双折叠、三折叠、阔折叠等设备上正常运行。
|
|
257
|
+
|
|
258
|
+
使用前需按设计稿来源配置对应 MCP(配置后需重启 DevEco Code 生效):
|
|
259
|
+
|
|
260
|
+
| 来源 | 配置 |
|
|
261
|
+
| --- | --- |
|
|
262
|
+
| Figma | [Anchor MCP](https://gitcode.com/OpenHarmonyToolkitsPlaza/anchor-d2c-mcp):先设置 `FIGMA_ACCESS_TOKEN` 环境变量,再执行 `deveco mcp add`,名称 `anchor-d2c-mcp`、类型 `Local`、命令 `npx -y anchor-d2c-mcp@latest stdio` |
|
|
263
|
+
| Pixso | [Pixso MCP](https://pixso.cn/developer/zh/mcp/remote-mcp.html):远程形态免开客户端,执行 `deveco mcp add pixso-mcp --url https://pixso.cn/mcp` 后再执行 `deveco mcp auth pixso-mcp` 完成授权;也可以使用[本地 MCP](https://pixso.cn/developer/zh/mcp/local-mcp.html) 服务 |
|
|
264
|
+
| MasterGo | [Magic MCP](https://mastergo.com/help/ai-features/magic-mcp.html)(需团队版账号与 `MG_MCP_TOKEN` 环境变量)或 [Vibe MCP](https://mastergo.com/help/ai-features/vibe-mcp.html)(需已开启 MCP 的桌面客户端);两者都不适用时可用[社区插件](https://github.com/burnice-cn/mastergo-mcp-server)(插件通道,需本机配对) |
|
|
265
|
+
|
|
266
|
+
说明:MCP 未就绪时,Skill 会先给出配置引导并停下,不会带着缺失依赖开始。
|
|
267
|
+
|
|
268
|
+
在目标工程目录下启动 DevEco Code 后,给出设计稿链接和需求说明即可;Agent 会自动识别需求并加载 `hmos-design-to-arkts` Skill 生成页面代码(信息不全时会先澄清再开始):
|
|
269
|
+
|
|
270
|
+
```text
|
|
271
|
+
把这个 Figma 设计稿转成 ArkTS 页面:https://www.figma.com/design/xxxx/OrderList?node-id=1-2(订单列表画板),点击列表项进入详情页
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
提供 Fast 与 Full 两种工作流:Fast 直接快速出页面,推荐使用 Full,它额外包含组件树人工确认与按还原度评分迭代的视觉校准(需模拟器或真机)。`Goal` 模式默认 Full,`Build` 模式默认 Fast;也可在需求中直接说明使用哪一种。`Plan` 模式不支持该 Skill。
|
|
275
|
+
|
|
209
276
|
## 扩展能力
|
|
210
277
|
|
|
211
278
|
DevEco Code 兼容 OpenCode 的 Skill、MCP 和 Plugin 扩展方式。
|
|
@@ -275,13 +342,13 @@ Skills、Agents、Plugins 也可以迁移到 `~/.config/deveco` 下的对应目
|
|
|
275
342
|
|
|
276
343
|
## 帮助与支持
|
|
277
344
|
|
|
345
|
+
- 完整文档请参阅 [DevEco Code 使用文档](docs/deveco-code-docs.html)(需下载到本地后打开),也可在线阅读 [OpenCode TUI 文档](https://opencode.ai/docs/zh-cn/tui/)
|
|
278
346
|
- 常见问题请参阅 [FAQ 文档](https://gitcode.com/openharmony-sig/deveco-code/wiki/FAQ.md)
|
|
279
|
-
- 终端常用命令(如 `/models`、`/connect` 等)请参阅 [OpenCode TUI 文档](https://opencode.ai/docs/zh-cn/tui/)
|
|
280
347
|
- 反馈与交流 [GitCode Issue](https://gitcode.com/openharmony-sig/deveco-code/issues)
|
|
281
348
|
|
|
282
349
|
## 开源许可
|
|
283
350
|
|
|
284
|
-
[MIT
|
|
351
|
+
DevEco Code 采用 [Apache-2.0](LICENSE)。自仓库切换至 Apache-2.0 的提交起,历史 MIT 项目代码在新分发版本中按 Apache-2.0 再许可,后续原创贡献同样采用 Apache-2.0。上游 [MIT 许可声明](LICENSES/MIT.txt)及版权归属随分发保留。授权范围见 [LICENSING.md](LICENSING.md),项目归属与第三方声明见 [NOTICE](NOTICE)。
|
|
285
352
|
|
|
286
353
|
## 基于 OpenCode 构建的声明
|
|
287
354
|
|
package/bin/deveco
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/bin/deveco
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 160820082 bytes
|
|
4
|
+
sha256: 8ee91ec138a045e14aaaeebea90988850dc0b4d130b49a3d5cb7e8718dd664e1
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deveco-test/deveco-code-darwin-arm64",
|
|
3
|
-
"version": "0.1.0-
|
|
3
|
+
"version": "0.1.0-20261130",
|
|
4
|
+
"license": "Apache-2.0",
|
|
4
5
|
"preferUnplugged": true,
|
|
5
6
|
"os": [
|
|
6
7
|
"darwin"
|
|
@@ -8,10 +9,17 @@
|
|
|
8
9
|
"cpu": [
|
|
9
10
|
"arm64"
|
|
10
11
|
],
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"@deveco-test/deveco-harness": "0.2.0-test.18"
|
|
14
|
+
},
|
|
11
15
|
"files": [
|
|
12
16
|
"bin/**/*",
|
|
13
17
|
"vendor/**/*",
|
|
18
|
+
"CHANGELOG.md",
|
|
14
19
|
"README.md",
|
|
15
|
-
"
|
|
20
|
+
"LICENSE",
|
|
21
|
+
"LICENSING.md",
|
|
22
|
+
"NOTICE",
|
|
23
|
+
"LICENSES/MIT.txt"
|
|
16
24
|
]
|
|
17
25
|
}
|
package/vendor/ripgrep/rg
CHANGED
|
Binary file
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"package_version": "0.3.1",
|
|
3
|
+
"contract_generation": 2,
|
|
4
|
+
"target_os": "darwin",
|
|
5
|
+
"target_arch": "arm64",
|
|
6
|
+
"napi_baseline": 8,
|
|
7
|
+
"rust_target": "aarch64-apple-darwin",
|
|
8
|
+
"profile": "release",
|
|
9
|
+
"sha256": "e74af290dd763e3e6e998d72e98fd6367482dbf9f308b691aa5a2a6b1e85d791"
|
|
10
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@bitfun-ai/sandbox-darwin-arm64",
|
|
3
|
+
"version": "0.3.1",
|
|
4
|
+
"description": "BitFun sandbox native addon for macOS arm64",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "https://gitcode.com/OpenBitFun/bitfun_agent_kernel",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"access": "public",
|
|
9
|
+
"registry": "https://registry.npmjs.org/"
|
|
10
|
+
},
|
|
11
|
+
"os": [
|
|
12
|
+
"darwin"
|
|
13
|
+
],
|
|
14
|
+
"cpu": [
|
|
15
|
+
"arm64"
|
|
16
|
+
],
|
|
17
|
+
"files": [
|
|
18
|
+
"sandbox.node",
|
|
19
|
+
"build-identity.json"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@bitfun-ai/sandbox",
|
|
3
|
+
"version": "0.3.1",
|
|
4
|
+
"description": "Strict TypeScript API for the BitFun command sandbox",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "https://gitcode.com/OpenBitFun/bitfun_agent_kernel",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"access": "public",
|
|
9
|
+
"registry": "https://registry.npmjs.org/"
|
|
10
|
+
},
|
|
11
|
+
"type": "module",
|
|
12
|
+
"engines": {
|
|
13
|
+
"node": ">=22.12.0"
|
|
14
|
+
},
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"import": "./dist/index.js"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"dist"
|
|
23
|
+
],
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@types/node": "22.19.7"
|
|
26
|
+
},
|
|
27
|
+
"optionalDependencies": {
|
|
28
|
+
"@bitfun-ai/sandbox-darwin-arm64": "0.3.1",
|
|
29
|
+
"@bitfun-ai/sandbox-darwin-x64": "0.3.1",
|
|
30
|
+
"@bitfun-ai/sandbox-win32-arm64": "0.3.1",
|
|
31
|
+
"@bitfun-ai/sandbox-win32-x64": "0.3.1"
|
|
32
|
+
},
|
|
33
|
+
"scripts": {
|
|
34
|
+
"build": "../../node_modules/.bin/tsc -p tsconfig.json",
|
|
35
|
+
"typecheck": "../../node_modules/.bin/tsc -p tsconfig.json --noEmit",
|
|
36
|
+
"test": "pnpm run build && node --test test/*.test.mjs",
|
|
37
|
+
"test:contract": "pnpm run build && node --test test/contract.test.mjs",
|
|
38
|
+
"test:runtime:macos": "pnpm run build && node --test test/runtime-macos.test.mjs",
|
|
39
|
+
"test:security:macos": "pnpm run build && node --test test/security-macos.test.mjs"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
Binary file
|
|
Binary file
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@deveco-codegenie/mcp-bridge-darwin-arm64",
|
|
3
|
-
"version": "1.1.9",
|
|
4
|
-
"description": "@deveco-codegenie/mcp-bridge darwin native module",
|
|
5
|
-
"os": [
|
|
6
|
-
"darwin"
|
|
7
|
-
],
|
|
8
|
-
"cpu": [
|
|
9
|
-
"arm64"
|
|
10
|
-
],
|
|
11
|
-
"files": [
|
|
12
|
-
"napi_bridge.node",
|
|
13
|
-
"THIRD_PARTY_LICENSES.md"
|
|
14
|
-
]
|
|
15
|
-
}
|