zidane 6.1.4 → 6.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-CO1EGSwh.js → acp-D-k-L0DX.js} +2 -2
- package/dist/{acp-CO1EGSwh.js.map → acp-D-k-L0DX.js.map} +1 -1
- package/dist/acp-cli.js +2 -2
- package/dist/acp.d.ts +1 -1
- package/dist/acp.js +1 -1
- package/dist/{agent-CZKpBI1X.js → agent-BJ1NC1pA.js} +47 -8
- package/dist/agent-BJ1NC1pA.js.map +1 -0
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +1 -1
- package/dist/chat/pure.d.ts +3 -3
- package/dist/chat.d.ts +10 -4
- package/dist/chat.d.ts.map +1 -1
- package/dist/chat.js +2 -2
- 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/extensions.d.ts +2 -2
- package/dist/extensions.js +1 -1
- package/dist/generate-data-WL_yGVL6.js.map +1 -1
- package/dist/headless.d.ts +1 -1
- package/dist/headless.js +1 -1
- package/dist/{index-DC9Iy3Vn.d.ts → index-CR6uvJ3m.d.ts} +190 -7
- package/dist/index-CR6uvJ3m.d.ts.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- 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/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/session/sqlite.d.ts +1 -1
- package/dist/session.d.ts +1 -1
- package/dist/skills.d.ts +1 -1
- package/dist/{tool-formatters-D7AQW80Z.d.ts → tool-formatters-D8w27pin.d.ts} +60 -3
- package/dist/tool-formatters-D8w27pin.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 +2 -2
- package/dist/tools.js +1 -1
- package/dist/{transcript-anchors-hv97ejJn.js → transcript-anchors-C8l8zDzs.js} +20 -4
- package/dist/{transcript-anchors-hv97ejJn.js.map → transcript-anchors-C8l8zDzs.js.map} +1 -1
- package/dist/{transcript-anchors-ClIlrGxh.d.ts → transcript-anchors-DtV7fmmw.d.ts} +2 -2
- package/dist/{transcript-anchors-ClIlrGxh.d.ts.map → transcript-anchors-DtV7fmmw.d.ts.map} +1 -1
- package/dist/tui.d.ts +26 -5
- package/dist/tui.d.ts.map +1 -1
- package/dist/tui.js +658 -64
- package/dist/tui.js.map +1 -1
- package/dist/{turn-operations-mvM38tP-.d.ts → turn-operations-BsTP7T1w.d.ts} +4 -61
- package/dist/turn-operations-BsTP7T1w.d.ts.map +1 -0
- package/dist/types.d.ts +1 -1
- package/docs/CHAT.md +2 -0
- package/docs/EXTENSIONS.md +5 -2
- package/docs/INTERACTIONS.md +5 -1
- package/docs/TUI.md +3 -2
- package/package.json +1 -1
- package/dist/agent-CZKpBI1X.js.map +0 -1
- package/dist/index-DC9Iy3Vn.d.ts.map +0 -1
- package/dist/tool-formatters-D7AQW80Z.d.ts.map +0 -1
- package/dist/turn-operations-mvM38tP-.d.ts.map +0 -1
package/dist/acp-cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { Ft as resolveStorageDirs, lt as basic_default } from "./agent-
|
|
2
|
+
import { Ft as resolveStorageDirs, lt as basic_default } from "./agent-BJ1NC1pA.js";
|
|
3
3
|
import { r as createProcessContext } from "./contexts-A4ep-iJs.js";
|
|
4
4
|
import { createSandboxContext } from "./contexts/sandbox.js";
|
|
5
5
|
import { m as openaiCompat } from "./openai-compat-TA7aihJ-.js";
|
|
@@ -10,7 +10,7 @@ import { cerebras } from "./providers/cerebras.js";
|
|
|
10
10
|
import { t as xai } from "./xai-kGdhWmds.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-
|
|
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-D-k-L0DX.js";
|
|
14
14
|
import { f as credKeyOf, i as readCredentials, l as BUILTIN_PROVIDERS, r as credentialsPath, t as detectAuth, y as modelsForDescriptor } from "./auth-D5FfJtLf.js";
|
|
15
15
|
import { createDaytonaProvider } from "./contexts/daytona.js";
|
|
16
16
|
import { createDockerContext } from "./contexts/docker.js";
|
package/dist/acp.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $d as PromptPart, Dd as AgentBehavior, Hd as McpServerConfig, Li as AgentOptions, Lp as Provider, Pf as ToolDef, Pi as Agent, Qf as Session, bf as ToolResultContent, cf as SessionContentBlock, kf as TurnUsage, np as SessionStore, t as Preset } from "./index-CR6uvJ3m.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-D-k-L0DX.js";
|
|
2
2
|
export { AcpProtocolError, JsonRpcRemoteError, acpMcpServersToZidane, acpPromptToPromptParts, createAcpServer, createJsonRpcConnection, runAcpStdioServer, sessionBlocksToAcp, stopReasonFromRun, toolResultToAcpContent, withAcpDefaultTools, wrapToolsForAcpClient };
|
|
@@ -1019,6 +1019,7 @@ function isValidExtensionConfigItem(item) {
|
|
|
1019
1019
|
case "number": return typeof item.default === "number" && Number.isFinite(item.default) && (item.min === void 0 || item.default >= item.min) && (item.max === void 0 || item.default <= item.max);
|
|
1020
1020
|
case "string": return typeof item.default === "string";
|
|
1021
1021
|
case "enum": return typeof item.default === "string" && Array.isArray(item.options) && item.options.length > 0 && item.options.every((o) => o && typeof o.value === "string" && typeof o.label === "string") && item.options.some((o) => o.value === item.default);
|
|
1022
|
+
case "model": return typeof item.default === "string";
|
|
1022
1023
|
default: return unreachableInvalidItem(item);
|
|
1023
1024
|
}
|
|
1024
1025
|
}
|
|
@@ -1057,6 +1058,9 @@ function isValidExtensionConfigValue(item, value) {
|
|
|
1057
1058
|
case "enum":
|
|
1058
1059
|
if (typeof value !== "string" || !item.options.some((o) => o.value === value)) return false;
|
|
1059
1060
|
break;
|
|
1061
|
+
case "model":
|
|
1062
|
+
if (typeof value !== "string") return false;
|
|
1063
|
+
break;
|
|
1060
1064
|
default: return unreachableInvalidItem(item);
|
|
1061
1065
|
}
|
|
1062
1066
|
if (item.validate) try {
|
|
@@ -1110,6 +1114,7 @@ function coerceExtensionConfigInput(item, raw) {
|
|
|
1110
1114
|
return isValidExtensionConfigValue(item, clamped) ? clamped : void 0;
|
|
1111
1115
|
}
|
|
1112
1116
|
case "string": return isValidExtensionConfigValue(item, raw) ? raw : void 0;
|
|
1117
|
+
case "model": return isValidExtensionConfigValue(item, raw) ? raw : void 0;
|
|
1113
1118
|
default: return;
|
|
1114
1119
|
}
|
|
1115
1120
|
}
|
|
@@ -5115,7 +5120,8 @@ function buildSpawnTool(options, state) {
|
|
|
5115
5120
|
type: "string",
|
|
5116
5121
|
description: buildModelFieldDescription(modelCatalog)
|
|
5117
5122
|
} } : {};
|
|
5118
|
-
|
|
5123
|
+
const tool = {
|
|
5124
|
+
maxConcurrent,
|
|
5119
5125
|
get children() {
|
|
5120
5126
|
return localChildren;
|
|
5121
5127
|
},
|
|
@@ -5165,6 +5171,9 @@ function buildSpawnTool(options, state) {
|
|
|
5165
5171
|
}
|
|
5166
5172
|
},
|
|
5167
5173
|
async execute(input, ctx) {
|
|
5174
|
+
return (await tool.runTask(input, ctx)).message;
|
|
5175
|
+
},
|
|
5176
|
+
async runTask(input, ctx) {
|
|
5168
5177
|
const task = input.task;
|
|
5169
5178
|
const systemOverride = input.system;
|
|
5170
5179
|
const requestedSubagentType = typeof input.subagent_type === "string" ? input.subagent_type : void 0;
|
|
@@ -5173,7 +5182,11 @@ function buildSpawnTool(options, state) {
|
|
|
5173
5182
|
if (requestedModel && modelCatalog && !modelCatalog.some((e) => e.model.id === requestedModel)) {
|
|
5174
5183
|
const near = matchModelEntries(modelCatalog, requestedModel).slice(0, 8);
|
|
5175
5184
|
const shown = near.length > 0 ? near : modelCatalog.slice(0, 8);
|
|
5176
|
-
return
|
|
5185
|
+
return {
|
|
5186
|
+
status: "rejected",
|
|
5187
|
+
text: "",
|
|
5188
|
+
message: `Cannot spawn: unknown model "${requestedModel}". ${near.length > 0 ? "Closest matches" : "Available"}: ${shown.map((e) => e.model.id).join(", ")}${modelCatalog.length > shown.length ? ` … (${modelCatalog.length} total — use model_search to browse)` : ""}`
|
|
5189
|
+
};
|
|
5177
5190
|
}
|
|
5178
5191
|
const chosenModelId = requestedModel ?? subagentDef?.model ?? options.model;
|
|
5179
5192
|
let childProvider = ctx.provider;
|
|
@@ -5181,16 +5194,32 @@ function buildSpawnTool(options, state) {
|
|
|
5181
5194
|
if (chosenEntry) {
|
|
5182
5195
|
const routed = resolveProviderByName(chosenEntry.provider, ctx);
|
|
5183
5196
|
if (routed) childProvider = routed;
|
|
5184
|
-
else if (requestedModel !== void 0) return
|
|
5197
|
+
else if (requestedModel !== void 0) return {
|
|
5198
|
+
status: "rejected",
|
|
5199
|
+
text: "",
|
|
5200
|
+
message: `Cannot spawn: model "${chosenModelId}" is served by provider "${chosenEntry.provider}", which is not available in this run. Pick a model from an available provider${modelCatalog && modelCatalog.length > EMBEDDED_CATALOG_MAX ? " (use model_search)" : ""}.`
|
|
5201
|
+
};
|
|
5185
5202
|
}
|
|
5186
5203
|
const inheritedModel = childProvider === ctx.provider ? ctx.model : void 0;
|
|
5187
5204
|
const childModel = chosenModelId ?? inheritedModel;
|
|
5188
5205
|
const announcedModel = childModel ?? childProvider.meta.defaultModel;
|
|
5189
5206
|
const parentDepth = ctx.depth ?? 0;
|
|
5190
5207
|
const childDepth = parentDepth + 1;
|
|
5191
|
-
if (childDepth > maxDepth) return
|
|
5192
|
-
|
|
5193
|
-
|
|
5208
|
+
if (childDepth > maxDepth) return {
|
|
5209
|
+
status: "rejected",
|
|
5210
|
+
text: "",
|
|
5211
|
+
message: `Cannot spawn: maxDepth=${maxDepth} reached (parent depth=${parentDepth}). Deepen the cap with createSpawnTool({ maxDepth }).`
|
|
5212
|
+
};
|
|
5213
|
+
if (state.activeCount >= maxConcurrent) return {
|
|
5214
|
+
status: "rejected",
|
|
5215
|
+
text: "",
|
|
5216
|
+
message: `Cannot spawn: ${state.activeCount}/${maxConcurrent} sub-agents already running. Wait for one to complete.`
|
|
5217
|
+
};
|
|
5218
|
+
if (ctx.signal.aborted) return {
|
|
5219
|
+
status: "aborted",
|
|
5220
|
+
text: "",
|
|
5221
|
+
message: `[sub-agent pre-aborted] Parent signal was already aborted — skipped "${task.slice(0, 80)}"`
|
|
5222
|
+
};
|
|
5194
5223
|
const id = ctx.session ? reserveChildLabel(ctx.session) : `child-${++state.counter}`;
|
|
5195
5224
|
state.activeCount++;
|
|
5196
5225
|
const child = {
|
|
@@ -5204,6 +5233,7 @@ function buildSpawnTool(options, state) {
|
|
|
5204
5233
|
let childRunStatus = "completed";
|
|
5205
5234
|
let finalStats;
|
|
5206
5235
|
let result = "";
|
|
5236
|
+
let responseText = "";
|
|
5207
5237
|
let unbubble;
|
|
5208
5238
|
try {
|
|
5209
5239
|
const filteredTools = subagentDef ? filterToolsForSubagent(ctx.tools, subagentDef) : ctx.tools;
|
|
@@ -5272,6 +5302,7 @@ function buildSpawnTool(options, state) {
|
|
|
5272
5302
|
result = [`[sub-agent ${id}] Aborted after ${treeTurns} turns (${finalStats.elapsed}ms)`, `Tokens: ${usage}`].join("\n");
|
|
5273
5303
|
} else {
|
|
5274
5304
|
const response = extractText(agent.turns.at(-1));
|
|
5305
|
+
responseText = response ?? "";
|
|
5275
5306
|
result = [
|
|
5276
5307
|
`[sub-agent ${id}] Completed in ${treeTurns} turns (${finalStats.elapsed}ms)`,
|
|
5277
5308
|
`Tokens: ${usage}`,
|
|
@@ -5368,7 +5399,13 @@ function buildSpawnTool(options, state) {
|
|
|
5368
5399
|
provider: childProvider.name,
|
|
5369
5400
|
error: destroyError
|
|
5370
5401
|
});
|
|
5371
|
-
return
|
|
5402
|
+
return {
|
|
5403
|
+
id,
|
|
5404
|
+
status: childRunStatus,
|
|
5405
|
+
text: responseText,
|
|
5406
|
+
message: result,
|
|
5407
|
+
...finalStats ? { stats: finalStats } : {}
|
|
5408
|
+
};
|
|
5372
5409
|
} finally {
|
|
5373
5410
|
unbubble?.();
|
|
5374
5411
|
state.activeCount--;
|
|
@@ -5376,6 +5413,7 @@ function buildSpawnTool(options, state) {
|
|
|
5376
5413
|
}
|
|
5377
5414
|
}
|
|
5378
5415
|
};
|
|
5416
|
+
return tool;
|
|
5379
5417
|
}
|
|
5380
5418
|
//#endregion
|
|
5381
5419
|
//#region src/tools/tool-search.ts
|
|
@@ -6954,6 +6992,7 @@ function makeContext(opts) {
|
|
|
6954
6992
|
submitPrompt: (text, submitOpts) => promptBridge?.submit(text, submitOpts) ?? false,
|
|
6955
6993
|
runtime: {
|
|
6956
6994
|
model: () => hostRuntime?.current()?.model() ?? null,
|
|
6995
|
+
models: () => hostRuntime?.current()?.models?.() ?? [],
|
|
6957
6996
|
thinking: () => hostRuntime?.current()?.thinking() ?? null,
|
|
6958
6997
|
setThinking: (level) => hostRuntime?.current()?.setThinking(level) ?? false
|
|
6959
6998
|
},
|
|
@@ -14677,4 +14716,4 @@ function createAgent(rawOptions) {
|
|
|
14677
14716
|
//#endregion
|
|
14678
14717
|
export { composeExtensionPreset as $, discoverExtensions as $t, ANCHOR_PREVIEW_MAX_CHARS as A, createInteractionTool as At, ExtensionInstallError as B, ensureKeybindingsFile as Bt, NO_TOOLS_PREAMBLE as C, readFile$1 as Ct, buildFullCompactPrompt as D, formatModelLine as Dt, buildFromCompactPrompt as E, createModelSearchTool as Et, truncateHeadForPtlRetry as F, resolveStorageDirs as Ft, readExtensionInstallProvenance as G, mergeKeybindings as Gt, installExtensionFromSpec as H, groupBindings as Ht, CompactInvalidInputError as I, DEFAULT_KEYBINDINGS as It, createExtensionHud as J, readKeybindingsRaw as Jt, removeInstalledExtension as K, parseBindingSpec as Kt, CompactPromptTooLongError as L, KEYBINDING_DEFS as Lt, sliceForCompaction as M, glob as Mt, stripImagesFromTurns as N, edit as Nt, buildTailCompactPrompt as O, matchModelEntries as Ot, summaryToTurn as P, validateToolArgs as Pt, buildExtensionRegistry as Q, defaultExtensionScanPaths as Qt, EMPTY_EXTENSION_REGISTRY as R, KEYBINDING_DEF_BY_ACTION as Rt, BASE_INSTRUCTIONS as S, tailTruncate as St, buildCompactPrompt as T, multiEdit as Tt, listExtensionCandidates as U, keybindingsPath as Ut, fetchExtensionSource as V, formatBindingForDisplay as Vt, parseExtensionInstallSource as W, matchesBinding as Wt, discoverAndBuildExtensionRegistry as X, stripJsonComments as Xt, registerExtensionHostModules as Y, resolveExtensionKeybindings as Yt, buildExtensionPreset as Z, ENTRY_CANDIDATES as Zt, buildPostCompactAttachments as _, defaultRepeatGuardTracked as _n, createSkillsRunScriptTool as _t, SHELL_CASCADE_CANCEL_MESSAGE as a, clampExtensionConfigNumber as an, createWorkspaceSurface as at, selectRecentFiles as b, createShellTool as bt, applyCompactSummaryCutoff as c, isValidExtensionConfigValue as cn, basicTools as ct, buildPersistedStub as d, toWireConfigSchema as dn, WAIT_TASK_TIMED_OUT_PREFIX as dt, inlineLoadedExtension as en, disposeExtensionRegistry as et, cleanupPersistedSession as f, AUTO_COMPACT_MIN_GROWTH_FRACTION as fn, waitTask as ft, resolveTasksDir as g, defaultRepeatGuardNormalize as gn, createSkillsUseTool as gt, resolvePersistDir as h, shouldAutoCompact as hn, isSpawnTool as ht, INTERRUPT_MESSAGE_FOR_TOOL_USE as i, defineExtension as in, createExtensionHostRuntimeBridge as it, anchorPreviewFor as j, grep as jt, buildUpToCompactPrompt as k, listFiles as kt, PERSISTED_STUB_PREFIX as l, resolveExtensionConfig as ln, basic_default as lt, resolveMcpWarningsDir as m, effectiveContextWindow as mn, createSpawnTool as mt, normalizeProviders as n, parseExtensionScanPathEnv as nn, mergeContributions as nt, TOOL_USE_CANCELLED_MESSAGE as o, coerceExtensionConfigInput as on, composePresets as ot, maybePersistToolResult as p, OUTPUT_RESERVE_TOKENS as pn, createToolSearchTool as pt, updateInstalledExtension as q, readKeybindings as qt, resolveModelTargets as r, scanExtensionDirectories as rn, partitionExtensionCatalog as rt, TOOL_USE_SKIPPED_MESSAGE as s, isValidExtensionConfigItem as sn, definePreset as st, createAgent as t, isExtensionDefinition as tn, filterExtensionRegistry as tt, PERSISTENCE_PREVIEW_BYTES as u, resolveExtensionConfigValue as un, writeFile$1 as ut, selectFilesFromReadState as v, normalizeShellCommand as vn, createSkillsReadTool as vt, TRAILER as w, looksBinary as wt, compactConversation as x, shell as xt, selectFilesFromSession as y, stableStringify as yn, shellKill as yt, createExtensionPromptBridge as z, KEYBINDING_KEY_COL_WIDTH as zt };
|
|
14679
14718
|
|
|
14680
|
-
//# sourceMappingURL=agent-
|
|
14719
|
+
//# sourceMappingURL=agent-BJ1NC1pA.js.map
|