maka-agent 0.2.0-dev.4.20260830 → 0.2.0-dev.41.20260918

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 (2528) hide show
  1. package/LICENSE +242 -5
  2. package/README.md +44 -19
  3. package/README.zh-CN.md +39 -19
  4. package/RUNTIME_HOST_PEER_DEPENDENCIES.rust.tsv +70 -0
  5. package/RUNTIME_HOST_PEER_THIRD_PARTY_NOTICES.txt +1839 -140
  6. package/THIRD_PARTY_NOTICES.txt +482 -263
  7. package/dist/acp/active-promise.js +38 -0
  8. package/dist/acp/maka-acp-agent.js +13 -3
  9. package/dist/acp/prompt-content.js +225 -0
  10. package/dist/acp/session-configuration.js +143 -0
  11. package/dist/acp/session-event-mapper.js +146 -0
  12. package/dist/acp/session-registry.js +1083 -0
  13. package/dist/acp/stdio-server.js +29 -1
  14. package/dist/acp/tool-event-mapper.js +366 -0
  15. package/dist/activation-command.js +1 -2
  16. package/dist/bounded-chunk-buffer.js +16 -3
  17. package/dist/cli-core.js +98 -102
  18. package/dist/cli-ui-locale.js +7 -2
  19. package/dist/eval-bundle-path.js +1 -1
  20. package/dist/mcp-capability-provider.js +8 -11
  21. package/dist/onboarding-catalog.js +4 -5
  22. package/dist/pi-transcript-tools.js +9 -2
  23. package/dist/pi-transcript.js +85 -31
  24. package/dist/pi-tui-form-interaction.js +497 -0
  25. package/dist/pi-tui-layout.js +60 -12
  26. package/dist/pi-tui-mcp-status.js +122 -124
  27. package/dist/pi-tui-pickers.js +576 -102
  28. package/dist/pi-tui-runner.js +1024 -238
  29. package/dist/pi-tui-todo.js +221 -0
  30. package/dist/pi-tui-transcript-viewer.js +134 -7
  31. package/dist/run-command-core.js +6 -14
  32. package/dist/runtime-host-access-command.js +37 -4
  33. package/dist/runtime-host-capability-provider-command.js +16 -2
  34. package/dist/runtime-host-cli-context.js +300 -80
  35. package/dist/runtime-host-cli-installation.js +8 -2
  36. package/dist/runtime-host-cli.js +360 -64
  37. package/dist/runtime-host-handoff-surface.js +108 -0
  38. package/dist/runtime-host-help.js +244 -0
  39. package/dist/runtime-host-installed-update-activator.js +70 -33
  40. package/dist/runtime-host-installed-update-bootstrap.js +16 -1
  41. package/dist/runtime-host-installed-update-coordinator.js +44 -96
  42. package/dist/runtime-host-lifecycle-transaction.js +101 -28
  43. package/dist/runtime-host-local-handoff.js +215 -41
  44. package/dist/runtime-host-local-managed-activation.js +84 -0
  45. package/dist/runtime-host-local-source-retirement.js +119 -0
  46. package/dist/runtime-host-local-target-activation.js +141 -0
  47. package/dist/runtime-host-managed-deployment.js +158 -51
  48. package/dist/runtime-host-managed-lifecycle-manager.js +5 -6
  49. package/dist/runtime-host-onboarding.js +368 -21
  50. package/dist/runtime-host-openrc-service.js +469 -0
  51. package/dist/runtime-host-operator-retirement.js +50 -0
  52. package/dist/runtime-host-package-deployment.js +36 -2
  53. package/dist/runtime-host-peer-artifact.js +3 -3
  54. package/dist/runtime-host-peer-management-command.js +30 -12
  55. package/dist/runtime-host-peer-mesh-management-command.js +1 -1
  56. package/dist/runtime-host-plugin-command.js +101 -0
  57. package/dist/runtime-host-profile-command.js +1 -1
  58. package/dist/runtime-host-run-command.js +50 -61
  59. package/dist/runtime-host-service-command.js +3 -3
  60. package/dist/runtime-host-service-management-command.js +67 -17
  61. package/dist/runtime-host-service-manager.js +3 -3
  62. package/dist/runtime-host-session-channel.js +247 -27
  63. package/dist/runtime-host-session-driver.js +93 -53
  64. package/dist/runtime-host-session-update.js +62 -0
  65. package/dist/runtime-host-setup-command.js +72 -52
  66. package/dist/runtime-host-task-readiness.js +2 -3
  67. package/dist/runtime-host-tui-command.js +62 -81
  68. package/dist/runtime-host-tui-context.js +76 -17
  69. package/dist/runtime-host-tui-owner.js +226 -0
  70. package/dist/runtime-host-update-command.js +131 -48
  71. package/dist/runtime-host-update-discovery.js +1 -0
  72. package/dist/runtime-host-update-reconciliation.js +7 -7
  73. package/dist/runtime-host-windows-service.js +166 -0
  74. package/dist/runtime-host-windows-task-launcher-artifact.js +75 -0
  75. package/dist/session-export-command.js +72 -0
  76. package/dist/session-import-command.js +69 -0
  77. package/dist/tui-autocomplete-layout.js +3 -1
  78. package/dist/tui-clipboard.js +86 -0
  79. package/dist/tui-context-refresh.js +103 -0
  80. package/dist/tui-copy-catalog.js +1054 -14
  81. package/dist/tui-copy-command.js +103 -0
  82. package/dist/tui-editor-render.js +36 -0
  83. package/dist/tui-host-owner-copy.js +24 -0
  84. package/dist/tui-mcp-control.js +87 -10
  85. package/dist/tui-mcp-remote-publication.js +395 -0
  86. package/native/runtime-host-peer/prebuilds/darwin-arm64/maka_runtime_host_peer.node +0 -0
  87. package/native/runtime-host-peer/prebuilds/linux-arm64/maka_runtime_host_peer.node +0 -0
  88. package/native/runtime-host-peer/prebuilds/linux-x64/maka_runtime_host_peer.node +0 -0
  89. package/native/runtime-host-peer/prebuilds/win32-x64/maka_runtime_host_peer.node +0 -0
  90. package/native/runtime-host-windows-task-launcher/prebuilds/win32-x64/maka-runtime-host-task-launcher.exe +0 -0
  91. package/node_modules/@ai-sdk/anthropic/CHANGELOG.md +117 -0
  92. package/node_modules/@ai-sdk/anthropic/dist/index.js +937 -411
  93. package/node_modules/@ai-sdk/anthropic/dist/internal/index.js +335 -160
  94. package/node_modules/@ai-sdk/anthropic/docs/05-anthropic.mdx +132 -43
  95. package/node_modules/@ai-sdk/anthropic/node_modules/@ai-sdk/provider/CHANGELOG.md +1262 -0
  96. package/node_modules/@ai-sdk/anthropic/node_modules/@ai-sdk/provider/package.json +63 -0
  97. package/node_modules/@ai-sdk/anthropic/package.json +6 -6
  98. package/node_modules/@ai-sdk/cohere/CHANGELOG.md +105 -0
  99. package/node_modules/@ai-sdk/cohere/dist/index.js +20 -22
  100. package/node_modules/@ai-sdk/cohere/node_modules/@ai-sdk/provider/CHANGELOG.md +1262 -0
  101. package/node_modules/@ai-sdk/cohere/node_modules/@ai-sdk/provider/README.md +1 -0
  102. package/node_modules/@ai-sdk/cohere/node_modules/@ai-sdk/provider/dist/index.js +426 -0
  103. package/node_modules/@ai-sdk/cohere/node_modules/@ai-sdk/provider/package.json +63 -0
  104. package/node_modules/@ai-sdk/cohere/package.json +6 -6
  105. package/node_modules/@ai-sdk/google/CHANGELOG.md +176 -0
  106. package/node_modules/@ai-sdk/google/dist/index.js +4441 -2801
  107. package/node_modules/@ai-sdk/google/dist/internal/index.js +640 -177
  108. package/node_modules/@ai-sdk/google/docs/15-google.mdx +225 -97
  109. package/node_modules/@ai-sdk/google/node_modules/@ai-sdk/provider/CHANGELOG.md +1262 -0
  110. package/node_modules/@ai-sdk/google/node_modules/@ai-sdk/provider/README.md +1 -0
  111. package/node_modules/@ai-sdk/google/node_modules/@ai-sdk/provider/dist/index.js +426 -0
  112. package/node_modules/@ai-sdk/google/node_modules/@ai-sdk/provider/package.json +63 -0
  113. package/node_modules/@ai-sdk/google/package.json +6 -6
  114. package/node_modules/@ai-sdk/open-responses/CHANGELOG.md +81 -0
  115. package/node_modules/@ai-sdk/open-responses/dist/index.js +570 -22
  116. package/node_modules/@ai-sdk/open-responses/docs/06-open-responses.mdx +123 -2
  117. package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider/CHANGELOG.md +38 -0
  118. package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider/package.json +1 -1
  119. package/node_modules/@ai-sdk/open-responses/package.json +3 -3
  120. package/node_modules/@ai-sdk/openai/CHANGELOG.md +184 -0
  121. package/node_modules/@ai-sdk/openai/dist/index.js +2013 -736
  122. package/node_modules/@ai-sdk/openai/dist/internal/index.js +1377 -478
  123. package/node_modules/@ai-sdk/openai/docs/03-openai.mdx +208 -52
  124. package/node_modules/@ai-sdk/openai/node_modules/@ai-sdk/provider/CHANGELOG.md +1262 -0
  125. package/node_modules/@ai-sdk/openai/node_modules/@ai-sdk/provider/LICENSE +13 -0
  126. package/node_modules/@ai-sdk/openai/node_modules/@ai-sdk/provider/README.md +1 -0
  127. package/node_modules/@ai-sdk/openai/node_modules/@ai-sdk/provider/dist/index.js +426 -0
  128. package/node_modules/@ai-sdk/openai/node_modules/@ai-sdk/provider/package.json +63 -0
  129. package/node_modules/@ai-sdk/openai/package.json +6 -6
  130. package/node_modules/@ai-sdk/openai-compatible/CHANGELOG.md +126 -0
  131. package/node_modules/@ai-sdk/openai-compatible/dist/index.js +105 -20
  132. package/node_modules/@ai-sdk/openai-compatible/dist/internal/index.js +9 -0
  133. package/node_modules/@ai-sdk/openai-compatible/docs/index.mdx +78 -0
  134. package/node_modules/@ai-sdk/openai-compatible/node_modules/@ai-sdk/provider/CHANGELOG.md +1262 -0
  135. package/node_modules/@ai-sdk/openai-compatible/node_modules/@ai-sdk/provider/README.md +1 -0
  136. package/node_modules/@ai-sdk/openai-compatible/node_modules/@ai-sdk/provider/dist/index.js +426 -0
  137. package/node_modules/@ai-sdk/openai-compatible/node_modules/@ai-sdk/provider/package.json +63 -0
  138. package/node_modules/@ai-sdk/openai-compatible/package.json +6 -6
  139. package/node_modules/@ai-sdk/provider-utils/CHANGELOG.md +92 -0
  140. package/node_modules/@ai-sdk/provider-utils/dist/index.js +664 -168
  141. package/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/CHANGELOG.md +1262 -0
  142. package/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/LICENSE +13 -0
  143. package/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/README.md +1 -0
  144. package/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/dist/index.js +426 -0
  145. package/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/package.json +63 -0
  146. package/node_modules/@ai-sdk/provider-utils/package.json +5 -5
  147. package/node_modules/@earendil-works/pi-tui/README.md +53 -4
  148. package/node_modules/@earendil-works/pi-tui/dist/alt-screen-search.js +202 -42
  149. package/node_modules/@earendil-works/pi-tui/dist/autocomplete.js +36 -3
  150. package/node_modules/@earendil-works/pi-tui/dist/components/box.js +29 -0
  151. package/node_modules/@earendil-works/pi-tui/dist/components/editor.js +107 -22
  152. package/node_modules/@earendil-works/pi-tui/dist/components/input.js +44 -5
  153. package/node_modules/@earendil-works/pi-tui/dist/components/loader.js +10 -3
  154. package/node_modules/@earendil-works/pi-tui/dist/components/markdown.js +9 -4
  155. package/node_modules/@earendil-works/pi-tui/dist/components/mouse-region.js +21 -0
  156. package/node_modules/@earendil-works/pi-tui/dist/components/scroll-view.js +8 -2
  157. package/node_modules/@earendil-works/pi-tui/dist/components/select-list.js +49 -2
  158. package/node_modules/@earendil-works/pi-tui/dist/components/settings-list.js +79 -9
  159. package/node_modules/@earendil-works/pi-tui/dist/components/text.js +5 -4
  160. package/node_modules/@earendil-works/pi-tui/dist/index.js +2 -1
  161. package/node_modules/@earendil-works/pi-tui/dist/keybindings.js +2 -2
  162. package/node_modules/@earendil-works/pi-tui/dist/latex.js +14 -0
  163. package/node_modules/@earendil-works/pi-tui/dist/layout.js +32 -9
  164. package/node_modules/@earendil-works/pi-tui/dist/native-modifiers.js +2 -8
  165. package/node_modules/@earendil-works/pi-tui/dist/native-module-path.js +19 -0
  166. package/node_modules/@earendil-works/pi-tui/dist/terminal-image.js +38 -6
  167. package/node_modules/@earendil-works/pi-tui/dist/terminal.js +21 -14
  168. package/node_modules/@earendil-works/pi-tui/dist/tui-alt-screen.js +405 -57
  169. package/node_modules/@earendil-works/pi-tui/dist/tui-main-screen.js +111 -50
  170. package/node_modules/@earendil-works/pi-tui/dist/tui.js +123 -9
  171. package/node_modules/@earendil-works/pi-tui/dist/utils.js +9 -0
  172. package/node_modules/@earendil-works/pi-tui/package.json +1 -1
  173. package/node_modules/@larksuiteoapi/node-sdk/es/index.js +199 -35
  174. package/node_modules/@larksuiteoapi/node-sdk/lib/index.js +199 -35
  175. package/node_modules/@larksuiteoapi/node-sdk/package.json +1 -1
  176. package/node_modules/@maka/core/dist/agent-graph-schedule.js +15 -4
  177. package/node_modules/@maka/core/dist/agent-run.js +25 -336
  178. package/node_modules/@maka/core/dist/artifacts.js +32 -23
  179. package/node_modules/@maka/core/dist/attachments.js +100 -1
  180. package/node_modules/@maka/core/dist/bot-events.js +18 -63
  181. package/node_modules/@maka/core/dist/bounded-response.js +71 -0
  182. package/node_modules/@maka/core/dist/canonical-json.js +27 -0
  183. package/node_modules/@maka/core/dist/canonical-runtime-event.js +3 -1
  184. package/node_modules/@maka/core/dist/capabilities.js +35 -0
  185. package/node_modules/@maka/core/dist/chat-model-choice.js +11 -31
  186. package/node_modules/@maka/core/dist/client-capability-grant.js +149 -0
  187. package/node_modules/@maka/core/dist/collaboration.js +12 -0
  188. package/node_modules/@maka/core/dist/computer-use.js +27 -93
  189. package/node_modules/@maka/core/dist/connection-error-copy.js +17 -34
  190. package/node_modules/@maka/core/dist/connection-readiness.js +3 -31
  191. package/node_modules/@maka/core/dist/deep-research.js +1 -20
  192. package/node_modules/@maka/core/dist/diagnostic-log.js +18 -7
  193. package/node_modules/@maka/core/dist/display-redaction.js +18 -0
  194. package/node_modules/@maka/core/dist/durable-tool-result-projection.js +126 -0
  195. package/node_modules/@maka/core/dist/events.js +43 -14
  196. package/node_modules/@maka/core/dist/execution-inspect.js +12 -21
  197. package/node_modules/@maka/core/dist/executor-id.js +22 -0
  198. package/node_modules/@maka/core/dist/external-session.js +61 -0
  199. package/node_modules/@maka/core/dist/goal.js +44 -2
  200. package/node_modules/@maka/core/dist/health.js +50 -45
  201. package/node_modules/@maka/core/dist/interaction.js +623 -2
  202. package/node_modules/@maka/core/dist/llm-connections.js +115 -87
  203. package/node_modules/@maka/core/dist/local-memory.js +2 -2
  204. package/node_modules/@maka/core/dist/maka-wordmark.js +23 -0
  205. package/node_modules/@maka/core/dist/model-call-attempt.js +134 -82
  206. package/node_modules/@maka/core/dist/model-call-usage-projection.js +0 -196
  207. package/node_modules/@maka/core/dist/model-catalog.js +191 -322
  208. package/node_modules/@maka/core/dist/model-facts.js +206 -0
  209. package/node_modules/@maka/core/dist/model-failure.js +40 -0
  210. package/node_modules/@maka/core/dist/model-metadata.generated.js +1970 -1876
  211. package/node_modules/@maka/core/dist/model-metadata.js +257 -217
  212. package/node_modules/@maka/core/dist/model-projection-transition.js +145 -0
  213. package/node_modules/@maka/core/dist/model-thinking.js +73 -24
  214. package/node_modules/@maka/core/dist/model-web-search.js +5 -4
  215. package/node_modules/@maka/core/dist/models-dev-projection.js +321 -0
  216. package/node_modules/@maka/core/dist/models-dev-refresh.js +55 -0
  217. package/node_modules/@maka/core/dist/onboarding.js +2 -1
  218. package/node_modules/@maka/core/dist/permission-profile.js +17 -0
  219. package/node_modules/@maka/core/dist/permission.js +0 -1
  220. package/node_modules/@maka/core/dist/provider-auth.js +47 -291
  221. package/node_modules/@maka/core/dist/provider-registry.js +192 -379
  222. package/node_modules/@maka/core/dist/recall.js +956 -0
  223. package/node_modules/@maka/core/dist/record-schema.js +22 -2
  224. package/node_modules/@maka/core/dist/redaction.js +78 -40
  225. package/node_modules/@maka/core/dist/relative-time.js +6 -5
  226. package/node_modules/@maka/core/dist/run-composition.js +77 -2
  227. package/node_modules/@maka/core/dist/runtime-boundary.js +182 -66
  228. package/node_modules/@maka/core/dist/runtime-event-store.js +6 -0
  229. package/node_modules/@maka/core/dist/runtime-event.js +270 -12
  230. package/node_modules/@maka/core/dist/runtime-handoff.js +106 -0
  231. package/node_modules/@maka/core/dist/runtime-invocation.js +223 -0
  232. package/node_modules/@maka/core/dist/runtime-logical-execution.js +137 -0
  233. package/node_modules/@maka/core/dist/runtime-policy/connection-catalog-codec.js +209 -59
  234. package/node_modules/@maka/core/dist/runtime-policy/credential-vault-codec.js +9 -1
  235. package/node_modules/@maka/core/dist/runtime-policy/model-catalog-entry-codec.js +93 -0
  236. package/node_modules/@maka/core/dist/runtime-policy/policy-codec.js +118 -4
  237. package/node_modules/@maka/core/dist/runtime-policy.js +7 -3
  238. package/node_modules/@maka/core/dist/scheduled-task.js +12 -2
  239. package/node_modules/@maka/core/dist/session-name.js +2 -3
  240. package/node_modules/@maka/core/dist/session-send-projection.js +8 -4
  241. package/node_modules/@maka/core/dist/session-start-mode.js +42 -0
  242. package/node_modules/@maka/core/dist/session-todo.js +101 -0
  243. package/node_modules/@maka/core/dist/session-trace.js +5 -1
  244. package/node_modules/@maka/core/dist/session.js +336 -53
  245. package/node_modules/@maka/core/dist/settings.js +28 -9
  246. package/node_modules/@maka/core/dist/shell-run-result.js +1 -0
  247. package/node_modules/@maka/core/dist/shell-run.js +15 -0
  248. package/node_modules/@maka/core/dist/slash-command-catalog.js +4 -0
  249. package/node_modules/@maka/core/dist/task-submission-readiness.js +2 -1
  250. package/node_modules/@maka/core/dist/text-sanitize.js +29 -4
  251. package/node_modules/@maka/core/dist/tool-activity-args.js +4 -0
  252. package/node_modules/@maka/core/dist/tool-quiet-preview.js +20 -10
  253. package/node_modules/@maka/core/dist/tool-result-archive-evidence.js +22 -0
  254. package/node_modules/@maka/core/dist/tool-result-record-schema.js +12 -2
  255. package/node_modules/@maka/core/dist/ui-locale.js +23 -10
  256. package/node_modules/@maka/core/dist/unified-diff.js +33 -26
  257. package/node_modules/@maka/core/dist/usage-ledger-merge.js +10 -9
  258. package/node_modules/@maka/core/dist/usage-record-schema.js +38 -31
  259. package/node_modules/@maka/core/dist/usage-stats/types.js +2 -0
  260. package/node_modules/@maka/core/dist/work-board.js +94 -1
  261. package/node_modules/@maka/core/dist/workhub-action-result.js +68 -0
  262. package/node_modules/@maka/core/dist/workhub-routing.js +126 -0
  263. package/node_modules/@maka/core/node_modules/@formatjs/icu-messageformat-parser/index.js +2178 -0
  264. package/node_modules/@maka/core/node_modules/@formatjs/icu-messageformat-parser/manipulator.js +209 -0
  265. package/node_modules/@maka/core/node_modules/@formatjs/icu-messageformat-parser/no-parser.js +162 -0
  266. package/node_modules/@maka/core/node_modules/@formatjs/icu-messageformat-parser/package.json +21 -0
  267. package/node_modules/@maka/core/node_modules/@formatjs/icu-messageformat-parser/printer.js +224 -0
  268. package/node_modules/@maka/core/node_modules/intl-messageformat/intl-messageformat.iife.js +2810 -0
  269. package/node_modules/@maka/core/node_modules/intl-messageformat/package.json +40 -0
  270. package/node_modules/@maka/core/package.json +24 -4
  271. package/node_modules/@maka/eval/dist/experiment-directory.js +4 -13
  272. package/node_modules/@maka/eval/dist/external-subject.js +1 -1
  273. package/node_modules/@maka/eval/dist/fleet-simulation.js +270 -0
  274. package/node_modules/@maka/eval/dist/fleet-store.js +243 -0
  275. package/node_modules/@maka/eval/dist/fleet-worker.js +125 -0
  276. package/node_modules/@maka/eval/dist/fleet.js +329 -0
  277. package/node_modules/@maka/eval/dist/harbor-external-subject.js +4 -3
  278. package/node_modules/@maka/eval/dist/harbor-maka-subject.js +13 -3
  279. package/node_modules/@maka/eval/dist/harness-executor.js +3 -2
  280. package/node_modules/@maka/eval/dist/index.js +3 -0
  281. package/node_modules/@maka/eval/dist/install-preflight.js +39 -10
  282. package/node_modules/@maka/eval/dist/maka-artifacts.js +28 -14
  283. package/node_modules/@maka/eval/dist/maka-subject.js +28 -3
  284. package/node_modules/@maka/eval/dist/metering-checkpoint.js +4 -4
  285. package/node_modules/@maka/eval/dist/process-termination.js +83 -0
  286. package/node_modules/@maka/eval/dist/toolchain-verification.js +1 -1
  287. package/node_modules/@maka/eval/harbor/egress-proxy/entrypoint.sh +2 -1
  288. package/node_modules/@maka/eval/harbor/relay_agent.py +43 -4
  289. package/node_modules/@maka/eval/node_modules/undici/docs/docs/api/Client.md +4 -0
  290. package/node_modules/@maka/eval/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +3 -2
  291. package/node_modules/@maka/eval/node_modules/undici/docs/docs/api/EventSource.md +4 -0
  292. package/node_modules/@maka/eval/node_modules/undici/docs/docs/api/Interceptors.md +7 -3
  293. package/node_modules/@maka/eval/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +7 -1
  294. package/node_modules/@maka/eval/node_modules/undici/lib/cache/memory-cache-store.js +2 -2
  295. package/node_modules/@maka/eval/node_modules/undici/lib/core/symbols.js +2 -0
  296. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/agent.js +7 -2
  297. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/balanced-pool.js +7 -4
  298. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/client-h1.js +12 -4
  299. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/client-h2.js +43 -3
  300. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/client.js +3 -2
  301. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/dispatcher-base.js +13 -1
  302. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/dispatcher.js +15 -1
  303. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +3 -0
  304. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +10 -3
  305. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/proxy-agent.js +18 -1
  306. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/retry-agent.js +3 -0
  307. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/round-robin-pool.js +1 -1
  308. package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +91 -21
  309. package/node_modules/@maka/eval/node_modules/undici/lib/handler/cache-handler.js +29 -5
  310. package/node_modules/@maka/eval/node_modules/undici/lib/handler/decorator-handler.js +7 -1
  311. package/node_modules/@maka/eval/node_modules/undici/lib/handler/deduplication-handler.js +12 -6
  312. package/node_modules/@maka/eval/node_modules/undici/lib/handler/redirect-handler.js +21 -4
  313. package/node_modules/@maka/eval/node_modules/undici/lib/handler/retry-handler.js +148 -30
  314. package/node_modules/@maka/eval/node_modules/undici/lib/interceptor/cache.js +65 -12
  315. package/node_modules/@maka/eval/node_modules/undici/lib/interceptor/decompress.js +115 -13
  316. package/node_modules/@maka/eval/node_modules/undici/lib/interceptor/deduplicate.js +5 -4
  317. package/node_modules/@maka/eval/node_modules/undici/lib/interceptor/dns.js +7 -0
  318. package/node_modules/@maka/eval/node_modules/undici/lib/interceptor/dump.js +10 -23
  319. package/node_modules/@maka/eval/node_modules/undici/lib/mock/mock-agent.js +13 -1
  320. package/node_modules/@maka/eval/node_modules/undici/lib/mock/mock-utils.js +11 -10
  321. package/node_modules/@maka/eval/node_modules/undici/lib/util/cache.js +45 -3
  322. package/node_modules/@maka/eval/node_modules/undici/lib/web/cookies/parse.js +150 -147
  323. package/node_modules/@maka/eval/node_modules/undici/lib/web/eventsource/eventsource-stream.js +28 -1
  324. package/node_modules/@maka/eval/node_modules/undici/lib/web/eventsource/eventsource.js +13 -3
  325. package/node_modules/@maka/eval/node_modules/undici/lib/web/fetch/index.js +6 -0
  326. package/node_modules/@maka/eval/node_modules/undici/lib/web/fetch/request.js +2 -3
  327. package/node_modules/@maka/eval/node_modules/undici/lib/web/fetch/util.js +6 -1
  328. package/node_modules/@maka/eval/node_modules/undici/lib/web/webidl/index.js +3 -3
  329. package/node_modules/@maka/eval/node_modules/undici/lib/web/websocket/connection.js +1 -1
  330. package/node_modules/@maka/eval/node_modules/undici/lib/web/websocket/permessage-deflate.js +5 -0
  331. package/node_modules/@maka/eval/node_modules/undici/lib/web/websocket/stream/websocketstream.js +8 -10
  332. package/node_modules/@maka/eval/node_modules/undici/package.json +3 -3
  333. package/node_modules/@maka/eval/package.json +1 -1
  334. package/node_modules/@maka/mcp/dist/form-elicitation.js +213 -0
  335. package/node_modules/@maka/mcp/dist/index.js +465 -68
  336. package/node_modules/@maka/mcp/dist/sep-2243.js +3 -3
  337. package/node_modules/@maka/runtime/dist/agent-graph-timeline.js +12 -11
  338. package/node_modules/@maka/runtime/dist/agent-run-inspect.js +37 -85
  339. package/node_modules/@maka/runtime/dist/agent-run-recovery.js +36 -46
  340. package/node_modules/@maka/runtime/dist/agent-run.js +603 -470
  341. package/node_modules/@maka/runtime/dist/agent-swarm-status-tool.js +0 -1
  342. package/node_modules/@maka/runtime/dist/ai-sdk-backend.js +125 -3752
  343. package/node_modules/@maka/runtime/dist/ai-sdk-compaction-contract.js +6 -1
  344. package/node_modules/@maka/runtime/dist/ai-sdk-compaction.js +510 -546
  345. package/node_modules/@maka/runtime/dist/ai-sdk-message-projection.js +638 -0
  346. package/node_modules/@maka/runtime/dist/ai-sdk-tool-repair.js +115 -0
  347. package/node_modules/@maka/runtime/dist/ai-sdk-turn.js +2608 -0
  348. package/node_modules/@maka/runtime/dist/ask-user-question-tool.js +0 -1
  349. package/node_modules/@maka/runtime/dist/background-task-health-tool.js +104 -0
  350. package/node_modules/@maka/runtime/dist/bash-model-output.js +7 -1
  351. package/node_modules/@maka/runtime/dist/bash-tail-buffer.js +13 -52
  352. package/node_modules/@maka/runtime/dist/bots/base-adapter.js +17 -0
  353. package/node_modules/@maka/runtime/dist/bots/bot-test.js +40 -23
  354. package/node_modules/@maka/runtime/dist/bots/dingtalk-bridge.js +93 -24
  355. package/node_modules/@maka/runtime/dist/bots/discord-bridge.js +4 -4
  356. package/node_modules/@maka/runtime/dist/bots/feishu-bridge.js +28 -25
  357. package/node_modules/@maka/runtime/dist/bots/qq-bridge.js +6 -4
  358. package/node_modules/@maka/runtime/dist/bots/slack-bridge.js +8 -7
  359. package/node_modules/@maka/runtime/dist/bots/telegram-bridge.js +7 -31
  360. package/node_modules/@maka/runtime/dist/bots/wechat-bridge.js +104 -48
  361. package/node_modules/@maka/runtime/dist/bots/wecom-bridge.js +45 -42
  362. package/node_modules/@maka/runtime/dist/bots/ws-bridge-base.js +2 -3
  363. package/node_modules/@maka/runtime/dist/builtin-tools.js +130 -130
  364. package/node_modules/@maka/runtime/dist/bundled-skill-catalog.generated.js +1 -1
  365. package/node_modules/@maka/runtime/dist/child-fd-input.js +3 -2
  366. package/node_modules/@maka/runtime/dist/code-mode.js +7 -4
  367. package/node_modules/@maka/runtime/dist/commandcode-cli-language-model.js +813 -0
  368. package/node_modules/@maka/runtime/dist/computer-use-codec.js +1 -141
  369. package/node_modules/@maka/runtime/dist/computer-use-tools.js +27 -106
  370. package/node_modules/@maka/runtime/dist/context-budget-helpers.js +4 -57
  371. package/node_modules/@maka/runtime/dist/context-budget-policy.js +26 -65
  372. package/node_modules/@maka/runtime/dist/context-budget.js +44 -103
  373. package/node_modules/@maka/runtime/dist/context-diagnostics.js +72 -33
  374. package/node_modules/@maka/runtime/dist/continuation-replay.js +25 -12
  375. package/node_modules/@maka/runtime/dist/conversation-copy.js +656 -188
  376. package/node_modules/@maka/runtime/dist/cua-frame-state.js +1 -69
  377. package/node_modules/@maka/runtime/dist/deep-research-tools.js +15 -24
  378. package/node_modules/@maka/runtime/dist/durable-tool-result-projection.js +436 -0
  379. package/node_modules/@maka/runtime/dist/edit-replace.js +2 -2
  380. package/node_modules/@maka/runtime/dist/execution-inspect.js +56 -41
  381. package/node_modules/@maka/runtime/dist/filesystem-executor.js +10 -6
  382. package/node_modules/@maka/runtime/dist/filesystem-worker/client.js +77 -19
  383. package/node_modules/@maka/runtime/dist/filesystem-worker/launch-spec.js +66 -55
  384. package/node_modules/@maka/runtime/dist/filesystem-worker/operations.js +34 -98
  385. package/node_modules/@maka/runtime/dist/filesystem-worker/protocol.js +25 -10
  386. package/node_modules/@maka/runtime/dist/filesystem-worker/worker-entry.js +2 -0
  387. package/node_modules/@maka/runtime/dist/github-copilot-oauth-enrollment.js +267 -0
  388. package/node_modules/@maka/runtime/dist/glob-search.js +74 -0
  389. package/node_modules/@maka/runtime/dist/goal-continuation.js +119 -13
  390. package/node_modules/@maka/runtime/dist/goal-evaluator.js +10 -4
  391. package/node_modules/@maka/runtime/dist/goal-state.js +7 -0
  392. package/node_modules/@maka/runtime/dist/grep-search.js +155 -0
  393. package/node_modules/@maka/runtime/dist/history-compact-checkpoint-coordinator.js +16 -6
  394. package/node_modules/@maka/runtime/dist/history-compact-checkpoint.js +79 -29
  395. package/node_modules/@maka/runtime/dist/history-compact-error.js +10 -2
  396. package/node_modules/@maka/runtime/dist/history-compact-input-fit.js +7 -1
  397. package/node_modules/@maka/runtime/dist/history-compact-ledger.js +18 -18
  398. package/node_modules/@maka/runtime/dist/history-compact-summarizer.js +132 -110
  399. package/node_modules/@maka/runtime/dist/history-compact-summary-validation.js +14 -30
  400. package/node_modules/@maka/runtime/dist/history-compaction.js +103 -89
  401. package/node_modules/@maka/runtime/dist/image-file.js +5 -20
  402. package/node_modules/@maka/runtime/dist/interaction-authority.js +85 -0
  403. package/node_modules/@maka/runtime/dist/latest-context-snapshot.js +112 -23
  404. package/node_modules/@maka/runtime/dist/ledger-tool-result-archive-reader.js +164 -0
  405. package/node_modules/@maka/runtime/dist/local-web-fetch.js +3 -44
  406. package/node_modules/@maka/runtime/dist/mcp-tools.js +93 -35
  407. package/node_modules/@maka/runtime/dist/memory-extraction-evidence.js +7 -1
  408. package/node_modules/@maka/runtime/dist/memory-extraction.js +30 -19
  409. package/node_modules/@maka/runtime/dist/message-authority.js +9 -0
  410. package/node_modules/@maka/runtime/dist/model-adapter.js +176 -180
  411. package/node_modules/@maka/runtime/dist/model-factory.js +87 -110
  412. package/node_modules/@maka/runtime/dist/model-fetcher.js +100 -89
  413. package/node_modules/@maka/runtime/dist/model-history.js +322 -167
  414. package/node_modules/@maka/runtime/dist/model-projection-transition-ledger.js +207 -0
  415. package/node_modules/@maka/runtime/dist/model-runtime.js +94 -110
  416. package/node_modules/@maka/runtime/dist/native-web-search-tool.js +2 -1
  417. package/node_modules/@maka/runtime/dist/oauth-provider-contracts.js +28 -1
  418. package/node_modules/@maka/runtime/dist/openai-codex-history-compactor.js +28 -74
  419. package/node_modules/@maka/runtime/dist/openai-responses-websocket.js +2 -5
  420. package/node_modules/@maka/runtime/dist/opencode-session-header.js +31 -0
  421. package/node_modules/@maka/runtime/dist/pipe-tail-collector.js +6 -9
  422. package/node_modules/@maka/runtime/dist/plan-mode.js +0 -65
  423. package/node_modules/@maka/runtime/dist/plan-tools.js +0 -3
  424. package/node_modules/@maka/runtime/dist/plugin-agent-service.js +131 -0
  425. package/node_modules/@maka/runtime/dist/plugin-approval-service.js +33 -0
  426. package/node_modules/@maka/runtime/dist/plugin-attachment-service.js +53 -0
  427. package/node_modules/@maka/runtime/dist/plugin-command-service.js +100 -0
  428. package/node_modules/@maka/runtime/dist/plugin-composition-loader.js +184 -22
  429. package/node_modules/@maka/runtime/dist/plugin-data-services.js +332 -0
  430. package/node_modules/@maka/runtime/dist/plugin-executor-backend.js +311 -0
  431. package/node_modules/@maka/runtime/dist/plugin-executor-service.js +344 -0
  432. package/node_modules/@maka/runtime/dist/plugin-fs-service.js +62 -0
  433. package/node_modules/@maka/runtime/dist/plugin-goal-service.js +61 -0
  434. package/node_modules/@maka/runtime/dist/plugin-invocation-signal.js +24 -0
  435. package/node_modules/@maka/runtime/dist/plugin-llm-service.js +85 -0
  436. package/node_modules/@maka/runtime/dist/plugin-lsp-service.js +94 -0
  437. package/node_modules/@maka/runtime/dist/plugin-runtime.js +239 -10
  438. package/node_modules/@maka/runtime/dist/plugin-scope-registry.js +91 -0
  439. package/node_modules/@maka/runtime/dist/plugin-session-query-service.js +71 -0
  440. package/node_modules/@maka/runtime/dist/plugin-shell-env-service.js +87 -0
  441. package/node_modules/@maka/runtime/dist/plugin-shell-service.js +74 -0
  442. package/node_modules/@maka/runtime/dist/plugin-skill-service.js +93 -0
  443. package/node_modules/@maka/runtime/dist/plugin-system-prompt-service.js +346 -0
  444. package/node_modules/@maka/runtime/dist/plugin-tool-service.js +171 -0
  445. package/node_modules/@maka/runtime/dist/plugin-user-question-service.js +43 -0
  446. package/node_modules/@maka/runtime/dist/plugin-web-service.js +69 -0
  447. package/node_modules/@maka/runtime/dist/prior-run-context.js +24 -94
  448. package/node_modules/@maka/runtime/dist/process-tree-terminator.js +2 -2
  449. package/node_modules/@maka/runtime/dist/prompt-composition.js +36 -31
  450. package/node_modules/@maka/runtime/dist/provider-error-classification.js +114 -155
  451. package/node_modules/@maka/runtime/dist/provider-image-overflow-recovery.js +12 -31
  452. package/node_modules/@maka/runtime/dist/provider-request-telemetry.js +207 -204
  453. package/node_modules/@maka/runtime/dist/pty-screen-collector.js +32 -6
  454. package/node_modules/@maka/runtime/dist/quiescent-session-snapshot.js +78 -0
  455. package/node_modules/@maka/runtime/dist/read-page.js +231 -0
  456. package/node_modules/@maka/runtime/dist/recall-candidates.js +53 -0
  457. package/node_modules/@maka/runtime/dist/recall-tools.js +210 -0
  458. package/node_modules/@maka/runtime/dist/recovery-resolver.js +18 -14
  459. package/node_modules/@maka/runtime/dist/request-customization-fetch.js +14 -7
  460. package/node_modules/@maka/runtime/dist/request-projection.js +2 -15
  461. package/node_modules/@maka/runtime/dist/request-shape.js +187 -365
  462. package/node_modules/@maka/runtime/dist/responses-reasoning-state.js +19 -7
  463. package/node_modules/@maka/runtime/dist/ripgrep-executable.js +62 -0
  464. package/node_modules/@maka/runtime/dist/ripgrep-guidance.js +81 -0
  465. package/node_modules/@maka/runtime/dist/run-handoff-gate.js +97 -0
  466. package/node_modules/@maka/runtime/dist/run-trace.js +2 -34
  467. package/node_modules/@maka/runtime/dist/runtime-continuation-admission.js +1 -1
  468. package/node_modules/@maka/runtime/dist/runtime-event-backfill.js +114 -66
  469. package/node_modules/@maka/runtime/dist/runtime-event-read-model.js +420 -234
  470. package/node_modules/@maka/runtime/dist/runtime-invocation-route.js +49 -0
  471. package/node_modules/@maka/runtime/dist/runtime-kernel.js +575 -357
  472. package/node_modules/@maka/runtime/dist/runtime-ledger-repair.js +234 -449
  473. package/node_modules/@maka/runtime/dist/runtime-read-model.js +94 -200
  474. package/node_modules/@maka/runtime/dist/runtime-resume.js +162 -126
  475. package/node_modules/@maka/runtime/dist/sandbox/index.js +0 -1
  476. package/node_modules/@maka/runtime/dist/sandbox/linux-profile-path.js +7 -1
  477. package/node_modules/@maka/runtime/dist/sandbox/linux-sandbox.js +20 -17
  478. package/node_modules/@maka/runtime/dist/sandbox/macos-seatbelt.js +0 -12
  479. package/node_modules/@maka/runtime/dist/sandbox/sandbox-manager.js +0 -35
  480. package/node_modules/@maka/runtime/dist/sandbox/windows-sandbox.js +0 -12
  481. package/node_modules/@maka/runtime/dist/scheduled-task-tools.js +3 -0
  482. package/node_modules/@maka/runtime/dist/session-event-runtime-mapper.js +65 -21
  483. package/node_modules/@maka/runtime/dist/session-export.js +178 -0
  484. package/node_modules/@maka/runtime/dist/session-import.js +100 -0
  485. package/node_modules/@maka/runtime/dist/session-manager.js +822 -918
  486. package/node_modules/@maka/runtime/dist/session-projection-helpers.js +16 -28
  487. package/node_modules/@maka/runtime/dist/session-recap.js +90 -17
  488. package/node_modules/@maka/runtime/dist/session-todo-tools.js +67 -0
  489. package/node_modules/@maka/runtime/dist/session-trace-projection.js +25 -30
  490. package/node_modules/@maka/runtime/dist/shell-detect.js +3 -7
  491. package/node_modules/@maka/runtime/dist/shell-exec.js +7 -25
  492. package/node_modules/@maka/runtime/dist/shell-run-contract.js +0 -1
  493. package/node_modules/@maka/runtime/dist/shell-run-manager.js +72 -70
  494. package/node_modules/@maka/runtime/dist/shell-run-tool-result.js +19 -9
  495. package/node_modules/@maka/runtime/dist/shell-tools.js +84 -14
  496. package/node_modules/@maka/runtime/dist/stream-graph-coordinator.js +64 -13
  497. package/node_modules/@maka/runtime/dist/stream-graph-handoff.js +6 -1
  498. package/node_modules/@maka/runtime/dist/stream-graph-projection.js +18 -15
  499. package/node_modules/@maka/runtime/dist/stream-graph-read-model.js +5 -0
  500. package/node_modules/@maka/runtime/dist/stream-graph-schedule-reconcile.js +1 -0
  501. package/node_modules/@maka/runtime/dist/stream-graph-supervisor-tools.js +26 -12
  502. package/node_modules/@maka/runtime/dist/stream-usage-fallback-fetch.js +74 -0
  503. package/node_modules/@maka/runtime/dist/subagent-tools.js +9 -80
  504. package/node_modules/@maka/runtime/dist/subscription-credentials.js +51 -4
  505. package/node_modules/@maka/runtime/dist/subscription-model-fetch.js +51 -11
  506. package/node_modules/@maka/runtime/dist/system-prompt/main-session-prompt.js +21 -2
  507. package/node_modules/@maka/runtime/dist/system-prompt/workspace-instructions.js +11 -6
  508. package/node_modules/@maka/runtime/dist/tavily-search.js +8 -2
  509. package/node_modules/@maka/runtime/dist/telemetry/model-pricing.generated.js +198 -121
  510. package/node_modules/@maka/runtime/dist/terminal-run-commit.js +37 -172
  511. package/node_modules/@maka/runtime/dist/test-connection.js +91 -31
  512. package/node_modules/@maka/runtime/dist/text-line-window.js +49 -0
  513. package/node_modules/@maka/runtime/dist/tool-activation-identity.js +41 -0
  514. package/node_modules/@maka/runtime/dist/tool-availability.js +89 -8
  515. package/node_modules/@maka/runtime/dist/tool-output.js +36 -13
  516. package/node_modules/@maka/runtime/dist/tool-result-archive-capability.js +24 -36
  517. package/node_modules/@maka/runtime/dist/tool-result-archive-encoding.js +38 -0
  518. package/node_modules/@maka/runtime/dist/tool-result-archive-resource.js +93 -245
  519. package/node_modules/@maka/runtime/dist/tool-result-archive-transition.js +186 -0
  520. package/node_modules/@maka/runtime/dist/tool-result-archive.js +50 -173
  521. package/node_modules/@maka/runtime/dist/tool-runtime.js +410 -609
  522. package/node_modules/@maka/runtime/dist/unified-diff.js +40 -10
  523. package/node_modules/@maka/runtime/dist/web-fetch-tool.js +4 -2
  524. package/node_modules/@maka/runtime/dist/workers/filesystem-worker.js +13496 -5003
  525. package/node_modules/@maka/runtime/dist/workspace-executor.js +22 -30
  526. package/node_modules/@maka/runtime/node_modules/@ai-sdk/code-mode/LICENSE +13 -0
  527. package/node_modules/@maka/runtime/node_modules/@ai-sdk/code-mode/dist/run-code-mode.js +538 -0
  528. package/node_modules/@maka/runtime/node_modules/@ai-sdk/code-mode/package.json +78 -0
  529. package/node_modules/@maka/runtime/node_modules/@ai-sdk/gateway/CHANGELOG.md +3269 -0
  530. package/node_modules/@maka/runtime/node_modules/@ai-sdk/gateway/LICENSE +13 -0
  531. package/node_modules/@maka/runtime/node_modules/@ai-sdk/gateway/dist/index.js +3835 -0
  532. package/node_modules/@maka/runtime/node_modules/@ai-sdk/gateway/docs/00-ai-gateway.mdx +1610 -0
  533. package/node_modules/@maka/runtime/node_modules/@ai-sdk/gateway/package.json +80 -0
  534. package/node_modules/@maka/runtime/node_modules/@ai-sdk/provider/CHANGELOG.md +1262 -0
  535. package/node_modules/@maka/runtime/node_modules/@ai-sdk/provider/LICENSE +13 -0
  536. package/node_modules/@maka/runtime/node_modules/@ai-sdk/provider/README.md +1 -0
  537. package/node_modules/@maka/runtime/node_modules/@ai-sdk/provider/dist/index.js +426 -0
  538. package/node_modules/@maka/runtime/node_modules/@ai-sdk/provider/package.json +63 -0
  539. package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/README.md +44 -8
  540. package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/dist/package.json +4 -4
  541. package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/dist/src/SlackWebSocket.js +39 -3
  542. package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/dist/src/SocketModeClient.js +4 -0
  543. package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/package.json +4 -4
  544. package/node_modules/@maka/runtime/node_modules/ai/CHANGELOG.md +10271 -0
  545. package/node_modules/@maka/runtime/node_modules/ai/LICENSE +13 -0
  546. package/node_modules/@maka/runtime/node_modules/ai/dist/index.js +20146 -0
  547. package/node_modules/@maka/runtime/node_modules/ai/dist/internal/index.js +3690 -0
  548. package/node_modules/@maka/runtime/node_modules/ai/docs/02-foundations/02-providers-and-models.mdx +185 -0
  549. package/node_modules/@maka/runtime/node_modules/ai/docs/03-agents/04-loop-control.mdx +517 -0
  550. package/node_modules/@maka/runtime/node_modules/ai/docs/03-agents/06-policy-tool-approvals.mdx +413 -0
  551. package/node_modules/@maka/runtime/node_modules/ai/docs/03-agents/06-tool-approvals.mdx +338 -0
  552. package/node_modules/@maka/runtime/node_modules/ai/docs/03-agents/07-workflow-agent.mdx +815 -0
  553. package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/10-generating-structured-data.mdx +525 -0
  554. package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/15-tools-and-tool-calling.mdx +1512 -0
  555. package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/16-mcp-tools.mdx +680 -0
  556. package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/35-image-generation.mdx +371 -0
  557. package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/36-transcription.mdx +333 -0
  558. package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/37-speech.mdx +163 -0
  559. package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/39-file-uploads.mdx +180 -0
  560. package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/42-batch.mdx +372 -0
  561. package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/50-error-handling.mdx +241 -0
  562. package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/60-telemetry.mdx +855 -0
  563. package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/index.mdx +137 -0
  564. package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-harnesses/02-harness-agent.mdx +683 -0
  565. package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-harnesses/04-skills.mdx +69 -0
  566. package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-harnesses/05-harness-adapters.mdx +47 -0
  567. package/node_modules/@maka/runtime/node_modules/ai/docs/04-ai-sdk-ui/03-chatbot-tool-usage.mdx +826 -0
  568. package/node_modules/@maka/runtime/node_modules/ai/docs/04-ai-sdk-ui/20-streaming-data.mdx +406 -0
  569. package/node_modules/@maka/runtime/node_modules/ai/docs/04-ai-sdk-ui/21-transport.mdx +216 -0
  570. package/node_modules/@maka/runtime/node_modules/ai/docs/04-ai-sdk-ui/50-stream-protocol.mdx +582 -0
  571. package/node_modules/@maka/runtime/node_modules/ai/docs/06-advanced/04-caching.mdx +182 -0
  572. package/node_modules/@maka/runtime/node_modules/ai/docs/06-advanced/11-secure-url-fetching.mdx +117 -0
  573. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/01-generate-text.mdx +3267 -0
  574. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/02-stream-text.mdx +4303 -0
  575. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/05-embed.mdx +330 -0
  576. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/06-embed-many.mdx +332 -0
  577. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/06-rerank.mdx +331 -0
  578. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/10-generate-image.mdx +253 -0
  579. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/14-upload-file.mdx +125 -0
  580. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/16-tool-loop-agent.mdx +1102 -0
  581. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/20-start-batch.mdx +154 -0
  582. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/21-get-batch-status.mdx +133 -0
  583. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/22-get-batch-results.mdx +109 -0
  584. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/23-cancel-batch.mdx +96 -0
  585. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/24-list-batches.mdx +121 -0
  586. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/28-output.mdx +368 -0
  587. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/31-ui-message.mdx +331 -0
  588. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/80-smooth-stream.mdx +147 -0
  589. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/index.mdx +250 -0
  590. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/02-ai-sdk-ui/01-use-chat.mdx +493 -0
  591. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/02-ai-sdk-ui/31-convert-to-model-messages.mdx +256 -0
  592. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/02-ai-sdk-ui/40-create-ui-message-stream.mdx +199 -0
  593. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/02-ai-sdk-ui/41-create-ui-message-stream-response.mdx +125 -0
  594. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/04-ai-sdk-workflow/01-workflow-agent.mdx +1035 -0
  595. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/04-ai-sdk-workflow/02-workflow-chat-transport.mdx +361 -0
  596. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/04-ai-sdk-workflow/03-generate-video.mdx +157 -0
  597. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/04-ai-sdk-workflow/index.mdx +32 -0
  598. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-invalid-argument-error.mdx +31 -0
  599. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-no-image-generated-error.mdx +43 -0
  600. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-stream-provider-error.mdx +52 -0
  601. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-tool-choice-violation-error.mdx +38 -0
  602. package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/05-ai-sdk-errors/index.mdx +43 -0
  603. package/node_modules/@maka/runtime/node_modules/ai/package.json +127 -0
  604. package/node_modules/@maka/runtime/node_modules/undici/docs/docs/api/Client.md +4 -0
  605. package/node_modules/@maka/runtime/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +3 -2
  606. package/node_modules/@maka/runtime/node_modules/undici/docs/docs/api/EventSource.md +4 -0
  607. package/node_modules/@maka/runtime/node_modules/undici/docs/docs/api/Interceptors.md +7 -3
  608. package/node_modules/@maka/runtime/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +7 -1
  609. package/node_modules/@maka/runtime/node_modules/undici/lib/cache/memory-cache-store.js +2 -2
  610. package/node_modules/@maka/runtime/node_modules/undici/lib/core/symbols.js +2 -0
  611. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/agent.js +7 -2
  612. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/balanced-pool.js +7 -4
  613. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/client-h1.js +12 -4
  614. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/client-h2.js +43 -3
  615. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/client.js +3 -2
  616. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/dispatcher-base.js +13 -1
  617. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/dispatcher.js +15 -1
  618. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +3 -0
  619. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +10 -3
  620. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/proxy-agent.js +18 -1
  621. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/retry-agent.js +3 -0
  622. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/round-robin-pool.js +1 -1
  623. package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +91 -21
  624. package/node_modules/@maka/runtime/node_modules/undici/lib/handler/cache-handler.js +29 -5
  625. package/node_modules/@maka/runtime/node_modules/undici/lib/handler/decorator-handler.js +7 -1
  626. package/node_modules/@maka/runtime/node_modules/undici/lib/handler/deduplication-handler.js +12 -6
  627. package/node_modules/@maka/runtime/node_modules/undici/lib/handler/redirect-handler.js +21 -4
  628. package/node_modules/@maka/runtime/node_modules/undici/lib/handler/retry-handler.js +148 -30
  629. package/node_modules/@maka/runtime/node_modules/undici/lib/interceptor/cache.js +65 -12
  630. package/node_modules/@maka/runtime/node_modules/undici/lib/interceptor/decompress.js +115 -13
  631. package/node_modules/@maka/runtime/node_modules/undici/lib/interceptor/deduplicate.js +5 -4
  632. package/node_modules/@maka/runtime/node_modules/undici/lib/interceptor/dns.js +7 -0
  633. package/node_modules/@maka/runtime/node_modules/undici/lib/interceptor/dump.js +10 -23
  634. package/node_modules/@maka/runtime/node_modules/undici/lib/mock/mock-agent.js +13 -1
  635. package/node_modules/@maka/runtime/node_modules/undici/lib/mock/mock-utils.js +11 -10
  636. package/node_modules/@maka/runtime/node_modules/undici/lib/util/cache.js +45 -3
  637. package/node_modules/@maka/runtime/node_modules/undici/lib/web/cookies/parse.js +150 -147
  638. package/node_modules/@maka/runtime/node_modules/undici/lib/web/eventsource/eventsource-stream.js +28 -1
  639. package/node_modules/@maka/runtime/node_modules/undici/lib/web/eventsource/eventsource.js +13 -3
  640. package/node_modules/@maka/runtime/node_modules/undici/lib/web/fetch/index.js +6 -0
  641. package/node_modules/@maka/runtime/node_modules/undici/lib/web/fetch/request.js +2 -3
  642. package/node_modules/@maka/runtime/node_modules/undici/lib/web/fetch/util.js +6 -1
  643. package/node_modules/@maka/runtime/node_modules/undici/lib/web/webidl/index.js +3 -3
  644. package/node_modules/@maka/runtime/node_modules/undici/lib/web/websocket/connection.js +1 -1
  645. package/node_modules/@maka/runtime/node_modules/undici/lib/web/websocket/permessage-deflate.js +5 -0
  646. package/node_modules/@maka/runtime/node_modules/undici/lib/web/websocket/stream/websocketstream.js +8 -10
  647. package/node_modules/@maka/runtime/node_modules/undici/package.json +3 -3
  648. package/node_modules/@maka/runtime/package.json +50 -20
  649. package/node_modules/@maka/runtime-host/dist/adapter/session-projector.js +82 -40
  650. package/node_modules/@maka/runtime-host/dist/candidate-entry.js +10 -2
  651. package/node_modules/@maka/runtime-host/dist/candidate-launch-owner-guard.js +13 -0
  652. package/node_modules/@maka/runtime-host/dist/client/catalog-reader.js +64 -25
  653. package/node_modules/@maka/runtime-host/dist/client/client-capability-channel.js +87 -3
  654. package/node_modules/@maka/runtime-host/dist/client/connect-or-spawn.js +60 -20
  655. package/node_modules/@maka/runtime-host/dist/client/connection.js +164 -59
  656. package/node_modules/@maka/runtime-host/dist/client/host-handoff-copy.js +238 -0
  657. package/node_modules/@maka/runtime-host/dist/client/host-handoff.js +309 -0
  658. package/node_modules/@maka/runtime-host/dist/client/host-profile.js +483 -94
  659. package/node_modules/@maka/runtime-host/dist/client/host-retirement.js +28 -5
  660. package/node_modules/@maka/runtime-host/dist/client/hosted-execution-target.js +27 -6
  661. package/node_modules/@maka/runtime-host/dist/client/hosted-execution.js +10 -28
  662. package/node_modules/@maka/runtime-host/dist/client/index.js +13 -9
  663. package/node_modules/@maka/runtime-host/dist/client/launcher.js +12 -3
  664. package/node_modules/@maka/runtime-host/dist/client/oauth-presentation.js +1 -1
  665. package/node_modules/@maka/runtime-host/dist/client/owner-connection-code.js +38 -4
  666. package/node_modules/@maka/runtime-host/dist/client/peer-client.js +389 -25
  667. package/node_modules/@maka/runtime-host/dist/client/process-identity.js +73 -0
  668. package/node_modules/@maka/runtime-host/dist/client/reconnect-lifecycle.js +72 -7
  669. package/node_modules/@maka/runtime-host/dist/client/reconnecting-connection.js +11 -0
  670. package/node_modules/@maka/runtime-host/dist/client/registered-host-termination.js +107 -0
  671. package/node_modules/@maka/runtime-host/dist/client/remote-compatibility-error.js +2 -0
  672. package/node_modules/@maka/runtime-host/dist/client/session-catalog-summary.js +1 -0
  673. package/node_modules/@maka/runtime-host/dist/client/session-subscription.js +72 -122
  674. package/node_modules/@maka/runtime-host/dist/client/ssh-operator-activation.js +48 -11
  675. package/node_modules/@maka/runtime-host/dist/client/startup-error.js +1 -1
  676. package/node_modules/@maka/runtime-host/dist/client/wait-for-ready.js +1 -1
  677. package/node_modules/@maka/runtime-host/dist/client/wsl-control.js +0 -8
  678. package/node_modules/@maka/runtime-host/dist/client/wsl-environment.js +12 -8
  679. package/node_modules/@maka/runtime-host/dist/client-capability-entity-id.js +27 -0
  680. package/node_modules/@maka/runtime-host/dist/control/endpoint.js +8 -9
  681. package/node_modules/@maka/runtime-host/dist/execution-candidate-main.js +8 -1
  682. package/node_modules/@maka/runtime-host/dist/node-error.js +22 -0
  683. package/node_modules/@maka/runtime-host/dist/operator/access-management-frame.js +10 -1
  684. package/node_modules/@maka/runtime-host/dist/operator/index.js +5 -2
  685. package/node_modules/@maka/runtime-host/dist/operator/managed-deployment.js +17 -8
  686. package/node_modules/@maka/runtime-host/dist/operator/operator-command.js +110 -0
  687. package/node_modules/@maka/runtime-host/dist/operator/peer-management-frame.js +2 -0
  688. package/node_modules/@maka/runtime-host/dist/operator/retirement-cancellation.js +20 -0
  689. package/node_modules/@maka/runtime-host/dist/operator/service-management-frame.js +5 -6
  690. package/node_modules/@maka/runtime-host/dist/operator/setup-frame.js +32 -6
  691. package/node_modules/@maka/runtime-host/dist/peer-mesh/index.js +3 -3
  692. package/node_modules/@maka/runtime-host/dist/peer-mesh/limits.js +1 -2
  693. package/node_modules/@maka/runtime-host/dist/peer-mesh/model.js +48 -60
  694. package/node_modules/@maka/runtime-host/dist/peer-mesh/node.js +1228 -472
  695. package/node_modules/@maka/runtime-host/dist/peer-mesh/owner.js +33 -70
  696. package/node_modules/@maka/runtime-host/dist/peer-mesh/store.js +141 -59
  697. package/node_modules/@maka/runtime-host/dist/peer-reachability/index.js +21 -0
  698. package/node_modules/@maka/runtime-host/dist/peer-reachability/model.js +202 -0
  699. package/node_modules/@maka/runtime-host/dist/peer-reachability/owner.js +118 -0
  700. package/node_modules/@maka/runtime-host/dist/peer-reachability/publisher.js +243 -0
  701. package/node_modules/@maka/runtime-host/dist/protocol/agent-graph.js +5 -12
  702. package/node_modules/@maka/runtime-host/dist/protocol/artifact.js +11 -20
  703. package/node_modules/@maka/runtime-host/dist/protocol/client-capability.js +235 -43
  704. package/node_modules/@maka/runtime-host/dist/protocol/codec.js +11 -0
  705. package/node_modules/@maka/runtime-host/dist/protocol/configuration.js +55 -9
  706. package/node_modules/@maka/runtime-host/dist/protocol/connection-catalog-change.js +26 -0
  707. package/node_modules/@maka/runtime-host/dist/protocol/connection-effects.js +15 -8
  708. package/node_modules/@maka/runtime-host/dist/protocol/external-agent-setup.js +149 -0
  709. package/node_modules/@maka/runtime-host/dist/protocol/external-session.js +33 -7
  710. package/node_modules/@maka/runtime-host/dist/protocol/host-resources.js +253 -0
  711. package/node_modules/@maka/runtime-host/dist/protocol/host-status.js +49 -11
  712. package/node_modules/@maka/runtime-host/dist/protocol/index.js +215 -2
  713. package/node_modules/@maka/runtime-host/dist/protocol/message.js +14 -9
  714. package/node_modules/@maka/runtime-host/dist/protocol/network-proxy.js +1 -7
  715. package/node_modules/@maka/runtime-host/dist/protocol/oauth.js +104 -8
  716. package/node_modules/@maka/runtime-host/dist/protocol/operations.js +23 -6
  717. package/node_modules/@maka/runtime-host/dist/protocol/peer-mesh.js +14 -31
  718. package/node_modules/@maka/runtime-host/dist/protocol/plan.js +1 -0
  719. package/node_modules/@maka/runtime-host/dist/protocol/plugin-platform.js +596 -0
  720. package/node_modules/@maka/runtime-host/dist/protocol/project-catalog.js +2 -2
  721. package/node_modules/@maka/runtime-host/dist/protocol/runtime-policy.js +81 -26
  722. package/node_modules/@maka/runtime-host/dist/protocol/runtime-resource.js +4 -17
  723. package/node_modules/@maka/runtime-host/dist/protocol/scheduled-task.js +19 -6
  724. package/node_modules/@maka/runtime-host/dist/protocol/session-bundle.js +100 -0
  725. package/node_modules/@maka/runtime-host/dist/protocol/session-catalog.js +32 -4
  726. package/node_modules/@maka/runtime-host/dist/protocol/session-collaboration.js +68 -4
  727. package/node_modules/@maka/runtime-host/dist/protocol/session-continuity.js +71 -28
  728. package/node_modules/@maka/runtime-host/dist/protocol/session-retirement.js +30 -3
  729. package/node_modules/@maka/runtime-host/dist/protocol/session-revision.js +11 -2
  730. package/node_modules/@maka/runtime-host/dist/protocol/session-todo.js +53 -0
  731. package/node_modules/@maka/runtime-host/dist/protocol/session-transcript.js +34 -127
  732. package/node_modules/@maka/runtime-host/dist/protocol/session-turns.js +38 -59
  733. package/node_modules/@maka/runtime-host/dist/protocol/skill-catalog.js +2 -1
  734. package/node_modules/@maka/runtime-host/dist/protocol/turn.js +25 -14
  735. package/node_modules/@maka/runtime-host/dist/protocol/usage-pricing.js +39 -3
  736. package/node_modules/@maka/runtime-host/dist/protocol/usage-screen.js +304 -0
  737. package/node_modules/@maka/runtime-host/dist/protocol/workhub-coordination.js +220 -75
  738. package/node_modules/@maka/runtime-host/dist/server/access-authority.js +78 -17
  739. package/node_modules/@maka/runtime-host/dist/server/access-credential-metadata.js +4 -2
  740. package/node_modules/@maka/runtime-host/dist/server/access-credential-store.js +131 -49
  741. package/node_modules/@maka/runtime-host/dist/server/acp/antigravity-install.js +242 -0
  742. package/node_modules/@maka/runtime-host/dist/server/acp/antigravity.js +154 -0
  743. package/node_modules/@maka/runtime-host/dist/server/acp/connection.js +116 -0
  744. package/node_modules/@maka/runtime-host/dist/server/agent-graph-coordinator.js +0 -3
  745. package/node_modules/@maka/runtime-host/dist/server/agent-graph-execution-coordinator.js +1 -2
  746. package/node_modules/@maka/runtime-host/dist/server/artifact-coordinator.js +19 -22
  747. package/node_modules/@maka/runtime-host/dist/server/bootstrap-runtime-policy.js +75 -4
  748. package/node_modules/@maka/runtime-host/dist/server/candidate.js +3 -0
  749. package/node_modules/@maka/runtime-host/dist/server/canonical-session-projection.js +2 -1
  750. package/node_modules/@maka/runtime-host/dist/server/canonical-turn-snapshot.js +34 -24
  751. package/node_modules/@maka/runtime-host/dist/server/canonical-usage-reader.js +24 -11
  752. package/node_modules/@maka/runtime-host/dist/server/child-agent-composition.js +2 -1
  753. package/node_modules/@maka/runtime-host/dist/server/client-capability-coordinator.js +282 -30
  754. package/node_modules/@maka/runtime-host/dist/server/client-capability-invocation-broker.js +258 -51
  755. package/node_modules/@maka/runtime-host/dist/server/client-capability-provider-id.js +31 -0
  756. package/node_modules/@maka/runtime-host/dist/server/client-capability-recovery.js +10 -7
  757. package/node_modules/@maka/runtime-host/dist/server/configuration-coordinator.js +20 -1
  758. package/node_modules/@maka/runtime-host/dist/server/connection-effect-coordinator.js +43 -18
  759. package/node_modules/@maka/runtime-host/dist/server/connection-session.js +42 -19
  760. package/node_modules/@maka/runtime-host/dist/server/daily-review-coordinator.js +164 -82
  761. package/node_modules/@maka/runtime-host/dist/server/deep-research-coordinator.js +1 -1
  762. package/node_modules/@maka/runtime-host/dist/server/execution-artifacts.js +59 -57
  763. package/node_modules/@maka/runtime-host/dist/server/execution-candidate.js +4 -1
  764. package/node_modules/@maka/runtime-host/dist/server/execution-composition-factory.js +9 -3
  765. package/node_modules/@maka/runtime-host/dist/server/execution-composition.js +1204 -191
  766. package/node_modules/@maka/runtime-host/dist/server/execution-inspect-coordinator.js +35 -29
  767. package/node_modules/@maka/runtime-host/dist/server/execution-model-authority.js +112 -18
  768. package/node_modules/@maka/runtime-host/dist/server/execution-model-composition.js +85 -73
  769. package/node_modules/@maka/runtime-host/dist/server/execution-service.js +49 -25
  770. package/node_modules/@maka/runtime-host/dist/server/extension-bundle.js +249 -0
  771. package/node_modules/@maka/runtime-host/dist/server/extension-package-manifest.js +262 -0
  772. package/node_modules/@maka/runtime-host/dist/server/external-agent-setup-coordinator.js +190 -0
  773. package/node_modules/@maka/runtime-host/dist/server/external-session-coordinator.js +101 -48
  774. package/node_modules/@maka/runtime-host/dist/server/failure-diagnostic.js +24 -0
  775. package/node_modules/@maka/runtime-host/dist/server/goal-coordinator.js +134 -35
  776. package/node_modules/@maka/runtime-host/dist/server/host-change-feed.js +11 -0
  777. package/node_modules/@maka/runtime-host/dist/server/host-kernel.js +162 -26
  778. package/node_modules/@maka/runtime-host/dist/server/host-residency-registry.js +41 -20
  779. package/node_modules/@maka/runtime-host/dist/server/host-resource-collector.js +223 -0
  780. package/node_modules/@maka/runtime-host/dist/server/host-resource-probe-main.js +44 -0
  781. package/node_modules/@maka/runtime-host/dist/server/host-resource-probe.js +83 -0
  782. package/node_modules/@maka/runtime-host/dist/server/host-session-availability.js +15 -4
  783. package/node_modules/@maka/runtime-host/dist/server/hosted-execution-admission-registry.js +3 -1
  784. package/node_modules/@maka/runtime-host/dist/server/hosted-execution-projection.js +12 -7
  785. package/node_modules/@maka/runtime-host/dist/server/hosted-execution-recovery.js +131 -69
  786. package/node_modules/@maka/runtime-host/dist/server/hosted-execution-tool-profile.js +69 -11
  787. package/node_modules/@maka/runtime-host/dist/server/index.js +5 -0
  788. package/node_modules/@maka/runtime-host/dist/server/interaction-coordinator.js +392 -37
  789. package/node_modules/@maka/runtime-host/dist/server/interaction-projection.js +36 -1
  790. package/node_modules/@maka/runtime-host/dist/server/interactive-run-composer.js +182 -113
  791. package/node_modules/@maka/runtime-host/dist/server/json-array-page-budget.js +48 -0
  792. package/node_modules/@maka/runtime-host/dist/server/listener-set.js +6 -4
  793. package/node_modules/@maka/runtime-host/dist/server/memory-projection.js +14 -15
  794. package/node_modules/@maka/runtime-host/dist/server/message-coordinator.js +340 -68
  795. package/node_modules/@maka/runtime-host/dist/server/model-metadata-refresh.js +96 -0
  796. package/node_modules/@maka/runtime-host/dist/server/network-proxy-coordinator.js +0 -1
  797. package/node_modules/@maka/runtime-host/dist/server/oauth-coordinator.js +169 -45
  798. package/node_modules/@maka/runtime-host/dist/server/oauth-execution-authority.js +20 -3
  799. package/node_modules/@maka/runtime-host/dist/server/operation-dispatcher.js +62 -127
  800. package/node_modules/@maka/runtime-host/dist/server/peer-listener.js +131 -48
  801. package/node_modules/@maka/runtime-host/dist/server/peer-mesh-authority.js +1 -1
  802. package/node_modules/@maka/runtime-host/dist/server/plan-coordinator.js +52 -16
  803. package/node_modules/@maka/runtime-host/dist/server/plugin-composition-patch.js +58 -0
  804. package/node_modules/@maka/runtime-host/dist/server/plugin-composition-store.js +141 -0
  805. package/node_modules/@maka/runtime-host/dist/server/plugin-data-runtime.js +234 -0
  806. package/node_modules/@maka/runtime-host/dist/server/plugin-package-loader.js +130 -0
  807. package/node_modules/@maka/runtime-host/dist/server/plugin-package-store.js +528 -0
  808. package/node_modules/@maka/runtime-host/dist/server/plugin-platform-coordinator.js +269 -0
  809. package/node_modules/@maka/runtime-host/dist/server/plugin-platform.js +1154 -0
  810. package/node_modules/@maka/runtime-host/dist/server/project-catalog-coordinator.js +10 -12
  811. package/node_modules/@maka/runtime-host/dist/server/project-directory-authority.js +4 -3
  812. package/node_modules/@maka/runtime-host/dist/server/root-admission-owner.js +32 -7
  813. package/node_modules/@maka/runtime-host/dist/server/root-turn-coordinator.js +695 -195
  814. package/node_modules/@maka/runtime-host/dist/server/runtime-policy-coordinator.js +72 -18
  815. package/node_modules/@maka/runtime-host/dist/server/runtime-resource-coordinator.js +24 -31
  816. package/node_modules/@maka/runtime-host/dist/server/runtime-resource-projection.js +15 -32
  817. package/node_modules/@maka/runtime-host/dist/server/sandbox-boundary-graph-wake.js +3 -5
  818. package/node_modules/@maka/runtime-host/dist/server/scheduled-task-coordinator.js +150 -41
  819. package/node_modules/@maka/runtime-host/dist/server/serial-outbound-writer.js +46 -4
  820. package/node_modules/@maka/runtime-host/dist/server/session-admission-gate.js +21 -1
  821. package/node_modules/@maka/runtime-host/dist/server/session-bundle-coordinator.js +163 -0
  822. package/node_modules/@maka/runtime-host/dist/server/session-catalog-coordinator.js +305 -48
  823. package/node_modules/@maka/runtime-host/dist/server/session-continuity-coordinator.js +380 -502
  824. package/node_modules/@maka/runtime-host/dist/server/session-effect-coordinator.js +1 -1
  825. package/node_modules/@maka/runtime-host/dist/server/session-retirement-coordinator.js +66 -14
  826. package/node_modules/@maka/runtime-host/dist/server/session-revision-coordinator.js +141 -78
  827. package/node_modules/@maka/runtime-host/dist/server/session-revision-graph-references.js +18 -10
  828. package/node_modules/@maka/runtime-host/dist/server/session-sidecar-purge.js +2 -1
  829. package/node_modules/@maka/runtime-host/dist/server/session-todo-coordinator.js +77 -0
  830. package/node_modules/@maka/runtime-host/dist/server/session-transcript-pager.js +23 -488
  831. package/node_modules/@maka/runtime-host/dist/server/session-transcript-reader.js +358 -115
  832. package/node_modules/@maka/runtime-host/dist/server/session-turn-access-request-coordinator.js +43 -26
  833. package/node_modules/@maka/runtime-host/dist/server/shared-session-transcript.js +4 -1
  834. package/node_modules/@maka/runtime-host/dist/server/skill-catalog-coordinator.js +18 -2
  835. package/node_modules/@maka/runtime-host/dist/server/skill-catalog-repository.js +16 -17
  836. package/node_modules/@maka/runtime-host/dist/server/storage-maintenance.js +109 -0
  837. package/node_modules/@maka/runtime-host/dist/server/usage-pricing-coordinator.js +120 -36
  838. package/node_modules/@maka/runtime-host/dist/server/web-fetch-tool.js +38 -2
  839. package/node_modules/@maka/runtime-host/dist/server/workhub-coordination-action-gate.js +566 -37
  840. package/node_modules/@maka/runtime-host/dist/server/workhub-coordination-coordinator.js +590 -131
  841. package/node_modules/@maka/runtime-host/dist/server/workhub-message-attachments.js +47 -0
  842. package/node_modules/@maka/runtime-host/dist/transport/framed-byte-stream-transport.js +4 -1
  843. package/node_modules/@maka/runtime-host/dist/transport/local-ipc-framing.js +4 -2
  844. package/node_modules/@maka/runtime-host/dist/transport/peer-native.js +112 -24
  845. package/node_modules/@maka/runtime-host/dist/transport/resumable-peer-stream.js +469 -0
  846. package/node_modules/@maka/runtime-host/dist/webrtc-stun-policy.js +114 -0
  847. package/node_modules/@maka/runtime-host/package.json +7 -1
  848. package/node_modules/@maka/storage/dist/agent-run-store-contract.js +945 -0
  849. package/node_modules/@maka/storage/dist/agent-run-store.js +250 -1053
  850. package/node_modules/@maka/storage/dist/artifact-attachments.js +66 -18
  851. package/node_modules/@maka/storage/dist/artifact-metadata-codec.js +24 -28
  852. package/node_modules/@maka/storage/dist/artifact-store.js +265 -773
  853. package/node_modules/@maka/storage/dist/artifact-stores.js +6 -10
  854. package/node_modules/@maka/storage/dist/artifact-writer-lock.js +1 -1
  855. package/node_modules/@maka/storage/dist/atomic-file-write.js +74 -0
  856. package/node_modules/@maka/storage/dist/claude-code-session-adapter.js +700 -269
  857. package/node_modules/@maka/storage/dist/claude-code-transcript-lineage.js +106 -77
  858. package/node_modules/@maka/storage/dist/codex-session-adapter.js +635 -311
  859. package/node_modules/@maka/storage/dist/context-offload-snapshot.js +397 -0
  860. package/node_modules/@maka/storage/dist/context-value-mutation-gate.js +59 -0
  861. package/node_modules/@maka/storage/dist/conversation-operational-state.js +10 -0
  862. package/node_modules/@maka/storage/dist/credential-store.js +15 -63
  863. package/node_modules/@maka/storage/dist/execution-persistence-provider.js +54 -0
  864. package/node_modules/@maka/storage/dist/execution-record-codec.js +1 -22
  865. package/node_modules/@maka/storage/dist/execution-stores.js +238 -79
  866. package/node_modules/@maka/storage/dist/external-session-importer.js +25 -3
  867. package/node_modules/@maka/storage/dist/file-lifetime-owner.js +30 -2
  868. package/node_modules/@maka/storage/dist/file-session-repository.js +1012 -0
  869. package/node_modules/@maka/storage/dist/git-exec.js +61 -0
  870. package/node_modules/@maka/storage/dist/git-worktree-child-executor.js +8 -35
  871. package/node_modules/@maka/storage/dist/goal-authority.js +41 -10
  872. package/node_modules/@maka/storage/dist/graph-control-values.js +126 -0
  873. package/node_modules/@maka/storage/dist/interaction-store-contract.js +231 -0
  874. package/node_modules/@maka/storage/dist/interaction-store-public.js +1 -1
  875. package/node_modules/@maka/storage/dist/interaction-store.js +196 -166
  876. package/node_modules/@maka/storage/dist/legacy-run-header.js +327 -0
  877. package/node_modules/@maka/storage/dist/local-execution-persistence.js +80 -0
  878. package/node_modules/@maka/storage/dist/mcp-config-store.js +10 -25
  879. package/node_modules/@maka/storage/dist/message-admission-store.js +8 -3
  880. package/node_modules/@maka/storage/dist/model-call-ledger.js +199 -32
  881. package/node_modules/@maka/storage/dist/model-call-usage-sql.js +136 -0
  882. package/node_modules/@maka/storage/dist/model-facts-store.js +56 -0
  883. package/node_modules/@maka/storage/dist/offset-external-session-catalog.js +69 -0
  884. package/node_modules/@maka/storage/dist/opencode-session-adapter.js +278 -77
  885. package/node_modules/@maka/storage/dist/operational-state-backup.js +15 -11
  886. package/node_modules/@maka/storage/dist/operational-state-store-public.js +1 -1
  887. package/node_modules/@maka/storage/dist/operational-state-store.js +45 -7
  888. package/node_modules/@maka/storage/dist/plan-authority.js +48 -0
  889. package/node_modules/@maka/storage/dist/production-session-snapshot.js +761 -0
  890. package/node_modules/@maka/storage/dist/project-catalog.js +8 -23
  891. package/node_modules/@maka/storage/dist/quiescent-session-snapshot.js +1154 -0
  892. package/node_modules/@maka/storage/dist/recall-fold.js +65 -0
  893. package/node_modules/@maka/storage/dist/root-authority.js +4 -0
  894. package/node_modules/@maka/storage/dist/runtime-event-invariants.js +2 -2
  895. package/node_modules/@maka/storage/dist/runtime-event-persistence.js +8 -0
  896. package/node_modules/@maka/storage/dist/runtime-partial-values.js +114 -0
  897. package/node_modules/@maka/storage/dist/runtime-policy/connection-catalog-document.js +182 -62
  898. package/node_modules/@maka/storage/dist/runtime-policy/coordinator.js +540 -117
  899. package/node_modules/@maka/storage/dist/runtime-policy/document-io.js +22 -16
  900. package/node_modules/@maka/storage/dist/runtime-policy/oauth-login-receipt-document.js +207 -0
  901. package/node_modules/@maka/storage/dist/runtime-policy/onboarding-transaction.js +148 -5
  902. package/node_modules/@maka/storage/dist/runtime-policy/policy-document.js +10 -4
  903. package/node_modules/@maka/storage/dist/runtime-policy-stores.js +7 -3
  904. package/node_modules/@maka/storage/dist/runtime-transcript-query.js +333 -0
  905. package/node_modules/@maka/storage/dist/scheduled-task-store.js +256 -283
  906. package/node_modules/@maka/storage/dist/session-bundle-manifest.js +5 -17
  907. package/node_modules/@maka/storage/dist/session-bundle-policy.js +1031 -34
  908. package/node_modules/@maka/storage/dist/session-bundle-ustar.js +12 -0
  909. package/node_modules/@maka/storage/dist/session-copy-cleanup.js +12 -7
  910. package/node_modules/@maka/storage/dist/session-message-projection.js +24 -5
  911. package/node_modules/@maka/storage/dist/session-repository.js +767 -0
  912. package/node_modules/@maka/storage/dist/session-store-contract.js +61 -0
  913. package/node_modules/@maka/storage/dist/session-store-values.js +342 -0
  914. package/node_modules/@maka/storage/dist/session-store.js +101 -431
  915. package/node_modules/@maka/storage/dist/session-todo-authority.js +106 -0
  916. package/node_modules/@maka/storage/dist/session-todo-store.js +169 -0
  917. package/node_modules/@maka/storage/dist/settings-store.js +24 -29
  918. package/node_modules/@maka/storage/dist/sqlite-artifact-metadata.js +51 -17
  919. package/node_modules/@maka/storage/dist/sqlite-artifact-schema.js +55 -5
  920. package/node_modules/@maka/storage/dist/sqlite-context-offload-store.js +42 -12
  921. package/node_modules/@maka/storage/dist/sqlite-core-execution-schema.js +45 -2
  922. package/node_modules/@maka/storage/dist/sqlite-long-term-memory-store.js +86 -12
  923. package/node_modules/@maka/storage/dist/sqlite-runtime-schema.js +382 -1
  924. package/node_modules/@maka/storage/dist/sqlite-runtime-store.js +542 -269
  925. package/node_modules/@maka/storage/dist/sqlite-session-metadata-schema.js +63 -5
  926. package/node_modules/@maka/storage/dist/sqlite-session-metadata-store.js +653 -1047
  927. package/node_modules/@maka/storage/dist/sqlite-usage-schema.js +256 -20
  928. package/node_modules/@maka/storage/dist/sqlite-usage-store.js +29 -6
  929. package/node_modules/@maka/storage/dist/sqlite-workflow-schema.js +5 -8
  930. package/node_modules/@maka/storage/dist/stable-storage.js +16 -2
  931. package/node_modules/@maka/storage/dist/storage-id.js +28 -0
  932. package/node_modules/@maka/storage/dist/storage-writer-composition.js +5 -6
  933. package/node_modules/@maka/storage/dist/tool-commit-validation.js +111 -0
  934. package/node_modules/@maka/storage/dist/tool-result-archive-evidence.js +138 -0
  935. package/node_modules/@maka/storage/dist/usage-screen.js +289 -0
  936. package/node_modules/@maka/storage/dist/usage-stores.js +17 -6
  937. package/node_modules/@maka/storage/dist/work-board-store.js +44 -5
  938. package/node_modules/@maka/storage/dist/workspace-identity.js +2 -15
  939. package/node_modules/@maka/storage/dist/workspace-version-authority-internal.js +1 -8
  940. package/node_modules/@maka/storage/package.json +9 -3
  941. package/node_modules/@modelcontextprotocol/client/dist/src-D_zzAWoS.mjs +22 -5
  942. package/node_modules/@modelcontextprotocol/client/dist/src-NAgB4Mp8.cjs +22 -5
  943. package/node_modules/@openai/agents-core/dist/agent.js +8 -10
  944. package/node_modules/@openai/agents-core/dist/agent.mjs +9 -11
  945. package/node_modules/@openai/agents-core/dist/agentToolInput.js +2 -30
  946. package/node_modules/@openai/agents-core/dist/agentToolInput.mjs +1 -29
  947. package/node_modules/@openai/agents-core/dist/defaultModel.js +23 -3
  948. package/node_modules/@openai/agents-core/dist/defaultModel.mjs +21 -3
  949. package/node_modules/@openai/agents-core/dist/handoff.js +5 -5
  950. package/node_modules/@openai/agents-core/dist/handoff.mjs +5 -5
  951. package/node_modules/@openai/agents-core/dist/index.js +2 -1
  952. package/node_modules/@openai/agents-core/dist/index.mjs +1 -1
  953. package/node_modules/@openai/agents-core/dist/items.js +8 -1
  954. package/node_modules/@openai/agents-core/dist/items.mjs +8 -1
  955. package/node_modules/@openai/agents-core/dist/mcp.js +26 -16
  956. package/node_modules/@openai/agents-core/dist/mcp.mjs +27 -17
  957. package/node_modules/@openai/agents-core/dist/mcpServers.js +18 -15
  958. package/node_modules/@openai/agents-core/dist/mcpServers.mjs +18 -15
  959. package/node_modules/@openai/agents-core/dist/mcpShared.js +12 -0
  960. package/node_modules/@openai/agents-core/dist/mcpShared.mjs +12 -0
  961. package/node_modules/@openai/agents-core/dist/memory/session.js +8 -0
  962. package/node_modules/@openai/agents-core/dist/memory/session.mjs +7 -0
  963. package/node_modules/@openai/agents-core/dist/metadata.js +2 -2
  964. package/node_modules/@openai/agents-core/dist/metadata.mjs +2 -2
  965. package/node_modules/@openai/agents-core/dist/run.js +550 -248
  966. package/node_modules/@openai/agents-core/dist/run.mjs +555 -253
  967. package/node_modules/@openai/agents-core/dist/runState.js +747 -420
  968. package/node_modules/@openai/agents-core/dist/runState.mjs +742 -421
  969. package/node_modules/@openai/agents-core/dist/runStateLegacyCompaction.js +440 -0
  970. package/node_modules/@openai/agents-core/dist/runStateLegacyCompaction.mjs +404 -0
  971. package/node_modules/@openai/agents-core/dist/runner/blockedOutputPersistence.js +274 -78
  972. package/node_modules/@openai/agents-core/dist/runner/blockedOutputPersistence.mjs +268 -77
  973. package/node_modules/@openai/agents-core/dist/runner/conversation.js +22 -3
  974. package/node_modules/@openai/agents-core/dist/runner/conversation.mjs +23 -4
  975. package/node_modules/@openai/agents-core/dist/runner/guardrails.js +80 -15
  976. package/node_modules/@openai/agents-core/dist/runner/guardrails.mjs +78 -15
  977. package/node_modules/@openai/agents-core/dist/runner/items.js +35 -2
  978. package/node_modules/@openai/agents-core/dist/runner/items.mjs +35 -2
  979. package/node_modules/@openai/agents-core/dist/runner/modelOutputs.js +47 -18
  980. package/node_modules/@openai/agents-core/dist/runner/modelOutputs.mjs +50 -21
  981. package/node_modules/@openai/agents-core/dist/runner/modelPreparation.js +28 -0
  982. package/node_modules/@openai/agents-core/dist/runner/modelPreparation.mjs +28 -1
  983. package/node_modules/@openai/agents-core/dist/runner/modelRetry.js +322 -217
  984. package/node_modules/@openai/agents-core/dist/runner/modelRetry.mjs +322 -217
  985. package/node_modules/@openai/agents-core/dist/runner/modelSettings.js +15 -22
  986. package/node_modules/@openai/agents-core/dist/runner/modelSettings.mjs +15 -22
  987. package/node_modules/@openai/agents-core/dist/runner/outputGuardrailBlockedMessage.js +32 -0
  988. package/node_modules/@openai/agents-core/dist/runner/outputGuardrailBlockedMessage.mjs +28 -0
  989. package/node_modules/@openai/agents-core/dist/runner/runLoop.js +53 -8
  990. package/node_modules/@openai/agents-core/dist/runner/runLoop.mjs +53 -8
  991. package/node_modules/@openai/agents-core/dist/runner/sessionItems.js +119 -0
  992. package/node_modules/@openai/agents-core/dist/runner/sessionItems.mjs +114 -0
  993. package/node_modules/@openai/agents-core/dist/runner/sessionPersistence.js +408 -157
  994. package/node_modules/@openai/agents-core/dist/runner/sessionPersistence.mjs +388 -142
  995. package/node_modules/@openai/agents-core/dist/runner/toolExecution.js +42 -3
  996. package/node_modules/@openai/agents-core/dist/runner/toolExecution.mjs +42 -3
  997. package/node_modules/@openai/agents-core/dist/runner/toolSearch.js +1 -0
  998. package/node_modules/@openai/agents-core/dist/runner/toolSearch.mjs +1 -1
  999. package/node_modules/@openai/agents-core/dist/runner/toolSearchAttribution.js +19 -0
  1000. package/node_modules/@openai/agents-core/dist/runner/toolSearchAttribution.mjs +15 -0
  1001. package/node_modules/@openai/agents-core/dist/runner/turnResolution.js +65 -13
  1002. package/node_modules/@openai/agents-core/dist/runner/turnResolution.mjs +65 -13
  1003. package/node_modules/@openai/agents-core/dist/runner/usageTracking.js +69 -0
  1004. package/node_modules/@openai/agents-core/dist/runner/usageTracking.mjs +65 -0
  1005. package/node_modules/@openai/agents-core/dist/sandbox/manifest.js +4 -0
  1006. package/node_modules/@openai/agents-core/dist/sandbox/manifest.mjs +4 -0
  1007. package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/docker.js +317 -127
  1008. package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/docker.mjs +319 -129
  1009. package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/shared/localWorkspace.js +1 -1
  1010. package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/shared/localWorkspace.mjs +1 -1
  1011. package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/shared/pty.js +27 -13
  1012. package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/shared/pty.mjs +27 -13
  1013. package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/shared/unixLocalFileWorker.js +196 -0
  1014. package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/shared/unixLocalFileWorker.mjs +193 -0
  1015. package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/shared/unixLocalFiles.js +215 -0
  1016. package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/shared/unixLocalFiles.mjs +211 -0
  1017. package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/unixLocal.js +193 -83
  1018. package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/unixLocal.mjs +196 -86
  1019. package/node_modules/@openai/agents-core/dist/sandbox/session.js +2 -1
  1020. package/node_modules/@openai/agents-core/dist/sandbox/session.mjs +2 -1
  1021. package/node_modules/@openai/agents-core/dist/tracing/processor.js +21 -7
  1022. package/node_modules/@openai/agents-core/dist/tracing/processor.mjs +21 -7
  1023. package/node_modules/@openai/agents-core/dist/tracing/spans.js +40 -6
  1024. package/node_modules/@openai/agents-core/dist/tracing/spans.mjs +7 -3
  1025. package/node_modules/@openai/agents-core/dist/types/protocol.js +6 -0
  1026. package/node_modules/@openai/agents-core/dist/types/protocol.mjs +6 -0
  1027. package/node_modules/@openai/agents-core/dist/usage.js +13 -4
  1028. package/node_modules/@openai/agents-core/dist/usage.mjs +13 -4
  1029. package/node_modules/@openai/agents-core/dist/utils/applyDiff.js +24 -7
  1030. package/node_modules/@openai/agents-core/dist/utils/applyDiff.mjs +24 -7
  1031. package/node_modules/@openai/agents-core/dist/utils/internal.js +3 -1
  1032. package/node_modules/@openai/agents-core/dist/utils/internal.mjs +1 -1
  1033. package/node_modules/@openai/agents-core/dist/utils/zodCompat.js +29 -0
  1034. package/node_modules/@openai/agents-core/dist/utils/zodCompat.mjs +28 -0
  1035. package/node_modules/@openai/agents-core/dist/utils/zodJsonSchemaCompat.js +3 -31
  1036. package/node_modules/@openai/agents-core/dist/utils/zodJsonSchemaCompat.mjs +1 -29
  1037. package/node_modules/@openai/agents-core/package.json +1 -1
  1038. package/node_modules/@slack/types/dist/events/agent.js +3 -0
  1039. package/node_modules/@slack/types/dist/events/index.js +44 -0
  1040. package/node_modules/@slack/types/package.json +47 -0
  1041. package/node_modules/@slack/web-api/README.md +382 -0
  1042. package/node_modules/@slack/web-api/dist/methods.js +1636 -0
  1043. package/node_modules/@slack/web-api/dist/types/request/agents.js +3 -0
  1044. package/node_modules/@slack/web-api/dist/types/request/blocks.js +3 -0
  1045. package/node_modules/@slack/web-api/dist/types/response/AdminUsersGetExpirationResponse.js +11 -0
  1046. package/node_modules/@slack/web-api/dist/types/response/AgentsSessionsRenameResponse.js +11 -0
  1047. package/node_modules/@slack/web-api/dist/types/response/AgentsSessionsSetStatusResponse.js +11 -0
  1048. package/node_modules/@slack/web-api/dist/types/response/BlocksValidateResponse.js +11 -0
  1049. package/node_modules/@slack/web-api/dist/types/response/ChatAppendStreamResponse.js +11 -0
  1050. package/node_modules/@slack/web-api/dist/types/response/ChatStartStreamResponse.js +11 -0
  1051. package/node_modules/@slack/web-api/dist/types/response/ChatStopStreamResponse.js +48 -0
  1052. package/node_modules/@slack/web-api/dist/types/response/PinsListResponse.js +67 -0
  1053. package/node_modules/@slack/web-api/dist/types/response/SearchAllResponse.js +72 -0
  1054. package/node_modules/@slack/web-api/dist/types/response/SearchFilesResponse.js +48 -0
  1055. package/node_modules/@slack/web-api/dist/types/response/SlackListsAccessDeleteResponse.js +11 -0
  1056. package/node_modules/@slack/web-api/dist/types/response/SlackListsAccessSetResponse.js +11 -0
  1057. package/node_modules/@slack/web-api/dist/types/response/SlackListsCreateResponse.js +11 -0
  1058. package/node_modules/@slack/web-api/dist/types/response/SlackListsDownloadGetResponse.js +11 -0
  1059. package/node_modules/@slack/web-api/dist/types/response/SlackListsDownloadStartResponse.js +11 -0
  1060. package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsCreateResponse.js +11 -0
  1061. package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsDeleteMultipleResponse.js +11 -0
  1062. package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsDeleteResponse.js +11 -0
  1063. package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsInfoResponse.js +11 -0
  1064. package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsListResponse.js +11 -0
  1065. package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsUpdateResponse.js +11 -0
  1066. package/node_modules/@slack/web-api/dist/types/response/SlackListsUpdateResponse.js +11 -0
  1067. package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedAddResponse.js +11 -0
  1068. package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedListResponse.js +11 -0
  1069. package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedRemoveResponse.js +11 -0
  1070. package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedSetResponse.js +11 -0
  1071. package/node_modules/@slack/web-api/node_modules/@types/retry/LICENSE +21 -0
  1072. package/node_modules/@slack/web-api/node_modules/@types/retry/README.md +15 -0
  1073. package/node_modules/@slack/web-api/node_modules/@types/retry/package.json +30 -0
  1074. package/node_modules/@slack/web-api/package.json +71 -0
  1075. package/node_modules/@types/node/README.md +1 -1
  1076. package/node_modules/@types/node/package.json +3 -3
  1077. package/node_modules/balanced-match/LICENSE.md +23 -0
  1078. package/node_modules/balanced-match/README.md +57 -0
  1079. package/node_modules/balanced-match/dist/commonjs/index.js +59 -0
  1080. package/node_modules/balanced-match/dist/commonjs/package.json +3 -0
  1081. package/node_modules/balanced-match/dist/esm/index.js +54 -0
  1082. package/node_modules/balanced-match/dist/esm/package.json +3 -0
  1083. package/node_modules/balanced-match/package.json +68 -0
  1084. package/node_modules/brace-expansion/LICENSE +23 -0
  1085. package/node_modules/brace-expansion/README.md +105 -0
  1086. package/node_modules/brace-expansion/dist/commonjs/index.js +289 -0
  1087. package/node_modules/brace-expansion/dist/commonjs/package.json +3 -0
  1088. package/node_modules/brace-expansion/dist/esm/index.js +285 -0
  1089. package/node_modules/brace-expansion/dist/esm/package.json +3 -0
  1090. package/node_modules/brace-expansion/package.json +64 -0
  1091. package/node_modules/fast-uri/index.js +215 -47
  1092. package/node_modules/fast-uri/lib/schemes.js +9 -4
  1093. package/node_modules/fast-uri/lib/utils.js +396 -92
  1094. package/node_modules/fast-uri/package.json +1 -1
  1095. package/node_modules/fs-native-extensions/package.json +1 -1
  1096. package/node_modules/fs-native-extensions/prebuilds/android-arm/fs-native-extensions.bare +0 -0
  1097. package/node_modules/fs-native-extensions/prebuilds/android-arm64/fs-native-extensions.bare +0 -0
  1098. package/node_modules/fs-native-extensions/prebuilds/android-ia32/fs-native-extensions.bare +0 -0
  1099. package/node_modules/fs-native-extensions/prebuilds/android-x64/fs-native-extensions.bare +0 -0
  1100. package/node_modules/fs-native-extensions/prebuilds/darwin-arm64/fs-native-extensions.bare +0 -0
  1101. package/node_modules/fs-native-extensions/prebuilds/darwin-arm64/fs-native-extensions.node +0 -0
  1102. package/node_modules/fs-native-extensions/prebuilds/darwin-x64/fs-native-extensions.bare +0 -0
  1103. package/node_modules/fs-native-extensions/prebuilds/darwin-x64/fs-native-extensions.node +0 -0
  1104. package/node_modules/fs-native-extensions/prebuilds/ios-arm64/fs-native-extensions.bare +0 -0
  1105. package/node_modules/fs-native-extensions/prebuilds/ios-arm64-simulator/fs-native-extensions.bare +0 -0
  1106. package/node_modules/fs-native-extensions/prebuilds/ios-x64-simulator/fs-native-extensions.bare +0 -0
  1107. package/node_modules/fs-native-extensions/prebuilds/linux-arm64/fs-native-extensions.bare +0 -0
  1108. package/node_modules/fs-native-extensions/prebuilds/linux-x64/fs-native-extensions.bare +0 -0
  1109. package/node_modules/fs-native-extensions/prebuilds/win32-arm64/fs-native-extensions.bare +0 -0
  1110. package/node_modules/fs-native-extensions/prebuilds/win32-arm64/fs-native-extensions.node +0 -0
  1111. package/node_modules/fs-native-extensions/prebuilds/win32-x64/fs-native-extensions.bare +0 -0
  1112. package/node_modules/fs-native-extensions/prebuilds/win32-x64/fs-native-extensions.node +0 -0
  1113. package/node_modules/fs-native-extensions/src/win32.c +50 -11
  1114. package/node_modules/glob/LICENSE.md +63 -0
  1115. package/node_modules/glob/README.md +1203 -0
  1116. package/node_modules/glob/dist/commonjs/glob.js +248 -0
  1117. package/node_modules/glob/dist/commonjs/has-magic.js +27 -0
  1118. package/node_modules/glob/dist/commonjs/ignore.js +119 -0
  1119. package/node_modules/glob/dist/commonjs/index.js +68 -0
  1120. package/node_modules/glob/dist/commonjs/index.min.js +4 -0
  1121. package/node_modules/glob/dist/commonjs/package.json +3 -0
  1122. package/node_modules/glob/dist/commonjs/pattern.js +223 -0
  1123. package/node_modules/glob/dist/commonjs/processor.js +301 -0
  1124. package/node_modules/glob/dist/commonjs/walker.js +387 -0
  1125. package/node_modules/glob/dist/esm/glob.js +244 -0
  1126. package/node_modules/glob/dist/esm/has-magic.js +23 -0
  1127. package/node_modules/glob/dist/esm/ignore.js +115 -0
  1128. package/node_modules/glob/dist/esm/index.js +55 -0
  1129. package/node_modules/glob/dist/esm/index.min.js +4 -0
  1130. package/node_modules/glob/dist/esm/package.json +3 -0
  1131. package/node_modules/glob/dist/esm/pattern.js +219 -0
  1132. package/node_modules/glob/dist/esm/processor.js +294 -0
  1133. package/node_modules/glob/dist/esm/walker.js +381 -0
  1134. package/node_modules/glob/package.json +98 -0
  1135. package/node_modules/minimatch/LICENSE.md +55 -0
  1136. package/node_modules/minimatch/README.md +528 -0
  1137. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +14 -0
  1138. package/node_modules/minimatch/dist/commonjs/ast.js +845 -0
  1139. package/node_modules/minimatch/dist/commonjs/brace-expressions.js +150 -0
  1140. package/node_modules/minimatch/dist/commonjs/escape.js +30 -0
  1141. package/node_modules/minimatch/dist/commonjs/index.js +1127 -0
  1142. package/node_modules/minimatch/dist/commonjs/package.json +3 -0
  1143. package/node_modules/minimatch/dist/commonjs/unescape.js +38 -0
  1144. package/node_modules/minimatch/dist/esm/assert-valid-pattern.js +10 -0
  1145. package/node_modules/minimatch/dist/esm/ast.js +841 -0
  1146. package/node_modules/minimatch/dist/esm/brace-expressions.js +146 -0
  1147. package/node_modules/minimatch/dist/esm/escape.js +26 -0
  1148. package/node_modules/minimatch/dist/esm/index.js +1114 -0
  1149. package/node_modules/minimatch/dist/esm/package.json +3 -0
  1150. package/node_modules/minimatch/dist/esm/unescape.js +34 -0
  1151. package/node_modules/minimatch/package.json +73 -0
  1152. package/node_modules/minipass/LICENSE.md +55 -0
  1153. package/node_modules/minipass/README.md +825 -0
  1154. package/node_modules/minipass/dist/commonjs/index.js +1038 -0
  1155. package/node_modules/minipass/dist/commonjs/package.json +3 -0
  1156. package/node_modules/minipass/dist/esm/index.js +1020 -0
  1157. package/node_modules/minipass/dist/esm/package.json +3 -0
  1158. package/node_modules/minipass/package.json +77 -0
  1159. package/node_modules/path-scurry/LICENSE.md +55 -0
  1160. package/node_modules/path-scurry/README.md +636 -0
  1161. package/node_modules/path-scurry/dist/commonjs/index.js +2018 -0
  1162. package/node_modules/path-scurry/dist/commonjs/package.json +3 -0
  1163. package/node_modules/path-scurry/dist/esm/index.js +1983 -0
  1164. package/node_modules/path-scurry/dist/esm/package.json +3 -0
  1165. package/node_modules/path-scurry/node_modules/lru-cache/LICENSE.md +55 -0
  1166. package/node_modules/path-scurry/node_modules/lru-cache/README.md +469 -0
  1167. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.js +7 -0
  1168. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/index.js +1726 -0
  1169. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/index.min.js +2 -0
  1170. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/perf.js +10 -0
  1171. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.d.cts.map +1 -0
  1172. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +7 -0
  1173. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.js +1726 -0
  1174. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
  1175. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.js +9 -0
  1176. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/index.js +1726 -0
  1177. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/index.min.js +2 -0
  1178. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/perf.js +10 -0
  1179. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/package.json +3 -0
  1180. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/perf.js +10 -0
  1181. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.js +4 -0
  1182. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/index.js +1722 -0
  1183. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/index.min.js +2 -0
  1184. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/perf.js +7 -0
  1185. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.d.mts.map +1 -0
  1186. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/diagnostics-channel.js +19 -0
  1187. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.js +1722 -0
  1188. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.min.js +2 -0
  1189. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +6 -0
  1190. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/index.js +1722 -0
  1191. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/index.min.js +2 -0
  1192. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/perf.js +7 -0
  1193. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/package.json +3 -0
  1194. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/perf.js +7 -0
  1195. package/node_modules/path-scurry/node_modules/lru-cache/package.json +154 -0
  1196. package/node_modules/path-scurry/package.json +72 -0
  1197. package/node_modules/qs/.github/THREAT_MODEL.md +3 -3
  1198. package/node_modules/qs/CHANGELOG.md +15 -0
  1199. package/node_modules/qs/README.md +19 -1
  1200. package/node_modules/qs/dist/qs.js +21 -21
  1201. package/node_modules/qs/eslint.config.mjs +1 -1
  1202. package/node_modules/qs/lib/parse.js +3 -4
  1203. package/node_modules/qs/lib/stringify.js +23 -8
  1204. package/node_modules/qs/lib/utils.js +10 -3
  1205. package/node_modules/qs/package.json +4 -4
  1206. package/node_modules/run/README.md +109 -18
  1207. package/node_modules/run/THIRD_PARTY_NOTICES.md +11 -11
  1208. package/node_modules/run/dist/continuation-validation.js +116 -1
  1209. package/node_modules/run/dist/errors.js +12 -2
  1210. package/node_modules/run/dist/host-function-invocation.js +2 -1
  1211. package/node_modules/run/dist/run.js +30 -4
  1212. package/node_modules/run/dist/runtime/guest-serde-source.js +1 -1
  1213. package/node_modules/run/dist/runtime/guest-sources.js +214 -56
  1214. package/node_modules/run/dist/runtime/manager.js +575 -116
  1215. package/node_modules/run/dist/runtime/max-workers.js +8 -4
  1216. package/node_modules/run/dist/runtime/protocol-validation.js +20 -7
  1217. package/node_modules/run/dist/runtime/sync-bridge-protocol.js +135 -0
  1218. package/node_modules/run/dist/runtime/worker-source.js +1 -1
  1219. package/node_modules/run/dist/utils/options.js +7 -0
  1220. package/node_modules/run/dist/utils/promise-with-resolvers.js +13 -1
  1221. package/node_modules/run/dist/utils/serde.js +1 -7
  1222. package/node_modules/run/dist/utils/source-cache.js +83 -13
  1223. package/node_modules/run/package.json +6 -4
  1224. package/node_modules/socks/build/common/helpers.js +5 -6
  1225. package/node_modules/socks/build/common/util.js +2 -2
  1226. package/node_modules/socks/package.json +7 -7
  1227. package/node_modules/systeminformation/LICENSE +20 -0
  1228. package/node_modules/systeminformation/README.md +1251 -0
  1229. package/node_modules/systeminformation/lib/audio.js +335 -0
  1230. package/node_modules/systeminformation/lib/battery.js +334 -0
  1231. package/node_modules/systeminformation/lib/bluetooth.js +315 -0
  1232. package/node_modules/systeminformation/lib/bluetoothVendors.js +1138 -0
  1233. package/node_modules/systeminformation/lib/cli.js +100 -0
  1234. package/node_modules/systeminformation/lib/cpu.js +2285 -0
  1235. package/node_modules/systeminformation/lib/docker.js +791 -0
  1236. package/node_modules/systeminformation/lib/dockerSocket.js +117 -0
  1237. package/node_modules/systeminformation/lib/filesystem.js +1927 -0
  1238. package/node_modules/systeminformation/lib/graphics.js +1317 -0
  1239. package/node_modules/systeminformation/lib/index.js +520 -0
  1240. package/node_modules/systeminformation/lib/internet.js +265 -0
  1241. package/node_modules/systeminformation/lib/memory.js +622 -0
  1242. package/node_modules/systeminformation/lib/network.js +2008 -0
  1243. package/node_modules/systeminformation/lib/osinfo.js +1290 -0
  1244. package/node_modules/systeminformation/lib/printer.js +209 -0
  1245. package/node_modules/systeminformation/lib/processes.js +1496 -0
  1246. package/node_modules/systeminformation/lib/system.js +855 -0
  1247. package/node_modules/systeminformation/lib/usb.js +309 -0
  1248. package/node_modules/systeminformation/lib/users.js +412 -0
  1249. package/node_modules/systeminformation/lib/util.js +2833 -0
  1250. package/node_modules/systeminformation/lib/virtualbox.js +116 -0
  1251. package/node_modules/systeminformation/lib/wifi.js +839 -0
  1252. package/node_modules/systeminformation/package.json +102 -0
  1253. package/node_modules/undici/docs/docs/api/Client.md +4 -0
  1254. package/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +3 -2
  1255. package/node_modules/undici/docs/docs/api/EventSource.md +4 -0
  1256. package/node_modules/undici/docs/docs/api/Interceptors.md +7 -3
  1257. package/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +7 -1
  1258. package/node_modules/undici/lib/cache/memory-cache-store.js +2 -2
  1259. package/node_modules/undici/lib/core/symbols.js +2 -0
  1260. package/node_modules/undici/lib/dispatcher/agent.js +7 -2
  1261. package/node_modules/undici/lib/dispatcher/balanced-pool.js +7 -4
  1262. package/node_modules/undici/lib/dispatcher/client-h1.js +12 -4
  1263. package/node_modules/undici/lib/dispatcher/client-h2.js +43 -3
  1264. package/node_modules/undici/lib/dispatcher/client.js +3 -2
  1265. package/node_modules/undici/lib/dispatcher/dispatcher-base.js +13 -1
  1266. package/node_modules/undici/lib/dispatcher/dispatcher.js +15 -1
  1267. package/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +3 -0
  1268. package/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +10 -3
  1269. package/node_modules/undici/lib/dispatcher/proxy-agent.js +18 -1
  1270. package/node_modules/undici/lib/dispatcher/retry-agent.js +3 -0
  1271. package/node_modules/undici/lib/dispatcher/round-robin-pool.js +1 -1
  1272. package/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +91 -21
  1273. package/node_modules/undici/lib/handler/cache-handler.js +29 -5
  1274. package/node_modules/undici/lib/handler/decorator-handler.js +7 -1
  1275. package/node_modules/undici/lib/handler/deduplication-handler.js +12 -6
  1276. package/node_modules/undici/lib/handler/redirect-handler.js +21 -4
  1277. package/node_modules/undici/lib/handler/retry-handler.js +148 -30
  1278. package/node_modules/undici/lib/interceptor/cache.js +65 -12
  1279. package/node_modules/undici/lib/interceptor/decompress.js +115 -13
  1280. package/node_modules/undici/lib/interceptor/deduplicate.js +5 -4
  1281. package/node_modules/undici/lib/interceptor/dns.js +7 -0
  1282. package/node_modules/undici/lib/interceptor/dump.js +10 -23
  1283. package/node_modules/undici/lib/mock/mock-agent.js +13 -1
  1284. package/node_modules/undici/lib/mock/mock-utils.js +11 -10
  1285. package/node_modules/undici/lib/util/cache.js +45 -3
  1286. package/node_modules/undici/lib/web/cookies/parse.js +150 -147
  1287. package/node_modules/undici/lib/web/eventsource/eventsource-stream.js +28 -1
  1288. package/node_modules/undici/lib/web/eventsource/eventsource.js +13 -3
  1289. package/node_modules/undici/lib/web/fetch/index.js +6 -0
  1290. package/node_modules/undici/lib/web/fetch/request.js +2 -3
  1291. package/node_modules/undici/lib/web/fetch/util.js +6 -1
  1292. package/node_modules/undici/lib/web/webidl/index.js +3 -3
  1293. package/node_modules/undici/lib/web/websocket/connection.js +1 -1
  1294. package/node_modules/undici/lib/web/websocket/permessage-deflate.js +5 -0
  1295. package/node_modules/undici/lib/web/websocket/stream/websocketstream.js +8 -10
  1296. package/node_modules/undici/package.json +3 -3
  1297. package/node_modules/undici-types/package.json +1 -1
  1298. package/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +19 -18
  1299. package/node_modules/yaml/browser/dist/nodes/Alias.js +25 -23
  1300. package/node_modules/yaml/dist/compose/resolve-flow-scalar.js +19 -18
  1301. package/node_modules/yaml/dist/nodes/Alias.js +25 -23
  1302. package/node_modules/yaml/package.json +1 -1
  1303. package/node_modules/zod/README.md +29 -2
  1304. package/node_modules/zod/compile.cjs +96 -0
  1305. package/node_modules/zod/compile.js +52 -0
  1306. package/node_modules/zod/index.cjs +21 -2
  1307. package/node_modules/zod/index.js +5 -2
  1308. package/node_modules/zod/locales/index.cjs +19 -0
  1309. package/node_modules/zod/mini/index.cjs +19 -0
  1310. package/node_modules/zod/package.json +20 -8
  1311. package/node_modules/zod/v3/ZodError.cjs +41 -12
  1312. package/node_modules/zod/v3/ZodError.js +22 -12
  1313. package/node_modules/zod/v3/errors.cjs +19 -0
  1314. package/node_modules/zod/v3/external.cjs +19 -0
  1315. package/node_modules/zod/v3/helpers/enumUtil.cjs +19 -0
  1316. package/node_modules/zod/v3/helpers/errorUtil.cjs +20 -1
  1317. package/node_modules/zod/v3/helpers/errorUtil.js +1 -1
  1318. package/node_modules/zod/v3/helpers/parseUtil.cjs +19 -0
  1319. package/node_modules/zod/v3/helpers/partialUtil.cjs +19 -0
  1320. package/node_modules/zod/v3/helpers/typeAliases.cjs +19 -0
  1321. package/node_modules/zod/v3/helpers/util.cjs +19 -0
  1322. package/node_modules/zod/v3/index.cjs +19 -0
  1323. package/node_modules/zod/v3/standard-schema.cjs +19 -0
  1324. package/node_modules/zod/v3/types.cjs +26 -5
  1325. package/node_modules/zod/v3/types.js +7 -5
  1326. package/node_modules/zod/v4/classic/checks.cjs +21 -1
  1327. package/node_modules/zod/v4/classic/checks.js +1 -1
  1328. package/node_modules/zod/v4/classic/coerce.cjs +19 -0
  1329. package/node_modules/zod/v4/classic/compat.cjs +19 -0
  1330. package/node_modules/zod/v4/classic/deep-partial.cjs +58 -0
  1331. package/node_modules/zod/v4/classic/deep-partial.js +13 -0
  1332. package/node_modules/zod/v4/classic/errors.cjs +62 -34
  1333. package/node_modules/zod/v4/classic/errors.js +43 -34
  1334. package/node_modules/zod/v4/classic/external.cjs +51 -27
  1335. package/node_modules/zod/v4/classic/external.js +5 -8
  1336. package/node_modules/zod/v4/classic/from-json-schema.cjs +376 -75
  1337. package/node_modules/zod/v4/classic/from-json-schema.js +357 -75
  1338. package/node_modules/zod/v4/classic/in-out.cjs +82 -0
  1339. package/node_modules/zod/v4/classic/in-out.js +36 -0
  1340. package/node_modules/zod/v4/classic/index.cjs +21 -2
  1341. package/node_modules/zod/v4/classic/index.js +2 -2
  1342. package/node_modules/zod/v4/classic/iso.cjs +30 -22
  1343. package/node_modules/zod/v4/classic/iso.js +2 -17
  1344. package/node_modules/zod/v4/classic/parse.cjs +23 -1
  1345. package/node_modules/zod/v4/classic/parse.js +1 -0
  1346. package/node_modules/zod/v4/classic/schemas.cjs +591 -426
  1347. package/node_modules/zod/v4/classic/schemas.js +564 -424
  1348. package/node_modules/zod/v4/core/api.cjs +66 -24
  1349. package/node_modules/zod/v4/core/api.js +44 -24
  1350. package/node_modules/zod/v4/core/checks.cjs +88 -128
  1351. package/node_modules/zod/v4/core/checks.js +68 -127
  1352. package/node_modules/zod/v4/core/compile.cjs +1908 -0
  1353. package/node_modules/zod/v4/core/compile.js +1858 -0
  1354. package/node_modules/zod/v4/core/core.cjs +101 -19
  1355. package/node_modules/zod/v4/core/core.js +83 -20
  1356. package/node_modules/zod/v4/core/doc.cjs +31 -9
  1357. package/node_modules/zod/v4/core/doc.js +12 -9
  1358. package/node_modules/zod/v4/core/errors.cjs +126 -25
  1359. package/node_modules/zod/v4/core/errors.js +107 -25
  1360. package/node_modules/zod/v4/core/index.cjs +24 -1
  1361. package/node_modules/zod/v4/core/index.js +3 -0
  1362. package/node_modules/zod/v4/core/json-schema-generator.cjs +24 -1
  1363. package/node_modules/zod/v4/core/json-schema-generator.js +6 -2
  1364. package/node_modules/zod/v4/core/json-schema-processors.cjs +441 -156
  1365. package/node_modules/zod/v4/core/json-schema-processors.js +400 -158
  1366. package/node_modules/zod/v4/core/json-schema.cjs +19 -0
  1367. package/node_modules/zod/v4/core/memoizer.cjs +356 -0
  1368. package/node_modules/zod/v4/core/memoizer.js +307 -0
  1369. package/node_modules/zod/v4/core/parse.cjs +148 -46
  1370. package/node_modules/zod/v4/core/parse.js +127 -45
  1371. package/node_modules/zod/v4/core/regexes.cjs +54 -17
  1372. package/node_modules/zod/v4/core/regexes.js +32 -15
  1373. package/node_modules/zod/v4/core/registries.cjs +19 -0
  1374. package/node_modules/zod/v4/core/registries.js +2 -2
  1375. package/node_modules/zod/v4/core/schemas.cjs +785 -386
  1376. package/node_modules/zod/v4/core/schemas.js +753 -386
  1377. package/node_modules/zod/v4/core/standard-schema.cjs +19 -0
  1378. package/node_modules/zod/v4/core/to-json-schema.cjs +269 -45
  1379. package/node_modules/zod/v4/core/to-json-schema.js +247 -44
  1380. package/node_modules/zod/v4/core/util.cjs +372 -157
  1381. package/node_modules/zod/v4/core/util.js +341 -156
  1382. package/node_modules/zod/v4/core/versions.cjs +21 -2
  1383. package/node_modules/zod/v4/core/versions.js +2 -2
  1384. package/node_modules/zod/v4/core/visit.cjs +214 -0
  1385. package/node_modules/zod/v4/core/visit.js +169 -0
  1386. package/node_modules/zod/v4/index.cjs +34 -5
  1387. package/node_modules/zod/v4/index.js +3 -2
  1388. package/node_modules/zod/v4/locales/ar.cjs +5 -0
  1389. package/node_modules/zod/v4/locales/ar.js +5 -0
  1390. package/node_modules/zod/v4/locales/az.cjs +5 -0
  1391. package/node_modules/zod/v4/locales/az.js +5 -0
  1392. package/node_modules/zod/v4/locales/be.cjs +12 -0
  1393. package/node_modules/zod/v4/locales/be.js +12 -0
  1394. package/node_modules/zod/v4/locales/bg.cjs +5 -0
  1395. package/node_modules/zod/v4/locales/bg.js +5 -0
  1396. package/node_modules/zod/v4/locales/bn.cjs +140 -0
  1397. package/node_modules/zod/v4/locales/bn.js +113 -0
  1398. package/node_modules/zod/v4/locales/ca.cjs +5 -0
  1399. package/node_modules/zod/v4/locales/ca.js +5 -0
  1400. package/node_modules/zod/v4/locales/ckb.cjs +160 -0
  1401. package/node_modules/zod/v4/locales/ckb.js +133 -0
  1402. package/node_modules/zod/v4/locales/cs.cjs +5 -0
  1403. package/node_modules/zod/v4/locales/cs.js +5 -0
  1404. package/node_modules/zod/v4/locales/da.cjs +7 -2
  1405. package/node_modules/zod/v4/locales/da.js +7 -2
  1406. package/node_modules/zod/v4/locales/de.cjs +5 -0
  1407. package/node_modules/zod/v4/locales/de.js +5 -0
  1408. package/node_modules/zod/v4/locales/el.cjs +3 -0
  1409. package/node_modules/zod/v4/locales/el.js +3 -0
  1410. package/node_modules/zod/v4/locales/en.cjs +16 -4
  1411. package/node_modules/zod/v4/locales/en.js +16 -4
  1412. package/node_modules/zod/v4/locales/eo.cjs +5 -0
  1413. package/node_modules/zod/v4/locales/eo.js +5 -0
  1414. package/node_modules/zod/v4/locales/es.cjs +4 -0
  1415. package/node_modules/zod/v4/locales/es.js +4 -0
  1416. package/node_modules/zod/v4/locales/fa.cjs +5 -0
  1417. package/node_modules/zod/v4/locales/fa.js +5 -0
  1418. package/node_modules/zod/v4/locales/fi.cjs +5 -0
  1419. package/node_modules/zod/v4/locales/fi.js +5 -0
  1420. package/node_modules/zod/v4/locales/fr-CA.cjs +5 -0
  1421. package/node_modules/zod/v4/locales/fr-CA.js +5 -0
  1422. package/node_modules/zod/v4/locales/fr.cjs +18 -14
  1423. package/node_modules/zod/v4/locales/fr.js +18 -14
  1424. package/node_modules/zod/v4/locales/gu.cjs +140 -0
  1425. package/node_modules/zod/v4/locales/gu.js +113 -0
  1426. package/node_modules/zod/v4/locales/he.cjs +7 -0
  1427. package/node_modules/zod/v4/locales/he.js +7 -0
  1428. package/node_modules/zod/v4/locales/hi.cjs +138 -0
  1429. package/node_modules/zod/v4/locales/hi.js +111 -0
  1430. package/node_modules/zod/v4/locales/hr.cjs +4 -0
  1431. package/node_modules/zod/v4/locales/hr.js +4 -0
  1432. package/node_modules/zod/v4/locales/hu.cjs +5 -0
  1433. package/node_modules/zod/v4/locales/hu.js +5 -0
  1434. package/node_modules/zod/v4/locales/hy.cjs +11 -0
  1435. package/node_modules/zod/v4/locales/hy.js +11 -0
  1436. package/node_modules/zod/v4/locales/id.cjs +5 -0
  1437. package/node_modules/zod/v4/locales/id.js +5 -0
  1438. package/node_modules/zod/v4/locales/index.cjs +43 -2
  1439. package/node_modules/zod/v4/locales/index.js +11 -0
  1440. package/node_modules/zod/v4/locales/is.cjs +5 -0
  1441. package/node_modules/zod/v4/locales/is.js +5 -0
  1442. package/node_modules/zod/v4/locales/it.cjs +5 -0
  1443. package/node_modules/zod/v4/locales/it.js +5 -0
  1444. package/node_modules/zod/v4/locales/ja.cjs +5 -0
  1445. package/node_modules/zod/v4/locales/ja.js +5 -0
  1446. package/node_modules/zod/v4/locales/ka.cjs +5 -0
  1447. package/node_modules/zod/v4/locales/ka.js +5 -0
  1448. package/node_modules/zod/v4/locales/km.cjs +5 -0
  1449. package/node_modules/zod/v4/locales/km.js +5 -0
  1450. package/node_modules/zod/v4/locales/kn.cjs +143 -0
  1451. package/node_modules/zod/v4/locales/kn.js +116 -0
  1452. package/node_modules/zod/v4/locales/ko.cjs +5 -0
  1453. package/node_modules/zod/v4/locales/ko.js +5 -0
  1454. package/node_modules/zod/v4/locales/lt.cjs +4 -0
  1455. package/node_modules/zod/v4/locales/lt.js +4 -0
  1456. package/node_modules/zod/v4/locales/mk.cjs +5 -0
  1457. package/node_modules/zod/v4/locales/mk.js +5 -0
  1458. package/node_modules/zod/v4/locales/ms.cjs +5 -0
  1459. package/node_modules/zod/v4/locales/ms.js +5 -0
  1460. package/node_modules/zod/v4/locales/ne.cjs +138 -0
  1461. package/node_modules/zod/v4/locales/ne.js +111 -0
  1462. package/node_modules/zod/v4/locales/nl.cjs +5 -0
  1463. package/node_modules/zod/v4/locales/nl.js +5 -0
  1464. package/node_modules/zod/v4/locales/nn.cjs +140 -0
  1465. package/node_modules/zod/v4/locales/nn.js +113 -0
  1466. package/node_modules/zod/v4/locales/no.cjs +7 -2
  1467. package/node_modules/zod/v4/locales/no.js +7 -2
  1468. package/node_modules/zod/v4/locales/ota.cjs +5 -0
  1469. package/node_modules/zod/v4/locales/ota.js +5 -0
  1470. package/node_modules/zod/v4/locales/pl.cjs +5 -0
  1471. package/node_modules/zod/v4/locales/pl.js +5 -0
  1472. package/node_modules/zod/v4/locales/ps.cjs +5 -0
  1473. package/node_modules/zod/v4/locales/ps.js +5 -0
  1474. package/node_modules/zod/v4/locales/pt-BR.cjs +170 -0
  1475. package/node_modules/zod/v4/locales/pt-BR.js +143 -0
  1476. package/node_modules/zod/v4/locales/pt.cjs +89 -55
  1477. package/node_modules/zod/v4/locales/pt.js +89 -55
  1478. package/node_modules/zod/v4/locales/ro.cjs +3 -0
  1479. package/node_modules/zod/v4/locales/ro.js +3 -0
  1480. package/node_modules/zod/v4/locales/ru.cjs +12 -0
  1481. package/node_modules/zod/v4/locales/ru.js +12 -0
  1482. package/node_modules/zod/v4/locales/sk.cjs +143 -0
  1483. package/node_modules/zod/v4/locales/sk.js +116 -0
  1484. package/node_modules/zod/v4/locales/sl.cjs +5 -0
  1485. package/node_modules/zod/v4/locales/sl.js +5 -0
  1486. package/node_modules/zod/v4/locales/sv.cjs +7 -2
  1487. package/node_modules/zod/v4/locales/sv.js +7 -2
  1488. package/node_modules/zod/v4/locales/ta.cjs +5 -0
  1489. package/node_modules/zod/v4/locales/ta.js +5 -0
  1490. package/node_modules/zod/v4/locales/tg.cjs +144 -0
  1491. package/node_modules/zod/v4/locales/tg.js +117 -0
  1492. package/node_modules/zod/v4/locales/th.cjs +5 -0
  1493. package/node_modules/zod/v4/locales/th.js +5 -0
  1494. package/node_modules/zod/v4/locales/tk.cjs +134 -0
  1495. package/node_modules/zod/v4/locales/tk.js +107 -0
  1496. package/node_modules/zod/v4/locales/tr.cjs +5 -0
  1497. package/node_modules/zod/v4/locales/tr.js +5 -0
  1498. package/node_modules/zod/v4/locales/uk.cjs +5 -0
  1499. package/node_modules/zod/v4/locales/uk.js +5 -0
  1500. package/node_modules/zod/v4/locales/ur.cjs +5 -0
  1501. package/node_modules/zod/v4/locales/ur.js +5 -0
  1502. package/node_modules/zod/v4/locales/uz.cjs +3 -0
  1503. package/node_modules/zod/v4/locales/uz.js +3 -0
  1504. package/node_modules/zod/v4/locales/vi.cjs +5 -0
  1505. package/node_modules/zod/v4/locales/vi.js +5 -0
  1506. package/node_modules/zod/v4/locales/yo.cjs +5 -0
  1507. package/node_modules/zod/v4/locales/yo.js +5 -0
  1508. package/node_modules/zod/v4/locales/zh-CN.cjs +5 -0
  1509. package/node_modules/zod/v4/locales/zh-CN.js +5 -0
  1510. package/node_modules/zod/v4/locales/zh-TW.cjs +5 -0
  1511. package/node_modules/zod/v4/locales/zh-TW.js +5 -0
  1512. package/node_modules/zod/v4/mini/checks.cjs +21 -1
  1513. package/node_modules/zod/v4/mini/checks.js +1 -1
  1514. package/node_modules/zod/v4/mini/coerce.cjs +19 -0
  1515. package/node_modules/zod/v4/mini/deep-partial.cjs +58 -0
  1516. package/node_modules/zod/v4/mini/deep-partial.js +13 -0
  1517. package/node_modules/zod/v4/mini/external.cjs +33 -1
  1518. package/node_modules/zod/v4/mini/external.js +3 -1
  1519. package/node_modules/zod/v4/mini/in-out.cjs +82 -0
  1520. package/node_modules/zod/v4/mini/in-out.js +36 -0
  1521. package/node_modules/zod/v4/mini/index.cjs +19 -0
  1522. package/node_modules/zod/v4/mini/iso.cjs +19 -0
  1523. package/node_modules/zod/v4/mini/parse.cjs +22 -1
  1524. package/node_modules/zod/v4/mini/parse.js +1 -1
  1525. package/node_modules/zod/v4/mini/schemas.cjs +117 -53
  1526. package/node_modules/zod/v4/mini/schemas.js +92 -51
  1527. package/node_modules/zod/v4-mini/index.cjs +19 -0
  1528. package/package.json +3 -4
  1529. package/node_modules/@ai-sdk/code-mode/dist/run-code-mode.js +0 -549
  1530. package/node_modules/@ai-sdk/code-mode/package.json +0 -78
  1531. package/node_modules/@ai-sdk/gateway/CHANGELOG.md +0 -3067
  1532. package/node_modules/@ai-sdk/gateway/dist/index.js +0 -3208
  1533. package/node_modules/@ai-sdk/gateway/docs/00-ai-gateway.mdx +0 -1297
  1534. package/node_modules/@ai-sdk/gateway/package.json +0 -80
  1535. package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider-utils/CHANGELOG.md +0 -2444
  1536. package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider-utils/README.md +0 -1
  1537. package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider-utils/dist/index.js +0 -4295
  1538. package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider-utils/package.json +0 -82
  1539. package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider-utils/src/to-json-schema/zod3-to-json-schema/LICENSE +0 -16
  1540. 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
  1541. package/node_modules/@ai-sdk/open-responses/node_modules/undici/LICENSE +0 -21
  1542. package/node_modules/@ai-sdk/open-responses/node_modules/undici/README.md +0 -741
  1543. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Agent.md +0 -84
  1544. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/BalancedPool.md +0 -99
  1545. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/CacheStorage.md +0 -30
  1546. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/CacheStore.md +0 -164
  1547. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Client.md +0 -288
  1548. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/ClientStats.md +0 -27
  1549. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Connector.md +0 -115
  1550. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/ContentType.md +0 -57
  1551. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Cookies.md +0 -128
  1552. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Debug.md +0 -62
  1553. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +0 -315
  1554. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Dispatcher.md +0 -1392
  1555. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +0 -159
  1556. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Errors.md +0 -49
  1557. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/EventSource.md +0 -45
  1558. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Fetch.md +0 -60
  1559. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/GlobalInstallation.md +0 -139
  1560. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/H2CClient.md +0 -263
  1561. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/MockAgent.md +0 -603
  1562. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/MockCallHistory.md +0 -197
  1563. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/MockCallHistoryLog.md +0 -43
  1564. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/MockClient.md +0 -81
  1565. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/MockErrors.md +0 -12
  1566. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/MockPool.md +0 -555
  1567. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Pool.md +0 -84
  1568. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/PoolStats.md +0 -35
  1569. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/ProxyAgent.md +0 -229
  1570. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/RedirectHandler.md +0 -93
  1571. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/RetryAgent.md +0 -50
  1572. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/RetryHandler.md +0 -118
  1573. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/RoundRobinPool.md +0 -145
  1574. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/SnapshotAgent.md +0 -616
  1575. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +0 -275
  1576. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Util.md +0 -25
  1577. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/WebSocket.md +0 -141
  1578. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/api-lifecycle.md +0 -91
  1579. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/best-practices/client-certificate.md +0 -64
  1580. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/best-practices/crawling.md +0 -58
  1581. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/best-practices/mocking-request.md +0 -190
  1582. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/best-practices/proxy.md +0 -127
  1583. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/best-practices/undici-vs-builtin-fetch.md +0 -224
  1584. package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/best-practices/writing-tests.md +0 -63
  1585. package/node_modules/@ai-sdk/open-responses/node_modules/undici/index-fetch.js +0 -65
  1586. package/node_modules/@ai-sdk/open-responses/node_modules/undici/index.js +0 -234
  1587. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/abort-signal.js +0 -59
  1588. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/api-connect.js +0 -110
  1589. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/api-pipeline.js +0 -252
  1590. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/api-request.js +0 -214
  1591. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/api-stream.js +0 -209
  1592. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/api-upgrade.js +0 -111
  1593. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/index.js +0 -7
  1594. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/readable.js +0 -580
  1595. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/cache/memory-cache-store.js +0 -279
  1596. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/cache/sqlite-cache-store.js +0 -467
  1597. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/connect.js +0 -153
  1598. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/constants.js +0 -143
  1599. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/diagnostics.js +0 -227
  1600. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/errors.js +0 -477
  1601. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/request.js +0 -464
  1602. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/socks5-client.js +0 -422
  1603. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/socks5-utils.js +0 -212
  1604. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/symbols.js +0 -75
  1605. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/tree.js +0 -160
  1606. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/util.js +0 -992
  1607. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/agent.js +0 -158
  1608. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/balanced-pool.js +0 -219
  1609. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/client-h1.js +0 -1731
  1610. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/client-h2.js +0 -995
  1611. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/client.js +0 -664
  1612. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/dispatcher-base.js +0 -184
  1613. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/dispatcher.js +0 -48
  1614. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +0 -146
  1615. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/fixed-queue.js +0 -135
  1616. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/h2c-client.js +0 -51
  1617. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/pool-base.js +0 -214
  1618. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/pool.js +0 -118
  1619. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/proxy-agent.js +0 -319
  1620. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/retry-agent.js +0 -35
  1621. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/round-robin-pool.js +0 -137
  1622. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +0 -260
  1623. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/encoding/index.js +0 -33
  1624. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/global.js +0 -59
  1625. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/cache-handler.js +0 -760
  1626. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/cache-revalidation-handler.js +0 -124
  1627. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/decorator-handler.js +0 -67
  1628. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/deduplication-handler.js +0 -460
  1629. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/redirect-handler.js +0 -238
  1630. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/retry-handler.js +0 -418
  1631. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/unwrap-handler.js +0 -106
  1632. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/wrap-handler.js +0 -105
  1633. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/cache.js +0 -602
  1634. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/decompress.js +0 -259
  1635. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/deduplicate.js +0 -117
  1636. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/dns.js +0 -571
  1637. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/dump.js +0 -112
  1638. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/redirect.js +0 -21
  1639. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/response-error.js +0 -95
  1640. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/retry.js +0 -19
  1641. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/llhttp/.gitkeep +0 -0
  1642. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/llhttp/constants.js +0 -531
  1643. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/llhttp/llhttp-wasm.js +0 -15
  1644. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +0 -15
  1645. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/llhttp/utils.js +0 -12
  1646. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-agent.js +0 -232
  1647. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-call-history.js +0 -248
  1648. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-client.js +0 -68
  1649. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-errors.js +0 -29
  1650. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-interceptor.js +0 -209
  1651. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-pool.js +0 -68
  1652. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-symbols.js +0 -32
  1653. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-utils.js +0 -486
  1654. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/pending-interceptors-formatter.js +0 -43
  1655. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/snapshot-agent.js +0 -353
  1656. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/snapshot-recorder.js +0 -588
  1657. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/snapshot-utils.js +0 -158
  1658. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/util/cache.js +0 -676
  1659. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/util/date.js +0 -670
  1660. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/util/promise.js +0 -28
  1661. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/util/runtime-features.js +0 -124
  1662. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/util/stats.js +0 -32
  1663. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/util/timers.js +0 -425
  1664. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/cache/cache.js +0 -864
  1665. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/cache/cachestorage.js +0 -152
  1666. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/cache/util.js +0 -45
  1667. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/cookies/constants.js +0 -12
  1668. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/cookies/index.js +0 -199
  1669. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/cookies/parse.js +0 -314
  1670. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/cookies/util.js +0 -352
  1671. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/eventsource/eventsource-stream.js +0 -399
  1672. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/eventsource/eventsource.js +0 -501
  1673. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/eventsource/util.js +0 -29
  1674. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/LICENSE +0 -21
  1675. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/body.js +0 -509
  1676. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/constants.js +0 -131
  1677. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/data-url.js +0 -596
  1678. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/formdata-parser.js +0 -586
  1679. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/formdata.js +0 -259
  1680. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/global.js +0 -40
  1681. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/headers.js +0 -719
  1682. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/index.js +0 -2413
  1683. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/request.js +0 -1115
  1684. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/response.js +0 -641
  1685. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/util.js +0 -1522
  1686. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/infra/index.js +0 -229
  1687. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/subresource-integrity/Readme.md +0 -9
  1688. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +0 -307
  1689. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/webidl/index.js +0 -1006
  1690. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/connection.js +0 -329
  1691. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/constants.js +0 -126
  1692. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/events.js +0 -331
  1693. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/frame.js +0 -133
  1694. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/permessage-deflate.js +0 -100
  1695. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/receiver.js +0 -507
  1696. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/sender.js +0 -109
  1697. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/stream/websocketerror.js +0 -104
  1698. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/stream/websocketstream.js +0 -498
  1699. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/util.js +0 -347
  1700. package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/websocket.js +0 -758
  1701. package/node_modules/@ai-sdk/open-responses/node_modules/undici/package.json +0 -152
  1702. package/node_modules/@ai-sdk/open-responses/node_modules/undici/scripts/strip-comments.js +0 -10
  1703. package/node_modules/@ai-sdk/open-responses/node_modules/undici/types/README.md +0 -6
  1704. package/node_modules/@ai-sdk/provider/CHANGELOG.md +0 -1218
  1705. package/node_modules/@ai-sdk/provider/package.json +0 -63
  1706. package/node_modules/@formatjs/icu-messageformat-parser/index.js +0 -2173
  1707. package/node_modules/@formatjs/icu-messageformat-parser/manipulator.js +0 -207
  1708. package/node_modules/@formatjs/icu-messageformat-parser/no-parser.js +0 -160
  1709. package/node_modules/@formatjs/icu-messageformat-parser/package.json +0 -21
  1710. package/node_modules/@formatjs/icu-messageformat-parser/printer.js +0 -224
  1711. package/node_modules/@maka/core/dist/foreign-session.js +0 -596
  1712. package/node_modules/@maka/core/dist/task-ledger.js +0 -797
  1713. package/node_modules/@maka/eval/dist/maka-runtime-policy.js +0 -42
  1714. package/node_modules/@maka/runtime/dist/active-tool-result-prune.js +0 -334
  1715. package/node_modules/@maka/runtime/dist/active-tool-result-working-set.js +0 -218
  1716. package/node_modules/@maka/runtime/dist/archive-read-tool.js +0 -92
  1717. package/node_modules/@maka/runtime/dist/history-tools.js +0 -429
  1718. package/node_modules/@maka/runtime/dist/provider-runtime-policy.js +0 -43
  1719. package/node_modules/@maka/runtime/dist/sandbox/diagnostics.js +0 -285
  1720. package/node_modules/@maka/runtime/dist/system-prompt/sandbox-context-prompt.js +0 -77
  1721. package/node_modules/@maka/runtime/dist/system-prompt/session-environment-prompt.js +0 -47
  1722. package/node_modules/@maka/runtime/dist/task-ledger-tools.js +0 -244
  1723. package/node_modules/@maka/runtime/dist/test-helpers.js +0 -61
  1724. package/node_modules/@maka/runtime/node_modules/@slack/types/dist/events/index.js +0 -43
  1725. package/node_modules/@maka/runtime/node_modules/@slack/types/package.json +0 -47
  1726. package/node_modules/@maka/runtime/node_modules/@slack/web-api/README.md +0 -390
  1727. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/methods.js +0 -1610
  1728. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/ChatAppendStreamResponse.js +0 -3
  1729. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/ChatStartStreamResponse.js +0 -3
  1730. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/ChatStopStreamResponse.js +0 -3
  1731. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/PinsListResponse.js +0 -37
  1732. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SearchAllResponse.js +0 -82
  1733. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SearchFilesResponse.js +0 -63
  1734. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsAccessDeleteResponse.js +0 -3
  1735. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsAccessSetResponse.js +0 -3
  1736. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsCreateResponse.js +0 -3
  1737. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsDownloadGetResponse.js +0 -3
  1738. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsDownloadStartResponse.js +0 -3
  1739. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsItemsCreateResponse.js +0 -3
  1740. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsItemsDeleteMultipleResponse.js +0 -3
  1741. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsItemsDeleteResponse.js +0 -3
  1742. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsItemsInfoResponse.js +0 -3
  1743. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsItemsListResponse.js +0 -3
  1744. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsItemsUpdateResponse.js +0 -3
  1745. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsUpdateResponse.js +0 -3
  1746. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedAddResponse.js +0 -3
  1747. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedListResponse.js +0 -3
  1748. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedRemoveResponse.js +0 -3
  1749. package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedSetResponse.js +0 -3
  1750. package/node_modules/@maka/runtime/node_modules/@slack/web-api/package.json +0 -71
  1751. package/node_modules/@maka/runtime-host/dist/protocol/task-ledger.js +0 -321
  1752. package/node_modules/@maka/runtime-host/dist/server/task-ledger-coordinator.js +0 -154
  1753. package/node_modules/@maka/storage/dist/artifact-storage-layout.js +0 -26
  1754. package/node_modules/@maka/storage/dist/foreign-session-store.js +0 -641
  1755. package/node_modules/@maka/storage/dist/provider-request-capture-artifact.js +0 -31
  1756. package/node_modules/@maka/storage/dist/task-ledger-authority.js +0 -121
  1757. package/node_modules/@maka/storage/dist/task-ledger-store-internal.js +0 -32
  1758. package/node_modules/@maka/storage/dist/task-ledger-store.js +0 -663
  1759. package/node_modules/ai/CHANGELOG.md +0 -9971
  1760. package/node_modules/ai/dist/index.js +0 -18513
  1761. package/node_modules/ai/dist/internal/index.js +0 -3680
  1762. package/node_modules/ai/docs/02-foundations/02-providers-and-models.mdx +0 -179
  1763. package/node_modules/ai/docs/03-agents/04-loop-control.mdx +0 -515
  1764. package/node_modules/ai/docs/03-agents/06-policy-tool-approvals.mdx +0 -412
  1765. package/node_modules/ai/docs/03-agents/06-tool-approvals.mdx +0 -326
  1766. package/node_modules/ai/docs/03-agents/07-workflow-agent.mdx +0 -718
  1767. package/node_modules/ai/docs/03-ai-sdk-core/10-generating-structured-data.mdx +0 -513
  1768. package/node_modules/ai/docs/03-ai-sdk-core/15-tools-and-tool-calling.mdx +0 -1509
  1769. package/node_modules/ai/docs/03-ai-sdk-core/16-mcp-tools.mdx +0 -617
  1770. package/node_modules/ai/docs/03-ai-sdk-core/35-image-generation.mdx +0 -344
  1771. package/node_modules/ai/docs/03-ai-sdk-core/36-transcription.mdx +0 -332
  1772. package/node_modules/ai/docs/03-ai-sdk-core/37-speech.mdx +0 -180
  1773. package/node_modules/ai/docs/03-ai-sdk-core/39-file-uploads.mdx +0 -155
  1774. package/node_modules/ai/docs/03-ai-sdk-core/50-error-handling.mdx +0 -149
  1775. package/node_modules/ai/docs/03-ai-sdk-core/60-telemetry.mdx +0 -830
  1776. package/node_modules/ai/docs/03-ai-sdk-core/index.mdx +0 -132
  1777. package/node_modules/ai/docs/03-ai-sdk-harnesses/02-harness-agent.mdx +0 -495
  1778. package/node_modules/ai/docs/03-ai-sdk-harnesses/04-skills.mdx +0 -65
  1779. package/node_modules/ai/docs/03-ai-sdk-harnesses/05-harness-adapters.mdx +0 -45
  1780. package/node_modules/ai/docs/04-ai-sdk-ui/03-chatbot-tool-usage.mdx +0 -798
  1781. package/node_modules/ai/docs/04-ai-sdk-ui/20-streaming-data.mdx +0 -401
  1782. package/node_modules/ai/docs/04-ai-sdk-ui/21-transport.mdx +0 -212
  1783. package/node_modules/ai/docs/04-ai-sdk-ui/50-stream-protocol.mdx +0 -578
  1784. package/node_modules/ai/docs/06-advanced/04-caching.mdx +0 -175
  1785. package/node_modules/ai/docs/06-advanced/11-secure-url-fetching.mdx +0 -111
  1786. package/node_modules/ai/docs/07-reference/01-ai-sdk-core/01-generate-text.mdx +0 -3253
  1787. package/node_modules/ai/docs/07-reference/01-ai-sdk-core/02-stream-text.mdx +0 -4261
  1788. package/node_modules/ai/docs/07-reference/01-ai-sdk-core/05-embed.mdx +0 -304
  1789. package/node_modules/ai/docs/07-reference/01-ai-sdk-core/06-embed-many.mdx +0 -302
  1790. package/node_modules/ai/docs/07-reference/01-ai-sdk-core/06-rerank.mdx +0 -317
  1791. package/node_modules/ai/docs/07-reference/01-ai-sdk-core/10-generate-image.mdx +0 -252
  1792. package/node_modules/ai/docs/07-reference/01-ai-sdk-core/14-upload-file.mdx +0 -92
  1793. package/node_modules/ai/docs/07-reference/01-ai-sdk-core/16-tool-loop-agent.mdx +0 -1102
  1794. package/node_modules/ai/docs/07-reference/01-ai-sdk-core/28-output.mdx +0 -342
  1795. package/node_modules/ai/docs/07-reference/01-ai-sdk-core/31-ui-message.mdx +0 -268
  1796. package/node_modules/ai/docs/07-reference/01-ai-sdk-core/80-smooth-stream.mdx +0 -145
  1797. package/node_modules/ai/docs/07-reference/01-ai-sdk-core/index.mdx +0 -225
  1798. package/node_modules/ai/docs/07-reference/02-ai-sdk-ui/01-use-chat.mdx +0 -493
  1799. package/node_modules/ai/docs/07-reference/02-ai-sdk-ui/31-convert-to-model-messages.mdx +0 -256
  1800. package/node_modules/ai/docs/07-reference/02-ai-sdk-ui/40-create-ui-message-stream.mdx +0 -166
  1801. package/node_modules/ai/docs/07-reference/02-ai-sdk-ui/41-create-ui-message-stream-response.mdx +0 -120
  1802. package/node_modules/ai/docs/07-reference/04-ai-sdk-workflow/01-workflow-agent.mdx +0 -954
  1803. package/node_modules/ai/docs/07-reference/04-ai-sdk-workflow/02-workflow-chat-transport.mdx +0 -347
  1804. package/node_modules/ai/docs/07-reference/04-ai-sdk-workflow/index.mdx +0 -26
  1805. package/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-invalid-argument-error.mdx +0 -26
  1806. package/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-no-image-generated-error.mdx +0 -36
  1807. package/node_modules/ai/docs/07-reference/05-ai-sdk-errors/index.mdx +0 -41
  1808. package/node_modules/ai/package.json +0 -117
  1809. package/node_modules/intl-messageformat/intl-messageformat.iife.js +0 -2807
  1810. package/node_modules/intl-messageformat/package.json +0 -40
  1811. package/node_modules/socks/.eslintrc.cjs +0 -11
  1812. package/packages/eval/dist/attempt-store.js +0 -138
  1813. package/packages/eval/dist/cli.js +0 -119
  1814. package/packages/eval/dist/experiment-directory.js +0 -59
  1815. package/packages/eval/dist/experiment.js +0 -49
  1816. package/packages/eval/dist/external-subject.js +0 -488
  1817. package/packages/eval/dist/harbor-external-subject.js +0 -929
  1818. package/packages/eval/dist/harbor-maka-subject.js +0 -83
  1819. package/packages/eval/dist/harness-environment.js +0 -80
  1820. package/packages/eval/dist/harness-executor.js +0 -1013
  1821. package/packages/eval/dist/index.js +0 -28
  1822. package/packages/eval/dist/install-preflight.js +0 -201
  1823. package/packages/eval/dist/maka-artifacts.js +0 -126
  1824. package/packages/eval/dist/maka-runtime-policy.js +0 -42
  1825. package/packages/eval/dist/maka-subject.js +0 -268
  1826. package/packages/eval/dist/metering-checkpoint.js +0 -80
  1827. package/packages/eval/dist/provider-admission.js +0 -39
  1828. package/packages/eval/dist/provider-metering.js +0 -67
  1829. package/packages/eval/dist/provider-web-tool-surface.js +0 -74
  1830. package/packages/eval/dist/relay-result-frame.js +0 -38
  1831. package/packages/eval/dist/result.js +0 -94
  1832. package/packages/eval/dist/runner.js +0 -290
  1833. package/packages/eval/dist/spec.js +0 -135
  1834. package/packages/eval/dist/toolchain-verification.js +0 -130
  1835. package/packages/eval/harbor/deepseek-codex-models.json +0 -69
  1836. package/packages/eval/harbor/deepseek-harness-profile/cordis.patch.yml +0 -140
  1837. package/packages/eval/harbor/deepseek-harness-profile/cordis.yml +0 -18
  1838. package/packages/eval/harbor/deepseek-harness-profile/package.json +0 -10
  1839. package/packages/eval/harbor/docker-compose-egress-proxy.yaml +0 -57
  1840. package/packages/eval/harbor/egress-proxy/Dockerfile +0 -25
  1841. package/packages/eval/harbor/egress-proxy/entrypoint.sh +0 -62
  1842. package/packages/eval/harbor/egress-proxy/network-policy +0 -148
  1843. package/packages/eval/harbor/egress_filter.py +0 -435
  1844. package/packages/eval/harbor/eval_framework.py +0 -40
  1845. package/packages/eval/harbor/relay_agent.py +0 -686
  1846. package/packages/eval/harbor/run_trial.py +0 -223
  1847. package/packages/eval/package.json +0 -20
  1848. /package/node_modules/@ai-sdk/{code-mode → anthropic/node_modules/@ai-sdk/provider}/LICENSE +0 -0
  1849. /package/node_modules/@ai-sdk/{provider → anthropic/node_modules/@ai-sdk/provider}/README.md +0 -0
  1850. /package/node_modules/@ai-sdk/{provider → anthropic/node_modules/@ai-sdk/provider}/dist/index.js +0 -0
  1851. /package/node_modules/@ai-sdk/{gateway → cohere/node_modules/@ai-sdk/provider}/LICENSE +0 -0
  1852. /package/node_modules/@ai-sdk/{provider → google/node_modules/@ai-sdk/provider}/LICENSE +0 -0
  1853. /package/node_modules/{ai → @ai-sdk/openai-compatible/node_modules/@ai-sdk/provider}/LICENSE +0 -0
  1854. /package/node_modules/{@formatjs → @maka/core/node_modules/@formatjs}/icu-messageformat-parser/LICENSE.md +0 -0
  1855. /package/node_modules/{@formatjs → @maka/core/node_modules/@formatjs}/icu-messageformat-parser/README.md +0 -0
  1856. /package/node_modules/{intl-messageformat → @maka/core/node_modules/intl-messageformat}/LICENSE.md +0 -0
  1857. /package/node_modules/{intl-messageformat → @maka/core/node_modules/intl-messageformat}/README.md +0 -0
  1858. /package/node_modules/{intl-messageformat → @maka/core/node_modules/intl-messageformat}/index.js +0 -0
  1859. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/README.md +0 -0
  1860. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/approval-continuation.js +0 -0
  1861. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/approval.js +0 -0
  1862. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/code-mode-tool.js +0 -0
  1863. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/continuation-capability.js +0 -0
  1864. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/direct-tool-call.js +0 -0
  1865. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/errors.js +0 -0
  1866. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/host-interrupt.js +0 -0
  1867. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/index.js +0 -0
  1868. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/interrupt-continuation.js +0 -0
  1869. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/tool-invocation.js +0 -0
  1870. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/tool-prompt.js +0 -0
  1871. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/types.js +0 -0
  1872. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/utils/serialization.js +0 -0
  1873. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/src/tsconfig.json +0 -0
  1874. /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/gateway/README.md +0 -0
  1875. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/README.md +0 -0
  1876. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/00-introduction/index.mdx +0 -0
  1877. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-foundations/01-overview.mdx +0 -0
  1878. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-foundations/03-prompts.mdx +0 -0
  1879. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-foundations/04-tools.mdx +0 -0
  1880. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-foundations/05-streaming.mdx +0 -0
  1881. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-foundations/06-provider-options.mdx +0 -0
  1882. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-foundations/index.mdx +0 -0
  1883. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/00-choosing-a-provider.mdx +0 -0
  1884. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/01-navigating-the-library.mdx +0 -0
  1885. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/02-nextjs-app-router.mdx +0 -0
  1886. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/03-nextjs-pages-router.mdx +0 -0
  1887. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/04-svelte.mdx +0 -0
  1888. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/05-nuxt.mdx +0 -0
  1889. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/06-nodejs.mdx +0 -0
  1890. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/07-expo.mdx +0 -0
  1891. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/08-tanstack-start.mdx +0 -0
  1892. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/09-coding-agents.mdx +0 -0
  1893. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/index.mdx +0 -0
  1894. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-agents/01-overview.mdx +0 -0
  1895. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-agents/02-building-agents.mdx +0 -0
  1896. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-agents/03-workflows.mdx +0 -0
  1897. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-agents/05-configuring-call-options.mdx +0 -0
  1898. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-agents/06-memory.mdx +0 -0
  1899. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-agents/06-subagents.mdx +0 -0
  1900. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-agents/08-terminal-ui.mdx +0 -0
  1901. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-agents/index.mdx +0 -0
  1902. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/01-overview.mdx +0 -0
  1903. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/05-generating-text.mdx +0 -0
  1904. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/17-mcp-apps.mdx +0 -0
  1905. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/17-runtime-and-tool-context.mdx +0 -0
  1906. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/18-code-mode.mdx +0 -0
  1907. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/20-prompt-engineering.mdx +0 -0
  1908. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/25-settings.mdx +0 -0
  1909. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/26-reasoning.mdx +0 -0
  1910. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/30-embeddings.mdx +0 -0
  1911. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/31-reranking.mdx +0 -0
  1912. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/36-realtime.mdx +0 -0
  1913. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/36-translation.mdx +0 -0
  1914. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/38-video-generation.mdx +0 -0
  1915. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/40-middleware.mdx +0 -0
  1916. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/41-skill-uploads.mdx +0 -0
  1917. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/45-provider-management.mdx +0 -0
  1918. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/55-testing.mdx +0 -0
  1919. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/65-devtools.mdx +0 -0
  1920. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/65-lifecycle-callbacks.mdx +0 -0
  1921. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-harnesses/01-overview.mdx +0 -0
  1922. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-harnesses/03-tools.mdx +0 -0
  1923. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-harnesses/06-workflow-utilities.mdx +0 -0
  1924. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-harnesses/07-ui.mdx +0 -0
  1925. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-harnesses/08-terminal-ui.mdx +0 -0
  1926. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-harnesses/index.mdx +0 -0
  1927. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/01-overview.mdx +0 -0
  1928. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/02-chatbot.mdx +0 -0
  1929. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/03-chatbot-message-persistence.mdx +0 -0
  1930. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/03-chatbot-resume-streams.mdx +0 -0
  1931. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/04-generative-user-interfaces.mdx +0 -0
  1932. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/05-completion.mdx +0 -0
  1933. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/08-object-generation.mdx +0 -0
  1934. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/21-error-handling.mdx +0 -0
  1935. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/24-reading-ui-message-streams.mdx +0 -0
  1936. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/25-message-metadata.mdx +0 -0
  1937. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/index.mdx +0 -0
  1938. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/01-overview.mdx +0 -0
  1939. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/02-streaming-react-components.mdx +0 -0
  1940. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/03-generative-ui-state.mdx +0 -0
  1941. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/03-saving-and-restoring-states.mdx +0 -0
  1942. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/04-multistep-interfaces.mdx +0 -0
  1943. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/05-streaming-values.mdx +0 -0
  1944. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/06-loading-state.mdx +0 -0
  1945. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/08-error-handling.mdx +0 -0
  1946. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/09-authentication.mdx +0 -0
  1947. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/10-migrating-to-ui.mdx +0 -0
  1948. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/index.mdx +0 -0
  1949. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/01-prompt-engineering.mdx +0 -0
  1950. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/02-stopping-streams.mdx +0 -0
  1951. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/03-backpressure.mdx +0 -0
  1952. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/05-multiple-streamables.mdx +0 -0
  1953. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/06-rate-limiting.mdx +0 -0
  1954. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/07-rendering-ui-with-language-models.mdx +0 -0
  1955. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/08-model-as-router.mdx +0 -0
  1956. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/09-multistep-interfaces.mdx +0 -0
  1957. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/09-sequential-generations.mdx +0 -0
  1958. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/10-vercel-deployment-guide.mdx +0 -0
  1959. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/index.mdx +0 -0
  1960. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/11-stream-transcribe.mdx +0 -0
  1961. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/11-stream-translate.mdx +0 -0
  1962. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/11-transcribe.mdx +0 -0
  1963. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/12-generate-speech.mdx +0 -0
  1964. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/13-generate-video.mdx +0 -0
  1965. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/14-upload-skill.mdx +0 -0
  1966. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/15-agent.mdx +0 -0
  1967. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/17-create-agent-ui-stream.mdx +0 -0
  1968. /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
  1969. /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
  1970. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/20-tool.mdx +0 -0
  1971. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/22-dynamic-tool.mdx +0 -0
  1972. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/23-create-mcp-client.mdx +0 -0
  1973. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/23-get-realtime-tool-definitions.mdx +0 -0
  1974. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/24-mcp-apps.mdx +0 -0
  1975. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/24-mcp-stdio-transport.mdx +0 -0
  1976. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/25-json-schema.mdx +0 -0
  1977. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/26-zod-schema.mdx +0 -0
  1978. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/27-valibot-schema.mdx +0 -0
  1979. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/29-filter-active-tools.mdx +0 -0
  1980. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/30-model-message.mdx +0 -0
  1981. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/32-validate-ui-messages.mdx +0 -0
  1982. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/33-safe-validate-ui-messages.mdx +0 -0
  1983. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/34-sandbox.mdx +0 -0
  1984. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/40-provider-registry.mdx +0 -0
  1985. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/42-custom-provider.mdx +0 -0
  1986. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/50-cosine-similarity.mdx +0 -0
  1987. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/60-wrap-language-model.mdx +0 -0
  1988. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/61-wrap-image-model.mdx +0 -0
  1989. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/65-language-model-v2-middleware.mdx +0 -0
  1990. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/66-extract-reasoning-middleware.mdx +0 -0
  1991. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/67-simulate-streaming-middleware.mdx +0 -0
  1992. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/68-default-instructions-middleware.mdx +0 -0
  1993. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/68-default-settings-middleware.mdx +0 -0
  1994. /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
  1995. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/70-extract-json-middleware.mdx +0 -0
  1996. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/70-is-step-count.mdx +0 -0
  1997. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/71-has-tool-call.mdx +0 -0
  1998. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/72-loop-finished.mdx +0 -0
  1999. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/75-simulate-readable-stream.mdx +0 -0
  2000. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/90-generate-id.mdx +0 -0
  2001. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/91-create-id-generator.mdx +0 -0
  2002. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/92-default-generated-file.mdx +0 -0
  2003. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/02-use-completion.mdx +0 -0
  2004. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/03-use-object.mdx +0 -0
  2005. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/05-use-realtime.mdx +0 -0
  2006. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/32-prune-messages.mdx +0 -0
  2007. /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
  2008. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/43-read-ui-message-stream.mdx +0 -0
  2009. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/46-infer-ui-tools.mdx +0 -0
  2010. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/47-infer-ui-tool.mdx +0 -0
  2011. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/48-mcp-app-renderer.mdx +0 -0
  2012. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/50-direct-chat-transport.mdx +0 -0
  2013. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/index.mdx +0 -0
  2014. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/01-stream-ui.mdx +0 -0
  2015. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/02-create-ai.mdx +0 -0
  2016. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/03-create-streamable-ui.mdx +0 -0
  2017. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/04-create-streamable-value.mdx +0 -0
  2018. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/05-read-streamable-value.mdx +0 -0
  2019. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/06-get-ai-state.mdx +0 -0
  2020. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/07-get-mutable-ai-state.mdx +0 -0
  2021. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/08-use-ai-state.mdx +0 -0
  2022. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/09-use-actions.mdx +0 -0
  2023. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/10-use-ui-state.mdx +0 -0
  2024. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/11-use-streamable-value.mdx +0 -0
  2025. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/20-render.mdx +0 -0
  2026. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/index.mdx +0 -0
  2027. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-api-call-error.mdx +0 -0
  2028. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-download-error.mdx +0 -0
  2029. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-empty-response-body-error.mdx +0 -0
  2030. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-invalid-data-content-error.mdx +0 -0
  2031. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-invalid-message-role-error.mdx +0 -0
  2032. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-invalid-prompt-error.mdx +0 -0
  2033. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-invalid-response-data-error.mdx +0 -0
  2034. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-invalid-tool-approval-error.mdx +0 -0
  2035. /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
  2036. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-invalid-tool-input-error.mdx +0 -0
  2037. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-json-parse-error.mdx +0 -0
  2038. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-load-api-key-error.mdx +0 -0
  2039. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-load-setting-error.mdx +0 -0
  2040. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-message-conversion-error.mdx +0 -0
  2041. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-content-generated-error.mdx +0 -0
  2042. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-object-generated-error.mdx +0 -0
  2043. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-output-generated-error.mdx +0 -0
  2044. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-speech-generated-error.mdx +0 -0
  2045. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-such-model-error.mdx +0 -0
  2046. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-such-provider-error.mdx +0 -0
  2047. /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
  2048. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-such-tool-error.mdx +0 -0
  2049. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-transcript-generated-error.mdx +0 -0
  2050. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-translation-generated-error.mdx +0 -0
  2051. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-video-generated-error.mdx +0 -0
  2052. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-retry-error.mdx +0 -0
  2053. /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
  2054. /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
  2055. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-tool-call-repair-error.mdx +0 -0
  2056. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-type-validation-error.mdx +0 -0
  2057. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-ui-message-stream-error.mdx +0 -0
  2058. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-unsupported-functionality-error.mdx +0 -0
  2059. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/06-ai-sdk-tui/01-run-agent-tui.mdx +0 -0
  2060. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/06-ai-sdk-tui/index.mdx +0 -0
  2061. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/index.mdx +0 -0
  2062. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/00-versioning.mdx +0 -0
  2063. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/23-migration-guide-7-0.mdx +0 -0
  2064. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/24-migration-guide-6-0.mdx +0 -0
  2065. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/25-migration-guide-5-0-data.mdx +0 -0
  2066. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/26-migration-guide-5-0.mdx +0 -0
  2067. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/27-migration-guide-4-2.mdx +0 -0
  2068. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/28-migration-guide-4-1.mdx +0 -0
  2069. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/29-migration-guide-4-0.mdx +0 -0
  2070. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/36-migration-guide-3-4.mdx +0 -0
  2071. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/37-migration-guide-3-3.mdx +0 -0
  2072. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/38-migration-guide-3-2.mdx +0 -0
  2073. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/39-migration-guide-3-1.mdx +0 -0
  2074. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/index.mdx +0 -0
  2075. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/01-azure-stream-slow.mdx +0 -0
  2076. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/03-server-actions-in-client-components.mdx +0 -0
  2077. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/04-strange-stream-output.mdx +0 -0
  2078. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/05-streamable-ui-errors.mdx +0 -0
  2079. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/05-tool-invocation-missing-result.mdx +0 -0
  2080. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/06-streaming-not-working-when-deployed.mdx +0 -0
  2081. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/06-streaming-not-working-when-proxied.mdx +0 -0
  2082. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/06-timeout-on-vercel.mdx +0 -0
  2083. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/07-unclosed-streams.mdx +0 -0
  2084. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/08-use-chat-failed-to-parse-stream.mdx +0 -0
  2085. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/09-client-stream-error.mdx +0 -0
  2086. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/10-use-chat-tools-no-response.mdx +0 -0
  2087. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/11-use-chat-custom-request-options.mdx +0 -0
  2088. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/12-typescript-performance-zod.mdx +0 -0
  2089. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/12-use-chat-an-error-occurred.mdx +0 -0
  2090. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/13-repeated-assistant-messages.mdx +0 -0
  2091. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/14-stream-abort-handling.mdx +0 -0
  2092. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/14-tool-calling-with-structured-outputs.mdx +0 -0
  2093. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/15-abort-breaks-resumable-streams.mdx +0 -0
  2094. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/15-stream-text-not-working.mdx +0 -0
  2095. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/16-streaming-status-delay.mdx +0 -0
  2096. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/17-use-chat-stale-body-data.mdx +0 -0
  2097. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/18-ontoolcall-type-narrowing.mdx +0 -0
  2098. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/19-unsupported-model-version.mdx +0 -0
  2099. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/20-no-object-generated-content-filter.mdx +0 -0
  2100. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/21-missing-tool-results-error.mdx +0 -0
  2101. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/30-model-is-not-assignable-to-type.mdx +0 -0
  2102. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/40-typescript-cannot-find-namespace-jsx.mdx +0 -0
  2103. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/50-react-maximum-update-depth-exceeded.mdx +0 -0
  2104. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/60-jest-cannot-find-module-ai-rsc.mdx +0 -0
  2105. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/70-high-memory-usage-with-images.mdx +0 -0
  2106. /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/index.mdx +0 -0
  2107. /package/node_modules/@maka/storage/dist/{artifact-metadata-repository.js → runtime-event-store-contract.js} +0 -0
  2108. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/logger/LICENSE +0 -0
  2109. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/logger/README.md +0 -0
  2110. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/logger/dist/index.js +0 -0
  2111. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/logger/package.json +0 -0
  2112. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/LICENSE +0 -0
  2113. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/README.md +0 -0
  2114. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/block-kit/block-elements.js +0 -0
  2115. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/block-kit/blocks.js +0 -0
  2116. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/block-kit/composition-objects.js +0 -0
  2117. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/block-kit/extensions.js +0 -0
  2118. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/calls.js +0 -0
  2119. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/chunk.js +0 -0
  2120. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/common/bot-profile.js +0 -0
  2121. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/common/status-emoji-display-info.js +0 -0
  2122. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/dialog.js +0 -0
  2123. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/app.js +0 -0
  2124. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/assistant.js +0 -0
  2125. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/call.js +0 -0
  2126. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/channel.js +0 -0
  2127. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/dnd.js +0 -0
  2128. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/email.js +0 -0
  2129. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/emoji.js +0 -0
  2130. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/entity-details-requested.js +0 -0
  2131. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/file.js +0 -0
  2132. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/function.js +0 -0
  2133. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/grid-migration.js +0 -0
  2134. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/group.js +0 -0
  2135. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/im.js +0 -0
  2136. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/invite.js +0 -0
  2137. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/link-shared.js +0 -0
  2138. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/member.js +0 -0
  2139. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/message-metadata.js +0 -0
  2140. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/message.js +0 -0
  2141. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/pin.js +0 -0
  2142. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/reaction.js +0 -0
  2143. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/shared-channel.js +0 -0
  2144. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/star.js +0 -0
  2145. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/steps-from-apps.js +0 -0
  2146. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/subteam.js +0 -0
  2147. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/team.js +0 -0
  2148. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/token.js +0 -0
  2149. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/user.js +0 -0
  2150. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/index.js +0 -0
  2151. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/message-attachments.js +0 -0
  2152. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/message-metadata.js +0 -0
  2153. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/views.js +0 -0
  2154. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/LICENSE +0 -0
  2155. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/WebClient.js +0 -0
  2156. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/chat-stream.js +0 -0
  2157. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/errors.js +0 -0
  2158. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/file-upload.js +0 -0
  2159. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/helpers.js +0 -0
  2160. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/index.js +0 -0
  2161. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/instrument.js +0 -0
  2162. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/logger.js +0 -0
  2163. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/retry-policies.js +0 -0
  2164. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/helpers.js +0 -0
  2165. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/analytics.js +0 -0
  2166. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/apps.js +0 -0
  2167. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/auth.js +0 -0
  2168. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/barriers.js +0 -0
  2169. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/conversations.js +0 -0
  2170. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/emoji.js +0 -0
  2171. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/functions.js +0 -0
  2172. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/inviteRequests.js +0 -0
  2173. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/roles.js +0 -0
  2174. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/teams.js +0 -0
  2175. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/usergroups.js +0 -0
  2176. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/users.js +0 -0
  2177. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/workflows.js +0 -0
  2178. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/api.js +0 -0
  2179. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/apps.js +0 -0
  2180. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/assistant.js +0 -0
  2181. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/auth.js +0 -0
  2182. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/bookmarks.js +0 -0
  2183. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/bots.js +0 -0
  2184. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/calls.js +0 -0
  2185. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/canvas.js +0 -0
  2186. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/chat.js +0 -0
  2187. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/common.js +0 -0
  2188. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/conversations.js +0 -0
  2189. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/dialog.js +0 -0
  2190. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/dnd.js +0 -0
  2191. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/emoji.js +0 -0
  2192. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/entity.js +0 -0
  2193. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/files.js +0 -0
  2194. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/functions.js +0 -0
  2195. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/index.js +0 -0
  2196. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/manifest.js +0 -0
  2197. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/migration.js +0 -0
  2198. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/oauth.js +0 -0
  2199. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/openid.js +0 -0
  2200. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/pins.js +0 -0
  2201. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/reactions.js +0 -0
  2202. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/reminders.js +0 -0
  2203. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/rtm.js +0 -0
  2204. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/search.js +0 -0
  2205. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/slackLists.js +0 -0
  2206. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/stars.js +0 -0
  2207. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/team.js +0 -0
  2208. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/tooling.js +0 -0
  2209. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/usergroups.js +0 -0
  2210. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/users.js +0 -0
  2211. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/views.js +0 -0
  2212. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/workflows.js +0 -0
  2213. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAnalyticsGetFileResponse.js +0 -0
  2214. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsActivitiesListResponse.js +0 -0
  2215. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsApproveResponse.js +0 -0
  2216. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsApprovedListResponse.js +0 -0
  2217. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsClearResolutionResponse.js +0 -0
  2218. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsConfigLookupResponse.js +0 -0
  2219. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsConfigSetResponse.js +0 -0
  2220. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsRequestsCancelResponse.js +0 -0
  2221. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsRequestsListResponse.js +0 -0
  2222. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsRestrictResponse.js +0 -0
  2223. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsRestrictedListResponse.js +0 -0
  2224. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsUninstallResponse.js +0 -0
  2225. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAuthPolicyAssignEntitiesResponse.js +0 -0
  2226. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAuthPolicyGetEntitiesResponse.js +0 -0
  2227. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAuthPolicyRemoveEntitiesResponse.js +0 -0
  2228. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminBarriersCreateResponse.js +0 -0
  2229. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminBarriersDeleteResponse.js +0 -0
  2230. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminBarriersListResponse.js +0 -0
  2231. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminBarriersUpdateResponse.js +0 -0
  2232. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsArchiveResponse.js +0 -0
  2233. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsBulkArchiveResponse.js +0 -0
  2234. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsBulkDeleteResponse.js +0 -0
  2235. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsBulkMoveResponse.js +0 -0
  2236. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsConvertToPrivateResponse.js +0 -0
  2237. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsConvertToPublicResponse.js +0 -0
  2238. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsCreateResponse.js +0 -0
  2239. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsDeleteResponse.js +0 -0
  2240. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsDisconnectSharedResponse.js +0 -0
  2241. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsEkmListOriginalConnectedChannelInfoResponse.js +0 -0
  2242. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsGetConversationPrefsResponse.js +0 -0
  2243. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsGetCustomRetentionResponse.js +0 -0
  2244. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsGetTeamsResponse.js +0 -0
  2245. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsInviteResponse.js +0 -0
  2246. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsLookupResponse.js +0 -0
  2247. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsRemoveCustomRetentionResponse.js +0 -0
  2248. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsRenameResponse.js +0 -0
  2249. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsRestrictAccessAddGroupResponse.js +0 -0
  2250. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsRestrictAccessListGroupsResponse.js +0 -0
  2251. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsRestrictAccessRemoveGroupResponse.js +0 -0
  2252. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsSearchResponse.js +0 -0
  2253. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsSetConversationPrefsResponse.js +0 -0
  2254. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsSetCustomRetentionResponse.js +0 -0
  2255. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsSetTeamsResponse.js +0 -0
  2256. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsUnarchiveResponse.js +0 -0
  2257. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsWhitelistAddResponse.js +0 -0
  2258. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsWhitelistListGroupsLinkedToChannelResponse.js +0 -0
  2259. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsWhitelistRemoveResponse.js +0 -0
  2260. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminEmojiAddAliasResponse.js +0 -0
  2261. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminEmojiAddResponse.js +0 -0
  2262. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminEmojiListResponse.js +0 -0
  2263. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminEmojiRemoveResponse.js +0 -0
  2264. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminEmojiRenameResponse.js +0 -0
  2265. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminFunctionsListResponse.js +0 -0
  2266. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminFunctionsPermissionsLookupResponse.js +0 -0
  2267. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminFunctionsPermissionsSetResponse.js +0 -0
  2268. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminInviteRequestsApproveResponse.js +0 -0
  2269. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminInviteRequestsApprovedListResponse.js +0 -0
  2270. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminInviteRequestsDeniedListResponse.js +0 -0
  2271. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminInviteRequestsDenyResponse.js +0 -0
  2272. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminInviteRequestsListResponse.js +0 -0
  2273. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminRolesAddAssignmentsResponse.js +0 -0
  2274. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminRolesListAssignmentsResponse.js +0 -0
  2275. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminRolesRemoveAssignmentsResponse.js +0 -0
  2276. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsAdminsListResponse.js +0 -0
  2277. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsCreateResponse.js +0 -0
  2278. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsListResponse.js +0 -0
  2279. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsOwnersListResponse.js +0 -0
  2280. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsSettingsInfoResponse.js +0 -0
  2281. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsSettingsSetDefaultChannelsResponse.js +0 -0
  2282. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsSettingsSetDescriptionResponse.js +0 -0
  2283. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsSettingsSetDiscoverabilityResponse.js +0 -0
  2284. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsSettingsSetIconResponse.js +0 -0
  2285. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsSettingsSetNameResponse.js +0 -0
  2286. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsergroupsAddChannelsResponse.js +0 -0
  2287. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsergroupsAddTeamsResponse.js +0 -0
  2288. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsergroupsListChannelsResponse.js +0 -0
  2289. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsergroupsRemoveChannelsResponse.js +0 -0
  2290. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersAssignResponse.js +0 -0
  2291. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersInviteResponse.js +0 -0
  2292. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersListResponse.js +0 -0
  2293. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersRemoveResponse.js +0 -0
  2294. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSessionClearSettingsResponse.js +0 -0
  2295. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSessionGetSettingsResponse.js +0 -0
  2296. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSessionInvalidateResponse.js +0 -0
  2297. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSessionListResponse.js +0 -0
  2298. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSessionResetBulkResponse.js +0 -0
  2299. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSessionResetResponse.js +0 -0
  2300. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSessionSetSettingsResponse.js +0 -0
  2301. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSetAdminResponse.js +0 -0
  2302. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSetExpirationResponse.js +0 -0
  2303. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSetOwnerResponse.js +0 -0
  2304. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSetRegularResponse.js +0 -0
  2305. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersUnsupportedVersionsExportResponse.js +0 -0
  2306. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminWorkflowsCollaboratorsAddResponse.js +0 -0
  2307. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminWorkflowsCollaboratorsRemoveResponse.js +0 -0
  2308. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminWorkflowsPermissionsLookupResponse.js +0 -0
  2309. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminWorkflowsSearchResponse.js +0 -0
  2310. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminWorkflowsUnpublishResponse.js +0 -0
  2311. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ApiTestResponse.js +0 -0
  2312. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsConnectionsOpenResponse.js +0 -0
  2313. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsEventAuthorizationsListResponse.js +0 -0
  2314. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsManifestCreateResponse.js +0 -0
  2315. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsManifestDeleteResponse.js +0 -0
  2316. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsManifestExportResponse.js +0 -0
  2317. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsManifestUpdateResponse.js +0 -0
  2318. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsManifestValidateResponse.js +0 -0
  2319. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsPermissionsInfoResponse.js +0 -0
  2320. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsPermissionsRequestResponse.js +0 -0
  2321. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsPermissionsResourcesListResponse.js +0 -0
  2322. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsPermissionsScopesListResponse.js +0 -0
  2323. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsPermissionsUsersListResponse.js +0 -0
  2324. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsPermissionsUsersRequestResponse.js +0 -0
  2325. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsUninstallResponse.js +0 -0
  2326. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsUserConnectionUpdateResponse.js +0 -0
  2327. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AssistantThreadsSetStatusResponse.js +0 -0
  2328. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AssistantThreadsSetSuggestedPromptsResponse.js +0 -0
  2329. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AssistantThreadsSetTitleResponse.js +0 -0
  2330. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AuthRevokeResponse.js +0 -0
  2331. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AuthTeamsListResponse.js +0 -0
  2332. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AuthTestResponse.js +0 -0
  2333. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/BookmarksAddResponse.js +0 -0
  2334. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/BookmarksEditResponse.js +0 -0
  2335. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/BookmarksListResponse.js +0 -0
  2336. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/BookmarksRemoveResponse.js +0 -0
  2337. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/BotsInfoResponse.js +0 -0
  2338. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CallsAddResponse.js +0 -0
  2339. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CallsEndResponse.js +0 -0
  2340. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CallsInfoResponse.js +0 -0
  2341. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CallsParticipantsAddResponse.js +0 -0
  2342. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CallsParticipantsRemoveResponse.js +0 -0
  2343. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CallsUpdateResponse.js +0 -0
  2344. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CanvasesAccessDeleteResponse.js +0 -0
  2345. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CanvasesAccessSetResponse.js +0 -0
  2346. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CanvasesCreateResponse.js +0 -0
  2347. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CanvasesDeleteResponse.js +0 -0
  2348. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CanvasesEditResponse.js +0 -0
  2349. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CanvasesSectionsLookupResponse.js +0 -0
  2350. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsArchiveResponse.js +0 -0
  2351. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsCreateResponse.js +0 -0
  2352. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsHistoryResponse.js +0 -0
  2353. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsInfoResponse.js +0 -0
  2354. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsInviteResponse.js +0 -0
  2355. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsJoinResponse.js +0 -0
  2356. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsKickResponse.js +0 -0
  2357. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsLeaveResponse.js +0 -0
  2358. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsListResponse.js +0 -0
  2359. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsMarkResponse.js +0 -0
  2360. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsRenameResponse.js +0 -0
  2361. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsRepliesResponse.js +0 -0
  2362. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsSetPurposeResponse.js +0 -0
  2363. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsSetTopicResponse.js +0 -0
  2364. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsUnarchiveResponse.js +0 -0
  2365. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatDeleteResponse.js +0 -0
  2366. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatDeleteScheduledMessageResponse.js +0 -0
  2367. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatGetPermalinkResponse.js +0 -0
  2368. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatMeMessageResponse.js +0 -0
  2369. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatPostEphemeralResponse.js +0 -0
  2370. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatPostMessageResponse.js +0 -0
  2371. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatScheduleMessageResponse.js +0 -0
  2372. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatScheduledMessagesListResponse.js +0 -0
  2373. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatUnfurlResponse.js +0 -0
  2374. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatUpdateResponse.js +0 -0
  2375. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsAcceptSharedInviteResponse.js +0 -0
  2376. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsApproveSharedInviteResponse.js +0 -0
  2377. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsArchiveResponse.js +0 -0
  2378. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsCanvasesCreateResponse.js +0 -0
  2379. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsCloseResponse.js +0 -0
  2380. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsCreateResponse.js +0 -0
  2381. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsDeclineSharedInviteResponse.js +0 -0
  2382. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsExternalInvitePermissionsSetResponse.js +0 -0
  2383. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsHistoryResponse.js +0 -0
  2384. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsInfoResponse.js +0 -0
  2385. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsInviteResponse.js +0 -0
  2386. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsInviteSharedResponse.js +0 -0
  2387. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsJoinResponse.js +0 -0
  2388. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsKickResponse.js +0 -0
  2389. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsLeaveResponse.js +0 -0
  2390. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsListConnectInvitesResponse.js +0 -0
  2391. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsListResponse.js +0 -0
  2392. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsMarkResponse.js +0 -0
  2393. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsMembersResponse.js +0 -0
  2394. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsOpenResponse.js +0 -0
  2395. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsRenameResponse.js +0 -0
  2396. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsRepliesResponse.js +0 -0
  2397. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsRequestSharedInviteApproveResponse.js +0 -0
  2398. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsRequestSharedInviteDenyResponse.js +0 -0
  2399. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsRequestSharedInviteListResponse.js +0 -0
  2400. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsSetPurposeResponse.js +0 -0
  2401. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsSetTopicResponse.js +0 -0
  2402. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsUnarchiveResponse.js +0 -0
  2403. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/DialogOpenResponse.js +0 -0
  2404. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/DndEndDndResponse.js +0 -0
  2405. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/DndEndSnoozeResponse.js +0 -0
  2406. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/DndInfoResponse.js +0 -0
  2407. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/DndSetSnoozeResponse.js +0 -0
  2408. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/DndTeamInfoResponse.js +0 -0
  2409. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/EmojiListResponse.js +0 -0
  2410. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/EntityPresentDetailsResponse.js +0 -0
  2411. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesCommentsAddResponse.js +0 -0
  2412. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesCommentsDeleteResponse.js +0 -0
  2413. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesCommentsEditResponse.js +0 -0
  2414. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesCompleteUploadExternalResponse.js +0 -0
  2415. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesDeleteResponse.js +0 -0
  2416. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesGetUploadURLExternalResponse.js +0 -0
  2417. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesInfoResponse.js +0 -0
  2418. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesListResponse.js +0 -0
  2419. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesRemoteAddResponse.js +0 -0
  2420. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesRemoteInfoResponse.js +0 -0
  2421. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesRemoteListResponse.js +0 -0
  2422. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesRemoteRemoveResponse.js +0 -0
  2423. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesRemoteShareResponse.js +0 -0
  2424. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesRemoteUpdateResponse.js +0 -0
  2425. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesRevokePublicURLResponse.js +0 -0
  2426. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesSharedPublicURLResponse.js +0 -0
  2427. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesUploadResponse.js +0 -0
  2428. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FunctionsCompleteErrorResponse.js +0 -0
  2429. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FunctionsCompleteSuccessResponse.js +0 -0
  2430. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsArchiveResponse.js +0 -0
  2431. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsCloseResponse.js +0 -0
  2432. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsCreateChildResponse.js +0 -0
  2433. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsCreateResponse.js +0 -0
  2434. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsHistoryResponse.js +0 -0
  2435. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsInfoResponse.js +0 -0
  2436. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsInviteResponse.js +0 -0
  2437. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsKickResponse.js +0 -0
  2438. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsLeaveResponse.js +0 -0
  2439. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsListResponse.js +0 -0
  2440. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsMarkResponse.js +0 -0
  2441. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsOpenResponse.js +0 -0
  2442. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsRenameResponse.js +0 -0
  2443. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsRepliesResponse.js +0 -0
  2444. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsSetPurposeResponse.js +0 -0
  2445. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsSetTopicResponse.js +0 -0
  2446. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsUnarchiveResponse.js +0 -0
  2447. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ImCloseResponse.js +0 -0
  2448. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ImHistoryResponse.js +0 -0
  2449. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ImListResponse.js +0 -0
  2450. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ImMarkResponse.js +0 -0
  2451. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ImOpenResponse.js +0 -0
  2452. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ImRepliesResponse.js +0 -0
  2453. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/MigrationExchangeResponse.js +0 -0
  2454. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/MpimCloseResponse.js +0 -0
  2455. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/MpimHistoryResponse.js +0 -0
  2456. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/MpimListResponse.js +0 -0
  2457. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/MpimMarkResponse.js +0 -0
  2458. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/MpimOpenResponse.js +0 -0
  2459. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/MpimRepliesResponse.js +0 -0
  2460. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/OauthAccessResponse.js +0 -0
  2461. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/OauthTokenResponse.js +0 -0
  2462. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/OauthV2AccessResponse.js +0 -0
  2463. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/OauthV2ExchangeResponse.js +0 -0
  2464. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/OpenIDConnectTokenResponse.js +0 -0
  2465. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/OpenIDConnectUserInfoResponse.js +0 -0
  2466. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/PinsAddResponse.js +0 -0
  2467. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/PinsRemoveResponse.js +0 -0
  2468. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ReactionsAddResponse.js +0 -0
  2469. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ReactionsGetResponse.js +0 -0
  2470. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ReactionsListResponse.js +0 -0
  2471. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ReactionsRemoveResponse.js +0 -0
  2472. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/RemindersAddResponse.js +0 -0
  2473. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/RemindersCompleteResponse.js +0 -0
  2474. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/RemindersDeleteResponse.js +0 -0
  2475. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/RemindersInfoResponse.js +0 -0
  2476. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/RemindersListResponse.js +0 -0
  2477. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/RtmConnectResponse.js +0 -0
  2478. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/RtmStartResponse.js +0 -0
  2479. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/SearchMessagesResponse.js +0 -0
  2480. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/StarsAddResponse.js +0 -0
  2481. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/StarsListResponse.js +0 -0
  2482. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/StarsRemoveResponse.js +0 -0
  2483. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamAccessLogsResponse.js +0 -0
  2484. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamBillableInfoResponse.js +0 -0
  2485. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamBillingInfoResponse.js +0 -0
  2486. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamExternalTeamsDisconnectResponse.js +0 -0
  2487. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamExternalTeamsListResponse.js +0 -0
  2488. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamInfoResponse.js +0 -0
  2489. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamIntegrationLogsResponse.js +0 -0
  2490. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamPreferencesListResponse.js +0 -0
  2491. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamProfileGetResponse.js +0 -0
  2492. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ToolingTokensRotateResponse.js +0 -0
  2493. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsergroupsCreateResponse.js +0 -0
  2494. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsergroupsDisableResponse.js +0 -0
  2495. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsergroupsEnableResponse.js +0 -0
  2496. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsergroupsListResponse.js +0 -0
  2497. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsergroupsUpdateResponse.js +0 -0
  2498. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsergroupsUsersListResponse.js +0 -0
  2499. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsergroupsUsersUpdateResponse.js +0 -0
  2500. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersConversationsResponse.js +0 -0
  2501. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersDeletePhotoResponse.js +0 -0
  2502. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersDiscoverableContactsLookupResponse.js +0 -0
  2503. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersGetPresenceResponse.js +0 -0
  2504. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersIdentityResponse.js +0 -0
  2505. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersInfoResponse.js +0 -0
  2506. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersListResponse.js +0 -0
  2507. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersLookupByEmailResponse.js +0 -0
  2508. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersProfileGetResponse.js +0 -0
  2509. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersProfileSetResponse.js +0 -0
  2510. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersSetActiveResponse.js +0 -0
  2511. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersSetPhotoResponse.js +0 -0
  2512. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersSetPresenceResponse.js +0 -0
  2513. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ViewsOpenResponse.js +0 -0
  2514. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ViewsPublishResponse.js +0 -0
  2515. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ViewsPushResponse.js +0 -0
  2516. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ViewsUpdateResponse.js +0 -0
  2517. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/WorkflowsStepCompletedResponse.js +0 -0
  2518. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/WorkflowsStepFailedResponse.js +0 -0
  2519. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/WorkflowsUpdateStepResponse.js +0 -0
  2520. /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/index.js +0 -0
  2521. /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/License +0 -0
  2522. /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/README.md +0 -0
  2523. /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/example/dns.js +0 -0
  2524. /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/example/stop.js +0 -0
  2525. /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/index.js +0 -0
  2526. /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/lib/retry.js +0 -0
  2527. /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/lib/retry_operation.js +0 -0
  2528. /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/package.json +0 -0
@@ -16,39 +16,34 @@
16
16
  * specific language governing permissions and limitations
17
17
  * under the License.
18
18
  */
19
- /**
20
- * SessionManager — the public Runtime API.
21
- *
22
- * Ties together:
23
- * SessionStore (storage) — SQLite persistence
24
- * AgentBackend (AiSdkBackend etc) — SDK adapter
25
- * ExecutionBoundary — session sandbox authority
26
- *
27
- * `SessionStore` comes from `@maka/storage`; its public interface owns
28
- * persistence and same-session serialization semantics.
29
- */
19
+ import { countRecallSearchableMessages, listRecallCandidateSessions, } from './recall-candidates.js';
30
20
  import { createHash } from 'node:crypto';
31
21
  import { isDeepStrictEqual } from 'node:util';
32
22
  import { setTimeout as delay } from 'node:timers/promises';
33
23
  import { messageContentsEqual, normalizeMessageContent } from '@maka/core/events';
24
+ import { isCanonicalReadOnlyPermissionProfile } from '@maka/core/permission-profile';
34
25
  import { DEFAULT_TOOL_MODE } from '@maka/core/tool-mode';
35
- import { PLAN_USER_ABANDON_REASON, PLAN_USER_CANCEL_REASON, PlanConflictError, } from '@maka/core/plan';
26
+ import { PLAN_USER_ABANDON_REASON, PLAN_USER_CANCEL_REASON, PlanConflictError, activePlanExecution, } from '@maka/core/plan';
36
27
  import { DEFAULT_SESSION_NAME } from '@maka/core/session-name';
37
28
  import { DEEP_RESEARCH_SESSION_LABEL, isDeepResearchSession } from '@maka/core/deep-research';
38
- import { SIDE_CONVERSATION_SESSION_LABEL } from '@maka/core/side-conversation';
39
- import { SUBAGENT_SESSION_RUNTIME_SCHEMA_VERSION, SUBAGENT_SESSION_SPAWN_SCHEMA_VERSION, childSessionsForParent, deriveTurnRecords, subagentSessionRuntimeSummary, } from '@maka/core/session';
29
+ import { SUBAGENT_SESSION_RUNTIME_SCHEMA_VERSION, SUBAGENT_SESSION_SPAWN_SCHEMA_VERSION, childSessionsForParent, subagentSessionRuntimeSummary, } from '@maka/core/session';
40
30
  import { decodeAgentGraphIntentClaim } from '@maka/core/agent-graph-control';
41
31
  import { executionBoundaryContains } from '@maka/core/sandbox-boundary';
42
32
  import { failureClassFromCompleteStopReason } from '@maka/core/events';
43
33
  import { isActiveShellRunStatus } from '@maka/core/shell-run';
44
- import { isSessionInlineRun } from '@maka/core/agent-run';
45
34
  import { isTerminalRuntimeEvent } from '@maka/core/runtime-event';
35
+ import { runtimeHandoffPause } from '@maka/core/runtime-handoff';
36
+ import { readLogicalRuntimeExecutionForRun } from '@maka/core/runtime-logical-execution';
37
+ import { buildInvocationOpenedEvent, isSessionInlineInvocation, runtimeInvocationOutcome, } from '@maka/core/runtime-invocation';
38
+ import { isArtifactChildResultOutput } from '@maka/core/artifacts';
39
+ import { invocationMatchesClaimTarget } from '@maka/core/runtime-boundary';
40
+ import { readRunInvocation, } from '@maka/core/runtime-event-store';
46
41
  import { AGENT_GRAPH_OPERATOR_PROVISION_SCHEMA_VERSION } from '@maka/core/agent-graph-topology';
42
+ import { runtimeInvocationFailureClass, } from './runtime-event-read-model.js';
47
43
  import { RuntimeReadModel, RuntimeReadModelError, } from './runtime-read-model.js';
48
44
  import { inspectAgentRunReadModel } from './agent-run-inspect.js';
49
- import { cloneConversationRuntimeLedger as cloneConversationLedger, createConversationCopySlice, prepareConversationRuntimeLedgerCopy, } from './conversation-copy.js';
50
- import { firstRuntimeRepairRunId, RuntimeLedgerRepair } from './runtime-ledger-repair.js';
51
- import { buildRecoveredTerminalRuntimeEvent, classifyTerminalRuntimeLedger, commitTerminalRunWithRuntimeFact, effectiveRunHeaderFromTerminalFact, terminalRunStatusFromRuntimeEvent, } from './terminal-run-commit.js';
45
+ import { isTranscriptLedgerInvocation, RuntimeLedgerRepair } from './runtime-ledger-repair.js';
46
+ import { buildRecoveredTerminalRuntimeEvent, classifyTerminalRuntimeLedger, commitTerminalRunWithRuntimeFact, terminalRunStatusFromRuntimeEvent, } from './terminal-run-commit.js';
52
47
  import { readLatestContextDiagnostics } from './context-diagnostics.js';
53
48
  import { attributeSandboxBoundaryRestartClosure, classifyAgentRunRecovery, } from './agent-run-recovery.js';
54
49
  import { buildInterruptedCodeModeOutcomeCommits } from './recovery-resolver.js';
@@ -57,7 +52,7 @@ import { RuntimeInteractionInvariantError, } from './interaction-authority.js';
57
52
  import { RuntimeKernel, SessionQuiescentMutationBusyError, } from './runtime-kernel.js';
58
53
  import { fingerprintAgentGraphRunnableIntent } from './stream-graph-admission.js';
59
54
  import { projectAgentGraphRecords } from './stream-graph-projection.js';
60
- import { buildStatusPatch, buildTurnStateMessage, turnHasRetainedOutput as messagesHaveRetainedOutput, } from './session-projection-helpers.js';
55
+ import { buildStatusPatch } from './session-projection-helpers.js';
61
56
  import { assertAgentDefinitionRunnable, buildToolsForAgentDefinition, listBuiltinAgentDefinitions, requireBuiltinAgentDefinition, requireBuiltinAgentDefinitionByProfile, AGENT_WORKSPACE_WORKTREE, } from './agent-catalog.js';
62
57
  import { stableHash } from './request-shape.js';
63
58
  import { RuntimeContinuationPlanner, } from './runtime-resume.js';
@@ -82,8 +77,8 @@ function runtimeCommitSinkFromEventStore(store) {
82
77
  ? candidate
83
78
  : undefined;
84
79
  }
80
+ export { normalizeStopSessionSource, workHubDirectStopAbortSource, } from './session-projection-helpers.js';
85
81
  const CHILD_AGENT_SUMMARY_MAX_CHARS = 4_000;
86
- const MAX_RUNTIME_LEDGER_REPAIR_ATTEMPTS = 8;
87
82
  export class SessionConfigurationTransitionError extends Error {
88
83
  code;
89
84
  name = 'SessionConfigurationTransitionError';
@@ -111,18 +106,21 @@ export class RuntimeRegenerateTurnError extends Error {
111
106
  }
112
107
  }
113
108
  export class BackendRegistry {
114
- factories = new Map();
115
- register(kind, factory) {
116
- this.factories.set(kind, factory);
109
+ registrations = new Map();
110
+ register(kind, registration) {
111
+ this.registrations.set(kind, registration);
117
112
  }
118
- async build(kind, ctx) {
119
- const f = this.factories.get(kind);
120
- if (!f)
113
+ async prepare(kind, ctx) {
114
+ const registration = this.registrations.get(kind);
115
+ if (!registration)
121
116
  throw new Error(`No backend factory registered for kind="${kind}"`);
122
- return await f(ctx);
117
+ if (typeof registration === 'function') {
118
+ return { build: registration };
119
+ }
120
+ return await registration.prepare(ctx);
123
121
  }
124
122
  has(kind) {
125
- return this.factories.has(kind);
123
+ return this.registrations.has(kind);
126
124
  }
127
125
  }
128
126
  export class SessionManager {
@@ -147,21 +145,11 @@ export class SessionManager {
147
145
  deps.runtimeCommitSink ?? runtimeCommitSinkFromEventStore(deps.runtimeEventStore);
148
146
  if (deps.runStore && deps.runtimeEventStore) {
149
147
  this.runtimeLedgerRepair = new RuntimeLedgerRepair({
150
- runStore: deps.runStore,
151
148
  runtimeEventStore: deps.runtimeEventStore,
152
- readMessages: (sessionId) => deps.store.readMessages(sessionId),
153
- appendMessage: (sessionId, message) => deps.store.appendMessage(sessionId, message),
154
- appendTurnState: (sessionId, turnId, status, lineage, options) => this.appendTurnState(sessionId, turnId, status, lineage, options),
155
- newId: deps.newId,
156
- now: deps.now,
149
+ readMessagesAfter: (sessionId, request) => deps.store.readMessagesAfter(sessionId, request),
157
150
  });
158
151
  }
159
- this.runtimeKernel =
160
- deps.runtimeKernel ??
161
- new RuntimeKernel({
162
- ...deps,
163
- repairRunRuntimeLedger: (sessionId, runId) => this.repairMissingTerminalFactOnce(sessionId, runId),
164
- });
152
+ this.runtimeKernel = deps.runtimeKernel ?? new RuntimeKernel({ ...deps });
165
153
  }
166
154
  // --------------------------------------------------------------------------
167
155
  // Session lifecycle
@@ -250,25 +238,55 @@ export class SessionManager {
250
238
  ...(header.projectId !== undefined ? { sourceProjectId: header.projectId } : {}),
251
239
  });
252
240
  }
241
+ async resolveChildToolNames(parentSessionId, parentHeader, definition) {
242
+ const availableChildTools = await this.childToolsForSession(parentSessionId);
243
+ assertAgentDefinitionRunnable({
244
+ definition,
245
+ tools: availableChildTools,
246
+ worktreeChildExecutorAvailable: await this.isWorktreeChildExecutorAvailable(parentHeader),
247
+ });
248
+ return buildToolsForAgentDefinition(availableChildTools, definition).map((tool) => tool.name);
249
+ }
253
250
  async finalizeAndListChildTurnArtifacts(sessionId, turnId, status) {
254
251
  const list = this.deps.listArtifactsForTurn;
255
252
  if (!list)
256
253
  return [];
257
- const artifacts = await list(sessionId, turnId);
258
- if (!isTerminalRunStatus(status) || !this.hasWorktreePatchWriteBack())
259
- return artifacts;
260
- const header = await this.deps.store.readHeader(sessionId);
261
- if (!header.subagentWorkspace)
262
- return artifacts;
263
- const existing = artifacts.find((artifact) => artifact.source === 'subagent_writeback');
264
- if (existing)
265
- return artifacts;
266
- await this.finalizeChildWorkspacePatches(sessionId);
267
- const finalized = await list(sessionId, turnId);
268
- if (!finalized.some((artifact) => artifact.source === 'subagent_writeback')) {
269
- throw new Error(`Child Session ${sessionId} cannot reconstruct the historical workspace patch for Turn ${turnId}`);
270
- }
271
- return finalized;
254
+ let artifacts = await list(sessionId, turnId);
255
+ if (isTerminalRunStatus(status) && this.hasWorktreePatchWriteBack()) {
256
+ const header = await this.deps.store.readHeader(sessionId);
257
+ if (header.subagentWorkspace &&
258
+ !artifacts.some((artifact) => artifact.source === 'subagent_writeback')) {
259
+ await this.finalizeChildWorkspacePatches(sessionId);
260
+ artifacts = await list(sessionId, turnId);
261
+ if (!artifacts.some((artifact) => artifact.source === 'subagent_writeback')) {
262
+ throw new Error(`Child Session ${sessionId} cannot reconstruct the historical workspace patch for Turn ${turnId}`);
263
+ }
264
+ }
265
+ }
266
+ return artifacts.filter(isArtifactChildResultOutput);
267
+ }
268
+ /**
269
+ * The Session's invocations, enumerated from the events that define them.
270
+ *
271
+ * There is no run table to consult: an invocation exists because its opening
272
+ * fact does, and it has ended because its terminal event does.
273
+ */
274
+ async listInvocations(sessionId) {
275
+ const store = this.deps.runtimeEventStore;
276
+ if (!store)
277
+ return [];
278
+ return store.listSessionInvocations(sessionId);
279
+ }
280
+ /** One invocation by run id. Absent means no opening fact ever named it. */
281
+ async readInvocation(sessionId, runId) {
282
+ const store = this.deps.runtimeEventStore;
283
+ const invocation = store ? await readRunInvocation(store, sessionId, runId) : undefined;
284
+ if (!invocation) {
285
+ const error = new Error(`AgentRun ${runId} not found`);
286
+ error.code = 'ENOENT';
287
+ throw error;
288
+ }
289
+ return invocation;
272
290
  }
273
291
  /** Publish the recoverable write-back owed by the latest terminal worktree child Run. */
274
292
  async finalizeChildWorkspacePatches(sessionId) {
@@ -278,12 +296,10 @@ export class SessionManager {
278
296
  const binding = header.subagentWorkspace;
279
297
  if (!binding)
280
298
  return;
281
- const latest = (await this.deps.runStore.listSessionRuns(sessionId))
282
- .filter(isSessionInlineRun)
283
- .sort((left, right) => right.createdAt - left.createdAt || right.runId.localeCompare(left.runId))[0];
299
+ const latest = latestInvocation((await this.listInvocations(sessionId)).filter((run) => isSessionInlineInvocation(run.opening)));
284
300
  if (!latest)
285
301
  return;
286
- if (!isTerminalRunStatus(latest.status)) {
302
+ if (!latest.terminalEvent) {
287
303
  throw new Error(`Child Session ${sessionId} cannot finalize its workspace while Run ${latest.runId} is nonterminal`);
288
304
  }
289
305
  const artifacts = await this.deps.listArtifactsForTurn(sessionId, latest.turnId);
@@ -317,7 +333,17 @@ export class SessionManager {
317
333
  }
318
334
  async transitionSessionConfiguration(sessionId, input) {
319
335
  const store = this.requireSessionConfigurationStore();
320
- const next = await this.commitExecutionResourceTransition(sessionId, input.configuration.permissionMode, async () => {
336
+ const observed = await store.readHeaderRecordSnapshot(sessionId);
337
+ if (observed.revision !== input.expectedRevision) {
338
+ throw new SessionConfigurationRevisionConflictError(input.expectedRevision, observed.revision);
339
+ }
340
+ if (!input.clearConnectionBlock &&
341
+ sessionConfigurationMatches(observed.header, input.configuration)) {
342
+ return observed;
343
+ }
344
+ const permissionModeOnly = input.permissionModeOnly &&
345
+ sessionConfigurationMatchesExceptPermissionMode(observed.header, input.configuration);
346
+ const prepareCommit = async () => {
321
347
  const current = await store.readHeaderRecordSnapshot(sessionId);
322
348
  if (current.revision !== input.expectedRevision) {
323
349
  throw new SessionConfigurationRevisionConflictError(input.expectedRevision, current.revision);
@@ -347,7 +373,10 @@ export class SessionManager {
347
373
  }
348
374
  : { kind: 'preserve' },
349
375
  });
350
- });
376
+ };
377
+ const next = permissionModeOnly
378
+ ? await this.commitExecutionBoundaryTransition(sessionId, await this.deps.store.readExecutionBoundary(sessionId), input.configuration.permissionMode, prepareCommit)
379
+ : await this.commitExecutionResourceTransition(sessionId, input.configuration.permissionMode, prepareCommit);
351
380
  this.runtimeKernel.updateCachedHeader(sessionId, next.header);
352
381
  return next;
353
382
  }
@@ -405,10 +434,31 @@ export class SessionManager {
405
434
  async getMessages(sessionId) {
406
435
  return (await this.getSessionView(sessionId)).messages;
407
436
  }
437
+ /**
438
+ * Recall's narrowing: which of the given Sessions could hold a message
439
+ * containing a folded term, from the ledger and the pre-ledger transcript
440
+ * tables together. A superset of the Sessions that match, never an answer;
441
+ * `undefined` means the fast path declined and recall reads every transcript.
442
+ */
443
+ async listRecallCandidateSessions(sessionIds, terms) {
444
+ return listRecallCandidateSessions(this.recallCandidateStores(), sessionIds, terms);
445
+ }
446
+ /** Corpus size for recall's idf term, across both transcript stores. */
447
+ async countRecallSearchableMessages(sessionIds) {
448
+ return countRecallSearchableMessages(this.recallCandidateStores(), sessionIds);
449
+ }
450
+ recallCandidateStores() {
451
+ return {
452
+ transcripts: this.deps.store,
453
+ ...(this.deps.runtimeEventStore ? { ledger: this.deps.runtimeEventStore } : {}),
454
+ };
455
+ }
408
456
  async getContextDiagnostics(sessionId) {
409
457
  const runStore = this.deps.runStore;
410
458
  return runStore
411
- ? readLatestContextDiagnostics(runStore, sessionId)
459
+ ? readLatestContextDiagnostics(runStore, sessionId, (await this.listInvocations(sessionId))
460
+ .filter((run) => isSessionInlineInvocation(run.opening))
461
+ .map((run) => run.runId))
412
462
  : { status: 'unavailable', reason: 'trace_unavailable' };
413
463
  }
414
464
  async listTurns(sessionId) {
@@ -520,9 +570,6 @@ export class SessionManager {
520
570
  const interrupted = (await listSessionsForRecovery(this.deps.store, policy)).filter((session) => !session.isArchived);
521
571
  const recovered = new Set();
522
572
  for (const session of interrupted) {
523
- if (this.runtimeLedgerRepair) {
524
- await recoverOr(policy, () => this.runtimeLedgerRepair.repairSteeringMessagesOnce(session.id), 0);
525
- }
526
573
  if (this.runtimeKernel.hasActiveRuns(session.id))
527
574
  continue;
528
575
  // Fail-closed: a request whose live owner died can never be answered, so
@@ -542,39 +589,15 @@ export class SessionManager {
542
589
  }), undefined);
543
590
  }
544
591
  }
545
- if (this.deps.planStore) {
546
- const planRecovery = await recoverOr(policy, () => this.deps.planStore.interruptActiveExecution(session.id, 'runtime_recovery'), null);
547
- if (planRecovery)
548
- recovered.add(session.id);
549
- }
550
592
  if (this.deps.shellRuns) {
551
593
  const recoveredShellRuns = await recoverOr(policy, () => this.deps.shellRuns.recoverOrphanedSession(session.id), 0);
552
594
  if (recoveredShellRuns > 0)
553
595
  recovered.add(session.id);
554
596
  }
555
- let messages = [];
556
- let messagesReadable = true;
557
- try {
558
- messages =
559
- policy.kind === 'strict'
560
- ? await policy.stores.sessionStore.readMessagesForRecovery(session.id)
561
- : await this.deps.store.readMessages(session.id);
562
- }
563
- catch (error) {
564
- if (policy.kind === 'strict')
565
- throw error;
566
- messagesReadable = false;
567
- }
568
- if (session.revisionState === 'preparing' && messagesReadable) {
569
- if (hasRevisionUserMessage(messages)) {
570
- await recoverOr(policy, () => this.commitRevisionVersion(session.id), undefined);
571
- }
572
- else {
573
- await recoverOr(policy, () => this.remove(session.id), undefined);
574
- recovered.add(session.id);
575
- continue;
576
- }
577
- }
597
+ // A revision copy still `preparing` is settled by the Host's revision
598
+ // coordinator, which reads the admission ledger and runs before this
599
+ // recovery. Deciding it a second time here — off a transcript scan, and
600
+ // ending in `remove()` — could only ever contradict it.
578
601
  let continuationClaimRecovered = false;
579
602
  const continuationAuthority = runtimeContinuationAuthority(this.deps.runtimeEventStore);
580
603
  if (this.deps.runStore && continuationAuthority) {
@@ -593,6 +616,24 @@ export class SessionManager {
593
616
  if (continuationClaimRecovered)
594
617
  recovered.add(session.id);
595
618
  }
619
+ if (this.deps.planStore) {
620
+ const preservesHandoff = await recoverOr(policy, async () => {
621
+ if (!continuationAuthority)
622
+ return false;
623
+ const latest = latestInvocation((await this.listInvocations(session.id)).filter((run) => isSessionInlineInvocation(run.opening)));
624
+ if (!latest)
625
+ return false;
626
+ // Only the current logical execution may preserve a session-owned Plan.
627
+ // Read after claim repair: an abandoned successor now has a real failure.
628
+ return Boolean((await readLogicalRuntimeExecutionForRun(continuationAuthority, latest))
629
+ ?.pendingHandoff);
630
+ }, false);
631
+ if (!preservesHandoff) {
632
+ const planRecovery = await recoverOr(policy, () => this.deps.planStore.interruptActiveExecution(session.id, 'runtime_recovery'), null);
633
+ if (planRecovery)
634
+ recovered.add(session.id);
635
+ }
636
+ }
596
637
  if (this.deps.runStore) {
597
638
  const runRecovery = await recoverOr(policy, () => this.recoverAgentRunsFromLedger(session.id, policy), undefined);
598
639
  if (runRecovery?.hasLedger) {
@@ -600,44 +641,23 @@ export class SessionManager {
600
641
  await recoverOr(policy, () => this.updateStatus(session.id, 'active'), undefined);
601
642
  recovered.add(session.id);
602
643
  }
603
- else if (!messagesReadable &&
604
- (session.status === 'running' || session.status === 'waiting_for_user')) {
605
- await recoverOr(policy, () => this.updateStatus(session.id, 'active'), undefined);
606
- recovered.add(session.id);
607
- }
608
644
  continue;
609
645
  }
610
646
  }
611
- if (!messagesReadable) {
612
- if (session.status === 'running' || session.status === 'waiting_for_user') {
613
- // Recovery may run in BACKGROUND startup (#456): re-check for a
614
- // run the user started while this session's recovery was in
615
- // flight, so we never stomp a live run's status.
616
- if (this.runtimeKernel.hasActiveRuns(session.id))
617
- continue;
618
- await recoverOr(policy, () => this.updateStatus(session.id, 'active'), undefined);
619
- recovered.add(session.id);
620
- }
621
- continue;
622
- }
623
- const recoveries = interruptedTurnRecoveries(messages);
624
- if (recoveries.length === 0)
625
- continue;
626
- for (const recovery of recoveries) {
627
- await recoverOr(policy, () => this.appendTurnState(session.id, recovery.turnId, 'failed', recovery.lineage, {
628
- errorClass: recovery.errorClass,
629
- }), undefined);
630
- }
647
+ // No ledger and nothing to recover from it. A Session whose turns were
648
+ // interrupted before this process started is settled by the transcript
649
+ // importer, which converts a turn that never recorded how it ended into
650
+ // the failed terminal fact it actually was — this recovery has no second
651
+ // transcript to read that from.
631
652
  if (session.status === 'running' || session.status === 'waiting_for_user') {
632
- // Same double-check as above: a message sent mid-recovery owns
633
- // the session status now (its own transitions will settle it).
634
- if (this.runtimeKernel.hasActiveRuns(session.id)) {
635
- recovered.add(session.id);
653
+ // Recovery may run in BACKGROUND startup (#456): re-check for a run the
654
+ // user started while this session's recovery was in flight, so we never
655
+ // stomp a live run's status.
656
+ if (this.runtimeKernel.hasActiveRuns(session.id))
636
657
  continue;
637
- }
638
658
  await recoverOr(policy, () => this.updateStatus(session.id, 'active'), undefined);
659
+ recovered.add(session.id);
639
660
  }
640
- recovered.add(session.id);
641
661
  }
642
662
  return [...recovered];
643
663
  }
@@ -674,6 +694,23 @@ export class SessionManager {
674
694
  return this.runtimeKernel.listActiveInteractions?.(sessionId) ?? [];
675
695
  }
676
696
  async setPermissionMode(sessionId, mode) {
697
+ const readHeaderRecordSnapshot = this.deps.store.readHeaderRecordSnapshot?.bind(this.deps.store);
698
+ if (!readHeaderRecordSnapshot || !this.deps.store.updateSessionConfiguration) {
699
+ // Temporary compatibility bridge for SessionStore embeddings that predate
700
+ // versioned configuration authority. A follow-up PR will shortly remove
701
+ // setPermissionMode and this redundant fallback after callers migrate.
702
+ return this.setPermissionModeWithLegacyStore(sessionId, mode);
703
+ }
704
+ const current = await readHeaderRecordSnapshot(sessionId);
705
+ const next = await this.transitionSessionConfiguration(sessionId, {
706
+ expectedRevision: current.revision,
707
+ clearConnectionBlock: false,
708
+ permissionModeOnly: true,
709
+ configuration: sessionConfigurationWithPermissionMode(current.header, mode),
710
+ });
711
+ return headerToSummary(next.header);
712
+ }
713
+ async setPermissionModeWithLegacyStore(sessionId, mode) {
677
714
  const previous = await this.deps.store.readHeader(sessionId);
678
715
  const boundary = await this.deps.store.readExecutionBoundary(sessionId);
679
716
  const leavingDeepResearch = isDeepResearchSession(previous.labels) && mode !== 'explore';
@@ -682,54 +719,75 @@ export class SessionManager {
682
719
  !leavingDeepResearch) {
683
720
  return headerToSummary(previous);
684
721
  }
685
- if (this.runtimeKernel.hasActiveRuns(sessionId)) {
686
- throw new Error('当前任务正在运行,等结束后再切换权限模式。');
687
- }
688
- if (previous.status === 'waiting_for_user') {
689
- throw new Error('当前有工具调用正在等待确认,处理后再切换权限模式。');
690
- }
691
722
  const labels = leavingDeepResearch
692
723
  ? previous.labels.filter((label) => label !== DEEP_RESEARCH_SESSION_LABEL)
693
724
  : previous.labels;
694
- const nextKind = mode === 'bypass' ? 'bypass' : 'managed';
695
- await this.commitExecutionBoundaryTransition(sessionId, boundary, nextKind, {
696
- permissionMode: mode,
697
- labels,
725
+ const kind = mode === 'bypass' ? 'bypass' : 'managed';
726
+ await this.commitExecutionBoundaryTransition(sessionId, boundary, mode, async () => {
727
+ const current = await this.deps.store.readHeader(sessionId);
728
+ if (current.status === 'waiting_for_user') {
729
+ throw new SessionConfigurationTransitionError('session_busy', 'Session has a pending Interaction');
730
+ }
731
+ return () => this.deps.store.setExecutionBoundaryKind(sessionId, kind, {
732
+ permissionMode: mode,
733
+ labels,
734
+ });
698
735
  });
699
736
  const next = await this.deps.store.readHeader(sessionId);
700
737
  this.runtimeKernel.updateCachedHeader(sessionId, next);
701
- await this.deps.store
702
- .appendMessage(sessionId, {
703
- type: 'system_note',
704
- id: this.deps.newId(),
705
- ts: this.deps.now(),
706
- kind: 'mode_change',
707
- data: { from: previous.permissionMode, to: mode },
708
- })
709
- .catch(() => undefined);
710
738
  return headerToSummary(next);
711
739
  }
712
740
  async setExecutionBoundaryKind(sessionId, kind) {
713
- if (this.runtimeKernel.hasActiveRuns(sessionId)) {
714
- throw new Error('当前任务正在运行,等结束后再切换沙箱边界。');
715
- }
741
+ const current = await this.deps.store.readExecutionBoundary(sessionId);
716
742
  const header = await this.deps.store.readHeader(sessionId);
743
+ // Managed includes Explore. Match Storage's default projection, then pass
744
+ // it explicitly so classification and commit describe the same transition.
745
+ const permissionMode = kind === 'bypass'
746
+ ? 'bypass'
747
+ : header.permissionMode === 'bypass'
748
+ ? 'ask'
749
+ : header.permissionMode;
750
+ const narrows = narrowsExecutionAuthority(current, permissionMode);
751
+ if (narrows && this.runtimeKernel.hasActiveRuns(sessionId)) {
752
+ throw new SessionConfigurationTransitionError('session_busy', 'Execution boundary cannot change while a Turn is running');
753
+ }
717
754
  if (header.status === 'waiting_for_user') {
718
- throw new Error('当前有沙箱边界请求正在等待确认,处理后再切换。');
755
+ throw new SessionConfigurationTransitionError('session_busy', 'Execution boundary cannot change while an Interaction is pending');
719
756
  }
720
- const current = await this.deps.store.readExecutionBoundary(sessionId);
721
- const boundary = await this.commitExecutionBoundaryTransition(sessionId, current, kind);
757
+ const boundary = await this.commitExecutionBoundaryTransition(sessionId, current, permissionMode, async () => () => this.deps.store.setExecutionBoundaryKind(sessionId, kind, { permissionMode }));
722
758
  return boundary;
723
759
  }
724
- async commitExecutionBoundaryTransition(sessionId, current, kind, projection) {
725
- const nextPermissionMode = projection?.permissionMode ?? (kind === 'bypass' ? 'bypass' : 'ask');
726
- return this.commitExecutionResourceTransition(sessionId, nextPermissionMode, async () => {
760
+ async commitExecutionBoundaryTransition(sessionId, current, nextPermissionMode, prepareCommit) {
761
+ const prepareBoundaryCommit = async () => {
727
762
  const latest = await this.deps.store.readExecutionBoundary(sessionId);
728
763
  if (latest.revision !== current.revision) {
729
764
  throw new SessionConfigurationTransitionError('operation_conflict', 'Session execution boundary changed before the transition');
730
765
  }
731
- return () => this.deps.store.setExecutionBoundaryKind(sessionId, kind, projection);
732
- });
766
+ return prepareCommit();
767
+ };
768
+ if (!narrowsExecutionAuthority(current, nextPermissionMode)) {
769
+ // Widening needs no quiescence. Every consumer that froze the old, tighter
770
+ // boundary fails closed against a wider one, and a descendant's admission
771
+ // check only gets easier — so the grant is just written. Waiting for the
772
+ // Session to go idle is what let a running Turn, or a Goal's continuation
773
+ // holding a claim near-continuously, keep the user's own grant out.
774
+ if (!this.runtimeKernel.runSessionAdmissionMutation) {
775
+ throw new SessionConfigurationTransitionError('operation_unavailable', 'Session boundary changes require Runtime admission mutation authority');
776
+ }
777
+ // Serialize the revision check through commit without requiring an idle
778
+ // Turn. Otherwise two unversioned writes can both pass the check, then
779
+ // the later write can narrow the first grant using its stale classification.
780
+ const result = await this.runtimeKernel.runSessionAdmissionMutation([sessionId], async () => {
781
+ const commit = await prepareBoundaryCommit();
782
+ return commit();
783
+ });
784
+ // Not `disposeBackend`: disposing a live Turn's backend stops that Turn.
785
+ // Invalidation refreshes it now when the Session is idle, and otherwise
786
+ // defers to the next activation, which disposes before it starts.
787
+ await this.runtimeKernel.invalidateBackend(sessionId);
788
+ return result;
789
+ }
790
+ return this.commitExecutionResourceTransition(sessionId, nextPermissionMode, prepareBoundaryCommit);
733
791
  }
734
792
  async commitExecutionResourceTransition(sessionId, nextPermissionMode, prepareCommit) {
735
793
  const initialBoundary = await this.deps.store.readExecutionBoundary(sessionId);
@@ -812,6 +870,30 @@ export class SessionManager {
812
870
  throw error;
813
871
  }
814
872
  }
873
+ /**
874
+ * Fences a Session and every subagent Session under it for one operation.
875
+ *
876
+ * Preparing a bundle reads a Session's whole subtree, and a child holds the
877
+ * result of a tool call its parent made -- so a Turn starting anywhere in
878
+ * that tree while the read is in progress produces a bundle describing two
879
+ * moments. Refuses outright if any of them is already running.
880
+ */
881
+ async runSessionSubtreeQuiescentMutation(sessionId, operation) {
882
+ const descendants = await this.listLinkedDescendantSessionIds(sessionId);
883
+ const fenced = [sessionId, ...descendants];
884
+ return this.runSessionQuiescentMutation(fenced, async () => {
885
+ // Discovered again, now that the fence is held. The first walk happened
886
+ // before it, so a child created in that gap is in the subtree and NOT in
887
+ // what was fenced -- the operation would read it without it being held
888
+ // still. Refusing is the only honest answer: fencing it now would be
889
+ // fencing a set this call never admitted.
890
+ const current = await this.listLinkedDescendantSessionIds(sessionId);
891
+ if (current.length !== descendants.length || current.some((id) => !fenced.includes(id))) {
892
+ throw new SessionConfigurationTransitionError('operation_conflict', 'Session lineage changed while the subtree was being fenced');
893
+ }
894
+ return operation(fenced);
895
+ });
896
+ }
815
897
  async listLinkedDescendantSessionIds(sessionId) {
816
898
  const sessions = await this.deps.store.list();
817
899
  const childrenByParent = new Map();
@@ -851,29 +933,22 @@ export class SessionManager {
851
933
  throw new PlanConflictError('Linked child Sessions cannot enter Plan mode');
852
934
  }
853
935
  if (this.runtimeKernel.hasActiveRuns(sessionId)) {
854
- throw new Error('当前任务正在运行,等结束后再切换协作模式。');
936
+ throw new SessionConfigurationTransitionError('session_busy', 'Collaboration mode cannot change while a Turn is running');
855
937
  }
856
938
  if (previous.status === 'waiting_for_user') {
857
- throw new Error('当前有工具调用正在等待确认,处理后再切换协作模式。');
939
+ throw new SessionConfigurationTransitionError('session_busy', 'Collaboration mode cannot change while an Interaction is pending');
858
940
  }
859
941
  const planState = await this.requirePlanStore().readState(sessionId);
860
942
  if (mode === 'plan' && planState.activeExecutionId) {
861
- throw new Error('当前计划仍在执行,结束或中断后才能切换到 Plan Mode。');
943
+ throw new SessionConfigurationTransitionError('session_busy', 'An active Plan execution prevents entering Plan mode');
862
944
  }
863
945
  const latestProposal = planState.proposals.find((proposal) => proposal.proposalId === planState.latestProposalId);
864
946
  if (mode === 'agent' && latestProposal?.status === 'pending_approval') {
865
- throw new Error('当前方案正在等待审批,请明确放弃方案后再退出 Plan Mode。');
947
+ throw new SessionConfigurationTransitionError('operation_conflict', 'A pending Plan proposal must be resolved before leaving Plan mode');
866
948
  }
867
949
  const next = await this.deps.store.updateHeader(sessionId, {
868
950
  collaborationMode: mode,
869
951
  });
870
- await this.deps.store.appendMessage(sessionId, {
871
- type: 'system_note',
872
- id: this.deps.newId(),
873
- ts: this.deps.now(),
874
- kind: 'mode_change',
875
- data: { dimension: 'collaboration', from, to: mode },
876
- });
877
952
  this.runtimeKernel.updateCachedHeader(sessionId, next);
878
953
  await this.runtimeKernel.disposeBackend(sessionId);
879
954
  return headerToSummary(next);
@@ -890,13 +965,6 @@ export class SessionManager {
890
965
  throw new Error('Cannot change orchestration mode while a tool call awaits confirmation.');
891
966
  }
892
967
  const next = await this.deps.store.updateHeader(sessionId, { orchestrationMode: mode });
893
- await this.deps.store.appendMessage(sessionId, {
894
- type: 'system_note',
895
- id: this.deps.newId(),
896
- ts: this.deps.now(),
897
- kind: 'mode_change',
898
- data: { dimension: 'orchestration', from, to: mode },
899
- });
900
968
  this.runtimeKernel.updateCachedHeader(sessionId, next);
901
969
  return headerToSummary(next);
902
970
  }
@@ -931,7 +999,7 @@ export class SessionManager {
931
999
  if (!replay)
932
1000
  await this.runtimeKernel.disposeBackend(sessionId);
933
1001
  const result = await this.requirePlanStore().abandonProposal(input);
934
- await this.finalizePlanAbandonment(sessionId, operationId, replay);
1002
+ await this.finalizePlanAbandonment(sessionId);
935
1003
  return result;
936
1004
  }
937
1005
  async approvePlan(input) {
@@ -992,6 +1060,37 @@ export class SessionManager {
992
1060
  }
993
1061
  return planStore.interruptActiveExecution(sessionId, reason, operationId);
994
1062
  }
1063
+ async settleActivePlanExecutionAfterRootTurn(sessionId, rootStatus, operationId) {
1064
+ // A surface without Plan authority has no Plan state to settle, and the
1065
+ // natural "unavailable" error must not be raised into the root Turn's
1066
+ // terminal transition.
1067
+ if (!this.hasPlanAuthority())
1068
+ return null;
1069
+ if (rootStatus === 'failed' || rootStatus === 'cancelled') {
1070
+ return this.interruptActivePlanExecution(sessionId, rootStatus === 'cancelled'
1071
+ ? 'Plan execution was interrupted because the Runtime root Turn was cancelled.'
1072
+ : 'Plan execution was interrupted because the Runtime root Turn failed.', operationId);
1073
+ }
1074
+ const planStore = this.requirePlanStore();
1075
+ const state = await planStore.readState(sessionId);
1076
+ const execution = activePlanExecution(state);
1077
+ if (!execution)
1078
+ return null;
1079
+ const terminal = execution.steps.every((step) => step.status === 'completed' || step.status === 'skipped');
1080
+ if (!terminal) {
1081
+ return this.interruptActivePlanExecution(sessionId, 'Plan execution was interrupted because the Runtime root Turn completed before all Plan steps reached a terminal state.', operationId);
1082
+ }
1083
+ // The root Turn is already terminal, so there is no live Run to stop and no
1084
+ // backend to dispose. The write stays idempotent on both routes: replaying
1085
+ // the operation is reconciled by the store's receipt, and reaching this line
1086
+ // again after the commit finds no active execution left to update.
1087
+ return planStore.updateExecution({
1088
+ operationId,
1089
+ sessionId,
1090
+ executionId: execution.executionId,
1091
+ steps: execution.steps.map((step) => ({ id: step.id, status: step.status })),
1092
+ });
1093
+ }
995
1094
  async remove(sessionId) {
996
1095
  const shellRunClose = await this.deps.shellRuns?.terminateSession(sessionId);
997
1096
  try {
@@ -1030,12 +1129,45 @@ export class SessionManager {
1030
1129
  : options.admitTurn;
1031
1130
  yield* this.runtimeKernel.startTurn(sessionId, input, { ...options, admitTurn });
1032
1131
  }
1033
- async planSafeBoundaryContinuation(sessionId, input) {
1132
+ async planSafeBoundaryContinuation(sessionId, input, preview) {
1133
+ let admissionRoute;
1134
+ try {
1135
+ if (!this.deps.runStore)
1136
+ throw new Error('AgentRunStore is not configured');
1137
+ const [header, invocations] = await Promise.all([
1138
+ this.deps.store.readHeader(sessionId),
1139
+ this.listInvocations(sessionId),
1140
+ ]);
1141
+ const targetProviderStateIdentity = (await this.deps.backends.prepare(header.backend, {
1142
+ sessionId,
1143
+ workspaceRoot: header.workspaceRoot,
1144
+ header,
1145
+ })).providerStateIdentity;
1146
+ admissionRoute = {
1147
+ invocations,
1148
+ targetProviderStateIdentity,
1149
+ targetModelId: header.model,
1150
+ };
1151
+ }
1152
+ catch {
1153
+ const plan = {
1154
+ disposition: 'park',
1155
+ rejectionReasons: ['continuation_authority_unavailable'],
1156
+ diagnostics: [
1157
+ {
1158
+ code: 'continuation_authority_unavailable',
1159
+ message: 'provider replay admission authority is unavailable',
1160
+ },
1161
+ ],
1162
+ };
1163
+ this.recordContinuationPlan(sessionId, input.sourceRunId, plan);
1164
+ return plan;
1165
+ }
1034
1166
  const planner = new RuntimeContinuationPlanner({
1035
- readSourceRun: async (targetSessionId, runId) => {
1167
+ readSourceInvocation: async (targetSessionId, runId) => {
1036
1168
  if (!this.deps.runStore)
1037
1169
  throw new Error('AgentRunStore is not configured');
1038
- return this.deps.runStore.readRun(targetSessionId, runId);
1170
+ return this.readInvocation(targetSessionId, runId);
1039
1171
  },
1040
1172
  readImmutableRuntimePrefix: async (prefixInput) => {
1041
1173
  const authority = runtimeContinuationAuthority(this.deps.runtimeEventStore);
@@ -1053,17 +1185,25 @@ export class SessionManager {
1053
1185
  findExistingContinuation: async (targetSessionId, sourceRunId, sourceRuntimeEventHighWater) => {
1054
1186
  if (!this.deps.runStore)
1055
1187
  throw new Error('AgentRunStore is not configured');
1056
- return (await this.deps.runStore.listSessionRuns(targetSessionId)).find((run) => run.continuationSource?.sourceRunId === sourceRunId &&
1057
- run.continuationSource.sourceRuntimeEventHighWater === sourceRuntimeEventHighWater);
1188
+ return (await this.listInvocations(targetSessionId)).find((run) => {
1189
+ const source = run.opening.source;
1190
+ return (source.kind !== 'fresh' &&
1191
+ source.sourceRunId === sourceRunId &&
1192
+ source.sourceRuntimeEventHighWater === sourceRuntimeEventHighWater);
1193
+ });
1058
1194
  },
1059
1195
  newId: this.deps.newId,
1060
1196
  });
1061
- const plan = await planner.plan({ sessionId, ...input });
1062
- this.recordContinuationPlan(sessionId, input.sourceRunId, plan);
1197
+ const plannerInput = { sessionId, admissionRoute, ...input };
1198
+ const plan = preview
1199
+ ? await planner.previewHandoff(plannerInput, preview)
1200
+ : await planner.plan(plannerInput);
1201
+ if (!preview)
1202
+ this.recordContinuationPlan(sessionId, input.sourceRunId, plan);
1063
1203
  return plan;
1064
1204
  }
1065
- async planAuthoritativeSafeBoundaryContinuation(sessionId, input) {
1066
- if (this.deps.safeBoundaryResumeEnabled !== true) {
1205
+ async planAuthoritativeSafeBoundaryContinuation(sessionId, input, preview) {
1206
+ if (input.purpose !== 'handoff' && this.deps.safeBoundaryResumeEnabled !== true) {
1067
1207
  const plan = resumeFeatureDisabledPlan();
1068
1208
  this.recordContinuationPlan(sessionId, input.sourceRunId, plan);
1069
1209
  return plan;
@@ -1082,9 +1222,7 @@ export class SessionManager {
1082
1222
  this.recordContinuationPlan(sessionId, input.sourceRunId, plan);
1083
1223
  return plan;
1084
1224
  }
1085
- const sourceRun = await this.deps.runStore
1086
- .readRun(sessionId, input.sourceRunId)
1087
- .catch(() => undefined);
1225
+ const sourceRun = await this.readInvocation(sessionId, input.sourceRunId).catch(() => undefined);
1088
1226
  if (!sourceRun) {
1089
1227
  const plan = {
1090
1228
  disposition: 'park',
@@ -1096,7 +1234,7 @@ export class SessionManager {
1096
1234
  this.recordContinuationPlan(sessionId, input.sourceRunId, plan);
1097
1235
  return plan;
1098
1236
  }
1099
- if (!sourceRun.workspaceIdentity) {
1237
+ if (!sourceRun.opening.configuration.workspaceIdentity) {
1100
1238
  const plan = {
1101
1239
  disposition: 'park',
1102
1240
  rejectionReasons: ['workspace_identity_missing'],
@@ -1130,9 +1268,10 @@ export class SessionManager {
1130
1268
  return plan;
1131
1269
  }
1132
1270
  return this.planSafeBoundaryContinuation(sessionId, {
1271
+ ...(input.purpose ? { purpose: input.purpose } : {}),
1133
1272
  sourceRunId: input.sourceRunId,
1134
1273
  currentCwd: header.cwd,
1135
- sourceWorkspaceIdentity: sourceRun.workspaceIdentity,
1274
+ sourceWorkspaceIdentity: sourceRun.opening.configuration.workspaceIdentity,
1136
1275
  currentWorkspaceIdentity: observation.workspaceIdentity,
1137
1276
  backgroundOperationsSettled: observation.backgroundOperationsSettled,
1138
1277
  availableToolNames: observation.availableToolNames,
@@ -1142,7 +1281,7 @@ export class SessionManager {
1142
1281
  ...(observation.workspaceCheckpoint
1143
1282
  ? { workspaceCheckpoint: observation.workspaceCheckpoint }
1144
1283
  : {}),
1145
- });
1284
+ }, preview);
1146
1285
  }
1147
1286
  async planLatestAuthoritativeSafeBoundaryContinuation(sessionId) {
1148
1287
  if (this.deps.safeBoundaryResumeEnabled !== true) {
@@ -1164,9 +1303,11 @@ export class SessionManager {
1164
1303
  this.recordContinuationPlan(sessionId, '', plan);
1165
1304
  return plan;
1166
1305
  }
1167
- const candidate = (await this.deps.runStore.listSessionRuns(sessionId))
1168
- .filter((run) => (run.status === 'failed' || run.status === 'cancelled') && isSessionInlineRun(run))
1169
- .sort((left, right) => right.createdAt - left.createdAt || right.runId.localeCompare(left.runId))[0];
1306
+ const candidate = latestInvocation((await this.listInvocations(sessionId)).filter((run) => {
1307
+ const outcome = runtimeInvocationOutcome(run);
1308
+ return ((outcome === 'failed' || outcome === 'cancelled') &&
1309
+ isSessionInlineInvocation(run.opening));
1310
+ }));
1170
1311
  if (!candidate) {
1171
1312
  const plan = {
1172
1313
  disposition: 'park',
@@ -1185,6 +1326,37 @@ export class SessionManager {
1185
1326
  sourceRunId: candidate.runId,
1186
1327
  });
1187
1328
  }
1329
+ requestRunHandoff(sessionId, runId, intent, signal) {
1330
+ const request = this.runtimeKernel.requestRunHandoff?.(sessionId, runId, intent, signal);
1331
+ if (!request)
1332
+ return undefined;
1333
+ let verified = false;
1334
+ const ready = request.ready.then(async (held) => {
1335
+ if (!held)
1336
+ return false;
1337
+ try {
1338
+ const assessment = await this.planAuthoritativeSafeBoundaryContinuation(sessionId, { sourceRunId: runId, purpose: 'handoff' }, request.preview());
1339
+ request.preview(); // Cancellation or Stop may have released the gate during inspection.
1340
+ verified = assessment.disposition === 'continue' && !signal.aborted;
1341
+ if (!verified)
1342
+ request.cancel();
1343
+ return verified;
1344
+ }
1345
+ catch {
1346
+ request.cancel();
1347
+ return false;
1348
+ }
1349
+ });
1350
+ return {
1351
+ ready,
1352
+ sealed: request.sealed,
1353
+ commit: () => verified && request.commit(),
1354
+ cancel: () => {
1355
+ verified = false;
1356
+ request.cancel();
1357
+ },
1358
+ };
1359
+ }
1188
1360
  async *resumeSafeBoundaryContinuation(continuation, options = {}) {
1189
1361
  const resume = this.runtimeKernel.resumeContinuation;
1190
1362
  if (!resume)
@@ -1242,6 +1414,9 @@ export class SessionManager {
1242
1414
  // Operational telemetry must never alter resume correctness.
1243
1415
  }
1244
1416
  }
1417
+ runCoordinationOperation(sessionId, input, options, execute) {
1418
+ return this.runtimeKernel.runCoordinationOperation(sessionId, input, options, execute);
1419
+ }
1245
1420
  async *compactSession(sessionId, input = {}) {
1246
1421
  yield* this.runtimeKernel.compactSession(sessionId, input);
1247
1422
  }
@@ -1315,7 +1490,7 @@ export class SessionManager {
1315
1490
  }
1316
1491
  const [parentHeader, sourceRun, parentBoundary] = await Promise.all([
1317
1492
  this.deps.store.readHeader(input.source.sessionId),
1318
- this.deps.runStore.readRun(input.source.sessionId, input.source.runId),
1493
+ this.readInvocation(input.source.sessionId, input.source.runId),
1319
1494
  this.deps.store.readExecutionBoundary(input.source.sessionId),
1320
1495
  ]);
1321
1496
  if (sourceRun.sessionId !== input.source.sessionId ||
@@ -1335,13 +1510,13 @@ export class SessionManager {
1335
1510
  const definition = resolvedPreset
1336
1511
  ? requireBuiltinAgentDefinitionByProfile(resolvedPreset.profile)
1337
1512
  : requireBuiltinAgentDefinition(input.agentId);
1338
- const availableChildTools = await this.childToolsForSession(input.source.sessionId);
1339
- assertAgentDefinitionRunnable({
1340
- definition,
1341
- tools: availableChildTools,
1342
- worktreeChildExecutorAvailable: await this.isWorktreeChildExecutorAvailable(parentHeader),
1343
- });
1344
- const resolvedToolNames = buildToolsForAgentDefinition(availableChildTools, definition).map((tool) => tool.name);
1513
+ const executorId = input.executorId ?? (resolvedPreset ? undefined : parentHeader.executorId);
1514
+ if (executorId) {
1515
+ this.deps.assertChildExecutorAvailable?.(input.source.sessionId, executorId);
1516
+ }
1517
+ const resolvedToolNames = executorId
1518
+ ? []
1519
+ : await this.resolveChildToolNames(input.source.sessionId, parentHeader, definition);
1345
1520
  const childPermissionMode = parentHeader.permissionMode === 'bypass' ? 'bypass' : definition.permissionMode;
1346
1521
  const initialTurnId = this.deps.newId();
1347
1522
  const initialRunId = this.deps.newId();
@@ -1367,6 +1542,7 @@ export class SessionManager {
1367
1542
  toolNames: resolvedToolNames,
1368
1543
  categoryPolicy: {},
1369
1544
  systemPrompt: definition.systemPrompt,
1545
+ executorId: executorId ?? null,
1370
1546
  ...(resolvedPreset
1371
1547
  ? {
1372
1548
  preset: {
@@ -1397,23 +1573,32 @@ export class SessionManager {
1397
1573
  cwd: workspace?.worktreePath ?? parentHeader.cwd,
1398
1574
  ...(parentHeader.projectId !== undefined ? { projectId: parentHeader.projectId } : {}),
1399
1575
  name: resolvedPreset?.name ?? definition.name,
1400
- ...(resolvedPreset
1401
- ? { llmConnectionId: resolvedPreset.connectionId }
1402
- : parentHeader.llmConnectionId === undefined
1403
- ? {}
1404
- : { llmConnectionId: parentHeader.llmConnectionId }),
1405
- llmConnectionSlug: resolvedPreset?.connectionSlug ?? parentHeader.llmConnectionSlug,
1406
- model: resolvedPreset?.model ?? parentHeader.model,
1407
- ...(resolvedPreset
1408
- ? resolvedPreset.thinkingLevel !== undefined
1409
- ? { thinkingLevel: resolvedPreset.thinkingLevel }
1410
- : {}
1411
- : parentHeader.thinkingLevel !== undefined
1412
- ? { thinkingLevel: parentHeader.thinkingLevel }
1413
- : {}),
1576
+ ...(executorId
1577
+ ? {
1578
+ executorId,
1579
+ llmConnectionSlug: `executor:${executorId}`,
1580
+ model: executorId,
1581
+ }
1582
+ : {
1583
+ ...(resolvedPreset
1584
+ ? { llmConnectionId: resolvedPreset.connectionId }
1585
+ : parentHeader.llmConnectionId === undefined
1586
+ ? {}
1587
+ : { llmConnectionId: parentHeader.llmConnectionId }),
1588
+ llmConnectionSlug: resolvedPreset?.connectionSlug ?? parentHeader.llmConnectionSlug,
1589
+ model: resolvedPreset?.model ?? parentHeader.model,
1590
+ ...(resolvedPreset
1591
+ ? resolvedPreset.thinkingLevel !== undefined
1592
+ ? { thinkingLevel: resolvedPreset.thinkingLevel }
1593
+ : {}
1594
+ : parentHeader.thinkingLevel !== undefined
1595
+ ? { thinkingLevel: parentHeader.thinkingLevel }
1596
+ : {}),
1597
+ }),
1414
1598
  permissionMode: childPermissionMode,
1415
1599
  collaborationMode: 'agent',
1416
1600
  orchestrationMode: 'default',
1601
+ toolMode: parentHeader.toolMode ?? DEFAULT_TOOL_MODE,
1417
1602
  subagentParent: {
1418
1603
  kind: 'subagent',
1419
1604
  parentSessionId: input.source.sessionId,
@@ -1597,7 +1782,7 @@ export class SessionManager {
1597
1782
  });
1598
1783
  return readyNotification;
1599
1784
  };
1600
- let run = await this.deps.runStore.readRun(child.id, claim.targetRunId).catch((error) => {
1785
+ let run = await this.readInvocation(child.id, claim.targetRunId).catch((error) => {
1601
1786
  if (isNotFoundError(error))
1602
1787
  return undefined;
1603
1788
  throw error;
@@ -1617,7 +1802,7 @@ export class SessionManager {
1617
1802
  throw new RuntimeMessageAuthorityInvariantError('Hosted retry attempted to start an existing claimed graph Run');
1618
1803
  },
1619
1804
  });
1620
- run = await this.deps.runStore.readRun(child.id, claim.targetRunId);
1805
+ run = await this.readInvocation(child.id, claim.targetRunId);
1621
1806
  this.assertClaimedAgentGraphRun(child, snapshot, claim, run);
1622
1807
  await this.assertClaimedAgentGraphPrompt(child.id, claim.targetTurnId, input.prompt, admission.userMessageId);
1623
1808
  await notifyReady();
@@ -1625,31 +1810,26 @@ export class SessionManager {
1625
1810
  }
1626
1811
  await this.assertClaimedAgentGraphPrompt(child.id, claim.targetTurnId, input.prompt);
1627
1812
  await notifyReady();
1628
- while (!isTerminalRunStatus(run.status) &&
1813
+ while (!run.terminalEvent &&
1629
1814
  this.runtimeKernel.hasActiveRun?.(child.id, run.runId, run.turnId)) {
1630
1815
  await delay(25, undefined, input.abortSignal ? { signal: input.abortSignal } : undefined);
1631
- run = await this.deps.runStore.readRun(child.id, claim.targetRunId);
1816
+ run = await this.readInvocation(child.id, claim.targetRunId);
1632
1817
  }
1633
- if (!isTerminalRunStatus(run.status)) {
1818
+ if (!run.terminalEvent) {
1634
1819
  await this.recoverAgentRunsFromLedger(child.id);
1635
- run = await this.deps.runStore.readRun(child.id, claim.targetRunId);
1820
+ run = await this.readInvocation(child.id, claim.targetRunId);
1636
1821
  }
1637
1822
  this.assertClaimedAgentGraphRun(child, snapshot, claim, run);
1638
1823
  await this.assertClaimedAgentGraphPrompt(child.id, claim.targetTurnId, input.prompt);
1639
1824
  return claimedAgentGraphIntentResult(claim, await this.projectExistingChildSpawn(child, run));
1640
1825
  }
1641
1826
  await this.finalizeChildWorkspacePatches(child.id);
1642
- const [runs, messages] = await Promise.all([
1643
- this.deps.runStore.listSessionRuns(child.id),
1644
- this.deps.store.readMessages(child.id),
1645
- ]);
1646
- const turnOwner = runs.find((candidate) => candidate.turnId === claim.targetTurnId);
1827
+ // An invocation is what makes a Turn exist on the ledger, so the run listing
1828
+ // is the whole occupancy check: a Turn with durable content has one.
1829
+ const turnOwner = (await this.listInvocations(child.id)).find((candidate) => candidate.turnId === claim.targetTurnId);
1647
1830
  if (turnOwner) {
1648
1831
  throw new Error(`Claimed graph turn ${claim.targetTurnId} is already owned by run ${turnOwner.runId}`);
1649
1832
  }
1650
- if (messages.some((message) => 'turnId' in message && message.turnId === claim.targetTurnId)) {
1651
- throw new Error(`Claimed graph turn ${claim.targetTurnId} already has durable messages`);
1652
- }
1653
1833
  if (child.isArchived || child.status === 'aborted') {
1654
1834
  throw new Error('Claimed graph execution target child session is terminated');
1655
1835
  }
@@ -1719,10 +1899,11 @@ export class SessionManager {
1719
1899
  await stopPromise;
1720
1900
  }
1721
1901
  const completedAt = this.deps.now();
1722
- const completedRun = await this.deps.runStore.readRun(child.id, claim.targetRunId);
1902
+ const completedRun = await this.readInvocation(child.id, claim.targetRunId);
1723
1903
  this.assertClaimedAgentGraphRun(child, snapshot, claim, completedRun);
1724
- const failureClass = completedRun.failureClass ?? summary.failureClass;
1725
- const artifacts = await this.finalizeAndListChildTurnArtifacts(child.id, claim.targetTurnId, completedRun.status);
1904
+ const completedFacts = invocationListingFacts(completedRun);
1905
+ const failureClass = completedFacts.failureClass ?? summary.failureClass;
1906
+ const artifacts = await this.finalizeAndListChildTurnArtifacts(child.id, claim.targetTurnId, completedFacts.status);
1726
1907
  return {
1727
1908
  claimId: claim.claimId,
1728
1909
  graphId: claim.graphId,
@@ -1734,7 +1915,7 @@ export class SessionManager {
1734
1915
  profile: snapshot.profile,
1735
1916
  turnId: claim.targetTurnId,
1736
1917
  runId: claim.targetRunId,
1737
- status: agentRunStatusForSpawnResult(completedRun.status),
1918
+ status: agentRunStatusForSpawnResult(completedFacts.status),
1738
1919
  permissionMode: child.permissionMode,
1739
1920
  summary: summary.text(),
1740
1921
  artifactIds: artifacts.map((artifact) => artifact.id),
@@ -1773,17 +1954,18 @@ export class SessionManager {
1773
1954
  return { runId: admission.runId, userMessageId: admission.userMessageId };
1774
1955
  }
1775
1956
  assertClaimedAgentGraphRun(child, snapshot, claim, run) {
1957
+ const lineage = run.opening.lineage;
1776
1958
  if (run.sessionId !== child.id ||
1777
1959
  run.runId !== claim.targetRunId ||
1778
1960
  run.turnId !== claim.targetTurnId ||
1779
- !isSessionInlineRun(run) ||
1780
- run.agentId !== snapshot.agentId ||
1781
- (run.agentName !== undefined && run.agentName !== snapshot.agentName)) {
1961
+ !isSessionInlineInvocation(run.opening) ||
1962
+ lineage?.agentId !== snapshot.agentId ||
1963
+ (lineage?.agentName !== undefined && lineage.agentName !== snapshot.agentName)) {
1782
1964
  throw new Error('Existing AgentRun does not match the claimed graph activation identity');
1783
1965
  }
1784
1966
  }
1785
1967
  async assertClaimedAgentGraphPrompt(sessionId, turnId, prompt, expectedUserMessageId) {
1786
- const messages = await this.deps.store.readMessages(sessionId);
1968
+ const { messages } = await this.getSessionView(sessionId);
1787
1969
  const userMessages = messages.filter((message) => message.type === 'user' && message.turnId === turnId);
1788
1970
  if (expectedUserMessageId !== undefined) {
1789
1971
  if (userMessages.length !== 1 ||
@@ -1806,18 +1988,17 @@ export class SessionManager {
1806
1988
  }
1807
1989
  const [parentHeader, parentRun, parentBoundary] = await Promise.all([
1808
1990
  this.deps.store.readHeader(parentSessionId),
1809
- this.deps.runStore.readRun(parentSessionId, input.spawnedBy.parentRunId),
1991
+ this.readInvocation(parentSessionId, input.spawnedBy.parentRunId),
1810
1992
  this.deps.store.readExecutionBoundary(parentSessionId),
1811
1993
  ]);
1812
1994
  this.assertActiveParentRun(parentSessionId, parentRun, input.spawnedBy.parentTurnId);
1813
1995
  const definition = requireBuiltinAgentDefinitionByProfile(input.agentProfile);
1814
- const availableChildTools = await this.childToolsForSession(parentSessionId);
1815
- assertAgentDefinitionRunnable({
1816
- definition,
1817
- tools: availableChildTools,
1818
- worktreeChildExecutorAvailable: await this.isWorktreeChildExecutorAvailable(parentHeader),
1819
- });
1820
- const resolvedToolNames = buildToolsForAgentDefinition(availableChildTools, definition).map((tool) => tool.name);
1996
+ const executorId = input.executorId ?? (input.resolvedPreset ? undefined : parentHeader.executorId);
1997
+ if (executorId)
1998
+ this.deps.assertChildExecutorAvailable?.(parentSessionId, executorId);
1999
+ const resolvedToolNames = executorId
2000
+ ? []
2001
+ : await this.resolveChildToolNames(parentSessionId, parentHeader, definition);
1821
2002
  const proposedTurnId = input.turnId ?? this.deps.newId();
1822
2003
  const proposedRunId = input.runId ?? this.deps.newId();
1823
2004
  const workspace = await this.provisionChildWorkspace(parentHeader, definition, requestFingerprint);
@@ -1825,23 +2006,32 @@ export class SessionManager {
1825
2006
  cwd: workspace?.worktreePath ?? parentHeader.cwd,
1826
2007
  ...(parentHeader.projectId !== undefined ? { projectId: parentHeader.projectId } : {}),
1827
2008
  name: input.name ?? input.resolvedPreset?.name ?? definition.name,
1828
- ...(input.resolvedPreset
1829
- ? { llmConnectionId: input.resolvedPreset.connectionId }
1830
- : parentHeader.llmConnectionId === undefined
1831
- ? {}
1832
- : { llmConnectionId: parentHeader.llmConnectionId }),
1833
- llmConnectionSlug: input.resolvedPreset?.connectionSlug ?? parentHeader.llmConnectionSlug,
1834
- model: input.resolvedPreset?.model ?? parentHeader.model,
1835
- ...(input.resolvedPreset
1836
- ? input.resolvedPreset.thinkingLevel !== undefined
1837
- ? { thinkingLevel: input.resolvedPreset.thinkingLevel }
1838
- : {}
1839
- : parentHeader.thinkingLevel !== undefined
1840
- ? { thinkingLevel: parentHeader.thinkingLevel }
1841
- : {}),
2009
+ ...(executorId
2010
+ ? {
2011
+ executorId,
2012
+ llmConnectionSlug: `executor:${executorId}`,
2013
+ model: executorId,
2014
+ }
2015
+ : {
2016
+ ...(input.resolvedPreset
2017
+ ? { llmConnectionId: input.resolvedPreset.connectionId }
2018
+ : parentHeader.llmConnectionId === undefined
2019
+ ? {}
2020
+ : { llmConnectionId: parentHeader.llmConnectionId }),
2021
+ llmConnectionSlug: input.resolvedPreset?.connectionSlug ?? parentHeader.llmConnectionSlug,
2022
+ model: input.resolvedPreset?.model ?? parentHeader.model,
2023
+ ...(input.resolvedPreset
2024
+ ? input.resolvedPreset.thinkingLevel !== undefined
2025
+ ? { thinkingLevel: input.resolvedPreset.thinkingLevel }
2026
+ : {}
2027
+ : parentHeader.thinkingLevel !== undefined
2028
+ ? { thinkingLevel: parentHeader.thinkingLevel }
2029
+ : {}),
2030
+ }),
1842
2031
  permissionMode: definition.permissionMode,
1843
2032
  collaborationMode: 'agent',
1844
2033
  orchestrationMode: 'default',
2034
+ toolMode: parentHeader.toolMode ?? DEFAULT_TOOL_MODE,
1845
2035
  subagentParent: {
1846
2036
  kind: 'subagent',
1847
2037
  parentSessionId,
@@ -1925,7 +2115,7 @@ export class SessionManager {
1925
2115
  // crash boundary. Revalidate admission after the lookup: the parent or
1926
2116
  // caller may have settled while durable state was being inspected.
1927
2117
  try {
1928
- const latestParentRun = await this.deps.runStore.readRun(parentSessionId, input.spawnedBy.parentRunId);
2118
+ const latestParentRun = await this.readInvocation(parentSessionId, input.spawnedBy.parentRunId);
1929
2119
  this.assertActiveParentRun(parentSessionId, latestParentRun, input.spawnedBy.parentTurnId);
1930
2120
  if (input.abortSignal?.aborted) {
1931
2121
  throw new Error('Child session spawn was cancelled before its first run');
@@ -1991,9 +2181,10 @@ export class SessionManager {
1991
2181
  }
1992
2182
  const completedAt = this.deps.now();
1993
2183
  const run = await this.findRunByTurnId(child.id, turnId);
1994
- const failureClass = run?.failureClass ?? summary.failureClass;
1995
- const artifacts = run
1996
- ? await this.finalizeAndListChildTurnArtifacts(child.id, turnId, run.status)
2184
+ const facts = run ? invocationListingFacts(run) : undefined;
2185
+ const failureClass = facts?.failureClass ?? summary.failureClass;
2186
+ const artifacts = facts
2187
+ ? await this.finalizeAndListChildTurnArtifacts(child.id, turnId, facts.status)
1997
2188
  : [];
1998
2189
  return {
1999
2190
  childSessionId: child.id,
@@ -2002,7 +2193,7 @@ export class SessionManager {
2002
2193
  profile: snapshot.profile,
2003
2194
  turnId,
2004
2195
  runId,
2005
- status: run ? agentRunStatusForSpawnResult(run.status) : summary.status(aborted),
2196
+ status: facts ? agentRunStatusForSpawnResult(facts.status) : summary.status(aborted),
2006
2197
  permissionMode: child.permissionMode,
2007
2198
  summary: summary.text(),
2008
2199
  artifactIds: artifacts.map((artifact) => artifact.id),
@@ -2025,7 +2216,7 @@ export class SessionManager {
2025
2216
  if (!snapshot || !spawn) {
2026
2217
  throw new Error('Stored child session is missing its durable runtime or spawn identity');
2027
2218
  }
2028
- let run = await this.deps.runStore.readRun(child.id, spawn.initialRunId).catch((error) => {
2219
+ let run = await this.readInvocation(child.id, spawn.initialRunId).catch((error) => {
2029
2220
  if (isNotFoundError(error))
2030
2221
  return undefined;
2031
2222
  throw error;
@@ -2033,14 +2224,14 @@ export class SessionManager {
2033
2224
  if (!run)
2034
2225
  return undefined;
2035
2226
  await notifyReady();
2036
- while (!isTerminalRunStatus(run.status) &&
2227
+ while (!run.terminalEvent &&
2037
2228
  this.runtimeKernel.hasActiveRun?.(child.id, run.runId, run.turnId)) {
2038
2229
  await delay(25, undefined, input.abortSignal ? { signal: input.abortSignal } : undefined);
2039
- run = await this.deps.runStore.readRun(child.id, spawn.initialRunId);
2230
+ run = await this.readInvocation(child.id, spawn.initialRunId);
2040
2231
  }
2041
- if (!isTerminalRunStatus(run.status)) {
2232
+ if (!run.terminalEvent) {
2042
2233
  await this.recoverAgentRunsFromLedger(child.id);
2043
- run = await this.deps.runStore.readRun(child.id, spawn.initialRunId);
2234
+ run = await this.readInvocation(child.id, spawn.initialRunId);
2044
2235
  }
2045
2236
  return await this.projectExistingChildSpawn(child, run);
2046
2237
  }
@@ -2051,14 +2242,11 @@ export class SessionManager {
2051
2242
  const snapshot = child.subagentRuntime;
2052
2243
  if (!snapshot)
2053
2244
  throw new Error('Stored child session is missing its durable runtime snapshot');
2054
- const [messages, runtimeEvents, artifacts] = await Promise.all([
2055
- this.deps.store.readMessages(child.id),
2245
+ const facts = invocationListingFacts(run);
2246
+ const [runtimeEvents, artifacts] = await Promise.all([
2056
2247
  this.deps.runtimeEventStore.readRuntimeEvents(child.id, run.runId),
2057
- this.finalizeAndListChildTurnArtifacts(child.id, run.turnId, run.status),
2248
+ this.finalizeAndListChildTurnArtifacts(child.id, run.turnId, facts.status),
2058
2249
  ]);
2059
- const storedSummary = messages
2060
- .filter((message) => message.type === 'assistant' && message.turnId === run.turnId)
2061
- .at(-1)?.text ?? '';
2062
2250
  const runtimeText = runtimeEvents.filter((event) => event.role === 'model' && event.content?.kind === 'text');
2063
2251
  const durableRuntimeSummary = runtimeText.filter((event) => !event.partial).at(-1)
2064
2252
  ?.content.text;
@@ -2066,7 +2254,6 @@ export class SessionManager {
2066
2254
  .filter((event) => event.partial)
2067
2255
  .map((event) => event.content.text)
2068
2256
  .join('');
2069
- const completedAt = run.completedAt ?? run.updatedAt;
2070
2257
  return {
2071
2258
  childSessionId: child.id,
2072
2259
  agentId: snapshot.agentId,
@@ -2074,15 +2261,15 @@ export class SessionManager {
2074
2261
  profile: snapshot.profile,
2075
2262
  turnId: run.turnId,
2076
2263
  runId: run.runId,
2077
- status: agentRunStatusForSpawnResult(run.status),
2264
+ status: agentRunStatusForSpawnResult(facts.status),
2078
2265
  permissionMode: child.permissionMode,
2079
- summary: trimSummary(durableRuntimeSummary ?? (storedSummary || partialRuntimeSummary)),
2266
+ summary: trimSummary(durableRuntimeSummary ?? partialRuntimeSummary),
2080
2267
  artifactIds: artifacts.map((artifact) => artifact.id),
2081
- startedAt: run.createdAt,
2082
- completedAt,
2083
- durationMs: Math.max(0, completedAt - run.createdAt),
2268
+ startedAt: facts.createdAt,
2269
+ completedAt: facts.updatedAt,
2270
+ durationMs: facts.durationMs ?? 0,
2084
2271
  eventCount: runtimeEvents.length,
2085
- ...(run.failureClass ? { failureClass: run.failureClass } : {}),
2272
+ ...(facts.failureClass ? { failureClass: facts.failureClass } : {}),
2086
2273
  };
2087
2274
  }
2088
2275
  transferRuntimeExecution(source, targetSessionId) {
@@ -2132,38 +2319,22 @@ export class SessionManager {
2132
2319
  const presets = this.deps.subagentCatalog ? await this.deps.subagentCatalog.list() : [];
2133
2320
  if (!this.deps.runStore)
2134
2321
  return { definitions, presets, executions: [], runs: [] };
2135
- const runs = await this.deps.runStore.listSessionRuns(sessionId);
2136
- const childRuns = await Promise.all(runs
2137
- .filter((run) => !!run.parentRunId && !isSessionInlineRun(run))
2138
- .map(async (run) => ({
2139
- ...(await this.effectiveRunHeaderFromRuntimeLedger(run)),
2140
- parentRunId: run.parentRunId,
2141
- })));
2142
- const legacyRuns = childRuns.map((run) => ({
2143
- runId: run.runId,
2144
- turnId: run.turnId,
2145
- parentRunId: run.parentRunId,
2146
- ...(run.agentId ? { agentId: run.agentId } : {}),
2147
- ...(run.agentName ? { agentName: run.agentName } : {}),
2148
- status: run.status,
2149
- permissionMode: run.permissionMode,
2150
- createdAt: run.createdAt,
2151
- updatedAt: run.updatedAt,
2152
- ...(run.completedAt !== undefined ? { completedAt: run.completedAt } : {}),
2153
- ...(run.completedAt !== undefined
2154
- ? { durationMs: Math.max(0, run.completedAt - run.createdAt) }
2155
- : {}),
2156
- ...(run.failureClass ? { failureClass: run.failureClass } : {}),
2157
- }));
2322
+ const childRuns = (await this.listInvocations(sessionId)).filter((run) => !!run.opening.lineage?.parentRunId && !isSessionInlineInvocation(run.opening));
2323
+ const legacyRuns = childRuns.map((run) => {
2324
+ const facts = invocationListingFacts(run);
2325
+ return {
2326
+ runId: run.runId,
2327
+ turnId: run.turnId,
2328
+ parentRunId: run.opening.lineage.parentRunId,
2329
+ ...(run.opening.lineage?.agentId ? { agentId: run.opening.lineage.agentId } : {}),
2330
+ ...(run.opening.lineage?.agentName ? { agentName: run.opening.lineage.agentName } : {}),
2331
+ ...facts,
2332
+ };
2333
+ });
2158
2334
  const childSessionHeaders = await Promise.all((await this.listChildSessions(sessionId)).map((child) => this.deps.store.readHeader(child.id)));
2159
2335
  const childSessionExecutions = await Promise.all(childSessionHeaders.map(async (child) => {
2160
- const childRuns = await this.deps.runStore.listSessionRuns(child.id);
2161
- const latest = childRuns
2162
- .slice()
2163
- .sort((left, right) => right.createdAt - left.createdAt ||
2164
- right.updatedAt - left.updatedAt ||
2165
- right.runId.localeCompare(left.runId))[0];
2166
- const run = latest ? await this.effectiveRunHeaderFromRuntimeLedger(latest) : undefined;
2336
+ const run = latestInvocation(await this.listInvocations(child.id));
2337
+ const facts = run ? invocationListingFacts(run) : undefined;
2167
2338
  const currentRunId = run?.runId ?? child.subagentSpawn?.initialRunId;
2168
2339
  return {
2169
2340
  execution: {
@@ -2177,15 +2348,13 @@ export class SessionManager {
2177
2348
  : {}),
2178
2349
  ...(child.subagentRuntime?.profile ? { profile: child.subagentRuntime.profile } : {}),
2179
2350
  ...(run?.turnId ? { turnId: run.turnId } : {}),
2180
- status: run?.status ?? (child.status === 'aborted' ? 'cancelled' : 'created'),
2181
- permissionMode: run?.permissionMode ?? child.permissionMode,
2182
- createdAt: run?.createdAt ?? child.createdAt,
2183
- updatedAt: run?.updatedAt ?? child.lastMessageAt ?? child.createdAt,
2184
- ...(run?.completedAt !== undefined ? { completedAt: run.completedAt } : {}),
2185
- ...(run?.completedAt !== undefined
2186
- ? { durationMs: Math.max(0, run.completedAt - run.createdAt) }
2187
- : {}),
2188
- ...(run?.failureClass ? { failureClass: run.failureClass } : {}),
2351
+ status: facts?.status ?? (child.status === 'aborted' ? 'cancelled' : 'running'),
2352
+ permissionMode: facts?.permissionMode ?? child.permissionMode,
2353
+ createdAt: facts?.createdAt ?? child.createdAt,
2354
+ updatedAt: facts?.updatedAt ?? child.lastMessageAt ?? child.createdAt,
2355
+ ...(facts?.completedAt !== undefined ? { completedAt: facts.completedAt } : {}),
2356
+ ...(facts?.durationMs !== undefined ? { durationMs: facts.durationMs } : {}),
2357
+ ...(facts?.failureClass ? { failureClass: facts.failureClass } : {}),
2189
2358
  };
2190
2359
  }));
2191
2360
  return {
@@ -2193,7 +2362,7 @@ export class SessionManager {
2193
2362
  presets,
2194
2363
  executions: [
2195
2364
  ...childSessionExecutions,
2196
- ...childRuns.map((run) => ({
2365
+ ...legacyRuns.map((run) => ({
2197
2366
  execution: {
2198
2367
  kind: 'legacy_child_run',
2199
2368
  sessionId,
@@ -2207,9 +2376,7 @@ export class SessionManager {
2207
2376
  createdAt: run.createdAt,
2208
2377
  updatedAt: run.updatedAt,
2209
2378
  ...(run.completedAt !== undefined ? { completedAt: run.completedAt } : {}),
2210
- ...(run.completedAt !== undefined
2211
- ? { durationMs: Math.max(0, run.completedAt - run.createdAt) }
2212
- : {}),
2379
+ ...(run.durationMs !== undefined ? { durationMs: run.durationMs } : {}),
2213
2380
  ...(run.failureClass ? { failureClass: run.failureClass } : {}),
2214
2381
  })),
2215
2382
  ],
@@ -2226,19 +2393,15 @@ export class SessionManager {
2226
2393
  throw new Error('agent_output requires AgentRunStore and RuntimeEventStore');
2227
2394
  }
2228
2395
  const located = await this.findChildRunForOutput(sessionId, input);
2229
- const { header } = located;
2230
- const inspected = await inspectAgentRunReadModel(this.deps.runStore, this.deps.runtimeEventStore, {
2231
- sessionId: header.sessionId,
2232
- runId: header.runId,
2233
- header,
2234
- });
2235
- const artifacts = await this.finalizeAndListChildTurnArtifacts(header.sessionId, header.turnId, inspected.header.status);
2396
+ const { invocation } = located;
2397
+ const inspected = await inspectAgentRunReadModel(this.deps.runStore, this.deps.runtimeEventStore, { sessionId: invocation.sessionId, runId: invocation.runId, invocation });
2398
+ const artifacts = await this.finalizeAndListChildTurnArtifacts(invocation.sessionId, invocation.turnId, runtimeInvocationOutcome(inspected.invocation) ?? 'running');
2236
2399
  const maxEvents = normalizeAgentOutputMaxEvents(input.maxEvents);
2237
2400
  const maxBytes = normalizeAgentOutputMaxBytes(input.maxBytes);
2238
2401
  const view = input.view ?? 'runtime_events';
2239
2402
  if (view === 'result') {
2240
2403
  const boundedResult = buildAgentOutputCommittedResult({
2241
- header: inspected.header,
2404
+ invocation: inspected.invocation,
2242
2405
  runtimeEvents: inspected.runtimeEvents,
2243
2406
  artifacts,
2244
2407
  maxArtifacts: maxEvents,
@@ -2247,7 +2410,7 @@ export class SessionManager {
2247
2410
  });
2248
2411
  return {
2249
2412
  execution: located.execution,
2250
- header: inspected.header,
2413
+ invocation: inspected.invocation,
2251
2414
  result: boundedResult.result,
2252
2415
  events: [],
2253
2416
  runtimeEvents: [],
@@ -2276,7 +2439,7 @@ export class SessionManager {
2276
2439
  }, maxBytes);
2277
2440
  return {
2278
2441
  execution: located.execution,
2279
- header: inspected.header,
2442
+ invocation: inspected.invocation,
2280
2443
  events: bounded.events,
2281
2444
  runtimeEvents: bounded.runtimeEvents,
2282
2445
  sourceHealth: inspected.sourceHealth,
@@ -2306,43 +2469,30 @@ export class SessionManager {
2306
2469
  const hostedAuthority = isRuntimeHostedRootAuthority(this.deps.messageAuthority)
2307
2470
  ? this.deps.messageAuthority
2308
2471
  : undefined;
2309
- const ownStop = hostedAuthority
2472
+ await this.#stopSessionTree(sessionId, hostedAuthority
2310
2473
  ? hostedAuthority.stopSession(sessionId, input)
2311
- : this.runtimeKernel.stopSession(sessionId, input);
2312
- let childStops = [];
2313
- let childLookupError;
2314
- try {
2315
- const children = await this.listChildSessions(sessionId);
2316
- childStops = await Promise.allSettled(children
2317
- .filter((child) => child.subagentParent?.lifecycle === 'foreground')
2318
- .map((child) => hostedAuthority
2319
- ? hostedAuthority.stopSession(child.id, input)
2320
- : this.runtimeKernel.stopSession(child.id, input)));
2321
- }
2322
- catch (error) {
2323
- childLookupError = error;
2324
- }
2325
- await ownStop;
2326
- const childStopError = childStops.find((result) => result.status === 'rejected')?.reason;
2327
- if (childLookupError !== undefined)
2328
- throw childLookupError;
2329
- if (childStopError !== undefined)
2330
- throw childStopError;
2474
+ : this.runtimeKernel.stopSession(sessionId, input), (childSessionId) => hostedAuthority
2475
+ ? hostedAuthority.stopSession(childSessionId, input)
2476
+ : this.runtimeKernel.stopSession(childSessionId, input));
2331
2477
  }
2332
2478
  async deliverHostedRootStop(sessionId, input = {}) {
2333
- const ownStop = this.runtimeKernel.stopSession(sessionId, input);
2334
2479
  const authority = isRuntimeHostedRootAuthority(this.deps.messageAuthority)
2335
2480
  ? this.deps.messageAuthority
2336
2481
  : undefined;
2482
+ await this.#stopSessionTree(sessionId, this.runtimeKernel.stopSession(sessionId, input), (childSessionId) => authority
2483
+ ? authority.stopSession(childSessionId, input)
2484
+ : this.runtimeKernel.stopSession(childSessionId, input));
2485
+ }
2486
+ async #stopSessionTree(sessionId, ownStop, stopChild) {
2487
+ // Observe immediately while child lookup runs; await below still propagates the original error.
2488
+ void ownStop.catch(() => undefined);
2337
2489
  let childStops = [];
2338
2490
  let childLookupError;
2339
2491
  try {
2340
2492
  const children = await this.listChildSessions(sessionId);
2341
2493
  childStops = await Promise.allSettled(children
2342
2494
  .filter((child) => child.subagentParent?.lifecycle === 'foreground')
2343
- .map((child) => authority
2344
- ? authority.stopSession(child.id, input)
2345
- : this.runtimeKernel.stopSession(child.id, input)));
2495
+ .map((child) => stopChild(child.id)));
2346
2496
  }
2347
2497
  catch (error) {
2348
2498
  childLookupError = error;
@@ -2359,20 +2509,31 @@ export class SessionManager {
2359
2509
  throw new Error('Hosted admission recovery requires execution stores');
2360
2510
  }
2361
2511
  const session = await this.deps.store.readHeader(input.sessionId);
2362
- const headerExtras = {};
2512
+ let root = { kind: 'user' };
2513
+ let orchestration = {
2514
+ orchestrationMode: session.orchestrationMode ?? 'default',
2515
+ orchestrationSource: 'session',
2516
+ agentSwarmAuthorization: 'none',
2517
+ };
2518
+ const lineage = {};
2363
2519
  let recoveryReason;
2364
2520
  let diagnostic;
2365
2521
  let workspaceIdentity;
2366
2522
  if (input.execution.kind === 'goal') {
2367
- headerExtras.goalId = input.execution.goalId;
2523
+ root = { kind: 'goal', goalId: input.execution.goalId };
2368
2524
  recoveryReason = 'goal_internal_admission_without_run';
2369
2525
  diagnostic = {
2370
2526
  executionKind: input.execution.kind,
2371
2527
  goalId: input.execution.goalId,
2372
2528
  };
2373
2529
  }
2530
+ else if (input.execution.kind === 'workhub_coordination' &&
2531
+ input.execution.operation === 'action') {
2532
+ recoveryReason = 'coordination_action_admission_without_run';
2533
+ diagnostic = { executionKind: input.execution.kind, operation: input.execution.operation };
2534
+ }
2374
2535
  else if (input.execution.kind === 'legacy_automation') {
2375
- headerExtras.legacyAutomationId = input.execution.automationId;
2536
+ root = { kind: 'legacy_automation', legacyAutomationId: input.execution.automationId };
2376
2537
  recoveryReason = 'legacy_automation_authority_removed';
2377
2538
  diagnostic = {
2378
2539
  executionKind: input.execution.kind,
@@ -2380,11 +2541,16 @@ export class SessionManager {
2380
2541
  };
2381
2542
  }
2382
2543
  else if (input.execution.kind === 'agent_graph_supervisor_wake') {
2383
- headerExtras.agentGraphWakeId = input.execution.wakeId;
2384
- headerExtras.agentGraphWakeAttemptId = input.execution.attemptId;
2385
- headerExtras.orchestrationMode = 'graph';
2386
- headerExtras.orchestrationSource = 'turn_override';
2387
- headerExtras.agentSwarmAuthorization = 'none';
2544
+ root = {
2545
+ kind: 'agent_graph_supervisor_wake',
2546
+ wakeId: input.execution.wakeId,
2547
+ attemptId: input.execution.attemptId,
2548
+ };
2549
+ orchestration = {
2550
+ orchestrationMode: 'graph',
2551
+ orchestrationSource: 'turn_override',
2552
+ agentSwarmAuthorization: 'none',
2553
+ };
2388
2554
  recoveryReason = 'agent_graph_supervisor_internal_admission_without_run';
2389
2555
  diagnostic = {
2390
2556
  executionKind: input.execution.kind,
@@ -2419,21 +2585,21 @@ export class SessionManager {
2419
2585
  }
2420
2586
  if (input.execution.kind === 'linked_child_resume' ||
2421
2587
  input.execution.kind === 'linked_child_provider_retry') {
2422
- const sourceRun = await this.deps.runStore.readRun(input.sessionId, input.execution.sourceRunId);
2423
- if (sourceRun.agentId !== input.execution.agentId ||
2424
- sourceRun.agentName !== input.execution.agentName) {
2588
+ const sourceRun = await this.readInvocation(input.sessionId, input.execution.sourceRunId);
2589
+ if (sourceRun.opening.lineage?.agentId !== input.execution.agentId ||
2590
+ sourceRun.opening.lineage.agentName !== input.execution.agentName) {
2425
2591
  throw new Error(`Admitted Turn ${input.turnId} source changed its trusted agent identity`);
2426
2592
  }
2427
- workspaceIdentity = sourceRun.workspaceIdentity;
2593
+ workspaceIdentity = sourceRun.opening.configuration.workspaceIdentity;
2428
2594
  if (input.execution.kind === 'linked_child_resume') {
2429
- headerExtras.resumedFromRunId = input.execution.sourceRunId;
2595
+ lineage.resumedFromRunId = input.execution.sourceRunId;
2430
2596
  }
2431
2597
  else {
2432
- headerExtras.retriedFromRunId = input.execution.sourceRunId;
2598
+ lineage.retriedFromRunId = input.execution.sourceRunId;
2433
2599
  }
2434
2600
  }
2435
- headerExtras.agentId = input.execution.agentId;
2436
- headerExtras.agentName = input.execution.agentName;
2601
+ lineage.agentId = input.execution.agentId;
2602
+ lineage.agentName = input.execution.agentName;
2437
2603
  recoveryReason = 'child_internal_admission_without_run';
2438
2604
  diagnostic = {
2439
2605
  executionKind: input.execution.kind,
@@ -2447,26 +2613,76 @@ export class SessionManager {
2447
2613
  throw new Error('External message recovery closure is not supported');
2448
2614
  }
2449
2615
  const run = {
2450
- runId: input.runId,
2451
- invocationId: input.runId,
2452
2616
  sessionId: input.sessionId,
2617
+ invocationId: input.runId,
2618
+ runId: input.runId,
2453
2619
  turnId: input.turnId,
2454
- status: 'created',
2455
- backendKind: session.backend,
2456
- ...(session.llmConnectionId === undefined
2457
- ? {}
2458
- : { llmConnectionId: session.llmConnectionId }),
2459
- llmConnectionSlug: session.llmConnectionSlug,
2460
- modelId: session.model,
2461
- cwd: session.cwd,
2462
- ...(workspaceIdentity !== undefined ? { workspaceIdentity } : {}),
2463
- permissionMode: session.permissionMode,
2464
- collaborationMode: session.collaborationMode ?? 'agent',
2465
- createdAt: input.admittedAt,
2466
- updatedAt: input.admittedAt,
2467
- ...headerExtras,
2468
2620
  };
2469
- await this.deps.runStore.createRun(run, { durable: true });
2621
+ const opening = {
2622
+ kind: 'invocation_opened',
2623
+ protocol: 'invocation_opened_v1',
2624
+ route: session.llmConnectionId === undefined || session.backend === 'plugin-executor'
2625
+ ? {
2626
+ provenance: 'unknown',
2627
+ backendKind: session.backend,
2628
+ llmConnectionSlug: session.llmConnectionSlug,
2629
+ modelId: session.model,
2630
+ }
2631
+ : {
2632
+ provenance: 'runtime',
2633
+ backendKind: session.backend,
2634
+ llmConnectionId: session.llmConnectionId,
2635
+ llmConnectionSlug: session.llmConnectionSlug,
2636
+ modelId: session.model,
2637
+ },
2638
+ configuration: {
2639
+ cwd: session.cwd,
2640
+ permissionMode: session.permissionMode,
2641
+ collaborationMode: session.collaborationMode ?? 'agent',
2642
+ toolMode: session.toolMode ?? DEFAULT_TOOL_MODE,
2643
+ ...orchestration,
2644
+ ...(workspaceIdentity !== undefined ? { workspaceIdentity } : {}),
2645
+ },
2646
+ root,
2647
+ source: { kind: 'fresh' },
2648
+ ...(Object.keys(lineage).length > 0 ? { lineage } : {}),
2649
+ };
2650
+ // The admission never reached an AgentRun, so nothing else will ever open
2651
+ // this invocation. Recovery opens and closes it in one pass so the Turn
2652
+ // ends up on the spine like any other, with its own reason for ending.
2653
+ await this.deps.runtimeEventStore.appendRuntimeEvent(input.sessionId, input.runId, buildInvocationOpenedEvent({
2654
+ id: this.deps.newId(),
2655
+ run,
2656
+ openedAt: input.admittedAt,
2657
+ opening,
2658
+ }));
2659
+ if (input.userMessage) {
2660
+ await this.deps.runtimeEventStore.appendRuntimeEvent(input.sessionId, input.runId, {
2661
+ id: input.userMessage.id,
2662
+ ...run,
2663
+ ts: input.admittedAt,
2664
+ partial: false,
2665
+ role: 'user',
2666
+ author: input.userMessage.origin ? 'host' : 'user',
2667
+ content: {
2668
+ kind: 'text',
2669
+ text: input.userMessage.content.text,
2670
+ ...(input.userMessage.content.displayText !== undefined
2671
+ ? { displayText: input.userMessage.content.displayText }
2672
+ : {}),
2673
+ ...(input.userMessage.content.attachments?.length
2674
+ ? { attachments: input.userMessage.content.attachments }
2675
+ : {}),
2676
+ ...(input.userMessage.content.directoryReferences?.length
2677
+ ? { directoryReferences: input.userMessage.content.directoryReferences }
2678
+ : {}),
2679
+ ...(input.userMessage.content.quotes?.length
2680
+ ? { quotes: input.userMessage.content.quotes }
2681
+ : {}),
2682
+ ...(input.userMessage.origin ? { origin: input.userMessage.origin } : {}),
2683
+ },
2684
+ });
2685
+ }
2470
2686
  const ts = this.deps.now();
2471
2687
  const terminalEvent = buildRecoveredTerminalRuntimeEvent({
2472
2688
  id: this.deps.newId(),
@@ -2479,7 +2695,6 @@ export class SessionManager {
2479
2695
  message: 'app_restarted',
2480
2696
  });
2481
2697
  await commitTerminalRunWithRuntimeFact({
2482
- runStore: this.deps.runStore,
2483
2698
  runtimeEventStore: this.deps.runtimeEventStore,
2484
2699
  newId: this.deps.newId,
2485
2700
  sessionId: input.sessionId,
@@ -2489,12 +2704,6 @@ export class SessionManager {
2489
2704
  ts,
2490
2705
  terminalEvent,
2491
2706
  failureClass: 'app_restarted',
2492
- runEventData: {
2493
- recovered: true,
2494
- recoveryReason,
2495
- ...diagnostic,
2496
- },
2497
- existingEvents: [],
2498
2707
  });
2499
2708
  }
2500
2709
  async consumeLinkedRootExecution(input, hostedGateAlreadyHeld = false) {
@@ -2578,155 +2787,9 @@ export class SessionManager {
2578
2787
  content: normalizeMessageContent(user),
2579
2788
  };
2580
2789
  }
2581
- async branchFromTurn(sessionId, input) {
2582
- const sourceView = await this.getSessionView(sessionId);
2583
- const slice = createConversationCopySlice(sourceView.messages, input.sourceTurnId, 'through');
2584
- if (!slice)
2585
- throw new Error(`Cannot branch from unknown turn ${input.sourceTurnId}`);
2586
- return this.createBranchSession(sessionId, sourceView, [...slice.messages], input);
2587
- }
2588
2790
  /** Canonical, repaired source view for a Host-owned cross-Session copy. */
2589
2791
  async readConversationCopySnapshot(sessionId) {
2590
- const readMessagesSnapshot = this.deps.store.readMessagesSnapshot;
2591
- if (!readMessagesSnapshot) {
2592
- throw new Error('Conversation copy requires a side-effect-free message snapshot');
2593
- }
2594
- const readMessages = readMessagesSnapshot.bind(this.deps.store);
2595
- const view = await this.getSessionView(sessionId, { readMessages });
2596
- if (view.runs.length > 0 || view.messages.length > 0)
2597
- return view;
2598
- const messages = await readMessages(sessionId);
2599
- if (messages.length === 0)
2600
- return view;
2601
- return {
2602
- ...view,
2603
- messages,
2604
- turns: deriveTurnRecords(messages),
2605
- };
2606
- }
2607
- async branchBeforeTurn(sessionId, input) {
2608
- const sourceView = await this.getSessionView(sessionId);
2609
- const slice = createConversationCopySlice(sourceView.messages, input.sourceTurnId, 'before');
2610
- if (!slice)
2611
- throw new Error(`Cannot branch before unknown turn ${input.sourceTurnId}`);
2612
- return this.createBranchSession(sessionId, sourceView, [...slice.messages], input);
2613
- }
2614
- /**
2615
- * Create a non-destructive edit-and-resend version. Unlike branchBeforeTurn,
2616
- * this is not a new sidebar conversation: revision lineage lets hosts fold
2617
- * every version into one conversation slot while keeping old transcripts.
2618
- */
2619
- async reviseBeforeTurn(sessionId, input) {
2620
- const sourceView = await this.getSessionView(sessionId);
2621
- const slice = createConversationCopySlice(sourceView.messages, input.sourceTurnId, 'before');
2622
- if (!slice)
2623
- throw new Error(`Cannot revise before unknown turn ${input.sourceTurnId}`);
2624
- return this.createRevisionSession(sessionId, sourceView, [...slice.messages], input);
2625
- }
2626
- async createRevisionSession(sessionId, sourceView, copied, input) {
2627
- const plan = await this.prepareConversationRuntimeLedgerClone(sessionId, sourceView, copied);
2628
- const [header, boundary] = await Promise.all([
2629
- this.deps.store.readHeader(sessionId),
2630
- this.deps.store.readExecutionBoundary(sessionId),
2631
- ]);
2632
- const revisionRootSessionId = header.revisionRootSessionId ?? sessionId;
2633
- const family = (await this.deps.store.list()).filter((candidate) => candidate.id === revisionRootSessionId ||
2634
- candidate.revisionRootSessionId === revisionRootSessionId);
2635
- const revisionIndex = Math.max(1, ...family.map((candidate) => candidate.revisionIndex ?? 1)) + 1;
2636
- const next = await this.deps.store.create({
2637
- cwd: header.cwd,
2638
- ...(header.projectId !== undefined ? { projectId: header.projectId } : {}),
2639
- ...(header.llmConnectionId === undefined
2640
- ? {}
2641
- : { llmConnectionId: header.llmConnectionId }),
2642
- llmConnectionSlug: header.llmConnectionSlug,
2643
- model: header.model,
2644
- thinkingLevel: header.thinkingLevel,
2645
- permissionMode: header.permissionMode,
2646
- collaborationMode: header.collaborationMode,
2647
- orchestrationMode: header.orchestrationMode ?? 'default',
2648
- name: header.name,
2649
- labels: header.labels,
2650
- // A revision of a real branch remains in that branch's conversation
2651
- // slot; revision lineage itself must not create a branch banner.
2652
- parentSessionId: header.parentSessionId,
2653
- branchOfTurnId: header.branchOfTurnId,
2654
- revisionRootSessionId,
2655
- revisionParentSessionId: sessionId,
2656
- revisionOfTurnId: input.sourceTurnId,
2657
- revisionIndex,
2658
- revisionState: 'preparing',
2659
- status: 'active',
2660
- }, boundary);
2661
- try {
2662
- const rewritten = await this.cloneConversationRuntimeLedger(next.id, copied, plan);
2663
- if (rewritten.length > 0)
2664
- await this.deps.store.appendMessages(next.id, [...rewritten]);
2665
- await this.deps.store.appendMessage(next.id, {
2666
- type: 'system_note',
2667
- id: this.deps.newId(),
2668
- ts: this.deps.now(),
2669
- kind: 'session_start',
2670
- data: {
2671
- revisionRootSessionId,
2672
- revisionParentSessionId: sessionId,
2673
- revisionOfTurnId: input.sourceTurnId,
2674
- revisionIndex,
2675
- revisionState: 'preparing',
2676
- },
2677
- });
2678
- await this.deps.store.updateHeader(next.id, {
2679
- isFlagged: header.isFlagged,
2680
- titleIsManual: header.titleIsManual,
2681
- });
2682
- return headerToSummary(await this.deps.store.readHeader(next.id));
2683
- }
2684
- catch (error) {
2685
- return this.rollbackLegacyConversationCopy(next.id, error);
2686
- }
2687
- }
2688
- async createBranchSession(sessionId, sourceView, copied, input) {
2689
- const plan = await this.prepareConversationRuntimeLedgerClone(sessionId, sourceView, copied);
2690
- const [header, boundary] = await Promise.all([
2691
- this.deps.store.readHeader(sessionId),
2692
- this.deps.store.readExecutionBoundary(sessionId),
2693
- ]);
2694
- const next = await this.deps.store.create({
2695
- cwd: header.cwd,
2696
- ...(header.projectId !== undefined ? { projectId: header.projectId } : {}),
2697
- ...(header.llmConnectionId === undefined
2698
- ? {}
2699
- : { llmConnectionId: header.llmConnectionId }),
2700
- llmConnectionSlug: header.llmConnectionSlug,
2701
- model: header.model,
2702
- thinkingLevel: header.thinkingLevel,
2703
- permissionMode: header.permissionMode,
2704
- collaborationMode: header.collaborationMode,
2705
- orchestrationMode: header.orchestrationMode ?? 'default',
2706
- name: input.name ?? `${header.name} · 分支`,
2707
- labels: input.sideConversation
2708
- ? [...new Set([...header.labels, SIDE_CONVERSATION_SESSION_LABEL])]
2709
- : header.labels,
2710
- parentSessionId: sessionId,
2711
- branchOfTurnId: input.sourceTurnId,
2712
- status: 'active',
2713
- }, boundary);
2714
- try {
2715
- const rewritten = await this.cloneConversationRuntimeLedger(next.id, copied, plan);
2716
- if (rewritten.length > 0)
2717
- await this.deps.store.appendMessages(next.id, [...rewritten]);
2718
- await this.deps.store.appendMessage(next.id, {
2719
- type: 'system_note',
2720
- id: this.deps.newId(),
2721
- ts: this.deps.now(),
2722
- kind: 'session_start',
2723
- data: { parentSessionId: sessionId, branchOfTurnId: input.sourceTurnId },
2724
- });
2725
- return headerToSummary(await this.deps.store.readHeader(next.id));
2726
- }
2727
- catch (error) {
2728
- return this.rollbackLegacyConversationCopy(next.id, error);
2729
- }
2792
+ return this.getSessionView(sessionId);
2730
2793
  }
2731
2794
  async respondToSandboxBoundary(sessionId, response) {
2732
2795
  if (this.deps.interactionAuthority) {
@@ -2746,9 +2809,8 @@ export class SessionManager {
2746
2809
  async findRunByTurnId(sessionId, turnId) {
2747
2810
  if (!this.deps.runStore)
2748
2811
  return undefined;
2749
- const runs = await this.deps.runStore.listSessionRuns(sessionId).catch(() => []);
2750
- const run = runs.find((candidate) => candidate.turnId === turnId);
2751
- return run ? this.effectiveRunHeaderFromRuntimeLedger(run) : undefined;
2812
+ const runs = await this.listInvocations(sessionId).catch(() => []);
2813
+ return runs.find((candidate) => candidate.turnId === turnId);
2752
2814
  }
2753
2815
  assertActiveParentRun(parentSessionId, parentRun, parentTurnId) {
2754
2816
  if (parentRun.sessionId !== parentSessionId ||
@@ -2795,14 +2857,10 @@ export class SessionManager {
2795
2857
  catch (error) {
2796
2858
  if (!(error instanceof RuntimeReadModelError))
2797
2859
  throw error;
2798
- // ShellRun hydration is a best-effort UI projection. A legacy RuntimeEvent
2799
- // incompatibility must not turn its retry loop into a permanent IPC error.
2800
- try {
2801
- return await this.deps.store.readMessages(sessionId);
2802
- }
2803
- catch {
2804
- return null;
2805
- }
2860
+ // ShellRun hydration is a best-effort UI projection. A ledger the read
2861
+ // model cannot project yet must not turn its retry loop into a permanent
2862
+ // IPC error; there is no second transcript to fall back to.
2863
+ return null;
2806
2864
  }
2807
2865
  }
2808
2866
  async findChildRunForOutput(sessionId, input) {
@@ -2821,24 +2879,19 @@ export class SessionManager {
2821
2879
  child.subagentParent.parentSessionId !== sessionId) {
2822
2880
  throw new Error('agent_output could not find the requested child session');
2823
2881
  }
2824
- const runs = await this.deps.runStore?.listSessionRuns(child.id);
2882
+ const runs = await this.listInvocations(child.id);
2825
2883
  const selected = execution.currentRunId
2826
- ? runs?.find((run) => run.runId === execution.currentRunId)
2827
- : runs
2828
- ?.slice()
2829
- .sort((left, right) => right.createdAt - left.createdAt ||
2830
- right.updatedAt - left.updatedAt ||
2831
- right.runId.localeCompare(left.runId))[0];
2832
- if (!selected || !isSessionInlineRun(selected)) {
2884
+ ? runs.find((run) => run.runId === execution.currentRunId)
2885
+ : latestInvocation(runs);
2886
+ if (!selected || !isSessionInlineInvocation(selected.opening)) {
2833
2887
  throw new Error('agent_output could not find the requested child session run');
2834
2888
  }
2835
- const header = await this.effectiveRunHeaderFromRuntimeLedger(selected);
2836
2889
  return {
2837
- header,
2890
+ invocation: selected,
2838
2891
  execution: {
2839
2892
  kind: 'child_session',
2840
2893
  sessionId: child.id,
2841
- currentRunId: header.runId,
2894
+ currentRunId: selected.runId,
2842
2895
  },
2843
2896
  ...(child.subagentParent.graph ? { graph: child.subagentParent.graph } : {}),
2844
2897
  };
@@ -2847,39 +2900,27 @@ export class SessionManager {
2847
2900
  if (legacyExecution && legacyExecution.sessionId !== sessionId) {
2848
2901
  throw new Error('agent_output could not find the requested legacy child run');
2849
2902
  }
2850
- const runs = await this.deps.runStore?.listSessionRuns(sessionId);
2851
- const header = runs?.find((run) => legacyExecution
2903
+ const invocation = (await this.listInvocations(sessionId)).find((run) => legacyExecution
2852
2904
  ? run.runId === legacyExecution.runId
2853
2905
  : input.runId
2854
2906
  ? run.runId === input.runId
2855
2907
  : input.turnId
2856
2908
  ? run.turnId === input.turnId
2857
2909
  : false);
2858
- if (!header)
2910
+ if (!invocation)
2859
2911
  throw new Error('agent_output could not find the requested child agent run');
2860
- if (!header.parentRunId || isSessionInlineRun(header)) {
2912
+ if (!invocation.opening.lineage?.parentRunId || isSessionInlineInvocation(invocation.opening)) {
2861
2913
  throw new Error('agent_output only reads child agent runs');
2862
2914
  }
2863
2915
  return {
2864
- header: await this.effectiveRunHeaderFromRuntimeLedger(header),
2916
+ invocation,
2865
2917
  execution: {
2866
2918
  kind: 'legacy_child_run',
2867
2919
  sessionId,
2868
- runId: header.runId,
2920
+ runId: invocation.runId,
2869
2921
  },
2870
2922
  };
2871
2923
  }
2872
- async effectiveRunHeaderFromRuntimeLedger(run) {
2873
- if (!this.deps.runtimeEventStore)
2874
- return run;
2875
- const runtimeEvents = await this.deps.runtimeEventStore
2876
- .readRuntimeEvents(run.sessionId, run.runId)
2877
- .catch(() => undefined);
2878
- if (!runtimeEvents)
2879
- return run;
2880
- const ledger = classifyTerminalRuntimeLedger(run, runtimeEvents);
2881
- return ledger.kind === 'fact' ? effectiveRunHeaderFromTerminalFact(run, ledger.fact) : run;
2882
- }
2883
2924
  async updateStatus(sessionId, status, blockedReason, ts = this.deps.now()) {
2884
2925
  await this.updateHeader(sessionId, buildStatusPatch(status, ts, blockedReason));
2885
2926
  }
@@ -2901,37 +2942,12 @@ export class SessionManager {
2901
2942
  : header;
2902
2943
  this.runtimeKernel.updateCachedHeader(sessionId, next);
2903
2944
  }
2904
- async finalizePlanAbandonment(sessionId, operationId, replay) {
2945
+ async finalizePlanAbandonment(sessionId) {
2905
2946
  const header = await this.deps.store.readHeader(sessionId);
2906
- const from = header.collaborationMode ?? 'agent';
2907
- const changed = from !== 'agent';
2908
- const next = changed
2909
- ? await this.deps.store.updateHeader(sessionId, { collaborationMode: 'agent' })
2910
- : header;
2947
+ const next = (header.collaborationMode ?? 'agent') === 'agent'
2948
+ ? header
2949
+ : await this.deps.store.updateHeader(sessionId, { collaborationMode: 'agent' });
2911
2950
  this.runtimeKernel.updateCachedHeader(sessionId, next);
2912
- if (!changed && !replay)
2913
- return;
2914
- if (!operationId) {
2915
- await this.deps.store.appendMessage(sessionId, {
2916
- type: 'system_note',
2917
- id: this.deps.newId(),
2918
- ts: this.deps.now(),
2919
- kind: 'mode_change',
2920
- data: { dimension: 'collaboration', from, to: 'agent' },
2921
- });
2922
- return;
2923
- }
2924
- const noteId = planAbandonmentNoteId(operationId);
2925
- const messages = await this.deps.store.readMessages(sessionId);
2926
- if (messages.some((message) => message.id === noteId))
2927
- return;
2928
- await this.deps.store.appendMessage(sessionId, {
2929
- type: 'system_note',
2930
- id: noteId,
2931
- ts: this.deps.now(),
2932
- kind: 'mode_change',
2933
- data: { dimension: 'collaboration', from: 'plan', to: 'agent' },
2934
- });
2935
2951
  }
2936
2952
  requirePlanStore() {
2937
2953
  if (!this.deps.planStore)
@@ -2963,23 +2979,6 @@ export class SessionManager {
2963
2979
  throw new SessionConfigurationTransitionError('operation_conflict', 'A pending Plan proposal must be resolved before leaving Plan mode');
2964
2980
  }
2965
2981
  }
2966
- async appendTurnState(sessionId, turnId, status, lineage = {}, options = {}) {
2967
- const ts = options.ts ?? this.deps.now();
2968
- await this.deps.store.appendMessage(sessionId, buildTurnStateMessage({
2969
- id: this.deps.newId(),
2970
- turnId,
2971
- ts,
2972
- status,
2973
- lineage,
2974
- ...(options.abortSource ? { abortSource: options.abortSource } : {}),
2975
- ...(options.errorClass !== undefined ? { errorClass: options.errorClass } : {}),
2976
- partialOutputRetained: await this.turnHasRetainedOutput(sessionId, turnId),
2977
- }));
2978
- }
2979
- async turnHasRetainedOutput(sessionId, turnId) {
2980
- const messages = await this.deps.store.readMessages(sessionId).catch(() => []);
2981
- return messagesHaveRetainedOutput(messages, turnId);
2982
- }
2983
2982
  async requireTurnForAction(sessionId, turnId, allowed, action) {
2984
2983
  const turn = (await this.getSessionView(sessionId)).turns.find((candidate) => candidate.turnId === turnId);
2985
2984
  if (!turn)
@@ -2989,46 +2988,40 @@ export class SessionManager {
2989
2988
  }
2990
2989
  return turn;
2991
2990
  }
2992
- async getSessionView(sessionId, projectionCache = this.deps.store) {
2993
- const repaired = new Set();
2994
- for (let attempt = 0; attempt < MAX_RUNTIME_LEDGER_REPAIR_ATTEMPTS; attempt += 1) {
2995
- try {
2996
- const view = await this.readModel(projectionCache).getSessionView(sessionId);
2997
- const runId = firstRuntimeRepairRunId(view.diagnostics, repaired);
2998
- if (!runId)
2999
- return view;
3000
- if (!(await this.repairMissingTerminalFactOnce(sessionId, runId)))
3001
- return view;
3002
- repaired.add(runId);
3003
- }
3004
- catch (error) {
3005
- if (!(error instanceof RuntimeReadModelError))
3006
- throw error;
3007
- const runId = firstRuntimeRepairRunId(error.diagnostics, repaired);
3008
- if (!runId)
3009
- throw error;
3010
- if (!(await this.repairMissingTerminalFactOnce(sessionId, runId)))
3011
- throw error;
3012
- repaired.add(runId);
3013
- }
3014
- }
3015
- return this.readModel(projectionCache).getSessionView(sessionId);
2991
+ /**
2992
+ * The Session as its ledger tells it.
2993
+ *
2994
+ * A transcript written before the ledger owned execution facts is converted
2995
+ * here, on the first read, because there is no second transcript left to read
2996
+ * it from: the importer is what gives those turns an invocation to be
2997
+ * projected from, so a read that skipped it would report the Session empty.
2998
+ */
2999
+ async getSessionView(sessionId) {
3000
+ await this.ensureTranscriptLedgerForRead(sessionId);
3001
+ return this.readModel().getSessionView(sessionId);
3016
3002
  }
3017
- readModel(projectionCache = this.deps.store) {
3003
+ readModel() {
3018
3004
  if (!this.deps.runStore || !this.deps.runtimeEventStore) {
3019
3005
  throw new Error('RuntimeReadModel requires AgentRunStore and RuntimeEventStore');
3020
3006
  }
3021
3007
  return new RuntimeReadModel({
3022
- runStore: this.deps.runStore,
3023
3008
  runtimeEventStore: this.deps.runtimeEventStore,
3024
- projectionCache,
3025
3009
  ...(this.deps.canonicalPermissionOutcomes
3026
3010
  ? { canonicalPermissionOutcomes: this.deps.canonicalPermissionOutcomes }
3027
3011
  : {}),
3028
3012
  });
3029
3013
  }
3030
- async repairMissingTerminalFactOnce(sessionId, runId) {
3031
- return ((await this.runtimeLedgerRepair?.repairMissingTerminalFactOnce(sessionId, runId)) ?? false);
3014
+ /**
3015
+ * Convert a transcript written before the ledger owned execution facts, so a
3016
+ * reader that goes straight to the ledger still sees the whole Session.
3017
+ *
3018
+ * Idempotent and cheap after the first call: the conversion is remembered per
3019
+ * Session, and a Session born on the ledger has nothing to convert.
3020
+ */
3021
+ async ensureTranscriptLedgerForRead(sessionId) {
3022
+ const repair = this.runtimeLedgerRepair;
3023
+ if (repair)
3024
+ await this.ensureTranscriptLedger(sessionId, repair, 'compatibility');
3032
3025
  }
3033
3026
  async prepareImportedSessionHistory(sessionId) {
3034
3027
  const repair = this.runtimeLedgerRepair;
@@ -3043,49 +3036,20 @@ export class SessionManager {
3043
3036
  if (header.transcriptLedgerVersion === 0 && source !== 'import') {
3044
3037
  throw new Error('Imported Session history is still being prepared');
3045
3038
  }
3039
+ // Version 1 says a conversion ran, not that every legacy fact reached the
3040
+ // ledger. A released build set it on the first send and went on writing
3041
+ // context notes to the transcript alone, so those notes stay behind on
3042
+ // Sessions it touched. Re-running the converter cannot reach them: they
3043
+ // belong to turns a real run already sealed, and a sealed run refuses the
3044
+ // append. They are hidden from the model and describe context, so they are
3045
+ // the accepted cost of the cutover — do not read this marker as proof that
3046
+ // nothing is left in `session_messages`.
3046
3047
  if (header.transcriptLedgerVersion !== 1) {
3047
3048
  await repair.materializeTranscriptLedger(header);
3048
3049
  await this.updateHeader(sessionId, { transcriptLedgerVersion: 1 });
3049
3050
  }
3050
3051
  this.preparedTranscriptLedgers.add(sessionId);
3051
3052
  }
3052
- async prepareConversationRuntimeLedgerClone(sourceSessionId, sourceView, copiedMessages) {
3053
- if (!this.deps.runStore || !this.deps.runtimeEventStore)
3054
- return undefined;
3055
- return prepareConversationRuntimeLedgerCopy({
3056
- sourceSessionId,
3057
- sourceEvents: sourceView.events,
3058
- copiedMessages,
3059
- runStore: this.deps.runStore,
3060
- runtimeEventStore: this.deps.runtimeEventStore,
3061
- });
3062
- }
3063
- async cloneConversationRuntimeLedger(childSessionId, copiedMessages, plan) {
3064
- if (!plan || !this.deps.runStore || !this.deps.runtimeEventStore)
3065
- return copiedMessages;
3066
- const copied = await cloneConversationLedger({
3067
- plan,
3068
- copiedMessages,
3069
- referenceMap: {
3070
- mode: 'preserve_external',
3071
- sourceSessionId: plan.sourceSessionId,
3072
- targetSessionId: childSessionId,
3073
- },
3074
- runStore: this.deps.runStore,
3075
- runtimeEventStore: this.deps.runtimeEventStore,
3076
- newId: this.deps.newId,
3077
- });
3078
- return copied.copiedMessages;
3079
- }
3080
- async rollbackLegacyConversationCopy(sessionId, error) {
3081
- try {
3082
- await this.deps.store.remove(sessionId);
3083
- }
3084
- catch (cleanupError) {
3085
- throw new AggregateError([error, cleanupError], `Conversation copy ${sessionId} failed and could not be removed`);
3086
- }
3087
- throw error;
3088
- }
3089
3053
  /**
3090
3054
  * Closes only the two provably pre-provider crash windows owned by B2:
3091
3055
  * claim-only and target-Run-created-without-start. A repaired claim never
@@ -3105,33 +3069,18 @@ export class SessionManager {
3105
3069
  let recovered = false;
3106
3070
  for (const initialState of states) {
3107
3071
  const { claim } = initialState;
3108
- let run;
3109
- try {
3110
- run = await this.deps.runStore.readRun(sessionId, claim.target.runId);
3111
- }
3112
- catch (error) {
3113
- if (!isMissingRunError(error))
3114
- throw error;
3115
- try {
3116
- await this.deps.runStore.createRun(claim.targetRunHeader, { durable: true });
3117
- run = await this.deps.runStore.readRun(sessionId, claim.target.runId);
3118
- }
3119
- catch (createError) {
3120
- try {
3121
- run = await this.deps.runStore.readRun(sessionId, claim.target.runId);
3122
- }
3123
- catch {
3124
- throw createError;
3125
- }
3126
- }
3127
- recovered = true;
3128
- }
3072
+ // The target's opening fact rides its continuation-start event, so an
3073
+ // invocation that does not exist yet is exactly the case the repair
3074
+ // start below commits. There is no separate run record to create.
3075
+ const invocation = await this.readInvocation(sessionId, claim.target.runId).catch((error) => {
3076
+ if (isMissingRunError(error))
3077
+ return undefined;
3078
+ throw error;
3079
+ });
3129
3080
  let state = (await authority.readContinuationClaimStateByBoundary(claim.boundaryDigest)) ??
3130
3081
  initialState;
3131
- if (state.startEventId
3132
- ? !claimTargetRunHeaderIsCompatible(run, claim.targetRunHeader)
3133
- : !isDeepStrictEqual(run, claim.targetRunHeader)) {
3134
- throw new Error(`Continuation claim target Run header conflicts with claim ${claim.claimId}`);
3082
+ if (invocation && !invocationMatchesClaimTarget(invocation, claim)) {
3083
+ throw new Error(`Continuation claim target invocation conflicts with claim ${claim.claimId}`);
3135
3084
  }
3136
3085
  let targetEvents = await readImmutableRuntimeEventsOrEmpty(authority, claim.target.sessionId, claim.target.runId);
3137
3086
  if (!state.startEventId) {
@@ -3158,7 +3107,7 @@ export class SessionManager {
3158
3107
  const failureClass = 'continuation_abandoned_before_provider_dispatch';
3159
3108
  const expectedTerminal = buildRecoveredTerminalRuntimeEvent({
3160
3109
  id: continuationRepairEventId('terminal', claim.claimId),
3161
- run,
3110
+ run: claim.target,
3162
3111
  status: 'failed',
3163
3112
  ts: Math.max(start.ts + 1, claim.claimedAt + 1),
3164
3113
  recoveryReason: failureClass,
@@ -3170,15 +3119,9 @@ export class SessionManager {
3170
3119
  if (terminal && !isDeepStrictEqual(terminal, expectedTerminal)) {
3171
3120
  throw new Error(`Continuation claim ${claim.claimId} has a conflicting repair terminal`);
3172
3121
  }
3173
- const existingRunEvents = await this.deps.runStore.readEvents(claim.target.sessionId, claim.target.runId);
3174
- const projectionComplete = terminal !== undefined &&
3175
- run.status === 'failed' &&
3176
- run.failureClass === failureClass &&
3177
- existingRunEvents.some((event) => event.type === 'run_failed');
3178
- if (projectionComplete)
3122
+ if (terminal)
3179
3123
  continue;
3180
3124
  await commitTerminalRunWithRuntimeFact({
3181
- runStore: this.deps.runStore,
3182
3125
  runtimeEventStore: authority,
3183
3126
  newId: () => continuationRepairEventId('run-terminal', claim.claimId),
3184
3127
  sessionId: claim.target.sessionId,
@@ -3188,12 +3131,6 @@ export class SessionManager {
3188
3131
  ts: expectedTerminal.ts,
3189
3132
  terminalEvent: expectedTerminal,
3190
3133
  failureClass,
3191
- runEventData: {
3192
- recovered: true,
3193
- recoveryReason: failureClass,
3194
- continuationClaimId: claim.claimId,
3195
- },
3196
- existingEvents: existingRunEvents,
3197
3134
  });
3198
3135
  recovered = true;
3199
3136
  }
@@ -3202,9 +3139,9 @@ export class SessionManager {
3202
3139
  async recoverAgentRunsFromLedger(sessionId, policy = { kind: 'best_effort' }) {
3203
3140
  if (!this.deps.runStore || !this.deps.runtimeEventStore)
3204
3141
  return { hasLedger: false, recovered: false };
3205
- const runs = policy.kind === 'strict'
3206
- ? await policy.stores.agentRunStore.listSessionRunsForRecovery(sessionId)
3207
- : await this.deps.runStore.listSessionRuns(sessionId);
3142
+ // The importer may have committed only a prefix before a restart. Sealing
3143
+ // that prefix here would make the next read skip the unconverted history.
3144
+ const runs = (await this.listInvocations(sessionId)).filter((run) => !isTranscriptLedgerInvocation(run));
3208
3145
  if (runs.length === 0)
3209
3146
  return { hasLedger: false, recovered: false };
3210
3147
  const continuationAuthority = runtimeContinuationAuthority(this.deps.runtimeEventStore);
@@ -3233,7 +3170,7 @@ export class SessionManager {
3233
3170
  if (policy.kind === 'strict') {
3234
3171
  await policy.stores.agentRunStore.readEventsForRecovery(sessionId, run.runId);
3235
3172
  }
3236
- let inspected = await inspectAgentRunReadModel(this.deps.runStore, this.deps.runtimeEventStore, { sessionId, runId: run.runId, header: run });
3173
+ let inspected = await inspectAgentRunReadModel(this.deps.runStore, this.deps.runtimeEventStore, { sessionId, runId: run.runId, invocation: run });
3237
3174
  if (inspected.sourceHealth.runtimeLedger === 'read_failed') {
3238
3175
  if (policy.kind === 'strict') {
3239
3176
  throw new Error(`RuntimeEvent ledger is unreadable for run ${run.runId}`);
@@ -3245,6 +3182,14 @@ export class SessionManager {
3245
3182
  diagnostic.code === 'operational_event_corrupt')) {
3246
3183
  throw new Error(`AgentRun event ledger is unreadable for run ${run.runId}`);
3247
3184
  }
3185
+ if (run.terminalEvent && runtimeHandoffPause(run.terminalEvent)) {
3186
+ if (inspected.runtimeEvents.at(-1)?.id !== run.terminalEvent.id) {
3187
+ throw new Error(`Handoff source has events after its seal: ${run.runId}`);
3188
+ }
3189
+ // The original Root admission owns this logical execution. Generic
3190
+ // restart repair must neither replay its tools nor manufacture failure.
3191
+ continue;
3192
+ }
3248
3193
  if (claimOwnedUnsettledRunIds.has(run.runId) &&
3249
3194
  !inspected.runtimeEvents.some(isTerminalRuntimeEvent)) {
3250
3195
  // Every unresolved claim target belongs to the claim saga. This
@@ -3253,7 +3198,7 @@ export class SessionManager {
3253
3198
  continue;
3254
3199
  }
3255
3200
  if (this.runtimeCommitSink) {
3256
- const interruptedOutcomes = buildInterruptedCodeModeOutcomeCommits(inspected.runtimeEvents, this.deps.now(), run.toolMode ?? DEFAULT_TOOL_MODE);
3201
+ const interruptedOutcomes = buildInterruptedCodeModeOutcomeCommits(inspected.runtimeEvents, this.deps.now(), run.opening.configuration.toolMode);
3257
3202
  let outcomeCommitFailed = false;
3258
3203
  for (const outcome of interruptedOutcomes) {
3259
3204
  const committed = await commitInterruptedOutcomeWithRetry(policy, () => this.runtimeCommitSink.commitToolOutcome(outcome));
@@ -3270,23 +3215,13 @@ export class SessionManager {
3270
3215
  continue;
3271
3216
  }
3272
3217
  if (interruptedOutcomes.length > 0) {
3273
- inspected = await inspectAgentRunReadModel(this.deps.runStore, this.deps.runtimeEventStore, { sessionId, runId: run.runId, header: run });
3218
+ inspected = await inspectAgentRunReadModel(this.deps.runStore, this.deps.runtimeEventStore, { sessionId, runId: run.runId, invocation: run });
3274
3219
  }
3275
3220
  }
3276
3221
  const terminalLedger = classifyTerminalRuntimeLedger(run, inspected.runtimeEvents);
3277
- if (terminalLedger.kind === 'ambiguous') {
3222
+ if (terminalLedger.kind === 'corrupt') {
3278
3223
  if (policy.kind === 'strict') {
3279
- throw new Error(`RuntimeEvent ledger has ambiguous terminal facts for run ${run.runId}`);
3280
- }
3281
- continue;
3282
- }
3283
- if (isTerminalRunStatus(run.status) && !inspected.terminalRuntimeFact) {
3284
- const repaired = await this.repairMissingTerminalFactOnce(sessionId, run.runId);
3285
- if (repaired) {
3286
- recovered = true;
3287
- }
3288
- else if (policy.kind === 'strict') {
3289
- throw new Error(`Unable to repair the terminal RuntimeEvent fact for run ${run.runId}`);
3224
+ throw new Error(`RuntimeEvent ledger has more than one terminal event for run ${run.runId}`);
3290
3225
  }
3291
3226
  continue;
3292
3227
  }
@@ -3304,19 +3239,15 @@ export class SessionManager {
3304
3239
  return { hasLedger: true, recovered };
3305
3240
  }
3306
3241
  classifyRuntimeEventRecovery(inspected) {
3307
- if (isTerminalRunStatus(inspected.header.status) || !inspected.terminalRuntimeFact)
3242
+ if (!inspected.terminalRuntimeFact)
3308
3243
  return undefined;
3309
- return runtimeTerminalFactToRecoveryDecision(inspected.header, inspected.terminalRuntimeFact);
3244
+ return runtimeTerminalFactToRecoveryDecision(inspected.invocation, inspected.terminalRuntimeFact);
3310
3245
  }
3311
3246
  async applyAgentRunRecovery(sessionId, decision, inspected, policy = { kind: 'best_effort' }) {
3312
3247
  if (!this.deps.runStore || !this.deps.runtimeEventStore)
3313
3248
  return false;
3314
3249
  const ts = this.deps.now();
3315
- const terminalLedger = classifyTerminalRuntimeLedger(inspected.header, inspected.runtimeEvents);
3316
- const existingTerminal = inspected.terminalRuntimeFact?.terminalEvent ??
3317
- (terminalLedger.kind === 'incomplete_single_terminal'
3318
- ? terminalLedger.terminalEvent
3319
- : undefined);
3250
+ const existingTerminal = inspected.terminalRuntimeFact?.terminalEvent;
3320
3251
  const status = existingTerminal
3321
3252
  ? (terminalRunStatusFromRuntimeEvent(existingTerminal) ?? decision.status)
3322
3253
  : decision.status;
@@ -3325,7 +3256,7 @@ export class SessionManager {
3325
3256
  const terminalEvent = existingTerminal ??
3326
3257
  buildRecoveredTerminalRuntimeEvent({
3327
3258
  id: this.deps.newId(),
3328
- run: inspected.header,
3259
+ run: inspected.invocation,
3329
3260
  status,
3330
3261
  ts,
3331
3262
  recoveryReason: diagnosticRecoveryReason(decision.diagnostic),
@@ -3338,7 +3269,6 @@ export class SessionManager {
3338
3269
  });
3339
3270
  try {
3340
3271
  await commitTerminalRunWithRuntimeFact({
3341
- runStore: this.deps.runStore,
3342
3272
  runtimeEventStore: this.deps.runtimeEventStore,
3343
3273
  newId: this.deps.newId,
3344
3274
  sessionId,
@@ -3349,8 +3279,6 @@ export class SessionManager {
3349
3279
  terminalEvent,
3350
3280
  ...(failureClass ? { failureClass } : {}),
3351
3281
  ...(abortSource ? { abortSource } : {}),
3352
- runEventData: { recovered: true, ...decision.diagnostic },
3353
- existingEvents: inspected.events,
3354
3282
  });
3355
3283
  }
3356
3284
  catch (error) {
@@ -3358,25 +3286,11 @@ export class SessionManager {
3358
3286
  throw error;
3359
3287
  return false;
3360
3288
  }
3361
- await recoverOr(policy, () => this.appendTerminalTurnStateIfNeeded(sessionId, inspected.header, decision, terminalTurnStatus(status), {
3362
- ts,
3363
- ...(failureClass ? { errorClass: failureClass } : {}),
3364
- ...(abortSource ? { abortSource } : {}),
3365
- }, policy), undefined);
3366
- return true;
3289
+ // A run that already carried a complete terminal fact had nothing to
3290
+ // recover. Saying otherwise makes recovery rewrite the Session status of
3291
+ // every healthy run it walks past.
3292
+ return inspected.terminalRuntimeFact === undefined;
3367
3293
  }
3368
- async appendTerminalTurnStateIfNeeded(sessionId, run, decision, status, options, policy = { kind: 'best_effort' }) {
3369
- if (!isSessionInlineRun(run))
3370
- return;
3371
- const messages = await recoverOr(policy, () => this.deps.store.readMessages(sessionId), []);
3372
- const latest = latestTurnState(messages, decision.turnId);
3373
- if (latest && isTerminalTurnStatus(latest.status) && latest.status === status)
3374
- return;
3375
- await this.appendTurnState(sessionId, decision.turnId, status, decision.lineage, options);
3376
- }
3377
- }
3378
- function planAbandonmentNoteId(operationId) {
3379
- return `plan-abandonment-${createHash('sha256').update(operationId).digest('hex')}`;
3380
3294
  }
3381
3295
  function resumeFeatureDisabledPlan() {
3382
3296
  return {
@@ -3440,6 +3354,8 @@ function buildContinuationRepairStartEvent(claim) {
3440
3354
  partial: false,
3441
3355
  role: 'system',
3442
3356
  author: 'system',
3357
+ modelVisibility: 'hidden',
3358
+ content: claim.targetOpening,
3443
3359
  actions: {
3444
3360
  continuationStart: {
3445
3361
  protocol: 'continuation_start_v2',
@@ -3471,47 +3387,29 @@ function assertClaimOwnsHostedLinkedChildAdmission(input, claim) {
3471
3387
  claim.target.turnId !== input.turnId) {
3472
3388
  throw new Error('Linked child admission conflicts with its continuation claim target');
3473
3389
  }
3474
- const header = claim.targetRunHeader;
3390
+ const { lineage, source: openSource } = claim.targetOpening;
3475
3391
  const source = claim.boundary.segments.at(-1);
3476
- const continuationSource = header.continuationSource;
3477
- const continuationSourceV2 = continuationSource !== undefined &&
3478
- 'protocol' in continuationSource &&
3479
- continuationSource.protocol === 'continuation_source_v2'
3480
- ? continuationSource
3481
- : undefined;
3482
- if (header.sessionId !== claim.target.sessionId ||
3483
- header.invocationId !== claim.target.invocationId ||
3484
- header.runId !== claim.target.runId ||
3485
- header.turnId !== claim.target.turnId ||
3486
- header.status !== 'created' ||
3487
- header.agentId !== input.execution.agentId ||
3488
- header.agentName !== input.execution.agentName ||
3392
+ if (lineage?.agentId !== input.execution.agentId ||
3393
+ lineage.agentName !== input.execution.agentName ||
3489
3394
  source.identity.sessionId !== input.sessionId ||
3490
3395
  source.identity.runId !== input.execution.sourceRunId ||
3491
- !continuationSourceV2 ||
3492
- continuationSourceV2.claimId !== claim.claimId ||
3493
- continuationSourceV2.boundaryDigest !== claim.boundaryDigest ||
3494
- continuationSourceV2.sourceRunId !== input.execution.sourceRunId) {
3396
+ openSource.kind !== 'continuation' ||
3397
+ openSource.claimId !== claim.claimId ||
3398
+ openSource.boundaryDigest !== claim.boundaryDigest ||
3399
+ openSource.sourceRunId !== input.execution.sourceRunId) {
3495
3400
  throw new Error('Linked child admission continuation claim identity is inconsistent');
3496
3401
  }
3497
3402
  if (input.execution.kind === 'linked_child_resume'
3498
- ? header.resumedFromRunId !== input.execution.sourceRunId ||
3499
- header.retriedFromRunId !== undefined
3500
- : header.retriedFromRunId !== input.execution.sourceRunId ||
3501
- header.resumedFromRunId !== undefined) {
3403
+ ? lineage.resumedFromRunId !== input.execution.sourceRunId ||
3404
+ lineage.retriedFromRunId !== undefined
3405
+ : lineage.retriedFromRunId !== input.execution.sourceRunId ||
3406
+ lineage.resumedFromRunId !== undefined) {
3502
3407
  throw new Error('Linked child admission continuation lineage is inconsistent');
3503
3408
  }
3504
3409
  }
3505
3410
  async function readImmutableRuntimeEventsOrEmpty(authority, sessionId, runId) {
3506
3411
  return authority.readImmutableRuntimeEvents(sessionId, runId);
3507
3412
  }
3508
- function claimTargetRunHeaderIsCompatible(actual, expected) {
3509
- const immutable = (header) => {
3510
- const { status: _status, updatedAt: _updatedAt, completedAt: _completedAt, failureClass: _failureClass, failureMessage: _failureMessage, abortSource: _abortSource, traceWriteError: _traceWriteError, ...rest } = header;
3511
- return rest;
3512
- };
3513
- return isDeepStrictEqual(immutable(actual), immutable(expected));
3514
- }
3515
3413
  function isMissingRunError(error) {
3516
3414
  return (isNotFoundError(error) ||
3517
3415
  (error instanceof Error && /unknown run|run does not exist|missing run/i.test(error.message)));
@@ -3545,6 +3443,7 @@ export function headerToSummary(h) {
3545
3443
  ...(h.revisionIndex !== undefined ? { revisionIndex: h.revisionIndex } : {}),
3546
3444
  ...(h.revisionState ? { revisionState: h.revisionState } : {}),
3547
3445
  backend: h.backend,
3446
+ ...(h.executorId ? { executorId: h.executorId } : {}),
3548
3447
  ...(h.llmConnectionId === undefined ? {} : { llmConnectionId: h.llmConnectionId }),
3549
3448
  llmConnectionSlug: h.llmConnectionSlug,
3550
3449
  connectionLocked: h.connectionLocked,
@@ -3560,6 +3459,34 @@ export function headerToSummary(h) {
3560
3459
  }
3561
3460
  return summary;
3562
3461
  }
3462
+ /**
3463
+ * What a listing shows about one invocation, read entirely off its own facts.
3464
+ *
3465
+ * Every field here used to be a mutable column on the Run header that a writer
3466
+ * had to keep in step with the events. Deriving them means a listing cannot
3467
+ * disagree with the ledger it is listing.
3468
+ */
3469
+ function invocationListingFacts(invocation) {
3470
+ const completedAt = invocation.terminalEvent?.ts;
3471
+ const failureClass = runtimeInvocationFailureClass(invocation);
3472
+ return {
3473
+ status: runtimeInvocationOutcome(invocation) ?? 'running',
3474
+ permissionMode: invocation.opening.configuration.permissionMode,
3475
+ createdAt: invocation.openedAt,
3476
+ updatedAt: completedAt ?? invocation.openedAt,
3477
+ ...(completedAt !== undefined ? { completedAt } : {}),
3478
+ ...(completedAt !== undefined
3479
+ ? { durationMs: Math.max(0, completedAt - invocation.openedAt) }
3480
+ : {}),
3481
+ ...(failureClass ? { failureClass } : {}),
3482
+ };
3483
+ }
3484
+ /** The most recently opened invocation, breaking ties on run id. */
3485
+ function latestInvocation(invocations) {
3486
+ return invocations
3487
+ .slice()
3488
+ .sort((left, right) => right.openedAt - left.openedAt || right.runId.localeCompare(left.runId))[0];
3489
+ }
3563
3490
  function isNotFoundError(error) {
3564
3491
  return error instanceof Error && 'code' in error && error.code === 'ENOENT';
3565
3492
  }
@@ -3585,30 +3512,44 @@ function childSessionSpawnKey(parentSessionId, input) {
3585
3512
  ]);
3586
3513
  }
3587
3514
  function childSessionRequestFingerprint(parentSessionId, input) {
3588
- const payload = input.resolvedPreset
3515
+ const payload = input.executorId
3589
3516
  ? [
3590
- 2,
3517
+ 3,
3591
3518
  parentSessionId,
3592
3519
  input.spawnedBy.parentRunId,
3593
3520
  input.spawnedBy.parentTurnId,
3594
3521
  input.spawnedBy.toolCallId,
3595
3522
  input.agentProfile,
3596
- input.resolvedPreset,
3523
+ input.executorId,
3524
+ input.resolvedPreset ?? null,
3597
3525
  input.prompt,
3598
3526
  input.swarm?.swarmId ?? null,
3599
3527
  input.swarm?.itemId ?? null,
3600
3528
  ]
3601
- : [
3602
- 1,
3603
- parentSessionId,
3604
- input.spawnedBy.parentRunId,
3605
- input.spawnedBy.parentTurnId,
3606
- input.spawnedBy.toolCallId,
3607
- input.agentProfile,
3608
- input.prompt,
3609
- input.swarm?.swarmId ?? null,
3610
- input.swarm?.itemId ?? null,
3611
- ];
3529
+ : input.resolvedPreset
3530
+ ? [
3531
+ 2,
3532
+ parentSessionId,
3533
+ input.spawnedBy.parentRunId,
3534
+ input.spawnedBy.parentTurnId,
3535
+ input.spawnedBy.toolCallId,
3536
+ input.agentProfile,
3537
+ input.resolvedPreset,
3538
+ input.prompt,
3539
+ input.swarm?.swarmId ?? null,
3540
+ input.swarm?.itemId ?? null,
3541
+ ]
3542
+ : [
3543
+ 1,
3544
+ parentSessionId,
3545
+ input.spawnedBy.parentRunId,
3546
+ input.spawnedBy.parentTurnId,
3547
+ input.spawnedBy.toolCallId,
3548
+ input.agentProfile,
3549
+ input.prompt,
3550
+ input.swarm?.swarmId ?? null,
3551
+ input.swarm?.itemId ?? null,
3552
+ ];
3612
3553
  return createHash('sha256').update(JSON.stringify(payload)).digest('hex');
3613
3554
  }
3614
3555
  function claimedAgentGraphIntentRequestFingerprint(input) {
@@ -3638,6 +3579,35 @@ function claimedAgentGraphIntentResult(claim, result) {
3638
3579
  ...result,
3639
3580
  };
3640
3581
  }
3582
+ function sessionConfigurationWithPermissionMode(header, permissionMode) {
3583
+ return {
3584
+ backend: header.backend,
3585
+ executorId: header.executorId,
3586
+ llmConnectionId: header.llmConnectionId,
3587
+ llmConnectionSlug: header.llmConnectionSlug,
3588
+ connectionLocked: header.connectionLocked,
3589
+ model: header.model,
3590
+ thinkingLevel: header.thinkingLevel,
3591
+ permissionMode,
3592
+ collaborationMode: header.collaborationMode ?? 'agent',
3593
+ orchestrationMode: header.orchestrationMode ?? 'default',
3594
+ };
3595
+ }
3596
+ function sessionConfigurationMatchesExceptPermissionMode(header, configuration) {
3597
+ return (header.backend === configuration.backend &&
3598
+ header.executorId === configuration.executorId &&
3599
+ header.llmConnectionId === configuration.llmConnectionId &&
3600
+ header.llmConnectionSlug === configuration.llmConnectionSlug &&
3601
+ header.connectionLocked === configuration.connectionLocked &&
3602
+ header.model === configuration.model &&
3603
+ header.thinkingLevel === configuration.thinkingLevel &&
3604
+ (header.collaborationMode ?? 'agent') === configuration.collaborationMode &&
3605
+ (header.orchestrationMode ?? 'default') === configuration.orchestrationMode);
3606
+ }
3607
+ function sessionConfigurationMatches(header, configuration) {
3608
+ return (header.permissionMode === configuration.permissionMode &&
3609
+ sessionConfigurationMatchesExceptPermissionMode(header, configuration));
3610
+ }
3641
3611
  function executionBoundaryMatchesPermissionMode(boundary, mode) {
3642
3612
  if (mode === 'bypass')
3643
3613
  return boundary.kind === 'bypass';
@@ -3652,7 +3622,7 @@ function narrowsExecutionAuthority(boundary, nextPermissionMode) {
3652
3622
  return false;
3653
3623
  if (boundary.kind !== 'managed')
3654
3624
  return true;
3655
- return nextPermissionMode === 'explore' && boundary.profile.name !== 'read-only';
3625
+ return (nextPermissionMode === 'explore' && !isCanonicalReadOnlyPermissionProfile(boundary.profile));
3656
3626
  }
3657
3627
  function agentRunStatusForSpawnResult(status) {
3658
3628
  if (status === 'waiting_for_user')
@@ -3661,7 +3631,7 @@ function agentRunStatusForSpawnResult(status) {
3661
3631
  return 'cancelled';
3662
3632
  if (status === 'failed')
3663
3633
  return 'failed';
3664
- if (status === 'running' || status === 'created')
3634
+ if (status === 'running')
3665
3635
  return 'running';
3666
3636
  return 'completed';
3667
3637
  }
@@ -3729,92 +3699,16 @@ class ChildAgentSummaryAccumulator {
3729
3699
  this.textDeltaTail = this.textDeltaTail.slice(-CHILD_AGENT_SUMMARY_MAX_CHARS);
3730
3700
  }
3731
3701
  }
3732
- function hasRevisionUserMessage(messages) {
3733
- let boundary = -1;
3734
- for (let index = 0; index < messages.length; index += 1) {
3735
- const message = messages[index];
3736
- if (message.type === 'system_note' &&
3737
- message.kind === 'session_start' &&
3738
- message.data &&
3739
- typeof message.data === 'object' &&
3740
- 'revisionRootSessionId' in message.data) {
3741
- boundary = index;
3742
- }
3743
- }
3744
- return boundary >= 0 && messages.slice(boundary + 1).some((message) => message.type === 'user');
3745
- }
3746
- function interruptedTurnRecoveries(messages) {
3747
- const byTurn = new Map();
3748
- for (const message of messages) {
3749
- const turnId = message.turnId;
3750
- if (!turnId)
3751
- continue;
3752
- const bucket = byTurn.get(turnId) ?? { hasAssistant: false, states: [] };
3753
- if (message.type === 'assistant')
3754
- bucket.hasAssistant = true;
3755
- if (message.type === 'turn_state')
3756
- bucket.states.push(message);
3757
- byTurn.set(turnId, bucket);
3758
- }
3759
- const recoveries = [];
3760
- for (const [turnId, bucket] of byTurn) {
3761
- const latest = bucket.states.at(-1);
3762
- if (!latest)
3763
- continue;
3764
- if (latest.status === 'running') {
3765
- recoveries.push({
3766
- turnId,
3767
- errorClass: 'app_restarted',
3768
- lineage: turnStateLineage(latest),
3769
- });
3770
- continue;
3771
- }
3772
- const failed = [...bucket.states].reverse().find((state) => state.status === 'failed');
3773
- if (latest.status === 'completed' && !bucket.hasAssistant && failed) {
3774
- recoveries.push({
3775
- turnId,
3776
- errorClass: failed.errorClass ?? 'unknown',
3777
- lineage: turnStateLineage(failed),
3778
- });
3779
- }
3780
- }
3781
- return recoveries;
3782
- }
3783
- function turnStateLineage(state) {
3784
- return {
3785
- ...(state.parentTurnId ? { parentTurnId: state.parentTurnId } : {}),
3786
- ...(state.retriedFromTurnId ? { retriedFromTurnId: state.retriedFromTurnId } : {}),
3787
- ...(state.regeneratedFromTurnId ? { regeneratedFromTurnId: state.regeneratedFromTurnId } : {}),
3788
- ...(state.branchOfTurnId ? { branchOfTurnId: state.branchOfTurnId } : {}),
3789
- ...(state.parentSessionId ? { parentSessionId: state.parentSessionId } : {}),
3790
- };
3791
- }
3792
3702
  function isTerminalRunStatus(status) {
3793
3703
  return status === 'completed' || status === 'failed' || status === 'cancelled';
3794
3704
  }
3795
- function isTerminalTurnStatus(status) {
3796
- return status === 'completed' || status === 'failed' || status === 'aborted';
3797
- }
3798
- function terminalTurnStatus(status) {
3799
- if (status === 'cancelled')
3800
- return 'aborted';
3801
- return status;
3802
- }
3803
3705
  function diagnosticRecoveryReason(diagnostic) {
3804
3706
  const recoveryReason = diagnostic?.recoveryReason;
3805
3707
  return typeof recoveryReason === 'string' && recoveryReason.length > 0
3806
3708
  ? recoveryReason
3807
3709
  : 'agent_run_recovery';
3808
3710
  }
3809
- function latestTurnState(messages, turnId) {
3810
- for (let index = messages.length - 1; index >= 0; index -= 1) {
3811
- const message = messages[index];
3812
- if (message?.type === 'turn_state' && message.turnId === turnId)
3813
- return message;
3814
- }
3815
- return undefined;
3816
- }
3817
- function runtimeTerminalFactToRecoveryDecision(header, fact) {
3711
+ function runtimeTerminalFactToRecoveryDecision(invocation, fact) {
3818
3712
  return {
3819
3713
  runId: fact.runId,
3820
3714
  turnId: fact.turnId,
@@ -3826,19 +3720,22 @@ function runtimeTerminalFactToRecoveryDecision(header, fact) {
3826
3720
  runtimeEventId: fact.terminalEvent.id,
3827
3721
  runtimeEventStatus: fact.terminalEvent.status,
3828
3722
  },
3829
- lineage: headerLineage(header),
3723
+ lineage: openingLineage(invocation),
3830
3724
  };
3831
3725
  }
3832
- function headerLineage(header) {
3726
+ function openingLineage(invocation) {
3727
+ const lineage = invocation.opening.lineage;
3728
+ if (!lineage)
3729
+ return {};
3833
3730
  return {
3834
- ...(header.parentRunId ? { parentRunId: header.parentRunId } : {}),
3835
- ...(header.parentTurnId ? { parentTurnId: header.parentTurnId } : {}),
3836
- ...(header.retriedFromTurnId ? { retriedFromTurnId: header.retriedFromTurnId } : {}),
3837
- ...(header.regeneratedFromTurnId
3838
- ? { regeneratedFromTurnId: header.regeneratedFromTurnId }
3731
+ ...(lineage.parentRunId ? { parentRunId: lineage.parentRunId } : {}),
3732
+ ...(lineage.parentTurnId ? { parentTurnId: lineage.parentTurnId } : {}),
3733
+ ...(lineage.retriedFromTurnId ? { retriedFromTurnId: lineage.retriedFromTurnId } : {}),
3734
+ ...(lineage.regeneratedFromTurnId
3735
+ ? { regeneratedFromTurnId: lineage.regeneratedFromTurnId }
3839
3736
  : {}),
3840
- ...(header.branchOfTurnId ? { branchOfTurnId: header.branchOfTurnId } : {}),
3841
- ...(header.parentSessionId ? { parentSessionId: header.parentSessionId } : {}),
3737
+ ...(lineage.branchOfTurnId ? { branchOfTurnId: lineage.branchOfTurnId } : {}),
3738
+ ...(lineage.parentSessionId ? { parentSessionId: lineage.parentSessionId } : {}),
3842
3739
  };
3843
3740
  }
3844
3741
  function normalizeAgentOutputMaxEvents(value) {
@@ -3866,9 +3763,9 @@ function buildAgentOutputCommittedResult(input) {
3866
3763
  {
3867
3764
  operator: {
3868
3765
  operatorId: input.graph.operatorId,
3869
- sessionId: input.header.sessionId,
3766
+ sessionId: input.invocation.sessionId,
3870
3767
  },
3871
- run: input.header,
3768
+ run: input.invocation,
3872
3769
  events: input.runtimeEvents,
3873
3770
  },
3874
3771
  ],
@@ -3882,7 +3779,7 @@ function buildAgentOutputCommittedResult(input) {
3882
3779
  let artifactIds = tail(input.artifacts.map((artifact) => artifact.id), input.maxArtifacts);
3883
3780
  const base = () => ({
3884
3781
  schemaVersion: 1,
3885
- status: input.header.status,
3782
+ status: runtimeInvocationOutcome(input.invocation) ?? 'running',
3886
3783
  ...(input.graph ? { graph: { ...input.graph } } : {}),
3887
3784
  ...(outputRecord || terminalRecord
3888
3785
  ? { resultRecordId: (outputRecord ?? terminalRecord).recordId }
@@ -3893,7 +3790,9 @@ function buildAgentOutputCommittedResult(input) {
3893
3790
  textTruncated: false,
3894
3791
  artifactIds,
3895
3792
  omittedArtifactIds: Math.max(0, input.artifacts.length - artifactIds.length),
3896
- ...(input.header.failureClass ? { failureClass: input.header.failureClass } : {}),
3793
+ ...(runtimeInvocationFailureClass(input.invocation)
3794
+ ? { failureClass: runtimeInvocationFailureClass(input.invocation) }
3795
+ : {}),
3897
3796
  });
3898
3797
  while (artifactIds.length > 0 && serializedBytes(base()) > input.maxBytes) {
3899
3798
  artifactIds = artifactIds.slice(1);
@@ -3916,7 +3815,12 @@ function buildAgentOutputCommittedResult(input) {
3916
3815
  truncated: withoutText.omittedArtifactIds > 0,
3917
3816
  };
3918
3817
  }
3919
- const codePoints = Array.from(text);
3818
+ const codePoints = [];
3819
+ for (const point of text) {
3820
+ if (codePoints.length >= input.maxBytes)
3821
+ break;
3822
+ codePoints.push(point);
3823
+ }
3920
3824
  let low = 0;
3921
3825
  let high = codePoints.length;
3922
3826
  let best = { ...withoutText, textTruncated: true };