zidane 6.0.1 → 6.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (165) hide show
  1. package/README.md +27 -0
  2. package/dist/{acp-Irby04Us.js → acp-cfR8T19u.js} +8 -8
  3. package/dist/{acp-Irby04Us.js.map → acp-cfR8T19u.js.map} +1 -1
  4. package/dist/acp-cli.js +7 -7
  5. package/dist/acp-cli.js.map +1 -1
  6. package/dist/acp.d.ts +1 -1
  7. package/dist/acp.js +1 -1
  8. package/dist/{agent-DkSmGkDM.js → agent-DZRA7wip.js} +377 -61
  9. package/dist/agent-DZRA7wip.js.map +1 -0
  10. package/dist/agent.d.ts +1 -1
  11. package/dist/agent.js +1 -1
  12. package/dist/{anthropic-CTHsdFG9.js → anthropic-DNJbRMUK.js} +7 -7
  13. package/dist/anthropic-DNJbRMUK.js.map +1 -0
  14. package/dist/atomic-write-B7zr1ddF.js.map +1 -1
  15. package/dist/{auth-BDSu_0t3.js → auth-B3cB5K6d.js} +7 -7
  16. package/dist/auth-B3cB5K6d.js.map +1 -0
  17. package/dist/cache-telemetry-BKAwsNxm.js.map +1 -1
  18. package/dist/chat/pure.d.ts +4 -4
  19. package/dist/chat/pure.js +3 -3
  20. package/dist/chat.d.ts +44 -21
  21. package/dist/chat.d.ts.map +1 -1
  22. package/dist/chat.js +7 -7
  23. package/dist/chat.js.map +1 -1
  24. package/dist/completion-core-CXYSVhZo.js.map +1 -1
  25. package/dist/context-breakdown-Dzo25N45.js.map +1 -1
  26. package/dist/contexts/daytona.d.ts +3 -1
  27. package/dist/contexts/daytona.d.ts.map +1 -1
  28. package/dist/contexts/daytona.js +2 -2
  29. package/dist/contexts/daytona.js.map +1 -1
  30. package/dist/contexts/docker.d.ts.map +1 -1
  31. package/dist/contexts/docker.js +2 -2
  32. package/dist/contexts/docker.js.map +1 -1
  33. package/dist/contexts/e2b.d.ts +3 -1
  34. package/dist/contexts/e2b.d.ts.map +1 -1
  35. package/dist/contexts/e2b.js +1 -1
  36. package/dist/contexts/e2b.js.map +1 -1
  37. package/dist/{contexts-Vone3qQQ.js → contexts-BIbcfBFH.js} +2 -2
  38. package/dist/contexts-BIbcfBFH.js.map +1 -0
  39. package/dist/contexts.js +1 -1
  40. package/dist/edit-utils-EGosADZq.js.map +1 -1
  41. package/dist/eval.d.ts +1 -1
  42. package/dist/eval.js +4 -3
  43. package/dist/eval.js.map +1 -1
  44. package/dist/exec-file-size-PXkr-MGA.js.map +1 -1
  45. package/dist/extensions.d.ts +1 -1
  46. package/dist/extensions.js +1 -1
  47. package/dist/{fetch-url-CWE8X5OD.js → fetch-url-_5WKWpbQ.js} +2 -2
  48. package/dist/{fetch-url-CWE8X5OD.js.map → fetch-url-_5WKWpbQ.js.map} +1 -1
  49. package/dist/{format-BNOXpl-1.js → format-BF745pLL.js} +9 -2
  50. package/dist/format-BF745pLL.js.map +1 -0
  51. package/dist/generate-data-WL_yGVL6.js.map +1 -1
  52. package/dist/hash-DJRzmcPI.js.map +1 -1
  53. package/dist/headless.d.ts +1 -1
  54. package/dist/headless.js +4 -4
  55. package/dist/headless.js.map +1 -1
  56. package/dist/{index-B8UtiZy7.d.ts → index-BGpM2YaU.d.ts} +378 -5
  57. package/dist/index-BGpM2YaU.d.ts.map +1 -0
  58. package/dist/index.d.ts +2 -2
  59. package/dist/index.js +11 -11
  60. package/dist/index.js.map +1 -1
  61. package/dist/logger-DBX9uYOw.js.map +1 -1
  62. package/dist/{login-DOF8pMVM.js → login-DZLG__2f.js} +4 -3
  63. package/dist/{login-DOF8pMVM.js.map → login-DZLG__2f.js.map} +1 -1
  64. package/dist/mcp-CcvuVXB9.js.map +1 -1
  65. package/dist/mcp.d.ts +1 -1
  66. package/dist/media-sniff-Bn76JxAu.js.map +1 -1
  67. package/dist/{messages-CwujiS74.js → messages-C5BDOjUG.js} +2 -2
  68. package/dist/{messages-CwujiS74.js.map → messages-C5BDOjUG.js.map} +1 -1
  69. package/dist/oauth-8LqbeI_Q.js.map +1 -1
  70. package/dist/{openai-compat-BvgYGSR1.js → openai-compat-B0kqvZqN.js} +2 -2
  71. package/dist/openai-compat-B0kqvZqN.js.map +1 -0
  72. package/dist/output/stream-json.d.ts +1 -1
  73. package/dist/output/terminal.d.ts +1 -1
  74. package/dist/output/terminal.js +1 -1
  75. package/dist/output/terminal.js.map +1 -1
  76. package/dist/output-cap-kBUHBlnq.js.map +1 -1
  77. package/dist/presets.d.ts +1 -1
  78. package/dist/presets.js +1 -1
  79. package/dist/providers/anthropic.d.ts +1 -1
  80. package/dist/providers/anthropic.js +1 -1
  81. package/dist/providers/arcee.d.ts +1 -1
  82. package/dist/providers/arcee.js +1 -1
  83. package/dist/providers/baseten.d.ts +1 -1
  84. package/dist/providers/baseten.js +2 -2
  85. package/dist/providers/baseten.js.map +1 -1
  86. package/dist/providers/cerebras.d.ts +1 -1
  87. package/dist/providers/cerebras.js +1 -1
  88. package/dist/providers/local.d.ts +1 -1
  89. package/dist/providers/local.js +1 -1
  90. package/dist/providers/openai-compat.d.ts +1 -1
  91. package/dist/providers/openai-compat.js +1 -1
  92. package/dist/providers/openai.d.ts +1 -1
  93. package/dist/providers/openai.js +8 -8
  94. package/dist/providers/openai.js.map +1 -1
  95. package/dist/providers/openrouter.d.ts +1 -1
  96. package/dist/providers/openrouter.js +1 -1
  97. package/dist/providers/xai.d.ts +1 -1
  98. package/dist/providers/xai.js +1 -1
  99. package/dist/{providers-z6LDMAr3.js → providers-BMlrTr6a.js} +3 -3
  100. package/dist/{providers-z6LDMAr3.js.map → providers-BMlrTr6a.js.map} +1 -1
  101. package/dist/providers.d.ts +1 -1
  102. package/dist/providers.js +4 -4
  103. package/dist/read-state-Dq_TXUX1.js.map +1 -1
  104. package/dist/{resolve-Cr8JSL_O.js → resolve-CC8Lmwcj.js} +3 -3
  105. package/dist/{resolve-Cr8JSL_O.js.map → resolve-CC8Lmwcj.js.map} +1 -1
  106. package/dist/restate.d.ts +1 -1
  107. package/dist/restate.d.ts.map +1 -1
  108. package/dist/restate.js.map +1 -1
  109. package/dist/session/sqlite.d.ts +1 -1
  110. package/dist/session/sqlite.d.ts.map +1 -1
  111. package/dist/session/sqlite.js +75 -20
  112. package/dist/session/sqlite.js.map +1 -1
  113. package/dist/{session-CsdDIPY8.js → session-CsKzK8-P.js} +3 -3
  114. package/dist/session-CsKzK8-P.js.map +1 -0
  115. package/dist/session.d.ts +2 -2
  116. package/dist/session.js +2 -2
  117. package/dist/{skills-Bsb0rvWI.js → skills-BjeXSRlQ.js} +2 -2
  118. package/dist/{skills-Bsb0rvWI.js.map → skills-BjeXSRlQ.js.map} +1 -1
  119. package/dist/skills.d.ts +1 -1
  120. package/dist/skills.js +2 -2
  121. package/dist/stdio-loader-Ce68wUmM.js.map +1 -1
  122. package/dist/{tool-formatters-DY0TDb1r.d.ts → tool-formatters-CMwjDvkp.d.ts} +2 -2
  123. package/dist/tool-formatters-CMwjDvkp.d.ts.map +1 -0
  124. package/dist/tools/fetch-url.d.ts +1 -1
  125. package/dist/tools/fetch-url.d.ts.map +1 -1
  126. package/dist/tools/fetch-url.js +1 -1
  127. package/dist/tools/web-search.d.ts +1 -1
  128. package/dist/tools/web-search.js +1 -1
  129. package/dist/tools/web-search.js.map +1 -1
  130. package/dist/tools.d.ts +2 -2
  131. package/dist/tools.js +2 -2
  132. package/dist/{transcript-anchors-DSRPWjiH.js → transcript-anchors-BTNe1OJi.js} +346 -89
  133. package/dist/transcript-anchors-BTNe1OJi.js.map +1 -0
  134. package/dist/{transcript-anchors-Cb-bDbNH.d.ts → transcript-anchors-D5wvdKQQ.d.ts} +37 -3
  135. package/dist/transcript-anchors-D5wvdKQQ.d.ts.map +1 -0
  136. package/dist/tui.d.ts +21 -6
  137. package/dist/tui.d.ts.map +1 -1
  138. package/dist/tui.js +497 -83
  139. package/dist/tui.js.map +1 -1
  140. package/dist/{turn-operations-Dq9Kx7m2.js → turn-operations-CEt_l3fy.js} +23 -8
  141. package/dist/turn-operations-CEt_l3fy.js.map +1 -0
  142. package/dist/{turn-operations-CgMROLsr.d.ts → turn-operations-JO5MYM9_.d.ts} +27 -9
  143. package/dist/turn-operations-JO5MYM9_.d.ts.map +1 -0
  144. package/dist/types-BIarq1qE.js.map +1 -1
  145. package/dist/types.d.ts +1 -1
  146. package/dist/{xai-B_e6TOA8.js → xai-C_aq671K.js} +3 -3
  147. package/dist/{xai-B_e6TOA8.js.map → xai-C_aq671K.js.map} +1 -1
  148. package/docs/ARCHITECTURE.md +4 -0
  149. package/docs/CHAT.md +12 -10
  150. package/docs/SKILL.md +1 -1
  151. package/docs/TUI.md +3 -3
  152. package/package.json +2 -2
  153. package/dist/agent-DkSmGkDM.js.map +0 -1
  154. package/dist/anthropic-CTHsdFG9.js.map +0 -1
  155. package/dist/auth-BDSu_0t3.js.map +0 -1
  156. package/dist/contexts-Vone3qQQ.js.map +0 -1
  157. package/dist/format-BNOXpl-1.js.map +0 -1
  158. package/dist/index-B8UtiZy7.d.ts.map +0 -1
  159. package/dist/openai-compat-BvgYGSR1.js.map +0 -1
  160. package/dist/session-CsdDIPY8.js.map +0 -1
  161. package/dist/tool-formatters-DY0TDb1r.d.ts.map +0 -1
  162. package/dist/transcript-anchors-Cb-bDbNH.d.ts.map +0 -1
  163. package/dist/transcript-anchors-DSRPWjiH.js.map +0 -1
  164. package/dist/turn-operations-CgMROLsr.d.ts.map +0 -1
  165. package/dist/turn-operations-Dq9Kx7m2.js.map +0 -1
@@ -45,10 +45,10 @@
45
45
  */import { l as ClassifiedError } from "./timeout-8vSIRjzl.js";
46
46
  import { c as ExecutionContext, d as ListFilesEntry, f as ListFilesOptions, h as TaskExitInfo, l as ExecutionHandle, s as ExecResult } from "./types-BDccavwj.js";
47
47
  import { Hookable } from "hookable";
48
- import { Message } from "@earendil-works/pi-ai";
49
48
  import { OAuthCredentials, OAuthProviderInterface } from "@earendil-works/pi-ai/oauth";
50
49
  import { ReactNode } from "react";
51
50
  import Anthropic from "@anthropic-ai/sdk";
51
+ import { Message } from "@earendil-works/pi-ai";
52
52
  import { OAuthClientProvider, OAuthDiscoveryState } from "@modelcontextprotocol/sdk/client/auth.js";
53
53
  import { Client } from "@modelcontextprotocol/sdk/client/index.js";
54
54
  import { OAuthClientInformationMixed, OAuthClientMetadata, OAuthTokens } from "@modelcontextprotocol/sdk/shared/auth.js";
@@ -1760,6 +1760,28 @@ interface SessionData {
1760
1760
  createdAt: number;
1761
1761
  updatedAt: number;
1762
1762
  }
1763
+ /**
1764
+ * Compact per-session summary returned by {@link SessionStore.listMeta}.
1765
+ * Raw facts only — presentation (title derivation, fallback strings)
1766
+ * stays in the chat layer (`listSessionMeta` / `deriveSessionTitle`).
1767
+ */
1768
+ interface SessionMetaRow {
1769
+ id: string;
1770
+ /** Header metadata (may carry a stored `title`). */
1771
+ metadata: Record<string, unknown>;
1772
+ /** Absent for untagged (legacy) sessions. */
1773
+ projectRoot?: string;
1774
+ updatedAt: number;
1775
+ turnCount: number;
1776
+ /** Count of `role: 'user'` turns. */
1777
+ userMessageCount: number;
1778
+ runCount: number;
1779
+ /**
1780
+ * First `role: 'user'` turn — the title-derivation source. Stores may
1781
+ * omit it when `metadata.title` is already set (no derivation needed).
1782
+ */
1783
+ firstUserTurn?: SessionTurn;
1784
+ }
1763
1785
  interface SessionStore {
1764
1786
  /** Optional: generate a session ID server-side (e.g. a database-issued UUID). */
1765
1787
  generateSessionId?: () => string | Promise<string>;
@@ -1789,6 +1811,24 @@ interface SessionStore {
1789
1811
  limit?: number;
1790
1812
  projectRoot?: string | null;
1791
1813
  }) => Promise<string[]>;
1814
+ /**
1815
+ * Optional: list session summaries without materializing full sessions.
1816
+ *
1817
+ * The generic fallback (`listSessionMeta` in `zidane/chat`) is `list()`
1818
+ * + `load()` per id — O(every turn in the store) because each `load`
1819
+ * parses the full turn history just to count rows and derive a title.
1820
+ * Stores that can answer from an index (SQL aggregates, a denormalized
1821
+ * header) should implement this; the sqlite store turns a multi-hundred-
1822
+ * ms TUI boot cost into a single query.
1823
+ *
1824
+ * Same filter contract and ordering (most recently updated first) as
1825
+ * {@link list}.
1826
+ */
1827
+ listMeta?: (filter?: {
1828
+ agentId?: string;
1829
+ limit?: number;
1830
+ projectRoot?: string | null;
1831
+ }) => Promise<SessionMetaRow[]>;
1792
1832
  /** Append new turns to a session (incremental, avoids full re-save). */
1793
1833
  appendTurns: (sessionId: string, turns: SessionTurn[]) => Promise<void>;
1794
1834
  /** Return a slice of turns for a session. */
@@ -2322,6 +2362,15 @@ interface ToolContext {
2322
2362
  * constructing contexts by hand doesn't have to supply it.
2323
2363
  */
2324
2364
  model?: string;
2365
+ /**
2366
+ * Every provider instance available to this run — the primary plus the
2367
+ * fallback-chain providers when the agent was built with a provider
2368
+ * array (see `AgentOptions.provider`). Child-spawning tools use it to
2369
+ * route a requested model to the provider that serves it (matched by
2370
+ * `Provider.name`). Optional: absent on single-provider hosts and
2371
+ * hand-built contexts; consumers fall back to {@link provider}.
2372
+ */
2373
+ providers?: readonly Provider[];
2325
2374
  /** Abort signal — tools should check this for early termination */
2326
2375
  signal: AbortSignal;
2327
2376
  /** The execution context (shell, filesystem, etc.) */
@@ -4563,8 +4612,56 @@ interface SessionTurn {
4563
4612
  * narrows it to the strongly-typed map).
4564
4613
  */
4565
4614
  type RunHookMap = Record<string, ((ctx: any) => unknown) | ((ctx: any) => unknown)[]>;
4615
+ /**
4616
+ * One entry of the run-level model fallback list — a model id optionally
4617
+ * pinned to a specific provider (referenced by `Provider.name` against the
4618
+ * agent's provider list). Entries without `provider` fan out across every
4619
+ * configured provider, in provider order.
4620
+ */
4621
+ interface ModelTargetSpec {
4622
+ provider?: string;
4623
+ model: string;
4624
+ /**
4625
+ * Context window (tokens) of this target's model, for hosts that size
4626
+ * auto-compaction from their own model catalog (the SDK core has none).
4627
+ * When a fallback advances onto this target, an explicit run-level
4628
+ * `autoCompact.contextWindow` is re-based onto this value so the
4629
+ * compaction trigger tracks the ACTIVE model, not the primary's window.
4630
+ * Omitted: the window only re-derives when it was provider-meta-sourced
4631
+ * to begin with.
4632
+ */
4633
+ contextWindow?: number;
4634
+ }
4635
+ /**
4636
+ * A resolved provider+model pair the loop can dispatch a turn to. The run
4637
+ * resolves `AgentRunOptions.model` against the agent's providers into an
4638
+ * ordered list of these; `targets[0]` is the primary and the rest are
4639
+ * fallbacks tried in order when a stream fails terminally.
4640
+ */
4641
+ interface ModelTarget {
4642
+ provider: Provider;
4643
+ model: string;
4644
+ /** Host-supplied window of this target's model — see {@link ModelTargetSpec.contextWindow}. */
4645
+ contextWindow?: number;
4646
+ }
4566
4647
  interface AgentRunOptions {
4567
- model?: string;
4648
+ /**
4649
+ * Model selection for this run.
4650
+ *
4651
+ * - `string` — a model id. With a single provider this is today's behavior;
4652
+ * with multiple providers the id is tried on EVERY provider in order
4653
+ * (fallback chain).
4654
+ * - `Array<string | ModelTargetSpec>` — an ordered fallback list. Object
4655
+ * entries pin a model to one provider by name; bare strings (and object
4656
+ * entries without `provider`) fan out across all providers.
4657
+ * - omitted — each provider's `meta.defaultModel`, in provider order.
4658
+ *
4659
+ * The run starts on the first resolved target and advances down the list
4660
+ * when a stream fails terminally (see the `model:fallback` hook). Once
4661
+ * advanced, the run stays on that target (run-sticky); the next `run()`
4662
+ * starts from the primary again.
4663
+ */
4664
+ model?: string | Array<string | ModelTargetSpec>;
4568
4665
  /**
4569
4666
  * User prompt. Optional when resuming a session with existing turns.
4570
4667
  *
@@ -4890,6 +4987,17 @@ interface SessionHookContext {
4890
4987
  interface SpawnHookContext {
4891
4988
  id: string;
4892
4989
  task: string;
4990
+ /**
4991
+ * Model id the child runs on — the resolved spawn choice (per-call
4992
+ * `model` input > subagent-type default > tool option > inherited
4993
+ * parent model > child provider default). Set on `spawn:before` /
4994
+ * `spawn:error`; hosts surface it next to the spawn-start marker so
4995
+ * cost-tiered delegation is visible. Optional for backward
4996
+ * compatibility with hand-fired hook payloads.
4997
+ */
4998
+ model?: string;
4999
+ /** `Provider.name` serving the child — differs from the parent's when the spawn routed to another provider. */
5000
+ provider?: string;
4893
5001
  /**
4894
5002
  * Subagent depth for the spawn. 1 = direct child of the top-level agent.
4895
5003
  * Present on spawn:before/complete/error. Absent for grandchild spawns that
@@ -5679,6 +5787,87 @@ interface ProviderAuth {
5679
5787
  */
5680
5788
  declare function detectAuth(dataDir: string, registry: Readonly<Record<string, ProviderDescriptor>>, env?: Record<string, string | undefined>): ProviderAuth[];
5681
5789
  //#endregion
5790
+ //#region src/chat/model-chain.d.ts
5791
+ /** One provider+model pair in a fallback chain. */
5792
+ interface ModelChainEntry {
5793
+ provider: ProviderKey;
5794
+ model: string;
5795
+ }
5796
+ /**
5797
+ * Toggle `entry` in `chain`: absent → appended (it takes the next
5798
+ * position number), present → removed (later entries renumber by
5799
+ * shifting down). Pure — returns a new array.
5800
+ */
5801
+ declare function toggleChainEntry(chain: readonly ModelChainEntry[], entry: ModelChainEntry): ModelChainEntry[];
5802
+ /**
5803
+ * 1-based position of a pair in the chain, or `null` when absent.
5804
+ * Drives the numbered markers in the picker rows.
5805
+ */
5806
+ declare function chainPositionOf(chain: readonly ModelChainEntry[], provider: ProviderKey, model: string): number | null;
5807
+ /** Order-sensitive equality — a reordered chain is a different chain. */
5808
+ declare function chainsEqual(a: readonly ModelChainEntry[], b: readonly ModelChainEntry[]): boolean;
5809
+ /**
5810
+ * Did the SET of provider keys change between two chains? The agent is
5811
+ * built with one provider instance per distinct chain key, so a set
5812
+ * change requires a session re-activation (rebuild); a pure model /
5813
+ * order change within the same providers does not.
5814
+ */
5815
+ declare function providerKeySetChanged(prev: readonly ModelChainEntry[], next: readonly ModelChainEntry[]): boolean;
5816
+ /**
5817
+ * Assemble the `agent.run` `model` option from a chain.
5818
+ *
5819
+ * - Single-entry chain → the bare model id string (byte-identical to the
5820
+ * pre-chain behavior).
5821
+ * - Multi-entry chain → pinned `{ provider, model }` targets, where
5822
+ * `provider` is the runtime `Provider.name` resolved via
5823
+ * `providerNameFor` (chain entries carry chat-level `ProviderKey`s,
5824
+ * which need not equal the instance names the agent loop matches on).
5825
+ *
5826
+ * Throws only on an empty chain — a programmer error, since chains
5827
+ * always carry a primary. Stale or unresolvable entries degrade
5828
+ * defensively instead (never throw, never produce an entry the agent
5829
+ * would reject):
5830
+ * - Entries whose key has no resolvable name (provider not constructed
5831
+ * into the current agent) are dropped.
5832
+ * - If the PRIMARY itself doesn't resolve, or fewer than two entries
5833
+ * survive, fall back to the bare primary model string.
5834
+ *
5835
+ * `contextWindowFor` (optional) stamps each target with its model's
5836
+ * context window from the host catalog, so the loop re-bases the
5837
+ * auto-compact trigger when a fallback advances onto it (the host's
5838
+ * explicit window is sized for the PRIMARY otherwise).
5839
+ */
5840
+ declare function buildRunModel(chain: readonly ModelChainEntry[], providerNameFor: (key: ProviderKey) => string | undefined, contextWindowFor?: (entry: ModelChainEntry) => number | undefined): string | Array<{
5841
+ provider: string;
5842
+ model: string;
5843
+ contextWindow?: number;
5844
+ }>;
5845
+ /**
5846
+ * Validate a persisted chain read back from `state.json`. The state file
5847
+ * is user-editable JSON, so the value can be arbitrarily malformed —
5848
+ * return only the well-shaped `{ provider, model }` entries (both
5849
+ * non-empty strings), or `[]` for anything else. Never throws.
5850
+ */
5851
+ declare function sanitizeModelChain(value: unknown): ModelChainEntry[];
5852
+ /**
5853
+ * Restore the fallback tail of a persisted chain for a resolved primary
5854
+ * pair. Returns entries 1+ only when the persisted chain's entry 0
5855
+ * matches `primary` — a divergent chain belongs to a different selection
5856
+ * (e.g. a `--model` launch override) and silently attaching it would
5857
+ * surprise. Entries whose provider isn't registered, entries equal to
5858
+ * the primary, and exact duplicates drop. Accepts the raw persisted
5859
+ * value (`state.json` is user-editable) — shape validation included.
5860
+ */
5861
+ declare function restoreChainFallbacks(saved: unknown, primary: ModelChainEntry, isRegistered: (key: ProviderKey) => boolean): ModelChainEntry[];
5862
+ /**
5863
+ * Filter candidate fallback entries against a primary pair, preserving
5864
+ * picked order: entries whose provider `isAvailable` rejects, entries
5865
+ * equal to the primary, and exact duplicates drop. Shared by the
5866
+ * picker's apply path (live-auth availability) and persisted-chain
5867
+ * restore (registry availability).
5868
+ */
5869
+ declare function filterChainFallbacks(entries: readonly ModelChainEntry[], primary: ModelChainEntry, isAvailable: (key: ProviderKey) => boolean): ModelChainEntry[];
5870
+ //#endregion
5682
5871
  //#region src/chat/types.d.ts
5683
5872
  type Screen = 'auth' | 'sessions' | 'chat';
5684
5873
  /** Identifies the agent that produced a streaming event. */
@@ -5806,6 +5995,13 @@ interface StreamEvent {
5806
5995
  streaming?: boolean;
5807
5996
  /** Subagent that produced this event. Absent / 'parent' = top-level agent. */
5808
5997
  childId?: string;
5998
+ /**
5999
+ * Model id a subagent runs on — set on `spawn-start` events when known
6000
+ * (live via the `spawn:before` hook's `model`, reloaded sessions via the
6001
+ * child run's recorded usage). Renderers show it next to the marker so
6002
+ * cost-tiered delegation is visible at a glance.
6003
+ */
6004
+ model?: string;
5809
6005
  /** Nesting depth — 0 = parent, ≥ 1 = subagent (matches zidane's spawn depth). */
5810
6006
  depth?: number;
5811
6007
  /**
@@ -5965,6 +6161,14 @@ interface EditOutcome {
5965
6161
  interface Picked {
5966
6162
  provider: ProviderAuth;
5967
6163
  model: string;
6164
+ /**
6165
+ * Ordered run-level fallback models AFTER the primary `provider`+`model`
6166
+ * pair — tried in order when a stream fails terminally on the previous
6167
+ * target (see `AgentRunOptions.model`). Picked via the model picker's
6168
+ * numbered multi-select; absent/empty means single-model behavior.
6169
+ * Effort and model options always follow the PRIMARY model only.
6170
+ */
6171
+ fallbacks?: ModelChainEntry[];
5968
6172
  /**
5969
6173
  * Reasoning effort the user selected for `model`. Only meaningful when
5970
6174
  * the active model exposes reasoning (`ModelInfo.reasoning === true`);
@@ -6091,6 +6295,17 @@ interface Settings {
6091
6295
  * for clear visual hierarchy.
6092
6296
  */
6093
6297
  hideSubagentOutput: boolean;
6298
+ /**
6299
+ * Allow subagents to run on DIFFERENT models than the parent. When on,
6300
+ * the spawn tool is built with the model catalog of the agent's
6301
+ * providers (primary + fallback chain): its schema gains a `model`
6302
+ * field and a `model_search` tool is registered, so the main model can
6303
+ * cost-tier its delegation (mechanical work on cheaper models). When
6304
+ * off, neither surface exists and children always inherit the parent
6305
+ * run's model — the pre-feature behavior. Takes effect on the next
6306
+ * agent build (session activation / provider change). Default: on.
6307
+ */
6308
+ subagentModels: boolean;
6094
6309
  /**
6095
6310
  * Active theme id — looked up in `BUILTIN_THEMES` to resolve the palette,
6096
6311
  * select styling, syntax highlight tokens, etc. Default: `'default'`.
@@ -6525,6 +6740,16 @@ interface Settings {
6525
6740
  * Default: `''`.
6526
6741
  */
6527
6742
  sessionIcon: string;
6743
+ /**
6744
+ * Icon that REPLACES `sessionIcon` in the terminal title while the
6745
+ * agent is blocked on user input — a safe-mode tool approval or an
6746
+ * `ask_user` / `present_plan` form awaiting a reply. Lets a
6747
+ * backgrounded tab flag "zidane needs you" at a glance. Free-text
6748
+ * (typically a single emoji). Empty falls back to ⚠️. Only used in
6749
+ * `'icon-session'` mode, like `sessionIcon`.
6750
+ * Default: `''`.
6751
+ */
6752
+ attentionIcon: string;
6528
6753
  }
6529
6754
  //#endregion
6530
6755
  //#region src/chat/agents.d.ts
@@ -8387,6 +8612,39 @@ declare function defineSkill(config: Omit<SkillConfig, 'source'> & {
8387
8612
  source?: SkillConfig['source'];
8388
8613
  }): SkillConfig;
8389
8614
  //#endregion
8615
+ //#region src/tools/model-search.d.ts
8616
+ /**
8617
+ * A {@link ModelInfo} paired with the runtime `Provider.name` that serves
8618
+ * it. `provider` must match a `Provider.name` available to the run (the
8619
+ * primary or a fallback-chain provider — see `ToolContext.providers`);
8620
+ * the spawn tool routes the child agent to that instance.
8621
+ */
8622
+ interface SpawnModelEntry {
8623
+ provider: string;
8624
+ model: ModelInfo;
8625
+ }
8626
+ /**
8627
+ * One display line per model: id, provider, real pricing, context
8628
+ * window, reasoning flag. The single source of truth for how models
8629
+ * render in BOTH the spawn schema's embedded catalog and `model_search`
8630
+ * output, so the model never sees two spellings of the same entry.
8631
+ */
8632
+ declare function formatModelLine(entry: SpawnModelEntry): string;
8633
+ /**
8634
+ * Case-insensitive multi-term filter across id, display name, and
8635
+ * provider. Every whitespace-separated term must match somewhere
8636
+ * (mirrors the TUI picker's `filterModelCatalog` semantics). Empty /
8637
+ * whitespace queries pass everything through.
8638
+ */
8639
+ declare function matchModelEntries(entries: readonly SpawnModelEntry[], query: string): SpawnModelEntry[];
8640
+ /**
8641
+ * Build the `model_search` tool over a spawn model catalog. Register it
8642
+ * alongside `createSpawnTool({ models })` — typically only when the
8643
+ * catalog is too large to embed in the spawn schema, though it is
8644
+ * harmless (and occasionally useful) alongside an embedded catalog too.
8645
+ */
8646
+ declare function createModelSearchTool(models: readonly SpawnModelEntry[]): ToolDef;
8647
+ //#endregion
8390
8648
  //#region src/tools/spawn.d.ts
8391
8649
  interface ChildAgent {
8392
8650
  id: string;
@@ -8427,6 +8685,28 @@ interface SpawnToolOptions {
8427
8685
  * `provider.meta.defaultModel` only when the parent didn't expose one.
8428
8686
  */
8429
8687
  model?: string;
8688
+ /**
8689
+ * Catalog of models children may run on. When set, the spawn input
8690
+ * schema gains an optional `model` field so the CALLING MODEL can
8691
+ * cost-tier its delegation (mechanical / high-volume work on cheaper
8692
+ * models, synthesis on the primary). Reuses the chat layer's
8693
+ * `ModelInfo` objects verbatim — real `cost` pricing and context
8694
+ * windows, no separate catalog to maintain — paired with the runtime
8695
+ * `Provider.name` that serves each model (see {@link SpawnModelEntry}).
8696
+ *
8697
+ * - ≤ {@link EMBEDDED_CATALOG_MAX} entries → the list is embedded in
8698
+ * the field description (id · price · context) so no extra round-trip
8699
+ * and no system-prompt bloat.
8700
+ * - Larger → the description points at the `model_search` tool
8701
+ * (register {@link createModelSearchTool} with the same entries).
8702
+ * - Model-supplied ids are validated: unknown ids are rejected with
8703
+ * the closest matches so the model can self-correct; ids served by
8704
+ * a provider not present in the run are rejected with the reason.
8705
+ *
8706
+ * Default: unset — no `model` field, children always inherit
8707
+ * (byte-identical to the historical schema).
8708
+ */
8709
+ models?: readonly SpawnModelEntry[];
8430
8710
  /** Child system prompt override. Per-spawn `input.system` takes precedence. */
8431
8711
  system?: string;
8432
8712
  /** Child thinking level. */
@@ -8522,6 +8802,19 @@ interface SubagentDef {
8522
8802
  * preset defaults.
8523
8803
  */
8524
8804
  system?: string;
8805
+ /**
8806
+ * Default model for this subagent type (e.g. an Explore preset pinned
8807
+ * to a fast, cheap model). Precedence: per-call `input.model` >
8808
+ * this > `SpawnToolOptions.model` > inherit the parent run's model.
8809
+ * When a catalog is configured and lists this id, the child also
8810
+ * routes to the provider that serves it.
8811
+ */
8812
+ model?: string;
8813
+ /**
8814
+ * Default thinking level for this subagent type. Precedence: this >
8815
+ * `SpawnToolOptions.thinking` > provider default.
8816
+ */
8817
+ thinking?: 'off' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | 'max';
8525
8818
  /**
8526
8819
  * Restrict the child agent's tool registry to this list of canonical
8527
8820
  * tool names. Operates as a filter over the parent's tools (the
@@ -8592,6 +8885,14 @@ interface SpawnTool extends ToolDef, SpawnToolState {
8592
8885
  * instance shares this one's concurrency / stats / child-label state.
8593
8886
  */
8594
8887
  withSubagents: (extra: SubagentRegistry, overrides?: Record<string, SubagentOverride>) => SpawnTool;
8888
+ /**
8889
+ * Return a FRESH spawn tool with the given model catalog (the `model`
8890
+ * schema field + validation — see {@link SpawnToolOptions.models}),
8891
+ * sharing this instance's counters, stats, and concurrency slots.
8892
+ * Hosts call it at agent-build time when the available models are only
8893
+ * known then (e.g. the TUI's provider chain).
8894
+ */
8895
+ withModels: (models: readonly SpawnModelEntry[]) => SpawnTool;
8595
8896
  }
8596
8897
  /** Narrow a {@link ToolDef} to a {@link SpawnTool} (i.e. it exposes `withSubagents`). */
8597
8898
  declare function isSpawnTool(tool: ToolDef): tool is SpawnTool;
@@ -10593,6 +10894,42 @@ interface AgentHooks {
10593
10894
  statusCode?: number;
10594
10895
  requestId?: string;
10595
10896
  }) => void;
10897
+ /**
10898
+ * Fires when a stream fails terminally on the active provider+model target
10899
+ * and the loop advances to the next entry of the run's fallback chain
10900
+ * (`AgentRunOptions.model` array / multi-provider fan-out) instead of
10901
+ * surfacing the error. Fires once per advancement; the terminal failure of
10902
+ * the LAST target still lands on `stream:error` as usual.
10903
+ *
10904
+ * Fallback is run-sticky: after this fires, the rest of the run stays on
10905
+ * `to` (no ping-pong back to the primary); the next `run()` starts from the
10906
+ * primary target again.
10907
+ *
10908
+ * - `from` / `to` — provider name + model id of the exhausted and newly
10909
+ * active targets.
10910
+ * - `targetIndex` — 0-based index of `to` in the resolved target list.
10911
+ * - `err` — the raw error that exhausted `from`.
10912
+ *
10913
+ * Observational — handlers cannot cancel the fallback. To disable fallback,
10914
+ * configure a single provider+model target.
10915
+ *
10916
+ * Attribution note: the session run record's `providerName` is stamped at
10917
+ * `run:start` from the PRIMARY target and is not rewritten when a fallback
10918
+ * advances — this hook (and per-turn `TurnUsage.modelId`) is the source of
10919
+ * truth for which target actually served a given stretch of the run.
10920
+ */
10921
+ 'model:fallback': (ctx: StreamHookContext & {
10922
+ from: {
10923
+ provider: string;
10924
+ model: string;
10925
+ };
10926
+ to: {
10927
+ provider: string;
10928
+ model: string;
10929
+ };
10930
+ targetIndex: number;
10931
+ err: unknown;
10932
+ }) => void;
10596
10933
  /**
10597
10934
  * Fires when the loop catches a `context_exceeded` provider error and, before
10598
10935
  * giving up, performs an emergency in-loop compaction (aggressive tail
@@ -11689,7 +12026,17 @@ interface McpToolMeta {
11689
12026
  */
11690
12027
  type McpToolWrap = (tool: ToolDef, meta: McpToolMeta) => ToolDef;
11691
12028
  interface AgentOptions {
11692
- provider: Provider;
12029
+ /**
12030
+ * LLM provider(s) driving the agent.
12031
+ *
12032
+ * A single `Provider` is the common case. Passing an array enables
12033
+ * run-level fallback chains: `AgentRunOptions.model` entries reference
12034
+ * providers by `Provider.name`, and bare-string model ids fan out across
12035
+ * every provider in array order. Names must be unique within the array.
12036
+ * The FIRST provider is the primary — agent-level surfaces (`agent.meta`,
12037
+ * `getContextBreakdown`, the default model when `model` is omitted) read it.
12038
+ */
12039
+ provider: Provider | Provider[];
11693
12040
  /** Display name for the agent (used in traces/logs). */
11694
12041
  name?: string;
11695
12042
  /** Default system prompt injected when no system is provided at run time. */
@@ -14572,6 +14919,32 @@ interface MetricsHookSet {
14572
14919
  */
14573
14920
  declare function createMetricsHooks(options: MetricsHooksOptions): MetricsHookSet;
14574
14921
  //#endregion
14922
+ //#region src/model-targets.d.ts
14923
+ /**
14924
+ * Normalize `AgentOptions.provider` into a non-empty provider list.
14925
+ *
14926
+ * In multi-provider setups every provider needs a non-blank, unique name —
14927
+ * model entries reference providers by `Provider.name`, so a blank or
14928
+ * duplicate name would make the reference ambiguous (and surface as a
14929
+ * baffling `duplicate provider name ""` otherwise). A single provider
14930
+ * keeps today's behavior: its name plays no role in target resolution,
14931
+ * so no constraint applies. Throws at agent construction rather than at
14932
+ * run time.
14933
+ */
14934
+ declare function normalizeProviders(provider: Provider | Provider[]): Provider[];
14935
+ /**
14936
+ * Resolve a run's model selection into an ordered, de-duplicated fallback
14937
+ * chain of provider+model targets. `targets[0]` is the primary.
14938
+ *
14939
+ * Expansion rules:
14940
+ * - `undefined` → each provider's `meta.defaultModel`, in provider order.
14941
+ * - `string` → that model id on every provider, in provider order.
14942
+ * - array → entries in order; a `{ provider, model }` entry resolves to that
14943
+ * one provider (throws on unknown names), while bare strings and
14944
+ * provider-less objects fan out across all providers.
14945
+ */
14946
+ declare function resolveModelTargets(providers: readonly Provider[], model?: string | ReadonlyArray<string | ModelTargetSpec>): ModelTarget[];
14947
+ //#endregion
14575
14948
  //#region src/mutation-validation.d.ts
14576
14949
  type MaybePromise<T> = T | Promise<T>;
14577
14950
  type SuccessfulMutationOutcome = Extract<ToolOutcome, 'created' | 'updated' | 'edited'>;
@@ -14963,5 +15336,5 @@ declare function definePreset(config: Preset): Preset;
14963
15336
  */
14964
15337
  declare function composePresets(...presets: Preset[]): Preset;
14965
15338
  //#endregion
14966
- export { resolveTasksDir as $, ExtensionContext as $a, CreateInteractionToolsOptions as $c, ToolResultImageRefContent as $d, TurnInterruptionState as $f, ExtensionInstallIo as $i, PLAN_AGENT as $l, validateToolArgs as $n, ExtensionRuntimeSurface as $o, mapCodexStopReason as $p, CompactPromptBuilder as $r, ActiveSkill as $s, artifactPath as $t, ContextItem as $u, UpDownCounter as A, ExtensionConfigChangeBehavior as Aa, CompletionProvider as Ac, PromptVideoPart as Ad, SessionStore as Af, stableStringify as Ai, isStandardSchema as Al, HeadlessEvent as An, ExtensionToolRenderer as Ao, ASSISTANT_TOOL_CALLS_TAG as Ap, RunSummaryRepeatGuard as Ar, interpolateShellCommands as As, EvalRunReporterOptions as At, localDescriptor as Au, McpCredentialStore as B, WireExtensionConfigItem as Ba, CommandExecution as Bc, SessionMessage as Bd, createRemoteStore as Bf, BuildExtensionRegistryOptions as Bi, RingBufferSink as Bl, formatHeadlessResult as Bn, TuiContributions as Bo, assistantMessage as Bp, buildPostCompactAttachments as Br, listSkillCandidates as Bs, EvalWorkspaceOptions as Bt, AutoCompactInput as Bu, Counter as C, discoverAndBuildExtensionRegistry as Ca, resolveChipColor as Cc, ProgressNudgeKind as Cd, SkillResource as Cf, diffCacheDimensions as Ci, pendingInteractionsFromTurns as Cl, registerEvalTests as Cn, ExtensionSkillPolicy as Co, SchemaSanitizeProfile as Cp, RunSummary as Cr, parseAllowedToolPattern as Cs, EvalCaseResult as Ct, ProviderDescriptor as Cu, MetricAttributes as D, defineExtension as Da, ActiveTrigger as Dc, PromptImagePart as Dd, Session as Df, defaultRepeatGuardNormalize as Di, InferSchemaOutput as Dl, FormattedHeadlessResult as Dn, ExtensionToolCatalogTransform as Do, OpenRouterParams as Dp, RunSummaryCollector as Dr, validateSkillName as Ds, EvalMetricError as Dt, enabledModelOptions as Du, Meter as E, createExtensionPromptBridge as Ea, useCompletion as Ec, PromptDocumentPart as Ed, CreateSessionOptions as Ef, snapshotCacheDimensions as Ei, useInteractionsQueue as El, statusCompleted as En, ExtensionStorageSurface as Eo, sanitizeToolSpecs as Ep, RunSummaryByModel as Er, validateSkillForWrite as Es, EvalMetric as Et, credKeyOf as Eu, startOAuthCallback as F, ExtensionConfigScope as Fa, findActiveTrigger as Fc, RetryConfig as Fd, getExtensionSessionState as Ff, AgentOptions as Fi, LogRecord as Fl, HeadlessUsage as Fn, ExtensionToolResultTransform as Fo, OpenAICompatParams as Fp, estimateTokens as Fr, SkillInstallErrorCode as Fs, EvalScorer as Ft, openrouterDescriptor as Fu, PERSISTED_STUB_PREFIX as G, isValidExtensionConfigValue as Ga, CommandStepContext as Gc, ToolBatchExecutor as Gd, EnsureToolResultPairingOptions as Gf, disposeExtensionRegistry as Gi, AgentAccent as Gl, providerTranscriptFormatForProvider as Gn, ExtensionHudWriter as Go, mapOAIFinishReason as Gp, CompactOptions as Gr, getDefaultScanPaths as Gs, MetricSpec as Gt, ContextBreakdownContributionContext as Gu, McpOAuthProviderOptions as H, clampExtensionConfigNumber as Ha, CommandInvocation as Hc, SpawnHookContext as Hd, FileMapAdapter as Hf, buildExtensionPreset as Hi, createLogger as Hl, formattedHeadlessTurnEventToJsonl as Hn, ExtensionHud as Ho, classifyOpenAICompatError as Hp, selectFilesFromSession as Hr, readSkillProvenance as Hs, LlmJudgeOptions as Ht, effectiveContextWindow as Hu, LoginMcpServerOptions as I, ExtensionConfigStringItem as Ia, mergeReferences as Ic, RunHookMap as Id, loadSession as If, McpConnector as Ii, LogSink as Il, OpenAIChatContentPart as In, ExtensionToolVerdict as Io, OpenAICompatStreamError as Ip, utf8ByteLength as Ir, SkillInstallOptions as Is, EvalScorerContext as It, piIdOf as Iu, PersistOutcome as J, toWireConfigSchema as Ja, executeCommand as Jc, ToolResultAudioContent as Jd, PairingRepairMode as Jf, partitionExtensionCatalog as Ji, BUILD_AGENT as Jl, transcriptToProviderMessages as Jn, ExtensionNotifyTone as Jo, toOAIMessages as Jp, compactConversation as Jr, parseSkillFile as Js, RegisterEvalTestsOptions as Jt, ContextCategory as Ju, PERSISTENCE_PREVIEW_BYTES as K, resolveExtensionConfig as Ka, CommandStepFn as Kc, ToolHookContext as Kd, ORPHANED_TOOL_RESULT_MARKER as Kf, filterExtensionRegistry as Ki, AgentProfile as Kl, runHeadless as Kn, ExtensionNotification as Ko, openAICompatPromptMessage as Kp, CompactResult as Kr, inferSource as Ks, MetricSpecMap as Kt, ContextBreakdownContributor as Ku, LoginMcpServerResult as L, ExtensionConfigSurface as La, resolveCompletionSubmit as Lc, SessionContentBlock as Ld, setExtensionSessionState as Lf, McpToolMeta as Li, Logger as Ll, OpenAIChatMessage as Ln, ExtensionTuiSurface as Lo, TOOL_RESULTS_TAG as Lp, PostCompactAttachments as Lr, SkillInstallResult as Ls, EvalTestRunner as Lt, restoreModelOptions as Lu, OAuthCallbackHandle as M, ExtensionConfigItem as Ma, CompletionSubmitContext as Mc, RepeatGuardToolMatcher as Md, currentExtensionSession as Mf, Agent as Mi, zodToJsonSchema as Ml, HeadlessOutputFormat as Mn, ExtensionToolRendererRegistration as Mo, OAITool as Mp, RunSummaryValidation as Mr, SKILL_PROVENANCE_FILE as Ms, EvalRunSummaryCase as Mt, modelSupportsReasoning as Mu, OAuthCallbackOptions as N, ExtensionConfigItemBase as Na, applyInsert as Nc, ResolveContentRef as Nd, deleteExtensionSessionState as Nf, AgentHookMap as Ni, ConsoleSinkOptions as Nl, HeadlessResult as Nn, ExtensionToolResultMetadataRegistration as No, OpenAICompatAuthHeader as Np, createRunSummaryCollector as Nr, SkillInstallCandidate as Ns, EvalRunUsage as Nt, modelsForDescriptor as Nu, MetricsHookSet as O, ExtensionConfigBooleanItem as Oa, CompletionContext as Oc, PromptPart as Od, SessionData as Of, defaultRepeatGuardTracked as Oi, SchemaInput as Ol, FormattedHeadlessTurnEvent as On, ExtensionToolPolicy as Oo, normalizeOpenRouterModelId as Op, RunSummaryCollectorOptions as Or, resolveSkills as Os, EvalRunMetricAggregate as Ot, getContextWindow as Ou, OAuthCallbackResult as P, ExtensionConfigNumberItem as Pa, collectReferences as Pc, ResolveContentRefBlock as Pd, demoteStaleRunningStatus as Pf, AgentHooks as Pi, LogLevel as Pl, HeadlessStatus as Pn, ExtensionToolResultPatch as Po, OpenAICompatHttpError as Pp, BYTES_PER_TOKEN as Pr, SkillInstallError as Ps, EvalScore as Pt, openaiDescriptor as Pu, resolvePersistDir as Q, ExtensionCapability as Qa, ConfirmQuestion as Qc, ToolResultImageContent as Qd, ToWireMessagesOptions as Qf, ExtensionInstallErrorCode as Qi, DEFAULT_PERSIST_EXCLUDE_TOOLS as Ql, ValidationResult as Qn, ExtensionHostRuntimeImpl as Qo, classifyOpenAIError as Qp, CompactDirection as Qr, ActivationVia as Qs, TrajectoryStepKind as Qt, ContextExtensionSection as Qu, loginMcpServer as R, ExtensionConfigValue as Ra, Command as Rc, SessionEndStatus as Rd, withExtensionSession as Rf, McpToolWrap as Ri, LoggingHookSet as Rl, ProviderTranscriptFormat as Rn, GuiContributions as Ro, applyOAICacheBreakpoints as Rp, PostCompactRestoreOptions as Rr, SkillInstallSpec as Rs, EvalVariantSummary as Rt, AUTO_COMPACT_MIN_GROWTH_FRACTION as Ru, createMutationValidationHooks as S, DiscoverAndBuildExtensionRegistryOptions as Sa, ThemeSurfaces as Sc, OAuthRefreshHookContext as Sd, SkillDiagnostic as Sf, CacheDimensionSnapshot as Si, makeRequestInteraction as Sl, resolveAnthropicMaxOutput as Sm, normalizeMetric as Sn, ExtensionSessionStateSurface as So, SchemaSanitizeOptions as Sp, edit as Sr, matchesAllowedTool as Ss, EvalCaseOptions as St, ModelOption as Su, InstrumentOptions as T, ExtensionPromptDelivery as Ta, CompletionState as Tc, PromptAudioPart as Td, SkillsConfig as Tf, installCacheBreakLogger as Ti, useInteractionsActions as Tl, runEvalCase as Tn, ExtensionStorageScope as To, sanitizeToolSchema as Tp, RunSummaryBudget as Tr, validateResourcePathReal as Ts, EvalDefinitionContext as Tt, cerebrasDescriptor as Tu, createMemoryMcpCredentialStore as U, coerceExtensionConfigInput as Ua, CommandOutputBlock as Uc, StreamHookContext as Ud, FileMapStoreOptions as Uf, buildExtensionRegistry as Ui, createLoggingHooks as Ul, headlessEventToJsonl as Un, ExtensionHudState as Uo, consumeSSE as Up, selectRecentFiles as Ur, SourcedScanPath as Us, MetricDirection as Ut, shouldAutoCompact as Uu, McpOAuthProvider as V, WireExtensionConfigSchema as Va, CommandGenerateDataOptions as Vc, SessionTurn as Vd, createMemoryStore as Vf, ExtensionCatalogPartition as Vi, consoleSink as Vl, formatHeadlessTurnEvent as Vn, ExtensionBannerOptions as Vo, buildAssistantContent as Vp, selectFilesFromReadState as Vr, parseSkillInstallSpec as Vs, EvalWorkspaceSnapshot as Vt, OUTPUT_RESERVE_TOKENS as Vu, hasAuthorizationHeader as W, isValidExtensionConfigItem as Wa, CommandStep as Wc, ThinkingLevel as Wd, createFileMapStore as Wf, composeExtensionPreset as Wi, jsonSink as Wl, installHeadlessEventAdapter as Wn, ExtensionHudStatus as Wo, formatTools as Wp, CompactEndEvent as Wr, discoverSkills as Ws, MetricEmitter as Wt, ContextBreakdown as Wu, cleanupPersistedSession as X, ExtensionApiVersion as Xa, ASK_USER_TOOL as Xc, ToolResultDocumentContent as Xd, SYNTHETIC_TOOL_RESULT_PLACEHOLDER as Xf, ExtensionInstallCandidate as Xi, DEFAULT_AGENT_ID as Xl, WAIT_TASK_TIMED_OUT_PREFIX as Xn, createExtensionHud as Xo, userMessage as Xp, CompactPromptTooLongError as Xr, IMPLICITLY_ALLOWED_SKILL_TOOLS as Xs, Trajectory as Xt, ContextExactCounts as Xu, buildPersistedStub as Y, EMPTY_EXTENSION_REGISTRY as Ya, parseCommandInvocation as Yc, ToolResultContent as Yd, RemintResult as Yf, ExtensionFetchResult as Yi, BUILTIN_AGENTS as Yl, writeFile as Yn, ExtensionStatusOptions as Yo, toolResultsMessage as Yp, CompactInvalidInputError as Yr, buildCatalog as Ys, ReusableExecutionContext as Yt, ContextCategoryId as Yu, maybePersistToolResult as Z, ExtensionBehaviorTransform as Za, AnswerValue as Zc, ToolResultDocumentRefContent as Zd, TOOL_USE_INTERRUPTED_MARKER as Zf, ExtensionInstallError as Zi, DEFAULT_BUDGET_EXCLUDE_TOOLS as Zl, waitTask as Zn, ExtensionHostRuntimeBridge as Zo, OpenAIParams as Zp, BASE_INSTRUCTIONS as Zr, installAllowedToolsGate as Zs, TrajectoryStep as Zt, ContextExtensionRow as Zu, MutationValidationFailure as _, discoverExtensions as _a, SyntaxStyles as _c, DedupToolConfig as _d, hydrateReadStateFromSessionAsync as _f, GenerateStructuredDataOptions as _i, SelectQuestion as _l, applyAnthropicCacheBreakpoints as _m, formatEvalCaseSummary as _n, ExtensionPromptTransform as _o, ToolResult as _p, listFiles as _r, writeSkillToDisk as _s, EvalAgentRunOptions as _t, ProviderKey as _u, basicTools as a, InstalledExtensionTargetOptions as aa, McpConnection as ac, AgentClock as ad, toolOutputBudgetByteLength as af, buildFullCompactPrompt as ai, PendingInteractionEntry as al, cursor as am, createEvalAgent as an, ExtensionFooterHint as ao, fromAnthropic as ap, SkillsUseToolOptions as ar, createWorkspaceSurface as as, EXTENSION_EDIT_METADATA_KEY as at, EditOutcome as au, MutationValidationResult as b, parseExtensionScanPathEnv as ba, ThemeColors as bc, McpToolHookContext as bd, ShellInterpolationApproval as bf, CacheDimensionDiff as bi, createInteractionTools as bl, planAnthropicThinking as bm, functionalityMetric as bn, ExtensionRunTransform as bo, XaiParams as bp, grep as br, SkillValidationResult as bs, EvalAgentStats as bt, CustomField as bu, StartSpan as c, listExtensionCandidates as ca, deriveMcpToolMeta as cc, AutoCompact as cd, ToolContext as cf, ANCHOR_PREVIEW_MAX_CHARS as ci, PlanRequest as cl, BasetenParams as cm, defineEval as cn, ExtensionKeybinding as co, toAnthropic as cp, createSkillsRunScriptTool as cr, SpawnTool as cs, buildZidaneExtensionSkill as ct, Owner as cu, TracingHooksOptions as d, removeInstalledExtension as da, resultToString as dc, CompactEndHookContext as dd, HydrateReadStateOptions as df, SummaryToTurnInput as di, Question as dl, ArceeParams as dm, emitEfficiencyMetrics as dn, ExtensionMcpConfigTransform as do, Provider as dp, shellKill as dr, SubagentDef as ds, resolveExtensionDocsDir as dt, SessionMeta as du, ExtensionInstallProvenance as ea, DeactivationReason as ec, ContextMcpGroup as ed, ToolResultMetadata as ef, CompactPromptOptions as ei, InteractionRequest as el, openai as em, buildEvalRunSummary as en, ExtensionContextTransform as eo, autoDetectAndConvert as ep, TailTruncateOptions as er, ExtensionSessionSummary as es, INTERRUPT_MESSAGE_FOR_TOOL_USE as et, accentColor as eu, createTracingHooks as f, updateInstalledExtension as fa, wrapDiscoveredMcpTools as fc, CompactFunction as fd, ReadStateEntry as ff, anchorPreviewFor as fi, QuestionChoice as fl, arcee as fm, fileContains as fn, ExtensionModal as fo, ProviderCapabilities as fp, CreateShellToolOptions as fr, SubagentOverride as fs, withZidaneExtensionSkill as ft, Settings as fu, MutationValidationBatch as g, defaultExtensionScanPaths as ga, DEFAULT_THEME as gc, DedupHasher as gd, hydrateReadStateFromSession as gf, truncateHeadForPtlRetry as gi, QuestionType as gl, anthropic as gm, finalizeEvalMetrics as gn, ExtensionPermission as go, ToolCall as gp, multiEdit as gr, defineSkill as gs, EvalAgentMcpServers as gt, ProviderAuth as gu, statsByModel as h, ExtensionScanEntry as ha, ChipColorMap as hc, DEFAULT_AGENT_CLOCK as hd, hashContent as hf, summaryToTurn as hi, QuestionResponse as hl, AnthropicThinkingPlan as hm, fileExistsOneOf as hn, ExtensionPaths as ho, TokenCountPayload as hp, readFile as hr, isSpawnTool as hs, EvalAgent as ht, AuthMethod as hu, _default as i, InstallExtensionFromSpecOptions as ia, ConnectMcpServersOptions as ic, AgentBehavior as id, TurnUsage as if, buildFromCompactPrompt as ii, PRESENT_PLAN_TOOL as il, CursorParams as im, computeEvalTagScores as in, ExtensionDefinition as io, filterUnresolvedToolUses as ip, createToolSearchTool as ir, createExtensionHostRuntimeBridge as is, applyCompactSummaryCutoff as it, EditHunk as iu, createMetricsHooks as j, ExtensionConfigEnumItem as ja, CompletionReference as jc, RepeatGuardConfig as jd, createSession as jf, localReliabilityBehavior as ji, resolveSchemaInput as jl, HeadlessOptions as jn, ExtensionToolRendererEntry as jo, OAIMessage as jp, RunSummaryTokens as jr, stripShellInterpolations as js, EvalRunSummary as jt, modelOptionsFor as ju, MetricsHooksOptions as k, ExtensionConfigCategory as ka, CompletionItem as kc, PromptTextPart as kd, SessionRun as kf, normalizeShellCommand as ki, StandardSchemaLike as kl, HeadlessErrorInfo as kn, ExtensionToolRenderProps as ko, openrouter as kp, RunSummaryError as kr, InterpolateShellCommandsOptions as ks, EvalRunReporter as kt, getModelInfo as ku, TracingConventions as l, parseExtensionInstallSource as la, normalizeMcpBlocks as lc, AutoCompactConfig as ld, ToolDef as lf, CompactScope as li, PlanResponse as ll, baseten as lm, defineMetrics as ln, ExtensionKeybindingDispatchContext as lo, toOpenAI as lp, SkillsReadToolOptions as lr, SpawnToolOptions as ls, extensionDirForCwd as lt, Picked as lu, flattenTurns as m, ENTRY_CANDIDATES as ma, ChipColor as mc, CompactStartHookContext as md, getReadState as mf, stripImagesFromTurns as mi, QuestionRequest as ml, AnthropicParams as mm, fileExists as mn, ExtensionOrderedContribution as mo, StreamOptions as mp, shell as mr, createSpawnTool as ms, EFFICIENCY_METRICS as mt, ToolCallDisplay as mu, composePresets as n, ExtensionInstallScope as na, SkillActivationStateOptions as nc, ContextUsageSplit as nd, ToolResultVideoContent as nf, TRAILER as ni, InteractionsActions as nl, LocalParams as nm, buildTrajectory as nn, ExtensionCustomRenderer as no, ensureEndsWithUserMessage as np, LazyToolEntry as nr, ExtensionWorkspacePair as ns, TOOL_USE_CANCELLED_MESSAGE as nt, singleAgentRegistry as nu, GEN_AI_ATTRIBUTES as o, fetchExtensionSource as oa, attachStderrWarnPump as oc, AgentRunOptions as od, toolOutputByteLength as of, buildTailCompactPrompt as oi, PlanDecision as ol, CerebrasParams as om, createEvalRunReporter as on, ExtensionGuiPanel as oo, fromOpenAI as op, createSkillsUseTool as or, ChildAgent as os, ExtensionEditMarker as ot, EditOutcomeKind as ou, ModelUsage as p, registerExtensionHostModules as pa, BUILTIN_THEMES as pc, CompactHookContext as pd, ReadStateMap as pf, sliceForCompaction as pi, QuestionPayload as pl, AnthropicContextManagement as pm, fileContentQuality as pn, ExtensionModalNode as po, StreamCallbacks as pp, createShellTool as pr, SubagentRegistry as ps, CreateEvalAgentOptions as pt, StreamEvent as pu, PersistInput as q, resolveExtensionConfigValue as qa, commandSteps as qc, ToolOutcome as qd, PairingRepair as qf, mergeContributions as qi, AgentRegistry as ql, transcriptToOpenAIMessages as qn, ExtensionNotifyOptions as qo, openaiCompat as qp, CompactStartEvent as qr, parseFrontmatter as qs, MetricStats as qt, ContextBreakdownOptions as qu, definePreset as r, ExtensionInstallSource as ra, createSkillActivationState as rc, buildContextBreakdown as rd, TurnFinishReason as rf, buildCompactPrompt as ri, InteractionsProvider as rl, local as rm, clearRegisteredEvals as rn, ExtensionCustomRendererEntry as ro, ensureToolResultPairing as rp, ToolSearchToolOptions as rr, ExtensionWorkspaceSurface as rs, TOOL_USE_SKIPPED_MESSAGE as rt, EditDiffDisplay as ru, Span as s, installExtensionFromSpec as sa, connectMcpServers as sc, AgentStats as sd, toolResultToText as sf, buildUpToCompactPrompt as si, PlanPayload as sl, cerebras as sm, createReusableExecutionContext as sn, ExtensionGuiSurface as so, remintDuplicateToolCallIds as sp, SkillsRunScriptToolOptions as sr, ExtensionSubagentDef as ss, ZIDANE_EXTENSION_SKILL_NAME as st, EditPayload as su, Preset as t, ExtensionInstallResult as ta, SkillActivationState as tc, ContextSnapshot as td, ToolResultTextContent as tf, NO_TOOLS_PREAMBLE as ti, InteractionResponse as tl, toPiMessages as tm, buildRegisteredEvals as tn, ExtensionContributions as to, detectTurnInterruption as tp, tailTruncate as tr, ExtensionSessionsSurface as ts, SHELL_CASCADE_CANCEL_MESSAGE as tt, resolveAgentId as tu, TracingHookSet as u, readExtensionInstallProvenance as ua, normalizeMcpServers as uc, ChildRunStats as ud, ToolMap as uf, CompactionSlice as ui, PlanStep as ul, planBasetenReasoning as um, efficiencyMetricValues as un, ExtensionManifest as uo, toWireMessages as up, createSkillsReadTool as ur, SpawnToolState as us, extensionScaffold as ut, Screen as uu, MutationValidationHooksOptions as v, inlineLoadedExtension as va, SyntaxTokenStyle as vc, JsonValue as vd, readStateKey as vf, generateStructuredData as vi, TextQuestion as vl, classifyAnthropicError as vm, formatEvalRunSummary as vn, ExtensionProviderMiddleware as vo, ToolSpec as vp, InteractionToolOptions as vr, writeSkillsToDisk as vs, EvalAgentRunResult as vt, detectAuth as vu, Histogram as w, ExtensionPromptBridge as wa, resolveTheme as wc, ProgressNudgeMessage as wd, SkillSource as wf, fnv1a32 as wi, serializeInteractionResponse as wl, relativeArtifactPath as wn, ExtensionSource as wo, SchemaSanitizeResult as wp, RunSummaryBlock as wr, validateResourcePath as ws, EvalDefinition as wt, anthropicDescriptor as wu, SuccessfulMutationOutcome as x, scanExtensionDirectories as xa, ThemeSelect as xc, McpToolSchema as xd, SkillConfig as xf, CacheDimensionName as xi, isInteractionTool as xl, resolveAnthropicBetas as xm, llmJudge as xn, ExtensionRuntimeEnv as xo, xai as xp, glob as xr, isToolAllowedByUnion as xs, EvalArtifacts as xt, ModelInfo as xu, MutationValidationMutation as y, isExtensionDefinition as ya, Theme as yc, McpServerConfig as yd, resolveReadStateMap as yf, CacheBreakLoggerOptions as yi, buildResumedToolResultsTurn as yl, defaultAnthropicMaxTokens as ym, formatTrajectoryLine as yn, ExtensionRegistry as yo, TurnResult as yp, createInteractionTool as yr, SkillValidationIssue as ys, EvalAgentRunStats as yt, BUILTIN_PROVIDERS as yu, McpCredentialEntry as z, StoredExtensionConfigItem as za, CommandAgentResult as zc, SessionHookContext as zd, RemoteStoreOptions as zf, createAgent as zi, LoggingHooksOptions as zl, exitCodeForHeadlessResult as zn, LoadedExtension as zo, applyOAIToolCacheBreakpoint as zp, RecentFile as zr, installSkillFromSpec as zs, EvalWorkspaceFile as zt, AutoCompactDecision as zu };
14967
- //# sourceMappingURL=index-B8UtiZy7.d.ts.map
15339
+ export { maybePersistToolResult as $, ExtensionBehaviorTransform as $a, commandSteps as $c, RunHookMap as $d, getExtensionSessionState as $f, ExtensionInstallError as $i, AgentRegistry as $l, waitTask as $n, ExtensionHostRuntimeBridge as $o, OpenAICompatParams as $p, BASE_INSTRUCTIONS as $r, parseFrontmatter as $s, TrajectoryStep as $t, AUTO_COMPACT_MIN_GROWTH_FRACTION as $u, MetricsHookSet as A, ExtensionConfigBooleanItem as Aa, resolveTheme as Ac, DEFAULT_AGENT_CLOCK as Ad, ReadStateMap as Af, defaultRepeatGuardTracked as Ai, serializeInteractionResponse as Al, arcee as Am, FormattedHeadlessTurnEvent as An, ExtensionToolPolicy as Ao, ProviderCapabilities as Ap, RunSummaryCollectorOptions as Ar, validateResourcePath as As, EvalRunMetricAggregate as At, AuthMethod as Au, loginMcpServer as B, ExtensionConfigValue as Ba, collectReferences as Bc, ProgressNudgeKind as Bd, SkillResource as Bf, McpToolWrap as Bi, LogLevel as Bl, resolveAnthropicMaxOutput as Bm, ProviderTranscriptFormat as Bn, GuiContributions as Bo, SchemaSanitizeOptions as Bp, PostCompactRestoreOptions as Br, SkillInstallError as Bs, EvalVariantSummary as Bt, cerebrasDescriptor as Bu, normalizeProviders as C, scanExtensionDirectories as Ca, SyntaxStyles as Cc, AutoCompact as Cd, toolOutputByteLength as Cf, CacheDimensionName as Ci, SelectQuestion as Cl, cursor as Cm, llmJudge as Cn, ExtensionRuntimeEnv as Co, fromAnthropic as Cp, glob as Cr, writeSkillToDisk as Cs, EvalArtifacts as Ct, chainPositionOf as Cu, InstrumentOptions as D, ExtensionPromptDelivery as Da, ThemeSelect as Dc, CompactFunction as Dd, ToolMap as Df, installCacheBreakLogger as Di, isInteractionTool as Dl, baseten as Dm, runEvalCase as Dn, ExtensionStorageScope as Do, toOpenAI as Dp, RunSummaryBudget as Dr, isToolAllowedByUnion as Ds, EvalDefinitionContext as Dt, restoreChainFallbacks as Du, Histogram as E, ExtensionPromptBridge as Ea, ThemeColors as Ec, CompactEndHookContext as Ed, ToolDef as Ef, fnv1a32 as Ei, createInteractionTools as El, BasetenParams as Em, relativeArtifactPath as En, ExtensionSource as Eo, toAnthropic as Ep, RunSummaryBlock as Er, SkillValidationResult as Es, EvalDefinition as Et, providerKeySetChanged as Eu, OAuthCallbackOptions as F, ExtensionConfigItemBase as Fa, CompletionItem as Fc, McpToolHookContext as Fd, readStateKey as Ff, AgentHookMap as Fi, StandardSchemaLike as Fl, applyAnthropicCacheBreakpoints as Fm, HeadlessResult as Fn, ExtensionToolResultMetadataRegistration as Fo, ToolResult as Fp, createRunSummaryCollector as Fr, InterpolateShellCommandsOptions as Fs, EvalRunUsage as Ft, CustomField as Fu, createMemoryMcpCredentialStore as G, coerceExtensionConfigInput as Ga, CommandAgentResult as Gc, PromptPart as Gd, SessionData as Gf, buildExtensionRegistry as Gi, LoggingHooksOptions as Gl, headlessEventToJsonl as Gn, ExtensionHudState as Go, OpenRouterParams as Gp, selectRecentFiles as Gr, installSkillFromSpec as Gs, MetricDirection as Gt, localDescriptor as Gu, McpCredentialStore as H, WireExtensionConfigItem as Ha, mergeReferences as Hc, PromptAudioPart as Hd, SkillsConfig as Hf, BuildExtensionRegistryOptions as Hi, LogSink as Hl, formatHeadlessResult as Hn, TuiContributions as Ho, SchemaSanitizeResult as Hp, buildPostCompactAttachments as Hr, SkillInstallOptions as Hs, EvalWorkspaceOptions as Ht, enabledModelOptions as Hu, OAuthCallbackResult as I, ExtensionConfigNumberItem as Ia, CompletionProvider as Ic, McpToolSchema as Id, resolveReadStateMap as If, AgentHooks as Ii, isStandardSchema as Il, classifyAnthropicError as Im, HeadlessStatus as In, ExtensionToolResultPatch as Io, ToolSpec as Ip, BYTES_PER_TOKEN as Ir, interpolateShellCommands as Is, EvalScore as It, ModelInfo as Iu, PERSISTENCE_PREVIEW_BYTES as J, resolveExtensionConfig as Ja, CommandInvocation as Jc, RepeatGuardConfig as Jd, SessionStore as Jf, filterExtensionRegistry as Ji, createLogger as Jl, runHeadless as Jn, ExtensionNotification as Jo, ASSISTANT_TOOL_CALLS_TAG as Jp, CompactResult as Jr, readSkillProvenance as Js, MetricSpecMap as Jt, modelsForDescriptor as Ju, hasAuthorizationHeader as K, isValidExtensionConfigItem as Ka, CommandExecution as Kc, PromptTextPart as Kd, SessionMetaRow as Kf, composeExtensionPreset as Ki, RingBufferSink as Kl, installHeadlessEventAdapter as Kn, ExtensionHudStatus as Ko, normalizeOpenRouterModelId as Kp, CompactEndEvent as Kr, listSkillCandidates as Ks, MetricEmitter as Kt, modelOptionsFor as Ku, startOAuthCallback as L, ExtensionConfigScope as La, CompletionReference as Lc, ModelTarget as Ld, ShellInterpolationApproval as Lf, AgentOptions as Li, resolveSchemaInput as Ll, defaultAnthropicMaxTokens as Lm, HeadlessUsage as Ln, ExtensionToolResultTransform as Lo, TurnResult as Lp, estimateTokens as Lr, stripShellInterpolations as Ls, EvalScorer as Lt, ModelOption as Lu, UpDownCounter as M, ExtensionConfigChangeBehavior as Ma, useCompletion as Mc, DedupToolConfig as Md, hashContent as Mf, stableStringify as Mi, useInteractionsQueue as Ml, AnthropicParams as Mm, HeadlessEvent as Mn, ExtensionToolRenderer as Mo, StreamOptions as Mp, RunSummaryRepeatGuard as Mr, validateSkillForWrite as Ms, EvalRunReporterOptions as Mt, ProviderKey as Mu, createMetricsHooks as N, ExtensionConfigEnumItem as Na, ActiveTrigger as Nc, JsonValue as Nd, hydrateReadStateFromSession as Nf, localReliabilityBehavior as Ni, InferSchemaOutput as Nl, AnthropicThinkingPlan as Nm, HeadlessOptions as Nn, ExtensionToolRendererEntry as No, TokenCountPayload as Np, RunSummaryTokens as Nr, validateSkillName as Ns, EvalRunSummary as Nt, detectAuth as Nu, Meter as O, createExtensionPromptBridge as Oa, ThemeSurfaces as Oc, CompactHookContext as Od, HydrateReadStateOptions as Of, snapshotCacheDimensions as Oi, makeRequestInteraction as Ol, planBasetenReasoning as Om, statusCompleted as On, ExtensionStorageSurface as Oo, toWireMessages as Op, RunSummaryByModel as Or, matchesAllowedTool as Os, EvalMetric as Ot, sanitizeModelChain as Ou, OAuthCallbackHandle as P, ExtensionConfigItem as Pa, CompletionContext as Pc, McpServerConfig as Pd, hydrateReadStateFromSessionAsync as Pf, Agent as Pi, SchemaInput as Pl, anthropic as Pm, HeadlessOutputFormat as Pn, ExtensionToolRendererRegistration as Po, ToolCall as Pp, RunSummaryValidation as Pr, resolveSkills as Ps, EvalRunSummaryCase as Pt, BUILTIN_PROVIDERS as Pu, cleanupPersistedSession as Q, ExtensionApiVersion as Qa, CommandStepFn as Qc, RetryConfig as Qd, demoteStaleRunningStatus as Qf, ExtensionInstallCandidate as Qi, AgentProfile as Ql, WAIT_TASK_TIMED_OUT_PREFIX as Qn, createExtensionHud as Qo, OpenAICompatHttpError as Qp, CompactPromptTooLongError as Qr, inferSource as Qs, Trajectory as Qt, restoreModelOptions as Qu, LoginMcpServerOptions as R, ExtensionConfigStringItem as Ra, CompletionSubmitContext as Rc, ModelTargetSpec as Rd, SkillConfig as Rf, McpConnector as Ri, zodToJsonSchema as Rl, planAnthropicThinking as Rm, OpenAIChatContentPart as Rn, ExtensionToolVerdict as Ro, XaiParams as Rp, utf8ByteLength as Rr, SKILL_PROVENANCE_FILE as Rs, EvalScorerContext as Rt, ProviderDescriptor as Ru, createMutationValidationHooks as S, parseExtensionScanPathEnv as Sa, DEFAULT_THEME as Sc, AgentStats as Sd, toolOutputBudgetByteLength as Sf, CacheDimensionDiff as Si, QuestionType as Sl, CursorParams as Sm, functionalityMetric as Sn, ExtensionRunTransform as So, filterUnresolvedToolUses as Sp, grep as Sr, defineSkill as Ss, EvalAgentStats as St, buildRunModel as Su, Counter as T, discoverAndBuildExtensionRegistry as Ta, Theme as Tc, ChildRunStats as Td, ToolContext as Tf, diffCacheDimensions as Ti, buildResumedToolResultsTurn as Tl, cerebras as Tm, registerEvalTests as Tn, ExtensionSkillPolicy as To, remintDuplicateToolCallIds as Tp, RunSummary as Tr, SkillValidationIssue as Ts, EvalCaseResult as Tt, filterChainFallbacks as Tu, McpOAuthProvider as U, WireExtensionConfigSchema as Ua, resolveCompletionSubmit as Uc, PromptDocumentPart as Ud, CreateSessionOptions as Uf, ExtensionCatalogPartition as Ui, Logger as Ul, formatHeadlessTurnEvent as Un, ExtensionBannerOptions as Uo, sanitizeToolSchema as Up, selectFilesFromReadState as Ur, SkillInstallResult as Us, EvalWorkspaceSnapshot as Ut, getContextWindow as Uu, McpCredentialEntry as V, StoredExtensionConfigItem as Va, findActiveTrigger as Vc, ProgressNudgeMessage as Vd, SkillSource as Vf, createAgent as Vi, LogRecord as Vl, exitCodeForHeadlessResult as Vn, LoadedExtension as Vo, SchemaSanitizeProfile as Vp, RecentFile as Vr, SkillInstallErrorCode as Vs, EvalWorkspaceFile as Vt, credKeyOf as Vu, McpOAuthProviderOptions as W, clampExtensionConfigNumber as Wa, Command as Wc, PromptImagePart as Wd, Session as Wf, buildExtensionPreset as Wi, LoggingHookSet as Wl, formattedHeadlessTurnEventToJsonl as Wn, ExtensionHud as Wo, sanitizeToolSpecs as Wp, selectFilesFromSession as Wr, SkillInstallSpec as Ws, LlmJudgeOptions as Wt, getModelInfo as Wu, PersistOutcome as X, toWireConfigSchema as Xa, CommandStep as Xc, ResolveContentRef as Xd, currentExtensionSession as Xf, partitionExtensionCatalog as Xi, jsonSink as Xl, transcriptToProviderMessages as Xn, ExtensionNotifyTone as Xo, OAITool as Xp, compactConversation as Xr, discoverSkills as Xs, RegisterEvalTestsOptions as Xt, openrouterDescriptor as Xu, PersistInput as Y, resolveExtensionConfigValue as Ya, CommandOutputBlock as Yc, RepeatGuardToolMatcher as Yd, createSession as Yf, mergeContributions as Yi, createLoggingHooks as Yl, transcriptToOpenAIMessages as Yn, ExtensionNotifyOptions as Yo, OAIMessage as Yp, CompactStartEvent as Yr, SourcedScanPath as Ys, MetricStats as Yt, openaiDescriptor as Yu, buildPersistedStub as Z, EMPTY_EXTENSION_REGISTRY as Za, CommandStepContext as Zc, ResolveContentRefBlock as Zd, deleteExtensionSessionState as Zf, ExtensionFetchResult as Zi, AgentAccent as Zl, writeFile as Zn, ExtensionStatusOptions as Zo, OpenAICompatAuthHeader as Zp, CompactInvalidInputError as Zr, getDefaultScanPaths as Zs, ReusableExecutionContext as Zt, piIdOf as Zu, MutationValidationFailure as _, ExtensionScanEntry as _a, resultToString as _c, ContextUsageSplit as _d, ToolResultMetadata as _f, summaryToTurn as _i, Question as _l, mapCodexStopReason as _m, fileExistsOneOf as _n, ExtensionPaths as _o, TurnInterruptionState as _p, readFile as _r, isSpawnTool as _s, EvalAgent as _t, SessionMeta as _u, basicTools as a, ExtensionInstallSource as aa, ActiveSkill as ac, ContextBreakdown as ad, SpawnHookContext as af, buildCompactPrompt as ai, CreateInteractionToolsOptions as al, buildAssistantContent as am, clearRegisteredEvals as an, ExtensionCustomRendererEntry as ao, createMemoryStore as ap, ToolSearchToolOptions as ar, ExtensionWorkspaceSurface as as, TOOL_USE_SKIPPED_MESSAGE as at, PLAN_AGENT as au, MutationValidationResult as b, inlineLoadedExtension as ba, ChipColor as bc, AgentClock as bd, TurnFinishReason as bf, generateStructuredData as bi, QuestionRequest as bl, LocalParams as bm, formatEvalRunSummary as bn, ExtensionProviderMiddleware as bo, ensureEndsWithUserMessage as bp, InteractionToolOptions as br, formatModelLine as bs, EvalAgentRunResult as bt, ToolCallDisplay as bu, StartSpan as c, fetchExtensionSource as ca, SkillActivationStateOptions as cc, ContextBreakdownOptions as cd, ToolBatchExecutor as cf, buildTailCompactPrompt as ci, InteractionsActions as cl, formatTools as cm, createEvalRunReporter as cn, ExtensionGuiPanel as co, createFileMapStore as cp, createSkillsUseTool as cr, ChildAgent as cs, ExtensionEditMarker as ct, singleAgentRegistry as cu, TracingHooksOptions as d, parseExtensionInstallSource as da, McpConnection as dc, ContextExactCounts as dd, ToolResultAudioContent as df, CompactScope as di, PendingInteractionEntry as dl, openaiCompat as dm, defineMetrics as dn, ExtensionKeybindingDispatchContext as do, PairingRepair as dp, SkillsReadToolOptions as dr, SpawnToolOptions as ds, extensionDirForCwd as dt, EditOutcome as du, ExtensionInstallErrorCode as ea, parseSkillFile as ec, AutoCompactDecision as ed, SessionContentBlock as ef, CompactDirection as ei, executeCommand as el, OpenAICompatStreamError as em, TrajectoryStepKind as en, ExtensionCapability as eo, loadSession as ep, ValidationResult as er, ExtensionHostRuntimeImpl as es, resolvePersistDir as et, BUILD_AGENT as eu, createTracingHooks as f, readExtensionInstallProvenance as fa, attachStderrWarnPump as fc, ContextExtensionRow as fd, ToolResultContent as ff, CompactionSlice as fi, PlanDecision as fl, toOAIMessages as fm, efficiencyMetricValues as fn, ExtensionManifest as fo, PairingRepairMode as fp, createSkillsReadTool as fr, SpawnToolState as fs, extensionScaffold as ft, EditOutcomeKind as fu, MutationValidationBatch as g, ENTRY_CANDIDATES as ga, normalizeMcpServers as gc, ContextSnapshot as gd, ToolResultImageRefContent as gf, stripImagesFromTurns as gi, PlanStep as gl, classifyOpenAIError as gm, fileExists as gn, ExtensionOrderedContribution as go, ToWireMessagesOptions as gp, shell as gr, createSpawnTool as gs, EFFICIENCY_METRICS as gt, Screen as gu, statsByModel as h, registerExtensionHostModules as ha, normalizeMcpBlocks as hc, ContextMcpGroup as hd, ToolResultImageContent as hf, sliceForCompaction as hi, PlanResponse as hl, OpenAIParams as hm, fileContentQuality as hn, ExtensionModalNode as ho, TOOL_USE_INTERRUPTED_MARKER as hp, createShellTool as hr, SubagentRegistry as hs, CreateEvalAgentOptions as ht, Picked as hu, _default as i, ExtensionInstallScope as ia, ActivationVia as ic, shouldAutoCompact as id, SessionTurn as if, TRAILER as ii, ConfirmQuestion as il, assistantMessage as im, buildTrajectory as in, ExtensionCustomRenderer as io, createRemoteStore as ip, LazyToolEntry as ir, ExtensionWorkspacePair as is, TOOL_USE_CANCELLED_MESSAGE as it, DEFAULT_PERSIST_EXCLUDE_TOOLS as iu, MetricsHooksOptions as j, ExtensionConfigCategory as ja, CompletionState as jc, DedupHasher as jd, getReadState as jf, normalizeShellCommand as ji, useInteractionsActions as jl, AnthropicContextManagement as jm, HeadlessErrorInfo as jn, ExtensionToolRenderProps as jo, StreamCallbacks as jp, RunSummaryError as jr, validateResourcePathReal as js, EvalRunReporter as jt, ProviderAuth as ju, MetricAttributes as k, defineExtension as ka, resolveChipColor as kc, CompactStartHookContext as kd, ReadStateEntry as kf, defaultRepeatGuardNormalize as ki, pendingInteractionsFromTurns as kl, ArceeParams as km, FormattedHeadlessResult as kn, ExtensionToolCatalogTransform as ko, Provider as kp, RunSummaryCollector as kr, parseAllowedToolPattern as ks, EvalMetricError as kt, toggleChainEntry as ku, TracingConventions as l, installExtensionFromSpec as la, createSkillActivationState as lc, ContextCategory as ld, ToolHookContext as lf, buildUpToCompactPrompt as li, InteractionsProvider as ll, mapOAIFinishReason as lm, createReusableExecutionContext as ln, ExtensionGuiSurface as lo, EnsureToolResultPairingOptions as lp, SkillsRunScriptToolOptions as lr, ExtensionSubagentDef as ls, ZIDANE_EXTENSION_SKILL_NAME as lt, EditDiffDisplay as lu, flattenTurns as m, updateInstalledExtension as ma, deriveMcpToolMeta as mc, ContextItem as md, ToolResultDocumentRefContent as mf, anchorPreviewFor as mi, PlanRequest as ml, userMessage as mm, fileContains as mn, ExtensionModal as mo, SYNTHETIC_TOOL_RESULT_PLACEHOLDER as mp, CreateShellToolOptions as mr, SubagentOverride as ms, withZidaneExtensionSkill as mt, Owner as mu, composePresets as n, ExtensionInstallProvenance as na, IMPLICITLY_ALLOWED_SKILL_TOOLS as nc, OUTPUT_RESERVE_TOKENS as nd, SessionHookContext as nf, CompactPromptOptions as ni, ASK_USER_TOOL as nl, applyOAICacheBreakpoints as nm, buildEvalRunSummary as nn, ExtensionContextTransform as no, withExtensionSession as np, TailTruncateOptions as nr, ExtensionSessionSummary as ns, INTERRUPT_MESSAGE_FOR_TOOL_USE as nt, DEFAULT_AGENT_ID as nu, GEN_AI_ATTRIBUTES as o, InstallExtensionFromSpecOptions as oa, DeactivationReason as oc, ContextBreakdownContributionContext as od, StreamHookContext as of, buildFromCompactPrompt as oi, InteractionRequest as ol, classifyOpenAICompatError as om, computeEvalTagScores as on, ExtensionDefinition as oo, FileMapAdapter as op, createToolSearchTool as or, createExtensionHostRuntimeBridge as os, applyCompactSummaryCutoff as ot, accentColor as ou, ModelUsage as p, removeInstalledExtension as pa, connectMcpServers as pc, ContextExtensionSection as pd, ToolResultDocumentContent as pf, SummaryToTurnInput as pi, PlanPayload as pl, toolResultsMessage as pm, emitEfficiencyMetrics as pn, ExtensionMcpConfigTransform as po, RemintResult as pp, shellKill as pr, SubagentDef as ps, resolveExtensionDocsDir as pt, EditPayload as pu, PERSISTED_STUB_PREFIX as q, isValidExtensionConfigValue as qa, CommandGenerateDataOptions as qc, PromptVideoPart as qd, SessionRun as qf, disposeExtensionRegistry as qi, consoleSink as ql, providerTranscriptFormatForProvider as qn, ExtensionHudWriter as qo, openrouter as qp, CompactOptions as qr, parseSkillInstallSpec as qs, MetricSpec as qt, modelSupportsReasoning as qu, definePreset as r, ExtensionInstallResult as ra, installAllowedToolsGate as rc, effectiveContextWindow as rd, SessionMessage as rf, NO_TOOLS_PREAMBLE as ri, AnswerValue as rl, applyOAIToolCacheBreakpoint as rm, buildRegisteredEvals as rn, ExtensionContributions as ro, RemoteStoreOptions as rp, tailTruncate as rr, ExtensionSessionsSurface as rs, SHELL_CASCADE_CANCEL_MESSAGE as rt, DEFAULT_BUDGET_EXCLUDE_TOOLS as ru, Span as s, InstalledExtensionTargetOptions as sa, SkillActivationState as sc, ContextBreakdownContributor as sd, ThinkingLevel as sf, buildFullCompactPrompt as si, InteractionResponse as sl, consumeSSE as sm, createEvalAgent as sn, ExtensionFooterHint as so, FileMapStoreOptions as sp, SkillsUseToolOptions as sr, createWorkspaceSurface as ss, EXTENSION_EDIT_METADATA_KEY as st, resolveAgentId as su, Preset as t, ExtensionInstallIo as ta, buildCatalog as tc, AutoCompactInput as td, SessionEndStatus as tf, CompactPromptBuilder as ti, parseCommandInvocation as tl, TOOL_RESULTS_TAG as tm, artifactPath as tn, ExtensionContext as to, setExtensionSessionState as tp, validateToolArgs as tr, ExtensionRuntimeSurface as ts, resolveTasksDir as tt, BUILTIN_AGENTS as tu, TracingHookSet as u, listExtensionCandidates as ua, ConnectMcpServersOptions as uc, ContextCategoryId as ud, ToolOutcome as uf, ANCHOR_PREVIEW_MAX_CHARS as ui, PRESENT_PLAN_TOOL as ul, openAICompatPromptMessage as um, defineEval as un, ExtensionKeybinding as uo, ORPHANED_TOOL_RESULT_MARKER as up, createSkillsRunScriptTool as ur, SpawnTool as us, buildZidaneExtensionSkill as ut, EditHunk as uu, MutationValidationHooksOptions as v, defaultExtensionScanPaths as va, wrapDiscoveredMcpTools as vc, buildContextBreakdown as vd, ToolResultTextContent as vf, truncateHeadForPtlRetry as vi, QuestionChoice as vl, openai as vm, finalizeEvalMetrics as vn, ExtensionPermission as vo, autoDetectAndConvert as vp, multiEdit as vr, SpawnModelEntry as vs, EvalAgentMcpServers as vt, Settings as vu, resolveModelTargets as w, DiscoverAndBuildExtensionRegistryOptions as wa, SyntaxTokenStyle as wc, AutoCompactConfig as wd, toolResultToText as wf, CacheDimensionSnapshot as wi, TextQuestion as wl, CerebrasParams as wm, normalizeMetric as wn, ExtensionSessionStateSurface as wo, fromOpenAI as wp, edit as wr, writeSkillsToDisk as ws, EvalCaseOptions as wt, chainsEqual as wu, SuccessfulMutationOutcome as x, isExtensionDefinition as xa, ChipColorMap as xc, AgentRunOptions as xd, TurnUsage as xf, CacheBreakLoggerOptions as xi, QuestionResponse as xl, local as xm, formatTrajectoryLine as xn, ExtensionRegistry as xo, ensureToolResultPairing as xp, createInteractionTool as xr, matchModelEntries as xs, EvalAgentRunStats as xt, ModelChainEntry as xu, MutationValidationMutation as y, discoverExtensions as ya, BUILTIN_THEMES as yc, AgentBehavior as yd, ToolResultVideoContent as yf, GenerateStructuredDataOptions as yi, QuestionPayload as yl, toPiMessages as ym, formatEvalCaseSummary as yn, ExtensionPromptTransform as yo, detectTurnInterruption as yp, listFiles as yr, createModelSearchTool as ys, EvalAgentRunOptions as yt, StreamEvent as yu, LoginMcpServerResult as z, ExtensionConfigSurface as za, applyInsert as zc, OAuthRefreshHookContext as zd, SkillDiagnostic as zf, McpToolMeta as zi, ConsoleSinkOptions as zl, resolveAnthropicBetas as zm, OpenAIChatMessage as zn, ExtensionTuiSurface as zo, xai as zp, PostCompactAttachments as zr, SkillInstallCandidate as zs, EvalTestRunner as zt, anthropicDescriptor as zu };
15340
+ //# sourceMappingURL=index-BGpM2YaU.d.ts.map