zidane 6.1.13 → 6.2.6

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 (88) hide show
  1. package/dist/{acp-BqfKqQ9x.js → acp-CYJvnqPa.js} +2 -2
  2. package/dist/{acp-BqfKqQ9x.js.map → acp-CYJvnqPa.js.map} +1 -1
  3. package/dist/acp-cli.js +4 -4
  4. package/dist/acp.d.ts +1 -1
  5. package/dist/acp.js +1 -1
  6. package/dist/{agent-CZ3WSWqR.js → agent-D11SxCvA.js} +155 -75
  7. package/dist/agent-D11SxCvA.js.map +1 -0
  8. package/dist/agent.d.ts +1 -1
  9. package/dist/agent.js +2 -2
  10. package/dist/{anthropic-CV_OSYVD.js → anthropic-DdlSgT6K.js} +47 -25
  11. package/dist/anthropic-DdlSgT6K.js.map +1 -0
  12. package/dist/{auth-D5FfJtLf.js → auth-Ys_7TmRj.js} +2 -2
  13. package/dist/{auth-D5FfJtLf.js.map → auth-Ys_7TmRj.js.map} +1 -1
  14. package/dist/{cache-telemetry-BKAwsNxm.js → cache-telemetry-KJ7B-_Gh.js} +8 -3
  15. package/dist/cache-telemetry-KJ7B-_Gh.js.map +1 -0
  16. package/dist/chat/pure.d.ts +3 -3
  17. package/dist/chat/pure.js +2 -2
  18. package/dist/chat.d.ts +12 -5
  19. package/dist/chat.d.ts.map +1 -1
  20. package/dist/chat.js +7 -7
  21. package/dist/{completion-core-CXYSVhZo.js → completion-core-BRo86R_L.js} +23 -10
  22. package/dist/completion-core-BRo86R_L.js.map +1 -0
  23. package/dist/contexts/daytona.d.ts +1 -1
  24. package/dist/contexts/e2b.d.ts +1 -1
  25. package/dist/eval.d.ts +1 -1
  26. package/dist/extensions.d.ts +2 -2
  27. package/dist/extensions.js +2 -2
  28. package/dist/headless.d.ts +1 -1
  29. package/dist/headless.js +1 -1
  30. package/dist/{index-X02SI0nt.d.ts → index-CNyYEOy0.d.ts} +351 -42
  31. package/dist/index-CNyYEOy0.d.ts.map +1 -0
  32. package/dist/index.d.ts +2 -2
  33. package/dist/index.js +6 -6
  34. package/dist/{generate-data-WL_yGVL6.js → inline-autocomplete-BAwBcZtD.js} +191 -6
  35. package/dist/inline-autocomplete-BAwBcZtD.js.map +1 -0
  36. package/dist/mcp.d.ts +1 -1
  37. package/dist/output/stream-json.d.ts +1 -1
  38. package/dist/output/terminal.d.ts +1 -1
  39. package/dist/presets.d.ts +1 -1
  40. package/dist/presets.js +1 -1
  41. package/dist/providers/anthropic.d.ts +1 -1
  42. package/dist/providers/anthropic.js +1 -1
  43. package/dist/providers/arcee.d.ts +1 -1
  44. package/dist/providers/baseten.d.ts +1 -1
  45. package/dist/providers/cerebras.d.ts +1 -1
  46. package/dist/providers/local.d.ts +1 -1
  47. package/dist/providers/openai-compat.d.ts +1 -1
  48. package/dist/providers/openai.d.ts +1 -1
  49. package/dist/providers/openrouter.d.ts +1 -1
  50. package/dist/providers/xai.d.ts +1 -1
  51. package/dist/providers.d.ts +1 -1
  52. package/dist/providers.js +1 -1
  53. package/dist/restate.d.ts +1 -1
  54. package/dist/session/sqlite.d.ts +1 -1
  55. package/dist/session.d.ts +1 -1
  56. package/dist/skills.d.ts +1 -1
  57. package/dist/{tool-formatters-kg8O6wHZ.d.ts → tool-formatters-B7oWiy5m.d.ts} +2 -2
  58. package/dist/tool-formatters-B7oWiy5m.d.ts.map +1 -0
  59. package/dist/tools/fetch-url.d.ts +1 -1
  60. package/dist/tools/web-search.d.ts +1 -1
  61. package/dist/tools.d.ts +1 -1
  62. package/dist/tools.js +1 -1
  63. package/dist/{transcript-anchors-DAF4RbyU.d.ts → transcript-anchors-BUZ915pM.d.ts} +2 -2
  64. package/dist/{transcript-anchors-DAF4RbyU.d.ts.map → transcript-anchors-BUZ915pM.d.ts.map} +1 -1
  65. package/dist/{transcript-anchors-DAf0Mr_9.js → transcript-anchors-cc4gsU-j.js} +23 -8
  66. package/dist/transcript-anchors-cc4gsU-j.js.map +1 -0
  67. package/dist/tui.d.ts +25 -15
  68. package/dist/tui.d.ts.map +1 -1
  69. package/dist/tui.js +539 -57
  70. package/dist/tui.js.map +1 -1
  71. package/dist/{turn-operations-zkZ1L0eb.d.ts → turn-operations-2Ou_DkbC.d.ts} +3 -3
  72. package/dist/{turn-operations-zkZ1L0eb.d.ts.map → turn-operations-2Ou_DkbC.d.ts.map} +1 -1
  73. package/dist/{turn-operations-D9p-y9EC.js → turn-operations-CXjRaltC.js} +72 -2
  74. package/dist/{turn-operations-D9p-y9EC.js.map → turn-operations-CXjRaltC.js.map} +1 -1
  75. package/dist/types-BIarq1qE.js.map +1 -1
  76. package/dist/types.d.ts +1 -1
  77. package/docs/ARCHITECTURE.md +1 -1
  78. package/docs/EXTENSIONS.md +43 -6
  79. package/package.json +2 -1
  80. package/scripts/eval.ts +21 -3
  81. package/dist/agent-CZ3WSWqR.js.map +0 -1
  82. package/dist/anthropic-CV_OSYVD.js.map +0 -1
  83. package/dist/cache-telemetry-BKAwsNxm.js.map +0 -1
  84. package/dist/completion-core-CXYSVhZo.js.map +0 -1
  85. package/dist/generate-data-WL_yGVL6.js.map +0 -1
  86. package/dist/index-X02SI0nt.d.ts.map +0 -1
  87. package/dist/tool-formatters-kg8O6wHZ.d.ts.map +0 -1
  88. package/dist/transcript-anchors-DAf0Mr_9.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cache-telemetry-KJ7B-_Gh.js","names":[],"sources":["../src/cache-telemetry.ts"],"sourcesContent":["/**\n * Per-dimension cache-break detection.\n *\n * The agent surfaces `cacheRead` / `cacheCreation` in {@link TurnUsage}, but\n * doesn't answer the load-bearing diagnostic question: *which* dimension\n * busted the cache? When `cacheCreation > 0` on turn N+1 with no obvious\n * reason, you want to know whether the system prompt, the tool list, the\n * thinking config, or the model id changed — without re-reading the loop\n * source.\n *\n * This module hashes each cache-affecting dimension at `turn:before`, then\n * on `turn:after` checks whether the latest turn read its share of the\n * cached prefix. If not, it diffs the previous turn's dimension hashes\n * against the current ones and logs the responsible dimension(s).\n *\n * Wire contract:\n *\n * - Install via {@link installCacheBreakLogger} on the agent's hook bus.\n * Returns an uninstall fn. Idempotent — calling install twice on the\n * same bus leaves two listeners; callers manage lifecycle.\n * - Output sink defaults to `console.error`; pass `log` to redirect into a\n * {@link Logger}, span attribute writer, or test buffer.\n * - Heuristic only: a missing cache read on turn 1 is expected (nothing\n * cached yet); the logger only reports from turn 2 onward.\n * - Pure helper {@link diffCacheDimensions} is exported for tests so the\n * diff logic can be exercised without standing up the loop.\n *\n * The dimensions tracked are the inputs the provider treats as part of the\n * cache key — `system`, `tools`, `model`, thinking config. Tools are hashed\n * after `provider.formatTools`, so MCP catalogues showing up mid-run also\n * register as a break. Messages are NOT tracked: the conversation grows by\n * design, and the last-message breakpoint is meant to advance every turn.\n */\n\nimport type { Hookable } from 'hookable'\nimport type { AgentHooks } from './agent'\nimport type { StreamOptions } from './providers'\n\n// ---------------------------------------------------------------------------\n// Public types\n// ---------------------------------------------------------------------------\n\n/**\n * Snapshot of per-request dimensions that contribute to the provider-side\n * prompt cache key. Hashed at `turn:before` and stashed for diffing on the\n * next request.\n *\n * Hashes are FNV-1a 32-bit (cheap, no allocations on the hot path,\n * collision rate good enough for diff detection — we're not signing\n * anything). For verbose output the helper also captures byte lengths so\n * `system: 1024 → 1031` reads like a real diff line.\n */\nexport interface CacheDimensionSnapshot {\n /** Hash of `options.system` (with boundary marker preserved). */\n systemHash: number\n /** Byte length of `options.system`. */\n systemBytes: number\n /** Hash of the JSON-serialized `options.tools` array. */\n toolsHash: number\n /** Number of tools in the array. */\n toolsCount: number\n /** Model id. */\n model: string\n /** Thinking level — `'off'` when absent. */\n thinking: string\n /** Exact thinking budget — `0` when absent. */\n thinkingBudget: number\n /** Whole-task thinking budget (Anthropic adaptive-only) — `0` when absent. */\n taskBudget: number\n}\n\n/** Result of {@link diffCacheDimensions}. */\nexport interface CacheDimensionDiff {\n /** Dimension names whose hashes differ between the two snapshots. */\n changed: readonly CacheDimensionName[]\n /** Per-dimension details — only filled for changed dimensions. */\n details: Readonly<Partial<Record<CacheDimensionName, string>>>\n}\n\n/** Cache-affecting dimension names. */\nexport type CacheDimensionName\n = | 'system'\n | 'tools'\n | 'model'\n | 'thinking'\n | 'thinkingBudget'\n | 'taskBudget'\n\n// ---------------------------------------------------------------------------\n// Configuration\n// ---------------------------------------------------------------------------\n\nexport interface CacheBreakLoggerOptions {\n /**\n * Sink for log lines. Defaults to `console.error`. Use a {@link Logger} or\n * a test buffer here when you want the output to land somewhere other than\n * stderr.\n */\n log?: (line: string) => void\n /**\n * When `true`, emit a log line on EVERY turn (not just cache breaks) with\n * the per-dimension hashes. Useful for offline correlation; off by default\n * to keep the logger zero-noise on happy paths.\n */\n verbose?: boolean\n /**\n * Threshold for \"this turn missed cache\". The logger reports when\n * `cacheRead < expectedReadAtLeast` AND the dimensions differ from the\n * previous turn. Defaults to `1` — any cache read at all means the\n * provider matched some prefix, so a strict \"did we get any cache?\" check\n * is the right signal. Raise to detect partial-prefix breaks (e.g. the\n * tools cache hit but the system prompt didn't, which lowers `cacheRead`\n * without zeroing it).\n */\n expectedReadAtLeast?: number\n}\n\n// ---------------------------------------------------------------------------\n// Hashing\n// ---------------------------------------------------------------------------\n\nconst FNV_OFFSET = 0x811C9DC5\nconst FNV_PRIME = 0x01000193\n\n/**\n * FNV-1a-style 32-bit hash over UTF-16 code units. Pure, allocation-free,\n * ~10 ns per KB. Cryptographic strength is irrelevant here — we only need\n * change detection, and this has effectively zero collision risk for the\n * small number of dimensions tracked.\n *\n * Feeds the FULL char code into the mix (same as read-state's\n * `hashContent`) — masking to the low byte would collapse code points that\n * share a low byte, so a non-ASCII system-prompt change could hash\n * identically and silently hide a cache-dimension drift.\n *\n * Exported for tests; callers shouldn't typically import directly.\n */\nexport function fnv1a32(s: string): number {\n let h = FNV_OFFSET\n for (let i = 0; i < s.length; i++) {\n h ^= s.charCodeAt(i)\n // Multiply by FNV_PRIME mod 2^32, using `Math.imul` to keep within\n // 32-bit signed range (avoid >>> 0 ping-pong on every iteration).\n h = Math.imul(h, FNV_PRIME)\n }\n // Map signed → unsigned 32-bit so the printed hex is stable.\n return h >>> 0\n}\n\n/**\n * Build a {@link CacheDimensionSnapshot} from a `turn:before` payload.\n *\n * Pure — exported so hosts can compute snapshots outside the logger (e.g.\n * stamping them onto custom telemetry spans). The hash is deterministic on\n * byte-identical inputs.\n */\nexport function snapshotCacheDimensions(options: StreamOptions): CacheDimensionSnapshot {\n const toolsJson = JSON.stringify(options.tools ?? [])\n return {\n systemHash: fnv1a32(options.system),\n systemBytes: options.system.length,\n toolsHash: fnv1a32(toolsJson),\n toolsCount: Array.isArray(options.tools) ? options.tools.length : 0,\n model: options.model,\n thinking: options.thinking ?? 'off',\n thinkingBudget: options.thinkingBudget ?? 0,\n taskBudget: options.taskBudget ?? 0,\n }\n}\n\n// ---------------------------------------------------------------------------\n// Diffing\n// ---------------------------------------------------------------------------\n\n/**\n * Compare two snapshots and return the list of dimensions whose bytes\n * differ. The `details` map carries a short human-readable description per\n * changed dimension (e.g. `system: 1024 → 1031 bytes`).\n *\n * Pure / no I/O. Use this in tests to assert the diff logic; the logger\n * itself just formats and emits the result.\n */\nexport function diffCacheDimensions(\n prev: CacheDimensionSnapshot,\n curr: CacheDimensionSnapshot,\n): CacheDimensionDiff {\n const changed: CacheDimensionName[] = []\n const details: Partial<Record<CacheDimensionName, string>> = {}\n\n if (prev.systemHash !== curr.systemHash) {\n changed.push('system')\n details.system = `${prev.systemBytes} → ${curr.systemBytes} bytes (hash ${hex(prev.systemHash)} → ${hex(curr.systemHash)})`\n }\n if (prev.toolsHash !== curr.toolsHash) {\n changed.push('tools')\n details.tools = `${prev.toolsCount} → ${curr.toolsCount} tools (hash ${hex(prev.toolsHash)} → ${hex(curr.toolsHash)})`\n }\n if (prev.model !== curr.model) {\n changed.push('model')\n details.model = `${prev.model} → ${curr.model}`\n }\n if (prev.thinking !== curr.thinking) {\n changed.push('thinking')\n details.thinking = `${prev.thinking} → ${curr.thinking}`\n }\n if (prev.thinkingBudget !== curr.thinkingBudget) {\n changed.push('thinkingBudget')\n details.thinkingBudget = `${prev.thinkingBudget} → ${curr.thinkingBudget}`\n }\n if (prev.taskBudget !== curr.taskBudget) {\n changed.push('taskBudget')\n details.taskBudget = `${prev.taskBudget} → ${curr.taskBudget}`\n }\n\n return { changed, details }\n}\n\nfunction hex(n: number): string {\n return `0x${n.toString(16).padStart(8, '0')}`\n}\n\n// ---------------------------------------------------------------------------\n// Hook installer\n// ---------------------------------------------------------------------------\n\n/**\n * Install the cache-break logger on an agent's hook bus.\n *\n * Subscribes to `turn:before` (snapshot) + `turn:after` (compare with prior\n * snapshot, log breaks). Returns an `uninstall` fn that detaches both\n * listeners. Idempotent w.r.t. agent lifecycle — installs/uninstalls cleanly\n * across runs.\n *\n * Recommended setup:\n *\n * ```ts\n * const uninstall = installCacheBreakLogger(agent.hooks, {\n * log: line => logger.debug(line),\n * verbose: !!process.env.ZIDANE_DEBUG?.includes('cache'),\n * })\n * // ...\n * uninstall()\n * ```\n *\n * Performance: hashing runs on each `turn:before` and is bounded by the\n * input size (system + tools serialization). Disabled callers pay nothing\n * (don't install).\n */\nexport function installCacheBreakLogger(\n hooks: Hookable<AgentHooks>,\n options: CacheBreakLoggerOptions = {},\n): () => void {\n const log = options.log ?? ((line: string) => console.error(line))\n const verbose = options.verbose === true\n const expectedReadAtLeast = options.expectedReadAtLeast ?? 1\n\n // Per-bus latest snapshot. Keyed implicitly by the bus instance —\n // installing on a fresh bus starts from empty. Across runs on the same\n // bus, the snapshot persists, which is what we want: the first turn of\n // run N+1 should hit cache if it shares a prefix with the last turn of\n // run N. The detector reports correctly across that boundary.\n let prev: CacheDimensionSnapshot | undefined\n let turnIndex = 0\n let pending: { snapshot: CacheDimensionSnapshot, turnIndex: number, turnId: string } | undefined\n\n function onTurnBefore(ctx: { turn: number, turnId: string, options: StreamOptions }): void {\n const curr = snapshotCacheDimensions(ctx.options)\n turnIndex += 1\n\n if (verbose) {\n log(formatVerboseLine({\n turn: turnIndex,\n turnId: ctx.turnId,\n snapshot: curr,\n }))\n }\n\n // Stash for the matching `turn:after`. We can't compute the diff here —\n // the cache-read result lands on `turn:after.usage`.\n pending = { snapshot: curr, turnIndex, turnId: ctx.turnId }\n }\n\n function onTurnAfter(ctx: { turn: number, turnId: string, usage: { cacheRead?: number, cacheCreation?: number } }): void {\n if (!pending || pending.turnId !== ctx.turnId)\n return\n const { snapshot: curr, turnIndex: tIdx } = pending\n pending = undefined\n\n // Skip break detection on providers that don't report `cacheRead` —\n // treating undefined as 0 would log a false break every turn on Codex,\n // Cerebras, or any host without a cache_read field. We can only diagnose\n // breaks when the provider tells us how much cache was actually used.\n if (prev && tIdx > 1 && typeof ctx.usage.cacheRead === 'number') {\n const cacheRead = ctx.usage.cacheRead\n if (cacheRead < expectedReadAtLeast) {\n const diff = diffCacheDimensions(prev, curr)\n if (diff.changed.length > 0) {\n log(formatBreakLine({\n turn: tIdx,\n turnId: ctx.turnId,\n cacheRead,\n cacheCreation: ctx.usage.cacheCreation ?? 0,\n diff,\n }))\n }\n }\n }\n\n prev = curr\n }\n\n // Hookable's `.hook()` returns its own unregister fn — keep both so\n // `uninstall()` is symmetric with the install path and survives a\n // future hookable rename of `removeHook`.\n const unregisterBefore = hooks.hook('turn:before', onTurnBefore)\n const unregisterAfter = hooks.hook('turn:after', onTurnAfter)\n\n return () => {\n unregisterBefore()\n unregisterAfter()\n }\n}\n\n// ---------------------------------------------------------------------------\n// Formatting\n// ---------------------------------------------------------------------------\n\nfunction formatBreakLine(input: {\n turn: number\n turnId: string\n cacheRead: number\n cacheCreation: number\n diff: CacheDimensionDiff\n}): string {\n const names = input.diff.changed.join(', ')\n const details = input.diff.changed\n .map(d => ` ${d}: ${input.diff.details[d]}`)\n .join('\\n')\n return [\n `[zidane:cache-break] turn=${input.turn} turnId=${input.turnId} cacheRead=${input.cacheRead} cacheCreation=${input.cacheCreation}`,\n ` changed: ${names}`,\n details,\n ].join('\\n')\n}\n\nfunction formatVerboseLine(input: {\n turn: number\n turnId: string\n snapshot: CacheDimensionSnapshot\n}): string {\n const s = input.snapshot\n return `[zidane:cache] turn=${input.turn} turnId=${input.turnId} system=${hex(s.systemHash)}(${s.systemBytes}b) tools=${hex(s.toolsHash)}(${s.toolsCount}) model=${s.model} thinking=${s.thinking}/${s.thinkingBudget}${s.taskBudget ? `/task=${s.taskBudget}` : ''}`\n}\n"],"mappings":";AAyHA,MAAM,aAAa;AACnB,MAAM,YAAY;;;;;;;;;;;;;;AAelB,SAAgB,QAAQ,GAAmB;CACzC,IAAI,IAAI;CACR,KAAK,IAAI,IAAI,GAAG,IAAI,EAAE,QAAQ,KAAK;EACjC,KAAK,EAAE,WAAW,CAAC;EAGnB,IAAI,KAAK,KAAK,GAAG,SAAS;CAC5B;CAEA,OAAO,MAAM;AACf;;;;;;;;AASA,SAAgB,wBAAwB,SAAgD;CACtF,MAAM,YAAY,KAAK,UAAU,QAAQ,SAAS,CAAC,CAAC;CACpD,OAAO;EACL,YAAY,QAAQ,QAAQ,MAAM;EAClC,aAAa,QAAQ,OAAO;EAC5B,WAAW,QAAQ,SAAS;EAC5B,YAAY,MAAM,QAAQ,QAAQ,KAAK,IAAI,QAAQ,MAAM,SAAS;EAClE,OAAO,QAAQ;EACf,UAAU,QAAQ,YAAY;EAC9B,gBAAgB,QAAQ,kBAAkB;EAC1C,YAAY,QAAQ,cAAc;CACpC;AACF;;;;;;;;;AAcA,SAAgB,oBACd,MACA,MACoB;CACpB,MAAM,UAAgC,CAAC;CACvC,MAAM,UAAuD,CAAC;CAE9D,IAAI,KAAK,eAAe,KAAK,YAAY;EACvC,QAAQ,KAAK,QAAQ;EACrB,QAAQ,SAAS,GAAG,KAAK,YAAY,KAAK,KAAK,YAAY,eAAe,IAAI,KAAK,UAAU,EAAE,KAAK,IAAI,KAAK,UAAU,EAAE;CAC3H;CACA,IAAI,KAAK,cAAc,KAAK,WAAW;EACrC,QAAQ,KAAK,OAAO;EACpB,QAAQ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as CompletionProvider, Cd as ContextMcpGroup, Ed as buildContextBreakdown, Gc as findActiveTrigger, Kc as mergeReferences, Lc as ActiveTrigger, Rc as CompletionContext, Sd as ContextItem, Td as ContextUsageSplit, Uc as applyInsert, Vc as CompletionReference, Wc as collectReferences, _d as ContextCategory, bd as ContextExtensionRow, gd as ContextBreakdownOptions, hd as ContextBreakdownContributor, md as ContextBreakdownContributionContext, pd as ContextBreakdown, vd as ContextCategoryId, wd as ContextSnapshot, xd as ContextExtensionSection, yd as ContextExactCounts, zc as CompletionItem } from "../index-X02SI0nt.js";
