stitchkit 0.136.8 → 0.137.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 (342) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/dist/agent-runtime/stores/branch-observations.d.ts +19 -19
  3. package/dist/agent-runtime/stores/schedule-contract.d.ts.map +1 -1
  4. package/dist/agent-runtime/stores/schedule-records.d.ts.map +1 -1
  5. package/dist/agent-runtime/stores/schedule-tools.d.ts.map +1 -1
  6. package/dist/agent-runtime/stores/sql-rows.d.ts +36 -36
  7. package/dist/agent-runtime/terminal-commit.d.ts +5 -5
  8. package/dist/agent-runtime/testing/store-conformance-lifecycle.d.ts +52 -52
  9. package/dist/agent-runtime/testing/store-conformance-support.d.ts +26 -26
  10. package/dist/browser/client-executors.d.ts +2 -3
  11. package/dist/browser/client-executors.d.ts.map +1 -1
  12. package/dist/browser/realtime-client.d.ts +6 -1
  13. package/dist/browser/realtime-client.d.ts.map +1 -1
  14. package/dist/browser/socket-io-client.d.ts.map +1 -1
  15. package/dist/browser/socket-io-contract.d.ts +2 -0
  16. package/dist/browser/socket-io-contract.d.ts.map +1 -1
  17. package/dist/contract/define-validation.d.ts +6 -0
  18. package/dist/contract/define-validation.d.ts.map +1 -1
  19. package/dist/contract/define.d.ts +1 -1
  20. package/dist/contract/define.d.ts.map +1 -1
  21. package/dist/contract/error-mapping.d.ts +71 -0
  22. package/dist/contract/error-mapping.d.ts.map +1 -0
  23. package/dist/contract/errors.d.ts +8 -0
  24. package/dist/contract/errors.d.ts.map +1 -1
  25. package/dist/contract/factory.d.ts +8 -0
  26. package/dist/contract/factory.d.ts.map +1 -1
  27. package/dist/contract/fragments.d.ts +45 -0
  28. package/dist/contract/fragments.d.ts.map +1 -0
  29. package/dist/contract/normalize.d.ts +6 -3
  30. package/dist/contract/normalize.d.ts.map +1 -1
  31. package/dist/contract/operation-read.d.ts +38 -0
  32. package/dist/contract/operation-read.d.ts.map +1 -0
  33. package/dist/contract/stream.d.ts.map +1 -1
  34. package/dist/contract/time-zone.d.ts +31 -0
  35. package/dist/contract/time-zone.d.ts.map +1 -0
  36. package/dist/contract/tool-options.d.ts +1 -1
  37. package/dist/contract/tool-options.d.ts.map +1 -1
  38. package/dist/device-relay/hub.d.ts +1 -1
  39. package/dist/device-relay/hub.d.ts.map +1 -1
  40. package/dist/entrypoints/agent-executor/acp.js +9 -9
  41. package/dist/entrypoints/agent-executor/claude-sdk.js +11 -11
  42. package/dist/entrypoints/agent-executor/claude.js +8 -8
  43. package/dist/entrypoints/agent-executor/codex.js +15 -15
  44. package/dist/entrypoints/agent-executor/testing.js +11 -11
  45. package/dist/entrypoints/agent-executor.js +14 -13
  46. package/dist/entrypoints/agent-runtime/ai-sdk.js +5 -5
  47. package/dist/entrypoints/agent-runtime/anthropic.js +1 -1
  48. package/dist/entrypoints/agent-runtime/browser.js +5 -5
  49. package/dist/entrypoints/agent-runtime/coding-tools.js +3 -3
  50. package/dist/entrypoints/agent-runtime/harness.js +14 -15
  51. package/dist/entrypoints/agent-runtime/openai.js +1 -1
  52. package/dist/entrypoints/agent-runtime/openrouter.js +7 -7
  53. package/dist/entrypoints/agent-runtime/postgres.js +5 -5
  54. package/dist/entrypoints/agent-runtime/realtime.js +8 -8
  55. package/dist/entrypoints/agent-runtime/sandbox.js +7 -7
  56. package/dist/entrypoints/agent-runtime/sqlite/bun.js +6 -6
  57. package/dist/entrypoints/agent-runtime/sqlite/node.js +6 -6
  58. package/dist/entrypoints/agent-runtime/testing.js +5 -5
  59. package/dist/entrypoints/agent-runtime.js +33 -29
  60. package/dist/entrypoints/application/diagnostic-journal.js +3 -3
  61. package/dist/entrypoints/application/directory-inbox.js +1 -1
  62. package/dist/entrypoints/application/grammy.js +1 -1
  63. package/dist/entrypoints/application/opentelemetry.js +2 -2
  64. package/dist/entrypoints/application.js +10 -10
  65. package/dist/entrypoints/cli/publish.js +8 -8
  66. package/dist/entrypoints/cli.d.ts +2 -0
  67. package/dist/entrypoints/cli.d.ts.map +1 -1
  68. package/dist/entrypoints/cli.js +518 -59
  69. package/dist/entrypoints/contract.d.ts +5 -1
  70. package/dist/entrypoints/contract.d.ts.map +1 -1
  71. package/dist/entrypoints/contract.js +25 -7
  72. package/dist/entrypoints/device-relay.js +20 -10
  73. package/dist/entrypoints/files/packaging.js +2 -2
  74. package/dist/entrypoints/files.js +10 -10
  75. package/dist/entrypoints/handler.d.ts +1 -1
  76. package/dist/entrypoints/handler.d.ts.map +1 -1
  77. package/dist/entrypoints/handler.js +12 -12
  78. package/dist/entrypoints/http.js +13 -12
  79. package/dist/entrypoints/index.js +36 -18
  80. package/dist/entrypoints/live.d.ts +2 -1
  81. package/dist/entrypoints/live.d.ts.map +1 -1
  82. package/dist/entrypoints/live.js +630 -1
  83. package/dist/entrypoints/node.d.ts +5 -0
  84. package/dist/entrypoints/node.d.ts.map +1 -1
  85. package/dist/entrypoints/node.js +36 -16
  86. package/dist/entrypoints/observability.js +25 -10
  87. package/dist/entrypoints/postgres.d.ts +1 -0
  88. package/dist/entrypoints/postgres.d.ts.map +1 -1
  89. package/dist/entrypoints/postgres.js +66 -0
  90. package/dist/entrypoints/primitives.js +11 -4
  91. package/dist/entrypoints/process.js +7 -7
  92. package/dist/entrypoints/react.js +1 -1
  93. package/dist/entrypoints/realtime.js +3 -3
  94. package/dist/entrypoints/remote.js +6 -29
  95. package/dist/entrypoints/server.d.ts +6 -1
  96. package/dist/entrypoints/server.d.ts.map +1 -1
  97. package/dist/entrypoints/server.js +93 -32
  98. package/dist/entrypoints/service-host/macos.js +6 -6
  99. package/dist/entrypoints/service-host/work.js +6 -6
  100. package/dist/entrypoints/service-host.js +10 -10
  101. package/dist/entrypoints/spend.js +2 -1
  102. package/dist/entrypoints/sync.js +5 -5
  103. package/dist/entrypoints/telegram.js +8 -8
  104. package/dist/entrypoints/testing.d.ts +1 -0
  105. package/dist/entrypoints/testing.d.ts.map +1 -1
  106. package/dist/entrypoints/testing.js +1501 -13
  107. package/dist/entrypoints/tools/agent.js +6 -7
  108. package/dist/entrypoints/tools/connections.js +9 -11
  109. package/dist/entrypoints/tools/contract.js +1 -2
  110. package/dist/entrypoints/tools/invoker.js +4 -5
  111. package/dist/entrypoints/tools/mcp.js +10 -11
  112. package/dist/entrypoints/tools/toolkit.d.ts +1 -1
  113. package/dist/entrypoints/tools/toolkit.d.ts.map +1 -1
  114. package/dist/entrypoints/tools/toolkit.js +29 -24
  115. package/dist/entrypoints/tools.js +28 -30
  116. package/dist/entrypoints/tracking/contract.js +2 -1
  117. package/dist/entrypoints/xlsx.js +5 -8
  118. package/dist/{index-033tyx59.js → index-0zw0hcyg.js} +4 -1
  119. package/dist/{index-zcq3dby3.js → index-1bjwfnnj.js} +1 -1
  120. package/dist/{index-3zt0r4y0.js → index-1cfacbe2.js} +4 -4
  121. package/dist/{index-gj4wdts6.js → index-1ckh9qx1.js} +1 -1
  122. package/dist/index-1pvwmbxp.js +1435 -0
  123. package/dist/{index-0s75mjh7.js → index-2e4hdh32.js} +1 -1
  124. package/dist/{index-3shdhzt6.js → index-2j0pqxkn.js} +12 -6
  125. package/dist/index-3k8w02se.js +28 -0
  126. package/dist/{index-7fjbdga8.js → index-3pb4ccj2.js} +8 -0
  127. package/dist/{index-w7e402wx.js → index-48kb4gqq.js} +46 -7
  128. package/dist/{index-cv9b7fz2.js → index-6rws2xf5.js} +8 -0
  129. package/dist/{index-bbpygynk.js → index-77w5vx0g.js} +1 -1
  130. package/dist/index-7dz1ngaf.js +35 -0
  131. package/dist/{index-y68gavb5.js → index-7n4atsm4.js} +1 -1
  132. package/dist/index-8ef1bfea.js +71 -0
  133. package/dist/{index-0x4mnwg5.js → index-8k3y9nd4.js} +6 -9
  134. package/dist/{index-ezwsqyad.js → index-8rkdkefj.js} +40 -23
  135. package/dist/{index-3cwq5byx.js → index-9nax7tkn.js} +2 -2
  136. package/dist/{index-dz6tstcp.js → index-9r6emjwz.js} +1 -1
  137. package/dist/{index-32ew02z1.js → index-c4b7d6ej.js} +5 -5
  138. package/dist/index-ceshyndf.js +284 -0
  139. package/dist/{index-w161azza.js → index-d13rw31w.js} +6 -6
  140. package/dist/{index-1h0dtfz3.js → index-dmm7vs3f.js} +1 -1
  141. package/dist/{index-ypm85xwe.js → index-dp8j2e77.js} +1 -1
  142. package/dist/{index-qqd979f7.js → index-edycjvrv.js} +9 -9
  143. package/dist/{index-18qdpbcq.js → index-egpf9dv0.js} +200 -1479
  144. package/dist/{index-fatke81t.js → index-ezgvsj9w.js} +2 -2
  145. package/dist/{index-chapre0y.js → index-f3e7tj1g.js} +1 -1
  146. package/dist/{index-df5xr2f9.js → index-frsd2a94.js} +16 -1
  147. package/dist/index-fy9mmek1.js +95 -0
  148. package/dist/{index-2331y2tf.js → index-g0gvfzrx.js} +12 -12
  149. package/dist/index-gpe8d1ka.js +19 -0
  150. package/dist/{index-4p2zx593.js → index-gyw4qd0m.js} +1 -1
  151. package/dist/index-gzqy81tw.js +172 -0
  152. package/dist/{index-yrhw10ef.js → index-h34c510q.js} +8 -4
  153. package/dist/{index-rr94xcj6.js → index-h527p1yj.js} +10 -4
  154. package/dist/{index-qj0sq69b.js → index-hgf1tbgz.js} +76 -16
  155. package/dist/{index-smvmnz5y.js → index-hvpan32x.js} +1 -1
  156. package/dist/{index-4gbybjg6.js → index-hxawqrb6.js} +2 -2
  157. package/dist/{index-0k1ba0ss.js → index-j91jffhv.js} +1 -1
  158. package/dist/{index-d01akj5n.js → index-jr4kwetx.js} +8 -8
  159. package/dist/{index-xqppqn97.js → index-ka6z48zc.js} +315 -69
  160. package/dist/{index-by8w2461.js → index-kw0segzt.js} +104 -3
  161. package/dist/{index-6f4fjygr.js → index-m5t4dr7h.js} +29 -7
  162. package/dist/{index-afaq0nc4.js → index-n0egp1ke.js} +1 -1
  163. package/dist/{index-9fzjgg86.js → index-n74rb1dq.js} +2 -2
  164. package/dist/{index-dwq6a6sq.js → index-pt25vmhc.js} +33 -16
  165. package/dist/{index-vwg0n3e6.js → index-pyazb8q4.js} +23 -14
  166. package/dist/{index-5md04mwc.js → index-qpjjbkc5.js} +4 -4
  167. package/dist/{index-08a3qfr8.js → index-r1qt6zgj.js} +1 -1
  168. package/dist/{index-ctaxjpa4.js → index-r709pqed.js} +1 -1
  169. package/dist/{index-2zrx0nzv.js → index-rzc40z6e.js} +3 -5
  170. package/dist/{index-gq35s3bm.js → index-s5axtd56.js} +2 -2
  171. package/dist/{index-edpkm3k7.js → index-scpcps66.js} +669 -16
  172. package/dist/{index-ry8m2mhg.js → index-sf2mt6wj.js} +1 -1
  173. package/dist/{index-tjhhsnjv.js → index-t1213r0t.js} +1 -1
  174. package/dist/{index-gvgtmt7a.js → index-t7efje30.js} +2 -2
  175. package/dist/{index-w3s79kcb.js → index-tzyk36dy.js} +1 -1
  176. package/dist/{index-8tn10tp6.js → index-v64bvwjr.js} +1 -1
  177. package/dist/{index-1fhbe4e4.js → index-vksbsqpb.js} +1 -1
  178. package/dist/{index-dxft2mnm.js → index-wdg7bswj.js} +1 -1
  179. package/dist/{index-ppy23bd2.js → index-wjx1zs2r.js} +7 -578
  180. package/dist/{index-efbzm2se.js → index-x2r0ma9t.js} +1 -1
  181. package/dist/{index-kd48gk7d.js → index-x8py72a3.js} +1 -1
  182. package/dist/index-xvydbxmk.js +1404 -0
  183. package/dist/index-xwaphv0d.js +31 -0
  184. package/dist/{index-a09r9ff0.js → index-y44j39yk.js} +1 -1
  185. package/dist/{index-7mjsb7zv.js → index-ybrrxjhb.js} +1 -1
  186. package/dist/{index-xsrma0jd.js → index-ysthxsa8.js} +6 -6
  187. package/dist/{index-6p5pshcd.js → index-yyh3ey4b.js} +1 -1
  188. package/dist/{index-mr3njw67.js → index-z6hq9j8j.js} +1 -1
  189. package/dist/{index-67mzzkdv.js → index-z72agxdn.js} +2 -2
  190. package/dist/{index-e4w0sfm1.js → index-z78mtc16.js} +1 -1
  191. package/dist/{index-7csn6pva.js → index-ze94h4ph.js} +5 -0
  192. package/dist/internal/json-stringify.d.ts +12 -0
  193. package/dist/internal/json-stringify.d.ts.map +1 -1
  194. package/dist/internal/unix-client-error.d.ts +4 -0
  195. package/dist/internal/unix-client-error.d.ts.map +1 -1
  196. package/dist/live/watch-contract.d.ts +4 -0
  197. package/dist/live/watch-contract.d.ts.map +1 -1
  198. package/dist/live/watch-fanout-frame.d.ts +81 -0
  199. package/dist/live/watch-fanout-frame.d.ts.map +1 -0
  200. package/dist/live/watch-fanout.d.ts +57 -0
  201. package/dist/live/watch-fanout.d.ts.map +1 -0
  202. package/dist/observability/audit.d.ts.map +1 -1
  203. package/dist/observability/spool-core.d.ts +1 -0
  204. package/dist/observability/spool-core.d.ts.map +1 -1
  205. package/dist/observability/spool-drain.d.ts +48 -0
  206. package/dist/observability/spool-drain.d.ts.map +1 -0
  207. package/dist/observability/spool.d.ts +12 -6
  208. package/dist/observability/spool.d.ts.map +1 -1
  209. package/dist/postgres/rollback-transaction.d.ts +61 -0
  210. package/dist/postgres/rollback-transaction.d.ts.map +1 -0
  211. package/dist/primitives/deadline.d.ts +4 -4
  212. package/dist/primitives/deadline.d.ts.map +1 -1
  213. package/dist/server/error-hook.d.ts +3 -32
  214. package/dist/server/error-hook.d.ts.map +1 -1
  215. package/dist/server/local-consent-key.d.ts +104 -0
  216. package/dist/server/local-consent-key.d.ts.map +1 -0
  217. package/dist/server/local-control-journal.d.ts +51 -0
  218. package/dist/server/local-control-journal.d.ts.map +1 -0
  219. package/dist/server/local-control-reporter.d.ts +32 -0
  220. package/dist/server/local-control-reporter.d.ts.map +1 -0
  221. package/dist/server/local-control.d.ts +48 -0
  222. package/dist/server/local-control.d.ts.map +1 -0
  223. package/dist/server/local-host-clients.d.ts +105 -0
  224. package/dist/server/local-host-clients.d.ts.map +1 -0
  225. package/dist/server/middleware/trust-fence.d.ts +20 -0
  226. package/dist/server/middleware/trust-fence.d.ts.map +1 -1
  227. package/dist/spend/receipt-spool.d.ts +9 -4
  228. package/dist/spend/receipt-spool.d.ts.map +1 -1
  229. package/dist/testing/tool-surface-checks.d.ts +89 -0
  230. package/dist/testing/tool-surface-checks.d.ts.map +1 -0
  231. package/dist/testing/tool-surface-cli-callable.d.ts +63 -0
  232. package/dist/testing/tool-surface-cli-callable.d.ts.map +1 -0
  233. package/dist/testing/tool-surface-dead-refs.d.ts +32 -0
  234. package/dist/testing/tool-surface-dead-refs.d.ts.map +1 -0
  235. package/dist/testing/tool-surface-gates.d.ts +72 -0
  236. package/dist/testing/tool-surface-gates.d.ts.map +1 -0
  237. package/dist/testing/tool-surface-parity-drivers.d.ts +56 -0
  238. package/dist/testing/tool-surface-parity-drivers.d.ts.map +1 -0
  239. package/dist/testing/tool-surface-parity.d.ts +28 -0
  240. package/dist/testing/tool-surface-parity.d.ts.map +1 -0
  241. package/dist/testing/tool-surface-ratchet.d.ts +71 -0
  242. package/dist/testing/tool-surface-ratchet.d.ts.map +1 -0
  243. package/dist/tools/agent-tools.d.ts +3 -0
  244. package/dist/tools/agent-tools.d.ts.map +1 -1
  245. package/dist/tools/cli/command.d.ts +3 -0
  246. package/dist/tools/cli/command.d.ts.map +1 -1
  247. package/dist/tools/cli/create-cli.d.ts.map +1 -1
  248. package/dist/tools/cli/format.d.ts +3 -6
  249. package/dist/tools/cli/format.d.ts.map +1 -1
  250. package/dist/tools/cli/invoke.d.ts +4 -0
  251. package/dist/tools/cli/invoke.d.ts.map +1 -1
  252. package/dist/tools/cli/local-key-command.d.ts +53 -0
  253. package/dist/tools/cli/local-key-command.d.ts.map +1 -0
  254. package/dist/tools/cli/managed-surface.d.ts.map +1 -1
  255. package/dist/tools/cli/run-managed.d.ts.map +1 -1
  256. package/dist/tools/cli/run-stream.d.ts.map +1 -1
  257. package/dist/tools/cli/runner.d.ts +8 -3
  258. package/dist/tools/cli/runner.d.ts.map +1 -1
  259. package/dist/tools/cli/secret.d.ts +55 -0
  260. package/dist/tools/cli/secret.d.ts.map +1 -0
  261. package/dist/tools/cli/session.d.ts +2 -2
  262. package/dist/tools/cli/session.d.ts.map +1 -1
  263. package/dist/tools/cli/stream.d.ts.map +1 -1
  264. package/dist/tools/cli/unix-outcome.d.ts +6 -0
  265. package/dist/tools/cli/unix-outcome.d.ts.map +1 -1
  266. package/dist/tools/execute-result.d.ts +20 -0
  267. package/dist/tools/execute-result.d.ts.map +1 -1
  268. package/dist/tools/execute.d.ts +3 -0
  269. package/dist/tools/execute.d.ts.map +1 -1
  270. package/dist/tools/internal/json-projection.d.ts +13 -9
  271. package/dist/tools/internal/json-projection.d.ts.map +1 -1
  272. package/dist/tools/internal/remote-error.d.ts +15 -0
  273. package/dist/tools/internal/remote-error.d.ts.map +1 -0
  274. package/dist/tools/internal/surface-projector.d.ts +2 -0
  275. package/dist/tools/internal/surface-projector.d.ts.map +1 -1
  276. package/dist/tools/invoker.d.ts +3 -0
  277. package/dist/tools/invoker.d.ts.map +1 -1
  278. package/dist/tools/mcp/handler.d.ts.map +1 -1
  279. package/dist/tools/mcp/lazy-discovery.d.ts +2 -0
  280. package/dist/tools/mcp/lazy-discovery.d.ts.map +1 -1
  281. package/dist/tools/mcp/mount.d.ts +5 -0
  282. package/dist/tools/mcp/mount.d.ts.map +1 -1
  283. package/dist/tools/mcp/register.d.ts +2 -0
  284. package/dist/tools/mcp/register.d.ts.map +1 -1
  285. package/dist/tools/mcp/runtime-tools.d.ts +2 -0
  286. package/dist/tools/mcp/runtime-tools.d.ts.map +1 -1
  287. package/dist/tools/mcp/stdio.d.ts.map +1 -1
  288. package/dist/tools/mount.d.ts +3 -0
  289. package/dist/tools/mount.d.ts.map +1 -1
  290. package/dist/tools/read-operation.d.ts +2 -6
  291. package/dist/tools/read-operation.d.ts.map +1 -1
  292. package/dist/tools/remote.d.ts.map +1 -1
  293. package/dist/tools/runtime-tool.d.ts.map +1 -1
  294. package/dist/tools/toolkit.d.ts +10 -3
  295. package/dist/tools/toolkit.d.ts.map +1 -1
  296. package/dist/xlsx/schema.d.ts.map +1 -1
  297. package/llms/cli.2.txt +10 -8
  298. package/llms/cli.3.txt +2 -0
  299. package/llms/cli.txt +18 -3
  300. package/llms/contract.txt +47 -5
  301. package/llms/handler.txt +1 -1
  302. package/llms/live.txt +82 -0
  303. package/llms/node.txt +5 -0
  304. package/llms/observability.2.txt +1 -1
  305. package/llms/observability.txt +6 -0
  306. package/llms/postgres.txt +1 -0
  307. package/llms/server.2.txt +206 -240
  308. package/llms/server.3.txt +242 -202
  309. package/llms/server.4.txt +202 -1025
  310. package/llms/server.5.txt +1053 -255
  311. package/llms/server.6.txt +274 -0
  312. package/llms/server.txt +32 -116
  313. package/llms/spend.txt +8 -7
  314. package/llms/stitchkit.2.txt +13 -35
  315. package/llms/stitchkit.3.txt +27 -0
  316. package/llms/stitchkit.txt +81 -81
  317. package/llms/testing.txt +40 -0
  318. package/llms/tools-toolkit.txt +2 -2
  319. package/llms/tools.2.txt +29 -20
  320. package/llms/{upgrading-0.128.0-0.129.0.txt → upgrading-0.128.0-0.131.0.txt} +101 -3
  321. package/llms/{upgrading-0.130.0-0.136.0.txt → upgrading-0.132.0-0.137.0.txt} +62 -101
  322. package/llms/upgrading.txt +2 -2
  323. package/llms-full.txt +590 -171
  324. package/llms.txt +13 -13
  325. package/package.json +1 -1
  326. package/dist/index-9118dw8d.js +0 -603
  327. package/dist/index-9vj869rx.js +0 -19
  328. package/dist/index-a1rjr381.js +0 -114
  329. package/dist/index-dacxr7nf.js +0 -17
  330. package/dist/index-dm50x3by.js +0 -63
  331. package/dist/index-dmrx8xma.js +0 -163
  332. package/dist/index-ednf2cxs.js +0 -37
  333. package/dist/{index-e4zt2x70.js → index-3czppvrr.js} +3 -3
  334. package/dist/{index-42n9jycn.js → index-3f79t32b.js} +3 -3
  335. package/dist/{index-mfe9a266.js → index-84n49vam.js} +0 -0
  336. package/dist/{index-f16b7rze.js → index-er1tp8de.js} +3 -3
  337. package/dist/{index-k137ezb6.js → index-f5d0fdcf.js} +3 -3
  338. package/dist/{index-65p8v81y.js → index-psz8qrz0.js} +3 -3
  339. package/dist/{index-kadgaw1s.js → index-r8cq86h1.js} +0 -0
  340. package/dist/{index-1yky29qg.js → index-tyyvbarf.js} +0 -0
  341. package/dist/{index-tjakdpf2.js → index-wq71v08n.js} +3 -3
  342. package/dist/{index-7an2fs5h.js → index-wswcpbm4.js} +3 -3
