maka-agent 0.2.0-dev.5.20260830 → 0.2.0-dev.50.20260925

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 (2556) hide show
  1. package/DISCLAIMER-WIP +6 -1
  2. package/LICENSE +290 -9
  3. package/README.md +50 -20
  4. package/README.zh-CN.md +39 -19
  5. package/RUNTIME_HOST_PEER_DEPENDENCIES.rust.tsv +70 -0
  6. package/RUNTIME_HOST_PEER_THIRD_PARTY_NOTICES.txt +1839 -140
  7. package/THIRD_PARTY_NOTICES.txt +482 -263
  8. package/dist/acp/active-promise.js +38 -0
  9. package/dist/acp/maka-acp-agent.js +88 -7
  10. package/dist/acp/prompt-content.js +225 -0
  11. package/dist/acp/session-configuration.js +143 -0
  12. package/dist/acp/session-event-mapper.js +205 -0
  13. package/dist/acp/session-interactions.js +550 -0
  14. package/dist/acp/session-mcp.js +361 -0
  15. package/dist/acp/session-registry.js +1970 -0
  16. package/dist/acp/stdio-server.js +32 -1
  17. package/dist/acp/tool-event-mapper.js +424 -0
  18. package/dist/acp/turn-observation.js +260 -0
  19. package/dist/activation-command.js +1 -2
  20. package/dist/bounded-chunk-buffer.js +16 -3
  21. package/dist/cli-core.js +98 -102
  22. package/dist/cli-ui-locale.js +7 -2
  23. package/dist/mcp-capability-provider.js +21 -12
  24. package/dist/mcp-capability-publication.js +155 -0
  25. package/dist/onboarding-catalog.js +23 -8
  26. package/dist/pi-transcript-tools.js +17 -5
  27. package/dist/pi-transcript.js +77 -31
  28. package/dist/pi-tui-form-interaction.js +497 -0
  29. package/dist/pi-tui-layout.js +101 -24
  30. package/dist/pi-tui-mcp-status.js +122 -124
  31. package/dist/pi-tui-pickers.js +588 -103
  32. package/dist/pi-tui-runner.js +1096 -250
  33. package/dist/pi-tui-todo.js +221 -0
  34. package/dist/pi-tui-transcript-viewer.js +134 -7
  35. package/dist/run-command-core.js +6 -14
  36. package/dist/runtime-host-access-command.js +37 -4
  37. package/dist/runtime-host-capability-provider-command.js +41 -8
  38. package/dist/runtime-host-cli-context.js +300 -80
  39. package/dist/runtime-host-cli-installation.js +8 -2
  40. package/dist/runtime-host-cli.js +360 -64
  41. package/dist/runtime-host-handoff-surface.js +108 -0
  42. package/dist/runtime-host-help.js +244 -0
  43. package/dist/runtime-host-installed-update-activator.js +70 -33
  44. package/dist/runtime-host-installed-update-bootstrap.js +16 -1
  45. package/dist/runtime-host-installed-update-coordinator.js +44 -96
  46. package/dist/runtime-host-lifecycle-transaction.js +101 -28
  47. package/dist/runtime-host-local-handoff.js +215 -41
  48. package/dist/runtime-host-local-managed-activation.js +84 -0
  49. package/dist/runtime-host-local-source-retirement.js +119 -0
  50. package/dist/runtime-host-local-target-activation.js +141 -0
  51. package/dist/runtime-host-managed-deployment.js +158 -51
  52. package/dist/runtime-host-managed-lifecycle-manager.js +5 -6
  53. package/dist/runtime-host-onboarding.js +363 -23
  54. package/dist/runtime-host-openrc-service.js +469 -0
  55. package/dist/runtime-host-operator-retirement.js +50 -0
  56. package/dist/runtime-host-package-deployment.js +36 -2
  57. package/dist/runtime-host-peer-artifact.js +3 -3
  58. package/dist/runtime-host-peer-management-command.js +30 -12
  59. package/dist/runtime-host-peer-mesh-management-command.js +1 -1
  60. package/dist/runtime-host-plugin-command.js +101 -0
  61. package/dist/runtime-host-profile-command.js +1 -1
  62. package/dist/runtime-host-run-command.js +50 -61
  63. package/dist/runtime-host-service-command.js +3 -3
  64. package/dist/runtime-host-service-management-command.js +67 -17
  65. package/dist/runtime-host-service-manager.js +30 -11
  66. package/dist/runtime-host-session-channel.js +278 -28
  67. package/dist/runtime-host-session-driver.js +93 -53
  68. package/dist/runtime-host-session-update.js +62 -0
  69. package/dist/runtime-host-setup-command.js +72 -52
  70. package/dist/runtime-host-task-readiness.js +2 -3
  71. package/dist/runtime-host-tui-command.js +63 -82
  72. package/dist/runtime-host-tui-context.js +74 -11
  73. package/dist/runtime-host-tui-owner.js +226 -0
  74. package/dist/runtime-host-update-command.js +165 -70
  75. package/dist/runtime-host-update-discovery.js +1 -0
  76. package/dist/runtime-host-update-reconciliation.js +7 -7
  77. package/dist/runtime-host-windows-service.js +166 -0
  78. package/dist/runtime-host-windows-task-launcher-artifact.js +75 -0
  79. package/dist/session-export-command.js +72 -0
  80. package/dist/session-import-command.js +69 -0
  81. package/dist/tui-autocomplete-layout.js +3 -1
  82. package/dist/tui-clipboard.js +86 -0
  83. package/dist/tui-context-refresh.js +92 -0
  84. package/dist/tui-copy-catalog.js +1054 -14
  85. package/dist/tui-copy-command.js +103 -0
  86. package/dist/tui-editor-render.js +36 -0
  87. package/dist/tui-host-owner-copy.js +24 -0
  88. package/dist/tui-mcp-control.js +151 -120
  89. package/dist/tui-mcp-remote-publication.js +395 -0
  90. package/native/runtime-host-peer/prebuilds/darwin-arm64/maka_runtime_host_peer.node +0 -0
  91. package/native/runtime-host-peer/prebuilds/linux-arm64/maka_runtime_host_peer.node +0 -0
  92. package/native/runtime-host-peer/prebuilds/linux-x64/maka_runtime_host_peer.node +0 -0
  93. package/native/runtime-host-peer/prebuilds/win32-x64/maka_runtime_host_peer.node +0 -0
  94. package/native/runtime-host-windows-task-launcher/prebuilds/win32-x64/maka-runtime-host-task-launcher.exe +0 -0
  95. package/node_modules/@ai-sdk/anthropic/CHANGELOG.md +117 -0
  96. package/node_modules/@ai-sdk/anthropic/dist/index.js +937 -411
  97. package/node_modules/@ai-sdk/anthropic/dist/internal/index.js +335 -160
  98. package/node_modules/@ai-sdk/anthropic/docs/05-anthropic.mdx +132 -43
  99. package/node_modules/@ai-sdk/anthropic/node_modules/@ai-sdk/provider/CHANGELOG.md +1262 -0
  100. package/node_modules/@ai-sdk/anthropic/node_modules/@ai-sdk/provider/package.json +63 -0
  101. package/node_modules/@ai-sdk/anthropic/package.json +6 -6
  102. package/node_modules/@ai-sdk/cohere/CHANGELOG.md +105 -0
  103. package/node_modules/@ai-sdk/cohere/dist/index.js +20 -22
  104. package/node_modules/@ai-sdk/cohere/node_modules/@ai-sdk/provider/CHANGELOG.md +1262 -0
  105. package/node_modules/@ai-sdk/cohere/node_modules/@ai-sdk/provider/README.md +1 -0
  106. package/node_modules/@ai-sdk/cohere/node_modules/@ai-sdk/provider/dist/index.js +426 -0
  107. package/node_modules/@ai-sdk/cohere/node_modules/@ai-sdk/provider/package.json +63 -0
  108. package/node_modules/@ai-sdk/cohere/package.json +6 -6
  109. package/node_modules/@ai-sdk/google/CHANGELOG.md +176 -0
  110. package/node_modules/@ai-sdk/google/dist/index.js +4441 -2801
  111. package/node_modules/@ai-sdk/google/dist/internal/index.js +640 -177
  112. package/node_modules/@ai-sdk/google/docs/15-google.mdx +225 -97
  113. package/node_modules/@ai-sdk/google/node_modules/@ai-sdk/provider/CHANGELOG.md +1262 -0
  114. package/node_modules/@ai-sdk/google/node_modules/@ai-sdk/provider/README.md +1 -0
  115. package/node_modules/@ai-sdk/google/node_modules/@ai-sdk/provider/dist/index.js +426 -0
  116. package/node_modules/@ai-sdk/google/node_modules/@ai-sdk/provider/package.json +63 -0
  117. package/node_modules/@ai-sdk/google/package.json +6 -6
  118. package/node_modules/@ai-sdk/open-responses/CHANGELOG.md +81 -0
  119. package/node_modules/@ai-sdk/open-responses/dist/index.js +570 -22
  120. package/node_modules/@ai-sdk/open-responses/docs/06-open-responses.mdx +123 -2
  121. package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider/CHANGELOG.md +38 -0
  122. package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider/package.json +1 -1
  123. package/node_modules/@ai-sdk/open-responses/package.json +3 -3
  124. package/node_modules/@ai-sdk/openai/CHANGELOG.md +184 -0
  125. package/node_modules/@ai-sdk/openai/dist/index.js +2013 -736
  126. package/node_modules/@ai-sdk/openai/dist/internal/index.js +1377 -478
  127. package/node_modules/@ai-sdk/openai/docs/03-openai.mdx +208 -52
  128. package/node_modules/@ai-sdk/openai/node_modules/@ai-sdk/provider/CHANGELOG.md +1262 -0
  129. package/node_modules/@ai-sdk/openai/node_modules/@ai-sdk/provider/LICENSE +13 -0
  130. package/node_modules/@ai-sdk/openai/node_modules/@ai-sdk/provider/README.md +1 -0
  131. package/node_modules/@ai-sdk/openai/node_modules/@ai-sdk/provider/dist/index.js +426 -0
  132. package/node_modules/@ai-sdk/openai/node_modules/@ai-sdk/provider/package.json +63 -0
  133. package/node_modules/@ai-sdk/openai/package.json +6 -6
  134. package/node_modules/@ai-sdk/openai-compatible/CHANGELOG.md +126 -0
  135. package/node_modules/@ai-sdk/openai-compatible/dist/index.js +105 -20
  136. package/node_modules/@ai-sdk/openai-compatible/dist/internal/index.js +9 -0
  137. package/node_modules/@ai-sdk/openai-compatible/docs/index.mdx +78 -0
  138. package/node_modules/@ai-sdk/openai-compatible/node_modules/@ai-sdk/provider/CHANGELOG.md +1262 -0
  139. package/node_modules/@ai-sdk/openai-compatible/node_modules/@ai-sdk/provider/README.md +1 -0
  140. package/node_modules/@ai-sdk/openai-compatible/node_modules/@ai-sdk/provider/dist/index.js +426 -0
  141. package/node_modules/@ai-sdk/openai-compatible/node_modules/@ai-sdk/provider/package.json +63 -0
  142. package/node_modules/@ai-sdk/openai-compatible/package.json +6 -6
  143. package/node_modules/@ai-sdk/provider-utils/CHANGELOG.md +92 -0
  144. package/node_modules/@ai-sdk/provider-utils/dist/index.js +664 -168
  145. package/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/CHANGELOG.md +1262 -0
  146. package/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/LICENSE +13 -0
  147. package/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/README.md +1 -0
  148. package/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/dist/index.js +426 -0
  149. package/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/package.json +63 -0
  150. package/node_modules/@ai-sdk/provider-utils/package.json +5 -5
  151. package/node_modules/@earendil-works/pi-tui/README.md +53 -4
  152. package/node_modules/@earendil-works/pi-tui/dist/alt-screen-search.js +202 -42
  153. package/node_modules/@earendil-works/pi-tui/dist/autocomplete.js +36 -3
  154. package/node_modules/@earendil-works/pi-tui/dist/components/box.js +29 -0
  155. package/node_modules/@earendil-works/pi-tui/dist/components/editor.js +107 -22
  156. package/node_modules/@earendil-works/pi-tui/dist/components/input.js +44 -5
  157. package/node_modules/@earendil-works/pi-tui/dist/components/loader.js +10 -3
  158. package/node_modules/@earendil-works/pi-tui/dist/components/markdown.js +9 -4
  159. package/node_modules/@earendil-works/pi-tui/dist/components/mouse-region.js +21 -0
  160. package/node_modules/@earendil-works/pi-tui/dist/components/scroll-view.js +8 -2
  161. package/node_modules/@earendil-works/pi-tui/dist/components/select-list.js +49 -2
  162. package/node_modules/@earendil-works/pi-tui/dist/components/settings-list.js +79 -9
  163. package/node_modules/@earendil-works/pi-tui/dist/components/text.js +5 -4
  164. package/node_modules/@earendil-works/pi-tui/dist/index.js +2 -1
  165. package/node_modules/@earendil-works/pi-tui/dist/keybindings.js +2 -2
  166. package/node_modules/@earendil-works/pi-tui/dist/latex.js +14 -0
  167. package/node_modules/@earendil-works/pi-tui/dist/layout.js +32 -9
  168. package/node_modules/@earendil-works/pi-tui/dist/native-modifiers.js +2 -8
  169. package/node_modules/@earendil-works/pi-tui/dist/native-module-path.js +19 -0
  170. package/node_modules/@earendil-works/pi-tui/dist/terminal-image.js +38 -6
  171. package/node_modules/@earendil-works/pi-tui/dist/terminal.js +21 -14
  172. package/node_modules/@earendil-works/pi-tui/dist/tui-alt-screen.js +405 -57
  173. package/node_modules/@earendil-works/pi-tui/dist/tui-main-screen.js +111 -50
  174. package/node_modules/@earendil-works/pi-tui/dist/tui.js +123 -9
  175. package/node_modules/@earendil-works/pi-tui/dist/utils.js +9 -0
  176. package/node_modules/@earendil-works/pi-tui/package.json +1 -1
  177. package/node_modules/@larksuiteoapi/node-sdk/es/index.js +199 -35
  178. package/node_modules/@larksuiteoapi/node-sdk/lib/index.js +199 -35
  179. package/node_modules/@larksuiteoapi/node-sdk/package.json +1 -1
  180. package/node_modules/@maka/acp-executor-plugin/dist/acp-errors.js +26 -0
  181. package/node_modules/@maka/acp-executor-plugin/dist/acp-filesystem.js +103 -0
  182. package/node_modules/@maka/acp-executor-plugin/dist/acp-process.js +119 -0
  183. package/node_modules/@maka/acp-executor-plugin/dist/acp-projection.js +146 -0
  184. package/node_modules/@maka/acp-executor-plugin/dist/index.js +653 -0
  185. package/node_modules/@maka/acp-executor-plugin/dist/plugin.mjs +24446 -0
  186. package/node_modules/@maka/acp-executor-plugin/package.json +15 -0
  187. package/node_modules/@maka/antigravity-acp-plugin/dist/index.js +88 -0
  188. package/node_modules/@maka/antigravity-acp-plugin/dist/model-presentation.js +53 -0
  189. package/node_modules/@maka/antigravity-acp-plugin/dist/plugin.mjs +115 -0
  190. package/node_modules/@maka/antigravity-acp-plugin/package.json +15 -0
  191. package/node_modules/@maka/core/dist/agent-graph-schedule.js +15 -4
  192. package/node_modules/@maka/core/dist/agent-run.js +25 -336
  193. package/node_modules/@maka/core/dist/artifacts.js +33 -23
  194. package/node_modules/@maka/core/dist/attachments.js +100 -1
  195. package/node_modules/@maka/core/dist/bot-events.js +18 -63
  196. package/node_modules/@maka/core/dist/bounded-response.js +71 -0
  197. package/node_modules/@maka/core/dist/canonical-json.js +27 -0
  198. package/node_modules/@maka/core/dist/canonical-runtime-event.js +3 -1
  199. package/node_modules/@maka/core/dist/capabilities.js +35 -0
  200. package/node_modules/@maka/core/dist/chat-model-choice.js +14 -31
  201. package/node_modules/@maka/core/dist/client-capability-grant.js +149 -0
  202. package/node_modules/@maka/core/dist/collaboration.js +12 -0
  203. package/node_modules/@maka/core/dist/computer-use.js +27 -93
  204. package/node_modules/@maka/core/dist/connection-error-copy.js +17 -34
  205. package/node_modules/@maka/core/dist/connection-readiness.js +3 -31
  206. package/node_modules/@maka/core/dist/diagnostic-log.js +18 -7
  207. package/node_modules/@maka/core/dist/display-redaction.js +18 -0
  208. package/node_modules/@maka/core/dist/durable-tool-result-projection.js +126 -0
  209. package/node_modules/@maka/core/dist/events.js +114 -21
  210. package/node_modules/@maka/core/dist/execution-inspect.js +12 -21
  211. package/node_modules/@maka/core/dist/executor-catalog.js +106 -0
  212. package/node_modules/@maka/core/dist/executor-id.js +22 -0
  213. package/node_modules/@maka/core/dist/external-session.js +65 -3
  214. package/node_modules/@maka/core/dist/goal.js +44 -2
  215. package/node_modules/@maka/core/dist/health.js +50 -45
  216. package/node_modules/@maka/core/dist/interaction.js +657 -2
  217. package/node_modules/@maka/core/dist/llm-connections.js +108 -97
  218. package/node_modules/@maka/core/dist/local-memory.js +2 -2
  219. package/node_modules/@maka/core/dist/maka-wordmark.js +23 -0
  220. package/node_modules/@maka/core/dist/mcp.js +4 -1
  221. package/node_modules/@maka/core/dist/model-call-attempt.js +134 -82
  222. package/node_modules/@maka/core/dist/model-call-usage-projection.js +0 -196
  223. package/node_modules/@maka/core/dist/model-catalog.js +194 -337
  224. package/node_modules/@maka/core/dist/model-facts.js +204 -0
  225. package/node_modules/@maka/core/dist/model-failure.js +40 -0
  226. package/node_modules/@maka/core/dist/model-metadata.generated.js +2069 -1878
  227. package/node_modules/@maka/core/dist/model-metadata.js +369 -214
  228. package/node_modules/@maka/core/dist/model-projection-transition.js +145 -0
  229. package/node_modules/@maka/core/dist/model-thinking.js +133 -34
  230. package/node_modules/@maka/core/dist/model-web-search.js +11 -12
  231. package/node_modules/@maka/core/dist/models-dev-projection.js +320 -0
  232. package/node_modules/@maka/core/dist/models-dev-refresh.js +55 -0
  233. package/node_modules/@maka/core/dist/onboarding.js +3 -5
  234. package/node_modules/@maka/core/dist/permission-profile.js +17 -0
  235. package/node_modules/@maka/core/dist/permission.js +0 -1
  236. package/node_modules/@maka/core/dist/provider-auth.js +49 -291
  237. package/node_modules/@maka/core/dist/provider-registry.js +240 -492
  238. package/node_modules/@maka/core/dist/recall.js +1143 -0
  239. package/node_modules/@maka/core/dist/record-schema.js +22 -2
  240. package/node_modules/@maka/core/dist/redaction.js +86 -40
  241. package/node_modules/@maka/core/dist/refresh-read-coordinator.js +62 -0
  242. package/node_modules/@maka/core/dist/relative-time.js +15 -6
  243. package/node_modules/@maka/core/dist/run-composition.js +77 -2
  244. package/node_modules/@maka/core/dist/runtime-boundary.js +182 -66
  245. package/node_modules/@maka/core/dist/runtime-event-store.js +31 -0
  246. package/node_modules/@maka/core/dist/runtime-event.js +270 -12
  247. package/node_modules/@maka/core/dist/runtime-handoff.js +106 -0
  248. package/node_modules/@maka/core/dist/runtime-invocation.js +228 -0
  249. package/node_modules/@maka/core/dist/runtime-logical-execution.js +137 -0
  250. package/node_modules/@maka/core/dist/runtime-policy/connection-catalog-codec.js +247 -74
  251. package/node_modules/@maka/core/dist/runtime-policy/credential-vault-codec.js +15 -1
  252. package/node_modules/@maka/core/dist/runtime-policy/model-catalog-entry-codec.js +106 -0
  253. package/node_modules/@maka/core/dist/runtime-policy/policy-codec.js +139 -4
  254. package/node_modules/@maka/core/dist/runtime-policy.js +7 -3
  255. package/node_modules/@maka/core/dist/scheduled-task.js +12 -2
  256. package/node_modules/@maka/core/dist/session-name.js +2 -3
  257. package/node_modules/@maka/core/dist/session-reference.js +149 -0
  258. package/node_modules/@maka/core/dist/session-send-projection.js +8 -4
  259. package/node_modules/@maka/core/dist/session-start-mode.js +39 -0
  260. package/node_modules/@maka/core/dist/session-todo.js +101 -0
  261. package/node_modules/@maka/core/dist/session-trace.js +5 -1
  262. package/node_modules/@maka/core/dist/session.js +356 -57
  263. package/node_modules/@maka/core/dist/settings.js +50 -12
  264. package/node_modules/@maka/core/dist/shell-run-result.js +1 -0
  265. package/node_modules/@maka/core/dist/shell-run.js +15 -0
  266. package/node_modules/@maka/core/dist/skill-locations.js +29 -0
  267. package/node_modules/@maka/core/dist/slash-command-catalog.js +4 -0
  268. package/node_modules/@maka/core/dist/task-submission-readiness.js +2 -1
  269. package/node_modules/@maka/core/dist/text-sanitize.js +29 -4
  270. package/node_modules/@maka/core/dist/tool-activity-args.js +4 -0
  271. package/node_modules/@maka/core/dist/tool-ledger-scanner.js +365 -104
  272. package/node_modules/@maka/core/dist/tool-quiet-preview.js +53 -26
  273. package/node_modules/@maka/core/dist/tool-result-archive-evidence.js +22 -0
  274. package/node_modules/@maka/core/dist/tool-result-record-schema.js +12 -2
  275. package/node_modules/@maka/core/dist/transcript-search.js +46 -0
  276. package/node_modules/@maka/core/dist/turn-origin.js +14 -0
  277. package/node_modules/@maka/core/dist/ui-locale.js +23 -10
  278. package/node_modules/@maka/core/dist/unified-diff.js +33 -26
  279. package/node_modules/@maka/core/dist/usage-ledger-merge.js +10 -9
  280. package/node_modules/@maka/core/dist/usage-record-schema.js +38 -31
  281. package/node_modules/@maka/core/dist/usage-stats/types.js +3 -0
  282. package/node_modules/@maka/core/dist/work-board.js +94 -1
  283. package/node_modules/@maka/core/dist/workhub-action-result.js +68 -0
  284. package/node_modules/@maka/core/dist/workhub-routing.js +126 -0
  285. package/node_modules/@maka/core/node_modules/@formatjs/icu-messageformat-parser/index.js +2178 -0
  286. package/node_modules/@maka/core/node_modules/@formatjs/icu-messageformat-parser/manipulator.js +209 -0
  287. package/node_modules/@maka/core/node_modules/@formatjs/icu-messageformat-parser/no-parser.js +162 -0
  288. package/node_modules/@maka/core/node_modules/@formatjs/icu-messageformat-parser/package.json +21 -0
  289. package/node_modules/@maka/core/node_modules/@formatjs/icu-messageformat-parser/printer.js +224 -0
  290. package/node_modules/@maka/core/node_modules/intl-messageformat/intl-messageformat.iife.js +2810 -0
  291. package/node_modules/@maka/core/node_modules/intl-messageformat/package.json +40 -0
  292. package/node_modules/@maka/core/package.json +32 -8
  293. package/node_modules/@maka/eval/dist/experiment-directory.js +4 -13
  294. package/node_modules/@maka/eval/dist/fleet-simulation.js +270 -0
  295. package/node_modules/@maka/eval/dist/fleet-store.js +243 -0
  296. package/node_modules/@maka/eval/dist/fleet-worker.js +125 -0
  297. package/node_modules/@maka/eval/dist/fleet.js +329 -0
  298. package/node_modules/@maka/eval/dist/harbor-external-subject.js +2 -1
  299. package/node_modules/@maka/eval/dist/harbor-maka-subject.js +16 -3
  300. package/node_modules/@maka/eval/dist/harness-executor.js +3 -2
  301. package/node_modules/@maka/eval/dist/index.js +3 -0
  302. package/node_modules/@maka/eval/dist/install-preflight.js +39 -10
  303. package/node_modules/@maka/eval/dist/maka-artifacts.js +28 -14
  304. package/node_modules/@maka/eval/dist/maka-subject.js +35 -3
  305. package/node_modules/@maka/eval/dist/metering-checkpoint.js +4 -4
  306. package/node_modules/@maka/eval/dist/process-termination.js +83 -0
  307. package/node_modules/@maka/eval/dist/toolchain-verification.js +1 -1
  308. package/node_modules/@maka/eval/harbor/egress-proxy/entrypoint.sh +2 -1
  309. package/node_modules/@maka/eval/harbor/relay_agent.py +43 -4
  310. package/node_modules/@maka/eval/node_modules/undici/docs/docs/api/Client.md +4 -0
  311. package/node_modules/@maka/eval/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +3 -2
  312. package/node_modules/@maka/eval/node_modules/undici/docs/docs/api/EventSource.md +4 -0
  313. package/node_modules/@maka/eval/node_modules/undici/docs/docs/api/Interceptors.md +7 -3
  314. package/node_modules/@maka/eval/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +7 -1
  315. package/node_modules/@maka/eval/node_modules/undici/lib/cache/memory-cache-store.js +2 -2
  316. package/node_modules/@maka/eval/node_modules/undici/lib/core/symbols.js +2 -0
  317. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/agent.js +7 -2
  318. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/balanced-pool.js +7 -4
  319. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/client-h1.js +12 -4
  320. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/client-h2.js +43 -3
  321. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/client.js +3 -2
  322. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/dispatcher-base.js +13 -1
  323. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/dispatcher.js +15 -1
  324. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +3 -0
  325. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +10 -3
  326. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/proxy-agent.js +18 -1
  327. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/retry-agent.js +3 -0
  328. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/round-robin-pool.js +1 -1
  329. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +91 -21
  330. package/node_modules/@maka/eval/node_modules/undici/lib/handler/cache-handler.js +29 -5
  331. package/node_modules/@maka/eval/node_modules/undici/lib/handler/decorator-handler.js +7 -1
  332. package/node_modules/@maka/eval/node_modules/undici/lib/handler/deduplication-handler.js +12 -6
  333. package/node_modules/@maka/eval/node_modules/undici/lib/handler/redirect-handler.js +21 -4
  334. package/node_modules/@maka/eval/node_modules/undici/lib/handler/retry-handler.js +148 -30
  335. package/node_modules/@maka/eval/node_modules/undici/lib/interceptor/cache.js +65 -12
  336. package/node_modules/@maka/eval/node_modules/undici/lib/interceptor/decompress.js +115 -13
  337. package/node_modules/@maka/eval/node_modules/undici/lib/interceptor/deduplicate.js +5 -4
  338. package/node_modules/@maka/eval/node_modules/undici/lib/interceptor/dns.js +7 -0
  339. package/node_modules/@maka/eval/node_modules/undici/lib/interceptor/dump.js +10 -23
  340. package/node_modules/@maka/eval/node_modules/undici/lib/mock/mock-agent.js +13 -1
  341. package/node_modules/@maka/eval/node_modules/undici/lib/mock/mock-utils.js +11 -10
  342. package/node_modules/@maka/eval/node_modules/undici/lib/util/cache.js +45 -3
  343. package/node_modules/@maka/eval/node_modules/undici/lib/web/cookies/parse.js +150 -147
  344. package/node_modules/@maka/eval/node_modules/undici/lib/web/eventsource/eventsource-stream.js +28 -1
  345. package/node_modules/@maka/eval/node_modules/undici/lib/web/eventsource/eventsource.js +13 -3
  346. package/node_modules/@maka/eval/node_modules/undici/lib/web/fetch/index.js +6 -0
  347. package/node_modules/@maka/eval/node_modules/undici/lib/web/fetch/request.js +2 -3
  348. package/node_modules/@maka/eval/node_modules/undici/lib/web/fetch/util.js +6 -1
  349. package/node_modules/@maka/eval/node_modules/undici/lib/web/webidl/index.js +3 -3
  350. package/node_modules/@maka/eval/node_modules/undici/lib/web/websocket/connection.js +1 -1
  351. package/node_modules/@maka/eval/node_modules/undici/lib/web/websocket/permessage-deflate.js +5 -0
  352. package/node_modules/@maka/eval/node_modules/undici/lib/web/websocket/stream/websocketstream.js +8 -10
  353. package/node_modules/@maka/eval/node_modules/undici/package.json +3 -3
  354. package/node_modules/@maka/eval/package.json +1 -1
  355. package/node_modules/@maka/mcp/dist/credential-coordinator.js +6 -1
  356. package/node_modules/@maka/mcp/dist/form-elicitation.js +213 -0
  357. package/node_modules/@maka/mcp/dist/index.js +517 -72
  358. package/node_modules/@maka/mcp/dist/oauth.js +58 -8
  359. package/node_modules/@maka/mcp/dist/sep-2243.js +3 -3
  360. package/node_modules/@maka/mcp/dist/tool-progress.js +45 -0
  361. package/node_modules/@maka/runtime/dist/agent-graph-timeline.js +12 -11
  362. package/node_modules/@maka/runtime/dist/agent-run-inspect.js +38 -86
  363. package/node_modules/@maka/runtime/dist/agent-run-recovery.js +36 -46
  364. package/node_modules/@maka/runtime/dist/agent-run.js +603 -470
  365. package/node_modules/@maka/runtime/dist/agent-swarm-status-tool.js +0 -1
  366. package/node_modules/@maka/runtime/dist/ai-sdk-backend.js +116 -3753
  367. package/node_modules/@maka/runtime/dist/ai-sdk-compaction-contract.js +6 -1
  368. package/node_modules/@maka/runtime/dist/ai-sdk-compaction.js +500 -546
  369. package/node_modules/@maka/runtime/dist/ai-sdk-message-projection.js +593 -0
  370. package/node_modules/@maka/runtime/dist/ai-sdk-tool-repair.js +115 -0
  371. package/node_modules/@maka/runtime/dist/ai-sdk-turn.js +2558 -0
  372. package/node_modules/@maka/runtime/dist/apply-patch-profile.js +64 -14
  373. package/node_modules/@maka/runtime/dist/ask-user-question-tool.js +0 -1
  374. package/node_modules/@maka/runtime/dist/background-task-health-tool.js +104 -0
  375. package/node_modules/@maka/runtime/dist/bash-model-output.js +7 -1
  376. package/node_modules/@maka/runtime/dist/bash-tail-buffer.js +13 -52
  377. package/node_modules/@maka/runtime/dist/bots/base-adapter.js +17 -0
  378. package/node_modules/@maka/runtime/dist/bots/bot-test.js +40 -23
  379. package/node_modules/@maka/runtime/dist/bots/dingtalk-bridge.js +93 -24
  380. package/node_modules/@maka/runtime/dist/bots/discord-bridge.js +4 -4
  381. package/node_modules/@maka/runtime/dist/bots/feishu-bridge.js +28 -25
  382. package/node_modules/@maka/runtime/dist/bots/qq-bridge.js +6 -4
  383. package/node_modules/@maka/runtime/dist/bots/slack-bridge.js +8 -7
  384. package/node_modules/@maka/runtime/dist/bots/telegram-bridge.js +7 -31
  385. package/node_modules/@maka/runtime/dist/bots/wechat-bridge.js +104 -48
  386. package/node_modules/@maka/runtime/dist/bots/wecom-bridge.js +45 -42
  387. package/node_modules/@maka/runtime/dist/bots/ws-bridge-base.js +2 -3
  388. package/node_modules/@maka/runtime/dist/builtin-tools.js +133 -132
  389. package/node_modules/@maka/runtime/dist/bundled-skill-catalog.generated.js +1 -1
  390. package/node_modules/@maka/runtime/dist/child-fd-input.js +3 -2
  391. package/node_modules/@maka/runtime/dist/code-mode.js +7 -4
  392. package/node_modules/@maka/runtime/dist/codex-v4a-patch.js +18 -0
  393. package/node_modules/@maka/runtime/dist/computer-use-codec.js +1 -141
  394. package/node_modules/@maka/runtime/dist/computer-use-tools.js +27 -106
  395. package/node_modules/@maka/runtime/dist/context-budget-helpers.js +4 -57
  396. package/node_modules/@maka/runtime/dist/context-budget-policy.js +26 -65
  397. package/node_modules/@maka/runtime/dist/context-budget.js +44 -103
  398. package/node_modules/@maka/runtime/dist/context-diagnostics.js +72 -33
  399. package/node_modules/@maka/runtime/dist/continuation-replay.js +25 -12
  400. package/node_modules/@maka/runtime/dist/conversation-copy.js +717 -188
  401. package/node_modules/@maka/runtime/dist/cua-frame-state.js +1 -69
  402. package/node_modules/@maka/runtime/dist/durable-tool-result-projection.js +436 -0
  403. package/node_modules/@maka/runtime/dist/edit-replace.js +2 -2
  404. package/node_modules/@maka/runtime/dist/execution-inspect.js +56 -41
  405. package/node_modules/@maka/runtime/dist/filesystem-executor.js +10 -6
  406. package/node_modules/@maka/runtime/dist/filesystem-worker/client.js +77 -19
  407. package/node_modules/@maka/runtime/dist/filesystem-worker/launch-spec.js +66 -55
  408. package/node_modules/@maka/runtime/dist/filesystem-worker/operations.js +34 -98
  409. package/node_modules/@maka/runtime/dist/filesystem-worker/protocol.js +25 -10
  410. package/node_modules/@maka/runtime/dist/filesystem-worker/worker-entry.js +2 -0
  411. package/node_modules/@maka/runtime/dist/github-copilot-oauth-enrollment.js +267 -0
  412. package/node_modules/@maka/runtime/dist/glob-search.js +74 -0
  413. package/node_modules/@maka/runtime/dist/goal-continuation.js +119 -13
  414. package/node_modules/@maka/runtime/dist/goal-evaluator.js +10 -4
  415. package/node_modules/@maka/runtime/dist/goal-state.js +7 -0
  416. package/node_modules/@maka/runtime/dist/grep-search.js +155 -0
  417. package/node_modules/@maka/runtime/dist/history-compact-checkpoint-coordinator.js +16 -6
  418. package/node_modules/@maka/runtime/dist/history-compact-checkpoint.js +79 -29
  419. package/node_modules/@maka/runtime/dist/history-compact-error.js +10 -2
  420. package/node_modules/@maka/runtime/dist/history-compact-input-fit.js +7 -1
  421. package/node_modules/@maka/runtime/dist/history-compact-ledger.js +18 -18
  422. package/node_modules/@maka/runtime/dist/history-compact-summarizer.js +132 -110
  423. package/node_modules/@maka/runtime/dist/history-compact-summary-validation.js +14 -30
  424. package/node_modules/@maka/runtime/dist/history-compaction.js +103 -89
  425. package/node_modules/@maka/runtime/dist/image-file.js +5 -20
  426. package/node_modules/@maka/runtime/dist/interaction-authority.js +85 -0
  427. package/node_modules/@maka/runtime/dist/latest-context-snapshot.js +112 -23
  428. package/node_modules/@maka/runtime/dist/ledger-tool-result-archive-reader.js +164 -0
  429. package/node_modules/@maka/runtime/dist/local-web-fetch.js +26 -55
  430. package/node_modules/@maka/runtime/dist/mcp-tools.js +102 -37
  431. package/node_modules/@maka/runtime/dist/memory-extraction-evidence.js +7 -1
  432. package/node_modules/@maka/runtime/dist/memory-extraction.js +30 -19
  433. package/node_modules/@maka/runtime/dist/message-authority.js +9 -0
  434. package/node_modules/@maka/runtime/dist/model-adapter.js +266 -188
  435. package/node_modules/@maka/runtime/dist/model-factory.js +101 -135
  436. package/node_modules/@maka/runtime/dist/model-fetcher.js +100 -89
  437. package/node_modules/@maka/runtime/dist/model-history.js +335 -169
  438. package/node_modules/@maka/runtime/dist/model-projection-transition-ledger.js +207 -0
  439. package/node_modules/@maka/runtime/dist/model-runtime.js +89 -113
  440. package/node_modules/@maka/runtime/dist/native-web-search-tool.js +2 -1
  441. package/node_modules/@maka/runtime/dist/oauth-provider-contracts.js +28 -1
  442. package/node_modules/@maka/runtime/dist/openai-apply-patch.js +5 -0
  443. package/node_modules/@maka/runtime/dist/openai-codex-history-compactor.js +28 -74
  444. package/node_modules/@maka/runtime/dist/openai-responses-websocket.js +2 -5
  445. package/node_modules/@maka/runtime/dist/opencode-session-header.js +30 -0
  446. package/node_modules/@maka/runtime/dist/pipe-tail-collector.js +6 -9
  447. package/node_modules/@maka/runtime/dist/plan-mode.js +0 -65
  448. package/node_modules/@maka/runtime/dist/plan-tools.js +0 -3
  449. package/node_modules/@maka/runtime/dist/plugin-agent-service.js +131 -0
  450. package/node_modules/@maka/runtime/dist/plugin-approval-service.js +33 -0
  451. package/node_modules/@maka/runtime/dist/plugin-attachment-service.js +53 -0
  452. package/node_modules/@maka/runtime/dist/plugin-client-bridge-service.js +308 -0
  453. package/node_modules/@maka/runtime/dist/plugin-command-service.js +100 -0
  454. package/node_modules/@maka/runtime/dist/plugin-composition-loader.js +188 -25
  455. package/node_modules/@maka/runtime/dist/plugin-data-services.js +332 -0
  456. package/node_modules/@maka/runtime/dist/plugin-executor-backend.js +430 -0
  457. package/node_modules/@maka/runtime/dist/plugin-executor-service.js +540 -0
  458. package/node_modules/@maka/runtime/dist/plugin-fs-service.js +62 -0
  459. package/node_modules/@maka/runtime/dist/plugin-goal-service.js +61 -0
  460. package/node_modules/@maka/runtime/dist/plugin-invocation-signal.js +24 -0
  461. package/node_modules/@maka/runtime/dist/plugin-llm-service.js +85 -0
  462. package/node_modules/@maka/runtime/dist/plugin-lsp-service.js +94 -0
  463. package/node_modules/@maka/runtime/dist/plugin-runtime.js +239 -10
  464. package/node_modules/@maka/runtime/dist/plugin-scope-registry.js +91 -0
  465. package/node_modules/@maka/runtime/dist/plugin-session-query-service.js +71 -0
  466. package/node_modules/@maka/runtime/dist/plugin-shell-env-service.js +87 -0
  467. package/node_modules/@maka/runtime/dist/plugin-shell-service.js +74 -0
  468. package/node_modules/@maka/runtime/dist/plugin-skill-service.js +93 -0
  469. package/node_modules/@maka/runtime/dist/plugin-system-prompt-service.js +346 -0
  470. package/node_modules/@maka/runtime/dist/plugin-tool-service.js +171 -0
  471. package/node_modules/@maka/runtime/dist/plugin-user-question-service.js +43 -0
  472. package/node_modules/@maka/runtime/dist/plugin-web-service.js +69 -0
  473. package/node_modules/@maka/runtime/dist/prior-run-context.js +24 -94
  474. package/node_modules/@maka/runtime/dist/process-tree-terminator.js +2 -2
  475. package/node_modules/@maka/runtime/dist/prompt-composition.js +36 -31
  476. package/node_modules/@maka/runtime/dist/provider-error-classification.js +114 -155
  477. package/node_modules/@maka/runtime/dist/provider-image-overflow-recovery.js +12 -31
  478. package/node_modules/@maka/runtime/dist/provider-request-telemetry.js +207 -204
  479. package/node_modules/@maka/runtime/dist/pty-screen-collector.js +32 -6
  480. package/node_modules/@maka/runtime/dist/quiescent-session-snapshot.js +78 -0
  481. package/node_modules/@maka/runtime/dist/read-page.js +234 -0
  482. package/node_modules/@maka/runtime/dist/recall-candidates.js +53 -0
  483. package/node_modules/@maka/runtime/dist/recall-tools.js +282 -0
  484. package/node_modules/@maka/runtime/dist/recovery-resolver.js +56 -25
  485. package/node_modules/@maka/runtime/dist/request-customization-fetch.js +14 -7
  486. package/node_modules/@maka/runtime/dist/request-projection.js +2 -15
  487. package/node_modules/@maka/runtime/dist/request-shape.js +187 -365
  488. package/node_modules/@maka/runtime/dist/responses-reasoning-state.js +19 -7
  489. package/node_modules/@maka/runtime/dist/ripgrep-executable.js +62 -0
  490. package/node_modules/@maka/runtime/dist/ripgrep-guidance.js +81 -0
  491. package/node_modules/@maka/runtime/dist/run-handoff-gate.js +97 -0
  492. package/node_modules/@maka/runtime/dist/run-trace.js +2 -34
  493. package/node_modules/@maka/runtime/dist/runtime-continuation-admission.js +1 -1
  494. package/node_modules/@maka/runtime/dist/runtime-event-backfill.js +114 -66
  495. package/node_modules/@maka/runtime/dist/runtime-event-read-model.js +420 -234
  496. package/node_modules/@maka/runtime/dist/runtime-invocation-route.js +49 -0
  497. package/node_modules/@maka/runtime/dist/runtime-kernel.js +575 -357
  498. package/node_modules/@maka/runtime/dist/runtime-ledger-repair.js +235 -450
  499. package/node_modules/@maka/runtime/dist/runtime-read-model.js +94 -200
  500. package/node_modules/@maka/runtime/dist/runtime-resume.js +162 -126
  501. package/node_modules/@maka/runtime/dist/sandbox/index.js +0 -1
  502. package/node_modules/@maka/runtime/dist/sandbox/linux-profile-path.js +7 -1
  503. package/node_modules/@maka/runtime/dist/sandbox/linux-sandbox.js +20 -17
  504. package/node_modules/@maka/runtime/dist/sandbox/macos-seatbelt.js +0 -12
  505. package/node_modules/@maka/runtime/dist/sandbox/sandbox-manager.js +0 -35
  506. package/node_modules/@maka/runtime/dist/sandbox/windows-sandbox.js +0 -12
  507. package/node_modules/@maka/runtime/dist/scheduled-task-tools.js +42 -8
  508. package/node_modules/@maka/runtime/dist/session-event-runtime-mapper.js +67 -20
  509. package/node_modules/@maka/runtime/dist/session-export.js +178 -0
  510. package/node_modules/@maka/runtime/dist/session-import.js +100 -0
  511. package/node_modules/@maka/runtime/dist/session-manager.js +943 -1023
  512. package/node_modules/@maka/runtime/dist/session-projection-helpers.js +16 -28
  513. package/node_modules/@maka/runtime/dist/session-recap.js +90 -17
  514. package/node_modules/@maka/runtime/dist/session-todo-tools.js +67 -0
  515. package/node_modules/@maka/runtime/dist/session-trace-projection.js +25 -30
  516. package/node_modules/@maka/runtime/dist/shell-detect.js +3 -7
  517. package/node_modules/@maka/runtime/dist/shell-exec.js +7 -25
  518. package/node_modules/@maka/runtime/dist/shell-run-contract.js +0 -1
  519. package/node_modules/@maka/runtime/dist/shell-run-manager.js +75 -70
  520. package/node_modules/@maka/runtime/dist/shell-run-tool-result.js +19 -9
  521. package/node_modules/@maka/runtime/dist/shell-tools.js +84 -14
  522. package/node_modules/@maka/runtime/dist/skills-discovery.js +17 -23
  523. package/node_modules/@maka/runtime/dist/stream-graph-coordinator.js +93 -17
  524. package/node_modules/@maka/runtime/dist/stream-graph-handoff.js +6 -1
  525. package/node_modules/@maka/runtime/dist/stream-graph-projection.js +18 -15
  526. package/node_modules/@maka/runtime/dist/stream-graph-read-model.js +5 -0
  527. package/node_modules/@maka/runtime/dist/stream-graph-schedule-reconcile.js +1 -0
  528. package/node_modules/@maka/runtime/dist/stream-graph-supervisor-tools.js +26 -12
  529. package/node_modules/@maka/runtime/dist/stream-usage-fallback-fetch.js +74 -0
  530. package/node_modules/@maka/runtime/dist/subagent-tools.js +77 -90
  531. package/node_modules/@maka/runtime/dist/subscription-credentials.js +51 -4
  532. package/node_modules/@maka/runtime/dist/subscription-model-fetch.js +51 -11
  533. package/node_modules/@maka/runtime/dist/system-prompt/main-session-prompt.js +21 -2
  534. package/node_modules/@maka/runtime/dist/system-prompt/workspace-instructions.js +11 -6
  535. package/node_modules/@maka/runtime/dist/tavily-search.js +8 -2
  536. package/node_modules/@maka/runtime/dist/telemetry/model-pricing.generated.js +299 -215
  537. package/node_modules/@maka/runtime/dist/terminal-run-commit.js +37 -172
  538. package/node_modules/@maka/runtime/dist/test-connection.js +34 -84
  539. package/node_modules/@maka/runtime/dist/text-line-window.js +49 -0
  540. package/node_modules/@maka/runtime/dist/tool-activation-identity.js +41 -0
  541. package/node_modules/@maka/runtime/dist/tool-availability.js +89 -8
  542. package/node_modules/@maka/runtime/dist/tool-output.js +36 -13
  543. package/node_modules/@maka/runtime/dist/tool-result-archive-capability.js +24 -36
  544. package/node_modules/@maka/runtime/dist/tool-result-archive-encoding.js +38 -0
  545. package/node_modules/@maka/runtime/dist/tool-result-archive-resource.js +93 -245
  546. package/node_modules/@maka/runtime/dist/tool-result-archive-transition.js +186 -0
  547. package/node_modules/@maka/runtime/dist/tool-result-archive.js +50 -173
  548. package/node_modules/@maka/runtime/dist/tool-runtime.js +410 -609
  549. package/node_modules/@maka/runtime/dist/unified-diff.js +40 -10
  550. package/node_modules/@maka/runtime/dist/web-fetch-tool.js +4 -2
  551. package/node_modules/@maka/runtime/dist/workers/filesystem-worker.js +13497 -5003
  552. package/node_modules/@maka/runtime/dist/workspace-executor.js +22 -30
  553. package/node_modules/@maka/runtime/node_modules/@ai-sdk/code-mode/LICENSE +13 -0
  554. package/node_modules/@maka/runtime/node_modules/@ai-sdk/code-mode/dist/run-code-mode.js +538 -0
  555. package/node_modules/@maka/runtime/node_modules/@ai-sdk/code-mode/package.json +78 -0
  556. package/node_modules/@maka/runtime/node_modules/@ai-sdk/gateway/CHANGELOG.md +3269 -0
  557. package/node_modules/@maka/runtime/node_modules/@ai-sdk/gateway/LICENSE +13 -0
  558. package/node_modules/@maka/runtime/node_modules/@ai-sdk/gateway/dist/index.js +3835 -0
  559. package/node_modules/@maka/runtime/node_modules/@ai-sdk/gateway/docs/00-ai-gateway.mdx +1610 -0
  560. package/node_modules/@maka/runtime/node_modules/@ai-sdk/gateway/package.json +80 -0
  561. package/node_modules/@maka/runtime/node_modules/@ai-sdk/provider/CHANGELOG.md +1262 -0
  562. package/node_modules/@maka/runtime/node_modules/@ai-sdk/provider/LICENSE +13 -0
  563. package/node_modules/@maka/runtime/node_modules/@ai-sdk/provider/README.md +1 -0
  564. package/node_modules/@maka/runtime/node_modules/@ai-sdk/provider/dist/index.js +426 -0
  565. package/node_modules/@maka/runtime/node_modules/@ai-sdk/provider/package.json +63 -0
  566. package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/README.md +44 -8
  567. package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/dist/package.json +4 -4
  568. package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/dist/src/SlackWebSocket.js +39 -3
  569. package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/dist/src/SocketModeClient.js +4 -0
  570. package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/package.json +4 -4
  571. package/node_modules/@maka/runtime/node_modules/ai/CHANGELOG.md +10271 -0
  572. package/node_modules/@maka/runtime/node_modules/ai/LICENSE +13 -0
  573. package/node_modules/@maka/runtime/node_modules/ai/dist/index.js +20146 -0
  574. package/node_modules/@maka/runtime/node_modules/ai/dist/internal/index.js +3690 -0
  575. package/node_modules/@maka/runtime/node_modules/ai/docs/02-foundations/02-providers-and-models.mdx +185 -0
  576. package/node_modules/@maka/runtime/node_modules/ai/docs/03-agents/04-loop-control.mdx +517 -0
  577. package/node_modules/@maka/runtime/node_modules/ai/docs/03-agents/06-policy-tool-approvals.mdx +413 -0
  578. package/node_modules/@maka/runtime/node_modules/ai/docs/03-agents/06-tool-approvals.mdx +338 -0
  579. package/node_modules/@maka/runtime/node_modules/ai/docs/03-agents/07-workflow-agent.mdx +815 -0
  580. package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/10-generating-structured-data.mdx +525 -0
  581. package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/15-tools-and-tool-calling.mdx +1512 -0
  582. package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/16-mcp-tools.mdx +680 -0
  583. package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/35-image-generation.mdx +371 -0
  584. package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/36-transcription.mdx +333 -0
  585. package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/37-speech.mdx +163 -0
  586. package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/39-file-uploads.mdx +180 -0
  587. package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/42-batch.mdx +372 -0
  588. package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/50-error-handling.mdx +241 -0
  589. package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/60-telemetry.mdx +855 -0
  590. package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/index.mdx +137 -0
  591. package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-harnesses/02-harness-agent.mdx +683 -0
  592. package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-harnesses/04-skills.mdx +69 -0
  593. package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-harnesses/05-harness-adapters.mdx +47 -0
  594. package/node_modules/@maka/runtime/node_modules/ai/docs/04-ai-sdk-ui/03-chatbot-tool-usage.mdx +826 -0
  595. package/node_modules/@maka/runtime/node_modules/ai/docs/04-ai-sdk-ui/20-streaming-data.mdx +406 -0
  596. package/node_modules/@maka/runtime/node_modules/ai/docs/04-ai-sdk-ui/21-transport.mdx +216 -0
  597. package/node_modules/@maka/runtime/node_modules/ai/docs/04-ai-sdk-ui/50-stream-protocol.mdx +582 -0
  598. package/node_modules/@maka/runtime/node_modules/ai/docs/06-advanced/04-caching.mdx +182 -0
  599. package/node_modules/@maka/runtime/node_modules/ai/docs/06-advanced/11-secure-url-fetching.mdx +117 -0
  600. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/01-generate-text.mdx +3267 -0
  601. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/02-stream-text.mdx +4303 -0
  602. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/05-embed.mdx +330 -0
  603. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/06-embed-many.mdx +332 -0
  604. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/06-rerank.mdx +331 -0
  605. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/10-generate-image.mdx +253 -0
  606. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/14-upload-file.mdx +125 -0
  607. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/16-tool-loop-agent.mdx +1102 -0
  608. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/20-start-batch.mdx +154 -0
  609. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/21-get-batch-status.mdx +133 -0
  610. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/22-get-batch-results.mdx +109 -0
  611. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/23-cancel-batch.mdx +96 -0
  612. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/24-list-batches.mdx +121 -0
  613. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/28-output.mdx +368 -0
  614. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/31-ui-message.mdx +331 -0
  615. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/80-smooth-stream.mdx +147 -0
  616. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/index.mdx +250 -0
  617. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/02-ai-sdk-ui/01-use-chat.mdx +493 -0
  618. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/02-ai-sdk-ui/31-convert-to-model-messages.mdx +256 -0
  619. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/02-ai-sdk-ui/40-create-ui-message-stream.mdx +199 -0
  620. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/02-ai-sdk-ui/41-create-ui-message-stream-response.mdx +125 -0
  621. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/04-ai-sdk-workflow/01-workflow-agent.mdx +1035 -0
  622. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/04-ai-sdk-workflow/02-workflow-chat-transport.mdx +361 -0
  623. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/04-ai-sdk-workflow/03-generate-video.mdx +157 -0
  624. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/04-ai-sdk-workflow/index.mdx +32 -0
  625. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-invalid-argument-error.mdx +31 -0
  626. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-no-image-generated-error.mdx +43 -0
  627. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-stream-provider-error.mdx +52 -0
  628. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-tool-choice-violation-error.mdx +38 -0
  629. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/05-ai-sdk-errors/index.mdx +43 -0
  630. package/node_modules/@maka/runtime/node_modules/ai/package.json +127 -0
  631. package/node_modules/@maka/runtime/node_modules/undici/docs/docs/api/Client.md +4 -0
  632. package/node_modules/@maka/runtime/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +3 -2
  633. package/node_modules/@maka/runtime/node_modules/undici/docs/docs/api/EventSource.md +4 -0
  634. package/node_modules/@maka/runtime/node_modules/undici/docs/docs/api/Interceptors.md +7 -3
  635. package/node_modules/@maka/runtime/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +7 -1
  636. package/node_modules/@maka/runtime/node_modules/undici/lib/cache/memory-cache-store.js +2 -2
  637. package/node_modules/@maka/runtime/node_modules/undici/lib/core/symbols.js +2 -0
  638. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/agent.js +7 -2
  639. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/balanced-pool.js +7 -4
  640. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/client-h1.js +12 -4
  641. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/client-h2.js +43 -3
  642. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/client.js +3 -2
  643. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/dispatcher-base.js +13 -1
  644. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/dispatcher.js +15 -1
  645. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +3 -0
  646. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +10 -3
  647. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/proxy-agent.js +18 -1
  648. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/retry-agent.js +3 -0
  649. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/round-robin-pool.js +1 -1
  650. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +91 -21
  651. package/node_modules/@maka/runtime/node_modules/undici/lib/handler/cache-handler.js +29 -5
  652. package/node_modules/@maka/runtime/node_modules/undici/lib/handler/decorator-handler.js +7 -1
  653. package/node_modules/@maka/runtime/node_modules/undici/lib/handler/deduplication-handler.js +12 -6
  654. package/node_modules/@maka/runtime/node_modules/undici/lib/handler/redirect-handler.js +21 -4
  655. package/node_modules/@maka/runtime/node_modules/undici/lib/handler/retry-handler.js +148 -30
  656. package/node_modules/@maka/runtime/node_modules/undici/lib/interceptor/cache.js +65 -12
  657. package/node_modules/@maka/runtime/node_modules/undici/lib/interceptor/decompress.js +115 -13
  658. package/node_modules/@maka/runtime/node_modules/undici/lib/interceptor/deduplicate.js +5 -4
  659. package/node_modules/@maka/runtime/node_modules/undici/lib/interceptor/dns.js +7 -0
  660. package/node_modules/@maka/runtime/node_modules/undici/lib/interceptor/dump.js +10 -23
  661. package/node_modules/@maka/runtime/node_modules/undici/lib/mock/mock-agent.js +13 -1
  662. package/node_modules/@maka/runtime/node_modules/undici/lib/mock/mock-utils.js +11 -10
  663. package/node_modules/@maka/runtime/node_modules/undici/lib/util/cache.js +45 -3
  664. package/node_modules/@maka/runtime/node_modules/undici/lib/web/cookies/parse.js +150 -147
  665. package/node_modules/@maka/runtime/node_modules/undici/lib/web/eventsource/eventsource-stream.js +28 -1
  666. package/node_modules/@maka/runtime/node_modules/undici/lib/web/eventsource/eventsource.js +13 -3
  667. package/node_modules/@maka/runtime/node_modules/undici/lib/web/fetch/index.js +6 -0
  668. package/node_modules/@maka/runtime/node_modules/undici/lib/web/fetch/request.js +2 -3
  669. package/node_modules/@maka/runtime/node_modules/undici/lib/web/fetch/util.js +6 -1
  670. package/node_modules/@maka/runtime/node_modules/undici/lib/web/webidl/index.js +3 -3
  671. package/node_modules/@maka/runtime/node_modules/undici/lib/web/websocket/connection.js +1 -1
  672. package/node_modules/@maka/runtime/node_modules/undici/lib/web/websocket/permessage-deflate.js +5 -0
  673. package/node_modules/@maka/runtime/node_modules/undici/lib/web/websocket/stream/websocketstream.js +8 -10
  674. package/node_modules/@maka/runtime/node_modules/undici/package.json +3 -3
  675. package/node_modules/@maka/runtime/package.json +52 -21
  676. package/node_modules/@maka/runtime-host/dist/adapter/session-projector.js +106 -98
  677. package/node_modules/@maka/runtime-host/dist/candidate-entry.js +18 -7
  678. package/node_modules/@maka/runtime-host/dist/candidate-launch-owner-guard.js +13 -0
  679. package/node_modules/@maka/runtime-host/dist/client/capability-provider-service.js +2 -0
  680. package/node_modules/@maka/runtime-host/dist/client/catalog-reader.js +64 -25
  681. package/node_modules/@maka/runtime-host/dist/client/client-capability-channel.js +190 -30
  682. package/node_modules/@maka/runtime-host/dist/client/connect-or-spawn.js +60 -20
  683. package/node_modules/@maka/runtime-host/dist/client/connection.js +170 -63
  684. package/node_modules/@maka/runtime-host/dist/client/host-handoff-copy.js +245 -0
  685. package/node_modules/@maka/runtime-host/dist/client/host-handoff.js +311 -0
  686. package/node_modules/@maka/runtime-host/dist/client/host-profile.js +483 -94
  687. package/node_modules/@maka/runtime-host/dist/client/host-retirement.js +28 -5
  688. package/node_modules/@maka/runtime-host/dist/client/hosted-execution-target.js +33 -6
  689. package/node_modules/@maka/runtime-host/dist/client/hosted-execution.js +10 -28
  690. package/node_modules/@maka/runtime-host/dist/client/index.js +15 -11
  691. package/node_modules/@maka/runtime-host/dist/client/launcher.js +12 -3
  692. package/node_modules/@maka/runtime-host/dist/client/oauth-presentation.js +1 -1
  693. package/node_modules/@maka/runtime-host/dist/client/owner-connection-code.js +38 -4
  694. package/node_modules/@maka/runtime-host/dist/client/peer-client.js +389 -25
  695. package/node_modules/@maka/runtime-host/dist/client/process-identity.js +73 -0
  696. package/node_modules/@maka/runtime-host/dist/client/reconnect-lifecycle.js +80 -8
  697. package/node_modules/@maka/runtime-host/dist/client/reconnecting-connection.js +15 -4
  698. package/node_modules/@maka/runtime-host/dist/client/registered-host-termination.js +107 -0
  699. package/node_modules/@maka/runtime-host/dist/client/remote-compatibility-error.js +2 -0
  700. package/node_modules/@maka/runtime-host/dist/client/session-catalog-summary.js +6 -0
  701. package/node_modules/@maka/runtime-host/dist/client/session-subscription.js +105 -125
  702. package/node_modules/@maka/runtime-host/dist/client/ssh-operator-activation.js +48 -11
  703. package/node_modules/@maka/runtime-host/dist/client/startup-error.js +1 -1
  704. package/node_modules/@maka/runtime-host/dist/client/wait-for-ready.js +1 -1
  705. package/node_modules/@maka/runtime-host/dist/client/wsl-control.js +0 -8
  706. package/node_modules/@maka/runtime-host/dist/client/wsl-environment.js +12 -8
  707. package/node_modules/@maka/runtime-host/dist/client-capability-entity-id.js +27 -0
  708. package/node_modules/@maka/runtime-host/dist/composition-identity.js +19 -0
  709. package/node_modules/@maka/runtime-host/dist/control/endpoint.js +8 -9
  710. package/node_modules/@maka/runtime-host/dist/execution-candidate-main.js +8 -1
  711. package/node_modules/@maka/runtime-host/dist/node-error.js +22 -0
  712. package/node_modules/@maka/runtime-host/dist/operator/access-management-frame.js +10 -1
  713. package/node_modules/@maka/runtime-host/dist/operator/index.js +5 -2
  714. package/node_modules/@maka/runtime-host/dist/operator/managed-deployment.js +17 -8
  715. package/node_modules/@maka/runtime-host/dist/operator/operator-command.js +110 -0
  716. package/node_modules/@maka/runtime-host/dist/operator/peer-management-frame.js +2 -0
  717. package/node_modules/@maka/runtime-host/dist/operator/retirement-cancellation.js +20 -0
  718. package/node_modules/@maka/runtime-host/dist/operator/service-management-frame.js +5 -6
  719. package/node_modules/@maka/runtime-host/dist/operator/setup-frame.js +32 -6
  720. package/node_modules/@maka/runtime-host/dist/peer-mesh/index.js +3 -3
  721. package/node_modules/@maka/runtime-host/dist/peer-mesh/limits.js +1 -2
  722. package/node_modules/@maka/runtime-host/dist/peer-mesh/model.js +48 -60
  723. package/node_modules/@maka/runtime-host/dist/peer-mesh/node.js +1228 -472
  724. package/node_modules/@maka/runtime-host/dist/peer-mesh/owner.js +33 -70
  725. package/node_modules/@maka/runtime-host/dist/peer-mesh/store.js +141 -59
  726. package/node_modules/@maka/runtime-host/dist/peer-reachability/index.js +21 -0
  727. package/node_modules/@maka/runtime-host/dist/peer-reachability/model.js +202 -0
  728. package/node_modules/@maka/runtime-host/dist/peer-reachability/owner.js +118 -0
  729. package/node_modules/@maka/runtime-host/dist/peer-reachability/publisher.js +243 -0
  730. package/node_modules/@maka/runtime-host/dist/protocol/agent-graph.js +5 -12
  731. package/node_modules/@maka/runtime-host/dist/protocol/artifact.js +11 -20
  732. package/node_modules/@maka/runtime-host/dist/protocol/client-capability.js +273 -46
  733. package/node_modules/@maka/runtime-host/dist/protocol/codec.js +11 -0
  734. package/node_modules/@maka/runtime-host/dist/protocol/configuration.js +55 -9
  735. package/node_modules/@maka/runtime-host/dist/protocol/connection-catalog-change.js +26 -0
  736. package/node_modules/@maka/runtime-host/dist/protocol/connection-effects.js +42 -9
  737. package/node_modules/@maka/runtime-host/dist/protocol/external-agent-setup.js +149 -0
  738. package/node_modules/@maka/runtime-host/dist/protocol/external-session.js +41 -12
  739. package/node_modules/@maka/runtime-host/dist/protocol/host-resources.js +253 -0
  740. package/node_modules/@maka/runtime-host/dist/protocol/host-status.js +49 -11
  741. package/node_modules/@maka/runtime-host/dist/protocol/index.js +262 -3
  742. package/node_modules/@maka/runtime-host/dist/protocol/message.js +24 -9
  743. package/node_modules/@maka/runtime-host/dist/protocol/network-proxy.js +1 -7
  744. package/node_modules/@maka/runtime-host/dist/protocol/oauth.js +104 -8
  745. package/node_modules/@maka/runtime-host/dist/protocol/operations.js +34 -10
  746. package/node_modules/@maka/runtime-host/dist/protocol/peer-mesh.js +14 -31
  747. package/node_modules/@maka/runtime-host/dist/protocol/plan.js +1 -0
  748. package/node_modules/@maka/runtime-host/dist/protocol/plugin-platform.js +899 -0
  749. package/node_modules/@maka/runtime-host/dist/protocol/project-catalog.js +2 -2
  750. package/node_modules/@maka/runtime-host/dist/protocol/prompt-suggestions.js +61 -0
  751. package/node_modules/@maka/runtime-host/dist/protocol/recall.js +270 -0
  752. package/node_modules/@maka/runtime-host/dist/protocol/runtime-policy.js +84 -26
  753. package/node_modules/@maka/runtime-host/dist/protocol/runtime-resource.js +4 -17
  754. package/node_modules/@maka/runtime-host/dist/protocol/scheduled-task.js +19 -6
  755. package/node_modules/@maka/runtime-host/dist/protocol/session-bundle.js +100 -0
  756. package/node_modules/@maka/runtime-host/dist/protocol/session-catalog.js +106 -8
  757. package/node_modules/@maka/runtime-host/dist/protocol/session-collaboration.js +68 -4
  758. package/node_modules/@maka/runtime-host/dist/protocol/session-continuity.js +71 -34
  759. package/node_modules/@maka/runtime-host/dist/protocol/session-retirement.js +30 -3
  760. package/node_modules/@maka/runtime-host/dist/protocol/session-revision.js +11 -2
  761. package/node_modules/@maka/runtime-host/dist/protocol/session-todo.js +53 -0
  762. package/node_modules/@maka/runtime-host/dist/protocol/session-transcript.js +34 -127
  763. package/node_modules/@maka/runtime-host/dist/protocol/session-turns.js +38 -59
  764. package/node_modules/@maka/runtime-host/dist/protocol/skill-catalog.js +2 -1
  765. package/node_modules/@maka/runtime-host/dist/protocol/turn.js +25 -47
  766. package/node_modules/@maka/runtime-host/dist/protocol/usage-pricing.js +39 -3
  767. package/node_modules/@maka/runtime-host/dist/protocol/usage-screen.js +312 -0
  768. package/node_modules/@maka/runtime-host/dist/protocol/workhub-coordination.js +218 -75
  769. package/node_modules/@maka/runtime-host/dist/server/access-authority.js +78 -17
  770. package/node_modules/@maka/runtime-host/dist/server/access-credential-metadata.js +4 -2
  771. package/node_modules/@maka/runtime-host/dist/server/access-credential-store.js +137 -49
  772. package/node_modules/@maka/runtime-host/dist/server/acp/antigravity-install.js +242 -0
  773. package/node_modules/@maka/runtime-host/dist/server/acp/antigravity.js +154 -0
  774. package/node_modules/@maka/runtime-host/dist/server/acp/connection.js +116 -0
  775. package/node_modules/@maka/runtime-host/dist/server/agent-graph-coordinator.js +0 -3
  776. package/node_modules/@maka/runtime-host/dist/server/agent-graph-execution-coordinator.js +1 -2
  777. package/node_modules/@maka/runtime-host/dist/server/artifact-coordinator.js +19 -22
  778. package/node_modules/@maka/runtime-host/dist/server/bootstrap-runtime-policy.js +95 -97
  779. package/node_modules/@maka/runtime-host/dist/server/builtin-external-agent-plugins.js +188 -0
  780. package/node_modules/@maka/runtime-host/dist/server/candidate.js +15 -7
  781. package/node_modules/@maka/runtime-host/dist/server/canonical-session-projection.js +2 -1
  782. package/node_modules/@maka/runtime-host/dist/server/canonical-turn-snapshot.js +34 -24
  783. package/node_modules/@maka/runtime-host/dist/server/canonical-usage-reader.js +24 -11
  784. package/node_modules/@maka/runtime-host/dist/server/child-agent-composition.js +2 -1
  785. package/node_modules/@maka/runtime-host/dist/server/client-capability-coordinator.js +623 -94
  786. package/node_modules/@maka/runtime-host/dist/server/client-capability-invocation-broker.js +266 -53
  787. package/node_modules/@maka/runtime-host/dist/server/client-capability-provider-id.js +31 -0
  788. package/node_modules/@maka/runtime-host/dist/server/client-capability-recovery.js +45 -44
  789. package/node_modules/@maka/runtime-host/dist/server/configuration-coordinator.js +20 -1
  790. package/node_modules/@maka/runtime-host/dist/server/connection-effect-coordinator.js +46 -18
  791. package/node_modules/@maka/runtime-host/dist/server/connection-session.js +42 -19
  792. package/node_modules/@maka/runtime-host/dist/server/context-coordinator.js +2 -0
  793. package/node_modules/@maka/runtime-host/dist/server/daily-review-coordinator.js +164 -82
  794. package/node_modules/@maka/runtime-host/dist/server/execution-artifacts.js +59 -57
  795. package/node_modules/@maka/runtime-host/dist/server/execution-candidate.js +4 -1
  796. package/node_modules/@maka/runtime-host/dist/server/execution-composition-factory.js +10 -4
  797. package/node_modules/@maka/runtime-host/dist/server/execution-composition.js +1489 -239
  798. package/node_modules/@maka/runtime-host/dist/server/execution-inspect-coordinator.js +35 -29
  799. package/node_modules/@maka/runtime-host/dist/server/execution-model-authority.js +154 -18
  800. package/node_modules/@maka/runtime-host/dist/server/execution-model-composition.js +85 -73
  801. package/node_modules/@maka/runtime-host/dist/server/execution-service.js +49 -25
  802. package/node_modules/@maka/runtime-host/dist/server/extension-bundle.js +253 -0
  803. package/node_modules/@maka/runtime-host/dist/server/extension-package-manifest.js +280 -0
  804. package/node_modules/@maka/runtime-host/dist/server/external-agent-setup-coordinator.js +190 -0
  805. package/node_modules/@maka/runtime-host/dist/server/external-session-coordinator.js +130 -55
  806. package/node_modules/@maka/runtime-host/dist/server/failure-diagnostic.js +24 -0
  807. package/node_modules/@maka/runtime-host/dist/server/generated-text.js +39 -0
  808. package/node_modules/@maka/runtime-host/dist/server/goal-coordinator.js +134 -35
  809. package/node_modules/@maka/runtime-host/dist/server/host-change-feed.js +11 -0
  810. package/node_modules/@maka/runtime-host/dist/server/host-composition-source.js +47 -0
  811. package/node_modules/@maka/runtime-host/dist/server/host-composition.js +1 -29
  812. package/node_modules/@maka/runtime-host/dist/server/host-kernel.js +164 -35
  813. package/node_modules/@maka/runtime-host/dist/server/host-residency-registry.js +41 -20
  814. package/node_modules/@maka/runtime-host/dist/server/host-resource-collector.js +223 -0
  815. package/node_modules/@maka/runtime-host/dist/server/host-resource-probe-main.js +44 -0
  816. package/node_modules/@maka/runtime-host/dist/server/host-resource-probe.js +83 -0
  817. package/node_modules/@maka/runtime-host/dist/server/host-session-availability.js +15 -4
  818. package/node_modules/@maka/runtime-host/dist/server/hosted-execution-admission-registry.js +3 -1
  819. package/node_modules/@maka/runtime-host/dist/server/hosted-execution-projection.js +12 -7
  820. package/node_modules/@maka/runtime-host/dist/server/hosted-execution-recovery.js +203 -75
  821. package/node_modules/@maka/runtime-host/dist/server/hosted-execution-tool-profile.js +82 -12
  822. package/node_modules/@maka/runtime-host/dist/server/index.js +5 -0
  823. package/node_modules/@maka/runtime-host/dist/server/interaction-coordinator.js +437 -37
  824. package/node_modules/@maka/runtime-host/dist/server/interaction-projection.js +36 -1
  825. package/node_modules/@maka/runtime-host/dist/server/interactive-run-composer.js +178 -126
  826. package/node_modules/@maka/runtime-host/dist/server/interactive-turn-coordinator.js +1 -16
  827. package/node_modules/@maka/runtime-host/dist/server/jev-routing-model.js +157 -0
  828. package/node_modules/@maka/runtime-host/dist/server/json-array-page-budget.js +48 -0
  829. package/node_modules/@maka/runtime-host/dist/server/listener-set.js +8 -6
  830. package/node_modules/@maka/runtime-host/dist/server/memory-projection.js +14 -15
  831. package/node_modules/@maka/runtime-host/dist/server/message-coordinator.js +374 -80
  832. package/node_modules/@maka/runtime-host/dist/server/model-metadata-refresh.js +96 -0
  833. package/node_modules/@maka/runtime-host/dist/server/network-proxy-coordinator.js +0 -1
  834. package/node_modules/@maka/runtime-host/dist/server/oauth-coordinator.js +169 -45
  835. package/node_modules/@maka/runtime-host/dist/server/oauth-execution-authority.js +20 -3
  836. package/node_modules/@maka/runtime-host/dist/server/operation-dispatcher.js +62 -127
  837. package/node_modules/@maka/runtime-host/dist/server/peer-listener.js +131 -48
  838. package/node_modules/@maka/runtime-host/dist/server/peer-mesh-authority.js +1 -1
  839. package/node_modules/@maka/runtime-host/dist/server/plan-coordinator.js +52 -16
  840. package/node_modules/@maka/runtime-host/dist/server/plugin-composition-patch.js +58 -0
  841. package/node_modules/@maka/runtime-host/dist/server/plugin-composition-store.js +141 -0
  842. package/node_modules/@maka/runtime-host/dist/server/plugin-data-runtime.js +234 -0
  843. package/node_modules/@maka/runtime-host/dist/server/plugin-package-loader.js +204 -0
  844. package/node_modules/@maka/runtime-host/dist/server/plugin-package-store.js +545 -0
  845. package/node_modules/@maka/runtime-host/dist/server/plugin-platform-coordinator.js +400 -0
  846. package/node_modules/@maka/runtime-host/dist/server/plugin-platform.js +1273 -0
  847. package/node_modules/@maka/runtime-host/dist/server/process-lifecycle.js +1 -1
  848. package/node_modules/@maka/runtime-host/dist/server/process-termination-error.js +27 -0
  849. package/node_modules/@maka/runtime-host/dist/server/project-catalog-coordinator.js +10 -12
  850. package/node_modules/@maka/runtime-host/dist/server/project-directory-authority.js +4 -3
  851. package/node_modules/@maka/runtime-host/dist/server/prompt-suggestion.js +179 -0
  852. package/node_modules/@maka/runtime-host/dist/server/recall-coordinator.js +117 -0
  853. package/node_modules/@maka/runtime-host/dist/server/recall-material-fetch.js +92 -0
  854. package/node_modules/@maka/runtime-host/dist/server/root-admission-owner.js +32 -7
  855. package/node_modules/@maka/runtime-host/dist/server/root-turn-coordinator.js +796 -210
  856. package/node_modules/@maka/runtime-host/dist/server/runtime-policy-coordinator.js +74 -18
  857. package/node_modules/@maka/runtime-host/dist/server/runtime-resource-coordinator.js +24 -31
  858. package/node_modules/@maka/runtime-host/dist/server/runtime-resource-projection.js +15 -32
  859. package/node_modules/@maka/runtime-host/dist/server/sandbox-boundary-graph-wake.js +3 -5
  860. package/node_modules/@maka/runtime-host/dist/server/scheduled-task-coordinator.js +150 -41
  861. package/node_modules/@maka/runtime-host/dist/server/serial-outbound-writer.js +46 -4
  862. package/node_modules/@maka/runtime-host/dist/server/session-admission-gate.js +21 -1
  863. package/node_modules/@maka/runtime-host/dist/server/session-bundle-coordinator.js +166 -0
  864. package/node_modules/@maka/runtime-host/dist/server/session-catalog-coordinator.js +456 -59
  865. package/node_modules/@maka/runtime-host/dist/server/session-continuity-coordinator.js +407 -513
  866. package/node_modules/@maka/runtime-host/dist/server/session-effect-coordinator.js +13 -7
  867. package/node_modules/@maka/runtime-host/dist/server/session-retirement-coordinator.js +68 -16
  868. package/node_modules/@maka/runtime-host/dist/server/session-revision-coordinator.js +141 -82
  869. package/node_modules/@maka/runtime-host/dist/server/session-revision-graph-references.js +18 -10
  870. package/node_modules/@maka/runtime-host/dist/server/session-sidecar-purge.js +2 -1
  871. package/node_modules/@maka/runtime-host/dist/server/session-title.js +3 -16
  872. package/node_modules/@maka/runtime-host/dist/server/session-todo-coordinator.js +77 -0
  873. package/node_modules/@maka/runtime-host/dist/server/session-transcript-pager.js +23 -488
  874. package/node_modules/@maka/runtime-host/dist/server/session-transcript-reader.js +391 -115
  875. package/node_modules/@maka/runtime-host/dist/server/session-turn-access-request-coordinator.js +33 -26
  876. package/node_modules/@maka/runtime-host/dist/server/shared-session-transcript.js +4 -1
  877. package/node_modules/@maka/runtime-host/dist/server/skill-catalog-coordinator.js +18 -2
  878. package/node_modules/@maka/runtime-host/dist/server/skill-catalog-repository.js +16 -17
  879. package/node_modules/@maka/runtime-host/dist/server/storage-maintenance.js +109 -0
  880. package/node_modules/@maka/runtime-host/dist/server/usage-pricing-coordinator.js +120 -36
  881. package/node_modules/@maka/runtime-host/dist/server/web-fetch-tool.js +38 -2
  882. package/node_modules/@maka/runtime-host/dist/server/workhub-coordination-action-gate.js +625 -39
  883. package/node_modules/@maka/runtime-host/dist/server/workhub-coordination-coordinator.js +625 -132
  884. package/node_modules/@maka/runtime-host/dist/server/workhub-message-attachments.js +47 -0
  885. package/node_modules/@maka/runtime-host/dist/server/workhub-result-coordinator.js +173 -0
  886. package/node_modules/@maka/runtime-host/dist/server/workhub-result-runtime.js +293 -0
  887. package/node_modules/@maka/runtime-host/dist/server/workhub-target-execution-authority.js +161 -0
  888. package/node_modules/@maka/runtime-host/dist/transport/framed-byte-stream-transport.js +4 -1
  889. package/node_modules/@maka/runtime-host/dist/transport/local-ipc-framing.js +4 -2
  890. package/node_modules/@maka/runtime-host/dist/transport/peer-native.js +112 -24
  891. package/node_modules/@maka/runtime-host/dist/transport/resumable-peer-stream.js +469 -0
  892. package/node_modules/@maka/runtime-host/dist/webrtc-stun-policy.js +114 -0
  893. package/node_modules/@maka/runtime-host/package.json +9 -1
  894. package/node_modules/@maka/storage/dist/agent-run-store-contract.js +953 -0
  895. package/node_modules/@maka/storage/dist/agent-run-store.js +250 -1053
  896. package/node_modules/@maka/storage/dist/artifact-attachments.js +66 -18
  897. package/node_modules/@maka/storage/dist/artifact-metadata-codec.js +28 -31
  898. package/node_modules/@maka/storage/dist/artifact-store.js +265 -783
  899. package/node_modules/@maka/storage/dist/artifact-stores.js +6 -10
  900. package/node_modules/@maka/storage/dist/artifact-writer-lock.js +1 -1
  901. package/node_modules/@maka/storage/dist/atomic-file-write.js +74 -0
  902. package/node_modules/@maka/storage/dist/claude-code-session-adapter.js +700 -269
  903. package/node_modules/@maka/storage/dist/claude-code-transcript-lineage.js +106 -77
  904. package/node_modules/@maka/storage/dist/codex-session-adapter.js +632 -310
  905. package/node_modules/@maka/storage/dist/config-transfer.js +14 -8
  906. package/node_modules/@maka/storage/dist/context-offload-snapshot.js +397 -0
  907. package/node_modules/@maka/storage/dist/context-value-mutation-gate.js +59 -0
  908. package/node_modules/@maka/storage/dist/conversation-operational-state.js +10 -0
  909. package/node_modules/@maka/storage/dist/credential-store.js +15 -63
  910. package/node_modules/@maka/storage/dist/execution-persistence-provider.js +54 -0
  911. package/node_modules/@maka/storage/dist/execution-record-codec.js +1 -22
  912. package/node_modules/@maka/storage/dist/execution-stores.js +253 -81
  913. package/node_modules/@maka/storage/dist/external-session-importer.js +25 -3
  914. package/node_modules/@maka/storage/dist/file-lifetime-owner.js +30 -2
  915. package/node_modules/@maka/storage/dist/file-session-repository.js +1012 -0
  916. package/node_modules/@maka/storage/dist/git-exec.js +61 -0
  917. package/node_modules/@maka/storage/dist/git-worktree-child-executor.js +8 -35
  918. package/node_modules/@maka/storage/dist/goal-authority.js +41 -10
  919. package/node_modules/@maka/storage/dist/graph-control-values.js +126 -0
  920. package/node_modules/@maka/storage/dist/interaction-store-contract.js +231 -0
  921. package/node_modules/@maka/storage/dist/interaction-store-public.js +1 -1
  922. package/node_modules/@maka/storage/dist/interaction-store.js +196 -166
  923. package/node_modules/@maka/storage/dist/legacy-run-header.js +327 -0
  924. package/node_modules/@maka/storage/dist/local-execution-persistence.js +80 -0
  925. package/node_modules/@maka/storage/dist/mcp-config-store.js +101 -27
  926. package/node_modules/@maka/storage/dist/message-admission-store.js +8 -3
  927. package/node_modules/@maka/storage/dist/model-call-ledger.js +199 -32
  928. package/node_modules/@maka/storage/dist/model-call-usage-sql.js +136 -0
  929. package/node_modules/@maka/storage/dist/model-facts-store.js +56 -0
  930. package/node_modules/@maka/storage/dist/offset-external-session-catalog.js +69 -0
  931. package/node_modules/@maka/storage/dist/opencode-session-adapter.js +278 -77
  932. package/node_modules/@maka/storage/dist/operational-state-backup.js +15 -11
  933. package/node_modules/@maka/storage/dist/operational-state-store-public.js +1 -1
  934. package/node_modules/@maka/storage/dist/operational-state-store.js +60 -8
  935. package/node_modules/@maka/storage/dist/plan-authority.js +50 -0
  936. package/node_modules/@maka/storage/dist/plan-store.js +30 -0
  937. package/node_modules/@maka/storage/dist/process-lifetime-file-update-lock.js +0 -41
  938. package/node_modules/@maka/storage/dist/production-session-snapshot.js +761 -0
  939. package/node_modules/@maka/storage/dist/project-catalog.js +8 -23
  940. package/node_modules/@maka/storage/dist/quiescent-session-snapshot.js +1154 -0
  941. package/node_modules/@maka/storage/dist/recall-fold.js +65 -0
  942. package/node_modules/@maka/storage/dist/root-authority.js +4 -0
  943. package/node_modules/@maka/storage/dist/runtime-event-invariants.js +2 -2
  944. package/node_modules/@maka/storage/dist/runtime-event-persistence.js +9 -0
  945. package/node_modules/@maka/storage/dist/runtime-event-store-contract.js +19 -0
  946. package/node_modules/@maka/storage/dist/runtime-partial-values.js +118 -0
  947. package/node_modules/@maka/storage/dist/runtime-policy/connection-catalog-document.js +181 -112
  948. package/node_modules/@maka/storage/dist/runtime-policy/coordinator.js +552 -121
  949. package/node_modules/@maka/storage/dist/runtime-policy/credential-vault-document.js +4 -1
  950. package/node_modules/@maka/storage/dist/runtime-policy/document-io.js +22 -16
  951. package/node_modules/@maka/storage/dist/runtime-policy/legacy-custom-connection.js +65 -0
  952. package/node_modules/@maka/storage/dist/runtime-policy/oauth-login-receipt-document.js +207 -0
  953. package/node_modules/@maka/storage/dist/runtime-policy/onboarding-transaction.js +157 -9
  954. package/node_modules/@maka/storage/dist/runtime-policy/policy-document.js +12 -4
  955. package/node_modules/@maka/storage/dist/runtime-policy-stores.js +7 -4
  956. package/node_modules/@maka/storage/dist/runtime-transcript-query.js +333 -0
  957. package/node_modules/@maka/storage/dist/scheduled-task-store.js +256 -283
  958. package/node_modules/@maka/storage/dist/session-bundle-manifest.js +5 -17
  959. package/node_modules/@maka/storage/dist/session-bundle-policy.js +1042 -34
  960. package/node_modules/@maka/storage/dist/session-bundle-ustar.js +12 -0
  961. package/node_modules/@maka/storage/dist/session-copy-cleanup.js +12 -7
  962. package/node_modules/@maka/storage/dist/session-message-projection.js +24 -5
  963. package/node_modules/@maka/storage/dist/session-repository.js +767 -0
  964. package/node_modules/@maka/storage/dist/session-store-contract.js +61 -0
  965. package/node_modules/@maka/storage/dist/session-store-values.js +354 -0
  966. package/node_modules/@maka/storage/dist/session-store.js +129 -433
  967. package/node_modules/@maka/storage/dist/session-todo-authority.js +106 -0
  968. package/node_modules/@maka/storage/dist/session-todo-store.js +169 -0
  969. package/node_modules/@maka/storage/dist/settings-store.js +24 -29
  970. package/node_modules/@maka/storage/dist/shell-run-authority.js +1 -0
  971. package/node_modules/@maka/storage/dist/shell-run-store.js +15 -0
  972. package/node_modules/@maka/storage/dist/sqlite-artifact-metadata.js +51 -17
  973. package/node_modules/@maka/storage/dist/sqlite-artifact-schema.js +55 -5
  974. package/node_modules/@maka/storage/dist/sqlite-context-offload-store.js +42 -12
  975. package/node_modules/@maka/storage/dist/sqlite-core-execution-schema.js +46 -2
  976. package/node_modules/@maka/storage/dist/sqlite-long-term-memory-store.js +86 -12
  977. package/node_modules/@maka/storage/dist/sqlite-runtime-schema.js +455 -1
  978. package/node_modules/@maka/storage/dist/sqlite-runtime-store.js +1390 -359
  979. package/node_modules/@maka/storage/dist/sqlite-session-metadata-schema.js +63 -5
  980. package/node_modules/@maka/storage/dist/sqlite-session-metadata-store.js +671 -1047
  981. package/node_modules/@maka/storage/dist/sqlite-usage-schema.js +280 -20
  982. package/node_modules/@maka/storage/dist/sqlite-usage-store.js +29 -6
  983. package/node_modules/@maka/storage/dist/sqlite-workflow-schema.js +7 -8
  984. package/node_modules/@maka/storage/dist/stable-storage.js +16 -2
  985. package/node_modules/@maka/storage/dist/storage-id.js +28 -0
  986. package/node_modules/@maka/storage/dist/storage-writer-composition.js +5 -9
  987. package/node_modules/@maka/storage/dist/telemetry-file-schema.js +5 -3
  988. package/node_modules/@maka/storage/dist/tool-commit-validation.js +111 -0
  989. package/node_modules/@maka/storage/dist/tool-result-archive-evidence.js +138 -0
  990. package/node_modules/@maka/storage/dist/usage-screen.js +384 -0
  991. package/node_modules/@maka/storage/dist/usage-stores.js +30 -9
  992. package/node_modules/@maka/storage/dist/work-board-store.js +44 -5
  993. package/node_modules/@maka/storage/dist/workspace-identity.js +2 -15
  994. package/node_modules/@maka/storage/dist/workspace-version-authority-internal.js +1 -8
  995. package/node_modules/@maka/storage/package.json +9 -5
  996. package/node_modules/@modelcontextprotocol/client/dist/src-D_zzAWoS.mjs +22 -5
  997. package/node_modules/@modelcontextprotocol/client/dist/src-NAgB4Mp8.cjs +22 -5
  998. package/node_modules/@openai/agents-core/dist/agent.js +8 -10
  999. package/node_modules/@openai/agents-core/dist/agent.mjs +9 -11
  1000. package/node_modules/@openai/agents-core/dist/agentToolInput.js +2 -30
  1001. package/node_modules/@openai/agents-core/dist/agentToolInput.mjs +1 -29
  1002. package/node_modules/@openai/agents-core/dist/defaultModel.js +23 -3
  1003. package/node_modules/@openai/agents-core/dist/defaultModel.mjs +21 -3
  1004. package/node_modules/@openai/agents-core/dist/handoff.js +5 -5
  1005. package/node_modules/@openai/agents-core/dist/handoff.mjs +5 -5
  1006. package/node_modules/@openai/agents-core/dist/index.js +2 -1
  1007. package/node_modules/@openai/agents-core/dist/index.mjs +1 -1
  1008. package/node_modules/@openai/agents-core/dist/items.js +8 -1
  1009. package/node_modules/@openai/agents-core/dist/items.mjs +8 -1
  1010. package/node_modules/@openai/agents-core/dist/mcp.js +26 -16
  1011. package/node_modules/@openai/agents-core/dist/mcp.mjs +27 -17
  1012. package/node_modules/@openai/agents-core/dist/mcpServers.js +18 -15
  1013. package/node_modules/@openai/agents-core/dist/mcpServers.mjs +18 -15
  1014. package/node_modules/@openai/agents-core/dist/mcpShared.js +12 -0
  1015. package/node_modules/@openai/agents-core/dist/mcpShared.mjs +12 -0
  1016. package/node_modules/@openai/agents-core/dist/memory/session.js +8 -0
  1017. package/node_modules/@openai/agents-core/dist/memory/session.mjs +7 -0
  1018. package/node_modules/@openai/agents-core/dist/metadata.js +2 -2
  1019. package/node_modules/@openai/agents-core/dist/metadata.mjs +2 -2
  1020. package/node_modules/@openai/agents-core/dist/run.js +550 -248
  1021. package/node_modules/@openai/agents-core/dist/run.mjs +555 -253
  1022. package/node_modules/@openai/agents-core/dist/runState.js +747 -420
  1023. package/node_modules/@openai/agents-core/dist/runState.mjs +742 -421
  1024. package/node_modules/@openai/agents-core/dist/runStateLegacyCompaction.js +440 -0
  1025. package/node_modules/@openai/agents-core/dist/runStateLegacyCompaction.mjs +404 -0
  1026. package/node_modules/@openai/agents-core/dist/runner/blockedOutputPersistence.js +274 -78
  1027. package/node_modules/@openai/agents-core/dist/runner/blockedOutputPersistence.mjs +268 -77
  1028. package/node_modules/@openai/agents-core/dist/runner/conversation.js +22 -3
  1029. package/node_modules/@openai/agents-core/dist/runner/conversation.mjs +23 -4
  1030. package/node_modules/@openai/agents-core/dist/runner/guardrails.js +80 -15
  1031. package/node_modules/@openai/agents-core/dist/runner/guardrails.mjs +78 -15
  1032. package/node_modules/@openai/agents-core/dist/runner/items.js +35 -2
  1033. package/node_modules/@openai/agents-core/dist/runner/items.mjs +35 -2
  1034. package/node_modules/@openai/agents-core/dist/runner/modelOutputs.js +47 -18
  1035. package/node_modules/@openai/agents-core/dist/runner/modelOutputs.mjs +50 -21
  1036. package/node_modules/@openai/agents-core/dist/runner/modelPreparation.js +28 -0
  1037. package/node_modules/@openai/agents-core/dist/runner/modelPreparation.mjs +28 -1
  1038. package/node_modules/@openai/agents-core/dist/runner/modelRetry.js +322 -217
  1039. package/node_modules/@openai/agents-core/dist/runner/modelRetry.mjs +322 -217
  1040. package/node_modules/@openai/agents-core/dist/runner/modelSettings.js +15 -22
  1041. package/node_modules/@openai/agents-core/dist/runner/modelSettings.mjs +15 -22
  1042. package/node_modules/@openai/agents-core/dist/runner/outputGuardrailBlockedMessage.js +32 -0
  1043. package/node_modules/@openai/agents-core/dist/runner/outputGuardrailBlockedMessage.mjs +28 -0
  1044. package/node_modules/@openai/agents-core/dist/runner/runLoop.js +53 -8
  1045. package/node_modules/@openai/agents-core/dist/runner/runLoop.mjs +53 -8
  1046. package/node_modules/@openai/agents-core/dist/runner/sessionItems.js +119 -0
  1047. package/node_modules/@openai/agents-core/dist/runner/sessionItems.mjs +114 -0
  1048. package/node_modules/@openai/agents-core/dist/runner/sessionPersistence.js +408 -157
  1049. package/node_modules/@openai/agents-core/dist/runner/sessionPersistence.mjs +388 -142
  1050. package/node_modules/@openai/agents-core/dist/runner/toolExecution.js +42 -3
  1051. package/node_modules/@openai/agents-core/dist/runner/toolExecution.mjs +42 -3
  1052. package/node_modules/@openai/agents-core/dist/runner/toolSearch.js +1 -0
  1053. package/node_modules/@openai/agents-core/dist/runner/toolSearch.mjs +1 -1
  1054. package/node_modules/@openai/agents-core/dist/runner/toolSearchAttribution.js +19 -0
  1055. package/node_modules/@openai/agents-core/dist/runner/toolSearchAttribution.mjs +15 -0
  1056. package/node_modules/@openai/agents-core/dist/runner/turnResolution.js +65 -13
  1057. package/node_modules/@openai/agents-core/dist/runner/turnResolution.mjs +65 -13
  1058. package/node_modules/@openai/agents-core/dist/runner/usageTracking.js +69 -0
  1059. package/node_modules/@openai/agents-core/dist/runner/usageTracking.mjs +65 -0
  1060. package/node_modules/@openai/agents-core/dist/sandbox/manifest.js +4 -0
  1061. package/node_modules/@openai/agents-core/dist/sandbox/manifest.mjs +4 -0
  1062. package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/docker.js +317 -127
  1063. package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/docker.mjs +319 -129
  1064. package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/shared/localWorkspace.js +1 -1
  1065. package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/shared/localWorkspace.mjs +1 -1
  1066. package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/shared/pty.js +27 -13
  1067. package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/shared/pty.mjs +27 -13
  1068. package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/shared/unixLocalFileWorker.js +196 -0
  1069. package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/shared/unixLocalFileWorker.mjs +193 -0
  1070. package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/shared/unixLocalFiles.js +215 -0
  1071. package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/shared/unixLocalFiles.mjs +211 -0
  1072. package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/unixLocal.js +193 -83
  1073. package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/unixLocal.mjs +196 -86
  1074. package/node_modules/@openai/agents-core/dist/sandbox/session.js +2 -1
  1075. package/node_modules/@openai/agents-core/dist/sandbox/session.mjs +2 -1
  1076. package/node_modules/@openai/agents-core/dist/tracing/processor.js +21 -7
  1077. package/node_modules/@openai/agents-core/dist/tracing/processor.mjs +21 -7
  1078. package/node_modules/@openai/agents-core/dist/tracing/spans.js +40 -6
  1079. package/node_modules/@openai/agents-core/dist/tracing/spans.mjs +7 -3
  1080. package/node_modules/@openai/agents-core/dist/types/protocol.js +6 -0
  1081. package/node_modules/@openai/agents-core/dist/types/protocol.mjs +6 -0
  1082. package/node_modules/@openai/agents-core/dist/usage.js +13 -4
  1083. package/node_modules/@openai/agents-core/dist/usage.mjs +13 -4
  1084. package/node_modules/@openai/agents-core/dist/utils/applyDiff.js +24 -7
  1085. package/node_modules/@openai/agents-core/dist/utils/applyDiff.mjs +24 -7
  1086. package/node_modules/@openai/agents-core/dist/utils/internal.js +3 -1
  1087. package/node_modules/@openai/agents-core/dist/utils/internal.mjs +1 -1
  1088. package/node_modules/@openai/agents-core/dist/utils/zodCompat.js +29 -0
  1089. package/node_modules/@openai/agents-core/dist/utils/zodCompat.mjs +28 -0
  1090. package/node_modules/@openai/agents-core/dist/utils/zodJsonSchemaCompat.js +3 -31
  1091. package/node_modules/@openai/agents-core/dist/utils/zodJsonSchemaCompat.mjs +1 -29
  1092. package/node_modules/@openai/agents-core/package.json +1 -1
  1093. package/node_modules/@slack/types/dist/events/agent.js +3 -0
  1094. package/node_modules/@slack/types/dist/events/index.js +44 -0
  1095. package/node_modules/@slack/types/package.json +47 -0
  1096. package/node_modules/@slack/web-api/README.md +382 -0
  1097. package/node_modules/@slack/web-api/dist/methods.js +1636 -0
  1098. package/node_modules/@slack/web-api/dist/types/request/agents.js +3 -0
  1099. package/node_modules/@slack/web-api/dist/types/request/blocks.js +3 -0
  1100. package/node_modules/@slack/web-api/dist/types/response/AdminUsersGetExpirationResponse.js +11 -0
  1101. package/node_modules/@slack/web-api/dist/types/response/AgentsSessionsRenameResponse.js +11 -0
  1102. package/node_modules/@slack/web-api/dist/types/response/AgentsSessionsSetStatusResponse.js +11 -0
  1103. package/node_modules/@slack/web-api/dist/types/response/BlocksValidateResponse.js +11 -0
  1104. package/node_modules/@slack/web-api/dist/types/response/ChatAppendStreamResponse.js +11 -0
  1105. package/node_modules/@slack/web-api/dist/types/response/ChatStartStreamResponse.js +11 -0
  1106. package/node_modules/@slack/web-api/dist/types/response/ChatStopStreamResponse.js +48 -0
  1107. package/node_modules/@slack/web-api/dist/types/response/PinsListResponse.js +67 -0
  1108. package/node_modules/@slack/web-api/dist/types/response/SearchAllResponse.js +72 -0
  1109. package/node_modules/@slack/web-api/dist/types/response/SearchFilesResponse.js +48 -0
  1110. package/node_modules/@slack/web-api/dist/types/response/SlackListsAccessDeleteResponse.js +11 -0
  1111. package/node_modules/@slack/web-api/dist/types/response/SlackListsAccessSetResponse.js +11 -0
  1112. package/node_modules/@slack/web-api/dist/types/response/SlackListsCreateResponse.js +11 -0
  1113. package/node_modules/@slack/web-api/dist/types/response/SlackListsDownloadGetResponse.js +11 -0
  1114. package/node_modules/@slack/web-api/dist/types/response/SlackListsDownloadStartResponse.js +11 -0
  1115. package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsCreateResponse.js +11 -0
  1116. package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsDeleteMultipleResponse.js +11 -0
  1117. package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsDeleteResponse.js +11 -0
  1118. package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsInfoResponse.js +11 -0
  1119. package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsListResponse.js +11 -0
  1120. package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsUpdateResponse.js +11 -0
  1121. package/node_modules/@slack/web-api/dist/types/response/SlackListsUpdateResponse.js +11 -0
  1122. package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedAddResponse.js +11 -0
  1123. package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedListResponse.js +11 -0
  1124. package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedRemoveResponse.js +11 -0
  1125. package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedSetResponse.js +11 -0
  1126. package/node_modules/@slack/web-api/node_modules/@types/retry/LICENSE +21 -0
  1127. package/node_modules/@slack/web-api/node_modules/@types/retry/README.md +15 -0
  1128. package/node_modules/@slack/web-api/node_modules/@types/retry/package.json +30 -0
  1129. package/node_modules/@slack/web-api/package.json +71 -0
  1130. package/node_modules/@types/node/README.md +1 -1
  1131. package/node_modules/@types/node/package.json +3 -3
  1132. package/node_modules/balanced-match/LICENSE.md +23 -0
  1133. package/node_modules/balanced-match/README.md +57 -0
  1134. package/node_modules/balanced-match/dist/commonjs/index.js +59 -0
  1135. package/node_modules/balanced-match/dist/commonjs/package.json +3 -0
  1136. package/node_modules/balanced-match/dist/esm/index.js +54 -0
  1137. package/node_modules/balanced-match/dist/esm/package.json +3 -0
  1138. package/node_modules/balanced-match/package.json +68 -0
  1139. package/node_modules/brace-expansion/LICENSE +23 -0
  1140. package/node_modules/brace-expansion/README.md +105 -0
  1141. package/node_modules/brace-expansion/dist/commonjs/index.js +289 -0
  1142. package/node_modules/brace-expansion/dist/commonjs/package.json +3 -0
  1143. package/node_modules/brace-expansion/dist/esm/index.js +285 -0
  1144. package/node_modules/brace-expansion/dist/esm/package.json +3 -0
  1145. package/node_modules/brace-expansion/package.json +64 -0
  1146. package/node_modules/fast-uri/index.js +215 -47
  1147. package/node_modules/fast-uri/lib/schemes.js +9 -4
  1148. package/node_modules/fast-uri/lib/utils.js +396 -92
  1149. package/node_modules/fast-uri/package.json +1 -1
  1150. package/node_modules/fs-native-extensions/package.json +1 -1
  1151. package/node_modules/fs-native-extensions/prebuilds/android-arm/fs-native-extensions.bare +0 -0
  1152. package/node_modules/fs-native-extensions/prebuilds/android-arm64/fs-native-extensions.bare +0 -0
  1153. package/node_modules/fs-native-extensions/prebuilds/android-ia32/fs-native-extensions.bare +0 -0
  1154. package/node_modules/fs-native-extensions/prebuilds/android-x64/fs-native-extensions.bare +0 -0
  1155. package/node_modules/fs-native-extensions/prebuilds/darwin-arm64/fs-native-extensions.bare +0 -0
  1156. package/node_modules/fs-native-extensions/prebuilds/darwin-arm64/fs-native-extensions.node +0 -0
  1157. package/node_modules/fs-native-extensions/prebuilds/darwin-x64/fs-native-extensions.bare +0 -0
  1158. package/node_modules/fs-native-extensions/prebuilds/darwin-x64/fs-native-extensions.node +0 -0
  1159. package/node_modules/fs-native-extensions/prebuilds/ios-arm64/fs-native-extensions.bare +0 -0
  1160. package/node_modules/fs-native-extensions/prebuilds/ios-arm64-simulator/fs-native-extensions.bare +0 -0
  1161. package/node_modules/fs-native-extensions/prebuilds/ios-x64-simulator/fs-native-extensions.bare +0 -0
  1162. package/node_modules/fs-native-extensions/prebuilds/linux-arm64/fs-native-extensions.bare +0 -0
  1163. package/node_modules/fs-native-extensions/prebuilds/linux-x64/fs-native-extensions.bare +0 -0
  1164. package/node_modules/fs-native-extensions/prebuilds/win32-arm64/fs-native-extensions.bare +0 -0
  1165. package/node_modules/fs-native-extensions/prebuilds/win32-arm64/fs-native-extensions.node +0 -0
  1166. package/node_modules/fs-native-extensions/prebuilds/win32-x64/fs-native-extensions.bare +0 -0
  1167. package/node_modules/fs-native-extensions/prebuilds/win32-x64/fs-native-extensions.node +0 -0
  1168. package/node_modules/fs-native-extensions/src/win32.c +50 -11
  1169. package/node_modules/glob/LICENSE.md +63 -0
  1170. package/node_modules/glob/README.md +1203 -0
  1171. package/node_modules/glob/dist/commonjs/glob.js +248 -0
  1172. package/node_modules/glob/dist/commonjs/has-magic.js +27 -0
  1173. package/node_modules/glob/dist/commonjs/ignore.js +119 -0
  1174. package/node_modules/glob/dist/commonjs/index.js +68 -0
  1175. package/node_modules/glob/dist/commonjs/index.min.js +4 -0
  1176. package/node_modules/glob/dist/commonjs/package.json +3 -0
  1177. package/node_modules/glob/dist/commonjs/pattern.js +223 -0
  1178. package/node_modules/glob/dist/commonjs/processor.js +301 -0
  1179. package/node_modules/glob/dist/commonjs/walker.js +387 -0
  1180. package/node_modules/glob/dist/esm/glob.js +244 -0
  1181. package/node_modules/glob/dist/esm/has-magic.js +23 -0
  1182. package/node_modules/glob/dist/esm/ignore.js +115 -0
  1183. package/node_modules/glob/dist/esm/index.js +55 -0
  1184. package/node_modules/glob/dist/esm/index.min.js +4 -0
  1185. package/node_modules/glob/dist/esm/package.json +3 -0
  1186. package/node_modules/glob/dist/esm/pattern.js +219 -0
  1187. package/node_modules/glob/dist/esm/processor.js +294 -0
  1188. package/node_modules/glob/dist/esm/walker.js +381 -0
  1189. package/node_modules/glob/package.json +98 -0
  1190. package/node_modules/minimatch/LICENSE.md +55 -0
  1191. package/node_modules/minimatch/README.md +528 -0
  1192. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +14 -0
  1193. package/node_modules/minimatch/dist/commonjs/ast.js +845 -0
  1194. package/node_modules/minimatch/dist/commonjs/brace-expressions.js +150 -0
  1195. package/node_modules/minimatch/dist/commonjs/escape.js +30 -0
  1196. package/node_modules/minimatch/dist/commonjs/index.js +1127 -0
  1197. package/node_modules/minimatch/dist/commonjs/package.json +3 -0
  1198. package/node_modules/minimatch/dist/commonjs/unescape.js +38 -0
  1199. package/node_modules/minimatch/dist/esm/assert-valid-pattern.js +10 -0
  1200. package/node_modules/minimatch/dist/esm/ast.js +841 -0
  1201. package/node_modules/minimatch/dist/esm/brace-expressions.js +146 -0
  1202. package/node_modules/minimatch/dist/esm/escape.js +26 -0
  1203. package/node_modules/minimatch/dist/esm/index.js +1114 -0
  1204. package/node_modules/minimatch/dist/esm/package.json +3 -0
  1205. package/node_modules/minimatch/dist/esm/unescape.js +34 -0
  1206. package/node_modules/minimatch/package.json +73 -0
  1207. package/node_modules/minipass/LICENSE.md +55 -0
  1208. package/node_modules/minipass/README.md +825 -0
  1209. package/node_modules/minipass/dist/commonjs/index.js +1038 -0
  1210. package/node_modules/minipass/dist/commonjs/package.json +3 -0
  1211. package/node_modules/minipass/dist/esm/index.js +1020 -0
  1212. package/node_modules/minipass/dist/esm/package.json +3 -0
  1213. package/node_modules/minipass/package.json +77 -0
  1214. package/node_modules/path-scurry/LICENSE.md +55 -0
  1215. package/node_modules/path-scurry/README.md +636 -0
  1216. package/node_modules/path-scurry/dist/commonjs/index.js +2018 -0
  1217. package/node_modules/path-scurry/dist/commonjs/package.json +3 -0
  1218. package/node_modules/path-scurry/dist/esm/index.js +1983 -0
  1219. package/node_modules/path-scurry/dist/esm/package.json +3 -0
  1220. package/node_modules/path-scurry/node_modules/lru-cache/LICENSE.md +55 -0
  1221. package/node_modules/path-scurry/node_modules/lru-cache/README.md +469 -0
  1222. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.js +7 -0
  1223. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/index.js +1726 -0
  1224. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/index.min.js +2 -0
  1225. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/perf.js +10 -0
  1226. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.d.cts.map +1 -0
  1227. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +7 -0
  1228. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.js +1726 -0
  1229. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
  1230. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.js +9 -0
  1231. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/index.js +1726 -0
  1232. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/index.min.js +2 -0
  1233. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/perf.js +10 -0
  1234. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/package.json +3 -0
  1235. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/perf.js +10 -0
  1236. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.js +4 -0
  1237. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/index.js +1722 -0
  1238. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/index.min.js +2 -0
  1239. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/perf.js +7 -0
  1240. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.d.mts.map +1 -0
  1241. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/diagnostics-channel.js +19 -0
  1242. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.js +1722 -0
  1243. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.min.js +2 -0
  1244. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +6 -0
  1245. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/index.js +1722 -0
  1246. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/index.min.js +2 -0
  1247. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/perf.js +7 -0
  1248. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/package.json +3 -0
  1249. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/perf.js +7 -0
  1250. package/node_modules/path-scurry/node_modules/lru-cache/package.json +154 -0
  1251. package/node_modules/path-scurry/package.json +72 -0
  1252. package/node_modules/qs/.github/THREAT_MODEL.md +3 -3
  1253. package/node_modules/qs/CHANGELOG.md +15 -0
  1254. package/node_modules/qs/README.md +19 -1
  1255. package/node_modules/qs/dist/qs.js +21 -21
  1256. package/node_modules/qs/eslint.config.mjs +1 -1
  1257. package/node_modules/qs/lib/parse.js +3 -4
  1258. package/node_modules/qs/lib/stringify.js +23 -8
  1259. package/node_modules/qs/lib/utils.js +10 -3
  1260. package/node_modules/qs/package.json +4 -4
  1261. package/node_modules/run/README.md +109 -18
  1262. package/node_modules/run/THIRD_PARTY_NOTICES.md +11 -11
  1263. package/node_modules/run/dist/continuation-validation.js +116 -1
  1264. package/node_modules/run/dist/errors.js +12 -2
  1265. package/node_modules/run/dist/host-function-invocation.js +2 -1
  1266. package/node_modules/run/dist/run.js +30 -4
  1267. package/node_modules/run/dist/runtime/guest-serde-source.js +1 -1
  1268. package/node_modules/run/dist/runtime/guest-sources.js +214 -56
  1269. package/node_modules/run/dist/runtime/manager.js +575 -116
  1270. package/node_modules/run/dist/runtime/max-workers.js +8 -4
  1271. package/node_modules/run/dist/runtime/protocol-validation.js +20 -7
  1272. package/node_modules/run/dist/runtime/sync-bridge-protocol.js +135 -0
  1273. package/node_modules/run/dist/runtime/worker-source.js +1 -1
  1274. package/node_modules/run/dist/utils/options.js +7 -0
  1275. package/node_modules/run/dist/utils/promise-with-resolvers.js +13 -1
  1276. package/node_modules/run/dist/utils/serde.js +1 -7
  1277. package/node_modules/run/dist/utils/source-cache.js +83 -13
  1278. package/node_modules/run/package.json +6 -4
  1279. package/node_modules/socks/build/common/helpers.js +5 -6
  1280. package/node_modules/socks/build/common/util.js +2 -2
  1281. package/node_modules/socks/package.json +7 -7
  1282. package/node_modules/systeminformation/LICENSE +20 -0
  1283. package/node_modules/systeminformation/README.md +1251 -0
  1284. package/node_modules/systeminformation/lib/audio.js +335 -0
  1285. package/node_modules/systeminformation/lib/battery.js +334 -0
  1286. package/node_modules/systeminformation/lib/bluetooth.js +315 -0
  1287. package/node_modules/systeminformation/lib/bluetoothVendors.js +1138 -0
  1288. package/node_modules/systeminformation/lib/cli.js +100 -0
  1289. package/node_modules/systeminformation/lib/cpu.js +2285 -0
  1290. package/node_modules/systeminformation/lib/docker.js +791 -0
  1291. package/node_modules/systeminformation/lib/dockerSocket.js +117 -0
  1292. package/node_modules/systeminformation/lib/filesystem.js +1927 -0
  1293. package/node_modules/systeminformation/lib/graphics.js +1317 -0
  1294. package/node_modules/systeminformation/lib/index.js +520 -0
  1295. package/node_modules/systeminformation/lib/internet.js +265 -0
  1296. package/node_modules/systeminformation/lib/memory.js +622 -0
  1297. package/node_modules/systeminformation/lib/network.js +2008 -0
  1298. package/node_modules/systeminformation/lib/osinfo.js +1290 -0
  1299. package/node_modules/systeminformation/lib/printer.js +209 -0
  1300. package/node_modules/systeminformation/lib/processes.js +1496 -0
  1301. package/node_modules/systeminformation/lib/system.js +855 -0
  1302. package/node_modules/systeminformation/lib/usb.js +309 -0
  1303. package/node_modules/systeminformation/lib/users.js +412 -0
  1304. package/node_modules/systeminformation/lib/util.js +2833 -0
  1305. package/node_modules/systeminformation/lib/virtualbox.js +116 -0
  1306. package/node_modules/systeminformation/lib/wifi.js +839 -0
  1307. package/node_modules/systeminformation/package.json +102 -0
  1308. package/node_modules/undici/docs/docs/api/Client.md +4 -0
  1309. package/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +3 -2
  1310. package/node_modules/undici/docs/docs/api/EventSource.md +4 -0
  1311. package/node_modules/undici/docs/docs/api/Interceptors.md +7 -3
  1312. package/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +7 -1
  1313. package/node_modules/undici/lib/cache/memory-cache-store.js +2 -2
  1314. package/node_modules/undici/lib/core/symbols.js +2 -0
  1315. package/node_modules/undici/lib/dispatcher/agent.js +7 -2
  1316. package/node_modules/undici/lib/dispatcher/balanced-pool.js +7 -4
  1317. package/node_modules/undici/lib/dispatcher/client-h1.js +12 -4
  1318. package/node_modules/undici/lib/dispatcher/client-h2.js +43 -3
  1319. package/node_modules/undici/lib/dispatcher/client.js +3 -2
  1320. package/node_modules/undici/lib/dispatcher/dispatcher-base.js +13 -1
  1321. package/node_modules/undici/lib/dispatcher/dispatcher.js +15 -1
  1322. package/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +3 -0
  1323. package/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +10 -3
  1324. package/node_modules/undici/lib/dispatcher/proxy-agent.js +18 -1
  1325. package/node_modules/undici/lib/dispatcher/retry-agent.js +3 -0
  1326. package/node_modules/undici/lib/dispatcher/round-robin-pool.js +1 -1
  1327. package/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +91 -21
  1328. package/node_modules/undici/lib/handler/cache-handler.js +29 -5
  1329. package/node_modules/undici/lib/handler/decorator-handler.js +7 -1
  1330. package/node_modules/undici/lib/handler/deduplication-handler.js +12 -6
  1331. package/node_modules/undici/lib/handler/redirect-handler.js +21 -4
  1332. package/node_modules/undici/lib/handler/retry-handler.js +148 -30
  1333. package/node_modules/undici/lib/interceptor/cache.js +65 -12
  1334. package/node_modules/undici/lib/interceptor/decompress.js +115 -13
  1335. package/node_modules/undici/lib/interceptor/deduplicate.js +5 -4
  1336. package/node_modules/undici/lib/interceptor/dns.js +7 -0
  1337. package/node_modules/undici/lib/interceptor/dump.js +10 -23
  1338. package/node_modules/undici/lib/mock/mock-agent.js +13 -1
  1339. package/node_modules/undici/lib/mock/mock-utils.js +11 -10
  1340. package/node_modules/undici/lib/util/cache.js +45 -3
  1341. package/node_modules/undici/lib/web/cookies/parse.js +150 -147
  1342. package/node_modules/undici/lib/web/eventsource/eventsource-stream.js +28 -1
  1343. package/node_modules/undici/lib/web/eventsource/eventsource.js +13 -3
  1344. package/node_modules/undici/lib/web/fetch/index.js +6 -0
  1345. package/node_modules/undici/lib/web/fetch/request.js +2 -3
  1346. package/node_modules/undici/lib/web/fetch/util.js +6 -1
  1347. package/node_modules/undici/lib/web/webidl/index.js +3 -3
  1348. package/node_modules/undici/lib/web/websocket/connection.js +1 -1
  1349. package/node_modules/undici/lib/web/websocket/permessage-deflate.js +5 -0
  1350. package/node_modules/undici/lib/web/websocket/stream/websocketstream.js +8 -10
  1351. package/node_modules/undici/package.json +3 -3
  1352. package/node_modules/undici-types/package.json +1 -1
  1353. package/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +19 -18
  1354. package/node_modules/yaml/browser/dist/nodes/Alias.js +25 -23
  1355. package/node_modules/yaml/dist/compose/resolve-flow-scalar.js +19 -18
  1356. package/node_modules/yaml/dist/nodes/Alias.js +25 -23
  1357. package/node_modules/yaml/package.json +1 -1
  1358. package/node_modules/zod/README.md +29 -2
  1359. package/node_modules/zod/compile.cjs +96 -0
  1360. package/node_modules/zod/compile.js +52 -0
  1361. package/node_modules/zod/index.cjs +21 -2
  1362. package/node_modules/zod/index.js +5 -2
  1363. package/node_modules/zod/locales/index.cjs +19 -0
  1364. package/node_modules/zod/mini/index.cjs +19 -0
  1365. package/node_modules/zod/package.json +20 -8
  1366. package/node_modules/zod/v3/ZodError.cjs +41 -12
  1367. package/node_modules/zod/v3/ZodError.js +22 -12
  1368. package/node_modules/zod/v3/errors.cjs +19 -0
  1369. package/node_modules/zod/v3/external.cjs +19 -0
  1370. package/node_modules/zod/v3/helpers/enumUtil.cjs +19 -0
  1371. package/node_modules/zod/v3/helpers/errorUtil.cjs +20 -1
  1372. package/node_modules/zod/v3/helpers/errorUtil.js +1 -1
  1373. package/node_modules/zod/v3/helpers/parseUtil.cjs +19 -0
  1374. package/node_modules/zod/v3/helpers/partialUtil.cjs +19 -0
  1375. package/node_modules/zod/v3/helpers/typeAliases.cjs +19 -0
  1376. package/node_modules/zod/v3/helpers/util.cjs +19 -0
  1377. package/node_modules/zod/v3/index.cjs +19 -0
  1378. package/node_modules/zod/v3/standard-schema.cjs +19 -0
  1379. package/node_modules/zod/v3/types.cjs +26 -5
  1380. package/node_modules/zod/v3/types.js +7 -5
  1381. package/node_modules/zod/v4/classic/checks.cjs +21 -1
  1382. package/node_modules/zod/v4/classic/checks.js +1 -1
  1383. package/node_modules/zod/v4/classic/coerce.cjs +19 -0
  1384. package/node_modules/zod/v4/classic/compat.cjs +19 -0
  1385. package/node_modules/zod/v4/classic/deep-partial.cjs +58 -0
  1386. package/node_modules/zod/v4/classic/deep-partial.js +13 -0
  1387. package/node_modules/zod/v4/classic/errors.cjs +62 -34
  1388. package/node_modules/zod/v4/classic/errors.js +43 -34
  1389. package/node_modules/zod/v4/classic/external.cjs +51 -27
  1390. package/node_modules/zod/v4/classic/external.js +5 -8
  1391. package/node_modules/zod/v4/classic/from-json-schema.cjs +376 -75
  1392. package/node_modules/zod/v4/classic/from-json-schema.js +357 -75
  1393. package/node_modules/zod/v4/classic/in-out.cjs +82 -0
  1394. package/node_modules/zod/v4/classic/in-out.js +36 -0
  1395. package/node_modules/zod/v4/classic/index.cjs +21 -2
  1396. package/node_modules/zod/v4/classic/index.js +2 -2
  1397. package/node_modules/zod/v4/classic/iso.cjs +30 -22
  1398. package/node_modules/zod/v4/classic/iso.js +2 -17
  1399. package/node_modules/zod/v4/classic/parse.cjs +23 -1
  1400. package/node_modules/zod/v4/classic/parse.js +1 -0
  1401. package/node_modules/zod/v4/classic/schemas.cjs +591 -426
  1402. package/node_modules/zod/v4/classic/schemas.js +564 -424
  1403. package/node_modules/zod/v4/core/api.cjs +66 -24
  1404. package/node_modules/zod/v4/core/api.js +44 -24
  1405. package/node_modules/zod/v4/core/checks.cjs +88 -128
  1406. package/node_modules/zod/v4/core/checks.js +68 -127
  1407. package/node_modules/zod/v4/core/compile.cjs +1908 -0
  1408. package/node_modules/zod/v4/core/compile.js +1858 -0
  1409. package/node_modules/zod/v4/core/core.cjs +101 -19
  1410. package/node_modules/zod/v4/core/core.js +83 -20
  1411. package/node_modules/zod/v4/core/doc.cjs +31 -9
  1412. package/node_modules/zod/v4/core/doc.js +12 -9
  1413. package/node_modules/zod/v4/core/errors.cjs +126 -25
  1414. package/node_modules/zod/v4/core/errors.js +107 -25
  1415. package/node_modules/zod/v4/core/index.cjs +24 -1
  1416. package/node_modules/zod/v4/core/index.js +3 -0
  1417. package/node_modules/zod/v4/core/json-schema-generator.cjs +24 -1
  1418. package/node_modules/zod/v4/core/json-schema-generator.js +6 -2
  1419. package/node_modules/zod/v4/core/json-schema-processors.cjs +441 -156
  1420. package/node_modules/zod/v4/core/json-schema-processors.js +400 -158
  1421. package/node_modules/zod/v4/core/json-schema.cjs +19 -0
  1422. package/node_modules/zod/v4/core/memoizer.cjs +356 -0
  1423. package/node_modules/zod/v4/core/memoizer.js +307 -0
  1424. package/node_modules/zod/v4/core/parse.cjs +148 -46
  1425. package/node_modules/zod/v4/core/parse.js +127 -45
  1426. package/node_modules/zod/v4/core/regexes.cjs +54 -17
  1427. package/node_modules/zod/v4/core/regexes.js +32 -15
  1428. package/node_modules/zod/v4/core/registries.cjs +19 -0
  1429. package/node_modules/zod/v4/core/registries.js +2 -2
  1430. package/node_modules/zod/v4/core/schemas.cjs +785 -386
  1431. package/node_modules/zod/v4/core/schemas.js +753 -386
  1432. package/node_modules/zod/v4/core/standard-schema.cjs +19 -0
  1433. package/node_modules/zod/v4/core/to-json-schema.cjs +269 -45
  1434. package/node_modules/zod/v4/core/to-json-schema.js +247 -44
  1435. package/node_modules/zod/v4/core/util.cjs +372 -157
  1436. package/node_modules/zod/v4/core/util.js +341 -156
  1437. package/node_modules/zod/v4/core/versions.cjs +21 -2
  1438. package/node_modules/zod/v4/core/versions.js +2 -2
  1439. package/node_modules/zod/v4/core/visit.cjs +214 -0
  1440. package/node_modules/zod/v4/core/visit.js +169 -0
  1441. package/node_modules/zod/v4/index.cjs +34 -5
  1442. package/node_modules/zod/v4/index.js +3 -2
  1443. package/node_modules/zod/v4/locales/ar.cjs +5 -0
  1444. package/node_modules/zod/v4/locales/ar.js +5 -0
  1445. package/node_modules/zod/v4/locales/az.cjs +5 -0
  1446. package/node_modules/zod/v4/locales/az.js +5 -0
  1447. package/node_modules/zod/v4/locales/be.cjs +12 -0
  1448. package/node_modules/zod/v4/locales/be.js +12 -0
  1449. package/node_modules/zod/v4/locales/bg.cjs +5 -0
  1450. package/node_modules/zod/v4/locales/bg.js +5 -0
  1451. package/node_modules/zod/v4/locales/bn.cjs +140 -0
  1452. package/node_modules/zod/v4/locales/bn.js +113 -0
  1453. package/node_modules/zod/v4/locales/ca.cjs +5 -0
  1454. package/node_modules/zod/v4/locales/ca.js +5 -0
  1455. package/node_modules/zod/v4/locales/ckb.cjs +160 -0
  1456. package/node_modules/zod/v4/locales/ckb.js +133 -0
  1457. package/node_modules/zod/v4/locales/cs.cjs +5 -0
  1458. package/node_modules/zod/v4/locales/cs.js +5 -0
  1459. package/node_modules/zod/v4/locales/da.cjs +7 -2
  1460. package/node_modules/zod/v4/locales/da.js +7 -2
  1461. package/node_modules/zod/v4/locales/de.cjs +5 -0
  1462. package/node_modules/zod/v4/locales/de.js +5 -0
  1463. package/node_modules/zod/v4/locales/el.cjs +3 -0
  1464. package/node_modules/zod/v4/locales/el.js +3 -0
  1465. package/node_modules/zod/v4/locales/en.cjs +16 -4
  1466. package/node_modules/zod/v4/locales/en.js +16 -4
  1467. package/node_modules/zod/v4/locales/eo.cjs +5 -0
  1468. package/node_modules/zod/v4/locales/eo.js +5 -0
  1469. package/node_modules/zod/v4/locales/es.cjs +4 -0
  1470. package/node_modules/zod/v4/locales/es.js +4 -0
  1471. package/node_modules/zod/v4/locales/fa.cjs +5 -0
  1472. package/node_modules/zod/v4/locales/fa.js +5 -0
  1473. package/node_modules/zod/v4/locales/fi.cjs +5 -0
  1474. package/node_modules/zod/v4/locales/fi.js +5 -0
  1475. package/node_modules/zod/v4/locales/fr-CA.cjs +5 -0
  1476. package/node_modules/zod/v4/locales/fr-CA.js +5 -0
  1477. package/node_modules/zod/v4/locales/fr.cjs +18 -14
  1478. package/node_modules/zod/v4/locales/fr.js +18 -14
  1479. package/node_modules/zod/v4/locales/gu.cjs +140 -0
  1480. package/node_modules/zod/v4/locales/gu.js +113 -0
  1481. package/node_modules/zod/v4/locales/he.cjs +7 -0
  1482. package/node_modules/zod/v4/locales/he.js +7 -0
  1483. package/node_modules/zod/v4/locales/hi.cjs +138 -0
  1484. package/node_modules/zod/v4/locales/hi.js +111 -0
  1485. package/node_modules/zod/v4/locales/hr.cjs +4 -0
  1486. package/node_modules/zod/v4/locales/hr.js +4 -0
  1487. package/node_modules/zod/v4/locales/hu.cjs +5 -0
  1488. package/node_modules/zod/v4/locales/hu.js +5 -0
  1489. package/node_modules/zod/v4/locales/hy.cjs +11 -0
  1490. package/node_modules/zod/v4/locales/hy.js +11 -0
  1491. package/node_modules/zod/v4/locales/id.cjs +5 -0
  1492. package/node_modules/zod/v4/locales/id.js +5 -0
  1493. package/node_modules/zod/v4/locales/index.cjs +43 -2
  1494. package/node_modules/zod/v4/locales/index.js +11 -0
  1495. package/node_modules/zod/v4/locales/is.cjs +5 -0
  1496. package/node_modules/zod/v4/locales/is.js +5 -0
  1497. package/node_modules/zod/v4/locales/it.cjs +5 -0
  1498. package/node_modules/zod/v4/locales/it.js +5 -0
  1499. package/node_modules/zod/v4/locales/ja.cjs +5 -0
  1500. package/node_modules/zod/v4/locales/ja.js +5 -0
  1501. package/node_modules/zod/v4/locales/ka.cjs +5 -0
  1502. package/node_modules/zod/v4/locales/ka.js +5 -0
  1503. package/node_modules/zod/v4/locales/km.cjs +5 -0
  1504. package/node_modules/zod/v4/locales/km.js +5 -0
  1505. package/node_modules/zod/v4/locales/kn.cjs +143 -0
  1506. package/node_modules/zod/v4/locales/kn.js +116 -0
  1507. package/node_modules/zod/v4/locales/ko.cjs +5 -0
  1508. package/node_modules/zod/v4/locales/ko.js +5 -0
  1509. package/node_modules/zod/v4/locales/lt.cjs +4 -0
  1510. package/node_modules/zod/v4/locales/lt.js +4 -0
  1511. package/node_modules/zod/v4/locales/mk.cjs +5 -0
  1512. package/node_modules/zod/v4/locales/mk.js +5 -0
  1513. package/node_modules/zod/v4/locales/ms.cjs +5 -0
  1514. package/node_modules/zod/v4/locales/ms.js +5 -0
  1515. package/node_modules/zod/v4/locales/ne.cjs +138 -0
  1516. package/node_modules/zod/v4/locales/ne.js +111 -0
  1517. package/node_modules/zod/v4/locales/nl.cjs +5 -0
  1518. package/node_modules/zod/v4/locales/nl.js +5 -0
  1519. package/node_modules/zod/v4/locales/nn.cjs +140 -0
  1520. package/node_modules/zod/v4/locales/nn.js +113 -0
  1521. package/node_modules/zod/v4/locales/no.cjs +7 -2
  1522. package/node_modules/zod/v4/locales/no.js +7 -2
  1523. package/node_modules/zod/v4/locales/ota.cjs +5 -0
  1524. package/node_modules/zod/v4/locales/ota.js +5 -0
  1525. package/node_modules/zod/v4/locales/pl.cjs +5 -0
  1526. package/node_modules/zod/v4/locales/pl.js +5 -0
  1527. package/node_modules/zod/v4/locales/ps.cjs +5 -0
  1528. package/node_modules/zod/v4/locales/ps.js +5 -0
  1529. package/node_modules/zod/v4/locales/pt-BR.cjs +170 -0
  1530. package/node_modules/zod/v4/locales/pt-BR.js +143 -0
  1531. package/node_modules/zod/v4/locales/pt.cjs +89 -55
  1532. package/node_modules/zod/v4/locales/pt.js +89 -55
  1533. package/node_modules/zod/v4/locales/ro.cjs +3 -0
  1534. package/node_modules/zod/v4/locales/ro.js +3 -0
  1535. package/node_modules/zod/v4/locales/ru.cjs +12 -0
  1536. package/node_modules/zod/v4/locales/ru.js +12 -0
  1537. package/node_modules/zod/v4/locales/sk.cjs +143 -0
  1538. package/node_modules/zod/v4/locales/sk.js +116 -0
  1539. package/node_modules/zod/v4/locales/sl.cjs +5 -0
  1540. package/node_modules/zod/v4/locales/sl.js +5 -0
  1541. package/node_modules/zod/v4/locales/sv.cjs +7 -2
  1542. package/node_modules/zod/v4/locales/sv.js +7 -2
  1543. package/node_modules/zod/v4/locales/ta.cjs +5 -0
  1544. package/node_modules/zod/v4/locales/ta.js +5 -0
  1545. package/node_modules/zod/v4/locales/tg.cjs +144 -0
  1546. package/node_modules/zod/v4/locales/tg.js +117 -0
  1547. package/node_modules/zod/v4/locales/th.cjs +5 -0
  1548. package/node_modules/zod/v4/locales/th.js +5 -0
  1549. package/node_modules/zod/v4/locales/tk.cjs +134 -0
  1550. package/node_modules/zod/v4/locales/tk.js +107 -0
  1551. package/node_modules/zod/v4/locales/tr.cjs +5 -0
  1552. package/node_modules/zod/v4/locales/tr.js +5 -0
  1553. package/node_modules/zod/v4/locales/uk.cjs +5 -0
  1554. package/node_modules/zod/v4/locales/uk.js +5 -0
  1555. package/node_modules/zod/v4/locales/ur.cjs +5 -0
  1556. package/node_modules/zod/v4/locales/ur.js +5 -0
  1557. package/node_modules/zod/v4/locales/uz.cjs +3 -0
  1558. package/node_modules/zod/v4/locales/uz.js +3 -0
  1559. package/node_modules/zod/v4/locales/vi.cjs +5 -0
  1560. package/node_modules/zod/v4/locales/vi.js +5 -0
  1561. package/node_modules/zod/v4/locales/yo.cjs +5 -0
  1562. package/node_modules/zod/v4/locales/yo.js +5 -0
  1563. package/node_modules/zod/v4/locales/zh-CN.cjs +5 -0
  1564. package/node_modules/zod/v4/locales/zh-CN.js +5 -0
  1565. package/node_modules/zod/v4/locales/zh-TW.cjs +5 -0
  1566. package/node_modules/zod/v4/locales/zh-TW.js +5 -0
  1567. package/node_modules/zod/v4/mini/checks.cjs +21 -1
  1568. package/node_modules/zod/v4/mini/checks.js +1 -1
  1569. package/node_modules/zod/v4/mini/coerce.cjs +19 -0
  1570. package/node_modules/zod/v4/mini/deep-partial.cjs +58 -0
  1571. package/node_modules/zod/v4/mini/deep-partial.js +13 -0
  1572. package/node_modules/zod/v4/mini/external.cjs +33 -1
  1573. package/node_modules/zod/v4/mini/external.js +3 -1
  1574. package/node_modules/zod/v4/mini/in-out.cjs +82 -0
  1575. package/node_modules/zod/v4/mini/in-out.js +36 -0
  1576. package/node_modules/zod/v4/mini/index.cjs +19 -0
  1577. package/node_modules/zod/v4/mini/iso.cjs +19 -0
  1578. package/node_modules/zod/v4/mini/parse.cjs +22 -1
  1579. package/node_modules/zod/v4/mini/parse.js +1 -1
  1580. package/node_modules/zod/v4/mini/schemas.cjs +117 -53
  1581. package/node_modules/zod/v4/mini/schemas.js +92 -51
  1582. package/node_modules/zod/v4-mini/index.cjs +19 -0
  1583. package/package.json +3 -3
  1584. package/node_modules/@ai-sdk/code-mode/dist/run-code-mode.js +0 -549
  1585. package/node_modules/@ai-sdk/code-mode/package.json +0 -78
  1586. package/node_modules/@ai-sdk/gateway/CHANGELOG.md +0 -3067
  1587. package/node_modules/@ai-sdk/gateway/dist/index.js +0 -3208
  1588. package/node_modules/@ai-sdk/gateway/docs/00-ai-gateway.mdx +0 -1297
  1589. package/node_modules/@ai-sdk/gateway/package.json +0 -80
  1590. package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider-utils/CHANGELOG.md +0 -2444
  1591. package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider-utils/README.md +0 -1
  1592. package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider-utils/dist/index.js +0 -4295
  1593. package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider-utils/package.json +0 -82
  1594. package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider-utils/src/to-json-schema/zod3-to-json-schema/LICENSE +0 -16
  1595. 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
  1596. package/node_modules/@ai-sdk/open-responses/node_modules/undici/LICENSE +0 -21
  1597. package/node_modules/@ai-sdk/open-responses/node_modules/undici/README.md +0 -741
  1598. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Agent.md +0 -84
  1599. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/BalancedPool.md +0 -99
  1600. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/CacheStorage.md +0 -30
  1601. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/CacheStore.md +0 -164
  1602. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Client.md +0 -288
  1603. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/ClientStats.md +0 -27
  1604. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Connector.md +0 -115
  1605. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/ContentType.md +0 -57
  1606. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Cookies.md +0 -128
  1607. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Debug.md +0 -62
  1608. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +0 -315
  1609. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Dispatcher.md +0 -1392
  1610. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +0 -159
  1611. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Errors.md +0 -49
  1612. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/EventSource.md +0 -45
  1613. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Fetch.md +0 -60
  1614. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/GlobalInstallation.md +0 -139
  1615. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/H2CClient.md +0 -263
  1616. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/MockAgent.md +0 -603
  1617. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/MockCallHistory.md +0 -197
  1618. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/MockCallHistoryLog.md +0 -43
  1619. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/MockClient.md +0 -81
  1620. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/MockErrors.md +0 -12
  1621. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/MockPool.md +0 -555
  1622. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Pool.md +0 -84
  1623. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/PoolStats.md +0 -35
  1624. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/ProxyAgent.md +0 -229
  1625. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/RedirectHandler.md +0 -93
  1626. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/RetryAgent.md +0 -50
  1627. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/RetryHandler.md +0 -118
  1628. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/RoundRobinPool.md +0 -145
  1629. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/SnapshotAgent.md +0 -616
  1630. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +0 -275
  1631. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Util.md +0 -25
  1632. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/WebSocket.md +0 -141
  1633. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/api-lifecycle.md +0 -91
  1634. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/best-practices/client-certificate.md +0 -64
  1635. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/best-practices/crawling.md +0 -58
  1636. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/best-practices/mocking-request.md +0 -190
  1637. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/best-practices/proxy.md +0 -127
  1638. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/best-practices/undici-vs-builtin-fetch.md +0 -224
  1639. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/best-practices/writing-tests.md +0 -63
  1640. package/node_modules/@ai-sdk/open-responses/node_modules/undici/index-fetch.js +0 -65
  1641. package/node_modules/@ai-sdk/open-responses/node_modules/undici/index.js +0 -234
  1642. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/abort-signal.js +0 -59
  1643. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/api-connect.js +0 -110
  1644. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/api-pipeline.js +0 -252
  1645. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/api-request.js +0 -214
  1646. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/api-stream.js +0 -209
  1647. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/api-upgrade.js +0 -111
  1648. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/index.js +0 -7
  1649. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/readable.js +0 -580
  1650. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/cache/memory-cache-store.js +0 -279
  1651. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/cache/sqlite-cache-store.js +0 -467
  1652. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/connect.js +0 -153
  1653. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/constants.js +0 -143
  1654. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/diagnostics.js +0 -227
  1655. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/errors.js +0 -477
  1656. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/request.js +0 -464
  1657. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/socks5-client.js +0 -422
  1658. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/socks5-utils.js +0 -212
  1659. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/symbols.js +0 -75
  1660. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/tree.js +0 -160
  1661. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/util.js +0 -992
  1662. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/agent.js +0 -158
  1663. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/balanced-pool.js +0 -219
  1664. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/client-h1.js +0 -1731
  1665. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/client-h2.js +0 -995
  1666. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/client.js +0 -664
  1667. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/dispatcher-base.js +0 -184
  1668. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/dispatcher.js +0 -48
  1669. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +0 -146
  1670. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/fixed-queue.js +0 -135
  1671. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/h2c-client.js +0 -51
  1672. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/pool-base.js +0 -214
  1673. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/pool.js +0 -118
  1674. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/proxy-agent.js +0 -319
  1675. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/retry-agent.js +0 -35
  1676. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/round-robin-pool.js +0 -137
  1677. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +0 -260
  1678. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/encoding/index.js +0 -33
  1679. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/global.js +0 -59
  1680. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/cache-handler.js +0 -760
  1681. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/cache-revalidation-handler.js +0 -124
  1682. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/decorator-handler.js +0 -67
  1683. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/deduplication-handler.js +0 -460
  1684. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/redirect-handler.js +0 -238
  1685. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/retry-handler.js +0 -418
  1686. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/unwrap-handler.js +0 -106
  1687. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/wrap-handler.js +0 -105
  1688. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/cache.js +0 -602
  1689. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/decompress.js +0 -259
  1690. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/deduplicate.js +0 -117
  1691. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/dns.js +0 -571
  1692. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/dump.js +0 -112
  1693. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/redirect.js +0 -21
  1694. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/response-error.js +0 -95
  1695. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/retry.js +0 -19
  1696. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/llhttp/.gitkeep +0 -0
  1697. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/llhttp/constants.js +0 -531
  1698. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/llhttp/llhttp-wasm.js +0 -15
  1699. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +0 -15
  1700. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/llhttp/utils.js +0 -12
  1701. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-agent.js +0 -232
  1702. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-call-history.js +0 -248
  1703. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-client.js +0 -68
  1704. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-errors.js +0 -29
  1705. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-interceptor.js +0 -209
  1706. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-pool.js +0 -68
  1707. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-symbols.js +0 -32
  1708. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-utils.js +0 -486
  1709. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/pending-interceptors-formatter.js +0 -43
  1710. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/snapshot-agent.js +0 -353
  1711. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/snapshot-recorder.js +0 -588
  1712. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/snapshot-utils.js +0 -158
  1713. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/util/cache.js +0 -676
  1714. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/util/date.js +0 -670
  1715. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/util/promise.js +0 -28
  1716. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/util/runtime-features.js +0 -124
  1717. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/util/stats.js +0 -32
  1718. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/util/timers.js +0 -425
  1719. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/cache/cache.js +0 -864
  1720. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/cache/cachestorage.js +0 -152
  1721. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/cache/util.js +0 -45
  1722. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/cookies/constants.js +0 -12
  1723. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/cookies/index.js +0 -199
  1724. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/cookies/parse.js +0 -314
  1725. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/cookies/util.js +0 -352
  1726. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/eventsource/eventsource-stream.js +0 -399
  1727. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/eventsource/eventsource.js +0 -501
  1728. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/eventsource/util.js +0 -29
  1729. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/LICENSE +0 -21
  1730. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/body.js +0 -509
  1731. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/constants.js +0 -131
  1732. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/data-url.js +0 -596
  1733. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/formdata-parser.js +0 -586
  1734. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/formdata.js +0 -259
  1735. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/global.js +0 -40
  1736. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/headers.js +0 -719
  1737. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/index.js +0 -2413
  1738. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/request.js +0 -1115
  1739. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/response.js +0 -641
  1740. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/util.js +0 -1522
  1741. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/infra/index.js +0 -229
  1742. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/subresource-integrity/Readme.md +0 -9
  1743. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +0 -307
  1744. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/webidl/index.js +0 -1006
  1745. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/connection.js +0 -329
  1746. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/constants.js +0 -126
  1747. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/events.js +0 -331
  1748. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/frame.js +0 -133
  1749. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/permessage-deflate.js +0 -100
  1750. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/receiver.js +0 -507
  1751. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/sender.js +0 -109
  1752. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/stream/websocketerror.js +0 -104
  1753. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/stream/websocketstream.js +0 -498
  1754. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/util.js +0 -347
  1755. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/websocket.js +0 -758
  1756. package/node_modules/@ai-sdk/open-responses/node_modules/undici/package.json +0 -152
  1757. package/node_modules/@ai-sdk/open-responses/node_modules/undici/scripts/strip-comments.js +0 -10
  1758. package/node_modules/@ai-sdk/open-responses/node_modules/undici/types/README.md +0 -6
  1759. package/node_modules/@ai-sdk/provider/CHANGELOG.md +0 -1218
  1760. package/node_modules/@ai-sdk/provider/package.json +0 -63
  1761. package/node_modules/@formatjs/icu-messageformat-parser/index.js +0 -2173
  1762. package/node_modules/@formatjs/icu-messageformat-parser/manipulator.js +0 -207
  1763. package/node_modules/@formatjs/icu-messageformat-parser/no-parser.js +0 -160
  1764. package/node_modules/@formatjs/icu-messageformat-parser/package.json +0 -21
  1765. package/node_modules/@formatjs/icu-messageformat-parser/printer.js +0 -224
  1766. package/node_modules/@maka/core/dist/deep-research-client-progress.js +0 -132
  1767. package/node_modules/@maka/core/dist/deep-research-run.js +0 -625
  1768. package/node_modules/@maka/core/dist/deep-research.js +0 -227
  1769. package/node_modules/@maka/core/dist/foreign-session.js +0 -596
  1770. package/node_modules/@maka/core/dist/task-ledger.js +0 -797
  1771. package/node_modules/@maka/core/dist/thread-search.js +0 -498
  1772. package/node_modules/@maka/eval/dist/maka-runtime-policy.js +0 -42
  1773. package/node_modules/@maka/runtime/dist/active-tool-result-prune.js +0 -334
  1774. package/node_modules/@maka/runtime/dist/active-tool-result-working-set.js +0 -218
  1775. package/node_modules/@maka/runtime/dist/archive-read-tool.js +0 -92
  1776. package/node_modules/@maka/runtime/dist/deep-research-tools.js +0 -741
  1777. package/node_modules/@maka/runtime/dist/history-tools.js +0 -429
  1778. package/node_modules/@maka/runtime/dist/provider-runtime-policy.js +0 -43
  1779. package/node_modules/@maka/runtime/dist/sandbox/diagnostics.js +0 -285
  1780. package/node_modules/@maka/runtime/dist/system-prompt/sandbox-context-prompt.js +0 -77
  1781. package/node_modules/@maka/runtime/dist/system-prompt/session-environment-prompt.js +0 -47
  1782. package/node_modules/@maka/runtime/dist/task-ledger-tools.js +0 -244
  1783. package/node_modules/@maka/runtime/dist/test-helpers.js +0 -61
  1784. package/node_modules/@maka/runtime/node_modules/@slack/types/dist/events/index.js +0 -43
  1785. package/node_modules/@maka/runtime/node_modules/@slack/types/package.json +0 -47
  1786. package/node_modules/@maka/runtime/node_modules/@slack/web-api/README.md +0 -390
  1787. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/methods.js +0 -1610
  1788. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/ChatAppendStreamResponse.js +0 -3
  1789. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/ChatStartStreamResponse.js +0 -3
  1790. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/ChatStopStreamResponse.js +0 -3
  1791. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/PinsListResponse.js +0 -37
  1792. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SearchAllResponse.js +0 -82
  1793. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SearchFilesResponse.js +0 -63
  1794. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsAccessDeleteResponse.js +0 -3
  1795. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsAccessSetResponse.js +0 -3
  1796. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsCreateResponse.js +0 -3
  1797. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsDownloadGetResponse.js +0 -3
  1798. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsDownloadStartResponse.js +0 -3
  1799. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsItemsCreateResponse.js +0 -3
  1800. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsItemsDeleteMultipleResponse.js +0 -3
  1801. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsItemsDeleteResponse.js +0 -3
  1802. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsItemsInfoResponse.js +0 -3
  1803. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsItemsListResponse.js +0 -3
  1804. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsItemsUpdateResponse.js +0 -3
  1805. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsUpdateResponse.js +0 -3
  1806. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedAddResponse.js +0 -3
  1807. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedListResponse.js +0 -3
  1808. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedRemoveResponse.js +0 -3
  1809. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedSetResponse.js +0 -3
  1810. package/node_modules/@maka/runtime/node_modules/@slack/web-api/package.json +0 -71
  1811. package/node_modules/@maka/runtime-host/dist/protocol/deep-research.js +0 -233
  1812. package/node_modules/@maka/runtime-host/dist/protocol/task-ledger.js +0 -321
  1813. package/node_modules/@maka/runtime-host/dist/server/deep-research-coordinator.js +0 -116
  1814. package/node_modules/@maka/runtime-host/dist/server/task-ledger-coordinator.js +0 -154
  1815. package/node_modules/@maka/storage/dist/artifact-storage-layout.js +0 -26
  1816. package/node_modules/@maka/storage/dist/deep-research-authority.js +0 -129
  1817. package/node_modules/@maka/storage/dist/deep-research-store.js +0 -343
  1818. package/node_modules/@maka/storage/dist/foreign-session-store.js +0 -641
  1819. package/node_modules/@maka/storage/dist/provider-request-capture-artifact.js +0 -31
  1820. package/node_modules/@maka/storage/dist/task-ledger-authority.js +0 -121
  1821. package/node_modules/@maka/storage/dist/task-ledger-store-internal.js +0 -32
  1822. package/node_modules/@maka/storage/dist/task-ledger-store.js +0 -663
  1823. package/node_modules/ai/CHANGELOG.md +0 -9971
  1824. package/node_modules/ai/dist/index.js +0 -18513
  1825. package/node_modules/ai/dist/internal/index.js +0 -3680
  1826. package/node_modules/ai/docs/02-foundations/02-providers-and-models.mdx +0 -179
  1827. package/node_modules/ai/docs/03-agents/04-loop-control.mdx +0 -515
  1828. package/node_modules/ai/docs/03-agents/06-policy-tool-approvals.mdx +0 -412
  1829. package/node_modules/ai/docs/03-agents/06-tool-approvals.mdx +0 -326
  1830. package/node_modules/ai/docs/03-agents/07-workflow-agent.mdx +0 -718
  1831. package/node_modules/ai/docs/03-ai-sdk-core/10-generating-structured-data.mdx +0 -513
  1832. package/node_modules/ai/docs/03-ai-sdk-core/15-tools-and-tool-calling.mdx +0 -1509
  1833. package/node_modules/ai/docs/03-ai-sdk-core/16-mcp-tools.mdx +0 -617
  1834. package/node_modules/ai/docs/03-ai-sdk-core/35-image-generation.mdx +0 -344
  1835. package/node_modules/ai/docs/03-ai-sdk-core/36-transcription.mdx +0 -332
  1836. package/node_modules/ai/docs/03-ai-sdk-core/37-speech.mdx +0 -180
  1837. package/node_modules/ai/docs/03-ai-sdk-core/39-file-uploads.mdx +0 -155
  1838. package/node_modules/ai/docs/03-ai-sdk-core/50-error-handling.mdx +0 -149
  1839. package/node_modules/ai/docs/03-ai-sdk-core/60-telemetry.mdx +0 -830
  1840. package/node_modules/ai/docs/03-ai-sdk-core/index.mdx +0 -132
  1841. package/node_modules/ai/docs/03-ai-sdk-harnesses/02-harness-agent.mdx +0 -495
  1842. package/node_modules/ai/docs/03-ai-sdk-harnesses/04-skills.mdx +0 -65
  1843. package/node_modules/ai/docs/03-ai-sdk-harnesses/05-harness-adapters.mdx +0 -45
  1844. package/node_modules/ai/docs/04-ai-sdk-ui/03-chatbot-tool-usage.mdx +0 -798
  1845. package/node_modules/ai/docs/04-ai-sdk-ui/20-streaming-data.mdx +0 -401
  1846. package/node_modules/ai/docs/04-ai-sdk-ui/21-transport.mdx +0 -212
  1847. package/node_modules/ai/docs/04-ai-sdk-ui/50-stream-protocol.mdx +0 -578
  1848. package/node_modules/ai/docs/06-advanced/04-caching.mdx +0 -175
  1849. package/node_modules/ai/docs/06-advanced/11-secure-url-fetching.mdx +0 -111
  1850. package/node_modules/ai/docs/07-reference/01-ai-sdk-core/01-generate-text.mdx +0 -3253
  1851. package/node_modules/ai/docs/07-reference/01-ai-sdk-core/02-stream-text.mdx +0 -4261
  1852. package/node_modules/ai/docs/07-reference/01-ai-sdk-core/05-embed.mdx +0 -304
  1853. package/node_modules/ai/docs/07-reference/01-ai-sdk-core/06-embed-many.mdx +0 -302
  1854. package/node_modules/ai/docs/07-reference/01-ai-sdk-core/06-rerank.mdx +0 -317
  1855. package/node_modules/ai/docs/07-reference/01-ai-sdk-core/10-generate-image.mdx +0 -252
  1856. package/node_modules/ai/docs/07-reference/01-ai-sdk-core/14-upload-file.mdx +0 -92
  1857. package/node_modules/ai/docs/07-reference/01-ai-sdk-core/16-tool-loop-agent.mdx +0 -1102
  1858. package/node_modules/ai/docs/07-reference/01-ai-sdk-core/28-output.mdx +0 -342
  1859. package/node_modules/ai/docs/07-reference/01-ai-sdk-core/31-ui-message.mdx +0 -268
  1860. package/node_modules/ai/docs/07-reference/01-ai-sdk-core/80-smooth-stream.mdx +0 -145
  1861. package/node_modules/ai/docs/07-reference/01-ai-sdk-core/index.mdx +0 -225
  1862. package/node_modules/ai/docs/07-reference/02-ai-sdk-ui/01-use-chat.mdx +0 -493
  1863. package/node_modules/ai/docs/07-reference/02-ai-sdk-ui/31-convert-to-model-messages.mdx +0 -256
  1864. package/node_modules/ai/docs/07-reference/02-ai-sdk-ui/40-create-ui-message-stream.mdx +0 -166
  1865. package/node_modules/ai/docs/07-reference/02-ai-sdk-ui/41-create-ui-message-stream-response.mdx +0 -120
  1866. package/node_modules/ai/docs/07-reference/04-ai-sdk-workflow/01-workflow-agent.mdx +0 -954
  1867. package/node_modules/ai/docs/07-reference/04-ai-sdk-workflow/02-workflow-chat-transport.mdx +0 -347
  1868. package/node_modules/ai/docs/07-reference/04-ai-sdk-workflow/index.mdx +0 -26
  1869. package/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-invalid-argument-error.mdx +0 -26
  1870. package/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-no-image-generated-error.mdx +0 -36
  1871. package/node_modules/ai/docs/07-reference/05-ai-sdk-errors/index.mdx +0 -41
  1872. package/node_modules/ai/package.json +0 -117
  1873. package/node_modules/intl-messageformat/intl-messageformat.iife.js +0 -2807
  1874. package/node_modules/intl-messageformat/package.json +0 -40
  1875. package/node_modules/socks/.eslintrc.cjs +0 -11
  1876. /package/node_modules/@ai-sdk/{code-mode → anthropic/node_modules/@ai-sdk/provider}/LICENSE +0 -0
  1877. /package/node_modules/@ai-sdk/{provider → anthropic/node_modules/@ai-sdk/provider}/README.md +0 -0
  1878. /package/node_modules/@ai-sdk/{provider → anthropic/node_modules/@ai-sdk/provider}/dist/index.js +0 -0
  1879. /package/node_modules/@ai-sdk/{gateway → cohere/node_modules/@ai-sdk/provider}/LICENSE +0 -0
  1880. /package/node_modules/@ai-sdk/{provider → google/node_modules/@ai-sdk/provider}/LICENSE +0 -0
  1881. /package/node_modules/{ai → @ai-sdk/openai-compatible/node_modules/@ai-sdk/provider}/LICENSE +0 -0
  1882. /package/node_modules/@maka/{storage/dist/artifact-metadata-repository.js → core/dist/client-plugin-bridge.js} +0 -0
  1883. /package/node_modules/{@formatjs → @maka/core/node_modules/@formatjs}/icu-messageformat-parser/LICENSE.md +0 -0
  1884. /package/node_modules/{@formatjs → @maka/core/node_modules/@formatjs}/icu-messageformat-parser/README.md +0 -0
  1885. /package/node_modules/{intl-messageformat → @maka/core/node_modules/intl-messageformat}/LICENSE.md +0 -0
  1886. /package/node_modules/{intl-messageformat → @maka/core/node_modules/intl-messageformat}/README.md +0 -0
  1887. /package/node_modules/{intl-messageformat → @maka/core/node_modules/intl-messageformat}/index.js +0 -0
  1888. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/README.md +0 -0
  1889. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/approval-continuation.js +0 -0
  1890. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/approval.js +0 -0
  1891. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/code-mode-tool.js +0 -0
  1892. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/continuation-capability.js +0 -0
  1893. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/direct-tool-call.js +0 -0
  1894. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/errors.js +0 -0
  1895. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/host-interrupt.js +0 -0
  1896. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/index.js +0 -0
  1897. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/interrupt-continuation.js +0 -0
  1898. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/tool-invocation.js +0 -0
  1899. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/tool-prompt.js +0 -0
  1900. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/types.js +0 -0
  1901. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/utils/serialization.js +0 -0
  1902. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/src/tsconfig.json +0 -0
  1903. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/gateway/README.md +0 -0
  1904. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/README.md +0 -0
  1905. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/00-introduction/index.mdx +0 -0
  1906. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-foundations/01-overview.mdx +0 -0
  1907. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-foundations/03-prompts.mdx +0 -0
  1908. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-foundations/04-tools.mdx +0 -0
  1909. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-foundations/05-streaming.mdx +0 -0
  1910. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-foundations/06-provider-options.mdx +0 -0
  1911. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-foundations/index.mdx +0 -0
  1912. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/00-choosing-a-provider.mdx +0 -0
  1913. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/01-navigating-the-library.mdx +0 -0
  1914. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/02-nextjs-app-router.mdx +0 -0
  1915. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/03-nextjs-pages-router.mdx +0 -0
  1916. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/04-svelte.mdx +0 -0
  1917. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/05-nuxt.mdx +0 -0
  1918. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/06-nodejs.mdx +0 -0
  1919. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/07-expo.mdx +0 -0
  1920. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/08-tanstack-start.mdx +0 -0
  1921. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/09-coding-agents.mdx +0 -0
  1922. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/index.mdx +0 -0
  1923. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-agents/01-overview.mdx +0 -0
  1924. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-agents/02-building-agents.mdx +0 -0
  1925. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-agents/03-workflows.mdx +0 -0
  1926. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-agents/05-configuring-call-options.mdx +0 -0
  1927. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-agents/06-memory.mdx +0 -0
  1928. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-agents/06-subagents.mdx +0 -0
  1929. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-agents/08-terminal-ui.mdx +0 -0
  1930. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-agents/index.mdx +0 -0
  1931. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/01-overview.mdx +0 -0
  1932. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/05-generating-text.mdx +0 -0
  1933. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/17-mcp-apps.mdx +0 -0
  1934. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/17-runtime-and-tool-context.mdx +0 -0
  1935. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/18-code-mode.mdx +0 -0
  1936. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/20-prompt-engineering.mdx +0 -0
  1937. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/25-settings.mdx +0 -0
  1938. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/26-reasoning.mdx +0 -0
  1939. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/30-embeddings.mdx +0 -0
  1940. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/31-reranking.mdx +0 -0
  1941. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/36-realtime.mdx +0 -0
  1942. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/36-translation.mdx +0 -0
  1943. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/38-video-generation.mdx +0 -0
  1944. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/40-middleware.mdx +0 -0
  1945. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/41-skill-uploads.mdx +0 -0
  1946. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/45-provider-management.mdx +0 -0
  1947. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/55-testing.mdx +0 -0
  1948. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/65-devtools.mdx +0 -0
  1949. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/65-lifecycle-callbacks.mdx +0 -0
  1950. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-harnesses/01-overview.mdx +0 -0
  1951. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-harnesses/03-tools.mdx +0 -0
  1952. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-harnesses/06-workflow-utilities.mdx +0 -0
  1953. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-harnesses/07-ui.mdx +0 -0
  1954. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-harnesses/08-terminal-ui.mdx +0 -0
  1955. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-harnesses/index.mdx +0 -0
  1956. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/01-overview.mdx +0 -0
  1957. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/02-chatbot.mdx +0 -0
  1958. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/03-chatbot-message-persistence.mdx +0 -0
  1959. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/03-chatbot-resume-streams.mdx +0 -0
  1960. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/04-generative-user-interfaces.mdx +0 -0
  1961. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/05-completion.mdx +0 -0
  1962. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/08-object-generation.mdx +0 -0
  1963. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/21-error-handling.mdx +0 -0
  1964. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/24-reading-ui-message-streams.mdx +0 -0
  1965. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/25-message-metadata.mdx +0 -0
  1966. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/index.mdx +0 -0
  1967. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/01-overview.mdx +0 -0
  1968. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/02-streaming-react-components.mdx +0 -0
  1969. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/03-generative-ui-state.mdx +0 -0
  1970. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/03-saving-and-restoring-states.mdx +0 -0
  1971. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/04-multistep-interfaces.mdx +0 -0
  1972. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/05-streaming-values.mdx +0 -0
  1973. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/06-loading-state.mdx +0 -0
  1974. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/08-error-handling.mdx +0 -0
  1975. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/09-authentication.mdx +0 -0
  1976. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/10-migrating-to-ui.mdx +0 -0
  1977. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/index.mdx +0 -0
  1978. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/01-prompt-engineering.mdx +0 -0
  1979. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/02-stopping-streams.mdx +0 -0
  1980. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/03-backpressure.mdx +0 -0
  1981. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/05-multiple-streamables.mdx +0 -0
  1982. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/06-rate-limiting.mdx +0 -0
  1983. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/07-rendering-ui-with-language-models.mdx +0 -0
  1984. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/08-model-as-router.mdx +0 -0
  1985. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/09-multistep-interfaces.mdx +0 -0
  1986. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/09-sequential-generations.mdx +0 -0
  1987. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/10-vercel-deployment-guide.mdx +0 -0
  1988. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/index.mdx +0 -0
  1989. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/11-stream-transcribe.mdx +0 -0
  1990. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/11-stream-translate.mdx +0 -0
  1991. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/11-transcribe.mdx +0 -0
  1992. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/12-generate-speech.mdx +0 -0
  1993. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/13-generate-video.mdx +0 -0
  1994. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/14-upload-skill.mdx +0 -0
  1995. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/15-agent.mdx +0 -0
  1996. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/17-create-agent-ui-stream.mdx +0 -0
  1997. /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
  1998. /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
  1999. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/20-tool.mdx +0 -0
  2000. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/22-dynamic-tool.mdx +0 -0
  2001. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/23-create-mcp-client.mdx +0 -0
  2002. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/23-get-realtime-tool-definitions.mdx +0 -0
  2003. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/24-mcp-apps.mdx +0 -0
  2004. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/24-mcp-stdio-transport.mdx +0 -0
  2005. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/25-json-schema.mdx +0 -0
  2006. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/26-zod-schema.mdx +0 -0
  2007. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/27-valibot-schema.mdx +0 -0
  2008. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/29-filter-active-tools.mdx +0 -0
  2009. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/30-model-message.mdx +0 -0
  2010. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/32-validate-ui-messages.mdx +0 -0
  2011. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/33-safe-validate-ui-messages.mdx +0 -0
  2012. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/34-sandbox.mdx +0 -0
  2013. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/40-provider-registry.mdx +0 -0
  2014. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/42-custom-provider.mdx +0 -0
  2015. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/50-cosine-similarity.mdx +0 -0
  2016. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/60-wrap-language-model.mdx +0 -0
  2017. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/61-wrap-image-model.mdx +0 -0
  2018. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/65-language-model-v2-middleware.mdx +0 -0
  2019. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/66-extract-reasoning-middleware.mdx +0 -0
  2020. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/67-simulate-streaming-middleware.mdx +0 -0
  2021. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/68-default-instructions-middleware.mdx +0 -0
  2022. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/68-default-settings-middleware.mdx +0 -0
  2023. /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
  2024. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/70-extract-json-middleware.mdx +0 -0
  2025. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/70-is-step-count.mdx +0 -0
  2026. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/71-has-tool-call.mdx +0 -0
  2027. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/72-loop-finished.mdx +0 -0
  2028. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/75-simulate-readable-stream.mdx +0 -0
  2029. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/90-generate-id.mdx +0 -0
  2030. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/91-create-id-generator.mdx +0 -0
  2031. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/92-default-generated-file.mdx +0 -0
  2032. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/02-use-completion.mdx +0 -0
  2033. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/03-use-object.mdx +0 -0
  2034. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/05-use-realtime.mdx +0 -0
  2035. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/32-prune-messages.mdx +0 -0
  2036. /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
  2037. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/43-read-ui-message-stream.mdx +0 -0
  2038. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/46-infer-ui-tools.mdx +0 -0
  2039. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/47-infer-ui-tool.mdx +0 -0
  2040. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/48-mcp-app-renderer.mdx +0 -0
  2041. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/50-direct-chat-transport.mdx +0 -0
  2042. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/index.mdx +0 -0
  2043. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/01-stream-ui.mdx +0 -0
  2044. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/02-create-ai.mdx +0 -0
  2045. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/03-create-streamable-ui.mdx +0 -0
  2046. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/04-create-streamable-value.mdx +0 -0
  2047. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/05-read-streamable-value.mdx +0 -0
  2048. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/06-get-ai-state.mdx +0 -0
  2049. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/07-get-mutable-ai-state.mdx +0 -0
  2050. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/08-use-ai-state.mdx +0 -0
  2051. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/09-use-actions.mdx +0 -0
  2052. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/10-use-ui-state.mdx +0 -0
  2053. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/11-use-streamable-value.mdx +0 -0
  2054. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/20-render.mdx +0 -0
  2055. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/index.mdx +0 -0
  2056. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-api-call-error.mdx +0 -0
  2057. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-download-error.mdx +0 -0
  2058. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-empty-response-body-error.mdx +0 -0
  2059. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-invalid-data-content-error.mdx +0 -0
  2060. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-invalid-message-role-error.mdx +0 -0
  2061. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-invalid-prompt-error.mdx +0 -0
  2062. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-invalid-response-data-error.mdx +0 -0
  2063. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-invalid-tool-approval-error.mdx +0 -0
  2064. /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
  2065. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-invalid-tool-input-error.mdx +0 -0
  2066. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-json-parse-error.mdx +0 -0
  2067. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-load-api-key-error.mdx +0 -0
  2068. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-load-setting-error.mdx +0 -0
  2069. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-message-conversion-error.mdx +0 -0
  2070. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-content-generated-error.mdx +0 -0
  2071. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-object-generated-error.mdx +0 -0
  2072. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-output-generated-error.mdx +0 -0
  2073. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-speech-generated-error.mdx +0 -0
  2074. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-such-model-error.mdx +0 -0
  2075. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-such-provider-error.mdx +0 -0
  2076. /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
  2077. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-such-tool-error.mdx +0 -0
  2078. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-transcript-generated-error.mdx +0 -0
  2079. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-translation-generated-error.mdx +0 -0
  2080. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-video-generated-error.mdx +0 -0
  2081. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-retry-error.mdx +0 -0
  2082. /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
  2083. /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
  2084. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-tool-call-repair-error.mdx +0 -0
  2085. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-type-validation-error.mdx +0 -0
  2086. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-ui-message-stream-error.mdx +0 -0
  2087. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-unsupported-functionality-error.mdx +0 -0
  2088. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/06-ai-sdk-tui/01-run-agent-tui.mdx +0 -0
  2089. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/06-ai-sdk-tui/index.mdx +0 -0
  2090. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/index.mdx +0 -0
  2091. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/00-versioning.mdx +0 -0
  2092. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/23-migration-guide-7-0.mdx +0 -0
  2093. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/24-migration-guide-6-0.mdx +0 -0
  2094. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/25-migration-guide-5-0-data.mdx +0 -0
  2095. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/26-migration-guide-5-0.mdx +0 -0
  2096. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/27-migration-guide-4-2.mdx +0 -0
  2097. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/28-migration-guide-4-1.mdx +0 -0
  2098. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/29-migration-guide-4-0.mdx +0 -0
  2099. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/36-migration-guide-3-4.mdx +0 -0
  2100. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/37-migration-guide-3-3.mdx +0 -0
  2101. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/38-migration-guide-3-2.mdx +0 -0
  2102. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/39-migration-guide-3-1.mdx +0 -0
  2103. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/index.mdx +0 -0
  2104. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/01-azure-stream-slow.mdx +0 -0
  2105. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/03-server-actions-in-client-components.mdx +0 -0
  2106. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/04-strange-stream-output.mdx +0 -0
  2107. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/05-streamable-ui-errors.mdx +0 -0
  2108. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/05-tool-invocation-missing-result.mdx +0 -0
  2109. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/06-streaming-not-working-when-deployed.mdx +0 -0
  2110. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/06-streaming-not-working-when-proxied.mdx +0 -0
  2111. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/06-timeout-on-vercel.mdx +0 -0
  2112. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/07-unclosed-streams.mdx +0 -0
  2113. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/08-use-chat-failed-to-parse-stream.mdx +0 -0
  2114. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/09-client-stream-error.mdx +0 -0
  2115. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/10-use-chat-tools-no-response.mdx +0 -0
  2116. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/11-use-chat-custom-request-options.mdx +0 -0
  2117. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/12-typescript-performance-zod.mdx +0 -0
  2118. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/12-use-chat-an-error-occurred.mdx +0 -0
  2119. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/13-repeated-assistant-messages.mdx +0 -0
  2120. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/14-stream-abort-handling.mdx +0 -0
  2121. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/14-tool-calling-with-structured-outputs.mdx +0 -0
  2122. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/15-abort-breaks-resumable-streams.mdx +0 -0
  2123. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/15-stream-text-not-working.mdx +0 -0
  2124. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/16-streaming-status-delay.mdx +0 -0
  2125. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/17-use-chat-stale-body-data.mdx +0 -0
  2126. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/18-ontoolcall-type-narrowing.mdx +0 -0
  2127. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/19-unsupported-model-version.mdx +0 -0
  2128. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/20-no-object-generated-content-filter.mdx +0 -0
  2129. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/21-missing-tool-results-error.mdx +0 -0
  2130. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/30-model-is-not-assignable-to-type.mdx +0 -0
  2131. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/40-typescript-cannot-find-namespace-jsx.mdx +0 -0
  2132. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/50-react-maximum-update-depth-exceeded.mdx +0 -0
  2133. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/60-jest-cannot-find-module-ai-rsc.mdx +0 -0
  2134. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/70-high-memory-usage-with-images.mdx +0 -0
  2135. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/index.mdx +0 -0
  2136. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/logger/LICENSE +0 -0
  2137. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/logger/README.md +0 -0
  2138. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/logger/dist/index.js +0 -0
  2139. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/logger/package.json +0 -0
  2140. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/LICENSE +0 -0
  2141. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/README.md +0 -0
  2142. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/block-kit/block-elements.js +0 -0
  2143. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/block-kit/blocks.js +0 -0
  2144. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/block-kit/composition-objects.js +0 -0
  2145. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/block-kit/extensions.js +0 -0
  2146. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/calls.js +0 -0
  2147. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/chunk.js +0 -0
  2148. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/common/bot-profile.js +0 -0
  2149. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/common/status-emoji-display-info.js +0 -0
  2150. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/dialog.js +0 -0
  2151. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/app.js +0 -0
  2152. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/assistant.js +0 -0
  2153. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/call.js +0 -0
  2154. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/channel.js +0 -0
  2155. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/dnd.js +0 -0
  2156. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/email.js +0 -0
  2157. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/emoji.js +0 -0
  2158. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/entity-details-requested.js +0 -0
  2159. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/file.js +0 -0
  2160. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/function.js +0 -0
  2161. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/grid-migration.js +0 -0
  2162. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/group.js +0 -0
  2163. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/im.js +0 -0
  2164. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/invite.js +0 -0
  2165. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/link-shared.js +0 -0
  2166. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/member.js +0 -0
  2167. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/message-metadata.js +0 -0
  2168. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/message.js +0 -0
  2169. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/pin.js +0 -0
  2170. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/reaction.js +0 -0
  2171. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/shared-channel.js +0 -0
  2172. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/star.js +0 -0
  2173. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/steps-from-apps.js +0 -0
  2174. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/subteam.js +0 -0
  2175. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/team.js +0 -0
  2176. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/token.js +0 -0
  2177. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/user.js +0 -0
  2178. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/index.js +0 -0
  2179. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/message-attachments.js +0 -0
  2180. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/message-metadata.js +0 -0
  2181. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/views.js +0 -0
  2182. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/LICENSE +0 -0
  2183. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/WebClient.js +0 -0
  2184. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/chat-stream.js +0 -0
  2185. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/errors.js +0 -0
  2186. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/file-upload.js +0 -0
  2187. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/helpers.js +0 -0
  2188. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/index.js +0 -0
  2189. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/instrument.js +0 -0
  2190. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/logger.js +0 -0
  2191. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/retry-policies.js +0 -0
  2192. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/helpers.js +0 -0
  2193. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/analytics.js +0 -0
  2194. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/apps.js +0 -0
  2195. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/auth.js +0 -0
  2196. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/barriers.js +0 -0
  2197. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/conversations.js +0 -0
  2198. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/emoji.js +0 -0
  2199. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/functions.js +0 -0
  2200. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/inviteRequests.js +0 -0
  2201. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/roles.js +0 -0
  2202. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/teams.js +0 -0
  2203. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/usergroups.js +0 -0
  2204. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/users.js +0 -0
  2205. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/workflows.js +0 -0
  2206. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/api.js +0 -0
  2207. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/apps.js +0 -0
  2208. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/assistant.js +0 -0
  2209. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/auth.js +0 -0
  2210. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/bookmarks.js +0 -0
  2211. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/bots.js +0 -0
  2212. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/calls.js +0 -0
  2213. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/canvas.js +0 -0
  2214. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/chat.js +0 -0
  2215. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/common.js +0 -0
  2216. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/conversations.js +0 -0
  2217. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/dialog.js +0 -0
  2218. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/dnd.js +0 -0
  2219. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/emoji.js +0 -0
  2220. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/entity.js +0 -0
  2221. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/files.js +0 -0
  2222. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/functions.js +0 -0
  2223. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/index.js +0 -0
  2224. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/manifest.js +0 -0
  2225. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/migration.js +0 -0
  2226. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/oauth.js +0 -0
  2227. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/openid.js +0 -0
  2228. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/pins.js +0 -0
  2229. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/reactions.js +0 -0
  2230. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/reminders.js +0 -0
  2231. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/rtm.js +0 -0
  2232. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/search.js +0 -0
  2233. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/slackLists.js +0 -0
  2234. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/stars.js +0 -0
  2235. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/team.js +0 -0
  2236. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/tooling.js +0 -0
  2237. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/usergroups.js +0 -0
  2238. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/users.js +0 -0
  2239. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/views.js +0 -0
  2240. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/workflows.js +0 -0
  2241. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAnalyticsGetFileResponse.js +0 -0
  2242. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsActivitiesListResponse.js +0 -0
  2243. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsApproveResponse.js +0 -0
  2244. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsApprovedListResponse.js +0 -0
  2245. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsClearResolutionResponse.js +0 -0
  2246. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsConfigLookupResponse.js +0 -0
  2247. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsConfigSetResponse.js +0 -0
  2248. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsRequestsCancelResponse.js +0 -0
  2249. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsRequestsListResponse.js +0 -0
  2250. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsRestrictResponse.js +0 -0
  2251. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsRestrictedListResponse.js +0 -0
  2252. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsUninstallResponse.js +0 -0
  2253. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAuthPolicyAssignEntitiesResponse.js +0 -0
  2254. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAuthPolicyGetEntitiesResponse.js +0 -0
  2255. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAuthPolicyRemoveEntitiesResponse.js +0 -0
  2256. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminBarriersCreateResponse.js +0 -0
  2257. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminBarriersDeleteResponse.js +0 -0
  2258. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminBarriersListResponse.js +0 -0
  2259. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminBarriersUpdateResponse.js +0 -0
  2260. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsArchiveResponse.js +0 -0
  2261. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsBulkArchiveResponse.js +0 -0
  2262. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsBulkDeleteResponse.js +0 -0
  2263. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsBulkMoveResponse.js +0 -0
  2264. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsConvertToPrivateResponse.js +0 -0
  2265. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsConvertToPublicResponse.js +0 -0
  2266. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsCreateResponse.js +0 -0
  2267. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsDeleteResponse.js +0 -0
  2268. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsDisconnectSharedResponse.js +0 -0
  2269. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsEkmListOriginalConnectedChannelInfoResponse.js +0 -0
  2270. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsGetConversationPrefsResponse.js +0 -0
  2271. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsGetCustomRetentionResponse.js +0 -0
  2272. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsGetTeamsResponse.js +0 -0
  2273. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsInviteResponse.js +0 -0
  2274. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsLookupResponse.js +0 -0
  2275. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsRemoveCustomRetentionResponse.js +0 -0
  2276. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsRenameResponse.js +0 -0
  2277. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsRestrictAccessAddGroupResponse.js +0 -0
  2278. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsRestrictAccessListGroupsResponse.js +0 -0
  2279. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsRestrictAccessRemoveGroupResponse.js +0 -0
  2280. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsSearchResponse.js +0 -0
  2281. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsSetConversationPrefsResponse.js +0 -0
  2282. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsSetCustomRetentionResponse.js +0 -0
  2283. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsSetTeamsResponse.js +0 -0
  2284. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsUnarchiveResponse.js +0 -0
  2285. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsWhitelistAddResponse.js +0 -0
  2286. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsWhitelistListGroupsLinkedToChannelResponse.js +0 -0
  2287. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsWhitelistRemoveResponse.js +0 -0
  2288. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminEmojiAddAliasResponse.js +0 -0
  2289. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminEmojiAddResponse.js +0 -0
  2290. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminEmojiListResponse.js +0 -0
  2291. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminEmojiRemoveResponse.js +0 -0
  2292. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminEmojiRenameResponse.js +0 -0
  2293. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminFunctionsListResponse.js +0 -0
  2294. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminFunctionsPermissionsLookupResponse.js +0 -0
  2295. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminFunctionsPermissionsSetResponse.js +0 -0
  2296. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminInviteRequestsApproveResponse.js +0 -0
  2297. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminInviteRequestsApprovedListResponse.js +0 -0
  2298. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminInviteRequestsDeniedListResponse.js +0 -0
  2299. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminInviteRequestsDenyResponse.js +0 -0
  2300. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminInviteRequestsListResponse.js +0 -0
  2301. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminRolesAddAssignmentsResponse.js +0 -0
  2302. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminRolesListAssignmentsResponse.js +0 -0
  2303. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminRolesRemoveAssignmentsResponse.js +0 -0
  2304. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsAdminsListResponse.js +0 -0
  2305. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsCreateResponse.js +0 -0
  2306. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsListResponse.js +0 -0
  2307. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsOwnersListResponse.js +0 -0
  2308. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsSettingsInfoResponse.js +0 -0
  2309. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsSettingsSetDefaultChannelsResponse.js +0 -0
  2310. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsSettingsSetDescriptionResponse.js +0 -0
  2311. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsSettingsSetDiscoverabilityResponse.js +0 -0
  2312. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsSettingsSetIconResponse.js +0 -0
  2313. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsSettingsSetNameResponse.js +0 -0
  2314. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsergroupsAddChannelsResponse.js +0 -0
  2315. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsergroupsAddTeamsResponse.js +0 -0
  2316. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsergroupsListChannelsResponse.js +0 -0
  2317. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsergroupsRemoveChannelsResponse.js +0 -0
  2318. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersAssignResponse.js +0 -0
  2319. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersInviteResponse.js +0 -0
  2320. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersListResponse.js +0 -0
  2321. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersRemoveResponse.js +0 -0
  2322. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSessionClearSettingsResponse.js +0 -0
  2323. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSessionGetSettingsResponse.js +0 -0
  2324. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSessionInvalidateResponse.js +0 -0
  2325. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSessionListResponse.js +0 -0
  2326. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSessionResetBulkResponse.js +0 -0
  2327. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSessionResetResponse.js +0 -0
  2328. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSessionSetSettingsResponse.js +0 -0
  2329. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSetAdminResponse.js +0 -0
  2330. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSetExpirationResponse.js +0 -0
  2331. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSetOwnerResponse.js +0 -0
  2332. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSetRegularResponse.js +0 -0
  2333. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersUnsupportedVersionsExportResponse.js +0 -0
  2334. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminWorkflowsCollaboratorsAddResponse.js +0 -0
  2335. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminWorkflowsCollaboratorsRemoveResponse.js +0 -0
  2336. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminWorkflowsPermissionsLookupResponse.js +0 -0
  2337. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminWorkflowsSearchResponse.js +0 -0
  2338. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminWorkflowsUnpublishResponse.js +0 -0
  2339. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ApiTestResponse.js +0 -0
  2340. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsConnectionsOpenResponse.js +0 -0
  2341. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsEventAuthorizationsListResponse.js +0 -0
  2342. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsManifestCreateResponse.js +0 -0
  2343. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsManifestDeleteResponse.js +0 -0
  2344. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsManifestExportResponse.js +0 -0
  2345. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsManifestUpdateResponse.js +0 -0
  2346. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsManifestValidateResponse.js +0 -0
  2347. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsPermissionsInfoResponse.js +0 -0
  2348. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsPermissionsRequestResponse.js +0 -0
  2349. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsPermissionsResourcesListResponse.js +0 -0
  2350. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsPermissionsScopesListResponse.js +0 -0
  2351. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsPermissionsUsersListResponse.js +0 -0
  2352. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsPermissionsUsersRequestResponse.js +0 -0
  2353. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsUninstallResponse.js +0 -0
  2354. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsUserConnectionUpdateResponse.js +0 -0
  2355. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AssistantThreadsSetStatusResponse.js +0 -0
  2356. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AssistantThreadsSetSuggestedPromptsResponse.js +0 -0
  2357. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AssistantThreadsSetTitleResponse.js +0 -0
  2358. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AuthRevokeResponse.js +0 -0
  2359. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AuthTeamsListResponse.js +0 -0
  2360. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AuthTestResponse.js +0 -0
  2361. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/BookmarksAddResponse.js +0 -0
  2362. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/BookmarksEditResponse.js +0 -0
  2363. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/BookmarksListResponse.js +0 -0
  2364. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/BookmarksRemoveResponse.js +0 -0
  2365. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/BotsInfoResponse.js +0 -0
  2366. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CallsAddResponse.js +0 -0
  2367. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CallsEndResponse.js +0 -0
  2368. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CallsInfoResponse.js +0 -0
  2369. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CallsParticipantsAddResponse.js +0 -0
  2370. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CallsParticipantsRemoveResponse.js +0 -0
  2371. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CallsUpdateResponse.js +0 -0
  2372. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CanvasesAccessDeleteResponse.js +0 -0
  2373. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CanvasesAccessSetResponse.js +0 -0
  2374. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CanvasesCreateResponse.js +0 -0
  2375. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CanvasesDeleteResponse.js +0 -0
  2376. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CanvasesEditResponse.js +0 -0
  2377. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CanvasesSectionsLookupResponse.js +0 -0
  2378. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsArchiveResponse.js +0 -0
  2379. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsCreateResponse.js +0 -0
  2380. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsHistoryResponse.js +0 -0
  2381. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsInfoResponse.js +0 -0
  2382. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsInviteResponse.js +0 -0
  2383. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsJoinResponse.js +0 -0
  2384. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsKickResponse.js +0 -0
  2385. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsLeaveResponse.js +0 -0
  2386. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsListResponse.js +0 -0
  2387. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsMarkResponse.js +0 -0
  2388. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsRenameResponse.js +0 -0
  2389. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsRepliesResponse.js +0 -0
  2390. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsSetPurposeResponse.js +0 -0
  2391. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsSetTopicResponse.js +0 -0
  2392. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsUnarchiveResponse.js +0 -0
  2393. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatDeleteResponse.js +0 -0
  2394. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatDeleteScheduledMessageResponse.js +0 -0
  2395. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatGetPermalinkResponse.js +0 -0
  2396. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatMeMessageResponse.js +0 -0
  2397. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatPostEphemeralResponse.js +0 -0
  2398. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatPostMessageResponse.js +0 -0
  2399. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatScheduleMessageResponse.js +0 -0
  2400. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatScheduledMessagesListResponse.js +0 -0
  2401. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatUnfurlResponse.js +0 -0
  2402. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatUpdateResponse.js +0 -0
  2403. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsAcceptSharedInviteResponse.js +0 -0
  2404. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsApproveSharedInviteResponse.js +0 -0
  2405. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsArchiveResponse.js +0 -0
  2406. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsCanvasesCreateResponse.js +0 -0
  2407. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsCloseResponse.js +0 -0
  2408. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsCreateResponse.js +0 -0
  2409. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsDeclineSharedInviteResponse.js +0 -0
  2410. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsExternalInvitePermissionsSetResponse.js +0 -0
  2411. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsHistoryResponse.js +0 -0
  2412. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsInfoResponse.js +0 -0
  2413. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsInviteResponse.js +0 -0
  2414. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsInviteSharedResponse.js +0 -0
  2415. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsJoinResponse.js +0 -0
  2416. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsKickResponse.js +0 -0
  2417. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsLeaveResponse.js +0 -0
  2418. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsListConnectInvitesResponse.js +0 -0
  2419. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsListResponse.js +0 -0
  2420. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsMarkResponse.js +0 -0
  2421. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsMembersResponse.js +0 -0
  2422. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsOpenResponse.js +0 -0
  2423. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsRenameResponse.js +0 -0
  2424. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsRepliesResponse.js +0 -0
  2425. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsRequestSharedInviteApproveResponse.js +0 -0
  2426. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsRequestSharedInviteDenyResponse.js +0 -0
  2427. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsRequestSharedInviteListResponse.js +0 -0
  2428. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsSetPurposeResponse.js +0 -0
  2429. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsSetTopicResponse.js +0 -0
  2430. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsUnarchiveResponse.js +0 -0
  2431. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/DialogOpenResponse.js +0 -0
  2432. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/DndEndDndResponse.js +0 -0
  2433. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/DndEndSnoozeResponse.js +0 -0
  2434. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/DndInfoResponse.js +0 -0
  2435. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/DndSetSnoozeResponse.js +0 -0
  2436. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/DndTeamInfoResponse.js +0 -0
  2437. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/EmojiListResponse.js +0 -0
  2438. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/EntityPresentDetailsResponse.js +0 -0
  2439. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesCommentsAddResponse.js +0 -0
  2440. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesCommentsDeleteResponse.js +0 -0
  2441. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesCommentsEditResponse.js +0 -0
  2442. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesCompleteUploadExternalResponse.js +0 -0
  2443. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesDeleteResponse.js +0 -0
  2444. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesGetUploadURLExternalResponse.js +0 -0
  2445. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesInfoResponse.js +0 -0
  2446. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesListResponse.js +0 -0
  2447. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesRemoteAddResponse.js +0 -0
  2448. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesRemoteInfoResponse.js +0 -0
  2449. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesRemoteListResponse.js +0 -0
  2450. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesRemoteRemoveResponse.js +0 -0
  2451. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesRemoteShareResponse.js +0 -0
  2452. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesRemoteUpdateResponse.js +0 -0
  2453. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesRevokePublicURLResponse.js +0 -0
  2454. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesSharedPublicURLResponse.js +0 -0
  2455. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesUploadResponse.js +0 -0
  2456. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FunctionsCompleteErrorResponse.js +0 -0
  2457. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FunctionsCompleteSuccessResponse.js +0 -0
  2458. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsArchiveResponse.js +0 -0
  2459. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsCloseResponse.js +0 -0
  2460. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsCreateChildResponse.js +0 -0
  2461. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsCreateResponse.js +0 -0
  2462. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsHistoryResponse.js +0 -0
  2463. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsInfoResponse.js +0 -0
  2464. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsInviteResponse.js +0 -0
  2465. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsKickResponse.js +0 -0
  2466. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsLeaveResponse.js +0 -0
  2467. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsListResponse.js +0 -0
  2468. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsMarkResponse.js +0 -0
  2469. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsOpenResponse.js +0 -0
  2470. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsRenameResponse.js +0 -0
  2471. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsRepliesResponse.js +0 -0
  2472. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsSetPurposeResponse.js +0 -0
  2473. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsSetTopicResponse.js +0 -0
  2474. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsUnarchiveResponse.js +0 -0
  2475. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ImCloseResponse.js +0 -0
  2476. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ImHistoryResponse.js +0 -0
  2477. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ImListResponse.js +0 -0
  2478. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ImMarkResponse.js +0 -0
  2479. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ImOpenResponse.js +0 -0
  2480. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ImRepliesResponse.js +0 -0
  2481. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/MigrationExchangeResponse.js +0 -0
  2482. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/MpimCloseResponse.js +0 -0
  2483. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/MpimHistoryResponse.js +0 -0
  2484. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/MpimListResponse.js +0 -0
  2485. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/MpimMarkResponse.js +0 -0
  2486. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/MpimOpenResponse.js +0 -0
  2487. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/MpimRepliesResponse.js +0 -0
  2488. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/OauthAccessResponse.js +0 -0
  2489. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/OauthTokenResponse.js +0 -0
  2490. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/OauthV2AccessResponse.js +0 -0
  2491. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/OauthV2ExchangeResponse.js +0 -0
  2492. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/OpenIDConnectTokenResponse.js +0 -0
  2493. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/OpenIDConnectUserInfoResponse.js +0 -0
  2494. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/PinsAddResponse.js +0 -0
  2495. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/PinsRemoveResponse.js +0 -0
  2496. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ReactionsAddResponse.js +0 -0
  2497. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ReactionsGetResponse.js +0 -0
  2498. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ReactionsListResponse.js +0 -0
  2499. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ReactionsRemoveResponse.js +0 -0
  2500. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/RemindersAddResponse.js +0 -0
  2501. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/RemindersCompleteResponse.js +0 -0
  2502. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/RemindersDeleteResponse.js +0 -0
  2503. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/RemindersInfoResponse.js +0 -0
  2504. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/RemindersListResponse.js +0 -0
  2505. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/RtmConnectResponse.js +0 -0
  2506. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/RtmStartResponse.js +0 -0
  2507. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/SearchMessagesResponse.js +0 -0
  2508. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/StarsAddResponse.js +0 -0
  2509. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/StarsListResponse.js +0 -0
  2510. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/StarsRemoveResponse.js +0 -0
  2511. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamAccessLogsResponse.js +0 -0
  2512. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamBillableInfoResponse.js +0 -0
  2513. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamBillingInfoResponse.js +0 -0
  2514. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamExternalTeamsDisconnectResponse.js +0 -0
  2515. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamExternalTeamsListResponse.js +0 -0
  2516. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamInfoResponse.js +0 -0
  2517. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamIntegrationLogsResponse.js +0 -0
  2518. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamPreferencesListResponse.js +0 -0
  2519. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamProfileGetResponse.js +0 -0
  2520. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ToolingTokensRotateResponse.js +0 -0
  2521. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsergroupsCreateResponse.js +0 -0
  2522. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsergroupsDisableResponse.js +0 -0
  2523. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsergroupsEnableResponse.js +0 -0
  2524. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsergroupsListResponse.js +0 -0
  2525. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsergroupsUpdateResponse.js +0 -0
  2526. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsergroupsUsersListResponse.js +0 -0
  2527. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsergroupsUsersUpdateResponse.js +0 -0
  2528. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersConversationsResponse.js +0 -0
  2529. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersDeletePhotoResponse.js +0 -0
  2530. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersDiscoverableContactsLookupResponse.js +0 -0
  2531. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersGetPresenceResponse.js +0 -0
  2532. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersIdentityResponse.js +0 -0
  2533. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersInfoResponse.js +0 -0
  2534. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersListResponse.js +0 -0
  2535. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersLookupByEmailResponse.js +0 -0
  2536. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersProfileGetResponse.js +0 -0
  2537. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersProfileSetResponse.js +0 -0
  2538. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersSetActiveResponse.js +0 -0
  2539. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersSetPhotoResponse.js +0 -0
  2540. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersSetPresenceResponse.js +0 -0
  2541. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ViewsOpenResponse.js +0 -0
  2542. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ViewsPublishResponse.js +0 -0
  2543. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ViewsPushResponse.js +0 -0
  2544. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ViewsUpdateResponse.js +0 -0
  2545. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/WorkflowsStepCompletedResponse.js +0 -0
  2546. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/WorkflowsStepFailedResponse.js +0 -0
  2547. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/WorkflowsUpdateStepResponse.js +0 -0
  2548. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/index.js +0 -0
  2549. /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/License +0 -0
  2550. /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/README.md +0 -0
  2551. /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/example/dns.js +0 -0
  2552. /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/example/stop.js +0 -0
  2553. /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/index.js +0 -0
  2554. /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/lib/retry.js +0 -0
  2555. /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/lib/retry_operation.js +0 -0
  2556. /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/package.json +0 -0
