@cannbot-ai/install-helper 1.2.1 → 1.2.2-beta.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
@@ -101,30 +101,27 @@ 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` 强制安装 cannbot-skills 仓旧版 |
105
104
  | `--all` `-a` | 安装全部 Skills |
106
105
  | `--list` | 按类别列出所有可用 Skills |
107
106
  | `--yes` `-y` | 跳过所有确认提示 |
108
107
 
109
- ### 安装 cannbot 仓插件(双源)
108
+ ### 安装 cannbot 仓插件
110
109
 
111
- 插件编排已拆分至 [cannbot 仓](https://gitcode.com/cann/cannbot)(`ops-direct-invoke` v3、`ascendc-st-design`、`model-infer-optimize`、`ops-registry-invoke` 等 cannbot 仓插件)。install-helper 以**委托转发**方式兼容其安装方式:自动托管 `@cannbot-plugin/cannbot` 安装器(npm 拉取到 `~/.cannbot/installers/cannbot`,按通道 + TTL 自动刷新),安装时委托其执行,产物布局(`.agents/skills`、标记块 AGENTS.md、`.cannbot/plugins/` 资产、`cannbot-plugin.json` 注册表)与 `npx @cannbot-plugin/cannbot install` 直装**完全一致**。
110
+ 部分插件已迁移至 [cannbot 仓](https://gitcode.com/cann/cannbot) 维护,install-helper 直接支持,无需额外操作:
112
111
 
113
112
  ```bash
114
- install-helper install ops-direct-invoke --tool opencode # cannbot 仓插件(默认)
115
- install-helper install ops-direct-invoke --source skills --tool opencode # cannbot-skills 仓旧版
116
- install-helper update ops-direct-invoke # 更新 = 重新委托安装
117
- install-helper uninstall ops-direct-invoke # 按 cannbot-plugin.json 注册表精确卸载
113
+ install-helper install ops-direct-invoke --tool opencode # 安装
114
+ install-helper update ops-direct-invoke # 更新
115
+ install-helper uninstall ops-direct-invoke # 卸载
118
116
  ```
119
117
 
120
- `list` / `status` 中 cannbot 型插件带 `[cannbot]` 徽标与版本号。
118
+ 产物与 `npx @cannbot-plugin/cannbot install` 直装完全一致;`list` / `status` 中带 `[cannbot]` 徽标与版本号。
121
119
 
122
- **边界与说明**:
120
+ **限制**:
123
121
 
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_*` 等环境变量原样透传
122
+ - 仅支持 project 级安装;支持工具:opencode / codex / claude / trae(cursor / copilot / codearts 会明确报错)
123
+ - 需要 Node.js 运行环境
124
+ - 离线/调试:`CANNBOT_INSTALLER_PATH` 指定安装器包路径,`CANNBOT_INSTALLER_CHANNEL` 覆盖通道
128
125
 
129
126
  ### 更新
130
127