zidane 6.0.1 → 6.1.1

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.
Files changed (165) hide show
  1. package/README.md +27 -0
  2. package/dist/{acp-Irby04Us.js → acp-DK382vzL.js} +8 -8
  3. package/dist/{acp-Irby04Us.js.map → acp-DK382vzL.js.map} +1 -1
  4. package/dist/acp-cli.js +7 -7
  5. package/dist/acp-cli.js.map +1 -1
  6. package/dist/acp.d.ts +1 -1
  7. package/dist/acp.js +1 -1
  8. package/dist/{agent-DkSmGkDM.js → agent-Bq32ZJSo.js} +392 -63
  9. package/dist/agent-Bq32ZJSo.js.map +1 -0
  10. package/dist/agent.d.ts +1 -1
  11. package/dist/agent.js +1 -1
  12. package/dist/{anthropic-CTHsdFG9.js → anthropic-CV_OSYVD.js} +10 -9
  13. package/dist/anthropic-CV_OSYVD.js.map +1 -0
  14. package/dist/atomic-write-B7zr1ddF.js.map +1 -1
  15. package/dist/{auth-BDSu_0t3.js → auth-D5FfJtLf.js} +7 -7
  16. package/dist/auth-D5FfJtLf.js.map +1 -0
  17. package/dist/cache-telemetry-BKAwsNxm.js.map +1 -1
  18. package/dist/chat/pure.d.ts +4 -4
  19. package/dist/chat/pure.js +3 -3
  20. package/dist/chat.d.ts +44 -21
  21. package/dist/chat.d.ts.map +1 -1
  22. package/dist/chat.js +7 -7
  23. package/dist/chat.js.map +1 -1
  24. package/dist/completion-core-CXYSVhZo.js.map +1 -1
  25. package/dist/context-breakdown-Dzo25N45.js.map +1 -1
  26. package/dist/contexts/daytona.d.ts +3 -1
  27. package/dist/contexts/daytona.d.ts.map +1 -1
  28. package/dist/contexts/daytona.js +2 -2
  29. package/dist/contexts/daytona.js.map +1 -1
  30. package/dist/contexts/docker.d.ts.map +1 -1
  31. package/dist/contexts/docker.js +2 -2
  32. package/dist/contexts/docker.js.map +1 -1
  33. package/dist/contexts/e2b.d.ts +3 -1
  34. package/dist/contexts/e2b.d.ts.map +1 -1
  35. package/dist/contexts/e2b.js +1 -1
  36. package/dist/contexts/e2b.js.map +1 -1
  37. package/dist/{contexts-Vone3qQQ.js → contexts-BIbcfBFH.js} +2 -2
  38. package/dist/contexts-BIbcfBFH.js.map +1 -0
  39. package/dist/contexts.js +1 -1
  40. package/dist/edit-utils-EGosADZq.js.map +1 -1
  41. package/dist/eval.d.ts +1 -1
  42. package/dist/eval.js +4 -3
  43. package/dist/eval.js.map +1 -1
  44. package/dist/exec-file-size-PXkr-MGA.js.map +1 -1
  45. package/dist/extensions.d.ts +1 -1
  46. package/dist/extensions.js +1 -1
  47. package/dist/{fetch-url-CWE8X5OD.js → fetch-url-_5WKWpbQ.js} +2 -2
  48. package/dist/{fetch-url-CWE8X5OD.js.map → fetch-url-_5WKWpbQ.js.map} +1 -1
  49. package/dist/{format-BNOXpl-1.js → format-BF745pLL.js} +9 -2
  50. package/dist/format-BF745pLL.js.map +1 -0
  51. package/dist/generate-data-WL_yGVL6.js.map +1 -1
  52. package/dist/hash-DJRzmcPI.js.map +1 -1
  53. package/dist/headless.d.ts +1 -1
  54. package/dist/headless.js +4 -4
  55. package/dist/headless.js.map +1 -1
  56. package/dist/{index-B8UtiZy7.d.ts → index-C6Il4kBD.d.ts} +388 -5
  57. package/dist/index-C6Il4kBD.d.ts.map +1 -0
  58. package/dist/index.d.ts +2 -2
  59. package/dist/index.js +11 -11
  60. package/dist/index.js.map +1 -1
  61. package/dist/logger-DBX9uYOw.js.map +1 -1
  62. package/dist/{login-DOF8pMVM.js → login-DZLG__2f.js} +4 -3
  63. package/dist/{login-DOF8pMVM.js.map → login-DZLG__2f.js.map} +1 -1
  64. package/dist/mcp-CcvuVXB9.js.map +1 -1
  65. package/dist/mcp.d.ts +1 -1
  66. package/dist/media-sniff-Bn76JxAu.js.map +1 -1
  67. package/dist/{messages-CwujiS74.js → messages-Ce4yRjd3.js} +2 -2
  68. package/dist/{messages-CwujiS74.js.map → messages-Ce4yRjd3.js.map} +1 -1
  69. package/dist/oauth-8LqbeI_Q.js.map +1 -1
  70. package/dist/{openai-compat-BvgYGSR1.js → openai-compat-TA7aihJ-.js} +6 -4
  71. package/dist/openai-compat-TA7aihJ-.js.map +1 -0
  72. package/dist/output/stream-json.d.ts +1 -1
  73. package/dist/output/terminal.d.ts +1 -1
  74. package/dist/output/terminal.js +1 -1
  75. package/dist/output/terminal.js.map +1 -1
  76. package/dist/output-cap-kBUHBlnq.js.map +1 -1
  77. package/dist/presets.d.ts +1 -1
  78. package/dist/presets.js +1 -1
  79. package/dist/providers/anthropic.d.ts +1 -1
  80. package/dist/providers/anthropic.js +1 -1
  81. package/dist/providers/arcee.d.ts +1 -1
  82. package/dist/providers/arcee.js +1 -1
  83. package/dist/providers/baseten.d.ts +1 -1
  84. package/dist/providers/baseten.js +2 -2
  85. package/dist/providers/baseten.js.map +1 -1
  86. package/dist/providers/cerebras.d.ts +1 -1
  87. package/dist/providers/cerebras.js +1 -1
  88. package/dist/providers/local.d.ts +1 -1
  89. package/dist/providers/local.js +1 -1
  90. package/dist/providers/openai-compat.d.ts +1 -1
  91. package/dist/providers/openai-compat.js +1 -1
  92. package/dist/providers/openai.d.ts +1 -1
  93. package/dist/providers/openai.js +8 -8
  94. package/dist/providers/openai.js.map +1 -1
  95. package/dist/providers/openrouter.d.ts +1 -1
  96. package/dist/providers/openrouter.js +1 -1
  97. package/dist/providers/xai.d.ts +1 -1
  98. package/dist/providers/xai.js +1 -1
  99. package/dist/{providers-z6LDMAr3.js → providers-Dln69sQ_.js} +3 -3
  100. package/dist/{providers-z6LDMAr3.js.map → providers-Dln69sQ_.js.map} +1 -1
  101. package/dist/providers.d.ts +1 -1
  102. package/dist/providers.js +4 -4
  103. package/dist/read-state-Dq_TXUX1.js.map +1 -1
  104. package/dist/{resolve-Cr8JSL_O.js → resolve-CC8Lmwcj.js} +3 -3
  105. package/dist/{resolve-Cr8JSL_O.js.map → resolve-CC8Lmwcj.js.map} +1 -1
  106. package/dist/restate.d.ts +1 -1
  107. package/dist/restate.d.ts.map +1 -1
  108. package/dist/restate.js.map +1 -1
  109. package/dist/session/sqlite.d.ts +1 -1
  110. package/dist/session/sqlite.d.ts.map +1 -1
  111. package/dist/session/sqlite.js +75 -20
  112. package/dist/session/sqlite.js.map +1 -1
  113. package/dist/{session-CsdDIPY8.js → session-D7JSEMME.js} +3 -3
  114. package/dist/session-D7JSEMME.js.map +1 -0
  115. package/dist/session.d.ts +2 -2
  116. package/dist/session.js +2 -2
  117. package/dist/{skills-Bsb0rvWI.js → skills-BjeXSRlQ.js} +2 -2
  118. package/dist/{skills-Bsb0rvWI.js.map → skills-BjeXSRlQ.js.map} +1 -1
  119. package/dist/skills.d.ts +1 -1
  120. package/dist/skills.js +2 -2
  121. package/dist/stdio-loader-Ce68wUmM.js.map +1 -1
  122. package/dist/{tool-formatters-DY0TDb1r.d.ts → tool-formatters-ETbcC9DM.d.ts} +2 -2
  123. package/dist/tool-formatters-ETbcC9DM.d.ts.map +1 -0
  124. package/dist/tools/fetch-url.d.ts +1 -1
  125. package/dist/tools/fetch-url.d.ts.map +1 -1
  126. package/dist/tools/fetch-url.js +1 -1
  127. package/dist/tools/web-search.d.ts +1 -1
  128. package/dist/tools/web-search.js +1 -1
  129. package/dist/tools/web-search.js.map +1 -1
  130. package/dist/tools.d.ts +2 -2
  131. package/dist/tools.js +2 -2
  132. package/dist/{transcript-anchors-DSRPWjiH.js → transcript-anchors-CBaghfwl.js} +364 -96
  133. package/dist/transcript-anchors-CBaghfwl.js.map +1 -0
  134. package/dist/{transcript-anchors-Cb-bDbNH.d.ts → transcript-anchors-e_30Kvk0.d.ts} +37 -3
  135. package/dist/transcript-anchors-e_30Kvk0.d.ts.map +1 -0
  136. package/dist/tui.d.ts +21 -6
  137. package/dist/tui.d.ts.map +1 -1
  138. package/dist/tui.js +505 -83
  139. package/dist/tui.js.map +1 -1
  140. package/dist/{turn-operations-Dq9Kx7m2.js → turn-operations-CEt_l3fy.js} +23 -8
  141. package/dist/turn-operations-CEt_l3fy.js.map +1 -0
  142. package/dist/{turn-operations-CgMROLsr.d.ts → turn-operations-D-aaiUOo.d.ts} +27 -9
  143. package/dist/turn-operations-D-aaiUOo.d.ts.map +1 -0
  144. package/dist/types-BIarq1qE.js.map +1 -1
  145. package/dist/types.d.ts +1 -1
  146. package/dist/{xai-B_e6TOA8.js → xai-kGdhWmds.js} +3 -3
  147. package/dist/{xai-B_e6TOA8.js.map → xai-kGdhWmds.js.map} +1 -1
  148. package/docs/ARCHITECTURE.md +4 -0
  149. package/docs/CHAT.md +12 -10
  150. package/docs/SKILL.md +1 -1
  151. package/docs/TUI.md +3 -3
  152. package/package.json +2 -2
  153. package/dist/agent-DkSmGkDM.js.map +0 -1
  154. package/dist/anthropic-CTHsdFG9.js.map +0 -1
  155. package/dist/auth-BDSu_0t3.js.map +0 -1
  156. package/dist/contexts-Vone3qQQ.js.map +0 -1
  157. package/dist/format-BNOXpl-1.js.map +0 -1
  158. package/dist/index-B8UtiZy7.d.ts.map +0 -1
  159. package/dist/openai-compat-BvgYGSR1.js.map +0 -1
  160. package/dist/session-CsdDIPY8.js.map +0 -1
  161. package/dist/tool-formatters-DY0TDb1r.d.ts.map +0 -1
  162. package/dist/transcript-anchors-Cb-bDbNH.d.ts.map +0 -1
  163. package/dist/transcript-anchors-DSRPWjiH.js.map +0 -1
  164. package/dist/turn-operations-CgMROLsr.d.ts.map +0 -1
  165. package/dist/turn-operations-Dq9Kx7m2.js.map +0 -1
