stitchkit 0.127.0 → 0.129.0

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 (313) hide show
  1. package/CHANGELOG.md +194 -6
  2. package/dist/agent-executor/acp/v1-connect.d.ts +9 -1
  3. package/dist/agent-executor/acp/v1-connect.d.ts.map +1 -1
  4. package/dist/agent-executor/acp/v1-driver.d.ts +8 -2
  5. package/dist/agent-executor/acp/v1-driver.d.ts.map +1 -1
  6. package/dist/agent-executor/acp/v1-map.d.ts.map +1 -1
  7. package/dist/agent-executor/acp/v1-session.d.ts +8 -0
  8. package/dist/agent-executor/acp/v1-session.d.ts.map +1 -1
  9. package/dist/agent-executor/claude/cli-driver.d.ts +4 -0
  10. package/dist/agent-executor/claude/cli-driver.d.ts.map +1 -1
  11. package/dist/agent-executor/claude/protocol.d.ts +20 -2
  12. package/dist/agent-executor/claude/protocol.d.ts.map +1 -1
  13. package/dist/agent-executor/claude/session.d.ts +2 -1
  14. package/dist/agent-executor/claude/session.d.ts.map +1 -1
  15. package/dist/agent-executor/claude/transcript.d.ts +9 -6
  16. package/dist/agent-executor/claude/transcript.d.ts.map +1 -1
  17. package/dist/agent-executor/claude-sdk/controls.d.ts +19 -0
  18. package/dist/agent-executor/claude-sdk/controls.d.ts.map +1 -0
  19. package/dist/agent-executor/claude-sdk/driver.d.ts +118 -4
  20. package/dist/agent-executor/claude-sdk/driver.d.ts.map +1 -1
  21. package/dist/agent-executor/claude-sdk/query-loop.d.ts +46 -0
  22. package/dist/agent-executor/claude-sdk/query-loop.d.ts.map +1 -0
  23. package/dist/agent-executor/claude-sdk/query-options.d.ts +27 -0
  24. package/dist/agent-executor/claude-sdk/query-options.d.ts.map +1 -0
  25. package/dist/agent-executor/claude-sdk/session.d.ts +6 -5
  26. package/dist/agent-executor/claude-sdk/session.d.ts.map +1 -1
  27. package/dist/agent-executor/codex/classify.d.ts.map +1 -1
  28. package/dist/agent-executor/codex/connect.d.ts +45 -0
  29. package/dist/agent-executor/codex/connect.d.ts.map +1 -0
  30. package/dist/agent-executor/codex/driver.d.ts +55 -10
  31. package/dist/agent-executor/codex/driver.d.ts.map +1 -1
  32. package/dist/agent-executor/codex/limits.d.ts +11 -2
  33. package/dist/agent-executor/codex/limits.d.ts.map +1 -1
  34. package/dist/agent-executor/codex/protocol.d.ts +75 -6
  35. package/dist/agent-executor/codex/protocol.d.ts.map +1 -1
  36. package/dist/agent-executor/codex/session-controls.d.ts +155 -0
  37. package/dist/agent-executor/codex/session-controls.d.ts.map +1 -0
  38. package/dist/agent-executor/codex/session.d.ts +28 -30
  39. package/dist/agent-executor/codex/session.d.ts.map +1 -1
  40. package/dist/agent-executor/codex/unix-socket-target.d.ts +26 -0
  41. package/dist/agent-executor/codex/unix-socket-target.d.ts.map +1 -0
  42. package/dist/agent-executor/codex/unix-socket.d.ts +26 -0
  43. package/dist/agent-executor/codex/unix-socket.d.ts.map +1 -0
  44. package/dist/agent-executor/codex/ws-frame.d.ts +15 -0
  45. package/dist/agent-executor/codex/ws-frame.d.ts.map +1 -0
  46. package/dist/agent-executor/contract.d.ts +2 -0
  47. package/dist/agent-executor/contract.d.ts.map +1 -1
  48. package/dist/agent-executor/engine-process.d.ts +9 -0
  49. package/dist/agent-executor/engine-process.d.ts.map +1 -1
  50. package/dist/agent-executor/hello.d.ts +8 -0
  51. package/dist/agent-executor/hello.d.ts.map +1 -1
  52. package/dist/agent-executor/image-input.d.ts +71 -0
  53. package/dist/agent-executor/image-input.d.ts.map +1 -0
  54. package/dist/agent-executor/session-primitives.d.ts +0 -3
  55. package/dist/agent-executor/session-primitives.d.ts.map +1 -1
  56. package/dist/agent-runtime/agent-tool.d.ts +21 -7
  57. package/dist/agent-runtime/agent-tool.d.ts.map +1 -1
  58. package/dist/agent-runtime/branch-contract.d.ts +1 -0
  59. package/dist/agent-runtime/branch-contract.d.ts.map +1 -1
  60. package/dist/agent-runtime/branch-identities.d.ts +5 -2
  61. package/dist/agent-runtime/branch-identities.d.ts.map +1 -1
  62. package/dist/agent-runtime/branch-messages.d.ts +9 -9
  63. package/dist/agent-runtime/branch-messages.d.ts.map +1 -1
  64. package/dist/agent-runtime/branch-observations.d.ts +49 -36
  65. package/dist/agent-runtime/branch-observations.d.ts.map +1 -1
  66. package/dist/agent-runtime/branch-provider.d.ts +14 -8
  67. package/dist/agent-runtime/branch-provider.d.ts.map +1 -1
  68. package/dist/agent-runtime/branch-source.d.ts +13 -1
  69. package/dist/agent-runtime/branch-source.d.ts.map +1 -1
  70. package/dist/agent-runtime/child-tools.d.ts +64 -0
  71. package/dist/agent-runtime/child-tools.d.ts.map +1 -1
  72. package/dist/agent-runtime/event-search-tools.d.ts +82 -5
  73. package/dist/agent-runtime/event-search-tools.d.ts.map +1 -1
  74. package/dist/agent-runtime/invocation-attempt.d.ts +1 -1
  75. package/dist/agent-runtime/invocation-attempt.d.ts.map +1 -1
  76. package/dist/agent-runtime/invocation-payload.d.ts +12 -0
  77. package/dist/agent-runtime/invocation-payload.d.ts.map +1 -1
  78. package/dist/agent-runtime/invocation-read.d.ts +6 -3
  79. package/dist/agent-runtime/invocation-read.d.ts.map +1 -1
  80. package/dist/agent-runtime/invocation-schema.d.ts +50 -8
  81. package/dist/agent-runtime/invocation-schema.d.ts.map +1 -1
  82. package/dist/agent-runtime/invocations.d.ts +20 -9
  83. package/dist/agent-runtime/invocations.d.ts.map +1 -1
  84. package/dist/agent-runtime/postgres.d.ts.map +1 -1
  85. package/dist/agent-runtime/schedule-tools.d.ts +30 -0
  86. package/dist/agent-runtime/schedule-tools.d.ts.map +1 -1
  87. package/dist/agent-runtime/schemas-invocation-payload.d.ts +48 -0
  88. package/dist/agent-runtime/schemas-invocation-payload.d.ts.map +1 -0
  89. package/dist/agent-runtime/sql-events.d.ts.map +1 -1
  90. package/dist/agent-runtime/sql-rows.d.ts +10 -10
  91. package/dist/agent-runtime/sql-session.d.ts +11 -0
  92. package/dist/agent-runtime/sql-session.d.ts.map +1 -1
  93. package/dist/agent-runtime/sqlite-transactions.d.ts.map +1 -1
  94. package/dist/agent-runtime/state-tools.d.ts +55 -0
  95. package/dist/agent-runtime/state-tools.d.ts.map +1 -1
  96. package/dist/agent-runtime/store-branch.d.ts.map +1 -1
  97. package/dist/agent-runtime/store-conformance-lifecycle.d.ts +20 -20
  98. package/dist/agent-runtime/store-conformance-support.d.ts +10 -10
  99. package/dist/agent-runtime/store-create.d.ts.map +1 -1
  100. package/dist/agent-runtime/store-driver-contract.d.ts +12 -0
  101. package/dist/agent-runtime/store-driver-contract.d.ts.map +1 -1
  102. package/dist/agent-runtime/store-memory-events.d.ts.map +1 -1
  103. package/dist/agent-runtime/store.d.ts +7 -0
  104. package/dist/agent-runtime/store.d.ts.map +1 -1
  105. package/dist/agent-runtime/terminal-commit.d.ts +10 -10
  106. package/dist/declaration/declaration.d.ts +6 -3
  107. package/dist/declaration/declaration.d.ts.map +1 -1
  108. package/dist/entrypoints/agent-executor/acp.d.ts +1 -1
  109. package/dist/entrypoints/agent-executor/acp.d.ts.map +1 -1
  110. package/dist/entrypoints/agent-executor/acp.js +28 -17
  111. package/dist/entrypoints/agent-executor/claude-sdk.d.ts +1 -1
  112. package/dist/entrypoints/agent-executor/claude-sdk.d.ts.map +1 -1
  113. package/dist/entrypoints/agent-executor/claude-sdk.js +543 -96
  114. package/dist/entrypoints/agent-executor/claude.js +40 -21
  115. package/dist/entrypoints/agent-executor/codex.d.ts +4 -0
  116. package/dist/entrypoints/agent-executor/codex.d.ts.map +1 -1
  117. package/dist/entrypoints/agent-executor/codex.js +1530 -207
  118. package/dist/entrypoints/agent-executor.js +7 -7
  119. package/dist/entrypoints/agent-runtime/browser.js +1 -1
  120. package/dist/entrypoints/agent-runtime/coding-tools.js +3 -3
  121. package/dist/entrypoints/agent-runtime/harness.js +10 -11
  122. package/dist/entrypoints/agent-runtime/openrouter.js +4 -4
  123. package/dist/entrypoints/agent-runtime/postgres.js +12 -7
  124. package/dist/entrypoints/agent-runtime/realtime.js +4 -4
  125. package/dist/entrypoints/agent-runtime/sandbox.js +7 -7
  126. package/dist/entrypoints/agent-runtime/sqlite/bun.js +7 -7
  127. package/dist/entrypoints/agent-runtime/sqlite/node.js +7 -7
  128. package/dist/entrypoints/agent-runtime/testing.js +9 -9
  129. package/dist/entrypoints/agent-runtime.d.ts +9 -7
  130. package/dist/entrypoints/agent-runtime.d.ts.map +1 -1
  131. package/dist/entrypoints/agent-runtime.js +254 -207
  132. package/dist/entrypoints/application/diagnostic-journal.js +4 -4
  133. package/dist/entrypoints/application/directory-inbox.js +8 -8
  134. package/dist/entrypoints/application/opentelemetry.js +2 -2
  135. package/dist/entrypoints/application.js +2 -2
  136. package/dist/entrypoints/cli/publish.js +8 -8
  137. package/dist/entrypoints/cli.js +12 -11
  138. package/dist/entrypoints/contract.js +2 -2
  139. package/dist/entrypoints/declaration.js +0 -1
  140. package/dist/entrypoints/files/packaging.js +2 -2
  141. package/dist/entrypoints/files.js +42 -19
  142. package/dist/entrypoints/handler.js +4 -4
  143. package/dist/entrypoints/http.js +5 -5
  144. package/dist/entrypoints/index.js +7 -7
  145. package/dist/entrypoints/node.js +7 -7
  146. package/dist/entrypoints/observability.js +4 -4
  147. package/dist/entrypoints/primitives.js +2 -2
  148. package/dist/entrypoints/process.js +6 -6
  149. package/dist/entrypoints/react.js +1 -1
  150. package/dist/entrypoints/remote.js +2 -2
  151. package/dist/entrypoints/server.js +10 -10
  152. package/dist/entrypoints/service-host/macos.js +6 -6
  153. package/dist/entrypoints/service-host.d.ts +4 -1
  154. package/dist/entrypoints/service-host.d.ts.map +1 -1
  155. package/dist/entrypoints/service-host.js +835 -224
  156. package/dist/entrypoints/spend.js +1 -1
  157. package/dist/entrypoints/sync/postgres.js +1 -1
  158. package/dist/entrypoints/sync.js +2 -2
  159. package/dist/entrypoints/telegram.js +5 -5
  160. package/dist/entrypoints/testing.js +5 -5
  161. package/dist/entrypoints/tools/agent.js +5 -4
  162. package/dist/entrypoints/tools/connections.js +2 -2
  163. package/dist/entrypoints/tools/invoker.js +4 -3
  164. package/dist/entrypoints/tools/mcp.js +5 -4
  165. package/dist/entrypoints/tools/toolkit.js +8 -7
  166. package/dist/entrypoints/tools.d.ts +1 -1
  167. package/dist/entrypoints/tools.d.ts.map +1 -1
  168. package/dist/entrypoints/tools.js +15 -13
  169. package/dist/entrypoints/tracking/contract.js +1 -1
  170. package/dist/entrypoints/xlsx.js +1 -1
  171. package/dist/files/directory-appearance.d.ts +20 -9
  172. package/dist/files/directory-appearance.d.ts.map +1 -1
  173. package/dist/files/polled-json.d.ts.map +1 -1
  174. package/dist/files/regular-file.d.ts +15 -5
  175. package/dist/files/regular-file.d.ts.map +1 -1
  176. package/dist/{index-prf6ayhf.js → index-13wmzpa6.js} +1 -1
  177. package/dist/{index-qnzhmk2s.js → index-17qgm6xe.js} +91 -48
  178. package/dist/{index-wv8dqy7q.js → index-205456mf.js} +1 -1
  179. package/dist/{index-3gwp8ez6.js → index-21cfxc4z.js} +13 -18
  180. package/dist/{index-xtkw9866.js → index-2c5w2d1d.js} +1 -1
  181. package/dist/{index-g1q7fwn9.js → index-2nwvn7m2.js} +1 -1
  182. package/dist/{index-d4svrknj.js → index-39c2hj6h.js} +2 -2
  183. package/dist/{index-sfzfd2m2.js → index-39rmc00v.js} +1 -1
  184. package/dist/{index-ky3ardqn.js → index-3fym4j8n.js} +1 -1
  185. package/dist/{index-d96c1n1q.js → index-5tdc0q43.js} +20 -19
  186. package/dist/{index-3ypvpkwr.js → index-669374qc.js} +1 -1
  187. package/dist/{index-x90w78yz.js → index-673drwkn.js} +23 -8
  188. package/dist/{index-83n766x4.js → index-7jqn3b3g.js} +16 -10
  189. package/dist/{index-5jyjb4s0.js → index-80acsm27.js} +1 -1
  190. package/dist/{index-xmr47znh.js → index-827bgv33.js} +1 -1
  191. package/dist/{index-xypxnzhp.js → index-93n6jwy0.js} +4 -4
  192. package/dist/{index-wbnpa8z6.js → index-9kpxz49v.js} +5 -5
  193. package/dist/{index-fcw255hd.js → index-9sfhje6y.js} +3 -3
  194. package/dist/{index-bh4pmtr9.js → index-afb6z77w.js} +3 -1
  195. package/dist/{index-9y0afd5f.js → index-apf5g7y9.js} +1 -1
  196. package/dist/{index-4qvyhn23.js → index-bjmj2q1z.js} +1 -1
  197. package/dist/{index-bbzvrq66.js → index-dcsxj68j.js} +457 -204
  198. package/dist/{index-j516jaaz.js → index-dnzxxf8a.js} +49 -2
  199. package/dist/{index-kmbpej2y.js → index-emgrmavr.js} +102 -61
  200. package/dist/index-fgahdc7s.js +100 -0
  201. package/dist/{index-kzavdze2.js → index-gr0kxymw.js} +5 -1
  202. package/dist/{index-e06z0tkb.js → index-gya4hwh3.js} +2 -2
  203. package/dist/{index-3djgv3ch.js → index-hab790s6.js} +26 -11
  204. package/dist/{index-j13gzgdv.js → index-j0ef04jw.js} +9 -5
  205. package/dist/{index-rhb33thr.js → index-jcge9tx3.js} +1 -1
  206. package/dist/{index-dvd1qdwa.js → index-ke02kxsr.js} +3 -3
  207. package/dist/{index-3agqmmrg.js → index-mkfhpk11.js} +7 -9
  208. package/dist/{index-a725ayvz.js → index-mttkdm5a.js} +1 -1
  209. package/dist/{index-9wh98cpa.js → index-n3bm7zqq.js} +131 -91
  210. package/dist/{index-7xp05h20.js → index-p06z7g7w.js} +7 -7
  211. package/dist/{index-kt6dh1n6.js → index-p16q492v.js} +1 -1
  212. package/dist/{index-5zwac8ft.js → index-pp97q86a.js} +3 -3
  213. package/dist/{index-39n02e0q.js → index-psye60qn.js} +1 -1
  214. package/dist/{index-5ptwb6ka.js → index-pzhqydxb.js} +1 -1
  215. package/dist/{index-7kfcb576.js → index-qa2jjb65.js} +1 -1
  216. package/dist/{index-0djnptn8.js → index-qhjmmsm2.js} +10 -3
  217. package/dist/{index-7grgs8cx.js → index-qpzyahe3.js} +2 -2
  218. package/dist/{index-8xr2eq99.js → index-r97ppg0g.js} +4 -4
  219. package/dist/{index-bmaz3jzy.js → index-rjs94dny.js} +1 -1
  220. package/dist/{index-p1m9djt6.js → index-rxh3qy4x.js} +33 -6
  221. package/dist/{index-en8e5zsj.js → index-ryxb427v.js} +1 -1
  222. package/dist/{index-nbv44x0x.js → index-s2e3h616.js} +137 -36
  223. package/dist/{index-dwa6pskj.js → index-sd4e5x5j.js} +86 -47
  224. package/dist/{index-g56ht6qf.js → index-t3qcac2a.js} +1 -1
  225. package/dist/index-vgzhw2zk.js +304 -0
  226. package/dist/{index-jrka9029.js → index-vmbxj75t.js} +2 -2
  227. package/dist/{index-caywx1c0.js → index-wv2amqm4.js} +109 -12
  228. package/dist/{index-5e0zsbf7.js → index-x2fb37t0.js} +2 -2
  229. package/dist/{index-z4k0hqp9.js → index-y71zn1gw.js} +137 -27
  230. package/dist/{index-wavv538x.js → index-ybdq8kk2.js} +3 -3
  231. package/dist/{index-4gk6k3zc.js → index-ycr4pk0z.js} +1 -1
  232. package/dist/{index-0tyt97nk.js → index-yrr3n391.js} +1 -1
  233. package/dist/{index-v37b2cd6.js → index-z20pdxeb.js} +2 -2
  234. package/dist/{index-0hdm5sx6.js → index-z9d74jmb.js} +8 -4
  235. package/dist/{index-4s2w4g37.js → index-zhshhxew.js} +80 -2
  236. package/dist/{index-3b31z0pc.js → index-znd1b57f.js} +12 -6
  237. package/dist/internal/bounded-file-confirm.d.ts +32 -0
  238. package/dist/internal/bounded-file-confirm.d.ts.map +1 -0
  239. package/dist/internal/bounded-file-read.d.ts +10 -7
  240. package/dist/internal/bounded-file-read.d.ts.map +1 -1
  241. package/dist/internal/file-observation.d.ts +5 -1
  242. package/dist/internal/file-observation.d.ts.map +1 -1
  243. package/dist/internal/positive-integer.d.ts +2 -0
  244. package/dist/internal/positive-integer.d.ts.map +1 -1
  245. package/dist/internal/process-instance.d.ts +8 -0
  246. package/dist/internal/process-instance.d.ts.map +1 -1
  247. package/dist/internal/unix-socket.d.ts +10 -1
  248. package/dist/internal/unix-socket.d.ts.map +1 -1
  249. package/dist/server/unix-client.d.ts +7 -0
  250. package/dist/server/unix-client.d.ts.map +1 -1
  251. package/dist/service-host/systemd-inspect.d.ts +3 -1
  252. package/dist/service-host/systemd-inspect.d.ts.map +1 -1
  253. package/dist/service-host/systemd-render-shared.d.ts +64 -0
  254. package/dist/service-host/systemd-render-shared.d.ts.map +1 -0
  255. package/dist/service-host/systemd-render.d.ts +31 -26
  256. package/dist/service-host/systemd-render.d.ts.map +1 -1
  257. package/dist/service-host/systemd-timer-render.d.ts +31 -0
  258. package/dist/service-host/systemd-timer-render.d.ts.map +1 -0
  259. package/dist/service-host/systemd-timer-rollback.d.ts +26 -0
  260. package/dist/service-host/systemd-timer-rollback.d.ts.map +1 -0
  261. package/dist/service-host/systemd-timer.d.ts +82 -0
  262. package/dist/service-host/systemd-timer.d.ts.map +1 -0
  263. package/dist/service-host/systemd-unit-ops.d.ts +26 -0
  264. package/dist/service-host/systemd-unit-ops.d.ts.map +1 -0
  265. package/dist/service-host/systemd.d.ts +1 -1
  266. package/dist/service-host/systemd.d.ts.map +1 -1
  267. package/dist/tools/access.d.ts +30 -1
  268. package/dist/tools/access.d.ts.map +1 -1
  269. package/dist/tools/agent.d.ts +2 -2
  270. package/dist/tools/agent.d.ts.map +1 -1
  271. package/dist/tools/cli/args-scan.d.ts +5 -0
  272. package/dist/tools/cli/args-scan.d.ts.map +1 -1
  273. package/dist/tools/cli/args.d.ts +11 -5
  274. package/dist/tools/cli/args.d.ts.map +1 -1
  275. package/dist/tools/cli/invoke.d.ts +2 -1
  276. package/dist/tools/cli/invoke.d.ts.map +1 -1
  277. package/dist/tools/cli/notices.d.ts.map +1 -1
  278. package/dist/tools/cli/run-managed.d.ts.map +1 -1
  279. package/dist/tools/cli/session.d.ts.map +1 -1
  280. package/dist/tools/execute.d.ts.map +1 -1
  281. package/dist/tools/invoker.d.ts +2 -1
  282. package/dist/tools/invoker.d.ts.map +1 -1
  283. package/dist/tools/list-names.d.ts +2 -3
  284. package/dist/tools/list-names.d.ts.map +1 -1
  285. package/dist/tools/manifest.d.ts +2 -3
  286. package/dist/tools/manifest.d.ts.map +1 -1
  287. package/dist/tools/mcp/mount.d.ts +5 -5
  288. package/dist/tools/mcp/mount.d.ts.map +1 -1
  289. package/dist/tools/mcp/register.d.ts +2 -1
  290. package/dist/tools/mcp/register.d.ts.map +1 -1
  291. package/dist/tools/mcp/runtime-tools.d.ts.map +1 -1
  292. package/llms/agent-executor-acp.txt +10 -6
  293. package/llms/agent-executor-claude-sdk.txt +13 -10
  294. package/llms/agent-executor-claude.txt +2 -2
  295. package/llms/agent-executor-codex.txt +9 -3
  296. package/llms/agent-executor.txt +2 -2
  297. package/llms/agent-runtime.4.txt +21 -9
  298. package/llms/cli.3.txt +4 -4
  299. package/llms/cli.txt +1 -0
  300. package/llms/declaration.txt +2 -2
  301. package/llms/files.txt +1 -1
  302. package/llms/node.txt +2 -2
  303. package/llms/server.5.txt +2 -2
  304. package/llms/service-host.txt +5 -5
  305. package/llms/stitchkit.txt +81 -77
  306. package/llms/tools.3.txt +3 -2
  307. package/llms/upgrading-0.128.0-0.129.0.txt +175 -0
  308. package/llms/upgrading.txt +1 -0
  309. package/llms-full.txt +323 -127
  310. package/llms.txt +15 -14
  311. package/package.json +1 -1
  312. package/dist/index-ajmtxsky.js +0 -193
  313. package/dist/index-ax3wns1a.js +0 -93
