maka-agent 0.2.0-dev.3.20260830 → 0.2.0-dev.31.20260913

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 (2277) hide show
  1. package/LICENSE +242 -5
  2. package/README.md +38 -19
  3. package/README.zh-CN.md +34 -19
  4. package/RUNTIME_HOST_PEER_DEPENDENCIES.rust.tsv +70 -0
  5. package/RUNTIME_HOST_PEER_THIRD_PARTY_NOTICES.txt +1839 -140
  6. package/THIRD_PARTY_NOTICES.txt +477 -258
  7. package/dist/acp/maka-acp-agent.js +13 -3
  8. package/dist/acp/prompt-content.js +225 -0
  9. package/dist/acp/session-configuration.js +143 -0
  10. package/dist/acp/session-event-mapper.js +103 -0
  11. package/dist/acp/session-registry.js +1030 -0
  12. package/dist/acp/stdio-server.js +29 -1
  13. package/dist/activation-command.js +1 -2
  14. package/dist/cli-core.js +99 -102
  15. package/dist/cli-ui-locale.js +7 -2
  16. package/dist/eval-bundle-path.js +1 -1
  17. package/dist/mcp-capability-provider.js +8 -11
  18. package/dist/onboarding-catalog.js +4 -5
  19. package/dist/pi-transcript-tools.js +9 -2
  20. package/dist/pi-transcript.js +86 -31
  21. package/dist/pi-tui-form-interaction.js +497 -0
  22. package/dist/pi-tui-layout.js +60 -12
  23. package/dist/pi-tui-mcp-status.js +122 -124
  24. package/dist/pi-tui-pickers.js +562 -102
  25. package/dist/pi-tui-runner.js +722 -170
  26. package/dist/pi-tui-todo.js +221 -0
  27. package/dist/pi-tui-transcript-viewer.js +134 -7
  28. package/dist/run-command-core.js +6 -14
  29. package/dist/runtime-host-access-command.js +37 -4
  30. package/dist/runtime-host-capability-provider-command.js +16 -2
  31. package/dist/runtime-host-cli-context.js +300 -80
  32. package/dist/runtime-host-cli-installation.js +8 -2
  33. package/dist/runtime-host-cli.js +397 -67
  34. package/dist/runtime-host-handoff-surface.js +108 -0
  35. package/dist/runtime-host-help.js +244 -0
  36. package/dist/runtime-host-installed-update-activator.js +70 -33
  37. package/dist/runtime-host-installed-update-bootstrap.js +13 -0
  38. package/dist/runtime-host-installed-update-coordinator.js +44 -96
  39. package/dist/runtime-host-lifecycle-transaction.js +101 -28
  40. package/dist/runtime-host-local-handoff.js +215 -41
  41. package/dist/runtime-host-local-managed-activation.js +84 -0
  42. package/dist/runtime-host-local-source-retirement.js +119 -0
  43. package/dist/runtime-host-local-target-activation.js +141 -0
  44. package/dist/runtime-host-managed-deployment.js +158 -51
  45. package/dist/runtime-host-managed-lifecycle-manager.js +5 -6
  46. package/dist/runtime-host-onboarding.js +368 -21
  47. package/dist/runtime-host-openrc-service.js +469 -0
  48. package/dist/runtime-host-operator-retirement.js +50 -0
  49. package/dist/runtime-host-package-deployment.js +36 -2
  50. package/dist/runtime-host-peer-artifact.js +3 -3
  51. package/dist/runtime-host-peer-management-command.js +30 -12
  52. package/dist/runtime-host-peer-mesh-management-command.js +18 -1
  53. package/dist/runtime-host-plugin-command.js +101 -0
  54. package/dist/runtime-host-profile-command.js +1 -1
  55. package/dist/runtime-host-run-command.js +32 -57
  56. package/dist/runtime-host-service-command.js +3 -3
  57. package/dist/runtime-host-service-management-command.js +67 -17
  58. package/dist/runtime-host-service-manager.js +3 -3
  59. package/dist/runtime-host-session-channel.js +79 -9
  60. package/dist/runtime-host-session-driver.js +85 -32
  61. package/dist/runtime-host-session-update.js +62 -0
  62. package/dist/runtime-host-setup-command.js +103 -65
  63. package/dist/runtime-host-systemd-service.js +9 -3
  64. package/dist/runtime-host-task-readiness.js +2 -3
  65. package/dist/runtime-host-tui-command.js +58 -77
  66. package/dist/runtime-host-tui-context.js +56 -17
  67. package/dist/runtime-host-tui-owner.js +226 -0
  68. package/dist/runtime-host-update-command.js +131 -48
  69. package/dist/runtime-host-update-discovery.js +1 -0
  70. package/dist/runtime-host-update-reconciliation.js +7 -7
  71. package/dist/runtime-host-windows-service.js +166 -0
  72. package/dist/runtime-host-windows-task-launcher-artifact.js +75 -0
  73. package/dist/session-export-command.js +72 -0
  74. package/dist/session-import-command.js +69 -0
  75. package/dist/tui-autocomplete-layout.js +3 -1
  76. package/dist/tui-clipboard.js +86 -0
  77. package/dist/tui-context-refresh.js +103 -0
  78. package/dist/tui-copy-catalog.js +976 -14
  79. package/dist/tui-copy-command.js +103 -0
  80. package/dist/tui-editor-render.js +36 -0
  81. package/dist/tui-host-owner-copy.js +24 -0
  82. package/dist/tui-mcp-control.js +87 -10
  83. package/dist/tui-mcp-remote-publication.js +395 -0
  84. package/native/runtime-host-peer/prebuilds/darwin-arm64/maka_runtime_host_peer.node +0 -0
  85. package/native/runtime-host-peer/prebuilds/linux-arm64/maka_runtime_host_peer.node +0 -0
  86. package/native/runtime-host-peer/prebuilds/linux-x64/maka_runtime_host_peer.node +0 -0
  87. package/native/runtime-host-peer/prebuilds/win32-x64/maka_runtime_host_peer.node +0 -0
  88. package/native/runtime-host-windows-task-launcher/prebuilds/win32-x64/maka-runtime-host-task-launcher.exe +0 -0
  89. package/node_modules/@ai-sdk/anthropic/CHANGELOG.md +117 -0
  90. package/node_modules/@ai-sdk/anthropic/dist/index.js +937 -411
  91. package/node_modules/@ai-sdk/anthropic/dist/internal/index.js +335 -160
  92. package/node_modules/@ai-sdk/anthropic/docs/05-anthropic.mdx +132 -43
  93. package/node_modules/@ai-sdk/anthropic/node_modules/@ai-sdk/provider/CHANGELOG.md +1262 -0
  94. package/node_modules/@ai-sdk/anthropic/node_modules/@ai-sdk/provider/package.json +63 -0
  95. package/node_modules/@ai-sdk/anthropic/package.json +6 -6
  96. package/node_modules/@ai-sdk/cohere/CHANGELOG.md +105 -0
  97. package/node_modules/@ai-sdk/cohere/dist/index.js +20 -22
  98. package/node_modules/@ai-sdk/cohere/node_modules/@ai-sdk/provider/CHANGELOG.md +1262 -0
  99. package/node_modules/@ai-sdk/cohere/node_modules/@ai-sdk/provider/README.md +1 -0
  100. package/node_modules/@ai-sdk/cohere/node_modules/@ai-sdk/provider/dist/index.js +426 -0
  101. package/node_modules/@ai-sdk/cohere/node_modules/@ai-sdk/provider/package.json +63 -0
  102. package/node_modules/@ai-sdk/cohere/package.json +6 -6
  103. package/node_modules/@ai-sdk/google/CHANGELOG.md +176 -0
  104. package/node_modules/@ai-sdk/google/dist/index.js +4441 -2801
  105. package/node_modules/@ai-sdk/google/dist/internal/index.js +640 -177
  106. package/node_modules/@ai-sdk/google/docs/15-google.mdx +225 -97
  107. package/node_modules/@ai-sdk/google/node_modules/@ai-sdk/provider/CHANGELOG.md +1262 -0
  108. package/node_modules/@ai-sdk/google/node_modules/@ai-sdk/provider/README.md +1 -0
  109. package/node_modules/@ai-sdk/google/node_modules/@ai-sdk/provider/dist/index.js +426 -0
  110. package/node_modules/@ai-sdk/google/node_modules/@ai-sdk/provider/package.json +63 -0
  111. package/node_modules/@ai-sdk/google/package.json +6 -6
  112. package/node_modules/@ai-sdk/open-responses/CHANGELOG.md +81 -0
  113. package/node_modules/@ai-sdk/open-responses/dist/index.js +570 -22
  114. package/node_modules/@ai-sdk/open-responses/docs/06-open-responses.mdx +123 -2
  115. package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider/CHANGELOG.md +38 -0
  116. package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider/package.json +1 -1
  117. package/node_modules/@ai-sdk/open-responses/package.json +3 -3
  118. package/node_modules/@ai-sdk/openai/CHANGELOG.md +184 -0
  119. package/node_modules/@ai-sdk/openai/dist/index.js +2013 -736
  120. package/node_modules/@ai-sdk/openai/dist/internal/index.js +1377 -478
  121. package/node_modules/@ai-sdk/openai/docs/03-openai.mdx +208 -52
  122. package/node_modules/@ai-sdk/openai/node_modules/@ai-sdk/provider/CHANGELOG.md +1262 -0
  123. package/node_modules/@ai-sdk/openai/node_modules/@ai-sdk/provider/LICENSE +13 -0
  124. package/node_modules/@ai-sdk/openai/node_modules/@ai-sdk/provider/README.md +1 -0
  125. package/node_modules/@ai-sdk/openai/node_modules/@ai-sdk/provider/dist/index.js +426 -0
  126. package/node_modules/@ai-sdk/openai/node_modules/@ai-sdk/provider/package.json +63 -0
  127. package/node_modules/@ai-sdk/openai/package.json +6 -6
  128. package/node_modules/@ai-sdk/openai-compatible/CHANGELOG.md +126 -0
  129. package/node_modules/@ai-sdk/openai-compatible/dist/index.js +105 -20
  130. package/node_modules/@ai-sdk/openai-compatible/dist/internal/index.js +9 -0
  131. package/node_modules/@ai-sdk/openai-compatible/docs/index.mdx +78 -0
  132. package/node_modules/@ai-sdk/openai-compatible/node_modules/@ai-sdk/provider/CHANGELOG.md +1262 -0
  133. package/node_modules/@ai-sdk/openai-compatible/node_modules/@ai-sdk/provider/README.md +1 -0
  134. package/node_modules/@ai-sdk/openai-compatible/node_modules/@ai-sdk/provider/dist/index.js +426 -0
  135. package/node_modules/@ai-sdk/openai-compatible/node_modules/@ai-sdk/provider/package.json +63 -0
  136. package/node_modules/@ai-sdk/openai-compatible/package.json +6 -6
  137. package/node_modules/@ai-sdk/provider-utils/CHANGELOG.md +92 -0
  138. package/node_modules/@ai-sdk/provider-utils/dist/index.js +664 -168
  139. package/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/CHANGELOG.md +1262 -0
  140. package/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/LICENSE +13 -0
  141. package/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/README.md +1 -0
  142. package/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/dist/index.js +426 -0
  143. package/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/package.json +63 -0
  144. package/node_modules/@ai-sdk/provider-utils/package.json +5 -5
  145. package/node_modules/@earendil-works/pi-tui/README.md +1 -1
  146. package/node_modules/@earendil-works/pi-tui/dist/autocomplete.js +36 -3
  147. package/node_modules/@earendil-works/pi-tui/dist/components/editor.js +9 -4
  148. package/node_modules/@earendil-works/pi-tui/dist/components/markdown.js +9 -4
  149. package/node_modules/@earendil-works/pi-tui/dist/components/settings-list.js +24 -4
  150. package/node_modules/@earendil-works/pi-tui/dist/components/text.js +5 -4
  151. package/node_modules/@earendil-works/pi-tui/dist/index.js +1 -1
  152. package/node_modules/@earendil-works/pi-tui/dist/keybindings.js +2 -2
  153. package/node_modules/@earendil-works/pi-tui/dist/native-modifiers.js +2 -8
  154. package/node_modules/@earendil-works/pi-tui/dist/native-module-path.js +19 -0
  155. package/node_modules/@earendil-works/pi-tui/dist/terminal-image.js +37 -2
  156. package/node_modules/@earendil-works/pi-tui/dist/terminal.js +4 -10
  157. package/node_modules/@earendil-works/pi-tui/dist/tui-alt-screen.js +63 -16
  158. package/node_modules/@earendil-works/pi-tui/dist/tui-main-screen.js +105 -45
  159. package/node_modules/@earendil-works/pi-tui/package.json +1 -1
  160. package/node_modules/@maka/core/dist/agent-run.js +25 -336
  161. package/node_modules/@maka/core/dist/artifacts.js +32 -23
  162. package/node_modules/@maka/core/dist/attachments.js +100 -1
  163. package/node_modules/@maka/core/dist/bot-events.js +18 -63
  164. package/node_modules/@maka/core/dist/bounded-response.js +71 -0
  165. package/node_modules/@maka/core/dist/canonical-json.js +27 -0
  166. package/node_modules/@maka/core/dist/canonical-runtime-event.js +3 -1
  167. package/node_modules/@maka/core/dist/capabilities.js +35 -0
  168. package/node_modules/@maka/core/dist/chat-model-choice.js +11 -31
  169. package/node_modules/@maka/core/dist/client-capability-grant.js +149 -0
  170. package/node_modules/@maka/core/dist/collaboration.js +12 -0
  171. package/node_modules/@maka/core/dist/computer-use.js +27 -93
  172. package/node_modules/@maka/core/dist/connection-error-copy.js +17 -34
  173. package/node_modules/@maka/core/dist/connection-readiness.js +3 -31
  174. package/node_modules/@maka/core/dist/deep-research.js +1 -20
  175. package/node_modules/@maka/core/dist/diagnostic-log.js +18 -7
  176. package/node_modules/@maka/core/dist/display-redaction.js +18 -0
  177. package/node_modules/@maka/core/dist/durable-tool-result-projection.js +126 -0
  178. package/node_modules/@maka/core/dist/events.js +43 -14
  179. package/node_modules/@maka/core/dist/execution-inspect.js +12 -21
  180. package/node_modules/@maka/core/dist/foreign-session.js +3 -3
  181. package/node_modules/@maka/core/dist/goal.js +44 -2
  182. package/node_modules/@maka/core/dist/health.js +50 -45
  183. package/node_modules/@maka/core/dist/interaction.js +623 -2
  184. package/node_modules/@maka/core/dist/llm-connections.js +115 -87
  185. package/node_modules/@maka/core/dist/local-memory.js +2 -2
  186. package/node_modules/@maka/core/dist/maka-wordmark.js +23 -0
  187. package/node_modules/@maka/core/dist/model-call-attempt.js +134 -82
  188. package/node_modules/@maka/core/dist/model-call-usage-projection.js +0 -183
  189. package/node_modules/@maka/core/dist/model-catalog.js +191 -322
  190. package/node_modules/@maka/core/dist/model-facts.js +206 -0
  191. package/node_modules/@maka/core/dist/model-failure.js +40 -0
  192. package/node_modules/@maka/core/dist/model-metadata.generated.js +1910 -1875
  193. package/node_modules/@maka/core/dist/model-metadata.js +217 -209
  194. package/node_modules/@maka/core/dist/model-projection-transition.js +145 -0
  195. package/node_modules/@maka/core/dist/model-thinking.js +73 -24
  196. package/node_modules/@maka/core/dist/model-web-search.js +5 -4
  197. package/node_modules/@maka/core/dist/models-dev-projection.js +302 -0
  198. package/node_modules/@maka/core/dist/models-dev-refresh.js +55 -0
  199. package/node_modules/@maka/core/dist/onboarding.js +2 -1
  200. package/node_modules/@maka/core/dist/permission-profile.js +17 -0
  201. package/node_modules/@maka/core/dist/permission.js +0 -1
  202. package/node_modules/@maka/core/dist/provider-auth.js +47 -291
  203. package/node_modules/@maka/core/dist/provider-registry.js +115 -373
  204. package/node_modules/@maka/core/dist/record-schema.js +22 -2
  205. package/node_modules/@maka/core/dist/redaction.js +78 -40
  206. package/node_modules/@maka/core/dist/relative-time.js +6 -5
  207. package/node_modules/@maka/core/dist/run-composition.js +77 -2
  208. package/node_modules/@maka/core/dist/runtime-boundary.js +182 -66
  209. package/node_modules/@maka/core/dist/runtime-event-store.js +6 -0
  210. package/node_modules/@maka/core/dist/runtime-event.js +254 -12
  211. package/node_modules/@maka/core/dist/runtime-handoff.js +106 -0
  212. package/node_modules/@maka/core/dist/runtime-invocation.js +223 -0
  213. package/node_modules/@maka/core/dist/runtime-logical-execution.js +137 -0
  214. package/node_modules/@maka/core/dist/runtime-policy/connection-catalog-codec.js +198 -44
  215. package/node_modules/@maka/core/dist/runtime-policy/credential-vault-codec.js +9 -1
  216. package/node_modules/@maka/core/dist/runtime-policy/model-catalog-entry-codec.js +93 -0
  217. package/node_modules/@maka/core/dist/runtime-policy/policy-codec.js +118 -4
  218. package/node_modules/@maka/core/dist/runtime-policy.js +6 -2
  219. package/node_modules/@maka/core/dist/scheduled-task.js +12 -2
  220. package/node_modules/@maka/core/dist/session-name.js +0 -1
  221. package/node_modules/@maka/core/dist/session-send-projection.js +2 -1
  222. package/node_modules/@maka/core/dist/session-start-mode.js +42 -0
  223. package/node_modules/@maka/core/dist/session-todo.js +101 -0
  224. package/node_modules/@maka/core/dist/session-trace.js +5 -1
  225. package/node_modules/@maka/core/dist/session.js +313 -52
  226. package/node_modules/@maka/core/dist/settings.js +27 -8
  227. package/node_modules/@maka/core/dist/slash-command-catalog.js +4 -0
  228. package/node_modules/@maka/core/dist/task-submission-readiness.js +2 -1
  229. package/node_modules/@maka/core/dist/text-sanitize.js +27 -2
  230. package/node_modules/@maka/core/dist/tool-activity-args.js +4 -0
  231. package/node_modules/@maka/core/dist/tool-quiet-preview.js +20 -10
  232. package/node_modules/@maka/core/dist/tool-result-archive-evidence.js +22 -0
  233. package/node_modules/@maka/core/dist/tool-result-record-schema.js +5 -2
  234. package/node_modules/@maka/core/dist/ui-locale.js +23 -10
  235. package/node_modules/@maka/core/dist/unified-diff.js +33 -26
  236. package/node_modules/@maka/core/dist/usage-ledger-merge.js +10 -9
  237. package/node_modules/@maka/core/dist/usage-record-schema.js +38 -30
  238. package/node_modules/@maka/core/dist/usage-stats/types.js +2 -0
  239. package/node_modules/@maka/core/dist/workhub-action-result.js +68 -0
  240. package/node_modules/@maka/core/dist/workhub-routing.js +126 -0
  241. package/node_modules/@maka/core/node_modules/@formatjs/icu-messageformat-parser/index.js +2175 -0
  242. package/node_modules/@maka/core/node_modules/@formatjs/icu-messageformat-parser/manipulator.js +209 -0
  243. package/node_modules/@maka/core/node_modules/@formatjs/icu-messageformat-parser/no-parser.js +162 -0
  244. package/node_modules/@maka/core/node_modules/@formatjs/icu-messageformat-parser/package.json +21 -0
  245. package/node_modules/@maka/core/node_modules/@formatjs/icu-messageformat-parser/printer.js +224 -0
  246. package/node_modules/@maka/core/node_modules/intl-messageformat/intl-messageformat.iife.js +2807 -0
  247. package/node_modules/@maka/core/node_modules/intl-messageformat/package.json +40 -0
  248. package/node_modules/@maka/core/package.json +22 -3
  249. package/node_modules/@maka/eval/dist/experiment-directory.js +4 -13
  250. package/node_modules/@maka/eval/dist/external-subject.js +1 -1
  251. package/node_modules/@maka/eval/dist/harbor-external-subject.js +4 -3
  252. package/node_modules/@maka/eval/dist/harness-executor.js +3 -2
  253. package/node_modules/@maka/eval/dist/install-preflight.js +39 -10
  254. package/node_modules/@maka/eval/dist/process-termination.js +83 -0
  255. package/node_modules/@maka/eval/dist/toolchain-verification.js +1 -1
  256. package/node_modules/@maka/eval/harbor/egress-proxy/entrypoint.sh +2 -1
  257. package/node_modules/@maka/eval/node_modules/undici/docs/docs/api/Client.md +4 -0
  258. package/node_modules/@maka/eval/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +3 -2
  259. package/node_modules/@maka/eval/node_modules/undici/docs/docs/api/EventSource.md +4 -0
  260. package/node_modules/@maka/eval/node_modules/undici/lib/cache/memory-cache-store.js +1 -1
  261. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/agent.js +7 -2
  262. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/balanced-pool.js +1 -1
  263. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/client-h1.js +12 -4
  264. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/client-h2.js +43 -3
  265. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/client.js +3 -2
  266. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/dispatcher-base.js +13 -1
  267. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/dispatcher.js +10 -0
  268. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +10 -3
  269. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/proxy-agent.js +1 -1
  270. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/round-robin-pool.js +1 -1
  271. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +3 -1
  272. package/node_modules/@maka/eval/node_modules/undici/lib/handler/cache-handler.js +8 -0
  273. package/node_modules/@maka/eval/node_modules/undici/lib/handler/decorator-handler.js +7 -1
  274. package/node_modules/@maka/eval/node_modules/undici/lib/handler/deduplication-handler.js +12 -6
  275. package/node_modules/@maka/eval/node_modules/undici/lib/handler/redirect-handler.js +8 -0
  276. package/node_modules/@maka/eval/node_modules/undici/lib/handler/retry-handler.js +83 -11
  277. package/node_modules/@maka/eval/node_modules/undici/lib/interceptor/dump.js +1 -1
  278. package/node_modules/@maka/eval/node_modules/undici/lib/mock/mock-agent.js +13 -1
  279. package/node_modules/@maka/eval/node_modules/undici/lib/mock/mock-utils.js +11 -10
  280. package/node_modules/@maka/eval/node_modules/undici/lib/web/cookies/parse.js +4 -2
  281. package/node_modules/@maka/eval/node_modules/undici/lib/web/eventsource/eventsource-stream.js +28 -1
  282. package/node_modules/@maka/eval/node_modules/undici/lib/web/eventsource/eventsource.js +4 -1
  283. package/node_modules/@maka/eval/node_modules/undici/lib/web/fetch/request.js +2 -3
  284. package/node_modules/@maka/eval/node_modules/undici/package.json +3 -3
  285. package/node_modules/@maka/eval/package.json +1 -1
  286. package/node_modules/@maka/mcp/dist/form-elicitation.js +213 -0
  287. package/node_modules/@maka/mcp/dist/index.js +465 -68
  288. package/node_modules/@maka/mcp/dist/sep-2243.js +3 -3
  289. package/node_modules/@maka/runtime/dist/agent-graph-timeline.js +12 -11
  290. package/node_modules/@maka/runtime/dist/agent-run-inspect.js +37 -85
  291. package/node_modules/@maka/runtime/dist/agent-run-recovery.js +36 -46
  292. package/node_modules/@maka/runtime/dist/agent-run.js +616 -468
  293. package/node_modules/@maka/runtime/dist/agent-swarm-status-tool.js +0 -1
  294. package/node_modules/@maka/runtime/dist/ai-sdk-backend.js +125 -3751
  295. package/node_modules/@maka/runtime/dist/ai-sdk-compaction-contract.js +6 -1
  296. package/node_modules/@maka/runtime/dist/ai-sdk-compaction.js +494 -521
  297. package/node_modules/@maka/runtime/dist/ai-sdk-message-projection.js +637 -0
  298. package/node_modules/@maka/runtime/dist/ai-sdk-tool-repair.js +115 -0
  299. package/node_modules/@maka/runtime/dist/ai-sdk-turn.js +2678 -0
  300. package/node_modules/@maka/runtime/dist/ask-user-question-tool.js +0 -1
  301. package/node_modules/@maka/runtime/dist/bash-model-output.js +7 -1
  302. package/node_modules/@maka/runtime/dist/bash-tail-buffer.js +13 -52
  303. package/node_modules/@maka/runtime/dist/bots/base-adapter.js +17 -0
  304. package/node_modules/@maka/runtime/dist/bots/bot-test.js +40 -23
  305. package/node_modules/@maka/runtime/dist/bots/dingtalk-bridge.js +93 -24
  306. package/node_modules/@maka/runtime/dist/bots/discord-bridge.js +4 -4
  307. package/node_modules/@maka/runtime/dist/bots/feishu-bridge.js +28 -25
  308. package/node_modules/@maka/runtime/dist/bots/qq-bridge.js +6 -4
  309. package/node_modules/@maka/runtime/dist/bots/slack-bridge.js +8 -7
  310. package/node_modules/@maka/runtime/dist/bots/telegram-bridge.js +7 -31
  311. package/node_modules/@maka/runtime/dist/bots/wechat-bridge.js +104 -48
  312. package/node_modules/@maka/runtime/dist/bots/wecom-bridge.js +45 -42
  313. package/node_modules/@maka/runtime/dist/bots/ws-bridge-base.js +2 -3
  314. package/node_modules/@maka/runtime/dist/builtin-tools.js +107 -115
  315. package/node_modules/@maka/runtime/dist/bundled-skill-catalog.generated.js +1 -1
  316. package/node_modules/@maka/runtime/dist/child-fd-input.js +3 -2
  317. package/node_modules/@maka/runtime/dist/code-mode.js +7 -4
  318. package/node_modules/@maka/runtime/dist/computer-use-codec.js +1 -141
  319. package/node_modules/@maka/runtime/dist/computer-use-tools.js +27 -106
  320. package/node_modules/@maka/runtime/dist/context-budget-helpers.js +4 -57
  321. package/node_modules/@maka/runtime/dist/context-budget-policy.js +26 -65
  322. package/node_modules/@maka/runtime/dist/context-budget.js +44 -103
  323. package/node_modules/@maka/runtime/dist/context-diagnostics.js +72 -33
  324. package/node_modules/@maka/runtime/dist/continuation-replay.js +22 -11
  325. package/node_modules/@maka/runtime/dist/conversation-copy.js +656 -188
  326. package/node_modules/@maka/runtime/dist/cua-frame-state.js +1 -69
  327. package/node_modules/@maka/runtime/dist/deep-research-tools.js +15 -24
  328. package/node_modules/@maka/runtime/dist/durable-tool-result-projection.js +436 -0
  329. package/node_modules/@maka/runtime/dist/edit-replace.js +2 -2
  330. package/node_modules/@maka/runtime/dist/execution-inspect.js +56 -41
  331. package/node_modules/@maka/runtime/dist/filesystem-executor.js +10 -6
  332. package/node_modules/@maka/runtime/dist/filesystem-worker/client.js +77 -19
  333. package/node_modules/@maka/runtime/dist/filesystem-worker/launch-spec.js +66 -55
  334. package/node_modules/@maka/runtime/dist/filesystem-worker/operations.js +34 -98
  335. package/node_modules/@maka/runtime/dist/filesystem-worker/protocol.js +25 -10
  336. package/node_modules/@maka/runtime/dist/filesystem-worker/worker-entry.js +2 -0
  337. package/node_modules/@maka/runtime/dist/github-copilot-oauth-enrollment.js +267 -0
  338. package/node_modules/@maka/runtime/dist/glob-search.js +74 -0
  339. package/node_modules/@maka/runtime/dist/goal-continuation.js +119 -13
  340. package/node_modules/@maka/runtime/dist/goal-evaluator.js +10 -4
  341. package/node_modules/@maka/runtime/dist/goal-state.js +7 -0
  342. package/node_modules/@maka/runtime/dist/grep-search.js +155 -0
  343. package/node_modules/@maka/runtime/dist/history-compact-checkpoint-coordinator.js +16 -6
  344. package/node_modules/@maka/runtime/dist/history-compact-checkpoint.js +79 -29
  345. package/node_modules/@maka/runtime/dist/history-compact-error.js +10 -2
  346. package/node_modules/@maka/runtime/dist/history-compact-input-fit.js +7 -1
  347. package/node_modules/@maka/runtime/dist/history-compact-ledger.js +18 -18
  348. package/node_modules/@maka/runtime/dist/history-compact-summarizer.js +132 -110
  349. package/node_modules/@maka/runtime/dist/history-compact-summary-validation.js +14 -30
  350. package/node_modules/@maka/runtime/dist/history-compaction.js +101 -89
  351. package/node_modules/@maka/runtime/dist/image-file.js +5 -20
  352. package/node_modules/@maka/runtime/dist/interaction-authority.js +85 -0
  353. package/node_modules/@maka/runtime/dist/latest-context-snapshot.js +112 -23
  354. package/node_modules/@maka/runtime/dist/ledger-tool-result-archive-reader.js +164 -0
  355. package/node_modules/@maka/runtime/dist/local-web-fetch.js +2 -43
  356. package/node_modules/@maka/runtime/dist/mcp-tools.js +93 -35
  357. package/node_modules/@maka/runtime/dist/memory-extraction-evidence.js +7 -1
  358. package/node_modules/@maka/runtime/dist/memory-extraction.js +23 -18
  359. package/node_modules/@maka/runtime/dist/message-authority.js +9 -0
  360. package/node_modules/@maka/runtime/dist/model-adapter.js +103 -122
  361. package/node_modules/@maka/runtime/dist/model-factory.js +34 -81
  362. package/node_modules/@maka/runtime/dist/model-fetcher.js +64 -10
  363. package/node_modules/@maka/runtime/dist/model-history.js +291 -159
  364. package/node_modules/@maka/runtime/dist/model-projection-transition-ledger.js +207 -0
  365. package/node_modules/@maka/runtime/dist/model-runtime.js +87 -110
  366. package/node_modules/@maka/runtime/dist/native-web-search-tool.js +2 -1
  367. package/node_modules/@maka/runtime/dist/oauth-provider-contracts.js +28 -1
  368. package/node_modules/@maka/runtime/dist/openai-codex-history-compactor.js +28 -73
  369. package/node_modules/@maka/runtime/dist/openai-responses-websocket.js +2 -5
  370. package/node_modules/@maka/runtime/dist/opencode-session-header.js +31 -0
  371. package/node_modules/@maka/runtime/dist/pipe-tail-collector.js +6 -9
  372. package/node_modules/@maka/runtime/dist/plan-mode.js +0 -65
  373. package/node_modules/@maka/runtime/dist/plan-tools.js +0 -3
  374. package/node_modules/@maka/runtime/dist/plugin-agent-service.js +131 -0
  375. package/node_modules/@maka/runtime/dist/plugin-approval-service.js +33 -0
  376. package/node_modules/@maka/runtime/dist/plugin-attachment-service.js +53 -0
  377. package/node_modules/@maka/runtime/dist/plugin-command-service.js +100 -0
  378. package/node_modules/@maka/runtime/dist/plugin-composition-loader.js +184 -22
  379. package/node_modules/@maka/runtime/dist/plugin-data-services.js +332 -0
  380. package/node_modules/@maka/runtime/dist/plugin-fs-service.js +62 -0
  381. package/node_modules/@maka/runtime/dist/plugin-goal-service.js +61 -0
  382. package/node_modules/@maka/runtime/dist/plugin-invocation-signal.js +24 -0
  383. package/node_modules/@maka/runtime/dist/plugin-llm-service.js +85 -0
  384. package/node_modules/@maka/runtime/dist/plugin-lsp-service.js +94 -0
  385. package/node_modules/@maka/runtime/dist/plugin-runtime.js +239 -10
  386. package/node_modules/@maka/runtime/dist/plugin-scope-registry.js +91 -0
  387. package/node_modules/@maka/runtime/dist/plugin-session-query-service.js +71 -0
  388. package/node_modules/@maka/runtime/dist/plugin-shell-env-service.js +87 -0
  389. package/node_modules/@maka/runtime/dist/plugin-shell-service.js +74 -0
  390. package/node_modules/@maka/runtime/dist/plugin-skill-service.js +93 -0
  391. package/node_modules/@maka/runtime/dist/plugin-system-prompt-service.js +346 -0
  392. package/node_modules/@maka/runtime/dist/plugin-tool-service.js +171 -0
  393. package/node_modules/@maka/runtime/dist/plugin-user-question-service.js +43 -0
  394. package/node_modules/@maka/runtime/dist/plugin-web-service.js +69 -0
  395. package/node_modules/@maka/runtime/dist/prior-run-context.js +24 -94
  396. package/node_modules/@maka/runtime/dist/process-tree-terminator.js +2 -2
  397. package/node_modules/@maka/runtime/dist/prompt-composition.js +36 -31
  398. package/node_modules/@maka/runtime/dist/provider-error-classification.js +84 -123
  399. package/node_modules/@maka/runtime/dist/provider-image-overflow-recovery.js +12 -31
  400. package/node_modules/@maka/runtime/dist/provider-request-telemetry.js +172 -196
  401. package/node_modules/@maka/runtime/dist/quiescent-session-snapshot.js +78 -0
  402. package/node_modules/@maka/runtime/dist/read-page.js +231 -0
  403. package/node_modules/@maka/runtime/dist/recovery-resolver.js +18 -14
  404. package/node_modules/@maka/runtime/dist/request-customization-fetch.js +14 -7
  405. package/node_modules/@maka/runtime/dist/request-projection.js +2 -15
  406. package/node_modules/@maka/runtime/dist/request-shape.js +187 -365
  407. package/node_modules/@maka/runtime/dist/ripgrep-executable.js +62 -0
  408. package/node_modules/@maka/runtime/dist/ripgrep-guidance.js +81 -0
  409. package/node_modules/@maka/runtime/dist/run-handoff-gate.js +97 -0
  410. package/node_modules/@maka/runtime/dist/run-trace.js +2 -34
  411. package/node_modules/@maka/runtime/dist/runtime-continuation-admission.js +1 -1
  412. package/node_modules/@maka/runtime/dist/runtime-event-backfill.js +107 -65
  413. package/node_modules/@maka/runtime/dist/runtime-event-read-model.js +415 -234
  414. package/node_modules/@maka/runtime/dist/runtime-kernel.js +518 -225
  415. package/node_modules/@maka/runtime/dist/runtime-ledger-repair.js +221 -448
  416. package/node_modules/@maka/runtime/dist/runtime-read-model.js +95 -198
  417. package/node_modules/@maka/runtime/dist/runtime-resume.js +162 -126
  418. package/node_modules/@maka/runtime/dist/sandbox/index.js +0 -1
  419. package/node_modules/@maka/runtime/dist/sandbox/linux-profile-path.js +7 -1
  420. package/node_modules/@maka/runtime/dist/sandbox/linux-sandbox.js +20 -17
  421. package/node_modules/@maka/runtime/dist/sandbox/macos-seatbelt.js +68 -21
  422. package/node_modules/@maka/runtime/dist/sandbox/sandbox-manager.js +0 -35
  423. package/node_modules/@maka/runtime/dist/sandbox/windows-sandbox.js +0 -12
  424. package/node_modules/@maka/runtime/dist/scheduled-task-tools.js +3 -0
  425. package/node_modules/@maka/runtime/dist/session-event-runtime-mapper.js +62 -21
  426. package/node_modules/@maka/runtime/dist/session-export.js +178 -0
  427. package/node_modules/@maka/runtime/dist/session-import.js +100 -0
  428. package/node_modules/@maka/runtime/dist/session-manager.js +672 -861
  429. package/node_modules/@maka/runtime/dist/session-projection-helpers.js +16 -28
  430. package/node_modules/@maka/runtime/dist/session-recap.js +87 -15
  431. package/node_modules/@maka/runtime/dist/session-todo-tools.js +67 -0
  432. package/node_modules/@maka/runtime/dist/session-trace-projection.js +25 -30
  433. package/node_modules/@maka/runtime/dist/shell-detect.js +3 -7
  434. package/node_modules/@maka/runtime/dist/shell-exec.js +7 -25
  435. package/node_modules/@maka/runtime/dist/shell-run-contract.js +0 -1
  436. package/node_modules/@maka/runtime/dist/shell-run-manager.js +11 -46
  437. package/node_modules/@maka/runtime/dist/shell-run-tool-result.js +14 -7
  438. package/node_modules/@maka/runtime/dist/shell-tools.js +84 -14
  439. package/node_modules/@maka/runtime/dist/stream-graph-coordinator.js +64 -13
  440. package/node_modules/@maka/runtime/dist/stream-graph-handoff.js +6 -1
  441. package/node_modules/@maka/runtime/dist/stream-graph-projection.js +18 -15
  442. package/node_modules/@maka/runtime/dist/stream-graph-read-model.js +5 -0
  443. package/node_modules/@maka/runtime/dist/stream-graph-supervisor-tools.js +0 -8
  444. package/node_modules/@maka/runtime/dist/stream-usage-fallback-fetch.js +74 -0
  445. package/node_modules/@maka/runtime/dist/subagent-tools.js +2 -80
  446. package/node_modules/@maka/runtime/dist/subscription-credentials.js +51 -4
  447. package/node_modules/@maka/runtime/dist/subscription-model-fetch.js +51 -11
  448. package/node_modules/@maka/runtime/dist/system-prompt/main-session-prompt.js +21 -2
  449. package/node_modules/@maka/runtime/dist/system-prompt/workspace-instructions.js +11 -6
  450. package/node_modules/@maka/runtime/dist/tavily-search.js +8 -2
  451. package/node_modules/@maka/runtime/dist/telemetry/model-pricing.generated.js +93 -83
  452. package/node_modules/@maka/runtime/dist/terminal-run-commit.js +37 -172
  453. package/node_modules/@maka/runtime/dist/test-connection.js +36 -30
  454. package/node_modules/@maka/runtime/dist/text-line-window.js +49 -0
  455. package/node_modules/@maka/runtime/dist/tool-activation-identity.js +41 -0
  456. package/node_modules/@maka/runtime/dist/tool-availability.js +85 -8
  457. package/node_modules/@maka/runtime/dist/tool-output.js +36 -13
  458. package/node_modules/@maka/runtime/dist/tool-result-archive-capability.js +24 -36
  459. package/node_modules/@maka/runtime/dist/tool-result-archive-encoding.js +38 -0
  460. package/node_modules/@maka/runtime/dist/tool-result-archive-resource.js +93 -245
  461. package/node_modules/@maka/runtime/dist/tool-result-archive-transition.js +186 -0
  462. package/node_modules/@maka/runtime/dist/tool-result-archive.js +50 -173
  463. package/node_modules/@maka/runtime/dist/tool-runtime.js +380 -126
  464. package/node_modules/@maka/runtime/dist/unified-diff.js +40 -10
  465. package/node_modules/@maka/runtime/dist/web-fetch-tool.js +4 -2
  466. package/node_modules/@maka/runtime/dist/workers/filesystem-worker.js +12332 -4656
  467. package/node_modules/@maka/runtime/dist/workspace-executor.js +22 -30
  468. package/node_modules/@maka/runtime/node_modules/@ai-sdk/code-mode/LICENSE +13 -0
  469. package/node_modules/@maka/runtime/node_modules/@ai-sdk/code-mode/dist/run-code-mode.js +551 -0
  470. package/node_modules/@maka/runtime/node_modules/@ai-sdk/code-mode/package.json +78 -0
  471. package/node_modules/@maka/runtime/node_modules/@ai-sdk/gateway/CHANGELOG.md +3269 -0
  472. package/node_modules/@maka/runtime/node_modules/@ai-sdk/gateway/LICENSE +13 -0
  473. package/node_modules/@maka/runtime/node_modules/@ai-sdk/gateway/dist/index.js +3835 -0
  474. package/node_modules/@maka/runtime/node_modules/@ai-sdk/gateway/docs/00-ai-gateway.mdx +1610 -0
  475. package/node_modules/@maka/runtime/node_modules/@ai-sdk/gateway/package.json +80 -0
  476. package/node_modules/@maka/runtime/node_modules/@ai-sdk/provider/CHANGELOG.md +1262 -0
  477. package/node_modules/@maka/runtime/node_modules/@ai-sdk/provider/LICENSE +13 -0
  478. package/node_modules/@maka/runtime/node_modules/@ai-sdk/provider/README.md +1 -0
  479. package/node_modules/@maka/runtime/node_modules/@ai-sdk/provider/dist/index.js +426 -0
  480. package/node_modules/@maka/runtime/node_modules/@ai-sdk/provider/package.json +63 -0
  481. package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/README.md +44 -8
  482. package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/dist/package.json +4 -4
  483. package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/dist/src/SlackWebSocket.js +39 -3
  484. package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/dist/src/SocketModeClient.js +4 -0
  485. package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/package.json +4 -4
  486. package/node_modules/@maka/runtime/node_modules/ai/CHANGELOG.md +10271 -0
  487. package/node_modules/@maka/runtime/node_modules/ai/LICENSE +13 -0
  488. package/node_modules/@maka/runtime/node_modules/ai/dist/index.js +20146 -0
  489. package/node_modules/@maka/runtime/node_modules/ai/dist/internal/index.js +3690 -0
  490. package/node_modules/@maka/runtime/node_modules/ai/docs/02-foundations/02-providers-and-models.mdx +185 -0
  491. package/node_modules/@maka/runtime/node_modules/ai/docs/03-agents/04-loop-control.mdx +517 -0
  492. package/node_modules/@maka/runtime/node_modules/ai/docs/03-agents/06-policy-tool-approvals.mdx +413 -0
  493. package/node_modules/@maka/runtime/node_modules/ai/docs/03-agents/06-tool-approvals.mdx +338 -0
  494. package/node_modules/@maka/runtime/node_modules/ai/docs/03-agents/07-workflow-agent.mdx +815 -0
  495. package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/10-generating-structured-data.mdx +525 -0
  496. package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/15-tools-and-tool-calling.mdx +1512 -0
  497. package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/16-mcp-tools.mdx +680 -0
  498. package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/35-image-generation.mdx +371 -0
  499. package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/36-transcription.mdx +333 -0
  500. package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/37-speech.mdx +163 -0
  501. package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/39-file-uploads.mdx +180 -0
  502. package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/42-batch.mdx +372 -0
  503. package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/50-error-handling.mdx +241 -0
  504. package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/60-telemetry.mdx +855 -0
  505. package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/index.mdx +137 -0
  506. package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-harnesses/02-harness-agent.mdx +683 -0
  507. package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-harnesses/04-skills.mdx +69 -0
  508. package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-harnesses/05-harness-adapters.mdx +47 -0
  509. package/node_modules/@maka/runtime/node_modules/ai/docs/04-ai-sdk-ui/03-chatbot-tool-usage.mdx +826 -0
  510. package/node_modules/@maka/runtime/node_modules/ai/docs/04-ai-sdk-ui/20-streaming-data.mdx +406 -0
  511. package/node_modules/@maka/runtime/node_modules/ai/docs/04-ai-sdk-ui/21-transport.mdx +216 -0
  512. package/node_modules/@maka/runtime/node_modules/ai/docs/04-ai-sdk-ui/50-stream-protocol.mdx +582 -0
  513. package/node_modules/@maka/runtime/node_modules/ai/docs/06-advanced/04-caching.mdx +182 -0
  514. package/node_modules/@maka/runtime/node_modules/ai/docs/06-advanced/11-secure-url-fetching.mdx +117 -0
  515. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/01-generate-text.mdx +3267 -0
  516. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/02-stream-text.mdx +4303 -0
  517. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/05-embed.mdx +330 -0
  518. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/06-embed-many.mdx +332 -0
  519. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/06-rerank.mdx +331 -0
  520. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/10-generate-image.mdx +253 -0
  521. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/14-upload-file.mdx +125 -0
  522. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/16-tool-loop-agent.mdx +1102 -0
  523. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/20-start-batch.mdx +154 -0
  524. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/21-get-batch-status.mdx +133 -0
  525. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/22-get-batch-results.mdx +109 -0
  526. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/23-cancel-batch.mdx +96 -0
  527. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/24-list-batches.mdx +121 -0
  528. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/28-output.mdx +368 -0
  529. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/31-ui-message.mdx +331 -0
  530. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/80-smooth-stream.mdx +147 -0
  531. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/index.mdx +250 -0
  532. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/02-ai-sdk-ui/01-use-chat.mdx +493 -0
  533. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/02-ai-sdk-ui/31-convert-to-model-messages.mdx +256 -0
  534. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/02-ai-sdk-ui/40-create-ui-message-stream.mdx +199 -0
  535. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/02-ai-sdk-ui/41-create-ui-message-stream-response.mdx +125 -0
  536. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/04-ai-sdk-workflow/01-workflow-agent.mdx +1035 -0
  537. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/04-ai-sdk-workflow/02-workflow-chat-transport.mdx +361 -0
  538. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/04-ai-sdk-workflow/03-generate-video.mdx +157 -0
  539. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/04-ai-sdk-workflow/index.mdx +32 -0
  540. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-invalid-argument-error.mdx +31 -0
  541. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-no-image-generated-error.mdx +43 -0
  542. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-stream-provider-error.mdx +52 -0
  543. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-tool-choice-violation-error.mdx +38 -0
  544. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/05-ai-sdk-errors/index.mdx +43 -0
  545. package/node_modules/@maka/runtime/node_modules/ai/package.json +127 -0
  546. package/node_modules/@maka/runtime/node_modules/undici/docs/docs/api/Client.md +4 -0
  547. package/node_modules/@maka/runtime/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +3 -2
  548. package/node_modules/@maka/runtime/node_modules/undici/docs/docs/api/EventSource.md +4 -0
  549. package/node_modules/@maka/runtime/node_modules/undici/lib/cache/memory-cache-store.js +1 -1
  550. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/agent.js +7 -2
  551. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/balanced-pool.js +1 -1
  552. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/client-h1.js +12 -4
  553. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/client-h2.js +43 -3
  554. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/client.js +3 -2
  555. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/dispatcher-base.js +13 -1
  556. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/dispatcher.js +10 -0
  557. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +10 -3
  558. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/proxy-agent.js +1 -1
  559. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/round-robin-pool.js +1 -1
  560. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +3 -1
  561. package/node_modules/@maka/runtime/node_modules/undici/lib/handler/cache-handler.js +8 -0
  562. package/node_modules/@maka/runtime/node_modules/undici/lib/handler/decorator-handler.js +7 -1
  563. package/node_modules/@maka/runtime/node_modules/undici/lib/handler/deduplication-handler.js +12 -6
  564. package/node_modules/@maka/runtime/node_modules/undici/lib/handler/redirect-handler.js +8 -0
  565. package/node_modules/@maka/runtime/node_modules/undici/lib/handler/retry-handler.js +83 -11
  566. package/node_modules/@maka/runtime/node_modules/undici/lib/interceptor/dump.js +1 -1
  567. package/node_modules/@maka/runtime/node_modules/undici/lib/mock/mock-agent.js +13 -1
  568. package/node_modules/@maka/runtime/node_modules/undici/lib/mock/mock-utils.js +11 -10
  569. package/node_modules/@maka/runtime/node_modules/undici/lib/web/cookies/parse.js +4 -2
  570. package/node_modules/@maka/runtime/node_modules/undici/lib/web/eventsource/eventsource-stream.js +28 -1
  571. package/node_modules/@maka/runtime/node_modules/undici/lib/web/eventsource/eventsource.js +4 -1
  572. package/node_modules/@maka/runtime/node_modules/undici/lib/web/fetch/request.js +2 -3
  573. package/node_modules/@maka/runtime/node_modules/undici/package.json +3 -3
  574. package/node_modules/@maka/runtime/package.json +41 -15
  575. package/node_modules/@maka/runtime-host/dist/adapter/session-projector.js +75 -38
  576. package/node_modules/@maka/runtime-host/dist/candidate-entry.js +10 -2
  577. package/node_modules/@maka/runtime-host/dist/candidate-launch-owner-guard.js +13 -0
  578. package/node_modules/@maka/runtime-host/dist/client/catalog-reader.js +64 -25
  579. package/node_modules/@maka/runtime-host/dist/client/client-capability-channel.js +87 -3
  580. package/node_modules/@maka/runtime-host/dist/client/connect-or-spawn.js +13 -2
  581. package/node_modules/@maka/runtime-host/dist/client/connection.js +144 -51
  582. package/node_modules/@maka/runtime-host/dist/client/host-handoff-copy.js +238 -0
  583. package/node_modules/@maka/runtime-host/dist/client/host-handoff.js +309 -0
  584. package/node_modules/@maka/runtime-host/dist/client/host-profile.js +483 -94
  585. package/node_modules/@maka/runtime-host/dist/client/host-retirement.js +28 -5
  586. package/node_modules/@maka/runtime-host/dist/client/index.js +12 -8
  587. package/node_modules/@maka/runtime-host/dist/client/launcher.js +12 -3
  588. package/node_modules/@maka/runtime-host/dist/client/oauth-presentation.js +1 -1
  589. package/node_modules/@maka/runtime-host/dist/client/owner-connection-code.js +38 -4
  590. package/node_modules/@maka/runtime-host/dist/client/peer-client.js +408 -25
  591. package/node_modules/@maka/runtime-host/dist/client/process-identity.js +73 -0
  592. package/node_modules/@maka/runtime-host/dist/client/reconnect-lifecycle.js +72 -7
  593. package/node_modules/@maka/runtime-host/dist/client/reconnecting-connection.js +11 -0
  594. package/node_modules/@maka/runtime-host/dist/client/registered-host-termination.js +107 -0
  595. package/node_modules/@maka/runtime-host/dist/client/remote-compatibility-error.js +2 -0
  596. package/node_modules/@maka/runtime-host/dist/client/session-subscription.js +46 -5
  597. package/node_modules/@maka/runtime-host/dist/client/ssh-operator-activation.js +48 -11
  598. package/node_modules/@maka/runtime-host/dist/client/wsl-control.js +0 -8
  599. package/node_modules/@maka/runtime-host/dist/client/wsl-environment.js +12 -8
  600. package/node_modules/@maka/runtime-host/dist/client-capability-entity-id.js +27 -0
  601. package/node_modules/@maka/runtime-host/dist/control/endpoint.js +1 -3
  602. package/node_modules/@maka/runtime-host/dist/node-error.js +22 -0
  603. package/node_modules/@maka/runtime-host/dist/operator/access-management-frame.js +10 -1
  604. package/node_modules/@maka/runtime-host/dist/operator/index.js +5 -2
  605. package/node_modules/@maka/runtime-host/dist/operator/managed-deployment.js +17 -8
  606. package/node_modules/@maka/runtime-host/dist/operator/operator-command.js +110 -0
  607. package/node_modules/@maka/runtime-host/dist/operator/peer-management-frame.js +2 -0
  608. package/node_modules/@maka/runtime-host/dist/operator/peer-mesh-management-frame.js +14 -0
  609. package/node_modules/@maka/runtime-host/dist/operator/retirement-cancellation.js +20 -0
  610. package/node_modules/@maka/runtime-host/dist/operator/service-management-frame.js +5 -6
  611. package/node_modules/@maka/runtime-host/dist/operator/setup-frame.js +32 -6
  612. package/node_modules/@maka/runtime-host/dist/peer-mesh/display-name.js +30 -0
  613. package/node_modules/@maka/runtime-host/dist/peer-mesh/index.js +3 -3
  614. package/node_modules/@maka/runtime-host/dist/peer-mesh/limits.js +1 -2
  615. package/node_modules/@maka/runtime-host/dist/peer-mesh/model.js +72 -73
  616. package/node_modules/@maka/runtime-host/dist/peer-mesh/node.js +1334 -418
  617. package/node_modules/@maka/runtime-host/dist/peer-mesh/owner.js +33 -68
  618. package/node_modules/@maka/runtime-host/dist/peer-mesh/store.js +147 -52
  619. package/node_modules/@maka/runtime-host/dist/peer-reachability/index.js +21 -0
  620. package/node_modules/@maka/runtime-host/dist/peer-reachability/model.js +202 -0
  621. package/node_modules/@maka/runtime-host/dist/peer-reachability/owner.js +118 -0
  622. package/node_modules/@maka/runtime-host/dist/peer-reachability/publisher.js +243 -0
  623. package/node_modules/@maka/runtime-host/dist/protocol/agent-graph.js +4 -1
  624. package/node_modules/@maka/runtime-host/dist/protocol/artifact.js +11 -20
  625. package/node_modules/@maka/runtime-host/dist/protocol/client-capability.js +233 -41
  626. package/node_modules/@maka/runtime-host/dist/protocol/configuration.js +55 -9
  627. package/node_modules/@maka/runtime-host/dist/protocol/connection-catalog-change.js +26 -0
  628. package/node_modules/@maka/runtime-host/dist/protocol/connection-effects.js +15 -8
  629. package/node_modules/@maka/runtime-host/dist/protocol/external-agent-setup.js +149 -0
  630. package/node_modules/@maka/runtime-host/dist/protocol/external-session.js +4 -0
  631. package/node_modules/@maka/runtime-host/dist/protocol/host-resources.js +253 -0
  632. package/node_modules/@maka/runtime-host/dist/protocol/host-status.js +49 -11
  633. package/node_modules/@maka/runtime-host/dist/protocol/index.js +206 -2
  634. package/node_modules/@maka/runtime-host/dist/protocol/message.js +14 -9
  635. package/node_modules/@maka/runtime-host/dist/protocol/network-proxy.js +1 -7
  636. package/node_modules/@maka/runtime-host/dist/protocol/oauth.js +104 -8
  637. package/node_modules/@maka/runtime-host/dist/protocol/operations.js +22 -5
  638. package/node_modules/@maka/runtime-host/dist/protocol/peer-mesh.js +72 -32
  639. package/node_modules/@maka/runtime-host/dist/protocol/plan.js +1 -0
  640. package/node_modules/@maka/runtime-host/dist/protocol/plugin-platform.js +559 -0
  641. package/node_modules/@maka/runtime-host/dist/protocol/project-catalog.js +2 -2
  642. package/node_modules/@maka/runtime-host/dist/protocol/runtime-policy.js +81 -26
  643. package/node_modules/@maka/runtime-host/dist/protocol/scheduled-task.js +19 -6
  644. package/node_modules/@maka/runtime-host/dist/protocol/session-bundle.js +100 -0
  645. package/node_modules/@maka/runtime-host/dist/protocol/session-catalog.js +1 -1
  646. package/node_modules/@maka/runtime-host/dist/protocol/session-collaboration.js +68 -4
  647. package/node_modules/@maka/runtime-host/dist/protocol/session-continuity.js +44 -23
  648. package/node_modules/@maka/runtime-host/dist/protocol/session-retirement.js +30 -3
  649. package/node_modules/@maka/runtime-host/dist/protocol/session-revision.js +11 -2
  650. package/node_modules/@maka/runtime-host/dist/protocol/session-todo.js +53 -0
  651. package/node_modules/@maka/runtime-host/dist/protocol/session-transcript.js +3 -7
  652. package/node_modules/@maka/runtime-host/dist/protocol/session-turns.js +29 -58
  653. package/node_modules/@maka/runtime-host/dist/protocol/skill-catalog.js +2 -1
  654. package/node_modules/@maka/runtime-host/dist/protocol/turn.js +25 -14
  655. package/node_modules/@maka/runtime-host/dist/protocol/usage-pricing.js +20 -2
  656. package/node_modules/@maka/runtime-host/dist/protocol/workhub-coordination.js +212 -75
  657. package/node_modules/@maka/runtime-host/dist/server/access-authority.js +87 -22
  658. package/node_modules/@maka/runtime-host/dist/server/access-credential-metadata.js +4 -2
  659. package/node_modules/@maka/runtime-host/dist/server/access-credential-store.js +135 -48
  660. package/node_modules/@maka/runtime-host/dist/server/acp/antigravity-install.js +242 -0
  661. package/node_modules/@maka/runtime-host/dist/server/acp/antigravity.js +154 -0
  662. package/node_modules/@maka/runtime-host/dist/server/acp/connection.js +116 -0
  663. package/node_modules/@maka/runtime-host/dist/server/agent-graph-coordinator.js +0 -3
  664. package/node_modules/@maka/runtime-host/dist/server/agent-graph-execution-coordinator.js +1 -2
  665. package/node_modules/@maka/runtime-host/dist/server/artifact-coordinator.js +19 -22
  666. package/node_modules/@maka/runtime-host/dist/server/bootstrap-runtime-policy.js +10 -4
  667. package/node_modules/@maka/runtime-host/dist/server/candidate.js +3 -0
  668. package/node_modules/@maka/runtime-host/dist/server/canonical-session-projection.js +2 -1
  669. package/node_modules/@maka/runtime-host/dist/server/canonical-turn-snapshot.js +34 -24
  670. package/node_modules/@maka/runtime-host/dist/server/canonical-usage-reader.js +24 -11
  671. package/node_modules/@maka/runtime-host/dist/server/child-agent-composition.js +1 -1
  672. package/node_modules/@maka/runtime-host/dist/server/client-capability-coordinator.js +282 -30
  673. package/node_modules/@maka/runtime-host/dist/server/client-capability-invocation-broker.js +258 -51
  674. package/node_modules/@maka/runtime-host/dist/server/client-capability-provider-id.js +31 -0
  675. package/node_modules/@maka/runtime-host/dist/server/client-capability-recovery.js +10 -7
  676. package/node_modules/@maka/runtime-host/dist/server/configuration-coordinator.js +20 -1
  677. package/node_modules/@maka/runtime-host/dist/server/connection-effect-coordinator.js +43 -18
  678. package/node_modules/@maka/runtime-host/dist/server/connection-session.js +45 -14
  679. package/node_modules/@maka/runtime-host/dist/server/daily-review-coordinator.js +164 -82
  680. package/node_modules/@maka/runtime-host/dist/server/deep-research-coordinator.js +1 -1
  681. package/node_modules/@maka/runtime-host/dist/server/execution-artifacts.js +59 -36
  682. package/node_modules/@maka/runtime-host/dist/server/execution-composition.js +1076 -176
  683. package/node_modules/@maka/runtime-host/dist/server/execution-inspect-coordinator.js +35 -29
  684. package/node_modules/@maka/runtime-host/dist/server/execution-model-authority.js +112 -18
  685. package/node_modules/@maka/runtime-host/dist/server/execution-model-composition.js +85 -73
  686. package/node_modules/@maka/runtime-host/dist/server/execution-service.js +49 -24
  687. package/node_modules/@maka/runtime-host/dist/server/extension-bundle.js +249 -0
  688. package/node_modules/@maka/runtime-host/dist/server/extension-package-manifest.js +262 -0
  689. package/node_modules/@maka/runtime-host/dist/server/external-agent-setup-coordinator.js +190 -0
  690. package/node_modules/@maka/runtime-host/dist/server/external-session-coordinator.js +13 -10
  691. package/node_modules/@maka/runtime-host/dist/server/failure-diagnostic.js +24 -0
  692. package/node_modules/@maka/runtime-host/dist/server/goal-coordinator.js +134 -35
  693. package/node_modules/@maka/runtime-host/dist/server/host-change-feed.js +11 -0
  694. package/node_modules/@maka/runtime-host/dist/server/host-kernel.js +163 -27
  695. package/node_modules/@maka/runtime-host/dist/server/host-residency-registry.js +41 -20
  696. package/node_modules/@maka/runtime-host/dist/server/host-resource-collector.js +223 -0
  697. package/node_modules/@maka/runtime-host/dist/server/host-resource-probe-main.js +44 -0
  698. package/node_modules/@maka/runtime-host/dist/server/host-resource-probe.js +83 -0
  699. package/node_modules/@maka/runtime-host/dist/server/host-session-availability.js +5 -2
  700. package/node_modules/@maka/runtime-host/dist/server/hosted-execution-admission-registry.js +3 -1
  701. package/node_modules/@maka/runtime-host/dist/server/hosted-execution-projection.js +12 -7
  702. package/node_modules/@maka/runtime-host/dist/server/hosted-execution-recovery.js +131 -69
  703. package/node_modules/@maka/runtime-host/dist/server/hosted-execution-tool-profile.js +64 -4
  704. package/node_modules/@maka/runtime-host/dist/server/index.js +5 -0
  705. package/node_modules/@maka/runtime-host/dist/server/interaction-coordinator.js +370 -34
  706. package/node_modules/@maka/runtime-host/dist/server/interaction-projection.js +36 -1
  707. package/node_modules/@maka/runtime-host/dist/server/interactive-run-composer.js +173 -109
  708. package/node_modules/@maka/runtime-host/dist/server/json-array-page-budget.js +48 -0
  709. package/node_modules/@maka/runtime-host/dist/server/listener-set.js +6 -4
  710. package/node_modules/@maka/runtime-host/dist/server/memory-projection.js +14 -15
  711. package/node_modules/@maka/runtime-host/dist/server/message-coordinator.js +339 -66
  712. package/node_modules/@maka/runtime-host/dist/server/model-metadata-refresh.js +96 -0
  713. package/node_modules/@maka/runtime-host/dist/server/network-proxy-coordinator.js +0 -1
  714. package/node_modules/@maka/runtime-host/dist/server/oauth-coordinator.js +169 -45
  715. package/node_modules/@maka/runtime-host/dist/server/oauth-execution-authority.js +20 -3
  716. package/node_modules/@maka/runtime-host/dist/server/operation-dispatcher.js +47 -125
  717. package/node_modules/@maka/runtime-host/dist/server/peer-listener.js +131 -48
  718. package/node_modules/@maka/runtime-host/dist/server/peer-mesh-authority.js +20 -1
  719. package/node_modules/@maka/runtime-host/dist/server/plan-coordinator.js +11 -5
  720. package/node_modules/@maka/runtime-host/dist/server/plugin-composition-patch.js +58 -0
  721. package/node_modules/@maka/runtime-host/dist/server/plugin-composition-store.js +141 -0
  722. package/node_modules/@maka/runtime-host/dist/server/plugin-data-runtime.js +234 -0
  723. package/node_modules/@maka/runtime-host/dist/server/plugin-package-loader.js +130 -0
  724. package/node_modules/@maka/runtime-host/dist/server/plugin-package-store.js +528 -0
  725. package/node_modules/@maka/runtime-host/dist/server/plugin-platform-coordinator.js +263 -0
  726. package/node_modules/@maka/runtime-host/dist/server/plugin-platform.js +1148 -0
  727. package/node_modules/@maka/runtime-host/dist/server/project-catalog-coordinator.js +10 -12
  728. package/node_modules/@maka/runtime-host/dist/server/project-directory-authority.js +4 -3
  729. package/node_modules/@maka/runtime-host/dist/server/root-admission-owner.js +32 -7
  730. package/node_modules/@maka/runtime-host/dist/server/root-turn-coordinator.js +690 -188
  731. package/node_modules/@maka/runtime-host/dist/server/runtime-policy-coordinator.js +72 -18
  732. package/node_modules/@maka/runtime-host/dist/server/runtime-resource-coordinator.js +11 -8
  733. package/node_modules/@maka/runtime-host/dist/server/runtime-resource-projection.js +12 -18
  734. package/node_modules/@maka/runtime-host/dist/server/scheduled-task-coordinator.js +150 -41
  735. package/node_modules/@maka/runtime-host/dist/server/serial-outbound-writer.js +46 -4
  736. package/node_modules/@maka/runtime-host/dist/server/session-admission-gate.js +21 -1
  737. package/node_modules/@maka/runtime-host/dist/server/session-bundle-coordinator.js +163 -0
  738. package/node_modules/@maka/runtime-host/dist/server/session-catalog-coordinator.js +247 -33
  739. package/node_modules/@maka/runtime-host/dist/server/session-continuity-coordinator.js +112 -48
  740. package/node_modules/@maka/runtime-host/dist/server/session-effect-coordinator.js +1 -1
  741. package/node_modules/@maka/runtime-host/dist/server/session-retirement-coordinator.js +66 -14
  742. package/node_modules/@maka/runtime-host/dist/server/session-revision-coordinator.js +113 -67
  743. package/node_modules/@maka/runtime-host/dist/server/session-revision-graph-references.js +18 -10
  744. package/node_modules/@maka/runtime-host/dist/server/session-sidecar-purge.js +2 -1
  745. package/node_modules/@maka/runtime-host/dist/server/session-todo-coordinator.js +77 -0
  746. package/node_modules/@maka/runtime-host/dist/server/session-transcript-pager.js +34 -5
  747. package/node_modules/@maka/runtime-host/dist/server/session-transcript-reader.js +404 -87
  748. package/node_modules/@maka/runtime-host/dist/server/session-turn-access-request-coordinator.js +43 -26
  749. package/node_modules/@maka/runtime-host/dist/server/shared-session-transcript.js +4 -1
  750. package/node_modules/@maka/runtime-host/dist/server/skill-catalog-coordinator.js +18 -2
  751. package/node_modules/@maka/runtime-host/dist/server/skill-catalog-repository.js +16 -17
  752. package/node_modules/@maka/runtime-host/dist/server/storage-maintenance.js +109 -0
  753. package/node_modules/@maka/runtime-host/dist/server/usage-pricing-coordinator.js +79 -35
  754. package/node_modules/@maka/runtime-host/dist/server/web-fetch-tool.js +1 -1
  755. package/node_modules/@maka/runtime-host/dist/server/workhub-coordination-action-gate.js +566 -37
  756. package/node_modules/@maka/runtime-host/dist/server/workhub-coordination-coordinator.js +590 -131
  757. package/node_modules/@maka/runtime-host/dist/server/workhub-message-attachments.js +46 -0
  758. package/node_modules/@maka/runtime-host/dist/transport/framed-byte-stream-transport.js +4 -1
  759. package/node_modules/@maka/runtime-host/dist/transport/local-ipc-framing.js +4 -2
  760. package/node_modules/@maka/runtime-host/dist/transport/peer-native.js +112 -24
  761. package/node_modules/@maka/runtime-host/dist/transport/resumable-peer-stream.js +469 -0
  762. package/node_modules/@maka/runtime-host/dist/webrtc-stun-policy.js +114 -0
  763. package/node_modules/@maka/runtime-host/package.json +7 -1
  764. package/node_modules/@maka/storage/dist/agent-run-store.js +355 -238
  765. package/node_modules/@maka/storage/dist/artifact-attachments.js +66 -18
  766. package/node_modules/@maka/storage/dist/artifact-metadata-codec.js +24 -28
  767. package/node_modules/@maka/storage/dist/artifact-store.js +203 -767
  768. package/node_modules/@maka/storage/dist/artifact-stores.js +6 -10
  769. package/node_modules/@maka/storage/dist/artifact-writer-lock.js +1 -1
  770. package/node_modules/@maka/storage/dist/atomic-file-write.js +74 -0
  771. package/node_modules/@maka/storage/dist/claude-code-session-adapter.js +0 -5
  772. package/node_modules/@maka/storage/dist/codex-session-adapter.js +298 -198
  773. package/node_modules/@maka/storage/dist/context-offload-snapshot.js +397 -0
  774. package/node_modules/@maka/storage/dist/context-value-mutation-gate.js +59 -0
  775. package/node_modules/@maka/storage/dist/conversation-operational-state.js +7 -0
  776. package/node_modules/@maka/storage/dist/credential-store.js +15 -63
  777. package/node_modules/@maka/storage/dist/execution-record-codec.js +1 -22
  778. package/node_modules/@maka/storage/dist/execution-stores.js +38 -21
  779. package/node_modules/@maka/storage/dist/file-lifetime-owner.js +30 -2
  780. package/node_modules/@maka/storage/dist/file-session-repository.js +1012 -0
  781. package/node_modules/@maka/storage/dist/git-exec.js +61 -0
  782. package/node_modules/@maka/storage/dist/git-worktree-child-executor.js +8 -35
  783. package/node_modules/@maka/storage/dist/goal-authority.js +2 -2
  784. package/node_modules/@maka/storage/dist/interaction-store-public.js +1 -1
  785. package/node_modules/@maka/storage/dist/interaction-store.js +188 -3
  786. package/node_modules/@maka/storage/dist/legacy-run-header.js +327 -0
  787. package/node_modules/@maka/storage/dist/mcp-config-store.js +10 -25
  788. package/node_modules/@maka/storage/dist/message-admission-store.js +3 -0
  789. package/node_modules/@maka/storage/dist/model-call-ledger.js +199 -32
  790. package/node_modules/@maka/storage/dist/model-call-usage-sql.js +136 -0
  791. package/node_modules/@maka/storage/dist/model-facts-store.js +56 -0
  792. package/node_modules/@maka/storage/dist/opencode-session-adapter.js +0 -4
  793. package/node_modules/@maka/storage/dist/operational-state-backup.js +15 -11
  794. package/node_modules/@maka/storage/dist/operational-state-store-public.js +1 -1
  795. package/node_modules/@maka/storage/dist/operational-state-store.js +27 -2
  796. package/node_modules/@maka/storage/dist/production-session-snapshot.js +761 -0
  797. package/node_modules/@maka/storage/dist/project-catalog.js +8 -23
  798. package/node_modules/@maka/storage/dist/quiescent-session-snapshot.js +1154 -0
  799. package/node_modules/@maka/storage/dist/runtime-event-invariants.js +2 -2
  800. package/node_modules/@maka/storage/dist/runtime-event-persistence.js +6 -0
  801. package/node_modules/@maka/storage/dist/runtime-policy/connection-catalog-document.js +182 -62
  802. package/node_modules/@maka/storage/dist/runtime-policy/coordinator.js +540 -117
  803. package/node_modules/@maka/storage/dist/runtime-policy/document-io.js +22 -16
  804. package/node_modules/@maka/storage/dist/runtime-policy/oauth-login-receipt-document.js +207 -0
  805. package/node_modules/@maka/storage/dist/runtime-policy/onboarding-transaction.js +148 -5
  806. package/node_modules/@maka/storage/dist/runtime-policy/policy-document.js +10 -4
  807. package/node_modules/@maka/storage/dist/runtime-policy-stores.js +7 -3
  808. package/node_modules/@maka/storage/dist/runtime-transcript-query.js +321 -0
  809. package/node_modules/@maka/storage/dist/scheduled-task-store.js +256 -283
  810. package/node_modules/@maka/storage/dist/session-bundle-manifest.js +5 -17
  811. package/node_modules/@maka/storage/dist/session-bundle-policy.js +1031 -34
  812. package/node_modules/@maka/storage/dist/session-bundle-ustar.js +12 -0
  813. package/node_modules/@maka/storage/dist/session-copy-cleanup.js +12 -7
  814. package/node_modules/@maka/storage/dist/session-message-projection.js +24 -5
  815. package/node_modules/@maka/storage/dist/session-repository.js +767 -0
  816. package/node_modules/@maka/storage/dist/session-store.js +110 -115
  817. package/node_modules/@maka/storage/dist/session-todo-authority.js +106 -0
  818. package/node_modules/@maka/storage/dist/session-todo-store.js +169 -0
  819. package/node_modules/@maka/storage/dist/settings-store.js +24 -29
  820. package/node_modules/@maka/storage/dist/sqlite-artifact-metadata.js +51 -17
  821. package/node_modules/@maka/storage/dist/sqlite-artifact-schema.js +55 -5
  822. package/node_modules/@maka/storage/dist/sqlite-context-offload-store.js +42 -12
  823. package/node_modules/@maka/storage/dist/sqlite-core-execution-schema.js +45 -2
  824. package/node_modules/@maka/storage/dist/sqlite-runtime-schema.js +367 -1
  825. package/node_modules/@maka/storage/dist/sqlite-runtime-store.js +439 -82
  826. package/node_modules/@maka/storage/dist/sqlite-session-metadata-schema.js +63 -5
  827. package/node_modules/@maka/storage/dist/sqlite-session-metadata-store.js +493 -914
  828. package/node_modules/@maka/storage/dist/sqlite-usage-schema.js +200 -20
  829. package/node_modules/@maka/storage/dist/sqlite-usage-store.js +29 -6
  830. package/node_modules/@maka/storage/dist/sqlite-workflow-schema.js +5 -8
  831. package/node_modules/@maka/storage/dist/stable-storage.js +16 -2
  832. package/node_modules/@maka/storage/dist/storage-id.js +28 -0
  833. package/node_modules/@maka/storage/dist/storage-writer-composition.js +3 -3
  834. package/node_modules/@maka/storage/dist/tool-result-archive-evidence.js +138 -0
  835. package/node_modules/@maka/storage/dist/usage-stores.js +9 -3
  836. package/node_modules/@maka/storage/dist/work-board-store.js +4 -4
  837. package/node_modules/@maka/storage/dist/workspace-identity.js +2 -15
  838. package/node_modules/@maka/storage/dist/workspace-version-authority-internal.js +1 -8
  839. package/node_modules/@maka/storage/package.json +8 -2
  840. package/node_modules/@modelcontextprotocol/client/dist/src-D_zzAWoS.mjs +22 -5
  841. package/node_modules/@modelcontextprotocol/client/dist/src-NAgB4Mp8.cjs +22 -5
  842. package/node_modules/@slack/types/dist/events/agent.js +3 -0
  843. package/node_modules/@slack/types/dist/events/index.js +44 -0
  844. package/node_modules/@slack/types/package.json +47 -0
  845. package/node_modules/@slack/web-api/README.md +382 -0
  846. package/node_modules/@slack/web-api/dist/methods.js +1636 -0
  847. package/node_modules/@slack/web-api/dist/types/request/agents.js +3 -0
  848. package/node_modules/@slack/web-api/dist/types/request/blocks.js +3 -0
  849. package/node_modules/@slack/web-api/dist/types/response/AdminUsersGetExpirationResponse.js +11 -0
  850. package/node_modules/@slack/web-api/dist/types/response/AgentsSessionsRenameResponse.js +11 -0
  851. package/node_modules/@slack/web-api/dist/types/response/AgentsSessionsSetStatusResponse.js +11 -0
  852. package/node_modules/@slack/web-api/dist/types/response/BlocksValidateResponse.js +11 -0
  853. package/node_modules/@slack/web-api/dist/types/response/ChatAppendStreamResponse.js +11 -0
  854. package/node_modules/@slack/web-api/dist/types/response/ChatStartStreamResponse.js +11 -0
  855. package/node_modules/@slack/web-api/dist/types/response/ChatStopStreamResponse.js +48 -0
  856. package/node_modules/@slack/web-api/dist/types/response/PinsListResponse.js +67 -0
  857. package/node_modules/@slack/web-api/dist/types/response/SearchAllResponse.js +72 -0
  858. package/node_modules/@slack/web-api/dist/types/response/SearchFilesResponse.js +48 -0
  859. package/node_modules/@slack/web-api/dist/types/response/SlackListsAccessDeleteResponse.js +11 -0
  860. package/node_modules/@slack/web-api/dist/types/response/SlackListsAccessSetResponse.js +11 -0
  861. package/node_modules/@slack/web-api/dist/types/response/SlackListsCreateResponse.js +11 -0
  862. package/node_modules/@slack/web-api/dist/types/response/SlackListsDownloadGetResponse.js +11 -0
  863. package/node_modules/@slack/web-api/dist/types/response/SlackListsDownloadStartResponse.js +11 -0
  864. package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsCreateResponse.js +11 -0
  865. package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsDeleteMultipleResponse.js +11 -0
  866. package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsDeleteResponse.js +11 -0
  867. package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsInfoResponse.js +11 -0
  868. package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsListResponse.js +11 -0
  869. package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsUpdateResponse.js +11 -0
  870. package/node_modules/@slack/web-api/dist/types/response/SlackListsUpdateResponse.js +11 -0
  871. package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedAddResponse.js +11 -0
  872. package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedListResponse.js +11 -0
  873. package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedRemoveResponse.js +11 -0
  874. package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedSetResponse.js +11 -0
  875. package/node_modules/@slack/web-api/node_modules/@types/retry/LICENSE +21 -0
  876. package/node_modules/@slack/web-api/node_modules/@types/retry/README.md +15 -0
  877. package/node_modules/@slack/web-api/node_modules/@types/retry/package.json +30 -0
  878. package/node_modules/@slack/web-api/package.json +71 -0
  879. package/node_modules/@types/node/README.md +1 -1
  880. package/node_modules/@types/node/package.json +2 -2
  881. package/node_modules/balanced-match/LICENSE.md +23 -0
  882. package/node_modules/balanced-match/README.md +57 -0
  883. package/node_modules/balanced-match/dist/commonjs/index.js +59 -0
  884. package/node_modules/balanced-match/dist/commonjs/package.json +3 -0
  885. package/node_modules/balanced-match/dist/esm/index.js +54 -0
  886. package/node_modules/balanced-match/dist/esm/package.json +3 -0
  887. package/node_modules/balanced-match/package.json +68 -0
  888. package/node_modules/brace-expansion/LICENSE +23 -0
  889. package/node_modules/brace-expansion/README.md +105 -0
  890. package/node_modules/brace-expansion/dist/commonjs/index.js +289 -0
  891. package/node_modules/brace-expansion/dist/commonjs/package.json +3 -0
  892. package/node_modules/brace-expansion/dist/esm/index.js +285 -0
  893. package/node_modules/brace-expansion/dist/esm/package.json +3 -0
  894. package/node_modules/brace-expansion/package.json +64 -0
  895. package/node_modules/fast-uri/index.js +215 -47
  896. package/node_modules/fast-uri/lib/schemes.js +9 -4
  897. package/node_modules/fast-uri/lib/utils.js +396 -92
  898. package/node_modules/fast-uri/package.json +1 -1
  899. package/node_modules/fs-native-extensions/package.json +1 -1
  900. package/node_modules/fs-native-extensions/prebuilds/android-arm/fs-native-extensions.bare +0 -0
  901. package/node_modules/fs-native-extensions/prebuilds/android-arm64/fs-native-extensions.bare +0 -0
  902. package/node_modules/fs-native-extensions/prebuilds/android-ia32/fs-native-extensions.bare +0 -0
  903. package/node_modules/fs-native-extensions/prebuilds/android-x64/fs-native-extensions.bare +0 -0
  904. package/node_modules/fs-native-extensions/prebuilds/darwin-arm64/fs-native-extensions.bare +0 -0
  905. package/node_modules/fs-native-extensions/prebuilds/darwin-arm64/fs-native-extensions.node +0 -0
  906. package/node_modules/fs-native-extensions/prebuilds/darwin-x64/fs-native-extensions.bare +0 -0
  907. package/node_modules/fs-native-extensions/prebuilds/darwin-x64/fs-native-extensions.node +0 -0
  908. package/node_modules/fs-native-extensions/prebuilds/ios-arm64/fs-native-extensions.bare +0 -0
  909. package/node_modules/fs-native-extensions/prebuilds/ios-arm64-simulator/fs-native-extensions.bare +0 -0
  910. package/node_modules/fs-native-extensions/prebuilds/ios-x64-simulator/fs-native-extensions.bare +0 -0
  911. package/node_modules/fs-native-extensions/prebuilds/linux-arm64/fs-native-extensions.bare +0 -0
  912. package/node_modules/fs-native-extensions/prebuilds/linux-x64/fs-native-extensions.bare +0 -0
  913. package/node_modules/fs-native-extensions/prebuilds/win32-arm64/fs-native-extensions.bare +0 -0
  914. package/node_modules/fs-native-extensions/prebuilds/win32-arm64/fs-native-extensions.node +0 -0
  915. package/node_modules/fs-native-extensions/prebuilds/win32-x64/fs-native-extensions.bare +0 -0
  916. package/node_modules/fs-native-extensions/prebuilds/win32-x64/fs-native-extensions.node +0 -0
  917. package/node_modules/fs-native-extensions/src/win32.c +50 -11
  918. package/node_modules/glob/LICENSE.md +63 -0
  919. package/node_modules/glob/README.md +1203 -0
  920. package/node_modules/glob/dist/commonjs/glob.js +248 -0
  921. package/node_modules/glob/dist/commonjs/has-magic.js +27 -0
  922. package/node_modules/glob/dist/commonjs/ignore.js +119 -0
  923. package/node_modules/glob/dist/commonjs/index.js +68 -0
  924. package/node_modules/glob/dist/commonjs/index.min.js +4 -0
  925. package/node_modules/glob/dist/commonjs/package.json +3 -0
  926. package/node_modules/glob/dist/commonjs/pattern.js +223 -0
  927. package/node_modules/glob/dist/commonjs/processor.js +301 -0
  928. package/node_modules/glob/dist/commonjs/walker.js +387 -0
  929. package/node_modules/glob/dist/esm/glob.js +244 -0
  930. package/node_modules/glob/dist/esm/has-magic.js +23 -0
  931. package/node_modules/glob/dist/esm/ignore.js +115 -0
  932. package/node_modules/glob/dist/esm/index.js +55 -0
  933. package/node_modules/glob/dist/esm/index.min.js +4 -0
  934. package/node_modules/glob/dist/esm/package.json +3 -0
  935. package/node_modules/glob/dist/esm/pattern.js +219 -0
  936. package/node_modules/glob/dist/esm/processor.js +294 -0
  937. package/node_modules/glob/dist/esm/walker.js +381 -0
  938. package/node_modules/glob/package.json +98 -0
  939. package/node_modules/minimatch/LICENSE.md +55 -0
  940. package/node_modules/minimatch/README.md +528 -0
  941. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +14 -0
  942. package/node_modules/minimatch/dist/commonjs/ast.js +845 -0
  943. package/node_modules/minimatch/dist/commonjs/brace-expressions.js +150 -0
  944. package/node_modules/minimatch/dist/commonjs/escape.js +30 -0
  945. package/node_modules/minimatch/dist/commonjs/index.js +1127 -0
  946. package/node_modules/minimatch/dist/commonjs/package.json +3 -0
  947. package/node_modules/minimatch/dist/commonjs/unescape.js +38 -0
  948. package/node_modules/minimatch/dist/esm/assert-valid-pattern.js +10 -0
  949. package/node_modules/minimatch/dist/esm/ast.js +841 -0
  950. package/node_modules/minimatch/dist/esm/brace-expressions.js +146 -0
  951. package/node_modules/minimatch/dist/esm/escape.js +26 -0
  952. package/node_modules/minimatch/dist/esm/index.js +1114 -0
  953. package/node_modules/minimatch/dist/esm/package.json +3 -0
  954. package/node_modules/minimatch/dist/esm/unescape.js +34 -0
  955. package/node_modules/minimatch/package.json +73 -0
  956. package/node_modules/minipass/LICENSE.md +55 -0
  957. package/node_modules/minipass/README.md +825 -0
  958. package/node_modules/minipass/dist/commonjs/index.js +1038 -0
  959. package/node_modules/minipass/dist/commonjs/package.json +3 -0
  960. package/node_modules/minipass/dist/esm/index.js +1020 -0
  961. package/node_modules/minipass/dist/esm/package.json +3 -0
  962. package/node_modules/minipass/package.json +77 -0
  963. package/node_modules/path-scurry/LICENSE.md +55 -0
  964. package/node_modules/path-scurry/README.md +636 -0
  965. package/node_modules/path-scurry/dist/commonjs/index.js +2018 -0
  966. package/node_modules/path-scurry/dist/commonjs/package.json +3 -0
  967. package/node_modules/path-scurry/dist/esm/index.js +1983 -0
  968. package/node_modules/path-scurry/dist/esm/package.json +3 -0
  969. package/node_modules/path-scurry/node_modules/lru-cache/LICENSE.md +55 -0
  970. package/node_modules/path-scurry/node_modules/lru-cache/README.md +469 -0
  971. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.js +7 -0
  972. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/index.js +1726 -0
  973. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/index.min.js +2 -0
  974. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/perf.js +10 -0
  975. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.d.cts.map +1 -0
  976. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +7 -0
  977. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.js +1726 -0
  978. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
  979. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.js +9 -0
  980. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/index.js +1726 -0
  981. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/index.min.js +2 -0
  982. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/perf.js +10 -0
  983. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/package.json +3 -0
  984. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/perf.js +10 -0
  985. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.js +4 -0
  986. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/index.js +1722 -0
  987. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/index.min.js +2 -0
  988. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/perf.js +7 -0
  989. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.d.mts.map +1 -0
  990. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/diagnostics-channel.js +19 -0
  991. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.js +1722 -0
  992. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.min.js +2 -0
  993. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +6 -0
  994. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/index.js +1722 -0
  995. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/index.min.js +2 -0
  996. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/perf.js +7 -0
  997. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/package.json +3 -0
  998. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/perf.js +7 -0
  999. package/node_modules/path-scurry/node_modules/lru-cache/package.json +154 -0
  1000. package/node_modules/path-scurry/package.json +72 -0
  1001. package/node_modules/qs/.github/THREAT_MODEL.md +3 -3
  1002. package/node_modules/qs/CHANGELOG.md +15 -0
  1003. package/node_modules/qs/README.md +19 -1
  1004. package/node_modules/qs/dist/qs.js +21 -21
  1005. package/node_modules/qs/eslint.config.mjs +1 -1
  1006. package/node_modules/qs/lib/parse.js +3 -4
  1007. package/node_modules/qs/lib/stringify.js +23 -8
  1008. package/node_modules/qs/lib/utils.js +10 -3
  1009. package/node_modules/qs/package.json +4 -4
  1010. package/node_modules/run/README.md +109 -18
  1011. package/node_modules/run/THIRD_PARTY_NOTICES.md +11 -11
  1012. package/node_modules/run/dist/continuation-validation.js +116 -1
  1013. package/node_modules/run/dist/errors.js +12 -2
  1014. package/node_modules/run/dist/host-function-invocation.js +2 -1
  1015. package/node_modules/run/dist/run.js +30 -4
  1016. package/node_modules/run/dist/runtime/guest-serde-source.js +1 -1
  1017. package/node_modules/run/dist/runtime/guest-sources.js +214 -56
  1018. package/node_modules/run/dist/runtime/manager.js +575 -116
  1019. package/node_modules/run/dist/runtime/max-workers.js +8 -4
  1020. package/node_modules/run/dist/runtime/protocol-validation.js +20 -7
  1021. package/node_modules/run/dist/runtime/sync-bridge-protocol.js +135 -0
  1022. package/node_modules/run/dist/runtime/worker-source.js +1 -1
  1023. package/node_modules/run/dist/utils/options.js +7 -0
  1024. package/node_modules/run/dist/utils/promise-with-resolvers.js +13 -1
  1025. package/node_modules/run/dist/utils/serde.js +1 -7
  1026. package/node_modules/run/dist/utils/source-cache.js +83 -13
  1027. package/node_modules/run/package.json +6 -4
  1028. package/node_modules/systeminformation/LICENSE +20 -0
  1029. package/node_modules/systeminformation/README.md +1251 -0
  1030. package/node_modules/systeminformation/lib/audio.js +335 -0
  1031. package/node_modules/systeminformation/lib/battery.js +334 -0
  1032. package/node_modules/systeminformation/lib/bluetooth.js +315 -0
  1033. package/node_modules/systeminformation/lib/bluetoothVendors.js +1138 -0
  1034. package/node_modules/systeminformation/lib/cli.js +100 -0
  1035. package/node_modules/systeminformation/lib/cpu.js +2285 -0
  1036. package/node_modules/systeminformation/lib/docker.js +791 -0
  1037. package/node_modules/systeminformation/lib/dockerSocket.js +117 -0
  1038. package/node_modules/systeminformation/lib/filesystem.js +1853 -0
  1039. package/node_modules/systeminformation/lib/graphics.js +1317 -0
  1040. package/node_modules/systeminformation/lib/index.js +520 -0
  1041. package/node_modules/systeminformation/lib/internet.js +265 -0
  1042. package/node_modules/systeminformation/lib/memory.js +622 -0
  1043. package/node_modules/systeminformation/lib/network.js +2008 -0
  1044. package/node_modules/systeminformation/lib/osinfo.js +1290 -0
  1045. package/node_modules/systeminformation/lib/printer.js +209 -0
  1046. package/node_modules/systeminformation/lib/processes.js +1459 -0
  1047. package/node_modules/systeminformation/lib/system.js +855 -0
  1048. package/node_modules/systeminformation/lib/usb.js +309 -0
  1049. package/node_modules/systeminformation/lib/users.js +412 -0
  1050. package/node_modules/systeminformation/lib/util.js +2833 -0
  1051. package/node_modules/systeminformation/lib/virtualbox.js +116 -0
  1052. package/node_modules/systeminformation/lib/wifi.js +839 -0
  1053. package/node_modules/systeminformation/package.json +102 -0
  1054. package/node_modules/undici/docs/docs/api/Client.md +4 -0
  1055. package/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +3 -2
  1056. package/node_modules/undici/docs/docs/api/EventSource.md +4 -0
  1057. package/node_modules/undici/lib/cache/memory-cache-store.js +1 -1
  1058. package/node_modules/undici/lib/dispatcher/agent.js +7 -2
  1059. package/node_modules/undici/lib/dispatcher/balanced-pool.js +1 -1
  1060. package/node_modules/undici/lib/dispatcher/client-h1.js +12 -4
  1061. package/node_modules/undici/lib/dispatcher/client-h2.js +43 -3
  1062. package/node_modules/undici/lib/dispatcher/client.js +3 -2
  1063. package/node_modules/undici/lib/dispatcher/dispatcher-base.js +13 -1
  1064. package/node_modules/undici/lib/dispatcher/dispatcher.js +10 -0
  1065. package/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +10 -3
  1066. package/node_modules/undici/lib/dispatcher/proxy-agent.js +1 -1
  1067. package/node_modules/undici/lib/dispatcher/round-robin-pool.js +1 -1
  1068. package/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +3 -1
  1069. package/node_modules/undici/lib/handler/cache-handler.js +8 -0
  1070. package/node_modules/undici/lib/handler/decorator-handler.js +7 -1
  1071. package/node_modules/undici/lib/handler/deduplication-handler.js +12 -6
  1072. package/node_modules/undici/lib/handler/redirect-handler.js +8 -0
  1073. package/node_modules/undici/lib/handler/retry-handler.js +83 -11
  1074. package/node_modules/undici/lib/interceptor/dump.js +1 -1
  1075. package/node_modules/undici/lib/mock/mock-agent.js +13 -1
  1076. package/node_modules/undici/lib/mock/mock-utils.js +11 -10
  1077. package/node_modules/undici/lib/web/cookies/parse.js +4 -2
  1078. package/node_modules/undici/lib/web/eventsource/eventsource-stream.js +28 -1
  1079. package/node_modules/undici/lib/web/eventsource/eventsource.js +4 -1
  1080. package/node_modules/undici/lib/web/fetch/request.js +2 -3
  1081. package/node_modules/undici/package.json +3 -3
  1082. package/node_modules/zod/README.md +27 -0
  1083. package/node_modules/zod/compile.cjs +77 -0
  1084. package/node_modules/zod/compile.js +52 -0
  1085. package/node_modules/zod/index.cjs +2 -2
  1086. package/node_modules/zod/index.js +5 -2
  1087. package/node_modules/zod/package.json +13 -2
  1088. package/node_modules/zod/v3/ZodError.cjs +22 -12
  1089. package/node_modules/zod/v3/ZodError.js +22 -12
  1090. package/node_modules/zod/v3/types.cjs +7 -5
  1091. package/node_modules/zod/v3/types.js +7 -5
  1092. package/node_modules/zod/v4/classic/checks.cjs +2 -1
  1093. package/node_modules/zod/v4/classic/checks.js +1 -1
  1094. package/node_modules/zod/v4/classic/deep-partial.cjs +39 -0
  1095. package/node_modules/zod/v4/classic/deep-partial.js +13 -0
  1096. package/node_modules/zod/v4/classic/errors.cjs +43 -34
  1097. package/node_modules/zod/v4/classic/errors.js +43 -34
  1098. package/node_modules/zod/v4/classic/external.cjs +30 -27
  1099. package/node_modules/zod/v4/classic/external.js +5 -8
  1100. package/node_modules/zod/v4/classic/from-json-schema.cjs +136 -75
  1101. package/node_modules/zod/v4/classic/from-json-schema.js +136 -75
  1102. package/node_modules/zod/v4/classic/in-out.cjs +63 -0
  1103. package/node_modules/zod/v4/classic/in-out.js +36 -0
  1104. package/node_modules/zod/v4/classic/index.cjs +2 -2
  1105. package/node_modules/zod/v4/classic/index.js +2 -2
  1106. package/node_modules/zod/v4/classic/iso.cjs +11 -22
  1107. package/node_modules/zod/v4/classic/iso.js +2 -17
  1108. package/node_modules/zod/v4/classic/parse.cjs +4 -1
  1109. package/node_modules/zod/v4/classic/parse.js +1 -0
  1110. package/node_modules/zod/v4/classic/schemas.cjs +498 -398
  1111. package/node_modules/zod/v4/classic/schemas.js +492 -396
  1112. package/node_modules/zod/v4/core/api.cjs +23 -4
  1113. package/node_modules/zod/v4/core/api.js +21 -4
  1114. package/node_modules/zod/v4/core/checks.cjs +37 -31
  1115. package/node_modules/zod/v4/core/checks.js +37 -31
  1116. package/node_modules/zod/v4/core/compile.cjs +1813 -0
  1117. package/node_modules/zod/v4/core/compile.js +1783 -0
  1118. package/node_modules/zod/v4/core/core.cjs +81 -18
  1119. package/node_modules/zod/v4/core/core.js +82 -19
  1120. package/node_modules/zod/v4/core/doc.cjs +5 -7
  1121. package/node_modules/zod/v4/core/doc.js +5 -7
  1122. package/node_modules/zod/v4/core/errors.cjs +110 -25
  1123. package/node_modules/zod/v4/core/errors.js +110 -25
  1124. package/node_modules/zod/v4/core/index.cjs +5 -1
  1125. package/node_modules/zod/v4/core/index.js +3 -0
  1126. package/node_modules/zod/v4/core/json-schema-generator.cjs +4 -0
  1127. package/node_modules/zod/v4/core/json-schema-generator.js +4 -0
  1128. package/node_modules/zod/v4/core/json-schema-processors.cjs +264 -95
  1129. package/node_modules/zod/v4/core/json-schema-processors.js +243 -97
  1130. package/node_modules/zod/v4/core/memoizer.cjs +268 -0
  1131. package/node_modules/zod/v4/core/memoizer.js +261 -0
  1132. package/node_modules/zod/v4/core/parse.cjs +96 -34
  1133. package/node_modules/zod/v4/core/parse.js +94 -33
  1134. package/node_modules/zod/v4/core/regexes.cjs +27 -15
  1135. package/node_modules/zod/v4/core/regexes.js +24 -13
  1136. package/node_modules/zod/v4/core/registries.js +2 -2
  1137. package/node_modules/zod/v4/core/schemas.cjs +537 -326
  1138. package/node_modules/zod/v4/core/schemas.js +526 -325
  1139. package/node_modules/zod/v4/core/to-json-schema.cjs +242 -39
  1140. package/node_modules/zod/v4/core/to-json-schema.js +241 -39
  1141. package/node_modules/zod/v4/core/util.cjs +212 -31
  1142. package/node_modules/zod/v4/core/util.js +202 -30
  1143. package/node_modules/zod/v4/core/versions.cjs +2 -2
  1144. package/node_modules/zod/v4/core/versions.js +2 -2
  1145. package/node_modules/zod/v4/core/visit.cjs +195 -0
  1146. package/node_modules/zod/v4/core/visit.js +169 -0
  1147. package/node_modules/zod/v4/index.cjs +15 -5
  1148. package/node_modules/zod/v4/index.js +3 -2
  1149. package/node_modules/zod/v4/locales/ar.cjs +3 -0
  1150. package/node_modules/zod/v4/locales/ar.js +3 -0
  1151. package/node_modules/zod/v4/locales/az.cjs +3 -0
  1152. package/node_modules/zod/v4/locales/az.js +3 -0
  1153. package/node_modules/zod/v4/locales/be.cjs +10 -0
  1154. package/node_modules/zod/v4/locales/be.js +10 -0
  1155. package/node_modules/zod/v4/locales/bg.cjs +3 -0
  1156. package/node_modules/zod/v4/locales/bg.js +3 -0
  1157. package/node_modules/zod/v4/locales/bn.cjs +138 -0
  1158. package/node_modules/zod/v4/locales/bn.js +111 -0
  1159. package/node_modules/zod/v4/locales/ca.cjs +3 -0
  1160. package/node_modules/zod/v4/locales/ca.js +3 -0
  1161. package/node_modules/zod/v4/locales/ckb.cjs +158 -0
  1162. package/node_modules/zod/v4/locales/ckb.js +131 -0
  1163. package/node_modules/zod/v4/locales/cs.cjs +3 -0
  1164. package/node_modules/zod/v4/locales/cs.js +3 -0
  1165. package/node_modules/zod/v4/locales/da.cjs +5 -2
  1166. package/node_modules/zod/v4/locales/da.js +5 -2
  1167. package/node_modules/zod/v4/locales/de.cjs +3 -0
  1168. package/node_modules/zod/v4/locales/de.js +3 -0
  1169. package/node_modules/zod/v4/locales/el.cjs +1 -0
  1170. package/node_modules/zod/v4/locales/el.js +1 -0
  1171. package/node_modules/zod/v4/locales/en.cjs +14 -4
  1172. package/node_modules/zod/v4/locales/en.js +14 -4
  1173. package/node_modules/zod/v4/locales/eo.cjs +3 -0
  1174. package/node_modules/zod/v4/locales/eo.js +3 -0
  1175. package/node_modules/zod/v4/locales/es.cjs +2 -0
  1176. package/node_modules/zod/v4/locales/es.js +2 -0
  1177. package/node_modules/zod/v4/locales/fa.cjs +3 -0
  1178. package/node_modules/zod/v4/locales/fa.js +3 -0
  1179. package/node_modules/zod/v4/locales/fi.cjs +3 -0
  1180. package/node_modules/zod/v4/locales/fi.js +3 -0
  1181. package/node_modules/zod/v4/locales/fr-CA.cjs +3 -0
  1182. package/node_modules/zod/v4/locales/fr-CA.js +3 -0
  1183. package/node_modules/zod/v4/locales/fr.cjs +16 -14
  1184. package/node_modules/zod/v4/locales/fr.js +16 -14
  1185. package/node_modules/zod/v4/locales/gu.cjs +138 -0
  1186. package/node_modules/zod/v4/locales/gu.js +111 -0
  1187. package/node_modules/zod/v4/locales/he.cjs +5 -0
  1188. package/node_modules/zod/v4/locales/he.js +5 -0
  1189. package/node_modules/zod/v4/locales/hi.cjs +136 -0
  1190. package/node_modules/zod/v4/locales/hi.js +109 -0
  1191. package/node_modules/zod/v4/locales/hr.cjs +2 -0
  1192. package/node_modules/zod/v4/locales/hr.js +2 -0
  1193. package/node_modules/zod/v4/locales/hu.cjs +3 -0
  1194. package/node_modules/zod/v4/locales/hu.js +3 -0
  1195. package/node_modules/zod/v4/locales/hy.cjs +9 -0
  1196. package/node_modules/zod/v4/locales/hy.js +9 -0
  1197. package/node_modules/zod/v4/locales/id.cjs +3 -0
  1198. package/node_modules/zod/v4/locales/id.js +3 -0
  1199. package/node_modules/zod/v4/locales/index.cjs +22 -2
  1200. package/node_modules/zod/v4/locales/index.js +10 -0
  1201. package/node_modules/zod/v4/locales/is.cjs +3 -0
  1202. package/node_modules/zod/v4/locales/is.js +3 -0
  1203. package/node_modules/zod/v4/locales/it.cjs +3 -0
  1204. package/node_modules/zod/v4/locales/it.js +3 -0
  1205. package/node_modules/zod/v4/locales/ja.cjs +3 -0
  1206. package/node_modules/zod/v4/locales/ja.js +3 -0
  1207. package/node_modules/zod/v4/locales/ka.cjs +3 -0
  1208. package/node_modules/zod/v4/locales/ka.js +3 -0
  1209. package/node_modules/zod/v4/locales/km.cjs +3 -0
  1210. package/node_modules/zod/v4/locales/km.js +3 -0
  1211. package/node_modules/zod/v4/locales/kn.cjs +141 -0
  1212. package/node_modules/zod/v4/locales/kn.js +114 -0
  1213. package/node_modules/zod/v4/locales/ko.cjs +3 -0
  1214. package/node_modules/zod/v4/locales/ko.js +3 -0
  1215. package/node_modules/zod/v4/locales/lt.cjs +2 -0
  1216. package/node_modules/zod/v4/locales/lt.js +2 -0
  1217. package/node_modules/zod/v4/locales/mk.cjs +3 -0
  1218. package/node_modules/zod/v4/locales/mk.js +3 -0
  1219. package/node_modules/zod/v4/locales/ms.cjs +3 -0
  1220. package/node_modules/zod/v4/locales/ms.js +3 -0
  1221. package/node_modules/zod/v4/locales/ne.cjs +136 -0
  1222. package/node_modules/zod/v4/locales/ne.js +109 -0
  1223. package/node_modules/zod/v4/locales/nl.cjs +3 -0
  1224. package/node_modules/zod/v4/locales/nl.js +3 -0
  1225. package/node_modules/zod/v4/locales/nn.cjs +138 -0
  1226. package/node_modules/zod/v4/locales/nn.js +111 -0
  1227. package/node_modules/zod/v4/locales/no.cjs +5 -2
  1228. package/node_modules/zod/v4/locales/no.js +5 -2
  1229. package/node_modules/zod/v4/locales/ota.cjs +3 -0
  1230. package/node_modules/zod/v4/locales/ota.js +3 -0
  1231. package/node_modules/zod/v4/locales/pl.cjs +3 -0
  1232. package/node_modules/zod/v4/locales/pl.js +3 -0
  1233. package/node_modules/zod/v4/locales/ps.cjs +3 -0
  1234. package/node_modules/zod/v4/locales/ps.js +3 -0
  1235. package/node_modules/zod/v4/locales/pt-BR.cjs +168 -0
  1236. package/node_modules/zod/v4/locales/pt-BR.js +141 -0
  1237. package/node_modules/zod/v4/locales/pt.cjs +87 -55
  1238. package/node_modules/zod/v4/locales/pt.js +87 -55
  1239. package/node_modules/zod/v4/locales/ro.cjs +1 -0
  1240. package/node_modules/zod/v4/locales/ro.js +1 -0
  1241. package/node_modules/zod/v4/locales/ru.cjs +10 -0
  1242. package/node_modules/zod/v4/locales/ru.js +10 -0
  1243. package/node_modules/zod/v4/locales/sk.cjs +141 -0
  1244. package/node_modules/zod/v4/locales/sk.js +114 -0
  1245. package/node_modules/zod/v4/locales/sl.cjs +3 -0
  1246. package/node_modules/zod/v4/locales/sl.js +3 -0
  1247. package/node_modules/zod/v4/locales/sv.cjs +5 -2
  1248. package/node_modules/zod/v4/locales/sv.js +5 -2
  1249. package/node_modules/zod/v4/locales/ta.cjs +3 -0
  1250. package/node_modules/zod/v4/locales/ta.js +3 -0
  1251. package/node_modules/zod/v4/locales/th.cjs +3 -0
  1252. package/node_modules/zod/v4/locales/th.js +3 -0
  1253. package/node_modules/zod/v4/locales/tk.cjs +132 -0
  1254. package/node_modules/zod/v4/locales/tk.js +105 -0
  1255. package/node_modules/zod/v4/locales/tr.cjs +3 -0
  1256. package/node_modules/zod/v4/locales/tr.js +3 -0
  1257. package/node_modules/zod/v4/locales/uk.cjs +3 -0
  1258. package/node_modules/zod/v4/locales/uk.js +3 -0
  1259. package/node_modules/zod/v4/locales/ur.cjs +3 -0
  1260. package/node_modules/zod/v4/locales/ur.js +3 -0
  1261. package/node_modules/zod/v4/locales/uz.cjs +1 -0
  1262. package/node_modules/zod/v4/locales/uz.js +1 -0
  1263. package/node_modules/zod/v4/locales/vi.cjs +3 -0
  1264. package/node_modules/zod/v4/locales/vi.js +3 -0
  1265. package/node_modules/zod/v4/locales/yo.cjs +3 -0
  1266. package/node_modules/zod/v4/locales/yo.js +3 -0
  1267. package/node_modules/zod/v4/locales/zh-CN.cjs +3 -0
  1268. package/node_modules/zod/v4/locales/zh-CN.js +3 -0
  1269. package/node_modules/zod/v4/locales/zh-TW.cjs +3 -0
  1270. package/node_modules/zod/v4/locales/zh-TW.js +3 -0
  1271. package/node_modules/zod/v4/mini/checks.cjs +2 -1
  1272. package/node_modules/zod/v4/mini/checks.js +1 -1
  1273. package/node_modules/zod/v4/mini/deep-partial.cjs +39 -0
  1274. package/node_modules/zod/v4/mini/deep-partial.js +13 -0
  1275. package/node_modules/zod/v4/mini/external.cjs +12 -1
  1276. package/node_modules/zod/v4/mini/external.js +3 -1
  1277. package/node_modules/zod/v4/mini/in-out.cjs +63 -0
  1278. package/node_modules/zod/v4/mini/in-out.js +36 -0
  1279. package/node_modules/zod/v4/mini/parse.cjs +3 -1
  1280. package/node_modules/zod/v4/mini/parse.js +1 -1
  1281. package/node_modules/zod/v4/mini/schemas.cjs +75 -47
  1282. package/node_modules/zod/v4/mini/schemas.js +71 -45
  1283. package/package.json +3 -4
  1284. package/node_modules/@ai-sdk/code-mode/dist/run-code-mode.js +0 -549
  1285. package/node_modules/@ai-sdk/code-mode/package.json +0 -78
  1286. package/node_modules/@ai-sdk/gateway/CHANGELOG.md +0 -3067
  1287. package/node_modules/@ai-sdk/gateway/dist/index.js +0 -3208
  1288. package/node_modules/@ai-sdk/gateway/docs/00-ai-gateway.mdx +0 -1297
  1289. package/node_modules/@ai-sdk/gateway/package.json +0 -80
  1290. package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider-utils/CHANGELOG.md +0 -2444
  1291. package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider-utils/README.md +0 -1
  1292. package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider-utils/dist/index.js +0 -4295
  1293. package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider-utils/package.json +0 -82
  1294. package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider-utils/src/to-json-schema/zod3-to-json-schema/LICENSE +0 -16
  1295. package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider-utils/src/to-json-schema/zod3-to-json-schema/README.md +0 -24
  1296. package/node_modules/@ai-sdk/open-responses/node_modules/undici/LICENSE +0 -21
  1297. package/node_modules/@ai-sdk/open-responses/node_modules/undici/README.md +0 -741
  1298. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Agent.md +0 -84
  1299. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/BalancedPool.md +0 -99
  1300. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/CacheStorage.md +0 -30
  1301. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/CacheStore.md +0 -164
  1302. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Client.md +0 -288
  1303. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/ClientStats.md +0 -27
  1304. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Connector.md +0 -115
  1305. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/ContentType.md +0 -57
  1306. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Cookies.md +0 -128
  1307. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Debug.md +0 -62
  1308. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +0 -315
  1309. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Dispatcher.md +0 -1392
  1310. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +0 -159
  1311. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Errors.md +0 -49
  1312. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/EventSource.md +0 -45
  1313. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Fetch.md +0 -60
  1314. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/GlobalInstallation.md +0 -139
  1315. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/H2CClient.md +0 -263
  1316. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/MockAgent.md +0 -603
  1317. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/MockCallHistory.md +0 -197
  1318. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/MockCallHistoryLog.md +0 -43
  1319. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/MockClient.md +0 -81
  1320. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/MockErrors.md +0 -12
  1321. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/MockPool.md +0 -555
  1322. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Pool.md +0 -84
  1323. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/PoolStats.md +0 -35
  1324. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/ProxyAgent.md +0 -229
  1325. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/RedirectHandler.md +0 -93
  1326. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/RetryAgent.md +0 -50
  1327. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/RetryHandler.md +0 -118
  1328. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/RoundRobinPool.md +0 -145
  1329. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/SnapshotAgent.md +0 -616
  1330. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +0 -275
  1331. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Util.md +0 -25
  1332. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/WebSocket.md +0 -141
  1333. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/api-lifecycle.md +0 -91
  1334. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/best-practices/client-certificate.md +0 -64
  1335. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/best-practices/crawling.md +0 -58
  1336. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/best-practices/mocking-request.md +0 -190
  1337. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/best-practices/proxy.md +0 -127
  1338. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/best-practices/undici-vs-builtin-fetch.md +0 -224
  1339. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/best-practices/writing-tests.md +0 -63
  1340. package/node_modules/@ai-sdk/open-responses/node_modules/undici/index-fetch.js +0 -65
  1341. package/node_modules/@ai-sdk/open-responses/node_modules/undici/index.js +0 -234
  1342. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/abort-signal.js +0 -59
  1343. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/api-connect.js +0 -110
  1344. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/api-pipeline.js +0 -252
  1345. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/api-request.js +0 -214
  1346. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/api-stream.js +0 -209
  1347. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/api-upgrade.js +0 -111
  1348. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/index.js +0 -7
  1349. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/readable.js +0 -580
  1350. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/cache/memory-cache-store.js +0 -279
  1351. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/cache/sqlite-cache-store.js +0 -467
  1352. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/connect.js +0 -153
  1353. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/constants.js +0 -143
  1354. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/diagnostics.js +0 -227
  1355. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/errors.js +0 -477
  1356. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/request.js +0 -464
  1357. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/socks5-client.js +0 -422
  1358. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/socks5-utils.js +0 -212
  1359. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/symbols.js +0 -75
  1360. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/tree.js +0 -160
  1361. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/util.js +0 -992
  1362. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/agent.js +0 -158
  1363. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/balanced-pool.js +0 -219
  1364. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/client-h1.js +0 -1731
  1365. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/client-h2.js +0 -995
  1366. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/client.js +0 -664
  1367. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/dispatcher-base.js +0 -184
  1368. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/dispatcher.js +0 -48
  1369. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +0 -146
  1370. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/fixed-queue.js +0 -135
  1371. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/h2c-client.js +0 -51
  1372. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/pool-base.js +0 -214
  1373. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/pool.js +0 -118
  1374. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/proxy-agent.js +0 -319
  1375. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/retry-agent.js +0 -35
  1376. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/round-robin-pool.js +0 -137
  1377. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +0 -260
  1378. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/encoding/index.js +0 -33
  1379. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/global.js +0 -59
  1380. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/cache-handler.js +0 -760
  1381. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/cache-revalidation-handler.js +0 -124
  1382. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/decorator-handler.js +0 -67
  1383. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/deduplication-handler.js +0 -460
  1384. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/redirect-handler.js +0 -238
  1385. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/retry-handler.js +0 -418
  1386. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/unwrap-handler.js +0 -106
  1387. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/wrap-handler.js +0 -105
  1388. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/cache.js +0 -602
  1389. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/decompress.js +0 -259
  1390. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/deduplicate.js +0 -117
  1391. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/dns.js +0 -571
  1392. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/dump.js +0 -112
  1393. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/redirect.js +0 -21
  1394. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/response-error.js +0 -95
  1395. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/retry.js +0 -19
  1396. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/llhttp/.gitkeep +0 -0
  1397. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/llhttp/constants.js +0 -531
  1398. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/llhttp/llhttp-wasm.js +0 -15
  1399. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +0 -15
  1400. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/llhttp/utils.js +0 -12
  1401. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-agent.js +0 -232
  1402. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-call-history.js +0 -248
  1403. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-client.js +0 -68
  1404. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-errors.js +0 -29
  1405. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-interceptor.js +0 -209
  1406. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-pool.js +0 -68
  1407. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-symbols.js +0 -32
  1408. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-utils.js +0 -486
  1409. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/pending-interceptors-formatter.js +0 -43
  1410. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/snapshot-agent.js +0 -353
  1411. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/snapshot-recorder.js +0 -588
  1412. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/snapshot-utils.js +0 -158
  1413. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/util/cache.js +0 -676
  1414. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/util/date.js +0 -670
  1415. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/util/promise.js +0 -28
  1416. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/util/runtime-features.js +0 -124
  1417. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/util/stats.js +0 -32
  1418. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/util/timers.js +0 -425
  1419. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/cache/cache.js +0 -864
  1420. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/cache/cachestorage.js +0 -152
  1421. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/cache/util.js +0 -45
  1422. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/cookies/constants.js +0 -12
  1423. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/cookies/index.js +0 -199
  1424. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/cookies/parse.js +0 -314
  1425. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/cookies/util.js +0 -352
  1426. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/eventsource/eventsource-stream.js +0 -399
  1427. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/eventsource/eventsource.js +0 -501
  1428. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/eventsource/util.js +0 -29
  1429. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/LICENSE +0 -21
  1430. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/body.js +0 -509
  1431. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/constants.js +0 -131
  1432. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/data-url.js +0 -596
  1433. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/formdata-parser.js +0 -586
  1434. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/formdata.js +0 -259
  1435. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/global.js +0 -40
  1436. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/headers.js +0 -719
  1437. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/index.js +0 -2413
  1438. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/request.js +0 -1115
  1439. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/response.js +0 -641
  1440. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/util.js +0 -1522
  1441. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/infra/index.js +0 -229
  1442. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/subresource-integrity/Readme.md +0 -9
  1443. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +0 -307
  1444. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/webidl/index.js +0 -1006
  1445. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/connection.js +0 -329
  1446. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/constants.js +0 -126
  1447. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/events.js +0 -331
  1448. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/frame.js +0 -133
  1449. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/permessage-deflate.js +0 -100
  1450. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/receiver.js +0 -507
  1451. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/sender.js +0 -109
  1452. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/stream/websocketerror.js +0 -104
  1453. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/stream/websocketstream.js +0 -498
  1454. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/util.js +0 -347
  1455. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/websocket.js +0 -758
  1456. package/node_modules/@ai-sdk/open-responses/node_modules/undici/package.json +0 -152
  1457. package/node_modules/@ai-sdk/open-responses/node_modules/undici/scripts/strip-comments.js +0 -10
  1458. package/node_modules/@ai-sdk/open-responses/node_modules/undici/types/README.md +0 -6
  1459. package/node_modules/@ai-sdk/provider/CHANGELOG.md +0 -1218
  1460. package/node_modules/@ai-sdk/provider/package.json +0 -63
  1461. package/node_modules/@formatjs/icu-messageformat-parser/index.js +0 -2173
  1462. package/node_modules/@formatjs/icu-messageformat-parser/manipulator.js +0 -207
  1463. package/node_modules/@formatjs/icu-messageformat-parser/no-parser.js +0 -160
  1464. package/node_modules/@formatjs/icu-messageformat-parser/package.json +0 -21
  1465. package/node_modules/@formatjs/icu-messageformat-parser/printer.js +0 -224
  1466. package/node_modules/@maka/core/dist/task-ledger.js +0 -797
  1467. package/node_modules/@maka/runtime/dist/active-tool-result-prune.js +0 -334
  1468. package/node_modules/@maka/runtime/dist/active-tool-result-working-set.js +0 -218
  1469. package/node_modules/@maka/runtime/dist/archive-read-tool.js +0 -92
  1470. package/node_modules/@maka/runtime/dist/sandbox/diagnostics.js +0 -285
  1471. package/node_modules/@maka/runtime/dist/system-prompt/sandbox-context-prompt.js +0 -77
  1472. package/node_modules/@maka/runtime/dist/system-prompt/session-environment-prompt.js +0 -47
  1473. package/node_modules/@maka/runtime/dist/task-ledger-tools.js +0 -244
  1474. package/node_modules/@maka/runtime/dist/test-helpers.js +0 -61
  1475. package/node_modules/@maka/runtime/node_modules/@slack/types/dist/events/index.js +0 -43
  1476. package/node_modules/@maka/runtime/node_modules/@slack/types/package.json +0 -47
  1477. package/node_modules/@maka/runtime/node_modules/@slack/web-api/README.md +0 -390
  1478. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/methods.js +0 -1610
  1479. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/ChatAppendStreamResponse.js +0 -3
  1480. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/ChatStartStreamResponse.js +0 -3
  1481. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/ChatStopStreamResponse.js +0 -3
  1482. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/PinsListResponse.js +0 -37
  1483. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SearchAllResponse.js +0 -82
  1484. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SearchFilesResponse.js +0 -63
  1485. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsAccessDeleteResponse.js +0 -3
  1486. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsAccessSetResponse.js +0 -3
  1487. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsCreateResponse.js +0 -3
  1488. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsDownloadGetResponse.js +0 -3
  1489. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsDownloadStartResponse.js +0 -3
  1490. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsItemsCreateResponse.js +0 -3
  1491. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsItemsDeleteMultipleResponse.js +0 -3
  1492. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsItemsDeleteResponse.js +0 -3
  1493. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsItemsInfoResponse.js +0 -3
  1494. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsItemsListResponse.js +0 -3
  1495. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsItemsUpdateResponse.js +0 -3
  1496. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsUpdateResponse.js +0 -3
  1497. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedAddResponse.js +0 -3
  1498. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedListResponse.js +0 -3
  1499. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedRemoveResponse.js +0 -3
  1500. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedSetResponse.js +0 -3
  1501. package/node_modules/@maka/runtime/node_modules/@slack/web-api/package.json +0 -71
  1502. package/node_modules/@maka/runtime-host/dist/protocol/task-ledger.js +0 -321
  1503. package/node_modules/@maka/runtime-host/dist/server/task-ledger-coordinator.js +0 -154
  1504. package/node_modules/@maka/storage/dist/artifact-metadata-repository.js +0 -19
  1505. package/node_modules/@maka/storage/dist/artifact-storage-layout.js +0 -26
  1506. package/node_modules/@maka/storage/dist/provider-request-capture-artifact.js +0 -31
  1507. package/node_modules/@maka/storage/dist/task-ledger-authority.js +0 -121
  1508. package/node_modules/@maka/storage/dist/task-ledger-store-internal.js +0 -32
  1509. package/node_modules/@maka/storage/dist/task-ledger-store.js +0 -663
  1510. package/node_modules/ai/CHANGELOG.md +0 -9971
  1511. package/node_modules/ai/dist/index.js +0 -18513
  1512. package/node_modules/ai/dist/internal/index.js +0 -3680
  1513. package/node_modules/ai/docs/02-foundations/02-providers-and-models.mdx +0 -179
  1514. package/node_modules/ai/docs/03-agents/04-loop-control.mdx +0 -515
  1515. package/node_modules/ai/docs/03-agents/06-policy-tool-approvals.mdx +0 -412
  1516. package/node_modules/ai/docs/03-agents/06-tool-approvals.mdx +0 -326
  1517. package/node_modules/ai/docs/03-agents/07-workflow-agent.mdx +0 -718
  1518. package/node_modules/ai/docs/03-ai-sdk-core/10-generating-structured-data.mdx +0 -513
  1519. package/node_modules/ai/docs/03-ai-sdk-core/15-tools-and-tool-calling.mdx +0 -1509
  1520. package/node_modules/ai/docs/03-ai-sdk-core/16-mcp-tools.mdx +0 -617
  1521. package/node_modules/ai/docs/03-ai-sdk-core/35-image-generation.mdx +0 -344
  1522. package/node_modules/ai/docs/03-ai-sdk-core/36-transcription.mdx +0 -332
  1523. package/node_modules/ai/docs/03-ai-sdk-core/37-speech.mdx +0 -180
  1524. package/node_modules/ai/docs/03-ai-sdk-core/39-file-uploads.mdx +0 -155
  1525. package/node_modules/ai/docs/03-ai-sdk-core/50-error-handling.mdx +0 -149
  1526. package/node_modules/ai/docs/03-ai-sdk-core/60-telemetry.mdx +0 -830
  1527. package/node_modules/ai/docs/03-ai-sdk-core/index.mdx +0 -132
  1528. package/node_modules/ai/docs/03-ai-sdk-harnesses/02-harness-agent.mdx +0 -495
  1529. package/node_modules/ai/docs/03-ai-sdk-harnesses/04-skills.mdx +0 -65
  1530. package/node_modules/ai/docs/03-ai-sdk-harnesses/05-harness-adapters.mdx +0 -45
  1531. package/node_modules/ai/docs/04-ai-sdk-ui/03-chatbot-tool-usage.mdx +0 -798
  1532. package/node_modules/ai/docs/04-ai-sdk-ui/20-streaming-data.mdx +0 -401
  1533. package/node_modules/ai/docs/04-ai-sdk-ui/21-transport.mdx +0 -212
  1534. package/node_modules/ai/docs/04-ai-sdk-ui/50-stream-protocol.mdx +0 -578
  1535. package/node_modules/ai/docs/06-advanced/04-caching.mdx +0 -175
  1536. package/node_modules/ai/docs/06-advanced/11-secure-url-fetching.mdx +0 -111
  1537. package/node_modules/ai/docs/07-reference/01-ai-sdk-core/01-generate-text.mdx +0 -3253
  1538. package/node_modules/ai/docs/07-reference/01-ai-sdk-core/02-stream-text.mdx +0 -4261
  1539. package/node_modules/ai/docs/07-reference/01-ai-sdk-core/05-embed.mdx +0 -304
  1540. package/node_modules/ai/docs/07-reference/01-ai-sdk-core/06-embed-many.mdx +0 -302
  1541. package/node_modules/ai/docs/07-reference/01-ai-sdk-core/06-rerank.mdx +0 -317
  1542. package/node_modules/ai/docs/07-reference/01-ai-sdk-core/10-generate-image.mdx +0 -252
  1543. package/node_modules/ai/docs/07-reference/01-ai-sdk-core/14-upload-file.mdx +0 -92
  1544. package/node_modules/ai/docs/07-reference/01-ai-sdk-core/16-tool-loop-agent.mdx +0 -1102
  1545. package/node_modules/ai/docs/07-reference/01-ai-sdk-core/28-output.mdx +0 -342
  1546. package/node_modules/ai/docs/07-reference/01-ai-sdk-core/31-ui-message.mdx +0 -268
  1547. package/node_modules/ai/docs/07-reference/01-ai-sdk-core/80-smooth-stream.mdx +0 -145
  1548. package/node_modules/ai/docs/07-reference/01-ai-sdk-core/index.mdx +0 -225
  1549. package/node_modules/ai/docs/07-reference/02-ai-sdk-ui/01-use-chat.mdx +0 -493
  1550. package/node_modules/ai/docs/07-reference/02-ai-sdk-ui/31-convert-to-model-messages.mdx +0 -256
  1551. package/node_modules/ai/docs/07-reference/02-ai-sdk-ui/40-create-ui-message-stream.mdx +0 -166
  1552. package/node_modules/ai/docs/07-reference/02-ai-sdk-ui/41-create-ui-message-stream-response.mdx +0 -120
  1553. package/node_modules/ai/docs/07-reference/04-ai-sdk-workflow/01-workflow-agent.mdx +0 -954
  1554. package/node_modules/ai/docs/07-reference/04-ai-sdk-workflow/02-workflow-chat-transport.mdx +0 -347
  1555. package/node_modules/ai/docs/07-reference/04-ai-sdk-workflow/index.mdx +0 -26
  1556. package/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-invalid-argument-error.mdx +0 -26
  1557. package/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-no-image-generated-error.mdx +0 -36
  1558. package/node_modules/ai/docs/07-reference/05-ai-sdk-errors/index.mdx +0 -41
  1559. package/node_modules/ai/package.json +0 -117
  1560. package/node_modules/intl-messageformat/intl-messageformat.iife.js +0 -2807
  1561. package/node_modules/intl-messageformat/package.json +0 -40
  1562. package/packages/eval/dist/attempt-store.js +0 -138
  1563. package/packages/eval/dist/cli.js +0 -119
  1564. package/packages/eval/dist/experiment-directory.js +0 -59
  1565. package/packages/eval/dist/experiment.js +0 -49
  1566. package/packages/eval/dist/external-subject.js +0 -488
  1567. package/packages/eval/dist/harbor-external-subject.js +0 -929
  1568. package/packages/eval/dist/harbor-maka-subject.js +0 -83
  1569. package/packages/eval/dist/harness-environment.js +0 -80
  1570. package/packages/eval/dist/harness-executor.js +0 -1013
  1571. package/packages/eval/dist/index.js +0 -28
  1572. package/packages/eval/dist/install-preflight.js +0 -201
  1573. package/packages/eval/dist/maka-artifacts.js +0 -126
  1574. package/packages/eval/dist/maka-runtime-policy.js +0 -42
  1575. package/packages/eval/dist/maka-subject.js +0 -268
  1576. package/packages/eval/dist/metering-checkpoint.js +0 -80
  1577. package/packages/eval/dist/provider-admission.js +0 -39
  1578. package/packages/eval/dist/provider-metering.js +0 -67
  1579. package/packages/eval/dist/provider-web-tool-surface.js +0 -74
  1580. package/packages/eval/dist/relay-result-frame.js +0 -38
  1581. package/packages/eval/dist/result.js +0 -94
  1582. package/packages/eval/dist/runner.js +0 -290
  1583. package/packages/eval/dist/spec.js +0 -135
  1584. package/packages/eval/dist/toolchain-verification.js +0 -130
  1585. package/packages/eval/harbor/deepseek-codex-models.json +0 -69
  1586. package/packages/eval/harbor/deepseek-harness-profile/cordis.patch.yml +0 -140
  1587. package/packages/eval/harbor/deepseek-harness-profile/cordis.yml +0 -18
  1588. package/packages/eval/harbor/deepseek-harness-profile/package.json +0 -10
  1589. package/packages/eval/harbor/docker-compose-egress-proxy.yaml +0 -57
  1590. package/packages/eval/harbor/egress-proxy/Dockerfile +0 -25
  1591. package/packages/eval/harbor/egress-proxy/entrypoint.sh +0 -62
  1592. package/packages/eval/harbor/egress-proxy/network-policy +0 -148
  1593. package/packages/eval/harbor/egress_filter.py +0 -435
  1594. package/packages/eval/harbor/eval_framework.py +0 -40
  1595. package/packages/eval/harbor/relay_agent.py +0 -686
  1596. package/packages/eval/harbor/run_trial.py +0 -223
  1597. package/packages/eval/package.json +0 -20
  1598. /package/node_modules/@ai-sdk/{code-mode → anthropic/node_modules/@ai-sdk/provider}/LICENSE +0 -0
  1599. /package/node_modules/@ai-sdk/{provider → anthropic/node_modules/@ai-sdk/provider}/README.md +0 -0
  1600. /package/node_modules/@ai-sdk/{provider → anthropic/node_modules/@ai-sdk/provider}/dist/index.js +0 -0
  1601. /package/node_modules/@ai-sdk/{gateway → cohere/node_modules/@ai-sdk/provider}/LICENSE +0 -0
  1602. /package/node_modules/@ai-sdk/{provider → google/node_modules/@ai-sdk/provider}/LICENSE +0 -0
  1603. /package/node_modules/{ai → @ai-sdk/openai-compatible/node_modules/@ai-sdk/provider}/LICENSE +0 -0
  1604. /package/node_modules/{@formatjs → @maka/core/node_modules/@formatjs}/icu-messageformat-parser/LICENSE.md +0 -0
  1605. /package/node_modules/{@formatjs → @maka/core/node_modules/@formatjs}/icu-messageformat-parser/README.md +0 -0
  1606. /package/node_modules/{intl-messageformat → @maka/core/node_modules/intl-messageformat}/LICENSE.md +0 -0
  1607. /package/node_modules/{intl-messageformat → @maka/core/node_modules/intl-messageformat}/README.md +0 -0
  1608. /package/node_modules/{intl-messageformat → @maka/core/node_modules/intl-messageformat}/index.js +0 -0
  1609. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/README.md +0 -0
  1610. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/approval-continuation.js +0 -0
  1611. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/approval.js +0 -0
  1612. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/code-mode-tool.js +0 -0
  1613. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/continuation-capability.js +0 -0
  1614. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/direct-tool-call.js +0 -0
  1615. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/errors.js +0 -0
  1616. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/host-interrupt.js +0 -0
  1617. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/index.js +0 -0
  1618. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/interrupt-continuation.js +0 -0
  1619. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/tool-invocation.js +0 -0
  1620. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/tool-prompt.js +0 -0
  1621. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/types.js +0 -0
  1622. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/utils/serialization.js +0 -0
  1623. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/src/tsconfig.json +0 -0
  1624. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/gateway/README.md +0 -0
  1625. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/README.md +0 -0
  1626. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/00-introduction/index.mdx +0 -0
  1627. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-foundations/01-overview.mdx +0 -0
  1628. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-foundations/03-prompts.mdx +0 -0
  1629. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-foundations/04-tools.mdx +0 -0
  1630. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-foundations/05-streaming.mdx +0 -0
  1631. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-foundations/06-provider-options.mdx +0 -0
  1632. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-foundations/index.mdx +0 -0
  1633. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/00-choosing-a-provider.mdx +0 -0
  1634. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/01-navigating-the-library.mdx +0 -0
  1635. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/02-nextjs-app-router.mdx +0 -0
  1636. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/03-nextjs-pages-router.mdx +0 -0
  1637. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/04-svelte.mdx +0 -0
  1638. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/05-nuxt.mdx +0 -0
  1639. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/06-nodejs.mdx +0 -0
  1640. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/07-expo.mdx +0 -0
  1641. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/08-tanstack-start.mdx +0 -0
  1642. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/09-coding-agents.mdx +0 -0
  1643. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/index.mdx +0 -0
  1644. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-agents/01-overview.mdx +0 -0
  1645. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-agents/02-building-agents.mdx +0 -0
  1646. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-agents/03-workflows.mdx +0 -0
  1647. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-agents/05-configuring-call-options.mdx +0 -0
  1648. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-agents/06-memory.mdx +0 -0
  1649. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-agents/06-subagents.mdx +0 -0
  1650. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-agents/08-terminal-ui.mdx +0 -0
  1651. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-agents/index.mdx +0 -0
  1652. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/01-overview.mdx +0 -0
  1653. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/05-generating-text.mdx +0 -0
  1654. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/17-mcp-apps.mdx +0 -0
  1655. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/17-runtime-and-tool-context.mdx +0 -0
  1656. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/18-code-mode.mdx +0 -0
  1657. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/20-prompt-engineering.mdx +0 -0
  1658. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/25-settings.mdx +0 -0
  1659. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/26-reasoning.mdx +0 -0
  1660. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/30-embeddings.mdx +0 -0
  1661. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/31-reranking.mdx +0 -0
  1662. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/36-realtime.mdx +0 -0
  1663. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/36-translation.mdx +0 -0
  1664. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/38-video-generation.mdx +0 -0
  1665. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/40-middleware.mdx +0 -0
  1666. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/41-skill-uploads.mdx +0 -0
  1667. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/45-provider-management.mdx +0 -0
  1668. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/55-testing.mdx +0 -0
  1669. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/65-devtools.mdx +0 -0
  1670. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/65-lifecycle-callbacks.mdx +0 -0
  1671. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-harnesses/01-overview.mdx +0 -0
  1672. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-harnesses/03-tools.mdx +0 -0
  1673. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-harnesses/06-workflow-utilities.mdx +0 -0
  1674. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-harnesses/07-ui.mdx +0 -0
  1675. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-harnesses/08-terminal-ui.mdx +0 -0
  1676. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-harnesses/index.mdx +0 -0
  1677. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/01-overview.mdx +0 -0
  1678. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/02-chatbot.mdx +0 -0
  1679. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/03-chatbot-message-persistence.mdx +0 -0
  1680. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/03-chatbot-resume-streams.mdx +0 -0
  1681. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/04-generative-user-interfaces.mdx +0 -0
  1682. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/05-completion.mdx +0 -0
  1683. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/08-object-generation.mdx +0 -0
  1684. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/21-error-handling.mdx +0 -0
  1685. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/24-reading-ui-message-streams.mdx +0 -0
  1686. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/25-message-metadata.mdx +0 -0
  1687. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/index.mdx +0 -0
  1688. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/01-overview.mdx +0 -0
  1689. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/02-streaming-react-components.mdx +0 -0
  1690. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/03-generative-ui-state.mdx +0 -0
  1691. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/03-saving-and-restoring-states.mdx +0 -0
  1692. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/04-multistep-interfaces.mdx +0 -0
  1693. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/05-streaming-values.mdx +0 -0
  1694. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/06-loading-state.mdx +0 -0
  1695. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/08-error-handling.mdx +0 -0
  1696. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/09-authentication.mdx +0 -0
  1697. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/10-migrating-to-ui.mdx +0 -0
  1698. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/index.mdx +0 -0
  1699. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/01-prompt-engineering.mdx +0 -0
  1700. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/02-stopping-streams.mdx +0 -0
  1701. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/03-backpressure.mdx +0 -0
  1702. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/05-multiple-streamables.mdx +0 -0
  1703. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/06-rate-limiting.mdx +0 -0
  1704. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/07-rendering-ui-with-language-models.mdx +0 -0
  1705. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/08-model-as-router.mdx +0 -0
  1706. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/09-multistep-interfaces.mdx +0 -0
  1707. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/09-sequential-generations.mdx +0 -0
  1708. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/10-vercel-deployment-guide.mdx +0 -0
  1709. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/index.mdx +0 -0
  1710. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/11-stream-transcribe.mdx +0 -0
  1711. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/11-stream-translate.mdx +0 -0
  1712. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/11-transcribe.mdx +0 -0
  1713. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/12-generate-speech.mdx +0 -0
  1714. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/13-generate-video.mdx +0 -0
  1715. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/14-upload-skill.mdx +0 -0
  1716. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/15-agent.mdx +0 -0
  1717. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/17-create-agent-ui-stream.mdx +0 -0
  1718. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/18-create-agent-ui-stream-response.mdx +0 -0
  1719. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/18-pipe-agent-ui-stream-to-response.mdx +0 -0
  1720. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/20-tool.mdx +0 -0
  1721. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/22-dynamic-tool.mdx +0 -0
  1722. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/23-create-mcp-client.mdx +0 -0
  1723. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/23-get-realtime-tool-definitions.mdx +0 -0
  1724. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/24-mcp-apps.mdx +0 -0
  1725. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/24-mcp-stdio-transport.mdx +0 -0
  1726. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/25-json-schema.mdx +0 -0
  1727. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/26-zod-schema.mdx +0 -0
  1728. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/27-valibot-schema.mdx +0 -0
  1729. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/29-filter-active-tools.mdx +0 -0
  1730. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/30-model-message.mdx +0 -0
  1731. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/32-validate-ui-messages.mdx +0 -0
  1732. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/33-safe-validate-ui-messages.mdx +0 -0
  1733. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/34-sandbox.mdx +0 -0
  1734. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/40-provider-registry.mdx +0 -0
  1735. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/42-custom-provider.mdx +0 -0
  1736. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/50-cosine-similarity.mdx +0 -0
  1737. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/60-wrap-language-model.mdx +0 -0
  1738. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/61-wrap-image-model.mdx +0 -0
  1739. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/65-language-model-v2-middleware.mdx +0 -0
  1740. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/66-extract-reasoning-middleware.mdx +0 -0
  1741. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/67-simulate-streaming-middleware.mdx +0 -0
  1742. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/68-default-instructions-middleware.mdx +0 -0
  1743. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/68-default-settings-middleware.mdx +0 -0
  1744. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/69-add-tool-input-examples-middleware.mdx +0 -0
  1745. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/70-extract-json-middleware.mdx +0 -0
  1746. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/70-is-step-count.mdx +0 -0
  1747. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/71-has-tool-call.mdx +0 -0
  1748. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/72-loop-finished.mdx +0 -0
  1749. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/75-simulate-readable-stream.mdx +0 -0
  1750. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/90-generate-id.mdx +0 -0
  1751. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/91-create-id-generator.mdx +0 -0
  1752. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/92-default-generated-file.mdx +0 -0
  1753. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/02-use-completion.mdx +0 -0
  1754. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/03-use-object.mdx +0 -0
  1755. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/05-use-realtime.mdx +0 -0
  1756. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/32-prune-messages.mdx +0 -0
  1757. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/42-pipe-ui-message-stream-to-response.mdx +0 -0
  1758. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/43-read-ui-message-stream.mdx +0 -0
  1759. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/46-infer-ui-tools.mdx +0 -0
  1760. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/47-infer-ui-tool.mdx +0 -0
  1761. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/48-mcp-app-renderer.mdx +0 -0
  1762. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/50-direct-chat-transport.mdx +0 -0
  1763. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/index.mdx +0 -0
  1764. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/01-stream-ui.mdx +0 -0
  1765. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/02-create-ai.mdx +0 -0
  1766. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/03-create-streamable-ui.mdx +0 -0
  1767. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/04-create-streamable-value.mdx +0 -0
  1768. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/05-read-streamable-value.mdx +0 -0
  1769. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/06-get-ai-state.mdx +0 -0
  1770. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/07-get-mutable-ai-state.mdx +0 -0
  1771. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/08-use-ai-state.mdx +0 -0
  1772. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/09-use-actions.mdx +0 -0
  1773. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/10-use-ui-state.mdx +0 -0
  1774. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/11-use-streamable-value.mdx +0 -0
  1775. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/20-render.mdx +0 -0
  1776. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/index.mdx +0 -0
  1777. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-api-call-error.mdx +0 -0
  1778. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-download-error.mdx +0 -0
  1779. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-empty-response-body-error.mdx +0 -0
  1780. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-invalid-data-content-error.mdx +0 -0
  1781. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-invalid-message-role-error.mdx +0 -0
  1782. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-invalid-prompt-error.mdx +0 -0
  1783. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-invalid-response-data-error.mdx +0 -0
  1784. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-invalid-tool-approval-error.mdx +0 -0
  1785. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-invalid-tool-approval-signature-error.mdx +0 -0
  1786. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-invalid-tool-input-error.mdx +0 -0
  1787. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-json-parse-error.mdx +0 -0
  1788. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-load-api-key-error.mdx +0 -0
  1789. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-load-setting-error.mdx +0 -0
  1790. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-message-conversion-error.mdx +0 -0
  1791. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-content-generated-error.mdx +0 -0
  1792. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-object-generated-error.mdx +0 -0
  1793. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-output-generated-error.mdx +0 -0
  1794. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-speech-generated-error.mdx +0 -0
  1795. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-such-model-error.mdx +0 -0
  1796. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-such-provider-error.mdx +0 -0
  1797. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-such-provider-reference-error.mdx +0 -0
  1798. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-such-tool-error.mdx +0 -0
  1799. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-transcript-generated-error.mdx +0 -0
  1800. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-translation-generated-error.mdx +0 -0
  1801. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-video-generated-error.mdx +0 -0
  1802. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-retry-error.mdx +0 -0
  1803. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-too-many-embedding-values-for-call-error.mdx +0 -0
  1804. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-tool-call-not-found-for-approval-error.mdx +0 -0
  1805. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-tool-call-repair-error.mdx +0 -0
  1806. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-type-validation-error.mdx +0 -0
  1807. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-ui-message-stream-error.mdx +0 -0
  1808. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-unsupported-functionality-error.mdx +0 -0
  1809. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/06-ai-sdk-tui/01-run-agent-tui.mdx +0 -0
  1810. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/06-ai-sdk-tui/index.mdx +0 -0
  1811. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/index.mdx +0 -0
  1812. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/00-versioning.mdx +0 -0
  1813. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/23-migration-guide-7-0.mdx +0 -0
  1814. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/24-migration-guide-6-0.mdx +0 -0
  1815. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/25-migration-guide-5-0-data.mdx +0 -0
  1816. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/26-migration-guide-5-0.mdx +0 -0
  1817. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/27-migration-guide-4-2.mdx +0 -0
  1818. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/28-migration-guide-4-1.mdx +0 -0
  1819. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/29-migration-guide-4-0.mdx +0 -0
  1820. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/36-migration-guide-3-4.mdx +0 -0
  1821. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/37-migration-guide-3-3.mdx +0 -0
  1822. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/38-migration-guide-3-2.mdx +0 -0
  1823. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/39-migration-guide-3-1.mdx +0 -0
  1824. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/index.mdx +0 -0
  1825. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/01-azure-stream-slow.mdx +0 -0
  1826. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/03-server-actions-in-client-components.mdx +0 -0
  1827. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/04-strange-stream-output.mdx +0 -0
  1828. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/05-streamable-ui-errors.mdx +0 -0
  1829. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/05-tool-invocation-missing-result.mdx +0 -0
  1830. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/06-streaming-not-working-when-deployed.mdx +0 -0
  1831. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/06-streaming-not-working-when-proxied.mdx +0 -0
  1832. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/06-timeout-on-vercel.mdx +0 -0
  1833. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/07-unclosed-streams.mdx +0 -0
  1834. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/08-use-chat-failed-to-parse-stream.mdx +0 -0
  1835. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/09-client-stream-error.mdx +0 -0
  1836. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/10-use-chat-tools-no-response.mdx +0 -0
  1837. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/11-use-chat-custom-request-options.mdx +0 -0
  1838. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/12-typescript-performance-zod.mdx +0 -0
  1839. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/12-use-chat-an-error-occurred.mdx +0 -0
  1840. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/13-repeated-assistant-messages.mdx +0 -0
  1841. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/14-stream-abort-handling.mdx +0 -0
  1842. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/14-tool-calling-with-structured-outputs.mdx +0 -0
  1843. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/15-abort-breaks-resumable-streams.mdx +0 -0
  1844. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/15-stream-text-not-working.mdx +0 -0
  1845. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/16-streaming-status-delay.mdx +0 -0
  1846. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/17-use-chat-stale-body-data.mdx +0 -0
  1847. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/18-ontoolcall-type-narrowing.mdx +0 -0
  1848. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/19-unsupported-model-version.mdx +0 -0
  1849. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/20-no-object-generated-content-filter.mdx +0 -0
  1850. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/21-missing-tool-results-error.mdx +0 -0
  1851. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/30-model-is-not-assignable-to-type.mdx +0 -0
  1852. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/40-typescript-cannot-find-namespace-jsx.mdx +0 -0
  1853. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/50-react-maximum-update-depth-exceeded.mdx +0 -0
  1854. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/60-jest-cannot-find-module-ai-rsc.mdx +0 -0
  1855. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/70-high-memory-usage-with-images.mdx +0 -0
  1856. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/index.mdx +0 -0
  1857. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/logger/LICENSE +0 -0
  1858. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/logger/README.md +0 -0
  1859. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/logger/dist/index.js +0 -0
  1860. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/logger/package.json +0 -0
  1861. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/LICENSE +0 -0
  1862. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/README.md +0 -0
  1863. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/block-kit/block-elements.js +0 -0
  1864. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/block-kit/blocks.js +0 -0
  1865. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/block-kit/composition-objects.js +0 -0
  1866. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/block-kit/extensions.js +0 -0
  1867. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/calls.js +0 -0
  1868. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/chunk.js +0 -0
  1869. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/common/bot-profile.js +0 -0
  1870. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/common/status-emoji-display-info.js +0 -0
  1871. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/dialog.js +0 -0
  1872. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/app.js +0 -0
  1873. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/assistant.js +0 -0
  1874. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/call.js +0 -0
  1875. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/channel.js +0 -0
  1876. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/dnd.js +0 -0
  1877. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/email.js +0 -0
  1878. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/emoji.js +0 -0
  1879. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/entity-details-requested.js +0 -0
  1880. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/file.js +0 -0
  1881. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/function.js +0 -0
  1882. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/grid-migration.js +0 -0
  1883. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/group.js +0 -0
  1884. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/im.js +0 -0
  1885. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/invite.js +0 -0
  1886. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/link-shared.js +0 -0
  1887. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/member.js +0 -0
  1888. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/message-metadata.js +0 -0
  1889. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/message.js +0 -0
  1890. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/pin.js +0 -0
  1891. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/reaction.js +0 -0
  1892. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/shared-channel.js +0 -0
  1893. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/star.js +0 -0
  1894. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/steps-from-apps.js +0 -0
  1895. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/subteam.js +0 -0
  1896. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/team.js +0 -0
  1897. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/token.js +0 -0
  1898. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/user.js +0 -0
  1899. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/index.js +0 -0
  1900. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/message-attachments.js +0 -0
  1901. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/message-metadata.js +0 -0
  1902. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/views.js +0 -0
  1903. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/LICENSE +0 -0
  1904. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/WebClient.js +0 -0
  1905. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/chat-stream.js +0 -0
  1906. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/errors.js +0 -0
  1907. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/file-upload.js +0 -0
  1908. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/helpers.js +0 -0
  1909. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/index.js +0 -0
  1910. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/instrument.js +0 -0
  1911. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/logger.js +0 -0
  1912. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/retry-policies.js +0 -0
  1913. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/helpers.js +0 -0
  1914. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/analytics.js +0 -0
  1915. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/apps.js +0 -0
  1916. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/auth.js +0 -0
  1917. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/barriers.js +0 -0
  1918. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/conversations.js +0 -0
  1919. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/emoji.js +0 -0
  1920. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/functions.js +0 -0
  1921. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/inviteRequests.js +0 -0
  1922. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/roles.js +0 -0
  1923. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/teams.js +0 -0
  1924. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/usergroups.js +0 -0
  1925. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/users.js +0 -0
  1926. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/workflows.js +0 -0
  1927. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/api.js +0 -0
  1928. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/apps.js +0 -0
  1929. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/assistant.js +0 -0
  1930. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/auth.js +0 -0
  1931. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/bookmarks.js +0 -0
  1932. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/bots.js +0 -0
  1933. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/calls.js +0 -0
  1934. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/canvas.js +0 -0
  1935. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/chat.js +0 -0
  1936. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/common.js +0 -0
  1937. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/conversations.js +0 -0
  1938. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/dialog.js +0 -0
  1939. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/dnd.js +0 -0
  1940. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/emoji.js +0 -0
  1941. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/entity.js +0 -0
  1942. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/files.js +0 -0
  1943. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/functions.js +0 -0
  1944. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/index.js +0 -0
  1945. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/manifest.js +0 -0
  1946. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/migration.js +0 -0
  1947. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/oauth.js +0 -0
  1948. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/openid.js +0 -0
  1949. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/pins.js +0 -0
  1950. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/reactions.js +0 -0
  1951. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/reminders.js +0 -0
  1952. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/rtm.js +0 -0
  1953. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/search.js +0 -0
  1954. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/slackLists.js +0 -0
  1955. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/stars.js +0 -0
  1956. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/team.js +0 -0
  1957. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/tooling.js +0 -0
  1958. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/usergroups.js +0 -0
  1959. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/users.js +0 -0
  1960. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/views.js +0 -0
  1961. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/workflows.js +0 -0
  1962. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAnalyticsGetFileResponse.js +0 -0
  1963. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsActivitiesListResponse.js +0 -0
  1964. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsApproveResponse.js +0 -0
  1965. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsApprovedListResponse.js +0 -0
  1966. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsClearResolutionResponse.js +0 -0
  1967. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsConfigLookupResponse.js +0 -0
  1968. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsConfigSetResponse.js +0 -0
  1969. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsRequestsCancelResponse.js +0 -0
  1970. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsRequestsListResponse.js +0 -0
  1971. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsRestrictResponse.js +0 -0
  1972. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsRestrictedListResponse.js +0 -0
  1973. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsUninstallResponse.js +0 -0
  1974. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAuthPolicyAssignEntitiesResponse.js +0 -0
  1975. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAuthPolicyGetEntitiesResponse.js +0 -0
  1976. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAuthPolicyRemoveEntitiesResponse.js +0 -0
  1977. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminBarriersCreateResponse.js +0 -0
  1978. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminBarriersDeleteResponse.js +0 -0
  1979. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminBarriersListResponse.js +0 -0
  1980. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminBarriersUpdateResponse.js +0 -0
  1981. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsArchiveResponse.js +0 -0
  1982. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsBulkArchiveResponse.js +0 -0
  1983. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsBulkDeleteResponse.js +0 -0
  1984. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsBulkMoveResponse.js +0 -0
  1985. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsConvertToPrivateResponse.js +0 -0
  1986. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsConvertToPublicResponse.js +0 -0
  1987. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsCreateResponse.js +0 -0
  1988. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsDeleteResponse.js +0 -0
  1989. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsDisconnectSharedResponse.js +0 -0
  1990. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsEkmListOriginalConnectedChannelInfoResponse.js +0 -0
  1991. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsGetConversationPrefsResponse.js +0 -0
  1992. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsGetCustomRetentionResponse.js +0 -0
  1993. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsGetTeamsResponse.js +0 -0
  1994. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsInviteResponse.js +0 -0
  1995. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsLookupResponse.js +0 -0
  1996. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsRemoveCustomRetentionResponse.js +0 -0
  1997. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsRenameResponse.js +0 -0
  1998. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsRestrictAccessAddGroupResponse.js +0 -0
  1999. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsRestrictAccessListGroupsResponse.js +0 -0
  2000. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsRestrictAccessRemoveGroupResponse.js +0 -0
  2001. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsSearchResponse.js +0 -0
  2002. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsSetConversationPrefsResponse.js +0 -0
  2003. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsSetCustomRetentionResponse.js +0 -0
  2004. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsSetTeamsResponse.js +0 -0
  2005. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsUnarchiveResponse.js +0 -0
  2006. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsWhitelistAddResponse.js +0 -0
  2007. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsWhitelistListGroupsLinkedToChannelResponse.js +0 -0
  2008. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsWhitelistRemoveResponse.js +0 -0
  2009. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminEmojiAddAliasResponse.js +0 -0
  2010. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminEmojiAddResponse.js +0 -0
  2011. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminEmojiListResponse.js +0 -0
  2012. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminEmojiRemoveResponse.js +0 -0
  2013. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminEmojiRenameResponse.js +0 -0
  2014. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminFunctionsListResponse.js +0 -0
  2015. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminFunctionsPermissionsLookupResponse.js +0 -0
  2016. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminFunctionsPermissionsSetResponse.js +0 -0
  2017. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminInviteRequestsApproveResponse.js +0 -0
  2018. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminInviteRequestsApprovedListResponse.js +0 -0
  2019. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminInviteRequestsDeniedListResponse.js +0 -0
  2020. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminInviteRequestsDenyResponse.js +0 -0
  2021. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminInviteRequestsListResponse.js +0 -0
  2022. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminRolesAddAssignmentsResponse.js +0 -0
  2023. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminRolesListAssignmentsResponse.js +0 -0
  2024. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminRolesRemoveAssignmentsResponse.js +0 -0
  2025. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsAdminsListResponse.js +0 -0
  2026. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsCreateResponse.js +0 -0
  2027. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsListResponse.js +0 -0
  2028. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsOwnersListResponse.js +0 -0
  2029. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsSettingsInfoResponse.js +0 -0
  2030. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsSettingsSetDefaultChannelsResponse.js +0 -0
  2031. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsSettingsSetDescriptionResponse.js +0 -0
  2032. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsSettingsSetDiscoverabilityResponse.js +0 -0
  2033. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsSettingsSetIconResponse.js +0 -0
  2034. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsSettingsSetNameResponse.js +0 -0
  2035. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsergroupsAddChannelsResponse.js +0 -0
  2036. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsergroupsAddTeamsResponse.js +0 -0
  2037. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsergroupsListChannelsResponse.js +0 -0
  2038. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsergroupsRemoveChannelsResponse.js +0 -0
  2039. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersAssignResponse.js +0 -0
  2040. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersInviteResponse.js +0 -0
  2041. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersListResponse.js +0 -0
  2042. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersRemoveResponse.js +0 -0
  2043. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSessionClearSettingsResponse.js +0 -0
  2044. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSessionGetSettingsResponse.js +0 -0
  2045. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSessionInvalidateResponse.js +0 -0
  2046. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSessionListResponse.js +0 -0
  2047. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSessionResetBulkResponse.js +0 -0
  2048. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSessionResetResponse.js +0 -0
  2049. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSessionSetSettingsResponse.js +0 -0
  2050. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSetAdminResponse.js +0 -0
  2051. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSetExpirationResponse.js +0 -0
  2052. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSetOwnerResponse.js +0 -0
  2053. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSetRegularResponse.js +0 -0
  2054. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersUnsupportedVersionsExportResponse.js +0 -0
  2055. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminWorkflowsCollaboratorsAddResponse.js +0 -0
  2056. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminWorkflowsCollaboratorsRemoveResponse.js +0 -0
  2057. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminWorkflowsPermissionsLookupResponse.js +0 -0
  2058. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminWorkflowsSearchResponse.js +0 -0
  2059. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminWorkflowsUnpublishResponse.js +0 -0
  2060. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ApiTestResponse.js +0 -0
  2061. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsConnectionsOpenResponse.js +0 -0
  2062. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsEventAuthorizationsListResponse.js +0 -0
  2063. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsManifestCreateResponse.js +0 -0
  2064. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsManifestDeleteResponse.js +0 -0
  2065. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsManifestExportResponse.js +0 -0
  2066. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsManifestUpdateResponse.js +0 -0
  2067. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsManifestValidateResponse.js +0 -0
  2068. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsPermissionsInfoResponse.js +0 -0
  2069. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsPermissionsRequestResponse.js +0 -0
  2070. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsPermissionsResourcesListResponse.js +0 -0
  2071. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsPermissionsScopesListResponse.js +0 -0
  2072. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsPermissionsUsersListResponse.js +0 -0
  2073. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsPermissionsUsersRequestResponse.js +0 -0
  2074. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsUninstallResponse.js +0 -0
  2075. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsUserConnectionUpdateResponse.js +0 -0
  2076. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AssistantThreadsSetStatusResponse.js +0 -0
  2077. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AssistantThreadsSetSuggestedPromptsResponse.js +0 -0
  2078. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AssistantThreadsSetTitleResponse.js +0 -0
  2079. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AuthRevokeResponse.js +0 -0
  2080. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AuthTeamsListResponse.js +0 -0
  2081. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AuthTestResponse.js +0 -0
  2082. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/BookmarksAddResponse.js +0 -0
  2083. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/BookmarksEditResponse.js +0 -0
  2084. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/BookmarksListResponse.js +0 -0
  2085. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/BookmarksRemoveResponse.js +0 -0
  2086. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/BotsInfoResponse.js +0 -0
  2087. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CallsAddResponse.js +0 -0
  2088. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CallsEndResponse.js +0 -0
  2089. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CallsInfoResponse.js +0 -0
  2090. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CallsParticipantsAddResponse.js +0 -0
  2091. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CallsParticipantsRemoveResponse.js +0 -0
  2092. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CallsUpdateResponse.js +0 -0
  2093. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CanvasesAccessDeleteResponse.js +0 -0
  2094. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CanvasesAccessSetResponse.js +0 -0
  2095. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CanvasesCreateResponse.js +0 -0
  2096. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CanvasesDeleteResponse.js +0 -0
  2097. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CanvasesEditResponse.js +0 -0
  2098. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CanvasesSectionsLookupResponse.js +0 -0
  2099. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsArchiveResponse.js +0 -0
  2100. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsCreateResponse.js +0 -0
  2101. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsHistoryResponse.js +0 -0
  2102. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsInfoResponse.js +0 -0
  2103. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsInviteResponse.js +0 -0
  2104. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsJoinResponse.js +0 -0
  2105. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsKickResponse.js +0 -0
  2106. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsLeaveResponse.js +0 -0
  2107. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsListResponse.js +0 -0
  2108. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsMarkResponse.js +0 -0
  2109. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsRenameResponse.js +0 -0
  2110. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsRepliesResponse.js +0 -0
  2111. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsSetPurposeResponse.js +0 -0
  2112. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsSetTopicResponse.js +0 -0
  2113. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsUnarchiveResponse.js +0 -0
  2114. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatDeleteResponse.js +0 -0
  2115. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatDeleteScheduledMessageResponse.js +0 -0
  2116. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatGetPermalinkResponse.js +0 -0
  2117. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatMeMessageResponse.js +0 -0
  2118. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatPostEphemeralResponse.js +0 -0
  2119. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatPostMessageResponse.js +0 -0
  2120. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatScheduleMessageResponse.js +0 -0
  2121. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatScheduledMessagesListResponse.js +0 -0
  2122. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatUnfurlResponse.js +0 -0
  2123. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatUpdateResponse.js +0 -0
  2124. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsAcceptSharedInviteResponse.js +0 -0
  2125. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsApproveSharedInviteResponse.js +0 -0
  2126. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsArchiveResponse.js +0 -0
  2127. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsCanvasesCreateResponse.js +0 -0
  2128. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsCloseResponse.js +0 -0
  2129. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsCreateResponse.js +0 -0
  2130. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsDeclineSharedInviteResponse.js +0 -0
  2131. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsExternalInvitePermissionsSetResponse.js +0 -0
  2132. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsHistoryResponse.js +0 -0
  2133. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsInfoResponse.js +0 -0
  2134. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsInviteResponse.js +0 -0
  2135. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsInviteSharedResponse.js +0 -0
  2136. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsJoinResponse.js +0 -0
  2137. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsKickResponse.js +0 -0
  2138. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsLeaveResponse.js +0 -0
  2139. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsListConnectInvitesResponse.js +0 -0
  2140. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsListResponse.js +0 -0
  2141. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsMarkResponse.js +0 -0
  2142. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsMembersResponse.js +0 -0
  2143. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsOpenResponse.js +0 -0
  2144. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsRenameResponse.js +0 -0
  2145. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsRepliesResponse.js +0 -0
  2146. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsRequestSharedInviteApproveResponse.js +0 -0
  2147. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsRequestSharedInviteDenyResponse.js +0 -0
  2148. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsRequestSharedInviteListResponse.js +0 -0
  2149. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsSetPurposeResponse.js +0 -0
  2150. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsSetTopicResponse.js +0 -0
  2151. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsUnarchiveResponse.js +0 -0
  2152. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/DialogOpenResponse.js +0 -0
  2153. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/DndEndDndResponse.js +0 -0
  2154. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/DndEndSnoozeResponse.js +0 -0
  2155. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/DndInfoResponse.js +0 -0
  2156. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/DndSetSnoozeResponse.js +0 -0
  2157. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/DndTeamInfoResponse.js +0 -0
  2158. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/EmojiListResponse.js +0 -0
  2159. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/EntityPresentDetailsResponse.js +0 -0
  2160. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesCommentsAddResponse.js +0 -0
  2161. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesCommentsDeleteResponse.js +0 -0
  2162. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesCommentsEditResponse.js +0 -0
  2163. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesCompleteUploadExternalResponse.js +0 -0
  2164. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesDeleteResponse.js +0 -0
  2165. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesGetUploadURLExternalResponse.js +0 -0
  2166. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesInfoResponse.js +0 -0
  2167. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesListResponse.js +0 -0
  2168. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesRemoteAddResponse.js +0 -0
  2169. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesRemoteInfoResponse.js +0 -0
  2170. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesRemoteListResponse.js +0 -0
  2171. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesRemoteRemoveResponse.js +0 -0
  2172. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesRemoteShareResponse.js +0 -0
  2173. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesRemoteUpdateResponse.js +0 -0
  2174. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesRevokePublicURLResponse.js +0 -0
  2175. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesSharedPublicURLResponse.js +0 -0
  2176. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesUploadResponse.js +0 -0
  2177. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FunctionsCompleteErrorResponse.js +0 -0
  2178. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FunctionsCompleteSuccessResponse.js +0 -0
  2179. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsArchiveResponse.js +0 -0
  2180. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsCloseResponse.js +0 -0
  2181. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsCreateChildResponse.js +0 -0
  2182. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsCreateResponse.js +0 -0
  2183. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsHistoryResponse.js +0 -0
  2184. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsInfoResponse.js +0 -0
  2185. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsInviteResponse.js +0 -0
  2186. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsKickResponse.js +0 -0
  2187. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsLeaveResponse.js +0 -0
  2188. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsListResponse.js +0 -0
  2189. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsMarkResponse.js +0 -0
  2190. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsOpenResponse.js +0 -0
  2191. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsRenameResponse.js +0 -0
  2192. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsRepliesResponse.js +0 -0
  2193. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsSetPurposeResponse.js +0 -0
  2194. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsSetTopicResponse.js +0 -0
  2195. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsUnarchiveResponse.js +0 -0
  2196. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ImCloseResponse.js +0 -0
  2197. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ImHistoryResponse.js +0 -0
  2198. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ImListResponse.js +0 -0
  2199. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ImMarkResponse.js +0 -0
  2200. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ImOpenResponse.js +0 -0
  2201. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ImRepliesResponse.js +0 -0
  2202. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/MigrationExchangeResponse.js +0 -0
  2203. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/MpimCloseResponse.js +0 -0
  2204. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/MpimHistoryResponse.js +0 -0
  2205. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/MpimListResponse.js +0 -0
  2206. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/MpimMarkResponse.js +0 -0
  2207. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/MpimOpenResponse.js +0 -0
  2208. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/MpimRepliesResponse.js +0 -0
  2209. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/OauthAccessResponse.js +0 -0
  2210. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/OauthTokenResponse.js +0 -0
  2211. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/OauthV2AccessResponse.js +0 -0
  2212. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/OauthV2ExchangeResponse.js +0 -0
  2213. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/OpenIDConnectTokenResponse.js +0 -0
  2214. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/OpenIDConnectUserInfoResponse.js +0 -0
  2215. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/PinsAddResponse.js +0 -0
  2216. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/PinsRemoveResponse.js +0 -0
  2217. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ReactionsAddResponse.js +0 -0
  2218. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ReactionsGetResponse.js +0 -0
  2219. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ReactionsListResponse.js +0 -0
  2220. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ReactionsRemoveResponse.js +0 -0
  2221. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/RemindersAddResponse.js +0 -0
  2222. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/RemindersCompleteResponse.js +0 -0
  2223. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/RemindersDeleteResponse.js +0 -0
  2224. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/RemindersInfoResponse.js +0 -0
  2225. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/RemindersListResponse.js +0 -0
  2226. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/RtmConnectResponse.js +0 -0
  2227. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/RtmStartResponse.js +0 -0
  2228. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/SearchMessagesResponse.js +0 -0
  2229. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/StarsAddResponse.js +0 -0
  2230. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/StarsListResponse.js +0 -0
  2231. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/StarsRemoveResponse.js +0 -0
  2232. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamAccessLogsResponse.js +0 -0
  2233. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamBillableInfoResponse.js +0 -0
  2234. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamBillingInfoResponse.js +0 -0
  2235. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamExternalTeamsDisconnectResponse.js +0 -0
  2236. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamExternalTeamsListResponse.js +0 -0
  2237. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamInfoResponse.js +0 -0
  2238. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamIntegrationLogsResponse.js +0 -0
  2239. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamPreferencesListResponse.js +0 -0
  2240. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamProfileGetResponse.js +0 -0
  2241. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ToolingTokensRotateResponse.js +0 -0
  2242. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsergroupsCreateResponse.js +0 -0
  2243. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsergroupsDisableResponse.js +0 -0
  2244. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsergroupsEnableResponse.js +0 -0
  2245. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsergroupsListResponse.js +0 -0
  2246. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsergroupsUpdateResponse.js +0 -0
  2247. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsergroupsUsersListResponse.js +0 -0
  2248. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsergroupsUsersUpdateResponse.js +0 -0
  2249. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersConversationsResponse.js +0 -0
  2250. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersDeletePhotoResponse.js +0 -0
  2251. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersDiscoverableContactsLookupResponse.js +0 -0
  2252. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersGetPresenceResponse.js +0 -0
  2253. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersIdentityResponse.js +0 -0
  2254. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersInfoResponse.js +0 -0
  2255. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersListResponse.js +0 -0
  2256. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersLookupByEmailResponse.js +0 -0
  2257. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersProfileGetResponse.js +0 -0
  2258. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersProfileSetResponse.js +0 -0
  2259. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersSetActiveResponse.js +0 -0
  2260. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersSetPhotoResponse.js +0 -0
  2261. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersSetPresenceResponse.js +0 -0
  2262. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ViewsOpenResponse.js +0 -0
  2263. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ViewsPublishResponse.js +0 -0
  2264. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ViewsPushResponse.js +0 -0
  2265. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ViewsUpdateResponse.js +0 -0
  2266. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/WorkflowsStepCompletedResponse.js +0 -0
  2267. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/WorkflowsStepFailedResponse.js +0 -0
  2268. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/WorkflowsUpdateStepResponse.js +0 -0
  2269. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/index.js +0 -0
  2270. /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/License +0 -0
  2271. /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/README.md +0 -0
  2272. /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/example/dns.js +0 -0
  2273. /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/example/stop.js +0 -0
  2274. /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/index.js +0 -0
  2275. /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/lib/retry.js +0 -0
  2276. /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/lib/retry_operation.js +0 -0
  2277. /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/package.json +0 -0
@@ -0,0 +1,3835 @@
1
+ // src/gateway-realtime-auth.ts
2
+ var GATEWAY_REALTIME_SUBPROTOCOL = "ai-gateway-realtime.v1";
3
+ var GATEWAY_TRANSCRIPTION_SUBPROTOCOL = "ai-gateway-transcription.v1";
4
+ var GATEWAY_AUTH_SUBPROTOCOL_PREFIX = "ai-gateway-auth.";
5
+ var GATEWAY_TEAM_SUBPROTOCOL_PREFIX = "ai-gateway-team.";
6
+ function getGatewayRealtimeProtocols(token, options) {
7
+ return buildGatewayProtocols(GATEWAY_REALTIME_SUBPROTOCOL, token, options);
8
+ }
9
+ function getGatewayTranscriptionProtocols(token, options) {
10
+ return buildGatewayProtocols(
11
+ GATEWAY_TRANSCRIPTION_SUBPROTOCOL,
12
+ token,
13
+ options
14
+ );
15
+ }
16
+ function buildGatewayProtocols(marker12, token, options) {
17
+ const protocols = [marker12, `${GATEWAY_AUTH_SUBPROTOCOL_PREFIX}${token}`];
18
+ if (options == null ? void 0 : options.teamIdOrSlug) {
19
+ protocols.push(
20
+ `${GATEWAY_TEAM_SUBPROTOCOL_PREFIX}${encodeSubprotocolValue(options.teamIdOrSlug)}`
21
+ );
22
+ }
23
+ return protocols;
24
+ }
25
+ function getGatewayRealtimeAuthToken(secWebSocketProtocol) {
26
+ var _a12;
27
+ return ((_a12 = findProtocol(secWebSocketProtocol, GATEWAY_AUTH_SUBPROTOCOL_PREFIX)) == null ? void 0 : _a12.slice(
28
+ GATEWAY_AUTH_SUBPROTOCOL_PREFIX.length
29
+ )) || void 0;
30
+ }
31
+ function getGatewayRealtimeTeamIdOrSlug(secWebSocketProtocol) {
32
+ var _a12;
33
+ const encoded = (_a12 = findProtocol(
34
+ secWebSocketProtocol,
35
+ GATEWAY_TEAM_SUBPROTOCOL_PREFIX
36
+ )) == null ? void 0 : _a12.slice(GATEWAY_TEAM_SUBPROTOCOL_PREFIX.length);
37
+ if (!encoded) return void 0;
38
+ try {
39
+ return decodeSubprotocolValue(encoded) || void 0;
40
+ } catch (e) {
41
+ return void 0;
42
+ }
43
+ }
44
+ function findProtocol(secWebSocketProtocol, prefix) {
45
+ return secWebSocketProtocol == null ? void 0 : secWebSocketProtocol.split(",").map((protocol) => protocol.trim()).find((protocol) => protocol.startsWith(prefix));
46
+ }
47
+ function encodeSubprotocolValue(value) {
48
+ const bytes = new TextEncoder().encode(value);
49
+ let binary = "";
50
+ for (const byte of bytes) {
51
+ binary += String.fromCharCode(byte);
52
+ }
53
+ return btoa(binary).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/u, "");
54
+ }
55
+ function decodeSubprotocolValue(value) {
56
+ const base64 = value.replace(/-/g, "+").replace(/_/g, "/");
57
+ const padding = "=".repeat((4 - base64.length % 4) % 4);
58
+ const binary = atob(`${base64}${padding}`);
59
+ const bytes = Uint8Array.from(binary, (char) => char.charCodeAt(0));
60
+ return new TextDecoder().decode(bytes);
61
+ }
62
+
63
+ // src/gateway-provider.ts
64
+ import {
65
+ createJsonErrorResponseHandler as createJsonErrorResponseHandler12,
66
+ createJsonResponseHandler as createJsonResponseHandler12,
67
+ getErrorMessage as getErrorMessage12,
68
+ loadOptionalSetting,
69
+ postJsonToApi as postJsonToApi9,
70
+ withoutTrailingSlash,
71
+ withUserAgentSuffix
72
+ } from "@ai-sdk/provider-utils";
73
+
74
+ // src/zod.ts
75
+ import {
76
+ any,
77
+ array,
78
+ boolean,
79
+ discriminatedUnion,
80
+ enum as enumType,
81
+ literal,
82
+ number,
83
+ object,
84
+ record,
85
+ string,
86
+ union,
87
+ unknown
88
+ } from "zod/v4";
89
+ var z = {
90
+ any,
91
+ array,
92
+ boolean,
93
+ discriminatedUnion,
94
+ enum: enumType,
95
+ literal,
96
+ number,
97
+ object,
98
+ record,
99
+ string,
100
+ union,
101
+ unknown
102
+ };
103
+
104
+ // src/errors/as-gateway-error.ts
105
+ import { APICallError } from "@ai-sdk/provider";
106
+
107
+ // src/errors/gateway-error.ts
108
+ var marker = "vercel.ai.gateway.error";
109
+ var symbol = Symbol.for(marker);
110
+ var _a, _b;
111
+ var GatewayError = class _GatewayError extends (_b = Error, _a = symbol, _b) {
112
+ constructor({
113
+ message,
114
+ statusCode = 500,
115
+ cause,
116
+ generationId,
117
+ isRetryable = statusCode != null && (statusCode === 408 || // request timeout
118
+ statusCode === 409 || // conflict
119
+ statusCode === 429 || // too many requests
120
+ statusCode >= 500)
121
+ // server error
122
+ }) {
123
+ super(generationId ? `${message} [${generationId}]` : message);
124
+ this[_a] = true;
125
+ this.statusCode = statusCode;
126
+ this.cause = cause;
127
+ this.generationId = generationId;
128
+ this.isRetryable = isRetryable;
129
+ }
130
+ /**
131
+ * Checks if the given error is a Gateway Error.
132
+ * @param {unknown} error - The error to check.
133
+ * @returns {boolean} True if the error is a Gateway Error, false otherwise.
134
+ */
135
+ static isInstance(error) {
136
+ return _GatewayError.hasMarker(error);
137
+ }
138
+ static hasMarker(error) {
139
+ return typeof error === "object" && error !== null && symbol in error && error[symbol] === true;
140
+ }
141
+ };
142
+
143
+ // src/errors/gateway-authentication-error.ts
144
+ var name = "GatewayAuthenticationError";
145
+ var marker2 = `vercel.ai.gateway.error.${name}`;
146
+ var symbol2 = Symbol.for(marker2);
147
+ var _a2, _b2;
148
+ var GatewayAuthenticationError = class _GatewayAuthenticationError extends (_b2 = GatewayError, _a2 = symbol2, _b2) {
149
+ constructor({
150
+ message = "Authentication failed",
151
+ statusCode = 401,
152
+ cause,
153
+ generationId
154
+ } = {}) {
155
+ super({ message, statusCode, cause, generationId });
156
+ this[_a2] = true;
157
+ // used in isInstance
158
+ this.name = name;
159
+ this.type = "authentication_error";
160
+ }
161
+ static isInstance(error) {
162
+ return GatewayError.hasMarker(error) && symbol2 in error;
163
+ }
164
+ /**
165
+ * Creates a contextual error message when authentication fails
166
+ */
167
+ static createContextualError({
168
+ apiKeyProvided,
169
+ oidcTokenProvided,
170
+ statusCode = 401,
171
+ cause,
172
+ generationId
173
+ }) {
174
+ let contextualMessage;
175
+ if (apiKeyProvided) {
176
+ contextualMessage = `AI Gateway authentication failed: Invalid API key or token.
177
+
178
+ Create a new API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys
179
+
180
+ Provide an API key or Vercel access token via 'apiKey' option or 'AI_GATEWAY_API_KEY' environment variable.`;
181
+ } else if (oidcTokenProvided) {
182
+ contextualMessage = `AI Gateway authentication failed: Invalid OIDC token.
183
+
184
+ Run 'npx vercel link' to link your project, then 'vc env pull' to fetch the token.
185
+
186
+ Alternatively, use an API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys
187
+ or pass a Vercel access token via the 'apiKey' option.`;
188
+ } else {
189
+ contextualMessage = `AI Gateway authentication failed: No authentication provided.
190
+
191
+ Option 1 - API key:
192
+ Create an API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys
193
+ Provide via 'apiKey' option or 'AI_GATEWAY_API_KEY' environment variable.
194
+
195
+ Option 2 - Vercel access token:
196
+ Pass a Vercel personal access token or Vercel app access token via the 'apiKey' option.
197
+
198
+ Option 3 - OIDC token:
199
+ Run 'npx vercel link' to link your project, then 'vc env pull' to fetch the token.`;
200
+ }
201
+ return new _GatewayAuthenticationError({
202
+ message: contextualMessage,
203
+ statusCode,
204
+ cause,
205
+ generationId
206
+ });
207
+ }
208
+ };
209
+
210
+ // src/errors/gateway-invalid-request-error.ts
211
+ var name2 = "GatewayInvalidRequestError";
212
+ var marker3 = `vercel.ai.gateway.error.${name2}`;
213
+ var symbol3 = Symbol.for(marker3);
214
+ var _a3, _b3;
215
+ var GatewayInvalidRequestError = class extends (_b3 = GatewayError, _a3 = symbol3, _b3) {
216
+ constructor({
217
+ message = "Invalid request",
218
+ statusCode = 400,
219
+ cause,
220
+ generationId
221
+ } = {}) {
222
+ super({ message, statusCode, cause, generationId });
223
+ this[_a3] = true;
224
+ // used in isInstance
225
+ this.name = name2;
226
+ this.type = "invalid_request_error";
227
+ }
228
+ static isInstance(error) {
229
+ return GatewayError.hasMarker(error) && symbol3 in error;
230
+ }
231
+ };
232
+
233
+ // src/errors/gateway-rate-limit-error.ts
234
+ var name3 = "GatewayRateLimitError";
235
+ var marker4 = `vercel.ai.gateway.error.${name3}`;
236
+ var symbol4 = Symbol.for(marker4);
237
+ var _a4, _b4;
238
+ var GatewayRateLimitError = class extends (_b4 = GatewayError, _a4 = symbol4, _b4) {
239
+ constructor({
240
+ message = "Rate limit exceeded",
241
+ statusCode = 429,
242
+ cause,
243
+ generationId
244
+ } = {}) {
245
+ super({ message, statusCode, cause, generationId });
246
+ this[_a4] = true;
247
+ // used in isInstance
248
+ this.name = name3;
249
+ this.type = "rate_limit_exceeded";
250
+ }
251
+ static isInstance(error) {
252
+ return GatewayError.hasMarker(error) && symbol4 in error;
253
+ }
254
+ };
255
+
256
+ // src/errors/gateway-model-not-found-error.ts
257
+ import { lazySchema, zodSchema } from "@ai-sdk/provider-utils";
258
+ var name4 = "GatewayModelNotFoundError";
259
+ var marker5 = `vercel.ai.gateway.error.${name4}`;
260
+ var symbol5 = Symbol.for(marker5);
261
+ var modelNotFoundParamSchema = lazySchema(
262
+ () => zodSchema(
263
+ z.object({
264
+ modelId: z.string()
265
+ })
266
+ )
267
+ );
268
+ var _a5, _b5;
269
+ var GatewayModelNotFoundError = class extends (_b5 = GatewayError, _a5 = symbol5, _b5) {
270
+ constructor({
271
+ message = "Model not found",
272
+ statusCode = 404,
273
+ modelId,
274
+ cause,
275
+ generationId
276
+ } = {}) {
277
+ super({ message, statusCode, cause, generationId });
278
+ this[_a5] = true;
279
+ // used in isInstance
280
+ this.name = name4;
281
+ this.type = "model_not_found";
282
+ this.modelId = modelId;
283
+ }
284
+ static isInstance(error) {
285
+ return GatewayError.hasMarker(error) && symbol5 in error;
286
+ }
287
+ };
288
+
289
+ // src/errors/gateway-not-found-error.ts
290
+ var name5 = "GatewayNotFoundError";
291
+ var marker6 = `vercel.ai.gateway.error.${name5}`;
292
+ var symbol6 = Symbol.for(marker6);
293
+ var _a6, _b6;
294
+ var GatewayNotFoundError = class extends (_b6 = GatewayError, _a6 = symbol6, _b6) {
295
+ constructor({
296
+ message = "Resource not found",
297
+ statusCode = 404,
298
+ cause,
299
+ generationId
300
+ } = {}) {
301
+ super({ message, statusCode, cause, generationId });
302
+ this[_a6] = true;
303
+ // used in isInstance
304
+ this.name = name5;
305
+ this.type = "not_found";
306
+ }
307
+ static isInstance(error) {
308
+ return GatewayError.hasMarker(error) && symbol6 in error;
309
+ }
310
+ };
311
+
312
+ // src/errors/gateway-internal-server-error.ts
313
+ var name6 = "GatewayInternalServerError";
314
+ var marker7 = `vercel.ai.gateway.error.${name6}`;
315
+ var symbol7 = Symbol.for(marker7);
316
+ var _a7, _b7;
317
+ var GatewayInternalServerError = class extends (_b7 = GatewayError, _a7 = symbol7, _b7) {
318
+ constructor({
319
+ message = "Internal server error",
320
+ statusCode = 500,
321
+ cause,
322
+ generationId
323
+ } = {}) {
324
+ super({ message, statusCode, cause, generationId });
325
+ this[_a7] = true;
326
+ // used in isInstance
327
+ this.name = name6;
328
+ this.type = "internal_server_error";
329
+ }
330
+ static isInstance(error) {
331
+ return GatewayError.hasMarker(error) && symbol7 in error;
332
+ }
333
+ };
334
+
335
+ // src/errors/gateway-failed-dependency-error.ts
336
+ var name7 = "GatewayFailedDependencyError";
337
+ var marker8 = `vercel.ai.gateway.error.${name7}`;
338
+ var symbol8 = Symbol.for(marker8);
339
+ var _a8, _b8;
340
+ var GatewayFailedDependencyError = class extends (_b8 = GatewayError, _a8 = symbol8, _b8) {
341
+ constructor({
342
+ message = "Failed dependency",
343
+ statusCode = 424,
344
+ cause,
345
+ generationId
346
+ } = {}) {
347
+ super({ message, statusCode, cause, generationId });
348
+ this[_a8] = true;
349
+ // used in isInstance
350
+ this.name = name7;
351
+ this.type = "failed_dependency";
352
+ }
353
+ static isInstance(error) {
354
+ return GatewayError.hasMarker(error) && symbol8 in error;
355
+ }
356
+ };
357
+
358
+ // src/errors/gateway-forbidden-error.ts
359
+ import { lazySchema as lazySchema2, zodSchema as zodSchema2 } from "@ai-sdk/provider-utils";
360
+ var name8 = "GatewayForbiddenError";
361
+ var marker9 = `vercel.ai.gateway.error.${name8}`;
362
+ var symbol9 = Symbol.for(marker9);
363
+ var forbiddenParamSchema = lazySchema2(
364
+ () => zodSchema2(
365
+ z.object({
366
+ ruleId: z.string()
367
+ })
368
+ )
369
+ );
370
+ var _a9, _b9;
371
+ var GatewayForbiddenError = class extends (_b9 = GatewayError, _a9 = symbol9, _b9) {
372
+ constructor({
373
+ message = "Forbidden",
374
+ statusCode = 403,
375
+ cause,
376
+ generationId,
377
+ ruleId
378
+ } = {}) {
379
+ super({ message, statusCode, cause, generationId });
380
+ this[_a9] = true;
381
+ // used in isInstance
382
+ this.name = name8;
383
+ this.type = "forbidden";
384
+ this.ruleId = ruleId;
385
+ }
386
+ static isInstance(error) {
387
+ return GatewayError.hasMarker(error) && symbol9 in error;
388
+ }
389
+ };
390
+
391
+ // src/errors/gateway-response-error.ts
392
+ var name9 = "GatewayResponseError";
393
+ var marker10 = `vercel.ai.gateway.error.${name9}`;
394
+ var symbol10 = Symbol.for(marker10);
395
+ var _a10, _b10;
396
+ var GatewayResponseError = class extends (_b10 = GatewayError, _a10 = symbol10, _b10) {
397
+ constructor({
398
+ message = "Invalid response from Gateway",
399
+ statusCode = 502,
400
+ response,
401
+ validationError,
402
+ cause,
403
+ generationId,
404
+ isRetryable
405
+ } = {}) {
406
+ super({ message, statusCode, cause, generationId, isRetryable });
407
+ this[_a10] = true;
408
+ // used in isInstance
409
+ this.name = name9;
410
+ this.type = "response_error";
411
+ this.response = response;
412
+ this.validationError = validationError;
413
+ }
414
+ static isInstance(error) {
415
+ return GatewayError.hasMarker(error) && symbol10 in error;
416
+ }
417
+ };
418
+
419
+ // src/errors/create-gateway-error.ts
420
+ import {
421
+ lazySchema as lazySchema3,
422
+ safeValidateTypes,
423
+ zodSchema as zodSchema3
424
+ } from "@ai-sdk/provider-utils";
425
+ async function createGatewayErrorFromResponse({
426
+ response,
427
+ statusCode,
428
+ defaultMessage = "Gateway request failed",
429
+ cause,
430
+ authMethod,
431
+ isRetryable
432
+ }) {
433
+ var _a12;
434
+ const parseResult = await safeValidateTypes({
435
+ value: response,
436
+ schema: gatewayErrorResponseSchema
437
+ });
438
+ if (!parseResult.success) {
439
+ const rawGenerationId = typeof response === "object" && response !== null && "generationId" in response ? response.generationId : void 0;
440
+ return new GatewayResponseError({
441
+ message: `Invalid error response format: ${defaultMessage}`,
442
+ statusCode,
443
+ response,
444
+ validationError: parseResult.error,
445
+ cause,
446
+ generationId: rawGenerationId,
447
+ isRetryable
448
+ });
449
+ }
450
+ const validatedResponse = parseResult.value;
451
+ const errorType = validatedResponse.error.type;
452
+ const message = validatedResponse.error.message;
453
+ const generationId = (_a12 = validatedResponse.generationId) != null ? _a12 : void 0;
454
+ switch (errorType) {
455
+ case "authentication_error":
456
+ return GatewayAuthenticationError.createContextualError({
457
+ apiKeyProvided: authMethod === "api-key",
458
+ oidcTokenProvided: authMethod === "oidc",
459
+ statusCode,
460
+ cause,
461
+ generationId
462
+ });
463
+ case "invalid_request_error":
464
+ return new GatewayInvalidRequestError({
465
+ message,
466
+ statusCode,
467
+ cause,
468
+ generationId
469
+ });
470
+ case "rate_limit_exceeded":
471
+ return new GatewayRateLimitError({
472
+ message,
473
+ statusCode,
474
+ cause,
475
+ generationId
476
+ });
477
+ case "model_not_found": {
478
+ const modelResult = await safeValidateTypes({
479
+ value: validatedResponse.error.param,
480
+ schema: modelNotFoundParamSchema
481
+ });
482
+ return new GatewayModelNotFoundError({
483
+ message,
484
+ statusCode,
485
+ modelId: modelResult.success ? modelResult.value.modelId : void 0,
486
+ cause,
487
+ generationId
488
+ });
489
+ }
490
+ case "not_found":
491
+ return new GatewayNotFoundError({
492
+ message,
493
+ statusCode,
494
+ cause,
495
+ generationId
496
+ });
497
+ case "internal_server_error":
498
+ return new GatewayInternalServerError({
499
+ message,
500
+ statusCode,
501
+ cause,
502
+ generationId
503
+ });
504
+ case "failed_dependency":
505
+ return new GatewayFailedDependencyError({
506
+ message,
507
+ statusCode,
508
+ cause,
509
+ generationId
510
+ });
511
+ case "forbidden": {
512
+ const ruleResult = await safeValidateTypes({
513
+ value: validatedResponse.error.param,
514
+ schema: forbiddenParamSchema
515
+ });
516
+ return new GatewayForbiddenError({
517
+ message,
518
+ statusCode,
519
+ cause,
520
+ generationId,
521
+ ruleId: ruleResult.success ? ruleResult.value.ruleId : void 0
522
+ });
523
+ }
524
+ default:
525
+ return new GatewayInternalServerError({
526
+ message,
527
+ statusCode,
528
+ cause,
529
+ generationId
530
+ });
531
+ }
532
+ }
533
+ var gatewayErrorResponseSchema = lazySchema3(
534
+ () => zodSchema3(
535
+ z.object({
536
+ error: z.object({
537
+ message: z.string(),
538
+ type: z.string().nullish(),
539
+ param: z.unknown().nullish(),
540
+ code: z.union([z.string(), z.number()]).nullish()
541
+ }),
542
+ generationId: z.string().nullish()
543
+ })
544
+ )
545
+ );
546
+
547
+ // src/errors/extract-api-call-response.ts
548
+ import { secureJsonParse } from "@ai-sdk/provider-utils";
549
+ function extractApiCallResponse(error) {
550
+ if (error.data !== void 0) {
551
+ return error.data;
552
+ }
553
+ if (error.responseBody != null) {
554
+ try {
555
+ return secureJsonParse(error.responseBody);
556
+ } catch (e) {
557
+ return error.responseBody;
558
+ }
559
+ }
560
+ return {};
561
+ }
562
+
563
+ // src/errors/gateway-timeout-error.ts
564
+ var name10 = "GatewayTimeoutError";
565
+ var marker11 = `vercel.ai.gateway.error.${name10}`;
566
+ var symbol11 = Symbol.for(marker11);
567
+ var _a11, _b11;
568
+ var GatewayTimeoutError = class _GatewayTimeoutError extends (_b11 = GatewayError, _a11 = symbol11, _b11) {
569
+ constructor({
570
+ message = "Request timed out",
571
+ statusCode = 408,
572
+ cause,
573
+ generationId
574
+ } = {}) {
575
+ super({ message, statusCode, cause, generationId });
576
+ this[_a11] = true;
577
+ // used in isInstance
578
+ this.name = name10;
579
+ this.type = "timeout_error";
580
+ }
581
+ static isInstance(error) {
582
+ return GatewayError.hasMarker(error) && symbol11 in error;
583
+ }
584
+ /**
585
+ * Creates a helpful timeout error message with troubleshooting guidance
586
+ */
587
+ static createTimeoutError({
588
+ originalMessage,
589
+ statusCode = 408,
590
+ cause,
591
+ generationId
592
+ }) {
593
+ const message = `Gateway request timed out: ${originalMessage}
594
+
595
+ This is a client-side timeout. To resolve this, increase your timeout configuration: https://vercel.com/docs/ai-gateway/capabilities/video-generation#extending-timeouts-for-node.js`;
596
+ return new _GatewayTimeoutError({
597
+ message,
598
+ statusCode,
599
+ cause,
600
+ generationId
601
+ });
602
+ }
603
+ };
604
+
605
+ // src/errors/as-gateway-error.ts
606
+ function isTimeoutError(error) {
607
+ if (!(error instanceof Error)) {
608
+ return false;
609
+ }
610
+ const errorCode = error.code;
611
+ if (typeof errorCode === "string") {
612
+ const undiciTimeoutCodes = [
613
+ "UND_ERR_HEADERS_TIMEOUT",
614
+ "UND_ERR_BODY_TIMEOUT",
615
+ "UND_ERR_CONNECT_TIMEOUT"
616
+ ];
617
+ return undiciTimeoutCodes.includes(errorCode);
618
+ }
619
+ return false;
620
+ }
621
+ async function asGatewayError(error, authMethod) {
622
+ var _a12;
623
+ if (GatewayError.isInstance(error)) {
624
+ return error;
625
+ }
626
+ if (isTimeoutError(error)) {
627
+ return GatewayTimeoutError.createTimeoutError({
628
+ originalMessage: error instanceof Error ? error.message : "Unknown error",
629
+ cause: error
630
+ });
631
+ }
632
+ if (APICallError.isInstance(error)) {
633
+ if (error.cause && isTimeoutError(error.cause)) {
634
+ return GatewayTimeoutError.createTimeoutError({
635
+ originalMessage: error.message,
636
+ cause: error
637
+ });
638
+ }
639
+ return await createGatewayErrorFromResponse({
640
+ response: extractApiCallResponse(error),
641
+ statusCode: (_a12 = error.statusCode) != null ? _a12 : 500,
642
+ defaultMessage: "Gateway request failed",
643
+ cause: error,
644
+ authMethod,
645
+ isRetryable: error.isRetryable && (error.statusCode == null || error.statusCode < 400) ? true : void 0
646
+ });
647
+ }
648
+ return await createGatewayErrorFromResponse({
649
+ response: {},
650
+ statusCode: 500,
651
+ defaultMessage: error instanceof Error ? `Gateway request failed: ${error.message}` : "Unknown Gateway error",
652
+ cause: error,
653
+ authMethod
654
+ });
655
+ }
656
+
657
+ // src/gateway-headers.ts
658
+ var GATEWAY_AUTH_METHOD_HEADER = "ai-gateway-auth-method";
659
+ var VERCEL_AI_GATEWAY_TEAM_HEADER = "x-vercel-ai-gateway-team";
660
+
661
+ // src/errors/parse-auth-method.ts
662
+ import {
663
+ lazySchema as lazySchema4,
664
+ safeValidateTypes as safeValidateTypes2,
665
+ zodSchema as zodSchema4
666
+ } from "@ai-sdk/provider-utils";
667
+ async function parseAuthMethod(headers) {
668
+ const result = await safeValidateTypes2({
669
+ value: headers[GATEWAY_AUTH_METHOD_HEADER],
670
+ schema: gatewayAuthMethodSchema
671
+ });
672
+ return result.success ? result.value : void 0;
673
+ }
674
+ var gatewayAuthMethodSchema = lazySchema4(
675
+ () => zodSchema4(z.union([z.literal("api-key"), z.literal("oidc")]))
676
+ );
677
+
678
+ // src/gateway-fetch-metadata.ts
679
+ import {
680
+ createJsonErrorResponseHandler,
681
+ createJsonResponseHandler,
682
+ getErrorMessage,
683
+ getFromApi,
684
+ lazySchema as lazySchema5,
685
+ resolve,
686
+ zodSchema as zodSchema5
687
+ } from "@ai-sdk/provider-utils";
688
+
689
+ // src/gateway-model-entry.ts
690
+ var KNOWN_MODEL_TYPES = [
691
+ "embedding",
692
+ "image",
693
+ "language",
694
+ "realtime",
695
+ "reranking",
696
+ "speech",
697
+ "transcription",
698
+ "video"
699
+ ];
700
+
701
+ // src/gateway-fetch-metadata.ts
702
+ var GatewayFetchMetadata = class {
703
+ constructor(config) {
704
+ this.config = config;
705
+ }
706
+ async getAvailableModels() {
707
+ try {
708
+ const { value } = await getFromApi({
709
+ url: `${this.config.baseURL}/config`,
710
+ validateUrl: false,
711
+ headers: this.config.headers ? await resolve(this.config.headers) : void 0,
712
+ successfulResponseHandler: createJsonResponseHandler(
713
+ gatewayAvailableModelsResponseSchema
714
+ ),
715
+ failedResponseHandler: createJsonErrorResponseHandler({
716
+ errorSchema: z.any(),
717
+ errorToMessage: (data) => {
718
+ var _a12;
719
+ return (_a12 = getErrorMessage(data)) != null ? _a12 : "unknown error";
720
+ }
721
+ }),
722
+ fetch: this.config.fetch
723
+ });
724
+ return value;
725
+ } catch (error) {
726
+ throw await asGatewayError(error);
727
+ }
728
+ }
729
+ async getCredits() {
730
+ try {
731
+ const baseUrl = new URL(this.config.baseURL);
732
+ const { value } = await getFromApi({
733
+ url: `${baseUrl.origin}/v1/credits`,
734
+ validateUrl: false,
735
+ headers: this.config.headers ? await resolve(this.config.headers) : void 0,
736
+ successfulResponseHandler: createJsonResponseHandler(
737
+ gatewayCreditsResponseSchema
738
+ ),
739
+ failedResponseHandler: createJsonErrorResponseHandler({
740
+ errorSchema: z.any(),
741
+ errorToMessage: (data) => {
742
+ var _a12;
743
+ return (_a12 = getErrorMessage(data)) != null ? _a12 : "unknown error";
744
+ }
745
+ }),
746
+ fetch: this.config.fetch
747
+ });
748
+ return value;
749
+ } catch (error) {
750
+ throw await asGatewayError(error);
751
+ }
752
+ }
753
+ };
754
+ var gatewayAvailableModelsResponseSchema = lazySchema5(
755
+ () => zodSchema5(
756
+ z.object({
757
+ models: z.array(
758
+ z.object({
759
+ id: z.string(),
760
+ name: z.string(),
761
+ description: z.string().nullish(),
762
+ pricing: z.object({
763
+ input: z.string(),
764
+ output: z.string(),
765
+ input_cache_read: z.string().nullish(),
766
+ input_cache_write: z.string().nullish()
767
+ }).transform(
768
+ ({ input, output, input_cache_read, input_cache_write }) => ({
769
+ input,
770
+ output,
771
+ ...input_cache_read ? { cachedInputTokens: input_cache_read } : {},
772
+ ...input_cache_write ? { cacheCreationInputTokens: input_cache_write } : {}
773
+ })
774
+ ).nullish(),
775
+ specification: z.object({
776
+ specificationVersion: z.literal("v4"),
777
+ provider: z.string(),
778
+ modelId: z.string()
779
+ }),
780
+ modelType: z.string().nullish()
781
+ })
782
+ ).transform(
783
+ (models) => models.filter(
784
+ (m) => m.modelType == null || KNOWN_MODEL_TYPES.includes(m.modelType)
785
+ )
786
+ )
787
+ })
788
+ )
789
+ );
790
+ var gatewayCreditsResponseSchema = lazySchema5(
791
+ () => zodSchema5(
792
+ z.object({
793
+ balance: z.string(),
794
+ total_used: z.string()
795
+ }).transform(({ balance, total_used }) => ({
796
+ balance,
797
+ totalUsed: total_used
798
+ }))
799
+ )
800
+ );
801
+
802
+ // src/gateway-spend-report.ts
803
+ import {
804
+ createJsonErrorResponseHandler as createJsonErrorResponseHandler2,
805
+ createJsonResponseHandler as createJsonResponseHandler2,
806
+ getErrorMessage as getErrorMessage2,
807
+ getFromApi as getFromApi2,
808
+ lazySchema as lazySchema6,
809
+ resolve as resolve2,
810
+ zodSchema as zodSchema6
811
+ } from "@ai-sdk/provider-utils";
812
+ var GatewaySpendReport = class {
813
+ constructor(config) {
814
+ this.config = config;
815
+ }
816
+ async getSpendReport(params) {
817
+ try {
818
+ const baseUrl = new URL(this.config.baseURL);
819
+ const searchParams = new URLSearchParams();
820
+ searchParams.set("start_date", params.startDate);
821
+ searchParams.set("end_date", params.endDate);
822
+ if (params.groupBy) {
823
+ searchParams.set("group_by", params.groupBy);
824
+ }
825
+ if (params.datePart) {
826
+ searchParams.set("date_part", params.datePart);
827
+ }
828
+ if (params.userId) {
829
+ searchParams.set("user_id", params.userId);
830
+ }
831
+ if (params.model) {
832
+ searchParams.set("model", params.model);
833
+ }
834
+ if (params.provider) {
835
+ searchParams.set("provider", params.provider);
836
+ }
837
+ if (params.credentialType) {
838
+ searchParams.set("credential_type", params.credentialType);
839
+ }
840
+ if (params.tags && params.tags.length > 0) {
841
+ searchParams.set("tags", params.tags.join(","));
842
+ }
843
+ const { value } = await getFromApi2({
844
+ url: `${baseUrl.origin}/v1/report?${searchParams.toString()}`,
845
+ validateUrl: false,
846
+ headers: this.config.headers ? await resolve2(this.config.headers) : void 0,
847
+ successfulResponseHandler: createJsonResponseHandler2(
848
+ gatewaySpendReportResponseSchema
849
+ ),
850
+ failedResponseHandler: createJsonErrorResponseHandler2({
851
+ errorSchema: z.any(),
852
+ errorToMessage: (data) => {
853
+ var _a12;
854
+ return (_a12 = getErrorMessage2(data)) != null ? _a12 : "unknown error";
855
+ }
856
+ }),
857
+ fetch: this.config.fetch
858
+ });
859
+ return value;
860
+ } catch (error) {
861
+ throw await asGatewayError(error);
862
+ }
863
+ }
864
+ };
865
+ var gatewaySpendReportResponseSchema = lazySchema6(
866
+ () => zodSchema6(
867
+ z.object({
868
+ results: z.array(
869
+ z.object({
870
+ day: z.string().optional(),
871
+ hour: z.string().optional(),
872
+ user: z.string().optional(),
873
+ model: z.string().optional(),
874
+ tag: z.string().optional(),
875
+ provider: z.string().optional(),
876
+ credential_type: z.enum(["byok", "system"]).optional(),
877
+ total_cost: z.number(),
878
+ market_cost: z.number().optional(),
879
+ input_tokens: z.number().optional(),
880
+ output_tokens: z.number().optional(),
881
+ cached_input_tokens: z.number().optional(),
882
+ cache_creation_input_tokens: z.number().optional(),
883
+ reasoning_tokens: z.number().optional(),
884
+ request_count: z.number().optional()
885
+ }).transform(
886
+ ({
887
+ credential_type,
888
+ total_cost,
889
+ market_cost,
890
+ input_tokens,
891
+ output_tokens,
892
+ cached_input_tokens,
893
+ cache_creation_input_tokens,
894
+ reasoning_tokens,
895
+ request_count,
896
+ ...rest
897
+ }) => ({
898
+ ...rest,
899
+ ...credential_type !== void 0 ? { credentialType: credential_type } : {},
900
+ totalCost: total_cost,
901
+ ...market_cost !== void 0 ? { marketCost: market_cost } : {},
902
+ ...input_tokens !== void 0 ? { inputTokens: input_tokens } : {},
903
+ ...output_tokens !== void 0 ? { outputTokens: output_tokens } : {},
904
+ ...cached_input_tokens !== void 0 ? { cachedInputTokens: cached_input_tokens } : {},
905
+ ...cache_creation_input_tokens !== void 0 ? { cacheCreationInputTokens: cache_creation_input_tokens } : {},
906
+ ...reasoning_tokens !== void 0 ? { reasoningTokens: reasoning_tokens } : {},
907
+ ...request_count !== void 0 ? { requestCount: request_count } : {}
908
+ })
909
+ )
910
+ )
911
+ })
912
+ )
913
+ );
914
+
915
+ // src/gateway-generation-info.ts
916
+ import {
917
+ createJsonErrorResponseHandler as createJsonErrorResponseHandler3,
918
+ createJsonResponseHandler as createJsonResponseHandler3,
919
+ getErrorMessage as getErrorMessage3,
920
+ getFromApi as getFromApi3,
921
+ lazySchema as lazySchema7,
922
+ resolve as resolve3,
923
+ zodSchema as zodSchema7
924
+ } from "@ai-sdk/provider-utils";
925
+ var GatewayGenerationInfoFetcher = class {
926
+ constructor(config) {
927
+ this.config = config;
928
+ }
929
+ async getGenerationInfo(params) {
930
+ try {
931
+ const baseUrl = new URL(this.config.baseURL);
932
+ const { value } = await getFromApi3({
933
+ url: `${baseUrl.origin}/v1/generation?id=${encodeURIComponent(params.id)}`,
934
+ validateUrl: false,
935
+ headers: this.config.headers ? await resolve3(this.config.headers) : void 0,
936
+ successfulResponseHandler: createJsonResponseHandler3(
937
+ gatewayGenerationInfoResponseSchema
938
+ ),
939
+ failedResponseHandler: createJsonErrorResponseHandler3({
940
+ errorSchema: z.any(),
941
+ errorToMessage: (data) => {
942
+ var _a12;
943
+ return (_a12 = getErrorMessage3(data)) != null ? _a12 : "unknown error";
944
+ }
945
+ }),
946
+ fetch: this.config.fetch
947
+ });
948
+ return value;
949
+ } catch (error) {
950
+ throw await asGatewayError(error);
951
+ }
952
+ }
953
+ };
954
+ var gatewayGenerationInfoResponseSchema = lazySchema7(
955
+ () => zodSchema7(
956
+ z.object({
957
+ data: z.object({
958
+ id: z.string(),
959
+ total_cost: z.number(),
960
+ upstream_inference_cost: z.number(),
961
+ usage: z.number(),
962
+ created_at: z.string(),
963
+ model: z.string(),
964
+ is_byok: z.boolean(),
965
+ provider_name: z.string(),
966
+ streamed: z.boolean(),
967
+ finish_reason: z.string(),
968
+ latency: z.number(),
969
+ generation_time: z.number(),
970
+ native_tokens_prompt: z.number(),
971
+ native_tokens_completion: z.number(),
972
+ native_tokens_reasoning: z.number(),
973
+ native_tokens_cached: z.number(),
974
+ native_tokens_cache_creation: z.number(),
975
+ billable_web_search_calls: z.number()
976
+ }).transform(
977
+ ({
978
+ total_cost,
979
+ upstream_inference_cost,
980
+ created_at,
981
+ is_byok,
982
+ provider_name,
983
+ finish_reason,
984
+ generation_time,
985
+ native_tokens_prompt,
986
+ native_tokens_completion,
987
+ native_tokens_reasoning,
988
+ native_tokens_cached,
989
+ native_tokens_cache_creation,
990
+ billable_web_search_calls,
991
+ ...rest
992
+ }) => ({
993
+ ...rest,
994
+ totalCost: total_cost,
995
+ upstreamInferenceCost: upstream_inference_cost,
996
+ createdAt: created_at,
997
+ isByok: is_byok,
998
+ providerName: provider_name,
999
+ finishReason: finish_reason,
1000
+ generationTime: generation_time,
1001
+ promptTokens: native_tokens_prompt,
1002
+ completionTokens: native_tokens_completion,
1003
+ reasoningTokens: native_tokens_reasoning,
1004
+ cachedTokens: native_tokens_cached,
1005
+ cacheCreationTokens: native_tokens_cache_creation,
1006
+ billableWebSearchCalls: billable_web_search_calls
1007
+ })
1008
+ )
1009
+ }).transform(({ data }) => data)
1010
+ )
1011
+ );
1012
+
1013
+ // src/gateway-batch.ts
1014
+ import {
1015
+ InvalidArgumentError,
1016
+ UnsupportedFunctionalityError
1017
+ } from "@ai-sdk/provider";
1018
+ import {
1019
+ combineHeaders,
1020
+ convertAsyncIteratorToReadableStream,
1021
+ createJsonErrorResponseHandler as createJsonErrorResponseHandler4,
1022
+ createJsonLinesResponseHandler,
1023
+ createJsonResponseHandler as createJsonResponseHandler4,
1024
+ getErrorMessage as getErrorMessage4,
1025
+ normalizeBatchRequestCounts,
1026
+ postJsonToApi,
1027
+ resolve as resolve4
1028
+ } from "@ai-sdk/provider-utils";
1029
+ var GatewayBatch = class {
1030
+ constructor(config) {
1031
+ this.config = config;
1032
+ this.specificationVersion = "v4";
1033
+ this.supportedUrls = { "*/*": [/.*/] };
1034
+ this.provider = `${config.provider}.batch`;
1035
+ }
1036
+ /**
1037
+ * Starts a durable batch of text-generation requests through the Gateway's
1038
+ * async batch surface (`POST {baseURL}/batch/start`). The returned
1039
+ * `batchId` is the Gateway job id — provider-native batch ids stay
1040
+ * server-side, so status and results always route back through the
1041
+ * Gateway job.
1042
+ */
1043
+ async doStartBatch({
1044
+ requests,
1045
+ providerOptions,
1046
+ headers,
1047
+ abortSignal,
1048
+ webhookUrl
1049
+ }) {
1050
+ var _a12;
1051
+ assertTextBatchRequests(requests);
1052
+ const modelId = validateSingleModel(requests);
1053
+ const resolvedHeaders = this.config.headers ? await resolve4(this.config.headers) : void 0;
1054
+ const idempotencyKey = getGatewayBatchIdempotencyKey(providerOptions);
1055
+ const forwardedProviderOptions = omitGatewayIdempotencyKey(providerOptions);
1056
+ try {
1057
+ const { value: responseBody } = await postJsonToApi({
1058
+ url: this.getBatchUrl("start"),
1059
+ headers: combineHeaders(
1060
+ resolvedHeaders,
1061
+ headers,
1062
+ { "ai-model-id": modelId },
1063
+ await resolve4(this.config.o11yHeaders),
1064
+ idempotencyKey != null ? { "idempotency-key": idempotencyKey } : void 0
1065
+ ),
1066
+ body: {
1067
+ ...webhookUrl != null && { callbackUrl: webhookUrl },
1068
+ requests: requests.map((request) => ({
1069
+ id: request.id,
1070
+ type: request.type,
1071
+ modelId: request.modelId,
1072
+ options: maybeEncodeBatchFileParts(request.options)
1073
+ })),
1074
+ ...forwardedProviderOptions != null && {
1075
+ providerOptions: forwardedProviderOptions
1076
+ }
1077
+ },
1078
+ successfulResponseHandler: createJsonResponseHandler4(
1079
+ gatewayBatchStartResponseSchema
1080
+ ),
1081
+ failedResponseHandler: createJsonErrorResponseHandler4({
1082
+ errorSchema: z.any(),
1083
+ errorToMessage: (data) => {
1084
+ var _a13;
1085
+ return (_a13 = getErrorMessage4(data)) != null ? _a13 : "unknown error";
1086
+ }
1087
+ }),
1088
+ ...abortSignal && { abortSignal },
1089
+ fetch: this.config.fetch
1090
+ });
1091
+ return {
1092
+ batchId: responseBody.batchId,
1093
+ ...convertGatewayBatchStatus(responseBody),
1094
+ warnings: (_a12 = responseBody.warnings) != null ? _a12 : []
1095
+ };
1096
+ } catch (error) {
1097
+ if (isAbortOrTimeoutError(error)) {
1098
+ throw error;
1099
+ }
1100
+ throw await asGatewayError(
1101
+ error,
1102
+ await parseAuthMethod(resolvedHeaders != null ? resolvedHeaders : {})
1103
+ );
1104
+ }
1105
+ }
1106
+ /**
1107
+ * Retrieves the lifecycle status of a Gateway batch job
1108
+ * (`POST {baseURL}/batch/status`).
1109
+ */
1110
+ async doGetBatchStatus({
1111
+ batchId,
1112
+ headers,
1113
+ abortSignal
1114
+ }) {
1115
+ const resolvedHeaders = this.config.headers ? await resolve4(this.config.headers) : void 0;
1116
+ try {
1117
+ const { value: responseBody } = await postJsonToApi({
1118
+ url: this.getBatchUrl("status"),
1119
+ headers: combineHeaders(
1120
+ resolvedHeaders,
1121
+ headers,
1122
+ await resolve4(this.config.o11yHeaders)
1123
+ ),
1124
+ body: { batchId },
1125
+ successfulResponseHandler: createJsonResponseHandler4(
1126
+ gatewayBatchStatusResponseSchema
1127
+ ),
1128
+ failedResponseHandler: createJsonErrorResponseHandler4({
1129
+ errorSchema: z.any(),
1130
+ errorToMessage: (data) => {
1131
+ var _a12;
1132
+ return (_a12 = getErrorMessage4(data)) != null ? _a12 : "unknown error";
1133
+ }
1134
+ }),
1135
+ ...abortSignal && { abortSignal },
1136
+ fetch: this.config.fetch
1137
+ });
1138
+ return convertGatewayBatchStatus(responseBody);
1139
+ } catch (error) {
1140
+ if (isAbortOrTimeoutError(error)) {
1141
+ throw error;
1142
+ }
1143
+ throw await asGatewayError(
1144
+ error,
1145
+ await parseAuthMethod(resolvedHeaders != null ? resolvedHeaders : {})
1146
+ );
1147
+ }
1148
+ }
1149
+ /**
1150
+ * Streams the per-request results of a terminal Gateway batch job
1151
+ * (`POST {baseURL}/batch/results`, `application/x-ndjson`: one
1152
+ * `BatchV4ItemResult` JSON object per line). Items are validated minimally
1153
+ * (id + status) and passed through — the Gateway sanitizes them
1154
+ * server-side. The route responds 400 while the batch is non-terminal.
1155
+ */
1156
+ async doGetBatchResults({
1157
+ batchId,
1158
+ headers,
1159
+ abortSignal
1160
+ }) {
1161
+ const resolvedHeaders = this.config.headers ? await resolve4(this.config.headers) : void 0;
1162
+ try {
1163
+ const { value: lines } = await postJsonToApi({
1164
+ url: this.getBatchUrl("results"),
1165
+ headers: combineHeaders(
1166
+ resolvedHeaders,
1167
+ headers,
1168
+ await resolve4(this.config.o11yHeaders)
1169
+ ),
1170
+ body: { batchId },
1171
+ successfulResponseHandler: createJsonLinesResponseHandler(
1172
+ gatewayBatchItemResultLineSchema
1173
+ ),
1174
+ failedResponseHandler: createJsonErrorResponseHandler4({
1175
+ errorSchema: z.any(),
1176
+ errorToMessage: (data) => {
1177
+ var _a12;
1178
+ return (_a12 = getErrorMessage4(data)) != null ? _a12 : "unknown error";
1179
+ }
1180
+ }),
1181
+ ...abortSignal && { abortSignal },
1182
+ fetch: this.config.fetch
1183
+ });
1184
+ return convertAsyncIteratorToReadableStream(
1185
+ convertGatewayBatchResultLines(lines)
1186
+ );
1187
+ } catch (error) {
1188
+ if (isAbortOrTimeoutError(error)) {
1189
+ throw error;
1190
+ }
1191
+ throw await asGatewayError(
1192
+ error,
1193
+ await parseAuthMethod(resolvedHeaders != null ? resolvedHeaders : {})
1194
+ );
1195
+ }
1196
+ }
1197
+ getBatchUrl(path) {
1198
+ return `${this.config.baseURL}/batch/${path}`;
1199
+ }
1200
+ };
1201
+ function maybeEncodeBatchFileParts(options) {
1202
+ for (const message of options.prompt) {
1203
+ if (!Array.isArray(message.content)) {
1204
+ continue;
1205
+ }
1206
+ for (const part of message.content) {
1207
+ if (part.type === "file" || part.type === "reasoning-file") {
1208
+ part.data = maybeBase64EncodeFileData(part.data);
1209
+ } else if (part.type === "tool-result" && part.output.type === "content") {
1210
+ for (const contentPart of part.output.value) {
1211
+ if (contentPart.type === "file") {
1212
+ contentPart.data = maybeBase64EncodeFileData(contentPart.data);
1213
+ }
1214
+ }
1215
+ }
1216
+ }
1217
+ }
1218
+ return options;
1219
+ }
1220
+ function maybeBase64EncodeFileData(data) {
1221
+ if (data.type === "data") {
1222
+ const bytes = data.data;
1223
+ if (bytes instanceof Uint8Array) {
1224
+ return { ...data, data: Buffer.from(bytes).toString("base64") };
1225
+ }
1226
+ }
1227
+ return data;
1228
+ }
1229
+ function validateSingleModel(requests) {
1230
+ var _a12;
1231
+ const modelId = (_a12 = requests[0]) == null ? void 0 : _a12.modelId;
1232
+ if (modelId == null) {
1233
+ throw new InvalidArgumentError({
1234
+ argument: "requests",
1235
+ message: "The AI Gateway Batch API requires at least one request."
1236
+ });
1237
+ }
1238
+ for (const request of requests) {
1239
+ if (request.modelId !== modelId) {
1240
+ throw new InvalidArgumentError({
1241
+ argument: "requests",
1242
+ message: `The AI Gateway Batch API requires all requests in a batch to use the same model. Found "${modelId}" and "${request.modelId}".`
1243
+ });
1244
+ }
1245
+ }
1246
+ return modelId;
1247
+ }
1248
+ function assertTextBatchRequests(requests) {
1249
+ for (const request of requests) {
1250
+ const requestType = request.type;
1251
+ if (requestType !== "text") {
1252
+ throw new UnsupportedFunctionalityError({
1253
+ functionality: `batch request type: ${requestType}`,
1254
+ message: `The AI Gateway Batch API does not support batch requests with type "${requestType}".`
1255
+ });
1256
+ }
1257
+ }
1258
+ }
1259
+ function getGatewayBatchIdempotencyKey(providerOptions) {
1260
+ const gatewayOptions = providerOptions == null ? void 0 : providerOptions.gateway;
1261
+ if (gatewayOptions == null || typeof gatewayOptions !== "object" || Array.isArray(gatewayOptions)) {
1262
+ return void 0;
1263
+ }
1264
+ const key = gatewayOptions.idempotencyKey;
1265
+ return typeof key === "string" && key.length > 0 ? key : void 0;
1266
+ }
1267
+ function omitGatewayIdempotencyKey(providerOptions) {
1268
+ const gatewayOptions = providerOptions == null ? void 0 : providerOptions.gateway;
1269
+ if (gatewayOptions == null || typeof gatewayOptions !== "object" || Array.isArray(gatewayOptions) || !("idempotencyKey" in gatewayOptions)) {
1270
+ return providerOptions;
1271
+ }
1272
+ const { idempotencyKey: _idempotencyKey, ...restGatewayOptions } = gatewayOptions;
1273
+ const restProviderOptions = { ...providerOptions };
1274
+ if (Object.keys(restGatewayOptions).length === 0) {
1275
+ delete restProviderOptions.gateway;
1276
+ } else {
1277
+ restProviderOptions.gateway = restGatewayOptions;
1278
+ }
1279
+ if (Object.keys(restProviderOptions).length === 0) {
1280
+ return void 0;
1281
+ }
1282
+ return restProviderOptions;
1283
+ }
1284
+ function isAbortOrTimeoutError(error) {
1285
+ if (!(error instanceof Error || error instanceof DOMException)) {
1286
+ return false;
1287
+ }
1288
+ return error.name === "AbortError" || error.name === "TimeoutError";
1289
+ }
1290
+ function convertGatewayBatchStatus(body) {
1291
+ var _a12, _b12, _c, _d;
1292
+ const requestCounts = normalizeBatchRequestCounts({
1293
+ total: (_a12 = body.requestCounts) == null ? void 0 : _a12.total,
1294
+ pending: (_b12 = body.requestCounts) == null ? void 0 : _b12.pending,
1295
+ completed: (_c = body.requestCounts) == null ? void 0 : _c.completed,
1296
+ failed: (_d = body.requestCounts) == null ? void 0 : _d.failed
1297
+ });
1298
+ return {
1299
+ status: body.status,
1300
+ ...body.rawStatus != null && { rawStatus: body.rawStatus },
1301
+ ...requestCounts != null && { requestCounts },
1302
+ ...body.error != null && {
1303
+ error: {
1304
+ message: body.error.message,
1305
+ ...body.error.type != null && { type: body.error.type },
1306
+ ...body.error.code != null && { code: body.error.code },
1307
+ ...body.error.statusCode != null && {
1308
+ statusCode: body.error.statusCode
1309
+ }
1310
+ }
1311
+ },
1312
+ ...body.createdAt != null && { createdAt: body.createdAt },
1313
+ ...body.expiresAt != null && { expiresAt: body.expiresAt },
1314
+ ...body.providerMetadata != null && {
1315
+ providerMetadata: body.providerMetadata
1316
+ }
1317
+ };
1318
+ }
1319
+ async function* convertGatewayBatchResultLines(lines) {
1320
+ var _a12;
1321
+ for await (const line of lines) {
1322
+ const item = line;
1323
+ if (item.status === "succeeded") {
1324
+ const response = (_a12 = item.result) == null ? void 0 : _a12.response;
1325
+ if (response !== void 0 && typeof response.timestamp === "string") {
1326
+ response.timestamp = new Date(response.timestamp);
1327
+ }
1328
+ }
1329
+ yield item;
1330
+ }
1331
+ }
1332
+ var gatewayBatchItemResultLineSchema = z.object({
1333
+ type: z.literal("text"),
1334
+ id: z.string(),
1335
+ status: z.enum(["cancelled", "expired", "failed", "succeeded"])
1336
+ }).catchall(z.unknown());
1337
+ var gatewayBatchErrorSchema = z.object({
1338
+ message: z.string(),
1339
+ type: z.string().nullish(),
1340
+ code: z.string().nullish(),
1341
+ statusCode: z.number().nullish()
1342
+ });
1343
+ var gatewayBatchRequestCountsSchema = z.object({
1344
+ total: z.number().nullish(),
1345
+ pending: z.number().nullish(),
1346
+ completed: z.number().nullish(),
1347
+ failed: z.number().nullish()
1348
+ });
1349
+ var gatewayBatchProviderMetadataSchema = z.record(
1350
+ z.string(),
1351
+ z.record(z.string(), z.unknown())
1352
+ );
1353
+ var gatewayBatchStatusFieldsSchema = z.object({
1354
+ status: z.enum(["completed", "failed", "pending"]),
1355
+ rawStatus: z.string().nullish(),
1356
+ requestCounts: gatewayBatchRequestCountsSchema.nullish(),
1357
+ error: gatewayBatchErrorSchema.nullish(),
1358
+ createdAt: z.string().nullish(),
1359
+ expiresAt: z.string().nullish(),
1360
+ providerMetadata: gatewayBatchProviderMetadataSchema.nullish()
1361
+ });
1362
+ var gatewayBatchStartResponseSchema = gatewayBatchStatusFieldsSchema.extend({
1363
+ batchId: z.string(),
1364
+ warnings: z.array(
1365
+ z.object({
1366
+ requestId: z.string().nullish(),
1367
+ warning: z.unknown()
1368
+ }).catchall(z.unknown())
1369
+ ).nullish()
1370
+ });
1371
+ var gatewayBatchStatusResponseSchema = gatewayBatchStatusFieldsSchema;
1372
+
1373
+ // src/gateway-language-model.ts
1374
+ import {
1375
+ combineHeaders as combineHeaders2,
1376
+ createEventSourceResponseHandler,
1377
+ createJsonErrorResponseHandler as createJsonErrorResponseHandler5,
1378
+ createJsonResponseHandler as createJsonResponseHandler5,
1379
+ getErrorMessage as getErrorMessage5,
1380
+ postJsonToApi as postJsonToApi2,
1381
+ resolve as resolve5,
1382
+ serializeModelOptions,
1383
+ WORKFLOW_SERIALIZE,
1384
+ WORKFLOW_DESERIALIZE
1385
+ } from "@ai-sdk/provider-utils";
1386
+ var GatewayLanguageModel = class _GatewayLanguageModel {
1387
+ constructor(modelId, config) {
1388
+ this.modelId = modelId;
1389
+ this.config = config;
1390
+ this.specificationVersion = "v4";
1391
+ this.supportedUrls = { "*/*": [/.*/] };
1392
+ }
1393
+ static [WORKFLOW_SERIALIZE](model) {
1394
+ return serializeModelOptions({
1395
+ modelId: model.modelId,
1396
+ config: model.config
1397
+ });
1398
+ }
1399
+ static [WORKFLOW_DESERIALIZE](options) {
1400
+ return new _GatewayLanguageModel(options.modelId, options.config);
1401
+ }
1402
+ get provider() {
1403
+ return this.config.provider;
1404
+ }
1405
+ async getArgs(options) {
1406
+ const { abortSignal: _abortSignal, ...optionsWithoutSignal } = options;
1407
+ return {
1408
+ args: this.maybeEncodeFileParts(optionsWithoutSignal),
1409
+ warnings: []
1410
+ };
1411
+ }
1412
+ async doGenerate(options) {
1413
+ var _a12;
1414
+ const { args, warnings } = await this.getArgs(options);
1415
+ const { abortSignal } = options;
1416
+ const resolvedHeaders = this.config.headers ? await resolve5(this.config.headers) : void 0;
1417
+ try {
1418
+ const {
1419
+ responseHeaders,
1420
+ value: responseBody,
1421
+ rawValue: rawResponse
1422
+ } = await postJsonToApi2({
1423
+ url: this.getUrl(),
1424
+ headers: combineHeaders2(
1425
+ resolvedHeaders,
1426
+ options.headers,
1427
+ this.getModelConfigHeaders(this.modelId, false),
1428
+ await resolve5(this.config.o11yHeaders)
1429
+ ),
1430
+ body: args,
1431
+ successfulResponseHandler: createJsonResponseHandler5(z.any()),
1432
+ failedResponseHandler: createJsonErrorResponseHandler5({
1433
+ errorSchema: z.any(),
1434
+ errorToMessage: (data) => {
1435
+ var _a13;
1436
+ return (_a13 = getErrorMessage5(data)) != null ? _a13 : "unknown error";
1437
+ }
1438
+ }),
1439
+ ...abortSignal && { abortSignal },
1440
+ fetch: this.config.fetch
1441
+ });
1442
+ return {
1443
+ ...responseBody,
1444
+ request: { body: args },
1445
+ response: { headers: responseHeaders, body: rawResponse },
1446
+ warnings: [...(_a12 = responseBody.warnings) != null ? _a12 : [], ...warnings]
1447
+ };
1448
+ } catch (error) {
1449
+ throw await asGatewayError(
1450
+ error,
1451
+ await parseAuthMethod(resolvedHeaders != null ? resolvedHeaders : {})
1452
+ );
1453
+ }
1454
+ }
1455
+ async doStream(options) {
1456
+ const { args, warnings } = await this.getArgs(options);
1457
+ const { abortSignal } = options;
1458
+ const resolvedHeaders = this.config.headers ? await resolve5(this.config.headers) : void 0;
1459
+ try {
1460
+ const { value: response, responseHeaders } = await postJsonToApi2({
1461
+ url: this.getUrl(),
1462
+ headers: combineHeaders2(
1463
+ resolvedHeaders,
1464
+ options.headers,
1465
+ this.getModelConfigHeaders(this.modelId, true),
1466
+ await resolve5(this.config.o11yHeaders)
1467
+ ),
1468
+ body: args,
1469
+ successfulResponseHandler: createEventSourceResponseHandler(z.any()),
1470
+ failedResponseHandler: createJsonErrorResponseHandler5({
1471
+ errorSchema: z.any(),
1472
+ errorToMessage: (data) => {
1473
+ var _a12;
1474
+ return (_a12 = getErrorMessage5(data)) != null ? _a12 : "unknown error";
1475
+ }
1476
+ }),
1477
+ ...abortSignal && { abortSignal },
1478
+ fetch: this.config.fetch
1479
+ });
1480
+ return {
1481
+ stream: response.pipeThrough(
1482
+ new TransformStream({
1483
+ start(controller) {
1484
+ if (warnings.length > 0) {
1485
+ controller.enqueue({ type: "stream-start", warnings });
1486
+ }
1487
+ },
1488
+ transform(chunk, controller) {
1489
+ if (chunk.success) {
1490
+ const streamPart = chunk.value;
1491
+ if (streamPart.type === "raw" && !options.includeRawChunks) {
1492
+ return;
1493
+ }
1494
+ if (streamPart.type === "response-metadata" && streamPart.timestamp && typeof streamPart.timestamp === "string") {
1495
+ streamPart.timestamp = new Date(streamPart.timestamp);
1496
+ }
1497
+ controller.enqueue(streamPart);
1498
+ } else {
1499
+ controller.error(
1500
+ chunk.error
1501
+ );
1502
+ }
1503
+ }
1504
+ })
1505
+ ),
1506
+ request: { body: args },
1507
+ response: { headers: responseHeaders }
1508
+ };
1509
+ } catch (error) {
1510
+ throw await asGatewayError(
1511
+ error,
1512
+ await parseAuthMethod(resolvedHeaders != null ? resolvedHeaders : {})
1513
+ );
1514
+ }
1515
+ }
1516
+ /**
1517
+ * Encodes inline `Uint8Array` file data to a base64 string in place.
1518
+ * @param options - The options to encode.
1519
+ * @returns The options with the file data encoded.
1520
+ */
1521
+ maybeEncodeFileParts(options) {
1522
+ for (const message of options.prompt) {
1523
+ if (!Array.isArray(message.content)) {
1524
+ continue;
1525
+ }
1526
+ for (const part of message.content) {
1527
+ if (part.type === "file" || part.type === "reasoning-file") {
1528
+ part.data = maybeBase64EncodeFileData2(part.data);
1529
+ } else if (part.type === "tool-result" && part.output.type === "content") {
1530
+ for (const contentPart of part.output.value) {
1531
+ if (contentPart.type === "file") {
1532
+ contentPart.data = maybeBase64EncodeFileData2(contentPart.data);
1533
+ }
1534
+ }
1535
+ }
1536
+ }
1537
+ }
1538
+ return options;
1539
+ }
1540
+ getUrl() {
1541
+ return `${this.config.baseURL}/language-model`;
1542
+ }
1543
+ getModelConfigHeaders(modelId, streaming) {
1544
+ return {
1545
+ "ai-language-model-specification-version": "4",
1546
+ "ai-language-model-id": modelId,
1547
+ "ai-language-model-streaming": String(streaming)
1548
+ };
1549
+ }
1550
+ };
1551
+ function maybeBase64EncodeFileData2(data) {
1552
+ if (data.type === "data") {
1553
+ const bytes = data.data;
1554
+ if (bytes instanceof Uint8Array) {
1555
+ return { ...data, data: Buffer.from(bytes).toString("base64") };
1556
+ }
1557
+ }
1558
+ return data;
1559
+ }
1560
+
1561
+ // src/gateway-embedding-model.ts
1562
+ import {
1563
+ combineHeaders as combineHeaders3,
1564
+ createJsonErrorResponseHandler as createJsonErrorResponseHandler6,
1565
+ createJsonResponseHandler as createJsonResponseHandler6,
1566
+ getErrorMessage as getErrorMessage6,
1567
+ lazySchema as lazySchema8,
1568
+ postJsonToApi as postJsonToApi3,
1569
+ resolve as resolve6,
1570
+ serializeModelOptions as serializeModelOptions2,
1571
+ WORKFLOW_SERIALIZE as WORKFLOW_SERIALIZE2,
1572
+ WORKFLOW_DESERIALIZE as WORKFLOW_DESERIALIZE2,
1573
+ zodSchema as zodSchema8
1574
+ } from "@ai-sdk/provider-utils";
1575
+ var GatewayEmbeddingModel = class _GatewayEmbeddingModel {
1576
+ constructor(modelId, config) {
1577
+ this.modelId = modelId;
1578
+ this.config = config;
1579
+ this.specificationVersion = "v4";
1580
+ this.maxEmbeddingsPerCall = 2048;
1581
+ this.supportsParallelCalls = true;
1582
+ }
1583
+ static [WORKFLOW_SERIALIZE2](model) {
1584
+ return serializeModelOptions2({
1585
+ modelId: model.modelId,
1586
+ config: model.config
1587
+ });
1588
+ }
1589
+ static [WORKFLOW_DESERIALIZE2](options) {
1590
+ return new _GatewayEmbeddingModel(options.modelId, options.config);
1591
+ }
1592
+ get provider() {
1593
+ return this.config.provider;
1594
+ }
1595
+ async doEmbed({
1596
+ values,
1597
+ headers,
1598
+ abortSignal,
1599
+ providerOptions
1600
+ }) {
1601
+ var _a12, _b12;
1602
+ const resolvedHeaders = this.config.headers ? await resolve6(this.config.headers) : void 0;
1603
+ try {
1604
+ const {
1605
+ responseHeaders,
1606
+ value: responseBody,
1607
+ rawValue
1608
+ } = await postJsonToApi3({
1609
+ url: this.getUrl(),
1610
+ headers: combineHeaders3(
1611
+ resolvedHeaders,
1612
+ headers != null ? headers : {},
1613
+ this.getModelConfigHeaders(),
1614
+ await resolve6(this.config.o11yHeaders)
1615
+ ),
1616
+ body: {
1617
+ values,
1618
+ ...providerOptions ? { providerOptions } : {}
1619
+ },
1620
+ successfulResponseHandler: createJsonResponseHandler6(
1621
+ gatewayEmbeddingResponseSchema
1622
+ ),
1623
+ failedResponseHandler: createJsonErrorResponseHandler6({
1624
+ errorSchema: z.any(),
1625
+ errorToMessage: (data) => {
1626
+ var _a13;
1627
+ return (_a13 = getErrorMessage6(data)) != null ? _a13 : "unknown error";
1628
+ }
1629
+ }),
1630
+ ...abortSignal && { abortSignal },
1631
+ fetch: this.config.fetch
1632
+ });
1633
+ return {
1634
+ embeddings: responseBody.embeddings,
1635
+ usage: (_a12 = responseBody.usage) != null ? _a12 : void 0,
1636
+ providerMetadata: responseBody.providerMetadata,
1637
+ response: { headers: responseHeaders, body: rawValue },
1638
+ warnings: (_b12 = responseBody.warnings) != null ? _b12 : []
1639
+ };
1640
+ } catch (error) {
1641
+ throw await asGatewayError(
1642
+ error,
1643
+ await parseAuthMethod(resolvedHeaders != null ? resolvedHeaders : {})
1644
+ );
1645
+ }
1646
+ }
1647
+ getUrl() {
1648
+ return `${this.config.baseURL}/embedding-model`;
1649
+ }
1650
+ getModelConfigHeaders() {
1651
+ return {
1652
+ "ai-embedding-model-specification-version": "4",
1653
+ "ai-model-id": this.modelId
1654
+ };
1655
+ }
1656
+ };
1657
+ var gatewayEmbeddingWarningSchema = z.discriminatedUnion("type", [
1658
+ z.object({
1659
+ type: z.literal("unsupported"),
1660
+ feature: z.string(),
1661
+ details: z.string().optional()
1662
+ }),
1663
+ z.object({
1664
+ type: z.literal("compatibility"),
1665
+ feature: z.string(),
1666
+ details: z.string().optional()
1667
+ }),
1668
+ z.object({
1669
+ type: z.literal("deprecated"),
1670
+ setting: z.string(),
1671
+ message: z.string()
1672
+ }),
1673
+ z.object({
1674
+ type: z.literal("other"),
1675
+ message: z.string()
1676
+ })
1677
+ ]);
1678
+ var gatewayEmbeddingResponseSchema = lazySchema8(
1679
+ () => zodSchema8(
1680
+ z.object({
1681
+ embeddings: z.array(z.array(z.number())),
1682
+ usage: z.object({ tokens: z.number() }).nullish(),
1683
+ warnings: z.array(gatewayEmbeddingWarningSchema).optional(),
1684
+ providerMetadata: z.record(z.string(), z.record(z.string(), z.unknown())).optional()
1685
+ })
1686
+ )
1687
+ );
1688
+
1689
+ // src/gateway-image-model.ts
1690
+ import {
1691
+ combineHeaders as combineHeaders4,
1692
+ convertUint8ArrayToBase64,
1693
+ createJsonErrorResponseHandler as createJsonErrorResponseHandler7,
1694
+ createJsonResponseHandler as createJsonResponseHandler7,
1695
+ getErrorMessage as getErrorMessage7,
1696
+ postJsonToApi as postJsonToApi4,
1697
+ resolve as resolve7,
1698
+ serializeModelOptions as serializeModelOptions3,
1699
+ WORKFLOW_SERIALIZE as WORKFLOW_SERIALIZE3,
1700
+ WORKFLOW_DESERIALIZE as WORKFLOW_DESERIALIZE3
1701
+ } from "@ai-sdk/provider-utils";
1702
+ var GatewayImageModel = class _GatewayImageModel {
1703
+ constructor(modelId, config) {
1704
+ this.modelId = modelId;
1705
+ this.config = config;
1706
+ this.specificationVersion = "v4";
1707
+ // Set a very large number to prevent client-side splitting of requests
1708
+ this.maxImagesPerCall = Number.MAX_SAFE_INTEGER;
1709
+ }
1710
+ static [WORKFLOW_SERIALIZE3](model) {
1711
+ return serializeModelOptions3({
1712
+ modelId: model.modelId,
1713
+ config: model.config
1714
+ });
1715
+ }
1716
+ static [WORKFLOW_DESERIALIZE3](options) {
1717
+ return new _GatewayImageModel(options.modelId, options.config);
1718
+ }
1719
+ get provider() {
1720
+ return this.config.provider;
1721
+ }
1722
+ async doGenerate({
1723
+ prompt,
1724
+ n,
1725
+ size,
1726
+ aspectRatio,
1727
+ seed,
1728
+ files,
1729
+ mask,
1730
+ providerOptions,
1731
+ headers,
1732
+ abortSignal
1733
+ }) {
1734
+ var _a12, _b12, _c, _d;
1735
+ const resolvedHeaders = this.config.headers ? await resolve7(this.config.headers) : void 0;
1736
+ try {
1737
+ const { responseHeaders, value: responseBody } = await postJsonToApi4({
1738
+ url: this.getUrl(),
1739
+ headers: combineHeaders4(
1740
+ resolvedHeaders,
1741
+ headers != null ? headers : {},
1742
+ this.getModelConfigHeaders(),
1743
+ await resolve7(this.config.o11yHeaders)
1744
+ ),
1745
+ body: {
1746
+ prompt,
1747
+ n,
1748
+ ...size && { size },
1749
+ ...aspectRatio && { aspectRatio },
1750
+ ...seed && { seed },
1751
+ ...providerOptions && { providerOptions },
1752
+ ...files && {
1753
+ files: files.map((file) => maybeEncodeImageFile(file))
1754
+ },
1755
+ ...mask && { mask: maybeEncodeImageFile(mask) }
1756
+ },
1757
+ successfulResponseHandler: createJsonResponseHandler7(
1758
+ gatewayImageResponseSchema
1759
+ ),
1760
+ failedResponseHandler: createJsonErrorResponseHandler7({
1761
+ errorSchema: z.any(),
1762
+ errorToMessage: (data) => {
1763
+ var _a13;
1764
+ return (_a13 = getErrorMessage7(data)) != null ? _a13 : "unknown error";
1765
+ }
1766
+ }),
1767
+ ...abortSignal && { abortSignal },
1768
+ fetch: this.config.fetch
1769
+ });
1770
+ return {
1771
+ images: responseBody.images,
1772
+ // Always base64 strings from server
1773
+ ...responseBody.isRetryable != null && {
1774
+ isRetryable: responseBody.isRetryable
1775
+ },
1776
+ warnings: (_a12 = responseBody.warnings) != null ? _a12 : [],
1777
+ providerMetadata: responseBody.providerMetadata,
1778
+ response: {
1779
+ timestamp: /* @__PURE__ */ new Date(),
1780
+ modelId: this.modelId,
1781
+ headers: responseHeaders
1782
+ },
1783
+ ...responseBody.usage != null && {
1784
+ usage: {
1785
+ inputTokens: (_b12 = responseBody.usage.inputTokens) != null ? _b12 : void 0,
1786
+ outputTokens: (_c = responseBody.usage.outputTokens) != null ? _c : void 0,
1787
+ totalTokens: (_d = responseBody.usage.totalTokens) != null ? _d : void 0
1788
+ }
1789
+ }
1790
+ };
1791
+ } catch (error) {
1792
+ throw await asGatewayError(
1793
+ error,
1794
+ await parseAuthMethod(resolvedHeaders != null ? resolvedHeaders : {})
1795
+ );
1796
+ }
1797
+ }
1798
+ getUrl() {
1799
+ return `${this.config.baseURL}/image-model`;
1800
+ }
1801
+ getModelConfigHeaders() {
1802
+ return {
1803
+ "ai-image-model-specification-version": "4",
1804
+ "ai-model-id": this.modelId
1805
+ };
1806
+ }
1807
+ };
1808
+ function maybeEncodeImageFile(file) {
1809
+ if (file.type === "file" && file.data instanceof Uint8Array) {
1810
+ return {
1811
+ ...file,
1812
+ data: convertUint8ArrayToBase64(file.data)
1813
+ };
1814
+ }
1815
+ return file;
1816
+ }
1817
+ var providerMetadataEntrySchema = z.object({
1818
+ images: z.array(z.unknown()).optional()
1819
+ }).catchall(z.unknown());
1820
+ var gatewayImageWarningSchema = z.discriminatedUnion("type", [
1821
+ z.object({
1822
+ type: z.literal("unsupported"),
1823
+ feature: z.string(),
1824
+ details: z.string().optional()
1825
+ }),
1826
+ z.object({
1827
+ type: z.literal("compatibility"),
1828
+ feature: z.string(),
1829
+ details: z.string().optional()
1830
+ }),
1831
+ z.object({
1832
+ type: z.literal("deprecated"),
1833
+ setting: z.string(),
1834
+ message: z.string()
1835
+ }),
1836
+ z.object({
1837
+ type: z.literal("other"),
1838
+ message: z.string()
1839
+ })
1840
+ ]);
1841
+ var gatewayImageUsageSchema = z.object({
1842
+ inputTokens: z.number().nullish(),
1843
+ outputTokens: z.number().nullish(),
1844
+ totalTokens: z.number().nullish()
1845
+ });
1846
+ var gatewayImageResponseSchema = z.object({
1847
+ images: z.array(z.string()),
1848
+ // Always base64 strings over the wire
1849
+ isRetryable: z.boolean().optional(),
1850
+ warnings: z.array(gatewayImageWarningSchema).optional(),
1851
+ providerMetadata: z.record(z.string(), providerMetadataEntrySchema).optional(),
1852
+ usage: gatewayImageUsageSchema.optional()
1853
+ });
1854
+
1855
+ // src/gateway-video-model.ts
1856
+ import {
1857
+ APICallError as APICallError2,
1858
+ getErrorMessage as getErrorMessage8
1859
+ } from "@ai-sdk/provider";
1860
+ import {
1861
+ combineHeaders as combineHeaders5,
1862
+ convertUint8ArrayToBase64 as convertUint8ArrayToBase642,
1863
+ createJsonErrorResponseHandler as createJsonErrorResponseHandler8,
1864
+ createJsonResponseHandler as createJsonResponseHandler8,
1865
+ parseJsonEventStream,
1866
+ postJsonToApi as postJsonToApi5,
1867
+ resolve as resolve8
1868
+ } from "@ai-sdk/provider-utils";
1869
+ var GatewayVideoModel = class {
1870
+ constructor(modelId, config) {
1871
+ this.modelId = modelId;
1872
+ this.config = config;
1873
+ this.specificationVersion = "v4";
1874
+ // Set a very large number to prevent client-side splitting of requests
1875
+ this.maxVideosPerCall = Number.MAX_SAFE_INTEGER;
1876
+ }
1877
+ get provider() {
1878
+ return this.config.provider;
1879
+ }
1880
+ async doGenerate(options) {
1881
+ var _a12, _b12;
1882
+ const { headers, abortSignal } = options;
1883
+ const resolvedHeaders = this.config.headers ? await resolve8(this.config.headers) : void 0;
1884
+ try {
1885
+ const { responseHeaders, value: responseBody } = await postJsonToApi5({
1886
+ url: this.getUrl(),
1887
+ headers: combineHeaders5(
1888
+ resolvedHeaders,
1889
+ headers != null ? headers : {},
1890
+ this.getModelConfigHeaders(),
1891
+ await resolve8(this.config.o11yHeaders),
1892
+ { accept: "text/event-stream" }
1893
+ ),
1894
+ body: this.buildRequestBody(options),
1895
+ successfulResponseHandler: async ({
1896
+ response,
1897
+ url,
1898
+ requestBodyValues
1899
+ }) => {
1900
+ if (response.body == null) {
1901
+ throw new APICallError2({
1902
+ message: "SSE response body is empty",
1903
+ url,
1904
+ requestBodyValues,
1905
+ statusCode: response.status
1906
+ });
1907
+ }
1908
+ const eventStream = parseJsonEventStream({
1909
+ stream: response.body,
1910
+ schema: gatewayVideoEventSchema
1911
+ });
1912
+ const reader = eventStream.getReader();
1913
+ const { done, value: parseResult } = await reader.read();
1914
+ reader.releaseLock();
1915
+ if (done || !parseResult) {
1916
+ throw new APICallError2({
1917
+ message: "SSE stream ended without a data event",
1918
+ url,
1919
+ requestBodyValues,
1920
+ statusCode: response.status
1921
+ });
1922
+ }
1923
+ if (!parseResult.success) {
1924
+ throw new APICallError2({
1925
+ message: "Failed to parse video SSE event",
1926
+ cause: parseResult.error,
1927
+ url,
1928
+ requestBodyValues,
1929
+ statusCode: response.status
1930
+ });
1931
+ }
1932
+ const event = parseResult.value;
1933
+ if (event.type === "error") {
1934
+ throw new APICallError2({
1935
+ message: event.message,
1936
+ statusCode: event.statusCode,
1937
+ url,
1938
+ requestBodyValues,
1939
+ responseHeaders: Object.fromEntries([...response.headers]),
1940
+ responseBody: JSON.stringify(event),
1941
+ data: {
1942
+ error: {
1943
+ message: event.message,
1944
+ type: event.errorType,
1945
+ param: event.param
1946
+ }
1947
+ }
1948
+ });
1949
+ }
1950
+ return {
1951
+ value: {
1952
+ videos: event.videos,
1953
+ warnings: event.warnings,
1954
+ providerMetadata: event.providerMetadata
1955
+ },
1956
+ responseHeaders: Object.fromEntries([...response.headers])
1957
+ };
1958
+ },
1959
+ failedResponseHandler: createJsonErrorResponseHandler8({
1960
+ errorSchema: z.any(),
1961
+ errorToMessage: (data) => {
1962
+ var _a13;
1963
+ return (_a13 = getErrorMessage8(data)) != null ? _a13 : "unknown error";
1964
+ }
1965
+ }),
1966
+ ...abortSignal && { abortSignal },
1967
+ fetch: this.config.fetch
1968
+ });
1969
+ return {
1970
+ videos: responseBody.videos,
1971
+ warnings: (_a12 = responseBody.warnings) != null ? _a12 : [],
1972
+ providerMetadata: (_b12 = responseBody.providerMetadata) != null ? _b12 : void 0,
1973
+ response: {
1974
+ timestamp: /* @__PURE__ */ new Date(),
1975
+ modelId: this.modelId,
1976
+ headers: responseHeaders
1977
+ }
1978
+ };
1979
+ } catch (error) {
1980
+ throw await asGatewayError(
1981
+ error,
1982
+ await parseAuthMethod(resolvedHeaders != null ? resolvedHeaders : {})
1983
+ );
1984
+ }
1985
+ }
1986
+ // The Gateway notifies the caller's URL on completion (`doStart` maps it to
1987
+ // `callbackUrl`), so the factory's URL and `received` pass straight through.
1988
+ async handleWebhookOption({
1989
+ webhook
1990
+ }) {
1991
+ const { url, received } = await webhook();
1992
+ return { webhookUrl: url, received };
1993
+ }
1994
+ async doStart(options) {
1995
+ var _a12, _b12;
1996
+ const { headers, abortSignal, webhookUrl } = options;
1997
+ const resolvedHeaders = this.config.headers ? await resolve8(this.config.headers) : void 0;
1998
+ try {
1999
+ const { responseHeaders, value: responseBody } = await postJsonToApi5({
2000
+ url: this.getStartUrl(),
2001
+ headers: combineHeaders5(
2002
+ resolvedHeaders,
2003
+ headers != null ? headers : {},
2004
+ this.getModelConfigHeaders(),
2005
+ await resolve8(this.config.o11yHeaders)
2006
+ ),
2007
+ body: {
2008
+ ...this.buildRequestBody(options),
2009
+ // The spec option is `webhookUrl`; the Gateway's wire contract for a
2010
+ // completion webhook is `callbackUrl`.
2011
+ ...webhookUrl && { callbackUrl: webhookUrl }
2012
+ },
2013
+ successfulResponseHandler: createJsonResponseHandler8(
2014
+ gatewayVideoStartResponseSchema
2015
+ ),
2016
+ failedResponseHandler: createJsonErrorResponseHandler8({
2017
+ errorSchema: z.any(),
2018
+ errorToMessage: (data) => {
2019
+ var _a13;
2020
+ return (_a13 = getErrorMessage8(data)) != null ? _a13 : "unknown error";
2021
+ }
2022
+ }),
2023
+ ...abortSignal && { abortSignal },
2024
+ fetch: this.config.fetch
2025
+ });
2026
+ return {
2027
+ operation: responseBody.operation,
2028
+ warnings: (_a12 = responseBody.warnings) != null ? _a12 : [],
2029
+ providerMetadata: (_b12 = responseBody.providerMetadata) != null ? _b12 : void 0,
2030
+ response: {
2031
+ timestamp: /* @__PURE__ */ new Date(),
2032
+ modelId: this.modelId,
2033
+ headers: responseHeaders
2034
+ }
2035
+ };
2036
+ } catch (error) {
2037
+ throw await asGatewayError(
2038
+ error,
2039
+ await parseAuthMethod(resolvedHeaders != null ? resolvedHeaders : {})
2040
+ );
2041
+ }
2042
+ }
2043
+ async doStatus({
2044
+ operation,
2045
+ abortSignal,
2046
+ headers
2047
+ }) {
2048
+ var _a12, _b12, _c, _d, _e, _f;
2049
+ const resolvedHeaders = this.config.headers ? await resolve8(this.config.headers) : void 0;
2050
+ try {
2051
+ const { responseHeaders, value: responseBody } = await postJsonToApi5({
2052
+ url: this.getStatusUrl(),
2053
+ headers: combineHeaders5(
2054
+ resolvedHeaders,
2055
+ headers != null ? headers : {},
2056
+ this.getModelConfigHeaders(),
2057
+ await resolve8(this.config.o11yHeaders)
2058
+ ),
2059
+ body: { operation },
2060
+ successfulResponseHandler: createJsonResponseHandler8(
2061
+ gatewayVideoStatusResponseSchema
2062
+ ),
2063
+ failedResponseHandler: createJsonErrorResponseHandler8({
2064
+ errorSchema: z.any(),
2065
+ errorToMessage: (data) => {
2066
+ var _a13;
2067
+ return (_a13 = getErrorMessage8(data)) != null ? _a13 : "unknown error";
2068
+ }
2069
+ }),
2070
+ ...abortSignal && { abortSignal },
2071
+ fetch: this.config.fetch
2072
+ });
2073
+ const response = {
2074
+ timestamp: /* @__PURE__ */ new Date(),
2075
+ modelId: this.modelId,
2076
+ headers: responseHeaders
2077
+ };
2078
+ if (responseBody.status === "completed") {
2079
+ return {
2080
+ status: "completed",
2081
+ videos: responseBody.videos,
2082
+ warnings: (_a12 = responseBody.warnings) != null ? _a12 : [],
2083
+ providerMetadata: (_b12 = responseBody.providerMetadata) != null ? _b12 : void 0,
2084
+ response
2085
+ };
2086
+ }
2087
+ if (responseBody.status === "error") {
2088
+ return {
2089
+ status: "error",
2090
+ error: responseBody.error,
2091
+ providerMetadata: (_c = responseBody.providerMetadata) != null ? _c : void 0,
2092
+ response
2093
+ };
2094
+ }
2095
+ if (responseBody.status === "cancelled") {
2096
+ return {
2097
+ status: "error",
2098
+ error: "Video generation was cancelled.",
2099
+ providerMetadata: (_d = responseBody.providerMetadata) != null ? _d : void 0,
2100
+ response
2101
+ };
2102
+ }
2103
+ return {
2104
+ status: "pending",
2105
+ warnings: (_e = responseBody.warnings) != null ? _e : [],
2106
+ providerMetadata: (_f = responseBody.providerMetadata) != null ? _f : void 0,
2107
+ response
2108
+ };
2109
+ } catch (error) {
2110
+ throw await asGatewayError(
2111
+ error,
2112
+ await parseAuthMethod(resolvedHeaders != null ? resolvedHeaders : {})
2113
+ );
2114
+ }
2115
+ }
2116
+ buildRequestBody({
2117
+ prompt,
2118
+ n,
2119
+ aspectRatio,
2120
+ resolution,
2121
+ duration,
2122
+ fps,
2123
+ seed,
2124
+ generateAudio,
2125
+ image,
2126
+ frameImages,
2127
+ inputReferences,
2128
+ providerOptions
2129
+ }) {
2130
+ return {
2131
+ prompt,
2132
+ n,
2133
+ ...aspectRatio && { aspectRatio },
2134
+ ...resolution && { resolution },
2135
+ ...duration && { duration },
2136
+ ...fps && { fps },
2137
+ ...seed && { seed },
2138
+ ...generateAudio !== void 0 && { generateAudio },
2139
+ ...providerOptions && { providerOptions },
2140
+ ...image && { image: maybeEncodeVideoFile(image) },
2141
+ ...frameImages && {
2142
+ frameImages: frameImages.map((frame) => ({
2143
+ ...frame,
2144
+ image: maybeEncodeVideoFile(frame.image)
2145
+ }))
2146
+ },
2147
+ ...inputReferences && {
2148
+ inputReferences: inputReferences.map(
2149
+ (reference) => maybeEncodeVideoFile(reference)
2150
+ )
2151
+ }
2152
+ };
2153
+ }
2154
+ getUrl() {
2155
+ return `${this.config.baseURL}/video-model`;
2156
+ }
2157
+ getStartUrl() {
2158
+ return `${this.config.baseURL}/video-model/start`;
2159
+ }
2160
+ getStatusUrl() {
2161
+ return `${this.config.baseURL}/video-model/status`;
2162
+ }
2163
+ getModelConfigHeaders() {
2164
+ return {
2165
+ "ai-video-model-specification-version": "4",
2166
+ "ai-model-id": this.modelId
2167
+ };
2168
+ }
2169
+ };
2170
+ function maybeEncodeVideoFile(file) {
2171
+ if (file.type === "file" && file.data instanceof Uint8Array) {
2172
+ return {
2173
+ ...file,
2174
+ data: convertUint8ArrayToBase642(file.data)
2175
+ };
2176
+ }
2177
+ return file;
2178
+ }
2179
+ var providerMetadataEntrySchema2 = z.object({
2180
+ videos: z.array(z.unknown()).optional()
2181
+ }).catchall(z.unknown());
2182
+ var gatewayVideoDataSchema = z.union([
2183
+ z.object({
2184
+ type: z.literal("url"),
2185
+ url: z.string(),
2186
+ mediaType: z.string()
2187
+ }),
2188
+ z.object({
2189
+ type: z.literal("base64"),
2190
+ data: z.string(),
2191
+ mediaType: z.string()
2192
+ })
2193
+ ]);
2194
+ var gatewayVideoWarningSchema = z.discriminatedUnion("type", [
2195
+ z.object({
2196
+ type: z.literal("unsupported"),
2197
+ feature: z.string(),
2198
+ details: z.string().optional()
2199
+ }),
2200
+ z.object({
2201
+ type: z.literal("compatibility"),
2202
+ feature: z.string(),
2203
+ details: z.string().optional()
2204
+ }),
2205
+ z.object({
2206
+ type: z.literal("deprecated"),
2207
+ setting: z.string(),
2208
+ message: z.string()
2209
+ }),
2210
+ z.object({
2211
+ type: z.literal("other"),
2212
+ message: z.string()
2213
+ })
2214
+ ]);
2215
+ var gatewayVideoEventSchema = z.discriminatedUnion("type", [
2216
+ z.object({
2217
+ type: z.literal("result"),
2218
+ videos: z.array(gatewayVideoDataSchema),
2219
+ warnings: z.array(gatewayVideoWarningSchema).optional(),
2220
+ providerMetadata: z.record(z.string(), providerMetadataEntrySchema2).optional()
2221
+ }),
2222
+ z.object({
2223
+ type: z.literal("error"),
2224
+ message: z.string(),
2225
+ errorType: z.string(),
2226
+ statusCode: z.number(),
2227
+ param: z.unknown().nullable()
2228
+ })
2229
+ ]);
2230
+ var gatewayVideoStartResponseSchema = z.object({
2231
+ operation: z.unknown(),
2232
+ warnings: z.array(gatewayVideoWarningSchema).nullish(),
2233
+ providerMetadata: z.record(z.string(), providerMetadataEntrySchema2).nullish()
2234
+ });
2235
+ var gatewayVideoStatusResponseSchema = z.discriminatedUnion("status", [
2236
+ z.object({
2237
+ status: z.literal("pending"),
2238
+ warnings: z.array(gatewayVideoWarningSchema).nullish(),
2239
+ providerMetadata: z.record(z.string(), providerMetadataEntrySchema2).nullish()
2240
+ }),
2241
+ z.object({
2242
+ status: z.literal("completed"),
2243
+ videos: z.array(gatewayVideoDataSchema),
2244
+ warnings: z.array(gatewayVideoWarningSchema).nullish(),
2245
+ providerMetadata: z.record(z.string(), providerMetadataEntrySchema2).nullish()
2246
+ }),
2247
+ z.object({
2248
+ status: z.literal("error"),
2249
+ error: z.string(),
2250
+ providerMetadata: z.record(z.string(), providerMetadataEntrySchema2).nullish()
2251
+ }),
2252
+ z.object({
2253
+ status: z.literal("cancelled"),
2254
+ providerMetadata: z.record(z.string(), providerMetadataEntrySchema2).nullish()
2255
+ })
2256
+ ]);
2257
+
2258
+ // src/gateway-reranking-model.ts
2259
+ import {
2260
+ combineHeaders as combineHeaders6,
2261
+ createJsonErrorResponseHandler as createJsonErrorResponseHandler9,
2262
+ createJsonResponseHandler as createJsonResponseHandler9,
2263
+ getErrorMessage as getErrorMessage9,
2264
+ lazySchema as lazySchema9,
2265
+ postJsonToApi as postJsonToApi6,
2266
+ resolve as resolve9,
2267
+ zodSchema as zodSchema9
2268
+ } from "@ai-sdk/provider-utils";
2269
+ var GatewayRerankingModel = class {
2270
+ constructor(modelId, config) {
2271
+ this.modelId = modelId;
2272
+ this.config = config;
2273
+ this.specificationVersion = "v4";
2274
+ }
2275
+ get provider() {
2276
+ return this.config.provider;
2277
+ }
2278
+ async doRerank({
2279
+ documents,
2280
+ query,
2281
+ topN,
2282
+ headers,
2283
+ abortSignal,
2284
+ providerOptions
2285
+ }) {
2286
+ var _a12;
2287
+ const resolvedHeaders = this.config.headers ? await resolve9(this.config.headers) : void 0;
2288
+ try {
2289
+ const {
2290
+ responseHeaders,
2291
+ value: responseBody,
2292
+ rawValue
2293
+ } = await postJsonToApi6({
2294
+ url: this.getUrl(),
2295
+ headers: combineHeaders6(
2296
+ resolvedHeaders,
2297
+ headers != null ? headers : {},
2298
+ this.getModelConfigHeaders(),
2299
+ await resolve9(this.config.o11yHeaders)
2300
+ ),
2301
+ body: {
2302
+ documents,
2303
+ query,
2304
+ ...topN != null ? { topN } : {},
2305
+ ...providerOptions ? { providerOptions } : {}
2306
+ },
2307
+ successfulResponseHandler: createJsonResponseHandler9(
2308
+ gatewayRerankingResponseSchema
2309
+ ),
2310
+ failedResponseHandler: createJsonErrorResponseHandler9({
2311
+ errorSchema: z.any(),
2312
+ errorToMessage: (data) => {
2313
+ var _a13;
2314
+ return (_a13 = getErrorMessage9(data)) != null ? _a13 : "unknown error";
2315
+ }
2316
+ }),
2317
+ ...abortSignal && { abortSignal },
2318
+ fetch: this.config.fetch
2319
+ });
2320
+ return {
2321
+ ranking: responseBody.ranking,
2322
+ providerMetadata: responseBody.providerMetadata,
2323
+ response: { headers: responseHeaders, body: rawValue },
2324
+ warnings: (_a12 = responseBody.warnings) != null ? _a12 : []
2325
+ };
2326
+ } catch (error) {
2327
+ throw await asGatewayError(
2328
+ error,
2329
+ await parseAuthMethod(resolvedHeaders != null ? resolvedHeaders : {})
2330
+ );
2331
+ }
2332
+ }
2333
+ getUrl() {
2334
+ return `${this.config.baseURL}/reranking-model`;
2335
+ }
2336
+ getModelConfigHeaders() {
2337
+ return {
2338
+ "ai-reranking-model-specification-version": "4",
2339
+ "ai-model-id": this.modelId
2340
+ };
2341
+ }
2342
+ };
2343
+ var gatewayRerankingWarningSchema = z.discriminatedUnion("type", [
2344
+ z.object({
2345
+ type: z.literal("unsupported"),
2346
+ feature: z.string(),
2347
+ details: z.string().optional()
2348
+ }),
2349
+ z.object({
2350
+ type: z.literal("compatibility"),
2351
+ feature: z.string(),
2352
+ details: z.string().optional()
2353
+ }),
2354
+ z.object({
2355
+ type: z.literal("deprecated"),
2356
+ setting: z.string(),
2357
+ message: z.string()
2358
+ }),
2359
+ z.object({
2360
+ type: z.literal("other"),
2361
+ message: z.string()
2362
+ })
2363
+ ]);
2364
+ var gatewayRerankingResponseSchema = lazySchema9(
2365
+ () => zodSchema9(
2366
+ z.object({
2367
+ ranking: z.array(
2368
+ z.object({
2369
+ index: z.number(),
2370
+ relevanceScore: z.number()
2371
+ })
2372
+ ),
2373
+ warnings: z.array(gatewayRerankingWarningSchema).optional(),
2374
+ providerMetadata: z.record(z.string(), z.record(z.string(), z.unknown())).optional()
2375
+ })
2376
+ )
2377
+ );
2378
+
2379
+ // src/gateway-speech-model.ts
2380
+ import {
2381
+ combineHeaders as combineHeaders7,
2382
+ createJsonErrorResponseHandler as createJsonErrorResponseHandler10,
2383
+ createJsonResponseHandler as createJsonResponseHandler10,
2384
+ getErrorMessage as getErrorMessage10,
2385
+ postJsonToApi as postJsonToApi7,
2386
+ resolve as resolve10
2387
+ } from "@ai-sdk/provider-utils";
2388
+ var GatewaySpeechModel = class {
2389
+ constructor(modelId, config) {
2390
+ this.modelId = modelId;
2391
+ this.config = config;
2392
+ this.specificationVersion = "v4";
2393
+ }
2394
+ get provider() {
2395
+ return this.config.provider;
2396
+ }
2397
+ async doGenerate({
2398
+ text,
2399
+ voice,
2400
+ outputFormat,
2401
+ instructions,
2402
+ speed,
2403
+ language,
2404
+ providerOptions,
2405
+ headers,
2406
+ abortSignal
2407
+ }) {
2408
+ var _a12;
2409
+ const resolvedHeaders = this.config.headers ? await resolve10(this.config.headers) : void 0;
2410
+ try {
2411
+ const {
2412
+ responseHeaders,
2413
+ value: responseBody,
2414
+ rawValue
2415
+ } = await postJsonToApi7({
2416
+ url: this.getUrl(),
2417
+ headers: combineHeaders7(
2418
+ resolvedHeaders,
2419
+ headers != null ? headers : {},
2420
+ this.getModelConfigHeaders(),
2421
+ await resolve10(this.config.o11yHeaders)
2422
+ ),
2423
+ body: {
2424
+ text,
2425
+ ...voice && { voice },
2426
+ ...outputFormat && { outputFormat },
2427
+ ...instructions && { instructions },
2428
+ ...speed != null && { speed },
2429
+ ...language && { language },
2430
+ ...providerOptions && { providerOptions }
2431
+ },
2432
+ successfulResponseHandler: createJsonResponseHandler10(
2433
+ gatewaySpeechResponseSchema
2434
+ ),
2435
+ failedResponseHandler: createJsonErrorResponseHandler10({
2436
+ errorSchema: z.any(),
2437
+ errorToMessage: (data) => {
2438
+ var _a13;
2439
+ return (_a13 = getErrorMessage10(data)) != null ? _a13 : "unknown error";
2440
+ }
2441
+ }),
2442
+ ...abortSignal && { abortSignal },
2443
+ fetch: this.config.fetch
2444
+ });
2445
+ return {
2446
+ audio: responseBody.audio,
2447
+ warnings: (_a12 = responseBody.warnings) != null ? _a12 : [],
2448
+ providerMetadata: responseBody.providerMetadata,
2449
+ response: {
2450
+ timestamp: /* @__PURE__ */ new Date(),
2451
+ modelId: this.modelId,
2452
+ headers: responseHeaders,
2453
+ body: rawValue
2454
+ }
2455
+ };
2456
+ } catch (error) {
2457
+ throw await asGatewayError(
2458
+ error,
2459
+ await parseAuthMethod(resolvedHeaders != null ? resolvedHeaders : {})
2460
+ );
2461
+ }
2462
+ }
2463
+ getUrl() {
2464
+ return `${this.config.baseURL}/speech-model`;
2465
+ }
2466
+ getModelConfigHeaders() {
2467
+ return {
2468
+ "ai-speech-model-specification-version": "4",
2469
+ "ai-model-id": this.modelId
2470
+ };
2471
+ }
2472
+ };
2473
+ var providerMetadataEntrySchema3 = z.object({}).catchall(z.unknown());
2474
+ var gatewaySpeechWarningSchema = z.discriminatedUnion("type", [
2475
+ z.object({
2476
+ type: z.literal("unsupported"),
2477
+ feature: z.string(),
2478
+ details: z.string().optional()
2479
+ }),
2480
+ z.object({
2481
+ type: z.literal("compatibility"),
2482
+ feature: z.string(),
2483
+ details: z.string().optional()
2484
+ }),
2485
+ z.object({
2486
+ type: z.literal("deprecated"),
2487
+ setting: z.string(),
2488
+ message: z.string()
2489
+ }),
2490
+ z.object({
2491
+ type: z.literal("other"),
2492
+ message: z.string()
2493
+ })
2494
+ ]);
2495
+ var gatewaySpeechResponseSchema = z.object({
2496
+ audio: z.string(),
2497
+ warnings: z.array(gatewaySpeechWarningSchema).optional(),
2498
+ providerMetadata: z.record(z.string(), providerMetadataEntrySchema3).optional()
2499
+ });
2500
+
2501
+ // src/gateway-transcription-model.ts
2502
+ import {
2503
+ getErrorMessage as getErrorMessage11
2504
+ } from "@ai-sdk/provider";
2505
+ import {
2506
+ combineHeaders as combineHeaders8,
2507
+ convertBase64ToUint8Array,
2508
+ convertUint8ArrayToBase64 as convertUint8ArrayToBase643,
2509
+ createJsonErrorResponseHandler as createJsonErrorResponseHandler11,
2510
+ createJsonResponseHandler as createJsonResponseHandler11,
2511
+ connectToWebSocket,
2512
+ normalizeHeaders,
2513
+ experimental_parseTranscriptionStreamPart as parseTranscriptionStreamPart,
2514
+ postJsonToApi as postJsonToApi8,
2515
+ resolve as resolve11,
2516
+ EXPERIMENTAL_TRANSCRIPTION_STREAM_AUDIO_DONE_FRAME_TYPE as TRANSCRIPTION_STREAM_AUDIO_DONE_FRAME_TYPE,
2517
+ waitForWebSocketBufferDrain,
2518
+ EXPERIMENTAL_TRANSCRIPTION_STREAM_START_FRAME_TYPE as TRANSCRIPTION_STREAM_START_FRAME_TYPE
2519
+ } from "@ai-sdk/provider-utils";
2520
+ var GatewayTranscriptionModel = class {
2521
+ constructor(modelId, config) {
2522
+ this.modelId = modelId;
2523
+ this.config = config;
2524
+ this.specificationVersion = "v4";
2525
+ }
2526
+ get provider() {
2527
+ return this.config.provider;
2528
+ }
2529
+ async doGenerate({
2530
+ audio,
2531
+ mediaType,
2532
+ providerOptions,
2533
+ headers,
2534
+ abortSignal
2535
+ }) {
2536
+ var _a12, _b12, _c, _d;
2537
+ const resolvedHeaders = this.config.headers ? await resolve11(this.config.headers) : void 0;
2538
+ try {
2539
+ const {
2540
+ responseHeaders,
2541
+ value: responseBody,
2542
+ rawValue
2543
+ } = await postJsonToApi8({
2544
+ url: this.getUrl(),
2545
+ headers: combineHeaders8(
2546
+ resolvedHeaders,
2547
+ headers != null ? headers : {},
2548
+ this.getModelConfigHeaders(),
2549
+ await resolve11(this.config.o11yHeaders)
2550
+ ),
2551
+ body: {
2552
+ audio: audio instanceof Uint8Array ? convertUint8ArrayToBase643(audio) : audio,
2553
+ mediaType,
2554
+ ...providerOptions && { providerOptions }
2555
+ },
2556
+ successfulResponseHandler: createJsonResponseHandler11(
2557
+ gatewayTranscriptionResponseSchema
2558
+ ),
2559
+ failedResponseHandler: createJsonErrorResponseHandler11({
2560
+ errorSchema: z.any(),
2561
+ errorToMessage: (data) => {
2562
+ var _a13;
2563
+ return (_a13 = getErrorMessage11(data)) != null ? _a13 : "unknown error";
2564
+ }
2565
+ }),
2566
+ ...abortSignal && { abortSignal },
2567
+ fetch: this.config.fetch
2568
+ });
2569
+ return {
2570
+ text: responseBody.text,
2571
+ segments: (_a12 = responseBody.segments) != null ? _a12 : [],
2572
+ language: (_b12 = responseBody.language) != null ? _b12 : void 0,
2573
+ durationInSeconds: (_c = responseBody.durationInSeconds) != null ? _c : void 0,
2574
+ warnings: (_d = responseBody.warnings) != null ? _d : [],
2575
+ providerMetadata: responseBody.providerMetadata,
2576
+ response: {
2577
+ timestamp: /* @__PURE__ */ new Date(),
2578
+ modelId: this.modelId,
2579
+ headers: responseHeaders,
2580
+ body: rawValue
2581
+ }
2582
+ };
2583
+ } catch (error) {
2584
+ throw await asGatewayError(
2585
+ error,
2586
+ await parseAuthMethod(resolvedHeaders != null ? resolvedHeaders : {})
2587
+ );
2588
+ }
2589
+ }
2590
+ async doStream(options) {
2591
+ var _a12, _b12, _c, _d, _e;
2592
+ const currentDate = (_c = (_b12 = (_a12 = this.config._internal) == null ? void 0 : _a12.currentDate) == null ? void 0 : _b12.call(_a12)) != null ? _c : /* @__PURE__ */ new Date();
2593
+ const headers = combineHeaders8(
2594
+ await resolve11((_d = this.config.headers) != null ? _d : {}),
2595
+ (_e = options.headers) != null ? _e : {},
2596
+ this.getModelConfigHeaders(),
2597
+ await resolve11(this.config.o11yHeaders)
2598
+ );
2599
+ const authMethod = await parseAuthMethod(headers);
2600
+ const startFrame = {
2601
+ type: TRANSCRIPTION_STREAM_START_FRAME_TYPE,
2602
+ inputAudioFormat: options.inputAudioFormat,
2603
+ ...options.providerOptions != null && {
2604
+ providerOptions: options.providerOptions
2605
+ },
2606
+ ...options.includeRawChunks != null && {
2607
+ includeRawChunks: options.includeRawChunks
2608
+ }
2609
+ };
2610
+ return {
2611
+ stream: createGatewayTranscriptionStream({
2612
+ webSocket: this.config.webSocket,
2613
+ url: toGatewayTranscriptionUrl(this.config.baseURL, this.modelId),
2614
+ protocols: getProtocolsFromHeaders(headers),
2615
+ headers,
2616
+ startFrame,
2617
+ audio: options.audio,
2618
+ abortSignal: options.abortSignal,
2619
+ authMethod
2620
+ }),
2621
+ request: { body: startFrame },
2622
+ response: { timestamp: currentDate, modelId: this.modelId }
2623
+ };
2624
+ }
2625
+ getUrl() {
2626
+ return `${this.config.baseURL}/transcription-model`;
2627
+ }
2628
+ getModelConfigHeaders() {
2629
+ return {
2630
+ "ai-transcription-model-specification-version": "4",
2631
+ "ai-model-id": this.modelId
2632
+ };
2633
+ }
2634
+ };
2635
+ function toGatewayTranscriptionUrl(baseURL, modelId) {
2636
+ const url = new URL(`${baseURL.replace(/^http/, "ws")}/transcription-model`);
2637
+ url.searchParams.set("ai-model-id", modelId);
2638
+ return url.toString();
2639
+ }
2640
+ function getProtocolsFromHeaders(headers) {
2641
+ const normalizedHeaders = normalizeHeaders(headers);
2642
+ const authorization = normalizedHeaders.authorization;
2643
+ const token = (authorization == null ? void 0 : authorization.startsWith("Bearer ")) ? authorization.slice("Bearer ".length) : void 0;
2644
+ return token == null ? [GATEWAY_TRANSCRIPTION_SUBPROTOCOL] : getGatewayTranscriptionProtocols(token, {
2645
+ teamIdOrSlug: normalizedHeaders[VERCEL_AI_GATEWAY_TEAM_HEADER]
2646
+ });
2647
+ }
2648
+ var MAX_AUDIO_FRAME_BYTES = 64 * 1024;
2649
+ function createGatewayTranscriptionStream({
2650
+ webSocket,
2651
+ url,
2652
+ protocols,
2653
+ headers,
2654
+ startFrame,
2655
+ audio,
2656
+ abortSignal,
2657
+ authMethod
2658
+ }) {
2659
+ let finished = false;
2660
+ let cleanup = () => {
2661
+ };
2662
+ return new ReadableStream({
2663
+ start: (controller) => {
2664
+ let audioReader;
2665
+ let hasServerErrorPart = false;
2666
+ let lastServerError;
2667
+ let audioStopped = false;
2668
+ let connection;
2669
+ cleanup = (closeCode) => {
2670
+ if (audioReader != null) {
2671
+ void audioReader.cancel().catch(() => {
2672
+ });
2673
+ } else {
2674
+ void audio.cancel().catch(() => {
2675
+ });
2676
+ }
2677
+ connection == null ? void 0 : connection.close(closeCode);
2678
+ };
2679
+ const stopAudio = () => {
2680
+ audioStopped = true;
2681
+ if (audioReader != null) {
2682
+ void audioReader.cancel().catch(() => {
2683
+ });
2684
+ audioReader = void 0;
2685
+ } else {
2686
+ void audio.cancel().catch(() => {
2687
+ });
2688
+ }
2689
+ };
2690
+ const finishWithError = (error) => {
2691
+ if (finished) return;
2692
+ finished = true;
2693
+ cleanup();
2694
+ void errorControllerWithGatewayError(controller, error, authMethod);
2695
+ };
2696
+ const sendAudio = async (socket) => {
2697
+ const reader = audio.getReader();
2698
+ audioReader = reader;
2699
+ try {
2700
+ while (true) {
2701
+ const { done, value } = await reader.read();
2702
+ if (done || finished) break;
2703
+ const bytes = typeof value === "string" ? convertBase64ToUint8Array(value) : value;
2704
+ for (let offset = 0; offset < bytes.length; offset += MAX_AUDIO_FRAME_BYTES) {
2705
+ if (finished) break;
2706
+ socket.send(
2707
+ bytes.subarray(offset, offset + MAX_AUDIO_FRAME_BYTES)
2708
+ );
2709
+ await waitForWebSocketBufferDrain(socket);
2710
+ }
2711
+ }
2712
+ } finally {
2713
+ reader.releaseLock();
2714
+ if (audioReader === reader) {
2715
+ audioReader = void 0;
2716
+ }
2717
+ }
2718
+ if (!finished && !audioStopped) {
2719
+ socket.send(
2720
+ JSON.stringify({
2721
+ type: TRANSCRIPTION_STREAM_AUDIO_DONE_FRAME_TYPE
2722
+ })
2723
+ );
2724
+ }
2725
+ };
2726
+ connection = connectToWebSocket({
2727
+ url,
2728
+ protocols,
2729
+ headers,
2730
+ webSocket,
2731
+ abortSignal,
2732
+ onAbort: (reason) => {
2733
+ if (finished) return;
2734
+ finished = true;
2735
+ cleanup();
2736
+ controller.error(reason);
2737
+ },
2738
+ onProcessingError: finishWithError,
2739
+ onOpen: (socket) => {
2740
+ socket.send(JSON.stringify(startFrame));
2741
+ void sendAudio(socket).catch(finishWithError);
2742
+ },
2743
+ // Server frames are envelope-serialized stream parts; the codec
2744
+ // handles parsing, unknown-part skipping, and timestamp revival.
2745
+ onMessageText: (text) => {
2746
+ if (finished) return;
2747
+ const part = parseTranscriptionStreamPart(text);
2748
+ if (part == null) return;
2749
+ if (part.type === "finish") {
2750
+ finished = true;
2751
+ controller.enqueue(part);
2752
+ controller.close();
2753
+ cleanup(1e3);
2754
+ return;
2755
+ }
2756
+ if (part.type === "error") {
2757
+ hasServerErrorPart = true;
2758
+ lastServerError = part.error;
2759
+ stopAudio();
2760
+ }
2761
+ controller.enqueue(part);
2762
+ },
2763
+ onSocketError: () => {
2764
+ finishWithError(
2765
+ new Error("Connection error on AI Gateway transcription stream")
2766
+ );
2767
+ },
2768
+ onClose: () => {
2769
+ if (hasServerErrorPart) {
2770
+ if (finished) return;
2771
+ void createErrorFromServerErrorPart(
2772
+ lastServerError,
2773
+ authMethod
2774
+ ).then(finishWithError);
2775
+ return;
2776
+ }
2777
+ finishWithError(
2778
+ new Error(
2779
+ "AI Gateway transcription stream closed before a finish part was received"
2780
+ )
2781
+ );
2782
+ }
2783
+ });
2784
+ },
2785
+ cancel: () => {
2786
+ if (finished) return;
2787
+ finished = true;
2788
+ cleanup();
2789
+ }
2790
+ });
2791
+ }
2792
+ var providerMetadataEntrySchema4 = z.object({}).catchall(z.unknown());
2793
+ var gatewayTranscriptionWarningSchema = z.discriminatedUnion("type", [
2794
+ z.object({
2795
+ type: z.literal("unsupported"),
2796
+ feature: z.string(),
2797
+ details: z.string().optional()
2798
+ }),
2799
+ z.object({
2800
+ type: z.literal("compatibility"),
2801
+ feature: z.string(),
2802
+ details: z.string().optional()
2803
+ }),
2804
+ z.object({
2805
+ type: z.literal("deprecated"),
2806
+ setting: z.string(),
2807
+ message: z.string()
2808
+ }),
2809
+ z.object({
2810
+ type: z.literal("other"),
2811
+ message: z.string()
2812
+ })
2813
+ ]);
2814
+ var gatewayTranscriptionResponseSchema = z.object({
2815
+ text: z.string(),
2816
+ segments: z.array(
2817
+ z.object({
2818
+ text: z.string(),
2819
+ startSecond: z.number(),
2820
+ endSecond: z.number()
2821
+ })
2822
+ ).optional(),
2823
+ language: z.string().nullish(),
2824
+ durationInSeconds: z.number().nullish(),
2825
+ warnings: z.array(gatewayTranscriptionWarningSchema).optional(),
2826
+ providerMetadata: z.record(z.string(), providerMetadataEntrySchema4).optional()
2827
+ });
2828
+ async function errorControllerWithGatewayError(controller, error, authMethod) {
2829
+ controller.error(await asGatewayError(error, authMethod));
2830
+ }
2831
+ function getServerErrorMessage(error) {
2832
+ if (error != null && typeof error === "object" && "message" in error && typeof error.message === "string") {
2833
+ return error.message;
2834
+ }
2835
+ return getErrorMessage11(error);
2836
+ }
2837
+ var SERVER_ERROR_STATUS_CODES = {
2838
+ authentication_error: 401,
2839
+ failed_dependency: 424,
2840
+ forbidden: 403,
2841
+ internal_server_error: 500,
2842
+ invalid_request_error: 400,
2843
+ model_not_found: 404,
2844
+ rate_limit_exceeded: 429
2845
+ };
2846
+ async function createErrorFromServerErrorPart(error, authMethod) {
2847
+ if (typeof error === "object" && error != null && "message" in error && typeof error.message === "string" && "type" in error && typeof error.type === "string" && error.type in SERVER_ERROR_STATUS_CODES) {
2848
+ return createGatewayErrorFromResponse({
2849
+ response: { error: { message: error.message, type: error.type } },
2850
+ statusCode: SERVER_ERROR_STATUS_CODES[error.type],
2851
+ authMethod
2852
+ });
2853
+ }
2854
+ return new Error(
2855
+ `AI Gateway transcription stream failed: ${getServerErrorMessage(error)}`
2856
+ );
2857
+ }
2858
+
2859
+ // src/gateway-realtime-model.ts
2860
+ var GatewayRealtimeModel = class {
2861
+ constructor(modelId, config) {
2862
+ this.specificationVersion = "v4";
2863
+ this.modelId = modelId;
2864
+ this.provider = config.provider;
2865
+ this.config = config;
2866
+ }
2867
+ /**
2868
+ * Mints a single-use, short-lived client secret (`vcst_`) the browser uses to
2869
+ * open the realtime WebSocket without ever holding the long-lived Gateway
2870
+ * credential. The customer's server calls this (via
2871
+ * `gateway.experimental_realtime.getToken`) and hands the returned token to
2872
+ * the browser, which connects with it through the `ai-gateway-auth.<token>`
2873
+ * subprotocol. `expiresAfterSeconds` is forwarded to the mint endpoint;
2874
+ * `sessionConfig` is intentionally unused here — it is applied later via the
2875
+ * normalized `session-update` event.
2876
+ */
2877
+ async doCreateClientSecret(options) {
2878
+ const secret = await this.config.createClientSecret({
2879
+ modelId: this.modelId,
2880
+ ...(options == null ? void 0 : options.expiresAfterSeconds) != null && {
2881
+ expiresAfterSeconds: options.expiresAfterSeconds
2882
+ }
2883
+ });
2884
+ return {
2885
+ token: secret.token,
2886
+ url: toGatewayRealtimeUrl(this.config.baseURL, this.modelId),
2887
+ ...secret.expiresAt != null && { expiresAt: secret.expiresAt }
2888
+ };
2889
+ }
2890
+ getWebSocketConfig(options) {
2891
+ return {
2892
+ url: options.url,
2893
+ protocols: getGatewayRealtimeProtocols(options.token, {
2894
+ teamIdOrSlug: this.config.teamIdOrSlug
2895
+ })
2896
+ };
2897
+ }
2898
+ parseServerEvent(raw) {
2899
+ return raw;
2900
+ }
2901
+ serializeClientEvent(event) {
2902
+ return event;
2903
+ }
2904
+ buildSessionConfig(config) {
2905
+ return config;
2906
+ }
2907
+ };
2908
+ function toGatewayRealtimeUrl(baseURL, modelId) {
2909
+ const url = new URL(`${baseURL.replace(/^http/, "ws")}/realtime-model`);
2910
+ url.searchParams.set("ai-model-id", modelId);
2911
+ return url.toString();
2912
+ }
2913
+
2914
+ // src/tool/exa-search.ts
2915
+ import {
2916
+ createProviderExecutedToolFactory,
2917
+ lazySchema as lazySchema10,
2918
+ zodSchema as zodSchema10
2919
+ } from "@ai-sdk/provider-utils";
2920
+ var exaSearchInputSchema = lazySchema10(
2921
+ () => zodSchema10(
2922
+ z.object({
2923
+ query: z.string().describe("Natural-language web search query. This is required."),
2924
+ type: z.enum(["auto", "fast", "instant"]).optional().describe(
2925
+ "Search method. Use auto for the default balance of speed and quality."
2926
+ ),
2927
+ num_results: z.number().optional().describe("Maximum number of results to return (1-100, default: 10)."),
2928
+ category: z.enum([
2929
+ "company",
2930
+ "people",
2931
+ "research paper",
2932
+ "news",
2933
+ "personal site",
2934
+ "financial report"
2935
+ ]).optional().describe("Optional content category to focus results."),
2936
+ user_location: z.string().optional().describe("Two-letter ISO country code such as 'US'."),
2937
+ include_domains: z.array(z.string()).optional().describe("Only return results from these domains."),
2938
+ exclude_domains: z.array(z.string()).optional().describe("Exclude results from these domains."),
2939
+ start_published_date: z.string().optional().describe("Only return links published after this ISO 8601 date."),
2940
+ end_published_date: z.string().optional().describe("Only return links published before this ISO 8601 date."),
2941
+ contents: z.object({
2942
+ text: z.union([
2943
+ z.boolean(),
2944
+ z.object({
2945
+ max_characters: z.number().optional(),
2946
+ include_html_tags: z.boolean().optional(),
2947
+ verbosity: z.enum(["compact", "standard", "full"]).optional(),
2948
+ include_sections: z.array(
2949
+ z.enum([
2950
+ "header",
2951
+ "navigation",
2952
+ "banner",
2953
+ "body",
2954
+ "sidebar",
2955
+ "footer",
2956
+ "metadata"
2957
+ ])
2958
+ ).optional(),
2959
+ exclude_sections: z.array(
2960
+ z.enum([
2961
+ "header",
2962
+ "navigation",
2963
+ "banner",
2964
+ "body",
2965
+ "sidebar",
2966
+ "footer",
2967
+ "metadata"
2968
+ ])
2969
+ ).optional()
2970
+ })
2971
+ ]).optional(),
2972
+ highlights: z.union([
2973
+ z.boolean(),
2974
+ z.object({
2975
+ query: z.string().optional(),
2976
+ max_characters: z.number().optional()
2977
+ })
2978
+ ]).optional(),
2979
+ max_age_hours: z.number().optional(),
2980
+ livecrawl_timeout: z.number().optional(),
2981
+ subpages: z.number().optional(),
2982
+ subpage_target: z.union([z.string(), z.array(z.string())]).optional(),
2983
+ extras: z.object({
2984
+ links: z.number().optional(),
2985
+ image_links: z.number().optional()
2986
+ }).optional()
2987
+ }).optional().describe("Controls extracted page content and freshness.")
2988
+ })
2989
+ )
2990
+ );
2991
+ var exaSearchOutputSchema = lazySchema10(
2992
+ () => zodSchema10(
2993
+ z.union([
2994
+ z.object({
2995
+ requestId: z.string(),
2996
+ searchType: z.string().optional(),
2997
+ resolvedSearchType: z.string().optional(),
2998
+ results: z.array(
2999
+ z.object({
3000
+ title: z.string(),
3001
+ url: z.string(),
3002
+ id: z.string(),
3003
+ publishedDate: z.string().nullable().optional(),
3004
+ author: z.string().nullable().optional(),
3005
+ image: z.string().nullable().optional(),
3006
+ favicon: z.string().nullable().optional(),
3007
+ text: z.string().optional(),
3008
+ highlights: z.array(z.string()).optional(),
3009
+ highlightScores: z.array(z.number()).optional(),
3010
+ summary: z.string().optional(),
3011
+ subpages: z.array(z.any()).optional(),
3012
+ extras: z.object({
3013
+ links: z.array(z.string()).optional(),
3014
+ imageLinks: z.array(z.string()).optional()
3015
+ }).optional()
3016
+ })
3017
+ ),
3018
+ costDollars: z.object({
3019
+ total: z.number().optional(),
3020
+ search: z.record(z.string(), z.number()).optional()
3021
+ }).optional()
3022
+ }),
3023
+ z.object({
3024
+ error: z.enum([
3025
+ "api_error",
3026
+ "rate_limit",
3027
+ "timeout",
3028
+ "invalid_input",
3029
+ "configuration_error",
3030
+ "execution_error",
3031
+ "unknown"
3032
+ ]),
3033
+ statusCode: z.number().optional(),
3034
+ message: z.string()
3035
+ })
3036
+ ])
3037
+ )
3038
+ );
3039
+ var exaSearchToolFactory = createProviderExecutedToolFactory({
3040
+ id: "gateway.exa_search",
3041
+ inputSchema: exaSearchInputSchema,
3042
+ outputSchema: exaSearchOutputSchema
3043
+ });
3044
+ var exaSearch = (config = {}) => exaSearchToolFactory(config);
3045
+
3046
+ // src/tool/parallel-search.ts
3047
+ import {
3048
+ createProviderExecutedToolFactory as createProviderExecutedToolFactory2,
3049
+ lazySchema as lazySchema11,
3050
+ zodSchema as zodSchema11
3051
+ } from "@ai-sdk/provider-utils";
3052
+ var parallelSearchInputSchema = lazySchema11(
3053
+ () => zodSchema11(
3054
+ z.object({
3055
+ objective: z.string().describe(
3056
+ "Natural-language description of the web research goal, including source or freshness guidance and broader context from the task. Maximum 5000 characters."
3057
+ ),
3058
+ search_queries: z.array(z.string()).optional().describe(
3059
+ "Optional search queries to supplement the objective. Maximum 200 characters per query."
3060
+ ),
3061
+ mode: z.enum(["one-shot", "agentic"]).optional().describe(
3062
+ 'Mode preset: "one-shot" for comprehensive results with longer excerpts (default), "agentic" for concise, token-efficient results for multi-step workflows.'
3063
+ ),
3064
+ max_results: z.number().optional().describe(
3065
+ "Maximum number of results to return (1-20). Defaults to 10 if not specified."
3066
+ ),
3067
+ source_policy: z.object({
3068
+ include_domains: z.array(z.string()).optional().describe(
3069
+ "Limit results to these domains. Use plain domain names only \u2014 e.g. example.com or sub.example.gov, or a bare extension like .edu. Do not include a scheme, path, or port (e.g. not https://example.com/page)."
3070
+ ),
3071
+ exclude_domains: z.array(z.string()).optional().describe(
3072
+ "Exclude results from these domains. Use plain domain names only \u2014 e.g. example.com or sub.example.gov, or a bare extension like .edu. Do not include a scheme, path, or port (e.g. not https://example.com/page)."
3073
+ ),
3074
+ after_date: z.string().optional().describe(
3075
+ "Only include results published after this date. Use an ISO 8601 calendar date formatted YYYY-MM-DD (e.g. 2025-01-01); do not include a time."
3076
+ )
3077
+ }).optional().describe(
3078
+ "Source policy for controlling which domains to include/exclude and freshness."
3079
+ ),
3080
+ excerpts: z.object({
3081
+ max_chars_per_result: z.number().optional().describe("Maximum characters per result."),
3082
+ max_chars_total: z.number().optional().describe("Maximum total characters across all results.")
3083
+ }).optional().describe("Excerpt configuration for controlling result length."),
3084
+ fetch_policy: z.object({
3085
+ max_age_seconds: z.number().optional().describe(
3086
+ "Maximum age in seconds for cached content. Set to 0 to always fetch fresh content."
3087
+ )
3088
+ }).optional().describe("Fetch policy for controlling content freshness.")
3089
+ })
3090
+ )
3091
+ );
3092
+ var parallelSearchOutputSchema = lazySchema11(
3093
+ () => zodSchema11(
3094
+ z.union([
3095
+ // Success response
3096
+ z.object({
3097
+ searchId: z.string(),
3098
+ results: z.array(
3099
+ z.object({
3100
+ url: z.string(),
3101
+ title: z.string(),
3102
+ excerpt: z.string(),
3103
+ publishDate: z.string().nullable().optional(),
3104
+ relevanceScore: z.number().optional()
3105
+ })
3106
+ )
3107
+ }),
3108
+ // Error response
3109
+ z.object({
3110
+ error: z.enum([
3111
+ "api_error",
3112
+ "rate_limit",
3113
+ "timeout",
3114
+ "invalid_input",
3115
+ "configuration_error",
3116
+ "unknown"
3117
+ ]),
3118
+ statusCode: z.number().optional(),
3119
+ message: z.string()
3120
+ })
3121
+ ])
3122
+ )
3123
+ );
3124
+ var parallelSearchToolFactory = createProviderExecutedToolFactory2({
3125
+ id: "gateway.parallel_search",
3126
+ inputSchema: parallelSearchInputSchema,
3127
+ outputSchema: parallelSearchOutputSchema
3128
+ });
3129
+ var parallelSearch = (config = {}) => parallelSearchToolFactory(config);
3130
+
3131
+ // src/tool/perplexity-search.ts
3132
+ import {
3133
+ createProviderExecutedToolFactory as createProviderExecutedToolFactory3,
3134
+ lazySchema as lazySchema12,
3135
+ zodSchema as zodSchema12
3136
+ } from "@ai-sdk/provider-utils";
3137
+ var perplexitySearchInputSchema = lazySchema12(
3138
+ () => zodSchema12(
3139
+ z.object({
3140
+ query: z.union([z.string(), z.array(z.string())]).describe(
3141
+ "Search query (string) or multiple queries (array of up to 5 strings). Multi-query searches return combined results from all queries."
3142
+ ),
3143
+ max_results: z.number().optional().describe(
3144
+ "Maximum number of search results to return (1-20, default: 10)"
3145
+ ),
3146
+ max_tokens_per_page: z.number().optional().describe(
3147
+ "Maximum number of tokens to extract per search result page (256-2048, default: 2048)"
3148
+ ),
3149
+ max_tokens: z.number().optional().describe(
3150
+ "Maximum total tokens across all search results (default: 25000, max: 1000000)"
3151
+ ),
3152
+ country: z.string().optional().describe(
3153
+ "Two-letter ISO 3166-1 alpha-2 country code for regional search results (e.g., 'US', 'GB', 'FR')"
3154
+ ),
3155
+ search_domain_filter: z.array(z.string()).optional().describe(
3156
+ "List of domains to include or exclude from search results (max 20). To include: ['nature.com', 'science.org']. To exclude: ['-example.com', '-spam.net']"
3157
+ ),
3158
+ search_language_filter: z.array(z.string()).optional().describe(
3159
+ "List of ISO 639-1 language codes to filter results (max 10, lowercase). Examples: ['en', 'fr', 'de']"
3160
+ ),
3161
+ search_after_date: z.string().optional().describe(
3162
+ "Include only results published after this date. Format: 'MM/DD/YYYY' (e.g., '3/1/2025'). Cannot be used with search_recency_filter."
3163
+ ),
3164
+ search_before_date: z.string().optional().describe(
3165
+ "Include only results published before this date. Format: 'MM/DD/YYYY' (e.g., '3/15/2025'). Cannot be used with search_recency_filter."
3166
+ ),
3167
+ last_updated_after_filter: z.string().optional().describe(
3168
+ "Include only results last updated after this date. Format: 'MM/DD/YYYY' (e.g., '3/1/2025'). Cannot be used with search_recency_filter."
3169
+ ),
3170
+ last_updated_before_filter: z.string().optional().describe(
3171
+ "Include only results last updated before this date. Format: 'MM/DD/YYYY' (e.g., '3/15/2025'). Cannot be used with search_recency_filter."
3172
+ ),
3173
+ search_recency_filter: z.enum(["day", "week", "month", "year"]).optional().describe(
3174
+ "Filter results by relative time period. Cannot be used with search_after_date or search_before_date."
3175
+ )
3176
+ })
3177
+ )
3178
+ );
3179
+ var perplexitySearchOutputSchema = lazySchema12(
3180
+ () => zodSchema12(
3181
+ z.union([
3182
+ // Success response
3183
+ z.object({
3184
+ results: z.array(
3185
+ z.object({
3186
+ title: z.string(),
3187
+ url: z.string(),
3188
+ snippet: z.string(),
3189
+ date: z.string().optional(),
3190
+ lastUpdated: z.string().optional()
3191
+ })
3192
+ ),
3193
+ id: z.string()
3194
+ }),
3195
+ // Error response
3196
+ z.object({
3197
+ error: z.enum([
3198
+ "api_error",
3199
+ "rate_limit",
3200
+ "timeout",
3201
+ "invalid_input",
3202
+ "unknown"
3203
+ ]),
3204
+ statusCode: z.number().optional(),
3205
+ message: z.string()
3206
+ })
3207
+ ])
3208
+ )
3209
+ );
3210
+ var perplexitySearchToolFactory = createProviderExecutedToolFactory3({
3211
+ id: "gateway.perplexity_search",
3212
+ inputSchema: perplexitySearchInputSchema,
3213
+ outputSchema: perplexitySearchOutputSchema
3214
+ });
3215
+ var perplexitySearch = (config = {}) => perplexitySearchToolFactory(config);
3216
+
3217
+ // src/tool/tako-search.ts
3218
+ import {
3219
+ createProviderExecutedToolFactory as createProviderExecutedToolFactory4,
3220
+ lazySchema as lazySchema13,
3221
+ zodSchema as zodSchema13
3222
+ } from "@ai-sdk/provider-utils";
3223
+ var takoDataSourceInputSchema = z.object({
3224
+ count: z.number().optional().describe(
3225
+ "Maximum number of data results to return (1-20). When include_contents is true, each additional result adds its own data surcharge."
3226
+ ),
3227
+ include_contents: z.boolean().optional().describe(
3228
+ "Inline rows for each data result. This adds a data surcharge based on row count and dataset source. To estimate cost, search with include_contents disabled and inspect cards.content.export_pricing. This applies to every returned card; limit sources.data.count and sources.data.max_rows to control cost."
3229
+ ),
3230
+ mode: z.enum(["inline", "url"]).optional().describe(
3231
+ "Requested data delivery mode. Search card data is always inline."
3232
+ ),
3233
+ content_format: z.enum(["card_json", "csv", "json_compact", "json_records"]).optional().describe("Serialization for inlined card data."),
3234
+ max_rows: z.number().optional().describe(
3235
+ "Maximum rows to inline per result. Omit to use the allowance in cards.content.export_pricing. A data surcharge applies per 1,000 exported rows; lower values reduce cost."
3236
+ ),
3237
+ node_ids: z.array(z.string()).optional().describe("Data Graph node IDs to prioritize. Maximum 20."),
3238
+ strict: z.boolean().optional().describe(
3239
+ "Only return cards matching node_ids. Requires a non-empty node_ids."
3240
+ )
3241
+ });
3242
+ var takoWebSourceInputSchema = z.object({
3243
+ count: z.number().optional().describe("Maximum number of web results to return (1-20)."),
3244
+ include_contents: z.boolean().optional().describe("Inline extracted web page text. This can add a data charge."),
3245
+ category: z.enum(["finance", "news", "sports"]).optional().describe("Optional web-result category filter."),
3246
+ include_domains: z.array(z.string()).optional().describe("Only return results from these bare domains."),
3247
+ exclude_domains: z.array(z.string()).optional().describe("Exclude results from these bare domains."),
3248
+ snippet_max_chars: z.number().optional().describe("Maximum characters in each web-result snippet."),
3249
+ highlights: z.boolean().optional().describe(
3250
+ "Include highlighted passages in web results. Defaults to true in AI Gateway."
3251
+ ),
3252
+ article_content_max_chars: z.number().optional().describe(
3253
+ "Maximum extracted characters per web page when including contents."
3254
+ ),
3255
+ published_after: z.string().optional().describe("Keep results published on or after this ISO date (YYYY-MM-DD)."),
3256
+ published_before: z.string().optional().describe(
3257
+ "Keep results published on or before this ISO date (YYYY-MM-DD)."
3258
+ )
3259
+ });
3260
+ var takoSearchInputSchema = lazySchema13(
3261
+ () => zodSchema13(
3262
+ z.object({
3263
+ query: z.string().describe(
3264
+ 'Natural-language search query. Include the entity, metric, and time period. Quote a phrase to force it to one entity, for example "Tesla":PRODUCT price.'
3265
+ ),
3266
+ effort: z.enum(["deep", "fast", "instant"]).optional().describe(
3267
+ "Search effort. fast is the balanced default, instant favors cached results and low latency, and deep broadens retrieval with reranking at higher cost and latency."
3268
+ ),
3269
+ sources: z.object({
3270
+ data: takoDataSourceInputSchema.optional(),
3271
+ web: takoWebSourceInputSchema.optional()
3272
+ }).optional().describe(
3273
+ "Sources to search. Omit to search both curated data and the web. When provided, only keys present are searched."
3274
+ ),
3275
+ location: z.object({
3276
+ latitude: z.number().describe("Latitude between -90 and 90."),
3277
+ longitude: z.number().describe("Longitude between -180 and 180.")
3278
+ }).optional().describe("End-user coordinates for localized results."),
3279
+ country_code: z.string().optional().describe("Two-letter ISO 3166-1 country code, such as 'US'."),
3280
+ locale: z.string().optional().describe("BCP-47 locale, such as 'en-US'."),
3281
+ timezone: z.string().optional().describe("IANA timezone, such as 'America/New_York'."),
3282
+ output_settings: z.object({
3283
+ image_dark_mode: z.boolean().optional().describe("Render card preview images in dark mode."),
3284
+ force_refresh: z.boolean().optional().describe(
3285
+ "Instant-effort only. Request a refreshed instant result."
3286
+ )
3287
+ }).optional().describe("Controls card rendering in the search response."),
3288
+ include_related: z.number().optional().describe("Maximum related search suggestions to include (1-20).")
3289
+ })
3290
+ )
3291
+ );
3292
+ var takoDatasetCellSchema = z.union([z.boolean(), z.number(), z.string()]).nullable();
3293
+ var takoResultContentSchema = z.object({
3294
+ content_format: z.enum(["card_json", "csv", "json_compact", "json_records"]).nullish(),
3295
+ cost: z.number().optional(),
3296
+ data: z.string().nullish(),
3297
+ records: z.array(z.record(z.string(), takoDatasetCellSchema)).nullish(),
3298
+ dataset: z.object({
3299
+ columns: z.array(
3300
+ z.object({
3301
+ name: z.string(),
3302
+ type: z.enum(["boolean", "date", "datetime", "number", "string"]),
3303
+ unit: z.string().nullish()
3304
+ })
3305
+ ),
3306
+ rows: z.array(z.array(takoDatasetCellSchema)),
3307
+ total_rows: z.number(),
3308
+ truncated: z.boolean(),
3309
+ ref: z.string(),
3310
+ sources: z.array(
3311
+ z.object({
3312
+ name: z.string(),
3313
+ index: z.enum(["data", "web"]).optional()
3314
+ })
3315
+ ),
3316
+ provenance: z.enum(["query", "web_extraction"]).optional()
3317
+ }).nullish(),
3318
+ card_data: z.object({}).passthrough().nullish(),
3319
+ card_data_schema: z.object({}).passthrough().nullish(),
3320
+ url: z.string().nullish(),
3321
+ expires_at: z.string().nullish(),
3322
+ total_rows: z.number().nullish(),
3323
+ truncated: z.boolean().optional(),
3324
+ export_pricing: z.object({
3325
+ baseline_usd: z.number(),
3326
+ free_rows: z.number(),
3327
+ max_rows_ceiling: z.number(),
3328
+ row_cpm_usd: z.number()
3329
+ }).nullish(),
3330
+ manifest: z.array(
3331
+ z.object({
3332
+ dtype: z.enum(["boolean", "date", "datetime", "number", "string"]).nullish(),
3333
+ entity: z.string().nullish(),
3334
+ metric: z.string().nullish(),
3335
+ name: z.string().nullish(),
3336
+ unit: z.string().nullish()
3337
+ })
3338
+ ).nullish()
3339
+ }).passthrough();
3340
+ var takoCardSchema = z.object({
3341
+ card_id: z.string().nullish(),
3342
+ title: z.string().nullish(),
3343
+ description: z.string().nullish(),
3344
+ semantic_description: z.string().nullish(),
3345
+ webpage_url: z.string().nullish(),
3346
+ image_url: z.string().nullish(),
3347
+ embed_url: z.string().nullish(),
3348
+ sources: z.array(
3349
+ z.object({
3350
+ source_name: z.string().nullish(),
3351
+ source_description: z.string().nullish(),
3352
+ source_index: z.enum(["data", "web"]),
3353
+ source_text: z.string().nullish(),
3354
+ url: z.string().nullish()
3355
+ })
3356
+ ).nullish(),
3357
+ methodologies: z.array(
3358
+ z.object({
3359
+ methodology_name: z.string().nullable(),
3360
+ methodology_description: z.string().nullable()
3361
+ })
3362
+ ).nullish(),
3363
+ source_indexes: z.array(z.enum(["data", "web"])).nullish(),
3364
+ card_type: z.string().nullish(),
3365
+ relevance: z.enum(["High", "Low", "Medium"]).nullish(),
3366
+ content: takoResultContentSchema.nullish(),
3367
+ exportable: z.boolean().optional(),
3368
+ nodes: z.array(
3369
+ z.object({
3370
+ id: z.string(),
3371
+ type: z.enum(["entity", "metric"]),
3372
+ name: z.string(),
3373
+ description: z.string().nullish()
3374
+ })
3375
+ ).nullish(),
3376
+ metric_definitions: z.array(z.object({ name: z.string(), definition: z.string() })).nullish(),
3377
+ data_freshness: z.object({
3378
+ coverage_end: z.string().nullish(),
3379
+ data_as_of: z.string().nullish(),
3380
+ last_updated: z.string().nullish()
3381
+ }).nullish()
3382
+ }).passthrough();
3383
+ var takoWebResultSchema = z.object({
3384
+ title: z.string(),
3385
+ url: z.string(),
3386
+ snippet: z.string().nullish(),
3387
+ source_name: z.string().nullish(),
3388
+ publish_date: z.string().nullish(),
3389
+ content: takoResultContentSchema.nullish()
3390
+ }).passthrough();
3391
+ var takoSearchOutputSchema = lazySchema13(
3392
+ () => zodSchema13(
3393
+ z.union([
3394
+ z.object({
3395
+ request_id: z.string(),
3396
+ cards: z.array(takoCardSchema).optional(),
3397
+ web_results: z.array(takoWebResultSchema).optional(),
3398
+ usage: z.object({
3399
+ total_cost_usd: z.number(),
3400
+ compute: z.object({ cost_usd: z.number() }).nullish(),
3401
+ data: z.object({ cost_usd: z.number(), datasets: z.number() }).nullish()
3402
+ }).nullish(),
3403
+ related: z.array(z.object({}).passthrough()).nullish()
3404
+ }).passthrough(),
3405
+ z.object({
3406
+ error: z.enum([
3407
+ "api_error",
3408
+ "configuration_error",
3409
+ "execution_error",
3410
+ "invalid_input",
3411
+ "rate_limit",
3412
+ "timeout",
3413
+ "unknown_tool"
3414
+ ]),
3415
+ statusCode: z.number().optional(),
3416
+ message: z.string()
3417
+ })
3418
+ ])
3419
+ )
3420
+ );
3421
+ var takoSearchToolFactory = createProviderExecutedToolFactory4({
3422
+ id: "gateway.tako_search",
3423
+ inputSchema: takoSearchInputSchema,
3424
+ outputSchema: takoSearchOutputSchema
3425
+ });
3426
+ var takoSearch = (config = {}) => takoSearchToolFactory(config);
3427
+
3428
+ // src/gateway-tools.ts
3429
+ var gatewayTools = {
3430
+ /**
3431
+ * Search the web using Exa for current information and token-efficient
3432
+ * excerpts optimized for agent workflows.
3433
+ *
3434
+ * Supports search type, category, domain, date, location, and content
3435
+ * extraction controls.
3436
+ */
3437
+ exaSearch,
3438
+ /**
3439
+ * Search the web using Parallel AI's Search API for LLM-optimized excerpts.
3440
+ *
3441
+ * Takes a natural language objective and returns relevant excerpts,
3442
+ * replacing multiple keyword searches with a single call for broad
3443
+ * or complex queries. Supports different search types for depth vs
3444
+ * breadth tradeoffs.
3445
+ */
3446
+ parallelSearch,
3447
+ /**
3448
+ * Search the web using Perplexity's Search API for real-time information,
3449
+ * news, research papers, and articles.
3450
+ *
3451
+ * Provides ranked search results with advanced filtering options including
3452
+ * domain, language, date range, and recency filters.
3453
+ */
3454
+ perplexitySearch,
3455
+ /**
3456
+ * Search the web and Tako's curated knowledge graph in one call for
3457
+ * token-efficient web excerpts and structured data results grounded in
3458
+ * premium sources, each with an embed-ready visualization.
3459
+ *
3460
+ * Supports effort, per-source web and data controls, localization, and inline
3461
+ * contents for agents that need to reason over underlying data.
3462
+ */
3463
+ takoSearch
3464
+ };
3465
+
3466
+ // src/vercel-environment.ts
3467
+ import { getContext } from "@vercel/oidc";
3468
+ import { getVercelOidcToken } from "@vercel/oidc";
3469
+ async function getVercelRequestId() {
3470
+ var _a12;
3471
+ return (_a12 = getContext().headers) == null ? void 0 : _a12["x-vercel-id"];
3472
+ }
3473
+
3474
+ // src/version.ts
3475
+ var VERSION = true ? "4.0.80" : "0.0.0-test";
3476
+
3477
+ // src/gateway-provider.ts
3478
+ var AI_GATEWAY_PROTOCOL_VERSION = "0.0.1";
3479
+ var gatewayClientSecretResponseSchema = z.object({
3480
+ token: z.string(),
3481
+ expiresAt: z.number().nullish()
3482
+ });
3483
+ function createGateway(options = {}) {
3484
+ var _a12, _b12;
3485
+ let pendingMetadata = null;
3486
+ let metadataCache = null;
3487
+ const cacheRefreshMillis = (_a12 = options.metadataCacheRefreshMillis) != null ? _a12 : 1e3 * 60 * 5;
3488
+ let lastFetchTime = 0;
3489
+ const baseURL = (_b12 = withoutTrailingSlash(options.baseURL)) != null ? _b12 : "https://ai-gateway.vercel.sh/v4/ai";
3490
+ const createAuthHeaders = (auth) => withUserAgentSuffix(
3491
+ {
3492
+ Authorization: `Bearer ${auth.token}`,
3493
+ "ai-gateway-protocol-version": AI_GATEWAY_PROTOCOL_VERSION,
3494
+ [GATEWAY_AUTH_METHOD_HEADER]: auth.authMethod,
3495
+ ...options.teamIdOrSlug != null ? { [VERCEL_AI_GATEWAY_TEAM_HEADER]: options.teamIdOrSlug } : {},
3496
+ ...options.headers
3497
+ },
3498
+ `ai-sdk/gateway/${VERSION}`
3499
+ );
3500
+ const getHeaders = async () => {
3501
+ try {
3502
+ return createAuthHeaders(await getGatewayAuthToken(options));
3503
+ } catch (error) {
3504
+ throw GatewayAuthenticationError.createContextualError({
3505
+ apiKeyProvided: false,
3506
+ oidcTokenProvided: false,
3507
+ statusCode: 401,
3508
+ cause: error
3509
+ });
3510
+ }
3511
+ };
3512
+ const getRealtimeAuthToken = async () => {
3513
+ try {
3514
+ return await getGatewayAuthToken(options);
3515
+ } catch (error) {
3516
+ throw GatewayAuthenticationError.createContextualError({
3517
+ apiKeyProvided: false,
3518
+ oidcTokenProvided: false,
3519
+ statusCode: 401,
3520
+ cause: error
3521
+ });
3522
+ }
3523
+ };
3524
+ const mintClientSecret = async (params) => {
3525
+ assertGatewayClientSecretServerEnvironment();
3526
+ const auth = await getRealtimeAuthToken();
3527
+ const headers = createAuthHeaders(auth);
3528
+ const url = new URL("/v1/realtime/client-secrets", baseURL).toString();
3529
+ try {
3530
+ const { value } = await postJsonToApi9({
3531
+ url,
3532
+ headers,
3533
+ body: {
3534
+ model: params.modelId,
3535
+ ...params.routeKind != null && { routeKind: params.routeKind },
3536
+ ...params.expiresAfterSeconds != null && {
3537
+ expiresIn: params.expiresAfterSeconds
3538
+ }
3539
+ },
3540
+ successfulResponseHandler: createJsonResponseHandler12(
3541
+ gatewayClientSecretResponseSchema
3542
+ ),
3543
+ failedResponseHandler: createJsonErrorResponseHandler12({
3544
+ errorSchema: z.any(),
3545
+ errorToMessage: (data) => {
3546
+ var _a13;
3547
+ return (_a13 = getErrorMessage12(data)) != null ? _a13 : "unknown error";
3548
+ }
3549
+ }),
3550
+ fetch: options.fetch
3551
+ });
3552
+ return {
3553
+ token: value.token,
3554
+ ...value.expiresAt != null && { expiresAt: value.expiresAt }
3555
+ };
3556
+ } catch (error) {
3557
+ throw await asGatewayError(error, await parseAuthMethod(headers));
3558
+ }
3559
+ };
3560
+ const createO11yHeaders = () => {
3561
+ const deploymentId = loadOptionalSetting({
3562
+ settingValue: void 0,
3563
+ environmentVariableName: "VERCEL_DEPLOYMENT_ID"
3564
+ });
3565
+ const environment = loadOptionalSetting({
3566
+ settingValue: void 0,
3567
+ environmentVariableName: "VERCEL_ENV"
3568
+ });
3569
+ const region = loadOptionalSetting({
3570
+ settingValue: void 0,
3571
+ environmentVariableName: "VERCEL_REGION"
3572
+ });
3573
+ const projectId = loadOptionalSetting({
3574
+ settingValue: void 0,
3575
+ environmentVariableName: "VERCEL_PROJECT_ID"
3576
+ });
3577
+ return async () => {
3578
+ const requestId = await getVercelRequestId();
3579
+ return {
3580
+ ...deploymentId && { "ai-o11y-deployment-id": deploymentId },
3581
+ ...environment && { "ai-o11y-environment": environment },
3582
+ ...region && { "ai-o11y-region": region },
3583
+ ...requestId && { "ai-o11y-request-id": requestId },
3584
+ ...projectId && { "ai-o11y-project-id": projectId }
3585
+ };
3586
+ };
3587
+ };
3588
+ const createLanguageModel = (modelId) => {
3589
+ return new GatewayLanguageModel(modelId, {
3590
+ provider: "gateway",
3591
+ baseURL,
3592
+ headers: getHeaders,
3593
+ fetch: options.fetch,
3594
+ o11yHeaders: createO11yHeaders()
3595
+ });
3596
+ };
3597
+ const createBatch = () => new GatewayBatch({
3598
+ provider: "gateway",
3599
+ baseURL,
3600
+ headers: getHeaders,
3601
+ fetch: options.fetch,
3602
+ o11yHeaders: createO11yHeaders()
3603
+ });
3604
+ const getAvailableModels = async () => {
3605
+ var _a13, _b13, _c;
3606
+ const now = (_c = (_b13 = (_a13 = options._internal) == null ? void 0 : _a13.currentDate) == null ? void 0 : _b13.call(_a13).getTime()) != null ? _c : Date.now();
3607
+ if (!pendingMetadata || now - lastFetchTime > cacheRefreshMillis) {
3608
+ lastFetchTime = now;
3609
+ pendingMetadata = new GatewayFetchMetadata({
3610
+ baseURL,
3611
+ headers: getHeaders,
3612
+ fetch: options.fetch
3613
+ }).getAvailableModels().then((metadata) => {
3614
+ metadataCache = metadata;
3615
+ return metadata;
3616
+ }).catch(async (error) => {
3617
+ throw await asGatewayError(
3618
+ error,
3619
+ await parseAuthMethod(await getHeaders())
3620
+ );
3621
+ });
3622
+ }
3623
+ return metadataCache ? Promise.resolve(metadataCache) : pendingMetadata;
3624
+ };
3625
+ const getCredits = async () => {
3626
+ return new GatewayFetchMetadata({
3627
+ baseURL,
3628
+ headers: getHeaders,
3629
+ fetch: options.fetch
3630
+ }).getCredits().catch(async (error) => {
3631
+ throw await asGatewayError(
3632
+ error,
3633
+ await parseAuthMethod(await getHeaders())
3634
+ );
3635
+ });
3636
+ };
3637
+ const getSpendReport = async (params) => {
3638
+ return new GatewaySpendReport({
3639
+ baseURL,
3640
+ headers: getHeaders,
3641
+ fetch: options.fetch
3642
+ }).getSpendReport(params).catch(async (error) => {
3643
+ throw await asGatewayError(
3644
+ error,
3645
+ await parseAuthMethod(await getHeaders())
3646
+ );
3647
+ });
3648
+ };
3649
+ const getGenerationInfo = async (params) => {
3650
+ return new GatewayGenerationInfoFetcher({
3651
+ baseURL,
3652
+ headers: getHeaders,
3653
+ fetch: options.fetch
3654
+ }).getGenerationInfo(params).catch(async (error) => {
3655
+ throw await asGatewayError(
3656
+ error,
3657
+ await parseAuthMethod(await getHeaders())
3658
+ );
3659
+ });
3660
+ };
3661
+ const provider = function(modelId) {
3662
+ if (new.target) {
3663
+ throw new Error(
3664
+ "The Gateway Provider model function cannot be called with the new keyword."
3665
+ );
3666
+ }
3667
+ return createLanguageModel(modelId);
3668
+ };
3669
+ provider.specificationVersion = "v4";
3670
+ provider.getAvailableModels = getAvailableModels;
3671
+ provider.getCredits = getCredits;
3672
+ provider.getSpendReport = getSpendReport;
3673
+ provider.getGenerationInfo = getGenerationInfo;
3674
+ provider.imageModel = (modelId) => {
3675
+ return new GatewayImageModel(modelId, {
3676
+ provider: "gateway",
3677
+ baseURL,
3678
+ headers: getHeaders,
3679
+ fetch: options.fetch,
3680
+ o11yHeaders: createO11yHeaders()
3681
+ });
3682
+ };
3683
+ provider.languageModel = createLanguageModel;
3684
+ provider.experimental_batch = createBatch;
3685
+ const createEmbeddingModel = (modelId) => {
3686
+ return new GatewayEmbeddingModel(modelId, {
3687
+ provider: "gateway",
3688
+ baseURL,
3689
+ headers: getHeaders,
3690
+ fetch: options.fetch,
3691
+ o11yHeaders: createO11yHeaders()
3692
+ });
3693
+ };
3694
+ provider.embeddingModel = createEmbeddingModel;
3695
+ provider.textEmbeddingModel = createEmbeddingModel;
3696
+ provider.videoModel = (modelId) => {
3697
+ return new GatewayVideoModel(modelId, {
3698
+ provider: "gateway",
3699
+ baseURL,
3700
+ headers: getHeaders,
3701
+ fetch: options.fetch,
3702
+ o11yHeaders: createO11yHeaders()
3703
+ });
3704
+ };
3705
+ const createRerankingModel = (modelId) => {
3706
+ return new GatewayRerankingModel(modelId, {
3707
+ provider: "gateway",
3708
+ baseURL,
3709
+ headers: getHeaders,
3710
+ fetch: options.fetch,
3711
+ o11yHeaders: createO11yHeaders()
3712
+ });
3713
+ };
3714
+ provider.rerankingModel = createRerankingModel;
3715
+ provider.reranking = createRerankingModel;
3716
+ const createSpeechModel = (modelId) => {
3717
+ return new GatewaySpeechModel(modelId, {
3718
+ provider: "gateway",
3719
+ baseURL,
3720
+ headers: getHeaders,
3721
+ fetch: options.fetch,
3722
+ o11yHeaders: createO11yHeaders()
3723
+ });
3724
+ };
3725
+ provider.speechModel = createSpeechModel;
3726
+ provider.speech = createSpeechModel;
3727
+ const createTranscriptionModel = (modelId) => {
3728
+ return new GatewayTranscriptionModel(modelId, {
3729
+ provider: "gateway",
3730
+ baseURL,
3731
+ headers: getHeaders,
3732
+ fetch: options.fetch,
3733
+ o11yHeaders: createO11yHeaders(),
3734
+ webSocket: options.webSocket
3735
+ });
3736
+ };
3737
+ provider.transcriptionModel = createTranscriptionModel;
3738
+ provider.transcription = createTranscriptionModel;
3739
+ provider.experimental_transcription = Object.assign(
3740
+ (modelId) => createTranscriptionModel(modelId),
3741
+ {
3742
+ getToken: async (tokenOptions) => {
3743
+ const secret = await mintClientSecret({
3744
+ modelId: tokenOptions.model,
3745
+ routeKind: "transcription",
3746
+ ...tokenOptions.expiresAfterSeconds != null && {
3747
+ expiresAfterSeconds: tokenOptions.expiresAfterSeconds
3748
+ }
3749
+ });
3750
+ return {
3751
+ token: secret.token,
3752
+ url: toGatewayTranscriptionUrl(baseURL, tokenOptions.model),
3753
+ ...secret.expiresAt != null && { expiresAt: secret.expiresAt }
3754
+ };
3755
+ }
3756
+ }
3757
+ );
3758
+ const createRealtimeModel = (modelId) => new GatewayRealtimeModel(modelId, {
3759
+ provider: "gateway.realtime",
3760
+ baseURL,
3761
+ teamIdOrSlug: options.teamIdOrSlug,
3762
+ createClientSecret: mintClientSecret
3763
+ });
3764
+ provider.experimental_realtime = Object.assign(
3765
+ (modelId) => createRealtimeModel(modelId),
3766
+ {
3767
+ getToken: async (tokenOptions) => {
3768
+ const { model: modelId, ...secretOptions } = tokenOptions;
3769
+ const model = createRealtimeModel(modelId);
3770
+ const secret = await model.doCreateClientSecret(secretOptions);
3771
+ return {
3772
+ token: secret.token,
3773
+ url: secret.url,
3774
+ ...secret.expiresAt != null && { expiresAt: secret.expiresAt }
3775
+ };
3776
+ }
3777
+ }
3778
+ );
3779
+ provider.chat = provider.languageModel;
3780
+ provider.embedding = provider.embeddingModel;
3781
+ provider.image = provider.imageModel;
3782
+ provider.video = provider.videoModel;
3783
+ provider.tools = gatewayTools;
3784
+ return provider;
3785
+ }
3786
+ var gateway = createGateway();
3787
+ async function getGatewayAuthToken(options) {
3788
+ const apiKey = loadOptionalSetting({
3789
+ settingValue: options.apiKey,
3790
+ environmentVariableName: "AI_GATEWAY_API_KEY"
3791
+ });
3792
+ if (apiKey) {
3793
+ return {
3794
+ token: apiKey,
3795
+ authMethod: "api-key"
3796
+ };
3797
+ }
3798
+ const oidcToken = await getVercelOidcToken();
3799
+ return {
3800
+ token: oidcToken,
3801
+ authMethod: "oidc"
3802
+ };
3803
+ }
3804
+ function assertGatewayClientSecretServerEnvironment() {
3805
+ if (typeof globalThis.window !== "undefined") {
3806
+ throw new Error(
3807
+ "AI Gateway client secrets must be minted server-side: minting needs your Gateway credential, which must never reach the browser. Call gateway.experimental_realtime.getToken() or gateway.experimental_transcription.getToken() from your server and pass the returned token to the client."
3808
+ );
3809
+ }
3810
+ }
3811
+ export {
3812
+ GATEWAY_AUTH_SUBPROTOCOL_PREFIX,
3813
+ GATEWAY_REALTIME_SUBPROTOCOL,
3814
+ GATEWAY_TEAM_SUBPROTOCOL_PREFIX,
3815
+ GATEWAY_TRANSCRIPTION_SUBPROTOCOL,
3816
+ GatewayAuthenticationError,
3817
+ GatewayError,
3818
+ GatewayFailedDependencyError,
3819
+ GatewayForbiddenError,
3820
+ GatewayInternalServerError,
3821
+ GatewayInvalidRequestError,
3822
+ GatewayModelNotFoundError,
3823
+ GatewayNotFoundError,
3824
+ GatewayRateLimitError,
3825
+ GatewayResponseError,
3826
+ VERSION,
3827
+ createGateway,
3828
+ createGateway as createGatewayProvider,
3829
+ gateway,
3830
+ getGatewayRealtimeAuthToken,
3831
+ getGatewayRealtimeProtocols,
3832
+ getGatewayRealtimeTeamIdOrSlug,
3833
+ getGatewayTranscriptionProtocols
3834
+ };
3835
+ //# sourceMappingURL=index.js.map