2
- import { $ as uniqueFilesFromReferences, A as buildUnifiedDiff, C as EditSummary, D as PreviewResult, E as InlineSegment, F as previewEditPayload, I as splitLines, J as SKILLS_TRIGGER, L as summarizeEditPayload, M as computeLineDiff, N as extractEditPayload, O as applyEditPayload, P as filetypeFromPath, Q as createFilesCompletionProvider, R as tokenize, S as EditHunkSummary, T as InlineDiff, X as uniqueSkillNamesFromReferences, Y as createSkillsCompletionProvider, Z as FILES_TRIGGER, _ as formatTaskSummary, a as MAX_TRANSCRIPT_EVENTS, at as ChatReferenceEntry, b as DiffLine, c as finalizeStreamingMarkdown, ct as createChatsCompletionProvider, d as ageString, dt as buildLinearRamp, f as compactPath, g as formatTaskStatus, h as formatDuration, i as turnAsText, it as ChatReferenceData, j as computeInlineDiff, k as buildContextualDiff, l as finalizeStreamingMarkdownForOwner, lt as uniqueChatIdsFromReferences, m as fmtTokens, n as deleteTurnSafely, o as TRANSCRIPT_TRIM_TO_EVENTS, ot as ChatReferenceScope, p as fmtCost, q as summarizeOutcomes, r as truncateTurnsAt, rt as CHATS_TRIGGER, s as capTranscriptEvents, st as chatReferenceTokensFromText, t as countNeighbors, u as turnContextSize, ut as blendHsl, v as previewLine, w as HunkResolution, x as DiffOp, y as shortId } from "../turn-operations-zkZ1L0eb.js";
3
- import { A as turnSelectionOwnership, D as isTurnHighlighted, E as isEditErrorResult, O as isVisible, T as EDIT_TOOL_NAMES, _ as splitMarkdownCodeBlocks, a as formatToolCall, c as splitPromptSegments, d as filterModelCatalog, f as indexOfEntry, g as normalizeMarkdownCodeFences, h as chunkMarkdownForRender, i as displayNameFor, k as selectableTurnIds, l as CatalogEntry, m as MarkdownSegment, n as ToolDisplayMeta, o as PromptSegment, p as MARKDOWN_RENDER_CHUNK_TARGET_BYTES, r as ToolFormatLine, s as PromptSegmentRef, t as TOOL_DISPLAY, u as buildModelCatalog } from "../tool-formatters-kg8O6wHZ.js";
1
+ import { $c as CompletionReference, Ad as ContextCategoryId, Dd as ContextBreakdownContributor, Ed as ContextBreakdownContributionContext, Fd as ContextMcpGroup, Id as ContextSnapshot, Ld as ContextUsageSplit, Md as ContextExtensionRow, Nd as ContextExtensionSection, Od as ContextBreakdownOptions, Pd as ContextItem, Qc as CompletionProvider, Rd as buildContextBreakdown, Td as ContextBreakdown, Xc as CompletionContext, Yc as ActiveTrigger, Zc as CompletionItem, il as mergeReferences, jd as ContextExactCounts, kd as ContextCategory, nl as collectReferences, rl as findActiveTrigger, tl as applyInsert } from "../index-CNyYEOy0.js";
2
+ import { $ as uniqueFilesFromReferences, A as buildUnifiedDiff, C as EditSummary, D as PreviewResult, E as InlineSegment, F as previewEditPayload, I as splitLines, J as SKILLS_TRIGGER, L as summarizeEditPayload, M as computeLineDiff, N as extractEditPayload, O as applyEditPayload, P as filetypeFromPath, Q as createFilesCompletionProvider, R as tokenize, S as EditHunkSummary, T as InlineDiff, X as uniqueSkillNamesFromReferences, Y as createSkillsCompletionProvider, Z as FILES_TRIGGER, _ as formatTaskSummary, a as MAX_TRANSCRIPT_EVENTS, at as ChatReferenceEntry, b as DiffLine, c as finalizeStreamingMarkdown, ct as createChatsCompletionProvider, d as ageString, dt as buildLinearRamp, f as compactPath, g as formatTaskStatus, h as formatDuration, i as turnAsText, it as ChatReferenceData, j as computeInlineDiff, k as buildContextualDiff, l as finalizeStreamingMarkdownForOwner, lt as uniqueChatIdsFromReferences, m as fmtTokens, n as deleteTurnSafely, o as TRANSCRIPT_TRIM_TO_EVENTS, ot as ChatReferenceScope, p as fmtCost, q as summarizeOutcomes, r as truncateTurnsAt, rt as CHATS_TRIGGER, s as capTranscriptEvents, st as chatReferenceTokensFromText, t as countNeighbors, u as turnContextSize, ut as blendHsl, v as previewLine, w as HunkResolution, x as DiffOp, y as shortId } from "../turn-operations-2Ou_DkbC.js";
3
+ import { A as turnSelectionOwnership, D as isTurnHighlighted, E as isEditErrorResult, O as isVisible, T as EDIT_TOOL_NAMES, _ as splitMarkdownCodeBlocks, a as formatToolCall, c as splitPromptSegments, d as filterModelCatalog, f as indexOfEntry, g as normalizeMarkdownCodeFences, h as chunkMarkdownForRender, i as displayNameFor, k as selectableTurnIds, l as CatalogEntry, m as MarkdownSegment, n as ToolDisplayMeta, o as PromptSegment, p as MARKDOWN_RENDER_CHUNK_TARGET_BYTES, r as ToolFormatLine, s as PromptSegmentRef, t as TOOL_DISPLAY, u as buildModelCatalog } from "../tool-formatters-B7oWiy5m.js";
4
4
  export { type ActiveTrigger, CHATS_TRIGGER, type CatalogEntry, type ChatReferenceData, type ChatReferenceEntry, type ChatReferenceScope, type CompletionContext, type CompletionItem, type CompletionProvider, type CompletionReference, type ContextBreakdown, type ContextBreakdownContributionContext, type ContextBreakdownContributor, type ContextBreakdownOptions, type ContextCategory, type ContextCategoryId, type ContextExactCounts, type ContextExtensionRow, type ContextExtensionSection, type ContextItem, type ContextMcpGroup, type ContextSnapshot, type ContextUsageSplit, type DiffLine, type DiffOp, EDIT_TOOL_NAMES, type EditHunkSummary, type EditSummary, FILES_TRIGGER, type HunkResolution, type InlineDiff, type InlineSegment, MARKDOWN_RENDER_CHUNK_TARGET_BYTES, MAX_TRANSCRIPT_EVENTS, type MarkdownSegment, type PreviewResult, type PromptSegment, type PromptSegmentRef, SKILLS_TRIGGER, TOOL_DISPLAY, TRANSCRIPT_TRIM_TO_EVENTS, type ToolDisplayMeta, type ToolFormatLine, ageString, applyEditPayload, applyInsert, blendHsl, buildContextBreakdown, buildContextualDiff, buildLinearRamp, buildModelCatalog, buildUnifiedDiff, capTranscriptEvents, chatReferenceTokensFromText, chunkMarkdownForRender, collectReferences, compactPath, computeInlineDiff, computeLineDiff, countNeighbors, createChatsCompletionProvider, createFilesCompletionProvider, createSkillsCompletionProvider, deleteTurnSafely, displayNameFor, extractEditPayload, filetypeFromPath, filterModelCatalog, finalizeStreamingMarkdown, finalizeStreamingMarkdownForOwner, findActiveTrigger, fmtCost, fmtTokens, formatDuration, formatTaskStatus, formatTaskSummary, formatToolCall, indexOfEntry, isEditErrorResult, isTurnHighlighted, isVisible, mergeReferences, normalizeMarkdownCodeFences, previewEditPayload, previewLine, selectableTurnIds, shortId, splitLines, splitMarkdownCodeBlocks, splitPromptSegments, summarizeEditPayload, summarizeOutcomes, tokenize, truncateTurnsAt, turnAsText, turnContextSize, turnSelectionOwnership, uniqueChatIdsFromReferences, uniqueFilesFromReferences, uniqueSkillNamesFromReferences };
package/dist/chat/pure.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as buildContextBreakdown } from "../context-breakdown-Dzo25N45.js";
2
2
  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";
3
- import { a as mergeReferences, n as collectReferences, r as findActiveTrigger, t as applyInsert } from "../completion-core-CXYSVhZo.js";
4
- import { A as buildLinearRamp, B as applyEditPayload, C as SKILLS_TRIGGER, D as createFilesCompletionProvider, E as FILES_TRIGGER, G as computeLineDiff, H as buildUnifiedDiff, I as isVisible, J as previewEditPayload, K as extractEditPayload, M as EDIT_TOOL_NAMES, N as isEditErrorResult, O as uniqueFilesFromReferences, P as isTurnHighlighted, R as selectableTurnIds, S as splitMarkdownCodeBlocks, T as uniqueSkillNamesFromReferences, V as buildContextualDiff, W as computeInlineDiff, X as summarizeEditPayload, Y as splitLines, Z as tokenize, _ as filterModelCatalog, a as TOOL_DISPLAY, at as summarizeOutcomes, b as chunkMarkdownForRender, c as MAX_TRANSCRIPT_EVENTS, ct as createChatsCompletionProvider, d as finalizeStreamingMarkdown, f as finalizeStreamingMarkdownForOwner, g as buildModelCatalog, h as splitPromptSegments, i as turnAsText, k as blendHsl, l as TRANSCRIPT_TRIM_TO_EVENTS, lt as uniqueChatIdsFromReferences, m as turnContextSize, n as deleteTurnSafely, o as displayNameFor, ot as CHATS_TRIGGER, q as filetypeFromPath, r as truncateTurnsAt, s as formatToolCall, st as chatReferenceTokensFromText, t as countNeighbors, u as capTranscriptEvents, v as indexOfEntry, w as createSkillsCompletionProvider, x as normalizeMarkdownCodeFences, y as MARKDOWN_RENDER_CHUNK_TARGET_BYTES, z as turnSelectionOwnership } from "../turn-operations-D9p-y9EC.js";
3
+ import { a as mergeReferences, n as collectReferences, r as findActiveTrigger, t as applyInsert } from "../completion-core-BRo86R_L.js";
4
+ import { A as blendHsl, B as turnSelectionOwnership, D as FILES_TRIGGER, E as uniqueSkillNamesFromReferences, F as isTurnHighlighted, G as computeInlineDiff, H as buildContextualDiff, J as filetypeFromPath, K as computeLineDiff, L as isVisible, N as EDIT_TOOL_NAMES, O as createFilesCompletionProvider, P as isEditErrorResult, Q as tokenize, S as splitMarkdownCodeBlocks, T as createSkillsCompletionProvider, U as buildUnifiedDiff, V as applyEditPayload, X as splitLines, Y as previewEditPayload, Z as summarizeEditPayload, _ as filterModelCatalog, a as TOOL_DISPLAY, b as chunkMarkdownForRender, c as MAX_TRANSCRIPT_EVENTS, ct as chatReferenceTokensFromText, d as finalizeStreamingMarkdown, f as finalizeStreamingMarkdownForOwner, g as buildModelCatalog, h as splitPromptSegments, i as turnAsText, j as buildLinearRamp, k as uniqueFilesFromReferences, l as TRANSCRIPT_TRIM_TO_EVENTS, lt as createChatsCompletionProvider, m as turnContextSize, n as deleteTurnSafely, o as displayNameFor, ot as summarizeOutcomes, q as extractEditPayload, r as truncateTurnsAt, s as formatToolCall, st as CHATS_TRIGGER, t as countNeighbors, u as capTranscriptEvents, ut as uniqueChatIdsFromReferences, v as indexOfEntry, w as SKILLS_TRIGGER, x as normalizeMarkdownCodeFences, y as MARKDOWN_RENDER_CHUNK_TARGET_BYTES, z as selectableTurnIds } from "../turn-operations-CXjRaltC.js";
5
5
  export { CHATS_TRIGGER, EDIT_TOOL_NAMES, FILES_TRIGGER, MARKDOWN_RENDER_CHUNK_TARGET_BYTES, MAX_TRANSCRIPT_EVENTS, SKILLS_TRIGGER, TOOL_DISPLAY, TRANSCRIPT_TRIM_TO_EVENTS, ageString, applyEditPayload, applyInsert, blendHsl, buildContextBreakdown, buildContextualDiff, buildLinearRamp, buildModelCatalog, buildUnifiedDiff, capTranscriptEvents, chatReferenceTokensFromText, chunkMarkdownForRender, collectReferences, compactPath, computeInlineDiff, computeLineDiff, countNeighbors, createChatsCompletionProvider, createFilesCompletionProvider, createSkillsCompletionProvider, deleteTurnSafely, displayNameFor, extractEditPayload, filetypeFromPath, filterModelCatalog, finalizeStreamingMarkdown, finalizeStreamingMarkdownForOwner, findActiveTrigger, fmtCost, fmtTokens, formatDuration, formatTaskStatus, formatTaskSummary, formatToolCall, indexOfEntry, isEditErrorResult, isTurnHighlighted, isVisible, mergeReferences, normalizeMarkdownCodeFences, previewEditPayload, previewLine, selectableTurnIds, shortId, splitLines, splitMarkdownCodeBlocks, splitPromptSegments, summarizeEditPayload, summarizeOutcomes, tokenize, truncateTurnsAt, turnAsText, turnContextSize, turnSelectionOwnership, uniqueChatIdsFromReferences, uniqueFilesFromReferences, uniqueSkillNamesFromReferences };
package/dist/chat.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { $a as ExtensionApiVersion, $s as SourcedScanPath, $u as localDescriptor, Ac as ThemeColors, Al as QuestionType, Ao as ExtensionToolCatalogTransform, Au as buildRunModel, Bc as CompletionProvider, Bl as useInteractionsQueue, Bu as ProviderKey, Ca as scanExtensionDirectories, Cc as BUILTIN_THEMES, Cd as ContextMcpGroup, Cl as PlanResponse, Co as ExtensionRunTransform, Cu as Picked, Dc as SyntaxStyles, Dl as QuestionPayload, Do as ExtensionSource, Du as StreamEvent, Ec as DEFAULT_THEME, Ed as buildContextBreakdown, El as QuestionChoice, Eo as ExtensionSkillPolicy, Eu as Settings, Fc as CompletionState, Fi as AgentHookMap, Fl as isInteractionTool, Fu as restoreChainFallbacks, Gc as findActiveTrigger, Gi as buildExtensionRegistry, Gu as ModelOption, H as McpCredentialStore, Hd as McpServerConfig, Hi as BuildExtensionRegistryOptions, Ho as LoadedExtension, Hu as BUILTIN_PROVIDERS, Ic as useCompletion, Ii as AgentHooks, Il as makeRequestInteraction, Io as ExtensionToolResultMetadataRegistration, Iu as sanitizeModelChain, Jc as Command, Ji as filterExtensionRegistry, Ju as cerebrasDescriptor, Kc as mergeReferences, Kf as SkillConfig, Ki as composeExtensionPreset, Ku as ProviderDescriptor, Lc as ActiveTrigger, Ll as pendingInteractionsFromTurns, Lp as Provider, Lu as toggleChainEntry, Mc as ThemeSurfaces, Ml as TextQuestion, Mu as chainsEqual, Nc as resolveChipColor, Nl as buildResumedToolResultsTurn, Nu as filterChainFallbacks, Oc as SyntaxTokenStyle, Ol as QuestionRequest, Oo as ExtensionStorageScope, Ou as ToolCallDisplay, Pc as resolveTheme, Pf as ToolDef, Pl as createInteractionTools, Pu as providerKeySetChanged, Qa as EMPTY_EXTENSION_REGISTRY, Qf as Session, Qu as getModelInfo, Rc as CompletionContext, Rl as serializeInteractionResponse, Ru as AuthMethod, Sd as ContextItem, Sl as PlanRequest, So as ExtensionRegistry, Su as Owner, Tc as ChipColorMap, Td as ContextUsageSplit, Tl as Question, To as ExtensionSessionStateSurface, Tu as SessionMeta, Uc as applyInsert, Uo as TuiContributions, Uu as CustomField, V as McpCredentialEntry, Vc as CompletionReference, Vo as GuiContributions, Vu as detectAuth, Wc as collectReferences, Wd as McpToolSchema, Wi as buildExtensionPreset, Wu as ModelInfo, Xf as SkillsConfig, Xi as partitionExtensionCatalog, Xu as enabledModelOptions, Yc as CommandAgentResult, Yi as mergeContributions, Yu as credKeyOf, Zc as CommandExecution, Zu as getContextWindow, _d as ContextCategory, _l as InteractionsProvider, _o as ExtensionOrderedContribution, _u as EditDiffDisplay, ad as piIdOf, al as CommandStepContext, au as AgentAccent, ba as inlineLoadedExtension, bd as ContextExtensionRow, bi as generateStructuredData, bl as PlanDecision, bu as EditOutcomeKind, cd as AutoCompactDecision, cl as executeCommand, co as ExtensionFooterHint, cu as BUILD_AGENT, dd as effectiveContextWindow, dl as AnswerValue, do as ExtensionKeybinding, du as DEFAULT_BUDGET_EXCLUDE_TOOLS, ed as modelOptionsFor, el as CommandInvocation, eo as ExtensionBehaviorTransform, fd as shouldAutoCompact, ff as SessionTurn, fl as ConfirmQuestion, fo as ExtensionKeybindingDispatchContext, fu as DEFAULT_PERSIST_EXCLUDE_TOOLS, gd as ContextBreakdownOptions, gl as InteractionsActions, gu as singleAgentRegistry, hd as ContextBreakdownContributor, hl as InteractionResponse, ho as ExtensionModal, hu as resolveAgentId, id as openrouterDescriptor, il as CommandStep, io as ExtensionContributions, jc as ThemeSelect, jd as AutoCompact, jl as SelectQuestion, ju as chainPositionOf, ka as defineExtension, kc as Theme, kl as QuestionResponse, ko as ExtensionStorageSurface, ku as ModelChainEntry, ld as AutoCompactInput, ll as parseCommandInvocation, lo as ExtensionGuiPanel, lu as BUILTIN_AGENTS, md as ContextBreakdownContributionContext, ml as InteractionRequest, mo as ExtensionMcpConfigTransform, mu as accentColor, nd as modelsForDescriptor, no as ExtensionContext, np as SessionStore, od as restoreModelOptions, ol as CommandStepFn, ou as AgentProfile, pd as ContextBreakdown, pl as CreateInteractionToolsOptions, po as ExtensionManifest, pu as PLAN_AGENT, qi as disposeExtensionRegistry, qu as anthropicDescriptor, rd as openaiDescriptor, sd as AUTO_COMPACT_MIN_GROWTH_FRACTION, sl as commandSteps, so as ExtensionDefinition, su as AgentRegistry, t as Preset, td as modelSupportsReasoning, tl as CommandOutputBlock, to as ExtensionCapability, ud as OUTPUT_RESERVE_TOKENS, ul as ASK_USER_TOOL, uu as DEFAULT_AGENT_ID, va as defaultExtensionScanPaths, vd as ContextCategoryId, vl as PRESENT_PLAN_TOOL, vo as ExtensionPaths, vu as EditHunk, wc as ChipColor, wd as ContextSnapshot, wl as PlanStep, wo as ExtensionRuntimeEnv, wu as Screen, xd as ContextExtensionSection, xl as PlanPayload, xo as ExtensionProviderMiddleware, xu as EditPayload, ya as discoverExtensions, yd as ContextExactCounts, yi as GenerateStructuredDataOptions, yl as PendingInteractionEntry, yo as ExtensionPermission, yu as EditOutcome, zc as CompletionItem, zl as useInteractionsActions, zu as ProviderAuth } from "./index-X02SI0nt.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-DAF4RbyU.js";
3
- import { $ as uniqueFilesFromReferences, A as buildUnifiedDiff, B as buildEditOutcomesAnnotation, C as EditSummary, D as PreviewResult, E as InlineSegment, F as previewEditPayload, G as rewriteMultiEditHeader, H as mergeApprovalAndBodyOutcomes, I as splitLines, J as SKILLS_TRIGGER, K as stripEditOutcomesAnnotation, L as summarizeEditPayload, M as computeLineDiff, N as extractEditPayload, O as applyEditPayload, P as filetypeFromPath, Q as createFilesCompletionProvider, R as tokenize, S as EditHunkSummary, T as InlineDiff, U as parseEditOutcomesFromResult, V as maskToOutcomeKinds, W as resolveApprovalForPayload, X as uniqueSkillNamesFromReferences, Y as createSkillsCompletionProvider, Z as FILES_TRIGGER, _ as formatTaskSummary, a as MAX_TRANSCRIPT_EVENTS, at as ChatReferenceEntry, b as DiffLine, c as finalizeStreamingMarkdown, ct as createChatsCompletionProvider, d as ageString, dt as buildLinearRamp, et as FileEntry, f as compactPath, g as formatTaskStatus, h as formatDuration, i as turnAsText, it as ChatReferenceData, j as computeInlineDiff, k as buildContextualDiff, l as finalizeStreamingMarkdownForOwner, lt as uniqueChatIdsFromReferences, m as fmtTokens, n as deleteTurnSafely, nt as listProjectFiles, o as TRANSCRIPT_TRIM_TO_EVENTS, ot as ChatReferenceScope, p as fmtCost, q as summarizeOutcomes, r as truncateTurnsAt, rt as CHATS_TRIGGER, s as capTranscriptEvents, st as chatReferenceTokensFromText, t as countNeighbors, tt as ListProjectFilesOptions, u as turnContextSize, ut as blendHsl, v as previewLine, w as HunkResolution, x as DiffOp, y as shortId, z as ResolvedApproval } from "./turn-operations-zkZ1L0eb.js";
4
- import { A as turnSelectionOwnership, C as useSafeModeActions, D as isTurnHighlighted, E as isEditErrorResult, O as isVisible, S as SafeModeProvider, _ as splitMarkdownCodeBlocks, a as formatToolCall, b as RequestApproval, c as splitPromptSegments, d as filterModelCatalog, f as indexOfEntry, g as normalizeMarkdownCodeFences, h as chunkMarkdownForRender, i as displayNameFor, k as selectableTurnIds, l as CatalogEntry, m as MarkdownSegment, n as ToolDisplayMeta, o as PromptSegment, p as MARKDOWN_RENDER_CHUNK_TARGET_BYTES, r as ToolFormatLine, s as PromptSegmentRef, t as TOOL_DISPLAY, u as buildModelCatalog, v as ApprovalDecision, w as useSafeModeQueue, x as SafeModeActions, y as ApprovalRequest } from "./tool-formatters-kg8O6wHZ.js";
1
+ import { $c as CompletionReference, $u as detectAuth, Ac as ChipColorMap, Ad as ContextCategoryId, Al as PRESENT_PLAN_TOOL, Ao as ExtensionSessionStateSurface, Au as EditHunk, Bc as InlineAutocompleteContext, Bl as QuestionRequest, Bu as ToolCallDisplay, Ca as scanExtensionDirectories, Cd as effectiveContextWindow, Cl as AnswerValue, Co as ExtensionPaths, Cu as DEFAULT_BUDGET_EXCLUDE_TOOLS, Dd as ContextBreakdownContributor, Dl as InteractionResponse, Do as ExtensionRegistry, Du as resolveAgentId, Ed as ContextBreakdownContributionContext, El as InteractionRequest, Eo as ExtensionProviderMiddleware, Eu as accentColor, Fc as ThemeColors, Fd as ContextMcpGroup, Fi as AgentHookMap, Fl as PlanResponse, Fo as ExtensionToolCatalogTransform, Fu as Picked, Gc as resolveInlineSuggestion, Gi as buildExtensionRegistry, Gl as buildResumedToolResultsTurn, Gu as filterChainFallbacks, H as McpCredentialStore, Hc as InlineGhost, Hi as BuildExtensionRegistryOptions, Hl as QuestionType, Hu as buildRunModel, Ic as ThemeSelect, Id as ContextSnapshot, Ii as AgentHooks, Il as PlanStep, Iu as Screen, Jc as useCompletion, Ji as filterExtensionRegistry, Jl as makeRequestInteraction, Jo as TuiContributions, Ju as sanitizeModelChain, Kc as tokenEndingAtCursor, Kf as ToolDef, Ki as composeExtensionPreset, Kl as createInteractionTools, Ko as GuiContributions, Ku as providerKeySetChanged, Lc as ThemeSurfaces, Ld as ContextUsageSplit, Ll as Question, Lu as SessionMeta, Mc as SyntaxStyles, Md as ContextExtensionRow, Ml as PlanDecision, Mo as ExtensionSource, Mu as EditOutcomeKind, Nc as SyntaxTokenStyle, Nd as ContextExtensionSection, Nl as PlanPayload, No as ExtensionStorageScope, Nu as EditPayload, Oc as BUILTIN_THEMES, Od as ContextBreakdownOptions, Ol as InteractionsActions, Oo as ExtensionRunTransform, Ou as singleAgentRegistry, Pc as Theme, Pd as ContextItem, Pl as PlanRequest, Po as ExtensionStorageSurface, Pu as Owner, Qc as CompletionProvider, Ql as useInteractionsQueue, Qu as ProviderKey, Rc as resolveChipColor, Rd as buildContextBreakdown, Rl as QuestionChoice, Ru as Settings, Sd as OUTPUT_RESERVE_TOKENS, Sl as ASK_USER_TOOL, So as ExtensionOrderedContribution, Su as DEFAULT_AGENT_ID, Td as ContextBreakdown, Tl as CreateInteractionToolsOptions, Tu as PLAN_AGENT, Uc as createPathAutocompleteProvider, Ud as AutoCompact, Ul as SelectQuestion, Uu as chainPositionOf, V as McpCredentialEntry, Vc as InlineAutocompleteProvider, Vl as QuestionResponse, Vo as ExtensionToolResultMetadataRegistration, Vu as ModelChainEntry, Wc as patchInlineGhost, Wi as buildExtensionPreset, Wl as TextQuestion, Wu as chainsEqual, Xc as CompletionContext, Xi as partitionExtensionCatalog, Xl as serializeInteractionResponse, Xu as AuthMethod, Yc as ActiveTrigger, Yi as mergeContributions, Yl as pendingInteractionsFromTurns, Yp as Provider, Yu as toggleChainEntry, Zc as CompletionItem, Zl as useInteractionsActions, Zu as ProviderAuth, _d as piIdOf, _l as CommandStepContext, _o as ExtensionKeybindingDispatchContext, _u as AgentAccent, ad as anthropicDescriptor, ao as ExtensionBehaviorTransform, ba as inlineLoadedExtension, bd as AutoCompactDecision, bi as generateStructuredData, bl as executeCommand, bo as ExtensionModal, bu as BUILD_AGENT, cd as enabledModelOptions, cp as SkillsConfig, dd as localDescriptor, ed as BUILTIN_PROVIDERS, ef as McpServerConfig, fd as modelOptionsFor, fl as CommandInvocation, fo as ExtensionDefinition, gd as openrouterDescriptor, gl as CommandStep, go as ExtensionKeybinding, hd as openaiDescriptor, ic as SourcedScanPath, id as ProviderDescriptor, il as mergeReferences, io as ExtensionApiVersion, ip as SkillConfig, jc as DEFAULT_THEME, jd as ContextExactCounts, jl as PendingInteractionEntry, jo as ExtensionSkillPolicy, ju as EditOutcome, ka as defineExtension, kc as ChipColor, kd as ContextCategory, kl as InteractionsProvider, ko as ExtensionRuntimeEnv, ku as EditDiffDisplay, ld as getContextWindow, ll as CommandExecution, lo as ExtensionContributions, md as modelsForDescriptor, mo as ExtensionGuiPanel, mp as SessionStore, nd as ModelInfo, nf as McpToolSchema, nl as collectReferences, od as cerebrasDescriptor, ol as Command, oo as ExtensionCapability, pd as modelSupportsReasoning, pl as CommandOutputBlock, po as ExtensionFooterHint, qc as CompletionState, qi as disposeExtensionRegistry, ql as isInteractionTool, qo as LoadedExtension, qu as restoreChainFallbacks, rd as ModelOption, rl as findActiveTrigger, ro as EMPTY_EXTENSION_REGISTRY, sd as credKeyOf, sl as CommandAgentResult, so as ExtensionContext, t as Preset, td as CustomField, tl as applyInsert, ud as getModelInfo, up as Session, va as defaultExtensionScanPaths, vd as restoreModelOptions, vl as CommandStepFn, vo as ExtensionManifest, vu as AgentProfile, wd as shouldAutoCompact, wf as SessionTurn, wl as ConfirmQuestion, wo as ExtensionPermission, wu as DEFAULT_PERSIST_EXCLUDE_TOOLS, xd as AutoCompactInput, xl as parseCommandInvocation, xu as BUILTIN_AGENTS, ya as discoverExtensions, yd as AUTO_COMPACT_MIN_GROWTH_FRACTION, yi as GenerateStructuredDataOptions, yl as commandSteps, yo as ExtensionMcpConfigTransform, yu as AgentRegistry, zc as resolveTheme, zl as QuestionPayload, zu as StreamEvent } from "./index-CNyYEOy0.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-BUZ915pM.js";
3
+ import { $ as uniqueFilesFromReferences, A as buildUnifiedDiff, B as buildEditOutcomesAnnotation, C as EditSummary, D as PreviewResult, E as InlineSegment, F as previewEditPayload, G as rewriteMultiEditHeader, H as mergeApprovalAndBodyOutcomes, I as splitLines, J as SKILLS_TRIGGER, K as stripEditOutcomesAnnotation, L as summarizeEditPayload, M as computeLineDiff, N as extractEditPayload, O as applyEditPayload, P as filetypeFromPath, Q as createFilesCompletionProvider, R as tokenize, S as EditHunkSummary, T as InlineDiff, U as parseEditOutcomesFromResult, V as maskToOutcomeKinds, W as resolveApprovalForPayload, X as uniqueSkillNamesFromReferences, Y as createSkillsCompletionProvider, Z as FILES_TRIGGER, _ as formatTaskSummary, a as MAX_TRANSCRIPT_EVENTS, at as ChatReferenceEntry, b as DiffLine, c as finalizeStreamingMarkdown, ct as createChatsCompletionProvider, d as ageString, dt as buildLinearRamp, et as FileEntry, f as compactPath, g as formatTaskStatus, h as formatDuration, i as turnAsText, it as ChatReferenceData, j as computeInlineDiff, k as buildContextualDiff, l as finalizeStreamingMarkdownForOwner, lt as uniqueChatIdsFromReferences, m as fmtTokens, n as deleteTurnSafely, nt as listProjectFiles, o as TRANSCRIPT_TRIM_TO_EVENTS, ot as ChatReferenceScope, p as fmtCost, q as summarizeOutcomes, r as truncateTurnsAt, rt as CHATS_TRIGGER, s as capTranscriptEvents, st as chatReferenceTokensFromText, t as countNeighbors, tt as ListProjectFilesOptions, u as turnContextSize, ut as blendHsl, v as previewLine, w as HunkResolution, x as DiffOp, y as shortId, z as ResolvedApproval } from "./turn-operations-2Ou_DkbC.js";
4
+ import { A as turnSelectionOwnership, C as useSafeModeActions, D as isTurnHighlighted, E as isEditErrorResult, O as isVisible, S as SafeModeProvider, _ as splitMarkdownCodeBlocks, a as formatToolCall, b as RequestApproval, c as splitPromptSegments, d as filterModelCatalog, f as indexOfEntry, g as normalizeMarkdownCodeFences, h as chunkMarkdownForRender, i as displayNameFor, k as selectableTurnIds, l as CatalogEntry, m as MarkdownSegment, n as ToolDisplayMeta, o as PromptSegment, p as MARKDOWN_RENDER_CHUNK_TARGET_BYTES, r as ToolFormatLine, s as PromptSegmentRef, t as TOOL_DISPLAY, u as buildModelCatalog, v as ApprovalDecision, w as useSafeModeQueue, x as SafeModeActions, y as ApprovalRequest } from "./tool-formatters-B7oWiy5m.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";
@@ -1127,6 +1127,9 @@ type McpAuthStatus = {
1127
1127
  } | {
1128
1128
  kind: 'error';
1129
1129
  error: string;
1130
+ } | {
1131
+ kind: 'bootstrap-error';
1132
+ error: string;
1130
1133
  };
1131
1134
  /**
1132
1135
  * Map of server name → status. `idle` is the implicit default for any
@@ -1155,6 +1158,10 @@ type McpAuthEvent = {
1155
1158
  type: 'auth-error';
1156
1159
  name: string;
1157
1160
  error: string;
1161
+ } | {
1162
+ type: 'bootstrap-error';
1163
+ name: string;
1164
+ error: string;
1158
1165
  } | {
1159
1166
  type: 'connected';
1160
1167
  name: string;
@@ -2397,5 +2404,5 @@ declare function renderActiveTodoAnchor(todos: readonly TodoItem[], options?: Ac
2397
2404
  */
2398
2405
  declare function createActiveTodoAnchorHooks(options?: ActiveTodoAnchorOptions): AgentHookMap;
2399
2406
  //#endregion
2400
- 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 };
2407
+ 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 InlineAutocompleteContext, type InlineAutocompleteProvider, type InlineDiff, type InlineGhost, 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, createPathAutocompleteProvider, 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, patchInlineGhost, 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, resolveInlineSuggestion, 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, tokenEndingAtCursor, 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 };
2401
2408
  //# 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,wBAAA,GAA2B,OAAO;AAAA,iBA2EnE,4BAAA,CAA6B,MAAc;;;;;;;;;;;;;;;AAhF3D;;;;;;;;AAEkB;AAGlB;;;;;;;;AAAmF;AA2EnF;;cCpDa,eAAA;AAAA,UAOI,iBAAA;ED6C0C;;;;ACpD3D;;EAcE,GAAA;EAd0B;AAAA;AAO5B;;;;;;;;EAkBE,WAAA;EAIQ;EAFR,IAAA;EAmBwB;EAjBxB,QAAA;AAAA;AAiBgD;AAoClD;;;;AAAiC;AAsCjC;;;;AAAsC;AA6BtC;;;AAvGkD,iBAAlC,UAAA,CAAW,IAAuB,EAAjB,iBAAiB;AAuGf;AAYnC;;;;AAAuC;AAYvC;;AAxBmC,cAnEtB,oBAAA;;AAiI+B;AAS5C;;;;AAA0C;cApG7B,yBAAA;AAqJK;AA+BlB;;;;AAA8D;AA2B9D;AA1DkB,cAxHL,sBAAA;;;AAkLgD;;;;AClU7D;cD4Ja,0BAAA;;;;;;;ACzJH;AAIV;;cDiKa,iBAAA;;;;;;ACzJN;cDmKM,kBAAA;;;;AChJY;AAEzB;;;cD8Ja,oBAAA;;;;;;;ACtJU;cDkKV,+BAAA;;;;;;;cASA,6BAAA;AAAA,UAYI,kBAAA;EClGD;EDoGd,GAAA;;;ACpGgE;;;;AC/IlE;EF2PE,WAAA;;EAEA,IAAA;EE5PA;EF8PA,QAA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"version":3,"file":"chat.d.ts","names":[],"sources":["../src/tools/read-chat-turns.ts","../src/chat/agent-prompt.ts","../src/chat/agents-md.ts","../src/chat/auto-compact.ts","../src/chat/auto-update.ts","../src/chat/auto-update-cli.ts","../src/chat/auto-update-hook.ts","../src/chat/boot-profiler.ts","../src/chat/browser.ts","../src/chat/config-context.tsx","../src/chat/credentials.ts","../src/chat/discovery-context.tsx","../src/chat/discovery-slot.ts","../src/chat/footer-hints.ts","../src/chat/generate-title.ts","../src/chat/mcp-auth-state.ts","../src/chat/mcp-auth-context.tsx","../src/chat/mcp-credentials.ts","../src/chat/mcp-rows.ts","../src/chat/mcp-tool-toggle.ts","../src/chat/mcp-tools-cache.ts","../src/chat/oauth.ts","../src/chat/oauth-redirect.ts","../src/chat/path-display.ts","../src/chat/project-root.ts","../src/chat/project-user-paths.ts","../src/chat/safe-mode.ts","../src/chat/settings-context.tsx","../src/chat/skills-discovery.ts","../src/chat/streaming.ts","../src/chat/theme-context.tsx","../src/chat/themes/catppuccin.ts","../src/chat/themes/gruvbox.ts","../src/chat/themes/vaporwave.ts","../src/chat/todos.ts","../src/chat/todo-anchor.ts"],"mappings":";;;;;;;;;;UAWiB,wBAAA;EACf,KAAA,EAAO,YAAY;EACnB,gBAAA;AAAA;AAAA,iBAGc,uBAAA,CAAwB,OAAA,EAAS,wBAAA,GAA2B,OAAO;AAAA,iBA2EnE,4BAAA,CAA6B,MAAc;;;;;;;;;;;;;;;AAhF3D;;;;;;;;AAEkB;AAGlB;;;;;;;;AAAmF;AA2EnF;;cCpDa,eAAA;AAAA,UAOI,iBAAA;ED6C0C;;;;ACpD3D;;EAcE,GAAA;EAd0B;AAAA;AAO5B;;;;;;;;EAkBE,WAAA;EAIQ;EAFR,IAAA;EAmBwB;EAjBxB,QAAA;AAAA;AAiBgD;AAoClD;;;;AAAiC;AAsCjC;;;;AAAsC;AA6BtC;;;AAvGkD,iBAAlC,UAAA,CAAW,IAAuB,EAAjB,iBAAiB;AAuGf;AAYnC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5XF;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 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-DAf0Mr_9.js";
2
- import { $ as composeExtensionPreset, $t as discoverExtensions, Bt as ensureKeybindingsFile, Ft as resolveStorageDirs, Gt as mergeKeybindings, Ht as groupBindings, It as DEFAULT_KEYBINDINGS, Jt as readKeybindingsRaw, Kt as parseBindingSpec, Lt as KEYBINDING_DEFS, Q as buildExtensionRegistry, Qt as defaultExtensionScanPaths, R as EMPTY_EXTENSION_REGISTRY, Rt as KEYBINDING_DEF_BY_ACTION, Ut as keybindingsPath, Vt as formatBindingForDisplay, Wt as matchesBinding, Xt as stripJsonComments, Yt as resolveExtensionKeybindings, Z as buildExtensionPreset, en as inlineLoadedExtension, et as disposeExtensionRegistry, fn as AUTO_COMPACT_MIN_GROWTH_FRACTION, hn as shouldAutoCompact, in as defineExtension, mn as effectiveContextWindow, nt as mergeContributions, pn as OUTPUT_RESERVE_TOKENS, qt as readKeybindings, rn as scanExtensionDirectories, rt as partitionExtensionCatalog, tt as filterExtensionRegistry, zt as KEYBINDING_KEY_COL_WIDTH } from "./agent-CZ3WSWqR.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-cc4gsU-j.js";
2
+ import { $ as composeExtensionPreset, $t as discoverExtensions, Bt as ensureKeybindingsFile, Ft as resolveStorageDirs, Gt as mergeKeybindings, Ht as groupBindings, It as DEFAULT_KEYBINDINGS, Jt as readKeybindingsRaw, Kt as parseBindingSpec, Lt as KEYBINDING_DEFS, Q as buildExtensionRegistry, Qt as defaultExtensionScanPaths, R as EMPTY_EXTENSION_REGISTRY, Rt as KEYBINDING_DEF_BY_ACTION, Ut as keybindingsPath, Vt as formatBindingForDisplay, Wt as matchesBinding, Xt as stripJsonComments, Yt as resolveExtensionKeybindings, Z as buildExtensionPreset, en as inlineLoadedExtension, et as disposeExtensionRegistry, gn as shouldAutoCompact, hn as effectiveContextWindow, in as defineExtension, mn as OUTPUT_RESERVE_TOKENS, nt as mergeContributions, pn as AUTO_COMPACT_MIN_GROWTH_FRACTION, qt as readKeybindings, rn as scanExtensionDirectories, rt as partitionExtensionCatalog, tt as filterExtensionRegistry, zt as KEYBINDING_KEY_COL_WIDTH } from "./agent-D11SxCvA.js";
3
3
  import { t as buildContextBreakdown } from "./context-breakdown-Dzo25N45.js";
4
4
  import { a as formatDuration, c as previewLine, i as fmtTokens, l as shortId, n as compactPath, o as formatTaskStatus, r as fmtCost, s as formatTaskSummary, t as ageString } from "./format-BF745pLL.js";
5
5
  import { M as findGitRoot, j as projectUserPaths } from "./resolve-HtxmBWs9.js";
6
6
  import { appendDynamicSection } from "./prompt.js";
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
- 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-D5FfJtLf.js";
10
- import { $ as maskToOutcomeKinds, A as buildLinearRamp, B as applyEditPayload, C as SKILLS_TRIGGER, D as createFilesCompletionProvider, E as FILES_TRIGGER, G as computeLineDiff, H as buildUnifiedDiff, I as isVisible, J as previewEditPayload, K as extractEditPayload, N as isEditErrorResult, O as uniqueFilesFromReferences, P as isTurnHighlighted, Q as buildEditOutcomesAnnotation, R as selectableTurnIds, S as splitMarkdownCodeBlocks, T as uniqueSkillNamesFromReferences, V as buildContextualDiff, W as computeInlineDiff, X as summarizeEditPayload, Y as splitLines, Z as tokenize, _ as filterModelCatalog, a as TOOL_DISPLAY, at as summarizeOutcomes, b as chunkMarkdownForRender, c as MAX_TRANSCRIPT_EVENTS, ct as createChatsCompletionProvider, d as finalizeStreamingMarkdown, et as mergeApprovalAndBodyOutcomes, f as finalizeStreamingMarkdownForOwner, g as buildModelCatalog, h as splitPromptSegments, i as turnAsText, it as stripEditOutcomesAnnotation, k as blendHsl, l as TRANSCRIPT_TRIM_TO_EVENTS, lt as uniqueChatIdsFromReferences, m as turnContextSize, n as deleteTurnSafely, nt as resolveApprovalForPayload, o as displayNameFor, ot as CHATS_TRIGGER, q as filetypeFromPath, r as truncateTurnsAt, rt as rewriteMultiEditHeader, s as formatToolCall, st as chatReferenceTokensFromText, t as countNeighbors, tt as parseEditOutcomesFromResult, u as capTranscriptEvents, v as indexOfEntry, w as createSkillsCompletionProvider, x as normalizeMarkdownCodeFences, y as MARKDOWN_RENDER_CHUNK_TARGET_BYTES, z as turnSelectionOwnership } from "./turn-operations-D9p-y9EC.js";
7
+ import { a as generateStructuredData, c as shouldAutoGenerateTitle, g as parseCommandInvocation, h as executeCommand, i as tokenEndingAtCursor, m as commandSteps, n as patchInlineGhost, o as cleanTitle, r as resolveInlineSuggestion, s as generateSessionTitle, t as createPathAutocompleteProvider } from "./inline-autocomplete-BAwBcZtD.js";
8
+ import { a as mergeReferences, n as collectReferences, r as findActiveTrigger, t as applyInsert } from "./completion-core-BRo86R_L.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-Ys_7TmRj.js";
10
+ import { $ as buildEditOutcomesAnnotation, A as blendHsl, B as turnSelectionOwnership, D as FILES_TRIGGER, E as uniqueSkillNamesFromReferences, F as isTurnHighlighted, G as computeInlineDiff, H as buildContextualDiff, J as filetypeFromPath, K as computeLineDiff, L as isVisible, O as createFilesCompletionProvider, P as isEditErrorResult, Q as tokenize, S as splitMarkdownCodeBlocks, T as createSkillsCompletionProvider, U as buildUnifiedDiff, V as applyEditPayload, X as splitLines, Y as previewEditPayload, Z as summarizeEditPayload, _ as filterModelCatalog, a as TOOL_DISPLAY, at as stripEditOutcomesAnnotation, b as chunkMarkdownForRender, c as MAX_TRANSCRIPT_EVENTS, ct as chatReferenceTokensFromText, d as finalizeStreamingMarkdown, et as maskToOutcomeKinds, f as finalizeStreamingMarkdownForOwner, g as buildModelCatalog, h as splitPromptSegments, i as turnAsText, it as rewriteMultiEditHeader, j as buildLinearRamp, k as uniqueFilesFromReferences, l as TRANSCRIPT_TRIM_TO_EVENTS, lt as createChatsCompletionProvider, m as turnContextSize, n as deleteTurnSafely, nt as parseEditOutcomesFromResult, o as displayNameFor, ot as summarizeOutcomes, q as extractEditPayload, r as truncateTurnsAt, rt as resolveApprovalForPayload, s as formatToolCall, st as CHATS_TRIGGER, t as countNeighbors, tt as mergeApprovalAndBodyOutcomes, u as capTranscriptEvents, ut as uniqueChatIdsFromReferences, v as indexOfEntry, w as SKILLS_TRIGGER, x as normalizeMarkdownCodeFences, y as MARKDOWN_RENDER_CHUNK_TARGET_BYTES, z as selectableTurnIds } from "./turn-operations-CXjRaltC.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_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 };
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, createPathAutocompleteProvider, 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, patchInlineGhost, 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, resolveInlineSuggestion, 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, tokenEndingAtCursor, 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
@@ -58,17 +58,30 @@ function findActiveTriggers(text, cursor, providers, options = {}) {
58
58
  return null;
59
59
  }
60
60
  /**
61
- * Flatten several providers' suggestion lists into one, defaulting each
62
- * item's `section` to its producing provider's `label` so a multi-provider
63
- * popover can render group headers. Items that already carry a `section`
64
- * are left as-is.
61
+ * Flatten several providers' suggestion lists into one, stamping
62
+ * `providerId` on every item (for provider-aware row styling) and
63
+ * defaulting `section` to the producing provider's `label` so the popover
64
+ * can render group headers.
65
+ *
66
+ * `section` is stamped only when the TRIGGER hosts ≥2 providers (see
67
+ * `groupCount`), not when ≥2 happen to return items — so a query that
68
+ * filters a shared trigger (`/`) down to one group still shows that
69
+ * group's header, while a genuinely single-provider trigger (`@` files)
70
+ * renders flat (the header would just duplicate the popup's border
71
+ * title). Items that already carry a value keep it.
65
72
  */
