eve 1.0.0 → 1.0.1

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 (1929) hide show
  1. package/CHANGELOG.md +33 -373
  2. package/README.md +5 -1
  3. package/dist/src/channel/auth/oidc.js +1 -1
  4. package/dist/src/channel/channel-address.d.ts +13 -2
  5. package/dist/src/channel/channel-address.js +1 -1
  6. package/dist/src/cli/commands/init-git.js +1 -1
  7. package/dist/src/cli/commands/init-onboarding.js +1 -0
  8. package/dist/src/cli/commands/init.js +1 -1
  9. package/dist/src/cli/commands/registry-setup-command.js +1 -1
  10. package/dist/src/cli/dev/command-options.js +1 -1
  11. package/dist/src/cli/dev/command.js +1 -1
  12. package/dist/src/cli/dev/run-interactive-ui.js +1 -1
  13. package/dist/src/cli/dev/tui/message-queue.js +2 -2
  14. package/dist/src/cli/dev/tui/prompt-command-handler.js +1 -1
  15. package/dist/src/cli/dev/tui/run-setup-flow-command.js +1 -0
  16. package/dist/src/cli/dev/tui/runner.js +3 -3
  17. package/dist/src/cli/dev/tui/setup-commands.js +1 -1
  18. package/dist/src/cli/dev/tui/setup-panel.js +1 -1
  19. package/dist/src/cli/dev/tui/startup-onboarding.js +1 -0
  20. package/dist/src/cli/dev/tui/startup.js +1 -1
  21. package/dist/src/cli/dev/tui/terminal-renderer.js +10 -10
  22. package/dist/src/cli/dev/tui/tui.js +1 -1
  23. package/dist/src/cli/run.js +1 -1
  24. package/dist/src/compiled/.vendor-stamp.json +17 -5
  25. package/dist/src/compiled/@ai-sdk/anthropic/index.js +2 -2
  26. package/dist/src/compiled/@ai-sdk/google/index.js +6 -6
  27. package/dist/src/compiled/@ai-sdk/mcp/index.js +1 -1
  28. package/dist/src/compiled/@ai-sdk/openai/index.js +4 -4
  29. package/dist/src/compiled/@ai-sdk/otel/index.js +3 -3
  30. package/dist/src/compiled/@ai-sdk/provider/index.js +1 -1
  31. package/dist/src/compiled/@chat-adapter/slack/index.js +46 -51
  32. package/dist/src/compiled/@eve/catalog/index.js +1 -1
  33. package/dist/src/compiled/@opentelemetry/api/index.js +1 -1
  34. package/dist/src/compiled/@opentelemetry/otlp-transformer/index.js +1 -1
  35. package/dist/src/compiled/@photon-ai/chat-adapter-imessage/index.js +61 -155
  36. package/dist/src/compiled/@vercel/agent-runs/delegation.js +1 -1
  37. package/dist/src/compiled/@vercel/agent-runs/index.js +1 -1
  38. package/dist/src/compiled/@vercel/agent-runs/otel.js +1 -1
  39. package/dist/src/compiled/@vercel/blob/index.js +11 -36
  40. package/dist/src/compiled/@vercel/connect/index.js +1 -63
  41. package/dist/src/compiled/@vercel/oidc/index.js +1 -63
  42. package/dist/src/compiled/@vercel/otel/index.js +1 -1
  43. package/dist/src/compiled/@vercel/queue/index.js +12 -43
  44. package/dist/src/compiled/@vercel/sandbox/index.js +13 -114
  45. package/dist/src/compiled/@vercel/schedules/index.js +2 -27
  46. package/dist/src/compiled/@workflow/core/index.js +1 -1
  47. package/dist/src/compiled/@workflow/core/private.js +1 -1
  48. package/dist/src/compiled/@workflow/core/runtime/helpers.js +1 -1
  49. package/dist/src/compiled/@workflow/core/runtime.js +1 -1
  50. package/dist/src/compiled/@workflow/core/serialization.js +1 -1
  51. package/dist/src/compiled/@workflow/core/workflow.js +1 -1
  52. package/dist/src/compiled/@workflow/world/index.js +1 -1
  53. package/dist/src/compiled/@workflow/world-local/index.js +6 -6
  54. package/dist/src/compiled/@workflow/world-vercel/index.js +36 -1
  55. package/dist/src/compiled/_chunks/{workflow/attribute-changes-BCNqKjr-.js → node/attribute-changes-9TDYamoB.js} +2 -2
  56. package/dist/src/compiled/_chunks/node/{auth-VDi2758t.js → auth-C6x8BkZ1.js} +2 -2
  57. package/dist/src/compiled/_chunks/node/chunk-5MU5Z6L3-DdGH_80b.js +1 -0
  58. package/dist/src/compiled/_chunks/node/chunk-WVKEO4WS-CcXj6Pbu.js +1 -0
  59. package/dist/src/compiled/_chunks/node/cjs-rUgqAJxb.js +1 -0
  60. package/dist/src/compiled/_chunks/node/delegation-nXIIGof2.js +1 -0
  61. package/dist/src/compiled/_chunks/node/delivery-ZirLueQB.js +1 -0
  62. package/dist/src/compiled/_chunks/node/dist-Ar8FFwah.js +1 -0
  63. package/dist/src/compiled/_chunks/node/dist-BlVGA8Bc.js +2 -0
  64. package/dist/src/compiled/_chunks/{workflow/dist-DkHcYt13.js → node/dist-C-W-BUim.js} +4 -4
  65. package/dist/src/compiled/_chunks/node/dist-CJqVJRdy.js +1 -0
  66. package/dist/src/compiled/_chunks/node/dist-Dff3FJd4.js +2 -0
  67. package/dist/src/compiled/_chunks/node/dist-SjWKZevK.js +1 -0
  68. package/dist/src/compiled/_chunks/node/dist-Y7k9L0_i.js +4 -0
  69. package/dist/src/compiled/_chunks/node/esm-BQbQSdEk.js +1 -0
  70. package/dist/src/compiled/_chunks/node/esm-V84xqwqm.js +7 -0
  71. package/dist/src/compiled/_chunks/{workflow/experimental-extraction-BE-Zv-lu.js → node/experimental-extraction-BddLppMC.js} +2 -2
  72. package/dist/src/compiled/_chunks/node/functions-CrSNYLMQ.js +2 -0
  73. package/dist/src/compiled/_chunks/{workflow/getMachineId-bsd-BDZRITBA-ByMis12M.js → node/getMachineId-bsd-BDZRITBA-DLL53RiE.js} +1 -1
  74. package/dist/src/compiled/_chunks/{workflow/getMachineId-darwin-YASTVJY7-BVAknd8k.js → node/getMachineId-darwin-YASTVJY7-Bt7YOVRS.js} +1 -1
  75. package/dist/src/compiled/_chunks/node/getMachineId-linux-NDQO5XIJ-35soE6HM.js +1 -0
  76. package/dist/src/compiled/_chunks/node/getMachineId-unsupported-4HKOBEHB-BIvYzL3H.js +1 -0
  77. package/dist/src/compiled/_chunks/{workflow/getMachineId-win-5LM2K5X3-Cj6CA3It.js → node/getMachineId-win-5LM2K5X3-DjHieqnK.js} +1 -1
  78. package/dist/src/compiled/_chunks/{workflow/helpers-D1eianSs.js → node/helpers-D0wk1DpF.js} +2 -2
  79. package/dist/src/compiled/_chunks/node/lib-kYMsDr_I.js +1 -0
  80. package/dist/src/compiled/_chunks/node/mcp-CpcK9m5J.js +5 -0
  81. package/dist/src/compiled/_chunks/node/ms-Cgt_-jny.js +1 -0
  82. package/dist/src/compiled/_chunks/node/node-http-BJoNWVEH.js +1 -0
  83. package/dist/src/compiled/_chunks/node/picocolors-BvkTgkT5.js +1 -0
  84. package/dist/src/compiled/_chunks/node/resume-hook-HOi86Mpt.js +1 -0
  85. package/dist/src/compiled/_chunks/node/resume-hook-MNXqhfUQ.js +1 -0
  86. package/dist/src/compiled/_chunks/node/retry-BsKFOQYI.js +1 -0
  87. package/dist/src/compiled/_chunks/node/run-iZaWiaIW.js +34 -0
  88. package/dist/src/compiled/_chunks/node/serialization-SOBM-hqQ.js +12 -0
  89. package/dist/src/compiled/_chunks/{workflow/signal-exit-fprSURbq.js → node/signal-exit-DUUCjAID.js} +1 -1
  90. package/dist/src/compiled/_chunks/node/sleep-kn6Idr6A.js +1 -0
  91. package/dist/src/compiled/_chunks/node/suspension-hooks-DGVf4ZTu.js +3 -0
  92. package/dist/src/compiled/_chunks/node/time-DlDfzITA.js +1 -0
  93. package/dist/src/compiled/_chunks/node/token-Bx_BK6UD.js +1 -0
  94. package/dist/src/compiled/_chunks/node/{token-DGjjdToG.js → token-C3MqBzSe.js} +1 -1
  95. package/dist/src/compiled/_chunks/node/token-C8MvBi8U.js +1 -0
  96. package/dist/src/compiled/_chunks/node/token-DCqq5r4M.js +1 -0
  97. package/dist/src/compiled/_chunks/node/token-d3oeMwv2.js +1 -0
  98. package/dist/src/compiled/_chunks/node/token-util-5HFX0QsS.js +1 -0
  99. package/dist/src/compiled/_chunks/node/token-util-B-3umg_h.js +59 -0
  100. package/dist/src/compiled/_chunks/node/token-util-BdFM23p-.js +1 -0
  101. package/dist/src/compiled/_chunks/node/token-util-Bga2H4s7.js +1 -0
  102. package/dist/src/compiled/_chunks/node/token-util-C53yPU2Q.js +1 -0
  103. package/dist/src/compiled/_chunks/node/token-util-CMdCnQTY.js +1 -0
  104. package/dist/src/compiled/_chunks/node/token-util-DRfyDqhP.js +59 -0
  105. package/dist/src/compiled/_chunks/node/token-util-DdfuyqVB.js +1 -0
  106. package/dist/src/compiled/_chunks/node/token-util-S816eCve.js +22 -0
  107. package/dist/src/compiled/_chunks/node/token-util-hJVPA0w0.js +22 -0
  108. package/dist/src/compiled/_chunks/node/undici-CXX9Qrag.js +95 -0
  109. package/dist/src/compiled/_chunks/node/websocket-server-Usb_vYYJ.js +6 -0
  110. package/dist/src/compiled/_chunks/node/wrapper-B8sMmFpP.js +1 -0
  111. package/dist/src/compiled/_chunks/node/wrapper-DTBQ2yNI.js +1 -0
  112. package/dist/src/compiled/_chunks/node/ws-transport-BWQwR7zD.js +1 -0
  113. package/dist/src/compiled/_chunks/node/ws-transport-Dah44MMA.js +3 -0
  114. package/dist/src/compiled/jose/index.js +1 -1
  115. package/dist/src/eve-channel/request.js +1 -1
  116. package/dist/src/execution/dynamic-workflow/tool.js +1 -1
  117. package/dist/src/execution/session-inbox/handle.js +1 -1
  118. package/dist/src/execution/session-inbox/owner.js +1 -1
  119. package/dist/src/execution/session-inbox/resume.js +1 -1
  120. package/dist/src/execution/tools/agent-router-workflow.js +1 -1
  121. package/dist/src/harness/provider-tools.js +1 -1
  122. package/dist/src/harness/step/prompt.js +1 -1
  123. package/dist/src/instrumentation/decide.js +1 -1
  124. package/dist/src/instrumentation/dispatch.js +1 -1
  125. package/dist/src/instrumentation/lifecycle.d.ts +10 -1
  126. package/dist/src/instrumentation/runtime.js +1 -1
  127. package/dist/src/internal/application/stamped-package-version.js +1 -1
  128. package/dist/src/public/channels/slack/attachments.js +1 -1
  129. package/dist/src/public/channels/slack/connections.js +1 -1
  130. package/dist/src/public/channels/slack/renderers.d.ts +4 -2
  131. package/dist/src/public/channels/slack/slackChannel.js +1 -1
  132. package/dist/src/runtime/subagents/workflow.js +1 -1
  133. package/dist/src/setup/primitives/pm/npm.js +1 -1
  134. package/dist/src/setup/primitives/pm/run.js +1 -1
  135. package/dist/src/setup/registry-setup-client.js +2 -2
  136. package/dist/src/setup/registry-setup-protocol.js +1 -1
  137. package/dist/src/setup/scaffold/create/project.js +1 -1
  138. package/dist/src/setup/scaffold/update/channels.js +1 -1
  139. package/dist/src/shared/forwarded-trace-policy.d.ts +2 -0
  140. package/dist/src/shared/forwarded-trace-policy.js +1 -1
  141. package/dist/src/tools/provided/ask-question-workflow.js +1 -1
  142. package/dist/src/tools/provided/sleep-workflow.js +1 -1
  143. package/dist/src/tools/provided/web-search.d.ts +2 -2
  144. package/dist/src/tools/provided/web-search.js +1 -1
  145. package/docs/channels/slack/reference.mdx +1 -1
  146. package/docs/concepts/built-in-tools.md +3 -3
  147. package/docs/getting-started.mdx +5 -1
  148. package/docs/guides/client/index.mdx +1 -1
  149. package/docs/reference/typescript-api.md +1 -1
  150. package/package.json +3 -7
  151. package/dist/src/acp/adapter.d.ts +0 -28
  152. package/dist/src/acp/line-limit.d.ts +0 -3
  153. package/dist/src/acp/server.d.ts +0 -21
  154. package/dist/src/ai/decision-adapter.d.ts +0 -15
  155. package/dist/src/approval/agent.d.ts +0 -24
  156. package/dist/src/approval/requester-only.d.ts +0 -11
  157. package/dist/src/channel/adapter-context.d.ts +0 -9
  158. package/dist/src/channel/auth/http-basic.d.ts +0 -8
  159. package/dist/src/channel/auth/jwt-ecdsa.d.ts +0 -8
  160. package/dist/src/channel/auth/jwt-hmac.d.ts +0 -8
  161. package/dist/src/channel/auth/oidc.d.ts +0 -8
  162. package/dist/src/channel/auth/result.d.ts +0 -3
  163. package/dist/src/channel/auth/token-claims.d.ts +0 -17
  164. package/dist/src/channel/auth/types.d.ts +0 -108
  165. package/dist/src/channel/auth/vercel-oidc-project.d.ts +0 -12
  166. package/dist/src/channel/conversation-context.d.ts +0 -8
  167. package/dist/src/channel/delivery-idempotency.d.ts +0 -10
  168. package/dist/src/channel/delivery.d.ts +0 -8
  169. package/dist/src/channel/http.d.ts +0 -29
  170. package/dist/src/channel/inactive-prompt.d.ts +0 -46
  171. package/dist/src/channel/pending-authorization.d.ts +0 -4
  172. package/dist/src/channel/principal-identity.d.ts +0 -11
  173. package/dist/src/channel/relay-event.d.ts +0 -11
  174. package/dist/src/channel/resolved-prompt.d.ts +0 -22
  175. package/dist/src/channel/route-args.d.ts +0 -35
  176. package/dist/src/channel/schedule.d.ts +0 -78
  177. package/dist/src/channel/send-input.d.ts +0 -10
  178. package/dist/src/channel/session-callback.d.ts +0 -11
  179. package/dist/src/channel/tool-eligibility.d.ts +0 -38
  180. package/dist/src/cli/acp/command.d.ts +0 -24
  181. package/dist/src/cli/agent-command.d.ts +0 -6
  182. package/dist/src/cli/agent-detection.d.ts +0 -7
  183. package/dist/src/cli/application-command.d.ts +0 -13
  184. package/dist/src/cli/application-root.d.ts +0 -5
  185. package/dist/src/cli/banner.d.ts +0 -11
  186. package/dist/src/cli/commands/agent-instructions.d.ts +0 -34
  187. package/dist/src/cli/commands/build.d.ts +0 -15
  188. package/dist/src/cli/commands/deploy.d.ts +0 -27
  189. package/dist/src/cli/commands/extension-build.d.ts +0 -9
  190. package/dist/src/cli/commands/extension-init.d.ts +0 -26
  191. package/dist/src/cli/commands/info.d.ts +0 -68
  192. package/dist/src/cli/commands/init-agent-workspace.d.ts +0 -18
  193. package/dist/src/cli/commands/init-git.d.ts +0 -17
  194. package/dist/src/cli/commands/init-install.d.ts +0 -11
  195. package/dist/src/cli/commands/init-project.d.ts +0 -44
  196. package/dist/src/cli/commands/init-recovery.d.ts +0 -3
  197. package/dist/src/cli/commands/init-target.d.ts +0 -20
  198. package/dist/src/cli/commands/init-telemetry.d.ts +0 -7
  199. package/dist/src/cli/commands/init.d.ts +0 -28
  200. package/dist/src/cli/commands/integration-connect.d.ts +0 -35
  201. package/dist/src/cli/commands/integration-setup.d.ts +0 -18
  202. package/dist/src/cli/commands/link.d.ts +0 -25
  203. package/dist/src/cli/commands/logs-events.d.ts +0 -38
  204. package/dist/src/cli/commands/logs.d.ts +0 -64
  205. package/dist/src/cli/commands/preconditions.d.ts +0 -22
  206. package/dist/src/cli/commands/register-integration-commands.d.ts +0 -15
  207. package/dist/src/cli/commands/register-project-commands.d.ts +0 -13
  208. package/dist/src/cli/commands/register-registry-commands.d.ts +0 -13
  209. package/dist/src/cli/commands/registry-add-command.d.ts +0 -3
  210. package/dist/src/cli/commands/registry-declared-setups.d.ts +0 -43
  211. package/dist/src/cli/commands/registry-install-transaction.d.ts +0 -10
  212. package/dist/src/cli/commands/registry-metadata.d.ts +0 -99
  213. package/dist/src/cli/commands/registry-pnpm-build-policy-flow.d.ts +0 -30
  214. package/dist/src/cli/commands/registry-presentation.d.ts +0 -19
  215. package/dist/src/cli/commands/registry-project.d.ts +0 -23
  216. package/dist/src/cli/commands/registry-recovery.d.ts +0 -20
  217. package/dist/src/cli/commands/registry-setup-command.d.ts +0 -21
  218. package/dist/src/cli/commands/registry.d.ts +0 -98
  219. package/dist/src/cli/commands/set.d.ts +0 -18
  220. package/dist/src/cli/commands/setup-answers.d.ts +0 -2
  221. package/dist/src/cli/commands/setup-headless.d.ts +0 -97
  222. package/dist/src/cli/commands/trace-detail.d.ts +0 -34
  223. package/dist/src/cli/commands/trace.d.ts +0 -18
  224. package/dist/src/cli/commands/vercel-non-interactive.d.ts +0 -37
  225. package/dist/src/cli/dev/boot-progress.d.ts +0 -3
  226. package/dist/src/cli/dev/command-options.d.ts +0 -27
  227. package/dist/src/cli/dev/command.d.ts +0 -34
  228. package/dist/src/cli/dev/console-records-preload.d.ts +0 -1
  229. package/dist/src/cli/dev/console-records.d.ts +0 -17
  230. package/dist/src/cli/dev/diagnostic-dump.d.ts +0 -58
  231. package/dist/src/cli/dev/diagnostic-sink.d.ts +0 -39
  232. package/dist/src/cli/dev/diagnostics.d.ts +0 -42
  233. package/dist/src/cli/dev/environment.d.ts +0 -20
  234. package/dist/src/cli/dev/local-server-child.d.ts +0 -1
  235. package/dist/src/cli/dev/local-server-cleanup.d.ts +0 -5
  236. package/dist/src/cli/dev/local-server-process.d.ts +0 -35
  237. package/dist/src/cli/dev/remote-print.d.ts +0 -8
  238. package/dist/src/cli/dev/run-interactive-ui.d.ts +0 -22
  239. package/dist/src/cli/dev/tui/agent-header.d.ts +0 -15
  240. package/dist/src/cli/dev/tui/argument-typeahead.d.ts +0 -36
  241. package/dist/src/cli/dev/tui/blocks.d.ts +0 -148
  242. package/dist/src/cli/dev/tui/clipboard.d.ts +0 -17
  243. package/dist/src/cli/dev/tui/command-typeahead.d.ts +0 -54
  244. package/dist/src/cli/dev/tui/conversation-view.d.ts +0 -59
  245. package/dist/src/cli/dev/tui/dev-rebuild-status.d.ts +0 -22
  246. package/dist/src/cli/dev/tui/diagnostic-presentation.d.ts +0 -17
  247. package/dist/src/cli/dev/tui/errors.d.ts +0 -14
  248. package/dist/src/cli/dev/tui/file-content-cache.d.ts +0 -41
  249. package/dist/src/cli/dev/tui/flow-drawer.d.ts +0 -15
  250. package/dist/src/cli/dev/tui/line-diff.d.ts +0 -24
  251. package/dist/src/cli/dev/tui/line-editor.d.ts +0 -124
  252. package/dist/src/cli/dev/tui/log-display-mode.d.ts +0 -7
  253. package/dist/src/cli/dev/tui/markdown.d.ts +0 -14
  254. package/dist/src/cli/dev/tui/mcp-connection-status.d.ts +0 -20
  255. package/dist/src/cli/dev/tui/message-queue.d.ts +0 -33
  256. package/dist/src/cli/dev/tui/prompt-command-handler.d.ts +0 -18
  257. package/dist/src/cli/dev/tui/prompt-commands.d.ts +0 -266
  258. package/dist/src/cli/dev/tui/prompt-placeholder.d.ts +0 -2
  259. package/dist/src/cli/dev/tui/provider-picker.d.ts +0 -65
  260. package/dist/src/cli/dev/tui/question-panel.d.ts +0 -31
  261. package/dist/src/cli/dev/tui/rail.d.ts +0 -15
  262. package/dist/src/cli/dev/tui/registry-result-message.d.ts +0 -27
  263. package/dist/src/cli/dev/tui/remote-auth-result.d.ts +0 -26
  264. package/dist/src/cli/dev/tui/remote-auth.d.ts +0 -33
  265. package/dist/src/cli/dev/tui/remote-connection-probe.d.ts +0 -12
  266. package/dist/src/cli/dev/tui/remote-connection-types.d.ts +0 -69
  267. package/dist/src/cli/dev/tui/remote-connection.d.ts +0 -3
  268. package/dist/src/cli/dev/tui/remote-startup.d.ts +0 -10
  269. package/dist/src/cli/dev/tui/runner.d.ts +0 -322
  270. package/dist/src/cli/dev/tui/setup-commands.d.ts +0 -72
  271. package/dist/src/cli/dev/tui/setup-flow.d.ts +0 -133
  272. package/dist/src/cli/dev/tui/setup-issues.d.ts +0 -66
  273. package/dist/src/cli/dev/tui/setup-panel.d.ts +0 -182
  274. package/dist/src/cli/dev/tui/setup-selection-input.d.ts +0 -52
  275. package/dist/src/cli/dev/tui/startup.d.ts +0 -20
  276. package/dist/src/cli/dev/tui/status-line.d.ts +0 -39
  277. package/dist/src/cli/dev/tui/stranded-session.d.ts +0 -9
  278. package/dist/src/cli/dev/tui/stream-format.d.ts +0 -158
  279. package/dist/src/cli/dev/tui/target.d.ts +0 -11
  280. package/dist/src/cli/dev/tui/task-activity.d.ts +0 -42
  281. package/dist/src/cli/dev/tui/task-records.d.ts +0 -17
  282. package/dist/src/cli/dev/tui/terminal-background.d.ts +0 -23
  283. package/dist/src/cli/dev/tui/terminal-renderer.d.ts +0 -148
  284. package/dist/src/cli/dev/tui/terminal-tool-part.d.ts +0 -2
  285. package/dist/src/cli/dev/tui/test/fake-eve-server.d.ts +0 -34
  286. package/dist/src/cli/dev/tui/test/fake-setup-flow-renderer.d.ts +0 -2
  287. package/dist/src/cli/dev/tui/test/index.d.ts +0 -15
  288. package/dist/src/cli/dev/tui/test/mock-terminal.d.ts +0 -51
  289. package/dist/src/cli/dev/tui/theme.d.ts +0 -127
  290. package/dist/src/cli/dev/tui/tool-block-groups.d.ts +0 -38
  291. package/dist/src/cli/dev/tui/tool-format.d.ts +0 -31
  292. package/dist/src/cli/dev/tui/tool-presentation.d.ts +0 -95
  293. package/dist/src/cli/dev/tui/tool-rows.d.ts +0 -16
  294. package/dist/src/cli/dev/tui/traces/trace-content.d.ts +0 -24
  295. package/dist/src/cli/dev/tui/traces/trace-conversation.d.ts +0 -61
  296. package/dist/src/cli/dev/tui/traces/trace-store.d.ts +0 -27
  297. package/dist/src/cli/dev/tui/traces/trace-surfaces.d.ts +0 -40
  298. package/dist/src/cli/dev/tui/traces/trace-view.d.ts +0 -56
  299. package/dist/src/cli/dev/tui/traces/trace-viewer-session.d.ts +0 -55
  300. package/dist/src/cli/dev/tui/traces/trace-viewer-state.d.ts +0 -109
  301. package/dist/src/cli/dev/tui/transcript-parts.d.ts +0 -85
  302. package/dist/src/cli/dev/tui/transcript.d.ts +0 -43
  303. package/dist/src/cli/dev/tui/tui-prompter.d.ts +0 -20
  304. package/dist/src/cli/dev/tui/tui.d.ts +0 -37
  305. package/dist/src/cli/dev/tui/turn-clock.d.ts +0 -21
  306. package/dist/src/cli/dev/tui/types.d.ts +0 -70
  307. package/dist/src/cli/dev/tui/vercel-status.d.ts +0 -44
  308. package/dist/src/cli/dev/tui/vercel-trusted-sources-policy.d.ts +0 -22
  309. package/dist/src/cli/dev/tui/vercel-trusted-sources.d.ts +0 -48
  310. package/dist/src/cli/dev/ui-options.d.ts +0 -22
  311. package/dist/src/cli/dev/url-target.d.ts +0 -15
  312. package/dist/src/cli/dev/url.d.ts +0 -4
  313. package/dist/src/cli/dev/wait-for-ui.d.ts +0 -13
  314. package/dist/src/cli/format-elapsed.d.ts +0 -2
  315. package/dist/src/cli/option-parsers.d.ts +0 -17
  316. package/dist/src/cli/run.d.ts +0 -38
  317. package/dist/src/cli/shutdown.d.ts +0 -25
  318. package/dist/src/cli/telemetry/command.d.ts +0 -9
  319. package/dist/src/cli/telemetry/flush.d.ts +0 -2
  320. package/dist/src/cli/telemetry/identity.d.ts +0 -13
  321. package/dist/src/cli/telemetry/index.d.ts +0 -37
  322. package/dist/src/cli/telemetry/preference.d.ts +0 -10
  323. package/dist/src/cli/ui/alt-screen.d.ts +0 -49
  324. package/dist/src/cli/ui/live-region.d.ts +0 -63
  325. package/dist/src/cli/ui/live-row.d.ts +0 -22
  326. package/dist/src/cli/ui/output.d.ts +0 -48
  327. package/dist/src/cli/ui/progress-pulse.d.ts +0 -10
  328. package/dist/src/cli/ui/terminal-text.d.ts +0 -36
  329. package/dist/src/cli/vercel-service-output.d.ts +0 -4
  330. package/dist/src/client/abort-signal.d.ts +0 -2
  331. package/dist/src/client/agent-base-url.d.ts +0 -4
  332. package/dist/src/client/agent-info-schema.d.ts +0 -1356
  333. package/dist/src/client/agent-stream-follower.d.ts +0 -17
  334. package/dist/src/client/conversation-client.d.ts +0 -51
  335. package/dist/src/client/delivery-events.d.ts +0 -3
  336. package/dist/src/client/file-parts.d.ts +0 -23
  337. package/dist/src/client/health-schema.d.ts +0 -7
  338. package/dist/src/client/messages.d.ts +0 -30
  339. package/dist/src/client/ndjson.d.ts +0 -18
  340. package/dist/src/client/open-stream.d.ts +0 -96
  341. package/dist/src/client/optimistic-message-submissions.d.ts +0 -15
  342. package/dist/src/client/session-controls.d.ts +0 -34
  343. package/dist/src/client/session-event-stream.d.ts +0 -19
  344. package/dist/src/client/session-store-helpers.d.ts +0 -8
  345. package/dist/src/client/stream-version.d.ts +0 -5
  346. package/dist/src/client/url.d.ts +0 -13
  347. package/dist/src/compiled/@agentclientprotocol/sdk/core/app-handlers.d.ts +0 -28
  348. package/dist/src/compiled/@agentclientprotocol/sdk/core/connection-access.d.ts +0 -23
  349. package/dist/src/compiled/@agentclientprotocol/sdk/core/jsonrpc.d.ts +0 -576
  350. package/dist/src/compiled/@agentclientprotocol/sdk/core/stream-limits.d.ts +0 -15
  351. package/dist/src/compiled/@agentclientprotocol/sdk/core/stream.d.ts +0 -33
  352. package/dist/src/compiled/@agentclientprotocol/sdk/index.d.ts +0 -1
  353. package/dist/src/compiled/@agentclientprotocol/sdk/transports/connection.d.ts +0 -273
  354. package/dist/src/compiled/@agentclientprotocol/sdk/v1/schema/guards.gen.d.ts +0 -183
  355. package/dist/src/compiled/@agentclientprotocol/sdk/v1/schema/index.d.ts +0 -33
  356. package/dist/src/compiled/@agentclientprotocol/sdk/v1/schema/types.gen.d.ts +0 -4093
  357. package/dist/src/compiled/@agentclientprotocol/sdk/v1/stable/acp.d.ts +0 -812
  358. package/dist/src/compiled/@ai-sdk/anthropic/index.d.ts +0 -1891
  359. package/dist/src/compiled/@ai-sdk/google/index.d.ts +0 -961
  360. package/dist/src/compiled/@ai-sdk/mcp/index.d.ts +0 -1439
  361. package/dist/src/compiled/@ai-sdk/openai/index.d.ts +0 -2196
  362. package/dist/src/compiled/@ai-sdk/otel/index.d.ts +0 -1059
  363. package/dist/src/compiled/@ai-sdk/provider/index.d.ts +0 -9624
  364. package/dist/src/compiled/@ai-sdk/provider-utils/index.d.ts +0 -3364
  365. package/dist/src/compiled/@cfworker/json-schema/index.d.ts +0 -18
  366. package/dist/src/compiled/@chat-adapter/slack/_chat-adapter-shared.d.ts +0 -10
  367. package/dist/src/compiled/@chat-adapter/slack/_slack-web-api.d.ts +0 -8
  368. package/dist/src/compiled/@chat-adapter/slack/blocks.d.ts +0 -205
  369. package/dist/src/compiled/@chat-adapter/slack/format.d.ts +0 -33
  370. package/dist/src/compiled/@chat-adapter/slack/index.d.ts +0 -1437
  371. package/dist/src/compiled/@chat-adapter/state-memory/index.d.ts +0 -50
  372. package/dist/src/compiled/@chat-adapter/twilio/format.d.ts +0 -12
  373. package/dist/src/compiled/@chat-adapter/twilio/index.d.ts +0 -166
  374. package/dist/src/compiled/@clack/core/index.d.ts +0 -505
  375. package/dist/src/compiled/@modelcontextprotocol/server/index.d.ts +0 -180
  376. package/dist/src/compiled/@opentelemetry/otlp-transformer/index.d.ts +0 -3
  377. package/dist/src/compiled/@vercel/agent-runs/adapters/agent-transport.d.ts +0 -8
  378. package/dist/src/compiled/@vercel/agent-runs/adapters/ai-sdk-payload.d.ts +0 -15
  379. package/dist/src/compiled/@vercel/agent-runs/adapters/ai-sdk-telemetry.d.ts +0 -14
  380. package/dist/src/compiled/@vercel/agent-runs/adapters/otel-error.d.ts +0 -3
  381. package/dist/src/compiled/@vercel/agent-runs/adapters/serialization.d.ts +0 -36
  382. package/dist/src/compiled/@vercel/agent-runs/ai-sdk.d.ts +0 -7
  383. package/dist/src/compiled/@vercel/agent-runs/core/activation.d.ts +0 -3
  384. package/dist/src/compiled/@vercel/agent-runs/core/attributes.d.ts +0 -14
  385. package/dist/src/compiled/@vercel/agent-runs/core/content-policy.d.ts +0 -36
  386. package/dist/src/compiled/@vercel/agent-runs/core/context.d.ts +0 -3
  387. package/dist/src/compiled/@vercel/agent-runs/core/delegation.d.ts +0 -13
  388. package/dist/src/compiled/@vercel/agent-runs/core/snapshot.d.ts +0 -7
  389. package/dist/src/compiled/@vercel/agent-runs/core/span-kinds.d.ts +0 -12
  390. package/dist/src/compiled/@vercel/agent-runs/core/writer.d.ts +0 -15
  391. package/dist/src/compiled/@vercel/agent-runs/delegation.d.ts +0 -2
  392. package/dist/src/compiled/@vercel/agent-runs/otel.d.ts +0 -12
  393. package/dist/src/compiled/@vercel/blob/client.d.ts +0 -488
  394. package/dist/src/compiled/@vercel/blob/create-folder-DoYODb65.d.ts +0 -487
  395. package/dist/src/compiled/@vercel/blob/index.d.ts +0 -633
  396. package/dist/src/compiled/@vercel/connect/authorization-details.d.ts +0 -11
  397. package/dist/src/compiled/@vercel/connect/authorization.d.ts +0 -47
  398. package/dist/src/compiled/@vercel/connect/connector.d.ts +0 -32
  399. package/dist/src/compiled/@vercel/connect/index.d.ts +0 -5
  400. package/dist/src/compiled/@vercel/connect/installation.d.ts +0 -48
  401. package/dist/src/compiled/@vercel/connect/token.d.ts +0 -147
  402. package/dist/src/compiled/@vercel/detect-agent/index.d.ts +0 -20
  403. package/dist/src/compiled/@vercel/oidc/index.d.ts +0 -21
  404. package/dist/src/compiled/@vercel/otel/index.d.ts +0 -76
  405. package/dist/src/compiled/@vercel/queue/index.d.ts +0 -1439
  406. package/dist/src/compiled/@vercel/sandbox/_async-retry.d.ts +0 -8
  407. package/dist/src/compiled/@vercel/sandbox/_workflow-serde.d.ts +0 -5
  408. package/dist/src/compiled/@vercel/sandbox/api-client/api-client.d.ts +0 -1914
  409. package/dist/src/compiled/@vercel/sandbox/api-client/api-error.d.ts +0 -29
  410. package/dist/src/compiled/@vercel/sandbox/api-client/base-client.d.ts +0 -39
  411. package/dist/src/compiled/@vercel/sandbox/api-client/file-writer.d.ts +0 -66
  412. package/dist/src/compiled/@vercel/sandbox/api-client/index.d.ts +0 -2
  413. package/dist/src/compiled/@vercel/sandbox/api-client/validators.d.ts +0 -951
  414. package/dist/src/compiled/@vercel/sandbox/api-client/with-retry.d.ts +0 -10
  415. package/dist/src/compiled/@vercel/sandbox/auth/error.d.ts +0 -15
  416. package/dist/src/compiled/@vercel/sandbox/auth/file.d.ts +0 -18
  417. package/dist/src/compiled/@vercel/sandbox/auth/index.d.ts +0 -6
  418. package/dist/src/compiled/@vercel/sandbox/auth/oauth.d.ts +0 -111
  419. package/dist/src/compiled/@vercel/sandbox/auth/poll-for-token.d.ts +0 -28
  420. package/dist/src/compiled/@vercel/sandbox/auth/project.d.ts +0 -40
  421. package/dist/src/compiled/@vercel/sandbox/command.d.ts +0 -370
  422. package/dist/src/compiled/@vercel/sandbox/constants.d.ts +0 -15
  423. package/dist/src/compiled/@vercel/sandbox/drive.d.ts +0 -201
  424. package/dist/src/compiled/@vercel/sandbox/execution-context.d.ts +0 -116
  425. package/dist/src/compiled/@vercel/sandbox/filesystem.d.ts +0 -258
  426. package/dist/src/compiled/@vercel/sandbox/index.d.ts +0 -15
  427. package/dist/src/compiled/@vercel/sandbox/network-policy.d.ts +0 -200
  428. package/dist/src/compiled/@vercel/sandbox/proxy.d.ts +0 -55
  429. package/dist/src/compiled/@vercel/sandbox/sandbox-user.d.ts +0 -211
  430. package/dist/src/compiled/@vercel/sandbox/sandbox.d.ts +0 -1330
  431. package/dist/src/compiled/@vercel/sandbox/session.d.ts +0 -461
  432. package/dist/src/compiled/@vercel/sandbox/snapshot.d.ts +0 -238
  433. package/dist/src/compiled/@vercel/sandbox/utils/get-credentials.d.ts +0 -21
  434. package/dist/src/compiled/@vercel/sandbox/utils/network-policy.d.ts +0 -27
  435. package/dist/src/compiled/@vercel/sandbox/utils/paginator.d.ts +0 -16
  436. package/dist/src/compiled/@vercel/sandbox/utils/pipe-stdin.d.ts +0 -19
  437. package/dist/src/compiled/@vercel/sandbox/utils/resolveSignal.d.ts +0 -15
  438. package/dist/src/compiled/@vercel/sandbox/utils/sandbox-snapshot.d.ts +0 -11
  439. package/dist/src/compiled/@vercel/sandbox/utils/types.d.ts +0 -11
  440. package/dist/src/compiled/@vercel/schedules/index.d.ts +0 -290
  441. package/dist/src/compiled/@vercel/sdk/index.d.ts +0 -41
  442. package/dist/src/compiled/@workflow/core/_devalue.d.ts +0 -8
  443. package/dist/src/compiled/@workflow/core/_ms.d.ts +0 -4
  444. package/dist/src/compiled/@workflow/core/_quickjs-wasi.d.ts +0 -11
  445. package/dist/src/compiled/@workflow/core/_workflow-serde.d.ts +0 -5
  446. package/dist/src/compiled/@workflow/core/_workflow-utils.d.ts +0 -8
  447. package/dist/src/compiled/@workflow/core/_workflow-vm.d.ts +0 -119
  448. package/dist/src/compiled/@workflow/core/attribute-changes.d.ts +0 -6
  449. package/dist/src/compiled/@workflow/core/capabilities.d.ts +0 -107
  450. package/dist/src/compiled/@workflow/core/capture-stack.d.ts +0 -16
  451. package/dist/src/compiled/@workflow/core/class-serialization.d.ts +0 -63
  452. package/dist/src/compiled/@workflow/core/classify-error.d.ts +0 -35
  453. package/dist/src/compiled/@workflow/core/context-errors.d.ts +0 -27
  454. package/dist/src/compiled/@workflow/core/context-violation-error.d.ts +0 -97
  455. package/dist/src/compiled/@workflow/core/create-hook.d.ts +0 -296
  456. package/dist/src/compiled/@workflow/core/define-hook.d.ts +0 -68
  457. package/dist/src/compiled/@workflow/core/describe-error.d.ts +0 -70
  458. package/dist/src/compiled/@workflow/core/encryption.d.ts +0 -79
  459. package/dist/src/compiled/@workflow/core/events-consumer.d.ts +0 -458
  460. package/dist/src/compiled/@workflow/core/flushable-stream.d.ts +0 -180
  461. package/dist/src/compiled/@workflow/core/global.d.ts +0 -100
  462. package/dist/src/compiled/@workflow/core/index.d.ts +0 -21
  463. package/dist/src/compiled/@workflow/core/log-format.d.ts +0 -29
  464. package/dist/src/compiled/@workflow/core/logger.d.ts +0 -30
  465. package/dist/src/compiled/@workflow/core/private.d.ts +0 -364
  466. package/dist/src/compiled/@workflow/core/replay-divergence.d.ts +0 -25
  467. package/dist/src/compiled/@workflow/core/replay-payload-cache.d.ts +0 -78
  468. package/dist/src/compiled/@workflow/core/runtime/after-terminal-write.d.ts +0 -33
  469. package/dist/src/compiled/@workflow/core/runtime/child-run-completion-notify.d.ts +0 -36
  470. package/dist/src/compiled/@workflow/core/runtime/child-run-completion.d.ts +0 -46
  471. package/dist/src/compiled/@workflow/core/runtime/compute-instance.d.ts +0 -13
  472. package/dist/src/compiled/@workflow/core/runtime/constants.d.ts +0 -321
  473. package/dist/src/compiled/@workflow/core/runtime/delivery.d.ts +0 -270
  474. package/dist/src/compiled/@workflow/core/runtime/deployment-guard.d.ts +0 -107
  475. package/dist/src/compiled/@workflow/core/runtime/dynamic-workflow.d.ts +0 -182
  476. package/dist/src/compiled/@workflow/core/runtime/event-limit-warning.d.ts +0 -32
  477. package/dist/src/compiled/@workflow/core/runtime/get-port-lazy.d.ts +0 -25
  478. package/dist/src/compiled/@workflow/core/runtime/get-world-lazy.d.ts +0 -23
  479. package/dist/src/compiled/@workflow/core/runtime/helpers.d.ts +0 -549
  480. package/dist/src/compiled/@workflow/core/runtime/hook-creation.d.ts +0 -45
  481. package/dist/src/compiled/@workflow/core/runtime/hook-wake.d.ts +0 -124
  482. package/dist/src/compiled/@workflow/core/runtime/invocations.d.ts +0 -35
  483. package/dist/src/compiled/@workflow/core/runtime/lifecycle-hooks.d.ts +0 -97
  484. package/dist/src/compiled/@workflow/core/runtime/out-of-band-observation.d.ts +0 -191
  485. package/dist/src/compiled/@workflow/core/runtime/queue-auth.d.ts +0 -53
  486. package/dist/src/compiled/@workflow/core/runtime/quickjs-assets.generated.d.ts +0 -21
  487. package/dist/src/compiled/@workflow/core/runtime/quickjs-delivery-shared.d.ts +0 -126
  488. package/dist/src/compiled/@workflow/core/runtime/quickjs-log-view.d.ts +0 -211
  489. package/dist/src/compiled/@workflow/core/runtime/quickjs-pending-ops.d.ts +0 -181
  490. package/dist/src/compiled/@workflow/core/runtime/quickjs-runtime.d.ts +0 -356
  491. package/dist/src/compiled/@workflow/core/runtime/quickjs-serde.d.ts +0 -107
  492. package/dist/src/compiled/@workflow/core/runtime/quickjs-snapshot-codec.d.ts +0 -74
  493. package/dist/src/compiled/@workflow/core/runtime/replay-budget.d.ts +0 -104
  494. package/dist/src/compiled/@workflow/core/runtime/replay-recovery-reporter.d.ts +0 -36
  495. package/dist/src/compiled/@workflow/core/runtime/resume-hook.d.ts +0 -167
  496. package/dist/src/compiled/@workflow/core/runtime/resume-latency.d.ts +0 -150
  497. package/dist/src/compiled/@workflow/core/runtime/run-id-time.d.ts +0 -19
  498. package/dist/src/compiled/@workflow/core/runtime/run-spec-routing.d.ts +0 -52
  499. package/dist/src/compiled/@workflow/core/runtime/run-spec-version.d.ts +0 -20
  500. package/dist/src/compiled/@workflow/core/runtime/run.d.ts +0 -221
  501. package/dist/src/compiled/@workflow/core/runtime/runs.d.ts +0 -166
  502. package/dist/src/compiled/@workflow/core/runtime/spec8/constants.d.ts +0 -129
  503. package/dist/src/compiled/@workflow/core/runtime/spec8/count-step-started-events.d.ts +0 -52
  504. package/dist/src/compiled/@workflow/core/runtime/spec8/delivery.d.ts +0 -6
  505. package/dist/src/compiled/@workflow/core/runtime/spec8/inline-steps-in-flight.d.ts +0 -58
  506. package/dist/src/compiled/@workflow/core/runtime/spec8/open-hook-wait-state.d.ts +0 -55
  507. package/dist/src/compiled/@workflow/core/runtime/spec8/quickjs-entrypoint.d.ts +0 -110
  508. package/dist/src/compiled/@workflow/core/runtime/spec8/step-executor.d.ts +0 -233
  509. package/dist/src/compiled/@workflow/core/runtime/spec8/step-ownership.d.ts +0 -72
  510. package/dist/src/compiled/@workflow/core/runtime/spec8/step-single-flight.d.ts +0 -34
  511. package/dist/src/compiled/@workflow/core/runtime/spec8/suspension-handler.d.ts +0 -352
  512. package/dist/src/compiled/@workflow/core/runtime/spec9/consume-after-commit.d.ts +0 -37
  513. package/dist/src/compiled/@workflow/core/runtime/spec9/consumed-position.d.ts +0 -38
  514. package/dist/src/compiled/@workflow/core/runtime/spec9/creator-rules.d.ts +0 -220
  515. package/dist/src/compiled/@workflow/core/runtime/spec9/deadline.d.ts +0 -18
  516. package/dist/src/compiled/@workflow/core/runtime/spec9/delivery.d.ts +0 -17
  517. package/dist/src/compiled/@workflow/core/runtime/spec9/fence-refusals.d.ts +0 -20
  518. package/dist/src/compiled/@workflow/core/runtime/spec9/in-band-writer.d.ts +0 -282
  519. package/dist/src/compiled/@workflow/core/runtime/spec9/live-feed.d.ts +0 -197
  520. package/dist/src/compiled/@workflow/core/runtime/spec9/log-index.d.ts +0 -74
  521. package/dist/src/compiled/@workflow/core/runtime/spec9/log-state.d.ts +0 -155
  522. package/dist/src/compiled/@workflow/core/runtime/spec9/quickjs-entrypoint.d.ts +0 -198
  523. package/dist/src/compiled/@workflow/core/runtime/spec9/read-deadline.d.ts +0 -46
  524. package/dist/src/compiled/@workflow/core/runtime/spec9/run-ahead.d.ts +0 -74
  525. package/dist/src/compiled/@workflow/core/runtime/spec9/step-delivery.d.ts +0 -146
  526. package/dist/src/compiled/@workflow/core/runtime/spec9/step-executor.d.ts +0 -225
  527. package/dist/src/compiled/@workflow/core/runtime/spec9/step-handler.d.ts +0 -92
  528. package/dist/src/compiled/@workflow/core/runtime/spec9/step-message.d.ts +0 -42
  529. package/dist/src/compiled/@workflow/core/runtime/spec9/step-retention.d.ts +0 -44
  530. package/dist/src/compiled/@workflow/core/runtime/spec9/step-single-flight.d.ts +0 -19
  531. package/dist/src/compiled/@workflow/core/runtime/spec9/step-wait-creation.d.ts +0 -162
  532. package/dist/src/compiled/@workflow/core/runtime/spec9/suspension-handler.d.ts +0 -125
  533. package/dist/src/compiled/@workflow/core/runtime/spec9/wait-timer.d.ts +0 -143
  534. package/dist/src/compiled/@workflow/core/runtime/start-hook-binding.d.ts +0 -51
  535. package/dist/src/compiled/@workflow/core/runtime/start-hook-delivery.d.ts +0 -47
  536. package/dist/src/compiled/@workflow/core/runtime/start-hook-holder.d.ts +0 -50
  537. package/dist/src/compiled/@workflow/core/runtime/start.d.ts +0 -308
  538. package/dist/src/compiled/@workflow/core/runtime/step-latency.d.ts +0 -221
  539. package/dist/src/compiled/@workflow/core/runtime/step-single-flight.d.ts +0 -8
  540. package/dist/src/compiled/@workflow/core/runtime/step-streams.d.ts +0 -6
  541. package/dist/src/compiled/@workflow/core/runtime/suspension-hooks.d.ts +0 -84
  542. package/dist/src/compiled/@workflow/core/runtime/unserializable-step.d.ts +0 -34
  543. package/dist/src/compiled/@workflow/core/runtime/vm-mode.d.ts +0 -132
  544. package/dist/src/compiled/@workflow/core/runtime/wait-continuation.d.ts +0 -133
  545. package/dist/src/compiled/@workflow/core/runtime/wait-until.d.ts +0 -18
  546. package/dist/src/compiled/@workflow/core/runtime/world-compatibility.d.ts +0 -51
  547. package/dist/src/compiled/@workflow/core/runtime/world-init.d.ts +0 -50
  548. package/dist/src/compiled/@workflow/core/runtime/world.d.ts +0 -44
  549. package/dist/src/compiled/@workflow/core/runtime.d.ts +0 -26
  550. package/dist/src/compiled/@workflow/core/schemas.d.ts +0 -15
  551. package/dist/src/compiled/@workflow/core/sealed-box.d.ts +0 -167
  552. package/dist/src/compiled/@workflow/core/seeded-nanoid.d.ts +0 -2
  553. package/dist/src/compiled/@workflow/core/serialization/abort-stream.d.ts +0 -11
  554. package/dist/src/compiled/@workflow/core/serialization/client.d.ts +0 -17
  555. package/dist/src/compiled/@workflow/core/serialization/codec-devalue-vm.d.ts +0 -16
  556. package/dist/src/compiled/@workflow/core/serialization/codec-devalue.d.ts +0 -14
  557. package/dist/src/compiled/@workflow/core/serialization/codec.d.ts +0 -140
  558. package/dist/src/compiled/@workflow/core/serialization/compression.d.ts +0 -149
  559. package/dist/src/compiled/@workflow/core/serialization/encryption.d.ts +0 -134
  560. package/dist/src/compiled/@workflow/core/serialization/errors.d.ts +0 -34
  561. package/dist/src/compiled/@workflow/core/serialization/format.d.ts +0 -60
  562. package/dist/src/compiled/@workflow/core/serialization/hardened.d.ts +0 -164
  563. package/dist/src/compiled/@workflow/core/serialization/index.d.ts +0 -20
  564. package/dist/src/compiled/@workflow/core/serialization/reducers/class-vm.d.ts +0 -20
  565. package/dist/src/compiled/@workflow/core/serialization/reducers/class.d.ts +0 -11
  566. package/dist/src/compiled/@workflow/core/serialization/reducers/common-vm.d.ts +0 -15
  567. package/dist/src/compiled/@workflow/core/serialization/reducers/common.d.ts +0 -16
  568. package/dist/src/compiled/@workflow/core/serialization/reducers/step-function-vm.d.ts +0 -44
  569. package/dist/src/compiled/@workflow/core/serialization/reducers/step-function.d.ts +0 -35
  570. package/dist/src/compiled/@workflow/core/serialization/state-recovery.d.ts +0 -21
  571. package/dist/src/compiled/@workflow/core/serialization/state-refs.d.ts +0 -229
  572. package/dist/src/compiled/@workflow/core/serialization/step.d.ts +0 -17
  573. package/dist/src/compiled/@workflow/core/serialization/types.d.ts +0 -298
  574. package/dist/src/compiled/@workflow/core/serialization/workflow-vm.d.ts +0 -29
  575. package/dist/src/compiled/@workflow/core/serialization/workflow.d.ts +0 -29
  576. package/dist/src/compiled/@workflow/core/serialization-format.d.ts +0 -220
  577. package/dist/src/compiled/@workflow/core/serialization.d.ts +0 -641
  578. package/dist/src/compiled/@workflow/core/set-attributes.d.ts +0 -13
  579. package/dist/src/compiled/@workflow/core/set-error-stack.d.ts +0 -12
  580. package/dist/src/compiled/@workflow/core/sleep.d.ts +0 -33
  581. package/dist/src/compiled/@workflow/core/source-map.d.ts +0 -35
  582. package/dist/src/compiled/@workflow/core/state-resolver.d.ts +0 -44
  583. package/dist/src/compiled/@workflow/core/state.d.ts +0 -56
  584. package/dist/src/compiled/@workflow/core/step/context-storage.d.ts +0 -76
  585. package/dist/src/compiled/@workflow/core/step/get-closure-vars.d.ts +0 -9
  586. package/dist/src/compiled/@workflow/core/step/get-step-metadata.d.ts +0 -53
  587. package/dist/src/compiled/@workflow/core/step/get-workflow-metadata.d.ts +0 -7
  588. package/dist/src/compiled/@workflow/core/step/writable-stream.d.ts +0 -22
  589. package/dist/src/compiled/@workflow/core/step.d.ts +0 -4
  590. package/dist/src/compiled/@workflow/core/symbols.d.ts +0 -72
  591. package/dist/src/compiled/@workflow/core/telemetry/semantic-conventions.d.ts +0 -995
  592. package/dist/src/compiled/@workflow/core/telemetry.d.ts +0 -156
  593. package/dist/src/compiled/@workflow/core/test-support/append-only-world.d.ts +0 -458
  594. package/dist/src/compiled/@workflow/core/test-support/fence-snapshot.d.ts +0 -11
  595. package/dist/src/compiled/@workflow/core/test-support/load-events.d.ts +0 -8
  596. package/dist/src/compiled/@workflow/core/test-support/orchestrator-context.d.ts +0 -25
  597. package/dist/src/compiled/@workflow/core/test-support/orchestrator-harness.d.ts +0 -504
  598. package/dist/src/compiled/@workflow/core/types.d.ts +0 -43
  599. package/dist/src/compiled/@workflow/core/util.d.ts +0 -35
  600. package/dist/src/compiled/@workflow/core/version.d.ts +0 -2
  601. package/dist/src/compiled/@workflow/core/vm/index.d.ts +0 -17
  602. package/dist/src/compiled/@workflow/core/vm/script-cache.d.ts +0 -26
  603. package/dist/src/compiled/@workflow/core/vm/uint8array-base64.d.ts +0 -21
  604. package/dist/src/compiled/@workflow/core/vm/uuid.d.ts +0 -10
  605. package/dist/src/compiled/@workflow/core/workflow/abort-controller.d.ts +0 -65
  606. package/dist/src/compiled/@workflow/core/workflow/attribute-dispatcher.d.ts +0 -6
  607. package/dist/src/compiled/@workflow/core/workflow/create-hook.d.ts +0 -7
  608. package/dist/src/compiled/@workflow/core/workflow/define-hook.d.ts +0 -10
  609. package/dist/src/compiled/@workflow/core/workflow/get-workflow-metadata.d.ts +0 -32
  610. package/dist/src/compiled/@workflow/core/workflow/hook.d.ts +0 -15
  611. package/dist/src/compiled/@workflow/core/workflow/index.d.ts +0 -13
  612. package/dist/src/compiled/@workflow/core/workflow/set-attributes.d.ts +0 -72
  613. package/dist/src/compiled/@workflow/core/workflow/sleep.d.ts +0 -4
  614. package/dist/src/compiled/@workflow/core/workflow/world-init-stub.d.ts +0 -15
  615. package/dist/src/compiled/@workflow/core/workflow/writable-stream.d.ts +0 -3
  616. package/dist/src/compiled/@workflow/core/workflow.d.ts +0 -2
  617. package/dist/src/compiled/@workflow/errors/_ms.d.ts +0 -4
  618. package/dist/src/compiled/@workflow/errors/ansi.d.ts +0 -57
  619. package/dist/src/compiled/@workflow/errors/error-codes.d.ts +0 -29
  620. package/dist/src/compiled/@workflow/errors/index.d.ts +0 -842
  621. package/dist/src/compiled/@workflow/serde/index.d.ts +0 -30
  622. package/dist/src/compiled/@workflow/world/analytics.d.ts +0 -275
  623. package/dist/src/compiled/@workflow/world/attributes-validation.d.ts +0 -101
  624. package/dist/src/compiled/@workflow/world/attributes.d.ts +0 -18
  625. package/dist/src/compiled/@workflow/world/capabilities.d.ts +0 -37
  626. package/dist/src/compiled/@workflow/world/env-config.d.ts +0 -76
  627. package/dist/src/compiled/@workflow/world/event-metadata.d.ts +0 -132
  628. package/dist/src/compiled/@workflow/world/events.d.ts +0 -1292
  629. package/dist/src/compiled/@workflow/world/hooks.d.ts +0 -147
  630. package/dist/src/compiled/@workflow/world/index.d.ts +0 -37
  631. package/dist/src/compiled/@workflow/world/interfaces.d.ts +0 -938
  632. package/dist/src/compiled/@workflow/world/invocation.d.ts +0 -19
  633. package/dist/src/compiled/@workflow/world/node-http-flag.d.ts +0 -41
  634. package/dist/src/compiled/@workflow/world/node-http.d.ts +0 -81
  635. package/dist/src/compiled/@workflow/world/queue.d.ts +0 -888
  636. package/dist/src/compiled/@workflow/world/recovery.d.ts +0 -36
  637. package/dist/src/compiled/@workflow/world/runs.d.ts +0 -314
  638. package/dist/src/compiled/@workflow/world/serialization.d.ts +0 -25
  639. package/dist/src/compiled/@workflow/world/shared.d.ts +0 -122
  640. package/dist/src/compiled/@workflow/world/slot-identity.d.ts +0 -90
  641. package/dist/src/compiled/@workflow/world/snapshots.d.ts +0 -64
  642. package/dist/src/compiled/@workflow/world/spec-version.d.ts +0 -257
  643. package/dist/src/compiled/@workflow/world/start-hook.d.ts +0 -177
  644. package/dist/src/compiled/@workflow/world/steps.d.ts +0 -82
  645. package/dist/src/compiled/@workflow/world/test-support/atomic-start-hook-conformance.d.ts +0 -109
  646. package/dist/src/compiled/@workflow/world/test-support/duplicate-event-fixtures.d.ts +0 -44
  647. package/dist/src/compiled/@workflow/world/test-support/in-band-fence-conformance.d.ts +0 -51
  648. package/dist/src/compiled/@workflow/world/ulid.d.ts +0 -50
  649. package/dist/src/compiled/@workflow/world/waits.d.ts +0 -21
  650. package/dist/src/compiled/@workflow/world-local/index.d.ts +0 -15
  651. package/dist/src/compiled/_chunks/node/retry-DrgXNq3T.js +0 -1
  652. package/dist/src/compiled/_chunks/node/token-util-Bjo0BJMz.js +0 -25
  653. package/dist/src/compiled/_chunks/node/token-util-Dz7NR_Tr.js +0 -1
  654. package/dist/src/compiled/_chunks/workflow/chunk-5MU5Z6L3-YIxCtn7b.js +0 -1
  655. package/dist/src/compiled/_chunks/workflow/chunk-WVKEO4WS-BAUmOByS.js +0 -1
  656. package/dist/src/compiled/_chunks/workflow/delegation-DLl-shwK.js +0 -1
  657. package/dist/src/compiled/_chunks/workflow/delivery-BrRGuXkQ.js +0 -1
  658. package/dist/src/compiled/_chunks/workflow/dist-74tor0XD.js +0 -66
  659. package/dist/src/compiled/_chunks/workflow/dist-DxRkCvK_.js +0 -4
  660. package/dist/src/compiled/_chunks/workflow/dist-M6hOHh4e.js +0 -1
  661. package/dist/src/compiled/_chunks/workflow/esm-B-KJJdww.js +0 -1
  662. package/dist/src/compiled/_chunks/workflow/functions-C4nAezjk.js +0 -60
  663. package/dist/src/compiled/_chunks/workflow/getMachineId-linux-NDQO5XIJ-Df0-OceL.js +0 -1
  664. package/dist/src/compiled/_chunks/workflow/getMachineId-unsupported-4HKOBEHB-Cp1dgBjO.js +0 -1
  665. package/dist/src/compiled/_chunks/workflow/mcp-BwOs3XEw.js +0 -5
  666. package/dist/src/compiled/_chunks/workflow/resume-hook-C7lViLeL.js +0 -1
  667. package/dist/src/compiled/_chunks/workflow/rolldown-runtime-Bdq61TOx.js +0 -1
  668. package/dist/src/compiled/_chunks/workflow/run-CBoukBsx.js +0 -34
  669. package/dist/src/compiled/_chunks/workflow/serialization-C5CU_DM9.js +0 -12
  670. package/dist/src/compiled/_chunks/workflow/sleep-c59AMqRs.js +0 -1
  671. package/dist/src/compiled/_chunks/workflow/suspension-hooks-CBo2hPl5.js +0 -3
  672. package/dist/src/compiled/_chunks/workflow/token-D3jqBt4E.js +0 -1
  673. package/dist/src/compiled/_chunks/workflow/token-DdYeX5AJ.js +0 -1
  674. package/dist/src/compiled/_chunks/workflow/token-lvcx9AkX.js +0 -1
  675. package/dist/src/compiled/_chunks/workflow/token-util-cvUzLGvF.js +0 -1
  676. package/dist/src/compiled/_chunks/workflow/undici-Dq-ari9z.js +0 -95
  677. package/dist/src/compiled/_chunks/workflow/wrapper-D2LPJXTV.js +0 -8
  678. package/dist/src/compiled/chokidar/index.d.ts +0 -33
  679. package/dist/src/compiled/commander/index.d.ts +0 -1116
  680. package/dist/src/compiled/croner/index.d.ts +0 -8
  681. package/dist/src/compiled/env-runner/index.d.ts +0 -74
  682. package/dist/src/compiled/env-runner/node-worker.d.ts +0 -1
  683. package/dist/src/compiled/eventsource-parser/stream/errors.d.ts +0 -35
  684. package/dist/src/compiled/eventsource-parser/stream/index.d.ts +0 -76
  685. package/dist/src/compiled/eventsource-parser/stream/types.d.ts +0 -130
  686. package/dist/src/compiled/immer/index.d.ts +0 -10
  687. package/dist/src/compiled/js-yaml/index.d.ts +0 -31
  688. package/dist/src/compiled/json-schema/index.d.ts +0 -749
  689. package/dist/src/compiled/jsonc-parser/index.d.ts +0 -32
  690. package/dist/src/compiled/just-secrets/index.d.ts +0 -20
  691. package/dist/src/compiled/marked/index.d.ts +0 -24
  692. package/dist/src/compiled/picocolors/index.d.ts +0 -55
  693. package/dist/src/compiled/run/index.d.ts +0 -388
  694. package/dist/src/compiled/semver/index.d.ts +0 -29
  695. package/dist/src/compiled/shadcn-registry/index.d.ts +0 -58
  696. package/dist/src/compiled/zod-validation-error/index.d.ts +0 -12
  697. package/dist/src/compiler/artifact-contract.d.ts +0 -43
  698. package/dist/src/compiler/artifacts.d.ts +0 -80
  699. package/dist/src/compiler/bundled-extension.d.ts +0 -23
  700. package/dist/src/compiler/channel-route-plan.d.ts +0 -12
  701. package/dist/src/compiler/compile-agent.d.ts +0 -58
  702. package/dist/src/compiler/connection-ownership.d.ts +0 -6
  703. package/dist/src/compiler/default-tool-policy.d.ts +0 -9
  704. package/dist/src/compiler/development-extensions.d.ts +0 -23
  705. package/dist/src/compiler/diagnostics.d.ts +0 -27
  706. package/dist/src/compiler/extension-compatibility.d.ts +0 -32
  707. package/dist/src/compiler/extension-mount-bindings.d.ts +0 -5
  708. package/dist/src/compiler/model-catalog.d.ts +0 -22
  709. package/dist/src/compiler/module-lifecycle.d.ts +0 -14
  710. package/dist/src/compiler/node-source-state.d.ts +0 -27
  711. package/dist/src/compiler/normalize-agent-config.d.ts +0 -14
  712. package/dist/src/compiler/normalize-channel.d.ts +0 -23
  713. package/dist/src/compiler/normalize-connection.d.ts +0 -30
  714. package/dist/src/compiler/normalize-definitions.d.ts +0 -8
  715. package/dist/src/compiler/normalize-helpers.d.ts +0 -48
  716. package/dist/src/compiler/normalize-instructions.d.ts +0 -32
  717. package/dist/src/compiler/normalize-manifest-helpers.d.ts +0 -45
  718. package/dist/src/compiler/normalize-manifest-types.d.ts +0 -28
  719. package/dist/src/compiler/normalize-manifest.d.ts +0 -5
  720. package/dist/src/compiler/normalize-sandbox.d.ts +0 -4
  721. package/dist/src/compiler/normalize-schedule-collection.d.ts +0 -10
  722. package/dist/src/compiler/normalize-schedule.d.ts +0 -15
  723. package/dist/src/compiler/normalize-skill.d.ts +0 -28
  724. package/dist/src/compiler/normalize-subagent.d.ts +0 -16
  725. package/dist/src/compiler/normalize-tool.d.ts +0 -36
  726. package/dist/src/compiler/project-sources.d.ts +0 -66
  727. package/dist/src/compiler/resolve-workspace-subagent.d.ts +0 -13
  728. package/dist/src/compiler/validate-artifact.d.ts +0 -17
  729. package/dist/src/compiler/workspace-resources.d.ts +0 -14
  730. package/dist/src/computer-use/extension/lib/command-failure.d.ts +0 -7
  731. package/dist/src/computer-use/extension/lib/computer-use-driver-source.d.ts +0 -12
  732. package/dist/src/computer-use/extension/lib/computer-use.d.ts +0 -38
  733. package/dist/src/computer-use/extension/lib/shell.d.ts +0 -1
  734. package/dist/src/connections/ownership.d.ts +0 -18
  735. package/dist/src/context/build-base-tool-context.d.ts +0 -14
  736. package/dist/src/context/build-callback-context.d.ts +0 -15
  737. package/dist/src/context/key-names.d.ts +0 -14
  738. package/dist/src/context/prewarm.d.ts +0 -27
  739. package/dist/src/context/provider.d.ts +0 -30
  740. package/dist/src/context/providers/connection-key.d.ts +0 -9
  741. package/dist/src/context/providers/connection.d.ts +0 -4
  742. package/dist/src/context/providers/sandbox.d.ts +0 -10
  743. package/dist/src/context/providers/session.d.ts +0 -21
  744. package/dist/src/context/providers/tool-stubs-key.d.ts +0 -8
  745. package/dist/src/context/run-step.d.ts +0 -23
  746. package/dist/src/context/schedule-collection-tools.d.ts +0 -23
  747. package/dist/src/context/serialize.d.ts +0 -19
  748. package/dist/src/context/turn-principals.d.ts +0 -12
  749. package/dist/src/context/workflow-step.d.ts +0 -3
  750. package/dist/src/definitions/agent-definitions.d.ts +0 -57
  751. package/dist/src/definitions/agent.d.ts +0 -7
  752. package/dist/src/definitions/approvals.d.ts +0 -6
  753. package/dist/src/definitions/builtins.d.ts +0 -6
  754. package/dist/src/definitions/catalog.d.ts +0 -7
  755. package/dist/src/definitions/combine.d.ts +0 -9
  756. package/dist/src/definitions/compiled-agent.d.ts +0 -12
  757. package/dist/src/definitions/connections.d.ts +0 -21
  758. package/dist/src/definitions/continuation.d.ts +0 -19
  759. package/dist/src/definitions/frame.d.ts +0 -13
  760. package/dist/src/definitions/hooks.d.ts +0 -33
  761. package/dist/src/definitions/instructions.d.ts +0 -21
  762. package/dist/src/definitions/intents.d.ts +0 -33
  763. package/dist/src/definitions/messages.d.ts +0 -17
  764. package/dist/src/definitions/session-agent.d.ts +0 -26
  765. package/dist/src/definitions/skills.d.ts +0 -27
  766. package/dist/src/definitions/state.d.ts +0 -113
  767. package/dist/src/definitions/step.d.ts +0 -53
  768. package/dist/src/definitions/subagents.d.ts +0 -16
  769. package/dist/src/definitions/tools.d.ts +0 -33
  770. package/dist/src/definitions/turn.d.ts +0 -12
  771. package/dist/src/discover/bundled-extension.d.ts +0 -11
  772. package/dist/src/discover/connections.d.ts +0 -19
  773. package/dist/src/discover/discover-agent.d.ts +0 -87
  774. package/dist/src/discover/discover-subagent.d.ts +0 -35
  775. package/dist/src/discover/extension-specifier.d.ts +0 -17
  776. package/dist/src/discover/extensions.d.ts +0 -127
  777. package/dist/src/discover/filesystem.d.ts +0 -74
  778. package/dist/src/discover/grammar.d.ts +0 -196
  779. package/dist/src/discover/lib.d.ts +0 -35
  780. package/dist/src/discover/manifest.d.ts +0 -297
  781. package/dist/src/discover/markdown.d.ts +0 -19
  782. package/dist/src/discover/memory.d.ts +0 -13
  783. package/dist/src/discover/named-source-directory.d.ts +0 -98
  784. package/dist/src/discover/project-source.d.ts +0 -113
  785. package/dist/src/discover/project.d.ts +0 -33
  786. package/dist/src/discover/sandbox.d.ts +0 -32
  787. package/dist/src/discover/schedules.d.ts +0 -38
  788. package/dist/src/discover/skills.d.ts +0 -35
  789. package/dist/src/discover/slots.d.ts +0 -30
  790. package/dist/src/evals/abort.d.ts +0 -2
  791. package/dist/src/evals/assertions/scoped.d.ts +0 -17
  792. package/dist/src/evals/cli/eval-client.d.ts +0 -20
  793. package/dist/src/evals/cli/eval-state-directory.d.ts +0 -7
  794. package/dist/src/evals/cli/eval.d.ts +0 -31
  795. package/dist/src/evals/cli/filter.d.ts +0 -14
  796. package/dist/src/evals/context.d.ts +0 -21
  797. package/dist/src/evals/control-flow.d.ts +0 -9
  798. package/dist/src/evals/diagnostics.d.ts +0 -8
  799. package/dist/src/evals/expect/levenshtein.d.ts +0 -2
  800. package/dist/src/evals/judge.d.ts +0 -12
  801. package/dist/src/evals/output.d.ts +0 -3
  802. package/dist/src/evals/reported-tool-name.d.ts +0 -9
  803. package/dist/src/evals/runner/artifacts.d.ts +0 -12
  804. package/dist/src/evals/runner/attempt-label.d.ts +0 -2
  805. package/dist/src/evals/runner/derive-run-facts.d.ts +0 -16
  806. package/dist/src/evals/runner/discover.d.ts +0 -51
  807. package/dist/src/evals/runner/execute-eval.d.ts +0 -31
  808. package/dist/src/evals/runner/execute-task.d.ts +0 -38
  809. package/dist/src/evals/runner/reporters/assertion-diagnostics.d.ts +0 -3
  810. package/dist/src/evals/runner/reporters/assertion-scores.d.ts +0 -30
  811. package/dist/src/evals/runner/reporters/datadog-runtime-trace-links.d.ts +0 -11
  812. package/dist/src/evals/runner/resolve-git-metadata.d.ts +0 -16
  813. package/dist/src/evals/runner/run-evals.d.ts +0 -44
  814. package/dist/src/evals/runner/verdict.d.ts +0 -14
  815. package/dist/src/evals/session-cleanup.d.ts +0 -7
  816. package/dist/src/evals/session-content.d.ts +0 -5
  817. package/dist/src/eve-channel/audience.d.ts +0 -3
  818. package/dist/src/eve-channel/create-request.d.ts +0 -24
  819. package/dist/src/eve-channel/descendant-stream.d.ts +0 -9
  820. package/dist/src/eve-channel/request.d.ts +0 -43
  821. package/dist/src/eve-channel/stream-headers.d.ts +0 -1
  822. package/dist/src/eve-channel/turn-policy-request.d.ts +0 -2
  823. package/dist/src/execution/agent-sessions/message.d.ts +0 -4
  824. package/dist/src/execution/agent-sessions/metadata.d.ts +0 -8
  825. package/dist/src/execution/agent-sessions/remote-credentials.d.ts +0 -19
  826. package/dist/src/execution/agent-sessions/remote-session.d.ts +0 -16
  827. package/dist/src/execution/agent-sessions/remote.d.ts +0 -117
  828. package/dist/src/execution/agent-sessions/requests.d.ts +0 -22
  829. package/dist/src/execution/agent-sessions/session.d.ts +0 -12
  830. package/dist/src/execution/agent-sessions/sessions-over.d.ts +0 -29
  831. package/dist/src/execution/agent-sessions/steps.d.ts +0 -27
  832. package/dist/src/execution/agent-sessions/usage.d.ts +0 -10
  833. package/dist/src/execution/authorization-callback-match.d.ts +0 -14
  834. package/dist/src/execution/callback-hook-tokens.d.ts +0 -18
  835. package/dist/src/execution/cancelled-model-call-batch.d.ts +0 -17
  836. package/dist/src/execution/cancelled-turn-message.d.ts +0 -2
  837. package/dist/src/execution/catalog/catalog-tools.d.ts +0 -22
  838. package/dist/src/execution/catalog/connection-auth.d.ts +0 -43
  839. package/dist/src/execution/catalog/connection-entry.d.ts +0 -17
  840. package/dist/src/execution/catalog/listing.d.ts +0 -12
  841. package/dist/src/execution/catalog/rank.d.ts +0 -44
  842. package/dist/src/execution/catalog/search.d.ts +0 -28
  843. package/dist/src/execution/catalog/signatures.d.ts +0 -11
  844. package/dist/src/execution/catalog/step-catalog.d.ts +0 -74
  845. package/dist/src/execution/channel-context.d.ts +0 -5
  846. package/dist/src/execution/close-session-stream-step.d.ts +0 -9
  847. package/dist/src/execution/connections/callback-route.d.ts +0 -27
  848. package/dist/src/execution/continuation-conflict-step.d.ts +0 -8
  849. package/dist/src/execution/coordination-dispatch-step.d.ts +0 -20
  850. package/dist/src/execution/create-session-step.d.ts +0 -35
  851. package/dist/src/execution/delegated-session-context.d.ts +0 -2
  852. package/dist/src/execution/deliver-payloads.d.ts +0 -3
  853. package/dist/src/execution/dynamic-workflow/program-step.d.ts +0 -21
  854. package/dist/src/execution/dynamic-workflow/schema.d.ts +0 -42
  855. package/dist/src/execution/dynamic-workflow/security-step.d.ts +0 -3
  856. package/dist/src/execution/dynamic-workflow/tool.d.ts +0 -8
  857. package/dist/src/execution/dynamic-workflow/workflow.d.ts +0 -10
  858. package/dist/src/execution/effective-agent-config.d.ts +0 -29
  859. package/dist/src/execution/eve-workflow-attributes.d.ts +0 -159
  860. package/dist/src/execution/failure-summary.d.ts +0 -11
  861. package/dist/src/execution/forward-session-input.d.ts +0 -4
  862. package/dist/src/execution/framework-workflow-bodies.d.ts +0 -7
  863. package/dist/src/execution/hook-ownership.d.ts +0 -23
  864. package/dist/src/execution/hosts.d.ts +0 -131
  865. package/dist/src/execution/initial-session-values.d.ts +0 -17
  866. package/dist/src/execution/install-workflow-deployment-id.d.ts +0 -3
  867. package/dist/src/execution/install-workflow-world.d.ts +0 -15
  868. package/dist/src/execution/invoke-tool.d.ts +0 -39
  869. package/dist/src/execution/legacy-session/authorization.d.ts +0 -1
  870. package/dist/src/execution/legacy-session/completion-step.d.ts +0 -12
  871. package/dist/src/execution/legacy-session/inbox.d.ts +0 -24
  872. package/dist/src/execution/legacy-session/input.d.ts +0 -17
  873. package/dist/src/execution/legacy-session/interrupt-step.d.ts +0 -3
  874. package/dist/src/execution/legacy-session/prepare-step.d.ts +0 -24
  875. package/dist/src/execution/legacy-session/snapshot.d.ts +0 -21
  876. package/dist/src/execution/legacy-session/turn-workflow.d.ts +0 -8
  877. package/dist/src/execution/model-call-batching.d.ts +0 -12
  878. package/dist/src/execution/ndjson-stream.d.ts +0 -19
  879. package/dist/src/execution/node-step.d.ts +0 -78
  880. package/dist/src/execution/proxied-deliver-step.d.ts +0 -45
  881. package/dist/src/execution/public-destination.d.ts +0 -37
  882. package/dist/src/execution/reconcile-session-continuation-token.d.ts +0 -4
  883. package/dist/src/execution/report-dropped-wire-payload-step.d.ts +0 -13
  884. package/dist/src/execution/route-child-delivery.d.ts +0 -20
  885. package/dist/src/execution/run-host.d.ts +0 -52
  886. package/dist/src/execution/runtime-context.d.ts +0 -14
  887. package/dist/src/execution/sandbox/abort-bound-session.d.ts +0 -6
  888. package/dist/src/execution/sandbox/active-connections.d.ts +0 -28
  889. package/dist/src/execution/sandbox/bash.d.ts +0 -69
  890. package/dist/src/execution/sandbox/bindings/docker-base-setup.d.ts +0 -7
  891. package/dist/src/execution/sandbox/bindings/docker-connection.d.ts +0 -15
  892. package/dist/src/execution/sandbox/bindings/docker-container.d.ts +0 -18
  893. package/dist/src/execution/sandbox/bindings/docker-network.d.ts +0 -13
  894. package/dist/src/execution/sandbox/bindings/docker-options.d.ts +0 -20
  895. package/dist/src/execution/sandbox/bindings/docker-templates.d.ts +0 -41
  896. package/dist/src/execution/sandbox/bindings/docker-utils.d.ts +0 -2
  897. package/dist/src/execution/sandbox/bindings/docker.d.ts +0 -32
  898. package/dist/src/execution/sandbox/bindings/just-bash-runtime.d.ts +0 -26
  899. package/dist/src/execution/sandbox/bindings/just-bash.d.ts +0 -18
  900. package/dist/src/execution/sandbox/bindings/local-provider-utils.d.ts +0 -6
  901. package/dist/src/execution/sandbox/bindings/local-template-prune.d.ts +0 -16
  902. package/dist/src/execution/sandbox/bindings/local.d.ts +0 -22
  903. package/dist/src/execution/sandbox/bindings/vercel-base-runtime.d.ts +0 -12
  904. package/dist/src/execution/sandbox/bindings/vercel-create-sdk.d.ts +0 -19
  905. package/dist/src/execution/sandbox/bindings/vercel-credentials.d.ts +0 -10
  906. package/dist/src/execution/sandbox/bindings/vercel-errors.d.ts +0 -13
  907. package/dist/src/execution/sandbox/bindings/vercel-lifecycle.d.ts +0 -15
  908. package/dist/src/execution/sandbox/bindings/vercel-lookup.d.ts +0 -12
  909. package/dist/src/execution/sandbox/bindings/vercel-options.d.ts +0 -9
  910. package/dist/src/execution/sandbox/bindings/vercel-read-stream.d.ts +0 -5
  911. package/dist/src/execution/sandbox/bindings/vercel-sdk-types.d.ts +0 -5
  912. package/dist/src/execution/sandbox/bindings/vercel-tool-sessions.d.ts +0 -7
  913. package/dist/src/execution/sandbox/bindings/vercel.d.ts +0 -21
  914. package/dist/src/execution/sandbox/development-cleanup.d.ts +0 -4
  915. package/dist/src/execution/sandbox/development-lazy-prewarm.d.ts +0 -7
  916. package/dist/src/execution/sandbox/development-run.d.ts +0 -5
  917. package/dist/src/execution/sandbox/dockerfile.d.ts +0 -20
  918. package/dist/src/execution/sandbox/ensure.d.ts +0 -42
  919. package/dist/src/execution/sandbox/glob-tool.d.ts +0 -22
  920. package/dist/src/execution/sandbox/logging-session.d.ts +0 -5
  921. package/dist/src/execution/sandbox/multiplexed-command.d.ts +0 -38
  922. package/dist/src/execution/sandbox/prewarm.d.ts +0 -61
  923. package/dist/src/execution/sandbox/provider-files.d.ts +0 -2
  924. package/dist/src/execution/sandbox/provider-identity.d.ts +0 -1
  925. package/dist/src/execution/sandbox/read-file.d.ts +0 -35
  926. package/dist/src/execution/sandbox/require-sandbox.d.ts +0 -7
  927. package/dist/src/execution/sandbox/ripgrep-probe.d.ts +0 -2
  928. package/dist/src/execution/sandbox/shell-quote.d.ts +0 -1
  929. package/dist/src/execution/sandbox/stream-utils.d.ts +0 -9
  930. package/dist/src/execution/sandbox/truncate-output.d.ts +0 -69
  931. package/dist/src/execution/session/accepted-deployment.d.ts +0 -3
  932. package/dist/src/execution/session/active-turn.d.ts +0 -117
  933. package/dist/src/execution/session/admission.d.ts +0 -40
  934. package/dist/src/execution/session/answer-caller.d.ts +0 -19
  935. package/dist/src/execution/session/checkpoint-migrations.d.ts +0 -32
  936. package/dist/src/execution/session/checkpoint-refusal.d.ts +0 -4
  937. package/dist/src/execution/session/control-delivery.d.ts +0 -4
  938. package/dist/src/execution/session/delivery-facts.d.ts +0 -27
  939. package/dist/src/execution/session/end-sandbox-step.d.ts +0 -12
  940. package/dist/src/execution/session/entry.d.ts +0 -17
  941. package/dist/src/execution/session/finalization.d.ts +0 -35
  942. package/dist/src/execution/session/handoff-state.d.ts +0 -5
  943. package/dist/src/execution/session/handoff-steps.d.ts +0 -130
  944. package/dist/src/execution/session/handoff.d.ts +0 -124
  945. package/dist/src/execution/session/handover-tracing.d.ts +0 -3
  946. package/dist/src/execution/session/hook-tokens.d.ts +0 -11
  947. package/dist/src/execution/session/imported-conversation.d.ts +0 -2
  948. package/dist/src/execution/session/input-queue.d.ts +0 -101
  949. package/dist/src/execution/session/interrupted-step.d.ts +0 -69
  950. package/dist/src/execution/session/next-input.d.ts +0 -37
  951. package/dist/src/execution/session/owner-boot.d.ts +0 -31
  952. package/dist/src/execution/session/pending-history.d.ts +0 -5
  953. package/dist/src/execution/session/pending-turn-state.d.ts +0 -37
  954. package/dist/src/execution/session/pre-v27-checkpoint.d.ts +0 -42
  955. package/dist/src/execution/session/prewarm-step.d.ts +0 -13
  956. package/dist/src/execution/session/principal.d.ts +0 -22
  957. package/dist/src/execution/session/program.d.ts +0 -87
  958. package/dist/src/execution/session/route-selected-delivery.d.ts +0 -10
  959. package/dist/src/execution/session/run-watch.d.ts +0 -26
  960. package/dist/src/execution/session/settle-control-delivery-step.d.ts +0 -8
  961. package/dist/src/execution/session/settle-duplicate-delivery-step.d.ts +0 -8
  962. package/dist/src/execution/session/state-cursor.d.ts +0 -50
  963. package/dist/src/execution/session/state-delta.d.ts +0 -30
  964. package/dist/src/execution/session/step-decision-check.d.ts +0 -9
  965. package/dist/src/execution/session/step-state-delta.d.ts +0 -24
  966. package/dist/src/execution/session/task-tool-tracing-step.d.ts +0 -2
  967. package/dist/src/execution/session/timeout-control.d.ts +0 -31
  968. package/dist/src/execution/session/timeout-steps.d.ts +0 -14
  969. package/dist/src/execution/session/timeout-workflow.d.ts +0 -8
  970. package/dist/src/execution/session/timeout.d.ts +0 -2
  971. package/dist/src/execution/session/turn-control.d.ts +0 -17
  972. package/dist/src/execution/session/turn-event-handler.d.ts +0 -17
  973. package/dist/src/execution/session/turn-step-result.d.ts +0 -8
  974. package/dist/src/execution/session/turn-step-types.d.ts +0 -110
  975. package/dist/src/execution/session/turn-step.d.ts +0 -28
  976. package/dist/src/execution/session/turn.d.ts +0 -110
  977. package/dist/src/execution/session/workflow-host.d.ts +0 -7
  978. package/dist/src/execution/session-callback-request.d.ts +0 -14
  979. package/dist/src/execution/session-commands.d.ts +0 -7
  980. package/dist/src/execution/session-event-stream.d.ts +0 -65
  981. package/dist/src/execution/session-inbox/end-stranded-session.d.ts +0 -36
  982. package/dist/src/execution/session-inbox/handle.d.ts +0 -7
  983. package/dist/src/execution/session-inbox/hook-release.d.ts +0 -11
  984. package/dist/src/execution/session-inbox/owner.d.ts +0 -69
  985. package/dist/src/execution/session-inbox/pre-v27.d.ts +0 -5
  986. package/dist/src/execution/session-inbox/protocol.d.ts +0 -12
  987. package/dist/src/execution/session-inbox/resume.d.ts +0 -42
  988. package/dist/src/execution/session-inbox/runnable-owner.d.ts +0 -13
  989. package/dist/src/execution/session-inbox/stranded-replay-guard.d.ts +0 -16
  990. package/dist/src/execution/session-inbox/workflow-transport.d.ts +0 -10
  991. package/dist/src/execution/session-line-store.d.ts +0 -19
  992. package/dist/src/execution/session-workflow-tool-run.d.ts +0 -21
  993. package/dist/src/execution/session.d.ts +0 -27
  994. package/dist/src/execution/settle-cancelled-turn-step.d.ts +0 -32
  995. package/dist/src/execution/skills/instructions.d.ts +0 -29
  996. package/dist/src/execution/stable-workflow-names.d.ts +0 -6
  997. package/dist/src/execution/stop-runs.d.ts +0 -35
  998. package/dist/src/execution/tasks/model-step.d.ts +0 -54
  999. package/dist/src/execution/tasks/render.d.ts +0 -69
  1000. package/dist/src/execution/tasks/session.d.ts +0 -23
  1001. package/dist/src/execution/tasks/start.d.ts +0 -50
  1002. package/dist/src/execution/tasks/steps.d.ts +0 -39
  1003. package/dist/src/execution/tasks/task-id-input.d.ts +0 -19
  1004. package/dist/src/execution/tasks/tool-entry-point.d.ts +0 -11
  1005. package/dist/src/execution/tasks/workflow-target.d.ts +0 -2
  1006. package/dist/src/execution/terminal-session-completion-step.d.ts +0 -24
  1007. package/dist/src/execution/terminal-session-failure-step.d.ts +0 -14
  1008. package/dist/src/execution/terminate-child-sessions-step.d.ts +0 -12
  1009. package/dist/src/execution/tool-auth.d.ts +0 -17
  1010. package/dist/src/execution/tool-session/id.d.ts +0 -22
  1011. package/dist/src/execution/tool-stub-host.d.ts +0 -20
  1012. package/dist/src/execution/tool-stubs/playback.d.ts +0 -11
  1013. package/dist/src/execution/tool-stubs/steps.d.ts +0 -18
  1014. package/dist/src/execution/tools/channel-to.d.ts +0 -15
  1015. package/dist/src/execution/tools/file-state.d.ts +0 -56
  1016. package/dist/src/execution/tools/workflow/answer.d.ts +0 -10
  1017. package/dist/src/execution/tools/workflow/apply-run-messages-step.d.ts +0 -3
  1018. package/dist/src/execution/tools/workflow/apply-run-messages.d.ts +0 -36
  1019. package/dist/src/execution/tools/workflow/ask.d.ts +0 -79
  1020. package/dist/src/execution/tools/workflow/authorization-completion.d.ts +0 -3
  1021. package/dist/src/execution/tools/workflow/body.d.ts +0 -92
  1022. package/dist/src/execution/tools/workflow/cancellation-policy.d.ts +0 -2
  1023. package/dist/src/execution/tools/workflow/harness-definition.d.ts +0 -14
  1024. package/dist/src/execution/tools/workflow/interrupt.d.ts +0 -9
  1025. package/dist/src/execution/tools/workflow/owner-channels.d.ts +0 -29
  1026. package/dist/src/execution/tools/workflow/owner-inbox.d.ts +0 -13
  1027. package/dist/src/execution/tools/workflow/owner.d.ts +0 -36
  1028. package/dist/src/execution/tools/workflow/resume-hook-step.d.ts +0 -4
  1029. package/dist/src/execution/tools/workflow/resume-hook.d.ts +0 -4
  1030. package/dist/src/execution/tools/workflow/run.d.ts +0 -8
  1031. package/dist/src/execution/tools/workflow/serve.d.ts +0 -3
  1032. package/dist/src/execution/tools/workflow/start.d.ts +0 -51
  1033. package/dist/src/execution/tools/workflow/step.d.ts +0 -3
  1034. package/dist/src/execution/tools/workflow/types.d.ts +0 -10
  1035. package/dist/src/execution/tools/workflow/withdraw-step.d.ts +0 -29
  1036. package/dist/src/execution/tools/workflow/workflow-owner-blocking.d.ts +0 -23
  1037. package/dist/src/execution/tools/workflow/workflow-run-host.d.ts +0 -2
  1038. package/dist/src/execution/tools/workflow/workflow.d.ts +0 -3
  1039. package/dist/src/execution/v26-history.fixtures.d.ts +0 -4
  1040. package/dist/src/execution/web-fetch/execute.d.ts +0 -39
  1041. package/dist/src/execution/web-fetch/html.d.ts +0 -8
  1042. package/dist/src/execution/web-fetch/request.d.ts +0 -15
  1043. package/dist/src/execution/workflow-errors.d.ts +0 -19
  1044. package/dist/src/execution/workflow-host/dispatch-step.d.ts +0 -9
  1045. package/dist/src/execution/workflow-host/host.d.ts +0 -5
  1046. package/dist/src/execution/workflow-host/start-run.d.ts +0 -6
  1047. package/dist/src/execution/workflow-host/tool-stubs.d.ts +0 -7
  1048. package/dist/src/execution/workflow-host/turn-step.d.ts +0 -3
  1049. package/dist/src/execution/workflow-references.d.ts +0 -23
  1050. package/dist/src/execution/workflow-registry.d.ts +0 -5
  1051. package/dist/src/execution/workflow-runtime.d.ts +0 -41
  1052. package/dist/src/execution/workflow-webhook-route.d.ts +0 -4
  1053. package/dist/src/extensions/code/extension/hooks/authenticate.d.ts +0 -2
  1054. package/dist/src/extensions/code/extension/instructions/project.d.ts +0 -2
  1055. package/dist/src/extensions/code/extension/lib/command-failure.d.ts +0 -7
  1056. package/dist/src/extensions/code/extension/lib/connect-authentication.d.ts +0 -7
  1057. package/dist/src/extensions/code/extension/lib/project-instructions.d.ts +0 -13
  1058. package/dist/src/extensions/code/extension/lib/tooling.d.ts +0 -15
  1059. package/dist/src/extensions/custom-skills/extension/instructions/always-on.d.ts +0 -4
  1060. package/dist/src/extensions/custom-skills/extension/lib/lifecycle.d.ts +0 -122
  1061. package/dist/src/extensions/custom-skills/extension/lib/render.d.ts +0 -5
  1062. package/dist/src/extensions/custom-skills/extension/lib/runtime.d.ts +0 -26
  1063. package/dist/src/extensions/custom-skills/extension/lib/tool-support.d.ts +0 -102
  1064. package/dist/src/extensions/custom-skills/extension/skills/custom.d.ts +0 -9
  1065. package/dist/src/extensions/custom-skills/extension/tools/create.d.ts +0 -28
  1066. package/dist/src/extensions/custom-skills/extension/tools/list.d.ts +0 -60
  1067. package/dist/src/extensions/custom-skills/extension/tools/publish.d.ts +0 -36
  1068. package/dist/src/extensions/custom-skills/extension/tools/read.d.ts +0 -32
  1069. package/dist/src/extensions/custom-skills/extension/tools/remove.d.ts +0 -17
  1070. package/dist/src/extensions/custom-skills/extension/tools/set_mode.d.ts +0 -19
  1071. package/dist/src/extensions/git/extension/instructions/github.d.ts +0 -2
  1072. package/dist/src/extensions/git/extension/lib/connect-user-auth.d.ts +0 -15
  1073. package/dist/src/extensions/git/extension/lib/gh-tool.d.ts +0 -28
  1074. package/dist/src/extensions/git/extension/lib/github-guidance.d.ts +0 -4
  1075. package/dist/src/extensions/git/extension/lib/github-shell-schema.d.ts +0 -9
  1076. package/dist/src/extensions/git/extension/lib/repository-root.d.ts +0 -11
  1077. package/dist/src/extensions/git/extension/lib/sandbox-lease-lock.d.ts +0 -32
  1078. package/dist/src/extensions/git/extension/lib/shell.d.ts +0 -1
  1079. package/dist/src/extensions/git/extension/skills/pr.d.ts +0 -2
  1080. package/dist/src/extensions/git/extension/tools/gh.d.ts +0 -3
  1081. package/dist/src/framework/host-inventory.d.ts +0 -8
  1082. package/dist/src/framework/sources/default-tools.d.ts +0 -36
  1083. package/dist/src/framework/sources/modules/agent.d.ts +0 -5
  1084. package/dist/src/framework/sources/modules/eve-channel.d.ts +0 -1
  1085. package/dist/src/framework/sources/modules/home-channel.d.ts +0 -2
  1086. package/dist/src/framework/sources/modules/sandbox.d.ts +0 -3
  1087. package/dist/src/harness/action-presentation.d.ts +0 -18
  1088. package/dist/src/harness/action-result-helpers.d.ts +0 -52
  1089. package/dist/src/harness/approval-outcome.d.ts +0 -32
  1090. package/dist/src/harness/attachment-staging.d.ts +0 -47
  1091. package/dist/src/harness/call-facts.d.ts +0 -34
  1092. package/dist/src/harness/call-outcome.d.ts +0 -6
  1093. package/dist/src/harness/compaction/config.d.ts +0 -17
  1094. package/dist/src/harness/compaction/engine.d.ts +0 -64
  1095. package/dist/src/harness/compaction/over-limit-error.d.ts +0 -8
  1096. package/dist/src/harness/compaction/prompt.d.ts +0 -50
  1097. package/dist/src/harness/compaction/step.d.ts +0 -42
  1098. package/dist/src/harness/coordination.d.ts +0 -80
  1099. package/dist/src/harness/emission.d.ts +0 -40
  1100. package/dist/src/harness/execute-call.d.ts +0 -31
  1101. package/dist/src/harness/final-output.d.ts +0 -15
  1102. package/dist/src/harness/finish-reason.d.ts +0 -8
  1103. package/dist/src/harness/generation-steering.d.ts +0 -24
  1104. package/dist/src/harness/hitl/approval-prompt.d.ts +0 -10
  1105. package/dist/src/harness/hitl/approved-calls.d.ts +0 -51
  1106. package/dist/src/harness/hitl/budget.d.ts +0 -28
  1107. package/dist/src/harness/hitl/stale-responses.d.ts +0 -46
  1108. package/dist/src/harness/interaction-facts.d.ts +0 -42
  1109. package/dist/src/harness/interaction-relay.d.ts +0 -10
  1110. package/dist/src/harness/interruptible-stream.d.ts +0 -5
  1111. package/dist/src/harness/kernel.d.ts +0 -9
  1112. package/dist/src/harness/model-call/call.d.ts +0 -113
  1113. package/dist/src/harness/model-call/errors.d.ts +0 -94
  1114. package/dist/src/harness/model-call/failure.d.ts +0 -17
  1115. package/dist/src/harness/model-call/model.d.ts +0 -17
  1116. package/dist/src/harness/model-call/recovery.d.ts +0 -24
  1117. package/dist/src/harness/model-call/request.d.ts +0 -42
  1118. package/dist/src/harness/model-call/response.d.ts +0 -53
  1119. package/dist/src/harness/model-call/retry.d.ts +0 -28
  1120. package/dist/src/harness/model-call/run.d.ts +0 -33
  1121. package/dist/src/harness/model-call/tools.d.ts +0 -19
  1122. package/dist/src/harness/model-call/unique-call-ids.d.ts +0 -13
  1123. package/dist/src/harness/model-call/usage.d.ts +0 -26
  1124. package/dist/src/harness/ordered-stream-emitter.d.ts +0 -19
  1125. package/dist/src/harness/prompt-cache.d.ts +0 -71
  1126. package/dist/src/harness/provider-safety.d.ts +0 -15
  1127. package/dist/src/harness/provider-tool-history.d.ts +0 -31
  1128. package/dist/src/harness/provider-tool-schemas.d.ts +0 -23
  1129. package/dist/src/harness/provider-tools.d.ts +0 -39
  1130. package/dist/src/harness/publication.d.ts +0 -4
  1131. package/dist/src/harness/request-envelope.d.ts +0 -8
  1132. package/dist/src/harness/running-work.d.ts +0 -10
  1133. package/dist/src/harness/runtime-action-settlement-state.d.ts +0 -3
  1134. package/dist/src/harness/semantic-errors/index.d.ts +0 -9
  1135. package/dist/src/harness/semantic-errors/rule.d.ts +0 -83
  1136. package/dist/src/harness/semantic-errors/rules/gateway.d.ts +0 -11
  1137. package/dist/src/harness/semantic-errors/rules/model-provider.d.ts +0 -11
  1138. package/dist/src/harness/semantic-errors/rules/sandbox.d.ts +0 -14
  1139. package/dist/src/harness/semantic-errors/rules/system.d.ts +0 -2
  1140. package/dist/src/harness/semantic-errors/rules/workflow.d.ts +0 -9
  1141. package/dist/src/harness/semantic-errors/signals.d.ts +0 -31
  1142. package/dist/src/harness/session-machine/calls.d.ts +0 -16
  1143. package/dist/src/harness/session-machine/cascade.d.ts +0 -18
  1144. package/dist/src/harness/session-machine/children.d.ts +0 -11
  1145. package/dist/src/harness/session-machine/content.d.ts +0 -4
  1146. package/dist/src/harness/session-machine/context-changes.d.ts +0 -32
  1147. package/dist/src/harness/session-machine/deliveries.d.ts +0 -41
  1148. package/dist/src/harness/session-machine/lines.d.ts +0 -21
  1149. package/dist/src/harness/session-machine/runs.d.ts +0 -44
  1150. package/dist/src/harness/session-machine/waiting.d.ts +0 -16
  1151. package/dist/src/harness/session-stream-write-error.d.ts +0 -11
  1152. package/dist/src/harness/session-usage.d.ts +0 -22
  1153. package/dist/src/harness/step/after-model.d.ts +0 -29
  1154. package/dist/src/harness/step/park.d.ts +0 -19
  1155. package/dist/src/harness/step-hooks.d.ts +0 -103
  1156. package/dist/src/harness/stream-actions.d.ts +0 -17
  1157. package/dist/src/harness/token-estimate.d.ts +0 -13
  1158. package/dist/src/harness/tool-call-input-errors.d.ts +0 -40
  1159. package/dist/src/harness/tool-call-io.d.ts +0 -28
  1160. package/dist/src/harness/tool-history-repair.d.ts +0 -11
  1161. package/dist/src/harness/tool-model-output.d.ts +0 -59
  1162. package/dist/src/harness/tool-output-serialization.d.ts +0 -17
  1163. package/dist/src/harness/turn-cancellation.d.ts +0 -16
  1164. package/dist/src/harness/usage-sink.d.ts +0 -21
  1165. package/dist/src/harness/user-parts.d.ts +0 -4
  1166. package/dist/src/harness/workflow-admission.d.ts +0 -6
  1167. package/dist/src/harness/workflow-stream-error.d.ts +0 -22
  1168. package/dist/src/harness/workflow-tool-runs.d.ts +0 -28
  1169. package/dist/src/instrumentation/ai-sdk-hook-bridge.d.ts +0 -4
  1170. package/dist/src/instrumentation/ai-sdk-telemetry.d.ts +0 -35
  1171. package/dist/src/instrumentation/ai-sdk-warnings.d.ts +0 -6
  1172. package/dist/src/instrumentation/channel-delivery.d.ts +0 -5
  1173. package/dist/src/instrumentation/content-policy.d.ts +0 -7
  1174. package/dist/src/instrumentation/content.d.ts +0 -10
  1175. package/dist/src/instrumentation/decide.d.ts +0 -4
  1176. package/dist/src/instrumentation/decision-results.d.ts +0 -37
  1177. package/dist/src/instrumentation/dispatch.d.ts +0 -2
  1178. package/dist/src/instrumentation/parent-lineage.d.ts +0 -11
  1179. package/dist/src/instrumentation/principal-summary.d.ts +0 -13
  1180. package/dist/src/instrumentation/providers.d.ts +0 -13
  1181. package/dist/src/instrumentation/scope.d.ts +0 -18
  1182. package/dist/src/instrumentation/session-context.d.ts +0 -25
  1183. package/dist/src/instrumentation/setup-context.d.ts +0 -1
  1184. package/dist/src/instrumentation/trace-decision.d.ts +0 -5
  1185. package/dist/src/internal/a2a/execution.d.ts +0 -56
  1186. package/dist/src/internal/a2a/json-rpc.d.ts +0 -18
  1187. package/dist/src/internal/agent-name.d.ts +0 -2
  1188. package/dist/src/internal/application/build-output-environment.d.ts +0 -3
  1189. package/dist/src/internal/application/build-profile.d.ts +0 -67
  1190. package/dist/src/internal/application/build-workspace.d.ts +0 -35
  1191. package/dist/src/internal/application/compiled-artifacts.d.ts +0 -74
  1192. package/dist/src/internal/application/dev-environment.d.ts +0 -32
  1193. package/dist/src/internal/application/dev-transport.d.ts +0 -4
  1194. package/dist/src/internal/application/import-specifier.d.ts +0 -19
  1195. package/dist/src/internal/application/optional-package-import.d.ts +0 -24
  1196. package/dist/src/internal/application/optional-package-install.d.ts +0 -37
  1197. package/dist/src/internal/application/output-publication-artifacts.d.ts +0 -7
  1198. package/dist/src/internal/application/output-publication-journal.d.ts +0 -30
  1199. package/dist/src/internal/application/output-publication-lock.d.ts +0 -16
  1200. package/dist/src/internal/application/output-publication.d.ts +0 -33
  1201. package/dist/src/internal/application/package.d.ts +0 -63
  1202. package/dist/src/internal/application/paths.d.ts +0 -37
  1203. package/dist/src/internal/application/production-compiler-artifacts.d.ts +0 -4
  1204. package/dist/src/internal/application/runtime-compiled-artifacts-source.d.ts +0 -6
  1205. package/dist/src/internal/application/stamped-package-version.d.ts +0 -5
  1206. package/dist/src/internal/application/tsconfig-dependencies.d.ts +0 -7
  1207. package/dist/src/internal/attachments/data.d.ts +0 -37
  1208. package/dist/src/internal/attachments/errors.d.ts +0 -41
  1209. package/dist/src/internal/attachments/limited-read.d.ts +0 -18
  1210. package/dist/src/internal/attachments/media-metadata.d.ts +0 -40
  1211. package/dist/src/internal/attachments/public-link.d.ts +0 -5
  1212. package/dist/src/internal/attachments/read-media-metadata.d.ts +0 -7
  1213. package/dist/src/internal/attachments/sandbox-refs.d.ts +0 -52
  1214. package/dist/src/internal/attachments/url-refs.d.ts +0 -17
  1215. package/dist/src/internal/authored-asset-import-plugin.d.ts +0 -24
  1216. package/dist/src/internal/authored-definition/approval.d.ts +0 -8
  1217. package/dist/src/internal/authored-definition/channel.d.ts +0 -16
  1218. package/dist/src/internal/authored-definition/connection.d.ts +0 -18
  1219. package/dist/src/internal/authored-definition/core.d.ts +0 -49
  1220. package/dist/src/internal/authored-definition/hook.d.ts +0 -5
  1221. package/dist/src/internal/authored-definition/memory.d.ts +0 -5
  1222. package/dist/src/internal/authored-definition/schedule-collection.d.ts +0 -2
  1223. package/dist/src/internal/authored-definition/schema-backed.d.ts +0 -57
  1224. package/dist/src/internal/authored-definition/source-identity.d.ts +0 -32
  1225. package/dist/src/internal/authored-module-build-options.d.ts +0 -13
  1226. package/dist/src/internal/authored-module-bundle.d.ts +0 -4
  1227. package/dist/src/internal/authored-module-cache.d.ts +0 -10
  1228. package/dist/src/internal/authored-module-conditions.d.ts +0 -2
  1229. package/dist/src/internal/authored-module-evaluation-error.d.ts +0 -2
  1230. package/dist/src/internal/authored-module-map-loader.d.ts +0 -8
  1231. package/dist/src/internal/authored-package-tsconfig-paths.d.ts +0 -17
  1232. package/dist/src/internal/authored-relative-extension-resolver.d.ts +0 -14
  1233. package/dist/src/internal/authored-runtime-modules.d.ts +0 -25
  1234. package/dist/src/internal/bundler/authored-plugins.d.ts +0 -30
  1235. package/dist/src/internal/bundler/extension-mount-plugin.d.ts +0 -19
  1236. package/dist/src/internal/bundler/extension-scope-plugin.d.ts +0 -45
  1237. package/dist/src/internal/bundler/filters.d.ts +0 -33
  1238. package/dist/src/internal/bundler/pseudo-packages.d.ts +0 -21
  1239. package/dist/src/internal/bundler/rolldown.d.ts +0 -30
  1240. package/dist/src/internal/bundler/vendored-dependency-log.d.ts +0 -6
  1241. package/dist/src/internal/capability-error.d.ts +0 -3
  1242. package/dist/src/internal/classify-model-routing.d.ts +0 -23
  1243. package/dist/src/internal/client-context.d.ts +0 -2
  1244. package/dist/src/internal/compiled-manifest-fingerprint.d.ts +0 -5
  1245. package/dist/src/internal/dev-boot-progress.d.ts +0 -13
  1246. package/dist/src/internal/development-programmatic-source-loader.d.ts +0 -7
  1247. package/dist/src/internal/eve-project-root.d.ts +0 -5
  1248. package/dist/src/internal/external-resources-snapshot.d.ts +0 -46
  1249. package/dist/src/internal/external-resources.d.ts +0 -19
  1250. package/dist/src/internal/gateway.d.ts +0 -11
  1251. package/dist/src/internal/helpers/frontmatter.d.ts +0 -24
  1252. package/dist/src/internal/helpers/markdown.d.ts +0 -42
  1253. package/dist/src/internal/host-traced-dependencies.d.ts +0 -16
  1254. package/dist/src/internal/http/basic-auth.d.ts +0 -1
  1255. package/dist/src/internal/http/json-body.d.ts +0 -16
  1256. package/dist/src/internal/http/request-guards.d.ts +0 -34
  1257. package/dist/src/internal/input-text.d.ts +0 -13
  1258. package/dist/src/internal/installed-packages.d.ts +0 -28
  1259. package/dist/src/internal/instrumentation-layout.d.ts +0 -14
  1260. package/dist/src/internal/instrumentation.d.ts +0 -29
  1261. package/dist/src/internal/invocation/agent-invocation.d.ts +0 -53
  1262. package/dist/src/internal/invocation/attributes.d.ts +0 -2
  1263. package/dist/src/internal/invocation/metadata.d.ts +0 -7
  1264. package/dist/src/internal/invocation/owned-run.d.ts +0 -110
  1265. package/dist/src/internal/invocation/workflow-execution.d.ts +0 -30
  1266. package/dist/src/internal/materialized-authored-modules.d.ts +0 -21
  1267. package/dist/src/internal/mcp/forwarded-principal-header.d.ts +0 -31
  1268. package/dist/src/internal/mcp/protected-resource.d.ts +0 -10
  1269. package/dist/src/internal/mcp/published-tools.d.ts +0 -20
  1270. package/dist/src/internal/mcp/request-trace-context.d.ts +0 -12
  1271. package/dist/src/internal/mcp/skills.d.ts +0 -57
  1272. package/dist/src/internal/mcp/streamable-http-server.d.ts +0 -114
  1273. package/dist/src/internal/mock-model-identity.d.ts +0 -2
  1274. package/dist/src/internal/model-auth/api-key.d.ts +0 -7
  1275. package/dist/src/internal/model-auth/available-models.d.ts +0 -2
  1276. package/dist/src/internal/model-auth/development-broker-client.d.ts +0 -3
  1277. package/dist/src/internal/model-auth/development-broker-protocol.d.ts +0 -12
  1278. package/dist/src/internal/model-auth/development-broker-server.d.ts +0 -4
  1279. package/dist/src/internal/model-auth/gateway-credential.d.ts +0 -2
  1280. package/dist/src/internal/model-auth/store.d.ts +0 -16
  1281. package/dist/src/internal/model-auth/transport.d.ts +0 -8
  1282. package/dist/src/internal/model-auth/vercel-cli.d.ts +0 -9
  1283. package/dist/src/internal/model-auth/vercel-team.d.ts +0 -3
  1284. package/dist/src/internal/model-auth/vercel.d.ts +0 -13
  1285. package/dist/src/internal/nitro/dev-client-address.d.ts +0 -36
  1286. package/dist/src/internal/nitro/dev-runtime-artifacts-retention.d.ts +0 -11
  1287. package/dist/src/internal/nitro/dev-runtime-artifacts.d.ts +0 -49
  1288. package/dist/src/internal/nitro/dev-runtime-generation-metadata.d.ts +0 -13
  1289. package/dist/src/internal/nitro/dev-runtime-source-snapshot-copy.d.ts +0 -2
  1290. package/dist/src/internal/nitro/dev-runtime-source-snapshot-local-roots.d.ts +0 -14
  1291. package/dist/src/internal/nitro/dev-runtime-source-snapshot.d.ts +0 -38
  1292. package/dist/src/internal/nitro/development-generation.d.ts +0 -33
  1293. package/dist/src/internal/nitro/host/artifacts-config.d.ts +0 -21
  1294. package/dist/src/internal/nitro/host/build-application.d.ts +0 -5
  1295. package/dist/src/internal/nitro/host/build-deployment-id.d.ts +0 -8
  1296. package/dist/src/internal/nitro/host/build-extension.d.ts +0 -15
  1297. package/dist/src/internal/nitro/host/build-vercel-agent-summary.d.ts +0 -34
  1298. package/dist/src/internal/nitro/host/connection-drain-plugin.d.ts +0 -12
  1299. package/dist/src/internal/nitro/host/copy-host-middleware.d.ts +0 -12
  1300. package/dist/src/internal/nitro/host/create-host-nitro.d.ts +0 -7
  1301. package/dist/src/internal/nitro/host/dev-authored-rebuild-coordinator.d.ts +0 -40
  1302. package/dist/src/internal/nitro/host/dev-authored-source-watcher.d.ts +0 -24
  1303. package/dist/src/internal/nitro/host/dev-build-host.d.ts +0 -83
  1304. package/dist/src/internal/nitro/host/dev-build-operations.d.ts +0 -6
  1305. package/dist/src/internal/nitro/host/dev-build-process.d.ts +0 -1
  1306. package/dist/src/internal/nitro/host/dev-host-candidate.d.ts +0 -17
  1307. package/dist/src/internal/nitro/host/dev-host-fingerprint.d.ts +0 -6
  1308. package/dist/src/internal/nitro/host/dev-host-supervisor.d.ts +0 -61
  1309. package/dist/src/internal/nitro/host/dev-host-workspace.d.ts +0 -10
  1310. package/dist/src/internal/nitro/host/dev-runner.d.ts +0 -19
  1311. package/dist/src/internal/nitro/host/dev-server-http.d.ts +0 -5
  1312. package/dist/src/internal/nitro/host/dev-server-state.d.ts +0 -20
  1313. package/dist/src/internal/nitro/host/dev-server-url.d.ts +0 -6
  1314. package/dist/src/internal/nitro/host/dev-watcher-log.d.ts +0 -40
  1315. package/dist/src/internal/nitro/host/dev-worker-entry.d.ts +0 -1
  1316. package/dist/src/internal/nitro/host/dev-workflow-world-setup.d.ts +0 -10
  1317. package/dist/src/internal/nitro/host/dispatch-schedule-in-dev.d.ts +0 -46
  1318. package/dist/src/internal/nitro/host/extension-build-config.d.ts +0 -20
  1319. package/dist/src/internal/nitro/host/extension-build-lock.d.ts +0 -9
  1320. package/dist/src/internal/nitro/host/extension-declarations.d.ts +0 -10
  1321. package/dist/src/internal/nitro/host/extension-distribution.d.ts +0 -32
  1322. package/dist/src/internal/nitro/host/extension-external-dependencies.d.ts +0 -7
  1323. package/dist/src/internal/nitro/host/extension-state-usage.d.ts +0 -7
  1324. package/dist/src/internal/nitro/host/external-dependency-output-check.d.ts +0 -20
  1325. package/dist/src/internal/nitro/host/externals-policy.d.ts +0 -21
  1326. package/dist/src/internal/nitro/host/host-plugins.d.ts +0 -46
  1327. package/dist/src/internal/nitro/host/host-routes.d.ts +0 -100
  1328. package/dist/src/internal/nitro/host/host-spec.d.ts +0 -70
  1329. package/dist/src/internal/nitro/host/hosted-graph-plugin.d.ts +0 -44
  1330. package/dist/src/internal/nitro/host/instrumentation-entry.d.ts +0 -35
  1331. package/dist/src/internal/nitro/host/local-schedules-runtime-plugin.d.ts +0 -5
  1332. package/dist/src/internal/nitro/host/local-tracing-runtime.d.ts +0 -6
  1333. package/dist/src/internal/nitro/host/ports.d.ts +0 -18
  1334. package/dist/src/internal/nitro/host/prepare-application-host.d.ts +0 -26
  1335. package/dist/src/internal/nitro/host/route-handlers.d.ts +0 -65
  1336. package/dist/src/internal/nitro/host/runtime-plugin.d.ts +0 -17
  1337. package/dist/src/internal/nitro/host/sandbox-shutdown-plugin.d.ts +0 -32
  1338. package/dist/src/internal/nitro/host/skill-files-plugin.d.ts +0 -21
  1339. package/dist/src/internal/nitro/host/stage-build-deployment-id.d.ts +0 -2
  1340. package/dist/src/internal/nitro/host/start-development-server.d.ts +0 -20
  1341. package/dist/src/internal/nitro/host/start-production-server.d.ts +0 -9
  1342. package/dist/src/internal/nitro/host/timezone-schedules-runtime.d.ts +0 -13
  1343. package/dist/src/internal/nitro/host/types.d.ts +0 -91
  1344. package/dist/src/internal/nitro/host/vercel-build-output-config.d.ts +0 -49
  1345. package/dist/src/internal/nitro/host/vercel-build-prewarm.d.ts +0 -12
  1346. package/dist/src/internal/nitro/host/vercel-output.d.ts +0 -17
  1347. package/dist/src/internal/nitro/host/vercel-schedule-name.d.ts +0 -17
  1348. package/dist/src/internal/nitro/host/workflow-sandbox-runtime.d.ts +0 -2
  1349. package/dist/src/internal/nitro/host/workspace-extensions.d.ts +0 -31
  1350. package/dist/src/internal/nitro/host.d.ts +0 -4
  1351. package/dist/src/internal/nitro/routes/agent-info/build-agent-info-response.d.ts +0 -11
  1352. package/dist/src/internal/nitro/routes/agent-info/load-agent-info-data.d.ts +0 -25
  1353. package/dist/src/internal/nitro/routes/channel-dispatch.d.ts +0 -20
  1354. package/dist/src/internal/nitro/routes/channel-request-instrumentation.d.ts +0 -17
  1355. package/dist/src/internal/nitro/routes/channel-route-context.d.ts +0 -39
  1356. package/dist/src/internal/nitro/routes/connection-events.d.ts +0 -5
  1357. package/dist/src/internal/nitro/routes/dev-runtime-artifacts.d.ts +0 -10
  1358. package/dist/src/internal/nitro/routes/dev-schedule-dispatch.d.ts +0 -14
  1359. package/dist/src/internal/nitro/routes/index.d.ts +0 -14
  1360. package/dist/src/internal/nitro/routes/info.d.ts +0 -5
  1361. package/dist/src/internal/nitro/routes/method-guard.d.ts +0 -6
  1362. package/dist/src/internal/nitro/routes/route-invoke-tool.d.ts +0 -24
  1363. package/dist/src/internal/nitro/routes/runtime-artifacts.d.ts +0 -29
  1364. package/dist/src/internal/nitro/routes/runtime-stack.d.ts +0 -29
  1365. package/dist/src/internal/nitro/routes/schedule-collection-consumer.d.ts +0 -9
  1366. package/dist/src/internal/nitro/routes/schedule-task.d.ts +0 -24
  1367. package/dist/src/internal/node-esm-compat-banner.d.ts +0 -45
  1368. package/dist/src/internal/package-imports-hook.d.ts +0 -1
  1369. package/dist/src/internal/package-imports.d.ts +0 -2
  1370. package/dist/src/internal/package-name.d.ts +0 -8
  1371. package/dist/src/internal/project-context.d.ts +0 -31
  1372. package/dist/src/internal/resolve-model-endpoint-status.d.ts +0 -61
  1373. package/dist/src/internal/runtime-model.d.ts +0 -21
  1374. package/dist/src/internal/runtime-registry.d.ts +0 -76
  1375. package/dist/src/internal/schedules/consumer-route.d.ts +0 -19
  1376. package/dist/src/internal/schedules/dev-environment.d.ts +0 -2
  1377. package/dist/src/internal/schedules/disabled.d.ts +0 -2
  1378. package/dist/src/internal/schedules/verify-delivery.d.ts +0 -25
  1379. package/dist/src/internal/user-agent.d.ts +0 -13
  1380. package/dist/src/internal/vercel/api-resource.d.ts +0 -4
  1381. package/dist/src/internal/vercel/assemble-eve-services.d.ts +0 -18
  1382. package/dist/src/internal/vercel/build-agent-workspace.d.ts +0 -5
  1383. package/dist/src/internal/vercel/build-command.d.ts +0 -5
  1384. package/dist/src/internal/vercel/build-multi-agent-landing-page.d.ts +0 -3
  1385. package/dist/src/internal/vercel/eve-service-contribution.d.ts +0 -32
  1386. package/dist/src/internal/vercel/project-link.d.ts +0 -11
  1387. package/dist/src/internal/vercel/vercel-service-config-operations.d.ts +0 -18
  1388. package/dist/src/internal/vercel/vercel-service-name.d.ts +0 -6
  1389. package/dist/src/internal/vercel-agent-summary.d.ts +0 -248
  1390. package/dist/src/internal/workflow/builtins.d.ts +0 -34
  1391. package/dist/src/internal/workflow/cancel-expired-development-run.d.ts +0 -2
  1392. package/dist/src/internal/workflow/development-run-unavailable-error.d.ts +0 -15
  1393. package/dist/src/internal/workflow/development-runtime-compatibility.d.ts +0 -12
  1394. package/dist/src/internal/workflow/development-world-client.d.ts +0 -29
  1395. package/dist/src/internal/workflow/development-world-codec.d.ts +0 -12
  1396. package/dist/src/internal/workflow/development-world-protocol.d.ts +0 -36
  1397. package/dist/src/internal/workflow/development-world-server.d.ts +0 -29
  1398. package/dist/src/internal/workflow/index.d.ts +0 -6
  1399. package/dist/src/internal/workflow/local-world-data-directory.d.ts +0 -3
  1400. package/dist/src/internal/workflow/local-world-delivery-auth.d.ts +0 -17
  1401. package/dist/src/internal/workflow/local-world-delivery-timeouts.d.ts +0 -7
  1402. package/dist/src/internal/workflow/local-world-recovery.d.ts +0 -23
  1403. package/dist/src/internal/workflow/owner-deployment-deleted.d.ts +0 -9
  1404. package/dist/src/internal/workflow/queue-namespace.d.ts +0 -19
  1405. package/dist/src/internal/workflow/runtime.d.ts +0 -5
  1406. package/dist/src/internal/workflow/spec-version-default.d.ts +0 -9
  1407. package/dist/src/internal/workflow/start-claim.d.ts +0 -16
  1408. package/dist/src/internal/workflow/validate-world.d.ts +0 -16
  1409. package/dist/src/internal/workflow/vercel-world-defaults.d.ts +0 -4
  1410. package/dist/src/internal/workflow/world-compatibility.d.ts +0 -22
  1411. package/dist/src/internal/workflow/world-target.d.ts +0 -7
  1412. package/dist/src/internal/workflow-bundle/authored-workflow-directives.d.ts +0 -16
  1413. package/dist/src/internal/workflow-bundle/builder.d.ts +0 -26
  1414. package/dist/src/internal/workflow-bundle/flow-route.d.ts +0 -2
  1415. package/dist/src/internal/workflow-bundle/framework-driver-cache.d.ts +0 -30
  1416. package/dist/src/internal/workflow-bundle/nitro-step-entry.d.ts +0 -21
  1417. package/dist/src/internal/workflow-bundle/stable-module-id.d.ts +0 -6
  1418. package/dist/src/internal/workflow-bundle/workflow-core-shim.d.ts +0 -83
  1419. package/dist/src/internal/workflow-bundle/workflow-directive-ast.d.ts +0 -8
  1420. package/dist/src/internal/workflow-bundle/workflow-source-ast.d.ts +0 -6
  1421. package/dist/src/internal/workflow-bundle/workflow-transformer.d.ts +0 -37
  1422. package/dist/src/memory/definition.d.ts +0 -85
  1423. package/dist/src/protocol/baggage.d.ts +0 -26
  1424. package/dist/src/protocol/catalog-tools.d.ts +0 -12
  1425. package/dist/src/protocol/interaction-json.d.ts +0 -68
  1426. package/dist/src/protocol/remote-agent-protocol.d.ts +0 -45
  1427. package/dist/src/protocol/reply-tool.d.ts +0 -2
  1428. package/dist/src/protocol/reset-session.d.ts +0 -12
  1429. package/dist/src/protocol/routes.d.ts +0 -160
  1430. package/dist/src/protocol/runtime-tools.d.ts +0 -6
  1431. package/dist/src/protocol/session-events/common.d.ts +0 -105
  1432. package/dist/src/protocol/session-events/index.d.ts +0 -16
  1433. package/dist/src/protocol/session-events/schemas.d.ts +0 -320
  1434. package/dist/src/protocol/session-http.d.ts +0 -7
  1435. package/dist/src/protocol/session-lines.d.ts +0 -19
  1436. package/dist/src/protocol/session-projection/display-name.d.ts +0 -15
  1437. package/dist/src/protocol/session-projection/index.d.ts +0 -4
  1438. package/dist/src/protocol/session-projection/tree.d.ts +0 -72
  1439. package/dist/src/protocol/traceparent.d.ts +0 -24
  1440. package/dist/src/protocol/v26-interactions.d.ts +0 -11
  1441. package/dist/src/protocol/v26-lines.d.ts +0 -5
  1442. package/dist/src/public/channels/chat-sdk/attachment-refs.d.ts +0 -15
  1443. package/dist/src/public/channels/chat-sdk/audience.d.ts +0 -9
  1444. package/dist/src/public/channels/chat-sdk/authorization.d.ts +0 -6
  1445. package/dist/src/public/channels/chat-sdk/fetch-message.d.ts +0 -10
  1446. package/dist/src/public/channels/chat-sdk/input-actions.d.ts +0 -22
  1447. package/dist/src/public/channels/chat-sdk/reply-context.d.ts +0 -15
  1448. package/dist/src/public/channels/discord/attachments.d.ts +0 -15
  1449. package/dist/src/public/channels/discord/audience.d.ts +0 -14
  1450. package/dist/src/public/channels/discord/authorization.d.ts +0 -35
  1451. package/dist/src/public/channels/discord/gateway/forwarder.d.ts +0 -14
  1452. package/dist/src/public/channels/discord/hitl.d.ts +0 -48
  1453. package/dist/src/public/channels/discord/responses.d.ts +0 -11
  1454. package/dist/src/public/channels/discord/verifyInbound.d.ts +0 -6
  1455. package/dist/src/public/channels/github/checkout.d.ts +0 -53
  1456. package/dist/src/public/channels/github/constants.d.ts +0 -2
  1457. package/dist/src/public/channels/github/dispatch.d.ts +0 -61
  1458. package/dist/src/public/channels/github/limits.d.ts +0 -2
  1459. package/dist/src/public/channels/linear/constants.d.ts +0 -2
  1460. package/dist/src/public/channels/linear/hitl.d.ts +0 -9
  1461. package/dist/src/public/channels/linear/inbound-uploads.d.ts +0 -21
  1462. package/dist/src/public/channels/linq/inboundContent.d.ts +0 -17
  1463. package/dist/src/public/channels/photon/attachments.d.ts +0 -24
  1464. package/dist/src/public/channels/photon/inboundContent.d.ts +0 -11
  1465. package/dist/src/public/channels/reply.d.ts +0 -22
  1466. package/dist/src/public/channels/same-environment-oidc.d.ts +0 -7
  1467. package/dist/src/public/channels/slack/action-status.d.ts +0 -14
  1468. package/dist/src/public/channels/slack/answers.d.ts +0 -13
  1469. package/dist/src/public/channels/slack/app-manifest.d.ts +0 -14
  1470. package/dist/src/public/channels/slack/attachments.d.ts +0 -67
  1471. package/dist/src/public/channels/slack/auth.d.ts +0 -27
  1472. package/dist/src/public/channels/slack/connections.d.ts +0 -50
  1473. package/dist/src/public/channels/slack/constants.d.ts +0 -7
  1474. package/dist/src/public/channels/slack/inbound-content.d.ts +0 -4
  1475. package/dist/src/public/channels/slack/interaction-cards.d.ts +0 -34
  1476. package/dist/src/public/channels/slack/interactions.d.ts +0 -56
  1477. package/dist/src/public/channels/slack/limits.d.ts +0 -103
  1478. package/dist/src/public/channels/slack/model-context.d.ts +0 -34
  1479. package/dist/src/public/channels/slack/mrkdwn.d.ts +0 -2
  1480. package/dist/src/public/channels/slack/privacy.d.ts +0 -24
  1481. package/dist/src/public/channels/slack/private-approval-delivery.d.ts +0 -34
  1482. package/dist/src/public/channels/slack/request-card-render.d.ts +0 -51
  1483. package/dist/src/public/channels/slack/request-cards.d.ts +0 -36
  1484. package/dist/src/public/channels/slack/sign-in-cancel.d.ts +0 -18
  1485. package/dist/src/public/channels/slack/slash-command.d.ts +0 -13
  1486. package/dist/src/public/channels/slack/space.d.ts +0 -17
  1487. package/dist/src/public/channels/slack/task-card.d.ts +0 -24
  1488. package/dist/src/public/channels/slack/thread-status.d.ts +0 -33
  1489. package/dist/src/public/channels/slack/utils.d.ts +0 -1
  1490. package/dist/src/public/channels/teams/authorization.d.ts +0 -49
  1491. package/dist/src/public/channels/teams/hitl.d.ts +0 -73
  1492. package/dist/src/public/channels/teams/limits.d.ts +0 -8
  1493. package/dist/src/public/channels/teams/space.d.ts +0 -9
  1494. package/dist/src/public/channels/telegram/attachments.d.ts +0 -31
  1495. package/dist/src/public/channels/telegram/audience.d.ts +0 -10
  1496. package/dist/src/public/channels/telegram/authorization-callback.d.ts +0 -10
  1497. package/dist/src/public/channels/telegram/authorization.d.ts +0 -15
  1498. package/dist/src/public/channels/telegram/state.d.ts +0 -8
  1499. package/dist/src/public/channels/text.d.ts +0 -4
  1500. package/dist/src/public/channels/twilio/defaults.d.ts +0 -9
  1501. package/dist/src/public/channels/twilio/routing.d.ts +0 -14
  1502. package/dist/src/public/definitions/connections/protocol.d.ts +0 -12
  1503. package/dist/src/public/definitions/removed-event-keys.d.ts +0 -2
  1504. package/dist/src/public/memory/file/backends/default.d.ts +0 -7
  1505. package/dist/src/public/memory/file/backends/lazy.d.ts +0 -3
  1506. package/dist/src/public/models/openai/chatgpt/auth.d.ts +0 -4
  1507. package/dist/src/public/models/openai/chatgpt/codex-app-server.d.ts +0 -41
  1508. package/dist/src/public/models/openai/chatgpt/credential-store.d.ts +0 -28
  1509. package/dist/src/public/models/openai/chatgpt/model.d.ts +0 -9
  1510. package/dist/src/public/models/openai/chatgpt/oauth.d.ts +0 -22
  1511. package/dist/src/public/models/openai/chatgpt/token-broker.d.ts +0 -34
  1512. package/dist/src/public/models/openai/chatgpt/token.d.ts +0 -13
  1513. package/dist/src/public/models/openai/chatgpt/transport.d.ts +0 -15
  1514. package/dist/src/public/next/server.d.ts +0 -22
  1515. package/dist/src/public/next/vercel-output-config.d.ts +0 -19
  1516. package/dist/src/public/nuxt/production-origin.d.ts +0 -12
  1517. package/dist/src/public/schedules/testing.d.ts +0 -1
  1518. package/dist/src/runtime/actions/results.d.ts +0 -6
  1519. package/dist/src/runtime/agent/bootstrap-model-utils.d.ts +0 -47
  1520. package/dist/src/runtime/agent/bootstrap-model.d.ts +0 -7
  1521. package/dist/src/runtime/agent/mock-model-adapter.d.ts +0 -19
  1522. package/dist/src/runtime/agent/mock-model-fixtures.d.ts +0 -11
  1523. package/dist/src/runtime/agent/mock-model-skill-selection.d.ts +0 -11
  1524. package/dist/src/runtime/agent/mock-structured-output.d.ts +0 -5
  1525. package/dist/src/runtime/agent/resolve-model.d.ts +0 -35
  1526. package/dist/src/runtime/attributes/emit.d.ts +0 -32
  1527. package/dist/src/runtime/authorization-context.d.ts +0 -19
  1528. package/dist/src/runtime/cache-key.d.ts +0 -9
  1529. package/dist/src/runtime/connections/approval-scope.d.ts +0 -9
  1530. package/dist/src/runtime/connections/authorization-complete-page.d.ts +0 -23
  1531. package/dist/src/runtime/connections/authorization-tokens.d.ts +0 -50
  1532. package/dist/src/runtime/connections/events/actions.d.ts +0 -17
  1533. package/dist/src/runtime/connections/events/delivery.d.ts +0 -10
  1534. package/dist/src/runtime/connections/events/dispatch-step.d.ts +0 -20
  1535. package/dist/src/runtime/connections/events/lifecycle-step.d.ts +0 -42
  1536. package/dist/src/runtime/connections/events/owner.d.ts +0 -38
  1537. package/dist/src/runtime/connections/events/owners.d.ts +0 -15
  1538. package/dist/src/runtime/connections/events/path.d.ts +0 -4
  1539. package/dist/src/runtime/connections/events/state.d.ts +0 -37
  1540. package/dist/src/runtime/connections/events/workflow.d.ts +0 -28
  1541. package/dist/src/runtime/connections/instance-identity.d.ts +0 -9
  1542. package/dist/src/runtime/connections/mcp-client.d.ts +0 -88
  1543. package/dist/src/runtime/connections/mcp-tracing.d.ts +0 -14
  1544. package/dist/src/runtime/connections/openapi-client.d.ts +0 -42
  1545. package/dist/src/runtime/connections/openapi-operations.d.ts +0 -34
  1546. package/dist/src/runtime/connections/openapi-schema.d.ts +0 -44
  1547. package/dist/src/runtime/connections/openapi-security.d.ts +0 -42
  1548. package/dist/src/runtime/connections/openapi-spec.d.ts +0 -15
  1549. package/dist/src/runtime/connections/principal.d.ts +0 -73
  1550. package/dist/src/runtime/connections/provided-arguments.d.ts +0 -10
  1551. package/dist/src/runtime/connections/registry-types.d.ts +0 -14
  1552. package/dist/src/runtime/connections/registry.d.ts +0 -42
  1553. package/dist/src/runtime/connections/resolve-authorization.d.ts +0 -11
  1554. package/dist/src/runtime/connections/tool-result.d.ts +0 -27
  1555. package/dist/src/runtime/development-generation.d.ts +0 -8
  1556. package/dist/src/runtime/loaders/artifact-paths.d.ts +0 -21
  1557. package/dist/src/runtime/loaders/bundled-artifacts.d.ts +0 -40
  1558. package/dist/src/runtime/loaders/compile-metadata.d.ts +0 -14
  1559. package/dist/src/runtime/loaders/manifest.d.ts +0 -21
  1560. package/dist/src/runtime/loaders/model-metadata.d.ts +0 -4
  1561. package/dist/src/runtime/loaders/module-map.d.ts +0 -21
  1562. package/dist/src/runtime/prompt/compose.d.ts +0 -14
  1563. package/dist/src/runtime/resolve-agent-graph.d.ts +0 -17
  1564. package/dist/src/runtime/resolve-agent.d.ts +0 -18
  1565. package/dist/src/runtime/resolve-channel.d.ts +0 -17
  1566. package/dist/src/runtime/resolve-connection.d.ts +0 -20
  1567. package/dist/src/runtime/resolve-definition.d.ts +0 -24
  1568. package/dist/src/runtime/resolve-helpers.d.ts +0 -43
  1569. package/dist/src/runtime/resolve-sandbox.d.ts +0 -4
  1570. package/dist/src/runtime/resolve-tool.d.ts +0 -14
  1571. package/dist/src/runtime/sandbox/prepared-artifacts.d.ts +0 -12
  1572. package/dist/src/runtime/schedules/dispatch-occurrence.d.ts +0 -34
  1573. package/dist/src/runtime/schedules/load-collection.d.ts +0 -14
  1574. package/dist/src/runtime/schedules/named-scope.d.ts +0 -11
  1575. package/dist/src/runtime/schedules/payload.d.ts +0 -24
  1576. package/dist/src/runtime/schedules/queue-namespace.d.ts +0 -2
  1577. package/dist/src/runtime/schedules/record.d.ts +0 -4
  1578. package/dist/src/runtime/schedules/register.d.ts +0 -32
  1579. package/dist/src/runtime/schedules/resolve-schedule.d.ts +0 -31
  1580. package/dist/src/runtime/schedules/validation.d.ts +0 -6
  1581. package/dist/src/runtime/sessions/compiled-session-agent.d.ts +0 -13
  1582. package/dist/src/runtime/sessions/runtime-session.d.ts +0 -66
  1583. package/dist/src/runtime/subagents/workflow-reference.d.ts +0 -8
  1584. package/dist/src/runtime/validation.d.ts +0 -5
  1585. package/dist/src/runtime/workspace/seed-files.d.ts +0 -12
  1586. package/dist/src/runtime/workspace/spec.d.ts +0 -6
  1587. package/dist/src/sandbox/providers.d.ts +0 -4
  1588. package/dist/src/self-modification/credentials.d.ts +0 -6
  1589. package/dist/src/self-modification/deployed-sandbox.d.ts +0 -9
  1590. package/dist/src/self-modification/extension/classify-registry-item.d.ts +0 -22
  1591. package/dist/src/self-modification/extension/config-schema.d.ts +0 -10
  1592. package/dist/src/self-modification/extension/eve-add.d.ts +0 -61
  1593. package/dist/src/self-modification/extension/local-only.d.ts +0 -5
  1594. package/dist/src/self-modification/extension/subagents/agent/agent.d.ts +0 -30
  1595. package/dist/src/self-modification/extension/subagents/agent/instructions.d.ts +0 -2
  1596. package/dist/src/self-modification/extension/subagents/agent/sandbox.d.ts +0 -3
  1597. package/dist/src/self-modification/extension/subagents/agent/skills/trace_analysis.d.ts +0 -10
  1598. package/dist/src/self-modification/extension/subagents/agent/tools/edit_file.d.ts +0 -16
  1599. package/dist/src/self-modification/extension/subagents/agent/tools/inspect_trace.d.ts +0 -128
  1600. package/dist/src/self-modification/extension/subagents/agent/tools/inspect_trace_spans.d.ts +0 -80
  1601. package/dist/src/self-modification/extension/subagents/agent/tools/registry_add.d.ts +0 -56
  1602. package/dist/src/self-modification/extension/subagents/agent/tools/search_models.d.ts +0 -22
  1603. package/dist/src/self-modification/extension/subagents/agent/tools/search_registry.d.ts +0 -100
  1604. package/dist/src/self-modification/extension/subagents/agent/tools/search_traces.d.ts +0 -53
  1605. package/dist/src/self-modification/extension/trace-inspection.d.ts +0 -15
  1606. package/dist/src/self-modification/filesystem.d.ts +0 -7
  1607. package/dist/src/self-modification/git-workspace.d.ts +0 -31
  1608. package/dist/src/self-modification/git.d.ts +0 -10
  1609. package/dist/src/self-modification/github-publisher.d.ts +0 -28
  1610. package/dist/src/self-modification/identifiers.d.ts +0 -4
  1611. package/dist/src/self-modification/mode.d.ts +0 -13
  1612. package/dist/src/self-modification/network-policy.d.ts +0 -1
  1613. package/dist/src/self-modification/proposal.d.ts +0 -37
  1614. package/dist/src/self-modification/remote/config-schema.d.ts +0 -20
  1615. package/dist/src/self-modification/remote/production-registry-add.d.ts +0 -42
  1616. package/dist/src/self-modification/remote/subagents/agent/agent.d.ts +0 -7
  1617. package/dist/src/self-modification/remote/subagents/agent/instructions.d.ts +0 -2
  1618. package/dist/src/self-modification/remote/subagents/agent/sandbox.d.ts +0 -2
  1619. package/dist/src/self-modification/remote/subagents/agent/tools/edit_file.d.ts +0 -1
  1620. package/dist/src/self-modification/remote/subagents/agent/tools/publish.d.ts +0 -5
  1621. package/dist/src/self-modification/remote/subagents/agent/tools/registry_add.d.ts +0 -30
  1622. package/dist/src/self-modification/remote/subagents/agent/tools/search_models.d.ts +0 -1
  1623. package/dist/src/self-modification/remote/subagents/agent/tools/search_registry.d.ts +0 -1
  1624. package/dist/src/self-modification/scaffold.d.ts +0 -2
  1625. package/dist/src/self-modification/setup.d.ts +0 -48
  1626. package/dist/src/self-modification/subagent-guidance.d.ts +0 -15
  1627. package/dist/src/self-modification/workspace-lock.d.ts +0 -2
  1628. package/dist/src/services/dev-client/agent-info-probe.d.ts +0 -18
  1629. package/dist/src/services/dev-client/client-options.d.ts +0 -25
  1630. package/dist/src/services/dev-client/credential-gate.d.ts +0 -24
  1631. package/dist/src/services/dev-client/local-host.d.ts +0 -4
  1632. package/dist/src/services/dev-client/request-headers.d.ts +0 -54
  1633. package/dist/src/services/dev-client/runtime-artifacts.d.ts +0 -28
  1634. package/dist/src/services/dev-client/target.d.ts +0 -19
  1635. package/dist/src/services/dev-client/vercel-auth-error.d.ts +0 -34
  1636. package/dist/src/services/dev-client.d.ts +0 -42
  1637. package/dist/src/services/inspect-application.d.ts +0 -23
  1638. package/dist/src/setup/ai-gateway-api-key.d.ts +0 -16
  1639. package/dist/src/setup/append-env.d.ts +0 -22
  1640. package/dist/src/setup/ask-editable.d.ts +0 -22
  1641. package/dist/src/setup/ask-signals.d.ts +0 -23
  1642. package/dist/src/setup/ask.d.ts +0 -206
  1643. package/dist/src/setup/boxes/apply-ai-gateway-credential.d.ts +0 -29
  1644. package/dist/src/setup/boxes/deploy-project.d.ts +0 -73
  1645. package/dist/src/setup/boxes/detect-ai-gateway.d.ts +0 -17
  1646. package/dist/src/setup/boxes/link-project.d.ts +0 -34
  1647. package/dist/src/setup/boxes/model-capabilities.d.ts +0 -24
  1648. package/dist/src/setup/boxes/resolve-provisioning.d.ts +0 -76
  1649. package/dist/src/setup/boxes/select-model.d.ts +0 -14
  1650. package/dist/src/setup/cli/channel-setup-prompter.d.ts +0 -51
  1651. package/dist/src/setup/cli/command-output.d.ts +0 -12
  1652. package/dist/src/setup/cli/connection-add-prompter.d.ts +0 -8
  1653. package/dist/src/setup/cli/index.d.ts +0 -8
  1654. package/dist/src/setup/cli/option-row.d.ts +0 -100
  1655. package/dist/src/setup/cli/prompt-ui.d.ts +0 -160
  1656. package/dist/src/setup/cli/rail-log.d.ts +0 -51
  1657. package/dist/src/setup/cli/select-component.d.ts +0 -90
  1658. package/dist/src/setup/cli/select-option-codec.d.ts +0 -13
  1659. package/dist/src/setup/cli/select-state.d.ts +0 -87
  1660. package/dist/src/setup/cli/whimsy.d.ts +0 -16
  1661. package/dist/src/setup/connect-provisioning.d.ts +0 -33
  1662. package/dist/src/setup/connection-connector.d.ts +0 -45
  1663. package/dist/src/setup/flows/chatgpt-auth.d.ts +0 -15
  1664. package/dist/src/setup/flows/deploy.d.ts +0 -43
  1665. package/dist/src/setup/flows/ensure-vercel-project.d.ts +0 -23
  1666. package/dist/src/setup/flows/in-project.d.ts +0 -16
  1667. package/dist/src/setup/flows/install-vercel-cli.d.ts +0 -47
  1668. package/dist/src/setup/flows/link.d.ts +0 -63
  1669. package/dist/src/setup/flows/login.d.ts +0 -53
  1670. package/dist/src/setup/flows/model-login-connection.d.ts +0 -20
  1671. package/dist/src/setup/flows/model-login-options.d.ts +0 -59
  1672. package/dist/src/setup/flows/model-login-progress.d.ts +0 -7
  1673. package/dist/src/setup/flows/model-login.d.ts +0 -26
  1674. package/dist/src/setup/flows/model-source-change.d.ts +0 -44
  1675. package/dist/src/setup/flows/model.d.ts +0 -7
  1676. package/dist/src/setup/flows/provider.d.ts +0 -27
  1677. package/dist/src/setup/flows/registry-session.d.ts +0 -61
  1678. package/dist/src/setup/flows/registry.d.ts +0 -41
  1679. package/dist/src/setup/flows/vercel-model-login.d.ts +0 -5
  1680. package/dist/src/setup/headless.d.ts +0 -46
  1681. package/dist/src/setup/human-action.d.ts +0 -23
  1682. package/dist/src/setup/index.d.ts +0 -15
  1683. package/dist/src/setup/integrations/discord/api.d.ts +0 -23
  1684. package/dist/src/setup/integrations/discord/connect.d.ts +0 -24
  1685. package/dist/src/setup/integrations/discord/daemon.d.ts +0 -18
  1686. package/dist/src/setup/integrations/discord/setup.d.ts +0 -52
  1687. package/dist/src/setup/integrations/file-memory/setup.d.ts +0 -15
  1688. package/dist/src/setup/integrations/file-memory/vercel.d.ts +0 -103
  1689. package/dist/src/setup/integrations/github/connect.d.ts +0 -28
  1690. package/dist/src/setup/integrations/github/setup.d.ts +0 -44
  1691. package/dist/src/setup/integrations/linear/connect.d.ts +0 -42
  1692. package/dist/src/setup/integrations/linear/setup.d.ts +0 -31
  1693. package/dist/src/setup/integrations/linq/connect.d.ts +0 -31
  1694. package/dist/src/setup/integrations/linq/management.d.ts +0 -6
  1695. package/dist/src/setup/integrations/linq/setup.d.ts +0 -18
  1696. package/dist/src/setup/integrations/photon/connect.d.ts +0 -38
  1697. package/dist/src/setup/integrations/photon/management.d.ts +0 -42
  1698. package/dist/src/setup/integrations/photon/setup-flow.d.ts +0 -44
  1699. package/dist/src/setup/integrations/photon/setup.d.ts +0 -1
  1700. package/dist/src/setup/integrations/registry.d.ts +0 -4
  1701. package/dist/src/setup/integrations/runner.d.ts +0 -32
  1702. package/dist/src/setup/integrations/self-modification/setup.d.ts +0 -37
  1703. package/dist/src/setup/integrations/shared/environment.d.ts +0 -16
  1704. package/dist/src/setup/integrations/shared/prerequisite.d.ts +0 -25
  1705. package/dist/src/setup/integrations/shared/scaffold.d.ts +0 -20
  1706. package/dist/src/setup/integrations/shared/ui.d.ts +0 -26
  1707. package/dist/src/setup/integrations/shared/vercel-project.d.ts +0 -12
  1708. package/dist/src/setup/integrations/shopify/setup.d.ts +0 -21
  1709. package/dist/src/setup/integrations/shopify/templates.d.ts +0 -1
  1710. package/dist/src/setup/integrations/slack/setup.d.ts +0 -51
  1711. package/dist/src/setup/integrations/teams/connect.d.ts +0 -22
  1712. package/dist/src/setup/integrations/teams/setup.d.ts +0 -22
  1713. package/dist/src/setup/integrations/telegram/connect.d.ts +0 -27
  1714. package/dist/src/setup/integrations/telegram/management.d.ts +0 -6
  1715. package/dist/src/setup/integrations/telegram/setup.d.ts +0 -25
  1716. package/dist/src/setup/integrations/types.d.ts +0 -64
  1717. package/dist/src/setup/integrations/web/auth-options.d.ts +0 -4
  1718. package/dist/src/setup/integrations/web/auth-scaffold.d.ts +0 -7
  1719. package/dist/src/setup/integrations/web/framework.d.ts +0 -8
  1720. package/dist/src/setup/integrations/web/hosting.d.ts +0 -43
  1721. package/dist/src/setup/integrations/web/provision-auth.d.ts +0 -3
  1722. package/dist/src/setup/integrations/web/setup.d.ts +0 -25
  1723. package/dist/src/setup/path-exists.d.ts +0 -1
  1724. package/dist/src/setup/primitives/coding-agent-env.d.ts +0 -17
  1725. package/dist/src/setup/primitives/index.d.ts +0 -4
  1726. package/dist/src/setup/primitives/open-url.d.ts +0 -14
  1727. package/dist/src/setup/primitives/pm/bun.d.ts +0 -10
  1728. package/dist/src/setup/primitives/pm/index.d.ts +0 -11
  1729. package/dist/src/setup/primitives/pm/npm.d.ts +0 -10
  1730. package/dist/src/setup/primitives/pm/pnpm-build-policy.d.ts +0 -16
  1731. package/dist/src/setup/primitives/pm/pnpm.d.ts +0 -46
  1732. package/dist/src/setup/primitives/pm/process-result.d.ts +0 -35
  1733. package/dist/src/setup/primitives/pm/run.d.ts +0 -38
  1734. package/dist/src/setup/primitives/pm/shared.d.ts +0 -9
  1735. package/dist/src/setup/primitives/pm/types.d.ts +0 -53
  1736. package/dist/src/setup/primitives/pm/yarn.d.ts +0 -10
  1737. package/dist/src/setup/primitives/process-abort.d.ts +0 -7
  1738. package/dist/src/setup/primitives/process-output.d.ts +0 -25
  1739. package/dist/src/setup/primitives/run-vercel.d.ts +0 -79
  1740. package/dist/src/setup/project-name.d.ts +0 -5
  1741. package/dist/src/setup/project-resolution.d.ts +0 -65
  1742. package/dist/src/setup/prompter.d.ts +0 -274
  1743. package/dist/src/setup/provider-settings.d.ts +0 -25
  1744. package/dist/src/setup/question-options.d.ts +0 -15
  1745. package/dist/src/setup/quit-guard.d.ts +0 -48
  1746. package/dist/src/setup/registry-setup-client.d.ts +0 -21
  1747. package/dist/src/setup/registry-setup-completion.d.ts +0 -3
  1748. package/dist/src/setup/registry-setup-protocol.d.ts +0 -108
  1749. package/dist/src/setup/run-vercel-link.d.ts +0 -10
  1750. package/dist/src/setup/runner.d.ts +0 -52
  1751. package/dist/src/setup/scaffold/channels-catalog.d.ts +0 -31
  1752. package/dist/src/setup/scaffold/create/add-to-project.d.ts +0 -36
  1753. package/dist/src/setup/scaffold/create/agent-paths.d.ts +0 -5
  1754. package/dist/src/setup/scaffold/create/extension.d.ts +0 -30
  1755. package/dist/src/setup/scaffold/create/instructions-template.d.ts +0 -1
  1756. package/dist/src/setup/scaffold/create/web-template.d.ts +0 -99
  1757. package/dist/src/setup/scaffold/create-in-place.d.ts +0 -1
  1758. package/dist/src/setup/scaffold/files.d.ts +0 -10
  1759. package/dist/src/setup/scaffold/index.d.ts +0 -9
  1760. package/dist/src/setup/scaffold/update/dependencies.d.ts +0 -12
  1761. package/dist/src/setup/scaffold/update/module-files.d.ts +0 -3
  1762. package/dist/src/setup/scaffold/update/update-connection-connector.d.ts +0 -8
  1763. package/dist/src/setup/scaffold/update/update-slack-channel.d.ts +0 -23
  1764. package/dist/src/setup/scaffold/workspace-glob.d.ts +0 -4
  1765. package/dist/src/setup/setup-question-wire.d.ts +0 -48
  1766. package/dist/src/setup/slack-connect-create.d.ts +0 -49
  1767. package/dist/src/setup/slack-connect-lifecycle.d.ts +0 -160
  1768. package/dist/src/setup/slack-connect.d.ts +0 -79
  1769. package/dist/src/setup/slack-setup-plan.d.ts +0 -72
  1770. package/dist/src/setup/slackbot.d.ts +0 -125
  1771. package/dist/src/setup/state.d.ts +0 -183
  1772. package/dist/src/setup/step.d.ts +0 -49
  1773. package/dist/src/setup/validate-gateway-key.d.ts +0 -30
  1774. package/dist/src/setup/vercel-api-failure.d.ts +0 -7
  1775. package/dist/src/setup/vercel-deployment.d.ts +0 -60
  1776. package/dist/src/setup/vercel-project-api.d.ts +0 -45
  1777. package/dist/src/setup/vercel-project-framework.d.ts +0 -24
  1778. package/dist/src/setup/vercel-project.d.ts +0 -87
  1779. package/dist/src/setup/vercel-trace-sampling.d.ts +0 -3
  1780. package/dist/src/setup/verified-remote-agent.d.ts +0 -29
  1781. package/dist/src/setup/verified-remote-client.d.ts +0 -30
  1782. package/dist/src/setup/with-spinner.d.ts +0 -3
  1783. package/dist/src/shared/action-label.d.ts +0 -12
  1784. package/dist/src/shared/action-request-name.d.ts +0 -5
  1785. package/dist/src/shared/agent-info-access.d.ts +0 -5
  1786. package/dist/src/shared/answers-delivery-id.d.ts +0 -1
  1787. package/dist/src/shared/async-iterable.d.ts +0 -2
  1788. package/dist/src/shared/atomic-write-file.d.ts +0 -11
  1789. package/dist/src/shared/built-server-start-failure.d.ts +0 -16
  1790. package/dist/src/shared/chatgpt-model.d.ts +0 -16
  1791. package/dist/src/shared/continuation-token.d.ts +0 -2
  1792. package/dist/src/shared/conversation-identity.d.ts +0 -2
  1793. package/dist/src/shared/default-agent-model.d.ts +0 -14
  1794. package/dist/src/shared/dev-checks.d.ts +0 -8
  1795. package/dist/src/shared/development-env-files.d.ts +0 -4
  1796. package/dist/src/shared/errors.d.ts +0 -22
  1797. package/dist/src/shared/eve-route-path.d.ts +0 -4
  1798. package/dist/src/shared/extension-mount.d.ts +0 -2
  1799. package/dist/src/shared/extension-package-contract.d.ts +0 -16
  1800. package/dist/src/shared/format-duration.d.ts +0 -2
  1801. package/dist/src/shared/framework-eve-integration.d.ts +0 -33
  1802. package/dist/src/shared/gateway-model-catalog.d.ts +0 -44
  1803. package/dist/src/shared/gateway-routing.d.ts +0 -20
  1804. package/dist/src/shared/gateway-service-tier.d.ts +0 -20
  1805. package/dist/src/shared/git.d.ts +0 -16
  1806. package/dist/src/shared/guards.d.ts +0 -54
  1807. package/dist/src/shared/html-to-markdown.d.ts +0 -21
  1808. package/dist/src/shared/instrumentation-channel-kind.d.ts +0 -3
  1809. package/dist/src/shared/json-schemas.d.ts +0 -10
  1810. package/dist/src/shared/line-diff.d.ts +0 -11
  1811. package/dist/src/shared/map-concurrent.d.ts +0 -2
  1812. package/dist/src/shared/map-with-concurrency.d.ts +0 -2
  1813. package/dist/src/shared/memory-state.d.ts +0 -12
  1814. package/dist/src/shared/model-connection.d.ts +0 -17
  1815. package/dist/src/shared/model-endpoint-status.d.ts +0 -33
  1816. package/dist/src/shared/model-helper.d.ts +0 -26
  1817. package/dist/src/shared/model-summary.d.ts +0 -8
  1818. package/dist/src/shared/network-address.d.ts +0 -38
  1819. package/dist/src/shared/objects.d.ts +0 -5
  1820. package/dist/src/shared/package-name.d.ts +0 -4
  1821. package/dist/src/shared/path-exists.d.ts +0 -9
  1822. package/dist/src/shared/path-inside.d.ts +0 -2
  1823. package/dist/src/shared/poll-until.d.ts +0 -5
  1824. package/dist/src/shared/presentation-text.d.ts +0 -8
  1825. package/dist/src/shared/principal-scope.d.ts +0 -2
  1826. package/dist/src/shared/public-route-prefix.d.ts +0 -23
  1827. package/dist/src/shared/read-optional-file.d.ts +0 -2
  1828. package/dist/src/shared/rename-with-retry.d.ts +0 -5
  1829. package/dist/src/shared/resolve-eve-binary.d.ts +0 -12
  1830. package/dist/src/shared/restriction.d.ts +0 -13
  1831. package/dist/src/shared/result.d.ts +0 -12
  1832. package/dist/src/shared/run-errors.d.ts +0 -39
  1833. package/dist/src/shared/sandbox-prepared-artifacts.d.ts +0 -16
  1834. package/dist/src/shared/sandbox-recorded-data-error.d.ts +0 -4
  1835. package/dist/src/shared/sandbox-tool-session-error.d.ts +0 -4
  1836. package/dist/src/shared/schedule-collection-tools.d.ts +0 -11
  1837. package/dist/src/shared/schedule-timezone.d.ts +0 -6
  1838. package/dist/src/shared/session-auth.d.ts +0 -39
  1839. package/dist/src/shared/shell-quote.d.ts +0 -2
  1840. package/dist/src/shared/skill-package.d.ts +0 -49
  1841. package/dist/src/shared/skill-paths.d.ts +0 -24
  1842. package/dist/src/shared/text-boundaries.d.ts +0 -19
  1843. package/dist/src/shared/token-usage-math.d.ts +0 -5
  1844. package/dist/src/shared/trace-root.d.ts +0 -8
  1845. package/dist/src/shared/ulid.d.ts +0 -33
  1846. package/dist/src/shared/validate-authorization.d.ts +0 -21
  1847. package/dist/src/shared/value-delta.d.ts +0 -40
  1848. package/dist/src/shared/vercel-output-directory.d.ts +0 -2
  1849. package/dist/src/shared/vercel-project.d.ts +0 -27
  1850. package/dist/src/shared/wait-with-signal.d.ts +0 -2
  1851. package/dist/src/shared/workflow-function-id.d.ts +0 -2
  1852. package/dist/src/shared/workflow-sandbox.d.ts +0 -10
  1853. package/dist/src/shared/workflow-tool-context.d.ts +0 -2
  1854. package/dist/src/source-change/agent-config-ast.d.ts +0 -61
  1855. package/dist/src/source-change/agent-config-string-path.d.ts +0 -18
  1856. package/dist/src/source-change/apply-agent-model-settings.d.ts +0 -27
  1857. package/dist/src/source-change/apply-model-selection.d.ts +0 -15
  1858. package/dist/src/source-change/static-source-change.d.ts +0 -51
  1859. package/dist/src/subagents/adapter-state.d.ts +0 -39
  1860. package/dist/src/subagents/adapter.d.ts +0 -8
  1861. package/dist/src/subagents/callback-route.d.ts +0 -2
  1862. package/dist/src/subagents/event-proxy-step.d.ts +0 -23
  1863. package/dist/src/subagents/hitl-proxy.d.ts +0 -47
  1864. package/dist/src/subagents/parent-notification.d.ts +0 -47
  1865. package/dist/src/subagents/protocol-two-callback.d.ts +0 -27
  1866. package/dist/src/subagents/remote-route-url.d.ts +0 -2
  1867. package/dist/src/tool-stubs/execute.d.ts +0 -10
  1868. package/dist/src/tool-stubs/output.d.ts +0 -4
  1869. package/dist/src/tool-stubs/playback.d.ts +0 -15
  1870. package/dist/src/tool-stubs/rules.d.ts +0 -3
  1871. package/dist/src/tool-stubs/schema.d.ts +0 -4
  1872. package/dist/src/tool-stubs/target.d.ts +0 -8
  1873. package/dist/src/tool-stubs/validate-targets.d.ts +0 -6
  1874. package/dist/src/tools/agent-models.d.ts +0 -7
  1875. package/dist/src/tools/framework/agent-contract.d.ts +0 -4
  1876. package/dist/src/tools/provided/ask-question-body.d.ts +0 -10
  1877. package/dist/src/tools/provided/ask-question-workflow.d.ts +0 -4
  1878. package/dist/src/tools/provided/framework-tool.d.ts +0 -13
  1879. package/dist/src/tools/provided/sleep-workflow.d.ts +0 -4
  1880. package/dist/src/tools/provided/task-cancel.d.ts +0 -6
  1881. package/dist/src/tools/provided/task-wait.d.ts +0 -9
  1882. package/dist/src/tools/signature.d.ts +0 -16
  1883. package/dist/src/tools/tool-label.d.ts +0 -1
  1884. package/dist/src/tools/workflow-body.d.ts +0 -15
  1885. package/dist/src/tools/workflow-program-input.d.ts +0 -6
  1886. package/dist/src/tracing/eve/agent-approval-instrumentation.d.ts +0 -13
  1887. package/dist/src/tracing/eve/agent-channel-delivery-instrumentation.d.ts +0 -7
  1888. package/dist/src/tracing/eve/agent-memory-instrumentation.d.ts +0 -17
  1889. package/dist/src/tracing/eve/agent-otel-provider.d.ts +0 -30
  1890. package/dist/src/tracing/eve/agent-tool-instrumentation.d.ts +0 -43
  1891. package/dist/src/tracing/eve/agent-trace-context-store.d.ts +0 -24
  1892. package/dist/src/tracing/eve/agent-trace-context.d.ts +0 -3
  1893. package/dist/src/tracing/eve/agent-trace-state.d.ts +0 -70
  1894. package/dist/src/tracing/eve/batch-span-processor.d.ts +0 -25
  1895. package/dist/src/tracing/eve/channel-audience-context.d.ts +0 -4
  1896. package/dist/src/tracing/eve/connection-authorization.d.ts +0 -11
  1897. package/dist/src/tracing/eve/connection-events.d.ts +0 -25
  1898. package/dist/src/tracing/eve/content-span-processor.d.ts +0 -1
  1899. package/dist/src/tracing/eve/conversation-context.d.ts +0 -15
  1900. package/dist/src/tracing/eve/delegation.d.ts +0 -20
  1901. package/dist/src/tracing/eve/gateway.d.ts +0 -22
  1902. package/dist/src/tracing/eve/install-instrumentation-runtime.d.ts +0 -19
  1903. package/dist/src/tracing/eve/invoke-tool-span.d.ts +0 -63
  1904. package/dist/src/tracing/eve/mcp.d.ts +0 -30
  1905. package/dist/src/tracing/eve/metadata.d.ts +0 -7
  1906. package/dist/src/tracing/eve/operation-input.d.ts +0 -18
  1907. package/dist/src/tracing/eve/policy.d.ts +0 -15
  1908. package/dist/src/tracing/eve/profile.d.ts +0 -7
  1909. package/dist/src/tracing/eve/session.d.ts +0 -32
  1910. package/dist/src/tracing/eve/vercel-runtime-span-exporter.d.ts +0 -5
  1911. package/dist/src/tracing/local/agent-trace-span-processor.d.ts +0 -16
  1912. package/dist/src/tracing/local/inspection.d.ts +0 -15
  1913. package/dist/src/tracing/local/instrumentation-runtime.d.ts +0 -7
  1914. package/dist/src/tracing/local/trace-analysis.d.ts +0 -52
  1915. package/dist/src/tracing/local/trace-discovery-index.d.ts +0 -13
  1916. package/dist/src/tracing/local/trace-operations.d.ts +0 -13
  1917. package/dist/src/tracing/local/trace-query.d.ts +0 -18
  1918. package/dist/src/tracing/local/trace-reader.d.ts +0 -83
  1919. package/dist/src/tracing/local/trace-retention.d.ts +0 -67
  1920. package/dist/src/tracing/local/trace-span-processor.d.ts +0 -19
  1921. package/dist/src/tracing/local/trace-summary.d.ts +0 -31
  1922. package/dist/src/tracing/local/traces.d.ts +0 -27
  1923. /package/dist/src/compiled/_chunks/{workflow → node}/LogRecord-CbGROCJy.js +0 -0
  1924. /package/dist/src/compiled/_chunks/{workflow → node}/_eve-core-quickjs-entrypoint-stub-qIV0OaFz.js +0 -0
  1925. /package/dist/src/compiled/_chunks/{workflow → node}/global-singleton-BNinwFrL.js +0 -0
  1926. /package/dist/src/compiled/_chunks/{workflow → node}/private-DD2PSMRM.js +0 -0
  1927. /package/dist/src/compiled/_chunks/{workflow → node}/queue-auth-C7YIFJ-G.js +0 -0
  1928. /package/dist/src/compiled/_chunks/{workflow → node}/run-id-Ct9AjQDR.js +0 -0
  1929. /package/dist/src/compiled/_chunks/{workflow → node}/workflow-routes-BaljomCk.js +0 -0
@@ -1,3364 +0,0 @@
1
- import { AISDKError, APICallError, Experimental_BatchV4Status, Experimental_SpeechModelV4StreamPart, Experimental_TranscriptionModelV4StreamPart, ImageModelV4File, JSONObject, JSONParseError, JSONSchema7, JSONValue, LanguageModelV4CallOptions, LanguageModelV4FilePart, LanguageModelV4FunctionTool, LanguageModelV4Prompt, LanguageModelV4ProviderTool, LanguageModelV4ResponseMetadata, LanguageModelV4StreamPart, LanguageModelV4Usage, SharedV4AudioFormat, SharedV4FileDataReference, SharedV4FileDataText, SharedV4FileDataUrl, SharedV4ProviderMetadata, SharedV4ProviderOptions, SharedV4ProviderReference, SharedV4Warning, TypeValidationContext, TypeValidationError, getErrorMessage } from "#compiled/@ai-sdk/provider/index.js";
2
- import { $ZodType } from "zod/v4/core";
3
- import { EventSourceMessage, EventSourceParserStream } from "#compiled/eventsource-parser/stream/index.js";
4
- import { WORKFLOW_DESERIALIZE, WORKFLOW_SERIALIZE } from "#compiled/@workflow/serde/index.js";
5
- import { StandardJSONSchemaV1, StandardSchemaV1 } from "#compiled/@standard-schema/spec/index.js";
6
- import * as z3 from "#compiled/zod/index.js";
7
- export type * from "#compiled/@standard-schema/spec/index.js";
8
- //#region src/as-array.d.ts
9
- /**
10
- * A value that can be provided either as a single item, an array of items,
11
- * or be left undefined.
12
- */
13
- type Arrayable<T> = T | T[] | undefined;
14
- /**
15
- * Normalizes a possibly undefined or non-array value into an array.
16
- */
17
- export declare function asArray<T>(value: Arrayable<T>): T[];
18
- //#endregion
19
- //#region src/combine-headers.d.ts
20
- export declare function combineHeaders(...headers: Array<Record<string, string | undefined> | undefined>): Record<string, string | undefined>;
21
- //#endregion
22
- //#region src/websocket.d.ts
23
- type WebSocketLike = {
24
- readyState: number;
25
- /** Bytes queued by `send` but not yet transmitted (native + `ws`). */
26
- readonly bufferedAmount?: number;
27
- send(data: string | Uint8Array | ArrayBuffer): void;
28
- close(code?: number, reason?: string): void;
29
- onopen: ((event: unknown) => void) | null;
30
- onmessage: ((event: {
31
- data: unknown;
32
- }) => void) | null;
33
- onerror: ((event: unknown) => void) | null;
34
- onclose: ((event: unknown) => void) | null;
35
- };
36
- type WebSocketConstructor = new (url: string | URL, protocols?: string | string[], options?: {
37
- headers?: Record<string, string | undefined>;
38
- }) => WebSocketLike;
39
- export declare function getWebSocketConstructor(webSocket: WebSocketConstructor | undefined): WebSocketConstructor;
40
- /**
41
- * Converts an http(s) URL to the corresponding ws(s) URL.
42
- */
43
- export declare function toWebSocketUrl(url: string | URL): URL;
44
- /**
45
- * Reads WebSocket message data as text, handling string, binary,
46
- * and Blob payloads.
47
- */
48
- export declare function readWebSocketMessageText(data: unknown): Promise<string>;
49
- /**
50
- * Waits until the socket's send buffer drains below `highWaterMark` bytes.
51
- * No-op for implementations that do not expose `bufferedAmount`. There is no
52
- * portable drain event, so this polls. Returns as soon as the socket is no
53
- * longer open or the signal aborts — `bufferedAmount` never drains on a
54
- * closed socket, so waiting on would poll forever.
55
- */
56
- export declare function waitForWebSocketBufferDrain(socket: WebSocketLike, { highWaterMark, pollIntervalMs, abortSignal }?: {
57
- highWaterMark?: number;
58
- pollIntervalMs?: number;
59
- abortSignal?: AbortSignal;
60
- }): Promise<void>;
61
- //#endregion
62
- //#region src/connect-to-websocket.d.ts
63
- interface WebSocketConnection {
64
- /** Undefined when the constructor threw or the signal was already aborted. */
65
- socket: WebSocketLike | undefined;
66
- /**
67
- * Unregisters the abort listener and closes the socket. Never throws.
68
- * Handlers stay attached; callers guard their own terminal state.
69
- */
70
- close: (code?: number) => void;
71
- }
72
- /**
73
- * Opens a WebSocket for a provider model, owning the transport-generic layer
74
- * (analogous to `postToApi` for HTTP): constructor resolution, header hygiene,
75
- * abort wiring, and message decoding. Callers own the URL, the auth channel
76
- * (subprotocols vs headers), and the wire protocol.
77
- */
78
- export declare function connectToWebSocket({ url, protocols, headers, webSocket, abortSignal, onOpen, onMessageText, onProcessingError, onSocketError, onClose, onAbort }: {
79
- url: string | URL;
80
- protocols?: string | string[];
81
- headers?: Record<string, string | undefined>;
82
- webSocket?: WebSocketConstructor;
83
- abortSignal?: AbortSignal;
84
- onOpen?: (socket: WebSocketLike) => void;
85
- /** One decoded message. Throws and rejections go to `onProcessingError`. */
86
- onMessageText: (text: string) => void | PromiseLike<void>;
87
- /** Constructor throws and message decoding/processing failures. */
88
- onProcessingError: (error: unknown) => void;
89
- onSocketError?: () => void;
90
- /**
91
- * Receives the close code and reason when the transport provides them
92
- * (native `CloseEvent` / `ws` close event).
93
- */
94
- onClose?: (info: {
95
- code?: number;
96
- reason?: string;
97
- }) => void;
98
- /** Also called (without opening a socket) when the signal is already aborted. */
99
- onAbort?: (reason: unknown) => void;
100
- }): WebSocketConnection;
101
- //#endregion
102
- //#region src/convert-async-iterator-to-readable-stream.d.ts
103
- /**
104
- * Converts an AsyncIterator to a ReadableStream.
105
- *
106
- * @template T - The type of elements produced by the AsyncIterator.
107
- * @param { <T>} iterator - The AsyncIterator to convert.
108
- * @returns {ReadableStream<T>} - A ReadableStream that provides the same data as the AsyncIterator.
109
- */
110
- export declare function convertAsyncIteratorToReadableStream<T>(iterator: AsyncIterator<T>): ReadableStream<T>;
111
- //#endregion
112
- //#region src/types/data-content.d.ts
113
- /**
114
- * Data content. Can either be a base64-encoded string, a Uint8Array, an ArrayBuffer, or a Buffer.
115
- */
116
- type DataContent = string | Uint8Array | ArrayBuffer | Buffer;
117
- //#endregion
118
- //#region src/types/file-data.d.ts
119
- /**
120
- * File data variant containing raw bytes (`Uint8Array`, `ArrayBuffer`, or
121
- * `Buffer`) or a base64-encoded string.
122
- *
123
- * This is slightly more permissive than `SharedV4FileDataData`.
124
- */
125
- interface FileDataData {
126
- type: 'data';
127
- data: DataContent;
128
- }
129
- /**
130
- * File data variant containing a URL that points to the file.
131
- */
132
- type FileDataUrl = SharedV4FileDataUrl;
133
- /**
134
- * File data variant containing a provider reference (`{ [provider]: id }`).
135
- */
136
- type FileDataReference = SharedV4FileDataReference;
137
- /**
138
- * File data variant containing inline text content (e.g. an inline text
139
- * document).
140
- */
141
- type FileDataText = SharedV4FileDataText;
142
- /**
143
- * File data as a tagged discriminated union:
144
- *
145
- * - `{ type: 'data', data }`: raw bytes (`Uint8Array`, `ArrayBuffer`, or
146
- * `Buffer`) or a base64-encoded string.
147
- * - `{ type: 'url', url }`: a URL that points to the file.
148
- * - `{ type: 'reference', reference }`: a provider reference (`{ [provider]: id }`).
149
- * - `{ type: 'text', text }`: inline text content (e.g. an inline text document).
150
- */
151
- type FileData = FileDataData | FileDataUrl | FileDataReference | FileDataText;
152
- //#endregion
153
- //#region src/types/provider-options.d.ts
154
- /**
155
- * Additional provider-specific options.
156
- *
157
- * They are passed through to the provider from the AI SDK and enable
158
- * provider-specific functionality that can be fully encapsulated in the provider.
159
- */
160
- type ProviderOptions = SharedV4ProviderOptions;
161
- //#endregion
162
- //#region src/types/provider-reference.d.ts
163
- /**
164
- * A mapping of provider names to provider-specific file identifiers.
165
- *
166
- * Provider references allow files to be identified across different
167
- * providers without re-uploading, by storing each provider's own
168
- * identifier for the same logical file.
169
- */
170
- type ProviderReference = SharedV4ProviderReference;
171
- //#endregion
172
- //#region src/types/content-part.d.ts
173
- /**
174
- * Text content part of a prompt. It contains a string of text.
175
- */
176
- interface TextPart {
177
- type: 'text';
178
- /**
179
- * The text content.
180
- */
181
- text: string;
182
- /**
183
- * Additional provider-specific metadata. They are passed through
184
- * to the provider from the AI SDK and enable provider-specific
185
- * functionality that can be fully encapsulated in the provider.
186
- */
187
- providerOptions?: ProviderOptions;
188
- }
189
- /**
190
- * Image content part of a prompt. It contains an image.
191
- *
192
- * @deprecated Use `FilePart` with `mediaType: 'image'` instead:
193
- * `{ type: 'file', mediaType: 'image', data: { type: 'data', data } }`.
194
- */
195
- interface ImagePart {
196
- type: 'image';
197
- /**
198
- * Image data. Can either be:
199
- *
200
- * - data: a base64-encoded string, a Uint8Array, an ArrayBuffer, or a Buffer
201
- * - URL: a URL that points to the image
202
- * - ProviderReference: a provider reference from `uploadFile`
203
- */
204
- image: DataContent | URL | ProviderReference;
205
- /**
206
- * Optional IANA media type of the image.
207
- *
208
- * @see https://www.iana.org/assignments/media-types/media-types.xhtml
209
- */
210
- mediaType?: string;
211
- /**
212
- * Additional provider-specific metadata. They are passed through
213
- * to the provider from the AI SDK and enable provider-specific
214
- * functionality that can be fully encapsulated in the provider.
215
- */
216
- providerOptions?: ProviderOptions;
217
- }
218
- /**
219
- * File content part of a prompt. It contains a file.
220
- */
221
- interface FilePart {
222
- type: 'file';
223
- /**
224
- * File data. Either a tagged shape or a bare shorthand:
225
- *
226
- * - `{ type: 'data', data }` or bare `DataContent`: raw bytes
227
- * (base64 string, Uint8Array, ArrayBuffer, Buffer)
228
- * - `{ type: 'url', url }` or bare `URL`: a URL that points to the file
229
- * - `{ type: 'reference', reference }` or bare `ProviderReference`:
230
- * a provider reference from `uploadFile`
231
- * - `{ type: 'text', text }`: inline text content (tagged only)
232
- */
233
- data: FileData | DataContent | URL | ProviderReference;
234
- /**
235
- * Optional filename of the file.
236
- */
237
- filename?: string;
238
- /**
239
- * Either a full IANA media type (`type/subtype`, e.g. `image/png`) or just
240
- * the top-level IANA segment (e.g. `image`, `audio`, `video`, `text`).
241
- *
242
- * `*`-subtype wildcards (e.g. `image/*`) are normalized as equivalent to the
243
- * top-level segment alone (e.g. `image`). Providers can use the helpers in
244
- * `@ai-sdk/provider-utils` (`isFullMediaType`, `getTopLevelMediaType`,
245
- * `detectMediaType`) to resolve the field according to their API
246
- * requirements.
247
- *
248
- * @see https://www.iana.org/assignments/media-types/media-types.xhtml
249
- */
250
- mediaType: string;
251
- /**
252
- * Additional provider-specific metadata. They are passed through
253
- * to the provider from the AI SDK and enable provider-specific
254
- * functionality that can be fully encapsulated in the provider.
255
- */
256
- providerOptions?: ProviderOptions;
257
- }
258
- /**
259
- * Reasoning content part of a prompt. It contains a reasoning.
260
- */
261
- interface ReasoningPart {
262
- type: 'reasoning';
263
- /**
264
- * The reasoning text.
265
- */
266
- text: string;
267
- /**
268
- * Additional provider-specific metadata. They are passed through
269
- * to the provider from the AI SDK and enable provider-specific
270
- * functionality that can be fully encapsulated in the provider.
271
- */
272
- providerOptions?: ProviderOptions;
273
- }
274
- /**
275
- * Custom content part of a prompt. It contains no standardized payload beyond
276
- * provider-specific options.
277
- */
278
- interface CustomPart {
279
- type: 'custom';
280
- /**
281
- * The kind of custom content, in the format `{provider}.{provider-type}`.
282
- */
283
- kind: `${string}.${string}`;
284
- /**
285
- * Additional provider-specific metadata. They are passed through
286
- * to the provider from the AI SDK and enable provider-specific
287
- * functionality that can be fully encapsulated in the provider.
288
- */
289
- providerOptions?: ProviderOptions;
290
- }
291
- /**
292
- * Reasoning file content part of a prompt. It contains a file generated as part of reasoning.
293
- */
294
- interface ReasoningFilePart {
295
- type: 'reasoning-file';
296
- /**
297
- * Reasoning file data.
298
- *
299
- * Reasoning files originate from a model's reasoning output and are always
300
- * raw bytes or a fetchable URL. Unlike `FilePart.data`, the `reference` and
301
- * `text` shapes are not supported here: provider references describe files
302
- * uploaded by the user (not produced as model output), and reasoning text is
303
- * carried by `ReasoningPart` rather than as a file.
304
- *
305
- * Either a tagged shape or a bare shorthand:
306
- *
307
- * - `{ type: 'data', data }` or bare `DataContent`: raw bytes
308
- * (base64 string, Uint8Array, ArrayBuffer, Buffer)
309
- * - `{ type: 'url', url }` or bare `URL`: a URL that points to the file
310
- */
311
- data: FileDataData | FileDataUrl | DataContent | URL;
312
- /**
313
- * IANA media type of the file.
314
- *
315
- * @see https://www.iana.org/assignments/media-types/media-types.xhtml
316
- */
317
- mediaType: string;
318
- /**
319
- * Additional provider-specific metadata. They are passed through
320
- * to the provider from the AI SDK and enable provider-specific
321
- * functionality that can be fully encapsulated in the provider.
322
- */
323
- providerOptions?: ProviderOptions;
324
- }
325
- /**
326
- * Tool call content part of a prompt. It contains a tool call (usually generated by the AI model).
327
- */
328
- interface ToolCallPart {
329
- type: 'tool-call';
330
- /**
331
- * ID of the tool call. This ID is used to match the tool call with the tool result.
332
- */
333
- toolCallId: string;
334
- /**
335
- * Name of the tool that is being called.
336
- */
337
- toolName: string;
338
- /**
339
- * Arguments of the tool call. This is a JSON-serializable object that matches the tool's input schema.
340
- */
341
- input: unknown;
342
- /**
343
- * Additional provider-specific metadata. They are passed through
344
- * to the provider from the AI SDK and enable provider-specific
345
- * functionality that can be fully encapsulated in the provider.
346
- */
347
- providerOptions?: ProviderOptions;
348
- /**
349
- * Whether the tool call was executed by the provider.
350
- */
351
- providerExecuted?: boolean;
352
- }
353
- /**
354
- * Tool result content part of a prompt. It contains the result of the tool call with the matching ID.
355
- */
356
- interface ToolResultPart {
357
- type: 'tool-result';
358
- /**
359
- * ID of the tool call that this result is associated with.
360
- */
361
- toolCallId: string;
362
- /**
363
- * Name of the tool that generated this result.
364
- */
365
- toolName: string;
366
- /**
367
- * Result of the tool call. This is a JSON-serializable object.
368
- */
369
- output: ToolResultOutput;
370
- /**
371
- * Additional provider-specific metadata. They are passed through
372
- * to the provider from the AI SDK and enable provider-specific
373
- * functionality that can be fully encapsulated in the provider.
374
- */
375
- providerOptions?: ProviderOptions;
376
- }
377
- /**
378
- * Output of a tool result.
379
- */
380
- type ToolResultOutput = {
381
- /**
382
- * Text tool output that should be directly sent to the API.
383
- */
384
- type: 'text';
385
- value: string;
386
- /**
387
- * Provider-specific options.
388
- */
389
- providerOptions?: ProviderOptions;
390
- } | {
391
- type: 'json';
392
- value: JSONValue;
393
- /**
394
- * Provider-specific options.
395
- */
396
- providerOptions?: ProviderOptions;
397
- } | {
398
- /**
399
- * Type when the user has denied the execution of the tool call.
400
- */
401
- type: 'execution-denied';
402
- /**
403
- * Optional reason for the execution denial.
404
- */
405
- reason?: string;
406
- /**
407
- * Provider-specific options.
408
- */
409
- providerOptions?: ProviderOptions;
410
- } | {
411
- type: 'error-text';
412
- value: string;
413
- /**
414
- * Provider-specific options.
415
- */
416
- providerOptions?: ProviderOptions;
417
- } | {
418
- type: 'error-json';
419
- value: JSONValue;
420
- /**
421
- * Provider-specific options.
422
- */
423
- providerOptions?: ProviderOptions;
424
- } | {
425
- type: 'content';
426
- value: Array<{
427
- type: 'text';
428
- /**
429
- * Text content.
430
- */
431
- text: string;
432
- /**
433
- * Provider-specific options.
434
- */
435
- providerOptions?: ProviderOptions;
436
- } | {
437
- type: 'file';
438
- /**
439
- * File data as a tagged discriminated union:
440
- *
441
- * - `{ type: 'data', data }`: raw bytes
442
- * (base64 string, Uint8Array, ArrayBuffer, Buffer)
443
- * - `{ type: 'url', url }`: a URL that points to the file
444
- * - `{ type: 'reference', reference }`: a provider reference
445
- * from `uploadFile`
446
- * - `{ type: 'text', text }`: inline text content (e.g. an inline
447
- * text document)
448
- */
449
- data: FileData;
450
- /**
451
- * Either a full IANA media type (`type/subtype`, e.g. `image/png`) or just
452
- * the top-level IANA segment (e.g. `image`, `audio`, `video`, `text`).
453
- *
454
- * `*`-subtype wildcards (e.g. `image/*`) are normalized as equivalent to the
455
- * top-level segment alone (e.g. `image`). Providers can use the helpers in
456
- * `@ai-sdk/provider-utils` (`isFullMediaType`, `getTopLevelMediaType`,
457
- * `detectMediaType`) to resolve the field according to their API
458
- * requirements.
459
- *
460
- * @see https://www.iana.org/assignments/media-types/media-types.xhtml
461
- */
462
- mediaType: string;
463
- /**
464
- * Optional filename of the file.
465
- */
466
- filename?: string;
467
- /**
468
- * Provider-specific options.
469
- */
470
- providerOptions?: ProviderOptions;
471
- } | {
472
- /**
473
- * @deprecated Use 'file' with mediaType + tagged data instead:
474
- * `{ type: 'file', mediaType, data: { type: 'data', data } }`.
475
- */
476
- type: 'file-data';
477
- /**
478
- * Base-64 encoded media data.
479
- */
480
- data: string;
481
- /**
482
- * IANA media type.
483
- * @see https://www.iana.org/assignments/media-types/media-types.xhtml
484
- */
485
- mediaType: string;
486
- /**
487
- * Optional filename of the file.
488
- */
489
- filename?: string;
490
- /**
491
- * Provider-specific options.
492
- */
493
- providerOptions?: ProviderOptions;
494
- } | {
495
- /**
496
- * @deprecated Use 'file' with mediaType and tagged data instead:
497
- * `{ type: 'file', mediaType, data: { type: 'url', url: new URL(url) } }`.
498
- */
499
- type: 'file-url';
500
- /**
501
- * URL of the file.
502
- */
503
- url: string;
504
- /**
505
- * IANA media type.
506
- * @see https://www.iana.org/assignments/media-types/media-types.xhtml
507
- */
508
- mediaType?: string;
509
- /**
510
- * Provider-specific options.
511
- */
512
- providerOptions?: ProviderOptions;
513
- } | {
514
- /**
515
- * @deprecated Use 'file' with tagged data instead:
516
- * `{ type: 'file', mediaType, data: { type: 'reference', reference } }`.
517
- */
518
- type: 'file-id';
519
- /**
520
- * ID of the file.
521
- *
522
- * If you use multiple providers, you need to
523
- * specify the provider specific ids using
524
- * the Record option. The key is the provider
525
- * name, e.g. 'openai' or 'anthropic'.
526
- */
527
- fileId: string | Record<string, string>;
528
- /**
529
- * Provider-specific options.
530
- */
531
- providerOptions?: ProviderOptions;
532
- } | {
533
- /**
534
- * @deprecated Use 'file' with tagged data instead:
535
- * `{ type: 'file', mediaType, data: { type: 'reference', reference } }`.
536
- */
537
- type: 'file-reference';
538
- /**
539
- * Provider-specific references for the file.
540
- * The key is the provider name, e.g. 'openai' or 'anthropic'.
541
- */
542
- providerReference: ProviderReference;
543
- /**
544
- * Provider-specific options.
545
- */
546
- providerOptions?: ProviderOptions;
547
- } | {
548
- /**
549
- * @deprecated Use 'file' with mediaType (e.g. 'image' or a specific
550
- * `image/*` subtype) and tagged data instead:
551
- * `{ type: 'file', mediaType: 'image', data: { type: 'data', data } }`.
552
- */
553
- type: 'image-data';
554
- /**
555
- * Base-64 encoded image data.
556
- */
557
- data: string;
558
- /**
559
- * IANA media type.
560
- * @see https://www.iana.org/assignments/media-types/media-types.xhtml
561
- */
562
- mediaType: string;
563
- /**
564
- * Provider-specific options.
565
- */
566
- providerOptions?: ProviderOptions;
567
- } | {
568
- /**
569
- * @deprecated Use 'file' with `mediaType: 'image'` (or a specific
570
- * `image/*` subtype) and tagged data instead:
571
- * `{ type: 'file', mediaType: 'image', data: { type: 'url', url: new URL(url) } }`.
572
- */
573
- type: 'image-url';
574
- /**
575
- * URL of the image.
576
- */
577
- url: string;
578
- /**
579
- * Provider-specific options.
580
- */
581
- providerOptions?: ProviderOptions;
582
- } | {
583
- /**
584
- * @deprecated Use 'file' with `mediaType: 'image'` (or a specific
585
- * `image/*` subtype) and tagged data instead:
586
- * `{ type: 'file', mediaType: 'image', data: { type: 'reference', reference } }`.
587
- */
588
- type: 'image-file-id';
589
- /**
590
- * Image that is referenced using a provider file id.
591
- *
592
- * If you use multiple providers, you need to
593
- * specify the provider specific ids using
594
- * the Record option. The key is the provider
595
- * name, e.g. 'openai' or 'anthropic'.
596
- */
597
- fileId: string | Record<string, string>;
598
- /**
599
- * Provider-specific options.
600
- */
601
- providerOptions?: ProviderOptions;
602
- } | {
603
- /**
604
- * @deprecated Use 'file' with `mediaType: 'image'` (or a specific
605
- * `image/*` subtype) and tagged data instead:
606
- * `{ type: 'file', mediaType: 'image', data: { type: 'reference', reference } }`.
607
- */
608
- type: 'image-file-reference';
609
- /**
610
- * Provider-specific references for the image file.
611
- * The key is the provider name, e.g. 'openai' or 'anthropic'.
612
- */
613
- providerReference: ProviderReference;
614
- /**
615
- * Provider-specific options.
616
- */
617
- providerOptions?: ProviderOptions;
618
- } | {
619
- /**
620
- * Custom content part. This can be used to implement
621
- * provider-specific content parts.
622
- */
623
- type: 'custom';
624
- /**
625
- * Provider-specific options.
626
- */
627
- providerOptions?: ProviderOptions;
628
- }>;
629
- };
630
- //#endregion
631
- //#region src/convert-inline-file-data-to-uint8-array.d.ts
632
- type InlineFileData = Extract<FilePart['data'], {
633
- type: 'data';
634
- } | {
635
- type: 'text';
636
- }>;
637
- /**
638
- * Converts inline file data (a tagged `data` or `text` shape) into raw bytes.
639
- *
640
- * - `{ type: 'text', text }` → UTF-8 encoded bytes
641
- * - `{ type: 'data', data: Uint8Array | Buffer }` → returned as-is
642
- * - `{ type: 'data', data: ArrayBuffer }` → wrapped in a `Uint8Array`
643
- * - `{ type: 'data', data: string }` → decoded as base64
644
- *
645
- * `{ type: 'stream' }` data is rejected: providers without streaming upload
646
- * support funnel here and surface a clear `UnsupportedFunctionalityError`.
647
- */
648
- export declare function convertInlineFileDataToUint8Array(data: InlineFileData | {
649
- type: 'stream';
650
- stream: ReadableStream<Uint8Array>;
651
- }): Uint8Array;
652
- //#endregion
653
- //#region src/convert-image-model-file-to-data-uri.d.ts
654
- /**
655
- * Convert an ImageModelV4File to a URL or data URI string.
656
- *
657
- * If the file is a URL, it returns the URL as-is.
658
- * If the file is base64 data, it returns a data URI with the base64 data.
659
- * If the file is a Uint8Array, it converts it to base64 and returns a data URI.
660
- */
661
- export declare function convertImageModelFileToDataUri(file: ImageModelV4File): string;
662
- //#endregion
663
- //#region src/convert-json-response-tool-stream.d.ts
664
- /**
665
- * Providers that cannot use native structured output for a request can use a
666
- * JSON response tool instead. This utility converts that tool's streamed input
667
- * into text events so the SDK can parse it as structured output.
668
- *
669
- * Conversational text is suppressed. Application tool calls pass through so the
670
- * caller can execute them. A response containing only the JSON tool finishes
671
- * with `stop`; a response containing application calls keeps its finish reason.
672
- */
673
- export declare function convertJsonResponseToolStream(toolName: string): TransformStream<LanguageModelV4StreamPart, LanguageModelV4StreamPart>;
674
- //#endregion
675
- //#region src/convert-to-form-data.d.ts
676
- /**
677
- * Converts an input object to FormData for multipart/form-data requests.
678
- *
679
- * Handles the following cases:
680
- * - `null` or `undefined` values are skipped
681
- * - Arrays with a single element are appended as a single value
682
- * - Arrays with multiple elements are appended with `[]` suffix (e.g., `image[]`)
683
- * unless `useArrayBrackets` is set to `false`
684
- * - All other values are appended directly
685
- *
686
- * @param input - The input object to convert. Use a generic type for type validation.
687
- * @param options - Optional configuration object.
688
- * @param options.useArrayBrackets - Whether to add `[]` suffix for multi-element arrays.
689
- * Defaults to `true`. Set to `false` for APIs that expect repeated keys without brackets.
690
- * @returns A FormData object containing the input values.
691
- *
692
- * @example
693
- * ```ts
694
- * type MyInput = {
695
- * model: string;
696
- * prompt: string;
697
- * images: Blob[];
698
- * };
699
- *
700
- * const formData = convertToFormData<MyInput>({
701
- * model: 'gpt-image-1',
702
- * prompt: 'A cat',
703
- * images: [blob1, blob2],
704
- * });
705
- * ```
706
- */
707
- export declare function convertToFormData<T extends Record<string, unknown>>(input: T, options?: {
708
- useArrayBrackets?: boolean;
709
- }): FormData;
710
- //#endregion
711
- //#region src/create-language-model-response-metadata.d.ts
712
- /**
713
- * Converts common provider response fields into language model response
714
- * metadata.
715
- */
716
- export declare function createLanguageModelResponseMetadata({ id, model, created }: {
717
- id?: string | null;
718
- model?: string | null;
719
- created?: number | null;
720
- }): LanguageModelV4ResponseMetadata;
721
- //#endregion
722
- //#region src/create-null-language-model-usage.d.ts
723
- /**
724
- * Creates an empty language model usage result for unavailable usage data.
725
- */
726
- export declare function createNullLanguageModelUsage(): LanguageModelV4Usage;
727
- //#endregion
728
- //#region src/create-tool-name-mapping.d.ts
729
- /**
730
- * Interface for mapping between custom tool names and provider tool names.
731
- */
732
- interface ToolNameMapping {
733
- /**
734
- * Maps a custom tool name (used by the client) to the provider's tool name.
735
- * If the custom tool name does not have a mapping, returns the input name.
736
- *
737
- * @param customToolName - The custom name of the tool defined by the client.
738
- * @returns The corresponding provider tool name, or the input name if not mapped.
739
- */
740
- toProviderToolName: (customToolName: string) => string;
741
- /**
742
- * Maps a provider tool name to the custom tool name used by the client.
743
- * If the provider tool name does not have a mapping, returns the input name.
744
- *
745
- * @param providerToolName - The name of the tool as understood by the provider.
746
- * @returns The corresponding custom tool name, or the input name if not mapped.
747
- */
748
- toCustomToolName: (providerToolName: string) => string;
749
- }
750
- /**
751
- * @param tools - Tools that were passed to the language model.
752
- * @param providerToolNames - Maps the provider tool ids to the provider tool names.
753
- */
754
- export declare function createToolNameMapping({ tools, providerToolNames }: {
755
- /**
756
- * Tools that were passed to the language model.
757
- */
758
- tools: Array<LanguageModelV4FunctionTool | LanguageModelV4ProviderTool> | undefined;
759
- /**
760
- * Maps the provider tool ids to the provider tool names.
761
- */
762
- providerToolNames: Record<`${string}.${string}`, string>;
763
- }): ToolNameMapping;
764
- //#endregion
765
- //#region src/create-provider-stream-error.d.ts
766
- type ProviderStreamError = {
767
- readonly message: string;
768
- readonly type?: string;
769
- readonly code?: string | number;
770
- readonly statusCode?: number;
771
- readonly isRetryable?: boolean;
772
- readonly data: unknown;
773
- };
774
- /**
775
- * Adds provider-owned status and retry metadata to a stream error payload
776
- * without requiring provider packages to depend on AI SDK Core.
777
- */
778
- export declare function createProviderStreamError({ message, type, code, statusCode, isRetryable, data }: {
779
- message: string;
780
- type?: string;
781
- code?: string | number;
782
- statusCode?: number;
783
- isRetryable?: boolean;
784
- data: unknown;
785
- }): ProviderStreamError;
786
- export declare function isProviderStreamError(error: unknown): error is ProviderStreamError;
787
- //#endregion
788
- //#region src/delay.d.ts
789
- /**
790
- * Creates a Promise that resolves after a specified delay
791
- * @param delayInMs - The delay duration in milliseconds. If null or undefined, resolves immediately.
792
- * @param signal - Optional AbortSignal to cancel the delay
793
- * @returns A Promise that resolves after the specified delay
794
- * @throws {DOMException} When the signal is aborted
795
- */
796
- export declare function delay(delayInMs?: number | null, options?: {
797
- abortSignal?: AbortSignal;
798
- }): Promise<void>;
799
- //#endregion
800
- //#region src/delayed-promise.d.ts
801
- /**
802
- * Delayed promise. It is only constructed once the value is accessed.
803
- * This is useful to avoid unhandled promise rejections when the promise is created
804
- * but not accessed.
805
- */
806
- export declare class DelayedPromise<T> {
807
- private status;
808
- private _promise;
809
- private _resolve;
810
- private _reject;
811
- get promise(): Promise<T>;
812
- resolve(value: T): void;
813
- reject(error: unknown): void;
814
- isResolved(): boolean;
815
- isRejected(): boolean;
816
- isPending(): boolean;
817
- }
818
- //#endregion
819
- //#region src/fetch-function.d.ts
820
- /**
821
- * Fetch function type (standardizes the version of fetch used).
822
- */
823
- export type FetchFunction = typeof globalThis.fetch;
824
- //#endregion
825
- //#region src/schema.d.ts
826
- /**
827
- * Used to mark schemas so we can support both Zod and custom schemas.
828
- */
829
- declare const schemaSymbol: unique symbol;
830
- type ValidationResult<OBJECT> = {
831
- success: true;
832
- value: OBJECT;
833
- } | {
834
- success: false;
835
- error: Error;
836
- };
837
- type Schema<OBJECT = unknown> = {
838
- /**
839
- * Used to mark schemas so we can support both Zod and custom schemas.
840
- */
841
- [schemaSymbol]: true;
842
- /**
843
- * Schema type for inference.
844
- */
845
- _type: OBJECT;
846
- /**
847
- * Optional. Validates that the structure of a value matches this schema,
848
- * and returns a typed version of the value if it does.
849
- */
850
- readonly validate?: (value: unknown) => ValidationResult<OBJECT> | PromiseLike<ValidationResult<OBJECT>>;
851
- /**
852
- * The JSON Schema for the schema. It is passed to the providers.
853
- */
854
- readonly jsonSchema: JSONSchema7 | PromiseLike<JSONSchema7>;
855
- };
856
- /**
857
- * Creates a schema with deferred creation.
858
- * This is important to reduce the startup time of the library
859
- * and to avoid initializing unused validators.
860
- *
861
- * @param createValidator A function that creates a schema.
862
- * @returns A function that returns a schema.
863
- */
864
- export declare function lazySchema<SCHEMA>(createSchema: () => Schema<SCHEMA>): LazySchema<SCHEMA>;
865
- type LazySchema<SCHEMA> = () => Schema<SCHEMA>;
866
- type Zod3Schema<SCHEMA = any> = {
867
- readonly _type: SCHEMA;
868
- readonly _output: SCHEMA;
869
- readonly _input: any;
870
- readonly _def: z3.ZodTypeDef;
871
- safeParseAsync: z3.Schema<SCHEMA>['safeParseAsync'];
872
- };
873
- type ZodSchema<SCHEMA = any> = Zod3Schema<SCHEMA> | $ZodType<SCHEMA, any>;
874
- type StandardSchema<SCHEMA = any> = StandardSchemaV1<unknown, SCHEMA> & {
875
- readonly '~standard': StandardSchemaV1.Props<unknown, SCHEMA> & {
876
- readonly jsonSchema?: StandardJSONSchemaV1.Converter;
877
- };
878
- };
879
- type FlexibleSchema<SCHEMA = any> = Schema<SCHEMA> | LazySchema<SCHEMA> | StandardSchema<SCHEMA> | $ZodType<SCHEMA, any>;
880
- type InferSchema<SCHEMA> = SCHEMA extends StandardSchema<infer T> ? T : SCHEMA extends ZodSchema<infer T> ? T : SCHEMA extends LazySchema<infer T> ? T : SCHEMA extends Schema<infer T> ? T : never;
881
- /**
882
- * Create a schema using a JSON Schema.
883
- *
884
- * @param jsonSchema The JSON Schema for the schema.
885
- * @param options.validate Optional. A validation function for the schema.
886
- */
887
- export declare function jsonSchema<OBJECT = unknown>(jsonSchema: JSONSchema7 | PromiseLike<JSONSchema7> | (() => JSONSchema7 | PromiseLike<JSONSchema7>), { validate }?: {
888
- validate?: (value: unknown) => ValidationResult<OBJECT> | PromiseLike<ValidationResult<OBJECT>>;
889
- }): Schema<OBJECT>;
890
- export declare function asSchema<OBJECT>(schema: FlexibleSchema<OBJECT> | undefined): Schema<OBJECT>;
891
- export declare function zodSchema<OBJECT>(zodSchema: ZodSchema<OBJECT>, options?: {
892
- /**
893
- * Enables support for references in the schema.
894
- * This is required for recursive schemas, e.g. with `z.lazy`.
895
- * However, not all language models and providers support such references.
896
- * Defaults to `false`.
897
- */
898
- useReferences?: boolean;
899
- }): Schema<OBJECT>;
900
- //#endregion
901
- //#region src/parse-json.d.ts
902
- /**
903
- * Parses a JSON string into an unknown object.
904
- *
905
- * @param text - The JSON string to parse.
906
- * @returns {JSONValue} - The parsed JSON object.
907
- */
908
- export declare function parseJSON(options: {
909
- text: string;
910
- schema?: undefined;
911
- }): Promise<JSONValue>;
912
- /**
913
- * Parses a JSON string into a strongly-typed object using the provided schema.
914
- *
915
- * @template T - The type of the object to parse the JSON into.
916
- * @param {string} text - The JSON string to parse.
917
- * @param {Validator<T>} schema - The schema to use for parsing the JSON.
918
- * @returns {Promise<T>} - The parsed object.
919
- */
920
- export declare function parseJSON<T>(options: {
921
- text: string;
922
- schema: FlexibleSchema<T>;
923
- }): Promise<T>;
924
- export type ParseResult<T> = {
925
- success: true;
926
- value: T;
927
- rawValue: unknown;
928
- } | {
929
- success: false;
930
- error: JSONParseError | TypeValidationError;
931
- rawValue: unknown;
932
- };
933
- /**
934
- * Safely parses a JSON string and returns the result as an object of type `unknown`.
935
- *
936
- * @param text - The JSON string to parse.
937
- * @returns {Promise<object>} Either an object with `success: true` and the parsed data, or an object with `success: false` and the error that occurred.
938
- */
939
- export declare function safeParseJSON(options: {
940
- text: string;
941
- schema?: undefined;
942
- }): Promise<ParseResult<JSONValue>>;
943
- /**
944
- * Safely parses a JSON string into a strongly-typed object, using a provided schema to validate the object.
945
- *
946
- * @template T - The type of the object to parse the JSON into.
947
- * @param {string} text - The JSON string to parse.
948
- * @param {Validator<T>} schema - The schema to use for parsing the JSON.
949
- * @returns An object with either a `success` flag and the parsed and typed data, or a `success` flag and an error object.
950
- */
951
- export declare function safeParseJSON<T>(options: {
952
- text: string;
953
- schema: FlexibleSchema<T>;
954
- }): Promise<ParseResult<T>>;
955
- export declare function isParsableJson(input: string): boolean;
956
- //#endregion
957
- //#region src/response-handler.d.ts
958
- export type ResponseHandler<RETURN_TYPE> = (options: {
959
- url: string;
960
- requestBodyValues: unknown;
961
- response: Response;
962
- }) => PromiseLike<{
963
- value: RETURN_TYPE;
964
- rawValue?: unknown;
965
- responseHeaders?: Record<string, string>;
966
- }>;
967
- export declare const createJsonErrorResponseHandler: <T>({ errorSchema, errorToMessage, isRetryable }: {
968
- errorSchema: FlexibleSchema<T>;
969
- errorToMessage: (error: T) => string;
970
- isRetryable?: (response: Response, error?: T) => boolean;
971
- }) => ResponseHandler<APICallError>;
972
- export declare const createEventSourceResponseHandler: <T>(chunkSchema: FlexibleSchema<T>) => ResponseHandler<ReadableStream<ParseResult<T>>>;
973
- export declare const createJsonResponseHandler: <T>(responseSchema: FlexibleSchema<T>, { experimental_binaryFields }?: {
974
- /**
975
- * Paths of string fields that carry large base64 data, e.g. `['images[*]']`
976
- * or `['content[*].data.data']`. A path is a sequence of plain object keys
977
- * joined by `.`, with `[*]` for every element of an array.
978
- *
979
- * By default the whole body is buffered, decoded to text, parsed, and the
980
- * base64 string is decoded again later, which holds about four copies of
981
- * the data at once. With this option the body is read as a stream and the
982
- * strings at these paths are decoded to `Uint8Array` while they arrive.
983
- *
984
- * A string is only decoded if it is canonical base64 (standard alphabet,
985
- * padded, no whitespace or escape sequences) and decodes to at least 64 KiB.
986
- * Other strings, and strings at other paths, are parsed as usual, so the
987
- * schema has to accept both a string and a `Uint8Array` at these paths.
988
- *
989
- * Differences to the default behavior:
990
- * - Validation and the returned `value` contain the decoded `Uint8Array`.
991
- * - `rawValue`, the `value` of a `TypeValidationError`, the text of a
992
- * `JSONParseError` and `APICallError.responseBody` contain a short
993
- * placeholder string such as `[binary data: 2097152 bytes; ref ...]` in
994
- * place of the data.
995
- * - `JSON.stringify` of a decoded `Uint8Array` gives the same placeholder
996
- * as long as the validation can fail, so the message of an error that a
997
- * validator builds from the value, or from its issues, stays short.
998
- */
999
- experimental_binaryFields?: readonly string[];
1000
- }) => ResponseHandler<T>;
1001
- export declare const createJsonLinesResponseHandler: <T>(responseSchema: FlexibleSchema<T>, { maxLineBytes }?: {
1002
- maxLineBytes?: number;
1003
- }) => ResponseHandler<AsyncGenerator<T>>;
1004
- export declare const createBinaryResponseHandler: () => ResponseHandler<Uint8Array>;
1005
- /**
1006
- * Passes the response body through as a `ReadableStream<Uint8Array>` without
1007
- * buffering it (unlike `createBinaryResponseHandler`). The consumer is
1008
- * responsible for draining or cancelling the stream.
1009
- */
1010
- export declare const createBinaryStreamResponseHandler: () => ResponseHandler<ReadableStream<Uint8Array>>;
1011
- export declare const createStatusCodeErrorResponseHandler: () => ResponseHandler<APICallError>;
1012
- //#endregion
1013
- //#region src/delete-from-api.d.ts
1014
- /**
1015
- * Sends a DELETE request. For URLs built from developer-configured endpoints
1016
- * only — there is no untrusted-URL validation path (use `getFromApi` with
1017
- * `validateUrl` for response-supplied URLs).
1018
- */
1019
- export declare const deleteFromApi: <T>({ url, headers, failedResponseHandler, successfulResponseHandler, abortSignal, fetch }: {
1020
- url: string;
1021
- headers?: Record<string, string | undefined>;
1022
- failedResponseHandler: ResponseHandler<Error>;
1023
- successfulResponseHandler: ResponseHandler<T>;
1024
- abortSignal?: AbortSignal;
1025
- fetch?: FetchFunction;
1026
- }) => Promise<{
1027
- value: T;
1028
- rawValue?: unknown;
1029
- responseHeaders?: Record<string, string>;
1030
- }>;
1031
- //#endregion
1032
- //#region src/detect-media-type.d.ts
1033
- /**
1034
- * Detect the IANA media type of a file from its raw bytes or base64 string.
1035
- *
1036
- * - When `topLevelType` is omitted, every known signature is considered
1037
- * (image, audio, video, and application). Returns `undefined` when the
1038
- * bytes do not match any known signature.
1039
- * - When `topLevelType` is provided, only signatures for that top-level
1040
- * segment are considered. Returns `undefined` for unsupported segments
1041
- * (e.g. `"text"`) or when no signature matches.
1042
- */
1043
- export declare function detectMediaType({ data, topLevelType }: {
1044
- data: Uint8Array | string;
1045
- topLevelType?: string;
1046
- }): string | undefined;
1047
- /**
1048
- * Returns the top-level segment of a media type (the portion before `/`).
1049
- *
1050
- * Examples:
1051
- * - `"image/png"` -> `"image"`
1052
- * - `"image/*"` -> `"image"`
1053
- * - `"image"` -> `"image"`
1054
- * - `"image/"` -> `"image"`
1055
- * - `""` -> `""`
1056
- * - `"/"` -> `""`
1057
- */
1058
- export declare function getTopLevelMediaType(mediaType: string): string;
1059
- /**
1060
- * Returns `true` only when the given media type has a non-empty, non-wildcard
1061
- * subtype (i.e. matches the form `type/subtype`, and `subtype` is not `*`).
1062
- *
1063
- * Examples:
1064
- * - `"image/png"` -> `true`
1065
- * - `"image/*"` -> `false`
1066
- * - `"image"` -> `false`
1067
- * - `"image/"` -> `false`
1068
- * - `""` -> `false`
1069
- * - `"/"` -> `false`
1070
- */
1071
- export declare function isFullMediaType(mediaType: string): boolean;
1072
- //#endregion
1073
- //#region src/download-blob.d.ts
1074
- /**
1075
- * Download a file from a URL and return it as a Blob.
1076
- *
1077
- * @param url - The URL to download from.
1078
- * @param options - Optional settings for the download.
1079
- * @param options.maxBytes - Maximum allowed download size in bytes. Defaults to 100 MiB.
1080
- * @param options.abortSignal - An optional abort signal to cancel the download.
1081
- * @param options.fetch - Fetch transport, e.g. guarded-fetch for DNS validation on Node.js.
1082
- * @returns A Promise that resolves to the downloaded Blob.
1083
- *
1084
- * @throws DownloadError if the download fails or exceeds maxBytes.
1085
- */
1086
- export declare function downloadBlob(url: string, options?: {
1087
- maxBytes?: number;
1088
- abortSignal?: AbortSignal;
1089
- fetch?: FetchFunction;
1090
- }): Promise<Blob>;
1091
- //#endregion
1092
- //#region src/download-error.d.ts
1093
- declare const symbol$1: unique symbol;
1094
- export declare class DownloadError extends AISDKError {
1095
- private readonly [symbol$1];
1096
- readonly url: string;
1097
- readonly statusCode?: number;
1098
- readonly statusText?: string;
1099
- constructor({ url, statusCode, statusText, cause, message }: {
1100
- url: string;
1101
- statusCode?: number;
1102
- statusText?: string;
1103
- message?: string;
1104
- cause?: unknown;
1105
- });
1106
- static isInstance(error: unknown): error is DownloadError;
1107
- }
1108
- //#endregion
1109
- //#region src/embedding-model-capabilities.d.ts
1110
- /**
1111
- * Symbol for exposing the UTF-8 input byte budget of an embedding model.
1112
- *
1113
- * This capability is experimental and intentionally lives outside the versioned
1114
- * embedding model specification.
1115
- */
1116
- declare const EMBEDDING_MODEL_MAX_INPUT_BYTES_PER_CALL: unique symbol;
1117
- /**
1118
- * Symbol for transforming provider options for an automatically batched
1119
- * embedding model call.
1120
- *
1121
- * This capability is experimental and intentionally lives outside the versioned
1122
- * embedding model specification.
1123
- */
1124
- declare const EMBEDDING_MODEL_PROVIDER_OPTIONS_TRANSFORMER: unique symbol;
1125
- type EmbeddingModelProviderOptionsTransformer = (options: {
1126
- providerOptions: SharedV4ProviderOptions | undefined;
1127
- values: Array<string>;
1128
- startIndex: number;
1129
- endIndex: number;
1130
- }) => SharedV4ProviderOptions | undefined | PromiseLike<SharedV4ProviderOptions | undefined>;
1131
- //#endregion
1132
- //#region src/fetch-with-validated-redirects.d.ts
1133
- /**
1134
- * Fetches one validated URL without following redirects.
1135
- *
1136
- * Uses the supplied fetch or the runtime's global fetch. URL validation does
1137
- * not resolve DNS; inject a transport such as guarded-fetch on Node.js
1138
- * when connection-time DNS validation is needed.
1139
- * Redirects are rejected by default. Callers using `redirect: 'manual'` must
1140
- * validate the Location target before issuing another request.
1141
- */
1142
- export declare function fetchWithValidatedEndpoint({ url, init, fetch: customFetch, trustedOrigin, redirect, requireDnsValidation }: {
1143
- url: string | URL;
1144
- init?: RequestInit;
1145
- fetch?: FetchFunction;
1146
- /**
1147
- * A developer-configured origin that may legitimately resolve to a private
1148
- * address. This must never be derived from untrusted response data.
1149
- */
1150
- trustedOrigin?: string;
1151
- redirect?: 'error' | 'manual';
1152
- /**
1153
- * Reject untrusted URLs on server runtimes, including Node.js, unless an
1154
- * explicit custom fetch provides connect-time DNS validation and connection
1155
- * pinning. The runtime's global fetch does not satisfy this requirement.
1156
- */
1157
- requireDnsValidation?: boolean;
1158
- }): Promise<Response>;
1159
- /**
1160
- * Fetches a URL while enforcing the download guard on every hop.
1161
- *
1162
- * Redirects are followed manually (`redirect: 'manual'`) so each hop is
1163
- * validated with {@link validateDownloadUrl} *before* it is requested. Relying
1164
- * on the default `redirect: 'follow'` would issue the request to a redirect
1165
- * target (e.g. an internal address) before we ever see its URL, defeating the
1166
- * guard.
1167
- *
1168
- * Manually followed redirects from HTTPS to HTTP are rejected before requesting
1169
- * the target.
1170
- *
1171
- * Request headers are also protected: {@link sanitizeRequestHeaders} strips
1172
- * proxy/metadata/cookie/hop-by-hop headers before the first request, and all
1173
- * caller headers except `User-Agent` are dropped on a cross-origin redirect.
1174
- * Credentials and custom headers are preserved on the first hop for backwards
1175
- * compatibility. The caller must ensure that the initial URL may receive them.
1176
- * Use `fetchUntrustedUrl` for URLs that require first-hop credential isolation.
1177
- * The fetch spec only strips `Authorization` on cross-origin redirects because
1178
- * in a browser, CORS preflighting protects custom headers; there is no CORS on
1179
- * the server, so provider API keys carried in custom headers (e.g. `x-key`)
1180
- * must be dropped here as well.
1181
- *
1182
- * A `redirect: 'manual'` request yields an unreadable opaque response in the
1183
- * browser (and in other spec-compliant fetch implementations), so the redirect
1184
- * target cannot be validated here. In a real browser this is safe to follow
1185
- * natively because reaching an internal network is not possible (fetch is
1186
- * constrained by CORS and cannot reach a server's internal network or
1187
- * cloud-metadata). On any other runtime we cannot validate the hop, so we fail
1188
- * closed rather than follow it blindly and bypass the guard.
1189
- *
1190
- * A hop that is same-origin with `trustedOrigin` (the developer-configured
1191
- * provider endpoint) skips target validation: that origin is exactly what an
1192
- * unvalidated, config-derived request would fetch anyway, and validating it
1193
- * would break legitimate self-hosted / localhost deployments whose response
1194
- * URLs point back at the configured host. Hops on any other origin are always
1195
- * validated.
1196
- *
1197
- * The returned response is the final (non-redirect) response. The caller is
1198
- * responsible for checking `response.ok` and reading the body.
1199
- *
1200
- * URL validation does not resolve DNS. Use guarded-fetch on Node.js
1201
- * for connection-time DNS validation, or enforce network egress restrictions.
1202
- *
1203
- * @throws DownloadError if a hop is unsafe, the redirect limit is exceeded, or
1204
- * a redirect cannot be validated on a non-browser runtime.
1205
- */
1206
- export declare function fetchWithValidatedRedirects({ url, headers, abortSignal, maxRedirects, fetch: customFetch, trustedOrigin }: {
1207
- url: string;
1208
- headers?: HeadersInit;
1209
- abortSignal?: AbortSignal;
1210
- maxRedirects?: number;
1211
- fetch?: FetchFunction;
1212
- /**
1213
- * A developer-configured origin (e.g. the provider's `baseURL`) whose hops
1214
- * skip target validation. Must never be derived from response data.
1215
- */
1216
- trustedOrigin?: string;
1217
- }): Promise<Response>;
1218
- //#endregion
1219
- //#region src/encode-path-segment.d.ts
1220
- /**
1221
- * Encodes a raw identifier as one URL path segment, including standalone dot
1222
- * segments that URL parsers would otherwise normalize. Pass unencoded values;
1223
- * for resource paths with intentional slashes, encode each segment separately.
1224
- */
1225
- export declare function encodePathSegment(value: string): string;
1226
- //#endregion
1227
- //#region src/extract-lines.d.ts
1228
- /**
1229
- * Extracts a 1-based inclusive line range from `text`, auto-detecting the
1230
- * file's line ending (`\r\n`, `\n`, or `\r`, in that priority).
1231
- *
1232
- * Mixed line endings are not supported: detection picks one and uses it for
1233
- * both the split and the rejoin, so files that mix conventions will not slice
1234
- * cleanly. When neither `startLine` nor `endLine` is provided, the input is
1235
- * returned unchanged. `endLine` past EOF clamps to the last line.
1236
- */
1237
- export declare function extractLines({ text, startLine, endLine }: {
1238
- text: string;
1239
- startLine?: number;
1240
- endLine?: number;
1241
- }): string;
1242
- //#endregion
1243
- //#region src/extract-response-headers.d.ts
1244
- /**
1245
- * Extracts the headers from a response object and returns them as a key-value object.
1246
- *
1247
- * @param response - The response object to extract headers from.
1248
- * @returns The headers as a key-value object.
1249
- */
1250
- export declare function extractResponseHeaders(response: Response): {
1251
- [k: string]: string;
1252
- };
1253
- //#endregion
1254
- //#region src/fetch-untrusted-url.d.ts
1255
- /**
1256
- * Fetches an untrusted URL with first-hop credential isolation and validated
1257
- * redirects. Uses the URL validation, runtime fetch transport, redirect
1258
- * limits, and cross-origin header stripping of {@link fetchWithValidatedRedirects}.
1259
- * Inject guarded-fetch on Node.js for connect-time DNS validation.
1260
- *
1261
- * Without a matching `credentialedOrigin` (or `trustedOrigin` when it is
1262
- * omitted), only allowlisted request metadata is sent on the first hop.
1263
- * Arbitrary caller headers require an explicit matching origin because vendor
1264
- * credential names cannot be inferred safely. Proxy, metadata, cookie, and
1265
- * hop-by-hop headers are sanitized even for a matching origin.
1266
- *
1267
- * `trustedOrigin` also exempts same-origin hops from URL validation, allowing
1268
- * developer-configured private endpoints. Both origin options must come from
1269
- * developer configuration, never from untrusted response data.
1270
- *
1271
- * This is an opt-in alternative to `fetchWithValidatedRedirects`, whose
1272
- * existing first-hop header behavior is preserved for compatibility.
1273
- */
1274
- export declare function fetchUntrustedUrl({ headers, credentialedOrigin, untrustedFirstHopHeaders, ...options }: Parameters<typeof fetchWithValidatedRedirects>[0] & {
1275
- /**
1276
- * The developer-configured origin allowed to receive arbitrary caller
1277
- * headers on the first hop. Defaults to `trustedOrigin` when omitted.
1278
- * An explicit value takes precedence over `trustedOrigin` and does not
1279
- * exempt the URL from validation.
1280
- */
1281
- credentialedOrigin?: string;
1282
- /**
1283
- * Additional sanitized header names safe to disclose to an untrusted first
1284
- * hop. Use only for non-credential protocol metadata. Credentials require
1285
- * a matching `credentialedOrigin` instead. Names are case-insensitive.
1286
- */
1287
- untrustedFirstHopHeaders?: readonly string[];
1288
- }): Promise<Response>;
1289
- //#endregion
1290
- //#region src/filter-nullable.d.ts
1291
- /**
1292
- * Filters `null` and `undefined` values out of a list of values.
1293
- *
1294
- * @param values - The values to filter.
1295
- * @returns A new array containing only non-nullish values.
1296
- */
1297
- export declare function filterNullable<T>(...values: Array<T | undefined | null>): Array<T>;
1298
- //#endregion
1299
- //#region src/generate-id.d.ts
1300
- /**
1301
- * Creates an ID generator.
1302
- * The total length of the ID is the sum of the prefix, separator, and random part length.
1303
- * Not cryptographically secure.
1304
- *
1305
- * @param alphabet - The alphabet to use for the ID. Default: '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.
1306
- * @param prefix - The prefix of the ID to generate. Optional.
1307
- * @param separator - The separator between the prefix and the random part of the ID. Default: '-'.
1308
- * @param size - The size of the random part of the ID to generate. Default: 16.
1309
- */
1310
- export declare const createIdGenerator: ({ prefix, size, alphabet, separator }?: {
1311
- prefix?: string;
1312
- separator?: string;
1313
- size?: number;
1314
- alphabet?: string;
1315
- }) => IdGenerator;
1316
- /**
1317
- * A function that generates an ID.
1318
- */
1319
- type IdGenerator = () => string;
1320
- /**
1321
- * Generates a 16-character random string to use for IDs.
1322
- * Not cryptographically secure.
1323
- */
1324
- export declare const generateId: IdGenerator;
1325
- //#endregion
1326
- //#region src/get-from-api.d.ts
1327
- export declare const getFromApi: <T>({ url, headers, successfulResponseHandler, failedResponseHandler, abortSignal, fetch, validateUrl, credentialedOrigin, trustedOrigin }: {
1328
- url: string;
1329
- headers?: Record<string, string | undefined>;
1330
- failedResponseHandler: ResponseHandler<Error>;
1331
- successfulResponseHandler: ResponseHandler<T>;
1332
- abortSignal?: AbortSignal;
1333
- fetch?: FetchFunction;
1334
- /**
1335
- * Set `true` when `url` is untrusted (e.g. taken from a provider response
1336
- * body): it is routed through {@link fetchWithValidatedRedirects}, which
1337
- * rejects private/loopback/link-local targets and re-validates redirect
1338
- * hops; blocked URLs throw `DownloadError`. Set `false` only for URLs built
1339
- * from a developer-configured endpoint.
1340
- *
1341
- * Optional for backwards compatibility with existing callers; omitting it
1342
- * behaves like `false` (no validation). Provider code in this repository
1343
- * must always pass it explicitly so every call site makes a visible trust
1344
- * decision — see `contributing/secure-url-handling.md`.
1345
- */
1346
- validateUrl?: boolean;
1347
- /**
1348
- * When set, `headers` are sent only if `url` is same-origin with this origin
1349
- * (the user-agent suffix is always kept). Pass the provider's configured
1350
- * base URL alongside `validateUrl: true` so credentials never ride a request
1351
- * to a response-supplied host on a different origin (e.g. a CDN). Redirects
1352
- * that later cross origin drop all caller headers regardless (see
1353
- * {@link fetchWithValidatedRedirects}).
1354
- */
1355
- credentialedOrigin?: string;
1356
- /**
1357
- * A developer-configured origin (e.g. the provider's `baseURL`) that is
1358
- * exempt from URL validation when `validateUrl` is `true`. A response URL
1359
- * (or redirect hop) that is same-origin with it is fetched without target
1360
- * validation — it points at exactly the host a config-derived
1361
- * `validateUrl: false` request would fetch anyway, so blocking it would
1362
- * only break legitimate self-hosted / localhost deployments whose response
1363
- * URLs point back at the configured host. Hops on any other origin are
1364
- * still validated. Must never be derived from response data.
1365
- */
1366
- trustedOrigin?: string;
1367
- }) => Promise<{
1368
- value: T;
1369
- rawValue?: unknown;
1370
- responseHeaders?: Record<string, string>;
1371
- }>;
1372
- //#endregion
1373
- //#region src/get-runtime-environment-user-agent.d.ts
1374
- export declare function getRuntimeEnvironmentUserAgent(globalThisAny?: any): string;
1375
- //#endregion
1376
- //#region src/has-required-key.d.ts
1377
- /**
1378
- * Checks if an object has required keys.
1379
- * @param OBJECT - The object to check.
1380
- * @returns True if the object has required keys, false otherwise.
1381
- */
1382
- type HasRequiredKey<OBJECT> = {} extends OBJECT ? false : true;
1383
- //#endregion
1384
- //#region src/inject-json-instruction.d.ts
1385
- export declare function injectJsonInstructionIntoMessages({ messages, schema, schemaPrefix, schemaSuffix }: {
1386
- messages: LanguageModelV4Prompt;
1387
- schema?: JSONSchema7;
1388
- schemaPrefix?: string;
1389
- schemaSuffix?: string;
1390
- }): LanguageModelV4Prompt;
1391
- //#endregion
1392
- //#region src/is-abort-error.d.ts
1393
- export declare function isAbortError(error: unknown): error is Error;
1394
- //#endregion
1395
- //#region src/is-browser-runtime.d.ts
1396
- /**
1397
- * Returns `true` when running in a browser.
1398
- *
1399
- * Detection keys on the presence of a global `window`, matching the browser
1400
- * check used elsewhere in this package (see `getRuntimeEnvironmentUserAgent`)
1401
- * so the SDK has a single, consistent definition of "browser". Server runtimes
1402
- * (Node.js, Deno, Bun, edge/workers) do not define `window`.
1403
- */
1404
- export declare function isBrowserRuntime(globalThisAny?: any): boolean;
1405
- //#endregion
1406
- //#region src/is-buffer.d.ts
1407
- /**
1408
- * Type-guard for Node.js `Buffer` instances.
1409
- *
1410
- * Uses optional chaining on `globalThis.Buffer` so it returns `false` in
1411
- * runtimes where `Buffer` is not available (e.g. CloudFlare Workers).
1412
- */
1413
- export declare function isBuffer(value: unknown): value is Buffer;
1414
- //#endregion
1415
- //#region src/is-same-origin.d.ts
1416
- /**
1417
- * Returns true when `url` has the same origin (scheme + host + port) as
1418
- * `baseUrl`.
1419
- *
1420
- * Used to decide whether provider credentials may be attached to a request to a
1421
- * URL taken from a provider response (e.g. a polling or media-download URL).
1422
- * Credentials must only be sent to the provider's own origin; a response that
1423
- * names a foreign host (a CDN, or an attacker-controlled host if the response
1424
- * is tampered with) must not receive the API key.
1425
- *
1426
- * Returns false if either value is not a valid absolute URL (fail-closed).
1427
- */
1428
- export declare function isSameOrigin(url: string, baseUrl: string): boolean;
1429
- //#endregion
1430
- //#region src/is-non-nullable.d.ts
1431
- /**
1432
- * Type guard that checks whether a value is not `null` or `undefined`.
1433
- *
1434
- * @template T - The type of the value to check.
1435
- * @param value - The value to check.
1436
- * @returns `true` if the value is neither `null` nor `undefined`, otherwise `false`.
1437
- */
1438
- export declare function isNonNullable<T>(value: T | undefined | null): value is NonNullable<T>;
1439
- //#endregion
1440
- //#region src/is-provider-reference.d.ts
1441
- /**
1442
- * Checks whether a value is a provider reference (a mapping of provider names
1443
- * to provider-specific identifiers) as opposed to raw bytes, a URL, or a
1444
- * tagged `{ type: ... }` object.
1445
- */
1446
- export declare function isProviderReference(data: unknown): data is SharedV4ProviderReference;
1447
- //#endregion
1448
- //#region src/is-record.d.ts
1449
- /**
1450
- * Checks whether a value is a non-null, non-array object.
1451
- */
1452
- export declare function isRecord(value: unknown): value is Record<string, unknown>;
1453
- //#endregion
1454
- //#region src/is-url-supported.d.ts
1455
- /**
1456
- * Checks if the given URL is supported natively by the model.
1457
- *
1458
- * @param mediaType - The media type of the URL. Case-insensitive. May be a full
1459
- * `type/subtype`, a wildcard `type/*`, or just the
1460
- * top-level segment (e.g. `image`).
1461
- * @param url - The URL to check.
1462
- * @param supportedUrls - A record where keys are case-insensitive media types (or '*')
1463
- * and values are arrays of RegExp patterns for URLs.
1464
- *
1465
- * @returns `true` if the URL matches a pattern under the specific media type
1466
- * or the wildcard '*', `false` otherwise.
1467
- */
1468
- export declare function isUrlSupported({ mediaType, url, supportedUrls }: {
1469
- mediaType: string;
1470
- url: string;
1471
- supportedUrls: Record<string, RegExp[]>;
1472
- }): boolean;
1473
- //#endregion
1474
- //#region src/is-valid-hostname-part.d.ts
1475
- /**
1476
- * Checks whether a value is a valid ASCII hostname part: 1–63 letters, digits,
1477
- * or hyphens, without a leading or trailing hyphen.
1478
- *
1479
- * Use this before inserting a resource name, region, or location into a
1480
- * generated hostname. Rejects values such as `evil.example.com/#` and
1481
- * `user@localhost:8080/#` that could change the request destination.
1482
- */
1483
- export declare function isValidHostnamePart(value: string): boolean;
1484
- //#endregion
1485
- //#region src/load-api-key.d.ts
1486
- export declare function loadApiKey({ apiKey, environmentVariableName, apiKeyParameterName, description }: {
1487
- apiKey: string | undefined;
1488
- environmentVariableName: string;
1489
- apiKeyParameterName?: string;
1490
- description: string;
1491
- }): string;
1492
- //#endregion
1493
- //#region src/load-optional-setting.d.ts
1494
- /**
1495
- * Loads an optional `string` setting from the environment or a parameter.
1496
- *
1497
- * @param settingValue - The setting value.
1498
- * @param environmentVariableName - The environment variable name.
1499
- * @returns The setting value.
1500
- */
1501
- export declare function loadOptionalSetting({ settingValue, environmentVariableName }: {
1502
- settingValue: string | undefined;
1503
- environmentVariableName: string;
1504
- }): string | undefined;
1505
- //#endregion
1506
- //#region src/load-setting.d.ts
1507
- /**
1508
- * Loads a `string` setting from the environment or a parameter.
1509
- *
1510
- * @param settingValue - The setting value.
1511
- * @param environmentVariableName - The environment variable name.
1512
- * @param settingName - The setting name.
1513
- * @param description - The description of the setting.
1514
- * @returns The setting value.
1515
- */
1516
- export declare function loadSetting({ settingValue, environmentVariableName, settingName, description }: {
1517
- settingValue: string | undefined;
1518
- environmentVariableName: string;
1519
- settingName: string;
1520
- description: string;
1521
- }): string;
1522
- //#endregion
1523
- //#region src/map-reasoning-to-provider.d.ts
1524
- type ReasoningLevel = Exclude<LanguageModelV4CallOptions['reasoning'], 'none' | 'provider-default' | undefined>;
1525
- export declare function isCustomReasoning(reasoning: LanguageModelV4CallOptions['reasoning']): reasoning is ReasoningLevel | 'none';
1526
- /**
1527
- * Maps a top-level reasoning value to a provider-specific effort string.
1528
- *
1529
- * A `providerOptionsEffort` (the reasoning effort set in provider options) is
1530
- * returned unchanged. Otherwise, `undefined` and `'provider-default'` return
1531
- * `undefined`, and other reasoning values are mapped with the effort map.
1532
- *
1533
- * The effort map should only contain the values that the model supports. An
1534
- * unsupported value maps to the next lower supported level, or the next higher
1535
- * one if there is no lower level. `'none'` is never used as a fallback, so an
1536
- * unsupported `'none'` maps to the lowest supported level.
1537
- *
1538
- * Pushes a compatibility warning if the effort that is sent differs from the
1539
- * requested value, or an unsupported warning if the effort map is empty.
1540
- *
1541
- * @returns The provider options effort, the mapped effort string, or
1542
- * `undefined` if no effort should be sent.
1543
- */
1544
- export declare function mapReasoningToProviderEffort<T extends string, P extends string = never>({ reasoning, effortMap, providerOptionsEffort, warnings }: {
1545
- reasoning: LanguageModelV4CallOptions['reasoning'];
1546
- effortMap: Partial<Record<ReasoningLevel | 'none', T>>;
1547
- providerOptionsEffort?: P | null;
1548
- warnings: SharedV4Warning[];
1549
- }): T | P | undefined;
1550
- /**
1551
- * Maps a top-level reasoning value to an absolute token budget by multiplying
1552
- * the model's max output tokens by a percentage for the level. Levels missing
1553
- * from `budgetPercentages` use the default percentages. The result is clamped
1554
- * between `minReasoningBudget` (default 1024) and `maxReasoningBudget`.
1555
- *
1556
- * Handle `'none'` before calling this function when the model can disable
1557
- * reasoning. Otherwise, `'none'` maps to `minReasoningBudget` with a
1558
- * compatibility warning.
1559
- *
1560
- * @returns The computed token budget.
1561
- */
1562
- export declare function mapReasoningToProviderBudget({ reasoning, maxOutputTokens, maxReasoningBudget, minReasoningBudget, budgetPercentages, warnings }: {
1563
- reasoning: ReasoningLevel | 'none';
1564
- maxOutputTokens: number;
1565
- maxReasoningBudget: number;
1566
- minReasoningBudget?: number;
1567
- budgetPercentages?: Partial<Record<ReasoningLevel, number>>;
1568
- warnings: SharedV4Warning[];
1569
- }): number;
1570
- //#endregion
1571
- //#region src/maybe-promise-like.d.ts
1572
- /**
1573
- * A value that can be provided either synchronously or as a promise-like.
1574
- */
1575
- type MaybePromiseLike<T> = T | PromiseLike<T>;
1576
- //#endregion
1577
- //#region src/media-type-to-extension.d.ts
1578
- /**
1579
- * Maps a media type to its corresponding file extension.
1580
- * It was originally introduced to set a filename for audio file uploads
1581
- * in https://github.com/vercel/ai/pull/8159.
1582
- *
1583
- * @param mediaType The media type to map.
1584
- * @returns The corresponding file extension
1585
- * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/MIME_types/Common_types
1586
- */
1587
- export declare function mediaTypeToExtension(mediaType: string): string;
1588
- //#endregion
1589
- //#region src/normalize-headers.d.ts
1590
- /**
1591
- * Normalizes different header inputs into a plain record with lower-case keys.
1592
- * Entries with `undefined` or `null` values are removed.
1593
- *
1594
- * @param headers - Input headers (`Headers`, tuples array, plain record) to normalize.
1595
- * @returns A record containing the normalized header entries.
1596
- */
1597
- export declare function normalizeHeaders(headers: HeadersInit | Record<string, string | undefined> | Array<[string, string | undefined]> | undefined): Record<string, string>;
1598
- //#endregion
1599
- //#region src/normalize-batch-request-counts.d.ts
1600
- /**
1601
- * Normalizes complete batch request counts.
1602
- *
1603
- * Returns `undefined` when any count is missing, is not a non-negative safe
1604
- * integer, or when the item counts do not add up to the total.
1605
- */
1606
- export declare function normalizeBatchRequestCounts({ total, pending, completed, failed }: {
1607
- total: number | null | undefined;
1608
- pending: number | null | undefined;
1609
- completed: number | null | undefined;
1610
- failed: number | null | undefined;
1611
- }): Experimental_BatchV4Status['requestCounts'] | undefined;
1612
- //#endregion
1613
- //#region src/parse-json-event-stream.d.ts
1614
- /**
1615
- * Parses a JSON event stream into a stream of parsed JSON objects.
1616
- */
1617
- export declare function parseJsonEventStream<T>({ stream, schema }: {
1618
- stream: ReadableStream<Uint8Array>;
1619
- schema: FlexibleSchema<T>;
1620
- }): ReadableStream<ParseResult<T>>;
1621
- //#endregion
1622
- //#region src/parse-provider-options.d.ts
1623
- export declare function parseProviderOptions<OPTIONS>({ provider, providerOptions, schema }: {
1624
- provider: string;
1625
- providerOptions: Record<string, unknown> | undefined;
1626
- schema: FlexibleSchema<OPTIONS>;
1627
- }): Promise<OPTIONS | undefined>;
1628
- //#endregion
1629
- //#region src/resolve-provider-options.d.ts
1630
- /**
1631
- * How options found under several `providerOptions` namespaces are combined.
1632
- *
1633
- * - `first`: namespaces are aliases. The first namespace that is present wins
1634
- * as a whole and later namespaces are ignored (no merging).
1635
- * - `merge`: every present namespace is parsed and the results are merged in
1636
- * order, so later namespaces override earlier ones key by key.
1637
- */
1638
- type ProviderOptionsResolution = 'first' | 'merge';
1639
- /**
1640
- * Parses provider options that a model accepts under more than one
1641
- * `providerOptions` namespace, e.g. a canonical key plus a provider-specific
1642
- * or legacy alias.
1643
- *
1644
- * Each present namespace is validated against `schema` exactly like
1645
- * `parseProviderOptions` does, so an invalid namespace throws.
1646
- *
1647
- * @returns the resolved options (`undefined` when no namespace is present)
1648
- * and the namespaces that contributed to them, in resolution order.
1649
- */
1650
- export declare function resolveProviderOptions<OPTIONS>({ providerOptions, namespaces, resolution, schema }: {
1651
- providerOptions: Record<string, unknown> | undefined;
1652
- namespaces: readonly string[];
1653
- resolution: ProviderOptionsResolution;
1654
- schema: FlexibleSchema<OPTIONS>;
1655
- }): Promise<{
1656
- options: OPTIONS | undefined;
1657
- namespaces: string[];
1658
- }>;
1659
- //#endregion
1660
- //#region src/post-multipart-stream-to-api.d.ts
1661
- /**
1662
- * A part of a streaming multipart/form-data request body.
1663
- *
1664
- * Parts are emitted in array order, which providers may depend on
1665
- * (e.g. xAI requires expiry fields to precede the file part).
1666
- */
1667
- export type MultipartStreamPart = {
1668
- type: 'field';
1669
- name: string;
1670
- value: string;
1671
- } | {
1672
- type: 'file';
1673
- name: string;
1674
- filename?: string;
1675
- mediaType?: string;
1676
- content: ReadableStream<Uint8Array> | Uint8Array;
1677
- };
1678
- /**
1679
- * POSTs a multipart/form-data body as a request stream, so file parts backed
1680
- * by a `ReadableStream` are sent without buffering the full file in memory.
1681
- *
1682
- * Requires a fetch implementation that supports streaming request bodies
1683
- * (`duplex: 'half'`). Callers with fully buffered payloads can keep using
1684
- * `postFormDataToApi`.
1685
- */
1686
- export declare const postMultipartStreamToApi: <T>({ url, headers, parts, failedResponseHandler, successfulResponseHandler, abortSignal, fetch }: {
1687
- url: string;
1688
- headers?: Record<string, string | undefined>;
1689
- parts: Array<MultipartStreamPart>;
1690
- failedResponseHandler: ResponseHandler<Error>;
1691
- successfulResponseHandler: ResponseHandler<T>;
1692
- abortSignal?: AbortSignal;
1693
- fetch?: FetchFunction;
1694
- }) => Promise<{
1695
- value: T;
1696
- rawValue?: unknown;
1697
- responseHeaders?: Record<string, string>;
1698
- }>;
1699
- //#endregion
1700
- //#region src/post-to-api.d.ts
1701
- export declare const postJsonToApi: <T>({ url, headers, body, failedResponseHandler, successfulResponseHandler, abortSignal, fetch }: {
1702
- url: string;
1703
- headers?: Record<string, string | undefined>;
1704
- body: unknown;
1705
- failedResponseHandler: ResponseHandler<APICallError>;
1706
- successfulResponseHandler: ResponseHandler<T>;
1707
- abortSignal?: AbortSignal;
1708
- fetch?: FetchFunction;
1709
- }) => Promise<{
1710
- value: T;
1711
- rawValue?: unknown;
1712
- responseHeaders?: Record<string, string>;
1713
- }>;
1714
- export declare const postFormDataToApi: <T>({ url, headers, formData, failedResponseHandler, successfulResponseHandler, abortSignal, fetch }: {
1715
- url: string;
1716
- headers?: Record<string, string | undefined>;
1717
- formData: FormData;
1718
- failedResponseHandler: ResponseHandler<APICallError>;
1719
- successfulResponseHandler: ResponseHandler<T>;
1720
- abortSignal?: AbortSignal;
1721
- fetch?: FetchFunction;
1722
- }) => Promise<{
1723
- value: T;
1724
- rawValue?: unknown;
1725
- responseHeaders?: Record<string, string>;
1726
- }>;
1727
- export declare const postToApi: <T>({ url, headers, body, successfulResponseHandler, failedResponseHandler, abortSignal, fetch }: {
1728
- url: string;
1729
- headers?: Record<string, string | undefined>;
1730
- body: {
1731
- content: string | FormData | Uint8Array | Blob;
1732
- values: unknown;
1733
- };
1734
- failedResponseHandler: ResponseHandler<Error>;
1735
- successfulResponseHandler: ResponseHandler<T>;
1736
- abortSignal?: AbortSignal;
1737
- fetch?: FetchFunction;
1738
- }) => Promise<{
1739
- value: T;
1740
- rawValue?: unknown;
1741
- responseHeaders?: Record<string, string>;
1742
- }>;
1743
- //#endregion
1744
- //#region src/types/context.d.ts
1745
- /**
1746
- * A context object that is passed into tool execution.
1747
- */
1748
- type Context = Record<string, unknown>;
1749
- //#endregion
1750
- //#region src/types/executable-tool.d.ts
1751
- /**
1752
- * A tool that is guaranteed to expose an execute function.
1753
- */
1754
- type ExecutableTool<TOOL extends Tool = Tool> = TOOL & {
1755
- execute: NonNullable<TOOL['execute']>;
1756
- };
1757
- /**
1758
- * Checks whether a tool exposes an execute function.
1759
- */
1760
- export declare function isExecutableTool<TOOL extends Tool>(tool: TOOL | undefined): tool is ExecutableTool<TOOL>;
1761
- //#endregion
1762
- //#region src/types/never-optional.d.ts
1763
- type NeverOptional<N, T> = 0 extends 1 & N ? Partial<T> : [N] extends [never] ? Partial<Record<keyof T, undefined>> : T;
1764
- //#endregion
1765
- //#region src/types/tool-approval-request.d.ts
1766
- /**
1767
- * Tool approval request prompt part.
1768
- */
1769
- type ToolApprovalRequest = {
1770
- type: 'tool-approval-request';
1771
- /**
1772
- * ID of the tool approval.
1773
- */
1774
- approvalId: string;
1775
- /**
1776
- * ID of the tool call that the approval request is for.
1777
- */
1778
- toolCallId: string;
1779
- /**
1780
- * Reason why the tool call requires approval.
1781
- */
1782
- reason?: string;
1783
- /**
1784
- * Flag indicating whether the tool was automatically approved or denied.
1785
- *
1786
- * @default false
1787
- */
1788
- isAutomatic?: boolean;
1789
- /**
1790
- * HMAC-SHA256 signature binding this approval to its tool call.
1791
- * Present only when `experimental_toolApprovalSecret` is configured.
1792
- */
1793
- signature?: string;
1794
- /**
1795
- * Tool input before input schema validation and transformation.
1796
- *
1797
- * This is included when it differs from the validated tool input so that
1798
- * approved tool calls can be safely revalidated before execution.
1799
- */
1800
- inputSchemaInput?: unknown;
1801
- };
1802
- //#endregion
1803
- //#region src/types/assistant-model-message.d.ts
1804
- /**
1805
- * An assistant message. It can contain text, tool calls, or a combination of text and tool calls.
1806
- */
1807
- type AssistantModelMessage = {
1808
- role: 'assistant';
1809
- content: AssistantContent;
1810
- /**
1811
- * Additional provider-specific metadata. They are passed through
1812
- * to the provider from the AI SDK and enable provider-specific
1813
- * functionality that can be fully encapsulated in the provider.
1814
- */
1815
- providerOptions?: ProviderOptions;
1816
- };
1817
- /**
1818
- * Content of an assistant message.
1819
- * It can be a string or an array of text, image, reasoning, redacted reasoning, and tool call parts.
1820
- */
1821
- type AssistantContent = string | Array<TextPart | CustomPart | FilePart | ReasoningPart | ReasoningFilePart | ToolCallPart | ToolResultPart | ToolApprovalRequest>;
1822
- //#endregion
1823
- //#region src/types/system-model-message.d.ts
1824
- /**
1825
- * A system message. It can contain system information.
1826
- *
1827
- * Note: using the "system" part of the prompt is strongly preferred
1828
- * to increase the resilience against prompt injection attacks,
1829
- * and because not all providers support several system messages.
1830
- */
1831
- type SystemModelMessage = {
1832
- role: 'system';
1833
- content: string;
1834
- /**
1835
- * Additional provider-specific metadata. They are passed through
1836
- * to the provider from the AI SDK and enable provider-specific
1837
- * functionality that can be fully encapsulated in the provider.
1838
- */
1839
- providerOptions?: ProviderOptions;
1840
- };
1841
- //#endregion
1842
- //#region src/types/tool-approval-response.d.ts
1843
- /**
1844
- * Tool approval response prompt part.
1845
- */
1846
- type ToolApprovalResponse = {
1847
- type: 'tool-approval-response';
1848
- /**
1849
- * ID of the tool approval.
1850
- */
1851
- approvalId: string;
1852
- /**
1853
- * Flag indicating whether the approval was granted or denied.
1854
- */
1855
- approved: boolean;
1856
- /**
1857
- * Optional reason for the approval or denial.
1858
- *
1859
- * For denied tool calls, the reason is included in the `execution-denied`
1860
- * tool result that is sent to the model. For approved tool calls that are
1861
- * executed by the SDK, the reason remains in the message history: it is not
1862
- * included in the model prompt and is not exposed through a dedicated tool
1863
- * execution option. For provider-executed tools, the approval response
1864
- * (including the reason) is forwarded to the provider.
1865
- */
1866
- reason?: string;
1867
- /**
1868
- * Flag indicating whether the tool call is provider-executed.
1869
- * Only provider-executed tool approval responses should be sent to the model.
1870
- */
1871
- providerExecuted?: boolean;
1872
- };
1873
- //#endregion
1874
- //#region src/types/tool-model-message.d.ts
1875
- /**
1876
- * A tool message. It contains the result of one or more tool calls.
1877
- */
1878
- type ToolModelMessage = {
1879
- role: 'tool';
1880
- content: ToolContent;
1881
- /**
1882
- * Additional provider-specific metadata. They are passed through
1883
- * to the provider from the AI SDK and enable provider-specific
1884
- * functionality that can be fully encapsulated in the provider.
1885
- */
1886
- providerOptions?: ProviderOptions;
1887
- };
1888
- /**
1889
- * Content of a tool message. It is an array of tool result parts.
1890
- */
1891
- type ToolContent = Array<ToolResultPart | ToolApprovalResponse>;
1892
- //#endregion
1893
- //#region src/types/user-model-message.d.ts
1894
- /**
1895
- * A user message. It can contain text or a combination of text and images.
1896
- */
1897
- type UserModelMessage = {
1898
- role: 'user';
1899
- content: UserContent;
1900
- /**
1901
- * Additional provider-specific metadata. They are passed through
1902
- * to the provider from the AI SDK and enable provider-specific
1903
- * functionality that can be fully encapsulated in the provider.
1904
- */
1905
- providerOptions?: ProviderOptions;
1906
- };
1907
- /**
1908
- * Content of a user message. It can be a string or an array of text and image parts.
1909
- */
1910
- type UserContent = string | Array<TextPart | ImagePart | FilePart>;
1911
- //#endregion
1912
- //#region src/types/model-message.d.ts
1913
- /**
1914
- * A message that can be used in the `messages` field of a prompt.
1915
- * It can be a user message, an assistant message, or a tool message.
1916
- */
1917
- type ModelMessage = SystemModelMessage | UserModelMessage | AssistantModelMessage | ToolModelMessage;
1918
- //#endregion
1919
- //#region src/types/sandbox.d.ts
1920
- /**
1921
- * Options for executing a command in the sandbox via `run` or `spawn`.
1922
- */
1923
- type SandboxProcessOptions = {
1924
- /**
1925
- * Command to execute in the sandbox.
1926
- */
1927
- command: string;
1928
- /**
1929
- * Working directory to execute the command in.
1930
- */
1931
- workingDirectory?: string;
1932
- /**
1933
- * Environment variables to set for this command. Merged with the
1934
- * sandbox's default environment; values here take precedence.
1935
- * Supporting environment variables as an option is preferable from a
1936
- * security perspective, e.g. to avoid them leaking in logs.
1937
- */
1938
- env?: Record<string, string>;
1939
- /**
1940
- * Signal that can be used to abort the command. When aborted, the running
1941
- * process is killed; for `spawn`, `wait()` rejects with the abort reason.
1942
- */
1943
- abortSignal?: AbortSignal;
1944
- };
1945
- type SandboxRunOptions = SandboxProcessOptions;
1946
- type SandboxSpawnOptions = SandboxProcessOptions & {
1947
- stdin?: boolean;
1948
- };
1949
- type SandboxSpawnOptionsWithStdin = SandboxProcessOptions & {
1950
- stdin: true;
1951
- };
1952
- type SandboxSpawnOptionsWithoutStdin = SandboxProcessOptions & {
1953
- stdin?: false;
1954
- };
1955
- /**
1956
- * Options for reading, inspecting, or deleting one path in the sandbox.
1957
- */
1958
- type PathOptions = {
1959
- /**
1960
- * Path to operate on.
1961
- */
1962
- path: string;
1963
- /**
1964
- * Signal that can be used to abort the operation.
1965
- */
1966
- abortSignal?: AbortSignal;
1967
- };
1968
- type SandboxReadFileOptions = PathOptions;
1969
- type SandboxReadBinaryFileOptions = PathOptions;
1970
- type SandboxReadTextFileOptions = PathOptions & {
1971
- /**
1972
- * Text encoding used to decode the file bytes. Defaults to `"utf-8"`.
1973
- */
1974
- encoding?: string;
1975
- /**
1976
- * 1-based inclusive start line. Defaults to 1.
1977
- */
1978
- startLine?: number;
1979
- /**
1980
- * 1-based inclusive end line. When past the file's line count, the read
1981
- * returns through EOF without error.
1982
- */
1983
- endLine?: number;
1984
- };
1985
- type SandboxStatOptions = PathOptions;
1986
- type SandboxListDirectoryOptions = PathOptions;
1987
- type SandboxDeleteFileOptions = PathOptions;
1988
- /**
1989
- * Information about a file or directory in the sandbox, returned by
1990
- * `SandboxSession.stat`. Symbolic links are followed.
1991
- */
1992
- type SandboxFileStat = {
1993
- /**
1994
- * Type of the path. `other` covers devices, sockets, and named pipes.
1995
- */
1996
- type: 'file' | 'directory' | 'other';
1997
- /**
1998
- * Size in bytes. The size of a directory is implementation-defined.
1999
- */
2000
- size: number;
2001
- };
2002
- /**
2003
- * Entry in a directory listing, returned by `SandboxSession.listDirectory`.
2004
- */
2005
- type SandboxDirectoryEntry = {
2006
- /**
2007
- * Name of the entry, without the directory path.
2008
- */
2009
- name: string;
2010
- /**
2011
- * Type of the entry. Symbolic links are reported as `symlink` and not
2012
- * followed. `other` covers devices, sockets, and named pipes.
2013
- */
2014
- type: 'file' | 'directory' | 'symlink' | 'other';
2015
- };
2016
- /**
2017
- * Options for writing a file to the sandbox. `CONTENT` is the payload written
2018
- * to the file: a byte stream, raw bytes, or a string.
2019
- */
2020
- type WriteFileOptions<CONTENT> = {
2021
- /**
2022
- * Path of the file to write.
2023
- */
2024
- path: string;
2025
- /**
2026
- * Content to write to the file.
2027
- */
2028
- content: CONTENT;
2029
- /**
2030
- * Signal that can be used to abort the write.
2031
- */
2032
- abortSignal?: AbortSignal;
2033
- };
2034
- type SandboxWriteFileOptions = WriteFileOptions<ReadableStream<Uint8Array>>;
2035
- type SandboxWriteBinaryFileOptions = WriteFileOptions<Uint8Array>;
2036
- type SandboxWriteTextFileOptions = WriteFileOptions<string> & {
2037
- /**
2038
- * Text encoding used to encode the string to bytes. Defaults to `"utf-8"`.
2039
- */
2040
- encoding?: string;
2041
- };
2042
- /**
2043
- * Sandbox session that can execute commands and read/write files.
2044
- *
2045
- * Relative paths in every method, including the `workingDirectory` option of
2046
- * `run` and `spawn`, resolve against the same base directory: the directory
2047
- * that `run` and `spawn` start in when no `workingDirectory` is given. The
2048
- * base directory does not change for the lifetime of the session; changing
2049
- * the directory inside a command, e.g. with `cd`, only affects that command.
2050
- * Absolute paths are used as is.
2051
- */
2052
- type SandboxSession = {
2053
- /**
2054
- * Description of the sandbox environment that can be added to the agent's instructions
2055
- * so that the agent knows about relevant details such as the root directory, exposed
2056
- * ports, the public hostname, etc.
2057
- */
2058
- readonly description: string;
2059
- /**
2060
- * Read one file from the sandbox as a stream of bytes. Resolves to `null`
2061
- * when the file does not exist.
2062
- *
2063
- * This is the lowest-level read primitive; prefer `readBinaryFile` or
2064
- * `readTextFile` unless you need to stream bytes.
2065
- */
2066
- readonly readFile: (options: SandboxReadFileOptions) => PromiseLike<ReadableStream<Uint8Array> | null>;
2067
- /**
2068
- * Read one file from the sandbox as raw bytes. Resolves to `null` when the
2069
- * file does not exist.
2070
- */
2071
- readonly readBinaryFile: (options: SandboxReadBinaryFileOptions) => PromiseLike<Uint8Array | null>;
2072
- /**
2073
- * Read one text file from the sandbox, decoded using the requested encoding.
2074
- * Resolves to `null` when the file does not exist.
2075
- *
2076
- * Line ranges are 1-based and inclusive. When `endLine` is past EOF the read
2077
- * returns through EOF without error.
2078
- */
2079
- readonly readTextFile: (options: SandboxReadTextFileOptions) => PromiseLike<string | null>;
2080
- /**
2081
- * Write one file to the sandbox from a stream of bytes. Creates parent
2082
- * directories recursively and overwrites any existing file. Rejects when the
2083
- * path is a directory.
2084
- *
2085
- * This is the lowest-level write primitive; prefer `writeBinaryFile` or
2086
- * `writeTextFile` when the full content is already materialized in memory.
2087
- */
2088
- readonly writeFile: (options: SandboxWriteFileOptions) => PromiseLike<void>;
2089
- /**
2090
- * Write one file to the sandbox from raw bytes. Creates parent directories
2091
- * recursively and overwrites any existing file. Rejects when the path is a
2092
- * directory.
2093
- */
2094
- readonly writeBinaryFile: (options: SandboxWriteBinaryFileOptions) => PromiseLike<void>;
2095
- /**
2096
- * Write one file to the sandbox from a string, encoded using the requested
2097
- * encoding. Creates parent directories recursively and overwrites any
2098
- * existing file. Rejects when the path is a directory.
2099
- */
2100
- readonly writeTextFile: (options: SandboxWriteTextFileOptions) => PromiseLike<void>;
2101
- /**
2102
- * Get information about a file or directory. Symbolic links are followed.
2103
- * Resolves to `null` when the path does not exist.
2104
- */
2105
- readonly stat: (options: SandboxStatOptions) => PromiseLike<SandboxFileStat | null>;
2106
- /**
2107
- * List the entries of one directory, without descending into
2108
- * subdirectories. The order of entries is unspecified. Resolves to `null`
2109
- * when the directory does not exist and rejects when the path is not a
2110
- * directory.
2111
- */
2112
- readonly listDirectory: (options: SandboxListDirectoryOptions) => PromiseLike<Array<SandboxDirectoryEntry> | null>;
2113
- /**
2114
- * Delete one file. A symbolic link is deleted itself, not its target.
2115
- * Resolves to `true` when the file was deleted and `false` when it does not
2116
- * exist. Rejects when the path is a directory.
2117
- */
2118
- readonly deleteFile: (options: SandboxDeleteFileOptions) => PromiseLike<boolean>;
2119
- /**
2120
- * Spawn a long-running process in the sandbox. Returns immediately with a
2121
- * handle that streams stdout/stderr, can be waited on, and can be killed.
2122
- *
2123
- * `run` is conceptually a thin wrapper over this primitive: spawn,
2124
- * collect both streams to strings, await `wait()`, return the result.
2125
- *
2126
- * Set `stdin` to `true` to keep standard input open and expose a writable
2127
- * stream on the returned handle. Implementations that do not support writable
2128
- * stdin must reject before starting the command. When omitted or `false`,
2129
- * standard input is closed and the handle has no `stdin` property.
2130
- */
2131
- readonly spawn: {
2132
- (options: SandboxSpawnOptionsWithStdin): PromiseLike<WritableSandboxProcess>;
2133
- (options: SandboxSpawnOptionsWithoutStdin): PromiseLike<SandboxProcess>;
2134
- (options: SandboxSpawnOptions): PromiseLike<SandboxProcess | WritableSandboxProcess>;
2135
- };
2136
- /**
2137
- * Run a command in the sandbox.
2138
- */
2139
- readonly run: (options: SandboxRunOptions) => PromiseLike<{
2140
- /**
2141
- * Exit code returned by the command.
2142
- */
2143
- exitCode: number;
2144
- /**
2145
- * Standard output produced by the command.
2146
- */
2147
- stdout: string;
2148
- /**
2149
- * Standard error produced by the command.
2150
- */
2151
- stderr: string;
2152
- }>;
2153
- };
2154
- /**
2155
- * Handle to a long-running process started via `SandboxSession.spawn`.
2156
- */
2157
- type SandboxProcess = {
2158
- /**
2159
- * Process identifier, if the sandbox implementation exposes one.
2160
- */
2161
- readonly pid?: number;
2162
- /**
2163
- * Stream of bytes written by the process to standard output.
2164
- */
2165
- readonly stdout: ReadableStream<Uint8Array>;
2166
- /**
2167
- * Stream of bytes written by the process to standard error.
2168
- */
2169
- readonly stderr: ReadableStream<Uint8Array>;
2170
- /**
2171
- * Resolve when the process exits, yielding its exit code.
2172
- */
2173
- wait(): PromiseLike<{
2174
- exitCode: number;
2175
- }>;
2176
- /**
2177
- * Terminate the process. Idempotent.
2178
- */
2179
- kill(): PromiseLike<void>;
2180
- };
2181
- type WritableSandboxProcess = SandboxProcess & {
2182
- /**
2183
- * Stream of bytes written to the process's standard input. Closing the stream
2184
- * delivers EOF after pending writes without terminating the process.
2185
- */
2186
- readonly stdin: WritableStream<Uint8Array>;
2187
- };
2188
- //#endregion
2189
- //#region src/types/tool-execute-function.d.ts
2190
- /**
2191
- * Additional options that are sent into each tool execution.
2192
- */
2193
- interface ToolExecutionOptions<CONTEXT extends Context | unknown | never> {
2194
- /**
2195
- * The ID of the tool call. You can use it e.g. when sending tool-call related information with stream data.
2196
- */
2197
- toolCallId: string;
2198
- /**
2199
- * Messages that were sent to the language model to initiate the response that contained the tool call.
2200
- * The messages **do not** include the system prompt nor the assistant response that contained the tool call.
2201
- */
2202
- messages: ModelMessage[];
2203
- /**
2204
- * An optional abort signal that indicates that the overall operation should be aborted.
2205
- */
2206
- abortSignal?: AbortSignal;
2207
- /**
2208
- * Tool context as defined by the tool's context schema.
2209
- * The tool context is specific to the tool and is passed to the tool execution.
2210
- *
2211
- * Treat the context object as immutable inside tools.
2212
- * Mutating the context object can lead to race conditions and unexpected results
2213
- * when tools are called in parallel.
2214
- *
2215
- * If you need to mutate the context, analyze the tool calls and results
2216
- * in `prepareStep` and update it there.
2217
- */
2218
- context: CONTEXT;
2219
- /**
2220
- * The sandbox environment that the tool is operating in.
2221
- */
2222
- experimental_sandbox?: SandboxSession;
2223
- }
2224
- /**
2225
- * Function that executes the tool and returns either a single result or a stream of results.
2226
- */
2227
- type ToolExecuteFunction<INPUT, OUTPUT, CONTEXT extends Context | unknown | never> = (input: INPUT, options: ToolExecutionOptions<CONTEXT>) => AsyncIterable<OUTPUT> | PromiseLike<OUTPUT> | OUTPUT;
2228
- //#endregion
2229
- //#region src/types/tool-needs-approval-function.d.ts
2230
- /**
2231
- * Function that is called to determine if the tool needs approval before it can be executed.
2232
- *
2233
- * @deprecated Tool approval is handled on a `generateText` / `streamText` level now.
2234
- */
2235
- type ToolNeedsApprovalFunction<INPUT, CONTEXT extends Context | unknown | never> = (input: INPUT, options: {
2236
- /**
2237
- * The ID of the tool call. You can use it e.g. when sending tool-call related information with stream data.
2238
- */
2239
- toolCallId: string;
2240
- /**
2241
- * Messages that were sent to the language model to initiate the response that contained the tool call.
2242
- * The messages **do not** include the system prompt nor the assistant response that contained the tool call.
2243
- */
2244
- messages: ModelMessage[];
2245
- /**
2246
- * Tool context as defined by the tool's context schema.
2247
- * The tool context is specific to the tool and is passed to the tool execution.
2248
- *
2249
- * Treat the context object as immutable inside tools.
2250
- * Mutating the context object can lead to race conditions and unexpected results
2251
- * when tools are called in parallel.
2252
- *
2253
- * If you need to mutate the context, analyze the tool calls and results
2254
- * in `prepareStep` and update it there.
2255
- */
2256
- context: CONTEXT;
2257
- }) => boolean | PromiseLike<boolean>;
2258
- //#endregion
2259
- //#region src/types/tool.d.ts
2260
- /**
2261
- * Helper type to determine the outputSchema and execute function properties of a tool.
2262
- */
2263
- type ToolOutputProperties<INPUT, OUTPUT, CONTEXT extends Context | unknown | never> = NeverOptional<OUTPUT, {
2264
- /**
2265
- * The optional schema of the output that the tool produces.
2266
- *
2267
- * If not provided, the output shape will be inferred from the execute function.
2268
- */
2269
- outputSchema?: FlexibleSchema<OUTPUT>;
2270
- /**
2271
- * An async function that is called with the arguments from the tool call and produces a result.
2272
- * If not provided, the tool will not be executed automatically.
2273
- *
2274
- * @args is the input of the tool call.
2275
- * @options.abortSignal is a signal that can be used to abort the tool call.
2276
- */
2277
- execute: ToolExecuteFunction<INPUT, OUTPUT, CONTEXT>;
2278
- } | {
2279
- /**
2280
- * The schema of the output that the tool produces.
2281
- *
2282
- * Required when no execute function is provided.
2283
- */
2284
- outputSchema: FlexibleSchema<OUTPUT>;
2285
- execute?: never;
2286
- }>;
2287
- /**
2288
- * Common properties shared by all tool kinds.
2289
- */
2290
- type BaseTool<INPUT extends JSONValue | unknown | never = any, OUTPUT extends JSONValue | unknown | never = any, CONTEXT extends Context | unknown | never = any> = {
2291
- /**
2292
- * Defer exposing this tool until it is discovered by `toolSearch`.
2293
- * Supports direct calls and local callers that announce tools in conversation
2294
- * messages (code mode with `toolDiscovery: 'conversation'`). Discovered tools
2295
- * become available on the next model step.
2296
- */
2297
- deferLoading?: boolean;
2298
- /**
2299
- * An optional title of the tool.
2300
- *
2301
- * @deprecated Use `providerMetadata` for source-specific tool display metadata.
2302
- */
2303
- title?: string;
2304
- /**
2305
- * Additional provider-specific metadata. They are passed through
2306
- * to the provider from the AI SDK and enable provider-specific
2307
- * functionality that can be fully encapsulated in the provider.
2308
- */
2309
- providerOptions?: ProviderOptions;
2310
- /**
2311
- * Optional metadata about the tool itself (e.g. its source).
2312
- *
2313
- * Unlike `providerOptions`, this metadata is not sent to the language
2314
- * model. Instead, it is propagated onto the resulting tool call's
2315
- * `toolMetadata` so consumers can read it from tool call / result parts
2316
- * and UI message parts. This is useful for sources of dynamic tools (e.g.
2317
- * an MCP server) to identify themselves.
2318
- */
2319
- metadata?: JSONObject;
2320
- /**
2321
- * The schema of the input that the tool expects.
2322
- * The language model will use this to generate the input.
2323
- * It is also used to validate the output of the language model.
2324
- *
2325
- * You can use descriptions on the schema properties to make the input understandable for the language model.
2326
- */
2327
- inputSchema: FlexibleSchema<INPUT>;
2328
- /**
2329
- * An optional schema describing the context that the tool expects.
2330
- *
2331
- * The context is passed to execute function as part of the execution options.
2332
- */
2333
- contextSchema?: FlexibleSchema<CONTEXT>;
2334
- /**
2335
- * Whether the tool needs approval before it can be executed.
2336
- *
2337
- * @deprecated Tool approval is handled on a `generateText` / `streamText` level now.
2338
- */
2339
- needsApproval?: boolean | ToolNeedsApprovalFunction<[INPUT] extends [never] ? unknown : INPUT, NoInfer<CONTEXT>>;
2340
- /**
2341
- * Optional function that is called when the model starts generating the tool input.
2342
- * In non-streaming contexts, it is called immediately before `onInputAvailable`.
2343
- */
2344
- onInputStart?: (options: ToolExecutionOptions<NoInfer<CONTEXT>>) => void | PromiseLike<void>;
2345
- /**
2346
- * Optional function that is called when an argument streaming delta is available.
2347
- * Only called when the tool is used in a streaming context.
2348
- */
2349
- onInputDelta?: (options: {
2350
- inputTextDelta: string;
2351
- } & ToolExecutionOptions<NoInfer<CONTEXT>>) => void | PromiseLike<void>;
2352
- /**
2353
- * Optional function that is called when a tool call can be started,
2354
- * even if the execute function is not provided.
2355
- */
2356
- onInputAvailable?: (options: {
2357
- input: [INPUT] extends [never] ? unknown : INPUT;
2358
- } & ToolExecutionOptions<NoInfer<CONTEXT>>) => void | PromiseLike<void>;
2359
- /**
2360
- * Optional conversion function that maps the tool result to an output that can be used by the language model.
2361
- *
2362
- * If not provided, the tool result will be sent as a JSON object.
2363
- *
2364
- * This function is invoked on the server by `convertToModelMessages`, so ensure that you pass the same "tools" (ToolSet) to both "convertToModelMessages" and "streamText" (or other generation APIs).
2365
- */
2366
- toModelOutput?: (options: {
2367
- /**
2368
- * The ID of the tool call. You can use it e.g. when sending tool-call related information with stream data.
2369
- */
2370
- toolCallId: string;
2371
- /**
2372
- * The input of the tool call.
2373
- */
2374
- input: [INPUT] extends [never] ? unknown : INPUT;
2375
- /**
2376
- * The output of the tool call.
2377
- */
2378
- output: 0 extends 1 & OUTPUT ? any : [OUTPUT] extends [never] ? any : NoInfer<OUTPUT>;
2379
- }) => ToolResultOutput | PromiseLike<ToolResultOutput>;
2380
- } & ToolOutputProperties<INPUT, OUTPUT, NoInfer<CONTEXT>>;
2381
- /**
2382
- * Common properties shared by function-style tools.
2383
- */
2384
- type BaseFunctionTool<INPUT extends JSONValue | unknown | never = any, OUTPUT extends JSONValue | unknown | never = any, CONTEXT extends Context | unknown | never = any> = BaseTool<INPUT, OUTPUT, CONTEXT> & {
2385
- /**
2386
- * Optional description of what the tool does.
2387
- *
2388
- * Included in the tool definition sent to the language model so it can
2389
- * decide when and how to call the tool.
2390
- *
2391
- * Provide a string for a fixed description, or a function that returns a
2392
- * string from the current `context` (and optional `experimental_sandbox`) when the
2393
- * description should vary per call.
2394
- */
2395
- description?: string | ((options: {
2396
- context: NoInfer<CONTEXT>;
2397
- experimental_sandbox?: SandboxSession;
2398
- }) => string);
2399
- /**
2400
- * Strict mode setting for the tool.
2401
- *
2402
- * Providers that support strict mode will use this setting to determine
2403
- * how the input should be generated. Strict mode will always produce
2404
- * valid inputs, but it might limit what input schemas are supported.
2405
- */
2406
- strict?: boolean;
2407
- /**
2408
- * An optional list of input examples that show the language
2409
- * model what the input should look like.
2410
- */
2411
- inputExamples?: Array<{
2412
- input: NoInfer<INPUT>;
2413
- }>;
2414
- id?: never;
2415
- isProviderExecuted?: never;
2416
- args?: never;
2417
- supportsDeferredResults?: never;
2418
- };
2419
- /**
2420
- * Tool with user-defined input and output schemas that is executed by the AI SDK.
2421
- */
2422
- type FunctionTool<INPUT extends JSONValue | unknown | never = any, OUTPUT extends JSONValue | unknown | never = any, CONTEXT extends Context | unknown | never = any> = BaseFunctionTool<INPUT, OUTPUT, CONTEXT> & {
2423
- type?: undefined | 'function';
2424
- };
2425
- /**
2426
- * Tool that is defined at runtime.
2427
- * The types of input and output are not known at development time.
2428
- *
2429
- * For example, MCP tools that are not known at development time.
2430
- */
2431
- type DynamicTool<INPUT extends JSONValue | unknown | never = any, OUTPUT extends JSONValue | unknown | never = any, CONTEXT extends Context | unknown | never = any> = BaseFunctionTool<INPUT, OUTPUT, CONTEXT> & {
2432
- type: 'dynamic';
2433
- };
2434
- /**
2435
- * Common properties shared by provider tools.
2436
- */
2437
- type BaseProviderTool<INPUT extends JSONValue | unknown | never = any, OUTPUT extends JSONValue | unknown | never = any, CONTEXT extends Context | unknown | never = any> = BaseTool<INPUT, OUTPUT, CONTEXT> & {
2438
- type: 'provider';
2439
- /**
2440
- * The ID of the tool. Must follow the format `<provider-name>.<unique-tool-name>`.
2441
- */
2442
- id: `${string}.${string}`;
2443
- /**
2444
- * The arguments for configuring the tool. Must match the expected arguments defined by the provider for this tool.
2445
- */
2446
- args: Record<string, unknown>;
2447
- description?: never;
2448
- strict?: never;
2449
- inputExamples?: never;
2450
- };
2451
- /**
2452
- * Tool with provider-defined input and output schemas that is executed by the
2453
- * user.
2454
- *
2455
- * For example, shell tools that are executed in a local shell, but have provider-defined input and output schemas.
2456
- */
2457
- type ProviderDefinedTool<INPUT extends JSONValue | unknown | never = any, OUTPUT extends JSONValue | unknown | never = any, CONTEXT extends Context | unknown | never = any> = BaseProviderTool<INPUT, OUTPUT, CONTEXT> & {
2458
- /**
2459
- * Flag that indicates whether the tool is executed by the provider.
2460
- */
2461
- isProviderExecuted: false;
2462
- supportsDeferredResults?: never;
2463
- };
2464
- /**
2465
- * Tool with provider-defined input and output schemas that is executed by the
2466
- * provider.
2467
- *
2468
- * For example, web search tools and code execution tools that are executed by the provider itself.
2469
- */
2470
- type ProviderExecutedTool<INPUT extends JSONValue | unknown | never = any, OUTPUT extends JSONValue | unknown | never = any, CONTEXT extends Context | unknown | never = any> = BaseProviderTool<INPUT, OUTPUT, CONTEXT> & {
2471
- /**
2472
- * Flag that indicates whether the tool is executed by the provider.
2473
- */
2474
- isProviderExecuted: true;
2475
- /**
2476
- * Whether this provider-executed tool supports deferred results.
2477
- *
2478
- * When true, the tool result may not be returned in the same turn as the
2479
- * tool call (e.g., when using programmatic tool calling where a server tool
2480
- * triggers a client-executed tool, and the server tool's result is deferred
2481
- * until the client tool is resolved).
2482
- *
2483
- * This flag allows the AI SDK to handle tool results that arrive without
2484
- * a matching tool call in the current response.
2485
- *
2486
- * @default false
2487
- */
2488
- supportsDeferredResults?: boolean;
2489
- };
2490
- /**
2491
- * A tool can either be user-defined or provider-defined.
2492
- *
2493
- * It contains the schemas and metadata needed for the language model to call
2494
- * the tool and can include an execute function for tools that are executed by
2495
- * the AI SDK.
2496
- */
2497
- type Tool<INPUT extends JSONValue | unknown | never = any, OUTPUT extends JSONValue | unknown | never = any, CONTEXT extends Context | unknown | never = any> = FunctionTool<INPUT, OUTPUT, CONTEXT> | DynamicTool<INPUT, OUTPUT, CONTEXT> | ProviderDefinedTool<INPUT, OUTPUT, CONTEXT> | ProviderExecutedTool<INPUT, OUTPUT, CONTEXT>;
2498
- /**
2499
- * Infer the tool type from a tool object.
2500
- *
2501
- * This is useful for type inference when working with tool objects.
2502
- *
2503
- * When the input has an `execute` function, the return type narrows to
2504
- * `ExecutableTool<Tool<...>>` so that `.execute` is non-nullable without
2505
- * needing `isExecutableTool` or a `!` assertion at the call site.
2506
- */
2507
- declare function tool$1<INPUT, OUTPUT, CONTEXT extends Context>(tool: Tool<INPUT, OUTPUT, CONTEXT> & {
2508
- execute: ToolExecuteFunction<INPUT, OUTPUT, CONTEXT>;
2509
- }): ExecutableTool<Tool<INPUT, OUTPUT, CONTEXT>>;
2510
- declare function tool$1<INPUT, OUTPUT, CONTEXT extends Context>(tool: Tool<INPUT, OUTPUT, CONTEXT>): Tool<INPUT, OUTPUT, CONTEXT>;
2511
- declare function tool$1<INPUT, CONTEXT extends Context>(tool: Tool<INPUT, never, CONTEXT>): Tool<INPUT, never, CONTEXT>;
2512
- declare function tool$1<OUTPUT, CONTEXT extends Context>(tool: Tool<never, OUTPUT, CONTEXT>): Tool<never, OUTPUT, CONTEXT>;
2513
- declare function tool$1<CONTEXT extends Context>(tool: Tool<never, never, CONTEXT>): Tool<never, never, CONTEXT>;
2514
- /**
2515
- * Define a dynamic tool.
2516
- */
2517
- export declare function dynamicTool(tool: Omit<DynamicTool<unknown, unknown, Context>, 'type'>): DynamicTool<unknown, unknown, Context>;
2518
- //#endregion
2519
- //#region src/provider-defined-tool-factory.d.ts
2520
- /**
2521
- * A provider-defined tool is a tool for which the provider defines the input
2522
- * and output schemas, but does not execute the tool.
2523
- */
2524
- type ProviderDefinedToolFactory<INPUT, ARGS extends object, CONTEXT extends Context = {}> = <OUTPUT>(options: ARGS & {
2525
- execute?: ToolExecuteFunction<INPUT, OUTPUT, CONTEXT>;
2526
- needsApproval?: Tool<INPUT, OUTPUT, CONTEXT>['needsApproval'];
2527
- toModelOutput?: Tool<INPUT, OUTPUT, CONTEXT>['toModelOutput'];
2528
- onInputStart?: Tool<INPUT, OUTPUT, CONTEXT>['onInputStart'];
2529
- onInputDelta?: Tool<INPUT, OUTPUT, CONTEXT>['onInputDelta'];
2530
- onInputAvailable?: Tool<INPUT, OUTPUT, CONTEXT>['onInputAvailable'];
2531
- }) => ProviderDefinedTool<INPUT, OUTPUT, CONTEXT>;
2532
- export declare function createProviderDefinedToolFactory<INPUT, ARGS extends object, CONTEXT extends Context = {}>({ id, inputSchema, redactArgs }: {
2533
- id: `${string}.${string}`;
2534
- inputSchema: FlexibleSchema<INPUT>;
2535
- /** Provider-owned telemetry view of the tool configuration. */
2536
- redactArgs?: (args: Record<string, unknown>) => Record<string, unknown>;
2537
- }): ProviderDefinedToolFactory<INPUT, ARGS, CONTEXT>;
2538
- type ProviderDefinedToolFactoryWithOutputSchema<INPUT, OUTPUT, ARGS extends object, CONTEXT extends Context = {}> = (options: ARGS & {
2539
- execute?: ToolExecuteFunction<INPUT, OUTPUT, CONTEXT>;
2540
- needsApproval?: Tool<INPUT, OUTPUT, CONTEXT>['needsApproval'];
2541
- toModelOutput?: Tool<INPUT, OUTPUT, CONTEXT>['toModelOutput'];
2542
- onInputStart?: Tool<INPUT, OUTPUT, CONTEXT>['onInputStart'];
2543
- onInputDelta?: Tool<INPUT, OUTPUT, CONTEXT>['onInputDelta'];
2544
- onInputAvailable?: Tool<INPUT, OUTPUT, CONTEXT>['onInputAvailable'];
2545
- }) => ProviderDefinedTool<INPUT, OUTPUT, CONTEXT>;
2546
- export declare function createProviderDefinedToolFactoryWithOutputSchema<INPUT, OUTPUT, ARGS extends object, CONTEXT extends Context = {}>({ id, inputSchema, outputSchema, redactArgs }: {
2547
- id: `${string}.${string}`;
2548
- inputSchema: FlexibleSchema<INPUT>;
2549
- outputSchema: FlexibleSchema<OUTPUT>;
2550
- /** Provider-owned telemetry view of the tool configuration. */
2551
- redactArgs?: (args: Record<string, unknown>) => Record<string, unknown>;
2552
- }): ProviderDefinedToolFactoryWithOutputSchema<INPUT, OUTPUT, ARGS, CONTEXT>;
2553
- //#endregion
2554
- //#region src/provider-executed-tool-factory.d.ts
2555
- /**
2556
- * A provider-executed tool is a tool for which the provider executes the tool.
2557
- */
2558
- type ProviderExecutedToolFactory<INPUT, OUTPUT, ARGS extends object, CONTEXT extends Context = {}> = (options: ARGS & {
2559
- onInputStart?: Tool<INPUT, OUTPUT, CONTEXT>['onInputStart'];
2560
- onInputDelta?: Tool<INPUT, OUTPUT, CONTEXT>['onInputDelta'];
2561
- onInputAvailable?: Tool<INPUT, OUTPUT, CONTEXT>['onInputAvailable'];
2562
- }) => ProviderExecutedTool<INPUT, OUTPUT, CONTEXT>;
2563
- export declare function createProviderExecutedToolFactory<INPUT, OUTPUT, ARGS extends object, CONTEXT extends Context = {}>({ id, inputSchema, outputSchema, supportsDeferredResults, redactArgs }: {
2564
- id: `${string}.${string}`;
2565
- inputSchema: FlexibleSchema<INPUT>;
2566
- outputSchema: FlexibleSchema<OUTPUT>;
2567
- /**
2568
- * Whether this provider-executed tool supports deferred results.
2569
- *
2570
- * When true, the tool result may not be returned in the same turn as the
2571
- * tool call (e.g., when using programmatic tool calling where a server tool
2572
- * triggers a client-executed tool, and the server tool's result is deferred
2573
- * until the client tool is resolved).
2574
- *
2575
- * @default false
2576
- */
2577
- supportsDeferredResults?: boolean;
2578
- /** Provider-owned telemetry view of the tool configuration. */
2579
- redactArgs?: (args: Record<string, unknown>) => Record<string, unknown>;
2580
- }): ProviderExecutedToolFactory<INPUT, OUTPUT, ARGS, CONTEXT>;
2581
- //#endregion
2582
- //#region src/cancel-response-body.d.ts
2583
- /**
2584
- * Cancels a response body to release the underlying connection.
2585
- *
2586
- * When a fetch Response is rejected without consuming its body (e.g. a failed
2587
- * status code, an open-redirect rejection, or a Content-Length that exceeds the
2588
- * size limit), the underlying TCP socket is not returned to the connection pool
2589
- * and may stay open until the process runs out of file descriptors. Cancelling
2590
- * the body avoids this leak.
2591
- *
2592
- * Errors thrown while cancelling are ignored: the body may already be locked,
2593
- * disturbed, or absent, none of which should mask the original rejection.
2594
- */
2595
- export declare function cancelResponseBody(response: Response): Promise<void>;
2596
- //#endregion
2597
- //#region src/read-response-with-size-limit.d.ts
2598
- /**
2599
- * Default maximum download size: 2 GiB.
2600
- *
2601
- * `fetch().arrayBuffer()` has ~2x peak memory overhead (undici buffers the
2602
- * body internally, then creates the JS ArrayBuffer), so very large downloads
2603
- * risk exceeding the default V8 heap limit on 64-bit systems and terminating
2604
- * the process with an out-of-memory error.
2605
- *
2606
- * Setting this limit converts an unrecoverable OOM crash into a catchable
2607
- * `DownloadError`.
2608
- */
2609
- export declare const DEFAULT_MAX_DOWNLOAD_SIZE: number;
2610
- /**
2611
- * Reads a fetch Response body with a size limit to prevent memory exhaustion.
2612
- *
2613
- * Checks the Content-Length header for early rejection, then reads the body
2614
- * incrementally via ReadableStream and aborts with a DownloadError when the
2615
- * limit is exceeded.
2616
- *
2617
- * @param response - The fetch Response to read.
2618
- * @param url - The URL being downloaded (used in error messages).
2619
- * @param maxBytes - Maximum allowed bytes. Defaults to DEFAULT_MAX_DOWNLOAD_SIZE.
2620
- * @param onChunk - Optional. Receives each chunk instead of the chunks being
2621
- * collected, so the body is not held in memory, and the returned array is empty.
2622
- * The chunk may be a view on a larger buffer, copy what you keep.
2623
- * @returns A Uint8Array containing the response body.
2624
- * @throws DownloadError if the response exceeds maxBytes.
2625
- */
2626
- export declare function readResponseWithSizeLimit({ response, url, maxBytes, onChunk }: {
2627
- response: Response;
2628
- url: string;
2629
- maxBytes?: number;
2630
- onChunk?: (chunk: Uint8Array) => void;
2631
- }): Promise<Uint8Array>;
2632
- //#endregion
2633
- //#region src/remove-undefined-entries.d.ts
2634
- /**
2635
- * Removes entries from a record where the value is null or undefined.
2636
- * @param record - The input object whose entries may be null or undefined.
2637
- * @returns A new object containing only entries with non-null and non-undefined values.
2638
- */
2639
- export declare function removeUndefinedEntries<T>(record: Record<string, T | undefined>): Record<string, T>;
2640
- //#endregion
2641
- //#region src/resolve.d.ts
2642
- /**
2643
- * A value or a lazy provider of a value, each of which may be synchronous or asynchronous.
2644
- *
2645
- * @template T The resolved type after {@link resolve} runs.
2646
- *
2647
- * One of:
2648
- * - A plain value of type {@link T}
2649
- * - A {@link PromiseLike} of {@link T} (e.g. a `Promise<T>`)
2650
- * - A zero-argument function that returns a plain {@link T}
2651
- * - A zero-argument function that returns a {@link PromiseLike} of {@link T}
2652
- *
2653
- * The function form is only invoked when passed to {@link resolve}; it is not distinguished from
2654
- * a {@link T} that happens to be a function—callers should wrap function values if disambiguation
2655
- * is required.
2656
- */
2657
- export type Resolvable<T> = MaybePromiseLike<T> | (() => MaybePromiseLike<T>);
2658
- /**
2659
- * Resolves a value that could be a raw value, a Promise, a function returning a value,
2660
- * or a function returning a Promise.
2661
- */
2662
- export declare function resolve<T>(value: Resolvable<T>): Promise<T>;
2663
- /**
2664
- * Resolves and transforms a value, preserving synchronous results. This allows
2665
- * synchronous credentials to remain usable by workflow serialization while
2666
- * asynchronous credentials are awaited by request handlers.
2667
- */
2668
- export declare function resolveWith<T, U>(value: Resolvable<T>, transform: (value: T) => U): U | Promise<Awaited<U>>;
2669
- //#endregion
2670
- //#region src/resolve-full-media-type.d.ts
2671
- /**
2672
- * Resolves a file part's media type to a full `type/subtype` form required by
2673
- * providers whose API demands the full IANA media type.
2674
- *
2675
- * - If `part.mediaType` is already a full media type (e.g. `image/png`), it is
2676
- * returned as-is.
2677
- * - Otherwise, when inline bytes are available (`part.data.type === 'data'`),
2678
- * the subtype is sniffed from the bytes using the signature table that
2679
- * corresponds to the top-level segment.
2680
- * - When neither applies (e.g. top-level-only with a URL source, or bytes that
2681
- * cannot be detected), an `UnsupportedFunctionalityError` is thrown.
2682
- */
2683
- export declare function resolveFullMediaType({ part }: {
2684
- part: LanguageModelV4FilePart;
2685
- }): string;
2686
- //#endregion
2687
- //#region src/resolve-provider-reference.d.ts
2688
- /**
2689
- * Resolves a provider reference to the provider-specific identifier for the
2690
- * given provider. Throws `NoSuchProviderReferenceError` if the provider is not
2691
- * found in the reference mapping.
2692
- */
2693
- export declare function resolveProviderReference({ reference, provider }: {
2694
- reference: SharedV4ProviderReference;
2695
- provider: string;
2696
- }): string;
2697
- //#endregion
2698
- //#region src/retry-with-exponential-backoff.d.ts
2699
- export type RetryFunction = <OUTPUT>(fn: () => PromiseLike<OUTPUT>) => PromiseLike<OUTPUT>;
2700
- export type RetryErrorReason = 'maxRetriesExceeded' | 'errorNotRetryable';
2701
- export type RetryErrorFactory = ({ message, reason, errors }: {
2702
- message: string;
2703
- reason: RetryErrorReason;
2704
- errors: Array<unknown>;
2705
- }) => unknown;
2706
- export type RetryDelayProvider = ({ error, exponentialBackoffDelay }: {
2707
- error: unknown;
2708
- exponentialBackoffDelay: number;
2709
- }) => number;
2710
- export type ShouldRetryFunction = (error: unknown) => boolean | Promise<boolean>;
2711
- /**
2712
- * Retries a failed operation with exponential backoff.
2713
- */
2714
- export declare const retryWithExponentialBackoff: ({ maxRetries, initialDelayInMs, backoffFactor, abortSignal, shouldRetry, getDelayInMs, createRetryError }: {
2715
- maxRetries?: number;
2716
- initialDelayInMs?: number;
2717
- backoffFactor?: number;
2718
- abortSignal?: AbortSignal;
2719
- shouldRetry: ShouldRetryFunction;
2720
- getDelayInMs?: RetryDelayProvider;
2721
- createRetryError?: RetryErrorFactory;
2722
- }) => RetryFunction;
2723
- //#endregion
2724
- //#region src/serialize-model-options.d.ts
2725
- /**
2726
- * Serializes a model instance for workflow step boundaries.
2727
- * Returns the `modelId` plus the JSON-serializable config properties.
2728
- *
2729
- * Non-serializable values are omitted. As a special case, a
2730
- * function-valued `headers` property is resolved during serialization
2731
- * and included if the returned value is JSON-serializable.
2732
- *
2733
- * Used as the body of `static [WORKFLOW_SERIALIZE]` in provider models.
2734
- *
2735
- * @example
2736
- * ```ts
2737
- * static [WORKFLOW_SERIALIZE](model: MyLanguageModel) {
2738
- * return serializeModelOptions({
2739
- * modelId: model.modelId,
2740
- * config: model.config,
2741
- * });
2742
- * }
2743
- * ```
2744
- */
2745
- export declare function serializeModelOptions<CONFIG extends {
2746
- headers?: Resolvable<Record<string, string | undefined>>;
2747
- }>(options: {
2748
- modelId: string;
2749
- config: CONFIG;
2750
- }): {
2751
- modelId: string;
2752
- config: JSONObject;
2753
- };
2754
- //#endregion
2755
- //#region src/serialization-error.d.ts
2756
- declare const symbol: unique symbol;
2757
- export declare class SerializationError extends AISDKError {
2758
- private readonly [symbol];
2759
- constructor({ message, cause }?: {
2760
- message?: string;
2761
- cause?: unknown;
2762
- });
2763
- static isInstance(error: unknown): error is SerializationError;
2764
- }
2765
- //#endregion
2766
- //#region src/secure-json-parse.d.ts
2767
- export declare function secureJsonParse(text: string): any;
2768
- //#endregion
2769
- //#region src/telemetry-redaction.d.ts
2770
- /**
2771
- * Attach a provider-owned telemetry view without changing the original value.
2772
- * The annotation is not serialized or included in enumerable application data.
2773
- * Keep the annotated object when forwarding tool arguments or provider metadata.
2774
- */
2775
- export declare function withTelemetryRedaction<T extends Record<string, unknown>>(value: T, redact: (value: T) => T): T;
2776
- /** Apply the provider's telemetry view, leaving unannotated values unchanged. */
2777
- export declare function redactTelemetryValue<T>(value: T): T | undefined;
2778
- //#endregion
2779
- //#region src/speech-stream-envelope.d.ts
2780
- /**
2781
- * Experimental speech-stream WebSocket envelope (v1): the standard
2782
- * serialization of `Experimental_StreamingSpeechModelV4.doStream` over a WebSocket. Clients (e.g.
2783
- * the `@ai-sdk/gateway` provider) encode with this module and servers (e.g.
2784
- * AI Gateway) decode with it, so the two sides cannot drift.
2785
- *
2786
- * Envelope rules:
2787
- *
2788
- * 1. The client sends exactly one `speech-stream.start` TEXT frame first.
2789
- * 2. Input text rides `speech-stream.text-delta` TEXT frames, in order. A
2790
- * frame may carry its text part's `voice` and `providerOptions`. A long
2791
- * part may span several frames: `voice` is repeated on each, and
2792
- * `providerOptions` appear on the first only, so they must describe an
2793
- * event at the start of the part (e.g. a turn break), not a setting. An
2794
- * empty `delta` is valid and carries only part metadata; it does not end
2795
- * the input.
2796
- * 3. The client signals the end of the input text with the
2797
- * `speech-stream.text-done` TEXT frame; a plain close without it is an
2798
- * abort.
2799
- * 4. Every server→client TEXT frame is one JSON-serialized
2800
- * `SpeechModelV4StreamPart` (flattened, no wrapper). `audio` payloads are
2801
- * base64 strings. `Date` values (`response-metadata.timestamp`) serialize
2802
- * to ISO 8601 strings and are revived by `parseSpeechStreamPart`. `Error`
2803
- * payloads in `error` parts serialize as `{ name, message }`; servers may
2804
- * instead send `{ type, message }`, where `type` names an error class the
2805
- * client can map to a typed error (e.g. `invalid_request_error`).
2806
- * 5. The server closes with code 1000 after the `finish` part. Over this
2807
- * envelope an `error` part is terminal: the server sends it on failure and
2808
- * then closes non-1000. A close without a prior `finish` is an error.
2809
- * 6. Unknown frame/part types are ignored in both directions (forward
2810
- * compatibility).
2811
- * 7. Servers may enforce a maximum frame size (the AI Gateway rejects frames
2812
- * over 256 KiB); clients should keep text-delta frames under 64 KiB.
2813
- * 8. Connection establishment (URL, auth) is transport-specific and out of
2814
- * scope.
2815
- *
2816
- * The envelope validates frame shape only; server policy layers on top. Both
2817
- * parsers use `secureJsonParse`, so frames carrying `__proto__` /
2818
- * `constructor.prototype` keys are rejected rather than parsed.
2819
- */
2820
- /** Type of the first client TEXT frame. */
2821
- declare const SPEECH_STREAM_START_FRAME_TYPE = "speech-stream.start";
2822
- /** Type of the client TEXT frame that carries one input text delta. */
2823
- declare const SPEECH_STREAM_TEXT_DELTA_FRAME_TYPE = "speech-stream.text-delta";
2824
- /** Type of the client TEXT frame that signals the end of the input text. */
2825
- declare const SPEECH_STREAM_TEXT_DONE_FRAME_TYPE = "speech-stream.text-done";
2826
- /**
2827
- * The client's session start frame. Optional keys are omitted when undefined.
2828
- */
2829
- type SpeechStreamStartFrame = {
2830
- type: typeof SPEECH_STREAM_START_FRAME_TYPE;
2831
- voice?: string;
2832
- outputFormat?: SharedV4AudioFormat;
2833
- instructions?: string;
2834
- speed?: number;
2835
- language?: string;
2836
- /** Provider-specific options, passed through verbatim. */
2837
- providerOptions?: Record<string, JSONObject>;
2838
- /** When true, the server should include `raw` parts in the stream. */
2839
- includeRawChunks?: boolean;
2840
- };
2841
- /**
2842
- * A client frame carrying one input text delta, i.e. one text part. Optional
2843
- * keys are omitted when undefined.
2844
- */
2845
- type SpeechStreamTextDeltaFrame = {
2846
- type: typeof SPEECH_STREAM_TEXT_DELTA_FRAME_TYPE;
2847
- delta: string;
2848
- voice?: string;
2849
- providerOptions?: Record<string, JSONObject>;
2850
- };
2851
- /** Server-side classification of a client TEXT frame. */
2852
- type SpeechStreamClientFrame = {
2853
- type: 'start';
2854
- frame: SpeechStreamStartFrame;
2855
- } | {
2856
- type: 'text-delta';
2857
- delta: string;
2858
- voice?: string;
2859
- providerOptions?: Record<string, JSONObject>;
2860
- } | {
2861
- type: 'text-done';
2862
- } | {
2863
- /** Malformed JSON or a recognized frame with an invalid shape. */
2864
- type: 'invalid';
2865
- message: string;
2866
- } | {
2867
- /** Unrecognized frame type; ignore for forward compatibility. */
2868
- type: 'unknown';
2869
- };
2870
- /**
2871
- * Server-side: parse a client TEXT frame. Validates envelope shape only and
2872
- * rejects prototype-pollution payloads. Never throws.
2873
- */
2874
- declare function parseSpeechStreamClientFrame(text: string): SpeechStreamClientFrame;
2875
- /**
2876
- * Server-side: serialize a speech stream part as one TEXT frame. Binary audio
2877
- * is base64-encoded and `Error` payloads serialize as `{ name, message }`.
2878
- * Returns `undefined` for payloads that are not JSON-serializable; callers
2879
- * drop the frame.
2880
- */
2881
- declare function serializeSpeechStreamPart(part: Experimental_SpeechModelV4StreamPart): string | undefined;
2882
- /**
2883
- * Client-side: parse a server TEXT frame into a speech stream part. Returns
2884
- * `undefined` for malformed or unsafe JSON, unknown part types, and known
2885
- * part types whose fields are missing or mistyped. Revives
2886
- * `response-metadata.timestamp` to a `Date`.
2887
- */
2888
- declare function parseSpeechStreamPart(text: string): Experimental_SpeechModelV4StreamPart | undefined;
2889
- //#endregion
2890
- //#region src/streaming-tool-call-tracker.d.ts
2891
- /**
2892
- * Minimal interface for a streaming tool call delta from an OpenAI-compatible API.
2893
- */
2894
- interface StreamingToolCallDelta {
2895
- index?: number | null;
2896
- id?: string | null;
2897
- type?: string | null;
2898
- function?: {
2899
- name?: string | null;
2900
- arguments?: string | null;
2901
- } | null;
2902
- }
2903
- interface StreamingToolCallTrackerOptions<DELTA extends StreamingToolCallDelta = StreamingToolCallDelta> {
2904
- /**
2905
- * ID generator function for tool call IDs.
2906
- * Blank or repeated outputs are converted to usable unique IDs.
2907
- * Defaults to the standard generateId.
2908
- */
2909
- generateId?: () => string;
2910
- /**
2911
- * How to validate the `type` field on new tool call deltas.
2912
- * - `'none'`: no validation (default)
2913
- * - `'if-present'`: throw if type is present and not `'function'`
2914
- * - `'required'`: throw if type is not exactly `'function'`
2915
- */
2916
- typeValidation?: 'none' | 'if-present' | 'required';
2917
- /**
2918
- * Extract provider-specific metadata from a tool call delta.
2919
- * Called once when a new tool call is detected.
2920
- * The returned metadata is stored on the tool call and passed to
2921
- * `buildToolCallProviderMetadata` when the tool call is finalized.
2922
- */
2923
- extractMetadata?: (delta: DELTA) => SharedV4ProviderMetadata | undefined;
2924
- /**
2925
- * Build the `providerMetadata` object for a `tool-call` event.
2926
- * Receives the metadata previously extracted via `extractMetadata`.
2927
- * If `undefined` is returned, no `providerMetadata` is included in the event.
2928
- */
2929
- buildToolCallProviderMetadata?: (metadata: SharedV4ProviderMetadata | undefined) => SharedV4ProviderMetadata | undefined;
2930
- }
2931
- type StreamingToolCallTrackerController = Pick<TransformStreamDefaultController<LanguageModelV4StreamPart>, 'enqueue'>;
2932
- /**
2933
- * Tracks streaming tool call state across multiple deltas from an
2934
- * OpenAI-compatible chat completion stream. Handles argument accumulation,
2935
- * emits tool-input-start/delta/end and tool-call events, and finalizes
2936
- * unfinished tool calls on flush.
2937
- *
2938
- * Used by openai, openai-compatible, groq, deepseek, alibaba, mistral, and
2939
- * moonshotai providers.
2940
- */
2941
- export declare class StreamingToolCallTracker<DELTA extends StreamingToolCallDelta = StreamingToolCallDelta> {
2942
- private toolCalls;
2943
- private toolCallsById;
2944
- private toolCallsByIndex;
2945
- private usedToolCallIds;
2946
- private nextGeneratedIdSuffixes;
2947
- private readonly controller;
2948
- private readonly _generateId;
2949
- private readonly typeValidation;
2950
- private readonly extractMetadata?;
2951
- private readonly buildToolCallProviderMetadata?;
2952
- constructor(controller: StreamingToolCallTrackerController, options?: StreamingToolCallTrackerOptions<DELTA>);
2953
- /**
2954
- * Process a tool call delta from a streaming response chunk.
2955
- * Emits tool-input-start, tool-input-delta, tool-input-end, and tool-call
2956
- * events as appropriate.
2957
- */
2958
- processDelta(toolCallDelta: DELTA): void;
2959
- /**
2960
- * Finalize any unfinished tool calls. Should be called during the stream's
2961
- * flush handler to ensure all tool calls are properly completed.
2962
- */
2963
- flush(): void;
2964
- /**
2965
- * Correlation precedence for streamed deltas:
2966
- *
2967
- * | ID evidence | index/name evidence | start evidence | resolution |
2968
- * | --- | --- | --- | --- |
2969
- * | known | matching | any | matching call, new call, or ambiguity |
2970
- * | known | conflicting | named | new call |
2971
- * | unseen | matching | structured start | new call |
2972
- * | unseen | matching | named empty arguments | incomplete call, new call, or ambiguity |
2973
- * | unseen | matching | continuation | matching call or ambiguity |
2974
- * | absent | matching | any | matching call, new call, or ambiguity |
2975
- * | absent | absent | named | new call |
2976
- * | absent | absent | unnamed | sole unfinished call, new call, or ambiguity |
2977
- */
2978
- private resolveToolCall;
2979
- private filterToolCallsByName;
2980
- private resolveMatchingToolCall;
2981
- private processNewToolCall;
2982
- private associateWireId;
2983
- private associateIndex;
2984
- private createToolCallId;
2985
- private getNonBlankString;
2986
- private processExistingToolCall;
2987
- private finishToolCall;
2988
- }
2989
- //#endregion
2990
- //#region src/strip-file-extension.d.ts
2991
- /**
2992
- * Strips file extension segments from a filename.
2993
- *
2994
- * Examples:
2995
- * - "report.pdf" -> "report"
2996
- * - "archive.tar.gz" -> "archive"
2997
- * - "filename" -> "filename"
2998
- */
2999
- export declare function stripFileExtension(filename: string): string;
3000
- //#endregion
3001
- //#region src/transcription-stream-envelope.d.ts
3002
- /**
3003
- * Experimental transcription-stream WebSocket envelope (v1): the standard
3004
- * serialization of `TranscriptionModelV4.doStream` over a WebSocket. Clients
3005
- * (e.g. the `@ai-sdk/gateway` provider) encode with this module and servers
3006
- * (e.g. AI Gateway) decode with it, so the two sides cannot drift.
3007
- *
3008
- * Envelope rules:
3009
- *
3010
- * 1. The client sends exactly one `transcription-stream.start` TEXT frame
3011
- * first.
3012
- * 2. Audio rides BINARY frames containing raw bytes in the declared
3013
- * `inputAudioFormat` (base64 string chunks are decoded before sending).
3014
- * 3. The client signals end of audio with the
3015
- * `transcription-stream.audio-done` TEXT frame; a plain close without it
3016
- * is an abort.
3017
- * 4. Every server→client TEXT frame is one JSON-serialized
3018
- * `TranscriptionModelV4StreamPart` (flattened, no wrapper). Payloads must
3019
- * be JSON-serializable. `Date` values (`response-metadata.timestamp`)
3020
- * serialize to ISO 8601 strings and are revived by
3021
- * `parseTranscriptionStreamPart`. `Error` payloads in `error` parts
3022
- * serialize as `{ name, message }`.
3023
- * 5. The server closes with code 1000 after the `finish` part; on failure it
3024
- * sends an `error` part and closes non-1000. A close without a prior
3025
- * `finish` is an error.
3026
- * 6. Unknown frame/part types are ignored in both directions (forward
3027
- * compatibility).
3028
- * 7. Servers may enforce a maximum frame size (the AI Gateway rejects frames
3029
- * over 256 KiB); clients should split audio into frames of at most
3030
- * 64 KiB.
3031
- * 8. Connection establishment (URL, auth) is transport-specific and out of
3032
- * scope.
3033
- *
3034
- * The envelope validates frame shape only; server policy (accepted audio
3035
- * formats, required `rate`, size limits) layers on top. Both parsers use
3036
- * `secureJsonParse`, so frames carrying `__proto__` / `constructor.prototype`
3037
- * keys are rejected (prototype-pollution protection) rather than parsed.
3038
- */
3039
- /** Type of the first client TEXT frame. */
3040
- declare const TRANSCRIPTION_STREAM_START_FRAME_TYPE = "transcription-stream.start";
3041
- /** Type of the client TEXT frame that signals the end of the audio input. */
3042
- declare const TRANSCRIPTION_STREAM_AUDIO_DONE_FRAME_TYPE = "transcription-stream.audio-done";
3043
- /**
3044
- * The client's session start frame. Optional keys are omitted when undefined.
3045
- */
3046
- type TranscriptionStreamStartFrame = {
3047
- type: typeof TRANSCRIPTION_STREAM_START_FRAME_TYPE;
3048
- /** Audio format of the binary audio frames, e.g. `{ type: 'audio/pcm', rate: 16000 }`. */
3049
- inputAudioFormat: {
3050
- type: string;
3051
- rate?: number;
3052
- };
3053
- /** Provider-specific options, passed through verbatim. */
3054
- providerOptions?: Record<string, JSONObject>;
3055
- /** When true, the server should include `raw` parts in the stream. */
3056
- includeRawChunks?: boolean;
3057
- };
3058
- /** Server-side classification of a client TEXT frame. */
3059
- type TranscriptionStreamClientFrame = {
3060
- type: 'start';
3061
- frame: TranscriptionStreamStartFrame;
3062
- } | {
3063
- type: 'audio-done';
3064
- } | {
3065
- /** Malformed JSON or a recognized frame with an invalid shape. */
3066
- type: 'invalid';
3067
- message: string;
3068
- } | {
3069
- /** Unrecognized frame type; ignore for forward compatibility. */
3070
- type: 'unknown';
3071
- };
3072
- /**
3073
- * Server-side: parse a client TEXT frame. Validates envelope shape only and
3074
- * rejects prototype-pollution payloads (parsed with `secureJsonParse`). Never
3075
- * throws.
3076
- */
3077
- declare function parseTranscriptionStreamClientFrame(text: string): TranscriptionStreamClientFrame;
3078
- /**
3079
- * Server-side: serialize a transcription stream part as one TEXT frame.
3080
- * `Error` payloads in `error` parts serialize as `{ name, message }` —
3081
- * `Error` properties are non-enumerable, so a plain `JSON.stringify` would
3082
- * serialize them to `{}` and lose the message end-to-end. Returns
3083
- * `undefined` for payloads that are not JSON-serializable (envelope rule 4,
3084
- * e.g. bigint or cyclic values); callers drop the frame.
3085
- */
3086
- declare function serializeTranscriptionStreamPart(part: Experimental_TranscriptionModelV4StreamPart): string | undefined;
3087
- /**
3088
- * Client-side: parse a server TEXT frame into a transcription stream part.
3089
- * Returns `undefined` for malformed or unsafe (prototype-polluting) JSON
3090
- * (parsed with `secureJsonParse`), unknown part types, and known part types
3091
- * whose required or optional fields are missing or mistyped (including
3092
- * warning and segment elements) — downstream SDK code dereferences those
3093
- * fields, so a drifted server must not crash or pollute the stream.
3094
- * Revives `response-metadata.timestamp` to a `Date`.
3095
- */
3096
- declare function parseTranscriptionStreamPart(text: string): Experimental_TranscriptionModelV4StreamPart | undefined;
3097
- //#endregion
3098
- //#region src/uint8-utils.d.ts
3099
- export declare function convertBase64ToUint8Array(base64String: string): Uint8Array<ArrayBuffer>;
3100
- export declare function convertUint8ArrayToBase64(array: Uint8Array): string;
3101
- export declare function isUint8Array(value: unknown): value is Uint8Array;
3102
- export declare function isArrayBuffer(value: unknown): value is ArrayBuffer;
3103
- export declare function convertToBase64(value: string | Uint8Array): string;
3104
- //#endregion
3105
- //#region src/validate-base-url.d.ts
3106
- export declare function validateBaseURL(baseURL: string | undefined): string | undefined;
3107
- //#endregion
3108
- //#region src/validate-download-url.d.ts
3109
- /**
3110
- * Validates that a URL is safe to download from, blocking private/internal addresses
3111
- * to prevent SSRF attacks.
3112
- *
3113
- * This function performs string/literal-IP checks only. DNS validation must
3114
- * be provided by the fetch transport or network egress controls.
3115
- *
3116
- * @param url - The URL string to validate.
3117
- * @throws DownloadError if the URL is unsafe.
3118
- */
3119
- export declare function validateDownloadUrl(url: string): void;
3120
- //#endregion
3121
- //#region src/validate-types.d.ts
3122
- /**
3123
- * Validates the types of an unknown object using a schema and
3124
- * return a strongly-typed object.
3125
- *
3126
- * @template T - The type of the object to validate.
3127
- * @param {string} options.value - The object to validate.
3128
- * @param {Validator<T>} options.schema - The schema to use for validating the JSON.
3129
- * @param {TypeValidationContext} options.context - Optional context about what is being validated.
3130
- * @returns {Promise<T>} - The typed object.
3131
- */
3132
- export declare function validateTypes<OBJECT>({ value, schema, context }: {
3133
- value: unknown;
3134
- schema: FlexibleSchema<OBJECT>;
3135
- context?: TypeValidationContext;
3136
- }): Promise<OBJECT>;
3137
- /**
3138
- * Safely validates the types of an unknown object using a schema and
3139
- * return a strongly-typed object.
3140
- *
3141
- * @template T - The type of the object to validate.
3142
- * @param {string} options.value - The JSON object to validate.
3143
- * @param {Validator<T>} options.schema - The schema to use for validating the JSON.
3144
- * @param {TypeValidationContext} options.context - Optional context about what is being validated.
3145
- * @returns An object with either a `success` flag and the parsed and typed data, or a `success` flag and an error object.
3146
- */
3147
- export declare function safeValidateTypes<OBJECT>({ value, schema, context }: {
3148
- value: unknown;
3149
- schema: FlexibleSchema<OBJECT>;
3150
- context?: TypeValidationContext;
3151
- }): Promise<{
3152
- success: true;
3153
- value: OBJECT;
3154
- rawValue: unknown;
3155
- } | {
3156
- success: false;
3157
- error: TypeValidationError;
3158
- rawValue: unknown;
3159
- }>;
3160
- //#endregion
3161
- //#region src/version.d.ts
3162
- export declare const VERSION: string;
3163
- //#endregion
3164
- //#region src/with-user-agent-suffix.d.ts
3165
- /**
3166
- * Appends suffix parts to the `user-agent` header.
3167
- * If a `user-agent` header already exists, the suffix parts are appended to it.
3168
- * If no `user-agent` header exists, a new one is created with the suffix parts.
3169
- * Automatically removes undefined entries from the headers.
3170
- *
3171
- * @param headers - The original headers.
3172
- * @param userAgentSuffixParts - The parts to append to the `user-agent` header.
3173
- * @returns The new headers with the `user-agent` header set or updated.
3174
- */
3175
- export declare function withUserAgentSuffix(headers: HeadersInit | Record<string, string | undefined> | undefined, ...userAgentSuffixParts: string[]): Record<string, string>;
3176
- //#endregion
3177
- //#region src/without-trailing-slash.d.ts
3178
- export declare function withoutTrailingSlash(url: string | undefined): string | undefined;
3179
- //#endregion
3180
- //#region src/types/infer-tool-context.d.ts
3181
- /**
3182
- * Detects the `any` type so untyped tools can be treated as having no explicit
3183
- * context type.
3184
- */
3185
- type IsAny<T> = 0 extends 1 & T ? true : false;
3186
- /**
3187
- * Detects exact empty object contexts, including `{}` combined with
3188
- * `undefined`, which do not provide tool-specific context properties.
3189
- */
3190
- type IsEmptyObject<T> = keyof NonNullable<T> extends never ? true : false;
3191
- /**
3192
- * Detects context types that come from omitted or broad context declarations
3193
- * rather than a concrete tool context schema.
3194
- */
3195
- type IsUntypedContext<CONTEXT> = IsAny<CONTEXT> extends true ? true : unknown extends CONTEXT ? true : IsEmptyObject<CONTEXT> extends true ? true : string extends keyof CONTEXT ? CONTEXT extends Context ? true : false : false;
3196
- /**
3197
- * Infer the context type of a tool.
3198
- */
3199
- type InferToolContext<TOOL extends Tool> = TOOL extends Tool<any, any, infer CONTEXT> ? IsUntypedContext<CONTEXT> extends true ? never : CONTEXT : never;
3200
- //#endregion
3201
- //#region src/types/infer-tool-input.d.ts
3202
- /**
3203
- * Infer the input type of a tool.
3204
- */
3205
- type InferToolInput<TOOL extends Tool<any, any, any>> = TOOL extends Tool<infer INPUT, any, any> ? INPUT : never;
3206
- //#endregion
3207
- //#region src/types/infer-tool-output.d.ts
3208
- /**
3209
- * Infer the output type of a tool.
3210
- */
3211
- type InferToolOutput<TOOL extends Tool<any, any, any>> = TOOL extends Tool<any, infer OUTPUT, any> ? OUTPUT : never;
3212
- //#endregion
3213
- //#region src/types/execute-tool.d.ts
3214
- /**
3215
- * Executes a tool function and normalizes its results into a stream of outputs.
3216
- *
3217
- * - If the tool's `execute` function returns an `AsyncIterable`, each yielded value is emitted as
3218
- * `{ type: "preliminary", output }`. After iteration completes, the last yielded value is emitted
3219
- * again as `{ type: "final", output }`.
3220
- * - If the tool returns a direct value or Promise, a single `{ type: "final", output }` is yielded.
3221
- *
3222
- * @param params.tool The tool whose `execute` function should be invoked.
3223
- * @param params.input The input value to pass to the tool.
3224
- * @param params.options Additional options for tool execution.
3225
- * @yields A preliminary output for each streamed value, followed by a final output, or a single final
3226
- * output for non-streaming tools.
3227
- */
3228
- export declare function executeTool<TOOL extends Tool>({ tool, input, options }: {
3229
- tool: ExecutableTool<TOOL>;
3230
- input: InferToolInput<TOOL>;
3231
- options: ToolExecutionOptions<InferToolContext<TOOL>>;
3232
- }): AsyncGenerator<{
3233
- type: 'preliminary';
3234
- output: InferToolOutput<TOOL>;
3235
- } | {
3236
- type: 'final';
3237
- output: InferToolOutput<TOOL>;
3238
- }>;
3239
- //#endregion
3240
- //#region src/types/tool-set.d.ts
3241
- /**
3242
- * A mapping of tool names to tool definitions.
3243
- */
3244
- type ToolSet = Record<string, (Tool<never, never, any> | Tool<any, any, any> | Tool<any, never, any> | Tool<never, any, any>) & Pick<Tool<any, any, any>, 'execute' | 'onInputAvailable' | 'onInputStart' | 'onInputDelta' | 'needsApproval'>>;
3245
- //#endregion
3246
- //#region src/types/infer-tool-set-context.d.ts
3247
- /**
3248
- * Builds the required portion of the tool context map for tools whose context
3249
- * type does not include `undefined`.
3250
- */
3251
- type RequiredToolSetContext<TOOLS extends ToolSet> = { [K in keyof TOOLS as InferToolContext<NoInfer<TOOLS[K]>> extends never ? never : undefined extends InferToolContext<NoInfer<TOOLS[K]>> ? never : K]: InferToolContext<NoInfer<TOOLS[K]>>; };
3252
- /**
3253
- * Builds the optional portion of the tool context map for tools whose context
3254
- * object itself may be `undefined`.
3255
- */
3256
- type OptionalToolSetContext<TOOLS extends ToolSet> = { [K in keyof TOOLS as InferToolContext<NoInfer<TOOLS[K]>> extends never ? never : undefined extends InferToolContext<NoInfer<TOOLS[K]>> ? K : never]?: InferToolContext<NoInfer<TOOLS[K]>>; };
3257
- /**
3258
- * Flattens intersected mapped types so type equality assertions and editor
3259
- * hovers show the resulting object shape.
3260
- */
3261
- type Normalize<OBJECT> = { [KEY in keyof OBJECT]: OBJECT[KEY]; };
3262
- /**
3263
- * Infer the context type for a tool set.
3264
- *
3265
- * The inferred type maps each contextual tool name to its context type.
3266
- *
3267
- * Tools without concrete context are omitted. Tool contexts that include
3268
- * `undefined` are represented as optional properties.
3269
- */
3270
- type InferToolSetContext<TOOLS extends ToolSet> = Normalize<RequiredToolSetContext<TOOLS> & OptionalToolSetContext<TOOLS>>;
3271
- //#endregion
3272
- //#region src/types/tool-call.d.ts
3273
- /**
3274
- * Typed tool call that is returned by generateText and streamText.
3275
- * It contains the tool call ID, the tool name, and the tool arguments.
3276
- */
3277
- interface ToolCall<NAME extends string, INPUT> {
3278
- /**
3279
- * ID of the tool call. This ID is used to match the tool call with the tool result.
3280
- */
3281
- toolCallId: string;
3282
- /**
3283
- * Name of the tool that is being called.
3284
- */
3285
- toolName: NAME;
3286
- /**
3287
- * Arguments of the tool call. This is a JSON-serializable object that matches the tool's input schema.
3288
- */
3289
- input: INPUT;
3290
- /**
3291
- * Whether the tool call will be executed by the provider.
3292
- * If this flag is not set or is false, the tool call will be executed by the client.
3293
- */
3294
- providerExecuted?: boolean;
3295
- /**
3296
- * Whether the tool is dynamic.
3297
- */
3298
- dynamic?: boolean;
3299
- }
3300
- //#endregion
3301
- //#region src/types/tool-caller.d.ts
3302
- type ToolCallerDefinition = {
3303
- type: 'local';
3304
- bind: (tools: ToolSet) => Tool;
3305
- /**
3306
- * Creates a provider-agnostic user message that describes the tools
3307
- * available through this caller. When present, the unbound caller tool
3308
- * remains model-visible so its definition stays stable, while the
3309
- * returned message is added to the conversation when its content has
3310
- * not already been announced.
3311
- */
3312
- prepareModelMessage?: (tools: ToolSet) => string | undefined;
3313
- } | {
3314
- type: 'provider';
3315
- prepareProviderOptions: (providerOptions: ProviderOptions | undefined) => ProviderOptions;
3316
- };
3317
- type ToolCallerTool<TOOL extends Tool = Tool> = TOOL & {
3318
- readonly experimental_toolCaller: ToolCallerDefinition;
3319
- };
3320
- declare function toolCaller<TOOL extends Tool>(tool: TOOL, definition: ToolCallerDefinition): ToolCallerTool<TOOL>;
3321
- declare function getToolCaller(tool: Tool | undefined): ToolCallerDefinition | undefined;
3322
- //#endregion
3323
- //#region src/types/tool-result.d.ts
3324
- /**
3325
- * Typed tool result that is returned by `generateText` and `streamText`.
3326
- * It contains the tool call ID, the tool name, the tool arguments, and the tool result.
3327
- */
3328
- interface ToolResult<NAME extends string, INPUT, OUTPUT> {
3329
- /**
3330
- * ID of the tool call. This ID is used to match the tool call with the tool result.
3331
- */
3332
- toolCallId: string;
3333
- /**
3334
- * Name of the tool that was called.
3335
- */
3336
- toolName: NAME;
3337
- /**
3338
- * Arguments of the tool call. This is a JSON-serializable object that matches the tool's input schema.
3339
- */
3340
- input: INPUT;
3341
- /**
3342
- * Result of the tool call. This is the result of the tool's execution.
3343
- */
3344
- output: OUTPUT;
3345
- /**
3346
- * Whether the tool result has been executed by the provider.
3347
- */
3348
- providerExecuted?: boolean;
3349
- /**
3350
- * Whether the tool is dynamic.
3351
- */
3352
- dynamic?: boolean;
3353
- }
3354
- //#endregion
3355
- //#region src/stringify-with-bigint-and-cycles.d.ts
3356
- /**
3357
- * Serializes a value as JSON, representing BigInt values as decimal strings and
3358
- * ancestor cycles as "[Circular]". Reused objects, toJSON methods, and other JSON
3359
- * serialization behavior are preserved. Getters and toJSON methods may throw.
3360
- */
3361
- export declare function stringifyWithBigIntAndCycles(value: unknown): string;
3362
- //#endregion
3363
- export { type Arrayable, type AssistantContent, type AssistantModelMessage, type Context, type CustomPart, type DataContent, type DynamicTool, EMBEDDING_MODEL_MAX_INPUT_BYTES_PER_CALL as EXPERIMENTAL_EMBEDDING_MODEL_MAX_INPUT_BYTES_PER_CALL, EMBEDDING_MODEL_PROVIDER_OPTIONS_TRANSFORMER as EXPERIMENTAL_EMBEDDING_MODEL_PROVIDER_OPTIONS_TRANSFORMER, SPEECH_STREAM_START_FRAME_TYPE as EXPERIMENTAL_SPEECH_STREAM_START_FRAME_TYPE, SPEECH_STREAM_TEXT_DELTA_FRAME_TYPE as EXPERIMENTAL_SPEECH_STREAM_TEXT_DELTA_FRAME_TYPE, SPEECH_STREAM_TEXT_DONE_FRAME_TYPE as EXPERIMENTAL_SPEECH_STREAM_TEXT_DONE_FRAME_TYPE, TRANSCRIPTION_STREAM_AUDIO_DONE_FRAME_TYPE as EXPERIMENTAL_TRANSCRIPTION_STREAM_AUDIO_DONE_FRAME_TYPE, TRANSCRIPTION_STREAM_START_FRAME_TYPE as EXPERIMENTAL_TRANSCRIPTION_STREAM_START_FRAME_TYPE, type EmbeddingModelProviderOptionsTransformer, type EventSourceMessage, EventSourceParserStream, type ExecutableTool, type SandboxDeleteFileOptions as Experimental_SandboxDeleteFileOptions, type SandboxDirectoryEntry as Experimental_SandboxDirectoryEntry, type SandboxFileStat as Experimental_SandboxFileStat, type SandboxListDirectoryOptions as Experimental_SandboxListDirectoryOptions, type SandboxProcess as Experimental_SandboxProcess, type SandboxReadBinaryFileOptions as Experimental_SandboxReadBinaryFileOptions, type SandboxReadFileOptions as Experimental_SandboxReadFileOptions, type SandboxReadTextFileOptions as Experimental_SandboxReadTextFileOptions, type SandboxRunOptions as Experimental_SandboxRunOptions, type SandboxSession as Experimental_SandboxSession, type SandboxSpawnOptions as Experimental_SandboxSpawnOptions, type SandboxSpawnOptionsWithStdin as Experimental_SandboxSpawnOptionsWithStdin, type SandboxSpawnOptionsWithoutStdin as Experimental_SandboxSpawnOptionsWithoutStdin, type SandboxStatOptions as Experimental_SandboxStatOptions, type SandboxWriteBinaryFileOptions as Experimental_SandboxWriteBinaryFileOptions, type SandboxWriteFileOptions as Experimental_SandboxWriteFileOptions, type SandboxWriteTextFileOptions as Experimental_SandboxWriteTextFileOptions, type SpeechStreamClientFrame as Experimental_SpeechStreamClientFrame, type SpeechStreamStartFrame as Experimental_SpeechStreamStartFrame, type SpeechStreamTextDeltaFrame as Experimental_SpeechStreamTextDeltaFrame, type ToolCallerDefinition as Experimental_ToolCallerDefinition, type ToolCallerTool as Experimental_ToolCallerTool, type TranscriptionStreamClientFrame as Experimental_TranscriptionStreamClientFrame, type TranscriptionStreamStartFrame as Experimental_TranscriptionStreamStartFrame, type WritableSandboxProcess as Experimental_WritableSandboxProcess, type FileData, type FileDataData, type FileDataReference, type FileDataText, type FileDataUrl, type FilePart, type FlexibleSchema, type FunctionTool, type HasRequiredKey, type IdGenerator, type ImagePart, type InferSchema, type InferToolContext, type InferToolInput, type InferToolOutput, type InferToolSetContext, type LazySchema, type MaybePromiseLike, type ModelMessage, type ProviderDefinedTool, type ProviderDefinedToolFactory, type ProviderDefinedToolFactoryWithOutputSchema, type ProviderExecutedTool, type ProviderExecutedToolFactory, type ProviderOptions, type ProviderOptionsResolution, type ProviderReference, type ProviderStreamError, type ReasoningFilePart, type ReasoningPart, type Schema, type StreamingToolCallDelta, type StreamingToolCallTrackerOptions, type SystemModelMessage, type TextPart, type Tool, type ToolApprovalRequest, type ToolApprovalResponse, type ToolCall, type ToolCallPart, type ToolContent, type ToolExecuteFunction, type ToolExecutionOptions, type ToolModelMessage, type ToolNameMapping, type ToolNeedsApprovalFunction, type ToolResult, type ToolResultOutput, type ToolResultPart, type ToolSet, type UserContent, type UserModelMessage, type ValidationResult, WORKFLOW_DESERIALIZE, WORKFLOW_SERIALIZE, type WebSocketConnection, type WebSocketConstructor, type WebSocketLike, getToolCaller as experimental_getToolCaller, parseSpeechStreamClientFrame as experimental_parseSpeechStreamClientFrame, parseSpeechStreamPart as experimental_parseSpeechStreamPart, parseTranscriptionStreamClientFrame as experimental_parseTranscriptionStreamClientFrame, parseTranscriptionStreamPart as experimental_parseTranscriptionStreamPart, serializeSpeechStreamPart as experimental_serializeSpeechStreamPart, serializeTranscriptionStreamPart as experimental_serializeTranscriptionStreamPart, toolCaller as experimental_toolCaller, getErrorMessage, tool$1 as tool };
3364
- //# sourceMappingURL=index.d.ts.map