zidane 5.6.5 → 5.6.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/dist/chat.d.ts +2 -2
- package/dist/chat.js +2 -2
- package/dist/{index-DKpXHp1c.d.ts → index-8mn3PIaa.d.ts} +24 -1
- package/dist/{index-DKpXHp1c.d.ts.map → index-8mn3PIaa.d.ts.map} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/{login-YckkS-Bq.js → login-Btpliwct.js} +2 -2
- package/dist/{login-YckkS-Bq.js.map → login-Btpliwct.js.map} +1 -1
- package/dist/{presets-ZT3TJDEb.js → presets-BXmWG3kd.js} +2 -2
- package/dist/{presets-ZT3TJDEb.js.map → presets-BXmWG3kd.js.map} +1 -1
- package/dist/presets.d.ts +1 -1
- package/dist/presets.js +1 -1
- package/dist/{tools-Bgx8OBqK.js → tools-FerA0zSl.js} +72 -9
- package/dist/tools-FerA0zSl.js.map +1 -0
- package/dist/tools.d.ts +1 -1
- package/dist/tools.js +1 -1
- package/dist/{transcript-anchors-CGA0h4AT.d.ts → transcript-anchors-C5Sp1Snh.d.ts} +25 -7
- package/dist/{transcript-anchors-CGA0h4AT.d.ts.map → transcript-anchors-C5Sp1Snh.d.ts.map} +1 -1
- package/dist/tui.d.ts +1 -1
- package/dist/tui.js +16 -6
- package/dist/tui.js.map +1 -1
- package/dist/{turn-operations-b2ICQ1Y5.js → turn-operations-D-OQYUgS.js} +38 -9
- package/dist/{turn-operations-b2ICQ1Y5.js.map → turn-operations-D-OQYUgS.js.map} +1 -1
- package/dist/types.d.ts +1 -1
- package/docs/CHAT.md +7 -7
- package/docs/TUI.md +1 -1
- package/package.json +1 -1
- package/dist/tools-Bgx8OBqK.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-FerA0zSl.js";
|
|
2
2
|
import { c as errorMessage } from "./errors-DdZXnyXE.js";
|
|
3
3
|
import { r as toolResultToText } from "./types-oKPBdCmL.js";
|
|
4
4
|
import { r as normalizeMcpServers } from "./mcp-ngMS0S6N.js";
|
|
5
5
|
import { a as discoverSkills } from "./interpolate-DM1UcKeQ.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-BXmWG3kd.js";
|
|
8
8
|
import { a as writeFileAtomic, i as anthropic, n as openai, r as cerebras, t as openrouter } from "./providers-CaJE2ToS.js";
|
|
9
9
|
import { createRequire } from "node:module";
|
|
10
10
|
import { dirname, isAbsolute, join, posix, relative, resolve, sep } from "node:path";
|
|
@@ -7957,15 +7957,44 @@ function projectUserPaths(opts) {
|
|
|
7957
7957
|
//#endregion
|
|
7958
7958
|
//#region src/chat/mcps-discovery.ts
|
|
7959
7959
|
/**
|
|
7960
|
-
*
|
|
7961
|
-
*
|
|
7962
|
-
*
|
|
7960
|
+
* File names searched in each of the four project/user roots. Order
|
|
7961
|
+
* matters within a single directory — `mcps.json` (zidane's canonical
|
|
7962
|
+
* name) beats `mcp.json` (Cursor / common ecosystem alias) when both
|
|
7963
|
+
* exist side-by-side. Across files we merge per-name with first-found
|
|
7964
|
+
* winning, so co-existing `mcp.json` entries are folded in for names
|
|
7965
|
+
* not declared in the canonical file.
|
|
7966
|
+
*/
|
|
7967
|
+
const MCP_CONFIG_FILE_NAMES = ["mcps.json", "mcp.json"];
|
|
7968
|
+
/**
|
|
7969
|
+
* Search order for MCP config files — see {@link projectUserPaths}.
|
|
7970
|
+
*
|
|
7971
|
+
* Both `mcps.json` (zidane's canonical name) and `mcp.json` (Cursor /
|
|
7972
|
+
* common ecosystem alias) are picked up from every search root. The
|
|
7973
|
+
* canonical name wins within the same directory; across files the
|
|
7974
|
+
* usual first-found-by-name dedup applies, so `mcp.json` effectively
|
|
7975
|
+
* merges its non-overlapping entries on top of `mcps.json`.
|
|
7976
|
+
*
|
|
7977
|
+
* Order per scope (project beats user):
|
|
7978
|
+
* 1. `{project}/.agents/mcps.json`
|
|
7979
|
+
* 2. `{project}/.agents/mcp.json`
|
|
7980
|
+
* 3. `{project}/.{prefix}/mcps.json`
|
|
7981
|
+
* 4. `{project}/.{prefix}/mcp.json`
|
|
7982
|
+
* 5. `~/.agents/mcps.json`
|
|
7983
|
+
* 6. `~/.agents/mcp.json`
|
|
7984
|
+
* 7. `~/.{prefix}/mcps.json`
|
|
7985
|
+
* 8. `~/.{prefix}/mcp.json`
|
|
7986
|
+
*
|
|
7987
|
+
* Non-existent files are skipped without error.
|
|
7963
7988
|
*/
|
|
7964
7989
|
function defaultMcpsConfigPaths(opts = {}) {
|
|
7965
|
-
|
|
7966
|
-
subPath:
|
|
7990
|
+
const perName = MCP_CONFIG_FILE_NAMES.map((name) => projectUserPaths({
|
|
7991
|
+
subPath: name,
|
|
7967
7992
|
...opts
|
|
7968
|
-
});
|
|
7993
|
+
}));
|
|
7994
|
+
const rootCount = perName[0].length;
|
|
7995
|
+
const out = [];
|
|
7996
|
+
for (let i = 0; i < rootCount; i++) for (const list of perName) out.push(list[i]);
|
|
7997
|
+
return out;
|
|
7969
7998
|
}
|
|
7970
7999
|
/**
|
|
7971
8000
|
* Parse one `mcps.json` file. Canonical zidane shape is a flat array; the
|
|
@@ -10161,4 +10190,4 @@ function countNeighbors(turnIds, turnId) {
|
|
|
10161
10190
|
//#endregion
|
|
10162
10191
|
export { patchMcpCredential as $, FILES_TRIGGER as $n, PLAN_AGENT as $r, createStateStore as $t, getSafelist as A, maskToOutcomeKinds as An, setProviderCredential as Ar, SETTINGS_TOGGLES as At, oauthUsesManualCodePaste as B, KEYBINDING_KEY_COL_WIDTH as Bn, modelSupportsReasoning as Br, CATPPUCCIN_LATTE as Bt, resolveSessionExportTarget as C, PLAN_MODE_DOCTRINE as Ci, extractEditPayload as Cn, shouldAutoCompact as Cr, buildHints as Ct, useSafeModeQueue as D, buildBuildSystem as Di, summarizeEditPayload as Dn, readCredentials as Dr, DEFAULT_SETTINGS as Dt, useSafeModeActions as E, TOKEN_DISCIPLINE_DOCTRINE as Ei, splitLines as En, credentialsPath as Er, useEnabledToggleSet as Et, suggestSafelistEntry as F, stripEditOutcomesAnnotation as Fn, cerebrasDescriptor as Fr, DEFAULT_THEME as Ft, indexOfEntry as G, matchesBinding as Gn, discoverAgentsMd as Gr, useDiscovery as Gt, supportsOAuth as H, formatBindingForDisplay as Hn, openaiDescriptor as Hr, CATPPUCCIN_MOCHA as Ht, writeProjects as I, summarizeOutcomes as In, credKeyOf as Ir, resolveChipColor as It, discoverProjectMcps as J, readKeybindings as Jn, BUILD_AGENT as Jr, useConfig as Jt, buildMcpServers as K, mergeKeybindings as Kn, renderAgentsMdBlock as Kr, useDiscoveryOptional as Kt, splitPromptSegments as L, DEFAULT_KEYBINDINGS as Ln, effectiveContextWindow as Lr, resolveTheme as Lt, matchesSafelistEntry as M, parseEditOutcomesFromResult as Mn, BUILTIN_PROVIDERS as Mr, clampFps as Mt, projectsFilePath as N, resolveApprovalForPayload as Nn, OUTPUT_RESERVE_TOKENS as Nr, useSettings as Nt, IMPLICITLY_SAFE_TOOLS as O, buildPlanSystem as Oi, tokenize as On, readProviderCredential as Or, SETTINGS_CATEGORIES as Ot, readProjects as P, rewriteMultiEditHeader as Pn, anthropicDescriptor as Pr, BUILTIN_THEMES as Pt, mcpCredentialsPath as Q, uniqueSkillNamesFromReferences as Qn, DEFAULT_PERSIST_EXCLUDE_TOOLS as Qr, EDIT_TOOL_NAMES as Qt, formatPathForCwd as R, KEYBINDING_DEFS as Rn, getContextWindow as Rr, VAPORWAVE_THEME as Rt, renderSession as S, INTERACTION_GUIDANCE_NO_PROMPTS as Si, computeLineDiff as Sn, AUTO_COMPACT_MIN_GROWTH_FRACTION as Sr, generateSessionTitle as St, SafeModeProvider as T, SUBAGENT_GUIDANCE as Ti, previewEditPayload as Tn, applyApiKeyEnv as Tr, listProjectFiles as Tt, buildModelCatalog as U, groupBindings as Un, openrouterDescriptor as Ur, createDiscoverySlot as Ut, runOAuthLogin as V, ensureKeybindingsFile as Vn, modelsForDescriptor as Vr, CATPPUCCIN_MACCHIATO as Vt, filterModelCatalog as W, keybindingsPath as Wn, piIdOf as Wr, DiscoveryProvider as Wt, projectUserPaths as X, SKILLS_TRIGGER as Xn, DEFAULT_AGENT_ID as Xr, resolveStoragePaths as Xt, parseMcpsFile as Y, stripJsonComments as Yn, BUILTIN_AGENTS as Yr, resolveConfig as Yt, createFileMcpCredentialStore as Z, createSkillsCompletionProvider as Zn, DEFAULT_BUDGET_EXCLUDE_TOOLS as Zr, resolveStorageDirs as Zt, turnContextSize as _, ACTIONS_WITH_CARE_DOCTRINE as _i, updateToolEventOutcomes as _n, detectPackageManager as _r, EMPTY_HINTS as _t, computeTurnAnchors as a, TODOWRITE_TOOL as ai, lastContextSizeFromTurns as an, mergeReferences as ar, splitMarkdownCodeBlocks as at, defaultSkillScanPaths as b, IDENTITY_PREFIX as bi, buildUnifiedDiff as bn, performSelfUpdate as br, truncateTrailing as bt, formatToolCall as c, createTodoTools as ci, marginTopFor as cn, buildLinearRamp as cr, PRESENT_PLAN_TOOL as ct, useSelectStyle as d, isTodoTool as di, stripSpawnTokensLine as dn, bootTick as dr, isInteractionTool as dt, accentColor as ei, deriveSessionTitle as en, createFilesCompletionProvider as er, McpAuthProvider as et, useSurfaces as f, pickActiveRunId as fi, sumRunCosts as fn, buildUpdateHint as fr, makeRequestInteraction as ft, finalizeStreamingMarkdownForOwner as g, useActiveTodos as gi, turnSelectionOwnership as gn, detectLibc as gr, useInteractionsQueue as gt, finalizeStreamingMarkdown as h, setTodosForRun as hi, toolResultText as hn, compareSemver as hr, useInteractionsActions as ht, turnAsText as i, TODOS_METADATA_KEY as ii, isVisible as in, findActiveTrigger as ir, reduceMcpAuth as it, isOnSafelist as j, mergeApprovalAndBodyOutcomes as jn, writeCredentials as jr, SettingsProvider as jt, addToSafelist as k, envSection as ki, buildEditOutcomesAnnotation as kn, removeProviderCredential as kr, SETTINGS_CHOICES as kt, ThemeProvider as l, getArchivedTodosForRun as li, saveState as ln, tryOpenBrowser as lr, buildResumedToolResultsTurn as lt, useTheme as m, selectActiveTodos as mi, toolCallPreview as mn, checkForUpdate as mr, serializeInteractionResponse as mt, deleteTurnSafely as n, singleAgentRegistry as ni, isEditErrorResult as nn, applyInsert as nr, useMcpAuthState as nt, TOOL_DISPLAY as o, TODO_STATUS_GLYPHS as oi, listSessionMeta as on, useCompletion as or, ASK_USER_TOOL as ot, useSyntaxStyles as p, pruneTodosByRun as pi, titleFromTurns as pn, useUpdateCheck as pr, pendingInteractionsFromTurns as pt, defaultMcpsConfigPaths as q, parseBindingSpec as qn, findGitRoot$1 as qr, ConfigProvider as qt, truncateTurnsAt as r, TODOREAD_TOOL as ri, isTurnHighlighted as rn, collectReferences as rr, getMcpAuthStatus as rt, displayNameFor as s, TODO_WRITE_COUNTS_METADATA_KEY as si, loadState as sn, blendHsl as sr, InteractionsProvider as st, countNeighbors as t, resolveAgentId as ti, eventsFromTurns as tn, uniqueFilesFromReferences as tr, useMcpAuthDispatch as tt, useColors as u, getTodosForRun as ui, selectableTurnIds as un, bootProfileEnabled as ur, createInteractionTools as ut, useStreamBuffer as v, COMMUNICATION_DOCTRINE as vi, applyEditPayload as vn, parseSemver as vr, clipHintsToWidth as vt, writeSessionExport as w, PLAN_MODE_DOCTRINE_NO_PROMPTS as wi, filetypeFromPath as wn, detectAuth as wr, shortChord as wt, discoverProjectSkills as x, INTERACTION_GUIDANCE as xi, computeInlineDiff as xn, resolvePlatformPackage as xr, cleanTitle as xt, buildSkillsConfig as y, DOING_TASKS_DOCTRINE as yi, buildContextualDiff as yn, performInPlaceSelfUpdate as yr, hintsLength as yt, fetchOAuthRedirect as z, KEYBINDING_DEF_BY_ACTION as zn, getModelInfo as zr, CATPPUCCIN_FRAPPE as zt };
|
|
10163
10192
|
|
|
10164
|
-
//# sourceMappingURL=turn-operations-
|
|
10193
|
+
//# sourceMappingURL=turn-operations-D-OQYUgS.js.map
|