zidane 6.2.33 → 6.2.35
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-DlgMFlUN.js → acp-DZNCQaTQ.js} +4 -4
- package/dist/{acp-DlgMFlUN.js.map → acp-DZNCQaTQ.js.map} +1 -1
- package/dist/acp-cli.js +6 -6
- package/dist/acp.d.ts +1 -1
- package/dist/acp.js +1 -1
- package/dist/{agent-CdnYdiRY.js → agent-CrPwqpLI.js} +40 -36
- package/dist/agent-CrPwqpLI.js.map +1 -0
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +1 -1
- package/dist/{anthropic--S5Wg4Oy.js → anthropic-asnZVFS_.js} +161 -64
- package/dist/anthropic-asnZVFS_.js.map +1 -0
- package/dist/{auth-up7hgE9H.js → auth-C5YTniaq.js} +4 -4
- package/dist/{auth-up7hgE9H.js.map → auth-C5YTniaq.js.map} +1 -1
- package/dist/chat/pure.d.ts +3 -3
- package/dist/chat.d.ts +4 -4
- package/dist/chat.js +3 -3
- 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-LLXx0VRf.d.ts → index-CohO0oaX.d.ts} +199 -2
- package/dist/index-CohO0oaX.d.ts.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -7
- package/dist/index.js.map +1 -1
- package/dist/mcp.d.ts +1 -1
- package/dist/{messages-t5Sv-vyv.js → messages-Cpb4g_KV.js} +2 -2
- package/dist/{messages-t5Sv-vyv.js.map → messages-Cpb4g_KV.js.map} +1 -1
- package/dist/{oauth-8LqbeI_Q.js → oauth-CBi9eymX.js} +83 -6
- package/dist/oauth-CBi9eymX.js.map +1 -0
- package/dist/{openai-compat-pHI0kBWH.js → openai-compat-C77gOaHh.js} +7 -1
- package/dist/openai-compat-C77gOaHh.js.map +1 -0
- package/dist/output/stream-json.d.ts +1 -1
- package/dist/output/terminal.d.ts +1 -1
- package/dist/presets.d.ts +1 -1
- package/dist/presets.js +1 -1
- package/dist/providers/anthropic.d.ts +2 -2
- package/dist/providers/anthropic.js +2 -2
- 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 +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 +3 -3
- 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-D9Y2RndM.js → providers-DnHPW-dL.js} +4 -4
- package/dist/{providers-D9Y2RndM.js.map → providers-DnHPW-dL.js.map} +1 -1
- package/dist/providers.d.ts +2 -2
- package/dist/providers.js +6 -5
- package/dist/restate.d.ts +1 -1
- package/dist/session/sqlite.d.ts +1 -1
- package/dist/{session-DtRtNDBz.js → session-DpDBnktP.js} +2 -2
- package/dist/{session-DtRtNDBz.js.map → session-DpDBnktP.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-DtUL8zcF.d.ts → tool-formatters-bZYz74qU.d.ts} +2 -2
- package/dist/{tool-formatters-DtUL8zcF.d.ts.map → tool-formatters-bZYz74qU.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-Cmn6Apac.d.ts → transcript-anchors-EBchHUMo.d.ts} +2 -2
- package/dist/{transcript-anchors-Cmn6Apac.d.ts.map → transcript-anchors-EBchHUMo.d.ts.map} +1 -1
- package/dist/{transcript-anchors-CKkH7rJY.js → transcript-anchors-ZZYwCTjo.js} +7 -3
- package/dist/{transcript-anchors-CKkH7rJY.js.map → transcript-anchors-ZZYwCTjo.js.map} +1 -1
- package/dist/tui.d.ts +3 -3
- package/dist/tui.d.ts.map +1 -1
- package/dist/tui.js +136 -8
- package/dist/tui.js.map +1 -1
- package/dist/{turn-operations-PPSEo4C3.d.ts → turn-operations-DygcPreU.d.ts} +3 -3
- package/dist/{turn-operations-PPSEo4C3.d.ts.map → turn-operations-DygcPreU.d.ts.map} +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/{xai-BwhzoehX.js → xai-B2hIs5We.js} +3 -3
- package/dist/{xai-BwhzoehX.js.map → xai-B2hIs5We.js.map} +1 -1
- package/docs/EXTENSIONS.md +8 -2
- package/package.json +1 -1
- package/dist/agent-CdnYdiRY.js.map +0 -1
- package/dist/anthropic--S5Wg4Oy.js.map +0 -1
- package/dist/index-LLXx0VRf.d.ts.map +0 -1
- package/dist/oauth-8LqbeI_Q.js.map +0 -1
- package/dist/openai-compat-pHI0kBWH.js.map +0 -1
package/dist/acp-cli.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
2
|
+
import { Ft as resolveStorageDirs, lt as basic_default } from "./agent-CrPwqpLI.js";
|
|
3
3
|
import { r as createProcessContext } from "./contexts-o8y5B3Tm.js";
|
|
4
4
|
import { createSandboxContext } from "./contexts/sandbox.js";
|
|
5
|
-
import { m as openaiCompat } from "./openai-compat-
|
|
6
|
-
import { t as anthropic } from "./anthropic
|
|
5
|
+
import { m as openaiCompat } from "./openai-compat-C77gOaHh.js";
|
|
6
|
+
import { t as anthropic } from "./anthropic-asnZVFS_.js";
|
|
7
7
|
import { arcee } from "./providers/arcee.js";
|
|
8
8
|
import { baseten } from "./providers/baseten.js";
|
|
9
9
|
import { cerebras } from "./providers/cerebras.js";
|
|
10
|
-
import { t as xai } from "./xai-
|
|
10
|
+
import { t as xai } from "./xai-B2hIs5We.js";
|
|
11
11
|
import { openai } from "./providers/openai.js";
|
|
12
12
|
import { openrouter } from "./providers/openrouter.js";
|
|
13
|
-
import { d as StartUsageError, f as buildStartLocalOptions, h as startProviderNames, i as withAcpDefaultTools, m as startLocalArgOptions, p as parseStartArgValues, t as runAcpStdioServer } from "./acp-
|
|
14
|
-
import { f as credKeyOf, i as readCredentials, l as BUILTIN_PROVIDERS, r as credentialsPath, t as detectAuth, y as modelsForDescriptor } from "./auth-
|
|
13
|
+
import { d as StartUsageError, f as buildStartLocalOptions, h as startProviderNames, i as withAcpDefaultTools, m as startLocalArgOptions, p as parseStartArgValues, t as runAcpStdioServer } from "./acp-DZNCQaTQ.js";
|
|
14
|
+
import { f as credKeyOf, i as readCredentials, l as BUILTIN_PROVIDERS, r as credentialsPath, t as detectAuth, y as modelsForDescriptor } from "./auth-C5YTniaq.js";
|
|
15
15
|
import { createDaytonaProvider } from "./contexts/daytona.js";
|
|
16
16
|
import { createDockerContext } from "./contexts/docker.js";
|
|
17
17
|
import { createE2BProvider } from "./contexts/e2b.js";
|
package/dist/acp.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ef as SessionContentBlock, Gd as AgentBehavior, Qf as ToolDef, Rf as ToolResultContent, Sm as Provider, Wi as Agent, _f as PromptPart, _p as Session, of as McpServerConfig, qf as TurnUsage, qi as AgentOptions, t as Preset, xp as SessionStore } from "./index-
|
|
1
|
+
import { Ef as SessionContentBlock, Gd as AgentBehavior, Qf as ToolDef, Rf as ToolResultContent, Sm as Provider, Wi as Agent, _f as PromptPart, _p as Session, of as McpServerConfig, qf as TurnUsage, qi as AgentOptions, t as Preset, xp as SessionStore } from "./index-CohO0oaX.js";
|
|
2
2
|
import { c as ExecutionContext } from "./types-BDccavwj.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-DZNCQaTQ.js";
|
|
2
2
|
export { AcpProtocolError, JsonRpcRemoteError, acpMcpServersToZidane, acpPromptToPromptParts, createAcpServer, createJsonRpcConnection, runAcpStdioServer, sessionBlocksToAcp, stopReasonFromRun, toolResultToAcpContent, withAcpDefaultTools, wrapToolsForAcpClient };
|
|
@@ -15,10 +15,10 @@ import { n as writeFileAtomicAsync, t as writeFileAtomic } from "./atomic-write-
|
|
|
15
15
|
import { r as createLogger, t as consoleSink } from "./logger-DBX9uYOw.js";
|
|
16
16
|
import { n as reconcileImageMediaType } from "./media-sniff-Bn76JxAu.js";
|
|
17
17
|
import { n as connectMcpServers, o as nonOwningMcpView, r as deriveMcpToolMeta, u as wrapDiscoveredMcpTools } from "./mcp-Ct5tF4oj.js";
|
|
18
|
-
import { C as canonicalizePrompt, S as buildPromptMessage } from "./openai-compat-
|
|
18
|
+
import { C as canonicalizePrompt, S as buildPromptMessage } from "./openai-compat-C77gOaHh.js";
|
|
19
19
|
import { appendStaticSection, renderSystemForWire } from "./prompt.js";
|
|
20
|
-
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-
|
|
21
|
-
import { a as getExtensionSessionState, c as setExtensionSessionState, l as withExtensionSession, n as currentExtensionSession, r as deleteExtensionSessionState, s as resumeChainRunIds } from "./session-
|
|
20
|
+
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-Cpb4g_KV.js";
|
|
21
|
+
import { a as getExtensionSessionState, c as setExtensionSessionState, l as withExtensionSession, n as currentExtensionSession, r as deleteExtensionSessionState, s as resumeChainRunIds } from "./session-DpDBnktP.js";
|
|
22
22
|
import { n as flattenTurns, r as formatTokenUsage, t as effectiveInputFromTurn } from "./stats-DAKBEKjc.js";
|
|
23
23
|
import { a as withInactivityTimeout, i as settleWithinTimeout, n as linkAbortSignal, o as withTimeout$1, r as resolveTimeoutMs, t as OperationTimeoutError } from "./timeout-BDetbuN6.js";
|
|
24
24
|
import { createRequire } from "node:module";
|
|
@@ -1657,6 +1657,37 @@ function debugLog(label, err) {
|
|
|
1657
1657
|
if (process.env.ZIDANE_DEBUG) process.stderr.write(`[zidane/extensions] ${label}: ${errorMessage(err)}\n`);
|
|
1658
1658
|
}
|
|
1659
1659
|
//#endregion
|
|
1660
|
+
//#region src/extensions/host-modules.ts
|
|
1661
|
+
const registered = /* @__PURE__ */ new Set();
|
|
1662
|
+
/**
|
|
1663
|
+
* Map bare import specifiers to the host's live module objects for every
|
|
1664
|
+
* subsequently-imported module (extensions included). No-op outside Bun
|
|
1665
|
+
* and for already-registered specifiers. Call BEFORE the first extension
|
|
1666
|
+
* import (the TUI does, at startup).
|
|
1667
|
+
*/
|
|
1668
|
+
function registerExtensionHostModules(modules) {
|
|
1669
|
+
const bun = globalThis.Bun;
|
|
1670
|
+
if (typeof bun?.plugin !== "function") return;
|
|
1671
|
+
const fresh = Object.entries(modules).filter(([specifier]) => !registered.has(specifier));
|
|
1672
|
+
if (fresh.length === 0) return;
|
|
1673
|
+
for (const [specifier] of fresh) registered.add(specifier);
|
|
1674
|
+
bun.plugin({
|
|
1675
|
+
name: `zidane-host-modules(${fresh.map(([s]) => s).join(",")})`,
|
|
1676
|
+
setup(build) {
|
|
1677
|
+
for (const [specifier, source] of fresh) build.module(specifier, async () => {
|
|
1678
|
+
const mod = typeof source === "function" ? await source() : source;
|
|
1679
|
+
return {
|
|
1680
|
+
exports: {
|
|
1681
|
+
...mod,
|
|
1682
|
+
default: mod.default ?? mod
|
|
1683
|
+
},
|
|
1684
|
+
loader: "object"
|
|
1685
|
+
};
|
|
1686
|
+
});
|
|
1687
|
+
}
|
|
1688
|
+
});
|
|
1689
|
+
}
|
|
1690
|
+
//#endregion
|
|
1660
1691
|
//#region src/chat/keybindings.ts
|
|
1661
1692
|
/**
|
|
1662
1693
|
* Keybindings — a single source of truth for the app's global shortcuts.
|
|
@@ -7373,6 +7404,10 @@ function resolveContextPaths(options) {
|
|
|
7373
7404
|
* live filtering), so both ride the same inactive-classification path.
|
|
7374
7405
|
*/
|
|
7375
7406
|
async function discoverAndBuildExtensionRegistry(opts = {}) {
|
|
7407
|
+
registerExtensionHostModules({
|
|
7408
|
+
"zidane": () => import("./index.js"),
|
|
7409
|
+
"zidane/providers": () => import("./providers.js")
|
|
7410
|
+
});
|
|
7376
7411
|
const candidates = [...await discoverExtensions({
|
|
7377
7412
|
...opts.cwd !== void 0 ? { cwd: opts.cwd } : {},
|
|
7378
7413
|
...opts.home !== void 0 ? { home: opts.home } : {},
|
|
@@ -7395,37 +7430,6 @@ async function discoverAndBuildExtensionRegistry(opts = {}) {
|
|
|
7395
7430
|
});
|
|
7396
7431
|
}
|
|
7397
7432
|
//#endregion
|
|
7398
|
-
//#region src/extensions/host-modules.ts
|
|
7399
|
-
const registered = /* @__PURE__ */ new Set();
|
|
7400
|
-
/**
|
|
7401
|
-
* Map bare import specifiers to the host's live module objects for every
|
|
7402
|
-
* subsequently-imported module (extensions included). No-op outside Bun
|
|
7403
|
-
* and for already-registered specifiers. Call BEFORE the first extension
|
|
7404
|
-
* import (the TUI does, at startup).
|
|
7405
|
-
*/
|
|
7406
|
-
function registerExtensionHostModules(modules) {
|
|
7407
|
-
const bun = globalThis.Bun;
|
|
7408
|
-
if (typeof bun?.plugin !== "function") return;
|
|
7409
|
-
const fresh = Object.entries(modules).filter(([specifier]) => !registered.has(specifier));
|
|
7410
|
-
if (fresh.length === 0) return;
|
|
7411
|
-
for (const [specifier] of fresh) registered.add(specifier);
|
|
7412
|
-
bun.plugin({
|
|
7413
|
-
name: `zidane-host-modules(${fresh.map(([s]) => s).join(",")})`,
|
|
7414
|
-
setup(build) {
|
|
7415
|
-
for (const [specifier, source] of fresh) build.module(specifier, async () => {
|
|
7416
|
-
const mod = typeof source === "function" ? await source() : source;
|
|
7417
|
-
return {
|
|
7418
|
-
exports: {
|
|
7419
|
-
...mod,
|
|
7420
|
-
default: mod.default ?? mod
|
|
7421
|
-
},
|
|
7422
|
-
loader: "object"
|
|
7423
|
-
};
|
|
7424
|
-
});
|
|
7425
|
-
}
|
|
7426
|
-
});
|
|
7427
|
-
}
|
|
7428
|
-
//#endregion
|
|
7429
7433
|
//#region src/extensions/hud.ts
|
|
7430
7434
|
const MAX_BUFFERED_NOTIFICATIONS = 20;
|
|
7431
7435
|
function createExtensionHud() {
|
|
@@ -15528,6 +15532,6 @@ function createAgent(rawOptions) {
|
|
|
15528
15532
|
};
|
|
15529
15533
|
}
|
|
15530
15534
|
//#endregion
|
|
15531
|
-
export {
|
|
15535
|
+
export { composeExtensionPreset as $, defaultExtensionScanPaths as $t, buildUpToCompactPrompt as A, createInteractionTool as At, createExtensionPromptBridge as B, ensureKeybindingsFile as Bt, BASE_INSTRUCTIONS as C, readFile$1 as Ct, buildFromCompactPrompt as D, formatModelLine as Dt, buildCompactPrompt as E, createModelSearchTool as Et, summaryToTurn as F, resolveStorageDirs as Ft, parseExtensionInstallSource as G, mergeKeybindings as Gt, fetchExtensionSource as H, groupBindings as Ht, truncateHeadForPtlRetry as I, DEFAULT_KEYBINDINGS as It, updateInstalledExtension as J, readKeybindingsRaw as Jt, readExtensionInstallProvenance as K, parseBindingSpec as Kt, CompactInvalidInputError as L, KEYBINDING_DEFS as Lt, anchorPreviewFor as M, glob as Mt, sliceForCompaction as N, edit as Nt, buildFullCompactPrompt as O, matchModelEntries as Ot, stripImagesFromTurns as P, validateToolArgs as Pt, buildExtensionRegistry as Q, ENTRY_CANDIDATES as Qt, CompactPromptTooLongError as R, KEYBINDING_DEF_BY_ACTION as Rt, compactConversation as S, tailTruncate as St, TRAILER as T, multiEdit as Tt, installExtensionFromSpec as U, keybindingsPath as Ut, ExtensionInstallError as V, formatBindingForDisplay as Vt, listExtensionCandidates as W, matchesBinding as Wt, discoverAndBuildExtensionRegistry as X, stripJsonComments as Xt, createExtensionHud as Y, resolveExtensionKeybindings as Yt, buildExtensionPreset as Z, registerExtensionHostModules as Zt, resolveTasksDir as _, shouldAutoCompact as _n, createSkillsRunScriptTool as _t, SHELL_CASCADE_CANCEL_MESSAGE as a, defineExtension as an, createWorkspaceSurface as at, selectFilesFromSession as b, normalizeShellCommand as bn, createShellTool as bt, applyCompactSummaryCutoff as c, isValidExtensionConfigItem as cn, basicTools as ct, buildPersistedStub as d, resolveExtensionConfigValue as dn, WAIT_TASK_TIMED_OUT_PREFIX as dt, discoverExtensions as en, disposeExtensionRegistry as et, cleanupPersistedSession as f, sanitizeExtensionConfigActionPatch as fn, waitTask as ft, resolvePersistDir as g, effectiveContextWindow as gn, createSkillsUseTool as gt, resolveMcpWarningsDir as h, OUTPUT_RESERVE_TOKENS as hn, isSpawnTool as ht, INTERRUPT_MESSAGE_FOR_TOOL_USE as i, scanExtensionDirectories as in, createExtensionHostRuntimeBridge as it, ANCHOR_PREVIEW_MAX_CHARS as j, grep as jt, buildTailCompactPrompt as k, listFiles as kt, PERSISTED_STUB_PREFIX as l, isValidExtensionConfigValue as ln, basic_default as lt, rehomePersistedStubs as m, AUTO_COMPACT_MIN_GROWTH_FRACTION as mn, createSpawnTool as mt, normalizeProviders as n, isExtensionDefinition as nn, mergeContributions as nt, TOOL_USE_CANCELLED_MESSAGE as o, clampExtensionConfigNumber as on, composePresets as ot, maybePersistToolResult as p, toWireConfigSchema as pn, createToolSearchTool as pt, removeInstalledExtension as q, readKeybindings as qt, resolveModelTargets as r, parseExtensionScanPathEnv as rn, partitionExtensionCatalog as rt, TOOL_USE_SKIPPED_MESSAGE as s, coerceExtensionConfigInput as sn, definePreset as st, createAgent as t, inlineLoadedExtension as tn, filterExtensionRegistry as tt, PERSISTENCE_PREVIEW_BYTES as u, resolveExtensionConfig as un, writeFile$1 as ut, buildPostCompactAttachments as v, defaultRepeatGuardNormalize as vn, createSkillsReadTool as vt, NO_TOOLS_PREAMBLE as w, looksBinary as wt, selectRecentFiles as x, stableStringify as xn, shell as xt, selectFilesFromReadState as y, defaultRepeatGuardTracked as yn, shellKill as yt, EMPTY_EXTENSION_REGISTRY as z, KEYBINDING_KEY_COL_WIDTH as zt };
|
|
15532
15536
|
|
|
15533
|
-
//# sourceMappingURL=agent-
|
|
15537
|
+
//# sourceMappingURL=agent-CrPwqpLI.js.map
|