@@ -16,29 +16,50 @@
16
16
  * specific language governing permissions and limitations
17
17
  * under the License.
18
18
  */
19
- import { createHash } from 'node:crypto';
20
19
  import { mkdirSync } from 'node:fs';
21
20
  import { createRequire } from 'node:module';
22
21
  import { dirname } from 'node:path';
23
22
  import { isDeepStrictEqual } from 'node:util';
23
+ import { assertHandoffClaimSource } from '@maka/core/runtime-handoff';
24
24
  import { buildWorkspaceBaselineAuthorityEvents, buildWorkspaceSuccessorAuthorityEvent, scanWorkspaceBaselineAuthority, WORKSPACE_AUTHORITY_SESSION_ID, WORKSPACE_VERSION_AUTHORITY_CAPABILITY_V1, } from '@maka/core/workspace-version-authority';
25
- import { decodeRuntimeEvent, isPartialRuntimeEvent, isTerminalRuntimeEvent, TOOL_BOUNDARY_PROTOCOL_V1, } from '@maka/core/runtime-event';
25
+ import { decodeRuntimeEvent, decodeRuntimeInvocationOpened, isPartialRuntimeEvent, isTerminalRuntimeEvent, runtimeEventInvocationOpening, } from '@maka/core/runtime-event';
26
26
  import { RunSealedError, RUNTIME_CONTINUATION_AUTHORITY_V1, TOOL_RECOVERY_BUNDLE_CAPABILITY_V1, } from '@maka/core/runtime-event-store';
27
- import { canonicalToolArgsHash, stableJsonStringify } from '@maka/core/tool-args-identity';
27
+ import { mayBeTranscriptLedgerInvocationId, } from '@maka/core/runtime-invocation';
28
+ import { stableJsonStringify } from '@maka/core/tool-args-identity';
29
+ import { mergeRuntimePartialSnapshots, groupRuntimePartialSnapshots, compareRuntimePartialSnapshots, partialRuntimeStream, completedPartialRuntimeStreamKey, } from './runtime-partial-values.js';
30
+ import { assertPreparedInput, assertOutcomeInput, assertPreparedIdentity, assertOutcomeIdentity, } from './tool-commit-validation.js';
28
31
  import { encodeCanonicalRuntimeEvent } from '@maka/core/canonical-runtime-event';
29
- import { decodePersistedAgentRunHeader } from '@maka/core/agent-run';
30
- import { markPersisted } from '@maka/core/persisted-value';
31
- import { scanToolLedger, ToolLedgerCorruptionError, ToolLedgerRejectionError, validateGenericToolLedgerAppend, validateToolLedgerEventLane, validateToolLedgerTransition, } from '@maka/core/tool-ledger-scanner';
32
- import { buildImmutableRuntimePrefix, decodeContinuationClaim, } from '@maka/core/runtime-boundary';
32
+ import { scanToolLedger, referencedToolOperationIds, ToolLedgerReducer, ToolLedgerCorruptionError, ToolLedgerRejectionError, validateGenericToolLedgerAppend, validateIncrementalToolLedgerTransition, } from '@maka/core/tool-ledger-scanner';
33
+ import { buildImmutableRuntimePrefix, buildImmutableRuntimePrefixProof, continuationStartEventMatchesClaim, decodeContinuationClaim, } from '@maka/core/runtime-boundary';
33
34
  import { assertToolRecoveryEventBundle, interpretScannedToolRecovery, } from '@maka/core/tool-recovery-bundle';