@@ -5,20 +5,19 @@ import {
5
5
  import"../../index-ha1tv70k.js";
6
6
  import"../../index-d1pdv8qc.js";
7
7
  import"../../index-dsa676h8.js";
8
- import"../../index-dm50x3by.js";
9
- import"../../index-qj0sq69b.js";
10
- import"../../index-9118dw8d.js";
8
+ import"../../index-hgf1tbgz.js";
9
+ import"../../index-scpcps66.js";
11
10
  import"../../index-yt1gg11x.js";
12
- import"../../index-edpkm3k7.js";
11
+ import"../../index-kw0segzt.js";
13
12
  import"../../index-werjqesf.js";
14
13
  import {
15
14
  currentCompatToolCallContext
16
15
  } from "../../index-125ks2ec.js";
17
16
  import {
18
17
  buildAgentTools
19
- } from "../../index-vwg0n3e6.js";
20
- import"../../index-2zrx0nzv.js";
21
- import"../../index-7csn6pva.js";
18
+ } from "../../index-pyazb8q4.js";
19
+ import"../../index-rzc40z6e.js";
20
+ import"../../index-ze94h4ph.js";
22
21
  import {
23
22
  isRecord
24
23
  } from "../../index-ps3djm8d.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  readDiscoveredToolAnnotations
