zidane 6.1.5 → 6.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/dist/acp.d.ts +1 -1
- package/dist/agent.d.ts +1 -1
- package/dist/chat/pure.d.ts +3 -3
- package/dist/chat.d.ts +4 -4
- package/dist/chat.d.ts.map +1 -1
- package/dist/chat.js +1 -1
- package/dist/contexts/daytona.d.ts +1 -1
- package/dist/contexts/e2b.d.ts +1 -1
- package/dist/eval.d.ts +1 -1
- package/dist/extensions.d.ts +1 -1
- package/dist/generate-data-WL_yGVL6.js.map +1 -1
- package/dist/headless.d.ts +1 -1
- package/dist/{index-DFjn8nA3.d.ts → index-NKPCGq3q.d.ts} +12 -6
- package/dist/index-NKPCGq3q.d.ts.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/mcp.d.ts +1 -1
- package/dist/output/stream-json.d.ts +1 -1
- package/dist/output/terminal.d.ts +1 -1
- package/dist/presets.d.ts +1 -1
- package/dist/providers/anthropic.d.ts +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/openrouter.d.ts +1 -1
- package/dist/providers/xai.d.ts +1 -1
- package/dist/providers.d.ts +1 -1
- package/dist/restate.d.ts +1 -1
- package/dist/session/sqlite.d.ts +1 -1
- package/dist/session.d.ts +1 -1
- package/dist/skills.d.ts +1 -1
- package/dist/{tool-formatters-D4BjDBC2.d.ts → tool-formatters-1kJocBKe.d.ts} +2 -2
- package/dist/{tool-formatters-D4BjDBC2.d.ts.map → tool-formatters-1kJocBKe.d.ts.map} +1 -1
- package/dist/tools/fetch-url.d.ts +1 -1
- package/dist/tools/web-search.d.ts +1 -1
- package/dist/tools.d.ts +1 -1
- package/dist/{transcript-anchors-CYhIMDgQ.js → transcript-anchors-C8l8zDzs.js} +8 -1
- package/dist/{transcript-anchors-CYhIMDgQ.js.map → transcript-anchors-C8l8zDzs.js.map} +1 -1
- package/dist/{transcript-anchors-Cg6zkNiA.d.ts → transcript-anchors-CI-uoMfU.d.ts} +2 -2
- package/dist/{transcript-anchors-Cg6zkNiA.d.ts.map → transcript-anchors-CI-uoMfU.d.ts.map} +1 -1
- package/dist/tui.d.ts +17 -3
- package/dist/tui.d.ts.map +1 -1
- package/dist/tui.js +43 -19
- package/dist/tui.js.map +1 -1
- package/dist/{turn-operations-l1mife2u.d.ts → turn-operations-C6M0Mv-R.d.ts} +3 -3
- package/dist/{turn-operations-l1mife2u.d.ts.map → turn-operations-C6M0Mv-R.d.ts.map} +1 -1
- package/dist/types.d.ts +1 -1
- package/docs/CHAT.md +2 -0
- package/docs/TUI.md +1 -1
- package/package.json +1 -1
- package/dist/index-DFjn8nA3.d.ts.map +0 -1
package/dist/acp.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $d as PromptPart, Dd as AgentBehavior, Hd as McpServerConfig, Li as AgentOptions, Lp as Provider, Pf as ToolDef, Pi as Agent, Qf as Session, bf as ToolResultContent, cf as SessionContentBlock, kf as TurnUsage, np as SessionStore, t as Preset } from "./index-
|
|
1
|
+
import { $d as PromptPart, Dd as AgentBehavior, Hd as McpServerConfig, Li as AgentOptions, Lp as Provider, Pf as ToolDef, Pi as Agent, Qf as Session, bf as ToolResultContent, cf as SessionContentBlock, kf as TurnUsage, np as SessionStore, t as Preset } from "./index-NKPCGq3q.js";
|
|
2
2
|
import { c as ExecutionContext } from "./types-BDccavwj.js";
|
|
3
3
|
import { Readable, Writable } from "node:stream";
|
|
4
4
|
|
package/dist/agent.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Ar as RunSummaryCollectorOptions, Bi as McpToolWrap, Ci as CacheDimensionName, Di as installCacheBreakLogger, Dr as RunSummaryBudget, Ei as fnv1a32, Er as RunSummaryBlock, Fi as AgentHookMap, Fr as createRunSummaryCollector, Hf as hydrateReadStateFromSessionAsync, If as HydrateReadStateOptions, Ii as AgentHooks, Lf as ReadStateEntry, Li as AgentOptions, Mr as RunSummaryRepeatGuard, Nr as RunSummaryTokens, Oi as snapshotCacheDimensions, Or as RunSummaryByModel, Pi as Agent, Pr as RunSummaryValidation, Rf as ReadStateMap, Ri as McpConnector, Si as CacheDimensionDiff, Ti as diffCacheDimensions, Tr as RunSummary, Uf as readStateKey, Vf as hydrateReadStateFromSession, Vi as createAgent, Wf as resolveReadStateMap, jr as RunSummaryError, kr as RunSummaryCollector, wi as CacheDimensionSnapshot, xi as CacheBreakLoggerOptions, zf as getReadState, zi as McpToolMeta } from "./index-
|
|
1
|
+
import { Ar as RunSummaryCollectorOptions, Bi as McpToolWrap, Ci as CacheDimensionName, Di as installCacheBreakLogger, Dr as RunSummaryBudget, Ei as fnv1a32, Er as RunSummaryBlock, Fi as AgentHookMap, Fr as createRunSummaryCollector, Hf as hydrateReadStateFromSessionAsync, If as HydrateReadStateOptions, Ii as AgentHooks, Lf as ReadStateEntry, Li as AgentOptions, Mr as RunSummaryRepeatGuard, Nr as RunSummaryTokens, Oi as snapshotCacheDimensions, Or as RunSummaryByModel, Pi as Agent, Pr as RunSummaryValidation, Rf as ReadStateMap, Ri as McpConnector, Si as CacheDimensionDiff, Ti as diffCacheDimensions, Tr as RunSummary, Uf as readStateKey, Vf as hydrateReadStateFromSession, Vi as createAgent, Wf as resolveReadStateMap, jr as RunSummaryError, kr as RunSummaryCollector, wi as CacheDimensionSnapshot, xi as CacheBreakLoggerOptions, zf as getReadState, zi as McpToolMeta } from "./index-NKPCGq3q.js";
|
|
2
2
|
export { type Agent, type AgentHookMap, type AgentHooks, type AgentOptions, type CacheBreakLoggerOptions, type CacheDimensionDiff, type CacheDimensionName, type CacheDimensionSnapshot, type HydrateReadStateOptions, type McpConnector, type McpToolMeta, type McpToolWrap, type ReadStateEntry, type ReadStateMap, type RunSummary, type RunSummaryBlock, type RunSummaryBudget, type RunSummaryByModel, type RunSummaryCollector, type RunSummaryCollectorOptions, type RunSummaryError, type RunSummaryRepeatGuard, type RunSummaryTokens, type RunSummaryValidation, createAgent, createRunSummaryCollector, diffCacheDimensions, fnv1a32, getReadState, hydrateReadStateFromSession, hydrateReadStateFromSessionAsync, installCacheBreakLogger, readStateKey, resolveReadStateMap, snapshotCacheDimensions };
|
package/dist/chat/pure.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bc as CompletionProvider, Cd as ContextMcpGroup, Ed as buildContextBreakdown, Gc as findActiveTrigger, Kc as mergeReferences, Lc as ActiveTrigger, Rc as CompletionContext, Sd as ContextItem, Td as ContextUsageSplit, Uc as applyInsert, Vc as CompletionReference, Wc as collectReferences, _d as ContextCategory, bd as ContextExtensionRow, gd as ContextBreakdownOptions, hd as ContextBreakdownContributor, md as ContextBreakdownContributionContext, pd as ContextBreakdown, vd as ContextCategoryId, wd as ContextSnapshot, xd as ContextExtensionSection, yd as ContextExactCounts, zc as CompletionItem } from "../index-
|
|
2
|
-
import { $ as uniqueFilesFromReferences, A as buildUnifiedDiff, C as EditSummary, D as PreviewResult, E as InlineSegment, F as previewEditPayload, I as splitLines, J as SKILLS_TRIGGER, L as summarizeEditPayload, M as computeLineDiff, N as extractEditPayload, O as applyEditPayload, P as filetypeFromPath, Q as createFilesCompletionProvider, R as tokenize, S as EditHunkSummary, T as InlineDiff, X as uniqueSkillNamesFromReferences, Y as createSkillsCompletionProvider, Z as FILES_TRIGGER, _ as formatTaskSummary, a as MAX_TRANSCRIPT_EVENTS, at as ChatReferenceEntry, b as DiffLine, c as finalizeStreamingMarkdown, ct as createChatsCompletionProvider, d as ageString, dt as buildLinearRamp, f as compactPath, g as formatTaskStatus, h as formatDuration, i as turnAsText, it as ChatReferenceData, j as computeInlineDiff, k as buildContextualDiff, l as finalizeStreamingMarkdownForOwner, lt as uniqueChatIdsFromReferences, m as fmtTokens, n as deleteTurnSafely, o as TRANSCRIPT_TRIM_TO_EVENTS, ot as ChatReferenceScope, p as fmtCost, q as summarizeOutcomes, r as truncateTurnsAt, rt as CHATS_TRIGGER, s as capTranscriptEvents, st as chatReferenceTokensFromText, t as countNeighbors, u as turnContextSize, ut as blendHsl, v as previewLine, w as HunkResolution, x as DiffOp, y as shortId } from "../turn-operations-
|
|
3
|
-
import { A as turnSelectionOwnership, D as isTurnHighlighted, E as isEditErrorResult, O as isVisible, T as EDIT_TOOL_NAMES, _ as splitMarkdownCodeBlocks, a as formatToolCall, c as splitPromptSegments, d as filterModelCatalog, f as indexOfEntry, g as normalizeMarkdownCodeFences, h as chunkMarkdownForRender, i as displayNameFor, k as selectableTurnIds, l as CatalogEntry, m as MarkdownSegment, n as ToolDisplayMeta, o as PromptSegment, p as MARKDOWN_RENDER_CHUNK_TARGET_BYTES, r as ToolFormatLine, s as PromptSegmentRef, t as TOOL_DISPLAY, u as buildModelCatalog } from "../tool-formatters-
|
|
1
|
+
import { Bc as CompletionProvider, Cd as ContextMcpGroup, Ed as buildContextBreakdown, Gc as findActiveTrigger, Kc as mergeReferences, Lc as ActiveTrigger, Rc as CompletionContext, Sd as ContextItem, Td as ContextUsageSplit, Uc as applyInsert, Vc as CompletionReference, Wc as collectReferences, _d as ContextCategory, bd as ContextExtensionRow, gd as ContextBreakdownOptions, hd as ContextBreakdownContributor, md as ContextBreakdownContributionContext, pd as ContextBreakdown, vd as ContextCategoryId, wd as ContextSnapshot, xd as ContextExtensionSection, yd as ContextExactCounts, zc as CompletionItem } from "../index-NKPCGq3q.js";
|
|
2
|
+
import { $ as uniqueFilesFromReferences, A as buildUnifiedDiff, C as EditSummary, D as PreviewResult, E as InlineSegment, F as previewEditPayload, I as splitLines, J as SKILLS_TRIGGER, L as summarizeEditPayload, M as computeLineDiff, N as extractEditPayload, O as applyEditPayload, P as filetypeFromPath, Q as createFilesCompletionProvider, R as tokenize, S as EditHunkSummary, T as InlineDiff, X as uniqueSkillNamesFromReferences, Y as createSkillsCompletionProvider, Z as FILES_TRIGGER, _ as formatTaskSummary, a as MAX_TRANSCRIPT_EVENTS, at as ChatReferenceEntry, b as DiffLine, c as finalizeStreamingMarkdown, ct as createChatsCompletionProvider, d as ageString, dt as buildLinearRamp, f as compactPath, g as formatTaskStatus, h as formatDuration, i as turnAsText, it as ChatReferenceData, j as computeInlineDiff, k as buildContextualDiff, l as finalizeStreamingMarkdownForOwner, lt as uniqueChatIdsFromReferences, m as fmtTokens, n as deleteTurnSafely, o as TRANSCRIPT_TRIM_TO_EVENTS, ot as ChatReferenceScope, p as fmtCost, q as summarizeOutcomes, r as truncateTurnsAt, rt as CHATS_TRIGGER, s as capTranscriptEvents, st as chatReferenceTokensFromText, t as countNeighbors, u as turnContextSize, ut as blendHsl, v as previewLine, w as HunkResolution, x as DiffOp, y as shortId } from "../turn-operations-C6M0Mv-R.js";
|
|
3
|
+
import { A as turnSelectionOwnership, D as isTurnHighlighted, E as isEditErrorResult, O as isVisible, T as EDIT_TOOL_NAMES, _ as splitMarkdownCodeBlocks, a as formatToolCall, c as splitPromptSegments, d as filterModelCatalog, f as indexOfEntry, g as normalizeMarkdownCodeFences, h as chunkMarkdownForRender, i as displayNameFor, k as selectableTurnIds, l as CatalogEntry, m as MarkdownSegment, n as ToolDisplayMeta, o as PromptSegment, p as MARKDOWN_RENDER_CHUNK_TARGET_BYTES, r as ToolFormatLine, s as PromptSegmentRef, t as TOOL_DISPLAY, u as buildModelCatalog } from "../tool-formatters-1kJocBKe.js";
|
|
4
4
|
export { type ActiveTrigger, CHATS_TRIGGER, type CatalogEntry, type ChatReferenceData, type ChatReferenceEntry, type ChatReferenceScope, type CompletionContext, type CompletionItem, type CompletionProvider, type CompletionReference, type ContextBreakdown, type ContextBreakdownContributionContext, type ContextBreakdownContributor, type ContextBreakdownOptions, type ContextCategory, type ContextCategoryId, type ContextExactCounts, type ContextExtensionRow, type ContextExtensionSection, type ContextItem, type ContextMcpGroup, type ContextSnapshot, type ContextUsageSplit, type DiffLine, type DiffOp, EDIT_TOOL_NAMES, type EditHunkSummary, type EditSummary, FILES_TRIGGER, type HunkResolution, type InlineDiff, type InlineSegment, MARKDOWN_RENDER_CHUNK_TARGET_BYTES, MAX_TRANSCRIPT_EVENTS, type MarkdownSegment, type PreviewResult, type PromptSegment, type PromptSegmentRef, SKILLS_TRIGGER, TOOL_DISPLAY, TRANSCRIPT_TRIM_TO_EVENTS, type ToolDisplayMeta, type ToolFormatLine, ageString, applyEditPayload, applyInsert, blendHsl, buildContextBreakdown, buildContextualDiff, buildLinearRamp, buildModelCatalog, buildUnifiedDiff, capTranscriptEvents, chatReferenceTokensFromText, chunkMarkdownForRender, collectReferences, compactPath, computeInlineDiff, computeLineDiff, countNeighbors, createChatsCompletionProvider, createFilesCompletionProvider, createSkillsCompletionProvider, deleteTurnSafely, displayNameFor, extractEditPayload, filetypeFromPath, filterModelCatalog, finalizeStreamingMarkdown, finalizeStreamingMarkdownForOwner, findActiveTrigger, fmtCost, fmtTokens, formatDuration, formatTaskStatus, formatTaskSummary, formatToolCall, indexOfEntry, isEditErrorResult, isTurnHighlighted, isVisible, mergeReferences, normalizeMarkdownCodeFences, previewEditPayload, previewLine, selectableTurnIds, shortId, splitLines, splitMarkdownCodeBlocks, splitPromptSegments, summarizeEditPayload, summarizeOutcomes, tokenize, truncateTurnsAt, turnAsText, turnContextSize, turnSelectionOwnership, uniqueChatIdsFromReferences, uniqueFilesFromReferences, uniqueSkillNamesFromReferences };
|
package/dist/chat.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $a as ExtensionApiVersion, $s as SourcedScanPath, $u as localDescriptor, Ac as ThemeColors, Al as QuestionType, Ao as ExtensionToolCatalogTransform, Au as buildRunModel, Bc as CompletionProvider, Bl as useInteractionsQueue, Bu as ProviderKey, Ca as scanExtensionDirectories, Cc as BUILTIN_THEMES, Cd as ContextMcpGroup, Cl as PlanResponse, Co as ExtensionRunTransform, Cu as Picked, Dc as SyntaxStyles, Dl as QuestionPayload, Do as ExtensionSource, Du as StreamEvent, Ec as DEFAULT_THEME, Ed as buildContextBreakdown, El as QuestionChoice, Eo as ExtensionSkillPolicy, Eu as Settings, Fc as CompletionState, Fi as AgentHookMap, Fl as isInteractionTool, Fu as restoreChainFallbacks, Gc as findActiveTrigger, Gi as buildExtensionRegistry, Gu as ModelOption, H as McpCredentialStore, Hd as McpServerConfig, Hi as BuildExtensionRegistryOptions, Ho as LoadedExtension, Hu as BUILTIN_PROVIDERS, Ic as useCompletion, Ii as AgentHooks, Il as makeRequestInteraction, Io as ExtensionToolResultMetadataRegistration, Iu as sanitizeModelChain, Jc as Command, Ji as filterExtensionRegistry, Ju as cerebrasDescriptor, Kc as mergeReferences, Kf as SkillConfig, Ki as composeExtensionPreset, Ku as ProviderDescriptor, Lc as ActiveTrigger, Ll as pendingInteractionsFromTurns, Lp as Provider, Lu as toggleChainEntry, Mc as ThemeSurfaces, Ml as TextQuestion, Mu as chainsEqual, Nc as resolveChipColor, Nl as buildResumedToolResultsTurn, Nu as filterChainFallbacks, Oc as SyntaxTokenStyle, Ol as QuestionRequest, Oo as ExtensionStorageScope, Ou as ToolCallDisplay, Pc as resolveTheme, Pf as ToolDef, Pl as createInteractionTools, Pu as providerKeySetChanged, Qa as EMPTY_EXTENSION_REGISTRY, Qf as Session, Qu as getModelInfo, Rc as CompletionContext, Rl as serializeInteractionResponse, Ru as AuthMethod, Sd as ContextItem, Sl as PlanRequest, So as ExtensionRegistry, Su as Owner, Tc as ChipColorMap, Td as ContextUsageSplit, Tl as Question, To as ExtensionSessionStateSurface, Tu as SessionMeta, Uc as applyInsert, Uo as TuiContributions, Uu as CustomField, V as McpCredentialEntry, Vc as CompletionReference, Vo as GuiContributions, Vu as detectAuth, Wc as collectReferences, Wd as McpToolSchema, Wi as buildExtensionPreset, Wu as ModelInfo, Xf as SkillsConfig, Xi as partitionExtensionCatalog, Xu as enabledModelOptions, Yc as CommandAgentResult, Yi as mergeContributions, Yu as credKeyOf, Zc as CommandExecution, Zu as getContextWindow, _d as ContextCategory, _l as InteractionsProvider, _o as ExtensionOrderedContribution, _u as EditDiffDisplay, ad as piIdOf, al as CommandStepContext, au as AgentAccent, ba as inlineLoadedExtension, bd as ContextExtensionRow, bi as generateStructuredData, bl as PlanDecision, bu as EditOutcomeKind, cd as AutoCompactDecision, cl as executeCommand, co as ExtensionFooterHint, cu as BUILD_AGENT, dd as effectiveContextWindow, dl as AnswerValue, do as ExtensionKeybinding, du as DEFAULT_BUDGET_EXCLUDE_TOOLS, ed as modelOptionsFor, el as CommandInvocation, eo as ExtensionBehaviorTransform, fd as shouldAutoCompact, ff as SessionTurn, fl as ConfirmQuestion, fo as ExtensionKeybindingDispatchContext, fu as DEFAULT_PERSIST_EXCLUDE_TOOLS, gd as ContextBreakdownOptions, gl as InteractionsActions, gu as singleAgentRegistry, hd as ContextBreakdownContributor, hl as InteractionResponse, ho as ExtensionModal, hu as resolveAgentId, id as openrouterDescriptor, il as CommandStep, io as ExtensionContributions, jc as ThemeSelect, jd as AutoCompact, jl as SelectQuestion, ju as chainPositionOf, ka as defineExtension, kc as Theme, kl as QuestionResponse, ko as ExtensionStorageSurface, ku as ModelChainEntry, ld as AutoCompactInput, ll as parseCommandInvocation, lo as ExtensionGuiPanel, lu as BUILTIN_AGENTS, md as ContextBreakdownContributionContext, ml as InteractionRequest, mo as ExtensionMcpConfigTransform, mu as accentColor, nd as modelsForDescriptor, no as ExtensionContext, np as SessionStore, od as restoreModelOptions, ol as CommandStepFn, ou as AgentProfile, pd as ContextBreakdown, pl as CreateInteractionToolsOptions, po as ExtensionManifest, pu as PLAN_AGENT, qi as disposeExtensionRegistry, qu as anthropicDescriptor, rd as openaiDescriptor, sd as AUTO_COMPACT_MIN_GROWTH_FRACTION, sl as commandSteps, so as ExtensionDefinition, su as AgentRegistry, t as Preset, td as modelSupportsReasoning, tl as CommandOutputBlock, to as ExtensionCapability, ud as OUTPUT_RESERVE_TOKENS, ul as ASK_USER_TOOL, uu as DEFAULT_AGENT_ID, va as defaultExtensionScanPaths, vd as ContextCategoryId, vl as PRESENT_PLAN_TOOL, vo as ExtensionPaths, vu as EditHunk, wc as ChipColor, wd as ContextSnapshot, wl as PlanStep, wo as ExtensionRuntimeEnv, wu as Screen, xd as ContextExtensionSection, xl as PlanPayload, xo as ExtensionProviderMiddleware, xu as EditPayload, ya as discoverExtensions, yd as ContextExactCounts, yi as GenerateStructuredDataOptions, yl as PendingInteractionEntry, yo as ExtensionPermission, yu as EditOutcome, zc as CompletionItem, zl as useInteractionsActions, zu as ProviderAuth } from "./index-
|
|
2
|
-
import { $ as KEYBINDING_KEY_COL_WIDTH, A as resolveStorageDirs, B as loadState, C as ResolvedPaths, D as StorageDirs, E as ResolveStorageDirsOptions, F as createStateStore, G as titleFromTurns, H as saveState, I as deriveSessionTitle, J as updateToolEventOutcomes, K as toolCallPreview, L as eventsFromTurns, M as StateStoreApi, N as TuiState, O as StorageMode, P as compactSummaryEvent, Q as KEYBINDING_DEF_BY_ACTION, R as lastContextSizeFromTurns, S as ResolvedConfig, T as resolveStoragePaths, U as stripSpawnTokensLine, V as marginTopFor, W as sumRunCosts, X as DEFAULT_KEYBINDINGS, Y as usageByModel, Z as KEYBINDING_DEFS, _ as discoverProjectMcps, _t as EMPTY_HINTS, a as SessionExportTarget, at as ResolvedExtensionKeybinding, b as ChatOptions, bt as hintsLength, c as writeSessionExport, ct as groupBindings, d as useEnabledToggleSet, dt as mergeKeybindings, et as KeyAction, f as DiscoveredMcp, ft as parseBindingSpec, g as defaultMcpsConfigPaths, gt as stripJsonComments, h as buildMcpServers, ht as resolveExtensionKeybindings, i as SessionExportFormat, it as ParsedBinding, j as ModelUsageSummary, k as StorageSlot, l as EnabledAllowlistKey, lt as keybindingsPath, m as DiscoveryResult, mt as readKeybindingsRaw, n as computeTurnAnchors, nt as KeyBindingSection, o as renderSession, ot as ensureKeybindingsFile, p as DiscoveryError, pt as readKeybindings, q as toolResultText, r as SessionExportAnchor, rt as KeyBindings, s as resolveSessionExportTarget, st as formatBindingForDisplay, t as TranscriptItem, tt as KeyBindingDef, u as EnabledToggleSet, ut as matchesBinding, v as parseMcpsFile, vt as Hint, w as resolveConfig, x as ProviderRegistry, xt as truncateTrailing, y as AutoUpdateConfig, yt as clipHintsToWidth, z as listSessionMeta } from "./transcript-anchors-
|
|
3
|
-
import { $ as uniqueFilesFromReferences, A as buildUnifiedDiff, B as buildEditOutcomesAnnotation, C as EditSummary, D as PreviewResult, E as InlineSegment, F as previewEditPayload, G as rewriteMultiEditHeader, H as mergeApprovalAndBodyOutcomes, I as splitLines, J as SKILLS_TRIGGER, K as stripEditOutcomesAnnotation, L as summarizeEditPayload, M as computeLineDiff, N as extractEditPayload, O as applyEditPayload, P as filetypeFromPath, Q as createFilesCompletionProvider, R as tokenize, S as EditHunkSummary, T as InlineDiff, U as parseEditOutcomesFromResult, V as maskToOutcomeKinds, W as resolveApprovalForPayload, X as uniqueSkillNamesFromReferences, Y as createSkillsCompletionProvider, Z as FILES_TRIGGER, _ as formatTaskSummary, a as MAX_TRANSCRIPT_EVENTS, at as ChatReferenceEntry, b as DiffLine, c as finalizeStreamingMarkdown, ct as createChatsCompletionProvider, d as ageString, dt as buildLinearRamp, et as FileEntry, f as compactPath, g as formatTaskStatus, h as formatDuration, i as turnAsText, it as ChatReferenceData, j as computeInlineDiff, k as buildContextualDiff, l as finalizeStreamingMarkdownForOwner, lt as uniqueChatIdsFromReferences, m as fmtTokens, n as deleteTurnSafely, nt as listProjectFiles, o as TRANSCRIPT_TRIM_TO_EVENTS, ot as ChatReferenceScope, p as fmtCost, q as summarizeOutcomes, r as truncateTurnsAt, rt as CHATS_TRIGGER, s as capTranscriptEvents, st as chatReferenceTokensFromText, t as countNeighbors, tt as ListProjectFilesOptions, u as turnContextSize, ut as blendHsl, v as previewLine, w as HunkResolution, x as DiffOp, y as shortId, z as ResolvedApproval } from "./turn-operations-
|
|
4
|
-
import { A as turnSelectionOwnership, C as useSafeModeActions, D as isTurnHighlighted, E as isEditErrorResult, O as isVisible, S as SafeModeProvider, _ as splitMarkdownCodeBlocks, a as formatToolCall, b as RequestApproval, c as splitPromptSegments, d as filterModelCatalog, f as indexOfEntry, g as normalizeMarkdownCodeFences, h as chunkMarkdownForRender, i as displayNameFor, k as selectableTurnIds, l as CatalogEntry, m as MarkdownSegment, n as ToolDisplayMeta, o as PromptSegment, p as MARKDOWN_RENDER_CHUNK_TARGET_BYTES, r as ToolFormatLine, s as PromptSegmentRef, t as TOOL_DISPLAY, u as buildModelCatalog, v as ApprovalDecision, w as useSafeModeQueue, x as SafeModeActions, y as ApprovalRequest } from "./tool-formatters-
|
|
1
|
+
import { $a as ExtensionApiVersion, $s as SourcedScanPath, $u as localDescriptor, Ac as ThemeColors, Al as QuestionType, Ao as ExtensionToolCatalogTransform, Au as buildRunModel, Bc as CompletionProvider, Bl as useInteractionsQueue, Bu as ProviderKey, Ca as scanExtensionDirectories, Cc as BUILTIN_THEMES, Cd as ContextMcpGroup, Cl as PlanResponse, Co as ExtensionRunTransform, Cu as Picked, Dc as SyntaxStyles, Dl as QuestionPayload, Do as ExtensionSource, Du as StreamEvent, Ec as DEFAULT_THEME, Ed as buildContextBreakdown, El as QuestionChoice, Eo as ExtensionSkillPolicy, Eu as Settings, Fc as CompletionState, Fi as AgentHookMap, Fl as isInteractionTool, Fu as restoreChainFallbacks, Gc as findActiveTrigger, Gi as buildExtensionRegistry, Gu as ModelOption, H as McpCredentialStore, Hd as McpServerConfig, Hi as BuildExtensionRegistryOptions, Ho as LoadedExtension, Hu as BUILTIN_PROVIDERS, Ic as useCompletion, Ii as AgentHooks, Il as makeRequestInteraction, Io as ExtensionToolResultMetadataRegistration, Iu as sanitizeModelChain, Jc as Command, Ji as filterExtensionRegistry, Ju as cerebrasDescriptor, Kc as mergeReferences, Kf as SkillConfig, Ki as composeExtensionPreset, Ku as ProviderDescriptor, Lc as ActiveTrigger, Ll as pendingInteractionsFromTurns, Lp as Provider, Lu as toggleChainEntry, Mc as ThemeSurfaces, Ml as TextQuestion, Mu as chainsEqual, Nc as resolveChipColor, Nl as buildResumedToolResultsTurn, Nu as filterChainFallbacks, Oc as SyntaxTokenStyle, Ol as QuestionRequest, Oo as ExtensionStorageScope, Ou as ToolCallDisplay, Pc as resolveTheme, Pf as ToolDef, Pl as createInteractionTools, Pu as providerKeySetChanged, Qa as EMPTY_EXTENSION_REGISTRY, Qf as Session, Qu as getModelInfo, Rc as CompletionContext, Rl as serializeInteractionResponse, Ru as AuthMethod, Sd as ContextItem, Sl as PlanRequest, So as ExtensionRegistry, Su as Owner, Tc as ChipColorMap, Td as ContextUsageSplit, Tl as Question, To as ExtensionSessionStateSurface, Tu as SessionMeta, Uc as applyInsert, Uo as TuiContributions, Uu as CustomField, V as McpCredentialEntry, Vc as CompletionReference, Vo as GuiContributions, Vu as detectAuth, Wc as collectReferences, Wd as McpToolSchema, Wi as buildExtensionPreset, Wu as ModelInfo, Xf as SkillsConfig, Xi as partitionExtensionCatalog, Xu as enabledModelOptions, Yc as CommandAgentResult, Yi as mergeContributions, Yu as credKeyOf, Zc as CommandExecution, Zu as getContextWindow, _d as ContextCategory, _l as InteractionsProvider, _o as ExtensionOrderedContribution, _u as EditDiffDisplay, ad as piIdOf, al as CommandStepContext, au as AgentAccent, ba as inlineLoadedExtension, bd as ContextExtensionRow, bi as generateStructuredData, bl as PlanDecision, bu as EditOutcomeKind, cd as AutoCompactDecision, cl as executeCommand, co as ExtensionFooterHint, cu as BUILD_AGENT, dd as effectiveContextWindow, dl as AnswerValue, do as ExtensionKeybinding, du as DEFAULT_BUDGET_EXCLUDE_TOOLS, ed as modelOptionsFor, el as CommandInvocation, eo as ExtensionBehaviorTransform, fd as shouldAutoCompact, ff as SessionTurn, fl as ConfirmQuestion, fo as ExtensionKeybindingDispatchContext, fu as DEFAULT_PERSIST_EXCLUDE_TOOLS, gd as ContextBreakdownOptions, gl as InteractionsActions, gu as singleAgentRegistry, hd as ContextBreakdownContributor, hl as InteractionResponse, ho as ExtensionModal, hu as resolveAgentId, id as openrouterDescriptor, il as CommandStep, io as ExtensionContributions, jc as ThemeSelect, jd as AutoCompact, jl as SelectQuestion, ju as chainPositionOf, ka as defineExtension, kc as Theme, kl as QuestionResponse, ko as ExtensionStorageSurface, ku as ModelChainEntry, ld as AutoCompactInput, ll as parseCommandInvocation, lo as ExtensionGuiPanel, lu as BUILTIN_AGENTS, md as ContextBreakdownContributionContext, ml as InteractionRequest, mo as ExtensionMcpConfigTransform, mu as accentColor, nd as modelsForDescriptor, no as ExtensionContext, np as SessionStore, od as restoreModelOptions, ol as CommandStepFn, ou as AgentProfile, pd as ContextBreakdown, pl as CreateInteractionToolsOptions, po as ExtensionManifest, pu as PLAN_AGENT, qi as disposeExtensionRegistry, qu as anthropicDescriptor, rd as openaiDescriptor, sd as AUTO_COMPACT_MIN_GROWTH_FRACTION, sl as commandSteps, so as ExtensionDefinition, su as AgentRegistry, t as Preset, td as modelSupportsReasoning, tl as CommandOutputBlock, to as ExtensionCapability, ud as OUTPUT_RESERVE_TOKENS, ul as ASK_USER_TOOL, uu as DEFAULT_AGENT_ID, va as defaultExtensionScanPaths, vd as ContextCategoryId, vl as PRESENT_PLAN_TOOL, vo as ExtensionPaths, vu as EditHunk, wc as ChipColor, wd as ContextSnapshot, wl as PlanStep, wo as ExtensionRuntimeEnv, wu as Screen, xd as ContextExtensionSection, xl as PlanPayload, xo as ExtensionProviderMiddleware, xu as EditPayload, ya as discoverExtensions, yd as ContextExactCounts, yi as GenerateStructuredDataOptions, yl as PendingInteractionEntry, yo as ExtensionPermission, yu as EditOutcome, zc as CompletionItem, zl as useInteractionsActions, zu as ProviderAuth } from "./index-NKPCGq3q.js";
|
|
2
|
+
import { $ as KEYBINDING_KEY_COL_WIDTH, A as resolveStorageDirs, B as loadState, C as ResolvedPaths, D as StorageDirs, E as ResolveStorageDirsOptions, F as createStateStore, G as titleFromTurns, H as saveState, I as deriveSessionTitle, J as updateToolEventOutcomes, K as toolCallPreview, L as eventsFromTurns, M as StateStoreApi, N as TuiState, O as StorageMode, P as compactSummaryEvent, Q as KEYBINDING_DEF_BY_ACTION, R as lastContextSizeFromTurns, S as ResolvedConfig, T as resolveStoragePaths, U as stripSpawnTokensLine, V as marginTopFor, W as sumRunCosts, X as DEFAULT_KEYBINDINGS, Y as usageByModel, Z as KEYBINDING_DEFS, _ as discoverProjectMcps, _t as EMPTY_HINTS, a as SessionExportTarget, at as ResolvedExtensionKeybinding, b as ChatOptions, bt as hintsLength, c as writeSessionExport, ct as groupBindings, d as useEnabledToggleSet, dt as mergeKeybindings, et as KeyAction, f as DiscoveredMcp, ft as parseBindingSpec, g as defaultMcpsConfigPaths, gt as stripJsonComments, h as buildMcpServers, ht as resolveExtensionKeybindings, i as SessionExportFormat, it as ParsedBinding, j as ModelUsageSummary, k as StorageSlot, l as EnabledAllowlistKey, lt as keybindingsPath, m as DiscoveryResult, mt as readKeybindingsRaw, n as computeTurnAnchors, nt as KeyBindingSection, o as renderSession, ot as ensureKeybindingsFile, p as DiscoveryError, pt as readKeybindings, q as toolResultText, r as SessionExportAnchor, rt as KeyBindings, s as resolveSessionExportTarget, st as formatBindingForDisplay, t as TranscriptItem, tt as KeyBindingDef, u as EnabledToggleSet, ut as matchesBinding, v as parseMcpsFile, vt as Hint, w as resolveConfig, x as ProviderRegistry, xt as truncateTrailing, y as AutoUpdateConfig, yt as clipHintsToWidth, z as listSessionMeta } from "./transcript-anchors-CI-uoMfU.js";
|
|
3
|
+
import { $ as uniqueFilesFromReferences, A as buildUnifiedDiff, B as buildEditOutcomesAnnotation, C as EditSummary, D as PreviewResult, E as InlineSegment, F as previewEditPayload, G as rewriteMultiEditHeader, H as mergeApprovalAndBodyOutcomes, I as splitLines, J as SKILLS_TRIGGER, K as stripEditOutcomesAnnotation, L as summarizeEditPayload, M as computeLineDiff, N as extractEditPayload, O as applyEditPayload, P as filetypeFromPath, Q as createFilesCompletionProvider, R as tokenize, S as EditHunkSummary, T as InlineDiff, U as parseEditOutcomesFromResult, V as maskToOutcomeKinds, W as resolveApprovalForPayload, X as uniqueSkillNamesFromReferences, Y as createSkillsCompletionProvider, Z as FILES_TRIGGER, _ as formatTaskSummary, a as MAX_TRANSCRIPT_EVENTS, at as ChatReferenceEntry, b as DiffLine, c as finalizeStreamingMarkdown, ct as createChatsCompletionProvider, d as ageString, dt as buildLinearRamp, et as FileEntry, f as compactPath, g as formatTaskStatus, h as formatDuration, i as turnAsText, it as ChatReferenceData, j as computeInlineDiff, k as buildContextualDiff, l as finalizeStreamingMarkdownForOwner, lt as uniqueChatIdsFromReferences, m as fmtTokens, n as deleteTurnSafely, nt as listProjectFiles, o as TRANSCRIPT_TRIM_TO_EVENTS, ot as ChatReferenceScope, p as fmtCost, q as summarizeOutcomes, r as truncateTurnsAt, rt as CHATS_TRIGGER, s as capTranscriptEvents, st as chatReferenceTokensFromText, t as countNeighbors, tt as ListProjectFilesOptions, u as turnContextSize, ut as blendHsl, v as previewLine, w as HunkResolution, x as DiffOp, y as shortId, z as ResolvedApproval } from "./turn-operations-C6M0Mv-R.js";
|
|
4
|
+
import { A as turnSelectionOwnership, C as useSafeModeActions, D as isTurnHighlighted, E as isEditErrorResult, O as isVisible, S as SafeModeProvider, _ as splitMarkdownCodeBlocks, a as formatToolCall, b as RequestApproval, c as splitPromptSegments, d as filterModelCatalog, f as indexOfEntry, g as normalizeMarkdownCodeFences, h as chunkMarkdownForRender, i as displayNameFor, k as selectableTurnIds, l as CatalogEntry, m as MarkdownSegment, n as ToolDisplayMeta, o as PromptSegment, p as MARKDOWN_RENDER_CHUNK_TARGET_BYTES, r as ToolFormatLine, s as PromptSegmentRef, t as TOOL_DISPLAY, u as buildModelCatalog, v as ApprovalDecision, w as useSafeModeQueue, x as SafeModeActions, y as ApprovalRequest } from "./tool-formatters-1kJocBKe.js";
|
|
5
5
|
import { Hookable } from "hookable";
|
|
6
6
|
import { spawn } from "node:child_process";
|
|
7
7
|
import { OAuthCredentials, OAuthDeviceCodeInfo, OAuthPrompt, OAuthPrompt as OAuthPrompt$1, OAuthSelectPrompt } from "@earendil-works/pi-ai/oauth";
|
package/dist/chat.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.d.ts","names":[],"sources":["../src/tools/read-chat-turns.ts","../src/chat/agent-prompt.ts","../src/chat/agents-md.ts","../src/chat/auto-compact.ts","../src/chat/auto-update.ts","../src/chat/auto-update-cli.ts","../src/chat/auto-update-hook.ts","../src/chat/boot-profiler.ts","../src/chat/browser.ts","../src/chat/config-context.tsx","../src/chat/credentials.ts","../src/chat/discovery-context.tsx","../src/chat/discovery-slot.ts","../src/chat/footer-hints.ts","../src/chat/generate-title.ts","../src/chat/mcp-auth-state.ts","../src/chat/mcp-auth-context.tsx","../src/chat/mcp-credentials.ts","../src/chat/mcp-rows.ts","../src/chat/mcp-tool-toggle.ts","../src/chat/mcp-tools-cache.ts","../src/chat/oauth.ts","../src/chat/oauth-redirect.ts","../src/chat/path-display.ts","../src/chat/project-root.ts","../src/chat/project-user-paths.ts","../src/chat/safe-mode.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/gruvbox.ts","../src/chat/themes/vaporwave.ts","../src/chat/todos.ts","../src/chat/todo-anchor.ts"],"mappings":";;;;;;;;;;UAWiB,wBAAA;EACf,KAAA,EAAO,YAAY;EACnB,gBAAA;AAAA;AAAA,iBAGc,uBAAA,CAAwB,OAAA,EAAS,wBAAA,GAA2B,OAAO;AAAA,iBA2EnE,4BAAA,CAA6B,MAAc;;;;;;;;;;;;;;;AAhF3D;;;;;;;;AAEkB;AAGlB;;;;;;;;AAAmF;AA2EnF;;cCpDa,eAAA;AAAA,UAOI,iBAAA;ED6C0C;;;;ACpD3D;;EAcE,GAAA;EAd0B;AAAA;AAO5B;;;;;;;;EAkBE,WAAA;EAIQ;EAFR,IAAA;EAmBwB;EAjBxB,QAAA;AAA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AA,WAAkB,QAAA;;;;;;;EAOlB,UAAA,EAAY,QAAA;E9B5XF;AASZ;;;;E8ByXE,KAAA,EAAO,SAAA;AAAA;;;;;;;;A9BzX2F;AAqEpG;;;;;;;iB8B+UgB,eAAA,CAAgB,OAAmC,EAA1B,OAAO;;;;;;;;;;iBA+BhC,iBAAA,CAAkB,OAAA,EAAS,OAAA,sBAA6B,gBAAgB;A9B3VxF;;;;;;;;;AAQY;AASZ;;;;;;AAjBA,iB8BuYgB,cAAA,CAAe,OAAA,EAAS,OAAA,sBAA6B,gBAAgB;;;UCrmCpE,uBAAA;EACf,OAAA;EACA,QAAA;EACA,OAAA;AAAA;AAAA,iBAGc,sBAAA,CACd,KAAA,WAAgB,QAAA,IAChB,OAAA,GAAS,uBAA4B;;;;;AnCFvC;iBmCuBgB,2BAAA,CAA4B,OAAA,GAAS,uBAAA,GAA+B,YAAY"}
|
|
1
|
+
{"version":3,"file":"chat.d.ts","names":[],"sources":["../src/tools/read-chat-turns.ts","../src/chat/agent-prompt.ts","../src/chat/agents-md.ts","../src/chat/auto-compact.ts","../src/chat/auto-update.ts","../src/chat/auto-update-cli.ts","../src/chat/auto-update-hook.ts","../src/chat/boot-profiler.ts","../src/chat/browser.ts","../src/chat/config-context.tsx","../src/chat/credentials.ts","../src/chat/discovery-context.tsx","../src/chat/discovery-slot.ts","../src/chat/footer-hints.ts","../src/chat/generate-title.ts","../src/chat/mcp-auth-state.ts","../src/chat/mcp-auth-context.tsx","../src/chat/mcp-credentials.ts","../src/chat/mcp-rows.ts","../src/chat/mcp-tool-toggle.ts","../src/chat/mcp-tools-cache.ts","../src/chat/oauth.ts","../src/chat/oauth-redirect.ts","../src/chat/path-display.ts","../src/chat/project-root.ts","../src/chat/project-user-paths.ts","../src/chat/safe-mode.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/gruvbox.ts","../src/chat/themes/va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+UgB,eAAA,CAAgB,OAAA,EAAS,OAAO;EAAK,OAAA;AAAA;;;;;;;;;A9B/T5C;AAqCT;;;;;;;;;;AAAqG;AAarG;;;;AAAkD;AAsJlD;;;;;;;;;;;;;AAA0F;AA+K1F;;;;;;;;AAAmG;AA8GnG;;;;;;;;;;;iB8B/CgB,eAAA,CAAgB,OAAA,GAAS,sBAAA,GAA8B,MAAM;AAAA,UAoa5D,SAAA;EACf,OAAA;EACA,WAAA;EACA,SAAA;EACA,SAAA;AAAA;AAAA,UAGe,gBAAA;E9BpXN;E8BsXT,KAAA;E9BrXA;;;;;E8B2XA,KAAA,WAAgB,QAAA;E9BvXV;;;;;;;AAI8B;AAGtC;E8B0XE,OAAA,WAAkB,QAAA;;;;;;;EAOlB,UAAA,EAAY,QAAA;E9B5XF;AASZ;;;;E8ByXE,KAAA,EAAO,SAAA;AAAA;;;;;;;;A9BzX2F;AAqEpG;;;;;;;iB8B+UgB,eAAA,CAAgB,OAAmC,EAA1B,OAAO;;;;;;;;;;iBA+BhC,iBAAA,CAAkB,OAAA,EAAS,OAAA,sBAA6B,gBAAgB;A9B3VxF;;;;;;;;;AAQY;AASZ;;;;;;AAjBA,iB8BuYgB,cAAA,CAAe,OAAA,EAAS,OAAA,sBAA6B,gBAAgB;;;UCrmCpE,uBAAA;EACf,OAAA;EACA,QAAA;EACA,OAAA;AAAA;AAAA,iBAGc,sBAAA,CACd,KAAA,WAAgB,QAAA,IAChB,OAAA,GAAS,uBAA4B;;;;;AnCFvC;iBmCuBgB,2BAAA,CAA4B,OAAA,GAAS,uBAAA,GAA+B,YAAY"}
|
package/dist/chat.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as useMcpAuthState, $n as buildPlanSystem, $t as restoreChainFallbacks, A as runOAuthLogin, An as TODOWRITE_TOOL, At as DEFAULT_THEME, B as saveMcpToolsCache, Bn as setTodosForRun, Bt as createDiscoverySlot, C as projectsFilePath, Cn as DEFAULT_PERSIST_EXCLUDE_TOOLS, Ct as SETTINGS_CHOICES, D as formatPathForCwd, Dn as singleAgentRegistry, E as writeProjects, En as resolveAgentId, Et as SettingsProvider, F as parseMcpsFile, Fn as getTodosForRun, Ft as GRUVBOX_LIGHT, G as buildVisibleMcpRows, Gn as IDENTITY_PREFIX, Gt as useConfig, H as buildToolToggle, Hn as ACTIONS_WITH_CARE_DOCTRINE, Ht as useDiscovery, I as clearMcpToolsCache, In as isTodoTool, It as CATPPUCCIN_FRAPPE, J as createFileMcpCredentialStore, Jn as PLAN_MODE_DOCTRINE, Jt as buildRunModel, K as indexOfServerRow, Kn as INTERACTION_GUIDANCE, Kt as resolveConfig, L as loadMcpToolsCache, Ln as pickActiveRunId, Lt as CATPPUCCIN_LATTE, M as buildMcpServers, Mn as TODO_WRITE_COUNTS_METADATA_KEY, Mt as resolveTheme, N as defaultMcpsConfigPaths, Nn as createTodoTools, Nt as VAPORWAVE_THEME, O as fetchOAuthRedirect, On as TODOREAD_TOOL, Ot as useSettings, P as discoverProjectMcps, Pn as getArchivedTodosForRun, Pt as GRUVBOX_DARK, Q as useMcpAuthDispatch, Qn as buildBuildSystem, Qt as providerKeySetChanged, R as mcpToolsCachePath, Rn as pruneTodosByRun, Rt as CATPPUCCIN_MACCHIATO, S as matchesSafelistEntry, Sn as DEFAULT_BUDGET_EXCLUDE_TOOLS, St as SETTINGS_CATEGORIES, T as suggestSafelistEntries, Tn as accentColor, Tt as SETTINGS_TOGGLES, U as useMcpToolToggleMap, Un as COMMUNICATION_DOCTRINE, Ut as useDiscoveryOptional, V as subscribeMcpToolsCache, Vn as useActiveTodos, Vt as DiscoveryProvider, W as useMcpToolToggleSet, Wn as DOING_TASKS_DOCTRINE, Wt as ConfigProvider, X as patchMcpCredential, Xn as SUBAGENT_GUIDANCE, Xt as chainsEqual, Y as mcpCredentialsPath, Yn as PLAN_MODE_DOCTRINE_NO_PROMPTS, Yt as chainPositionOf, Z as McpAuthProvider, Zn as TOKEN_DISCIPLINE_DOCTRINE, Zt as filterChainFallbacks, _ as useSafeModeQueue, _n as discoverAgentsMd, _r as toolCallPreview, _t as buildHints, a as useSurfaces, an as bootTick, ar as createStateStore, at as buildResumedToolResultsTurn, b as getSafelist, bn as BUILTIN_AGENTS, br as usageByModel, bt as useEnabledToggleSet, c as useStreamBuffer, cn as checkForUpdate, cr as lastContextSizeFromTurns, ct as makeRequestInteraction, d as discoverProjectSkills, dn as detectPackageManager, dr as marginTopFor, dt as useInteractionsActions, en as sanitizeModelChain, er as envSection, et as getMcpAuthStatus, f as renderSession, fn as parseSemver, fr as saveState, ft as useInteractionsQueue, g as useSafeModeActions, gn as chatAutoCompactBehavior, gr as titleFromTurns, gt as truncateTrailing, h as SafeModeProvider, hn as resolvePlatformPackage, hr as sumRunCosts, ht as hintsLength, i as useSelectStyle, in as bootProfileEnabled, ir as compactSummaryEvent, it as PRESENT_PLAN_TOOL, j as supportsOAuth, jn as TODO_STATUS_GLYPHS, jt as resolveChipColor, k as oauthUsesManualCodePaste, kn as TODOS_METADATA_KEY, kt as BUILTIN_THEMES, l as buildSkillsConfig, ln as compareSemver, lr as listSessionMeta, lt as pendingInteractionsFromTurns, m as writeSessionExport, mn as performSelfUpdate, mr as stripSpawnTokensLine, mt as clipHintsToWidth, n as ThemeProvider, nn as useCompletion, nr as createChatTurnsReadTool, nt as ASK_USER_TOOL, o as useSyntaxStyles, on as buildUpdateHint, or as deriveSessionTitle, ot as createInteractionTools, p as resolveSessionExportTarget, pn as performInPlaceSelfUpdate, pt as EMPTY_HINTS, q as parentServerName, qn as INTERACTION_GUIDANCE_NO_PROMPTS, qt as resolveStoragePaths, r as useColors, rn as tryOpenBrowser, rt as InteractionsProvider, s as useTheme, sn as useUpdateCheck, sr as eventsFromTurns, st as isInteractionTool, t as computeTurnAnchors, tn as toggleChainEntry, tr as chatReferenceTokensForPrompt, tt as reduceMcpAuth, u as defaultSkillScanPaths, un as detectLibc, ur as loadState, ut as serializeInteractionResponse, v as IMPLICITLY_SAFE_TOOLS, vn as renderAgentsMdBlock, vr as toolResultText, vt as shortChord, w as readProjects, wn as PLAN_AGENT, wt as SETTINGS_INPUTS, x as isOnSafelist, xn as DEFAULT_AGENT_ID, xt as DEFAULT_SETTINGS, y as addToSafelist, yn as BUILD_AGENT, yr as updateToolEventOutcomes, yt as listProjectFiles, z as refreshMcpToolsCatalog, zn as selectActiveTodos, zt as CATPPUCCIN_MOCHA } from "./transcript-anchors-
|
|
1
|
+
import { $ as useMcpAuthState, $n as buildPlanSystem, $t as restoreChainFallbacks, A as runOAuthLogin, An as TODOWRITE_TOOL, At as DEFAULT_THEME, B as saveMcpToolsCache, Bn as setTodosForRun, Bt as createDiscoverySlot, C as projectsFilePath, Cn as DEFAULT_PERSIST_EXCLUDE_TOOLS, Ct as SETTINGS_CHOICES, D as formatPathForCwd, Dn as singleAgentRegistry, E as writeProjects, En as resolveAgentId, Et as SettingsProvider, F as parseMcpsFile, Fn as getTodosForRun, Ft as GRUVBOX_LIGHT, G as buildVisibleMcpRows, Gn as IDENTITY_PREFIX, Gt as useConfig, H as buildToolToggle, Hn as ACTIONS_WITH_CARE_DOCTRINE, Ht as useDiscovery, I as clearMcpToolsCache, In as isTodoTool, It as CATPPUCCIN_FRAPPE, J as createFileMcpCredentialStore, Jn as PLAN_MODE_DOCTRINE, Jt as buildRunModel, K as indexOfServerRow, Kn as INTERACTION_GUIDANCE, Kt as resolveConfig, L as loadMcpToolsCache, Ln as pickActiveRunId, Lt as CATPPUCCIN_LATTE, M as buildMcpServers, Mn as TODO_WRITE_COUNTS_METADATA_KEY, Mt as resolveTheme, N as defaultMcpsConfigPaths, Nn as createTodoTools, Nt as VAPORWAVE_THEME, O as fetchOAuthRedirect, On as TODOREAD_TOOL, Ot as useSettings, P as discoverProjectMcps, Pn as getArchivedTodosForRun, Pt as GRUVBOX_DARK, Q as useMcpAuthDispatch, Qn as buildBuildSystem, Qt as providerKeySetChanged, R as mcpToolsCachePath, Rn as pruneTodosByRun, Rt as CATPPUCCIN_MACCHIATO, S as matchesSafelistEntry, Sn as DEFAULT_BUDGET_EXCLUDE_TOOLS, St as SETTINGS_CATEGORIES, T as suggestSafelistEntries, Tn as accentColor, Tt as SETTINGS_TOGGLES, U as useMcpToolToggleMap, Un as COMMUNICATION_DOCTRINE, Ut as useDiscoveryOptional, V as subscribeMcpToolsCache, Vn as useActiveTodos, Vt as DiscoveryProvider, W as useMcpToolToggleSet, Wn as DOING_TASKS_DOCTRINE, Wt as ConfigProvider, X as patchMcpCredential, Xn as SUBAGENT_GUIDANCE, Xt as chainsEqual, Y as mcpCredentialsPath, Yn as PLAN_MODE_DOCTRINE_NO_PROMPTS, Yt as chainPositionOf, Z as McpAuthProvider, Zn as TOKEN_DISCIPLINE_DOCTRINE, Zt as filterChainFallbacks, _ as useSafeModeQueue, _n as discoverAgentsMd, _r as toolCallPreview, _t as buildHints, a as useSurfaces, an as bootTick, ar as createStateStore, at as buildResumedToolResultsTurn, b as getSafelist, bn as BUILTIN_AGENTS, br as usageByModel, bt as useEnabledToggleSet, c as useStreamBuffer, cn as checkForUpdate, cr as lastContextSizeFromTurns, ct as makeRequestInteraction, d as discoverProjectSkills, dn as detectPackageManager, dr as marginTopFor, dt as useInteractionsActions, en as sanitizeModelChain, er as envSection, et as getMcpAuthStatus, f as renderSession, fn as parseSemver, fr as saveState, ft as useInteractionsQueue, g as useSafeModeActions, gn as chatAutoCompactBehavior, gr as titleFromTurns, gt as truncateTrailing, h as SafeModeProvider, hn as resolvePlatformPackage, hr as sumRunCosts, ht as hintsLength, i as useSelectStyle, in as bootProfileEnabled, ir as compactSummaryEvent, it as PRESENT_PLAN_TOOL, j as supportsOAuth, jn as TODO_STATUS_GLYPHS, jt as resolveChipColor, k as oauthUsesManualCodePaste, kn as TODOS_METADATA_KEY, kt as BUILTIN_THEMES, l as buildSkillsConfig, ln as compareSemver, lr as listSessionMeta, lt as pendingInteractionsFromTurns, m as writeSessionExport, mn as performSelfUpdate, mr as stripSpawnTokensLine, mt as clipHintsToWidth, n as ThemeProvider, nn as useCompletion, nr as createChatTurnsReadTool, nt as ASK_USER_TOOL, o as useSyntaxStyles, on as buildUpdateHint, or as deriveSessionTitle, ot as createInteractionTools, p as resolveSessionExportTarget, pn as performInPlaceSelfUpdate, pt as EMPTY_HINTS, q as parentServerName, qn as INTERACTION_GUIDANCE_NO_PROMPTS, qt as resolveStoragePaths, r as useColors, rn as tryOpenBrowser, rt as InteractionsProvider, s as useTheme, sn as useUpdateCheck, sr as eventsFromTurns, st as isInteractionTool, t as computeTurnAnchors, tn as toggleChainEntry, tr as chatReferenceTokensForPrompt, tt as reduceMcpAuth, u as defaultSkillScanPaths, un as detectLibc, ur as loadState, ut as serializeInteractionResponse, v as IMPLICITLY_SAFE_TOOLS, vn as renderAgentsMdBlock, vr as toolResultText, vt as shortChord, w as readProjects, wn as PLAN_AGENT, wt as SETTINGS_INPUTS, x as isOnSafelist, xn as DEFAULT_AGENT_ID, xt as DEFAULT_SETTINGS, y as addToSafelist, yn as BUILD_AGENT, yr as updateToolEventOutcomes, yt as listProjectFiles, z as refreshMcpToolsCatalog, zn as selectActiveTodos, zt as CATPPUCCIN_MOCHA } from "./transcript-anchors-C8l8zDzs.js";
|
|
2
2
|
import { $ as composeExtensionPreset, $t as discoverExtensions, Bt as ensureKeybindingsFile, Ft as resolveStorageDirs, Gt as mergeKeybindings, Ht as groupBindings, It as DEFAULT_KEYBINDINGS, Jt as readKeybindingsRaw, Kt as parseBindingSpec, Lt as KEYBINDING_DEFS, Q as buildExtensionRegistry, Qt as defaultExtensionScanPaths, R as EMPTY_EXTENSION_REGISTRY, Rt as KEYBINDING_DEF_BY_ACTION, Ut as keybindingsPath, Vt as formatBindingForDisplay, Wt as matchesBinding, Xt as stripJsonComments, Yt as resolveExtensionKeybindings, Z as buildExtensionPreset, en as inlineLoadedExtension, et as disposeExtensionRegistry, fn as AUTO_COMPACT_MIN_GROWTH_FRACTION, hn as shouldAutoCompact, in as defineExtension, mn as effectiveContextWindow, nt as mergeContributions, pn as OUTPUT_RESERVE_TOKENS, qt as readKeybindings, rn as scanExtensionDirectories, rt as partitionExtensionCatalog, tt as filterExtensionRegistry, zt as KEYBINDING_KEY_COL_WIDTH } from "./agent-BJ1NC1pA.js";
|
|
3
3
|
import { t as buildContextBreakdown } from "./context-breakdown-Dzo25N45.js";
|
|
4
4
|
import { a as formatDuration, c as previewLine, i as fmtTokens, l as shortId, n as compactPath, o as formatTaskStatus, r as fmtCost, s as formatTaskSummary, t as ageString } from "./format-BF745pLL.js";
|
package/dist/contexts/e2b.d.ts
CHANGED
package/dist/eval.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $t as TrajectoryStep, At as EvalRunMetricAggregate, Bt as EvalVariantSummary, Cn as llmJudge, Ct as EvalArtifacts, Dn as runEvalCase, Dt as EvalDefinitionContext, En as relativeArtifactPath, Et as EvalDefinition, Ft as EvalRunUsage, Gt as MetricDirection, Ht as EvalWorkspaceOptions, It as EvalScore, Jt as MetricSpecMap, Kt as MetricEmitter, Lt as EvalScorer, Mt as EvalRunReporterOptions, Nt as EvalRunSummary, On as statusCompleted, Ot as EvalMetric, Pt as EvalRunSummaryCase, Qt as Trajectory, Rt as EvalScorerContext, Sn as functionalityMetric, St as EvalAgentStats, Tn as registerEvalTests, Tt as EvalCaseResult, Ut as EvalWorkspaceSnapshot, Vt as EvalWorkspaceFile, Wt as LlmJudgeOptions, Xt as RegisterEvalTestsOptions, Yt as MetricStats, Zt as ReusableExecutionContext, _n as fileExistsOneOf, _t as EvalAgent, an as clearRegisteredEvals, bn as formatEvalRunSummary, bt as EvalAgentRunResult, cn as createEvalRunReporter, dn as defineMetrics, en as TrajectoryStepKind, fn as efficiencyMetricValues, gn as fileExists, gt as EFFICIENCY_METRICS, hn as fileContentQuality, ht as CreateEvalAgentOptions, in as buildTrajectory, jt as EvalRunReporter, kt as EvalMetricError, ln as createReusableExecutionContext, mn as fileContains, nn as buildEvalRunSummary, on as computeEvalTagScores, pn as emitEfficiencyMetrics, qt as MetricSpec, rn as buildRegisteredEvals, sn as createEvalAgent, tn as artifactPath, un as defineEval, vn as finalizeEvalMetrics, vt as EvalAgentMcpServers, wn as normalizeMetric, wt as EvalCaseOptions, xn as formatTrajectoryLine, xt as EvalAgentRunStats, yn as formatEvalCaseSummary, yt as EvalAgentRunOptions, zt as EvalTestRunner } from "./index-
|
|
1
|
+
import { $t as TrajectoryStep, At as EvalRunMetricAggregate, Bt as EvalVariantSummary, Cn as llmJudge, Ct as EvalArtifacts, Dn as runEvalCase, Dt as EvalDefinitionContext, En as relativeArtifactPath, Et as EvalDefinition, Ft as EvalRunUsage, Gt as MetricDirection, Ht as EvalWorkspaceOptions, It as EvalScore, Jt as MetricSpecMap, Kt as MetricEmitter, Lt as EvalScorer, Mt as EvalRunReporterOptions, Nt as EvalRunSummary, On as statusCompleted, Ot as EvalMetric, Pt as EvalRunSummaryCase, Qt as Trajectory, Rt as EvalScorerContext, Sn as functionalityMetric, St as EvalAgentStats, Tn as registerEvalTests, Tt as EvalCaseResult, Ut as EvalWorkspaceSnapshot, Vt as EvalWorkspaceFile, Wt as LlmJudgeOptions, Xt as RegisterEvalTestsOptions, Yt as MetricStats, Zt as ReusableExecutionContext, _n as fileExistsOneOf, _t as EvalAgent, an as clearRegisteredEvals, bn as formatEvalRunSummary, bt as EvalAgentRunResult, cn as createEvalRunReporter, dn as defineMetrics, en as TrajectoryStepKind, fn as efficiencyMetricValues, gn as fileExists, gt as EFFICIENCY_METRICS, hn as fileContentQuality, ht as CreateEvalAgentOptions, in as buildTrajectory, jt as EvalRunReporter, kt as EvalMetricError, ln as createReusableExecutionContext, mn as fileContains, nn as buildEvalRunSummary, on as computeEvalTagScores, pn as emitEfficiencyMetrics, qt as MetricSpec, rn as buildRegisteredEvals, sn as createEvalAgent, tn as artifactPath, un as defineEval, vn as finalizeEvalMetrics, vt as EvalAgentMcpServers, wn as normalizeMetric, wt as EvalCaseOptions, xn as formatTrajectoryLine, xt as EvalAgentRunStats, yn as formatEvalCaseSummary, yt as EvalAgentRunOptions, zt as EvalTestRunner } from "./index-NKPCGq3q.js";
|
|
2
2
|
export { CreateEvalAgentOptions, EFFICIENCY_METRICS, EvalAgent, EvalAgentMcpServers, EvalAgentRunOptions, EvalAgentRunResult, EvalAgentRunStats, EvalAgentStats, EvalArtifacts, EvalCaseOptions, EvalCaseResult, EvalDefinition, EvalDefinitionContext, EvalMetric, EvalMetricError, EvalRunMetricAggregate, EvalRunReporter, EvalRunReporterOptions, EvalRunSummary, EvalRunSummaryCase, EvalRunUsage, EvalScore, EvalScorer, EvalScorerContext, EvalTestRunner, EvalVariantSummary, EvalWorkspaceFile, EvalWorkspaceOptions, EvalWorkspaceSnapshot, LlmJudgeOptions, MetricDirection, MetricEmitter, MetricSpec, MetricSpecMap, MetricStats, RegisterEvalTestsOptions, ReusableExecutionContext, Trajectory, TrajectoryStep, TrajectoryStepKind, artifactPath, buildEvalRunSummary, buildRegisteredEvals, buildTrajectory, clearRegisteredEvals, computeEvalTagScores, createEvalAgent, createEvalRunReporter, createReusableExecutionContext, defineEval, defineMetrics, efficiencyMetricValues, emitEfficiencyMetrics, fileContains, fileContentQuality, fileExists, fileExistsOneOf, finalizeEvalMetrics, formatEvalCaseSummary, formatEvalRunSummary, formatTrajectoryLine, functionalityMetric, llmJudge, normalizeMetric, registerEvalTests, relativeArtifactPath, runEvalCase, statusCompleted };
|
package/dist/extensions.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $a as ExtensionApiVersion, $i as ExtensionInstallError, $o as createExtensionHud, Aa as ExtensionConfigBooleanItem, Ao as ExtensionToolCatalogTransform, Ba as ExtensionConfigSurface, Bo as ExtensionTuiSurface, Ca as scanExtensionDirectories, Co as ExtensionRunTransform, Da as ExtensionPromptDelivery, Do as ExtensionSource, Ea as ExtensionPromptBridge, Eo as ExtensionSkillPolicy, Fa as ExtensionConfigItemBase, Fo as ExtensionToolRendererRegistration, Ga as clampExtensionConfigNumber, Gi as buildExtensionRegistry, Go as ExtensionHud, Ha as StoredExtensionConfigItem, Hi as BuildExtensionRegistryOptions, Ho as LoadedExtension, Ia as ExtensionConfigModelItem, Io as ExtensionToolResultMetadataRegistration, Ja as isValidExtensionConfigValue, Ji as filterExtensionRegistry, Jo as ExtensionHudWriter, Ka as coerceExtensionConfigInput, Ki as composeExtensionPreset, Ko as ExtensionHudState, La as ExtensionConfigNumberItem, Lo as ExtensionToolResultPatch, Ma as ExtensionConfigChangeBehavior, Mo as ExtensionToolRenderProps, Na as ExtensionConfigEnumItem, No as ExtensionToolRenderer, Oa as createExtensionPromptBridge, Oo as ExtensionStorageScope, Pa as ExtensionConfigItem, Po as ExtensionToolRendererEntry, Qa as EMPTY_EXTENSION_REGISTRY, Qi as ExtensionInstallCandidate, Qo as ExtensionStatusOptions, Ra as ExtensionConfigScope, Ro as ExtensionToolResultTransform, Sa as parseExtensionScanPathEnv, So as ExtensionRegistry, Ta as discoverAndBuildExtensionRegistry, To as ExtensionSessionStateSurface, Ua as WireExtensionConfigItem, Ui as ExtensionCatalogPartition, Uo as TuiContributions, Va as ExtensionConfigValue, Vo as GuiContributions, Wa as WireExtensionConfigSchema, Wi as buildExtensionPreset, Wo as ExtensionBannerOptions, Xa as resolveExtensionConfigValue, Xi as partitionExtensionCatalog, Xo as ExtensionNotifyOptions, Ya as resolveExtensionConfig, Yi as mergeContributions, Yo as ExtensionNotification, Za as toWireConfigSchema, Zi as ExtensionFetchResult, Zo as ExtensionNotifyTone, _a as ExtensionScanEntry, _o as ExtensionOrderedContribution, aa as ExtensionInstallSource, ao as ExtensionCustomRenderer, as as ExtensionSessionsSurface, ba as inlineLoadedExtension, bo as ExtensionPromptTransform, ca as fetchExtensionSource, co as ExtensionFooterHint, cs as createExtensionHostRuntimeBridge, da as parseExtensionInstallSource, do as ExtensionKeybinding, ea as ExtensionInstallErrorCode, eo as ExtensionBehaviorTransform, es as ExtensionHostRuntimeBridge, fa as readExtensionInstallProvenance, fo as ExtensionKeybindingDispatchContext, ga as ENTRY_CANDIDATES, go as ExtensionModalNode, ha as registerExtensionHostModules, ho as ExtensionModal, ia as ExtensionInstallScope, io as ExtensionContributions, is as ExtensionSessionSummary, ja as ExtensionConfigCategory, jo as ExtensionToolPolicy, ka as defineExtension, ko as ExtensionStorageSurface, la as installExtensionFromSpec, lo as ExtensionGuiPanel, ls as createWorkspaceSurface, ma as updateInstalledExtension, mo as ExtensionMcpConfigTransform, na as ExtensionInstallProvenance, no as ExtensionContext, ns as ExtensionModelEntry, oa as InstallExtensionFromSpecOptions, oo as ExtensionCustomRendererEntry, os as ExtensionWorkspacePair, pa as removeInstalledExtension, po as ExtensionManifest, qa as isValidExtensionConfigItem, qi as disposeExtensionRegistry, qo as ExtensionHudStatus, ra as ExtensionInstallResult, ro as ExtensionContextTransform, rs as ExtensionRuntimeSurface, sa as InstalledExtensionTargetOptions, so as ExtensionDefinition, ss as ExtensionWorkspaceSurface, ta as ExtensionInstallIo, to as ExtensionCapability, ts as ExtensionHostRuntimeImpl, ua as listExtensionCandidates, uo as ExtensionGuiSurface, va as defaultExtensionScanPaths, vo as ExtensionPaths, wa as DiscoverAndBuildExtensionRegistryOptions, wo as ExtensionRuntimeEnv, xa as isExtensionDefinition, xo as ExtensionProviderMiddleware, ya as discoverExtensions, yo as ExtensionPermission, za as ExtensionConfigStringItem, zo as ExtensionToolVerdict } from "./index-
|
|
1
|
+
import { $a as ExtensionApiVersion, $i as ExtensionInstallError, $o as createExtensionHud, Aa as ExtensionConfigBooleanItem, Ao as ExtensionToolCatalogTransform, Ba as ExtensionConfigSurface, Bo as ExtensionTuiSurface, Ca as scanExtensionDirectories, Co as ExtensionRunTransform, Da as ExtensionPromptDelivery, Do as ExtensionSource, Ea as ExtensionPromptBridge, Eo as ExtensionSkillPolicy, Fa as ExtensionConfigItemBase, Fo as ExtensionToolRendererRegistration, Ga as clampExtensionConfigNumber, Gi as buildExtensionRegistry, Go as ExtensionHud, Ha as StoredExtensionConfigItem, Hi as BuildExtensionRegistryOptions, Ho as LoadedExtension, Ia as ExtensionConfigModelItem, Io as ExtensionToolResultMetadataRegistration, Ja as isValidExtensionConfigValue, Ji as filterExtensionRegistry, Jo as ExtensionHudWriter, Ka as coerceExtensionConfigInput, Ki as composeExtensionPreset, Ko as ExtensionHudState, La as ExtensionConfigNumberItem, Lo as ExtensionToolResultPatch, Ma as ExtensionConfigChangeBehavior, Mo as ExtensionToolRenderProps, Na as ExtensionConfigEnumItem, No as ExtensionToolRenderer, Oa as createExtensionPromptBridge, Oo as ExtensionStorageScope, Pa as ExtensionConfigItem, Po as ExtensionToolRendererEntry, Qa as EMPTY_EXTENSION_REGISTRY, Qi as ExtensionInstallCandidate, Qo as ExtensionStatusOptions, Ra as ExtensionConfigScope, Ro as ExtensionToolResultTransform, Sa as parseExtensionScanPathEnv, So as ExtensionRegistry, Ta as discoverAndBuildExtensionRegistry, To as ExtensionSessionStateSurface, Ua as WireExtensionConfigItem, Ui as ExtensionCatalogPartition, Uo as TuiContributions, Va as ExtensionConfigValue, Vo as GuiContributions, Wa as WireExtensionConfigSchema, Wi as buildExtensionPreset, Wo as ExtensionBannerOptions, Xa as resolveExtensionConfigValue, Xi as partitionExtensionCatalog, Xo as ExtensionNotifyOptions, Ya as resolveExtensionConfig, Yi as mergeContributions, Yo as ExtensionNotification, Za as toWireConfigSchema, Zi as ExtensionFetchResult, Zo as ExtensionNotifyTone, _a as ExtensionScanEntry, _o as ExtensionOrderedContribution, aa as ExtensionInstallSource, ao as ExtensionCustomRenderer, as as ExtensionSessionsSurface, ba as inlineLoadedExtension, bo as ExtensionPromptTransform, ca as fetchExtensionSource, co as ExtensionFooterHint, cs as createExtensionHostRuntimeBridge, da as parseExtensionInstallSource, do as ExtensionKeybinding, ea as ExtensionInstallErrorCode, eo as ExtensionBehaviorTransform, es as ExtensionHostRuntimeBridge, fa as readExtensionInstallProvenance, fo as ExtensionKeybindingDispatchContext, ga as ENTRY_CANDIDATES, go as ExtensionModalNode, ha as registerExtensionHostModules, ho as ExtensionModal, ia as ExtensionInstallScope, io as ExtensionContributions, is as ExtensionSessionSummary, ja as ExtensionConfigCategory, jo as ExtensionToolPolicy, ka as defineExtension, ko as ExtensionStorageSurface, la as installExtensionFromSpec, lo as ExtensionGuiPanel, ls as createWorkspaceSurface, ma as updateInstalledExtension, mo as ExtensionMcpConfigTransform, na as ExtensionInstallProvenance, no as ExtensionContext, ns as ExtensionModelEntry, oa as InstallExtensionFromSpecOptions, oo as ExtensionCustomRendererEntry, os as ExtensionWorkspacePair, pa as removeInstalledExtension, po as ExtensionManifest, qa as isValidExtensionConfigItem, qi as disposeExtensionRegistry, qo as ExtensionHudStatus, ra as ExtensionInstallResult, ro as ExtensionContextTransform, rs as ExtensionRuntimeSurface, sa as InstalledExtensionTargetOptions, so as ExtensionDefinition, ss as ExtensionWorkspaceSurface, ta as ExtensionInstallIo, to as ExtensionCapability, ts as ExtensionHostRuntimeImpl, ua as listExtensionCandidates, uo as ExtensionGuiSurface, va as defaultExtensionScanPaths, vo as ExtensionPaths, wa as DiscoverAndBuildExtensionRegistryOptions, wo as ExtensionRuntimeEnv, xa as isExtensionDefinition, xo as ExtensionProviderMiddleware, ya as discoverExtensions, yo as ExtensionPermission, za as ExtensionConfigStringItem, zo as ExtensionToolVerdict } from "./index-NKPCGq3q.js";
|
|
2
2
|
export { type BuildExtensionRegistryOptions, type DiscoverAndBuildExtensionRegistryOptions, EMPTY_EXTENSION_REGISTRY, ENTRY_CANDIDATES, type ExtensionApiVersion, type ExtensionBannerOptions, type ExtensionBehaviorTransform, type ExtensionCapability, type ExtensionCatalogPartition, type ExtensionConfigBooleanItem, type ExtensionConfigCategory, type ExtensionConfigChangeBehavior, type ExtensionConfigEnumItem, type ExtensionConfigItem, type ExtensionConfigItemBase, type ExtensionConfigModelItem, type ExtensionConfigNumberItem, type ExtensionConfigScope, type ExtensionConfigStringItem, type ExtensionConfigSurface, type ExtensionConfigValue, type ExtensionContext, type ExtensionContextTransform, type ExtensionContributions, type ExtensionCustomRenderer, type ExtensionCustomRendererEntry, type ExtensionDefinition, type ExtensionFetchResult, type ExtensionFooterHint, type ExtensionGuiPanel, type ExtensionGuiSurface, type ExtensionHostRuntimeBridge, type ExtensionHostRuntimeImpl, type ExtensionHud, type ExtensionHudState, type ExtensionHudStatus, type ExtensionHudWriter, type ExtensionInstallCandidate, ExtensionInstallError, type ExtensionInstallErrorCode, type ExtensionInstallIo, type ExtensionInstallProvenance, type ExtensionInstallResult, type ExtensionInstallScope, type ExtensionInstallSource, type ExtensionKeybinding, type ExtensionKeybindingDispatchContext, type ExtensionManifest, type ExtensionMcpConfigTransform, type ExtensionModal, type ExtensionModalNode, type ExtensionModelEntry, type ExtensionNotification, type ExtensionNotifyOptions, type ExtensionNotifyTone, type ExtensionOrderedContribution, type ExtensionPaths, type ExtensionPermission, type ExtensionPromptBridge, type ExtensionPromptDelivery, type ExtensionPromptTransform, type ExtensionProviderMiddleware, type ExtensionRegistry, type ExtensionRunTransform, type ExtensionRuntimeEnv, type ExtensionRuntimeSurface, type ExtensionScanEntry, type ExtensionSessionStateSurface, type ExtensionSessionSummary, type ExtensionSessionsSurface, type ExtensionSkillPolicy, type ExtensionSource, type ExtensionStatusOptions, type ExtensionStorageScope, type ExtensionStorageSurface, type ExtensionToolCatalogTransform, type ExtensionToolPolicy, type ExtensionToolRenderProps, type ExtensionToolRenderer, type ExtensionToolRendererEntry, type ExtensionToolRendererRegistration, type ExtensionToolResultMetadataRegistration, type ExtensionToolResultPatch, type ExtensionToolResultTransform, type ExtensionToolVerdict, type ExtensionTuiSurface, type ExtensionWorkspacePair, type ExtensionWorkspaceSurface, type GuiContributions, type InstallExtensionFromSpecOptions, type InstalledExtensionTargetOptions, type LoadedExtension, type StoredExtensionConfigItem, type TuiContributions, type WireExtensionConfigItem, type WireExtensionConfigSchema, buildExtensionPreset, buildExtensionRegistry, clampExtensionConfigNumber, coerceExtensionConfigInput, composeExtensionPreset, createExtensionHostRuntimeBridge, createExtensionHud, createExtensionPromptBridge, createWorkspaceSurface, defaultExtensionScanPaths, defineExtension, discoverAndBuildExtensionRegistry, discoverExtensions, disposeExtensionRegistry, fetchExtensionSource, filterExtensionRegistry, inlineLoadedExtension, installExtensionFromSpec, isExtensionDefinition, isValidExtensionConfigItem, isValidExtensionConfigValue, listExtensionCandidates, mergeContributions, parseExtensionInstallSource, parseExtensionScanPathEnv, partitionExtensionCatalog, readExtensionInstallProvenance, registerExtensionHostModules, removeInstalledExtension, resolveExtensionConfig, resolveExtensionConfigValue, scanExtensionDirectories, toWireConfigSchema, updateInstalledExtension };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-data-WL_yGVL6.js","names":[],"sources":["../src/chat/commands.ts","../src/zod.ts","../src/chat/generate-title.ts","../src/chat/generate-data.ts"],"sourcesContent":["/**\n * `/` command model — an extension-contributed workflow invoked by typing\n * `/<name> [args]` as the whole prompt. A command is an ordered list of\n * handler **steps**; a bare `run` is sugar for a single step. Steps share a\n * mutable `data` bag, emit local output blocks (rendered in the transcript,\n * never sent to the model), and can drive the agent via `ctx.runAgent` so a\n * workflow can interact with the LLM mid-flight.\n *\n * This module is renderer-free and node-free: the types are the authoring\n * surface extensions compile against, and `executeCommand` / the parse\n * helper are pure so they're unit-testable without a TUI. The host supplies\n * the side-effecting capabilities on the step context: `emit` (render +\n * persist local output), `runAgent` (interactive sub-run), `generateData`\n * (silent schema-pinned JSON), and the optional `session` (read-only view)\n * and `interaction` (confirm / forms / plan approval) surfaces.\n */\n\nimport type { Logger } from '../logger'\nimport type { SessionRun } from '../session'\nimport type { JsonValue, SessionTurn } from '../types'\nimport type { InferSchemaOutput, SchemaInput, StandardSchemaLike } from '../zod'\nimport type { AnswerValue, PlanPayload, PlanResponse, QuestionPayload } from './interactions'\nimport type { StreamEvent } from './types'\n\n/**\n * A block of local output a step renders into the chat.\n *\n * Plain blocks (`text` only) render as full markdown, both live and on\n * reload — use them for the output the user should read in full (e.g. a\n * final commit message). Blocks with `detail` render as a collapsed\n * `command-detail` row instead (dim `▸ label` + line-capped body with\n * \"… N more lines\") — use them for bulky supporting output (diffs, logs,\n * listings) that shouldn't drown the transcript.\n */\nexport interface CommandOutputBlock {\n /**\n * The block body — full markdown, the detail body, or (for `custom`\n * blocks) the MANDATORY fallback markdown rendered wherever the\n * renderer isn't available: extension uninstalled or disabled,\n * headless host, GUI, renderer threw. The fallback is what persists\n * as the block's output, so pre-custom hosts render it natively.\n */\n text: string\n /**\n * Render as a collapsed detail row (dim `▸ label` + line-capped body)\n * instead of full markdown. `syntax: 'diff'` additionally colors\n * `+N` / `−N` count tokens (added green / deleted red) in both label\n * and body — for diff-stat-style output.\n */\n detail?: { label?: string, syntax?: 'diff' }\n /**\n * Render through an extension-registered custom renderer\n * (`ctx.tui.registerRenderer`). `renderer` must be the NAMESPACED id\n * (`<extension>/<id>`) — `ctx.appendNote` auto-prefixes bare ids for\n * its own extension; command `emit` requires the full form. `data`\n * must be JSON-safe (it persists in the session). Takes precedence\n * over `detail` when both are set.\n */\n custom?: { renderer: string, data?: JsonValue }\n}\n\n/**\n * User-interaction surface for commands — the same prompt-slot primitives\n * the `ask_user` / `present_plan` TOOLS render, but WITHOUT the tools: a\n * command enqueues directly into the host's interaction queue. No tool\n * calls, no turns, no model involvement — the answer routes straight back\n * to the awaiting step. Every method rejects on cancel/esc, which the\n * executor classifies as a quiet abort.\n */\nexport interface CommandInteraction {\n /**\n * One-tap yes/no — sugar over a single `confirm`-type question:\n *\n * if (await ctx.interaction.confirm('Push to origin/main?')) …\n */\n confirm: (prompt: string, opts?: {\n /** Optional context shown above the question (Markdown). */\n intro?: string\n /** Label for the affirmative option. Default `'yes'`. */\n affirmLabel?: string\n /** Label for the negative option. Default `'no'`. */\n denyLabel?: string\n }) => Promise<boolean>\n /**\n * Show a form (text / textarea / select / confirm questions — identical\n * UI to the ask_user tool) and resolve with the answers keyed by\n * `Question.id` (`string` for text/select, `boolean` for confirm,\n * `string[]` of choice ids for `multi: true` selects).\n */\n askUser: (form: QuestionPayload) => Promise<Readonly<Record<string, AnswerValue>>>\n /**\n * Present a plan for the full approval ceremony (approve / reject /\n * revise + optional comment — identical UI to present_plan). For\n * lightweight gating prefer {@link confirm}.\n */\n presentPlan: (plan: PlanPayload) => Promise<PlanResponse>\n}\n\n/**\n * Read-only view over the session a command runs inside — live getters, so\n * turns appended mid-workflow (e.g. by a `runAgent` sub-run) are visible on\n * the next read. Deliberately projection-only: no mutators, so commands\n * can't bypass the display-only `command`-turn contract or the wire guard\n * (`isWireTurn`). Persisting output goes through `emit`; driving the\n * conversation goes through `runAgent`.\n */\nexport interface CommandSessionView {\n readonly id: string\n /** Full persisted history, including display-only `command` turns. */\n readonly turns: readonly SessionTurn[]\n /** Run records (status, usage, cost, `origin`, …), newest last. */\n readonly runs: readonly SessionRun[]\n readonly metadata: Readonly<Record<string, unknown>>\n}\n\n/** Options for `ctx.generateData` — a silent, schema-pinned model call. */\nexport interface CommandGenerateDataOptions {\n /** Instruction describing the value to produce. */\n prompt: string\n /**\n * Shape of the result — a zod v4 schema (return type inferred, no casts)\n * or a plain JSON Schema object (name the type via the generic).\n */\n schema: SchemaInput\n /** Optional system prompt override. */\n system?: string\n /**\n * Fold a compacted transcript of the recent conversation into the call as\n * context. Default false — most workflow values derive from data the\n * command already gathered itself.\n */\n includeConversation?: boolean\n /**\n * Model id to run the call on (must exist in the host's model catalog —\n * see `ctx.runtime.models()` on the extension context). Omit to use the\n * session's active model.\n */\n model?: string\n}\n\n/** One task for {@link CommandStepContext.spawnAgents} — an isolated child agent run. */\nexport interface CommandSpawnTask {\n /** Task prompt for the child agent. Brief it like a colleague — it has no conversation context. */\n prompt: string\n /**\n * Model id from the host catalog (`ctx.runtime.models()` on the extension\n * context). Omit to inherit the session's active model. Unknown ids reject\n * the task (`status: 'rejected'`) without running anything.\n */\n model?: string\n /** System prompt override for the child. Inherits the agent's system prompt when omitted. */\n system?: string\n /** Short display label carried back on the result (defaults to the child id). */\n label?: string\n}\n\n/** Outcome of one {@link CommandSpawnTask}. */\nexport interface CommandSpawnResult {\n /** The task's `label` (or the child id when none was given). */\n label: string\n /** Model the task asked for, when pinned. */\n model?: string\n /** Terminal status. `'rejected'` = refused before running (unknown model, caps). */\n status: 'completed' | 'aborted' | 'timeout' | 'error' | 'rejected'\n /** The child's final assistant text. Empty unless `status === 'completed'`. */\n text: string\n /** Full formatted result / diagnostic (always set; useful for non-completed statuses). */\n message: string\n}\n\n/** Result of driving the agent from within a step via `ctx.runAgent`. */\nexport interface CommandAgentResult {\n /** The assistant's final text for this sub-run. */\n text: string\n}\n\n/** Capabilities + inputs handed to every step. */\nexport interface CommandStepContext {\n /** Raw text after `/<name>` (trimmed of the leading space). */\n readonly args: string\n /** `args` split on whitespace, empties removed. */\n readonly argv: readonly string[]\n /** Mutable bag threaded across steps; a step's returned `data` is merged in. */\n readonly data: Record<string, unknown>\n /** Render + persist a local output block. */\n readonly emit: (block: CommandOutputBlock) => void\n /**\n * Drive one agent run to completion and return its result. The prompt is\n * injected as a real user turn (model-visible, unchanged on the wire) and\n * the response streams into the transcript. Serialized with the host's run\n * slot, so a workflow can interleave deterministic steps with LLM\n * interaction. Any output `emit`ted before this call is flushed first,\n * preserving transcript order.\n *\n * `opts.display` replaces the full-prompt echo in the transcript with a\n * short line (the full prompt still renders beneath it as a collapsed\n * detail row, and still reaches the model verbatim) — pass it when the\n * prompt embeds bulky material like a diff.\n */\n readonly runAgent: (prompt: string, opts?: { readonly display?: string }) => Promise<CommandAgentResult>\n /**\n * Generate schema-conforming JSON with ONE silent model call — no session\n * turns, no transcript output, nothing added to the conversation (the\n * workflow presents results itself via `emit`). Reach for this when a\n * step needs a VALUE (a commit message, a classification, extracted\n * fields); reach for `runAgent` when it needs an interactive sub-run\n * with tools and streaming.\n */\n readonly generateData: {\n /** zod v4 schema → the result type is inferred from the schema. */\n <S extends StandardSchemaLike>(opts: Omit<CommandGenerateDataOptions, 'schema'> & { schema: S }): Promise<InferSchemaOutput<S>>\n /** Plain JSON Schema → name the result type explicitly. */\n <T = unknown>(opts: CommandGenerateDataOptions): Promise<T>\n }\n /** Logger with a `command=<name>` binding, routed to the host's log funnel. */\n readonly logger: Logger\n /** Aborts when the user presses esc during execution. */\n readonly signal: AbortSignal\n /** Working directory the command runs against. */\n readonly cwd: string\n /**\n * The surrounding session, when the host runs commands inside one (the\n * TUI always does). ABSENT in session-less contexts — a command that\n * reads it must guard (`if (!ctx.session) …`) or degrade gracefully.\n */\n readonly session?: CommandSessionView\n /**\n * User interaction (confirm / forms / plan approval), when the host has\n * an interactive surface (the TUI always does). ABSENT on UI-less hosts\n * — guard (`if (!ctx.interaction) …`) and degrade gracefully.\n */\n readonly interaction?: CommandInteraction\n /**\n * Run one or more ISOLATED child agents — each with its own context\n * window and the full tool set, optionally pinned to a different model\n * — and resolve when the whole batch settles. Tasks run in parallel\n * (bounded by `opts.maxConcurrent`, default 3). Children stream and\n * persist into the transcript exactly like `spawn`-tool subagents, so\n * the user sees their activity live and on reload; their context stays\n * isolated from the conversation.\n *\n * Complements {@link runAgent}: `runAgent` drives THE conversation\n * (model-visible turns, active model, serialized); `spawnAgents` fans\n * work out to throwaway workers. Results come back to the command —\n * persist what matters via {@link emit} (user-facing) and\n * {@link appendContext} (model-facing).\n *\n * ABSENT on hosts without an agent (guard like `session`).\n */\n readonly spawnAgents?: (\n tasks: readonly CommandSpawnTask[],\n opts?: { readonly maxConcurrent?: number },\n ) => Promise<readonly CommandSpawnResult[]>\n /**\n * Persist a compact MODEL-VISIBLE context note — a real user-role turn,\n * sent on the wire unchanged from the next run onward, without\n * triggering a run now. This is how a command's outcome becomes part of\n * the conversation: the next user prompt sees what the workflow\n * found/did without replaying subagent transcripts.\n *\n * `opts.display` swaps the LIVE transcript echo for a short line (the\n * full note renders as a collapsed detail under it); a reloaded session\n * renders the persisted full text as a plain user prompt. Keep notes\n * compact — they occupy context for the rest of the conversation.\n * ABSENT on session-less hosts.\n */\n readonly appendContext?: (text: string, opts?: { readonly display?: string }) => Promise<void>\n}\n\n/** Optional per-step return — `data` is merged into the shared bag for later steps. */\nexport interface CommandStepResult {\n data?: Record<string, unknown>\n}\n\nexport type CommandStepFn = (\n ctx: CommandStepContext,\n) => void | CommandStepResult | Promise<void | CommandStepResult>\n\nexport interface CommandStep {\n run: CommandStepFn\n}\n\n/** One argument suggestion returned by {@link Command.completeArgs}. */\nexport interface CommandArgSuggestion {\n /** Text inserted after `/<name> ` on accept. */\n value: string\n /** Display label. Defaults to `value`. */\n label?: string\n description?: string\n}\n\n/** An extension-contributed `/` command. Provide EITHER `run` (one step) or `steps`. */\nexport interface Command {\n /** Invoked as `/<name>`. Lowercase, no whitespace. */\n name: string\n /** One-line summary shown in the completion popover. */\n description: string\n /** Single-step sugar. */\n run?: CommandStepFn\n /** Explicit ordered pipeline. Takes precedence over `run` when both are set. */\n steps?: readonly CommandStep[]\n /**\n * Argument completion — called while the user types `/<name> <prefix>▌`\n * with everything after the command name (may itself contain spaces).\n * Return suggestions to show in the `/` popover; return `[]`/`undefined`\n * for none. Sync or async.\n */\n completeArgs?: (argsPrefix: string) => readonly CommandArgSuggestion[] | undefined | Promise<readonly CommandArgSuggestion[] | undefined>\n}\n\n/**\n * Persisted form of output blocks inside a display-only `command` turn:\n * plain blocks → `text` content; `detail` blocks → `tool_result` content\n * with the label/syntax carried in namespaced metadata (rebuilt into the\n * collapsed rendering on reload). Shared by the command emit flush and\n * `ctx.appendNote` so both persist identically.\n */\nexport function commandBlocksToContent(blocks: readonly CommandOutputBlock[]): SessionTurn['content'] {\n return blocks.map((block) => {\n if (!block.detail && !block.custom)\n return { type: 'text' as const, text: block.text }\n // Custom blocks persist with the FALLBACK as the output — an older\n // zidane (or any host without the renderer) reads this turn as a\n // plain detail block and renders the fallback natively. The renderer\n // binding rides namespaced metadata, exactly like detail label/syntax.\n const commandMeta: Record<string, JsonValue> = block.custom\n ? { custom: { renderer: block.custom.renderer, ...(block.custom.data !== undefined ? { data: block.custom.data } : {}) } }\n : {\n ...(block.detail?.label ? { label: block.detail.label } : {}),\n ...(block.detail?.syntax ? { syntax: block.detail.syntax } : {}),\n }\n return {\n type: 'tool_result' as const,\n callId: `command_detail_${crypto.randomUUID()}`,\n output: block.text,\n ...(Object.keys(commandMeta).length > 0 ? { metadata: { command: commandMeta } } : {}),\n }\n })\n}\n\n/**\n * Map ONE command-output block to its LIVE transcript event — the\n * in-memory mirror of {@link commandBlocksToContent}'s persisted shape\n * (whose replay side lives in `eventsFromTurns`). One definition shared\n * by the command emit flush and the `ctx.appendNote` host impl so live\n * rendering can never drift from reloaded rendering — the exact drift\n * that shipped `custom` blocks rendering only after a reload.\n *\n * Precedence matches the persisted side: `custom` > `detail` > markdown.\n */\nexport function commandBlockToEvent(block: CommandOutputBlock): StreamEvent {\n if (block.custom) {\n return {\n kind: 'custom',\n text: block.text,\n custom: {\n renderer: block.custom.renderer,\n ...(block.custom.data !== undefined ? { data: block.custom.data } : {}),\n },\n }\n }\n if (block.detail) {\n return {\n kind: 'command-detail',\n text: block.text,\n ...(block.detail.label ? { label: block.detail.label } : {}),\n ...(block.detail.syntax ? { syntax: block.detail.syntax } : {}),\n }\n }\n return { kind: 'markdown', text: block.text, streaming: false }\n}\n\n/** Normalize a command to its ordered step list (`steps` wins over `run`). */\nexport function commandSteps(command: Command): readonly CommandStep[] {\n if (command.steps && command.steps.length > 0)\n return command.steps\n if (command.run)\n return [{ run: command.run }]\n return []\n}\n\n/** Parsed `/<name> [args]` invocation. */\nexport interface CommandInvocation {\n name: string\n /** Text after the name, trimmed. */\n args: string\n /** `args` split on whitespace. */\n argv: string[]\n}\n\n/**\n * Parse a prompt as a command invocation, but only when the command token is\n * the LEADING token of the whole prompt and names a known command. This is\n * what keeps mid-prompt `/skill` mentions routed to the skills provider:\n * `\"summarize /research\"` is not a command, `\"/research foo\"` is.\n *\n * `knownNames` is matched case-insensitively; the returned `name` is the\n * canonical (registered) casing.\n */\nexport function parseCommandInvocation(\n prompt: string,\n knownNames: readonly string[],\n): CommandInvocation | null {\n const body = prompt.trimStart()\n if (body[0] !== '/')\n return null\n // First token = the command name; the remainder (after the first run of\n // whitespace) is the args. Linear scan — no backtracking-prone regex.\n const afterSlash = body.slice(1)\n const wsIdx = afterSlash.search(/\\s/)\n const typed = (wsIdx === -1 ? afterSlash : afterSlash.slice(0, wsIdx)).toLowerCase()\n if (typed.length === 0)\n return null\n const canonical = knownNames.find(n => n.toLowerCase() === typed)\n if (canonical === undefined)\n return null\n const args = (wsIdx === -1 ? '' : afterSlash.slice(wsIdx + 1)).trim()\n return { name: canonical, args, argv: args.length > 0 ? args.split(/\\s+/) : [] }\n}\n\n/** Outcome of a command run. `error` is set when a step threw (pipeline stops). */\nexport interface CommandExecution {\n ok: boolean\n /** Number of steps that ran (including the one that threw). */\n ranSteps: number\n error?: unknown\n /** True when the run stopped because `ctx.signal` aborted. */\n aborted?: boolean\n}\n\n/**\n * Run a command's steps in order, threading `ctx.data`. Stops at the first\n * step that throws (error isolated + returned, not rethrown) or when the\n * signal aborts. Pure orchestration — all I/O lives in the host-supplied\n * `ctx` capabilities.\n */\nexport async function executeCommand(\n command: Command,\n ctx: CommandStepContext,\n): Promise<CommandExecution> {\n const steps = commandSteps(command)\n let ranSteps = 0\n for (const step of steps) {\n if (ctx.signal.aborted)\n return { ok: false, ranSteps, aborted: true }\n ranSteps++\n try {\n const result = await step.run(ctx)\n if (result && result.data)\n Object.assign(ctx.data, result.data)\n }\n catch (error) {\n // An esc mid-step usually surfaces as a thrown AbortError from whatever\n // I/O the handler had in flight. Classify by the signal so hosts can\n // stay quiet on user-initiated aborts instead of painting an error.\n if (ctx.signal.aborted)\n return { ok: false, ranSteps, aborted: true }\n return { ok: false, ranSteps, error }\n }\n }\n return { ok: true, ranSteps }\n}\n","/**\n * Zod v4 integration helpers.\n *\n * Zod is an OPTIONAL peer dependency, so this module never imports it at the\n * top level. Schema-accepting APIs (`ctx.generateData`, `generateStructuredData`)\n * take either a plain JSON Schema object or any Standard-Schema-carrying\n * value (https://standardschema.dev — zod v4 implements it). Zod schemas are\n * detected structurally by vendor and converted with a lazy\n * `import('zod')` — safe because whoever constructed the schema necessarily\n * has zod installed. Result types are inferred from the standard-schema\n * `types.output` slot, so callers get full typing without a single cast:\n *\n * const CommitMessage = z.object({ subject: z.string(), body: z.string().optional() })\n * const msg = await ctx.generateData({ prompt, schema: CommitMessage })\n * // ^? { subject: string, body?: string }\n */\n\n/**\n * Structural stand-in for a Standard Schema (zod v4 et al.) — enough surface\n * to detect the vendor and infer the output type WITHOUT importing zod's\n * types into our public API.\n */\nexport interface StandardSchemaLike<Output = unknown> {\n readonly '~standard': {\n readonly version: number\n readonly vendor: string\n /** Type-level only (undefined at runtime) — carries the inferred output type. */\n readonly types?: { readonly output: Output } | undefined\n }\n}\n\n/** Output type carried by a {@link StandardSchemaLike}; `unknown` for plain JSON Schema. */\nexport type InferSchemaOutput<S> = S extends StandardSchemaLike<infer O> ? O : unknown\n\n/** A schema-accepting input: plain JSON Schema, or a Standard Schema (e.g. zod v4). */\nexport type SchemaInput = Record<string, unknown> | StandardSchemaLike\n\nexport function isStandardSchema(value: unknown): value is StandardSchemaLike {\n if (typeof value !== 'object' || value === null)\n return false\n const marker = (value as Record<string, unknown>)['~standard']\n return typeof marker === 'object' && marker !== null\n && typeof (marker as Record<string, unknown>).vendor === 'string'\n}\n\n/**\n * Resolve a {@link SchemaInput} to the plain JSON Schema object providers\n * expect. Zod schemas convert via the lazily-imported `z.toJSONSchema`\n * (v4 native); other Standard Schema vendors are rejected with a clear\n * error — conversion is vendor-specific and only zod is wired today.\n */\nexport async function resolveSchemaInput(schema: SchemaInput): Promise<Record<string, unknown>> {\n if (!isStandardSchema(schema))\n return schema\n const vendor = schema['~standard'].vendor\n if (vendor !== 'zod') {\n throw new Error(\n `unsupported schema vendor \"${vendor}\" — pass a zod v4 schema or a plain JSON Schema object`,\n )\n }\n // Lazy + guarded: zod is an optional peer, but a zod schema in hand means\n // the caller's process has zod — this import only fails on truly broken\n // installs, and then with an actionable message.\n let toJSONSchema: (schema: unknown) => Record<string, unknown>\n try {\n const zod = await import('zod')\n toJSONSchema = zod.z.toJSONSchema as typeof toJSONSchema\n }\n catch {\n throw new Error('a zod schema was passed but the \"zod\" package could not be imported — install zod >= 4')\n }\n return zodToJsonSchema(toJSONSchema(schema))\n}\n\n/**\n * Normalize a JSON Schema (e.g. from zod v4's z.toJSONSchema()) for use\n * as a ToolSpec.inputSchema.\n *\n * Strips the $schema key that some providers reject.\n */\nexport function zodToJsonSchema(jsonSchema: Record<string, unknown>): Record<string, unknown> {\n const { $schema, ...rest } = jsonSchema\n return rest\n}\n","/**\n * One-shot title generation for an existing session — feeds the last N\n * turns to the provider with a \"write me a title\" system prompt and\n * returns the cleaned-up result.\n *\n * Provider-agnostic: works with anything implementing the renderer-\n * shared `Provider` interface. No tools, no session mutation, no\n * caching — this is a cheap, isolated completion that should be safe to\n * fire even mid-session without touching the live agent loop.\n */\n\nimport type { Provider } from '../providers'\nimport type { SessionTurn } from '../types'\n\n/** Hard cap on the result length. Anything longer is truncated client-side. */\nconst TITLE_MAX_CHARS = 60\n\n/** Default turn count fed to the model. 10 covers most exchanges without bloat. */\nconst DEFAULT_MAX_TURNS = 10\n\n/** Tokens budgeted for the model's reply. 64 fits any sane title with headroom. */\nconst TITLE_RESPONSE_MAX_TOKENS = 64\n\n/** Per-turn body cap when assembling the prompt — keeps the request payload tight. */\nconst PROMPT_TURN_CHAR_MAX = 2000\n\nexport interface GenerateSessionTitleOptions {\n provider: Provider\n /** Model id used for the call. */\n model: string\n /** Conversation history to summarize. Empty → throws synchronously. */\n turns: readonly SessionTurn[]\n /** Cap on how many trailing turns to feed the model. Defaults to 10. */\n maxTurns?: number\n /** Optional cancellation signal — forwarded to the provider's stream. */\n signal?: AbortSignal\n}\n\n/**\n * Drive the provider's `stream()` once and return a concise title for\n * the conversation represented by `turns`. Throws when:\n * - `turns` contains no text-bearing content (nothing to summarize),\n * - the provider stream completes with no output text,\n * - `signal` is aborted (rethrown verbatim).\n *\n * Output is trimmed, single-line, with surrounding quotes / trailing\n * punctuation stripped, and truncated to `TITLE_MAX_CHARS`.\n */\nexport async function generateSessionTitle({\n provider,\n model,\n turns,\n maxTurns = DEFAULT_MAX_TURNS,\n signal,\n}: GenerateSessionTitleOptions): Promise<string> {\n const slice = turns.slice(-Math.max(1, maxTurns))\n const transcript = renderTurnsForPrompt(slice)\n if (!transcript)\n throw new Error('No text content in the recent turns to summarize.')\n\n const system = [\n 'You generate concise, descriptive titles for chat conversations.',\n 'Reply with ONLY the title — no quotes, no markdown, no trailing punctuation,',\n 'no preamble (do not say \"Title:\" or similar).',\n `Aim for 3 to 7 words and stay under ${TITLE_MAX_CHARS} characters.`,\n ].join(' ')\n\n const userPrompt = `Generate a title for this conversation:\\n\\n${transcript}`\n\n let text = ''\n const result = await provider.stream(\n {\n model,\n system,\n tools: [],\n messages: [provider.userMessage(userPrompt)],\n maxTokens: TITLE_RESPONSE_MAX_TOKENS,\n ...(signal ? { signal } : {}),\n },\n {\n onText: (delta) => { text += delta },\n },\n )\n // Prefer the streamed-text accumulator (driven by deltas) but fall\n // back to the provider's already-concatenated `result.text` for\n // adapters that batch on the final frame instead of emitting deltas.\n const raw = text.trim().length > 0 ? text : result.text\n return cleanTitle(raw)\n}\n\n/**\n * Decide whether a session is ready for one-shot automatic titling.\n *\n * Returns `true` iff the conversation has had its first exchange — at\n * least two turns, i.e. the opening user message plus the assistant's\n * reply (this is exactly the \"N turns\" count the sessions list shows) —\n * AND no explicit title has been set yet. An existing `metadata.title`\n * (a previous auto-generation, or a manual title from the session-details\n * \"generate title\" action) is never clobbered.\n *\n * Pure + total. The runtime layers its own \"is one already in flight?\"\n * and \"is a provider picked?\" guards on top of this; the predicate only\n * encodes the content-level rule so it can be pinned in tests without a\n * mock provider — same rationale as the exported {@link cleanTitle}.\n */\nexport function shouldAutoGenerateTitle(\n turns: readonly SessionTurn[],\n metadata?: Record<string, unknown>,\n): boolean {\n const existing = typeof metadata?.title === 'string' ? metadata.title.trim() : ''\n if (existing.length > 0)\n return false\n return turns.length >= 2\n}\n\n/**\n * Compact a turn list into a transcript-style prompt:\n *\n * user: …\n * assistant: …\n * user: …\n *\n * Tool calls and tool results are summarized to keep the request\n * payload small — the model needs the rough flow of the conversation,\n * not full JSON blobs. Per-turn text is clipped at `PROMPT_TURN_CHAR_MAX`\n * so a single huge code dump doesn't blow the budget.\n *\n * Returns an empty string when the slice has no text-bearing content\n * (e.g. a turn list that's only tool plumbing).\n *\n * Exported for reuse by other silent one-shot helpers (`generate-data`'s\n * optional conversation context) so every side-channel inference compacts\n * history the same way.\n */\nexport function renderTurnsForPrompt(turns: readonly SessionTurn[]): string {\n const lines: string[] = []\n for (const turn of turns) {\n const body = textBodyOf(turn)\n if (!body)\n continue\n const role = turn.role === 'assistant' ? 'assistant' : turn.role === 'user' ? 'user' : 'system'\n lines.push(`${role}: ${clip(body, PROMPT_TURN_CHAR_MAX)}`)\n }\n return lines.join('\\n\\n')\n}\n\nfunction textBodyOf(turn: SessionTurn): string {\n const parts: string[] = []\n for (const block of turn.content) {\n if (block.type === 'text' && block.text.trim())\n parts.push(block.text.trim())\n else if (block.type === 'tool_call')\n parts.push(`[tool: ${block.name}]`)\n else if (block.type === 'tool_result')\n parts.push(`[tool result]`)\n }\n return parts.join(' ')\n}\n\n/**\n * Normalize a model-generated title into the shape we want to persist:\n *\n * - Collapse internal whitespace + take the first line only (some\n * models emit \"Title: foo\\n\\nReason: …\" despite instructions).\n * - Strip surrounding quote characters (`\"foo\"`, `'foo'`, `` `foo` ``).\n * - Strip a leading `Title:` / `title -` prefix if the model added one.\n * - Strip trailing punctuation (`.`, `!`, `?`) — titles read cleaner\n * without it.\n * - Truncate to `TITLE_MAX_CHARS` with a trailing `…` when over.\n *\n * Exported as `cleanTitle` so tests can pin the normalization rules\n * without going through a mock provider.\n */\nexport function cleanTitle(raw: string): string {\n let s = raw.split('\\n')[0]?.trim() ?? ''\n // Strip a \"Title:\" / \"Title -\" preamble the model sometimes adds.\n s = s.replace(/^\\s*title\\s*[:\\-–—]\\s*/i, '')\n // Strip surrounding matched quotes.\n if (s.length >= 2) {\n const first = s.charAt(0)\n const last = s.charAt(s.length - 1)\n const matched = (first === '\"' && last === '\"')\n || (first === '\\'' && last === '\\'')\n || (first === '`' && last === '`')\n || (first === '“' && last === '”')\n if (matched)\n s = s.slice(1, -1).trim()\n }\n // Trim trailing terminal punctuation — titles don't take periods.\n s = s.replace(/[.!?]+$/, '').trim()\n if (s.length === 0)\n throw new Error('Model returned an empty title.')\n return s.length > TITLE_MAX_CHARS ? `${s.slice(0, TITLE_MAX_CHARS - 1)}…` : s\n}\n\nfunction clip(text: string, max: number): string {\n return text.length > max ? `${text.slice(0, max)}…` : text\n}\n","/**\n * Silent structured-output generation — one provider call that returns\n * schema-conforming JSON without touching the session or the transcript.\n *\n * Modeled on the two proven side-channel patterns in the codebase:\n * - `generate-title.ts`: a single `provider.stream()` with no session\n * writes and no transcript events (optionally seeded with a compacted\n * conversation transcript), and\n * - the loop's `__output__` schema enforcement: a synthetic tool whose\n * `inputSchema` IS the requested JSON Schema, with `toolChoice` pinned\n * so the model must answer with a conforming payload.\n *\n * Used by `/` commands via `ctx.generateData` to derive values from the\n * model (or from the conversation) mid-workflow without bloating the chat\n * history — e.g. `/commit` generating `{ subject, body }` from a diff.\n * For genuinely interactive sub-runs (real turns, streaming, tools), use\n * `ctx.runAgent` instead.\n */\n\nimport type { Provider, ToolSpec } from '../providers'\nimport type { SessionTurn } from '../types'\nimport type { InferSchemaOutput, SchemaInput, StandardSchemaLike } from '../zod'\nimport { resolveSchemaInput } from '../zod'\nimport { renderTurnsForPrompt } from './generate-title'\n\n/** Synthetic forced-choice tool name (never persisted — the call is side-channel only). */\nconst DATA_TOOL_NAME = '__data__'\n\n/** Default cap on conversation turns folded into the context block. */\nconst DEFAULT_CONTEXT_TURNS = 12\n\nexport interface GenerateStructuredDataOptions {\n provider: Provider\n model: string\n /** Instruction describing the value to produce. */\n prompt: string\n /**\n * Shape of the result — a plain JSON Schema object, or a zod v4 schema\n * (converted automatically; the return type is then inferred from it).\n * Becomes the forced tool's inputSchema.\n */\n schema: SchemaInput\n /** Optional system prompt. Defaults to a terse data-extraction persona. */\n system?: string\n /**\n * Conversation turns to fold in as compacted context (same clipping as\n * session auto-titling). Omit or pass empty for a context-free call.\n */\n turns?: readonly SessionTurn[]\n /** Cap on turns rendered into the context block. Default 12 (most recent). */\n maxContextTurns?: number\n signal?: AbortSignal\n}\n\n/**\n * Drive one schema-pinned provider call and return the conforming payload.\n * Throws when the provider returns no structured payload (and rethrows\n * aborts verbatim). The caller owns presentation — nothing is rendered or\n * persisted here.\n *\n * Pass a zod v4 schema and the return type is inferred from it; pass a\n * plain JSON Schema object and name the type via the generic.\n */\nexport async function generateStructuredData<S extends StandardSchemaLike>(\n options: GenerateStructuredDataOptions & { schema: S },\n): Promise<InferSchemaOutput<S>>\nexport async function generateStructuredData<T = unknown>(\n options: GenerateStructuredDataOptions,\n): Promise<T>\nexport async function generateStructuredData(\n options: GenerateStructuredDataOptions,\n): Promise<unknown> {\n const { provider, model, prompt, signal } = options\n const spec: ToolSpec = {\n name: DATA_TOOL_NAME,\n description: 'Return the result. The input of this call IS the answer — it must conform to the schema.',\n inputSchema: await resolveSchemaInput(options.schema),\n }\n\n const contextTurns = options.turns && options.turns.length > 0\n ? options.turns.slice(-(options.maxContextTurns ?? DEFAULT_CONTEXT_TURNS))\n : []\n const transcript = contextTurns.length > 0 ? renderTurnsForPrompt(contextTurns) : ''\n const userPrompt = transcript\n ? `<conversation>\\n${transcript}\\n</conversation>\\n\\n${prompt}`\n : prompt\n\n const result = await provider.stream(\n {\n model,\n system: options.system\n ?? `You produce structured data. Call the ${DATA_TOOL_NAME} tool exactly once with the requested value. No prose.`,\n tools: provider.formatTools([spec]),\n messages: [provider.userMessage(userPrompt)],\n toolChoice: { type: 'tool', name: DATA_TOOL_NAME },\n ...(signal ? { signal } : {}),\n },\n {\n onText: () => {},\n },\n )\n\n const payload = result.toolCalls.find(tc => tc.name === DATA_TOOL_NAME)?.input\n if (payload === undefined)\n throw new Error('generateStructuredData: the model returned no structured payload')\n return payload\n}\n"],"mappings":";;;;;;;;AA6TA,SAAgB,uBAAuB,QAA+D;CACpG,OAAO,OAAO,KAAK,UAAU;EAC3B,IAAI,CAAC,MAAM,UAAU,CAAC,MAAM,QAC1B,OAAO;GAAE,MAAM;GAAiB,MAAM,MAAM;EAAK;EAKnD,MAAM,cAAyC,MAAM,SACjD,EAAE,QAAQ;GAAE,UAAU,MAAM,OAAO;GAAU,GAAI,MAAM,OAAO,SAAS,KAAA,IAAY,EAAE,MAAM,MAAM,OAAO,KAAK,IAAI,CAAC;EAAG,EAAE,IACvH;GACE,GAAI,MAAM,QAAQ,QAAQ,EAAE,OAAO,MAAM,OAAO,MAAM,IAAI,CAAC;GAC3D,GAAI,MAAM,QAAQ,SAAS,EAAE,QAAQ,MAAM,OAAO,OAAO,IAAI,CAAC;EAChE;EACJ,OAAO;GACL,MAAM;GACN,QAAQ,kBAAkB,OAAO,WAAW;GAC5C,QAAQ,MAAM;GACd,GAAI,OAAO,KAAK,WAAW,CAAC,CAAC,SAAS,IAAI,EAAE,UAAU,EAAE,SAAS,YAAY,EAAE,IAAI,CAAC;EACtF;CACF,CAAC;AACH;;;;;;;;;;;AAYA,SAAgB,oBAAoB,OAAwC;CAC1E,IAAI,MAAM,QACR,OAAO;EACL,MAAM;EACN,MAAM,MAAM;EACZ,QAAQ;GACN,UAAU,MAAM,OAAO;GACvB,GAAI,MAAM,OAAO,SAAS,KAAA,IAAY,EAAE,MAAM,MAAM,OAAO,KAAK,IAAI,CAAC;EACvE;CACF;CAEF,IAAI,MAAM,QACR,OAAO;EACL,MAAM;EACN,MAAM,MAAM;EACZ,GAAI,MAAM,OAAO,QAAQ,EAAE,OAAO,MAAM,OAAO,MAAM,IAAI,CAAC;EAC1D,GAAI,MAAM,OAAO,SAAS,EAAE,QAAQ,MAAM,OAAO,OAAO,IAAI,CAAC;CAC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AI,CAAC;CAC7B,GACA,EACE,cAAc,CAAC,EACjB,CACF,EAAA,CAEuB,UAAU,MAAK,OAAM,GAAG,SAAS,cAAc,CAAC,EAAE;CACzE,IAAI,YAAY,KAAA,GACd,MAAM,IAAI,MAAM,kEAAkE;CACpF,OAAO;AACT"}
|
|
1
|
+
{"version":3,"file":"generate-data-WL_yGVL6.js","names":[],"sources":["../src/chat/commands.ts","../src/zod.ts","../src/chat/generate-title.ts","../src/chat/generate-data.ts"],"sourcesContent":["/**\n * `/` command model — an extension-contributed workflow invoked by typing\n * `/<name> [args]` as the whole prompt. A command is an ordered list of\n * handler **steps**; a bare `run` is sugar for a single step. Steps share a\n * mutable `data` bag, emit local output blocks (rendered in the transcript,\n * never sent to the model), and can drive the agent via `ctx.runAgent` so a\n * workflow can interact with the LLM mid-flight.\n *\n * This module is renderer-free and node-free: the types are the authoring\n * surface extensions compile against, and `executeCommand` / the parse\n * helper are pure so they're unit-testable without a TUI. The host supplies\n * the side-effecting capabilities on the step context: `emit` (render +\n * persist local output), `runAgent` (interactive sub-run), `generateData`\n * (silent schema-pinned JSON), and the optional `session` (read-only view)\n * and `interaction` (confirm / forms / plan approval) surfaces.\n */\n\nimport type { Logger } from '../logger'\nimport type { SessionRun } from '../session'\nimport type { JsonValue, SessionTurn } from '../types'\nimport type { InferSchemaOutput, SchemaInput, StandardSchemaLike } from '../zod'\nimport type { AnswerValue, PlanPayload, PlanResponse, QuestionPayload } from './interactions'\nimport type { StreamEvent } from './types'\n\n/**\n * A block of local output a step renders into the chat.\n *\n * Plain blocks (`text` only) render as full markdown, both live and on\n * reload — use them for the output the user should read in full (e.g. a\n * final commit message). Blocks with `detail` render as a collapsed\n * `command-detail` row instead (dim `▸ label` + line-capped body with\n * \"… N more lines\") — use them for bulky supporting output (diffs, logs,\n * listings) that shouldn't drown the transcript.\n */\nexport interface CommandOutputBlock {\n /**\n * The block body — full markdown, the detail body, or (for `custom`\n * blocks) the MANDATORY fallback markdown rendered wherever the\n * renderer isn't available: extension uninstalled or disabled,\n * headless host, GUI, renderer threw. The fallback is what persists\n * as the block's output, so pre-custom hosts render it natively.\n */\n text: string\n /**\n * Render as a collapsed detail row (dim `▸ label` + line-capped body)\n * instead of full markdown. `syntax: 'diff'` additionally colors\n * `+N` / `−N` count tokens (added green / deleted red) in both label\n * and body — for diff-stat-style output.\n */\n detail?: { label?: string, syntax?: 'diff' }\n /**\n * Render through an extension-registered custom renderer\n * (`ctx.tui.registerRenderer`). `renderer` must be the NAMESPACED id\n * (`<extension>/<id>`) — `ctx.appendNote` auto-prefixes bare ids for\n * its own extension; command `emit` requires the full form. `data`\n * must be JSON-safe (it persists in the session). Takes precedence\n * over `detail` when both are set.\n */\n custom?: { renderer: string, data?: JsonValue }\n}\n\n/**\n * User-interaction surface for commands — the same prompt-slot primitives\n * the `ask_user` / `present_plan` TOOLS render, but WITHOUT the tools: a\n * command enqueues directly into the host's interaction queue. No tool\n * calls, no turns, no model involvement — the answer routes straight back\n * to the awaiting step. Every method rejects on cancel/esc, which the\n * executor classifies as a quiet abort.\n */\nexport interface CommandInteraction {\n /**\n * One-tap yes/no — sugar over a single `confirm`-type question:\n *\n * if (await ctx.interaction.confirm('Push to origin/main?')) …\n */\n confirm: (prompt: string, opts?: {\n /** Optional context shown above the question (Markdown). */\n intro?: string\n /** Label for the affirmative option. Default `'yes'`. */\n affirmLabel?: string\n /** Label for the negative option. Default `'no'`. */\n denyLabel?: string\n }) => Promise<boolean>\n /**\n * Show a form (text / textarea / select / confirm questions — identical\n * UI to the ask_user tool) and resolve with the answers keyed by\n * `Question.id` (`string` for text/select, `boolean` for confirm,\n * `string[]` of choice ids for `multi: true` selects).\n */\n askUser: (form: QuestionPayload) => Promise<Readonly<Record<string, AnswerValue>>>\n /**\n * Present a plan for the full approval ceremony (approve / reject /\n * revise + optional comment — identical UI to present_plan). For\n * lightweight gating prefer {@link confirm}.\n */\n presentPlan: (plan: PlanPayload) => Promise<PlanResponse>\n}\n\n/**\n * Read-only view over the session a command runs inside — live getters, so\n * turns appended mid-workflow (e.g. by a `runAgent` sub-run) are visible on\n * the next read. Deliberately projection-only: no mutators, so commands\n * can't bypass the display-only `command`-turn contract or the wire guard\n * (`isWireTurn`). Persisting output goes through `emit`; driving the\n * conversation goes through `runAgent`.\n */\nexport interface CommandSessionView {\n readonly id: string\n /** Full persisted history, including display-only `command` turns. */\n readonly turns: readonly SessionTurn[]\n /** Run records (status, usage, cost, `origin`, …), newest last. */\n readonly runs: readonly SessionRun[]\n readonly metadata: Readonly<Record<string, unknown>>\n}\n\n/** Options for `ctx.generateData` — a silent, schema-pinned model call. */\nexport interface CommandGenerateDataOptions {\n /** Instruction describing the value to produce. */\n prompt: string\n /**\n * Shape of the result — a zod v4 schema (return type inferred, no casts)\n * or a plain JSON Schema object (name the type via the generic).\n */\n schema: SchemaInput\n /** Optional system prompt override. */\n system?: string\n /**\n * Fold a compacted transcript of the recent conversation into the call as\n * context. Default false — most workflow values derive from data the\n * command already gathered itself.\n */\n includeConversation?: boolean\n /**\n * Model id to run the call on (must exist in the host's model catalog —\n * see `ctx.runtime.models()` on the extension context). Omit to use the\n * session's active model.\n */\n model?: string\n}\n\n/** One task for {@link CommandStepContext.spawnAgents} — an isolated child agent run. */\nexport interface CommandSpawnTask {\n /** Task prompt for the child agent. Brief it like a colleague — it has no conversation context. */\n prompt: string\n /**\n * Model id from the host catalog (`ctx.runtime.models()` on the extension\n * context). Omit to inherit the session's active model. Unknown ids reject\n * the task (`status: 'rejected'`) without running anything.\n */\n model?: string\n /** System prompt override for the child. Inherits the agent's system prompt when omitted. */\n system?: string\n /** Short display label carried back on the result (defaults to the child id). */\n label?: string\n}\n\n/** Outcome of one {@link CommandSpawnTask}. */\nexport interface CommandSpawnResult {\n /** The task's `label` (or the child id when none was given). */\n label: string\n /** Model the task asked for, when pinned. */\n model?: string\n /** Terminal status. `'rejected'` = refused before running (unknown model, caps). */\n status: 'completed' | 'aborted' | 'timeout' | 'error' | 'rejected'\n /** The child's final assistant text. Empty unless `status === 'completed'`. */\n text: string\n /** Full formatted result / diagnostic (always set; useful for non-completed statuses). */\n message: string\n}\n\n/** Result of driving the agent from within a step via `ctx.runAgent`. */\nexport interface CommandAgentResult {\n /** The assistant's final text for this sub-run. */\n text: string\n}\n\n/** Capabilities + inputs handed to every step. */\nexport interface CommandStepContext {\n /** Raw text after `/<name>` (trimmed of the leading space). */\n readonly args: string\n /** `args` split on whitespace, empties removed. */\n readonly argv: readonly string[]\n /** Mutable bag threaded across steps; a step's returned `data` is merged in. */\n readonly data: Record<string, unknown>\n /** Render + persist a local output block. */\n readonly emit: (block: CommandOutputBlock) => void\n /**\n * Drive one agent run to completion and return its result. The prompt is\n * injected as a real user turn (model-visible, unchanged on the wire) and\n * the response streams into the transcript. Serialized with the host's run\n * slot, so a workflow can interleave deterministic steps with LLM\n * interaction. Any output `emit`ted before this call is flushed first,\n * preserving transcript order.\n *\n * `opts.display` replaces the full-prompt echo in the transcript with a\n * short line (the full prompt still renders beneath it as a collapsed\n * detail row, and still reaches the model verbatim) — pass it when the\n * prompt embeds bulky material like a diff.\n */\n readonly runAgent: (prompt: string, opts?: { readonly display?: string }) => Promise<CommandAgentResult>\n /**\n * Generate schema-conforming JSON with ONE silent model call — no session\n * turns, no transcript output, nothing added to the conversation (the\n * workflow presents results itself via `emit`). Reach for this when a\n * step needs a VALUE (a commit message, a classification, extracted\n * fields); reach for `runAgent` when it needs an interactive sub-run\n * with tools and streaming.\n */\n readonly generateData: {\n /** zod v4 schema → the result type is inferred from the schema. */\n <S extends StandardSchemaLike>(opts: Omit<CommandGenerateDataOptions, 'schema'> & { schema: S }): Promise<InferSchemaOutput<S>>\n /** Plain JSON Schema → name the result type explicitly. */\n <T = unknown>(opts: CommandGenerateDataOptions): Promise<T>\n }\n /** Logger with a `command=<name>` binding, routed to the host's log funnel. */\n readonly logger: Logger\n /** Aborts when the user presses esc during execution. */\n readonly signal: AbortSignal\n /** Working directory the command runs against. */\n readonly cwd: string\n /**\n * The surrounding session, when the host runs commands inside one (the\n * TUI always does). ABSENT in session-less contexts — a command that\n * reads it must guard (`if (!ctx.session) …`) or degrade gracefully.\n */\n readonly session?: CommandSessionView\n /**\n * User interaction (confirm / forms / plan approval), when the host has\n * an interactive surface (the TUI always does). ABSENT on UI-less hosts\n * — guard (`if (!ctx.interaction) …`) and degrade gracefully.\n */\n readonly interaction?: CommandInteraction\n /**\n * Run one or more ISOLATED child agents — each with its own context\n * window and the full tool set, optionally pinned to a different model\n * — and resolve when the whole batch settles. Tasks run in parallel\n * (bounded by `opts.maxConcurrent`, default 3). Children stream and\n * persist into the transcript exactly like `spawn`-tool subagents, so\n * the user sees their activity live and on reload; their context stays\n * isolated from the conversation.\n *\n * Complements {@link runAgent}: `runAgent` drives THE conversation\n * (model-visible turns, active model, serialized); `spawnAgents` fans\n * work out to throwaway workers. Results come back to the command —\n * persist what matters via {@link emit} (user-facing) and\n * {@link appendContext} (model-facing).\n *\n * ABSENT on hosts without an agent (guard like `session`).\n */\n readonly spawnAgents?: (\n tasks: readonly CommandSpawnTask[],\n opts?: { readonly maxConcurrent?: number },\n ) => Promise<readonly CommandSpawnResult[]>\n /**\n * Persist a compact MODEL-VISIBLE context note — a real user-role turn,\n * sent on the wire unchanged from the next run onward, without\n * triggering a run now. This is how a command's outcome becomes part of\n * the conversation: the next user prompt sees what the workflow\n * found/did without replaying subagent transcripts.\n *\n * `opts.display` swaps the LIVE transcript echo for a short one-line\n * marker; a reloaded session renders the persisted full text as a plain\n * user prompt. Keep notes compact — they occupy context for the rest of\n * the conversation. ABSENT on session-less hosts.\n */\n readonly appendContext?: (text: string, opts?: { readonly display?: string }) => Promise<void>\n}\n\n/** Optional per-step return — `data` is merged into the shared bag for later steps. */\nexport interface CommandStepResult {\n data?: Record<string, unknown>\n}\n\nexport type CommandStepFn = (\n ctx: CommandStepContext,\n) => void | CommandStepResult | Promise<void | CommandStepResult>\n\nexport interface CommandStep {\n run: CommandStepFn\n}\n\n/** One argument suggestion returned by {@link Command.completeArgs}. */\nexport interface CommandArgSuggestion {\n /** Text inserted after `/<name> ` on accept. */\n value: string\n /** Display label. Defaults to `value`. */\n label?: string\n description?: string\n}\n\n/** An extension-contributed `/` command. Provide EITHER `run` (one step) or `steps`. */\nexport interface Command {\n /** Invoked as `/<name>`. Lowercase, no whitespace. */\n name: string\n /** One-line summary shown in the completion popover. */\n description: string\n /** Single-step sugar. */\n run?: CommandStepFn\n /** Explicit ordered pipeline. Takes precedence over `run` when both are set. */\n steps?: readonly CommandStep[]\n /**\n * Argument completion — called while the user types `/<name> <prefix>▌`\n * with everything after the command name (may itself contain spaces).\n * Return suggestions to show in the `/` popover; return `[]`/`undefined`\n * for none. Sync or async.\n */\n completeArgs?: (argsPrefix: string) => readonly CommandArgSuggestion[] | undefined | Promise<readonly CommandArgSuggestion[] | undefined>\n}\n\n/**\n * Persisted form of output blocks inside a display-only `command` turn:\n * plain blocks → `text` content; `detail` blocks → `tool_result` content\n * with the label/syntax carried in namespaced metadata (rebuilt into the\n * collapsed rendering on reload). Shared by the command emit flush and\n * `ctx.appendNote` so both persist identically.\n */\nexport function commandBlocksToContent(blocks: readonly CommandOutputBlock[]): SessionTurn['content'] {\n return blocks.map((block) => {\n if (!block.detail && !block.custom)\n return { type: 'text' as const, text: block.text }\n // Custom blocks persist with the FALLBACK as the output — an older\n // zidane (or any host without the renderer) reads this turn as a\n // plain detail block and renders the fallback natively. The renderer\n // binding rides namespaced metadata, exactly like detail label/syntax.\n const commandMeta: Record<string, JsonValue> = block.custom\n ? { custom: { renderer: block.custom.renderer, ...(block.custom.data !== undefined ? { data: block.custom.data } : {}) } }\n : {\n ...(block.detail?.label ? { label: block.detail.label } : {}),\n ...(block.detail?.syntax ? { syntax: block.detail.syntax } : {}),\n }\n return {\n type: 'tool_result' as const,\n callId: `command_detail_${crypto.randomUUID()}`,\n output: block.text,\n ...(Object.keys(commandMeta).length > 0 ? { metadata: { command: commandMeta } } : {}),\n }\n })\n}\n\n/**\n * Map ONE command-output block to its LIVE transcript event — the\n * in-memory mirror of {@link commandBlocksToContent}'s persisted shape\n * (whose replay side lives in `eventsFromTurns`). One definition shared\n * by the command emit flush and the `ctx.appendNote` host impl so live\n * rendering can never drift from reloaded rendering — the exact drift\n * that shipped `custom` blocks rendering only after a reload.\n *\n * Precedence matches the persisted side: `custom` > `detail` > markdown.\n */\nexport function commandBlockToEvent(block: CommandOutputBlock): StreamEvent {\n if (block.custom) {\n return {\n kind: 'custom',\n text: block.text,\n custom: {\n renderer: block.custom.renderer,\n ...(block.custom.data !== undefined ? { data: block.custom.data } : {}),\n },\n }\n }\n if (block.detail) {\n return {\n kind: 'command-detail',\n text: block.text,\n ...(block.detail.label ? { label: block.detail.label } : {}),\n ...(block.detail.syntax ? { syntax: block.detail.syntax } : {}),\n }\n }\n return { kind: 'markdown', text: block.text, streaming: false }\n}\n\n/** Normalize a command to its ordered step list (`steps` wins over `run`). */\nexport function commandSteps(command: Command): readonly CommandStep[] {\n if (command.steps && command.steps.length > 0)\n return command.steps\n if (command.run)\n return [{ run: command.run }]\n return []\n}\n\n/** Parsed `/<name> [args]` invocation. */\nexport interface CommandInvocation {\n name: string\n /** Text after the name, trimmed. */\n args: string\n /** `args` split on whitespace. */\n argv: string[]\n}\n\n/**\n * Parse a prompt as a command invocation, but only when the command token is\n * the LEADING token of the whole prompt and names a known command. This is\n * what keeps mid-prompt `/skill` mentions routed to the skills provider:\n * `\"summarize /research\"` is not a command, `\"/research foo\"` is.\n *\n * `knownNames` is matched case-insensitively; the returned `name` is the\n * canonical (registered) casing.\n */\nexport function parseCommandInvocation(\n prompt: string,\n knownNames: readonly string[],\n): CommandInvocation | null {\n const body = prompt.trimStart()\n if (body[0] !== '/')\n return null\n // First token = the command name; the remainder (after the first run of\n // whitespace) is the args. Linear scan — no backtracking-prone regex.\n const afterSlash = body.slice(1)\n const wsIdx = afterSlash.search(/\\s/)\n const typed = (wsIdx === -1 ? afterSlash : afterSlash.slice(0, wsIdx)).toLowerCase()\n if (typed.length === 0)\n return null\n const canonical = knownNames.find(n => n.toLowerCase() === typed)\n if (canonical === undefined)\n return null\n const args = (wsIdx === -1 ? '' : afterSlash.slice(wsIdx + 1)).trim()\n return { name: canonical, args, argv: args.length > 0 ? args.split(/\\s+/) : [] }\n}\n\n/** Outcome of a command run. `error` is set when a step threw (pipeline stops). */\nexport interface CommandExecution {\n ok: boolean\n /** Number of steps that ran (including the one that threw). */\n ranSteps: number\n error?: unknown\n /** True when the run stopped because `ctx.signal` aborted. */\n aborted?: boolean\n}\n\n/**\n * Run a command's steps in order, threading `ctx.data`. Stops at the first\n * step that throws (error isolated + returned, not rethrown) or when the\n * signal aborts. Pure orchestration — all I/O lives in the host-supplied\n * `ctx` capabilities.\n */\nexport async function executeCommand(\n command: Command,\n ctx: CommandStepContext,\n): Promise<CommandExecution> {\n const steps = commandSteps(command)\n let ranSteps = 0\n for (const step of steps) {\n if (ctx.signal.aborted)\n return { ok: false, ranSteps, aborted: true }\n ranSteps++\n try {\n const result = await step.run(ctx)\n if (result && result.data)\n Object.assign(ctx.data, result.data)\n }\n catch (error) {\n // An esc mid-step usually surfaces as a thrown AbortError from whatever\n // I/O the handler had in flight. Classify by the signal so hosts can\n // stay quiet on user-initiated aborts instead of painting an error.\n if (ctx.signal.aborted)\n return { ok: false, ranSteps, aborted: true }\n return { ok: false, ranSteps, error }\n }\n }\n return { ok: true, ranSteps }\n}\n","/**\n * Zod v4 integration helpers.\n *\n * Zod is an OPTIONAL peer dependency, so this module never imports it at the\n * top level. Schema-accepting APIs (`ctx.generateData`, `generateStructuredData`)\n * take either a plain JSON Schema object or any Standard-Schema-carrying\n * value (https://standardschema.dev — zod v4 implements it). Zod schemas are\n * detected structurally by vendor and converted with a lazy\n * `import('zod')` — safe because whoever constructed the schema necessarily\n * has zod installed. Result types are inferred from the standard-schema\n * `types.output` slot, so callers get full typing without a single cast:\n *\n * const CommitMessage = z.object({ subject: z.string(), body: z.string().optional() })\n * const msg = await ctx.generateData({ prompt, schema: CommitMessage })\n * // ^? { subject: string, body?: string }\n */\n\n/**\n * Structural stand-in for a Standard Schema (zod v4 et al.) — enough surface\n * to detect the vendor and infer the output type WITHOUT importing zod's\n * types into our public API.\n */\nexport interface StandardSchemaLike<Output = unknown> {\n readonly '~standard': {\n readonly version: number\n readonly vendor: string\n /** Type-level only (undefined at runtime) — carries the inferred output type. */\n readonly types?: { readonly output: Output } | undefined\n }\n}\n\n/** Output type carried by a {@link StandardSchemaLike}; `unknown` for plain JSON Schema. */\nexport type InferSchemaOutput<S> = S extends StandardSchemaLike<infer O> ? O : unknown\n\n/** A schema-accepting input: plain JSON Schema, or a Standard Schema (e.g. zod v4). */\nexport type SchemaInput = Record<string, unknown> | StandardSchemaLike\n\nexport function isStandardSchema(value: unknown): value is StandardSchemaLike {\n if (typeof value !== 'object' || value === null)\n return false\n const marker = (value as Record<string, unknown>)['~standard']\n return typeof marker === 'object' && marker !== null\n && typeof (marker as Record<string, unknown>).vendor === 'string'\n}\n\n/**\n * Resolve a {@link SchemaInput} to the plain JSON Schema object providers\n * expect. Zod schemas convert via the lazily-imported `z.toJSONSchema`\n * (v4 native); other Standard Schema vendors are rejected with a clear\n * error — conversion is vendor-specific and only zod is wired today.\n */\nexport async function resolveSchemaInput(schema: SchemaInput): Promise<Record<string, unknown>> {\n if (!isStandardSchema(schema))\n return schema\n const vendor = schema['~standard'].vendor\n if (vendor !== 'zod') {\n throw new Error(\n `unsupported schema vendor \"${vendor}\" — pass a zod v4 schema or a plain JSON Schema object`,\n )\n }\n // Lazy + guarded: zod is an optional peer, but a zod schema in hand means\n // the caller's process has zod — this import only fails on truly broken\n // installs, and then with an actionable message.\n let toJSONSchema: (schema: unknown) => Record<string, unknown>\n try {\n const zod = await import('zod')\n toJSONSchema = zod.z.toJSONSchema as typeof toJSONSchema\n }\n catch {\n throw new Error('a zod schema was passed but the \"zod\" package could not be imported — install zod >= 4')\n }\n return zodToJsonSchema(toJSONSchema(schema))\n}\n\n/**\n * Normalize a JSON Schema (e.g. from zod v4's z.toJSONSchema()) for use\n * as a ToolSpec.inputSchema.\n *\n * Strips the $schema key that some providers reject.\n */\nexport function zodToJsonSchema(jsonSchema: Record<string, unknown>): Record<string, unknown> {\n const { $schema, ...rest } = jsonSchema\n return rest\n}\n","/**\n * One-shot title generation for an existing session — feeds the last N\n * turns to the provider with a \"write me a title\" system prompt and\n * returns the cleaned-up result.\n *\n * Provider-agnostic: works with anything implementing the renderer-\n * shared `Provider` interface. No tools, no session mutation, no\n * caching — this is a cheap, isolated completion that should be safe to\n * fire even mid-session without touching the live agent loop.\n */\n\nimport type { Provider } from '../providers'\nimport type { SessionTurn } from '../types'\n\n/** Hard cap on the result length. Anything longer is truncated client-side. */\nconst TITLE_MAX_CHARS = 60\n\n/** Default turn count fed to the model. 10 covers most exchanges without bloat. */\nconst DEFAULT_MAX_TURNS = 10\n\n/** Tokens budgeted for the model's reply. 64 fits any sane title with headroom. */\nconst TITLE_RESPONSE_MAX_TOKENS = 64\n\n/** Per-turn body cap when assembling the prompt — keeps the request payload tight. */\nconst PROMPT_TURN_CHAR_MAX = 2000\n\nexport interface GenerateSessionTitleOptions {\n provider: Provider\n /** Model id used for the call. */\n model: string\n /** Conversation history to summarize. Empty → throws synchronously. */\n turns: readonly SessionTurn[]\n /** Cap on how many trailing turns to feed the model. Defaults to 10. */\n maxTurns?: number\n /** Optional cancellation signal — forwarded to the provider's stream. */\n signal?: AbortSignal\n}\n\n/**\n * Drive the provider's `stream()` once and return a concise title for\n * the conversation represented by `turns`. Throws when:\n * - `turns` contains no text-bearing content (nothing to summarize),\n * - the provider stream completes with no output text,\n * - `signal` is aborted (rethrown verbatim).\n *\n * Output is trimmed, single-line, with surrounding quotes / trailing\n * punctuation stripped, and truncated to `TITLE_MAX_CHARS`.\n */\nexport async function generateSessionTitle({\n provider,\n model,\n turns,\n maxTurns = DEFAULT_MAX_TURNS,\n signal,\n}: GenerateSessionTitleOptions): Promise<string> {\n const slice = turns.slice(-Math.max(1, maxTurns))\n const transcript = renderTurnsForPrompt(slice)\n if (!transcript)\n throw new Error('No text content in the recent turns to summarize.')\n\n const system = [\n 'You generate concise, descriptive titles for chat conversations.',\n 'Reply with ONLY the title — no quotes, no markdown, no trailing punctuation,',\n 'no preamble (do not say \"Title:\" or similar).',\n `Aim for 3 to 7 words and stay under ${TITLE_MAX_CHARS} characters.`,\n ].join(' ')\n\n const userPrompt = `Generate a title for this conversation:\\n\\n${transcript}`\n\n let text = ''\n const result = await provider.stream(\n {\n model,\n system,\n tools: [],\n messages: [provider.userMessage(userPrompt)],\n maxTokens: TITLE_RESPONSE_MAX_TOKENS,\n ...(signal ? { signal } : {}),\n },\n {\n onText: (delta) => { text += delta },\n },\n )\n // Prefer the streamed-text accumulator (driven by deltas) but fall\n // back to the provider's already-concatenated `result.text` for\n // adapters that batch on the final frame instead of emitting deltas.\n const raw = text.trim().length > 0 ? text : result.text\n return cleanTitle(raw)\n}\n\n/**\n * Decide whether a session is ready for one-shot automatic titling.\n *\n * Returns `true` iff the conversation has had its first exchange — at\n * least two turns, i.e. the opening user message plus the assistant's\n * reply (this is exactly the \"N turns\" count the sessions list shows) —\n * AND no explicit title has been set yet. An existing `metadata.title`\n * (a previous auto-generation, or a manual title from the session-details\n * \"generate title\" action) is never clobbered.\n *\n * Pure + total. The runtime layers its own \"is one already in flight?\"\n * and \"is a provider picked?\" guards on top of this; the predicate only\n * encodes the content-level rule so it can be pinned in tests without a\n * mock provider — same rationale as the exported {@link cleanTitle}.\n */\nexport function shouldAutoGenerateTitle(\n turns: readonly SessionTurn[],\n metadata?: Record<string, unknown>,\n): boolean {\n const existing = typeof metadata?.title === 'string' ? metadata.title.trim() : ''\n if (existing.length > 0)\n return false\n return turns.length >= 2\n}\n\n/**\n * Compact a turn list into a transcript-style prompt:\n *\n * user: …\n * assistant: …\n * user: …\n *\n * Tool calls and tool results are summarized to keep the request\n * payload small — the model needs the rough flow of the conversation,\n * not full JSON blobs. Per-turn text is clipped at `PROMPT_TURN_CHAR_MAX`\n * so a single huge code dump doesn't blow the budget.\n *\n * Returns an empty string when the slice has no text-bearing content\n * (e.g. a turn list that's only tool plumbing).\n *\n * Exported for reuse by other silent one-shot helpers (`generate-data`'s\n * optional conversation context) so every side-channel inference compacts\n * history the same way.\n */\nexport function renderTurnsForPrompt(turns: readonly SessionTurn[]): string {\n const lines: string[] = []\n for (const turn of turns) {\n const body = textBodyOf(turn)\n if (!body)\n continue\n const role = turn.role === 'assistant' ? 'assistant' : turn.role === 'user' ? 'user' : 'system'\n lines.push(`${role}: ${clip(body, PROMPT_TURN_CHAR_MAX)}`)\n }\n return lines.join('\\n\\n')\n}\n\nfunction textBodyOf(turn: SessionTurn): string {\n const parts: string[] = []\n for (const block of turn.content) {\n if (block.type === 'text' && block.text.trim())\n parts.push(block.text.trim())\n else if (block.type === 'tool_call')\n parts.push(`[tool: ${block.name}]`)\n else if (block.type === 'tool_result')\n parts.push(`[tool result]`)\n }\n return parts.join(' ')\n}\n\n/**\n * Normalize a model-generated title into the shape we want to persist:\n *\n * - Collapse internal whitespace + take the first line only (some\n * models emit \"Title: foo\\n\\nReason: …\" despite instructions).\n * - Strip surrounding quote characters (`\"foo\"`, `'foo'`, `` `foo` ``).\n * - Strip a leading `Title:` / `title -` prefix if the model added one.\n * - Strip trailing punctuation (`.`, `!`, `?`) — titles read cleaner\n * without it.\n * - Truncate to `TITLE_MAX_CHARS` with a trailing `…` when over.\n *\n * Exported as `cleanTitle` so tests can pin the normalization rules\n * without going through a mock provider.\n */\nexport function cleanTitle(raw: string): string {\n let s = raw.split('\\n')[0]?.trim() ?? ''\n // Strip a \"Title:\" / \"Title -\" preamble the model sometimes adds.\n s = s.replace(/^\\s*title\\s*[:\\-–—]\\s*/i, '')\n // Strip surrounding matched quotes.\n if (s.length >= 2) {\n const first = s.charAt(0)\n const last = s.charAt(s.length - 1)\n const matched = (first === '\"' && last === '\"')\n || (first === '\\'' && last === '\\'')\n || (first === '`' && last === '`')\n || (first === '“' && last === '”')\n if (matched)\n s = s.slice(1, -1).trim()\n }\n // Trim trailing terminal punctuation — titles don't take periods.\n s = s.replace(/[.!?]+$/, '').trim()\n if (s.length === 0)\n throw new Error('Model returned an empty title.')\n return s.length > TITLE_MAX_CHARS ? `${s.slice(0, TITLE_MAX_CHARS - 1)}…` : s\n}\n\nfunction clip(text: string, max: number): string {\n return text.length > max ? `${text.slice(0, max)}…` : text\n}\n","/**\n * Silent structured-output generation — one provider call that returns\n * schema-conforming JSON without touching the session or the transcript.\n *\n * Modeled on the two proven side-channel patterns in the codebase:\n * - `generate-title.ts`: a single `provider.stream()` with no session\n * writes and no transcript events (optionally seeded with a compacted\n * conversation transcript), and\n * - the loop's `__output__` schema enforcement: a synthetic tool whose\n * `inputSchema` IS the requested JSON Schema, with `toolChoice` pinned\n * so the model must answer with a conforming payload.\n *\n * Used by `/` commands via `ctx.generateData` to derive values from the\n * model (or from the conversation) mid-workflow without bloating the chat\n * history — e.g. `/commit` generating `{ subject, body }` from a diff.\n * For genuinely interactive sub-runs (real turns, streaming, tools), use\n * `ctx.runAgent` instead.\n */\n\nimport type { Provider, ToolSpec } from '../providers'\nimport type { SessionTurn } from '../types'\nimport type { InferSchemaOutput, SchemaInput, StandardSchemaLike } from '../zod'\nimport { resolveSchemaInput } from '../zod'\nimport { renderTurnsForPrompt } from './generate-title'\n\n/** Synthetic forced-choice tool name (never persisted — the call is side-channel only). */\nconst DATA_TOOL_NAME = '__data__'\n\n/** Default cap on conversation turns folded into the context block. */\nconst DEFAULT_CONTEXT_TURNS = 12\n\nexport interface GenerateStructuredDataOptions {\n provider: Provider\n model: string\n /** Instruction describing the value to produce. */\n prompt: string\n /**\n * Shape of the result — a plain JSON Schema object, or a zod v4 schema\n * (converted automatically; the return type is then inferred from it).\n * Becomes the forced tool's inputSchema.\n */\n schema: SchemaInput\n /** Optional system prompt. Defaults to a terse data-extraction persona. */\n system?: string\n /**\n * Conversation turns to fold in as compacted context (same clipping as\n * session auto-titling). Omit or pass empty for a context-free call.\n */\n turns?: readonly SessionTurn[]\n /** Cap on turns rendered into the context block. Default 12 (most recent). */\n maxContextTurns?: number\n signal?: AbortSignal\n}\n\n/**\n * Drive one schema-pinned provider call and return the conforming payload.\n * Throws when the provider returns no structured payload (and rethrows\n * aborts verbatim). The caller owns presentation — nothing is rendered or\n * persisted here.\n *\n * Pass a zod v4 schema and the return type is inferred from it; pass a\n * plain JSON Schema object and name the type via the generic.\n */\nexport async function generateStructuredData<S extends StandardSchemaLike>(\n options: GenerateStructuredDataOptions & { schema: S },\n): Promise<InferSchemaOutput<S>>\nexport async function generateStructuredData<T = unknown>(\n options: GenerateStructuredDataOptions,\n): Promise<T>\nexport async function generateStructuredData(\n options: GenerateStructuredDataOptions,\n): Promise<unknown> {\n const { provider, model, prompt, signal } = options\n const spec: ToolSpec = {\n name: DATA_TOOL_NAME,\n description: 'Return the result. The input of this call IS the answer — it must conform to the schema.',\n inputSchema: await resolveSchemaInput(options.schema),\n }\n\n const contextTurns = options.turns && options.turns.length > 0\n ? options.turns.slice(-(options.maxContextTurns ?? DEFAULT_CONTEXT_TURNS))\n : []\n const transcript = contextTurns.length > 0 ? renderTurnsForPrompt(contextTurns) : ''\n const userPrompt = transcript\n ? `<conversation>\\n${transcript}\\n</conversation>\\n\\n${prompt}`\n : prompt\n\n const result = await provider.stream(\n {\n model,\n system: options.system\n ?? `You produce structured data. Call the ${DATA_TOOL_NAME} tool exactly once with the requested value. No prose.`,\n tools: provider.formatTools([spec]),\n messages: [provider.userMessage(userPrompt)],\n toolChoice: { type: 'tool', name: DATA_TOOL_NAME },\n ...(signal ? { signal } : {}),\n },\n {\n onText: () => {},\n },\n )\n\n const payload = result.toolCalls.find(tc => tc.name === DATA_TOOL_NAME)?.input\n if (payload === undefined)\n throw new Error('generateStructuredData: the model returned no structured payload')\n return payload\n}\n"],"mappings":";;;;;;;;AA4TA,SAAgB,uBAAuB,QAA+D;CACpG,OAAO,OAAO,KAAK,UAAU;EAC3B,IAAI,CAAC,MAAM,UAAU,CAA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
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { An as FormattedHeadlessTurnEvent, Bn as ProviderTranscriptFormat, Fn as HeadlessResult, Gn as headlessEventToJsonl, Hn as formatHeadlessResult, In as HeadlessStatus, Jn as runHeadless, Kn as installHeadlessEventAdapter, Ln as HeadlessUsage, Mn as HeadlessEvent, Nn as HeadlessOptions, Pn as HeadlessOutputFormat, Rn as OpenAIChatContentPart, Un as formatHeadlessTurnEvent, Vn as exitCodeForHeadlessResult, Wn as formattedHeadlessTurnEventToJsonl, Xn as transcriptToProviderMessages, Yn as transcriptToOpenAIMessages, jn as HeadlessErrorInfo, kn as FormattedHeadlessResult, qn as providerTranscriptFormatForProvider, zn as OpenAIChatMessage } from "./index-
|
|
1
|
+
import { An as FormattedHeadlessTurnEvent, Bn as ProviderTranscriptFormat, Fn as HeadlessResult, Gn as headlessEventToJsonl, Hn as formatHeadlessResult, In as HeadlessStatus, Jn as runHeadless, Kn as installHeadlessEventAdapter, Ln as HeadlessUsage, Mn as HeadlessEvent, Nn as HeadlessOptions, Pn as HeadlessOutputFormat, Rn as OpenAIChatContentPart, Un as formatHeadlessTurnEvent, Vn as exitCodeForHeadlessResult, Wn as formattedHeadlessTurnEventToJsonl, Xn as transcriptToProviderMessages, Yn as transcriptToOpenAIMessages, jn as HeadlessErrorInfo, kn as FormattedHeadlessResult, qn as providerTranscriptFormatForProvider, zn as OpenAIChatMessage } from "./index-NKPCGq3q.js";
|
|
2
2
|
export { FormattedHeadlessResult, FormattedHeadlessTurnEvent, HeadlessErrorInfo, HeadlessEvent, HeadlessOptions, HeadlessOutputFormat, HeadlessResult, HeadlessStatus, HeadlessUsage, OpenAIChatContentPart, OpenAIChatMessage, ProviderTranscriptFormat, exitCodeForHeadlessResult, formatHeadlessResult, formatHeadlessTurnEvent, formattedHeadlessTurnEventToJsonl, headlessEventToJsonl, installHeadlessEventAdapter, providerTranscriptFormatForProvider, runHeadless, transcriptToOpenAIMessages, transcriptToProviderMessages };
|
|
@@ -6270,6 +6270,13 @@ interface Settings {
|
|
|
6270
6270
|
*/
|
|
6271
6271
|
toolCallDisplay: ToolCallDisplay;
|
|
6272
6272
|
showToolResults: boolean;
|
|
6273
|
+
/**
|
|
6274
|
+
* Render EVERY line of `!` shell-mode output in the transcript instead
|
|
6275
|
+
* of the 10-line tail window. Display-only: the persisted / wire-visible
|
|
6276
|
+
* result keeps the shell tool's 32 KiB tail-priority trim regardless, so
|
|
6277
|
+
* flipping this never changes what the model reads. Default: off.
|
|
6278
|
+
*/
|
|
6279
|
+
showFullShellOutput: boolean;
|
|
6273
6280
|
/**
|
|
6274
6281
|
* Safe mode — when enabled, every tool call requires explicit user
|
|
6275
6282
|
* approval unless it's covered by the project safelist (`projects.json`)
|
|
@@ -7500,11 +7507,10 @@ interface CommandStepContext {
|
|
|
7500
7507
|
* the conversation: the next user prompt sees what the workflow
|
|
7501
7508
|
* found/did without replaying subagent transcripts.
|
|
7502
7509
|
*
|
|
7503
|
-
* `opts.display` swaps the LIVE transcript echo for a short line
|
|
7504
|
-
*
|
|
7505
|
-
*
|
|
7506
|
-
*
|
|
7507
|
-
* ABSENT on session-less hosts.
|
|
7510
|
+
* `opts.display` swaps the LIVE transcript echo for a short one-line
|
|
7511
|
+
* marker; a reloaded session renders the persisted full text as a plain
|
|
7512
|
+
* user prompt. Keep notes compact — they occupy context for the rest of
|
|
7513
|
+
* the conversation. ABSENT on session-less hosts.
|
|
7508
7514
|
*/
|
|
7509
7515
|
readonly appendContext?: (text: string, opts?: {
|
|
7510
7516
|
readonly display?: string;
|
|
@@ -15538,4 +15544,4 @@ declare function definePreset(config: Preset): Preset;
|
|
|
15538
15544
|
declare function composePresets(...presets: Preset[]): Preset;
|
|
15539
15545
|
//#endregion
|
|
15540
15546
|
export { maybePersistToolResult as $, ExtensionApiVersion as $a, CommandInteraction as $c, PromptPart as $d, SessionData as $f, ExtensionInstallError as $i, LoggingHooksOptions as $l, waitTask as $n, createExtensionHud as $o, OpenRouterParams as $p, BASE_INSTRUCTIONS as $r, SourcedScanPath as $s, TrajectoryStep as $t, localDescriptor as $u, MetricsHookSet as A, ExtensionConfigBooleanItem as Aa, ThemeColors as Ac, AgentStats as Ad, toolOutputBudgetByteLength as Af, defaultRepeatGuardTracked as Ai, QuestionType as Al, CursorParams as Am, FormattedHeadlessTurnEvent as An, ExtensionToolCatalogTransform as Ao, filterUnresolvedToolUses as Ap, RunSummaryCollectorOptions as Ar, SkillValidationResult as As, EvalRunMetricAggregate as At, buildRunModel as Au, loginMcpServer as B, ExtensionConfigSurface as Ba, CompletionProvider as Bc, DedupToolConfig as Bd, hashContent as Bf, McpToolWrap as Bi, useInteractionsQueue as Bl, AnthropicParams as Bm, ProviderTranscriptFormat as Bn, ExtensionTuiSurface as Bo, StreamOptions as Bp, PostCompactRestoreOptions as Br, interpolateShellCommands as Bs, EvalVariantSummary as Bt, ProviderKey as Bu, normalizeProviders as C, scanExtensionDirectories as Ca, BUILTIN_THEMES as Cc, ContextMcpGroup as Cd, ToolResultImageContent as Cf, CacheDimensionName as Ci, PlanResponse as Cl, OpenAIParams as Cm, llmJudge as Cn, ExtensionRunTransform as Co, TOOL_USE_INTERRUPTED_MARKER as Cp, glob as Cr, createModelSearchTool as Cs, EvalArtifacts as Ct, Picked as Cu, InstrumentOptions as D, ExtensionPromptDelivery as Da, SyntaxStyles as Dc, AgentBehavior as Dd, ToolResultVideoContent as Df, installCacheBreakLogger as Di, QuestionPayload as Dl, toPiMessages as Dm, runEvalCase as Dn, ExtensionSource as Do, detectTurnInterruption as Dp, RunSummaryBudget as Dr, writeSkillToDisk as Ds, EvalDefinitionContext as Dt, StreamEvent as Du, Histogram as E, ExtensionPromptBridge as Ea, DEFAULT_THEME as Ec, buildContextBreakdown as Ed, ToolResultTextContent as Ef, fnv1a32 as Ei, QuestionChoice as El, openai as Em, relativeArtifactPath as En, ExtensionSkillPolicy as Eo, autoDetectAndConvert as Ep, RunSummaryBlock as Er, defineSkill as Es, EvalDefinition as Et, Settings as Eu, OAuthCallbackOptions as F, ExtensionConfigItemBase as Fa, CompletionState as Fc, CompactFunction as Fd, ToolMap as Ff, AgentHookMap as Fi, isInteractionTool as Fl, baseten as Fm, HeadlessResult as Fn, ExtensionToolRendererRegistration as Fo, toOpenAI as Fp, createRunSummaryCollector as Fr, validateResourcePathReal as Fs, EvalRunUsage as Ft, restoreChainFallbacks as Fu, createMemoryMcpCredentialStore as G, clampExtensionConfigNumber as Ga, findActiveTrigger as Gc, ModelTarget as Gd, ShellInterpolationApproval as Gf, buildExtensionRegistry as Gi, resolveSchemaInput as Gl, defaultAnthropicMaxTokens as Gm, headlessEventToJsonl as Gn, ExtensionHud as Go, TurnResult as Gp, selectRecentFiles as Gr, SkillInstallErrorCode as Gs, MetricDirection as Gt, ModelOption as Gu, McpCredentialStore as H, StoredExtensionConfigItem as Ha, CompletionSubmitContext as Hc, McpServerConfig as Hd, hydrateReadStateFromSessionAsync as Hf, BuildExtensionRegistryOptions as Hi, SchemaInput as Hl, anthropic as Hm, formatHeadlessResult as Hn, LoadedExtension as Ho, ToolCall as Hp, buildPostCompactAttachments as Hr, SKILL_PROVENANCE_FILE as Hs, EvalWorkspaceOptions as Ht, BUILTIN_PROVIDERS as Hu, OAuthCallbackResult as I, ExtensionConfigModelItem as Ia, useCompletion as Ic, CompactHookContext as Id, HydrateReadStateOptions as If, AgentHooks as Ii, makeRequestInteraction as Il, planBasetenReasoning as Im, HeadlessStatus as In, ExtensionToolResultMetadataRegistration as Io, toWireMessages as Ip, BYTES_PER_TOKEN as Ir, validateSkillForWrite as Is, EvalScore as It, sanitizeModelChain as Iu, PERSISTENCE_PREVIEW_BYTES as J, isValidExtensionConfigValue as Ja, Command as Jc, ProgressNudgeKind as Jd, SkillResource as Jf, filterExtensionRegistry as Ji, LogLevel as Jl, resolveAnthropicMaxOutput as Jm, runHeadless as Jn, ExtensionHudWriter as Jo, SchemaSanitizeOptions as Jp, CompactResult as Jr, SkillInstallSpec as Js, MetricSpecMap as Jt, cerebrasDescriptor as Ju, hasAuthorizationHeader as K, coerceExtensionConfigInput as Ka, mergeReferences as Kc, ModelTargetSpec as Kd, SkillConfig as Kf, composeExtensionPreset as Ki, zodToJsonSchema as Kl, planAnthropicThinking as Km, installHeadlessEventAdapter as Kn, ExtensionHudState as Ko, XaiParams as Kp, CompactEndEvent as Kr, SkillInstallOptions as Ks, MetricEmitter as Kt, ProviderDescriptor as Ku, startOAuthCallback as L, ExtensionConfigNumberItem as La, ActiveTrigger as Lc, CompactStartHookContext as Ld, ReadStateEntry as Lf, AgentOptions as Li, pendingInteractionsFromTurns as Ll, ArceeParams as Lm, HeadlessUsage as Ln, ExtensionToolResultPatch as Lo, Provider as Lp, estimateTokens as Lr, validateSkillName as Ls, EvalScorer as Lt, toggleChainEntry as Lu, UpDownCounter as M, ExtensionConfigChangeBehavior as Ma, ThemeSurfaces as Mc, AutoCompactConfig as Md, toolResultToText as Mf, stableStringify as Mi, TextQuestion as Ml, CerebrasParams as Mm, HeadlessEvent as Mn, ExtensionToolRenderProps as Mo, fromOpenAI as Mp, RunSummaryRepeatGuard as Mr, matchesAllowedTool as Ms, EvalRunReporterOptions as Mt, chainsEqual as Mu, createMetricsHooks as N, ExtensionConfigEnumItem as Na, resolveChipColor as Nc, ChildRunStats as Nd, ToolContext as Nf, localReliabilityBehavior as Ni, buildResumedToolResultsTurn as Nl, cerebras as Nm, HeadlessOptions as Nn, ExtensionToolRenderer as No, remintDuplicateToolCallIds as Np, RunSummaryTokens as Nr, parseAllowedToolPattern as Ns, EvalRunSummary as Nt, filterChainFallbacks as Nu, Meter as O, createExtensionPromptBridge as Oa, SyntaxTokenStyle as Oc, AgentClock as Od, TurnFinishReason as Of, snapshotCacheDimensions as Oi, QuestionRequest as Ol, LocalParams as Om, statusCompleted as On, ExtensionStorageScope as Oo, ensureEndsWithUserMessage as Op, RunSummaryByModel as Or, writeSkillsToDisk as Os, EvalMetric as Ot, ToolCallDisplay as Ou, OAuthCallbackHandle as P, ExtensionConfigItem as Pa, resolveTheme as Pc, CompactEndHookContext as Pd, ToolDef as Pf, Agent as Pi, createInteractionTools as Pl, BasetenParams as Pm, HeadlessOutputFormat as Pn, ExtensionToolRendererEntry as Po, toAnthropic as Pp, RunSummaryValidation as Pr, validateResourcePath as Ps, EvalRunSummaryCase as Pt, providerKeySetChanged as Pu, cleanupPersistedSession as Q, EMPTY_EXTENSION_REGISTRY as Qa, CommandGenerateDataOptions as Qc, PromptImagePart as Qd, Session as Qf, ExtensionInstallCandidate as Qi, LoggingHookSet as Ql, WAIT_TASK_TIMED_OUT_PREFIX as Qn, ExtensionStatusOptions as Qo, sanitizeToolSpecs as Qp, CompactPromptTooLongError as Qr, readSkillProvenance as Qs, Trajectory as Qt, getModelInfo as Qu, LoginMcpServerOptions as R, ExtensionConfigScope as Ra, CompletionContext as Rc, DEFAULT_AGENT_CLOCK as Rd, ReadStateMap as Rf, McpConnector as Ri, serializeInteractionResponse as Rl, arcee as Rm, OpenAIChatContentPart as Rn, ExtensionToolResultTransform as Ro, ProviderCapabilities as Rp, utf8ByteLength as Rr, resolveSkills as Rs, EvalScorerContext as Rt, AuthMethod as Ru, createMutationValidationHooks as S, parseExtensionScanPathEnv as Sa, wrapDiscoveredMcpTools as Sc, ContextItem as Sd, ToolResultDocumentRefContent as Sf, CacheDimensionDiff as Si, PlanRequest as Sl, userMessage as Sm, functionalityMetric as Sn, ExtensionRegistry as So, SYNTHETIC_TOOL_RESULT_PLACEHOLDER as Sp, grep as Sr, SpawnModelEntry as Ss, EvalAgentStats as St, Owner as Su, Counter as T, discoverAndBuildExtensionRegistry as Ta, ChipColorMap as Tc, ContextUsageSplit as Td, ToolResultMetadata as Tf, diffCacheDimensions as Ti, Question as Tl, mapCodexStopReason as Tm, registerEvalTests as Tn, ExtensionSessionStateSurface as To, TurnInterruptionState as Tp, RunSummary as Tr, matchModelEntries as Ts, EvalCaseResult as Tt, SessionMeta as Tu, McpOAuthProvider as U, WireExtensionConfigItem as Ua, applyInsert as Uc, McpToolHookContext as Ud, readStateKey as Uf, ExtensionCatalogPartition as Ui, StandardSchemaLike as Ul, applyAnthropicCacheBreakpoints as Um, formatHeadlessTurnEvent as Un, TuiContributions as Uo, ToolResult as Up, selectFilesFromReadState as Ur, SkillInstallCandidate as Us, EvalWorkspaceSnapshot as Ut, CustomField as Uu, McpCredentialEntry as V, ExtensionConfigValue as Va, CompletionReference as Vc, JsonValue as Vd, hydrateReadStateFromSession as Vf, createAgent as Vi, InferSchemaOutput as Vl, AnthropicThinkingPlan as Vm, exitCodeForHeadlessResult as Vn, GuiContributions as Vo, TokenCountPayload as Vp, RecentFile as Vr, stripShellInterpolations as Vs, EvalWorkspaceFile as Vt, detectAuth as Vu, McpOAuthProviderOptions as W, WireExtensionConfigSchema as Wa, collectReferences as Wc, McpToolSchema as Wd, resolveReadStateMap as Wf, buildExtensionPreset as Wi, isStandardSchema as Wl, classifyAnthropicError as Wm, formattedHeadlessTurnEventToJsonl as Wn, ExtensionBannerOptions as Wo, ToolSpec as Wp, selectFilesFromSession as Wr, SkillInstallError as Ws, LlmJudgeOptions as Wt, ModelInfo as Wu, PersistOutcome as X, resolveExtensionConfigValue as Xa, CommandArgSuggestion as Xc, PromptAudioPart as Xd, SkillsConfig as Xf, partitionExtensionCatalog as Xi, LogSink as Xl, transcriptToProviderMessages as Xn, ExtensionNotifyOptions as Xo, SchemaSanitizeResult as Xp, compactConversation as Xr, listSkillCandidates as Xs, RegisterEvalTestsOptions as Xt, enabledModelOptions as Xu, PersistInput as Y, resolveExtensionConfig as Ya, CommandAgentResult as Yc, ProgressNudgeMessage as Yd, SkillSource as Yf, mergeContributions as Yi, LogRecord as Yl, transcriptToOpenAIMessages as Yn, ExtensionNotification as Yo, SchemaSanitizeProfile as Yp, CompactStartEvent as Yr, installSkillFromSpec as Ys, MetricStats as Yt, credKeyOf as Yu, buildPersistedStub as Z, toWireConfigSchema as Za, CommandExecution as Zc, PromptDocumentPart as Zd, CreateSessionOptions as Zf, ExtensionFetchResult as Zi, Logger as Zl, writeFile as Zn, ExtensionNotifyTone as Zo, sanitizeToolSchema as Zp, CompactInvalidInputError as Zr, parseSkillInstallSpec as Zs, ReusableExecutionContext as Zt, getContextWindow as Zu, MutationValidationFailure as _, ExtensionScanEntry as _a, connectMcpServers as _c, ContextCategory as _d, ToolHookContext as _f, summaryToTurn as _i, InteractionsProvider as _l, mapOAIFinishReason as _m, fileExistsOneOf as _n, ExtensionOrderedContribution as _o, EnsureToolResultPairingOptions as _p, readFile as _r, SubagentDef as _s, EvalAgent as _t, EditDiffDisplay as _u, basicTools as a, ExtensionInstallSource as aa, buildCatalog as ac, piIdOf as ad, ResolveContentRefBlock as af, buildCompactPrompt as ai, CommandStepContext as al, OpenAICompatAuthHeader as am, clearRegisteredEvals as an, ExtensionCustomRenderer as ao, deleteExtensionSessionState as ap, ToolSearchToolOptions as ar, ExtensionSessionsSurface as as, TOOL_USE_SKIPPED_MESSAGE as at, AgentAccent as au, MutationValidationResult as b, inlineLoadedExtension as ba, normalizeMcpServers as bc, ContextExtensionRow as bd, ToolResultContent as bf, generateStructuredData as bi, PlanDecision as bl, toOAIMessages as bm, formatEvalRunSummary as bn, ExtensionPromptTransform as bo, PairingRepairMode as bp, InteractionToolOptions as br, createSpawnTool as bs, EvalAgentRunResult as bt, EditOutcomeKind as bu, StartSpan as c, fetchExtensionSource as ca, ActivationVia as cc, AutoCompactDecision as cd, SessionContentBlock as cf, buildTailCompactPrompt as ci, executeCommand as cl, OpenAICompatStreamError as cm, createEvalRunReporter as cn, ExtensionFooterHint as co, loadSession as cp, createSkillsUseTool as cr, createExtensionHostRuntimeBridge as cs, ExtensionEditMarker as ct, BUILD_AGENT as cu, TracingHooksOptions as d, parseExtensionInstallSource as da, SkillActivationState as dc, effectiveContextWindow as dd, SessionMessage as df, CompactScope as di, AnswerValue as dl, applyOAIToolCacheBreakpoint as dm, defineMetrics as dn, ExtensionKeybinding as do, RemoteStoreOptions as dp, SkillsReadToolOptions as dr, ExtensionSubagentDef as ds, extensionDirForCwd as dt, DEFAULT_BUDGET_EXCLUDE_TOOLS as du, ExtensionInstallErrorCode as ea, discoverSkills as ec, modelOptionsFor as ed, PromptTextPart as ef, CompactDirection as ei, CommandInvocation as el, normalizeOpenRouterModelId as em, TrajectoryStepKind as en, ExtensionBehaviorTransform as eo, SessionMetaRow as ep, ValidationResult as er, ExtensionHostRuntimeBridge as es, resolvePersistDir as et, RingBufferSink as eu, createTracingHooks as f, readExtensionInstallProvenance as fa, SkillActivationStateOptions as fc, shouldAutoCompact as fd, SessionTurn as ff, CompactionSlice as fi, ConfirmQuestion as fl, assistantMessage as fm, efficiencyMetricValues as fn, ExtensionKeybindingDispatchContext as fo, createRemoteStore as fp, createSkillsReadTool as fr, SpawnTaskInput as fs, extensionScaffold as ft, DEFAULT_PERSIST_EXCLUDE_TOOLS as fu, MutationValidationBatch as g, ENTRY_CANDIDATES as ga, attachStderrWarnPump as gc, ContextBreakdownOptions as gd, ToolBatchExecutor as gf, stripImagesFromTurns as gi, InteractionsActions as gl, formatTools as gm, fileExists as gn, ExtensionModalNode as go, createFileMapStore as gp, shell as gr, SpawnToolState as gs, EFFICIENCY_METRICS as gt, singleAgentRegistry as gu, statsByModel as h, registerExtensionHostModules as ha, McpConnection as hc, ContextBreakdownContributor as hd, ThinkingLevel as hf, sliceForCompaction as hi, InteractionResponse as hl, consumeSSE as hm, fileContentQuality as hn, ExtensionModal as ho, FileMapStoreOptions as hp, createShellTool as hr, SpawnToolOptions as hs, CreateEvalAgentOptions as ht, resolveAgentId as hu, _default as i, ExtensionInstallScope as ia, parseSkillFile as ic, openrouterDescriptor as id, ResolveContentRef as if, TRAILER as ii, CommandStep as il, OAITool as im, buildTrajectory as in, ExtensionContributions as io, currentExtensionSession as ip, LazyToolEntry as ir, ExtensionSessionSummary as is, TOOL_USE_CANCELLED_MESSAGE as it, jsonSink as iu, MetricsHooksOptions as j, ExtensionConfigCategory as ja, ThemeSelect as jc, AutoCompact as jd, toolOutputByteLength as jf, normalizeShellCommand as ji, SelectQuestion as jl, cursor as jm, HeadlessErrorInfo as jn, ExtensionToolPolicy as jo, fromAnthropic as jp, RunSummaryError as jr, isToolAllowedByUnion as js, EvalRunReporter as jt, chainPositionOf as ju, MetricAttributes as k, defineExtension as ka, Theme as kc, AgentRunOptions as kd, TurnUsage as kf, defaultRepeatGuardNormalize as ki, QuestionResponse as kl, local as km, FormattedHeadlessResult as kn, ExtensionStorageSurface as ko, ensureToolResultPairing as kp, RunSummaryCollector as kr, SkillValidationIssue as ks, EvalMetricError as kt, ModelChainEntry as ku, TracingConventions as l, installExtensionFromSpec as la, ActiveSkill as lc, AutoCompactInput as ld, SessionEndStatus as lf, buildUpToCompactPrompt as li, parseCommandInvocation as ll, TOOL_RESULTS_TAG as lm, createReusableExecutionContext as ln, ExtensionGuiPanel as lo, setExtensionSessionState as lp, SkillsRunScriptToolOptions as lr, createWorkspaceSurface as ls, ZIDANE_EXTENSION_SKILL_NAME as lt, BUILTIN_AGENTS as lu, flattenTurns as m, updateInstalledExtension as ma, ConnectMcpServersOptions as mc, ContextBreakdownContributionContext as md, StreamHookContext as mf, anchorPreviewFor as mi, InteractionRequest as ml, classifyOpenAICompatError as mm, fileContains as mn, ExtensionMcpConfigTransform as mo, FileMapAdapter as mp, CreateShellToolOptions as mr, SpawnTool as ms, withZidaneExtensionSkill as mt, accentColor as mu, composePresets as n, ExtensionInstallProvenance as na, inferSource as nc, modelsForDescriptor as nd, RepeatGuardConfig as nf, CompactPromptOptions as ni, CommandSpawnResult as nl, ASSISTANT_TOOL_CALLS_TAG as nm, buildEvalRunSummary as nn, ExtensionContext as no, SessionStore as np, TailTruncateOptions as nr, ExtensionModelEntry as ns, INTERRUPT_MESSAGE_FOR_TOOL_USE as nt, createLogger as nu, GEN_AI_ATTRIBUTES as o, InstallExtensionFromSpecOptions as oa, IMPLICITLY_ALLOWED_SKILL_TOOLS as oc, restoreModelOptions as od, RetryConfig as of, buildFromCompactPrompt as oi, CommandStepFn as ol, OpenAICompatHttpError as om, computeEvalTagScores as on, ExtensionCustomRendererEntry as oo, demoteStaleRunningStatus as op, createToolSearchTool as or, ExtensionWorkspacePair as os, applyCompactSummaryCutoff as ot, AgentProfile as ou, ModelUsage as p, removeInstalledExtension as pa, createSkillActivationState as pc, ContextBreakdown as pd, SpawnHookContext as pf, SummaryToTurnInput as pi, CreateInteractionToolsOptions as pl, buildAssistantContent as pm, emitEfficiencyMetrics as pn, ExtensionManifest as po, createMemoryStore as pp, shellKill as pr, SpawnTaskOutcome as ps, resolveExtensionDocsDir as pt, PLAN_AGENT as pu, PERSISTED_STUB_PREFIX as q, isValidExtensionConfigItem as qa, resolveCompletionSubmit as qc, OAuthRefreshHookContext as qd, SkillDiagnostic as qf, disposeExtensionRegistry as qi, ConsoleSinkOptions as ql, resolveAnthropicBetas as qm, providerTranscriptFormatForProvider as qn, ExtensionHudStatus as qo, xai as qp, CompactOptions as qr, SkillInstallResult as qs, MetricSpec as qt, anthropicDescriptor as qu, definePreset as r, ExtensionInstallResult as ra, parseFrontmatter as rc, openaiDescriptor as rd, RepeatGuardToolMatcher as rf, NO_TOOLS_PREAMBLE as ri, CommandSpawnTask as rl, OAIMessage as rm, buildRegisteredEvals as rn, ExtensionContextTransform as ro, createSession as rp, tailTruncate as rr, ExtensionRuntimeSurface as rs, SHELL_CASCADE_CANCEL_MESSAGE as rt, createLoggingHooks as ru, Span as s, InstalledExtensionTargetOptions as sa, installAllowedToolsGate as sc, AUTO_COMPACT_MIN_GROWTH_FRACTION as sd, RunHookMap as sf, buildFullCompactPrompt as si, commandSteps as sl, OpenAICompatParams as sm, createEvalAgent as sn, ExtensionDefinition as so, getExtensionSessionState as sp, SkillsUseToolOptions as sr, ExtensionWorkspaceSurface as ss, EXTENSION_EDIT_METADATA_KEY as st, AgentRegistry as su, Preset as t, ExtensionInstallIo as ta, getDefaultScanPaths as tc, modelSupportsReasoning as td, PromptVideoPart as tf, CompactPromptBuilder as ti, CommandOutputBlock as tl, openrouter as tm, artifactPath as tn, ExtensionCapability as to, SessionRun as tp, validateToolArgs as tr, ExtensionHostRuntimeImpl as ts, resolveTasksDir as tt, consoleSink as tu, TracingHookSet as u, listExtensionCandidates as ua, DeactivationReason as uc, OUTPUT_RESERVE_TOKENS as ud, SessionHookContext as uf, ANCHOR_PREVIEW_MAX_CHARS as ui, ASK_USER_TOOL as ul, applyOAICacheBreakpoints as um, defineEval as un, ExtensionGuiSurface as uo, withExtensionSession as up, createSkillsRunScriptTool as ur, ChildAgent as us, buildZidaneExtensionSkill as ut, DEFAULT_AGENT_ID as uu, MutationValidationHooksOptions as v, defaultExtensionScanPaths as va, deriveMcpToolMeta as vc, ContextCategoryId as vd, ToolOutcome as vf, truncateHeadForPtlRetry as vi, PRESENT_PLAN_TOOL as vl, openAICompatPromptMessage as vm, finalizeEvalMetrics as vn, ExtensionPaths as vo, ORPHANED_TOOL_RESULT_MARKER as vp, multiEdit as vr, SubagentOverride as vs, EvalAgentMcpServers as vt, EditHunk as vu, resolveModelTargets as w, DiscoverAndBuildExtensionRegistryOptions as wa, ChipColor as wc, ContextSnapshot as wd, ToolResultImageRefContent as wf, CacheDimensionSnapshot as wi, PlanStep as wl, classifyOpenAIError as wm, normalizeMetric as wn, ExtensionRuntimeEnv as wo, ToWireMessagesOptions as wp, edit as wr, formatModelLine as ws, EvalCaseOptions as wt, Screen as wu, SuccessfulMutationOutcome as x, isExtensionDefinition as xa, resultToString as xc, ContextExtensionSection as xd, ToolResultDocumentContent as xf, CacheBreakLoggerOptions as xi, PlanPayload as xl, toolResultsMessage as xm, formatTrajectoryLine as xn, ExtensionProviderMiddleware as xo, RemintResult as xp, createInteractionTool as xr, isSpawnTool as xs, EvalAgentRunStats as xt, EditPayload as xu, MutationValidationMutation as y, discoverExtensions as ya, normalizeMcpBlocks as yc, ContextExactCounts as yd, ToolResultAudioContent as yf, GenerateStructuredDataOptions as yi, PendingInteractionEntry as yl, openaiCompat as ym, formatEvalCaseSummary as yn, ExtensionPermission as yo, PairingRepair as yp, listFiles as yr, SubagentRegistry as ys, EvalAgentRunOptions as yt, EditOutcome as yu, LoginMcpServerResult as z, ExtensionConfigStringItem as za, CompletionItem as zc, DedupHasher as zd, getReadState as zf, McpToolMeta as zi, useInteractionsActions as zl, AnthropicContextManagement as zm, OpenAIChatMessage as zn, ExtensionToolVerdict as zo, StreamCallbacks as zp, PostCompactAttachments as zr, InterpolateShellCommandsOptions as zs, EvalTestRunner as zt, ProviderAuth as zu };
|
|
15541
|
-
//# sourceMappingURL=index-
|
|
15547
|
+
//# sourceMappingURL=index-NKPCGq3q.d.ts.map
|