zidane 8.2.3 → 8.2.5
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-oYRjlh71.js → acp-BIInKhVI.js} +6 -6
- package/dist/{acp-oYRjlh71.js.map → acp-BIInKhVI.js.map} +1 -1
- package/dist/acp-cli.js +4 -4
- package/dist/acp.d.ts +2 -2
- package/dist/acp.js +1 -1
- package/dist/{agent-CBQglXtH.js → agent-CmhCOmyO.js} +10 -5
- package/dist/{agent-CBQglXtH.js.map → agent-CmhCOmyO.js.map} +1 -1
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +1 -1
- package/dist/chat/pure.d.ts +4 -4
- package/dist/chat/pure.js +7 -7
- package/dist/chat.d.ts +3 -3
- package/dist/chat.js +16 -16
- package/dist/{cli-shared-E5m_pI8A.js → cli-shared-GOehTeqk.js} +2 -2
- package/dist/{cli-shared-E5m_pI8A.js.map → cli-shared-GOehTeqk.js.map} +1 -1
- package/dist/{client-core-EEEX_u6D.d.ts → client-core-Dz8hELs4.d.ts} +15 -5
- package/dist/client-core-Dz8hELs4.d.ts.map +1 -0
- package/dist/codemode-worker.js +1 -1
- package/dist/codemode.js +1 -1
- package/dist/{connection-loop-CpgfUmuw.d.ts → connection-loop-dm_TN-QD.d.ts} +3 -3
- package/dist/{connection-loop-CpgfUmuw.d.ts.map → connection-loop-dm_TN-QD.d.ts.map} +1 -1
- package/dist/contexts/daytona.d.ts +1 -1
- package/dist/contexts/e2b.d.ts +1 -1
- package/dist/{credentials-B9DfBJP9.js → credentials-DxOQmset.js} +2 -2
- package/dist/{credentials-B9DfBJP9.js.map → credentials-DxOQmset.js.map} +1 -1
- package/dist/daemon-cli.js +2 -2
- package/dist/{dispatcher-Bv9-c6I2.js → dispatcher-D_9_QFO3.js} +22 -18
- package/dist/dispatcher-D_9_QFO3.js.map +1 -0
- package/dist/{engine-XmoPPB6U.js → engine-BsWBWgTB.js} +6 -6
- package/dist/{engine-XmoPPB6U.js.map → engine-BsWBWgTB.js.map} +1 -1
- package/dist/{eval-CfQlBR81.js → eval-CIHIF_Ns.js} +3 -3
- package/dist/{eval-CfQlBR81.js.map → eval-CIHIF_Ns.js.map} +1 -1
- package/dist/eval.d.ts +1 -1
- package/dist/eval.js +1 -1
- package/dist/{executor-BhthPE1q.js → executor-BSesPPcU.js} +3 -3
- package/dist/{executor-BhthPE1q.js.map → executor-BSesPPcU.js.map} +1 -1
- package/dist/{extensions-BgBwogRW.js → extensions-BJof-2mi.js} +3 -3
- package/dist/{extensions-BgBwogRW.js.map → extensions-BJof-2mi.js.map} +1 -1
- package/dist/extensions.d.ts +1 -1
- package/dist/extensions.js +1 -1
- package/dist/{fold-rules-DSypi36k.d.ts → fold-rules-CMpWNPqk.d.ts} +2 -2
- package/dist/{fold-rules-DSypi36k.d.ts.map → fold-rules-CMpWNPqk.d.ts.map} +1 -1
- package/dist/{headless-R4pbpTkm.js → headless-Bs9Lb4vs.js} +4 -4
- package/dist/{headless-R4pbpTkm.js.map → headless-Bs9Lb4vs.js.map} +1 -1
- package/dist/headless.d.ts +1 -1
- package/dist/headless.js +1 -1
- package/dist/history-worker.js +1 -1
- package/dist/{host-scoped-settings-C-Nmb6vr.js → host-scoped-settings-DxxI_yRo.js} +2 -2
- package/dist/{host-scoped-settings-C-Nmb6vr.js.map → host-scoped-settings-DxxI_yRo.js.map} +1 -1
- package/dist/{host-signals-BFudPyCT.js → host-signals-CUKPZZxC.js} +5 -5
- package/dist/{host-signals-BFudPyCT.js.map → host-signals-CUKPZZxC.js.map} +1 -1
- package/dist/{index-DyQyDLX1.d.ts → index-4mDRyTGJ.d.ts} +1722 -1691
- package/dist/index-4mDRyTGJ.d.ts.map +1 -0
- package/dist/{index-CDS7YdUC.d.ts → index-Dlmu8HnG.d.ts} +5 -5
- package/dist/{index-CDS7YdUC.d.ts.map → index-Dlmu8HnG.d.ts.map} +1 -1
- package/dist/{index-AqRZ3gEz.d.ts → index-QsAN9yjZ.d.ts} +3 -3
- package/dist/{index-AqRZ3gEz.d.ts.map → index-QsAN9yjZ.d.ts.map} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +8 -8
- package/dist/ipc/remote.d.ts +5 -5
- package/dist/ipc/remote.js +3 -3
- package/dist/ipc.d.ts +5 -5
- package/dist/ipc.js +9 -9
- package/dist/{links-rFaWqS2Y.js → links-Bto-5dVu.js} +10 -10
- package/dist/{links-rFaWqS2Y.js.map → links-Bto-5dVu.js.map} +1 -1
- package/dist/{mcp-allowlist-CLXweyxk.js → mcp-allowlist-BbnTBKNN.js} +2 -2
- package/dist/{mcp-allowlist-CLXweyxk.js.map → mcp-allowlist-BbnTBKNN.js.map} +1 -1
- package/dist/mcp.d.ts +1 -1
- package/dist/{oauth-7_48zR7n.js → oauth-BwPiX0hL.js} +66 -32
- package/dist/oauth-BwPiX0hL.js.map +1 -0
- package/dist/output/stream-json.d.ts +1 -1
- package/dist/output/terminal.d.ts +1 -1
- package/dist/plugins.d.ts +1 -1
- package/dist/{prelude-HzY_JEGq.js → prelude-qjPUkw4f.js} +26 -2
- package/dist/prelude-qjPUkw4f.js.map +1 -0
- package/dist/{presets-DXeHsd24.js → presets-C4hkykN-.js} +2 -2
- package/dist/{presets-DXeHsd24.js.map → presets-C4hkykN-.js.map} +1 -1
- package/dist/presets.d.ts +1 -1
- package/dist/presets.js +1 -1
- package/dist/{protocol-BIv1Yuvl.js → protocol-Do_i6Ras.js} +3 -1
- package/dist/protocol-Do_i6Ras.js.map +1 -0
- package/dist/providers/anthropic.d.ts +1 -1
- package/dist/providers/arcee.d.ts +1 -1
- package/dist/providers/baseten.d.ts +1 -1
- package/dist/providers/cerebras.d.ts +1 -1
- package/dist/providers/google.d.ts +1 -1
- package/dist/providers/local.d.ts +1 -1
- package/dist/providers/neuralwatt.d.ts +1 -1
- package/dist/providers/openai-compat.d.ts +1 -1
- package/dist/providers/openai.d.ts +1 -1
- package/dist/providers/openrouter.d.ts +1 -1
- package/dist/providers/xai.d.ts +1 -1
- package/dist/providers.d.ts +1 -1
- package/dist/{registry-eourRLY2.js → registry-DxPP_tAt.js} +3 -3
- package/dist/{registry-eourRLY2.js.map → registry-DxPP_tAt.js.map} +1 -1
- package/dist/{remote-hosts-DY2J07ut.js → remote-hosts-DcCh7fqp.js} +4 -4
- package/dist/{remote-hosts-DY2J07ut.js.map → remote-hosts-DcCh7fqp.js.map} +1 -1
- package/dist/restate.d.ts +1 -1
- package/dist/{secret-shapes-BjW4l6U0.js → secret-shapes-HvaYVzwc.js} +10 -2
- package/dist/secret-shapes-HvaYVzwc.js.map +1 -0
- package/dist/session/sqlite.d.ts +1 -1
- package/dist/{session-7TUHs42_.js → session-CCsKXID6.js} +6 -2
- package/dist/session-CCsKXID6.js.map +1 -0
- package/dist/{session-factory-CMwIXE-7.js → session-factory-Ct7J9CK1.js} +6 -6
- package/dist/{session-factory-CMwIXE-7.js.map → session-factory-Ct7J9CK1.js.map} +1 -1
- package/dist/session.d.ts +2 -2
- package/dist/session.js +1 -1
- package/dist/{settings-keys-CPdmkTz7.js → settings-keys-CnrJgT1T.js} +4 -4
- package/dist/{settings-keys-CPdmkTz7.js.map → settings-keys-CnrJgT1T.js.map} +1 -1
- package/dist/{shell-path-B8b3EOtK.js → shell-path-rJDa0OMv.js} +4 -4
- package/dist/{shell-path-B8b3EOtK.js.map → shell-path-rJDa0OMv.js.map} +1 -1
- package/dist/skills.d.ts +1 -1
- package/dist/{spaces-CyjMh5Zf.js → spaces-C_x2bvEl.js} +14 -4
- package/dist/spaces-C_x2bvEl.js.map +1 -0
- package/dist/{store-L01W0gGI.js → store-BpkWIaSH.js} +10 -30
- package/dist/store-BpkWIaSH.js.map +1 -0
- package/dist/{todo-edits-BERpCRPj.js → todo-edits-DKoxu7Ss.js} +3 -3
- package/dist/{todo-edits-BERpCRPj.js.map → todo-edits-DKoxu7Ss.js.map} +1 -1
- package/dist/tools/fetch-url.d.ts +1 -1
- package/dist/tools/web-search.d.ts +1 -1
- package/dist/{tools-pZVFIJ_K.js → tools-FHEIKGkh.js} +2 -2
- package/dist/{tools-pZVFIJ_K.js.map → tools-FHEIKGkh.js.map} +1 -1
- package/dist/tools.d.ts +1 -1
- package/dist/tools.js +2 -2
- package/dist/{transcript-anchors-jHrg-r-H.js → transcript-anchors-BcFLh3ZA.js} +10 -10
- package/dist/{transcript-anchors-jHrg-r-H.js.map → transcript-anchors-BcFLh3ZA.js.map} +1 -1
- package/dist/{transcript-cache-DXdgVuoy.js → transcript-cache-CdHKtx9y.js} +4 -4
- package/dist/{transcript-cache-DXdgVuoy.js.map → transcript-cache-CdHKtx9y.js.map} +1 -1
- package/dist/{transcript-reconcile-CPdrNbbR.js → transcript-reconcile-D_SWw6dX.js} +11 -3
- package/dist/transcript-reconcile-D_SWw6dX.js.map +1 -0
- package/dist/tui.d.ts +7 -7
- package/dist/tui.js +24 -23
- package/dist/tui.js.map +1 -1
- package/dist/{turn-operations-DuGtKuc_.d.ts → turn-operations-Dbk3xPKu.d.ts} +11 -3
- package/dist/{turn-operations-DuGtKuc_.d.ts.map → turn-operations-Dbk3xPKu.d.ts.map} +1 -1
- package/dist/{types-C0PJmBaO.d.ts → types-CMXR7A0b.d.ts} +2 -2
- package/dist/{types-C0PJmBaO.d.ts.map → types-CMXR7A0b.d.ts.map} +1 -1
- package/dist/types-CzmghX7C.js.map +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/{url-D8KZ7Edw.js → url-D4vG7lzO.js} +2 -2
- package/dist/{url-D8KZ7Edw.js.map → url-D4vG7lzO.js.map} +1 -1
- package/dist/{version-bd3DQJkc.js → version-DOvIuU8M.js} +2 -2
- package/dist/{version-bd3DQJkc.js.map → version-DOvIuU8M.js.map} +1 -1
- package/dist/{workspace-exec-stream-CyfYgqAh.js → workspace-exec-stream-Bzxczzu2.js} +5 -5
- package/dist/{workspace-exec-stream-CyfYgqAh.js.map → workspace-exec-stream-Bzxczzu2.js.map} +1 -1
- package/dist/{write-file-QYrcDdl3.js → write-file-ChtRPdEL.js} +3 -3
- package/dist/{write-file-QYrcDdl3.js.map → write-file-ChtRPdEL.js.map} +1 -1
- package/dist/{ws-CURQ2igk.js → ws-CrD-4Mx6.js} +6 -6
- package/dist/{ws-CURQ2igk.js.map → ws-CrD-4Mx6.js.map} +1 -1
- package/dist/{ws-client-BVljYbdb.js → ws-client-Dond8vT3.js} +4 -4
- package/dist/{ws-client-BVljYbdb.js.map → ws-client-Dond8vT3.js.map} +1 -1
- package/docs/CODEMODE.md +6 -0
- package/docs/IPC.md +2 -0
- package/docs/ONBOARDING.md +1 -1
- package/package.json +1 -1
- package/dist/client-core-EEEX_u6D.d.ts.map +0 -1
- package/dist/dispatcher-Bv9-c6I2.js.map +0 -1
- package/dist/index-DyQyDLX1.d.ts.map +0 -1
- package/dist/oauth-7_48zR7n.js.map +0 -1
- package/dist/prelude-HzY_JEGq.js.map +0 -1
- package/dist/protocol-BIv1Yuvl.js.map +0 -1
- package/dist/secret-shapes-BjW4l6U0.js.map +0 -1
- package/dist/session-7TUHs42_.js.map +0 -1
- package/dist/spaces-CyjMh5Zf.js.map +0 -1
- package/dist/store-L01W0gGI.js.map +0 -1
- package/dist/transcript-reconcile-CPdrNbbR.js.map +0 -1
package/dist/acp-cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { f as openaiCompat } from "./openai-compat-5HkREis_.js";
|
|
3
|
-
import { n as basic_default } from "./presets-
|
|
3
|
+
import { n as basic_default } from "./presets-C4hkykN-.js";
|
|
4
4
|
import { t as resolveStorageDirs } from "./xdg-CJS70jqe.js";
|
|
5
5
|
import { t as anthropic } from "./anthropic-sonllteP.js";
|
|
6
6
|
import { arcee } from "./providers/arcee.js";
|
|
@@ -11,9 +11,9 @@ import { r as openai } from "./openai-Rh6u5NXF.js";
|
|
|
11
11
|
import { r as openrouter } from "./openrouter-Dg0yaI-o.js";
|
|
12
12
|
import { t as xai } from "./xai-CStTwCV2.js";
|
|
13
13
|
import { neuralwatt } from "./providers/neuralwatt.js";
|
|
14
|
-
import { _ as parseStartArgValues, g as buildStartLocalOptions, h as StartUsageError, i as withAcpDefaultTools, t as runAcpStdioServer, v as startLocalArgOptions, y as startProviderNames } from "./acp-
|
|
15
|
-
import { S as credKeyOf, j as modelsForDescriptor, n as credentialsPath, o as readCredentials, y as BUILTIN_PROVIDERS } from "./credentials-
|
|
16
|
-
import { n as isRemoteSandboxContext, r as detectAuth, t as createCliExecution } from "./cli-shared-
|
|
14
|
+
import { _ as parseStartArgValues, g as buildStartLocalOptions, h as StartUsageError, i as withAcpDefaultTools, t as runAcpStdioServer, v as startLocalArgOptions, y as startProviderNames } from "./acp-BIInKhVI.js";
|
|
15
|
+
import { S as credKeyOf, j as modelsForDescriptor, n as credentialsPath, o as readCredentials, y as BUILTIN_PROVIDERS } from "./credentials-DxOQmset.js";
|
|
16
|
+
import { n as isRemoteSandboxContext, r as detectAuth, t as createCliExecution } from "./cli-shared-GOehTeqk.js";
|
|
17
17
|
import { existsSync } from "node:fs";
|
|
18
18
|
import { join, resolve } from "node:path";
|
|
19
19
|
import { mkdir, readFile, readdir, rename, rm, writeFile } from "node:fs/promises";
|
package/dist/acp.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $ as PermissionOption, A as DeleteSessionRequest, At as ToolCallContent, B as JsonRpcId, Bt as createClientDeclaredTools, C as CancelNotification, Ct as SetSessionConfigOptionResponse, D as ContentChunk, Dt as TerminalOutputResponse, E as ContentBlock, Et as TerminalExitStatus, F as ImageContent, Ft as WriteTextFileRequest, G as JsonRpcSuccess, H as JsonRpcNotification, I as InitializeRequest, It as AcpClientToolSpec, J as LoadSessionRequest, K as ListSessionsRequest, L as InitializeResponse, Lt as CLIENT_TOOL_CALL_METHOD, M as EmbeddedResourceResource, Mt as ToolCallStatus, N as EnvVariable, Nt as ToolCallUpdate, O as Cost, Ot as TextContent, P as HttpHeader, Pt as ToolKind, Q as NewSessionResponse, R as JsonRpcError, Rt as CLIENT_TOOL_CANCEL_METHOD, S as BlobResourceContents, St as SetSessionConfigOptionRequest, T as ContentAnnotations, Tt as StopReason, U as JsonRpcRequest, V as JsonRpcMessage, Vt as parseClientToolSpecs, W as JsonRpcResponse, X as McpCapabilities, Y as LoadSessionResponse, Z as NewSessionRequest, _ as AudioContent, _t as SessionInfo, a as AcpImplementationInfo, at as RequestPermissionOutcome, b as AvailableCommand, bt as SessionNotification, c as AcpModelOption, ct as ResumeSessionRequest, d as AcpPromptMapping, dt as SessionCapabilities, et as PlanEntry, f as AcpServerOptions, ft as SessionConfigOption, g as AgentCapabilities, gt as SessionConfigSelectOptions, h as AgentAuthCapabilities, ht as SessionConfigSelectOption, i as AcpErrorCode, it as ReadTextFileRequest, j as EmbeddedResource, jt as ToolCallLocation, k as CreateTerminalRequest, kt as TextResourceContents, l as AcpPeer, lt as ResumeSessionResponse, m as AcpSessionRuntime, mt as SessionConfigSelectGroup, n as AcpClientCapabilities, nt as PromptRequest, o as AcpMcpServer, ot as RequestPermissionRequest, p as AcpSessionContentMapper, pt as SessionConfigOptionCategory, q as ListSessionsResponse, r as AcpContentMapper, rt as PromptResponse, s as AcpModelChoice, st as ResourceLink, t as ACP_PROTOCOL_VERSION, tt as PromptCapabilities, u as AcpPermissionPolicy, ut as Role, v as AuthMethod, vt as SessionMode, w as CloseSessionRequest, wt as SetSessionModeRequest, x as AvailableCommandInput, xt as SessionUpdate, y as AuthenticateRequest, yt as SessionModeState, z as JsonRpcFailure, zt as ClientToolCallResponse } from "./types-
|
|
1
|
+
import { $T as ToolDef, $w as McpServerConfig, JT as TurnUsage, Sa as Preset, bT as SessionContentBlock, zT as ToolResultContent } from "./index-4mDRyTGJ.js";
|
|
2
|
+
import { $ as PermissionOption, A as DeleteSessionRequest, At as ToolCallContent, B as JsonRpcId, Bt as createClientDeclaredTools, C as CancelNotification, Ct as SetSessionConfigOptionResponse, D as ContentChunk, Dt as TerminalOutputResponse, E as ContentBlock, Et as TerminalExitStatus, F as ImageContent, Ft as WriteTextFileRequest, G as JsonRpcSuccess, H as JsonRpcNotification, I as InitializeRequest, It as AcpClientToolSpec, J as LoadSessionRequest, K as ListSessionsRequest, L as InitializeResponse, Lt as CLIENT_TOOL_CALL_METHOD, M as EmbeddedResourceResource, Mt as ToolCallStatus, N as EnvVariable, Nt as ToolCallUpdate, O as Cost, Ot as TextContent, P as HttpHeader, Pt as ToolKind, Q as NewSessionResponse, R as JsonRpcError, Rt as CLIENT_TOOL_CANCEL_METHOD, S as BlobResourceContents, St as SetSessionConfigOptionRequest, T as ContentAnnotations, Tt as StopReason, U as JsonRpcRequest, V as JsonRpcMessage, Vt as parseClientToolSpecs, W as JsonRpcResponse, X as McpCapabilities, Y as LoadSessionResponse, Z as NewSessionRequest, _ as AudioContent, _t as SessionInfo, a as AcpImplementationInfo, at as RequestPermissionOutcome, b as AvailableCommand, bt as SessionNotification, c as AcpModelOption, ct as ResumeSessionRequest, d as AcpPromptMapping, dt as SessionCapabilities, et as PlanEntry, f as AcpServerOptions, ft as SessionConfigOption, g as AgentCapabilities, gt as SessionConfigSelectOptions, h as AgentAuthCapabilities, ht as SessionConfigSelectOption, i as AcpErrorCode, it as ReadTextFileRequest, j as EmbeddedResource, jt as ToolCallLocation, k as CreateTerminalRequest, kt as TextResourceContents, l as AcpPeer, lt as ResumeSessionResponse, m as AcpSessionRuntime, mt as SessionConfigSelectGroup, n as AcpClientCapabilities, nt as PromptRequest, o as AcpMcpServer, ot as RequestPermissionRequest, p as AcpSessionContentMapper, pt as SessionConfigOptionCategory, q as ListSessionsResponse, r as AcpContentMapper, rt as PromptResponse, s as AcpModelChoice, st as ResourceLink, t as ACP_PROTOCOL_VERSION, tt as PromptCapabilities, u as AcpPermissionPolicy, ut as Role, v as AuthMethod, vt as SessionMode, w as CloseSessionRequest, wt as SetSessionModeRequest, x as AvailableCommandInput, xt as SessionUpdate, y as AuthenticateRequest, yt as SessionModeState, z as JsonRpcFailure, zt as ClientToolCallResponse } from "./types-CMXR7A0b.js";
|
|
3
3
|
import { Buffer } from "node:buffer";
|
|
4
4
|
import { Readable, Writable } from "node:stream";
|
|
5
5
|
//#region src/acp/server.d.ts
|
package/dist/acp.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { n as JsonRpcRemoteError, r as createJsonRpcConnection } from "./json-rpc-G0rBfEar.js";
|
|
2
|
-
import { a as wrapToolsForAcpClient, c as sessionBlocksToAcp, d as CLIENT_TOOL_CALL_METHOD, f as CLIENT_TOOL_CANCEL_METHOD, i as withAcpDefaultTools, l as stopReasonFromRun, m as parseClientToolSpecs, n as AcpProtocolError, o as acpMcpServersToZidane, p as createClientDeclaredTools, r as createAcpServer, s as acpPromptToPromptParts, t as runAcpStdioServer, u as toolResultToAcpContent } from "./acp-
|
|
2
|
+
import { a as wrapToolsForAcpClient, c as sessionBlocksToAcp, d as CLIENT_TOOL_CALL_METHOD, f as CLIENT_TOOL_CANCEL_METHOD, i as withAcpDefaultTools, l as stopReasonFromRun, m as parseClientToolSpecs, n as AcpProtocolError, o as acpMcpServersToZidane, p as createClientDeclaredTools, r as createAcpServer, s as acpPromptToPromptParts, t as runAcpStdioServer, u as toolResultToAcpContent } from "./acp-BIInKhVI.js";
|
|
3
3
|
export { AcpProtocolError, CLIENT_TOOL_CALL_METHOD, CLIENT_TOOL_CANCEL_METHOD, JsonRpcRemoteError, acpMcpServersToZidane, acpPromptToPromptParts, createAcpServer, createClientDeclaredTools, createJsonRpcConnection, parseClientToolSpecs, runAcpStdioServer, sessionBlocksToAcp, stopReasonFromRun, toolResultToAcpContent, withAcpDefaultTools, wrapToolsForAcpClient };
|
|
@@ -14,7 +14,7 @@ import { I as buildPromptMessage, L as canonicalizePrompt, T as fillEstimatedCos
|
|
|
14
14
|
import { SYSTEM_PROMPT_BOUNDARY, appendStaticSection, renderSystemForWire, splitSystemPrompt } from "./prompt.js";
|
|
15
15
|
import { h as SYNTHETIC_TOOL_RESULT_PLACEHOLDER, i as filterUnresolvedToolUses, l as resolveContentRefsInMessages, n as detectTurnInterruption, r as ensureEndsWithUserMessage, s as hasAnthropicSignature, v as ensureToolResultPairing, y as remintDuplicateToolCallIds } from "./messages-Wd0QtRUJ.js";
|
|
16
16
|
import { i as ARTIFACT_KINDS, n as ARTIFACTS_METADATA_KEY, u as normalizeArtifactInput } from "./metadata-merge-Cb1TiYVU.js";
|
|
17
|
-
import { l as withExtensionSession, s as resumeChainRunIds } from "./session-
|
|
17
|
+
import { l as withExtensionSession, s as resumeChainRunIds } from "./session-CCsKXID6.js";
|
|
18
18
|
import { i as readFileInputPaths } from "./format-bytes-LHrZVMIt.js";
|
|
19
19
|
import { a as hydrateReadStateFromSessionAsync, c as readStateKey, n as getToolDedupState, o as markReadStateElided, t as getReadState } from "./read-state-BkoUdmZ9.js";
|
|
20
20
|
import { t as createProcessContext } from "./contexts-Bw06j9eP.js";
|
|
@@ -11099,7 +11099,7 @@ function firstParagraph(text) {
|
|
|
11099
11099
|
//#endregion
|
|
11100
11100
|
//#region src/tools/codemode/description.ts
|
|
11101
11101
|
const INTRO_HEAD = `Run JavaScript that calls other tools. Give each call a \`description\`: a very short, non-technical line (3-6 words, in sentence case) saying what the script does, shown to the user as the call's label. The \`code\` is raw JavaScript (not JSON, no code fence), run as an async function body in a QuickJS sandbox: top-level \`await\` and \`return\` work. No Node, file system, network, or timers (\`setTimeout\`, \`URLSearchParams\` and the like do not exist): wait with \`await sleep(ms)\` (max 60s). \`Date.now()\` is constant within a script.
|
|
11102
|
-
- \`await tools.<name>({ ...args })\` calls a tool with its usual arguments and resolves to its text output, or to an object for tools that declare one; printing that object (\`return r\`, \`text(r)\`) shows the text a direct call returns. A tool with one required string argument also takes it bare: \`tools.<name>("…", { ...rest })\`. A failed, blocked, or invalid call rejects with an Error carrying the tool's error text; use \`Promise.allSettled()\` to keep the calls that succeed. Calls are real: nothing is undone when the script fails. Calls still running when the script ends are cancelled.
|
|
11102
|
+
- \`await tools.<name>({ ...args })\` calls a tool with its usual arguments and resolves to its text output, or to an object for tools that declare one; printing that object (\`return r\`, \`text(r)\`) shows the text a direct call returns, and attaches the images it returned. A tool with one required string argument also takes it bare: \`tools.<name>("…", { ...rest })\`. A failed, blocked, or invalid call rejects with an Error carrying the tool's error text; use \`Promise.allSettled()\` to keep the calls that succeed. Calls are real: nothing is undone when the script fails. Calls still running when the script ends are cancelled.
|
|
11103
11103
|
- Tools run in the session's working directory, exactly like direct calls: use relative paths, and don't \`cd\` into the project or spell out absolute paths in commands.
|
|
11104
11104
|
- Text with backticks, \`\${\` or backslashes, such as file content or a shell command, goes in a JSON string, not a template literal.
|
|
11105
11105
|
- Optional first line: \`// @options: {"timeout_ms": 60000}\`
|
|
@@ -11472,14 +11472,16 @@ function scriptToolHints(tools, aliases) {
|
|
|
11472
11472
|
/**
|
|
11473
11473
|
* What `tools.<name>()` resolves to: the reported structured value, which prints
|
|
11474
11474
|
* as the text a direct call returns, else the text output, else (non-text
|
|
11475
|
-
* content) the blocks, images in the MCP shape `image()` accepts.
|
|
11475
|
+
* content) the blocks, images in the MCP shape `image()` accepts. Blocks print
|
|
11476
|
+
* as their text, and the images among them attach as images (the prelude's
|
|
11477
|
+
* `printedImages`): `return r` shows a generated image, not its base64.
|
|
11476
11478
|
*/
|
|
11477
11479
|
function toScriptValue(result) {
|
|
11478
11480
|
if ("structured" in result) return new CodemodeValue(result.structured, toolResultToText(result.output));
|
|
11479
11481
|
const { output } = result;
|
|
11480
11482
|
if (typeof output === "string") return output;
|
|
11481
11483
|
if (output.every((block) => block.type === "text")) return toolResultToText(output);
|
|
11482
|
-
|
|
11484
|
+
const blocks = output.map((block) => {
|
|
11483
11485
|
if (block.type === "image" && "data" in block && typeof block.data === "string") return {
|
|
11484
11486
|
type: "image",
|
|
11485
11487
|
data: block.data,
|
|
@@ -11487,6 +11489,8 @@ function toScriptValue(result) {
|
|
|
11487
11489
|
};
|
|
11488
11490
|
return block;
|
|
11489
11491
|
});
|
|
11492
|
+
const text = output.flatMap((block) => block.type === "text" ? [block.text] : []).join("\n");
|
|
11493
|
+
return new CodemodeValue(blocks, text);
|
|
11490
11494
|
}
|
|
11491
11495
|
/** The run's tools as script calls: each goes through `callTool`, failures reject. */
|
|
11492
11496
|
function createScriptTools(entries, tools, callTool) {
|
|
@@ -12895,6 +12899,7 @@ function startSessionRun(session, runId, options) {
|
|
|
12895
12899
|
depth: typeof options.depth === "number" ? options.depth : 0,
|
|
12896
12900
|
...options.resumeRunId ? { resumedFromRunId: options.resumeRunId } : {},
|
|
12897
12901
|
...options.runLabel ? { label: options.runLabel } : {},
|
|
12902
|
+
...options.runAgent ? { agent: options.runAgent } : {},
|
|
12898
12903
|
...options.parentRunId && options.parentCallId ? { parentCallId: options.parentCallId } : {}
|
|
12899
12904
|
});
|
|
12900
12905
|
return promptLabel;
|
|
@@ -13323,4 +13328,4 @@ function cacheImpact(rt, change) {
|
|
|
13323
13328
|
//#endregion
|
|
13324
13329
|
export { summaryToTurn as $, installCacheBreakLogger as A, compactConversation as B, resolveMcpWarningsDir as C, diffCacheDimensions as D, resolveTasksDir as E, selectRecentFiles as F, buildFromCompactPrompt as G, NO_TOOLS_PREAMBLE as H, AUTO_COMPACT_MIN_GROWTH_FRACTION as I, buildUpToCompactPrompt as J, buildFullCompactPrompt as K, OUTPUT_RESERVE_TOKENS as L, buildPostCompactAttachments as M, selectFilesFromReadState as N, fnv1a32 as O, selectFilesFromSession as P, stripImagesFromTurns as Q, effectiveContextWindow as R, resolveLegacySessionDir as S, resolveSessionDir as T, TRAILER as U, BASE_INSTRUCTIONS as V, buildCompactPrompt as W, anchorPreviewFor as X, ANCHOR_PREVIEW_MAX_CHARS as Y, sliceForCompaction as Z, cleanupPersistedSession as _, normalizeShellCommand as a, DEFAULT_DECISION_TIMEOUT_MS as at, rehomePersistedStubs as b, SHELL_CASCADE_CANCEL_MESSAGE as c, collectNewlyStaleReadPaths as d, truncateHeadForPtlRetry as et, renderStaleReadNotice as f, buildPersistedStub as g, PERSISTENCE_PREVIEW_BYTES as h, defaultRepeatGuardTracked as i, resolveModelTargets as it, snapshotCacheDimensions as j, hashMessages as k, TOOL_USE_CANCELLED_MESSAGE as l, PERSISTED_STUB_PREFIX as m, createAgent as n, CompactPromptTooLongError as nt, stableStringify as o, createDecider as ot, applyCompactSummaryCutoff as p, buildTailCompactPrompt as q, defaultRepeatGuardNormalize as r, normalizeProviders as rt, INTERRUPT_MESSAGE_FOR_TOOL_USE as s, agent_exports as t, CompactInvalidInputError as tt, TOOL_USE_SKIPPED_MESSAGE as u, maybePersistToolResult as v, resolvePersistDir as w, resolveLegacyPersistDir as x, migrateSessionArtifactDirs as y, shouldAutoCompact as z };
|
|
13325
13330
|
|
|
13326
|
-
//# sourceMappingURL=agent-
|
|
13331
|
+
//# sourceMappingURL=agent-CmhCOmyO.js.map
|