zidane 9.1.5 → 9.1.6
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-BWLdmJDt.js → acp-DMIhIsAi.js} +3 -3
- package/dist/{acp-BWLdmJDt.js.map → acp-DMIhIsAi.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.d.ts +1 -1
- package/dist/{auth-store-port-DYsWAuUj.js → auth-store-port-BHEXS3VS.js} +2 -2
- package/dist/{auth-store-port-DYsWAuUj.js.map → auth-store-port-BHEXS3VS.js.map} +1 -1
- package/dist/{auto-update-restart-BLW0dTui.js → auto-update-restart-Dkdz6rq4.js} +10 -10
- package/dist/{auto-update-restart-BLW0dTui.js.map → auto-update-restart-Dkdz6rq4.js.map} +1 -1
- package/dist/{browser-entry-CHX7eDd5.d.ts → browser-entry-DP6PZ2Ar.d.ts} +4 -4
- package/dist/{browser-entry-CHX7eDd5.d.ts.map → browser-entry-DP6PZ2Ar.d.ts.map} +1 -1
- package/dist/channels.d.ts +5 -5
- package/dist/chat/browser.d.ts +3 -3
- package/dist/chat/pure.d.ts +3 -3
- package/dist/chat.d.ts +4 -4
- package/dist/chat.js +9 -9
- package/dist/{cli-shared-DyAIGvCc.js → cli-shared-VGYq10bZ.js} +3 -3
- package/dist/{cli-shared-DyAIGvCc.js.map → cli-shared-VGYq10bZ.js.map} +1 -1
- package/dist/{client-core-BdLvnaYK.d.ts → client-core-CG_5I6Ol.d.ts} +4 -4
- package/dist/{client-core-BdLvnaYK.d.ts.map → client-core-CG_5I6Ol.d.ts.map} +1 -1
- package/dist/{client-CK_UrIhx.d.ts → client-tLbAFn0W.d.ts} +2 -2
- package/dist/{client-CK_UrIhx.d.ts.map → client-tLbAFn0W.d.ts.map} +1 -1
- package/dist/{connection-loop--yxMYRBl.d.ts → connection-loop-CPeQsGRl.d.ts} +4 -4
- package/dist/{connection-loop--yxMYRBl.d.ts.map → connection-loop-CPeQsGRl.d.ts.map} +1 -1
- package/dist/contexts/daytona.d.ts +1 -1
- package/dist/contexts/e2b.d.ts +1 -1
- package/dist/{credentials-CKZXFn6X.js → credentials-Bf8Bz4X-.js} +2 -2
- package/dist/{credentials-CKZXFn6X.js.map → credentials-Bf8Bz4X-.js.map} +1 -1
- package/dist/daemon-cli.js +2 -2
- package/dist/{discovery-Cma3l0tG.js → discovery-CC6Uhvm8.js} +4 -4
- package/dist/{discovery-Cma3l0tG.js.map → discovery-CC6Uhvm8.js.map} +1 -1
- package/dist/durable/sqlite.d.ts +2 -2
- package/dist/durable.d.ts +1 -1
- package/dist/{engine-DH7FBsXF.js → engine-d8V1hEDw.js} +3 -3
- package/dist/{engine-DH7FBsXF.js.map → engine-d8V1hEDw.js.map} +1 -1
- package/dist/eval.d.ts +1 -1
- package/dist/{executor-Cj6ilahP.js → executor-C5VCLmPj.js} +2 -2
- package/dist/{executor-Cj6ilahP.js.map → executor-C5VCLmPj.js.map} +1 -1
- package/dist/extensions/testing.d.ts +1 -1
- package/dist/extensions/testing.js +2 -2
- package/dist/{extensions-client-CGL8cTfx.d.ts → extensions-client-ke2jcWfp.d.ts} +4 -4
- package/dist/{extensions-client-CGL8cTfx.d.ts.map → extensions-client-ke2jcWfp.d.ts.map} +1 -1
- package/dist/{extensions-DjEPVNyg.js → extensions-hHKXiXSo.js} +6 -6
- package/dist/{extensions-DjEPVNyg.js.map → extensions-hHKXiXSo.js.map} +1 -1
- package/dist/extensions.d.ts +1 -1
- package/dist/extensions.js +5 -5
- package/dist/{fold-rules-C6udT9hM.d.ts → fold-rules-NGK3F6IS.d.ts} +2 -2
- package/dist/{fold-rules-C6udT9hM.d.ts.map → fold-rules-NGK3F6IS.d.ts.map} +1 -1
- package/dist/{google-DJV9Hjyw.js → google-BxIUmp_8.js} +2 -2
- package/dist/{google-DJV9Hjyw.js.map → google-BxIUmp_8.js.map} +1 -1
- package/dist/headless.d.ts +1 -1
- package/dist/{host-9vLbGyJq.js → host-n1AYC9-H.js} +9 -9
- package/dist/{host-9vLbGyJq.js.map → host-n1AYC9-H.js.map} +1 -1
- package/dist/{host-signals-DMndC3WQ.js → host-signals-eQf9F1Rl.js} +5 -5
- package/dist/{host-signals-DMndC3WQ.js.map → host-signals-eQf9F1Rl.js.map} +1 -1
- package/dist/{host-version-B6zEy_l1.js → host-version-EkzK6xdV.js} +2 -2
- package/dist/{host-version-B6zEy_l1.js.map → host-version-EkzK6xdV.js.map} +1 -1
- package/dist/{index-D2HJUCR1.d.ts → index-BypbUp-D.d.ts} +4 -4
- package/dist/{index-D2HJUCR1.d.ts.map → index-BypbUp-D.d.ts.map} +1 -1
- package/dist/{index-ByR7Be4d.d.ts → index-CNq4AYES.d.ts} +37 -10
- package/dist/index-CNq4AYES.d.ts.map +1 -0
- package/dist/{index-BI6RZc60.d.ts → index-DqCio7Nd.d.ts} +7 -4
- package/dist/{index-BI6RZc60.d.ts.map → index-DqCio7Nd.d.ts.map} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -5
- package/dist/ipc/browser.d.ts +3 -3
- package/dist/ipc/remote.d.ts +6 -6
- package/dist/ipc/remote.js +3 -3
- package/dist/{ipc-DBOylNnG.js → ipc-DUqSK-SB.js} +4 -4
- package/dist/{ipc-DBOylNnG.js.map → ipc-DUqSK-SB.js.map} +1 -1
- package/dist/ipc.d.ts +10 -10
- package/dist/ipc.js +5 -5
- package/dist/{links-DMWKvAmD.js → links-DivTLyDT.js} +8 -8
- package/dist/{links-DMWKvAmD.js.map → links-DivTLyDT.js.map} +1 -1
- package/dist/{loaded-entry-CaFgDCMz.js → loaded-entry-D93ZwfH8.js} +2 -2
- package/dist/{loaded-entry-CaFgDCMz.js.map → loaded-entry-D93ZwfH8.js.map} +1 -1
- package/dist/mcp.d.ts +1 -1
- package/dist/{media-type-DDrpCEf9.d.ts → media-type-vJuUTlW5.d.ts} +2 -2
- package/dist/{media-type-DDrpCEf9.d.ts.map → media-type-vJuUTlW5.d.ts.map} +1 -1
- package/dist/{memory-CoaLfuI2.js → memory-D060YOj_.js} +27 -19
- package/dist/memory-D060YOj_.js.map +1 -0
- package/dist/output/stream-json.d.ts +1 -1
- package/dist/output/terminal.d.ts +1 -1
- package/dist/{path-display-DV6PlTOE.js → path-display-Dm4nSwwF.js} +3 -3
- package/dist/{path-display-DV6PlTOE.js.map → path-display-Dm4nSwwF.js.map} +1 -1
- package/dist/plugins.d.ts +1 -1
- package/dist/presets.d.ts +1 -1
- package/dist/{protocol-BAXNtbj5.d.ts → protocol-DlFZqIbu.d.ts} +5 -5
- package/dist/{protocol-BAXNtbj5.d.ts.map → protocol-DlFZqIbu.d.ts.map} +1 -1
- 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/google.js +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-cSrUyM2h.js → providers-CuMn0Kkq.js} +2 -2
- package/dist/{providers-cSrUyM2h.js.map → providers-CuMn0Kkq.js.map} +1 -1
- package/dist/providers.d.ts +1 -1
- package/dist/providers.js +1 -1
- package/dist/{registry-4T13yxMT.js → registry-CGYWxMNj.js} +2 -2
- package/dist/{registry-4T13yxMT.js.map → registry-CGYWxMNj.js.map} +1 -1
- package/dist/{registry-8mnp3zJf.js → registry-DWYR40B2.js} +2 -2
- package/dist/{registry-8mnp3zJf.js.map → registry-DWYR40B2.js.map} +1 -1
- package/dist/{registry-BBzysAGz.js → registry-yhXC9O2x.js} +2 -2
- package/dist/{registry-BBzysAGz.js.map → registry-yhXC9O2x.js.map} +1 -1
- package/dist/{remote-hosts-G62uJ45a.js → remote-hosts-DpAyu0ER.js} +4 -4
- package/dist/{remote-hosts-G62uJ45a.js.map → remote-hosts-DpAyu0ER.js.map} +1 -1
- package/dist/restate.d.ts +1 -1
- package/dist/session/sqlite.d.ts +1 -1
- package/dist/session.d.ts +1 -1
- package/dist/{setting-BWlU8Liz.js → setting-wx57dbgJ.js} +2 -2
- package/dist/{setting-BWlU8Liz.js.map → setting-wx57dbgJ.js.map} +1 -1
- package/dist/{settings-keys-DpQ5m5oZ.js → settings-keys-Dmig23l3.js} +2 -2
- package/dist/{settings-keys-DpQ5m5oZ.js.map → settings-keys-Dmig23l3.js.map} +1 -1
- package/dist/skills.d.ts +1 -1
- package/dist/{sqlite-runtime-D7WG9VL_.d.ts → sqlite-runtime-D2N0m9XE.d.ts} +2 -2
- package/dist/sqlite-runtime-D2N0m9XE.d.ts.map +1 -0
- package/dist/{system-freeze-CGSHvvCg.js → system-freeze-C3g8HY4t.js} +2 -2
- package/dist/{system-freeze-CGSHvvCg.js.map → system-freeze-C3g8HY4t.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.d.ts +1 -1
- package/dist/tui.d.ts +9 -9
- package/dist/tui.js +15 -15
- package/dist/{types-DVuB6yk8.d.ts → types-CPxqnCeG.d.ts} +2 -2
- package/dist/{types-DVuB6yk8.d.ts.map → types-CPxqnCeG.d.ts.map} +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/{version-BoECn_c8.js → version-3w8QMAyl.js} +2 -2
- package/dist/{version-BoECn_c8.js.map → version-3w8QMAyl.js.map} +1 -1
- package/dist/{wire-DYBrjw6p.js → wire-Ct6nuXL5.js} +2 -2
- package/dist/{wire-DYBrjw6p.js.map → wire-Ct6nuXL5.js.map} +1 -1
- package/dist/{ws-client-iv10YsKH.js → ws-client-DAm6UPtq.js} +2 -2
- package/dist/{ws-client-iv10YsKH.js.map → ws-client-DAm6UPtq.js.map} +1 -1
- package/dist/{ws-ByUKaCyV.js → ws-olbe6ZfF.js} +4 -4
- package/dist/{ws-ByUKaCyV.js.map → ws-olbe6ZfF.js.map} +1 -1
- package/docs/EXTENSIONS.md +1 -1
- package/package.json +1 -1
- package/dist/index-ByR7Be4d.d.ts.map +0 -1
- package/dist/memory-CoaLfuI2.js.map +0 -1
- package/dist/sqlite-runtime-D7WG9VL_.d.ts.map +0 -1
package/dist/acp-cli.js
CHANGED
|
@@ -6,14 +6,14 @@ import { t as anthropic } from "./anthropic-zmlb58Ye.js";
|
|
|
6
6
|
import { arcee } from "./providers/arcee.js";
|
|
7
7
|
import { baseten } from "./providers/baseten.js";
|
|
8
8
|
import { cerebras } from "./providers/cerebras.js";
|
|
9
|
-
import { i as google, o as googleVertex } from "./google-
|
|
9
|
+
import { i as google, o as googleVertex } from "./google-BxIUmp_8.js";
|
|
10
10
|
import { r as openai } from "./openai-ylgM1j4C.js";
|
|
11
11
|
import { r as openrouter } from "./openrouter-Df--bmDj.js";
|
|
12
12
|
import { t as xai } from "./xai-OCI0FJwb.js";
|
|
13
13
|
import { neuralwatt } from "./providers/neuralwatt.js";
|
|
14
|
-
import { D as credKeyOf, I as modelsForDescriptor, d as readCredentials, i as credentialsPath, w as BUILTIN_PROVIDERS } from "./credentials-
|
|
15
|
-
import { _ as parseStartArgValues, g as buildStartLocalOptions, h as StartUsageError, i as withAcpDefaultTools, t as runAcpStdioServer, v as startLocalArgOptions, y as startProviderNames } from "./acp-
|
|
16
|
-
import { i as detectAuth, n as isRemoteSandboxContext, t as createCliExecution } from "./cli-shared-
|
|
14
|
+
import { D as credKeyOf, I as modelsForDescriptor, d as readCredentials, i as credentialsPath, w as BUILTIN_PROVIDERS } from "./credentials-Bf8Bz4X-.js";
|
|
15
|
+
import { _ as parseStartArgValues, g as buildStartLocalOptions, h as StartUsageError, i as withAcpDefaultTools, t as runAcpStdioServer, v as startLocalArgOptions, y as startProviderNames } from "./acp-DMIhIsAi.js";
|
|
16
|
+
import { i as detectAuth, n as isRemoteSandboxContext, t as createCliExecution } from "./cli-shared-VGYq10bZ.js";
|
|
17
17
|
import { join, resolve } from "node:path";
|
|
18
18
|
import { existsSync } from "node:fs";
|
|
19
19
|
import { randomUUID } from "node:crypto";
|
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 { Eo as Preset, VF as SessionContentBlock, bF as McpServerConfig, gI as TurnUsage, sI as ToolResultContent, wI as ToolDef } from "./index-DqCio7Nd.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-CPxqnCeG.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-DMIhIsAi.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 };
|
package/dist/agent.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AI as
|
|
1
|
+
import { AI as HydrateReadStateOptions, Aa as RunSummaryError, Aj as CacheDimensionName, Da as RunSummaryByModel, Dj as CacheBreakInfo, Ea as RunSummaryBudget, FI as hydrateReadStateFromSession, Fj as diffCacheDimensions, II as hydrateReadStateFromSessionAsync, Ij as fnv1a32, Jo as McpToolWrap, Ko as McpConnector, LI as readStateKey, Lj as hashMessages, MI as ReadStateMap, Ma as RunSummaryTokens, Mj as CacheDriftInfo, NI as getReadState, Na as RunSummaryValidation, Nj as CachePromptSections, Oa as RunSummaryCollector, Oj as CacheBreakLoggerOptions, Pa as createRunSummaryCollector, Pj as CacheSystemSection, RI as resolveReadStateMap, Rj as installCacheBreakLogger, Ta as RunSummaryBlock, Wo as AgentOptions, _j as AgentHookMap, jI as ReadStateEntry, ja as RunSummaryRepeatGuard, jj as CacheDimensionSnapshot, ka as RunSummaryCollectorOptions, kj as CacheDimensionDiff, ko as createAgent, qo as McpToolMeta, vj as AgentHooks, wa as RunSummary, zj as snapshotCacheDimensions, zo as Agent } from "./index-DqCio7Nd.js";
|
|
2
2
|
export { type Agent, type AgentHookMap, type AgentHooks, type AgentOptions, type CacheBreakInfo, type CacheBreakLoggerOptions, type CacheDimensionDiff, type CacheDimensionName, type CacheDimensionSnapshot, type CacheDriftInfo, type CachePromptSections, type CacheSystemSection, type HydrateReadStateOptions, type McpConnector, type McpToolMeta, type McpToolWrap, type ReadStateEntry, type ReadStateMap, type RunSummary, type RunSummaryBlock, type RunSummaryBudget, type RunSummaryByModel, type RunSummaryCollector, type RunSummaryCollectorOptions, type RunSummaryError, type RunSummaryRepeatGuard, type RunSummaryTokens, type RunSummaryValidation, createAgent, createRunSummaryCollector, diffCacheDimensions, fnv1a32, getReadState, hashMessages, hydrateReadStateFromSession, hydrateReadStateFromSessionAsync, installCacheBreakLogger, readStateKey, resolveReadStateMap, snapshotCacheDimensions };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as writeCredentialEntry, u as readCredentialEntry } from "./credentials-
|
|
1
|
+
import { S as writeCredentialEntry, u as readCredentialEntry } from "./credentials-Bf8Bz4X-.js";
|
|
2
2
|
//#region src/extensions/integrations/auth-store-port.ts
|
|
3
3
|
/** Prefix of an integration's key in the credentials file. */
|
|
4
4
|
const INTEGRATION_CREDENTIAL_PREFIX = "integration:";
|
|
@@ -206,4 +206,4 @@ function connection(integrationId, methodId, connectedAt, account, label) {
|
|
|
206
206
|
//#endregion
|
|
207
207
|
export { integrationCredentialKey as i, createCredentialsAuthStore as n, fromEntries as r, DEFAULT_ACCOUNT as t };
|
|
208
208
|
|
|
209
|
-
//# sourceMappingURL=auth-store-port-
|
|
209
|
+
//# sourceMappingURL=auth-store-port-BHEXS3VS.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-store-port-DYsWAuUj.js","names":[],"sources":["../src/extensions/integrations/auth-store-port.ts"],"sourcesContent":["/**\n * The credentials-file {@link AuthStorePort}: integrations live in the same\n * `<dataDir>/credentials.json` as provider sign-ins, each under its own\n * `integration:<id>` key, written with the file's lock, mode and atomic\n * write (`readCredentialEntry` / `writeCredentialEntry` in\n * `src/chat/credentials.ts`, the namespaced-entry API host tokens use).\n *\n * One entry per integration, holding every connection: the entry itself is\n * the default connection (so a reader by key, and an older build, sees it as\n * before), and the others ride in its `connections` list, each shaped like\n * an entry. `#`-qualified keys are provider slots and can't be used.\n *\n * On disk, OAuth connections are `kind: 'oauth'` entries (`access`,\n * `refresh`, `expires`, the same triple the provider refresh code reads)\n * and API keys and tokens are `kind: 'apikey'` entries. The connection\n * fields ride along: on an OAuth entry as an `integration` extra, on an API\n * key entry in `customFields` (strings only).\n *\n * A legacy provider sign-in (`IntegrationSpec.legacyCredentialKey`) is read\n * from its own key and, once adopted, marked with `integrationAdopted`; its\n * tokens stay for a downgrade.\n */\n\nimport type { ApiKeyCredential, OAuthCredential, ProviderCredential } from '../../chat/credentials'\nimport type { Connection, Credential } from '../api/sessions'\nimport type { AuthStorePort, LegacyGrant, StoredIntegration } from './store'\nimport { readCredentialEntry, writeCredentialEntry } from '../../chat/credentials'\n\n/** Prefix of an integration's key in the credentials file. */\nexport const INTEGRATION_CREDENTIAL_PREFIX = 'integration:'\n\n/** Field of an integration entry listing its non-default connections. */\nconst OTHERS_FIELD = 'connections'\n\n/** Field marking a legacy entry an integration adopted. */\nexport const LEGACY_ADOPTED_FIELD = 'integrationAdopted'\n\n/** Account of a connection whose integration names none. */\nexport const DEFAULT_ACCOUNT = 'default'\n\n/**\n * The credentials-file key of an integration.\n *\n * @param integrationId - The integration id.\n */\nexport function integrationCredentialKey(integrationId: string): string {\n return `${INTEGRATION_CREDENTIAL_PREFIX}${integrationId}`\n}\n\n/**\n * An {@link AuthStorePort} over `<dataDir>/credentials.json`.\n *\n * @param dataDir - Directory holding `credentials.json` (the host's `config.paths.dir`).\n */\nexport function createCredentialsAuthStore(dataDir: string): AuthStorePort {\n return {\n read: (id) => {\n const entry = readCredentialEntry(dataDir, integrationCredentialKey(id))\n return entry ? fromEntries(id, entry) : undefined\n },\n write: (id, value) => {\n writeCredentialEntry(dataDir, integrationCredentialKey(id), value?.length ? toEntries(value) : undefined)\n },\n readLegacy: (key) => {\n const entry = readCredentialEntry(dataDir, key)\n return entry ? legacyGrant(entry) : undefined\n },\n markLegacy: (key, integrationId) => {\n const entry = readCredentialEntry(dataDir, key)\n if (entry)\n writeCredentialEntry(dataDir, key, { ...entry, [LEGACY_ADOPTED_FIELD]: integrationId } as ProviderCredential)\n },\n }\n}\n\ninterface OAuthExtra {\n methodId: string\n account?: string\n label?: string\n connectedAt: number\n scopes?: readonly string[]\n extra?: Record<string, unknown>\n}\n\n/**\n * The credentials-file entry of an integration's connections: the default's\n * entry with the others under `connections`.\n *\n * @param value - The connections, the default first. Not empty.\n */\nexport function toEntries(value: readonly StoredIntegration[]): ProviderCredential {\n const [first, ...others] = value\n const entry = toEntry(first!)\n return others.length ? { ...entry, [OTHERS_FIELD]: others.map(toEntry) } as ProviderCredential : entry\n}\n\n/**\n * The connections an integration's entry holds, the default first;\n * `undefined` when it holds none this module wrote.\n *\n * @param integrationId - The integration the entry belongs to.\n * @param entry - The entry read from the file.\n */\nexport function fromEntries(integrationId: string, entry: ProviderCredential): StoredIntegration[] | undefined {\n const others = (entry as { [OTHERS_FIELD]?: unknown })[OTHERS_FIELD]\n const list = [entry, ...(Array.isArray(others) ? others : [])]\n .map(e => (e && typeof e === 'object' ? fromEntry(integrationId, e as ProviderCredential) : undefined))\n .filter((s): s is StoredIntegration => s !== undefined)\n // One connection per account: a hand-edited file could repeat one.\n const seen = new Set<string>()\n const unique = list.filter(s => !seen.has(s.connection.account) && !!seen.add(s.connection.account))\n return unique.length ? unique : undefined\n}\n\n/**\n * The credentials-file entry of one stored connection.\n *\n * @param value - The connection to store.\n */\nexport function toEntry(value: StoredIntegration): ProviderCredential {\n const { connection, credential } = value\n if (credential.type === 'oauth') {\n const integration: OAuthExtra = {\n methodId: connection.methodId,\n connectedAt: connection.connectedAt,\n account: connection.account,\n ...(connection.label !== undefined ? { label: connection.label } : {}),\n ...(credential.scopes ? { scopes: [...credential.scopes] } : {}),\n ...(credential.extra ? { extra: { ...credential.extra } } : {}),\n }\n const entry: OAuthCredential = {\n kind: 'oauth',\n access: credential.accessToken,\n ...(value.refreshToken !== undefined ? { refresh: value.refreshToken } : {}),\n ...(credential.expiresAt !== undefined ? { expires: credential.expiresAt } : {}),\n integration,\n }\n return entry\n }\n const customFields: Record<string, string> = {\n credentialType: credential.type,\n methodId: connection.methodId,\n connectedAt: String(connection.connectedAt),\n account: connection.account,\n }\n if (connection.label !== undefined)\n customFields.label = connection.label\n const entry: ApiKeyCredential = {\n kind: 'apikey',\n value: credential.type === 'apiKey' ? credential.key : credential.token,\n customFields,\n }\n return entry\n}\n\n/**\n * The stored connection a credentials-file entry holds. `undefined` for an\n * entry this module did not write.\n *\n * @param integrationId - The integration the entry belongs to.\n * @param entry - The entry read from the file.\n */\nexport function fromEntry(integrationId: string, entry: ProviderCredential): StoredIntegration | undefined {\n if (entry.kind === 'oauth') {\n const extra = entry.integration as Partial<OAuthExtra> | undefined\n if (!extra || typeof extra.methodId !== 'string' || typeof extra.connectedAt !== 'number' || typeof entry.access !== 'string')\n return undefined\n const credential: Credential = {\n type: 'oauth',\n accessToken: entry.access,\n ...(typeof entry.expires === 'number' ? { expiresAt: entry.expires } : {}),\n ...(Array.isArray(extra.scopes) ? { scopes: extra.scopes.filter((s): s is string => typeof s === 'string') } : {}),\n ...(extra.extra && typeof extra.extra === 'object' && !Array.isArray(extra.extra) ? { extra: extra.extra } : {}),\n }\n return {\n connection: connection(integrationId, extra.methodId, extra.connectedAt, extra.account, extra.label),\n credential,\n ...(typeof entry.refresh === 'string' && entry.refresh ? { refreshToken: entry.refresh } : {}),\n }\n }\n if (entry.kind !== 'apikey' || typeof entry.value !== 'string')\n return undefined\n const fields = entry.customFields ?? {}\n const connectedAt = Number(fields.connectedAt)\n if (typeof fields.methodId !== 'string' || !Number.isFinite(connectedAt))\n return undefined\n const credential: Credential = fields.credentialType === 'token'\n ? { type: 'token', token: entry.value }\n : { type: 'apiKey', key: entry.value }\n return { connection: connection(integrationId, fields.methodId, connectedAt, fields.account, fields.label), credential }\n}\n\n/**\n * The grant of a legacy provider entry, when it was not adopted yet.\n *\n * @param entry - The entry under the legacy key.\n */\nexport function legacyGrant(entry: ProviderCredential): LegacyGrant | undefined {\n const record = entry as unknown as Record<string, unknown>\n if (record[LEGACY_ADOPTED_FIELD] !== undefined)\n return undefined\n const text = (key: string): string | undefined => (typeof record[key] === 'string' && (record[key] as string).trim() ? (record[key] as string).trim() : undefined)\n const account = text('account') ?? text('email')\n const label = text('label') ?? text('email')\n const named = { ...(account ? { account } : {}), ...(label ? { label } : {}) }\n if (entry.kind === 'oauth') {\n if (typeof entry.access !== 'string' || !entry.access)\n return undefined\n const extra: Record<string, unknown> = {}\n for (const [key, value] of Object.entries(entry)) {\n if (!['kind', 'access', 'refresh', 'expires', 'id', 'label', LEGACY_ADOPTED_FIELD].includes(key))\n extra[key] = value\n }\n return {\n credential: {\n type: 'oauth',\n accessToken: entry.access,\n ...(typeof entry.expires === 'number' ? { expiresAt: entry.expires } : {}),\n ...(Object.keys(extra).length ? { extra } : {}),\n },\n ...(typeof entry.refresh === 'string' && entry.refresh ? { refreshToken: entry.refresh } : {}),\n ...named,\n }\n }\n if (entry.kind === 'apikey' && typeof entry.value === 'string' && entry.value)\n return { credential: { type: 'apiKey', key: entry.value }, ...named }\n return undefined\n}\n\nfunction connection(integrationId: string, methodId: string, connectedAt: number, account: unknown, label: unknown): Connection {\n return {\n integrationId,\n methodId,\n account: typeof account === 'string' && account ? account : DEFAULT_ACCOUNT,\n ...(typeof label === 'string' && label ? { label } : {}),\n connectedAt,\n }\n}\n"],"mappings":";;;AA6BA,MAAa,gCAAgC;;AAG7C,MAAM,eAAe;;AAGrB,MAAa,uBAAuB;;AAGpC,MAAa,kBAAkB;;;;;;AAO/B,SAAgB,yBAAyB,eAA+B;CACtE,OAAO,GAAG,gCAAgC;AAC5C;;;;;;AAOA,SAAgB,2BAA2B,SAAgC;CACzE,OAAO;EACL,OAAO,OAAO;GACZ,MAAM,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MAAM,WAAW,YAAY,CAAC,MAAM,QAC7C,OAAO,KAAA;EACT,MAAM,QAAiC,CAAC;EACxC,KAAK,MAAM,CAAC,KAAK,UAAU,OAAO,QAAQ,KAAK,GAC7C,IAAI,CAAC;GAAC;GAAQ;GAAU;GAAW;GAAW;GAAM;;EAA6B,CAAC,CAAC,SAAS,GAAG,GAC7F,MAAM,OAAO;EAEjB,OAAO;GACL,YAAY;IACV,MAAM;IACN,aAAa,MAAM;IACnB,GAAI,OAAO,MAAM,YAAY,WAAW,EAAE,WAAW,MAAM,QAAQ,IAAI,CAAC;IACxE,GAAI,OAAO,KAAK,KAAK,CAAC,CAAC,SAAS,EAAE,MAAM,IAAI,CAAC;GAC/C;GACA,GAAI,OAAO,MAAM,YAAY,YAAY,MAAM,UAAU,EAAE,cAAc,MAAM,QAAQ,IAAI,CAAC;GAC5F,GAAG;EACL;CACF;CACA,IAAI,MAAM,SAAS,YAAY,OAAO,MAAM,UAAU,YAAY,MAAM,OACtE,OAAO;EAAE,YAAY;GAAE,MAAM;GAAU,KAAK,MAAM;EAAM;EAAG,GAAG;CAAM;AAExE;AAEA,SAAS,WAAW,eAAuB,UAAkB,aAAqB,SAAkB,OAA4B;CAC9H,OAAO;EACL;EACA;EACA,SAAS,OAAO,YAAY,YAAY,UAAU,UAAU;EAC5D,GAAI,OAAO,UAAU,YAAY,QAAQ,EAAE,MAAM,IAAI,CAAC;EACtD;CACF;AACF"}
|
|
1
|
+
{"version":3,"file":"auth-store-port-BHEXS3VS.js","names":[],"sources":["../src/extensions/integrations/auth-store-port.ts"],"sourcesContent":["/**\n * The credentials-file {@link AuthStorePort}: integrations live in the same\n * `<dataDir>/credentials.json` as provider sign-ins, each under its own\n * `integration:<id>` key, written with the file's lock, mode and atomic\n * write (`readCredentialEntry` / `writeCredentialEntry` in\n * `src/chat/credentials.ts`, the namespaced-entry API host tokens use).\n *\n * One entry per integration, holding every connection: the entry itself is\n * the default connection (so a reader by key, and an older build, sees it as\n * before), and the others ride in its `connections` list, each shaped like\n * an entry. `#`-qualified keys are provider slots and can't be used.\n *\n * On disk, OAuth connections are `kind: 'oauth'` entries (`access`,\n * `refresh`, `expires`, the same triple the provider refresh code reads)\n * and API keys and tokens are `kind: 'apikey'` entries. The connection\n * fields ride along: on an OAuth entry as an `integration` extra, on an API\n * key entry in `customFields` (strings only).\n *\n * A legacy provider sign-in (`IntegrationSpec.legacyCredentialKey`) is read\n * from its own key and, once adopted, marked with `integrationAdopted`; its\n * tokens stay for a downgrade.\n */\n\nimport type { ApiKeyCredential, OAuthCredential, ProviderCredential } from '../../chat/credentials'\nimport type { Connection, Credential } from '../api/sessions'\nimport type { AuthStorePort, LegacyGrant, StoredIntegration } from './store'\nimport { readCredentialEntry, writeCredentialEntry } from '../../chat/credentials'\n\n/** Prefix of an integration's key in the credentials file. */\nexport const INTEGRATION_CREDENTIAL_PREFIX = 'integration:'\n\n/** Field of an integration entry listing its non-default connections. */\nconst OTHERS_FIELD = 'connections'\n\n/** Field marking a legacy entry an integration adopted. */\nexport const LEGACY_ADOPTED_FIELD = 'integrationAdopted'\n\n/** Account of a connection whose integration names none. */\nexport const DEFAULT_ACCOUNT = 'default'\n\n/**\n * The credentials-file key of an integration.\n *\n * @param integrationId - The integration id.\n */\nexport function integrationCredentialKey(integrationId: string): string {\n return `${INTEGRATION_CREDENTIAL_PREFIX}${integrationId}`\n}\n\n/**\n * An {@link AuthStorePort} over `<dataDir>/credentials.json`.\n *\n * @param dataDir - Directory holding `credentials.json` (the host's `config.paths.dir`).\n */\nexport function createCredentialsAuthStore(dataDir: string): AuthStorePort {\n return {\n read: (id) => {\n const entry = readCredentialEntry(dataDir, integrationCredentialKey(id))\n return entry ? fromEntries(id, entry) : undefined\n },\n write: (id, value) => {\n writeCredentialEntry(dataDir, integrationCredentialKey(id), value?.length ? toEntries(value) : undefined)\n },\n readLegacy: (key) => {\n const entry = readCredentialEntry(dataDir, key)\n return entry ? legacyGrant(entry) : undefined\n },\n markLegacy: (key, integrationId) => {\n const entry = readCredentialEntry(dataDir, key)\n if (entry)\n writeCredentialEntry(dataDir, key, { ...entry, [LEGACY_ADOPTED_FIELD]: integrationId } as ProviderCredential)\n },\n }\n}\n\ninterface OAuthExtra {\n methodId: string\n account?: string\n label?: string\n connectedAt: number\n scopes?: readonly string[]\n extra?: Record<string, unknown>\n}\n\n/**\n * The credentials-file entry of an integration's connections: the default's\n * entry with the others under `connections`.\n *\n * @param value - The connections, the default first. Not empty.\n */\nexport function toEntries(value: readonly StoredIntegration[]): ProviderCredential {\n const [first, ...others] = value\n const entry = toEntry(first!)\n return others.length ? { ...entry, [OTHERS_FIELD]: others.map(toEntry) } as ProviderCredential : entry\n}\n\n/**\n * The connections an integration's entry holds, the default first;\n * `undefined` when it holds none this module wrote.\n *\n * @param integrationId - The integration the entry belongs to.\n * @param entry - The entry read from the file.\n */\nexport function fromEntries(integrationId: string, entry: ProviderCredential): StoredIntegration[] | undefined {\n const others = (entry as { [OTHERS_FIELD]?: unknown })[OTHERS_FIELD]\n const list = [entry, ...(Array.isArray(others) ? others : [])]\n .map(e => (e && typeof e === 'object' ? fromEntry(integrationId, e as ProviderCredential) : undefined))\n .filter((s): s is StoredIntegration => s !== undefined)\n // One connection per account: a hand-edited file could repeat one.\n const seen = new Set<string>()\n const unique = list.filter(s => !seen.has(s.connection.account) && !!seen.add(s.connection.account))\n return unique.length ? unique : undefined\n}\n\n/**\n * The credentials-file entry of one stored connection.\n *\n * @param value - The connection to store.\n */\nexport function toEntry(value: StoredIntegration): ProviderCredential {\n const { connection, credential } = value\n if (credential.type === 'oauth') {\n const integration: OAuthExtra = {\n methodId: connection.methodId,\n connectedAt: connection.connectedAt,\n account: connection.account,\n ...(connection.label !== undefined ? { label: connection.label } : {}),\n ...(credential.scopes ? { scopes: [...credential.scopes] } : {}),\n ...(credential.extra ? { extra: { ...credential.extra } } : {}),\n }\n const entry: OAuthCredential = {\n kind: 'oauth',\n access: credential.accessToken,\n ...(value.refreshToken !== undefined ? { refresh: value.refreshToken } : {}),\n ...(credential.expiresAt !== undefined ? { expires: credential.expiresAt } : {}),\n integration,\n }\n return entry\n }\n const customFields: Record<string, string> = {\n credentialType: credential.type,\n methodId: connection.methodId,\n connectedAt: String(connection.connectedAt),\n account: connection.account,\n }\n if (connection.label !== undefined)\n customFields.label = connection.label\n const entry: ApiKeyCredential = {\n kind: 'apikey',\n value: credential.type === 'apiKey' ? credential.key : credential.token,\n customFields,\n }\n return entry\n}\n\n/**\n * The stored connection a credentials-file entry holds. `undefined` for an\n * entry this module did not write.\n *\n * @param integrationId - The integration the entry belongs to.\n * @param entry - The entry read from the file.\n */\nexport function fromEntry(integrationId: string, entry: ProviderCredential): StoredIntegration | undefined {\n if (entry.kind === 'oauth') {\n const extra = entry.integration as Partial<OAuthExtra> | undefined\n if (!extra || typeof extra.methodId !== 'string' || typeof extra.connectedAt !== 'number' || typeof entry.access !== 'string')\n return undefined\n const credential: Credential = {\n type: 'oauth',\n accessToken: entry.access,\n ...(typeof entry.expires === 'number' ? { expiresAt: entry.expires } : {}),\n ...(Array.isArray(extra.scopes) ? { scopes: extra.scopes.filter((s): s is string => typeof s === 'string') } : {}),\n ...(extra.extra && typeof extra.extra === 'object' && !Array.isArray(extra.extra) ? { extra: extra.extra } : {}),\n }\n return {\n connection: connection(integrationId, extra.methodId, extra.connectedAt, extra.account, extra.label),\n credential,\n ...(typeof entry.refresh === 'string' && entry.refresh ? { refreshToken: entry.refresh } : {}),\n }\n }\n if (entry.kind !== 'apikey' || typeof entry.value !== 'string')\n return undefined\n const fields = entry.customFields ?? {}\n const connectedAt = Number(fields.connectedAt)\n if (typeof fields.methodId !== 'string' || !Number.isFinite(connectedAt))\n return undefined\n const credential: Credential = fields.credentialType === 'token'\n ? { type: 'token', token: entry.value }\n : { type: 'apiKey', key: entry.value }\n return { connection: connection(integrationId, fields.methodId, connectedAt, fields.account, fields.label), credential }\n}\n\n/**\n * The grant of a legacy provider entry, when it was not adopted yet.\n *\n * @param entry - The entry under the legacy key.\n */\nexport function legacyGrant(entry: ProviderCredential): LegacyGrant | undefined {\n const record = entry as unknown as Record<string, unknown>\n if (record[LEGACY_ADOPTED_FIELD] !== undefined)\n return undefined\n const text = (key: string): string | undefined => (typeof record[key] === 'string' && (record[key] as string).trim() ? (record[key] as string).trim() : undefined)\n const account = text('account') ?? text('email')\n const label = text('label') ?? text('email')\n const named = { ...(account ? { account } : {}), ...(label ? { label } : {}) }\n if (entry.kind === 'oauth') {\n if (typeof entry.access !== 'string' || !entry.access)\n return undefined\n const extra: Record<string, unknown> = {}\n for (const [key, value] of Object.entries(entry)) {\n if (!['kind', 'access', 'refresh', 'expires', 'id', 'label', LEGACY_ADOPTED_FIELD].includes(key))\n extra[key] = value\n }\n return {\n credential: {\n type: 'oauth',\n accessToken: entry.access,\n ...(typeof entry.expires === 'number' ? { expiresAt: entry.expires } : {}),\n ...(Object.keys(extra).length ? { extra } : {}),\n },\n ...(typeof entry.refresh === 'string' && entry.refresh ? { refreshToken: entry.refresh } : {}),\n ...named,\n }\n }\n if (entry.kind === 'apikey' && typeof entry.value === 'string' && entry.value)\n return { credential: { type: 'apiKey', key: entry.value }, ...named }\n return undefined\n}\n\nfunction connection(integrationId: string, methodId: string, connectedAt: number, account: unknown, label: unknown): Connection {\n return {\n integrationId,\n methodId,\n account: typeof account === 'string' && account ? account : DEFAULT_ACCOUNT,\n ...(typeof label === 'string' && label ? { label } : {}),\n connectedAt,\n }\n}\n"],"mappings":";;;AA6BA,MAAa,gCAAgC;;AAG7C,MAAM,eAAe;;AAGrB,MAAa,uBAAuB;;AAGpC,MAAa,kBAAkB;;;;;;AAO/B,SAAgB,yBAAyB,eAA+B;CACtE,OAAO,GAAG,gCAAgC;AAC5C;;;;;;AAOA,SAAgB,2BAA2B,SAAgC;CACzE,OAAO;EACL,OAAO,OAAO;GACZ,MAAM,QAAQ,oBAAoB,SAAS,yBAAyB,EAAE,CAAC;GACvE,OAAO,QAAQ,YAAY,IAAI,KAAK,IAAI,KAAA;EA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AC,KAAK,UAAU,OAAO,QAAQ,KAAK,GAC7C,IAAI,CAAC;GAAC;GAAQ;GAAU;GAAW;GAAW;GAAM;;EAA6B,CAAC,CAAC,SAAS,GAAG,GAC7F,MAAM,OAAO;EAEjB,OAAO;GACL,YAAY;IACV,MAAM;IACN,aAAa,MAAM;IACnB,GAAI,OAAO,MAAM,YAAY,WAAW,EAAE,WAAW,MAAM,QAAQ,IAAI,CAAC;IACxE,GAAI,OAAO,KAAK,KAAK,CAAC,CAAC,SAAS,EAAE,MAAM,IAAI,CAAC;GAC/C;GACA,GAAI,OAAO,MAAM,YAAY,YAAY,MAAM,UAAU,EAAE,cAAc,MAAM,QAAQ,IAAI,CAAC;GAC5F,GAAG;EACL;CACF;CACA,IAAI,MAAM,SAAS,YAAY,OAAO,MAAM,UAAU,YAAY,MAAM,OACtE,OAAO;EAAE,YAAY;GAAE,MAAM;GAAU,KAAK,MAAM;EAAM;EAAG,GAAG;CAAM;AAExE;AAEA,SAAS,WAAW,eAAuB,UAAkB,aAAqB,SAAkB,OAA4B;CAC9H,OAAO;EACL;EACA;EACA,SAAS,OAAO,YAAY,YAAY,UAAU,UAAU;EAC5D,GAAI,OAAO,UAAU,YAAY,QAAQ,EAAE,MAAM,IAAI,CAAC;EACtD;CACF;AACF"}
|
|
@@ -16,7 +16,7 @@ import { a as isRunOwnerHolding, i as isRunOwnerDead, r as currentRunOwner } fro
|
|
|
16
16
|
import { a as getExtensionSessionState, l as setExtensionSessionState, r as deleteExtensionSessionState, s as loadSession, t as createSession, u as withExtensionSession } from "./session-DKj1VfH0.js";
|
|
17
17
|
import { l as SCHEDULE_METADATA_KEY, u as SCHEDULE_ORIGIN_SOURCE } from "./types-DuSJ8EKs.js";
|
|
18
18
|
import { n as createDecider } from "./decisions-CE3veJAU.js";
|
|
19
|
-
import { Ft as mergeKeybindings, Rt as readKeybindingsRaw, zt as resolveExtensionKeybindings } from "./registry-
|
|
19
|
+
import { Ft as mergeKeybindings, Rt as readKeybindingsRaw, zt as resolveExtensionKeybindings } from "./registry-DWYR40B2.js";
|
|
20
20
|
import { n as entryPortOf, t as createProcessContext } from "./contexts-DLZTSRHU.js";
|
|
21
21
|
import { c as terminalProcesses, r as hasLocalPty } from "./local-terminal-lBMwNIZl.js";
|
|
22
22
|
import { n as createAnsiStripper } from "./types-4q1bFG53.js";
|
|
@@ -44,24 +44,24 @@ import { a as listMarkdownDefFiles, i as loadMarkdownCommands, n as applyMarkdow
|
|
|
44
44
|
import { t as projectUserPaths } from "./project-user-paths-Chsi83mp.js";
|
|
45
45
|
import { B as githubTokenSource, F as configureGithubClient, I as createGithubClient, N as clockSkewMs, P as clockTime$1, R as githubClient, V as normalizeGithubHost, r as EMPTY_EXTENSION_REGISTRY } from "./row-fields-CAYcZogp.js";
|
|
46
46
|
import { r as artifacts_default } from "./presets-NL1CRPXN.js";
|
|
47
|
-
import { t as ZIDANE_VERSION } from "./version-
|
|
47
|
+
import { t as ZIDANE_VERSION } from "./version-3w8QMAyl.js";
|
|
48
48
|
import { n as abortableInstallIo, s as parseInstallSource } from "./source-3ZnEPOSa.js";
|
|
49
|
-
import { S as withZidaneSkillEditSkill, a as sectionDigest, c as EXTENSION_EDIT_METADATA_KEY, d as ZIDANE_SKILL_EDIT_SKILL_NAME, g as extensionDirForCwd, i as latestSystemSnapshot, l as SKILL_EDIT_METADATA_KEY, n as announcedDigest, o as sectionDigests, r as catalogChangeNotes, s as systemSnapshotTurn, u as ZIDANE_EXTENSION_SKILL_NAME, v as readSkillEditMarker, x as withZidaneExtensionSkill } from "./system-freeze-
|
|
49
|
+
import { S as withZidaneSkillEditSkill, a as sectionDigest, c as EXTENSION_EDIT_METADATA_KEY, d as ZIDANE_SKILL_EDIT_SKILL_NAME, g as extensionDirForCwd, i as latestSystemSnapshot, l as SKILL_EDIT_METADATA_KEY, n as announcedDigest, o as sectionDigests, r as catalogChangeNotes, s as systemSnapshotTurn, u as ZIDANE_EXTENSION_SKILL_NAME, v as readSkillEditMarker, x as withZidaneExtensionSkill } from "./system-freeze-C3g8HY4t.js";
|
|
50
50
|
import { d as querySessions } from "./references-4kd0dyV5.js";
|
|
51
51
|
import { r as createLogger, t as consoleSink } from "./logger-BQj8QCJp.js";
|
|
52
|
-
import { F as extensionRuntimeOf, L as filterRegistryPlugins } from "./extensions-
|
|
52
|
+
import { F as extensionRuntimeOf, L as filterRegistryPlugins } from "./extensions-hHKXiXSo.js";
|
|
53
53
|
import { t as resolveStorageDirs } from "./xdg-DFSAQQG8.js";
|
|
54
54
|
import { l as resolveOAuthApiKey } from "./oauth-8CnKj11-.js";
|
|
55
55
|
import { p as oauthAccountLabel } from "./cred-keys-C0KaSRp7.js";
|
|
56
56
|
import { n as sanitizeProviderDiagnosticMetadata, o as THINKING_BINDING_SETTING_ENV, s as anthropicEffortForLevel } from "./anthropic-zmlb58Ye.js";
|
|
57
|
-
import { A as getContextWindow, B as restoreModelOptions, D as credKeyOf, F as modelSupportsReasoning, I as modelsForDescriptor, N as modelLabel, O as defaultModelOf, a as ensureCredentialIds, c as providerFactoryOptions, d as readCredentials, i as credentialsPath, k as enabledModelOptions, t as applyApiKeyEnv, w as BUILTIN_PROVIDERS, x as storedCredentialsOf } from "./credentials-
|
|
57
|
+
import { A as getContextWindow, B as restoreModelOptions, D as credKeyOf, F as modelSupportsReasoning, I as modelsForDescriptor, N as modelLabel, O as defaultModelOf, a as ensureCredentialIds, c as providerFactoryOptions, d as readCredentials, i as credentialsPath, k as enabledModelOptions, t as applyApiKeyEnv, w as BUILTIN_PROVIDERS, x as storedCredentialsOf } from "./credentials-Bf8Bz4X-.js";
|
|
58
58
|
import { n as defaultPluginDataRoot, r as loadAgentPlugin } from "./plugins-fjM76PdW.js";
|
|
59
59
|
import { i as sqliteStoreConnection } from "./sqlite-store-Bm67maGj.js";
|
|
60
60
|
import { a as createGenerateImageTool } from "./tools-BeyRitfF.js";
|
|
61
61
|
import { d as buildBuildSystem, f as buildPlanSystem, h as replaceEnvSection, m as envSectionDate, p as envSection } from "./agent-prompt-BXVwL89Y.js";
|
|
62
62
|
import { L as readPlansBag, M as formatUserEditNote, R as viewPlans, S as activePlanSummary, c as isSecretAnswer, d as isSecretTtl, f as savedSecretReference, j as formatStoppedNotice, l as isSecretName, m as secretPathFor, p as secretExpiresAt, r as SECRETS_ENV_VAR, s as declinedSecretReference, u as isSecretReference, w as applyingPlan, x as SESSION_SCOPE } from "./protocol-741icQKD.js";
|
|
63
63
|
import { C as planScopeForRun, T as readSessionPlans, _ as secretQuestionsOf, a as buildResumedToolResultsTurn, b as commitPlanEventToStore, c as interactionAwakeableKey, d as isRefusedInteraction, g as planRejectionReason, h as pendingInteractionsFromTurns, i as PRESENT_PLAN_TOOL, o as createAutomaticInteractionResponse, r as HOST_INTERACTION_ID_PREFIX, s as createInteractionTools, t as ASK_USER_TOOL, u as isModelInteraction, y as commitPlanEvent } from "./interactions-protocol-8n_AKn7Q.js";
|
|
64
|
-
import { C as profileTools, E as singleAgentRegistry, T as sessionComposition, _ as availableAgents, a as deleteSessionData, b as compositionFits, d as BUILTIN_AGENTS, f as DEFAULT_AGENT_ID, g as READ_ONLY_TOOLS, i as createSessionInStore, j as isTodoTool, n as isDurabilityMode, s as forkSession, v as builtInPromptOf, w as resolveAgentId, x as compositionTools } from "./setting-
|
|
64
|
+
import { C as profileTools, E as singleAgentRegistry, T as sessionComposition, _ as availableAgents, a as deleteSessionData, b as compositionFits, d as BUILTIN_AGENTS, f as DEFAULT_AGENT_ID, g as READ_ONLY_TOOLS, i as createSessionInStore, j as isTodoTool, n as isDurabilityMode, s as forkSession, v as builtInPromptOf, w as resolveAgentId, x as compositionTools } from "./setting-wx57dbgJ.js";
|
|
65
65
|
import { _ as teardownSessionEnvironment, c as environmentMetadata, g as runSessionEnvironmentAction, h as resolveExecution, i as assertEnvironmentReady, l as environmentTakesBranch, m as requireEnvironmentProvider, o as createEnvironmentRegistry, p as readSessionEnvironment, r as LOCAL_ENVIRONMENT, s as environmentActionSummaries, u as initialEnvironment, v as verifyEnvironment, y as workspacePath } from "./environment-DAZPEz-r.js";
|
|
66
66
|
import { E as restoreChainFallbacks, a as replaceTurnTextBlocks, c as SESSION_ACCOUNT_METADATA_KEY, f as buildRunModel, i as referencedRuns, l as modelChainMetadata, n as deleteTurnSafely, o as truncateTurnsAt, u as readSessionAccount } from "./turn-operations-CWoCTC_L.js";
|
|
67
67
|
import { $ as sessionOrchestrationTools, B as isSideSession, D as MAIN_SESSION_TITLE, E as MAIN_PLAYBOOK_FRAGMENT, F as artifactsFromTurns, G as renderProjectsBriefing, H as parseOrchestrationTools, I as capRequestPayload, J as sessionCreator, K as renderSessionEventXml, L as isBackgroundSession, N as SUBSCRIBE_KEY, O as ORCHESTRATED_BY_KEY, P as WORKER_REPORT_FRAGMENT, R as isMainSession, T as CREATED_BY_KEY, V as orchestratedBy, W as parseSessionScope, Z as sessionEventLabel, c as extensionSpace, dt as formatRunReceiptLine, et as sessionSubscription, gt as runReceiptFromRun, j as SESSION_ROLE_KEY, k as ORCHESTRATION_TOOLS_KEY, m as readSessionSpaceId, mt as hasRunReceipt, nt as sideSessionParent, q as scopeMatches, u as isExtensionSpaceId, w as parseModelSetting, z as isOrchestratorSession } from "./spaces-BdDAbJDx.js";
|
|
@@ -79,9 +79,9 @@ import { t as StreamQueue } from "./stream-queue-Cd9OJxl7.js";
|
|
|
79
79
|
import { t as createDaytonaProvider } from "./daytona-BzRqVoAn.js";
|
|
80
80
|
import { n as hostWorkspaceMounts, t as createDockerContext } from "./docker-D3CARts8.js";
|
|
81
81
|
import { t as createE2BProvider } from "./e2b-4ByYdO1e.js";
|
|
82
|
-
import { g as fieldsReadBy, s as modelKey, t as accountModelKey } from "./providers-
|
|
82
|
+
import { g as fieldsReadBy, s as modelKey, t as accountModelKey } from "./providers-CuMn0Kkq.js";
|
|
83
83
|
import { n as sqliteRuntimeForStore } from "./sqlite-runtime-DdejmFbD.js";
|
|
84
|
-
import { a as integrationCredentialsOf, i as detectAuth, o as isIntegrationCredentialKey, r as activeAccountOf, t as createCliExecution } from "./cli-shared-
|
|
84
|
+
import { a as integrationCredentialsOf, i as detectAuth, o as isIntegrationCredentialKey, r as activeAccountOf, t as createCliExecution } from "./cli-shared-VGYq10bZ.js";
|
|
85
85
|
import { t as createSchedules } from "./scheduler-eJRFwjr-.js";
|
|
86
86
|
import { a as scheduleTargetSession, i as scheduleLabel } from "./validate-53YmvQ3V.js";
|
|
87
87
|
import { d as isEnvironmentEnabled, p as resolveProviderConfig, u as describeEnvironments } from "./host-scoped-settings-jlq5zWs4.js";
|
|
@@ -21991,7 +21991,7 @@ function pickOAuthSelectOption(options, input) {
|
|
|
21991
21991
|
*/
|
|
21992
21992
|
async function runIntegrationSignIn(descriptor, options) {
|
|
21993
21993
|
if (!descriptor.integration) throw new Error(`${descriptor.label} does not sign in with an integration.`);
|
|
21994
|
-
const { signInWithIntegration } = await import("./registry-
|
|
21994
|
+
const { signInWithIntegration } = await import("./registry-CGYWxMNj.js").then((n) => n.r);
|
|
21995
21995
|
return signInWithIntegration(descriptor.integration, loginCallbacks(descriptor, options), options.signal ? { signal: options.signal } : {});
|
|
21996
21996
|
}
|
|
21997
21997
|
/**
|
|
@@ -29557,4 +29557,4 @@ function hasUpdateAppliedMarker(cacheDir) {
|
|
|
29557
29557
|
//#endregion
|
|
29558
29558
|
export { CLAUDE_IMPORT_NOTES as $, folderlessCwd as $n, createExtensionMcpHost as $t, clearProviderUsageCache as A, createChatTurnsReadTool as An, writeWorkspaceFile as At, exportFilename as B, localEnvironmentProvider as Bn, mcpsWritePath as Bt, parseSemver as C, buildSkillsConfig as Cn, createMemoryApprovalsStore as Cr, confineToWorkspace as Ct, resolvePlatformPackage as D, createBuiltinCommands as Dn, gitStatusOf as Dt, reinstallHint as E, discoverProjectSkills as En, gitStatus as Et, redeemProviderReset as F, resolveSessionModel as Fn, supersededTools as Ft, detectOnboardingEnvironment as G, readRemoteSandboxRef as Gn, runIntegrationSignIn as Gt, resolveSessionExportTarget as H, createWorktreeEnvironmentProvider as Hn, upsertMcpServer as Ht, usageChecksOptedOut as I, discoverSessionMcpServers as In, makeToolContext as It, probeLocalModelServers as J, recordAgentHooksFanout as Jn, supportsOAuth as Jt, detectOtherAgents as K, MachineLinkLostError as Kn, runOAuthLogin as Kt, usageSourceFor as L, machineDiscoveryCwd as Ln, fileEntriesFromPaths as Lt, fetchProviderUsage as M, discoverAgentsMd as Mn, invalidateDiagnostics as Mt, fetchProviderUsageAccounts as N, renderAgentsMdBlock as Nn, listDiagnosticsTools as Nt, updateChecksOptedOut as O, applyThinkingBindingSetting as On, listWorkspace as Ot, providerUsageSupported as P, createProviderBuilder as Pn, runDiagnostics as Pt, listExtensionSource as Q, serializePreview as Qn, createArtifactKindsHost as Qt, fetchGithubUsage as R, insideDeclaredRoots as Rn, listProjectFiles as Rt, overrideManager as S, createPromptSubmissions as Sn, createApprovalHub as Sr, assembleDiff as St, performSelfUpdate as T, defaultSkillScanPaths as Tn, gitShowHead as Tt, writeSessionExport as U, prepareWorktree as Un, oauthUsesManualCodePaste as Ut, renderSession as V, WORKTREE_ENVIRONMENT_KIND as Vn, removeMcpServer as Vt, connectorGithubToken as W, teardownWorktree as Wn, pickOAuthSelectOption as Wt, onboardingProviders as X, readFileSafe as Xn, tryRevealPath as Xt, FEATURED_PROVIDERS as Y, extractEditPayloadForGate as Yn, tryOpenBrowser as Yt, clearExtensionSourceCache as Z, resolveCwdPath as Zn, createMcpStatusTracker as Zt, checkForUpdate as _, storeHasDurability as _n, testDecisionModel as _r, gitOriginUrl as _t, updateAppliedMarkerPath as a, sandboxUnreadableDirs as an, clearMcpToolsCache as ar, createGitWatches as at, detectLibc as b, PLAN_STOPPED_NOTE_KIND as bn, liveAgentProfiles as br, WORKSPACE_MAX_ENTRIES as bt, UPDATE_LOCK_FILE as c, patchMcpCredential as cn, refreshMcpToolsCatalog as cr, forgetGitCaches as ct, describeUpdateLockHolder as d, isInside$1 as dn, imageGenerationTools as dr, gitCreateBranch as dt, resolveConfig as en, resolveSessionCwd as er, claudeImportHostNote as et, isUpdateLockStale as f, createCatalogPorts as fn, imageModelSources as fr, gitInfo as ft, SELF_UPDATE_TIMEOUT_MS as g, readPinnedSkills as gn, resolveDecisionsOption as gr, cloneRepository as gt, findInstalledCompanion as h, pinnedSkillsValue as hn, parseDecisionModel as hr, gitSwitch as ht, readUpdateAppliedMarker as i, resolveSandboxForRoots as in, parsePluginScanPathEnv as ir, previewClaudeImport as it, fetchAllProviderUsage as j, installProviderDiagnosticHook as jn, resolvePaths as jt, USAGE_CACHE_TTL_MS as k, chatReferenceTokensForPrompt as kn, readWorkspaceFile as kt, UPDATE_LOCK_STALE_MS as l, provisionSessionEnvironment as ln, saveMcpToolsCache as lr, gitBranches as lt, updateLockPath as m, PINNED_SKILLS_META_KEY as mn, listDecisionModels as mr, gitPrList as mt, hasUpdateAppliedMarker as n, createChatHost as nn, buildPluginContributions as nr, hasClaudeCodeSetup as nt, watchInstalledVersion as o, createFileMcpCredentialStore as on, loadMcpToolsCache as or, watchGitRepository as ot, readUpdateLock as p, linkCatalogs as pn, listImageModels as pr, gitPr as pt, onboardingInstallSignals as q, createAgentHooksFanout as qn, signsInWithIntegration as qt, probeInstalledVersion as r, createInteractionHub as rn, discoverProjectPlugins as rr, importFromClaudeCode as rt, writeUpdateAppliedMarker as s, mcpCredentialsPath as sn, mcpToolsCachePath as sr, gitSync as st, UPDATE_APPLIED_MARKER as t, resolveStoragePaths as tn, scopeCwd as tr, countClaudeSessionFiles as tt, acquireUpdateLock as u, createWorkspaceConfinement as un, subscribeMcpToolsCache as ur, gitCommit as ut, checkTarballAvailable as v, isStaleRunMarker as vn, applyExtensionAgents as vr, createCapabilityProbe as vt, performInPlaceSelfUpdate as w, createSkillNameProbe as wn, gitDiff as wt, detectPackageManager as x, planRunNotes as xn, runCompaction as xr, WORKSPACE_MAX_FILE_BYTES as xt, compareSemver as y, PLAN_EDITED_NOTE_KIND as yn, changedCatalogItems as yr, searchWorkspace as yt, aggregateUsage as z, builtinEnvironmentProviders as zn, isMcpServerName as zt };
|
|
29559
29559
|
|
|
29560
|
-
//# sourceMappingURL=auto-update-restart-
|
|
29560
|
+
//# sourceMappingURL=auto-update-restart-Dkdz6rq4.js.map
|