3
- } from "../../index-0x4mnwg5.js";
3
+ } from "../../index-8k3y9nd4.js";
4
4
  import"../../index-werjqesf.js";
5
5
  import {
6
6
  withServedFormats
@@ -16,15 +16,13 @@ import {
16
16
  } from "../../index-5t4fpdct.js";
17
17
  import {
18
18
  defineRuntimeTool2
19
- } from "../../index-7csn6pva.js";
20
- import {
21
- TOOL_ERROR_PROJECTION
22
- } from "../../index-dacxr7nf.js";
19
+ } from "../../index-ze94h4ph.js";
23
20
  import {
21
+ TOOL_ERROR_PROJECTION,
24
22
  declaresDraft07,
25
23
  withDraft2020Keywords,
26
24
  mergePropertySchemas
27
- } from "../../index-df5xr2f9.js";
25
+ } from "../../index-frsd2a94.js";
28
26
  import {
29
27
  assertNoLegacyTransports
30
28
  } from "../../index-akfgymyr.js";
@@ -40,7 +38,7 @@ import {
40
38
  AppError2,
41
39
  STITCH_ERROR_STATUS2,
42
40
  isRetryableStatus2
43
- } from "../../index-7fjbdga8.js";
41
+ } from "../../index-3pb4ccj2.js";
44
42
  import {
45
43
  setOwnMember
46
44
  } from "../../index-3tb82xr7.js";
