zidane 7.1.4 → 7.1.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/README.md +4 -0
- package/dist/{acp-DbYGzaVK.js → acp-BxRfclPQ.js} +3 -3
- package/dist/{acp-DbYGzaVK.js.map → acp-BxRfclPQ.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-BlGt76qk.js → agent-CJbmpTmA.js} +94 -106
- package/dist/agent-CJbmpTmA.js.map +1 -0
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +1 -1
- package/dist/{anthropic-DPPs3wjJ.js → anthropic-BQdAnY-w.js} +2 -2
- package/dist/{anthropic-DPPs3wjJ.js.map → anthropic-BQdAnY-w.js.map} +1 -1
- package/dist/{approvals-CnFq-_Gu.js → approvals-DMxUgyVd.js} +162 -56
- package/dist/approvals-DMxUgyVd.js.map +1 -0
- package/dist/{auth-CNetxyJH.js → auth-DvMdkpGD.js} +4 -4
- package/dist/{auth-CNetxyJH.js.map → auth-DvMdkpGD.js.map} +1 -1
- package/dist/chat/pure.d.ts +4 -4
- package/dist/chat/pure.js +2 -2
- package/dist/chat.d.ts +6 -6
- package/dist/chat.js +5 -5
- package/dist/contexts/daytona.d.ts +1 -1
- package/dist/contexts/e2b.d.ts +1 -1
- package/dist/daemon-cli.js +2 -1
- package/dist/daemon-cli.js.map +1 -1
- package/dist/eval.d.ts +1 -1
- package/dist/extensions.d.ts +1 -1
- package/dist/extensions.js +1 -1
- package/dist/{fetch-url-ma-5_p0p.js → fetch-url-DX75gpL0.js} +3 -2
- package/dist/fetch-url-DX75gpL0.js.map +1 -0
- package/dist/headless.d.ts +1 -1
- package/dist/headless.js +1 -1
- package/dist/{index-DtF2yPaI.d.ts → index-BMOl2Bog.d.ts} +20 -11
- package/dist/index-BMOl2Bog.d.ts.map +1 -0
- package/dist/{index-BIJKozYj.d.ts → index-DCYh6lOp.d.ts} +71 -5
- package/dist/index-DCYh6lOp.d.ts.map +1 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +6 -5
- package/dist/{ipc-DZffY7UT.js → ipc-BZcE9wnT.js} +2 -2
- package/dist/{ipc-DZffY7UT.js.map → ipc-BZcE9wnT.js.map} +1 -1
- package/dist/ipc.d.ts +28 -6
- package/dist/ipc.d.ts.map +1 -1
- package/dist/ipc.js +4 -4
- package/dist/mcp.d.ts +1 -1
- package/dist/{oauth-B6F43fti.js → oauth-DxHO17JE.js} +10 -8
- package/dist/{oauth-B6F43fti.js.map → oauth-DxHO17JE.js.map} +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/prompts-Pqc3JdW_.d.ts +116 -0
- package/dist/prompts-Pqc3JdW_.d.ts.map +1 -0
- 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/xai.js +1 -1
- package/dist/{providers-DP9kwXYo.js → providers-BVhnFyiY.js} +2 -2
- package/dist/{providers-DP9kwXYo.js.map → providers-BVhnFyiY.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 +1 -1
- package/dist/session/sqlite.d.ts +1 -1
- package/dist/session.d.ts +1 -1
- package/dist/{server-Cdrcncg-.js → shell-path-BBH8xrmU.js} +95 -9
- package/dist/shell-path-BBH8xrmU.js.map +1 -0
- package/dist/skills.d.ts +1 -1
- package/dist/{tool-formatters-Baj_BroN.d.ts → tool-formatters-BDm0tjgy.d.ts} +2 -2
- package/dist/{tool-formatters-Baj_BroN.d.ts.map → tool-formatters-BDm0tjgy.d.ts.map} +1 -1
- package/dist/tools/fetch-url.d.ts +1 -1
- package/dist/tools/fetch-url.d.ts.map +1 -1
- package/dist/tools/fetch-url.js +1 -1
- package/dist/tools/prompts.d.ts +2 -0
- package/dist/tools/prompts.js +164 -0
- package/dist/tools/prompts.js.map +1 -0
- package/dist/tools/web-search.d.ts +1 -1
- package/dist/tools/web-search.d.ts.map +1 -1
- package/dist/tools/web-search.js +3 -3
- package/dist/tools/web-search.js.map +1 -1
- package/dist/tools.d.ts +3 -2
- package/dist/tools.js +3 -2
- package/dist/{transcript-anchors-DfnBVZX0.d.ts → transcript-anchors-DjcEsOYq.d.ts} +2 -2
- package/dist/{transcript-anchors-DfnBVZX0.d.ts.map → transcript-anchors-DjcEsOYq.d.ts.map} +1 -1
- package/dist/tui.d.ts +3 -3
- package/dist/tui.js +43 -25
- package/dist/tui.js.map +1 -1
- package/dist/{turn-operations-BHeYIvSY.js → turn-operations-JynC5ODZ.js} +30 -2
- package/dist/{turn-operations-BHeYIvSY.js.map → turn-operations-JynC5ODZ.js.map} +1 -1
- package/dist/{turn-operations-Cl3RNQ2O.d.ts → turn-operations-Rqk3E0Ue.d.ts} +34 -4
- package/dist/{turn-operations-Cl3RNQ2O.d.ts.map → turn-operations-Rqk3E0Ue.d.ts.map} +1 -1
- package/dist/types.d.ts +3 -2
- package/docs/ARCHITECTURE.md +14 -2
- package/docs/SKILL.md +31 -1
- package/package.json +6 -1
- package/dist/agent-BlGt76qk.js.map +0 -1
- package/dist/approvals-CnFq-_Gu.js.map +0 -1
- package/dist/fetch-url-ma-5_p0p.js.map +0 -1
- package/dist/index-BIJKozYj.d.ts.map +0 -1
- package/dist/index-DtF2yPaI.d.ts.map +0 -1
- package/dist/server-Cdrcncg-.js.map +0 -1
|
@@ -3234,6 +3234,21 @@ function splitPromptSegments(text, refs) {
|
|
|
3234
3234
|
//#endregion
|
|
3235
3235
|
//#region src/chat/provider-usage-format.ts
|
|
3236
3236
|
/**
|
|
3237
|
+
* Whether a snapshot should show its account name: only when another snapshot
|
|
3238
|
+
* in the same list belongs to the same provider. One account is the provider.
|
|
3239
|
+
*/
|
|
3240
|
+
function showsAccount(snapshot, all) {
|
|
3241
|
+
return snapshot.account !== null && all.some((s) => s !== snapshot && s.providerKey === snapshot.providerKey);
|
|
3242
|
+
}
|
|
3243
|
+
/**
|
|
3244
|
+
* The snapshot the footer indicator shows for a provider: the one probed with
|
|
3245
|
+
* the credential requests use, else the first reported. `null` when none.
|
|
3246
|
+
*/
|
|
3247
|
+
function activeSnapshotFor(all, providerKey) {
|
|
3248
|
+
const mine = all.filter((s) => s.providerKey === providerKey);
|
|
3249
|
+
return mine.find((s) => s.activeCredential) ?? mine[0] ?? null;
|
|
3250
|
+
}
|
|
3251
|
+
/**
|
|
3237
3252
|
* The window closest to its ceiling, which is the one that will bite first and
|
|
3238
3253
|
* the only one a single-line indicator has room for. `null` when the snapshot
|
|
3239
3254
|
* carries no windows.
|
|
@@ -3276,6 +3291,19 @@ function resetLabel(resetsAt, now = Date.now()) {
|
|
|
3276
3291
|
}
|
|
3277
3292
|
return `resets in ${Math.max(1, Math.floor(hours / 24))}d`;
|
|
3278
3293
|
}
|
|
3294
|
+
/**
|
|
3295
|
+
* `updated 12s ago` / `updated 3m ago` for the newest snapshot in a list, so a
|
|
3296
|
+
* refresh that returns identical numbers is still visibly a refresh. `null`
|
|
3297
|
+
* when the list is empty.
|
|
3298
|
+
*/
|
|
3299
|
+
function updatedLabel(snapshots, now = Date.now()) {
|
|
3300
|
+
let newest = -Infinity;
|
|
3301
|
+
for (const s of snapshots) newest = Math.max(newest, s.fetchedAt);
|
|
3302
|
+
if (!Number.isFinite(newest)) return null;
|
|
3303
|
+
const seconds = Math.max(0, Math.floor((now - newest) / 1e3));
|
|
3304
|
+
if (seconds < 60) return `updated ${seconds}s ago`;
|
|
3305
|
+
return `updated ${Math.floor(seconds / 60)}m ago`;
|
|
3306
|
+
}
|
|
3279
3307
|
/** Balances are dollars for OpenRouter and opaque units elsewhere. */
|
|
3280
3308
|
function formatCredits(value) {
|
|
3281
3309
|
return value >= 100 ? value.toFixed(0) : value.toFixed(2);
|
|
@@ -3937,6 +3965,6 @@ function countNeighbors(turnIds, turnId) {
|
|
|
3937
3965
|
};
|
|
3938
3966
|
}
|
|
3939
3967
|
//#endregion
|
|
3940
|
-
export {
|
|
3968
|
+
export { pickChainPrimary as $, formatCostUsd as $t, indexOfEntry as A, uniqueChatIdsFromReferences as An, selectionAfterTurnRemoval as At, cacheBreakNoticeText as B, isMainSession as Bt, resetLabel as C, resolveApprovalForPayload as Cn, isVisible as Ct, splitPromptSegments as D, CHATS_TRIGGER as Dn, retagUserPromptEvents as Dt, usageTone as E, summarizeOutcomes as En, promptTurnRefs as Et, codeTokenHasClosingFence as F, ORCHESTRATED_BY_KEY as Ft, DAEMON_HEALTH_GLYPH as G, sessionDirLabel as Gt, liveSessionCost as H, parseSessionEventXml as Ht, normalizeMarkdownCodeFences as I, SESSION_EVENT_STATUS_STYLE as It, chainEntryKey as J, sessionEventMeta as Jt, DAEMON_HEALTH_STYLE as K, sessionEventExcerpt as Kt, splitMarkdownCodeBlocks as L, SESSION_ROLE_KEY as Lt, MARKDOWN_RENDER_CHUNK_TARGET_BYTES as M, turnSelectionOwnership as Mt, chunkMarkdownForRender as N, MAIN_PLAYBOOK_FRAGMENT as Nt, buildModelCatalog as O, chatReferenceTokensFromText as On, retagUserPromptEventsFromRefs as Ot, closeDanglingCodeFence as P, MAIN_SESSION_TITLE as Pt, filterChainFallbacks as Q, fitRunReceiptCells as Qt, stripHtmlCommentsOutsideCode as R, WORKER_REPORT_FRAGMENT as Rt, mostConstrainedWindow as S, parseEditOutcomesFromResult as Sn, isUserBashEvent as St, updatedLabel as T, stripEditOutcomesAnnotation as Tn, promptHistoryFromEvents as Tt, retryLabel as U, renderProjectsBriefing as Ut, compactingLabel as V, orchestratedBy as Vt, streamingLabel as W, renderSessionEventXml as Wt, chainsEqual as X, truncateTitle as Xt, chainPositionOf as Y, shortSessionId as Yt, chainsEqualKeyed as Z, RUN_RECEIPT_GLYPH as Zt, turnContextSize as _, summarizeEditPayload as _n, buildLinearRamp as _t, TOOL_DISPLAY as a, hasRunReceipt as an, sanitizeModelChain as at, formatCredits as b, maskToOutcomeKinds as bn, isEditErrorResult as bt, MAX_TRANSCRIPT_EVENTS as c, buildContextualDiff as cn, SKILLS_TRIGGER as ct, finalizeStreamingMarkdown as d, computeInlineDiff as dn, FILES_TRIGGER as dt, formatRunDuration as en, pickPrimaryKeyed as et, finalizeStreamingMarkdownForOwner as f, computeLineDiff as fn, createFilesCompletionProvider as ft, revealEarlierTranscriptEvents as g, splitLines as gn, blendHsl as gt, replaceTranscriptTurnEvents as h, previewEditPayload as hn, createCommandsCompletionProvider as ht, turnAsText as i, formatTokensPerSecond as in, restoreChainFallbacks as it, parseCustomModelQuery as j, streamEventSearchText as jt, filterModelCatalog as k, createChatsCompletionProvider as kn, selectableTurnIds as kt, TRANSCRIPT_TRIM_TO_EVENTS as l, buildUnifiedDiff as ln, createSkillsCompletionProvider as lt, ownerOf as m, filetypeFromPath as mn, COMMANDS_TRIGGER as mt, deleteTurnSafely as n, formatRunReceiptLine as nn, providerKeySetChanged as nt, displayNameFor as o, runReceiptFromRun as on, toggleChainEntry as ot, hiddenEarlierTranscriptCount as p, extractEditPayload as pn, uniqueFilesFromReferences as pt, buildRunModel as q, sessionEventLabel as qt, truncateTurnsAt as r, formatTokenCount as rn, reorderKeyed as rt, formatToolCall as s, applyEditPayload as sn, toggleKeyed as st, countNeighbors as t, formatRunReceiptCells as tn, positionKeyed as tt, capTranscriptEvents as u, clipDiffForRender as un, uniqueSkillNamesFromReferences as ut, activeSnapshotFor as v, tokenize as vn, BASH_CALL_ID_PREFIX as vt, showsAccount as w, rewriteMultiEditHeader as wn, isVisibleDuringSearch as wt, formatUsagePercent as x, mergeApprovalAndBodyOutcomes as xn, isTurnHighlighted as xt, formatBalance as y, buildEditOutcomesAnnotation as yn, EDIT_TOOL_NAMES as yt, cacheBreakChip as z, artifactsFromTurns as zt };
|
|
3941
3969
|
|
|
3942
|
-
//# sourceMappingURL=turn-operations-
|
|
3970
|
+
//# sourceMappingURL=turn-operations-JynC5ODZ.js.map
|