@tencent-ai/agent-sdk 0.3.210 → 0.3.212
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/cli/CHANGELOG.md +26 -0
- package/cli/bin/cbc-prewarm +7 -2
- package/cli/dist/codebuddy-headless.js +43 -33
- package/cli/dist/web-ui/assets/{index-GcU4pZms.js → index-BfmXmm8w.js} +274 -274
- package/cli/dist/web-ui/docs/cn/cli/brokered-shell-macos.md +778 -0
- package/cli/dist/web-ui/docs/cn/cli/env-vars.md +10 -5
- package/cli/dist/web-ui/docs/cn/cli/plugins-reference.md +114 -13
- package/cli/dist/web-ui/docs/cn/cli/prewarm.md +18 -5
- package/cli/dist/web-ui/docs/cn/cli/release-notes/README.md +11 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.117.0.md +35 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.117.1.md +18 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.117.2.md +28 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.118.0.md +29 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.118.1.md +18 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.118.2.md +13 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.119.0.md +38 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.119.1.md +15 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.119.2.md +23 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.119.3.md +15 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.119.4.md +13 -0
- package/cli/dist/web-ui/docs/cn/cli/settings.md +2 -0
- package/cli/dist/web-ui/docs/cn/cli/sub-agents.md +38 -0
- package/cli/dist/web-ui/docs/en/cli/brokered-shell-macos.md +778 -0
- package/cli/dist/web-ui/docs/en/cli/env-vars.md +10 -5
- package/cli/dist/web-ui/docs/en/cli/plugins-reference.md +106 -13
- package/cli/dist/web-ui/docs/en/cli/prewarm.md +18 -5
- package/cli/dist/web-ui/docs/en/cli/release-notes/README.md +11 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.117.0.md +35 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.117.1.md +18 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.117.2.md +28 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.118.0.md +29 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.118.1.md +18 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.118.2.md +13 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.119.0.md +38 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.119.1.md +15 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.119.2.md +23 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.119.3.md +15 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.119.4.md +13 -0
- package/cli/dist/web-ui/docs/en/cli/settings.md +2 -0
- package/cli/dist/web-ui/docs/en/cli/sub-agents.md +38 -0
- package/cli/dist/web-ui/docs/search-index-en.json +1 -1
- package/cli/dist/web-ui/docs/search-index-zh.json +1 -1
- package/cli/dist/web-ui/docs/sidebar-en.json +1 -1
- package/cli/dist/web-ui/docs/sidebar-zh.json +1 -1
- package/cli/dist/web-ui/index.html +1 -1
- package/cli/dist/web-ui/sw.js +1 -1
- package/cli/package.json +4 -4
- package/cli/product.cloudhosted.json +2 -2
- package/cli/product.internal.json +2 -2
- package/cli/product.ioa.json +2 -2
- package/cli/product.json +2 -2
- package/cli/product.selfhosted.json +2 -2
- package/package.json +1 -1
|
@@ -65,6 +65,8 @@ CodeBuddy Code 使用分层配置系统,让您能够在不同级别进行个
|
|
|
65
65
|
| `disableAllHooks` | 禁用所有 [hooks](hooks.md) | `true` |
|
|
66
66
|
| `allowUntrustedFrontmatterHooks` | 是否允许执行来自**非 product 内置**来源的 agent/skill 的 frontmatter `hooks` 字段(包括用户本地 `.codebuddy/agents\|skills/*.md` 和插件市场)。默认 `false`,防止不可信的 md 文件静默启动 shell 命令;只有 product 内置 agent/skill 不受影响。 | `true` |
|
|
67
67
|
| `model` | 覆盖 CodeBuddy Code 使用的默认模型 | `"gpt-5"` |
|
|
68
|
+
| `subagents` | 按内置子代理粒度指定模型。结构为 `{"agents": {"<子代理名>": {"model": "..."}}}`(`agents` 的 key = 子代理名,如 `Explore`;`model` = 模型 ID / 别名 / 变体 `lite`\|`reasoning` / `inherit`)。各子代理互不影响,支持全局 + 项目双 scope。可在 `/agents` 面板可视化编辑。优先级:env `CODEBUDDY_CODE_SUBAGENT_MODEL`(一刀切)> 项目 > 全局 > 内置默认 > 继承主模型。详见 [子代理文档](sub-agents.md) | `{"agents": {"Explore": {"model": "gpt-5.1-codex"}, "general-purpose": {"model": "claude-opus-4"}}}` |
|
|
69
|
+
| `variantModels` | 通用场景变体 → 模型 的映射(key = `lite`\|`reasoning`;value = 模型 ID / 别名)。影响所有走该变体的逻辑(如 `Explore` 等声明 `lite` 的子代理)。可在 `/model` 面板的「场景变体区」编辑。优先级:env(`CODEBUDDY_SMALL_FAST_MODEL` / `CODEBUDDY_BIG_SLOW_MODEL`,按变体)> 项目 > 全局 > 模型级 `relatedModels` > 主模型兜底 | `{"lite": "gpt-5.1-codex-lite", "reasoning": "gpt-5.5"}` |
|
|
68
70
|
| `agent` | 覆盖主线程使用的 agent 名称(内置或自定义 agent),应用该 agent 的 system prompt、工具限制和模型配置。优先级:`product.json default` → `plugin agent` → `settings.json agent` → `CLI --agent` | `"my-reviewer"` |
|
|
69
71
|
| `statusLine` | 配置自定义状态行以显示上下文。见 [statusLine 文档](#状态行配置) | `{"type": "command", "command": "~/.codebuddy/statusline.sh"}` |
|
|
70
72
|
| `enableAllProjectMcpServers` | 自动批准项目 `.mcp.json` 文件中定义的所有 MCP 服务器 | `false` |
|
|
@@ -175,6 +175,44 @@ codebuddy --agents '{
|
|
|
175
175
|
* 查看存在重复项时哪些子代理处于活动状态
|
|
176
176
|
* **管理工具权限**,包含所有可用工具的完整列表
|
|
177
177
|
|
|
178
|
+
### 为内置子代理配置模型(per-Agent 模型)
|
|
179
|
+
|
|
180
|
+
内置子代理(如 `Explore`、`general-purpose`、`Plan`)也可以**按子代理粒度独立指定模型**,各子代理互不影响、可自由组合。这解决了以往「只能通过环境变量一刀切、无法区分」的痛点。
|
|
181
|
+
|
|
182
|
+
**在 `/agents` 面板可视化配置**:
|
|
183
|
+
|
|
184
|
+
1. 运行 `/agents`,用 `↑/↓` 选中一个内置子代理,按 `Enter` 进入其动作菜单。
|
|
185
|
+
2. 选 **Edit Model**,进入模型选择器:
|
|
186
|
+
* 首项 **Inherit / Default** —— 清除该子代理的配置,回落默认编排。
|
|
187
|
+
* 通用场景变体 `lite` / `reasoning`。
|
|
188
|
+
* 全部可用模型(与 `/model` 一致)。
|
|
189
|
+
3. 用 `Tab` 在 **Global(全局)** 与 **Project(项目)** 两个保存范围间切换,`Enter` 确认。
|
|
190
|
+
4. 列表即时刷新为「生效模型 + 来源」。
|
|
191
|
+
|
|
192
|
+
面板的 **SOURCE** 列展示每个子代理当前生效模型的来源,让默认编排透明化:
|
|
193
|
+
|
|
194
|
+
| 来源标签 | 含义 |
|
|
195
|
+
|---|---|
|
|
196
|
+
| `env-global` | 环境变量 `CODEBUDDY_CODE_SUBAGENT_MODEL` 一刀切接管(见下方优先级) |
|
|
197
|
+
| `settings-project` | 项目级配置(`.codebuddy/settings.json`) |
|
|
198
|
+
| `settings-user` | 全局级配置(`~/.codebuddy/settings.json`) |
|
|
199
|
+
| `product-default` | 内置默认声明(如 `Explore` = `lite`) |
|
|
200
|
+
| `inherit` | 无任何声明,继承主对话模型 |
|
|
201
|
+
| `fallback-main` | 配置的模型被禁用/本地未知,降级回主对话模型 |
|
|
202
|
+
|
|
203
|
+
**配置存储**:写入 settings 的 `subagents.agents.<子代理名>.model` 字段(`agents` 的 key = 子代理名,`model` = 模型 ID / 别名 / 变体 / `inherit`)。也可手动编辑 `settings.json`,详见 [设置文档](settings.md)。
|
|
204
|
+
|
|
205
|
+
**优先级(从高到低)**:
|
|
206
|
+
|
|
207
|
+
1. 环境变量 `CODEBUDDY_CODE_SUBAGENT_MODEL`(**一刀切**,对所有子代理统一生效,最高)
|
|
208
|
+
2. 本次调用的工具入参(`default` / `lite` / `reasoning`,单次生效)
|
|
209
|
+
3. **项目级** `subagents.agents.<子代理名>.model`
|
|
210
|
+
4. **全局级** `subagents.agents.<子代理名>.model`
|
|
211
|
+
5. 内置默认声明(`product.json` 的 `agents[].models[0]`,如 `Explore` = `lite`)
|
|
212
|
+
6. 继承主对话模型(兜底)
|
|
213
|
+
|
|
214
|
+
> **说明**:设置了 `CODEBUDDY_CODE_SUBAGENT_MODEL` 时,面板仍允许保存 per-Agent 配置(不报错),但会显示「被环境变量统一覆盖」的提示;取消该环境变量后 per-Agent 配置恢复生效。
|
|
215
|
+
|
|
178
216
|
### 直接文件管理
|
|
179
217
|
|
|
180
218
|
您也可以通过直接处理子代理的文件来管理它们:
|