@@ -50,10 +48,7 @@ import {
50
48
  import {
51
49
  readBoundedChunks,
52
50
  concatChunks
53
- } from "../../index-f16b7rze.js";
54
- import {
55
- assertPositiveSafeInteger
56
- } from "../../index-gr0kxymw.js";
51
+ } from "../../index-er1tp8de.js";
57
52
  import {
58
53
  assertTimerMs,
59
54
  withDeadline,
@@ -64,6 +59,9 @@ import {
64
59
  abortReason,
65
60
  raceAbort
66
61
  } from "../../index-rptj3qnc.js";
62
+ import {
63
+ assertPositiveSafeInteger
64
+ } from "../../index-gr0kxymw.js";
67
65
  import {
68
66
  isRecord
69
67
  } from "../../index-ps3djm8d.js";
@@ -12,8 +12,7 @@ import {
12
12
  } from "../../index-gy9x38a2.js";
13
13
  import {
14
14
  coerceJsonArgs2
15
- } from "../../index-qj0sq69b.js";
16
- import"../../index-dm50x3by.js";
15
+ } from "../../index-hgf1tbgz.js";
17
16
  import"../../index-d1pdv8qc.js";
18
17
  import"../../index-dsa676h8.js";
19
18
  import"../../index-ha1tv70k.js";