@@ -11,12 +11,16 @@ import {
11
11
  AgentSnapshotSchema2
12
12
  } from "./index-bn2baakz.js";
13
13
  import {
14
+ InvocationPayloadSchema,
15
+ InvocationExpiredPayloadSchema,
16
+ PurgeInvocationPayloadsInputSchema2,
14
17
  ModelInvocationTraceSchema2,
15
18
  CompletionInvocationInputSchema2,
16
19
  InvocationCallerSchema,
17
20
  InvocationStartedSchema,
18
21
  ModelInvocationRecordSchema2,
19
- InvocationPayloadSchema,
22
+ InvocationStoredPayloadSchema,
23
+ ModelInvocationPayloadReadSchema2,
20
24
  isModelInvocationRecord,
21
25
  createToolChronology,
22
26
  advanceToolChronology,
@@ -24,7 +28,7 @@ import {
24
28
  isAssistantHistoryEvidence2,
25
29
  isCompleteAgentHistoryTurn,
26
30
  assistantStatus
27
- } from "./index-ajmtxsky.js";
31
+ } from "./index-vgzhw2zk.js";
28
32
  import {
29
33
  withStoreRetries,
30
34
  AgentRuntimeConflictError2,
@@ -59,7 +63,7 @@ import {
59
63
  hasProviderOrigin,
60
64
  markProviderStream,
61
65
  wrapInvocationModel
62
- } from "./index-kmbpej2y.js";
66
+ } from "./index-emgrmavr.js";
63
67
  import {
64
68
  AGENT_TOOL_PROGRESS_MESSAGE_MAX2,
65
69
  agentDurableEventId2
@@ -67,7 +71,7 @@ import {
67
71
  import {
68
72
  ToolExecutionControlError2,
69
73
  isToolExecutionControlError2
70
- } from "./index-9wh98cpa.js";
74
+ } from "./index-n3bm7zqq.js";
71
75
  import {
72
76
  contractOperationEffects2
73
77
  } from "./index-werjqesf.js";
@@ -93,14 +97,14 @@ import {
93
97
  } from "./index-r9kq5ark.js";
94
98
  import {
95
99
  listContractToolNames2
96
- } from "./index-3agqmmrg.js";
100
+ } from "./index-mkfhpk11.js";
97
101
  import {
98
102
  AgentToolError2,
99
103
  isAgentToolError2
100
104
  } from "./index-1psbyyhj.js";
