@seeed-studio/solution-cli 0.3.0 → 0.3.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
@@ -10,18 +10,30 @@ Compatible with **Claude Code, Codex, Google Antigravity (AGY), Work Buddy, and
10
10
 
11
11
  ## 1. Quick Start & Agent Installation
12
12
 
13
- Install the underlying engine and configure the AI Agent Skill with a single command:
13
+ Install the underlying engine and configure the AI Agent Skill with one command:
14
14
 
15
15
  ```bash
16
- # Interactive mode (auto-scans local agent environments and prompts for selection)
17
- npx @seeed-studio/solution-cli install
16
+ npx -y @seeed-studio/solution-cli@latest install -y
17
+ ```
18
+
19
+ The same command is safe to repeat. It checks the signed stable Engine release,
20
+ reuses an equal or newer local Engine, and upgrades an older one. Existing
21
+ modified or unregistered skills and protected symlinks are preserved. Use
22
+ `--agent claude,antigravity` to select agents, or `--engine-path <path>` to pin
23
+ a valid Engine binary. `--force` re-downloads an equal or older Engine and
24
+ overwrites existing skill files, including user modifications; use it only when
25
+ that overwrite is intended. Protected external symlinks are not followed, and
26
+ it never downgrades a newer discovered Engine.
18
27
 
19
- # Non-interactive mode (e.g. install to Claude Code and Antigravity)
20
- npx @seeed-studio/solution-cli install --agent claude,antigravity -y
28
+ Automatic reuse/upgrade rules start with solution-cli 0.3.1; if npm `latest` is
29
+ still 0.3.0, those rules are not live. At this verification, 0.3.1 is pending
30
+ publication. A latest release or signature failure stops before changing the
31
+ Engine or skills; an offline host must use a valid explicit local Engine path.
21
32
 
22
- # Install globally
23
- npm install -g @seeed-studio/solution-cli
24
- solution-cli install -y
33
+ The interactive form remains available when prompts are wanted:
34
+
35
+ ```bash
36
+ npx -y @seeed-studio/solution-cli@latest install
25
37
  ```
26
38
 
27
39
  ### Supported AI Agent Harnesses
@@ -110,7 +122,7 @@ Once installed, your AI Agent gains deep domain knowledge as an Edge IoT Solutio
110
122
  > 1. 提供方案对应的官方 GitHub 开源仓库地址;
111
123
  > 2. 指导用户克隆到本地工作区;
112
124
  > 3. 指导通过 TensorRT `trtexec` 完成端侧引擎转换,并在 `docker-compose.override.yml` 中挂载自定义模型;
113
- > 4. 使用 `sensecraft-engine deploy --solutions-dir ./solutions` 进行本地快速调测。
125
+ > 4. 使用 `sensecraft-engine deploy <id> --solutions-dir ./solutions` 进行本地快速调测。
114
126
 
115
127
  ---
116
128
 
package/bin/cli.js CHANGED
@@ -42,7 +42,7 @@ Options:
42
42
  -y, --yes Accept default detected selections non-interactively
43
43
  --dry-run Simulate operations without making changes to filesystem
44
44
  --skip-content Skip pulling IoT solution packages from CDN
45
- --force Force re-download or re-link even if already installed
45
+ --force Re-download equal/older stable Engine and overwrite existing skill files, including local modifications; never downgrade a newer local Engine
46
46
  --json Output machine-readable JSON (supported by all query/diagnostic commands)
47
47
  --locale <zh|en> Language for hub and product results (default: zh)
48
48
  --limit <num> Maximum results for search (default: 5)