@cannbot-ai/install-helper 1.1.16 → 1.2.0-beta.0
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 +21 -0
- package/dist/config/repository.yaml +9 -0
- package/dist/index.js +1359 -247
- package/dist/index.js.map +1 -1
- package/dist/locales/en_US.json +26 -1
- package/dist/locales/zh_CN.json +26 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -101,10 +101,31 @@ install-helper install --list # 查看所有可用 Sk
|
|
|
101
101
|
|------|------|
|
|
102
102
|
| `--tool <tool>` | 指定 AI 工具(opencode, claude, trae, cursor, codex, copilot, codearts) |
|
|
103
103
|
| `--level <level>` | 安装级别(project, global),默认 project |
|
|
104
|
+
| `--source <source>` | 同名插件的安装来源(cannbot, skills):默认 cannbot 仓新代实现优先,`--source skills` 强制安装本仓旧版 |
|
|
104
105
|
| `--all` `-a` | 安装全部 Skills |
|
|
105
106
|
| `--list` | 按类别列出所有可用 Skills |
|
|
106
107
|
| `--yes` `-y` | 跳过所有确认提示 |
|
|
107
108
|
|
|
109
|
+
### 安装 cannbot 仓新一代插件(双源)
|
|
110
|
+
|
|
111
|
+
插件编排已拆分至 [cannbot 仓](https://gitcode.com/cann/cannbot)(`ops-direct-invoke` v3、`ascendc-st-design`、`model-infer-optimize`、`ops-registry-invoke` 等新一代插件)。install-helper 以**委托转发**方式兼容其安装方式:自动托管 `@cannbot-plugin/cannbot` 安装器(npm 拉取到 `~/.cannbot/installers/cannbot`,按通道 + TTL 自动刷新),安装时委托其执行,产物布局(`.agents/skills`、标记块 AGENTS.md、`.cannbot/plugins/` 资产、`cannbot-plugin.json` 注册表)与 `npx @cannbot-plugin/cannbot install` 直装**完全一致**。
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
install-helper install ops-direct-invoke --tool opencode # cannbot 新代实现(默认)
|
|
115
|
+
install-helper install ops-direct-invoke --source skills --tool opencode # 本仓旧版
|
|
116
|
+
install-helper update ops-direct-invoke # 更新 = 重新委托安装
|
|
117
|
+
install-helper uninstall ops-direct-invoke # 按 cannbot-plugin.json 注册表精确卸载
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
`list` / `status` 中 cannbot 型插件带 `[cannbot]` 徽标与版本号。
|
|
121
|
+
|
|
122
|
+
**边界与说明**:
|
|
123
|
+
|
|
124
|
+
- cannbot 型插件仅支持 **project 级**安装,支持工具为 **opencode / codex / claude / trae**(cursor / copilot / codearts 上游暂不支持,会明确报错)
|
|
125
|
+
- 安装 cannbot 型插件需要可用的 Node.js 运行环境(原生二进制形态下探测 PATH 中的 `node`)
|
|
126
|
+
- 迁移期兼容:若目标项目已有旧版插件的 AGENTS.md 软链,委托安装前会自动备份并转为真实文件,再注入 cannbot 标记块;同一 Skill 同时存在于新旧布局时会输出双副本警告
|
|
127
|
+
- 环境变量:`CANNBOT_INSTALLER_PATH`(直接指定安装器包路径,离线/调试用)、`CANNBOT_INSTALLER_CHANNEL`(覆盖通道,latest/beta/精确版本);上游 `CANNBOT_SOURCE_ROOT`、`CANNBOT_SKIP_*` 等环境变量原样透传
|
|
128
|
+
|
|
108
129
|
### 更新
|
|
109
130
|
|
|
110
131
|
```bash
|
|
@@ -27,3 +27,12 @@ pluginDirs:
|
|
|
27
27
|
- plugins-official
|
|
28
28
|
|
|
29
29
|
scanCacheTtlHours: 24
|
|
30
|
+
|
|
31
|
+
# cannbot 仓(https://gitcode.com/cann/cannbot)新一代插件的安装器托管配置。
|
|
32
|
+
# install-helper 以委托转发方式安装 cannbot 型插件:按通道将
|
|
33
|
+
# @cannbot-plugin/cannbot 安装到 ~/.cannbot/installers/cannbot,
|
|
34
|
+
# 超过 ttlHours 后自动按通道刷新。
|
|
35
|
+
cannbotInstaller:
|
|
36
|
+
package: "@cannbot-plugin/cannbot"
|
|
37
|
+
channel: "latest"
|
|
38
|
+
ttlHours: 24
|