zidane 5.13.13 → 5.13.15
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/dist/{acp-CqXcM2Km.js → acp-X9NvSC7i.js} +8 -8
- package/dist/{acp-CqXcM2Km.js.map → acp-X9NvSC7i.js.map} +1 -1
- package/dist/acp-cli.js +8 -7
- package/dist/acp-cli.js.map +1 -1
- package/dist/acp.d.ts +2 -2
- package/dist/acp.js +1 -1
- package/dist/{agent-NkKgz5Dh.d.ts → agent-CNIOsTUg.d.ts} +44 -2
- package/dist/agent-CNIOsTUg.d.ts.map +1 -0
- package/dist/{auth-CGTf8v1_.js → auth-D9rP8khI.js} +2 -2
- package/dist/{auth-CGTf8v1_.js.map → auth-D9rP8khI.js.map} +1 -1
- package/dist/chat/pure.d.ts +3 -3
- package/dist/chat.d.ts +6 -6
- package/dist/chat.js +3 -3
- package/dist/contexts/daytona.d.ts +22 -4
- package/dist/contexts/daytona.d.ts.map +1 -1
- package/dist/contexts/daytona.js +6 -5
- package/dist/contexts/daytona.js.map +1 -1
- package/dist/contexts/docker.js +2 -1
- package/dist/contexts/docker.js.map +1 -1
- package/dist/contexts/e2b.d.ts +2 -2
- package/dist/contexts/sandbox.d.ts +2 -0
- package/dist/contexts/sandbox.js +55 -0
- package/dist/contexts/sandbox.js.map +1 -0
- package/dist/{contexts-DHi8LPCp.js → contexts-BebciJyQ.js} +3 -53
- package/dist/contexts-BebciJyQ.js.map +1 -0
- package/dist/contexts.d.ts +2 -1
- package/dist/contexts.js +2 -1
- package/dist/{errors-BpPfMo_4.js → errors-DJUxZg9b.js} +3 -2
- package/dist/{errors-BpPfMo_4.js.map → errors-DJUxZg9b.js.map} +1 -1
- package/dist/eval.d.ts +1 -1
- package/dist/eval.js +3 -3
- package/dist/{fetch-url-Cgbq-HYx.js → fetch-url-CWE8X5OD.js} +2 -2
- package/dist/{fetch-url-Cgbq-HYx.js.map → fetch-url-CWE8X5OD.js.map} +1 -1
- package/dist/{glob-DCWXy_tr.js → glob-D56-KpBp.js} +2 -12
- package/dist/glob-D56-KpBp.js.map +1 -0
- package/dist/glob-shell-rJMoCIGb.js +21 -0
- package/dist/glob-shell-rJMoCIGb.js.map +1 -0
- package/dist/{headless-C6Idunwh.js → headless-Dtd24J6l.js} +6 -6
- package/dist/{headless-C6Idunwh.js.map → headless-Dtd24J6l.js.map} +1 -1
- package/dist/headless.d.ts +1 -1
- package/dist/headless.js +1 -1
- package/dist/{index-BgB_425D.d.ts → index-DXwsHr4o.d.ts} +8 -6
- package/dist/{index-BgB_425D.d.ts.map → index-DXwsHr4o.d.ts.map} +1 -1
- package/dist/{index-BFY7mcar.d.ts → index-DuB7Cf02.d.ts} +2 -2
- package/dist/{index-BFY7mcar.d.ts.map → index-DuB7Cf02.d.ts.map} +1 -1
- package/dist/index-HQJDOWvo.d.ts +7 -0
- package/dist/index-HQJDOWvo.d.ts.map +1 -0
- package/dist/index.d.ts +6 -5
- package/dist/index.js +12 -11
- package/dist/index.js.map +1 -1
- package/dist/{interpolate-ConAiXGy.js → interpolate-BtIgcCuz.js} +2 -2
- package/dist/{interpolate-ConAiXGy.js.map → interpolate-BtIgcCuz.js.map} +1 -1
- package/dist/{logger-LQmSBfD_.d.ts → logger-HOG4EGv6.d.ts} +2 -2
- package/dist/{logger-LQmSBfD_.d.ts.map → logger-HOG4EGv6.d.ts.map} +1 -1
- package/dist/{login-DE-_d045.js → login-CCA-1lgK.js} +2 -2
- package/dist/{login-DE-_d045.js.map → login-CCA-1lgK.js.map} +1 -1
- package/dist/{mcp-2OGi_NQu.js → mcp-Dn5W65Lv.js} +2 -2
- package/dist/{mcp-2OGi_NQu.js.map → mcp-Dn5W65Lv.js.map} +1 -1
- package/dist/mcp.d.ts +1 -1
- package/dist/mcp.js +1 -1
- package/dist/{messages-U_87Z7GH.js → messages-FUqY3pci.js} +2 -2
- package/dist/{messages-U_87Z7GH.js.map → messages-FUqY3pci.js.map} +1 -1
- package/dist/output/stream-json.d.ts +2 -2
- package/dist/output/stream-json.js +1 -1
- package/dist/output/terminal.d.ts +2 -2
- package/dist/{presets-eC4VwuHh.js → presets-OeSUjTtC.js} +2 -2
- package/dist/{presets-eC4VwuHh.js.map → presets-OeSUjTtC.js.map} +1 -1
- package/dist/presets.d.ts +2 -2
- package/dist/presets.js +1 -1
- package/dist/{providers-DyMPTo51.js → providers-BPVOGmde.js} +13 -5
- package/dist/providers-BPVOGmde.js.map +1 -0
- package/dist/providers.d.ts +1 -1
- package/dist/providers.js +2 -2
- package/dist/restate.d.ts +38 -2
- package/dist/restate.d.ts.map +1 -1
- package/dist/restate.js +22 -0
- package/dist/restate.js.map +1 -1
- package/dist/{index-CF15aqlk.d.ts → sandbox-B-bMq3K6.d.ts} +2 -5
- package/dist/sandbox-B-bMq3K6.d.ts.map +1 -0
- package/dist/session/sqlite.d.ts +1 -1
- package/dist/session/sqlite.js +1 -1
- package/dist/{session-DQ4bEncf.js → session-C0D4p0Gy.js} +2 -2
- package/dist/{session-DQ4bEncf.js.map → session-C0D4p0Gy.js.map} +1 -1
- package/dist/session.d.ts +1 -1
- package/dist/session.js +2 -2
- package/dist/skills.d.ts +2 -2
- package/dist/skills.js +1 -1
- package/dist/{tool-formatters-DvtGhbJN.d.ts → tool-formatters-B4Ll4Xpz.d.ts} +2 -2
- package/dist/{tool-formatters-DvtGhbJN.d.ts.map → tool-formatters-B4Ll4Xpz.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-BvATiiCO.js → tools-DnWOJcSK.js} +72 -19
- package/dist/tools-DnWOJcSK.js.map +1 -0
- package/dist/tools.d.ts +2 -2
- package/dist/tools.js +1 -1
- package/dist/{transcript-anchors-DFmfOesU.d.ts → transcript-anchors-B4noYwKl.d.ts} +4 -4
- package/dist/{transcript-anchors-DFmfOesU.d.ts.map → transcript-anchors-B4noYwKl.d.ts.map} +1 -1
- package/dist/{transcript-anchors-Cn1Unhn-.js → transcript-anchors-CfKFkE5T.js} +9 -9
- package/dist/{transcript-anchors-Cn1Unhn-.js.map → transcript-anchors-CfKFkE5T.js.map} +1 -1
- package/dist/tui.d.ts +3 -3
- package/dist/tui.js +10 -10
- package/dist/tui.js.map +1 -1
- package/dist/{turn-operations-DWUN8cHo.d.ts → turn-operations-DYbhKmSu.d.ts} +3 -3
- package/dist/{turn-operations-DWUN8cHo.d.ts.map → turn-operations-DYbhKmSu.d.ts.map} +1 -1
- package/dist/types.d.ts +3 -3
- package/dist/types.js +1 -1
- package/docs/ARCHITECTURE.md +2 -0
- package/docs/CHAT.md +3 -3
- package/docs/RESTATE.md +58 -0
- package/docs/SKILL.md +1 -0
- package/docs/TUI.md +1 -1
- package/package.json +6 -1
- package/dist/agent-NkKgz5Dh.d.ts.map +0 -1
- package/dist/contexts-DHi8LPCp.js.map +0 -1
- package/dist/glob-DCWXy_tr.js.map +0 -1
- package/dist/index-CF15aqlk.d.ts.map +0 -1
- package/dist/providers-DyMPTo51.js.map +0 -1
- package/dist/tools-BvATiiCO.js.map +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { F as canonicalizePrompt, O as appendStaticSection, P as buildPromptMessage, R as fnv1aBase36, a as detectTurnInterruption, c as filterUnresolvedToolUses, d as remintDuplicateToolCallIds, f as resolveContentRefsInMessages, j as renderSystemForWire, n as SYNTHETIC_TOOL_RESULT_PLACEHOLDER, o as ensureEndsWithUserMessage, s as ensureToolResultPairing } from "./messages-
|
|
1
|
+
import { F as canonicalizePrompt, O as appendStaticSection, P as buildPromptMessage, R as fnv1aBase36, a as detectTurnInterruption, c as filterUnresolvedToolUses, d as remintDuplicateToolCallIds, f as resolveContentRefsInMessages, j as renderSystemForWire, n as SYNTHETIC_TOOL_RESULT_PLACEHOLDER, o as ensureEndsWithUserMessage, s as ensureToolResultPairing } from "./messages-FUqY3pci.js";
|
|
2
2
|
import { n as estimateTokens, r as utf8ByteLength } from "./utils-ngQzYzZD.js";
|
|
3
3
|
import { t as buildContextBreakdown } from "./context-breakdown-kO-pDsay.js";
|
|
4
4
|
import { a as formatTaskStatus, i as formatDuration, o as formatTaskSummary, s as previewLine } from "./format-BNOXpl-1.js";
|
|
5
|
-
import {
|
|
5
|
+
import { n as createProcessContext, t as resolveDetachedTasksCapability } from "./contexts-BebciJyQ.js";
|
|
6
6
|
import { a as toolOutputBudgetByteLength, i as documentBlockMarker, o as toolOutputByteLength, s as toolResultToText, t as DEFAULT_AGENT_CLOCK } from "./types-CyVGdbia.js";
|
|
7
7
|
import { i as styleReplacementForVia, n as resolveOldString, r as stripLineNumberPrefixes, t as describeVia } from "./edit-utils-EGosADZq.js";
|
|
8
8
|
import { a as markReadStateElided, n as getToolDedupState, o as readStateKey, r as hashContent, s as resolveReadStateMap, t as getReadState } from "./read-state-CLK9yVpm.js";
|
|
9
|
-
import { i as AgentProviderError, l as errorMessage, m as toTypedError, n as AgentBudgetExceededError, o as AgentToolPairingError, t as AgentAbortedError, u as isAbortLikeError } from "./errors-
|
|
9
|
+
import { i as AgentProviderError, l as errorMessage, m as toTypedError, n as AgentBudgetExceededError, o as AgentToolPairingError, t as AgentAbortedError, u as isAbortLikeError } from "./errors-DJUxZg9b.js";
|
|
10
10
|
import { n as reconcileImageMediaType } from "./media-sniff-Bn76JxAu.js";
|
|
11
11
|
import { n as writeFileAtomicAsync } from "./atomic-write-Bgtr5JPu.js";
|
|
12
|
-
import { S as escapeXml, d as buildCatalog, n as stripShellInterpolations, p as installAllowedToolsGate, r as resolveSkills, t as interpolateShellCommands, v as validateResourcePathReal, x as createSkillActivationState } from "./interpolate-
|
|
12
|
+
import { S as escapeXml, d as buildCatalog, n as stripShellInterpolations, p as installAllowedToolsGate, r as resolveSkills, t as interpolateShellCommands, v as validateResourcePathReal, x as createSkillActivationState } from "./interpolate-BtIgcCuz.js";
|
|
13
13
|
import { n as flattenTurns, r as formatTokenUsage, t as effectiveInputFromTurn } from "./stats-DAKBEKjc.js";
|
|
14
|
-
import { n as connectMcpServers, s as wrapDiscoveredMcpTools } from "./mcp-
|
|
14
|
+
import { n as connectMcpServers, s as wrapDiscoveredMcpTools } from "./mcp-Dn5W65Lv.js";
|
|
15
15
|
import { n as shellQuote, t as alwaysQuote } from "./shell-quote-BmnhZmdM.js";
|
|
16
16
|
import { isAbsolute, join, resolve } from "node:path";
|
|
17
17
|
import { createHooks } from "hookable";
|
|
@@ -1676,6 +1676,8 @@ async function buildPostCompactAttachments(opts) {
|
|
|
1676
1676
|
}
|
|
1677
1677
|
//#endregion
|
|
1678
1678
|
//#region src/loop-persistence.ts
|
|
1679
|
+
/** Upper bound on the error message embedded in a persistence-failure stub. */
|
|
1680
|
+
const MAX_PERSIST_ERROR_CHARS = 500;
|
|
1679
1681
|
/**
|
|
1680
1682
|
* Bytes of head content included in the inline preview block. 2 KiB matches
|
|
1681
1683
|
* Claude Code's `PREVIEW_SIZE_BYTES` — enough for the model to identify the
|
|
@@ -1767,10 +1769,10 @@ function resolveMcpWarningsDir(opts) {
|
|
|
1767
1769
|
* routed write (`input.writeBlob`, e.g. a sandbox `writeFile`) is not atomic;
|
|
1768
1770
|
* see the field doc for why that's safe here.
|
|
1769
1771
|
*
|
|
1770
|
-
* `ToolResultContent[]` results
|
|
1771
|
-
*
|
|
1772
|
-
*
|
|
1773
|
-
*
|
|
1772
|
+
* Text-only `ToolResultContent[]` results are flattened and persisted as
|
|
1773
|
+
* text. Mixed structured content still bypasses persistence because the inline
|
|
1774
|
+
* image/document bytes are the point of the call and a mixed result is not
|
|
1775
|
+
* representable as a single `.txt` file without dropping media.
|
|
1774
1776
|
*/
|
|
1775
1777
|
async function maybePersistToolResult(input) {
|
|
1776
1778
|
if (!input.threshold || input.threshold <= 0) return {
|
|
@@ -1781,7 +1783,8 @@ async function maybePersistToolResult(input) {
|
|
|
1781
1783
|
kind: "skip",
|
|
1782
1784
|
reason: "excluded"
|
|
1783
1785
|
};
|
|
1784
|
-
|
|
1786
|
+
const persistableOutput = textForPersistence(input.output);
|
|
1787
|
+
if (persistableOutput === null) return {
|
|
1785
1788
|
kind: "skip",
|
|
1786
1789
|
reason: "unsupported-shape"
|
|
1787
1790
|
};
|
|
@@ -1793,26 +1796,34 @@ async function maybePersistToolResult(input) {
|
|
|
1793
1796
|
kind: "skip",
|
|
1794
1797
|
reason: "unsafe-call-id"
|
|
1795
1798
|
};
|
|
1796
|
-
const originalBytes = toolOutputByteLength(
|
|
1799
|
+
const originalBytes = toolOutputByteLength(persistableOutput);
|
|
1797
1800
|
if (originalBytes <= input.threshold) return {
|
|
1798
1801
|
kind: "skip",
|
|
1799
1802
|
reason: "under-threshold"
|
|
1800
1803
|
};
|
|
1801
1804
|
const persistedPath = join(input.persistDir, `${input.callId}.txt`);
|
|
1802
1805
|
try {
|
|
1803
|
-
await (input.writeBlob ?? writeAtomic)(persistedPath,
|
|
1806
|
+
await (input.writeBlob ?? writeAtomic)(persistedPath, persistableOutput);
|
|
1804
1807
|
} catch (err) {
|
|
1808
|
+
const error = err instanceof Error ? err : new Error(String(err));
|
|
1805
1809
|
return {
|
|
1806
1810
|
kind: "error",
|
|
1807
1811
|
reason: "write-failed",
|
|
1808
|
-
error
|
|
1812
|
+
error,
|
|
1813
|
+
originalBytes,
|
|
1814
|
+
output: buildPersistenceUnavailableStub({
|
|
1815
|
+
toolName: input.toolName,
|
|
1816
|
+
originalBytes,
|
|
1817
|
+
output: persistableOutput,
|
|
1818
|
+
error
|
|
1819
|
+
})
|
|
1809
1820
|
};
|
|
1810
1821
|
}
|
|
1811
1822
|
const stub = buildPersistedStub({
|
|
1812
1823
|
toolName: input.toolName,
|
|
1813
1824
|
originalBytes,
|
|
1814
1825
|
persistedPath,
|
|
1815
|
-
output:
|
|
1826
|
+
output: persistableOutput
|
|
1816
1827
|
});
|
|
1817
1828
|
let evicted;
|
|
1818
1829
|
if (!input.writeBlob && typeof input.maxBytes === "number" && Number.isFinite(input.maxBytes) && input.maxBytes > 0) evicted = await enforcePersistDirCap(input.persistDir, input.maxBytes);
|
|
@@ -1937,6 +1948,25 @@ function buildPersistedStub(input) {
|
|
|
1937
1948
|
].join("\n");
|
|
1938
1949
|
}
|
|
1939
1950
|
/**
|
|
1951
|
+
* Render a bounded fallback when persistence was enabled but the blob write
|
|
1952
|
+
* failed. The full output is intentionally NOT kept inline: when this path
|
|
1953
|
+
* fires, preserving the context-window guarantee is more important than
|
|
1954
|
+
* recoverability of a failed best-effort spill.
|
|
1955
|
+
*/
|
|
1956
|
+
function buildPersistenceUnavailableStub(input) {
|
|
1957
|
+
const { slice: previewSlice, bytes: previewBytes } = sliceFirstBytes(input.output, PERSISTENCE_PREVIEW_BYTES);
|
|
1958
|
+
const previewMarker = previewSlice.length < input.output.length ? `\n…(${input.originalBytes - previewBytes} more bytes omitted because persistence failed)` : "";
|
|
1959
|
+
const reason = input.error.message.length > MAX_PERSIST_ERROR_CHARS ? `${input.error.message.slice(0, MAX_PERSIST_ERROR_CHARS)}…` : input.error.message;
|
|
1960
|
+
return [
|
|
1961
|
+
`<persisted-output-unavailable tool="${escapeXml(input.toolName)}" bytes="${input.originalBytes}" reason="write-failed">`,
|
|
1962
|
+
`Full output could not be saved to disk, so it was omitted from inline context. Error: ${escapeXml(reason)}`,
|
|
1963
|
+
"",
|
|
1964
|
+
"Preview:",
|
|
1965
|
+
`${previewSlice}${previewMarker}`,
|
|
1966
|
+
"</persisted-output-unavailable>"
|
|
1967
|
+
].join("\n");
|
|
1968
|
+
}
|
|
1969
|
+
/**
|
|
1940
1970
|
* Remove every persisted blob belonging to a session. Called by the chat
|
|
1941
1971
|
* layer from its session-delete path so closing a session frees the disk
|
|
1942
1972
|
* footprint alongside the SQLite row.
|
|
@@ -2074,6 +2104,15 @@ function sliceFirstBytes(text, cap) {
|
|
|
2074
2104
|
bytes
|
|
2075
2105
|
};
|
|
2076
2106
|
}
|
|
2107
|
+
function textForPersistence(output) {
|
|
2108
|
+
if (typeof output === "string") return output;
|
|
2109
|
+
const parts = [];
|
|
2110
|
+
for (const block of output) {
|
|
2111
|
+
if (block.type !== "text") return null;
|
|
2112
|
+
parts.push(block.text);
|
|
2113
|
+
}
|
|
2114
|
+
return parts.join("\n");
|
|
2115
|
+
}
|
|
2077
2116
|
//#endregion
|
|
2078
2117
|
//#region src/tools/validation.ts
|
|
2079
2118
|
const TRUE_STRINGS = new Set([
|
|
@@ -4705,7 +4744,10 @@ async function emitToolResult(ctx, params) {
|
|
|
4705
4744
|
writeBlob: executionBlobWriter(ctx)
|
|
4706
4745
|
});
|
|
4707
4746
|
if (outcome.kind === "persisted") output = outcome.output;
|
|
4708
|
-
else if (outcome.kind === "error"
|
|
4747
|
+
else if (outcome.kind === "error") {
|
|
4748
|
+
if (process.env.ZIDANE_DEBUG) process.stderr.write(`[zidane/loop] persistence write failed for ${name}/${callId}: ${outcome.error.message}\n`);
|
|
4749
|
+
output = outcome.output;
|
|
4750
|
+
}
|
|
4709
4751
|
}
|
|
4710
4752
|
output = stripImagesForNonVision(ctx.provider, output);
|
|
4711
4753
|
await ctx.hooks.callHook("tool:after", {
|
|
@@ -7026,6 +7068,7 @@ const HOOK_EVENT_SET = new Set([
|
|
|
7026
7068
|
"background:reassign",
|
|
7027
7069
|
"background:stall",
|
|
7028
7070
|
"background:reconcile",
|
|
7071
|
+
"execution:ready",
|
|
7029
7072
|
"skills:resolve",
|
|
7030
7073
|
"skills:catalog",
|
|
7031
7074
|
"skills:activate",
|
|
@@ -7390,7 +7433,7 @@ function validateAndPrepareResume(session, prompt, hasPendingTaskNotifications =
|
|
|
7390
7433
|
}
|
|
7391
7434
|
return resumeFilteredTurns;
|
|
7392
7435
|
}
|
|
7393
|
-
function createAgent({ provider, name: agentName, system: agentSystem, tools: agentTools, toolAliases, behavior: agentBehavior, execution, mcpServers, session, readState: agentReadState, skills: agentSkills, mcpConnector, mcpToolWrap, eager, hooks: initialHooks, clock: agentClock, toolKill }) {
|
|
7436
|
+
function createAgent({ provider, name: agentName, system: agentSystem, tools: agentTools, toolAliases, behavior: agentBehavior, execution, handle: injectedHandle, mcpServers, session, readState: agentReadState, skills: agentSkills, mcpConnector, mcpToolWrap, eager, hooks: initialHooks, clock: agentClock, toolKill }) {
|
|
7394
7437
|
const hooks = createHooks();
|
|
7395
7438
|
const executionContext = execution ?? createProcessContext();
|
|
7396
7439
|
const sourceTools = agentTools ?? {};
|
|
@@ -7417,7 +7460,9 @@ function createAgent({ provider, name: agentName, system: agentSystem, tools: ag
|
|
|
7417
7460
|
const pendingStallNotifications = /* @__PURE__ */ new Map();
|
|
7418
7461
|
const notifiedTaskIds = /* @__PURE__ */ new Set();
|
|
7419
7462
|
const toolCancels = createToolCancelRegistry(toolKill?.defaultMessage !== void 0 ? { defaultMessage: toolKill.defaultMessage } : {});
|
|
7420
|
-
let executionHandle = null;
|
|
7463
|
+
let executionHandle = injectedHandle ?? null;
|
|
7464
|
+
const executionHandleInjected = injectedHandle !== void 0;
|
|
7465
|
+
let executionReadyFired = false;
|
|
7421
7466
|
let mcpConnection = null;
|
|
7422
7467
|
let lastContextAssembly = null;
|
|
7423
7468
|
let mcpWarmupPromise = null;
|
|
@@ -7548,6 +7593,7 @@ function createAgent({ provider, name: agentName, system: agentSystem, tools: ag
|
|
|
7548
7593
|
perRunUnregisters.push(hooks.hook(event, fn));
|
|
7549
7594
|
}
|
|
7550
7595
|
}
|
|
7596
|
+
const spawnedThisCall = !executionHandle;
|
|
7551
7597
|
if (!executionHandle) {
|
|
7552
7598
|
const spawnTimeoutMs = resolveTimeoutMs(resolvedBehavior.spawnTimeoutMs, DEFAULT_SPAWN_TIMEOUT_MS, resolvedBehavior.maxWallMs);
|
|
7553
7599
|
executionHandle = await withTimeout(executionContext.spawn(), {
|
|
@@ -7556,6 +7602,13 @@ function createAgent({ provider, name: agentName, system: agentSystem, tools: ag
|
|
|
7556
7602
|
message: `Execution context spawn timed out after ${spawnTimeoutMs}ms (configurable via \`spawnTimeoutMs\`).`
|
|
7557
7603
|
});
|
|
7558
7604
|
}
|
|
7605
|
+
if (!executionReadyFired) {
|
|
7606
|
+
executionReadyFired = true;
|
|
7607
|
+
await hooks.callHook("execution:ready", {
|
|
7608
|
+
handle: executionHandle,
|
|
7609
|
+
spawned: spawnedThisCall
|
|
7610
|
+
});
|
|
7611
|
+
}
|
|
7559
7612
|
if (allMcpServers.length > 0 && !mcpConnection) await warmup({
|
|
7560
7613
|
mcpConnectTimeoutMs: resolvedBehavior.mcpConnectTimeoutMs,
|
|
7561
7614
|
maxWallMs: resolvedBehavior.maxWallMs
|
|
@@ -8318,7 +8371,7 @@ function createAgent({ provider, name: agentName, system: agentSystem, tools: ag
|
|
|
8318
8371
|
await settleWithinTimeout("destroy: mcp close", mcpConnection.close(), destroyTimeoutMs);
|
|
8319
8372
|
mcpConnection = null;
|
|
8320
8373
|
}
|
|
8321
|
-
if (executionHandle) {
|
|
8374
|
+
if (executionHandle && !executionHandleInjected) {
|
|
8322
8375
|
await settleWithinTimeout("destroy: execution destroy", executionContext.destroy(executionHandle), destroyTimeoutMs);
|
|
8323
8376
|
executionHandle = null;
|
|
8324
8377
|
}
|
|
@@ -10199,4 +10252,4 @@ const writeFile$1 = {
|
|
|
10199
10252
|
//#endregion
|
|
10200
10253
|
export { sliceForCompaction as $, PERSISTED_STUB_PREFIX as A, selectFilesFromSession as B, normalizeShellCommand as C, TOOL_USE_CANCELLED_MESSAGE as D, SHELL_CASCADE_CANCEL_MESSAGE as E, resolveMcpWarningsDir as F, TRAILER as G, compactConversation as H, resolvePersistDir as I, buildFullCompactPrompt as J, buildCompactPrompt as K, resolveTasksDir as L, buildPersistedStub as M, cleanupPersistedSession as N, TOOL_USE_SKIPPED_MESSAGE as O, maybePersistToolResult as P, anchorPreviewFor as Q, buildPostCompactAttachments as R, defaultRepeatGuardTracked as S, INTERRUPT_MESSAGE_FOR_TOOL_USE as T, BASE_INSTRUCTIONS as U, selectRecentFiles as V, NO_TOOLS_PREAMBLE as W, buildUpToCompactPrompt as X, buildTailCompactPrompt as Y, ANCHOR_PREVIEW_MAX_CHARS as Z, createSkillsReadTool as _, multiEdit as a, OperationTimeoutError as at, tailTruncate as b, grep as c, OUTPUT_RESERVE_TOKENS as ct, createAgent as d, stripImagesFromTurns as et, WAIT_TASK_TIMED_OUT_PREFIX as f, createSkillsRunScriptTool as g, createSkillsUseTool as h, readFile$1 as i, CompactPromptTooLongError as it, PERSISTENCE_PREVIEW_BYTES as j, validateToolArgs as k, glob as l, effectiveContextWindow as lt, createToolSearchTool as m, createSpawnTool as n, truncateHeadForPtlRetry as nt, listFiles as o, withTimeout as ot, waitTask as p, buildFromCompactPrompt as q, shellKill as r, CompactInvalidInputError as rt, createInteractionTool as s, AUTO_COMPACT_MIN_GROWTH_FRACTION as st, writeFile$1 as t, summaryToTurn as tt, edit as u, shouldAutoCompact as ut, createShellTool as v, stableStringify as w, defaultRepeatGuardNormalize as x, shell as y, selectFilesFromReadState as z };
|
|
10201
10254
|
|
|
10202
|
-
//# sourceMappingURL=tools-
|
|
10255
|
+
//# sourceMappingURL=tools-DnWOJcSK.js.map
|