zidane 6.2.31 → 6.2.33
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-C04z4yA7.js → acp-DlgMFlUN.js} +3 -3
- package/dist/{acp-C04z4yA7.js.map → acp-DlgMFlUN.js.map} +1 -1
- package/dist/acp-cli.js +4 -4
- package/dist/acp.d.ts +1 -1
- package/dist/acp.js +1 -1
- package/dist/{agent-CbFirigA.js → agent-CdnYdiRY.js} +127 -28
- package/dist/agent-CdnYdiRY.js.map +1 -0
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +1 -1
- package/dist/{anthropic-fUETpZNm.js → anthropic--S5Wg4Oy.js} +2 -2
- package/dist/{anthropic-fUETpZNm.js.map → anthropic--S5Wg4Oy.js.map} +1 -1
- package/dist/{auth-qXqkD--3.js → auth-up7hgE9H.js} +2 -2
- package/dist/{auth-qXqkD--3.js.map → auth-up7hgE9H.js.map} +1 -1
- package/dist/chat/pure.d.ts +4 -4
- package/dist/chat/pure.js +3 -3
- package/dist/chat.d.ts +112 -5
- package/dist/chat.d.ts.map +1 -1
- package/dist/chat.js +6 -6
- 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-5AFYbHjc.d.ts → index-LLXx0VRf.d.ts} +250 -4
- package/dist/index-LLXx0VRf.d.ts.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -8
- package/dist/{login-CEOlp1r6.js → login-CWwu9Sex.js} +114 -5
- package/dist/login-CWwu9Sex.js.map +1 -0
- package/dist/mcp.d.ts +1 -1
- package/dist/{messages-Dy9t7DbQ.js → messages-t5Sv-vyv.js} +161 -2
- package/dist/{messages-Dy9t7DbQ.js.map → messages-t5Sv-vyv.js.map} +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/anthropic.js +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/openai.js +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/providers.js +1 -1
- package/dist/read-state-rDmfeLmz.js.map +1 -1
- package/dist/restate.d.ts +1 -1
- package/dist/session/sqlite.d.ts +1 -1
- package/dist/{session-DkVnYGm9.js → session-DtRtNDBz.js} +61 -5
- package/dist/session-DtRtNDBz.js.map +1 -0
- package/dist/session.d.ts +2 -2
- package/dist/session.js +3 -3
- package/dist/skills.d.ts +1 -1
- package/dist/{tool-formatters-Dft7YVHI.d.ts → tool-formatters-DtUL8zcF.d.ts} +14 -3
- package/dist/tool-formatters-DtUL8zcF.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-TsFlSKWp.js → transcript-anchors-CKkH7rJY.js} +3330 -2639
- package/dist/transcript-anchors-CKkH7rJY.js.map +1 -0
- package/dist/{transcript-anchors-DcsjjcXp.d.ts → transcript-anchors-Cmn6Apac.d.ts} +12 -3
- package/dist/{transcript-anchors-DcsjjcXp.d.ts.map → transcript-anchors-Cmn6Apac.d.ts.map} +1 -1
- package/dist/tui.d.ts +11 -3
- package/dist/tui.d.ts.map +1 -1
- package/dist/tui.js +241 -805
- package/dist/tui.js.map +1 -1
- package/dist/{turn-operations-4tnvKwfJ.js → turn-operations-CtEpeB_s.js} +99 -3
- package/dist/turn-operations-CtEpeB_s.js.map +1 -0
- package/dist/{turn-operations-ScYurEvl.d.ts → turn-operations-PPSEo4C3.d.ts} +16 -4
- package/dist/turn-operations-PPSEo4C3.d.ts.map +1 -0
- package/dist/types-BIarq1qE.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +1 -1
- package/dist/agent-CbFirigA.js.map +0 -1
- package/dist/index-5AFYbHjc.d.ts.map +0 -1
- package/dist/login-CEOlp1r6.js.map +0 -1
- package/dist/session-DkVnYGm9.js.map +0 -1
- package/dist/tool-formatters-Dft7YVHI.d.ts.map +0 -1
- package/dist/transcript-anchors-TsFlSKWp.js.map +0 -1
- package/dist/turn-operations-4tnvKwfJ.js.map +0 -1
- package/dist/turn-operations-ScYurEvl.d.ts.map +0 -1
|
@@ -1331,6 +1331,102 @@ function buildLinearRamp(from, to, n) {
|
|
|
1331
1331
|
return ramp;
|
|
1332
1332
|
}
|
|
1333
1333
|
//#endregion
|
|
1334
|
+
//#region src/chat/completion-commands.ts
|
|
1335
|
+
/** Trigger character — shared with skills. */
|
|
1336
|
+
const COMMANDS_TRIGGER = "/";
|
|
1337
|
+
/**
|
|
1338
|
+
* Per-catalog fzf instance, keyed on catalog reference identity —
|
|
1339
|
+
* `suggest()` runs per keystroke and `new Fzf(...)` walks the whole
|
|
1340
|
+
* command list to build its match structures. The getter returns a
|
|
1341
|
+
* stable array until a registry rebuild swaps it.
|
|
1342
|
+
*/
|
|
1343
|
+
const fzfByCatalog$2 = /* @__PURE__ */ new WeakMap();
|
|
1344
|
+
function fzfFor$1(catalog) {
|
|
1345
|
+
let fzf = fzfByCatalog$2.get(catalog);
|
|
1346
|
+
if (!fzf) {
|
|
1347
|
+
fzf = new Fzf(catalog, {
|
|
1348
|
+
selector: (c) => c.name,
|
|
1349
|
+
casing: "case-insensitive"
|
|
1350
|
+
});
|
|
1351
|
+
fzfByCatalog$2.set(catalog, fzf);
|
|
1352
|
+
}
|
|
1353
|
+
return fzf;
|
|
1354
|
+
}
|
|
1355
|
+
/** Filter + rank commands against a query (name-priority, then description, then fuzzy on name). */
|
|
1356
|
+
function scoreCommands(catalog, query) {
|
|
1357
|
+
const q = query.trim().toLowerCase();
|
|
1358
|
+
const fuzzyHits = q.length > 0 ? new Set(fzfFor$1(catalog).find(q).map((r) => r.item)) : null;
|
|
1359
|
+
const scored = [];
|
|
1360
|
+
for (const command of catalog) {
|
|
1361
|
+
const name = command.name.toLowerCase();
|
|
1362
|
+
const aliases = (command.aliases ?? []).map((a) => a.toLowerCase());
|
|
1363
|
+
const group = command.group?.toLowerCase();
|
|
1364
|
+
const desc = command.description.toLowerCase();
|
|
1365
|
+
if (q.length === 0) scored.push({
|
|
1366
|
+
command,
|
|
1367
|
+
rank: 4
|
|
1368
|
+
});
|
|
1369
|
+
else if (name.startsWith(q) || aliases.some((a) => a.startsWith(q))) scored.push({
|
|
1370
|
+
command,
|
|
1371
|
+
rank: 0
|
|
1372
|
+
});
|
|
1373
|
+
else if (name.includes(q) || aliases.some((a) => a.includes(q)) || group !== void 0 && q.length >= 2 && group.startsWith(q)) scored.push({
|
|
1374
|
+
command,
|
|
1375
|
+
rank: 1
|
|
1376
|
+
});
|
|
1377
|
+
else if (desc.includes(q)) scored.push({
|
|
1378
|
+
command,
|
|
1379
|
+
rank: 2
|
|
1380
|
+
});
|
|
1381
|
+
else if (fuzzyHits?.has(command)) scored.push({
|
|
1382
|
+
command,
|
|
1383
|
+
rank: 3
|
|
1384
|
+
});
|
|
1385
|
+
}
|
|
1386
|
+
scored.sort((a, b) => a.rank !== b.rank ? a.rank - b.rank : a.command.name.localeCompare(b.command.name));
|
|
1387
|
+
return scored.map(({ command }) => ({
|
|
1388
|
+
id: command.name,
|
|
1389
|
+
label: command.name,
|
|
1390
|
+
description: command.aliases?.length ? `${command.description} (alias: ${command.aliases.map((a) => `/${a}`).join(", ")})` : command.description,
|
|
1391
|
+
insertText: `/${command.name} `,
|
|
1392
|
+
data: command
|
|
1393
|
+
}));
|
|
1394
|
+
}
|
|
1395
|
+
/**
|
|
1396
|
+
* Build a commands completion provider against a *live* command list. The
|
|
1397
|
+
* getter is re-evaluated per `suggest` so registry toggles / cwd rebuilds
|
|
1398
|
+
* take effect without re-instantiating the provider.
|
|
1399
|
+
*/
|
|
1400
|
+
function createCommandsCompletionProvider(opts) {
|
|
1401
|
+
return {
|
|
1402
|
+
id: "commands",
|
|
1403
|
+
trigger: "/",
|
|
1404
|
+
label: "Commands",
|
|
1405
|
+
allowSpacesInQuery: true,
|
|
1406
|
+
suggest(query, ctx) {
|
|
1407
|
+
const spaceIdx = query.search(/\s/);
|
|
1408
|
+
if (spaceIdx !== -1) {
|
|
1409
|
+
if (ctx.text.trimStart()[0] !== "/") return [];
|
|
1410
|
+
const typed = query.slice(0, spaceIdx).toLowerCase();
|
|
1411
|
+
const command = opts.getCommands().find((c) => c.name.toLowerCase() === typed || c.aliases?.some((a) => a.toLowerCase() === typed));
|
|
1412
|
+
if (!command?.completeArgs) return [];
|
|
1413
|
+
const argsPrefix = query.slice(spaceIdx + 1).replace(/^\s+/, "");
|
|
1414
|
+
return Promise.resolve(command.completeArgs(argsPrefix)).then((suggestions) => (suggestions ?? []).map((s) => ({
|
|
1415
|
+
id: `${command.name}:${s.value}`,
|
|
1416
|
+
label: s.label ?? s.value,
|
|
1417
|
+
...s.description !== void 0 ? { description: s.description } : {},
|
|
1418
|
+
insertText: `/${command.name} ${s.value} `,
|
|
1419
|
+
data: command
|
|
1420
|
+
})));
|
|
1421
|
+
}
|
|
1422
|
+
return scoreCommands(opts.getCommands(), query);
|
|
1423
|
+
},
|
|
1424
|
+
parseReferences() {
|
|
1425
|
+
return [];
|
|
1426
|
+
}
|
|
1427
|
+
};
|
|
1428
|
+
}
|
|
1429
|
+
//#endregion
|
|
1334
1430
|
//#region src/chat/completion-files.ts
|
|
1335
1431
|
/** Trigger character — `@` is the conventional file-mention prefix in chat UIs. */
|
|
1336
1432
|
const FILES_TRIGGER = "@";
|
|
@@ -2443,7 +2539,7 @@ const TOOL_DISPLAY = {
|
|
|
2443
2539
|
if (!task) return null;
|
|
2444
2540
|
const resume = stringField(input, "resume");
|
|
2445
2541
|
return {
|
|
2446
|
-
target: truncate(task,
|
|
2542
|
+
target: truncate(task, 200),
|
|
2447
2543
|
...resume ? { meta: [`resumed ${resume}`] } : {}
|
|
2448
2544
|
};
|
|
2449
2545
|
}
|
|
@@ -2723,6 +2819,6 @@ function countNeighbors(turnIds, turnId) {
|
|
|
2723
2819
|
};
|
|
2724
2820
|
}
|
|
2725
2821
|
//#endregion
|
|
2726
|
-
export {
|
|
2822
|
+
export { computeInlineDiff as $, FILES_TRIGGER as A, isTurnHighlighted as B, chunkMarkdownForRender as C, SKILLS_TRIGGER as D, stripHtmlCommentsOutsideCode as E, blendHsl as F, selectableTurnIds as G, isVisible as H, buildLinearRamp as I, turnSelectionOwnership as J, selectionAfterTurnRemoval as K, BASH_CALL_ID_PREFIX as L, uniqueFilesFromReferences as M, COMMANDS_TRIGGER as N, createSkillsCompletionProvider as O, createCommandsCompletionProvider as P, clipDiffForRender as Q, EDIT_TOOL_NAMES as R, MARKDOWN_RENDER_CHUNK_TARGET_BYTES as S, splitMarkdownCodeBlocks as T, isVisibleDuringSearch as U, isUserBashEvent as V, promptHistoryFromEvents as W, buildContextualDiff as X, applyEditPayload as Y, buildUnifiedDiff as Z, turnContextSize as _, createChatsCompletionProvider as _t, TOOL_DISPLAY as a, summarizeEditPayload as at, filterModelCatalog as b, MAX_TRANSCRIPT_EVENTS as c, maskToOutcomeKinds as ct, finalizeStreamingMarkdown as d, resolveApprovalForPayload as dt, computeLineDiff as et, finalizeStreamingMarkdownForOwner as f, rewriteMultiEditHeader as ft, revealEarlierTranscriptEvents as g, chatReferenceTokensFromText as gt, replaceTranscriptTurnEvents as h, CHATS_TRIGGER as ht, turnAsText as i, splitLines as it, createFilesCompletionProvider as j, uniqueSkillNamesFromReferences as k, TRANSCRIPT_TRIM_TO_EVENTS as l, mergeApprovalAndBodyOutcomes as lt, ownerOf as m, summarizeOutcomes as mt, deleteTurnSafely as n, filetypeFromPath as nt, displayNameFor as o, tokenize as ot, hiddenEarlierTranscriptCount as p, stripEditOutcomesAnnotation as pt, streamEventSearchText as q, truncateTurnsAt as r, previewEditPayload as rt, formatToolCall as s, buildEditOutcomesAnnotation as st, countNeighbors as t, extractEditPayload as tt, capTranscriptEvents as u, parseEditOutcomesFromResult as ut, splitPromptSegments as v, uniqueChatIdsFromReferences as vt, normalizeMarkdownCodeFences as w, indexOfEntry as x, buildModelCatalog as y, isEditErrorResult as z };
|
|
2727
2823
|
|
|
2728
|
-
//# sourceMappingURL=turn-operations-
|
|
2824
|
+
//# sourceMappingURL=turn-operations-CtEpeB_s.js.map
|