stitchkit 0.126.0 → 0.127.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 (1235) hide show
  1. package/CHANGELOG.md +1636 -0
  2. package/README.md +12 -4
  3. package/dist/agent-executor/acp/scenarios.d.ts +4 -0
  4. package/dist/agent-executor/acp/scenarios.d.ts.map +1 -0
  5. package/dist/agent-executor/acp/v1-connect.d.ts +89 -0
  6. package/dist/agent-executor/acp/v1-connect.d.ts.map +1 -0
  7. package/dist/agent-executor/acp/v1-driver.d.ts +31 -0
  8. package/dist/agent-executor/acp/v1-driver.d.ts.map +1 -0
  9. package/dist/agent-executor/acp/v1-map.d.ts +41 -0
  10. package/dist/agent-executor/acp/v1-map.d.ts.map +1 -0
  11. package/dist/agent-executor/acp/v1-protocol.d.ts +270 -0
  12. package/dist/agent-executor/acp/v1-protocol.d.ts.map +1 -0
  13. package/dist/agent-executor/acp/v1-session.d.ts +22 -0
  14. package/dist/agent-executor/acp/v1-session.d.ts.map +1 -0
  15. package/dist/agent-executor/acp/v1-turn.d.ts +25 -0
  16. package/dist/agent-executor/acp/v1-turn.d.ts.map +1 -0
  17. package/dist/agent-executor/claude/classify.d.ts +54 -0
  18. package/dist/agent-executor/claude/classify.d.ts.map +1 -0
  19. package/dist/agent-executor/claude/cli-driver.d.ts +27 -0
  20. package/dist/agent-executor/claude/cli-driver.d.ts.map +1 -0
  21. package/dist/agent-executor/claude/limits.d.ts +8 -0
  22. package/dist/agent-executor/claude/limits.d.ts.map +1 -0
  23. package/dist/agent-executor/claude/protocol.d.ts +188 -0
  24. package/dist/agent-executor/claude/protocol.d.ts.map +1 -0
  25. package/dist/agent-executor/claude/scenarios.d.ts +4 -0
  26. package/dist/agent-executor/claude/scenarios.d.ts.map +1 -0
  27. package/dist/agent-executor/claude/session.d.ts +22 -0
  28. package/dist/agent-executor/claude/session.d.ts.map +1 -0
  29. package/dist/agent-executor/claude/transcript.d.ts +33 -0
  30. package/dist/agent-executor/claude/transcript.d.ts.map +1 -0
  31. package/dist/agent-executor/claude-sdk/driver.d.ts +31 -0
  32. package/dist/agent-executor/claude-sdk/driver.d.ts.map +1 -0
  33. package/dist/agent-executor/claude-sdk/session.d.ts +10 -0
  34. package/dist/agent-executor/claude-sdk/session.d.ts.map +1 -0
  35. package/dist/agent-executor/codex/classify.d.ts +28 -0
  36. package/dist/agent-executor/codex/classify.d.ts.map +1 -0
  37. package/dist/agent-executor/codex/driver.d.ts +23 -0
  38. package/dist/agent-executor/codex/driver.d.ts.map +1 -0
  39. package/dist/agent-executor/codex/limits.d.ts +4 -0
  40. package/dist/agent-executor/codex/limits.d.ts.map +1 -0
  41. package/dist/agent-executor/codex/protocol.d.ts +152 -0
  42. package/dist/agent-executor/codex/protocol.d.ts.map +1 -0
  43. package/dist/agent-executor/codex/scenarios.d.ts +4 -0
  44. package/dist/agent-executor/codex/scenarios.d.ts.map +1 -0
  45. package/dist/agent-executor/codex/session.d.ts +41 -0
  46. package/dist/agent-executor/codex/session.d.ts.map +1 -0
  47. package/dist/agent-executor/contract.d.ts +454 -0
  48. package/dist/agent-executor/contract.d.ts.map +1 -0
  49. package/dist/agent-executor/dispatch.d.ts +41 -0
  50. package/dist/agent-executor/dispatch.d.ts.map +1 -0
  51. package/dist/agent-executor/engine-process.d.ts +45 -0
  52. package/dist/agent-executor/engine-process.d.ts.map +1 -0
  53. package/dist/agent-executor/engine-requests.d.ts +63 -0
  54. package/dist/agent-executor/engine-requests.d.ts.map +1 -0
  55. package/dist/agent-executor/engine.d.ts +64 -0
  56. package/dist/agent-executor/engine.d.ts.map +1 -0
  57. package/dist/agent-executor/executor-contract.d.ts +387 -0
  58. package/dist/agent-executor/executor-contract.d.ts.map +1 -0
  59. package/dist/agent-executor/executor-machine.d.ts +50 -0
  60. package/dist/agent-executor/executor-machine.d.ts.map +1 -0
  61. package/dist/agent-executor/hello.d.ts +235 -0
  62. package/dist/agent-executor/hello.d.ts.map +1 -0
  63. package/dist/agent-executor/json-rpc-peer.d.ts +48 -0
  64. package/dist/agent-executor/json-rpc-peer.d.ts.map +1 -0
  65. package/dist/agent-executor/leases.d.ts +159 -0
  66. package/dist/agent-executor/leases.d.ts.map +1 -0
  67. package/dist/agent-executor/plan-limits.d.ts +25 -0
  68. package/dist/agent-executor/plan-limits.d.ts.map +1 -0
  69. package/dist/agent-executor/profile.d.ts +52 -0
  70. package/dist/agent-executor/profile.d.ts.map +1 -0
  71. package/dist/agent-executor/projection.d.ts +14 -0
  72. package/dist/agent-executor/projection.d.ts.map +1 -0
  73. package/dist/agent-executor/session-primitives.d.ts +72 -0
  74. package/dist/agent-executor/session-primitives.d.ts.map +1 -0
  75. package/dist/agent-executor/testing/conformance.d.ts +55 -0
  76. package/dist/agent-executor/testing/conformance.d.ts.map +1 -0
  77. package/dist/agent-executor/testing/fake-claude-engine.d.ts +18 -0
  78. package/dist/agent-executor/testing/fake-claude-engine.d.ts.map +1 -0
  79. package/dist/agent-executor/testing/fake-engine.d.ts +52 -0
  80. package/dist/agent-executor/testing/fake-engine.d.ts.map +1 -0
  81. package/dist/agent-executor/turn-phases.d.ts +10 -0
  82. package/dist/agent-executor/turn-phases.d.ts.map +1 -0
  83. package/dist/agent-executor/vocabulary.d.ts +353 -0
  84. package/dist/agent-executor/vocabulary.d.ts.map +1 -0
  85. package/dist/agent-parts/parts.d.ts +160 -0
  86. package/dist/agent-parts/parts.d.ts.map +1 -0
  87. package/dist/agent-runtime/agent-tool.d.ts +1 -1
  88. package/dist/agent-runtime/agent-tool.d.ts.map +1 -1
  89. package/dist/agent-runtime/archive-projection.d.ts +5 -0
  90. package/dist/agent-runtime/archive-projection.d.ts.map +1 -1
  91. package/dist/agent-runtime/branch-contract.d.ts +59 -2
  92. package/dist/agent-runtime/branch-contract.d.ts.map +1 -1
  93. package/dist/agent-runtime/branch-events.d.ts +7 -0
  94. package/dist/agent-runtime/branch-events.d.ts.map +1 -1
  95. package/dist/agent-runtime/branch-identities.d.ts +40 -6
  96. package/dist/agent-runtime/branch-identities.d.ts.map +1 -1
  97. package/dist/agent-runtime/branch-messages.d.ts +11 -29
  98. package/dist/agent-runtime/branch-messages.d.ts.map +1 -1
  99. package/dist/agent-runtime/branch-observations.d.ts +138 -28
  100. package/dist/agent-runtime/branch-observations.d.ts.map +1 -1
  101. package/dist/agent-runtime/branch-provider.d.ts +32 -51
  102. package/dist/agent-runtime/branch-provider.d.ts.map +1 -1
  103. package/dist/agent-runtime/branch-refusal.d.ts +60 -0
  104. package/dist/agent-runtime/branch-refusal.d.ts.map +1 -0
  105. package/dist/agent-runtime/branch-runtime-tools.d.ts +14 -0
  106. package/dist/agent-runtime/branch-runtime-tools.d.ts.map +1 -0
  107. package/dist/agent-runtime/branch-source.d.ts +7 -2
  108. package/dist/agent-runtime/branch-source.d.ts.map +1 -1
  109. package/dist/agent-runtime/branch-transitions.d.ts.map +1 -1
  110. package/dist/agent-runtime/browser-control-contract.d.ts +2 -2
  111. package/dist/agent-runtime/browser-controller.d.ts.map +1 -1
  112. package/dist/agent-runtime/child-blocking.d.ts +17 -6
  113. package/dist/agent-runtime/child-blocking.d.ts.map +1 -1
  114. package/dist/agent-runtime/child-budget-policy.d.ts +4 -9
  115. package/dist/agent-runtime/child-budget-policy.d.ts.map +1 -1
  116. package/dist/agent-runtime/child-tools.d.ts +19 -8
  117. package/dist/agent-runtime/child-tools.d.ts.map +1 -1
  118. package/dist/agent-runtime/children-contract.d.ts +84 -3
  119. package/dist/agent-runtime/children-contract.d.ts.map +1 -1
  120. package/dist/agent-runtime/children-control.d.ts +23 -2
  121. package/dist/agent-runtime/children-control.d.ts.map +1 -1
  122. package/dist/agent-runtime/children-spawn.d.ts +9 -0
  123. package/dist/agent-runtime/children-spawn.d.ts.map +1 -1
  124. package/dist/agent-runtime/children-state.d.ts +121 -19
  125. package/dist/agent-runtime/children-state.d.ts.map +1 -1
  126. package/dist/agent-runtime/children-usage.d.ts +10 -1
  127. package/dist/agent-runtime/children-usage.d.ts.map +1 -1
  128. package/dist/agent-runtime/children.d.ts +3 -3
  129. package/dist/agent-runtime/children.d.ts.map +1 -1
  130. package/dist/agent-runtime/{sandbox-coding.d.ts → coding-sandbox.d.ts} +2 -9
  131. package/dist/agent-runtime/coding-sandbox.d.ts.map +1 -0
  132. package/dist/agent-runtime/coding-shell-process.d.ts +2 -0
  133. package/dist/agent-runtime/coding-shell-process.d.ts.map +1 -1
  134. package/dist/agent-runtime/coding-tool-contract.d.ts +32 -1
  135. package/dist/agent-runtime/coding-tool-contract.d.ts.map +1 -1
  136. package/dist/agent-runtime/coding-tool-shell.d.ts.map +1 -1
  137. package/dist/agent-runtime/coding-tools.d.ts.map +1 -1
  138. package/dist/agent-runtime/compaction.d.ts.map +1 -1
  139. package/dist/agent-runtime/companion-host.d.ts +38 -0
  140. package/dist/agent-runtime/companion-host.d.ts.map +1 -0
  141. package/dist/agent-runtime/context-issue.d.ts +5 -0
  142. package/dist/agent-runtime/context-issue.d.ts.map +1 -0
  143. package/dist/agent-runtime/control-schema.d.ts +2 -2
  144. package/dist/agent-runtime/control-schema.d.ts.map +1 -1
  145. package/dist/agent-runtime/conversations.d.ts.map +1 -1
  146. package/dist/agent-runtime/coordinator.d.ts.map +1 -1
  147. package/dist/agent-runtime/deferred-tool-types.d.ts +17 -5
  148. package/dist/agent-runtime/deferred-tool-types.d.ts.map +1 -1
  149. package/dist/agent-runtime/deferred-tools-internal.d.ts +2 -0
  150. package/dist/agent-runtime/deferred-tools-internal.d.ts.map +1 -1
  151. package/dist/agent-runtime/deferred-tools.d.ts.map +1 -1
  152. package/dist/agent-runtime/event-durability.d.ts +8 -0
  153. package/dist/agent-runtime/event-durability.d.ts.map +1 -0
  154. package/dist/agent-runtime/event-schema.d.ts +13 -5
  155. package/dist/agent-runtime/event-schema.d.ts.map +1 -1
  156. package/dist/agent-runtime/event-search-postgres.d.ts +38 -0
  157. package/dist/agent-runtime/event-search-postgres.d.ts.map +1 -0
  158. package/dist/agent-runtime/event-search-terms.d.ts +37 -0
  159. package/dist/agent-runtime/event-search-terms.d.ts.map +1 -0
  160. package/dist/agent-runtime/event-search-tools.d.ts +64 -4
  161. package/dist/agent-runtime/event-search-tools.d.ts.map +1 -1
  162. package/dist/agent-runtime/event-search.d.ts +16 -3
  163. package/dist/agent-runtime/event-search.d.ts.map +1 -1
  164. package/dist/agent-runtime/fault-bench.d.ts.map +1 -1
  165. package/dist/agent-runtime/harness-control.d.ts +8 -0
  166. package/dist/agent-runtime/harness-control.d.ts.map +1 -1
  167. package/dist/agent-runtime/harness-realtime.d.ts +0 -2
  168. package/dist/agent-runtime/harness-realtime.d.ts.map +1 -1
  169. package/dist/agent-runtime/invocation-read.d.ts.map +1 -1
  170. package/dist/agent-runtime/invocation-schema.d.ts +23 -0
  171. package/dist/agent-runtime/invocation-schema.d.ts.map +1 -1
  172. package/dist/agent-runtime/invocation-spend.d.ts +9 -0
  173. package/dist/agent-runtime/invocation-spend.d.ts.map +1 -0
  174. package/dist/agent-runtime/invocations.d.ts.map +1 -1
  175. package/dist/agent-runtime/managed-tools.d.ts +2 -2
  176. package/dist/agent-runtime/managed-tools.d.ts.map +1 -1
  177. package/dist/agent-runtime/observability.d.ts +42 -4
  178. package/dist/agent-runtime/observability.d.ts.map +1 -1
  179. package/dist/agent-runtime/openrouter-admission.d.ts +81 -0
  180. package/dist/agent-runtime/openrouter-admission.d.ts.map +1 -0
  181. package/dist/agent-runtime/openrouter-catalog.d.ts +83 -0
  182. package/dist/agent-runtime/openrouter-catalog.d.ts.map +1 -0
  183. package/dist/agent-runtime/openrouter-models.d.ts +66 -0
  184. package/dist/agent-runtime/openrouter-models.d.ts.map +1 -0
  185. package/dist/agent-runtime/openrouter-options.d.ts +106 -0
  186. package/dist/agent-runtime/openrouter-options.d.ts.map +1 -0
  187. package/dist/agent-runtime/openrouter-route.d.ts +50 -0
  188. package/dist/agent-runtime/openrouter-route.d.ts.map +1 -0
  189. package/dist/agent-runtime/openrouter-spend.d.ts +24 -0
  190. package/dist/agent-runtime/openrouter-spend.d.ts.map +1 -0
  191. package/dist/agent-runtime/openrouter.d.ts +23 -2
  192. package/dist/agent-runtime/openrouter.d.ts.map +1 -1
  193. package/dist/agent-runtime/owned-provider-stream.d.ts.map +1 -1
  194. package/dist/agent-runtime/postgres-schema.d.ts +34 -0
  195. package/dist/agent-runtime/postgres-schema.d.ts.map +1 -0
  196. package/dist/agent-runtime/postgres-transactions.d.ts +54 -0
  197. package/dist/agent-runtime/postgres-transactions.d.ts.map +1 -0
  198. package/dist/agent-runtime/postgres.d.ts +72 -0
  199. package/dist/agent-runtime/postgres.d.ts.map +1 -0
  200. package/dist/agent-runtime/projections.d.ts +57 -17
  201. package/dist/agent-runtime/projections.d.ts.map +1 -1
  202. package/dist/agent-runtime/provider-journal.d.ts +57 -0
  203. package/dist/agent-runtime/provider-journal.d.ts.map +1 -1
  204. package/dist/agent-runtime/purge.d.ts.map +1 -1
  205. package/dist/agent-runtime/retry-policy.d.ts +6 -0
  206. package/dist/agent-runtime/retry-policy.d.ts.map +1 -1
  207. package/dist/agent-runtime/run-acquisition.d.ts.map +1 -1
  208. package/dist/agent-runtime/run-execution-state.d.ts +26 -2
  209. package/dist/agent-runtime/run-execution-state.d.ts.map +1 -1
  210. package/dist/agent-runtime/run-execution.d.ts.map +1 -1
  211. package/dist/agent-runtime/run-failure.d.ts.map +1 -1
  212. package/dist/agent-runtime/run-model-attempts.d.ts.map +1 -1
  213. package/dist/agent-runtime/run-provider-ledger.d.ts +2 -0
  214. package/dist/agent-runtime/run-provider-ledger.d.ts.map +1 -1
  215. package/dist/agent-runtime/run-step-barriers.d.ts +72 -0
  216. package/dist/agent-runtime/run-step-barriers.d.ts.map +1 -0
  217. package/dist/agent-runtime/run-step-spend.d.ts +319 -0
  218. package/dist/agent-runtime/run-step-spend.d.ts.map +1 -0
  219. package/dist/agent-runtime/run-stream-parts.d.ts +2 -0
  220. package/dist/agent-runtime/run-stream-parts.d.ts.map +1 -1
  221. package/dist/agent-runtime/{tool-progress.d.ts → run-tool-progress.d.ts} +1 -1
  222. package/dist/agent-runtime/run-tool-progress.d.ts.map +1 -0
  223. package/dist/agent-runtime/run-turn-preparation.d.ts +3 -1
  224. package/dist/agent-runtime/run-turn-preparation.d.ts.map +1 -1
  225. package/dist/agent-runtime/runtime-admission-gate.d.ts +0 -14
  226. package/dist/agent-runtime/runtime-admission-gate.d.ts.map +1 -1
  227. package/dist/agent-runtime/runtime-internals.d.ts +6 -0
  228. package/dist/agent-runtime/runtime-internals.d.ts.map +1 -1
  229. package/dist/agent-runtime/runtime-state.d.ts.map +1 -1
  230. package/dist/agent-runtime/runtime.d.ts +31 -2
  231. package/dist/agent-runtime/runtime.d.ts.map +1 -1
  232. package/dist/agent-runtime/sandbox-binding.d.ts +10 -0
  233. package/dist/agent-runtime/sandbox-binding.d.ts.map +1 -0
  234. package/dist/agent-runtime/sandbox-bubblewrap-storage.d.ts.map +1 -1
  235. package/dist/agent-runtime/sandbox-contract.d.ts +1 -1
  236. package/dist/agent-runtime/sandbox-contract.d.ts.map +1 -1
  237. package/dist/agent-runtime/sandbox.d.ts +5 -0
  238. package/dist/agent-runtime/sandbox.d.ts.map +1 -1
  239. package/dist/agent-runtime/schedule-contract.d.ts +3 -2
  240. package/dist/agent-runtime/schedule-contract.d.ts.map +1 -1
  241. package/dist/agent-runtime/schedule-dispatch.d.ts +3 -2
  242. package/dist/agent-runtime/schedule-dispatch.d.ts.map +1 -1
  243. package/dist/agent-runtime/schedule-records.d.ts +6 -6
  244. package/dist/agent-runtime/schedule-records.d.ts.map +1 -1
  245. package/dist/agent-runtime/schedule-tools.d.ts +19 -8
  246. package/dist/agent-runtime/schedule-tools.d.ts.map +1 -1
  247. package/dist/agent-runtime/schedules.d.ts +13 -3
  248. package/dist/agent-runtime/schedules.d.ts.map +1 -1
  249. package/dist/agent-runtime/schemas-message.d.ts +118 -0
  250. package/dist/agent-runtime/schemas-message.d.ts.map +1 -0
  251. package/dist/agent-runtime/schemas-provider.d.ts +8 -0
  252. package/dist/agent-runtime/schemas-provider.d.ts.map +1 -0
  253. package/dist/agent-runtime/schemas-records.d.ts +5 -0
  254. package/dist/agent-runtime/schemas-records.d.ts.map +1 -0
  255. package/dist/agent-runtime/schemas-run.d.ts +487 -0
  256. package/dist/agent-runtime/schemas-run.d.ts.map +1 -0
  257. package/dist/agent-runtime/schemas-usage.d.ts +129 -0
  258. package/dist/agent-runtime/schemas-usage.d.ts.map +1 -0
  259. package/dist/agent-runtime/schemas.d.ts +11 -886
  260. package/dist/agent-runtime/schemas.d.ts.map +1 -1
  261. package/dist/agent-runtime/spill.d.ts +9 -7
  262. package/dist/agent-runtime/spill.d.ts.map +1 -1
  263. package/dist/agent-runtime/sql-events.d.ts +6 -0
  264. package/dist/agent-runtime/sql-events.d.ts.map +1 -0
  265. package/dist/agent-runtime/sql-history.d.ts +8 -0
  266. package/dist/agent-runtime/sql-history.d.ts.map +1 -0
  267. package/dist/agent-runtime/sql-ledger.d.ts +5 -0
  268. package/dist/agent-runtime/sql-ledger.d.ts.map +1 -0
  269. package/dist/agent-runtime/sql-purge.d.ts +13 -0
  270. package/dist/agent-runtime/sql-purge.d.ts.map +1 -0
  271. package/dist/agent-runtime/sql-reads.d.ts +16 -0
  272. package/dist/agent-runtime/sql-reads.d.ts.map +1 -0
  273. package/dist/agent-runtime/{sqlite-rows.d.ts → sql-rows.d.ts} +24 -10
  274. package/dist/agent-runtime/sql-rows.d.ts.map +1 -0
  275. package/dist/agent-runtime/sql-session.d.ts +71 -0
  276. package/dist/agent-runtime/sql-session.d.ts.map +1 -0
  277. package/dist/agent-runtime/sqlite-bun.d.ts +1 -1
  278. package/dist/agent-runtime/sqlite-bun.d.ts.map +1 -1
  279. package/dist/agent-runtime/sqlite-node.d.ts +1 -1
  280. package/dist/agent-runtime/sqlite-node.d.ts.map +1 -1
  281. package/dist/agent-runtime/sqlite-purge.d.ts +2 -3
  282. package/dist/agent-runtime/sqlite-purge.d.ts.map +1 -1
  283. package/dist/agent-runtime/sqlite-schema.d.ts +1 -1
  284. package/dist/agent-runtime/sqlite-schema.d.ts.map +1 -1
  285. package/dist/agent-runtime/sqlite-transactions.d.ts +10 -6
  286. package/dist/agent-runtime/sqlite-transactions.d.ts.map +1 -1
  287. package/dist/agent-runtime/sqlite.d.ts +10 -29
  288. package/dist/agent-runtime/sqlite.d.ts.map +1 -1
  289. package/dist/agent-runtime/state-tools.d.ts +8 -4
  290. package/dist/agent-runtime/state-tools.d.ts.map +1 -1
  291. package/dist/agent-runtime/store-archive.d.ts.map +1 -1
  292. package/dist/agent-runtime/store-branch.d.ts +6 -1
  293. package/dist/agent-runtime/store-branch.d.ts.map +1 -1
  294. package/dist/agent-runtime/store-capabilities.d.ts +42 -0
  295. package/dist/agent-runtime/store-capabilities.d.ts.map +1 -0
  296. package/dist/agent-runtime/store-conformance-branch.d.ts +5 -2
  297. package/dist/agent-runtime/store-conformance-branch.d.ts.map +1 -1
  298. package/dist/agent-runtime/store-conformance-capabilities.d.ts +6 -0
  299. package/dist/agent-runtime/store-conformance-capabilities.d.ts.map +1 -0
  300. package/dist/agent-runtime/store-conformance-event-once.d.ts +12 -0
  301. package/dist/agent-runtime/store-conformance-event-once.d.ts.map +1 -0
  302. package/dist/agent-runtime/store-conformance-lifecycle.d.ts +20 -20
  303. package/dist/agent-runtime/store-conformance-seed.d.ts +8 -0
  304. package/dist/agent-runtime/store-conformance-seed.d.ts.map +1 -0
  305. package/dist/agent-runtime/store-conformance.d.ts +31 -8
  306. package/dist/agent-runtime/store-conformance.d.ts.map +1 -1
  307. package/dist/agent-runtime/store-create.d.ts +1 -1
  308. package/dist/agent-runtime/store-create.d.ts.map +1 -1
  309. package/dist/agent-runtime/store-driver-contract.d.ts +15 -8
  310. package/dist/agent-runtime/store-driver-contract.d.ts.map +1 -1
  311. package/dist/agent-runtime/store-event-once.d.ts.map +1 -1
  312. package/dist/agent-runtime/store-events.d.ts +114 -0
  313. package/dist/agent-runtime/store-events.d.ts.map +1 -1
  314. package/dist/agent-runtime/store-memory-archive.d.ts +2 -0
  315. package/dist/agent-runtime/store-memory-archive.d.ts.map +1 -1
  316. package/dist/agent-runtime/store-memory.d.ts +2 -2
  317. package/dist/agent-runtime/store-memory.d.ts.map +1 -1
  318. package/dist/agent-runtime/store-mutate.d.ts.map +1 -1
  319. package/dist/agent-runtime/store-reduce-shared.d.ts +2 -1
  320. package/dist/agent-runtime/store-reduce-shared.d.ts.map +1 -1
  321. package/dist/agent-runtime/store-reducer.d.ts.map +1 -1
  322. package/dist/agent-runtime/store-replay.d.ts.map +1 -1
  323. package/dist/agent-runtime/store.d.ts +15 -2
  324. package/dist/agent-runtime/store.d.ts.map +1 -1
  325. package/dist/agent-runtime/terminal-commit.d.ts +10 -10
  326. package/dist/application/admission-run.d.ts.map +1 -1
  327. package/dist/application/admission.d.ts.map +1 -1
  328. package/dist/application/change-subscription.d.ts.map +1 -1
  329. package/dist/application/decisions.d.ts.map +1 -1
  330. package/dist/application/diagnostic-journal-lock-format.d.ts +9 -0
  331. package/dist/application/diagnostic-journal-lock-format.d.ts.map +1 -0
  332. package/dist/application/diagnostic-journal-manager.d.ts.map +1 -1
  333. package/dist/application/directory-inbox-delivery.d.ts.map +1 -1
  334. package/dist/application/grammy-update-admission.d.ts.map +1 -1
  335. package/dist/application/health.d.ts.map +1 -1
  336. package/dist/application/kernel-admission.d.ts.map +1 -1
  337. package/dist/application/kernel-contract.d.ts.map +1 -1
  338. package/dist/application/kernel-restart.d.ts.map +1 -1
  339. package/dist/application/kernel-rollback.d.ts.map +1 -1
  340. package/dist/application/kernel-shutdown.d.ts.map +1 -1
  341. package/dist/application/kernel-state.d.ts.map +1 -1
  342. package/dist/application/notification-outbox-state.d.ts.map +1 -1
  343. package/dist/application/notification-outbox.d.ts +1 -1
  344. package/dist/application/notification-outbox.d.ts.map +1 -1
  345. package/dist/application/revision-signal.d.ts.map +1 -1
  346. package/dist/application/schedule-run.d.ts.map +1 -1
  347. package/dist/application/schedule.d.ts.map +1 -1
  348. package/dist/application/sqlite-migrations.d.ts +104 -0
  349. package/dist/application/sqlite-migrations.d.ts.map +1 -0
  350. package/dist/application/watch-hub-core.d.ts.map +1 -1
  351. package/dist/browser/bridge-errors.d.ts +24 -0
  352. package/dist/browser/bridge-errors.d.ts.map +1 -0
  353. package/dist/browser/bridge-fetch.d.ts +30 -0
  354. package/dist/browser/bridge-fetch.d.ts.map +1 -0
  355. package/dist/browser/bridge-inbound.d.ts +28 -0
  356. package/dist/browser/bridge-inbound.d.ts.map +1 -0
  357. package/dist/browser/cancellation.d.ts +10 -2
  358. package/dist/browser/cancellation.d.ts.map +1 -1
  359. package/dist/browser/chunked-upload.d.ts +1 -1
  360. package/dist/browser/chunked-upload.d.ts.map +1 -1
  361. package/dist/browser/client-call-arguments.d.ts +31 -0
  362. package/dist/browser/client-call-arguments.d.ts.map +1 -0
  363. package/dist/browser/client-executors.d.ts +6 -0
  364. package/dist/browser/client-executors.d.ts.map +1 -1
  365. package/dist/browser/client.d.ts +9 -0
  366. package/dist/browser/client.d.ts.map +1 -1
  367. package/dist/browser/http.d.ts +17 -2
  368. package/dist/browser/http.d.ts.map +1 -1
  369. package/dist/browser/realtime-client.d.ts +0 -5
  370. package/dist/browser/realtime-client.d.ts.map +1 -1
  371. package/dist/browser/session-credentials-storage.d.ts +48 -0
  372. package/dist/browser/session-credentials-storage.d.ts.map +1 -0
  373. package/dist/browser/session-credentials.d.ts +26 -5
  374. package/dist/browser/session-credentials.d.ts.map +1 -1
  375. package/dist/browser/session-refresh-policy.d.ts +124 -0
  376. package/dist/browser/session-refresh-policy.d.ts.map +1 -0
  377. package/dist/browser/session-refresh-timer.d.ts +30 -0
  378. package/dist/browser/session-refresh-timer.d.ts.map +1 -0
  379. package/dist/browser/session.d.ts.map +1 -1
  380. package/dist/browser/socket-io-connection.d.ts.map +1 -1
  381. package/dist/browser/socket-io-explicit-peer.d.ts +0 -1
  382. package/dist/browser/socket-io-explicit-peer.d.ts.map +1 -1
  383. package/dist/browser/stream.d.ts +1 -1
  384. package/dist/browser/stream.d.ts.map +1 -1
  385. package/dist/browser/upload-progress.d.ts +3 -0
  386. package/dist/browser/upload-progress.d.ts.map +1 -1
  387. package/dist/contract/bridge-envelope.d.ts +155 -0
  388. package/dist/contract/bridge-envelope.d.ts.map +1 -0
  389. package/dist/contract/define-validation.d.ts +2 -0
  390. package/dist/contract/define-validation.d.ts.map +1 -1
  391. package/dist/contract/define.d.ts +3 -0
  392. package/dist/contract/define.d.ts.map +1 -1
  393. package/dist/contract/errors.d.ts +4 -4
  394. package/dist/contract/errors.d.ts.map +1 -1
  395. package/dist/contract/normalize.d.ts +3 -1
  396. package/dist/contract/normalize.d.ts.map +1 -1
  397. package/dist/contract/operation-effect.d.ts +29 -0
  398. package/dist/contract/operation-effect.d.ts.map +1 -0
  399. package/dist/contract/runtime-context.d.ts +2 -0
  400. package/dist/contract/runtime-context.d.ts.map +1 -1
  401. package/dist/contract/tool-options.d.ts +7 -0
  402. package/dist/contract/tool-options.d.ts.map +1 -1
  403. package/dist/declaration/command.d.ts +26 -0
  404. package/dist/declaration/command.d.ts.map +1 -0
  405. package/dist/declaration/declaration.d.ts +4 -22
  406. package/dist/declaration/declaration.d.ts.map +1 -1
  407. package/dist/declaration/machine-names.d.ts +11 -0
  408. package/dist/declaration/machine-names.d.ts.map +1 -0
  409. package/dist/durability/effect.d.ts.map +1 -1
  410. package/dist/durability/engine.d.ts.map +1 -1
  411. package/dist/durability/events.d.ts +5 -8
  412. package/dist/durability/events.d.ts.map +1 -1
  413. package/dist/durability/parks.d.ts +0 -5
  414. package/dist/durability/parks.d.ts.map +1 -1
  415. package/dist/durability/scheduler.d.ts +5 -0
  416. package/dist/durability/scheduler.d.ts.map +1 -1
  417. package/dist/entrypoints/agent-executor/acp.d.ts +4 -0
  418. package/dist/entrypoints/agent-executor/acp.d.ts.map +1 -0
  419. package/dist/entrypoints/agent-executor/acp.js +910 -0
  420. package/dist/entrypoints/agent-executor/claude-sdk.d.ts +2 -0
  421. package/dist/entrypoints/agent-executor/claude-sdk.d.ts.map +1 -0
  422. package/dist/entrypoints/agent-executor/claude-sdk.js +309 -0
  423. package/dist/entrypoints/agent-executor/claude.d.ts +5 -0
  424. package/dist/entrypoints/agent-executor/claude.d.ts.map +1 -0
  425. package/dist/entrypoints/agent-executor/claude.js +403 -0
  426. package/dist/entrypoints/agent-executor/codex.d.ts +4 -0
  427. package/dist/entrypoints/agent-executor/codex.d.ts.map +1 -0
  428. package/dist/entrypoints/agent-executor/codex.js +798 -0
  429. package/dist/entrypoints/agent-executor/testing.d.ts +4 -0
  430. package/dist/entrypoints/agent-executor/testing.d.ts.map +1 -0
  431. package/dist/entrypoints/agent-executor/testing.js +375 -0
  432. package/dist/entrypoints/agent-executor.d.ts +15 -0
  433. package/dist/entrypoints/agent-executor.d.ts.map +1 -0
  434. package/dist/entrypoints/agent-executor.js +455 -0
  435. package/dist/entrypoints/agent-runtime/browser.d.ts +1 -0
  436. package/dist/entrypoints/agent-runtime/browser.d.ts.map +1 -1
  437. package/dist/entrypoints/agent-runtime/browser.js +60 -30
  438. package/dist/entrypoints/agent-runtime/coding-tools.js +9 -12
  439. package/dist/entrypoints/agent-runtime/harness.js +35 -22
  440. package/dist/entrypoints/agent-runtime/openrouter.d.ts +6 -0
  441. package/dist/entrypoints/agent-runtime/openrouter.d.ts.map +1 -1
  442. package/dist/entrypoints/agent-runtime/openrouter.js +675 -45
  443. package/dist/entrypoints/agent-runtime/postgres.d.ts +4 -0
  444. package/dist/entrypoints/agent-runtime/postgres.d.ts.map +1 -0
  445. package/dist/entrypoints/agent-runtime/postgres.js +330 -0
  446. package/dist/entrypoints/agent-runtime/realtime.js +46 -49
  447. package/dist/entrypoints/agent-runtime/sandbox.d.ts +3 -1
  448. package/dist/entrypoints/agent-runtime/sandbox.d.ts.map +1 -1
  449. package/dist/entrypoints/agent-runtime/sandbox.js +74 -67
  450. package/dist/entrypoints/agent-runtime/sqlite/bun.js +18 -18
  451. package/dist/entrypoints/agent-runtime/sqlite/node.js +18 -18
  452. package/dist/entrypoints/agent-runtime/testing.d.ts +1 -1
  453. package/dist/entrypoints/agent-runtime/testing.d.ts.map +1 -1
  454. package/dist/entrypoints/agent-runtime/testing.js +394 -95
  455. package/dist/entrypoints/agent-runtime.d.ts +21 -13
  456. package/dist/entrypoints/agent-runtime.d.ts.map +1 -1
  457. package/dist/entrypoints/agent-runtime.js +1280 -1086
  458. package/dist/entrypoints/application/diagnostic-journal.js +16 -11
  459. package/dist/entrypoints/application/directory-inbox.js +20 -14
  460. package/dist/entrypoints/application/grammy.js +11 -8
  461. package/dist/entrypoints/application/opentelemetry.js +3 -3
  462. package/dist/entrypoints/application.d.ts +4 -2
  463. package/dist/entrypoints/application.d.ts.map +1 -1
  464. package/dist/entrypoints/application.js +409 -108
  465. package/dist/entrypoints/bin/upgrade-cli.d.ts +0 -12
  466. package/dist/entrypoints/bin/upgrade-cli.d.ts.map +1 -1
  467. package/dist/entrypoints/bin/upgrade-cli.js +11 -7
  468. package/dist/entrypoints/cli/publish.js +10 -9
  469. package/dist/entrypoints/cli.d.ts +10 -3
  470. package/dist/entrypoints/cli.d.ts.map +1 -1
  471. package/dist/entrypoints/cli.js +91 -29
  472. package/dist/entrypoints/contract.d.ts +2 -1
  473. package/dist/entrypoints/contract.d.ts.map +1 -1
  474. package/dist/entrypoints/contract.js +13 -7
  475. package/dist/entrypoints/declaration.d.ts +2 -0
  476. package/dist/entrypoints/declaration.d.ts.map +1 -1
  477. package/dist/entrypoints/declaration.js +55 -44
  478. package/dist/entrypoints/files/packaging.js +8 -5
  479. package/dist/entrypoints/files.d.ts +5 -0
  480. package/dist/entrypoints/files.d.ts.map +1 -1
  481. package/dist/entrypoints/files.js +236 -47
  482. package/dist/entrypoints/geo.js +9 -4
  483. package/dist/entrypoints/google.js +14 -13
  484. package/dist/entrypoints/handler.d.ts +12 -0
  485. package/dist/entrypoints/handler.d.ts.map +1 -0
  486. package/dist/entrypoints/handler.js +350 -0
  487. package/dist/entrypoints/http.d.ts +4 -0
  488. package/dist/entrypoints/http.d.ts.map +1 -1
  489. package/dist/entrypoints/http.js +411 -5
  490. package/dist/entrypoints/index.d.ts +2 -0
  491. package/dist/entrypoints/index.d.ts.map +1 -1
  492. package/dist/entrypoints/index.js +664 -91
  493. package/dist/entrypoints/live.js +22 -12
  494. package/dist/entrypoints/node.d.ts +2 -1
  495. package/dist/entrypoints/node.d.ts.map +1 -1
  496. package/dist/entrypoints/node.js +34 -25
  497. package/dist/entrypoints/observability.d.ts +2 -0
  498. package/dist/entrypoints/observability.d.ts.map +1 -1
  499. package/dist/entrypoints/observability.js +205 -131
  500. package/dist/entrypoints/primitives.js +152 -14
  501. package/dist/entrypoints/process/owner-loss.js +2 -2
  502. package/dist/entrypoints/process.js +18 -92
  503. package/dist/entrypoints/react.js +6 -5
  504. package/dist/entrypoints/realtime.d.ts +1 -0
  505. package/dist/entrypoints/realtime.d.ts.map +1 -1
  506. package/dist/entrypoints/realtime.js +6 -3
  507. package/dist/entrypoints/release.js +4 -0
  508. package/dist/entrypoints/remote.js +7 -6
  509. package/dist/entrypoints/server.d.ts +3 -1
  510. package/dist/entrypoints/server.d.ts.map +1 -1
  511. package/dist/entrypoints/server.js +295 -194
  512. package/dist/entrypoints/service-host/macos.d.ts +16 -0
  513. package/dist/entrypoints/service-host/macos.d.ts.map +1 -0
  514. package/dist/entrypoints/service-host/macos.js +1998 -0
  515. package/dist/entrypoints/service-host.d.ts +23 -0
  516. package/dist/entrypoints/service-host.d.ts.map +1 -0
  517. package/dist/entrypoints/service-host.js +2544 -0
  518. package/dist/entrypoints/spend/testing.d.ts +2 -0
  519. package/dist/entrypoints/spend/testing.d.ts.map +1 -0
  520. package/dist/entrypoints/spend/testing.js +442 -0
  521. package/dist/entrypoints/spend.d.ts +8 -0
  522. package/dist/entrypoints/spend.d.ts.map +1 -0
  523. package/dist/entrypoints/spend.js +593 -0
  524. package/dist/entrypoints/sync/postgres.d.ts +12 -0
  525. package/dist/entrypoints/sync/postgres.d.ts.map +1 -0
  526. package/dist/entrypoints/sync/postgres.js +737 -0
  527. package/dist/entrypoints/sync.d.ts +12 -0
  528. package/dist/entrypoints/sync.d.ts.map +1 -0
  529. package/dist/entrypoints/sync.js +782 -0
  530. package/dist/entrypoints/telegram/grammy.js +5 -5
  531. package/dist/entrypoints/telegram/html.d.ts +2 -0
  532. package/dist/entrypoints/telegram/html.d.ts.map +1 -1
  533. package/dist/entrypoints/telegram/html.js +839 -2
  534. package/dist/entrypoints/telegram/screens.js +13 -15
  535. package/dist/entrypoints/telegram.d.ts +1 -1
  536. package/dist/entrypoints/telegram.d.ts.map +1 -1
  537. package/dist/entrypoints/telegram.js +286 -76
  538. package/dist/entrypoints/testing.js +33 -41
  539. package/dist/entrypoints/tools/agent.js +12 -9
  540. package/dist/entrypoints/tools/connections.js +664 -63
  541. package/dist/entrypoints/tools/contract.d.ts +2 -2
  542. package/dist/entrypoints/tools/contract.js +4 -1
  543. package/dist/entrypoints/tools/invoker.js +9 -7
  544. package/dist/entrypoints/tools/mcp.js +16 -13
  545. package/dist/entrypoints/tools/toolkit.js +21 -18
  546. package/dist/entrypoints/tools.d.ts +3 -1
  547. package/dist/entrypoints/tools.d.ts.map +1 -1
  548. package/dist/entrypoints/tools.js +105 -92
  549. package/dist/entrypoints/tracking/contract.js +2 -1
  550. package/dist/entrypoints/tracking/performance.js +4 -0
  551. package/dist/entrypoints/tracking.js +6 -1
  552. package/dist/entrypoints/voice.js +3 -3
  553. package/dist/entrypoints/xlsx.js +1 -1
  554. package/dist/files/boundary.d.ts.map +1 -1
  555. package/dist/files/chunk-spool.d.ts +27 -0
  556. package/dist/files/chunk-spool.d.ts.map +1 -1
  557. package/dist/files/directory-appearance.d.ts +44 -0
  558. package/dist/files/directory-appearance.d.ts.map +1 -0
  559. package/dist/files/file-io.d.ts.map +1 -1
  560. package/dist/files/file-stamp.d.ts +35 -0
  561. package/dist/files/file-stamp.d.ts.map +1 -0
  562. package/dist/files/json-file-reading.d.ts +37 -0
  563. package/dist/files/json-file-reading.d.ts.map +1 -0
  564. package/dist/files/native-packaging.d.ts.map +1 -1
  565. package/dist/files/polled-json.d.ts +121 -0
  566. package/dist/files/polled-json.d.ts.map +1 -0
  567. package/dist/files/regular-file.d.ts +125 -0
  568. package/dist/files/regular-file.d.ts.map +1 -0
  569. package/dist/geo/index.d.ts +2 -1
  570. package/dist/geo/index.d.ts.map +1 -1
  571. package/dist/geo/resolver.d.ts.map +1 -1
  572. package/dist/geo/types.d.ts +0 -1
  573. package/dist/geo/types.d.ts.map +1 -1
  574. package/dist/google/google.d.ts +6 -0
  575. package/dist/google/google.d.ts.map +1 -1
  576. package/dist/{index-w0eqdhyd.js → index-09f7w2qq.js} +6 -1
  577. package/dist/index-0djnptn8.js +501 -0
  578. package/dist/index-0hdm5sx6.js +1457 -0
  579. package/dist/{index-t05a2ry4.js → index-0p0s5hrj.js} +8 -14
  580. package/dist/{index-1c945ten.js → index-0r15pkjq.js} +1 -1
  581. package/dist/{index-v1swr26p.js → index-0tyt97nk.js} +2 -2
  582. package/dist/{index-332d0m9g.js → index-0x4mnwg5.js} +4 -0
  583. package/dist/index-118aebbg.js +48 -0
  584. package/dist/index-1q0n6zek.js +184 -0
  585. package/dist/index-27hck3z2.js +307 -0
  586. package/dist/index-2rf33y2h.js +77 -0
  587. package/dist/index-360j58vb.js +63 -0
  588. package/dist/{index-tt30h7mr.js → index-39n02e0q.js} +1 -1
  589. package/dist/index-3agqmmrg.js +42 -0
  590. package/dist/{index-n6hvd1r2.js → index-3b31z0pc.js} +22 -15
  591. package/dist/index-3djgv3ch.js +472 -0
  592. package/dist/{index-mfntvj58.js → index-3dq8466w.js} +1 -1
  593. package/dist/index-3gwp8ez6.js +200 -0
  594. package/dist/{index-x2d51zay.js → index-3ypvpkwr.js} +309 -345
  595. package/dist/index-4gk6k3zc.js +248 -0
  596. package/dist/index-4qvyhn23.js +40 -0
  597. package/dist/index-4s2w4g37.js +647 -0
  598. package/dist/index-4ynw5ktx.js +78 -0
  599. package/dist/index-5awtbyns.js +19 -0
  600. package/dist/{index-kxff9e9w.js → index-5e0zsbf7.js} +5 -4
  601. package/dist/{index-nz06qw5a.js → index-5jyjb4s0.js} +1 -1
  602. package/dist/{index-7zksb1ty.js → index-5ptwb6ka.js} +1 -1
  603. package/dist/{index-w3nv6kr8.js → index-5q0qpw3v.js} +54 -9
  604. package/dist/{index-mm89hd8v.js → index-5t4fpdct.js} +1 -1
  605. package/dist/{index-0v9xb8pz.js → index-5y7j383h.js} +5 -5
  606. package/dist/index-5zwac8ft.js +221 -0
  607. package/dist/{index-v62cpkx3.js → index-6g85s734.js} +1 -1
  608. package/dist/{index-sqc6ezrb.js → index-6kec3b14.js} +17 -4
  609. package/dist/{index-kqnd6a85.js → index-7416mhyh.js} +1 -1
  610. package/dist/{index-m0wsfmrc.js → index-7csn6pva.js} +37 -24
  611. package/dist/{index-dqpesdck.js → index-7grgs8cx.js} +25 -5
  612. package/dist/{index-jjvr9f15.js → index-7kfcb576.js} +129 -39
  613. package/dist/{index-cvjddnvd.js → index-7xp05h20.js} +19 -10
  614. package/dist/{index-48acz7z0.js → index-83n766x4.js} +91 -50
  615. package/dist/{index-ss67fxhj.js → index-877e9y8r.js} +7 -7
  616. package/dist/{index-aw6kx2e6.js → index-8gmmdz7k.js} +1 -1
  617. package/dist/{index-wt6rw7rf.js → index-8xr2eq99.js} +29 -21
  618. package/dist/{index-rz3z13e9.js → index-97q9kykw.js} +1 -1
  619. package/dist/index-97rp94ff.js +8 -0
  620. package/dist/{index-0w0hxp7n.js → index-9pv126eh.js} +3 -9
  621. package/dist/{index-x2rvpbtj.js → index-9wh98cpa.js} +110 -16
  622. package/dist/{index-egg0yp2j.js → index-9xr44d2g.js} +86 -210
  623. package/dist/{index-b2sey031.js → index-9y0afd5f.js} +24 -23
  624. package/dist/index-a725ayvz.js +405 -0
  625. package/dist/{index-nmaqxdx7.js → index-ac5rj3d4.js} +203 -90
  626. package/dist/{index-wqzw3qg9.js → index-agy5fqgf.js} +32 -13
  627. package/dist/index-ajmtxsky.js +193 -0
  628. package/dist/{index-ndjzbt2v.js → index-akf0xkrm.js} +4 -3
  629. package/dist/index-akfgymyr.js +8 -0
  630. package/dist/index-apv5xfef.js +13 -0
  631. package/dist/index-ax3wns1a.js +93 -0
  632. package/dist/{index-ft2wvst5.js → index-bbzvrq66.js} +1603 -342
  633. package/dist/index-bh4pmtr9.js +317 -0
  634. package/dist/{index-fa53vygr.js → index-bmaz3jzy.js} +3 -3
  635. package/dist/{index-8kzct1d6.js → index-bn2baakz.js} +143 -143
  636. package/dist/{index-m8ddk770.js → index-brhhaygm.js} +1 -1
  637. package/dist/index-caywx1c0.js +199 -0
  638. package/dist/index-cbhxhma2.js +90 -0
  639. package/dist/index-cfnmvcq8.js +11 -0
  640. package/dist/index-cv9b7fz2.js +42 -0
  641. package/dist/index-d4svrknj.js +156 -0
  642. package/dist/{index-a3z56mtn.js → index-d96c1n1q.js} +5 -3
  643. package/dist/{index-3ymcmpa9.js → index-dvd1qdwa.js} +33 -163
  644. package/dist/{index-v7rbjatr.js → index-dwa6pskj.js} +1837 -1151
  645. package/dist/{index-ne4j9998.js → index-e06z0tkb.js} +123 -94
  646. package/dist/{index-99nnsz39.js → index-en8e5zsj.js} +15 -135
  647. package/dist/index-fcw255hd.js +929 -0
  648. package/dist/{index-20hn8pbh.js → index-fmzg39a8.js} +1 -1
  649. package/dist/{index-fvd6pvw3.js → index-g1q7fwn9.js} +2 -2
  650. package/dist/index-g56ht6qf.js +98 -0
  651. package/dist/{index-f56ct5gb.js → index-gj1rjf78.js} +4 -3
  652. package/dist/{index-g6a3na27.js → index-gnjgkecx.js} +7 -3
  653. package/dist/index-hy4653g4.js +345 -0
  654. package/dist/index-j13gzgdv.js +403 -0
  655. package/dist/{index-pa9bhefy.js → index-j516jaaz.js} +37 -11
  656. package/dist/{index-t8jz0e20.js → index-j903yhp4.js} +30 -38
  657. package/dist/{index-9ypczvpj.js → index-jb4m241t.js} +2 -0
  658. package/dist/index-jrka9029.js +177 -0
  659. package/dist/{index-cjzaj7ev.js → index-jxtg307y.js} +23 -21
  660. package/dist/index-kmbpej2y.js +1152 -0
  661. package/dist/{index-bz9cmnqq.js → index-kt6dh1n6.js} +4 -4
  662. package/dist/index-ky3ardqn.js +80 -0
  663. package/dist/index-kyejf658.js +14 -0
  664. package/dist/{index-zyc64nbh.js → index-kynwa08q.js} +52 -47
  665. package/dist/index-kzavdze2.js +15 -0
  666. package/dist/{index-m200b8hs.js → index-mbd92r1w.js} +5 -3
  667. package/dist/index-mxt0wfjy.js +58 -0
  668. package/dist/{index-9cxxfkhb.js → index-n20tybgk.js} +14 -9
  669. package/dist/index-nbv44x0x.js +250 -0
  670. package/dist/index-ngwf1s3c.js +51 -0
  671. package/dist/{index-zfncctjp.js → index-nk0cy9g1.js} +5 -4
  672. package/dist/index-p1m9djt6.js +108 -0
  673. package/dist/{index-hs76yzt7.js → index-paff5y0r.js} +17 -11
  674. package/dist/{index-qaet40b2.js → index-prf6ayhf.js} +5 -7
  675. package/dist/{index-hkxgennw.js → index-ps3djm8d.js} +7 -1
  676. package/dist/{index-1v3k5zgx.js → index-qnzhmk2s.js} +528 -1129
  677. package/dist/{index-3bzk2645.js → index-r9kq5ark.js} +1 -1
  678. package/dist/{index-hkw233vx.js → index-rbd2rq3z.js} +2 -2
  679. package/dist/{index-r0xr7y4m.js → index-rhb33thr.js} +138 -33
  680. package/dist/{index-kffm4r8w.js → index-rj32hkkp.js} +2 -2
  681. package/dist/index-rptj3qnc.js +96 -0
  682. package/dist/{index-hqsbtvta.js → index-rpyn7geq.js} +11 -3
  683. package/dist/{index-m9hb9wnk.js → index-sfzfd2m2.js} +2 -2
  684. package/dist/{index-sqkttz7z.js → index-sv5svtq7.js} +1 -1
  685. package/dist/{index-srs8hj9c.js → index-sx3g49y2.js} +5 -1
  686. package/dist/{index-9mjrnqxs.js → index-t1a2jrg7.js} +21 -91
  687. package/dist/{index-a6w6mwda.js → index-tazm4dxf.js} +1 -1
  688. package/dist/{index-b51tzcgh.js → index-tf70nm22.js} +2 -2
  689. package/dist/index-ttexdtjj.js +28 -0
  690. package/dist/{index-103dp7fz.js → index-v37b2cd6.js} +1956 -3151
  691. package/dist/{index-0ndz5r8z.js → index-v59pxmf1.js} +17 -9
  692. package/dist/{index-rfkh44ss.js → index-vgytj9wp.js} +1 -1
  693. package/dist/{index-tnnmekgb.js → index-wa6h4tz6.js} +3 -3
  694. package/dist/{index-4efxzrht.js → index-wavv538x.js} +211 -196
  695. package/dist/{index-1szhrfsf.js → index-wbnpa8z6.js} +7 -5
  696. package/dist/index-werjqesf.js +43 -0
  697. package/dist/{index-7qyv50r4.js → index-wv8dqy7q.js} +2 -2
  698. package/dist/index-wz392jyz.js +10 -0
  699. package/dist/{index-1d7s7da0.js → index-x6sp5vpa.js} +36 -5
  700. package/dist/{index-bqzgaj57.js → index-x90w78yz.js} +183 -61
  701. package/dist/index-xgae0bn7.js +37 -0
  702. package/dist/index-xmr47znh.js +160 -0
  703. package/dist/{index-ftk3838x.js → index-xq4s9mka.js} +7 -2
  704. package/dist/{index-ww3gss55.js → index-xrgn784x.js} +1 -1
  705. package/dist/{index-fpwbskp2.js → index-xtby8rj3.js} +1 -1
  706. package/dist/index-xtkw9866.js +107 -0
  707. package/dist/{index-btjwc7xr.js → index-xypxnzhp.js} +15 -14
  708. package/dist/{index-yex7eg1v.js → index-y7sy1xdp.js} +6 -2
  709. package/dist/index-z4k0hqp9.js +476 -0
  710. package/dist/{index-a7ebd769.js → index-zwgwyvdt.js} +3 -3
  711. package/dist/internal/abort-error.d.ts +9 -0
  712. package/dist/internal/abort-error.d.ts.map +1 -0
  713. package/dist/internal/abort-race.d.ts +47 -4
  714. package/dist/internal/abort-race.d.ts.map +1 -1
  715. package/dist/internal/atomic-file.d.ts +19 -0
  716. package/dist/internal/atomic-file.d.ts.map +1 -1
  717. package/dist/internal/backoff.d.ts.map +1 -1
  718. package/dist/internal/bounded-body.d.ts +37 -1
  719. package/dist/internal/bounded-body.d.ts.map +1 -1
  720. package/dist/internal/bounded-file-read.d.ts +31 -15
  721. package/dist/internal/bounded-file-read.d.ts.map +1 -1
  722. package/dist/internal/bun-command.d.ts +11 -0
  723. package/dist/internal/bun-command.d.ts.map +1 -1
  724. package/dist/internal/channel.d.ts.map +1 -1
  725. package/dist/internal/darwin-binding-error.d.ts.map +1 -1
  726. package/dist/internal/darwin-binding.d.ts +10 -0
  727. package/dist/internal/darwin-binding.d.ts.map +1 -1
  728. package/dist/internal/deadline.d.ts +22 -2
  729. package/dist/internal/deadline.d.ts.map +1 -1
  730. package/dist/internal/exclusive-lock-owner.d.ts +20 -1
  731. package/dist/internal/exclusive-lock-owner.d.ts.map +1 -1
  732. package/dist/internal/exclusive-lock-read.d.ts +2 -0
  733. package/dist/internal/exclusive-lock-read.d.ts.map +1 -1
  734. package/dist/internal/exclusive-lock.d.ts +26 -0
  735. package/dist/internal/exclusive-lock.d.ts.map +1 -1
  736. package/dist/internal/file-observation.d.ts +49 -0
  737. package/dist/internal/file-observation.d.ts.map +1 -1
  738. package/dist/internal/json-response.d.ts +10 -0
  739. package/dist/internal/json-response.d.ts.map +1 -0
  740. package/dist/internal/open-descriptors.d.ts +5 -0
  741. package/dist/internal/open-descriptors.d.ts.map +1 -1
  742. package/dist/internal/optional-peer.d.ts.map +1 -1
  743. package/dist/internal/pinned-http.d.ts.map +1 -1
  744. package/dist/internal/positive-integer.d.ts +14 -6
  745. package/dist/internal/positive-integer.d.ts.map +1 -1
  746. package/dist/internal/postgres-query.d.ts +16 -0
  747. package/dist/internal/postgres-query.d.ts.map +1 -0
  748. package/dist/internal/process-identity.d.ts +21 -1
  749. package/dist/internal/process-identity.d.ts.map +1 -1
  750. package/dist/internal/process-instance.d.ts +6 -0
  751. package/dist/internal/process-instance.d.ts.map +1 -1
  752. package/dist/internal/request.d.ts +4 -0
  753. package/dist/internal/request.d.ts.map +1 -1
  754. package/dist/internal/secret-equal.d.ts +11 -0
  755. package/dist/internal/secret-equal.d.ts.map +1 -0
  756. package/dist/internal/secure-fetch.d.ts.map +1 -1
  757. package/dist/internal/sqlite.d.ts +8 -0
  758. package/dist/internal/sqlite.d.ts.map +1 -1
  759. package/dist/internal/timers.d.ts +20 -0
  760. package/dist/internal/timers.d.ts.map +1 -1
  761. package/dist/internal/typed.d.ts +11 -0
  762. package/dist/internal/typed.d.ts.map +1 -1
  763. package/dist/internal/unix-client-error.d.ts +21 -0
  764. package/dist/internal/unix-client-error.d.ts.map +1 -0
  765. package/dist/internal/unix-socket-lock.d.ts +23 -0
  766. package/dist/internal/unix-socket-lock.d.ts.map +1 -0
  767. package/dist/internal/unix-socket.d.ts +60 -0
  768. package/dist/internal/unix-socket.d.ts.map +1 -1
  769. package/dist/internal/upgrade-affects.d.ts +3 -3
  770. package/dist/internal/upgrade-affects.d.ts.map +1 -1
  771. package/dist/internal/upgrade-plan.d.ts.map +1 -1
  772. package/dist/json-schema/dialect.d.ts +0 -6
  773. package/dist/json-schema/dialect.d.ts.map +1 -1
  774. package/dist/json-schema/keywords.d.ts +116 -0
  775. package/dist/json-schema/keywords.d.ts.map +1 -0
  776. package/dist/json-schema/string-format.d.ts.map +1 -1
  777. package/dist/live/events.d.ts.map +1 -1
  778. package/dist/live/watch-client.d.ts.map +1 -1
  779. package/dist/observability/bounded-logger.d.ts +3 -0
  780. package/dist/observability/bounded-logger.d.ts.map +1 -1
  781. package/dist/observability/bounded-sink.d.ts.map +1 -1
  782. package/dist/observability/context.d.ts +12 -2
  783. package/dist/observability/context.d.ts.map +1 -1
  784. package/dist/observability/event-loop-delay.d.ts +62 -0
  785. package/dist/observability/event-loop-delay.d.ts.map +1 -0
  786. package/dist/observability/json-logger.d.ts.map +1 -1
  787. package/dist/observability/log-repeat.d.ts +44 -0
  788. package/dist/observability/log-repeat.d.ts.map +1 -0
  789. package/dist/observability/spool-core.d.ts +95 -0
  790. package/dist/observability/spool-core.d.ts.map +1 -0
  791. package/dist/observability/spool-file.d.ts +46 -0
  792. package/dist/observability/spool-file.d.ts.map +1 -0
  793. package/dist/observability/spool.d.ts +14 -8
  794. package/dist/observability/spool.d.ts.map +1 -1
  795. package/dist/observability/trace.d.ts.map +1 -1
  796. package/dist/observability/work.d.ts.map +1 -1
  797. package/dist/primitives/index.d.ts +1 -0
  798. package/dist/primitives/index.d.ts.map +1 -1
  799. package/dist/primitives/order-key.d.ts +37 -0
  800. package/dist/primitives/order-key.d.ts.map +1 -0
  801. package/dist/process/bun-child.d.ts.map +1 -1
  802. package/dist/process/command-owner.d.ts.map +1 -1
  803. package/dist/process/contract.d.ts +4 -3
  804. package/dist/process/contract.d.ts.map +1 -1
  805. package/dist/process/group-presence.d.ts.map +1 -1
  806. package/dist/process/group.d.ts +5 -1
  807. package/dist/process/group.d.ts.map +1 -1
  808. package/dist/process/launch.d.ts +5 -3
  809. package/dist/process/launch.d.ts.map +1 -1
  810. package/dist/process/owner-loss-guard.d.ts.map +1 -1
  811. package/dist/react/cache-bridge.d.ts.map +1 -1
  812. package/dist/release/watcher.d.ts.map +1 -1
  813. package/dist/server/bridge-host.d.ts +51 -0
  814. package/dist/server/bridge-host.d.ts.map +1 -0
  815. package/dist/server/bun.d.ts +4 -4
  816. package/dist/server/bun.d.ts.map +1 -1
  817. package/dist/server/context-contribution.d.ts.map +1 -1
  818. package/dist/server/contract-method.d.ts.map +1 -1
  819. package/dist/server/create.d.ts +1 -0
  820. package/dist/server/create.d.ts.map +1 -1
  821. package/dist/server/endpoint-dispatch.d.ts.map +1 -1
  822. package/dist/server/endpoint-response.d.ts.map +1 -1
  823. package/dist/server/error-dispatch.d.ts +2 -0
  824. package/dist/server/error-dispatch.d.ts.map +1 -1
  825. package/dist/server/error-hook.d.ts +2 -0
  826. package/dist/server/error-hook.d.ts.map +1 -1
  827. package/dist/server/handler-state.d.ts +13 -2
  828. package/dist/server/handler-state.d.ts.map +1 -1
  829. package/dist/server/implement.d.ts +1 -0
  830. package/dist/server/implement.d.ts.map +1 -1
  831. package/dist/server/local-host.d.ts +47 -0
  832. package/dist/server/local-host.d.ts.map +1 -0
  833. package/dist/server/logger.d.ts +20 -3
  834. package/dist/server/logger.d.ts.map +1 -1
  835. package/dist/server/logging.d.ts +2 -1
  836. package/dist/server/logging.d.ts.map +1 -1
  837. package/dist/server/middleware/cors.d.ts +1 -0
  838. package/dist/server/middleware/cors.d.ts.map +1 -1
  839. package/dist/server/middleware/signed-link.d.ts +42 -0
  840. package/dist/server/middleware/signed-link.d.ts.map +1 -0
  841. package/dist/server/multipart-reader.d.ts +3 -1
  842. package/dist/server/multipart-reader.d.ts.map +1 -1
  843. package/dist/server/multipart.d.ts.map +1 -1
  844. package/dist/server/oauth/cimd.d.ts.map +1 -1
  845. package/dist/server/oauth/endpoints.d.ts.map +1 -1
  846. package/dist/server/openapi.d.ts.map +1 -1
  847. package/dist/server/protocol-outcome.d.ts +17 -0
  848. package/dist/server/protocol-outcome.d.ts.map +1 -0
  849. package/dist/server/raw.d.ts.map +1 -1
  850. package/dist/server/request-completion.d.ts +3 -1
  851. package/dist/server/request-completion.d.ts.map +1 -1
  852. package/dist/server/shutdown.d.ts.map +1 -1
  853. package/dist/server/socket-io-config.d.ts +1 -1
  854. package/dist/server/socket-io-config.d.ts.map +1 -1
  855. package/dist/server/streaming-route.d.ts.map +1 -1
  856. package/dist/server/types.d.ts +13 -10
  857. package/dist/server/types.d.ts.map +1 -1
  858. package/dist/server/unix-client-body.d.ts +4 -1
  859. package/dist/server/unix-client-body.d.ts.map +1 -1
  860. package/dist/server/unix-client-bun.d.ts.map +1 -1
  861. package/dist/server/unix-client.d.ts +1 -1
  862. package/dist/server/unix-client.d.ts.map +1 -1
  863. package/dist/service-host/artifact-activation.d.ts +58 -0
  864. package/dist/service-host/artifact-activation.d.ts.map +1 -0
  865. package/dist/service-host/artifact-manifest.d.ts +68 -0
  866. package/dist/service-host/artifact-manifest.d.ts.map +1 -0
  867. package/dist/service-host/artifact.d.ts +43 -0
  868. package/dist/service-host/artifact.d.ts.map +1 -0
  869. package/dist/service-host/config-reloader-contract.d.ts +66 -0
  870. package/dist/service-host/config-reloader-contract.d.ts.map +1 -0
  871. package/dist/service-host/config-reloader-helpers.d.ts +32 -0
  872. package/dist/service-host/config-reloader-helpers.d.ts.map +1 -0
  873. package/dist/service-host/config-reloader-source.d.ts +47 -0
  874. package/dist/service-host/config-reloader-source.d.ts.map +1 -0
  875. package/dist/service-host/config-reloader.d.ts +6 -0
  876. package/dist/service-host/config-reloader.d.ts.map +1 -0
  877. package/dist/service-host/host-adapter.d.ts +72 -0
  878. package/dist/service-host/host-adapter.d.ts.map +1 -0
  879. package/dist/service-host/identity-unix-socket.d.ts +101 -0
  880. package/dist/service-host/identity-unix-socket.d.ts.map +1 -0
  881. package/dist/service-host/identity.d.ts +117 -0
  882. package/dist/service-host/identity.d.ts.map +1 -0
  883. package/dist/service-host/launchd-plist.d.ts +77 -0
  884. package/dist/service-host/launchd-plist.d.ts.map +1 -0
  885. package/dist/service-host/launchd-render.d.ts +91 -0
  886. package/dist/service-host/launchd-render.d.ts.map +1 -0
  887. package/dist/service-host/launchd.d.ts +82 -0
  888. package/dist/service-host/launchd.d.ts.map +1 -0
  889. package/dist/service-host/macos/bundle-plist.d.ts +50 -0
  890. package/dist/service-host/macos/bundle-plist.d.ts.map +1 -0
  891. package/dist/service-host/macos/bundle.d.ts +66 -0
  892. package/dist/service-host/macos/bundle.d.ts.map +1 -0
  893. package/dist/service-host/macos/codesign.d.ts +95 -0
  894. package/dist/service-host/macos/codesign.d.ts.map +1 -0
  895. package/dist/service-host/macos/icon.d.ts +93 -0
  896. package/dist/service-host/macos/icon.d.ts.map +1 -0
  897. package/dist/service-host/macos/launch-services.d.ts +88 -0
  898. package/dist/service-host/macos/launch-services.d.ts.map +1 -0
  899. package/dist/service-host/macos/launcher.d.ts +59 -0
  900. package/dist/service-host/macos/launcher.d.ts.map +1 -0
  901. package/dist/service-host/macos/responsibility.d.ts +90 -0
  902. package/dist/service-host/macos/responsibility.d.ts.map +1 -0
  903. package/dist/service-host/macos/runner.d.ts +69 -0
  904. package/dist/service-host/macos/runner.d.ts.map +1 -0
  905. package/dist/service-host/plist-xml.d.ts +48 -0
  906. package/dist/service-host/plist-xml.d.ts.map +1 -0
  907. package/dist/service-host/process-evidence.d.ts +17 -0
  908. package/dist/service-host/process-evidence.d.ts.map +1 -0
  909. package/dist/service-host/systemd-inspect.d.ts +126 -0
  910. package/dist/service-host/systemd-inspect.d.ts.map +1 -0
  911. package/dist/service-host/systemd-links.d.ts +23 -0
  912. package/dist/service-host/systemd-links.d.ts.map +1 -0
  913. package/dist/service-host/systemd-render.d.ts +93 -0
  914. package/dist/service-host/systemd-render.d.ts.map +1 -0
  915. package/dist/service-host/systemd.d.ts +50 -0
  916. package/dist/service-host/systemd.d.ts.map +1 -0
  917. package/dist/spend/attribution.d.ts +17 -0
  918. package/dist/spend/attribution.d.ts.map +1 -0
  919. package/dist/spend/coverage-guard.d.ts +60 -0
  920. package/dist/spend/coverage-guard.d.ts.map +1 -0
  921. package/dist/spend/coverage-lexer.d.ts +20 -0
  922. package/dist/spend/coverage-lexer.d.ts.map +1 -0
  923. package/dist/spend/facts.d.ts +23 -0
  924. package/dist/spend/facts.d.ts.map +1 -0
  925. package/dist/spend/gateway-stream.d.ts +25 -0
  926. package/dist/spend/gateway-stream.d.ts.map +1 -0
  927. package/dist/spend/gateway.d.ts +64 -0
  928. package/dist/spend/gateway.d.ts.map +1 -0
  929. package/dist/spend/receipt-merge.d.ts +13 -0
  930. package/dist/spend/receipt-merge.d.ts.map +1 -0
  931. package/dist/spend/receipt-spool.d.ts +35 -0
  932. package/dist/spend/receipt-spool.d.ts.map +1 -0
  933. package/dist/spend/reconcile.d.ts +45 -0
  934. package/dist/spend/reconcile.d.ts.map +1 -0
  935. package/dist/spend/schemas.d.ts +249 -0
  936. package/dist/spend/schemas.d.ts.map +1 -0
  937. package/dist/sync/outbox.d.ts +131 -0
  938. package/dist/sync/outbox.d.ts.map +1 -0
  939. package/dist/sync/overlay.d.ts +59 -0
  940. package/dist/sync/overlay.d.ts.map +1 -0
  941. package/dist/sync/protocol.d.ts +132 -0
  942. package/dist/sync/protocol.d.ts.map +1 -0
  943. package/dist/sync/server-store-check.d.ts +10 -0
  944. package/dist/sync/server-store-check.d.ts.map +1 -0
  945. package/dist/sync/server-store-memory.d.ts +14 -0
  946. package/dist/sync/server-store-memory.d.ts.map +1 -0
  947. package/dist/sync/server-store-postgres.d.ts +25 -0
  948. package/dist/sync/server-store-postgres.d.ts.map +1 -0
  949. package/dist/sync/server-store.d.ts +139 -0
  950. package/dist/sync/server-store.d.ts.map +1 -0
  951. package/dist/sync/session-machine.d.ts +79 -0
  952. package/dist/sync/session-machine.d.ts.map +1 -0
  953. package/dist/sync/session-snapshot.d.ts +19 -0
  954. package/dist/sync/session-snapshot.d.ts.map +1 -0
  955. package/dist/sync/session-steps.d.ts +15 -0
  956. package/dist/sync/session-steps.d.ts.map +1 -0
  957. package/dist/sync/session.d.ts +142 -0
  958. package/dist/sync/session.d.ts.map +1 -0
  959. package/dist/sync/tombstones.d.ts +53 -0
  960. package/dist/sync/tombstones.d.ts.map +1 -0
  961. package/dist/telegram/bot-api.d.ts.map +1 -1
  962. package/dist/telegram/broadcast-failure.d.ts.map +1 -1
  963. package/dist/telegram/budget-transformer.d.ts.map +1 -1
  964. package/dist/telegram/crypto.d.ts +2 -10
  965. package/dist/telegram/crypto.d.ts.map +1 -1
  966. package/dist/telegram/html/markdown-inline.d.ts +19 -0
  967. package/dist/telegram/html/markdown-inline.d.ts.map +1 -0
  968. package/dist/telegram/html/markdown-lines.d.ts +51 -0
  969. package/dist/telegram/html/markdown-lines.d.ts.map +1 -0
  970. package/dist/telegram/html/markdown-split.d.ts +49 -0
  971. package/dist/telegram/html/markdown-split.d.ts.map +1 -0
  972. package/dist/telegram/html/markdown.d.ts +14 -0
  973. package/dist/telegram/html/markdown.d.ts.map +1 -0
  974. package/dist/telegram/html/nodes.d.ts +26 -4
  975. package/dist/telegram/html/nodes.d.ts.map +1 -1
  976. package/dist/telegram/html/parse.d.ts.map +1 -1
  977. package/dist/telegram/html/render.d.ts.map +1 -1
  978. package/dist/telegram/init-data.d.ts.map +1 -1
  979. package/dist/telegram/local-files.d.ts.map +1 -1
  980. package/dist/telegram/operator-channel.d.ts +15 -2
  981. package/dist/telegram/operator-channel.d.ts.map +1 -1
  982. package/dist/telegram/outbound-budget.d.ts.map +1 -1
  983. package/dist/telegram/outbound-cost.d.ts +9 -1
  984. package/dist/telegram/outbound-cost.d.ts.map +1 -1
  985. package/dist/telegram/outbound-queue.d.ts +2 -1
  986. package/dist/telegram/outbound-queue.d.ts.map +1 -1
  987. package/dist/telegram/screens/outcome.d.ts.map +1 -1
  988. package/dist/telegram/send-failure.d.ts.map +1 -1
  989. package/dist/telegram/transport-connect.d.ts.map +1 -1
  990. package/dist/telegram/transport.d.ts.map +1 -1
  991. package/dist/telegram/update-intake.d.ts.map +1 -1
  992. package/dist/telegram/update-store-postgres.d.ts +2 -2
  993. package/dist/telegram/update-store-postgres.d.ts.map +1 -1
  994. package/dist/telegram/webhook.d.ts.map +1 -1
  995. package/dist/testing/managed-resource-conformance.d.ts.map +1 -1
  996. package/dist/testing/surface-conformance.d.ts.map +1 -1
  997. package/dist/testing/surface-manifest.d.ts +2 -0
  998. package/dist/testing/surface-manifest.d.ts.map +1 -1
  999. package/dist/tools/access.d.ts +34 -0
  1000. package/dist/tools/access.d.ts.map +1 -0
  1001. package/dist/tools/agent.d.ts +14 -6
  1002. package/dist/tools/agent.d.ts.map +1 -1
  1003. package/dist/tools/cli/args-classify.d.ts +154 -0
  1004. package/dist/tools/cli/args-classify.d.ts.map +1 -0
  1005. package/dist/tools/cli/args-fields.d.ts +14 -7
  1006. package/dist/tools/cli/args-fields.d.ts.map +1 -1
  1007. package/dist/tools/cli/args-json.d.ts +1 -1
  1008. package/dist/tools/cli/args-json.d.ts.map +1 -1
  1009. package/dist/tools/cli/args-route.d.ts +4 -48
  1010. package/dist/tools/cli/args-route.d.ts.map +1 -1
  1011. package/dist/tools/cli/args-scan.d.ts +70 -0
  1012. package/dist/tools/cli/args-scan.d.ts.map +1 -0
  1013. package/dist/tools/cli/args-tokens.d.ts +2 -1
  1014. package/dist/tools/cli/args-tokens.d.ts.map +1 -1
  1015. package/dist/tools/cli/args.d.ts +31 -19
  1016. package/dist/tools/cli/args.d.ts.map +1 -1
  1017. package/dist/tools/cli/checkpoint.d.ts.map +1 -1
  1018. package/dist/tools/cli/command-shape.d.ts +5 -0
  1019. package/dist/tools/cli/command-shape.d.ts.map +1 -1
  1020. package/dist/tools/cli/command.d.ts +57 -2
  1021. package/dist/tools/cli/command.d.ts.map +1 -1
  1022. package/dist/tools/cli/config.d.ts +15 -58
  1023. package/dist/tools/cli/config.d.ts.map +1 -1
  1024. package/dist/tools/cli/create-cli.d.ts +7 -3
  1025. package/dist/tools/cli/create-cli.d.ts.map +1 -1
  1026. package/dist/tools/cli/format.d.ts.map +1 -1
  1027. package/dist/tools/cli/help.d.ts.map +1 -1
  1028. package/dist/tools/cli/invoke.d.ts +70 -20
  1029. package/dist/tools/cli/invoke.d.ts.map +1 -1
  1030. package/dist/tools/cli/io.d.ts.map +1 -1
  1031. package/dist/tools/cli/managed-surface.d.ts.map +1 -1
  1032. package/dist/tools/cli/notices.d.ts.map +1 -1
  1033. package/dist/tools/cli/policy.d.ts +66 -10
  1034. package/dist/tools/cli/policy.d.ts.map +1 -1
  1035. package/dist/tools/cli/prepare.d.ts +5 -4
  1036. package/dist/tools/cli/prepare.d.ts.map +1 -1
  1037. package/dist/tools/cli/run-managed.d.ts.map +1 -1
  1038. package/dist/tools/cli/run-native.d.ts.map +1 -1
  1039. package/dist/tools/cli/run-stream.d.ts.map +1 -1
  1040. package/dist/tools/cli/runner.d.ts +28 -0
  1041. package/dist/tools/cli/runner.d.ts.map +1 -0
  1042. package/dist/tools/cli/session.d.ts +12 -6
  1043. package/dist/tools/cli/session.d.ts.map +1 -1
  1044. package/dist/tools/cli/stream-surface.d.ts.map +1 -1
  1045. package/dist/tools/cli/stream.d.ts.map +1 -1
  1046. package/dist/tools/cli/unavailable.d.ts +2 -0
  1047. package/dist/tools/cli/unavailable.d.ts.map +1 -1
  1048. package/dist/tools/cli/unix-outcome.d.ts +8 -0
  1049. package/dist/tools/cli/unix-outcome.d.ts.map +1 -0
  1050. package/dist/tools/cli/update.d.ts.map +1 -1
  1051. package/dist/tools/cli/view-columns.d.ts +18 -0
  1052. package/dist/tools/cli/view-columns.d.ts.map +1 -0
  1053. package/dist/tools/cli/view.d.ts.map +1 -1
  1054. package/dist/tools/connections/define.d.ts.map +1 -1
  1055. package/dist/tools/connections/foreign-schema-join.d.ts +28 -0
  1056. package/dist/tools/connections/foreign-schema-join.d.ts.map +1 -0
  1057. package/dist/tools/connections/foreign-schema.d.ts +9 -0
  1058. package/dist/tools/connections/foreign-schema.d.ts.map +1 -0
  1059. package/dist/tools/connections/limits.d.ts +1 -1
  1060. package/dist/tools/connections/limits.d.ts.map +1 -1
  1061. package/dist/tools/connections/mcp-client.d.ts.map +1 -1
  1062. package/dist/tools/connections/mcp.d.ts.map +1 -1
  1063. package/dist/tools/connections/openapi.d.ts.map +1 -1
  1064. package/dist/tools/connections/runtime.d.ts +18 -6
  1065. package/dist/tools/connections/runtime.d.ts.map +1 -1
  1066. package/dist/tools/connections/sse-session.d.ts.map +1 -1
  1067. package/dist/tools/connections/types.d.ts +12 -2
  1068. package/dist/tools/connections/types.d.ts.map +1 -1
  1069. package/dist/tools/execute.d.ts.map +1 -1
  1070. package/dist/tools/internal/expose.d.ts +6 -0
  1071. package/dist/tools/internal/expose.d.ts.map +1 -0
  1072. package/dist/tools/internal/json-projection.d.ts +17 -0
  1073. package/dist/tools/internal/json-projection.d.ts.map +1 -0
  1074. package/dist/tools/internal/surface-projector.d.ts +18 -4
  1075. package/dist/tools/internal/surface-projector.d.ts.map +1 -1
  1076. package/dist/tools/invoker.d.ts +9 -2
  1077. package/dist/tools/invoker.d.ts.map +1 -1
  1078. package/dist/tools/lifecycle.d.ts +8 -2
  1079. package/dist/tools/lifecycle.d.ts.map +1 -1
  1080. package/dist/tools/list-names.d.ts +1 -1
  1081. package/dist/tools/list-names.d.ts.map +1 -1
  1082. package/dist/tools/manifest.d.ts +2 -0
  1083. package/dist/tools/manifest.d.ts.map +1 -1
  1084. package/dist/tools/mcp/handler.d.ts.map +1 -1
  1085. package/dist/tools/mcp/mount.d.ts +26 -14
  1086. package/dist/tools/mcp/mount.d.ts.map +1 -1
  1087. package/dist/tools/mcp/prepare.d.ts +2 -0
  1088. package/dist/tools/mcp/prepare.d.ts.map +1 -1
  1089. package/dist/tools/mcp/register.d.ts.map +1 -1
  1090. package/dist/tools/mcp/runtime-tools.d.ts +1 -1
  1091. package/dist/tools/mcp/runtime-tools.d.ts.map +1 -1
  1092. package/dist/tools/mcp/stdio.d.ts.map +1 -1
  1093. package/dist/tools/mount.d.ts +7 -2
  1094. package/dist/tools/mount.d.ts.map +1 -1
  1095. package/dist/tools/native-definition.d.ts +1 -1
  1096. package/dist/tools/native-definition.d.ts.map +1 -1
  1097. package/dist/tools/operations/async-operation-runtime-tools.d.ts +2 -2
  1098. package/dist/tools/operations/async-operation-runtime-tools.d.ts.map +1 -1
  1099. package/dist/tools/operations/async-operation-runtime-types.d.ts +1 -1
  1100. package/dist/tools/operations/async-operation-runtime-types.d.ts.map +1 -1
  1101. package/dist/tools/operations/define-wait-tool.d.ts.map +1 -1
  1102. package/dist/tools/operations/mount-wait.d.ts.map +1 -1
  1103. package/dist/tools/operations/wait-core.d.ts.map +1 -1
  1104. package/dist/tools/read-operation.d.ts +6 -4
  1105. package/dist/tools/read-operation.d.ts.map +1 -1
  1106. package/dist/tools/registry.d.ts.map +1 -1
  1107. package/dist/tools/runtime-tool-declaration.d.ts +4 -1
  1108. package/dist/tools/runtime-tool-declaration.d.ts.map +1 -1
  1109. package/dist/tools/runtime-tool.d.ts +6 -1
  1110. package/dist/tools/runtime-tool.d.ts.map +1 -1
  1111. package/dist/tools/schema/coerce.d.ts.map +1 -1
  1112. package/dist/tools/schema/inline-references.d.ts +7 -0
  1113. package/dist/tools/schema/inline-references.d.ts.map +1 -0
  1114. package/dist/tools/schema/json-schema-origin.d.ts +1 -1
  1115. package/dist/tools/schema/json-schema-origin.d.ts.map +1 -1
  1116. package/dist/tools/schema/presentation.d.ts +6 -0
  1117. package/dist/tools/schema/presentation.d.ts.map +1 -1
  1118. package/dist/tools/schema/schema.d.ts +2 -0
  1119. package/dist/tools/schema/schema.d.ts.map +1 -1
  1120. package/dist/tools/schema/untyped-properties.d.ts.map +1 -1
  1121. package/dist/tools/surface.d.ts.map +1 -1
  1122. package/dist/tools/toolkit.d.ts +6 -3
  1123. package/dist/tools/toolkit.d.ts.map +1 -1
  1124. package/dist/tools/transfer/define-download-tool.d.ts.map +1 -1
  1125. package/dist/tools/transfer/define-upload-tool.d.ts.map +1 -1
  1126. package/dist/tools/transfer/define-view-file-tool.d.ts +2 -1
  1127. package/dist/tools/transfer/define-view-file-tool.d.ts.map +1 -1
  1128. package/dist/tools/transfer/mount-download.d.ts.map +1 -1
  1129. package/dist/tools/transfer/view-file-contract.d.ts +2 -2
  1130. package/dist/tools/transfer/view-file.d.ts +1 -2
  1131. package/dist/tools/transfer/view-file.d.ts.map +1 -1
  1132. package/dist/tracking/client.d.ts +0 -13
  1133. package/dist/tracking/client.d.ts.map +1 -1
  1134. package/dist/tracking/delivery.d.ts.map +1 -1
  1135. package/dist/tracking/performance/collector.d.ts.map +1 -1
  1136. package/llms/agent-executor-acp.txt +51 -0
  1137. package/llms/agent-executor-claude-sdk.txt +31 -0
  1138. package/llms/agent-executor-claude.txt +29 -0
  1139. package/llms/agent-executor-codex.txt +25 -0
  1140. package/llms/agent-executor-testing.txt +26 -0
  1141. package/llms/agent-executor.txt +40 -0
  1142. package/llms/agent-runtime-harness.txt +68 -5
  1143. package/llms/agent-runtime-openrouter.txt +8 -2
  1144. package/llms/agent-runtime-postgres.txt +30 -0
  1145. package/llms/agent-runtime-react.txt +1 -1
  1146. package/llms/agent-runtime-realtime.txt +1 -1
  1147. package/llms/agent-runtime-sandbox.txt +5 -2
  1148. package/llms/agent-runtime-sqlite-bun.txt +2 -2
  1149. package/llms/agent-runtime-sqlite-node.txt +2 -2
  1150. package/llms/agent-runtime-testing.txt +2 -1
  1151. package/llms/agent-runtime.2.txt +450 -501
  1152. package/llms/agent-runtime.3.txt +229 -267
  1153. package/llms/agent-runtime.4.txt +23 -242
  1154. package/llms/agent-runtime.5.txt +1 -1
  1155. package/llms/agent-runtime.txt +551 -2
  1156. package/llms/application-diagnostic-journal.txt +2 -0
  1157. package/llms/application.2.txt +3 -0
  1158. package/llms/application.3.txt +21 -4
  1159. package/llms/application.txt +4 -1
  1160. package/llms/cli.2.txt +259 -99
  1161. package/llms/cli.3.txt +90 -0
  1162. package/llms/cli.txt +95 -184
  1163. package/llms/contract.txt +7 -6
  1164. package/llms/declaration.txt +1 -1
  1165. package/llms/files.txt +11 -0
  1166. package/llms/handler.txt +25 -0
  1167. package/llms/http.txt +18 -1
  1168. package/llms/node.txt +3 -2
  1169. package/llms/observability.2.txt +105 -0
  1170. package/llms/observability.txt +14 -90
  1171. package/llms/primitives.txt +27 -0
  1172. package/llms/process.2.txt +2 -2
  1173. package/llms/process.txt +10 -9
  1174. package/llms/realtime.txt +11 -0
  1175. package/llms/server.2.txt +355 -0
  1176. package/llms/server.4.txt +45 -6
  1177. package/llms/server.5.txt +6 -1
  1178. package/llms/server.txt +143 -256
  1179. package/llms/service-host-macos.txt +53 -0
  1180. package/llms/service-host.txt +69 -0
  1181. package/llms/spend-testing.txt +21 -0
  1182. package/llms/spend.txt +173 -0
  1183. package/llms/stitchkit.2.txt +368 -42
  1184. package/llms/stitchkit.3.txt +164 -13
  1185. package/llms/stitchkit.txt +95 -417
  1186. package/llms/sync-postgres.txt +31 -0
  1187. package/llms/sync.txt +396 -0
  1188. package/llms/telegram-html.txt +4 -1
  1189. package/llms/telegram.2.txt +4 -4
  1190. package/llms/telegram.txt +105 -14
  1191. package/llms/testing.txt +4 -3
  1192. package/llms/tools-connections.txt +4 -4
  1193. package/llms/tools.2.txt +78 -17
  1194. package/llms/tools.3.txt +12 -8
  1195. package/llms/tools.txt +85 -78
  1196. package/llms/upgrading-0.127.0.txt +1059 -0
  1197. package/llms/upgrading.txt +1 -0
  1198. package/llms-full.txt +3557 -531
  1199. package/llms.txt +43 -27
  1200. package/native/darwin-arm64.node +0 -0
  1201. package/native/darwin-x64.node +0 -0
  1202. package/native-assets.json +4 -4
  1203. package/package.json +67 -9
  1204. package/dist/agent-runtime/sandbox-coding.d.ts.map +0 -1
  1205. package/dist/agent-runtime/sqlite-events.d.ts +0 -5
  1206. package/dist/agent-runtime/sqlite-events.d.ts.map +0 -1
  1207. package/dist/agent-runtime/sqlite-history.d.ts +0 -7
  1208. package/dist/agent-runtime/sqlite-history.d.ts.map +0 -1
  1209. package/dist/agent-runtime/sqlite-ledger.d.ts +0 -7
  1210. package/dist/agent-runtime/sqlite-ledger.d.ts.map +0 -1
  1211. package/dist/agent-runtime/sqlite-reads.d.ts +0 -14
  1212. package/dist/agent-runtime/sqlite-reads.d.ts.map +0 -1
  1213. package/dist/agent-runtime/sqlite-rows.d.ts.map +0 -1
  1214. package/dist/agent-runtime/tool-progress.d.ts.map +0 -1
  1215. package/dist/entrypoints/application/schemas.d.ts +0 -15
  1216. package/dist/entrypoints/application/schemas.d.ts.map +0 -1
  1217. package/dist/entrypoints/application/schemas.js +0 -27
  1218. package/dist/index-0s4xebbg.js +0 -8
  1219. package/dist/index-57ppvpw0.js +0 -1150
  1220. package/dist/index-5dmk54h9.js +0 -256
  1221. package/dist/index-7cn66qdk.js +0 -92
  1222. package/dist/index-8x0q6yfb.js +0 -247
  1223. package/dist/index-a5qr2rj6.js +0 -26
  1224. package/dist/index-b0kddvzw.js +0 -35
  1225. package/dist/index-drcjjhy1.js +0 -40
  1226. package/dist/index-eemvahkc.js +0 -21
  1227. package/dist/index-gfk7nrht.js +0 -0
  1228. package/dist/index-jp2qd9jb.js +0 -108
  1229. package/dist/index-nx6eazt0.js +0 -160
  1230. package/dist/index-wxadzdb7.js +0 -55
  1231. package/dist/internal/until-aborted.d.ts +0 -9
  1232. package/dist/internal/until-aborted.d.ts.map +0 -1
  1233. package/dist/server/unix-client-error.d.ts +0 -9
  1234. package/dist/server/unix-client-error.d.ts.map +0 -1
  1235. package/llms/application-schemas.txt +0 -42
