zidane 5.1.1 → 5.1.3
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.js +1 -1
- package/dist/tui.d.ts.map +1 -1
- package/dist/tui.js +2 -38
- package/dist/tui.js.map +1 -1
- package/dist/{turn-operations-lsUMITng.js → turn-operations-2cgnXS2d.js} +19 -4
- package/dist/turn-operations-2cgnXS2d.js.map +1 -0
- package/package.json +1 -1
- package/dist/turn-operations-lsUMITng.js.map +0 -1
|
@@ -2596,9 +2596,24 @@ function makeModelsResolver(registry) {
|
|
|
2596
2596
|
};
|
|
2597
2597
|
}
|
|
2598
2598
|
function resolveResumeProvider(state, providers, storageDir) {
|
|
2599
|
-
if (!state.lastProvider)
|
|
2600
|
-
|
|
2601
|
-
|
|
2599
|
+
if (!state.lastProvider) {
|
|
2600
|
+
if (process.env.ZIDANE_DEBUG) process.stderr.write(`[zidane/chat] resume: no \`lastProvider\` in state — auth screen will show. (Has \`${storageDir}/state.json\` been deleted or never written?)\n`);
|
|
2601
|
+
return null;
|
|
2602
|
+
}
|
|
2603
|
+
if (!providers[state.lastProvider]) {
|
|
2604
|
+
if (process.env.ZIDANE_DEBUG) {
|
|
2605
|
+
const known = Object.keys(providers).join(", ") || "<none>";
|
|
2606
|
+
process.stderr.write(`[zidane/chat] resume: \`state.lastProvider="${state.lastProvider}"\` is not in the registry. Known providers: ${known}.\n`);
|
|
2607
|
+
}
|
|
2608
|
+
return null;
|
|
2609
|
+
}
|
|
2610
|
+
const detected = detectAuth(storageDir, providers);
|
|
2611
|
+
const match = detected.find((p) => p.key === state.lastProvider && p.available);
|
|
2612
|
+
if (!match && process.env.ZIDANE_DEBUG) {
|
|
2613
|
+
const entry = detected.find((p) => p.key === state.lastProvider);
|
|
2614
|
+
process.stderr.write(`[zidane/chat] resume: \`${state.lastProvider}\` is in the registry but has no available auth method (apikey / env / oauth). Detection: ${entry ? JSON.stringify(entry.methods) : "<provider missing from detection>"}.\n`);
|
|
2615
|
+
}
|
|
2616
|
+
return match ?? null;
|
|
2602
2617
|
}
|
|
2603
2618
|
function pickInitial(auth, providers, state) {
|
|
2604
2619
|
const descriptor = providers[auth.key];
|
|
@@ -6051,4 +6066,4 @@ function countNeighbors(turnIds, turnId) {
|
|
|
6051
6066
|
//#endregion
|
|
6052
6067
|
export { getMcpAuthStatus as $, BUILD_AGENT as $n, toolResultText as $t, isOnSafelist as A, tryOpenBrowser as An, VAPORWAVE_THEME as At, filterModelCatalog as B, BUILTIN_PROVIDERS as Bn, eventsFromTurns as Bt, writeSessionExport as C, createFilesCompletionProvider as Cn, SettingsProvider as Ct, IMPLICITLY_SAFE_TOOLS as D, findActiveTrigger as Dn, DEFAULT_THEME as Dt, useSafeModeQueue as E, collectReferences as En, BUILTIN_THEMES as Et, writeProjects as F, readCredentials as Fn, ConfigProvider as Ft, parseMcpsFile as G, effectiveContextWindow as Gn, listSessionMeta as Gt, buildMcpServers as H, anthropicDescriptor as Hn, isTurnHighlighted as Ht, splitPromptSegments as I, readProviderCredential as In, useConfig as It, mcpCredentialsPath as J, modelSupportsReasoning as Jn, saveState as Jt, projectUserPaths as K, getContextWindow as Kn, loadState as Kt, runOAuthLogin as L, removeProviderCredential as Ln, resolveConfig as Lt, projectsFilePath as M, detectAuth as Mn, CATPPUCCIN_LATTE as Mt, readProjects as N, applyApiKeyEnv as Nn, CATPPUCCIN_MACCHIATO as Nt, addToSafelist as O, mergeReferences as On, resolveChipColor as Ot, suggestSafelistEntry as P, credentialsPath as Pn, CATPPUCCIN_MOCHA as Pt, useMcpAuthState as Q, piIdOf as Qn, toolCallPreview as Qt, supportsOAuth as R, setProviderCredential as Rn, createStateStore as Rt, resolveSessionExportTarget as S, FILES_TRIGGER as Sn, SETTINGS_TOGGLES as St, useSafeModeActions as T, applyInsert as Tn, useSettings as Tt, defaultMcpsConfigPaths as U, cerebrasDescriptor as Un, isVisible as Ut, indexOfEntry as V, OUTPUT_RESERVE_TOKENS as Vn, isEditErrorResult as Vt, discoverProjectMcps as W, credKeyOf as Wn, lastContextSizeFromTurns as Wt, McpAuthProvider as X, openaiDescriptor as Xn, stripSpawnTokensLine as Xt, patchMcpCredential as Y, modelsForDescriptor as Yn, selectableTurnIds as Yt, useMcpAuthDispatch as Z, openrouterDescriptor as Zn, titleFromTurns as Zt, useStreamBuffer as _, readKeybindings as _n, envSection as _r, shortId as _t, TOOL_DISPLAY as a, filetypeFromPath as an, resolveAgentId as ar, createInteractionTools as at, discoverProjectSkills as b, createSkillsCompletionProvider as bn, DEFAULT_SETTINGS as bt, ThemeProvider as c, findGitRoot$1 as cn, COMMUNICATION_DOCTRINE as cr, pendingInteractionsFromTurns as ct, useSurfaces as d, KEYBINDING_DEF_BY_ACTION as dn, INTERACTION_GUIDANCE as dr, useInteractionsQueue as dt, turnSelectionOwnership as en, BUILTIN_AGENTS as er, reduceMcpAuth as et, useSyntaxStyles as f, ensureKeybindingsFile as fn, PLAN_MODE_DOCTRINE as fr, cleanTitle as ft, turnContextSize as g, parseBindingSpec as gn, buildPlanSystem as gr, fmtTokens as gt, finalizeStreamingMarkdownForOwner as h, mergeKeybindings as hn, buildBuildSystem as hr, compactPath as ht, turnAsText as i, extractEditPayload as in, accentColor as ir, buildResumedToolResultsTurn as it, matchesSafelistEntry as j, shouldAutoCompact as jn, CATPPUCCIN_FRAPPE as jt, getSafelist as k, useCompletion as kn, resolveTheme as kt, useColors as l, DEFAULT_KEYBINDINGS as ln, DOING_TASKS_DOCTRINE as lr, serializeInteractionResponse as lt, finalizeStreamingMarkdown as m, matchesBinding as mn, TOKEN_DISCIPLINE_DOCTRINE as mr, ageString as mt, deleteTurnSafely as n, computeInlineDiff as nn, DEFAULT_PERSIST_EXCLUDE_TOOLS as nr, InteractionsProvider as nt, displayNameFor as o, splitLines as on, singleAgentRegistry as or, isInteractionTool as ot, useTheme as p, keybindingsPath as pn, SUBAGENT_GUIDANCE as pr, generateSessionTitle as pt, createFileMcpCredentialStore as q, getModelInfo as qn, marginTopFor as qt, truncateTurnsAt as r, computeLineDiff as rn, PLAN_AGENT as rr, PRESENT_PLAN_TOOL as rt, formatToolCall as s, tokenize as sn, ACTIONS_WITH_CARE_DOCTRINE as sr, makeRequestInteraction as st, countNeighbors as t, buildUnifiedDiff as tn, DEFAULT_AGENT_ID as tr, ASK_USER_TOOL as tt, useSelectStyle as u, KEYBINDING_DEFS as un, IDENTITY_PREFIX as ur, useInteractionsActions as ut, buildSkillsConfig as v, stripJsonComments as vn, listProjectFiles as vt, SafeModeProvider as w, uniqueFilesFromReferences as wn, clampFps as wt, renderSession as x, uniqueSkillNamesFromReferences as xn, SETTINGS_CHOICES as xt, defaultSkillScanPaths as y, SKILLS_TRIGGER as yn, useEnabledToggleSet as yt, buildModelCatalog as z, writeCredentials as zn, deriveSessionTitle as zt };
|
|
6053
6068
|
|
|
6054
|
-
//# sourceMappingURL=turn-operations-
|
|
6069
|
+
//# sourceMappingURL=turn-operations-2cgnXS2d.js.map
|