@cannbot-ai/install-helper 0.0.2-beta.47 → 0.0.2-beta.49
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 +13 -5
- package/dist/index.js +414 -56
- package/dist/index.js.map +1 -1
- package/dist/plugins.d/catlass-op-generator.yml +9 -0
- package/dist/plugins.d/model-infer-optimize.yml +10 -0
- package/dist/plugins.d/ops-code-reviewer.yml +6 -0
- package/dist/plugins.d/ops-direct-invoke-flash.yml +10 -0
- package/dist/plugins.d/ops-direct-invoke.yml +11 -0
- package/dist/plugins.d/ops-registry-invoke.yml +15 -0
- package/dist/plugins.d/pypto-op-orchestrator.yml +9 -0
- package/dist/plugins.d/tilelang-op-orchestrator.yml +11 -0
- package/dist/plugins.d/torch-compile.yml +6 -0
- package/dist/plugins.d/triton-op-generator.yml +6 -0
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -8,14 +8,22 @@
|
|
|
8
8
|
## 快速开始
|
|
9
9
|
|
|
10
10
|
```bash
|
|
11
|
-
#
|
|
11
|
+
# Linux/macOS 一键安装(零依赖,无需 Node.js)
|
|
12
|
+
curl -fsSL https://raw.gitcode.com/cann/cannbot-skills/raw/master/install.sh | bash
|
|
13
|
+
|
|
14
|
+
# Windows PowerShell 一键安装(零依赖)
|
|
15
|
+
irm https://cdn.jsdelivr.net/npm/@cannbot-ai/install-helper@beta/dist/install.ps1 | iex
|
|
16
|
+
|
|
17
|
+
# 或通过 npm 全局安装(需要 Node.js 18+)
|
|
12
18
|
npm install -g @cannbot-ai/install-helper
|
|
13
19
|
install-helper
|
|
14
20
|
|
|
15
|
-
# 或 npx
|
|
21
|
+
# 或 npx 即用(无需安装,需要 Node.js 18+)
|
|
16
22
|
npx @cannbot-ai/install-helper
|
|
17
23
|
```
|
|
18
24
|
|
|
25
|
+
curl 和 PowerShell 方式从 npm registry 下载预编译二进制(Bun 编译的独立可执行文件),无需 Node.js、无需 npm。安装后 `install-helper` 命令可直接使用。
|
|
26
|
+
|
|
19
27
|
交互式向导会自动检测已安装的 AI 编程工具(OpenCode / Claude Code / Trae / Cursor / GitHub Copilot),通过箭头键选择场景即可完成安装。
|
|
20
28
|
|
|
21
29
|
## 一键安装所有 Skills
|
|
@@ -250,9 +258,9 @@ Skills 按 11 个类别组织(另有「其他」兜底类别,动态发现,
|
|
|
250
258
|
|
|
251
259
|
## 前置条件
|
|
252
260
|
|
|
253
|
-
- Node.js >= 18
|
|
254
261
|
- 已安装至少一个 AI 编程工具(OpenCode / Claude Code / Trae / Cursor / GitHub Copilot)
|
|
255
262
|
- Git(用于克隆 Skills 仓库)
|
|
263
|
+
- curl/PowerShell 方式无需 Node.js;npm/npx 方式需要 Node.js >= 18
|
|
256
264
|
|
|
257
265
|
## 工作原理
|
|
258
266
|
|
|
@@ -263,10 +271,10 @@ install-helper 是一个编排工具:
|
|
|
263
271
|
3. **缓存扫描结果**到 `~/.cannbot/scan-cache.json`(24 小时有效)
|
|
264
272
|
4. **克隆或更新** cannbot-skills 仓库(缓存到 `~/.cannbot/repo/`)
|
|
265
273
|
5. **备份现有配置**(如果检测到已安装的 AGENTS.md)
|
|
266
|
-
6.
|
|
274
|
+
6. **声明式安装**:优先读取插件的 `plugin-manifest.json`,通过 Node.js 原生引擎执行安装(创建 symlink、克隆外部仓库、写 manifest),无需 bash/sh;无 manifest 时 fallback 到 `init.sh` 脚本
|
|
267
275
|
7. **追踪**安装状态(`~/.cannbot/config.yaml` + manifest)
|
|
268
276
|
|
|
269
|
-
|
|
277
|
+
安装逻辑优先由 manifest 引擎(Node.js 原生,跨平台)负责,install-helper 提供统一的交互式入口和状态管理。
|
|
270
278
|
|
|
271
279
|
## 配置文件
|
|
272
280
|
|