@@ -1,22 +1,39 @@
1
1
  import {
2
2
  validateDeclaredOutput
3
- } from "./index-ndjzbt2v.js";
4
- import {
5
- withDraft2020Keywords,
6
- toJsonSchema
7
- } from "./index-5dmk54h9.js";
3
+ } from "./index-akf0xkrm.js";
8
4
  import {
9
5
  isHttpOnlyEndpoint
10
6
  } from "./index-yt1gg11x.js";
11
7
  import {
12
- AppError2
13
- } from "./index-0w0hxp7n.js";
8
+ JSON_SCHEMA_KEYWORDS,
9
+ SCHEMA_KEYWORDS,
10
+ SCHEMA_LIST_KEYWORDS,
11
+ SCHEMA_MAP_KEYWORDS,
12
+ TYPE_DEFINING_KEYWORDS
13
+ } from "./index-27hck3z2.js";
14
+ import {
15
+ toJsonSchema
16
+ } from "./index-ngwf1s3c.js";
17
+ import {
18
+ mergeSchemas
19
+ } from "./index-360j58vb.js";
20
+ import {
21
+ withDraft2020Keywords,
22
+ stringValues,
23
+ mergePropertySchemas
24
+ } from "./index-hy4653g4.js";
14
25
  import {
15
- serializeCanonicalJson
16
- } from "./index-20hn8pbh.js";
26
+ assertNoLegacyTransports
27
+ } from "./index-akfgymyr.js";
28
+ import {
29
+ assertInputRecursionDepth
30
+ } from "./index-en8e5zsj.js";
31
+ import {
32
+ AppError2
33
+ } from "./index-9pv126eh.js";
17
34
  import {
18
35
  isRecord
19
- } from "./index-hkxgennw.js";
36
+ } from "./index-ps3djm8d.js";
20
37
 
