zidane 6.2.23 → 6.2.26

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 (111) hide show
  1. package/dist/{acp-B7wH6LhE.js → acp-CNZqD1Fw.js} +5 -5
  2. package/dist/{acp-B7wH6LhE.js.map → acp-CNZqD1Fw.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-BSIMsEtD.js → agent--VPMZ0nT.js} +324 -39
  7. package/dist/agent--VPMZ0nT.js.map +1 -0
  8. package/dist/agent.d.ts +1 -1
  9. package/dist/agent.js +2 -2
  10. package/dist/{auth-CpdQebUy.js → auth-DIT_DMwa.js} +2 -2
  11. package/dist/{auth-CpdQebUy.js.map → auth-DIT_DMwa.js.map} +1 -1
  12. package/dist/chat/pure.d.ts +3 -3
  13. package/dist/chat/pure.js +1 -1
  14. package/dist/chat.d.ts +4 -4
  15. package/dist/chat.d.ts.map +1 -1
  16. package/dist/chat.js +6 -6
  17. package/dist/contexts/daytona.d.ts +1 -1
  18. package/dist/contexts/daytona.d.ts.map +1 -1
  19. package/dist/contexts/daytona.js +9 -2
  20. package/dist/contexts/daytona.js.map +1 -1
  21. package/dist/contexts/docker.js +1 -1
  22. package/dist/contexts/e2b.d.ts +1 -1
  23. package/dist/contexts/e2b.d.ts.map +1 -1
  24. package/dist/contexts/e2b.js +3 -4
  25. package/dist/contexts/e2b.js.map +1 -1
  26. package/dist/{contexts-A4ep-iJs.js → contexts-0rmrBhTK.js} +8 -5
  27. package/dist/contexts-0rmrBhTK.js.map +1 -0
  28. package/dist/contexts.js +1 -1
  29. package/dist/eval.d.ts +1 -1
  30. package/dist/eval.js +2 -2
  31. package/dist/extensions.d.ts +1 -1
  32. package/dist/extensions.js +1 -1
  33. package/dist/{output-cap-kBUHBlnq.js → glob-DluQFSw1.js} +2 -50
  34. package/dist/glob-DluQFSw1.js.map +1 -0
  35. package/dist/headless.d.ts +1 -1
  36. package/dist/headless.js +4 -4
  37. package/dist/history-search-worker.js +6 -1
  38. package/dist/history-search-worker.js.map +1 -1
  39. package/dist/{index-Bv9qhj4n.d.ts → index-AVZ6pYpi.d.ts} +254 -97
  40. package/dist/index-AVZ6pYpi.d.ts.map +1 -0
  41. package/dist/index.d.ts +1 -1
  42. package/dist/index.js +12 -9
  43. package/dist/index.js.map +1 -1
  44. package/dist/{inline-autocomplete-BAwBcZtD.js → inline-autocomplete-CbcdZpfC.js} +2 -1
  45. package/dist/inline-autocomplete-CbcdZpfC.js.map +1 -0
  46. package/dist/{login-BkZ_d5sT.js → login-afiadwf0.js} +35 -19
  47. package/dist/login-afiadwf0.js.map +1 -0
  48. package/dist/mcp.d.ts +1 -1
  49. package/dist/output/stream-json.d.ts +1 -1
  50. package/dist/output/terminal.d.ts +1 -1
  51. package/dist/output-cap-DM1HrgIp.js +100 -0
  52. package/dist/output-cap-DM1HrgIp.js.map +1 -0
  53. package/dist/presets.d.ts +1 -1
  54. package/dist/presets.js +1 -1
  55. package/dist/providers/anthropic.d.ts +1 -1
  56. package/dist/providers/arcee.d.ts +1 -1
  57. package/dist/providers/baseten.d.ts +1 -1
  58. package/dist/providers/cerebras.d.ts +1 -1
  59. package/dist/providers/local.d.ts +1 -1
  60. package/dist/providers/openai-compat.d.ts +1 -1
  61. package/dist/providers/openai.d.ts +1 -1
  62. package/dist/providers/openrouter.d.ts +1 -1
  63. package/dist/providers/xai.d.ts +1 -1
  64. package/dist/providers.d.ts +1 -1
  65. package/dist/{resolve-x5mlFtLX.js → resolve-BPTA1RpX.js} +23 -3
  66. package/dist/resolve-BPTA1RpX.js.map +1 -0
  67. package/dist/restate.d.ts +1 -1
  68. package/dist/{run-summary-nD3IQ4ZQ.js → run-summary-BU_NgwUT.js} +17 -1
  69. package/dist/run-summary-BU_NgwUT.js.map +1 -0
  70. package/dist/session/sqlite.d.ts +1 -1
  71. package/dist/{session-Dbvz1ZUE.js → session-jLsc_kMH.js} +22 -3
  72. package/dist/session-jLsc_kMH.js.map +1 -0
  73. package/dist/session.d.ts +2 -2
  74. package/dist/session.js +2 -2
  75. package/dist/{skills-C1vGKbqv.js → skills-C7eIjWYm.js} +2 -2
  76. package/dist/{skills-C1vGKbqv.js.map → skills-C7eIjWYm.js.map} +1 -1
  77. package/dist/skills.d.ts +1 -1
  78. package/dist/skills.js +2 -2
  79. package/dist/{tool-formatters-D9P6Znip.d.ts → tool-formatters-Dual3Hdl.d.ts} +2 -2
  80. package/dist/{tool-formatters-D9P6Znip.d.ts.map → tool-formatters-Dual3Hdl.d.ts.map} +1 -1
  81. package/dist/tools/fetch-url.d.ts +1 -1
  82. package/dist/tools/web-search.d.ts +1 -1
  83. package/dist/tools.d.ts +1 -1
  84. package/dist/tools.js +1 -1
  85. package/dist/{transcript-anchors-Ci5888xS.d.ts → transcript-anchors-CG85bieG.d.ts} +2 -2
  86. package/dist/transcript-anchors-CG85bieG.d.ts.map +1 -0
  87. package/dist/{transcript-anchors-CqzIr74w.js → transcript-anchors-CnmxZ8QR.js} +96 -16
  88. package/dist/transcript-anchors-CnmxZ8QR.js.map +1 -0
  89. package/dist/tui.d.ts +55 -8
  90. package/dist/tui.d.ts.map +1 -1
  91. package/dist/tui.js +1845 -1145
  92. package/dist/tui.js.map +1 -1
  93. package/dist/{turn-operations-CokV32wf.js → turn-operations-4tnvKwfJ.js} +82 -14
  94. package/dist/turn-operations-4tnvKwfJ.js.map +1 -0
  95. package/dist/{turn-operations-C3y6A82G.d.ts → turn-operations-BUYaSCL3.d.ts} +3 -3
  96. package/dist/{turn-operations-C3y6A82G.d.ts.map → turn-operations-BUYaSCL3.d.ts.map} +1 -1
  97. package/dist/types-BIarq1qE.js.map +1 -1
  98. package/dist/types.d.ts +1 -1
  99. package/package.json +2 -1
  100. package/dist/agent-BSIMsEtD.js.map +0 -1
  101. package/dist/contexts-A4ep-iJs.js.map +0 -1
  102. package/dist/index-Bv9qhj4n.d.ts.map +0 -1
  103. package/dist/inline-autocomplete-BAwBcZtD.js.map +0 -1
  104. package/dist/login-BkZ_d5sT.js.map +0 -1
  105. package/dist/output-cap-kBUHBlnq.js.map +0 -1
  106. package/dist/resolve-x5mlFtLX.js.map +0 -1
  107. package/dist/run-summary-nD3IQ4ZQ.js.map +0 -1
  108. package/dist/session-Dbvz1ZUE.js.map +0 -1
  109. package/dist/transcript-anchors-Ci5888xS.d.ts.map +0 -1
  110. package/dist/transcript-anchors-CqzIr74w.js.map +0 -1
  111. package/dist/turn-operations-CokV32wf.js.map +0 -1
@@ -1896,6 +1896,16 @@ declare function currentExtensionSession(): Session | undefined;
1896
1896
  declare function getExtensionSessionState<T = JsonValue>(session: Session | undefined, extensionName: string, key: string): T | undefined;
1897
1897
  declare function setExtensionSessionState(session: Session | undefined, extensionName: string, key: string, value: JsonValue): Promise<void>;
1898
1898
  declare function deleteExtensionSessionState(session: Session | undefined, extensionName: string, key: string): Promise<void>;
1899
+ /**
1900
+ * Transitive `resumedFromRunId` chain starting at `runId` (inclusive).
1901
+ *
1902
+ * A resumed run only persists the turns IT produced — the turns it was
1903
+ * seeded with still carry the original run's id. So reconstructing a
1904
+ * resumed child's full conversation means collecting turns from every run
1905
+ * in its resume lineage, not just the latest link. Cycle-guarded (a
1906
+ * malformed chain terminates instead of looping).
1907
+ */
1908
+ declare function resumeChainRunIds(runs: readonly SessionRun[], runId: string): Set<string>;
1899
1909
  interface SessionRun {
1900
1910
  id: string;
1901
1911
  startedAt: number;
@@ -1925,6 +1935,16 @@ interface SessionRun {
1925
1935
  * style markers. Absent on normal runs.
1926
1936
  */
1927
1937
  resumedFromRunId?: string;
1938
+ /**
1939
+ * Host-assigned display label (e.g. the spawn tool's `child-3`), persisted
1940
+ * so label → run resolution is a stored fact instead of a positional
1941
+ * guess. Positional `child-N` numbering can desynchronize from announced
1942
+ * labels (concurrent spawns `startRun` out of reservation order, a
1943
+ * pre-`startRun` throw advances the counter without a run, and reload
1944
+ * ordering ties break lexicographically) — resolving by stored label is
1945
+ * immune to all three. Absent on top-level runs and legacy sessions.
1946
+ */
1947
+ label?: string;
1928
1948
  /**
1929
1949
  * Zero-based subagent depth. 0 = top-level run, 1 = direct child, …
1930
1950
  * Recorded here so hosts can query/filter by level without walking the tree.
@@ -2118,6 +2138,7 @@ interface Session {
2118
2138
  parentRunId?: string;
2119
2139
  depth?: number;
2120
2140
  resumedFromRunId?: string;
2141
+ label?: string;
2121
2142
  }) => void;
2122
2143
  /** Mark a run as completed */
2123
2144
  completeRun: (runId: string, stats: {
@@ -3006,7 +3027,7 @@ interface RetryConfig {
3006
3027
  * `dedupTools` for the full contract.
3007
3028
  */
3008
3029
  type DedupHasher = (input: Record<string, unknown>) => string | undefined;
3009
- type ProgressNudgeKind = 'readOnlyTurns' | 'failedMutations' | 'noopMutations' | 'validationRejects' | 'toolErrors';
3030
+ type ProgressNudgeKind = 'readOnlyTurns' | 'failedMutations' | 'noopMutations' | 'validationRejects' | 'toolErrors' | 'singleCallTurns';
3010
3031
  type ProgressNudgeMessage = string | ((ctx: {
3011
3032
  kind: ProgressNudgeKind;
3012
3033
  count: number;
@@ -3145,6 +3166,20 @@ interface AutoCompactConfig {
3145
3166
  * run's main model.
3146
3167
  */
3147
3168
  model?: string;
3169
+ /**
3170
+ * Release the in-memory bodies of turns each compaction summary replaces:
3171
+ * large text `tool_result` outputs are written host-side to
3172
+ * `<persistDir>/released/<callId>.txt` (exempt from the persist-dir LRU
3173
+ * cap — once the stub round-trips into the session store the blob is the
3174
+ * only remaining copy, so it lives and dies with the session) and the
3175
+ * session's in-memory copy is swapped for a `<persisted-output …>` stub.
3176
+ * Replaced turns never reach the wire again, so without this a
3177
+ * long-lived host retains every pre-compaction tool output for the
3178
+ * process's life. Requires `persistDir`; content stays retrievable from
3179
+ * the stub's path. Off by default — hosts that need the lossless
3180
+ * inline transcript (SFT capture, exporters) should leave it off.
3181
+ */
3182
+ releaseReplacedTurns?: boolean;
3148
3183
  }
3149
3184
  /**
3150
3185
  * `AgentBehavior.autoCompact` value: `true` enables loop-native
@@ -3749,6 +3784,15 @@ interface AgentBehavior {
3749
3784
  noopMutations?: number | false;
3750
3785
  validationRejects?: number | false;
3751
3786
  toolErrors?: number | false;
3787
+ /**
3788
+ * Nudge after N consecutive turns that each carried exactly ONE read-only
3789
+ * tool call. Independent reads shipped one per round trip pay full
3790
+ * provider latency each; the nudge steers the model to batch them into a
3791
+ * single response. Off by default — aimed at models that ignore static
3792
+ * batching doctrine (measured in production: ~1.3 calls/round-trip vs
3793
+ * ~2.5 for models that batch, tripling turn wall time).
3794
+ */
3795
+ singleCallTurns?: number | false;
3752
3796
  readOnlyTools?: readonly string[];
3753
3797
  maxNudges?: number;
3754
3798
  messages?: Partial<Record<ProgressNudgeKind, ProgressNudgeMessage>>;
@@ -4971,6 +5015,13 @@ interface AgentRunOptions {
4971
5015
  * no persisted turns.
4972
5016
  */
4973
5017
  resumeRunId?: string;
5018
+ /**
5019
+ * Host-assigned display label persisted onto the resulting `SessionRun`
5020
+ * (`SessionRun.label`). The spawn tool passes its reserved `child-N`
5021
+ * label here so label → run resolution (spawn `resume`) and transcript
5022
+ * numbering read a stored fact instead of deriving it positionally.
5023
+ */
5024
+ runLabel?: string;
4974
5025
  /**
4975
5026
  * Zero-based subagent depth. 0 = top-level `agent.run()`, 1 = first-level
4976
5027
  * child spawned by a parent agent, and so on. Used by the spawn tool to
@@ -6800,6 +6851,21 @@ interface Settings {
6800
6851
  * Default: `60`.
6801
6852
  */
6802
6853
  targetFps: number;
6854
+ /**
6855
+ * Mouse interactions — clickable hints, row clicks, checkbox zones,
6856
+ * hover highlights, and wheel scrolling inside the TUI. When off, the
6857
+ * renderer stops requesting terminal mouse reporting entirely
6858
+ * (`renderer.useMouse = false`), so EVERY clickable surface is disabled
6859
+ * at the source — no per-surface opt-outs to drift. As a side effect
6860
+ * the terminal's NATIVE mouse behavior returns: text selection, copy,
6861
+ * and scrollback belong to the terminal emulator again, which is
6862
+ * exactly what mouse-averse / screen-reader / tmux-copy-mode users
6863
+ * want from this switch.
6864
+ *
6865
+ * Applied live via the renderer setter — takes effect immediately, no
6866
+ * restart needed. Default: on.
6867
+ */
6868
+ mouseInteractions: boolean;
6803
6869
  /**
6804
6870
  * Expose interactive tools (`ask_user`, `present_plan`) to the agent.
6805
6871
  * When off, both tools are omitted from the agent's tool set at session
@@ -7779,6 +7845,12 @@ interface CommandStepContext {
7779
7845
  * without an attachment surface; guard with `ctx.attachments?.length`.
7780
7846
  */
7781
7847
  readonly attachments?: readonly CommandAttachment[];
7848
+ /**
7849
+ * The command token the user typed (lowercased) — the alias when one
7850
+ * was used, else the canonical name. Optional: hosts that dispatch
7851
+ * programmatically may not have one. See {@link CommandInvocation.invokedAs}.
7852
+ */
7853
+ readonly invokedAs?: string;
7782
7854
  /** Mutable bag threaded across steps; a step's returned `data` is merged in. */
7783
7855
  readonly data: Record<string, unknown>;
7784
7856
  /** Render + persist a local output block. */
@@ -7922,6 +7994,13 @@ declare function commandSteps(command: Command): readonly CommandStep[];
7922
7994
  /** Parsed `/<name> [args]` invocation. */
7923
7995
  interface CommandInvocation {
7924
7996
  name: string;
7997
+ /**
7998
+ * The token the user actually typed (lowercased, no slash) — `name`
7999
+ * when the canonical name was used, the alias otherwise. Lets commands
8000
+ * keep legacy per-alias behavior (e.g. bare `/fix-comments` defaulting
8001
+ * to comments mode after the command was folded into `/fix`).
8002
+ */
8003
+ invokedAs: string;
7925
8004
  /** Text after the name, trimmed. */
7926
8005
  args: string;
7927
8006
  /** `args` split on whitespace. */
@@ -9906,7 +9985,16 @@ interface ExtensionKeybindingDispatchContext {
9906
9985
  /** Close any open modal. */
9907
9986
  closeModal: () => void;
9908
9987
  }
9909
- /** Footer hint entry contributed by an extension. */
9988
+ /**
9989
+ * Footer hint entry contributed by an extension.
9990
+ *
9991
+ * Hints whose `key` parses as a real chord (`ctrl+j`, `^J`, `⌘+k`, `f6`,
9992
+ * …) are CLICKABLE in the TUI: a click synthesizes that exact keypress
9993
+ * through the input pipeline, so pair the hint with a
9994
+ * `registerKeybinding` handler for the same chord and the button works
9995
+ * by mouse and keyboard alike. Decorative keys that don't parse render
9996
+ * as inert text.
9997
+ */
9910
9998
  interface ExtensionFooterHint {
9911
9999
  /** Display string for the chord (e.g. `'^J'`, `'⌘+k'`). */
9912
10000
  key: string;
@@ -11608,7 +11696,8 @@ interface AgentHooks {
11608
11696
  */
11609
11697
  'stream:retry': (ctx: StreamHookContext & {
11610
11698
  attempt: number;
11611
- nextAttempt: number;
11699
+ nextAttempt: number; /** The run's retry budget (`behavior.retry.maxAttempts`) — lets UIs render `retry n/max`. */
11700
+ maxAttempts: number;
11612
11701
  delayMs: number;
11613
11702
  err: unknown;
11614
11703
  statusCode?: number;
@@ -12054,6 +12143,18 @@ interface AgentHooks {
12054
12143
  childId: string;
12055
12144
  depth: number;
12056
12145
  }) => void;
12146
+ /** Bubbled {@link AgentHooks['stream:retry']} from a spawned child — lets hosts surface subagent retries. */
12147
+ 'child:stream:retry': (ctx: StreamHookContext & {
12148
+ attempt: number;
12149
+ nextAttempt: number;
12150
+ maxAttempts: number;
12151
+ delayMs: number;
12152
+ err: unknown;
12153
+ statusCode?: number;
12154
+ requestId?: string;
12155
+ childId: string;
12156
+ depth: number;
12157
+ }) => void;
12057
12158
  /**
12058
12159
  * Gate-style child events. Unlike the other `child:*` events, the bubble
12059
12160
  * passes the **same `ctx` reference** the subagent's loop is awaiting on:
@@ -13977,6 +14078,23 @@ interface RunSummaryRepeatGuard {
13977
14078
  action: 'block' | 'steer' | 'abort';
13978
14079
  turnId?: string;
13979
14080
  }
14081
+ /**
14082
+ * One absorbed provider-stream retry. Retries are invisible in the transcript
14083
+ * (no turn, no tool result) yet their backoff is real wall time the user
14084
+ * waited — measured in production as unexplained 30-90s gaps before trivial
14085
+ * tool calls. Recording them makes "LLM residual" stalls attributable.
14086
+ */
14087
+ interface RunSummaryRetry {
14088
+ /** 1-based attempt number that failed and triggered this retry. */
14089
+ attempt: number;
14090
+ /** Backoff delay taken before the next attempt (ms, after retry-after/cap). */
14091
+ delayMs: number;
14092
+ message: string;
14093
+ errorType?: string;
14094
+ statusCode?: number;
14095
+ requestId?: string;
14096
+ turnId?: string;
14097
+ }
13980
14098
  /**
13981
14099
  * Postmortem snapshot of one `agent.run()`. Strictly serializable — every
13982
14100
  * field round-trips through `JSON.stringify` / `JSON.parse` without loss
@@ -13998,6 +14116,12 @@ interface RunSummary {
13998
14116
  blocks: RunSummaryBlock[];
13999
14117
  validationRejects: RunSummaryValidation[];
14000
14118
  budgetEvents: RunSummaryBudget[];
14119
+ /**
14120
+ * Provider-stream retries the loop absorbed. Empty on healthy runs; on
14121
+ * incident runs the summed `delayMs` explains wall time that appears
14122
+ * nowhere else (not in turns, not in tool durations).
14123
+ */
14124
+ streamRetries: RunSummaryRetry[];
14001
14125
  /**
14002
14126
  * Repeat-guard escalations. An `action: 'steer'` entry means the tool still
14003
14127
  * executed and got a steering message appended to its result. An
@@ -15349,6 +15473,124 @@ declare function buildPersistedStub(input: BuildStubInput): string;
15349
15473
  */
15350
15474
  declare function cleanupPersistedSession(persistRoot: string): Promise<void>;
15351
15475
  //#endregion
15476
+ //#region src/mcp/oauth-callback.d.ts
15477
+ /**
15478
+ * Local loopback HTTP callback for OAuth 2.0 authorization code flows.
15479
+ *
15480
+ * Stands up a one-shot server on `127.0.0.1:<random>` that captures the
15481
+ * `?code=...` redirect from a browser-driven OAuth flow and resolves a
15482
+ * promise with the code. Used as the `redirectUrl` half of the MCP SDK's
15483
+ * `OAuthClientProvider` (the persistence half lives separately).
15484
+ *
15485
+ * Design:
15486
+ * - Loopback-only (`127.0.0.1`) — the OAuth spec treats `http://127.0.0.1:<port>`
15487
+ * as a public-client redirect URI per RFC 8252 §7.3. Browsers do NOT block it,
15488
+ * and Anthropic / OpenAI / Linear / GitHub all accept it.
15489
+ * - Random port (`port = 0`) — the OS picks an unused one. We read the actual
15490
+ * port back from `server.address()` after `listen()`.
15491
+ * - Single-shot — the first GET to `path` with a `code` (or `error`) wins;
15492
+ * subsequent requests get 404. The server keeps listening (in case the user
15493
+ * hits "back" and re-authorizes), so callers must `close()` once they have
15494
+ * the code or have given up.
15495
+ * - Abort-aware — wiring an external `AbortSignal` rejects the promise and
15496
+ * closes the server immediately. Required for the TUI's "esc cancels login"
15497
+ * UX.
15498
+ * - No HTML framework — a single inline `<html>` string keeps this isolated
15499
+ * from any UI dependency.
15500
+ */
15501
+ /**
15502
+ * Result of a successful callback. `state` is forwarded verbatim from the
15503
+ * query string — callers verify it against their pre-flight value to defend
15504
+ * against CSRF (the MCP SDK does this internally when it controls `state`).
15505
+ */
15506
+ interface OAuthCallbackResult {
15507
+ code: string;
15508
+ state?: string;
15509
+ }
15510
+ interface OAuthCallbackHandle {
15511
+ /**
15512
+ * Full URI to register with the authorization server, e.g.
15513
+ * `http://127.0.0.1:51823/callback`. Stable for the lifetime of the
15514
+ * handle.
15515
+ */
15516
+ redirectUri: string;
15517
+ /**
15518
+ * Resolves with `{ code, state }` on a successful callback. Rejects with:
15519
+ * - The OAuth-spec `error` field (`access_denied`, `server_error`, ...)
15520
+ * when the authorization server redirects with `?error=...`.
15521
+ * - `'OAuth callback aborted'` when the external `AbortSignal` fires.
15522
+ * - `'OAuth callback server closed'` when `close()` is called before any
15523
+ * callback arrives.
15524
+ *
15525
+ * Single-shot — only the first matching request resolves the promise.
15526
+ */
15527
+ promise: Promise<OAuthCallbackResult>;
15528
+ /**
15529
+ * Idempotent shutdown. Safe to call from a `finally` block whether the
15530
+ * flow succeeded, failed, or was aborted. Resolves once the server stops
15531
+ * accepting connections.
15532
+ */
15533
+ close: () => Promise<void>;
15534
+ }
15535
+ interface OAuthCallbackOptions {
15536
+ /** Cancels the flow — rejects `promise` and closes the server. */
15537
+ signal?: AbortSignal;
15538
+ /**
15539
+ * Renders the post-redirect browser page — see
15540
+ * {@link McpOAuthCallbackPageRenderer}. Default: a minimal unbranded
15541
+ * page; hosts inject their themed renderer.
15542
+ */
15543
+ renderPage?: McpOAuthCallbackPageRenderer;
15544
+ /** Display name handed to the page renderer. Default: `'MCP server'`. */
15545
+ provider?: string;
15546
+ /**
15547
+ * Path component the authorization server should redirect to. Defaults
15548
+ * to `/callback`. Useful when matching a pre-registered URI that uses a
15549
+ * different path.
15550
+ */
15551
+ path?: string;
15552
+ /**
15553
+ * Override the loopback host. Defaults to `127.0.0.1`. Don't bind to
15554
+ * `0.0.0.0` here — the OAuth code is a one-time secret and the server
15555
+ * would otherwise accept it from any host on the LAN.
15556
+ */
15557
+ host?: string;
15558
+ /**
15559
+ * Override the port. Defaults to `0` (OS-assigned). Pin to a fixed port
15560
+ * only when the authorization server requires a pre-registered redirect
15561
+ * URI; the random-port path is preferred so concurrent flows don't clash.
15562
+ */
15563
+ port?: number;
15564
+ }
15565
+ /**
15566
+ * Page the browser lands on after the redirect. INJECTABLE: hosts pass a
15567
+ * renderer so the MCP login ends on the same branded page as their
15568
+ * provider OAuth flows (zidane's TUI injects `renderDefaultCallbackPage`
15569
+ * from `chat/oauth-page` — `src/mcp` stays layering-clean by not
15570
+ * importing the chat module itself). The shape mirrors chat's
15571
+ * `OAuthCallbackPage` structurally, so that renderer plugs in verbatim.
15572
+ */
15573
+ interface McpOAuthCallbackPage {
15574
+ kind: 'success' | 'error';
15575
+ /** Headline message — one sentence, safe for display. */
15576
+ message: string;
15577
+ /** Optional secondary details (e.g. the server's `error_description`). */
15578
+ details?: string;
15579
+ /** Display name for the thing being logged into (the MCP server name). */
15580
+ provider: string;
15581
+ }
15582
+ type McpOAuthCallbackPageRenderer = (page: McpOAuthCallbackPage) => string;
15583
+ /**
15584
+ * Start a one-shot OAuth callback server. The returned handle's `redirectUri`
15585
+ * should be passed to the authorization server as the `redirect_uri` query
15586
+ * parameter; `promise` resolves once the user finishes the browser flow.
15587
+ *
15588
+ * Always `await handle.close()` in a `finally` block — even on success, the
15589
+ * server stays open until told to shut down (so it can serve the
15590
+ * "you can close this tab" page).
15591
+ */
15592
+ declare function startOAuthCallback(opts?: OAuthCallbackOptions): Promise<OAuthCallbackHandle>;
15593
+ //#endregion
15352
15594
  //#region src/mcp/oauth-provider.d.ts
15353
15595
  /**
15354
15596
  * Per-server persisted state. Subfields are optional so a partial save
@@ -15469,6 +15711,13 @@ interface LoginMcpServerOptions {
15469
15711
  onAuthorizationUrl?: (url: URL) => void | Promise<void>;
15470
15712
  /** Cancels the flow (esc / close modal / SIGINT). */
15471
15713
  signal?: AbortSignal;
15714
+ /**
15715
+ * Renders the post-redirect browser page — hosts pass their themed
15716
+ * renderer (zidane's TUI: `renderDefaultCallbackPage`) so MCP logins
15717
+ * end on the same screen as provider OAuth logins. The server name
15718
+ * rides as `page.provider`.
15719
+ */
15720
+ renderCallbackPage?: McpOAuthCallbackPageRenderer;
15472
15721
  /** Agent hooks. The flow emits `mcp:auth:url`/`success`/`error` when wired. */
15473
15722
  hooks?: Hookable<AgentHooks>;
15474
15723
  /** Override `client_name` shown on consent screens. Default: 'zidane'. */
@@ -15518,98 +15767,6 @@ interface LoginMcpServerResult {
15518
15767
  */
15519
15768
  declare function loginMcpServer(config: McpServerConfig, options: LoginMcpServerOptions): Promise<LoginMcpServerResult>;
15520
15769
  //#endregion
15521
- //#region src/mcp/oauth-callback.d.ts
15522
- /**
15523
- * Local loopback HTTP callback for OAuth 2.0 authorization code flows.
15524
- *
15525
- * Stands up a one-shot server on `127.0.0.1:<random>` that captures the
15526
- * `?code=...` redirect from a browser-driven OAuth flow and resolves a
15527
- * promise with the code. Used as the `redirectUrl` half of the MCP SDK's
15528
- * `OAuthClientProvider` (the persistence half lives separately).
15529
- *
15530
- * Design:
15531
- * - Loopback-only (`127.0.0.1`) — the OAuth spec treats `http://127.0.0.1:<port>`
15532
- * as a public-client redirect URI per RFC 8252 §7.3. Browsers do NOT block it,
15533
- * and Anthropic / OpenAI / Linear / GitHub all accept it.
15534
- * - Random port (`port = 0`) — the OS picks an unused one. We read the actual
15535
- * port back from `server.address()` after `listen()`.
15536
- * - Single-shot — the first GET to `path` with a `code` (or `error`) wins;
15537
- * subsequent requests get 404. The server keeps listening (in case the user
15538
- * hits "back" and re-authorizes), so callers must `close()` once they have
15539
- * the code or have given up.
15540
- * - Abort-aware — wiring an external `AbortSignal` rejects the promise and
15541
- * closes the server immediately. Required for the TUI's "esc cancels login"
15542
- * UX.
15543
- * - No HTML framework — a single inline `<html>` string keeps this isolated
15544
- * from any UI dependency.
15545
- */
15546
- /**
15547
- * Result of a successful callback. `state` is forwarded verbatim from the
15548
- * query string — callers verify it against their pre-flight value to defend
15549
- * against CSRF (the MCP SDK does this internally when it controls `state`).
15550
- */
15551
- interface OAuthCallbackResult {
15552
- code: string;
15553
- state?: string;
15554
- }
15555
- interface OAuthCallbackHandle {
15556
- /**
15557
- * Full URI to register with the authorization server, e.g.
15558
- * `http://127.0.0.1:51823/callback`. Stable for the lifetime of the
15559
- * handle.
15560
- */
15561
- redirectUri: string;
15562
- /**
15563
- * Resolves with `{ code, state }` on a successful callback. Rejects with:
15564
- * - The OAuth-spec `error` field (`access_denied`, `server_error`, ...)
15565
- * when the authorization server redirects with `?error=...`.
15566
- * - `'OAuth callback aborted'` when the external `AbortSignal` fires.
15567
- * - `'OAuth callback server closed'` when `close()` is called before any
15568
- * callback arrives.
15569
- *
15570
- * Single-shot — only the first matching request resolves the promise.
15571
- */
15572
- promise: Promise<OAuthCallbackResult>;
15573
- /**
15574
- * Idempotent shutdown. Safe to call from a `finally` block whether the
15575
- * flow succeeded, failed, or was aborted. Resolves once the server stops
15576
- * accepting connections.
15577
- */
15578
- close: () => Promise<void>;
15579
- }
15580
- interface OAuthCallbackOptions {
15581
- /** Cancels the flow — rejects `promise` and closes the server. */
15582
- signal?: AbortSignal;
15583
- /**
15584
- * Path component the authorization server should redirect to. Defaults
15585
- * to `/callback`. Useful when matching a pre-registered URI that uses a
15586
- * different path.
15587
- */
15588
- path?: string;
15589
- /**
15590
- * Override the loopback host. Defaults to `127.0.0.1`. Don't bind to
15591
- * `0.0.0.0` here — the OAuth code is a one-time secret and the server
15592
- * would otherwise accept it from any host on the LAN.
15593
- */
15594
- host?: string;
15595
- /**
15596
- * Override the port. Defaults to `0` (OS-assigned). Pin to a fixed port
15597
- * only when the authorization server requires a pre-registered redirect
15598
- * URI; the random-port path is preferred so concurrent flows don't clash.
15599
- */
15600
- port?: number;
15601
- }
15602
- /**
15603
- * Start a one-shot OAuth callback server. The returned handle's `redirectUri`
15604
- * should be passed to the authorization server as the `redirect_uri` query
15605
- * parameter; `promise` resolves once the user finishes the browser flow.
15606
- *
15607
- * Always `await handle.close()` in a `finally` block — even on success, the
15608
- * server stays open until told to shut down (so it can serve the
15609
- * "you can close this tab" page).
15610
- */
15611
- declare function startOAuthCallback(opts?: OAuthCallbackOptions): Promise<OAuthCallbackHandle>;
15612
- //#endregion
15613
15770
  //#region src/metrics.d.ts
15614
15771
  type MetricAttributes = Record<string, string | number | boolean | undefined>;
15615
15772
  interface Counter {
@@ -16092,5 +16249,5 @@ declare function definePreset(config: Preset): Preset;
16092
16249
  */
16093
16250
  declare function composePresets(...presets: Preset[]): Preset;
16094
16251
  //#endregion
16095
- export { maybePersistToolResult as $, resolveExtensionConfig as $a, CommandAgentResult as $c, ProgressNudgeKind as $d, SkillResource as $f, ExtensionInstallError as $i, LogLevel as $l, ArceeParams as $m, waitTask as $n, ExtensionHudWriter as $o, Provider 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, classifyOpenAICompatError as Am, FormattedHeadlessTurnEvent as An, ExtensionSessionStateSurface as Ao, TurnInterruptionState 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, classifyOpenAIError as Bm, ProviderTranscriptFormat as Bn, ExtensionToolRendererRegistration as Bo, toOpenAI 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, OpenAICompatParams as Cm, llmJudge as Cn, ExtensionPaths as Co, ORPHANED_TOOL_RESULT_MARKER 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, applyOAIToolCacheBreakpoint as Dm, runEvalCase as Dn, ExtensionRegistry as Do, SYNTHETIC_TOOL_RESULT_PLACEHOLDER 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, applyOAICacheBreakpoints as Em, relativeArtifactPath as En, ExtensionProviderMiddleware as Eo, RemintResult 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, openaiCompat as Fm, HeadlessResult as Fn, ExtensionToolCatalogTransform as Fo, filterUnresolvedToolUses 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, local as Gm, headlessEventToJsonl as Gn, ExtensionTuiSurface as Go, connectMcpServers 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, openai as Hm, formatHeadlessResult as Hn, ExtensionToolResultPatch as Ho, ConnectMcpServersOptions 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, toOAIMessages as Im, HeadlessStatus as In, ExtensionToolPolicy as Io, fromAnthropic 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, CerebrasParams as Jm, runHeadless as Jn, TuiContributions as Jo, normalizeMcpBlocks 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, CursorParams as Km, installHeadlessEventAdapter as Kn, GuiContributions as Ko, deriveMcpToolMeta 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, toolResultsMessage as Lm, HeadlessUsage as Ln, ExtensionToolRenderProps as Lo, fromOpenAI 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, formatTools as Mm, HeadlessEvent as Mn, ExtensionSource as Mo, detectTurnInterruption 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, mapOAIFinishReason as Nm, HeadlessOptions as Nn, ExtensionStorageScope as No, ensureEndsWithUserMessage 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, assistantMessage as Om, statusCompleted as On, ExtensionRunTransform as Oo, TOOL_USE_INTERRUPTED_MARKER 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, openAICompatPromptMessage as Pm, HeadlessOutputFormat as Pn, ExtensionStorageSurface as Po, ensureToolResultPairing 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, planBasetenReasoning as Qm, WAIT_TASK_TIMED_OUT_PREFIX as Qn, ExtensionHudStatus as Qo, HistoryRepair 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, userMessage as Rm, OpenAIChatContentPart as Rn, ExtensionToolRenderer as Ro, remintDuplicateToolCallIds 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, OpenAICompatHttpError as Sm, functionalityMetric as Sn, ExtensionOrderedContribution as So, EnsureToolResultPairingOptions 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, TOOL_RESULTS_TAG as Tm, registerEvalTests as Tn, ExtensionPromptTransform as To, PairingRepairMode 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, toPiMessages as Um, formatHeadlessTurnEvent as Un, ExtensionToolResultTransform as Uo, McpConnection 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, mapCodexStopReason as Vm, exitCodeForHeadlessResult as Vn, ExtensionToolResultMetadataRegistration as Vo, toWireMessages 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, LocalParams as Wm, formattedHeadlessTurnEventToJsonl as Wn, ExtensionToolVerdict as Wo, attachStderrWarnPump 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, BasetenParams as Xm, transcriptToProviderMessages as Xn, ExtensionHud as Xo, resultToString 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, cerebras as Ym, transcriptToOpenAIMessages as Yn, ExtensionBannerOptions as Yo, normalizeMcpServers 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, baseten as Zm, writeFile as Zn, ExtensionHudState as Zo, wrapDiscoveredMcpTools 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, openrouter as _m, fileExistsOneOf as _n, ExtensionKeybindingDispatchContext as _o, createRemoteStore 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, applyAnthropicCacheBreakpoints as ah, buildCompactPrompt as ai, CommandInvocation as al, ToolResult 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, OAITool as bm, formatEvalRunSummary as bn, ExtensionModal as bo, FileMapStoreOptions 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, planAnthropicThinking as ch, buildTailCompactPrompt as ci, CommandSpawnTask as cl, XaiParams 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, CompactScope as di, CommandStepFn as dl, SchemaSanitizeProfile 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, arcee as eh, CompactDirection as ei, CommandArgSuggestion as el, ProviderCapabilities 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, SchemaSanitizeResult 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, normalizeOpenRouterModelId as gm, fileExists as gn, ExtensionKeybinding as go, RemoteStoreOptions 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, OpenRouterParams as hm, fileContentQuality as hn, ExtensionGuiSurface as ho, withExtensionSession 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, anthropic as ih, TRAILER as ii, CommandInteraction as il, ToolCall 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, consumeSSE as jm, HeadlessErrorInfo as jn, ExtensionSkillPolicy as jo, autoDetectAndConvert 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, buildAssistantContent as km, FormattedHeadlessResult as kn, ExtensionRuntimeEnv as ko, ToWireMessagesOptions 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, resolveAnthropicBetas as lh, buildUpToCompactPrompt as li, CommandStep as ll, xai 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, sanitizeToolSpecs as mm, fileContains as mn, ExtensionGuiPanel as mo, setExtensionSessionState 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, AnthropicParams as nh, CompactPromptOptions as ni, CommandExecution as nl, StreamOptions 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, classifyAnthropicError as oh, buildFromCompactPrompt as oi, CommandOutputBlock as ol, ToolSpec 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, sanitizeToolSchema 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, cursor as qm, providerTranscriptFormatForProvider as qn, LoadedExtension as qo, nonOwningMcpView 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, AnthropicThinkingPlan as rh, NO_TOOLS_PREAMBLE as ri, CommandGenerateDataOptions as rl, TokenCountPayload 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, defaultAnthropicMaxTokens as sh, buildFullCompactPrompt as si, CommandSpawnResult as sl, TurnResult 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, AnthropicContextManagement as th, CompactPromptBuilder as ti, CommandAttachment as tl, StreamCallbacks 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, resolveAnthropicMaxOutput as uh, ANCHOR_PREVIEW_MAX_CHARS as ui, CommandStepContext as ul, SchemaSanitizeOptions 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, ASSISTANT_TOOL_CALLS_TAG as vm, finalizeEvalMetrics as vn, ExtensionManifest as vo, createMemoryStore 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, OpenAICompatStreamError as wm, normalizeMetric as wn, ExtensionPermission as wo, PairingRepair 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, OpenAICompatAuthHeader as xm, formatTrajectoryLine as xn, ExtensionModalNode as xo, createFileMapStore 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, OAIMessage as ym, formatEvalCaseSummary as yn, ExtensionMcpConfigTransform as yo, FileMapAdapter 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, OpenAIParams as zm, OpenAIChatMessage as zn, ExtensionToolRendererEntry as zo, toAnthropic as zp, PostCompactAttachments as zr, validateResourcePath as zs, EvalTestRunner as zt, providerKeySetChanged as zu };
16096
- //# sourceMappingURL=index-Bv9qhj4n.d.ts.map
16252
+ 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, McpOAuthProviderOptions 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, LoginMcpServerResult 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, OAuthCallbackResult 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, hasAuthorizationHeader 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, loginMcpServer 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, startOAuthCallback 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, McpCredentialEntry 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, LoginMcpServerOptions 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, McpCredentialStore 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, OAuthCallbackHandle 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, createMemoryMcpCredentialStore 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, OAuthCallbackOptions 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, McpOAuthProvider 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 };
16253
+ //# sourceMappingURL=index-AVZ6pYpi.d.ts.map