@@ -1,14 +1,13 @@
1
1
  import"../../index-dsa676h8.js";
2
2
  import"../../index-ha1tv70k.js";
3
3
  import"../../index-d1pdv8qc.js";
4
- import"../../index-dm50x3by.js";
5
- import"../../index-qj0sq69b.js";
6
- import"../../index-9118dw8d.js";
4
+ import"../../index-hgf1tbgz.js";
5
+ import"../../index-scpcps66.js";
7
6
  import"../../index-yt1gg11x.js";
8
- import"../../index-edpkm3k7.js";
7
+ import"../../index-kw0segzt.js";
9
8
  import {
10
9
  createToolInvoker2
11
- } from "../../index-3shdhzt6.js";
10
+ } from "../../index-2j0pqxkn.js";
12
11
  export {
13
12
  createToolInvoker2 as createToolInvoker
14
13
  };
@@ -1,13 +1,12 @@
1
- import"../../index-7mjsb7zv.js";
1
+ import"../../index-ybrrxjhb.js";
2
2
  import"../../index-dsa676h8.js";
3
3
  import"../../index-ha1tv70k.js";
4
4
  import"../../index-d1pdv8qc.js";
5
- import"../../index-dm50x3by.js";
6
- import"../../index-qj0sq69b.js";
7
- import"../../index-9118dw8d.js";
5
+ import"../../index-hgf1tbgz.js";
6
+ import"../../index-scpcps66.js";
8
7
  import"../../index-yt1gg11x.js";
