stitchkit 0.134.1 → 0.135.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 (1169) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/README.md +7 -7
  3. package/dist/agent-executor/acp/v1-connect.d.ts +1 -1
  4. package/dist/agent-executor/acp/v1-connect.d.ts.map +1 -1
  5. package/dist/agent-executor/acp/v1-session.d.ts +1 -1
  6. package/dist/agent-executor/acp/v1-session.d.ts.map +1 -1
  7. package/dist/agent-executor/json-rpc-peer.d.ts +1 -1
  8. package/dist/agent-executor/json-rpc-peer.d.ts.map +1 -1
  9. package/dist/agent-runtime/browser/browser-control-contract.d.ts +1364 -0
  10. package/dist/agent-runtime/browser/browser-control-contract.d.ts.map +1 -0
  11. package/dist/agent-runtime/browser/browser-controller-view.d.ts +44 -0
  12. package/dist/agent-runtime/browser/browser-controller-view.d.ts.map +1 -0
  13. package/dist/agent-runtime/browser/browser-controller.d.ts +53 -0
  14. package/dist/agent-runtime/browser/browser-controller.d.ts.map +1 -0
  15. package/dist/agent-runtime/browser/control-interaction-schema.d.ts.map +1 -0
  16. package/dist/agent-runtime/browser/control-schema.d.ts +1378 -0
  17. package/dist/agent-runtime/browser/control-schema.d.ts.map +1 -0
  18. package/dist/agent-runtime/browser/control-view.d.ts +64 -0
  19. package/dist/agent-runtime/browser/control-view.d.ts.map +1 -0
  20. package/dist/agent-runtime/browser/react.d.ts.map +1 -0
  21. package/dist/agent-runtime/coding/coding-discovery.d.ts +25 -0
  22. package/dist/agent-runtime/coding/coding-discovery.d.ts.map +1 -0
  23. package/dist/agent-runtime/coding/coding-sandbox.d.ts +8 -0
  24. package/dist/agent-runtime/coding/coding-sandbox.d.ts.map +1 -0
  25. package/dist/agent-runtime/coding/coding-search-automaton.d.ts.map +1 -0
  26. package/dist/agent-runtime/coding/coding-search-case-fold.d.ts.map +1 -0
  27. package/dist/agent-runtime/coding/coding-search-class-ranges.d.ts.map +1 -0
  28. package/dist/agent-runtime/coding/coding-search-contract.d.ts.map +1 -0
  29. package/dist/agent-runtime/coding/coding-search-limits.d.ts.map +1 -0
  30. package/dist/agent-runtime/coding/coding-search-matcher.d.ts.map +1 -0
  31. package/dist/agent-runtime/coding/coding-search-output.d.ts.map +1 -0
  32. package/dist/agent-runtime/coding/coding-search-regex-syntax.d.ts.map +1 -0
  33. package/dist/agent-runtime/coding/coding-search-unit-classes.d.ts.map +1 -0
  34. package/dist/agent-runtime/coding/coding-shell-process.d.ts +36 -0
  35. package/dist/agent-runtime/coding/coding-shell-process.d.ts.map +1 -0
  36. package/dist/agent-runtime/coding/coding-tool-contract.d.ts +261 -0
  37. package/dist/agent-runtime/coding/coding-tool-contract.d.ts.map +1 -0
  38. package/dist/agent-runtime/coding/coding-tool-files.d.ts.map +1 -0
  39. package/dist/agent-runtime/coding/coding-tool-listing.d.ts.map +1 -0
  40. package/dist/agent-runtime/coding/coding-tool-paths.d.ts +53 -0
  41. package/dist/agent-runtime/coding/coding-tool-paths.d.ts.map +1 -0
  42. package/dist/agent-runtime/coding/coding-tool-refusals.d.ts.map +1 -0
  43. package/dist/agent-runtime/coding/coding-tool-search-patch.d.ts.map +1 -0
  44. package/dist/agent-runtime/coding/coding-tool-search.d.ts +113 -0
  45. package/dist/agent-runtime/coding/coding-tool-search.d.ts.map +1 -0
  46. package/dist/agent-runtime/coding/coding-tool-shell.d.ts.map +1 -0
  47. package/dist/agent-runtime/coding/coding-tool-utf8.d.ts.map +1 -0
  48. package/dist/agent-runtime/coding/coding-tools.d.ts.map +1 -0
  49. package/dist/agent-runtime/coding/contained-scan-budget.d.ts.map +1 -0
  50. package/dist/agent-runtime/coding/contained-scan-contract.d.ts.map +1 -0
  51. package/dist/agent-runtime/coding/contained-scan.d.ts +56 -0
  52. package/dist/agent-runtime/coding/contained-scan.d.ts.map +1 -0
  53. package/dist/agent-runtime/coding/workspace-glob.d.ts.map +1 -0
  54. package/dist/agent-runtime/context-issue.d.ts +1 -1
  55. package/dist/agent-runtime/context-issue.d.ts.map +1 -1
  56. package/dist/agent-runtime/deferred-tool-types.d.ts +3 -1
  57. package/dist/agent-runtime/deferred-tool-types.d.ts.map +1 -1
  58. package/dist/agent-runtime/harness/harness-contract.d.ts +206 -0
  59. package/dist/agent-runtime/harness/harness-contract.d.ts.map +1 -0
  60. package/dist/agent-runtime/harness/harness-control.d.ts +34 -0
  61. package/dist/agent-runtime/harness/harness-control.d.ts.map +1 -0
  62. package/dist/agent-runtime/harness/harness-file-resources.d.ts +33 -0
  63. package/dist/agent-runtime/harness/harness-file-resources.d.ts.map +1 -0
  64. package/dist/agent-runtime/harness/harness-resources.d.ts.map +1 -0
  65. package/dist/agent-runtime/harness/harness.d.ts +15 -0
  66. package/dist/agent-runtime/harness/harness.d.ts.map +1 -0
  67. package/dist/agent-runtime/history/compaction.d.ts +103 -0
  68. package/dist/agent-runtime/history/compaction.d.ts.map +1 -0
  69. package/dist/agent-runtime/history/history.d.ts +93 -0
  70. package/dist/agent-runtime/history/history.d.ts.map +1 -0
  71. package/dist/agent-runtime/history/run-history-parts.d.ts +14 -0
  72. package/dist/agent-runtime/history/run-history-parts.d.ts.map +1 -0
  73. package/dist/agent-runtime/loop/admission-lanes.d.ts +35 -0
  74. package/dist/agent-runtime/loop/admission-lanes.d.ts.map +1 -0
  75. package/dist/agent-runtime/loop/coordinator.d.ts.map +1 -0
  76. package/dist/agent-runtime/loop/deferred-tool-search.d.ts +9 -0
  77. package/dist/agent-runtime/loop/deferred-tool-search.d.ts.map +1 -0
  78. package/dist/agent-runtime/loop/deferred-tool-selection.d.ts +32 -0
  79. package/dist/agent-runtime/loop/deferred-tool-selection.d.ts.map +1 -0
  80. package/dist/agent-runtime/loop/deferred-tools-internal.d.ts +19 -0
  81. package/dist/agent-runtime/loop/deferred-tools-internal.d.ts.map +1 -0
  82. package/dist/agent-runtime/loop/deferred-tools.d.ts +4 -0
  83. package/dist/agent-runtime/loop/deferred-tools.d.ts.map +1 -0
  84. package/dist/agent-runtime/loop/injection.d.ts +28 -0
  85. package/dist/agent-runtime/loop/injection.d.ts.map +1 -0
  86. package/dist/agent-runtime/loop/invocation-attempt.d.ts +32 -0
  87. package/dist/agent-runtime/loop/invocation-attempt.d.ts.map +1 -0
  88. package/dist/agent-runtime/loop/invocation-failure.d.ts.map +1 -0
  89. package/dist/agent-runtime/loop/invocation-payload.d.ts +38 -0
  90. package/dist/agent-runtime/loop/invocation-payload.d.ts.map +1 -0
  91. package/dist/agent-runtime/loop/invocation-read.d.ts +134 -0
  92. package/dist/agent-runtime/loop/invocation-read.d.ts.map +1 -0
  93. package/dist/agent-runtime/loop/invocation-spend.d.ts +9 -0
  94. package/dist/agent-runtime/loop/invocation-spend.d.ts.map +1 -0
  95. package/dist/agent-runtime/loop/invocation-stream.d.ts +20 -0
  96. package/dist/agent-runtime/loop/invocation-stream.d.ts.map +1 -0
  97. package/dist/agent-runtime/loop/invocations.d.ts +63 -0
  98. package/dist/agent-runtime/loop/invocations.d.ts.map +1 -0
  99. package/dist/agent-runtime/loop/managed-tools.d.ts +20 -0
  100. package/dist/agent-runtime/loop/managed-tools.d.ts.map +1 -0
  101. package/dist/agent-runtime/loop/observability.d.ts +579 -0
  102. package/dist/agent-runtime/loop/observability.d.ts.map +1 -0
  103. package/dist/agent-runtime/loop/owned-provider-stream.d.ts.map +1 -0
  104. package/dist/agent-runtime/loop/provider-origin.d.ts +17 -0
  105. package/dist/agent-runtime/loop/provider-origin.d.ts.map +1 -0
  106. package/dist/agent-runtime/loop/provider-stream-parts.d.ts +5 -0
  107. package/dist/agent-runtime/loop/provider-stream-parts.d.ts.map +1 -0
  108. package/dist/agent-runtime/loop/provider-stream-segments.d.ts +63 -0
  109. package/dist/agent-runtime/loop/provider-stream-segments.d.ts.map +1 -0
  110. package/dist/agent-runtime/loop/retry-policy.d.ts +49 -0
  111. package/dist/agent-runtime/loop/retry-policy.d.ts.map +1 -0
  112. package/dist/agent-runtime/loop/run-acquisition.d.ts +24 -0
  113. package/dist/agent-runtime/loop/run-acquisition.d.ts.map +1 -0
  114. package/dist/agent-runtime/loop/run-approval.d.ts +82 -0
  115. package/dist/agent-runtime/loop/run-approval.d.ts.map +1 -0
  116. package/dist/agent-runtime/loop/run-complete-retry.d.ts +24 -0
  117. package/dist/agent-runtime/loop/run-complete-retry.d.ts.map +1 -0
  118. package/dist/agent-runtime/loop/run-complete-stream.d.ts +9 -0
  119. package/dist/agent-runtime/loop/run-complete-stream.d.ts.map +1 -0
  120. package/dist/agent-runtime/loop/run-complete-types.d.ts +171 -0
  121. package/dist/agent-runtime/loop/run-complete-types.d.ts.map +1 -0
  122. package/dist/agent-runtime/loop/run-complete.d.ts +25 -0
  123. package/dist/agent-runtime/loop/run-complete.d.ts.map +1 -0
  124. package/dist/agent-runtime/loop/run-driver-compose.d.ts +21 -0
  125. package/dist/agent-runtime/loop/run-driver-compose.d.ts.map +1 -0
  126. package/dist/agent-runtime/loop/run-execution-state.d.ts +177 -0
  127. package/dist/agent-runtime/loop/run-execution-state.d.ts.map +1 -0
  128. package/dist/agent-runtime/loop/run-execution.d.ts +22 -0
  129. package/dist/agent-runtime/loop/run-execution.d.ts.map +1 -0
  130. package/dist/agent-runtime/loop/run-failure.d.ts +21 -0
  131. package/dist/agent-runtime/loop/run-failure.d.ts.map +1 -0
  132. package/dist/agent-runtime/loop/run-loop-events.d.ts +126 -0
  133. package/dist/agent-runtime/loop/run-loop-events.d.ts.map +1 -0
  134. package/dist/agent-runtime/loop/run-model-attempts.d.ts +6 -0
  135. package/dist/agent-runtime/loop/run-model-attempts.d.ts.map +1 -0
  136. package/dist/agent-runtime/loop/run-model-messages.d.ts +9 -0
  137. package/dist/agent-runtime/loop/run-model-messages.d.ts.map +1 -0
  138. package/dist/agent-runtime/loop/run-model-step.d.ts +43 -0
  139. package/dist/agent-runtime/loop/run-model-step.d.ts.map +1 -0
  140. package/dist/agent-runtime/loop/run-model-stream.d.ts +27 -0
  141. package/dist/agent-runtime/loop/run-model-stream.d.ts.map +1 -0
  142. package/dist/agent-runtime/loop/run-operation-lifecycle.d.ts +32 -0
  143. package/dist/agent-runtime/loop/run-operation-lifecycle.d.ts.map +1 -0
  144. package/dist/agent-runtime/loop/run-prompt-history.d.ts +53 -0
  145. package/dist/agent-runtime/loop/run-prompt-history.d.ts.map +1 -0
  146. package/dist/agent-runtime/loop/run-provider-ledger.d.ts +32 -0
  147. package/dist/agent-runtime/loop/run-provider-ledger.d.ts.map +1 -0
  148. package/dist/agent-runtime/loop/run-step-barriers.d.ts +120 -0
  149. package/dist/agent-runtime/loop/run-step-barriers.d.ts.map +1 -0
  150. package/dist/agent-runtime/loop/run-step-helpers.d.ts +50 -0
  151. package/dist/agent-runtime/loop/run-step-helpers.d.ts.map +1 -0
  152. package/dist/agent-runtime/loop/run-step-prepare.d.ts +34 -0
  153. package/dist/agent-runtime/loop/run-step-prepare.d.ts.map +1 -0
  154. package/dist/agent-runtime/loop/run-step-spend.d.ts +394 -0
  155. package/dist/agent-runtime/loop/run-step-spend.d.ts.map +1 -0
  156. package/dist/agent-runtime/loop/run-stream-parts.d.ts +34 -0
  157. package/dist/agent-runtime/loop/run-stream-parts.d.ts.map +1 -0
  158. package/dist/agent-runtime/loop/run-stream-recorded.d.ts +8 -0
  159. package/dist/agent-runtime/loop/run-stream-recorded.d.ts.map +1 -0
  160. package/dist/agent-runtime/loop/run-stream-step-text.d.ts +47 -0
  161. package/dist/agent-runtime/loop/run-stream-step-text.d.ts.map +1 -0
  162. package/dist/agent-runtime/loop/run-terminal.d.ts +11 -0
  163. package/dist/agent-runtime/loop/run-terminal.d.ts.map +1 -0
  164. package/dist/agent-runtime/loop/run-tool-approval-flow.d.ts +36 -0
  165. package/dist/agent-runtime/loop/run-tool-approval-flow.d.ts.map +1 -0
  166. package/dist/agent-runtime/loop/run-tool-approval-records.d.ts +24 -0
  167. package/dist/agent-runtime/loop/run-tool-approval-records.d.ts.map +1 -0
  168. package/dist/agent-runtime/loop/run-tool-call.d.ts +119 -0
  169. package/dist/agent-runtime/loop/run-tool-call.d.ts.map +1 -0
  170. package/dist/agent-runtime/loop/run-tool-errors.d.ts.map +1 -0
  171. package/dist/agent-runtime/loop/run-tool-executor.d.ts +42 -0
  172. package/dist/agent-runtime/loop/run-tool-executor.d.ts.map +1 -0
  173. package/dist/agent-runtime/loop/run-tool-progress.d.ts +21 -0
  174. package/dist/agent-runtime/loop/run-tool-progress.d.ts.map +1 -0
  175. package/dist/agent-runtime/loop/run-tool-slots.d.ts +114 -0
  176. package/dist/agent-runtime/loop/run-tool-slots.d.ts.map +1 -0
  177. package/dist/agent-runtime/loop/run-turn-preparation.d.ts +25 -0
  178. package/dist/agent-runtime/loop/run-turn-preparation.d.ts.map +1 -0
  179. package/dist/agent-runtime/loop/run-unacquired.d.ts +19 -0
  180. package/dist/agent-runtime/loop/run-unacquired.d.ts.map +1 -0
  181. package/dist/agent-runtime/loop/runtime-admission-gate.d.ts.map +1 -0
  182. package/dist/agent-runtime/loop/runtime-control.d.ts +9 -0
  183. package/dist/agent-runtime/loop/runtime-control.d.ts.map +1 -0
  184. package/dist/agent-runtime/loop/runtime-recovery.d.ts +10 -0
  185. package/dist/agent-runtime/loop/runtime-recovery.d.ts.map +1 -0
  186. package/dist/agent-runtime/loop/runtime-state.d.ts +36 -0
  187. package/dist/agent-runtime/loop/runtime-state.d.ts.map +1 -0
  188. package/dist/agent-runtime/loop/runtime-submit.d.ts +5 -0
  189. package/dist/agent-runtime/loop/runtime-submit.d.ts.map +1 -0
  190. package/dist/agent-runtime/loop/runtime.d.ts +352 -0
  191. package/dist/agent-runtime/loop/runtime.d.ts.map +1 -0
  192. package/dist/agent-runtime/loop/state-slots.d.ts +48 -0
  193. package/dist/agent-runtime/loop/state-slots.d.ts.map +1 -0
  194. package/dist/agent-runtime/loop/state-tools.d.ts +117 -0
  195. package/dist/agent-runtime/loop/state-tools.d.ts.map +1 -0
  196. package/dist/agent-runtime/protocol.d.ts +1 -1
  197. package/dist/agent-runtime/protocol.d.ts.map +1 -1
  198. package/dist/agent-runtime/providers/ai-sdk-convert.d.ts +15 -0
  199. package/dist/agent-runtime/providers/ai-sdk-convert.d.ts.map +1 -0
  200. package/dist/agent-runtime/providers/ai-sdk.d.ts +31 -0
  201. package/dist/agent-runtime/providers/ai-sdk.d.ts.map +1 -0
  202. package/dist/agent-runtime/providers/anthropic-media.d.ts +11 -0
  203. package/dist/agent-runtime/providers/anthropic-media.d.ts.map +1 -0
  204. package/dist/agent-runtime/providers/anthropic-messages.d.ts +25 -0
  205. package/dist/agent-runtime/providers/anthropic-messages.d.ts.map +1 -0
  206. package/dist/agent-runtime/providers/anthropic-options.d.ts +80 -0
  207. package/dist/agent-runtime/providers/anthropic-options.d.ts.map +1 -0
  208. package/dist/agent-runtime/providers/anthropic-response.d.ts +19 -0
  209. package/dist/agent-runtime/providers/anthropic-response.d.ts.map +1 -0
  210. package/dist/agent-runtime/providers/anthropic-sse.d.ts.map +1 -0
  211. package/dist/agent-runtime/providers/anthropic.d.ts.map +1 -0
  212. package/dist/agent-runtime/providers/models-driver-step.d.ts +212 -0
  213. package/dist/agent-runtime/providers/models-driver-step.d.ts.map +1 -0
  214. package/dist/agent-runtime/providers/models-driver-telemetry.d.ts.map +1 -0
  215. package/dist/agent-runtime/providers/models-driver.d.ts +235 -0
  216. package/dist/agent-runtime/providers/models-driver.d.ts.map +1 -0
  217. package/dist/agent-runtime/providers/models.d.ts.map +1 -0
  218. package/dist/agent-runtime/providers/openai-messages.d.ts.map +1 -0
  219. package/dist/agent-runtime/providers/openai-options.d.ts +91 -0
  220. package/dist/agent-runtime/providers/openai-options.d.ts.map +1 -0
  221. package/dist/agent-runtime/providers/openai-response.d.ts +77 -0
  222. package/dist/agent-runtime/providers/openai-response.d.ts.map +1 -0
  223. package/dist/agent-runtime/providers/openai-sse-state.d.ts.map +1 -0
  224. package/dist/agent-runtime/providers/openai-sse.d.ts.map +1 -0
  225. package/dist/agent-runtime/providers/openai.d.ts.map +1 -0
  226. package/dist/agent-runtime/providers/openrouter-admission.d.ts +85 -0
  227. package/dist/agent-runtime/providers/openrouter-admission.d.ts.map +1 -0
  228. package/dist/agent-runtime/providers/openrouter-benchmarks.d.ts.map +1 -0
  229. package/dist/agent-runtime/providers/openrouter-catalog-cache.d.ts.map +1 -0
  230. package/dist/agent-runtime/providers/openrouter-catalog-query.d.ts +82 -0
  231. package/dist/agent-runtime/providers/openrouter-catalog-query.d.ts.map +1 -0
  232. package/dist/agent-runtime/providers/openrouter-catalog.d.ts.map +1 -0
  233. package/dist/agent-runtime/providers/openrouter-models.d.ts.map +1 -0
  234. package/dist/agent-runtime/providers/openrouter-options.d.ts +136 -0
  235. package/dist/agent-runtime/providers/openrouter-options.d.ts.map +1 -0
  236. package/dist/agent-runtime/providers/openrouter-response.d.ts +22 -0
  237. package/dist/agent-runtime/providers/openrouter-response.d.ts.map +1 -0
  238. package/dist/agent-runtime/providers/openrouter-route.d.ts.map +1 -0
  239. package/dist/agent-runtime/providers/openrouter-spend.d.ts +24 -0
  240. package/dist/agent-runtime/providers/openrouter-spend.d.ts.map +1 -0
  241. package/dist/agent-runtime/providers/openrouter.d.ts.map +1 -0
  242. package/dist/agent-runtime/providers/provider-cache.d.ts +30 -0
  243. package/dist/agent-runtime/providers/provider-cache.d.ts.map +1 -0
  244. package/dist/agent-runtime/providers/provider-content.d.ts.map +1 -0
  245. package/dist/agent-runtime/providers/provider-failure.d.ts +97 -0
  246. package/dist/agent-runtime/providers/provider-failure.d.ts.map +1 -0
  247. package/dist/agent-runtime/providers/provider-history.d.ts +13 -0
  248. package/dist/agent-runtime/providers/provider-history.d.ts.map +1 -0
  249. package/dist/agent-runtime/providers/provider-http.d.ts.map +1 -0
  250. package/dist/agent-runtime/providers/provider-journal.d.ts.map +1 -0
  251. package/dist/agent-runtime/providers/provider-json-schema-strip.d.ts.map +1 -0
  252. package/dist/agent-runtime/providers/provider-json-schema.d.ts +31 -0
  253. package/dist/agent-runtime/providers/provider-json-schema.d.ts.map +1 -0
  254. package/dist/agent-runtime/providers/provider-media.d.ts +49 -0
  255. package/dist/agent-runtime/providers/provider-media.d.ts.map +1 -0
  256. package/dist/agent-runtime/providers/provider-openai-chat-helpers.d.ts +27 -0
  257. package/dist/agent-runtime/providers/provider-openai-chat-helpers.d.ts.map +1 -0
  258. package/dist/agent-runtime/providers/provider-openai-chat-sse.d.ts +25 -0
  259. package/dist/agent-runtime/providers/provider-openai-chat-sse.d.ts.map +1 -0
  260. package/dist/agent-runtime/providers/provider-openai-chat.d.ts +27 -0
  261. package/dist/agent-runtime/providers/provider-openai-chat.d.ts.map +1 -0
  262. package/dist/agent-runtime/providers/provider-sse.d.ts.map +1 -0
  263. package/dist/agent-runtime/providers/provider-usage.d.ts +24 -0
  264. package/dist/agent-runtime/providers/provider-usage.d.ts.map +1 -0
  265. package/dist/agent-runtime/realtime/harness-realtime.d.ts +53 -0
  266. package/dist/agent-runtime/realtime/harness-realtime.d.ts.map +1 -0
  267. package/dist/agent-runtime/sandbox/sandbox-binding.d.ts.map +1 -0
  268. package/dist/agent-runtime/sandbox/sandbox-broker.d.ts.map +1 -0
  269. package/dist/agent-runtime/sandbox/sandbox-bubblewrap-args.d.ts.map +1 -0
  270. package/dist/agent-runtime/sandbox/sandbox-bubblewrap-storage.d.ts.map +1 -0
  271. package/dist/agent-runtime/sandbox/sandbox-bubblewrap.d.ts.map +1 -0
  272. package/dist/agent-runtime/sandbox/sandbox-coding-adapter.d.ts.map +1 -0
  273. package/dist/agent-runtime/sandbox/sandbox-contract.d.ts.map +1 -0
  274. package/dist/agent-runtime/sandbox/sandbox-process-linux.d.ts.map +1 -0
  275. package/dist/agent-runtime/sandbox/sandbox-process-macos.d.ts.map +1 -0
  276. package/dist/agent-runtime/sandbox/sandbox-process-owner.d.ts +19 -0
  277. package/dist/agent-runtime/sandbox/sandbox-process-owner.d.ts.map +1 -0
  278. package/dist/agent-runtime/sandbox/sandbox-process-spec.d.ts.map +1 -0
  279. package/dist/agent-runtime/sandbox/sandbox-process-wrapper.d.ts.map +1 -0
  280. package/dist/agent-runtime/sandbox/sandbox-process.d.ts +8 -0
  281. package/dist/agent-runtime/sandbox/sandbox-process.d.ts.map +1 -0
  282. package/dist/agent-runtime/sandbox/sandbox-session.d.ts.map +1 -0
  283. package/dist/agent-runtime/sandbox/sandbox.d.ts +125 -0
  284. package/dist/agent-runtime/sandbox/sandbox.d.ts.map +1 -0
  285. package/dist/agent-runtime/stores/archive-projection.d.ts.map +1 -0
  286. package/dist/agent-runtime/stores/archive-spill.d.ts.map +1 -0
  287. package/dist/agent-runtime/stores/branch-contract.d.ts.map +1 -0
  288. package/dist/agent-runtime/stores/branch-events.d.ts +25 -0
  289. package/dist/agent-runtime/stores/branch-events.d.ts.map +1 -0
  290. package/dist/agent-runtime/stores/branch-identities.d.ts +75 -0
  291. package/dist/agent-runtime/stores/branch-identities.d.ts.map +1 -0
  292. package/dist/agent-runtime/stores/branch-messages.d.ts +21 -0
  293. package/dist/agent-runtime/stores/branch-messages.d.ts.map +1 -0
  294. package/dist/agent-runtime/stores/branch-observations.d.ts +227 -0
  295. package/dist/agent-runtime/stores/branch-observations.d.ts.map +1 -0
  296. package/dist/agent-runtime/stores/branch-provider.d.ts.map +1 -0
  297. package/dist/agent-runtime/stores/branch-refusal.d.ts.map +1 -0
  298. package/dist/agent-runtime/stores/branch-replay.d.ts +456 -0
  299. package/dist/agent-runtime/stores/branch-replay.d.ts.map +1 -0
  300. package/dist/agent-runtime/stores/branch-runtime-tools.d.ts.map +1 -0
  301. package/dist/agent-runtime/stores/branch-source.d.ts +33 -0
  302. package/dist/agent-runtime/stores/branch-source.d.ts.map +1 -0
  303. package/dist/agent-runtime/stores/branch-transitions.d.ts.map +1 -0
  304. package/dist/agent-runtime/stores/child-blocking.d.ts.map +1 -0
  305. package/dist/agent-runtime/stores/child-budget-policy.d.ts +17 -0
  306. package/dist/agent-runtime/stores/child-budget-policy.d.ts.map +1 -0
  307. package/dist/agent-runtime/stores/child-tools.d.ts +144 -0
  308. package/dist/agent-runtime/stores/child-tools.d.ts.map +1 -0
  309. package/dist/agent-runtime/stores/children-contract.d.ts +236 -0
  310. package/dist/agent-runtime/stores/children-contract.d.ts.map +1 -0
  311. package/dist/agent-runtime/stores/children-control.d.ts.map +1 -0
  312. package/dist/agent-runtime/stores/children-spawn.d.ts.map +1 -0
  313. package/dist/agent-runtime/stores/children-state.d.ts.map +1 -0
  314. package/dist/agent-runtime/stores/children-usage.d.ts.map +1 -0
  315. package/dist/agent-runtime/stores/children.d.ts.map +1 -0
  316. package/dist/agent-runtime/stores/companion-host.d.ts +38 -0
  317. package/dist/agent-runtime/stores/companion-host.d.ts.map +1 -0
  318. package/dist/agent-runtime/stores/conversations.d.ts.map +1 -0
  319. package/dist/agent-runtime/stores/event-search-postgres.d.ts.map +1 -0
  320. package/dist/agent-runtime/stores/event-search-terms.d.ts.map +1 -0
  321. package/dist/agent-runtime/stores/event-search-tools.d.ts +190 -0
  322. package/dist/agent-runtime/stores/event-search-tools.d.ts.map +1 -0
  323. package/dist/agent-runtime/stores/event-search.d.ts.map +1 -0
  324. package/dist/agent-runtime/stores/postgres-schema.d.ts.map +1 -0
  325. package/dist/agent-runtime/stores/postgres-transactions.d.ts +54 -0
  326. package/dist/agent-runtime/stores/postgres-transactions.d.ts.map +1 -0
  327. package/dist/agent-runtime/stores/postgres.d.ts +72 -0
  328. package/dist/agent-runtime/stores/postgres.d.ts.map +1 -0
  329. package/dist/agent-runtime/stores/projections.d.ts +109 -0
  330. package/dist/agent-runtime/stores/projections.d.ts.map +1 -0
  331. package/dist/agent-runtime/stores/purge.d.ts.map +1 -0
  332. package/dist/agent-runtime/stores/schedule-contract.d.ts.map +1 -0
  333. package/dist/agent-runtime/stores/schedule-dispatch.d.ts.map +1 -0
  334. package/dist/agent-runtime/stores/schedule-records.d.ts.map +1 -0
  335. package/dist/agent-runtime/stores/schedule-tools.d.ts +76 -0
  336. package/dist/agent-runtime/stores/schedule-tools.d.ts.map +1 -0
  337. package/dist/agent-runtime/stores/schedules.d.ts.map +1 -0
  338. package/dist/agent-runtime/stores/spill.d.ts +26 -0
  339. package/dist/agent-runtime/stores/spill.d.ts.map +1 -0
  340. package/dist/agent-runtime/stores/sql-events.d.ts.map +1 -0
  341. package/dist/agent-runtime/stores/sql-history.d.ts.map +1 -0
  342. package/dist/agent-runtime/stores/sql-ledger.d.ts.map +1 -0
  343. package/dist/agent-runtime/stores/sql-purge.d.ts.map +1 -0
  344. package/dist/agent-runtime/stores/sql-reads.d.ts.map +1 -0
  345. package/dist/agent-runtime/stores/sql-rows.d.ts +202 -0
  346. package/dist/agent-runtime/stores/sql-rows.d.ts.map +1 -0
  347. package/dist/agent-runtime/stores/sql-session.d.ts.map +1 -0
  348. package/dist/agent-runtime/stores/sqlite-bun.d.ts.map +1 -0
  349. package/dist/agent-runtime/stores/sqlite-node.d.ts.map +1 -0
  350. package/dist/agent-runtime/stores/sqlite-purge.d.ts +6 -0
  351. package/dist/agent-runtime/stores/sqlite-purge.d.ts.map +1 -0
  352. package/dist/agent-runtime/stores/sqlite-schema.d.ts +7 -0
  353. package/dist/agent-runtime/stores/sqlite-schema.d.ts.map +1 -0
  354. package/dist/agent-runtime/stores/sqlite-transactions.d.ts +29 -0
  355. package/dist/agent-runtime/stores/sqlite-transactions.d.ts.map +1 -0
  356. package/dist/agent-runtime/stores/sqlite.d.ts +33 -0
  357. package/dist/agent-runtime/stores/sqlite.d.ts.map +1 -0
  358. package/dist/agent-runtime/stores/store-archive.d.ts.map +1 -0
  359. package/dist/agent-runtime/stores/store-branch.d.ts.map +1 -0
  360. package/dist/agent-runtime/stores/store-capabilities.d.ts.map +1 -0
  361. package/dist/agent-runtime/stores/store-create.d.ts.map +1 -0
  362. package/dist/agent-runtime/stores/store-driver-contract.d.ts +1016 -0
  363. package/dist/agent-runtime/stores/store-driver-contract.d.ts.map +1 -0
  364. package/dist/agent-runtime/stores/store-event-once.d.ts +37 -0
  365. package/dist/agent-runtime/stores/store-event-once.d.ts.map +1 -0
  366. package/dist/agent-runtime/stores/store-events.d.ts +2231 -0
  367. package/dist/agent-runtime/stores/store-events.d.ts.map +1 -0
  368. package/dist/agent-runtime/stores/store-memory-archive.d.ts.map +1 -0
  369. package/dist/agent-runtime/stores/store-memory-events.d.ts +7 -0
  370. package/dist/agent-runtime/stores/store-memory-events.d.ts.map +1 -0
  371. package/dist/agent-runtime/stores/store-memory.d.ts.map +1 -0
  372. package/dist/agent-runtime/stores/store-migrations/v1-to-v2.d.ts +6 -0
  373. package/dist/agent-runtime/stores/store-migrations/v1-to-v2.d.ts.map +1 -0
  374. package/dist/agent-runtime/stores/store-migrations/v2-to-v3.d.ts +14 -0
  375. package/dist/agent-runtime/stores/store-migrations/v2-to-v3.d.ts.map +1 -0
  376. package/dist/agent-runtime/stores/store-migrations/v3-to-v4.d.ts +4 -0
  377. package/dist/agent-runtime/stores/store-migrations/v3-to-v4.d.ts.map +1 -0
  378. package/dist/agent-runtime/stores/store-mutate.d.ts.map +1 -0
  379. package/dist/agent-runtime/stores/store-purge.d.ts.map +1 -0
  380. package/dist/agent-runtime/stores/store-reads.d.ts +29 -0
  381. package/dist/agent-runtime/stores/store-reads.d.ts.map +1 -0
  382. package/dist/agent-runtime/stores/store-reduce-history.d.ts +10 -0
  383. package/dist/agent-runtime/stores/store-reduce-history.d.ts.map +1 -0
  384. package/dist/agent-runtime/stores/store-reduce-run.d.ts +14 -0
  385. package/dist/agent-runtime/stores/store-reduce-run.d.ts.map +1 -0
  386. package/dist/agent-runtime/stores/store-reduce-shared.d.ts +78 -0
  387. package/dist/agent-runtime/stores/store-reduce-shared.d.ts.map +1 -0
  388. package/dist/agent-runtime/stores/store-reduce-terminal.d.ts +6 -0
  389. package/dist/agent-runtime/stores/store-reduce-terminal.d.ts.map +1 -0
  390. package/dist/agent-runtime/stores/store-reducer.d.ts +24 -0
  391. package/dist/agent-runtime/stores/store-reducer.d.ts.map +1 -0
  392. package/dist/agent-runtime/stores/store-replay.d.ts.map +1 -0
  393. package/dist/agent-runtime/stores/store-snapshot.d.ts +19 -0
  394. package/dist/agent-runtime/stores/store-snapshot.d.ts.map +1 -0
  395. package/dist/agent-runtime/stores/store.d.ts +3032 -0
  396. package/dist/agent-runtime/stores/store.d.ts.map +1 -0
  397. package/dist/agent-runtime/terminal-commit.d.ts +11 -11
  398. package/dist/agent-runtime/terminal-commit.d.ts.map +1 -1
  399. package/dist/agent-runtime/testing/fault-bench.d.ts.map +1 -0
  400. package/dist/agent-runtime/testing/run-assertions.d.ts +63 -0
  401. package/dist/agent-runtime/testing/run-assertions.d.ts.map +1 -0
  402. package/dist/agent-runtime/testing/store-conformance-branch.d.ts +7 -0
  403. package/dist/agent-runtime/testing/store-conformance-branch.d.ts.map +1 -0
  404. package/dist/agent-runtime/testing/store-conformance-capabilities.d.ts +6 -0
  405. package/dist/agent-runtime/testing/store-conformance-capabilities.d.ts.map +1 -0
  406. package/dist/agent-runtime/testing/store-conformance-event-once.d.ts +12 -0
  407. package/dist/agent-runtime/testing/store-conformance-event-once.d.ts.map +1 -0
  408. package/dist/agent-runtime/testing/store-conformance-lifecycle.d.ts +454 -0
  409. package/dist/agent-runtime/testing/store-conformance-lifecycle.d.ts.map +1 -0
  410. package/dist/agent-runtime/testing/store-conformance-ordering.d.ts +18 -0
  411. package/dist/agent-runtime/testing/store-conformance-ordering.d.ts.map +1 -0
  412. package/dist/agent-runtime/testing/store-conformance-seed.d.ts +8 -0
  413. package/dist/agent-runtime/testing/store-conformance-seed.d.ts.map +1 -0
  414. package/dist/agent-runtime/testing/store-conformance-support.d.ts +140 -0
  415. package/dist/agent-runtime/testing/store-conformance-support.d.ts.map +1 -0
  416. package/dist/agent-runtime/testing/store-conformance-terminal.d.ts +12 -0
  417. package/dist/agent-runtime/testing/store-conformance-terminal.d.ts.map +1 -0
  418. package/dist/agent-runtime/testing/store-conformance.d.ts +71 -0
  419. package/dist/agent-runtime/testing/store-conformance.d.ts.map +1 -0
  420. package/dist/agent-runtime/testing/testing.d.ts +46 -0
  421. package/dist/agent-runtime/testing/testing.d.ts.map +1 -0
  422. package/dist/application/grammy.d.ts +1 -1
  423. package/dist/browser/client-executors.d.ts.map +1 -1
  424. package/dist/browser/client.d.ts +3 -2
  425. package/dist/browser/client.d.ts.map +1 -1
  426. package/dist/browser/contract-identity.d.ts +1 -1
  427. package/dist/browser/http-fetch.d.ts +1 -1
  428. package/dist/browser/http.d.ts +6 -3
  429. package/dist/browser/http.d.ts.map +1 -1
  430. package/dist/browser/socket-io-contract.d.ts +1 -1
  431. package/dist/contract/bridge-envelope.d.ts +1 -1
  432. package/dist/contract/client-types.d.ts +4 -3
  433. package/dist/contract/client-types.d.ts.map +1 -1
  434. package/dist/contract/define.d.ts +2 -2
  435. package/dist/contract/errors-factory.d.ts +1 -1
  436. package/dist/contract/fingerprint.d.ts +1 -1
  437. package/dist/device-relay/hub.d.ts +1 -1
  438. package/dist/entrypoints/agent-executor/acp.js +38 -12
  439. package/dist/entrypoints/agent-executor/claude-sdk.js +1 -1
  440. package/dist/entrypoints/agent-executor/codex.js +2 -2
  441. package/dist/entrypoints/agent-executor/testing/claude-sdk.js +3 -3
  442. package/dist/entrypoints/agent-executor/testing.js +3 -3
  443. package/dist/entrypoints/agent-executor.js +1 -1
  444. package/dist/entrypoints/agent-runtime/ai-sdk.d.ts +3 -3
  445. package/dist/entrypoints/agent-runtime/ai-sdk.d.ts.map +1 -1
  446. package/dist/entrypoints/agent-runtime/ai-sdk.js +9 -8
  447. package/dist/entrypoints/agent-runtime/anthropic.d.ts +3 -3
  448. package/dist/entrypoints/agent-runtime/anthropic.d.ts.map +1 -1
  449. package/dist/entrypoints/agent-runtime/anthropic.js +72 -18
  450. package/dist/entrypoints/agent-runtime/browser.d.ts +6 -6
  451. package/dist/entrypoints/agent-runtime/browser.d.ts.map +1 -1
  452. package/dist/entrypoints/agent-runtime/browser.js +39 -39
  453. package/dist/entrypoints/agent-runtime/coding-tools.d.ts +1 -1
  454. package/dist/entrypoints/agent-runtime/coding-tools.d.ts.map +1 -1
  455. package/dist/entrypoints/agent-runtime/coding-tools.js +2 -2
  456. package/dist/entrypoints/agent-runtime/harness.d.ts +1 -1
  457. package/dist/entrypoints/agent-runtime/harness.d.ts.map +1 -1
  458. package/dist/entrypoints/agent-runtime/harness.js +27 -28
  459. package/dist/entrypoints/agent-runtime/openai.d.ts +3 -3
  460. package/dist/entrypoints/agent-runtime/openai.d.ts.map +1 -1
  461. package/dist/entrypoints/agent-runtime/openai.js +9 -9
  462. package/dist/entrypoints/agent-runtime/openrouter.d.ts +10 -10
  463. package/dist/entrypoints/agent-runtime/openrouter.d.ts.map +1 -1
  464. package/dist/entrypoints/agent-runtime/openrouter.js +167 -113
  465. package/dist/entrypoints/agent-runtime/postgres.d.ts +2 -2
  466. package/dist/entrypoints/agent-runtime/postgres.d.ts.map +1 -1
  467. package/dist/entrypoints/agent-runtime/postgres.js +11 -11
  468. package/dist/entrypoints/agent-runtime/react.d.ts +1 -1
  469. package/dist/entrypoints/agent-runtime/react.d.ts.map +1 -1
  470. package/dist/entrypoints/agent-runtime/react.js +1 -1
  471. package/dist/entrypoints/agent-runtime/realtime.d.ts +1 -1
  472. package/dist/entrypoints/agent-runtime/realtime.d.ts.map +1 -1
  473. package/dist/entrypoints/agent-runtime/realtime.js +5 -5
  474. package/dist/entrypoints/agent-runtime/sandbox.d.ts +9 -9
  475. package/dist/entrypoints/agent-runtime/sandbox.d.ts.map +1 -1
  476. package/dist/entrypoints/agent-runtime/sandbox.js +220 -93
  477. package/dist/entrypoints/agent-runtime/sqlite/bun.d.ts +1 -1
  478. package/dist/entrypoints/agent-runtime/sqlite/bun.d.ts.map +1 -1
  479. package/dist/entrypoints/agent-runtime/sqlite/bun.js +8 -8
  480. package/dist/entrypoints/agent-runtime/sqlite/node.d.ts +1 -1
  481. package/dist/entrypoints/agent-runtime/sqlite/node.d.ts.map +1 -1
  482. package/dist/entrypoints/agent-runtime/sqlite/node.js +8 -8
  483. package/dist/entrypoints/agent-runtime/testing.d.ts +4 -4
  484. package/dist/entrypoints/agent-runtime/testing.d.ts.map +1 -1
  485. package/dist/entrypoints/agent-runtime/testing.js +21 -21
  486. package/dist/entrypoints/agent-runtime.d.ts +50 -50
  487. package/dist/entrypoints/agent-runtime.d.ts.map +1 -1
  488. package/dist/entrypoints/agent-runtime.js +2853 -3107
  489. package/dist/entrypoints/bin/upgrade-cli.js +1 -1
  490. package/dist/entrypoints/cli.js +8 -9
  491. package/dist/entrypoints/files/packaging.js +2 -2
  492. package/dist/entrypoints/handler.js +2 -2
  493. package/dist/entrypoints/http.js +2 -2
  494. package/dist/entrypoints/index.js +2 -2
  495. package/dist/entrypoints/node.js +2 -2
  496. package/dist/entrypoints/react.js +1 -1
  497. package/dist/entrypoints/remote.js +2 -2
  498. package/dist/entrypoints/server.js +4 -4
  499. package/dist/entrypoints/testing.js +7 -9
  500. package/dist/entrypoints/tools/agent.js +476 -13
  501. package/dist/entrypoints/tools/connections.js +9 -7
  502. package/dist/entrypoints/tools/contract.js +4 -4
  503. package/dist/entrypoints/tools/invoker.js +7 -8
  504. package/dist/entrypoints/tools/mcp.js +11 -13
  505. package/dist/entrypoints/tools/toolkit.d.ts +6 -4
  506. package/dist/entrypoints/tools/toolkit.d.ts.map +1 -1
  507. package/dist/entrypoints/tools/toolkit.js +13 -20
  508. package/dist/entrypoints/tools.js +14 -15
  509. package/dist/files/native-packaging-layout.d.ts +1 -1
  510. package/dist/index-125ks2ec.js +17 -0
  511. package/dist/index-1w69rj9f.js +224 -0
  512. package/dist/index-1zy31r3b.js +26 -0
  513. package/dist/index-3czc3ykr.js +53 -0
  514. package/dist/index-3d2c45jn.js +77 -0
  515. package/dist/index-57sbckhv.js +271 -0
  516. package/dist/index-64t6pheq.js +2872 -0
  517. package/dist/index-73wq9abg.js +367 -0
  518. package/dist/index-7mjsb7zv.js +163 -0
  519. package/dist/index-84tp547a.js +981 -0
  520. package/dist/index-9be3tf6r.js +196 -0
  521. package/dist/index-a09r9ff0.js +76 -0
  522. package/dist/index-asnd4h2k.js +969 -0
  523. package/dist/index-b4c9dpzm.js +1210 -0
  524. package/dist/index-baba8ehy.js +53 -0
  525. package/dist/index-c24bj2r1.js +510 -0
  526. package/dist/index-cgjtj8zh.js +707 -0
  527. package/dist/index-d4at0q09.js +601 -0
  528. package/dist/index-de7b0kvz.js +215 -0
  529. package/dist/index-dm84tsd5.js +164 -0
  530. package/dist/index-fsw9wxk9.js +349 -0
  531. package/dist/index-gk6dq9ay.js +124 -0
  532. package/dist/index-gs0jw0hy.js +174 -0
  533. package/dist/index-hce3hbdg.js +121 -0
  534. package/dist/index-m2b49tvc.js +2343 -0
  535. package/dist/index-mcv7b2n0.js +3545 -0
  536. package/dist/index-n9358ydy.js +63 -0
  537. package/dist/index-npfdymav.js +409 -0
  538. package/dist/index-p9cab61p.js +305 -0
  539. package/dist/index-q86qnzzf.js +231 -0
  540. package/dist/index-qcy8et93.js +698 -0
  541. package/dist/index-refgnzy0.js +158 -0
  542. package/dist/index-rkphknhx.js +40 -0
  543. package/dist/index-v0j22shs.js +3781 -0
  544. package/dist/index-vse7x1qt.js +460 -0
  545. package/dist/index-wdb5jhas.js +51 -0
  546. package/dist/index-ws0awmzq.js +47 -0
  547. package/dist/index-wsv11dhg.js +725 -0
  548. package/dist/index-xbb8ysmq.js +40 -0
  549. package/dist/index-y0mwkgkf.js +7812 -0
  550. package/dist/index-yhwx4fwk.js +295 -0
  551. package/dist/index-z72vazf5.js +502 -0
  552. package/dist/index-zfrysr1e.js +710 -0
  553. package/dist/internal/postgres-query.d.ts +1 -1
  554. package/dist/json-schema/dialect.d.ts.map +1 -1
  555. package/dist/json-schema/string-format.d.ts.map +1 -1
  556. package/dist/react/query-client.d.ts +1 -1
  557. package/dist/server/bridge-host.d.ts +1 -1
  558. package/dist/server/bun.d.ts +1 -1
  559. package/dist/server/endpoint-dispatch.d.ts.map +1 -1
  560. package/dist/server/middleware/cors.d.ts +3 -3
  561. package/dist/server/middleware/cors.d.ts.map +1 -1
  562. package/dist/server/socket-io-config.d.ts +1 -1
  563. package/dist/service-host/identity.d.ts +1 -1
  564. package/dist/service-host/systemd-inspect.d.ts +1 -1
  565. package/dist/testing/manual-clock.d.ts +1 -1
  566. package/dist/tools/agent-call-context.d.ts +23 -0
  567. package/dist/tools/agent-call-context.d.ts.map +1 -0
  568. package/dist/tools/agent.d.ts.map +1 -1
  569. package/dist/tools/connections/types.d.ts +1 -1
  570. package/dist/tools/mcp/handler.d.ts +1 -1
  571. package/dist/tools/mcp/lazy-discovery.d.ts +1 -1
  572. package/dist/tools/mcp/mount.d.ts +1 -1
  573. package/dist/tools/mcp/stdio.d.ts +1 -1
  574. package/dist/tools/schema/flatten.d.ts.map +1 -1
  575. package/dist/tools/toolkit.d.ts +8 -6
  576. package/dist/tools/toolkit.d.ts.map +1 -1
  577. package/llms/agent-runtime-ai-sdk.txt +2 -2
  578. package/llms/agent-runtime-anthropic.txt +8 -4
  579. package/llms/agent-runtime-browser.txt +1 -1
  580. package/llms/agent-runtime-openrouter.txt +4 -4
  581. package/llms/agent-runtime-sandbox.txt +20 -7
  582. package/llms/agent-runtime-sqlite-bun.txt +1 -1
  583. package/llms/agent-runtime.2.txt +1 -1
  584. package/llms/agent-runtime.3.txt +23 -7
  585. package/llms/agent-runtime.4.txt +2 -2
  586. package/llms/agent-runtime.txt +23 -10
  587. package/llms/application.2.txt +4 -4
  588. package/llms/application.txt +4 -4
  589. package/llms/cli.2.txt +30 -6
  590. package/llms/cli.txt +2 -2
  591. package/llms/contract.txt +2 -2
  592. package/llms/files-packaging.txt +1 -1
  593. package/llms/geo.txt +1 -1
  594. package/llms/live.txt +1 -1
  595. package/llms/oauth.txt +4 -4
  596. package/llms/observability.txt +3 -3
  597. package/llms/primitives.txt +1 -1
  598. package/llms/process.2.txt +7 -7
  599. package/llms/react.txt +4 -4
  600. package/llms/server.2.txt +7 -7
  601. package/llms/server.3.txt +5 -5
  602. package/llms/server.4.txt +6 -6
  603. package/llms/server.txt +23 -11
  604. package/llms/stitchkit.2.txt +21 -14
  605. package/llms/stitchkit.3.txt +1 -1
  606. package/llms/stitchkit.txt +87 -87
  607. package/llms/telegram.txt +1 -1
  608. package/llms/testing.txt +4 -4
  609. package/llms/tools-connections.txt +1 -1
  610. package/llms/tools-toolkit.txt +3 -4
  611. package/llms/tools.2.txt +6 -6
  612. package/llms/tools.3.txt +8 -8
  613. package/llms/tools.4.txt +3 -3
  614. package/llms/upgrading-0.106.0-0.126.0.txt +1 -1
  615. package/llms/upgrading-0.128.0-0.135.0.txt +700 -0
  616. package/llms/upgrading-0.37.0-0.53.0.txt +7 -7
  617. package/llms/upgrading-0.69.0-0.95.0.txt +1 -1
  618. package/llms/upgrading-0.96.0-0.105.0.txt +1 -1
  619. package/llms/upgrading.txt +1 -1
  620. package/llms-full.txt +403 -248
  621. package/llms.txt +12 -12
  622. package/package.json +1 -1
  623. package/dist/agent-runtime/admission-lanes.d.ts +0 -35
  624. package/dist/agent-runtime/admission-lanes.d.ts.map +0 -1
  625. package/dist/agent-runtime/ai-sdk-convert.d.ts +0 -15
  626. package/dist/agent-runtime/ai-sdk-convert.d.ts.map +0 -1
  627. package/dist/agent-runtime/ai-sdk.d.ts +0 -31
  628. package/dist/agent-runtime/ai-sdk.d.ts.map +0 -1
  629. package/dist/agent-runtime/anthropic-media.d.ts +0 -11
  630. package/dist/agent-runtime/anthropic-media.d.ts.map +0 -1
  631. package/dist/agent-runtime/anthropic-messages.d.ts +0 -24
  632. package/dist/agent-runtime/anthropic-messages.d.ts.map +0 -1
  633. package/dist/agent-runtime/anthropic-options.d.ts +0 -79
  634. package/dist/agent-runtime/anthropic-options.d.ts.map +0 -1
  635. package/dist/agent-runtime/anthropic-response.d.ts +0 -19
  636. package/dist/agent-runtime/anthropic-response.d.ts.map +0 -1
  637. package/dist/agent-runtime/anthropic-sse.d.ts.map +0 -1
  638. package/dist/agent-runtime/anthropic.d.ts.map +0 -1
  639. package/dist/agent-runtime/archive-projection.d.ts.map +0 -1
  640. package/dist/agent-runtime/archive-spill.d.ts.map +0 -1
  641. package/dist/agent-runtime/branch-contract.d.ts.map +0 -1
  642. package/dist/agent-runtime/branch-events.d.ts +0 -25
  643. package/dist/agent-runtime/branch-events.d.ts.map +0 -1
  644. package/dist/agent-runtime/branch-identities.d.ts +0 -75
  645. package/dist/agent-runtime/branch-identities.d.ts.map +0 -1
  646. package/dist/agent-runtime/branch-messages.d.ts +0 -21
  647. package/dist/agent-runtime/branch-messages.d.ts.map +0 -1
  648. package/dist/agent-runtime/branch-observations.d.ts +0 -227
  649. package/dist/agent-runtime/branch-observations.d.ts.map +0 -1
  650. package/dist/agent-runtime/branch-provider.d.ts.map +0 -1
  651. package/dist/agent-runtime/branch-refusal.d.ts.map +0 -1
  652. package/dist/agent-runtime/branch-replay.d.ts +0 -456
  653. package/dist/agent-runtime/branch-replay.d.ts.map +0 -1
  654. package/dist/agent-runtime/branch-runtime-tools.d.ts.map +0 -1
  655. package/dist/agent-runtime/branch-source.d.ts +0 -33
  656. package/dist/agent-runtime/branch-source.d.ts.map +0 -1
  657. package/dist/agent-runtime/branch-transitions.d.ts.map +0 -1
  658. package/dist/agent-runtime/browser-control-contract.d.ts +0 -1364
  659. package/dist/agent-runtime/browser-control-contract.d.ts.map +0 -1
  660. package/dist/agent-runtime/browser-controller-view.d.ts +0 -44
  661. package/dist/agent-runtime/browser-controller-view.d.ts.map +0 -1
  662. package/dist/agent-runtime/browser-controller.d.ts +0 -53
  663. package/dist/agent-runtime/browser-controller.d.ts.map +0 -1
  664. package/dist/agent-runtime/child-blocking.d.ts.map +0 -1
  665. package/dist/agent-runtime/child-budget-policy.d.ts +0 -17
  666. package/dist/agent-runtime/child-budget-policy.d.ts.map +0 -1
  667. package/dist/agent-runtime/child-tools.d.ts +0 -144
  668. package/dist/agent-runtime/child-tools.d.ts.map +0 -1
  669. package/dist/agent-runtime/children-contract.d.ts +0 -236
  670. package/dist/agent-runtime/children-contract.d.ts.map +0 -1
  671. package/dist/agent-runtime/children-control.d.ts.map +0 -1
  672. package/dist/agent-runtime/children-spawn.d.ts.map +0 -1
  673. package/dist/agent-runtime/children-state.d.ts.map +0 -1
  674. package/dist/agent-runtime/children-usage.d.ts.map +0 -1
  675. package/dist/agent-runtime/children.d.ts.map +0 -1
  676. package/dist/agent-runtime/coding-discovery.d.ts +0 -25
  677. package/dist/agent-runtime/coding-discovery.d.ts.map +0 -1
  678. package/dist/agent-runtime/coding-sandbox.d.ts +0 -8
  679. package/dist/agent-runtime/coding-sandbox.d.ts.map +0 -1
  680. package/dist/agent-runtime/coding-search-automaton.d.ts.map +0 -1
  681. package/dist/agent-runtime/coding-search-case-fold.d.ts.map +0 -1
  682. package/dist/agent-runtime/coding-search-class-ranges.d.ts.map +0 -1
  683. package/dist/agent-runtime/coding-search-contract.d.ts.map +0 -1
  684. package/dist/agent-runtime/coding-search-limits.d.ts.map +0 -1
  685. package/dist/agent-runtime/coding-search-matcher.d.ts.map +0 -1
  686. package/dist/agent-runtime/coding-search-output.d.ts.map +0 -1
  687. package/dist/agent-runtime/coding-search-regex-syntax.d.ts.map +0 -1
  688. package/dist/agent-runtime/coding-search-unit-classes.d.ts.map +0 -1
  689. package/dist/agent-runtime/coding-shell-process.d.ts +0 -36
  690. package/dist/agent-runtime/coding-shell-process.d.ts.map +0 -1
  691. package/dist/agent-runtime/coding-tool-contract.d.ts +0 -261
  692. package/dist/agent-runtime/coding-tool-contract.d.ts.map +0 -1
  693. package/dist/agent-runtime/coding-tool-files.d.ts.map +0 -1
  694. package/dist/agent-runtime/coding-tool-listing.d.ts.map +0 -1
  695. package/dist/agent-runtime/coding-tool-paths.d.ts +0 -53
  696. package/dist/agent-runtime/coding-tool-paths.d.ts.map +0 -1
  697. package/dist/agent-runtime/coding-tool-refusals.d.ts.map +0 -1
  698. package/dist/agent-runtime/coding-tool-search-patch.d.ts.map +0 -1
  699. package/dist/agent-runtime/coding-tool-search.d.ts +0 -113
  700. package/dist/agent-runtime/coding-tool-search.d.ts.map +0 -1
  701. package/dist/agent-runtime/coding-tool-shell.d.ts.map +0 -1
  702. package/dist/agent-runtime/coding-tool-utf8.d.ts.map +0 -1
  703. package/dist/agent-runtime/coding-tools.d.ts.map +0 -1
  704. package/dist/agent-runtime/compaction.d.ts +0 -103
  705. package/dist/agent-runtime/compaction.d.ts.map +0 -1
  706. package/dist/agent-runtime/companion-host.d.ts +0 -38
  707. package/dist/agent-runtime/companion-host.d.ts.map +0 -1
  708. package/dist/agent-runtime/contained-scan-budget.d.ts.map +0 -1
  709. package/dist/agent-runtime/contained-scan-contract.d.ts.map +0 -1
  710. package/dist/agent-runtime/contained-scan.d.ts +0 -56
  711. package/dist/agent-runtime/contained-scan.d.ts.map +0 -1
  712. package/dist/agent-runtime/control-interaction-schema.d.ts.map +0 -1
  713. package/dist/agent-runtime/control-schema.d.ts +0 -1378
  714. package/dist/agent-runtime/control-schema.d.ts.map +0 -1
  715. package/dist/agent-runtime/control-view.d.ts +0 -64
  716. package/dist/agent-runtime/control-view.d.ts.map +0 -1
  717. package/dist/agent-runtime/conversations.d.ts.map +0 -1
  718. package/dist/agent-runtime/coordinator.d.ts.map +0 -1
  719. package/dist/agent-runtime/deferred-tool-search.d.ts +0 -9
  720. package/dist/agent-runtime/deferred-tool-search.d.ts.map +0 -1
  721. package/dist/agent-runtime/deferred-tool-selection.d.ts +0 -32
  722. package/dist/agent-runtime/deferred-tool-selection.d.ts.map +0 -1
  723. package/dist/agent-runtime/deferred-tools-internal.d.ts +0 -9
  724. package/dist/agent-runtime/deferred-tools-internal.d.ts.map +0 -1
  725. package/dist/agent-runtime/deferred-tools.d.ts +0 -4
  726. package/dist/agent-runtime/deferred-tools.d.ts.map +0 -1
  727. package/dist/agent-runtime/event-search-postgres.d.ts.map +0 -1
  728. package/dist/agent-runtime/event-search-terms.d.ts.map +0 -1
  729. package/dist/agent-runtime/event-search-tools.d.ts +0 -190
  730. package/dist/agent-runtime/event-search-tools.d.ts.map +0 -1
  731. package/dist/agent-runtime/event-search.d.ts.map +0 -1
  732. package/dist/agent-runtime/fault-bench.d.ts.map +0 -1
  733. package/dist/agent-runtime/harness-contract.d.ts +0 -206
  734. package/dist/agent-runtime/harness-contract.d.ts.map +0 -1
  735. package/dist/agent-runtime/harness-control.d.ts +0 -34
  736. package/dist/agent-runtime/harness-control.d.ts.map +0 -1
  737. package/dist/agent-runtime/harness-file-resources.d.ts +0 -33
  738. package/dist/agent-runtime/harness-file-resources.d.ts.map +0 -1
  739. package/dist/agent-runtime/harness-realtime.d.ts +0 -53
  740. package/dist/agent-runtime/harness-realtime.d.ts.map +0 -1
  741. package/dist/agent-runtime/harness-resources.d.ts.map +0 -1
  742. package/dist/agent-runtime/harness.d.ts +0 -15
  743. package/dist/agent-runtime/harness.d.ts.map +0 -1
  744. package/dist/agent-runtime/history.d.ts +0 -93
  745. package/dist/agent-runtime/history.d.ts.map +0 -1
  746. package/dist/agent-runtime/injection.d.ts +0 -28
  747. package/dist/agent-runtime/injection.d.ts.map +0 -1
  748. package/dist/agent-runtime/invocation-attempt.d.ts +0 -32
  749. package/dist/agent-runtime/invocation-attempt.d.ts.map +0 -1
  750. package/dist/agent-runtime/invocation-failure.d.ts.map +0 -1
  751. package/dist/agent-runtime/invocation-payload.d.ts +0 -38
  752. package/dist/agent-runtime/invocation-payload.d.ts.map +0 -1
  753. package/dist/agent-runtime/invocation-read.d.ts +0 -134
  754. package/dist/agent-runtime/invocation-read.d.ts.map +0 -1
  755. package/dist/agent-runtime/invocation-spend.d.ts +0 -9
  756. package/dist/agent-runtime/invocation-spend.d.ts.map +0 -1
  757. package/dist/agent-runtime/invocation-stream.d.ts +0 -20
  758. package/dist/agent-runtime/invocation-stream.d.ts.map +0 -1
  759. package/dist/agent-runtime/invocations.d.ts +0 -63
  760. package/dist/agent-runtime/invocations.d.ts.map +0 -1
  761. package/dist/agent-runtime/managed-tools.d.ts +0 -20
  762. package/dist/agent-runtime/managed-tools.d.ts.map +0 -1
  763. package/dist/agent-runtime/models-driver-step.d.ts +0 -212
  764. package/dist/agent-runtime/models-driver-step.d.ts.map +0 -1
  765. package/dist/agent-runtime/models-driver-telemetry.d.ts.map +0 -1
  766. package/dist/agent-runtime/models-driver.d.ts +0 -235
  767. package/dist/agent-runtime/models-driver.d.ts.map +0 -1
  768. package/dist/agent-runtime/models.d.ts.map +0 -1
  769. package/dist/agent-runtime/observability.d.ts +0 -579
  770. package/dist/agent-runtime/observability.d.ts.map +0 -1
  771. package/dist/agent-runtime/openai-messages.d.ts.map +0 -1
  772. package/dist/agent-runtime/openai-options.d.ts +0 -91
  773. package/dist/agent-runtime/openai-options.d.ts.map +0 -1
  774. package/dist/agent-runtime/openai-response.d.ts +0 -77
  775. package/dist/agent-runtime/openai-response.d.ts.map +0 -1
  776. package/dist/agent-runtime/openai-sse-state.d.ts.map +0 -1
  777. package/dist/agent-runtime/openai-sse.d.ts.map +0 -1
  778. package/dist/agent-runtime/openai.d.ts.map +0 -1
  779. package/dist/agent-runtime/openrouter-admission.d.ts +0 -84
  780. package/dist/agent-runtime/openrouter-admission.d.ts.map +0 -1
  781. package/dist/agent-runtime/openrouter-benchmarks.d.ts.map +0 -1
  782. package/dist/agent-runtime/openrouter-catalog-cache.d.ts.map +0 -1
  783. package/dist/agent-runtime/openrouter-catalog-query.d.ts +0 -57
  784. package/dist/agent-runtime/openrouter-catalog-query.d.ts.map +0 -1
  785. package/dist/agent-runtime/openrouter-catalog.d.ts.map +0 -1
  786. package/dist/agent-runtime/openrouter-models.d.ts.map +0 -1
  787. package/dist/agent-runtime/openrouter-options.d.ts +0 -136
  788. package/dist/agent-runtime/openrouter-options.d.ts.map +0 -1
  789. package/dist/agent-runtime/openrouter-response.d.ts +0 -22
  790. package/dist/agent-runtime/openrouter-response.d.ts.map +0 -1
  791. package/dist/agent-runtime/openrouter-route.d.ts.map +0 -1
  792. package/dist/agent-runtime/openrouter-spend.d.ts +0 -24
  793. package/dist/agent-runtime/openrouter-spend.d.ts.map +0 -1
  794. package/dist/agent-runtime/openrouter.d.ts.map +0 -1
  795. package/dist/agent-runtime/owned-provider-stream.d.ts.map +0 -1
  796. package/dist/agent-runtime/postgres-schema.d.ts.map +0 -1
  797. package/dist/agent-runtime/postgres-transactions.d.ts +0 -54
  798. package/dist/agent-runtime/postgres-transactions.d.ts.map +0 -1
  799. package/dist/agent-runtime/postgres.d.ts +0 -72
  800. package/dist/agent-runtime/postgres.d.ts.map +0 -1
  801. package/dist/agent-runtime/projections.d.ts +0 -109
  802. package/dist/agent-runtime/projections.d.ts.map +0 -1
  803. package/dist/agent-runtime/provider-cache.d.ts +0 -30
  804. package/dist/agent-runtime/provider-cache.d.ts.map +0 -1
  805. package/dist/agent-runtime/provider-content.d.ts.map +0 -1
  806. package/dist/agent-runtime/provider-failure.d.ts +0 -95
  807. package/dist/agent-runtime/provider-failure.d.ts.map +0 -1
  808. package/dist/agent-runtime/provider-history.d.ts +0 -13
  809. package/dist/agent-runtime/provider-history.d.ts.map +0 -1
  810. package/dist/agent-runtime/provider-http.d.ts.map +0 -1
  811. package/dist/agent-runtime/provider-journal.d.ts.map +0 -1
  812. package/dist/agent-runtime/provider-json-schema-strip.d.ts.map +0 -1
  813. package/dist/agent-runtime/provider-json-schema.d.ts +0 -28
  814. package/dist/agent-runtime/provider-json-schema.d.ts.map +0 -1
  815. package/dist/agent-runtime/provider-media.d.ts +0 -49
  816. package/dist/agent-runtime/provider-media.d.ts.map +0 -1
  817. package/dist/agent-runtime/provider-openai-chat-helpers.d.ts +0 -27
  818. package/dist/agent-runtime/provider-openai-chat-helpers.d.ts.map +0 -1
  819. package/dist/agent-runtime/provider-openai-chat-sse.d.ts +0 -25
  820. package/dist/agent-runtime/provider-openai-chat-sse.d.ts.map +0 -1
  821. package/dist/agent-runtime/provider-openai-chat.d.ts +0 -27
  822. package/dist/agent-runtime/provider-openai-chat.d.ts.map +0 -1
  823. package/dist/agent-runtime/provider-origin.d.ts +0 -10
  824. package/dist/agent-runtime/provider-origin.d.ts.map +0 -1
  825. package/dist/agent-runtime/provider-sse.d.ts.map +0 -1
  826. package/dist/agent-runtime/provider-stream-parts.d.ts +0 -5
  827. package/dist/agent-runtime/provider-stream-parts.d.ts.map +0 -1
  828. package/dist/agent-runtime/provider-stream-segments.d.ts +0 -63
  829. package/dist/agent-runtime/provider-stream-segments.d.ts.map +0 -1
  830. package/dist/agent-runtime/provider-usage.d.ts +0 -24
  831. package/dist/agent-runtime/provider-usage.d.ts.map +0 -1
  832. package/dist/agent-runtime/purge.d.ts.map +0 -1
  833. package/dist/agent-runtime/react.d.ts.map +0 -1
  834. package/dist/agent-runtime/retry-policy.d.ts +0 -49
  835. package/dist/agent-runtime/retry-policy.d.ts.map +0 -1
  836. package/dist/agent-runtime/run-acquisition.d.ts +0 -24
  837. package/dist/agent-runtime/run-acquisition.d.ts.map +0 -1
  838. package/dist/agent-runtime/run-approval.d.ts +0 -82
  839. package/dist/agent-runtime/run-approval.d.ts.map +0 -1
  840. package/dist/agent-runtime/run-assertions.d.ts +0 -63
  841. package/dist/agent-runtime/run-assertions.d.ts.map +0 -1
  842. package/dist/agent-runtime/run-complete-retry.d.ts +0 -24
  843. package/dist/agent-runtime/run-complete-retry.d.ts.map +0 -1
  844. package/dist/agent-runtime/run-complete-stream.d.ts +0 -9
  845. package/dist/agent-runtime/run-complete-stream.d.ts.map +0 -1
  846. package/dist/agent-runtime/run-complete-tools.d.ts +0 -21
  847. package/dist/agent-runtime/run-complete-tools.d.ts.map +0 -1
  848. package/dist/agent-runtime/run-complete-types.d.ts +0 -168
  849. package/dist/agent-runtime/run-complete-types.d.ts.map +0 -1
  850. package/dist/agent-runtime/run-complete.d.ts +0 -25
  851. package/dist/agent-runtime/run-complete.d.ts.map +0 -1
  852. package/dist/agent-runtime/run-driver-compose.d.ts +0 -21
  853. package/dist/agent-runtime/run-driver-compose.d.ts.map +0 -1
  854. package/dist/agent-runtime/run-execution-state.d.ts +0 -178
  855. package/dist/agent-runtime/run-execution-state.d.ts.map +0 -1
  856. package/dist/agent-runtime/run-execution.d.ts +0 -22
  857. package/dist/agent-runtime/run-execution.d.ts.map +0 -1
  858. package/dist/agent-runtime/run-failure.d.ts +0 -21
  859. package/dist/agent-runtime/run-failure.d.ts.map +0 -1
  860. package/dist/agent-runtime/run-history-parts.d.ts +0 -14
  861. package/dist/agent-runtime/run-history-parts.d.ts.map +0 -1
  862. package/dist/agent-runtime/run-loop-events.d.ts +0 -126
  863. package/dist/agent-runtime/run-loop-events.d.ts.map +0 -1
  864. package/dist/agent-runtime/run-model-attempts.d.ts +0 -6
  865. package/dist/agent-runtime/run-model-attempts.d.ts.map +0 -1
  866. package/dist/agent-runtime/run-model-messages.d.ts +0 -9
  867. package/dist/agent-runtime/run-model-messages.d.ts.map +0 -1
  868. package/dist/agent-runtime/run-model-step.d.ts +0 -43
  869. package/dist/agent-runtime/run-model-step.d.ts.map +0 -1
  870. package/dist/agent-runtime/run-model-stream.d.ts +0 -27
  871. package/dist/agent-runtime/run-model-stream.d.ts.map +0 -1
  872. package/dist/agent-runtime/run-operation-lifecycle.d.ts +0 -32
  873. package/dist/agent-runtime/run-operation-lifecycle.d.ts.map +0 -1
  874. package/dist/agent-runtime/run-prompt-history.d.ts +0 -53
  875. package/dist/agent-runtime/run-prompt-history.d.ts.map +0 -1
  876. package/dist/agent-runtime/run-provider-ledger.d.ts +0 -32
  877. package/dist/agent-runtime/run-provider-ledger.d.ts.map +0 -1
  878. package/dist/agent-runtime/run-step-barriers.d.ts +0 -114
  879. package/dist/agent-runtime/run-step-barriers.d.ts.map +0 -1
  880. package/dist/agent-runtime/run-step-helpers.d.ts +0 -49
  881. package/dist/agent-runtime/run-step-helpers.d.ts.map +0 -1
  882. package/dist/agent-runtime/run-step-prepare.d.ts +0 -34
  883. package/dist/agent-runtime/run-step-prepare.d.ts.map +0 -1
  884. package/dist/agent-runtime/run-step-spend.d.ts +0 -394
  885. package/dist/agent-runtime/run-step-spend.d.ts.map +0 -1
  886. package/dist/agent-runtime/run-stream-parts.d.ts +0 -34
  887. package/dist/agent-runtime/run-stream-parts.d.ts.map +0 -1
  888. package/dist/agent-runtime/run-stream-recorded.d.ts +0 -8
  889. package/dist/agent-runtime/run-stream-recorded.d.ts.map +0 -1
  890. package/dist/agent-runtime/run-stream-step-text.d.ts +0 -29
  891. package/dist/agent-runtime/run-stream-step-text.d.ts.map +0 -1
  892. package/dist/agent-runtime/run-terminal.d.ts +0 -11
  893. package/dist/agent-runtime/run-terminal.d.ts.map +0 -1
  894. package/dist/agent-runtime/run-tool-approval-flow.d.ts +0 -36
  895. package/dist/agent-runtime/run-tool-approval-flow.d.ts.map +0 -1
  896. package/dist/agent-runtime/run-tool-approval-records.d.ts +0 -24
  897. package/dist/agent-runtime/run-tool-approval-records.d.ts.map +0 -1
  898. package/dist/agent-runtime/run-tool-call.d.ts +0 -73
  899. package/dist/agent-runtime/run-tool-call.d.ts.map +0 -1
  900. package/dist/agent-runtime/run-tool-errors.d.ts.map +0 -1
  901. package/dist/agent-runtime/run-tool-executor.d.ts +0 -34
  902. package/dist/agent-runtime/run-tool-executor.d.ts.map +0 -1
  903. package/dist/agent-runtime/run-tool-progress.d.ts +0 -21
  904. package/dist/agent-runtime/run-tool-progress.d.ts.map +0 -1
  905. package/dist/agent-runtime/run-turn-preparation.d.ts +0 -25
  906. package/dist/agent-runtime/run-turn-preparation.d.ts.map +0 -1
  907. package/dist/agent-runtime/run-unacquired.d.ts +0 -19
  908. package/dist/agent-runtime/run-unacquired.d.ts.map +0 -1
  909. package/dist/agent-runtime/runtime-admission-gate.d.ts.map +0 -1
  910. package/dist/agent-runtime/runtime-control.d.ts +0 -9
  911. package/dist/agent-runtime/runtime-control.d.ts.map +0 -1
  912. package/dist/agent-runtime/runtime-recovery.d.ts +0 -10
  913. package/dist/agent-runtime/runtime-recovery.d.ts.map +0 -1
  914. package/dist/agent-runtime/runtime-state.d.ts +0 -36
  915. package/dist/agent-runtime/runtime-state.d.ts.map +0 -1
  916. package/dist/agent-runtime/runtime-submit.d.ts +0 -5
  917. package/dist/agent-runtime/runtime-submit.d.ts.map +0 -1
  918. package/dist/agent-runtime/runtime.d.ts +0 -352
  919. package/dist/agent-runtime/runtime.d.ts.map +0 -1
  920. package/dist/agent-runtime/sandbox-binding.d.ts.map +0 -1
  921. package/dist/agent-runtime/sandbox-broker.d.ts.map +0 -1
  922. package/dist/agent-runtime/sandbox-bubblewrap-args.d.ts.map +0 -1
  923. package/dist/agent-runtime/sandbox-bubblewrap-storage.d.ts.map +0 -1
  924. package/dist/agent-runtime/sandbox-bubblewrap.d.ts.map +0 -1
  925. package/dist/agent-runtime/sandbox-coding-adapter.d.ts.map +0 -1
  926. package/dist/agent-runtime/sandbox-contract.d.ts.map +0 -1
  927. package/dist/agent-runtime/sandbox-process-linux.d.ts.map +0 -1
  928. package/dist/agent-runtime/sandbox-process-macos.d.ts.map +0 -1
  929. package/dist/agent-runtime/sandbox-process-owner.d.ts +0 -19
  930. package/dist/agent-runtime/sandbox-process-owner.d.ts.map +0 -1
  931. package/dist/agent-runtime/sandbox-process-spec.d.ts.map +0 -1
  932. package/dist/agent-runtime/sandbox-process-wrapper.d.ts.map +0 -1
  933. package/dist/agent-runtime/sandbox-process.d.ts +0 -8
  934. package/dist/agent-runtime/sandbox-process.d.ts.map +0 -1
  935. package/dist/agent-runtime/sandbox-session.d.ts.map +0 -1
  936. package/dist/agent-runtime/sandbox.d.ts +0 -125
  937. package/dist/agent-runtime/sandbox.d.ts.map +0 -1
  938. package/dist/agent-runtime/schedule-contract.d.ts.map +0 -1
  939. package/dist/agent-runtime/schedule-dispatch.d.ts.map +0 -1
  940. package/dist/agent-runtime/schedule-records.d.ts.map +0 -1
  941. package/dist/agent-runtime/schedule-tools.d.ts +0 -76
  942. package/dist/agent-runtime/schedule-tools.d.ts.map +0 -1
  943. package/dist/agent-runtime/schedules.d.ts.map +0 -1
  944. package/dist/agent-runtime/spill.d.ts +0 -26
  945. package/dist/agent-runtime/spill.d.ts.map +0 -1
  946. package/dist/agent-runtime/sql-events.d.ts.map +0 -1
  947. package/dist/agent-runtime/sql-history.d.ts.map +0 -1
  948. package/dist/agent-runtime/sql-ledger.d.ts.map +0 -1
  949. package/dist/agent-runtime/sql-purge.d.ts.map +0 -1
  950. package/dist/agent-runtime/sql-reads.d.ts.map +0 -1
  951. package/dist/agent-runtime/sql-rows.d.ts +0 -202
  952. package/dist/agent-runtime/sql-rows.d.ts.map +0 -1
  953. package/dist/agent-runtime/sql-session.d.ts.map +0 -1
  954. package/dist/agent-runtime/sqlite-bun.d.ts.map +0 -1
  955. package/dist/agent-runtime/sqlite-node.d.ts.map +0 -1
  956. package/dist/agent-runtime/sqlite-purge.d.ts +0 -6
  957. package/dist/agent-runtime/sqlite-purge.d.ts.map +0 -1
  958. package/dist/agent-runtime/sqlite-schema.d.ts +0 -7
  959. package/dist/agent-runtime/sqlite-schema.d.ts.map +0 -1
  960. package/dist/agent-runtime/sqlite-transactions.d.ts +0 -29
  961. package/dist/agent-runtime/sqlite-transactions.d.ts.map +0 -1
  962. package/dist/agent-runtime/sqlite.d.ts +0 -33
  963. package/dist/agent-runtime/sqlite.d.ts.map +0 -1
  964. package/dist/agent-runtime/state-slots.d.ts +0 -48
  965. package/dist/agent-runtime/state-slots.d.ts.map +0 -1
  966. package/dist/agent-runtime/state-tools.d.ts +0 -117
  967. package/dist/agent-runtime/state-tools.d.ts.map +0 -1
  968. package/dist/agent-runtime/store-archive.d.ts.map +0 -1
  969. package/dist/agent-runtime/store-branch.d.ts.map +0 -1
  970. package/dist/agent-runtime/store-capabilities.d.ts.map +0 -1
  971. package/dist/agent-runtime/store-conformance-branch.d.ts +0 -7
  972. package/dist/agent-runtime/store-conformance-branch.d.ts.map +0 -1
  973. package/dist/agent-runtime/store-conformance-capabilities.d.ts +0 -6
  974. package/dist/agent-runtime/store-conformance-capabilities.d.ts.map +0 -1
  975. package/dist/agent-runtime/store-conformance-event-once.d.ts +0 -12
  976. package/dist/agent-runtime/store-conformance-event-once.d.ts.map +0 -1
  977. package/dist/agent-runtime/store-conformance-lifecycle.d.ts +0 -454
  978. package/dist/agent-runtime/store-conformance-lifecycle.d.ts.map +0 -1
  979. package/dist/agent-runtime/store-conformance-ordering.d.ts +0 -18
  980. package/dist/agent-runtime/store-conformance-ordering.d.ts.map +0 -1
  981. package/dist/agent-runtime/store-conformance-seed.d.ts +0 -8
  982. package/dist/agent-runtime/store-conformance-seed.d.ts.map +0 -1
  983. package/dist/agent-runtime/store-conformance-support.d.ts +0 -140
  984. package/dist/agent-runtime/store-conformance-support.d.ts.map +0 -1
  985. package/dist/agent-runtime/store-conformance-terminal.d.ts +0 -12
  986. package/dist/agent-runtime/store-conformance-terminal.d.ts.map +0 -1
  987. package/dist/agent-runtime/store-conformance.d.ts +0 -71
  988. package/dist/agent-runtime/store-conformance.d.ts.map +0 -1
  989. package/dist/agent-runtime/store-create.d.ts.map +0 -1
  990. package/dist/agent-runtime/store-driver-contract.d.ts +0 -1016
  991. package/dist/agent-runtime/store-driver-contract.d.ts.map +0 -1
  992. package/dist/agent-runtime/store-event-once.d.ts +0 -37
  993. package/dist/agent-runtime/store-event-once.d.ts.map +0 -1
  994. package/dist/agent-runtime/store-events.d.ts +0 -2231
  995. package/dist/agent-runtime/store-events.d.ts.map +0 -1
  996. package/dist/agent-runtime/store-memory-archive.d.ts.map +0 -1
  997. package/dist/agent-runtime/store-memory-events.d.ts +0 -7
  998. package/dist/agent-runtime/store-memory-events.d.ts.map +0 -1
  999. package/dist/agent-runtime/store-memory.d.ts.map +0 -1
  1000. package/dist/agent-runtime/store-migrations/v1-to-v2.d.ts +0 -6
  1001. package/dist/agent-runtime/store-migrations/v1-to-v2.d.ts.map +0 -1
  1002. package/dist/agent-runtime/store-migrations/v2-to-v3.d.ts +0 -14
  1003. package/dist/agent-runtime/store-migrations/v2-to-v3.d.ts.map +0 -1
  1004. package/dist/agent-runtime/store-migrations/v3-to-v4.d.ts +0 -4
  1005. package/dist/agent-runtime/store-migrations/v3-to-v4.d.ts.map +0 -1
  1006. package/dist/agent-runtime/store-mutate.d.ts.map +0 -1
  1007. package/dist/agent-runtime/store-purge.d.ts.map +0 -1
  1008. package/dist/agent-runtime/store-reads.d.ts +0 -29
  1009. package/dist/agent-runtime/store-reads.d.ts.map +0 -1
  1010. package/dist/agent-runtime/store-reduce-history.d.ts +0 -10
  1011. package/dist/agent-runtime/store-reduce-history.d.ts.map +0 -1
  1012. package/dist/agent-runtime/store-reduce-run.d.ts +0 -14
  1013. package/dist/agent-runtime/store-reduce-run.d.ts.map +0 -1
  1014. package/dist/agent-runtime/store-reduce-shared.d.ts +0 -78
  1015. package/dist/agent-runtime/store-reduce-shared.d.ts.map +0 -1
  1016. package/dist/agent-runtime/store-reduce-terminal.d.ts +0 -6
  1017. package/dist/agent-runtime/store-reduce-terminal.d.ts.map +0 -1
  1018. package/dist/agent-runtime/store-reducer.d.ts +0 -24
  1019. package/dist/agent-runtime/store-reducer.d.ts.map +0 -1
  1020. package/dist/agent-runtime/store-replay.d.ts.map +0 -1
  1021. package/dist/agent-runtime/store-snapshot.d.ts +0 -19
  1022. package/dist/agent-runtime/store-snapshot.d.ts.map +0 -1
  1023. package/dist/agent-runtime/store.d.ts +0 -3032
  1024. package/dist/agent-runtime/store.d.ts.map +0 -1
  1025. package/dist/agent-runtime/testing.d.ts +0 -46
  1026. package/dist/agent-runtime/testing.d.ts.map +0 -1
  1027. package/dist/agent-runtime/workspace-glob.d.ts.map +0 -1
  1028. package/dist/index-18pf56dq.js +0 -409
  1029. package/dist/index-1gmgwfn3.js +0 -439
  1030. package/dist/index-23wn8sgf.js +0 -47
  1031. package/dist/index-27hck3z2.js +0 -307
  1032. package/dist/index-27srek2g.js +0 -3781
  1033. package/dist/index-360j58vb.js +0 -63
  1034. package/dist/index-654rhe5d.js +0 -159
  1035. package/dist/index-67pnt4bh.js +0 -174
  1036. package/dist/index-6kpwkpgx.js +0 -415
  1037. package/dist/index-6xw1wf4m.js +0 -969
  1038. package/dist/index-6yb4stq3.js +0 -224
  1039. package/dist/index-76yhxa41.js +0 -725
  1040. package/dist/index-79vqbjcz.js +0 -26
  1041. package/dist/index-b23s6e2c.js +0 -158
  1042. package/dist/index-cb4nnvfr.js +0 -40
  1043. package/dist/index-ek9w11r0.js +0 -40
  1044. package/dist/index-epyj7ptp.js +0 -510
  1045. package/dist/index-er483f3w.js +0 -601
  1046. package/dist/index-fjac2w5e.js +0 -3543
  1047. package/dist/index-ga6avd48.js +0 -53
  1048. package/dist/index-hy4653g4.js +0 -345
  1049. package/dist/index-j903yhp4.js +0 -121
  1050. package/dist/index-jzdbkanz.js +0 -215
  1051. package/dist/index-k9g061ma.js +0 -164
  1052. package/dist/index-kdw0n92g.js +0 -76
  1053. package/dist/index-krekhmp7.js +0 -707
  1054. package/dist/index-ky79wwgs.js +0 -2872
  1055. package/dist/index-mgr0mdqp.js +0 -271
  1056. package/dist/index-mrng24wq.js +0 -1210
  1057. package/dist/index-mx2gya05.js +0 -465
  1058. package/dist/index-nfeafbzh.js +0 -7379
  1059. package/dist/index-ngwf1s3c.js +0 -51
  1060. package/dist/index-pjjh91vw.js +0 -53
  1061. package/dist/index-qv5v6w9c.js +0 -696
  1062. package/dist/index-qymek778.js +0 -2289
  1063. package/dist/index-rj32hkkp.js +0 -305
  1064. package/dist/index-t5zp1jjj.js +0 -77
  1065. package/dist/index-v5hmyef8.js +0 -951
  1066. package/dist/index-vv0hxrmy.js +0 -295
  1067. package/dist/index-vxm0ya3f.js +0 -707
  1068. package/dist/index-xtxxt87z.js +0 -349
  1069. package/dist/index-zk839vzf.js +0 -231
  1070. package/llms/upgrading-0.128.0-0.134.0.txt +0 -633
  1071. /package/dist/agent-runtime/{control-interaction-schema.d.ts → browser/control-interaction-schema.d.ts} +0 -0
  1072. /package/dist/agent-runtime/{react.d.ts → browser/react.d.ts} +0 -0
  1073. /package/dist/agent-runtime/{coding-search-automaton.d.ts → coding/coding-search-automaton.d.ts} +0 -0
  1074. /package/dist/agent-runtime/{coding-search-case-fold.d.ts → coding/coding-search-case-fold.d.ts} +0 -0
  1075. /package/dist/agent-runtime/{coding-search-class-ranges.d.ts → coding/coding-search-class-ranges.d.ts} +0 -0
  1076. /package/dist/agent-runtime/{coding-search-contract.d.ts → coding/coding-search-contract.d.ts} +0 -0
  1077. /package/dist/agent-runtime/{coding-search-limits.d.ts → coding/coding-search-limits.d.ts} +0 -0
  1078. /package/dist/agent-runtime/{coding-search-matcher.d.ts → coding/coding-search-matcher.d.ts} +0 -0
  1079. /package/dist/agent-runtime/{coding-search-output.d.ts → coding/coding-search-output.d.ts} +0 -0
  1080. /package/dist/agent-runtime/{coding-search-regex-syntax.d.ts → coding/coding-search-regex-syntax.d.ts} +0 -0
  1081. /package/dist/agent-runtime/{coding-search-unit-classes.d.ts → coding/coding-search-unit-classes.d.ts} +0 -0
  1082. /package/dist/agent-runtime/{coding-tool-files.d.ts → coding/coding-tool-files.d.ts} +0 -0
  1083. /package/dist/agent-runtime/{coding-tool-listing.d.ts → coding/coding-tool-listing.d.ts} +0 -0
  1084. /package/dist/agent-runtime/{coding-tool-refusals.d.ts → coding/coding-tool-refusals.d.ts} +0 -0
  1085. /package/dist/agent-runtime/{coding-tool-search-patch.d.ts → coding/coding-tool-search-patch.d.ts} +0 -0
  1086. /package/dist/agent-runtime/{coding-tool-shell.d.ts → coding/coding-tool-shell.d.ts} +0 -0
  1087. /package/dist/agent-runtime/{coding-tool-utf8.d.ts → coding/coding-tool-utf8.d.ts} +0 -0
  1088. /package/dist/agent-runtime/{coding-tools.d.ts → coding/coding-tools.d.ts} +0 -0
  1089. /package/dist/agent-runtime/{contained-scan-budget.d.ts → coding/contained-scan-budget.d.ts} +0 -0
  1090. /package/dist/agent-runtime/{contained-scan-contract.d.ts → coding/contained-scan-contract.d.ts} +0 -0
  1091. /package/dist/agent-runtime/{workspace-glob.d.ts → coding/workspace-glob.d.ts} +0 -0
  1092. /package/dist/agent-runtime/{harness-resources.d.ts → harness/harness-resources.d.ts} +0 -0
  1093. /package/dist/agent-runtime/{coordinator.d.ts → loop/coordinator.d.ts} +0 -0
  1094. /package/dist/agent-runtime/{invocation-failure.d.ts → loop/invocation-failure.d.ts} +0 -0
  1095. /package/dist/agent-runtime/{owned-provider-stream.d.ts → loop/owned-provider-stream.d.ts} +0 -0
  1096. /package/dist/agent-runtime/{run-tool-errors.d.ts → loop/run-tool-errors.d.ts} +0 -0
  1097. /package/dist/agent-runtime/{runtime-admission-gate.d.ts → loop/runtime-admission-gate.d.ts} +0 -0
  1098. /package/dist/agent-runtime/{anthropic-sse.d.ts → providers/anthropic-sse.d.ts} +0 -0
  1099. /package/dist/agent-runtime/{anthropic.d.ts → providers/anthropic.d.ts} +0 -0
  1100. /package/dist/agent-runtime/{models-driver-telemetry.d.ts → providers/models-driver-telemetry.d.ts} +0 -0
  1101. /package/dist/agent-runtime/{models.d.ts → providers/models.d.ts} +0 -0
  1102. /package/dist/agent-runtime/{openai-messages.d.ts → providers/openai-messages.d.ts} +0 -0
  1103. /package/dist/agent-runtime/{openai-sse-state.d.ts → providers/openai-sse-state.d.ts} +0 -0
  1104. /package/dist/agent-runtime/{openai-sse.d.ts → providers/openai-sse.d.ts} +0 -0
  1105. /package/dist/agent-runtime/{openai.d.ts → providers/openai.d.ts} +0 -0
  1106. /package/dist/agent-runtime/{openrouter-benchmarks.d.ts → providers/openrouter-benchmarks.d.ts} +0 -0
  1107. /package/dist/agent-runtime/{openrouter-catalog-cache.d.ts → providers/openrouter-catalog-cache.d.ts} +0 -0
  1108. /package/dist/agent-runtime/{openrouter-catalog.d.ts → providers/openrouter-catalog.d.ts} +0 -0
  1109. /package/dist/agent-runtime/{openrouter-models.d.ts → providers/openrouter-models.d.ts} +0 -0
  1110. /package/dist/agent-runtime/{openrouter-route.d.ts → providers/openrouter-route.d.ts} +0 -0
  1111. /package/dist/agent-runtime/{openrouter.d.ts → providers/openrouter.d.ts} +0 -0
  1112. /package/dist/agent-runtime/{provider-content.d.ts → providers/provider-content.d.ts} +0 -0
  1113. /package/dist/agent-runtime/{provider-http.d.ts → providers/provider-http.d.ts} +0 -0
  1114. /package/dist/agent-runtime/{provider-journal.d.ts → providers/provider-journal.d.ts} +0 -0
  1115. /package/dist/agent-runtime/{provider-json-schema-strip.d.ts → providers/provider-json-schema-strip.d.ts} +0 -0
  1116. /package/dist/agent-runtime/{provider-sse.d.ts → providers/provider-sse.d.ts} +0 -0
  1117. /package/dist/agent-runtime/{sandbox-binding.d.ts → sandbox/sandbox-binding.d.ts} +0 -0
  1118. /package/dist/agent-runtime/{sandbox-broker.d.ts → sandbox/sandbox-broker.d.ts} +0 -0
  1119. /package/dist/agent-runtime/{sandbox-bubblewrap-args.d.ts → sandbox/sandbox-bubblewrap-args.d.ts} +0 -0
  1120. /package/dist/agent-runtime/{sandbox-bubblewrap-storage.d.ts → sandbox/sandbox-bubblewrap-storage.d.ts} +0 -0
  1121. /package/dist/agent-runtime/{sandbox-bubblewrap.d.ts → sandbox/sandbox-bubblewrap.d.ts} +0 -0
  1122. /package/dist/agent-runtime/{sandbox-coding-adapter.d.ts → sandbox/sandbox-coding-adapter.d.ts} +0 -0
  1123. /package/dist/agent-runtime/{sandbox-contract.d.ts → sandbox/sandbox-contract.d.ts} +0 -0
  1124. /package/dist/agent-runtime/{sandbox-process-linux.d.ts → sandbox/sandbox-process-linux.d.ts} +0 -0
  1125. /package/dist/agent-runtime/{sandbox-process-macos.d.ts → sandbox/sandbox-process-macos.d.ts} +0 -0
  1126. /package/dist/agent-runtime/{sandbox-process-spec.d.ts → sandbox/sandbox-process-spec.d.ts} +0 -0
  1127. /package/dist/agent-runtime/{sandbox-process-wrapper.d.ts → sandbox/sandbox-process-wrapper.d.ts} +0 -0
  1128. /package/dist/agent-runtime/{sandbox-session.d.ts → sandbox/sandbox-session.d.ts} +0 -0
  1129. /package/dist/agent-runtime/{archive-projection.d.ts → stores/archive-projection.d.ts} +0 -0
  1130. /package/dist/agent-runtime/{archive-spill.d.ts → stores/archive-spill.d.ts} +0 -0
  1131. /package/dist/agent-runtime/{branch-contract.d.ts → stores/branch-contract.d.ts} +0 -0
  1132. /package/dist/agent-runtime/{branch-provider.d.ts → stores/branch-provider.d.ts} +0 -0
  1133. /package/dist/agent-runtime/{branch-refusal.d.ts → stores/branch-refusal.d.ts} +0 -0
  1134. /package/dist/agent-runtime/{branch-runtime-tools.d.ts → stores/branch-runtime-tools.d.ts} +0 -0
  1135. /package/dist/agent-runtime/{branch-transitions.d.ts → stores/branch-transitions.d.ts} +0 -0
  1136. /package/dist/agent-runtime/{child-blocking.d.ts → stores/child-blocking.d.ts} +0 -0
  1137. /package/dist/agent-runtime/{children-control.d.ts → stores/children-control.d.ts} +0 -0
  1138. /package/dist/agent-runtime/{children-spawn.d.ts → stores/children-spawn.d.ts} +0 -0
  1139. /package/dist/agent-runtime/{children-state.d.ts → stores/children-state.d.ts} +0 -0
  1140. /package/dist/agent-runtime/{children-usage.d.ts → stores/children-usage.d.ts} +0 -0
  1141. /package/dist/agent-runtime/{children.d.ts → stores/children.d.ts} +0 -0
  1142. /package/dist/agent-runtime/{conversations.d.ts → stores/conversations.d.ts} +0 -0
  1143. /package/dist/agent-runtime/{event-search-postgres.d.ts → stores/event-search-postgres.d.ts} +0 -0
  1144. /package/dist/agent-runtime/{event-search-terms.d.ts → stores/event-search-terms.d.ts} +0 -0
  1145. /package/dist/agent-runtime/{event-search.d.ts → stores/event-search.d.ts} +0 -0
  1146. /package/dist/agent-runtime/{postgres-schema.d.ts → stores/postgres-schema.d.ts} +0 -0
  1147. /package/dist/agent-runtime/{purge.d.ts → stores/purge.d.ts} +0 -0
  1148. /package/dist/agent-runtime/{schedule-contract.d.ts → stores/schedule-contract.d.ts} +0 -0
  1149. /package/dist/agent-runtime/{schedule-dispatch.d.ts → stores/schedule-dispatch.d.ts} +0 -0
  1150. /package/dist/agent-runtime/{schedule-records.d.ts → stores/schedule-records.d.ts} +0 -0
  1151. /package/dist/agent-runtime/{schedules.d.ts → stores/schedules.d.ts} +0 -0
  1152. /package/dist/agent-runtime/{sql-events.d.ts → stores/sql-events.d.ts} +0 -0
  1153. /package/dist/agent-runtime/{sql-history.d.ts → stores/sql-history.d.ts} +0 -0
  1154. /package/dist/agent-runtime/{sql-ledger.d.ts → stores/sql-ledger.d.ts} +0 -0
  1155. /package/dist/agent-runtime/{sql-purge.d.ts → stores/sql-purge.d.ts} +0 -0
  1156. /package/dist/agent-runtime/{sql-reads.d.ts → stores/sql-reads.d.ts} +0 -0
  1157. /package/dist/agent-runtime/{sql-session.d.ts → stores/sql-session.d.ts} +0 -0
  1158. /package/dist/agent-runtime/{sqlite-bun.d.ts → stores/sqlite-bun.d.ts} +0 -0
  1159. /package/dist/agent-runtime/{sqlite-node.d.ts → stores/sqlite-node.d.ts} +0 -0
  1160. /package/dist/agent-runtime/{store-archive.d.ts → stores/store-archive.d.ts} +0 -0
  1161. /package/dist/agent-runtime/{store-branch.d.ts → stores/store-branch.d.ts} +0 -0
  1162. /package/dist/agent-runtime/{store-capabilities.d.ts → stores/store-capabilities.d.ts} +0 -0
  1163. /package/dist/agent-runtime/{store-create.d.ts → stores/store-create.d.ts} +0 -0
  1164. /package/dist/agent-runtime/{store-memory-archive.d.ts → stores/store-memory-archive.d.ts} +0 -0
  1165. /package/dist/agent-runtime/{store-memory.d.ts → stores/store-memory.d.ts} +0 -0
  1166. /package/dist/agent-runtime/{store-mutate.d.ts → stores/store-mutate.d.ts} +0 -0
  1167. /package/dist/agent-runtime/{store-purge.d.ts → stores/store-purge.d.ts} +0 -0
  1168. /package/dist/agent-runtime/{store-replay.d.ts → stores/store-replay.d.ts} +0 -0
  1169. /package/dist/agent-runtime/{fault-bench.d.ts → testing/fault-bench.d.ts} +0 -0
