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