zidane 6.4.0 → 6.4.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 +1 -1
- package/dist/{acp-DzUgjzNa.js → acp-Ba4OzG71.js} +6 -6
- package/dist/{acp-DzUgjzNa.js.map → acp-Ba4OzG71.js.map} +1 -1
- package/dist/acp-cli.js +6 -6
- package/dist/acp.d.ts +1 -1
- package/dist/acp.js +1 -1
- package/dist/{agent-COHX5SpM.js → agent-BMJKrD84.js} +26 -12
- package/dist/{agent-COHX5SpM.js.map → agent-BMJKrD84.js.map} +1 -1
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +1 -1
- package/dist/{anthropic-Bw39RApb.js → anthropic-BJhMEi7x.js} +15 -10
- package/dist/anthropic-BJhMEi7x.js.map +1 -0
- package/dist/{auth-XS60l6Q5.js → auth-C2Hmb0tt.js} +106 -13
- package/dist/auth-C2Hmb0tt.js.map +1 -0
- package/dist/chat/pure.d.ts +3 -3
- package/dist/chat.d.ts +16 -7
- package/dist/chat.d.ts.map +1 -1
- package/dist/chat.js +5 -5
- package/dist/{context-transport-Nb9CVjLJ.js → context-transport-CwJZxs56.js} +3 -3
- package/dist/{context-transport-Nb9CVjLJ.js.map → context-transport-CwJZxs56.js.map} +1 -1
- package/dist/contexts/daytona.d.ts +1 -1
- package/dist/contexts/e2b.d.ts +1 -1
- package/dist/{errors-DJUxZg9b.js → errors-BwBxu3zD.js} +27 -2
- package/dist/errors-BwBxu3zD.js.map +1 -0
- package/dist/errors.d.ts +1 -1
- package/dist/errors.js +1 -1
- package/dist/eval.d.ts +1 -1
- package/dist/eval.js +1 -1
- package/dist/extensions.d.ts +1 -1
- package/dist/extensions.js +1 -1
- package/dist/{fetch-url-_5WKWpbQ.js → fetch-url-B7aSg6Bp.js} +2 -2
- package/dist/{fetch-url-_5WKWpbQ.js.map → fetch-url-B7aSg6Bp.js.map} +1 -1
- package/dist/headless.d.ts +1 -1
- package/dist/headless.js +3 -3
- package/dist/{index-1Dr4Yqw1.d.ts → index-Gy9wi80M.d.ts} +189 -8
- package/dist/index-Gy9wi80M.d.ts.map +1 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +14 -14
- package/dist/{inline-autocomplete-DC2cxprN.js → inline-autocomplete-D0MPvBaS.js} +103 -17
- package/dist/inline-autocomplete-D0MPvBaS.js.map +1 -0
- package/dist/{login-CPU73khP.js → login-llWTV13a.js} +3 -3
- package/dist/{login-CPU73khP.js.map → login-llWTV13a.js.map} +1 -1
- package/dist/{mcp-BNg6hUeX.js → mcp-IaEpSauj.js} +4 -4
- package/dist/{mcp-BNg6hUeX.js.map → mcp-IaEpSauj.js.map} +1 -1
- package/dist/mcp.d.ts +1 -1
- package/dist/mcp.js +1 -1
- package/dist/{messages-DIxD2UCr.js → messages-D1EryrDs.js} +2 -2
- package/dist/{messages-DIxD2UCr.js.map → messages-D1EryrDs.js.map} +1 -1
- package/dist/{oauth-CuFPhsHY.js → oauth-bkEOybqm.js} +2 -2
- package/dist/{oauth-CuFPhsHY.js.map → oauth-bkEOybqm.js.map} +1 -1
- package/dist/{openai-compat-BTbSyQbm.js → openai-compat-0MJq4-g9.js} +192 -19
- package/dist/openai-compat-0MJq4-g9.js.map +1 -0
- package/dist/output/stream-json.d.ts +1 -1
- package/dist/output/terminal.d.ts +1 -1
- package/dist/presets.d.ts +1 -1
- package/dist/presets.js +1 -1
- package/dist/providers/anthropic.d.ts +1 -1
- package/dist/providers/anthropic.js +1 -1
- package/dist/providers/arcee.d.ts +1 -1
- package/dist/providers/arcee.js +1 -1
- package/dist/providers/baseten.d.ts +1 -1
- package/dist/providers/baseten.js +1 -1
- package/dist/providers/cerebras.d.ts +1 -1
- package/dist/providers/cerebras.js +1 -1
- package/dist/providers/local.d.ts +1 -1
- package/dist/providers/local.js +1 -1
- package/dist/providers/openai-compat.d.ts +1 -1
- package/dist/providers/openai-compat.js +1 -1
- package/dist/providers/openai.d.ts +1 -1
- package/dist/providers/openai.js +15 -14
- package/dist/providers/openai.js.map +1 -1
- package/dist/providers/openrouter.d.ts +1 -1
- package/dist/providers/openrouter.js +1 -1
- package/dist/providers/xai.d.ts +1 -1
- package/dist/providers/xai.js +1 -1
- package/dist/{providers-BsH1MnhC.js → providers-BSrJx0Tn.js} +4 -4
- package/dist/{providers-BsH1MnhC.js.map → providers-BSrJx0Tn.js.map} +1 -1
- package/dist/providers.d.ts +2 -2
- package/dist/providers.js +6 -6
- package/dist/{resolve-BPTA1RpX.js → resolve-CZJxds85.js} +2 -2
- package/dist/{resolve-BPTA1RpX.js.map → resolve-CZJxds85.js.map} +1 -1
- package/dist/restate.d.ts +1 -1
- package/dist/session/sqlite.d.ts +1 -1
- package/dist/session/sqlite.js +1 -1
- package/dist/{session-DY2LWai4.js → session-B40flcj7.js} +2 -2
- package/dist/{session-DY2LWai4.js.map → session-B40flcj7.js.map} +1 -1
- package/dist/session.d.ts +1 -1
- package/dist/session.js +2 -2
- package/dist/{skills-C7eIjWYm.js → skills-Dd6XCi4s.js} +3 -3
- package/dist/{skills-C7eIjWYm.js.map → skills-Dd6XCi4s.js.map} +1 -1
- package/dist/skills.d.ts +1 -1
- package/dist/skills.js +2 -2
- package/dist/{stdio-DfWu1rNB.js → stdio-D-02FOVT.js} +2 -2
- package/dist/{stdio-DfWu1rNB.js.map → stdio-D-02FOVT.js.map} +1 -1
- package/dist/{stdio-loader-mfN5JYns.js → stdio-loader-Byqw5KjJ.js} +2 -2
- package/dist/{stdio-loader-mfN5JYns.js.map → stdio-loader-Byqw5KjJ.js.map} +1 -1
- package/dist/{timeout-8vSIRjzl.d.ts → timeout-DEaqslLO.d.ts} +25 -2
- package/dist/timeout-DEaqslLO.d.ts.map +1 -0
- package/dist/{tool-formatters-BaHq343O.d.ts → tool-formatters-CU0memLh.d.ts} +2 -2
- package/dist/{tool-formatters-BaHq343O.d.ts.map → tool-formatters-CU0memLh.d.ts.map} +1 -1
- package/dist/tools/fetch-url.d.ts +1 -1
- package/dist/tools/fetch-url.js +1 -1
- package/dist/tools/web-search.d.ts +1 -1
- package/dist/tools/web-search.js +2 -2
- package/dist/tools.d.ts +1 -1
- package/dist/tools.js +1 -1
- package/dist/{transcript-anchors-BquAWoGN.d.ts → transcript-anchors-4IdT10xC.d.ts} +2 -2
- package/dist/{transcript-anchors-BquAWoGN.d.ts.map → transcript-anchors-4IdT10xC.d.ts.map} +1 -1
- package/dist/{transcript-anchors-CWzlwIOr.js → transcript-anchors-CJ4gJn1T.js} +7 -7
- package/dist/{transcript-anchors-CWzlwIOr.js.map → transcript-anchors-CJ4gJn1T.js.map} +1 -1
- package/dist/tui.d.ts +24 -3
- package/dist/tui.d.ts.map +1 -1
- package/dist/tui.js +51 -18
- package/dist/tui.js.map +1 -1
- package/dist/{turn-operations-OQlIx13T.d.ts → turn-operations-B08dE8kH.d.ts} +3 -3
- package/dist/{turn-operations-OQlIx13T.d.ts.map → turn-operations-B08dE8kH.d.ts.map} +1 -1
- package/dist/types-BIarq1qE.js.map +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/types.js +1 -1
- package/dist/{xai-DnZfHvTz.js → xai-CpPbCGWO.js} +3 -3
- package/dist/{xai-DnZfHvTz.js.map → xai-CpPbCGWO.js.map} +1 -1
- package/docs/ARCHITECTURE.md +2 -0
- package/docs/CHAT.md +1 -1
- package/docs/TUI.md +1 -1
- package/package.json +8 -8
- package/dist/anthropic-Bw39RApb.js.map +0 -1
- package/dist/auth-XS60l6Q5.js.map +0 -1
- package/dist/errors-DJUxZg9b.js.map +0 -1
- package/dist/index-1Dr4Yqw1.d.ts.map +0 -1
- package/dist/inline-autocomplete-DC2cxprN.js.map +0 -1
- package/dist/openai-compat-BTbSyQbm.js.map +0 -1
- package/dist/timeout-8vSIRjzl.d.ts.map +0 -1
package/dist/acp-cli.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { Vt as resolveStorageDirs, ht as basic_default } from "./agent-
|
|
2
|
+
import { Vt as resolveStorageDirs, ht as basic_default } from "./agent-BMJKrD84.js";
|
|
3
3
|
import { r as createProcessContext } from "./contexts-DWVt7MvF.js";
|
|
4
4
|
import { createSandboxContext } from "./contexts/sandbox.js";
|
|
5
|
-
import { m as openaiCompat } from "./openai-compat-
|
|
6
|
-
import { n as anthropic } from "./anthropic-
|
|
5
|
+
import { m as openaiCompat } from "./openai-compat-0MJq4-g9.js";
|
|
6
|
+
import { n as anthropic } from "./anthropic-BJhMEi7x.js";
|
|
7
7
|
import { arcee } from "./providers/arcee.js";
|
|
8
8
|
import { baseten } from "./providers/baseten.js";
|
|
9
9
|
import { cerebras } from "./providers/cerebras.js";
|
|
10
|
-
import { t as xai } from "./xai-
|
|
10
|
+
import { t as xai } from "./xai-CpPbCGWO.js";
|
|
11
11
|
import { openai } from "./providers/openai.js";
|
|
12
12
|
import { openrouter } from "./providers/openrouter.js";
|
|
13
|
-
import { d as StartUsageError, f as buildStartLocalOptions, h as startProviderNames, i as withAcpDefaultTools, m as startLocalArgOptions, p as parseStartArgValues, t as runAcpStdioServer } from "./acp-
|
|
14
|
-
import { f as credKeyOf, i as readCredentials, l as BUILTIN_PROVIDERS, r as credentialsPath, t as detectAuth, y as modelsForDescriptor } from "./auth-
|
|
13
|
+
import { d as StartUsageError, f as buildStartLocalOptions, h as startProviderNames, i as withAcpDefaultTools, m as startLocalArgOptions, p as parseStartArgValues, t as runAcpStdioServer } from "./acp-Ba4OzG71.js";
|
|
14
|
+
import { f as credKeyOf, i as readCredentials, l as BUILTIN_PROVIDERS, r as credentialsPath, t as detectAuth, y as modelsForDescriptor } from "./auth-C2Hmb0tt.js";
|
|
15
15
|
import { createDaytonaProvider } from "./contexts/daytona.js";
|
|
16
16
|
import { createDockerContext } from "./contexts/docker.js";
|
|
17
17
|
import { createE2BProvider } from "./contexts/e2b.js";
|
package/dist/acp.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { Fp as AgentBehavior, Hm as TurnUsage, Nm as ToolResultContent, Qp as McpServerConfig, Wi as Agent, fh as Session, gh as SessionStore, lm as PromptPart, qi as AgentOptions, qm as ToolDef, rf as Provider, t as Preset, vm as SessionContentBlock } from "./index-Gy9wi80M.js";
|
|
1
2
|
import { c as ExecutionContext } from "./types-M2DauK2D.js";
|
|
2
|
-
import { Fp as AgentBehavior, Hm as TurnUsage, Nm as ToolResultContent, Qp as McpServerConfig, Wi as Agent, fh as Session, gh as SessionStore, lm as PromptPart, qi as AgentOptions, qm as ToolDef, rf as Provider, t as Preset, vm as SessionContentBlock } from "./index-1Dr4Yqw1.js";
|
|
3
3
|
import { Readable, Writable } from "node:stream";
|
|
4
4
|
|
|
5
5
|
//#region src/acp/types.d.ts
|
package/dist/acp.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as createJsonRpcConnection, a as wrapToolsForAcpClient, c as sessionBlocksToAcp, g as JsonRpcRemoteError, i as withAcpDefaultTools, l as stopReasonFromRun, n as AcpProtocolError, o as acpMcpServersToZidane, r as createAcpServer, s as acpPromptToPromptParts, t as runAcpStdioServer, u as toolResultToAcpContent } from "./acp-
|
|
1
|
+
import { _ as createJsonRpcConnection, a as wrapToolsForAcpClient, c as sessionBlocksToAcp, g as JsonRpcRemoteError, i as withAcpDefaultTools, l as stopReasonFromRun, n as AcpProtocolError, o as acpMcpServersToZidane, r as createAcpServer, s as acpPromptToPromptParts, t as runAcpStdioServer, u as toolResultToAcpContent } from "./acp-Ba4OzG71.js";
|
|
2
2
|
export { AcpProtocolError, JsonRpcRemoteError, acpMcpServersToZidane, acpPromptToPromptParts, createAcpServer, createJsonRpcConnection, runAcpStdioServer, sessionBlocksToAcp, stopReasonFromRun, toolResultToAcpContent, withAcpDefaultTools, wrapToolsForAcpClient };
|
|
@@ -9,16 +9,16 @@ import { i as parseGitLsFiles, r as GIT_LS_FILES_COMMAND } from "./glob-DluQFSw1
|
|
|
9
9
|
import { i as isOutputExceededMessage } from "./output-cap-C9zukcCj.js";
|
|
10
10
|
import { r as createProcessContext, t as resolveDetachedTasksCapability } from "./contexts-DWVt7MvF.js";
|
|
11
11
|
import { n as shellQuote, t as alwaysQuote } from "./shell-quote-BmnhZmdM.js";
|
|
12
|
-
import {
|
|
13
|
-
import { C as stripShellInterpolations, O as validateResourcePathReal, S as interpolateShellCommands, _ as lastLine, b as resolveSubdirRoot, d as installAllowedToolsGate, f as createSkillActivationState, g as fetchInstallSource, h as defaultWhich, j as projectUserPaths, l as buildCatalog, m as defaultExec, p as InstallSourceError, t as resolveSkills, v as parseInstallSource, x as escapeXml, y as resolveNpmVersion } from "./resolve-
|
|
12
|
+
import { a as AgentProviderError, d as isAbortLikeError, h as toTypedError, i as AgentLengthResumeExhaustedError, n as AgentBudgetExceededError, s as AgentToolPairingError, t as AgentAbortedError, u as errorMessage } from "./errors-BwBxu3zD.js";
|
|
13
|
+
import { C as stripShellInterpolations, O as validateResourcePathReal, S as interpolateShellCommands, _ as lastLine, b as resolveSubdirRoot, d as installAllowedToolsGate, f as createSkillActivationState, g as fetchInstallSource, h as defaultWhich, j as projectUserPaths, l as buildCatalog, m as defaultExec, p as InstallSourceError, t as resolveSkills, v as parseInstallSource, x as escapeXml, y as resolveNpmVersion } from "./resolve-CZJxds85.js";
|
|
14
14
|
import { n as writeFileAtomicAsync, t as writeFileAtomic } from "./atomic-write-B7zr1ddF.js";
|
|
15
15
|
import { r as createLogger, t as consoleSink } from "./logger-DBX9uYOw.js";
|
|
16
16
|
import { n as reconcileImageMediaType } from "./media-sniff-UKijEaiQ.js";
|
|
17
|
-
import { d as wrapDiscoveredMcpTools, i as deriveMcpToolMeta, n as connectMcpServers, s as nonOwningMcpView } from "./mcp-
|
|
18
|
-
import {
|
|
17
|
+
import { d as wrapDiscoveredMcpTools, i as deriveMcpToolMeta, n as connectMcpServers, s as nonOwningMcpView } from "./mcp-IaEpSauj.js";
|
|
18
|
+
import { M as buildPromptMessage, N as canonicalizePrompt } from "./openai-compat-0MJq4-g9.js";
|
|
19
19
|
import { appendStaticSection, renderSystemForWire } from "./prompt.js";
|
|
20
|
-
import { a as detectTurnInterruption, c as ensureToolResultPairing, l as filterUnresolvedToolUses, m as resolveContentRefsInMessages, n as SYNTHETIC_TOOL_RESULT_PLACEHOLDER, p as remintDuplicateToolCallIds, s as ensureEndsWithUserMessage } from "./messages-
|
|
21
|
-
import { a as getExtensionSessionState, c as setExtensionSessionState, l as withExtensionSession, n as currentExtensionSession, r as deleteExtensionSessionState, s as resumeChainRunIds } from "./session-
|
|
20
|
+
import { a as detectTurnInterruption, c as ensureToolResultPairing, l as filterUnresolvedToolUses, m as resolveContentRefsInMessages, n as SYNTHETIC_TOOL_RESULT_PLACEHOLDER, p as remintDuplicateToolCallIds, s as ensureEndsWithUserMessage } from "./messages-D1EryrDs.js";
|
|
21
|
+
import { a as getExtensionSessionState, c as setExtensionSessionState, l as withExtensionSession, n as currentExtensionSession, r as deleteExtensionSessionState, s as resumeChainRunIds } from "./session-B40flcj7.js";
|
|
22
22
|
import { n as flattenTurns, r as formatTokenUsage, t as effectiveInputFromTurn } from "./stats-DAKBEKjc.js";
|
|
23
23
|
import { a as withInactivityTimeout, i as settleWithinTimeout, n as linkAbortSignal, o as withTimeout$1, r as resolveTimeoutMs, t as OperationTimeoutError } from "./timeout-BDetbuN6.js";
|
|
24
24
|
import { createRequire } from "node:module";
|
|
@@ -10870,8 +10870,10 @@ async function runLoop(ctx) {
|
|
|
10870
10870
|
let turnsCompleted = 0;
|
|
10871
10871
|
const pauseCap = ctx.maxConsecutivePauseTurns ?? 0;
|
|
10872
10872
|
let consecutiveEmptyPauseTurns = 0;
|
|
10873
|
-
const maxConsecutiveLengthResumes = 8;
|
|
10873
|
+
const maxConsecutiveLengthResumes = ctx.maxConsecutiveLengthResumes ?? 8;
|
|
10874
10874
|
let consecutiveLengthResumes = 0;
|
|
10875
|
+
const maxConsecutiveEmptyLengthResumes = 2;
|
|
10876
|
+
let consecutiveEmptyLengthResumes = 0;
|
|
10875
10877
|
const maxConsecutiveRefusalResumes = ctx.maxConsecutiveRefusalResumes ?? 3;
|
|
10876
10878
|
let consecutiveRefusalResumes = 0;
|
|
10877
10879
|
const wallDeadlineActive = typeof ctx.maxWallMs === "number" && Number.isFinite(ctx.maxWallMs) && ctx.maxWallMs > 0;
|
|
@@ -10932,8 +10934,13 @@ async function runLoop(ctx) {
|
|
|
10932
10934
|
} else consecutiveEmptyPauseTurns = 0;
|
|
10933
10935
|
if (result.lengthTruncated) {
|
|
10934
10936
|
consecutiveLengthResumes += 1;
|
|
10937
|
+
consecutiveEmptyLengthResumes = result.lengthEmpty ? consecutiveEmptyLengthResumes + 1 : 0;
|
|
10938
|
+
if (consecutiveEmptyLengthResumes >= maxConsecutiveEmptyLengthResumes) throw new AgentLengthResumeExhaustedError({ consecutiveEmptyTurns: consecutiveEmptyLengthResumes });
|
|
10935
10939
|
if (consecutiveLengthResumes >= maxConsecutiveLengthResumes) break;
|
|
10936
|
-
} else
|
|
10940
|
+
} else {
|
|
10941
|
+
consecutiveLengthResumes = 0;
|
|
10942
|
+
consecutiveEmptyLengthResumes = 0;
|
|
10943
|
+
}
|
|
10937
10944
|
if (result.refusalResumed) {
|
|
10938
10945
|
consecutiveRefusalResumes += 1;
|
|
10939
10946
|
if (consecutiveRefusalResumes >= maxConsecutiveRefusalResumes) break;
|
|
@@ -11165,6 +11172,7 @@ async function enforceSchemaOutput(ctx, turnId) {
|
|
|
11165
11172
|
tools: ctx.provider.formatTools([outputSpec]),
|
|
11166
11173
|
messages: schemaMessages,
|
|
11167
11174
|
maxTokens: ctx.maxTokens,
|
|
11175
|
+
...ctx.modelCatalog ? { modelCatalog: ctx.modelCatalog } : {},
|
|
11168
11176
|
toolChoice: {
|
|
11169
11177
|
type: "tool",
|
|
11170
11178
|
name: "__output__"
|
|
@@ -11973,6 +11981,7 @@ async function executeTurn(ctx, turn, priorUsage) {
|
|
|
11973
11981
|
tools: formattedTools,
|
|
11974
11982
|
messages: sanitizedMessages,
|
|
11975
11983
|
maxTokens: ctx.maxTokens,
|
|
11984
|
+
...ctx.modelCatalog ? { modelCatalog: ctx.modelCatalog } : {},
|
|
11976
11985
|
thinking: ctx.thinking,
|
|
11977
11986
|
thinkingBudget: effectiveThinkingBudget,
|
|
11978
11987
|
...ctx.taskBudget !== void 0 ? { taskBudget: ctx.taskBudget } : {},
|
|
@@ -12280,7 +12289,7 @@ async function executeTurn(ctx, turn, priorUsage) {
|
|
|
12280
12289
|
},
|
|
12281
12290
|
cumulativeUsage: buildCumulativeUsage(priorUsage, result.usage)
|
|
12282
12291
|
}));
|
|
12283
|
-
if (ctx.resumeOnMaxTokens && result.usage.finishReason === "length" && canonicalToolCalls.length === 0 && !ctx.signal.aborted) {
|
|
12292
|
+
if (ctx.resumeOnMaxTokens && (ctx.maxConsecutiveLengthResumes ?? 8) > 0 && result.usage.finishReason === "length" && canonicalToolCalls.length === 0 && !ctx.signal.aborted) {
|
|
12284
12293
|
const continueMsg = ctx.provider.userMessage("Please continue.");
|
|
12285
12294
|
ctx.turns.push({
|
|
12286
12295
|
id: await ctx.generateTurnId(),
|
|
@@ -12293,7 +12302,8 @@ async function executeTurn(ctx, turn, priorUsage) {
|
|
|
12293
12302
|
ended: false,
|
|
12294
12303
|
turnId,
|
|
12295
12304
|
usage: result.usage,
|
|
12296
|
-
lengthTruncated: true
|
|
12305
|
+
lengthTruncated: true,
|
|
12306
|
+
...currentText.length === 0 ? { lengthEmpty: true } : {}
|
|
12297
12307
|
};
|
|
12298
12308
|
}
|
|
12299
12309
|
if (result.usage.finishReason === "content-filter" && canonicalToolCalls.length === 0 && !ctx.signal.aborted && (ctx.maxConsecutiveRefusalResumes ?? 3) > 0) {
|
|
@@ -13992,6 +14002,7 @@ function resolveBehavior(agentBehavior, runBehavior) {
|
|
|
13992
14002
|
spawnTimeoutMs: runBehavior?.spawnTimeoutMs ?? agentBehavior?.spawnTimeoutMs,
|
|
13993
14003
|
destroyTimeoutMs: runBehavior?.destroyTimeoutMs ?? agentBehavior?.destroyTimeoutMs,
|
|
13994
14004
|
maxTokens: runBehavior?.maxTokens ?? agentBehavior?.maxTokens,
|
|
14005
|
+
modelCatalog: runBehavior?.modelCatalog ?? agentBehavior?.modelCatalog,
|
|
13995
14006
|
thinkingBudget: runBehavior?.thinkingBudget ?? agentBehavior?.thinkingBudget,
|
|
13996
14007
|
taskBudget: runBehavior?.taskBudget ?? agentBehavior?.taskBudget,
|
|
13997
14008
|
effortHint: runBehavior?.effortHint ?? agentBehavior?.effortHint,
|
|
@@ -14042,6 +14053,7 @@ function resolveBehavior(agentBehavior, runBehavior) {
|
|
|
14042
14053
|
maxConsecutivePauseTurns: runBehavior?.maxConsecutivePauseTurns ?? agentBehavior?.maxConsecutivePauseTurns,
|
|
14043
14054
|
maxConsecutiveRefusalResumes: runBehavior?.maxConsecutiveRefusalResumes ?? agentBehavior?.maxConsecutiveRefusalResumes,
|
|
14044
14055
|
resumeOnMaxTokens: runBehavior?.resumeOnMaxTokens ?? agentBehavior?.resumeOnMaxTokens,
|
|
14056
|
+
maxConsecutiveLengthResumes: runBehavior?.maxConsecutiveLengthResumes ?? agentBehavior?.maxConsecutiveLengthResumes,
|
|
14045
14057
|
persistTurns: runBehavior?.persistTurns ?? agentBehavior?.persistTurns
|
|
14046
14058
|
};
|
|
14047
14059
|
}
|
|
@@ -14897,7 +14909,7 @@ function createAgent(rawOptions) {
|
|
|
14897
14909
|
const thinking = options.thinking ?? "off";
|
|
14898
14910
|
const model = targets[0].model;
|
|
14899
14911
|
if (runProvider.meta?.clearsContextServerSide) resolvedBehavior.dedupReads = false;
|
|
14900
|
-
const { maxConcurrentTools, toolBatchExecutor, toolBatchTimeoutMs, shouldRethrowToolError, maxTurns, maxTurnsWarning, maxTurnsWarningMessage, maxCostUsd, maxTotalTokens, maxWallMs, providerStreamStartTimeoutMs, providerStreamTimeoutMs, providerStreamIdleTimeoutMs, maxTokens, retry, thinkingBudget, taskBudget, effortHint, thinkingOverrunPolicy, modelOptions: behaviorModelOptions, schema, cache, cacheTtl, toolOutputBudget, toolOutputBudgetExcludeTools, compactStrategy, compactThreshold, compactKeepTurns, thinkingDecay, writeFileExistingPolicy, textToolCallRescue, unknownToolRecovery, progressNudges, dedupTools, toolBudgets, repeatGuard, elideStaleReads, mediaKeepTurns, autoCompact, toolDisclosure, mcpToolNameSeparator, toolSearch, surfaceMcpInstructions, persistThreshold, persistExcludeTools, persistDir, persistMaxBytes, strictToolPairing, maxPairingRepairsPerTurn, maxConsecutivePauseTurns, maxConsecutiveRefusalResumes, resumeOnMaxTokens, persistTurns } = resolvedBehavior;
|
|
14912
|
+
const { maxConcurrentTools, toolBatchExecutor, toolBatchTimeoutMs, shouldRethrowToolError, maxTurns, maxTurnsWarning, maxTurnsWarningMessage, maxCostUsd, maxTotalTokens, maxWallMs, providerStreamStartTimeoutMs, providerStreamTimeoutMs, providerStreamIdleTimeoutMs, maxTokens, modelCatalog, retry, thinkingBudget, taskBudget, effortHint, thinkingOverrunPolicy, modelOptions: behaviorModelOptions, schema, cache, cacheTtl, toolOutputBudget, toolOutputBudgetExcludeTools, compactStrategy, compactThreshold, compactKeepTurns, thinkingDecay, writeFileExistingPolicy, textToolCallRescue, unknownToolRecovery, progressNudges, dedupTools, toolBudgets, repeatGuard, elideStaleReads, mediaKeepTurns, autoCompact, toolDisclosure, mcpToolNameSeparator, toolSearch, surfaceMcpInstructions, persistThreshold, persistExcludeTools, persistDir, persistMaxBytes, strictToolPairing, maxPairingRepairsPerTurn, maxConsecutivePauseTurns, maxConsecutiveRefusalResumes, resumeOnMaxTokens, maxConsecutiveLengthResumes, persistTurns } = resolvedBehavior;
|
|
14901
14913
|
const modelOptions = options.modelOptions ?? behaviorModelOptions;
|
|
14902
14914
|
let system = options.system || agentSystem || "You are a helpful assistant.";
|
|
14903
14915
|
const baseSystemForBreakdown = renderSystemForWire(system);
|
|
@@ -15327,6 +15339,7 @@ function createAgent(rawOptions) {
|
|
|
15327
15339
|
...resolvedBehavior.hookTimeoutMs !== void 0 ? { hookTimeoutMs: resolvedBehavior.hookTimeoutMs } : {},
|
|
15328
15340
|
...retry !== void 0 ? { retry } : {},
|
|
15329
15341
|
maxTokens,
|
|
15342
|
+
...modelCatalog !== void 0 ? { modelCatalog } : {},
|
|
15330
15343
|
...session ? { session } : {},
|
|
15331
15344
|
...agentReadState ? { readState: agentReadState } : {},
|
|
15332
15345
|
...options.parentRunId ? { parentRunId: options.parentRunId } : {},
|
|
@@ -15358,6 +15371,7 @@ function createAgent(rawOptions) {
|
|
|
15358
15371
|
...maxConsecutivePauseTurns !== void 0 ? { maxConsecutivePauseTurns } : {},
|
|
15359
15372
|
...maxConsecutiveRefusalResumes !== void 0 ? { maxConsecutiveRefusalResumes } : {},
|
|
15360
15373
|
...resumeOnMaxTokens !== void 0 ? { resumeOnMaxTokens } : {},
|
|
15374
|
+
...maxConsecutiveLengthResumes !== void 0 ? { maxConsecutiveLengthResumes } : {},
|
|
15361
15375
|
providerName: runProvider.name,
|
|
15362
15376
|
runStartMs,
|
|
15363
15377
|
runToolCounts: {},
|
|
@@ -15949,4 +15963,4 @@ function createAgent(rawOptions) {
|
|
|
15949
15963
|
//#endregion
|
|
15950
15964
|
export { removeInstalledExtension as $, readKeybindings as $t, NO_TOOLS_PREAMBLE as A, looksBinary as At, stripImagesFromTurns as B, validateToolArgs as Bt, resolveTasksDir as C, shouldAutoCompact as Cn, createSkillsRunScriptTool as Ct, selectRecentFiles as D, stableStringify as Dn, shell as Dt, selectFilesFromSession as E, normalizeShellCommand as En, createShellTool as Et, buildTailCompactPrompt as F, listFiles as Ft, EMPTY_EXTENSION_REGISTRY as G, KEYBINDING_KEY_COL_WIDTH as Gt, truncateHeadForPtlRetry as H, DEFAULT_KEYBINDINGS as Ht, buildUpToCompactPrompt as I, createInteractionTool as It, fetchExtensionSource as J, groupBindings as Jt, createExtensionPromptBridge as K, ensureKeybindingsFile as Kt, ANCHOR_PREVIEW_MAX_CHARS as L, grep as Lt, buildCompactPrompt as M, createModelSearchTool as Mt, buildFromCompactPrompt as N, formatModelLine as Nt, compactConversation as O, tailTruncate as Ot, buildFullCompactPrompt as P, matchModelEntries as Pt, readExtensionInstallProvenance as Q, parseBindingSpec as Qt, anchorPreviewFor as R, glob as Rt, resolveSessionDir as S, effectiveContextWindow as Sn, createSkillsUseTool as St, selectFilesFromReadState as T, defaultRepeatGuardTracked as Tn, shellKill as Tt, CompactInvalidInputError as U, KEYBINDING_DEFS as Ut, summaryToTurn as V, resolveStorageDirs as Vt, CompactPromptTooLongError as W, KEYBINDING_DEF_BY_ACTION as Wt, listExtensionCandidates as X, matchesBinding as Xt, installExtensionFromSpec as Y, keybindingsPath as Yt, parseExtensionInstallSource as Z, mergeKeybindings as Zt, rehomePersistedStubs as _, resolveExtensionConfigValue as _n, WAIT_TASK_TIMED_OUT_PREFIX as _t, SHELL_CASCADE_CANCEL_MESSAGE as a, defaultExtensionScanPaths as an, composeExtensionPreset as at, resolveMcpWarningsDir as b, AUTO_COMPACT_MIN_GROWTH_FRACTION as bn, createSpawnTool as bt, applyCompactSummaryCutoff as c, isExtensionDefinition as cn, mergeContributions as ct, PERSISTED_STUB_PREFIX as d, defineExtension as dn, createWorkspaceSurface as dt, readKeybindingsRaw as en, updateInstalledExtension as et, PERSISTENCE_PREVIEW_BYTES as f, clampExtensionConfigNumber as fn, composePresets as ft, migrateSessionArtifactDirs as g, resolveExtensionConfig as gn, writeFile$1 as gt, maybePersistToolResult as h, isValidExtensionConfigValue as hn, basic_default as ht, INTERRUPT_MESSAGE_FOR_TOOL_USE as i, ENTRY_CANDIDATES as in, buildExtensionRegistry as it, TRAILER as j, multiEdit as jt, BASE_INSTRUCTIONS as k, readFile$1 as kt, collectNewlyStaleReadPaths as l, parseExtensionScanPathEnv as ln, partitionExtensionCatalog as lt, cleanupPersistedSession as m, isValidExtensionConfigItem as mn, basicTools as mt, normalizeProviders as n, stripJsonComments as nn, discoverAndBuildExtensionRegistry as nt, TOOL_USE_CANCELLED_MESSAGE as o, discoverExtensions as on, disposeExtensionRegistry as ot, buildPersistedStub as p, coerceExtensionConfigInput as pn, definePreset as pt, ExtensionInstallError as q, formatBindingForDisplay as qt, resolveModelTargets as r, registerExtensionHostModules as rn, buildExtensionPreset as rt, TOOL_USE_SKIPPED_MESSAGE as s, inlineLoadedExtension as sn, filterExtensionRegistry as st, createAgent as t, resolveExtensionKeybindings as tn, createExtensionHud as tt, renderStaleReadNotice as u, scanExtensionDirectories as un, createExtensionHostRuntimeBridge as ut, resolveLegacyPersistDir as v, sanitizeExtensionConfigActionPatch as vn, waitTask as vt, buildPostCompactAttachments as w, defaultRepeatGuardNormalize as wn, createSkillsReadTool as wt, resolvePersistDir as x, OUTPUT_RESERVE_TOKENS as xn, isSpawnTool as xt, resolveLegacySessionDir as y, toWireConfigSchema as yn, createToolSearchTool as yt, sliceForCompaction as z, edit as zt };
|
|
15951
15965
|
|
|
15952
|
-
//# sourceMappingURL=agent-
|
|
15966
|
+
//# sourceMappingURL=agent-BMJKrD84.js.map
|