@deveco-test/deveco-code-darwin-arm64 0.1.0-1.1 → 0.1.0-1.3-GREY
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/README.md +62 -18
- package/assets/readme/readme-screenshot.png +0 -0
- package/bin/deveco +0 -0
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
</p>
|
|
4
4
|
<p align="center">面向 HarmonyOS 开发场景的 AI Agent 工具。</p>
|
|
5
5
|
<p align="center">
|
|
6
|
-
<a href="
|
|
6
|
+
<a href="README.en.md">English</a> · 简体中文
|
|
7
7
|
</p>
|
|
8
8
|
|
|
9
9
|
<p align="center">
|
|
@@ -37,6 +37,8 @@ deveco
|
|
|
37
37
|
- 帮我检查并修复语法错误
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
+
> 建议使用 [npm 官方源](https://registry.npmjs.org/) 或 [淘宝镜像源](https://registry.npmmirror.com/) 安装,其他镜像源可能因同步延迟导致安装失败或版本滞后。
|
|
41
|
+
|
|
40
42
|
> 如需编译构建、设备运行等能力,请先安装 [DevEco Studio](https://developer.huawei.com/consumer/cn/deveco-studio/) 并配置 `DEVECO_HOME` 环境变量。
|
|
41
43
|
|
|
42
44
|
## 简介
|
|
@@ -51,7 +53,7 @@ DevEco Code 当前通过 npm 提供以下平台安装包:
|
|
|
51
53
|
|
|
52
54
|
| 平台 | 架构 | 说明 |
|
|
53
55
|
| --- | --- | --- |
|
|
54
|
-
| Windows | x64 | Windows
|
|
56
|
+
| Windows | x64 | Windows 11 |
|
|
55
57
|
| macOS | arm64(Apple Silicon) | M 系列芯片 |
|
|
56
58
|
| macOS | x64(Intel) | Intel 芯片 Mac |
|
|
57
59
|
|
|
@@ -61,24 +63,24 @@ DevEco Code 当前通过 npm 提供以下平台安装包:
|
|
|
61
63
|
|
|
62
64
|
**操作系统**
|
|
63
65
|
|
|
64
|
-
- **Windows**:Windows 11 22H2
|
|
65
|
-
- **macOS**:macOS
|
|
66
|
+
- **Windows**:Windows 11 22H2 及以上
|
|
67
|
+
- **macOS**:macOS 15 Sequoia 及以上
|
|
66
68
|
|
|
67
69
|
**硬件**
|
|
68
70
|
|
|
69
|
-
- **日常使用**(短会话、单模块改动、以对话与代码编辑为主):8 GB
|
|
71
|
+
- **日常使用**(短会话、单模块改动、以对话与代码编辑为主):8 GB 及以上内存
|
|
70
72
|
- **重度使用**(大工程、长会话、频繁编译构建与模拟器/真机调试):16 GB 及以上内存;建议为 DevEco Studio、SDK、模拟器与构建缓存预留 20 GB 及以上可用磁盘空间
|
|
71
73
|
|
|
72
74
|
**运行时与工具链**
|
|
73
75
|
|
|
74
|
-
- [Node.js](https://nodejs.org) **22
|
|
76
|
+
- [Node.js](https://nodejs.org) **22 及以上**
|
|
75
77
|
- [DevEco Studio](https://developer.huawei.com/consumer/cn/deveco-studio/) **6.1 及以上**(编译构建、Hvigor、HDC、模拟器/真机运行)
|
|
76
78
|
- 已配置 `DEVECO_HOME` 环境变量,指向 DevEco Studio 安装目录
|
|
77
79
|
|
|
78
80
|
**终端 Shell**
|
|
79
81
|
|
|
80
|
-
- Windows:PowerShell 5.1+
|
|
81
|
-
- macOS:Bash
|
|
82
|
+
- Windows:PowerShell 7+(推荐)、PowerShell 5.1+
|
|
83
|
+
- macOS:Zsh(推荐)、Bash
|
|
82
84
|
|
|
83
85
|
**网络**
|
|
84
86
|
|
|
@@ -89,8 +91,10 @@ DevEco Code 当前通过 npm 提供以下平台安装包:
|
|
|
89
91
|
DevEco Code 通过 npm 分发,安装前请先准备以下环境:
|
|
90
92
|
|
|
91
93
|
1. 安装 [Node.js](https://nodejs.org),**推荐使用 22 及更高版本**
|
|
92
|
-
2. (可选)安装 [DevEco Studio](https://developer.huawei.com/consumer/cn/deveco-studio/),**推荐使用 6.1
|
|
93
|
-
3. (可选)配置 `DEVECO_HOME` 环境变量指向 DevEco Studio
|
|
94
|
+
2. (可选)安装 [DevEco Studio](https://developer.huawei.com/consumer/cn/deveco-studio/),**推荐使用 6.1 及更高版本**;若不安装,HarmonyOS 应用构建、推包等工具将无法使用
|
|
95
|
+
3. (可选)配置 `DEVECO_HOME` 环境变量指向 DevEco Studio 安装目录,默认路径示例:
|
|
96
|
+
- **macOS**:`/Applications/DevEco-Studio.app`
|
|
97
|
+
- **Windows**:`C:\Program Files\Huawei\DevEco Studio`
|
|
94
98
|
|
|
95
99
|
可先在终端验证 Node.js 环境:
|
|
96
100
|
|
|
@@ -173,6 +177,45 @@ deveco auth logout
|
|
|
173
177
|
}
|
|
174
178
|
```
|
|
175
179
|
|
|
180
|
+
**UI 检查配置**
|
|
181
|
+
|
|
182
|
+
UI 检查是功能验证阶段的可选能力,用于验证界面是否符合需求描述。
|
|
183
|
+
|
|
184
|
+
该功能需调用多模态模型:已登录账号时默认使用内置 Qwen3-VL 模型,未登录时则跳过UI检查。
|
|
185
|
+
|
|
186
|
+
如需配置第三方多模态模型(仅支持 Qwen 系列),可在 `deveco.jsonc` 的 `agent` 中指定,以qwen3-vl-plus为例:
|
|
187
|
+
|
|
188
|
+
```jsonc
|
|
189
|
+
{
|
|
190
|
+
"$schema": "https://opencode.ai/config.json",
|
|
191
|
+
"provider": {
|
|
192
|
+
"myprovider": {
|
|
193
|
+
"npm": "@ai-sdk/openai-compatible",
|
|
194
|
+
"name": "alibaba",
|
|
195
|
+
"options": {
|
|
196
|
+
"baseURL": "https://dashscope.aliyuncs.com/compatible-mode/v1",
|
|
197
|
+
"apiKey": "your-api-key",
|
|
198
|
+
},
|
|
199
|
+
"models": {
|
|
200
|
+
"qwen3-vl-plus": {
|
|
201
|
+
"modalities": {
|
|
202
|
+
"input": ["text", "image"],
|
|
203
|
+
"output": ["text"],
|
|
204
|
+
},
|
|
205
|
+
},
|
|
206
|
+
},
|
|
207
|
+
},
|
|
208
|
+
},
|
|
209
|
+
"agent": {
|
|
210
|
+
"ui_verification": {
|
|
211
|
+
"mode": "subagent",
|
|
212
|
+
"model": "myprovider/qwen3-vl-plus", // 格式为<provider-name>/<model-name>
|
|
213
|
+
"hidden": true,
|
|
214
|
+
},
|
|
215
|
+
},
|
|
216
|
+
}
|
|
217
|
+
```
|
|
218
|
+
|
|
176
219
|
配置文件读取优先级:
|
|
177
220
|
|
|
178
221
|
1. 项目目录下 `.deveco/deveco.jsonc`
|
|
@@ -196,6 +239,7 @@ DevEco Code 集成了常用 HarmonyOS 开发工具能力:
|
|
|
196
239
|
| `build_project` | 执行编译构建并导出构建产物 |
|
|
197
240
|
| `start_app` | 在模拟器或真机上运行应用 |
|
|
198
241
|
| `hdc_log` | 收集/清理设备日志/查看连接模拟器 |
|
|
242
|
+
| `verify_ui` | 执行 UI 操作验证功能是否正确 |
|
|
199
243
|
| `check_ets_files` | ArkTS 静态语法检查 |
|
|
200
244
|
| `arkts_knowledge_search` | HarmonyOS 知识搜索 |
|
|
201
245
|
| `switch_cwd` | 切换构建项目路径 |
|
|
@@ -265,20 +309,20 @@ cp {源路径}/opencode.jsonc ~/.config/deveco/deveco.jsonc
|
|
|
265
309
|
|
|
266
310
|
Skills、Agents、Plugins 也可以迁移到 `~/.config/deveco` 下的对应目录;MCP 配置项可迁移到 `deveco.jsonc` 中。
|
|
267
311
|
|
|
268
|
-
##
|
|
312
|
+
## 参与贡献
|
|
269
313
|
|
|
270
314
|
欢迎贡献!请在提交 Pull Request 前阅读 [CONTRIBUTING.md](CONTRIBUTING.md)。
|
|
271
315
|
|
|
272
|
-
##
|
|
316
|
+
## 帮助与支持
|
|
317
|
+
|
|
318
|
+
- 常见问题请参阅 [FAQ 文档](https://gitcode.com/openharmony-sig/deveco-code/wiki/FAQ.md)
|
|
319
|
+
- 终端常用命令(如 `/models`、`/connect` 等)请参阅 [OpenCode TUI 文档](https://opencode.ai/docs/zh-cn/tui/)
|
|
320
|
+
- 反馈与交流 [GitCode Issue](https://gitcode.com/openharmony-sig/deveco-code/issues)
|
|
321
|
+
|
|
322
|
+
## 开源许可
|
|
273
323
|
|
|
274
324
|
[MIT License](LICENSE)
|
|
275
325
|
|
|
276
326
|
## 基于 OpenCode 构建的声明
|
|
277
327
|
|
|
278
328
|
本项目基于开源项目 [OpenCode](https://opencode.ai) 扩展开发。DevEco Code **并非** OpenCode 团队出品,也与 OpenCode 团队无任何附属或关联关系。如有与 DevEco Code 相关的问题,请通过 [GitCode Issue](https://gitcode.com/openharmony-sig/deveco-code/issues) 反馈,而非联系 OpenCode 社区。
|
|
279
|
-
|
|
280
|
-
***
|
|
281
|
-
|
|
282
|
-
**提示:** 终端常用命令(如 `/models`、`/help` 等)请参阅 [OpenCode TUI 文档](https://opencode.ai/docs/zh-cn/tui/)。
|
|
283
|
-
|
|
284
|
-
**反馈与交流** [GitCode Issue](https://gitcode.com/openharmony-sig/deveco-code/issues)
|
|
Binary file
|
package/bin/deveco
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deveco-test/deveco-code-darwin-arm64",
|
|
3
|
-
"version": "0.1.0-1.
|
|
3
|
+
"version": "0.1.0-1.3-GREY",
|
|
4
4
|
"preferUnplugged": true,
|
|
5
5
|
"os": [
|
|
6
6
|
"darwin"
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"files": [
|
|
12
12
|
"bin/**/*",
|
|
13
13
|
"vendor/**/*",
|
|
14
|
-
"README.md"
|
|
14
|
+
"README.md",
|
|
15
|
+
"assets/**/*"
|
|
15
16
|
]
|
|
16
17
|
}
|