@tencent-ai/codebuddy-code 2.119.4 → 2.120.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.
Files changed (52) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/codebuddy-headless.js +40 -30
  3. package/dist/codebuddy.js +60 -50
  4. package/dist/web-ui/assets/{index-GcU4pZms.js → index-BfmXmm8w.js} +274 -274
  5. package/dist/web-ui/docs/cn/cli/brokered-shell-macos.md +778 -0
  6. package/dist/web-ui/docs/cn/cli/env-vars.md +10 -5
  7. package/dist/web-ui/docs/cn/cli/plugins-reference.md +114 -13
  8. package/dist/web-ui/docs/cn/cli/prewarm.md +18 -5
  9. package/dist/web-ui/docs/cn/cli/release-notes/README.md +11 -0
  10. package/dist/web-ui/docs/cn/cli/release-notes/v2.117.0.md +35 -0
  11. package/dist/web-ui/docs/cn/cli/release-notes/v2.117.1.md +18 -0
  12. package/dist/web-ui/docs/cn/cli/release-notes/v2.117.2.md +28 -0
  13. package/dist/web-ui/docs/cn/cli/release-notes/v2.118.0.md +29 -0
  14. package/dist/web-ui/docs/cn/cli/release-notes/v2.118.1.md +18 -0
  15. package/dist/web-ui/docs/cn/cli/release-notes/v2.118.2.md +13 -0
  16. package/dist/web-ui/docs/cn/cli/release-notes/v2.119.0.md +38 -0
  17. package/dist/web-ui/docs/cn/cli/release-notes/v2.119.1.md +15 -0
  18. package/dist/web-ui/docs/cn/cli/release-notes/v2.119.2.md +23 -0
  19. package/dist/web-ui/docs/cn/cli/release-notes/v2.119.3.md +15 -0
  20. package/dist/web-ui/docs/cn/cli/release-notes/v2.119.4.md +13 -0
  21. package/dist/web-ui/docs/cn/cli/settings.md +2 -0
  22. package/dist/web-ui/docs/cn/cli/sub-agents.md +38 -0
  23. package/dist/web-ui/docs/en/cli/brokered-shell-macos.md +778 -0
  24. package/dist/web-ui/docs/en/cli/env-vars.md +10 -5
  25. package/dist/web-ui/docs/en/cli/plugins-reference.md +106 -13
  26. package/dist/web-ui/docs/en/cli/prewarm.md +18 -5
  27. package/dist/web-ui/docs/en/cli/release-notes/README.md +11 -0
  28. package/dist/web-ui/docs/en/cli/release-notes/v2.117.0.md +35 -0
  29. package/dist/web-ui/docs/en/cli/release-notes/v2.117.1.md +18 -0
  30. package/dist/web-ui/docs/en/cli/release-notes/v2.117.2.md +28 -0
  31. package/dist/web-ui/docs/en/cli/release-notes/v2.118.0.md +29 -0
  32. package/dist/web-ui/docs/en/cli/release-notes/v2.118.1.md +18 -0
  33. package/dist/web-ui/docs/en/cli/release-notes/v2.118.2.md +13 -0
  34. package/dist/web-ui/docs/en/cli/release-notes/v2.119.0.md +38 -0
  35. package/dist/web-ui/docs/en/cli/release-notes/v2.119.1.md +15 -0
  36. package/dist/web-ui/docs/en/cli/release-notes/v2.119.2.md +23 -0
  37. package/dist/web-ui/docs/en/cli/release-notes/v2.119.3.md +15 -0
  38. package/dist/web-ui/docs/en/cli/release-notes/v2.119.4.md +13 -0
  39. package/dist/web-ui/docs/en/cli/settings.md +2 -0
  40. package/dist/web-ui/docs/en/cli/sub-agents.md +38 -0
  41. package/dist/web-ui/docs/search-index-en.json +1 -1
  42. package/dist/web-ui/docs/search-index-zh.json +1 -1
  43. package/dist/web-ui/docs/sidebar-en.json +1 -1
  44. package/dist/web-ui/docs/sidebar-zh.json +1 -1
  45. package/dist/web-ui/index.html +1 -1
  46. package/dist/web-ui/sw.js +1 -1
  47. package/package.json +4 -4
  48. package/product.cloudhosted.json +2 -2
  49. package/product.internal.json +2 -2
  50. package/product.ioa.json +2 -2
  51. package/product.json +2 -2
  52. package/product.selfhosted.json +2 -2
@@ -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
  您也可以通过直接处理子代理的文件来管理它们: