zidane 6.2.24 → 6.2.27

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 (114) hide show
  1. package/dist/{acp-CTn1kFvP.js → acp-R4-zVIud.js} +4 -4
  2. package/dist/{acp-CTn1kFvP.js.map → acp-R4-zVIud.js.map} +1 -1
  3. package/dist/acp-cli.js +5 -5
  4. package/dist/acp.d.ts +1 -1
  5. package/dist/acp.js +1 -1
  6. package/dist/{agent-tLfGSSQw.js → agent-DIe8yzcb.js} +343 -30
  7. package/dist/agent-DIe8yzcb.js.map +1 -0
  8. package/dist/agent.d.ts +1 -1
  9. package/dist/agent.js +2 -2
  10. package/dist/{anthropic-uKvj1yle.js → anthropic-BEYY0hVK.js} +66 -10
  11. package/dist/anthropic-BEYY0hVK.js.map +1 -0
  12. package/dist/{auth-CpdQebUy.js → auth-C4YPRDN4.js} +3 -3
  13. package/dist/{auth-CpdQebUy.js.map → auth-C4YPRDN4.js.map} +1 -1
  14. package/dist/chat/pure.d.ts +3 -3
  15. package/dist/chat/pure.js +1 -1
  16. package/dist/chat.d.ts +4 -4
  17. package/dist/chat.d.ts.map +1 -1
  18. package/dist/chat.js +5 -5
  19. package/dist/contexts/daytona.d.ts +1 -1
  20. package/dist/contexts/daytona.d.ts.map +1 -1
  21. package/dist/contexts/daytona.js +9 -2
  22. package/dist/contexts/daytona.js.map +1 -1
  23. package/dist/contexts/docker.js +1 -1
  24. package/dist/contexts/e2b.d.ts +1 -1
  25. package/dist/contexts/e2b.d.ts.map +1 -1
  26. package/dist/contexts/e2b.js +3 -4
  27. package/dist/contexts/e2b.js.map +1 -1
  28. package/dist/{contexts-A4ep-iJs.js → contexts-0rmrBhTK.js} +8 -5
  29. package/dist/contexts-0rmrBhTK.js.map +1 -0
  30. package/dist/contexts.js +1 -1
  31. package/dist/eval.d.ts +1 -1
  32. package/dist/eval.js +2 -2
  33. package/dist/extensions.d.ts +1 -1
  34. package/dist/extensions.js +1 -1
  35. package/dist/{output-cap-kBUHBlnq.js → glob-DluQFSw1.js} +2 -50
  36. package/dist/glob-DluQFSw1.js.map +1 -0
  37. package/dist/headless.d.ts +1 -1
  38. package/dist/headless.js +5 -5
  39. package/dist/history-search-worker.js +6 -1
  40. package/dist/history-search-worker.js.map +1 -1
  41. package/dist/{index-8zm_hwdY.d.ts → index-B6eBI_OD.d.ts} +312 -96
  42. package/dist/index-B6eBI_OD.d.ts.map +1 -0
  43. package/dist/index.d.ts +2 -2
  44. package/dist/index.js +12 -9
  45. package/dist/index.js.map +1 -1
  46. package/dist/{inline-autocomplete-BAwBcZtD.js → inline-autocomplete-CbcdZpfC.js} +2 -1
  47. package/dist/inline-autocomplete-CbcdZpfC.js.map +1 -0
  48. package/dist/{login-DfJGuHUj.js → login-afiadwf0.js} +34 -18
  49. package/dist/login-afiadwf0.js.map +1 -0
  50. package/dist/mcp.d.ts +1 -1
  51. package/dist/{messages-CvHfYB7f.js → messages-Dy9t7DbQ.js} +97 -6
  52. package/dist/messages-Dy9t7DbQ.js.map +1 -0
  53. package/dist/output/stream-json.d.ts +1 -1
  54. package/dist/output/terminal.d.ts +1 -1
  55. package/dist/output-cap-DM1HrgIp.js +100 -0
  56. package/dist/output-cap-DM1HrgIp.js.map +1 -0
  57. package/dist/presets.d.ts +1 -1
  58. package/dist/presets.js +1 -1
  59. package/dist/providers/anthropic.d.ts +1 -1
  60. package/dist/providers/anthropic.js +1 -1
  61. package/dist/providers/arcee.d.ts +1 -1
  62. package/dist/providers/baseten.d.ts +1 -1
  63. package/dist/providers/cerebras.d.ts +1 -1
  64. package/dist/providers/local.d.ts +1 -1
  65. package/dist/providers/openai-compat.d.ts +1 -1
  66. package/dist/providers/openai.d.ts +1 -1
  67. package/dist/providers/openai.js +4 -3
  68. package/dist/providers/openai.js.map +1 -1
  69. package/dist/providers/openrouter.d.ts +1 -1
  70. package/dist/providers/xai.d.ts +1 -1
  71. package/dist/providers.d.ts +1 -1
  72. package/dist/providers.js +1 -1
  73. package/dist/restate.d.ts +1 -1
  74. package/dist/{run-summary-nD3IQ4ZQ.js → run-summary-BU_NgwUT.js} +17 -1
  75. package/dist/run-summary-BU_NgwUT.js.map +1 -0
  76. package/dist/session/sqlite.d.ts +1 -1
  77. package/dist/{session-jLsc_kMH.js → session-DkVnYGm9.js} +2 -2
  78. package/dist/{session-jLsc_kMH.js.map → session-DkVnYGm9.js.map} +1 -1
  79. package/dist/session.d.ts +1 -1
  80. package/dist/session.js +2 -2
  81. package/dist/skills.d.ts +1 -1
  82. package/dist/{tool-formatters-CZJYzP4x.d.ts → tool-formatters-DdchId_3.d.ts} +2 -2
  83. package/dist/{tool-formatters-CZJYzP4x.d.ts.map → tool-formatters-DdchId_3.d.ts.map} +1 -1
  84. package/dist/tools/fetch-url.d.ts +1 -1
  85. package/dist/tools/web-search.d.ts +1 -1
  86. package/dist/tools.d.ts +1 -1
  87. package/dist/tools.js +1 -1
  88. package/dist/{transcript-anchors-Ded7iJjG.js → transcript-anchors-DOuzgpJx.js} +88 -12
  89. package/dist/transcript-anchors-DOuzgpJx.js.map +1 -0
  90. package/dist/{transcript-anchors-CJ2dmpQk.d.ts → transcript-anchors-DvXLpbIc.d.ts} +2 -2
  91. package/dist/transcript-anchors-DvXLpbIc.d.ts.map +1 -0
  92. package/dist/tui.d.ts +44 -7
  93. package/dist/tui.d.ts.map +1 -1
  94. package/dist/tui.js +1387 -1106
  95. package/dist/tui.js.map +1 -1
  96. package/dist/{turn-operations-ClGa1vnb.js → turn-operations-4tnvKwfJ.js} +77 -13
  97. package/dist/turn-operations-4tnvKwfJ.js.map +1 -0
  98. package/dist/{turn-operations-DZYpXcU1.d.ts → turn-operations-HRTRJIcy.d.ts} +3 -3
  99. package/dist/{turn-operations-DZYpXcU1.d.ts.map → turn-operations-HRTRJIcy.d.ts.map} +1 -1
  100. package/dist/types-BIarq1qE.js.map +1 -1
  101. package/dist/types.d.ts +1 -1
  102. package/package.json +2 -1
  103. package/dist/agent-tLfGSSQw.js.map +0 -1
  104. package/dist/anthropic-uKvj1yle.js.map +0 -1
  105. package/dist/contexts-A4ep-iJs.js.map +0 -1
  106. package/dist/index-8zm_hwdY.d.ts.map +0 -1
  107. package/dist/inline-autocomplete-BAwBcZtD.js.map +0 -1
  108. package/dist/login-DfJGuHUj.js.map +0 -1
  109. package/dist/messages-CvHfYB7f.js.map +0 -1
  110. package/dist/output-cap-kBUHBlnq.js.map +0 -1
  111. package/dist/run-summary-nD3IQ4ZQ.js.map +0 -1
  112. package/dist/transcript-anchors-CJ2dmpQk.d.ts.map +0 -1
  113. package/dist/transcript-anchors-Ded7iJjG.js.map +0 -1
  114. package/dist/turn-operations-ClGa1vnb.js.map +0 -1
@@ -1533,6 +1533,64 @@ declare function fromOpenAI(msg: {
1533
1533
  role: string;
1534
1534
  content: unknown;
1535
1535
  }): SessionMessage;
1536
+ /** What a wire builder should do with a reasoning block for a given target. */
1537
+ type ReasoningWireAction = 'keep' | 'drop' | 'strip-signature';
1538
+ /**
1539
+ * Single source of truth for whether a signature-bearing reasoning block
1540
+ * (`thinking` / `redacted_thinking`) may be forwarded to a provider. Both
1541
+ * wire builders ({@link toAnthropic}, the OpenAI assistant-message shaper)
1542
+ * and the host-facing {@link sanitizeHistoryForProvider} apply this same
1543
+ * policy — keeping them one function means the sanitizer can never drift
1544
+ * from what the wire actually sends.
1545
+ *
1546
+ * Rules, each driven by an API constraint hit in production:
1547
+ *
1548
+ * - target `anthropic`:
1549
+ * - `redacted_thinking` → keep (native Anthropic block; must be echoed).
1550
+ * - `thinking` tagged `openai` → drop (OpenAI `encrypted_content` is not
1551
+ * a valid Anthropic HMAC; 400s).
1552
+ * - unsigned `thinking` → drop (`ThinkingBlockParam` requires a
1553
+ * signature; unsigned blocks come from non-signing producers).
1554
+ * - signed but UNTAGGED `thinking` (pre-tagging sessions) → keep: it is
1555
+ * most plausibly legacy Anthropic output, and the signature-400
1556
+ * recovery converges if it is not.
1557
+ *
1558
+ * - target `openai`:
1559
+ * - `redacted_thinking` → drop (Anthropic-only block type).
1560
+ * - `thinking` tagged `anthropic` → drop (an Anthropic HMAC is not
1561
+ * valid `encrypted_content`).
1562
+ * - signed but UNTAGGED `thinking` → strip-signature: unlike the
1563
+ * Anthropic direction there is no signature-error recovery on this
1564
+ * path, so forwarding a possibly-foreign signature risks an
1565
+ * unrecoverable 400 — the reasoning text survives, only the opaque
1566
+ * signature is withheld.
1567
+ */
1568
+ declare function reasoningWireAction(block: {
1569
+ type: 'thinking';
1570
+ signature?: string;
1571
+ signatureProducer?: 'anthropic' | 'openai';
1572
+ } | {
1573
+ type: 'redacted_thinking';
1574
+ }, target: 'anthropic' | 'openai'): ReasoningWireAction;
1575
+ /**
1576
+ * Host-facing history sanitizer — applies {@link reasoningWireAction} to a
1577
+ * turn set BEFORE it is handed to an agent targeting `target`. The in-loop
1578
+ * wire builders already enforce the same policy per call, so this is for
1579
+ * hosts that seed history from an external durable store (or hydrate
1580
+ * pre-provenance-tagging sessions) and want the poison removed from their
1581
+ * source of truth in one call instead of re-deriving block semantics.
1582
+ *
1583
+ * Returns new turn objects only where something changed (unchanged turns
1584
+ * pass through by reference). A turn whose content empties keeps the same
1585
+ * neutral marker the wire repair uses, so role boundaries stay intact.
1586
+ */
1587
+ declare function sanitizeHistoryForProvider<T extends {
1588
+ content: SessionContentBlock[];
1589
+ }>(turns: readonly T[], target: 'anthropic' | 'openai'): {
1590
+ turns: T[];
1591
+ removed: number;
1592
+ stripped: number;
1593
+ };
1536
1594
  declare function toAnthropic(msg: SessionMessage): {
1537
1595
  role: string;
1538
1596
  content: unknown;
@@ -3027,7 +3085,7 @@ interface RetryConfig {
3027
3085
  * `dedupTools` for the full contract.
3028
3086
  */
3029
3087
  type DedupHasher = (input: Record<string, unknown>) => string | undefined;
3030
- type ProgressNudgeKind = 'readOnlyTurns' | 'failedMutations' | 'noopMutations' | 'validationRejects' | 'toolErrors';
3088
+ type ProgressNudgeKind = 'readOnlyTurns' | 'failedMutations' | 'noopMutations' | 'validationRejects' | 'toolErrors' | 'singleCallTurns';
3031
3089
  type ProgressNudgeMessage = string | ((ctx: {
3032
3090
  kind: ProgressNudgeKind;
3033
3091
  count: number;
@@ -3166,6 +3224,20 @@ interface AutoCompactConfig {
3166
3224
  * run's main model.
3167
3225
  */
3168
3226
  model?: string;
3227
+ /**
3228
+ * Release the in-memory bodies of turns each compaction summary replaces:
3229
+ * large text `tool_result` outputs are written host-side to
3230
+ * `<persistDir>/released/<callId>.txt` (exempt from the persist-dir LRU
3231
+ * cap — once the stub round-trips into the session store the blob is the
3232
+ * only remaining copy, so it lives and dies with the session) and the
3233
+ * session's in-memory copy is swapped for a `<persisted-output …>` stub.
3234
+ * Replaced turns never reach the wire again, so without this a
3235
+ * long-lived host retains every pre-compaction tool output for the
3236
+ * process's life. Requires `persistDir`; content stays retrievable from
3237
+ * the stub's path. Off by default — hosts that need the lossless
3238
+ * inline transcript (SFT capture, exporters) should leave it off.
3239
+ */
3240
+ releaseReplacedTurns?: boolean;
3169
3241
  }
3170
3242
  /**
3171
3243
  * `AgentBehavior.autoCompact` value: `true` enables loop-native
@@ -3770,6 +3842,15 @@ interface AgentBehavior {
3770
3842
  noopMutations?: number | false;
3771
3843
  validationRejects?: number | false;
3772
3844
  toolErrors?: number | false;
3845
+ /**
3846
+ * Nudge after N consecutive turns that each carried exactly ONE read-only
3847
+ * tool call. Independent reads shipped one per round trip pay full
3848
+ * provider latency each; the nudge steers the model to batch them into a
3849
+ * single response. Off by default — aimed at models that ignore static
3850
+ * batching doctrine (measured in production: ~1.3 calls/round-trip vs
3851
+ * ~2.5 for models that batch, tripling turn wall time).
3852
+ */
3853
+ singleCallTurns?: number | false;
3773
3854
  readOnlyTools?: readonly string[];
3774
3855
  maxNudges?: number;
3775
3856
  messages?: Partial<Record<ProgressNudgeKind, ProgressNudgeMessage>>;
@@ -5335,6 +5416,39 @@ interface CompactHookContext {
5335
5416
  /** Why compaction ran. Currently only the proactive threshold trigger. */
5336
5417
  reason: 'auto';
5337
5418
  }
5419
+ /**
5420
+ * Context for the `history:repair` hook — fired at most once per provider
5421
+ * stream call, AFTER the stream settles, when the loop's canonical history
5422
+ * was scrubbed of provider-rejected reasoning state (currently: Anthropic
5423
+ * signature-400 poisoning). Deliberately deferred to the settle boundary so
5424
+ * durable-execution hosts (e.g. Restate) never see it inside a journaled
5425
+ * provider call, where their context methods are unavailable.
5426
+ *
5427
+ * The in-memory runtime turns and the bound `Session` object are already
5428
+ * repaired when this fires; `persisted` reports whether `session.save()`
5429
+ * succeeded. Hosts that mirror turns into an EXTERNAL durable store must
5430
+ * apply the repair there too (using `turnIds`) — otherwise reloading from
5431
+ * that store re-poisons the next run. Observational; handlers cannot cancel
5432
+ * the repair.
5433
+ */
5434
+ interface HistoryRepairHookContext {
5435
+ /** What was repaired. Currently only Anthropic signature poisoning. */
5436
+ reason: 'invalid-anthropic-thinking-signature';
5437
+ /** Run whose stream call detected the poison. */
5438
+ runId: string;
5439
+ /** Bound session id, when the run has a session. */
5440
+ sessionId?: string;
5441
+ /** Ids of the turns whose content was scrubbed (runtime and/or session). */
5442
+ turnIds: string[];
5443
+ /** Total reasoning blocks removed across runtime + session turns. */
5444
+ removedBlocks: number;
5445
+ /**
5446
+ * Whether the repaired session was durably saved to its store. Also
5447
+ * `false` when the session has no store at all (in-memory sessions have
5448
+ * nothing to persist to — the in-memory repair is their final state).
5449
+ */
5450
+ persisted: boolean;
5451
+ }
5338
5452
  /** Fired right before the summary call starts. See `compact:start`. */
5339
5453
  interface CompactStartHookContext extends CompactHookContext {
5340
5454
  /** Fraction of the effective window the last turn's input reached. */
@@ -6828,6 +6942,21 @@ interface Settings {
6828
6942
  * Default: `60`.
6829
6943
  */
6830
6944
  targetFps: number;
6945
+ /**
6946
+ * Mouse interactions — clickable hints, row clicks, checkbox zones,
6947
+ * hover highlights, and wheel scrolling inside the TUI. When off, the
6948
+ * renderer stops requesting terminal mouse reporting entirely
6949
+ * (`renderer.useMouse = false`), so EVERY clickable surface is disabled
6950
+ * at the source — no per-surface opt-outs to drift. As a side effect
6951
+ * the terminal's NATIVE mouse behavior returns: text selection, copy,
6952
+ * and scrollback belong to the terminal emulator again, which is
6953
+ * exactly what mouse-averse / screen-reader / tmux-copy-mode users
6954
+ * want from this switch.
6955
+ *
6956
+ * Applied live via the renderer setter — takes effect immediately, no
6957
+ * restart needed. Default: on.
6958
+ */
6959
+ mouseInteractions: boolean;
6831
6960
  /**
6832
6961
  * Expose interactive tools (`ask_user`, `present_plan`) to the agent.
6833
6962
  * When off, both tools are omitted from the agent's tool set at session
@@ -7807,6 +7936,12 @@ interface CommandStepContext {
7807
7936
  * without an attachment surface; guard with `ctx.attachments?.length`.
7808
7937
  */
7809
7938
  readonly attachments?: readonly CommandAttachment[];
7939
+ /**
7940
+ * The command token the user typed (lowercased) — the alias when one
7941
+ * was used, else the canonical name. Optional: hosts that dispatch
7942
+ * programmatically may not have one. See {@link CommandInvocation.invokedAs}.
7943
+ */
7944
+ readonly invokedAs?: string;
7810
7945
  /** Mutable bag threaded across steps; a step's returned `data` is merged in. */
7811
7946
  readonly data: Record<string, unknown>;
7812
7947
  /** Render + persist a local output block. */
@@ -7950,6 +8085,13 @@ declare function commandSteps(command: Command): readonly CommandStep[];
7950
8085
  /** Parsed `/<name> [args]` invocation. */
7951
8086
  interface CommandInvocation {
7952
8087
  name: string;
8088
+ /**
8089
+ * The token the user actually typed (lowercased, no slash) — `name`
8090
+ * when the canonical name was used, the alias otherwise. Lets commands
8091
+ * keep legacy per-alias behavior (e.g. bare `/fix-comments` defaulting
8092
+ * to comments mode after the command was folded into `/fix`).
8093
+ */
8094
+ invokedAs: string;
7953
8095
  /** Text after the name, trimmed. */
7954
8096
  args: string;
7955
8097
  /** `args` split on whitespace. */
@@ -9934,7 +10076,16 @@ interface ExtensionKeybindingDispatchContext {
9934
10076
  /** Close any open modal. */
9935
10077
  closeModal: () => void;
9936
10078
  }
9937
- /** Footer hint entry contributed by an extension. */
10079
+ /**
10080
+ * Footer hint entry contributed by an extension.
10081
+ *
10082
+ * Hints whose `key` parses as a real chord (`ctrl+j`, `^J`, `⌘+k`, `f6`,
10083
+ * …) are CLICKABLE in the TUI: a click synthesizes that exact keypress
10084
+ * through the input pipeline, so pair the hint with a
10085
+ * `registerKeybinding` handler for the same chord and the button works
10086
+ * by mouse and keyboard alike. Decorative keys that don't parse render
10087
+ * as inert text.
10088
+ */
9938
10089
  interface ExtensionFooterHint {
9939
10090
  /** Display string for the chord (e.g. `'^J'`, `'⌘+k'`). */
9940
10091
  key: string;
@@ -11729,6 +11880,15 @@ interface AgentHooks {
11729
11880
  * still applies) and the circuit breaker counts the failure.
11730
11881
  */
11731
11882
  'compact:end': (ctx: CompactEndHookContext) => void;
11883
+ /**
11884
+ * Fires after a provider stream settles when the loop scrubbed
11885
+ * provider-rejected reasoning state from canonical history (e.g.
11886
+ * Anthropic signature-400 poisoning). In-memory turns and the bound
11887
+ * session are already repaired; hosts mirroring turns into an external
11888
+ * durable store must heal it using `ctx.turnIds` or the next reload
11889
+ * re-poisons the run. Observational. See {@link HistoryRepairHookContext}.
11890
+ */
11891
+ 'history:repair': (ctx: HistoryRepairHookContext) => void;
11732
11892
  'oauth:refresh': (ctx: OAuthRefreshHookContext) => void;
11733
11893
  /**
11734
11894
  * Resolves persisted content refs into provider-bound payload bytes.
@@ -14018,6 +14178,23 @@ interface RunSummaryRepeatGuard {
14018
14178
  action: 'block' | 'steer' | 'abort';
14019
14179
  turnId?: string;
14020
14180
  }
14181
+ /**
14182
+ * One absorbed provider-stream retry. Retries are invisible in the transcript
14183
+ * (no turn, no tool result) yet their backoff is real wall time the user
14184
+ * waited — measured in production as unexplained 30-90s gaps before trivial
14185
+ * tool calls. Recording them makes "LLM residual" stalls attributable.
14186
+ */
14187
+ interface RunSummaryRetry {
14188
+ /** 1-based attempt number that failed and triggered this retry. */
14189
+ attempt: number;
14190
+ /** Backoff delay taken before the next attempt (ms, after retry-after/cap). */
14191
+ delayMs: number;
14192
+ message: string;
14193
+ errorType?: string;
14194
+ statusCode?: number;
14195
+ requestId?: string;
14196
+ turnId?: string;
14197
+ }
14021
14198
  /**
14022
14199
  * Postmortem snapshot of one `agent.run()`. Strictly serializable — every
14023
14200
  * field round-trips through `JSON.stringify` / `JSON.parse` without loss
@@ -14039,6 +14216,12 @@ interface RunSummary {
14039
14216
  blocks: RunSummaryBlock[];
14040
14217
  validationRejects: RunSummaryValidation[];
14041
14218
  budgetEvents: RunSummaryBudget[];
14219
+ /**
14220
+ * Provider-stream retries the loop absorbed. Empty on healthy runs; on
14221
+ * incident runs the summed `delayMs` explains wall time that appears
14222
+ * nowhere else (not in turns, not in tool durations).
14223
+ */
14224
+ streamRetries: RunSummaryRetry[];
14042
14225
  /**
14043
14226
  * Repeat-guard escalations. An `action: 'steer'` entry means the tool still
14044
14227
  * executed and got a steering message appended to its result. An
@@ -15390,6 +15573,124 @@ declare function buildPersistedStub(input: BuildStubInput): string;
15390
15573
  */
15391
15574
  declare function cleanupPersistedSession(persistRoot: string): Promise<void>;
15392
15575
  //#endregion
15576
+ //#region src/mcp/oauth-callback.d.ts
15577
+ /**
15578
+ * Local loopback HTTP callback for OAuth 2.0 authorization code flows.
15579
+ *
15580
+ * Stands up a one-shot server on `127.0.0.1:<random>` that captures the
15581
+ * `?code=...` redirect from a browser-driven OAuth flow and resolves a
15582
+ * promise with the code. Used as the `redirectUrl` half of the MCP SDK's
15583
+ * `OAuthClientProvider` (the persistence half lives separately).
15584
+ *
15585
+ * Design:
15586
+ * - Loopback-only (`127.0.0.1`) — the OAuth spec treats `http://127.0.0.1:<port>`
15587
+ * as a public-client redirect URI per RFC 8252 §7.3. Browsers do NOT block it,
15588
+ * and Anthropic / OpenAI / Linear / GitHub all accept it.
15589
+ * - Random port (`port = 0`) — the OS picks an unused one. We read the actual
15590
+ * port back from `server.address()` after `listen()`.
15591
+ * - Single-shot — the first GET to `path` with a `code` (or `error`) wins;
15592
+ * subsequent requests get 404. The server keeps listening (in case the user
15593
+ * hits "back" and re-authorizes), so callers must `close()` once they have
15594
+ * the code or have given up.
15595
+ * - Abort-aware — wiring an external `AbortSignal` rejects the promise and
15596
+ * closes the server immediately. Required for the TUI's "esc cancels login"
15597
+ * UX.
15598
+ * - No HTML framework — a single inline `<html>` string keeps this isolated
15599
+ * from any UI dependency.
15600
+ */
15601
+ /**
15602
+ * Result of a successful callback. `state` is forwarded verbatim from the
15603
+ * query string — callers verify it against their pre-flight value to defend
15604
+ * against CSRF (the MCP SDK does this internally when it controls `state`).
15605
+ */
15606
+ interface OAuthCallbackResult {
15607
+ code: string;
15608
+ state?: string;
15609
+ }
15610
+ interface OAuthCallbackHandle {
15611
+ /**
15612
+ * Full URI to register with the authorization server, e.g.
15613
+ * `http://127.0.0.1:51823/callback`. Stable for the lifetime of the
15614
+ * handle.
15615
+ */
15616
+ redirectUri: string;
15617
+ /**
15618
+ * Resolves with `{ code, state }` on a successful callback. Rejects with:
15619
+ * - The OAuth-spec `error` field (`access_denied`, `server_error`, ...)
15620
+ * when the authorization server redirects with `?error=...`.
15621
+ * - `'OAuth callback aborted'` when the external `AbortSignal` fires.
15622
+ * - `'OAuth callback server closed'` when `close()` is called before any
15623
+ * callback arrives.
15624
+ *
15625
+ * Single-shot — only the first matching request resolves the promise.
15626
+ */
15627
+ promise: Promise<OAuthCallbackResult>;
15628
+ /**
15629
+ * Idempotent shutdown. Safe to call from a `finally` block whether the
15630
+ * flow succeeded, failed, or was aborted. Resolves once the server stops
15631
+ * accepting connections.
15632
+ */
15633
+ close: () => Promise<void>;
15634
+ }
15635
+ interface OAuthCallbackOptions {
15636
+ /** Cancels the flow — rejects `promise` and closes the server. */
15637
+ signal?: AbortSignal;
15638
+ /**
15639
+ * Renders the post-redirect browser page — see
15640
+ * {@link McpOAuthCallbackPageRenderer}. Default: a minimal unbranded
15641
+ * page; hosts inject their themed renderer.
15642
+ */
15643
+ renderPage?: McpOAuthCallbackPageRenderer;
15644
+ /** Display name handed to the page renderer. Default: `'MCP server'`. */
15645
+ provider?: string;
15646
+ /**
15647
+ * Path component the authorization server should redirect to. Defaults
15648
+ * to `/callback`. Useful when matching a pre-registered URI that uses a
15649
+ * different path.
15650
+ */
15651
+ path?: string;
15652
+ /**
15653
+ * Override the loopback host. Defaults to `127.0.0.1`. Don't bind to
15654
+ * `0.0.0.0` here — the OAuth code is a one-time secret and the server
15655
+ * would otherwise accept it from any host on the LAN.
15656
+ */
15657
+ host?: string;
15658
+ /**
15659
+ * Override the port. Defaults to `0` (OS-assigned). Pin to a fixed port
15660
+ * only when the authorization server requires a pre-registered redirect
15661
+ * URI; the random-port path is preferred so concurrent flows don't clash.
15662
+ */
15663
+ port?: number;
15664
+ }
15665
+ /**
15666
+ * Page the browser lands on after the redirect. INJECTABLE: hosts pass a
15667
+ * renderer so the MCP login ends on the same branded page as their
15668
+ * provider OAuth flows (zidane's TUI injects `renderDefaultCallbackPage`
15669
+ * from `chat/oauth-page` — `src/mcp` stays layering-clean by not
15670
+ * importing the chat module itself). The shape mirrors chat's
15671
+ * `OAuthCallbackPage` structurally, so that renderer plugs in verbatim.
15672
+ */
15673
+ interface McpOAuthCallbackPage {
15674
+ kind: 'success' | 'error';
15675
+ /** Headline message — one sentence, safe for display. */
15676
+ message: string;
15677
+ /** Optional secondary details (e.g. the server's `error_description`). */
15678
+ details?: string;
15679
+ /** Display name for the thing being logged into (the MCP server name). */
15680
+ provider: string;
15681
+ }
15682
+ type McpOAuthCallbackPageRenderer = (page: McpOAuthCallbackPage) => string;
15683
+ /**
15684
+ * Start a one-shot OAuth callback server. The returned handle's `redirectUri`
15685
+ * should be passed to the authorization server as the `redirect_uri` query
15686
+ * parameter; `promise` resolves once the user finishes the browser flow.
15687
+ *
15688
+ * Always `await handle.close()` in a `finally` block — even on success, the
15689
+ * server stays open until told to shut down (so it can serve the
15690
+ * "you can close this tab" page).
15691
+ */
15692
+ declare function startOAuthCallback(opts?: OAuthCallbackOptions): Promise<OAuthCallbackHandle>;
15693
+ //#endregion
15393
15694
  //#region src/mcp/oauth-provider.d.ts
15394
15695
  /**
15395
15696
  * Per-server persisted state. Subfields are optional so a partial save
@@ -15510,6 +15811,13 @@ interface LoginMcpServerOptions {
15510
15811
  onAuthorizationUrl?: (url: URL) => void | Promise<void>;
15511
15812
  /** Cancels the flow (esc / close modal / SIGINT). */
15512
15813
  signal?: AbortSignal;
15814
+ /**
15815
+ * Renders the post-redirect browser page — hosts pass their themed
15816
+ * renderer (zidane's TUI: `renderDefaultCallbackPage`) so MCP logins
15817
+ * end on the same screen as provider OAuth logins. The server name
15818
+ * rides as `page.provider`.
15819
+ */
15820
+ renderCallbackPage?: McpOAuthCallbackPageRenderer;
15513
15821
  /** Agent hooks. The flow emits `mcp:auth:url`/`success`/`error` when wired. */
15514
15822
  hooks?: Hookable<AgentHooks>;
15515
15823
  /** Override `client_name` shown on consent screens. Default: 'zidane'. */
@@ -15559,98 +15867,6 @@ interface LoginMcpServerResult {
15559
15867
  */
15560
15868
  declare function loginMcpServer(config: McpServerConfig, options: LoginMcpServerOptions): Promise<LoginMcpServerResult>;
15561
15869
  //#endregion
15562
- //#region src/mcp/oauth-callback.d.ts
15563
- /**
15564
- * Local loopback HTTP callback for OAuth 2.0 authorization code flows.
15565
- *
15566
- * Stands up a one-shot server on `127.0.0.1:<random>` that captures the
15567
- * `?code=...` redirect from a browser-driven OAuth flow and resolves a
15568
- * promise with the code. Used as the `redirectUrl` half of the MCP SDK's
15569
- * `OAuthClientProvider` (the persistence half lives separately).
15570
- *
15571
- * Design:
15572
- * - Loopback-only (`127.0.0.1`) — the OAuth spec treats `http://127.0.0.1:<port>`
15573
- * as a public-client redirect URI per RFC 8252 §7.3. Browsers do NOT block it,
15574
- * and Anthropic / OpenAI / Linear / GitHub all accept it.
15575
- * - Random port (`port = 0`) — the OS picks an unused one. We read the actual
15576
- * port back from `server.address()` after `listen()`.
15577
- * - Single-shot — the first GET to `path` with a `code` (or `error`) wins;
15578
- * subsequent requests get 404. The server keeps listening (in case the user
15579
- * hits "back" and re-authorizes), so callers must `close()` once they have
15580
- * the code or have given up.
15581
- * - Abort-aware — wiring an external `AbortSignal` rejects the promise and
15582
- * closes the server immediately. Required for the TUI's "esc cancels login"
15583
- * UX.
15584
- * - No HTML framework — a single inline `<html>` string keeps this isolated
15585
- * from any UI dependency.
15586
- */
15587
- /**
15588
- * Result of a successful callback. `state` is forwarded verbatim from the
15589
- * query string — callers verify it against their pre-flight value to defend
15590
- * against CSRF (the MCP SDK does this internally when it controls `state`).
15591
- */
15592
- interface OAuthCallbackResult {
15593
- code: string;
15594
- state?: string;
15595
- }
15596
- interface OAuthCallbackHandle {
15597
- /**
15598
- * Full URI to register with the authorization server, e.g.
15599
- * `http://127.0.0.1:51823/callback`. Stable for the lifetime of the
15600
- * handle.
15601
- */
15602
- redirectUri: string;
15603
- /**
15604
- * Resolves with `{ code, state }` on a successful callback. Rejects with:
15605
- * - The OAuth-spec `error` field (`access_denied`, `server_error`, ...)
15606
- * when the authorization server redirects with `?error=...`.
15607
- * - `'OAuth callback aborted'` when the external `AbortSignal` fires.
15608
- * - `'OAuth callback server closed'` when `close()` is called before any
15609
- * callback arrives.
15610
- *
15611
- * Single-shot — only the first matching request resolves the promise.
15612
- */
15613
- promise: Promise<OAuthCallbackResult>;
15614
- /**
15615
- * Idempotent shutdown. Safe to call from a `finally` block whether the
15616
- * flow succeeded, failed, or was aborted. Resolves once the server stops
15617
- * accepting connections.
15618
- */
15619
- close: () => Promise<void>;
15620
- }
15621
- interface OAuthCallbackOptions {
15622
- /** Cancels the flow — rejects `promise` and closes the server. */
15623
- signal?: AbortSignal;
15624
- /**
15625
- * Path component the authorization server should redirect to. Defaults
15626
- * to `/callback`. Useful when matching a pre-registered URI that uses a
15627
- * different path.
15628
- */
15629
- path?: string;
15630
- /**
15631
- * Override the loopback host. Defaults to `127.0.0.1`. Don't bind to
15632
- * `0.0.0.0` here — the OAuth code is a one-time secret and the server
15633
- * would otherwise accept it from any host on the LAN.
15634
- */
15635
- host?: string;
15636
- /**
15637
- * Override the port. Defaults to `0` (OS-assigned). Pin to a fixed port
15638
- * only when the authorization server requires a pre-registered redirect
15639
- * URI; the random-port path is preferred so concurrent flows don't clash.
15640
- */
15641
- port?: number;
15642
- }
15643
- /**
15644
- * Start a one-shot OAuth callback server. The returned handle's `redirectUri`
15645
- * should be passed to the authorization server as the `redirect_uri` query
15646
- * parameter; `promise` resolves once the user finishes the browser flow.
15647
- *
15648
- * Always `await handle.close()` in a `finally` block — even on success, the
15649
- * server stays open until told to shut down (so it can serve the
15650
- * "you can close this tab" page).
15651
- */
15652
- declare function startOAuthCallback(opts?: OAuthCallbackOptions): Promise<OAuthCallbackHandle>;
15653
- //#endregion
15654
15870
  //#region src/metrics.d.ts
15655
15871
  type MetricAttributes = Record<string, string | number | boolean | undefined>;
15656
15872
  interface Counter {
@@ -16133,5 +16349,5 @@ declare function definePreset(config: Preset): Preset;
16133
16349
  */
16134
16350
  declare function composePresets(...presets: Preset[]): Preset;
16135
16351
  //#endregion
16136
- export { maybePersistToolResult as $, resolveExtensionConfig as $a, CommandAgentResult as $c, ProgressNudgeKind as $d, SkillResource as $f, ExtensionInstallError as $i, LogLevel as $l, planBasetenReasoning as $m, waitTask as $n, ExtensionHudWriter as $o, HistoryRepair as $p, BASE_INSTRUCTIONS as $r, SkillInstallResult as $s, TrajectoryStep as $t, cerebrasDescriptor as $u, MetricsHookSet as A, ExtensionConfigActionItem as Aa, resolveChipColor as Ac, ContextUsageSplit as Ad, ToolResultMetadata as Af, defaultRepeatGuardTracked as Ai, Question as Al, buildAssistantContent as Am, FormattedHeadlessTurnEvent as An, ExtensionSessionStateSurface as Ao, ToWireMessagesOptions as Ap, RunSummaryCollectorOptions as Ar, matchModelEntries as As, EvalRunMetricAggregate as At, SessionMeta as Au, loginMcpServer as B, ExtensionConfigNumberItem as Ba, useCompletion as Bc, CompactFunction as Bd, ToolMap as Bf, McpToolWrap as Bi, isInteractionTool as Bl, OpenAIParams as Bm, ProviderTranscriptFormat as Bn, ExtensionToolRendererRegistration as Bo, toAnthropic as Bp, PostCompactRestoreOptions as Br, validateResourcePathReal as Bs, EvalVariantSummary as Bt, restoreChainFallbacks as Bu, normalizeProviders as C, scanExtensionDirectories as Ca, DEFAULT_THEME as Cc, ContextCategoryId as Cd, ToolOutcome as Cf, CacheDimensionName as Ci, PRESENT_PLAN_TOOL as Cl, OpenAICompatHttpError as Cm, llmJudge as Cn, ExtensionPaths as Co, EnsureToolResultPairingOptions as Cp, glob as Cr, SubagentOverride as Cs, EvalArtifacts as Ct, EditHunk as Cu, InstrumentOptions as D, ExtensionPromptDelivery as Da, ThemeColors as Dc, ContextItem as Dd, ToolResultDocumentRefContent as Df, installCacheBreakLogger as Di, PlanRequest as Dl, applyOAICacheBreakpoints as Dm, runEvalCase as Dn, ExtensionRegistry as Do, RemintResult as Dp, RunSummaryBudget as Dr, SpawnModelEntry as Ds, EvalDefinitionContext as Dt, Owner as Du, Histogram as E, ExtensionPromptBridge as Ea, Theme as Ec, ContextExtensionSection as Ed, ToolResultDocumentContent as Ef, fnv1a32 as Ei, PlanPayload as El, TOOL_RESULTS_TAG as Em, relativeArtifactPath as En, ExtensionProviderMiddleware as Eo, PairingRepairMode as Ep, RunSummaryBlock as Er, isSpawnTool as Es, EvalDefinition as Et, EditPayload as Eu, OAuthCallbackOptions as F, ExtensionConfigChangeBehavior as Fa, createPathAutocompleteProvider as Fc, AgentStats as Fd, toolOutputBudgetByteLength as Ff, AgentHookMap as Fi, QuestionType as Fl, openAICompatPromptMessage as Fm, HeadlessResult as Fn, ExtensionToolCatalogTransform as Fo, ensureToolResultPairing as Fp, createRunSummaryCollector as Fr, SkillValidationResult as Fs, EvalRunUsage as Ft, buildRunModel as Fu, createMemoryMcpCredentialStore as G, ExtensionConfigValueItem as Ga, CompletionReference as Gc, DedupToolConfig as Gd, hashContent as Gf, buildExtensionRegistry as Gi, useInteractionsQueue as Gl, LocalParams as Gm, headlessEventToJsonl as Gn, ExtensionTuiSurface as Go, attachStderrWarnPump as Gp, selectRecentFiles as Gr, interpolateShellCommands as Gs, MetricDirection as Gt, ProviderKey as Gu, McpCredentialStore as H, ExtensionConfigStringItem as Ha, CompletionContext as Hc, CompactStartHookContext as Hd, ReadStateEntry as Hf, BuildExtensionRegistryOptions as Hi, pendingInteractionsFromTurns as Hl, mapCodexStopReason as Hm, formatHeadlessResult as Hn, ExtensionToolResultPatch as Ho, toWireMessages as Hp, buildPostCompactAttachments as Hr, validateSkillName as Hs, EvalWorkspaceOptions as Ht, toggleChainEntry as Hu, OAuthCallbackResult as I, ExtensionConfigEnumItem as Ia, patchInlineGhost as Ic, AutoCompact as Id, toolOutputByteLength as If, AgentHooks as Ii, SelectQuestion as Il, openaiCompat as Im, HeadlessStatus as In, ExtensionToolPolicy as Io, filterUnresolvedToolUses as Ip, BYTES_PER_TOKEN as Ir, isToolAllowedByUnion as Is, EvalScore as It, chainPositionOf as Iu, PERSISTENCE_PREVIEW_BYTES as J, WireExtensionConfigSchema as Ja, collectReferences as Jc, McpToolHookContext as Jd, readStateKey as Jf, filterExtensionRegistry as Ji, StandardSchemaLike as Jl, cursor as Jm, runHeadless as Jn, TuiContributions as Jo, nonOwningMcpView as Jp, CompactResult as Jr, SkillCandidateDetail as Js, MetricSpecMap as Jt, CustomField as Ju, hasAuthorizationHeader as K, StoredExtensionConfigItem as Ka, CompletionSubmitContext as Kc, JsonValue as Kd, hydrateReadStateFromSession as Kf, composeExtensionPreset as Ki, InferSchemaOutput as Kl, local as Km, installHeadlessEventAdapter as Kn, GuiContributions as Ko, connectMcpServers as Kp, CompactEndEvent as Kr, stripShellInterpolations as Ks, MetricEmitter as Kt, detectAuth as Ku, startOAuthCallback as L, ExtensionConfigItem as La, resolveInlineSuggestion as Lc, AutoCompactConfig as Ld, toolResultToText as Lf, AgentOptions as Li, TextQuestion as Ll, toOAIMessages as Lm, HeadlessUsage as Ln, ExtensionToolRenderProps as Lo, fromAnthropic as Lp, estimateTokens as Lr, matchesAllowedTool as Ls, EvalScorer as Lt, chainsEqual as Lu, UpDownCounter as M, ExtensionConfigActionStatus as Ma, InlineAutocompleteContext as Mc, AgentBehavior as Md, ToolResultVideoContent as Mf, stableStringify as Mi, QuestionPayload as Ml, consumeSSE as Mm, HeadlessEvent as Mn, ExtensionSource as Mo, autoDetectAndConvert as Mp, RunSummaryRepeatGuard as Mr, writeSkillToDisk as Ms, EvalRunReporterOptions as Mt, StreamEvent as Mu, createMetricsHooks as N, ExtensionConfigBooleanItem as Na, InlineAutocompleteProvider as Nc, AgentClock as Nd, TurnFinishReason as Nf, localReliabilityBehavior as Ni, QuestionRequest as Nl, formatTools as Nm, HeadlessOptions as Nn, ExtensionStorageScope as No, detectTurnInterruption as Np, RunSummaryTokens as Nr, writeSkillsToDisk as Ns, EvalRunSummary as Nt, ToolCallDisplay as Nu, Meter as O, createExtensionPromptBridge as Oa, ThemeSelect as Oc, ContextMcpGroup as Od, ToolResultImageContent as Of, snapshotCacheDimensions as Oi, PlanResponse as Ol, applyOAIToolCacheBreakpoint as Om, statusCompleted as On, ExtensionRunTransform as Oo, SYNTHETIC_TOOL_RESULT_PLACEHOLDER as Op, RunSummaryByModel as Or, createModelSearchTool as Os, EvalMetric as Ot, Picked as Ou, OAuthCallbackHandle as P, ExtensionConfigCategory as Pa, InlineGhost as Pc, AgentRunOptions as Pd, TurnUsage as Pf, Agent as Pi, QuestionResponse as Pl, mapOAIFinishReason as Pm, HeadlessOutputFormat as Pn, ExtensionStorageSurface as Po, ensureEndsWithUserMessage as Pp, RunSummaryValidation as Pr, SkillValidationIssue as Ps, EvalRunSummaryCase as Pt, ModelChainEntry as Pu, cleanupPersistedSession as Q, isValidExtensionConfigValue as Qa, Command as Qc, OAuthRefreshHookContext as Qd, SkillDiagnostic as Qf, ExtensionInstallCandidate as Qi, ConsoleSinkOptions as Ql, baseten as Qm, WAIT_TASK_TIMED_OUT_PREFIX as Qn, ExtensionHudStatus as Qo, wrapDiscoveredMcpTools as Qp, CompactPromptTooLongError as Qr, SkillInstallOptions as Qs, Trajectory as Qt, anthropicDescriptor as Qu, LoginMcpServerOptions as R, ExtensionConfigItemBase as Ra, tokenEndingAtCursor as Rc, ChildRunStats as Rd, ToolContext as Rf, McpConnector as Ri, buildResumedToolResultsTurn as Rl, toolResultsMessage as Rm, OpenAIChatContentPart as Rn, ExtensionToolRenderer as Ro, fromOpenAI as Rp, utf8ByteLength as Rr, parseAllowedToolPattern as Rs, EvalScorerContext as Rt, filterChainFallbacks as Ru, createMutationValidationHooks as S, parseExtensionScanPathEnv as Sa, ChipColorMap as Sc, ContextCategory as Sd, ToolHookContext as Sf, CacheDimensionDiff as Si, InteractionsProvider as Sl, OpenAICompatAuthHeader as Sm, functionalityMetric as Sn, ExtensionOrderedContribution as So, createFileMapStore as Sp, grep as Sr, SubagentDef as Ss, EvalAgentStats as St, EditDiffDisplay as Su, Counter as T, discoverAndBuildExtensionRegistry as Ta, SyntaxTokenStyle as Tc, ContextExtensionRow as Td, ToolResultContent as Tf, diffCacheDimensions as Ti, PlanDecision as Tl, OpenAICompatStreamError as Tm, registerEvalTests as Tn, ExtensionPromptTransform as To, PairingRepair as Tp, RunSummary as Tr, createSpawnTool as Ts, EvalCaseResult as Tt, EditOutcomeKind as Tu, McpOAuthProvider as U, ExtensionConfigSurface as Ua, CompletionItem as Uc, DEFAULT_AGENT_CLOCK as Ud, ReadStateMap as Uf, ExtensionCatalogPartition as Ui, serializeInteractionResponse as Ul, openai as Um, formatHeadlessTurnEvent as Un, ExtensionToolResultTransform as Uo, ConnectMcpServersOptions as Up, selectFilesFromReadState as Ur, resolveSkills as Us, EvalWorkspaceSnapshot as Ut, AuthMethod as Uu, McpCredentialEntry as V, ExtensionConfigScope as Va, ActiveTrigger as Vc, CompactHookContext as Vd, HydrateReadStateOptions as Vf, createAgent as Vi, makeRequestInteraction as Vl, classifyOpenAIError as Vm, exitCodeForHeadlessResult as Vn, ExtensionToolResultMetadataRegistration as Vo, toOpenAI as Vp, RecentFile as Vr, validateSkillForWrite as Vs, EvalWorkspaceFile as Vt, sanitizeModelChain as Vu, McpOAuthProviderOptions as W, ExtensionConfigValue as Wa, CompletionProvider as Wc, DedupHasher as Wd, getReadState as Wf, buildExtensionPreset as Wi, useInteractionsActions as Wl, toPiMessages as Wm, formattedHeadlessTurnEventToJsonl as Wn, ExtensionToolVerdict as Wo, McpConnection as Wp, selectFilesFromSession as Wr, InterpolateShellCommandsOptions as Ws, LlmJudgeOptions as Wt, ProviderAuth as Wu, PersistOutcome as X, coerceExtensionConfigInput as Xa, mergeReferences as Xc, ModelTarget as Xd, ShellInterpolationApproval as Xf, partitionExtensionCatalog as Xi, resolveSchemaInput as Xl, cerebras as Xm, transcriptToProviderMessages as Xn, ExtensionHud as Xo, normalizeMcpServers as Xp, compactConversation as Xr, SkillInstallError as Xs, RegisterEvalTestsOptions as Xt, ModelOption as Xu, PersistInput as Y, clampExtensionConfigNumber as Ya, findActiveTrigger as Yc, McpToolSchema as Yd, resolveReadStateMap as Yf, mergeContributions as Yi, isStandardSchema as Yl, CerebrasParams as Ym, transcriptToOpenAIMessages as Yn, ExtensionBannerOptions as Yo, normalizeMcpBlocks as Yp, CompactStartEvent as Yr, SkillInstallCandidate as Ys, MetricStats as Yt, ModelInfo as Yu, buildPersistedStub as Z, isValidExtensionConfigItem as Za, resolveCompletionSubmit as Zc, ModelTargetSpec as Zd, SkillConfig as Zf, ExtensionFetchResult as Zi, zodToJsonSchema as Zl, BasetenParams as Zm, writeFile as Zn, ExtensionHudState as Zo, resultToString as Zp, CompactInvalidInputError as Zr, SkillInstallErrorCode as Zs, ReusableExecutionContext as Zt, ProviderDescriptor as Zu, MutationValidationFailure as _, ExtensionScanEntry as _a, SkillActivationState as _c, shouldAutoCompact as _d, SessionTurn as _f, summaryToTurn as _i, ConfirmQuestion as _l, normalizeOpenRouterModelId as _m, fileExistsOneOf as _n, ExtensionKeybindingDispatchContext as _o, RemoteStoreOptions as _p, readFile as _r, SpawnTaskInput as _s, EvalAgent as _t, DEFAULT_PERSIST_EXCLUDE_TOOLS as _u, basicTools as a, ExtensionInstallSource as aa, SourcedScanPath as ac, modelOptionsFor as ad, PromptTextPart as af, anthropic as ah, buildCompactPrompt as ai, CommandInvocation as al, ToolCall as am, clearRegisteredEvals as an, ExtensionBehaviorTransform as ao, SessionMetaRow as ap, ToolSearchToolOptions as ar, ExtensionHostRuntimeBridge as as, TOOL_USE_SKIPPED_MESSAGE as at, RingBufferSink as au, MutationValidationResult as b, inlineLoadedExtension as ba, BUILTIN_THEMES as bc, ContextBreakdownContributor as bd, ThinkingLevel as bf, generateStructuredData as bi, InteractionResponse as bl, OAIMessage as bm, formatEvalRunSummary as bn, ExtensionModal as bo, FileMapAdapter as bp, InteractionToolOptions as br, SpawnToolOptions as bs, EvalAgentRunResult as bt, resolveAgentId as bu, StartSpan as c, fetchExtensionSource as ca, inferSource as cc, openaiDescriptor as cd, RepeatGuardToolMatcher as cf, defaultAnthropicMaxTokens as ch, buildTailCompactPrompt as ci, CommandSpawnTask as cl, TurnResult as cm, createEvalRunReporter as cn, ExtensionContextTransform as co, createSession as cp, createSkillsUseTool as cr, ExtensionRuntimeSurface as cs, ExtensionEditMarker as ct, createLoggingHooks as cu, TracingHooksOptions as d, parseExtensionInstallSource as da, buildCatalog as dc, restoreModelOptions as dd, RetryConfig as df, resolveAnthropicMaxOutput as dh, CompactScope as di, CommandStepFn as dl, SchemaSanitizeOptions as dm, defineMetrics as dn, ExtensionCustomRendererEntry as do, demoteStaleRunningStatus as dp, SkillsReadToolOptions as dr, ExtensionWorkspacePair as ds, extensionDirForCwd as dt, AgentProfile as du, ExtensionInstallErrorCode as ea, SkillInstallSpec as ec, credKeyOf as ed, ProgressNudgeMessage as ef, ArceeParams as eh, CompactDirection as ei, CommandArgSuggestion as el, Provider as em, TrajectoryStepKind as en, resolveExtensionConfigValue as eo, SkillSource as ep, ValidationResult as er, ExtensionNotification as es, resolvePersistDir as et, LogRecord as eu, createTracingHooks as f, readExtensionInstallProvenance as fa, IMPLICITLY_ALLOWED_SKILL_TOOLS as fc, AUTO_COMPACT_MIN_GROWTH_FRACTION as fd, RunHookMap as ff, CompactionSlice as fi, commandSteps as fl, SchemaSanitizeProfile as fm, efficiencyMetricValues as fn, ExtensionDefinition as fo, getExtensionSessionState as fp, createSkillsReadTool as fr, ExtensionWorkspaceSurface as fs, extensionScaffold as ft, AgentRegistry as fu, MutationValidationBatch as g, ENTRY_CANDIDATES as ga, DeactivationReason as gc, effectiveContextWindow as gd, SessionMessage as gf, stripImagesFromTurns as gi, AnswerValue as gl, OpenRouterParams as gm, fileExists as gn, ExtensionKeybinding as go, withExtensionSession as gp, shell as gr, ExtensionSubagentDef as gs, EFFICIENCY_METRICS as gt, DEFAULT_BUDGET_EXCLUDE_TOOLS as gu, statsByModel as h, registerExtensionHostModules as ha, ActiveSkill as hc, OUTPUT_RESERVE_TOKENS as hd, SessionHookContext as hf, sliceForCompaction as hi, ASK_USER_TOOL as hl, sanitizeToolSpecs as hm, fileContentQuality as hn, ExtensionGuiSurface as ho, setExtensionSessionState as hp, createShellTool as hr, ChildAgent as hs, CreateEvalAgentOptions as ht, DEFAULT_AGENT_ID as hu, _default as i, ExtensionInstallScope as ia, readSkillProvenance as ic, localDescriptor as id, PromptPart as if, AnthropicThinkingPlan as ih, TRAILER as ii, CommandInteraction as il, TokenCountPayload as im, buildTrajectory as in, ExtensionApiVersion as io, SessionData as ip, LazyToolEntry as ir, createExtensionHud as is, TOOL_USE_CANCELLED_MESSAGE as it, LoggingHooksOptions as iu, MetricsHooksOptions as j, ExtensionConfigActionResult as ja, resolveTheme as jc, buildContextBreakdown as jd, ToolResultTextContent as jf, normalizeShellCommand as ji, QuestionChoice as jl, classifyOpenAICompatError as jm, HeadlessErrorInfo as jn, ExtensionSkillPolicy as jo, TurnInterruptionState as jp, RunSummaryError as jr, defineSkill as js, EvalRunReporter as jt, Settings as ju, MetricAttributes as k, defineExtension as ka, ThemeSurfaces as kc, ContextSnapshot as kd, ToolResultImageRefContent as kf, defaultRepeatGuardNormalize as ki, PlanStep as kl, assistantMessage as km, FormattedHeadlessResult as kn, ExtensionRuntimeEnv as ko, TOOL_USE_INTERRUPTED_MARKER as kp, RunSummaryCollector as kr, formatModelLine as ks, EvalMetricError as kt, Screen as ku, TracingConventions as l, installExtensionFromSpec as la, parseFrontmatter as lc, openrouterDescriptor as ld, ResolveContentRef as lf, planAnthropicThinking as lh, buildUpToCompactPrompt as li, CommandStep as ll, XaiParams as lm, createReusableExecutionContext as ln, ExtensionContributions as lo, currentExtensionSession as lp, SkillsRunScriptToolOptions as lr, ExtensionSessionSummary as ls, ZIDANE_EXTENSION_SKILL_NAME as lt, jsonSink as lu, flattenTurns as m, updateInstalledExtension as ma, ActivationVia as mc, AutoCompactInput as md, SessionEndStatus as mf, anchorPreviewFor as mi, parseCommandInvocation as ml, sanitizeToolSchema as mm, fileContains as mn, ExtensionGuiPanel as mo, resumeChainRunIds as mp, CreateShellToolOptions as mr, createWorkspaceSurface as ms, withZidaneExtensionSkill as mt, BUILTIN_AGENTS as mu, composePresets as n, ExtensionInstallProvenance as na, listSkillCandidates as nc, getContextWindow as nd, PromptDocumentPart as nf, AnthropicContextManagement as nh, CompactPromptOptions as ni, CommandExecution as nl, StreamCallbacks as nm, buildEvalRunSummary as nn, toWireConfigSchema as no, CreateSessionOptions as np, TailTruncateOptions as nr, ExtensionNotifyTone as ns, INTERRUPT_MESSAGE_FOR_TOOL_USE as nt, Logger as nu, GEN_AI_ATTRIBUTES as o, InstallExtensionFromSpecOptions as oa, discoverSkills as oc, modelSupportsReasoning as od, PromptVideoPart as of, applyAnthropicCacheBreakpoints as oh, buildFromCompactPrompt as oi, CommandOutputBlock as ol, ToolResult as om, computeEvalTagScores as on, ExtensionCapability as oo, SessionRun as op, createToolSearchTool as or, ExtensionHostRuntimeImpl as os, applyCompactSummaryCutoff as ot, consoleSink as ou, ModelUsage as p, removeInstalledExtension as pa, installAllowedToolsGate as pc, AutoCompactDecision as pd, SessionContentBlock as pf, SummaryToTurnInput as pi, executeCommand as pl, SchemaSanitizeResult as pm, emitEfficiencyMetrics as pn, ExtensionFooterHint as po, loadSession as pp, shellKill as pr, createExtensionHostRuntimeBridge as ps, resolveExtensionDocsDir as pt, BUILD_AGENT as pu, PERSISTED_STUB_PREFIX as q, WireExtensionConfigItem as qa, applyInsert as qc, McpServerConfig as qd, hydrateReadStateFromSessionAsync as qf, disposeExtensionRegistry as qi, SchemaInput as ql, CursorParams as qm, providerTranscriptFormatForProvider as qn, LoadedExtension as qo, deriveMcpToolMeta as qp, CompactOptions as qr, SKILL_PROVENANCE_FILE as qs, MetricSpec as qt, BUILTIN_PROVIDERS as qu, definePreset as r, ExtensionInstallResult as ra, parseSkillInstallSpec as rc, getModelInfo as rd, PromptImagePart as rf, AnthropicParams as rh, NO_TOOLS_PREAMBLE as ri, CommandGenerateDataOptions as rl, StreamOptions as rm, buildRegisteredEvals as rn, EMPTY_EXTENSION_REGISTRY as ro, Session as rp, tailTruncate as rr, ExtensionStatusOptions as rs, SHELL_CASCADE_CANCEL_MESSAGE as rt, LoggingHookSet as ru, Span as s, InstalledExtensionTargetOptions as sa, getDefaultScanPaths as sc, modelsForDescriptor as sd, RepeatGuardConfig as sf, classifyAnthropicError as sh, buildFullCompactPrompt as si, CommandSpawnResult as sl, ToolSpec as sm, createEvalAgent as sn, ExtensionContext as so, SessionStore as sp, SkillsUseToolOptions as sr, ExtensionModelEntry as ss, EXTENSION_EDIT_METADATA_KEY as st, createLogger as su, Preset as t, ExtensionInstallIo as ta, installSkillFromSpec as tc, enabledModelOptions as td, PromptAudioPart as tf, arcee as th, CompactPromptBuilder as ti, CommandAttachment as tl, ProviderCapabilities as tm, artifactPath as tn, sanitizeExtensionConfigActionPatch as to, SkillsConfig as tp, validateToolArgs as tr, ExtensionNotifyOptions as ts, resolveTasksDir as tt, LogSink as tu, TracingHookSet as u, listExtensionCandidates as ua, parseSkillFile as uc, piIdOf as ud, ResolveContentRefBlock as uf, resolveAnthropicBetas as uh, ANCHOR_PREVIEW_MAX_CHARS as ui, CommandStepContext as ul, xai as um, defineEval as un, ExtensionCustomRenderer as uo, deleteExtensionSessionState as up, createSkillsRunScriptTool as ur, ExtensionSessionsSurface as us, buildZidaneExtensionSkill as ut, AgentAccent as uu, MutationValidationHooksOptions as v, defaultExtensionScanPaths as va, SkillActivationStateOptions as vc, ContextBreakdown as vd, SpawnHookContext as vf, truncateHeadForPtlRetry as vi, CreateInteractionToolsOptions as vl, openrouter as vm, finalizeEvalMetrics as vn, ExtensionManifest as vo, createRemoteStore as vp, multiEdit as vr, SpawnTaskOutcome as vs, EvalAgentMcpServers as vt, PLAN_AGENT as vu, resolveModelTargets as w, DiscoverAndBuildExtensionRegistryOptions as wa, SyntaxStyles as wc, ContextExactCounts as wd, ToolResultAudioContent as wf, CacheDimensionSnapshot as wi, PendingInteractionEntry as wl, OpenAICompatParams as wm, normalizeMetric as wn, ExtensionPermission as wo, ORPHANED_TOOL_RESULT_MARKER as wp, edit as wr, SubagentRegistry as ws, EvalCaseOptions as wt, EditOutcome as wu, SuccessfulMutationOutcome as x, isExtensionDefinition as xa, ChipColor as xc, ContextBreakdownOptions as xd, ToolBatchExecutor as xf, CacheBreakLoggerOptions as xi, InteractionsActions as xl, OAITool as xm, formatTrajectoryLine as xn, ExtensionModalNode as xo, FileMapStoreOptions as xp, createInteractionTool as xr, SpawnToolState as xs, EvalAgentRunStats as xt, singleAgentRegistry as xu, MutationValidationMutation as y, discoverExtensions as ya, createSkillActivationState as yc, ContextBreakdownContributionContext as yd, StreamHookContext as yf, GenerateStructuredDataOptions as yi, InteractionRequest as yl, ASSISTANT_TOOL_CALLS_TAG as ym, formatEvalCaseSummary as yn, ExtensionMcpConfigTransform as yo, createMemoryStore as yp, listFiles as yr, SpawnTool as ys, EvalAgentRunOptions as yt, accentColor as yu, LoginMcpServerResult as z, ExtensionConfigModelItem as za, CompletionState as zc, CompactEndHookContext as zd, ToolDef as zf, McpToolMeta as zi, createInteractionTools as zl, userMessage as zm, OpenAIChatMessage as zn, ExtensionToolRendererEntry as zo, remintDuplicateToolCallIds as zp, PostCompactAttachments as zr, validateResourcePath as zs, EvalTestRunner as zt, providerKeySetChanged as zu };
16137
- //# sourceMappingURL=index-8zm_hwdY.d.ts.map
16352
+ export { maybePersistToolResult as $, resolveExtensionConfig as $a, CommandAgentResult as $c, ProgressNudgeKind as $d, SkillResource as $f, ExtensionInstallError as $i, LogLevel as $l, cerebras as $m, waitTask as $n, ExtensionHudWriter as $o, normalizeMcpServers as $p, BASE_INSTRUCTIONS as $r, SkillInstallResult as $s, TrajectoryStep as $t, cerebrasDescriptor as $u, MetricsHookSet as A, ExtensionConfigActionItem as Aa, resolveChipColor as Ac, ContextUsageSplit as Ad, ToolResultMetadata as Af, defaultRepeatGuardTracked as Ai, Question as Al, applyOAICacheBreakpoints as Am, FormattedHeadlessTurnEvent as An, ExtensionSessionStateSurface as Ao, TOOL_USE_INTERRUPTED_MARKER as Ap, RunSummaryCollectorOptions as Ar, matchModelEntries as As, EvalRunMetricAggregate as At, SessionMeta as Au, McpOAuthProviderOptions as B, ExtensionConfigNumberItem as Ba, useCompletion as Bc, CompactFunction as Bd, ToolMap as Bf, McpToolWrap as Bi, isInteractionTool as Bl, toOAIMessages as Bm, ProviderTranscriptFormat as Bn, ExtensionToolRendererRegistration as Bo, reasoningWireAction as Bp, PostCompactRestoreOptions as Br, validateResourcePathReal as Bs, EvalVariantSummary as Bt, restoreChainFallbacks as Bu, normalizeProviders as C, scanExtensionDirectories as Ca, DEFAULT_THEME as Cc, ContextCategoryId as Cd, ToolOutcome as Cf, CacheDimensionName as Ci, PRESENT_PLAN_TOOL as Cl, OAIMessage as Cm, llmJudge as Cn, ExtensionPaths as Co, EnsureToolResultPairingOptions as Cp, glob as Cr, SubagentOverride as Cs, EvalArtifacts as Ct, EditHunk as Cu, InstrumentOptions as D, ExtensionPromptDelivery as Da, ThemeColors as Dc, ContextItem as Dd, ToolResultDocumentRefContent as Df, installCacheBreakLogger as Di, PlanRequest as Dl, OpenAICompatParams as Dm, runEvalCase as Dn, ExtensionRegistry as Do, ReasoningWireAction as Dp, RunSummaryBudget as Dr, SpawnModelEntry as Ds, EvalDefinitionContext as Dt, Owner as Du, Histogram as E, ExtensionPromptBridge as Ea, Theme as Ec, ContextExtensionSection as Ed, ToolResultDocumentContent as Ef, fnv1a32 as Ei, PlanPayload as El, OpenAICompatHttpError as Em, relativeArtifactPath as En, ExtensionProviderMiddleware as Eo, PairingRepairMode as Ep, RunSummaryBlock as Er, isSpawnTool as Es, EvalDefinition as Et, EditPayload as Eu, LoginMcpServerResult as F, ExtensionConfigChangeBehavior as Fa, createPathAutocompleteProvider as Fc, AgentStats as Fd, toolOutputBudgetByteLength as Ff, AgentHookMap as Fi, QuestionType as Fl, consumeSSE as Fm, HeadlessResult as Fn, ExtensionToolCatalogTransform as Fo, ensureEndsWithUserMessage as Fp, createRunSummaryCollector as Fr, SkillValidationResult as Fs, EvalRunUsage as Ft, buildRunModel as Fu, OAuthCallbackResult as G, ExtensionConfigValueItem as Ga, CompletionReference as Gc, DedupToolConfig as Gd, hashContent as Gf, buildExtensionRegistry as Gi, useInteractionsQueue as Gl, mapCodexStopReason as Gm, headlessEventToJsonl as Gn, ExtensionTuiSurface as Go, toWireMessages as Gp, selectRecentFiles as Gr, interpolateShellCommands as Gs, MetricDirection as Gt, ProviderKey as Gu, hasAuthorizationHeader as H, ExtensionConfigStringItem as Ha, CompletionContext as Hc, CompactStartHookContext as Hd, ReadStateEntry as Hf, BuildExtensionRegistryOptions as Hi, pendingInteractionsFromTurns as Hl, userMessage as Hm, formatHeadlessResult as Hn, ExtensionToolResultPatch as Ho, sanitizeHistoryForProvider as Hp, buildPostCompactAttachments as Hr, validateSkillName as Hs, EvalWorkspaceOptions as Ht, toggleChainEntry as Hu, loginMcpServer as I, ExtensionConfigEnumItem as Ia, patchInlineGhost as Ic, AutoCompact as Id, toolOutputByteLength as If, AgentHooks as Ii, SelectQuestion as Il, formatTools as Im, HeadlessStatus as In, ExtensionToolPolicy as Io, ensureToolResultPairing as Ip, BYTES_PER_TOKEN as Ir, isToolAllowedByUnion as Is, EvalScore as It, chainPositionOf as Iu, PERSISTENCE_PREVIEW_BYTES as J, WireExtensionConfigSchema as Ja, collectReferences as Jc, McpToolHookContext as Jd, readStateKey as Jf, filterExtensionRegistry as Ji, StandardSchemaLike as Jl, LocalParams as Jm, runHeadless as Jn, TuiContributions as Jo, attachStderrWarnPump as Jp, CompactResult as Jr, SkillCandidateDetail as Js, MetricSpecMap as Jt, CustomField as Ju, startOAuthCallback as K, StoredExtensionConfigItem as Ka, CompletionSubmitContext as Kc, JsonValue as Kd, hydrateReadStateFromSession as Kf, composeExtensionPreset as Ki, InferSchemaOutput as Kl, openai as Km, installHeadlessEventAdapter as Kn, GuiContributions as Ko, ConnectMcpServersOptions as Kp, CompactEndEvent as Kr, stripShellInterpolations as Ks, MetricEmitter as Kt, detectAuth as Ku, McpCredentialEntry as L, ExtensionConfigItem as La, resolveInlineSuggestion as Lc, AutoCompactConfig as Ld, toolResultToText as Lf, AgentOptions as Li, TextQuestion as Ll, mapOAIFinishReason as Lm, HeadlessUsage as Ln, ExtensionToolRenderProps as Lo, filterUnresolvedToolUses as Lp, estimateTokens as Lr, matchesAllowedTool as Ls, EvalScorer as Lt, chainsEqual as Lu, UpDownCounter as M, ExtensionConfigActionStatus as Ma, InlineAutocompleteContext as Mc, AgentBehavior as Md, ToolResultVideoContent as Mf, stableStringify as Mi, QuestionPayload as Ml, assistantMessage as Mm, HeadlessEvent as Mn, ExtensionSource as Mo, TurnInterruptionState as Mp, RunSummaryRepeatGuard as Mr, writeSkillToDisk as Ms, EvalRunReporterOptions as Mt, StreamEvent as Mu, createMetricsHooks as N, ExtensionConfigBooleanItem as Na, InlineAutocompleteProvider as Nc, AgentClock as Nd, TurnFinishReason as Nf, localReliabilityBehavior as Ni, QuestionRequest as Nl, buildAssistantContent as Nm, HeadlessOptions as Nn, ExtensionStorageScope as No, autoDetectAndConvert as Np, RunSummaryTokens as Nr, writeSkillsToDisk as Ns, EvalRunSummary as Nt, ToolCallDisplay as Nu, Meter as O, createExtensionPromptBridge as Oa, ThemeSelect as Oc, ContextMcpGroup as Od, ToolResultImageContent as Of, snapshotCacheDimensions as Oi, PlanResponse as Ol, OpenAICompatStreamError as Om, statusCompleted as On, ExtensionRunTransform as Oo, RemintResult as Op, RunSummaryByModel as Or, createModelSearchTool as Os, EvalMetric as Ot, Picked as Ou, LoginMcpServerOptions as P, ExtensionConfigCategory as Pa, InlineGhost as Pc, AgentRunOptions as Pd, TurnUsage as Pf, Agent as Pi, QuestionResponse as Pl, classifyOpenAICompatError as Pm, HeadlessOutputFormat as Pn, ExtensionStorageSurface as Po, detectTurnInterruption as Pp, RunSummaryValidation as Pr, SkillValidationIssue as Ps, EvalRunSummaryCase as Pt, ModelChainEntry as Pu, cleanupPersistedSession as Q, isValidExtensionConfigValue as Qa, Command as Qc, OAuthRefreshHookContext as Qd, SkillDiagnostic as Qf, ExtensionInstallCandidate as Qi, ConsoleSinkOptions as Ql, CerebrasParams as Qm, WAIT_TASK_TIMED_OUT_PREFIX as Qn, ExtensionHudStatus as Qo, normalizeMcpBlocks as Qp, CompactPromptTooLongError as Qr, SkillInstallOptions as Qs, Trajectory as Qt, anthropicDescriptor as Qu, McpCredentialStore as R, ExtensionConfigItemBase as Ra, tokenEndingAtCursor as Rc, ChildRunStats as Rd, ToolContext as Rf, McpConnector as Ri, buildResumedToolResultsTurn as Rl, openAICompatPromptMessage as Rm, OpenAIChatContentPart as Rn, ExtensionToolRenderer as Ro, fromAnthropic as Rp, utf8ByteLength as Rr, parseAllowedToolPattern as Rs, EvalScorerContext as Rt, filterChainFallbacks as Ru, createMutationValidationHooks as S, parseExtensionScanPathEnv as Sa, ChipColorMap as Sc, ContextCategory as Sd, ToolHookContext as Sf, CacheDimensionDiff as Si, InteractionsProvider as Sl, ASSISTANT_TOOL_CALLS_TAG as Sm, functionalityMetric as Sn, ExtensionOrderedContribution as So, createFileMapStore as Sp, grep as Sr, SubagentDef as Ss, EvalAgentStats as St, EditDiffDisplay as Su, Counter as T, discoverAndBuildExtensionRegistry as Ta, SyntaxTokenStyle as Tc, ContextExtensionRow as Td, ToolResultContent as Tf, diffCacheDimensions as Ti, PlanDecision as Tl, OpenAICompatAuthHeader as Tm, registerEvalTests as Tn, ExtensionPromptTransform as To, PairingRepair as Tp, RunSummary as Tr, createSpawnTool as Ts, EvalCaseResult as Tt, EditOutcomeKind as Tu, OAuthCallbackHandle as U, ExtensionConfigSurface as Ua, CompletionItem as Uc, DEFAULT_AGENT_CLOCK as Ud, ReadStateMap as Uf, ExtensionCatalogPartition as Ui, serializeInteractionResponse as Ul, OpenAIParams as Um, formatHeadlessTurnEvent as Un, ExtensionToolResultTransform as Uo, toAnthropic as Up, selectFilesFromReadState as Ur, resolveSkills as Us, EvalWorkspaceSnapshot as Ut, AuthMethod as Uu, createMemoryMcpCredentialStore as V, ExtensionConfigScope as Va, ActiveTrigger as Vc, CompactHookContext as Vd, HydrateReadStateOptions as Vf, createAgent as Vi, makeRequestInteraction as Vl, toolResultsMessage as Vm, exitCodeForHeadlessResult as Vn, ExtensionToolResultMetadataRegistration as Vo, remintDuplicateToolCallIds as Vp, RecentFile as Vr, validateSkillForWrite as Vs, EvalWorkspaceFile as Vt, sanitizeModelChain as Vu, OAuthCallbackOptions as W, ExtensionConfigValue as Wa, CompletionProvider as Wc, DedupHasher as Wd, getReadState as Wf, buildExtensionPreset as Wi, useInteractionsActions as Wl, classifyOpenAIError as Wm, formattedHeadlessTurnEventToJsonl as Wn, ExtensionToolVerdict as Wo, toOpenAI as Wp, selectFilesFromSession as Wr, InterpolateShellCommandsOptions as Ws, LlmJudgeOptions as Wt, ProviderAuth as Wu, PersistOutcome as X, coerceExtensionConfigInput as Xa, mergeReferences as Xc, ModelTarget as Xd, ShellInterpolationApproval as Xf, partitionExtensionCatalog as Xi, resolveSchemaInput as Xl, CursorParams as Xm, transcriptToProviderMessages as Xn, ExtensionHud as Xo, deriveMcpToolMeta as Xp, compactConversation as Xr, SkillInstallError as Xs, RegisterEvalTestsOptions as Xt, ModelOption as Xu, PersistInput as Y, clampExtensionConfigNumber as Ya, findActiveTrigger as Yc, McpToolSchema as Yd, resolveReadStateMap as Yf, mergeContributions as Yi, isStandardSchema as Yl, local as Ym, transcriptToOpenAIMessages as Yn, ExtensionBannerOptions as Yo, connectMcpServers as Yp, CompactStartEvent as Yr, SkillInstallCandidate as Ys, MetricStats as Yt, ModelInfo as Yu, buildPersistedStub as Z, isValidExtensionConfigItem as Za, resolveCompletionSubmit as Zc, ModelTargetSpec as Zd, SkillConfig as Zf, ExtensionFetchResult as Zi, zodToJsonSchema as Zl, cursor as Zm, writeFile as Zn, ExtensionHudState as Zo, nonOwningMcpView as Zp, CompactInvalidInputError as Zr, SkillInstallErrorCode as Zs, ReusableExecutionContext as Zt, ProviderDescriptor as Zu, MutationValidationFailure as _, ExtensionScanEntry as _a, SkillActivationState as _c, shouldAutoCompact as _d, SessionTurn as _f, summaryToTurn as _i, ConfirmQuestion as _l, sanitizeToolSchema as _m, fileExistsOneOf as _n, ExtensionKeybindingDispatchContext as _o, RemoteStoreOptions as _p, readFile as _r, SpawnTaskInput as _s, EvalAgent as _t, DEFAULT_PERSIST_EXCLUDE_TOOLS as _u, basicTools as a, ExtensionInstallSource as aa, SourcedScanPath as ac, modelOptionsFor as ad, PromptTextPart as af, AnthropicContextManagement as ah, buildCompactPrompt as ai, CommandInvocation as al, StreamCallbacks as am, clearRegisteredEvals as an, ExtensionBehaviorTransform as ao, SessionMetaRow as ap, ToolSearchToolOptions as ar, ExtensionHostRuntimeBridge as as, TOOL_USE_SKIPPED_MESSAGE as at, RingBufferSink as au, MutationValidationResult as b, inlineLoadedExtension as ba, BUILTIN_THEMES as bc, ContextBreakdownContributor as bd, ThinkingLevel as bf, generateStructuredData as bi, InteractionResponse as bl, normalizeOpenRouterModelId as bm, formatEvalRunSummary as bn, ExtensionModal as bo, FileMapAdapter as bp, InteractionToolOptions as br, SpawnToolOptions as bs, EvalAgentRunResult as bt, resolveAgentId as bu, StartSpan as c, fetchExtensionSource as ca, inferSource as cc, openaiDescriptor as cd, RepeatGuardToolMatcher as cf, anthropic as ch, buildTailCompactPrompt as ci, CommandSpawnTask as cl, ToolCall as cm, createEvalRunReporter as cn, ExtensionContextTransform as co, createSession as cp, createSkillsUseTool as cr, ExtensionRuntimeSurface as cs, ExtensionEditMarker as ct, createLoggingHooks as cu, TracingHooksOptions as d, parseExtensionInstallSource as da, buildCatalog as dc, restoreModelOptions as dd, RetryConfig as df, defaultAnthropicMaxTokens as dh, CompactScope as di, CommandStepFn as dl, TurnResult as dm, defineMetrics as dn, ExtensionCustomRendererEntry as do, demoteStaleRunningStatus as dp, SkillsReadToolOptions as dr, ExtensionWorkspacePair as ds, extensionDirForCwd as dt, AgentProfile as du, ExtensionInstallErrorCode as ea, SkillInstallSpec as ec, credKeyOf as ed, ProgressNudgeMessage as ef, BasetenParams as eh, CompactDirection as ei, CommandArgSuggestion as el, resultToString as em, TrajectoryStepKind as en, resolveExtensionConfigValue as eo, SkillSource as ep, ValidationResult as er, ExtensionNotification as es, resolvePersistDir as et, LogRecord as eu, createTracingHooks as f, readExtensionInstallProvenance as fa, IMPLICITLY_ALLOWED_SKILL_TOOLS as fc, AUTO_COMPACT_MIN_GROWTH_FRACTION as fd, RunHookMap as ff, planAnthropicThinking as fh, CompactionSlice as fi, commandSteps as fl, XaiParams as fm, efficiencyMetricValues as fn, ExtensionDefinition as fo, getExtensionSessionState as fp, createSkillsReadTool as fr, ExtensionWorkspaceSurface as fs, extensionScaffold as ft, AgentRegistry as fu, MutationValidationBatch as g, ENTRY_CANDIDATES as ga, DeactivationReason as gc, effectiveContextWindow as gd, SessionMessage as gf, stripImagesFromTurns as gi, AnswerValue as gl, SchemaSanitizeResult as gm, fileExists as gn, ExtensionKeybinding as go, withExtensionSession as gp, shell as gr, ExtensionSubagentDef as gs, EFFICIENCY_METRICS as gt, DEFAULT_BUDGET_EXCLUDE_TOOLS as gu, statsByModel as h, registerExtensionHostModules as ha, ActiveSkill as hc, OUTPUT_RESERVE_TOKENS as hd, SessionHookContext as hf, sliceForCompaction as hi, ASK_USER_TOOL as hl, SchemaSanitizeProfile as hm, fileContentQuality as hn, ExtensionGuiSurface as ho, setExtensionSessionState as hp, createShellTool as hr, ChildAgent as hs, CreateEvalAgentOptions as ht, DEFAULT_AGENT_ID as hu, _default as i, ExtensionInstallScope as ia, readSkillProvenance as ic, localDescriptor as id, PromptPart as if, arcee as ih, TRAILER as ii, CommandInteraction as il, ProviderCapabilities as im, buildTrajectory as in, ExtensionApiVersion as io, SessionData as ip, LazyToolEntry as ir, createExtensionHud as is, TOOL_USE_CANCELLED_MESSAGE as it, LoggingHooksOptions as iu, MetricsHooksOptions as j, ExtensionConfigActionResult as ja, resolveTheme as jc, buildContextBreakdown as jd, ToolResultTextContent as jf, normalizeShellCommand as ji, QuestionChoice as jl, applyOAIToolCacheBreakpoint as jm, HeadlessErrorInfo as jn, ExtensionSkillPolicy as jo, ToWireMessagesOptions as jp, RunSummaryError as jr, defineSkill as js, EvalRunReporter as jt, Settings as ju, MetricAttributes as k, defineExtension as ka, ThemeSurfaces as kc, ContextSnapshot as kd, ToolResultImageRefContent as kf, defaultRepeatGuardNormalize as ki, PlanStep as kl, TOOL_RESULTS_TAG as km, FormattedHeadlessResult as kn, ExtensionRuntimeEnv as ko, SYNTHETIC_TOOL_RESULT_PLACEHOLDER as kp, RunSummaryCollector as kr, formatModelLine as ks, EvalMetricError as kt, Screen as ku, TracingConventions as l, installExtensionFromSpec as la, parseFrontmatter as lc, openrouterDescriptor as ld, ResolveContentRef as lf, applyAnthropicCacheBreakpoints as lh, buildUpToCompactPrompt as li, CommandStep as ll, ToolResult as lm, createReusableExecutionContext as ln, ExtensionContributions as lo, currentExtensionSession as lp, SkillsRunScriptToolOptions as lr, ExtensionSessionSummary as ls, ZIDANE_EXTENSION_SKILL_NAME as lt, jsonSink as lu, flattenTurns as m, updateInstalledExtension as ma, ActivationVia as mc, AutoCompactInput as md, SessionEndStatus as mf, resolveAnthropicMaxOutput as mh, anchorPreviewFor as mi, parseCommandInvocation as ml, SchemaSanitizeOptions as mm, fileContains as mn, ExtensionGuiPanel as mo, resumeChainRunIds as mp, CreateShellToolOptions as mr, createWorkspaceSurface as ms, withZidaneExtensionSkill as mt, BUILTIN_AGENTS as mu, composePresets as n, ExtensionInstallProvenance as na, listSkillCandidates as nc, getContextWindow as nd, PromptDocumentPart as nf, planBasetenReasoning as nh, CompactPromptOptions as ni, CommandExecution as nl, HistoryRepair as nm, buildEvalRunSummary as nn, toWireConfigSchema as no, CreateSessionOptions as np, TailTruncateOptions as nr, ExtensionNotifyTone as ns, INTERRUPT_MESSAGE_FOR_TOOL_USE as nt, Logger as nu, GEN_AI_ATTRIBUTES as o, InstallExtensionFromSpecOptions as oa, discoverSkills as oc, modelSupportsReasoning as od, PromptVideoPart as of, AnthropicParams as oh, buildFromCompactPrompt as oi, CommandOutputBlock as ol, StreamOptions as om, computeEvalTagScores as on, ExtensionCapability as oo, SessionRun as op, createToolSearchTool as or, ExtensionHostRuntimeImpl as os, applyCompactSummaryCutoff as ot, consoleSink as ou, ModelUsage as p, removeInstalledExtension as pa, installAllowedToolsGate as pc, AutoCompactDecision as pd, SessionContentBlock as pf, resolveAnthropicBetas as ph, SummaryToTurnInput as pi, executeCommand as pl, xai as pm, emitEfficiencyMetrics as pn, ExtensionFooterHint as po, loadSession as pp, shellKill as pr, createExtensionHostRuntimeBridge as ps, resolveExtensionDocsDir as pt, BUILD_AGENT as pu, PERSISTED_STUB_PREFIX as q, WireExtensionConfigItem as qa, applyInsert as qc, McpServerConfig as qd, hydrateReadStateFromSessionAsync as qf, disposeExtensionRegistry as qi, SchemaInput as ql, toPiMessages as qm, providerTranscriptFormatForProvider as qn, LoadedExtension as qo, McpConnection as qp, CompactOptions as qr, SKILL_PROVENANCE_FILE as qs, MetricSpec as qt, BUILTIN_PROVIDERS as qu, definePreset as r, ExtensionInstallResult as ra, parseSkillInstallSpec as rc, getModelInfo as rd, PromptImagePart as rf, ArceeParams as rh, NO_TOOLS_PREAMBLE as ri, CommandGenerateDataOptions as rl, Provider as rm, buildRegisteredEvals as rn, EMPTY_EXTENSION_REGISTRY as ro, Session as rp, tailTruncate as rr, ExtensionStatusOptions as rs, SHELL_CASCADE_CANCEL_MESSAGE as rt, LoggingHookSet as ru, Span as s, InstalledExtensionTargetOptions as sa, getDefaultScanPaths as sc, modelsForDescriptor as sd, RepeatGuardConfig as sf, AnthropicThinkingPlan as sh, buildFullCompactPrompt as si, CommandSpawnResult as sl, TokenCountPayload as sm, createEvalAgent as sn, ExtensionContext as so, SessionStore as sp, SkillsUseToolOptions as sr, ExtensionModelEntry as ss, EXTENSION_EDIT_METADATA_KEY as st, createLogger as su, Preset as t, ExtensionInstallIo as ta, installSkillFromSpec as tc, enabledModelOptions as td, PromptAudioPart as tf, baseten as th, CompactPromptBuilder as ti, CommandAttachment as tl, wrapDiscoveredMcpTools as tm, artifactPath as tn, sanitizeExtensionConfigActionPatch as to, SkillsConfig as tp, validateToolArgs as tr, ExtensionNotifyOptions as ts, resolveTasksDir as tt, LogSink as tu, TracingHookSet as u, listExtensionCandidates as ua, parseSkillFile as uc, piIdOf as ud, ResolveContentRefBlock as uf, classifyAnthropicError as uh, ANCHOR_PREVIEW_MAX_CHARS as ui, CommandStepContext as ul, ToolSpec as um, defineEval as un, ExtensionCustomRenderer as uo, deleteExtensionSessionState as up, createSkillsRunScriptTool as ur, ExtensionSessionsSurface as us, buildZidaneExtensionSkill as ut, AgentAccent as uu, MutationValidationHooksOptions as v, defaultExtensionScanPaths as va, SkillActivationStateOptions as vc, ContextBreakdown as vd, SpawnHookContext as vf, truncateHeadForPtlRetry as vi, CreateInteractionToolsOptions as vl, sanitizeToolSpecs as vm, finalizeEvalMetrics as vn, ExtensionManifest as vo, createRemoteStore as vp, multiEdit as vr, SpawnTaskOutcome as vs, EvalAgentMcpServers as vt, PLAN_AGENT as vu, resolveModelTargets as w, DiscoverAndBuildExtensionRegistryOptions as wa, SyntaxStyles as wc, ContextExactCounts as wd, ToolResultAudioContent as wf, CacheDimensionSnapshot as wi, PendingInteractionEntry as wl, OAITool as wm, normalizeMetric as wn, ExtensionPermission as wo, ORPHANED_TOOL_RESULT_MARKER as wp, edit as wr, SubagentRegistry as ws, EvalCaseOptions as wt, EditOutcome as wu, SuccessfulMutationOutcome as x, isExtensionDefinition as xa, ChipColor as xc, ContextBreakdownOptions as xd, ToolBatchExecutor as xf, CacheBreakLoggerOptions as xi, InteractionsActions as xl, openrouter as xm, formatTrajectoryLine as xn, ExtensionModalNode as xo, FileMapStoreOptions as xp, createInteractionTool as xr, SpawnToolState as xs, EvalAgentRunStats as xt, singleAgentRegistry as xu, MutationValidationMutation as y, discoverExtensions as ya, createSkillActivationState as yc, ContextBreakdownContributionContext as yd, StreamHookContext as yf, GenerateStructuredDataOptions as yi, InteractionRequest as yl, OpenRouterParams as ym, formatEvalCaseSummary as yn, ExtensionMcpConfigTransform as yo, createMemoryStore as yp, listFiles as yr, SpawnTool as ys, EvalAgentRunOptions as yt, accentColor as yu, McpOAuthProvider as z, ExtensionConfigModelItem as za, CompletionState as zc, CompactEndHookContext as zd, ToolDef as zf, McpToolMeta as zi, createInteractionTools as zl, openaiCompat as zm, OpenAIChatMessage as zn, ExtensionToolRendererEntry as zo, fromOpenAI as zp, PostCompactAttachments as zr, validateResourcePath as zs, EvalTestRunner as zt, providerKeySetChanged as zu };
16353
+ //# sourceMappingURL=index-B6eBI_OD.d.ts.map