@deveco-test/deveco-cli 0.3.2 → 0.4.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 CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  ## Quick Start
8
8
 
9
- **Prerequisites:** Node.js >= 20, DevEco Studio installed (Windows or macOS).
9
+ **Prerequisites:** Node.js >= 18, DevEco Studio installed (Windows or macOS).
10
10
 
11
11
  > Not published yet — until then, build from source (see [Development](#development)) and run `node ./dist/cli.js`. After release, self-update via `devecocli update`.
12
12
 
@@ -25,10 +25,10 @@ Run any command with `--help` for full options. Set `DEVECO_CLI_DEBUG=1` to prin
25
25
  ### Search offline documentation
26
26
 
27
27
  ```bash
28
- devecocli doc search List # search by keyword
29
- devecocli doc search @State @Prop --limit 10 # multi-keyword OR search
30
- devecocli doc read harmonyos-guides/application-models/arkts-page-start-overview # read a doc
31
- devecocli doc catalog # list all catalogs
28
+ devecocli docs search List # search by keyword
29
+ devecocli docs search @State @Prop --limit 10 # multi-keyword OR search
30
+ devecocli docs read harmonyos-guides/application-models/arkts-page-start-overview # read a doc
31
+ devecocli docs catalog # list all catalogs
32
32
  ```
33
33
 
34
34
  ### Drive devecocli from an AI agent (opencode example)
@@ -79,7 +79,7 @@ If the agent doesn't pick up the skill automatically, prompt it explicitly: *"Us
79
79
  | `devecocli device` | List / inspect connected devices and emulators |
80
80
  | `devecocli emulator` | Manage local emulators: list / start / stop / create / delete, system images (`image download|remove|list`), and license helpers (`license view` / `license accept`) |
81
81
  | `devecocli log` | Fetch hilog or crash logs (with level / bundle / keyword / from/to / tail / follow filters) |
82
- | `devecocli doc` | Search and read HarmonyOS documentation from a local docs directory |
82
+ | `devecocli docs` | Search and read HarmonyOS documentation from a local docs directory |
83
83
  | `devecocli init` | Install the bundled `deveco-cli` skill into AI agents; `--mcp` configures the `deveco-mcp` MCP server for ArkTS `.ets` and C/C++ syntax checking |
84
84
  | `devecocli skills` | List / find / add / remove HMOS skills for AI agents and projects |
85
85
  | `devecocli serve mcp` | Host the bundled MCP (Model Context Protocol) server over stdio so AI clients (Trae / Claude / …) can call its unified `check` tool for ArkTS `.ets` and C/C++ syntax checking |
package/SKILL.md CHANGED
@@ -11,7 +11,7 @@ description: >-
11
11
 
12
12
  `devecocli` wraps DevEco Studio's `hvigor`, `ohpm`, `hdc`, emulator toolchain, and HMOS-skills installer. **Prefer `devecocli` over invoking underlying tools directly.**
13
13
 
14
- Available commands: `build`, `run`, `update`, `device`, `emulator`, `skills`, `log`, `create`, `init`, `serve`, `doc`.
14
+ Available commands: `build`, `run`, `update`, `device`, `emulator`, `skills`, `log`, `create`, `init`, `serve`, `docs`.
15
15
 
16
16
  **Sandbox Rule**: Commands tagged `[Outside sandbox]` must be run outside the sandbox.
17
17
 
@@ -45,10 +45,10 @@ Manage local emulator instances and system images.
45
45
  - `image download` / `image remove` (Req: `--device-type`, `--os-version`): Download/remove image. (Takes 30+ min, set long timeout).
46
46
  *Device types*: `phone`, `foldable`, `widefold`, `triplefold`, `tablet`, `2in1`, `2in1 foldable`, `wearable`, `tv`.
47
47
 
48
- ### `devecocli doc`
48
+ ### `devecocli docs`
49
49
  Search/read local HarmonyOS docs.
50
50
  - `search <keywords...>`: Match any keyword. Opts: `--catalog <name>`, `--format <default|json>`, `--limit <n>`.
51
- - `read <documentId>`: Read full content by ID.
51
+ - `read <documentId>`: Read full content by ID (e.g. `devecocli docs read 开发指南/冷启动_Launch分析/Launch模板基本操作/ide-insight-session-launch`).
52
52
  - `catalog`: List available catalogs.
53
53
 
54
54
  ### `devecocli device`
@@ -3080,11 +3080,12 @@ IN THE SOFTWARE.
3080
3080
 
3081
3081
  -----------
3082
3082
 
3083
- The following npm package may be included in this product:
3083
+ The following npm packages may be included in this product:
3084
3084
 
3085
+ - emoji-regex@10.6.0
3085
3086
  - punycode@2.3.1
3086
3087
 
3087
- This package contains the following license:
3088
+ These packages each contain the following license:
3088
3089
 
3089
3090
  Copyright Mathias Bynens <https://mathiasbynens.be/>
3090
3091
 
@@ -4079,29 +4080,30 @@ The following npm packages may be included in this product:
4079
4080
  - ansi-regex@6.2.2
4080
4081
  - chalk@5.6.2
4081
4082
  - cli-cursor@5.0.0
4082
- - cli-spinners@3.4.0
4083
+ - cli-spinners@2.9.2
4083
4084
  - escape-string-regexp@4.0.0
4084
4085
  - execa@9.6.1
4085
4086
  - figures@6.1.0
4086
- - get-east-asian-width@1.5.0
4087
+ - get-east-asian-width@1.6.0
4087
4088
  - get-stream@9.0.1
4088
4089
  - is-interactive@2.0.0
4089
4090
  - is-plain-obj@4.1.0
4090
4091
  - is-stream@4.0.1
4092
+ - is-unicode-supported@1.3.0
4091
4093
  - is-unicode-supported@2.1.0
4092
- - log-symbols@7.0.1
4094
+ - log-symbols@6.0.0
4093
4095
  - matcher@4.0.0
4094
4096
  - mimic-function@5.0.1
4095
4097
  - npm-run-path@6.0.0
4096
4098
  - onetime@7.0.0
4097
- - ora@9.4.0
4099
+ - ora@8.2.0
4098
4100
  - parse-ms@4.0.0
4099
4101
  - path-key@4.0.0
4100
4102
  - pretty-ms@9.3.0
4101
4103
  - restore-cursor@5.1.0
4102
4104
  - serialize-error@8.1.0
4103
- - stdin-discarder@0.3.2
4104
- - string-width@8.2.1
4105
+ - stdin-discarder@0.2.2
4106
+ - string-width@7.2.0
4105
4107
  - strip-ansi@7.2.0
4106
4108
  - strip-final-newline@4.0.0
4107
4109
  - unicorn-magic@0.3.0