9
- import"../../index-edpkm3k7.js";
10
- import"../../index-0x4mnwg5.js";
8
+ import"../../index-kw0segzt.js";
9
+ import"../../index-8k3y9nd4.js";
11
10
  import"../../index-werjqesf.js";
12
11
  import {
13
12
  RESOURCE_MIME_TYPE2,
@@ -20,22 +19,22 @@ import {
20
19
  createMcpHandler2,
21
20
  createMcpHttpRoute2,
22
21
  createStdioMcpServer2
23
- } from "../../index-ezwsqyad.js";
22
+ } from "../../index-8rkdkefj.js";
24
23
  import {
25
24
  DEFAULT_PROCESS_SIGNALS,
26
25
  defaultSignalSource,
27
26
  reportSignalError,
28
27
  guardSignalCallback
29
28
  } from "../../index-3prvb42w.js";
30
- import"../../index-efbzm2se.js";
31
- import"../../index-a09r9ff0.js";
29
+ import"../../index-x2r0ma9t.js";
30
+ import"../../index-y44j39yk.js";
32
31
  import {
33
32
  MCP_CATALOG_META_KEY2,
34
33
  mcpCatalogMeta2,
35
34
  readMcpCatalogStamp2
36
35
  } from "../../index-5t4fpdct.js";
37
- import"../../index-2zrx0nzv.js";
38
- import"../../index-7csn6pva.js";
36
+ import"../../index-rzc40z6e.js";
37
+ import"../../index-ze94h4ph.js";
39
38
  // src/tools/mcp/stdio-signals.ts
40
39
  var bound = new WeakSet;
41
40
  function bindStdioProcessSignals(handle, options = {}) {
@@ -7,5 +7,5 @@
7
7
  * declarations. Callers that need a Vercel AI SDK `ToolSet` use `mountAgent`
8
8
  * from `stitchkit/tools/agent`. → ADR 0284, ADR 0338.
9
9
  */
10
- export { createToolkit, type Toolkit } from '../../tools/toolkit.js';
10
+ export { createToolkit, type Toolkit, type ToolkitConfig } from '../../tools/toolkit.js';
11
11
  //# sourceMappingURL=toolkit.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"toolkit.d.ts","sourceRoot":"","sources":["../../../src/entrypoints/tools/toolkit.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,aAAa,EAAE,KAAK,OAAO,EAAE,MAAM,qBAAqB,CAAC"}
1
+ {"version":3,"file":"toolkit.d.ts","sourceRoot":"","sources":["../../../src/entrypoints/tools/toolkit.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,aAAa,EAAE,KAAK,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC"}
@@ -1,60 +1,65 @@
1
1
  import"../../index-ha1tv70k.js";
2
2
  import"../../index-d1pdv8qc.js";
3
3
  import"../../index-dsa676h8.js";
4
- import"../../index-dm50x3by.js";
5
- import"../../index-qj0sq69b.js";
6
- import"../../index-9118dw8d.js";
4
+ import"../../index-hgf1tbgz.js";
5
+ import"../../index-scpcps66.js";
7
6
  import"../../index-yt1gg11x.js";
8
- import"../../index-edpkm3k7.js";
7
+ import"../../index-kw0segzt.js";
9
8
  import"../../index-werjqesf.js";
10
- import {
11
- createCli2
12
- } from "../../index-18qdpbcq.js";
13
- import"../../index-0x4mnwg5.js";
9
+ import"../../index-egpf9dv0.js";
10
+ import"../../index-8k3y9nd4.js";
14
11
  import"../../index-6kec3b14.js";
15
12
  import"../../index-gy9x38a2.js";
16
- import"../../index-yrhw10ef.js";
17
- import"../../index-7mjsb7zv.js";
13
+ import {
14
+ createCli2
15
+ } from "../../index-xvydbxmk.js";
16
+ import"../../index-h34c510q.js";
17
+ import"../../index-ybrrxjhb.js";
18
18
  import {
19
19
  mountMcp2,
20
20
  buildMcpServer2,
21
21
  createMcpHandler2,
22
22
  createStdioMcpServer2
23
- } from "../../index-ezwsqyad.js";
24
- import"../../index-efbzm2se.js";
25
- import"../../index-a09r9ff0.js";
23
+ } from "../../index-8rkdkefj.js";
24
+ import"../../index-x2r0ma9t.js";
25
+ import"../../index-y44j39yk.js";
26
26
  import {
27
27
  mountAgentTools2
28
- } from "../../index-vwg0n3e6.js";
28
+ } from "../../index-pyazb8q4.js";
29
29
  import"../../index-rjs94dny.js";
30
30
  import"../../index-xrgn784x.js";
31
- import"../../index-2zrx0nzv.js";
32
- import"../../index-7csn6pva.js";
31
+ import"../../index-rzc40z6e.js";
32
+ import {
33
+ assertErrorCodeMapping
34
+ } from "../../index-fy9mmek1.js";
35
+ import"../../index-ze94h4ph.js";
33
36
 
34
37
  // src/tools/toolkit.ts
35
38
  function isMountConfig(value) {
36
39
  return !Array.isArray(value) && "access" in value;
37
40
  }
