@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
@@ -65,6 +65,8 @@ The `settings.json` file is the official mechanism for configuring CodeBuddy Cod
65
65
  | `disableAllHooks` | Disable all [hooks](hooks.md) | `true` |
66
66
  | `allowUntrustedFrontmatterHooks` | Whether to allow execution of frontmatter `hooks` fields from agents/skills with **non-product-builtin** sources (including local user `.codebuddy/agents\|skills/*.md` and the plugin marketplace). Defaults to `false` to prevent untrusted md files from silently launching shell commands; only product-builtin agents/skills are unaffected. | `true` |
67
67
  | `model` | Override the default model used by CodeBuddy Code | `"gpt-5"` |
68
+ | `subagents` | Specify models per built-in sub-agent granularity. Structure: `{"agents": {"<sub-agent-name>": {"model": "..."}}}` (`agents` key = sub-agent name, e.g. `Explore`; `model` = model ID / alias / variant `lite`\|`reasoning` / `inherit`). Each sub-agent is independent, supporting both global and project scopes. Can be visually edited in the `/agents` panel. Priority: env `CODEBUDDY_CODE_SUBAGENT_MODEL` (applies to all) > project > global > built-in default > inherit main model. See [Sub-Agents Documentation](sub-agents.md) | `{"agents": {"Explore": {"model": "gpt-5.1-codex"}, "general-purpose": {"model": "claude-opus-4"}}}` |
69
+ | `variantModels` | Mapping from scenario variant to model (key = `lite`\|`reasoning`; value = model ID / alias). Affects all logic using that variant (e.g., sub-agents like `Explore` that declare `lite`). Can be edited in the "Scenario Variants" section of the `/model` panel. Priority: env (`CODEBUDDY_SMALL_FAST_MODEL` / `CODEBUDDY_BIG_SLOW_MODEL`, per variant) > project > global > model-level `relatedModels` > main model fallback | `{"lite": "gpt-5.1-codex-lite", "reasoning": "gpt-5.5"}` |
68
70
  | `agent` | Override the agent name used by the main thread (built-in or custom agent), applying that agent's system prompt, tool restrictions, and model configuration. Priority: `product.json default` → `plugin agent` → `settings.json agent` → `CLI --agent` | `"my-reviewer"` |
69
71
  | `statusLine` | Configure a custom status line to display context. See [statusLine documentation](#status-line-configuration) | `{"type": "command", "command": "~/.codebuddy/statusline.sh"}` |
70
72
  | `enableAllProjectMcpServers` | Auto-approve all MCP servers defined in the project's `.mcp.json` file | `false` |
@@ -177,6 +177,44 @@ This opens an interactive menu where you can:
177
177
  * See which sub-agents are active when duplicates exist
178
178
  * **Manage tool permissions** with a complete list of all available tools
179
179
 
180
+ ### Configuring Models for Built-in Sub-Agents (per-Agent Model)
181
+
182
+ Built-in sub-agents (such as `Explore`, `general-purpose`, `Plan`) can also have **models specified independently per sub-agent granularity**, with each sub-agent independent and freely combinable. This solves the previous limitation of "only being able to set all sub-agents at once via environment variables without differentiation."
183
+
184
+ **Visual Configuration in the `/agents` Panel**:
185
+
186
+ 1. Run `/agents`, use `↑/↓` to select a built-in sub-agent, press `Enter` to enter its action menu.
187
+ 2. Select **Edit Model** to enter the model selector:
188
+ * First option **Inherit / Default** — clears the sub-agent's configuration, falling back to default orchestration.
189
+ * Scenario variants `lite` / `reasoning`.
190
+ * All available models (same as `/model`).
191
+ 3. Use `Tab` to switch between **Global** and **Project** save scopes, `Enter` to confirm.
192
+ 4. The list instantly refreshes to show "effective model + source".
193
+
194
+ The **SOURCE** column in the panel shows the source of each sub-agent's currently effective model, making default orchestration transparent:
195
+
196
+ | Source Label | Meaning |
197
+ |---|---|
198
+ | `env-global` | Environment variable `CODEBUDDY_CODE_SUBAGENT_MODEL` overrides all (see priority below) |
199
+ | `settings-project` | Project-level configuration (`.codebuddy/settings.json`) |
200
+ | `settings-user` | Global-level configuration (`~/.codebuddy/settings.json`) |
201
+ | `product-default` | Built-in default declaration (e.g., `Explore` = `lite`) |
202
+ | `inherit` | No declaration, inherits main conversation model |
203
+ | `fallback-main` | Configured model is disabled/locally unknown, falls back to main conversation model |
204
+
205
+ **Configuration Storage**: Written to the `subagents.agents.<sub-agent-name>.model` field in settings (`agents` key = sub-agent name, `model` = model ID / alias / variant / `inherit`). Can also be manually edited in `settings.json`, see [Settings Documentation](settings.md).
206
+
207
+ **Priority (highest to lowest)**:
208
+
209
+ 1. Environment variable `CODEBUDDY_CODE_SUBAGENT_MODEL` (**applies to all** sub-agents uniformly, highest priority)
210
+ 2. Tool invocation parameters for this call (`default` / `lite` / `reasoning`, per-invocation)
211
+ 3. **Project-level** `subagents.agents.<sub-agent-name>.model`
212
+ 4. **Global-level** `subagents.agents.<sub-agent-name>.model`
213
+ 5. Built-in default declaration (`agents[].models[0]` in `product.json`, e.g., `Explore` = `lite`)
214
+ 6. Inherit main conversation model (fallback)
215
+
216
+ > **Note**: When `CODEBUDDY_CODE_SUBAGENT_MODEL` is set, the panel still allows saving per-Agent configurations (no error), but displays a "overridden by environment variable" notice; per-Agent configurations take effect again after the environment variable is removed.
217
+
180
218
  ### Direct File Management
181
219
 
182
220
  You can also manage sub-agents by working directly with their files: