zidane 6.1.13 → 6.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/dist/{acp-BqfKqQ9x.js → acp-CYJvnqPa.js} +2 -2
  2. package/dist/{acp-BqfKqQ9x.js.map → acp-CYJvnqPa.js.map} +1 -1
  3. package/dist/acp-cli.js +4 -4
  4. package/dist/acp.d.ts +1 -1
  5. package/dist/acp.js +1 -1
  6. package/dist/{agent-CZ3WSWqR.js → agent-D11SxCvA.js} +155 -75
  7. package/dist/agent-D11SxCvA.js.map +1 -0
  8. package/dist/agent.d.ts +1 -1
  9. package/dist/agent.js +2 -2
  10. package/dist/{anthropic-CV_OSYVD.js → anthropic-DdlSgT6K.js} +47 -25
  11. package/dist/anthropic-DdlSgT6K.js.map +1 -0
  12. package/dist/{auth-D5FfJtLf.js → auth-Ys_7TmRj.js} +2 -2
  13. package/dist/{auth-D5FfJtLf.js.map → auth-Ys_7TmRj.js.map} +1 -1
  14. package/dist/{cache-telemetry-BKAwsNxm.js → cache-telemetry-KJ7B-_Gh.js} +8 -3
  15. package/dist/cache-telemetry-KJ7B-_Gh.js.map +1 -0
  16. package/dist/chat/pure.d.ts +3 -3
  17. package/dist/chat/pure.js +2 -2
  18. package/dist/chat.d.ts +12 -5
  19. package/dist/chat.d.ts.map +1 -1
  20. package/dist/chat.js +7 -7
  21. package/dist/{completion-core-CXYSVhZo.js → completion-core-BRo86R_L.js} +23 -10
  22. package/dist/completion-core-BRo86R_L.js.map +1 -0
  23. package/dist/contexts/daytona.d.ts +1 -1
  24. package/dist/contexts/e2b.d.ts +1 -1
  25. package/dist/eval.d.ts +1 -1
  26. package/dist/extensions.d.ts +2 -2
  27. package/dist/extensions.js +2 -2
  28. package/dist/headless.d.ts +1 -1
  29. package/dist/headless.js +1 -1
  30. package/dist/{index-X02SI0nt.d.ts → index-CNyYEOy0.d.ts} +351 -42
  31. package/dist/index-CNyYEOy0.d.ts.map +1 -0
  32. package/dist/index.d.ts +2 -2
  33. package/dist/index.js +6 -6
  34. package/dist/{generate-data-WL_yGVL6.js → inline-autocomplete-BAwBcZtD.js} +191 -6
  35. package/dist/inline-autocomplete-BAwBcZtD.js.map +1 -0
  36. package/dist/mcp.d.ts +1 -1
  37. package/dist/output/stream-json.d.ts +1 -1
  38. package/dist/output/terminal.d.ts +1 -1
  39. package/dist/presets.d.ts +1 -1
  40. package/dist/presets.js +1 -1
  41. package/dist/providers/anthropic.d.ts +1 -1
  42. package/dist/providers/anthropic.js +1 -1
  43. package/dist/providers/arcee.d.ts +1 -1
  44. package/dist/providers/baseten.d.ts +1 -1
  45. package/dist/providers/cerebras.d.ts +1 -1
  46. package/dist/providers/local.d.ts +1 -1
  47. package/dist/providers/openai-compat.d.ts +1 -1
  48. package/dist/providers/openai.d.ts +1 -1
  49. package/dist/providers/openrouter.d.ts +1 -1
  50. package/dist/providers/xai.d.ts +1 -1
  51. package/dist/providers.d.ts +1 -1
  52. package/dist/providers.js +1 -1
  53. package/dist/restate.d.ts +1 -1
  54. package/dist/session/sqlite.d.ts +1 -1
  55. package/dist/session.d.ts +1 -1
  56. package/dist/skills.d.ts +1 -1
  57. package/dist/{tool-formatters-kg8O6wHZ.d.ts → tool-formatters-B7oWiy5m.d.ts} +2 -2
  58. package/dist/tool-formatters-B7oWiy5m.d.ts.map +1 -0
  59. package/dist/tools/fetch-url.d.ts +1 -1
  60. package/dist/tools/web-search.d.ts +1 -1
  61. package/dist/tools.d.ts +1 -1
  62. package/dist/tools.js +1 -1
  63. package/dist/{transcript-anchors-DAF4RbyU.d.ts → transcript-anchors-BUZ915pM.d.ts} +2 -2
  64. package/dist/{transcript-anchors-DAF4RbyU.d.ts.map → transcript-anchors-BUZ915pM.d.ts.map} +1 -1
  65. package/dist/{transcript-anchors-DAf0Mr_9.js → transcript-anchors-cc4gsU-j.js} +23 -8
  66. package/dist/transcript-anchors-cc4gsU-j.js.map +1 -0
  67. package/dist/tui.d.ts +25 -15
  68. package/dist/tui.d.ts.map +1 -1
  69. package/dist/tui.js +539 -57
  70. package/dist/tui.js.map +1 -1
  71. package/dist/{turn-operations-zkZ1L0eb.d.ts → turn-operations-2Ou_DkbC.d.ts} +3 -3
  72. package/dist/{turn-operations-zkZ1L0eb.d.ts.map → turn-operations-2Ou_DkbC.d.ts.map} +1 -1
  73. package/dist/{turn-operations-D9p-y9EC.js → turn-operations-CXjRaltC.js} +72 -2
  74. package/dist/{turn-operations-D9p-y9EC.js.map → turn-operations-CXjRaltC.js.map} +1 -1
  75. package/dist/types-BIarq1qE.js.map +1 -1
  76. package/dist/types.d.ts +1 -1
  77. package/docs/ARCHITECTURE.md +1 -1
  78. package/docs/EXTENSIONS.md +43 -6
  79. package/package.json +2 -1
  80. package/scripts/eval.ts +21 -3
  81. package/dist/agent-CZ3WSWqR.js.map +0 -1
  82. package/dist/anthropic-CV_OSYVD.js.map +0 -1
  83. package/dist/cache-telemetry-BKAwsNxm.js.map +0 -1
  84. package/dist/completion-core-CXYSVhZo.js.map +0 -1
  85. package/dist/generate-data-WL_yGVL6.js.map +0 -1
  86. package/dist/index-X02SI0nt.d.ts.map +0 -1
  87. package/dist/tool-formatters-kg8O6wHZ.d.ts.map +0 -1
  88. package/dist/transcript-anchors-DAf0Mr_9.js.map +0 -1
@@ -171,10 +171,13 @@ declare function resolveAnthropicBetas(isOAuth: boolean, extraBetas?: readonly s
171
171
  * thinking too.
172
172
  * - `enabled` — explicit-budget path: `thinking.type='enabled'` with an
173
173
  * explicit `budget_tokens`. `maxTokensBump` is added to the request's
174
- * `max_tokens` so the budget sits on top of the response cap. The only
175
- * way to pin a precise token budget; Anthropic emits a deprecation
176
- * warning for this shape on opus 4.6+, so we only route here when the
177
- * caller explicitly sets `behavior.thinkingBudget`.
174
+ * `max_tokens` so the budget sits on top of the response cap. When the
175
+ * caller's level maps to an effort tier, `effort` is carried too and
176
+ * emitted as `output_config.effort` alongside the explicit budget
177
+ * both fields are valid together on 4.6+ models. The only way to pin a
178
+ * precise token budget; Anthropic emits a deprecation warning for this
179
+ * shape on opus 4.6+, so we only route here when the caller explicitly
180
+ * sets `behavior.thinkingBudget`.
178
181
  *
179
182
  * In both shapes Anthropic requires `temperature` to be `1`.
180
183
  */
@@ -182,10 +185,12 @@ type AnthropicThinkingPlan = {
182
185
  kind: 'enabled';
183
186
  budgetTokens: number;
184
187
  maxTokensBump: number;
188
+ effort?: 'low' | 'medium' | 'high' | 'xhigh' | 'max';
185
189
  } | {
186
190
  kind: 'adaptive';
187
191
  effort?: 'low' | 'medium' | 'high' | 'xhigh' | 'max';
188
192
  maxTokensCap?: number;
193
+ taskBudgetTokens?: number;
189
194
  };
190
195
  /**
191
196
  * Decide how to translate a `ThinkingLevel` into Anthropic's request shape.
@@ -195,19 +200,26 @@ type AnthropicThinkingPlan = {
195
200
  * Routing rules:
196
201
  * - `'off'` → `null` (no thinking field, no effort hint).
197
202
  * - `'adaptive'` → adaptive thinking with no effort hint (model decides
198
- * everything). When `customBudget` is set, it is carried as `maxTokensCap`
199
- * so the request builder caps `max_tokens` accordingly adaptive has no
200
- * native budget knob, but capping the response envelope soft-bounds the
201
- * thinking that lives inside it.
202
- * - Budgeted levels adaptive thinking with an `effort` hint, unless
203
- * `customBudget` is provided.
204
- * - Any level + `customBudget` explicit-budget `enabled` path. The caller
205
- * has opted into precise budget control and accepts the Anthropic
206
- * deprecation warning that comes with it on opus 4.6+. `'adaptive'` is the
207
- * sole exception: it never falls back to enabled, since adaptive is the
208
- * current Anthropic API surface for self-budgeted thinking.
209
- */
210
- declare function planAnthropicThinking(level: ThinkingLevel, customBudget?: number): AnthropicThinkingPlan | null;
203
+ * everything). When `taskBudget` is set, it is carried as
204
+ * `taskBudgetTokens` and emitted as `output_config.task_budget` — the
205
+ * native whole-task thinking cap. LEGACY: when `customBudget` is set, it
206
+ * is carried as `maxTokensCap` so the request builder caps `max_tokens`
207
+ * accordingly this clamps the whole response envelope (text and
208
+ * tool-call JSON included), which is the wrong knob for bounding thinking
209
+ * now that `taskBudget` exists; kept only for callers who already depend
210
+ * on it. Prefer `taskBudget`.
211
+ * - Budgeted levels adaptive thinking with an `effort` hint (plus
212
+ * `taskBudgetTokens` when `taskBudget` is set), unless `customBudget` is
213
+ * provided.
214
+ * - Any level + `customBudget` → explicit-budget `enabled` path, carrying
215
+ * the level's `effort` hint alongside the budget. The caller has opted
216
+ * into precise budget control and accepts the Anthropic deprecation
217
+ * warning that comes with it on opus 4.6+. `'adaptive'` is the sole
218
+ * exception: it never falls back to enabled, since adaptive is the
219
+ * current Anthropic API surface for self-budgeted thinking. `taskBudget`
220
+ * is adaptive-only and ignored on this path.
221
+ */
222
+ declare function planAnthropicThinking(level: ThinkingLevel, customBudget?: number, taskBudget?: number): AnthropicThinkingPlan | null;
211
223
  /**
212
224
  * Conservative per-family output ceiling, used ONLY as a fallback when pi-ai's
213
225
  * model registry doesn't know the model (or pi-ai is externalized) — see
@@ -1172,6 +1184,18 @@ interface ProviderCapabilities {
1172
1184
  nativeWebSearch?: {
1173
1185
  /** Cap on server-side search invocations per turn. Provider-specific default when omitted. */maxUses?: number;
1174
1186
  };
1187
+ /**
1188
+ * On `thinking: 'adaptive'`, this provider treats `thinkingBudget` as a cap
1189
+ * on the WHOLE response envelope (text + tool-call JSON + thinking), not as
1190
+ * a dedicated per-turn thinking budget. Anthropic adaptive is the case:
1191
+ * `thinkingBudget` becomes `max_tokens`, since adaptive has no native
1192
+ * budget knob (use `taskBudget` instead). The loop reads this to skip
1193
+ * `thinkingDecay` for adaptive on such providers — decaying an envelope cap
1194
+ * would strangle text/tool output, not just thinking. Providers where
1195
+ * adaptive + `thinkingBudget` is a genuine per-turn thinking budget (e.g.
1196
+ * openai-compat `reasoning.max_tokens`) leave this unset so decay applies.
1197
+ */
1198
+ adaptiveBudgetIsEnvelope?: boolean;
1175
1199
  }
1176
1200
  interface StreamCallbacks {
1177
1201
  onText: (delta: string) => void;
@@ -1254,6 +1278,11 @@ interface StreamOptions {
1254
1278
  thinking?: ThinkingLevel;
1255
1279
  /** Exact thinking token budget — overrides the level-based default when set */
1256
1280
  thinkingBudget?: number;
1281
+ /**
1282
+ * Whole-task thinking budget in tokens. Anthropic adaptive-thinking only
1283
+ * (`output_config.task_budget`); providers without the concept ignore it.
1284
+ */
1285
+ taskBudget?: number;
1257
1286
  /**
1258
1287
  * Enabled model-specific options (the `id`s of {@link ModelInfo.options} the
1259
1288
  * user toggled on), e.g. `{ fast: true }` for Anthropic's fast mode. Each
@@ -3348,6 +3377,16 @@ interface AgentBehavior {
3348
3377
  maxTokens?: number;
3349
3378
  /** Thinking token budget — overrides the level-based default when set */
3350
3379
  thinkingBudget?: number;
3380
+ /**
3381
+ * Total thinking budget across the whole task, in tokens. Anthropic
3382
+ * adaptive-thinking only — emitted as
3383
+ * `output_config.task_budget = { type: 'tokens', total }` alongside the
3384
+ * level-derived `effort` hint. Ignored where a task budget has no meaning:
3385
+ * non-Anthropic providers, `thinking: 'off'`, and the explicit-budget
3386
+ * `enabled` path (`thinkingBudget` set on a non-adaptive level). A
3387
+ * whole-task cap, so it is never routed through `thinkingDecay`.
3388
+ */
3389
+ taskBudget?: number;
3351
3390
  /**
3352
3391
  * When a provider streams more thinking text than expected, optionally nudge
3353
3392
  * the next continuing turn toward concrete progress. This is advisory and
@@ -3456,9 +3495,16 @@ interface AgentBehavior {
3456
3495
  * - **Function** — `(runTurn, baseBudget) => number`. Arbitrary curves;
3457
3496
  * `runTurn` is 1-indexed, run-relative (resumed sessions reset).
3458
3497
  *
3459
- * No-op when `thinkingBudget` is unset. Honored by every provider that
3460
- * respects `thinkingBudget` (anthropic explicit-budget `enabled` path,
3461
- * adaptive `maxTokensCap`, openai-compat `max_tokens` padding).
3498
+ * No-op when `thinkingBudget` is unset. Applies to the per-turn thinking
3499
+ * budget: the Anthropic explicit-budget `enabled` path and openai-compat
3500
+ * `max_tokens` padding / `reasoning.max_tokens`. It does NOT touch
3501
+ * `taskBudget` (a whole-task cap — per-turn decay is meaningless there).
3502
+ * It is also skipped for `thinking: 'adaptive'` on providers that treat
3503
+ * `thinkingBudget` as a whole-response envelope cap there (Anthropic —
3504
+ * `ProviderCapabilities.adaptiveBudgetIsEnvelope`): decaying an envelope cap
3505
+ * would strangle text/tool output, not just thinking. On providers where
3506
+ * adaptive + `thinkingBudget` is a genuine per-turn thinking budget (e.g.
3507
+ * openai-compat `reasoning.max_tokens`), adaptive still decays.
3462
3508
  *
3463
3509
  * Default: `undefined` (no decay).
3464
3510
  */
@@ -6260,7 +6306,7 @@ type EditDiffDisplay = 'compact' | 'full';
6260
6306
  * visible: bottom-bar hints (agent / model / skills / session /
6261
6307
  * settings / sessions / update), the prompt-overlay shortcuts
6262
6308
  * (`↵ send`, `shift+↵ newline`, `↑↓ history`, `ctrl+s messages`) +
6263
- * the `@ files` / `/ skills` triggers, and the `ctrl+x session`
6309
+ * the `@ files` / `/ skills` triggers, and the `ctrl+shift+x session`
6264
6310
  * chip on the title meta.
6265
6311
  * - `'minimal'` — strip the chat session UI to just the controls a
6266
6312
  * user actually keeps hands on:
@@ -6270,7 +6316,7 @@ type EditDiffDisplay = 'compact' | 'full';
6270
6316
  * keybindings panel (`ctrl+y`).
6271
6317
  * Prompt-overlay hints (idle): only the `@ files` / `/ skills`
6272
6318
  * triggers — the resting send/newline/history line is dropped.
6273
- * Title meta: drop the `ctrl+x session` chip. Cwd + message /
6319
+ * Title meta: drop the `ctrl+shift+x session` chip. Cwd + message /
6274
6320
  * turn stats stay.
6275
6321
  *
6276
6322
  * Busy / pending / select-turn / queue / approval states keep their
@@ -6725,6 +6771,14 @@ interface Settings {
6725
6771
  * Default: on.
6726
6772
  */
6727
6773
  externalEditor: boolean;
6774
+ /**
6775
+ * Inline ghost-text autocomplete in the prompt: as you type, providers
6776
+ * (built-in path completion + extension-registered ones) suggest a dim
6777
+ * suffix at the cursor; Tab accepts it. Purely a prompt-composing
6778
+ * affordance — the agent sees the same final text either way.
6779
+ * Default: off.
6780
+ */
6781
+ inlineAutocomplete: boolean;
6728
6782
  /**
6729
6783
  * What happens when the user presses Ctrl+C.
6730
6784
  *
@@ -7557,6 +7611,20 @@ interface CommandArgSuggestion {
7557
7611
  interface Command {
7558
7612
  /** Invoked as `/<name>`. Lowercase, no whitespace. */
7559
7613
  name: string;
7614
+ /**
7615
+ * Alternate invocation names (same constraints as `name`). `/alias`
7616
+ * dispatches to this command; the popover shows the canonical name and
7617
+ * lists aliases in the description. Aliases participate in the same
7618
+ * first-registration-wins dedupe as names.
7619
+ */
7620
+ aliases?: readonly string[];
7621
+ /**
7622
+ * Grouping key for completion — the registry stamps the source
7623
+ * extension's name here, so typing `/<extension>` in the popover lists
7624
+ * every command that extension contributes. Not an invocation name:
7625
+ * `parseCommandInvocation` ignores it.
7626
+ */
7627
+ group?: string;
7560
7628
  /** One-line summary shown in the completion popover. */
7561
7629
  description: string;
7562
7630
  /** Single-step sugar. */
@@ -7587,10 +7655,11 @@ interface CommandInvocation {
7587
7655
  * what keeps mid-prompt `/skill` mentions routed to the skills provider:
7588
7656
  * `"summarize /research"` is not a command, `"/research foo"` is.
7589
7657
  *
7590
- * `knownNames` is matched case-insensitively; the returned `name` is the
7591
- * canonical (registered) casing.
7658
+ * `known` is matched case-insensitively; entries may be bare names or
7659
+ * `{ name, aliases }` records — an alias hit canonicalizes to the entry's
7660
+ * `name` (registered casing), so dispatch-by-name downstream just works.
7592
7661
  */
7593
- declare function parseCommandInvocation(prompt: string, knownNames: readonly string[]): CommandInvocation | null;
7662
+ declare function parseCommandInvocation(prompt: string, known: readonly (string | Pick<Command, 'name' | 'aliases'>)[]): CommandInvocation | null;
7594
7663
  /** Outcome of a command run. `error` is set when a step threw (pipeline stops). */
7595
7664
  interface CommandExecution {
7596
7665
  ok: boolean;
@@ -7652,6 +7721,13 @@ interface CompletionItem<TItem = unknown> {
7652
7721
  * defaults it to the producing provider's `label` in {@link mergeSuggestions}.
7653
7722
  */
7654
7723
  section?: string;
7724
+ /**
7725
+ * Id of the producing provider — stamped by {@link mergeSuggestions} so
7726
+ * renderers can apply provider-specific styling (e.g. chip-colored
7727
+ * titles) in a multi-provider popover. Items constructed outside the
7728
+ * merge path may leave it unset.
7729
+ */
7730
+ providerId?: string;
7655
7731
  /** Original provider-specific payload. */
7656
7732
  data: TItem;
7657
7733
  }
@@ -7845,6 +7921,125 @@ declare function useCompletion<TItem = unknown>(input: {
7845
7921
  maxQueryLength?: number;
7846
7922
  }): CompletionState<TItem>;
7847
7923
  //#endregion
7924
+ //#region src/chat/inline-autocomplete.d.ts
7925
+ /**
7926
+ * Inline (ghost-text) autocomplete for the prompt.
7927
+ *
7928
+ * Distinct from the trigger-based completion popover (`@` files, `/`
7929
+ * commands): providers here suggest plain text SUFFIX candidates to
7930
+ * append at the cursor — the first renders as dim ghost text, up/down
7931
+ * rotates through the rest, Tab accepts. No popover.
7932
+ *
7933
+ * Providers are queried in registration order with a shared AbortSignal;
7934
+ * the engine returns the first provider's non-empty candidate list.
7935
+ * Extensions add providers via `ctx.registerInlineAutocompleteProvider`
7936
+ * — the built-in path provider ({@link createPathAutocompleteProvider})
7937
+ * is always first.
7938
+ */
7939
+ interface InlineAutocompleteContext {
7940
+ /** Full prompt buffer. */
7941
+ text: string;
7942
+ /** Cursor offset into `text`. Suggestions complete the token ENDING here. */
7943
+ cursor: number;
7944
+ /** Workspace directory relative paths resolve against. */
7945
+ cwd: string;
7946
+ /** Aborted when the buffer changes before the provider resolves. */
7947
+ signal: AbortSignal;
7948
+ }
7949
+ interface InlineAutocompleteProvider {
7950
+ /** Stable id — used for first-wins dedupe across extensions. */
7951
+ id: string;
7952
+ /**
7953
+ * Per-provider deadline override (ms), capped at
7954
+ * {@link MAX_PROVIDER_DEADLINE_MS}. The default
7955
+ * ({@link PROVIDER_DEADLINE_MS}) suits instant sources like directory
7956
+ * listings; a provider backed by a slow source (e.g. a local LLM) can
7957
+ * extend its own budget — the wait is async (typing is never blocked,
7958
+ * an edit aborts the query) and only delays providers ordered AFTER
7959
+ * this one.
7960
+ */
7961
+ deadlineMs?: number;
7962
+ /**
7963
+ * Return the ghost suffix (or an ordered list of candidate suffixes —
7964
+ * the host shows the first and lets the user rotate with up/down) to
7965
+ * append at the cursor, or null/''/[] for no suggestion. Must respect
7966
+ * its deadline budget — it runs per keystroke (debounced by the
7967
+ * host).
7968
+ */
7969
+ suggest: (ctx: InlineAutocompleteContext) => string | readonly string[] | null | Promise<string | readonly string[] | null>;
7970
+ }
7971
+ /**
7972
+ * Query `providers` in order; the first provider yielding a non-empty
7973
+ * candidate list wins (a bare string normalizes to a 1-element list).
7974
+ * Provider errors are swallowed (a broken extension provider must not
7975
+ * break typing), and each provider races its deadline —
7976
+ * {@link PROVIDER_DEADLINE_MS} by default, a provider's own `deadlineMs`
7977
+ * (capped at {@link MAX_PROVIDER_DEADLINE_MS}) when declared — so one
7978
+ * hung provider can't permanently suppress the ghosts of providers
7979
+ * behind it. Returns null when aborted or nothing matched.
7980
+ */
7981
+ declare function resolveInlineSuggestion(providers: readonly InlineAutocompleteProvider[], ctx: InlineAutocompleteContext, deadlineMs?: number, maxDeadlineMs?: number): Promise<{
7982
+ suffixes: readonly string[];
7983
+ providerId: string;
7984
+ } | null>;
7985
+ /**
7986
+ * Extract the whitespace-delimited token that ends at `cursor`. Returns
7987
+ * null when the cursor sits right after whitespace (nothing to complete).
7988
+ */
7989
+ declare function tokenEndingAtCursor(text: string, cursor: number): string | null;
7990
+ /** Directory listing seam — injectable for tests. */
7991
+ interface PathProviderIo {
7992
+ readdir?: (dir: string) => {
7993
+ name: string;
7994
+ isDirectory: boolean;
7995
+ }[];
7996
+ }
7997
+ /**
7998
+ * Built-in provider: complete filesystem paths under `cwd` (or absolute /
7999
+ * `~` paths). Given the token `src/chat/comp`, lists `src/chat/` and
8000
+ * returns every matching continuation of `comp` as a candidate list —
8001
+ * directories first, alphabetical, `/`-terminated for directories so
8002
+ * typing can continue. The host ghosts the first candidate and rotates
8003
+ * through the rest on up/down.
8004
+ *
8005
+ * Bare tokens (no `/` yet) are matched against the cwd listing too, so
8006
+ * a directory ghost appears as soon as the first characters of `src`
8007
+ * are typed — but only from the second character on, so 1-letter prose
8008
+ * words don't ghost-spam.
8009
+ *
8010
+ * Dotfiles are only offered when the typed fragment itself starts with
8011
+ * `.` — the usual completion convention.
8012
+ */
8013
+ declare function createPathAutocompleteProvider(opts?: {
8014
+ cwd?: () => string;
8015
+ io?: PathProviderIo;
8016
+ }): InlineAutocompleteProvider;
8017
+ interface InlineGhost {
8018
+ suffixes: readonly string[];
8019
+ index: number;
8020
+ text: string;
8021
+ cursor: number;
8022
+ }
8023
+ /**
8024
+ * Optimistically transform the current ghost across a buffer edit so it
8025
+ * stays visible while the debounced provider re-query is in flight —
8026
+ * without this, every keystroke inside a completable token blinks the
8027
+ * ghost (hide → 120 ms → reshow).
8028
+ *
8029
+ * Two edits are reconcilable (everything else returns null and waits for
8030
+ * the authoritative result):
8031
+ * - typing FORWARD along the suggestion (`bi` → `bin` with ghost
8032
+ * `n/`): candidates are filtered to those starting with the typed
8033
+ * chars and trimmed;
8034
+ * - deleting BACKWARD within the token (`bin` → `bi` with ghost `/`):
8035
+ * the deleted chars are re-prepended to every candidate. Guarded to
8036
+ * non-whitespace so crossing a token boundary drops the ghost.
8037
+ *
8038
+ * The patched ghost is provisional — the provider's answer replaces it
8039
+ * (and may add candidates the patch couldn't know about).
8040
+ */
8041
+ declare function patchInlineGhost(prev: InlineGhost | null, text: string, cursor: number): InlineGhost | null;
8042
+ //#endregion
7848
8043
  //#region src/chat/theme.d.ts
7849
8044
  /**
7850
8045
  * Renderer-agnostic theme system.
@@ -9712,6 +9907,15 @@ interface ExtensionContext {
9712
9907
  * resolved (first registration wins in the TUI).
9713
9908
  */
9714
9909
  registerCompletionProvider: (provider: CompletionProvider) => void;
9910
+ /**
9911
+ * Register an inline (ghost-text) autocomplete provider — suggests a
9912
+ * plain suffix at the prompt cursor, rendered dim and accepted with
9913
+ * Tab. Distinct from trigger-based completion popovers: no popup, no
9914
+ * list — first provider (built-in path completion, then extensions in
9915
+ * registration order) returning a suffix wins. Deduped by `id`,
9916
+ * first registration wins.
9917
+ */
9918
+ registerInlineAutocompleteProvider: (provider: InlineAutocompleteProvider) => void;
9715
9919
  /**
9716
9920
  * Register a `/` command — a workflow invoked by typing `/<name> [args]`
9717
9921
  * as the whole prompt. Names must be unique across the merged registry;
@@ -9835,6 +10039,17 @@ interface ExtensionContext {
9835
10039
  * live values).
9836
10040
  */
9837
10041
  readonly config: ExtensionConfigSurface;
10042
+ /**
10043
+ * `true` when this build runs `setup()` only to declare the config
10044
+ * schema for a DISABLED (allowlist-off) extension — so its settings are
10045
+ * browsable in Settings before the user enables it. In this mode every
10046
+ * behavioral contribution is dropped and the runtime surfaces (`tui.*`,
10047
+ * `submitPrompt`, `runtime`, `sessions`, `workspace`, `appendNote`) are
10048
+ * inert no-ops. Side-effecting setup work (network probes, spawning
10049
+ * processes, warming caches) MUST be gated on `!ctx.disabled` — a
10050
+ * disabled extension should touch nothing until enabled.
10051
+ */
10052
+ readonly disabled: boolean;
9838
10053
  /**
9839
10054
  * TUI namespace — wiring under `@opentui/react`. Skipped silently
9840
10055
  * by non-TUI hosts: `registerKeybinding` / `registerFooterHint` /
@@ -10018,6 +10233,7 @@ interface ExtensionContributions {
10018
10233
  skillPolicies: readonly ExtensionOrderedContribution<ExtensionSkillPolicy>[];
10019
10234
  promptTransforms: readonly ExtensionOrderedContribution<ExtensionPromptTransform>[];
10020
10235
  completionProviders: readonly CompletionProvider[];
10236
+ inlineAutocompleteProviders: readonly InlineAutocompleteProvider[];
10021
10237
  commands: readonly Command[];
10022
10238
  themes: Readonly<Record<string, Theme>>;
10023
10239
  agents: Readonly<Record<string, AgentProfile>>;
@@ -10089,6 +10305,8 @@ interface ExtensionRegistry {
10089
10305
  promptTransforms: readonly ExtensionOrderedContribution<ExtensionPromptTransform>[];
10090
10306
  /** Completion providers (TUI/GUI shared). */
10091
10307
  completionProviders: readonly CompletionProvider[];
10308
+ /** Inline ghost-text autocomplete providers, deduped by id (first wins). */
10309
+ inlineAutocompleteProviders: readonly InlineAutocompleteProvider[];
10092
10310
  /** `/` commands, deduped by name (first registration wins). */
10093
10311
  commands: readonly Command[];
10094
10312
  /** Themes contributed by extensions, keyed by theme id. */
@@ -10241,12 +10459,82 @@ interface ExtensionConfigModelItem extends ExtensionConfigItemBase {
10241
10459
  /** Allow picking MORE than one model (comma-separated persisted value). */
10242
10460
  multi?: boolean;
10243
10461
  }
10462
+ /**
10463
+ * What a config ACTION reports back to the host after running. Actions
10464
+ * cannot write settings directly — there is deliberately no `config.set`
10465
+ * surface for extensions — so a successful run RETURNS the values it wants
10466
+ * persisted and the host writes them through its own validated settings
10467
+ * path ({@link sanitizeExtensionConfigActionPatch} gates the patch).
10468
+ */
10469
+ interface ExtensionConfigActionResult {
10470
+ /** One-line feedback shown in the Settings UI (e.g. "proxy running at …"). */
10471
+ message?: string;
10472
+ /**
10473
+ * Config values of the DECLARING extension to persist on success, keyed
10474
+ * by item key. Entries naming unknown keys, action items, or values that
10475
+ * fail the item's schema are dropped (not errors) — a buggy action can
10476
+ * degrade but never corrupt the settings bag.
10477
+ */
10478
+ config?: Record<string, ExtensionConfigValue>;
10479
+ }
10480
+ /**
10481
+ * An imperative config item — rendered as a "press ↵ to run" row instead
10482
+ * of a value editor. `run` executes in the extension's own process (it is
10483
+ * never serialized — {@link toWireConfigSchema} omits action items
10484
+ * entirely), so it can close over the extension's `setup(ctx)` scope.
10485
+ *
10486
+ * Contract for `run`:
10487
+ * - Resolve with an {@link ExtensionConfigActionResult} (or `void`) on
10488
+ * success — `message` becomes the row's feedback line, `config`
10489
+ * values are persisted by the host.
10490
+ * - Throw / reject on failure — the error message is shown on the row.
10491
+ * - Bound your own runtime: the host serializes actions (one in flight
10492
+ * per modal) but imposes no timeout, so a hanging `run` holds the
10493
+ * "running…" state until it settles.
10494
+ *
10495
+ * Actions hold no persisted value: `ctx.config.get(key)` returns
10496
+ * `undefined` for an action key and the resolver never yields a value.
10497
+ */
10498
+ interface ExtensionConfigActionItem extends Pick<ExtensionConfigItemBase, 'key' | 'label' | 'description'> {
10499
+ type: 'action';
10500
+ run: () => ExtensionConfigActionResult | void | Promise<ExtensionConfigActionResult | void>;
10501
+ /**
10502
+ * Optional passive probe — called by the host when the settings panel
10503
+ * surfaces the row (and re-called after any action of the panel
10504
+ * settles), so the row can show live state ("running at …") WITHOUT
10505
+ * the user pressing ↵. Contract:
10506
+ *
10507
+ * - Resolve an {@link ExtensionConfigActionStatus} to show it, or
10508
+ * `undefined` for "no status" (e.g. the probed tool isn't
10509
+ * installed — stay quiet rather than nag).
10510
+ * - Throwing is treated as `undefined` — probes must be safe to call
10511
+ * at any time and MUST NOT mutate anything.
10512
+ * - Be fast: the host caps each probe (a few seconds) and discards
10513
+ * late results.
10514
+ */
10515
+ status?: () => ExtensionConfigActionStatus | undefined | Promise<ExtensionConfigActionStatus | undefined>;
10516
+ }
10517
+ /**
10518
+ * Result of an action's passive `status` probe. `state` drives the row
10519
+ * color (`ok` accent / `off` mute / `error` error); `message` is the
10520
+ * one-line text rendered in the row's value slot.
10521
+ */
10522
+ interface ExtensionConfigActionStatus {
10523
+ state: 'ok' | 'off' | 'error';
10524
+ message: string;
10525
+ }
10526
+ /**
10527
+ * The value-holding config items — everything except `action`. Functions
10528
+ * that produce or validate persisted VALUES take this narrower union;
10529
+ * {@link ExtensionConfigItem} is the full declarable set.
10530
+ */
10531
+ type ExtensionConfigValueItem = ExtensionConfigBooleanItem | ExtensionConfigNumberItem | ExtensionConfigStringItem | ExtensionConfigEnumItem | ExtensionConfigModelItem;
10244
10532
  /**
10245
10533
  * Discriminated union of the typed config items an extension can declare.
10246
10534
  * The `type` tag drives both validation ({@link resolveExtensionConfigValue})
10247
- * and rendering (toggle / choice / input row).
10535
+ * and rendering (toggle / choice / input / action row).
10248
10536
  */
10249
- type ExtensionConfigItem = ExtensionConfigBooleanItem | ExtensionConfigNumberItem | ExtensionConfigStringItem | ExtensionConfigEnumItem | ExtensionConfigModelItem;
10537
+ type ExtensionConfigItem = ExtensionConfigValueItem | ExtensionConfigActionItem;
10250
10538
  /**
10251
10539
  * A config category — a labelled grouping the Settings UIs render as a
10252
10540
  * sub-header. Declared via `ctx.registerConfigCategory`. An item that
@@ -10302,9 +10590,11 @@ declare function isValidExtensionConfigValue(item: ExtensionConfigItem, value: u
10302
10590
  * Resolve the effective value of a config item from its persisted value.
10303
10591
  * THE single place graceful degradation lives: a `persisted` that's
10304
10592
  * `undefined` (never set) OR fails {@link isValidExtensionConfigValue}
10305
- * collapses to `item.default`.
10593
+ * collapses to `item.default`. Action items hold no value and resolve to
10594
+ * `undefined` — the overloads keep value-item call sites exact.
10306
10595
  */
10307
- declare function resolveExtensionConfigValue(item: ExtensionConfigItem, persisted: unknown): ExtensionConfigValue;
10596
+ declare function resolveExtensionConfigValue(item: ExtensionConfigValueItem, persisted: unknown): ExtensionConfigValue;
10597
+ declare function resolveExtensionConfigValue(item: ExtensionConfigItem, persisted: unknown): ExtensionConfigValue | undefined;
10308
10598
  /**
10309
10599
  * Clamp a number to the item's `[min, max]` and snap to `step` (when set).
10310
10600
  * Used by the input-row commit paths so a user-typed value is coerced into
@@ -10327,6 +10617,18 @@ declare function coerceExtensionConfigInput(item: ExtensionConfigItem, raw: stri
10327
10617
  * `(extName, key)` pair names no registered item.
10328
10618
  */
10329
10619
  declare function resolveExtensionConfig(registry: Pick<ExtensionRegistry, 'configItems'>, settings: Pick<Settings, 'extensionConfig'> | undefined, extName: string, key: string): ExtensionConfigValue | undefined;
10620
+ /**
10621
+ * Gate the `config` patch an action returned before the host persists it.
10622
+ * Per-entry, an item is accepted only when it names a registered VALUE
10623
+ * item of the declaring extension and passes that item's schema
10624
+ * ({@link isValidExtensionConfigValue}); everything else lands in
10625
+ * `rejected` for logging. Pure — the host applies `accepted` through its
10626
+ * own settings write path.
10627
+ */
10628
+ declare function sanitizeExtensionConfigActionPatch(items: Readonly<Record<string, StoredExtensionConfigItem>> | undefined, patch: Readonly<Record<string, ExtensionConfigValue>> | undefined): {
10629
+ accepted: Record<string, ExtensionConfigValue>;
10630
+ rejected: string[];
10631
+ };
10330
10632
  /** Fields the wire shape adds on top of the authored item (minus `validate`). */
10331
10633
  interface WireConfigExtras {
10332
10634
  category: string;
@@ -10343,8 +10645,10 @@ interface WireExtensionConfigSchema {
10343
10645
  * Project the merged registry's config schema into a wire-safe shape:
10344
10646
  * categories as a flat array, items flattened to a single list carrying
10345
10647
  * their `extension` + `category`, with the non-serializable `validate`
10346
- * callback stripped. Pure factored out so its serialization is unit
10347
- * testable without an Electron / IPC harness.
10648
+ * callback stripped. Action items are omitted entirely their `run`
10649
+ * callback only exists in the main process, so a remote renderer (the
10650
+ * GUI) has nothing it could do with the row. Pure — factored out so its
10651
+ * serialization is unit testable without an Electron / IPC harness.
10348
10652
  */
10349
10653
  declare function toWireConfigSchema(registry: Pick<ExtensionRegistry, 'configCategories' | 'configItems'>): WireExtensionConfigSchema;
10350
10654
  //#endregion
@@ -10398,8 +10702,10 @@ interface DiscoverAndBuildExtensionRegistryOptions {
10398
10702
  * User enable allowlist (`Settings.enabledExtensions`). `undefined`
10399
10703
  * means "fresh install — everything enabled". When set it gates BOTH
10400
10704
  * disk and inline candidates: a name absent from the list lands in the
10401
- * build's `disabled` set so its `setup()` never runs and its
10402
- * contributions never reach the registry.
10705
+ * build's `disabled` set, so it classifies as `inactive` and its
10706
+ * contributions never reach the registry's active surface. Its
10707
+ * `setup()` still runs (trusted code) so its config schema is
10708
+ * browsable in Settings before enabling.
10403
10709
  */
10404
10710
  enabledAllowlist?: readonly string[];
10405
10711
  /** Whether project-scoped extensions are trusted (allowed to run their code). */
@@ -10431,9 +10737,7 @@ interface DiscoverAndBuildExtensionRegistryOptions {
10431
10737
  *
10432
10738
  * The `disabled` set honors the allowlist for inline extensions too:
10433
10739
  * the TUI treats inline as toggleable everywhere else (Settings tab,
10434
- * live filtering), so letting a toggled-off inline extension run
10435
- * `setup()` here would leak its providers / agents / themes into the
10436
- * registry anyway.
10740
+ * live filtering), so both ride the same inactive-classification path.
10437
10741
  */
10438
10742
  declare function discoverAndBuildExtensionRegistry(opts?: DiscoverAndBuildExtensionRegistryOptions): Promise<ExtensionRegistry>;
10439
10743
  //#endregion
@@ -10499,8 +10803,12 @@ declare function scanExtensionDirectories(opts?: {
10499
10803
  extensionScanPaths?: readonly string[];
10500
10804
  }): ExtensionScanEntry[];
10501
10805
  /**
10502
- * Discover + load every enabled / trusted extension reachable from the
10503
- * default scan paths. Returns one {@link LoadedExtension} per scan entry:
10806
+ * Discover + load every trusted extension reachable from the default
10807
+ * scan paths including ones the user's enable allowlist has toggled
10808
+ * OFF. Disabled extensions still import (and later run `setup()`) so
10809
+ * their config schema is browsable in Settings before enabling; the
10810
+ * allowlist gates their CONTRIBUTIONS at registry level, not their code.
10811
+ * The trust boundary stays with `trustProjectExtensions`. Returns one {@link LoadedExtension} per scan entry:
10504
10812
  * skipped entries have no definition, failed entries carry `error`.
10505
10813
  * Loaders never throw — the host can decide what to do with load errors
10506
10814
  * (typically: ship them to the Settings panel).
@@ -10530,7 +10838,6 @@ declare function discoverExtensions(opts?: {
10530
10838
  prefix?: string;
10531
10839
  extensionScanPaths?: readonly string[];
10532
10840
  signal?: AbortSignal;
10533
- enabled?: readonly string[];
10534
10841
  trustProjectExtensions?: boolean;
10535
10842
  importTimeoutMs?: number;
10536
10843
  }): Promise<LoadedExtension[]>;
@@ -12678,6 +12985,8 @@ interface CacheDimensionSnapshot {
12678
12985
  thinking: string;
12679
12986
  /** Exact thinking budget — `0` when absent. */
12680
12987
  thinkingBudget: number;
12988
+ /** Whole-task thinking budget (Anthropic adaptive-only) — `0` when absent. */
12989
+ taskBudget: number;
12681
12990
  }
12682
12991
  /** Result of {@link diffCacheDimensions}. */
12683
12992
  interface CacheDimensionDiff {
@@ -12687,7 +12996,7 @@ interface CacheDimensionDiff {
12687
12996
  details: Readonly<Partial<Record<CacheDimensionName, string>>>;
12688
12997
  }
12689
12998
  /** Cache-affecting dimension names. */
12690
- type CacheDimensionName = 'system' | 'tools' | 'model' | 'thinking' | 'thinkingBudget';
12999
+ type CacheDimensionName = 'system' | 'tools' | 'model' | 'thinking' | 'thinkingBudget' | 'taskBudget';
12691
13000
  interface CacheBreakLoggerOptions {
12692
13001
  /**
12693
13002
  * Sink for log lines. Defaults to `console.error`. Use a {@link Logger} or
@@ -15565,5 +15874,5 @@ declare function definePreset(config: Preset): Preset;
15565
15874
  */
15566
15875
  declare function composePresets(...presets: Preset[]): Preset;
15567
15876
  //#endregion
15568
- export { maybePersistToolResult as $, ExtensionApiVersion as $a, CommandInteraction as $c, PromptPart as $d, SessionData as $f, ExtensionInstallError as $i, LoggingHooksOptions as $l, waitTask as $n, createExtensionHud as $o, OpenRouterParams as $p, BASE_INSTRUCTIONS as $r, SourcedScanPath as $s, TrajectoryStep as $t, localDescriptor as $u, MetricsHookSet as A, ExtensionConfigBooleanItem as Aa, ThemeColors as Ac, AgentStats as Ad, toolOutputBudgetByteLength as Af, defaultRepeatGuardTracked as Ai, QuestionType as Al, CursorParams as Am, FormattedHeadlessTurnEvent as An, ExtensionToolCatalogTransform as Ao, filterUnresolvedToolUses as Ap, RunSummaryCollectorOptions as Ar, SkillValidationResult as As, EvalRunMetricAggregate as At, buildRunModel as Au, loginMcpServer as B, ExtensionConfigSurface as Ba, CompletionProvider as Bc, DedupToolConfig as Bd, hashContent as Bf, McpToolWrap as Bi, useInteractionsQueue as Bl, AnthropicParams as Bm, ProviderTranscriptFormat as Bn, ExtensionTuiSurface as Bo, StreamOptions as Bp, PostCompactRestoreOptions as Br, interpolateShellCommands as Bs, EvalVariantSummary as Bt, ProviderKey as Bu, normalizeProviders as C, scanExtensionDirectories as Ca, BUILTIN_THEMES as Cc, ContextMcpGroup as Cd, ToolResultImageContent as Cf, CacheDimensionName as Ci, PlanResponse as Cl, OpenAIParams as Cm, llmJudge as Cn, ExtensionRunTransform as Co, TOOL_USE_INTERRUPTED_MARKER as Cp, glob as Cr, createModelSearchTool as Cs, EvalArtifacts as Ct, Picked as Cu, InstrumentOptions as D, ExtensionPromptDelivery as Da, SyntaxStyles as Dc, AgentBehavior as Dd, ToolResultVideoContent as Df, installCacheBreakLogger as Di, QuestionPayload as Dl, toPiMessages as Dm, runEvalCase as Dn, ExtensionSource as Do, detectTurnInterruption as Dp, RunSummaryBudget as Dr, writeSkillToDisk as Ds, EvalDefinitionContext as Dt, StreamEvent as Du, Histogram as E, ExtensionPromptBridge as Ea, DEFAULT_THEME as Ec, buildContextBreakdown as Ed, ToolResultTextContent as Ef, fnv1a32 as Ei, QuestionChoice as El, openai as Em, relativeArtifactPath as En, ExtensionSkillPolicy as Eo, autoDetectAndConvert as Ep, RunSummaryBlock as Er, defineSkill as Es, EvalDefinition as Et, Settings as Eu, OAuthCallbackOptions as F, ExtensionConfigItemBase as Fa, CompletionState as Fc, CompactFunction as Fd, ToolMap as Ff, AgentHookMap as Fi, isInteractionTool as Fl, baseten as Fm, HeadlessResult as Fn, ExtensionToolRendererRegistration as Fo, toOpenAI as Fp, createRunSummaryCollector as Fr, validateResourcePathReal as Fs, EvalRunUsage as Ft, restoreChainFallbacks as Fu, createMemoryMcpCredentialStore as G, clampExtensionConfigNumber as Ga, findActiveTrigger as Gc, ModelTarget as Gd, ShellInterpolationApproval as Gf, buildExtensionRegistry as Gi, resolveSchemaInput as Gl, defaultAnthropicMaxTokens as Gm, headlessEventToJsonl as Gn, ExtensionHud as Go, TurnResult as Gp, selectRecentFiles as Gr, SkillInstallErrorCode as Gs, MetricDirection as Gt, ModelOption as Gu, McpCredentialStore as H, StoredExtensionConfigItem as Ha, CompletionSubmitContext as Hc, McpServerConfig as Hd, hydrateReadStateFromSessionAsync as Hf, BuildExtensionRegistryOptions as Hi, SchemaInput as Hl, anthropic as Hm, formatHeadlessResult as Hn, LoadedExtension as Ho, ToolCall as Hp, buildPostCompactAttachments as Hr, SKILL_PROVENANCE_FILE as Hs, EvalWorkspaceOptions as Ht, BUILTIN_PROVIDERS as Hu, OAuthCallbackResult as I, ExtensionConfigModelItem as Ia, useCompletion as Ic, CompactHookContext as Id, HydrateReadStateOptions as If, AgentHooks as Ii, makeRequestInteraction as Il, planBasetenReasoning as Im, HeadlessStatus as In, ExtensionToolResultMetadataRegistration as Io, toWireMessages as Ip, BYTES_PER_TOKEN as Ir, validateSkillForWrite as Is, EvalScore as It, sanitizeModelChain as Iu, PERSISTENCE_PREVIEW_BYTES as J, isValidExtensionConfigValue as Ja, Command as Jc, ProgressNudgeKind as Jd, SkillResource as Jf, filterExtensionRegistry as Ji, LogLevel as Jl, resolveAnthropicMaxOutput as Jm, runHeadless as Jn, ExtensionHudWriter as Jo, SchemaSanitizeOptions as Jp, CompactResult as Jr, SkillInstallSpec as Js, MetricSpecMap as Jt, cerebrasDescriptor as Ju, hasAuthorizationHeader as K, coerceExtensionConfigInput as Ka, mergeReferences as Kc, ModelTargetSpec as Kd, SkillConfig as Kf, composeExtensionPreset as Ki, zodToJsonSchema as Kl, planAnthropicThinking as Km, installHeadlessEventAdapter as Kn, ExtensionHudState as Ko, XaiParams as Kp, CompactEndEvent as Kr, SkillInstallOptions as Ks, MetricEmitter as Kt, ProviderDescriptor as Ku, startOAuthCallback as L, ExtensionConfigNumberItem as La, ActiveTrigger as Lc, CompactStartHookContext as Ld, ReadStateEntry as Lf, AgentOptions as Li, pendingInteractionsFromTurns as Ll, ArceeParams as Lm, HeadlessUsage as Ln, ExtensionToolResultPatch as Lo, Provider as Lp, estimateTokens as Lr, validateSkillName as Ls, EvalScorer as Lt, toggleChainEntry as Lu, UpDownCounter as M, ExtensionConfigChangeBehavior as Ma, ThemeSurfaces as Mc, AutoCompactConfig as Md, toolResultToText as Mf, stableStringify as Mi, TextQuestion as Ml, CerebrasParams as Mm, HeadlessEvent as Mn, ExtensionToolRenderProps as Mo, fromOpenAI as Mp, RunSummaryRepeatGuard as Mr, matchesAllowedTool as Ms, EvalRunReporterOptions as Mt, chainsEqual as Mu, createMetricsHooks as N, ExtensionConfigEnumItem as Na, resolveChipColor as Nc, ChildRunStats as Nd, ToolContext as Nf, localReliabilityBehavior as Ni, buildResumedToolResultsTurn as Nl, cerebras as Nm, HeadlessOptions as Nn, ExtensionToolRenderer as No, remintDuplicateToolCallIds as Np, RunSummaryTokens as Nr, parseAllowedToolPattern as Ns, EvalRunSummary as Nt, filterChainFallbacks as Nu, Meter as O, createExtensionPromptBridge as Oa, SyntaxTokenStyle as Oc, AgentClock as Od, TurnFinishReason as Of, snapshotCacheDimensions as Oi, QuestionRequest as Ol, LocalParams as Om, statusCompleted as On, ExtensionStorageScope as Oo, ensureEndsWithUserMessage as Op, RunSummaryByModel as Or, writeSkillsToDisk as Os, EvalMetric as Ot, ToolCallDisplay as Ou, OAuthCallbackHandle as P, ExtensionConfigItem as Pa, resolveTheme as Pc, CompactEndHookContext as Pd, ToolDef as Pf, Agent as Pi, createInteractionTools as Pl, BasetenParams as Pm, HeadlessOutputFormat as Pn, ExtensionToolRendererEntry as Po, toAnthropic as Pp, RunSummaryValidation as Pr, validateResourcePath as Ps, EvalRunSummaryCase as Pt, providerKeySetChanged as Pu, cleanupPersistedSession as Q, EMPTY_EXTENSION_REGISTRY as Qa, CommandGenerateDataOptions as Qc, PromptImagePart as Qd, Session as Qf, ExtensionInstallCandidate as Qi, LoggingHookSet as Ql, WAIT_TASK_TIMED_OUT_PREFIX as Qn, ExtensionStatusOptions as Qo, sanitizeToolSpecs as Qp, CompactPromptTooLongError as Qr, readSkillProvenance as Qs, Trajectory as Qt, getModelInfo as Qu, LoginMcpServerOptions as R, ExtensionConfigScope as Ra, CompletionContext as Rc, DEFAULT_AGENT_CLOCK as Rd, ReadStateMap as Rf, McpConnector as Ri, serializeInteractionResponse as Rl, arcee as Rm, OpenAIChatContentPart as Rn, ExtensionToolResultTransform as Ro, ProviderCapabilities as Rp, utf8ByteLength as Rr, resolveSkills as Rs, EvalScorerContext as Rt, AuthMethod as Ru, createMutationValidationHooks as S, parseExtensionScanPathEnv as Sa, wrapDiscoveredMcpTools as Sc, ContextItem as Sd, ToolResultDocumentRefContent as Sf, CacheDimensionDiff as Si, PlanRequest as Sl, userMessage as Sm, functionalityMetric as Sn, ExtensionRegistry as So, SYNTHETIC_TOOL_RESULT_PLACEHOLDER as Sp, grep as Sr, SpawnModelEntry as Ss, EvalAgentStats as St, Owner as Su, Counter as T, discoverAndBuildExtensionRegistry as Ta, ChipColorMap as Tc, ContextUsageSplit as Td, ToolResultMetadata as Tf, diffCacheDimensions as Ti, Question as Tl, mapCodexStopReason as Tm, registerEvalTests as Tn, ExtensionSessionStateSurface as To, TurnInterruptionState as Tp, RunSummary as Tr, matchModelEntries as Ts, EvalCaseResult as Tt, SessionMeta as Tu, McpOAuthProvider as U, WireExtensionConfigItem as Ua, applyInsert as Uc, McpToolHookContext as Ud, readStateKey as Uf, ExtensionCatalogPartition as Ui, StandardSchemaLike as Ul, applyAnthropicCacheBreakpoints as Um, formatHeadlessTurnEvent as Un, TuiContributions as Uo, ToolResult as Up, selectFilesFromReadState as Ur, SkillInstallCandidate as Us, EvalWorkspaceSnapshot as Ut, CustomField as Uu, McpCredentialEntry as V, ExtensionConfigValue as Va, CompletionReference as Vc, JsonValue as Vd, hydrateReadStateFromSession as Vf, createAgent as Vi, InferSchemaOutput as Vl, AnthropicThinkingPlan as Vm, exitCodeForHeadlessResult as Vn, GuiContributions as Vo, TokenCountPayload as Vp, RecentFile as Vr, stripShellInterpolations as Vs, EvalWorkspaceFile as Vt, detectAuth as Vu, McpOAuthProviderOptions as W, WireExtensionConfigSchema as Wa, collectReferences as Wc, McpToolSchema as Wd, resolveReadStateMap as Wf, buildExtensionPreset as Wi, isStandardSchema as Wl, classifyAnthropicError as Wm, formattedHeadlessTurnEventToJsonl as Wn, ExtensionBannerOptions as Wo, ToolSpec as Wp, selectFilesFromSession as Wr, SkillInstallError as Ws, LlmJudgeOptions as Wt, ModelInfo as Wu, PersistOutcome as X, resolveExtensionConfigValue as Xa, CommandArgSuggestion as Xc, PromptAudioPart as Xd, SkillsConfig as Xf, partitionExtensionCatalog as Xi, LogSink as Xl, transcriptToProviderMessages as Xn, ExtensionNotifyOptions as Xo, SchemaSanitizeResult as Xp, compactConversation as Xr, listSkillCandidates as Xs, RegisterEvalTestsOptions as Xt, enabledModelOptions as Xu, PersistInput as Y, resolveExtensionConfig as Ya, CommandAgentResult as Yc, ProgressNudgeMessage as Yd, SkillSource as Yf, mergeContributions as Yi, LogRecord as Yl, transcriptToOpenAIMessages as Yn, ExtensionNotification as Yo, SchemaSanitizeProfile as Yp, CompactStartEvent as Yr, installSkillFromSpec as Ys, MetricStats as Yt, credKeyOf as Yu, buildPersistedStub as Z, toWireConfigSchema as Za, CommandExecution as Zc, PromptDocumentPart as Zd, CreateSessionOptions as Zf, ExtensionFetchResult as Zi, Logger as Zl, writeFile as Zn, ExtensionNotifyTone as Zo, sanitizeToolSchema as Zp, CompactInvalidInputError as Zr, parseSkillInstallSpec as Zs, ReusableExecutionContext as Zt, getContextWindow as Zu, MutationValidationFailure as _, ExtensionScanEntry as _a, connectMcpServers as _c, ContextCategory as _d, ToolHookContext as _f, summaryToTurn as _i, InteractionsProvider as _l, mapOAIFinishReason as _m, fileExistsOneOf as _n, ExtensionOrderedContribution as _o, EnsureToolResultPairingOptions as _p, readFile as _r, SubagentDef as _s, EvalAgent as _t, EditDiffDisplay as _u, basicTools as a, ExtensionInstallSource as aa, buildCatalog as ac, piIdOf as ad, ResolveContentRefBlock as af, buildCompactPrompt as ai, CommandStepContext as al, OpenAICompatAuthHeader as am, clearRegisteredEvals as an, ExtensionCustomRenderer as ao, deleteExtensionSessionState as ap, ToolSearchToolOptions as ar, ExtensionSessionsSurface as as, TOOL_USE_SKIPPED_MESSAGE as at, AgentAccent as au, MutationValidationResult as b, inlineLoadedExtension as ba, normalizeMcpServers as bc, ContextExtensionRow as bd, ToolResultContent as bf, generateStructuredData as bi, PlanDecision as bl, toOAIMessages as bm, formatEvalRunSummary as bn, ExtensionPromptTransform as bo, PairingRepairMode as bp, InteractionToolOptions as br, createSpawnTool as bs, EvalAgentRunResult as bt, EditOutcomeKind as bu, StartSpan as c, fetchExtensionSource as ca, ActivationVia as cc, AutoCompactDecision as cd, SessionContentBlock as cf, buildTailCompactPrompt as ci, executeCommand as cl, OpenAICompatStreamError as cm, createEvalRunReporter as cn, ExtensionFooterHint as co, loadSession as cp, createSkillsUseTool as cr, createExtensionHostRuntimeBridge as cs, ExtensionEditMarker as ct, BUILD_AGENT as cu, TracingHooksOptions as d, parseExtensionInstallSource as da, SkillActivationState as dc, effectiveContextWindow as dd, SessionMessage as df, CompactScope as di, AnswerValue as dl, applyOAIToolCacheBreakpoint as dm, defineMetrics as dn, ExtensionKeybinding as do, RemoteStoreOptions as dp, SkillsReadToolOptions as dr, ExtensionSubagentDef as ds, extensionDirForCwd as dt, DEFAULT_BUDGET_EXCLUDE_TOOLS as du, ExtensionInstallErrorCode as ea, discoverSkills as ec, modelOptionsFor as ed, PromptTextPart as ef, CompactDirection as ei, CommandInvocation as el, normalizeOpenRouterModelId as em, TrajectoryStepKind as en, ExtensionBehaviorTransform as eo, SessionMetaRow as ep, ValidationResult as er, ExtensionHostRuntimeBridge as es, resolvePersistDir as et, RingBufferSink as eu, createTracingHooks as f, readExtensionInstallProvenance as fa, SkillActivationStateOptions as fc, shouldAutoCompact as fd, SessionTurn as ff, CompactionSlice as fi, ConfirmQuestion as fl, assistantMessage as fm, efficiencyMetricValues as fn, ExtensionKeybindingDispatchContext as fo, createRemoteStore as fp, createSkillsReadTool as fr, SpawnTaskInput as fs, extensionScaffold as ft, DEFAULT_PERSIST_EXCLUDE_TOOLS as fu, MutationValidationBatch as g, ENTRY_CANDIDATES as ga, attachStderrWarnPump as gc, ContextBreakdownOptions as gd, ToolBatchExecutor as gf, stripImagesFromTurns as gi, InteractionsActions as gl, formatTools as gm, fileExists as gn, ExtensionModalNode as go, createFileMapStore as gp, shell as gr, SpawnToolState as gs, EFFICIENCY_METRICS as gt, singleAgentRegistry as gu, statsByModel as h, registerExtensionHostModules as ha, McpConnection as hc, ContextBreakdownContributor as hd, ThinkingLevel as hf, sliceForCompaction as hi, InteractionResponse as hl, consumeSSE as hm, fileContentQuality as hn, ExtensionModal as ho, FileMapStoreOptions as hp, createShellTool as hr, SpawnToolOptions as hs, CreateEvalAgentOptions as ht, resolveAgentId as hu, _default as i, ExtensionInstallScope as ia, parseSkillFile as ic, openrouterDescriptor as id, ResolveContentRef as if, TRAILER as ii, CommandStep as il, OAITool as im, buildTrajectory as in, ExtensionContributions as io, currentExtensionSession as ip, LazyToolEntry as ir, ExtensionSessionSummary as is, TOOL_USE_CANCELLED_MESSAGE as it, jsonSink as iu, MetricsHooksOptions as j, ExtensionConfigCategory as ja, ThemeSelect as jc, AutoCompact as jd, toolOutputByteLength as jf, normalizeShellCommand as ji, SelectQuestion as jl, cursor as jm, HeadlessErrorInfo as jn, ExtensionToolPolicy as jo, fromAnthropic as jp, RunSummaryError as jr, isToolAllowedByUnion as js, EvalRunReporter as jt, chainPositionOf as ju, MetricAttributes as k, defineExtension as ka, Theme as kc, AgentRunOptions as kd, TurnUsage as kf, defaultRepeatGuardNormalize as ki, QuestionResponse as kl, local as km, FormattedHeadlessResult as kn, ExtensionStorageSurface as ko, ensureToolResultPairing as kp, RunSummaryCollector as kr, SkillValidationIssue as ks, EvalMetricError as kt, ModelChainEntry as ku, TracingConventions as l, installExtensionFromSpec as la, ActiveSkill as lc, AutoCompactInput as ld, SessionEndStatus as lf, buildUpToCompactPrompt as li, parseCommandInvocation as ll, TOOL_RESULTS_TAG as lm, createReusableExecutionContext as ln, ExtensionGuiPanel as lo, setExtensionSessionState as lp, SkillsRunScriptToolOptions as lr, createWorkspaceSurface as ls, ZIDANE_EXTENSION_SKILL_NAME as lt, BUILTIN_AGENTS as lu, flattenTurns as m, updateInstalledExtension as ma, ConnectMcpServersOptions as mc, ContextBreakdownContributionContext as md, StreamHookContext as mf, anchorPreviewFor as mi, InteractionRequest as ml, classifyOpenAICompatError as mm, fileContains as mn, ExtensionMcpConfigTransform as mo, FileMapAdapter as mp, CreateShellToolOptions as mr, SpawnTool as ms, withZidaneExtensionSkill as mt, accentColor as mu, composePresets as n, ExtensionInstallProvenance as na, inferSource as nc, modelsForDescriptor as nd, RepeatGuardConfig as nf, CompactPromptOptions as ni, CommandSpawnResult as nl, ASSISTANT_TOOL_CALLS_TAG as nm, buildEvalRunSummary as nn, ExtensionContext as no, SessionStore as np, TailTruncateOptions as nr, ExtensionModelEntry as ns, INTERRUPT_MESSAGE_FOR_TOOL_USE as nt, createLogger as nu, GEN_AI_ATTRIBUTES as o, InstallExtensionFromSpecOptions as oa, IMPLICITLY_ALLOWED_SKILL_TOOLS as oc, restoreModelOptions as od, RetryConfig as of, buildFromCompactPrompt as oi, CommandStepFn as ol, OpenAICompatHttpError as om, computeEvalTagScores as on, ExtensionCustomRendererEntry as oo, demoteStaleRunningStatus as op, createToolSearchTool as or, ExtensionWorkspacePair as os, applyCompactSummaryCutoff as ot, AgentProfile as ou, ModelUsage as p, removeInstalledExtension as pa, createSkillActivationState as pc, ContextBreakdown as pd, SpawnHookContext as pf, SummaryToTurnInput as pi, CreateInteractionToolsOptions as pl, buildAssistantContent as pm, emitEfficiencyMetrics as pn, ExtensionManifest as po, createMemoryStore as pp, shellKill as pr, SpawnTaskOutcome as ps, resolveExtensionDocsDir as pt, PLAN_AGENT as pu, PERSISTED_STUB_PREFIX as q, isValidExtensionConfigItem as qa, resolveCompletionSubmit as qc, OAuthRefreshHookContext as qd, SkillDiagnostic as qf, disposeExtensionRegistry as qi, ConsoleSinkOptions as ql, resolveAnthropicBetas as qm, providerTranscriptFormatForProvider as qn, ExtensionHudStatus as qo, xai as qp, CompactOptions as qr, SkillInstallResult as qs, MetricSpec as qt, anthropicDescriptor as qu, definePreset as r, ExtensionInstallResult as ra, parseFrontmatter as rc, openaiDescriptor as rd, RepeatGuardToolMatcher as rf, NO_TOOLS_PREAMBLE as ri, CommandSpawnTask as rl, OAIMessage as rm, buildRegisteredEvals as rn, ExtensionContextTransform as ro, createSession as rp, tailTruncate as rr, ExtensionRuntimeSurface as rs, SHELL_CASCADE_CANCEL_MESSAGE as rt, createLoggingHooks as ru, Span as s, InstalledExtensionTargetOptions as sa, installAllowedToolsGate as sc, AUTO_COMPACT_MIN_GROWTH_FRACTION as sd, RunHookMap as sf, buildFullCompactPrompt as si, commandSteps as sl, OpenAICompatParams as sm, createEvalAgent as sn, ExtensionDefinition as so, getExtensionSessionState as sp, SkillsUseToolOptions as sr, ExtensionWorkspaceSurface as ss, EXTENSION_EDIT_METADATA_KEY as st, AgentRegistry as su, Preset as t, ExtensionInstallIo as ta, getDefaultScanPaths as tc, modelSupportsReasoning as td, PromptVideoPart as tf, CompactPromptBuilder as ti, CommandOutputBlock as tl, openrouter as tm, artifactPath as tn, ExtensionCapability as to, SessionRun as tp, validateToolArgs as tr, ExtensionHostRuntimeImpl as ts, resolveTasksDir as tt, consoleSink as tu, TracingHookSet as u, listExtensionCandidates as ua, DeactivationReason as uc, OUTPUT_RESERVE_TOKENS as ud, SessionHookContext as uf, ANCHOR_PREVIEW_MAX_CHARS as ui, ASK_USER_TOOL as ul, applyOAICacheBreakpoints as um, defineEval as un, ExtensionGuiSurface as uo, withExtensionSession as up, createSkillsRunScriptTool as ur, ChildAgent as us, buildZidaneExtensionSkill as ut, DEFAULT_AGENT_ID as uu, MutationValidationHooksOptions as v, defaultExtensionScanPaths as va, deriveMcpToolMeta as vc, ContextCategoryId as vd, ToolOutcome as vf, truncateHeadForPtlRetry as vi, PRESENT_PLAN_TOOL as vl, openAICompatPromptMessage as vm, finalizeEvalMetrics as vn, ExtensionPaths as vo, ORPHANED_TOOL_RESULT_MARKER as vp, multiEdit as vr, SubagentOverride as vs, EvalAgentMcpServers as vt, EditHunk as vu, resolveModelTargets as w, DiscoverAndBuildExtensionRegistryOptions as wa, ChipColor as wc, ContextSnapshot as wd, ToolResultImageRefContent as wf, CacheDimensionSnapshot as wi, PlanStep as wl, classifyOpenAIError as wm, normalizeMetric as wn, ExtensionRuntimeEnv as wo, ToWireMessagesOptions as wp, edit as wr, formatModelLine as ws, EvalCaseOptions as wt, Screen as wu, SuccessfulMutationOutcome as x, isExtensionDefinition as xa, resultToString as xc, ContextExtensionSection as xd, ToolResultDocumentContent as xf, CacheBreakLoggerOptions as xi, PlanPayload as xl, toolResultsMessage as xm, formatTrajectoryLine as xn, ExtensionProviderMiddleware as xo, RemintResult as xp, createInteractionTool as xr, isSpawnTool as xs, EvalAgentRunStats as xt, EditPayload as xu, MutationValidationMutation as y, discoverExtensions as ya, normalizeMcpBlocks as yc, ContextExactCounts as yd, ToolResultAudioContent as yf, GenerateStructuredDataOptions as yi, PendingInteractionEntry as yl, openaiCompat as ym, formatEvalCaseSummary as yn, ExtensionPermission as yo, PairingRepair as yp, listFiles as yr, SubagentRegistry as ys, EvalAgentRunOptions as yt, EditOutcome as yu, LoginMcpServerResult as z, ExtensionConfigStringItem as za, CompletionItem as zc, DedupHasher as zd, getReadState as zf, McpToolMeta as zi, useInteractionsActions as zl, AnthropicContextManagement as zm, OpenAIChatMessage as zn, ExtensionToolVerdict as zo, StreamCallbacks as zp, PostCompactAttachments as zr, InterpolateShellCommandsOptions as zs, EvalTestRunner as zt, ProviderAuth as zu };
15569
- //# sourceMappingURL=index-X02SI0nt.d.ts.map
15877
+ export { maybePersistToolResult as $, resolveExtensionConfig as $a, CompletionReference as $c, JsonValue as $d, hydrateReadStateFromSession as $f, ExtensionInstallError as $i, InferSchemaOutput as $l, AnthropicThinkingPlan as $m, waitTask as $n, ExtensionHudWriter as $o, TokenCountPayload as $p, BASE_INSTRUCTIONS as $r, SkillInstallSpec as $s, TrajectoryStep as $t, detectAuth as $u, MetricsHookSet as A, ExtensionConfigActionItem as Aa, ChipColorMap as Ac, ContextCategoryId as Ad, ToolOutcome as Af, defaultRepeatGuardTracked as Ai, PRESENT_PLAN_TOOL as Al, openAICompatPromptMessage as Am, FormattedHeadlessTurnEvent as An, ExtensionSessionStateSurface as Ao, ORPHANED_TOOL_RESULT_MARKER as Ap, RunSummaryCollectorOptions as Ar, matchModelEntries as As, EvalRunMetricAggregate as At, EditHunk as Au, loginMcpServer as B, ExtensionConfigNumberItem as Ba, InlineAutocompleteContext as Bc, AgentClock as Bd, TurnFinishReason as Bf, McpToolWrap as Bi, QuestionRequest as Bl, LocalParams as Bm, ProviderTranscriptFormat as Bn, ExtensionToolRendererRegistration as Bo, ensureEndsWithUserMessage as Bp, PostCompactRestoreOptions as Br, validateResourcePathReal as Bs, EvalVariantSummary as Bt, ToolCallDisplay as Bu, normalizeProviders as C, scanExtensionDirectories as Ca, deriveMcpToolMeta as Cc, effectiveContextWindow as Cd, SessionMessage as Cf, CacheDimensionName as Ci, AnswerValue as Cl, applyOAIToolCacheBreakpoint as Cm, llmJudge as Cn, ExtensionPaths as Co, RemoteStoreOptions as Cp, glob as Cr, SubagentOverride as Cs, EvalArtifacts as Ct, DEFAULT_BUDGET_EXCLUDE_TOOLS as Cu, InstrumentOptions as D, ExtensionPromptDelivery as Da, wrapDiscoveredMcpTools as Dc, ContextBreakdownContributor as Dd, ThinkingLevel as Df, installCacheBreakLogger as Di, InteractionResponse as Dl, consumeSSE as Dm, runEvalCase as Dn, ExtensionRegistry as Do, FileMapStoreOptions as Dp, RunSummaryBudget as Dr, SpawnModelEntry as Ds, EvalDefinitionContext as Dt, resolveAgentId as Du, Histogram as E, ExtensionPromptBridge as Ea, resultToString as Ec, ContextBreakdownContributionContext as Ed, StreamHookContext as Ef, fnv1a32 as Ei, InteractionRequest as El, classifyOpenAICompatError as Em, relativeArtifactPath as En, ExtensionProviderMiddleware as Eo, FileMapAdapter as Ep, RunSummaryBlock as Er, isSpawnTool as Es, EvalDefinition as Et, accentColor as Eu, OAuthCallbackOptions as F, ExtensionConfigChangeBehavior as Fa, ThemeColors as Fc, ContextMcpGroup as Fd, ToolResultImageContent as Ff, AgentHookMap as Fi, PlanResponse as Fl, OpenAIParams as Fm, HeadlessResult as Fn, ExtensionToolCatalogTransform as Fo, TOOL_USE_INTERRUPTED_MARKER as Fp, createRunSummaryCollector as Fr, SkillValidationResult as Fs, EvalRunUsage as Ft, Picked as Fu, createMemoryMcpCredentialStore as G, ExtensionConfigValueItem as Ga, resolveInlineSuggestion as Gc, ChildRunStats as Gd, ToolContext as Gf, buildExtensionRegistry as Gi, buildResumedToolResultsTurn as Gl, cerebras as Gm, headlessEventToJsonl as Gn, ExtensionTuiSurface as Go, remintDuplicateToolCallIds as Gp, selectRecentFiles as Gr, interpolateShellCommands as Gs, MetricDirection as Gt, filterChainFallbacks as Gu, McpCredentialStore as H, ExtensionConfigStringItem as Ha, InlineGhost as Hc, AgentStats as Hd, toolOutputBudgetByteLength as Hf, BuildExtensionRegistryOptions as Hi, QuestionType as Hl, CursorParams as Hm, formatHeadlessResult as Hn, ExtensionToolResultPatch as Ho, filterUnresolvedToolUses as Hp, buildPostCompactAttachments as Hr, validateSkillName as Hs, EvalWorkspaceOptions as Ht, buildRunModel as Hu, OAuthCallbackResult as I, ExtensionConfigEnumItem as Ia, ThemeSelect as Ic, ContextSnapshot as Id, ToolResultImageRefContent as If, AgentHooks as Ii, PlanStep as Il, classifyOpenAIError as Im, HeadlessStatus as In, ExtensionToolPolicy as Io, ToWireMessagesOptions as Ip, BYTES_PER_TOKEN as Ir, isToolAllowedByUnion as Is, EvalScore as It, Screen as Iu, PERSISTENCE_PREVIEW_BYTES as J, WireExtensionConfigSchema as Ja, useCompletion as Jc, CompactHookContext as Jd, HydrateReadStateOptions as Jf, filterExtensionRegistry as Ji, makeRequestInteraction as Jl, planBasetenReasoning as Jm, runHeadless as Jn, TuiContributions as Jo, toWireMessages as Jp, CompactResult as Jr, SkillInstallCandidate as Js, MetricSpecMap as Jt, sanitizeModelChain as Ju, hasAuthorizationHeader as K, StoredExtensionConfigItem as Ka, tokenEndingAtCursor as Kc, CompactEndHookContext as Kd, ToolDef as Kf, composeExtensionPreset as Ki, createInteractionTools as Kl, BasetenParams as Km, installHeadlessEventAdapter as Kn, GuiContributions as Ko, toAnthropic as Kp, CompactEndEvent as Kr, stripShellInterpolations as Ks, MetricEmitter as Kt, providerKeySetChanged as Ku, startOAuthCallback as L, ExtensionConfigItem as La, ThemeSurfaces as Lc, ContextUsageSplit as Ld, ToolResultMetadata as Lf, AgentOptions as Li, Question as Ll, mapCodexStopReason as Lm, HeadlessUsage as Ln, ExtensionToolRenderProps as Lo, TurnInterruptionState as Lp, estimateTokens as Lr, matchesAllowedTool as Ls, EvalScorer as Lt, SessionMeta as Lu, UpDownCounter as M, ExtensionConfigActionStatus as Ma, SyntaxStyles as Mc, ContextExtensionRow as Md, ToolResultContent as Mf, stableStringify as Mi, PlanDecision as Ml, toOAIMessages as Mm, HeadlessEvent as Mn, ExtensionSource as Mo, PairingRepairMode as Mp, RunSummaryRepeatGuard as Mr, writeSkillToDisk as Ms, EvalRunReporterOptions as Mt, EditOutcomeKind as Mu, createMetricsHooks as N, ExtensionConfigBooleanItem as Na, SyntaxTokenStyle as Nc, ContextExtensionSection as Nd, ToolResultDocumentContent as Nf, localReliabilityBehavior as Ni, PlanPayload as Nl, toolResultsMessage as Nm, HeadlessOptions as Nn, ExtensionStorageScope as No, RemintResult as Np, RunSummaryTokens as Nr, writeSkillsToDisk as Ns, EvalRunSummary as Nt, EditPayload as Nu, Meter as O, createExtensionPromptBridge as Oa, BUILTIN_THEMES as Oc, ContextBreakdownOptions as Od, ToolBatchExecutor as Of, snapshotCacheDimensions as Oi, InteractionsActions as Ol, formatTools as Om, statusCompleted as On, ExtensionRunTransform as Oo, createFileMapStore as Op, RunSummaryByModel as Or, createModelSearchTool as Os, EvalMetric as Ot, singleAgentRegistry as Ou, OAuthCallbackHandle as P, ExtensionConfigCategory as Pa, Theme as Pc, ContextItem as Pd, ToolResultDocumentRefContent as Pf, Agent as Pi, PlanRequest as Pl, userMessage as Pm, HeadlessOutputFormat as Pn, ExtensionStorageSurface as Po, SYNTHETIC_TOOL_RESULT_PLACEHOLDER as Pp, RunSummaryValidation as Pr, SkillValidationIssue as Ps, EvalRunSummaryCase as Pt, Owner as Pu, cleanupPersistedSession as Q, isValidExtensionConfigValue as Qa, CompletionProvider as Qc, DedupToolConfig as Qd, hashContent as Qf, ExtensionInstallCandidate as Qi, useInteractionsQueue as Ql, AnthropicParams as Qm, WAIT_TASK_TIMED_OUT_PREFIX as Qn, ExtensionHudStatus as Qo, StreamOptions as Qp, CompactPromptTooLongError as Qr, SkillInstallResult as Qs, Trajectory as Qt, ProviderKey as Qu, LoginMcpServerOptions as R, ExtensionConfigItemBase as Ra, resolveChipColor as Rc, buildContextBreakdown as Rd, ToolResultTextContent as Rf, McpConnector as Ri, QuestionChoice as Rl, openai as Rm, OpenAIChatContentPart as Rn, ExtensionToolRenderer as Ro, autoDetectAndConvert as Rp, utf8ByteLength as Rr, parseAllowedToolPattern as Rs, EvalScorerContext as Rt, Settings as Ru, createMutationValidationHooks as S, parseExtensionScanPathEnv as Sa, connectMcpServers as Sc, OUTPUT_RESERVE_TOKENS as Sd, SessionHookContext as Sf, CacheDimensionDiff as Si, ASK_USER_TOOL as Sl, applyOAICacheBreakpoints as Sm, functionalityMetric as Sn, ExtensionOrderedContribution as So, withExtensionSession as Sp, grep as Sr, SubagentDef as Ss, EvalAgentStats as St, DEFAULT_AGENT_ID as Su, Counter as T, discoverAndBuildExtensionRegistry as Ta, normalizeMcpServers as Tc, ContextBreakdown as Td, SpawnHookContext as Tf, diffCacheDimensions as Ti, CreateInteractionToolsOptions as Tl, buildAssistantContent as Tm, registerEvalTests as Tn, ExtensionPromptTransform as To, createMemoryStore as Tp, RunSummary as Tr, createSpawnTool as Ts, EvalCaseResult as Tt, PLAN_AGENT as Tu, McpOAuthProvider as U, ExtensionConfigSurface as Ua, createPathAutocompleteProvider as Uc, AutoCompact as Ud, toolOutputByteLength as Uf, ExtensionCatalogPartition as Ui, SelectQuestion as Ul, cursor as Um, formatHeadlessTurnEvent as Un, ExtensionToolResultTransform as Uo, fromAnthropic as Up, selectFilesFromReadState as Ur, resolveSkills as Us, EvalWorkspaceSnapshot as Ut, chainPositionOf as Uu, McpCredentialEntry as V, ExtensionConfigScope as Va, InlineAutocompleteProvider as Vc, AgentRunOptions as Vd, TurnUsage as Vf, createAgent as Vi, QuestionResponse as Vl, local as Vm, exitCodeForHeadlessResult as Vn, ExtensionToolResultMetadataRegistration as Vo, ensureToolResultPairing as Vp, RecentFile as Vr, validateSkillForWrite as Vs, EvalWorkspaceFile as Vt, ModelChainEntry as Vu, McpOAuthProviderOptions as W, ExtensionConfigValue as Wa, patchInlineGhost as Wc, AutoCompactConfig as Wd, toolResultToText as Wf, buildExtensionPreset as Wi, TextQuestion as Wl, CerebrasParams as Wm, formattedHeadlessTurnEventToJsonl as Wn, ExtensionToolVerdict as Wo, fromOpenAI as Wp, selectFilesFromSession as Wr, InterpolateShellCommandsOptions as Ws, LlmJudgeOptions as Wt, chainsEqual as Wu, PersistOutcome as X, coerceExtensionConfigInput as Xa, CompletionContext as Xc, DEFAULT_AGENT_CLOCK as Xd, ReadStateMap as Xf, partitionExtensionCatalog as Xi, serializeInteractionResponse as Xl, arcee as Xm, transcriptToProviderMessages as Xn, ExtensionHud as Xo, ProviderCapabilities as Xp, compactConversation as Xr, SkillInstallErrorCode as Xs, RegisterEvalTestsOptions as Xt, AuthMethod as Xu, PersistInput as Y, clampExtensionConfigNumber as Ya, ActiveTrigger as Yc, CompactStartHookContext as Yd, ReadStateEntry as Yf, mergeContributions as Yi, pendingInteractionsFromTurns as Yl, ArceeParams as Ym, transcriptToOpenAIMessages as Yn, ExtensionBannerOptions as Yo, Provider as Yp, CompactStartEvent as Yr, SkillInstallError as Ys, MetricStats as Yt, toggleChainEntry as Yu, buildPersistedStub as Z, isValidExtensionConfigItem as Za, CompletionItem as Zc, DedupHasher as Zd, getReadState as Zf, ExtensionFetchResult as Zi, useInteractionsActions as Zl, AnthropicContextManagement as Zm, writeFile as Zn, ExtensionHudState as Zo, StreamCallbacks as Zp, CompactInvalidInputError as Zr, SkillInstallOptions as Zs, ReusableExecutionContext as Zt, ProviderAuth as Zu, MutationValidationFailure as _, ExtensionScanEntry as _a, SkillActivationStateOptions as _c, piIdOf as _d, ResolveContentRefBlock as _f, summaryToTurn as _i, CommandStepContext as _l, OpenAICompatAuthHeader as _m, fileExistsOneOf as _n, ExtensionKeybindingDispatchContext as _o, deleteExtensionSessionState as _p, readFile as _r, SpawnTaskInput as _s, EvalAgent as _t, AgentAccent as _u, basicTools as a, ExtensionInstallSource as aa, discoverSkills as ac, anthropicDescriptor as ad, OAuthRefreshHookContext as af, resolveAnthropicBetas as ah, buildCompactPrompt as ai, resolveCompletionSubmit as al, xai as am, clearRegisteredEvals as an, ExtensionBehaviorTransform as ao, SkillDiagnostic as ap, ToolSearchToolOptions as ar, ExtensionHostRuntimeBridge as as, TOOL_USE_SKIPPED_MESSAGE as at, ConsoleSinkOptions as au, MutationValidationResult as b, inlineLoadedExtension as ba, McpConnection as bc, AutoCompactDecision as bd, SessionContentBlock as bf, generateStructuredData as bi, executeCommand as bl, OpenAICompatStreamError as bm, formatEvalRunSummary as bn, ExtensionModal as bo, loadSession as bp, InteractionToolOptions as br, SpawnToolOptions as bs, EvalAgentRunResult as bt, BUILD_AGENT as bu, StartSpan as c, fetchExtensionSource as ca, parseFrontmatter as cc, enabledModelOptions as cd, PromptAudioPart as cf, buildTailCompactPrompt as ci, CommandArgSuggestion as cl, SchemaSanitizeResult as cm, createEvalRunReporter as cn, ExtensionContextTransform as co, SkillsConfig as cp, createSkillsUseTool as cr, ExtensionRuntimeSurface as cs, ExtensionEditMarker as ct, LogSink as cu, TracingHooksOptions as d, parseExtensionInstallSource as da, IMPLICITLY_ALLOWED_SKILL_TOOLS as dc, localDescriptor as dd, PromptPart as df, CompactScope as di, CommandInteraction as dl, OpenRouterParams as dm, defineMetrics as dn, ExtensionCustomRendererEntry as do, SessionData as dp, SkillsReadToolOptions as dr, ExtensionWorkspacePair as ds, extensionDirForCwd as dt, LoggingHooksOptions as du, ExtensionInstallErrorCode as ea, installSkillFromSpec as ec, BUILTIN_PROVIDERS as ed, McpServerConfig as ef, anthropic as eh, CompactDirection as ei, CompletionSubmitContext as el, ToolCall as em, TrajectoryStepKind as en, resolveExtensionConfigValue as eo, hydrateReadStateFromSessionAsync as ep, ValidationResult as er, ExtensionNotification as es, resolvePersistDir as et, SchemaInput as eu, createTracingHooks as f, readExtensionInstallProvenance as fa, installAllowedToolsGate as fc, modelOptionsFor as fd, PromptTextPart as ff, CompactionSlice as fi, CommandInvocation as fl, normalizeOpenRouterModelId as fm, efficiencyMetricValues as fn, ExtensionDefinition as fo, SessionMetaRow as fp, createSkillsReadTool as fr, ExtensionWorkspaceSurface as fs, extensionScaffold as ft, RingBufferSink as fu, MutationValidationBatch as g, ENTRY_CANDIDATES as ga, SkillActivationState as gc, openrouterDescriptor as gd, ResolveContentRef as gf, stripImagesFromTurns as gi, CommandStep as gl, OAITool as gm, fileExists as gn, ExtensionKeybinding as go, currentExtensionSession as gp, shell as gr, ExtensionSubagentDef as gs, EFFICIENCY_METRICS as gt, jsonSink as gu, statsByModel as h, registerExtensionHostModules as ha, DeactivationReason as hc, openaiDescriptor as hd, RepeatGuardToolMatcher as hf, sliceForCompaction as hi, CommandSpawnTask as hl, OAIMessage as hm, fileContentQuality as hn, ExtensionGuiSurface as ho, createSession as hp, createShellTool as hr, ChildAgent as hs, CreateEvalAgentOptions as ht, createLoggingHooks as hu, _default as i, ExtensionInstallScope as ia, SourcedScanPath as ic, ProviderDescriptor as id, ModelTargetSpec as if, planAnthropicThinking as ih, TRAILER as ii, mergeReferences as il, XaiParams as im, buildTrajectory as in, ExtensionApiVersion as io, SkillConfig as ip, LazyToolEntry as ir, createExtensionHud as is, TOOL_USE_CANCELLED_MESSAGE as it, zodToJsonSchema as iu, MetricsHooksOptions as j, ExtensionConfigActionResult as ja, DEFAULT_THEME as jc, ContextExactCounts as jd, ToolResultAudioContent as jf, normalizeShellCommand as ji, PendingInteractionEntry as jl, openaiCompat as jm, HeadlessErrorInfo as jn, ExtensionSkillPolicy as jo, PairingRepair as jp, RunSummaryError as jr, defineSkill as js, EvalRunReporter as jt, EditOutcome as ju, MetricAttributes as k, defineExtension as ka, ChipColor as kc, ContextCategory as kd, ToolHookContext as kf, defaultRepeatGuardNormalize as ki, InteractionsProvider as kl, mapOAIFinishReason as km, FormattedHeadlessResult as kn, ExtensionRuntimeEnv as ko, EnsureToolResultPairingOptions as kp, RunSummaryCollector as kr, formatModelLine as ks, EvalMetricError as kt, EditDiffDisplay as ku, TracingConventions as l, installExtensionFromSpec as la, parseSkillFile as lc, getContextWindow as ld, PromptDocumentPart as lf, buildUpToCompactPrompt as li, CommandExecution as ll, sanitizeToolSchema as lm, createReusableExecutionContext as ln, ExtensionContributions as lo, CreateSessionOptions as lp, SkillsRunScriptToolOptions as lr, ExtensionSessionSummary as ls, ZIDANE_EXTENSION_SKILL_NAME as lt, Logger as lu, flattenTurns as m, updateInstalledExtension as ma, ActiveSkill as mc, modelsForDescriptor as md, RepeatGuardConfig as mf, anchorPreviewFor as mi, CommandSpawnResult as ml, ASSISTANT_TOOL_CALLS_TAG as mm, fileContains as mn, ExtensionGuiPanel as mo, SessionStore as mp, CreateShellToolOptions as mr, createWorkspaceSurface as ms, withZidaneExtensionSkill as mt, createLogger as mu, composePresets as n, ExtensionInstallProvenance as na, parseSkillInstallSpec as nc, ModelInfo as nd, McpToolSchema as nf, classifyAnthropicError as nh, CompactPromptOptions as ni, collectReferences as nl, ToolSpec as nm, buildEvalRunSummary as nn, toWireConfigSchema as no, resolveReadStateMap as np, TailTruncateOptions as nr, ExtensionNotifyTone as ns, INTERRUPT_MESSAGE_FOR_TOOL_USE as nt, isStandardSchema as nu, GEN_AI_ATTRIBUTES as o, InstallExtensionFromSpecOptions as oa, getDefaultScanPaths as oc, cerebrasDescriptor as od, ProgressNudgeKind as of, resolveAnthropicMaxOutput as oh, buildFromCompactPrompt as oi, Command as ol, SchemaSanitizeOptions as om, computeEvalTagScores as on, ExtensionCapability as oo, SkillResource as op, createToolSearchTool as or, ExtensionHostRuntimeImpl as os, applyCompactSummaryCutoff as ot, LogLevel as ou, ModelUsage as p, removeInstalledExtension as pa, ActivationVia as pc, modelSupportsReasoning as pd, PromptVideoPart as pf, SummaryToTurnInput as pi, CommandOutputBlock as pl, openrouter as pm, emitEfficiencyMetrics as pn, ExtensionFooterHint as po, SessionRun as pp, shellKill as pr, createExtensionHostRuntimeBridge as ps, resolveExtensionDocsDir as pt, consoleSink as pu, PERSISTED_STUB_PREFIX as q, WireExtensionConfigItem as qa, CompletionState as qc, CompactFunction as qd, ToolMap as qf, disposeExtensionRegistry as qi, isInteractionTool as ql, baseten as qm, providerTranscriptFormatForProvider as qn, LoadedExtension as qo, toOpenAI as qp, CompactOptions as qr, SKILL_PROVENANCE_FILE as qs, MetricSpec as qt, restoreChainFallbacks as qu, definePreset as r, ExtensionInstallResult as ra, readSkillProvenance as rc, ModelOption as rd, ModelTarget as rf, defaultAnthropicMaxTokens as rh, NO_TOOLS_PREAMBLE as ri, findActiveTrigger as rl, TurnResult as rm, buildRegisteredEvals as rn, EMPTY_EXTENSION_REGISTRY as ro, ShellInterpolationApproval as rp, tailTruncate as rr, ExtensionStatusOptions as rs, SHELL_CASCADE_CANCEL_MESSAGE as rt, resolveSchemaInput as ru, Span as s, InstalledExtensionTargetOptions as sa, inferSource as sc, credKeyOf as sd, ProgressNudgeMessage as sf, buildFullCompactPrompt as si, CommandAgentResult as sl, SchemaSanitizeProfile as sm, createEvalAgent as sn, ExtensionContext as so, SkillSource as sp, SkillsUseToolOptions as sr, ExtensionModelEntry as ss, EXTENSION_EDIT_METADATA_KEY as st, LogRecord as su, Preset as t, ExtensionInstallIo as ta, listSkillCandidates as tc, CustomField as td, McpToolHookContext as tf, applyAnthropicCacheBreakpoints as th, CompactPromptBuilder as ti, applyInsert as tl, ToolResult as tm, artifactPath as tn, sanitizeExtensionConfigActionPatch as to, readStateKey as tp, validateToolArgs as tr, ExtensionNotifyOptions as ts, resolveTasksDir as tt, StandardSchemaLike as tu, TracingHookSet as u, listExtensionCandidates as ua, buildCatalog as uc, getModelInfo as ud, PromptImagePart as uf, ANCHOR_PREVIEW_MAX_CHARS as ui, CommandGenerateDataOptions as ul, sanitizeToolSpecs as um, defineEval as un, ExtensionCustomRenderer as uo, Session as up, createSkillsRunScriptTool as ur, ExtensionSessionsSurface as us, buildZidaneExtensionSkill as ut, LoggingHookSet as uu, MutationValidationHooksOptions as v, defaultExtensionScanPaths as va, createSkillActivationState as vc, restoreModelOptions as vd, RetryConfig as vf, truncateHeadForPtlRetry as vi, CommandStepFn as vl, OpenAICompatHttpError as vm, finalizeEvalMetrics as vn, ExtensionManifest as vo, demoteStaleRunningStatus as vp, multiEdit as vr, SpawnTaskOutcome as vs, EvalAgentMcpServers as vt, AgentProfile as vu, resolveModelTargets as w, DiscoverAndBuildExtensionRegistryOptions as wa, normalizeMcpBlocks as wc, shouldAutoCompact as wd, SessionTurn as wf, CacheDimensionSnapshot as wi, ConfirmQuestion as wl, assistantMessage as wm, normalizeMetric as wn, ExtensionPermission as wo, createRemoteStore as wp, edit as wr, SubagentRegistry as ws, EvalCaseOptions as wt, DEFAULT_PERSIST_EXCLUDE_TOOLS as wu, SuccessfulMutationOutcome as x, isExtensionDefinition as xa, attachStderrWarnPump as xc, AutoCompactInput as xd, SessionEndStatus as xf, CacheBreakLoggerOptions as xi, parseCommandInvocation as xl, TOOL_RESULTS_TAG as xm, formatTrajectoryLine as xn, ExtensionModalNode as xo, setExtensionSessionState as xp, createInteractionTool as xr, SpawnToolState as xs, EvalAgentRunStats as xt, BUILTIN_AGENTS as xu, MutationValidationMutation as y, discoverExtensions as ya, ConnectMcpServersOptions as yc, AUTO_COMPACT_MIN_GROWTH_FRACTION as yd, RunHookMap as yf, GenerateStructuredDataOptions as yi, commandSteps as yl, OpenAICompatParams as ym, formatEvalCaseSummary as yn, ExtensionMcpConfigTransform as yo, getExtensionSessionState as yp, listFiles as yr, SpawnTool as ys, EvalAgentRunOptions as yt, AgentRegistry as yu, LoginMcpServerResult as z, ExtensionConfigModelItem as za, resolveTheme as zc, AgentBehavior as zd, ToolResultVideoContent as zf, McpToolMeta as zi, QuestionPayload as zl, toPiMessages as zm, OpenAIChatMessage as zn, ExtensionToolRendererEntry as zo, detectTurnInterruption as zp, PostCompactAttachments as zr, validateResourcePath as zs, EvalTestRunner as zt, StreamEvent as zu };
15878
+ //# sourceMappingURL=index-CNyYEOy0.d.ts.map