stitchkit 0.135.0 → 0.136.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 (380) hide show
  1. package/CHANGELOG.md +117 -0
  2. package/README.md +25 -11
  3. package/dist/agent-executor/acp/v1-session-build.d.ts +51 -0
  4. package/dist/agent-executor/acp/v1-session-build.d.ts.map +1 -0
  5. package/dist/agent-executor/acp/v1-session.d.ts +1 -1
  6. package/dist/agent-executor/acp/v1-session.d.ts.map +1 -1
  7. package/dist/agent-executor/claude/classify.d.ts +1 -1
  8. package/dist/agent-executor/claude/classify.d.ts.map +1 -1
  9. package/dist/agent-executor/claude/events-wire.d.ts +13 -0
  10. package/dist/agent-executor/claude/events-wire.d.ts.map +1 -0
  11. package/dist/agent-executor/claude/events.d.ts +1 -11
  12. package/dist/agent-executor/claude/events.d.ts.map +1 -1
  13. package/dist/agent-executor/codex/protocol.d.ts +0 -143
  14. package/dist/agent-executor/codex/protocol.d.ts.map +1 -1
  15. package/dist/agent-executor/codex/request-answers.d.ts +1 -1
  16. package/dist/agent-executor/codex/request-answers.d.ts.map +1 -1
  17. package/dist/agent-executor/codex/server-requests.d.ts +150 -0
  18. package/dist/agent-executor/codex/server-requests.d.ts.map +1 -0
  19. package/dist/agent-executor/image-input.d.ts +10 -3
  20. package/dist/agent-executor/image-input.d.ts.map +1 -1
  21. package/dist/agent-executor/testing/replay-scenarios.d.ts.map +1 -1
  22. package/dist/agent-executor/testing/replay-transcript.d.ts.map +1 -1
  23. package/dist/agent-runtime/browser/browser-control-contract.d.ts +4 -0
  24. package/dist/agent-runtime/browser/browser-control-contract.d.ts.map +1 -1
  25. package/dist/agent-runtime/browser/control-schema.d.ts +4 -0
  26. package/dist/agent-runtime/browser/control-schema.d.ts.map +1 -1
  27. package/dist/agent-runtime/browser/control-view.d.ts.map +1 -1
  28. package/dist/agent-runtime/event-schema.d.ts +16 -3
  29. package/dist/agent-runtime/event-schema.d.ts.map +1 -1
  30. package/dist/agent-runtime/loop/deferred-tools.d.ts.map +1 -1
  31. package/dist/agent-runtime/loop/invocation-payload.d.ts.map +1 -1
  32. package/dist/agent-runtime/loop/invocation-stream.d.ts +9 -1
  33. package/dist/agent-runtime/loop/invocation-stream.d.ts.map +1 -1
  34. package/dist/agent-runtime/loop/provider-stream-parts.d.ts +6 -0
  35. package/dist/agent-runtime/loop/provider-stream-parts.d.ts.map +1 -1
  36. package/dist/agent-runtime/loop/provider-stream-segments.d.ts +1 -1
  37. package/dist/agent-runtime/loop/provider-stream-segments.d.ts.map +1 -1
  38. package/dist/agent-runtime/loop/run-acquisition.d.ts.map +1 -1
  39. package/dist/agent-runtime/loop/run-approval-signature.d.ts +34 -0
  40. package/dist/agent-runtime/loop/run-approval-signature.d.ts.map +1 -0
  41. package/dist/agent-runtime/loop/run-approval.d.ts +0 -28
  42. package/dist/agent-runtime/loop/run-approval.d.ts.map +1 -1
  43. package/dist/agent-runtime/loop/run-complete-port.d.ts +24 -0
  44. package/dist/agent-runtime/loop/run-complete-port.d.ts.map +1 -0
  45. package/dist/agent-runtime/loop/run-complete-stream.d.ts +7 -2
  46. package/dist/agent-runtime/loop/run-complete-stream.d.ts.map +1 -1
  47. package/dist/agent-runtime/loop/run-complete-types.d.ts +14 -1
  48. package/dist/agent-runtime/loop/run-complete-types.d.ts.map +1 -1
  49. package/dist/agent-runtime/loop/run-complete.d.ts +2 -2
  50. package/dist/agent-runtime/loop/run-complete.d.ts.map +1 -1
  51. package/dist/agent-runtime/loop/run-execution-state.d.ts +8 -0
  52. package/dist/agent-runtime/loop/run-execution-state.d.ts.map +1 -1
  53. package/dist/agent-runtime/loop/run-model-call.d.ts +44 -0
  54. package/dist/agent-runtime/loop/run-model-call.d.ts.map +1 -0
  55. package/dist/agent-runtime/loop/run-model-step.d.ts +25 -28
  56. package/dist/agent-runtime/loop/run-model-step.d.ts.map +1 -1
  57. package/dist/agent-runtime/loop/run-model-steps.d.ts +6 -0
  58. package/dist/agent-runtime/loop/run-model-steps.d.ts.map +1 -0
  59. package/dist/agent-runtime/loop/run-model-stream.d.ts +3 -1
  60. package/dist/agent-runtime/loop/run-model-stream.d.ts.map +1 -1
  61. package/dist/agent-runtime/loop/run-operation-lifecycle.d.ts +0 -2
  62. package/dist/agent-runtime/loop/run-operation-lifecycle.d.ts.map +1 -1
  63. package/dist/agent-runtime/loop/run-step-loop.d.ts +19 -0
  64. package/dist/agent-runtime/loop/run-step-loop.d.ts.map +1 -0
  65. package/dist/agent-runtime/loop/run-step-port.d.ts +175 -0
  66. package/dist/agent-runtime/loop/run-step-port.d.ts.map +1 -0
  67. package/dist/agent-runtime/loop/run-stream-parts.d.ts.map +1 -1
  68. package/dist/agent-runtime/loop/run-stream-step-text.d.ts.map +1 -1
  69. package/dist/agent-runtime/loop/run-tool-approval-flow.d.ts +2 -1
  70. package/dist/agent-runtime/loop/run-tool-approval-flow.d.ts.map +1 -1
  71. package/dist/agent-runtime/loop/run-tool-call-input.d.ts +39 -0
  72. package/dist/agent-runtime/loop/run-tool-call-input.d.ts.map +1 -0
  73. package/dist/agent-runtime/loop/run-tool-call.d.ts +2 -31
  74. package/dist/agent-runtime/loop/run-tool-call.d.ts.map +1 -1
  75. package/dist/agent-runtime/loop/run-tool-errors.d.ts +5 -0
  76. package/dist/agent-runtime/loop/run-tool-errors.d.ts.map +1 -1
  77. package/dist/agent-runtime/loop/run-tool-executor.d.ts +1 -1
  78. package/dist/agent-runtime/loop/run-tool-executor.d.ts.map +1 -1
  79. package/dist/agent-runtime/loop/run-tool-slots.d.ts +2 -1
  80. package/dist/agent-runtime/loop/run-tool-slots.d.ts.map +1 -1
  81. package/dist/agent-runtime/loop/runtime-state.d.ts.map +1 -1
  82. package/dist/agent-runtime/loop/runtime.d.ts +0 -5
  83. package/dist/agent-runtime/loop/runtime.d.ts.map +1 -1
  84. package/dist/agent-runtime/providers/ai-sdk-convert.d.ts +1 -5
  85. package/dist/agent-runtime/providers/ai-sdk-convert.d.ts.map +1 -1
  86. package/dist/agent-runtime/providers/ai-sdk-normalize.d.ts +11 -0
  87. package/dist/agent-runtime/providers/ai-sdk-normalize.d.ts.map +1 -0
  88. package/dist/agent-runtime/providers/ai-sdk-tools.d.ts +11 -0
  89. package/dist/agent-runtime/providers/ai-sdk-tools.d.ts.map +1 -0
  90. package/dist/agent-runtime/providers/ai-sdk.d.ts +1 -9
  91. package/dist/agent-runtime/providers/ai-sdk.d.ts.map +1 -1
  92. package/dist/agent-runtime/providers/anthropic-sse.d.ts.map +1 -1
  93. package/dist/agent-runtime/providers/openrouter-admission.d.ts.map +1 -1
  94. package/dist/agent-runtime/providers/openrouter-audio.d.ts +164 -0
  95. package/dist/agent-runtime/providers/openrouter-audio.d.ts.map +1 -0
  96. package/dist/agent-runtime/providers/openrouter-catalog-cache.d.ts.map +1 -1
  97. package/dist/agent-runtime/providers/openrouter-catalog-query.d.ts.map +1 -1
  98. package/dist/agent-runtime/providers/openrouter-catalog.d.ts +4 -2
  99. package/dist/agent-runtime/providers/openrouter-catalog.d.ts.map +1 -1
  100. package/dist/agent-runtime/providers/openrouter-client.d.ts +37 -0
  101. package/dist/agent-runtime/providers/openrouter-client.d.ts.map +1 -0
  102. package/dist/agent-runtime/providers/openrouter-http.d.ts +120 -0
  103. package/dist/agent-runtime/providers/openrouter-http.d.ts.map +1 -0
  104. package/dist/agent-runtime/providers/openrouter-media.d.ts +174 -0
  105. package/dist/agent-runtime/providers/openrouter-media.d.ts.map +1 -0
  106. package/dist/agent-runtime/providers/openrouter-models.d.ts +2 -23
  107. package/dist/agent-runtime/providers/openrouter-models.d.ts.map +1 -1
  108. package/dist/agent-runtime/providers/openrouter-options.d.ts +4 -0
  109. package/dist/agent-runtime/providers/openrouter-options.d.ts.map +1 -1
  110. package/dist/agent-runtime/providers/openrouter-request.d.ts +23 -0
  111. package/dist/agent-runtime/providers/openrouter-request.d.ts.map +1 -0
  112. package/dist/agent-runtime/providers/openrouter-response.d.ts.map +1 -1
  113. package/dist/agent-runtime/providers/openrouter-retrieval.d.ts +145 -0
  114. package/dist/agent-runtime/providers/openrouter-retrieval.d.ts.map +1 -0
  115. package/dist/agent-runtime/providers/openrouter-speech.d.ts +90 -0
  116. package/dist/agent-runtime/providers/openrouter-speech.d.ts.map +1 -0
  117. package/dist/agent-runtime/providers/openrouter-spend.d.ts +7 -3
  118. package/dist/agent-runtime/providers/openrouter-spend.d.ts.map +1 -1
  119. package/dist/agent-runtime/providers/openrouter-stream.d.ts +29 -0
  120. package/dist/agent-runtime/providers/openrouter-stream.d.ts.map +1 -0
  121. package/dist/agent-runtime/providers/openrouter-systemone.d.ts +137 -0
  122. package/dist/agent-runtime/providers/openrouter-systemone.d.ts.map +1 -0
  123. package/dist/agent-runtime/providers/openrouter-url.d.ts +19 -0
  124. package/dist/agent-runtime/providers/openrouter-url.d.ts.map +1 -0
  125. package/dist/agent-runtime/providers/openrouter-wire.d.ts +45 -0
  126. package/dist/agent-runtime/providers/openrouter-wire.d.ts.map +1 -0
  127. package/dist/agent-runtime/providers/openrouter.d.ts +5 -4
  128. package/dist/agent-runtime/providers/openrouter.d.ts.map +1 -1
  129. package/dist/agent-runtime/providers/provider-http.d.ts +29 -3
  130. package/dist/agent-runtime/providers/provider-http.d.ts.map +1 -1
  131. package/dist/agent-runtime/providers/provider-json-schema-strip.d.ts.map +1 -1
  132. package/dist/agent-runtime/providers/provider-json-schema.d.ts.map +1 -1
  133. package/dist/agent-runtime/providers/provider-openai-chat-sse.d.ts.map +1 -1
  134. package/dist/agent-runtime/providers/provider-openai-chat-state.d.ts +42 -0
  135. package/dist/agent-runtime/providers/provider-openai-chat-state.d.ts.map +1 -0
  136. package/dist/agent-runtime/providers/provider-usage.d.ts +9 -0
  137. package/dist/agent-runtime/providers/provider-usage.d.ts.map +1 -1
  138. package/dist/agent-runtime/sandbox/sandbox-bubblewrap-args.d.ts +9 -0
  139. package/dist/agent-runtime/sandbox/sandbox-bubblewrap-args.d.ts.map +1 -1
  140. package/dist/agent-runtime/sandbox/sandbox-bubblewrap.d.ts +6 -0
  141. package/dist/agent-runtime/sandbox/sandbox-bubblewrap.d.ts.map +1 -1
  142. package/dist/agent-runtime/sandbox/sandbox-contract.d.ts.map +1 -1
  143. package/dist/agent-runtime/sandbox/sandbox-process-linux.d.ts.map +1 -1
  144. package/dist/agent-runtime/sandbox/sandbox-process-spec.d.ts +5 -1
  145. package/dist/agent-runtime/sandbox/sandbox-process-spec.d.ts.map +1 -1
  146. package/dist/agent-runtime/sandbox/sandbox-process-wrapper.d.ts.map +1 -1
  147. package/dist/agent-runtime/stores/branch-messages.d.ts.map +1 -1
  148. package/dist/agent-runtime/stores/sql-rows.d.ts +10 -10
  149. package/dist/agent-runtime/terminal-commit.d.ts +10 -10
  150. package/dist/agent-runtime/testing/fault-bench.d.ts +5 -1
  151. package/dist/agent-runtime/testing/fault-bench.d.ts.map +1 -1
  152. package/dist/application/diagnostic-journal-contract.d.ts.map +1 -1
  153. package/dist/browser/client-executors.d.ts.map +1 -1
  154. package/dist/browser/client-url.d.ts.map +1 -1
  155. package/dist/contract/define.d.ts +3 -7
  156. package/dist/contract/define.d.ts.map +1 -1
  157. package/dist/contract/normalize.d.ts +17 -5
  158. package/dist/contract/normalize.d.ts.map +1 -1
  159. package/dist/entrypoints/agent-executor/acp.js +4 -2
  160. package/dist/entrypoints/agent-executor/claude-sdk.js +20 -20
  161. package/dist/entrypoints/agent-executor/claude.js +7 -7
  162. package/dist/entrypoints/agent-executor/codex.d.ts +2 -1
  163. package/dist/entrypoints/agent-executor/codex.d.ts.map +1 -1
  164. package/dist/entrypoints/agent-executor/codex.js +129 -35
  165. package/dist/entrypoints/agent-executor/testing/claude-sdk.js +2 -2
  166. package/dist/entrypoints/agent-executor/testing.js +17 -13
  167. package/dist/entrypoints/agent-executor.js +1 -1
  168. package/dist/entrypoints/agent-runtime/ai-sdk.d.ts +2 -1
  169. package/dist/entrypoints/agent-runtime/ai-sdk.d.ts.map +1 -1
  170. package/dist/entrypoints/agent-runtime/ai-sdk.js +10 -12
  171. package/dist/entrypoints/agent-runtime/anthropic.js +13 -10
  172. package/dist/entrypoints/agent-runtime/browser.js +8 -4
  173. package/dist/entrypoints/agent-runtime/harness.js +18 -19
  174. package/dist/entrypoints/agent-runtime/openai.js +5 -5
  175. package/dist/entrypoints/agent-runtime/openrouter.d.ts +11 -2
  176. package/dist/entrypoints/agent-runtime/openrouter.d.ts.map +1 -1
  177. package/dist/entrypoints/agent-runtime/openrouter.js +1940 -496
  178. package/dist/entrypoints/agent-runtime/postgres.js +2 -2
  179. package/dist/entrypoints/agent-runtime/realtime.js +5 -5
  180. package/dist/entrypoints/agent-runtime/sandbox.js +167 -139
  181. package/dist/entrypoints/agent-runtime/sqlite/bun.js +3 -3
  182. package/dist/entrypoints/agent-runtime/sqlite/node.js +3 -3
  183. package/dist/entrypoints/agent-runtime/testing.js +3 -3
  184. package/dist/entrypoints/agent-runtime.js +246 -360
  185. package/dist/entrypoints/application.js +2 -2
  186. package/dist/entrypoints/cli.js +36 -15
  187. package/dist/entrypoints/contract.js +12 -10
  188. package/dist/entrypoints/geo.js +1 -1
  189. package/dist/entrypoints/handler.js +5 -6
  190. package/dist/entrypoints/http.d.ts +2 -0
  191. package/dist/entrypoints/http.d.ts.map +1 -1
  192. package/dist/entrypoints/http.js +16 -4
  193. package/dist/entrypoints/index.js +26 -35
  194. package/dist/entrypoints/live.js +3 -3
  195. package/dist/entrypoints/node.js +7 -7
  196. package/dist/entrypoints/observability.js +9 -7
  197. package/dist/entrypoints/process.js +3 -3
  198. package/dist/entrypoints/remote.js +5 -5
  199. package/dist/entrypoints/server.js +29 -16
  200. package/dist/entrypoints/telegram/grammy.d.ts +1 -1
  201. package/dist/entrypoints/telegram/grammy.d.ts.map +1 -1
  202. package/dist/entrypoints/telegram/grammy.js +39 -5
  203. package/dist/entrypoints/telegram/screens.js +3 -0
  204. package/dist/entrypoints/telegram.d.ts +1 -1
  205. package/dist/entrypoints/telegram.d.ts.map +1 -1
  206. package/dist/entrypoints/telegram.js +19 -6
  207. package/dist/entrypoints/testing.js +10 -11
  208. package/dist/entrypoints/tools/agent.js +8 -9
  209. package/dist/entrypoints/tools/connections.js +27 -57
  210. package/dist/entrypoints/tools/contract.js +4 -4
  211. package/dist/entrypoints/tools/invoker.js +7 -8
  212. package/dist/entrypoints/tools/mcp.js +9 -10
  213. package/dist/entrypoints/tools/toolkit.js +11 -12
  214. package/dist/entrypoints/tools.js +20 -20
  215. package/dist/entrypoints/tracking/contract.js +1 -1
  216. package/dist/entrypoints/tracking/performance.js +1 -1
  217. package/dist/entrypoints/tracking.js +1 -1
  218. package/dist/{index-3czc3ykr.js → index-08a3qfr8.js} +1 -1
  219. package/dist/{index-grhhsrd5.js → index-1en7k3q5.js} +2 -1
  220. package/dist/{index-pdcbjd6a.js → index-1yky29qg.js} +6 -3
  221. package/dist/{index-b4c9dpzm.js → index-252den5a.js} +10 -11
  222. package/dist/{index-xtby8rj3.js → index-28kbdn63.js} +5 -47
  223. package/dist/{index-57sbckhv.js → index-36mtj8xm.js} +2 -2
  224. package/dist/{index-dm84tsd5.js → index-3kb8dw48.js} +1 -1
  225. package/dist/index-3tb82xr7.js +11 -0
  226. package/dist/{index-c24bj2r1.js → index-4243301z.js} +2 -2
  227. package/dist/{index-nr4fhfn4.js → index-4p2zx593.js} +2 -0
  228. package/dist/{index-q86qnzzf.js → index-54wp467c.js} +4 -4
  229. package/dist/{index-mcv7b2n0.js → index-63ctzjp4.js} +497 -495
  230. package/dist/{index-y0a4gt1s.js → index-65p8v81y.js} +3 -2
  231. package/dist/{index-z72vazf5.js → index-6y3eae97.js} +27 -83
  232. package/dist/{index-5awtbyns.js → index-9vj869rx.js} +1 -1
  233. package/dist/{index-5q0qpw3v.js → index-aqm7e864.js} +23 -8
  234. package/dist/{index-d4at0q09.js → index-b9mj31q7.js} +90 -88
  235. package/dist/{index-baba8ehy.js → index-bjrcbcn2.js} +2 -2
  236. package/dist/{index-fsw9wxk9.js → index-c9j8441q.js} +1 -103
  237. package/dist/{index-wdb5jhas.js → index-d1pdv8qc.js} +1 -1
  238. package/dist/{index-73wq9abg.js → index-df5xr2f9.js} +13 -59
  239. package/dist/{index-n9358ydy.js → index-dm50x3by.js} +1 -1
  240. package/dist/{index-zyyerdny.js → index-dmrx8xma.js} +3 -0
  241. package/dist/{index-78da4g74.js → index-dwq6a6sq.js} +17 -13
  242. package/dist/{index-9be3tf6r.js → index-e413q2cj.js} +49 -22
  243. package/dist/{index-g4gstmp1.js → index-ednf2cxs.js} +1 -1
  244. package/dist/{index-84tp547a.js → index-edpkm3k7.js} +29 -97
  245. package/dist/{index-gs0jw0hy.js → index-efbzm2se.js} +3 -3
  246. package/dist/{index-de7b0kvz.js → index-epwvp88y.js} +1 -1
  247. package/dist/{index-asnd4h2k.js → index-f0dzyskg.js} +27 -4
  248. package/dist/{index-xbb8ysmq.js → index-fatke81t.js} +2 -2
  249. package/dist/{index-6nzzj7qr.js → index-gq35s3bm.js} +1 -1
  250. package/dist/index-gvgtmt7a.js +102 -0
  251. package/dist/{index-m2b49tvc.js → index-h08xqfw9.js} +20 -21
  252. package/dist/{index-gk6dq9ay.js → index-ha1tv70k.js} +3 -26
  253. package/dist/{index-wsv11dhg.js → index-hberxns4.js} +1 -1
  254. package/dist/{index-rkphknhx.js → index-hpzhz1vm.js} +1 -1
  255. package/dist/{index-npfdymav.js → index-j5vzhj3d.js} +1 -1
  256. package/dist/{index-d3s070eh.js → index-jperyn0c.js} +1 -1
  257. package/dist/{index-yhwx4fwk.js → index-kzsetgh9.js} +1 -1
  258. package/dist/{index-x6sp5vpa.js → index-q4tr9vnf.js} +1 -1
  259. package/dist/{index-hce3hbdg.js → index-qj0sq69b.js} +6 -2
  260. package/dist/{index-v0j22shs.js → index-rg08syp1.js} +9 -6
  261. package/dist/{index-8vzh5wpv.js → index-rw1caff2.js} +14 -26
  262. package/dist/index-s8af9jqw.js +6 -0
  263. package/dist/{index-bgj9hbm3.js → index-sdppfbrh.js} +30 -16
  264. package/dist/{index-y0mwkgkf.js → index-shte29pg.js} +1086 -1055
  265. package/dist/{index-fec05c9k.js → index-ta0e2daw.js} +9 -7
  266. package/dist/{index-zfrysr1e.js → index-tb36xawm.js} +110 -75
  267. package/dist/{index-c0yym4a0.js → index-w7e402wx.js} +11 -105
  268. package/dist/{index-bvpevwt6.js → index-xnqab06h.js} +207 -202
  269. package/dist/index-xrbrvn15.js +147 -0
  270. package/dist/{index-ac3rfec5.js → index-y6wzzk2e.js} +21 -1
  271. package/dist/{index-3d2c45jn.js → index-yjx5jna7.js} +2 -2
  272. package/dist/internal/loopback-host.d.ts +8 -0
  273. package/dist/internal/loopback-host.d.ts.map +1 -0
  274. package/dist/internal/own-member.d.ts +7 -0
  275. package/dist/internal/own-member.d.ts.map +1 -0
  276. package/dist/internal/request.d.ts +17 -8
  277. package/dist/internal/request.d.ts.map +1 -1
  278. package/dist/internal/secret-shapes.d.ts +33 -4
  279. package/dist/internal/secret-shapes.d.ts.map +1 -1
  280. package/dist/json-schema/dialect.d.ts.map +1 -1
  281. package/dist/json-schema/keywords.d.ts +25 -6
  282. package/dist/json-schema/keywords.d.ts.map +1 -1
  283. package/dist/json-schema/string-format.d.ts.map +1 -1
  284. package/dist/live/events.d.ts.map +1 -1
  285. package/dist/live/watch-client.d.ts.map +1 -1
  286. package/dist/live/watch-delta.d.ts.map +1 -1
  287. package/dist/observability/context.d.ts +4 -3
  288. package/dist/observability/context.d.ts.map +1 -1
  289. package/dist/observability/sanitize.d.ts.map +1 -1
  290. package/dist/observability/secret-values.d.ts +0 -9
  291. package/dist/observability/secret-values.d.ts.map +1 -1
  292. package/dist/server/context.d.ts +3 -2
  293. package/dist/server/context.d.ts.map +1 -1
  294. package/dist/server/error-hook.d.ts +4 -3
  295. package/dist/server/error-hook.d.ts.map +1 -1
  296. package/dist/server/event-bus.d.ts.map +1 -1
  297. package/dist/server/file.d.ts +11 -3
  298. package/dist/server/file.d.ts.map +1 -1
  299. package/dist/server/handler-state.d.ts +2 -2
  300. package/dist/server/handler-state.d.ts.map +1 -1
  301. package/dist/server/middleware/jwt.d.ts +12 -1
  302. package/dist/server/middleware/jwt.d.ts.map +1 -1
  303. package/dist/server/middleware/trust-fence.d.ts +4 -0
  304. package/dist/server/middleware/trust-fence.d.ts.map +1 -1
  305. package/dist/server/multipart.d.ts +2 -3
  306. package/dist/server/multipart.d.ts.map +1 -1
  307. package/dist/server/raw.d.ts.map +1 -1
  308. package/dist/server/request-body.d.ts +12 -1
  309. package/dist/server/request-body.d.ts.map +1 -1
  310. package/dist/server/request-completion.d.ts.map +1 -1
  311. package/dist/server/types.d.ts +14 -9
  312. package/dist/server/types.d.ts.map +1 -1
  313. package/dist/telegram/crypto.d.ts.map +1 -1
  314. package/dist/telegram/init-data.d.ts +4 -4
  315. package/dist/telegram/init-data.d.ts.map +1 -1
  316. package/dist/telegram/outbound-cost.d.ts.map +1 -1
  317. package/dist/telegram/screens/test-chat.d.ts.map +1 -1
  318. package/dist/telegram/widget-api.d.ts +85 -13
  319. package/dist/telegram/widget-api.d.ts.map +1 -1
  320. package/dist/telegram/widget.d.ts +46 -2
  321. package/dist/telegram/widget.d.ts.map +1 -1
  322. package/dist/tools/cli/args-classify.d.ts +4 -74
  323. package/dist/tools/cli/args-classify.d.ts.map +1 -1
  324. package/dist/tools/cli/args-framework.d.ts +79 -0
  325. package/dist/tools/cli/args-framework.d.ts.map +1 -0
  326. package/dist/tools/cli/args-scan.d.ts.map +1 -1
  327. package/dist/tools/cli/args-tokens.d.ts.map +1 -1
  328. package/dist/tools/cli/checkpoint.d.ts +5 -0
  329. package/dist/tools/cli/checkpoint.d.ts.map +1 -1
  330. package/dist/tools/cli/stream.d.ts.map +1 -1
  331. package/dist/tools/connections/foreign-schema-join.d.ts.map +1 -1
  332. package/dist/tools/connections/openapi.d.ts.map +1 -1
  333. package/dist/tools/connections/runtime.d.ts.map +1 -1
  334. package/dist/tools/execute-handler.d.ts +24 -0
  335. package/dist/tools/execute-handler.d.ts.map +1 -0
  336. package/dist/tools/execute.d.ts.map +1 -1
  337. package/dist/tools/mcp/round.d.ts.map +1 -1
  338. package/dist/tools/schema/coerce.d.ts.map +1 -1
  339. package/dist/tools/schema/flatten.d.ts.map +1 -1
  340. package/dist/tools/schema/inline-references.d.ts.map +1 -1
  341. package/dist/tools/schema/nesting-limit.d.ts.map +1 -1
  342. package/dist/tools/schema/presentation.d.ts.map +1 -1
  343. package/dist/tracking/privacy.d.ts.map +1 -1
  344. package/llms/agent-runtime-openrouter.txt +14 -5
  345. package/llms/agent-runtime-sandbox.txt +50 -11
  346. package/llms/agent-runtime-testing.txt +1 -1
  347. package/llms/agent-runtime.2.txt +342 -230
  348. package/llms/agent-runtime.3.txt +225 -380
  349. package/llms/agent-runtime.4.txt +387 -158
  350. package/llms/agent-runtime.5.txt +157 -152
  351. package/llms/agent-runtime.6.txt +164 -0
  352. package/llms/agent-runtime.txt +307 -362
  353. package/llms/application.txt +3 -1
  354. package/llms/http.txt +1 -1
  355. package/llms/live.txt +3 -1
  356. package/llms/observability.txt +16 -9
  357. package/llms/server.2.txt +13 -8
  358. package/llms/server.4.txt +23 -11
  359. package/llms/server.5.txt +5 -5
  360. package/llms/server.txt +54 -1
  361. package/llms/spend.txt +18 -1
  362. package/llms/stitchkit.2.txt +4 -2
  363. package/llms/stitchkit.txt +113 -93
  364. package/llms/telegram-grammy.txt +3 -2
  365. package/llms/telegram.2.txt +3 -1
  366. package/llms/telegram.txt +35 -10
  367. package/llms/upgrading-0.128.0-0.129.0.txt +175 -0
  368. package/llms/{upgrading-0.128.0-0.135.0.txt → upgrading-0.130.0-0.136.0.txt} +353 -169
  369. package/llms/upgrading.txt +2 -1
  370. package/llms-full.txt +1035 -208
  371. package/llms.txt +14 -13
  372. package/package.json +6 -6
  373. package/dist/agent-runtime/loop/deferred-tools-internal.d.ts +0 -19
  374. package/dist/agent-runtime/loop/deferred-tools-internal.d.ts.map +0 -1
  375. package/dist/agent-runtime/loop/run-complete-retry.d.ts +0 -24
  376. package/dist/agent-runtime/loop/run-complete-retry.d.ts.map +0 -1
  377. package/dist/agent-runtime/loop/run-model-attempts.d.ts +0 -6
  378. package/dist/agent-runtime/loop/run-model-attempts.d.ts.map +0 -1
  379. package/dist/index-sznqf8fx.js +0 -20
  380. /package/dist/{index-fthw8dwa.js → index-4gbybjg6.js} +0 -0