66
- function mergeSuggestions(groups) {
73
+ function mergeSuggestions(groups, groupCount = groups.length) {
74
+ const sectioned = groupCount > 1;
67
75
  const out = [];
68
- for (const { provider, items } of groups) for (const item of items) out.push(item.section === void 0 ? {
69
- ...item,
70
- section: provider.label
71
- } : item);
76
+ for (const { provider, items } of groups) for (const item of items) {
77
+ const section = sectioned ? item.section ?? provider.label : item.section;
78
+ const providerId = item.providerId ?? provider.id;
79
+ out.push(item.section === section && item.providerId === providerId ? item : {
80
+ ...item,
81
+ section,
82
+ providerId
83
+ });
84
+ }
72
85
  return out;
73
86
  }
74
87
  /**
@@ -144,4 +157,4 @@ async function resolveCompletionSubmit(text, providers, options = {}) {
144
157
  //#endregion
145
158
  export { mergeReferences as a, findActiveTriggers as i, collectReferences as n, mergeSuggestions as o, findActiveTrigger as r, resolveCompletionSubmit as s, applyInsert as t };
146
159
 
147
- //# sourceMappingURL=completion-core-CXYSVhZo.js.map
160
+ //# sourceMappingURL=completion-core-BRo86R_L.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"completion-core-BRo86R_L.js","names":[],"sources":["../src/chat/completion-core.ts"],"sourcesContent":["/**\n * Prompt autocompletion framework — pure core.\n *\n * Provider contract types + the renderer-agnostic span/reference helpers\n * (`findActiveTrigger`, `applyInsert`, `mergeReferences`, `collectReferences`).\n * No React, no node — so a browser-context renderer imports these via\n * `zidane/chat/pure`. The `useCompletion` React hook lives in `./completion`\n * (main barrel) and re-exports everything here for back-compat.\n *\n * Providers plug in by registering a `trigger` character (e.g. `/` for skills,\n * `@` for files) and exposing two operations:\n *\n * 1. `suggest(query)` — return ranked items for the live query.\n * 2. `parseReferences(text)` — find all references to the provider's\n * items in arbitrary text. Used to highlight in-prompt mentions and\n * drive submit-time side effects (activate the skill, attach the\n * file, …).\n */\n\n// ---------------------------------------------------------------------------\n// Types\n// ---------------------------------------------------------------------------\n\n/**\n * A discoverable, selectable thing — one row in the autocomplete popover.\n * `TItem` is provider-specific; consumers can inspect `data` when they\n * need the originating payload (e.g. the full `SkillConfig` for tooltips).\n */\nexport interface CompletionItem<TItem = unknown> {\n /** Stable identifier within the provider. Used as React key + selection equality. */\n id: string\n /** User-visible primary string (\"research\"). */\n label: string\n /** Optional one-line secondary string (\"In-depth research with citations\"). */\n description?: string\n /**\n * Text that replaces the active span (trigger + query) on commit. Usually\n * `${trigger}${label}` with a trailing space so the cursor lands ready\n * for the next token.\n */\n insertText: string\n /**\n * Optional section header for popovers that host several providers on one\n * trigger (e.g. `/` → Commands + Skills). When set, the renderer groups\n * items under this label; when absent, items render flat. The engine\n * defaults it to the producing provider's `label` in {@link mergeSuggestions}.\n */\n section?: string\n /**\n * Id of the producing provider — stamped by {@link mergeSuggestions} so\n * renderers can apply provider-specific styling (e.g. chip-colored\n * titles) in a multi-provider popover. Items constructed outside the\n * merge path may leave it unset.\n */\n providerId?: string\n /** Original provider-specific payload. */\n data: TItem\n}\n\n/**\n * A reference to a provider item inside arbitrary prompt text. Producers:\n * `provider.parseReferences(text)`. Consumers: the TUI for highlighting,\n * the run flow for \"activate every referenced skill before agent.run()\".\n *\n * Spans are half-open `[start, end)` codepoint offsets into the source\n * string. Overlapping spans from the same or different providers are\n * caller-resolved — the helpers below ship a \"first wins\" merger.\n */\nexport interface CompletionReference<TItem = unknown> {\n providerId: string\n start: number\n end: number\n itemId: string\n data: TItem\n metadata?: Record<string, unknown>\n}\n\nexport interface CompletionSubmitContext<TItem = unknown> extends CompletionContext {\n references: readonly CompletionReference<TItem>[]\n}\n\n/**\n * Provider contract. Implementations decide their own ranking, fuzzy-match\n * rules, async loading behavior, and reference grammar.\n */\nexport interface CompletionProvider<TItem = unknown> {\n /** Stable id used for tagging references + React keys. */\n id: string\n /**\n * Single character that activates this provider. The engine considers a\n * trigger \"active\" when it appears at the start of the buffer or\n * immediately after whitespace, and is not closed by whitespace before\n * the cursor (so a trigger plus query is a contiguous token).\n */\n trigger: string\n /** Human-readable name. Reserved for future multi-provider popover headers. */\n label: string\n /**\n * Returns items for the active `query` (the text between the trigger and\n * the cursor, excluding the trigger itself). Synchronous return is the\n * common case; promises let providers paginate or hit a backend.\n *\n * `signal` is aborted when the query changes or the popover closes —\n * use it to cancel in-flight network calls.\n */\n suggest: (\n query: string,\n ctx: CompletionContext,\n signal: AbortSignal,\n ) => CompletionItem<TItem>[] | Promise<CompletionItem<TItem>[]>\n /**\n * Keep the trigger active across spaces (single line only — a newline\n * still closes it). Default false: a space ends the query token, which is\n * right for file/skill/chat mentions. The commands provider opts in so\n * `/deploy stag▌` can complete ARGUMENTS: its query becomes\n * `deploy stag` and it decides internally what to suggest. When the\n * query contains whitespace, only opted-in providers are consulted.\n */\n allowSpacesInQuery?: boolean\n /**\n * Find every reference to this provider's items in `text`. Pure: must not\n * mutate ctx. The TUI calls this on every keystroke for highlighting, so\n * keep it cheap (linear scan, no I/O).\n */\n parseReferences: (\n text: string,\n ctx: CompletionContext,\n ) => CompletionReference<TItem>[]\n /**\n * Optional submit-time resolver. Unlike `parseReferences`, this may do async\n * work and enrich references before the host turns them into attachments,\n * activated skills, or other side effects.\n *\n * Declared with method syntax (not a property arrow) on purpose: it makes the\n * `TItem`-typed params bivariant, so a heterogeneous `CompletionProvider`\n * collection (skills + files + extensions) stays assignable to\n * `CompletionProvider<unknown>[]`.\n */\n // eslint-disable-next-line ts/method-signature-style\n resolveReferences?(\n references: readonly CompletionReference<TItem>[],\n ctx: CompletionSubmitContext<TItem>,\n signal: AbortSignal,\n ): CompletionReference<TItem>[] | Promise<CompletionReference<TItem>[]>\n /** Optional submit-time side effect hook. Runs after references are resolved. */\n // eslint-disable-next-line ts/method-signature-style\n onSubmit?(\n submission: CompletionSubmitContext<TItem>,\n signal: AbortSignal,\n ): void | Promise<void>\n}\n\n/**\n * Read-only view of the active prompt buffer + cursor passed to provider\n * callbacks. Kept minimal so providers stay portable across renderers.\n */\nexport interface CompletionContext {\n /** Full prompt text. */\n text: string\n /** Codepoint offset of the cursor (0-based). */\n cursor: number\n}\n\n/**\n * Identified active trigger span. Returned by `findActiveTrigger` so\n * callers can show the popover, query the provider, and on commit replace\n * the span with the selected item's `insertText`.\n */\nexport interface ActiveTrigger<TItem = unknown> {\n provider: CompletionProvider<TItem>\n /** Substring after the trigger, up to the cursor. Empty if cursor sits right after the trigger. */\n query: string\n /** `[start, end)` — span covered by the trigger + query in the source. */\n span: { start: number, end: number }\n}\n\n// ---------------------------------------------------------------------------\n// Pure helpers — exported for unit tests + alternate renderers\n// ---------------------------------------------------------------------------\n\n/**\n * Resolve the provider trigger active at `cursor`, or `null` when none fits.\n *\n * Rules:\n * - The trigger character must sit at position 0 of the buffer OR be\n * preceded by whitespace. This prevents `http://` from triggering the\n * `/`-bound skills provider mid-URL.\n * - The cursor must be at or past the trigger position.\n * - Nothing between the trigger and the cursor may be whitespace (the\n * query is one contiguous token).\n * - The query length is bounded — `maxQueryLength` defaults to 64 — so\n * a runaway buffer scan can't pin the renderer.\n */\nexport function findActiveTrigger<TItem>(\n text: string,\n cursor: number,\n providers: readonly CompletionProvider<TItem>[],\n options: { maxQueryLength?: number } = {},\n): ActiveTrigger<TItem> | null {\n const multi = findActiveTriggers(text, cursor, providers, options)\n if (!multi)\n return null\n // Back-compat: the first matching provider is exactly what the old\n // `providers.find(...)` returned (filter preserves order).\n return { provider: multi.providers[0], query: multi.query, span: multi.span }\n}\n\n/** Like {@link ActiveTrigger} but carries EVERY provider bound to the active trigger char. */\nexport interface ActiveTriggers<TItem = unknown> {\n /** All providers whose `trigger` matches the active char, in registration order. */\n providers: readonly CompletionProvider<TItem>[]\n query: string\n span: { start: number, end: number }\n}\n\n/**\n * Multi-provider variant of {@link findActiveTrigger}: resolves ALL providers\n * bound to the trigger char active at `cursor` (e.g. `/` → a commands provider\n * AND the skills provider), sharing one query + span. The same trigger rules\n * apply (start-of-buffer or whitespace-preceded, contiguous query, bounded\n * length). Returns `null` when no trigger fits.\n */\nexport function findActiveTriggers<TItem>(\n text: string,\n cursor: number,\n providers: readonly CompletionProvider<TItem>[],\n options: { maxQueryLength?: number } = {},\n): ActiveTriggers<TItem> | null {\n if (providers.length === 0)\n return null\n const max = options.maxQueryLength ?? 64\n const safeCursor = Math.max(0, Math.min(cursor, text.length))\n // Whitespace test mirrors regex `\\s` so this surface agrees with the\n // built-in providers' `parseReferences` regex (which uses `\\s`). Without\n // this, pasting `text\\u00a0@README.md` would parse as a ref but the popover\n // wouldn't reopen on retype because NBSP wasn't recognized as a boundary.\n const isWhitespace = (ch: string | undefined) => ch === undefined ? false : /\\s/.test(ch)\n // Walk backward from the cursor to the nearest trigger char. Whitespace\n // normally closes the query token and ends the walk — unless a provider\n // opted into `allowSpacesInQuery` (argument completion), in which case\n // the walk continues across spaces (never newlines) and, once a trigger\n // is found, only space-tolerant providers are consulted for a spaced\n // query. Non-opted-in providers keep byte-identical behavior.\n const anyAllowsSpaces = providers.some(p => p.allowSpacesInQuery === true)\n let sawSpace = false\n for (let i = safeCursor - 1; i >= 0 && safeCursor - i <= max + 1; i--) {\n const ch = text[i]\n if (isWhitespace(ch)) {\n if (ch === '\\n' || ch === '\\r' || !anyAllowsSpaces)\n return null\n sawSpace = true\n continue\n }\n const matching = providers.filter(p => p.trigger === ch && (!sawSpace || p.allowSpacesInQuery === true))\n if (matching.length === 0)\n continue\n // Trigger must be at start of buffer or follow whitespace.\n const before = i > 0 ? text[i - 1] : ''\n if (before !== '' && !isWhitespace(before))\n continue\n const query = text.slice(i + 1, safeCursor)\n return {\n providers: matching,\n query,\n span: { start: i, end: safeCursor },\n }\n }\n return null\n}\n\n/**\n * Flatten several providers' suggestion lists into one, stamping\n * `providerId` on every item (for provider-aware row styling) and\n * defaulting `section` to the producing provider's `label` so the popover\n * can render group headers.\n *\n * `section` is stamped only when the TRIGGER hosts ≥2 providers (see\n * `groupCount`), not when ≥2 happen to return items — so a query that\n * filters a shared trigger (`/`) down to one group still shows that\n * group's header, while a genuinely single-provider trigger (`@` files)\n * renders flat (the header would just duplicate the popup's border\n * title). Items that already carry a value keep it.\n */\nexport function mergeSuggestions<TItem>(\n groups: readonly { provider: CompletionProvider<TItem>, items: readonly CompletionItem<TItem>[] }[],\n groupCount = groups.length,\n): CompletionItem<TItem>[] {\n const sectioned = groupCount > 1\n const out: CompletionItem<TItem>[] = []\n for (const { provider, items } of groups) {\n for (const item of items) {\n const section = sectioned ? (item.section ?? provider.label) : item.section\n const providerId = item.providerId ?? provider.id\n out.push(item.section === section && item.providerId === providerId ? item : { ...item, section, providerId })\n }\n }\n return out\n}\n\n/**\n * Replace `[span.start, span.end)` in `text` with `insertText`. Returns the\n * mutated text and the new cursor position (end of insertion).\n */\nexport function applyInsert(\n text: string,\n span: { start: number, end: number },\n insertText: string,\n): { text: string, cursor: number } {\n const next = text.slice(0, span.start) + insertText + text.slice(span.end)\n return { text: next, cursor: span.start + insertText.length }\n}\n\n/**\n * Merge reference lists from multiple providers into one ordered list with\n * earlier-start-wins disambiguation when spans overlap. Ties broken by\n * insertion order. Spans are sorted ascending so renderers can walk them\n * sequentially with a cursor through the source string.\n */\nexport function mergeReferences<TItem>(\n refs: readonly CompletionReference<TItem>[],\n): CompletionReference<TItem>[] {\n const sorted = [...refs].sort((a, b) => a.start - b.start)\n const merged: CompletionReference<TItem>[] = []\n let lastEnd = -1\n for (const ref of sorted) {\n if (ref.start < lastEnd)\n continue\n merged.push(ref)\n lastEnd = ref.end\n }\n return merged\n}\n\n/**\n * Collect every provider's references in one pass. Convenience wrapper —\n * the TUI textarea component calls this on every keystroke to highlight\n * in-prompt mentions.\n */\nexport function collectReferences<TItem>(\n text: string,\n providers: readonly CompletionProvider<TItem>[],\n cursor = text.length,\n): CompletionReference<TItem>[] {\n const ctx: CompletionContext = { text, cursor }\n const refs: CompletionReference<TItem>[] = []\n for (const p of providers) {\n for (const ref of p.parseReferences(text, ctx))\n refs.push(ref)\n }\n return mergeReferences(refs)\n}\n\nexport async function resolveCompletionSubmit<TItem>(\n text: string,\n providers: readonly CompletionProvider<TItem>[],\n options: { cursor?: number, signal?: AbortSignal } = {},\n): Promise<CompletionReference<TItem>[]> {\n const cursor = options.cursor ?? text.length\n const signal = options.signal ?? new AbortController().signal\n const byProvider = new Map<string, CompletionReference<TItem>[]>()\n for (const ref of collectReferences(text, providers, cursor)) {\n const bucket = byProvider.get(ref.providerId) ?? []\n bucket.push(ref)\n byProvider.set(ref.providerId, bucket)\n }\n const resolved: CompletionReference<TItem>[] = []\n for (const provider of providers) {\n const refs = byProvider.get(provider.id)\n if (!refs?.length)\n continue\n const ctx: CompletionSubmitContext<TItem> = { text, cursor, references: refs }\n const next = provider.resolveReferences\n ? await provider.resolveReferences(refs, ctx, signal)\n : refs\n const submitCtx: CompletionSubmitContext<TItem> = { text, cursor, references: next }\n await provider.onSubmit?.(submitCtx, signal)\n resolved.push(...next)\n }\n return mergeReferences(resolved)\n}\n"],"mappings":";;;;;;;;;;;;;;AAiMA,SAAgB,kBACd,MACA,QACA,WACA,UAAuC,CAAC,GACX;CAC7B,MAAM,QAAQ,mBAAmB,MAAM,QAAQ,WAAW,OAAO;CACjE,IAAI,CAAC,OACH,OAAO;CAGT,OAAO;EAAE,UAAU,MAAM,UAAU;EAAI,OAAO,MAAM;EAAO,MAAM,MAAM;CAAK;AAC9E;;;;;;;;AAiBA,SAAgB,mBACd,MACA,QACA,WACA,UAAuC,CAAC,GACV;CAC9B,IAAI,UAAU,WAAW,GACvB,OAAO;CACT,MAAM,MAAM,QAAQ,kBAAkB;CACtC,MAAM,aAAa,KAAK,IAAI,GAAG,KAAK,IAAI,QAAQ,KAAK,MAAM,CAAC;CAK5D,MAAM,gBAAgB,OAA2B,OAAO,KAAA,IAAY,QAAQ,KAAK,KAAK,EAAE;CAOxF,MAAM,kBAAkB,UAAU,MAAK,MAAK,EAAE,uBAAuB,IAAI;CACzE,IAAI,WAAW;CACf,KAAK,IAAI,IAAI,aAAa,GAAG,KAAK,KAAK,aAAa,KAAK,MAAM,GAAG,KAAK;EACrE,MAAM,KAAK,KAAK;EAChB,IAAI,aAAa,EAAE,GAAG;GACpB,IAAI,OAAO,Q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I;CAChB;CACA,OAAO;AACT;;;;;;AAOA,SAAgB,kBACd,MACA,WACA,SAAS,KAAK,QACgB;CAC9B,MAAM,MAAyB;EAAE;EAAM;CAAO;CAC9C,MAAM,OAAqC,CAAC;CAC5C,KAAK,MAAM,KAAK,WACd,KAAK,MAAM,OAAO,EAAE,gBAAgB,MAAM,GAAG,GAC3C,KAAK,KAAK,GAAG;CAEjB,OAAO,gBAAgB,IAAI;AAC7B;AAEA,eAAsB,wBACpB,MACA,WACA,UAAqD,CAAC,GACf;CACvC,MAAM,SAAS,QAAQ,UAAU,KAAK;CACtC,MAAM,SAAS,QAAQ,UAAU,IAAI,gBAAgB,CAAC,CAAC;CACvD,MAAM,6BAAa,IAAI,IAA0C;CACjE,KAAK,MAAM,OAAO,kBAAkB,MAAM,WAAW,MAAM,GAAG;EAC5D,MAAM,SAAS,WAAW,IAAI,IAAI,UAAU,KAAK,CAAC;EAClD,OAAO,KAAK,GAAG;EACf,WAAW,IAAI,IAAI,YAAY,MAAM;CACvC;CACA,MAAM,WAAyC,CAAC;CAChD,KAAK,MAAM,YAAY,WAAW;EAChC,MAAM,OAAO,WAAW,IAAI,SAAS,EAAE;EACvC,IAAI,CAAC,MAAM,QACT;EACF,MAAM,MAAsC;GAAE;GAAM;GAAQ,YAAY;EAAK;EAC7E,MAAM,OAAO,SAAS,oBAClB,MAAM,SAAS,kBAAkB,MAAM,KAAK,MAAM,IAClD;EACJ,MAAM,YAA4C;GAAE;GAAM;GAAQ,YAAY;EAAK;EACnF,MAAM,SAAS,WAAW,WAAW,MAAM;EAC3C,SAAS,KAAK,GAAG,IAAI;CACvB;CACA,OAAO,gBAAgB,QAAQ;AACjC"}
@@ -1,4 +1,4 @@
1
- import { Zl as Logger } from "../index-X02SI0nt.js";
1
+ import { lu as Logger } from "../index-CNyYEOy0.js";
2
2
  import { s as ExecResult } from "../types-BDccavwj.js";
3
3
  import { t as SandboxProvider } from "../sandbox-CgjG2VvQ.js";
4
4
  import { Buffer } from "node:buffer";
@@ -1,4 +1,4 @@
1
- import { Zl as Logger } from "../index-X02SI0nt.js";
1
+ import { lu as Logger } from "../index-CNyYEOy0.js";
2
2
  import { t as SandboxProvider } from "../sandbox-CgjG2VvQ.js";
3
3
 
4
4
  //#region src/contexts/e2b.d.ts
package/dist/eval.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { $t as TrajectoryStep, At as EvalRunMetricAggregate, Bt as EvalVariantSummary, Cn as llmJudge, Ct as EvalArtifacts, Dn as runEvalCase, Dt as EvalDefinitionContext, En as relativeArtifactPath, Et as EvalDefinition, Ft as EvalRunUsage, Gt as MetricDirection, Ht as EvalWorkspaceOptions, It as EvalScore, Jt as MetricSpecMap, Kt as MetricEmitter, Lt as EvalScorer, Mt as EvalRunReporterOptions, Nt as EvalRunSummary, On as statusCompleted, Ot as EvalMetric, Pt as EvalRunSummaryCase, Qt as Trajectory, Rt as EvalScorerContext, Sn as functionalityMetric, St as EvalAgentStats, Tn as registerEvalTests, Tt as EvalCaseResult, Ut as EvalWorkspaceSnapshot, Vt as EvalWorkspaceFile, Wt as LlmJudgeOptions, Xt as RegisterEvalTestsOptions, Yt as MetricStats, Zt as ReusableExecutionContext, _n as fileExistsOneOf, _t as EvalAgent, an as clearRegisteredEvals, bn as formatEvalRunSummary, bt as EvalAgentRunResult, cn as createEvalRunReporter, dn as defineMetrics, en as TrajectoryStepKind, fn as efficiencyMetricValues, gn as fileExists, gt as EFFICIENCY_METRICS, hn as fileContentQuality, ht as CreateEvalAgentOptions, in as buildTrajectory, jt as EvalRunReporter, kt as EvalMetricError, ln as createReusableExecutionContext, mn as fileContains, nn as buildEvalRunSummary, on as computeEvalTagScores, pn as emitEfficiencyMetrics, qt as MetricSpec, rn as buildRegisteredEvals, sn as createEvalAgent, tn as artifactPath, un as defineEval, vn as finalizeEvalMetrics, vt as EvalAgentMcpServers, wn as normalizeMetric, wt as EvalCaseOptions, xn as formatTrajectoryLine, xt as EvalAgentRunStats, yn as formatEvalCaseSummary, yt as EvalAgentRunOptions, zt as EvalTestRunner } from "./index-X02SI0nt.js";
1
+ import { $t as TrajectoryStep, At as EvalRunMetricAggregate, Bt as EvalVariantSummary, Cn as llmJudge, Ct as EvalArtifacts, Dn as runEvalCase, Dt as EvalDefinitionContext, En as relativeArtifactPath, Et as EvalDefinition, Ft as EvalRunUsage, Gt as MetricDirection, Ht as EvalWorkspaceOptions, It as EvalScore, Jt as MetricSpecMap, Kt as MetricEmitter, Lt as EvalScorer, Mt as EvalRunReporterOptions, Nt as EvalRunSummary, On as statusCompleted, Ot as EvalMetric, Pt as EvalRunSummaryCase, Qt as Trajectory, Rt as EvalScorerContext, Sn as functionalityMetric, St as EvalAgentStats, Tn as registerEvalTests, Tt as EvalCaseResult, Ut as EvalWorkspaceSnapshot, Vt as EvalWorkspaceFile, Wt as LlmJudgeOptions, Xt as RegisterEvalTestsOptions, Yt as MetricStats, Zt as ReusableExecutionContext, _n as fileExistsOneOf, _t as EvalAgent, an as clearRegisteredEvals, bn as formatEvalRunSummary, bt as EvalAgentRunResult, cn as createEvalRunReporter, dn as defineMetrics, en as TrajectoryStepKind, fn as efficiencyMetricValues, gn as fileExists, gt as EFFICIENCY_METRICS, hn as fileContentQuality, ht as CreateEvalAgentOptions, in as buildTrajectory, jt as EvalRunReporter, kt as EvalMetricError, ln as createReusableExecutionContext, mn as fileContains, nn as buildEvalRunSummary, on as computeEvalTagScores, pn as emitEfficiencyMetrics, qt as MetricSpec, rn as buildRegisteredEvals, sn as createEvalAgent, tn as artifactPath, un as defineEval, vn as finalizeEvalMetrics, vt as EvalAgentMcpServers, wn as normalizeMetric, wt as EvalCaseOptions, xn as formatTrajectoryLine, xt as EvalAgentRunStats, yn as formatEvalCaseSummary, yt as EvalAgentRunOptions, zt as EvalTestRunner } from "./index-CNyYEOy0.js";
2
2
  export { CreateEvalAgentOptions, EFFICIENCY_METRICS, EvalAgent, EvalAgentMcpServers, EvalAgentRunOptions, EvalAgentRunResult, EvalAgentRunStats, EvalAgentStats, EvalArtifacts, EvalCaseOptions, EvalCaseResult, EvalDefinition, EvalDefinitionContext, EvalMetric, EvalMetricError, EvalRunMetricAggregate, EvalRunReporter, EvalRunReporterOptions, EvalRunSummary, EvalRunSummaryCase, EvalRunUsage, EvalScore, EvalScorer, EvalScorerContext, EvalTestRunner, EvalVariantSummary, EvalWorkspaceFile, EvalWorkspaceOptions, EvalWorkspaceSnapshot, LlmJudgeOptions, MetricDirection, MetricEmitter, MetricSpec, MetricSpecMap, MetricStats, RegisterEvalTestsOptions, ReusableExecutionContext, Trajectory, TrajectoryStep, TrajectoryStepKind, artifactPath, buildEvalRunSummary, buildRegisteredEvals, buildTrajectory, clearRegisteredEvals, computeEvalTagScores, createEvalAgent, createEvalRunReporter, createReusableExecutionContext, defineEval, defineMetrics, efficiencyMetricValues, emitEfficiencyMetrics, fileContains, fileContentQuality, fileExists, fileExistsOneOf, finalizeEvalMetrics, formatEvalCaseSummary, formatEvalRunSummary, formatTrajectoryLine, functionalityMetric, llmJudge, normalizeMetric, registerEvalTests, relativeArtifactPath, runEvalCase, statusCompleted };
@@ -1,2 +1,2 @@
1
- import { $a as ExtensionApiVersion, $i as ExtensionInstallError, $o as createExtensionHud, Aa as ExtensionConfigBooleanItem, Ao as ExtensionToolCatalogTransform, Ba as ExtensionConfigSurface, Bo as ExtensionTuiSurface, Ca as scanExtensionDirectories, Co as ExtensionRunTransform, Da as ExtensionPromptDelivery, Do as ExtensionSource, Ea as ExtensionPromptBridge, Eo as ExtensionSkillPolicy, Fa as ExtensionConfigItemBase, Fo as ExtensionToolRendererRegistration, Ga as clampExtensionConfigNumber, Gi as buildExtensionRegistry, Go as ExtensionHud, Ha as StoredExtensionConfigItem, Hi as BuildExtensionRegistryOptions, Ho as LoadedExtension, Ia as ExtensionConfigModelItem, Io as ExtensionToolResultMetadataRegistration, Ja as isValidExtensionConfigValue, Ji as filterExtensionRegistry, Jo as ExtensionHudWriter, Ka as coerceExtensionConfigInput, Ki as composeExtensionPreset, Ko as ExtensionHudState, La as ExtensionConfigNumberItem, Lo as ExtensionToolResultPatch, Ma as ExtensionConfigChangeBehavior, Mo as ExtensionToolRenderProps, Na as ExtensionConfigEnumItem, No as ExtensionToolRenderer, Oa as createExtensionPromptBridge, Oo as ExtensionStorageScope, Pa as ExtensionConfigItem, Po as ExtensionToolRendererEntry, Qa as EMPTY_EXTENSION_REGISTRY, Qi as ExtensionInstallCandidate, Qo as ExtensionStatusOptions, Ra as ExtensionConfigScope, Ro as ExtensionToolResultTransform, Sa as parseExtensionScanPathEnv, So as ExtensionRegistry, Ta as discoverAndBuildExtensionRegistry, To as ExtensionSessionStateSurface, Ua as WireExtensionConfigItem, Ui as ExtensionCatalogPartition, Uo as TuiContributions, Va as ExtensionConfigValue, Vo as GuiContributions, Wa as WireExtensionConfigSchema, Wi as buildExtensionPreset, Wo as ExtensionBannerOptions, Xa as resolveExtensionConfigValue, Xi as partitionExtensionCatalog, Xo as ExtensionNotifyOptions, Ya as resolveExtensionConfig, Yi as mergeContributions, Yo as ExtensionNotification, Za as toWireConfigSchema, Zi as ExtensionFetchResult, Zo as ExtensionNotifyTone, _a as ExtensionScanEntry, _o as ExtensionOrderedContribution, aa as ExtensionInstallSource, ao as ExtensionCustomRenderer, as as ExtensionSessionsSurface, ba as inlineLoadedExtension, bo as ExtensionPromptTransform, ca as fetchExtensionSource, co as ExtensionFooterHint, cs as createExtensionHostRuntimeBridge, da as parseExtensionInstallSource, do as ExtensionKeybinding, ea as ExtensionInstallErrorCode, eo as ExtensionBehaviorTransform, es as ExtensionHostRuntimeBridge, fa as readExtensionInstallProvenance, fo as ExtensionKeybindingDispatchContext, ga as ENTRY_CANDIDATES, go as ExtensionModalNode, ha as registerExtensionHostModules, ho as ExtensionModal, ia as ExtensionInstallScope, io as ExtensionContributions, is as ExtensionSessionSummary, ja as ExtensionConfigCategory, jo as ExtensionToolPolicy, ka as defineExtension, ko as ExtensionStorageSurface, la as installExtensionFromSpec, lo as ExtensionGuiPanel, ls as createWorkspaceSurface, ma as updateInstalledExtension, mo as ExtensionMcpConfigTransform, na as ExtensionInstallProvenance, no as ExtensionContext, ns as ExtensionModelEntry, oa as InstallExtensionFromSpecOptions, oo as ExtensionCustomRendererEntry, os as ExtensionWorkspacePair, pa as removeInstalledExtension, po as ExtensionManifest, qa as isValidExtensionConfigItem, qi as disposeExtensionRegistry, qo as ExtensionHudStatus, ra as ExtensionInstallResult, ro as ExtensionContextTransform, rs as ExtensionRuntimeSurface, sa as InstalledExtensionTargetOptions, so as ExtensionDefinition, ss as ExtensionWorkspaceSurface, ta as ExtensionInstallIo, to as ExtensionCapability, ts as ExtensionHostRuntimeImpl, ua as listExtensionCandidates, uo as ExtensionGuiSurface, va as defaultExtensionScanPaths, vo as ExtensionPaths, wa as DiscoverAndBuildExtensionRegistryOptions, wo as ExtensionRuntimeEnv, xa as isExtensionDefinition, xo as ExtensionProviderMiddleware, ya as discoverExtensions, yo as ExtensionPermission, za as ExtensionConfigStringItem, zo as ExtensionToolVerdict } from "./index-X02SI0nt.js";
2
- export { type BuildExtensionRegistryOptions, type DiscoverAndBuildExtensionRegistryOptions, EMPTY_EXTENSION_REGISTRY, ENTRY_CANDIDATES, type ExtensionApiVersion, type ExtensionBannerOptions, type ExtensionBehaviorTransform, type ExtensionCapability, type ExtensionCatalogPartition, type ExtensionConfigBooleanItem, type ExtensionConfigCategory, type ExtensionConfigChangeBehavior, type ExtensionConfigEnumItem, type ExtensionConfigItem, type ExtensionConfigItemBase, type ExtensionConfigModelItem, type ExtensionConfigNumberItem, type ExtensionConfigScope, type ExtensionConfigStringItem, type ExtensionConfigSurface, type ExtensionConfigValue, type ExtensionContext, type ExtensionContextTransform, type ExtensionContributions, type ExtensionCustomRenderer, type ExtensionCustomRendererEntry, type ExtensionDefinition, type ExtensionFetchResult, type ExtensionFooterHint, type ExtensionGuiPanel, type ExtensionGuiSurface, type ExtensionHostRuntimeBridge, type ExtensionHostRuntimeImpl, type ExtensionHud, type ExtensionHudState, type ExtensionHudStatus, type ExtensionHudWriter, type ExtensionInstallCandidate, ExtensionInstallError, type ExtensionInstallErrorCode, type ExtensionInstallIo, type ExtensionInstallProvenance, type ExtensionInstallResult, type ExtensionInstallScope, type ExtensionInstallSource, type ExtensionKeybinding, type ExtensionKeybindingDispatchContext, type ExtensionManifest, type ExtensionMcpConfigTransform, type ExtensionModal, type ExtensionModalNode, type ExtensionModelEntry, type ExtensionNotification, type ExtensionNotifyOptions, type ExtensionNotifyTone, type ExtensionOrderedContribution, type ExtensionPaths, type ExtensionPermission, type ExtensionPromptBridge, type ExtensionPromptDelivery, type ExtensionPromptTransform, type ExtensionProviderMiddleware, type ExtensionRegistry, type ExtensionRunTransform, type ExtensionRuntimeEnv, type ExtensionRuntimeSurface, type ExtensionScanEntry, type ExtensionSessionStateSurface, type ExtensionSessionSummary, type ExtensionSessionsSurface, type ExtensionSkillPolicy, type ExtensionSource, type ExtensionStatusOptions, type ExtensionStorageScope, type ExtensionStorageSurface, type ExtensionToolCatalogTransform, type ExtensionToolPolicy, type ExtensionToolRenderProps, type ExtensionToolRenderer, type ExtensionToolRendererEntry, type ExtensionToolRendererRegistration, type ExtensionToolResultMetadataRegistration, type ExtensionToolResultPatch, type ExtensionToolResultTransform, type ExtensionToolVerdict, type ExtensionTuiSurface, type ExtensionWorkspacePair, type ExtensionWorkspaceSurface, type GuiContributions, type InstallExtensionFromSpecOptions, type InstalledExtensionTargetOptions, type LoadedExtension, type StoredExtensionConfigItem, type TuiContributions, type WireExtensionConfigItem, type WireExtensionConfigSchema, buildExtensionPreset, buildExtensionRegistry, clampExtensionConfigNumber, coerceExtensionConfigInput, composeExtensionPreset, createExtensionHostRuntimeBridge, createExtensionHud, createExtensionPromptBridge, createWorkspaceSurface, defaultExtensionScanPaths, defineExtension, discoverAndBuildExtensionRegistry, discoverExtensions, disposeExtensionRegistry, fetchExtensionSource, filterExtensionRegistry, inlineLoadedExtension, installExtensionFromSpec, isExtensionDefinition, isValidExtensionConfigItem, isValidExtensionConfigValue, listExtensionCandidates, mergeContributions, parseExtensionInstallSource, parseExtensionScanPathEnv, partitionExtensionCatalog, readExtensionInstallProvenance, registerExtensionHostModules, removeInstalledExtension, resolveExtensionConfig, resolveExtensionConfigValue, scanExtensionDirectories, toWireConfigSchema, updateInstalledExtension };
1
+ import { $a as resolveExtensionConfig, $i as ExtensionInstallError, $o as ExtensionHudWriter, Aa as ExtensionConfigActionItem, Ao as ExtensionSessionStateSurface, Ba as ExtensionConfigNumberItem, Bo as ExtensionToolRendererRegistration, Ca as scanExtensionDirectories, Co as ExtensionPaths, Da as ExtensionPromptDelivery, Do as ExtensionRegistry, Ea as ExtensionPromptBridge, Eo as ExtensionProviderMiddleware, Fa as ExtensionConfigChangeBehavior, Fo as ExtensionToolCatalogTransform, Ga as ExtensionConfigValueItem, Gi as buildExtensionRegistry, Go as ExtensionTuiSurface, Ha as ExtensionConfigStringItem, Hi as BuildExtensionRegistryOptions, Ho as ExtensionToolResultPatch, Ia as ExtensionConfigEnumItem, Io as ExtensionToolPolicy, Ja as WireExtensionConfigSchema, Ji as filterExtensionRegistry, Jo as TuiContributions, Ka as StoredExtensionConfigItem, Ki as composeExtensionPreset, Ko as GuiContributions, La as ExtensionConfigItem, Lo as ExtensionToolRenderProps, Ma as ExtensionConfigActionStatus, Mo as ExtensionSource, Na as ExtensionConfigBooleanItem, No as ExtensionStorageScope, Oa as createExtensionPromptBridge, Oo as ExtensionRunTransform, Pa as ExtensionConfigCategory, Po as ExtensionStorageSurface, Qa as isValidExtensionConfigValue, Qi as ExtensionInstallCandidate, Qo as ExtensionHudStatus, Ra as ExtensionConfigItemBase, Ro as ExtensionToolRenderer, Sa as parseExtensionScanPathEnv, So as ExtensionOrderedContribution, Ta as discoverAndBuildExtensionRegistry, To as ExtensionPromptTransform, Ua as ExtensionConfigSurface, Ui as ExtensionCatalogPartition, Uo as ExtensionToolResultTransform, Va as ExtensionConfigScope, Vo as ExtensionToolResultMetadataRegistration, Wa as ExtensionConfigValue, Wi as buildExtensionPreset, Wo as ExtensionToolVerdict, Xa as coerceExtensionConfigInput, Xi as partitionExtensionCatalog, Xo as ExtensionHud, Ya as clampExtensionConfigNumber, Yi as mergeContributions, Yo as ExtensionBannerOptions, Za as isValidExtensionConfigItem, Zi as ExtensionFetchResult, Zo as ExtensionHudState, _a as ExtensionScanEntry, _o as ExtensionKeybindingDispatchContext, aa as ExtensionInstallSource, ao as ExtensionBehaviorTransform, as as ExtensionHostRuntimeBridge, ba as inlineLoadedExtension, bo as ExtensionModal, ca as fetchExtensionSource, co as ExtensionContextTransform, cs as ExtensionRuntimeSurface, da as parseExtensionInstallSource, do as ExtensionCustomRendererEntry, ds as ExtensionWorkspacePair, ea as ExtensionInstallErrorCode, eo as resolveExtensionConfigValue, es as ExtensionNotification, fa as readExtensionInstallProvenance, fo as ExtensionDefinition, fs as ExtensionWorkspaceSurface, ga as ENTRY_CANDIDATES, go as ExtensionKeybinding, ha as registerExtensionHostModules, ho as ExtensionGuiSurface, ia as ExtensionInstallScope, io as ExtensionApiVersion, is as createExtensionHud, ja as ExtensionConfigActionResult, jo as ExtensionSkillPolicy, ka as defineExtension, ko as ExtensionRuntimeEnv, la as installExtensionFromSpec, lo as ExtensionContributions, ls as ExtensionSessionSummary, ma as updateInstalledExtension, mo as ExtensionGuiPanel, ms as createWorkspaceSurface, na as ExtensionInstallProvenance, no as toWireConfigSchema, ns as ExtensionNotifyTone, oa as InstallExtensionFromSpecOptions, oo as ExtensionCapability, os as ExtensionHostRuntimeImpl, pa as removeInstalledExtension, po as ExtensionFooterHint, ps as createExtensionHostRuntimeBridge, qa as WireExtensionConfigItem, qi as disposeExtensionRegistry, qo as LoadedExtension, ra as ExtensionInstallResult, ro as EMPTY_EXTENSION_REGISTRY, rs as ExtensionStatusOptions, sa as InstalledExtensionTargetOptions, so as ExtensionContext, ss as ExtensionModelEntry, ta as ExtensionInstallIo, to as sanitizeExtensionConfigActionPatch, ts as ExtensionNotifyOptions, ua as listExtensionCandidates, uo as ExtensionCustomRenderer, us as ExtensionSessionsSurface, va as defaultExtensionScanPaths, vo as ExtensionManifest, wa as DiscoverAndBuildExtensionRegistryOptions, wo as ExtensionPermission, xa as isExtensionDefinition, xo as ExtensionModalNode, ya as discoverExtensions, yo as ExtensionMcpConfigTransform, za as ExtensionConfigModelItem, zo as ExtensionToolRendererEntry } from "./index-CNyYEOy0.js";
2
+ export { type BuildExtensionRegistryOptions, type DiscoverAndBuildExtensionRegistryOptions, EMPTY_EXTENSION_REGISTRY, ENTRY_CANDIDATES, type ExtensionApiVersion, type ExtensionBannerOptions, type ExtensionBehaviorTransform, type ExtensionCapability, type ExtensionCatalogPartition, type ExtensionConfigActionItem, type ExtensionConfigActionResult, type ExtensionConfigActionStatus, type ExtensionConfigBooleanItem, type ExtensionConfigCategory, type ExtensionConfigChangeBehavior, type ExtensionConfigEnumItem, type ExtensionConfigItem, type ExtensionConfigItemBase, type ExtensionConfigModelItem, type ExtensionConfigNumberItem, type ExtensionConfigScope, type ExtensionConfigStringItem, type ExtensionConfigSurface, type ExtensionConfigValue, type ExtensionConfigValueItem, type ExtensionContext, type ExtensionContextTransform, type ExtensionContributions, type ExtensionCustomRenderer, type ExtensionCustomRendererEntry, type ExtensionDefinition, type ExtensionFetchResult, type ExtensionFooterHint, type ExtensionGuiPanel, type ExtensionGuiSurface, type ExtensionHostRuntimeBridge, type ExtensionHostRuntimeImpl, type ExtensionHud, type ExtensionHudState, type ExtensionHudStatus, type ExtensionHudWriter, type ExtensionInstallCandidate, ExtensionInstallError, type ExtensionInstallErrorCode, type ExtensionInstallIo, type ExtensionInstallProvenance, type ExtensionInstallResult, type ExtensionInstallScope, type ExtensionInstallSource, type ExtensionKeybinding, type ExtensionKeybindingDispatchContext, type ExtensionManifest, type ExtensionMcpConfigTransform, type ExtensionModal, type ExtensionModalNode, type ExtensionModelEntry, type ExtensionNotification, type ExtensionNotifyOptions, type ExtensionNotifyTone, type ExtensionOrderedContribution, type ExtensionPaths, type ExtensionPermission, type ExtensionPromptBridge, type ExtensionPromptDelivery, type ExtensionPromptTransform, type ExtensionProviderMiddleware, type ExtensionRegistry, type ExtensionRunTransform, type ExtensionRuntimeEnv, type ExtensionRuntimeSurface, type ExtensionScanEntry, type ExtensionSessionStateSurface, type ExtensionSessionSummary, type ExtensionSessionsSurface, type ExtensionSkillPolicy, type ExtensionSource, type ExtensionStatusOptions, type ExtensionStorageScope, type ExtensionStorageSurface, type ExtensionToolCatalogTransform, type ExtensionToolPolicy, type ExtensionToolRenderProps, type ExtensionToolRenderer, type ExtensionToolRendererEntry, type ExtensionToolRendererRegistration, type ExtensionToolResultMetadataRegistration, type ExtensionToolResultPatch, type ExtensionToolResultTransform, type ExtensionToolVerdict, type ExtensionTuiSurface, type ExtensionWorkspacePair, type ExtensionWorkspaceSurface, type GuiContributions, type InstallExtensionFromSpecOptions, type InstalledExtensionTargetOptions, type LoadedExtension, type StoredExtensionConfigItem, type TuiContributions, type WireExtensionConfigItem, type WireExtensionConfigSchema, buildExtensionPreset, buildExtensionRegistry, clampExtensionConfigNumber, coerceExtensionConfigInput, composeExtensionPreset, createExtensionHostRuntimeBridge, createExtensionHud, createExtensionPromptBridge, createWorkspaceSurface, defaultExtensionScanPaths, defineExtension, discoverAndBuildExtensionRegistry, discoverExtensions, disposeExtensionRegistry, fetchExtensionSource, filterExtensionRegistry, inlineLoadedExtension, installExtensionFromSpec, isExtensionDefinition, isValidExtensionConfigItem, isValidExtensionConfigValue, listExtensionCandidates, mergeContributions, parseExtensionInstallSource, parseExtensionScanPathEnv, partitionExtensionCatalog, readExtensionInstallProvenance, registerExtensionHostModules, removeInstalledExtension, resolveExtensionConfig, resolveExtensionConfigValue, sanitizeExtensionConfigActionPatch, scanExtensionDirectories, toWireConfigSchema, updateInstalledExtension };