zidane 6.5.5 → 6.5.7
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-BPJbXS2J.js → acp-Dm95NwNM.js} +4 -4
- package/dist/{acp-BPJbXS2J.js.map → acp-Dm95NwNM.js.map} +1 -1
- package/dist/acp-cli.js +5 -5
- package/dist/acp.d.ts +1 -1
- package/dist/acp.js +1 -1
- package/dist/{agent-gZjHsUft.js → agent-CcTWL-Z6.js} +59 -5
- package/dist/agent-CcTWL-Z6.js.map +1 -0
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +1 -1
- package/dist/{anthropic-D3le2d-s.js → anthropic-BomWPIYw.js} +392 -30
- package/dist/anthropic-BomWPIYw.js.map +1 -0
- package/dist/{auth-DCiXCwGa.js → auth-C-Zx5zBo.js} +127 -35
- package/dist/auth-C-Zx5zBo.js.map +1 -0
- package/dist/chat/pure.d.ts +3 -3
- package/dist/chat.d.ts +91 -6
- package/dist/chat.d.ts.map +1 -1
- package/dist/chat.js +4 -4
- package/dist/contexts/daytona.d.ts +1 -1
- package/dist/contexts/e2b.d.ts +1 -1
- package/dist/eval.d.ts +1 -1
- package/dist/eval.js +1 -1
- package/dist/extensions.d.ts +1 -1
- package/dist/extensions.js +1 -1
- package/dist/headless.d.ts +1 -1
- package/dist/headless.js +3 -3
- package/dist/{index-BYKzzYzi.d.ts → index-ZWibV230.d.ts} +33 -7
- package/dist/index-ZWibV230.d.ts.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -6
- package/dist/mcp.d.ts +1 -1
- package/dist/{messages-CVVg5jUL.js → messages-CZMUuKzo.js} +2 -2
- package/dist/{messages-CVVg5jUL.js.map → messages-CZMUuKzo.js.map} +1 -1
- package/dist/{openai-compat-hmZzpDrB.js → openai-compat-BoTi-9fd.js} +8 -3
- package/dist/openai-compat-BoTi-9fd.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/presets.d.ts +1 -1
- package/dist/presets.js +1 -1
- package/dist/providers/anthropic.d.ts +1 -1
- package/dist/providers/anthropic.js +1 -1
- package/dist/providers/arcee.d.ts +1 -1
- package/dist/providers/arcee.js +1 -1
- package/dist/providers/baseten.d.ts +1 -1
- package/dist/providers/baseten.js +1 -1
- package/dist/providers/cerebras.d.ts +1 -1
- package/dist/providers/cerebras.js +2 -2
- package/dist/providers/cerebras.js.map +1 -1
- package/dist/providers/local.d.ts +1 -1
- package/dist/providers/local.js +1 -1
- package/dist/providers/openai-compat.d.ts +1 -1
- package/dist/providers/openai-compat.js +1 -1
- package/dist/providers/openai.d.ts +1 -1
- package/dist/providers/openai.js +2 -2
- package/dist/providers/openrouter.d.ts +1 -1
- package/dist/providers/openrouter.js +1 -1
- package/dist/providers/xai.d.ts +1 -1
- package/dist/providers/xai.js +1 -1
- package/dist/{providers-Cf0AXIIZ.js → providers-CmhdtD7w.js} +2 -2
- package/dist/{providers-Cf0AXIIZ.js.map → providers-CmhdtD7w.js.map} +1 -1
- package/dist/providers.d.ts +1 -1
- package/dist/providers.js +3 -3
- package/dist/restate.d.ts +1 -1
- package/dist/restate.js +2 -2
- package/dist/session/sqlite.d.ts +1 -1
- package/dist/{session-cqN5NbO-.js → session-CyRLSsVa.js} +2 -2
- package/dist/{session-cqN5NbO-.js.map → session-CyRLSsVa.js.map} +1 -1
- package/dist/session.d.ts +1 -1
- package/dist/session.js +2 -2
- package/dist/skills.d.ts +1 -1
- package/dist/{tool-formatters-B5WSHMCU.d.ts → tool-formatters-D3wSS2zz.d.ts} +2 -2
- package/dist/{tool-formatters-B5WSHMCU.d.ts.map → tool-formatters-D3wSS2zz.d.ts.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/tools.js +1 -1
- package/dist/{transcript-anchors-BvC8t7dt.js → transcript-anchors-DGUqw92H.js} +3 -3
- package/dist/{transcript-anchors-BvC8t7dt.js.map → transcript-anchors-DGUqw92H.js.map} +1 -1
- package/dist/{transcript-anchors-BPnWHLyr.d.ts → transcript-anchors-llwMrLRG.d.ts} +2 -2
- package/dist/{transcript-anchors-BPnWHLyr.d.ts.map → transcript-anchors-llwMrLRG.d.ts.map} +1 -1
- package/dist/tui.d.ts +9 -3
- package/dist/tui.d.ts.map +1 -1
- package/dist/tui.js +232 -13
- package/dist/tui.js.map +1 -1
- package/dist/{turn-operations-BvP3_HsU.d.ts → turn-operations-C_XvfBU3.d.ts} +3 -3
- package/dist/{turn-operations-BvP3_HsU.d.ts.map → turn-operations-C_XvfBU3.d.ts.map} +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +2 -2
- package/dist/agent-gZjHsUft.js.map +0 -1
- package/dist/anthropic-D3le2d-s.js.map +0 -1
- package/dist/auth-DCiXCwGa.js.map +0 -1
- package/dist/index-BYKzzYzi.d.ts.map +0 -1
- package/dist/openai-compat-hmZzpDrB.js.map +0 -1
package/dist/acp-cli.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { m as openaiCompat } from "./openai-compat-
|
|
3
|
-
import { bt as basic_default } from "./agent-
|
|
2
|
+
import { m as openaiCompat } from "./openai-compat-BoTi-9fd.js";
|
|
3
|
+
import { bt as basic_default } from "./agent-CcTWL-Z6.js";
|
|
4
4
|
import { r as createProcessContext } from "./contexts-DWVt7MvF.js";
|
|
5
5
|
import { createSandboxContext } from "./contexts/sandbox.js";
|
|
6
6
|
import { p as resolveStorageDirs } from "./plugins-onDvTHEm.js";
|
|
7
|
-
import { n as anthropic } from "./anthropic-
|
|
7
|
+
import { n as anthropic } from "./anthropic-BomWPIYw.js";
|
|
8
8
|
import { arcee } from "./providers/arcee.js";
|
|
9
9
|
import { baseten } from "./providers/baseten.js";
|
|
10
10
|
import { cerebras } from "./providers/cerebras.js";
|
|
11
11
|
import { openai } from "./providers/openai.js";
|
|
12
12
|
import { openrouter } from "./providers/openrouter.js";
|
|
13
13
|
import { xai } from "./providers/xai.js";
|
|
14
|
-
import { d as StartUsageError, f as buildStartLocalOptions, h as startProviderNames, i as withAcpDefaultTools, m as startLocalArgOptions, p as parseStartArgValues, t as runAcpStdioServer } from "./acp-
|
|
15
|
-
import {
|
|
14
|
+
import { d as StartUsageError, f as buildStartLocalOptions, h as startProviderNames, i as withAcpDefaultTools, m as startLocalArgOptions, p as parseStartArgValues, t as runAcpStdioServer } from "./acp-Dm95NwNM.js";
|
|
15
|
+
import { d as BUILTIN_PROVIDERS, i as readCredentials, m as credKeyOf, r as credentialsPath, t as detectAuth, x as modelsForDescriptor } from "./auth-C-Zx5zBo.js";
|
|
16
16
|
import { createDaytonaProvider } from "./contexts/daytona.js";
|
|
17
17
|
import { createDockerContext } from "./contexts/docker.js";
|
|
18
18
|
import { createE2BProvider } from "./contexts/e2b.js";
|
package/dist/acp.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bh as TurnUsage, Cg as SessionStore, Gh as ToolDef, Nm as AgentBehavior, Uf as Provider, Wi as Agent, Xm as McpServerConfig, gh as SessionContentBlock, jh as ToolResultContent, qi as AgentOptions, sh as PromptPart, t as Preset, yg as Session } from "./index-
|
|
1
|
+
import { Bh as TurnUsage, Cg as SessionStore, Gh as ToolDef, Nm as AgentBehavior, Uf as Provider, Wi as Agent, Xm as McpServerConfig, gh as SessionContentBlock, jh as ToolResultContent, qi as AgentOptions, sh as PromptPart, t as Preset, yg as Session } from "./index-ZWibV230.js";
|
|
2
2
|
import { c as ExecutionContext } from "./types-M2DauK2D.js";
|
|
3
3
|
import { Readable, Writable } from "node:stream";
|
|
4
4
|
|
package/dist/acp.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as createJsonRpcConnection, a as wrapToolsForAcpClient, c as sessionBlocksToAcp, g as JsonRpcRemoteError, i as withAcpDefaultTools, l as stopReasonFromRun, n as AcpProtocolError, o as acpMcpServersToZidane, r as createAcpServer, s as acpPromptToPromptParts, t as runAcpStdioServer, u as toolResultToAcpContent } from "./acp-
|
|
1
|
+
import { _ as createJsonRpcConnection, a as wrapToolsForAcpClient, c as sessionBlocksToAcp, g as JsonRpcRemoteError, i as withAcpDefaultTools, l as stopReasonFromRun, n as AcpProtocolError, o as acpMcpServersToZidane, r as createAcpServer, s as acpPromptToPromptParts, t as runAcpStdioServer, u as toolResultToAcpContent } from "./acp-Dm95NwNM.js";
|
|
2
2
|
export { AcpProtocolError, JsonRpcRemoteError, acpMcpServersToZidane, acpPromptToPromptParts, createAcpServer, createJsonRpcConnection, runAcpStdioServer, sessionBlocksToAcp, stopReasonFromRun, toolResultToAcpContent, withAcpDefaultTools, wrapToolsForAcpClient };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as rewriteMessagesToWire, H as toWireName, I as augmentMcpDoubleUnderscoreAliases, L as buildAliasMaps, M as buildPromptMessage, N as canonicalizePrompt, R as buildSanitizedWireAliases, V as toCanonicalName, z as rewriteContentToCanonical } from "./openai-compat-
|
|
1
|
+
import { B as rewriteMessagesToWire, H as toWireName, I as augmentMcpDoubleUnderscoreAliases, L as buildAliasMaps, M as buildPromptMessage, N as canonicalizePrompt, R as buildSanitizedWireAliases, V as toCanonicalName, z as rewriteContentToCanonical } from "./openai-compat-BoTi-9fd.js";
|
|
2
2
|
import { a as isWireTurn, c as toolOutputByteLength, i as documentBlockMarker, l as toolResultToText, o as sanitizeToolResultMetadata, s as toolOutputBudgetByteLength, t as DEFAULT_AGENT_CLOCK } from "./types-BIarq1qE.js";
|
|
3
3
|
import { a as stripLineNumberPrefixes, i as resolveOldString, n as buildContextBreakdown, o as styleReplacementForVia, r as describeVia, t as buildContextSegments } from "./context-segments-CJCtJ9sU.js";
|
|
4
4
|
import { n as estimateTokens, r as utf8ByteLength } from "./utils-ngQzYzZD.js";
|
|
@@ -15,8 +15,8 @@ import { r as createLogger, t as consoleSink } from "./logger-DBX9uYOw.js";
|
|
|
15
15
|
import { n as reconcileImageMediaType } from "./media-sniff-UKijEaiQ.js";
|
|
16
16
|
import { f as wrapDiscoveredMcpTools, i as deriveMcpToolMeta, n as connectMcpServers, s as nonOwningMcpView } from "./mcp-CVtSQTWg.js";
|
|
17
17
|
import { appendStaticSection, renderSystemForWire } from "./prompt.js";
|
|
18
|
-
import { a as detectTurnInterruption, c as ensureToolResultPairing, l as filterUnresolvedToolUses, m as resolveContentRefsInMessages, n as SYNTHETIC_TOOL_RESULT_PLACEHOLDER, p as remintDuplicateToolCallIds, s as ensureEndsWithUserMessage } from "./messages-
|
|
19
|
-
import { a as getExtensionSessionState, c as setExtensionSessionState, l as withExtensionSession, n as currentExtensionSession, r as deleteExtensionSessionState, s as resumeChainRunIds } from "./session-
|
|
18
|
+
import { a as detectTurnInterruption, c as ensureToolResultPairing, l as filterUnresolvedToolUses, m as resolveContentRefsInMessages, n as SYNTHETIC_TOOL_RESULT_PLACEHOLDER, p as remintDuplicateToolCallIds, s as ensureEndsWithUserMessage } from "./messages-CZMUuKzo.js";
|
|
19
|
+
import { a as getExtensionSessionState, c as setExtensionSessionState, l as withExtensionSession, n as currentExtensionSession, r as deleteExtensionSessionState, s as resumeChainRunIds } from "./session-CyRLSsVa.js";
|
|
20
20
|
import { n as flattenTurns, r as formatTokenUsage, t as effectiveInputFromTurn } from "./stats-DAKBEKjc.js";
|
|
21
21
|
import { a as settleWithinTimeout, i as resolveTimeoutMs, n as abortableSleep, o as withInactivityTimeout, r as linkAbortSignal, s as withTimeout$1, t as OperationTimeoutError } from "./timeout-CjOG2mea.js";
|
|
22
22
|
import { createRequire } from "node:module";
|
|
@@ -2159,6 +2159,55 @@ function registerExtensionHostModules(modules) {
|
|
|
2159
2159
|
});
|
|
2160
2160
|
}
|
|
2161
2161
|
//#endregion
|
|
2162
|
+
//#region src/chat/cred-keys.ts
|
|
2163
|
+
/**
|
|
2164
|
+
* Credential-file key arithmetic, split from `./credentials` so the rules can
|
|
2165
|
+
* be enforced where credentials themselves must not be pulled in.
|
|
2166
|
+
*
|
|
2167
|
+
* `./credentials` reaches the provider registry (and through it the pi-ai
|
|
2168
|
+
* factories) for `credKeyOf`; the extension loader — an edge entrypoint that
|
|
2169
|
+
* validates descriptor keys at registration time — must stay clear of that
|
|
2170
|
+
* graph. This module is string arithmetic with no imports.
|
|
2171
|
+
*/
|
|
2172
|
+
/**
|
|
2173
|
+
* Reserved suffix marking a provider's SECOND credential slot.
|
|
2174
|
+
*
|
|
2175
|
+
* Not usable as (or as the tail of) a descriptor's credential key: `foo#alt`
|
|
2176
|
+
* holds `foo`'s alternate credential, so a provider claiming that name would
|
|
2177
|
+
* share storage with it.
|
|
2178
|
+
*/
|
|
2179
|
+
const ALTERNATE_CRED_KEY_SUFFIX = "#alt";
|
|
2180
|
+
/**
|
|
2181
|
+
* File key holding a provider's second credential, when it has one of each kind.
|
|
2182
|
+
*
|
|
2183
|
+
* The canonical key always holds the credential the user prefers; this sibling
|
|
2184
|
+
* holds the other. That one invariant is what makes preference selection free:
|
|
2185
|
+
* every existing reader (`applyApiKeyEnv`, the harness provider factories)
|
|
2186
|
+
* already resolves the canonical key, so "switch priority" is just moving two
|
|
2187
|
+
* objects between two keys — no precedence flag to interpret, no resolution
|
|
2188
|
+
* order to keep in sync across layers.
|
|
2189
|
+
*
|
|
2190
|
+
* A sibling key rather than a nested field because the canonical entry gets
|
|
2191
|
+
* REPLACED wholesale on token refresh; anything nested inside it would be
|
|
2192
|
+
* dropped by the next rotation. And older zidane versions look credentials up
|
|
2193
|
+
* by `credKeyOf`, so a suffixed key is simply invisible to them — they read the
|
|
2194
|
+
* preferred credential and behave exactly as before, which is why this needs no
|
|
2195
|
+
* migration or schema version.
|
|
2196
|
+
*/
|
|
2197
|
+
function alternateCredKey(fileKey) {
|
|
2198
|
+
return `${fileKey}${ALTERNATE_CRED_KEY_SUFFIX}`;
|
|
2199
|
+
}
|
|
2200
|
+
/**
|
|
2201
|
+
* True when a key claims the reserved alternate namespace.
|
|
2202
|
+
*
|
|
2203
|
+
* Built-in keys are plain identifiers (`anthropic`, `openai-codex`), but
|
|
2204
|
+
* `ProviderDescriptor.key` / `credentialFileKey` are open strings — so the
|
|
2205
|
+
* reservation is checked, not assumed.
|
|
2206
|
+
*/
|
|
2207
|
+
function isReservedCredKey(fileKey) {
|
|
2208
|
+
return fileKey.endsWith(ALTERNATE_CRED_KEY_SUFFIX);
|
|
2209
|
+
}
|
|
2210
|
+
//#endregion
|
|
2162
2211
|
//#region src/chat/keybindings.ts
|
|
2163
2212
|
/**
|
|
2164
2213
|
* Keybindings — a single source of truth for the app's global shortcuts.
|
|
@@ -7520,6 +7569,11 @@ function makeContext(opts) {
|
|
|
7520
7569
|
warnUnsafeKey(logger, "registerProvider", descriptor.key);
|
|
7521
7570
|
return;
|
|
7522
7571
|
}
|
|
7572
|
+
const credKey = descriptor.credentialFileKey ?? descriptor.key;
|
|
7573
|
+
if (isReservedCredKey(credKey)) {
|
|
7574
|
+
logger.warn(`registerProvider: refused reserved credential key "${credKey}" ("${ALTERNATE_CRED_KEY_SUFFIX}" marks a provider's alternate credential)`);
|
|
7575
|
+
return;
|
|
7576
|
+
}
|
|
7523
7577
|
sinks.providers[descriptor.key] = descriptor;
|
|
7524
7578
|
};
|
|
7525
7579
|
const registerSystemPromptFragment = (text) => {
|
|
@@ -16976,6 +17030,6 @@ function createAgent(rawOptions) {
|
|
|
16976
17030
|
};
|
|
16977
17031
|
}
|
|
16978
17032
|
//#endregion
|
|
16979
|
-
export { installExtensionFromSpec as $, groupBindings as $t, selectFilesFromSession as A,
|
|
17033
|
+
export { installExtensionFromSpec as $, groupBindings as $t, selectFilesFromSession as A, OUTPUT_RESERVE_TOKENS as An, createSkillsReadTool as At, buildUpToCompactPrompt as B, hydrateReadStateFromSessionAsync as Bn, matchModelEntries as Bt, resolveLegacySessionDir as C, isValidExtensionConfigItem as Cn, waitTask as Ct, resolveTasksDir as D, sanitizeExtensionConfigActionPatch as Dn, reserveChildLabel as Dt, resolveSessionDir as E, resolveExtensionConfigValue as En, isSpawnTool as Et, TRAILER as F, normalizeShellCommand as Fn, readFile$1 as Ft, summaryToTurn as G, edit as Gt, anchorPreviewFor as H, resolveReadStateMap as Hn, createInteractionTool as Ht, buildCompactPrompt as I, stableStringify as In, looksBinary as It, CompactPromptTooLongError as J, KEYBINDING_DEFS as Jt, truncateHeadForPtlRetry as K, validateToolArgs as Kt, buildFromCompactPrompt as L, getReadState as Ln, multiEdit as Lt, compactConversation as M, shouldAutoCompact as Mn, createShellTool as Mt, BASE_INSTRUCTIONS as N, defaultRepeatGuardNormalize as Nn, shell as Nt, buildPostCompactAttachments as O, toWireConfigSchema as On, createSkillsUseTool as Ot, NO_TOOLS_PREAMBLE as P, defaultRepeatGuardTracked as Pn, tailTruncate as Pt, fetchExtensionSource as Q, formatBindingForDisplay as Qt, buildFullCompactPrompt as R, hashContent as Rn, createModelSearchTool as Rt, resolveLegacyPersistDir as S, coerceExtensionConfigInput as Sn, WAIT_TASK_TIMED_OUT_PREFIX as St, resolvePersistDir as T, resolveExtensionConfig as Tn, createSpawnTool as Tt, sliceForCompaction as U, grep as Ut, ANCHOR_PREVIEW_MAX_CHARS as V, readStateKey as Vn, listFiles as Vt, stripImagesFromTurns as W, glob as Wt, createExtensionPromptBridge as X, KEYBINDING_KEY_COL_WIDTH as Xt, EMPTY_EXTENSION_REGISTRY as Y, KEYBINDING_DEF_BY_ACTION as Yt, ExtensionInstallError as Z, ensureKeybindingsFile as Zt, buildPersistedStub as _, parseExtensionScanPathEnv as _n, composePresets as _t, stagedToolState as a, readKeybindingsRaw as an, createExtensionHud as at, migrateSessionArtifactDirs as b, defineExtension as bn, basic_default as bt, INTERRUPT_MESSAGE_FOR_TOOL_USE as c, ALTERNATE_CRED_KEY_SUFFIX as cn, buildExtensionRegistry as ct, TOOL_USE_SKIPPED_MESSAGE as d, registerExtensionHostModules as dn, filterExtensionRegistry as dt, keybindingsPath as en, listExtensionCandidates as et, applyCompactSummaryCutoff as f, ENTRY_CANDIDATES as fn, filterRegistryPlugins as ft, PERSISTENCE_PREVIEW_BYTES as g, isExtensionDefinition as gn, createWorkspaceSurface as gt, PERSISTED_STUB_PREFIX as h, inlineLoadedExtension as hn, createExtensionHostRuntimeBridge as ht, isToolStateOps as i, readKeybindings as in, updateInstalledExtension as it, selectRecentFiles as j, effectiveContextWindow as jn, shellKill as jt, selectFilesFromReadState as k, AUTO_COMPACT_MIN_GROWTH_FRACTION as kn, createSkillsRunScriptTool as kt, SHELL_CASCADE_CANCEL_MESSAGE as l, alternateCredKey as ln, composeExtensionPreset as lt, renderStaleReadNotice as m, discoverExtensions as mn, partitionExtensionCatalog as mt, DEFAULT_MAX_VALUE_BYTES as n, mergeKeybindings as nn, readExtensionInstallProvenance as nt, normalizeProviders as o, resolveExtensionKeybindings as on, discoverAndBuildExtensionRegistry as ot, collectNewlyStaleReadPaths as p, defaultExtensionScanPaths as pn, mergeContributions as pt, CompactInvalidInputError as q, DEFAULT_KEYBINDINGS as qt, createToolStateController as r, parseBindingSpec as rn, removeInstalledExtension as rt, resolveModelTargets as s, stripJsonComments as sn, buildExtensionPreset as st, createAgent as t, matchesBinding as tn, parseExtensionInstallSource as tt, TOOL_USE_CANCELLED_MESSAGE as u, isReservedCredKey as un, disposeExtensionRegistry as ut, cleanupPersistedSession as v, scanExtensionDirectories as vn, definePreset as vt, resolveMcpWarningsDir as w, isValidExtensionConfigValue as wn, createToolSearchTool as wt, rehomePersistedStubs as x, clampExtensionConfigNumber as xn, writeFile$1 as xt, maybePersistToolResult as y, createDebugLog as yn, basicTools as yt, buildTailCompactPrompt as z, hydrateReadStateFromSession as zn, formatModelLine as zt };
|
|
16980
17034
|
|
|
16981
|
-
//# sourceMappingURL=agent-
|
|
17035
|
+
//# sourceMappingURL=agent-CcTWL-Z6.js.map
|