101
105
  import {
102
106
  assertPositiveSafeInteger
103
- } from "./index-kzavdze2.js";
107
+ } from "./index-gr0kxymw.js";
104
108
  import {
105
109
  isRecord,
106
110
  transportResult,
@@ -595,6 +599,27 @@ async function readInvocationRecords(store, input) {
595
599
  ...page.nextSeq !== undefined && { nextSeq: page.nextSeq }
596
600
  };
597
601
  }
602
+ function decodeStoredPayload(payloads, conversationId, raw) {
603
+ const expired = InvocationExpiredPayloadSchema.safeParse(raw);
604
+ if (expired.success) {
605
+ return ModelInvocationPayloadReadSchema2.parse({
606
+ status: "expired",
607
+ artifactId: expired.data.artifactId,
608
+ sha256: expired.data.sha256,
609
+ bytes: expired.data.bytes,
610
+ expiredAt: expired.data.expiredAt
611
+ });
612
+ }
613
+ const live = InvocationPayloadSchema.parse(raw);
614
+ const payload = payloads.decrypt(conversationId, live);
615
+ return ModelInvocationPayloadReadSchema2.parse({
616
+ status: "available",
617
+ artifactId: live.artifactId,
618
+ sha256: live.sha256,
619
+ bytes: live.bytes,
620
+ payload
621
+ });
622
+ }
598
623
  async function readInvocationPayload(store, payloads, input) {
599
624
  const keyed = await store.findEventOnce?.({
600
625
  conversationId: input.conversationId,
@@ -602,7 +627,7 @@ async function readInvocationPayload(store, payloads, input) {
602
627
  key: input.artifactId
603
628
  });
604
629
  if (keyed)
605
- return payloads.decrypt(input.conversationId, keyed.payload);
630
+ return decodeStoredPayload(payloads, input.conversationId, keyed.payload);
606
631
  let fromSeq;
607
632
  do {
608
633
  const page = await store.readEvents({
@@ -613,9 +638,10 @@ async function readInvocationPayload(store, payloads, input) {
613
638
  for (const event of page.items) {
614
639
  if (event.kind !== "provider/payload")
615
640
  continue;
616
- const payload = InvocationPayloadSchema.parse(event.payload);
617
- if (payload.artifactId === input.artifactId)
618
- return payloads.decrypt(input.conversationId, payload);
641
+ const stored = InvocationStoredPayloadSchema.parse(event.payload);
642
+ if (stored.artifactId === input.artifactId) {
643
+ return decodeStoredPayload(payloads, input.conversationId, stored);
644
+ }
619
645
  }
620
646
  fromSeq = page.nextSeq;
621
647
  } while (fromSeq !== undefined);
@@ -655,6 +681,46 @@ async function generateWithFallback(models, writer, input, abortSignal) {
655
681
  }
656
682
  throw new Error("No completion model attempt available");
657
683
  }
684
+ function finishInvocation(writer, status, failure) {
685
+ return writer.append({
686
+ ...writer.identity,
687
+ type: "invocation/finished",
688
+ status,
689
+ ...failure && { failure }
690
+ });
691
+ }
692
+ async function runCompletion(config, payloads, writer, input, signal) {
693
+ const invocationId = writer.identity.invocationId;
694
+ const deadline = AbortSignal.timeout(input.timeoutMs);
695
+ const { signal: abortSignal, release } = linkAbortSignals(signal, deadline);
696
+ let text;
697
+ try {
698
+ text = await generateWithFallback(config.models, writer, input, abortSignal);
699
+ } catch (error) {
700
+ const status = abortSignal.aborted ? "cancelled" : "failed";
701
+ release();
702
+ try {
703
+ const artifact = await payloads.write(writer.identity, { error });
704
+ await finishInvocation(writer, status, {
705
+ artifactId: artifact.artifactId,
706
+ payloadSha256: artifact.sha256
707
+ });
708
+ } catch (receiptError) {
709
+ writer.receiptErrors.push(receiptError);
710
+ await finishInvocation(writer, status).catch((appendError) => {
711
+ writer.receiptErrors.push(appendError);
712
+ });
713
+ }
714
+ return withReceipt({ invocationId, outcome: status }, writer);
715
+ }
716
+ release();
717
+ try {
718
+ await finishInvocation(writer, "succeeded");
719
+ } catch (receiptError) {
720
+ writer.receiptErrors.push(receiptError);
721
+ }
722
+ return withReceipt({ invocationId, outcome: "succeeded", text }, writer);
723
+ }
658
724
  function createModelInvocationLedger2(config) {
659
725
  const { store } = config;
660
726
  const appendOnce = store.appendEventOnce?.bind(store);
@@ -714,12 +780,6 @@ function createModelInvocationLedger2(config) {
714
780
  };
715
781
  return { writer, duplicate: admission.outcome === "duplicate" };
716
782
  };
717
- const finish = (writer, status, failure) => writer.append({
718
- ...writer.identity,
719
- type: "invocation/finished",
720
- status,
721
- ...failure && { failure }
722
- });
723
783
  const ledger = {
724
784
  async complete(rawInput, context, signal) {
725
785
  const input = CompletionInvocationInputSchema2.parse(rawInput);
@@ -732,38 +792,9 @@ function createModelInvocationLedger2(config) {
732
792
  requested: input,
733
793
  models: input.models
734
794
  });
735
- const invocationId = writer.identity.invocationId;
736
795
  if (duplicate)
737
- return { invocationId, outcome: "duplicate" };
738
- const deadline = AbortSignal.timeout(input.timeoutMs);
739
- const { signal: abortSignal, release } = linkAbortSignals(signal, deadline);
740
- let text;
741
- try {
742
- text = await generateWithFallback(config.models, writer, input, abortSignal);
743
- } catch (error) {
744
- const status = abortSignal.aborted ? "cancelled" : "failed";
745
- release();
746
- try {
747
- const artifact = await payloads.write(writer.identity, { error });
748
- await finish(writer, status, {
749
- artifactId: artifact.artifactId,
750
- payloadSha256: artifact.sha256
751
- });
752
- } catch (receiptError) {
753
- writer.receiptErrors.push(receiptError);
754
- await finish(writer, status).catch((error) => {
755
- writer.receiptErrors.push(error);
756
- });
757
- }
758
- return withReceipt({ invocationId, outcome: status }, writer);
759
- }
760
- release();
761
- try {
762
- await finish(writer, "succeeded");
763
- } catch (receiptError) {
764
- writer.receiptErrors.push(receiptError);
765
- }
766
- return withReceipt({ invocationId, outcome: "succeeded", text }, writer);
796
+ return { invocationId: writer.identity.invocationId, outcome: "duplicate" };
797
+ return runCompletion(config, payloads, writer, input, signal);
767
798
  },
768
799
  async read(rawInput, context) {
769
800
  const input = InvocationReadInputSchema.parse(rawInput);
@@ -777,6 +808,18 @@ function createModelInvocationLedger2(config) {
777
808
  action: "read-payload"
778
809
  });
779
810
  return readInvocationPayload(store, payloads, input);
811
+ },
812
+ async purgePayloads(rawInput, context) {
813
+ const input = PurgeInvocationPayloadsInputSchema2.parse(rawInput);
814
+ await authorize({
815
+ context,
816
+ ...input.conversationId !== undefined && { conversationId: input.conversationId },
817
+ action: "purge-payloads"
818
+ });
819
+ if (!store.purgeExpiredPayloads) {
820
+ throw new TypeError("Model invocation payload purge requires store.purgeExpiredPayloads");
821
+ }
822
+ return store.purgeExpiredPayloads(input);
780
823
  }
781
824
  };
782
825
  agentBindings.set(ledger, {
@@ -799,7 +842,7 @@ function createModelInvocationLedger2(config) {
799
842
  });
800
843
  return {
801
844
  wrap: (selected, step, override) => wrapInvocationModel(writer, selected, step, override),
802
- finish: (status) => finish(writer, status)
845
+ finish: (status) => finishInvocation(writer, status)
803
846
  };
804
847
  }
805
848
  });
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createBoundedSinkManager
3
- } from "./index-prf6ayhf.js";
3
+ } from "./index-13wmzpa6.js";
4
4
  import {
5
5
  AgentRuntimeEventSchema2
6
6
  } from "./index-paff5y0r.js";
