@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.
- package/README.md +5 -3
- package/dist/cli/args.d.ts +1 -1
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +2 -2
- package/dist/cli/args.js.map +1 -1
- package/dist/core/agent-session.d.ts +2 -0
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +11 -3
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/dispatch-arbiter.d.ts.map +1 -1
- package/dist/core/dispatch-arbiter.js +2 -2
- package/dist/core/dispatch-arbiter.js.map +1 -1
- package/dist/core/model-registry.d.ts.map +1 -1
- package/dist/core/model-registry.js +1 -0
- package/dist/core/model-registry.js.map +1 -1
- package/dist/core/settings-manager.d.ts +4 -4
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/core/thinking.d.ts.map +1 -1
- package/dist/core/thinking.js +9 -1
- package/dist/core/thinking.js.map +1 -1
- package/dist/core/tools/index.d.ts +6 -6
- package/dist/core/tools/subagent.d.ts +9 -9
- package/dist/core/tools/subagent.d.ts.map +1 -1
- package/dist/core/tools/subagent.js +4 -2
- package/dist/core/tools/subagent.js.map +1 -1
- package/dist/core/tools/watch-github-ci.d.ts.map +1 -1
- package/dist/core/tools/watch-github-ci.js +110 -67
- package/dist/core/tools/watch-github-ci.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +6 -1
- package/dist/main.js.map +1 -1
- package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/settings-selector.js +3 -2
- package/dist/modes/interactive/components/settings-selector.js.map +1 -1
- package/dist/modes/interactive/components/thinking-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/thinking-selector.js +2 -1
- package/dist/modes/interactive/components/thinking-selector.js.map +1 -1
- package/dist/modes/interactive/theme/dark.json +1 -6
- package/dist/modes/interactive/theme/light.json +1 -6
- package/dist/modes/interactive/theme/theme-schema.json +10 -2
- package/dist/modes/interactive/theme/theme.d.ts +2 -2
- package/dist/modes/interactive/theme/theme.d.ts.map +1 -1
- package/dist/modes/interactive/theme/theme.js +9 -3
- package/dist/modes/interactive/theme/theme.js.map +1 -1
- package/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-mode.js +1 -0
- package/dist/modes/rpc/rpc-mode.js.map +1 -1
- package/dist/modes/rpc/rpc-types.d.ts +2 -0
- package/dist/modes/rpc/rpc-types.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-types.js.map +1 -1
- package/docs/agent-models.md +1 -1
- package/docs/custom-provider.md +2 -2
- package/docs/extensions.md +1 -1
- package/docs/models.md +3 -1
- package/docs/rpc.md +5 -4
- package/docs/sdk.md +1 -1
- package/docs/settings.md +2 -2
- package/docs/themes.md +3 -1
- package/docs/tui.md +1 -1
- package/examples/extensions/dynamic-resources/dynamic.json +1 -0
- package/examples/extensions/preset.ts +1 -1
- package/package.json +1 -1
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
import { copyFileSync, existsSync, mkdirSync, realpathSync, writeFileSync } from "node:fs";
|
|
16
16
|
import { tmpdir } from "node:os";
|
|
17
17
|
import { basename, dirname, join, resolve } from "node:path";
|
|
18
|
-
import { isContextOverflow, modelsAreEqual, resetApiProviders, supportsXhigh } from "@dreb/ai";
|
|
18
|
+
import { isContextOverflow, modelsAreEqual, resetApiProviders, supportsMax, supportsXhigh } from "@dreb/ai";
|
|
19
19
|
import { getDocsPath } from "../config.js";
|
|
20
20
|
import { theme } from "../modes/interactive/theme/theme.js";
|
|
21
21
|
import { sleep } from "../utils/sleep.js";
|
|
@@ -69,8 +69,10 @@ export function parseSkillBlock(text) {
|
|
|
69
69
|
// ============================================================================
|
|
70
70
|
/** Standard thinking levels */
|
|
71
71
|
const THINKING_LEVELS = ["off", "minimal", "low", "medium", "high"];
|
|
72
|
-
/** Thinking levels including xhigh (for supported models) */
|
|
72
|
+
/** Thinking levels including xhigh (for supported models). */
|
|
73
73
|
const THINKING_LEVELS_WITH_XHIGH = ["off", "minimal", "low", "medium", "high", "xhigh"];
|
|
74
|
+
/** Complete ordered scale, including the native max tier for supported models. */
|
|
75
|
+
const THINKING_LEVELS_WITH_MAX = [...THINKING_LEVELS_WITH_XHIGH, "max"];
|
|
74
76
|
const MIN_PERFORMANCE_DURATION_MS = 10;
|
|
75
77
|
// ============================================================================
|
|
76
78
|
// AgentSession Class
|
|
@@ -1895,6 +1897,8 @@ export class AgentSession {
|
|
|
1895
1897
|
getAvailableThinkingLevels() {
|
|
1896
1898
|
if (!this.supportsThinking())
|
|
1897
1899
|
return ["off"];
|
|
1900
|
+
if (this.supportsMaxThinking())
|
|
1901
|
+
return THINKING_LEVELS_WITH_MAX;
|
|
1898
1902
|
return this.supportsXhighThinking() ? THINKING_LEVELS_WITH_XHIGH : THINKING_LEVELS;
|
|
1899
1903
|
}
|
|
1900
1904
|
/**
|
|
@@ -1903,6 +1907,10 @@ export class AgentSession {
|
|
|
1903
1907
|
supportsXhighThinking() {
|
|
1904
1908
|
return this.model ? supportsXhigh(this.model) : false;
|
|
1905
1909
|
}
|
|
1910
|
+
/** Check if the current model supports the native max thinking level. */
|
|
1911
|
+
supportsMaxThinking() {
|
|
1912
|
+
return this.model ? supportsMax(this.model) : false;
|
|
1913
|
+
}
|
|
1906
1914
|
/**
|
|
1907
1915
|
* Check if current model supports thinking/reasoning.
|
|
1908
1916
|
*/
|
|
@@ -1919,7 +1927,7 @@ export class AgentSession {
|
|
|
1919
1927
|
return this.thinkingLevel;
|
|
1920
1928
|
}
|
|
1921
1929
|
_clampThinkingLevel(level, availableLevels) {
|
|
1922
|
-
const ordered =
|
|
1930
|
+
const ordered = THINKING_LEVELS_WITH_MAX;
|
|
1923
1931
|
const available = new Set(availableLevels);
|
|
1924
1932
|
const requestedIndex = ordered.indexOf(level);
|
|
1925
1933
|
if (requestedIndex === -1) {
|