21
38
  // src/tools/internal/tool-view.ts
22
39
  function toolSurfaceOutputSchema(operation) {
@@ -71,59 +88,8 @@ function projectToolView(options) {
71
88
  return checked;
72
89
  }
73
90
 
74
- // src/tools/schema/schema.ts
75
- import { z } from "zod";
76
- function objectShapeKeys(schema) {
77
- return schema instanceof z.ZodObject ? Object.keys(schema.shape) : [];
78
- }
79
- function keyPolicyOf(schema) {
80
- return schema.def.catchall;
81
- }
82
- function rebuildObject(source, shape) {
83
- return withKeyPolicy(z.object(shape), keyPolicyOf(source));
84
- }
85
- function withKeyPolicy(object, policy) {
86
- if (policy === undefined)
87
- return object;
88
- return object.catchall(representable(policy));
89
- }
90
- function representable(policy) {
91
- if (policy instanceof z.ZodNever || policy instanceof z.ZodUnknown)
92
- return policy;
93
- if (!(policy instanceof z.ZodType))
94
- return z.unknown();
95
- try {
96
- toJsonSchema(policy, "input");
97
- return policy;
98
- } catch {
99
- return z.unknown();
100
- }
101
- }
102
- function mergeSchemas(paramsSchema, inputSchema) {
103
- if (paramsSchema && !(paramsSchema instanceof z.ZodObject)) {
104
- throw new Error("Tool params schema must be a z.object()");
105
- }
106
- const paramsObject = paramsSchema instanceof z.ZodObject ? paramsSchema : undefined;
107
- if (!inputSchema) {
108
- return paramsObject ?? z.object({});
109
- }
110
- if (inputSchema instanceof z.ZodObject) {
111
- if (paramsObject) {
112
- const conflicts = Object.keys(paramsObject.shape).filter((key) => (key in inputSchema.shape));
113
- if (conflicts.length > 0) {
114
- throw new Error(`Schema merge conflict: ${conflicts.join(", ")} appear in both params and input`);
115
- }
116
- }
117
- return rebuildObject(inputSchema, {
118
- ...paramsObject?.shape ?? {},
119
- ...inputSchema.shape
120
- });
121
- }
122
- return paramsObject ? z.intersection(paramsObject, inputSchema) : inputSchema;
123
- }
124
-
125
91
  // src/tools/internal/surface-projector.ts
126
- import { z as z3 } from "zod";
92
+ import { z as z2 } from "zod";
127
93
 
128
94
  // src/tools/mcp/round-policy.ts
129
95
  function staticInputRounds(policy) {
@@ -313,268 +279,7 @@ function findNonPortableFormats2(schema, allowFormats = []) {
313
279
  }
314
280
 
315
281
  // src/tools/schema/presentation.ts
316
- import { z as z2 } from "zod";
317
-
318
- // src/tools/schema/flatten-join.ts
319
- var ANNOTATION_KEYS = new Set(["$schema", "default", "description", "examples", "title"]);
320
- var TYPE_KEYWORDS = {
321
- array: [
322
- "contains",
323
- "items",
324
- "maxContains",
325
- "maxItems",
326
- "minContains",
327
- "minItems",
328
- "prefixItems",
329
- "uniqueItems"
330
- ],
331
- integer: ["exclusiveMaximum", "exclusiveMinimum", "maximum", "minimum", "multipleOf"],
332
- number: ["exclusiveMaximum", "exclusiveMinimum", "maximum", "minimum", "multipleOf"],
333
- object: [
334
- "additionalProperties",
335
- "dependentRequired",
336
- "dependentSchemas",
337
- "maxProperties",
338
- "minProperties",
339
- "patternProperties",
340
- "properties",
341
- "propertyNames",
342
- "required"
343
- ],
344
- string: [
345
- "contentEncoding",
346
- "contentMediaType",
347
- "format",
348
- "maxLength",
349
- "minLength",
350
- "pattern"
351
- ]
352
- };
353
- function nullableProjection(schema) {
354
- if (!Array.isArray(schema.anyOf) || schema.anyOf.length !== 2)
355
- return schema;
356
- const branches = schema.anyOf.filter(isRecord);
357
- if (branches.length !== 2)
358
- return schema;
359
- const nullBranch = branches.find((branch) => branch.type === "null");
360
- const value = branches.find((branch) => typeof branch.type === "string" && branch.type !== "null");
361
- if (!nullBranch || !value || Object.keys(nullBranch).some((key) => key !== "type")) {
362
- return schema;
363
- }
364
- const type = value.type;
365
- if (typeof type !== "string")
366
- return schema;
367
- const projected = { type: [type, "null"] };
368
- for (const key of [...ANNOTATION_KEYS, ...TYPE_KEYWORDS[type] ?? []]) {
369
- if (value[key] !== undefined)
370
- projected[key] = value[key];
371
- else if (schema[key] !== undefined)
372
- projected[key] = schema[key];
373
- }
374
- if (value.const !== undefined)
375
- projected.enum = [value.const, null];
376
- else if (Array.isArray(value.enum))
377
- projected.enum = [...value.enum, null];
378
- return projected;
379
- }
380
- function withoutAnnotations(schema) {
381
- const result = {};
382
- for (const [key, value] of Object.entries(schema)) {
383
- if (!ANNOTATION_KEYS.has(key))
384
- result[key] = value;
385
- }
386
- return result;
387
- }
388
- function stringValues(schema) {
389
- if (typeof schema.const === "string")
390
- return [schema.const];
391
- if (!Array.isArray(schema.enum))
392
- return null;
393
- const values = schema.enum.filter((value) => typeof value === "string");
394
- return values.length === schema.enum.length ? values : null;
395
- }
396
- var JSON_SCHEMA_TYPE_ORDER = [
397
- "string",
398
- "number",
399
- "integer",
400
- "boolean",
401
- "object",
402
- "array",
403
- "null"
404
- ];
405
- function jsonSchemaType(value) {
406
- switch (value) {
407
- case "array":
408
- case "boolean":
409
- case "integer":
410
- case "null":
411
- case "number":
412
- case "object":
413
- case "string":
414
- return value;
415
- default:
416
- return null;
417
- }
418
- }
419
- function valueType(value) {
420
- if (value === null)
421
- return "null";
422
- if (Array.isArray(value))
423
- return "array";
424
- if (isRecord(value))
425
- return "object";
426
- if (typeof value === "string")
427
- return "string";
428
- if (typeof value === "number")
429
- return "number";
430
- if (typeof value === "boolean")
431
- return "boolean";
432
- return null;
433
- }
434
- function normalizeTypes(types) {
435
- const normalized = new Set(types);
436
- if (normalized.has("number"))
437
- normalized.delete("integer");
438
- return JSON_SCHEMA_TYPE_ORDER.filter((type) => normalized.has(type));
439
- }
440
- function combinedBranchTypes(schema) {
441
- for (const keyword of ["oneOf", "anyOf"]) {
442
- const value = schema[keyword];
443
- if (!Array.isArray(value) || value.length === 0)
444
- continue;
445
- const collected = [];
446
- for (const branch of value) {
447
- if (!isRecord(branch))
448
- return null;
449
- const types = typeNames(branch);
450
- if (!types)
451
- return null;
452
- collected.push(...types);
453
- }
454
- return normalizeTypes(collected);
455
- }
456
- return null;
457
- }
458
- function typeNames(schema) {
459
- const direct = jsonSchemaType(schema.type);
460
- if (direct)
461
- return [direct];
462
- if (Array.isArray(schema.type)) {
463
- const values = [];
464
- for (const value of schema.type) {
465
- const type = jsonSchemaType(value);
466
- if (!type)
467
- return null;
468
- values.push(type);
469
- }
470
- return values.length > 0 ? normalizeTypes(values) : null;
471
- }
472
- if (schema.const !== undefined) {
473
- const type = valueType(schema.const);
474
- return type ? [type] : null;
475
- }
476
- if (Array.isArray(schema.enum) && schema.enum.length > 0) {
477
- const values = [];
478
- for (const value of schema.enum) {
479
- const type = valueType(value);
480
- if (!type)
481
- return null;
482
- values.push(type);
483
- }
484
- return normalizeTypes(values);
485
- }
486
- return combinedBranchTypes(schema);
487
- }
488
- function typeSchema(type, nullable) {
489
- return { type: nullable ? [type, "null"] : type };
490
- }
491
- function commonBaseType(variants, discriminator) {
492
- const schemas = variants.map(({ schema }) => schema);
493
- const names = schemas.map(typeNames);
494
- if (names.some((value) => value === null))
495
- return {};
496
- let nullable = false;
497
- const bases = new Set;
498
- for (const branch of names) {
499
- if (!branch)
500
- return {};
501
- for (const name of branch) {
502
- if (name === "null")
503
- nullable = true;
504
- else
505
- bases.add(name);
506
- }
507
- }
508
- if (bases.size === 0)
509
- return nullable ? { type: "null" } : {};
510
- if (bases.has("array") || bases.has("object")) {
511
- const alternatives = new Map;
512
- for (const { schema, labels } of variants) {
513
- const key = serializeCanonicalJson(schema);
514
- const known = alternatives.get(key);
515
- if (known)
516
- known.labels.push(...labels);
517
- else
518
- alternatives.set(key, { schema, labels: [...labels] });
519
- }
520
- const ordered = [...alternatives].sort(([left], [right]) => left < right ? -1 : left > right ? 1 : 0).map(([, { schema, labels }]) => ({
521
- ...structuredClone(schema),
522
- description: `When ${discriminator} = ${[...new Set(labels)].join(" | ")}.`
523
- }));
524
- return { anyOf: ordered };
525
- }
526
- if (bases.size === 1) {
527
- const [only] = bases;
528
- return only ? typeSchema(only, nullable) : {};
529
- }
530
- if ([...bases].every((name) => name === "integer" || name === "number")) {
531
- return typeSchema("number", nullable);
532
- }
533
- const types = normalizeTypes(nullable ? [...bases, "null"] : bases);
534
- return types.length > 0 ? { type: types } : {};
535
- }
536
- function describeVariants(properties, discriminator) {
537
- const groups = new Map;
538
- for (const { schema, labels } of properties) {
539
- if (typeof schema.description !== "string")
540
- continue;
541
- const group = groups.get(schema.description) ?? [];
542
- group.push(...labels);
543
- groups.set(schema.description, group);
544
- }
545
- if (groups.size === 0)
546
- return;
547
- if (groups.size === 1 && properties.every(({ schema }) => typeof schema.description === "string")) {
548
- return groups.keys().next().value;
549
- }
550
- return [...groups].map(([description, labels]) => ({
551
- description,
552
- labels: [...new Set(labels)].join(" | ")
553
- })).map(({ description, labels }) => `When ${discriminator} = ${labels}: ${description}`).join(" ");
554
- }
555
- function mergePropertySchemas(properties, discriminator) {
556
- const schemas = properties.map((property) => nullableProjection(property.schema));
557
- const structural = schemas.map(withoutAnnotations);
558
- const [first] = structural;
559
- let merged;
560
- if (first && structural.every((schema) => serializeCanonicalJson(schema) === serializeCanonicalJson(first))) {
561
- merged = structuredClone(first);
562
- } else {
563
- const values = schemas.map(stringValues);
564
- const allStrings = values.every((value) => value !== null);
565
- merged = allStrings ? { type: "string", enum: [...new Set(values.flatMap((value) => value ?? []))] } : commonBaseType(structural.map((schema, index) => ({
566
- schema,
567
- labels: properties[index]?.labels ?? []
568
- })), discriminator);
569
- }
570
- const description = describeVariants(properties.map((property, index) => ({
571
- ...property,
572
- schema: typeof property.schema.description === "string" ? property.schema : schemas[index] ?? property.schema
573
- })), discriminator);
574
- if (description !== undefined)
575
- merged.description = description;
576
- return merged;
577
- }
282
+ import { z } from "zod";
578
283
 
579
284
  // src/tools/schema/flatten.ts
580
285
  function rebuild(value) {
@@ -731,6 +436,249 @@ function freezeJsonValue(value) {
731
436
  }
732
437
  }
733
438
 
439
+ // src/tools/schema/inline-references.ts
440
+ var DEFINITION_KEYWORDS = new Set(["definitions", "$defs"]);
441
+ var ANNOTATION_KEYWORDS = new Set(Object.entries(JSON_SCHEMA_KEYWORDS).filter(([, row]) => row.kind === "metadata").map(([name]) => name).concat("$comment"));
442
+ function unescapePointerSegment(segment) {
443
+ return decodeURIComponent(segment).replaceAll("~1", "/").replaceAll("~0", "~");
444
+ }
445
+ function resolvePointer(root, pointer) {
446
+ if (pointer === "#" || pointer === "#/")
447
+ return root;
448
+ let node = root;
449
+ for (const segment of pointer.slice(2).split("/").map(unescapePointerSegment)) {
450
+ if (Array.isArray(node))
451
+ node = node[Number(segment)];
452
+ else if (isRecord(node))
453
+ node = node[segment];
454
+ else
455
+ return;
456
+ }
457
+ return node;
458
+ }
459
+ function localReference(node) {
460
+ const reference = node.$ref;
461
+ if (typeof reference !== "string")
462
+ return;
463
+ if (!reference.startsWith("#")) {
464
+ throw new Error(`Cannot write out the non-local reference "${reference}"`);
465
+ }
466
+ return reference;
467
+ }
468
+ function eachSubschema(node, visit) {
469
+ for (const [key, child] of Object.entries(node)) {
470
+ if (DEFINITION_KEYWORDS.has(key))
471
+ continue;
472
+ if (SCHEMA_KEYWORDS.includes(key)) {
473
+ if (Array.isArray(child))
474
+ child.forEach(visit);
475
+ else
476
+ visit(child);
477
+ } else if (SCHEMA_LIST_KEYWORDS.includes(key) && Array.isArray(child)) {
478
+ child.forEach(visit);
479
+ } else if ((SCHEMA_MAP_KEYWORDS.includes(key) || key === "dependencies") && isRecord(child)) {
480
+ for (const value of Object.values(child))
481
+ if (isRecord(value))
482
+ visit(value);
483
+ }
484
+ }
485
+ }
486
+ function mapSubschemas(node, rewrite) {
487
+ const result = {};
488
+ for (const [key, child] of Object.entries(node)) {
489
+ if (DEFINITION_KEYWORDS.has(key))
490
+ continue;
491
+ if (SCHEMA_KEYWORDS.includes(key)) {
492
+ result[key] = Array.isArray(child) ? child.map(rewrite) : rewrite(child);
493
+ } else if (SCHEMA_LIST_KEYWORDS.includes(key) && Array.isArray(child)) {
494
+ result[key] = child.map(rewrite);
495
+ } else if ((SCHEMA_MAP_KEYWORDS.includes(key) || key === "dependencies") && isRecord(child)) {
496
+ const map = {};
497
+ for (const [name, value] of Object.entries(child)) {
498
+ map[name] = isRecord(value) ? rewrite(value) : value;
499
+ }
500
+ result[key] = map;
501
+ } else {
502
+ result[key] = child;
503
+ }
504
+ }
505
+ return result;
506
+ }
507
+ function referenceGraph(root) {
508
+ const graph = new Map;
509
+ const pending = ["#"];
510
+ while (pending.length > 0) {
511
+ const pointer = pending.pop();
512
+ if (pointer === undefined || graph.has(pointer))
513
+ continue;
514
+ const edges = new Set;
515
+ graph.set(pointer, edges);
516
+ const collect = (node) => {
517
+ if (!isRecord(node))
518
+ return;
519
+ const reference = localReference(node);
520
+ if (reference !== undefined) {
521
+ edges.add(reference);
522
+ pending.push(reference);
523
+ }
524
+ eachSubschema(node, collect);
525
+ };
526
+ const target = resolvePointer(root, pointer);
527
+ if (!isRecord(target))
528
+ throw new Error(`Cannot resolve the reference "${pointer}"`);
529
+ collect(target);
530
+ }
531
+ return graph;
532
+ }
533
+ function recursivePointers(graph) {
534
+ const recursive = new Set;
535
+ for (const start of graph.keys()) {
536
+ const seen = new Set;
537
+ const pending = [...graph.get(start) ?? []];
538
+ while (pending.length > 0) {
539
+ const next = pending.pop();
540
+ if (next === undefined || seen.has(next))
541
+ continue;
542
+ if (next === start) {
543
+ recursive.add(start);
544
+ break;
545
+ }
546
+ seen.add(next);
547
+ pending.push(...graph.get(next) ?? []);
548
+ }
549
+ }
550
+ return recursive;
551
+ }
552
+ var JSON_TYPES = ["string", "number", "integer", "boolean", "null", "array", "object"];
553
+ function typeOfValue(value) {
554
+ if (value === null)
555
+ return "null";
556
+ if (Array.isArray(value))
557
+ return "array";
558
+ if (typeof value === "object")
559
+ return "object";
560
+ return typeof value === "number" ? "number" : typeof value;
561
+ }
562
+ function intersect(left, right) {
563
+ if (left === "any")
564
+ return right;
565
+ if (right === "any")
566
+ return left;
567
+ const kept = new Set;
568
+ for (const type of left) {
569
+ if (right.has(type) || type === "integer" && right.has("number"))
570
+ kept.add(type);
571
+ else if (type === "number" && right.has("integer"))
572
+ kept.add("integer");
573
+ }
574
+ return kept;
575
+ }
576
+ function union(left, right) {
577
+ if (left === "any" || right === "any")
578
+ return "any";
579
+ return new Set([...left, ...right]);
580
+ }
581
+ function admittedTypes(root, node, visiting) {
582
+ if (!isRecord(node))
583
+ return node === false ? new Set : "any";
584
+ let types = "any";
585
+ const reference = localReference(node);
586
+ if (reference !== undefined) {
587
+ types = visiting.has(reference) ? new Set : admittedTypes(root, resolvePointer(root, reference), new Set([...visiting, reference]));
588
+ }
589
+ if (typeof node.type === "string")
590
+ types = intersect(types, new Set([node.type]));
591
+ if (Array.isArray(node.type)) {
592
+ types = intersect(types, new Set(node.type.filter((t) => typeof t === "string")));
593
+ }
594
+ if ("const" in node)
595
+ types = intersect(types, new Set([typeOfValue(node.const)]));
596
+ if (Array.isArray(node.enum))
597
+ types = intersect(types, new Set(node.enum.map(typeOfValue)));
598
+ for (const key of ["anyOf", "oneOf"]) {
599
+ const branches = node[key];
600
+ if (!Array.isArray(branches))
601
+ continue;
602
+ let joined = new Set;
603
+ for (const branch of branches)
604
+ joined = union(joined, admittedTypes(root, branch, visiting));
605
+ types = intersect(types, joined);
606
+ }
607
+ if (Array.isArray(node.allOf)) {
608
+ for (const branch of node.allOf) {
609
+ types = intersect(types, admittedTypes(root, branch, visiting));
610
+ }
611
+ }
612
+ return types;
613
+ }
614
+ function openNode(type) {
615
+ return type === "array" ? { type, items: {} } : { type };
616
+ }
617
+ function terminal(root, pointer) {
618
+ const definition = resolvePointer(root, pointer);
619
+ const types = admittedTypes(root, definition, new Set([pointer]));
620
+ const ordered = types === "any" ? [] : JSON_TYPES.filter((type) => types.has(type));
621
+ const node = ordered.length === 0 ? {} : ordered.length === 1 && ordered[0] !== undefined ? openNode(ordered[0]) : { anyOf: ordered.map(openNode) };
622
+ if (isRecord(definition) && typeof definition.description === "string") {
623
+ node.description = definition.description;
624
+ }
625
+ return node;
626
+ }
627
+ function withSiblings(written, siblings) {
628
+ const keys = Object.keys(siblings);
629
+ if (keys.length === 0)
630
+ return written;
631
+ if (isRecord(written) && keys.every((key) => ANNOTATION_KEYWORDS.has(key))) {
632
+ return { ...written, ...siblings };
633
+ }
634
+ return { allOf: [written], ...siblings };
635
+ }
636
+ function unwrapReferenceWrapper(original, rewritten) {
637
+ const branches = original.allOf;
638
+ if (!Array.isArray(branches) || branches.length !== 1)
639
+ return rewritten;
640
+ const [branch] = branches;
641
+ if (!isRecord(branch) || localReference(branch) === undefined)
642
+ return rewritten;
643
+ if (Object.keys(branch).length !== 1)
644
+ return rewritten;
645
+ const [written] = Array.isArray(rewritten.allOf) ? rewritten.allOf : [];
646
+ if (!isRecord(written))
647
+ return rewritten;
648
+ const { allOf: _wrapper, ...siblings } = rewritten;
649
+ return Object.keys(siblings).every((key) => ANNOTATION_KEYWORDS.has(key)) ? { ...written, ...siblings } : rewritten;
650
+ }
651
+ function inlineSchemaReferences(schema, depth) {
652
+ assertInputRecursionDepth("inputRecursionDepth", depth);
653
+ const graph = referenceGraph(schema);
654
+ if (graph.size === 1 && (graph.get("#")?.size ?? 0) === 0)
655
+ return schema;
656
+ const recursive = recursivePointers(graph);
657
+ const write = (node, path) => {
658
+ if (!isRecord(node))
659
+ return node;
660
+ const reference = localReference(node);
661
+ if (reference === undefined) {
662
+ const rewritten = mapSubschemas(node, (child) => write(child, path));
663
+ return unwrapReferenceWrapper(node, rewritten);
664
+ }
665
+ const { $ref: _reference, ...rest } = node;
666
+ const siblings = mapSubschemas(rest, (child) => write(child, path));
667
+ const occurrences = path.filter((entry) => entry === reference).length;
668
+ if (recursive.has(reference) && occurrences >= depth) {
669
+ return withSiblings(terminal(schema, reference), siblings);
670
+ }
671
+ const written = write(resolvePointer(schema, reference), [...path, reference]);
672
+ if (isRecord(written) && "$schema" in written) {
673
+ const { $schema: _dialect, ...body } = written;
674
+ return withSiblings(body, siblings);
675
+ }
676
+ return withSiblings(written, siblings);
677
+ };
678
+ const written = write(schema, ["#"]);
679
+ return isRecord(written) ? written : {};
680
+ }
681
+
734
682
  // src/tools/schema/presentation.ts
735
683
  function withoutDialect(schema) {
736
684
  const result = {};
@@ -750,7 +698,7 @@ function hasLocalReference(value) {
750
698
  return Object.values(value).some(hasLocalReference);
751
699
  }
752
700
  var NAMESPACE_SEPARATOR = "__";
753
- var DEFINITION_KEYWORDS = ["definitions", "$defs"];
701
+ var DEFINITION_KEYWORDS2 = ["definitions", "$defs"];
754
702
  function rewriteReference(reference, namespace, targets) {
755
703
  if (reference === "#" || reference === "#/") {
756
704
  targets.rootReferenced = true;
@@ -758,7 +706,7 @@ function rewriteReference(reference, namespace, targets) {
758
706
  }
759
707
  const segments = reference.slice(2).split("/");
760
708
  const [keyword, name, ...rest] = segments;
761
- if (keyword !== undefined && name !== undefined && DEFINITION_KEYWORDS.includes(keyword)) {
709
+ if (keyword !== undefined && name !== undefined && DEFINITION_KEYWORDS2.includes(keyword)) {
762
710
  const renamed = `${namespace}${NAMESPACE_SEPARATOR}${name}`;
763
711
  return ["#", "definitions", renamed, ...rest].join("/");
764
712
  }
@@ -787,7 +735,7 @@ function namespaceLocalReferences(schema, namespace) {
787
735
  const definitions = {};
788
736
  const body = {};
789
737
  for (const [key, value] of Object.entries(rewritten)) {
790
- if (DEFINITION_KEYWORDS.includes(key)) {
738
+ if (DEFINITION_KEYWORDS2.includes(key)) {
791
739
  if (isRecord(value)) {
792
740
  for (const [name, definition] of Object.entries(value)) {
793
741
  definitions[`${namespace}${NAMESPACE_SEPARATOR}${name}`] = definition;
@@ -851,17 +799,22 @@ function mergeObjectSchemas(left, right, rightOwnsUnknownKeys) {
851
799
  merged.additionalProperties = unknownKeys;
852
800
  return merged;
853
801
  }
854
- function schemaFromZod(schema, unrepresentable, flatten) {
802
+ function schemaFromZod(schema, steps) {
855
803
  if (!schema)
856
804
  return;
857
- const json = toJsonSchema(schema, "input", unrepresentable, "draft-07");
858
- return flatten ? flattenToolJsonSchema2(json) : json;
805
+ const json = toJsonSchema(schema, "input", steps.unrepresentable, "draft-07");
806
+ const inlined = steps.recursionDepth === undefined ? json : inlineSchemaReferences(json, steps.recursionDepth);
807
+ return steps.flatten ? flattenToolJsonSchema2(inlined) : inlined;
859
808
  }
860
809
  function buildToolPresentationSchema(config) {
861
- const unrepresentable = config.unrepresentable ?? "any";
862
- const flatten = config.flattenUnionInput ?? false;
863
- const params = namespaceLocalReferences(schemaFromZod(config.paramsSchema, unrepresentable, flatten), "params");
864
- const input = namespaceLocalReferences(schemaFromZod(config.inputSchema, unrepresentable, flatten), "input");
810
+ assertInputRecursionDepth("inputRecursionDepth", config.inputRecursionDepth);
811
+ const steps = {
812
+ unrepresentable: config.unrepresentable ?? "any",
813
+ flatten: config.flattenUnionInput ?? false,
814
+ recursionDepth: config.inputRecursionDepth
815
+ };
816
+ const params = namespaceLocalReferences(schemaFromZod(config.paramsSchema, steps), "params");
817
+ const input = namespaceLocalReferences(schemaFromZod(config.inputSchema, steps), "input");
865
818
  let presentation;
866
819
  if (params && input) {
867
820
  presentation = mergeObjectSchemas(withoutDialect(params), withoutDialect(input), true);
@@ -877,7 +830,7 @@ function buildToolPresentationSchema(config) {
877
830
  };
878
831
  }
879
832
  if (config.extendSchema) {
880
- const extra = namespaceLocalReferences(schemaFromZod(z2.object(config.extendSchema), unrepresentable, flatten), "extend");
833
+ const extra = namespaceLocalReferences(schemaFromZod(z.object(config.extendSchema), steps), "extend");
881
834
  if (extra) {
882
835
  presentation = mergeObjectSchemas(withoutDialect(extra), withoutDialect(presentation), true);
883
836
  }
@@ -921,9 +874,8 @@ function presentationMetadata(schema) {
921
874
  }
922
875
 
923
876
  // src/tools/schema/untyped-properties.ts
924
- var TYPE_KEYWORDS2 = ["type", "enum", "const", "anyOf", "oneOf", "allOf", "$ref", "not"];
925
877
  function saysWhatItIs(schema) {
926
- return TYPE_KEYWORDS2.some((keyword) => schema[keyword] !== undefined);
878
+ return TYPE_DEFINING_KEYWORDS.some((keyword) => schema[keyword] !== undefined);
927
879
  }
928
880
  function findUntypedProperties2(schema, prefix = "") {
929
881
  if (!isRecord(schema))
@@ -993,15 +945,15 @@ function findUntypedProperties2(schema, prefix = "") {
993
945
 
994
946
  // src/tools/internal/surface-projector.ts
995
947
  function assertToolExtensionCompatible(base, extra) {
996
- if (!(base instanceof z3.ZodObject))
948
+ if (!(base instanceof z2.ZodObject))
997
949
  return;
998
950
  const conflicts = Object.keys(extra).filter((key) => (key in base.shape));
999
951
  if (conflicts.length > 0) {
1000
952
  throw new Error(`Tool extend conflict: ${conflicts.join(", ")} already declared by the contract`);
1001
953
  }
1002
954
  }
1003
- function projectRuntimeTool(definition, assertName = true) {
1004
- if (assertName) {
955
+ function projectRuntimeTool(definition, options = {}) {
956
+ if (options.assertName ?? true) {
1005
957
  assertProjectedName(definition.name, definition.identity.serviceName, definition.identity.action, "MCP", false);
1006
958
  }
1007
959
  return {
@@ -1012,6 +964,8 @@ function projectRuntimeTool(definition, assertName = true) {
1012
964
  name: definition.name,
1013
965
  presentationSchema: buildToolPresentationSchema({
1014
966
  inputSchema: definition.input,
967
+ flattenUnionInput: options.flattenUnionInput,
968
+ inputRecursionDepth: options.inputRecursionDepth,
1015
969
  unrepresentable: "any"
1016
970
  }),
1017
971
  shouldExtend: false,
@@ -1019,10 +973,11 @@ function projectRuntimeTool(definition, assertName = true) {
1019
973
  };
1020
974
  }
1021
975
  function projectedRuntimeToolSupports(definition, transport) {
1022
- if (definition.transports?.length === 0) {
976
+ assertNoLegacyTransports(definition, `Runtime tool "${definition.name}"`);
977
+ if (definition.expose?.length === 0) {
1023
978
  throw new Error(`Runtime tool "${definition.name}" must expose at least one transport`);
1024
979
  }
1025
- return definition.transports ? definition.transports.includes(transport) : transport !== "CLI";
980
+ return definition.expose ? definition.expose.includes(transport) : transport !== "CLI";
1026
981
  }
1027
982
  function duplicateLabel(transport) {
1028
983
  if (transport === "MCP")
@@ -1086,6 +1041,7 @@ function projectToolSurface(surface, transport, config = {}) {
1086
1041
  defaults: method.toolView?.defaults,
1087
1042
  extendSchema: shouldExtend ? config.extend?.schema : undefined,
1088
1043
  flattenUnionInput: config.flattenUnionInput,
1044
+ inputRecursionDepth: method.inputRecursionDepth ?? config.inputRecursionDepth,
1089
1045
  unrepresentable: "any"
1090
1046
  }),
1091
1047
  shouldExtend,
@@ -1099,7 +1055,11 @@ function projectToolSurface(surface, transport, config = {}) {
1099
1055
  if (config.assertNames ?? true) {
1100
1056
  assertProjectedName(definition.name, definition.identity.serviceName, definition.identity.action, transport, false);
1101
1057
  }
1102
- append(projectRuntimeTool(definition, false));
1058
+ append(projectRuntimeTool(definition, {
1059
+ assertName: false,
1060
+ flattenUnionInput: config.flattenUnionInput,
1061
+ inputRecursionDepth: config.inputRecursionDepth
1062
+ }));
1103
1063
  }
1104
1064
  return projected;
1105
1065
  }
@@ -1117,6 +1077,9 @@ function mcpProjectionCandidate(tool) {
1117
1077
  ...tool.source.toolView?.defaults !== undefined && {
1118
1078
  inputDefaults: tool.source.toolView.defaults
1119
1079
  },
1080
+ ...tool.source.inputRecursionDepth !== undefined && {
1081
+ inputRecursionDepth: tool.source.inputRecursionDepth
1082
+ },
1120
1083
  ...toolSurfaceOutputSchema(tool.source) !== undefined && {
1121
1084
  outputSchema: toolSurfaceOutputSchema(tool.source)
1122
1085
  },
@@ -1160,6 +1123,7 @@ function prepareProjectedMcpTools(tools, config = {}) {
1160
1123
  inputSchema: tool.inputSchema,
1161
1124
  extendSchema: tool.shouldExtend && config.extend ? config.extend.schema : undefined,
1162
1125
  flattenUnionInput: config.flattenUnionInput,
1126
+ inputRecursionDepth: tool.inputRecursionDepth ?? config.inputRecursionDepth,
1163
1127
  unrepresentable: "throw",
1164
1128
  defaults: tool.inputDefaults
1165
1129
  });
@@ -1178,7 +1142,7 @@ function prepareProjectedMcpTools(tools, config = {}) {
1178
1142
  if (allowed.has(path))
1179
1143
  continue;
1180
1144
  const clue = untyped.description ? ` (only a description: "${untyped.description}")` : "";
1181
- reportIncompatible(`MCP tool "${tool.name}" — input property "${untyped.path}" carries no type, enum or $ref${clue}. A model is given no way to know what to send. Use \`z.json()\` for an arbitrary JSON value; use \`allowUntyped\` only when the presentation value is genuinely not representable as JSON Schema.`, policy === "skip" ? "warn" : policy, config.logger, failures);
1145
+ reportIncompatible(`MCP tool "${tool.name}" — input property "${untyped.path}" carries no type, enum or $ref${clue}. A model is given no way to know what to send. Use \`z.json()\` for an arbitrary JSON value — its schema refers to itself, so where the model provider refuses recursive schemas also set \`inputRecursionDepth\`; use \`allowUntyped\` only when the presentation value is genuinely not representable as JSON Schema.`, policy === "skip" ? "warn" : policy, config.logger, failures);
1182
1146
  }
1183
1147
  }
1184
1148
  if (config.schemaValidation?.requirePortableFormats) {
@@ -1215,4 +1179,4 @@ function prepareProjectedMcpTools(tools, config = {}) {
1215
1179
  return prepared;
1216
1180
  }
1217
1181
 
1218
- export { toolSurfaceOutputSchema, applyToolViewDefaults, projectToolView, objectShapeKeys, rebuildObject, mergeSchemas, staticInputRounds, validateMcpRoundPolicy, validateResolvedInputRounds, assertToolName, toToolName, assertUniqueToolName, PORTABLE_JSON_SCHEMA_FORMATS2, findNonPortableFormats2, flattenToolJsonSchema2, buildToolPresentationSchema, presentationMetadata, findUntypedProperties2, assertToolExtensionCompatible, projectRuntimeTool, projectedContractToolName, projectToolSurface, mcpProjectionCandidate, prepareProjectedMcpTools };
1182
+ export { toolSurfaceOutputSchema, applyToolViewDefaults, projectToolView, staticInputRounds, validateMcpRoundPolicy, validateResolvedInputRounds, assertToolName, toToolName, assertUniqueToolName, PORTABLE_JSON_SCHEMA_FORMATS2, findNonPortableFormats2, flattenToolJsonSchema2, buildToolPresentationSchema, presentationMetadata, findUntypedProperties2, assertToolExtensionCompatible, projectedContractToolName, projectToolSurface, mcpProjectionCandidate, prepareProjectedMcpTools };