@@ -3,22 +3,18 @@ import {
3
3
  } from "./index-r9kq5ark.js";
4
4
  import {
5
5
  BoundedFileReadError,
6
- isNonRegularOpenErrno,
7
6
  readBoundedFileFrom,
8
7
  readBoundedFileSync
9
- } from "./index-nbv44x0x.js";
8
+ } from "./index-s2e3h616.js";
10
9
  import {
11
10
  isUnsafeKey
12
11
  } from "./index-zsarb5xp.js";
13
12
  import {
14
13
  formatZodError2
15
14
  } from "./index-1eeqpadm.js";
16
- import {
17
- errnoOf
18
- } from "./index-jj9228tt.js";
19
15
  import {
20
16
  assertPositiveSafeInteger
21
- } from "./index-kzavdze2.js";
17
+ } from "./index-gr0kxymw.js";
22
18
 
23
19
  // src/files/regular-file.ts
24
20
  import { constants, openSync } from "node:fs";
@@ -84,18 +80,13 @@ function refusalOf(error, path, limit) {
84
80
  return new RegularFileError2("not-regular", `Not a regular file: ${path}`, options);
85
81
  }
86
82
  }
87
- if (isNonRegularOpenErrno(errnoOf(error))) {
88
- return new RegularFileError2("not-regular", `Not a regular file: ${path}`, {
89
- cause: error
90
- });
91
- }
92
83
  return;