34
- import { configureSqliteRuntimeDatabase, migrateSqliteRuntimeDatabase, readUserVersion, RUNTIME_RECOVERY_AUTHORITY_CAPABILITY, RUNTIME_RECOVERY_AUTHORITY_CAPABILITY_VERSION, RUNTIME_CONTINUATION_AUTHORITY_CAPABILITY, RUNTIME_CONTINUATION_AUTHORITY_CAPABILITY_VERSION, RUNTIME_WORKSPACE_VERSION_AUTHORITY_CAPABILITY, RUNTIME_WORKSPACE_VERSION_AUTHORITY_CAPABILITY_VERSION, SQLITE_RUNTIME_SCHEMA_VERSION, } from './sqlite-runtime-schema.js';
35
+ import { configureSqliteRuntimeDatabase, migrateSqliteRuntimeDatabase, readUserVersion, RUNTIME_RECOVERY_AUTHORITY_CAPABILITY, RUNTIME_RECOVERY_AUTHORITY_CAPABILITY_VERSION, RUNTIME_CONTINUATION_AUTHORITY_CAPABILITY, RUNTIME_CONTINUATION_AUTHORITY_CAPABILITY_VERSION, RUNTIME_WORKSPACE_VERSION_AUTHORITY_CAPABILITY, RUNTIME_WORKSPACE_VERSION_AUTHORITY_CAPABILITY_VERSION, runtimeEventKind, SQLITE_RUNTIME_SCHEMA_VERSION, } from './sqlite-runtime-schema.js';
35
36
  import { registerWorkspaceBaselineAuthorityWriterInternal, } from './workspace-version-authority-internal.js';