38
- function createToolkit() {
41
+ function createToolkit(defaults) {
42
+ assertErrorCodeMapping("createToolkit", defaults?.errors);
43
+ const defaultErrors = defaults?.errors;
39
44
  function forwardMountAgentTools(servicesOrConfig, config) {
40
45
  if (config === undefined) {
41
46
  if (!isMountConfig(servicesOrConfig)) {
42
47
  throw new TypeError("mountAgentTools requires an AgentMountConfig");
43
48
  }
44
- return mountAgentTools2(servicesOrConfig);
49
+ return mountAgentTools2(defaultErrors !== undefined && servicesOrConfig.errors === undefined ? { ...servicesOrConfig, errors: defaultErrors } : servicesOrConfig);
45
50
  }
46
51
  if (isMountConfig(servicesOrConfig)) {
47
52
  throw new TypeError("mountAgentTools received config as the first argument alongside a second argument");
48
53
  }
49
- return mountAgentTools2(servicesOrConfig, config);
54
+ return mountAgentTools2(servicesOrConfig, defaultErrors !== undefined && config.errors === undefined ? { ...config, errors: defaultErrors } : config);
50
55
  }
51
56
  return {
52
- mountMcp: (server, services, config) => mountMcp2(server, services, config),
57
+ mountMcp: (server, services, config) => mountMcp2(server, services, defaultErrors !== undefined && config.errors === undefined ? { ...config, errors: defaultErrors } : config),
53
58
  mountAgentTools: forwardMountAgentTools,
54
- buildMcpServer: (config, auth) => buildMcpServer2(config, auth),
55
- createMcpHandler: (config) => createMcpHandler2(config),
56
- createStdioMcpServer: (config) => createStdioMcpServer2(config),
57
- createCli: (config) => createCli2(config)
59
+ buildMcpServer: (config, auth) => buildMcpServer2(defaultErrors !== undefined && config.errors === undefined ? { ...config, errors: defaultErrors } : config, auth),
60
+ createMcpHandler: (config) => createMcpHandler2(defaultErrors !== undefined && config.errors === undefined ? { ...config, errors: defaultErrors } : config),
61
+ createStdioMcpServer: (config) => createStdioMcpServer2(defaultErrors !== undefined && config.errors === undefined ? { ...config, errors: defaultErrors } : config),
62
+ createCli: (config) => createCli2(defaultErrors !== undefined && config.errors === undefined ? { ...config, errors: defaultErrors } : config)
58
63
  };
59
64
  }
60
65
  export {
@@ -6,33 +6,28 @@ import {
6
6
  } from "../index-xrsryvd2.js";
7
7
  import {
8
8
  DEFAULT_CORS_ALLOW_HEADERS2
9
- } from "../index-7mjsb7zv.js";
9
+ } from "../index-ybrrxjhb.js";
10
10
  import"../index-ha1tv70k.js";
11
11
  import"../index-d1pdv8qc.js";
12
12
  import"../index-dsa676h8.js";
13
- import"../index-dm50x3by.js";
14
13
  import {
15
14
  coerceJsonArgs2
16
- } from "../index-qj0sq69b.js";
15
+ } from "../index-hgf1tbgz.js";
17
16
  import {
18
17
  ToolExecutionControlError2,
19
18
  isToolExecutionControlError2,
19
+ assertToolName,
20
+ assertUniqueToolName,
21
+ flattenToolJsonSchema2,
20
22
  collectTools2
21
- } from "../index-9118dw8d.js";
23
+ } from "../index-scpcps66.js";
22
24
  import {
23
25
  ALL_TRANSPORTS2,
24
26
  TOOL_TRANSPORTS2
25
27
  } from "../index-yt1gg11x.js";
26
- import {
27
- assertToolName,
28
- assertUniqueToolName,
29
- flattenToolJsonSchema2
30
- } from "../index-edpkm3k7.js";
28
+ import"../index-kw0segzt.js";
31
29
  import"../index-werjqesf.js";
32
30
  import"../index-m38ej7e5.js";
33
- import {
34
- defineContract2
35
- } from "../index-dmrx8xma.js";
36
31
  import {
37
32
  AsyncOperationCancelResultSchema2,
38
33
  createAsyncOperationSnapshotSchema2
@@ -51,28 +46,28 @@ import {
51
46
  } from "../index-gy9x38a2.js";
52
47
  import {
53
48
  ManagedFileError2
54
- } from "../index-e4zt2x70.js";
49
+ } from "../index-3czppvrr.js";
55
50
  import {
56
51
  signJwt2,
57
52
  verifyPkce2
58
- } from "../index-4p2zx593.js";
53
+ } from "../index-gyw4qd0m.js";
59
54
  import {
60
55
  describeToolCatalog2,
61
56
  buildToolManifest2
62
- } from "../index-08a3qfr8.js";
57
+ } from "../index-r1qt6zgj.js";
63
58
  import {
64
59
  listToolNames2,
65
60
  listContractToolNames2
66
- } from "../index-fatke81t.js";
67
- import"../index-gq35s3bm.js";
68
- import"../index-4gbybjg6.js";
61
+ } from "../index-ezgvsj9w.js";
62
+ import"../index-s5axtd56.js";
63
+ import"../index-hxawqrb6.js";
69
64
  import {
70
65
  PROTECTED_RESOURCE_PATH2,
71
66
  protectedResourceMetadataUrl2,
72
67
  wwwAuthenticateHeader2,
73
68
  oauthProtectedResourceRoute2,
74
69
  createMcpProgressReporter
75
- } from "../index-a09r9ff0.js";
70
+ } from "../index-y44j39yk.js";
76
71
  import {
77
72
  PORTABLE_JSON_SCHEMA_FORMATS2,
78
73
  findNonPortableFormats2,
@@ -81,14 +76,14 @@ import {
81
76
  import {
82
77
  defineAgentTool2,
83
78
  mountAgentTools2
84
- } from "../index-vwg0n3e6.js";
79
+ } from "../index-pyazb8q4.js";
85
80
  import {
86
81
  AgentToolError2,
87
82
  isAgentToolError2
88
83
  } from "../index-1psbyyhj.js";
89
84
  import {
90
85
  createToolInvoker2
91
- } from "../index-3shdhzt6.js";
86
+ } from "../index-2j0pqxkn.js";
92
87
  import {
93
88
  WaitTimeoutError,
94
89
  runWaitOperation,
@@ -98,39 +93,39 @@ import {
98
93
  fetchGuarded,
99
94
  fetchPinnedDocument,
100
95
  readCapped
101
- } from "../index-dz6tstcp.js";
96
+ } from "../index-9r6emjwz.js";
102
97
  import {
103
98
  collectToolSurface
104
- } from "../index-2zrx0nzv.js";
99
+ } from "../index-rzc40z6e.js";
105
100
  import {
106
101
  getTraceId2
107
102
  } from "../index-q4tr9vnf.js";
