@deveco-test/deveco-code-darwin-x64 0.1.0-TD.4.3 → 0.1.0-TD.4.5

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.
Files changed (3) hide show
  1. package/README.md +54 -19
  2. package/bin/deveco +0 -0
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,14 +1,34 @@
1
- # @deveco/deveco
1
+ # DevEco Code
2
2
 
3
- 面向 HarmonyOS(鸿蒙)开发场景的 AI CLI 助手。
3
+ 面向 HarmonyOS(鸿蒙)开发场景的 AI Agent 工具。
4
4
 
5
- [npm 包页面](https://www.npmjs.com/package/@deveco/deveco) |
6
- [GitCode 仓库](https://gitcode.com/openharmony-sig/codegenie_cli) |
5
+ [![npm](https://img.shields.io/npm/v/@deveco/deveco-code?style=flat-square&label=npm)](https://www.npmjs.com/package/@deveco/deveco-code)
6
+ [![license](https://img.shields.io/npm/l/@deveco/deveco-code?style=flat-square&label=license)](https://gitcode.com/openharmony-sig/deveco-code/blob/main/LICENSE)
7
+ [![GitCode](https://img.shields.io/badge/GitCode-openharmony--sig%2Fdeveco--code-blue?style=flat-square)](https://gitcode.com/openharmony-sig/deveco-code)
8
+
9
+ [npm 包页面](https://www.npmjs.com/package/@deveco/deveco-code) |
10
+ [GitCode 仓库](https://gitcode.com/openharmony-sig/deveco-code) |
7
11
  [OpenCode](https://opencode.ai)
8
12
 
13
+ ***
14
+
15
+ ## Quick Start
16
+
17
+ ```bash
18
+ # 1. 安装
19
+ npm install -g @deveco/deveco-code
20
+
21
+ # 2. 启动
22
+ deveco
23
+
24
+ # 3. 开始对话 —— 在终端中直接描述你的鸿蒙开发需求
25
+ ```
26
+
27
+ > 如需编译构建、设备运行等能力,请先安装 [DevEco Studio](https://developer.huawei.com/consumer/cn/deveco-studio/) 并配置 `DEVECO_HOME` 环境变量。
28
+
9
29
  ## 简介
10
30
 
11
- DevEco Code CLI 是一款面向 HarmonyOS 开发场景的 AI CLI 工具,支持代码编写、编译构建、设备运行、文档查阅、运行时调试和 ArkTS 问题修复等能力。
31
+ DevEco Code 是一款面向 HarmonyOS 开发场景的 AI Agent 工具,支持代码编写、编译构建、设备运行、文档查阅、运行时调试及 ArkTS 问题修复等能力。
12
32
 
13
33
  DevEco Code 基于开源项目 OpenCode 扩展开发,保留了 OpenCode 的终端交互、配置体系、 Provider / MCP / Skill / Plugin 等能力,并针对鸿蒙工程增加了 DevEco Studio、`hvigorw`、`hdc`、ArkTS 检查和设备调试相关集成。
14
34
 
@@ -37,7 +57,7 @@ npm -v
37
57
 
38
58
  ```bash
39
59
  # 安装
40
- npm install -g @deveco/deveco --registry=https://registry.npmjs.org
60
+ npm install -g @deveco/deveco-code
41
61
 
42
62
  # 查看版本
43
63
  deveco --version
@@ -55,7 +75,7 @@ deveco uninstall
55
75
  npm uninstall -g @deveco/deveco
56
76
  ```
57
77
 
58
- > macOS 如果遇到全局安装权限问题,可尝试 `sudo -i npm install -g @deveco/deveco --registry=https://registry.npmjs.org`。
78
+ > macOS 如果遇到全局安装权限问题,可尝试 `sudo -i npm install -g @deveco/deveco-code`。
59
79
 
60
80
  ## 登录与模型
61
81
 
@@ -102,25 +122,24 @@ deveco auth logout
102
122
 
103
123
  ## Agent 模式
104
124
 
105
- DevEco Code 面向鸿蒙开发提供以下 Agent 模式:
125
+ DevEco Code 面向鸿蒙开发提供以下 Agent 模式(按 `Tab` 键切换):
106
126
 
107
127
  - `build`:默认模式,适合工程生成、代码生成、配置修正、测试执行、推包运行和发布执行
108
128
  - `plan`:适合需求拆解、技术方案、发布规划、测试规划和文档生成
109
- - `general`:用于复杂搜索和多步任务,内部使用,也可在消息中输入 `@general` 调用
129
+ - `sdd`:适合 `spec` 定义、规范驱动、代码生成和功能验证
110
130
 
111
131
  ## 鸿蒙场景能力
112
132
 
113
133
  DevEco Code 集成了常用鸿蒙开发工具能力:
114
134
 
115
- | 工具 | 说明 |
116
- | --- | --- |
117
- | `build_project` | 执行编译构建并导出构建产物 |
118
- | `start_app` | 在模拟器或真机上运行应用 |
119
- | `runtime-calibration` | UI 自动化测试,可通过设置启用 |
120
- | `runtime-calibration_getLog` | 获取设备运行日志,可通过设置启用 |
121
- | `execute_uitest` | UI 测试操作,包括点击、滑动、输入、按键、截图等 |
122
- | `hdc_log` | 收集或清理设备日志 |
123
- | `check_ets_files` | ArkTS 静态语法检查 |
135
+ | 工具 | 说明 |
136
+ | ------------------------ | -------------------- |
137
+ | `build_project` | 执行编译构建并导出构建产物 |
138
+ | `start_app` | 在模拟器或真机上运行应用 |
139
+ | `hdc_log` | 收集/清理设备日志/查看连接模拟器 |
140
+ | `check_ets_files` | ArkTS 静态语法检查 |
141
+ | `arkts_knowledge_search` | 鸿蒙知识搜索(需要登录华为账号才能使用) |
142
+ | `switch_cwd` | 切换构建项目路径 |
124
143
 
125
144
  常见场景包括:从 0 到 1 创建鸿蒙工程、增量开发页面、修复编译报错、真机调试,以及基于多模态模型的图生文界面生成。
126
145
 
@@ -164,7 +183,7 @@ npm install -g oh-my-opencode
164
183
  ```jsonc
165
184
  {
166
185
  "plugin": [
167
- "file:///C:/Users/tylor/AppData/Roaming/npm/node_modules/oh-my-opencode/dist/index.js"
186
+ "file:///C:/Users/<username>/AppData/Roaming/npm/node_modules/oh-my-opencode/dist/index.js"
168
187
  ]
169
188
  }
170
189
  ```
@@ -190,3 +209,19 @@ Skills、Agents、Plugins 也可以迁移到 `~/.config/deveco` 下的对应目
190
209
  ### 这和 OpenCode 有什么关系?
191
210
 
192
211
  DevEco Code 基于 OpenCode 扩展开发,保留其终端 UI、Provider、MCP、Skill、Plugin 和配置体系,并额外针对 HarmonyOS 开发链路加入编译构建、设备运行、日志采集、ArkTS 检查和运行时调试等能力。
212
+
213
+ ## Contributing
214
+
215
+ 欢迎贡献!请在提交 Pull Request 前阅读 [CONTRIBUTING.md](../../CONTRIBUTING.md)。
216
+
217
+ ## License
218
+
219
+ [MIT License](../../LICENSE)
220
+
221
+ ## 基于 OpenCode 构建的声明
222
+
223
+ 本项目基于开源项目 [OpenCode](https://opencode.ai) 扩展开发。DevEco Code **并非** OpenCode 团队出品,也与 OpenCode 团队无任何附属或关联关系。如有与 DevEco Code 相关的问题,请通过本仓库的 Issue 反馈,而非联系 OpenCode 社区。
224
+
225
+ ***
226
+
227
+ **反馈与交流** [GitCode Issue](https://gitcode.com/openharmony-sig/deveco-code/issues)
package/bin/deveco CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deveco-test/deveco-code-darwin-x64",
3
- "version": "0.1.0-TD.4.3",
3
+ "version": "0.1.0-TD.4.5",
4
4
  "preferUnplugged": true,
5
5
  "os": [
6
6
  "darwin"