@deveco-test/deveco-cli 1.3.1-Test.1 → 1.3.3-Test.1
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 +51 -1
- package/SKILL.md +5 -3
- package/dist/cli.js +116 -109
- package/dist/internal/telemetry-upload-background.js +2 -2
- package/docs.zip +0 -0
- package/index.zip +0 -0
- package/package.json +2 -1
- package/scripts/postinstall.mjs +9 -13
package/README.md
CHANGED
|
@@ -208,7 +208,7 @@ devecocli init --agent <agents> --project <path> --path <path> --skill --mcp --f
|
|
|
208
208
|
|
|
209
209
|
| 参数名 | 说明 |
|
|
210
210
|
| ----------- | ----------------------------------------------------------------------------------------- |
|
|
211
|
-
| --agent |
|
|
211
|
+
| --agent | 可选,智能体名称,多个智能体名称以英文逗号分隔。支持 `trae-cn`、`opencode`、`pi`、`cursor`、`codebuddy`、`qoder`、`claude-code`、`codex`。缺省时配置到所有已检测到的智能体中 |
|
|
212
212
|
| --project | 可选,指定工程路径,将`deveco-cli` `Skill` 或 `MCP` 服务安装到该工程项目中 |
|
|
213
213
|
| --path | 可选,指定 `deveco-cli` `Skill` 的配置路径。不可与 `--project` 、`--agent` 、 `--mcp` 同时使用 |
|
|
214
214
|
| --skill | 可选,安装 `deveco-cli` `Skill`。不可与 `--mcp` 同时使用。`--mcp` 与 `--skill` 都缺省时,执行 `--skill` |
|
|
@@ -829,6 +829,56 @@ devecocli device view -t "My Device Name"
|
|
|
829
829
|
devecocli device view -t 127.0.0.1:5555 --format json
|
|
830
830
|
```
|
|
831
831
|
|
|
832
|
+
### `device file`
|
|
833
|
+
|
|
834
|
+
在主机与设备(真机或模拟器)之间传输文件,底层映射为 `hdc -t <serial> file send/recv <src> <dst>`。
|
|
835
|
+
|
|
836
|
+
**命令格式:**
|
|
837
|
+
|
|
838
|
+
```bash
|
|
839
|
+
devecocli device file [--device <name|serial>] send <src> <dst>
|
|
840
|
+
devecocli device file [--device <name|serial>] recv <src> <dst>
|
|
841
|
+
```
|
|
842
|
+
|
|
843
|
+
**参数:**
|
|
844
|
+
|
|
845
|
+
| 参数名 | 说明 |
|
|
846
|
+
| --- | --- |
|
|
847
|
+
| --device | 可选,目标设备名称或序列号。单设备可省略,多设备时必填 |
|
|
848
|
+
| send <src> <dst> | 子命令,上传本地文件到设备 `<src>`(本地) → `<dst>`(设备端) |
|
|
849
|
+
| recv <src> <dst> | 子命令,下载设备文件到主机 `<src>`(设备端) → `<dst>`(本地) |
|
|
850
|
+
|
|
851
|
+
**示例:**
|
|
852
|
+
|
|
853
|
+
```bash
|
|
854
|
+
devecocli device file send ./local.txt /data/local/tmp/remote.txt
|
|
855
|
+
devecocli device file recv /data/local/tmp/remote.txt ./local.txt --device 127.0.0.1:5555
|
|
856
|
+
```
|
|
857
|
+
|
|
858
|
+
### `device sqlite3`
|
|
859
|
+
|
|
860
|
+
在设备上执行 `sqlite3`,底层映射为 `hdc -t <serial> shell sqlite3 <db-path> [args...]`,后续参数原样透传给设备的 `sqlite3`。
|
|
861
|
+
|
|
862
|
+
**命令格式:**
|
|
863
|
+
|
|
864
|
+
```bash
|
|
865
|
+
devecocli device sqlite3 [--device <name|serial>] <db-path> [args...]
|
|
866
|
+
```
|
|
867
|
+
|
|
868
|
+
**参数:**
|
|
869
|
+
|
|
870
|
+
| 参数名 | 说明 |
|
|
871
|
+
| --- | --- |
|
|
872
|
+
| --device | 可选,目标设备名称或序列号。单设备可省略,多设备时必填 |
|
|
873
|
+
| db-path | 设备端 SQLite 数据库文件路径 |
|
|
874
|
+
| args | 可选,透传给设备 `sqlite3` 的参数,如 `-json`、`-header`、`-readonly`、SQL 语句、点命令等 |
|
|
875
|
+
|
|
876
|
+
**示例:**
|
|
877
|
+
|
|
878
|
+
```bash
|
|
879
|
+
devecocli device sqlite3 /data/app/el2/100/database/com.example.app/foo.db "select * from user limit 5" -json
|
|
880
|
+
```
|
|
881
|
+
|
|
832
882
|
### `ui screenshot`
|
|
833
883
|
|
|
834
884
|
对真机或模拟器执行 UI 截图。
|
package/SKILL.md
CHANGED
|
@@ -73,6 +73,8 @@ Search/read local HarmonyOS docs.
|
|
|
73
73
|
### `devecocli device`
|
|
74
74
|
- `list`: Show active real devices and running emulators. Opt: `--format <table|json>` (default: `table`).
|
|
75
75
|
- `view`: Detailed info. Req `-t <name|serial>` on multi-device hosts. Opt: `--format <table|json>` (default: `table`).
|
|
76
|
+
- `file`: Transfer files between the host and a device. Opt: `--device <name|serial>` (optional when exactly one device is connected, required when multiple). `send <local> <remote>` pushes a local file onto the device; `recv <remote> <local>` pulls a file back. Maps to `hdc -t <serial> file send/recv <src> <dst>`; the operation only succeeds when hdc reports `FileTransfer finish`.
|
|
77
|
+
- `sqlite3`: Run `sqlite3` on a device. Opt: `--device <name|serial>` (optional when exactly one device is connected, required when multiple). `db-path` is the on-device SQLite file; all further args are forwarded to the device `sqlite3` as-is (e.g. `-json`, `-readonly`, SQL strings, dot-commands). Maps to `hdc -t <serial> shell sqlite3 <db-path> [args...]`.
|
|
76
78
|
|
|
77
79
|
### `devecocli run` `[Outside sandbox]`
|
|
78
80
|
Build, install, and launch.
|
|
@@ -151,11 +153,11 @@ MUTUALLY EXCLUSIVE modes for setup:
|
|
|
151
153
|
1. `--skill` (Default): Install `deveco-cli` skill to AI agents.
|
|
152
154
|
2. `--mcp`: Configure `deveco-mcp` server (ArkTS/C++ syntax checking).
|
|
153
155
|
*Options*:
|
|
154
|
-
- `--agent <agents>`: Comma-separated (e.g. `opencode,cursor`). Omitting targets all.
|
|
156
|
+
- `--agent <agents>`: Comma-separated (e.g. `opencode,pi,cursor`). Omitting targets all.
|
|
155
157
|
- `--project <path>`: Project-level config (Abs path for MCP).
|
|
156
158
|
- `--path <path>`: Direct skill install path.
|
|
157
159
|
- `-f, --force`: Overwrite existing config.
|
|
158
|
-
*MCP Rules*:
|
|
160
|
+
*MCP Rules*: All configured MCP agents support global (no `--project`) and project-level MCP, except `qoder` (not supported).
|
|
159
161
|
|
|
160
162
|
### `devecocli auth login`
|
|
161
163
|
Sign in to your Huawei Developer account. Opens a browser for OAuth authentication. Required before `signature generate`.
|
|
@@ -216,7 +218,7 @@ Validation order: `files` + `--modules` mutually exclusive → `--source-version
|
|
|
216
218
|
- **`Not logged in. Run devecocli auth login first`**: Run `devecocli auth login` to authenticate.
|
|
217
219
|
- **`Provision number exceeds limit`**: Test provision quota is full. Delete old test provisions in DevEco Studio (Signing Configs) or AGC console, then retry `devecocli signature generate`.
|
|
218
220
|
- **`Invalid AccessToken. Sign in and try again`**: Token expired. Run `devecocli auth login` again.
|
|
219
|
-
- **`skills add` agent not found**: Valid: `atomcode`, `codebuddy`, `cursor`, `opencode`, `qoder`, `trae-cn`.
|
|
221
|
+
- **`skills add` agent not found**: Valid: `atomcode`, `codebuddy`, `claude-code`, `codex`, `cursor`, `deveco`, `opencode`, `pi`, `qoder`, `trae-cn`.
|
|
220
222
|
- **`emulator start` / `image download` blocked on agreement**: User MUST accept agreements. Interactive: `devecocli emulator license` (requires TTY). Non-interactive (CI/scripts): `devecocli emulator license accept`. Agents cannot run the interactive form; suggest the user run it, or use `license accept` if a non-TTY flow is acceptable. Do not retry until accepted.
|
|
221
223
|
- **`image download` failure / timeout**: Do NOT auto-retry. Give the command to the user to run manually in their terminal.
|
|
222
224
|
- **`emulator create` timeout**: Treat as user-action step. Ask user to open DevEco Studio -> Device Manager. Check `emulator list` after user confirms. Do NOT auto-retry or edit SDK files.
|