36
37
  import { assertEvidenceReadBudget, measureEvidenceRows, } from './bounded-evidence.js';
38
+ import { assertFoldedSearchTerm, recallFoldedMatchClause, registerRecallFoldFunction, } from './recall-fold.js';
37
39
  import { immutableSteeringMessageId, isRuntimeStorageSafeId } from './runtime-event-invariants.js';
38
40
  import { assertNoReservedWorkspaceAuthorityAppend } from './runtime-event-authority.js';
41
+ import { rebuildTranscriptTurnExtents, recordTranscriptTurnExtent, RuntimeTranscriptQuery, TERMINAL_RUNTIME_EVENT_SQL, } from './runtime-transcript-query.js';
39
42
  export { SQLITE_RUNTIME_SCHEMA_VERSION } from './sqlite-runtime-schema.js';
40
43
  const RUNTIME_EVENT_SCAN_BATCH_SIZE = 128;
41
44
  const RUNTIME_PARTIAL_SEGMENT_TARGET_BYTES = 64 * 1024;
45
+ const RECOVERY_MESSAGE_QUERY_BATCH_SIZE = 400;
46
+ const TOOL_LEDGER_CACHE_EVENT_OVERHEAD_BYTES = 1024;
47
+ const DEFAULT_TOOL_LEDGER_CACHE_BUDGET = {
48
+ maxEntries: 32,
49
+ maxEstimatedBytes: 16 * 1024 * 1024,
50
+ maxSingleEntryEstimatedBytes: 8 * 1024 * 1024,
51
+ };
52
+ const IMMUTABLE_STEERING_SQL_PREDICATE = `
53
+ event_kind = 'text'
54
+ AND CASE
55
+ WHEN json_valid(payload_json)
56
+ THEN json_extract(payload_json, '$.partial')
57
+ END = 0
58
+ AND CASE
59
+ WHEN json_valid(payload_json)
60
+ THEN json_extract(payload_json, '$.content.steering')
61
+ END = 1
62
+ `;
42
63
  function assertRuntimeEventScanBudget(budget) {
43
64
  for (const [name, value] of Object.entries(budget)) {
44
65
  if (!Number.isSafeInteger(value) || value < 1) {
@@ -46,12 +67,32 @@ function assertRuntimeEventScanBudget(budget) {
46
67
  }
47
68
  }
48
69
  }
70
+ function assertImmutableRuntimePrefixProofReadBudget(budget) {
71
+ for (const [name, value] of Object.entries(budget)) {
72
+ if (!Number.isSafeInteger(value) || value < 1) {
73
+ throw new Error(`Invalid immutable RuntimeEvent prefix proof ${name}`);
74
+ }
75
+ }
76
+ }
49
77
  function requireRuntimeEventScanCount(value) {
50
78
  if (!Number.isSafeInteger(value) || value < 0) {
51
79
  throw new Error('Invalid RuntimeEvent scan measurement');
52
80
  }
53
81
  return value;
54
82
  }
83
+ function normalizeToolLedgerCacheBudget(override) {
84
+ const budget = { ...DEFAULT_TOOL_LEDGER_CACHE_BUDGET, ...override };
85
+ for (const [name, value] of Object.entries(budget)) {
86
+ if (!Number.isSafeInteger(value) || value < 1) {
87
+ throw new Error(`Invalid tool ledger cache ${name}`);
88
+ }
89
+ }
90
+ return budget;
91
+ }
92
+ function estimateToolLedgerCacheBytes(storedPayloadBytes, eventCount) {
93
+ const estimate = storedPayloadBytes * 2 + eventCount * TOOL_LEDGER_CACHE_EVENT_OVERHEAD_BYTES;
94
+ return Number.isSafeInteger(estimate) ? estimate : Number.MAX_SAFE_INTEGER;
95
+ }
55
96
  const require = createRequire(import.meta.url);
56
97
  function loadDatabaseSync() {
57
98
  return require('node:sqlite').DatabaseSync;
@@ -73,10 +114,26 @@ export class SqliteRuntimeStore {
73
114
  workspaceVersionAuthorityCapability = WORKSPACE_VERSION_AUTHORITY_CAPABILITY_V1;
74
115
  db;
75
116
  databaseLease;
76
- toolLedgerHealth;
117
+ toolLedgerCacheBudget;
118
+ toolLedgerCache = new Map();
119
+ toolLedgerCacheEstimatedBytes = 0;
120
+ toolLedgerCacheEventCount = 0;
121
+ toolLedgerCacheMetrics = {
122
+ hits: 0,
123
+ misses: 0,
124
+ budgetEvictions: 0,
125
+ terminalEvictions: 0,
126
+ transientEntries: 0,
127
+ };
128
+ uncommittedToolLedgerStates = new Map();
129
+ toolLedgerCacheVersion;
130
+ localCommittedWriteRevision = 0;
77
131
  closed = false;
132
+ uncommittedEventSessions = new Set();
133
+ eventCommitListeners = new Set();
78
134
  constructor(path, options = {}) {
79
135
  this.options = options;
136
+ this.toolLedgerCacheBudget = normalizeToolLedgerCacheBudget(options.toolLedgerCacheBudget);
80
137
  if (options.readOnly && options.databaseLease) {
81
138
  throw new Error('Operational state database leases cannot be opened read-only');
82
139
  }
@@ -88,9 +145,9 @@ export class SqliteRuntimeStore {
88
145
  assertRecoveryAuthorityCapability(this.db);
89
146
  assertContinuationAuthorityCapability(this.db);
90
147
  assertWorkspaceVersionAuthorityCapability(this.db);
148
+ registerRecallFoldFunction(this.db);
91
149
  if (!options.readOnly) {
92
150
  this.registerWorkspaceBaselineAuthorityWriter();
93
- this.refreshToolLedgerHealth();
94
151
  }
95
152
  return;
96
153
  }
@@ -113,9 +170,9 @@ export class SqliteRuntimeStore {
113
170
  assertRecoveryAuthorityCapability(this.db);
114
171
  assertContinuationAuthorityCapability(this.db);
115
172
  assertWorkspaceVersionAuthorityCapability(this.db);
173
+ registerRecallFoldFunction(this.db);
116
174
  if (!options.readOnly) {
117
175
  this.registerWorkspaceBaselineAuthorityWriter();
118
- this.refreshToolLedgerHealth();
119
176
  }
120
177
  }
121
178
  catch (error) {
@@ -139,6 +196,8 @@ export class SqliteRuntimeStore {
139
196
  if (this.closed)
140
197
  return;
141
198
  this.closed = true;
199
+ this.clearToolLedgerCache();
200
+ this.uncommittedToolLedgerStates.clear();
142
201
  if (this.databaseLease)
143
202
  this.databaseLease.close();
144
203
  else
@@ -182,6 +241,7 @@ export class SqliteRuntimeStore {
182
241
  existing.at(-1)?.id !== canonicalEvent.id) {
183
242
  throw new Error('Terminal RuntimeEvent must be the immutable ledger tail');
184
243
  }
244
+ this.invalidateToolLedgerCacheForInvocation(canonicalEvent.invocationId);
185
245
  return;
186
246
  }
187
247
  const existingTerminal = existing.find(isTerminalRuntimeEvent);
@@ -210,25 +270,27 @@ export class SqliteRuntimeStore {
210
270
  if (events.some(isToolLedgerBearingEvent)) {
211
271
  this.assertToolLedgerTransition(events, 'generic_append');
212
272
  }
213
- const created = events.map((event) => this.importRuntimeEventSync(event));
273
+ // Batch imports preserve already-persisted history, including legacy
274
+ // terminal/tool gaps that recovery will classify when projections are
275
+ // rebuilt. New terminal writes through appendRuntimeEvent must obey the
276
+ // unsettled-operation invariant below.
277
+ const created = events.map((event) => this.importRuntimeEventSync(event, true));
214
278
  return { created };
215
279
  });
216
280
  }
217
281
  async importConversationCopyRuntimeEvents(sessionId, batches) {
218
282
  assertRuntimeStorageSafeId(sessionId, 'Invalid session id');
219
- const runIds = new Set();
220
283
  const canonicalBatches = batches.map(({ runId, events }) => {
221
284
  assertRuntimeStorageSafeId(runId, 'Invalid run id');
222
- if (runIds.has(runId)) {
223
- throw new Error(`Conversation copy contains duplicate run ${runId}`);
224
- }
225
- runIds.add(runId);
226
285
  return {
227
286
  runId,
228
287
  events: events.map(canonicalizeRuntimeEventForStorage),
229
288
  };
230
289
  });
231
290
  const canonicalEvents = canonicalBatches.flatMap(({ events }) => events);
291
+ if (new Set(canonicalEvents.map(({ id }) => id)).size !== canonicalEvents.length) {
292
+ throw new Error('Conversation copy contains duplicate RuntimeEvents');
293
+ }
232
294
  for (const { runId, events } of canonicalBatches) {
233
295
  for (const event of events) {
234
296
  assertNoReservedWorkspaceAuthorityAppend(event);
@@ -245,7 +307,12 @@ export class SqliteRuntimeStore {
245
307
  throw new Error(`Conversation copy RuntimeEvent ledger is corrupt: ${scan.issues[0]?.code ?? 'unknown'}`);
246
308
  }
247
309
  this.transaction(() => {
310
+ const eventsByRun = new Map();
248
311
  for (const { runId, events } of canonicalBatches) {
312
+ eventsByRun.set(runId, [...(eventsByRun.get(runId) ?? []), ...events]);
313
+ }
314
+ const newRunIds = new Set();
315
+ for (const [runId, events] of eventsByRun) {
249
316
  const existing = this.db
250
317
  .prepare(`
251
318
  SELECT event_id, session_id, invocation_id, run_id, turn_id, payload_json
@@ -257,10 +324,14 @@ export class SqliteRuntimeStore {
257
324
  if (existing.length > 0 && !isDeepStrictEqual(existing, events)) {
258
325
  throw new Error(`Conversation copy RuntimeEvent identity conflict for run ${runId}`);
259
326
  }
260
- if (existing.length === 0) {
261
- for (const event of events)
262
- this.insertRuntimeEvent(event, event.ts, true);
263
- }
327
+ if (existing.length === 0)
328
+ newRunIds.add(runId);
329
+ }
330
+ for (const { runId, events } of canonicalBatches) {
331
+ if (!newRunIds.has(runId))
332
+ continue;
333
+ for (const event of events)
334
+ this.insertRuntimeEvent(event, event.ts, true);
264
335
  }
265
336
  if (canonicalEvents.some(isToolLedgerBearingEvent)) {
266
337
  this.rebuildToolProjectionsFromRuntimeEventsSync(sessionId);
@@ -270,6 +341,443 @@ export class SqliteRuntimeStore {
270
341
  async readRuntimeEvents(sessionId, runId) {
271
342
  return this.readRuntimeEventsSync(sessionId, runId);
272
343
  }
344
+ transcriptQuery() {
345
+ return new RuntimeTranscriptQuery(this.db, (sessionId, invocationId) => {
346
+ // By invocation rather than by run: both shelves key their opening on it,
347
+ // so a page's records cost the page instead of the Session's Turns.
348
+ const opening = this.readInvocationOpeningsSync(sessionId, {
349
+ direction: 'asc',
350
+ invocationId,
351
+ }).at(0);
352
+ if (!opening)
353
+ throw new Error(`Transcript invocation ${invocationId} is missing`);
354
+ return this.completeInvocationRecordSync(opening);
355
+ });
356
+ }
357
+ async readTranscriptHighWater(sessionId) {
358
+ assertRuntimeStorageSafeId(sessionId, 'Invalid session id');
359
+ return this.readTransaction(() => this.transcriptQuery().highWater(sessionId));
360
+ }
361
+ async readTranscriptRun(sessionId, request, project) {
362
+ assertRuntimeStorageSafeId(sessionId, 'Invalid session id');
363
+ return this.readTransaction(() => this.transcriptQuery().run(sessionId, request, project));
364
+ }
365
+ async readTranscriptTurns(sessionId, request) {
366
+ assertRuntimeStorageSafeId(sessionId, 'Invalid session id');
367
+ return this.readTransaction(() => this.transcriptQuery().turns(sessionId, request));
368
+ }
369
+ async readTranscriptTurnCrossing(sessionId, ordinal) {
370
+ assertRuntimeStorageSafeId(sessionId, 'Invalid session id');
371
+ return this.readTransaction(() => this.transcriptQuery().crossing(sessionId, ordinal));
372
+ }
373
+ /**
374
+ * Enumerate a Session's invocations: the opening fact names each one, and its
375
+ * highest-sequence event says whether it ended.
376
+ *
377
+ * Invocations that predate the opening fact could not be given one without
378
+ * rewriting an immutable sequence, so the migration parked their openings in
379
+ * `runtime_legacy_invocation_openings`. Both shelves are merged here and the
380
+ * result says nothing about which one a record came from: an opening is an
381
+ * opening, and a consumer that branched on its storage would be encoding the
382
+ * migration window into its own logic.
383
+ */
384
+ async listSessionInvocations(sessionId) {
385
+ assertRuntimeStorageSafeId(sessionId, 'Invalid session id');
386
+ return this.readTransaction(() => this.readInvocationOpeningsSync(sessionId, { direction: 'asc' }).map((row) => this.completeInvocationRecordSync(row)));
387
+ }
388
+ async listInvocationRecoveryInventory(sessionIds) {
389
+ const selectedSessionIds = [...new Set(sessionIds)];
390
+ for (const sessionId of selectedSessionIds) {
391
+ assertRuntimeStorageSafeId(sessionId, 'Invalid session id');
392
+ }
393
+ if (selectedSessionIds.length === 0)
394
+ return [];
395
+ const selectedJson = JSON.stringify(selectedSessionIds);
396
+ return this.readTransaction(() => {
397
+ const eventRows = this.db
398
+ .prepare(`
399
+ WITH selected(session_id) AS (SELECT value FROM json_each(?))
400
+ SELECT
401
+ opening.rowid AS opening_rowid,
402
+ opening.session_id AS session_id,
403
+ opening.invocation_id AS invocation_id,
404
+ 1 AS from_events,
405
+ NULL AS run_id,
406
+ NULL AS turn_id,
407
+ NULL AS opened_at,
408
+ (
409
+ SELECT terminal.rowid
410
+ FROM runtime_events AS terminal INDEXED BY runtime_events_terminal
411
+ WHERE terminal.invocation_id = opening.invocation_id
412
+ AND ${TERMINAL_RUNTIME_EVENT_SQL.replaceAll('payload_json', 'terminal.payload_json')}
413
+ ORDER BY terminal.event_seq
414
+ LIMIT 1
415
+ ) AS terminal_rowid
416
+ FROM selected
417
+ JOIN runtime_events AS opening INDEXED BY runtime_events_by_session_kind
418
+ ON opening.session_id = selected.session_id
419
+ AND opening.event_kind = 'invocation_opened'
420
+ `)
421
+ .all(selectedJson);
422
+ const legacyRows = this.db
423
+ .prepare(`
424
+ WITH selected(session_id) AS (SELECT value FROM json_each(?))
425
+ SELECT
426
+ NULL AS opening_rowid,
427
+ legacy.session_id AS session_id,
428
+ legacy.invocation_id AS invocation_id,
429
+ legacy.run_id AS run_id,
430
+ legacy.turn_id AS turn_id,
431
+ legacy.opened_at AS opened_at,
432
+ 0 AS from_events,
433
+ (
434
+ SELECT terminal.rowid
435
+ FROM runtime_events AS terminal INDEXED BY runtime_events_terminal
436
+ WHERE terminal.invocation_id = legacy.invocation_id
437
+ AND ${TERMINAL_RUNTIME_EVENT_SQL.replaceAll('payload_json', 'terminal.payload_json')}
438
+ ORDER BY terminal.event_seq
439
+ LIMIT 1
440
+ ) AS terminal_rowid
441
+ FROM selected
442
+ JOIN runtime_legacy_invocation_openings AS legacy
443
+ ON legacy.session_id = selected.session_id
444
+ WHERE NOT EXISTS (
445
+ SELECT 1 FROM runtime_events AS opening
446
+ WHERE opening.invocation_id = legacy.invocation_id
447
+ AND opening.event_kind = 'invocation_opened'
448
+ )
449
+ `)
450
+ .all(selectedJson);
451
+ const handoffRows = this.db
452
+ .prepare(`
453
+ WITH selected(session_id) AS (SELECT value FROM json_each(?))
454
+ SELECT
455
+ terminal.rowid AS terminal_rowid,
456
+ terminal.event_id AS event_id,
457
+ terminal.session_id AS session_id,
458
+ terminal.invocation_id AS invocation_id,
459
+ terminal.run_id AS run_id,
460
+ terminal.turn_id AS turn_id,
461
+ terminal.payload_json AS payload_json
462
+ FROM selected
463
+ JOIN runtime_events AS terminal INDEXED BY runtime_events_by_session_kind
464
+ ON terminal.session_id = selected.session_id
465
+ AND terminal.event_kind = 'invocation_end'
466
+ WHERE CASE
467
+ WHEN json_valid(terminal.payload_json)
468
+ THEN json_type(terminal.payload_json, '$.actions.handoffPause')
469
+ END IS NOT NULL
470
+ `)
471
+ .all(selectedJson);
472
+ const handoffByRowId = new Map(handoffRows.map((row) => [row.terminal_rowid, row]));
473
+ const eventIdentity = this.db.prepare(`
474
+ SELECT event_id, session_id, invocation_id, run_id, turn_id, committed_at
475
+ FROM runtime_events
476
+ WHERE rowid = ?
477
+ `);
478
+ const eventCandidate = this.db.prepare(`
479
+ SELECT event_id, session_id, invocation_id, run_id, turn_id, committed_at, payload_json
480
+ FROM runtime_events
481
+ WHERE rowid = ?
482
+ `);
483
+ const legacyCandidate = this.db.prepare(`
484
+ SELECT opening_json
485
+ FROM runtime_legacy_invocation_openings
486
+ WHERE invocation_id = ?
487
+ `);
488
+ return [...eventRows, ...legacyRows]
489
+ .sort((a, b) => a.session_id.localeCompare(b.session_id) ||
490
+ a.invocation_id.localeCompare(b.invocation_id))
491
+ .map((row) => {
492
+ const base = { sessionId: row.session_id, invocationId: row.invocation_id };
493
+ const handoff = row.terminal_rowid === null ? undefined : handoffByRowId.get(row.terminal_rowid);
494
+ const needsCandidate = row.terminal_rowid === null || handoff !== undefined;
495
+ const needsIdentity = needsCandidate || mayBeTranscriptLedgerInvocationId(row.invocation_id);
496
+ if (!needsIdentity)
497
+ return base;
498
+ let identity;
499
+ let openingJson;
500
+ let openingEventId;
501
+ if (row.from_events === 1) {
502
+ if (row.opening_rowid === null) {
503
+ throw new Error(`Runtime invocation opening row is missing: ${row.invocation_id}`);
504
+ }
505
+ const detail = (needsCandidate ? eventCandidate : eventIdentity).get(row.opening_rowid);
506
+ if (!detail ||
507
+ detail.session_id !== row.session_id ||
508
+ detail.invocation_id !== row.invocation_id) {
509
+ throw new Error(`Runtime invocation opening identity changed: ${row.invocation_id}`);
510
+ }
511
+ identity = {
512
+ sessionId: detail.session_id,
513
+ invocationId: detail.invocation_id,
514
+ runId: detail.run_id,
515
+ turnId: detail.turn_id,
516
+ openedAt: detail.committed_at,
517
+ };
518
+ openingEventId = detail.event_id;
519
+ openingJson = detail.payload_json;
520
+ }
521
+ else {
522
+ if (row.run_id === null || row.turn_id === null || row.opened_at === null) {
523
+ throw new Error(`Legacy invocation opening identity is incomplete: ${row.invocation_id}`);
524
+ }
525
+ identity = {
526
+ sessionId: row.session_id,
527
+ invocationId: row.invocation_id,
528
+ runId: row.run_id,
529
+ turnId: row.turn_id,
530
+ openedAt: row.opened_at,
531
+ };
532
+ if (needsCandidate) {
533
+ openingJson = legacyCandidate.get(row.invocation_id)?.opening_json;
534
+ }
535
+ }
536
+ if (!needsCandidate)
537
+ return { ...base, identity };
538
+ if (typeof openingJson !== 'string') {
539
+ throw new Error(`Runtime invocation opening payload is missing: ${row.invocation_id}`);
540
+ }
541
+ let opening;
542
+ if (row.from_events === 1) {
543
+ const event = decodeRuntimeEventStorageRow({
544
+ event_id: openingEventId ?? '',
545
+ session_id: identity.sessionId,
546
+ invocation_id: identity.invocationId,
547
+ run_id: identity.runId,
548
+ turn_id: identity.turnId,
549
+ payload_json: openingJson,
550
+ });
551
+ const decoded = runtimeEventInvocationOpening(event);
552
+ if (!decoded) {
553
+ throw new Error(`RuntimeEvent ${event.id} is indexed as an opening fact but is not one`);
554
+ }
555
+ opening = decoded;
556
+ }
557
+ else {
558
+ opening = decodeRuntimeInvocationOpened(JSON.parse(openingJson));
559
+ }
560
+ let terminalEvent;
561
+ if (handoff) {
562
+ if (handoff.session_id !== identity.sessionId ||
563
+ handoff.invocation_id !== identity.invocationId ||
564
+ handoff.run_id !== identity.runId ||
565
+ handoff.turn_id !== identity.turnId) {
566
+ throw new Error(`Runtime handoff terminal identity changed: ${row.invocation_id}`);
567
+ }
568
+ terminalEvent = decodeRuntimeEventStorageRow(handoff);
569
+ if (!isTerminalRuntimeEvent(terminalEvent)) {
570
+ throw new Error(`Runtime handoff fact is not terminal: ${terminalEvent.id}`);
571
+ }
572
+ }
573
+ return {
574
+ ...base,
575
+ candidate: {
576
+ ...identity,
577
+ opening,
578
+ ...(terminalEvent ? { terminalEvent } : {}),
579
+ },
580
+ };
581
+ });
582
+ });
583
+ }
584
+ async readRunInvocation(sessionId, runId) {
585
+ assertRuntimeStorageSafeId(sessionId, 'Invalid session id');
586
+ assertRuntimeStorageSafeId(runId, 'Invalid run id');
587
+ return this.readTransaction(() => {
588
+ const row = this.readInvocationOpeningsSync(sessionId, { direction: 'asc', runId }).at(0);
589
+ return row ? this.completeInvocationRecordSync(row) : undefined;
590
+ });
591
+ }
592
+ /**
593
+ * The first page of a Session's invocations, plus whether more exist.
594
+ *
595
+ * The extra row this reads past the limit is the whole truncation signal, so a
596
+ * caller never has to count a Session it declined to load.
597
+ */
598
+ async listSessionInvocationsBounded(sessionId, limit) {
599
+ assertRuntimeStorageSafeId(sessionId, 'Invalid session id');
600
+ assertInvocationSearchLimit(limit);
601
+ return this.readTransaction(() => {
602
+ const rows = this.readInvocationOpeningsSync(sessionId, {
603
+ direction: 'asc',
604
+ limit: limit + 1,
605
+ });
606
+ return {
607
+ invocations: rows.slice(0, limit).map((row) => this.completeInvocationRecordSync(row)),
608
+ truncated: rows.length > limit,
609
+ };
610
+ });
611
+ }
612
+ /** One newest-first page of a Session's invocations. */
613
+ async listSessionInvocationsPage(sessionId, input) {
614
+ assertRuntimeStorageSafeId(sessionId, 'Invalid session id');
615
+ assertInvocationSearchLimit(input.limit);
616
+ if (input.before) {
617
+ assertRuntimeStorageSafeId(input.before.invocationId, 'Invalid invocation page cursor');
618
+ if (!Number.isFinite(input.before.openedAt)) {
619
+ throw new Error('Invalid invocation page cursor');
620
+ }
621
+ }
622
+ return this.readTransaction(() => {
623
+ const rows = this.readInvocationOpeningsSync(sessionId, {
624
+ direction: 'desc',
625
+ limit: input.limit + 1,
626
+ ...(input.before ? { before: input.before } : {}),
627
+ });
628
+ const page = rows.slice(0, input.limit);
629
+ const last = page.at(-1);
630
+ return {
631
+ invocations: page.map((row) => this.completeInvocationRecordSync(row)),
632
+ nextCursor: rows.length > input.limit && last
633
+ ? { openedAt: last.openedAt, invocationId: last.invocationId }
634
+ : null,
635
+ };
636
+ });
637
+ }
638
+ /**
639
+ * One invocation named by its own identity.
640
+ *
641
+ * Absence throws rather than returning `undefined`: every caller here holds an
642
+ * invocation id that some durable fact already handed it, so a missing opening
643
+ * is corruption and not a branch a reader should be asked to handle.
644
+ */
645
+ async readInvocation(sessionId, invocationId) {
646
+ assertRuntimeStorageSafeId(sessionId, 'Invalid session id');
647
+ assertRuntimeStorageSafeId(invocationId, 'Invalid invocation id');
648
+ return this.readTransaction(() => {
649
+ const row = this.readInvocationOpeningsSync(sessionId, {
650
+ direction: 'asc',
651
+ invocationId,
652
+ }).at(0);
653
+ if (!row)
654
+ throw new Error(`Runtime invocation not found: ${invocationId}`);
655
+ return this.completeInvocationRecordSync(row);
656
+ });
657
+ }
658
+ /**
659
+ * Read invocation openings off both shelves as one ordered sequence.
660
+ *
661
+ * Every writer of an opening event stamps `committed_at` with the event's own
662
+ * timestamp, so that column orders the event shelf by the same value the
663
+ * record reports as `openedAt` and the legacy shelf keeps under `opened_at`.
664
+ * Ordering and paging therefore happen in SQL, and a bounded caller decodes
665
+ * only the openings it asked for.
666
+ */
667
+ readInvocationOpeningsSync(sessionId, options) {
668
+ const order = options.direction === 'desc' ? 'DESC' : 'ASC';
669
+ const rows = this.db
670
+ .prepare(`
671
+ SELECT * FROM (
672
+ SELECT
673
+ event_id AS event_id,
674
+ invocation_id AS invocation_id,
675
+ run_id AS run_id,
676
+ turn_id AS turn_id,
677
+ committed_at AS opened_at,
678
+ payload_json AS opening_json,
679
+ 1 AS from_events
680
+ FROM runtime_events
681
+ WHERE session_id = :sessionId AND event_kind = 'invocation_opened'
682
+ ${options.runId === undefined ? '' : 'AND run_id = :runId'}
683
+ ${options.invocationId === undefined ? '' : 'AND invocation_id = :invocationId'}
684
+ UNION ALL
685
+ SELECT
686
+ NULL,
687
+ legacy.invocation_id,
688
+ legacy.run_id,
689
+ legacy.turn_id,
690
+ legacy.opened_at,
691
+ legacy.opening_json,
692
+ 0
693
+ FROM runtime_legacy_invocation_openings AS legacy
694
+ WHERE legacy.session_id = :sessionId
695
+ ${options.runId === undefined ? '' : 'AND legacy.run_id = :runId'}
696
+ ${options.invocationId === undefined ? '' : 'AND legacy.invocation_id = :invocationId'}
697
+ AND NOT EXISTS (
698
+ SELECT 1 FROM runtime_events
699
+ WHERE runtime_events.invocation_id = legacy.invocation_id
700
+ AND runtime_events.event_kind = 'invocation_opened'
701
+ )
702
+ )
703
+ WHERE (
704
+ :beforeOpenedAt IS NULL
705
+ OR opened_at < :beforeOpenedAt
706
+ OR (opened_at = :beforeOpenedAt AND invocation_id < :beforeInvocationId)
707
+ )
708
+ ORDER BY opened_at ${order}, invocation_id ${order}
709
+ LIMIT :limit
710
+ `)
711
+ .all({
712
+ sessionId,
713
+ ...(options.invocationId === undefined ? {} : { invocationId: options.invocationId }),
714
+ ...(options.runId === undefined ? {} : { runId: options.runId }),
715
+ beforeOpenedAt: options.before?.openedAt ?? null,
716
+ beforeInvocationId: options.before?.invocationId ?? null,
717
+ limit: options.limit ?? -1,
718
+ });
719
+ return rows.map((row) => {
720
+ if (row.from_events !== 1) {
721
+ return {
722
+ sessionId,
723
+ invocationId: row.invocation_id,
724
+ runId: row.run_id,
725
+ turnId: row.turn_id,
726
+ openedAt: row.opened_at,
727
+ opening: decodeRuntimeInvocationOpened(JSON.parse(row.opening_json)),
728
+ };
729
+ }
730
+ const event = decodeRuntimeEventStorageRow({
731
+ event_id: row.event_id ?? '',
732
+ session_id: sessionId,
733
+ invocation_id: row.invocation_id,
734
+ run_id: row.run_id,
735
+ turn_id: row.turn_id,
736
+ payload_json: row.opening_json,
737
+ });
738
+ const opening = runtimeEventInvocationOpening(event);
739
+ if (!opening) {
740
+ throw new Error(`RuntimeEvent ${event.id} is indexed as an opening fact but is not one`);
741
+ }
742
+ return {
743
+ sessionId: event.sessionId,
744
+ invocationId: event.invocationId,
745
+ runId: event.runId,
746
+ turnId: event.turnId,
747
+ openedAt: event.ts,
748
+ opening,
749
+ };
750
+ });
751
+ }
752
+ /**
753
+ * An invocation's ending is its first terminal event, wherever it sits.
754
+ *
755
+ * The store seals a run on that event, so for anything it wrote itself the
756
+ * first terminal is also the only one and the last event. Ledgers written
757
+ * before the seal existed can carry a straggler after the terminal, and
758
+ * reading those as unfinished would contradict every other reader of the same
759
+ * rule: recovery, the read model and continuation resume all take the first
760
+ * terminal. A ledger that somehow holds two is corrupt, and saying so is the
761
+ * job of those readers — this inventory feeds Session lists, so it reports the
762
+ * ending it can see rather than poisoning the whole Session over one run.
763
+ */
764
+ completeInvocationRecordSync(record) {
765
+ const terminalRow = this.db
766
+ .prepare(`
767
+ SELECT event_id, session_id, invocation_id, run_id, turn_id, payload_json
768
+ FROM runtime_events
769
+ WHERE invocation_id = ?
770
+ AND ${TERMINAL_RUNTIME_EVENT_SQL}
771
+ ORDER BY event_seq ASC
772
+ LIMIT 1
773
+ `)
774
+ .get(record.invocationId);
775
+ const terminal = terminalRow ? decodeRuntimeEventStorageRow(terminalRow) : undefined;
776
+ return {
777
+ ...record,
778
+ ...(terminal && isTerminalRuntimeEvent(terminal) ? { terminalEvent: terminal } : {}),
779
+ };
780
+ }
273
781
  async scanRuntimeEvents(sessionId, runId, budget, visit) {
274
782
  assertRuntimeEventScanBudget(budget);
275
783
  return this.readTransaction(() => {
@@ -552,6 +1060,65 @@ export class SqliteRuntimeStore {
552
1060
  turnId: first.turnId,
553
1061
  }, decoded);
554
1062
  }
1063
+ async readImmutableRuntimePrefixProof(input, budget) {
1064
+ assertImmutableRuntimePrefixProofReadBudget(budget);
1065
+ if (input.upToEventSeq !== undefined &&
1066
+ (!Number.isSafeInteger(input.upToEventSeq) || input.upToEventSeq <= 0)) {
1067
+ throw new Error('Invalid immutable RuntimeEvent prefix high-water');
1068
+ }
1069
+ const highWater = input.upToEventSeq ?? null;
1070
+ const cursor = this.db
1071
+ .prepare(`
1072
+ SELECT event_id, session_id, invocation_id, run_id, turn_id, event_seq,
1073
+ length(CAST(payload_json AS BLOB)) AS stored_bytes,
1074
+ CASE WHEN length(CAST(payload_json AS BLOB)) <= ? THEN payload_json END AS payload_json
1075
+ FROM runtime_events
1076
+ WHERE session_id = ? AND run_id = ?
1077
+ AND (? IS NULL OR event_seq <= ?)
1078
+ ORDER BY event_seq ASC
1079
+ `)
1080
+ .iterate(budget.maxRecordBytes, input.sessionId, input.runId, highWater, highWater)[Symbol.iterator]();
1081
+ const firstRow = cursor.next();
1082
+ if (firstRow.done)
1083
+ throw new Error('immutable RuntimeEvent prefix is empty');
1084
+ let count = 0;
1085
+ let bytes = 0;
1086
+ let lastEventSeq = 0;
1087
+ const decode = function* () {
1088
+ let step = firstRow;
1089
+ while (!step.done) {
1090
+ const row = step.value;
1091
+ count += 1;
1092
+ if (count > budget.maxEvents) {
1093
+ throw new Error('Immutable RuntimeEvent prefix proof exceeds its event limit');
1094
+ }
1095
+ const payloadJson = row.payload_json;
1096
+ if (payloadJson === null) {
1097
+ throw new Error('Immutable RuntimeEvent prefix proof exceeds its record byte limit');
1098
+ }
1099
+ bytes += requireRuntimeEventScanCount(row.stored_bytes);
1100
+ if (bytes > budget.maxBytes) {
1101
+ throw new Error('Immutable RuntimeEvent prefix proof exceeds its byte limit');
1102
+ }
1103
+ lastEventSeq = requireRuntimeEventScanCount(row.event_seq);
1104
+ yield {
1105
+ eventSeq: lastEventSeq,
1106
+ event: decodeRuntimeEventStorageRow({ ...row, payload_json: payloadJson }),
1107
+ };
1108
+ step = cursor.next();
1109
+ }
1110
+ };
1111
+ const proof = buildImmutableRuntimePrefixProof({
1112
+ sessionId: firstRow.value.session_id,
1113
+ invocationId: firstRow.value.invocation_id,
1114
+ runId: firstRow.value.run_id,
1115
+ turnId: firstRow.value.turn_id,
1116
+ }, decode());
1117
+ if (input.upToEventSeq !== undefined && lastEventSeq !== input.upToEventSeq) {
1118
+ throw new Error(`immutable RuntimeEvent prefix high-water ${input.upToEventSeq} is unavailable`);
1119
+ }
1120
+ return proof;
1121
+ }
555
1122
  async claimContinuation(input) {
556
1123
  const claim = decodeContinuationClaim(input.claim);
557
1124
  if (claim.target.sessionId === WORKSPACE_AUTHORITY_SESSION_ID ||
@@ -574,12 +1141,12 @@ export class SqliteRuntimeStore {
574
1141
  const conflict = this.readContinuationClaimRow(`claim_id = ?
575
1142
  OR target_invocation_id = ?
576
1143
  OR target_run_id = ?
577
- OR (target_session_id = ? AND target_turn_id = ?)
1144
+ OR (? = 0 AND target_session_id = ? AND target_turn_id = ?)
578
1145
  OR (
579
1146
  source_session_id = ?
580
1147
  AND source_run_id = ?
581
1148
  AND source_event_high_water = ?
582
- )`, claim.claimId, claim.target.invocationId, claim.target.runId, claim.target.sessionId, claim.target.turnId, source.identity.sessionId, source.identity.runId, source.position.lastEventSeq);
1149
+ )`, claim.claimId, claim.target.invocationId, claim.target.runId, claim.targetOpening.source.kind === 'handoff' ? 1 : 0, claim.target.sessionId, claim.target.turnId, source.identity.sessionId, source.identity.runId, source.position.lastEventSeq);
583
1150
  if (conflict) {
584
1151
  return { kind: 'conflict', claim: decodeContinuationClaimRow(conflict) };
585
1152
  }
@@ -605,24 +1172,24 @@ export class SqliteRuntimeStore {
605
1172
  target_invocation_id,
606
1173
  target_run_id,
607
1174
  target_turn_id,
608
- target_run_header_json,
1175
+ target_opening_json,
609
1176
  claimed_at,
610
1177
  protocol_version
611
1178
  ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 1)
612
1179
  `)
613
- .run(claim.claimId, source.identity.sessionId, source.identity.invocationId, source.identity.runId, source.identity.turnId, source.position.lastEventSeq, source.prefixDigest, claim.boundaryDigest, boundaryJson, claim.providerProjectionVersion, claim.providerReplayDigest, claim.target.sessionId, claim.target.invocationId, claim.target.runId, claim.target.turnId, stableJsonStringify(claim.targetRunHeader), claim.claimedAt);
1180
+ .run(claim.claimId, source.identity.sessionId, source.identity.invocationId, source.identity.runId, source.identity.turnId, source.position.lastEventSeq, source.prefixDigest, claim.boundaryDigest, boundaryJson, claim.providerProjectionVersion, claim.providerReplayDigest, claim.target.sessionId, claim.target.invocationId, claim.target.runId, claim.target.turnId, stableJsonStringify(claim.targetOpening), claim.claimedAt);
614
1181
  }
615
1182
  catch (error) {
616
1183
  const raced = this.readContinuationClaimRow('boundary_digest = ?', claim.boundaryDigest) ??
617
1184
  this.readContinuationClaimRow(`claim_id = ?
618
1185
  OR target_invocation_id = ?
619
1186
  OR target_run_id = ?
620
- OR (target_session_id = ? AND target_turn_id = ?)
1187
+ OR (? = 0 AND target_session_id = ? AND target_turn_id = ?)
621
1188
  OR (
622
1189
  source_session_id = ?
623
1190
  AND source_run_id = ?
624
1191
  AND source_event_high_water = ?
625
- )`, claim.claimId, claim.target.invocationId, claim.target.runId, claim.target.sessionId, claim.target.turnId, source.identity.sessionId, source.identity.runId, source.position.lastEventSeq);
1192
+ )`, claim.claimId, claim.target.invocationId, claim.target.runId, claim.targetOpening.source.kind === 'handoff' ? 1 : 0, claim.target.sessionId, claim.target.turnId, source.identity.sessionId, source.identity.runId, source.position.lastEventSeq);
626
1193
  if (!raced)
627
1194
  throw error;
628
1195
  const racedClaim = decodeContinuationClaimRow(raced);
@@ -644,6 +1211,51 @@ export class SqliteRuntimeStore {
644
1211
  const row = this.readContinuationClaimRow('boundary_digest = ?', boundaryDigest);
645
1212
  return row ? this.decodeContinuationClaimStateRow(row) : undefined;
646
1213
  }
1214
+ async listUnsettledContinuationClaimsForRecovery(sessionIds) {
1215
+ const selectedSessionIds = [...new Set(sessionIds)];
1216
+ for (const sessionId of selectedSessionIds) {
1217
+ assertRuntimeStorageSafeId(sessionId, 'Invalid session id');
1218
+ }
1219
+ if (selectedSessionIds.length === 0)
1220
+ return [];
1221
+ const rows = this.db
1222
+ .prepare(`
1223
+ WITH selected(session_id) AS (SELECT value FROM json_each(?))
1224
+ SELECT
1225
+ claim.claim_id,
1226
+ claim.source_session_id,
1227
+ claim.source_invocation_id,
1228
+ claim.source_run_id,
1229
+ claim.source_turn_id,
1230
+ claim.source_event_high_water,
1231
+ claim.source_prefix_digest,
1232
+ claim.boundary_digest,
1233
+ claim.boundary_json,
1234
+ claim.provider_projection_version,
1235
+ claim.provider_replay_digest,
1236
+ claim.target_session_id,
1237
+ claim.target_invocation_id,
1238
+ claim.target_run_id,
1239
+ claim.target_turn_id,
1240
+ claim.target_opening_json,
1241
+ claim.claimed_at,
1242
+ claim.start_event_id,
1243
+ claim.start_kind,
1244
+ claim.protocol_version
1245
+ FROM selected
1246
+ JOIN runtime_continuation_claims AS claim
1247
+ ON claim.target_session_id = selected.session_id
1248
+ WHERE NOT EXISTS (
1249
+ SELECT 1
1250
+ FROM runtime_events AS terminal INDEXED BY runtime_events_terminal
1251
+ WHERE terminal.invocation_id = claim.target_invocation_id
1252
+ AND ${TERMINAL_RUNTIME_EVENT_SQL.replaceAll('payload_json', 'terminal.payload_json')}
1253
+ )
1254
+ ORDER BY claim.claimed_at ASC, claim.claim_id ASC
1255
+ `)
1256
+ .all(JSON.stringify(selectedSessionIds));
1257
+ return rows.map((row) => this.decodeContinuationClaimStateRow(row));
1258
+ }
647
1259
  async listContinuationClaimsForRecovery(sessionId) {
648
1260
  const rows = this.db
649
1261
  .prepare(`
@@ -663,7 +1275,7 @@ export class SqliteRuntimeStore {
663
1275
  target_invocation_id,
664
1276
  target_run_id,
665
1277
  target_turn_id,
666
- target_run_header_json,
1278
+ target_opening_json,
667
1279
  claimed_at,
668
1280
  start_event_id,
669
1281
  start_kind,
@@ -721,25 +1333,183 @@ export class SqliteRuntimeStore {
721
1333
  async readImmutableSteeringMessageProof(sessionId, messageId) {
722
1334
  assertRuntimeStorageSafeId(sessionId, 'Invalid session id');
723
1335
  assertRuntimeStorageSafeId(messageId, 'Invalid message id');
724
- const matches = this.readImmutableSessionRuntimeEvents(sessionId).filter((event) => immutableSteeringMessageId(event) === messageId);
1336
+ const matches = this.readImmutableSteeringMessageEvents(sessionId, messageId);
725
1337
  if (matches.length > 1) {
726
1338
  throw new Error(`Immutable steering message identity conflict: ${messageId}`);
727
1339
  }
728
1340
  return matches[0] ? Object.freeze({ event: matches[0] }) : undefined;
729
1341
  }
730
- async repairImmutableSteeringMessageProofsForRecovery(sessionId) {
731
- assertRuntimeStorageSafeId(sessionId, 'Invalid session id');
732
- const messages = new Map();
733
- for (const event of this.readImmutableSessionRuntimeEvents(sessionId)) {
734
- const messageId = immutableSteeringMessageId(event);
735
- if (!messageId)
736
- continue;
737
- const existing = messages.get(messageId);
738
- if (existing && !isDeepStrictEqual(existing, event)) {
739
- throw new Error(`Immutable steering message identity conflict: ${messageId}`);
1342
+ async readRecoveryMessageEvents(input) {
1343
+ assertRuntimeStorageSafeId(input.sessionId, 'Invalid session id');
1344
+ assertEvidenceReadBudget(input.budget);
1345
+ const turnIds = distinctSafeRuntimeIds(input.turnIds, 'Invalid recovery Turn id');
1346
+ const eventIds = distinctSafeRuntimeIds(input.eventIds, 'Invalid recovery event id');
1347
+ const selectedEventIds = new Set();
1348
+ const measuredRows = [];
1349
+ const measureEventsById = (ids) => {
1350
+ for (const batch of batches(ids, RECOVERY_MESSAGE_QUERY_BATCH_SIZE)) {
1351
+ const placeholders = batch.map(() => '?').join(', ');
1352
+ const rows = this.db
1353
+ .prepare(`
1354
+ SELECT event_id, session_id,
1355
+ length(CAST(payload_json AS BLOB)) AS stored_bytes
1356
+ FROM runtime_events
1357
+ WHERE event_id IN (${placeholders})
1358
+ `)
1359
+ .all(...batch);
1360
+ for (const row of rows) {
1361
+ if (typeof row.event_id !== 'string' || typeof row.session_id !== 'string') {
1362
+ throw new Error('Invalid recovery RuntimeEvent measurement row');
1363
+ }
1364
+ if (row.session_id !== input.sessionId || selectedEventIds.has(row.event_id))
1365
+ continue;
1366
+ selectedEventIds.add(row.event_id);
1367
+ measuredRows.push({ event_id: row.event_id, stored_bytes: row.stored_bytes });
1368
+ if (measuredRows.length > input.budget.maxRecords)
1369
+ return false;
1370
+ }
1371
+ }
1372
+ return true;
1373
+ };
1374
+ if (!measureEventsById(eventIds))
1375
+ return { status: 'limit_exceeded' };
1376
+ const additionalTurnEventIds = new Set();
1377
+ for (const batch of batches(turnIds, RECOVERY_MESSAGE_QUERY_BATCH_SIZE)) {
1378
+ const placeholders = batch.map(() => '?').join(', ');
1379
+ const rows = this.db
1380
+ .prepare(`
1381
+ SELECT event_id
1382
+ FROM runtime_events
1383
+ WHERE session_id = ?
1384
+ AND turn_id IN (${placeholders})
1385
+ AND event_kind = 'text'
1386
+ AND CASE
1387
+ WHEN json_valid(payload_json)
1388
+ THEN json_extract(payload_json, '$.partial')
1389
+ END = 0
1390
+ AND CASE
1391
+ WHEN json_valid(payload_json)
1392
+ THEN json_extract(payload_json, '$.role')
1393
+ END = 'user'
1394
+ AND coalesce(CASE
1395
+ WHEN json_valid(payload_json)
1396
+ THEN json_extract(payload_json, '$.content.steering')
1397
+ END, 0) = 0
1398
+ LIMIT ?
1399
+ `)
1400
+ .all(input.sessionId, ...batch, input.budget.maxRecords + 1);
1401
+ for (const row of rows) {
1402
+ if (typeof row.event_id !== 'string') {
1403
+ throw new Error('Invalid recovery RuntimeEvent identity row');
1404
+ }
1405
+ if (!selectedEventIds.has(row.event_id))
1406
+ additionalTurnEventIds.add(row.event_id);
1407
+ if (selectedEventIds.size + additionalTurnEventIds.size > input.budget.maxRecords) {
1408
+ return { status: 'limit_exceeded' };
1409
+ }
1410
+ }
1411
+ }
1412
+ if (!measureEventsById([...additionalTurnEventIds]))
1413
+ return { status: 'limit_exceeded' };
1414
+ const measurement = measureEvidenceRows(measuredRows, input.budget, 'Invalid recovery RuntimeEvent evidence measurement row');
1415
+ if (!measurement)
1416
+ return { status: 'limit_exceeded' };
1417
+ const storedBytesById = new Map(measuredRows.map((row) => [row.event_id, requireRuntimeEventScanCount(row.stored_bytes)]));
1418
+ const events = new Map();
1419
+ for (const batch of batches([...selectedEventIds], RECOVERY_MESSAGE_QUERY_BATCH_SIZE)) {
1420
+ const placeholders = batch.map(() => '?').join(', ');
1421
+ const rows = this.db
1422
+ .prepare(`
1423
+ SELECT event_id, session_id, invocation_id, run_id, turn_id, payload_json,
1424
+ length(CAST(payload_json AS BLOB)) AS stored_bytes
1425
+ FROM runtime_events
1426
+ WHERE event_id IN (${placeholders})
1427
+ `)
1428
+ .all(...batch);
1429
+ for (const row of rows) {
1430
+ const event = decodeRuntimeEventStorageRow(row);
1431
+ if (event.sessionId !== input.sessionId)
1432
+ continue;
1433
+ if (storedBytesById.get(event.id) !== requireRuntimeEventScanCount(row.stored_bytes)) {
1434
+ throw new Error('Recovery RuntimeEvent evidence changed while reading');
1435
+ }
1436
+ events.set(event.id, event);
740
1437
  }
741
- messages.set(messageId, event);
742
1438
  }
1439
+ if (events.size !== selectedEventIds.size) {
1440
+ throw new Error('Recovery RuntimeEvent evidence changed while reading');
1441
+ }
1442
+ return {
1443
+ status: 'complete',
1444
+ records: [...events.values()].sort((left, right) => left.ts - right.ts ||
1445
+ left.runId.localeCompare(right.runId) ||
1446
+ left.id.localeCompare(right.id)),
1447
+ ...measurement,
1448
+ };
1449
+ }
1450
+ /**
1451
+ * Narrows recall to the Sessions whose ledger could project a message
1452
+ * containing one of the folded terms. The answer is a superset of the true
1453
+ * matches, never an answer: the caller projects each candidate Session and
1454
+ * re-runs the real predicate on the projected, redacted text.
1455
+ *
1456
+ * Every event payload is scanned, whatever its kind: a message's visible
1457
+ * text — a user or model `text`, a `function_call` intent, the string values
1458
+ * of a `function_response` result — is a JSON string value of the event that
1459
+ * carries it, so a term inside the projected text is inside the payload
1460
+ * (escaped forms excepted, which the caller routes around). Kinds that never
1461
+ * project only cost the scan a little work.
1462
+ *
1463
+ * A Session with an in-flight partial stream is offered unconditionally: its
1464
+ * arriving text lives in segments a per-row `instr` could straddle, and the
1465
+ * read model presents that text as settled.
1466
+ */
1467
+ async listSessionsWithRuntimeEventText(sessionIds, terms) {
1468
+ if (sessionIds.length === 0 || terms.length === 0)
1469
+ return [];
1470
+ for (const sessionId of sessionIds)
1471
+ assertRuntimeStorageSafeId(sessionId, 'Invalid session id');
1472
+ for (const term of terms)
1473
+ assertFoldedSearchTerm(term);
1474
+ const sessions = sessionIds.map(() => '?').join(', ');
1475
+ const rows = this.db
1476
+ .prepare(`
1477
+ SELECT DISTINCT session_id
1478
+ FROM runtime_events
1479
+ WHERE session_id IN (${sessions})
1480
+ AND (${recallFoldedMatchClause('payload_json', terms.length)})
1481
+ UNION
1482
+ SELECT DISTINCT session_id
1483
+ FROM runtime_partial_snapshots
1484
+ WHERE session_id IN (${sessions})
1485
+ `)
1486
+ .all(...sessionIds, ...terms, ...sessionIds);
1487
+ return rows.map((row) => {
1488
+ if (typeof row.session_id !== 'string')
1489
+ throw new Error('Invalid recall candidate row');
1490
+ return row.session_id;
1491
+ });
1492
+ }
1493
+ /**
1494
+ * How many ledger events could project to a searchable message, for
1495
+ * recall's idf term. Counted by event kind rather than by projecting, so it
1496
+ * is cheap and identical whichever path recall takes to find its hits.
1497
+ */
1498
+ async countRuntimeEventMessages(sessionIds) {
1499
+ if (sessionIds.length === 0)
1500
+ return 0;
1501
+ for (const sessionId of sessionIds)
1502
+ assertRuntimeStorageSafeId(sessionId, 'Invalid session id');
1503
+ const sessions = sessionIds.map(() => '?').join(', ');
1504
+ const row = this.db
1505
+ .prepare(`
1506
+ SELECT count(*) AS total
1507
+ FROM runtime_events
1508
+ WHERE session_id IN (${sessions})
1509
+ AND event_kind IN ('text', 'function_call', 'function_response')
1510
+ `)
1511
+ .get(...sessionIds);
1512
+ return typeof row?.total === 'number' ? row.total : 0;
743
1513
  }
744
1514
  async readSessionRuntimeEvents(sessionId) {
745
1515
  const rows = this.db
@@ -788,6 +1558,58 @@ export class SqliteRuntimeStore {
788
1558
  return { ordinal: row.ordinal, event };
789
1559
  });
790
1560
  }
1561
+ async resequenceSessionEventOrdinals(sessionId) {
1562
+ assertRuntimeStorageSafeId(sessionId, 'Invalid session id');
1563
+ this.transaction(() => {
1564
+ // Lifted above the range first: the second statement renumbers into the
1565
+ // space these rows occupy, and (session_id, ordinal) is a primary key.
1566
+ // Shifting up rather than below zero keeps every intermediate value
1567
+ // inside the table's own `ordinal > 0`, and lands them past the 1..N the
1568
+ // renumber assigns, since the count cannot exceed the maximum.
1569
+ const { shift } = this.db
1570
+ .prepare(`
1571
+ SELECT COALESCE(MAX(ordinal), 0) AS shift
1572
+ FROM runtime_session_event_ordinals
1573
+ WHERE session_id = ?
1574
+ `)
1575
+ .get(sessionId);
1576
+ this.db
1577
+ .prepare(`
1578
+ UPDATE runtime_session_event_ordinals
1579
+ SET ordinal = ordinal + :shift
1580
+ WHERE session_id = :sessionId
1581
+ `)
1582
+ .run({ sessionId, shift });
1583
+ this.db
1584
+ .prepare(`
1585
+ WITH opening AS (
1586
+ SELECT invocation_id, CAST(json_extract(payload_json, '$.ts') AS INTEGER) AS opened_at
1587
+ FROM runtime_events
1588
+ WHERE session_id = :sessionId AND event_kind = 'invocation_opened'
1589
+ ),
1590
+ ordered AS MATERIALIZED (
1591
+ SELECT
1592
+ o.event_id AS event_id,
1593
+ ROW_NUMBER() OVER (
1594
+ ORDER BY COALESCE(opening.opened_at, e.committed_at), e.invocation_id, o.ordinal
1595
+ ) AS ordinal
1596
+ FROM runtime_session_event_ordinals o
1597
+ JOIN runtime_events e ON e.event_id = o.event_id
1598
+ LEFT JOIN opening ON opening.invocation_id = e.invocation_id
1599
+ WHERE o.session_id = :sessionId
1600
+ )
1601
+ UPDATE runtime_session_event_ordinals
1602
+ SET ordinal = (
1603
+ SELECT ordered.ordinal
1604
+ FROM ordered
1605
+ WHERE ordered.event_id = runtime_session_event_ordinals.event_id
1606
+ )
1607
+ WHERE session_id = :sessionId
1608
+ `)
1609
+ .run({ sessionId });
1610
+ rebuildTranscriptTurnExtents(this.db, sessionId);
1611
+ });
1612
+ }
791
1613
  async #commitWorkspaceBaseline(input, rootId) {
792
1614
  const events = buildWorkspaceBaselineAuthorityEvents(input);
793
1615
  return this.transaction(() => {
@@ -1063,8 +1885,7 @@ export class SqliteRuntimeStore {
1063
1885
  });
1064
1886
  }
1065
1887
  registerWorkspaceBaselineAuthorityWriter() {
1066
- const readWorkspaceHead = this.readWorkspaceHead.bind(this);
1067
- registerWorkspaceBaselineAuthorityWriterInternal(this, (input, rootId) => this.#commitWorkspaceBaseline(input, rootId), (input, rootId) => this.#commitWorkspaceSuccessor(input, rootId), (input, rootId) => this.#commitManagedMutationTerminal(input, rootId), (rootId) => this.#bindWorkspaceStorageRoot(rootId), readWorkspaceHead, (workspaceInstanceId) => this.#readActiveManagedMutation(workspaceInstanceId));
1888
+ registerWorkspaceBaselineAuthorityWriterInternal(this, (input, rootId) => this.#commitWorkspaceBaseline(input, rootId), (input, rootId) => this.#commitWorkspaceSuccessor(input, rootId), (input, rootId) => this.#commitManagedMutationTerminal(input, rootId), (rootId) => this.#bindWorkspaceStorageRoot(rootId), (workspaceInstanceId) => this.#readActiveManagedMutation(workspaceInstanceId));
1068
1889
  }
1069
1890
  async #readActiveManagedMutation(workspaceInstanceId) {
1070
1891
  return this.readTransaction(() => {
@@ -1800,25 +2621,37 @@ export class SqliteRuntimeStore {
1800
2621
  async readToolOperation(operationId) {
1801
2622
  return this.readToolOperationSync(operationId);
1802
2623
  }
1803
- async listUnsettledToolOperations(sessionId) {
2624
+ async listUnsettledToolOperations(sessionIds) {
2625
+ const selectedSessionIds = sessionIds === undefined
2626
+ ? undefined
2627
+ : [...new Set(typeof sessionIds === 'string' ? [sessionIds] : sessionIds)];
2628
+ if (selectedSessionIds?.length === 0)
2629
+ return [];
1804
2630
  const query = `
1805
- SELECT operation_id, invocation_id, run_id, turn_id, provider_tool_call_id,
1806
- tool_name, canonical_args_hash, recovery_mode, current_state,
1807
- call_event_id, dispatch_event_id, result_event_id, version
2631
+ SELECT call_event.session_id,
2632
+ tool_operations.operation_id, tool_operations.invocation_id,
2633
+ tool_operations.run_id, tool_operations.turn_id,
2634
+ tool_operations.provider_tool_call_id, tool_operations.tool_name,
2635
+ tool_operations.canonical_args_hash, tool_operations.recovery_mode,
2636
+ tool_operations.current_state, tool_operations.call_event_id,
2637
+ tool_operations.dispatch_event_id, tool_operations.result_event_id,
2638
+ tool_operations.version
1808
2639
  FROM tool_operations
1809
- WHERE current_state = 'prepared'
1810
- AND result_event_id IS NULL
1811
- AND dispatch_event_id IS NOT NULL
1812
- ${sessionId === undefined
2640
+ JOIN runtime_events AS call_event
2641
+ ON call_event.event_id = tool_operations.call_event_id
2642
+ WHERE tool_operations.current_state = 'prepared'
2643
+ AND tool_operations.result_event_id IS NULL
2644
+ AND tool_operations.dispatch_event_id IS NOT NULL
2645
+ ${selectedSessionIds === undefined
1813
2646
  ? ''
1814
- : 'AND call_event_id IN (SELECT event_id FROM runtime_events WHERE session_id = ?)'}
1815
- ORDER BY invocation_id ASC, operation_id ASC
2647
+ : 'AND call_event.session_id IN (SELECT value FROM json_each(?))'}
2648
+ ORDER BY tool_operations.invocation_id ASC, tool_operations.operation_id ASC
1816
2649
  `;
1817
2650
  const statement = this.db.prepare(query);
1818
- const rows = (sessionId === undefined
2651
+ const rows = (selectedSessionIds === undefined
1819
2652
  ? statement.all()
1820
- : statement.all(sessionId));
1821
- return rows.map(toolOperationFromRow);
2653
+ : statement.all(JSON.stringify(selectedSessionIds)));
2654
+ return rows.map((row) => ({ sessionId: row.session_id, ...toolOperationFromRow(row) }));
1822
2655
  }
1823
2656
  async readToolJournal(operationId) {
1824
2657
  const rows = this.db
@@ -1833,9 +2666,69 @@ export class SqliteRuntimeStore {
1833
2666
  .all(operationId);
1834
2667
  return rows.map(toolJournalRecordFromRow);
1835
2668
  }
2669
+ /** Explicit full-workspace integrity audit and disposable projection rebuild. */
1836
2670
  async rebuildToolProjectionsFromRuntimeEvents() {
1837
2671
  return this.transaction(() => this.rebuildToolProjectionsFromRuntimeEventsSync());
1838
2672
  }
2673
+ /** Rebuild one Session's disposable tool projections while its owner holds a fence. */
2674
+ async rebuildToolProjectionsForSession(sessionId) {
2675
+ await this.transaction(() => this.rebuildToolProjectionsFromRuntimeEventsSync(sessionId));
2676
+ }
2677
+ /**
2678
+ * Repair terminal projections for unsettled tools without decoding the
2679
+ * Session's full RuntimeEvent history. Bundle export is a compatibility
2680
+ * boundary: unrelated historical payloads may be byte-preserved and newer
2681
+ * or older than the RuntimeEvent schema understood by this build.
2682
+ */
2683
+ async rebuildTerminalToolProjectionsForSessions(sessionIds) {
2684
+ const operations = await this.listUnsettledToolOperations(sessionIds);
2685
+ if (operations.length === 0)
2686
+ return;
2687
+ this.transaction(() => {
2688
+ const dispatchSequence = this.db.prepare(`
2689
+ SELECT event_seq
2690
+ FROM runtime_events
2691
+ WHERE event_id = ? AND session_id = ? AND invocation_id = ?
2692
+ `);
2693
+ const firstTerminal = this.db.prepare(`
2694
+ SELECT event_id, event_seq, committed_at
2695
+ FROM runtime_events
2696
+ WHERE session_id = ? AND invocation_id = ?
2697
+ AND ${TERMINAL_RUNTIME_EVENT_SQL}
2698
+ ORDER BY event_seq ASC, event_id ASC
2699
+ LIMIT 1
2700
+ `);
2701
+ const insertJournal = this.db.prepare(`
2702
+ INSERT INTO tool_journal_events (
2703
+ journal_event_id, operation_id, invocation_id, run_id, turn_id, state,
2704
+ runtime_event_id, canonical_args_hash, recovery_mode, committed_at
2705
+ ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
2706
+ `);
2707
+ const updateOperation = this.db.prepare(`
2708
+ UPDATE tool_operations
2709
+ SET current_state = ?, version = version + 1
2710
+ WHERE operation_id = ? AND current_state = 'prepared' AND result_event_id IS NULL
2711
+ `);
2712
+ for (const operation of operations) {
2713
+ if (!operation.dispatchEventId)
2714
+ continue;
2715
+ const dispatch = dispatchSequence.get(operation.dispatchEventId, operation.sessionId, operation.invocationId);
2716
+ if (!dispatch)
2717
+ continue;
2718
+ const terminal = firstTerminal.get(operation.sessionId, operation.invocationId);
2719
+ if (!terminal || terminal.event_seq <= dispatch.event_seq)
2720
+ continue;
2721
+ const state = operation.toolName === 'AskUserQuestion' && operation.recoveryMode === 'never_auto_retry'
2722
+ ? 'abandoned'
2723
+ : 'interrupted_unknown';
2724
+ insertJournal.run(journalEventIdFor(operation.operationId, terminal.event_id, state), operation.operationId, operation.invocationId, operation.runId, operation.turnId, state, terminal.event_id, operation.canonicalArgsHash, operation.recoveryMode, terminal.committed_at);
2725
+ const updated = updateOperation.run(state, operation.operationId);
2726
+ if (updated.changes !== 1) {
2727
+ throw new Error(`Tool operation projection changed during export: ${operation.operationId}`);
2728
+ }
2729
+ }
2730
+ });
2731
+ }
1839
2732
  rebuildToolProjectionsFromRuntimeEventsSync(sessionId) {
1840
2733
  const statement = this.db.prepare(`
1841
2734
  SELECT event_id, session_id, invocation_id, run_id, turn_id,
@@ -1849,6 +2742,14 @@ export class SqliteRuntimeStore {
1849
2742
  : statement.all(sessionId));
1850
2743
  const events = rows.map(decodeRuntimeEventStorageRow);
1851
2744
  const eventOrder = new Map(events.map((event, index) => [event.id, index]));
2745
+ const runtimeInvocationKey = (event) => JSON.stringify([event.sessionId, event.invocationId]);
2746
+ const terminalEventsByInvocation = new Map();
2747
+ for (const event of events) {
2748
+ if (isTerminalRuntimeEvent(event) &&
2749
+ !terminalEventsByInvocation.has(runtimeInvocationKey(event))) {
2750
+ terminalEventsByInvocation.set(runtimeInvocationKey(event), event);
2751
+ }
2752
+ }
1852
2753
  const committedAt = new Map(rows.map((row, index) => [events[index].id, row.committed_at]));
1853
2754
  const scan = scanToolLedger(events);
1854
2755
  if (scan.hasCorruption) {
@@ -1906,6 +2807,21 @@ export class SqliteRuntimeStore {
1906
2807
  }
1907
2808
  const reconcileEvent = recovery.kind === 'valid' ? recovery.reconcileEvent : undefined;
1908
2809
  const decisionEvent = recovery.kind === 'valid' ? recovery.decisionEvent : undefined;
2810
+ const decision = recovery.kind === 'valid' ? recovery.decision : undefined;
2811
+ const terminalEvent = terminalEventsByInvocation.get(runtimeInvocationKey(event));
2812
+ const terminalAfterDispatch = terminalEvent !== undefined &&
2813
+ requireRuntimeEventOrder(eventOrder, terminalEvent.id) >
2814
+ requireRuntimeEventOrder(eventOrder, event.id);
2815
+ const abandoned = !decision &&
2816
+ !operation.responseEvent &&
2817
+ dispatch.toolName === 'AskUserQuestion' &&
2818
+ dispatch.recoveryMode === 'never_auto_retry' &&
2819
+ terminalAfterDispatch;
2820
+ // A terminal invocation closes the tool's execution window, but does not
2821
+ // prove whether an external side effect completed. Preserve that
2822
+ // uncertainty in the query projection without rewriting the immutable
2823
+ // RuntimeEvent history.
2824
+ const interruptedUnknown = !decision && !operation.responseEvent && !abandoned && terminalAfterDispatch;
1909
2825
  this.db
1910
2826
  .prepare(`
1911
2827
  INSERT INTO tool_journal_events (
@@ -1916,14 +2832,17 @@ export class SqliteRuntimeStore {
1916
2832
  .run(`${dispatch.operationId}_prepared`, dispatch.operationId, event.invocationId, event.runId, event.turnId, event.id, dispatch.canonicalArgsHash, dispatch.recoveryMode, committedAt.get(event.id) ?? event.ts);
1917
2833
  journalEvents += 1;
1918
2834
  const response = operation.responseEvent;
1919
- const decision = recovery.kind === 'valid' ? recovery.decision : undefined;
1920
2835
  const currentState = decision
1921
2836
  ? decision.disposition === 'completed'
1922
2837
  ? 'recovery_completed'
1923
2838
  : 'recovery_parked'
1924
2839
  : response
1925
2840
  ? 'outcome_committed'
1926
- : 'prepared';
2841
+ : abandoned
2842
+ ? 'abandoned'
2843
+ : interruptedUnknown
2844
+ ? 'interrupted_unknown'
2845
+ : 'prepared';
1927
2846
  const tail = [
1928
2847
  ...(reconcileEvent
1929
2848
  ? [{ event: reconcileEvent, state: 'reconcile_observed' }]
@@ -1939,6 +2858,12 @@ export class SqliteRuntimeStore {
1939
2858
  },
1940
2859
  ]
1941
2860
  : []),
2861
+ ...(abandoned && terminalEvent
2862
+ ? [{ event: terminalEvent, state: 'abandoned' }]
2863
+ : []),
2864
+ ...(interruptedUnknown && terminalEvent
2865
+ ? [{ event: terminalEvent, state: 'interrupted_unknown' }]
2866
+ : []),
1942
2867
  ].sort((a, b) => requireRuntimeEventOrder(eventOrder, a.event.id) -
1943
2868
  requireRuntimeEventOrder(eventOrder, b.event.id));
1944
2869
  this.db
@@ -1958,7 +2883,7 @@ export class SqliteRuntimeStore {
1958
2883
  runtime_event_id, canonical_args_hash, recovery_mode, metadata_json, committed_at
1959
2884
  ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
1960
2885
  `)
1961
- .run(journalEventIdFor(dispatch.operationId, item.event, item.state), dispatch.operationId, item.event.invocationId, item.event.runId, item.event.turnId, item.state, item.event.id, dispatch.canonicalArgsHash, dispatch.recoveryMode, item.event.actions?.toolRecovery
2886
+ .run(journalEventIdFor(dispatch.operationId, item.event.id, item.state), dispatch.operationId, item.event.invocationId, item.event.runId, item.event.turnId, item.state, item.event.id, dispatch.canonicalArgsHash, dispatch.recoveryMode, item.event.actions?.toolRecovery
1962
2887
  ? JSON.stringify(item.event.actions.toolRecovery)
1963
2888
  : null, committedAt.get(item.event.id) ?? item.event.ts);
1964
2889
  journalEvents += 1;
@@ -1986,6 +2911,11 @@ export class SqliteRuntimeStore {
1986
2911
  const dispatchEvent = dispatchJson
1987
2912
  ? decodeRuntimeEvent(JSON.parse(dispatchJson))
1988
2913
  : undefined;
2914
+ if (dispatchEvent?.actions?.toolDispatch?.resultProjectionVersion === 1 &&
2915
+ input.runtimeEvent.content?.kind === 'function_response' &&
2916
+ input.runtimeEvent.content.modelProjection === undefined) {
2917
+ throw new Error('Projected Tool Result T2 requires its durable model projection');
2918
+ }
1989
2919
  if (dispatchEvent?.actions?.toolDispatch?.managedMutation) {
1990
2920
  const reservation = this.db
1991
2921
  .prepare(`
@@ -2089,13 +3019,21 @@ export class SqliteRuntimeStore {
2089
3019
  }
2090
3020
  }
2091
3021
  transaction(operation) {
2092
- if (this.databaseLease)
2093
- return this.databaseLease.transaction('write', operation);
3022
+ if (this.databaseLease) {
3023
+ const nested = this.db.isTransaction;
3024
+ return this.databaseLease.transaction('write', () => {
3025
+ // A sibling lease may have changed the shared transaction view since
3026
+ // this store last used its reconstructible cache.
3027
+ if (nested)
3028
+ this.clearToolLedgerCache();
3029
+ return operation();
3030
+ });
3031
+ }
2094
3032
  this.db.exec('BEGIN IMMEDIATE');
3033
+ let result;
2095
3034
  try {
2096
- const result = operation();
3035
+ result = operation();
2097
3036
  this.db.exec('COMMIT');
2098
- return result;
2099
3037
  }
2100
3038
  catch (error) {
2101
3039
  try {
@@ -2104,8 +3042,38 @@ export class SqliteRuntimeStore {
2104
3042
  catch {
2105
3043
  // Preserve the protocol failure that caused rollback.
2106
3044
  }
3045
+ // Reducers may have loaded rows written earlier in this transaction as
3046
+ // their immutable base. Bump the local view even on rollback so the next
3047
+ // admission discards that phantom base before retrying.
3048
+ this.localCommittedWriteRevision += 1;
3049
+ this.settleEventCommits(false);
3050
+ this.settleToolLedgerStates(false);
2107
3051
  throw error;
2108
3052
  }
3053
+ this.localCommittedWriteRevision += 1;
3054
+ this.settleEventCommits(true);
3055
+ this.settleToolLedgerStates(true);
3056
+ return result;
3057
+ }
3058
+ noteEventCommit(sessionId) {
3059
+ if (this.uncommittedEventSessions.size === 0 && this.databaseLease) {
3060
+ this.databaseLease.onTransactionSettled((committed) => this.settleEventCommits(committed));
3061
+ }
3062
+ this.uncommittedEventSessions.add(sessionId);
3063
+ }
3064
+ settleEventCommits(committed) {
3065
+ const sessionIds = [...this.uncommittedEventSessions];
3066
+ this.uncommittedEventSessions.clear();
3067
+ if (!committed)
3068
+ return;
3069
+ for (const sessionId of sessionIds) {
3070
+ for (const listener of this.eventCommitListeners)
3071
+ listener(sessionId);
3072
+ }
3073
+ }
3074
+ subscribeRuntimeEventCommits(listener) {
3075
+ this.eventCommitListeners.add(listener);
3076
+ return () => this.eventCommitListeners.delete(listener);
2109
3077
  }
2110
3078
  readTransaction(operation) {
2111
3079
  if (this.databaseLease)
@@ -2145,7 +3113,7 @@ export class SqliteRuntimeStore {
2145
3113
  target_invocation_id,
2146
3114
  target_run_id,
2147
3115
  target_turn_id,
2148
- target_run_header_json,
3116
+ target_opening_json,
2149
3117
  claimed_at,
2150
3118
  start_event_id,
2151
3119
  start_kind,
@@ -2175,7 +3143,7 @@ export class SqliteRuntimeStore {
2175
3143
  target_invocation_id,
2176
3144
  target_run_id,
2177
3145
  target_turn_id,
2178
- target_run_header_json,
3146
+ target_opening_json,
2179
3147
  claimed_at,
2180
3148
  start_event_id,
2181
3149
  start_kind,
@@ -2196,6 +3164,7 @@ export class SqliteRuntimeStore {
2196
3164
  target.invocationId,
2197
3165
  target.sessionId,
2198
3166
  target.runId,
3167
+ claim.targetOpening.source.kind === 'handoff' ? 1 : 0,
2199
3168
  target.sessionId,
2200
3169
  target.turnId,
2201
3170
  ];
@@ -2205,7 +3174,7 @@ export class SqliteRuntimeStore {
2205
3174
  FROM runtime_events
2206
3175
  WHERE invocation_id = ?
2207
3176
  OR (session_id = ? AND run_id = ?)
2208
- OR (session_id = ? AND turn_id = ?)
3177
+ OR (? = 0 AND session_id = ? AND turn_id = ?)
2209
3178
  LIMIT 1
2210
3179
  `)
2211
3180
  .get(...values);
@@ -2217,7 +3186,7 @@ export class SqliteRuntimeStore {
2217
3186
  FROM runtime_partial_snapshots
2218
3187
  WHERE invocation_id = ?
2219
3188
  OR (session_id = ? AND run_id = ?)
2220
- OR (session_id = ? AND turn_id = ?)
3189
+ OR (? = 0 AND session_id = ? AND turn_id = ?)
2221
3190
  LIMIT 1
2222
3191
  `)
2223
3192
  .get(...values) !== undefined);
@@ -2242,6 +3211,7 @@ export class SqliteRuntimeStore {
2242
3211
  }
2243
3212
  assertContinuationBoundaryMatchesLedger(claim) {
2244
3213
  const lastIndex = claim.boundary.segments.length - 1;
3214
+ let previousPrefix;
2245
3215
  for (const [index, segment] of claim.boundary.segments.entries()) {
2246
3216
  let prefix;
2247
3217
  try {
@@ -2269,74 +3239,299 @@ export class SqliteRuntimeStore {
2269
3239
  ? 'Continuation source boundary changed'
2270
3240
  : `Continuation ancestor boundary changed for ${segment.identity.runId}`);
2271
3241
  }
3242
+ const opening = prefix.events[0]?.content;
3243
+ const repeatsTurn = previousPrefix?.identity.turnId === prefix.identity.turnId;
3244
+ if (repeatsTurn ||
3245
+ (opening?.kind === 'invocation_opened' && opening.source.kind === 'handoff')) {
3246
+ if (!previousPrefix ||
3247
+ opening?.kind !== 'invocation_opened' ||
3248
+ opening.source.kind !== 'handoff') {
3249
+ throw new Error('Same-turn boundary requires an authenticated handoff edge');
3250
+ }
3251
+ const row = this.readContinuationClaimRow('claim_id = ?', opening.source.claimId);
3252
+ const state = row && this.decodeContinuationClaimStateRow(row);
3253
+ if (!state ||
3254
+ state.startEventId !== prefix.events[0]?.id ||
3255
+ !isDeepStrictEqual(state.claim.boundary.segments, claim.boundary.segments.slice(0, index)) ||
3256
+ !continuationStartEventMatchesClaim(prefix.events[0], state.claim, state.startKind)) {
3257
+ throw new Error('Same-turn boundary handoff claim does not authenticate its lineage');
3258
+ }
3259
+ assertHandoffClaimSource(state.claim, previousPrefix);
3260
+ }
2272
3261
  if (index === lastIndex) {
3262
+ assertHandoffClaimSource(claim, prefix);
2273
3263
  const terminalEvents = prefix.events.filter(isTerminalRuntimeEvent);
2274
3264
  const terminal = terminalEvents[0];
2275
3265
  if (terminalEvents.length !== 1 || !terminal || prefix.events.at(-1)?.id !== terminal.id) {
2276
3266
  throw new Error('Continuation source boundary must end with exactly one terminal RuntimeEvent');
2277
3267
  }
2278
3268
  }
3269
+ previousPrefix = prefix;
2279
3270
  }
2280
3271
  }
2281
3272
  assertToolLedgerTransition(candidateEvents, expectedTransition) {
2282
- this.assertWorkspaceToolLedgerHealthy();
2283
- // Tool-call identity is scoped by invocation. Reading unrelated invocations here turns
2284
- // concurrent subagents into repeated whole-workspace scans without strengthening the
2285
- // transition check; event and operation uniqueness remain enforced by SQLite keys.
2286
- const rows = [];
2287
- const invocationIds = [...new Set(candidateEvents.map((event) => event.invocationId))].sort();
3273
+ const canonicalEncodings = candidateEvents.map(encodeCanonicalRuntimeEvent);
3274
+ const canonicalEvents = canonicalEncodings.map(({ event }) => event);
3275
+ const entry = this.toolLedgerCacheEntry(canonicalEvents);
3276
+ const appendedEncodings = canonicalEncodings.filter(({ event }) => entry.reducer.event(event.id) === undefined);
3277
+ const validation = validateIncrementalToolLedgerTransition({
3278
+ reducer: entry.reducer,
3279
+ candidateEvents: canonicalEvents,
3280
+ expectedTransition,
3281
+ });
3282
+ if (!validation.ok) {
3283
+ if (validation.source === 'existing') {
3284
+ throw new ToolLedgerCorruptionError(validation.code, validation.eventId);
3285
+ }
3286
+ throw new ToolLedgerRejectionError(validation.code, validation.eventId);
3287
+ }
3288
+ if (validation.appendedEvents === 0)
3289
+ return;
3290
+ this.noteToolLedgerState(entry, validation.checkpoint, canonicalEvents.map((event) => event.invocationId), {
3291
+ eventCount: validation.appendedEvents,
3292
+ estimatedBytes: estimateToolLedgerCacheBytes(appendedEncodings.reduce((bytes, encoding) => bytes + Buffer.byteLength(encoding.json, 'utf8'), 0), validation.appendedEvents),
3293
+ });
3294
+ }
3295
+ toolLedgerCacheEntry(candidateEvents) {
3296
+ const currentVersion = this.currentToolLedgerCacheVersion();
3297
+ if (this.toolLedgerCacheVersion !== currentVersion)
3298
+ this.refreshToolLedgerCacheVersion();
3299
+ const directInvocationIds = new Set(candidateEvents.map((event) => event.invocationId));
3300
+ const directOperationIds = referencedToolOperationIds(candidateEvents);
3301
+ for (const invocationId of this.toolLedgerOperationInvocations(directOperationIds)) {
3302
+ directInvocationIds.add(invocationId);
3303
+ }
3304
+ for (const [key, entry] of this.toolLedgerCache) {
3305
+ if (entry.seedInvocationIds.size === directInvocationIds.size &&
3306
+ [...directInvocationIds].every((invocationId) => entry.seedInvocationIds.has(invocationId))) {
3307
+ this.toolLedgerCacheMetrics.hits += 1;
3308
+ this.touchToolLedgerCacheEntry(key, entry);
3309
+ return entry;
3310
+ }
3311
+ }
3312
+ this.toolLedgerCacheMetrics.misses += 1;
3313
+ const invocationIds = new Set(directInvocationIds);
3314
+ const operationIds = new Set(directOperationIds);
3315
+ const resolvedOperationIds = new Set();
3316
+ const loadedInvocationIds = new Set();
3317
+ const scopedEvents = [];
3318
+ let storedPayloadBytes = 0;
2288
3319
  const readInvocation = this.db.prepare(`
2289
- SELECT event_id, session_id, invocation_id, run_id, turn_id, payload_json
3320
+ SELECT event_id, session_id, invocation_id, run_id, turn_id, event_seq, payload_json,
3321
+ length(CAST(payload_json AS BLOB)) AS stored_bytes
2290
3322
  FROM runtime_events
2291
3323
  WHERE invocation_id = ?
2292
3324
  ORDER BY event_seq ASC, event_id ASC
2293
3325
  `);
2294
- for (const invocationId of invocationIds) {
2295
- rows.push(...readInvocation.all(invocationId));
3326
+ while (true) {
3327
+ const pendingOperationIds = [...operationIds].filter((operationId) => !resolvedOperationIds.has(operationId));
3328
+ if (pendingOperationIds.length > 0) {
3329
+ for (const operationId of pendingOperationIds)
3330
+ resolvedOperationIds.add(operationId);
3331
+ for (const invocationId of this.toolLedgerOperationInvocations(pendingOperationIds)) {
3332
+ invocationIds.add(invocationId);
3333
+ }
3334
+ }
3335
+ const pendingInvocationIds = [...invocationIds]
3336
+ .filter((invocationId) => !loadedInvocationIds.has(invocationId))
3337
+ .sort();
3338
+ if (pendingInvocationIds.length === 0 && pendingOperationIds.length === 0)
3339
+ break;
3340
+ for (const invocationId of pendingInvocationIds) {
3341
+ loadedInvocationIds.add(invocationId);
3342
+ const rows = readInvocation.all(invocationId);
3343
+ for (const row of rows) {
3344
+ storedPayloadBytes += requireRuntimeEventScanCount(row.stored_bytes);
3345
+ const event = decodeRuntimeEventStorageRow(row);
3346
+ scopedEvents.push({ event, eventSeq: row.event_seq });
3347
+ if (event.refs?.parentOperationId)
3348
+ operationIds.add(event.refs.parentOperationId);
3349
+ }
3350
+ }
2296
3351
  }
2297
- const validation = validateToolLedgerTransition({
2298
- existingEvents: rows.map(decodeRuntimeEventStorageRow),
2299
- candidateEvents: candidateEvents.map(canonicalizeRuntimeEventForStorage),
2300
- expectedTransition,
2301
- });
2302
- if (!validation.ok) {
2303
- throw new ToolLedgerRejectionError(validation.code, validation.eventId);
3352
+ const sortedSeedInvocationIds = [...directInvocationIds].sort();
3353
+ const sortedInvocationIds = [...invocationIds].sort();
3354
+ const key = JSON.stringify([sortedSeedInvocationIds, sortedInvocationIds]);
3355
+ const existing = this.toolLedgerCache.get(key);
3356
+ if (existing) {
3357
+ this.touchToolLedgerCacheEntry(key, existing);
3358
+ return existing;
3359
+ }
3360
+ scopedEvents.sort((left, right) => left.event.invocationId.localeCompare(right.event.invocationId) ||
3361
+ left.eventSeq - right.eventSeq ||
3362
+ left.event.id.localeCompare(right.event.id));
3363
+ const entry = {
3364
+ reducer: new ToolLedgerReducer(scopedEvents.map(({ event }) => event)),
3365
+ seedInvocationIds: new Set(sortedSeedInvocationIds),
3366
+ invocationIds: new Set(sortedInvocationIds),
3367
+ eventCount: scopedEvents.length,
3368
+ estimatedBytes: estimateToolLedgerCacheBytes(storedPayloadBytes, scopedEvents.length),
3369
+ };
3370
+ if (this.toolLedgerEntryExceedsAdmissionBudget(entry)) {
3371
+ this.toolLedgerCacheMetrics.transientEntries += 1;
3372
+ return entry;
2304
3373
  }
3374
+ this.retainToolLedgerCacheEntry(key, entry);
3375
+ this.trimToolLedgerCache();
3376
+ return entry;
3377
+ }
3378
+ toolLedgerOperationInvocations(operationIds) {
3379
+ const ids = [...new Set(operationIds)].sort();
3380
+ if (ids.length === 0)
3381
+ return new Set();
3382
+ const placeholders = ids.map(() => '?').join(', ');
3383
+ const rows = this.db
3384
+ .prepare(`
3385
+ SELECT DISTINCT invocation_id
3386
+ FROM runtime_events
3387
+ WHERE event_kind = 'tool_dispatch'
3388
+ AND CASE
3389
+ WHEN json_valid(payload_json)
3390
+ THEN json_extract(payload_json, '$.actions.toolDispatch.operationId')
3391
+ END IN (${placeholders})
3392
+ `)
3393
+ .all(...ids);
3394
+ return new Set(rows.map((row) => row.invocation_id));
3395
+ }
3396
+ noteToolLedgerState(entry, checkpoint, invocationIds, delta) {
3397
+ const reducer = entry.reducer;
3398
+ const existing = this.uncommittedToolLedgerStates.get(reducer);
3399
+ if (existing) {
3400
+ for (const invocationId of invocationIds)
3401
+ existing.changedInvocationIds.add(invocationId);
3402
+ this.adjustToolLedgerCacheEntry(entry, delta);
3403
+ return;
3404
+ }
3405
+ if (this.uncommittedToolLedgerStates.size === 0 && this.databaseLease) {
3406
+ this.databaseLease.onTransactionSettled((committed) => this.settleToolLedgerStates(committed));
3407
+ }
3408
+ this.uncommittedToolLedgerStates.set(reducer, {
3409
+ checkpoint,
3410
+ changedInvocationIds: new Set(invocationIds),
3411
+ entry,
3412
+ estimatedBytesBefore: entry.estimatedBytes,
3413
+ eventCountBefore: entry.eventCount,
3414
+ });
3415
+ this.adjustToolLedgerCacheEntry(entry, delta);
2305
3416
  }
2306
- assertWorkspaceToolLedgerHealthy() {
2307
- const dataVersion = this.runtimeDataVersion();
2308
- if (!this.toolLedgerHealth || this.toolLedgerHealth.dataVersion !== dataVersion) {
2309
- this.refreshToolLedgerHealth();
3417
+ settleToolLedgerStates(committed) {
3418
+ const states = [...this.uncommittedToolLedgerStates.entries()];
3419
+ this.uncommittedToolLedgerStates.clear();
3420
+ if (states.length === 0)
3421
+ return;
3422
+ if (!committed) {
3423
+ for (const [reducer, state] of states.reverse()) {
3424
+ reducer.rollback(state.checkpoint);
3425
+ this.restoreToolLedgerCacheEntry(state);
3426
+ }
3427
+ this.trimToolLedgerCache();
3428
+ return;
2310
3429
  }
2311
- const health = this.toolLedgerHealth;
2312
- if (health.decodeFailure)
2313
- throw health.decodeFailure.error;
2314
- if (health.issue) {
2315
- // Pre-existing damage, not a bad candidate. Note the reach of "refused":
2316
- // this gate is only ever consulted for tool-bearing events, so a damaged
2317
- // ledger refuses tool facts and takes everything else. Callers that treat
2318
- // this as "the store is gone" are overreading it — see the note on the
2319
- // latch in `AgentRun.enqueueRuntimeEventStore`.
2320
- throw new ToolLedgerCorruptionError(health.issue.code, health.issue.eventId);
3430
+ const retained = new Set(states.map(([reducer]) => reducer));
3431
+ const changedInvocationIds = new Set(states.flatMap(([, state]) => [...state.changedInvocationIds]));
3432
+ for (const [key, entry] of this.toolLedgerCache) {
3433
+ if (retained.has(entry.reducer))
3434
+ continue;
3435
+ if ([...entry.invocationIds].some((id) => changedInvocationIds.has(id))) {
3436
+ this.deleteToolLedgerCacheEntry(key);
3437
+ }
3438
+ }
3439
+ for (const [reducer, state] of states)
3440
+ reducer.commit(state.checkpoint);
3441
+ this.toolLedgerCacheVersion = this.currentToolLedgerCacheVersion();
3442
+ this.trimToolLedgerCache();
3443
+ }
3444
+ refreshToolLedgerCacheVersion() {
3445
+ if (this.uncommittedToolLedgerStates.size > 0) {
3446
+ throw new Error('Cannot invalidate tool ledger state during an open write transaction');
3447
+ }
3448
+ this.clearToolLedgerCache();
3449
+ this.toolLedgerCacheVersion = this.currentToolLedgerCacheVersion();
3450
+ }
3451
+ retainToolLedgerCacheEntry(key, entry) {
3452
+ entry.cacheKey = key;
3453
+ this.toolLedgerCache.set(key, entry);
3454
+ this.toolLedgerCacheEstimatedBytes += entry.estimatedBytes;
3455
+ this.toolLedgerCacheEventCount += entry.eventCount;
3456
+ }
3457
+ touchToolLedgerCacheEntry(key, entry) {
3458
+ this.toolLedgerCache.delete(key);
3459
+ this.toolLedgerCache.set(key, entry);
3460
+ }
3461
+ adjustToolLedgerCacheEntry(entry, delta) {
3462
+ entry.estimatedBytes += delta.estimatedBytes;
3463
+ entry.eventCount += delta.eventCount;
3464
+ if (entry.cacheKey && this.toolLedgerCache.get(entry.cacheKey) === entry) {
3465
+ this.toolLedgerCacheEstimatedBytes += delta.estimatedBytes;
3466
+ this.toolLedgerCacheEventCount += delta.eventCount;
2321
3467
  }
2322
3468
  }
2323
- refreshToolLedgerHealth() {
2324
- const dataVersion = this.runtimeDataVersion();
2325
- try {
2326
- const rows = this.db
2327
- .prepare(`
2328
- SELECT event_id, session_id, invocation_id, run_id, turn_id, payload_json
2329
- FROM runtime_events
2330
- ORDER BY invocation_id ASC, event_seq ASC, event_id ASC
2331
- `)
2332
- .all();
2333
- const scan = scanToolLedger(rows.map(decodeRuntimeEventStorageRow));
2334
- this.toolLedgerHealth = { dataVersion, issue: scan.issues[0] };
3469
+ restoreToolLedgerCacheEntry(state) {
3470
+ const entry = state.entry;
3471
+ if (entry.cacheKey && this.toolLedgerCache.get(entry.cacheKey) === entry) {
3472
+ this.toolLedgerCacheEstimatedBytes += state.estimatedBytesBefore - entry.estimatedBytes;
3473
+ this.toolLedgerCacheEventCount += state.eventCountBefore - entry.eventCount;
2335
3474
  }
2336
- catch (error) {
2337
- this.toolLedgerHealth = { dataVersion, decodeFailure: { error } };
3475
+ entry.estimatedBytes = state.estimatedBytesBefore;
3476
+ entry.eventCount = state.eventCountBefore;
3477
+ }
3478
+ deleteToolLedgerCacheEntry(key, reason) {
3479
+ const entry = this.toolLedgerCache.get(key);
3480
+ if (!entry)
3481
+ return;
3482
+ this.toolLedgerCache.delete(key);
3483
+ if (entry.cacheKey === key)
3484
+ entry.cacheKey = undefined;
3485
+ this.toolLedgerCacheEstimatedBytes -= entry.estimatedBytes;
3486
+ this.toolLedgerCacheEventCount -= entry.eventCount;
3487
+ if (reason === 'budget')
3488
+ this.toolLedgerCacheMetrics.budgetEvictions += 1;
3489
+ if (reason === 'terminal')
3490
+ this.toolLedgerCacheMetrics.terminalEvictions += 1;
3491
+ }
3492
+ clearToolLedgerCache() {
3493
+ for (const entry of this.toolLedgerCache.values())
3494
+ entry.cacheKey = undefined;
3495
+ this.toolLedgerCache.clear();
3496
+ this.toolLedgerCacheEstimatedBytes = 0;
3497
+ this.toolLedgerCacheEventCount = 0;
3498
+ }
3499
+ invalidateToolLedgerCacheForInvocation(invocationId) {
3500
+ for (const [key, entry] of this.toolLedgerCache) {
3501
+ if (entry.invocationIds.has(invocationId)) {
3502
+ this.deleteToolLedgerCacheEntry(key, 'terminal');
3503
+ }
2338
3504
  }
2339
3505
  }
3506
+ toolLedgerEntryExceedsAdmissionBudget(entry) {
3507
+ return entry.estimatedBytes > this.toolLedgerCacheBudget.maxSingleEntryEstimatedBytes;
3508
+ }
3509
+ toolLedgerCacheExceedsBudget() {
3510
+ return (this.toolLedgerCache.size > this.toolLedgerCacheBudget.maxEntries ||
3511
+ this.toolLedgerCacheEstimatedBytes > this.toolLedgerCacheBudget.maxEstimatedBytes);
3512
+ }
3513
+ trimToolLedgerCache() {
3514
+ for (;;) {
3515
+ let victim;
3516
+ for (const [key, entry] of this.toolLedgerCache) {
3517
+ if (this.uncommittedToolLedgerStates.has(entry.reducer))
3518
+ continue;
3519
+ if (this.toolLedgerEntryExceedsAdmissionBudget(entry)) {
3520
+ victim = key;
3521
+ break;
3522
+ }
3523
+ }
3524
+ if (!victim && this.toolLedgerCacheExceedsBudget()) {
3525
+ victim = [...this.toolLedgerCache].find(([, entry]) => !this.uncommittedToolLedgerStates.has(entry.reducer))?.[0];
3526
+ }
3527
+ if (!victim)
3528
+ return;
3529
+ this.deleteToolLedgerCacheEntry(victim, 'budget');
3530
+ }
3531
+ }
3532
+ currentToolLedgerCacheVersion() {
3533
+ return `${this.runtimeDataVersion()}:${this.databaseLease?.writeViewRevision() ?? this.localCommittedWriteRevision}`;
3534
+ }
2340
3535
  runtimeDataVersion() {
2341
3536
  const row = this.db.prepare('PRAGMA data_version').get();
2342
3537
  return row.data_version;
@@ -2407,16 +3602,27 @@ export class SqliteRuntimeStore {
2407
3602
  }
2408
3603
  }
2409
3604
  assertContinuationAuthorityAllowsEvent(event, authorizedPendingClaimId, exactRetry = false) {
2410
- for (const row of this.readContinuationClaimRows()) {
3605
+ const rows = this.readContinuationClaimRows();
3606
+ const ownClaim = rows.find((row) => row.target_session_id === event.sessionId &&
3607
+ row.target_invocation_id === event.invocationId &&
3608
+ row.target_run_id === event.runId &&
3609
+ row.target_turn_id === event.turnId);
3610
+ const ownHandoff = ownClaim && decodeContinuationClaimRow(ownClaim);
3611
+ for (const row of rows) {
2411
3612
  const claim = decodeContinuationClaimRow(row);
2412
3613
  const source = claim.boundary.segments.find((segment) => segment.identity.sessionId === event.sessionId && segment.identity.runId === event.runId);
2413
3614
  if (source && !exactRetry) {
2414
3615
  throw new Error(`RuntimeEvent source boundary is sealed by continuation claim ${claim.claimId}`);
2415
3616
  }
3617
+ if (source && exactRetry)
3618
+ continue;
2416
3619
  const target = claim.target;
2417
3620
  const collidesWithTarget = event.invocationId === target.invocationId ||
2418
3621
  (event.sessionId === target.sessionId && event.runId === target.runId) ||
2419
- (event.sessionId === target.sessionId && event.turnId === target.turnId);
3622
+ (event.sessionId === target.sessionId &&
3623
+ event.turnId === target.turnId &&
3624
+ !(ownHandoff?.targetOpening.source.kind === 'handoff' &&
3625
+ ownHandoff.boundary.segments.some((segment) => segment.identity.runId === target.runId)));
2420
3626
  if (!collidesWithTarget)
2421
3627
  continue;
2422
3628
  if (event.sessionId !== target.sessionId ||
@@ -2436,11 +3642,7 @@ export class SqliteRuntimeStore {
2436
3642
  SELECT event_id, session_id, invocation_id, run_id, turn_id, payload_json
2437
3643
  FROM runtime_events
2438
3644
  WHERE session_id = ? AND run_id = ?
2439
- AND (
2440
- json_extract(payload_json, '$.actions.endInvocation') = 1
2441
- OR json_extract(payload_json, '$.status')
2442
- IN ('completed', 'failed', 'aborted', 'cancelled')
2443
- )
3645
+ AND ${TERMINAL_RUNTIME_EVENT_SQL}
2444
3646
  ORDER BY event_seq ASC
2445
3647
  `)
2446
3648
  .all(event.sessionId, event.runId);
@@ -2449,7 +3651,7 @@ export class SqliteRuntimeStore {
2449
3651
  throw new RunSealedError(event.runId);
2450
3652
  }
2451
3653
  }
2452
- importRuntimeEventSync(event) {
3654
+ importRuntimeEventSync(event, allowLegacyTerminalWithUnsettledOperation = false) {
2453
3655
  const canonicalEvent = canonicalizeRuntimeEventForStorage(event);
2454
3656
  this.assertInvocationIdentity([canonicalEvent]);
2455
3657
  const partial = partialRuntimeStream(canonicalEvent);
@@ -2468,6 +3670,21 @@ export class SqliteRuntimeStore {
2468
3670
  // consult either.
2469
3671
  if (!existing) {
2470
3672
  this.assertContinuationAuthorityAllowsEvent(canonicalEvent);
3673
+ if (isTerminalRuntimeEvent(canonicalEvent) && !allowLegacyTerminalWithUnsettledOperation) {
3674
+ const unresolved = this.db
3675
+ .prepare(`
3676
+ SELECT operation_id FROM tool_operations
3677
+ WHERE invocation_id = ?
3678
+ AND current_state = 'prepared'
3679
+ AND result_event_id IS NULL
3680
+ AND dispatch_event_id IS NOT NULL
3681
+ LIMIT 1
3682
+ `)
3683
+ .get(canonicalEvent.invocationId);
3684
+ if (unresolved && typeof unresolved.operation_id === 'string') {
3685
+ throw new Error(`Cannot terminalize invocation ${canonicalEvent.invocationId} with unsettled tool operation ${unresolved.operation_id}`);
3686
+ }
3687
+ }
2471
3688
  this.assertRunNotSealed(canonicalEvent);
2472
3689
  }
2473
3690
  if (isToolLedgerBearingEvent(canonicalEvent)) {
@@ -2512,21 +3729,28 @@ export class SqliteRuntimeStore {
2512
3729
  const messageId = immutableSteeringMessageId(event);
2513
3730
  if (!messageId)
2514
3731
  return;
2515
- const matches = this.readImmutableSessionRuntimeEvents(event.sessionId).filter((candidate) => immutableSteeringMessageId(candidate) === messageId);
3732
+ const matches = this.readImmutableSteeringMessageEvents(event.sessionId, messageId);
2516
3733
  if (matches.some((candidate) => !isDeepStrictEqual(candidate, event))) {
2517
3734
  throw new Error(`Immutable steering message identity conflict: ${messageId}`);
2518
3735
  }
2519
3736
  }
2520
- readImmutableSessionRuntimeEvents(sessionId) {
3737
+ readImmutableSteeringMessageEvents(sessionId, messageId) {
2521
3738
  const rows = this.db
2522
3739
  .prepare(`
2523
- SELECT event_id, session_id, invocation_id, run_id, turn_id, payload_json
2524
- FROM runtime_events
2525
- WHERE session_id = ?
2526
- ORDER BY committed_at ASC, event_id ASC
2527
- `)
2528
- .all(sessionId);
2529
- return rows.map(decodeRuntimeEventStorageRow);
3740
+ SELECT event_id, session_id, invocation_id, run_id, turn_id, payload_json
3741
+ FROM runtime_events
3742
+ WHERE session_id = ?
3743
+ AND ${IMMUTABLE_STEERING_SQL_PREDICATE}
3744
+ AND CASE
3745
+ WHEN json_valid(payload_json)
3746
+ THEN json_extract(payload_json, '$.refs.providerEventId')
3747
+ END = ?
3748
+ ORDER BY committed_at ASC, event_id ASC
3749
+ `)
3750
+ .all(sessionId, messageId);
3751
+ return rows
3752
+ .map(decodeRuntimeEventStorageRow)
3753
+ .filter((event) => immutableSteeringMessageId(event) === messageId);
2530
3754
  }
2531
3755
  insertRuntimeEvent(event, committedAt, allowExactDuplicate, authorizedPendingContinuationClaimId) {
2532
3756
  const encoding = encodeCanonicalRuntimeEvent(event);
@@ -2542,6 +3766,9 @@ export class SqliteRuntimeStore {
2542
3766
  if (!allowExactDuplicate) {
2543
3767
  throw new Error(`RuntimeEvent ${canonicalEvent.id} already exists outside this tool transaction`);
2544
3768
  }
3769
+ if (isTerminalRuntimeEvent(canonicalEvent)) {
3770
+ this.invalidateToolLedgerCacheForInvocation(canonicalEvent.invocationId);
3771
+ }
2545
3772
  return this.runtimeEventSeq(canonicalEvent.id);
2546
3773
  }
2547
3774
  this.assertContinuationAuthorityAllowsEvent(canonicalEvent, authorizedPendingContinuationClaimId);
@@ -2572,7 +3799,12 @@ export class SqliteRuntimeStore {
2572
3799
  VALUES (?, ?, ?)
2573
3800
  `)
2574
3801
  .run(canonicalEvent.sessionId, ordinal, canonicalEvent.id);
3802
+ recordTranscriptTurnExtent(this.db, { ...canonicalEvent, kind: runtimeEventKind(canonicalEvent) }, ordinal);
3803
+ this.noteEventCommit(canonicalEvent.sessionId);
2575
3804
  this.deleteCompletedPartialSnapshot(canonicalEvent);
3805
+ if (isTerminalRuntimeEvent(canonicalEvent)) {
3806
+ this.invalidateToolLedgerCacheForInvocation(canonicalEvent.invocationId);
3807
+ }
2576
3808
  return next;
2577
3809
  }
2578
3810
  deleteCompletedPartialSnapshot(event) {
@@ -2746,93 +3978,6 @@ function toolJournalRecordFromRow(row) {
2746
3978
  committedAt: row.committed_at,
2747
3979
  };
2748
3980
  }
2749
- function assertPreparedInput(input) {
2750
- if (input.journalEventId !== `${input.operationId}_prepared`) {
2751
- throw new Error('T1 journal identity must be derived from the tool operation');
2752
- }
2753
- assertNoReservedRecoveryFact(input.runtimeEvent);
2754
- assertNoReservedRecoveryFact(input.dispatchRuntimeEvent);
2755
- const content = input.runtimeEvent.content;
2756
- if (content?.kind !== 'function_call')
2757
- throw new Error('T1 requires a function_call RuntimeEvent');
2758
- if (content.id !== input.providerToolCallId || content.name !== input.toolName) {
2759
- throw new Error('T1 RuntimeEvent identity does not match the tool operation');
2760
- }
2761
- let derivedArgsHash;
2762
- try {
2763
- derivedArgsHash = canonicalToolArgsHash(content.name, content.args);
2764
- }
2765
- catch {
2766
- throw new Error('T1 argument hash does not match its canonical function call');
2767
- }
2768
- if (derivedArgsHash !== input.canonicalArgsHash ||
2769
- validateToolLedgerEventLane(input.runtimeEvent).ok !== true) {
2770
- throw new Error('T1 argument hash does not match its canonical function call');
2771
- }
2772
- const dispatch = input.dispatchRuntimeEvent.actions?.toolDispatch;
2773
- if (!dispatch ||
2774
- input.dispatchRuntimeEvent.content !== undefined ||
2775
- input.dispatchRuntimeEvent.partial ||
2776
- dispatch.operationId !== input.operationId ||
2777
- dispatch.providerToolCallId !== input.providerToolCallId ||
2778
- dispatch.toolName !== input.toolName ||
2779
- dispatch.canonicalArgsHash !== input.canonicalArgsHash ||
2780
- dispatch.recoveryMode !== input.recoveryMode ||
2781
- validateToolLedgerEventLane(input.dispatchRuntimeEvent).ok !== true) {
2782
- throw new Error('T1 requires a matching tool-dispatch RuntimeEvent');
2783
- }
2784
- assertSameRuntimeIdentity(input.runtimeEvent, input.dispatchRuntimeEvent, 'T1');
2785
- }
2786
- function assertOutcomeInput(input) {
2787
- if (input.journalEventId !== `${input.operationId}_outcome`) {
2788
- throw new Error('T2 journal identity must be derived from the tool operation');
2789
- }
2790
- assertNoReservedRecoveryFact(input.runtimeEvent);
2791
- const content = input.runtimeEvent.content;
2792
- if (content?.kind !== 'function_response') {
2793
- throw new Error('T2 requires a function_response RuntimeEvent');
2794
- }
2795
- if (input.runtimeEvent.refs?.operationId !== input.operationId ||
2796
- input.runtimeEvent.refs?.toolCallId !== content.id) {
2797
- throw new Error('T2 requires operation and tool-call refs on the function_response RuntimeEvent');
2798
- }
2799
- if (validateToolLedgerEventLane(input.runtimeEvent).ok !== true) {
2800
- throw new Error('T2 requires one canonical function-response semantic lane');
2801
- }
2802
- }
2803
- function assertPreparedIdentity(operation, input) {
2804
- const event = input.runtimeEvent;
2805
- const matches = operation.invocationId === event.invocationId &&
2806
- operation.runId === event.runId &&
2807
- operation.turnId === event.turnId &&
2808
- operation.providerToolCallId === input.providerToolCallId &&
2809
- operation.toolName === input.toolName &&
2810
- operation.canonicalArgsHash === input.canonicalArgsHash &&
2811
- operation.recoveryMode === input.recoveryMode &&
2812
- operation.callEventId === event.id &&
2813
- operation.dispatchEventId === input.dispatchRuntimeEvent.id;
2814
- if (!matches)
2815
- throw new Error(`Tool operation identity conflict for ${input.operationId}`);
2816
- }
2817
- function assertSameRuntimeIdentity(first, second, boundary) {
2818
- if (first.sessionId !== second.sessionId ||
2819
- first.invocationId !== second.invocationId ||
2820
- first.runId !== second.runId ||
2821
- first.turnId !== second.turnId) {
2822
- throw new Error(`${boundary} RuntimeEvents do not share one execution identity`);
2823
- }
2824
- }
2825
- function assertOutcomeIdentity(operation, event) {
2826
- const content = event.content;
2827
- const matches = content?.kind === 'function_response' &&
2828
- operation.invocationId === event.invocationId &&
2829
- operation.runId === event.runId &&
2830
- operation.turnId === event.turnId &&
2831
- operation.providerToolCallId === content.id &&
2832
- operation.toolName === content.name;
2833
- if (!matches)
2834
- throw new Error(`Tool operation outcome identity conflict for ${operation.operationId}`);
2835
- }
2836
3981
  function assertRuntimeEventIdentity(event) {
2837
3982
  decodeRuntimeEvent(event);
2838
3983
  for (const [field, value] of Object.entries({
@@ -2912,8 +4057,16 @@ function requireRuntimeEventOrder(eventOrder, eventId) {
2912
4057
  throw new Error(`Missing RuntimeEvent order for ${eventId}`);
2913
4058
  return order;
2914
4059
  }
2915
- function journalEventIdFor(operationId, event, state) {
2916
- return state === 'outcome_committed' ? `${operationId}_outcome` : `${event.id}_journal`;
4060
+ function journalEventIdFor(operationId, eventId, state) {
4061
+ if (state === 'outcome_committed')
4062
+ return `${operationId}_outcome`;
4063
+ if (state === 'abandoned' || state === 'interrupted_unknown') {
4064
+ // One invocation terminal can close multiple tool operations. Its journal
4065
+ // fact is therefore unique per operation, unlike per-operation recovery
4066
+ // events whose RuntimeEvent ids are already distinct.
4067
+ return `${operationId}_${eventId}_journal`;
4068
+ }
4069
+ return `${eventId}_journal`;
2917
4070
  }
2918
4071
  function assertRecoveryAuthorityCapability(db) {
2919
4072
  const row = db
@@ -2924,45 +4077,7 @@ function assertRecoveryAuthorityCapability(db) {
2924
4077
  }
2925
4078
  }
2926
4079
  function assertContinuationStartEvent(claim, event, startKind) {
2927
- const start = event.actions?.continuationStart;
2928
- const runtimeProtocol = event.actions?.runtimeProtocol;
2929
- const actionKeys = event.actions ? Object.keys(event.actions) : [];
2930
- const validActionShape = actionKeys.includes('continuationStart') &&
2931
- actionKeys.every((key) => key === 'continuationStart' || key === 'runtimeProtocol') &&
2932
- actionKeys.length === (runtimeProtocol === undefined ? 1 : 2);
2933
- const validRuntimeProtocol = runtimeProtocol === undefined ||
2934
- (startKind === 'runtime_admission' &&
2935
- runtimeProtocol.toolBoundary === TOOL_BOUNDARY_PROTOCOL_V1);
2936
- const source = claim.boundary.segments.at(-1);
2937
- if (event.sessionId !== claim.target.sessionId ||
2938
- event.invocationId !== claim.target.invocationId ||
2939
- event.runId !== claim.target.runId ||
2940
- event.turnId !== claim.target.turnId ||
2941
- event.ts < claim.claimedAt ||
2942
- event.partial ||
2943
- event.role !== 'system' ||
2944
- event.author !== 'system' ||
2945
- event.status !== undefined ||
2946
- event.content !== undefined ||
2947
- !event.actions ||
2948
- !validActionShape ||
2949
- !validRuntimeProtocol ||
2950
- !start ||
2951
- start.protocol !== 'continuation_start_v2' ||
2952
- start.provenance !== startKind ||
2953
- start.claimId !== claim.claimId ||
2954
- start.boundaryDigest !== claim.boundaryDigest ||
2955
- start.replayManifestDigest !== claim.boundary.manifestDigest ||
2956
- start.providerProjectionVersion !== claim.providerProjectionVersion ||
2957
- start.providerReplayDigest !== claim.providerReplayDigest ||
2958
- !isDeepStrictEqual(start.immediateSource, {
2959
- sessionId: source.identity.sessionId,
2960
- invocationId: source.identity.invocationId,
2961
- runId: source.identity.runId,
2962
- turnId: source.identity.turnId,
2963
- highWater: source.position.lastEventSeq,
2964
- prefixDigest: source.prefixDigest,
2965
- })) {
4080
+ if (!continuationStartEventMatchesClaim(event, claim, startKind)) {
2966
4081
  throw new Error('Invalid continuation-start authority event');
2967
4082
  }
2968
4083
  }
@@ -2978,6 +4093,24 @@ function assertRuntimeStorageSafeId(value, message) {
2978
4093
  if (!isRuntimeStorageSafeId(value))
2979
4094
  throw new Error(message);
2980
4095
  }
4096
+ function distinctSafeRuntimeIds(values, message) {
4097
+ const result = new Set();
4098
+ for (const value of values) {
4099
+ assertRuntimeStorageSafeId(value, message);
4100
+ result.add(value);
4101
+ }
4102
+ return [...result];
4103
+ }
4104
+ function* batches(values, size) {
4105
+ for (let offset = 0; offset < values.length; offset += size) {
4106
+ yield values.slice(offset, offset + size);
4107
+ }
4108
+ }
4109
+ function assertInvocationSearchLimit(limit) {
4110
+ if (!Number.isSafeInteger(limit) || limit < 1 || limit > 256) {
4111
+ throw new RangeError('Runtime invocation search limit must be an integer between 1 and 256');
4112
+ }
4113
+ }
2981
4114
  function assertWorkspaceVersionAuthorityCapability(db) {
2982
4115
  const row = db
2983
4116
  .prepare('SELECT version FROM runtime_capabilities WHERE capability = ?')
@@ -3180,114 +4313,12 @@ function decodeRuntimePartialStorageRow(row) {
3180
4313
  function decodeStoredRuntimeEvent(storedJson) {
3181
4314
  return decodeRuntimeEvent(JSON.parse(storedJson));
3182
4315
  }
3183
- function runtimeEventKind(event) {
3184
- return (event.content?.kind ??
3185
- event.status ??
3186
- (event.actions?.workspaceFact ? 'workspace_fact' : undefined) ??
3187
- (event.actions?.toolDispatch ? 'tool_dispatch' : undefined) ??
3188
- (event.actions?.endInvocation ? 'invocation_end' : 'runtime_fact'));
3189
- }
3190
- function mergeRuntimePartialSnapshots(immutableEvents, snapshots) {
3191
- const { leading, afterEvent } = groupRuntimePartialSnapshots(snapshots);
3192
- const merged = leading.sort(compareRuntimePartialSnapshots).map(({ event }) => event);
3193
- for (const event of immutableEvents) {
3194
- merged.push(event);
3195
- const anchored = afterEvent.get(event.id);
3196
- if (!anchored)
3197
- continue;
3198
- merged.push(...anchored.sort(compareRuntimePartialSnapshots).map((snapshot) => snapshot.event));
3199
- afterEvent.delete(event.id);
3200
- }
3201
- for (const orphaned of afterEvent.values()) {
3202
- merged.push(...orphaned.sort(compareRuntimePartialSnapshots).map((snapshot) => snapshot.event));
3203
- }
3204
- return merged;
3205
- }
3206
- function groupRuntimePartialSnapshots(snapshots) {
3207
- const leading = [];
3208
- const afterEvent = new Map();
3209
- for (const snapshot of snapshots) {
3210
- if (!snapshot.afterEventId) {
3211
- leading.push(snapshot);
3212
- continue;
3213
- }
3214
- const grouped = afterEvent.get(snapshot.afterEventId) ?? [];
3215
- grouped.push(snapshot);
3216
- afterEvent.set(snapshot.afterEventId, grouped);
3217
- }
3218
- return { leading, afterEvent };
3219
- }
3220
- function compareRuntimePartialSnapshots(left, right) {
3221
- return left.event.ts - right.event.ts || left.event.id.localeCompare(right.event.id);
3222
- }
3223
- function partialRuntimeStream(event) {
3224
- if (!event.partial || event.status !== undefined || event.actions)
3225
- return undefined;
3226
- const content = event.content;
3227
- let identity;
3228
- let text = '';
3229
- if (content?.kind === 'text' &&
3230
- content.attachments === undefined &&
3231
- event.refs?.providerEventId &&
3232
- hasOnlyKeys(event.refs, ['providerEventId'])) {
3233
- identity = `${content.kind}:provider:${event.refs.providerEventId}`;
3234
- text = content.text;
3235
- }
3236
- else if (content?.kind === 'thinking' &&
3237
- content.signature === undefined &&
3238
- event.refs?.providerEventId &&
3239
- hasOnlyKeys(event.refs, ['providerEventId'])) {
3240
- identity = `${content.kind}:provider:${event.refs.providerEventId}`;
3241
- text = content.text;
3242
- }
3243
- else if (!content && event.refs?.toolCallId && hasOnlyKeys(event.refs, ['toolCallId'])) {
3244
- identity = `tool:call:${event.refs.toolCallId}`;
3245
- }
3246
- if (!identity)
3247
- return undefined;
3248
- const key = runtimePartialStreamKey(identity, event);
3249
- const snapshot = content?.kind === 'text' || content?.kind === 'thinking'
3250
- ? { ...event, content: { ...content, text: '' } }
3251
- : event;
3252
- return { key, snapshot, text };
3253
- }
3254
- function completedPartialRuntimeStreamKey(event) {
3255
- if (event.partial)
3256
- return undefined;
3257
- const content = event.content;
3258
- let identity;
3259
- if ((content?.kind === 'text' || content?.kind === 'thinking') && event.refs?.providerEventId) {
3260
- identity = `${content.kind}:provider:${event.refs.providerEventId}`;
3261
- }
3262
- else if (content?.kind === 'function_response' && event.refs?.toolCallId) {
3263
- identity = `tool:call:${event.refs.toolCallId}`;
3264
- }
3265
- return identity ? runtimePartialStreamKey(identity, event) : undefined;
3266
- }
3267
- function runtimePartialStreamKey(identity, event) {
3268
- return createHash('sha256')
3269
- .update(JSON.stringify([
3270
- identity,
3271
- event.sessionId,
3272
- event.invocationId,
3273
- event.runId,
3274
- event.turnId,
3275
- event.branch ?? null,
3276
- event.role,
3277
- event.author,
3278
- ]))
3279
- .digest('hex');
3280
- }
3281
- function hasOnlyKeys(value, allowed) {
3282
- const allowedSet = new Set(allowed);
3283
- return Object.keys(value).every((key) => allowedSet.has(key));
3284
- }
3285
4316
  function decodeContinuationClaimRow(row) {
3286
4317
  if (row.protocol_version !== 1) {
3287
4318
  throw new Error(`Unsupported continuation claim protocol ${row.protocol_version}`);
3288
4319
  }
3289
4320
  const boundary = JSON.parse(row.boundary_json);
3290
- const targetRunHeader = decodePersistedAgentRunHeader(markPersisted(JSON.parse(row.target_run_header_json)));
4321
+ const targetOpening = JSON.parse(row.target_opening_json);
3291
4322
  const claim = decodeContinuationClaim({
3292
4323
  protocol: 'continuation_claim_v1',
3293
4324
  claimId: row.claim_id,
@@ -3301,7 +4332,7 @@ function decodeContinuationClaimRow(row) {
3301
4332
  runId: row.target_run_id,
3302
4333
  turnId: row.target_turn_id,
3303
4334
  },
3304
- targetRunHeader,
4335
+ targetOpening,
3305
4336
  claimedAt: row.claimed_at,
3306
4337
  });
3307
4338
  const source = claim.boundary.segments.at(-1);