zidane 5.5.2 → 5.5.5
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/{agent-CvImMxMQ.d.ts → agent-CMAklak7.d.ts} +98 -3
- package/dist/agent-CMAklak7.d.ts.map +1 -0
- package/dist/chat.d.ts +41 -18
- package/dist/chat.d.ts.map +1 -1
- package/dist/chat.js +3 -3
- package/dist/{index-B0uc2C5x.d.ts → index-CF5QwBiz.d.ts} +2 -2
- package/dist/{index-B0uc2C5x.d.ts.map → index-CF5QwBiz.d.ts.map} +1 -1
- package/dist/{index-CtXksgqb.d.ts → index-kroGomhj.d.ts} +2 -2
- package/dist/index-kroGomhj.d.ts.map +1 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +5 -5
- package/dist/{login-DthdFNzR.js → login-B_kfoGMP.js} +4 -4
- package/dist/{login-DthdFNzR.js.map → login-B_kfoGMP.js.map} +1 -1
- package/dist/{mcp-C8XUNC_R.js → mcp-BE43Viwi.js} +2 -2
- package/dist/{mcp-C8XUNC_R.js.map → mcp-BE43Viwi.js.map} +1 -1
- package/dist/mcp.d.ts +1 -1
- package/dist/mcp.js +1 -1
- package/dist/{presets-C5E9hokO.js → presets-BDvBZuYI.js} +2 -2
- package/dist/{presets-C5E9hokO.js.map → presets-BDvBZuYI.js.map} +1 -1
- package/dist/presets.d.ts +2 -2
- package/dist/presets.js +1 -1
- package/dist/providers.d.ts +1 -1
- package/dist/restate.d.ts +148 -0
- package/dist/restate.d.ts.map +1 -0
- package/dist/restate.js +152 -0
- package/dist/restate.js.map +1 -0
- package/dist/session/sqlite.d.ts +1 -1
- package/dist/session.d.ts +1 -1
- package/dist/skills.d.ts +2 -2
- package/dist/{tools-BavL6n7q.js → tools-Bbd0Ivwn.js} +131 -68
- package/dist/tools-Bbd0Ivwn.js.map +1 -0
- package/dist/tools.d.ts +2 -2
- package/dist/tools.js +1 -1
- package/dist/{transcript-anchors-BMZRmrYk.d.ts → transcript-anchors-C7CtKPPo.d.ts} +32 -5
- package/dist/transcript-anchors-C7CtKPPo.d.ts.map +1 -0
- package/dist/tui.d.ts +2 -2
- package/dist/tui.js +16 -8
- package/dist/tui.js.map +1 -1
- package/dist/{turn-operations-DtMApNGT.js → turn-operations-rYyU2Qyq.js} +50 -15
- package/dist/turn-operations-rYyU2Qyq.js.map +1 -0
- package/dist/{types-C-9h2drI.js → types-oKPBdCmL.js} +7 -2
- package/dist/types-oKPBdCmL.js.map +1 -0
- package/dist/types.d.ts +3 -3
- package/dist/types.js +2 -2
- package/package.json +10 -1
- package/dist/agent-CvImMxMQ.d.ts.map +0 -1
- package/dist/index-CtXksgqb.d.ts.map +0 -1
- package/dist/tools-BavL6n7q.js.map +0 -1
- package/dist/transcript-anchors-BMZRmrYk.d.ts.map +0 -1
- package/dist/turn-operations-DtMApNGT.js.map +0 -1
- package/dist/types-C-9h2drI.js.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { H as previewLine, R as fmtTokens, U as shortId, a as multiEdit, c as grep, d as resolveOldString, f as styleReplacementForVia, i as readFile$1, l as glob, n as createSpawnTool, o as listFiles, t as writeFile$1, u as edit, y as shell } from "./tools-
|
|
1
|
+
import { H as previewLine, R as fmtTokens, U as shortId, a as multiEdit, c as grep, d as resolveOldString, f as styleReplacementForVia, i as readFile$1, l as glob, n as createSpawnTool, o as listFiles, t as writeFile$1, u as edit, y as shell } from "./tools-Bbd0Ivwn.js";
|
|
2
2
|
import { s as errorMessage } from "./errors-C5VSakmT.js";
|
|
3
|
-
import {
|
|
4
|
-
import { r as normalizeMcpServers } from "./mcp-
|
|
3
|
+
import { r as toolResultToText } from "./types-oKPBdCmL.js";
|
|
4
|
+
import { r as normalizeMcpServers } from "./mcp-BE43Viwi.js";
|
|
5
5
|
import { a as discoverSkills } from "./interpolate-Cvjy8gpk.js";
|
|
6
6
|
import { n as formatTokenUsage } from "./stats-Lc3zL3RM.js";
|
|
7
|
-
import { n as definePreset, t as composePresets } from "./presets-
|
|
7
|
+
import { n as definePreset, t as composePresets } from "./presets-BDvBZuYI.js";
|
|
8
8
|
import { a as writeFileAtomic, i as anthropic, n as openai, r as cerebras, t as openrouter } from "./providers-CsUyN_FJ.js";
|
|
9
9
|
import { createRequire } from "node:module";
|
|
10
10
|
import { dirname, isAbsolute, join, posix, relative, resolve, sep } from "node:path";
|
|
@@ -901,6 +901,29 @@ const DEFAULT_PERSIST_EXCLUDE_TOOLS = [
|
|
|
901
901
|
"todoread"
|
|
902
902
|
];
|
|
903
903
|
/**
|
|
904
|
+
* Tools whose output is exempt from the per-turn `toolOutputBudget` accounting.
|
|
905
|
+
*
|
|
906
|
+
* These tools exist to LOAD context into the conversation — their bytes ARE
|
|
907
|
+
* the value of the call. Counting them against the budget steers the model
|
|
908
|
+
* away from the very tool it needs to make progress (e.g. a 78 KiB
|
|
909
|
+
* `tool_search` response for a 20-tool Notion MCP server would trigger the
|
|
910
|
+
* "summarize before calling more tools" nudge on the very turn that
|
|
911
|
+
* unlocked those tools, making them effectively unusable).
|
|
912
|
+
*
|
|
913
|
+
* Note this list is intentionally narrower than {@link DEFAULT_PERSIST_EXCLUDE_TOOLS}:
|
|
914
|
+
* `read_file` is NOT exempt — a 200 KiB file load is exactly the case the
|
|
915
|
+
* budget should steer against. Same for `spawn` (a sprawling subagent
|
|
916
|
+
* report should still nudge a consolidation pass).
|
|
917
|
+
*
|
|
918
|
+
* Exported so SDK consumers building custom profiles can extend the list
|
|
919
|
+
* for host-defined context-loading tools.
|
|
920
|
+
*/
|
|
921
|
+
const DEFAULT_BUDGET_EXCLUDE_TOOLS = [
|
|
922
|
+
"tool_search",
|
|
923
|
+
"skills_use",
|
|
924
|
+
"skills_read"
|
|
925
|
+
];
|
|
926
|
+
/**
|
|
904
927
|
* Token-saving `AgentBehavior` defaults shared by the built-in profiles.
|
|
905
928
|
*
|
|
906
929
|
* These flip on at the chat layer, not at the SDK core (`src/agent.ts`) —
|
|
@@ -918,8 +941,11 @@ const DEFAULT_PERSIST_EXCLUDE_TOOLS = [
|
|
|
918
941
|
* the system prompt and load their `inputSchema` on demand via
|
|
919
942
|
* `tool_search`. No-op without MCPs (gated on `lazyEntries.length > 0`
|
|
920
943
|
* in `src/agent.ts:1287`); substantial savings with a 50-tool server.
|
|
921
|
-
* - `toolOutputBudget: 64 KiB` — soft
|
|
922
|
-
* summarize-before-continuing nudge when
|
|
944
|
+
* - `toolOutputBudget: 64 KiB` + `toolOutputBudgetExcludeTools` — soft
|
|
945
|
+
* per-turn cap that injects a summarize-before-continuing nudge when
|
|
946
|
+
* tool output explodes. Context-loading tools (`tool_search`,
|
|
947
|
+
* `skills_use`, `skills_read`) are exempt so the model isn't steered
|
|
948
|
+
* away from the very call it made to load schemas / skill content.
|
|
923
949
|
* - `persistThreshold: 8 KiB` + `persistExcludeTools` — tool results
|
|
924
950
|
* above the threshold are written to disk and replaced inline with a
|
|
925
951
|
* `<persisted-output>` stub (preview + path). `persistDir` is wired by
|
|
@@ -935,6 +961,7 @@ const SHARED_BEHAVIOR = {
|
|
|
935
961
|
elideStaleReads: true,
|
|
936
962
|
toolDisclosure: "lazy",
|
|
937
963
|
toolOutputBudget: 64 * 1024,
|
|
964
|
+
toolOutputBudgetExcludeTools: DEFAULT_BUDGET_EXCLUDE_TOOLS,
|
|
938
965
|
persistThreshold: 8 * 1024,
|
|
939
966
|
persistExcludeTools: DEFAULT_PERSIST_EXCLUDE_TOOLS
|
|
940
967
|
};
|
|
@@ -1550,7 +1577,7 @@ async function checkForUpdate(options) {
|
|
|
1550
1577
|
if (!options.force && isOptedOut()) return skipped(options.currentVersion, channel);
|
|
1551
1578
|
const cachePath = options.cacheDir ? cacheFilePath(options.cacheDir, options.packageName, channel) : null;
|
|
1552
1579
|
const cached = cachePath ? readCache(cachePath) : null;
|
|
1553
|
-
if (cached && cached.packageName === options.packageName && cached.channel === channel) {
|
|
1580
|
+
if (!options.force && cached && cached.packageName === options.packageName && cached.channel === channel) {
|
|
1554
1581
|
if (ttl > 0 && now() - cached.checkedAt < ttl) {
|
|
1555
1582
|
const hasUpdate = compareSemver(cached.latest, options.currentVersion) > 0;
|
|
1556
1583
|
return {
|
|
@@ -2172,10 +2199,15 @@ function detectLibc() {
|
|
|
2172
2199
|
//#endregion
|
|
2173
2200
|
//#region src/chat/auto-update-hook.ts
|
|
2174
2201
|
/**
|
|
2175
|
-
* Returns the current update status
|
|
2176
|
-
*
|
|
2177
|
-
* `
|
|
2178
|
-
*
|
|
2202
|
+
* Returns the current update status. The check fires:
|
|
2203
|
+
* - Once per mount (every TUI launch).
|
|
2204
|
+
* - Every time `enabled` flips from `false` → `true` (user re-enabling
|
|
2205
|
+
* the setting expects an immediate refresh).
|
|
2206
|
+
*
|
|
2207
|
+
* The check is async and deferred by `delayMs` so it never competes with
|
|
2208
|
+
* first paint. Result is `null` until the first check resolves; flipping
|
|
2209
|
+
* `enabled` to `false` resets to `null` so any chip rendered against
|
|
2210
|
+
* `hasUpdate` disappears immediately.
|
|
2179
2211
|
*
|
|
2180
2212
|
* The hook owns its own AbortController so an unmount cancels any in-flight
|
|
2181
2213
|
* registry request cleanly.
|
|
@@ -2185,7 +2217,10 @@ function useUpdateCheck(options) {
|
|
|
2185
2217
|
const optsRef = useRef(options);
|
|
2186
2218
|
optsRef.current = options;
|
|
2187
2219
|
useEffect(() => {
|
|
2188
|
-
if (!options.enabled || !options.currentVersion)
|
|
2220
|
+
if (!options.enabled || !options.currentVersion) {
|
|
2221
|
+
setStatus(null);
|
|
2222
|
+
return;
|
|
2223
|
+
}
|
|
2189
2224
|
const controller = new AbortController();
|
|
2190
2225
|
const timer = setTimeout(() => {
|
|
2191
2226
|
checkForUpdate({
|
|
@@ -2194,7 +2229,7 @@ function useUpdateCheck(options) {
|
|
|
2194
2229
|
cacheDir: optsRef.current.cacheDir,
|
|
2195
2230
|
registry: optsRef.current.registry,
|
|
2196
2231
|
channel: optsRef.current.channel,
|
|
2197
|
-
cacheTtlMs: optsRef.current.cacheTtlMs,
|
|
2232
|
+
cacheTtlMs: optsRef.current.cacheTtlMs ?? 0,
|
|
2198
2233
|
signal: controller.signal,
|
|
2199
2234
|
now: optsRef.current.now,
|
|
2200
2235
|
fetcher: optsRef.current.fetcher
|
|
@@ -9153,6 +9188,6 @@ function countNeighbors(turnIds, turnId) {
|
|
|
9153
9188
|
};
|
|
9154
9189
|
}
|
|
9155
9190
|
//#endregion
|
|
9156
|
-
export { useMcpAuthDispatch as $, tryOpenBrowser as $n,
|
|
9191
|
+
export { useMcpAuthDispatch as $, tryOpenBrowser as $n, pruneTodosByRun as $r, loadState as $t, getSafelist as A, DEFAULT_KEYBINDINGS as An, modelsForDescriptor as Ar, resolveChipColor as At, supportsOAuth as B, SKILLS_TRIGGER as Bn, accentColor as Br, useDiscoveryOptional as Bt, resolveSessionExportTarget as C, mergeApprovalAndBodyOutcomes as Cn, anthropicDescriptor as Cr, SETTINGS_CHOICES as Ct, useSafeModeQueue as D, stripEditOutcomesAnnotation as Dn, getContextWindow as Dr, useSettings as Dt, useSafeModeActions as E, rewriteMultiEditHeader as En, effectiveContextWindow as Er, clampFps as Et, suggestSafelistEntry as F, matchesBinding as Fn, BUILTIN_AGENTS as Fr, CATPPUCCIN_MACCHIATO as Ft, defaultMcpsConfigPaths as G, uniqueFilesFromReferences as Gn, TODOWRITE_TOOL as Gr, createStateStore as Gt, filterModelCatalog as H, uniqueSkillNamesFromReferences as Hn, singleAgentRegistry as Hr, useConfig as Ht, writeProjects as I, mergeKeybindings as In, DEFAULT_AGENT_ID as Ir, CATPPUCCIN_MOCHA as It, projectUserPaths as J, findActiveTrigger as Jn, createTodoTools as Jr, isEditErrorResult as Jt, discoverProjectMcps as K, applyInsert as Kn, TODO_STATUS_GLYPHS as Kr, deriveSessionTitle as Kt, splitPromptSegments as L, parseBindingSpec as Ln, DEFAULT_BUDGET_EXCLUDE_TOOLS as Lr, createDiscoverySlot as Lt, matchesSafelistEntry as M, KEYBINDING_DEF_BY_ACTION as Mn, openrouterDescriptor as Mr, VAPORWAVE_THEME as Mt, projectsFilePath as N, ensureKeybindingsFile as Nn, piIdOf as Nr, CATPPUCCIN_FRAPPE as Nt, IMPLICITLY_SAFE_TOOLS as O, summarizeOutcomes as On, getModelInfo as Or, BUILTIN_THEMES as Ot, readProjects as P, keybindingsPath as Pn, BUILD_AGENT as Pr, CATPPUCCIN_LATTE as Pt, McpAuthProvider as Q, buildLinearRamp as Qn, pickActiveRunId as Qr, listSessionMeta as Qt, formatPathForCwd as R, readKeybindings as Rn, DEFAULT_PERSIST_EXCLUDE_TOOLS as Rr, DiscoveryProvider as Rt, renderSession as S, maskToOutcomeKinds as Sn, OUTPUT_RESERVE_TOKENS as Sr, DEFAULT_SETTINGS as St, SafeModeProvider as T, resolveApprovalForPayload as Tn, credKeyOf as Tr, SettingsProvider as Tt, indexOfEntry as U, FILES_TRIGGER as Un, TODOREAD_TOOL as Ur, resolveConfig as Ut, buildModelCatalog as V, createSkillsCompletionProvider as Vn, resolveAgentId as Vr, ConfigProvider as Vt, buildMcpServers as W, createFilesCompletionProvider as Wn, TODOS_METADATA_KEY as Wr, EDIT_TOOL_NAMES as Wt, mcpCredentialsPath as X, useCompletion as Xn, getTodosForRun as Xr, isVisible as Xt, createFileMcpCredentialStore as Y, mergeReferences as Yn, getArchivedTodosForRun as Yr, isTurnHighlighted as Yt, patchMcpCredential as Z, blendHsl as Zn, isTodoTool as Zr, lastContextSizeFromTurns as Zt, turnContextSize as _, previewEditPayload as _n, readProviderCredential as _r, truncateTrailing as _t, computeTurnAnchors as a, DOING_TASKS_DOCTRINE as ai, titleFromTurns as an, compareSemver as ar, InteractionsProvider as at, defaultSkillScanPaths as b, tokenize as bn, writeCredentials as br, listProjectFiles as bt, formatToolCall as c, INTERACTION_GUIDANCE_NO_PROMPTS as ci, turnSelectionOwnership as cn, parseSemver as cr, createInteractionTools as ct, useSelectStyle as d, SUBAGENT_GUIDANCE as di, buildContextualDiff as dn, resolvePlatformPackage as dr, pendingInteractionsFromTurns as dt, selectActiveTodos as ei, marginTopFor as en, bootProfileEnabled as er, useMcpAuthState as et, useSurfaces as f, TOKEN_DISCIPLINE_DOCTRINE as fi, buildUnifiedDiff as fn, shouldAutoCompact as fr, serializeInteractionResponse as ft, finalizeStreamingMarkdownForOwner as g, filetypeFromPath as gn, readCredentials as gr, hintsLength as gt, finalizeStreamingMarkdown as h, envSection as hi, extractEditPayload as hn, credentialsPath as hr, clipHintsToWidth as ht, turnAsText as i, COMMUNICATION_DOCTRINE as ii, sumRunCosts as in, checkForUpdate as ir, ASK_USER_TOOL as it, isOnSafelist as j, KEYBINDING_DEFS as jn, openaiDescriptor as jr, resolveTheme as jt, addToSafelist as k, findGitRoot$1 as kn, modelSupportsReasoning as kr, DEFAULT_THEME as kt, ThemeProvider as l, PLAN_MODE_DOCTRINE as li, updateToolEventOutcomes as ln, performInPlaceSelfUpdate as lr, isInteractionTool as lt, useTheme as m, buildPlanSystem as mi, computeLineDiff as mn, applyApiKeyEnv as mr, useInteractionsQueue as mt, deleteTurnSafely as n, useActiveTodos as ni, selectableTurnIds as nn, buildUpdateHint as nr, reduceMcpAuth as nt, TOOL_DISPLAY as o, IDENTITY_PREFIX as oi, toolCallPreview as on, detectLibc as or, PRESENT_PLAN_TOOL as ot, useSyntaxStyles as p, buildBuildSystem as pi, computeInlineDiff as pn, detectAuth as pr, useInteractionsActions as pt, parseMcpsFile as q, collectReferences as qn, TODO_WRITE_COUNTS_METADATA_KEY as qr, eventsFromTurns as qt, truncateTurnsAt as r, ACTIONS_WITH_CARE_DOCTRINE as ri, stripSpawnTokensLine as rn, useUpdateCheck as rr, splitMarkdownCodeBlocks as rt, displayNameFor as s, INTERACTION_GUIDANCE as si, toolResultText as sn, detectPackageManager as sr, buildResumedToolResultsTurn as st, countNeighbors as t, setTodosForRun as ti, saveState as tn, bootTick as tr, getMcpAuthStatus as tt, useColors as u, PLAN_MODE_DOCTRINE_NO_PROMPTS as ui, applyEditPayload as un, performSelfUpdate as ur, makeRequestInteraction as ut, useStreamBuffer as v, splitLines as vn, removeProviderCredential as vr, cleanTitle as vt, writeSessionExport as w, parseEditOutcomesFromResult as wn, cerebrasDescriptor as wr, SETTINGS_TOGGLES as wt, discoverProjectSkills as x, buildEditOutcomesAnnotation as xn, BUILTIN_PROVIDERS as xr, useEnabledToggleSet as xt, buildSkillsConfig as y, summarizeEditPayload as yn, setProviderCredential as yr, generateSessionTitle as yt, runOAuthLogin as z, stripJsonComments as zn, PLAN_AGENT as zr, useDiscovery as zt };
|
|
9157
9192
|
|
|
9158
|
-
//# sourceMappingURL=turn-operations-
|
|
9193
|
+
//# sourceMappingURL=turn-operations-rYyU2Qyq.js.map
|