@@ -1,3 +1,3 @@
1
1
  export { telegramBudgetTransformer } from '../../telegram/budget-transformer.js';
2
- export { type TelegramAnswerWidgetQueryParams, type TelegramEditMessageWidgetDataParams, type TelegramSendWidgetParams, type TelegramWidgetApi, type TelegramWidgetCallOptions, telegramWidgetApi, } from '../../telegram/widget-api.js';
2
+ export { type TelegramAnswerWidgetQueryParams, type TelegramEditMessageWidgetDataParams, type TelegramEditSharedWidgetDataParams, type TelegramSendSharedWidgetParams, type TelegramSendWidgetParams, type TelegramWidgetApi, type TelegramWidgetCallOptions, telegramWidgetApi, } from '../../telegram/widget-api.js';
3
3
  //# sourceMappingURL=grammy.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"grammy.d.ts","sourceRoot":"","sources":["../../../src/entrypoints/telegram/grammy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EACL,KAAK,+BAA+B,EACpC,KAAK,mCAAmC,EACxC,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,iBAAiB,GAClB,MAAM,2BAA2B,CAAC"}
1
+ {"version":3,"file":"grammy.d.ts","sourceRoot":"","sources":["../../../src/entrypoints/telegram/grammy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EACL,KAAK,+BAA+B,EACpC,KAAK,mCAAmC,EACxC,KAAK,kCAAkC,EACvC,KAAK,8BAA8B,EACnC,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,iBAAiB,GAClB,MAAM,2BAA2B,CAAC"}
@@ -2,7 +2,7 @@ import {
2
2
  TelegramWidgetHtmlSchema2,
3
3
  TelegramWidgetDataSchema2,
4
4
  TelegramWidgetMessageSchema2
5
- } from "../../index-bgj9hbm3.js";
5
+ } from "../../index-sdppfbrh.js";
6
6
  import {
7
7
  TelegramNotDispatchedError2,
8
8
  classifyTelegramEditRefusal
@@ -54,12 +54,33 @@ function telegramBudgetTransformer(budget, options) {
54
54
  // src/telegram/widget-api.ts
55
55
  import { z } from "zod";
56
56
  var ChatIdSchema = z.union([z.int(), z.string().min(1)]);
57
+ var WidgetIdSchema = z.string().min(1);
57
58
  var SendInputSchema = z.object({
58
59
  chat_id: ChatIdSchema,
59
60
  html: TelegramWidgetHtmlSchema2,
60
61
  public_data: TelegramWidgetDataSchema2.optional(),
62
+ chat_data: TelegramWidgetDataSchema2.optional(),
63
+ is_shared: z.boolean().optional()
64
+ });
65
+ var SendSharedInputSchema = z.object({
66
+ chat_id: ChatIdSchema,
67
+ widget_id: WidgetIdSchema,
61
68
  chat_data: TelegramWidgetDataSchema2.optional()
62
69
  });
70
+ var EditSharedInputSchema = z.object({
71
+ widget_id: WidgetIdSchema,
72
+ public_data: TelegramWidgetDataSchema2,
73
+ cache_time: z.int().min(5).max(3600).optional()
74
+ });
75
+ var SharedWidgetMessageSchema = TelegramWidgetMessageSchema2.extend({
76
+ widget: TelegramWidgetMessageSchema2.shape.widget.extend({ id: WidgetIdSchema })
77
+ });
78
+ function sentSharedWidgetMessageSchema(widgetId) {
79
+ return SharedWidgetMessageSchema.refine((message) => message.widget.id === widgetId, {
80
+ message: "A shared widget message carries the shared widget id",
81
+ path: ["widget", "id"]
82
+ });
83
+ }
63
84
  var EditInputSchema = z.object({
64
85
  chat_id: ChatIdSchema.optional(),
65
86
  message_id: z.int().optional(),
@@ -94,12 +115,19 @@ function answered(method, schema, value) {
94
115
  throw new Error(`Telegram answered ${method} with an unexpected result; the request was sent and its outcome is unknown`, { cause: parsed.error });
95
116
  }
96
117
  function telegramWidgetApi(api) {
118
+ async function sendWidget(params, options) {
119
+ const payload = payloadOf(params);
120
+ const input = SendInputSchema.parse(payload);
121
+ const value = await dispatch(api, "sendWidget", payload, options?.signal);
122
+ return input.is_shared === true ? answered("sendWidget", SharedWidgetMessageSchema, value) : answered("sendWidget", TelegramWidgetMessageSchema2, value);
123
+ }
97
124
  return {
98
- async sendWidget(params, options) {
125
+ sendWidget,
126
+ async sendSharedWidget(params, options) {
99
127
  const payload = payloadOf(params);
100
- SendInputSchema.parse(payload);
101
- const value = await dispatch(api, "sendWidget", payload, options?.signal);
102
- return answered("sendWidget", TelegramWidgetMessageSchema2, value);
128
+ const input = SendSharedInputSchema.parse(payload);
129
+ const value = await dispatch(api, "sendSharedWidget", payload, options?.signal);
130
+ return answered("sendSharedWidget", sentSharedWidgetMessageSchema(input.widget_id), value);
103
131
  },
104
132
  async editMessageWidgetData(params, options) {
105
133
  const payload = payloadOf(params);
@@ -114,6 +142,12 @@ function telegramWidgetApi(api) {
114
142
  }
115
143
  answered("editMessageWidgetData", TrueSchema, value);
116
144
  },
145
+ async editSharedWidgetData(params, options) {
146
+ const payload = payloadOf(params);
147
+ EditSharedInputSchema.parse(payload);
148
+ const value = await dispatch(api, "editSharedWidgetData", payload, options?.signal);
149
+ answered("editSharedWidgetData", TrueSchema, value);
150
+ },
117
151
  async answerWidgetQuery(params, options) {
118
152
  const payload = payloadOf(params);
119
153
  AnswerInputSchema.parse(payload);
@@ -1985,11 +1985,14 @@ function createScreenTestChat(first, options = {}) {
1985
1985
  is_bot: true,
1986
1986
  can_join_groups: true,
1987
1987
  can_read_all_group_messages: false,
1988
+ supports_guest_queries: false,
1988
1989
  supports_inline_queries: false,
1990
+ needs_inline_query_location: false,
1989
1991
  can_connect_to_business: false,
1990
1992
  has_main_web_app: false,
1991
1993
  has_topics_enabled: false,
1992
1994
  allows_users_to_create_topics: false,
1995
+ has_topic_sidebar: false,
1993
1996
  can_manage_bots: false,
1994
1997
  supports_join_request_queries: false
1995
1998
  };
@@ -17,5 +17,5 @@ export { type SqliteTelegramUpdateStoreConfig, sqliteTelegramUpdateStore, type T
17
17
  export { parseTelegramUser, type TelegramUser } from '../telegram/user.js';
18
18
  export { type ReadTelegramVoiceWaveformOptions, readTelegramVoiceWaveform, } from '../telegram/voice-waveform-pcm.js';
19
19
  export { type ClaimTelegramWebhookConfig, checkTelegramWebhook, claimTelegramWebhook, type ReceiveTelegramWebhookOptions, receiveTelegramWebhook, TELEGRAM_WEBHOOK_NONE, type TelegramUpdateAcceptance, type TelegramWebhookClaim, TelegramWebhookClaimError, type TelegramWebhookConfig, type TelegramWebhookRefusal, type TelegramWebhookState, telegramWebhookUrl, } from '../telegram/webhook.js';
20
- export { parseTelegramWidgetQuery, TELEGRAM_WIDGET_LIMITS, TelegramWidgetDataSchema, TelegramWidgetHtmlSchema, type TelegramWidgetMessage, TelegramWidgetMessageSchema, type TelegramWidgetQuery, type TelegramWidgetQueryParse, TelegramWidgetQuerySchema, } from '../telegram/widget.js';
20
+ export { parseTelegramSharedWidgetQuery, parseTelegramWidgetQuery, TELEGRAM_WIDGET_LIMITS, type TelegramSharedWidgetQuery, TelegramSharedWidgetQuerySchema, TelegramWidgetDataSchema, TelegramWidgetHtmlSchema, type TelegramWidgetMessage, TelegramWidgetMessageSchema, type TelegramWidgetQuery, type TelegramWidgetQueryParse, TelegramWidgetQuerySchema, } from '../telegram/widget.js';
21
21
  //# sourceMappingURL=telegram.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"telegram.d.ts","sourceRoot":"","sources":["../../src/entrypoints/telegram.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,0BAA0B,EAC1B,KAAK,kBAAkB,EACvB,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,oBAAoB,EACpB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,0BAA0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,CAAC;AAC1E,OAAO,EACL,KAAK,iCAAiC,EACtC,2BAA2B,EAC3B,8BAA8B,EAC9B,KAAK,qBAAqB,GAC3B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,KAAK,+BAA+B,EACpC,yBAAyB,EACzB,KAAK,sBAAsB,GAC5B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EACL,KAAK,gCAAgC,EACrC,yBAAyB,GAC1B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,KAAK,0BAA0B,EAC/B,oBAAoB,EACpB,oBAAoB,EACpB,KAAK,6BAA6B,EAClC,sBAAsB,EACtB,qBAAqB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,yBAAyB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,8BAA8B,EAC9B,wBAAwB,EACxB,sBAAsB,EACtB,KAAK,yBAAyB,EAC9B,+BAA+B,EAC/B,wBAAwB,EACxB,wBAAwB,EACxB,KAAK,qBAAqB,EAC1B,2BAA2B,EAC3B,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,yBAAyB,GAC1B,MAAM,oBAAoB,CAAC"}
@@ -10,8 +10,10 @@ import {
10
10
  TelegramWidgetDataSchema2,
11
11
  TelegramWidgetMessageSchema2,
12
12
  TelegramWidgetQuerySchema2,
13
- parseTelegramWidgetQuery2
14
- } from "../index-bgj9hbm3.js";
13
+ TelegramSharedWidgetQuerySchema2,
14
+ parseTelegramWidgetQuery2,
15
+ parseTelegramSharedWidgetQuery2
16
+ } from "../index-sdppfbrh.js";
15
17
  import {
16
18
  TelegramNotDispatchedError2,
17
19
  isTelegramNotDispatchedError,
@@ -38,10 +40,13 @@ import {
38
40
  } from "../index-pp97q86a.js";
39
41
  import {
40
42
  BOT_TOKEN_SECRET
41
- } from "../index-sznqf8fx.js";
43
+ } from "../index-xrbrvn15.js";
42
44
  import {
43
45
  errnoOf
44
46
  } from "../index-jj9228tt.js";
47
+ import {
48
+ setOwnMember
49
+ } from "../index-3tb82xr7.js";
45
50
  import {
46
51
  argumentsDigest
47
52
  } from "../index-3dq8466w.js";
@@ -498,7 +503,7 @@ function telegramBroadcastSender(config) {
498
503
  // src/telegram/crypto.ts
499
504
  var encoder = new TextEncoder;
500
505
  async function hmacSha256(key, message) {
501
- const imported = await crypto.subtle.importKey("raw", key, { name: "HMAC", hash: "SHA-256" }, false, ["sign"]);
506
+ const imported = await crypto.subtle.importKey("raw", key instanceof Uint8Array ? new Uint8Array(key) : key, { name: "HMAC", hash: "SHA-256" }, false, ["sign"]);
502
507
  return crypto.subtle.sign("HMAC", imported, encoder.encode(message));
503
508
  }
504
509
  function toHex(buffer) {
@@ -535,6 +540,7 @@ function parseTelegramUser(value) {
535
540
 
536
541
  // src/telegram/init-data.ts
537
542
  var encoder2 = new TextEncoder;
543
+ var DEFAULT_INIT_DATA_MAX_AGE_SECONDS = 86400;
538
544
  function optionalUser(raw, key) {
539
545
  const encoded = raw[key];
540
546
  if (encoded === undefined)
@@ -558,7 +564,7 @@ async function verifyTelegramInitData(options) {
558
564
  for (const [key, value] of params) {
559
565
  if (key === "hash")
560
566
  continue;
561
- signed[key] = value;
567
+ setOwnMember(signed, key, value);
562
568
  }
563
569
  const dataCheckString = Object.keys(signed).sort().map((key) => `${key}=${signed[key]}`).join(`
564
570
  `);
@@ -573,7 +579,8 @@ async function verifyTelegramInitData(options) {
573
579
  }
574
580
  const nowMs = options.now?.() ?? Date.now();
575
581
  const ageSeconds = Math.floor(nowMs / 1000) - authDateSeconds;
576
- if (options.maxAgeSeconds !== undefined && ageSeconds > options.maxAgeSeconds) {
582
+ const maxAgeSeconds = options.maxAgeSeconds ?? DEFAULT_INIT_DATA_MAX_AGE_SECONDS;
583
+ if (ageSeconds > maxAgeSeconds) {
577
584
  return { valid: false, reason: "expired", ageSeconds };
578
585
  }
579
586
  let user;
@@ -996,6 +1003,7 @@ var FREE_METHODS = new Set([
996
1003
  "declineChatJoinRequest",
997
1004
  "declineSuggestedPost",
998
1005
  "deleteAllMessageReactions",
1006
+ "deleteBusinessAccountGift",
999
1007
  "deleteBusinessMessages",
1000
1008
  "deleteChatPhoto",
1001
1009
  "deleteChatStickerSet",
@@ -1037,6 +1045,7 @@ var FREE_METHODS = new Set([
1037
1045
  "getChatMemberCount",
1038
1046
  "getChatMembersCount",
1039
1047
  "getChatMenuButton",
1048
+ "getChatShareThemeBackdrops",
1040
1049
  "getCustomEmojiStickers",
1041
1050
  "getFile",
1042
1051
  "getForumTopicIconStickers",
@@ -1052,6 +1061,7 @@ var FREE_METHODS = new Set([
1052
1061
  "getMyStarBalance",
1053
1062
  "getStarTransactions",
1054
1063
  "getStickerSet",
1064
+ "getUniqueGift",
1055
1065
  "getUpdates",
1056
1066
  "getUserChatBoosts",
1057
1067
  "getUserGifts",
@@ -1105,6 +1115,7 @@ var FREE_METHODS = new Set([
1105
1115
  "setMyDescription",
1106
1116
  "setMyName",
1107
1117
  "setMyProfilePhoto",
1118
+ "setMySettings",
1108
1119
  "setMyShortDescription",
1109
1120
  "setPassportDataErrors",
1110
1121
  "setStickerEmojiList",
@@ -3325,6 +3336,7 @@ export {
3325
3336
  TelegramBroadcastFailureSchema,
3326
3337
  TelegramLocalFileError,
3327
3338
  TelegramNotDispatchedError2 as TelegramNotDispatchedError,
3339
+ TelegramSharedWidgetQuerySchema2 as TelegramSharedWidgetQuerySchema,
3328
3340
  TelegramUpdateOwnershipLostError,
3329
3341
  TelegramWebhookClaimError,
3330
3342
  TelegramWidgetDataSchema2 as TelegramWidgetDataSchema,
@@ -3342,6 +3354,7 @@ export {
3342
3354
  createTelegramOperatorDedupe,
3343
3355
  createTelegramUpdateIntake,
3344
3356
  memoryTelegramUpdateStore,
3357
+ parseTelegramSharedWidgetQuery2 as parseTelegramSharedWidgetQuery,
3345
3358
  parseTelegramUser,
3346
3359
  parseTelegramWidgetQuery2 as parseTelegramWidgetQuery,
3347
3360
  postgresTelegramUpdateStore,
@@ -4,6 +4,10 @@ import {
4
4
  import"../index-q46b16xz.js";
5
5
  import"../index-yrhw10ef.js";
6
6
  import"../index-cgjtj8zh.js";
7
+ import {
8
+ createClient2,
9
+ createClients2
10
+ } from "../index-f0dzyskg.js";
7
11
  import"../index-5xsxvk2x.js";
8
12
  import {
9
13
  createApplication2
@@ -18,31 +22,26 @@ import {
18
22
  TOOL_TRANSPORTS2
19
23
  } from "../index-yt1gg11x.js";
20
24
  import"../index-werjqesf.js";
21
- import"../index-zyyerdny.js";
25
+ import"../index-dmrx8xma.js";
22
26
  import {
23
27
  RealtimeRejectDirectionSchema,
24
28
  RealtimeRejectPhaseSchema,
25
29
  RealtimeRejectReasonSchema,
26
30
  RealtimeRejectFaultSchema
27
31
  } from "../index-814xpr6d.js";
28
- import"../index-gk6dq9ay.js";
32
+ import"../index-ha1tv70k.js";
29
33
  import {
30
34
  toJsonSchema
31
- } from "../index-wdb5jhas.js";
35
+ } from "../index-d1pdv8qc.js";
32
36
  import {
33
37
  projectToolSurface
34
- } from "../index-84tp547a.js";
35
- import"../index-78da4g74.js";
36
- import"../index-n9358ydy.js";
38
+ } from "../index-edpkm3k7.js";
39
+ import"../index-dm50x3by.js";
37
40
  import {
38
41
  staticInputRounds,
39
42
  mcpProjectionCandidate,
40
43
  prepareProjectedMcpTools
41
- } from "../index-gs0jw0hy.js";
42
- import {
43
- createClient2,
44
- createClients2
45
- } from "../index-asnd4h2k.js";
44
+ } from "../index-efbzm2se.js";
46
45
  import {
47
46
  compareCodeUnits,
48
47
  serializeCanonicalJson
@@ -2,23 +2,22 @@ import {
2
2
  AgentModelProviderOptionsSchema2,
3
3
  AgentModelMessageSchema2
4
4
  } from "../../index-vebzvse6.js";
5
- import"../../index-gk6dq9ay.js";
6
- import"../../index-wdb5jhas.js";
7
- import"../../index-78da4g74.js";
5
+ import"../../index-ha1tv70k.js";
6
+ import"../../index-d1pdv8qc.js";
8
7
  import"../../index-dsa676h8.js";
9
- import"../../index-n9358ydy.js";
10
- import"../../index-hce3hbdg.js";
11
- import"../../index-d4at0q09.js";
8
+ import"../../index-dm50x3by.js";
9
+ import"../../index-qj0sq69b.js";
10
+ import"../../index-b9mj31q7.js";
12
11
  import"../../index-yt1gg11x.js";
13
- import"../../index-84tp547a.js";
12
+ import"../../index-edpkm3k7.js";
14
13
  import"../../index-werjqesf.js";
15
14
  import {
16
15
  currentCompatToolCallContext
17
16
  } from "../../index-125ks2ec.js";
18
17
  import {
19
18
  buildAgentTools
20
- } from "../../index-q86qnzzf.js";
21
- import"../../index-baba8ehy.js";
19
+ } from "../../index-54wp467c.js";
20
+ import"../../index-bjrcbcn2.js";
22
21
  import"../../index-7csn6pva.js";
23
22
  import {
24
23
  isRecord
@@ -4,7 +4,7 @@ import {
4
4
  import"../../index-werjqesf.js";
5
5
  import {
6
6
  withServedFormats
7
- } from "../../index-gk6dq9ay.js";
7
+ } from "../../index-ha1tv70k.js";
8
8
  import {
9
9
  markJsonSchemaObjectGuards,
10
10
  markRemoteSchemaVerdict
@@ -24,17 +24,15 @@ import {
24
24
  declaresDraft07,
25
25
  withDraft2020Keywords,
26
26
  mergePropertySchemas
27
- } from "../../index-73wq9abg.js";
27
+ } from "../../index-df5xr2f9.js";
28
28
  import {
29
29
  assertNoLegacyTransports
30
30
  } from "../../index-akfgymyr.js";
31
31
  import {
32
- SCHEMA_KEYWORDS,
33
- SCHEMA_LIST_KEYWORDS,
34
- SCHEMA_MAP_KEYWORDS,
35
32
  REMOTE_STRIPPED_KEYWORDS,
36
- assertKnownJsonSchemaKeywords
37
- } from "../../index-9be3tf6r.js";
33
+ assertKnownJsonSchemaKeywords,
34
+ mapSubschemas
35
+ } from "../../index-e413q2cj.js";
38
36
  import {
39
37
  safeJsonParse
40
38
  } from "../../index-zsarb5xp.js";
@@ -43,6 +41,9 @@ import {
43
41
  STITCH_ERROR_STATUS2,
44
42
  isRetryableStatus2
45
43
  } from "../../index-7fjbdga8.js";
44
+ import {
45
+ setOwnMember
46
+ } from "../../index-3tb82xr7.js";
46
47
  import {
47
48
  serializeCanonicalJson
48
49
  } from "../../index-fmzg39a8.js";
@@ -1080,7 +1081,7 @@ function lookupLocalPointer(root, ref) {
1080
1081
  let current = root;
1081
1082
  for (const segment of ref.slice(2).split("/")) {
1082
1083
  const key = segment.replace(/~1/g, "/").replace(/~0/g, "~");
1083
- if (!isRecord(current))
1084
+ if (!isRecord(current) || !Object.hasOwn(current, key))
1084
1085
  return;
1085
1086
  current = current[key];
1086
1087
  }
@@ -1113,7 +1114,7 @@ function withoutKeys(node, omitted) {
1113
1114
  const out = {};
1114
1115
  for (const [key, value] of Object.entries(node)) {
1115
1116
  if (!omitted.has(key))
1116
- out[key] = value;
1117
+ setOwnMember(out, key, value);
1117
1118
  }
1118
1119
  return out;
1119
1120
  }
@@ -1220,7 +1221,7 @@ function mergePropertyNameSchemas(values) {
1220
1221
  function mergeSubschemaMap(entries) {
1221
1222
  const merged = {};
1222
1223
  for (const [key, list] of entries)
1223
- merged[key] = combineConjoinedSchemas(list);
1224
+ setOwnMember(merged, key, combineConjoinedSchemas(list));
1224
1225
  return merged;
1225
1226
  }
1226
1227
  function joinTopLevelAllOf(schema, root = schema, seen = new Set) {
@@ -1370,7 +1371,7 @@ function joinTopLevelUnion(schema, root = schema, seen = new Set) {
1370
1371
  }
1371
1372
  const properties = {};
1372
1373
  for (const [name, variants] of byProp) {
1373
- properties[name] = variants.length === 1 && variants[0] ? variants[0].schema : mergePropertySchemas(variants, "variant");
1374
+ setOwnMember(properties, name, variants.length === 1 && variants[0] ? variants[0].schema : mergePropertySchemas(variants, "variant"));
1374
1375
  }
1375
1376
  const firstRequired = requiredSets[0] ?? new Set;
1376
1377
  const branchRequired = [...firstRequired].filter((name) => requiredSets.every((set) => set.has(name)));
@@ -1407,26 +1408,10 @@ function reconcileDialect(schema) {
1407
1408
  function normalizeForeignNode(node, dialect) {
1408
1409
  if (!isRecord(node))
1409
1410
  return node;
1410
- const out = {};
1411
- for (const [key, value] of Object.entries(node)) {
1412
- if (REMOTE_STRIPPED_KEYWORDS.has(key))
1413
- continue;
1414
- if (dialect !== "openapi-3.0" && key === "nullable")
1415
- continue;
1416
- if (SCHEMA_KEYWORDS.includes(key)) {
1417
- out[key] = Array.isArray(value) ? value.map((item) => normalizeForeignNode(item, dialect)) : normalizeForeignNode(value, dialect);
1418
- } else if (SCHEMA_LIST_KEYWORDS.includes(key) && Array.isArray(value)) {
1419
- out[key] = value.map((item) => normalizeForeignNode(item, dialect));
1420
- } else if (SCHEMA_MAP_KEYWORDS.includes(key) && isRecord(value)) {
1421
- const mapped = {};
1422
- for (const [entryKey, entryVal] of Object.entries(value)) {
1423
- mapped[entryKey] = normalizeForeignNode(entryVal, dialect);
1424
- }
1425
- out[key] = mapped;
1426
- } else {
1427
- out[key] = value;
1428
- }
1429
- }
1411
+ const out = mapSubschemas(node, {
1412
+ schema: (child) => normalizeForeignNode(child, dialect),
1413
+ omit: (key) => REMOTE_STRIPPED_KEYWORDS.has(key) || dialect !== "openapi-3.0" && key === "nullable"
1414
+ });
1430
1415
  if (dialect !== "openapi-3.0" && node.nullable === true) {
1431
1416
  if (typeof out.type === "string") {
1432
1417
  if (out.type !== "null")
@@ -1744,7 +1729,7 @@ async function mountOpenApiConnection(connection, instanceId, onSkipped) {
1744
1729
  const rawName = operationKey(entry);
1745
1730
  const name = uniqueToolName(connection.name, rawName, names);
1746
1731
  const description = typeof entry.operation.description === "string" ? entry.operation.description : `${entry.method} ${entry.path}`;
1747
- const schema = operationInputSchema(document, entry);
1732
+ const schema = operationInputSchema(entry);
1748
1733
  const dialect = typeof document.openapi === "string" && document.openapi.startsWith("3.0.") ? "openapi-3.0" : "2020-12";
1749
1734
  const input = zodObjectFromJsonSchema(schema, { dialect });
1750
1735
  const auth = resolveAuth(document, entry.operation);
@@ -1764,8 +1749,8 @@ async function mountOpenApiConnection(connection, instanceId, onSkipped) {
1764
1749
  const url = buildOperationUrl(baseUrl, entry, args);
1765
1750
  assertAllowedHost(url, allowedHosts, connection.name);
1766
1751
  const headers = { accept: "application/json" };
1767
- for (const parameter of operationParameters(document, entry)) {
1768
- const value = args[parameter.name];
1752
+ for (const parameter of operationParameters(entry)) {
1753
+ const value = Object.hasOwn(args, parameter.name) ? args[parameter.name] : undefined;
1769
1754
  if (value === undefined)
1770
1755
  continue;
1771
1756
  if (parameter.in === "query")
@@ -1898,7 +1883,7 @@ function uniqueToolName(connectionName, rawName, used) {
1898
1883
  used.add(name);
1899
1884
  return name;
1900
1885
  }
1901
- function operationParameters(document, entry) {
1886
+ function operationParameters(entry) {
1902
1887
  const merged = new Map;
1903
1888
  for (const source of [entry.pathItem.parameters, entry.operation.parameters]) {
1904
1889
  if (!Array.isArray(source))
@@ -1911,7 +1896,7 @@ function operationParameters(document, entry) {
1911
1896
  if (location !== "path" && location !== "query" && location !== "header" && location !== "cookie") {
1912
1897
  continue;
1913
1898
  }
1914
- const resolved = resolveRef(document, asRecord(parameter.schema));
1899
+ const resolved = asRecord(parameter.schema);
1915
1900
  merged.set(`${location}:${parameter.name}`, {
1916
1901
  name: parameter.name,
1917
1902
  in: location,
@@ -1929,11 +1914,11 @@ function requestBody(operation) {
1929
1914
  const content = asRecord(body.content);
1930
1915
  return Boolean(content && isRecord(content["application/json"]));
1931
1916
  }
1932
- function operationInputSchema(document, entry) {
1917
+ function operationInputSchema(entry) {
1933
1918
  const properties = {};
1934
1919
  const required = [];
1935
- for (const parameter of operationParameters(document, entry)) {
1936
- properties[parameter.name] = parameter.schema ?? { type: "string" };
1920
+ for (const parameter of operationParameters(entry)) {
1921
+ setOwnMember(properties, parameter.name, parameter.schema ?? { type: "string" });
1937
1922
  if (parameter.required)
1938
1923
  required.push(parameter.name);
1939
1924
  }
@@ -1941,7 +1926,7 @@ function operationInputSchema(document, entry) {
1941
1926
  const content = body ? asRecord(body.content) : undefined;
1942
1927
  const json = content ? asRecord(content["application/json"]) : undefined;
1943
1928
  if (body && json) {
1944
- properties.body = resolveRef(document, asRecord(json.schema)) ?? {};
1929
+ properties.body = asRecord(json.schema) ?? {};
1945
1930
  if (body.required === true)
1946
1931
  required.push("body");
1947
1932
  }
@@ -1951,21 +1936,6 @@ function operationInputSchema(document, entry) {
1951
1936
  ...required.length > 0 && { required }
1952
1937
  };
1953
1938
  }
1954
- function resolveRef(document, node) {
1955
- if (!node)
1956
- return;
1957
- const ref = node.$ref;
1958
- if (typeof ref !== "string" || !ref.startsWith("#/"))
1959
- return node;
1960
- const segments = ref.slice(2).split("/").map((segment) => segment.replace(/~1/g, "/").replace(/~0/g, "~"));
1961
- let current = document;
1962
- for (const segment of segments) {
1963
- if (!isRecord(current))
1964
- return;
1965
- current = current[segment];
1966
- }
1967
- return asRecord(current);
1968
- }
1969
1939
  function resolveAuth(document, operation) {
1970
1940
  const security = operation.security ?? document.security;
1971
1941
  if (!Array.isArray(security))
@@ -2029,10 +1999,10 @@ function operationServerUrl(entry) {
2029
1999
  }
2030
2000
  function buildOperationUrl(baseUrl, entry, args) {
2031
2001
  let path = entry.path;
2032
- for (const parameter of operationParameters({}, entry)) {
2002
+ for (const parameter of operationParameters(entry)) {
2033
2003
  if (parameter.in !== "path")
2034
2004
  continue;
2035
- const value = args[parameter.name];
2005
+ const value = Object.hasOwn(args, parameter.name) ? args[parameter.name] : undefined;
2036
2006
  if (value === undefined)
2037
2007
  continue;
2038
2008
  path = path.replace(`{${parameter.name}}`, encodeURIComponent(String(value)));
@@ -12,11 +12,11 @@ import {
12
12
  } from "../../index-gy9x38a2.js";
13
13
  import {
14
14
  coerceJsonArgs2
15
- } from "../../index-hce3hbdg.js";
16
- import"../../index-n9358ydy.js";
17
- import"../../index-wdb5jhas.js";
15
+ } from "../../index-qj0sq69b.js";
16
+ import"../../index-dm50x3by.js";
17
+ import"../../index-d1pdv8qc.js";
18
18
  import"../../index-dsa676h8.js";
19
- import"../../index-gk6dq9ay.js";
19
+ import"../../index-ha1tv70k.js";
20
20
  export {
21
21
  AsyncOperationCancelResultSchema2 as AsyncOperationCancelResultSchema,
22
22
  MCP_FILE_NAME_META_KEY2 as MCP_FILE_NAME_META_KEY,
@@ -1,15 +1,14 @@
1
- import"../../index-78da4g74.js";
2
1
  import"../../index-dsa676h8.js";
3
- import"../../index-gk6dq9ay.js";
4
- import"../../index-wdb5jhas.js";
5
- import"../../index-n9358ydy.js";
6
- import"../../index-hce3hbdg.js";
7
- import"../../index-d4at0q09.js";
2
+ import"../../index-ha1tv70k.js";
3
+ import"../../index-d1pdv8qc.js";
4
+ import"../../index-dm50x3by.js";
5
+ import"../../index-qj0sq69b.js";
6
+ import"../../index-b9mj31q7.js";
8
7
  import"../../index-yt1gg11x.js";
9
- import"../../index-84tp547a.js";
8
+ import"../../index-edpkm3k7.js";
10
9
  import {
11
10
  createToolInvoker2
12
- } from "../../index-3d2c45jn.js";
11
+ } from "../../index-yjx5jna7.js";
13
12
  export {
14
13
  createToolInvoker2 as createToolInvoker
15
14
  };
@@ -1,13 +1,12 @@
1
1
  import"../../index-7mjsb7zv.js";
2
- import"../../index-78da4g74.js";
3
2
  import"../../index-dsa676h8.js";
4
- import"../../index-gk6dq9ay.js";
5
- import"../../index-wdb5jhas.js";
6
- import"../../index-n9358ydy.js";
7
- import"../../index-hce3hbdg.js";
8
- import"../../index-d4at0q09.js";
3
+ import"../../index-ha1tv70k.js";
4
+ import"../../index-d1pdv8qc.js";
5
+ import"../../index-dm50x3by.js";
6
+ import"../../index-qj0sq69b.js";
7
+ import"../../index-b9mj31q7.js";
9
8
  import"../../index-yt1gg11x.js";
10
- import"../../index-84tp547a.js";
9
+ import"../../index-edpkm3k7.js";
11
10
  import"../../index-0x4mnwg5.js";
12
11
  import"../../index-werjqesf.js";
13
12
  import {
@@ -21,21 +20,21 @@ import {
21
20
  createMcpHandler2,
22
21
  createMcpHttpRoute2,
23
22
  createStdioMcpServer2
24
- } from "../../index-b4c9dpzm.js";
23
+ } from "../../index-252den5a.js";
25
24
  import {
26
25
  DEFAULT_PROCESS_SIGNALS,
27
26
  defaultSignalSource,
28
27
  reportSignalError,
29
28
  guardSignalCallback
30
29
  } from "../../index-3prvb42w.js";
31
- import"../../index-gs0jw0hy.js";
30
+ import"../../index-efbzm2se.js";
32
31
  import"../../index-a09r9ff0.js";
33
32
  import {
34
33
  MCP_CATALOG_META_KEY2,
35
34
  mcpCatalogMeta2,
36
35
  readMcpCatalogStamp2
37
36
  } from "../../index-5t4fpdct.js";
38
- import"../../index-baba8ehy.js";
37
+ import"../../index-bjrcbcn2.js";
39
38
  import"../../index-7csn6pva.js";
40
39
  // src/tools/mcp/stdio-signals.ts
41
40
  var bound = new WeakSet;
@@ -1,16 +1,15 @@
1
- import"../../index-gk6dq9ay.js";
2
- import"../../index-wdb5jhas.js";
3
- import"../../index-78da4g74.js";
1
+ import"../../index-ha1tv70k.js";
2
+ import"../../index-d1pdv8qc.js";
4
3
  import"../../index-dsa676h8.js";
5
- import"../../index-n9358ydy.js";
6
- import"../../index-hce3hbdg.js";
7
- import"../../index-d4at0q09.js";
4
+ import"../../index-dm50x3by.js";
5
+ import"../../index-qj0sq69b.js";
6
+ import"../../index-b9mj31q7.js";
8
7
  import"../../index-yt1gg11x.js";
9
- import"../../index-84tp547a.js";
8
+ import"../../index-edpkm3k7.js";
10
9
  import"../../index-werjqesf.js";
11
10
  import {
12
11
  createCli2
13
- } from "../../index-mcv7b2n0.js";
12
+ } from "../../index-63ctzjp4.js";
14
13
  import"../../index-0x4mnwg5.js";
15
14
  import"../../index-6kec3b14.js";
16
15
  import"../../index-gy9x38a2.js";
@@ -21,15 +20,15 @@ import {
21
20
  buildMcpServer2,
22
21
  createMcpHandler2,
23
22
  createStdioMcpServer2
24
- } from "../../index-b4c9dpzm.js";
25
- import"../../index-gs0jw0hy.js";
23
+ } from "../../index-252den5a.js";
24
+ import"../../index-efbzm2se.js";
26
25
  import"../../index-a09r9ff0.js";
27
26
  import {
28
27
  mountAgentTools2
29
- } from "../../index-q86qnzzf.js";
28
+ } from "../../index-54wp467c.js";
30
29
  import"../../index-rjs94dny.js";
31
30
  import"../../index-xrgn784x.js";
32
- import"../../index-baba8ehy.js";
31
+ import"../../index-bjrcbcn2.js";
33
32
  import"../../index-7csn6pva.js";
34
33
 
35
34
  // src/tools/toolkit.ts