package/dist/chat.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { $a as ExtensionContext, $c as CreateInteractionToolsOptions, $l as PLAN_AGENT, $u as ContextItem, Ac as CompletionProvider, Af as SessionStore, Au as localDescriptor, B as McpCredentialStore, Bc as CommandExecution, Bi as BuildExtensionRegistryOptions, Bo as TuiContributions, Bu as AutoCompactInput, Cc as resolveChipColor, Cl as pendingInteractionsFromTurns, Co as ExtensionSkillPolicy, Cu as ProviderDescriptor, Da as defineExtension, Dc as ActiveTrigger, Df as Session, Do as ExtensionToolCatalogTransform, Du as enabledModelOptions, Ec as useCompletion, El as useInteractionsQueue, Eo as ExtensionStorageSurface, Eu as credKeyOf, Fc as findActiveTrigger, Fu as openrouterDescriptor, Gc as CommandStepContext, Gi as disposeExtensionRegistry, Gl as AgentAccent, Gu as ContextBreakdownContributionContext, Hc as CommandInvocation, Hi as buildExtensionPreset, Hu as effectiveContextWindow, Ic as mergeReferences, Iu as piIdOf, Jc as executeCommand, Ji as partitionExtensionCatalog, Jl as BUILD_AGENT, Ju as ContextCategory, Kc as CommandStepFn, Ki as filterExtensionRegistry, Kl as AgentProfile, Ku as ContextBreakdownContributor, Lu as restoreModelOptions, Mu as modelSupportsReasoning, Nc as applyInsert, Ni as AgentHookMap, No as ExtensionToolResultMetadataRegistration, Nu as modelsForDescriptor, Oc as CompletionContext, Ou as getContextWindow, Pc as collectReferences, Pi as AgentHooks, Pu as openaiDescriptor, Qa as ExtensionCapability, Qc as ConfirmQuestion, Ql as DEFAULT_PERSIST_EXCLUDE_TOOLS, Qu as ContextExtensionSection, Rc as Command, Ro as GuiContributions, Ru as AUTO_COMPACT_MIN_GROWTH_FRACTION, Sc as ThemeSurfaces, Sl as makeRequestInteraction, So as ExtensionSessionStateSurface, Su as ModelOption, Tc as CompletionState, Tf as SkillsConfig, Tl as useInteractionsActions, To as ExtensionStorageScope, Tu as cerebrasDescriptor, Uc as CommandOutputBlock, Ui as buildExtensionRegistry, Us as SourcedScanPath, Uu as shouldAutoCompact, Vd as SessionTurn, Vu as OUTPUT_RESERVE_TOKENS, Wc as CommandStep, Wi as composeExtensionPreset, Wu as ContextBreakdown, Xa as ExtensionApiVersion, Xc as ASK_USER_TOOL, Xl as DEFAULT_AGENT_ID, Xu as ContextExactCounts, Ya as EMPTY_EXTENSION_REGISTRY, Yc as parseCommandInvocation, Yl as BUILTIN_AGENTS, Yu as ContextCategoryId, Za as ExtensionBehaviorTransform, Zc as AnswerValue, Zl as DEFAULT_BUDGET_EXCLUDE_TOOLS, Zu as ContextExtensionRow, _a as discoverExtensions, _c as SyntaxStyles, _i as GenerateStructuredDataOptions, _l as SelectQuestion, _u as ProviderKey, al as PendingInteractionEntry, ao as ExtensionFooterHint, au as EditOutcome, bc as ThemeColors, bl as createInteractionTools, bo as ExtensionRunTransform, bu as CustomField, cd as AutoCompact, cl as PlanRequest, co as ExtensionKeybinding, cu as Owner, dl as Question, do as ExtensionMcpConfigTransform, dp as Provider, du as SessionMeta, ed as ContextMcpGroup, el as InteractionRequest, eu as accentColor, fl as QuestionChoice, fo as ExtensionModal, fu as Settings, ga as defaultExtensionScanPaths, gc as DEFAULT_THEME, gl as QuestionType, go as ExtensionPermission, gu as ProviderAuth, hc as ChipColorMap, hl as QuestionResponse, ho as ExtensionPaths, hu as AuthMethod, il as PRESENT_PLAN_TOOL, io as ExtensionDefinition, iu as EditHunk, jc as CompletionReference, ju as modelOptionsFor, kc as CompletionItem, ku as getModelInfo, lf as ToolDef, ll as PlanResponse, lo as ExtensionKeybindingDispatchContext, lu as Picked, mc as ChipColor, ml as QuestionRequest, mo as ExtensionOrderedContribution, mu as ToolCallDisplay, nd as ContextUsageSplit, nl as InteractionsActions, nu as singleAgentRegistry, ol as PlanDecision, oo as ExtensionGuiPanel, ou as EditOutcomeKind, pc as BUILTIN_THEMES, pl as QuestionPayload, pu as StreamEvent, qc as commandSteps, qi as mergeContributions, ql as AgentRegistry, qu as ContextBreakdownOptions, rd as buildContextBreakdown, rl as InteractionsProvider, ru as EditDiffDisplay, sl as PlanPayload, su as EditPayload, t as Preset, td as ContextSnapshot, tl as InteractionResponse, to as ExtensionContributions, tu as resolveAgentId, ul as PlanStep, uo as ExtensionManifest, uu as Screen, va as inlineLoadedExtension, vc as SyntaxTokenStyle, vi as generateStructuredData, vl as TextQuestion, vo as ExtensionProviderMiddleware, vu as detectAuth, wc as resolveTheme, wl as serializeInteractionResponse, wo as ExtensionSource, wu as anthropicDescriptor, xa as scanExtensionDirectories, xc as ThemeSelect, xd as McpToolSchema, xf as SkillConfig, xl as isInteractionTool, xo as ExtensionRuntimeEnv, xu as ModelInfo, yc as Theme, yd as McpServerConfig, yl as buildResumedToolResultsTurn, yo as ExtensionRegistry, yu as BUILTIN_PROVIDERS, z as McpCredentialEntry, zc as CommandAgentResult, zo as LoadedExtension, zu as AutoCompactDecision } from "./index-B8UtiZy7.js";
2
- import { $ as KeyBindingDef, A as resolveStorageDirs, B as marginTopFor, C as ResolvedPaths, D as StorageDirs, E as ResolveStorageDirsOptions, F as deriveSessionTitle, G as toolCallPreview, H as stripSpawnTokensLine, I as eventsFromTurns, J as DEFAULT_KEYBINDINGS, K as toolResultText, L as lastContextSizeFromTurns, M as TuiState, N as compactSummaryEvent, O as StorageMode, P as createStateStore, Q as KeyAction, R as listSessionMeta, S as ResolvedConfig, T as resolveStoragePaths, U as sumRunCosts, V as saveState, W as titleFromTurns, X as KEYBINDING_DEF_BY_ACTION, Y as KEYBINDING_DEFS, Z as KEYBINDING_KEY_COL_WIDTH, _ as discoverProjectMcps, _t as clipHintsToWidth, a as SessionExportTarget, at as formatBindingForDisplay, b as ChatOptions, c as writeSessionExport, ct as matchesBinding, d as useEnabledToggleSet, dt as readKeybindings, et as KeyBindingSection, f as DiscoveredMcp, ft as readKeybindingsRaw, g as defaultMcpsConfigPaths, gt as Hint, h as buildMcpServers, ht as EMPTY_HINTS, i as SessionExportFormat, it as ensureKeybindingsFile, j as StateStoreApi, k as StorageSlot, l as EnabledAllowlistKey, lt as mergeKeybindings, m as DiscoveryResult, mt as stripJsonComments, n as computeTurnAnchors, nt as ParsedBinding, o as renderSession, ot as groupBindings, p as DiscoveryError, pt as resolveExtensionKeybindings, q as updateToolEventOutcomes, r as SessionExportAnchor, rt as ResolvedExtensionKeybinding, s as resolveSessionExportTarget, st as keybindingsPath, t as TranscriptItem, tt as KeyBindings, u as EnabledToggleSet, ut as parseBindingSpec, v as parseMcpsFile, vt as hintsLength, w as resolveConfig, x as ProviderRegistry, y as AutoUpdateConfig, yt as truncateTrailing, z as loadState } from "./transcript-anchors-Cb-bDbNH.js";
3
- import { $ as uniqueSkillNamesFromReferences, A as PreviewResult, B as summarizeEditPayload, C as DiffLine, D as HunkResolution, E as EditSummary, F as computeLineDiff, G as mergeApprovalAndBodyOutcomes, H as ResolvedApproval, I as extractEditPayload, J as rewriteMultiEditHeader, K as parseEditOutcomesFromResult, L as filetypeFromPath, M as buildContextualDiff, N as buildUnifiedDiff, O as InlineDiff, P as computeInlineDiff, Q as createSkillsCompletionProvider, R as previewEditPayload, S as shortId, T as EditHunkSummary, U as buildEditOutcomesAnnotation, V as tokenize, W as maskToOutcomeKinds, X as summarizeOutcomes, Y as stripEditOutcomesAnnotation, Z as SKILLS_TRIGGER, _ as fmtTokens, a as MAX_TRANSCRIPT_EVENTS, at as listProjectFiles, b as formatTaskSummary, c as finalizeStreamingMarkdown, ct as ChatReferenceEntry, d as CatalogEntry, dt as createChatsCompletionProvider, et as FILES_TRIGGER, f as buildModelCatalog, ft as uniqueChatIdsFromReferences, g as compactPath, h as ageString, i as turnAsText, it as ListProjectFilesOptions, j as applyEditPayload, k as InlineSegment, l as finalizeStreamingMarkdownForOwner, lt as ChatReferenceScope, m as indexOfEntry, mt as buildLinearRamp, n as deleteTurnSafely, nt as uniqueFilesFromReferences, o as TRANSCRIPT_TRIM_TO_EVENTS, ot as CHATS_TRIGGER, p as filterModelCatalog, pt as blendHsl, q as resolveApprovalForPayload, r as truncateTurnsAt, rt as FileEntry, s as capTranscriptEvents, st as ChatReferenceData, t as countNeighbors, tt as createFilesCompletionProvider, u as turnContextSize, ut as chatReferenceTokensFromText, v as formatDuration, w as DiffOp, x as previewLine, y as formatTaskStatus, z as splitLines } from "./turn-operations-CgMROLsr.js";
4
- import { C as isTurnHighlighted, E as turnSelectionOwnership, S as isEditErrorResult, T as selectableTurnIds, _ as SafeModeActions, a as formatToolCall, b as useSafeModeQueue, c as splitPromptSegments, d as chunkMarkdownForRender, f as normalizeMarkdownCodeFences, g as RequestApproval, h as ApprovalRequest, i as displayNameFor, l as MARKDOWN_RENDER_CHUNK_TARGET_BYTES, m as ApprovalDecision, n as ToolDisplayMeta, o as PromptSegment, p as splitMarkdownCodeBlocks, r as ToolFormatLine, s as PromptSegmentRef, t as TOOL_DISPLAY, u as MarkdownSegment, v as SafeModeProvider, w as isVisible, y as useSafeModeActions } from "./tool-formatters-DY0TDb1r.js";
1
+ import { $a as ExtensionBehaviorTransform, $c as commandSteps, $l as AgentRegistry, $u as AUTO_COMPACT_MIN_GROWTH_FRACTION, Ac as resolveTheme, Al as serializeInteractionResponse, Au as AuthMethod, Bc as collectReferences, Bo as GuiContributions, Bu as cerebrasDescriptor, Ca as scanExtensionDirectories, Cc as SyntaxStyles, Cd as AutoCompact, Cl as SelectQuestion, Co as ExtensionRuntimeEnv, Cu as chainPositionOf, Dc as ThemeSelect, Dl as isInteractionTool, Do as ExtensionStorageScope, Du as restoreChainFallbacks, Ec as ThemeColors, Ef as ToolDef, El as createInteractionTools, Eo as ExtensionSource, Eu as providerKeySetChanged, Fc as CompletionItem, Fi as AgentHookMap, Fo as ExtensionToolResultMetadataRegistration, Fu as CustomField, Gc as CommandAgentResult, Gi as buildExtensionRegistry, Gu as localDescriptor, H as McpCredentialStore, Hc as mergeReferences, Hf as SkillsConfig, Hi as BuildExtensionRegistryOptions, Ho as TuiContributions, Hu as enabledModelOptions, Ic as CompletionProvider, Id as McpToolSchema, Ii as AgentHooks, Iu as ModelInfo, Jc as CommandInvocation, Jf as SessionStore, Ji as filterExtensionRegistry, Ju as modelsForDescriptor, Kc as CommandExecution, Ki as composeExtensionPreset, Ku as modelOptionsFor, Lc as CompletionReference, Lu as ModelOption, Mc as useCompletion, Ml as useInteractionsQueue, Mu as ProviderKey, Nc as ActiveTrigger, Nu as detectAuth, Oc as ThemeSurfaces, Ol as makeRequestInteraction, Oo as ExtensionStorageSurface, Ou as sanitizeModelChain, Pc as CompletionContext, Pd as McpServerConfig, Pu as BUILTIN_PROVIDERS, Qa as ExtensionApiVersion, Qc as CommandStepFn, Ql as AgentProfile, Qu as restoreModelOptions, Rf as SkillConfig, Ru as ProviderDescriptor, Sc as DEFAULT_THEME, Sl as QuestionType, So as ExtensionRunTransform, Su as buildRunModel, Tc as Theme, Tl as buildResumedToolResultsTurn, To as ExtensionSkillPolicy, Tu as filterChainFallbacks, Uu as getContextWindow, V as McpCredentialEntry, Vc as findActiveTrigger, Vo as LoadedExtension, Vu as credKeyOf, Wc as Command, Wf as Session, Wi as buildExtensionPreset, Wu as getModelInfo, Xc as CommandStep, Xi as partitionExtensionCatalog, Xu as openrouterDescriptor, Yc as CommandOutputBlock, Yi as mergeContributions, Ys as SourcedScanPath, Yu as openaiDescriptor, Za as EMPTY_EXTENSION_REGISTRY, Zc as CommandStepContext, Zl as AgentAccent, Zu as piIdOf, _d as ContextUsageSplit, _l as Question, _o as ExtensionPaths, _u as SessionMeta, ad as ContextBreakdown, al as CreateInteractionToolsOptions, au as PLAN_AGENT, ba as inlineLoadedExtension, bc as ChipColor, bi as generateStructuredData, bl as QuestionRequest, bo as ExtensionProviderMiddleware, bu as ToolCallDisplay, cd as ContextBreakdownOptions, cl as InteractionsActions, co as ExtensionGuiPanel, cu as singleAgentRegistry, dd as ContextExactCounts, dl as PendingInteractionEntry, do as ExtensionKeybindingDispatchContext, du as EditOutcome, ed as AutoCompactDecision, el as executeCommand, eo as ExtensionCapability, eu as BUILD_AGENT, fd as ContextExtensionRow, fl as PlanDecision, fo as ExtensionManifest, fu as EditOutcomeKind, gd as ContextSnapshot, gl as PlanStep, go as ExtensionOrderedContribution, gu as Screen, hd as ContextMcpGroup, hl as PlanResponse, hu as Picked, id as shouldAutoCompact, if as SessionTurn, il as ConfirmQuestion, iu as DEFAULT_PERSIST_EXCLUDE_TOOLS, jc as CompletionState, jl as useInteractionsActions, ju as ProviderAuth, ka as defineExtension, kc as resolveChipColor, kl as pendingInteractionsFromTurns, ko as ExtensionToolCatalogTransform, kp as Provider, ku as toggleChainEntry, ld as ContextCategory, ll as InteractionsProvider, lu as EditDiffDisplay, md as ContextItem, ml as PlanRequest, mo as ExtensionModal, mu as Owner, nd as OUTPUT_RESERVE_TOKENS, nl as ASK_USER_TOOL, nu as DEFAULT_AGENT_ID, od as ContextBreakdownContributionContext, ol as InteractionRequest, oo as ExtensionDefinition, ou as accentColor, pd as ContextExtensionSection, pl as PlanPayload, po as ExtensionMcpConfigTransform, pu as EditPayload, qi as disposeExtensionRegistry, qu as modelSupportsReasoning, rd as effectiveContextWindow, rl as AnswerValue, ro as ExtensionContributions, ru as DEFAULT_BUDGET_EXCLUDE_TOOLS, sd as ContextBreakdownContributor, sl as InteractionResponse, so as ExtensionFooterHint, su as resolveAgentId, t as Preset, td as AutoCompactInput, tl as parseCommandInvocation, to as ExtensionContext, tu as BUILTIN_AGENTS, ud as ContextCategoryId, ul as PRESENT_PLAN_TOOL, uo as ExtensionKeybinding, uu as EditHunk, va as defaultExtensionScanPaths, vd as buildContextBreakdown, vl as QuestionChoice, vo as ExtensionPermission, vu as Settings, wc as SyntaxTokenStyle, wl as TextQuestion, wo as ExtensionSessionStateSurface, wu as chainsEqual, xc as ChipColorMap, xl as QuestionResponse, xo as ExtensionRegistry, xu as ModelChainEntry, ya as discoverExtensions, yc as BUILTIN_THEMES, yi as GenerateStructuredDataOptions, yl as QuestionPayload, yu as StreamEvent, zc as applyInsert, zu as anthropicDescriptor } from "./index-C6Il4kBD.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-e_30Kvk0.js";
3
+ import { $ as createSkillsCompletionProvider, A as InlineSegment, B as splitLines, C as shortId, D as EditSummary, E as EditHunkSummary, F as computeInlineDiff, G as maskToOutcomeKinds, H as tokenize, I as computeLineDiff, J as resolveApprovalForPayload, K as mergeApprovalAndBodyOutcomes, L as extractEditPayload, M as applyEditPayload, N as buildContextualDiff, O as HunkResolution, P as buildUnifiedDiff, Q as SKILLS_TRIGGER, R as filetypeFromPath, S as previewLine, T as DiffOp, U as ResolvedApproval, V as summarizeEditPayload, W as buildEditOutcomesAnnotation, X as stripEditOutcomesAnnotation, Y as rewriteMultiEditHeader, Z as summarizeOutcomes, _ as fmtCost, a as MAX_TRANSCRIPT_EVENTS, at as ListProjectFilesOptions, b as formatTaskStatus, c as finalizeStreamingMarkdown, ct as ChatReferenceData, d as CatalogEntry, dt as chatReferenceTokensFromText, et as uniqueSkillNamesFromReferences, f as buildModelCatalog, ft as createChatsCompletionProvider, g as compactPath, h as ageString, ht as buildLinearRamp, i as turnAsText, it as FileEntry, j as PreviewResult, k as InlineDiff, l as finalizeStreamingMarkdownForOwner, lt as ChatReferenceEntry, m as indexOfEntry, mt as blendHsl, n as deleteTurnSafely, nt as createFilesCompletionProvider, o as TRANSCRIPT_TRIM_TO_EVENTS, ot as listProjectFiles, p as filterModelCatalog, pt as uniqueChatIdsFromReferences, q as parseEditOutcomesFromResult, r as truncateTurnsAt, rt as uniqueFilesFromReferences, s as capTranscriptEvents, st as CHATS_TRIGGER, t as countNeighbors, tt as FILES_TRIGGER, u as turnContextSize, ut as ChatReferenceScope, v as fmtTokens, w as DiffLine, x as formatTaskSummary, y as formatDuration, z as previewEditPayload } from "./turn-operations-D-aaiUOo.js";
4
+ import { C as isTurnHighlighted, E as turnSelectionOwnership, S as isEditErrorResult, T as selectableTurnIds, _ as SafeModeActions, a as formatToolCall, b as useSafeModeQueue, c as splitPromptSegments, d as chunkMarkdownForRender, f as normalizeMarkdownCodeFences, g as RequestApproval, h as ApprovalRequest, i as displayNameFor, l as MARKDOWN_RENDER_CHUNK_TARGET_BYTES, m as ApprovalDecision, n as ToolDisplayMeta, o as PromptSegment, p as splitMarkdownCodeBlocks, r as ToolFormatLine, s as PromptSegmentRef, t as TOOL_DISPLAY, u as MarkdownSegment, v as SafeModeProvider, w as isVisible, y as useSafeModeActions } from "./tool-formatters-ETbcC9DM.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";
@@ -43,11 +43,12 @@ declare function chatReferenceTokensForPrompt(prompt: string): string[];
43
43
  * for the lifetime of the run.
44
44
  */
45
45
  /**
46
- * Lead line — short, version-stable, written in the same key as Claude Code's
47
- * identity prefix (`constants/system.ts:10` in claude-code). Models trained
48
- * on similar prefixes anchor faster; keep this immutable across releases.
46
+ * Lead line — short, version-stable. The first sentence matches the key of
47
+ * Claude Code's identity prefix (models anchor faster on familiar shapes);
48
+ * the second sets the action bias every other fragment leans on. Keep
49
+ * changes rare — each one costs a cache miss across active sessions.
49
50
  */