@@ -1,2231 +0,0 @@
1
- import { z } from 'zod';
2
- import { type AgentStoreEventEnvelope, type AppendAgentStoreEvent } from '../durability/events.js';
3
- export declare const AgentStoreTransitionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4
- type: z.ZodLiteral<"accept">;
5
- input: z.ZodObject<{
6
- idempotencyKey: z.ZodString;
7
- expectedVersion: z.ZodOptional<z.ZodInt>;
8
- input: z.ZodObject<{
9
- schemaVersion: z.ZodLiteral<1>;
10
- id: z.ZodString;
11
- conversationId: z.ZodString;
12
- runId: z.ZodOptional<z.ZodString>;
13
- role: z.ZodEnum<{
14
- assistant: "assistant";
15
- summary: "summary";
16
- system: "system";
17
- tool: "tool";
18
- user: "user";
19
- }>;
20
- status: z.ZodEnum<{
21
- committed: "committed";
22
- completed: "completed";
23
- failed: "failed";
24
- interrupted: "interrupted";
25
- streaming: "streaming";
26
- superseded: "superseded";
27
- }>;
28
- parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
29
- type: z.ZodLiteral<"text">;
30
- text: z.ZodString;
31
- provider: z.ZodOptional<z.ZodObject<{
32
- schemaVersion: z.ZodInt;
33
- provider: z.ZodString;
34
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
35
- }, z.core.$strip>>;
36
- }, z.core.$strip>, z.ZodObject<{
37
- type: z.ZodLiteral<"reasoning">;
38
- text: z.ZodString;
39
- provider: z.ZodOptional<z.ZodObject<{
40
- schemaVersion: z.ZodInt;
41
- provider: z.ZodString;
42
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
43
- }, z.core.$strip>>;
44
- }, z.core.$strip>, z.ZodObject<{
45
- type: z.ZodLiteral<"file">;
46
- mediaType: z.ZodString;
47
- reference: z.ZodString;
48
- filename: z.ZodOptional<z.ZodString>;
49
- }, z.core.$strip>, z.ZodObject<{
50
- type: z.ZodLiteral<"source">;
51
- sourceId: z.ZodString;
52
- url: z.ZodOptional<z.ZodURL>;
53
- title: z.ZodOptional<z.ZodString>;
54
- }, z.core.$strip>, z.ZodObject<{
55
- type: z.ZodLiteral<"tool-call">;
56
- callId: z.ZodString;
57
- toolName: z.ZodString;
58
- input: z.ZodJSONSchema;
59
- provider: z.ZodOptional<z.ZodObject<{
60
- schemaVersion: z.ZodInt;
61
- provider: z.ZodString;
62
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
63
- }, z.core.$strip>>;
64
- }, z.core.$strip>, z.ZodObject<{
65
- type: z.ZodLiteral<"tool-result">;
66
- callId: z.ZodString;
67
- toolName: z.ZodString;
68
- outcome: z.ZodEnum<{
69
- error: "error";
70
- interrupted: "interrupted";
71
- success: "success";
72
- }>;
73
- output: z.ZodOptional<z.ZodJSONSchema>;
74
- provider: z.ZodOptional<z.ZodObject<{
75
- schemaVersion: z.ZodInt;
76
- provider: z.ZodString;
77
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
78
- }, z.core.$strip>>;
79
- }, z.core.$strip>, z.ZodObject<{
80
- type: z.ZodLiteral<"tool-approval-request">;
81
- approvalId: z.ZodString;
82
- callId: z.ZodString;
83
- isAutomatic: z.ZodOptional<z.ZodBoolean>;
84
- signature: z.ZodOptional<z.ZodString>;
85
- }, z.core.$strip>, z.ZodObject<{
86
- type: z.ZodLiteral<"tool-approval-response">;
87
- approvalId: z.ZodString;
88
- approved: z.ZodBoolean;
89
- reason: z.ZodOptional<z.ZodString>;
90
- }, z.core.$strip>, z.ZodObject<{
91
- type: z.ZodLiteral<"provider">;
92
- envelope: z.ZodObject<{
93
- schemaVersion: z.ZodInt;
94
- provider: z.ZodString;
95
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
96
- }, z.core.$strip>;
97
- }, z.core.$strip>, z.ZodObject<{
98
- type: z.ZodLiteral<"control">;
99
- reason: z.ZodEnum<{
100
- "run-interrupted": "run-interrupted";
101
- "stale-run": "stale-run";
102
- }>;
103
- }, z.core.$strip>], "type">>;
104
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
105
- createdAt: z.ZodISODateTime;
106
- updatedAt: z.ZodISODateTime;
107
- }, z.core.$strip>;
108
- run: z.ZodObject<{
109
- schemaVersion: z.ZodLiteral<1>;
110
- id: z.ZodString;
111
- conversationId: z.ZodString;
112
- inputMessageIds: z.ZodArray<z.ZodString>;
113
- assistantMessageId: z.ZodString;
114
- state: z.ZodEnum<{
115
- abandoned: "abandoned";
116
- cancelled: "cancelled";
117
- completed: "completed";
118
- failed: "failed";
119
- interrupt_requested: "interrupt_requested";
120
- interrupted: "interrupted";
121
- queued: "queued";
122
- running: "running";
123
- superseded: "superseded";
124
- }>;
125
- revision: z.ZodInt;
126
- queuePriority: z.ZodOptional<z.ZodEnum<{
127
- "interrupt-next": "interrupt-next";
128
- }>>;
129
- executionSequence: z.ZodOptional<z.ZodInt>;
130
- ownerId: z.ZodOptional<z.ZodString>;
131
- fencingToken: z.ZodOptional<z.ZodInt>;
132
- terminalReason: z.ZodOptional<z.ZodEnum<{
133
- abandoned: "abandoned";
134
- absorbed: "absorbed";
135
- cancelled: "cancelled";
136
- context_overflow: "context_overflow";
137
- interrupted: "interrupted";
138
- output_rejected: "output_rejected";
139
- policy_stop: "policy_stop";
140
- provider_failure: "provider_failure";
141
- provider_stop: "provider_stop";
142
- runtime_failure: "runtime_failure";
143
- shutdown: "shutdown";
144
- storage_conflict: "storage_conflict";
145
- success: "success";
146
- superseded: "superseded";
147
- timeout: "timeout";
148
- }>>;
149
- terminalPolicyName: z.ZodOptional<z.ZodString>;
150
- absorbedIntoRunId: z.ZodOptional<z.ZodString>;
151
- usage: z.ZodOptional<z.ZodObject<{
152
- inputTokens: z.ZodObject<{
153
- value: z.ZodOptional<z.ZodInt>;
154
- provenance: z.ZodEnum<{
155
- computed: "computed";
156
- estimated: "estimated";
157
- "provider-reported": "provider-reported";
158
- unavailable: "unavailable";
159
- }>;
160
- }, z.core.$strip>;
161
- outputTokens: z.ZodObject<{
162
- value: z.ZodOptional<z.ZodInt>;
163
- provenance: z.ZodEnum<{
164
- computed: "computed";
165
- estimated: "estimated";
166
- "provider-reported": "provider-reported";
167
- unavailable: "unavailable";
168
- }>;
169
- }, z.core.$strip>;
170
- reasoningTokens: z.ZodOptional<z.ZodObject<{
171
- value: z.ZodOptional<z.ZodInt>;
172
- provenance: z.ZodEnum<{
173
- computed: "computed";
174
- estimated: "estimated";
175
- "provider-reported": "provider-reported";
176
- unavailable: "unavailable";
177
- }>;
178
- }, z.core.$strip>>;
179
- cacheReadTokens: z.ZodOptional<z.ZodObject<{
180
- value: z.ZodOptional<z.ZodInt>;
181
- provenance: z.ZodEnum<{
182
- computed: "computed";
183
- estimated: "estimated";
184
- "provider-reported": "provider-reported";
185
- unavailable: "unavailable";
186
- }>;
187
- }, z.core.$strip>>;
188
- cacheWriteTokens: z.ZodOptional<z.ZodObject<{
189
- value: z.ZodOptional<z.ZodInt>;
190
- provenance: z.ZodEnum<{
191
- computed: "computed";
192
- estimated: "estimated";
193
- "provider-reported": "provider-reported";
194
- unavailable: "unavailable";
195
- }>;
196
- }, z.core.$strip>>;
197
- cost: z.ZodOptional<z.ZodObject<{
198
- value: z.ZodOptional<z.ZodNumber>;
199
- currency: z.ZodOptional<z.ZodString>;
200
- provenance: z.ZodEnum<{
201
- computed: "computed";
202
- estimated: "estimated";
203
- "provider-reported": "provider-reported";
204
- unavailable: "unavailable";
205
- }>;
206
- }, z.core.$strip>>;
207
- }, z.core.$strip>>;
208
- lastOperation: z.ZodOptional<z.ZodObject<{
209
- operationId: z.ZodString;
210
- kind: z.ZodEnum<{
211
- compaction: "compaction";
212
- "model-request": "model-request";
213
- }>;
214
- phase: z.ZodEnum<{
215
- cancelled: "cancelled";
216
- completed: "completed";
217
- failed: "failed";
218
- "first-output": "first-output";
219
- started: "started";
220
- }>;
221
- step: z.ZodOptional<z.ZodInt>;
222
- startedAt: z.ZodISODateTime;
223
- firstOutputAt: z.ZodOptional<z.ZodISODateTime>;
224
- finishedAt: z.ZodOptional<z.ZodISODateTime>;
225
- }, z.core.$strip>>;
226
- createdAt: z.ZodISODateTime;
227
- updatedAt: z.ZodISODateTime;
228
- }, z.core.$strip>;
229
- coalesceIntoRunId: z.ZodOptional<z.ZodString>;
230
- }, z.core.$strip>;
231
- }, z.core.$strict>, z.ZodObject<{
232
- type: z.ZodLiteral<"acquire">;
233
- input: z.ZodObject<{
234
- conversationId: z.ZodString;
235
- runId: z.ZodString;
236
- expectedRevision: z.ZodInt;
237
- ownerId: z.ZodString;
238
- }, z.core.$strip>;
239
- }, z.core.$strict>, z.ZodObject<{
240
- type: z.ZodLiteral<"checkpoint">;
241
- input: z.ZodObject<{
242
- conversationId: z.ZodString;
243
- runId: z.ZodString;
244
- expectedRevision: z.ZodInt;
245
- ownerId: z.ZodString;
246
- fencingToken: z.ZodOptional<z.ZodInt>;
247
- assistant: z.ZodObject<{
248
- schemaVersion: z.ZodLiteral<1>;
249
- id: z.ZodString;
250
- conversationId: z.ZodString;
251
- runId: z.ZodOptional<z.ZodString>;
252
- role: z.ZodEnum<{
253
- assistant: "assistant";
254
- summary: "summary";
255
- system: "system";
256
- tool: "tool";
257
- user: "user";
258
- }>;
259
- status: z.ZodEnum<{
260
- committed: "committed";
261
- completed: "completed";
262
- failed: "failed";
263
- interrupted: "interrupted";
264
- streaming: "streaming";
265
- superseded: "superseded";
266
- }>;
267
- parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
268
- type: z.ZodLiteral<"text">;
269
- text: z.ZodString;
270
- provider: z.ZodOptional<z.ZodObject<{
271
- schemaVersion: z.ZodInt;
272
- provider: z.ZodString;
273
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
274
- }, z.core.$strip>>;
275
- }, z.core.$strip>, z.ZodObject<{
276
- type: z.ZodLiteral<"reasoning">;
277
- text: z.ZodString;
278
- provider: z.ZodOptional<z.ZodObject<{
279
- schemaVersion: z.ZodInt;
280
- provider: z.ZodString;
281
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
282
- }, z.core.$strip>>;
283
- }, z.core.$strip>, z.ZodObject<{
284
- type: z.ZodLiteral<"file">;
285
- mediaType: z.ZodString;
286
- reference: z.ZodString;
287
- filename: z.ZodOptional<z.ZodString>;
288
- }, z.core.$strip>, z.ZodObject<{
289
- type: z.ZodLiteral<"source">;
290
- sourceId: z.ZodString;
291
- url: z.ZodOptional<z.ZodURL>;
292
- title: z.ZodOptional<z.ZodString>;
293
- }, z.core.$strip>, z.ZodObject<{
294
- type: z.ZodLiteral<"tool-call">;
295
- callId: z.ZodString;
296
- toolName: z.ZodString;
297
- input: z.ZodJSONSchema;
298
- provider: z.ZodOptional<z.ZodObject<{
299
- schemaVersion: z.ZodInt;
300
- provider: z.ZodString;
301
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
302
- }, z.core.$strip>>;
303
- }, z.core.$strip>, z.ZodObject<{
304
- type: z.ZodLiteral<"tool-result">;
305
- callId: z.ZodString;
306
- toolName: z.ZodString;
307
- outcome: z.ZodEnum<{
308
- error: "error";
309
- interrupted: "interrupted";
310
- success: "success";
311
- }>;
312
- output: z.ZodOptional<z.ZodJSONSchema>;
313
- provider: z.ZodOptional<z.ZodObject<{
314
- schemaVersion: z.ZodInt;
315
- provider: z.ZodString;
316
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
317
- }, z.core.$strip>>;
318
- }, z.core.$strip>, z.ZodObject<{
319
- type: z.ZodLiteral<"tool-approval-request">;
320
- approvalId: z.ZodString;
321
- callId: z.ZodString;
322
- isAutomatic: z.ZodOptional<z.ZodBoolean>;
323
- signature: z.ZodOptional<z.ZodString>;
324
- }, z.core.$strip>, z.ZodObject<{
325
- type: z.ZodLiteral<"tool-approval-response">;
326
- approvalId: z.ZodString;
327
- approved: z.ZodBoolean;
328
- reason: z.ZodOptional<z.ZodString>;
329
- }, z.core.$strip>, z.ZodObject<{
330
- type: z.ZodLiteral<"provider">;
331
- envelope: z.ZodObject<{
332
- schemaVersion: z.ZodInt;
333
- provider: z.ZodString;
334
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
335
- }, z.core.$strip>;
336
- }, z.core.$strip>, z.ZodObject<{
337
- type: z.ZodLiteral<"control">;
338
- reason: z.ZodEnum<{
339
- "run-interrupted": "run-interrupted";
340
- "stale-run": "stale-run";
341
- }>;
342
- }, z.core.$strip>], "type">>;
343
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
344
- createdAt: z.ZodISODateTime;
345
- updatedAt: z.ZodISODateTime;
346
- }, z.core.$strip>;
347
- usage: z.ZodOptional<z.ZodObject<{
348
- inputTokens: z.ZodObject<{
349
- value: z.ZodOptional<z.ZodInt>;
350
- provenance: z.ZodEnum<{
351
- computed: "computed";
352
- estimated: "estimated";
353
- "provider-reported": "provider-reported";
354
- unavailable: "unavailable";
355
- }>;
356
- }, z.core.$strip>;
357
- outputTokens: z.ZodObject<{
358
- value: z.ZodOptional<z.ZodInt>;
359
- provenance: z.ZodEnum<{
360
- computed: "computed";
361
- estimated: "estimated";
362
- "provider-reported": "provider-reported";
363
- unavailable: "unavailable";
364
- }>;
365
- }, z.core.$strip>;
366
- reasoningTokens: z.ZodOptional<z.ZodObject<{
367
- value: z.ZodOptional<z.ZodInt>;
368
- provenance: z.ZodEnum<{
369
- computed: "computed";
370
- estimated: "estimated";
371
- "provider-reported": "provider-reported";
372
- unavailable: "unavailable";
373
- }>;
374
- }, z.core.$strip>>;
375
- cacheReadTokens: z.ZodOptional<z.ZodObject<{
376
- value: z.ZodOptional<z.ZodInt>;
377
- provenance: z.ZodEnum<{
378
- computed: "computed";
379
- estimated: "estimated";
380
- "provider-reported": "provider-reported";
381
- unavailable: "unavailable";
382
- }>;
383
- }, z.core.$strip>>;
384
- cacheWriteTokens: z.ZodOptional<z.ZodObject<{
385
- value: z.ZodOptional<z.ZodInt>;
386
- provenance: z.ZodEnum<{
387
- computed: "computed";
388
- estimated: "estimated";
389
- "provider-reported": "provider-reported";
390
- unavailable: "unavailable";
391
- }>;
392
- }, z.core.$strip>>;
393
- cost: z.ZodOptional<z.ZodObject<{
394
- value: z.ZodOptional<z.ZodNumber>;
395
- currency: z.ZodOptional<z.ZodString>;
396
- provenance: z.ZodEnum<{
397
- computed: "computed";
398
- estimated: "estimated";
399
- "provider-reported": "provider-reported";
400
- unavailable: "unavailable";
401
- }>;
402
- }, z.core.$strip>>;
403
- }, z.core.$strip>>;
404
- }, z.core.$strip>;
405
- }, z.core.$strict>, z.ZodObject<{
406
- type: z.ZodLiteral<"operation">;
407
- input: z.ZodObject<{
408
- conversationId: z.ZodString;
409
- runId: z.ZodString;
410
- expectedRevision: z.ZodInt;
411
- ownerId: z.ZodString;
412
- fencingToken: z.ZodOptional<z.ZodInt>;
413
- operation: z.ZodObject<{
414
- operationId: z.ZodString;
415
- kind: z.ZodEnum<{
416
- compaction: "compaction";
417
- "model-request": "model-request";
418
- }>;
419
- phase: z.ZodEnum<{
420
- cancelled: "cancelled";
421
- completed: "completed";
422
- failed: "failed";
423
- "first-output": "first-output";
424
- started: "started";
425
- }>;
426
- step: z.ZodOptional<z.ZodInt>;
427
- startedAt: z.ZodISODateTime;
428
- firstOutputAt: z.ZodOptional<z.ZodISODateTime>;
429
- finishedAt: z.ZodOptional<z.ZodISODateTime>;
430
- }, z.core.$strip>;
431
- }, z.core.$strip>;
432
- }, z.core.$strict>, z.ZodObject<{
433
- type: z.ZodLiteral<"interrupt">;
434
- input: z.ZodObject<{
435
- conversationId: z.ZodString;
436
- runId: z.ZodString;
437
- expectedRevision: z.ZodInt;
438
- }, z.core.$strip>;
439
- }, z.core.$strict>, z.ZodObject<{
440
- type: z.ZodLiteral<"recover">;
441
- input: z.ZodObject<{
442
- conversationId: z.ZodString;
443
- runId: z.ZodString;
444
- expectedRevision: z.ZodInt;
445
- action: z.ZodEnum<{
446
- abandon: "abandon";
447
- requeue: "requeue";
448
- }>;
449
- replaySafe: z.ZodOptional<z.ZodBoolean>;
450
- }, z.core.$strip>;
451
- assistant: z.ZodOptional<z.ZodObject<{
452
- schemaVersion: z.ZodLiteral<1>;
453
- id: z.ZodString;
454
- conversationId: z.ZodString;
455
- runId: z.ZodOptional<z.ZodString>;
456
- role: z.ZodEnum<{
457
- assistant: "assistant";
458
- summary: "summary";
459
- system: "system";
460
- tool: "tool";
461
- user: "user";
462
- }>;
463
- status: z.ZodEnum<{
464
- committed: "committed";
465
- completed: "completed";
466
- failed: "failed";
467
- interrupted: "interrupted";
468
- streaming: "streaming";
469
- superseded: "superseded";
470
- }>;
471
- parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
472
- type: z.ZodLiteral<"text">;
473
- text: z.ZodString;
474
- provider: z.ZodOptional<z.ZodObject<{
475
- schemaVersion: z.ZodInt;
476
- provider: z.ZodString;
477
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
478
- }, z.core.$strip>>;
479
- }, z.core.$strip>, z.ZodObject<{
480
- type: z.ZodLiteral<"reasoning">;
481
- text: z.ZodString;
482
- provider: z.ZodOptional<z.ZodObject<{
483
- schemaVersion: z.ZodInt;
484
- provider: z.ZodString;
485
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
486
- }, z.core.$strip>>;
487
- }, z.core.$strip>, z.ZodObject<{
488
- type: z.ZodLiteral<"file">;
489
- mediaType: z.ZodString;
490
- reference: z.ZodString;
491
- filename: z.ZodOptional<z.ZodString>;
492
- }, z.core.$strip>, z.ZodObject<{
493
- type: z.ZodLiteral<"source">;
494
- sourceId: z.ZodString;
495
- url: z.ZodOptional<z.ZodURL>;
496
- title: z.ZodOptional<z.ZodString>;
497
- }, z.core.$strip>, z.ZodObject<{
498
- type: z.ZodLiteral<"tool-call">;
499
- callId: z.ZodString;
500
- toolName: z.ZodString;
501
- input: z.ZodJSONSchema;
502
- provider: z.ZodOptional<z.ZodObject<{
503
- schemaVersion: z.ZodInt;
504
- provider: z.ZodString;
505
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
506
- }, z.core.$strip>>;
507
- }, z.core.$strip>, z.ZodObject<{
508
- type: z.ZodLiteral<"tool-result">;
509
- callId: z.ZodString;
510
- toolName: z.ZodString;
511
- outcome: z.ZodEnum<{
512
- error: "error";
513
- interrupted: "interrupted";
514
- success: "success";
515
- }>;
516
- output: z.ZodOptional<z.ZodJSONSchema>;
517
- provider: z.ZodOptional<z.ZodObject<{
518
- schemaVersion: z.ZodInt;
519
- provider: z.ZodString;
520
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
521
- }, z.core.$strip>>;
522
- }, z.core.$strip>, z.ZodObject<{
523
- type: z.ZodLiteral<"tool-approval-request">;
524
- approvalId: z.ZodString;
525
- callId: z.ZodString;
526
- isAutomatic: z.ZodOptional<z.ZodBoolean>;
527
- signature: z.ZodOptional<z.ZodString>;
528
- }, z.core.$strip>, z.ZodObject<{
529
- type: z.ZodLiteral<"tool-approval-response">;
530
- approvalId: z.ZodString;
531
- approved: z.ZodBoolean;
532
- reason: z.ZodOptional<z.ZodString>;
533
- }, z.core.$strip>, z.ZodObject<{
534
- type: z.ZodLiteral<"provider">;
535
- envelope: z.ZodObject<{
536
- schemaVersion: z.ZodInt;
537
- provider: z.ZodString;
538
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
539
- }, z.core.$strip>;
540
- }, z.core.$strip>, z.ZodObject<{
541
- type: z.ZodLiteral<"control">;
542
- reason: z.ZodEnum<{
543
- "run-interrupted": "run-interrupted";
544
- "stale-run": "stale-run";
545
- }>;
546
- }, z.core.$strip>], "type">>;
547
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
548
- createdAt: z.ZodISODateTime;
549
- updatedAt: z.ZodISODateTime;
550
- }, z.core.$strip>>;
551
- usage: z.ZodOptional<z.ZodObject<{
552
- inputTokens: z.ZodObject<{
553
- value: z.ZodOptional<z.ZodInt>;
554
- provenance: z.ZodEnum<{
555
- computed: "computed";
556
- estimated: "estimated";
557
- "provider-reported": "provider-reported";
558
- unavailable: "unavailable";
559
- }>;
560
- }, z.core.$strip>;
561
- outputTokens: z.ZodObject<{
562
- value: z.ZodOptional<z.ZodInt>;
563
- provenance: z.ZodEnum<{
564
- computed: "computed";
565
- estimated: "estimated";
566
- "provider-reported": "provider-reported";
567
- unavailable: "unavailable";
568
- }>;
569
- }, z.core.$strip>;
570
- reasoningTokens: z.ZodOptional<z.ZodObject<{
571
- value: z.ZodOptional<z.ZodInt>;
572
- provenance: z.ZodEnum<{
573
- computed: "computed";
574
- estimated: "estimated";
575
- "provider-reported": "provider-reported";
576
- unavailable: "unavailable";
577
- }>;
578
- }, z.core.$strip>>;
579
- cacheReadTokens: z.ZodOptional<z.ZodObject<{
580
- value: z.ZodOptional<z.ZodInt>;
581
- provenance: z.ZodEnum<{
582
- computed: "computed";
583
- estimated: "estimated";
584
- "provider-reported": "provider-reported";
585
- unavailable: "unavailable";
586
- }>;
587
- }, z.core.$strip>>;
588
- cacheWriteTokens: z.ZodOptional<z.ZodObject<{
589
- value: z.ZodOptional<z.ZodInt>;
590
- provenance: z.ZodEnum<{
591
- computed: "computed";
592
- estimated: "estimated";
593
- "provider-reported": "provider-reported";
594
- unavailable: "unavailable";
595
- }>;
596
- }, z.core.$strip>>;
597
- cost: z.ZodOptional<z.ZodObject<{
598
- value: z.ZodOptional<z.ZodNumber>;
599
- currency: z.ZodOptional<z.ZodString>;
600
- provenance: z.ZodEnum<{
601
- computed: "computed";
602
- estimated: "estimated";
603
- "provider-reported": "provider-reported";
604
- unavailable: "unavailable";
605
- }>;
606
- }, z.core.$strip>>;
607
- }, z.core.$strip>>;
608
- }, z.core.$strict>, z.ZodObject<{
609
- type: z.ZodLiteral<"terminal">;
610
- input: z.ZodObject<{
611
- conversationId: z.ZodString;
612
- runId: z.ZodString;
613
- expectedRevision: z.ZodInt;
614
- ownerId: z.ZodString;
615
- fencingToken: z.ZodOptional<z.ZodInt>;
616
- assistant: z.ZodObject<{
617
- schemaVersion: z.ZodLiteral<1>;
618
- id: z.ZodString;
619
- conversationId: z.ZodString;
620
- runId: z.ZodOptional<z.ZodString>;
621
- role: z.ZodEnum<{
622
- assistant: "assistant";
623
- summary: "summary";
624
- system: "system";
625
- tool: "tool";
626
- user: "user";
627
- }>;
628
- status: z.ZodEnum<{
629
- committed: "committed";
630
- completed: "completed";
631
- failed: "failed";
632
- interrupted: "interrupted";
633
- streaming: "streaming";
634
- superseded: "superseded";
635
- }>;
636
- parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
637
- type: z.ZodLiteral<"text">;
638
- text: z.ZodString;
639
- provider: z.ZodOptional<z.ZodObject<{
640
- schemaVersion: z.ZodInt;
641
- provider: z.ZodString;
642
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
643
- }, z.core.$strip>>;
644
- }, z.core.$strip>, z.ZodObject<{
645
- type: z.ZodLiteral<"reasoning">;
646
- text: z.ZodString;
647
- provider: z.ZodOptional<z.ZodObject<{
648
- schemaVersion: z.ZodInt;
649
- provider: z.ZodString;
650
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
651
- }, z.core.$strip>>;
652
- }, z.core.$strip>, z.ZodObject<{
653
- type: z.ZodLiteral<"file">;
654
- mediaType: z.ZodString;
655
- reference: z.ZodString;
656
- filename: z.ZodOptional<z.ZodString>;
657
- }, z.core.$strip>, z.ZodObject<{
658
- type: z.ZodLiteral<"source">;
659
- sourceId: z.ZodString;
660
- url: z.ZodOptional<z.ZodURL>;
661
- title: z.ZodOptional<z.ZodString>;
662
- }, z.core.$strip>, z.ZodObject<{
663
- type: z.ZodLiteral<"tool-call">;
664
- callId: z.ZodString;
665
- toolName: z.ZodString;
666
- input: z.ZodJSONSchema;
667
- provider: z.ZodOptional<z.ZodObject<{
668
- schemaVersion: z.ZodInt;
669
- provider: z.ZodString;
670
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
671
- }, z.core.$strip>>;
672
- }, z.core.$strip>, z.ZodObject<{
673
- type: z.ZodLiteral<"tool-result">;
674
- callId: z.ZodString;
675
- toolName: z.ZodString;
676
- outcome: z.ZodEnum<{
677
- error: "error";
678
- interrupted: "interrupted";
679
- success: "success";
680
- }>;
681
- output: z.ZodOptional<z.ZodJSONSchema>;
682
- provider: z.ZodOptional<z.ZodObject<{
683
- schemaVersion: z.ZodInt;
684
- provider: z.ZodString;
685
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
686
- }, z.core.$strip>>;
687
- }, z.core.$strip>, z.ZodObject<{
688
- type: z.ZodLiteral<"tool-approval-request">;
689
- approvalId: z.ZodString;
690
- callId: z.ZodString;
691
- isAutomatic: z.ZodOptional<z.ZodBoolean>;
692
- signature: z.ZodOptional<z.ZodString>;
693
- }, z.core.$strip>, z.ZodObject<{
694
- type: z.ZodLiteral<"tool-approval-response">;
695
- approvalId: z.ZodString;
696
- approved: z.ZodBoolean;
697
- reason: z.ZodOptional<z.ZodString>;
698
- }, z.core.$strip>, z.ZodObject<{
699
- type: z.ZodLiteral<"provider">;
700
- envelope: z.ZodObject<{
701
- schemaVersion: z.ZodInt;
702
- provider: z.ZodString;
703
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
704
- }, z.core.$strip>;
705
- }, z.core.$strip>, z.ZodObject<{
706
- type: z.ZodLiteral<"control">;
707
- reason: z.ZodEnum<{
708
- "run-interrupted": "run-interrupted";
709
- "stale-run": "stale-run";
710
- }>;
711
- }, z.core.$strip>], "type">>;
712
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
713
- createdAt: z.ZodISODateTime;
714
- updatedAt: z.ZodISODateTime;
715
- }, z.core.$strip>;
716
- reason: z.ZodEnum<{
717
- abandoned: "abandoned";
718
- absorbed: "absorbed";
719
- cancelled: "cancelled";
720
- context_overflow: "context_overflow";
721
- interrupted: "interrupted";
722
- output_rejected: "output_rejected";
723
- policy_stop: "policy_stop";
724
- provider_failure: "provider_failure";
725
- provider_stop: "provider_stop";
726
- runtime_failure: "runtime_failure";
727
- shutdown: "shutdown";
728
- storage_conflict: "storage_conflict";
729
- success: "success";
730
- superseded: "superseded";
731
- timeout: "timeout";
732
- }>;
733
- policyName: z.ZodOptional<z.ZodString>;
734
- usage: z.ZodOptional<z.ZodObject<{
735
- inputTokens: z.ZodObject<{
736
- value: z.ZodOptional<z.ZodInt>;
737
- provenance: z.ZodEnum<{
738
- computed: "computed";
739
- estimated: "estimated";
740
- "provider-reported": "provider-reported";
741
- unavailable: "unavailable";
742
- }>;
743
- }, z.core.$strip>;
744
- outputTokens: z.ZodObject<{
745
- value: z.ZodOptional<z.ZodInt>;
746
- provenance: z.ZodEnum<{
747
- computed: "computed";
748
- estimated: "estimated";
749
- "provider-reported": "provider-reported";
750
- unavailable: "unavailable";
751
- }>;
752
- }, z.core.$strip>;
753
- reasoningTokens: z.ZodOptional<z.ZodObject<{
754
- value: z.ZodOptional<z.ZodInt>;
755
- provenance: z.ZodEnum<{
756
- computed: "computed";
757
- estimated: "estimated";
758
- "provider-reported": "provider-reported";
759
- unavailable: "unavailable";
760
- }>;
761
- }, z.core.$strip>>;
762
- cacheReadTokens: z.ZodOptional<z.ZodObject<{
763
- value: z.ZodOptional<z.ZodInt>;
764
- provenance: z.ZodEnum<{
765
- computed: "computed";
766
- estimated: "estimated";
767
- "provider-reported": "provider-reported";
768
- unavailable: "unavailable";
769
- }>;
770
- }, z.core.$strip>>;
771
- cacheWriteTokens: z.ZodOptional<z.ZodObject<{
772
- value: z.ZodOptional<z.ZodInt>;
773
- provenance: z.ZodEnum<{
774
- computed: "computed";
775
- estimated: "estimated";
776
- "provider-reported": "provider-reported";
777
- unavailable: "unavailable";
778
- }>;
779
- }, z.core.$strip>>;
780
- cost: z.ZodOptional<z.ZodObject<{
781
- value: z.ZodOptional<z.ZodNumber>;
782
- currency: z.ZodOptional<z.ZodString>;
783
- provenance: z.ZodEnum<{
784
- computed: "computed";
785
- estimated: "estimated";
786
- "provider-reported": "provider-reported";
787
- unavailable: "unavailable";
788
- }>;
789
- }, z.core.$strip>>;
790
- }, z.core.$strip>>;
791
- absorb: z.ZodOptional<z.ZodArray<z.ZodObject<{
792
- runId: z.ZodString;
793
- inputMessageIds: z.ZodArray<z.ZodString>;
794
- }, z.core.$strip>>>;
795
- }, z.core.$strip>;
796
- }, z.core.$strict>, z.ZodObject<{
797
- type: z.ZodLiteral<"compact">;
798
- input: z.ZodObject<{
799
- conversationId: z.ZodString;
800
- expectedVersion: z.ZodInt;
801
- replacedMessageIds: z.ZodArray<z.ZodString>;
802
- summary: z.ZodObject<{
803
- schemaVersion: z.ZodLiteral<1>;
804
- id: z.ZodString;
805
- conversationId: z.ZodString;
806
- runId: z.ZodOptional<z.ZodString>;
807
- role: z.ZodEnum<{
808
- assistant: "assistant";
809
- summary: "summary";
810
- system: "system";
811
- tool: "tool";
812
- user: "user";
813
- }>;
814
- status: z.ZodEnum<{
815
- committed: "committed";
816
- completed: "completed";
817
- failed: "failed";
818
- interrupted: "interrupted";
819
- streaming: "streaming";
820
- superseded: "superseded";
821
- }>;
822
- parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
823
- type: z.ZodLiteral<"text">;
824
- text: z.ZodString;
825
- provider: z.ZodOptional<z.ZodObject<{
826
- schemaVersion: z.ZodInt;
827
- provider: z.ZodString;
828
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
829
- }, z.core.$strip>>;
830
- }, z.core.$strip>, z.ZodObject<{
831
- type: z.ZodLiteral<"reasoning">;
832
- text: z.ZodString;
833
- provider: z.ZodOptional<z.ZodObject<{
834
- schemaVersion: z.ZodInt;
835
- provider: z.ZodString;
836
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
837
- }, z.core.$strip>>;
838
- }, z.core.$strip>, z.ZodObject<{
839
- type: z.ZodLiteral<"file">;
840
- mediaType: z.ZodString;
841
- reference: z.ZodString;
842
- filename: z.ZodOptional<z.ZodString>;
843
- }, z.core.$strip>, z.ZodObject<{
844
- type: z.ZodLiteral<"source">;
845
- sourceId: z.ZodString;
846
- url: z.ZodOptional<z.ZodURL>;
847
- title: z.ZodOptional<z.ZodString>;
848
- }, z.core.$strip>, z.ZodObject<{
849
- type: z.ZodLiteral<"tool-call">;
850
- callId: z.ZodString;
851
- toolName: z.ZodString;
852
- input: z.ZodJSONSchema;
853
- provider: z.ZodOptional<z.ZodObject<{
854
- schemaVersion: z.ZodInt;
855
- provider: z.ZodString;
856
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
857
- }, z.core.$strip>>;
858
- }, z.core.$strip>, z.ZodObject<{
859
- type: z.ZodLiteral<"tool-result">;
860
- callId: z.ZodString;
861
- toolName: z.ZodString;
862
- outcome: z.ZodEnum<{
863
- error: "error";
864
- interrupted: "interrupted";
865
- success: "success";
866
- }>;
867
- output: z.ZodOptional<z.ZodJSONSchema>;
868
- provider: z.ZodOptional<z.ZodObject<{
869
- schemaVersion: z.ZodInt;
870
- provider: z.ZodString;
871
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
872
- }, z.core.$strip>>;
873
- }, z.core.$strip>, z.ZodObject<{
874
- type: z.ZodLiteral<"tool-approval-request">;
875
- approvalId: z.ZodString;
876
- callId: z.ZodString;
877
- isAutomatic: z.ZodOptional<z.ZodBoolean>;
878
- signature: z.ZodOptional<z.ZodString>;
879
- }, z.core.$strip>, z.ZodObject<{
880
- type: z.ZodLiteral<"tool-approval-response">;
881
- approvalId: z.ZodString;
882
- approved: z.ZodBoolean;
883
- reason: z.ZodOptional<z.ZodString>;
884
- }, z.core.$strip>, z.ZodObject<{
885
- type: z.ZodLiteral<"provider">;
886
- envelope: z.ZodObject<{
887
- schemaVersion: z.ZodInt;
888
- provider: z.ZodString;
889
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
890
- }, z.core.$strip>;
891
- }, z.core.$strip>, z.ZodObject<{
892
- type: z.ZodLiteral<"control">;
893
- reason: z.ZodEnum<{
894
- "run-interrupted": "run-interrupted";
895
- "stale-run": "stale-run";
896
- }>;
897
- }, z.core.$strip>], "type">>;
898
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
899
- createdAt: z.ZodISODateTime;
900
- updatedAt: z.ZodISODateTime;
901
- }, z.core.$strip>;
902
- }, z.core.$strip>;
903
- }, z.core.$strict>, z.ZodObject<{
904
- type: z.ZodLiteral<"seed">;
905
- input: z.ZodObject<{
906
- conversationId: z.ZodString;
907
- seedKey: z.ZodString;
908
- inputs: z.ZodArray<z.ZodObject<{
909
- schemaVersion: z.ZodLiteral<1>;
910
- id: z.ZodString;
911
- conversationId: z.ZodString;
912
- runId: z.ZodOptional<z.ZodString>;
913
- role: z.ZodEnum<{
914
- assistant: "assistant";
915
- summary: "summary";
916
- system: "system";
917
- tool: "tool";
918
- user: "user";
919
- }>;
920
- status: z.ZodEnum<{
921
- committed: "committed";
922
- completed: "completed";
923
- failed: "failed";
924
- interrupted: "interrupted";
925
- streaming: "streaming";
926
- superseded: "superseded";
927
- }>;
928
- parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
929
- type: z.ZodLiteral<"text">;
930
- text: z.ZodString;
931
- provider: z.ZodOptional<z.ZodObject<{
932
- schemaVersion: z.ZodInt;
933
- provider: z.ZodString;
934
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
935
- }, z.core.$strip>>;
936
- }, z.core.$strip>, z.ZodObject<{
937
- type: z.ZodLiteral<"reasoning">;
938
- text: z.ZodString;
939
- provider: z.ZodOptional<z.ZodObject<{
940
- schemaVersion: z.ZodInt;
941
- provider: z.ZodString;
942
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
943
- }, z.core.$strip>>;
944
- }, z.core.$strip>, z.ZodObject<{
945
- type: z.ZodLiteral<"file">;
946
- mediaType: z.ZodString;
947
- reference: z.ZodString;
948
- filename: z.ZodOptional<z.ZodString>;
949
- }, z.core.$strip>, z.ZodObject<{
950
- type: z.ZodLiteral<"source">;
951
- sourceId: z.ZodString;
952
- url: z.ZodOptional<z.ZodURL>;
953
- title: z.ZodOptional<z.ZodString>;
954
- }, z.core.$strip>, z.ZodObject<{
955
- type: z.ZodLiteral<"tool-call">;
956
- callId: z.ZodString;
957
- toolName: z.ZodString;
958
- input: z.ZodJSONSchema;
959
- provider: z.ZodOptional<z.ZodObject<{
960
- schemaVersion: z.ZodInt;
961
- provider: z.ZodString;
962
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
963
- }, z.core.$strip>>;
964
- }, z.core.$strip>, z.ZodObject<{
965
- type: z.ZodLiteral<"tool-result">;
966
- callId: z.ZodString;
967
- toolName: z.ZodString;
968
- outcome: z.ZodEnum<{
969
- error: "error";
970
- interrupted: "interrupted";
971
- success: "success";
972
- }>;
973
- output: z.ZodOptional<z.ZodJSONSchema>;
974
- provider: z.ZodOptional<z.ZodObject<{
975
- schemaVersion: z.ZodInt;
976
- provider: z.ZodString;
977
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
978
- }, z.core.$strip>>;
979
- }, z.core.$strip>, z.ZodObject<{
980
- type: z.ZodLiteral<"tool-approval-request">;
981
- approvalId: z.ZodString;
982
- callId: z.ZodString;
983
- isAutomatic: z.ZodOptional<z.ZodBoolean>;
984
- signature: z.ZodOptional<z.ZodString>;
985
- }, z.core.$strip>, z.ZodObject<{
986
- type: z.ZodLiteral<"tool-approval-response">;
987
- approvalId: z.ZodString;
988
- approved: z.ZodBoolean;
989
- reason: z.ZodOptional<z.ZodString>;
990
- }, z.core.$strip>, z.ZodObject<{
991
- type: z.ZodLiteral<"provider">;
992
- envelope: z.ZodObject<{
993
- schemaVersion: z.ZodInt;
994
- provider: z.ZodString;
995
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
996
- }, z.core.$strip>;
997
- }, z.core.$strip>, z.ZodObject<{
998
- type: z.ZodLiteral<"control">;
999
- reason: z.ZodEnum<{
1000
- "run-interrupted": "run-interrupted";
1001
- "stale-run": "stale-run";
1002
- }>;
1003
- }, z.core.$strip>], "type">>;
1004
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1005
- createdAt: z.ZodISODateTime;
1006
- updatedAt: z.ZodISODateTime;
1007
- }, z.core.$strip>>;
1008
- placement: z.ZodOptional<z.ZodEnum<{
1009
- "after-settled": "after-settled";
1010
- lead: "lead";
1011
- }>>;
1012
- }, z.core.$strip>;
1013
- }, z.core.$strict>], "type">;
1014
- export type AgentStoreTransition = z.infer<typeof AgentStoreTransitionSchema>;
1015
- export declare const AgentStoreCheckpointRecordSchema: z.ZodObject<{
1016
- type: z.ZodLiteral<"checkpoint">;
1017
- input: z.ZodObject<{
1018
- conversationId: z.ZodString;
1019
- runId: z.ZodString;
1020
- expectedRevision: z.ZodInt;
1021
- ownerId: z.ZodString;
1022
- fencingToken: z.ZodOptional<z.ZodInt>;
1023
- assistant: z.ZodObject<{
1024
- id: z.ZodString;
1025
- status: z.ZodLiteral<"streaming">;
1026
- sha256: z.ZodOptional<z.ZodString>;
1027
- sourceSha256: z.ZodOptional<z.ZodString>;
1028
- parts: z.ZodInt;
1029
- bytes: z.ZodInt;
1030
- }, z.core.$strict>;
1031
- usage: z.ZodOptional<z.ZodObject<{
1032
- inputTokens: z.ZodObject<{
1033
- value: z.ZodOptional<z.ZodInt>;
1034
- provenance: z.ZodEnum<{
1035
- computed: "computed";
1036
- estimated: "estimated";
1037
- "provider-reported": "provider-reported";
1038
- unavailable: "unavailable";
1039
- }>;
1040
- }, z.core.$strip>;
1041
- outputTokens: z.ZodObject<{
1042
- value: z.ZodOptional<z.ZodInt>;
1043
- provenance: z.ZodEnum<{
1044
- computed: "computed";
1045
- estimated: "estimated";
1046
- "provider-reported": "provider-reported";
1047
- unavailable: "unavailable";
1048
- }>;
1049
- }, z.core.$strip>;
1050
- reasoningTokens: z.ZodOptional<z.ZodObject<{
1051
- value: z.ZodOptional<z.ZodInt>;
1052
- provenance: z.ZodEnum<{
1053
- computed: "computed";
1054
- estimated: "estimated";
1055
- "provider-reported": "provider-reported";
1056
- unavailable: "unavailable";
1057
- }>;
1058
- }, z.core.$strip>>;
1059
- cacheReadTokens: z.ZodOptional<z.ZodObject<{
1060
- value: z.ZodOptional<z.ZodInt>;
1061
- provenance: z.ZodEnum<{
1062
- computed: "computed";
1063
- estimated: "estimated";
1064
- "provider-reported": "provider-reported";
1065
- unavailable: "unavailable";
1066
- }>;
1067
- }, z.core.$strip>>;
1068
- cacheWriteTokens: z.ZodOptional<z.ZodObject<{
1069
- value: z.ZodOptional<z.ZodInt>;
1070
- provenance: z.ZodEnum<{
1071
- computed: "computed";
1072
- estimated: "estimated";
1073
- "provider-reported": "provider-reported";
1074
- unavailable: "unavailable";
1075
- }>;
1076
- }, z.core.$strip>>;
1077
- cost: z.ZodOptional<z.ZodObject<{
1078
- value: z.ZodOptional<z.ZodNumber>;
1079
- currency: z.ZodOptional<z.ZodString>;
1080
- provenance: z.ZodEnum<{
1081
- computed: "computed";
1082
- estimated: "estimated";
1083
- "provider-reported": "provider-reported";
1084
- unavailable: "unavailable";
1085
- }>;
1086
- }, z.core.$strip>>;
1087
- }, z.core.$strip>>;
1088
- }, z.core.$strict>;
1089
- }, z.core.$strict>;
1090
- /** Persisted journal records: operations and compact hash-only checkpoint observations. */
1091
- export declare const AgentStoreTransitionRecordSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
1092
- type: z.ZodLiteral<"accept">;
1093
- input: z.ZodObject<{
1094
- idempotencyKey: z.ZodString;
1095
- expectedVersion: z.ZodOptional<z.ZodInt>;
1096
- input: z.ZodObject<{
1097
- schemaVersion: z.ZodLiteral<1>;
1098
- id: z.ZodString;
1099
- conversationId: z.ZodString;
1100
- runId: z.ZodOptional<z.ZodString>;
1101
- role: z.ZodEnum<{
1102
- assistant: "assistant";
1103
- summary: "summary";
1104
- system: "system";
1105
- tool: "tool";
1106
- user: "user";
1107
- }>;
1108
- status: z.ZodEnum<{
1109
- committed: "committed";
1110
- completed: "completed";
1111
- failed: "failed";
1112
- interrupted: "interrupted";
1113
- streaming: "streaming";
1114
- superseded: "superseded";
1115
- }>;
1116
- parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1117
- type: z.ZodLiteral<"text">;
1118
- text: z.ZodString;
1119
- provider: z.ZodOptional<z.ZodObject<{
1120
- schemaVersion: z.ZodInt;
1121
- provider: z.ZodString;
1122
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1123
- }, z.core.$strip>>;
1124
- }, z.core.$strip>, z.ZodObject<{
1125
- type: z.ZodLiteral<"reasoning">;
1126
- text: z.ZodString;
1127
- provider: z.ZodOptional<z.ZodObject<{
1128
- schemaVersion: z.ZodInt;
1129
- provider: z.ZodString;
1130
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1131
- }, z.core.$strip>>;
1132
- }, z.core.$strip>, z.ZodObject<{
1133
- type: z.ZodLiteral<"file">;
1134
- mediaType: z.ZodString;
1135
- reference: z.ZodString;
1136
- filename: z.ZodOptional<z.ZodString>;
1137
- }, z.core.$strip>, z.ZodObject<{
1138
- type: z.ZodLiteral<"source">;
1139
- sourceId: z.ZodString;
1140
- url: z.ZodOptional<z.ZodURL>;
1141
- title: z.ZodOptional<z.ZodString>;
1142
- }, z.core.$strip>, z.ZodObject<{
1143
- type: z.ZodLiteral<"tool-call">;
1144
- callId: z.ZodString;
1145
- toolName: z.ZodString;
1146
- input: z.ZodJSONSchema;
1147
- provider: z.ZodOptional<z.ZodObject<{
1148
- schemaVersion: z.ZodInt;
1149
- provider: z.ZodString;
1150
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1151
- }, z.core.$strip>>;
1152
- }, z.core.$strip>, z.ZodObject<{
1153
- type: z.ZodLiteral<"tool-result">;
1154
- callId: z.ZodString;
1155
- toolName: z.ZodString;
1156
- outcome: z.ZodEnum<{
1157
- error: "error";
1158
- interrupted: "interrupted";
1159
- success: "success";
1160
- }>;
1161
- output: z.ZodOptional<z.ZodJSONSchema>;
1162
- provider: z.ZodOptional<z.ZodObject<{
1163
- schemaVersion: z.ZodInt;
1164
- provider: z.ZodString;
1165
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1166
- }, z.core.$strip>>;
1167
- }, z.core.$strip>, z.ZodObject<{
1168
- type: z.ZodLiteral<"tool-approval-request">;
1169
- approvalId: z.ZodString;
1170
- callId: z.ZodString;
1171
- isAutomatic: z.ZodOptional<z.ZodBoolean>;
1172
- signature: z.ZodOptional<z.ZodString>;
1173
- }, z.core.$strip>, z.ZodObject<{
1174
- type: z.ZodLiteral<"tool-approval-response">;
1175
- approvalId: z.ZodString;
1176
- approved: z.ZodBoolean;
1177
- reason: z.ZodOptional<z.ZodString>;
1178
- }, z.core.$strip>, z.ZodObject<{
1179
- type: z.ZodLiteral<"provider">;
1180
- envelope: z.ZodObject<{
1181
- schemaVersion: z.ZodInt;
1182
- provider: z.ZodString;
1183
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1184
- }, z.core.$strip>;
1185
- }, z.core.$strip>, z.ZodObject<{
1186
- type: z.ZodLiteral<"control">;
1187
- reason: z.ZodEnum<{
1188
- "run-interrupted": "run-interrupted";
1189
- "stale-run": "stale-run";
1190
- }>;
1191
- }, z.core.$strip>], "type">>;
1192
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1193
- createdAt: z.ZodISODateTime;
1194
- updatedAt: z.ZodISODateTime;
1195
- }, z.core.$strip>;
1196
- run: z.ZodObject<{
1197
- schemaVersion: z.ZodLiteral<1>;
1198
- id: z.ZodString;
1199
- conversationId: z.ZodString;
1200
- inputMessageIds: z.ZodArray<z.ZodString>;
1201
- assistantMessageId: z.ZodString;
1202
- state: z.ZodEnum<{
1203
- abandoned: "abandoned";
1204
- cancelled: "cancelled";
1205
- completed: "completed";
1206
- failed: "failed";
1207
- interrupt_requested: "interrupt_requested";
1208
- interrupted: "interrupted";
1209
- queued: "queued";
1210
- running: "running";
1211
- superseded: "superseded";
1212
- }>;
1213
- revision: z.ZodInt;
1214
- queuePriority: z.ZodOptional<z.ZodEnum<{
1215
- "interrupt-next": "interrupt-next";
1216
- }>>;
1217
- executionSequence: z.ZodOptional<z.ZodInt>;
1218
- ownerId: z.ZodOptional<z.ZodString>;
1219
- fencingToken: z.ZodOptional<z.ZodInt>;
1220
- terminalReason: z.ZodOptional<z.ZodEnum<{
1221
- abandoned: "abandoned";
1222
- absorbed: "absorbed";
1223
- cancelled: "cancelled";
1224
- context_overflow: "context_overflow";
1225
- interrupted: "interrupted";
1226
- output_rejected: "output_rejected";
1227
- policy_stop: "policy_stop";
1228
- provider_failure: "provider_failure";
1229
- provider_stop: "provider_stop";
1230
- runtime_failure: "runtime_failure";
1231
- shutdown: "shutdown";
1232
- storage_conflict: "storage_conflict";
1233
- success: "success";
1234
- superseded: "superseded";
1235
- timeout: "timeout";
1236
- }>>;
1237
- terminalPolicyName: z.ZodOptional<z.ZodString>;
1238
- absorbedIntoRunId: z.ZodOptional<z.ZodString>;
1239
- usage: z.ZodOptional<z.ZodObject<{
1240
- inputTokens: z.ZodObject<{
1241
- value: z.ZodOptional<z.ZodInt>;
1242
- provenance: z.ZodEnum<{
1243
- computed: "computed";
1244
- estimated: "estimated";
1245
- "provider-reported": "provider-reported";
1246
- unavailable: "unavailable";
1247
- }>;
1248
- }, z.core.$strip>;
1249
- outputTokens: z.ZodObject<{
1250
- value: z.ZodOptional<z.ZodInt>;
1251
- provenance: z.ZodEnum<{
1252
- computed: "computed";
1253
- estimated: "estimated";
1254
- "provider-reported": "provider-reported";
1255
- unavailable: "unavailable";
1256
- }>;
1257
- }, z.core.$strip>;
1258
- reasoningTokens: z.ZodOptional<z.ZodObject<{
1259
- value: z.ZodOptional<z.ZodInt>;
1260
- provenance: z.ZodEnum<{
1261
- computed: "computed";
1262
- estimated: "estimated";
1263
- "provider-reported": "provider-reported";
1264
- unavailable: "unavailable";
1265
- }>;
1266
- }, z.core.$strip>>;
1267
- cacheReadTokens: z.ZodOptional<z.ZodObject<{
1268
- value: z.ZodOptional<z.ZodInt>;
1269
- provenance: z.ZodEnum<{
1270
- computed: "computed";
1271
- estimated: "estimated";
1272
- "provider-reported": "provider-reported";
1273
- unavailable: "unavailable";
1274
- }>;
1275
- }, z.core.$strip>>;
1276
- cacheWriteTokens: z.ZodOptional<z.ZodObject<{
1277
- value: z.ZodOptional<z.ZodInt>;
1278
- provenance: z.ZodEnum<{
1279
- computed: "computed";
1280
- estimated: "estimated";
1281
- "provider-reported": "provider-reported";
1282
- unavailable: "unavailable";
1283
- }>;
1284
- }, z.core.$strip>>;
1285
- cost: z.ZodOptional<z.ZodObject<{
1286
- value: z.ZodOptional<z.ZodNumber>;
1287
- currency: z.ZodOptional<z.ZodString>;
1288
- provenance: z.ZodEnum<{
1289
- computed: "computed";
1290
- estimated: "estimated";
1291
- "provider-reported": "provider-reported";
1292
- unavailable: "unavailable";
1293
- }>;
1294
- }, z.core.$strip>>;
1295
- }, z.core.$strip>>;
1296
- lastOperation: z.ZodOptional<z.ZodObject<{
1297
- operationId: z.ZodString;
1298
- kind: z.ZodEnum<{
1299
- compaction: "compaction";
1300
- "model-request": "model-request";
1301
- }>;
1302
- phase: z.ZodEnum<{
1303
- cancelled: "cancelled";
1304
- completed: "completed";
1305
- failed: "failed";
1306
- "first-output": "first-output";
1307
- started: "started";
1308
- }>;
1309
- step: z.ZodOptional<z.ZodInt>;
1310
- startedAt: z.ZodISODateTime;
1311
- firstOutputAt: z.ZodOptional<z.ZodISODateTime>;
1312
- finishedAt: z.ZodOptional<z.ZodISODateTime>;
1313
- }, z.core.$strip>>;
1314
- createdAt: z.ZodISODateTime;
1315
- updatedAt: z.ZodISODateTime;
1316
- }, z.core.$strip>;
1317
- coalesceIntoRunId: z.ZodOptional<z.ZodString>;
1318
- }, z.core.$strip>;
1319
- }, z.core.$strict>, z.ZodObject<{
1320
- type: z.ZodLiteral<"acquire">;
1321
- input: z.ZodObject<{
1322
- conversationId: z.ZodString;
1323
- runId: z.ZodString;
1324
- expectedRevision: z.ZodInt;
1325
- ownerId: z.ZodString;
1326
- }, z.core.$strip>;
1327
- }, z.core.$strict>, z.ZodObject<{
1328
- type: z.ZodLiteral<"checkpoint">;
1329
- input: z.ZodObject<{
1330
- conversationId: z.ZodString;
1331
- runId: z.ZodString;
1332
- expectedRevision: z.ZodInt;
1333
- ownerId: z.ZodString;
1334
- fencingToken: z.ZodOptional<z.ZodInt>;
1335
- assistant: z.ZodObject<{
1336
- schemaVersion: z.ZodLiteral<1>;
1337
- id: z.ZodString;
1338
- conversationId: z.ZodString;
1339
- runId: z.ZodOptional<z.ZodString>;
1340
- role: z.ZodEnum<{
1341
- assistant: "assistant";
1342
- summary: "summary";
1343
- system: "system";
1344
- tool: "tool";
1345
- user: "user";
1346
- }>;
1347
- status: z.ZodEnum<{
1348
- committed: "committed";
1349
- completed: "completed";
1350
- failed: "failed";
1351
- interrupted: "interrupted";
1352
- streaming: "streaming";
1353
- superseded: "superseded";
1354
- }>;
1355
- parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1356
- type: z.ZodLiteral<"text">;
1357
- text: z.ZodString;
1358
- provider: z.ZodOptional<z.ZodObject<{
1359
- schemaVersion: z.ZodInt;
1360
- provider: z.ZodString;
1361
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1362
- }, z.core.$strip>>;
1363
- }, z.core.$strip>, z.ZodObject<{
1364
- type: z.ZodLiteral<"reasoning">;
1365
- text: z.ZodString;
1366
- provider: z.ZodOptional<z.ZodObject<{
1367
- schemaVersion: z.ZodInt;
1368
- provider: z.ZodString;
1369
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1370
- }, z.core.$strip>>;
1371
- }, z.core.$strip>, z.ZodObject<{
1372
- type: z.ZodLiteral<"file">;
1373
- mediaType: z.ZodString;
1374
- reference: z.ZodString;
1375
- filename: z.ZodOptional<z.ZodString>;
1376
- }, z.core.$strip>, z.ZodObject<{
1377
- type: z.ZodLiteral<"source">;
1378
- sourceId: z.ZodString;
1379
- url: z.ZodOptional<z.ZodURL>;
1380
- title: z.ZodOptional<z.ZodString>;
1381
- }, z.core.$strip>, z.ZodObject<{
1382
- type: z.ZodLiteral<"tool-call">;
1383
- callId: z.ZodString;
1384
- toolName: z.ZodString;
1385
- input: z.ZodJSONSchema;
1386
- provider: z.ZodOptional<z.ZodObject<{
1387
- schemaVersion: z.ZodInt;
1388
- provider: z.ZodString;
1389
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1390
- }, z.core.$strip>>;
1391
- }, z.core.$strip>, z.ZodObject<{
1392
- type: z.ZodLiteral<"tool-result">;
1393
- callId: z.ZodString;
1394
- toolName: z.ZodString;
1395
- outcome: z.ZodEnum<{
1396
- error: "error";
1397
- interrupted: "interrupted";
1398
- success: "success";
1399
- }>;
1400
- output: z.ZodOptional<z.ZodJSONSchema>;
1401
- provider: z.ZodOptional<z.ZodObject<{
1402
- schemaVersion: z.ZodInt;
1403
- provider: z.ZodString;
1404
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1405
- }, z.core.$strip>>;
1406
- }, z.core.$strip>, z.ZodObject<{
1407
- type: z.ZodLiteral<"tool-approval-request">;
1408
- approvalId: z.ZodString;
1409
- callId: z.ZodString;
1410
- isAutomatic: z.ZodOptional<z.ZodBoolean>;
1411
- signature: z.ZodOptional<z.ZodString>;
1412
- }, z.core.$strip>, z.ZodObject<{
1413
- type: z.ZodLiteral<"tool-approval-response">;
1414
- approvalId: z.ZodString;
1415
- approved: z.ZodBoolean;
1416
- reason: z.ZodOptional<z.ZodString>;
1417
- }, z.core.$strip>, z.ZodObject<{
1418
- type: z.ZodLiteral<"provider">;
1419
- envelope: z.ZodObject<{
1420
- schemaVersion: z.ZodInt;
1421
- provider: z.ZodString;
1422
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1423
- }, z.core.$strip>;
1424
- }, z.core.$strip>, z.ZodObject<{
1425
- type: z.ZodLiteral<"control">;
1426
- reason: z.ZodEnum<{
1427
- "run-interrupted": "run-interrupted";
1428
- "stale-run": "stale-run";
1429
- }>;
1430
- }, z.core.$strip>], "type">>;
1431
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1432
- createdAt: z.ZodISODateTime;
1433
- updatedAt: z.ZodISODateTime;
1434
- }, z.core.$strip>;
1435
- usage: z.ZodOptional<z.ZodObject<{
1436
- inputTokens: z.ZodObject<{
1437
- value: z.ZodOptional<z.ZodInt>;
1438
- provenance: z.ZodEnum<{
1439
- computed: "computed";
1440
- estimated: "estimated";
1441
- "provider-reported": "provider-reported";
1442
- unavailable: "unavailable";
1443
- }>;
1444
- }, z.core.$strip>;
1445
- outputTokens: z.ZodObject<{
1446
- value: z.ZodOptional<z.ZodInt>;
1447
- provenance: z.ZodEnum<{
1448
- computed: "computed";
1449
- estimated: "estimated";
1450
- "provider-reported": "provider-reported";
1451
- unavailable: "unavailable";
1452
- }>;
1453
- }, z.core.$strip>;
1454
- reasoningTokens: z.ZodOptional<z.ZodObject<{
1455
- value: z.ZodOptional<z.ZodInt>;
1456
- provenance: z.ZodEnum<{
1457
- computed: "computed";
1458
- estimated: "estimated";
1459
- "provider-reported": "provider-reported";
1460
- unavailable: "unavailable";
1461
- }>;
1462
- }, z.core.$strip>>;
1463
- cacheReadTokens: z.ZodOptional<z.ZodObject<{
1464
- value: z.ZodOptional<z.ZodInt>;
1465
- provenance: z.ZodEnum<{
1466
- computed: "computed";
1467
- estimated: "estimated";
1468
- "provider-reported": "provider-reported";
1469
- unavailable: "unavailable";
1470
- }>;
1471
- }, z.core.$strip>>;
1472
- cacheWriteTokens: z.ZodOptional<z.ZodObject<{
1473
- value: z.ZodOptional<z.ZodInt>;
1474
- provenance: z.ZodEnum<{
1475
- computed: "computed";
1476
- estimated: "estimated";
1477
- "provider-reported": "provider-reported";
1478
- unavailable: "unavailable";
1479
- }>;
1480
- }, z.core.$strip>>;
1481
- cost: z.ZodOptional<z.ZodObject<{
1482
- value: z.ZodOptional<z.ZodNumber>;
1483
- currency: z.ZodOptional<z.ZodString>;
1484
- provenance: z.ZodEnum<{
1485
- computed: "computed";
1486
- estimated: "estimated";
1487
- "provider-reported": "provider-reported";
1488
- unavailable: "unavailable";
1489
- }>;
1490
- }, z.core.$strip>>;
1491
- }, z.core.$strip>>;
1492
- }, z.core.$strip>;
1493
- }, z.core.$strict>, z.ZodObject<{
1494
- type: z.ZodLiteral<"operation">;
1495
- input: z.ZodObject<{
1496
- conversationId: z.ZodString;
1497
- runId: z.ZodString;
1498
- expectedRevision: z.ZodInt;
1499
- ownerId: z.ZodString;
1500
- fencingToken: z.ZodOptional<z.ZodInt>;
1501
- operation: z.ZodObject<{
1502
- operationId: z.ZodString;
1503
- kind: z.ZodEnum<{
1504
- compaction: "compaction";
1505
- "model-request": "model-request";
1506
- }>;
1507
- phase: z.ZodEnum<{
1508
- cancelled: "cancelled";
1509
- completed: "completed";
1510
- failed: "failed";
1511
- "first-output": "first-output";
1512
- started: "started";
1513
- }>;
1514
- step: z.ZodOptional<z.ZodInt>;
1515
- startedAt: z.ZodISODateTime;
1516
- firstOutputAt: z.ZodOptional<z.ZodISODateTime>;
1517
- finishedAt: z.ZodOptional<z.ZodISODateTime>;
1518
- }, z.core.$strip>;
1519
- }, z.core.$strip>;
1520
- }, z.core.$strict>, z.ZodObject<{
1521
- type: z.ZodLiteral<"interrupt">;
1522
- input: z.ZodObject<{
1523
- conversationId: z.ZodString;
1524
- runId: z.ZodString;
1525
- expectedRevision: z.ZodInt;
1526
- }, z.core.$strip>;
1527
- }, z.core.$strict>, z.ZodObject<{
1528
- type: z.ZodLiteral<"recover">;
1529
- input: z.ZodObject<{
1530
- conversationId: z.ZodString;
1531
- runId: z.ZodString;
1532
- expectedRevision: z.ZodInt;
1533
- action: z.ZodEnum<{
1534
- abandon: "abandon";
1535
- requeue: "requeue";
1536
- }>;
1537
- replaySafe: z.ZodOptional<z.ZodBoolean>;
1538
- }, z.core.$strip>;
1539
- assistant: z.ZodOptional<z.ZodObject<{
1540
- schemaVersion: z.ZodLiteral<1>;
1541
- id: z.ZodString;
1542
- conversationId: z.ZodString;
1543
- runId: z.ZodOptional<z.ZodString>;
1544
- role: z.ZodEnum<{
1545
- assistant: "assistant";
1546
- summary: "summary";
1547
- system: "system";
1548
- tool: "tool";
1549
- user: "user";
1550
- }>;
1551
- status: z.ZodEnum<{
1552
- committed: "committed";
1553
- completed: "completed";
1554
- failed: "failed";
1555
- interrupted: "interrupted";
1556
- streaming: "streaming";
1557
- superseded: "superseded";
1558
- }>;
1559
- parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1560
- type: z.ZodLiteral<"text">;
1561
- text: z.ZodString;
1562
- provider: z.ZodOptional<z.ZodObject<{
1563
- schemaVersion: z.ZodInt;
1564
- provider: z.ZodString;
1565
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1566
- }, z.core.$strip>>;
1567
- }, z.core.$strip>, z.ZodObject<{
1568
- type: z.ZodLiteral<"reasoning">;
1569
- text: z.ZodString;
1570
- provider: z.ZodOptional<z.ZodObject<{
1571
- schemaVersion: z.ZodInt;
1572
- provider: z.ZodString;
1573
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1574
- }, z.core.$strip>>;
1575
- }, z.core.$strip>, z.ZodObject<{
1576
- type: z.ZodLiteral<"file">;
1577
- mediaType: z.ZodString;
1578
- reference: z.ZodString;
1579
- filename: z.ZodOptional<z.ZodString>;
1580
- }, z.core.$strip>, z.ZodObject<{
1581
- type: z.ZodLiteral<"source">;
1582
- sourceId: z.ZodString;
1583
- url: z.ZodOptional<z.ZodURL>;
1584
- title: z.ZodOptional<z.ZodString>;
1585
- }, z.core.$strip>, z.ZodObject<{
1586
- type: z.ZodLiteral<"tool-call">;
1587
- callId: z.ZodString;
1588
- toolName: z.ZodString;
1589
- input: z.ZodJSONSchema;
1590
- provider: z.ZodOptional<z.ZodObject<{
1591
- schemaVersion: z.ZodInt;
1592
- provider: z.ZodString;
1593
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1594
- }, z.core.$strip>>;
1595
- }, z.core.$strip>, z.ZodObject<{
1596
- type: z.ZodLiteral<"tool-result">;
1597
- callId: z.ZodString;
1598
- toolName: z.ZodString;
1599
- outcome: z.ZodEnum<{
1600
- error: "error";
1601
- interrupted: "interrupted";
1602
- success: "success";
1603
- }>;
1604
- output: z.ZodOptional<z.ZodJSONSchema>;
1605
- provider: z.ZodOptional<z.ZodObject<{
1606
- schemaVersion: z.ZodInt;
1607
- provider: z.ZodString;
1608
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1609
- }, z.core.$strip>>;
1610
- }, z.core.$strip>, z.ZodObject<{
1611
- type: z.ZodLiteral<"tool-approval-request">;
1612
- approvalId: z.ZodString;
1613
- callId: z.ZodString;
1614
- isAutomatic: z.ZodOptional<z.ZodBoolean>;
1615
- signature: z.ZodOptional<z.ZodString>;
1616
- }, z.core.$strip>, z.ZodObject<{
1617
- type: z.ZodLiteral<"tool-approval-response">;
1618
- approvalId: z.ZodString;
1619
- approved: z.ZodBoolean;
1620
- reason: z.ZodOptional<z.ZodString>;
1621
- }, z.core.$strip>, z.ZodObject<{
1622
- type: z.ZodLiteral<"provider">;
1623
- envelope: z.ZodObject<{
1624
- schemaVersion: z.ZodInt;
1625
- provider: z.ZodString;
1626
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1627
- }, z.core.$strip>;
1628
- }, z.core.$strip>, z.ZodObject<{
1629
- type: z.ZodLiteral<"control">;
1630
- reason: z.ZodEnum<{
1631
- "run-interrupted": "run-interrupted";
1632
- "stale-run": "stale-run";
1633
- }>;
1634
- }, z.core.$strip>], "type">>;
1635
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1636
- createdAt: z.ZodISODateTime;
1637
- updatedAt: z.ZodISODateTime;
1638
- }, z.core.$strip>>;
1639
- usage: z.ZodOptional<z.ZodObject<{
1640
- inputTokens: z.ZodObject<{
1641
- value: z.ZodOptional<z.ZodInt>;
1642
- provenance: z.ZodEnum<{
1643
- computed: "computed";
1644
- estimated: "estimated";
1645
- "provider-reported": "provider-reported";
1646
- unavailable: "unavailable";
1647
- }>;
1648
- }, z.core.$strip>;
1649
- outputTokens: z.ZodObject<{
1650
- value: z.ZodOptional<z.ZodInt>;
1651
- provenance: z.ZodEnum<{
1652
- computed: "computed";
1653
- estimated: "estimated";
1654
- "provider-reported": "provider-reported";
1655
- unavailable: "unavailable";
1656
- }>;
1657
- }, z.core.$strip>;
1658
- reasoningTokens: z.ZodOptional<z.ZodObject<{
1659
- value: z.ZodOptional<z.ZodInt>;
1660
- provenance: z.ZodEnum<{
1661
- computed: "computed";
1662
- estimated: "estimated";
1663
- "provider-reported": "provider-reported";
1664
- unavailable: "unavailable";
1665
- }>;
1666
- }, z.core.$strip>>;
1667
- cacheReadTokens: z.ZodOptional<z.ZodObject<{
1668
- value: z.ZodOptional<z.ZodInt>;
1669
- provenance: z.ZodEnum<{
1670
- computed: "computed";
1671
- estimated: "estimated";
1672
- "provider-reported": "provider-reported";
1673
- unavailable: "unavailable";
1674
- }>;
1675
- }, z.core.$strip>>;
1676
- cacheWriteTokens: z.ZodOptional<z.ZodObject<{
1677
- value: z.ZodOptional<z.ZodInt>;
1678
- provenance: z.ZodEnum<{
1679
- computed: "computed";
1680
- estimated: "estimated";
1681
- "provider-reported": "provider-reported";
1682
- unavailable: "unavailable";
1683
- }>;
1684
- }, z.core.$strip>>;
1685
- cost: z.ZodOptional<z.ZodObject<{
1686
- value: z.ZodOptional<z.ZodNumber>;
1687
- currency: z.ZodOptional<z.ZodString>;
1688
- provenance: z.ZodEnum<{
1689
- computed: "computed";
1690
- estimated: "estimated";
1691
- "provider-reported": "provider-reported";
1692
- unavailable: "unavailable";
1693
- }>;
1694
- }, z.core.$strip>>;
1695
- }, z.core.$strip>>;
1696
- }, z.core.$strict>, z.ZodObject<{
1697
- type: z.ZodLiteral<"terminal">;
1698
- input: z.ZodObject<{
1699
- conversationId: z.ZodString;
1700
- runId: z.ZodString;
1701
- expectedRevision: z.ZodInt;
1702
- ownerId: z.ZodString;
1703
- fencingToken: z.ZodOptional<z.ZodInt>;
1704
- assistant: z.ZodObject<{
1705
- schemaVersion: z.ZodLiteral<1>;
1706
- id: z.ZodString;
1707
- conversationId: z.ZodString;
1708
- runId: z.ZodOptional<z.ZodString>;
1709
- role: z.ZodEnum<{
1710
- assistant: "assistant";
1711
- summary: "summary";
1712
- system: "system";
1713
- tool: "tool";
1714
- user: "user";
1715
- }>;
1716
- status: z.ZodEnum<{
1717
- committed: "committed";
1718
- completed: "completed";
1719
- failed: "failed";
1720
- interrupted: "interrupted";
1721
- streaming: "streaming";
1722
- superseded: "superseded";
1723
- }>;
1724
- parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1725
- type: z.ZodLiteral<"text">;
1726
- text: z.ZodString;
1727
- provider: z.ZodOptional<z.ZodObject<{
1728
- schemaVersion: z.ZodInt;
1729
- provider: z.ZodString;
1730
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1731
- }, z.core.$strip>>;
1732
- }, z.core.$strip>, z.ZodObject<{
1733
- type: z.ZodLiteral<"reasoning">;
1734
- text: z.ZodString;
1735
- provider: z.ZodOptional<z.ZodObject<{
1736
- schemaVersion: z.ZodInt;
1737
- provider: z.ZodString;
1738
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1739
- }, z.core.$strip>>;
1740
- }, z.core.$strip>, z.ZodObject<{
1741
- type: z.ZodLiteral<"file">;
1742
- mediaType: z.ZodString;
1743
- reference: z.ZodString;
1744
- filename: z.ZodOptional<z.ZodString>;
1745
- }, z.core.$strip>, z.ZodObject<{
1746
- type: z.ZodLiteral<"source">;
1747
- sourceId: z.ZodString;
1748
- url: z.ZodOptional<z.ZodURL>;
1749
- title: z.ZodOptional<z.ZodString>;
1750
- }, z.core.$strip>, z.ZodObject<{
1751
- type: z.ZodLiteral<"tool-call">;
1752
- callId: z.ZodString;
1753
- toolName: z.ZodString;
1754
- input: z.ZodJSONSchema;
1755
- provider: z.ZodOptional<z.ZodObject<{
1756
- schemaVersion: z.ZodInt;
1757
- provider: z.ZodString;
1758
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1759
- }, z.core.$strip>>;
1760
- }, z.core.$strip>, z.ZodObject<{
1761
- type: z.ZodLiteral<"tool-result">;
1762
- callId: z.ZodString;
1763
- toolName: z.ZodString;
1764
- outcome: z.ZodEnum<{
1765
- error: "error";
1766
- interrupted: "interrupted";
1767
- success: "success";
1768
- }>;
1769
- output: z.ZodOptional<z.ZodJSONSchema>;
1770
- provider: z.ZodOptional<z.ZodObject<{
1771
- schemaVersion: z.ZodInt;
1772
- provider: z.ZodString;
1773
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1774
- }, z.core.$strip>>;
1775
- }, z.core.$strip>, z.ZodObject<{
1776
- type: z.ZodLiteral<"tool-approval-request">;
1777
- approvalId: z.ZodString;
1778
- callId: z.ZodString;
1779
- isAutomatic: z.ZodOptional<z.ZodBoolean>;
1780
- signature: z.ZodOptional<z.ZodString>;
1781
- }, z.core.$strip>, z.ZodObject<{
1782
- type: z.ZodLiteral<"tool-approval-response">;
1783
- approvalId: z.ZodString;
1784
- approved: z.ZodBoolean;
1785
- reason: z.ZodOptional<z.ZodString>;
1786
- }, z.core.$strip>, z.ZodObject<{
1787
- type: z.ZodLiteral<"provider">;
1788
- envelope: z.ZodObject<{
1789
- schemaVersion: z.ZodInt;
1790
- provider: z.ZodString;
1791
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1792
- }, z.core.$strip>;
1793
- }, z.core.$strip>, z.ZodObject<{
1794
- type: z.ZodLiteral<"control">;
1795
- reason: z.ZodEnum<{
1796
- "run-interrupted": "run-interrupted";
1797
- "stale-run": "stale-run";
1798
- }>;
1799
- }, z.core.$strip>], "type">>;
1800
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1801
- createdAt: z.ZodISODateTime;
1802
- updatedAt: z.ZodISODateTime;
1803
- }, z.core.$strip>;
1804
- reason: z.ZodEnum<{
1805
- abandoned: "abandoned";
1806
- absorbed: "absorbed";
1807
- cancelled: "cancelled";
1808
- context_overflow: "context_overflow";
1809
- interrupted: "interrupted";
1810
- output_rejected: "output_rejected";
1811
- policy_stop: "policy_stop";
1812
- provider_failure: "provider_failure";
1813
- provider_stop: "provider_stop";
1814
- runtime_failure: "runtime_failure";
1815
- shutdown: "shutdown";
1816
- storage_conflict: "storage_conflict";
1817
- success: "success";
1818
- superseded: "superseded";
1819
- timeout: "timeout";
1820
- }>;
1821
- policyName: z.ZodOptional<z.ZodString>;
1822
- usage: z.ZodOptional<z.ZodObject<{
1823
- inputTokens: z.ZodObject<{
1824
- value: z.ZodOptional<z.ZodInt>;
1825
- provenance: z.ZodEnum<{
1826
- computed: "computed";
1827
- estimated: "estimated";
1828
- "provider-reported": "provider-reported";
1829
- unavailable: "unavailable";
1830
- }>;
1831
- }, z.core.$strip>;
1832
- outputTokens: z.ZodObject<{
1833
- value: z.ZodOptional<z.ZodInt>;
1834
- provenance: z.ZodEnum<{
1835
- computed: "computed";
1836
- estimated: "estimated";
1837
- "provider-reported": "provider-reported";
1838
- unavailable: "unavailable";
1839
- }>;
1840
- }, z.core.$strip>;
1841
- reasoningTokens: z.ZodOptional<z.ZodObject<{
1842
- value: z.ZodOptional<z.ZodInt>;
1843
- provenance: z.ZodEnum<{
1844
- computed: "computed";
1845
- estimated: "estimated";
1846
- "provider-reported": "provider-reported";
1847
- unavailable: "unavailable";
1848
- }>;
1849
- }, z.core.$strip>>;
1850
- cacheReadTokens: z.ZodOptional<z.ZodObject<{
1851
- value: z.ZodOptional<z.ZodInt>;
1852
- provenance: z.ZodEnum<{
1853
- computed: "computed";
1854
- estimated: "estimated";
1855
- "provider-reported": "provider-reported";
1856
- unavailable: "unavailable";
1857
- }>;
1858
- }, z.core.$strip>>;
1859
- cacheWriteTokens: z.ZodOptional<z.ZodObject<{
1860
- value: z.ZodOptional<z.ZodInt>;
1861
- provenance: z.ZodEnum<{
1862
- computed: "computed";
1863
- estimated: "estimated";
1864
- "provider-reported": "provider-reported";
1865
- unavailable: "unavailable";
1866
- }>;
1867
- }, z.core.$strip>>;
1868
- cost: z.ZodOptional<z.ZodObject<{
1869
- value: z.ZodOptional<z.ZodNumber>;
1870
- currency: z.ZodOptional<z.ZodString>;
1871
- provenance: z.ZodEnum<{
1872
- computed: "computed";
1873
- estimated: "estimated";
1874
- "provider-reported": "provider-reported";
1875
- unavailable: "unavailable";
1876
- }>;
1877
- }, z.core.$strip>>;
1878
- }, z.core.$strip>>;
1879
- absorb: z.ZodOptional<z.ZodArray<z.ZodObject<{
1880
- runId: z.ZodString;
1881
- inputMessageIds: z.ZodArray<z.ZodString>;
1882
- }, z.core.$strip>>>;
1883
- }, z.core.$strip>;
1884
- }, z.core.$strict>, z.ZodObject<{
1885
- type: z.ZodLiteral<"compact">;
1886
- input: z.ZodObject<{
1887
- conversationId: z.ZodString;
1888
- expectedVersion: z.ZodInt;
1889
- replacedMessageIds: z.ZodArray<z.ZodString>;
1890
- summary: z.ZodObject<{
1891
- schemaVersion: z.ZodLiteral<1>;
1892
- id: z.ZodString;
1893
- conversationId: z.ZodString;
1894
- runId: z.ZodOptional<z.ZodString>;
1895
- role: z.ZodEnum<{
1896
- assistant: "assistant";
1897
- summary: "summary";
1898
- system: "system";
1899
- tool: "tool";
1900
- user: "user";
1901
- }>;
1902
- status: z.ZodEnum<{
1903
- committed: "committed";
1904
- completed: "completed";
1905
- failed: "failed";
1906
- interrupted: "interrupted";
1907
- streaming: "streaming";
1908
- superseded: "superseded";
1909
- }>;
1910
- parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1911
- type: z.ZodLiteral<"text">;
1912
- text: z.ZodString;
1913
- provider: z.ZodOptional<z.ZodObject<{
1914
- schemaVersion: z.ZodInt;
1915
- provider: z.ZodString;
1916
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1917
- }, z.core.$strip>>;
1918
- }, z.core.$strip>, z.ZodObject<{
1919
- type: z.ZodLiteral<"reasoning">;
1920
- text: z.ZodString;
1921
- provider: z.ZodOptional<z.ZodObject<{
1922
- schemaVersion: z.ZodInt;
1923
- provider: z.ZodString;
1924
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1925
- }, z.core.$strip>>;
1926
- }, z.core.$strip>, z.ZodObject<{
1927
- type: z.ZodLiteral<"file">;
1928
- mediaType: z.ZodString;
1929
- reference: z.ZodString;
1930
- filename: z.ZodOptional<z.ZodString>;
1931
- }, z.core.$strip>, z.ZodObject<{
1932
- type: z.ZodLiteral<"source">;
1933
- sourceId: z.ZodString;
1934
- url: z.ZodOptional<z.ZodURL>;
1935
- title: z.ZodOptional<z.ZodString>;
1936
- }, z.core.$strip>, z.ZodObject<{
1937
- type: z.ZodLiteral<"tool-call">;
1938
- callId: z.ZodString;
1939
- toolName: z.ZodString;
1940
- input: z.ZodJSONSchema;
1941
- provider: z.ZodOptional<z.ZodObject<{
1942
- schemaVersion: z.ZodInt;
1943
- provider: z.ZodString;
1944
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1945
- }, z.core.$strip>>;
1946
- }, z.core.$strip>, z.ZodObject<{
1947
- type: z.ZodLiteral<"tool-result">;
1948
- callId: z.ZodString;
1949
- toolName: z.ZodString;
1950
- outcome: z.ZodEnum<{
1951
- error: "error";
1952
- interrupted: "interrupted";
1953
- success: "success";
1954
- }>;
1955
- output: z.ZodOptional<z.ZodJSONSchema>;
1956
- provider: z.ZodOptional<z.ZodObject<{
1957
- schemaVersion: z.ZodInt;
1958
- provider: z.ZodString;
1959
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1960
- }, z.core.$strip>>;
1961
- }, z.core.$strip>, z.ZodObject<{
1962
- type: z.ZodLiteral<"tool-approval-request">;
1963
- approvalId: z.ZodString;
1964
- callId: z.ZodString;
1965
- isAutomatic: z.ZodOptional<z.ZodBoolean>;
1966
- signature: z.ZodOptional<z.ZodString>;
1967
- }, z.core.$strip>, z.ZodObject<{
1968
- type: z.ZodLiteral<"tool-approval-response">;
1969
- approvalId: z.ZodString;
1970
- approved: z.ZodBoolean;
1971
- reason: z.ZodOptional<z.ZodString>;
1972
- }, z.core.$strip>, z.ZodObject<{
1973
- type: z.ZodLiteral<"provider">;
1974
- envelope: z.ZodObject<{
1975
- schemaVersion: z.ZodInt;
1976
- provider: z.ZodString;
1977
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1978
- }, z.core.$strip>;
1979
- }, z.core.$strip>, z.ZodObject<{
1980
- type: z.ZodLiteral<"control">;
1981
- reason: z.ZodEnum<{
1982
- "run-interrupted": "run-interrupted";
1983
- "stale-run": "stale-run";
1984
- }>;
1985
- }, z.core.$strip>], "type">>;
1986
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1987
- createdAt: z.ZodISODateTime;
1988
- updatedAt: z.ZodISODateTime;
1989
- }, z.core.$strip>;
1990
- }, z.core.$strip>;
1991
- }, z.core.$strict>, z.ZodObject<{
1992
- type: z.ZodLiteral<"seed">;
1993
- input: z.ZodObject<{
1994
- conversationId: z.ZodString;
1995
- seedKey: z.ZodString;
1996
- inputs: z.ZodArray<z.ZodObject<{
1997
- schemaVersion: z.ZodLiteral<1>;
1998
- id: z.ZodString;
1999
- conversationId: z.ZodString;
2000
- runId: z.ZodOptional<z.ZodString>;
2001
- role: z.ZodEnum<{
2002
- assistant: "assistant";
2003
- summary: "summary";
2004
- system: "system";
2005
- tool: "tool";
2006
- user: "user";
2007
- }>;
2008
- status: z.ZodEnum<{
2009
- committed: "committed";
2010
- completed: "completed";
2011
- failed: "failed";
2012
- interrupted: "interrupted";
2013
- streaming: "streaming";
2014
- superseded: "superseded";
2015
- }>;
2016
- parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2017
- type: z.ZodLiteral<"text">;
2018
- text: z.ZodString;
2019
- provider: z.ZodOptional<z.ZodObject<{
2020
- schemaVersion: z.ZodInt;
2021
- provider: z.ZodString;
2022
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
2023
- }, z.core.$strip>>;
2024
- }, z.core.$strip>, z.ZodObject<{
2025
- type: z.ZodLiteral<"reasoning">;
2026
- text: z.ZodString;
2027
- provider: z.ZodOptional<z.ZodObject<{
2028
- schemaVersion: z.ZodInt;
2029
- provider: z.ZodString;
2030
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
2031
- }, z.core.$strip>>;
2032
- }, z.core.$strip>, z.ZodObject<{
2033
- type: z.ZodLiteral<"file">;
2034
- mediaType: z.ZodString;
2035
- reference: z.ZodString;
2036
- filename: z.ZodOptional<z.ZodString>;
2037
- }, z.core.$strip>, z.ZodObject<{
2038
- type: z.ZodLiteral<"source">;
2039
- sourceId: z.ZodString;
2040
- url: z.ZodOptional<z.ZodURL>;
2041
- title: z.ZodOptional<z.ZodString>;
2042
- }, z.core.$strip>, z.ZodObject<{
2043
- type: z.ZodLiteral<"tool-call">;
2044
- callId: z.ZodString;
2045
- toolName: z.ZodString;
2046
- input: z.ZodJSONSchema;
2047
- provider: z.ZodOptional<z.ZodObject<{
2048
- schemaVersion: z.ZodInt;
2049
- provider: z.ZodString;
2050
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
2051
- }, z.core.$strip>>;
2052
- }, z.core.$strip>, z.ZodObject<{
2053
- type: z.ZodLiteral<"tool-result">;
2054
- callId: z.ZodString;
2055
- toolName: z.ZodString;
2056
- outcome: z.ZodEnum<{
2057
- error: "error";
2058
- interrupted: "interrupted";
2059
- success: "success";
2060
- }>;
2061
- output: z.ZodOptional<z.ZodJSONSchema>;
2062
- provider: z.ZodOptional<z.ZodObject<{
2063
- schemaVersion: z.ZodInt;
2064
- provider: z.ZodString;
2065
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
2066
- }, z.core.$strip>>;
2067
- }, z.core.$strip>, z.ZodObject<{
2068
- type: z.ZodLiteral<"tool-approval-request">;
2069
- approvalId: z.ZodString;
2070
- callId: z.ZodString;
2071
- isAutomatic: z.ZodOptional<z.ZodBoolean>;
2072
- signature: z.ZodOptional<z.ZodString>;
2073
- }, z.core.$strip>, z.ZodObject<{
2074
- type: z.ZodLiteral<"tool-approval-response">;
2075
- approvalId: z.ZodString;
2076
- approved: z.ZodBoolean;
2077
- reason: z.ZodOptional<z.ZodString>;
2078
- }, z.core.$strip>, z.ZodObject<{
2079
- type: z.ZodLiteral<"provider">;
2080
- envelope: z.ZodObject<{
2081
- schemaVersion: z.ZodInt;
2082
- provider: z.ZodString;
2083
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
2084
- }, z.core.$strip>;
2085
- }, z.core.$strip>, z.ZodObject<{
2086
- type: z.ZodLiteral<"control">;
2087
- reason: z.ZodEnum<{
2088
- "run-interrupted": "run-interrupted";
2089
- "stale-run": "stale-run";
2090
- }>;
2091
- }, z.core.$strip>], "type">>;
2092
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
2093
- createdAt: z.ZodISODateTime;
2094
- updatedAt: z.ZodISODateTime;
2095
- }, z.core.$strip>>;
2096
- placement: z.ZodOptional<z.ZodEnum<{
2097
- "after-settled": "after-settled";
2098
- lead: "lead";
2099
- }>>;
2100
- }, z.core.$strip>;
2101
- }, z.core.$strict>], "type">, z.ZodObject<{
2102
- type: z.ZodLiteral<"checkpoint">;
2103
- input: z.ZodObject<{
2104
- conversationId: z.ZodString;
2105
- runId: z.ZodString;
2106
- expectedRevision: z.ZodInt;
2107
- ownerId: z.ZodString;
2108
- fencingToken: z.ZodOptional<z.ZodInt>;
2109
- assistant: z.ZodObject<{
2110
- id: z.ZodString;
2111
- status: z.ZodLiteral<"streaming">;
2112
- sha256: z.ZodOptional<z.ZodString>;
2113
- sourceSha256: z.ZodOptional<z.ZodString>;
2114
- parts: z.ZodInt;
2115
- bytes: z.ZodInt;
2116
- }, z.core.$strict>;
2117
- usage: z.ZodOptional<z.ZodObject<{
2118
- inputTokens: z.ZodObject<{
2119
- value: z.ZodOptional<z.ZodInt>;
2120
- provenance: z.ZodEnum<{
2121
- computed: "computed";
2122
- estimated: "estimated";
2123
- "provider-reported": "provider-reported";
2124
- unavailable: "unavailable";
2125
- }>;
2126
- }, z.core.$strip>;
2127
- outputTokens: z.ZodObject<{
2128
- value: z.ZodOptional<z.ZodInt>;
2129
- provenance: z.ZodEnum<{
2130
- computed: "computed";
2131
- estimated: "estimated";
2132
- "provider-reported": "provider-reported";
2133
- unavailable: "unavailable";
2134
- }>;
2135
- }, z.core.$strip>;
2136
- reasoningTokens: z.ZodOptional<z.ZodObject<{
2137
- value: z.ZodOptional<z.ZodInt>;
2138
- provenance: z.ZodEnum<{
2139
- computed: "computed";
2140
- estimated: "estimated";
2141
- "provider-reported": "provider-reported";
2142
- unavailable: "unavailable";
2143
- }>;
2144
- }, z.core.$strip>>;
2145
- cacheReadTokens: z.ZodOptional<z.ZodObject<{
2146
- value: z.ZodOptional<z.ZodInt>;
2147
- provenance: z.ZodEnum<{
2148
- computed: "computed";
2149
- estimated: "estimated";
2150
- "provider-reported": "provider-reported";
2151
- unavailable: "unavailable";
2152
- }>;
2153
- }, z.core.$strip>>;
2154
- cacheWriteTokens: z.ZodOptional<z.ZodObject<{
2155
- value: z.ZodOptional<z.ZodInt>;
2156
- provenance: z.ZodEnum<{
2157
- computed: "computed";
2158
- estimated: "estimated";
2159
- "provider-reported": "provider-reported";
2160
- unavailable: "unavailable";
2161
- }>;
2162
- }, z.core.$strip>>;
2163
- cost: z.ZodOptional<z.ZodObject<{
2164
- value: z.ZodOptional<z.ZodNumber>;
2165
- currency: z.ZodOptional<z.ZodString>;
2166
- provenance: z.ZodEnum<{
2167
- computed: "computed";
2168
- estimated: "estimated";
2169
- "provider-reported": "provider-reported";
2170
- unavailable: "unavailable";
2171
- }>;
2172
- }, z.core.$strip>>;
2173
- }, z.core.$strip>>;
2174
- }, z.core.$strict>;
2175
- }, z.core.$strict>]>;
2176
- export type AgentStoreTransitionRecord = z.infer<typeof AgentStoreTransitionRecordSchema>;
2177
- export type AgentStoreEventDraft = Omit<AgentStoreEventEnvelope, 'seq'>;
2178
- export interface AgentStoreEventDecodeAccepted {
2179
- outcome: 'accepted';
2180
- event: AgentStoreEventEnvelope;
2181
- }
2182
- export interface AgentStoreEventDecodeIgnored {
2183
- outcome: 'ignored';
2184
- eventId: string;
2185
- conversationId: string;
2186
- seq: number;
2187
- schemaVersion: number;
2188
- kind: string;
2189
- }
2190
- export type AgentStoreEventDecodeResult = AgentStoreEventDecodeAccepted | AgentStoreEventDecodeIgnored;
2191
- /**
2192
- * Validate one event without silently widening the vocabulary.
2193
- *
2194
- * `ignorable` applies to an unknown kind or envelope version as a whole. It
2195
- * never turns an extra field in a known envelope into accepted data.
2196
- */
2197
- export declare function decodeAgentStoreEvent(value: unknown): AgentStoreEventDecodeResult;
2198
- export declare function agentStoreEventDraft(input: AppendAgentStoreEvent): AgentStoreEventDraft;
2199
- /**
2200
- * Stable UTF-8 JSON used by archives, digests and byte-for-byte round trips.
2201
- * It is `canonicalJson` and answers to its one admissibility table — an
2202
- * `undefined` member is omitted, while a cycle, an accessor or a value deeper
2203
- * than 100 levels is refused with a `CanonicalJsonError`. Unlike the public
2204
- * serializer it reads the value as `z.json()` does: model output can carry
2205
- * `-0`, which is JSON-equal to `0` and hashes as `0`, and an own `__proto__`
2206
- * member is dropped. The store
2207
- * bounds the size of what it keeps where records are written, so the node and
2208
- * byte limits here are the largest the serializer accepts.
2209
- */
2210
- export declare function canonicalAgentJson(value: unknown): string;
2211
- export declare const AgentConversationArchiveSchema: z.ZodObject<{
2212
- format: z.ZodLiteral<"stitchkit.agent-conversation">;
2213
- formatVersion: z.ZodLiteral<1>;
2214
- conversationId: z.ZodString;
2215
- events: z.ZodArray<z.ZodObject<{
2216
- schemaVersion: z.ZodInt;
2217
- eventId: z.ZodString;
2218
- conversationId: z.ZodString;
2219
- seq: z.ZodInt;
2220
- kind: z.ZodString;
2221
- occurredAt: z.ZodISODateTime;
2222
- payload: z.ZodJSONSchema;
2223
- ignorable: z.ZodOptional<z.ZodLiteral<true>>;
2224
- }, z.core.$strict>>;
2225
- projections: z.ZodDefault<z.ZodArray<z.ZodJSONSchema>>;
2226
- spills: z.ZodDefault<z.ZodArray<z.ZodJSONSchema>>;
2227
- }, z.core.$strict>;
2228
- export type AgentConversationArchive = z.infer<typeof AgentConversationArchiveSchema>;
2229
- export declare function encodeAgentConversationArchive(archive: AgentConversationArchive): Uint8Array;
2230
- export declare function decodeAgentConversationArchive(bytes: Uint8Array): AgentConversationArchive;
2231
- //# sourceMappingURL=store-events.d.ts.map