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,3690 @@
1
+ // internal/index.ts
2
+ import { convertAsyncIteratorToReadableStream } from "@ai-sdk/provider-utils";
3
+
4
+ // src/util/async-iterable-stream.ts
5
+ function createAsyncIterableStream(source) {
6
+ return asAsyncIterableStream(source.pipeThrough(new TransformStream()));
7
+ }
8
+ function asAsyncIterableStream(stream) {
9
+ stream[Symbol.asyncIterator] = function() {
10
+ const reader = this.getReader();
11
+ let finished = false;
12
+ async function cleanup(cancelStream) {
13
+ var _a12;
14
+ if (finished) return;
15
+ finished = true;
16
+ try {
17
+ if (cancelStream) {
18
+ await ((_a12 = reader.cancel) == null ? void 0 : _a12.call(reader));
19
+ }
20
+ } finally {
21
+ try {
22
+ reader.releaseLock();
23
+ } catch (e) {
24
+ }
25
+ }
26
+ }
27
+ return {
28
+ /**
29
+ * Reads the next chunk from the stream.
30
+ * @returns A promise resolving to the next IteratorResult.
31
+ */
32
+ async next() {
33
+ if (finished) {
34
+ return { done: true, value: void 0 };
35
+ }
36
+ let result;
37
+ try {
38
+ result = await reader.read();
39
+ } catch (error) {
40
+ await cleanup(false);
41
+ throw error;
42
+ }
43
+ const { done, value } = result;
44
+ if (done) {
45
+ await cleanup(true);
46
+ return { done: true, value: void 0 };
47
+ }
48
+ return { done: false, value };
49
+ },
50
+ /**
51
+ * May be called on early exit (e.g., break from for-await) or after completion.
52
+ * Ensures the stream is cancelled and resources are released.
53
+ * @returns A promise resolving to a completed IteratorResult.
54
+ */
55
+ async return() {
56
+ await cleanup(true);
57
+ return { done: true, value: void 0 };
58
+ },
59
+ /**
60
+ * Called on early exit with error.
61
+ * Ensures the stream is cancelled and resources are released, then rethrows the error.
62
+ * @param err The error to throw.
63
+ * @returns A promise that rejects with the provided error.
64
+ */
65
+ async throw(err) {
66
+ await cleanup(true);
67
+ throw err;
68
+ }
69
+ };
70
+ };
71
+ return stream;
72
+ }
73
+
74
+ // src/prompt/convert-to-language-model-prompt.ts
75
+ import {
76
+ asArray,
77
+ detectMediaType,
78
+ isFullMediaType,
79
+ isUrlSupported
80
+ } from "@ai-sdk/provider-utils";
81
+
82
+ // src/util/download/download.ts
83
+ import {
84
+ cancelResponseBody,
85
+ DownloadError,
86
+ readResponseWithSizeLimit,
87
+ DEFAULT_MAX_DOWNLOAD_SIZE,
88
+ fetchWithValidatedRedirects,
89
+ withUserAgentSuffix,
90
+ getRuntimeEnvironmentUserAgent
91
+ } from "@ai-sdk/provider-utils";
92
+
93
+ // src/version.ts
94
+ var VERSION = true ? "7.0.99" : "0.0.0-test";
95
+
96
+ // src/util/download/download.ts
97
+ var download = async ({
98
+ url,
99
+ maxBytes,
100
+ abortSignal
101
+ }) => {
102
+ var _a12;
103
+ const urlText = url.toString();
104
+ try {
105
+ const headers = withUserAgentSuffix(
106
+ {},
107
+ `ai-sdk/${VERSION}`,
108
+ getRuntimeEnvironmentUserAgent()
109
+ );
110
+ const response = await fetchWithValidatedRedirects({
111
+ url: urlText,
112
+ headers,
113
+ abortSignal
114
+ });
115
+ if (!response.ok) {
116
+ await cancelResponseBody(response);
117
+ throw new DownloadError({
118
+ url: urlText,
119
+ statusCode: response.status,
120
+ statusText: response.statusText
121
+ });
122
+ }
123
+ const data = await readResponseWithSizeLimit({
124
+ response,
125
+ url: urlText,
126
+ maxBytes: maxBytes != null ? maxBytes : DEFAULT_MAX_DOWNLOAD_SIZE
127
+ });
128
+ return {
129
+ data,
130
+ mediaType: (_a12 = response.headers.get("content-type")) != null ? _a12 : void 0
131
+ };
132
+ } catch (error) {
133
+ if (DownloadError.isInstance(error)) {
134
+ throw error;
135
+ }
136
+ throw new DownloadError({ url: urlText, cause: error });
137
+ }
138
+ };
139
+
140
+ // src/util/download/download-function.ts
141
+ var createDefaultDownloadFunction = (download2 = download) => (requestedDownloads) => Promise.all(
142
+ requestedDownloads.map(
143
+ async (requestedDownload) => requestedDownload.isUrlSupportedByModel ? null : await download2(requestedDownload)
144
+ )
145
+ );
146
+
147
+ // src/util/merge-objects.ts
148
+ function mergeObjects(base, overrides) {
149
+ if (base === void 0 && overrides === void 0) {
150
+ return void 0;
151
+ }
152
+ if (base === void 0) {
153
+ return overrides;
154
+ }
155
+ if (overrides === void 0) {
156
+ return base;
157
+ }
158
+ const result = { ...base };
159
+ for (const key in overrides) {
160
+ if (key === "__proto__" || key === "constructor" || key === "prototype") {
161
+ continue;
162
+ }
163
+ if (Object.prototype.hasOwnProperty.call(overrides, key)) {
164
+ const overridesValue = overrides[key];
165
+ if (overridesValue === void 0) continue;
166
+ const baseValue = key in base ? base[key] : void 0;
167
+ const isSourceObject = overridesValue !== null && typeof overridesValue === "object" && !Array.isArray(overridesValue) && !(overridesValue instanceof Date) && !(overridesValue instanceof RegExp);
168
+ const isTargetObject = baseValue !== null && baseValue !== void 0 && typeof baseValue === "object" && !Array.isArray(baseValue) && !(baseValue instanceof Date) && !(baseValue instanceof RegExp);
169
+ if (isSourceObject && isTargetObject) {
170
+ result[key] = mergeObjects(
171
+ baseValue,
172
+ overridesValue
173
+ );
174
+ } else {
175
+ result[key] = overridesValue;
176
+ }
177
+ }
178
+ }
179
+ return result;
180
+ }
181
+
182
+ // src/prompt/file-part-data.ts
183
+ import {
184
+ isBuffer,
185
+ isProviderReference
186
+ } from "@ai-sdk/provider-utils";
187
+
188
+ // src/prompt/invalid-data-content-error.ts
189
+ import { AISDKError } from "@ai-sdk/provider";
190
+ var name = "AI_InvalidDataContentError";
191
+ var marker = `vercel.ai.error.${name}`;
192
+ var symbol = Symbol.for(marker);
193
+ var _a, _b;
194
+ var InvalidDataContentError = class extends (_b = AISDKError, _a = symbol, _b) {
195
+ constructor({
196
+ content,
197
+ cause,
198
+ message = `Invalid data content. Expected a base64 string, Uint8Array, ArrayBuffer, or Buffer, but got ${typeof content}.`
199
+ }) {
200
+ super({ name, message, cause });
201
+ this[_a] = true;
202
+ this.content = content;
203
+ }
204
+ static isInstance(error) {
205
+ return AISDKError.hasMarker(error, marker);
206
+ }
207
+ };
208
+
209
+ // src/prompt/split-data-url.ts
210
+ function splitDataUrl(dataUrl) {
211
+ try {
212
+ const [header, base64Content] = dataUrl.split(",");
213
+ return {
214
+ mediaType: header.split(";")[0].split(":")[1],
215
+ base64Content
216
+ };
217
+ } catch (e) {
218
+ return {
219
+ mediaType: void 0,
220
+ base64Content: void 0
221
+ };
222
+ }
223
+ }
224
+
225
+ // src/prompt/file-part-data.ts
226
+ function isTaggedFileData(value) {
227
+ if (typeof value !== "object" || value === null) return false;
228
+ const type = value.type;
229
+ return type === "data" || type === "url" || type === "reference" || type === "text";
230
+ }
231
+ function convertUrlToFilePartData(url) {
232
+ if (url.protocol === "data:") {
233
+ const { mediaType, base64Content } = splitDataUrl(url.toString());
234
+ if (mediaType == null || base64Content == null) {
235
+ throw new InvalidDataContentError({
236
+ content: url,
237
+ message: `Invalid data URL format in content ${url.toString()}`
238
+ });
239
+ }
240
+ return { data: { type: "data", data: base64Content }, mediaType };
241
+ }
242
+ return { data: { type: "url", url }, mediaType: void 0 };
243
+ }
244
+ function convertInlineDataToFilePartData(content) {
245
+ if (content instanceof Uint8Array) {
246
+ return { data: { type: "data", data: content }, mediaType: void 0 };
247
+ }
248
+ if (content instanceof ArrayBuffer) {
249
+ return {
250
+ data: { type: "data", data: new Uint8Array(content) },
251
+ mediaType: void 0
252
+ };
253
+ }
254
+ if (isBuffer(content)) {
255
+ return {
256
+ data: { type: "data", data: new Uint8Array(content) },
257
+ mediaType: void 0
258
+ };
259
+ }
260
+ return {
261
+ data: { type: "data", data: content },
262
+ mediaType: void 0
263
+ };
264
+ }
265
+ function convertToLanguageModelV4FilePart(content) {
266
+ if (isTaggedFileData(content)) {
267
+ switch (content.type) {
268
+ case "data":
269
+ if (typeof content.data === "string" && content.data.startsWith("data:")) {
270
+ throw new InvalidDataContentError({
271
+ content: content.data,
272
+ message: 'Data URLs are not valid inline data. Pass them as { type: "url", url } instead.'
273
+ });
274
+ }
275
+ return convertInlineDataToFilePartData(content.data);
276
+ case "url":
277
+ return convertUrlToFilePartData(content.url);
278
+ case "reference":
279
+ return {
280
+ data: { type: "reference", reference: content.reference },
281
+ mediaType: void 0
282
+ };
283
+ case "text":
284
+ return {
285
+ data: { type: "text", text: content.text },
286
+ mediaType: void 0
287
+ };
288
+ }
289
+ }
290
+ if (content instanceof URL) {
291
+ return convertUrlToFilePartData(content);
292
+ }
293
+ if (typeof content === "string") {
294
+ try {
295
+ return convertUrlToFilePartData(new URL(content));
296
+ } catch (e) {
297
+ return convertInlineDataToFilePartData(content);
298
+ }
299
+ }
300
+ if (isProviderReference(content)) {
301
+ return {
302
+ data: { type: "reference", reference: content },
303
+ mediaType: void 0
304
+ };
305
+ }
306
+ return convertInlineDataToFilePartData(content);
307
+ }
308
+
309
+ // src/logger/log-warnings.ts
310
+ function formatWarning({
311
+ warning,
312
+ provider,
313
+ model
314
+ }) {
315
+ const scope = provider != null && model != null ? ` (${provider} / ${model})` : "";
316
+ const prefix = `AI SDK Warning${scope}:`;
317
+ switch (warning.type) {
318
+ case "unsupported": {
319
+ let message = `${prefix} The feature "${warning.feature}" is not supported.`;
320
+ if (warning.details) {
321
+ message += ` ${warning.details}`;
322
+ }
323
+ return message;
324
+ }
325
+ case "compatibility": {
326
+ let message = `${prefix} The feature "${warning.feature}" is used in a compatibility mode.`;
327
+ if (warning.details) {
328
+ message += ` ${warning.details}`;
329
+ }
330
+ return message;
331
+ }
332
+ case "deprecated": {
333
+ return `${prefix} Deprecated: "${warning.setting}". ${warning.message}`;
334
+ }
335
+ case "other": {
336
+ return `${prefix} ${warning.message}`;
337
+ }
338
+ default: {
339
+ return `${prefix} ${JSON.stringify(warning, null, 2)}`;
340
+ }
341
+ }
342
+ }
343
+ var FIRST_WARNING_INFO_MESSAGE = "AI SDK Warning System: To turn off warning logging, set the AI_SDK_LOG_WARNINGS global to false.";
344
+ var hasLoggedBefore = false;
345
+ function emitWarning({
346
+ message,
347
+ type
348
+ }) {
349
+ if (typeof process !== "undefined" && typeof process.emitWarning === "function") {
350
+ process.emitWarning(message, { type });
351
+ } else {
352
+ console.warn(message);
353
+ }
354
+ }
355
+ var logWarnings = (options) => {
356
+ if (options.warnings.length === 0) {
357
+ return;
358
+ }
359
+ const logger = globalThis.AI_SDK_LOG_WARNINGS;
360
+ if (logger === false) {
361
+ return;
362
+ }
363
+ if (typeof logger === "function") {
364
+ logger(options);
365
+ return;
366
+ }
367
+ if (!hasLoggedBefore) {
368
+ hasLoggedBefore = true;
369
+ emitWarning({
370
+ message: FIRST_WARNING_INFO_MESSAGE,
371
+ type: "Warning"
372
+ });
373
+ }
374
+ for (const warning of options.warnings) {
375
+ const message = formatWarning({
376
+ warning,
377
+ provider: options.provider,
378
+ model: options.model
379
+ });
380
+ emitWarning({
381
+ message,
382
+ type: warning.type === "deprecated" ? "DeprecationWarning" : "Warning"
383
+ });
384
+ }
385
+ };
386
+
387
+ // src/prompt/invalid-message-role-error.ts
388
+ import { AISDKError as AISDKError2 } from "@ai-sdk/provider";
389
+ var name2 = "AI_InvalidMessageRoleError";
390
+ var marker2 = `vercel.ai.error.${name2}`;
391
+ var symbol2 = Symbol.for(marker2);
392
+ var _a2, _b2;
393
+ var InvalidMessageRoleError = class extends (_b2 = AISDKError2, _a2 = symbol2, _b2) {
394
+ constructor({
395
+ role,
396
+ message = `Invalid message role: '${role}'. Must be one of: "system", "user", "assistant", "tool".`
397
+ }) {
398
+ super({ name: name2, message });
399
+ this[_a2] = true;
400
+ this.role = role;
401
+ }
402
+ static isInstance(error) {
403
+ return AISDKError2.hasMarker(error, marker2);
404
+ }
405
+ };
406
+
407
+ // src/error/missing-tool-result-error.ts
408
+ import { AISDKError as AISDKError3 } from "@ai-sdk/provider";
409
+ var name3 = "AI_MissingToolResultsError";
410
+ var marker3 = `vercel.ai.error.${name3}`;
411
+ var symbol3 = Symbol.for(marker3);
412
+ var _a3, _b3;
413
+ var MissingToolResultsError = class extends (_b3 = AISDKError3, _a3 = symbol3, _b3) {
414
+ constructor({ toolCallIds }) {
415
+ super({
416
+ name: name3,
417
+ message: `Tool result${toolCallIds.length > 1 ? "s are" : " is"} missing for tool call${toolCallIds.length > 1 ? "s" : ""} ${toolCallIds.join(
418
+ ", "
419
+ )}.`
420
+ });
421
+ this[_a3] = true;
422
+ this.toolCallIds = toolCallIds;
423
+ }
424
+ static isInstance(error) {
425
+ return AISDKError3.hasMarker(error, marker3);
426
+ }
427
+ };
428
+
429
+ // src/prompt/convert-to-language-model-prompt.ts
430
+ async function convertToLanguageModelPrompt({
431
+ prompt,
432
+ supportedUrls,
433
+ download: download2 = createDefaultDownloadFunction(),
434
+ // `provider` is only needed here to convert legacy tool output types via `mapToolResultOutput`.
435
+ // TODO: remove in v8 when "file-id" and "image-file-id" types are removed
436
+ provider
437
+ }) {
438
+ const downloadedAssets = await downloadAssets(
439
+ prompt.messages,
440
+ download2,
441
+ supportedUrls
442
+ );
443
+ const approvalIdToToolCallId = /* @__PURE__ */ new Map();
444
+ for (const message of prompt.messages) {
445
+ if (message.role === "assistant" && Array.isArray(message.content)) {
446
+ for (const part of message.content) {
447
+ if (part.type === "tool-approval-request" && "approvalId" in part && "toolCallId" in part) {
448
+ approvalIdToToolCallId.set(
449
+ part.approvalId,
450
+ part.toolCallId
451
+ );
452
+ }
453
+ }
454
+ }
455
+ }
456
+ const approvedToolCallIds = /* @__PURE__ */ new Set();
457
+ for (const message of prompt.messages) {
458
+ if (message.role === "tool") {
459
+ for (const part of message.content) {
460
+ if (part.type === "tool-approval-response") {
461
+ const toolCallId = approvalIdToToolCallId.get(part.approvalId);
462
+ if (toolCallId) {
463
+ approvedToolCallIds.add(toolCallId);
464
+ }
465
+ }
466
+ }
467
+ }
468
+ }
469
+ const messages = [
470
+ ...prompt.instructions != null ? typeof prompt.instructions === "string" ? [{ role: "system", content: prompt.instructions }] : asArray(prompt.instructions).map((message) => ({
471
+ role: "system",
472
+ content: message.content,
473
+ providerOptions: message.providerOptions
474
+ })) : [],
475
+ ...prompt.messages.map(
476
+ (message) => convertToLanguageModelMessage({ message, downloadedAssets, provider })
477
+ )
478
+ ];
479
+ const combinedMessages = [];
480
+ for (const message of messages) {
481
+ if (message.role !== "tool") {
482
+ combinedMessages.push(message);
483
+ continue;
484
+ }
485
+ const lastCombinedMessage = combinedMessages.at(-1);
486
+ if ((lastCombinedMessage == null ? void 0 : lastCombinedMessage.role) === "tool") {
487
+ const lastContentPart = lastCombinedMessage.content.at(-1);
488
+ if (lastContentPart != null && lastCombinedMessage.providerOptions != null) {
489
+ lastContentPart.providerOptions = mergeObjects(
490
+ lastCombinedMessage.providerOptions,
491
+ lastContentPart.providerOptions
492
+ );
493
+ }
494
+ lastCombinedMessage.content.push(...message.content);
495
+ lastCombinedMessage.providerOptions = message.providerOptions;
496
+ } else {
497
+ combinedMessages.push(message);
498
+ }
499
+ }
500
+ const toolCallIds = /* @__PURE__ */ new Set();
501
+ for (const message of combinedMessages) {
502
+ switch (message.role) {
503
+ case "assistant": {
504
+ for (const content of message.content) {
505
+ if (content.type === "tool-call" && !content.providerExecuted) {
506
+ toolCallIds.add(content.toolCallId);
507
+ }
508
+ }
509
+ break;
510
+ }
511
+ case "tool": {
512
+ for (const content of message.content) {
513
+ if (content.type === "tool-result") {
514
+ toolCallIds.delete(content.toolCallId);
515
+ }
516
+ }
517
+ break;
518
+ }
519
+ case "user":
520
+ case "system":
521
+ for (const id of approvedToolCallIds) {
522
+ toolCallIds.delete(id);
523
+ }
524
+ if (toolCallIds.size > 0) {
525
+ throw new MissingToolResultsError({
526
+ toolCallIds: Array.from(toolCallIds)
527
+ });
528
+ }
529
+ break;
530
+ }
531
+ }
532
+ for (const id of approvedToolCallIds) {
533
+ toolCallIds.delete(id);
534
+ }
535
+ if (toolCallIds.size > 0) {
536
+ throw new MissingToolResultsError({ toolCallIds: Array.from(toolCallIds) });
537
+ }
538
+ return combinedMessages.filter(
539
+ // Filter out empty tool messages (e.g. if they only contained
540
+ // tool-approval-response parts that were removed).
541
+ // This prevents sending invalid empty messages to the provider.
542
+ // Note: provider-executed tool-approval-response parts are preserved.
543
+ (message) => message.role !== "tool" || message.content.length > 0
544
+ );
545
+ }
546
+ function convertToLanguageModelMessage({
547
+ message,
548
+ downloadedAssets,
549
+ // `provider` is only needed here to convert legacy tool output types via `mapToolResultOutput`.
550
+ // TODO: remove in v8 when "file-id" and "image-file-id" types are removed
551
+ provider
552
+ }) {
553
+ const warnings = [];
554
+ const role = message.role;
555
+ switch (role) {
556
+ case "system": {
557
+ return {
558
+ role: "system",
559
+ content: message.content,
560
+ providerOptions: message.providerOptions
561
+ };
562
+ }
563
+ case "user": {
564
+ if (typeof message.content === "string") {
565
+ return {
566
+ role: "user",
567
+ content: [{ type: "text", text: message.content }],
568
+ providerOptions: message.providerOptions
569
+ };
570
+ }
571
+ const converted = {
572
+ role: "user",
573
+ content: message.content.map((part) => {
574
+ if (part.type === "image") {
575
+ warnings.push({
576
+ type: "deprecated",
577
+ setting: '"image" content part',
578
+ message: `The "image" content part type is deprecated. Use a "file" part with mediaType: 'image' (or a more specific image/* subtype) instead.`
579
+ });
580
+ }
581
+ return convertImagePartToFilePart(part);
582
+ }).map((part) => convertPartToLanguageModelPart(part, downloadedAssets)).filter((part) => part.type !== "text" || part.text !== ""),
583
+ providerOptions: message.providerOptions
584
+ };
585
+ if (warnings.length > 0) {
586
+ logWarnings({ warnings });
587
+ }
588
+ return converted;
589
+ }
590
+ case "assistant": {
591
+ if (typeof message.content === "string") {
592
+ return {
593
+ role: "assistant",
594
+ content: [{ type: "text", text: message.content }],
595
+ providerOptions: message.providerOptions
596
+ };
597
+ }
598
+ const converted = {
599
+ role: "assistant",
600
+ content: message.content.filter(
601
+ // remove empty text parts (no text, and no provider options):
602
+ (part) => part.type !== "text" || part.text !== "" || part.providerOptions != null
603
+ ).filter(
604
+ (part) => part.type !== "tool-approval-request"
605
+ ).map((part) => {
606
+ const providerOptions = part.providerOptions;
607
+ switch (part.type) {
608
+ case "custom": {
609
+ return {
610
+ type: "custom",
611
+ kind: part.kind,
612
+ providerOptions
613
+ };
614
+ }
615
+ case "file": {
616
+ const { data, mediaType } = convertToLanguageModelV4FilePart(
617
+ part.data
618
+ );
619
+ return {
620
+ type: "file",
621
+ data,
622
+ filename: part.filename,
623
+ mediaType: mediaType != null ? mediaType : part.mediaType,
624
+ providerOptions
625
+ };
626
+ }
627
+ case "reasoning": {
628
+ return {
629
+ type: "reasoning",
630
+ text: part.text,
631
+ providerOptions
632
+ };
633
+ }
634
+ case "reasoning-file": {
635
+ const { data, mediaType } = convertToLanguageModelV4FilePart(
636
+ part.data
637
+ );
638
+ if (data.type !== "data" && data.type !== "url") {
639
+ throw new Error(
640
+ `Unsupported reasoning-file data type: ${data.type}`
641
+ );
642
+ }
643
+ return {
644
+ type: "reasoning-file",
645
+ data,
646
+ mediaType: mediaType != null ? mediaType : part.mediaType,
647
+ providerOptions
648
+ };
649
+ }
650
+ case "text": {
651
+ return {
652
+ type: "text",
653
+ text: part.text,
654
+ providerOptions
655
+ };
656
+ }
657
+ case "tool-call": {
658
+ return {
659
+ type: "tool-call",
660
+ toolCallId: part.toolCallId,
661
+ toolName: part.toolName,
662
+ input: part.input,
663
+ providerExecuted: part.providerExecuted,
664
+ providerOptions
665
+ };
666
+ }
667
+ case "tool-result": {
668
+ return {
669
+ type: "tool-result",
670
+ toolCallId: part.toolCallId,
671
+ toolName: part.toolName,
672
+ output: mapToolResultOutput({
673
+ output: part.output,
674
+ provider,
675
+ warnings,
676
+ downloadedAssets
677
+ }),
678
+ providerOptions
679
+ };
680
+ }
681
+ }
682
+ }),
683
+ providerOptions: message.providerOptions
684
+ };
685
+ if (warnings.length > 0) {
686
+ logWarnings({ warnings });
687
+ }
688
+ return converted;
689
+ }
690
+ case "tool": {
691
+ const converted = {
692
+ role: "tool",
693
+ content: message.content.filter(
694
+ // Only include tool-approval-response for provider-executed tools
695
+ (part) => part.type !== "tool-approval-response" || part.providerExecuted
696
+ ).map((part) => {
697
+ switch (part.type) {
698
+ case "tool-result": {
699
+ return {
700
+ type: "tool-result",
701
+ toolCallId: part.toolCallId,
702
+ toolName: part.toolName,
703
+ output: mapToolResultOutput({
704
+ output: part.output,
705
+ provider,
706
+ warnings,
707
+ downloadedAssets
708
+ }),
709
+ providerOptions: part.providerOptions
710
+ };
711
+ }
712
+ case "tool-approval-response": {
713
+ return {
714
+ type: "tool-approval-response",
715
+ approvalId: part.approvalId,
716
+ approved: part.approved,
717
+ reason: part.reason
718
+ };
719
+ }
720
+ }
721
+ }),
722
+ providerOptions: message.providerOptions
723
+ };
724
+ if (warnings.length > 0) {
725
+ logWarnings({ warnings });
726
+ }
727
+ return converted;
728
+ }
729
+ default: {
730
+ const _exhaustiveCheck = role;
731
+ throw new InvalidMessageRoleError({ role: _exhaustiveCheck });
732
+ }
733
+ }
734
+ }
735
+ function convertImagePartToFilePart(part) {
736
+ var _a12;
737
+ if (part.type !== "image") {
738
+ return part;
739
+ }
740
+ return {
741
+ type: "file",
742
+ data: part.image,
743
+ mediaType: (_a12 = part.mediaType) != null ? _a12 : "image",
744
+ providerOptions: part.providerOptions
745
+ };
746
+ }
747
+ async function downloadAssets(messages, download2, supportedUrls) {
748
+ const downloadableFiles = [];
749
+ for (const message of messages) {
750
+ if (message.role === "user" && Array.isArray(message.content)) {
751
+ for (const part of message.content) {
752
+ const filePart = convertImagePartToFilePart(part);
753
+ if (filePart.type === "file") {
754
+ downloadableFiles.push(filePart);
755
+ }
756
+ }
757
+ }
758
+ if (message.role === "tool") {
759
+ for (const part of message.content) {
760
+ if (part.type !== "tool-result") {
761
+ continue;
762
+ }
763
+ if (part.output.type !== "content") {
764
+ continue;
765
+ }
766
+ for (const contentPart of part.output.value) {
767
+ if (contentPart.type === "file") {
768
+ downloadableFiles.push(contentPart);
769
+ }
770
+ }
771
+ }
772
+ }
773
+ if (message.role === "assistant" && Array.isArray(message.content)) {
774
+ for (const part of message.content) {
775
+ if (part.type !== "tool-result") {
776
+ continue;
777
+ }
778
+ if (part.output.type !== "content") {
779
+ continue;
780
+ }
781
+ for (const contentPart of part.output.value) {
782
+ if (contentPart.type === "file") {
783
+ downloadableFiles.push(contentPart);
784
+ }
785
+ }
786
+ }
787
+ }
788
+ }
789
+ const plannedDownloads = downloadableFiles.map((part) => {
790
+ const mediaType = part.mediaType;
791
+ const { data } = convertToLanguageModelV4FilePart(part.data);
792
+ return { mediaType, data };
793
+ }).filter((part) => part.data.type === "url").map((part) => ({
794
+ url: part.data.url,
795
+ isUrlSupportedByModel: part.mediaType != null && isUrlSupported({
796
+ url: part.data.url.toString(),
797
+ mediaType: part.mediaType,
798
+ supportedUrls
799
+ })
800
+ }));
801
+ const downloadedFiles = await download2(plannedDownloads);
802
+ return Object.fromEntries(
803
+ downloadedFiles.map(
804
+ (file, index) => file == null ? null : [
805
+ plannedDownloads[index].url.toString(),
806
+ { data: file.data, mediaType: file.mediaType }
807
+ ]
808
+ ).filter((file) => file != null)
809
+ );
810
+ }
811
+ function convertPartToLanguageModelPart(part, downloadedAssets) {
812
+ if (part.type === "text") {
813
+ return {
814
+ type: "text",
815
+ text: part.text,
816
+ providerOptions: part.providerOptions
817
+ };
818
+ }
819
+ const { data: normalizedData, mediaType: dataUrlMediaType } = convertToLanguageModelV4FilePart(part.data);
820
+ let mediaType = dataUrlMediaType != null ? dataUrlMediaType : part.mediaType;
821
+ let data = normalizedData;
822
+ if (data.type === "url") {
823
+ const downloadedFile = downloadedAssets[data.url.toString()];
824
+ if (downloadedFile) {
825
+ data = { type: "data", data: downloadedFile.data };
826
+ if (downloadedFile.mediaType != null && (mediaType == null || !isFullMediaType(mediaType))) {
827
+ mediaType = downloadedFile.mediaType;
828
+ }
829
+ }
830
+ }
831
+ if (data.type === "data" && (data.data instanceof Uint8Array || typeof data.data === "string")) {
832
+ const imageMediaType = detectMediaType({
833
+ data: data.data,
834
+ topLevelType: "image"
835
+ });
836
+ if (imageMediaType != null) {
837
+ mediaType = imageMediaType;
838
+ }
839
+ }
840
+ if (mediaType == null) {
841
+ throw new Error(`Media type is missing for file part`);
842
+ }
843
+ return {
844
+ type: "file",
845
+ mediaType,
846
+ filename: part.filename,
847
+ data,
848
+ providerOptions: part.providerOptions
849
+ };
850
+ }
851
+ function mapToolResultOutput({
852
+ output,
853
+ // `provider` is only needed here to convert legacy "file-id" and "image-file-id" types to provider references, in case they are using string ID values.
854
+ // TODO: remove in v8 when "file-id" and "image-file-id" types are removed
855
+ provider,
856
+ warnings = [],
857
+ downloadedAssets
858
+ }) {
859
+ if (output.type !== "content") {
860
+ return output;
861
+ }
862
+ return {
863
+ type: "content",
864
+ value: output.value.map((item) => {
865
+ var _a12;
866
+ switch (item.type) {
867
+ case "file": {
868
+ const convertedPart = convertPartToLanguageModelPart(
869
+ item,
870
+ downloadedAssets
871
+ );
872
+ if (convertedPart.type !== "file") {
873
+ throw new Error(
874
+ "Expected tool result file content to convert to file."
875
+ );
876
+ }
877
+ return convertedPart;
878
+ }
879
+ case "file-data": {
880
+ warnings.push({
881
+ type: "deprecated",
882
+ setting: '"tool-result" content of type "file-data"',
883
+ message: `The "file-data" type for tool result content is deprecated. Use the "file" type with mediaType and { type: 'data', data } instead.`
884
+ });
885
+ return {
886
+ type: "file",
887
+ data: { type: "data", data: item.data },
888
+ filename: item.filename,
889
+ mediaType: item.mediaType,
890
+ providerOptions: item.providerOptions
891
+ };
892
+ }
893
+ case "file-url": {
894
+ const mediaType = (_a12 = item.mediaType) != null ? _a12 : getMediaTypeFromUrl(item.url);
895
+ let message = `The "file-url" type for tool result content is deprecated. Use the "file" type with mediaType and { type: 'url', url } instead.`;
896
+ if (!item.mediaType) {
897
+ const inferenceSuffix = mediaType === "application/octet-stream" ? `Unable to infer media type from URL. Defaulting to 'application/octet-stream'.` : `Inferred media type '${mediaType}' from URL.`;
898
+ message = `The "file-url" tool result content part with URL "${item.url}" is missing a "mediaType". ${inferenceSuffix} ${message}`;
899
+ }
900
+ warnings.push({
901
+ type: "deprecated",
902
+ setting: '"tool-result" content of type "file-url"',
903
+ message
904
+ });
905
+ return {
906
+ type: "file",
907
+ data: { type: "url", url: new URL(item.url) },
908
+ mediaType,
909
+ providerOptions: item.providerOptions
910
+ };
911
+ }
912
+ case "file-id": {
913
+ warnings.push({
914
+ type: "deprecated",
915
+ setting: '"tool-result" content of type "file-id"',
916
+ message: `The "file-id" type for tool result content is deprecated. Use the "file" type with mediaType and { type: 'reference', reference } instead.`
917
+ });
918
+ return {
919
+ type: "file",
920
+ data: {
921
+ type: "reference",
922
+ reference: convertFileIdToProviderReference({
923
+ fileId: item.fileId,
924
+ provider
925
+ })
926
+ },
927
+ mediaType: "application",
928
+ providerOptions: item.providerOptions
929
+ };
930
+ }
931
+ case "file-reference": {
932
+ warnings.push({
933
+ type: "deprecated",
934
+ setting: '"tool-result" content of type "file-reference"',
935
+ message: `The "file-reference" type for tool result content is deprecated. Use the "file" type with mediaType and { type: 'reference', reference } instead.`
936
+ });
937
+ return {
938
+ type: "file",
939
+ data: {
940
+ type: "reference",
941
+ reference: item.providerReference
942
+ },
943
+ mediaType: "application",
944
+ providerOptions: item.providerOptions
945
+ };
946
+ }
947
+ // The "image-*" types are legacy and deprecated.
948
+ // TODO: remove migration in v8 in combination with the removal of these types from the provider utils.
949
+ case "image-data": {
950
+ warnings.push({
951
+ type: "deprecated",
952
+ setting: '"tool-result" content of type "image-data"',
953
+ message: `The "image-data" type for tool result content is deprecated. Use the "file" type with mediaType and { type: 'data', data } instead.`
954
+ });
955
+ return {
956
+ type: "file",
957
+ data: { type: "data", data: item.data },
958
+ mediaType: item.mediaType,
959
+ providerOptions: item.providerOptions
960
+ };
961
+ }
962
+ case "image-url": {
963
+ warnings.push({
964
+ type: "deprecated",
965
+ setting: '"tool-result" content of type "image-url"',
966
+ message: `The "image-url" type for tool result content is deprecated. Use the "file" type with mediaType 'image' (or a specific image/* subtype) and { type: 'url', url } instead.`
967
+ });
968
+ return {
969
+ type: "file",
970
+ data: { type: "url", url: new URL(item.url) },
971
+ mediaType: "image",
972
+ providerOptions: item.providerOptions
973
+ };
974
+ }
975
+ case "image-file-id": {
976
+ warnings.push({
977
+ type: "deprecated",
978
+ setting: '"tool-result" content of type "image-file-id"',
979
+ message: `The "image-file-id" type for tool result content is deprecated. Use the "file" type with mediaType and { type: 'reference', reference } instead.`
980
+ });
981
+ return {
982
+ type: "file",
983
+ data: {
984
+ type: "reference",
985
+ reference: convertFileIdToProviderReference({
986
+ fileId: item.fileId,
987
+ provider
988
+ })
989
+ },
990
+ mediaType: "image",
991
+ providerOptions: item.providerOptions
992
+ };
993
+ }
994
+ case "image-file-reference": {
995
+ warnings.push({
996
+ type: "deprecated",
997
+ setting: '"tool-result" content of type "image-file-reference"',
998
+ message: `The "image-file-reference" type for tool result content is deprecated. Use the "file" type with mediaType and { type: 'reference', reference } instead.`
999
+ });
1000
+ return {
1001
+ type: "file",
1002
+ data: {
1003
+ type: "reference",
1004
+ reference: item.providerReference
1005
+ },
1006
+ mediaType: "image",
1007
+ providerOptions: item.providerOptions
1008
+ };
1009
+ }
1010
+ default:
1011
+ return item;
1012
+ }
1013
+ })
1014
+ };
1015
+ }
1016
+ function convertFileIdToProviderReference({
1017
+ fileId,
1018
+ provider
1019
+ }) {
1020
+ if (typeof fileId === "object") {
1021
+ return fileId;
1022
+ }
1023
+ if (provider == null) {
1024
+ throw new Error(
1025
+ "Cannot convert string fileId to provider reference without a provider ID. Use a Record<string, string> fileId or switch to the file-reference type."
1026
+ );
1027
+ }
1028
+ return { [provider]: fileId };
1029
+ }
1030
+ var URL_EXTENSION_TO_MEDIA_TYPE = {
1031
+ jpg: "image/jpeg",
1032
+ jpeg: "image/jpeg",
1033
+ png: "image/png",
1034
+ gif: "image/gif",
1035
+ webp: "image/webp",
1036
+ svg: "image/svg+xml",
1037
+ avif: "image/avif",
1038
+ heic: "image/heic",
1039
+ bmp: "image/bmp",
1040
+ tiff: "image/tiff",
1041
+ tif: "image/tiff",
1042
+ pdf: "application/pdf",
1043
+ mp4: "video/mp4",
1044
+ webm: "video/webm",
1045
+ mp3: "audio/mpeg",
1046
+ wav: "audio/wav",
1047
+ ogg: "audio/ogg"
1048
+ };
1049
+ function getMediaTypeFromUrl(url, fallbackMediaType = "application/octet-stream") {
1050
+ var _a12;
1051
+ try {
1052
+ const pathname = new URL(url).pathname;
1053
+ const fileExtension = (_a12 = pathname.split(".").pop()) == null ? void 0 : _a12.toLowerCase();
1054
+ if (fileExtension && Object.hasOwn(URL_EXTENSION_TO_MEDIA_TYPE, fileExtension)) {
1055
+ return URL_EXTENSION_TO_MEDIA_TYPE[fileExtension];
1056
+ }
1057
+ } catch (e) {
1058
+ }
1059
+ return fallbackMediaType;
1060
+ }
1061
+
1062
+ // src/prompt/create-tool-model-output.ts
1063
+ import { getErrorMessage } from "@ai-sdk/provider";
1064
+ async function createToolModelOutput({
1065
+ toolCallId,
1066
+ input,
1067
+ output,
1068
+ tool,
1069
+ errorMode
1070
+ }) {
1071
+ if (errorMode === "text") {
1072
+ return { type: "error-text", value: getErrorMessage(output) };
1073
+ } else if (errorMode === "json") {
1074
+ return { type: "error-json", value: toJSONValue(output) };
1075
+ }
1076
+ if (tool == null ? void 0 : tool.toModelOutput) {
1077
+ return await tool.toModelOutput({ toolCallId, input, output });
1078
+ }
1079
+ return typeof output === "string" ? { type: "text", value: output } : { type: "json", value: toJSONValue(output) };
1080
+ }
1081
+ function toJSONValue(value) {
1082
+ return value === void 0 ? null : value;
1083
+ }
1084
+
1085
+ // src/prompt/prepare-tool-choice.ts
1086
+ function prepareToolChoice({
1087
+ toolChoice
1088
+ }) {
1089
+ return toolChoice == null ? { type: "auto" } : typeof toolChoice === "string" ? { type: toolChoice } : { type: "tool", toolName: toolChoice.toolName };
1090
+ }
1091
+
1092
+ // src/prompt/prepare-tools.ts
1093
+ import {
1094
+ asSchema
1095
+ } from "@ai-sdk/provider-utils";
1096
+
1097
+ // src/util/is-non-empty-object.ts
1098
+ function isNonEmptyObject(object2) {
1099
+ return object2 != null && Object.keys(object2).length > 0;
1100
+ }
1101
+
1102
+ // src/prompt/prepare-tools.ts
1103
+ async function prepareTools({
1104
+ tools,
1105
+ toolOrder,
1106
+ toolsContext = {},
1107
+ experimental_sandbox: sandbox
1108
+ }) {
1109
+ if (!isNonEmptyObject(tools)) {
1110
+ return void 0;
1111
+ }
1112
+ const languageModelTools = [];
1113
+ for (const [name12, tool] of orderToolEntries({ tools, toolOrder })) {
1114
+ const toolType = tool.type;
1115
+ switch (toolType) {
1116
+ case void 0:
1117
+ case "dynamic":
1118
+ case "function": {
1119
+ const description = resolveToolDescription({
1120
+ tool,
1121
+ toolName: name12,
1122
+ toolsContext,
1123
+ experimental_sandbox: sandbox
1124
+ });
1125
+ const providerOptions = tool.providerOptions;
1126
+ const inputExamples = tool.inputExamples;
1127
+ const strict = tool.strict;
1128
+ languageModelTools.push({
1129
+ type: "function",
1130
+ name: name12,
1131
+ inputSchema: await asSchema(tool.inputSchema).jsonSchema,
1132
+ ...description != null ? { description } : {},
1133
+ ...inputExamples != null ? { inputExamples } : {},
1134
+ ...providerOptions != null ? { providerOptions } : {},
1135
+ ...strict != null ? { strict } : {}
1136
+ });
1137
+ break;
1138
+ }
1139
+ case "provider": {
1140
+ languageModelTools.push({
1141
+ type: "provider",
1142
+ name: name12,
1143
+ id: tool.id,
1144
+ args: tool.args
1145
+ });
1146
+ break;
1147
+ }
1148
+ default: {
1149
+ const exhaustiveCheck = toolType;
1150
+ throw new Error(`Unsupported tool type: ${exhaustiveCheck}`);
1151
+ }
1152
+ }
1153
+ }
1154
+ return languageModelTools;
1155
+ }
1156
+ function orderToolEntries({
1157
+ tools,
1158
+ toolOrder
1159
+ }) {
1160
+ if (toolOrder == null) {
1161
+ return Object.entries(tools);
1162
+ }
1163
+ const toolEntries = Object.entries(tools);
1164
+ const orderedTools = toolEntries.filter(([name12]) => toolOrder.includes(name12)).sort(
1165
+ ([nameA], [nameB]) => toolOrder.indexOf(nameA) - toolOrder.indexOf(nameB)
1166
+ );
1167
+ const unorderedTools = toolEntries.filter(([name12]) => !toolOrder.includes(name12)).sort(([nameA], [nameB]) => nameA < nameB ? -1 : nameA > nameB ? 1 : 0);
1168
+ return [...orderedTools, ...unorderedTools];
1169
+ }
1170
+ function resolveToolDescription({
1171
+ tool,
1172
+ toolName,
1173
+ toolsContext,
1174
+ experimental_sandbox: sandbox
1175
+ }) {
1176
+ return tool.description === void 0 ? void 0 : typeof tool.description === "string" ? tool.description : tool.description({
1177
+ context: toolsContext[toolName],
1178
+ experimental_sandbox: sandbox
1179
+ });
1180
+ }
1181
+
1182
+ // src/prompt/standardize-prompt.ts
1183
+ import { InvalidPromptError } from "@ai-sdk/provider";
1184
+ import {
1185
+ asArray as asArray2,
1186
+ safeValidateTypes
1187
+ } from "@ai-sdk/provider-utils";
1188
+
1189
+ // src/util/zod.ts
1190
+ import {
1191
+ array,
1192
+ boolean,
1193
+ custom,
1194
+ discriminatedUnion,
1195
+ enum as enumType,
1196
+ instanceof as instanceOf,
1197
+ lazy,
1198
+ literal,
1199
+ looseObject,
1200
+ never,
1201
+ null as nullType,
1202
+ number,
1203
+ object,
1204
+ record,
1205
+ string,
1206
+ union,
1207
+ unknown
1208
+ } from "zod/v4";
1209
+ var z = {
1210
+ array,
1211
+ boolean,
1212
+ custom,
1213
+ discriminatedUnion,
1214
+ enum: enumType,
1215
+ instanceof: instanceOf,
1216
+ lazy,
1217
+ literal,
1218
+ looseObject,
1219
+ never,
1220
+ null: nullType,
1221
+ number,
1222
+ object,
1223
+ record,
1224
+ string,
1225
+ union,
1226
+ unknown
1227
+ };
1228
+
1229
+ // src/types/json-value.ts
1230
+ var jsonValueSchema = z.lazy(
1231
+ () => z.union([
1232
+ z.null(),
1233
+ z.string(),
1234
+ z.number(),
1235
+ z.boolean(),
1236
+ z.record(z.string(), jsonValueSchema.optional()),
1237
+ z.array(jsonValueSchema)
1238
+ ])
1239
+ );
1240
+
1241
+ // src/types/provider-metadata.ts
1242
+ var providerMetadataSchema = z.record(
1243
+ z.string(),
1244
+ z.record(z.string(), jsonValueSchema.optional())
1245
+ );
1246
+
1247
+ // src/prompt/content-part.ts
1248
+ import {
1249
+ isBuffer as isBuffer2
1250
+ } from "@ai-sdk/provider-utils";
1251
+ var fileInlineDataSchema = z.union([
1252
+ z.string(),
1253
+ z.instanceof(Uint8Array),
1254
+ z.instanceof(ArrayBuffer),
1255
+ z.custom(isBuffer2, { message: "Must be a Buffer" })
1256
+ ]);
1257
+ var providerReferenceSchema = z.record(z.string(), z.string());
1258
+ var textPartSchema = z.object({
1259
+ type: z.literal("text"),
1260
+ text: z.string(),
1261
+ providerOptions: providerMetadataSchema.optional()
1262
+ });
1263
+ var imagePartSchema = z.object({
1264
+ type: z.literal("image"),
1265
+ image: z.union([
1266
+ fileInlineDataSchema,
1267
+ z.instanceof(URL),
1268
+ providerReferenceSchema
1269
+ ]),
1270
+ mediaType: z.string().optional(),
1271
+ providerOptions: providerMetadataSchema.optional()
1272
+ });
1273
+ var taggedFileDataSchema = z.discriminatedUnion("type", [
1274
+ z.object({ type: z.literal("data"), data: fileInlineDataSchema }),
1275
+ z.object({ type: z.literal("url"), url: z.instanceof(URL) }),
1276
+ z.object({
1277
+ type: z.literal("reference"),
1278
+ reference: providerReferenceSchema
1279
+ }),
1280
+ z.object({ type: z.literal("text"), text: z.string() })
1281
+ ]);
1282
+ var taggedReasoningFileDataSchema = z.discriminatedUnion("type", [
1283
+ z.object({ type: z.literal("data"), data: fileInlineDataSchema }),
1284
+ z.object({ type: z.literal("url"), url: z.instanceof(URL) })
1285
+ ]);
1286
+ var filePartSchema = z.object({
1287
+ type: z.literal("file"),
1288
+ data: z.union([
1289
+ taggedFileDataSchema,
1290
+ fileInlineDataSchema,
1291
+ z.instanceof(URL),
1292
+ providerReferenceSchema
1293
+ ]),
1294
+ filename: z.string().optional(),
1295
+ mediaType: z.string(),
1296
+ providerOptions: providerMetadataSchema.optional()
1297
+ });
1298
+ var reasoningPartSchema = z.object({
1299
+ type: z.literal("reasoning"),
1300
+ text: z.string(),
1301
+ providerOptions: providerMetadataSchema.optional()
1302
+ });
1303
+ var customPartSchema = z.object({
1304
+ type: z.literal("custom"),
1305
+ kind: z.string().transform((value) => value),
1306
+ providerOptions: providerMetadataSchema.optional()
1307
+ });
1308
+ var reasoningFilePartSchema = z.object({
1309
+ type: z.literal("reasoning-file"),
1310
+ data: z.union([
1311
+ taggedReasoningFileDataSchema,
1312
+ fileInlineDataSchema,
1313
+ z.instanceof(URL)
1314
+ ]),
1315
+ mediaType: z.string(),
1316
+ providerOptions: providerMetadataSchema.optional()
1317
+ });
1318
+ var toolCallPartSchema = z.object({
1319
+ type: z.literal("tool-call"),
1320
+ toolCallId: z.string(),
1321
+ toolName: z.string(),
1322
+ input: z.unknown(),
1323
+ providerOptions: providerMetadataSchema.optional(),
1324
+ providerExecuted: z.boolean().optional()
1325
+ });
1326
+ var outputSchema = z.discriminatedUnion(
1327
+ "type",
1328
+ [
1329
+ z.object({
1330
+ type: z.literal("text"),
1331
+ value: z.string(),
1332
+ providerOptions: providerMetadataSchema.optional()
1333
+ }),
1334
+ z.object({
1335
+ type: z.literal("json"),
1336
+ value: jsonValueSchema,
1337
+ providerOptions: providerMetadataSchema.optional()
1338
+ }),
1339
+ z.object({
1340
+ type: z.literal("execution-denied"),
1341
+ reason: z.string().optional(),
1342
+ providerOptions: providerMetadataSchema.optional()
1343
+ }),
1344
+ z.object({
1345
+ type: z.literal("error-text"),
1346
+ value: z.string(),
1347
+ providerOptions: providerMetadataSchema.optional()
1348
+ }),
1349
+ z.object({
1350
+ type: z.literal("error-json"),
1351
+ value: jsonValueSchema,
1352
+ providerOptions: providerMetadataSchema.optional()
1353
+ }),
1354
+ z.object({
1355
+ type: z.literal("content"),
1356
+ value: z.array(
1357
+ z.union([
1358
+ z.object({
1359
+ type: z.literal("text"),
1360
+ text: z.string(),
1361
+ providerOptions: providerMetadataSchema.optional()
1362
+ }),
1363
+ z.object({
1364
+ type: z.literal("file"),
1365
+ data: taggedFileDataSchema,
1366
+ mediaType: z.string(),
1367
+ filename: z.string().optional(),
1368
+ providerOptions: providerMetadataSchema.optional()
1369
+ }),
1370
+ z.object({
1371
+ // Deprecated.
1372
+ type: z.literal("file-data"),
1373
+ data: z.string(),
1374
+ mediaType: z.string(),
1375
+ filename: z.string().optional(),
1376
+ providerOptions: providerMetadataSchema.optional()
1377
+ }),
1378
+ z.object({
1379
+ // Deprecated.
1380
+ type: z.literal("file-url"),
1381
+ url: z.string(),
1382
+ mediaType: z.string().optional(),
1383
+ providerOptions: providerMetadataSchema.optional()
1384
+ }),
1385
+ z.object({
1386
+ // Deprecated.
1387
+ type: z.literal("file-id"),
1388
+ fileId: z.union([z.string(), z.record(z.string(), z.string())]),
1389
+ providerOptions: providerMetadataSchema.optional()
1390
+ }),
1391
+ z.object({
1392
+ // Deprecated.
1393
+ type: z.literal("file-reference"),
1394
+ providerReference: z.record(z.string(), z.string()),
1395
+ providerOptions: providerMetadataSchema.optional()
1396
+ }),
1397
+ z.object({
1398
+ // Deprecated.
1399
+ type: z.literal("image-data"),
1400
+ data: z.string(),
1401
+ mediaType: z.string(),
1402
+ providerOptions: providerMetadataSchema.optional()
1403
+ }),
1404
+ z.object({
1405
+ // Deprecated.
1406
+ type: z.literal("image-url"),
1407
+ url: z.string(),
1408
+ providerOptions: providerMetadataSchema.optional()
1409
+ }),
1410
+ z.object({
1411
+ // Deprecated.
1412
+ type: z.literal("image-file-id"),
1413
+ fileId: z.union([z.string(), z.record(z.string(), z.string())]),
1414
+ providerOptions: providerMetadataSchema.optional()
1415
+ }),
1416
+ z.object({
1417
+ // Deprecated.
1418
+ type: z.literal("image-file-reference"),
1419
+ providerReference: z.record(z.string(), z.string()),
1420
+ providerOptions: providerMetadataSchema.optional()
1421
+ }),
1422
+ z.object({
1423
+ type: z.literal("custom"),
1424
+ providerOptions: providerMetadataSchema.optional()
1425
+ })
1426
+ ])
1427
+ )
1428
+ })
1429
+ ]
1430
+ );
1431
+ var toolResultPartSchema = z.object({
1432
+ type: z.literal("tool-result"),
1433
+ toolCallId: z.string(),
1434
+ toolName: z.string(),
1435
+ output: outputSchema,
1436
+ providerOptions: providerMetadataSchema.optional()
1437
+ });
1438
+ var toolApprovalRequestSchema = z.object(
1439
+ {
1440
+ type: z.literal("tool-approval-request"),
1441
+ approvalId: z.string(),
1442
+ toolCallId: z.string(),
1443
+ reason: z.string().optional()
1444
+ }
1445
+ );
1446
+ var toolApprovalResponseSchema = z.object({
1447
+ type: z.literal("tool-approval-response"),
1448
+ approvalId: z.string(),
1449
+ approved: z.boolean(),
1450
+ reason: z.string().optional()
1451
+ });
1452
+
1453
+ // src/prompt/message.ts
1454
+ var systemModelMessageSchema = z.object({
1455
+ role: z.literal("system"),
1456
+ content: z.string(),
1457
+ providerOptions: providerMetadataSchema.optional()
1458
+ });
1459
+ var userModelMessageSchema = z.object({
1460
+ role: z.literal("user"),
1461
+ content: z.union([
1462
+ z.string(),
1463
+ z.array(z.union([textPartSchema, imagePartSchema, filePartSchema]))
1464
+ ]),
1465
+ providerOptions: providerMetadataSchema.optional()
1466
+ });
1467
+ var assistantModelMessageSchema = z.object({
1468
+ role: z.literal("assistant"),
1469
+ content: z.union([
1470
+ z.string(),
1471
+ z.array(
1472
+ z.union([
1473
+ textPartSchema,
1474
+ customPartSchema,
1475
+ filePartSchema,
1476
+ reasoningPartSchema,
1477
+ reasoningFilePartSchema,
1478
+ toolCallPartSchema,
1479
+ toolResultPartSchema,
1480
+ toolApprovalRequestSchema
1481
+ ])
1482
+ )
1483
+ ]),
1484
+ providerOptions: providerMetadataSchema.optional()
1485
+ });
1486
+ var toolModelMessageSchema = z.object({
1487
+ role: z.literal("tool"),
1488
+ content: z.array(z.union([toolResultPartSchema, toolApprovalResponseSchema])),
1489
+ providerOptions: providerMetadataSchema.optional()
1490
+ });
1491
+ var modelMessageSchema = z.union([
1492
+ systemModelMessageSchema,
1493
+ userModelMessageSchema,
1494
+ assistantModelMessageSchema,
1495
+ toolModelMessageSchema
1496
+ ]);
1497
+
1498
+ // src/prompt/standardize-prompt.ts
1499
+ async function standardizePrompt({
1500
+ allowSystemInMessages = false,
1501
+ system,
1502
+ instructions = system,
1503
+ prompt,
1504
+ messages
1505
+ }) {
1506
+ if (prompt == null && messages == null) {
1507
+ throw new InvalidPromptError({
1508
+ prompt,
1509
+ message: "prompt or messages must be defined"
1510
+ });
1511
+ }
1512
+ if (prompt != null && messages != null) {
1513
+ throw new InvalidPromptError({
1514
+ prompt,
1515
+ message: "prompt and messages cannot be defined at the same time"
1516
+ });
1517
+ }
1518
+ if (typeof instructions !== "string" && !asArray2(instructions).every((message) => message.role === "system")) {
1519
+ throw new InvalidPromptError({
1520
+ prompt,
1521
+ message: "instructions must be a string, SystemModelMessage, or array of SystemModelMessage"
1522
+ });
1523
+ }
1524
+ if (prompt != null && typeof prompt === "string") {
1525
+ messages = [{ role: "user", content: prompt }];
1526
+ } else if (prompt != null && Array.isArray(prompt)) {
1527
+ messages = prompt;
1528
+ } else if (messages == null) {
1529
+ throw new InvalidPromptError({
1530
+ prompt,
1531
+ message: "prompt or messages must be defined"
1532
+ });
1533
+ }
1534
+ if (messages.length === 0) {
1535
+ throw new InvalidPromptError({
1536
+ prompt,
1537
+ message: "messages must not be empty"
1538
+ });
1539
+ }
1540
+ if (!allowSystemInMessages && messages.some((message) => message.role === "system")) {
1541
+ throw new InvalidPromptError({
1542
+ prompt,
1543
+ message: "System messages are not allowed in the prompt or messages fields. Use the instructions option instead."
1544
+ });
1545
+ }
1546
+ const validationResult = await safeValidateTypes({
1547
+ value: messages,
1548
+ schema: z.array(modelMessageSchema)
1549
+ });
1550
+ if (!validationResult.success) {
1551
+ throw new InvalidPromptError({
1552
+ prompt,
1553
+ message: "The messages do not match the ModelMessage[] schema.",
1554
+ cause: validationResult.error
1555
+ });
1556
+ }
1557
+ return { messages, instructions };
1558
+ }
1559
+
1560
+ // src/error/invalid-argument-error.ts
1561
+ import { AISDKError as AISDKError4 } from "@ai-sdk/provider";
1562
+ var name4 = "AI_InvalidArgumentError";
1563
+ var marker4 = `vercel.ai.error.${name4}`;
1564
+ var symbol4 = Symbol.for(marker4);
1565
+ var _a4, _b4;
1566
+ var InvalidArgumentError = class extends (_b4 = AISDKError4, _a4 = symbol4, _b4) {
1567
+ constructor({
1568
+ parameter,
1569
+ value,
1570
+ message
1571
+ }) {
1572
+ super({
1573
+ name: name4,
1574
+ message: `Invalid argument for parameter ${parameter}: ${message}`
1575
+ });
1576
+ this[_a4] = true;
1577
+ this.parameter = parameter;
1578
+ this.value = value;
1579
+ }
1580
+ static isInstance(error) {
1581
+ return AISDKError4.hasMarker(error, marker4);
1582
+ }
1583
+ };
1584
+
1585
+ // src/prompt/prepare-language-model-call-options.ts
1586
+ function prepareLanguageModelCallOptions({
1587
+ maxOutputTokens,
1588
+ temperature,
1589
+ topP,
1590
+ topK,
1591
+ presencePenalty,
1592
+ frequencyPenalty,
1593
+ seed,
1594
+ stopSequences,
1595
+ reasoning
1596
+ }) {
1597
+ if (maxOutputTokens != null) {
1598
+ if (!Number.isInteger(maxOutputTokens)) {
1599
+ throw new InvalidArgumentError({
1600
+ parameter: "maxOutputTokens",
1601
+ value: maxOutputTokens,
1602
+ message: "maxOutputTokens must be an integer"
1603
+ });
1604
+ }
1605
+ if (maxOutputTokens < 1) {
1606
+ throw new InvalidArgumentError({
1607
+ parameter: "maxOutputTokens",
1608
+ value: maxOutputTokens,
1609
+ message: "maxOutputTokens must be >= 1"
1610
+ });
1611
+ }
1612
+ }
1613
+ if (temperature != null) {
1614
+ if (typeof temperature !== "number") {
1615
+ throw new InvalidArgumentError({
1616
+ parameter: "temperature",
1617
+ value: temperature,
1618
+ message: "temperature must be a number"
1619
+ });
1620
+ }
1621
+ }
1622
+ if (topP != null) {
1623
+ if (typeof topP !== "number") {
1624
+ throw new InvalidArgumentError({
1625
+ parameter: "topP",
1626
+ value: topP,
1627
+ message: "topP must be a number"
1628
+ });
1629
+ }
1630
+ }
1631
+ if (topK != null) {
1632
+ if (typeof topK !== "number") {
1633
+ throw new InvalidArgumentError({
1634
+ parameter: "topK",
1635
+ value: topK,
1636
+ message: "topK must be a number"
1637
+ });
1638
+ }
1639
+ }
1640
+ if (presencePenalty != null) {
1641
+ if (typeof presencePenalty !== "number") {
1642
+ throw new InvalidArgumentError({
1643
+ parameter: "presencePenalty",
1644
+ value: presencePenalty,
1645
+ message: "presencePenalty must be a number"
1646
+ });
1647
+ }
1648
+ }
1649
+ if (frequencyPenalty != null) {
1650
+ if (typeof frequencyPenalty !== "number") {
1651
+ throw new InvalidArgumentError({
1652
+ parameter: "frequencyPenalty",
1653
+ value: frequencyPenalty,
1654
+ message: "frequencyPenalty must be a number"
1655
+ });
1656
+ }
1657
+ }
1658
+ if (seed != null) {
1659
+ if (!Number.isInteger(seed)) {
1660
+ throw new InvalidArgumentError({
1661
+ parameter: "seed",
1662
+ value: seed,
1663
+ message: "seed must be an integer"
1664
+ });
1665
+ }
1666
+ }
1667
+ return {
1668
+ maxOutputTokens,
1669
+ temperature,
1670
+ topP,
1671
+ topK,
1672
+ presencePenalty,
1673
+ frequencyPenalty,
1674
+ stopSequences,
1675
+ seed,
1676
+ reasoning
1677
+ };
1678
+ }
1679
+
1680
+ // src/util/retry-with-exponential-backoff.ts
1681
+ import { APICallError } from "@ai-sdk/provider";
1682
+ import { GatewayError } from "@ai-sdk/gateway";
1683
+ import {
1684
+ retryWithExponentialBackoff
1685
+ } from "@ai-sdk/provider-utils";
1686
+
1687
+ // src/util/retry-error.ts
1688
+ import { AISDKError as AISDKError5 } from "@ai-sdk/provider";
1689
+ var name5 = "AI_RetryError";
1690
+ var marker5 = `vercel.ai.error.${name5}`;
1691
+ var symbol5 = Symbol.for(marker5);
1692
+ var _a5, _b5;
1693
+ var RetryError = class extends (_b5 = AISDKError5, _a5 = symbol5, _b5) {
1694
+ constructor({
1695
+ message,
1696
+ reason,
1697
+ errors
1698
+ }) {
1699
+ super({ name: name5, message });
1700
+ this[_a5] = true;
1701
+ this.reason = reason;
1702
+ this.errors = errors;
1703
+ this.lastError = errors[errors.length - 1];
1704
+ }
1705
+ static isInstance(error) {
1706
+ return AISDKError5.hasMarker(error, marker5);
1707
+ }
1708
+ };
1709
+
1710
+ // src/util/retry-with-exponential-backoff.ts
1711
+ function getRetryDelayInMs({
1712
+ error,
1713
+ exponentialBackoffDelay
1714
+ }) {
1715
+ const headers = APICallError.isInstance(error) ? error.responseHeaders : APICallError.isInstance(error.cause) ? error.cause.responseHeaders : void 0;
1716
+ if (!headers) return exponentialBackoffDelay;
1717
+ let ms;
1718
+ const retryAfterMs = headers["retry-after-ms"];
1719
+ if (retryAfterMs) {
1720
+ const timeoutMs = parseFloat(retryAfterMs);
1721
+ if (!Number.isNaN(timeoutMs)) {
1722
+ ms = timeoutMs;
1723
+ }
1724
+ }
1725
+ const retryAfter = headers["retry-after"];
1726
+ if (retryAfter && ms === void 0) {
1727
+ const timeoutSeconds = parseFloat(retryAfter);
1728
+ if (!Number.isNaN(timeoutSeconds)) {
1729
+ ms = timeoutSeconds * 1e3;
1730
+ } else {
1731
+ ms = Date.parse(retryAfter) - Date.now();
1732
+ }
1733
+ }
1734
+ if (ms != null && !Number.isNaN(ms) && 0 <= ms && (ms < 60 * 1e3 || ms < exponentialBackoffDelay)) {
1735
+ return ms;
1736
+ }
1737
+ return exponentialBackoffDelay;
1738
+ }
1739
+ var retryWithExponentialBackoffRespectingRetryHeaders = ({
1740
+ maxRetries = 2,
1741
+ initialDelayInMs = 2e3,
1742
+ backoffFactor = 2,
1743
+ abortSignal,
1744
+ additionalRetryableError
1745
+ } = {}) => retryWithExponentialBackoff({
1746
+ maxRetries,
1747
+ initialDelayInMs,
1748
+ backoffFactor,
1749
+ abortSignal,
1750
+ shouldRetry: async (error) => error instanceof Error && (APICallError.isInstance(error) && error.isRetryable === true || GatewayError.isInstance(error) && error.isRetryable === true) || additionalRetryableError != null && await additionalRetryableError(error),
1751
+ getDelayInMs: ({ error, exponentialBackoffDelay }) => getRetryDelayInMs({
1752
+ error,
1753
+ exponentialBackoffDelay
1754
+ }),
1755
+ createRetryError: ({ message, reason, errors }) => new RetryError({ message, reason, errors })
1756
+ });
1757
+
1758
+ // src/util/prepare-retries.ts
1759
+ function prepareRetries({
1760
+ maxRetries,
1761
+ abortSignal,
1762
+ additionalRetryableError,
1763
+ parameter = "maxRetries",
1764
+ defaultMaxRetries = 2
1765
+ }) {
1766
+ if (maxRetries != null) {
1767
+ if (!Number.isInteger(maxRetries)) {
1768
+ throw new InvalidArgumentError({
1769
+ parameter,
1770
+ value: maxRetries,
1771
+ message: `${parameter} must be an integer`
1772
+ });
1773
+ }
1774
+ if (maxRetries < 0) {
1775
+ throw new InvalidArgumentError({
1776
+ parameter,
1777
+ value: maxRetries,
1778
+ message: `${parameter} must be >= 0`
1779
+ });
1780
+ }
1781
+ }
1782
+ const maxRetriesResult = maxRetries != null ? maxRetries : defaultMaxRetries;
1783
+ return {
1784
+ maxRetries: maxRetriesResult,
1785
+ retry: retryWithExponentialBackoffRespectingRetryHeaders({
1786
+ maxRetries: maxRetriesResult,
1787
+ abortSignal,
1788
+ additionalRetryableError
1789
+ })
1790
+ };
1791
+ }
1792
+
1793
+ // src/types/usage.ts
1794
+ function asLanguageModelUsage(usage) {
1795
+ return {
1796
+ inputTokens: usage.inputTokens.total,
1797
+ inputTokenDetails: {
1798
+ noCacheTokens: usage.inputTokens.noCache,
1799
+ cacheReadTokens: usage.inputTokens.cacheRead,
1800
+ cacheWriteTokens: usage.inputTokens.cacheWrite
1801
+ },
1802
+ outputTokens: usage.outputTokens.total,
1803
+ outputTokenDetails: {
1804
+ textTokens: usage.outputTokens.text,
1805
+ reasoningTokens: usage.outputTokens.reasoning
1806
+ },
1807
+ totalTokens: addTokenCounts(
1808
+ usage.inputTokens.total,
1809
+ usage.outputTokens.total
1810
+ ),
1811
+ raw: usage.raw
1812
+ };
1813
+ }
1814
+ function createNullLanguageModelUsage() {
1815
+ return {
1816
+ inputTokens: void 0,
1817
+ inputTokenDetails: {
1818
+ noCacheTokens: void 0,
1819
+ cacheReadTokens: void 0,
1820
+ cacheWriteTokens: void 0
1821
+ },
1822
+ outputTokens: void 0,
1823
+ outputTokenDetails: {
1824
+ textTokens: void 0,
1825
+ reasoningTokens: void 0
1826
+ },
1827
+ totalTokens: void 0,
1828
+ raw: void 0
1829
+ };
1830
+ }
1831
+ function addLanguageModelUsage(usage1, usage2) {
1832
+ var _a12, _b12, _c, _d, _e, _f, _g, _h, _i, _j;
1833
+ return {
1834
+ inputTokens: addTokenCounts(usage1.inputTokens, usage2.inputTokens),
1835
+ inputTokenDetails: {
1836
+ noCacheTokens: addTokenCounts(
1837
+ (_a12 = usage1.inputTokenDetails) == null ? void 0 : _a12.noCacheTokens,
1838
+ (_b12 = usage2.inputTokenDetails) == null ? void 0 : _b12.noCacheTokens
1839
+ ),
1840
+ cacheReadTokens: addTokenCounts(
1841
+ (_c = usage1.inputTokenDetails) == null ? void 0 : _c.cacheReadTokens,
1842
+ (_d = usage2.inputTokenDetails) == null ? void 0 : _d.cacheReadTokens
1843
+ ),
1844
+ cacheWriteTokens: addTokenCounts(
1845
+ (_e = usage1.inputTokenDetails) == null ? void 0 : _e.cacheWriteTokens,
1846
+ (_f = usage2.inputTokenDetails) == null ? void 0 : _f.cacheWriteTokens
1847
+ )
1848
+ },
1849
+ outputTokens: addTokenCounts(usage1.outputTokens, usage2.outputTokens),
1850
+ outputTokenDetails: {
1851
+ textTokens: addTokenCounts(
1852
+ (_g = usage1.outputTokenDetails) == null ? void 0 : _g.textTokens,
1853
+ (_h = usage2.outputTokenDetails) == null ? void 0 : _h.textTokens
1854
+ ),
1855
+ reasoningTokens: addTokenCounts(
1856
+ (_i = usage1.outputTokenDetails) == null ? void 0 : _i.reasoningTokens,
1857
+ (_j = usage2.outputTokenDetails) == null ? void 0 : _j.reasoningTokens
1858
+ )
1859
+ },
1860
+ totalTokens: addTokenCounts(usage1.totalTokens, usage2.totalTokens)
1861
+ };
1862
+ }
1863
+ function addTokenCounts(tokenCount1, tokenCount2) {
1864
+ return tokenCount1 == null && tokenCount2 == null ? void 0 : (tokenCount1 != null ? tokenCount1 : 0) + (tokenCount2 != null ? tokenCount2 : 0);
1865
+ }
1866
+
1867
+ // src/model/resolve-model.ts
1868
+ import { gateway } from "@ai-sdk/gateway";
1869
+
1870
+ // src/error/index.ts
1871
+ import {
1872
+ AISDKError as AISDKError13,
1873
+ APICallError as APICallError2,
1874
+ EmptyResponseBodyError,
1875
+ InvalidPromptError as InvalidPromptError2,
1876
+ InvalidResponseDataError,
1877
+ JSONParseError,
1878
+ LoadAPIKeyError,
1879
+ LoadSettingError,
1880
+ NoContentGeneratedError,
1881
+ NoSuchModelError,
1882
+ NoSuchProviderReferenceError,
1883
+ TooManyEmbeddingValuesForCallError,
1884
+ TypeValidationError,
1885
+ UnsupportedFunctionalityError
1886
+ } from "@ai-sdk/provider";
1887
+
1888
+ // src/error/invalid-tool-approval-error.ts
1889
+ import { AISDKError as AISDKError6 } from "@ai-sdk/provider";
1890
+ var name6 = "AI_InvalidToolApprovalError";
1891
+ var marker6 = `vercel.ai.error.${name6}`;
1892
+ var symbol6 = Symbol.for(marker6);
1893
+ var _a6, _b6;
1894
+ var InvalidToolApprovalError = class extends (_b6 = AISDKError6, _a6 = symbol6, _b6) {
1895
+ constructor({ approvalId }) {
1896
+ super({
1897
+ name: name6,
1898
+ message: `Tool approval response references unknown approvalId: "${approvalId}". No matching tool-approval-request found in message history.`
1899
+ });
1900
+ this[_a6] = true;
1901
+ this.approvalId = approvalId;
1902
+ }
1903
+ static isInstance(error) {
1904
+ return AISDKError6.hasMarker(error, marker6);
1905
+ }
1906
+ };
1907
+
1908
+ // src/error/invalid-tool-approval-signature-error.ts
1909
+ import { AISDKError as AISDKError7 } from "@ai-sdk/provider";
1910
+ var name7 = "AI_InvalidToolApprovalSignatureError";
1911
+ var marker7 = `vercel.ai.error.${name7}`;
1912
+ var symbol7 = Symbol.for(marker7);
1913
+ var _a7, _b7;
1914
+ var InvalidToolApprovalSignatureError = class extends (_b7 = AISDKError7, _a7 = symbol7, _b7) {
1915
+ constructor({
1916
+ approvalId,
1917
+ toolCallId,
1918
+ reason
1919
+ }) {
1920
+ super({
1921
+ name: name7,
1922
+ message: `Tool approval signature verification failed for approval "${approvalId}" (tool call "${toolCallId}"): ${reason}`
1923
+ });
1924
+ this[_a7] = true;
1925
+ this.approvalId = approvalId;
1926
+ this.toolCallId = toolCallId;
1927
+ }
1928
+ static isInstance(error) {
1929
+ return AISDKError7.hasMarker(error, marker7);
1930
+ }
1931
+ };
1932
+
1933
+ // src/error/invalid-tool-input-error.ts
1934
+ import { AISDKError as AISDKError8, getErrorMessage as getErrorMessage2 } from "@ai-sdk/provider";
1935
+ var name8 = "AI_InvalidToolInputError";
1936
+ var marker8 = `vercel.ai.error.${name8}`;
1937
+ var symbol8 = Symbol.for(marker8);
1938
+ var _a8, _b8;
1939
+ var InvalidToolInputError = class extends (_b8 = AISDKError8, _a8 = symbol8, _b8) {
1940
+ constructor({
1941
+ toolInput,
1942
+ toolName,
1943
+ cause,
1944
+ message = `Invalid input for tool ${toolName}: ${getErrorMessage2(cause)}`
1945
+ }) {
1946
+ super({ name: name8, message, cause });
1947
+ this[_a8] = true;
1948
+ this.toolInput = toolInput;
1949
+ this.toolName = toolName;
1950
+ }
1951
+ static isInstance(error) {
1952
+ return AISDKError8.hasMarker(error, marker8);
1953
+ }
1954
+ };
1955
+
1956
+ // src/error/tool-call-not-found-for-approval-error.ts
1957
+ import { AISDKError as AISDKError9 } from "@ai-sdk/provider";
1958
+ var name9 = "AI_ToolCallNotFoundForApprovalError";
1959
+ var marker9 = `vercel.ai.error.${name9}`;
1960
+ var symbol9 = Symbol.for(marker9);
1961
+ var _a9, _b9;
1962
+ var ToolCallNotFoundForApprovalError = class extends (_b9 = AISDKError9, _a9 = symbol9, _b9) {
1963
+ constructor({
1964
+ toolCallId,
1965
+ approvalId
1966
+ }) {
1967
+ super({
1968
+ name: name9,
1969
+ message: `Tool call "${toolCallId}" not found for approval request "${approvalId}".`
1970
+ });
1971
+ this[_a9] = true;
1972
+ this.toolCallId = toolCallId;
1973
+ this.approvalId = approvalId;
1974
+ }
1975
+ static isInstance(error) {
1976
+ return AISDKError9.hasMarker(error, marker9);
1977
+ }
1978
+ };
1979
+
1980
+ // src/error/no-such-tool-error.ts
1981
+ import { AISDKError as AISDKError10 } from "@ai-sdk/provider";
1982
+ var name10 = "AI_NoSuchToolError";
1983
+ var marker10 = `vercel.ai.error.${name10}`;
1984
+ var symbol10 = Symbol.for(marker10);
1985
+ var _a10, _b10;
1986
+ var NoSuchToolError = class extends (_b10 = AISDKError10, _a10 = symbol10, _b10) {
1987
+ constructor({
1988
+ toolName,
1989
+ availableTools = void 0,
1990
+ message = `Model tried to call unavailable tool '${toolName}'. ${availableTools === void 0 ? "No tools are available." : `Available tools: ${availableTools.join(", ")}.`}`
1991
+ }) {
1992
+ super({ name: name10, message });
1993
+ this[_a10] = true;
1994
+ this.toolName = toolName;
1995
+ this.availableTools = availableTools;
1996
+ }
1997
+ static isInstance(error) {
1998
+ return AISDKError10.hasMarker(error, marker10);
1999
+ }
2000
+ };
2001
+
2002
+ // src/error/tool-call-repair-error.ts
2003
+ import { AISDKError as AISDKError11, getErrorMessage as getErrorMessage3 } from "@ai-sdk/provider";
2004
+ var name11 = "AI_ToolCallRepairError";
2005
+ var marker11 = `vercel.ai.error.${name11}`;
2006
+ var symbol11 = Symbol.for(marker11);
2007
+ var _a11, _b11;
2008
+ var ToolCallRepairError = class extends (_b11 = AISDKError11, _a11 = symbol11, _b11) {
2009
+ constructor({
2010
+ cause,
2011
+ originalError,
2012
+ message = `Error repairing tool call: ${getErrorMessage3(cause)}`
2013
+ }) {
2014
+ super({ name: name11, message, cause });
2015
+ this[_a11] = true;
2016
+ this.originalError = originalError;
2017
+ }
2018
+ static isInstance(error) {
2019
+ return AISDKError11.hasMarker(error, marker11);
2020
+ }
2021
+ };
2022
+
2023
+ // src/error/unsupported-model-version-error.ts
2024
+ import { AISDKError as AISDKError12 } from "@ai-sdk/provider";
2025
+ var UnsupportedModelVersionError = class extends AISDKError12 {
2026
+ constructor(options) {
2027
+ super({
2028
+ name: "AI_UnsupportedModelVersionError",
2029
+ message: `Unsupported model version ${options.version} for provider "${options.provider}" and model "${options.modelId}". AI SDK 5 only supports models that implement specification version "v2".`
2030
+ });
2031
+ this.version = options.version;
2032
+ this.provider = options.provider;
2033
+ this.modelId = options.modelId;
2034
+ }
2035
+ };
2036
+
2037
+ // src/error/index.ts
2038
+ import { DownloadError as DownloadError2 } from "@ai-sdk/provider-utils";
2039
+
2040
+ // src/util/log-v2-compatibility-warning.ts
2041
+ function logV2CompatibilityWarning({
2042
+ provider,
2043
+ modelId
2044
+ }) {
2045
+ logWarnings({
2046
+ warnings: [
2047
+ {
2048
+ type: "compatibility",
2049
+ feature: "specificationVersion",
2050
+ details: `Using v2 specification compatibility mode. Some features may not be available.`
2051
+ }
2052
+ ],
2053
+ provider,
2054
+ model: modelId
2055
+ });
2056
+ }
2057
+
2058
+ // src/model/as-embedding-model-v3.ts
2059
+ function asEmbeddingModelV3(model) {
2060
+ if (model.specificationVersion === "v3") {
2061
+ return model;
2062
+ }
2063
+ logV2CompatibilityWarning({
2064
+ provider: model.provider,
2065
+ modelId: model.modelId
2066
+ });
2067
+ return new Proxy(model, {
2068
+ get(target, prop) {
2069
+ if (prop === "specificationVersion") return "v3";
2070
+ return target[prop];
2071
+ }
2072
+ });
2073
+ }
2074
+
2075
+ // src/model/as-embedding-model-v4.ts
2076
+ function asEmbeddingModelV4(model) {
2077
+ if (model.specificationVersion === "v4") {
2078
+ return model;
2079
+ }
2080
+ const v3Model = model.specificationVersion === "v2" ? asEmbeddingModelV3(model) : model;
2081
+ return new Proxy(v3Model, {
2082
+ get(target, prop) {
2083
+ if (prop === "specificationVersion") return "v4";
2084
+ return target[prop];
2085
+ }
2086
+ });
2087
+ }
2088
+
2089
+ // src/model/as-image-model-v3.ts
2090
+ function asImageModelV3(model) {
2091
+ if (model.specificationVersion === "v3") {
2092
+ return model;
2093
+ }
2094
+ logV2CompatibilityWarning({
2095
+ provider: model.provider,
2096
+ modelId: model.modelId
2097
+ });
2098
+ return new Proxy(model, {
2099
+ get(target, prop) {
2100
+ if (prop === "specificationVersion") return "v3";
2101
+ return target[prop];
2102
+ }
2103
+ });
2104
+ }
2105
+
2106
+ // src/model/as-image-model-v4.ts
2107
+ function asImageModelV4(model) {
2108
+ if (model.specificationVersion === "v4") {
2109
+ return model;
2110
+ }
2111
+ const v3Model = model.specificationVersion === "v2" ? asImageModelV3(model) : model;
2112
+ return new Proxy(v3Model, {
2113
+ get(target, prop) {
2114
+ if (prop === "specificationVersion") return "v4";
2115
+ return target[prop];
2116
+ }
2117
+ });
2118
+ }
2119
+
2120
+ // src/model/as-language-model-v3.ts
2121
+ function asLanguageModelV3(model) {
2122
+ if (model.specificationVersion === "v3") {
2123
+ return model;
2124
+ }
2125
+ logV2CompatibilityWarning({
2126
+ provider: model.provider,
2127
+ modelId: model.modelId
2128
+ });
2129
+ return new Proxy(model, {
2130
+ get(target, prop) {
2131
+ switch (prop) {
2132
+ case "specificationVersion":
2133
+ return "v3";
2134
+ case "doGenerate":
2135
+ return async (...args) => {
2136
+ const result = await target.doGenerate(...args);
2137
+ return {
2138
+ ...result,
2139
+ finishReason: convertV2FinishReasonToV3(result.finishReason),
2140
+ usage: convertV2UsageToV3(result.usage)
2141
+ };
2142
+ };
2143
+ case "doStream":
2144
+ return async (...args) => {
2145
+ const result = await target.doStream(...args);
2146
+ return {
2147
+ ...result,
2148
+ stream: convertV2StreamToV3(result.stream)
2149
+ };
2150
+ };
2151
+ default:
2152
+ return target[prop];
2153
+ }
2154
+ }
2155
+ });
2156
+ }
2157
+ function convertV2StreamToV3(stream) {
2158
+ return stream.pipeThrough(
2159
+ new TransformStream({
2160
+ transform(chunk, controller) {
2161
+ switch (chunk.type) {
2162
+ case "finish":
2163
+ controller.enqueue({
2164
+ ...chunk,
2165
+ finishReason: convertV2FinishReasonToV3(chunk.finishReason),
2166
+ usage: convertV2UsageToV3(chunk.usage)
2167
+ });
2168
+ break;
2169
+ default:
2170
+ controller.enqueue(chunk);
2171
+ break;
2172
+ }
2173
+ }
2174
+ })
2175
+ );
2176
+ }
2177
+ function convertV2FinishReasonToV3(finishReason) {
2178
+ return {
2179
+ unified: finishReason === "unknown" ? "other" : finishReason,
2180
+ raw: void 0
2181
+ };
2182
+ }
2183
+ function convertV2UsageToV3(usage) {
2184
+ return {
2185
+ inputTokens: {
2186
+ total: usage.inputTokens,
2187
+ noCache: void 0,
2188
+ cacheRead: usage.cachedInputTokens,
2189
+ cacheWrite: void 0
2190
+ },
2191
+ outputTokens: {
2192
+ total: usage.outputTokens,
2193
+ text: void 0,
2194
+ reasoning: usage.reasoningTokens
2195
+ }
2196
+ };
2197
+ }
2198
+
2199
+ // src/model/as-language-model-v4.ts
2200
+ function asLanguageModelV4(model) {
2201
+ if (model.specificationVersion === "v4") {
2202
+ return model;
2203
+ }
2204
+ const v3Model = model.specificationVersion === "v2" ? asLanguageModelV3(model) : model;
2205
+ return new Proxy(v3Model, {
2206
+ get(target, prop) {
2207
+ if (prop === "specificationVersion") return "v4";
2208
+ return target[prop];
2209
+ }
2210
+ });
2211
+ }
2212
+
2213
+ // src/model/as-reranking-model-v4.ts
2214
+ function asRerankingModelV4(model) {
2215
+ if (model.specificationVersion === "v4") {
2216
+ return model;
2217
+ }
2218
+ return new Proxy(model, {
2219
+ get(target, prop) {
2220
+ if (prop === "specificationVersion") return "v4";
2221
+ return target[prop];
2222
+ }
2223
+ });
2224
+ }
2225
+
2226
+ // src/model/as-speech-model-v3.ts
2227
+ function asSpeechModelV3(model) {
2228
+ if (model.specificationVersion === "v3") {
2229
+ return model;
2230
+ }
2231
+ logV2CompatibilityWarning({
2232
+ provider: model.provider,
2233
+ modelId: model.modelId
2234
+ });
2235
+ return new Proxy(model, {
2236
+ get(target, prop) {
2237
+ if (prop === "specificationVersion") return "v3";
2238
+ return target[prop];
2239
+ }
2240
+ });
2241
+ }
2242
+
2243
+ // src/model/as-speech-model-v4.ts
2244
+ function asSpeechModelV4(model) {
2245
+ if (model.specificationVersion === "v4") {
2246
+ return model;
2247
+ }
2248
+ const v3Model = model.specificationVersion === "v2" ? asSpeechModelV3(model) : model;
2249
+ return new Proxy(v3Model, {
2250
+ get(target, prop) {
2251
+ if (prop === "specificationVersion") return "v4";
2252
+ return target[prop];
2253
+ }
2254
+ });
2255
+ }
2256
+
2257
+ // src/model/as-transcription-model-v3.ts
2258
+ function asTranscriptionModelV3(model) {
2259
+ if (model.specificationVersion === "v3") {
2260
+ return model;
2261
+ }
2262
+ logV2CompatibilityWarning({
2263
+ provider: model.provider,
2264
+ modelId: model.modelId
2265
+ });
2266
+ return new Proxy(model, {
2267
+ get(target, prop) {
2268
+ if (prop === "specificationVersion") return "v3";
2269
+ return target[prop];
2270
+ }
2271
+ });
2272
+ }
2273
+
2274
+ // src/model/as-transcription-model-v4.ts
2275
+ function asTranscriptionModelV4(model) {
2276
+ if (model.specificationVersion === "v4") {
2277
+ return model;
2278
+ }
2279
+ const v3Model = model.specificationVersion === "v2" ? asTranscriptionModelV3(model) : model;
2280
+ return new Proxy(v3Model, {
2281
+ get(target, prop) {
2282
+ if (prop === "specificationVersion") return "v4";
2283
+ return target[prop];
2284
+ }
2285
+ });
2286
+ }
2287
+
2288
+ // src/model/as-provider-v3.ts
2289
+ function asProviderV3(provider) {
2290
+ if ("specificationVersion" in provider && provider.specificationVersion === "v3") {
2291
+ return provider;
2292
+ }
2293
+ const v2Provider = provider;
2294
+ return {
2295
+ specificationVersion: "v3",
2296
+ languageModel: (modelId) => asLanguageModelV3(v2Provider.languageModel(modelId)),
2297
+ embeddingModel: (modelId) => asEmbeddingModelV3(v2Provider.textEmbeddingModel(modelId)),
2298
+ imageModel: (modelId) => asImageModelV3(v2Provider.imageModel(modelId)),
2299
+ transcriptionModel: v2Provider.transcriptionModel ? (modelId) => asTranscriptionModelV3(v2Provider.transcriptionModel(modelId)) : void 0,
2300
+ speechModel: v2Provider.speechModel ? (modelId) => asSpeechModelV3(v2Provider.speechModel(modelId)) : void 0,
2301
+ rerankingModel: void 0
2302
+ // v2 providers don't have reranking models
2303
+ };
2304
+ }
2305
+
2306
+ // src/model/as-provider-v4.ts
2307
+ function asProviderV4(provider) {
2308
+ if ("specificationVersion" in provider && provider.specificationVersion === "v4") {
2309
+ return provider;
2310
+ }
2311
+ const v3Provider = !("specificationVersion" in provider) || provider.specificationVersion !== "v3" ? asProviderV3(provider) : provider;
2312
+ return {
2313
+ specificationVersion: "v4",
2314
+ languageModel: (modelId) => asLanguageModelV4(v3Provider.languageModel(modelId)),
2315
+ embeddingModel: (modelId) => asEmbeddingModelV4(v3Provider.embeddingModel(modelId)),
2316
+ imageModel: (modelId) => asImageModelV4(v3Provider.imageModel(modelId)),
2317
+ transcriptionModel: v3Provider.transcriptionModel ? (modelId) => asTranscriptionModelV4(v3Provider.transcriptionModel(modelId)) : void 0,
2318
+ speechModel: v3Provider.speechModel ? (modelId) => asSpeechModelV4(v3Provider.speechModel(modelId)) : void 0,
2319
+ rerankingModel: v3Provider.rerankingModel ? (modelId) => asRerankingModelV4(v3Provider.rerankingModel(modelId)) : void 0
2320
+ };
2321
+ }
2322
+
2323
+ // src/model/resolve-model.ts
2324
+ function resolveLanguageModel(model) {
2325
+ if (typeof model === "string") {
2326
+ return getGlobalProvider().languageModel(model);
2327
+ }
2328
+ if (!["v4", "v3", "v2"].includes(model.specificationVersion)) {
2329
+ const unsupportedModel = model;
2330
+ throw new UnsupportedModelVersionError({
2331
+ version: unsupportedModel.specificationVersion,
2332
+ provider: unsupportedModel.provider,
2333
+ modelId: unsupportedModel.modelId
2334
+ });
2335
+ }
2336
+ return asLanguageModelV4(model);
2337
+ }
2338
+ function getGlobalProvider() {
2339
+ var _a12;
2340
+ const provider = (_a12 = globalThis.AI_SDK_DEFAULT_PROVIDER) != null ? _a12 : gateway;
2341
+ return asProviderV4(provider);
2342
+ }
2343
+
2344
+ // src/util/merge-abort-signals.ts
2345
+ import { filterNullable } from "@ai-sdk/provider-utils";
2346
+ function mergeAbortSignals(...signals) {
2347
+ const validSignals = filterNullable(...signals).map(
2348
+ (signal) => typeof signal === "number" ? AbortSignal.timeout(signal) : signal
2349
+ );
2350
+ return validSignals.length === 0 ? void 0 : validSignals.length === 1 ? validSignals[0] : AbortSignal.any(validSignals);
2351
+ }
2352
+
2353
+ // src/util/merge-callbacks.ts
2354
+ function mergeCallbacks(...callbacks) {
2355
+ return async (event) => {
2356
+ await Promise.allSettled(
2357
+ callbacks.map(async (callback) => {
2358
+ await (callback == null ? void 0 : callback(event));
2359
+ })
2360
+ );
2361
+ };
2362
+ }
2363
+
2364
+ // src/telemetry/create-telemetry-dispatcher.ts
2365
+ import { asArray as asArray3 } from "@ai-sdk/provider-utils";
2366
+
2367
+ // src/telemetry/tracing-channel.ts
2368
+ var AI_SDK_TELEMETRY_TRACING_CHANNEL = "ai:telemetry";
2369
+
2370
+ // src/util/is-node-runtime.ts
2371
+ function isNodeRuntime() {
2372
+ var _a12;
2373
+ return typeof process !== "undefined" && ((_a12 = process.release) == null ? void 0 : _a12.name) === "node";
2374
+ }
2375
+
2376
+ // src/telemetry/tracing-channel-publisher.ts
2377
+ var diagnosticsChannelPromise;
2378
+ async function loadDiagnosticsChannel() {
2379
+ if (!isNodeRuntime()) {
2380
+ return void 0;
2381
+ }
2382
+ if (diagnosticsChannelPromise == null) {
2383
+ diagnosticsChannelPromise = Promise.resolve(
2384
+ loadBuiltinModule("node:diagnostics_channel")
2385
+ );
2386
+ }
2387
+ return diagnosticsChannelPromise;
2388
+ }
2389
+ function loadBuiltinModule(id) {
2390
+ var _a12;
2391
+ const processWithBuiltins = globalThis.process;
2392
+ try {
2393
+ return (_a12 = processWithBuiltins == null ? void 0 : processWithBuiltins.getBuiltinModule) == null ? void 0 : _a12.call(processWithBuiltins, id);
2394
+ } catch (e) {
2395
+ return void 0;
2396
+ }
2397
+ }
2398
+ async function runWithTracingChannelSpan(message, execute) {
2399
+ var _a12;
2400
+ const diagnosticsChannel = await loadDiagnosticsChannel();
2401
+ const tracingChannel = (_a12 = diagnosticsChannel == null ? void 0 : diagnosticsChannel.tracingChannel) == null ? void 0 : _a12.call(
2402
+ diagnosticsChannel,
2403
+ AI_SDK_TELEMETRY_TRACING_CHANNEL
2404
+ );
2405
+ if (tracingChannel == null || tracingChannel.hasSubscribers === false) {
2406
+ return await execute();
2407
+ }
2408
+ let executePromise;
2409
+ let executionResult;
2410
+ let executionError;
2411
+ let hasExecutionResult = false;
2412
+ let hasExecutionError = false;
2413
+ const tracedExecute = () => {
2414
+ try {
2415
+ executePromise = Promise.resolve(execute());
2416
+ } catch (error) {
2417
+ executePromise = Promise.reject(error);
2418
+ }
2419
+ executePromise = executePromise.then(
2420
+ (result) => {
2421
+ executionResult = result;
2422
+ hasExecutionResult = true;
2423
+ return result;
2424
+ },
2425
+ (error) => {
2426
+ executionError = error;
2427
+ hasExecutionError = true;
2428
+ throw error;
2429
+ }
2430
+ );
2431
+ return executePromise;
2432
+ };
2433
+ try {
2434
+ return await tracingChannel.tracePromise(tracedExecute, message);
2435
+ } catch (e) {
2436
+ if (hasExecutionError) {
2437
+ throw executionError;
2438
+ }
2439
+ if (hasExecutionResult) {
2440
+ return executionResult;
2441
+ }
2442
+ if (executePromise != null) {
2443
+ return await executePromise;
2444
+ }
2445
+ return await execute();
2446
+ }
2447
+ }
2448
+ function openTelemetryChannelSpanContext({
2449
+ message,
2450
+ completion
2451
+ }) {
2452
+ var _a12;
2453
+ if (!isNodeRuntime()) {
2454
+ return void 0;
2455
+ }
2456
+ const diagnosticsChannel = loadBuiltinModule(
2457
+ "node:diagnostics_channel"
2458
+ );
2459
+ const asyncHooks = loadBuiltinModule("node:async_hooks");
2460
+ const tracingChannel = (_a12 = diagnosticsChannel == null ? void 0 : diagnosticsChannel.tracingChannel) == null ? void 0 : _a12.call(
2461
+ diagnosticsChannel,
2462
+ AI_SDK_TELEMETRY_TRACING_CHANNEL
2463
+ );
2464
+ if (tracingChannel == null || tracingChannel.hasSubscribers === false || asyncHooks == null) {
2465
+ Promise.resolve(completion).catch(() => {
2466
+ });
2467
+ return void 0;
2468
+ }
2469
+ const context = message;
2470
+ let asyncResource;
2471
+ let asyncEndPublished = false;
2472
+ const safePublish = (publish) => {
2473
+ try {
2474
+ publish();
2475
+ } catch (e) {
2476
+ }
2477
+ };
2478
+ const publishAsyncEnd = ({
2479
+ result,
2480
+ error
2481
+ }) => {
2482
+ if (asyncEndPublished) {
2483
+ return;
2484
+ }
2485
+ asyncEndPublished = true;
2486
+ if (error !== void 0) {
2487
+ context.error = error;
2488
+ safePublish(() => tracingChannel.error.publish(context));
2489
+ }
2490
+ if (result !== void 0) {
2491
+ context.result = result;
2492
+ }
2493
+ safePublish(() => tracingChannel.asyncEnd.publish(context));
2494
+ };
2495
+ safePublish(() => {
2496
+ tracingChannel.start.runStores(context, () => {
2497
+ asyncResource = new asyncHooks.AsyncResource("ai.telemetry");
2498
+ });
2499
+ });
2500
+ safePublish(() => tracingChannel.end.publish(context));
2501
+ void Promise.resolve(completion).then(
2502
+ (result) => publishAsyncEnd({ result }),
2503
+ (error) => publishAsyncEnd({ error })
2504
+ );
2505
+ return {
2506
+ run: (execute) => asyncResource == null ? execute() : asyncResource.runInAsyncScope(execute)
2507
+ };
2508
+ }
2509
+
2510
+ // src/telemetry/telemetry-registry.ts
2511
+ function getGlobalTelemetryIntegrations() {
2512
+ var _a12;
2513
+ return (_a12 = globalThis.AI_SDK_TELEMETRY_INTEGRATIONS) != null ? _a12 : [];
2514
+ }
2515
+
2516
+ // src/telemetry/create-telemetry-dispatcher.ts
2517
+ function augmentEvent(event, telemetry) {
2518
+ return Object.assign(
2519
+ Object.create(Object.getPrototypeOf(event)),
2520
+ event,
2521
+ telemetry
2522
+ );
2523
+ }
2524
+ function createTelemetryDispatcher({
2525
+ telemetry
2526
+ }) {
2527
+ if ((telemetry == null ? void 0 : telemetry.isEnabled) === false) {
2528
+ return {};
2529
+ }
2530
+ const localIntegrations = telemetry == null ? void 0 : telemetry.integrations;
2531
+ const integrations = localIntegrations != null ? asArray3(localIntegrations) : getGlobalTelemetryIntegrations();
2532
+ const telemetryMetadata = {
2533
+ recordInputs: telemetry == null ? void 0 : telemetry.recordInputs,
2534
+ recordOutputs: telemetry == null ? void 0 : telemetry.recordOutputs,
2535
+ functionId: telemetry == null ? void 0 : telemetry.functionId
2536
+ };
2537
+ const mergeTelemetryCallback = (key) => {
2538
+ const integrationCallbacks = integrations.map((integration) => {
2539
+ var _a12;
2540
+ return (_a12 = integration[key]) == null ? void 0 : _a12.bind(integration);
2541
+ }).filter(Boolean).map(
2542
+ (callback) => ((event) => callback(augmentEvent(event, telemetryMetadata)))
2543
+ );
2544
+ const mergedIntegrationCallback = mergeCallbacks(...integrationCallbacks);
2545
+ return async (event) => {
2546
+ await mergedIntegrationCallback(event);
2547
+ };
2548
+ };
2549
+ const executeLanguageModelCallWrappers = integrations.map((integration) => {
2550
+ var _a12;
2551
+ return (_a12 = integration.executeLanguageModelCall) == null ? void 0 : _a12.bind(integration);
2552
+ }).filter(Boolean);
2553
+ const executeToolWrappers = integrations.map((integration) => {
2554
+ var _a12;
2555
+ return (_a12 = integration.executeTool) == null ? void 0 : _a12.bind(integration);
2556
+ }).filter(Boolean);
2557
+ return {
2558
+ runInTracingChannelSpan: async ({ type, event, execute }) => await runWithTracingChannelSpan(
2559
+ {
2560
+ type,
2561
+ event: augmentEvent(event, telemetryMetadata)
2562
+ },
2563
+ execute
2564
+ ),
2565
+ startTracingChannelContext: ({ type, event, completion }) => openTelemetryChannelSpanContext({
2566
+ message: {
2567
+ type,
2568
+ event: augmentEvent(event, telemetryMetadata)
2569
+ },
2570
+ completion
2571
+ }),
2572
+ onStart: mergeTelemetryCallback("onStart"),
2573
+ onStepStart: mergeTelemetryCallback("onStepStart"),
2574
+ onLanguageModelCallStart: mergeTelemetryCallback(
2575
+ "onLanguageModelCallStart"
2576
+ ),
2577
+ onLanguageModelCallEnd: mergeTelemetryCallback("onLanguageModelCallEnd"),
2578
+ onToolExecutionStart: mergeTelemetryCallback("onToolExecutionStart"),
2579
+ onToolExecutionEnd: mergeTelemetryCallback("onToolExecutionEnd"),
2580
+ // Fan out step-end events to both the new `onStepEnd` callback and the
2581
+ // deprecated `onStepFinish` callback so integrations that still implement
2582
+ // only `onStepFinish` keep receiving step-end events during the deprecation
2583
+ // window.
2584
+ onStepEnd: mergeCallbacks(
2585
+ mergeTelemetryCallback("onStepEnd"),
2586
+ mergeTelemetryCallback("onStepFinish")
2587
+ ),
2588
+ onObjectStepStart: mergeTelemetryCallback("onObjectStepStart"),
2589
+ onObjectStepEnd: mergeTelemetryCallback("onObjectStepEnd"),
2590
+ onEmbedStart: mergeTelemetryCallback("onEmbedStart"),
2591
+ onEmbedEnd: mergeTelemetryCallback("onEmbedEnd"),
2592
+ onRerankStart: mergeTelemetryCallback("onRerankStart"),
2593
+ onRerankEnd: mergeTelemetryCallback("onRerankEnd"),
2594
+ onEnd: mergeTelemetryCallback("onEnd"),
2595
+ onAbort: mergeTelemetryCallback("onAbort"),
2596
+ onError: mergeTelemetryCallback("onError"),
2597
+ /**
2598
+ * Runs provider calls inside integration-specific context so
2599
+ * auto-instrumented provider requests can be associated with model work.
2600
+ */
2601
+ executeLanguageModelCall: async ({ execute, ...event }) => {
2602
+ const augmentedEvent = augmentEvent(event, telemetryMetadata);
2603
+ let wrappedExecute = execute;
2604
+ for (const executeWrapper of executeLanguageModelCallWrappers) {
2605
+ const innerExecute = wrappedExecute;
2606
+ wrappedExecute = () => executeWrapper({ ...augmentedEvent, execute: innerExecute });
2607
+ }
2608
+ return await runWithTracingChannelSpan(
2609
+ { type: "languageModelCall", event: augmentedEvent },
2610
+ wrappedExecute
2611
+ );
2612
+ },
2613
+ /**
2614
+ * Composes all `executeTool` wrappers around the original tool execution.
2615
+ * Each wrapper receives an `execute` function that calls the next wrapper in
2616
+ * the chain, so integrations can establish nested telemetry context before
2617
+ * delegating to the underlying tool.
2618
+ */
2619
+ executeTool: async ({ execute, ...event }) => {
2620
+ const augmentedEvent = augmentEvent(event, telemetryMetadata);
2621
+ let wrappedExecute = execute;
2622
+ for (const executeWrapper of executeToolWrappers) {
2623
+ const innerExecute = wrappedExecute;
2624
+ wrappedExecute = () => executeWrapper({ ...augmentedEvent, execute: innerExecute });
2625
+ }
2626
+ return await wrappedExecute();
2627
+ }
2628
+ };
2629
+ }
2630
+
2631
+ // src/telemetry/filter-included-context.ts
2632
+ function filterIncludedContext({
2633
+ context,
2634
+ includeContext
2635
+ }) {
2636
+ if (context == null) {
2637
+ return {};
2638
+ }
2639
+ return Object.fromEntries(
2640
+ Object.entries(context).filter(
2641
+ ([key]) => (includeContext == null ? void 0 : includeContext[key]) === true
2642
+ )
2643
+ );
2644
+ }
2645
+
2646
+ // src/generate-text/reasoning.ts
2647
+ function asReasoningText(reasoningParts) {
2648
+ const reasoningText = reasoningParts.map((part) => "text" in part ? part.text : "").join("");
2649
+ return reasoningText.length > 0 ? reasoningText : void 0;
2650
+ }
2651
+
2652
+ // src/generate-text/reasoning-output.ts
2653
+ function convertFromReasoningOutputs(parts) {
2654
+ return parts.map((part) => {
2655
+ if (part.type === "reasoning") {
2656
+ return {
2657
+ type: "reasoning",
2658
+ text: part.text,
2659
+ ...part.providerMetadata != null ? { providerOptions: part.providerMetadata } : {}
2660
+ };
2661
+ }
2662
+ return {
2663
+ type: "reasoning-file",
2664
+ data: part.file.base64,
2665
+ mediaType: part.file.mediaType,
2666
+ ...part.providerMetadata != null ? { providerOptions: part.providerMetadata } : {}
2667
+ };
2668
+ });
2669
+ }
2670
+
2671
+ // src/generate-text/step-result.ts
2672
+ var DefaultStepResult = class {
2673
+ constructor({
2674
+ callId,
2675
+ stepNumber,
2676
+ provider,
2677
+ modelId,
2678
+ runtimeContext,
2679
+ toolsContext,
2680
+ content,
2681
+ finishReason,
2682
+ rawFinishReason,
2683
+ usage,
2684
+ performance,
2685
+ warnings,
2686
+ request,
2687
+ response,
2688
+ providerMetadata
2689
+ }) {
2690
+ this.callId = callId;
2691
+ this.stepNumber = stepNumber;
2692
+ this.model = { provider, modelId };
2693
+ this.runtimeContext = runtimeContext;
2694
+ this.toolsContext = toolsContext;
2695
+ this.content = content;
2696
+ this.finishReason = finishReason;
2697
+ this.rawFinishReason = rawFinishReason;
2698
+ this.usage = usage;
2699
+ this.performance = performance;
2700
+ this.warnings = warnings;
2701
+ this.request = request;
2702
+ this.response = response;
2703
+ this.providerMetadata = providerMetadata;
2704
+ }
2705
+ get text() {
2706
+ return this.content.filter((part) => part.type === "text").map((part) => part.text).join("");
2707
+ }
2708
+ get reasoning() {
2709
+ return convertFromReasoningOutputs(
2710
+ this.content.filter(
2711
+ (part) => part.type === "reasoning" || part.type === "reasoning-file"
2712
+ )
2713
+ );
2714
+ }
2715
+ get reasoningText() {
2716
+ return asReasoningText(this.reasoning);
2717
+ }
2718
+ get files() {
2719
+ return this.content.filter((part) => part.type === "file").map((part) => part.file);
2720
+ }
2721
+ get sources() {
2722
+ return this.content.filter((part) => part.type === "source");
2723
+ }
2724
+ get toolCalls() {
2725
+ return this.content.filter((part) => part.type === "tool-call");
2726
+ }
2727
+ get staticToolCalls() {
2728
+ return this.toolCalls.filter(
2729
+ (toolCall) => toolCall.dynamic !== true
2730
+ );
2731
+ }
2732
+ get dynamicToolCalls() {
2733
+ return this.toolCalls.filter(
2734
+ (toolCall) => toolCall.dynamic === true
2735
+ );
2736
+ }
2737
+ get toolResults() {
2738
+ return this.content.filter((part) => part.type === "tool-result");
2739
+ }
2740
+ get staticToolResults() {
2741
+ return this.toolResults.filter(
2742
+ (toolResult) => toolResult.dynamic !== true
2743
+ );
2744
+ }
2745
+ get dynamicToolResults() {
2746
+ return this.toolResults.filter(
2747
+ (toolResult) => toolResult.dynamic === true
2748
+ );
2749
+ }
2750
+ };
2751
+
2752
+ // src/generate-text/restricted-telemetry-dispatcher.ts
2753
+ function restrictStepResult({
2754
+ step,
2755
+ includeRuntimeContext,
2756
+ includeToolsContext
2757
+ }) {
2758
+ return new DefaultStepResult({
2759
+ callId: step.callId,
2760
+ stepNumber: step.stepNumber,
2761
+ provider: step.model.provider,
2762
+ modelId: step.model.modelId,
2763
+ runtimeContext: filterIncludedContext({
2764
+ context: step.runtimeContext,
2765
+ includeContext: includeRuntimeContext
2766
+ }),
2767
+ toolsContext: filterToolsContext({
2768
+ toolsContext: step.toolsContext,
2769
+ includeToolsContext
2770
+ }),
2771
+ content: step.content,
2772
+ finishReason: step.finishReason,
2773
+ rawFinishReason: step.rawFinishReason,
2774
+ usage: step.usage,
2775
+ performance: step.performance,
2776
+ warnings: step.warnings,
2777
+ request: step.request,
2778
+ response: step.response,
2779
+ providerMetadata: step.providerMetadata
2780
+ });
2781
+ }
2782
+ function filterToolsContext({
2783
+ toolsContext,
2784
+ includeToolsContext
2785
+ }) {
2786
+ if (includeToolsContext == null) {
2787
+ return {};
2788
+ }
2789
+ return Object.fromEntries(
2790
+ Object.entries(toolsContext).map(([toolName, toolContext]) => [
2791
+ toolName,
2792
+ filterToolContext({
2793
+ toolName,
2794
+ toolContext,
2795
+ includeToolsContext
2796
+ })
2797
+ ])
2798
+ );
2799
+ }
2800
+ function filterToolContext({
2801
+ toolName,
2802
+ toolContext,
2803
+ includeToolsContext
2804
+ }) {
2805
+ const includeToolContext = includeToolsContext == null ? void 0 : includeToolsContext[toolName];
2806
+ return filterIncludedContext({
2807
+ context: toolContext,
2808
+ includeContext: includeToolContext
2809
+ });
2810
+ }
2811
+ function createRestrictedTelemetryDispatcher({
2812
+ telemetry,
2813
+ includeRuntimeContext,
2814
+ includeToolsContext
2815
+ }) {
2816
+ const telemetryDispatcher = createTelemetryDispatcher({ telemetry });
2817
+ return {
2818
+ ...telemetryDispatcher,
2819
+ onStart: (event) => {
2820
+ var _a12;
2821
+ return (_a12 = telemetryDispatcher.onStart) == null ? void 0 : _a12.call(telemetryDispatcher, {
2822
+ ...event,
2823
+ runtimeContext: filterIncludedContext({
2824
+ context: event.runtimeContext,
2825
+ includeContext: includeRuntimeContext
2826
+ }),
2827
+ toolsContext: filterToolsContext({
2828
+ toolsContext: event.toolsContext,
2829
+ includeToolsContext
2830
+ })
2831
+ });
2832
+ },
2833
+ onStepStart: (event) => {
2834
+ var _a12;
2835
+ return (_a12 = telemetryDispatcher.onStepStart) == null ? void 0 : _a12.call(telemetryDispatcher, {
2836
+ ...event,
2837
+ runtimeContext: filterIncludedContext({
2838
+ context: event.runtimeContext,
2839
+ includeContext: includeRuntimeContext
2840
+ }),
2841
+ steps: event.steps.map(
2842
+ (step) => restrictStepResult({
2843
+ step,
2844
+ includeRuntimeContext,
2845
+ includeToolsContext
2846
+ })
2847
+ ),
2848
+ toolsContext: filterToolsContext({
2849
+ toolsContext: event.toolsContext,
2850
+ includeToolsContext
2851
+ })
2852
+ });
2853
+ },
2854
+ onStepEnd: (event) => {
2855
+ var _a12;
2856
+ return (_a12 = telemetryDispatcher.onStepEnd) == null ? void 0 : _a12.call(
2857
+ telemetryDispatcher,
2858
+ restrictStepResult({
2859
+ step: event,
2860
+ includeRuntimeContext,
2861
+ includeToolsContext
2862
+ })
2863
+ );
2864
+ },
2865
+ onStepFinish: (event) => {
2866
+ var _a12;
2867
+ return (_a12 = telemetryDispatcher.onStepEnd) == null ? void 0 : _a12.call(
2868
+ telemetryDispatcher,
2869
+ restrictStepResult({
2870
+ step: event,
2871
+ includeRuntimeContext,
2872
+ includeToolsContext
2873
+ })
2874
+ );
2875
+ },
2876
+ onEnd: (event) => {
2877
+ var _a12;
2878
+ return (_a12 = telemetryDispatcher.onEnd) == null ? void 0 : _a12.call(
2879
+ telemetryDispatcher,
2880
+ ((restrictedSteps) => {
2881
+ return {
2882
+ ...event,
2883
+ runtimeContext: filterIncludedContext({
2884
+ context: event.runtimeContext,
2885
+ includeContext: includeRuntimeContext
2886
+ }),
2887
+ steps: restrictedSteps,
2888
+ finalStep: restrictedSteps.at(-1),
2889
+ toolsContext: filterToolsContext({
2890
+ toolsContext: event.toolsContext,
2891
+ includeToolsContext
2892
+ })
2893
+ };
2894
+ })(
2895
+ event.steps.map(
2896
+ (step) => restrictStepResult({
2897
+ step,
2898
+ includeRuntimeContext,
2899
+ includeToolsContext
2900
+ })
2901
+ )
2902
+ )
2903
+ );
2904
+ },
2905
+ onAbort: (event) => {
2906
+ var _a12;
2907
+ return (_a12 = telemetryDispatcher.onAbort) == null ? void 0 : _a12.call(telemetryDispatcher, {
2908
+ ...event,
2909
+ steps: event.steps.map(
2910
+ (step) => restrictStepResult({
2911
+ step,
2912
+ includeRuntimeContext,
2913
+ includeToolsContext
2914
+ })
2915
+ )
2916
+ });
2917
+ },
2918
+ onToolExecutionStart: (event) => {
2919
+ var _a12;
2920
+ return (_a12 = telemetryDispatcher.onToolExecutionStart) == null ? void 0 : _a12.call(telemetryDispatcher, {
2921
+ ...event,
2922
+ toolContext: filterToolContext({
2923
+ toolName: event.toolCall.toolName,
2924
+ toolContext: event.toolContext,
2925
+ includeToolsContext
2926
+ })
2927
+ });
2928
+ },
2929
+ onToolExecutionEnd: (event) => {
2930
+ var _a12;
2931
+ return (_a12 = telemetryDispatcher.onToolExecutionEnd) == null ? void 0 : _a12.call(telemetryDispatcher, {
2932
+ ...event,
2933
+ toolContext: filterToolContext({
2934
+ toolName: event.toolCall.toolName,
2935
+ toolContext: event.toolContext,
2936
+ includeToolsContext
2937
+ })
2938
+ });
2939
+ }
2940
+ };
2941
+ }
2942
+
2943
+ // src/generate-text/parse-tool-call.ts
2944
+ import {
2945
+ asSchema as asSchema2,
2946
+ safeParseJSON,
2947
+ safeValidateTypes as safeValidateTypes2
2948
+ } from "@ai-sdk/provider-utils";
2949
+
2950
+ // src/util/get-own.ts
2951
+ function getOwn(obj, key) {
2952
+ return obj != null && Object.hasOwn(obj, key) ? obj[key] : void 0;
2953
+ }
2954
+
2955
+ // src/generate-text/parse-tool-call.ts
2956
+ async function parseToolCall({
2957
+ toolCall,
2958
+ tools,
2959
+ repairToolCall,
2960
+ refineToolInput,
2961
+ messages,
2962
+ instructions
2963
+ }) {
2964
+ try {
2965
+ if (tools == null) {
2966
+ if (toolCall.providerExecuted && toolCall.dynamic) {
2967
+ return await refineParsedToolCallInput({
2968
+ toolCall: await parseProviderExecutedDynamicToolCall(toolCall),
2969
+ refineToolInput
2970
+ });
2971
+ }
2972
+ throw new NoSuchToolError({ toolName: toolCall.toolName });
2973
+ }
2974
+ try {
2975
+ return await refineParsedToolCallInput({
2976
+ toolCall: await doParseToolCall({ toolCall, tools }),
2977
+ refineToolInput
2978
+ });
2979
+ } catch (error) {
2980
+ if (repairToolCall == null || !(NoSuchToolError.isInstance(error) || InvalidToolInputError.isInstance(error))) {
2981
+ throw error;
2982
+ }
2983
+ let repairedToolCall = null;
2984
+ try {
2985
+ repairedToolCall = await repairToolCall({
2986
+ toolCall,
2987
+ tools,
2988
+ inputSchema: async ({ toolName }) => {
2989
+ var _a12;
2990
+ const inputSchema = (_a12 = getOwn(tools, toolName)) == null ? void 0 : _a12.inputSchema;
2991
+ return await asSchema2(inputSchema).jsonSchema;
2992
+ },
2993
+ instructions,
2994
+ system: instructions,
2995
+ messages,
2996
+ error
2997
+ });
2998
+ } catch (repairError) {
2999
+ throw new ToolCallRepairError({
3000
+ cause: repairError,
3001
+ originalError: error
3002
+ });
3003
+ }
3004
+ if (repairedToolCall == null) {
3005
+ throw error;
3006
+ }
3007
+ return await refineParsedToolCallInput({
3008
+ toolCall: await doParseToolCall({ toolCall: repairedToolCall, tools }),
3009
+ refineToolInput
3010
+ });
3011
+ }
3012
+ } catch (error) {
3013
+ const parsedInput = await safeParseJSON({ text: toolCall.input });
3014
+ const input = parsedInput.success ? parsedInput.value : toolCall.input;
3015
+ const tool = getOwn(tools, toolCall.toolName);
3016
+ return {
3017
+ type: "tool-call",
3018
+ toolCallId: toolCall.toolCallId,
3019
+ toolName: toolCall.toolName,
3020
+ input,
3021
+ dynamic: true,
3022
+ invalid: true,
3023
+ error,
3024
+ title: tool == null ? void 0 : tool.title,
3025
+ providerExecuted: toolCall.providerExecuted,
3026
+ providerMetadata: toolCall.providerMetadata,
3027
+ ...(tool == null ? void 0 : tool.metadata) != null ? { toolMetadata: tool.metadata } : {}
3028
+ };
3029
+ }
3030
+ }
3031
+ async function refineParsedToolCallInput({
3032
+ toolCall,
3033
+ refineToolInput
3034
+ }) {
3035
+ const refine = getOwn(refineToolInput, toolCall.toolName);
3036
+ if (refine == null) {
3037
+ return toolCall;
3038
+ }
3039
+ return {
3040
+ ...toolCall,
3041
+ input: await refine(toolCall.input)
3042
+ };
3043
+ }
3044
+ async function parseProviderExecutedDynamicToolCall(toolCall) {
3045
+ const parseResult = toolCall.input.trim() === "" ? { success: true, value: {} } : await safeParseJSON({ text: toolCall.input });
3046
+ if (parseResult.success === false) {
3047
+ throw new InvalidToolInputError({
3048
+ toolName: toolCall.toolName,
3049
+ toolInput: toolCall.input,
3050
+ cause: parseResult.error
3051
+ });
3052
+ }
3053
+ return {
3054
+ type: "tool-call",
3055
+ toolCallId: toolCall.toolCallId,
3056
+ toolName: toolCall.toolName,
3057
+ input: parseResult.value,
3058
+ providerExecuted: true,
3059
+ dynamic: true,
3060
+ providerMetadata: toolCall.providerMetadata
3061
+ };
3062
+ }
3063
+ async function doParseToolCall({
3064
+ toolCall,
3065
+ tools
3066
+ }) {
3067
+ const toolName = toolCall.toolName;
3068
+ const tool = getOwn(tools, toolName);
3069
+ if (tool == null) {
3070
+ if (toolCall.providerExecuted && toolCall.dynamic) {
3071
+ return await parseProviderExecutedDynamicToolCall(toolCall);
3072
+ }
3073
+ throw new NoSuchToolError({
3074
+ toolName: toolCall.toolName,
3075
+ availableTools: Object.keys(tools)
3076
+ });
3077
+ }
3078
+ const schema = asSchema2(tool.inputSchema);
3079
+ const parseResult = toolCall.input.trim() === "" ? await safeValidateTypes2({ value: {}, schema }) : await safeParseJSON({ text: toolCall.input, schema });
3080
+ if (parseResult.success === false) {
3081
+ throw new InvalidToolInputError({
3082
+ toolName,
3083
+ toolInput: toolCall.input,
3084
+ cause: parseResult.error
3085
+ });
3086
+ }
3087
+ return tool.type === "dynamic" ? {
3088
+ type: "tool-call",
3089
+ toolCallId: toolCall.toolCallId,
3090
+ toolName: toolCall.toolName,
3091
+ input: parseResult.value,
3092
+ providerExecuted: toolCall.providerExecuted,
3093
+ providerMetadata: toolCall.providerMetadata,
3094
+ ...tool.metadata != null ? { toolMetadata: tool.metadata } : {},
3095
+ dynamic: true,
3096
+ title: tool.title
3097
+ } : {
3098
+ type: "tool-call",
3099
+ toolCallId: toolCall.toolCallId,
3100
+ toolName,
3101
+ input: parseResult.value,
3102
+ providerExecuted: toolCall.providerExecuted,
3103
+ providerMetadata: toolCall.providerMetadata,
3104
+ ...tool.metadata != null ? { toolMetadata: tool.metadata } : {},
3105
+ title: tool.title
3106
+ };
3107
+ }
3108
+
3109
+ // src/generate-text/collect-tool-approvals.ts
3110
+ function collectToolApprovals({
3111
+ messages
3112
+ }) {
3113
+ const lastMessage = messages.at(-1);
3114
+ if ((lastMessage == null ? void 0 : lastMessage.role) != "tool") {
3115
+ return {
3116
+ approvedToolApprovals: [],
3117
+ deniedToolApprovals: []
3118
+ };
3119
+ }
3120
+ const toolCallsByToolCallId = /* @__PURE__ */ Object.create(null);
3121
+ for (const message of messages) {
3122
+ if (message.role === "assistant" && typeof message.content !== "string") {
3123
+ const content = message.content;
3124
+ for (const part of content) {
3125
+ if (part.type === "tool-call") {
3126
+ toolCallsByToolCallId[part.toolCallId] = part;
3127
+ }
3128
+ }
3129
+ }
3130
+ }
3131
+ const toolApprovalRequestsByApprovalId = /* @__PURE__ */ Object.create(null);
3132
+ for (const message of messages) {
3133
+ if (message.role === "assistant" && typeof message.content !== "string") {
3134
+ const content = message.content;
3135
+ for (const part of content) {
3136
+ if (part.type === "tool-approval-request") {
3137
+ toolApprovalRequestsByApprovalId[part.approvalId] = part;
3138
+ }
3139
+ }
3140
+ }
3141
+ }
3142
+ const toolResults = /* @__PURE__ */ Object.create(null);
3143
+ for (const part of lastMessage.content) {
3144
+ if (part.type === "tool-result") {
3145
+ toolResults[part.toolCallId] = part;
3146
+ }
3147
+ }
3148
+ const approvedToolApprovals = [];
3149
+ const deniedToolApprovals = [];
3150
+ const approvalResponses = lastMessage.content.filter(
3151
+ (part) => part.type === "tool-approval-response"
3152
+ );
3153
+ for (const approvalResponse of approvalResponses) {
3154
+ const approvalRequest = toolApprovalRequestsByApprovalId[approvalResponse.approvalId];
3155
+ if (approvalRequest == null) {
3156
+ throw new InvalidToolApprovalError({
3157
+ approvalId: approvalResponse.approvalId
3158
+ });
3159
+ }
3160
+ const existingToolResult = toolResults[approvalRequest.toolCallId];
3161
+ if (existingToolResult != null && (approvalResponse.approved || existingToolResult.output.type !== "execution-denied")) {
3162
+ continue;
3163
+ }
3164
+ const toolCall = toolCallsByToolCallId[approvalRequest.toolCallId];
3165
+ if (toolCall == null) {
3166
+ throw new ToolCallNotFoundForApprovalError({
3167
+ toolCallId: approvalRequest.toolCallId,
3168
+ approvalId: approvalRequest.approvalId
3169
+ });
3170
+ }
3171
+ const approval = {
3172
+ approvalRequest,
3173
+ approvalResponse,
3174
+ toolCall,
3175
+ ...existingToolResult != null ? { existingToolResult } : {}
3176
+ };
3177
+ if (approvalResponse.approved) {
3178
+ approvedToolApprovals.push(approval);
3179
+ } else {
3180
+ deniedToolApprovals.push(approval);
3181
+ }
3182
+ }
3183
+ return { approvedToolApprovals, deniedToolApprovals };
3184
+ }
3185
+
3186
+ // src/generate-text/tool-approval-signature.ts
3187
+ import { convertBase64ToUint8Array } from "@ai-sdk/provider-utils";
3188
+
3189
+ // src/util/canonical-hash.ts
3190
+ import { convertUint8ArrayToBase64 } from "@ai-sdk/provider-utils";
3191
+ var encoder = new TextEncoder();
3192
+ function canonicalJSON(value) {
3193
+ if (value === null || value === void 0) {
3194
+ return JSON.stringify(value);
3195
+ }
3196
+ if (typeof value !== "object") {
3197
+ return JSON.stringify(value);
3198
+ }
3199
+ if (Array.isArray(value)) {
3200
+ return `[${value.map((element) => element === void 0 ? "null" : canonicalJSON(element)).join(",")}]`;
3201
+ }
3202
+ const keys = Object.keys(value).sort();
3203
+ const entries = keys.map(
3204
+ (k) => `${JSON.stringify(k)}:${canonicalJSON(value[k])}`
3205
+ );
3206
+ return `{${entries.join(",")}}`;
3207
+ }
3208
+ function toBase64url(bytes) {
3209
+ return convertUint8ArrayToBase64(bytes).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/g, "");
3210
+ }
3211
+ async function hashCanonical(value) {
3212
+ const digest = await crypto.subtle.digest(
3213
+ "SHA-256",
3214
+ encoder.encode(canonicalJSON(value))
3215
+ );
3216
+ return toBase64url(new Uint8Array(digest));
3217
+ }
3218
+
3219
+ // src/generate-text/tool-approval-signature.ts
3220
+ var encoder2 = new TextEncoder();
3221
+ function fromBase64url(str) {
3222
+ return convertBase64ToUint8Array(str);
3223
+ }
3224
+ async function importKey(secret) {
3225
+ const keyData = typeof secret === "string" ? encoder2.encode(secret) : secret;
3226
+ return crypto.subtle.importKey(
3227
+ "raw",
3228
+ keyData,
3229
+ { name: "HMAC", hash: "SHA-256" },
3230
+ false,
3231
+ ["sign", "verify"]
3232
+ );
3233
+ }
3234
+ function buildPayload(approvalId, toolCallId, toolName, inputDigest) {
3235
+ return encoder2.encode(
3236
+ JSON.stringify([
3237
+ "ai-sdk-tool-approval-v1",
3238
+ approvalId,
3239
+ toolCallId,
3240
+ toolName,
3241
+ inputDigest
3242
+ ])
3243
+ );
3244
+ }
3245
+ function buildLegacyPayload(approvalId, toolCallId, toolName, inputDigest) {
3246
+ return encoder2.encode(
3247
+ `${approvalId}
3248
+ ${toolCallId}
3249
+ ${toolName}
3250
+ ${inputDigest}`
3251
+ );
3252
+ }
3253
+ async function signToolApproval({
3254
+ secret,
3255
+ approvalId,
3256
+ toolCallId,
3257
+ toolName,
3258
+ input
3259
+ }) {
3260
+ const key = await importKey(secret);
3261
+ const inputDigest = await hashCanonical(input);
3262
+ const payload = buildPayload(approvalId, toolCallId, toolName, inputDigest);
3263
+ const sig = await crypto.subtle.sign("HMAC", key, payload);
3264
+ return toBase64url(new Uint8Array(sig));
3265
+ }
3266
+ async function verifyToolApprovalSignature({
3267
+ secret,
3268
+ signature,
3269
+ approvalId,
3270
+ toolCallId,
3271
+ toolName,
3272
+ input
3273
+ }) {
3274
+ const key = await importKey(secret);
3275
+ const inputDigest = await hashCanonical(input);
3276
+ const sigBytes = fromBase64url(signature);
3277
+ const payload = buildPayload(approvalId, toolCallId, toolName, inputDigest);
3278
+ if (await crypto.subtle.verify("HMAC", key, sigBytes, payload)) {
3279
+ return true;
3280
+ }
3281
+ if (!approvalId.includes("\n") && !toolCallId.includes("\n") && !toolName.includes("\n")) {
3282
+ const legacyPayload = buildLegacyPayload(
3283
+ approvalId,
3284
+ toolCallId,
3285
+ toolName,
3286
+ inputDigest
3287
+ );
3288
+ return crypto.subtle.verify("HMAC", key, sigBytes, legacyPayload);
3289
+ }
3290
+ return false;
3291
+ }
3292
+
3293
+ // src/generate-text/validate-tool-approvals.ts
3294
+ import {
3295
+ asSchema as asSchema3,
3296
+ isExecutableTool,
3297
+ safeValidateTypes as safeValidateTypes3
3298
+ } from "@ai-sdk/provider-utils";
3299
+
3300
+ // src/generate-text/validate-tool-context.ts
3301
+ import { validateTypes } from "@ai-sdk/provider-utils";
3302
+ async function validateToolContext({
3303
+ toolName,
3304
+ context,
3305
+ contextSchema
3306
+ }) {
3307
+ if (contextSchema == null) {
3308
+ return context;
3309
+ }
3310
+ return await validateTypes({
3311
+ value: context,
3312
+ schema: contextSchema,
3313
+ context: {
3314
+ field: "tool context",
3315
+ entityName: toolName
3316
+ }
3317
+ });
3318
+ }
3319
+
3320
+ // src/generate-text/resolve-tool-approval.ts
3321
+ async function resolveToolApproval({
3322
+ tools,
3323
+ toolCall,
3324
+ toolApproval,
3325
+ messages,
3326
+ toolsContext,
3327
+ runtimeContext
3328
+ }) {
3329
+ if (toolApproval != null && typeof toolApproval === "function") {
3330
+ return normalizeToolApprovalStatus(
3331
+ await toolApproval({
3332
+ toolCall,
3333
+ tools,
3334
+ toolsContext,
3335
+ messages,
3336
+ runtimeContext
3337
+ })
3338
+ );
3339
+ }
3340
+ const toolName = toolCall.toolName;
3341
+ const tool = getOwn(tools, toolName);
3342
+ const input = toolCall.input;
3343
+ const userDefinedToolApprovalStatus = getOwn(toolApproval, toolName);
3344
+ if (userDefinedToolApprovalStatus != null) {
3345
+ const approvalStatus = typeof userDefinedToolApprovalStatus === "function" ? await userDefinedToolApprovalStatus(input, {
3346
+ toolCallId: toolCall.toolCallId,
3347
+ messages,
3348
+ toolContext: await validateToolContext({
3349
+ toolName,
3350
+ context: getOwn(toolsContext, toolName),
3351
+ contextSchema: tool == null ? void 0 : tool.contextSchema
3352
+ }),
3353
+ runtimeContext
3354
+ }) : userDefinedToolApprovalStatus;
3355
+ return normalizeToolApprovalStatus(approvalStatus);
3356
+ }
3357
+ if ((tool == null ? void 0 : tool.needsApproval) == null) {
3358
+ return { type: "not-applicable" };
3359
+ }
3360
+ const needsApproval = typeof tool.needsApproval === "function" ? await tool.needsApproval(input, {
3361
+ toolCallId: toolCall.toolCallId,
3362
+ messages,
3363
+ context: await validateToolContext({
3364
+ toolName,
3365
+ context: getOwn(toolsContext, toolName),
3366
+ contextSchema: tool == null ? void 0 : tool.contextSchema
3367
+ })
3368
+ }) : tool.needsApproval;
3369
+ return needsApproval ? { type: "user-approval" } : { type: "not-applicable" };
3370
+ }
3371
+ function normalizeToolApprovalStatus(status) {
3372
+ return status === void 0 ? { type: "not-applicable" } : typeof status === "string" ? { type: status } : status;
3373
+ }
3374
+
3375
+ // src/generate-text/validate-tool-approvals.ts
3376
+ async function validateApprovedToolApprovals({
3377
+ approvedToolApprovals,
3378
+ tools,
3379
+ toolApproval,
3380
+ messages,
3381
+ toolsContext,
3382
+ runtimeContext,
3383
+ toolApprovalSecret
3384
+ }) {
3385
+ var _a12;
3386
+ const approved = [];
3387
+ const denied = [];
3388
+ const invalid = [];
3389
+ for (const approval of approvedToolApprovals) {
3390
+ const { toolCall, approvalRequest } = approval;
3391
+ const tool = getOwn(tools, toolCall.toolName);
3392
+ if (toolApprovalSecret != null) {
3393
+ if (approvalRequest.signature == null) {
3394
+ throw new InvalidToolApprovalSignatureError({
3395
+ approvalId: approvalRequest.approvalId,
3396
+ toolCallId: toolCall.toolCallId,
3397
+ reason: "missing signature"
3398
+ });
3399
+ }
3400
+ const valid = await verifyToolApprovalSignature({
3401
+ secret: toolApprovalSecret,
3402
+ signature: approvalRequest.signature,
3403
+ approvalId: approvalRequest.approvalId,
3404
+ toolCallId: toolCall.toolCallId,
3405
+ toolName: toolCall.toolName,
3406
+ input: toolCall.input
3407
+ });
3408
+ if (!valid) {
3409
+ throw new InvalidToolApprovalSignatureError({
3410
+ approvalId: approvalRequest.approvalId,
3411
+ toolCallId: toolCall.toolCallId,
3412
+ reason: "invalid signature"
3413
+ });
3414
+ }
3415
+ }
3416
+ if (isExecutableTool(tool) && tool.inputSchema != null) {
3417
+ const validation = await safeValidateTypes3({
3418
+ value: toolCall.input,
3419
+ schema: asSchema3(tool.inputSchema)
3420
+ });
3421
+ if (!validation.success) {
3422
+ invalid.push({
3423
+ ...approval,
3424
+ error: new InvalidToolInputError({
3425
+ toolName: toolCall.toolName,
3426
+ toolInput: JSON.stringify(toolCall.input),
3427
+ cause: validation.error
3428
+ })
3429
+ });
3430
+ continue;
3431
+ }
3432
+ }
3433
+ const approvalStatus = await resolveToolApproval({
3434
+ tools,
3435
+ toolApproval,
3436
+ toolCall,
3437
+ messages,
3438
+ toolsContext,
3439
+ runtimeContext
3440
+ });
3441
+ if (approvalStatus.type === "denied") {
3442
+ denied.push({
3443
+ ...approval,
3444
+ approvalResponse: {
3445
+ ...approval.approvalResponse,
3446
+ approved: false,
3447
+ reason: (_a12 = approvalStatus.reason) != null ? _a12 : approval.approvalResponse.reason
3448
+ }
3449
+ });
3450
+ } else {
3451
+ approved.push(approval);
3452
+ }
3453
+ }
3454
+ return {
3455
+ approvedToolApprovals: approved,
3456
+ deniedToolApprovals: denied,
3457
+ invalidToolApprovals: invalid
3458
+ };
3459
+ }
3460
+
3461
+ // src/generate-text/to-response-messages.ts
3462
+ async function toResponseMessages({
3463
+ content: inputContent,
3464
+ tools
3465
+ }) {
3466
+ const responseMessages = [];
3467
+ const toolCallOrder = /* @__PURE__ */ new Map();
3468
+ const content = [];
3469
+ for (const part of inputContent) {
3470
+ if (part.type === "source") {
3471
+ continue;
3472
+ }
3473
+ if ((part.type === "tool-result" || part.type === "tool-error") && !part.providerExecuted) {
3474
+ continue;
3475
+ }
3476
+ if (part.type === "text" && part.text.length === 0) {
3477
+ continue;
3478
+ }
3479
+ switch (part.type) {
3480
+ case "text":
3481
+ content.push({
3482
+ type: "text",
3483
+ text: part.text,
3484
+ providerOptions: part.providerMetadata
3485
+ });
3486
+ break;
3487
+ case "custom":
3488
+ content.push({
3489
+ type: "custom",
3490
+ kind: part.kind,
3491
+ providerOptions: part.providerMetadata
3492
+ });
3493
+ break;
3494
+ case "reasoning":
3495
+ content.push({
3496
+ type: "reasoning",
3497
+ text: part.text,
3498
+ providerOptions: part.providerMetadata
3499
+ });
3500
+ break;
3501
+ case "file":
3502
+ content.push({
3503
+ type: "file",
3504
+ data: part.file.base64,
3505
+ mediaType: part.file.mediaType,
3506
+ providerOptions: part.providerMetadata
3507
+ });
3508
+ break;
3509
+ case "reasoning-file":
3510
+ content.push({
3511
+ type: "reasoning-file",
3512
+ data: part.file.base64,
3513
+ mediaType: part.file.mediaType,
3514
+ providerOptions: part.providerMetadata
3515
+ });
3516
+ break;
3517
+ case "tool-call":
3518
+ if (!toolCallOrder.has(part.toolCallId)) {
3519
+ toolCallOrder.set(part.toolCallId, toolCallOrder.size);
3520
+ }
3521
+ content.push({
3522
+ type: "tool-call",
3523
+ toolCallId: part.toolCallId,
3524
+ toolName: part.toolName,
3525
+ input: part.invalid && typeof part.input !== "object" ? {} : part.input,
3526
+ providerExecuted: part.providerExecuted,
3527
+ providerOptions: part.providerMetadata
3528
+ });
3529
+ break;
3530
+ case "tool-result": {
3531
+ const output = await createToolModelOutput({
3532
+ toolCallId: part.toolCallId,
3533
+ input: part.input,
3534
+ tool: getOwn(tools, part.toolName),
3535
+ output: part.output,
3536
+ errorMode: "none"
3537
+ });
3538
+ content.push({
3539
+ type: "tool-result",
3540
+ toolCallId: part.toolCallId,
3541
+ toolName: part.toolName,
3542
+ output,
3543
+ providerOptions: part.providerMetadata
3544
+ });
3545
+ break;
3546
+ }
3547
+ case "tool-error": {
3548
+ const output = await createToolModelOutput({
3549
+ toolCallId: part.toolCallId,
3550
+ input: part.input,
3551
+ tool: getOwn(tools, part.toolName),
3552
+ output: part.error,
3553
+ errorMode: "json"
3554
+ });
3555
+ content.push({
3556
+ type: "tool-result",
3557
+ toolCallId: part.toolCallId,
3558
+ toolName: part.toolName,
3559
+ output,
3560
+ providerOptions: part.providerMetadata
3561
+ });
3562
+ break;
3563
+ }
3564
+ case "tool-approval-request":
3565
+ content.push({
3566
+ type: "tool-approval-request",
3567
+ approvalId: part.approvalId,
3568
+ toolCallId: part.toolCall.toolCallId,
3569
+ ...part.reason != null ? { reason: part.reason } : {},
3570
+ isAutomatic: part.isAutomatic,
3571
+ ...part.signature != null ? { signature: part.signature } : {}
3572
+ });
3573
+ break;
3574
+ }
3575
+ }
3576
+ if (content.length > 0) {
3577
+ responseMessages.push({
3578
+ role: "assistant",
3579
+ content
3580
+ });
3581
+ }
3582
+ const toolResultContent = [];
3583
+ for (const part of inputContent) {
3584
+ if (part.type !== "tool-approval-response" && part.type !== "tool-result" && part.type !== "tool-error") {
3585
+ continue;
3586
+ }
3587
+ if (part.type === "tool-approval-response") {
3588
+ toolResultContent.push({
3589
+ type: "tool-approval-response",
3590
+ approvalId: part.approvalId,
3591
+ approved: part.approved,
3592
+ reason: part.reason,
3593
+ providerExecuted: part.providerExecuted
3594
+ });
3595
+ if (part.approved === false) {
3596
+ toolResultContent.push({
3597
+ type: "tool-result",
3598
+ toolCallId: part.toolCall.toolCallId,
3599
+ toolName: part.toolCall.toolName,
3600
+ output: {
3601
+ type: "execution-denied",
3602
+ reason: part.reason
3603
+ }
3604
+ });
3605
+ }
3606
+ continue;
3607
+ }
3608
+ if (part.providerExecuted) {
3609
+ continue;
3610
+ }
3611
+ const output = await createToolModelOutput({
3612
+ toolCallId: part.toolCallId,
3613
+ input: part.input,
3614
+ tool: getOwn(tools, part.toolName),
3615
+ output: part.type === "tool-result" ? part.output : part.error,
3616
+ errorMode: part.type === "tool-error" ? "text" : "none"
3617
+ });
3618
+ toolResultContent.push({
3619
+ type: "tool-result",
3620
+ toolCallId: part.toolCallId,
3621
+ toolName: part.toolName,
3622
+ output,
3623
+ ...part.providerMetadata != null ? { providerOptions: part.providerMetadata } : {}
3624
+ });
3625
+ }
3626
+ if (toolResultContent.length > 0) {
3627
+ responseMessages.push({
3628
+ role: "tool",
3629
+ content: sortToolResultContentByToolCallOrder({
3630
+ toolResultContent,
3631
+ toolCallOrder
3632
+ })
3633
+ });
3634
+ }
3635
+ return responseMessages;
3636
+ }
3637
+ function sortToolResultContentByToolCallOrder({
3638
+ toolResultContent,
3639
+ toolCallOrder
3640
+ }) {
3641
+ const sortedToolResults = toolResultContent.filter((part) => part.type === "tool-result").map((part, index) => ({ part, index })).sort((a, b) => {
3642
+ const aOrder = toolCallOrder.get(a.part.toolCallId);
3643
+ const bOrder = toolCallOrder.get(b.part.toolCallId);
3644
+ if (aOrder == null && bOrder == null) {
3645
+ return a.index - b.index;
3646
+ }
3647
+ if (aOrder == null) {
3648
+ return 1;
3649
+ }
3650
+ if (bOrder == null) {
3651
+ return -1;
3652
+ }
3653
+ return aOrder - bOrder || a.index - b.index;
3654
+ }).map(({ part }) => part);
3655
+ let toolResultIndex = 0;
3656
+ return toolResultContent.map(
3657
+ (part) => part.type === "tool-result" ? sortedToolResults[toolResultIndex++] : part
3658
+ );
3659
+ }
3660
+ export {
3661
+ DefaultStepResult,
3662
+ addLanguageModelUsage,
3663
+ asLanguageModelUsage,
3664
+ collectToolApprovals,
3665
+ convertAsyncIteratorToReadableStream,
3666
+ convertToLanguageModelPrompt,
3667
+ createAsyncIterableStream,
3668
+ createDefaultDownloadFunction,
3669
+ createNullLanguageModelUsage,
3670
+ createRestrictedTelemetryDispatcher,
3671
+ createTelemetryDispatcher,
3672
+ createToolModelOutput,
3673
+ downloadAssets,
3674
+ mapToolResultOutput,
3675
+ mergeAbortSignals,
3676
+ mergeCallbacks,
3677
+ parseToolCall,
3678
+ prepareLanguageModelCallOptions as prepareCallSettings,
3679
+ prepareLanguageModelCallOptions,
3680
+ prepareRetries,
3681
+ prepareToolChoice,
3682
+ prepareTools,
3683
+ resolveLanguageModel,
3684
+ signToolApproval,
3685
+ standardizePrompt,
3686
+ toResponseMessages,
3687
+ validateApprovedToolApprovals,
3688
+ verifyToolApprovalSignature
3689
+ };
3690
+ //# sourceMappingURL=index.js.map