50
- declare const IDENTITY_PREFIX = "You are zidane, a terminal-based coding agent that helps the user with software-engineering tasks.";
51
+ declare const IDENTITY_PREFIX = "You are zidane, a terminal-based coding agent that helps the user with software-engineering tasks. Bias to action: get to the task immediately, no filler or hedging, keep every response token-lean.";
51
52
  interface EnvSectionOptions {
52
53
  /**
53
54
  * The agent's actual working directory — what `process.cwd()` reports
@@ -95,7 +96,7 @@ declare function envSection(opts: EnvSectionOptions): string;
95
96
  * - No narration comments — prevents inflating diffs with `// Import the module` lines.
96
97
  * - Verify before claiming done — prevents false-positive reports that force a follow-up turn.
97
98
  */
98
- declare const DOING_TASKS_DOCTRINE = "# Doing tasks\n- Stick to the scope you were asked for. Don't add features, refactor unrelated code, or \"improve\" things beyond the request. A bug fix doesn't need surrounding cleanup; a small feature doesn't need extra configurability.\n- Don't add comments, docstrings, or type annotations to code you didn't change. Only comment where the WHY is non-obvious (hidden constraint, subtle invariant, workaround). Never narrate WHAT the code does \u2014 well-named identifiers already do that.\n- Trust internal code and framework guarantees. Validate at system boundaries (user input, external APIs), not everywhere. Skip backwards-compat shims unless asked.\n- Don't create helpers, utilities, or abstractions for one-time operations. Three similar lines beat a premature abstraction. The right amount of complexity is what the task actually requires.\n- Before reporting a task complete, verify it actually works: run the test, execute the script, check the output. Report outcomes faithfully \u2014 if tests fail, say so with the relevant output. Never claim \"all tests pass\" when output shows failures.\n- If you spot a bug adjacent to what was asked, or notice the request is based on a misconception, say so. You are a collaborator, not just an executor.";
99
+ declare const DOING_TASKS_DOCTRINE = "# Doing tasks\n- Do exactly what was asked \u2014 no unrequested features, refactors, or cleanup.\n- Don't add comments, docstrings, or type annotations to code you didn't change. Comment only non-obvious WHY, never WHAT.\n- Validate at system boundaries (user input, external APIs), not everywhere; trust internal code. No backwards-compat shims unless asked.\n- No helpers or abstractions for one-time operations \u2014 three similar lines beat a premature abstraction.\n- Verify before reporting done: run the test or script and report the real outcome, including failures.\n- If you spot an adjacent bug or a flawed assumption in the request, say so.";
99
100
  /**
100
101
  * zidane-specific token-economy doctrine. No claude-code analog — this is
101
102
  * the prose half of the `behavior.{compactStrategy, elideStaleReads,
@@ -103,15 +104,15 @@ declare const DOING_TASKS_DOCTRINE = "# Doing tasks\n- Stick to the scope you we
103
104
  * heavy lifting at the wire level; this prompt nudges the model away from
104
105
  * the access patterns that defeat them.
105
106
  */
106
- declare const TOKEN_DISCIPLINE_DOCTRINE = "# Working efficiently\n- Don't re-read a file while its result is still visible above \u2014 that wastes context. But tool output CAN be compacted away as the session grows (you'll see a short `[\u2026elided\u2026]` stub where the result used to be); when the content you need is no longer visible, just read it again. A re-read of compacted-away content returns the full file, not a dedup stub \u2014 so you never need to \"chunk\" a file to get around missing content.\n- Narrow before you read. `grep` / `glob` to locate, then `read_file` on the specific file. Don't open a 2000-line file when you only need one function.\n- Prefer `edit` / `multi_edit` over `write_file` for surgical changes \u2014 full overwrites are larger payloads and easier to get wrong.\n- Spawn a subagent (`spawn`) for self-contained research dives or codegen passes that don't need the parent's context. The child runs in its own context window \u2014 you only get its final report back.\n- Don't grep for things already shown to you, list directories you already saw, or re-execute commands whose output is still above. Tool budgets nudge against runaway exploration but the cheaper fix is to not start the loop.\n\nTool results may be elided, persisted, or replaced as the conversation grows: stale `read_file` outputs become short stubs after the file is edited, older tool results may be tail-compacted, and large outputs are written to disk and replaced inline with a `<persisted-output tool=\"\u2026\" bytes=\"\u2026\" path=\"\u2026\">` block carrying a 2 KiB head preview plus the filesystem path. Copy load-bearing data into your own response text before you'd need to recover it later \u2014 and when you see a `<persisted-output>` block whose preview isn't enough, call `read_file` on the persisted path to retrieve the full payload.";
107
+ declare const TOKEN_DISCIPLINE_DOCTRINE = "# Working efficiently\n- Search first (`grep` / `glob`), then `read_file` the specific file \u2014 don't open a 2000-line file for one function.\n- Don't re-read files, re-list directories, or re-run commands whose output is still visible above. When earlier output shows an `[\u2026elided\u2026]` stub, just read it again \u2014 you'll get the full content back.\n- Prefer `edit` / `multi_edit` over `write_file` for changes to existing files.\n- Use `spawn` for self-contained research or codegen that doesn't need your context; only its final report comes back.\n- Large outputs may be replaced inline by a `<persisted-output \u2026 path=\"\u2026\">` block with a short preview \u2014 `read_file` that path when the preview isn't enough. Copy load-bearing data into your response text before it can scroll away.";
107
108
  /**
108
109
  * User-facing communication style. Lifted from claude-code's
109
110
  * `# Communicating with the user` + `# Tone and style` sections (~404-442).
110
- * The "no colon before tool calls" rule matters because models often
111
- * generate "Let me check this file:" right before a tool call that the
112
- * user never sees rendered.
111
+ * The "no colon before tool calls" rule matters because the TUI renders
112
+ * the model's text and the tool call as separate blocks a trailing
113
+ * colon reads as a broken sentence.
113
114
  */
114
- declare const COMMUNICATION_DOCTRINE = "# Communicating with the user\n- You're writing for a person, not logging to a console. Tool calls and reasoning are not visible \u2014 only your text output is. Before your first tool call, briefly state what you're about to do.\n- Give short updates at load-bearing moments: root cause found, direction change, real progress. Skip play-by-play.\n- Write in flowing prose. Avoid excessive em dashes, fragments, symbols, or notation. Tables when they help, not by default.\n- Don't use a colon before tool calls. \"Let me read the file:\" + tool call reads as broken \u2014 write \"Let me read the file.\" with a period.\n- Reference code as `file:line` so the user can navigate (e.g. `src/agent.ts:1213`).\n- No emojis unless the user explicitly asks.";
115
+ declare const COMMUNICATION_DOCTRINE = "# Communicating with the user\n- Your text output is what the user reads; your reasoning and full tool payloads are not shown. Briefly state what you're doing before the first tool call, then update only at load-bearing moments \u2014 root cause found, direction change, real progress. No play-by-play.\n- Keep responses short and concrete, in flowing prose \u2014 not em-dash-chained fragments or notation. Reference code as `file:line` (e.g. `src/agent.ts:1213`). Tables only when they help. No emojis unless asked.\n- End the sentence before a tool call with a period, not a colon.";
115
116
  /**
116
117
  * Reversibility / blast-radius doctrine. Mirrors claude-code's `# Executing
117
118
  * actions with care` (255-267). The TUI's safe-mode already gates risky
@@ -119,7 +120,7 @@ declare const COMMUNICATION_DOCTRINE = "# Communicating with the user\n- You're
119
120
  * to anticipate the gate rather than be surprised by it — and to ask
120
121
  * before reaching for destructive shortcuts.
121
122
  */
122
- declare const ACTIONS_WITH_CARE_DOCTRINE = "# Executing actions with care\nReversibility scales the required caution. Local edits, tests, and reads are free to take. Destructive or shared-state actions need explicit user confirmation \u2014 `rm -rf`, dropping tables, force-pushing, modifying CI, sending messages, posting to external services. A user approving an action once does NOT mean they approve it in all contexts.\n\nWhen you hit an obstacle, do not use destructive actions as a shortcut to make it go away. Measure twice, cut once.";
123
+ declare const ACTIONS_WITH_CARE_DOCTRINE = "# Executing actions with care\nLocal edits, tests, and reads are free to take. Destructive or shared-state actions (`rm -rf`, dropping tables, force-pushing, modifying CI, posting to external services) need explicit user confirmation each time \u2014 prior approval doesn't carry over. Never use a destructive action as a shortcut around an obstacle.";
123
124
  /**
124
125
  * How to brief a subagent. Spawning a child agent is the highest-leverage
125
126
  * token move in zidane — a 5k-token research dive becomes a 200-token
@@ -129,14 +130,14 @@ declare const ACTIONS_WITH_CARE_DOCTRINE = "# Executing actions with care\nRever
129
130
  * Lifted from claude-code's `## Writing the prompt` tool-prompt
130
131
  * (`tools/AgentTool/prompt.ts:99-113`).
131
132
  */
132
- declare const SUBAGENT_GUIDANCE = "# When spawning subagents\nBrief the child agent like a smart colleague who just walked in \u2014 it has not seen this conversation and doesn't know what you've tried or why this matters.\n- Explain what you're trying to accomplish and why.\n- Describe what you've already learned or ruled out.\n- Give enough context that the child can make judgment calls, not just follow narrow steps.\n- For investigations, hand over the question. For lookups, hand over the exact command.\n- Never delegate understanding (\"based on your findings, fix the bug\"). Synthesize yourself \u2014 include file paths, line numbers, and the specific change you want.\n\nTerse command-style prompts produce shallow, generic work.";
133
+ declare const SUBAGENT_GUIDANCE = "# When spawning subagents\nThe child has not seen this conversation. Brief it like a colleague who just walked in: the goal and why, what you've learned or ruled out, and enough context for judgment calls. Never delegate understanding \u2014 synthesize yourself and hand over file paths, line numbers, and the specific change you want. Terse prompts produce shallow work.\nWhen spawn offers a `model` field, cost-tier your delegation: mechanical, parallelizable, or high-volume search work belongs on cheaper/faster models; keep synthesis and final judgment on your own model.";
133
134
  /**
134
135
  * Plan-mode framing. Replaces the previous one-liner with explicit phases
135
136
  * (explore → propose → submit), drawing on claude-code's iterative-plan
136
137
  * mode (`utils/messages.ts:3323-3383`). Always paired with the read-only
137
138
  * tool set in {@link PLAN_AGENT}.
138
139
  */
139
- declare const PLAN_MODE_DOCTRINE = "# Plan mode \u2014 read-only\nYou are in PLAN mode. You can read files, list directories, and search the codebase \u2014 but you CANNOT modify files, run shell commands, or spawn subagents. Use this mode to investigate, understand, and design a proposal.\n\n## Loop\n1. **Explore** \u2014 Read code. Look for existing functions, utilities, and patterns to reuse.\n2. **Ask** \u2014 When you hit an ambiguity only the user can resolve (requirements, preferences, tradeoffs), call `ask_user` with the full batch of questions.\n3. **Propose** \u2014 When the plan is ready, submit it via `present_plan` with a concrete title, the markdown body, and optional structured steps. The user approves, rejects, or asks for revisions.\n\n## Good plans\n- Cover what to change, which files to modify, what existing code to reuse (with file paths), and how to verify the change end-to-end.\n- Reference real symbols and line numbers from your exploration.\n- Surface only your recommended approach, not every alternative.\n\nThe user will switch to Build mode to execute an approved plan.";
140
+ declare const PLAN_MODE_DOCTRINE = "# Plan mode \u2014 read-only\nYou are in PLAN mode: investigate and design a proposal. You can read files, search the codebase, and search the web \u2014 you CANNOT modify files, run shell commands, or spawn subagents.\n\n1. **Explore** \u2014 read the relevant code; find existing functions and patterns to reuse. Check current docs via web search when the plan depends on external libraries.\n2. **Ask** \u2014 batch questions via `ask_user`, only for ambiguities the user must resolve.\n3. **Propose** \u2014 submit via `present_plan`: what to change, which files, what to reuse (real paths, symbols, line numbers), how to verify end-to-end. Recommend one approach, not every alternative.\n\nThe user switches to Build mode to execute an approved plan.";
140
141
  /**
141
142
  * How to use `present_plan` / `ask_user`. Kept short — the tool descriptions
142
143
  * carry the schema details; this prompt covers the cross-cutting *when*.
@@ -144,7 +145,7 @@ declare const PLAN_MODE_DOCTRINE = "# Plan mode \u2014 read-only\nYou are in PLA
144
145
  * Previously lived inline in `src/chat/agents.ts` as `INTERACTION_GUIDANCE`.
145
146
  * Moved here so a custom profile can pull it in independently.
146
147
  */
147
- declare const INTERACTION_GUIDANCE = "# Interacting with the user\n- Call `present_plan` when you have a concrete proposal that materially changes the workspace and want explicit confirmation before executing.\n- Call `ask_user` when clarifying answers materially change the next steps. Batch related questions into one call \u2014 every call pauses the conversation.\n- Use both sparingly. Don't ask what you could find out by reading the code.";
148
+ declare const INTERACTION_GUIDANCE = "# Interacting with the user\n- `present_plan`: only for a concrete proposal that materially changes the workspace and needs sign-off before executing.\n- `ask_user`: only when the answer materially changes next steps; batch related questions into one call.\n- Don't ask what you can find out by reading the code.";
148
149
  /**
149
150
  * Variant of {@link INTERACTION_GUIDANCE} for the no-interactive-prompts
150
151
  * configuration (`Settings.allowInteraction = false`). The two tools are
@@ -152,14 +153,14 @@ declare const INTERACTION_GUIDANCE = "# Interacting with the user\n- Call `prese
152
153
  * operate autonomously and surface assumptions / open questions in its
153
154
  * final prose message rather than via tool calls.
154
155
  */
155
- declare const INTERACTION_GUIDANCE_NO_PROMPTS = "# No interactive prompts\nYou don't have `ask_user` or `present_plan` available \u2014 interactive prompts are disabled. When you hit ambiguity, state your assumption in plain prose and proceed. Surface decisions, tradeoffs, and open questions in your final message rather than pausing mid-task.";
156
+ declare const INTERACTION_GUIDANCE_NO_PROMPTS = "# No interactive prompts\n`ask_user` / `present_plan` are unavailable. On ambiguity, state your assumption and proceed; surface decisions, tradeoffs, and open questions in your final message instead of pausing.";
156
157
  /**
157
158
  * Variant of {@link PLAN_MODE_DOCTRINE} for the no-interactive-prompts
158
159
  * configuration. The "Ask" step is removed; "Propose" no longer calls
159
160
  * \`present_plan\` and instead instructs the model to write the plan
160
161
  * directly in its final message.
161
162
  */
162
- declare const PLAN_MODE_DOCTRINE_NO_PROMPTS = "# Plan mode \u2014 read-only\nYou are in PLAN mode. You can read files, list directories, and search the codebase \u2014 but you CANNOT modify files, run shell commands, or spawn subagents. Use this mode to investigate, understand, and design a proposal.\n\n## Loop\n1. **Explore** \u2014 Read code. Look for existing functions, utilities, and patterns to reuse.\n2. **Propose** \u2014 When the plan is ready, write it directly in your final response. Cover what to change, which files to modify, what existing code to reuse (with file paths), and how to verify the change end-to-end.\n\n## Good plans\n- Cover what to change, which files to modify, what existing code to reuse (with file paths), and how to verify the change end-to-end.\n- Reference real symbols and line numbers from your exploration.\n- Surface only your recommended approach, not every alternative.\n- Don't pause for clarification \u2014 interactive prompts are disabled. When in doubt, state your assumption and proceed.\n\nThe user will switch to Build mode to execute the plan.";
163
+ declare const PLAN_MODE_DOCTRINE_NO_PROMPTS = "# Plan mode \u2014 read-only\nYou are in PLAN mode: investigate and design a proposal. You can read files, search the codebase, and search the web \u2014 you CANNOT modify files, run shell commands, or spawn subagents.\n\n1. **Explore** \u2014 read the relevant code; find existing functions and patterns to reuse. Check current docs via web search when the plan depends on external libraries.\n2. **Propose** \u2014 write the plan in your final response: what to change, which files, what to reuse (real paths, symbols, line numbers), how to verify end-to-end. Recommend one approach, not every alternative. Interactive prompts are disabled \u2014 when in doubt, state your assumption and proceed.\n\nThe user switches to Build mode to execute the plan.";
163
164
  interface BuildSystemOptions {
164
165
  /** Actual working directory. Omitted ⇒ no env section is rendered. */
165
166
  cwd?: string;
@@ -1877,6 +1878,28 @@ interface SettingsChoice<K extends keyof Settings = keyof Settings> {
1877
1878
  category: SettingsCategory;
1878
1879
  }
1879
1880
  declare const SETTINGS_CHOICES: readonly SettingsChoice[];
1881
+ /**
1882
+ * Keys of `Settings` whose value type is exactly `string`. Bounds the
1883
+ * input table's `key` the same way {@link BooleanSettingKey} bounds the
1884
+ * toggle table — a free-text row can only point at a string-valued
1885
+ * setting.
1886
+ */
1887
+ type StringSettingKey = { [K in keyof Settings]-?: Settings[K] extends string ? K : never }[keyof Settings];
1888
+ /**
1889
+ * Free-text settings edited via a single-line input. The `SettingsModal`
1890
+ * renders these as a row showing the current value (or `placeholder` when
1891
+ * empty); `enter` opens an inline editor. Same shape a GUI can consume as
1892
+ * a text field.
1893
+ */
1894
+ interface SettingsInput {
1895
+ key: StringSettingKey;
1896
+ label: string;
1897
+ description: string;
1898
+ /** Shown when the value is empty — also the conventional "default" hint. */
1899
+ placeholder: string;
1900
+ category: SettingsCategory;
1901
+ }
1902
+ declare const SETTINGS_INPUTS: readonly SettingsInput[];
1880
1903
  //#endregion
1881
1904
  //#region src/chat/skills-discovery.d.ts
1882
1905
  /**
@@ -2368,5 +2391,5 @@ declare function renderActiveTodoAnchor(todos: readonly TodoItem[], options?: Ac
2368
2391
  */
2369
2392
  declare function createActiveTodoAnchorHooks(options?: ActiveTodoAnchorOptions): AgentHookMap;
2370
2393
  //#endregion
2371
- export { ACTIONS_WITH_CARE_DOCTRINE, ASK_USER_TOOL, AUTO_COMPACT_MIN_GROWTH_FRACTION, type ActiveTodoAnchorOptions, type ActiveTodosState, type ActiveTrigger, type AgentAccent, type AgentProfile, type AgentRegistry, type AgentsMdFile, type AgentsMdResult, type AnswerValue, type ApiKeyCredential, type ApprovalDecision, type ApprovalRequest, type AuthMethod, type AutoCompactDecision, type AutoCompactInput, type AutoUpdateConfig, BUILD_AGENT, BUILTIN_AGENTS, BUILTIN_PROVIDERS, BUILTIN_THEMES, type BooleanSettingKey, type BuildExtensionRegistryOptions, type BuildHintsOptions, type BuildSystemOptions, type BuildUpdateHintOptions, CATPPUCCIN_FRAPPE, CATPPUCCIN_LATTE, CATPPUCCIN_MACCHIATO, CATPPUCCIN_MOCHA, CHATS_TRIGGER, COMMUNICATION_DOCTRINE, type CachedMcpToolList, type CatalogEntry, type ChatOptions, type ChatReferenceData, type ChatReferenceEntry, type ChatReferenceScope, type ChatTurnsReadToolOptions, type CheckForUpdateOptions, type ChipColor, type ChipColorMap, type Command, type CommandAgentResult, type CommandExecution, type CommandInvocation, type CommandOutputBlock, type CommandStep, type CommandStepContext, type CommandStepFn, type Commit, type CompletionContext, type CompletionItem, type CompletionProvider, type CompletionReference, type CompletionState, ConfigProvider, type ConfirmQuestion, 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 CreateInteractionToolsOptions, type CreateTodoToolsOptions, type CredentialsFile, type CustomField, DEFAULT_AGENT_ID, DEFAULT_BUDGET_EXCLUDE_TOOLS, DEFAULT_KEYBINDINGS, DEFAULT_PERSIST_EXCLUDE_TOOLS, DEFAULT_SETTINGS, DEFAULT_THEME, DOING_TASKS_DOCTRINE, type DetectPackageManagerOptions, type DiffLine, type DiffOp, type DiscoverAgentsMdOptions, type DiscoveredMcp, type DiscoveryContextValue, type DiscoveryError, DiscoveryProvider, type DiscoveryResult, type DiscoverySlot, type DiscoverySlotOptions, EMPTY_EXTENSION_REGISTRY, EMPTY_HINTS, type EditDiffDisplay, type EditHunk, type EditHunkSummary, type EditOutcome, type EditOutcomeKind, type EditPayload, type EditSummary, type EnabledAllowlistKey, type EnabledToggleSet, type EnvSectionOptions, type ExtensionApiVersion, type ExtensionBehaviorTransform, type ExtensionCapability, type ExtensionContext, type ExtensionContributions, type ExtensionDefinition, type ExtensionFooterHint, type ExtensionGuiPanel, type ExtensionKeybinding, type ExtensionKeybindingDispatchContext, type ExtensionManifest, type ExtensionMcpConfigTransform, type ExtensionModal, type ExtensionOrderedContribution, type ExtensionPaths, type ExtensionPermission, type ExtensionProviderMiddleware, type ExtensionRegistry, type ExtensionRunTransform, type ExtensionRuntimeEnv, type ExtensionSessionStateSurface, type ExtensionSkillPolicy, type ExtensionSource, type ExtensionStorageScope, type ExtensionStorageSurface, type ExtensionToolCatalogTransform, type ExtensionToolResultMetadataRegistration, FILES_TRIGGER, type FetchOAuthRedirectResult, type FileEntry, GRUVBOX_DARK, GRUVBOX_LIGHT, type GenerateSessionTitleOptions, type GenerateStructuredDataOptions, type GuiContributions, type Hint, type HunkResolution, IDENTITY_PREFIX, IMPLICITLY_SAFE_TOOLS, INTERACTION_GUIDANCE, INTERACTION_GUIDANCE_NO_PROMPTS, type InPlaceUpdateResult, type InlineDiff, type InlineSegment, type InteractionRequest, type InteractionResponse, type InteractionsActions, InteractionsProvider, KEYBINDING_DEFS, KEYBINDING_DEF_BY_ACTION, KEYBINDING_KEY_COL_WIDTH, type KeyAction, type KeyBindingDef, type KeyBindingSection, type KeyBindings, type ListProjectFilesOptions, type LoadedExtension, MARKDOWN_RENDER_CHUNK_TARGET_BYTES, MAX_TRANSCRIPT_EVENTS, type MarkdownSegment, type McpAuthEvent, McpAuthProvider, type McpAuthStateMap, type McpAuthStatus, type McpToolToggleSet, type McpToolsCache, type ModelInfo, type ModelOption, type OAuthCredential, type OAuthFlowOptions, type OAuthPrompt, OUTPUT_RESERVE_TOKENS, type Owner, PLAN_AGENT, PLAN_MODE_DOCTRINE, PLAN_MODE_DOCTRINE_NO_PROMPTS, PRESENT_PLAN_TOOL, type PackageManagerCommand, type PackageManagerId, type ParsedBinding, type PendingInteractionEntry, type PerformInPlaceUpdateOptions, type PerformSelfUpdateOptions, type Picked, type PlanDecision, type PlanPayload, type PlanRequest, type PlanResponse, type PlanStep, type PlatformTarballOptions, type PreviewResult, type ProjectEntry, type ProjectUserPath, type ProjectsFile, type PromptSegment, type PromptSegmentRef, type ProviderAuth, type ProviderCredential, type ProviderDescriptor, type ProviderKey, type ProviderRegistry, type Question, type QuestionChoice, type QuestionPayload, type QuestionRequest, type QuestionResponse, type QuestionType, type RequestApproval, type ResolveStorageDirsOptions, type ResolvedApproval, type ResolvedConfig, type ResolvedExtensionKeybinding, type ResolvedPaths, type RunUpdateCommandOptions, type RunUpdateCommandResult, SETTINGS_CATEGORIES, SETTINGS_CHOICES, SETTINGS_TOGGLES, SKILLS_TRIGGER, SUBAGENT_GUIDANCE, type SafeModeActions, SafeModeProvider, type Screen, type SelectQuestion, type SelfUpdateResult, type SessionExportAnchor, type SessionExportFormat, type SessionExportTarget, type SessionMeta, type Settings, type SettingsCategory, type SettingsCategoryDescriptor, type SettingsChoice, SettingsProvider, type SettingsToggle, type StateStoreApi, type StorageDirs, type StorageMode, type StorageSlot, type StreamBuffer, type StreamEvent, type StreamSource, type SyntaxStyles, type SyntaxTokenStyle, TODOREAD_TOOL, TODOS_METADATA_KEY, TODOWRITE_TOOL, TODO_STATUS_GLYPHS, TODO_WRITE_COUNTS_METADATA_KEY, TOKEN_DISCIPLINE_DOCTRINE, TOOL_DISPLAY, TRANSCRIPT_TRIM_TO_EVENTS, type TextQuestion, type Theme, type ThemeColors, ThemeProvider, type ThemeSelect, type ThemeSurfaces, type TodoItem, type TodoStatus, type TodoTally, type TodosBag, type ToolCallDisplay, type ToolDisplayMeta, type ToolFormatLine, type TranscriptItem, type TuiContributions, type TuiState, type UpdateStatus, type UseUpdateCheckOptions, VAPORWAVE_THEME, type VisibleMcpRow, type Walk, accentColor, addToSafelist, ageString, anthropicDescriptor, applyApiKeyEnv, applyEditPayload, applyInsert, blendHsl, bootProfileEnabled, bootTick, buildBuildSystem, buildContextBreakdown, buildContextualDiff, buildEditOutcomesAnnotation, buildExtensionPreset, buildExtensionRegistry, buildHints, buildLinearRamp, buildMcpServers, buildModelCatalog, buildPlanSystem, buildResumedToolResultsTurn, buildSkillsConfig, buildToolToggle, buildUnifiedDiff, buildUpdateHint, buildVisibleMcpRows, capTranscriptEvents, cerebrasDescriptor, chatAutoCompactBehavior, chatReferenceTokensForPrompt, chatReferenceTokensFromText, checkForUpdate, chunkMarkdownForRender, cleanTitle, clearMcpToolsCache, clipHintsToWidth, collectReferences, commandSteps, compactPath, compactSummaryEvent, compareSemver, composeExtensionPreset, computeInlineDiff, computeLineDiff, computeTurnAnchors, countNeighbors, createActiveTodoAnchorHooks, createChatTurnsReadTool, createChatsCompletionProvider, createDiscoverySlot, createFileMcpCredentialStore, createFilesCompletionProvider, createInteractionTools, createSkillsCompletionProvider, createStateStore, createTodoTools, credKeyOf, credentialsPath, defaultExtensionScanPaths, defaultMcpsConfigPaths, defaultSkillScanPaths, defineExtension, deleteTurnSafely, deriveSessionTitle, detectAuth, detectLibc, detectPackageManager, discoverAgentsMd, discoverExtensions, discoverProjectMcps, discoverProjectSkills, displayNameFor, disposeExtensionRegistry, effectiveContextWindow, enabledModelOptions, ensureKeybindingsFile, envSection, eventsFromTurns, executeCommand, extractEditPayload, fetchOAuthRedirect, filetypeFromPath, filterExtensionRegistry, filterModelCatalog, finalizeStreamingMarkdown, finalizeStreamingMarkdownForOwner, findActiveTrigger, findGitRoot, fmtTokens, formatBindingForDisplay, formatDuration, formatPathForCwd, formatTaskStatus, formatTaskSummary, formatToolCall, generateSessionTitle, generateStructuredData, getArchivedTodosForRun, getContextWindow, getMcpAuthStatus, getModelInfo, getSafelist, getTodosForRun, groupBindings, hintsLength, indexOfEntry, indexOfServerRow, inlineLoadedExtension, isEditErrorResult, isInteractionTool, isOnSafelist, isTodoTool, isTurnHighlighted, isVisible, keybindingsPath, lastContextSizeFromTurns, listProjectFiles, listSessionMeta, loadMcpToolsCache, loadState, localDescriptor, makeRequestInteraction, marginTopFor, maskToOutcomeKinds, matchesBinding, matchesSafelistEntry, mcpCredentialsPath, mcpToolsCachePath, mergeApprovalAndBodyOutcomes, mergeContributions, mergeKeybindings, mergeReferences, modelOptionsFor, modelSupportsReasoning, modelsForDescriptor, normalizeMarkdownCodeFences, oauthUsesManualCodePaste, openaiDescriptor, openrouterDescriptor, parentServerName, parseBindingSpec, parseCommandInvocation, parseEditOutcomesFromResult, parseMcpsFile, parseSemver, partitionExtensionCatalog, patchMcpCredential, pendingInteractionsFromTurns, performInPlaceSelfUpdate, performSelfUpdate, piIdOf, pickActiveRunId, previewEditPayload, previewLine, projectUserPaths, projectsFilePath, pruneTodosByRun, readCredentials, readKeybindings, readKeybindingsRaw, readProjects, readProviderCredential, reduceMcpAuth, refreshMcpToolsCatalog, removeProviderCredential, renderActiveTodoAnchor, renderAgentsMdBlock, renderSession, resolveAgentId, resolveApprovalForPayload, resolveChipColor, resolveConfig, resolveExtensionKeybindings, resolvePlatformPackage, resolveSessionExportTarget, resolveStorageDirs, resolveStoragePaths, resolveTheme, restoreModelOptions, rewriteMultiEditHeader, runOAuthLogin, runUpdateCommand, saveMcpToolsCache, saveState, scanExtensionDirectories, selectActiveTodos, selectableTurnIds, serializeInteractionResponse, setProviderCredential, setTodosForRun, shortChord, shortId, shouldAutoCompact, shouldAutoGenerateTitle, singleAgentRegistry, splitLines, splitMarkdownCodeBlocks, splitPromptSegments, stripEditOutcomesAnnotation, stripJsonComments, stripSpawnTokensLine, subscribeMcpToolsCache, suggestSafelistEntries, sumRunCosts, summarizeEditPayload, summarizeOutcomes, supportsOAuth, titleFromTurns, tokenize, toolCallPreview, toolResultText, truncateTrailing, truncateTurnsAt, tryOpenBrowser, turnAsText, turnContextSize, turnSelectionOwnership, uniqueChatIdsFromReferences, uniqueFilesFromReferences, uniqueSkillNamesFromReferences, updateToolEventOutcomes, useActiveTodos, useColors, useCompletion, useConfig, useDiscovery, useDiscoveryOptional, useEnabledToggleSet, useInteractionsActions, useInteractionsQueue, useMcpAuthDispatch, useMcpAuthState, useMcpToolToggleMap, useMcpToolToggleSet, useSafeModeActions, useSafeModeQueue, useSelectStyle, useSettings, useStreamBuffer, useSurfaces, useSyntaxStyles, useTheme, useUpdateCheck, writeCredentials, writeProjects, writeSessionExport };
2394
+ export { ACTIONS_WITH_CARE_DOCTRINE, ASK_USER_TOOL, AUTO_COMPACT_MIN_GROWTH_FRACTION, type ActiveTodoAnchorOptions, type ActiveTodosState, type ActiveTrigger, type AgentAccent, type AgentProfile, type AgentRegistry, type AgentsMdFile, type AgentsMdResult, type AnswerValue, type ApiKeyCredential, type ApprovalDecision, type ApprovalRequest, type AuthMethod, type AutoCompactDecision, type AutoCompactInput, type AutoUpdateConfig, BUILD_AGENT, BUILTIN_AGENTS, BUILTIN_PROVIDERS, BUILTIN_THEMES, type BooleanSettingKey, type BuildExtensionRegistryOptions, type BuildHintsOptions, type BuildSystemOptions, type BuildUpdateHintOptions, CATPPUCCIN_FRAPPE, CATPPUCCIN_LATTE, CATPPUCCIN_MACCHIATO, CATPPUCCIN_MOCHA, CHATS_TRIGGER, COMMUNICATION_DOCTRINE, type CachedMcpToolList, type CatalogEntry, type ChatOptions, type ChatReferenceData, type ChatReferenceEntry, type ChatReferenceScope, type ChatTurnsReadToolOptions, type CheckForUpdateOptions, type ChipColor, type ChipColorMap, type Command, type CommandAgentResult, type CommandExecution, type CommandInvocation, type CommandOutputBlock, type CommandStep, type CommandStepContext, type CommandStepFn, type Commit, type CompletionContext, type CompletionItem, type CompletionProvider, type CompletionReference, type CompletionState, ConfigProvider, type ConfirmQuestion, 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 CreateInteractionToolsOptions, type CreateTodoToolsOptions, type CredentialsFile, type CustomField, DEFAULT_AGENT_ID, DEFAULT_BUDGET_EXCLUDE_TOOLS, DEFAULT_KEYBINDINGS, DEFAULT_PERSIST_EXCLUDE_TOOLS, DEFAULT_SETTINGS, DEFAULT_THEME, DOING_TASKS_DOCTRINE, type DetectPackageManagerOptions, type DiffLine, type DiffOp, type DiscoverAgentsMdOptions, type DiscoveredMcp, type DiscoveryContextValue, type DiscoveryError, DiscoveryProvider, type DiscoveryResult, type DiscoverySlot, type DiscoverySlotOptions, EMPTY_EXTENSION_REGISTRY, EMPTY_HINTS, type EditDiffDisplay, type EditHunk, type EditHunkSummary, type EditOutcome, type EditOutcomeKind, type EditPayload, type EditSummary, type EnabledAllowlistKey, type EnabledToggleSet, type EnvSectionOptions, type ExtensionApiVersion, type ExtensionBehaviorTransform, type ExtensionCapability, type ExtensionContext, type ExtensionContributions, type ExtensionDefinition, type ExtensionFooterHint, type ExtensionGuiPanel, type ExtensionKeybinding, type ExtensionKeybindingDispatchContext, type ExtensionManifest, type ExtensionMcpConfigTransform, type ExtensionModal, type ExtensionOrderedContribution, type ExtensionPaths, type ExtensionPermission, type ExtensionProviderMiddleware, type ExtensionRegistry, type ExtensionRunTransform, type ExtensionRuntimeEnv, type ExtensionSessionStateSurface, type ExtensionSkillPolicy, type ExtensionSource, type ExtensionStorageScope, type ExtensionStorageSurface, type ExtensionToolCatalogTransform, type ExtensionToolResultMetadataRegistration, FILES_TRIGGER, type FetchOAuthRedirectResult, type FileEntry, GRUVBOX_DARK, GRUVBOX_LIGHT, type GenerateSessionTitleOptions, type GenerateStructuredDataOptions, type GuiContributions, type Hint, type HunkResolution, IDENTITY_PREFIX, IMPLICITLY_SAFE_TOOLS, INTERACTION_GUIDANCE, INTERACTION_GUIDANCE_NO_PROMPTS, type InPlaceUpdateResult, type InlineDiff, type InlineSegment, type InteractionRequest, type InteractionResponse, type InteractionsActions, InteractionsProvider, KEYBINDING_DEFS, KEYBINDING_DEF_BY_ACTION, KEYBINDING_KEY_COL_WIDTH, type KeyAction, type KeyBindingDef, type KeyBindingSection, type KeyBindings, type ListProjectFilesOptions, type LoadedExtension, MARKDOWN_RENDER_CHUNK_TARGET_BYTES, MAX_TRANSCRIPT_EVENTS, type MarkdownSegment, type McpAuthEvent, McpAuthProvider, type McpAuthStateMap, type McpAuthStatus, type McpToolToggleSet, type McpToolsCache, type ModelChainEntry, type ModelInfo, type ModelOption, type ModelUsageSummary, type OAuthCredential, type OAuthFlowOptions, type OAuthPrompt, OUTPUT_RESERVE_TOKENS, type Owner, PLAN_AGENT, PLAN_MODE_DOCTRINE, PLAN_MODE_DOCTRINE_NO_PROMPTS, PRESENT_PLAN_TOOL, type PackageManagerCommand, type PackageManagerId, type ParsedBinding, type PendingInteractionEntry, type PerformInPlaceUpdateOptions, type PerformSelfUpdateOptions, type Picked, type PlanDecision, type PlanPayload, type PlanRequest, type PlanResponse, type PlanStep, type PlatformTarballOptions, type PreviewResult, type ProjectEntry, type ProjectUserPath, type ProjectsFile, type PromptSegment, type PromptSegmentRef, type ProviderAuth, type ProviderCredential, type ProviderDescriptor, type ProviderKey, type ProviderRegistry, type Question, type QuestionChoice, type QuestionPayload, type QuestionRequest, type QuestionResponse, type QuestionType, type RequestApproval, type ResolveStorageDirsOptions, type ResolvedApproval, type ResolvedConfig, type ResolvedExtensionKeybinding, type ResolvedPaths, type RunUpdateCommandOptions, type RunUpdateCommandResult, SETTINGS_CATEGORIES, SETTINGS_CHOICES, SETTINGS_INPUTS, SETTINGS_TOGGLES, SKILLS_TRIGGER, SUBAGENT_GUIDANCE, type SafeModeActions, SafeModeProvider, type Screen, type SelectQuestion, type SelfUpdateResult, type SessionExportAnchor, type SessionExportFormat, type SessionExportTarget, type SessionMeta, type Settings, type SettingsCategory, type SettingsCategoryDescriptor, type SettingsChoice, type SettingsInput, SettingsProvider, type SettingsToggle, type StateStoreApi, type StorageDirs, type StorageMode, type StorageSlot, type StreamBuffer, type StreamEvent, type StreamSource, type StringSettingKey, type SyntaxStyles, type SyntaxTokenStyle, TODOREAD_TOOL, TODOS_METADATA_KEY, TODOWRITE_TOOL, TODO_STATUS_GLYPHS, TODO_WRITE_COUNTS_METADATA_KEY, TOKEN_DISCIPLINE_DOCTRINE, TOOL_DISPLAY, TRANSCRIPT_TRIM_TO_EVENTS, type TextQuestion, type Theme, type ThemeColors, ThemeProvider, type ThemeSelect, type ThemeSurfaces, type TodoItem, type TodoStatus, type TodoTally, type TodosBag, type ToolCallDisplay, type ToolDisplayMeta, type ToolFormatLine, type TranscriptItem, type TuiContributions, type TuiState, type UpdateStatus, type UseUpdateCheckOptions, VAPORWAVE_THEME, type VisibleMcpRow, type Walk, accentColor, addToSafelist, ageString, anthropicDescriptor, applyApiKeyEnv, applyEditPayload, applyInsert, blendHsl, bootProfileEnabled, bootTick, buildBuildSystem, buildContextBreakdown, buildContextualDiff, buildEditOutcomesAnnotation, buildExtensionPreset, buildExtensionRegistry, buildHints, buildLinearRamp, buildMcpServers, buildModelCatalog, buildPlanSystem, buildResumedToolResultsTurn, buildRunModel, buildSkillsConfig, buildToolToggle, buildUnifiedDiff, buildUpdateHint, buildVisibleMcpRows, capTranscriptEvents, cerebrasDescriptor, chainPositionOf, chainsEqual, chatAutoCompactBehavior, chatReferenceTokensForPrompt, chatReferenceTokensFromText, checkForUpdate, chunkMarkdownForRender, cleanTitle, clearMcpToolsCache, clipHintsToWidth, collectReferences, commandSteps, compactPath, compactSummaryEvent, compareSemver, composeExtensionPreset, computeInlineDiff, computeLineDiff, computeTurnAnchors, countNeighbors, createActiveTodoAnchorHooks, createChatTurnsReadTool, createChatsCompletionProvider, createDiscoverySlot, createFileMcpCredentialStore, createFilesCompletionProvider, createInteractionTools, createSkillsCompletionProvider, createStateStore, createTodoTools, credKeyOf, credentialsPath, defaultExtensionScanPaths, defaultMcpsConfigPaths, defaultSkillScanPaths, defineExtension, deleteTurnSafely, deriveSessionTitle, detectAuth, detectLibc, detectPackageManager, discoverAgentsMd, discoverExtensions, discoverProjectMcps, discoverProjectSkills, displayNameFor, disposeExtensionRegistry, effectiveContextWindow, enabledModelOptions, ensureKeybindingsFile, envSection, eventsFromTurns, executeCommand, extractEditPayload, fetchOAuthRedirect, filetypeFromPath, filterChainFallbacks, filterExtensionRegistry, filterModelCatalog, finalizeStreamingMarkdown, finalizeStreamingMarkdownForOwner, findActiveTrigger, findGitRoot, fmtCost, fmtTokens, formatBindingForDisplay, formatDuration, formatPathForCwd, formatTaskStatus, formatTaskSummary, formatToolCall, generateSessionTitle, generateStructuredData, getArchivedTodosForRun, getContextWindow, getMcpAuthStatus, getModelInfo, getSafelist, getTodosForRun, groupBindings, hintsLength, indexOfEntry, indexOfServerRow, inlineLoadedExtension, isEditErrorResult, isInteractionTool, isOnSafelist, isTodoTool, isTurnHighlighted, isVisible, keybindingsPath, lastContextSizeFromTurns, listProjectFiles, listSessionMeta, loadMcpToolsCache, loadState, localDescriptor, makeRequestInteraction, marginTopFor, maskToOutcomeKinds, matchesBinding, matchesSafelistEntry, mcpCredentialsPath, mcpToolsCachePath, mergeApprovalAndBodyOutcomes, mergeContributions, mergeKeybindings, mergeReferences, modelOptionsFor, modelSupportsReasoning, modelsForDescriptor, normalizeMarkdownCodeFences, oauthUsesManualCodePaste, openaiDescriptor, openrouterDescriptor, parentServerName, parseBindingSpec, parseCommandInvocation, parseEditOutcomesFromResult, parseMcpsFile, parseSemver, partitionExtensionCatalog, patchMcpCredential, pendingInteractionsFromTurns, performInPlaceSelfUpdate, performSelfUpdate, piIdOf, pickActiveRunId, previewEditPayload, previewLine, projectUserPaths, projectsFilePath, providerKeySetChanged, pruneTodosByRun, readCredentials, readKeybindings, readKeybindingsRaw, readProjects, readProviderCredential, reduceMcpAuth, refreshMcpToolsCatalog, removeProviderCredential, renderActiveTodoAnchor, renderAgentsMdBlock, renderSession, resolveAgentId, resolveApprovalForPayload, resolveChipColor, resolveConfig, resolveExtensionKeybindings, resolvePlatformPackage, resolveSessionExportTarget, resolveStorageDirs, resolveStoragePaths, resolveTheme, restoreChainFallbacks, restoreModelOptions, rewriteMultiEditHeader, runOAuthLogin, runUpdateCommand, sanitizeModelChain, saveMcpToolsCache, saveState, scanExtensionDirectories, selectActiveTodos, selectableTurnIds, serializeInteractionResponse, setProviderCredential, setTodosForRun, shortChord, shortId, shouldAutoCompact, shouldAutoGenerateTitle, singleAgentRegistry, splitLines, splitMarkdownCodeBlocks, splitPromptSegments, stripEditOutcomesAnnotation, stripJsonComments, stripSpawnTokensLine, subscribeMcpToolsCache, suggestSafelistEntries, sumRunCosts, summarizeEditPayload, summarizeOutcomes, supportsOAuth, titleFromTurns, toggleChainEntry, tokenize, toolCallPreview, toolResultText, truncateTrailing, truncateTurnsAt, tryOpenBrowser, turnAsText, turnContextSize, turnSelectionOwnership, uniqueChatIdsFromReferences, uniqueFilesFromReferences, uniqueSkillNamesFromReferences, updateToolEventOutcomes, usageByModel, useActiveTodos, useColors, useCompletion, useConfig, useDiscovery, useDiscoveryOptional, useEnabledToggleSet, useInteractionsActions, useInteractionsQueue, useMcpAuthDispatch, useMcpAuthState, useMcpToolToggleMap, useMcpToolToggleSet, useSafeModeActions, useSafeModeQueue, useSelectStyle, useSettings, useStreamBuffer, useSurfaces, useSyntaxStyles, useTheme, useUpdateCheck, writeCredentials, writeProjects, writeSessionExport };
2372
2395
  //# sourceMappingURL=chat.d.ts.map
@@ -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,wBAA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;;;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"}
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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4B;AAE5B;;;;;;;;;AAFA,iB8B+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,13 +1,13 @@
1
- import { $ as useMcpAuthState, $n as eventsFromTurns, $t as useUpdateCheck, A as runOAuthLogin, An as pruneTodosByRun, At as DEFAULT_THEME, B as saveMcpToolsCache, Bn as PLAN_MODE_DOCTRINE, Bt as createDiscoverySlot, C as projectsFilePath, Cn as TODO_STATUS_GLYPHS, Ct as SETTINGS_CHOICES, D as formatPathForCwd, Dn as getTodosForRun, E as writeProjects, En as getArchivedTodosForRun, Et as SettingsProvider, F as parseMcpsFile, Fn as COMMUNICATION_DOCTRINE, Ft as GRUVBOX_LIGHT, G as buildVisibleMcpRows, Gn as buildPlanSystem, Gt as useConfig, H as buildToolToggle, Hn as SUBAGENT_GUIDANCE, Ht as useDiscovery, I as clearMcpToolsCache, In as DOING_TASKS_DOCTRINE, It as CATPPUCCIN_FRAPPE, J as createFileMcpCredentialStore, Jn as createChatTurnsReadTool, Jt as useCompletion, K as indexOfServerRow, Kn as envSection, Kt as resolveConfig, L as loadMcpToolsCache, Ln as IDENTITY_PREFIX, Lt as CATPPUCCIN_LATTE, M as buildMcpServers, Mn as setTodosForRun, Mt as resolveTheme, N as defaultMcpsConfigPaths, Nn as useActiveTodos, Nt as VAPORWAVE_THEME, O as fetchOAuthRedirect, On as isTodoTool, Ot as useSettings, P as discoverProjectMcps, Pn as ACTIONS_WITH_CARE_DOCTRINE, Pt as GRUVBOX_DARK, Q as useMcpAuthDispatch, Qn as deriveSessionTitle, Qt as buildUpdateHint, R as mcpToolsCachePath, Rn as INTERACTION_GUIDANCE, Rt as CATPPUCCIN_MACCHIATO, S as matchesSafelistEntry, Sn as TODOWRITE_TOOL, St as SETTINGS_CATEGORIES, T as suggestSafelistEntries, Tn as createTodoTools, Tt as SETTINGS_TOGGLES, U as useMcpToolToggleMap, Un as TOKEN_DISCIPLINE_DOCTRINE, Ut as useDiscoveryOptional, V as subscribeMcpToolsCache, Vn as PLAN_MODE_DOCTRINE_NO_PROMPTS, Vt as DiscoveryProvider, W as useMcpToolToggleSet, Wn as buildBuildSystem, Wt as ConfigProvider, X as patchMcpCredential, Xn as compactSummaryEvent, Xt as bootProfileEnabled, Y as mcpCredentialsPath, Yt as tryOpenBrowser, Z as McpAuthProvider, Zn as createStateStore, Zt as bootTick, _ as useSafeModeQueue, _n as accentColor, _t as buildHints, a as useSurfaces, an as performInPlaceSelfUpdate, at as buildResumedToolResultsTurn, b as getSafelist, bn as TODOREAD_TOOL, bt as useEnabledToggleSet, c as useStreamBuffer, cn as chatAutoCompactBehavior, cr as titleFromTurns, ct as makeRequestInteraction, d as discoverProjectSkills, dn as BUILD_AGENT, dr as updateToolEventOutcomes, dt as useInteractionsActions, en as checkForUpdate, er as lastContextSizeFromTurns, et as getMcpAuthStatus, f as renderSession, fn as BUILTIN_AGENTS, ft as useInteractionsQueue, g as useSafeModeActions, gn as PLAN_AGENT, gt as truncateTrailing, h as SafeModeProvider, hn as DEFAULT_PERSIST_EXCLUDE_TOOLS, ht as hintsLength, i as useSelectStyle, in as parseSemver, ir as saveState, it as PRESENT_PLAN_TOOL, j as supportsOAuth, jn as selectActiveTodos, jt as resolveChipColor, k as oauthUsesManualCodePaste, kn as pickActiveRunId, kt as BUILTIN_THEMES, l as buildSkillsConfig, ln as discoverAgentsMd, lr as toolCallPreview, lt as pendingInteractionsFromTurns, m as writeSessionExport, mn as DEFAULT_BUDGET_EXCLUDE_TOOLS, mt as clipHintsToWidth, n as ThemeProvider, nn as detectLibc, nr as loadState, nt as ASK_USER_TOOL, o as useSyntaxStyles, on as performSelfUpdate, or as stripSpawnTokensLine, ot as createInteractionTools, p as resolveSessionExportTarget, pn as DEFAULT_AGENT_ID, pt as EMPTY_HINTS, q as parentServerName, qn as chatReferenceTokensForPrompt, qt as resolveStoragePaths, r as useColors, rn as detectPackageManager, rr as marginTopFor, rt as InteractionsProvider, s as useTheme, sn as resolvePlatformPackage, sr as sumRunCosts, st as isInteractionTool, t as computeTurnAnchors, tn as compareSemver, tr as listSessionMeta, tt as reduceMcpAuth, u as defaultSkillScanPaths, un as renderAgentsMdBlock, ur as toolResultText, ut as serializeInteractionResponse, v as IMPLICITLY_SAFE_TOOLS, vn as resolveAgentId, vt as shortChord, w as readProjects, wn as TODO_WRITE_COUNTS_METADATA_KEY, x as isOnSafelist, xn as TODOS_METADATA_KEY, xt as DEFAULT_SETTINGS, y as addToSafelist, yn as singleAgentRegistry, yt as listProjectFiles, z as refreshMcpToolsCatalog, zn as INTERACTION_GUIDANCE_NO_PROMPTS, zt as CATPPUCCIN_MOCHA } from "./transcript-anchors-DSRPWjiH.js";
2
- import { $ as filterExtensionRegistry, At as DEFAULT_KEYBINDINGS, Bt as parseBindingSpec, Ft as formatBindingForDisplay, Ht as readKeybindingsRaw, I as EMPTY_EXTENSION_REGISTRY, It as groupBindings, Jt as inlineLoadedExtension, Kt as defaultExtensionScanPaths, Lt as keybindingsPath, Mt as KEYBINDING_DEF_BY_ACTION, Nt as KEYBINDING_KEY_COL_WIDTH, Pt as ensureKeybindingsFile, Q as disposeExtensionRegistry, Qt as defineExtension, Rt as matchesBinding, Ut as resolveExtensionKeybindings, Vt as readKeybindings, Wt as stripJsonComments, X as buildExtensionRegistry, Y as buildExtensionPreset, Z as composeExtensionPreset, Zt as scanExtensionDirectories, cn as effectiveContextWindow, et as mergeContributions, jt as KEYBINDING_DEFS, kt as resolveStorageDirs, ln as shouldAutoCompact, on as AUTO_COMPACT_MIN_GROWTH_FRACTION, qt as discoverExtensions, sn as OUTPUT_RESERVE_TOKENS, tt as partitionExtensionCatalog, zt as mergeKeybindings } from "./agent-DkSmGkDM.js";
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-CBaghfwl.js";
2
+ import { $ as composeExtensionPreset, $t as inlineLoadedExtension, Bt as formatBindingForDisplay, Ft as DEFAULT_KEYBINDINGS, Gt as parseBindingSpec, Ht as keybindingsPath, It as KEYBINDING_DEFS, Jt as resolveExtensionKeybindings, Kt as readKeybindings, Lt as KEYBINDING_DEF_BY_ACTION, Pt as resolveStorageDirs, Q as buildExtensionRegistry, Qt as discoverExtensions, R as EMPTY_EXTENSION_REGISTRY, Rt as KEYBINDING_KEY_COL_WIDTH, Ut as matchesBinding, Vt as groupBindings, Wt as mergeKeybindings, Yt as stripJsonComments, Z as buildExtensionPreset, Zt as defaultExtensionScanPaths, dn as AUTO_COMPACT_MIN_GROWTH_FRACTION, et as disposeExtensionRegistry, fn as OUTPUT_RESERVE_TOKENS, mn as shouldAutoCompact, nn as scanExtensionDirectories, nt as mergeContributions, pn as effectiveContextWindow, qt as readKeybindingsRaw, rn as defineExtension, rt as partitionExtensionCatalog, tt as filterExtensionRegistry, zt as ensureKeybindingsFile } from "./agent-Bq32ZJSo.js";
3
3
  import { t as buildContextBreakdown } from "./context-breakdown-Dzo25N45.js";
4
- import { a as formatTaskStatus, c as shortId, i as formatDuration, n as compactPath, o as formatTaskSummary, r as fmtTokens, s as previewLine, t as ageString } from "./format-BNOXpl-1.js";
5
- import { M as findGitRoot, j as projectUserPaths } from "./resolve-Cr8JSL_O.js";
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";
5
+ import { M as findGitRoot, j as projectUserPaths } from "./resolve-CC8Lmwcj.js";
6
6
  import { appendDynamicSection } from "./prompt.js";
7
7
  import { d as executeCommand, f as parseCommandInvocation, i as shouldAutoGenerateTitle, n as cleanTitle, r as generateSessionTitle, t as generateStructuredData, u as commandSteps } from "./generate-data-WL_yGVL6.js";
8
8
  import { a as mergeReferences, n as collectReferences, r as findActiveTrigger, t as applyInsert } from "./completion-core-CXYSVhZo.js";
9
- import { C as restoreModelOptions, S as piIdOf, _ as modelOptionsFor, a as readProviderCredential, b as openaiDescriptor, c as writeCredentials, d as cerebrasDescriptor, f as credKeyOf, g as localDescriptor, h as getModelInfo, i as readCredentials, l as BUILTIN_PROVIDERS, m as getContextWindow, n as applyApiKeyEnv, o as removeProviderCredential, p as enabledModelOptions, r as credentialsPath, s as setProviderCredential, t as detectAuth, u as anthropicDescriptor, v as modelSupportsReasoning, x as openrouterDescriptor, y as modelsForDescriptor } from "./auth-BDSu_0t3.js";
10
- import { $ as rewriteMultiEditHeader, A as buildLinearRamp, B as computeInlineDiff, C as SKILLS_TRIGGER, D as createFilesCompletionProvider, E as FILES_TRIGGER, F as selectableTurnIds, G as splitLines, H as extractEditPayload, I as turnSelectionOwnership, J as buildEditOutcomesAnnotation, K as summarizeEditPayload, L as applyEditPayload, M as isEditErrorResult, N as isTurnHighlighted, O as uniqueFilesFromReferences, P as isVisible, Q as resolveApprovalForPayload, R as buildContextualDiff, S as splitMarkdownCodeBlocks, T as uniqueSkillNamesFromReferences, U as filetypeFromPath, V as computeLineDiff, W as previewEditPayload, X as mergeApprovalAndBodyOutcomes, Y as maskToOutcomeKinds, Z as parseEditOutcomesFromResult, _ as filterModelCatalog, a as TOOL_DISPLAY, at as uniqueChatIdsFromReferences, b as chunkMarkdownForRender, c as MAX_TRANSCRIPT_EVENTS, d as finalizeStreamingMarkdown, et as stripEditOutcomesAnnotation, f as finalizeStreamingMarkdownForOwner, g as buildModelCatalog, h as splitPromptSegments, i as turnAsText, it as createChatsCompletionProvider, k as blendHsl, l as TRANSCRIPT_TRIM_TO_EVENTS, m as turnContextSize, n as deleteTurnSafely, nt as CHATS_TRIGGER, o as displayNameFor, q as tokenize, r as truncateTurnsAt, rt as chatReferenceTokensFromText, s as formatToolCall, t as countNeighbors, tt as summarizeOutcomes, u as capTranscriptEvents, v as indexOfEntry, w as createSkillsCompletionProvider, x as normalizeMarkdownCodeFences, y as MARKDOWN_RENDER_CHUNK_TARGET_BYTES, z as buildUnifiedDiff } from "./turn-operations-Dq9Kx7m2.js";
9
+ import { C as restoreModelOptions, S as piIdOf, _ as modelOptionsFor, a as readProviderCredential, b as openaiDescriptor, c as writeCredentials, d as cerebrasDescriptor, f as credKeyOf, g as localDescriptor, h as getModelInfo, i as readCredentials, l as BUILTIN_PROVIDERS, m as getContextWindow, n as applyApiKeyEnv, o as removeProviderCredential, p as enabledModelOptions, r as credentialsPath, s as setProviderCredential, t as detectAuth, u as anthropicDescriptor, v as modelSupportsReasoning, x as openrouterDescriptor, y as modelsForDescriptor } from "./auth-D5FfJtLf.js";
10
+ import { $ as rewriteMultiEditHeader, A as buildLinearRamp, B as computeInlineDiff, C as SKILLS_TRIGGER, D as createFilesCompletionProvider, E as FILES_TRIGGER, F as selectableTurnIds, G as splitLines, H as extractEditPayload, I as turnSelectionOwnership, J as buildEditOutcomesAnnotation, K as summarizeEditPayload, L as applyEditPayload, M as isEditErrorResult, N as isTurnHighlighted, O as uniqueFilesFromReferences, P as isVisible, Q as resolveApprovalForPayload, R as buildContextualDiff, S as splitMarkdownCodeBlocks, T as uniqueSkillNamesFromReferences, U as filetypeFromPath, V as computeLineDiff, W as previewEditPayload, X as mergeApprovalAndBodyOutcomes, Y as maskToOutcomeKinds, Z as parseEditOutcomesFromResult, _ as filterModelCatalog, a as TOOL_DISPLAY, at as uniqueChatIdsFromReferences, b as chunkMarkdownForRender, c as MAX_TRANSCRIPT_EVENTS, d as finalizeStreamingMarkdown, et as stripEditOutcomesAnnotation, f as finalizeStreamingMarkdownForOwner, g as buildModelCatalog, h as splitPromptSegments, i as turnAsText, it as createChatsCompletionProvider, k as blendHsl, l as TRANSCRIPT_TRIM_TO_EVENTS, m as turnContextSize, n as deleteTurnSafely, nt as CHATS_TRIGGER, o as displayNameFor, q as tokenize, r as truncateTurnsAt, rt as chatReferenceTokensFromText, s as formatToolCall, t as countNeighbors, tt as summarizeOutcomes, u as capTranscriptEvents, v as indexOfEntry, w as createSkillsCompletionProvider, x as normalizeMarkdownCodeFences, y as MARKDOWN_RENDER_CHUNK_TARGET_BYTES, z as buildUnifiedDiff } from "./turn-operations-CEt_l3fy.js";
11
11
  //#region src/chat/auto-update-cli.ts
12
12
  const UPGRADE_HELP = `Usage: zidane upgrade [options]
13
13
 
@@ -230,6 +230,6 @@ function createActiveTodoAnchorHooks(options = {}) {
230
230
  } };
231
231
  }
232
232
  //#endregion
233
- export { ACTIONS_WITH_CARE_DOCTRINE, ASK_USER_TOOL, AUTO_COMPACT_MIN_GROWTH_FRACTION, BUILD_AGENT, BUILTIN_AGENTS, BUILTIN_PROVIDERS, BUILTIN_THEMES, CATPPUCCIN_FRAPPE, CATPPUCCIN_LATTE, CATPPUCCIN_MACCHIATO, CATPPUCCIN_MOCHA, CHATS_TRIGGER, COMMUNICATION_DOCTRINE, ConfigProvider, DEFAULT_AGENT_ID, DEFAULT_BUDGET_EXCLUDE_TOOLS, DEFAULT_KEYBINDINGS, DEFAULT_PERSIST_EXCLUDE_TOOLS, DEFAULT_SETTINGS, DEFAULT_THEME, DOING_TASKS_DOCTRINE, DiscoveryProvider, EMPTY_EXTENSION_REGISTRY, EMPTY_HINTS, FILES_TRIGGER, GRUVBOX_DARK, GRUVBOX_LIGHT, IDENTITY_PREFIX, IMPLICITLY_SAFE_TOOLS, INTERACTION_GUIDANCE, INTERACTION_GUIDANCE_NO_PROMPTS, InteractionsProvider, KEYBINDING_DEFS, KEYBINDING_DEF_BY_ACTION, KEYBINDING_KEY_COL_WIDTH, MARKDOWN_RENDER_CHUNK_TARGET_BYTES, MAX_TRANSCRIPT_EVENTS, McpAuthProvider, OUTPUT_RESERVE_TOKENS, PLAN_AGENT, PLAN_MODE_DOCTRINE, PLAN_MODE_DOCTRINE_NO_PROMPTS, PRESENT_PLAN_TOOL, SETTINGS_CATEGORIES, SETTINGS_CHOICES, SETTINGS_TOGGLES, SKILLS_TRIGGER, SUBAGENT_GUIDANCE, SafeModeProvider, SettingsProvider, TODOREAD_TOOL, TODOS_METADATA_KEY, TODOWRITE_TOOL, TODO_STATUS_GLYPHS, TODO_WRITE_COUNTS_METADATA_KEY, TOKEN_DISCIPLINE_DOCTRINE, TOOL_DISPLAY, TRANSCRIPT_TRIM_TO_EVENTS, ThemeProvider, VAPORWAVE_THEME, accentColor, addToSafelist, ageString, anthropicDescriptor, applyApiKeyEnv, applyEditPayload, applyInsert, blendHsl, bootProfileEnabled, bootTick, buildBuildSystem, buildContextBreakdown, buildContextualDiff, buildEditOutcomesAnnotation, buildExtensionPreset, buildExtensionRegistry, buildHints, buildLinearRamp, buildMcpServers, buildModelCatalog, buildPlanSystem, buildResumedToolResultsTurn, buildSkillsConfig, buildToolToggle, buildUnifiedDiff, buildUpdateHint, buildVisibleMcpRows, capTranscriptEvents, cerebrasDescriptor, chatAutoCompactBehavior, chatReferenceTokensForPrompt, chatReferenceTokensFromText, checkForUpdate, chunkMarkdownForRender, cleanTitle, clearMcpToolsCache, clipHintsToWidth, collectReferences, commandSteps, compactPath, compactSummaryEvent, compareSemver, composeExtensionPreset, computeInlineDiff, computeLineDiff, computeTurnAnchors, countNeighbors, createActiveTodoAnchorHooks, createChatTurnsReadTool, createChatsCompletionProvider, createDiscoverySlot, createFileMcpCredentialStore, createFilesCompletionProvider, createInteractionTools, createSkillsCompletionProvider, createStateStore, createTodoTools, credKeyOf, credentialsPath, defaultExtensionScanPaths, defaultMcpsConfigPaths, defaultSkillScanPaths, defineExtension, deleteTurnSafely, deriveSessionTitle, detectAuth, detectLibc, detectPackageManager, discoverAgentsMd, discoverExtensions, discoverProjectMcps, discoverProjectSkills, displayNameFor, disposeExtensionRegistry, effectiveContextWindow, enabledModelOptions, ensureKeybindingsFile, envSection, eventsFromTurns, executeCommand, extractEditPayload, fetchOAuthRedirect, filetypeFromPath, filterExtensionRegistry, filterModelCatalog, finalizeStreamingMarkdown, finalizeStreamingMarkdownForOwner, findActiveTrigger, findGitRoot, fmtTokens, formatBindingForDisplay, formatDuration, formatPathForCwd, formatTaskStatus, formatTaskSummary, formatToolCall, generateSessionTitle, generateStructuredData, getArchivedTodosForRun, getContextWindow, getMcpAuthStatus, getModelInfo, getSafelist, getTodosForRun, groupBindings, hintsLength, indexOfEntry, indexOfServerRow, inlineLoadedExtension, isEditErrorResult, isInteractionTool, isOnSafelist, isTodoTool, isTurnHighlighted, isVisible, keybindingsPath, lastContextSizeFromTurns, listProjectFiles, listSessionMeta, loadMcpToolsCache, loadState, localDescriptor, makeRequestInteraction, marginTopFor, maskToOutcomeKinds, matchesBinding, matchesSafelistEntry, mcpCredentialsPath, mcpToolsCachePath, mergeApprovalAndBodyOutcomes, mergeContributions, mergeKeybindings, mergeReferences, modelOptionsFor, modelSupportsReasoning, modelsForDescriptor, normalizeMarkdownCodeFences, oauthUsesManualCodePaste, openaiDescriptor, openrouterDescriptor, parentServerName, parseBindingSpec, parseCommandInvocation, parseEditOutcomesFromResult, parseMcpsFile, parseSemver, partitionExtensionCatalog, patchMcpCredential, pendingInteractionsFromTurns, performInPlaceSelfUpdate, performSelfUpdate, piIdOf, pickActiveRunId, previewEditPayload, previewLine, projectUserPaths, projectsFilePath, pruneTodosByRun, readCredentials, readKeybindings, readKeybindingsRaw, readProjects, readProviderCredential, reduceMcpAuth, refreshMcpToolsCatalog, removeProviderCredential, renderActiveTodoAnchor, renderAgentsMdBlock, renderSession, resolveAgentId, resolveApprovalForPayload, resolveChipColor, resolveConfig, resolveExtensionKeybindings, resolvePlatformPackage, resolveSessionExportTarget, resolveStorageDirs, resolveStoragePaths, resolveTheme, restoreModelOptions, rewriteMultiEditHeader, runOAuthLogin, runUpdateCommand, saveMcpToolsCache, saveState, scanExtensionDirectories, selectActiveTodos, selectableTurnIds, serializeInteractionResponse, setProviderCredential, setTodosForRun, shortChord, shortId, shouldAutoCompact, shouldAutoGenerateTitle, singleAgentRegistry, splitLines, splitMarkdownCodeBlocks, splitPromptSegments, stripEditOutcomesAnnotation, stripJsonComments, stripSpawnTokensLine, subscribeMcpToolsCache, suggestSafelistEntries, sumRunCosts, summarizeEditPayload, summarizeOutcomes, supportsOAuth, titleFromTurns, tokenize, toolCallPreview, toolResultText, truncateTrailing, truncateTurnsAt, tryOpenBrowser, turnAsText, turnContextSize, turnSelectionOwnership, uniqueChatIdsFromReferences, uniqueFilesFromReferences, uniqueSkillNamesFromReferences, updateToolEventOutcomes, useActiveTodos, useColors, useCompletion, useConfig, useDiscovery, useDiscoveryOptional, useEnabledToggleSet, useInteractionsActions, useInteractionsQueue, useMcpAuthDispatch, useMcpAuthState, useMcpToolToggleMap, useMcpToolToggleSet, useSafeModeActions, useSafeModeQueue, useSelectStyle, useSettings, useStreamBuffer, useSurfaces, useSyntaxStyles, useTheme, useUpdateCheck, writeCredentials, writeProjects, writeSessionExport };
233
+ export { ACTIONS_WITH_CARE_DOCTRINE, ASK_USER_TOOL, AUTO_COMPACT_MIN_GROWTH_FRACTION, BUILD_AGENT, BUILTIN_AGENTS, BUILTIN_PROVIDERS, BUILTIN_THEMES, CATPPUCCIN_FRAPPE, CATPPUCCIN_LATTE, CATPPUCCIN_MACCHIATO, CATPPUCCIN_MOCHA, CHATS_TRIGGER, COMMUNICATION_DOCTRINE, ConfigProvider, DEFAULT_AGENT_ID, DEFAULT_BUDGET_EXCLUDE_TOOLS, DEFAULT_KEYBINDINGS, DEFAULT_PERSIST_EXCLUDE_TOOLS, DEFAULT_SETTINGS, DEFAULT_THEME, DOING_TASKS_DOCTRINE, DiscoveryProvider, EMPTY_EXTENSION_REGISTRY, EMPTY_HINTS, FILES_TRIGGER, GRUVBOX_DARK, GRUVBOX_LIGHT, IDENTITY_PREFIX, IMPLICITLY_SAFE_TOOLS, INTERACTION_GUIDANCE, INTERACTION_GUIDANCE_NO_PROMPTS, InteractionsProvider, KEYBINDING_DEFS, KEYBINDING_DEF_BY_ACTION, KEYBINDING_KEY_COL_WIDTH, MARKDOWN_RENDER_CHUNK_TARGET_BYTES, MAX_TRANSCRIPT_EVENTS, McpAuthProvider, OUTPUT_RESERVE_TOKENS, PLAN_AGENT, PLAN_MODE_DOCTRINE, PLAN_MODE_DOCTRINE_NO_PROMPTS, PRESENT_PLAN_TOOL, SETTINGS_CATEGORIES, SETTINGS_CHOICES, SETTINGS_INPUTS, SETTINGS_TOGGLES, SKILLS_TRIGGER, SUBAGENT_GUIDANCE, SafeModeProvider, SettingsProvider, TODOREAD_TOOL, TODOS_METADATA_KEY, TODOWRITE_TOOL, TODO_STATUS_GLYPHS, TODO_WRITE_COUNTS_METADATA_KEY, TOKEN_DISCIPLINE_DOCTRINE, TOOL_DISPLAY, TRANSCRIPT_TRIM_TO_EVENTS, ThemeProvider, VAPORWAVE_THEME, accentColor, addToSafelist, ageString, anthropicDescriptor, applyApiKeyEnv, applyEditPayload, applyInsert, blendHsl, bootProfileEnabled, bootTick, buildBuildSystem, buildContextBreakdown, buildContextualDiff, buildEditOutcomesAnnotation, buildExtensionPreset, buildExtensionRegistry, buildHints, buildLinearRamp, buildMcpServers, buildModelCatalog, buildPlanSystem, buildResumedToolResultsTurn, buildRunModel, buildSkillsConfig, buildToolToggle, buildUnifiedDiff, buildUpdateHint, buildVisibleMcpRows, capTranscriptEvents, cerebrasDescriptor, chainPositionOf, chainsEqual, chatAutoCompactBehavior, chatReferenceTokensForPrompt, chatReferenceTokensFromText, checkForUpdate, chunkMarkdownForRender, cleanTitle, clearMcpToolsCache, clipHintsToWidth, collectReferences, commandSteps, compactPath, compactSummaryEvent, compareSemver, composeExtensionPreset, computeInlineDiff, computeLineDiff, computeTurnAnchors, countNeighbors, createActiveTodoAnchorHooks, createChatTurnsReadTool, createChatsCompletionProvider, createDiscoverySlot, createFileMcpCredentialStore, createFilesCompletionProvider, createInteractionTools, createSkillsCompletionProvider, createStateStore, createTodoTools, credKeyOf, credentialsPath, defaultExtensionScanPaths, defaultMcpsConfigPaths, defaultSkillScanPaths, defineExtension, deleteTurnSafely, deriveSessionTitle, detectAuth, detectLibc, detectPackageManager, discoverAgentsMd, discoverExtensions, discoverProjectMcps, discoverProjectSkills, displayNameFor, disposeExtensionRegistry, effectiveContextWindow, enabledModelOptions, ensureKeybindingsFile, envSection, eventsFromTurns, executeCommand, extractEditPayload, fetchOAuthRedirect, filetypeFromPath, filterChainFallbacks, filterExtensionRegistry, filterModelCatalog, finalizeStreamingMarkdown, finalizeStreamingMarkdownForOwner, findActiveTrigger, findGitRoot, fmtCost, fmtTokens, formatBindingForDisplay, formatDuration, formatPathForCwd, formatTaskStatus, formatTaskSummary, formatToolCall, generateSessionTitle, generateStructuredData, getArchivedTodosForRun, getContextWindow, getMcpAuthStatus, getModelInfo, getSafelist, getTodosForRun, groupBindings, hintsLength, indexOfEntry, indexOfServerRow, inlineLoadedExtension, isEditErrorResult, isInteractionTool, isOnSafelist, isTodoTool, isTurnHighlighted, isVisible, keybindingsPath, lastContextSizeFromTurns, listProjectFiles, listSessionMeta, loadMcpToolsCache, loadState, localDescriptor, makeRequestInteraction, marginTopFor, maskToOutcomeKinds, matchesBinding, matchesSafelistEntry, mcpCredentialsPath, mcpToolsCachePath, mergeApprovalAndBodyOutcomes, mergeContributions, mergeKeybindings, mergeReferences, modelOptionsFor, modelSupportsReasoning, modelsForDescriptor, normalizeMarkdownCodeFences, oauthUsesManualCodePaste, openaiDescriptor, openrouterDescriptor, parentServerName, parseBindingSpec, parseCommandInvocation, parseEditOutcomesFromResult, parseMcpsFile, parseSemver, partitionExtensionCatalog, patchMcpCredential, pendingInteractionsFromTurns, performInPlaceSelfUpdate, performSelfUpdate, piIdOf, pickActiveRunId, previewEditPayload, previewLine, projectUserPaths, projectsFilePath, providerKeySetChanged, pruneTodosByRun, readCredentials, readKeybindings, readKeybindingsRaw, readProjects, readProviderCredential, reduceMcpAuth, refreshMcpToolsCatalog, removeProviderCredential, renderActiveTodoAnchor, renderAgentsMdBlock, renderSession, resolveAgentId, resolveApprovalForPayload, resolveChipColor, resolveConfig, resolveExtensionKeybindings, resolvePlatformPackage, resolveSessionExportTarget, resolveStorageDirs, resolveStoragePaths, resolveTheme, restoreChainFallbacks, restoreModelOptions, rewriteMultiEditHeader, runOAuthLogin, runUpdateCommand, sanitizeModelChain, saveMcpToolsCache, saveState, scanExtensionDirectories, selectActiveTodos, selectableTurnIds, serializeInteractionResponse, setProviderCredential, setTodosForRun, shortChord, shortId, shouldAutoCompact, shouldAutoGenerateTitle, singleAgentRegistry, splitLines, splitMarkdownCodeBlocks, splitPromptSegments, stripEditOutcomesAnnotation, stripJsonComments, stripSpawnTokensLine, subscribeMcpToolsCache, suggestSafelistEntries, sumRunCosts, summarizeEditPayload, summarizeOutcomes, supportsOAuth, titleFromTurns, toggleChainEntry, tokenize, toolCallPreview, toolResultText, truncateTrailing, truncateTurnsAt, tryOpenBrowser, turnAsText, turnContextSize, turnSelectionOwnership, uniqueChatIdsFromReferences, uniqueFilesFromReferences, uniqueSkillNamesFromReferences, updateToolEventOutcomes, usageByModel, useActiveTodos, useColors, useCompletion, useConfig, useDiscovery, useDiscoveryOptional, useEnabledToggleSet, useInteractionsActions, useInteractionsQueue, useMcpAuthDispatch, useMcpAuthState, useMcpToolToggleMap, useMcpToolToggleSet, useSafeModeActions, useSafeModeQueue, useSelectStyle, useSettings, useStreamBuffer, useSurfaces, useSyntaxStyles, useTheme, useUpdateCheck, writeCredentials, writeProjects, writeSessionExport };
234
234
 
235
235
  //# sourceMappingURL=chat.js.map
package/dist/chat.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"chat.js","names":[],"sources":["../src/chat/auto-update-cli.ts","../src/chat/todo-anchor.ts"],"sourcesContent":["// ---------------------------------------------------------------------------\n// `zidane upgrade` subcommand — drop-in handler for consumer CLIs.\n//\n// Wraps `checkForUpdate` + `performSelfUpdate` + `performInPlaceSelfUpdate`\n// into a single function the host's `cli.ts` can call. The behavior layers:\n//\n// - no flags → check + run the package manager\n// - `--check` → check only, print the latest version + bail\n// - `--in-place` → skip the PM, download + atomic-rename the binary\n// - `--dry-run` → resolve everything but don't actually swap\n// - `--channel <tag>` → override dist-tag (defaults to `'latest'`)\n// - `--registry <url>`→ override the npm registry URL\n//\n// Pure I/O — writes to stdout/stderr, returns the exit code the caller\n// should pass to `process.exit`. No React, no OpenTUI; safe to call\n// before / instead of `runTui`.\n// ---------------------------------------------------------------------------\n\nimport {\n checkForUpdate,\n compareSemver,\n detectPackageManager,\n performInPlaceSelfUpdate,\n performSelfUpdate,\n resolvePlatformPackage,\n} from './auto-update'\n\nexport interface RunUpdateCommandOptions {\n /** Top-level package the user installs (e.g. `'zidane-tui'`). */\n packageName: string\n /** Inlined at build time. */\n currentVersion: string\n /** Args passed after `upgrade` (typically `process.argv.slice(3)`). */\n argv: readonly string[]\n /** Where to persist the TTL cache. Usually `paths.userDir`. */\n cacheDir?: string\n /** Default channel when `--channel` isn't passed. Defaults to `'latest'`. */\n defaultChannel?: string\n /**\n * Override the platform-package-name prefix used by `--in-place`.\n * Defaults to `'<packageName>-'`, matching the `zidane-tui-<key>` layout.\n */\n platformPackagePrefix?: string\n /** Override registry. Defaults to npmjs. */\n registry?: string\n /** stdout. Defaults to `process.stdout`. */\n stdout?: NodeJS.WritableStream\n /** stderr. Defaults to `process.stderr`. */\n stderr?: NodeJS.WritableStream\n}\n\nexport interface RunUpdateCommandResult {\n exitCode: number\n}\n\nconst UPGRADE_HELP = `Usage: zidane upgrade [options]\n\nUpdate the zidane CLI to the latest release.\n\nOptions:\n --check Print the latest version and exit (no install).\n --in-place Download the platform binary directly from npm\n and atomic-rename over the running binary.\n Skips the package manager. Refused on Volta.\n --dry-run Resolve everything but don't actually install.\n --channel <tag> dist-tag to query (default: latest).\n --registry <url> Override the npm registry.\n --package-manager <pm> Force npm | pnpm | yarn | bun | volta.\n --force Run the install even if we're already on latest,\n or the registry check failed.\n -h, --help Print this help.\n\nEnvironment:\n NO_UPDATE_NOTIFIER Silence the background check (set to \"1\").\n ZIDANE_NO_UPDATE Same, project-specific.\n`\n\n/**\n * Run the `upgrade` subcommand. Exit code contract:\n * - `0` — update succeeded, `--check` reported no update, or `--check`\n * reported an update (informational only).\n * - `1` — update failed (PM exit non-zero, in-place download failed,\n * registry returned non-2xx).\n * - `2` — argv parse error (unknown flag).\n */\nexport async function runUpdateCommand(options: RunUpdateCommandOptions): Promise<RunUpdateCommandResult> {\n const out = options.stdout ?? process.stdout\n const err = options.stderr ?? process.stderr\n const parsed = parseArgs(options.argv)\n if (parsed.kind === 'error') {\n err.write(`zidane upgrade: ${parsed.message}\\n`)\n err.write(UPGRADE_HELP)\n return { exitCode: 2 }\n }\n if (parsed.help) {\n out.write(UPGRADE_HELP)\n return { exitCode: 0 }\n }\n\n const channel = parsed.channel ?? options.defaultChannel ?? 'latest'\n const registry = parsed.registry ?? options.registry\n\n // Always force the check — user typed `upgrade`, env opt-outs shouldn't\n // get in the way.\n const status = await checkForUpdate({\n packageName: options.packageName,\n currentVersion: options.currentVersion,\n channel,\n registry,\n cacheDir: options.cacheDir,\n force: true,\n timeoutMs: 8000,\n })\n\n // `--check` is informational — degrade gracefully on registry errors\n // (offline laptop, restricted proxy) and exit 0 so the user can script\n // around it without quoting tricks.\n if (parsed.check) {\n if (status.source === 'error') {\n err.write(`Could not check \\`${channel}\\` (${status.error ?? 'unknown error'}). Current: v${options.currentVersion}.\\n`)\n return { exitCode: 0 }\n }\n if (!status.latest) {\n err.write(`Could not determine latest version on \\`${channel}\\`. Current: v${options.currentVersion}.\\n`)\n return { exitCode: 0 }\n }\n const cmp = compareSemver(status.latest, options.currentVersion)\n if (cmp > 0)\n out.write(`v${status.latest} is available on \\`${channel}\\` (current: v${options.currentVersion}).\\n`)\n else\n out.write(`Already on v${options.currentVersion} (latest on \\`${channel}\\` is v${status.latest}).\\n`)\n return { exitCode: 0 }\n }\n\n // Install path — a registry error means we don't KNOW if we need an\n // update. Refuse to spawn the PM blindly unless the user explicitly\n // asks via `--force`.\n if (status.source === 'error') {\n err.write(`zidane upgrade: registry check failed (${status.error ?? 'unknown error'})\\n`)\n if (!parsed.force) {\n err.write('Pass --force to attempt the install anyway.\\n')\n return { exitCode: 1 }\n }\n }\n\n if (status.latest && !parsed.force) {\n const cmp = compareSemver(status.latest, options.currentVersion)\n if (cmp <= 0) {\n out.write(`Already on v${options.currentVersion} (latest on \\`${channel}\\` is v${status.latest}).\\n`)\n return { exitCode: 0 }\n }\n }\n\n // ---------------------------------------------------------------------\n // In-place path\n // ---------------------------------------------------------------------\n\n if (parsed.inPlace) {\n const platformPkg = resolvePlatformPackage({\n prefix: options.platformPackagePrefix ?? `${options.packageName}-`,\n })\n if (!platformPkg) {\n err.write(`No prebuilt binary for ${process.platform}/${process.arch}. Run \\`${options.packageName}-upgrade\\` via your package manager instead.\\n`)\n return { exitCode: 1 }\n }\n out.write(`Downloading ${platformPkg}@${channel}…\\n`)\n const result = await performInPlaceSelfUpdate({\n packageName: platformPkg,\n channel,\n registry,\n dryRun: parsed.dryRun,\n })\n if (result.status === 'success') {\n const verb = parsed.dryRun ? 'Would install' : 'Installed'\n out.write(`${verb} v${result.installedVersion} at ${result.binaryPath}.\\n`)\n return { exitCode: 0 }\n }\n err.write(`In-place update failed: ${result.reason ?? 'unknown error'}\\n`)\n if (result.status === 'refused')\n err.write('Falling back to package-manager path (drop --in-place to retry).\\n')\n return { exitCode: 1 }\n }\n\n // ---------------------------------------------------------------------\n // Package-manager path\n // ---------------------------------------------------------------------\n\n const detected = detectPackageManager({ packageName: options.packageName, channel })\n if (detected.note)\n out.write(`${detected.note}\\n`)\n out.write(`Running: ${detected.argv.join(' ')}\\n`)\n if (parsed.dryRun)\n return { exitCode: 0 }\n\n const result = await performSelfUpdate({\n packageName: options.packageName,\n channel,\n packageManager: parsed.packageManager ?? 'auto',\n })\n if (result.spawnError) {\n err.write(`Failed to launch \\`${result.command.argv[0]}\\`: ${result.spawnError}\\n`)\n err.write('Is the package manager installed and on $PATH?\\n')\n return { exitCode: 1 }\n }\n return { exitCode: result.exitCode ?? 1 }\n}\n\n// ---------------------------------------------------------------------------\n// Argv parser — minimal, just enough to drop into the consumer's `cli.ts`.\n// We deliberately don't pull in commander/yargs for a 5-flag surface.\n// ---------------------------------------------------------------------------\n\ntype ParseResult\n = | {\n kind: 'ok'\n check: boolean\n inPlace: boolean\n dryRun: boolean\n force: boolean\n help: boolean\n channel?: string\n registry?: string\n packageManager?: 'npm' | 'pnpm' | 'yarn' | 'bun' | 'volta'\n }\n | { kind: 'error', message: string }\n\nfunction parseArgs(argv: readonly string[]): ParseResult {\n let check = false\n let inPlace = false\n let dryRun = false\n let force = false\n let help = false\n let channel: string | undefined\n let registry: string | undefined\n let packageManager: 'npm' | 'pnpm' | 'yarn' | 'bun' | 'volta' | undefined\n\n for (let i = 0; i < argv.length; i++) {\n const a = argv[i]!\n switch (a) {\n case '--check': check = true; break\n case '--in-place':\n case '--inplace': inPlace = true; break\n case '--dry-run':\n case '--dryrun': dryRun = true; break\n case '--force': force = true; break\n case '-h':\n case '--help': help = true; break\n case '--channel':\n channel = argv[++i]\n if (!channel)\n return { kind: 'error', message: '--channel requires a value' }\n break\n case '--registry':\n registry = argv[++i]\n if (!registry)\n return { kind: 'error', message: '--registry requires a value' }\n break\n case '--package-manager':\n case '--pm': {\n const v = argv[++i]\n if (!v)\n return { kind: 'error', message: '--package-manager requires a value' }\n if (v !== 'npm' && v !== 'pnpm' && v !== 'yarn' && v !== 'bun' && v !== 'volta')\n return { kind: 'error', message: `unknown package manager: ${v}` }\n packageManager = v\n break\n }\n default:\n return { kind: 'error', message: `unknown argument: ${a}` }\n }\n }\n\n return { kind: 'ok', check, inPlace, dryRun, force, help, channel, registry, packageManager }\n}\n","import type { AgentHookMap } from '../agent'\nimport type { TodoItem } from './todos'\nimport { appendDynamicSection } from '../system-prompt'\nimport { selectActiveTodos } from './todos'\n\nexport interface ActiveTodoAnchorOptions {\n enabled?: boolean\n maxItems?: number\n heading?: string\n}\n\nexport function renderActiveTodoAnchor(\n todos: readonly TodoItem[],\n options: ActiveTodoAnchorOptions = {},\n): string {\n if (options.enabled === false || todos.length === 0)\n return ''\n const maxItems = Math.max(1, Math.floor(options.maxItems ?? 6))\n const heading = options.heading ?? 'Active Todo Anchor'\n const visible = todos.slice(0, maxItems)\n const lines = [`# ${heading}`, '<active_todos>']\n for (const item of visible)\n lines.push(`- [${item.status}] ${item.content}`)\n if (todos.length > visible.length)\n lines.push(`- ... ${todos.length - visible.length} more`)\n lines.push('</active_todos>')\n return lines.join('\\n')\n}\n\n/**\n * Optional chat-layer hook that keeps the live `todowrite` list visible in the\n * dynamic system prompt. It reads only live todos, never the archive, so an\n * auto-cleared completed plan is not reintroduced on later turns.\n */\nexport function createActiveTodoAnchorHooks(options: ActiveTodoAnchorOptions = {}): AgentHookMap {\n return {\n 'system:transform': (ctx) => {\n const state = selectActiveTodos(ctx.session)\n const anchor = renderActiveTodoAnchor(state.todos, options)\n if (anchor)\n ctx.system = appendDynamicSection(ctx.system, anchor)\n },\n }\n}\n"],"mappings":";;;;;;;;;;;AAuDA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BrB,eAAsB,iBAAiB,SAAmE;CACxG,MAAM,MAAM,QAAQ,UAAU,QAAQ;CACtC,MAAM,MAAM,QAAQ,UAAU,QAAQ;CACtC,MAAM,SAAS,UAAU,QAAQ,IAAI;CACrC,IAAI,OAAO,SAAS,SAAS;EAC3B,IAAI,MAAM,mBAAmB,OAAO,QAAQ,GAAG;EAC/C,IAAI,MAAM,YAAY;EACtB,OAAO,EAAE,UAAU,EAAE;CACvB;CACA,IAAI,OAAO,MAAM;EACf,IAAI,MAAM,YAAY;EACtB,OAAO,EAAE,UAAU,EAAE;CACvB;CAEA,MAAM,UAAU,OAAO,WAAW,QAAQ,kBAAkB;CAC5D,MAAM,WAAW,OAAO,YAAY,QAAQ;CAI5C,MAAM,SAAS,MAAM,eAAe;EAClC,aAAa,QAAQ;EACrB,gBAAgB,QAAQ;EACxB;EACA;EACA,UAAU,QAAQ;EAClB,OAAO;EACP,WAAW;CACb,CAAC;CAKD,IAAI,OAAO,OAAO;EAChB,IAAI,OAAO,WAAW,SAAS;GAC7B,IA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;;;;;;AAOA,SAAgB,4BAA4B,UAAmC,CAAC,GAAiB;CAC/F,OAAO,EACL,qBAAqB,QAAQ;EAE3B,MAAM,SAAS,uBADD,kBAAkB,IAAI,OACM,EAAE,OAAO,OAAO;EAC1D,IAAI,QACF,IAAI,SAAS,qBAAqB,IAAI,QAAQ,MAAM;CACxD,EACF;AACF"}
1
+ {"version":3,"file":"chat.js","names":[],"sources":["../src/chat/auto-update-cli.ts","../src/chat/todo-anchor.ts"],"sourcesContent":["// ---------------------------------------------------------------------------\n// `zidane upgrade` subcommand — drop-in handler for consumer CLIs.\n//\n// Wraps `checkForUpdate` + `performSelfUpdate` + `performInPlaceSelfUpdate`\n// into a single function the host's `cli.ts` can call. The behavior layers:\n//\n// - no flags → check + run the package manager\n// - `--check` → check only, print the latest version + bail\n// - `--in-place` → skip the PM, download + atomic-rename the binary\n// - `--dry-run` → resolve everything but don't actually swap\n// - `--channel <tag>` → override dist-tag (defaults to `'latest'`)\n// - `--registry <url>`→ override the npm registry URL\n//\n// Pure I/O — writes to stdout/stderr, returns the exit code the caller\n// should pass to `process.exit`. No React, no OpenTUI; safe to call\n// before / instead of `runTui`.\n// ---------------------------------------------------------------------------\n\nimport {\n checkForUpdate,\n compareSemver,\n detectPackageManager,\n performInPlaceSelfUpdate,\n performSelfUpdate,\n resolvePlatformPackage,\n} from './auto-update'\n\nexport interface RunUpdateCommandOptions {\n /** Top-level package the user installs (e.g. `'zidane-tui'`). */\n packageName: string\n /** Inlined at build time. */\n currentVersion: string\n /** Args passed after `upgrade` (typically `process.argv.slice(3)`). */\n argv: readonly string[]\n /** Where to persist the TTL cache. Usually `paths.userDir`. */\n cacheDir?: string\n /** Default channel when `--channel` isn't passed. Defaults to `'latest'`. */\n defaultChannel?: string\n /**\n * Override the platform-package-name prefix used by `--in-place`.\n * Defaults to `'<packageName>-'`, matching the `zidane-tui-<key>` layout.\n */\n platformPackagePrefix?: string\n /** Override registry. Defaults to npmjs. */\n registry?: string\n /** stdout. Defaults to `process.stdout`. */\n stdout?: NodeJS.WritableStream\n /** stderr. Defaults to `process.stderr`. */\n stderr?: NodeJS.WritableStream\n}\n\nexport interface RunUpdateCommandResult {\n exitCode: number\n}\n\nconst UPGRADE_HELP = `Usage: zidane upgrade [options]\n\nUpdate the zidane CLI to the latest release.\n\nOptions:\n --check Print the latest version and exit (no install).\n --in-place Download the platform binary directly from npm\n and atomic-rename over the running binary.\n Skips the package manager. Refused on Volta.\n --dry-run Resolve everything but don't actually install.\n --channel <tag> dist-tag to query (default: latest).\n --registry <url> Override the npm registry.\n --package-manager <pm> Force npm | pnpm | yarn | bun | volta.\n --force Run the install even if we're already on latest,\n or the registry check failed.\n -h, --help Print this help.\n\nEnvironment:\n NO_UPDATE_NOTIFIER Silence the background check (set to \"1\").\n ZIDANE_NO_UPDATE Same, project-specific.\n`\n\n/**\n * Run the `upgrade` subcommand. Exit code contract:\n * - `0` — update succeeded, `--check` reported no update, or `--check`\n * reported an update (informational only).\n * - `1` — update failed (PM exit non-zero, in-place download failed,\n * registry returned non-2xx).\n * - `2` — argv parse error (unknown flag).\n */\nexport async function runUpdateCommand(options: RunUpdateCommandOptions): Promise<RunUpdateCommandResult> {\n const out = options.stdout ?? process.stdout\n const err = options.stderr ?? process.stderr\n const parsed = parseArgs(options.argv)\n if (parsed.kind === 'error') {\n err.write(`zidane upgrade: ${parsed.message}\\n`)\n err.write(UPGRADE_HELP)\n return { exitCode: 2 }\n }\n if (parsed.help) {\n out.write(UPGRADE_HELP)\n return { exitCode: 0 }\n }\n\n const channel = parsed.channel ?? options.defaultChannel ?? 'latest'\n const registry = parsed.registry ?? options.registry\n\n // Always force the check — user typed `upgrade`, env opt-outs shouldn't\n // get in the way.\n const status = await checkForUpdate({\n packageName: options.packageName,\n currentVersion: options.currentVersion,\n channel,\n registry,\n cacheDir: options.cacheDir,\n force: true,\n timeoutMs: 8000,\n })\n\n // `--check` is informational — degrade gracefully on registry errors\n // (offline laptop, restricted proxy) and exit 0 so the user can script\n // around it without quoting tricks.\n if (parsed.check) {\n if (status.source === 'error') {\n err.write(`Could not check \\`${channel}\\` (${status.error ?? 'unknown error'}). Current: v${options.currentVersion}.\\n`)\n return { exitCode: 0 }\n }\n if (!status.latest) {\n err.write(`Could not determine latest version on \\`${channel}\\`. Current: v${options.currentVersion}.\\n`)\n return { exitCode: 0 }\n }\n const cmp = compareSemver(status.latest, options.currentVersion)\n if (cmp > 0)\n out.write(`v${status.latest} is available on \\`${channel}\\` (current: v${options.currentVersion}).\\n`)\n else\n out.write(`Already on v${options.currentVersion} (latest on \\`${channel}\\` is v${status.latest}).\\n`)\n return { exitCode: 0 }\n }\n\n // Install path — a registry error means we don't KNOW if we need an\n // update. Refuse to spawn the PM blindly unless the user explicitly\n // asks via `--force`.\n if (status.source === 'error') {\n err.write(`zidane upgrade: registry check failed (${status.error ?? 'unknown error'})\\n`)\n if (!parsed.force) {\n err.write('Pass --force to attempt the install anyway.\\n')\n return { exitCode: 1 }\n }\n }\n\n if (status.latest && !parsed.force) {\n const cmp = compareSemver(status.latest, options.currentVersion)\n if (cmp <= 0) {\n out.write(`Already on v${options.currentVersion} (latest on \\`${channel}\\` is v${status.latest}).\\n`)\n return { exitCode: 0 }\n }\n }\n\n // ---------------------------------------------------------------------\n // In-place path\n // ---------------------------------------------------------------------\n\n if (parsed.inPlace) {\n const platformPkg = resolvePlatformPackage({\n prefix: options.platformPackagePrefix ?? `${options.packageName}-`,\n })\n if (!platformPkg) {\n err.write(`No prebuilt binary for ${process.platform}/${process.arch}. Run \\`${options.packageName}-upgrade\\` via your package manager instead.\\n`)\n return { exitCode: 1 }\n }\n out.write(`Downloading ${platformPkg}@${channel}…\\n`)\n const result = await performInPlaceSelfUpdate({\n packageName: platformPkg,\n channel,\n registry,\n dryRun: parsed.dryRun,\n })\n if (result.status === 'success') {\n const verb = parsed.dryRun ? 'Would install' : 'Installed'\n out.write(`${verb} v${result.installedVersion} at ${result.binaryPath}.\\n`)\n return { exitCode: 0 }\n }\n err.write(`In-place update failed: ${result.reason ?? 'unknown error'}\\n`)\n if (result.status === 'refused')\n err.write('Falling back to package-manager path (drop --in-place to retry).\\n')\n return { exitCode: 1 }\n }\n\n // ---------------------------------------------------------------------\n // Package-manager path\n // ---------------------------------------------------------------------\n\n const detected = detectPackageManager({ packageName: options.packageName, channel })\n if (detected.note)\n out.write(`${detected.note}\\n`)\n out.write(`Running: ${detected.argv.join(' ')}\\n`)\n if (parsed.dryRun)\n return { exitCode: 0 }\n\n const result = await performSelfUpdate({\n packageName: options.packageName,\n channel,\n packageManager: parsed.packageManager ?? 'auto',\n })\n if (result.spawnError) {\n err.write(`Failed to launch \\`${result.command.argv[0]}\\`: ${result.spawnError}\\n`)\n err.write('Is the package manager installed and on $PATH?\\n')\n return { exitCode: 1 }\n }\n return { exitCode: result.exitCode ?? 1 }\n}\n\n// ---------------------------------------------------------------------------\n// Argv parser — minimal, just enough to drop into the consumer's `cli.ts`.\n// We deliberately don't pull in commander/yargs for a 5-flag surface.\n// ---------------------------------------------------------------------------\n\ntype ParseResult\n = | {\n kind: 'ok'\n check: boolean\n inPlace: boolean\n dryRun: boolean\n force: boolean\n help: boolean\n channel?: string\n registry?: string\n packageManager?: 'npm' | 'pnpm' | 'yarn' | 'bun' | 'volta'\n }\n | { kind: 'error', message: string }\n\nfunction parseArgs(argv: readonly string[]): ParseResult {\n let check = false\n let inPlace = false\n let dryRun = false\n let force = false\n let help = false\n let channel: string | undefined\n let registry: string | undefined\n let packageManager: 'npm' | 'pnpm' | 'yarn' | 'bun' | 'volta' | undefined\n\n for (let i = 0; i < argv.length; i++) {\n const a = argv[i]!\n switch (a) {\n case '--check': check = true; break\n case '--in-place':\n case '--inplace': inPlace = true; break\n case '--dry-run':\n case '--dryrun': dryRun = true; break\n case '--force': force = true; break\n case '-h':\n case '--help': help = true; break\n case '--channel':\n channel = argv[++i]\n if (!channel)\n return { kind: 'error', message: '--channel requires a value' }\n break\n case '--registry':\n registry = argv[++i]\n if (!registry)\n return { kind: 'error', message: '--registry requires a value' }\n break\n case '--package-manager':\n case '--pm': {\n const v = argv[++i]\n if (!v)\n return { kind: 'error', message: '--package-manager requires a value' }\n if (v !== 'npm' && v !== 'pnpm' && v !== 'yarn' && v !== 'bun' && v !== 'volta')\n return { kind: 'error', message: `unknown package manager: ${v}` }\n packageManager = v\n break\n }\n default:\n return { kind: 'error', message: `unknown argument: ${a}` }\n }\n }\n\n return { kind: 'ok', check, inPlace, dryRun, force, help, channel, registry, packageManager }\n}\n","import type { AgentHookMap } from '../agent'\nimport type { TodoItem } from './todos'\nimport { appendDynamicSection } from '../system-prompt'\nimport { selectActiveTodos } from './todos'\n\nexport interface ActiveTodoAnchorOptions {\n enabled?: boolean\n maxItems?: number\n heading?: string\n}\n\nexport function renderActiveTodoAnchor(\n todos: readonly TodoItem[],\n options: ActiveTodoAnchorOptions = {},\n): string {\n if (options.enabled === false || todos.length === 0)\n return ''\n const maxItems = Math.max(1, Math.floor(options.maxItems ?? 6))\n const heading = options.heading ?? 'Active Todo Anchor'\n const visible = todos.slice(0, maxItems)\n const lines = [`# ${heading}`, '<active_todos>']\n for (const item of visible)\n lines.push(`- [${item.status}] ${item.content}`)\n if (todos.length > visible.length)\n lines.push(`- ... ${todos.length - visible.length} more`)\n lines.push('</active_todos>')\n return lines.join('\\n')\n}\n\n/**\n * Optional chat-layer hook that keeps the live `todowrite` list visible in the\n * dynamic system prompt. It reads only live todos, never the archive, so an\n * auto-cleared completed plan is not reintroduced on later turns.\n */\nexport function createActiveTodoAnchorHooks(options: ActiveTodoAnchorOptions = {}): AgentHookMap {\n return {\n 'system:transform': (ctx) => {\n const state = selectActiveTodos(ctx.session)\n const anchor = renderActiveTodoAnchor(state.todos, options)\n if (anchor)\n ctx.system = appendDynamicSection(ctx.system, anchor)\n },\n }\n}\n"],"mappings":";;;;;;;;;;;AAuDA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BrB,eAAsB,iBAAiB,SAAmE;CACxG,MAAM,MAA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