93
84
  }
94
85
  function retryOn(error, path, limit) {
95
86
  const refusal = refusalOf(error, path, limit);
96
87
  if (refusal === undefined)
97
88
  throw error;
98
- if (refusal.reason !== "changed")
89
+ if (!(error instanceof BoundedFileReadError) || error.code !== "FILE_CHANGED")
99
90
  throw refusal;
100
91
  return refusal;
101
92
  }
@@ -111,28 +102,28 @@ function withOneRetry(path, limit, attempt) {
111
102
  throw retryOn(error, path, limit);
112
103
  }
113
104
  }
114
- function readRegularFileWithMetaSync(path, options = {}, openFd = openSync) {
105
+ function readRegularFileWithMetaSync(path, options = {}, openFd = openSync, snapshot) {
115
106
  const { limit = DEFAULT_JSON_FILE_BYTES2, noFollow, accept } = options;
116
107
  assertPositiveSafeInteger("limit", limit);
117
108
  assertNoFollowAvailable(path, noFollow);
118
109
  const inspect = acceptCheck(accept, path);
119
110
  return withOneRetry(path, limit, () => {
120
- const { bytes, after } = readBoundedFileSync(path, limit, { stable: true, rejectSymlinks: noFollow, inspect }, openFd);
111
+ const { bytes, after } = readBoundedFileSync(path, limit, { stable: true, rejectSymlinks: noFollow, inspect }, openFd, snapshot);
121
112
  return { bytes, after };
122
113
  });
123
114
  }
124
115
  function readRegularFileSync2(path, options) {
125
116
  return readRegularFileWithMetaSync(path, options).bytes;
126
117
  }
127
- async function readRegularFileFromOpen(path, options = {}, openDescriptor = open) {
118
+ async function readRegularFileWithMeta(path, options = {}, openDescriptor = open, snapshot) {
128
119
  const { limit = DEFAULT_JSON_FILE_BYTES2, noFollow, accept, signal } = options;
129
120
  assertPositiveSafeInteger("limit", limit);
130
121
  assertNoFollowAvailable(path, noFollow);
131
122
  const inspect = acceptCheck(accept, path);
132
123
  const attempt = async () => {
133
124
  signal?.throwIfAborted();
134
- const read = await readBoundedFileFrom(path, limit, { stable: true, signal, rejectSymlinks: noFollow, inspect }, openDescriptor);
135
- return read.bytes;
125
+ const read = await readBoundedFileFrom(path, limit, { stable: true, signal, rejectSymlinks: noFollow, inspect }, openDescriptor, snapshot);
126
+ return { bytes: read.bytes, ...read.after !== undefined && { after: read.after } };
136
127
  };
137
128
  try {
138
129
  return await attempt();
@@ -145,6 +136,10 @@ async function readRegularFileFromOpen(path, options = {}, openDescriptor = open
145
136
  throw retryOn(error, path, limit);
146
137
  }
147
138
  }
139
+ async function readRegularFileFromOpen(path, options = {}, openDescriptor = open, snapshot) {
140
+ const { bytes } = await readRegularFileWithMeta(path, options, openDescriptor, snapshot);
141
+ return bytes;
142
+ }
148
143
  function readRegularFile2(path, options) {
149
144
  return readRegularFileFromOpen(path, options);
150
145
  }
@@ -197,4 +192,4 @@ function readJsonFileSync2(path, schema, options) {
197
192
  return validateJsonValue(parseJsonText(decodeJsonText(bytes, path), path), schema, path);
198
193
  }
199
194
 
200
- export { DEFAULT_JSON_FILE_BYTES2, RegularFileError2, fileIdentity2, fileCacheIdentity, readRegularFileWithMetaSync, readRegularFileSync2, readRegularFileFromOpen, readRegularFile2, decodeJsonText, parseJsonText, validateJsonValue, parseJsonBytes2, readJsonFileSync2 };
195
+ export { DEFAULT_JSON_FILE_BYTES2, RegularFileError2, fileIdentity2, fileCacheIdentity, readRegularFileWithMetaSync, readRegularFileSync2, readRegularFileWithMeta, readRegularFile2, decodeJsonText, parseJsonText, validateJsonValue, parseJsonBytes2, readJsonFileSync2 };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  closeAfter,
3
3
  closeAfterSync
4
- } from "./index-nbv44x0x.js";
4
+ } from "./index-s2e3h616.js";
5
5
 
6
6
  // src/internal/atomic-publication.ts
7
7
  import { closeSync, fsyncSync, linkSync, openSync, renameSync, unlinkSync } from "node:fs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  attemptExclusiveLock
3
- } from "./index-dvd1qdwa.js";
3
+ } from "./index-ke02kxsr.js";
4
4
  import {
5
5
  sleep
6
6
  } from "./index-mxt0wfjy.js";
