zidane 7.1.1 → 7.1.4
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-B5UfEhMd.js → acp-DbYGzaVK.js} +2 -2
- package/dist/{acp-B5UfEhMd.js.map → acp-DbYGzaVK.js.map} +1 -1
- package/dist/acp-cli.js +3 -3
- package/dist/acp.d.ts +1 -1
- package/dist/acp.js +1 -1
- package/dist/{agent-_xxElOgH.js → agent-BlGt76qk.js} +4 -53
- package/dist/agent-BlGt76qk.js.map +1 -0
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +1 -1
- package/dist/{approvals-u2T19Dc-.js → approvals-CnFq-_Gu.js} +4 -4
- package/dist/{approvals-u2T19Dc-.js.map → approvals-CnFq-_Gu.js.map} +1 -1
- package/dist/{auth-HRKkOErn.js → auth-CNetxyJH.js} +242 -79
- package/dist/{auth-HRKkOErn.js.map → auth-CNetxyJH.js.map} +1 -1
- package/dist/chat/pure.d.ts +4 -4
- package/dist/chat/pure.js +3 -3
- package/dist/chat.d.ts +6 -6
- package/dist/chat.js +6 -6
- package/dist/contexts/daytona.d.ts +1 -1
- package/dist/contexts/e2b.d.ts +1 -1
- package/dist/{context-segments-BrEsRhA0.js → cred-keys-BbbBr4q3.js} +104 -2
- package/dist/cred-keys-BbbBr4q3.js.map +1 -0
- package/dist/daemon-cli.js +1 -1
- package/dist/eval.d.ts +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 +1 -1
- package/dist/{index-DZhrTn-v.d.ts → index-BIJKozYj.d.ts} +22 -9
- package/dist/index-BIJKozYj.d.ts.map +1 -0
- package/dist/{index-D3TTaaQ5.d.ts → index-DtF2yPaI.d.ts} +6 -193
- package/dist/index-DtF2yPaI.d.ts.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/{ipc-DwauKEE-.js → ipc-DZffY7UT.js} +2 -2
- package/dist/{ipc-DwauKEE-.js.map → ipc-DZffY7UT.js.map} +1 -1
- package/dist/ipc.d.ts +5 -5
- package/dist/ipc.js +3 -3
- package/dist/mcp.d.ts +1 -1
- 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/arcee.d.ts +1 -1
- package/dist/providers/baseten.d.ts +1 -1
- package/dist/providers/cerebras.d.ts +1 -1
- package/dist/providers/local.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/restate.d.ts +1 -1
- package/dist/restate.js +1 -1
- package/dist/{server-DvPnPSZb.js → server-Cdrcncg-.js} +6 -6
- package/dist/{server-DvPnPSZb.js.map → server-Cdrcncg-.js.map} +1 -1
- package/dist/session/sqlite.d.ts +1 -1
- package/dist/session.d.ts +1 -1
- package/dist/skills.d.ts +1 -1
- package/dist/{tool-formatters-C5s88MUd.d.ts → tool-formatters-Baj_BroN.d.ts} +83 -3
- package/dist/tool-formatters-Baj_BroN.d.ts.map +1 -0
- 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-DxofXw_y.d.ts → transcript-anchors-DfnBVZX0.d.ts} +201 -3
- package/dist/transcript-anchors-DfnBVZX0.d.ts.map +1 -0
- package/dist/tui.d.ts +20 -6
- package/dist/tui.d.ts.map +1 -1
- package/dist/tui.js +350 -38
- package/dist/tui.js.map +1 -1
- package/dist/{turn-operations-6JDu2ewy.js → turn-operations-BHeYIvSY.js} +2 -2
- package/dist/{turn-operations-6JDu2ewy.js.map → turn-operations-BHeYIvSY.js.map} +1 -1
- package/dist/{turn-operations-BaQnxzhr.d.ts → turn-operations-Cl3RNQ2O.d.ts} +3 -3
- package/dist/{turn-operations-BaQnxzhr.d.ts.map → turn-operations-Cl3RNQ2O.d.ts.map} +1 -1
- package/dist/types.d.ts +1 -1
- package/docs/CHAT.md +10 -0
- package/docs/TUI.md +1 -1
- package/package.json +1 -1
- package/dist/agent-_xxElOgH.js.map +0 -1
- package/dist/context-segments-BrEsRhA0.js.map +0 -1
- package/dist/index-D3TTaaQ5.d.ts.map +0 -1
- package/dist/index-DZhrTn-v.d.ts.map +0 -1
- package/dist/tool-formatters-C5s88MUd.d.ts.map +0 -1
- package/dist/transcript-anchors-DxofXw_y.d.ts.map +0 -1
package/dist/acp-cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { m as openaiCompat } from "./openai-compat-Dy56weK8.js";
|
|
3
|
-
import { Ct as basic_default } from "./agent-
|
|
3
|
+
import { Ct as basic_default } from "./agent-BlGt76qk.js";
|
|
4
4
|
import { r as createProcessContext } from "./contexts-CRE9pw07.js";
|
|
5
5
|
import { createSandboxContext } from "./contexts/sandbox.js";
|
|
6
6
|
import { p as resolveStorageDirs } from "./plugins-gbI7SBA6.js";
|
|
@@ -11,8 +11,8 @@ 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-DbYGzaVK.js";
|
|
15
|
+
import { T as modelsForDescriptor, h as BUILTIN_PROVIDERS, i as readCredentials, r as credentialsPath, t as detectAuth, v as credKeyOf } from "./auth-CNetxyJH.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 { C_ as TurnUsage, Hg as PromptPart, O_ as ToolDef, Xi as AgentOptions, Zg as SessionContentBlock, jg as McpServerConfig, m_ as ToolResultContent, mg as AgentBehavior, nv as Session, ov as SessionStore, qi as Agent, t as Preset, ym as Provider } from "./index-
|
|
1
|
+
import { C_ as TurnUsage, Hg as PromptPart, O_ as ToolDef, Xi as AgentOptions, Zg as SessionContentBlock, jg as McpServerConfig, m_ as ToolResultContent, mg as AgentBehavior, nv as Session, ov as SessionStore, qi as Agent, t as Preset, ym as Provider } from "./index-BIJKozYj.js";
|
|
2
2
|
import { m as ExecutionContext } from "./isolation-Kfoof0MM.js";
|
|
3
3
|
import { Readable, Writable } from "node:stream";
|
|
4
4
|
|
package/dist/acp.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { n as JsonRpcRemoteError, r as createJsonRpcConnection } from "./json-rpc-rSWMUh9b.js";
|
|
2
|
-
import { a as wrapToolsForAcpClient, c as sessionBlocksToAcp, 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-
|
|
2
|
+
import { a as wrapToolsForAcpClient, c as sessionBlocksToAcp, 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-DbYGzaVK.js";
|
|
3
3
|
export { AcpProtocolError, JsonRpcRemoteError, acpMcpServersToZidane, acpPromptToPromptParts, createAcpServer, createJsonRpcConnection, runAcpStdioServer, sessionBlocksToAcp, stopReasonFromRun, toolResultToAcpContent, withAcpDefaultTools, wrapToolsForAcpClient };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
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, w as fillEstimatedCost, z as rewriteContentToCanonical } from "./openai-compat-Dy56weK8.js";
|
|
2
2
|
import { a as documentBlockMarker, c as toolOutputBudgetByteLength, l as toolOutputByteLength, o as isWireTurn, s as sanitizeToolResultMetadata, t as DEFAULT_AGENT_CLOCK, u as toolResultToText } from "./types-CWgENVLY.js";
|
|
3
|
-
import {
|
|
3
|
+
import { c as isReservedCredKey, d as buildContextSegments, f as buildContextBreakdown, g as styleReplacementForVia, h as stripLineNumberPrefixes, m as resolveOldString, p as describeVia } from "./cred-keys-BbbBr4q3.js";
|
|
4
4
|
import { n as estimateTokens, r as utf8ByteLength } from "./utils-ngQzYzZD.js";
|
|
5
5
|
import { a as formatDuration, c as previewLine, o as formatTaskStatus, s as formatTaskSummary } from "./format-BF745pLL.js";
|
|
6
6
|
import { r as createProcessContext, t as resolveDetachedTasksCapability } from "./contexts-CRE9pw07.js";
|
|
@@ -2843,55 +2843,6 @@ function registerExtensionHostModules(modules) {
|
|
|
2843
2843
|
});
|
|
2844
2844
|
}
|
|
2845
2845
|
//#endregion
|
|
2846
|
-
//#region src/chat/cred-keys.ts
|
|
2847
|
-
/**
|
|
2848
|
-
* Credential-file key arithmetic, split from `./credentials` so the rules can
|
|
2849
|
-
* be enforced where credentials themselves must not be pulled in.
|
|
2850
|
-
*
|
|
2851
|
-
* `./credentials` reaches the provider registry (and through it the pi-ai
|
|
2852
|
-
* factories) for `credKeyOf`; the extension loader — an edge entrypoint that
|
|
2853
|
-
* validates descriptor keys at registration time — must stay clear of that
|
|
2854
|
-
* graph. This module is string arithmetic with no imports.
|
|
2855
|
-
*/
|
|
2856
|
-
/**
|
|
2857
|
-
* Reserved suffix marking a provider's SECOND credential slot.
|
|
2858
|
-
*
|
|
2859
|
-
* Not usable as (or as the tail of) a descriptor's credential key: `foo#alt`
|
|
2860
|
-
* holds `foo`'s alternate credential, so a provider claiming that name would
|
|
2861
|
-
* share storage with it.
|
|
2862
|
-
*/
|
|
2863
|
-
const ALTERNATE_CRED_KEY_SUFFIX = "#alt";
|
|
2864
|
-
/**
|
|
2865
|
-
* File key holding a provider's second credential, when it has one of each kind.
|
|
2866
|
-
*
|
|
2867
|
-
* The canonical key always holds the credential the user prefers; this sibling
|
|
2868
|
-
* holds the other. That one invariant is what makes preference selection free:
|
|
2869
|
-
* every existing reader (`applyApiKeyEnv`, the harness provider factories)
|
|
2870
|
-
* already resolves the canonical key, so "switch priority" is just moving two
|
|
2871
|
-
* objects between two keys — no precedence flag to interpret, no resolution
|
|
2872
|
-
* order to keep in sync across layers.
|
|
2873
|
-
*
|
|
2874
|
-
* A sibling key rather than a nested field because the canonical entry gets
|
|
2875
|
-
* REPLACED wholesale on token refresh; anything nested inside it would be
|
|
2876
|
-
* dropped by the next rotation. And older zidane versions look credentials up
|
|
2877
|
-
* by `credKeyOf`, so a suffixed key is simply invisible to them — they read the
|
|
2878
|
-
* preferred credential and behave exactly as before, which is why this needs no
|
|
2879
|
-
* migration or schema version.
|
|
2880
|
-
*/
|
|
2881
|
-
function alternateCredKey(fileKey) {
|
|
2882
|
-
return `${fileKey}${ALTERNATE_CRED_KEY_SUFFIX}`;
|
|
2883
|
-
}
|
|
2884
|
-
/**
|
|
2885
|
-
* True when a key claims the reserved alternate namespace.
|
|
2886
|
-
*
|
|
2887
|
-
* Built-in keys are plain identifiers (`anthropic`, `openai-codex`), but
|
|
2888
|
-
* `ProviderDescriptor.key` / `credentialFileKey` are open strings — so the
|
|
2889
|
-
* reservation is checked, not assumed.
|
|
2890
|
-
*/
|
|
2891
|
-
function isReservedCredKey(fileKey) {
|
|
2892
|
-
return fileKey.endsWith(ALTERNATE_CRED_KEY_SUFFIX);
|
|
2893
|
-
}
|
|
2894
|
-
//#endregion
|
|
2895
2846
|
//#region src/chat/keybindings.ts
|
|
2896
2847
|
/**
|
|
2897
2848
|
* Keybindings — a single source of truth for the app's global shortcuts.
|
|
@@ -8475,7 +8426,7 @@ function makeContext(opts) {
|
|
|
8475
8426
|
}
|
|
8476
8427
|
const credKey = descriptor.credentialFileKey ?? descriptor.key;
|
|
8477
8428
|
if (isReservedCredKey(credKey)) {
|
|
8478
|
-
logger.warn(`registerProvider: refused reserved credential key "${credKey}" ("
|
|
8429
|
+
logger.warn(`registerProvider: refused reserved credential key "${credKey}" ("#" separates a provider's extra credential slots)`);
|
|
8479
8430
|
return;
|
|
8480
8431
|
}
|
|
8481
8432
|
sinks.providers[descriptor.key] = descriptor;
|
|
@@ -18470,6 +18421,6 @@ function createAgent(rawOptions) {
|
|
|
18470
18421
|
};
|
|
18471
18422
|
}
|
|
18472
18423
|
//#endregion
|
|
18473
|
-
export { ExtensionInstallError as $,
|
|
18424
|
+
export { ExtensionInstallError as $, defaultRepeatGuardTracked as $n, DEFAULT_KEYBINDINGS as $t, buildPostCompactAttachments as A, resolveExtensionConfigValue as An, reserveChildLabel as At, buildFullCompactPrompt as B, fileKind as Bn, multiEdit as Bt, rehomePersistedStubs as C, setDebugLogSink as Cn, basic_default as Ct, resolvePersistDir as D, isValidExtensionConfigItem as Dn, createToolSearchTool as Dt, resolveMcpWarningsDir as E, coerceExtensionConfigInput as En, waitTask as Et, BASE_INSTRUCTIONS as F, serializedPayloadBytes as Fn, createShellTool as Ft, sliceForCompaction as G, renderArtifactRow as Gn, createInteractionTool as Gt, buildUpToCompactPrompt as H, parseShortstat as Hn, formatModelLine as Ht, NO_TOOLS_PREAMBLE as I, BUILTIN_ARTIFACT_KINDS as In, shell as It, truncateHeadForPtlRetry as J, AUTO_COMPACT_MIN_GROWTH_FRACTION as Jn, edit as Jt, stripImagesFromTurns as K, resolveArtifactKind as Kn, grep as Kt, TRAILER as L, artifactKindLabel as Ln, tailTruncate as Lt, selectFilesFromSession as M, toWireConfigSchema as Mn, createSkillsRunScriptTool as Mt, selectRecentFiles as N, EXTENSION_BUS_MAX_PAYLOAD_BYTES as Nn, createSkillsReadTool as Nt, resolveSessionDir as O, isValidExtensionConfigValue as On, createSpawnTool as Ot, compactConversation as P, createExtensionBus as Pn, shellKill as Pt, createExtensionPromptBridge as Q, defaultRepeatGuardNormalize as Qn, recordArtifact as Qt, buildCompactPrompt as R, branchKind as Rn, readFile$1 as Rt, migrateSessionArtifactDirs as S, createDebugLog as Sn, basicTools as St, resolveLegacySessionDir as T, clampExtensionConfigNumber as Tn, WAIT_TASK_TIMED_OUT_PREFIX as Tt, ANCHOR_PREVIEW_MAX_CHARS as U, pullRequestKind as Un, matchModelEntries as Ut, buildTailCompactPrompt as V, githubTokenSource as Vn, createModelSearchTool as Vt, anchorPreviewFor as W, refreshArtifact as Wn, listFiles as Wt, CompactPromptTooLongError as X, effectiveContextWindow as Xn, artifacts_default as Xt, CompactInvalidInputError as Y, OUTPUT_RESERVE_TOKENS as Yn, validateToolArgs as Yt, EMPTY_EXTENSION_REGISTRY as Z, shouldAutoCompact as Zn, RECORD_ARTIFACT_TOOL as Zt, PERSISTED_STUB_PREFIX as _, discoverExtensions as _n, createArtifactsSurface as _t, stagedToolState as a, groupBindings as an, hydrateReadStateFromSessionAsync as ar, removeInstalledExtension as at, cleanupPersistedSession as b, parseExtensionScanPathEnv as bn, composePresets as bt, INTERRUPT_MESSAGE_FOR_TOOL_USE as c, mergeKeybindings as cn, discoverAndBuildExtensionRegistry as ct, TOOL_USE_SKIPPED_MESSAGE as d, readKeybindingsRaw as dn, composeExtensionPreset as dt, KEYBINDING_DEFS as en, normalizeShellCommand as er, fetchExtensionSource as et, applyCompactSummaryCutoff as f, resolveExtensionKeybindings as fn, disposeExtensionRegistry as ft, unwrapCallTool as g, defaultExtensionScanPaths as gn, partitionExtensionCatalog as gt, CALL_TOOL_NAME as h, ENTRY_CANDIDATES as hn, mergeContributions as ht, isToolStateOps as i, formatBindingForDisplay as in, hydrateReadStateFromSession as ir, readExtensionInstallProvenance as it, selectFilesFromReadState as j, sanitizeExtensionConfigActionPatch as jn, createSkillsUseTool as jt, resolveTasksDir as k, resolveExtensionConfig as kn, isSpawnTool as kt, SHELL_CASCADE_CANCEL_MESSAGE as l, parseBindingSpec as ln, buildExtensionPreset as lt, renderStaleReadNotice as m, registerExtensionHostModules as mn, filterRegistryPlugins as mt, DEFAULT_MAX_VALUE_BYTES as n, KEYBINDING_KEY_COL_WIDTH as nn, getReadState as nr, listExtensionCandidates as nt, normalizeProviders as o, keybindingsPath as on, readStateKey as or, updateInstalledExtension as ot, collectNewlyStaleReadPaths as p, stripJsonComments as pn, filterExtensionRegistry as pt, summaryToTurn as q, createArtifactDetectHook as qn, glob as qt, createToolStateController as r, ensureKeybindingsFile as rn, hashContent as rr, parseExtensionInstallSource as rt, resolveModelTargets as s, matchesBinding as sn, resolveReadStateMap as sr, createExtensionHud as st, createAgent as t, KEYBINDING_DEF_BY_ACTION as tn, stableStringify as tr, installExtensionFromSpec as tt, TOOL_USE_CANCELLED_MESSAGE as u, readKeybindings as un, buildExtensionRegistry as ut, PERSISTENCE_PREVIEW_BYTES as v, inlineLoadedExtension as vn, createExtensionHostRuntimeBridge as vt, resolveLegacyPersistDir as w, defineExtension as wn, writeFile$1 as wt, maybePersistToolResult as x, scanExtensionDirectories as xn, definePreset as xt, buildPersistedStub as y, isExtensionDefinition as yn, createWorkspaceSurface as yt, buildFromCompactPrompt as z, commitKind as zn, looksBinary as zt };
|
|
18474
18425
|
|
|
18475
|
-
//# sourceMappingURL=agent-
|
|
18426
|
+
//# sourceMappingURL=agent-BlGt76qk.js.map
|