@dreb/coding-agent 2.61.0 → 2.61.2

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 (63) hide show
  1. package/README.md +5 -3
  2. package/dist/cli/args.d.ts +1 -1
  3. package/dist/cli/args.d.ts.map +1 -1
  4. package/dist/cli/args.js +2 -2
  5. package/dist/cli/args.js.map +1 -1
  6. package/dist/core/agent-session.d.ts +2 -0
  7. package/dist/core/agent-session.d.ts.map +1 -1
  8. package/dist/core/agent-session.js +11 -3
  9. package/dist/core/agent-session.js.map +1 -1
  10. package/dist/core/dispatch-arbiter.d.ts.map +1 -1
  11. package/dist/core/dispatch-arbiter.js +2 -2
  12. package/dist/core/dispatch-arbiter.js.map +1 -1
  13. package/dist/core/model-registry.d.ts.map +1 -1
  14. package/dist/core/model-registry.js +1 -0
  15. package/dist/core/model-registry.js.map +1 -1
  16. package/dist/core/settings-manager.d.ts +4 -4
  17. package/dist/core/settings-manager.d.ts.map +1 -1
  18. package/dist/core/settings-manager.js.map +1 -1
  19. package/dist/core/thinking.d.ts.map +1 -1
  20. package/dist/core/thinking.js +9 -1
  21. package/dist/core/thinking.js.map +1 -1
  22. package/dist/core/tools/index.d.ts +6 -6
  23. package/dist/core/tools/subagent.d.ts +9 -9
  24. package/dist/core/tools/subagent.d.ts.map +1 -1
  25. package/dist/core/tools/subagent.js +4 -2
  26. package/dist/core/tools/subagent.js.map +1 -1
  27. package/dist/core/tools/watch-github-ci.d.ts.map +1 -1
  28. package/dist/core/tools/watch-github-ci.js +110 -67
  29. package/dist/core/tools/watch-github-ci.js.map +1 -1
  30. package/dist/main.d.ts.map +1 -1
  31. package/dist/main.js +6 -1
  32. package/dist/main.js.map +1 -1
  33. package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
  34. package/dist/modes/interactive/components/settings-selector.js +3 -2
  35. package/dist/modes/interactive/components/settings-selector.js.map +1 -1
  36. package/dist/modes/interactive/components/thinking-selector.d.ts.map +1 -1
  37. package/dist/modes/interactive/components/thinking-selector.js +2 -1
  38. package/dist/modes/interactive/components/thinking-selector.js.map +1 -1
  39. package/dist/modes/interactive/theme/dark.json +1 -6
  40. package/dist/modes/interactive/theme/light.json +1 -6
  41. package/dist/modes/interactive/theme/theme-schema.json +10 -2
  42. package/dist/modes/interactive/theme/theme.d.ts +2 -2
  43. package/dist/modes/interactive/theme/theme.d.ts.map +1 -1
  44. package/dist/modes/interactive/theme/theme.js +9 -3
  45. package/dist/modes/interactive/theme/theme.js.map +1 -1
  46. package/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
  47. package/dist/modes/rpc/rpc-mode.js +1 -0
  48. package/dist/modes/rpc/rpc-mode.js.map +1 -1
  49. package/dist/modes/rpc/rpc-types.d.ts +2 -0
  50. package/dist/modes/rpc/rpc-types.d.ts.map +1 -1
  51. package/dist/modes/rpc/rpc-types.js.map +1 -1
  52. package/docs/agent-models.md +1 -1
  53. package/docs/custom-provider.md +2 -2
  54. package/docs/extensions.md +1 -1
  55. package/docs/models.md +3 -1
  56. package/docs/rpc.md +5 -4
  57. package/docs/sdk.md +1 -1
  58. package/docs/settings.md +2 -2
  59. package/docs/themes.md +3 -1
  60. package/docs/tui.md +1 -1
  61. package/examples/extensions/dynamic-resources/dynamic.json +1 -0
  62. package/examples/extensions/preset.ts +1 -1
  63. package/package.json +1 -1
@@ -17,7 +17,7 @@ import { getTextOutput, invalidArgText, str } from "./render-utils.js";
17
17
  import { wrapToolDefinition } from "./tool-definition-wrapper.js";
18
18
  import { DEFAULT_MAX_BYTES, formatSize } from "./truncate.js";
19
19
  const DEFAULT_AGENT = "Explore";
20
- const SUBAGENT_THINKING_LEVELS = ["off", "minimal", "low", "medium", "high", "xhigh"];
20
+ const SUBAGENT_THINKING_LEVELS = ["off", "minimal", "low", "medium", "high", "xhigh", "max"];
21
21
  export const DEFAULT_MODEL_AVAILABILITY_PROBE_TIMEOUT_MS = 120_000;
22
22
  export function parseAgentFrontmatter(content) {
23
23
  const fmMatch = content.match(/^---\n([\s\S]*?)\n---\n?([\s\S]*)$/);
@@ -1613,6 +1613,7 @@ const thinkingLevelSchema = Type.Union([
1613
1613
  Type.Literal("medium"),
1614
1614
  Type.Literal("high"),
1615
1615
  Type.Literal("xhigh"),
1616
+ Type.Literal("max"),
1616
1617
  ], { description: "Thinking level override for the child model." });
1617
1618
  const taskItemSchema = Type.Object({
1618
1619
  agent: Type.Optional(Type.String({ description: "Agent type name (default: 'Explore')" })),
@@ -1638,6 +1639,7 @@ const subagentSchema = Type.Object({
1638
1639
  Type.Literal("medium"),
1639
1640
  Type.Literal("high"),
1640
1641
  Type.Literal("xhigh"),
1642
+ Type.Literal("max"),
1641
1643
  ], {
1642
1644
  description: "Thinking level override. Per-task values take precedence in parallel and chain modes. Omit to preserve child defaults.",
1643
1645
  })),
@@ -1800,7 +1802,7 @@ export function createSubagentToolDefinition(cwd, options) {
1800
1802
  "Each agent notifies independently when done — completion messages include a list of any still-running agents. If you need their results before proceeding, end your current turn with no tool calls (as if you were asking the user a question and waiting for their reply). This emits `agent_end` and lets the framework deliver the completion as a new message that resumes your turn automatically. Do not call `sleep` or any other waiting action, and do not launch filler work.",
1801
1803
  "Agent definitions specify a `model` field with a provider fallback list (comma-separated or YAML list). The spawner tries each in order and uses the first one that resolves for the current provider. This makes agents portable across providers.",
1802
1804
  "Per-invocation `model` overrides take precedence but **discard the entire fallback list** — if the single override model isn't available on the current provider, the agent fails. Only override when you have a specific reason (e.g. escalating to a stronger tier for a complex task).",
1803
- "Optional `thinking` overrides accept off/minimal/low/medium/high/xhigh. Per-task values override a top-level value; unsupported levels fail before spawn. Omit thinking to preserve the child's configured default.",
1805
+ "Optional `thinking` overrides accept off/minimal/low/medium/high/xhigh/max. Per-task values override a top-level value; unsupported levels fail before spawn. Omit thinking to preserve the child's configured default.",
1804
1806
  "**Model routing** — choose an agent by role fit first. Agent definitions already specify the normal model tier for that role; override the model only when the assigned task genuinely requires a different capability tier.",
1805
1807
  "**Model identity** — Your current model is stated in the system prompt as `You are running on: provider/id`. Use this for explicit routing decisions — e.g. delegate vision tasks if you're on a text-only model, or use a differently-architected model as a critic for tasks where diverse model perspectives improve reliability.",
1806
1808
  ],