@@ -19,10 +19,10 @@ import {
19
19
  assertRawBodyEndpoint,
20
20
  assertSafelistedBodyEndpoint,
21
21
  assertResponseMetaEndpoint
22
- } from "./index-en8e5zsj.js";
22
+ } from "./index-ryxb427v.js";
23
23
  import {
24
24
  assertPositiveSafeInteger
25
- } from "./index-kzavdze2.js";
25
+ } from "./index-gr0kxymw.js";
26
26
  import {
27
27
  isRecord
28
28
  } from "./index-ps3djm8d.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./index-877e9y8r.js";
4
4
  import {
5
5
  assertPositiveSafeInteger
6
- } from "./index-kzavdze2.js";
6
+ } from "./index-gr0kxymw.js";
7
7
 
8
8
  // src/internal/bounded-lines.ts
9
9
  var DEFAULT_STREAM_LINE_BYTES = 1024 * 1024;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  startNativeCommand
3
- } from "./index-7kfcb576.js";
3
+ } from "./index-qa2jjb65.js";
4
4
  import {
5
5
  raceAbort
6
6
  } from "./index-rptj3qnc.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
- collectToolSurface
3
- } from "./index-5e0zsbf7.js";
2
+ projectToolSurface
3
+ } from "./index-669374qc.js";
4
4
 
