zidane 5.0.3 → 5.0.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/chat.d.ts +59 -2
- package/dist/chat.d.ts.map +1 -1
- package/dist/chat.js +2 -2
- package/dist/{theme-pJv47erq.d.ts → theme-C3JHZ5y9.d.ts} +31 -3
- package/dist/theme-C3JHZ5y9.d.ts.map +1 -0
- package/dist/tui.d.ts +25 -15
- package/dist/tui.d.ts.map +1 -1
- package/dist/tui.js +529 -75
- package/dist/tui.js.map +1 -1
- package/dist/{turn-operations-CHS2Prne.js → turn-operations-DZ3TrljX.js} +100 -8
- package/dist/turn-operations-DZ3TrljX.js.map +1 -0
- package/package.json +1 -1
- package/dist/theme-pJv47erq.d.ts.map +0 -1
- package/dist/turn-operations-CHS2Prne.js.map +0 -1
package/dist/chat.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { D as SessionData, Dt as SessionTurn, Lt as TurnUsage, U as Provider, b as SkillConfig, w as SkillsConfig } from "./agent-JhicgLOV.js";
|
|
2
2
|
import { m as SourcedScanPath } from "./index-t_W9i7Ql.js";
|
|
3
|
-
import { $ as Settings, A as useEnabledToggleSet, At as
|
|
3
|
+
import { $ as Settings, A as useEnabledToggleSet, At as AgentProfile, B as lastContextSizeFromTurns, C as DiscoveredMcp, Ct as getModelInfo, D as parseMcpsFile, Dt as openrouterDescriptor, E as discoverProjectMcps, Et as openaiDescriptor, F as StateStoreApi, Ft as PLAN_AGENT, G as stripSpawnTokensLine, H as loadState, I as TuiState, It as resolveAgentId, J as toolResultText, K as titleFromTurns, L as createStateStore, Lt as singleAgentRegistry, M as ProviderRegistry, Mt as BUILD_AGENT, N as ResolvedConfig, Nt as BUILTIN_AGENTS, O as EnabledAllowlistKey, Ot as piIdOf, P as resolveConfig, Pt as DEFAULT_AGENT_ID, Q as SessionMeta, R as deriveSessionTitle, S as splitPromptSegments, St as getContextWindow, T as defaultMcpsConfigPaths, Tt as modelsForDescriptor, U as saveState, V as listSessionMeta, W as selectableTurnIds, X as Picked, Y as Owner, Z as Screen, _ as SafeModeProvider, _t as ModelInfo, a as SyntaxStyles, at as CompletionReference, b as PromptSegment, bt as cerebrasDescriptor, c as ThemeColors, ct as collectReferences, d as resolveChipColor, dt as useCompletion, et as StreamEvent, f as resolveTheme, ft as AuthMethod, g as SafeModeActions, gt as BUILTIN_PROVIDERS, h as RequestApproval, ht as detectAuth, i as DEFAULT_THEME, it as CompletionProvider, j as ChatOptions, jt as AgentRegistry, k as EnabledToggleSet, kt as AgentAccent, l as ThemeSelect, lt as findActiveTrigger, m as ApprovalRequest, mt as ProviderKey, n as ChipColor, nt as CompletionContext, o as SyntaxTokenStyle, ot as CompletionState, p as ApprovalDecision, pt as ProviderAuth, q as toolCallPreview, r as ChipColorMap, rt as CompletionItem, s as Theme, st as applyInsert, t as BUILTIN_THEMES, tt as ActiveTrigger, u as ThemeSurfaces, ut as mergeReferences, v as useSafeModeActions, vt as ProviderDescriptor, w as buildMcpServers, wt as modelSupportsReasoning, x as PromptSegmentRef, xt as credKeyOf, y as useSafeModeQueue, yt as anthropicDescriptor, z as eventsFromTurns } from "./theme-C3JHZ5y9.js";
|
|
4
4
|
import { OAuthCredentials } from "@mariozechner/pi-ai/oauth";
|
|
5
5
|
import { Dispatch, ReactNode, SetStateAction } from "react";
|
|
6
6
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
@@ -220,6 +220,63 @@ declare function generateSessionTitle({
|
|
|
220
220
|
*/
|
|
221
221
|
declare function cleanTitle(raw: string): string;
|
|
222
222
|
//#endregion
|
|
223
|
+
//#region src/chat/model-catalog.d.ts
|
|
224
|
+
/** A model entry as displayed in the cross-provider picker. */
|
|
225
|
+
interface CatalogEntry {
|
|
226
|
+
providerKey: ProviderKey;
|
|
227
|
+
providerLabel: string;
|
|
228
|
+
model: ModelInfo;
|
|
229
|
+
/**
|
|
230
|
+
* Pre-computed lowercase corpus for substring search across the
|
|
231
|
+
* provider key, label, model id, and display name. Built once at
|
|
232
|
+
* catalog-assembly time so filtering on every keystroke is
|
|
233
|
+
* O(catalogSize × queryLength), not O(catalogSize × fieldCount ×
|
|
234
|
+
* lowercase-overhead × queryLength).
|
|
235
|
+
*/
|
|
236
|
+
searchCorpus: string;
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Build the unified catalog from a list of available providers.
|
|
240
|
+
*
|
|
241
|
+
* Provider order is preserved (callers typically pass the picker order
|
|
242
|
+
* — alphabetical, auth-detection order, etc.); model order inside each
|
|
243
|
+
* provider matches whatever `modelsFor` returns. The current selection
|
|
244
|
+
* (when set) is bubbled to the top of its provider's section so it
|
|
245
|
+
* shows first without disturbing relative ordering elsewhere.
|
|
246
|
+
*
|
|
247
|
+
* `modelsFor` is injected (not imported from `./providers`) so the same
|
|
248
|
+
* helper works with hosts that supply their own model resolver via
|
|
249
|
+
* `ResolvedConfig.modelsFor`.
|
|
250
|
+
*/
|
|
251
|
+
declare function buildModelCatalog(opts: {
|
|
252
|
+
providers: readonly ProviderAuth[];
|
|
253
|
+
modelsFor: (key: ProviderKey) => readonly ModelInfo[]; /** Optional currently-selected pair — promoted to the top of its provider group. */
|
|
254
|
+
current?: {
|
|
255
|
+
providerKey: ProviderKey;
|
|
256
|
+
modelId: string;
|
|
257
|
+
} | null;
|
|
258
|
+
}): CatalogEntry[];
|
|
259
|
+
/**
|
|
260
|
+
* Filter `catalog` by a user query. Empty / whitespace-only queries
|
|
261
|
+
* pass everything through unchanged (`O(1)` short-circuit). Multi-term
|
|
262
|
+
* queries (space-separated) require EVERY term to appear somewhere in
|
|
263
|
+
* the entry's search corpus — so `"claude opus"` matches `claude-opus-4`
|
|
264
|
+
* regardless of how the words are interleaved with provider names.
|
|
265
|
+
*
|
|
266
|
+
* Match is case-insensitive (the corpus is pre-lowercased; the query
|
|
267
|
+
* is lowercased once per call).
|
|
268
|
+
*/
|
|
269
|
+
declare function filterModelCatalog(catalog: readonly CatalogEntry[], query: string): CatalogEntry[];
|
|
270
|
+
/**
|
|
271
|
+
* Find a catalog entry's index by its `{providerKey, modelId}` tuple.
|
|
272
|
+
* Returns `-1` when not present. Useful when re-rendering the picker
|
|
273
|
+
* (a query just narrowed the list, where did the selection land?).
|
|
274
|
+
*/
|
|
275
|
+
declare function indexOfEntry(catalog: readonly CatalogEntry[], target: {
|
|
276
|
+
providerKey: ProviderKey;
|
|
277
|
+
modelId: string;
|
|
278
|
+
} | null | undefined): number;
|
|
279
|
+
//#endregion
|
|
223
280
|
//#region src/chat/oauth.d.ts
|
|
224
281
|
declare function supportsOAuth(descriptor: ProviderDescriptor): boolean;
|
|
225
282
|
interface OAuthFlowOptions {
|
|
@@ -632,5 +689,5 @@ declare function countNeighbors(turnIds: readonly string[], turnId: string): {
|
|
|
632
689
|
after: number;
|
|
633
690
|
} | null;
|
|
634
691
|
//#endregion
|
|
635
|
-
export { type ActiveTrigger, type AgentAccent, type AgentProfile, type AgentRegistry, type ApiKeyCredential, type ApprovalDecision, type ApprovalRequest, type AuthMethod, BUILD_AGENT, BUILTIN_AGENTS, BUILTIN_PROVIDERS, BUILTIN_THEMES, type BooleanSettingKey, CATPPUCCIN_FRAPPE, CATPPUCCIN_LATTE, CATPPUCCIN_MACCHIATO, CATPPUCCIN_MOCHA, type ChatOptions, type ChipColor, type ChipColorMap, type CompletionContext, type CompletionItem, type CompletionProvider, type CompletionReference, type CompletionState, ConfigProvider, type CredentialsFile, DEFAULT_AGENT_ID, DEFAULT_SETTINGS, DEFAULT_THEME, type DiscoveredMcp, type EnabledAllowlistKey, type EnabledToggleSet, FILES_TRIGGER, type FileEntry, type GenerateSessionTitleOptions, IMPLICITLY_SAFE_TOOLS, type ListProjectFilesOptions, type ModelInfo, type OAuthCredential, type OAuthFlowOptions, type Owner, PLAN_AGENT, type Picked, type ProjectEntry, type ProjectsFile, type PromptSegment, type PromptSegmentRef, type ProviderAuth, type ProviderCredential, type ProviderDescriptor, type ProviderKey, type ProviderRegistry, type RequestApproval, type ResolvedConfig, SETTINGS_CHOICES, SETTINGS_TOGGLES, SKILLS_TRIGGER, type SafeModeActions, SafeModeProvider, type Screen, type SessionExportAnchor, type SessionExportFormat, type SessionExportTarget, type SessionMeta, type Settings, type SettingsChoice, SettingsProvider, type SettingsToggle, type StateStoreApi, type StreamBuffer, type StreamEvent, type StreamSource, type SyntaxStyles, type SyntaxTokenStyle, type Theme, type ThemeColors, ThemeProvider, type ThemeSelect, type ThemeSurfaces, type TuiState, VAPORWAVE_THEME, addToSafelist, ageString, anthropicDescriptor, applyApiKeyEnv, applyInsert, buildMcpServers, buildSkillsConfig, cerebrasDescriptor, cleanTitle, collectReferences, countNeighbors, createFilesCompletionProvider, createSkillsCompletionProvider, createStateStore, credKeyOf, credentialsPath, defaultMcpsConfigPaths, defaultSkillScanPaths, deleteTurnSafely, deriveSessionTitle, detectAuth, discoverProjectMcps, discoverProjectSkills, eventsFromTurns, finalizeStreamingMarkdown, finalizeStreamingMarkdownForOwner, findActiveTrigger, fmtTokens, generateSessionTitle, getContextWindow, getSafelist, isOnSafelist, lastContextSizeFromTurns, listProjectFiles, listSessionMeta, loadState, matchesSafelistEntry, mergeReferences, modelsForDescriptor, openaiDescriptor, openrouterDescriptor, parseMcpsFile, piIdOf, projectsFilePath, readCredentials, readProjects, readProviderCredential, removeProviderCredential, renderSession, resolveAgentId, resolveChipColor, resolveConfig, resolveSessionExportTarget, resolveTheme, runOAuthLogin, saveState, selectableTurnIds, setProviderCredential, shortId, singleAgentRegistry, splitPromptSegments, stripSpawnTokensLine, suggestSafelistEntry, supportsOAuth, titleFromTurns, toolCallPreview, toolResultText, truncateTurnsAt, turnAsText, turnContextSize, uniqueFilesFromReferences, uniqueSkillNamesFromReferences, useColors, useCompletion, useConfig, useEnabledToggleSet, useSafeModeActions, useSafeModeQueue, useSelectStyle, useSettings, useStreamBuffer, useSurfaces, useSyntaxStyles, useTheme, writeCredentials, writeProjects, writeSessionExport };
|
|
692
|
+
export { type ActiveTrigger, type AgentAccent, type AgentProfile, type AgentRegistry, type ApiKeyCredential, type ApprovalDecision, type ApprovalRequest, type AuthMethod, BUILD_AGENT, BUILTIN_AGENTS, BUILTIN_PROVIDERS, BUILTIN_THEMES, type BooleanSettingKey, CATPPUCCIN_FRAPPE, CATPPUCCIN_LATTE, CATPPUCCIN_MACCHIATO, CATPPUCCIN_MOCHA, type CatalogEntry, type ChatOptions, type ChipColor, type ChipColorMap, type CompletionContext, type CompletionItem, type CompletionProvider, type CompletionReference, type CompletionState, ConfigProvider, type CredentialsFile, DEFAULT_AGENT_ID, DEFAULT_SETTINGS, DEFAULT_THEME, type DiscoveredMcp, type EnabledAllowlistKey, type EnabledToggleSet, FILES_TRIGGER, type FileEntry, type GenerateSessionTitleOptions, IMPLICITLY_SAFE_TOOLS, type ListProjectFilesOptions, type ModelInfo, type OAuthCredential, type OAuthFlowOptions, type Owner, PLAN_AGENT, type Picked, type ProjectEntry, type ProjectsFile, type PromptSegment, type PromptSegmentRef, type ProviderAuth, type ProviderCredential, type ProviderDescriptor, type ProviderKey, type ProviderRegistry, type RequestApproval, type ResolvedConfig, SETTINGS_CHOICES, SETTINGS_TOGGLES, SKILLS_TRIGGER, type SafeModeActions, SafeModeProvider, type Screen, type SessionExportAnchor, type SessionExportFormat, type SessionExportTarget, type SessionMeta, type Settings, type SettingsChoice, SettingsProvider, type SettingsToggle, type StateStoreApi, type StreamBuffer, type StreamEvent, type StreamSource, type SyntaxStyles, type SyntaxTokenStyle, type Theme, type ThemeColors, ThemeProvider, type ThemeSelect, type ThemeSurfaces, type TuiState, VAPORWAVE_THEME, addToSafelist, ageString, anthropicDescriptor, applyApiKeyEnv, applyInsert, buildMcpServers, buildModelCatalog, buildSkillsConfig, cerebrasDescriptor, cleanTitle, collectReferences, countNeighbors, createFilesCompletionProvider, createSkillsCompletionProvider, createStateStore, credKeyOf, credentialsPath, defaultMcpsConfigPaths, defaultSkillScanPaths, deleteTurnSafely, deriveSessionTitle, detectAuth, discoverProjectMcps, discoverProjectSkills, eventsFromTurns, filterModelCatalog, finalizeStreamingMarkdown, finalizeStreamingMarkdownForOwner, findActiveTrigger, fmtTokens, generateSessionTitle, getContextWindow, getModelInfo, getSafelist, indexOfEntry, isOnSafelist, lastContextSizeFromTurns, listProjectFiles, listSessionMeta, loadState, matchesSafelistEntry, mergeReferences, modelSupportsReasoning, modelsForDescriptor, openaiDescriptor, openrouterDescriptor, parseMcpsFile, piIdOf, projectsFilePath, readCredentials, readProjects, readProviderCredential, removeProviderCredential, renderSession, resolveAgentId, resolveChipColor, resolveConfig, resolveSessionExportTarget, resolveTheme, runOAuthLogin, saveState, selectableTurnIds, setProviderCredential, shortId, singleAgentRegistry, splitPromptSegments, stripSpawnTokensLine, suggestSafelistEntry, supportsOAuth, titleFromTurns, toolCallPreview, toolResultText, truncateTurnsAt, turnAsText, turnContextSize, uniqueFilesFromReferences, uniqueSkillNamesFromReferences, useColors, useCompletion, useConfig, useEnabledToggleSet, useSafeModeActions, useSafeModeQueue, useSelectStyle, useSettings, useStreamBuffer, useSurfaces, useSyntaxStyles, useTheme, writeCredentials, writeProjects, writeSessionExport };
|
|
636
693
|
//# sourceMappingURL=chat.d.ts.map
|
package/dist/chat.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.d.ts","names":[],"sources":["../src/chat/files-discovery.ts","../src/chat/completion-files.ts","../src/chat/completion-skills.ts","../src/chat/config-context.tsx","../src/chat/credentials.ts","../src/chat/format.ts","../src/chat/generate-title.ts","../src/chat/oauth.ts","../src/chat/safe-mode.ts","../src/chat/session-export.ts","../src/chat/settings-context.tsx","../src/chat/skills-discovery.ts","../src/chat/streaming.ts","../src/chat/theme-context.tsx","../src/chat/themes/catppuccin.ts","../src/chat/themes/vaporwave.ts","../src/chat/turn-operations.ts"],"mappings":";;;;;;;;;;;;;;;;AAoBA;;;;;;UAAiB,SAAA;EAMT;EAJN,IAAA;EAiDe;EA/Cf,IAAA;;EAE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AAO,eAAA;AAAA,iBAQzC,qBAAA,CACd,OAAA,UACA,UAAA,EAAY,kBAAA,EACZ,IAAA,EAAM,kBAAA;AAAA,iBAOQ,wBAAA,CAAyB,OAAA,UAAiB,UAAA,EAAY,kBAAA;;;;;;;;;;;;AFjGtE;;iBEuHgB,cAAA,CACd,OAAA,UACA,QAAA,EAAU,QAAA,CAAS,MAAA,SAAe,kBAAA;;;;iBC3IpB,SAAA,CAAU,CAAA;;iBASV,SAAA,CAAU,EAAA,UAAY,GAAA;;iBAatB,OAAA,CAAQ,EAAA;;;UCCP,2BAAA;EACf,QAAA,EAAU,QAAA;ENDV;EMGA,KAAA;ENHM;EMKN,KAAA,WAAgB,WAAA;ENwCsB;EMtCtC,QAAA;EN4CoB;EM1CpB,MAAA,GAAS,WAAA;AAAA;;;;;ANsDX;;;;;;iBMzCsB,oBAAA,CAAA;EACpB,QAAA;EACA,KAAA;EACA,KAAA;EACA,QAAA;EACA;AAAA,GACC,2BAAA,GAA8B,OAAA;;;;;;;;;;;ALlCjC;;;;iBK4HgB,UAAA,CAAW,GAAA;;;
|
|
1
|
+
{"version":3,"file":"chat.d.ts","names":[],"sources":["../src/chat/files-discovery.ts","../src/chat/completion-files.ts","../src/chat/completion-skills.ts","../src/chat/config-context.tsx","../src/chat/credentials.ts","../src/chat/format.ts","../src/chat/generate-title.ts","../src/chat/model-catalog.ts","../src/chat/oauth.ts","../src/chat/safe-mode.ts","../src/chat/session-export.ts","../src/chat/settings-context.tsx","../src/chat/skills-discovery.ts","../src/chat/streaming.ts","../src/chat/theme-context.tsx","../src/chat/themes/catppuccin.ts","../src/chat/themes/vaporwave.ts","../src/chat/turn-operations.ts"],"mappings":";;;;;;;;;;;;;;;;AAoBA;;;;;;UAAiB,SAAA;EAMT;EAJN,IAAA;EAiDe;EA/Cf,IAAA;;EAEA,MAAA;AAAA;;UA6Ce,uBAAA;EAMN;EAJT,GAAA;EAIoB;EAFpB,QAAA;EAcoC;EAZpC,MAAA,GAAS,WA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AA,CAAgB,KAAA,WAAgB,WAAA,IAAe,MAAA,WAAiB,WAAA;;;;;;;;;;;;;AhBbhF;;;;;iBgBsCgB,gBAAA,CAAiB,KAAA,WAAgB,WAAA,IAAe,MAAA,WAAiB,WAAA;;;;;;;;;iBAwDjE,UAAA,CAAW,IAAA,EAAM,WAAA;;;;;;iBA6BjB,cAAA,CACd,OAAA,qBACA,MAAA;EACG,MAAA;EAAgB,KAAA;AAAA"}
|
package/dist/chat.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { BUILD_AGENT, BUILTIN_AGENTS, BUILTIN_PROVIDERS, BUILTIN_THEMES, CATPPUCCIN_FRAPPE, CATPPUCCIN_LATTE, CATPPUCCIN_MACCHIATO, CATPPUCCIN_MOCHA, ConfigProvider, DEFAULT_AGENT_ID, DEFAULT_SETTINGS, DEFAULT_THEME, FILES_TRIGGER, IMPLICITLY_SAFE_TOOLS, PLAN_AGENT, SETTINGS_CHOICES, SETTINGS_TOGGLES, SKILLS_TRIGGER, SafeModeProvider, SettingsProvider, ThemeProvider, VAPORWAVE_THEME, addToSafelist, ageString, anthropicDescriptor, applyApiKeyEnv, applyInsert, buildMcpServers, buildSkillsConfig, cerebrasDescriptor, cleanTitle, collectReferences, countNeighbors, createFilesCompletionProvider, createSkillsCompletionProvider, createStateStore, credKeyOf, credentialsPath, defaultMcpsConfigPaths, defaultSkillScanPaths, deleteTurnSafely, deriveSessionTitle, detectAuth, discoverProjectMcps, discoverProjectSkills, eventsFromTurns, finalizeStreamingMarkdown, finalizeStreamingMarkdownForOwner, findActiveTrigger, fmtTokens, generateSessionTitle, getContextWindow, getSafelist, isOnSafelist, lastContextSizeFromTurns, listProjectFiles, listSessionMeta, loadState, matchesSafelistEntry, mergeReferences, modelsForDescriptor, openaiDescriptor, openrouterDescriptor, parseMcpsFile, piIdOf, projectsFilePath, readCredentials, readProjects, readProviderCredential, removeProviderCredential, renderSession, resolveAgentId, resolveChipColor, resolveConfig, resolveSessionExportTarget, resolveTheme, runOAuthLogin, saveState, selectableTurnIds, setProviderCredential, shortId, singleAgentRegistry, splitPromptSegments, stripSpawnTokensLine, suggestSafelistEntry, supportsOAuth, titleFromTurns, toolCallPreview, toolResultText, truncateTurnsAt, turnAsText, turnContextSize, uniqueFilesFromReferences, uniqueSkillNamesFromReferences, useColors, useCompletion, useConfig, useEnabledToggleSet, useSafeModeActions, useSafeModeQueue, useSelectStyle, useSettings, useStreamBuffer, useSurfaces, useSyntaxStyles, useTheme, writeCredentials, writeProjects, writeSessionExport };
|
|
1
|
+
import { $ as SETTINGS_TOGGLES, $t as modelsForDescriptor, A as readProjects, At as FILES_TRIGGER, B as defaultMcpsConfigPaths, Bt as credentialsPath, C as useSafeModeQueue, Ct as titleFromTurns, D as isOnSafelist, Dt as SKILLS_TRIGGER, E as getSafelist, F as supportsOAuth, Ft as findActiveTrigger, G as ageString, Gt as writeCredentials, H as parseMcpsFile, Ht as readProviderCredential, I as buildModelCatalog, It as mergeReferences, J as shortId, Jt as cerebrasDescriptor, Kt as BUILTIN_PROVIDERS, L as filterModelCatalog, Lt as useCompletion, M as writeProjects, Mt as uniqueFilesFromReferences, N as splitPromptSegments, Nt as applyInsert, O as matchesSafelistEntry, Ot as createSkillsCompletionProvider, P as runOAuthLogin, Pt as collectReferences, Q as SETTINGS_CHOICES, Qt as modelSupportsReasoning, R as indexOfEntry, Rt as detectAuth, S as useSafeModeActions, St as stripSpawnTokensLine, T as addToSafelist, Tt as toolResultText, U as cleanTitle, Ut as removeProviderCredential, V as discoverProjectMcps, Vt as readCredentials, W as generateSessionTitle, Wt as setProviderCredential, X as useEnabledToggleSet, Xt as getContextWindow, Y as listProjectFiles, Yt as credKeyOf, Z as DEFAULT_SETTINGS, Zt as getModelInfo, _ as discoverProjectSkills, _t as lastContextSizeFromTurns, a as ThemeProvider, an as DEFAULT_AGENT_ID, at as resolveTheme, b as writeSessionExport, bt as saveState, c as useSurfaces, cn as singleAgentRegistry, ct as CATPPUCCIN_LATTE, d as finalizeStreamingMarkdown, dt as ConfigProvider, en as openaiDescriptor, et as SettingsProvider, f as finalizeStreamingMarkdownForOwner, ft as useConfig, g as defaultSkillScanPaths, gt as eventsFromTurns, h as buildSkillsConfig, ht as deriveSessionTitle, i as turnAsText, in as BUILTIN_AGENTS, it as resolveChipColor, j as suggestSafelistEntry, jt as createFilesCompletionProvider, k as projectsFilePath, kt as uniqueSkillNamesFromReferences, l as useSyntaxStyles, lt as CATPPUCCIN_MACCHIATO, m as useStreamBuffer, mt as createStateStore, n as deleteTurnSafely, nn as piIdOf, nt as BUILTIN_THEMES, o as useColors, on as PLAN_AGENT, ot as VAPORWAVE_THEME, p as turnContextSize, pt as resolveConfig, q as fmtTokens, qt as anthropicDescriptor, r as truncateTurnsAt, rn as BUILD_AGENT, rt as DEFAULT_THEME, s as useSelectStyle, sn as resolveAgentId, st as CATPPUCCIN_FRAPPE, t as countNeighbors, tn as openrouterDescriptor, tt as useSettings, u as useTheme, ut as CATPPUCCIN_MOCHA, v as renderSession, vt as listSessionMeta, w as IMPLICITLY_SAFE_TOOLS, wt as toolCallPreview, x as SafeModeProvider, xt as selectableTurnIds, y as resolveSessionExportTarget, yt as loadState, z as buildMcpServers, zt as applyApiKeyEnv } from "./turn-operations-DZ3TrljX.js";
|
|
2
|
+
export { BUILD_AGENT, BUILTIN_AGENTS, BUILTIN_PROVIDERS, BUILTIN_THEMES, CATPPUCCIN_FRAPPE, CATPPUCCIN_LATTE, CATPPUCCIN_MACCHIATO, CATPPUCCIN_MOCHA, ConfigProvider, DEFAULT_AGENT_ID, DEFAULT_SETTINGS, DEFAULT_THEME, FILES_TRIGGER, IMPLICITLY_SAFE_TOOLS, PLAN_AGENT, SETTINGS_CHOICES, SETTINGS_TOGGLES, SKILLS_TRIGGER, SafeModeProvider, SettingsProvider, ThemeProvider, VAPORWAVE_THEME, addToSafelist, ageString, anthropicDescriptor, applyApiKeyEnv, applyInsert, buildMcpServers, buildModelCatalog, buildSkillsConfig, cerebrasDescriptor, cleanTitle, collectReferences, countNeighbors, createFilesCompletionProvider, createSkillsCompletionProvider, createStateStore, credKeyOf, credentialsPath, defaultMcpsConfigPaths, defaultSkillScanPaths, deleteTurnSafely, deriveSessionTitle, detectAuth, discoverProjectMcps, discoverProjectSkills, eventsFromTurns, filterModelCatalog, finalizeStreamingMarkdown, finalizeStreamingMarkdownForOwner, findActiveTrigger, fmtTokens, generateSessionTitle, getContextWindow, getModelInfo, getSafelist, indexOfEntry, isOnSafelist, lastContextSizeFromTurns, listProjectFiles, listSessionMeta, loadState, matchesSafelistEntry, mergeReferences, modelSupportsReasoning, modelsForDescriptor, openaiDescriptor, openrouterDescriptor, parseMcpsFile, piIdOf, projectsFilePath, readCredentials, readProjects, readProviderCredential, removeProviderCredential, renderSession, resolveAgentId, resolveChipColor, resolveConfig, resolveSessionExportTarget, resolveTheme, runOAuthLogin, saveState, selectableTurnIds, setProviderCredential, shortId, singleAgentRegistry, splitPromptSegments, stripSpawnTokensLine, suggestSafelistEntry, supportsOAuth, titleFromTurns, toolCallPreview, toolResultText, truncateTurnsAt, turnAsText, turnContextSize, uniqueFilesFromReferences, uniqueSkillNamesFromReferences, useColors, useCompletion, useConfig, useEnabledToggleSet, useSafeModeActions, useSafeModeQueue, useSelectStyle, useSettings, useStreamBuffer, useSurfaces, useSyntaxStyles, useTheme, writeCredentials, writeProjects, writeSessionExport };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Dt as SessionTurn, Nt as ToolResultContent, O as SessionRun, U as Provider, ht as McpServerConfig, k as SessionStore } from "./agent-JhicgLOV.js";
|
|
1
|
+
import { At as ThinkingLevel, Dt as SessionTurn, Nt as ToolResultContent, O as SessionRun, U as Provider, ht as McpServerConfig, k as SessionStore } from "./agent-JhicgLOV.js";
|
|
2
2
|
import { t as Preset } from "./index-2yLUyTbc.js";
|
|
3
3
|
import { OAuthProviderInterface } from "@mariozechner/pi-ai/oauth";
|
|
4
4
|
import { ReactNode } from "react";
|
|
@@ -182,12 +182,27 @@ declare const BUILTIN_PROVIDERS: Readonly<Record<string, ProviderDescriptor>>;
|
|
|
182
182
|
* model list) — callers should hide the model picker in that case.
|
|
183
183
|
*/
|
|
184
184
|
declare function modelsForDescriptor(descriptor: ProviderDescriptor): readonly ModelInfo[];
|
|
185
|
+
/**
|
|
186
|
+
* Resolve a single model's metadata via the descriptor's model source.
|
|
187
|
+
* Mirrors {@link modelsForDescriptor} routing: descriptor's own list wins,
|
|
188
|
+
* pi-ai's registry is the fallback. Returns `null` when the model isn't
|
|
189
|
+
* known.
|
|
190
|
+
*/
|
|
191
|
+
declare function getModelInfo(descriptor: ProviderDescriptor, modelId: string): ModelInfo | null;
|
|
185
192
|
/**
|
|
186
193
|
* Look up the model's max context window via the descriptor's model source.
|
|
187
194
|
* Returns `null` when the model isn't known (custom slugs, providers without
|
|
188
195
|
* a registry); callers should hide the context indicator in that case.
|
|
189
196
|
*/
|
|
190
197
|
declare function getContextWindow(descriptor: ProviderDescriptor, modelId: string): number | null;
|
|
198
|
+
/**
|
|
199
|
+
* Whether the given model exposes a reasoning / extended-thinking knob.
|
|
200
|
+
* Drives the TUI's effort picker visibility — the `ctrl+n` shortcut and
|
|
201
|
+
* the bottom-bar `effortName` segment only surface when this is `true`.
|
|
202
|
+
* Returns `false` for unknown models (no registry entry → no advertised
|
|
203
|
+
* capability).
|
|
204
|
+
*/
|
|
205
|
+
declare function modelSupportsReasoning(descriptor: ProviderDescriptor, modelId: string): boolean;
|
|
191
206
|
//#endregion
|
|
192
207
|
//#region src/chat/auth.d.ts
|
|
193
208
|
/**
|
|
@@ -492,6 +507,13 @@ interface StreamEvent {
|
|
|
492
507
|
interface Picked {
|
|
493
508
|
provider: ProviderAuth;
|
|
494
509
|
model: string;
|
|
510
|
+
/**
|
|
511
|
+
* Reasoning effort the user selected for `model`. Only meaningful when
|
|
512
|
+
* the active model exposes reasoning (`ModelInfo.reasoning === true`);
|
|
513
|
+
* `undefined` otherwise. Forwarded to `agent.run` as `thinking` so
|
|
514
|
+
* providers route it to their per-model reasoning control.
|
|
515
|
+
*/
|
|
516
|
+
effort?: ThinkingLevel;
|
|
495
517
|
}
|
|
496
518
|
interface SessionMeta {
|
|
497
519
|
id: string;
|
|
@@ -567,6 +589,12 @@ interface TuiState {
|
|
|
567
589
|
lastSessionId?: string;
|
|
568
590
|
/** Per-provider last-used model id. */
|
|
569
591
|
lastModelByProvider?: Partial<Record<ProviderKey, string>>;
|
|
592
|
+
/**
|
|
593
|
+
* Per-model last-picked reasoning effort. Keyed by model id (not provider)
|
|
594
|
+
* so switching the same model across providers preserves the user's
|
|
595
|
+
* intent. Models without reasoning support are absent from the map.
|
|
596
|
+
*/
|
|
597
|
+
lastEffortByModel?: Record<string, ThinkingLevel>;
|
|
570
598
|
/**
|
|
571
599
|
* Last-active agent profile id (see {@link AgentRegistry}). Resumed on
|
|
572
600
|
* launch so a returning user lands back in the same mode (Build / Plan /
|
|
@@ -1198,5 +1226,5 @@ declare const BUILTIN_THEMES: Readonly<Record<string, Theme>>;
|
|
|
1198
1226
|
/** Resolve a theme id to its full `Theme`, falling back to default on unknown ids. */
|
|
1199
1227
|
declare function resolveTheme(id: string | undefined): Theme;
|
|
1200
1228
|
//#endregion
|
|
1201
|
-
export { Settings as $, useEnabledToggleSet as A,
|
|
1202
|
-
//# sourceMappingURL=theme-
|
|
1229
|
+
export { Settings as $, useEnabledToggleSet as A, AgentProfile as At, lastContextSizeFromTurns as B, DiscoveredMcp as C, getModelInfo as Ct, parseMcpsFile as D, openrouterDescriptor as Dt, discoverProjectMcps as E, openaiDescriptor as Et, StateStoreApi as F, PLAN_AGENT as Ft, stripSpawnTokensLine as G, loadState as H, TuiState as I, resolveAgentId as It, toolResultText as J, titleFromTurns as K, createStateStore as L, singleAgentRegistry as Lt, ProviderRegistry as M, BUILD_AGENT as Mt, ResolvedConfig as N, BUILTIN_AGENTS as Nt, EnabledAllowlistKey as O, piIdOf as Ot, resolveConfig as P, DEFAULT_AGENT_ID as Pt, SessionMeta as Q, deriveSessionTitle as R, splitPromptSegments as S, getContextWindow as St, defaultMcpsConfigPaths as T, modelsForDescriptor as Tt, saveState as U, listSessionMeta as V, selectableTurnIds as W, Picked as X, Owner as Y, Screen as Z, SafeModeProvider as _, ModelInfo as _t, SyntaxStyles as a, CompletionReference as at, PromptSegment as b, cerebrasDescriptor as bt, ThemeColors as c, collectReferences as ct, resolveChipColor as d, useCompletion as dt, StreamEvent as et, resolveTheme as f, AuthMethod as ft, SafeModeActions as g, BUILTIN_PROVIDERS as gt, RequestApproval as h, detectAuth as ht, DEFAULT_THEME as i, CompletionProvider as it, ChatOptions as j, AgentRegistry as jt, EnabledToggleSet as k, AgentAccent as kt, ThemeSelect as l, findActiveTrigger as lt, ApprovalRequest as m, ProviderKey as mt, ChipColor as n, CompletionContext as nt, SyntaxTokenStyle as o, CompletionState as ot, ApprovalDecision as p, ProviderAuth as pt, toolCallPreview as q, ChipColorMap as r, CompletionItem as rt, Theme as s, applyInsert as st, BUILTIN_THEMES as t, ActiveTrigger as tt, ThemeSurfaces as u, mergeReferences as ut, useSafeModeActions as v, ProviderDescriptor as vt, buildMcpServers as w, modelSupportsReasoning as wt, PromptSegmentRef as x, credKeyOf as xt, useSafeModeQueue as y, anthropicDescriptor as yt, eventsFromTurns as z };
|
|
1230
|
+
//# sourceMappingURL=theme-C3JHZ5y9.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-C3JHZ5y9.d.ts","names":[],"sources":["../src/chat/agents.ts","../src/chat/providers.ts","../src/chat/auth.ts","../src/chat/completion.ts","../src/chat/types.ts","../src/chat/store.ts","../src/chat/config.ts","../src/chat/enabled-toggle-set.ts","../src/chat/mcps-discovery.ts","../src/chat/prompt-segments.ts","../src/chat/safe-mode-context.tsx","../src/chat/theme.ts"],"mappings":";;;;;;;;;;;;KAwBY,WAAA;AAAA,UAEK,YAAA;EAeN;EAbT,EAAA;EAaoB;EAXpB,KAA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,SAAA;EACA,gBAAA;EACA,wBAAA;AAAA;;UAIe,SAAA;EXmChB;EWjCC,EAAA;EXoC2B;EWlC3B,EAAA;AAAA;;AX0CF;;;;;;;;;;AAmBA;;KW7CY,YAAA;EAAiB,OAAA,EAAS,SAAA;AAAA,IAAc,OAAA,CAAQ,MAAA,SAAe,SAAA;;;;;;;iBAQ3D,gBAAA,CAAiB,KAAA,EAAO,YAAA,EAAc,UAAA,WAAqB,SAAA;AV9D3E;AAAA,UUmEiB,aAAA;;EAEf,KAAA;EVpEA;;;;;EU0EA,KAAA,EAAO,YAAA;EVpEP;;;;;;;EU4EA,SAAA;AAAA;;;;;UAOe,gBAAA;EACf,EAAA;EACA,EAAA;EACA,IAAA;EACA,MAAA;EACA,SAAA;EACA,GAAA;AAAA;;;;;;;;;;;;AVnBF;KUkCY,YAAA,GAAe,MAAA,SAAe,gBAAA;;UAGzB,KAAA;EVrCiC;EUuChD,EAAA;EVlCoB;EUoCpB,KAAA;EACA,MAAA,EAAQ,WAAA;EACR,MAAA,EAAQ,WAAA;EACR,QAAA,EAAU,aAAA;EACV,MAAA,EAAQ,YAAA;AAAA;AAAA,cAmDG,aAAA,EAAe,KAAA;;AVxE5B;;;;;AAYA;;;;cUiLa,cAAA,EAAgB,QAAA,CAAS,MAAA,SAAe,KAAA;AVxKrD;AAAA,iBUkLgB,YAAA,CAAa,EAAA,uBAAyB,KAAA"}
|
package/dist/tui.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { b as SkillConfig } from "./agent-JhicgLOV.js";
|
|
2
|
-
import { $ as Settings, C as DiscoveredMcp,
|
|
2
|
+
import { $ as Settings, C as DiscoveredMcp, N as ResolvedConfig, O as EnabledAllowlistKey, Q as SessionMeta, S as splitPromptSegments, _t as ModelInfo, at as CompletionReference, b as PromptSegment, c as ThemeColors, et as StreamEvent, it as CompletionProvider, j as ChatOptions, jt as AgentRegistry, kt as AgentAccent, m as ApprovalRequest, mt as ProviderKey, ot as CompletionState, p as ApprovalDecision, pt as ProviderAuth, s as Theme, x as PromptSegmentRef } from "./theme-C3JHZ5y9.js";
|
|
3
3
|
import * as _$react from "react";
|
|
4
4
|
import { ReactNode } from "react";
|
|
5
5
|
import { SyntaxStyle } from "@opentui/core";
|
|
@@ -102,6 +102,18 @@ interface Hint {
|
|
|
102
102
|
keyColor?: string;
|
|
103
103
|
/** Optional override for the label color. Defaults to `COLOR.dim`. */
|
|
104
104
|
labelColor?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Optional secondary chord + value rendered inline after the primary
|
|
107
|
+
* pair: `<key><extra.key> <label> <extra.label>`. Lets one hint advertise
|
|
108
|
+
* a compound shortcut (e.g. `ctrl+m/n model effort`) without forcing
|
|
109
|
+
* callers into a parallel struct or a custom renderer.
|
|
110
|
+
*/
|
|
111
|
+
extra?: {
|
|
112
|
+
key: string;
|
|
113
|
+
label: string; /** Defaults to `COLOR.mute` — the secondary key is rendered dimmer than the primary so the chord reads as one unit. */
|
|
114
|
+
keyColor?: string; /** Defaults to `COLOR.dim`. */
|
|
115
|
+
labelColor?: string;
|
|
116
|
+
};
|
|
105
117
|
}
|
|
106
118
|
interface ContextUsage {
|
|
107
119
|
used: number;
|
|
@@ -304,22 +316,20 @@ declare function Modal({
|
|
|
304
316
|
}: ModalProps): ReactNode;
|
|
305
317
|
//#endregion
|
|
306
318
|
//#region src/tui/model-picker.d.ts
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
* registry looked up via `piProviderId`.
|
|
312
|
-
*
|
|
313
|
-
* Each row shows: `● selected · name (ctx N · reasoning · vision)`.
|
|
314
|
-
*/
|
|
319
|
+
interface PickedModel {
|
|
320
|
+
providerKey: ProviderKey;
|
|
321
|
+
modelId: string;
|
|
322
|
+
}
|
|
315
323
|
declare function ModelPickerModal({
|
|
316
|
-
|
|
317
|
-
|
|
324
|
+
providers,
|
|
325
|
+
modelsFor,
|
|
326
|
+
current,
|
|
318
327
|
onPick
|
|
319
328
|
}: {
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
329
|
+
/** Authed providers — the catalog is unioned across these. */providers: readonly ProviderAuth[]; /** Resolver from `ResolvedConfig.modelsFor`. */
|
|
330
|
+
modelsFor: (key: ProviderKey) => readonly ModelInfo[]; /** Currently active selection. Promoted to top of its provider section + pre-highlighted. */
|
|
331
|
+
current: PickedModel; /** Called on commit with the chosen `{ providerKey, modelId }`. */
|
|
332
|
+
onPick: (picked: PickedModel) => void;
|
|
323
333
|
}): _$react.ReactNode;
|
|
324
334
|
//#endregion
|
|
325
335
|
//#region src/tui/screens.d.ts
|
|
@@ -555,5 +565,5 @@ declare function ToggleListModal<T>({
|
|
|
555
565
|
*/
|
|
556
566
|
declare function runTui(options?: Partial<ChatOptions>): Promise<never>;
|
|
557
567
|
//#endregion
|
|
558
|
-
export { AgentPickerModal, App, AuthScreen, ChatScreen, CompletionPopup, type ContextUsage, Footer, type Hint, McpsSettingsModal, Modal, type ModalProps, ModalRoot, ModelPickerModal, type PromptSegment, type PromptSegmentRef, SessionsScreen, type SettingsActions, SettingsModal, SkillsSettingsModal, Spinner, ToggleListModal, Transcript, accentColor, buildMdStyle, hintsLength, isVisible, marginTopFor, onInputSubmit, renderHintSpans, runTui, splitPromptSegments, useMdStyle, useModal, useModalAwareFocus };
|
|
568
|
+
export { AgentPickerModal, App, AuthScreen, ChatScreen, CompletionPopup, type ContextUsage, Footer, type Hint, McpsSettingsModal, Modal, type ModalProps, ModalRoot, ModelPickerModal, type PickedModel, type PromptSegment, type PromptSegmentRef, SessionsScreen, type SettingsActions, SettingsModal, SkillsSettingsModal, Spinner, ToggleListModal, Transcript, accentColor, buildMdStyle, hintsLength, isVisible, marginTopFor, onInputSubmit, renderHintSpans, runTui, splitPromptSegments, useMdStyle, useModal, useModalAwareFocus };
|
|
559
569
|
//# sourceMappingURL=tui.d.ts.map
|
package/dist/tui.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tui.d.ts","names":[],"sources":["../src/tui/agent-picker.tsx","../src/tui/app.tsx","../src/tui/completion-popup.tsx","../src/tui/components.tsx","../src/tui/mcps-settings.tsx","../src/tui/modal.tsx","../src/tui/model-picker.tsx","../src/tui/screens.tsx","../src/tui/settings-modal.tsx","../src/tui/skills-settings.tsx","../src/tui/theme.ts","../src/tui/toggle-list-modal.tsx","../src/tui/index.tsx"],"mappings":";;;;;;;;;;;;;AAoBA;;;;;iBAAgB,gBAAA,CAAA;EACd,MAAA;EACA,cAAA;EACA;AAAA;EAEA,MAAA,EAAQ,aAAA;EACR,cAAA;EACA,MAAA,GAAS,EAAA;AAAA,IAFY,OAAA,CAGtB,SAAA;;;;;;iBAkFe,WAAA,CACd,MAAA,EAAQ,WAAA,cACR,KAAA;EAAS,KAAA;EAAe,MAAA;EAAgB,IAAA;EAAc,KAAA;AAAA;;;;;;;;;;AA5FxD;
|
|
1
|
+
{"version":3,"file":"tui.d.ts","names":[],"sources":["../src/tui/agent-picker.tsx","../src/tui/app.tsx","../src/tui/completion-popup.tsx","../src/tui/components.tsx","../src/tui/mcps-settings.tsx","../src/tui/modal.tsx","../src/tui/model-picker.tsx","../src/tui/screens.tsx","../src/tui/settings-modal.tsx","../src/tui/skills-settings.tsx","../src/tui/theme.ts","../src/tui/toggle-list-modal.tsx","../src/tui/index.tsx"],"mappings":";;;;;;;;;;;;;AAoBA;;;;;iBAAgB,gBAAA,CAAA;EACd,MAAA;EACA,cAAA;EACA;AAAA;EAEA,MAAA,EAAQ,aAAA;EACR,cAAA;EACA,MAAA,GAAS,EAAA;AAAA,IAFY,OAAA,CAGtB,SAAA;;;;;;iBAkFe,WAAA,CACd,MAAA,EAAQ,WAAA,cACR,KAAA;EAAS,KAAA;EAAe,MAAA;EAAgB,IAAA;EAAc,KAAA;AAAA;;;;;;;;;;AA5FxD;iBCiEgB,GAAA,CAAA;EAAM;AAAA;EAAY,MAAA,EAAQ,cAAA;AAAA,IAAc,OAAA,CAAE,S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