108
103
  import {
109
104
  normalizeError2
110
- } from "../index-dwq6a6sq.js";
105
+ } from "../index-pt25vmhc.js";
111
106
  import {
112
107
  defineRuntimeTool2,
113
108
  createRuntimeToolFactory2
114
- } from "../index-7csn6pva.js";
109
+ } from "../index-ze94h4ph.js";
115
110
  import {
116
111
  assertNoLegacyTransports
117
112
  } from "../index-akfgymyr.js";
118
113
  import {
119
114
  mediaTypeEssence
120
115
  } from "../index-zs8cze4j.js";
116
+ import {
117
+ defineContract2
118
+ } from "../index-8ef1bfea.js";
121
119
  import {
122
120
  formatZodError2
123
121
  } from "../index-1eeqpadm.js";
124
122
  import {
125
123
  AppError2,
126
124
  STITCH_ERROR_STATUS2
127
- } from "../index-7fjbdga8.js";
125
+ } from "../index-3pb4ccj2.js";
128
126
  import {
129
127
  readBoundedText
130
- } from "../index-f16b7rze.js";
131
- import {
132
- assertPositiveSafeInteger
133
- } from "../index-gr0kxymw.js";
128
+ } from "../index-er1tp8de.js";
134
129
  import {
135
130
  assertTimerMs,
136
131
  assertTimerSeconds
@@ -138,6 +133,9 @@ import {
138
133
  import {
139
134
  abortReason
140
135
  } from "../index-rptj3qnc.js";
136
+ import {
137
+ assertPositiveSafeInteger
138
+ } from "../index-gr0kxymw.js";
141
139
  import {
142
140
  isRecord
143
141
  } from "../index-ps3djm8d.js";
@@ -1,9 +1,10 @@
1
1
  import"../../index-m38ej7e5.js";
2
2
  import"../../index-yt1gg11x.js";
3
+ import"../../index-kw0segzt.js";
3
4
  import"../../index-werjqesf.js";
4
5
  import {
5
6
  defineContract2
6
- } from "../../index-dmrx8xma.js";
7
+ } from "../../index-8ef1bfea.js";
7
8
 
8
9
  // src/tracking/schemas.ts
9
10
  import { z } from "zod";
@@ -2,6 +2,10 @@ import {
2
2
  DecimalInputSchema2,
3
3
  moneyToDecimal2
4
4
  } from "../index-80acsm27.js";
5
+ import {
6
+ IanaTimeZoneSchema2,
7
+ canonicalizeIanaTimeZone2
8
+ } from "../index-gpe8d1ka.js";
5
9
 
6
10
  // src/xlsx/cells.ts
7
11
  import { z } from "zod";
@@ -138,14 +142,7 @@ var ColumnBase = {
138
142
  header: z2.string().min(1),
139
143
  width: z2.number().positive().max(255).optional()
140
144
  };
141
- var TimeZoneSchema = z2.string().refine((zone) => {
142
- try {
143
- new Intl.DateTimeFormat("en", { timeZone: zone });
144
- return true;
145
- } catch {
146
- return false;
147
- }
148
- }, "expected an IANA time zone");
145
+ var TimeZoneSchema = IanaTimeZoneSchema2.refine((zone) => canonicalizeIanaTimeZone2(zone) !== null, "expected an IANA time zone");
149
146
  var XlsxColumnSchema = z2.discriminatedUnion("type", [
150
147
  z2.object({ ...ColumnBase, type: z2.literal("text") }),
151
148
  z2.object({
@@ -2,7 +2,7 @@ import {
2
2
  parseRealtimeRequestArguments,
3
3
  parseRealtimeRequestAcknowledgement,
4
4
  createValidatedRealtimeSocket
5
- } from "./index-0k1ba0ss.js";
5
+ } from "./index-j91jffhv.js";
6
6
  import {
7
7
  randomHex
8
8
  } from "./index-c9d05kvt.js";
@@ -218,6 +218,9 @@ function bindRealtimeClient2(contract, transport, { onRejected, logger } = {}) {
218
218
  get connected() {
219
219
  return transport.connected;
220
220
  },
221
+ get id() {
222
+ return transport.connected ? transport.id : undefined;
223
+ },
221
224
  request,
222
225
  onConnectionChange: (listener) => transport.onConnectionChange(listener)
223
226
  };
@@ -26,7 +26,7 @@ import {
26
26
  isRuntimeSnapshotEntry,
27
27
  appendEventIn,
28
28
  ArchiveSpillSchema
29
- } from "./index-8tn10tp6.js";
29
+ } from "./index-v64bvwjr.js";
30
30
  import {
31
31
  InvocationExpiredPayloadSchema,
32
32
  parsePayloadPurgeCutoff,
@@ -9,13 +9,10 @@ import {
9
9
  fetchGuarded,
10
10
  PrivateAddressRefusal,
11
11
  readCapped
12
- } from "./index-dz6tstcp.js";
12
+ } from "./index-9r6emjwz.js";
13
13
  import {
14
14
  serializeCanonicalJson
15
15
  } from "./index-fmzg39a8.js";
16
- import {
17
- assertPositiveSafeInteger
18
- } from "./index-gr0kxymw.js";
19
16
  import {
20
17
  assertTimerMs,
21
18
  withSignalDeadline
@@ -23,6 +20,9 @@ import {
23
20
  import {
24
21
  raceAbort
25
22
  } from "./index-rptj3qnc.js";
23
+ import {
24
+ assertPositiveSafeInteger
25
+ } from "./index-gr0kxymw.js";
26
26
 
27
27
  // src/tools/cli/installer.ts
28
28
  function shellQuote(value) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createBoundedSinkManager
3
- } from "./index-7an2fs5h.js";
3
+ } from "./index-wswcpbm4.js";
4
4
  import {
5
5
  AgentRuntimeEventSchema2
6
6
  } from "./index-4q9tmzea.js";