5
5
  // src/tools/manifest.ts
6
6
  function utf8Length(value) {
@@ -8,21 +8,24 @@ function utf8Length(value) {
8
8
  }
9
9
  function describeToolCatalog2(config) {
10
10
  const deferred = new Set(config.deferredNames ?? []);
11
- const entries = collectToolSurface({
12
- surface: config,
13
- transport: config.transport,
11
+ const entries = projectToolSurface(config, config.transport, {
14
12
  extend: config.extend,
15
13
  flattenUnionInput: config.flattenUnionInput,
16
14
  inputRecursionDepth: config.inputRecursionDepth
17
- }).map(({ kind, service, action, mountable }) => {
18
- const schemaBytes = utf8Length(mountable.presentationSchema);
15
+ }).map((projected) => {
16
+ const schemaBytes = utf8Length(projected.presentationSchema);
17
+ const description = projected.kind === "contract" ? projected.source.desc : projected.source.description;
19
18
  return {
20
- name: mountable.name,
21
- description: mountable.method.desc,
22
- inputSchema: mountable.presentationSchema,
23
- source: { kind, service, action },
19
+ name: projected.name,
20
+ description,
21
+ inputSchema: projected.presentationSchema,
22
+ source: {
23
+ kind: projected.kind,
24
+ service: projected.serviceName,
25
+ action: projected.action
26
+ },
24
27
  schemaBytes,
25
- deferred: deferred.has(mountable.name)
28
+ deferred: deferred.has(projected.name)
26
29
  };
27
30
  });
28
31
  if (config.maxSchemaBytes !== undefined) {
@@ -34,16 +37,14 @@ function describeToolCatalog2(config) {
34
37
  return entries;
35
38
  }
36
39
  function buildToolManifest2(config) {
37
- return collectToolSurface({
38
- surface: config,
39
- transport: config.transport,
40
+ return projectToolSurface(config, config.transport, {
40
41
  extend: config.extend,
41
42
  flattenUnionInput: config.flattenUnionInput,
42
43
  inputRecursionDepth: config.inputRecursionDepth
43
- }).map(({ mountable }) => ({
44
- name: mountable.name,
45
- description: mountable.method.desc,
46
- inputSchema: mountable.presentationSchema
44
+ }).map((projected) => ({
45
+ name: projected.name,
46
+ description: projected.kind === "contract" ? projected.source.desc : projected.source.description,
47
+ inputSchema: projected.presentationSchema
47
48
  }));
48
49
  }
49
50
 
@@ -27,7 +27,7 @@ import {
27
27
  } from "./index-akfgymyr.js";
28
28
  import {
29
29
  assertInputRecursionDepth
30
- } from "./index-en8e5zsj.js";
30
+ } from "./index-ryxb427v.js";
31
31
  import {
32
32
  AppError2
33
33
  } from "./index-9pv126eh.js";
@@ -409,22 +409,37 @@ async function probeProcessOwnerWith(pid, recorded, probes = { read: readProcess
409
409
  const liveness = await probes.liveness(pid);
410
410
  if (liveness === "gone")
411
411
  return { liveness, identity: "pid-gone" };
412
- return judgeObserved(recorded, self.current, await observe(pid));
412
+ const observation = await observe(pid);
413
+ if (observation.state === "unavailable" && await probes.liveness(pid) === "gone") {
414
+ return { liveness: "gone", identity: "pid-gone" };
415
+ }
416
+ return judgeObserved(recorded, self.current, observation);
413
417
  }
414
- function probeProcessOwnerSync(pid, recorded) {
415
- z.number().int().positive().max(MAX_PID).parse(pid);
418
+ function probeProcessOwnerSyncWith(pid, recorded, probes = {
419
+ liveness: probeLivenessSync,
420
+ observe: (target) => observeProcessInstanceAtSync(target, "/proc")
421
+ }) {
416
422
  if (recorded === undefined)
417
- return { liveness: probeLivenessSync(pid), identity: "legacy" };
423
+ return { liveness: probes.liveness(pid), identity: "legacy" };
418
424
  if (recorded === null)
419
425
  return unrecordedLifetime();
420
- ProcessInstanceSchema2.parse(recorded);
421
- const self = judgeAgainstSelf(recorded, observeProcessInstanceAtSync(process.pid, "/proc"));
426
+ const self = judgeAgainstSelf(recorded, probes.observe(process.pid));
422
427
  if (!("current" in self))
423
428
  return self;
424
- const liveness = probeLivenessSync(pid);
429
+ const liveness = probes.liveness(pid);
425
430
  if (liveness === "gone")
426
431
  return { liveness, identity: "pid-gone" };
427
- return judgeObserved(recorded, self.current, observeProcessInstanceAtSync(pid, "/proc"));
432
+ const observation = probes.observe(pid);
433
+ if (observation.state === "unavailable" && probes.liveness(pid) === "gone") {
434
+ return { liveness: "gone", identity: "pid-gone" };
435
+ }
436
+ return judgeObserved(recorded, self.current, observation);
437
+ }
438
+ function probeProcessOwnerSync(pid, recorded) {
439
+ z.number().int().positive().max(MAX_PID).parse(pid);
440
+ if (recorded != null)
441
+ ProcessInstanceSchema2.parse(recorded);
442
+ return probeProcessOwnerSyncWith(pid, recorded);
428
443
  }
429
444
 
430
445
  export { machineIdentity, machineIdentitySync, probeLiveness, ProcessInstanceSchema2, sameProcessInstance, observeProcessInstance2, readProcessInstance, readProcessInstanceSync, observeProcessInstanceAt, probeProcessOwner2, probeProcessOwnerWith, probeProcessOwnerSync };
@@ -5,13 +5,12 @@ import {
5
5
  toJsonSchema
6
6
  } from "./index-ngwf1s3c.js";
7
7
  import {
8
+ inspectOnlyError,
9
+ resolveToolAccess,
8
10
  parseToolCallArguments,
9
11
  toolResultFromError,
10
- observed,
11
- collectTools2,
12
- createToolRunner,
13
- formatToolError
14
- } from "./index-9wh98cpa.js";
12
+ observed
13
+ } from "./index-n3bm7zqq.js";
15
14
  import {
16
15
  toolSurfaceOutputSchema,
17
16
  staticInputRounds,
@@ -19,7 +18,12 @@ import {
19
18
  validateResolvedInputRounds,
20
19
  presentationMetadata,
21
20
  prepareProjectedMcpTools
22
- } from "./index-3ypvpkwr.js";
21
+ } from "./index-669374qc.js";
22
+ import {
23
+ collectTools2,
24
+ createToolRunner,
25
+ formatToolError
26
+ } from "./index-fgahdc7s.js";
23
27
  import {
24
28
  publishedToolAnnotations
25
29
  } from "./index-0x4mnwg5.js";
@@ -47,10 +51,7 @@ import {
47
51
  } from "./index-tazm4dxf.js";
48
52
  import {
49
53
  collectToolSurface
50
- } from "./index-5e0zsbf7.js";
51
- import {
52
- resolveToolAccess
53
- } from "./index-ax3wns1a.js";
54
+ } from "./index-x2fb37t0.js";
54
55
  import {
55
56
  runWithRequestContext2,
56
57
  getRequestContext2
@@ -582,6 +583,9 @@ function registerMcpTool(server, presentation, descriptor, config) {
582
583
  const { name } = presentation;
583
584
  const format = config.formatResult;
584
585
  server.registerTool(name, stampToolRegistration(toolConfig, config.catalog), async (rawArgs, mcpContext) => stampToolResult(await runInMcpRequestContext(mcpContext, name, async () => {
586
+ const inspectErr = inspectOnlyError(config.lifecycle);
587
+ if (inspectErr)
588
+ return format(toolResultFromError(inspectErr), "none", name);
585
589
  const args = isRecord(rawArgs) ? rawArgs : {};
586
590
  const startedAt = Date.now();
587
591
  try {
@@ -688,6 +692,7 @@ function mountPreparedRuntimeMcp(server, tools, config) {
688
692
  catalog: config.catalog,
689
693
  multiRoundRuntime: config.multiRoundRuntime,
690
694
  hooks: config.hooks,
695
+ lifecycle: config.lifecycle,
691
696
  context: config.context
692
697
  });
693
698
  }
@@ -741,6 +746,7 @@ function mountPreparedMcp(mcpServer, prepared, config) {
741
746
  catalog: config.catalog,
742
747
  multiRoundRuntime: config.multiRoundRuntime,
743
748
  hooks: config.hooks,
749
+ lifecycle,
744
750
  context: config.context
745
751
  });
746
752
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  assertPositiveSafeInteger
3
- } from "./index-kzavdze2.js";
3
+ } from "./index-gr0kxymw.js";
4
4
 
5
5
  // src/primitives/decimal.ts
6
6
  import { z } from "zod";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./index-877e9y8r.js";
4
4
  import {
5
5
  assertPositiveSafeInteger
6
- } from "./index-kzavdze2.js";
6
+ } from "./index-gr0kxymw.js";
7
7
  import {
8
8
  abortReason,
9
9
  raceAbort
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  ExclusiveLockError2,
3
3
  withExclusiveLock2
4
- } from "./index-g1q7fwn9.js";
4
+ } from "./index-2nwvn7m2.js";
5
5
  import {
6
6
  writeFileAtomicSync2
7
- } from "./index-5zwac8ft.js";
7
+ } from "./index-pp97q86a.js";
8
8
  import {
9
9
  fetchGuarded,
10
10
  PrivateAddressRefusal,
11
11
  readCapped
12
- } from "./index-9y0afd5f.js";
12
+ } from "./index-apf5g7y9.js";
13
13
  import {
14
14
  serializeCanonicalJson
15
15
  } from "./index-fmzg39a8.js";
16
16
  import {
17
17
  assertPositiveSafeInteger
18
- } from "./index-kzavdze2.js";
18
+ } from "./index-gr0kxymw.js";
19
19
  import {
20
20
  assertTimerMs,
21
21
  withSignalDeadline
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  withExclusiveLock2
3
- } from "./index-g1q7fwn9.js";
3
+ } from "./index-2nwvn7m2.js";
4
4
  import {
5
5
  writeAtomicFileData
6
- } from "./index-5zwac8ft.js";
6
+ } from "./index-pp97q86a.js";
7
7
  import {
8
8
  publishAtomicFile
9
- } from "./index-xtkw9866.js";
9
+ } from "./index-2c5w2d1d.js";
10
10
  import {
11
11
  readBoundedFile
12
- } from "./index-nbv44x0x.js";
12
+ } from "./index-s2e3h616.js";
13
13
  import {
14
14
  errnoOf
15
15
  } from "./index-jj9228tt.js";
16
16
  import {
17
17
  assertPositiveSafeInteger
18
- } from "./index-kzavdze2.js";
18
+ } from "./index-gr0kxymw.js";
19
19
 
20
20
  // src/application/file-state-store.ts
21
21
  import { mkdir, open, unlink } from "node:fs/promises";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  RegularFileError2,
3
3
  readRegularFile2
4
- } from "./index-3gwp8ez6.js";
4
+ } from "./index-21cfxc4z.js";
5
5
  import {
6
6
  runNativeCommand2
7
- } from "./index-5ptwb6ka.js";
7
+ } from "./index-pzhqydxb.js";
8
8
  import {
9
9
  writeFileAtomic2
10
- } from "./index-5zwac8ft.js";
10
+ } from "./index-pp97q86a.js";
11
11
  import {
12
12
  errnoOf
13
13
  } from "./index-jj9228tt.js";