stitchkit 0.134.2 → 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 (1104) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/README.md +1 -1
  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.map +1 -0
  346. package/dist/agent-runtime/stores/sql-session.d.ts.map +1 -0
  347. package/dist/agent-runtime/stores/sqlite-bun.d.ts.map +1 -0
  348. package/dist/agent-runtime/stores/sqlite-node.d.ts.map +1 -0
  349. package/dist/agent-runtime/stores/sqlite-purge.d.ts +6 -0
  350. package/dist/agent-runtime/stores/sqlite-purge.d.ts.map +1 -0
  351. package/dist/agent-runtime/stores/sqlite-schema.d.ts +7 -0
  352. package/dist/agent-runtime/stores/sqlite-schema.d.ts.map +1 -0
  353. package/dist/agent-runtime/stores/sqlite-transactions.d.ts +29 -0
  354. package/dist/agent-runtime/stores/sqlite-transactions.d.ts.map +1 -0
  355. package/dist/agent-runtime/stores/sqlite.d.ts +33 -0
  356. package/dist/agent-runtime/stores/sqlite.d.ts.map +1 -0
  357. package/dist/agent-runtime/stores/store-archive.d.ts.map +1 -0
  358. package/dist/agent-runtime/stores/store-branch.d.ts.map +1 -0
  359. package/dist/agent-runtime/stores/store-capabilities.d.ts.map +1 -0
  360. package/dist/agent-runtime/stores/store-create.d.ts.map +1 -0
  361. package/dist/agent-runtime/stores/store-driver-contract.d.ts +1016 -0
  362. package/dist/agent-runtime/stores/store-driver-contract.d.ts.map +1 -0
  363. package/dist/agent-runtime/stores/store-event-once.d.ts +37 -0
  364. package/dist/agent-runtime/stores/store-event-once.d.ts.map +1 -0
  365. package/dist/agent-runtime/stores/store-events.d.ts +2231 -0
  366. package/dist/agent-runtime/stores/store-events.d.ts.map +1 -0
  367. package/dist/agent-runtime/stores/store-memory-archive.d.ts.map +1 -0
  368. package/dist/agent-runtime/stores/store-memory-events.d.ts +7 -0
  369. package/dist/agent-runtime/stores/store-memory-events.d.ts.map +1 -0
  370. package/dist/agent-runtime/stores/store-memory.d.ts.map +1 -0
  371. package/dist/agent-runtime/stores/store-migrations/v1-to-v2.d.ts +6 -0
  372. package/dist/agent-runtime/stores/store-migrations/v1-to-v2.d.ts.map +1 -0
  373. package/dist/agent-runtime/stores/store-migrations/v2-to-v3.d.ts +14 -0
  374. package/dist/agent-runtime/stores/store-migrations/v2-to-v3.d.ts.map +1 -0
  375. package/dist/agent-runtime/stores/store-migrations/v3-to-v4.d.ts +4 -0
  376. package/dist/agent-runtime/stores/store-migrations/v3-to-v4.d.ts.map +1 -0
  377. package/dist/agent-runtime/stores/store-mutate.d.ts.map +1 -0
  378. package/dist/agent-runtime/stores/store-purge.d.ts.map +1 -0
  379. package/dist/agent-runtime/stores/store-reads.d.ts +29 -0
  380. package/dist/agent-runtime/stores/store-reads.d.ts.map +1 -0
  381. package/dist/agent-runtime/stores/store-reduce-history.d.ts +10 -0
  382. package/dist/agent-runtime/stores/store-reduce-history.d.ts.map +1 -0
  383. package/dist/agent-runtime/stores/store-reduce-run.d.ts +14 -0
  384. package/dist/agent-runtime/stores/store-reduce-run.d.ts.map +1 -0
  385. package/dist/agent-runtime/stores/store-reduce-shared.d.ts +78 -0
  386. package/dist/agent-runtime/stores/store-reduce-shared.d.ts.map +1 -0
  387. package/dist/agent-runtime/stores/store-reduce-terminal.d.ts +6 -0
  388. package/dist/agent-runtime/stores/store-reduce-terminal.d.ts.map +1 -0
  389. package/dist/agent-runtime/stores/store-reducer.d.ts +24 -0
  390. package/dist/agent-runtime/stores/store-reducer.d.ts.map +1 -0
  391. package/dist/agent-runtime/stores/store-replay.d.ts.map +1 -0
  392. package/dist/agent-runtime/stores/store-snapshot.d.ts +19 -0
  393. package/dist/agent-runtime/stores/store-snapshot.d.ts.map +1 -0
  394. package/dist/agent-runtime/stores/store.d.ts +3032 -0
  395. package/dist/agent-runtime/stores/store.d.ts.map +1 -0
  396. package/dist/agent-runtime/terminal-commit.d.ts +1 -1
  397. package/dist/agent-runtime/terminal-commit.d.ts.map +1 -1
  398. package/dist/agent-runtime/testing/fault-bench.d.ts.map +1 -0
  399. package/dist/agent-runtime/testing/run-assertions.d.ts +63 -0
  400. package/dist/agent-runtime/testing/run-assertions.d.ts.map +1 -0
  401. package/dist/agent-runtime/testing/store-conformance-branch.d.ts +7 -0
  402. package/dist/agent-runtime/testing/store-conformance-branch.d.ts.map +1 -0
  403. package/dist/agent-runtime/testing/store-conformance-capabilities.d.ts +6 -0
  404. package/dist/agent-runtime/testing/store-conformance-capabilities.d.ts.map +1 -0
  405. package/dist/agent-runtime/testing/store-conformance-event-once.d.ts +12 -0
  406. package/dist/agent-runtime/testing/store-conformance-event-once.d.ts.map +1 -0
  407. package/dist/agent-runtime/testing/store-conformance-lifecycle.d.ts +454 -0
  408. package/dist/agent-runtime/testing/store-conformance-lifecycle.d.ts.map +1 -0
  409. package/dist/agent-runtime/testing/store-conformance-ordering.d.ts +18 -0
  410. package/dist/agent-runtime/testing/store-conformance-ordering.d.ts.map +1 -0
  411. package/dist/agent-runtime/testing/store-conformance-seed.d.ts +8 -0
  412. package/dist/agent-runtime/testing/store-conformance-seed.d.ts.map +1 -0
  413. package/dist/agent-runtime/testing/store-conformance-support.d.ts.map +1 -0
  414. package/dist/agent-runtime/testing/store-conformance-terminal.d.ts +12 -0
  415. package/dist/agent-runtime/testing/store-conformance-terminal.d.ts.map +1 -0
  416. package/dist/agent-runtime/testing/store-conformance.d.ts +71 -0
  417. package/dist/agent-runtime/testing/store-conformance.d.ts.map +1 -0
  418. package/dist/agent-runtime/testing/testing.d.ts +46 -0
  419. package/dist/agent-runtime/testing/testing.d.ts.map +1 -0
  420. package/dist/browser/client-executors.d.ts.map +1 -1
  421. package/dist/browser/client.d.ts +3 -2
  422. package/dist/browser/client.d.ts.map +1 -1
  423. package/dist/browser/http.d.ts +6 -3
  424. package/dist/browser/http.d.ts.map +1 -1
  425. package/dist/contract/client-types.d.ts +4 -3
  426. package/dist/contract/client-types.d.ts.map +1 -1
  427. package/dist/entrypoints/agent-executor/acp.js +38 -12
  428. package/dist/entrypoints/agent-executor/claude-sdk.js +1 -1
  429. package/dist/entrypoints/agent-executor/codex.js +2 -2
  430. package/dist/entrypoints/agent-executor/testing/claude-sdk.js +3 -3
  431. package/dist/entrypoints/agent-executor/testing.js +3 -3
  432. package/dist/entrypoints/agent-executor.js +1 -1
  433. package/dist/entrypoints/agent-runtime/ai-sdk.d.ts +3 -3
  434. package/dist/entrypoints/agent-runtime/ai-sdk.d.ts.map +1 -1
  435. package/dist/entrypoints/agent-runtime/ai-sdk.js +9 -8
  436. package/dist/entrypoints/agent-runtime/anthropic.d.ts +3 -3
  437. package/dist/entrypoints/agent-runtime/anthropic.d.ts.map +1 -1
  438. package/dist/entrypoints/agent-runtime/anthropic.js +72 -18
  439. package/dist/entrypoints/agent-runtime/browser.d.ts +6 -6
  440. package/dist/entrypoints/agent-runtime/browser.d.ts.map +1 -1
  441. package/dist/entrypoints/agent-runtime/browser.js +39 -39
  442. package/dist/entrypoints/agent-runtime/coding-tools.d.ts +1 -1
  443. package/dist/entrypoints/agent-runtime/coding-tools.d.ts.map +1 -1
  444. package/dist/entrypoints/agent-runtime/coding-tools.js +2 -2
  445. package/dist/entrypoints/agent-runtime/harness.d.ts +1 -1
  446. package/dist/entrypoints/agent-runtime/harness.d.ts.map +1 -1
  447. package/dist/entrypoints/agent-runtime/harness.js +27 -28
  448. package/dist/entrypoints/agent-runtime/openai.d.ts +3 -3
  449. package/dist/entrypoints/agent-runtime/openai.d.ts.map +1 -1
  450. package/dist/entrypoints/agent-runtime/openai.js +9 -9
  451. package/dist/entrypoints/agent-runtime/openrouter.d.ts +10 -10
  452. package/dist/entrypoints/agent-runtime/openrouter.d.ts.map +1 -1
  453. package/dist/entrypoints/agent-runtime/openrouter.js +167 -113
  454. package/dist/entrypoints/agent-runtime/postgres.d.ts +2 -2
  455. package/dist/entrypoints/agent-runtime/postgres.d.ts.map +1 -1
  456. package/dist/entrypoints/agent-runtime/postgres.js +8 -8
  457. package/dist/entrypoints/agent-runtime/react.d.ts +1 -1
  458. package/dist/entrypoints/agent-runtime/react.d.ts.map +1 -1
  459. package/dist/entrypoints/agent-runtime/react.js +1 -1
  460. package/dist/entrypoints/agent-runtime/realtime.d.ts +1 -1
  461. package/dist/entrypoints/agent-runtime/realtime.d.ts.map +1 -1
  462. package/dist/entrypoints/agent-runtime/realtime.js +5 -5
  463. package/dist/entrypoints/agent-runtime/sandbox.d.ts +9 -9
  464. package/dist/entrypoints/agent-runtime/sandbox.d.ts.map +1 -1
  465. package/dist/entrypoints/agent-runtime/sandbox.js +220 -93
  466. package/dist/entrypoints/agent-runtime/sqlite/bun.d.ts +1 -1
  467. package/dist/entrypoints/agent-runtime/sqlite/bun.d.ts.map +1 -1
  468. package/dist/entrypoints/agent-runtime/sqlite/bun.js +8 -8
  469. package/dist/entrypoints/agent-runtime/sqlite/node.d.ts +1 -1
  470. package/dist/entrypoints/agent-runtime/sqlite/node.d.ts.map +1 -1
  471. package/dist/entrypoints/agent-runtime/sqlite/node.js +8 -8
  472. package/dist/entrypoints/agent-runtime/testing.d.ts +4 -4
  473. package/dist/entrypoints/agent-runtime/testing.d.ts.map +1 -1
  474. package/dist/entrypoints/agent-runtime/testing.js +21 -21
  475. package/dist/entrypoints/agent-runtime.d.ts +50 -50
  476. package/dist/entrypoints/agent-runtime.d.ts.map +1 -1
  477. package/dist/entrypoints/agent-runtime.js +2853 -3107
  478. package/dist/entrypoints/cli.js +8 -9
  479. package/dist/entrypoints/http.js +2 -2
  480. package/dist/entrypoints/index.js +2 -2
  481. package/dist/entrypoints/react.js +1 -1
  482. package/dist/entrypoints/remote.js +2 -2
  483. package/dist/entrypoints/server.js +2 -2
  484. package/dist/entrypoints/testing.js +7 -9
  485. package/dist/entrypoints/tools/agent.js +476 -13
  486. package/dist/entrypoints/tools/connections.js +9 -7
  487. package/dist/entrypoints/tools/contract.js +4 -4
  488. package/dist/entrypoints/tools/invoker.js +7 -8
  489. package/dist/entrypoints/tools/mcp.js +9 -11
  490. package/dist/entrypoints/tools/toolkit.d.ts +6 -4
  491. package/dist/entrypoints/tools/toolkit.d.ts.map +1 -1
  492. package/dist/entrypoints/tools/toolkit.js +11 -18
  493. package/dist/entrypoints/tools.js +12 -13
  494. package/dist/index-125ks2ec.js +17 -0
  495. package/dist/index-1w69rj9f.js +224 -0
  496. package/dist/index-1zy31r3b.js +26 -0
  497. package/dist/index-3czc3ykr.js +53 -0
  498. package/dist/index-3d2c45jn.js +77 -0
  499. package/dist/index-57sbckhv.js +271 -0
  500. package/dist/index-64t6pheq.js +2872 -0
  501. package/dist/index-73wq9abg.js +367 -0
  502. package/dist/index-84tp547a.js +981 -0
  503. package/dist/index-9be3tf6r.js +196 -0
  504. package/dist/index-asnd4h2k.js +969 -0
  505. package/dist/index-b4c9dpzm.js +1210 -0
  506. package/dist/index-baba8ehy.js +53 -0
  507. package/dist/index-c24bj2r1.js +510 -0
  508. package/dist/index-cgjtj8zh.js +707 -0
  509. package/dist/index-d4at0q09.js +601 -0
  510. package/dist/index-de7b0kvz.js +215 -0
  511. package/dist/index-dm84tsd5.js +164 -0
  512. package/dist/index-fsw9wxk9.js +349 -0
  513. package/dist/index-gk6dq9ay.js +124 -0
  514. package/dist/index-gs0jw0hy.js +174 -0
  515. package/dist/index-hce3hbdg.js +121 -0
  516. package/dist/index-mcv7b2n0.js +3545 -0
  517. package/dist/index-n9358ydy.js +63 -0
  518. package/dist/index-npfdymav.js +409 -0
  519. package/dist/index-p9cab61p.js +305 -0
  520. package/dist/index-q86qnzzf.js +231 -0
  521. package/dist/index-qcy8et93.js +698 -0
  522. package/dist/index-refgnzy0.js +158 -0
  523. package/dist/index-rkphknhx.js +40 -0
  524. package/dist/index-v0j22shs.js +3781 -0
  525. package/dist/index-vse7x1qt.js +460 -0
  526. package/dist/index-wdb5jhas.js +51 -0
  527. package/dist/index-ws0awmzq.js +47 -0
  528. package/dist/index-wsv11dhg.js +725 -0
  529. package/dist/index-xbb8ysmq.js +40 -0
  530. package/dist/index-y0mwkgkf.js +7812 -0
  531. package/dist/index-yhwx4fwk.js +295 -0
  532. package/dist/index-z72vazf5.js +502 -0
  533. package/dist/index-zfrysr1e.js +710 -0
  534. package/dist/json-schema/dialect.d.ts.map +1 -1
  535. package/dist/json-schema/string-format.d.ts.map +1 -1
  536. package/dist/tools/agent-call-context.d.ts +23 -0
  537. package/dist/tools/agent-call-context.d.ts.map +1 -0
  538. package/dist/tools/agent.d.ts.map +1 -1
  539. package/dist/tools/schema/flatten.d.ts.map +1 -1
  540. package/dist/tools/toolkit.d.ts +8 -6
  541. package/dist/tools/toolkit.d.ts.map +1 -1
  542. package/llms/agent-runtime-ai-sdk.txt +2 -2
  543. package/llms/agent-runtime-anthropic.txt +8 -4
  544. package/llms/agent-runtime-openrouter.txt +4 -4
  545. package/llms/agent-runtime-sandbox.txt +20 -7
  546. package/llms/agent-runtime.3.txt +19 -3
  547. package/llms/agent-runtime.4.txt +2 -2
  548. package/llms/agent-runtime.txt +20 -7
  549. package/llms/cli.2.txt +8 -5
  550. package/llms/contract.txt +1 -1
  551. package/llms/server.txt +10 -6
  552. package/llms/stitchkit.2.txt +18 -11
  553. package/llms/stitchkit.txt +85 -85
  554. package/llms/tools-toolkit.txt +3 -6
  555. package/llms/tools.4.txt +3 -3
  556. package/llms/upgrading-0.128.0-0.135.0.txt +700 -0
  557. package/llms/upgrading.txt +1 -1
  558. package/llms-full.txt +264 -146
  559. package/llms.txt +12 -12
  560. package/package.json +1 -1
  561. package/dist/agent-runtime/admission-lanes.d.ts +0 -35
  562. package/dist/agent-runtime/admission-lanes.d.ts.map +0 -1
  563. package/dist/agent-runtime/ai-sdk-convert.d.ts +0 -15
  564. package/dist/agent-runtime/ai-sdk-convert.d.ts.map +0 -1
  565. package/dist/agent-runtime/ai-sdk.d.ts +0 -31
  566. package/dist/agent-runtime/ai-sdk.d.ts.map +0 -1
  567. package/dist/agent-runtime/anthropic-media.d.ts +0 -11
  568. package/dist/agent-runtime/anthropic-media.d.ts.map +0 -1
  569. package/dist/agent-runtime/anthropic-messages.d.ts +0 -24
  570. package/dist/agent-runtime/anthropic-messages.d.ts.map +0 -1
  571. package/dist/agent-runtime/anthropic-options.d.ts +0 -79
  572. package/dist/agent-runtime/anthropic-options.d.ts.map +0 -1
  573. package/dist/agent-runtime/anthropic-response.d.ts +0 -19
  574. package/dist/agent-runtime/anthropic-response.d.ts.map +0 -1
  575. package/dist/agent-runtime/anthropic-sse.d.ts.map +0 -1
  576. package/dist/agent-runtime/anthropic.d.ts.map +0 -1
  577. package/dist/agent-runtime/archive-projection.d.ts.map +0 -1
  578. package/dist/agent-runtime/archive-spill.d.ts.map +0 -1
  579. package/dist/agent-runtime/branch-contract.d.ts.map +0 -1
  580. package/dist/agent-runtime/branch-events.d.ts +0 -25
  581. package/dist/agent-runtime/branch-events.d.ts.map +0 -1
  582. package/dist/agent-runtime/branch-identities.d.ts +0 -75
  583. package/dist/agent-runtime/branch-identities.d.ts.map +0 -1
  584. package/dist/agent-runtime/branch-messages.d.ts +0 -21
  585. package/dist/agent-runtime/branch-messages.d.ts.map +0 -1
  586. package/dist/agent-runtime/branch-observations.d.ts +0 -227
  587. package/dist/agent-runtime/branch-observations.d.ts.map +0 -1
  588. package/dist/agent-runtime/branch-provider.d.ts.map +0 -1
  589. package/dist/agent-runtime/branch-refusal.d.ts.map +0 -1
  590. package/dist/agent-runtime/branch-replay.d.ts +0 -456
  591. package/dist/agent-runtime/branch-replay.d.ts.map +0 -1
  592. package/dist/agent-runtime/branch-runtime-tools.d.ts.map +0 -1
  593. package/dist/agent-runtime/branch-source.d.ts +0 -33
  594. package/dist/agent-runtime/branch-source.d.ts.map +0 -1
  595. package/dist/agent-runtime/branch-transitions.d.ts.map +0 -1
  596. package/dist/agent-runtime/browser-control-contract.d.ts +0 -1364
  597. package/dist/agent-runtime/browser-control-contract.d.ts.map +0 -1
  598. package/dist/agent-runtime/browser-controller-view.d.ts +0 -44
  599. package/dist/agent-runtime/browser-controller-view.d.ts.map +0 -1
  600. package/dist/agent-runtime/browser-controller.d.ts +0 -53
  601. package/dist/agent-runtime/browser-controller.d.ts.map +0 -1
  602. package/dist/agent-runtime/child-blocking.d.ts.map +0 -1
  603. package/dist/agent-runtime/child-budget-policy.d.ts +0 -17
  604. package/dist/agent-runtime/child-budget-policy.d.ts.map +0 -1
  605. package/dist/agent-runtime/child-tools.d.ts +0 -144
  606. package/dist/agent-runtime/child-tools.d.ts.map +0 -1
  607. package/dist/agent-runtime/children-contract.d.ts +0 -236
  608. package/dist/agent-runtime/children-contract.d.ts.map +0 -1
  609. package/dist/agent-runtime/children-control.d.ts.map +0 -1
  610. package/dist/agent-runtime/children-spawn.d.ts.map +0 -1
  611. package/dist/agent-runtime/children-state.d.ts.map +0 -1
  612. package/dist/agent-runtime/children-usage.d.ts.map +0 -1
  613. package/dist/agent-runtime/children.d.ts.map +0 -1
  614. package/dist/agent-runtime/coding-discovery.d.ts +0 -25
  615. package/dist/agent-runtime/coding-discovery.d.ts.map +0 -1
  616. package/dist/agent-runtime/coding-sandbox.d.ts +0 -8
  617. package/dist/agent-runtime/coding-sandbox.d.ts.map +0 -1
  618. package/dist/agent-runtime/coding-search-automaton.d.ts.map +0 -1
  619. package/dist/agent-runtime/coding-search-case-fold.d.ts.map +0 -1
  620. package/dist/agent-runtime/coding-search-class-ranges.d.ts.map +0 -1
  621. package/dist/agent-runtime/coding-search-contract.d.ts.map +0 -1
  622. package/dist/agent-runtime/coding-search-limits.d.ts.map +0 -1
  623. package/dist/agent-runtime/coding-search-matcher.d.ts.map +0 -1
  624. package/dist/agent-runtime/coding-search-output.d.ts.map +0 -1
  625. package/dist/agent-runtime/coding-search-regex-syntax.d.ts.map +0 -1
  626. package/dist/agent-runtime/coding-search-unit-classes.d.ts.map +0 -1
  627. package/dist/agent-runtime/coding-shell-process.d.ts +0 -36
  628. package/dist/agent-runtime/coding-shell-process.d.ts.map +0 -1
  629. package/dist/agent-runtime/coding-tool-contract.d.ts +0 -261
  630. package/dist/agent-runtime/coding-tool-contract.d.ts.map +0 -1
  631. package/dist/agent-runtime/coding-tool-files.d.ts.map +0 -1
  632. package/dist/agent-runtime/coding-tool-listing.d.ts.map +0 -1
  633. package/dist/agent-runtime/coding-tool-paths.d.ts +0 -53
  634. package/dist/agent-runtime/coding-tool-paths.d.ts.map +0 -1
  635. package/dist/agent-runtime/coding-tool-refusals.d.ts.map +0 -1
  636. package/dist/agent-runtime/coding-tool-search-patch.d.ts.map +0 -1
  637. package/dist/agent-runtime/coding-tool-search.d.ts +0 -113
  638. package/dist/agent-runtime/coding-tool-search.d.ts.map +0 -1
  639. package/dist/agent-runtime/coding-tool-shell.d.ts.map +0 -1
  640. package/dist/agent-runtime/coding-tool-utf8.d.ts.map +0 -1
  641. package/dist/agent-runtime/coding-tools.d.ts.map +0 -1
  642. package/dist/agent-runtime/compaction.d.ts +0 -103
  643. package/dist/agent-runtime/compaction.d.ts.map +0 -1
  644. package/dist/agent-runtime/companion-host.d.ts +0 -38
  645. package/dist/agent-runtime/companion-host.d.ts.map +0 -1
  646. package/dist/agent-runtime/contained-scan-budget.d.ts.map +0 -1
  647. package/dist/agent-runtime/contained-scan-contract.d.ts.map +0 -1
  648. package/dist/agent-runtime/contained-scan.d.ts +0 -56
  649. package/dist/agent-runtime/contained-scan.d.ts.map +0 -1
  650. package/dist/agent-runtime/control-interaction-schema.d.ts.map +0 -1
  651. package/dist/agent-runtime/control-schema.d.ts +0 -1378
  652. package/dist/agent-runtime/control-schema.d.ts.map +0 -1
  653. package/dist/agent-runtime/control-view.d.ts +0 -64
  654. package/dist/agent-runtime/control-view.d.ts.map +0 -1
  655. package/dist/agent-runtime/conversations.d.ts.map +0 -1
  656. package/dist/agent-runtime/coordinator.d.ts.map +0 -1
  657. package/dist/agent-runtime/deferred-tool-search.d.ts +0 -9
  658. package/dist/agent-runtime/deferred-tool-search.d.ts.map +0 -1
  659. package/dist/agent-runtime/deferred-tool-selection.d.ts +0 -32
  660. package/dist/agent-runtime/deferred-tool-selection.d.ts.map +0 -1
  661. package/dist/agent-runtime/deferred-tools-internal.d.ts +0 -9
  662. package/dist/agent-runtime/deferred-tools-internal.d.ts.map +0 -1
  663. package/dist/agent-runtime/deferred-tools.d.ts +0 -4
  664. package/dist/agent-runtime/deferred-tools.d.ts.map +0 -1
  665. package/dist/agent-runtime/event-search-postgres.d.ts.map +0 -1
  666. package/dist/agent-runtime/event-search-terms.d.ts.map +0 -1
  667. package/dist/agent-runtime/event-search-tools.d.ts +0 -190
  668. package/dist/agent-runtime/event-search-tools.d.ts.map +0 -1
  669. package/dist/agent-runtime/event-search.d.ts.map +0 -1
  670. package/dist/agent-runtime/fault-bench.d.ts.map +0 -1
  671. package/dist/agent-runtime/harness-contract.d.ts +0 -206
  672. package/dist/agent-runtime/harness-contract.d.ts.map +0 -1
  673. package/dist/agent-runtime/harness-control.d.ts +0 -34
  674. package/dist/agent-runtime/harness-control.d.ts.map +0 -1
  675. package/dist/agent-runtime/harness-file-resources.d.ts +0 -33
  676. package/dist/agent-runtime/harness-file-resources.d.ts.map +0 -1
  677. package/dist/agent-runtime/harness-realtime.d.ts +0 -53
  678. package/dist/agent-runtime/harness-realtime.d.ts.map +0 -1
  679. package/dist/agent-runtime/harness-resources.d.ts.map +0 -1
  680. package/dist/agent-runtime/harness.d.ts +0 -15
  681. package/dist/agent-runtime/harness.d.ts.map +0 -1
  682. package/dist/agent-runtime/history.d.ts +0 -93
  683. package/dist/agent-runtime/history.d.ts.map +0 -1
  684. package/dist/agent-runtime/injection.d.ts +0 -28
  685. package/dist/agent-runtime/injection.d.ts.map +0 -1
  686. package/dist/agent-runtime/invocation-attempt.d.ts +0 -32
  687. package/dist/agent-runtime/invocation-attempt.d.ts.map +0 -1
  688. package/dist/agent-runtime/invocation-failure.d.ts.map +0 -1
  689. package/dist/agent-runtime/invocation-payload.d.ts +0 -38
  690. package/dist/agent-runtime/invocation-payload.d.ts.map +0 -1
  691. package/dist/agent-runtime/invocation-read.d.ts +0 -134
  692. package/dist/agent-runtime/invocation-read.d.ts.map +0 -1
  693. package/dist/agent-runtime/invocation-spend.d.ts +0 -9
  694. package/dist/agent-runtime/invocation-spend.d.ts.map +0 -1
  695. package/dist/agent-runtime/invocation-stream.d.ts +0 -20
  696. package/dist/agent-runtime/invocation-stream.d.ts.map +0 -1
  697. package/dist/agent-runtime/invocations.d.ts +0 -63
  698. package/dist/agent-runtime/invocations.d.ts.map +0 -1
  699. package/dist/agent-runtime/managed-tools.d.ts +0 -20
  700. package/dist/agent-runtime/managed-tools.d.ts.map +0 -1
  701. package/dist/agent-runtime/models-driver-step.d.ts +0 -212
  702. package/dist/agent-runtime/models-driver-step.d.ts.map +0 -1
  703. package/dist/agent-runtime/models-driver-telemetry.d.ts.map +0 -1
  704. package/dist/agent-runtime/models-driver.d.ts +0 -235
  705. package/dist/agent-runtime/models-driver.d.ts.map +0 -1
  706. package/dist/agent-runtime/models.d.ts.map +0 -1
  707. package/dist/agent-runtime/observability.d.ts +0 -579
  708. package/dist/agent-runtime/observability.d.ts.map +0 -1
  709. package/dist/agent-runtime/openai-messages.d.ts.map +0 -1
  710. package/dist/agent-runtime/openai-options.d.ts +0 -91
  711. package/dist/agent-runtime/openai-options.d.ts.map +0 -1
  712. package/dist/agent-runtime/openai-response.d.ts +0 -77
  713. package/dist/agent-runtime/openai-response.d.ts.map +0 -1
  714. package/dist/agent-runtime/openai-sse-state.d.ts.map +0 -1
  715. package/dist/agent-runtime/openai-sse.d.ts.map +0 -1
  716. package/dist/agent-runtime/openai.d.ts.map +0 -1
  717. package/dist/agent-runtime/openrouter-admission.d.ts +0 -84
  718. package/dist/agent-runtime/openrouter-admission.d.ts.map +0 -1
  719. package/dist/agent-runtime/openrouter-benchmarks.d.ts.map +0 -1
  720. package/dist/agent-runtime/openrouter-catalog-cache.d.ts.map +0 -1
  721. package/dist/agent-runtime/openrouter-catalog-query.d.ts +0 -57
  722. package/dist/agent-runtime/openrouter-catalog-query.d.ts.map +0 -1
  723. package/dist/agent-runtime/openrouter-catalog.d.ts.map +0 -1
  724. package/dist/agent-runtime/openrouter-models.d.ts.map +0 -1
  725. package/dist/agent-runtime/openrouter-options.d.ts +0 -136
  726. package/dist/agent-runtime/openrouter-options.d.ts.map +0 -1
  727. package/dist/agent-runtime/openrouter-response.d.ts +0 -22
  728. package/dist/agent-runtime/openrouter-response.d.ts.map +0 -1
  729. package/dist/agent-runtime/openrouter-route.d.ts.map +0 -1
  730. package/dist/agent-runtime/openrouter-spend.d.ts +0 -24
  731. package/dist/agent-runtime/openrouter-spend.d.ts.map +0 -1
  732. package/dist/agent-runtime/openrouter.d.ts.map +0 -1
  733. package/dist/agent-runtime/owned-provider-stream.d.ts.map +0 -1
  734. package/dist/agent-runtime/postgres-schema.d.ts.map +0 -1
  735. package/dist/agent-runtime/postgres-transactions.d.ts +0 -54
  736. package/dist/agent-runtime/postgres-transactions.d.ts.map +0 -1
  737. package/dist/agent-runtime/postgres.d.ts +0 -72
  738. package/dist/agent-runtime/postgres.d.ts.map +0 -1
  739. package/dist/agent-runtime/projections.d.ts +0 -109
  740. package/dist/agent-runtime/projections.d.ts.map +0 -1
  741. package/dist/agent-runtime/provider-cache.d.ts +0 -30
  742. package/dist/agent-runtime/provider-cache.d.ts.map +0 -1
  743. package/dist/agent-runtime/provider-content.d.ts.map +0 -1
  744. package/dist/agent-runtime/provider-failure.d.ts +0 -95
  745. package/dist/agent-runtime/provider-failure.d.ts.map +0 -1
  746. package/dist/agent-runtime/provider-history.d.ts +0 -13
  747. package/dist/agent-runtime/provider-history.d.ts.map +0 -1
  748. package/dist/agent-runtime/provider-http.d.ts.map +0 -1
  749. package/dist/agent-runtime/provider-journal.d.ts.map +0 -1
  750. package/dist/agent-runtime/provider-json-schema-strip.d.ts.map +0 -1
  751. package/dist/agent-runtime/provider-json-schema.d.ts +0 -28
  752. package/dist/agent-runtime/provider-json-schema.d.ts.map +0 -1
  753. package/dist/agent-runtime/provider-media.d.ts +0 -49
  754. package/dist/agent-runtime/provider-media.d.ts.map +0 -1
  755. package/dist/agent-runtime/provider-openai-chat-helpers.d.ts +0 -27
  756. package/dist/agent-runtime/provider-openai-chat-helpers.d.ts.map +0 -1
  757. package/dist/agent-runtime/provider-openai-chat-sse.d.ts +0 -25
  758. package/dist/agent-runtime/provider-openai-chat-sse.d.ts.map +0 -1
  759. package/dist/agent-runtime/provider-openai-chat.d.ts +0 -27
  760. package/dist/agent-runtime/provider-openai-chat.d.ts.map +0 -1
  761. package/dist/agent-runtime/provider-origin.d.ts +0 -10
  762. package/dist/agent-runtime/provider-origin.d.ts.map +0 -1
  763. package/dist/agent-runtime/provider-sse.d.ts.map +0 -1
  764. package/dist/agent-runtime/provider-stream-parts.d.ts +0 -5
  765. package/dist/agent-runtime/provider-stream-parts.d.ts.map +0 -1
  766. package/dist/agent-runtime/provider-stream-segments.d.ts +0 -63
  767. package/dist/agent-runtime/provider-stream-segments.d.ts.map +0 -1
  768. package/dist/agent-runtime/provider-usage.d.ts +0 -24
  769. package/dist/agent-runtime/provider-usage.d.ts.map +0 -1
  770. package/dist/agent-runtime/purge.d.ts.map +0 -1
  771. package/dist/agent-runtime/react.d.ts.map +0 -1
  772. package/dist/agent-runtime/retry-policy.d.ts +0 -49
  773. package/dist/agent-runtime/retry-policy.d.ts.map +0 -1
  774. package/dist/agent-runtime/run-acquisition.d.ts +0 -24
  775. package/dist/agent-runtime/run-acquisition.d.ts.map +0 -1
  776. package/dist/agent-runtime/run-approval.d.ts +0 -82
  777. package/dist/agent-runtime/run-approval.d.ts.map +0 -1
  778. package/dist/agent-runtime/run-assertions.d.ts +0 -63
  779. package/dist/agent-runtime/run-assertions.d.ts.map +0 -1
  780. package/dist/agent-runtime/run-complete-retry.d.ts +0 -24
  781. package/dist/agent-runtime/run-complete-retry.d.ts.map +0 -1
  782. package/dist/agent-runtime/run-complete-stream.d.ts +0 -9
  783. package/dist/agent-runtime/run-complete-stream.d.ts.map +0 -1
  784. package/dist/agent-runtime/run-complete-tools.d.ts +0 -21
  785. package/dist/agent-runtime/run-complete-tools.d.ts.map +0 -1
  786. package/dist/agent-runtime/run-complete-types.d.ts +0 -168
  787. package/dist/agent-runtime/run-complete-types.d.ts.map +0 -1
  788. package/dist/agent-runtime/run-complete.d.ts +0 -25
  789. package/dist/agent-runtime/run-complete.d.ts.map +0 -1
  790. package/dist/agent-runtime/run-driver-compose.d.ts +0 -21
  791. package/dist/agent-runtime/run-driver-compose.d.ts.map +0 -1
  792. package/dist/agent-runtime/run-execution-state.d.ts +0 -178
  793. package/dist/agent-runtime/run-execution-state.d.ts.map +0 -1
  794. package/dist/agent-runtime/run-execution.d.ts +0 -22
  795. package/dist/agent-runtime/run-execution.d.ts.map +0 -1
  796. package/dist/agent-runtime/run-failure.d.ts +0 -21
  797. package/dist/agent-runtime/run-failure.d.ts.map +0 -1
  798. package/dist/agent-runtime/run-history-parts.d.ts +0 -14
  799. package/dist/agent-runtime/run-history-parts.d.ts.map +0 -1
  800. package/dist/agent-runtime/run-loop-events.d.ts +0 -126
  801. package/dist/agent-runtime/run-loop-events.d.ts.map +0 -1
  802. package/dist/agent-runtime/run-model-attempts.d.ts +0 -6
  803. package/dist/agent-runtime/run-model-attempts.d.ts.map +0 -1
  804. package/dist/agent-runtime/run-model-messages.d.ts +0 -9
  805. package/dist/agent-runtime/run-model-messages.d.ts.map +0 -1
  806. package/dist/agent-runtime/run-model-step.d.ts +0 -43
  807. package/dist/agent-runtime/run-model-step.d.ts.map +0 -1
  808. package/dist/agent-runtime/run-model-stream.d.ts +0 -27
  809. package/dist/agent-runtime/run-model-stream.d.ts.map +0 -1
  810. package/dist/agent-runtime/run-operation-lifecycle.d.ts +0 -32
  811. package/dist/agent-runtime/run-operation-lifecycle.d.ts.map +0 -1
  812. package/dist/agent-runtime/run-prompt-history.d.ts +0 -53
  813. package/dist/agent-runtime/run-prompt-history.d.ts.map +0 -1
  814. package/dist/agent-runtime/run-provider-ledger.d.ts +0 -32
  815. package/dist/agent-runtime/run-provider-ledger.d.ts.map +0 -1
  816. package/dist/agent-runtime/run-step-barriers.d.ts +0 -114
  817. package/dist/agent-runtime/run-step-barriers.d.ts.map +0 -1
  818. package/dist/agent-runtime/run-step-helpers.d.ts +0 -49
  819. package/dist/agent-runtime/run-step-helpers.d.ts.map +0 -1
  820. package/dist/agent-runtime/run-step-prepare.d.ts +0 -34
  821. package/dist/agent-runtime/run-step-prepare.d.ts.map +0 -1
  822. package/dist/agent-runtime/run-step-spend.d.ts +0 -394
  823. package/dist/agent-runtime/run-step-spend.d.ts.map +0 -1
  824. package/dist/agent-runtime/run-stream-parts.d.ts +0 -34
  825. package/dist/agent-runtime/run-stream-parts.d.ts.map +0 -1
  826. package/dist/agent-runtime/run-stream-recorded.d.ts +0 -8
  827. package/dist/agent-runtime/run-stream-recorded.d.ts.map +0 -1
  828. package/dist/agent-runtime/run-stream-step-text.d.ts +0 -29
  829. package/dist/agent-runtime/run-stream-step-text.d.ts.map +0 -1
  830. package/dist/agent-runtime/run-terminal.d.ts +0 -11
  831. package/dist/agent-runtime/run-terminal.d.ts.map +0 -1
  832. package/dist/agent-runtime/run-tool-approval-flow.d.ts +0 -36
  833. package/dist/agent-runtime/run-tool-approval-flow.d.ts.map +0 -1
  834. package/dist/agent-runtime/run-tool-approval-records.d.ts +0 -24
  835. package/dist/agent-runtime/run-tool-approval-records.d.ts.map +0 -1
  836. package/dist/agent-runtime/run-tool-call.d.ts +0 -73
  837. package/dist/agent-runtime/run-tool-call.d.ts.map +0 -1
  838. package/dist/agent-runtime/run-tool-errors.d.ts.map +0 -1
  839. package/dist/agent-runtime/run-tool-executor.d.ts +0 -34
  840. package/dist/agent-runtime/run-tool-executor.d.ts.map +0 -1
  841. package/dist/agent-runtime/run-tool-progress.d.ts +0 -21
  842. package/dist/agent-runtime/run-tool-progress.d.ts.map +0 -1
  843. package/dist/agent-runtime/run-turn-preparation.d.ts +0 -25
  844. package/dist/agent-runtime/run-turn-preparation.d.ts.map +0 -1
  845. package/dist/agent-runtime/run-unacquired.d.ts +0 -19
  846. package/dist/agent-runtime/run-unacquired.d.ts.map +0 -1
  847. package/dist/agent-runtime/runtime-admission-gate.d.ts.map +0 -1
  848. package/dist/agent-runtime/runtime-control.d.ts +0 -9
  849. package/dist/agent-runtime/runtime-control.d.ts.map +0 -1
  850. package/dist/agent-runtime/runtime-recovery.d.ts +0 -10
  851. package/dist/agent-runtime/runtime-recovery.d.ts.map +0 -1
  852. package/dist/agent-runtime/runtime-state.d.ts +0 -36
  853. package/dist/agent-runtime/runtime-state.d.ts.map +0 -1
  854. package/dist/agent-runtime/runtime-submit.d.ts +0 -5
  855. package/dist/agent-runtime/runtime-submit.d.ts.map +0 -1
  856. package/dist/agent-runtime/runtime.d.ts +0 -352
  857. package/dist/agent-runtime/runtime.d.ts.map +0 -1
  858. package/dist/agent-runtime/sandbox-binding.d.ts.map +0 -1
  859. package/dist/agent-runtime/sandbox-broker.d.ts.map +0 -1
  860. package/dist/agent-runtime/sandbox-bubblewrap-args.d.ts.map +0 -1
  861. package/dist/agent-runtime/sandbox-bubblewrap-storage.d.ts.map +0 -1
  862. package/dist/agent-runtime/sandbox-bubblewrap.d.ts.map +0 -1
  863. package/dist/agent-runtime/sandbox-coding-adapter.d.ts.map +0 -1
  864. package/dist/agent-runtime/sandbox-contract.d.ts.map +0 -1
  865. package/dist/agent-runtime/sandbox-process-linux.d.ts.map +0 -1
  866. package/dist/agent-runtime/sandbox-process-macos.d.ts.map +0 -1
  867. package/dist/agent-runtime/sandbox-process-owner.d.ts +0 -19
  868. package/dist/agent-runtime/sandbox-process-owner.d.ts.map +0 -1
  869. package/dist/agent-runtime/sandbox-process-spec.d.ts.map +0 -1
  870. package/dist/agent-runtime/sandbox-process-wrapper.d.ts.map +0 -1
  871. package/dist/agent-runtime/sandbox-process.d.ts +0 -8
  872. package/dist/agent-runtime/sandbox-process.d.ts.map +0 -1
  873. package/dist/agent-runtime/sandbox-session.d.ts.map +0 -1
  874. package/dist/agent-runtime/sandbox.d.ts +0 -125
  875. package/dist/agent-runtime/sandbox.d.ts.map +0 -1
  876. package/dist/agent-runtime/schedule-contract.d.ts.map +0 -1
  877. package/dist/agent-runtime/schedule-dispatch.d.ts.map +0 -1
  878. package/dist/agent-runtime/schedule-records.d.ts.map +0 -1
  879. package/dist/agent-runtime/schedule-tools.d.ts +0 -76
  880. package/dist/agent-runtime/schedule-tools.d.ts.map +0 -1
  881. package/dist/agent-runtime/schedules.d.ts.map +0 -1
  882. package/dist/agent-runtime/spill.d.ts +0 -26
  883. package/dist/agent-runtime/spill.d.ts.map +0 -1
  884. package/dist/agent-runtime/sql-events.d.ts.map +0 -1
  885. package/dist/agent-runtime/sql-history.d.ts.map +0 -1
  886. package/dist/agent-runtime/sql-ledger.d.ts.map +0 -1
  887. package/dist/agent-runtime/sql-purge.d.ts.map +0 -1
  888. package/dist/agent-runtime/sql-reads.d.ts.map +0 -1
  889. package/dist/agent-runtime/sql-rows.d.ts.map +0 -1
  890. package/dist/agent-runtime/sql-session.d.ts.map +0 -1
  891. package/dist/agent-runtime/sqlite-bun.d.ts.map +0 -1
  892. package/dist/agent-runtime/sqlite-node.d.ts.map +0 -1
  893. package/dist/agent-runtime/sqlite-purge.d.ts +0 -6
  894. package/dist/agent-runtime/sqlite-purge.d.ts.map +0 -1
  895. package/dist/agent-runtime/sqlite-schema.d.ts +0 -7
  896. package/dist/agent-runtime/sqlite-schema.d.ts.map +0 -1
  897. package/dist/agent-runtime/sqlite-transactions.d.ts +0 -29
  898. package/dist/agent-runtime/sqlite-transactions.d.ts.map +0 -1
  899. package/dist/agent-runtime/sqlite.d.ts +0 -33
  900. package/dist/agent-runtime/sqlite.d.ts.map +0 -1
  901. package/dist/agent-runtime/state-slots.d.ts +0 -48
  902. package/dist/agent-runtime/state-slots.d.ts.map +0 -1
  903. package/dist/agent-runtime/state-tools.d.ts +0 -117
  904. package/dist/agent-runtime/state-tools.d.ts.map +0 -1
  905. package/dist/agent-runtime/store-archive.d.ts.map +0 -1
  906. package/dist/agent-runtime/store-branch.d.ts.map +0 -1
  907. package/dist/agent-runtime/store-capabilities.d.ts.map +0 -1
  908. package/dist/agent-runtime/store-conformance-branch.d.ts +0 -7
  909. package/dist/agent-runtime/store-conformance-branch.d.ts.map +0 -1
  910. package/dist/agent-runtime/store-conformance-capabilities.d.ts +0 -6
  911. package/dist/agent-runtime/store-conformance-capabilities.d.ts.map +0 -1
  912. package/dist/agent-runtime/store-conformance-event-once.d.ts +0 -12
  913. package/dist/agent-runtime/store-conformance-event-once.d.ts.map +0 -1
  914. package/dist/agent-runtime/store-conformance-lifecycle.d.ts +0 -454
  915. package/dist/agent-runtime/store-conformance-lifecycle.d.ts.map +0 -1
  916. package/dist/agent-runtime/store-conformance-ordering.d.ts +0 -18
  917. package/dist/agent-runtime/store-conformance-ordering.d.ts.map +0 -1
  918. package/dist/agent-runtime/store-conformance-seed.d.ts +0 -8
  919. package/dist/agent-runtime/store-conformance-seed.d.ts.map +0 -1
  920. package/dist/agent-runtime/store-conformance-support.d.ts.map +0 -1
  921. package/dist/agent-runtime/store-conformance-terminal.d.ts +0 -12
  922. package/dist/agent-runtime/store-conformance-terminal.d.ts.map +0 -1
  923. package/dist/agent-runtime/store-conformance.d.ts +0 -71
  924. package/dist/agent-runtime/store-conformance.d.ts.map +0 -1
  925. package/dist/agent-runtime/store-create.d.ts.map +0 -1
  926. package/dist/agent-runtime/store-driver-contract.d.ts +0 -1016
  927. package/dist/agent-runtime/store-driver-contract.d.ts.map +0 -1
  928. package/dist/agent-runtime/store-event-once.d.ts +0 -37
  929. package/dist/agent-runtime/store-event-once.d.ts.map +0 -1
  930. package/dist/agent-runtime/store-events.d.ts +0 -2231
  931. package/dist/agent-runtime/store-events.d.ts.map +0 -1
  932. package/dist/agent-runtime/store-memory-archive.d.ts.map +0 -1
  933. package/dist/agent-runtime/store-memory-events.d.ts +0 -7
  934. package/dist/agent-runtime/store-memory-events.d.ts.map +0 -1
  935. package/dist/agent-runtime/store-memory.d.ts.map +0 -1
  936. package/dist/agent-runtime/store-migrations/v1-to-v2.d.ts +0 -6
  937. package/dist/agent-runtime/store-migrations/v1-to-v2.d.ts.map +0 -1
  938. package/dist/agent-runtime/store-migrations/v2-to-v3.d.ts +0 -14
  939. package/dist/agent-runtime/store-migrations/v2-to-v3.d.ts.map +0 -1
  940. package/dist/agent-runtime/store-migrations/v3-to-v4.d.ts +0 -4
  941. package/dist/agent-runtime/store-migrations/v3-to-v4.d.ts.map +0 -1
  942. package/dist/agent-runtime/store-mutate.d.ts.map +0 -1
  943. package/dist/agent-runtime/store-purge.d.ts.map +0 -1
  944. package/dist/agent-runtime/store-reads.d.ts +0 -29
  945. package/dist/agent-runtime/store-reads.d.ts.map +0 -1
  946. package/dist/agent-runtime/store-reduce-history.d.ts +0 -10
  947. package/dist/agent-runtime/store-reduce-history.d.ts.map +0 -1
  948. package/dist/agent-runtime/store-reduce-run.d.ts +0 -14
  949. package/dist/agent-runtime/store-reduce-run.d.ts.map +0 -1
  950. package/dist/agent-runtime/store-reduce-shared.d.ts +0 -78
  951. package/dist/agent-runtime/store-reduce-shared.d.ts.map +0 -1
  952. package/dist/agent-runtime/store-reduce-terminal.d.ts +0 -6
  953. package/dist/agent-runtime/store-reduce-terminal.d.ts.map +0 -1
  954. package/dist/agent-runtime/store-reducer.d.ts +0 -24
  955. package/dist/agent-runtime/store-reducer.d.ts.map +0 -1
  956. package/dist/agent-runtime/store-replay.d.ts.map +0 -1
  957. package/dist/agent-runtime/store-snapshot.d.ts +0 -19
  958. package/dist/agent-runtime/store-snapshot.d.ts.map +0 -1
  959. package/dist/agent-runtime/store.d.ts +0 -3032
  960. package/dist/agent-runtime/store.d.ts.map +0 -1
  961. package/dist/agent-runtime/testing.d.ts +0 -46
  962. package/dist/agent-runtime/testing.d.ts.map +0 -1
  963. package/dist/agent-runtime/workspace-glob.d.ts.map +0 -1
  964. package/dist/index-18pf56dq.js +0 -409
  965. package/dist/index-1gmgwfn3.js +0 -439
  966. package/dist/index-23wn8sgf.js +0 -47
  967. package/dist/index-27hck3z2.js +0 -307
  968. package/dist/index-27srek2g.js +0 -3781
  969. package/dist/index-360j58vb.js +0 -63
  970. package/dist/index-67pnt4bh.js +0 -174
  971. package/dist/index-6kpwkpgx.js +0 -415
  972. package/dist/index-6xw1wf4m.js +0 -969
  973. package/dist/index-6yb4stq3.js +0 -224
  974. package/dist/index-76yhxa41.js +0 -725
  975. package/dist/index-79vqbjcz.js +0 -26
  976. package/dist/index-a84wj6y8.js +0 -510
  977. package/dist/index-b23s6e2c.js +0 -158
  978. package/dist/index-cb4nnvfr.js +0 -40
  979. package/dist/index-ek9w11r0.js +0 -40
  980. package/dist/index-er483f3w.js +0 -601
  981. package/dist/index-fjac2w5e.js +0 -3543
  982. package/dist/index-ga6avd48.js +0 -53
  983. package/dist/index-hy4653g4.js +0 -345
  984. package/dist/index-j903yhp4.js +0 -121
  985. package/dist/index-jzdbkanz.js +0 -215
  986. package/dist/index-k9g061ma.js +0 -164
  987. package/dist/index-krekhmp7.js +0 -707
  988. package/dist/index-ky79wwgs.js +0 -2872
  989. package/dist/index-mgr0mdqp.js +0 -271
  990. package/dist/index-mx2gya05.js +0 -465
  991. package/dist/index-nfeafbzh.js +0 -7379
  992. package/dist/index-ngwf1s3c.js +0 -51
  993. package/dist/index-pjjh91vw.js +0 -53
  994. package/dist/index-qv5v6w9c.js +0 -696
  995. package/dist/index-rj32hkkp.js +0 -305
  996. package/dist/index-t5zp1jjj.js +0 -77
  997. package/dist/index-v5hmyef8.js +0 -951
  998. package/dist/index-vv0hxrmy.js +0 -295
  999. package/dist/index-vxm0ya3f.js +0 -707
  1000. package/dist/index-xtxxt87z.js +0 -349
  1001. package/dist/index-zag9sjpd.js +0 -1210
  1002. package/dist/index-zk839vzf.js +0 -231
  1003. package/llms/upgrading-0.128.0-0.134.0.txt +0 -639
  1004. /package/dist/agent-runtime/{control-interaction-schema.d.ts → browser/control-interaction-schema.d.ts} +0 -0
  1005. /package/dist/agent-runtime/{react.d.ts → browser/react.d.ts} +0 -0
  1006. /package/dist/agent-runtime/{coding-search-automaton.d.ts → coding/coding-search-automaton.d.ts} +0 -0
  1007. /package/dist/agent-runtime/{coding-search-case-fold.d.ts → coding/coding-search-case-fold.d.ts} +0 -0
  1008. /package/dist/agent-runtime/{coding-search-class-ranges.d.ts → coding/coding-search-class-ranges.d.ts} +0 -0
  1009. /package/dist/agent-runtime/{coding-search-contract.d.ts → coding/coding-search-contract.d.ts} +0 -0
  1010. /package/dist/agent-runtime/{coding-search-limits.d.ts → coding/coding-search-limits.d.ts} +0 -0
  1011. /package/dist/agent-runtime/{coding-search-matcher.d.ts → coding/coding-search-matcher.d.ts} +0 -0
  1012. /package/dist/agent-runtime/{coding-search-output.d.ts → coding/coding-search-output.d.ts} +0 -0
  1013. /package/dist/agent-runtime/{coding-search-regex-syntax.d.ts → coding/coding-search-regex-syntax.d.ts} +0 -0
  1014. /package/dist/agent-runtime/{coding-search-unit-classes.d.ts → coding/coding-search-unit-classes.d.ts} +0 -0
  1015. /package/dist/agent-runtime/{coding-tool-files.d.ts → coding/coding-tool-files.d.ts} +0 -0
  1016. /package/dist/agent-runtime/{coding-tool-listing.d.ts → coding/coding-tool-listing.d.ts} +0 -0
  1017. /package/dist/agent-runtime/{coding-tool-refusals.d.ts → coding/coding-tool-refusals.d.ts} +0 -0
  1018. /package/dist/agent-runtime/{coding-tool-search-patch.d.ts → coding/coding-tool-search-patch.d.ts} +0 -0
  1019. /package/dist/agent-runtime/{coding-tool-shell.d.ts → coding/coding-tool-shell.d.ts} +0 -0
  1020. /package/dist/agent-runtime/{coding-tool-utf8.d.ts → coding/coding-tool-utf8.d.ts} +0 -0
  1021. /package/dist/agent-runtime/{coding-tools.d.ts → coding/coding-tools.d.ts} +0 -0
  1022. /package/dist/agent-runtime/{contained-scan-budget.d.ts → coding/contained-scan-budget.d.ts} +0 -0
  1023. /package/dist/agent-runtime/{contained-scan-contract.d.ts → coding/contained-scan-contract.d.ts} +0 -0
  1024. /package/dist/agent-runtime/{workspace-glob.d.ts → coding/workspace-glob.d.ts} +0 -0
  1025. /package/dist/agent-runtime/{harness-resources.d.ts → harness/harness-resources.d.ts} +0 -0
  1026. /package/dist/agent-runtime/{coordinator.d.ts → loop/coordinator.d.ts} +0 -0
  1027. /package/dist/agent-runtime/{invocation-failure.d.ts → loop/invocation-failure.d.ts} +0 -0
  1028. /package/dist/agent-runtime/{owned-provider-stream.d.ts → loop/owned-provider-stream.d.ts} +0 -0
  1029. /package/dist/agent-runtime/{run-tool-errors.d.ts → loop/run-tool-errors.d.ts} +0 -0
  1030. /package/dist/agent-runtime/{runtime-admission-gate.d.ts → loop/runtime-admission-gate.d.ts} +0 -0
  1031. /package/dist/agent-runtime/{anthropic-sse.d.ts → providers/anthropic-sse.d.ts} +0 -0
  1032. /package/dist/agent-runtime/{anthropic.d.ts → providers/anthropic.d.ts} +0 -0
  1033. /package/dist/agent-runtime/{models-driver-telemetry.d.ts → providers/models-driver-telemetry.d.ts} +0 -0
  1034. /package/dist/agent-runtime/{models.d.ts → providers/models.d.ts} +0 -0
  1035. /package/dist/agent-runtime/{openai-messages.d.ts → providers/openai-messages.d.ts} +0 -0
  1036. /package/dist/agent-runtime/{openai-sse-state.d.ts → providers/openai-sse-state.d.ts} +0 -0
  1037. /package/dist/agent-runtime/{openai-sse.d.ts → providers/openai-sse.d.ts} +0 -0
  1038. /package/dist/agent-runtime/{openai.d.ts → providers/openai.d.ts} +0 -0
  1039. /package/dist/agent-runtime/{openrouter-benchmarks.d.ts → providers/openrouter-benchmarks.d.ts} +0 -0
  1040. /package/dist/agent-runtime/{openrouter-catalog-cache.d.ts → providers/openrouter-catalog-cache.d.ts} +0 -0
  1041. /package/dist/agent-runtime/{openrouter-catalog.d.ts → providers/openrouter-catalog.d.ts} +0 -0
  1042. /package/dist/agent-runtime/{openrouter-models.d.ts → providers/openrouter-models.d.ts} +0 -0
  1043. /package/dist/agent-runtime/{openrouter-route.d.ts → providers/openrouter-route.d.ts} +0 -0
  1044. /package/dist/agent-runtime/{openrouter.d.ts → providers/openrouter.d.ts} +0 -0
  1045. /package/dist/agent-runtime/{provider-content.d.ts → providers/provider-content.d.ts} +0 -0
  1046. /package/dist/agent-runtime/{provider-http.d.ts → providers/provider-http.d.ts} +0 -0
  1047. /package/dist/agent-runtime/{provider-journal.d.ts → providers/provider-journal.d.ts} +0 -0
  1048. /package/dist/agent-runtime/{provider-json-schema-strip.d.ts → providers/provider-json-schema-strip.d.ts} +0 -0
  1049. /package/dist/agent-runtime/{provider-sse.d.ts → providers/provider-sse.d.ts} +0 -0
  1050. /package/dist/agent-runtime/{sandbox-binding.d.ts → sandbox/sandbox-binding.d.ts} +0 -0
  1051. /package/dist/agent-runtime/{sandbox-broker.d.ts → sandbox/sandbox-broker.d.ts} +0 -0
  1052. /package/dist/agent-runtime/{sandbox-bubblewrap-args.d.ts → sandbox/sandbox-bubblewrap-args.d.ts} +0 -0
  1053. /package/dist/agent-runtime/{sandbox-bubblewrap-storage.d.ts → sandbox/sandbox-bubblewrap-storage.d.ts} +0 -0
  1054. /package/dist/agent-runtime/{sandbox-bubblewrap.d.ts → sandbox/sandbox-bubblewrap.d.ts} +0 -0
  1055. /package/dist/agent-runtime/{sandbox-coding-adapter.d.ts → sandbox/sandbox-coding-adapter.d.ts} +0 -0
  1056. /package/dist/agent-runtime/{sandbox-contract.d.ts → sandbox/sandbox-contract.d.ts} +0 -0
  1057. /package/dist/agent-runtime/{sandbox-process-linux.d.ts → sandbox/sandbox-process-linux.d.ts} +0 -0
  1058. /package/dist/agent-runtime/{sandbox-process-macos.d.ts → sandbox/sandbox-process-macos.d.ts} +0 -0
  1059. /package/dist/agent-runtime/{sandbox-process-spec.d.ts → sandbox/sandbox-process-spec.d.ts} +0 -0
  1060. /package/dist/agent-runtime/{sandbox-process-wrapper.d.ts → sandbox/sandbox-process-wrapper.d.ts} +0 -0
  1061. /package/dist/agent-runtime/{sandbox-session.d.ts → sandbox/sandbox-session.d.ts} +0 -0
  1062. /package/dist/agent-runtime/{archive-projection.d.ts → stores/archive-projection.d.ts} +0 -0
  1063. /package/dist/agent-runtime/{archive-spill.d.ts → stores/archive-spill.d.ts} +0 -0
  1064. /package/dist/agent-runtime/{branch-contract.d.ts → stores/branch-contract.d.ts} +0 -0
  1065. /package/dist/agent-runtime/{branch-provider.d.ts → stores/branch-provider.d.ts} +0 -0
  1066. /package/dist/agent-runtime/{branch-refusal.d.ts → stores/branch-refusal.d.ts} +0 -0
  1067. /package/dist/agent-runtime/{branch-runtime-tools.d.ts → stores/branch-runtime-tools.d.ts} +0 -0
  1068. /package/dist/agent-runtime/{branch-transitions.d.ts → stores/branch-transitions.d.ts} +0 -0
  1069. /package/dist/agent-runtime/{child-blocking.d.ts → stores/child-blocking.d.ts} +0 -0
  1070. /package/dist/agent-runtime/{children-control.d.ts → stores/children-control.d.ts} +0 -0
  1071. /package/dist/agent-runtime/{children-spawn.d.ts → stores/children-spawn.d.ts} +0 -0
  1072. /package/dist/agent-runtime/{children-state.d.ts → stores/children-state.d.ts} +0 -0
  1073. /package/dist/agent-runtime/{children-usage.d.ts → stores/children-usage.d.ts} +0 -0
  1074. /package/dist/agent-runtime/{children.d.ts → stores/children.d.ts} +0 -0
  1075. /package/dist/agent-runtime/{conversations.d.ts → stores/conversations.d.ts} +0 -0
  1076. /package/dist/agent-runtime/{event-search-postgres.d.ts → stores/event-search-postgres.d.ts} +0 -0
  1077. /package/dist/agent-runtime/{event-search-terms.d.ts → stores/event-search-terms.d.ts} +0 -0
  1078. /package/dist/agent-runtime/{event-search.d.ts → stores/event-search.d.ts} +0 -0
  1079. /package/dist/agent-runtime/{postgres-schema.d.ts → stores/postgres-schema.d.ts} +0 -0
  1080. /package/dist/agent-runtime/{purge.d.ts → stores/purge.d.ts} +0 -0
  1081. /package/dist/agent-runtime/{schedule-contract.d.ts → stores/schedule-contract.d.ts} +0 -0
  1082. /package/dist/agent-runtime/{schedule-dispatch.d.ts → stores/schedule-dispatch.d.ts} +0 -0
  1083. /package/dist/agent-runtime/{schedule-records.d.ts → stores/schedule-records.d.ts} +0 -0
  1084. /package/dist/agent-runtime/{schedules.d.ts → stores/schedules.d.ts} +0 -0
  1085. /package/dist/agent-runtime/{sql-events.d.ts → stores/sql-events.d.ts} +0 -0
  1086. /package/dist/agent-runtime/{sql-history.d.ts → stores/sql-history.d.ts} +0 -0
  1087. /package/dist/agent-runtime/{sql-ledger.d.ts → stores/sql-ledger.d.ts} +0 -0
  1088. /package/dist/agent-runtime/{sql-purge.d.ts → stores/sql-purge.d.ts} +0 -0
  1089. /package/dist/agent-runtime/{sql-reads.d.ts → stores/sql-reads.d.ts} +0 -0
  1090. /package/dist/agent-runtime/{sql-rows.d.ts → stores/sql-rows.d.ts} +0 -0
  1091. /package/dist/agent-runtime/{sql-session.d.ts → stores/sql-session.d.ts} +0 -0
  1092. /package/dist/agent-runtime/{sqlite-bun.d.ts → stores/sqlite-bun.d.ts} +0 -0
  1093. /package/dist/agent-runtime/{sqlite-node.d.ts → stores/sqlite-node.d.ts} +0 -0
  1094. /package/dist/agent-runtime/{store-archive.d.ts → stores/store-archive.d.ts} +0 -0
  1095. /package/dist/agent-runtime/{store-branch.d.ts → stores/store-branch.d.ts} +0 -0
  1096. /package/dist/agent-runtime/{store-capabilities.d.ts → stores/store-capabilities.d.ts} +0 -0
  1097. /package/dist/agent-runtime/{store-create.d.ts → stores/store-create.d.ts} +0 -0
  1098. /package/dist/agent-runtime/{store-memory-archive.d.ts → stores/store-memory-archive.d.ts} +0 -0
  1099. /package/dist/agent-runtime/{store-memory.d.ts → stores/store-memory.d.ts} +0 -0
  1100. /package/dist/agent-runtime/{store-mutate.d.ts → stores/store-mutate.d.ts} +0 -0
  1101. /package/dist/agent-runtime/{store-purge.d.ts → stores/store-purge.d.ts} +0 -0
  1102. /package/dist/agent-runtime/{store-replay.d.ts → stores/store-replay.d.ts} +0 -0
  1103. /package/dist/agent-runtime/{fault-bench.d.ts → testing/fault-bench.d.ts} +0 -0
  1104. /package/dist/agent-runtime/{store-conformance-support.d.ts → testing/store-conformance-support.d.ts} +0 -0
@@ -1,3032 +0,0 @@
1
- import { z } from 'zod';
2
- import { type AgentStoreEventEnvelope, type AgentStoreEventPage, type AppendAgentStoreEvent, type ReadAgentStoreEvents } from '../durability/events.js';
3
- import type { AgentConversationBranchPlan, AgentConversationBranchResult, BranchAgentConversationInput } from './branch-contract.js';
4
- import type { AgentConversationPurgeInput, AgentConversationPurgeResult } from './purge.js';
5
- import { type AgentRun, type AgentSnapshot } from './schemas.js';
6
- import type { PurgeInvocationPayloadsInput, PurgeInvocationPayloadsResult } from './schemas-invocation-payload.js';
7
- import type { AgentRuntimeStoreCapabilities } from './store-capabilities.js';
8
- export declare const AgentStoreConflictSchema: z.ZodObject<{
9
- outcome: z.ZodLiteral<"conflict">;
10
- actualVersion: z.ZodInt;
11
- }, z.core.$strip>;
12
- export declare const AgentStoreNotFoundSchema: z.ZodObject<{
13
- outcome: z.ZodLiteral<"not_found">;
14
- }, z.core.$strip>;
15
- export declare const AgentStoreAppliedSchema: z.ZodObject<{
16
- outcome: z.ZodLiteral<"applied">;
17
- snapshot: z.ZodObject<{
18
- schemaVersion: z.ZodLiteral<1>;
19
- conversationId: z.ZodString;
20
- version: z.ZodInt;
21
- messages: z.ZodArray<z.ZodObject<{
22
- schemaVersion: z.ZodLiteral<1>;
23
- id: z.ZodString;
24
- conversationId: z.ZodString;
25
- runId: z.ZodOptional<z.ZodString>;
26
- role: z.ZodEnum<{
27
- assistant: "assistant";
28
- summary: "summary";
29
- system: "system";
30
- tool: "tool";
31
- user: "user";
32
- }>;
33
- status: z.ZodEnum<{
34
- committed: "committed";
35
- completed: "completed";
36
- failed: "failed";
37
- interrupted: "interrupted";
38
- streaming: "streaming";
39
- superseded: "superseded";
40
- }>;
41
- parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
42
- type: z.ZodLiteral<"text">;
43
- text: z.ZodString;
44
- provider: z.ZodOptional<z.ZodObject<{
45
- schemaVersion: z.ZodInt;
46
- provider: z.ZodString;
47
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
48
- }, z.core.$strip>>;
49
- }, z.core.$strip>, z.ZodObject<{
50
- type: z.ZodLiteral<"reasoning">;
51
- text: z.ZodString;
52
- provider: z.ZodOptional<z.ZodObject<{
53
- schemaVersion: z.ZodInt;
54
- provider: z.ZodString;
55
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
56
- }, z.core.$strip>>;
57
- }, z.core.$strip>, z.ZodObject<{
58
- type: z.ZodLiteral<"file">;
59
- mediaType: z.ZodString;
60
- reference: z.ZodString;
61
- filename: z.ZodOptional<z.ZodString>;
62
- }, z.core.$strip>, z.ZodObject<{
63
- type: z.ZodLiteral<"source">;
64
- sourceId: z.ZodString;
65
- url: z.ZodOptional<z.ZodURL>;
66
- title: z.ZodOptional<z.ZodString>;
67
- }, z.core.$strip>, z.ZodObject<{
68
- type: z.ZodLiteral<"tool-call">;
69
- callId: z.ZodString;
70
- toolName: z.ZodString;
71
- input: z.ZodJSONSchema;
72
- provider: z.ZodOptional<z.ZodObject<{
73
- schemaVersion: z.ZodInt;
74
- provider: z.ZodString;
75
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
76
- }, z.core.$strip>>;
77
- }, z.core.$strip>, z.ZodObject<{
78
- type: z.ZodLiteral<"tool-result">;
79
- callId: z.ZodString;
80
- toolName: z.ZodString;
81
- outcome: z.ZodEnum<{
82
- error: "error";
83
- interrupted: "interrupted";
84
- success: "success";
85
- }>;
86
- output: z.ZodOptional<z.ZodJSONSchema>;
87
- provider: z.ZodOptional<z.ZodObject<{
88
- schemaVersion: z.ZodInt;
89
- provider: z.ZodString;
90
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
91
- }, z.core.$strip>>;
92
- }, z.core.$strip>, z.ZodObject<{
93
- type: z.ZodLiteral<"tool-approval-request">;
94
- approvalId: z.ZodString;
95
- callId: z.ZodString;
96
- isAutomatic: z.ZodOptional<z.ZodBoolean>;
97
- signature: z.ZodOptional<z.ZodString>;
98
- }, z.core.$strip>, z.ZodObject<{
99
- type: z.ZodLiteral<"tool-approval-response">;
100
- approvalId: z.ZodString;
101
- approved: z.ZodBoolean;
102
- reason: z.ZodOptional<z.ZodString>;
103
- }, z.core.$strip>, z.ZodObject<{
104
- type: z.ZodLiteral<"provider">;
105
- envelope: z.ZodObject<{
106
- schemaVersion: z.ZodInt;
107
- provider: z.ZodString;
108
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
109
- }, z.core.$strip>;
110
- }, z.core.$strip>, z.ZodObject<{
111
- type: z.ZodLiteral<"control">;
112
- reason: z.ZodEnum<{
113
- "run-interrupted": "run-interrupted";
114
- "stale-run": "stale-run";
115
- }>;
116
- }, z.core.$strip>], "type">>;
117
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
118
- createdAt: z.ZodISODateTime;
119
- updatedAt: z.ZodISODateTime;
120
- }, z.core.$strip>>;
121
- runs: z.ZodArray<z.ZodObject<{
122
- schemaVersion: z.ZodLiteral<1>;
123
- id: z.ZodString;
124
- conversationId: z.ZodString;
125
- inputMessageIds: z.ZodArray<z.ZodString>;
126
- assistantMessageId: z.ZodString;
127
- state: z.ZodEnum<{
128
- abandoned: "abandoned";
129
- cancelled: "cancelled";
130
- completed: "completed";
131
- failed: "failed";
132
- interrupt_requested: "interrupt_requested";
133
- interrupted: "interrupted";
134
- queued: "queued";
135
- running: "running";
136
- superseded: "superseded";
137
- }>;
138
- revision: z.ZodInt;
139
- queuePriority: z.ZodOptional<z.ZodEnum<{
140
- "interrupt-next": "interrupt-next";
141
- }>>;
142
- executionSequence: z.ZodOptional<z.ZodInt>;
143
- ownerId: z.ZodOptional<z.ZodString>;
144
- fencingToken: z.ZodOptional<z.ZodInt>;
145
- terminalReason: z.ZodOptional<z.ZodEnum<{
146
- abandoned: "abandoned";
147
- absorbed: "absorbed";
148
- cancelled: "cancelled";
149
- context_overflow: "context_overflow";
150
- interrupted: "interrupted";
151
- output_rejected: "output_rejected";
152
- policy_stop: "policy_stop";
153
- provider_failure: "provider_failure";
154
- provider_stop: "provider_stop";
155
- runtime_failure: "runtime_failure";
156
- shutdown: "shutdown";
157
- storage_conflict: "storage_conflict";
158
- success: "success";
159
- superseded: "superseded";
160
- timeout: "timeout";
161
- }>>;
162
- terminalPolicyName: z.ZodOptional<z.ZodString>;
163
- absorbedIntoRunId: z.ZodOptional<z.ZodString>;
164
- usage: z.ZodOptional<z.ZodObject<{
165
- inputTokens: z.ZodObject<{
166
- value: z.ZodOptional<z.ZodInt>;
167
- provenance: z.ZodEnum<{
168
- computed: "computed";
169
- estimated: "estimated";
170
- "provider-reported": "provider-reported";
171
- unavailable: "unavailable";
172
- }>;
173
- }, z.core.$strip>;
174
- outputTokens: z.ZodObject<{
175
- value: z.ZodOptional<z.ZodInt>;
176
- provenance: z.ZodEnum<{
177
- computed: "computed";
178
- estimated: "estimated";
179
- "provider-reported": "provider-reported";
180
- unavailable: "unavailable";
181
- }>;
182
- }, z.core.$strip>;
183
- reasoningTokens: z.ZodOptional<z.ZodObject<{
184
- value: z.ZodOptional<z.ZodInt>;
185
- provenance: z.ZodEnum<{
186
- computed: "computed";
187
- estimated: "estimated";
188
- "provider-reported": "provider-reported";
189
- unavailable: "unavailable";
190
- }>;
191
- }, z.core.$strip>>;
192
- cacheReadTokens: z.ZodOptional<z.ZodObject<{
193
- value: z.ZodOptional<z.ZodInt>;
194
- provenance: z.ZodEnum<{
195
- computed: "computed";
196
- estimated: "estimated";
197
- "provider-reported": "provider-reported";
198
- unavailable: "unavailable";
199
- }>;
200
- }, z.core.$strip>>;
201
- cacheWriteTokens: z.ZodOptional<z.ZodObject<{
202
- value: z.ZodOptional<z.ZodInt>;
203
- provenance: z.ZodEnum<{
204
- computed: "computed";
205
- estimated: "estimated";
206
- "provider-reported": "provider-reported";
207
- unavailable: "unavailable";
208
- }>;
209
- }, z.core.$strip>>;
210
- cost: z.ZodOptional<z.ZodObject<{
211
- value: z.ZodOptional<z.ZodNumber>;
212
- currency: z.ZodOptional<z.ZodString>;
213
- provenance: z.ZodEnum<{
214
- computed: "computed";
215
- estimated: "estimated";
216
- "provider-reported": "provider-reported";
217
- unavailable: "unavailable";
218
- }>;
219
- }, z.core.$strip>>;
220
- }, z.core.$strip>>;
221
- lastOperation: z.ZodOptional<z.ZodObject<{
222
- operationId: z.ZodString;
223
- kind: z.ZodEnum<{
224
- compaction: "compaction";
225
- "model-request": "model-request";
226
- }>;
227
- phase: z.ZodEnum<{
228
- cancelled: "cancelled";
229
- completed: "completed";
230
- failed: "failed";
231
- "first-output": "first-output";
232
- started: "started";
233
- }>;
234
- step: z.ZodOptional<z.ZodInt>;
235
- startedAt: z.ZodISODateTime;
236
- firstOutputAt: z.ZodOptional<z.ZodISODateTime>;
237
- finishedAt: z.ZodOptional<z.ZodISODateTime>;
238
- }, z.core.$strip>>;
239
- createdAt: z.ZodISODateTime;
240
- updatedAt: z.ZodISODateTime;
241
- }, z.core.$strip>>;
242
- }, z.core.$strip>;
243
- }, z.core.$strip>;
244
- export declare const AgentStoreDuplicateSchema: z.ZodObject<{
245
- outcome: z.ZodLiteral<"duplicate">;
246
- input: z.ZodObject<{
247
- schemaVersion: z.ZodLiteral<1>;
248
- id: z.ZodString;
249
- conversationId: z.ZodString;
250
- runId: z.ZodOptional<z.ZodString>;
251
- role: z.ZodEnum<{
252
- assistant: "assistant";
253
- summary: "summary";
254
- system: "system";
255
- tool: "tool";
256
- user: "user";
257
- }>;
258
- status: z.ZodEnum<{
259
- committed: "committed";
260
- completed: "completed";
261
- failed: "failed";
262
- interrupted: "interrupted";
263
- streaming: "streaming";
264
- superseded: "superseded";
265
- }>;
266
- parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
267
- type: z.ZodLiteral<"text">;
268
- text: z.ZodString;
269
- provider: z.ZodOptional<z.ZodObject<{
270
- schemaVersion: z.ZodInt;
271
- provider: z.ZodString;
272
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
273
- }, z.core.$strip>>;
274
- }, z.core.$strip>, z.ZodObject<{
275
- type: z.ZodLiteral<"reasoning">;
276
- text: z.ZodString;
277
- provider: z.ZodOptional<z.ZodObject<{
278
- schemaVersion: z.ZodInt;
279
- provider: z.ZodString;
280
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
281
- }, z.core.$strip>>;
282
- }, z.core.$strip>, z.ZodObject<{
283
- type: z.ZodLiteral<"file">;
284
- mediaType: z.ZodString;
285
- reference: z.ZodString;
286
- filename: z.ZodOptional<z.ZodString>;
287
- }, z.core.$strip>, z.ZodObject<{
288
- type: z.ZodLiteral<"source">;
289
- sourceId: z.ZodString;
290
- url: z.ZodOptional<z.ZodURL>;
291
- title: z.ZodOptional<z.ZodString>;
292
- }, z.core.$strip>, z.ZodObject<{
293
- type: z.ZodLiteral<"tool-call">;
294
- callId: z.ZodString;
295
- toolName: z.ZodString;
296
- input: z.ZodJSONSchema;
297
- provider: z.ZodOptional<z.ZodObject<{
298
- schemaVersion: z.ZodInt;
299
- provider: z.ZodString;
300
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
301
- }, z.core.$strip>>;
302
- }, z.core.$strip>, z.ZodObject<{
303
- type: z.ZodLiteral<"tool-result">;
304
- callId: z.ZodString;
305
- toolName: z.ZodString;
306
- outcome: z.ZodEnum<{
307
- error: "error";
308
- interrupted: "interrupted";
309
- success: "success";
310
- }>;
311
- output: z.ZodOptional<z.ZodJSONSchema>;
312
- provider: z.ZodOptional<z.ZodObject<{
313
- schemaVersion: z.ZodInt;
314
- provider: z.ZodString;
315
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
316
- }, z.core.$strip>>;
317
- }, z.core.$strip>, z.ZodObject<{
318
- type: z.ZodLiteral<"tool-approval-request">;
319
- approvalId: z.ZodString;
320
- callId: z.ZodString;
321
- isAutomatic: z.ZodOptional<z.ZodBoolean>;
322
- signature: z.ZodOptional<z.ZodString>;
323
- }, z.core.$strip>, z.ZodObject<{
324
- type: z.ZodLiteral<"tool-approval-response">;
325
- approvalId: z.ZodString;
326
- approved: z.ZodBoolean;
327
- reason: z.ZodOptional<z.ZodString>;
328
- }, z.core.$strip>, z.ZodObject<{
329
- type: z.ZodLiteral<"provider">;
330
- envelope: z.ZodObject<{
331
- schemaVersion: z.ZodInt;
332
- provider: z.ZodString;
333
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
334
- }, z.core.$strip>;
335
- }, z.core.$strip>, z.ZodObject<{
336
- type: z.ZodLiteral<"control">;
337
- reason: z.ZodEnum<{
338
- "run-interrupted": "run-interrupted";
339
- "stale-run": "stale-run";
340
- }>;
341
- }, z.core.$strip>], "type">>;
342
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
343
- createdAt: z.ZodISODateTime;
344
- updatedAt: z.ZodISODateTime;
345
- }, z.core.$strip>;
346
- inputMessageId: z.ZodString;
347
- runId: z.ZodString;
348
- assistantMessageId: z.ZodString;
349
- run: z.ZodObject<{
350
- schemaVersion: z.ZodLiteral<1>;
351
- id: z.ZodString;
352
- conversationId: z.ZodString;
353
- inputMessageIds: z.ZodArray<z.ZodString>;
354
- assistantMessageId: z.ZodString;
355
- state: z.ZodEnum<{
356
- abandoned: "abandoned";
357
- cancelled: "cancelled";
358
- completed: "completed";
359
- failed: "failed";
360
- interrupt_requested: "interrupt_requested";
361
- interrupted: "interrupted";
362
- queued: "queued";
363
- running: "running";
364
- superseded: "superseded";
365
- }>;
366
- revision: z.ZodInt;
367
- queuePriority: z.ZodOptional<z.ZodEnum<{
368
- "interrupt-next": "interrupt-next";
369
- }>>;
370
- executionSequence: z.ZodOptional<z.ZodInt>;
371
- ownerId: z.ZodOptional<z.ZodString>;
372
- fencingToken: z.ZodOptional<z.ZodInt>;
373
- terminalReason: z.ZodOptional<z.ZodEnum<{
374
- abandoned: "abandoned";
375
- absorbed: "absorbed";
376
- cancelled: "cancelled";
377
- context_overflow: "context_overflow";
378
- interrupted: "interrupted";
379
- output_rejected: "output_rejected";
380
- policy_stop: "policy_stop";
381
- provider_failure: "provider_failure";
382
- provider_stop: "provider_stop";
383
- runtime_failure: "runtime_failure";
384
- shutdown: "shutdown";
385
- storage_conflict: "storage_conflict";
386
- success: "success";
387
- superseded: "superseded";
388
- timeout: "timeout";
389
- }>>;
390
- terminalPolicyName: z.ZodOptional<z.ZodString>;
391
- absorbedIntoRunId: z.ZodOptional<z.ZodString>;
392
- usage: z.ZodOptional<z.ZodObject<{
393
- inputTokens: z.ZodObject<{
394
- value: z.ZodOptional<z.ZodInt>;
395
- provenance: z.ZodEnum<{
396
- computed: "computed";
397
- estimated: "estimated";
398
- "provider-reported": "provider-reported";
399
- unavailable: "unavailable";
400
- }>;
401
- }, z.core.$strip>;
402
- outputTokens: z.ZodObject<{
403
- value: z.ZodOptional<z.ZodInt>;
404
- provenance: z.ZodEnum<{
405
- computed: "computed";
406
- estimated: "estimated";
407
- "provider-reported": "provider-reported";
408
- unavailable: "unavailable";
409
- }>;
410
- }, z.core.$strip>;
411
- reasoningTokens: z.ZodOptional<z.ZodObject<{
412
- value: z.ZodOptional<z.ZodInt>;
413
- provenance: z.ZodEnum<{
414
- computed: "computed";
415
- estimated: "estimated";
416
- "provider-reported": "provider-reported";
417
- unavailable: "unavailable";
418
- }>;
419
- }, z.core.$strip>>;
420
- cacheReadTokens: z.ZodOptional<z.ZodObject<{
421
- value: z.ZodOptional<z.ZodInt>;
422
- provenance: z.ZodEnum<{
423
- computed: "computed";
424
- estimated: "estimated";
425
- "provider-reported": "provider-reported";
426
- unavailable: "unavailable";
427
- }>;
428
- }, z.core.$strip>>;
429
- cacheWriteTokens: z.ZodOptional<z.ZodObject<{
430
- value: z.ZodOptional<z.ZodInt>;
431
- provenance: z.ZodEnum<{
432
- computed: "computed";
433
- estimated: "estimated";
434
- "provider-reported": "provider-reported";
435
- unavailable: "unavailable";
436
- }>;
437
- }, z.core.$strip>>;
438
- cost: z.ZodOptional<z.ZodObject<{
439
- value: z.ZodOptional<z.ZodNumber>;
440
- currency: z.ZodOptional<z.ZodString>;
441
- provenance: z.ZodEnum<{
442
- computed: "computed";
443
- estimated: "estimated";
444
- "provider-reported": "provider-reported";
445
- unavailable: "unavailable";
446
- }>;
447
- }, z.core.$strip>>;
448
- }, z.core.$strip>>;
449
- lastOperation: z.ZodOptional<z.ZodObject<{
450
- operationId: z.ZodString;
451
- kind: z.ZodEnum<{
452
- compaction: "compaction";
453
- "model-request": "model-request";
454
- }>;
455
- phase: z.ZodEnum<{
456
- cancelled: "cancelled";
457
- completed: "completed";
458
- failed: "failed";
459
- "first-output": "first-output";
460
- started: "started";
461
- }>;
462
- step: z.ZodOptional<z.ZodInt>;
463
- startedAt: z.ZodISODateTime;
464
- firstOutputAt: z.ZodOptional<z.ZodISODateTime>;
465
- finishedAt: z.ZodOptional<z.ZodISODateTime>;
466
- }, z.core.$strip>>;
467
- createdAt: z.ZodISODateTime;
468
- updatedAt: z.ZodISODateTime;
469
- }, z.core.$strip>;
470
- assistant: z.ZodOptional<z.ZodObject<{
471
- schemaVersion: z.ZodLiteral<1>;
472
- id: z.ZodString;
473
- conversationId: z.ZodString;
474
- runId: z.ZodOptional<z.ZodString>;
475
- role: z.ZodEnum<{
476
- assistant: "assistant";
477
- summary: "summary";
478
- system: "system";
479
- tool: "tool";
480
- user: "user";
481
- }>;
482
- status: z.ZodEnum<{
483
- committed: "committed";
484
- completed: "completed";
485
- failed: "failed";
486
- interrupted: "interrupted";
487
- streaming: "streaming";
488
- superseded: "superseded";
489
- }>;
490
- parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
491
- type: z.ZodLiteral<"text">;
492
- text: z.ZodString;
493
- provider: z.ZodOptional<z.ZodObject<{
494
- schemaVersion: z.ZodInt;
495
- provider: z.ZodString;
496
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
497
- }, z.core.$strip>>;
498
- }, z.core.$strip>, z.ZodObject<{
499
- type: z.ZodLiteral<"reasoning">;
500
- text: z.ZodString;
501
- provider: z.ZodOptional<z.ZodObject<{
502
- schemaVersion: z.ZodInt;
503
- provider: z.ZodString;
504
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
505
- }, z.core.$strip>>;
506
- }, z.core.$strip>, z.ZodObject<{
507
- type: z.ZodLiteral<"file">;
508
- mediaType: z.ZodString;
509
- reference: z.ZodString;
510
- filename: z.ZodOptional<z.ZodString>;
511
- }, z.core.$strip>, z.ZodObject<{
512
- type: z.ZodLiteral<"source">;
513
- sourceId: z.ZodString;
514
- url: z.ZodOptional<z.ZodURL>;
515
- title: z.ZodOptional<z.ZodString>;
516
- }, z.core.$strip>, z.ZodObject<{
517
- type: z.ZodLiteral<"tool-call">;
518
- callId: z.ZodString;
519
- toolName: z.ZodString;
520
- input: z.ZodJSONSchema;
521
- provider: z.ZodOptional<z.ZodObject<{
522
- schemaVersion: z.ZodInt;
523
- provider: z.ZodString;
524
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
525
- }, z.core.$strip>>;
526
- }, z.core.$strip>, z.ZodObject<{
527
- type: z.ZodLiteral<"tool-result">;
528
- callId: z.ZodString;
529
- toolName: z.ZodString;
530
- outcome: z.ZodEnum<{
531
- error: "error";
532
- interrupted: "interrupted";
533
- success: "success";
534
- }>;
535
- output: z.ZodOptional<z.ZodJSONSchema>;
536
- provider: z.ZodOptional<z.ZodObject<{
537
- schemaVersion: z.ZodInt;
538
- provider: z.ZodString;
539
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
540
- }, z.core.$strip>>;
541
- }, z.core.$strip>, z.ZodObject<{
542
- type: z.ZodLiteral<"tool-approval-request">;
543
- approvalId: z.ZodString;
544
- callId: z.ZodString;
545
- isAutomatic: z.ZodOptional<z.ZodBoolean>;
546
- signature: z.ZodOptional<z.ZodString>;
547
- }, z.core.$strip>, z.ZodObject<{
548
- type: z.ZodLiteral<"tool-approval-response">;
549
- approvalId: z.ZodString;
550
- approved: z.ZodBoolean;
551
- reason: z.ZodOptional<z.ZodString>;
552
- }, z.core.$strip>, z.ZodObject<{
553
- type: z.ZodLiteral<"provider">;
554
- envelope: z.ZodObject<{
555
- schemaVersion: z.ZodInt;
556
- provider: z.ZodString;
557
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
558
- }, z.core.$strip>;
559
- }, z.core.$strip>, z.ZodObject<{
560
- type: z.ZodLiteral<"control">;
561
- reason: z.ZodEnum<{
562
- "run-interrupted": "run-interrupted";
563
- "stale-run": "stale-run";
564
- }>;
565
- }, z.core.$strip>], "type">>;
566
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
567
- createdAt: z.ZodISODateTime;
568
- updatedAt: z.ZodISODateTime;
569
- }, z.core.$strip>>;
570
- snapshot: z.ZodObject<{
571
- schemaVersion: z.ZodLiteral<1>;
572
- conversationId: z.ZodString;
573
- version: z.ZodInt;
574
- messages: z.ZodArray<z.ZodObject<{
575
- schemaVersion: z.ZodLiteral<1>;
576
- id: z.ZodString;
577
- conversationId: z.ZodString;
578
- runId: z.ZodOptional<z.ZodString>;
579
- role: z.ZodEnum<{
580
- assistant: "assistant";
581
- summary: "summary";
582
- system: "system";
583
- tool: "tool";
584
- user: "user";
585
- }>;
586
- status: z.ZodEnum<{
587
- committed: "committed";
588
- completed: "completed";
589
- failed: "failed";
590
- interrupted: "interrupted";
591
- streaming: "streaming";
592
- superseded: "superseded";
593
- }>;
594
- parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
595
- type: z.ZodLiteral<"text">;
596
- text: z.ZodString;
597
- provider: z.ZodOptional<z.ZodObject<{
598
- schemaVersion: z.ZodInt;
599
- provider: z.ZodString;
600
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
601
- }, z.core.$strip>>;
602
- }, z.core.$strip>, z.ZodObject<{
603
- type: z.ZodLiteral<"reasoning">;
604
- text: z.ZodString;
605
- provider: z.ZodOptional<z.ZodObject<{
606
- schemaVersion: z.ZodInt;
607
- provider: z.ZodString;
608
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
609
- }, z.core.$strip>>;
610
- }, z.core.$strip>, z.ZodObject<{
611
- type: z.ZodLiteral<"file">;
612
- mediaType: z.ZodString;
613
- reference: z.ZodString;
614
- filename: z.ZodOptional<z.ZodString>;
615
- }, z.core.$strip>, z.ZodObject<{
616
- type: z.ZodLiteral<"source">;
617
- sourceId: z.ZodString;
618
- url: z.ZodOptional<z.ZodURL>;
619
- title: z.ZodOptional<z.ZodString>;
620
- }, z.core.$strip>, z.ZodObject<{
621
- type: z.ZodLiteral<"tool-call">;
622
- callId: z.ZodString;
623
- toolName: z.ZodString;
624
- input: z.ZodJSONSchema;
625
- provider: z.ZodOptional<z.ZodObject<{
626
- schemaVersion: z.ZodInt;
627
- provider: z.ZodString;
628
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
629
- }, z.core.$strip>>;
630
- }, z.core.$strip>, z.ZodObject<{
631
- type: z.ZodLiteral<"tool-result">;
632
- callId: z.ZodString;
633
- toolName: z.ZodString;
634
- outcome: z.ZodEnum<{
635
- error: "error";
636
- interrupted: "interrupted";
637
- success: "success";
638
- }>;
639
- output: z.ZodOptional<z.ZodJSONSchema>;
640
- provider: z.ZodOptional<z.ZodObject<{
641
- schemaVersion: z.ZodInt;
642
- provider: z.ZodString;
643
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
644
- }, z.core.$strip>>;
645
- }, z.core.$strip>, z.ZodObject<{
646
- type: z.ZodLiteral<"tool-approval-request">;
647
- approvalId: z.ZodString;
648
- callId: z.ZodString;
649
- isAutomatic: z.ZodOptional<z.ZodBoolean>;
650
- signature: z.ZodOptional<z.ZodString>;
651
- }, z.core.$strip>, z.ZodObject<{
652
- type: z.ZodLiteral<"tool-approval-response">;
653
- approvalId: z.ZodString;
654
- approved: z.ZodBoolean;
655
- reason: z.ZodOptional<z.ZodString>;
656
- }, z.core.$strip>, z.ZodObject<{
657
- type: z.ZodLiteral<"provider">;
658
- envelope: z.ZodObject<{
659
- schemaVersion: z.ZodInt;
660
- provider: z.ZodString;
661
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
662
- }, z.core.$strip>;
663
- }, z.core.$strip>, z.ZodObject<{
664
- type: z.ZodLiteral<"control">;
665
- reason: z.ZodEnum<{
666
- "run-interrupted": "run-interrupted";
667
- "stale-run": "stale-run";
668
- }>;
669
- }, z.core.$strip>], "type">>;
670
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
671
- createdAt: z.ZodISODateTime;
672
- updatedAt: z.ZodISODateTime;
673
- }, z.core.$strip>>;
674
- runs: z.ZodArray<z.ZodObject<{
675
- schemaVersion: z.ZodLiteral<1>;
676
- id: z.ZodString;
677
- conversationId: z.ZodString;
678
- inputMessageIds: z.ZodArray<z.ZodString>;
679
- assistantMessageId: z.ZodString;
680
- state: z.ZodEnum<{
681
- abandoned: "abandoned";
682
- cancelled: "cancelled";
683
- completed: "completed";
684
- failed: "failed";
685
- interrupt_requested: "interrupt_requested";
686
- interrupted: "interrupted";
687
- queued: "queued";
688
- running: "running";
689
- superseded: "superseded";
690
- }>;
691
- revision: z.ZodInt;
692
- queuePriority: z.ZodOptional<z.ZodEnum<{
693
- "interrupt-next": "interrupt-next";
694
- }>>;
695
- executionSequence: z.ZodOptional<z.ZodInt>;
696
- ownerId: z.ZodOptional<z.ZodString>;
697
- fencingToken: z.ZodOptional<z.ZodInt>;
698
- terminalReason: z.ZodOptional<z.ZodEnum<{
699
- abandoned: "abandoned";
700
- absorbed: "absorbed";
701
- cancelled: "cancelled";
702
- context_overflow: "context_overflow";
703
- interrupted: "interrupted";
704
- output_rejected: "output_rejected";
705
- policy_stop: "policy_stop";
706
- provider_failure: "provider_failure";
707
- provider_stop: "provider_stop";
708
- runtime_failure: "runtime_failure";
709
- shutdown: "shutdown";
710
- storage_conflict: "storage_conflict";
711
- success: "success";
712
- superseded: "superseded";
713
- timeout: "timeout";
714
- }>>;
715
- terminalPolicyName: z.ZodOptional<z.ZodString>;
716
- absorbedIntoRunId: z.ZodOptional<z.ZodString>;
717
- usage: z.ZodOptional<z.ZodObject<{
718
- inputTokens: z.ZodObject<{
719
- value: z.ZodOptional<z.ZodInt>;
720
- provenance: z.ZodEnum<{
721
- computed: "computed";
722
- estimated: "estimated";
723
- "provider-reported": "provider-reported";
724
- unavailable: "unavailable";
725
- }>;
726
- }, z.core.$strip>;
727
- outputTokens: z.ZodObject<{
728
- value: z.ZodOptional<z.ZodInt>;
729
- provenance: z.ZodEnum<{
730
- computed: "computed";
731
- estimated: "estimated";
732
- "provider-reported": "provider-reported";
733
- unavailable: "unavailable";
734
- }>;
735
- }, z.core.$strip>;
736
- reasoningTokens: z.ZodOptional<z.ZodObject<{
737
- value: z.ZodOptional<z.ZodInt>;
738
- provenance: z.ZodEnum<{
739
- computed: "computed";
740
- estimated: "estimated";
741
- "provider-reported": "provider-reported";
742
- unavailable: "unavailable";
743
- }>;
744
- }, z.core.$strip>>;
745
- cacheReadTokens: z.ZodOptional<z.ZodObject<{
746
- value: z.ZodOptional<z.ZodInt>;
747
- provenance: z.ZodEnum<{
748
- computed: "computed";
749
- estimated: "estimated";
750
- "provider-reported": "provider-reported";
751
- unavailable: "unavailable";
752
- }>;
753
- }, z.core.$strip>>;
754
- cacheWriteTokens: z.ZodOptional<z.ZodObject<{
755
- value: z.ZodOptional<z.ZodInt>;
756
- provenance: z.ZodEnum<{
757
- computed: "computed";
758
- estimated: "estimated";
759
- "provider-reported": "provider-reported";
760
- unavailable: "unavailable";
761
- }>;
762
- }, z.core.$strip>>;
763
- cost: z.ZodOptional<z.ZodObject<{
764
- value: z.ZodOptional<z.ZodNumber>;
765
- currency: z.ZodOptional<z.ZodString>;
766
- provenance: z.ZodEnum<{
767
- computed: "computed";
768
- estimated: "estimated";
769
- "provider-reported": "provider-reported";
770
- unavailable: "unavailable";
771
- }>;
772
- }, z.core.$strip>>;
773
- }, z.core.$strip>>;
774
- lastOperation: z.ZodOptional<z.ZodObject<{
775
- operationId: z.ZodString;
776
- kind: z.ZodEnum<{
777
- compaction: "compaction";
778
- "model-request": "model-request";
779
- }>;
780
- phase: z.ZodEnum<{
781
- cancelled: "cancelled";
782
- completed: "completed";
783
- failed: "failed";
784
- "first-output": "first-output";
785
- started: "started";
786
- }>;
787
- step: z.ZodOptional<z.ZodInt>;
788
- startedAt: z.ZodISODateTime;
789
- firstOutputAt: z.ZodOptional<z.ZodISODateTime>;
790
- finishedAt: z.ZodOptional<z.ZodISODateTime>;
791
- }, z.core.$strip>>;
792
- createdAt: z.ZodISODateTime;
793
- updatedAt: z.ZodISODateTime;
794
- }, z.core.$strip>>;
795
- }, z.core.$strip>;
796
- }, z.core.$strip>;
797
- export declare const AgentStoreMutationResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
798
- outcome: z.ZodLiteral<"applied">;
799
- snapshot: z.ZodObject<{
800
- schemaVersion: z.ZodLiteral<1>;
801
- conversationId: z.ZodString;
802
- version: z.ZodInt;
803
- messages: z.ZodArray<z.ZodObject<{
804
- schemaVersion: z.ZodLiteral<1>;
805
- id: z.ZodString;
806
- conversationId: z.ZodString;
807
- runId: z.ZodOptional<z.ZodString>;
808
- role: z.ZodEnum<{
809
- assistant: "assistant";
810
- summary: "summary";
811
- system: "system";
812
- tool: "tool";
813
- user: "user";
814
- }>;
815
- status: z.ZodEnum<{
816
- committed: "committed";
817
- completed: "completed";
818
- failed: "failed";
819
- interrupted: "interrupted";
820
- streaming: "streaming";
821
- superseded: "superseded";
822
- }>;
823
- parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
824
- type: z.ZodLiteral<"text">;
825
- text: z.ZodString;
826
- provider: z.ZodOptional<z.ZodObject<{
827
- schemaVersion: z.ZodInt;
828
- provider: z.ZodString;
829
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
830
- }, z.core.$strip>>;
831
- }, z.core.$strip>, z.ZodObject<{
832
- type: z.ZodLiteral<"reasoning">;
833
- text: z.ZodString;
834
- provider: z.ZodOptional<z.ZodObject<{
835
- schemaVersion: z.ZodInt;
836
- provider: z.ZodString;
837
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
838
- }, z.core.$strip>>;
839
- }, z.core.$strip>, z.ZodObject<{
840
- type: z.ZodLiteral<"file">;
841
- mediaType: z.ZodString;
842
- reference: z.ZodString;
843
- filename: z.ZodOptional<z.ZodString>;
844
- }, z.core.$strip>, z.ZodObject<{
845
- type: z.ZodLiteral<"source">;
846
- sourceId: z.ZodString;
847
- url: z.ZodOptional<z.ZodURL>;
848
- title: z.ZodOptional<z.ZodString>;
849
- }, z.core.$strip>, z.ZodObject<{
850
- type: z.ZodLiteral<"tool-call">;
851
- callId: z.ZodString;
852
- toolName: z.ZodString;
853
- input: z.ZodJSONSchema;
854
- provider: z.ZodOptional<z.ZodObject<{
855
- schemaVersion: z.ZodInt;
856
- provider: z.ZodString;
857
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
858
- }, z.core.$strip>>;
859
- }, z.core.$strip>, z.ZodObject<{
860
- type: z.ZodLiteral<"tool-result">;
861
- callId: z.ZodString;
862
- toolName: z.ZodString;
863
- outcome: z.ZodEnum<{
864
- error: "error";
865
- interrupted: "interrupted";
866
- success: "success";
867
- }>;
868
- output: z.ZodOptional<z.ZodJSONSchema>;
869
- provider: z.ZodOptional<z.ZodObject<{
870
- schemaVersion: z.ZodInt;
871
- provider: z.ZodString;
872
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
873
- }, z.core.$strip>>;
874
- }, z.core.$strip>, z.ZodObject<{
875
- type: z.ZodLiteral<"tool-approval-request">;
876
- approvalId: z.ZodString;
877
- callId: z.ZodString;
878
- isAutomatic: z.ZodOptional<z.ZodBoolean>;
879
- signature: z.ZodOptional<z.ZodString>;
880
- }, z.core.$strip>, z.ZodObject<{
881
- type: z.ZodLiteral<"tool-approval-response">;
882
- approvalId: z.ZodString;
883
- approved: z.ZodBoolean;
884
- reason: z.ZodOptional<z.ZodString>;
885
- }, z.core.$strip>, z.ZodObject<{
886
- type: z.ZodLiteral<"provider">;
887
- envelope: z.ZodObject<{
888
- schemaVersion: z.ZodInt;
889
- provider: z.ZodString;
890
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
891
- }, z.core.$strip>;
892
- }, z.core.$strip>, z.ZodObject<{
893
- type: z.ZodLiteral<"control">;
894
- reason: z.ZodEnum<{
895
- "run-interrupted": "run-interrupted";
896
- "stale-run": "stale-run";
897
- }>;
898
- }, z.core.$strip>], "type">>;
899
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
900
- createdAt: z.ZodISODateTime;
901
- updatedAt: z.ZodISODateTime;
902
- }, z.core.$strip>>;
903
- runs: z.ZodArray<z.ZodObject<{
904
- schemaVersion: z.ZodLiteral<1>;
905
- id: z.ZodString;
906
- conversationId: z.ZodString;
907
- inputMessageIds: z.ZodArray<z.ZodString>;
908
- assistantMessageId: z.ZodString;
909
- state: z.ZodEnum<{
910
- abandoned: "abandoned";
911
- cancelled: "cancelled";
912
- completed: "completed";
913
- failed: "failed";
914
- interrupt_requested: "interrupt_requested";
915
- interrupted: "interrupted";
916
- queued: "queued";
917
- running: "running";
918
- superseded: "superseded";
919
- }>;
920
- revision: z.ZodInt;
921
- queuePriority: z.ZodOptional<z.ZodEnum<{
922
- "interrupt-next": "interrupt-next";
923
- }>>;
924
- executionSequence: z.ZodOptional<z.ZodInt>;
925
- ownerId: z.ZodOptional<z.ZodString>;
926
- fencingToken: z.ZodOptional<z.ZodInt>;
927
- terminalReason: z.ZodOptional<z.ZodEnum<{
928
- abandoned: "abandoned";
929
- absorbed: "absorbed";
930
- cancelled: "cancelled";
931
- context_overflow: "context_overflow";
932
- interrupted: "interrupted";
933
- output_rejected: "output_rejected";
934
- policy_stop: "policy_stop";
935
- provider_failure: "provider_failure";
936
- provider_stop: "provider_stop";
937
- runtime_failure: "runtime_failure";
938
- shutdown: "shutdown";
939
- storage_conflict: "storage_conflict";
940
- success: "success";
941
- superseded: "superseded";
942
- timeout: "timeout";
943
- }>>;
944
- terminalPolicyName: z.ZodOptional<z.ZodString>;
945
- absorbedIntoRunId: z.ZodOptional<z.ZodString>;
946
- usage: z.ZodOptional<z.ZodObject<{
947
- inputTokens: z.ZodObject<{
948
- value: z.ZodOptional<z.ZodInt>;
949
- provenance: z.ZodEnum<{
950
- computed: "computed";
951
- estimated: "estimated";
952
- "provider-reported": "provider-reported";
953
- unavailable: "unavailable";
954
- }>;
955
- }, z.core.$strip>;
956
- outputTokens: z.ZodObject<{
957
- value: z.ZodOptional<z.ZodInt>;
958
- provenance: z.ZodEnum<{
959
- computed: "computed";
960
- estimated: "estimated";
961
- "provider-reported": "provider-reported";
962
- unavailable: "unavailable";
963
- }>;
964
- }, z.core.$strip>;
965
- reasoningTokens: z.ZodOptional<z.ZodObject<{
966
- value: z.ZodOptional<z.ZodInt>;
967
- provenance: z.ZodEnum<{
968
- computed: "computed";
969
- estimated: "estimated";
970
- "provider-reported": "provider-reported";
971
- unavailable: "unavailable";
972
- }>;
973
- }, z.core.$strip>>;
974
- cacheReadTokens: z.ZodOptional<z.ZodObject<{
975
- value: z.ZodOptional<z.ZodInt>;
976
- provenance: z.ZodEnum<{
977
- computed: "computed";
978
- estimated: "estimated";
979
- "provider-reported": "provider-reported";
980
- unavailable: "unavailable";
981
- }>;
982
- }, z.core.$strip>>;
983
- cacheWriteTokens: z.ZodOptional<z.ZodObject<{
984
- value: z.ZodOptional<z.ZodInt>;
985
- provenance: z.ZodEnum<{
986
- computed: "computed";
987
- estimated: "estimated";
988
- "provider-reported": "provider-reported";
989
- unavailable: "unavailable";
990
- }>;
991
- }, z.core.$strip>>;
992
- cost: z.ZodOptional<z.ZodObject<{
993
- value: z.ZodOptional<z.ZodNumber>;
994
- currency: z.ZodOptional<z.ZodString>;
995
- provenance: z.ZodEnum<{
996
- computed: "computed";
997
- estimated: "estimated";
998
- "provider-reported": "provider-reported";
999
- unavailable: "unavailable";
1000
- }>;
1001
- }, z.core.$strip>>;
1002
- }, z.core.$strip>>;
1003
- lastOperation: z.ZodOptional<z.ZodObject<{
1004
- operationId: z.ZodString;
1005
- kind: z.ZodEnum<{
1006
- compaction: "compaction";
1007
- "model-request": "model-request";
1008
- }>;
1009
- phase: z.ZodEnum<{
1010
- cancelled: "cancelled";
1011
- completed: "completed";
1012
- failed: "failed";
1013
- "first-output": "first-output";
1014
- started: "started";
1015
- }>;
1016
- step: z.ZodOptional<z.ZodInt>;
1017
- startedAt: z.ZodISODateTime;
1018
- firstOutputAt: z.ZodOptional<z.ZodISODateTime>;
1019
- finishedAt: z.ZodOptional<z.ZodISODateTime>;
1020
- }, z.core.$strip>>;
1021
- createdAt: z.ZodISODateTime;
1022
- updatedAt: z.ZodISODateTime;
1023
- }, z.core.$strip>>;
1024
- }, z.core.$strip>;
1025
- }, z.core.$strip>, z.ZodObject<{
1026
- outcome: z.ZodLiteral<"duplicate">;
1027
- input: z.ZodObject<{
1028
- schemaVersion: z.ZodLiteral<1>;
1029
- id: z.ZodString;
1030
- conversationId: z.ZodString;
1031
- runId: z.ZodOptional<z.ZodString>;
1032
- role: z.ZodEnum<{
1033
- assistant: "assistant";
1034
- summary: "summary";
1035
- system: "system";
1036
- tool: "tool";
1037
- user: "user";
1038
- }>;
1039
- status: z.ZodEnum<{
1040
- committed: "committed";
1041
- completed: "completed";
1042
- failed: "failed";
1043
- interrupted: "interrupted";
1044
- streaming: "streaming";
1045
- superseded: "superseded";
1046
- }>;
1047
- parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1048
- type: z.ZodLiteral<"text">;
1049
- text: z.ZodString;
1050
- provider: z.ZodOptional<z.ZodObject<{
1051
- schemaVersion: z.ZodInt;
1052
- provider: z.ZodString;
1053
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1054
- }, z.core.$strip>>;
1055
- }, z.core.$strip>, z.ZodObject<{
1056
- type: z.ZodLiteral<"reasoning">;
1057
- text: z.ZodString;
1058
- provider: z.ZodOptional<z.ZodObject<{
1059
- schemaVersion: z.ZodInt;
1060
- provider: z.ZodString;
1061
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1062
- }, z.core.$strip>>;
1063
- }, z.core.$strip>, z.ZodObject<{
1064
- type: z.ZodLiteral<"file">;
1065
- mediaType: z.ZodString;
1066
- reference: z.ZodString;
1067
- filename: z.ZodOptional<z.ZodString>;
1068
- }, z.core.$strip>, z.ZodObject<{
1069
- type: z.ZodLiteral<"source">;
1070
- sourceId: z.ZodString;
1071
- url: z.ZodOptional<z.ZodURL>;
1072
- title: z.ZodOptional<z.ZodString>;
1073
- }, z.core.$strip>, z.ZodObject<{
1074
- type: z.ZodLiteral<"tool-call">;
1075
- callId: z.ZodString;
1076
- toolName: z.ZodString;
1077
- input: z.ZodJSONSchema;
1078
- provider: z.ZodOptional<z.ZodObject<{
1079
- schemaVersion: z.ZodInt;
1080
- provider: z.ZodString;
1081
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1082
- }, z.core.$strip>>;
1083
- }, z.core.$strip>, z.ZodObject<{
1084
- type: z.ZodLiteral<"tool-result">;
1085
- callId: z.ZodString;
1086
- toolName: z.ZodString;
1087
- outcome: z.ZodEnum<{
1088
- error: "error";
1089
- interrupted: "interrupted";
1090
- success: "success";
1091
- }>;
1092
- output: z.ZodOptional<z.ZodJSONSchema>;
1093
- provider: z.ZodOptional<z.ZodObject<{
1094
- schemaVersion: z.ZodInt;
1095
- provider: z.ZodString;
1096
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1097
- }, z.core.$strip>>;
1098
- }, z.core.$strip>, z.ZodObject<{
1099
- type: z.ZodLiteral<"tool-approval-request">;
1100
- approvalId: z.ZodString;
1101
- callId: z.ZodString;
1102
- isAutomatic: z.ZodOptional<z.ZodBoolean>;
1103
- signature: z.ZodOptional<z.ZodString>;
1104
- }, z.core.$strip>, z.ZodObject<{
1105
- type: z.ZodLiteral<"tool-approval-response">;
1106
- approvalId: z.ZodString;
1107
- approved: z.ZodBoolean;
1108
- reason: z.ZodOptional<z.ZodString>;
1109
- }, z.core.$strip>, z.ZodObject<{
1110
- type: z.ZodLiteral<"provider">;
1111
- envelope: z.ZodObject<{
1112
- schemaVersion: z.ZodInt;
1113
- provider: z.ZodString;
1114
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1115
- }, z.core.$strip>;
1116
- }, z.core.$strip>, z.ZodObject<{
1117
- type: z.ZodLiteral<"control">;
1118
- reason: z.ZodEnum<{
1119
- "run-interrupted": "run-interrupted";
1120
- "stale-run": "stale-run";
1121
- }>;
1122
- }, z.core.$strip>], "type">>;
1123
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1124
- createdAt: z.ZodISODateTime;
1125
- updatedAt: z.ZodISODateTime;
1126
- }, z.core.$strip>;
1127
- inputMessageId: z.ZodString;
1128
- runId: z.ZodString;
1129
- assistantMessageId: z.ZodString;
1130
- run: z.ZodObject<{
1131
- schemaVersion: z.ZodLiteral<1>;
1132
- id: z.ZodString;
1133
- conversationId: z.ZodString;
1134
- inputMessageIds: z.ZodArray<z.ZodString>;
1135
- assistantMessageId: z.ZodString;
1136
- state: z.ZodEnum<{
1137
- abandoned: "abandoned";
1138
- cancelled: "cancelled";
1139
- completed: "completed";
1140
- failed: "failed";
1141
- interrupt_requested: "interrupt_requested";
1142
- interrupted: "interrupted";
1143
- queued: "queued";
1144
- running: "running";
1145
- superseded: "superseded";
1146
- }>;
1147
- revision: z.ZodInt;
1148
- queuePriority: z.ZodOptional<z.ZodEnum<{
1149
- "interrupt-next": "interrupt-next";
1150
- }>>;
1151
- executionSequence: z.ZodOptional<z.ZodInt>;
1152
- ownerId: z.ZodOptional<z.ZodString>;
1153
- fencingToken: z.ZodOptional<z.ZodInt>;
1154
- terminalReason: z.ZodOptional<z.ZodEnum<{
1155
- abandoned: "abandoned";
1156
- absorbed: "absorbed";
1157
- cancelled: "cancelled";
1158
- context_overflow: "context_overflow";
1159
- interrupted: "interrupted";
1160
- output_rejected: "output_rejected";
1161
- policy_stop: "policy_stop";
1162
- provider_failure: "provider_failure";
1163
- provider_stop: "provider_stop";
1164
- runtime_failure: "runtime_failure";
1165
- shutdown: "shutdown";
1166
- storage_conflict: "storage_conflict";
1167
- success: "success";
1168
- superseded: "superseded";
1169
- timeout: "timeout";
1170
- }>>;
1171
- terminalPolicyName: z.ZodOptional<z.ZodString>;
1172
- absorbedIntoRunId: z.ZodOptional<z.ZodString>;
1173
- usage: z.ZodOptional<z.ZodObject<{
1174
- inputTokens: z.ZodObject<{
1175
- value: z.ZodOptional<z.ZodInt>;
1176
- provenance: z.ZodEnum<{
1177
- computed: "computed";
1178
- estimated: "estimated";
1179
- "provider-reported": "provider-reported";
1180
- unavailable: "unavailable";
1181
- }>;
1182
- }, z.core.$strip>;
1183
- outputTokens: z.ZodObject<{
1184
- value: z.ZodOptional<z.ZodInt>;
1185
- provenance: z.ZodEnum<{
1186
- computed: "computed";
1187
- estimated: "estimated";
1188
- "provider-reported": "provider-reported";
1189
- unavailable: "unavailable";
1190
- }>;
1191
- }, z.core.$strip>;
1192
- reasoningTokens: z.ZodOptional<z.ZodObject<{
1193
- value: z.ZodOptional<z.ZodInt>;
1194
- provenance: z.ZodEnum<{
1195
- computed: "computed";
1196
- estimated: "estimated";
1197
- "provider-reported": "provider-reported";
1198
- unavailable: "unavailable";
1199
- }>;
1200
- }, z.core.$strip>>;
1201
- cacheReadTokens: z.ZodOptional<z.ZodObject<{
1202
- value: z.ZodOptional<z.ZodInt>;
1203
- provenance: z.ZodEnum<{
1204
- computed: "computed";
1205
- estimated: "estimated";
1206
- "provider-reported": "provider-reported";
1207
- unavailable: "unavailable";
1208
- }>;
1209
- }, z.core.$strip>>;
1210
- cacheWriteTokens: z.ZodOptional<z.ZodObject<{
1211
- value: z.ZodOptional<z.ZodInt>;
1212
- provenance: z.ZodEnum<{
1213
- computed: "computed";
1214
- estimated: "estimated";
1215
- "provider-reported": "provider-reported";
1216
- unavailable: "unavailable";
1217
- }>;
1218
- }, z.core.$strip>>;
1219
- cost: z.ZodOptional<z.ZodObject<{
1220
- value: z.ZodOptional<z.ZodNumber>;
1221
- currency: z.ZodOptional<z.ZodString>;
1222
- provenance: z.ZodEnum<{
1223
- computed: "computed";
1224
- estimated: "estimated";
1225
- "provider-reported": "provider-reported";
1226
- unavailable: "unavailable";
1227
- }>;
1228
- }, z.core.$strip>>;
1229
- }, z.core.$strip>>;
1230
- lastOperation: z.ZodOptional<z.ZodObject<{
1231
- operationId: z.ZodString;
1232
- kind: z.ZodEnum<{
1233
- compaction: "compaction";
1234
- "model-request": "model-request";
1235
- }>;
1236
- phase: z.ZodEnum<{
1237
- cancelled: "cancelled";
1238
- completed: "completed";
1239
- failed: "failed";
1240
- "first-output": "first-output";
1241
- started: "started";
1242
- }>;
1243
- step: z.ZodOptional<z.ZodInt>;
1244
- startedAt: z.ZodISODateTime;
1245
- firstOutputAt: z.ZodOptional<z.ZodISODateTime>;
1246
- finishedAt: z.ZodOptional<z.ZodISODateTime>;
1247
- }, z.core.$strip>>;
1248
- createdAt: z.ZodISODateTime;
1249
- updatedAt: z.ZodISODateTime;
1250
- }, z.core.$strip>;
1251
- assistant: z.ZodOptional<z.ZodObject<{
1252
- schemaVersion: z.ZodLiteral<1>;
1253
- id: z.ZodString;
1254
- conversationId: z.ZodString;
1255
- runId: z.ZodOptional<z.ZodString>;
1256
- role: z.ZodEnum<{
1257
- assistant: "assistant";
1258
- summary: "summary";
1259
- system: "system";
1260
- tool: "tool";
1261
- user: "user";
1262
- }>;
1263
- status: z.ZodEnum<{
1264
- committed: "committed";
1265
- completed: "completed";
1266
- failed: "failed";
1267
- interrupted: "interrupted";
1268
- streaming: "streaming";
1269
- superseded: "superseded";
1270
- }>;
1271
- parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1272
- type: z.ZodLiteral<"text">;
1273
- text: z.ZodString;
1274
- provider: z.ZodOptional<z.ZodObject<{
1275
- schemaVersion: z.ZodInt;
1276
- provider: z.ZodString;
1277
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1278
- }, z.core.$strip>>;
1279
- }, z.core.$strip>, z.ZodObject<{
1280
- type: z.ZodLiteral<"reasoning">;
1281
- text: z.ZodString;
1282
- provider: z.ZodOptional<z.ZodObject<{
1283
- schemaVersion: z.ZodInt;
1284
- provider: z.ZodString;
1285
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1286
- }, z.core.$strip>>;
1287
- }, z.core.$strip>, z.ZodObject<{
1288
- type: z.ZodLiteral<"file">;
1289
- mediaType: z.ZodString;
1290
- reference: z.ZodString;
1291
- filename: z.ZodOptional<z.ZodString>;
1292
- }, z.core.$strip>, z.ZodObject<{
1293
- type: z.ZodLiteral<"source">;
1294
- sourceId: z.ZodString;
1295
- url: z.ZodOptional<z.ZodURL>;
1296
- title: z.ZodOptional<z.ZodString>;
1297
- }, z.core.$strip>, z.ZodObject<{
1298
- type: z.ZodLiteral<"tool-call">;
1299
- callId: z.ZodString;
1300
- toolName: z.ZodString;
1301
- input: z.ZodJSONSchema;
1302
- provider: z.ZodOptional<z.ZodObject<{
1303
- schemaVersion: z.ZodInt;
1304
- provider: z.ZodString;
1305
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1306
- }, z.core.$strip>>;
1307
- }, z.core.$strip>, z.ZodObject<{
1308
- type: z.ZodLiteral<"tool-result">;
1309
- callId: z.ZodString;
1310
- toolName: z.ZodString;
1311
- outcome: z.ZodEnum<{
1312
- error: "error";
1313
- interrupted: "interrupted";
1314
- success: "success";
1315
- }>;
1316
- output: z.ZodOptional<z.ZodJSONSchema>;
1317
- provider: z.ZodOptional<z.ZodObject<{
1318
- schemaVersion: z.ZodInt;
1319
- provider: z.ZodString;
1320
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1321
- }, z.core.$strip>>;
1322
- }, z.core.$strip>, z.ZodObject<{
1323
- type: z.ZodLiteral<"tool-approval-request">;
1324
- approvalId: z.ZodString;
1325
- callId: z.ZodString;
1326
- isAutomatic: z.ZodOptional<z.ZodBoolean>;
1327
- signature: z.ZodOptional<z.ZodString>;
1328
- }, z.core.$strip>, z.ZodObject<{
1329
- type: z.ZodLiteral<"tool-approval-response">;
1330
- approvalId: z.ZodString;
1331
- approved: z.ZodBoolean;
1332
- reason: z.ZodOptional<z.ZodString>;
1333
- }, z.core.$strip>, z.ZodObject<{
1334
- type: z.ZodLiteral<"provider">;
1335
- envelope: z.ZodObject<{
1336
- schemaVersion: z.ZodInt;
1337
- provider: z.ZodString;
1338
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1339
- }, z.core.$strip>;
1340
- }, z.core.$strip>, z.ZodObject<{
1341
- type: z.ZodLiteral<"control">;
1342
- reason: z.ZodEnum<{
1343
- "run-interrupted": "run-interrupted";
1344
- "stale-run": "stale-run";
1345
- }>;
1346
- }, z.core.$strip>], "type">>;
1347
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1348
- createdAt: z.ZodISODateTime;
1349
- updatedAt: z.ZodISODateTime;
1350
- }, z.core.$strip>>;
1351
- snapshot: z.ZodObject<{
1352
- schemaVersion: z.ZodLiteral<1>;
1353
- conversationId: z.ZodString;
1354
- version: z.ZodInt;
1355
- messages: z.ZodArray<z.ZodObject<{
1356
- schemaVersion: z.ZodLiteral<1>;
1357
- id: z.ZodString;
1358
- conversationId: z.ZodString;
1359
- runId: z.ZodOptional<z.ZodString>;
1360
- role: z.ZodEnum<{
1361
- assistant: "assistant";
1362
- summary: "summary";
1363
- system: "system";
1364
- tool: "tool";
1365
- user: "user";
1366
- }>;
1367
- status: z.ZodEnum<{
1368
- committed: "committed";
1369
- completed: "completed";
1370
- failed: "failed";
1371
- interrupted: "interrupted";
1372
- streaming: "streaming";
1373
- superseded: "superseded";
1374
- }>;
1375
- parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1376
- type: z.ZodLiteral<"text">;
1377
- text: z.ZodString;
1378
- provider: z.ZodOptional<z.ZodObject<{
1379
- schemaVersion: z.ZodInt;
1380
- provider: z.ZodString;
1381
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1382
- }, z.core.$strip>>;
1383
- }, z.core.$strip>, z.ZodObject<{
1384
- type: z.ZodLiteral<"reasoning">;
1385
- text: z.ZodString;
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<"file">;
1393
- mediaType: z.ZodString;
1394
- reference: z.ZodString;
1395
- filename: z.ZodOptional<z.ZodString>;
1396
- }, z.core.$strip>, z.ZodObject<{
1397
- type: z.ZodLiteral<"source">;
1398
- sourceId: z.ZodString;
1399
- url: z.ZodOptional<z.ZodURL>;
1400
- title: z.ZodOptional<z.ZodString>;
1401
- }, z.core.$strip>, z.ZodObject<{
1402
- type: z.ZodLiteral<"tool-call">;
1403
- callId: z.ZodString;
1404
- toolName: z.ZodString;
1405
- input: z.ZodJSONSchema;
1406
- provider: z.ZodOptional<z.ZodObject<{
1407
- schemaVersion: z.ZodInt;
1408
- provider: z.ZodString;
1409
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1410
- }, z.core.$strip>>;
1411
- }, z.core.$strip>, z.ZodObject<{
1412
- type: z.ZodLiteral<"tool-result">;
1413
- callId: z.ZodString;
1414
- toolName: z.ZodString;
1415
- outcome: z.ZodEnum<{
1416
- error: "error";
1417
- interrupted: "interrupted";
1418
- success: "success";
1419
- }>;
1420
- output: z.ZodOptional<z.ZodJSONSchema>;
1421
- provider: z.ZodOptional<z.ZodObject<{
1422
- schemaVersion: z.ZodInt;
1423
- provider: z.ZodString;
1424
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1425
- }, z.core.$strip>>;
1426
- }, z.core.$strip>, z.ZodObject<{
1427
- type: z.ZodLiteral<"tool-approval-request">;
1428
- approvalId: z.ZodString;
1429
- callId: z.ZodString;
1430
- isAutomatic: z.ZodOptional<z.ZodBoolean>;
1431
- signature: z.ZodOptional<z.ZodString>;
1432
- }, z.core.$strip>, z.ZodObject<{
1433
- type: z.ZodLiteral<"tool-approval-response">;
1434
- approvalId: z.ZodString;
1435
- approved: z.ZodBoolean;
1436
- reason: z.ZodOptional<z.ZodString>;
1437
- }, z.core.$strip>, z.ZodObject<{
1438
- type: z.ZodLiteral<"provider">;
1439
- envelope: z.ZodObject<{
1440
- schemaVersion: z.ZodInt;
1441
- provider: z.ZodString;
1442
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1443
- }, z.core.$strip>;
1444
- }, z.core.$strip>, z.ZodObject<{
1445
- type: z.ZodLiteral<"control">;
1446
- reason: z.ZodEnum<{
1447
- "run-interrupted": "run-interrupted";
1448
- "stale-run": "stale-run";
1449
- }>;
1450
- }, z.core.$strip>], "type">>;
1451
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1452
- createdAt: z.ZodISODateTime;
1453
- updatedAt: z.ZodISODateTime;
1454
- }, z.core.$strip>>;
1455
- runs: z.ZodArray<z.ZodObject<{
1456
- schemaVersion: z.ZodLiteral<1>;
1457
- id: z.ZodString;
1458
- conversationId: z.ZodString;
1459
- inputMessageIds: z.ZodArray<z.ZodString>;
1460
- assistantMessageId: z.ZodString;
1461
- state: z.ZodEnum<{
1462
- abandoned: "abandoned";
1463
- cancelled: "cancelled";
1464
- completed: "completed";
1465
- failed: "failed";
1466
- interrupt_requested: "interrupt_requested";
1467
- interrupted: "interrupted";
1468
- queued: "queued";
1469
- running: "running";
1470
- superseded: "superseded";
1471
- }>;
1472
- revision: z.ZodInt;
1473
- queuePriority: z.ZodOptional<z.ZodEnum<{
1474
- "interrupt-next": "interrupt-next";
1475
- }>>;
1476
- executionSequence: z.ZodOptional<z.ZodInt>;
1477
- ownerId: z.ZodOptional<z.ZodString>;
1478
- fencingToken: z.ZodOptional<z.ZodInt>;
1479
- terminalReason: z.ZodOptional<z.ZodEnum<{
1480
- abandoned: "abandoned";
1481
- absorbed: "absorbed";
1482
- cancelled: "cancelled";
1483
- context_overflow: "context_overflow";
1484
- interrupted: "interrupted";
1485
- output_rejected: "output_rejected";
1486
- policy_stop: "policy_stop";
1487
- provider_failure: "provider_failure";
1488
- provider_stop: "provider_stop";
1489
- runtime_failure: "runtime_failure";
1490
- shutdown: "shutdown";
1491
- storage_conflict: "storage_conflict";
1492
- success: "success";
1493
- superseded: "superseded";
1494
- timeout: "timeout";
1495
- }>>;
1496
- terminalPolicyName: z.ZodOptional<z.ZodString>;
1497
- absorbedIntoRunId: z.ZodOptional<z.ZodString>;
1498
- usage: z.ZodOptional<z.ZodObject<{
1499
- inputTokens: z.ZodObject<{
1500
- value: z.ZodOptional<z.ZodInt>;
1501
- provenance: z.ZodEnum<{
1502
- computed: "computed";
1503
- estimated: "estimated";
1504
- "provider-reported": "provider-reported";
1505
- unavailable: "unavailable";
1506
- }>;
1507
- }, z.core.$strip>;
1508
- outputTokens: z.ZodObject<{
1509
- value: z.ZodOptional<z.ZodInt>;
1510
- provenance: z.ZodEnum<{
1511
- computed: "computed";
1512
- estimated: "estimated";
1513
- "provider-reported": "provider-reported";
1514
- unavailable: "unavailable";
1515
- }>;
1516
- }, z.core.$strip>;
1517
- reasoningTokens: z.ZodOptional<z.ZodObject<{
1518
- value: z.ZodOptional<z.ZodInt>;
1519
- provenance: z.ZodEnum<{
1520
- computed: "computed";
1521
- estimated: "estimated";
1522
- "provider-reported": "provider-reported";
1523
- unavailable: "unavailable";
1524
- }>;
1525
- }, z.core.$strip>>;
1526
- cacheReadTokens: z.ZodOptional<z.ZodObject<{
1527
- value: z.ZodOptional<z.ZodInt>;
1528
- provenance: z.ZodEnum<{
1529
- computed: "computed";
1530
- estimated: "estimated";
1531
- "provider-reported": "provider-reported";
1532
- unavailable: "unavailable";
1533
- }>;
1534
- }, z.core.$strip>>;
1535
- cacheWriteTokens: z.ZodOptional<z.ZodObject<{
1536
- value: z.ZodOptional<z.ZodInt>;
1537
- provenance: z.ZodEnum<{
1538
- computed: "computed";
1539
- estimated: "estimated";
1540
- "provider-reported": "provider-reported";
1541
- unavailable: "unavailable";
1542
- }>;
1543
- }, z.core.$strip>>;
1544
- cost: z.ZodOptional<z.ZodObject<{
1545
- value: z.ZodOptional<z.ZodNumber>;
1546
- currency: z.ZodOptional<z.ZodString>;
1547
- provenance: z.ZodEnum<{
1548
- computed: "computed";
1549
- estimated: "estimated";
1550
- "provider-reported": "provider-reported";
1551
- unavailable: "unavailable";
1552
- }>;
1553
- }, z.core.$strip>>;
1554
- }, z.core.$strip>>;
1555
- lastOperation: z.ZodOptional<z.ZodObject<{
1556
- operationId: z.ZodString;
1557
- kind: z.ZodEnum<{
1558
- compaction: "compaction";
1559
- "model-request": "model-request";
1560
- }>;
1561
- phase: z.ZodEnum<{
1562
- cancelled: "cancelled";
1563
- completed: "completed";
1564
- failed: "failed";
1565
- "first-output": "first-output";
1566
- started: "started";
1567
- }>;
1568
- step: z.ZodOptional<z.ZodInt>;
1569
- startedAt: z.ZodISODateTime;
1570
- firstOutputAt: z.ZodOptional<z.ZodISODateTime>;
1571
- finishedAt: z.ZodOptional<z.ZodISODateTime>;
1572
- }, z.core.$strip>>;
1573
- createdAt: z.ZodISODateTime;
1574
- updatedAt: z.ZodISODateTime;
1575
- }, z.core.$strip>>;
1576
- }, z.core.$strip>;
1577
- }, z.core.$strip>, z.ZodObject<{
1578
- outcome: z.ZodLiteral<"conflict">;
1579
- actualVersion: z.ZodInt;
1580
- }, z.core.$strip>, z.ZodObject<{
1581
- outcome: z.ZodLiteral<"not_found">;
1582
- }, z.core.$strip>], "outcome">;
1583
- export type AgentStoreMutationResult = z.infer<typeof AgentStoreMutationResultSchema>;
1584
- /**
1585
- * One run, read without reading the conversation it belongs to.
1586
- *
1587
- * `loadSnapshot` was the only way to resolve a `runId`, and most of the runtime
1588
- * only ever wanted the run: the fencing check that runs before **every tool
1589
- * call** loaded every message in the conversation to compare two numbers. A
1590
- * twenty-tool run in a five-thousand-message conversation read a hundred
1591
- * thousand messages to learn nothing about any of them.
1592
- *
1593
- * `assistant` is the retained terminal message, so it is present exactly when
1594
- * the run is terminal — which is when anything asks for it.
1595
- */
1596
- export declare const AgentRunViewSchema: z.ZodObject<{
1597
- snapshotVersion: z.ZodInt;
1598
- run: z.ZodObject<{
1599
- schemaVersion: z.ZodLiteral<1>;
1600
- id: z.ZodString;
1601
- conversationId: z.ZodString;
1602
- inputMessageIds: z.ZodArray<z.ZodString>;
1603
- assistantMessageId: z.ZodString;
1604
- state: z.ZodEnum<{
1605
- abandoned: "abandoned";
1606
- cancelled: "cancelled";
1607
- completed: "completed";
1608
- failed: "failed";
1609
- interrupt_requested: "interrupt_requested";
1610
- interrupted: "interrupted";
1611
- queued: "queued";
1612
- running: "running";
1613
- superseded: "superseded";
1614
- }>;
1615
- revision: z.ZodInt;
1616
- queuePriority: z.ZodOptional<z.ZodEnum<{
1617
- "interrupt-next": "interrupt-next";
1618
- }>>;
1619
- executionSequence: z.ZodOptional<z.ZodInt>;
1620
- ownerId: z.ZodOptional<z.ZodString>;
1621
- fencingToken: z.ZodOptional<z.ZodInt>;
1622
- terminalReason: z.ZodOptional<z.ZodEnum<{
1623
- abandoned: "abandoned";
1624
- absorbed: "absorbed";
1625
- cancelled: "cancelled";
1626
- context_overflow: "context_overflow";
1627
- interrupted: "interrupted";
1628
- output_rejected: "output_rejected";
1629
- policy_stop: "policy_stop";
1630
- provider_failure: "provider_failure";
1631
- provider_stop: "provider_stop";
1632
- runtime_failure: "runtime_failure";
1633
- shutdown: "shutdown";
1634
- storage_conflict: "storage_conflict";
1635
- success: "success";
1636
- superseded: "superseded";
1637
- timeout: "timeout";
1638
- }>>;
1639
- terminalPolicyName: z.ZodOptional<z.ZodString>;
1640
- absorbedIntoRunId: z.ZodOptional<z.ZodString>;
1641
- usage: z.ZodOptional<z.ZodObject<{
1642
- inputTokens: z.ZodObject<{
1643
- value: z.ZodOptional<z.ZodInt>;
1644
- provenance: z.ZodEnum<{
1645
- computed: "computed";
1646
- estimated: "estimated";
1647
- "provider-reported": "provider-reported";
1648
- unavailable: "unavailable";
1649
- }>;
1650
- }, z.core.$strip>;
1651
- outputTokens: z.ZodObject<{
1652
- value: z.ZodOptional<z.ZodInt>;
1653
- provenance: z.ZodEnum<{
1654
- computed: "computed";
1655
- estimated: "estimated";
1656
- "provider-reported": "provider-reported";
1657
- unavailable: "unavailable";
1658
- }>;
1659
- }, z.core.$strip>;
1660
- reasoningTokens: z.ZodOptional<z.ZodObject<{
1661
- value: z.ZodOptional<z.ZodInt>;
1662
- provenance: z.ZodEnum<{
1663
- computed: "computed";
1664
- estimated: "estimated";
1665
- "provider-reported": "provider-reported";
1666
- unavailable: "unavailable";
1667
- }>;
1668
- }, z.core.$strip>>;
1669
- cacheReadTokens: z.ZodOptional<z.ZodObject<{
1670
- value: z.ZodOptional<z.ZodInt>;
1671
- provenance: z.ZodEnum<{
1672
- computed: "computed";
1673
- estimated: "estimated";
1674
- "provider-reported": "provider-reported";
1675
- unavailable: "unavailable";
1676
- }>;
1677
- }, z.core.$strip>>;
1678
- cacheWriteTokens: z.ZodOptional<z.ZodObject<{
1679
- value: z.ZodOptional<z.ZodInt>;
1680
- provenance: z.ZodEnum<{
1681
- computed: "computed";
1682
- estimated: "estimated";
1683
- "provider-reported": "provider-reported";
1684
- unavailable: "unavailable";
1685
- }>;
1686
- }, z.core.$strip>>;
1687
- cost: z.ZodOptional<z.ZodObject<{
1688
- value: z.ZodOptional<z.ZodNumber>;
1689
- currency: z.ZodOptional<z.ZodString>;
1690
- provenance: z.ZodEnum<{
1691
- computed: "computed";
1692
- estimated: "estimated";
1693
- "provider-reported": "provider-reported";
1694
- unavailable: "unavailable";
1695
- }>;
1696
- }, z.core.$strip>>;
1697
- }, z.core.$strip>>;
1698
- lastOperation: z.ZodOptional<z.ZodObject<{
1699
- operationId: z.ZodString;
1700
- kind: z.ZodEnum<{
1701
- compaction: "compaction";
1702
- "model-request": "model-request";
1703
- }>;
1704
- phase: z.ZodEnum<{
1705
- cancelled: "cancelled";
1706
- completed: "completed";
1707
- failed: "failed";
1708
- "first-output": "first-output";
1709
- started: "started";
1710
- }>;
1711
- step: z.ZodOptional<z.ZodInt>;
1712
- startedAt: z.ZodISODateTime;
1713
- firstOutputAt: z.ZodOptional<z.ZodISODateTime>;
1714
- finishedAt: z.ZodOptional<z.ZodISODateTime>;
1715
- }, z.core.$strip>>;
1716
- createdAt: z.ZodISODateTime;
1717
- updatedAt: z.ZodISODateTime;
1718
- }, z.core.$strip>;
1719
- assistant: z.ZodOptional<z.ZodObject<{
1720
- schemaVersion: z.ZodLiteral<1>;
1721
- id: z.ZodString;
1722
- conversationId: z.ZodString;
1723
- runId: z.ZodOptional<z.ZodString>;
1724
- role: z.ZodEnum<{
1725
- assistant: "assistant";
1726
- summary: "summary";
1727
- system: "system";
1728
- tool: "tool";
1729
- user: "user";
1730
- }>;
1731
- status: z.ZodEnum<{
1732
- committed: "committed";
1733
- completed: "completed";
1734
- failed: "failed";
1735
- interrupted: "interrupted";
1736
- streaming: "streaming";
1737
- superseded: "superseded";
1738
- }>;
1739
- parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1740
- type: z.ZodLiteral<"text">;
1741
- text: z.ZodString;
1742
- provider: z.ZodOptional<z.ZodObject<{
1743
- schemaVersion: z.ZodInt;
1744
- provider: z.ZodString;
1745
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1746
- }, z.core.$strip>>;
1747
- }, z.core.$strip>, z.ZodObject<{
1748
- type: z.ZodLiteral<"reasoning">;
1749
- text: z.ZodString;
1750
- provider: z.ZodOptional<z.ZodObject<{
1751
- schemaVersion: z.ZodInt;
1752
- provider: z.ZodString;
1753
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1754
- }, z.core.$strip>>;
1755
- }, z.core.$strip>, z.ZodObject<{
1756
- type: z.ZodLiteral<"file">;
1757
- mediaType: z.ZodString;
1758
- reference: z.ZodString;
1759
- filename: z.ZodOptional<z.ZodString>;
1760
- }, z.core.$strip>, z.ZodObject<{
1761
- type: z.ZodLiteral<"source">;
1762
- sourceId: z.ZodString;
1763
- url: z.ZodOptional<z.ZodURL>;
1764
- title: z.ZodOptional<z.ZodString>;
1765
- }, z.core.$strip>, z.ZodObject<{
1766
- type: z.ZodLiteral<"tool-call">;
1767
- callId: z.ZodString;
1768
- toolName: z.ZodString;
1769
- input: 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-result">;
1777
- callId: z.ZodString;
1778
- toolName: z.ZodString;
1779
- outcome: z.ZodEnum<{
1780
- error: "error";
1781
- interrupted: "interrupted";
1782
- success: "success";
1783
- }>;
1784
- output: z.ZodOptional<z.ZodJSONSchema>;
1785
- provider: z.ZodOptional<z.ZodObject<{
1786
- schemaVersion: z.ZodInt;
1787
- provider: z.ZodString;
1788
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1789
- }, z.core.$strip>>;
1790
- }, z.core.$strip>, z.ZodObject<{
1791
- type: z.ZodLiteral<"tool-approval-request">;
1792
- approvalId: z.ZodString;
1793
- callId: z.ZodString;
1794
- isAutomatic: z.ZodOptional<z.ZodBoolean>;
1795
- signature: z.ZodOptional<z.ZodString>;
1796
- }, z.core.$strip>, z.ZodObject<{
1797
- type: z.ZodLiteral<"tool-approval-response">;
1798
- approvalId: z.ZodString;
1799
- approved: z.ZodBoolean;
1800
- reason: z.ZodOptional<z.ZodString>;
1801
- }, z.core.$strip>, z.ZodObject<{
1802
- type: z.ZodLiteral<"provider">;
1803
- envelope: z.ZodObject<{
1804
- schemaVersion: z.ZodInt;
1805
- provider: z.ZodString;
1806
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1807
- }, z.core.$strip>;
1808
- }, z.core.$strip>, z.ZodObject<{
1809
- type: z.ZodLiteral<"control">;
1810
- reason: z.ZodEnum<{
1811
- "run-interrupted": "run-interrupted";
1812
- "stale-run": "stale-run";
1813
- }>;
1814
- }, z.core.$strip>], "type">>;
1815
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1816
- createdAt: z.ZodISODateTime;
1817
- updatedAt: z.ZodISODateTime;
1818
- }, z.core.$strip>>;
1819
- }, z.core.$strip>;
1820
- export type AgentRunView = z.infer<typeof AgentRunViewSchema>;
1821
- export declare const AcceptInputAndAssignRunSchema: z.ZodObject<{
1822
- idempotencyKey: z.ZodString;
1823
- expectedVersion: z.ZodOptional<z.ZodInt>;
1824
- input: z.ZodObject<{
1825
- schemaVersion: z.ZodLiteral<1>;
1826
- id: z.ZodString;
1827
- conversationId: z.ZodString;
1828
- runId: z.ZodOptional<z.ZodString>;
1829
- role: z.ZodEnum<{
1830
- assistant: "assistant";
1831
- summary: "summary";
1832
- system: "system";
1833
- tool: "tool";
1834
- user: "user";
1835
- }>;
1836
- status: z.ZodEnum<{
1837
- committed: "committed";
1838
- completed: "completed";
1839
- failed: "failed";
1840
- interrupted: "interrupted";
1841
- streaming: "streaming";
1842
- superseded: "superseded";
1843
- }>;
1844
- parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1845
- type: z.ZodLiteral<"text">;
1846
- text: z.ZodString;
1847
- provider: z.ZodOptional<z.ZodObject<{
1848
- schemaVersion: z.ZodInt;
1849
- provider: z.ZodString;
1850
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1851
- }, z.core.$strip>>;
1852
- }, z.core.$strip>, z.ZodObject<{
1853
- type: z.ZodLiteral<"reasoning">;
1854
- text: z.ZodString;
1855
- provider: z.ZodOptional<z.ZodObject<{
1856
- schemaVersion: z.ZodInt;
1857
- provider: z.ZodString;
1858
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1859
- }, z.core.$strip>>;
1860
- }, z.core.$strip>, z.ZodObject<{
1861
- type: z.ZodLiteral<"file">;
1862
- mediaType: z.ZodString;
1863
- reference: z.ZodString;
1864
- filename: z.ZodOptional<z.ZodString>;
1865
- }, z.core.$strip>, z.ZodObject<{
1866
- type: z.ZodLiteral<"source">;
1867
- sourceId: z.ZodString;
1868
- url: z.ZodOptional<z.ZodURL>;
1869
- title: z.ZodOptional<z.ZodString>;
1870
- }, z.core.$strip>, z.ZodObject<{
1871
- type: z.ZodLiteral<"tool-call">;
1872
- callId: z.ZodString;
1873
- toolName: z.ZodString;
1874
- input: z.ZodJSONSchema;
1875
- provider: z.ZodOptional<z.ZodObject<{
1876
- schemaVersion: z.ZodInt;
1877
- provider: z.ZodString;
1878
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1879
- }, z.core.$strip>>;
1880
- }, z.core.$strip>, z.ZodObject<{
1881
- type: z.ZodLiteral<"tool-result">;
1882
- callId: z.ZodString;
1883
- toolName: z.ZodString;
1884
- outcome: z.ZodEnum<{
1885
- error: "error";
1886
- interrupted: "interrupted";
1887
- success: "success";
1888
- }>;
1889
- output: z.ZodOptional<z.ZodJSONSchema>;
1890
- provider: z.ZodOptional<z.ZodObject<{
1891
- schemaVersion: z.ZodInt;
1892
- provider: z.ZodString;
1893
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1894
- }, z.core.$strip>>;
1895
- }, z.core.$strip>, z.ZodObject<{
1896
- type: z.ZodLiteral<"tool-approval-request">;
1897
- approvalId: z.ZodString;
1898
- callId: z.ZodString;
1899
- isAutomatic: z.ZodOptional<z.ZodBoolean>;
1900
- signature: z.ZodOptional<z.ZodString>;
1901
- }, z.core.$strip>, z.ZodObject<{
1902
- type: z.ZodLiteral<"tool-approval-response">;
1903
- approvalId: z.ZodString;
1904
- approved: z.ZodBoolean;
1905
- reason: z.ZodOptional<z.ZodString>;
1906
- }, z.core.$strip>, z.ZodObject<{
1907
- type: z.ZodLiteral<"provider">;
1908
- envelope: z.ZodObject<{
1909
- schemaVersion: z.ZodInt;
1910
- provider: z.ZodString;
1911
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1912
- }, z.core.$strip>;
1913
- }, z.core.$strip>, z.ZodObject<{
1914
- type: z.ZodLiteral<"control">;
1915
- reason: z.ZodEnum<{
1916
- "run-interrupted": "run-interrupted";
1917
- "stale-run": "stale-run";
1918
- }>;
1919
- }, z.core.$strip>], "type">>;
1920
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1921
- createdAt: z.ZodISODateTime;
1922
- updatedAt: z.ZodISODateTime;
1923
- }, z.core.$strip>;
1924
- run: z.ZodObject<{
1925
- schemaVersion: z.ZodLiteral<1>;
1926
- id: z.ZodString;
1927
- conversationId: z.ZodString;
1928
- inputMessageIds: z.ZodArray<z.ZodString>;
1929
- assistantMessageId: z.ZodString;
1930
- state: z.ZodEnum<{
1931
- abandoned: "abandoned";
1932
- cancelled: "cancelled";
1933
- completed: "completed";
1934
- failed: "failed";
1935
- interrupt_requested: "interrupt_requested";
1936
- interrupted: "interrupted";
1937
- queued: "queued";
1938
- running: "running";
1939
- superseded: "superseded";
1940
- }>;
1941
- revision: z.ZodInt;
1942
- queuePriority: z.ZodOptional<z.ZodEnum<{
1943
- "interrupt-next": "interrupt-next";
1944
- }>>;
1945
- executionSequence: z.ZodOptional<z.ZodInt>;
1946
- ownerId: z.ZodOptional<z.ZodString>;
1947
- fencingToken: z.ZodOptional<z.ZodInt>;
1948
- terminalReason: z.ZodOptional<z.ZodEnum<{
1949
- abandoned: "abandoned";
1950
- absorbed: "absorbed";
1951
- cancelled: "cancelled";
1952
- context_overflow: "context_overflow";
1953
- interrupted: "interrupted";
1954
- output_rejected: "output_rejected";
1955
- policy_stop: "policy_stop";
1956
- provider_failure: "provider_failure";
1957
- provider_stop: "provider_stop";
1958
- runtime_failure: "runtime_failure";
1959
- shutdown: "shutdown";
1960
- storage_conflict: "storage_conflict";
1961
- success: "success";
1962
- superseded: "superseded";
1963
- timeout: "timeout";
1964
- }>>;
1965
- terminalPolicyName: z.ZodOptional<z.ZodString>;
1966
- absorbedIntoRunId: z.ZodOptional<z.ZodString>;
1967
- usage: z.ZodOptional<z.ZodObject<{
1968
- inputTokens: z.ZodObject<{
1969
- value: z.ZodOptional<z.ZodInt>;
1970
- provenance: z.ZodEnum<{
1971
- computed: "computed";
1972
- estimated: "estimated";
1973
- "provider-reported": "provider-reported";
1974
- unavailable: "unavailable";
1975
- }>;
1976
- }, z.core.$strip>;
1977
- outputTokens: z.ZodObject<{
1978
- value: z.ZodOptional<z.ZodInt>;
1979
- provenance: z.ZodEnum<{
1980
- computed: "computed";
1981
- estimated: "estimated";
1982
- "provider-reported": "provider-reported";
1983
- unavailable: "unavailable";
1984
- }>;
1985
- }, z.core.$strip>;
1986
- reasoningTokens: z.ZodOptional<z.ZodObject<{
1987
- value: z.ZodOptional<z.ZodInt>;
1988
- provenance: z.ZodEnum<{
1989
- computed: "computed";
1990
- estimated: "estimated";
1991
- "provider-reported": "provider-reported";
1992
- unavailable: "unavailable";
1993
- }>;
1994
- }, z.core.$strip>>;
1995
- cacheReadTokens: z.ZodOptional<z.ZodObject<{
1996
- value: z.ZodOptional<z.ZodInt>;
1997
- provenance: z.ZodEnum<{
1998
- computed: "computed";
1999
- estimated: "estimated";
2000
- "provider-reported": "provider-reported";
2001
- unavailable: "unavailable";
2002
- }>;
2003
- }, z.core.$strip>>;
2004
- cacheWriteTokens: z.ZodOptional<z.ZodObject<{
2005
- value: z.ZodOptional<z.ZodInt>;
2006
- provenance: z.ZodEnum<{
2007
- computed: "computed";
2008
- estimated: "estimated";
2009
- "provider-reported": "provider-reported";
2010
- unavailable: "unavailable";
2011
- }>;
2012
- }, z.core.$strip>>;
2013
- cost: z.ZodOptional<z.ZodObject<{
2014
- value: z.ZodOptional<z.ZodNumber>;
2015
- currency: z.ZodOptional<z.ZodString>;
2016
- provenance: z.ZodEnum<{
2017
- computed: "computed";
2018
- estimated: "estimated";
2019
- "provider-reported": "provider-reported";
2020
- unavailable: "unavailable";
2021
- }>;
2022
- }, z.core.$strip>>;
2023
- }, z.core.$strip>>;
2024
- lastOperation: z.ZodOptional<z.ZodObject<{
2025
- operationId: z.ZodString;
2026
- kind: z.ZodEnum<{
2027
- compaction: "compaction";
2028
- "model-request": "model-request";
2029
- }>;
2030
- phase: z.ZodEnum<{
2031
- cancelled: "cancelled";
2032
- completed: "completed";
2033
- failed: "failed";
2034
- "first-output": "first-output";
2035
- started: "started";
2036
- }>;
2037
- step: z.ZodOptional<z.ZodInt>;
2038
- startedAt: z.ZodISODateTime;
2039
- firstOutputAt: z.ZodOptional<z.ZodISODateTime>;
2040
- finishedAt: z.ZodOptional<z.ZodISODateTime>;
2041
- }, z.core.$strip>>;
2042
- createdAt: z.ZodISODateTime;
2043
- updatedAt: z.ZodISODateTime;
2044
- }, z.core.$strip>;
2045
- coalesceIntoRunId: z.ZodOptional<z.ZodString>;
2046
- }, z.core.$strip>;
2047
- export declare const AcquireAgentRunSchema: z.ZodObject<{
2048
- conversationId: z.ZodString;
2049
- runId: z.ZodString;
2050
- expectedRevision: z.ZodInt;
2051
- ownerId: z.ZodString;
2052
- }, z.core.$strip>;
2053
- export declare const CheckpointRunAssistantSchema: z.ZodObject<{
2054
- conversationId: z.ZodString;
2055
- runId: z.ZodString;
2056
- expectedRevision: z.ZodInt;
2057
- ownerId: z.ZodString;
2058
- fencingToken: z.ZodOptional<z.ZodInt>;
2059
- assistant: z.ZodObject<{
2060
- schemaVersion: z.ZodLiteral<1>;
2061
- id: z.ZodString;
2062
- conversationId: z.ZodString;
2063
- runId: z.ZodOptional<z.ZodString>;
2064
- role: z.ZodEnum<{
2065
- assistant: "assistant";
2066
- summary: "summary";
2067
- system: "system";
2068
- tool: "tool";
2069
- user: "user";
2070
- }>;
2071
- status: z.ZodEnum<{
2072
- committed: "committed";
2073
- completed: "completed";
2074
- failed: "failed";
2075
- interrupted: "interrupted";
2076
- streaming: "streaming";
2077
- superseded: "superseded";
2078
- }>;
2079
- parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2080
- type: z.ZodLiteral<"text">;
2081
- text: z.ZodString;
2082
- provider: z.ZodOptional<z.ZodObject<{
2083
- schemaVersion: z.ZodInt;
2084
- provider: z.ZodString;
2085
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
2086
- }, z.core.$strip>>;
2087
- }, z.core.$strip>, z.ZodObject<{
2088
- type: z.ZodLiteral<"reasoning">;
2089
- text: z.ZodString;
2090
- provider: z.ZodOptional<z.ZodObject<{
2091
- schemaVersion: z.ZodInt;
2092
- provider: z.ZodString;
2093
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
2094
- }, z.core.$strip>>;
2095
- }, z.core.$strip>, z.ZodObject<{
2096
- type: z.ZodLiteral<"file">;
2097
- mediaType: z.ZodString;
2098
- reference: z.ZodString;
2099
- filename: z.ZodOptional<z.ZodString>;
2100
- }, z.core.$strip>, z.ZodObject<{
2101
- type: z.ZodLiteral<"source">;
2102
- sourceId: z.ZodString;
2103
- url: z.ZodOptional<z.ZodURL>;
2104
- title: z.ZodOptional<z.ZodString>;
2105
- }, z.core.$strip>, z.ZodObject<{
2106
- type: z.ZodLiteral<"tool-call">;
2107
- callId: z.ZodString;
2108
- toolName: z.ZodString;
2109
- input: z.ZodJSONSchema;
2110
- provider: z.ZodOptional<z.ZodObject<{
2111
- schemaVersion: z.ZodInt;
2112
- provider: z.ZodString;
2113
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
2114
- }, z.core.$strip>>;
2115
- }, z.core.$strip>, z.ZodObject<{
2116
- type: z.ZodLiteral<"tool-result">;
2117
- callId: z.ZodString;
2118
- toolName: z.ZodString;
2119
- outcome: z.ZodEnum<{
2120
- error: "error";
2121
- interrupted: "interrupted";
2122
- success: "success";
2123
- }>;
2124
- output: z.ZodOptional<z.ZodJSONSchema>;
2125
- provider: z.ZodOptional<z.ZodObject<{
2126
- schemaVersion: z.ZodInt;
2127
- provider: z.ZodString;
2128
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
2129
- }, z.core.$strip>>;
2130
- }, z.core.$strip>, z.ZodObject<{
2131
- type: z.ZodLiteral<"tool-approval-request">;
2132
- approvalId: z.ZodString;
2133
- callId: z.ZodString;
2134
- isAutomatic: z.ZodOptional<z.ZodBoolean>;
2135
- signature: z.ZodOptional<z.ZodString>;
2136
- }, z.core.$strip>, z.ZodObject<{
2137
- type: z.ZodLiteral<"tool-approval-response">;
2138
- approvalId: z.ZodString;
2139
- approved: z.ZodBoolean;
2140
- reason: z.ZodOptional<z.ZodString>;
2141
- }, z.core.$strip>, z.ZodObject<{
2142
- type: z.ZodLiteral<"provider">;
2143
- envelope: z.ZodObject<{
2144
- schemaVersion: z.ZodInt;
2145
- provider: z.ZodString;
2146
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
2147
- }, z.core.$strip>;
2148
- }, z.core.$strip>, z.ZodObject<{
2149
- type: z.ZodLiteral<"control">;
2150
- reason: z.ZodEnum<{
2151
- "run-interrupted": "run-interrupted";
2152
- "stale-run": "stale-run";
2153
- }>;
2154
- }, z.core.$strip>], "type">>;
2155
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
2156
- createdAt: z.ZodISODateTime;
2157
- updatedAt: z.ZodISODateTime;
2158
- }, z.core.$strip>;
2159
- usage: z.ZodOptional<z.ZodObject<{
2160
- inputTokens: z.ZodObject<{
2161
- value: z.ZodOptional<z.ZodInt>;
2162
- provenance: z.ZodEnum<{
2163
- computed: "computed";
2164
- estimated: "estimated";
2165
- "provider-reported": "provider-reported";
2166
- unavailable: "unavailable";
2167
- }>;
2168
- }, z.core.$strip>;
2169
- outputTokens: z.ZodObject<{
2170
- value: z.ZodOptional<z.ZodInt>;
2171
- provenance: z.ZodEnum<{
2172
- computed: "computed";
2173
- estimated: "estimated";
2174
- "provider-reported": "provider-reported";
2175
- unavailable: "unavailable";
2176
- }>;
2177
- }, z.core.$strip>;
2178
- reasoningTokens: z.ZodOptional<z.ZodObject<{
2179
- value: z.ZodOptional<z.ZodInt>;
2180
- provenance: z.ZodEnum<{
2181
- computed: "computed";
2182
- estimated: "estimated";
2183
- "provider-reported": "provider-reported";
2184
- unavailable: "unavailable";
2185
- }>;
2186
- }, z.core.$strip>>;
2187
- cacheReadTokens: z.ZodOptional<z.ZodObject<{
2188
- value: z.ZodOptional<z.ZodInt>;
2189
- provenance: z.ZodEnum<{
2190
- computed: "computed";
2191
- estimated: "estimated";
2192
- "provider-reported": "provider-reported";
2193
- unavailable: "unavailable";
2194
- }>;
2195
- }, z.core.$strip>>;
2196
- cacheWriteTokens: z.ZodOptional<z.ZodObject<{
2197
- value: z.ZodOptional<z.ZodInt>;
2198
- provenance: z.ZodEnum<{
2199
- computed: "computed";
2200
- estimated: "estimated";
2201
- "provider-reported": "provider-reported";
2202
- unavailable: "unavailable";
2203
- }>;
2204
- }, z.core.$strip>>;
2205
- cost: z.ZodOptional<z.ZodObject<{
2206
- value: z.ZodOptional<z.ZodNumber>;
2207
- currency: z.ZodOptional<z.ZodString>;
2208
- provenance: z.ZodEnum<{
2209
- computed: "computed";
2210
- estimated: "estimated";
2211
- "provider-reported": "provider-reported";
2212
- unavailable: "unavailable";
2213
- }>;
2214
- }, z.core.$strip>>;
2215
- }, z.core.$strip>>;
2216
- }, z.core.$strip>;
2217
- export declare const RecordRunOperationSchema: z.ZodObject<{
2218
- conversationId: z.ZodString;
2219
- runId: z.ZodString;
2220
- expectedRevision: z.ZodInt;
2221
- ownerId: z.ZodString;
2222
- fencingToken: z.ZodOptional<z.ZodInt>;
2223
- operation: z.ZodObject<{
2224
- operationId: z.ZodString;
2225
- kind: z.ZodEnum<{
2226
- compaction: "compaction";
2227
- "model-request": "model-request";
2228
- }>;
2229
- phase: z.ZodEnum<{
2230
- cancelled: "cancelled";
2231
- completed: "completed";
2232
- failed: "failed";
2233
- "first-output": "first-output";
2234
- started: "started";
2235
- }>;
2236
- step: z.ZodOptional<z.ZodInt>;
2237
- startedAt: z.ZodISODateTime;
2238
- firstOutputAt: z.ZodOptional<z.ZodISODateTime>;
2239
- finishedAt: z.ZodOptional<z.ZodISODateTime>;
2240
- }, z.core.$strip>;
2241
- }, z.core.$strip>;
2242
- export declare const CommitRunTerminalSchema: z.ZodObject<{
2243
- conversationId: z.ZodString;
2244
- runId: z.ZodString;
2245
- expectedRevision: z.ZodInt;
2246
- ownerId: z.ZodString;
2247
- fencingToken: z.ZodOptional<z.ZodInt>;
2248
- assistant: z.ZodObject<{
2249
- schemaVersion: z.ZodLiteral<1>;
2250
- id: z.ZodString;
2251
- conversationId: z.ZodString;
2252
- runId: z.ZodOptional<z.ZodString>;
2253
- role: z.ZodEnum<{
2254
- assistant: "assistant";
2255
- summary: "summary";
2256
- system: "system";
2257
- tool: "tool";
2258
- user: "user";
2259
- }>;
2260
- status: z.ZodEnum<{
2261
- committed: "committed";
2262
- completed: "completed";
2263
- failed: "failed";
2264
- interrupted: "interrupted";
2265
- streaming: "streaming";
2266
- superseded: "superseded";
2267
- }>;
2268
- parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2269
- type: z.ZodLiteral<"text">;
2270
- text: z.ZodString;
2271
- provider: z.ZodOptional<z.ZodObject<{
2272
- schemaVersion: z.ZodInt;
2273
- provider: z.ZodString;
2274
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
2275
- }, z.core.$strip>>;
2276
- }, z.core.$strip>, z.ZodObject<{
2277
- type: z.ZodLiteral<"reasoning">;
2278
- text: z.ZodString;
2279
- provider: z.ZodOptional<z.ZodObject<{
2280
- schemaVersion: z.ZodInt;
2281
- provider: z.ZodString;
2282
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
2283
- }, z.core.$strip>>;
2284
- }, z.core.$strip>, z.ZodObject<{
2285
- type: z.ZodLiteral<"file">;
2286
- mediaType: z.ZodString;
2287
- reference: z.ZodString;
2288
- filename: z.ZodOptional<z.ZodString>;
2289
- }, z.core.$strip>, z.ZodObject<{
2290
- type: z.ZodLiteral<"source">;
2291
- sourceId: z.ZodString;
2292
- url: z.ZodOptional<z.ZodURL>;
2293
- title: z.ZodOptional<z.ZodString>;
2294
- }, z.core.$strip>, z.ZodObject<{
2295
- type: z.ZodLiteral<"tool-call">;
2296
- callId: z.ZodString;
2297
- toolName: z.ZodString;
2298
- input: z.ZodJSONSchema;
2299
- provider: z.ZodOptional<z.ZodObject<{
2300
- schemaVersion: z.ZodInt;
2301
- provider: z.ZodString;
2302
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
2303
- }, z.core.$strip>>;
2304
- }, z.core.$strip>, z.ZodObject<{
2305
- type: z.ZodLiteral<"tool-result">;
2306
- callId: z.ZodString;
2307
- toolName: z.ZodString;
2308
- outcome: z.ZodEnum<{
2309
- error: "error";
2310
- interrupted: "interrupted";
2311
- success: "success";
2312
- }>;
2313
- output: z.ZodOptional<z.ZodJSONSchema>;
2314
- provider: z.ZodOptional<z.ZodObject<{
2315
- schemaVersion: z.ZodInt;
2316
- provider: z.ZodString;
2317
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
2318
- }, z.core.$strip>>;
2319
- }, z.core.$strip>, z.ZodObject<{
2320
- type: z.ZodLiteral<"tool-approval-request">;
2321
- approvalId: z.ZodString;
2322
- callId: z.ZodString;
2323
- isAutomatic: z.ZodOptional<z.ZodBoolean>;
2324
- signature: z.ZodOptional<z.ZodString>;
2325
- }, z.core.$strip>, z.ZodObject<{
2326
- type: z.ZodLiteral<"tool-approval-response">;
2327
- approvalId: z.ZodString;
2328
- approved: z.ZodBoolean;
2329
- reason: z.ZodOptional<z.ZodString>;
2330
- }, z.core.$strip>, z.ZodObject<{
2331
- type: z.ZodLiteral<"provider">;
2332
- envelope: z.ZodObject<{
2333
- schemaVersion: z.ZodInt;
2334
- provider: z.ZodString;
2335
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
2336
- }, z.core.$strip>;
2337
- }, z.core.$strip>, z.ZodObject<{
2338
- type: z.ZodLiteral<"control">;
2339
- reason: z.ZodEnum<{
2340
- "run-interrupted": "run-interrupted";
2341
- "stale-run": "stale-run";
2342
- }>;
2343
- }, z.core.$strip>], "type">>;
2344
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
2345
- createdAt: z.ZodISODateTime;
2346
- updatedAt: z.ZodISODateTime;
2347
- }, z.core.$strip>;
2348
- reason: z.ZodEnum<{
2349
- abandoned: "abandoned";
2350
- absorbed: "absorbed";
2351
- cancelled: "cancelled";
2352
- context_overflow: "context_overflow";
2353
- interrupted: "interrupted";
2354
- output_rejected: "output_rejected";
2355
- policy_stop: "policy_stop";
2356
- provider_failure: "provider_failure";
2357
- provider_stop: "provider_stop";
2358
- runtime_failure: "runtime_failure";
2359
- shutdown: "shutdown";
2360
- storage_conflict: "storage_conflict";
2361
- success: "success";
2362
- superseded: "superseded";
2363
- timeout: "timeout";
2364
- }>;
2365
- policyName: z.ZodOptional<z.ZodString>;
2366
- usage: z.ZodOptional<z.ZodObject<{
2367
- inputTokens: z.ZodObject<{
2368
- value: z.ZodOptional<z.ZodInt>;
2369
- provenance: z.ZodEnum<{
2370
- computed: "computed";
2371
- estimated: "estimated";
2372
- "provider-reported": "provider-reported";
2373
- unavailable: "unavailable";
2374
- }>;
2375
- }, z.core.$strip>;
2376
- outputTokens: z.ZodObject<{
2377
- value: z.ZodOptional<z.ZodInt>;
2378
- provenance: z.ZodEnum<{
2379
- computed: "computed";
2380
- estimated: "estimated";
2381
- "provider-reported": "provider-reported";
2382
- unavailable: "unavailable";
2383
- }>;
2384
- }, z.core.$strip>;
2385
- reasoningTokens: z.ZodOptional<z.ZodObject<{
2386
- value: z.ZodOptional<z.ZodInt>;
2387
- provenance: z.ZodEnum<{
2388
- computed: "computed";
2389
- estimated: "estimated";
2390
- "provider-reported": "provider-reported";
2391
- unavailable: "unavailable";
2392
- }>;
2393
- }, z.core.$strip>>;
2394
- cacheReadTokens: z.ZodOptional<z.ZodObject<{
2395
- value: z.ZodOptional<z.ZodInt>;
2396
- provenance: z.ZodEnum<{
2397
- computed: "computed";
2398
- estimated: "estimated";
2399
- "provider-reported": "provider-reported";
2400
- unavailable: "unavailable";
2401
- }>;
2402
- }, z.core.$strip>>;
2403
- cacheWriteTokens: z.ZodOptional<z.ZodObject<{
2404
- value: z.ZodOptional<z.ZodInt>;
2405
- provenance: z.ZodEnum<{
2406
- computed: "computed";
2407
- estimated: "estimated";
2408
- "provider-reported": "provider-reported";
2409
- unavailable: "unavailable";
2410
- }>;
2411
- }, z.core.$strip>>;
2412
- cost: z.ZodOptional<z.ZodObject<{
2413
- value: z.ZodOptional<z.ZodNumber>;
2414
- currency: z.ZodOptional<z.ZodString>;
2415
- provenance: z.ZodEnum<{
2416
- computed: "computed";
2417
- estimated: "estimated";
2418
- "provider-reported": "provider-reported";
2419
- unavailable: "unavailable";
2420
- }>;
2421
- }, z.core.$strip>>;
2422
- }, z.core.$strip>>;
2423
- absorb: z.ZodOptional<z.ZodArray<z.ZodObject<{
2424
- runId: z.ZodString;
2425
- inputMessageIds: z.ZodArray<z.ZodString>;
2426
- }, z.core.$strip>>>;
2427
- }, z.core.$strip>;
2428
- export declare const RequestRunInterruptSchema: z.ZodObject<{
2429
- conversationId: z.ZodString;
2430
- runId: z.ZodString;
2431
- expectedRevision: z.ZodInt;
2432
- }, z.core.$strip>;
2433
- export declare const RecoverAgentRunSchema: z.ZodObject<{
2434
- conversationId: z.ZodString;
2435
- runId: z.ZodString;
2436
- expectedRevision: z.ZodInt;
2437
- action: z.ZodEnum<{
2438
- abandon: "abandon";
2439
- requeue: "requeue";
2440
- }>;
2441
- replaySafe: z.ZodOptional<z.ZodBoolean>;
2442
- }, z.core.$strip>;
2443
- export declare const ReplaceCompactedRangeSchema: z.ZodObject<{
2444
- conversationId: z.ZodString;
2445
- expectedVersion: z.ZodInt;
2446
- replacedMessageIds: z.ZodArray<z.ZodString>;
2447
- summary: z.ZodObject<{
2448
- schemaVersion: z.ZodLiteral<1>;
2449
- id: z.ZodString;
2450
- conversationId: z.ZodString;
2451
- runId: z.ZodOptional<z.ZodString>;
2452
- role: z.ZodEnum<{
2453
- assistant: "assistant";
2454
- summary: "summary";
2455
- system: "system";
2456
- tool: "tool";
2457
- user: "user";
2458
- }>;
2459
- status: z.ZodEnum<{
2460
- committed: "committed";
2461
- completed: "completed";
2462
- failed: "failed";
2463
- interrupted: "interrupted";
2464
- streaming: "streaming";
2465
- superseded: "superseded";
2466
- }>;
2467
- parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2468
- type: z.ZodLiteral<"text">;
2469
- text: z.ZodString;
2470
- provider: z.ZodOptional<z.ZodObject<{
2471
- schemaVersion: z.ZodInt;
2472
- provider: z.ZodString;
2473
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
2474
- }, z.core.$strip>>;
2475
- }, z.core.$strip>, z.ZodObject<{
2476
- type: z.ZodLiteral<"reasoning">;
2477
- text: z.ZodString;
2478
- provider: z.ZodOptional<z.ZodObject<{
2479
- schemaVersion: z.ZodInt;
2480
- provider: z.ZodString;
2481
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
2482
- }, z.core.$strip>>;
2483
- }, z.core.$strip>, z.ZodObject<{
2484
- type: z.ZodLiteral<"file">;
2485
- mediaType: z.ZodString;
2486
- reference: z.ZodString;
2487
- filename: z.ZodOptional<z.ZodString>;
2488
- }, z.core.$strip>, z.ZodObject<{
2489
- type: z.ZodLiteral<"source">;
2490
- sourceId: z.ZodString;
2491
- url: z.ZodOptional<z.ZodURL>;
2492
- title: z.ZodOptional<z.ZodString>;
2493
- }, z.core.$strip>, z.ZodObject<{
2494
- type: z.ZodLiteral<"tool-call">;
2495
- callId: z.ZodString;
2496
- toolName: z.ZodString;
2497
- input: z.ZodJSONSchema;
2498
- provider: z.ZodOptional<z.ZodObject<{
2499
- schemaVersion: z.ZodInt;
2500
- provider: z.ZodString;
2501
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
2502
- }, z.core.$strip>>;
2503
- }, z.core.$strip>, z.ZodObject<{
2504
- type: z.ZodLiteral<"tool-result">;
2505
- callId: z.ZodString;
2506
- toolName: z.ZodString;
2507
- outcome: z.ZodEnum<{
2508
- error: "error";
2509
- interrupted: "interrupted";
2510
- success: "success";
2511
- }>;
2512
- output: z.ZodOptional<z.ZodJSONSchema>;
2513
- provider: z.ZodOptional<z.ZodObject<{
2514
- schemaVersion: z.ZodInt;
2515
- provider: z.ZodString;
2516
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
2517
- }, z.core.$strip>>;
2518
- }, z.core.$strip>, z.ZodObject<{
2519
- type: z.ZodLiteral<"tool-approval-request">;
2520
- approvalId: z.ZodString;
2521
- callId: z.ZodString;
2522
- isAutomatic: z.ZodOptional<z.ZodBoolean>;
2523
- signature: z.ZodOptional<z.ZodString>;
2524
- }, z.core.$strip>, z.ZodObject<{
2525
- type: z.ZodLiteral<"tool-approval-response">;
2526
- approvalId: z.ZodString;
2527
- approved: z.ZodBoolean;
2528
- reason: z.ZodOptional<z.ZodString>;
2529
- }, z.core.$strip>, z.ZodObject<{
2530
- type: z.ZodLiteral<"provider">;
2531
- envelope: z.ZodObject<{
2532
- schemaVersion: z.ZodInt;
2533
- provider: z.ZodString;
2534
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
2535
- }, z.core.$strip>;
2536
- }, z.core.$strip>, z.ZodObject<{
2537
- type: z.ZodLiteral<"control">;
2538
- reason: z.ZodEnum<{
2539
- "run-interrupted": "run-interrupted";
2540
- "stale-run": "stale-run";
2541
- }>;
2542
- }, z.core.$strip>], "type">>;
2543
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
2544
- createdAt: z.ZodISODateTime;
2545
- updatedAt: z.ZodISODateTime;
2546
- }, z.core.$strip>;
2547
- }, z.core.$strip>;
2548
- /**
2549
- * One keyed, once-only write of user instructions into durable history.
2550
- *
2551
- * User-role prompt sections are context, not framework policy (→ ADR 0178), so
2552
- * they reach the model as ordinary user messages. This is the durable boundary
2553
- * that makes "once" real: the caller names the seed with a stable key, and the
2554
- * store records that the key was written. The record survives history
2555
- * replacement and compaction, so clearing the conversation does not resurrect
2556
- * text the caller never asked to seed twice.
2557
- */
2558
- export declare const SeedConversationInputSchema: z.ZodObject<{
2559
- conversationId: z.ZodString;
2560
- seedKey: z.ZodString;
2561
- inputs: z.ZodArray<z.ZodObject<{
2562
- schemaVersion: z.ZodLiteral<1>;
2563
- id: z.ZodString;
2564
- conversationId: z.ZodString;
2565
- runId: z.ZodOptional<z.ZodString>;
2566
- role: z.ZodEnum<{
2567
- assistant: "assistant";
2568
- summary: "summary";
2569
- system: "system";
2570
- tool: "tool";
2571
- user: "user";
2572
- }>;
2573
- status: z.ZodEnum<{
2574
- committed: "committed";
2575
- completed: "completed";
2576
- failed: "failed";
2577
- interrupted: "interrupted";
2578
- streaming: "streaming";
2579
- superseded: "superseded";
2580
- }>;
2581
- parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2582
- type: z.ZodLiteral<"text">;
2583
- text: z.ZodString;
2584
- provider: z.ZodOptional<z.ZodObject<{
2585
- schemaVersion: z.ZodInt;
2586
- provider: z.ZodString;
2587
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
2588
- }, z.core.$strip>>;
2589
- }, z.core.$strip>, z.ZodObject<{
2590
- type: z.ZodLiteral<"reasoning">;
2591
- text: z.ZodString;
2592
- provider: z.ZodOptional<z.ZodObject<{
2593
- schemaVersion: z.ZodInt;
2594
- provider: z.ZodString;
2595
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
2596
- }, z.core.$strip>>;
2597
- }, z.core.$strip>, z.ZodObject<{
2598
- type: z.ZodLiteral<"file">;
2599
- mediaType: z.ZodString;
2600
- reference: z.ZodString;
2601
- filename: z.ZodOptional<z.ZodString>;
2602
- }, z.core.$strip>, z.ZodObject<{
2603
- type: z.ZodLiteral<"source">;
2604
- sourceId: z.ZodString;
2605
- url: z.ZodOptional<z.ZodURL>;
2606
- title: z.ZodOptional<z.ZodString>;
2607
- }, z.core.$strip>, z.ZodObject<{
2608
- type: z.ZodLiteral<"tool-call">;
2609
- callId: z.ZodString;
2610
- toolName: z.ZodString;
2611
- input: z.ZodJSONSchema;
2612
- provider: z.ZodOptional<z.ZodObject<{
2613
- schemaVersion: z.ZodInt;
2614
- provider: z.ZodString;
2615
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
2616
- }, z.core.$strip>>;
2617
- }, z.core.$strip>, z.ZodObject<{
2618
- type: z.ZodLiteral<"tool-result">;
2619
- callId: z.ZodString;
2620
- toolName: z.ZodString;
2621
- outcome: z.ZodEnum<{
2622
- error: "error";
2623
- interrupted: "interrupted";
2624
- success: "success";
2625
- }>;
2626
- output: z.ZodOptional<z.ZodJSONSchema>;
2627
- provider: z.ZodOptional<z.ZodObject<{
2628
- schemaVersion: z.ZodInt;
2629
- provider: z.ZodString;
2630
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
2631
- }, z.core.$strip>>;
2632
- }, z.core.$strip>, z.ZodObject<{
2633
- type: z.ZodLiteral<"tool-approval-request">;
2634
- approvalId: z.ZodString;
2635
- callId: z.ZodString;
2636
- isAutomatic: z.ZodOptional<z.ZodBoolean>;
2637
- signature: z.ZodOptional<z.ZodString>;
2638
- }, z.core.$strip>, z.ZodObject<{
2639
- type: z.ZodLiteral<"tool-approval-response">;
2640
- approvalId: z.ZodString;
2641
- approved: z.ZodBoolean;
2642
- reason: z.ZodOptional<z.ZodString>;
2643
- }, z.core.$strip>, z.ZodObject<{
2644
- type: z.ZodLiteral<"provider">;
2645
- envelope: z.ZodObject<{
2646
- schemaVersion: z.ZodInt;
2647
- provider: z.ZodString;
2648
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
2649
- }, z.core.$strip>;
2650
- }, z.core.$strip>, z.ZodObject<{
2651
- type: z.ZodLiteral<"control">;
2652
- reason: z.ZodEnum<{
2653
- "run-interrupted": "run-interrupted";
2654
- "stale-run": "stale-run";
2655
- }>;
2656
- }, z.core.$strip>], "type">>;
2657
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
2658
- createdAt: z.ZodISODateTime;
2659
- updatedAt: z.ZodISODateTime;
2660
- }, z.core.$strip>>;
2661
- placement: z.ZodOptional<z.ZodEnum<{
2662
- "after-settled": "after-settled";
2663
- lead: "lead";
2664
- }>>;
2665
- }, z.core.$strip>;
2666
- export type AcceptInputAndAssignRun = z.infer<typeof AcceptInputAndAssignRunSchema>;
2667
- export type AcquireAgentRun = z.infer<typeof AcquireAgentRunSchema>;
2668
- export type CheckpointRunAssistant = z.infer<typeof CheckpointRunAssistantSchema>;
2669
- export type RecordRunOperation = z.infer<typeof RecordRunOperationSchema>;
2670
- export type CommitRunTerminal = z.infer<typeof CommitRunTerminalSchema>;
2671
- export type RequestRunInterrupt = z.infer<typeof RequestRunInterruptSchema>;
2672
- export type RecoverAgentRun = z.infer<typeof RecoverAgentRunSchema>;
2673
- export type ReplaceCompactedRange = z.infer<typeof ReplaceCompactedRangeSchema>;
2674
- export type SeedConversationInput = z.infer<typeof SeedConversationInputSchema>;
2675
- export declare const AgentRecoverableDescriptorSchema: z.ZodObject<{
2676
- conversationId: z.ZodString;
2677
- run: z.ZodObject<{
2678
- schemaVersion: z.ZodLiteral<1>;
2679
- id: z.ZodString;
2680
- conversationId: z.ZodString;
2681
- inputMessageIds: z.ZodArray<z.ZodString>;
2682
- assistantMessageId: z.ZodString;
2683
- state: z.ZodEnum<{
2684
- abandoned: "abandoned";
2685
- cancelled: "cancelled";
2686
- completed: "completed";
2687
- failed: "failed";
2688
- interrupt_requested: "interrupt_requested";
2689
- interrupted: "interrupted";
2690
- queued: "queued";
2691
- running: "running";
2692
- superseded: "superseded";
2693
- }>;
2694
- revision: z.ZodInt;
2695
- queuePriority: z.ZodOptional<z.ZodEnum<{
2696
- "interrupt-next": "interrupt-next";
2697
- }>>;
2698
- executionSequence: z.ZodOptional<z.ZodInt>;
2699
- ownerId: z.ZodOptional<z.ZodString>;
2700
- fencingToken: z.ZodOptional<z.ZodInt>;
2701
- terminalReason: z.ZodOptional<z.ZodEnum<{
2702
- abandoned: "abandoned";
2703
- absorbed: "absorbed";
2704
- cancelled: "cancelled";
2705
- context_overflow: "context_overflow";
2706
- interrupted: "interrupted";
2707
- output_rejected: "output_rejected";
2708
- policy_stop: "policy_stop";
2709
- provider_failure: "provider_failure";
2710
- provider_stop: "provider_stop";
2711
- runtime_failure: "runtime_failure";
2712
- shutdown: "shutdown";
2713
- storage_conflict: "storage_conflict";
2714
- success: "success";
2715
- superseded: "superseded";
2716
- timeout: "timeout";
2717
- }>>;
2718
- terminalPolicyName: z.ZodOptional<z.ZodString>;
2719
- absorbedIntoRunId: z.ZodOptional<z.ZodString>;
2720
- usage: z.ZodOptional<z.ZodObject<{
2721
- inputTokens: z.ZodObject<{
2722
- value: z.ZodOptional<z.ZodInt>;
2723
- provenance: z.ZodEnum<{
2724
- computed: "computed";
2725
- estimated: "estimated";
2726
- "provider-reported": "provider-reported";
2727
- unavailable: "unavailable";
2728
- }>;
2729
- }, z.core.$strip>;
2730
- outputTokens: z.ZodObject<{
2731
- value: z.ZodOptional<z.ZodInt>;
2732
- provenance: z.ZodEnum<{
2733
- computed: "computed";
2734
- estimated: "estimated";
2735
- "provider-reported": "provider-reported";
2736
- unavailable: "unavailable";
2737
- }>;
2738
- }, z.core.$strip>;
2739
- reasoningTokens: z.ZodOptional<z.ZodObject<{
2740
- value: z.ZodOptional<z.ZodInt>;
2741
- provenance: z.ZodEnum<{
2742
- computed: "computed";
2743
- estimated: "estimated";
2744
- "provider-reported": "provider-reported";
2745
- unavailable: "unavailable";
2746
- }>;
2747
- }, z.core.$strip>>;
2748
- cacheReadTokens: z.ZodOptional<z.ZodObject<{
2749
- value: z.ZodOptional<z.ZodInt>;
2750
- provenance: z.ZodEnum<{
2751
- computed: "computed";
2752
- estimated: "estimated";
2753
- "provider-reported": "provider-reported";
2754
- unavailable: "unavailable";
2755
- }>;
2756
- }, z.core.$strip>>;
2757
- cacheWriteTokens: z.ZodOptional<z.ZodObject<{
2758
- value: z.ZodOptional<z.ZodInt>;
2759
- provenance: z.ZodEnum<{
2760
- computed: "computed";
2761
- estimated: "estimated";
2762
- "provider-reported": "provider-reported";
2763
- unavailable: "unavailable";
2764
- }>;
2765
- }, z.core.$strip>>;
2766
- cost: z.ZodOptional<z.ZodObject<{
2767
- value: z.ZodOptional<z.ZodNumber>;
2768
- currency: z.ZodOptional<z.ZodString>;
2769
- provenance: z.ZodEnum<{
2770
- computed: "computed";
2771
- estimated: "estimated";
2772
- "provider-reported": "provider-reported";
2773
- unavailable: "unavailable";
2774
- }>;
2775
- }, z.core.$strip>>;
2776
- }, z.core.$strip>>;
2777
- lastOperation: z.ZodOptional<z.ZodObject<{
2778
- operationId: z.ZodString;
2779
- kind: z.ZodEnum<{
2780
- compaction: "compaction";
2781
- "model-request": "model-request";
2782
- }>;
2783
- phase: z.ZodEnum<{
2784
- cancelled: "cancelled";
2785
- completed: "completed";
2786
- failed: "failed";
2787
- "first-output": "first-output";
2788
- started: "started";
2789
- }>;
2790
- step: z.ZodOptional<z.ZodInt>;
2791
- startedAt: z.ZodISODateTime;
2792
- firstOutputAt: z.ZodOptional<z.ZodISODateTime>;
2793
- finishedAt: z.ZodOptional<z.ZodISODateTime>;
2794
- }, z.core.$strip>>;
2795
- createdAt: z.ZodISODateTime;
2796
- updatedAt: z.ZodISODateTime;
2797
- }, z.core.$strip>;
2798
- }, z.core.$strip>;
2799
- export declare const AgentRecoverablePageSchema: z.ZodObject<{
2800
- items: z.ZodArray<z.ZodObject<{
2801
- conversationId: z.ZodString;
2802
- run: z.ZodObject<{
2803
- schemaVersion: z.ZodLiteral<1>;
2804
- id: z.ZodString;
2805
- conversationId: z.ZodString;
2806
- inputMessageIds: z.ZodArray<z.ZodString>;
2807
- assistantMessageId: z.ZodString;
2808
- state: z.ZodEnum<{
2809
- abandoned: "abandoned";
2810
- cancelled: "cancelled";
2811
- completed: "completed";
2812
- failed: "failed";
2813
- interrupt_requested: "interrupt_requested";
2814
- interrupted: "interrupted";
2815
- queued: "queued";
2816
- running: "running";
2817
- superseded: "superseded";
2818
- }>;
2819
- revision: z.ZodInt;
2820
- queuePriority: z.ZodOptional<z.ZodEnum<{
2821
- "interrupt-next": "interrupt-next";
2822
- }>>;
2823
- executionSequence: z.ZodOptional<z.ZodInt>;
2824
- ownerId: z.ZodOptional<z.ZodString>;
2825
- fencingToken: z.ZodOptional<z.ZodInt>;
2826
- terminalReason: z.ZodOptional<z.ZodEnum<{
2827
- abandoned: "abandoned";
2828
- absorbed: "absorbed";
2829
- cancelled: "cancelled";
2830
- context_overflow: "context_overflow";
2831
- interrupted: "interrupted";
2832
- output_rejected: "output_rejected";
2833
- policy_stop: "policy_stop";
2834
- provider_failure: "provider_failure";
2835
- provider_stop: "provider_stop";
2836
- runtime_failure: "runtime_failure";
2837
- shutdown: "shutdown";
2838
- storage_conflict: "storage_conflict";
2839
- success: "success";
2840
- superseded: "superseded";
2841
- timeout: "timeout";
2842
- }>>;
2843
- terminalPolicyName: z.ZodOptional<z.ZodString>;
2844
- absorbedIntoRunId: z.ZodOptional<z.ZodString>;
2845
- usage: z.ZodOptional<z.ZodObject<{
2846
- inputTokens: z.ZodObject<{
2847
- value: z.ZodOptional<z.ZodInt>;
2848
- provenance: z.ZodEnum<{
2849
- computed: "computed";
2850
- estimated: "estimated";
2851
- "provider-reported": "provider-reported";
2852
- unavailable: "unavailable";
2853
- }>;
2854
- }, z.core.$strip>;
2855
- outputTokens: z.ZodObject<{
2856
- value: z.ZodOptional<z.ZodInt>;
2857
- provenance: z.ZodEnum<{
2858
- computed: "computed";
2859
- estimated: "estimated";
2860
- "provider-reported": "provider-reported";
2861
- unavailable: "unavailable";
2862
- }>;
2863
- }, z.core.$strip>;
2864
- reasoningTokens: z.ZodOptional<z.ZodObject<{
2865
- value: z.ZodOptional<z.ZodInt>;
2866
- provenance: z.ZodEnum<{
2867
- computed: "computed";
2868
- estimated: "estimated";
2869
- "provider-reported": "provider-reported";
2870
- unavailable: "unavailable";
2871
- }>;
2872
- }, z.core.$strip>>;
2873
- cacheReadTokens: z.ZodOptional<z.ZodObject<{
2874
- value: z.ZodOptional<z.ZodInt>;
2875
- provenance: z.ZodEnum<{
2876
- computed: "computed";
2877
- estimated: "estimated";
2878
- "provider-reported": "provider-reported";
2879
- unavailable: "unavailable";
2880
- }>;
2881
- }, z.core.$strip>>;
2882
- cacheWriteTokens: z.ZodOptional<z.ZodObject<{
2883
- value: z.ZodOptional<z.ZodInt>;
2884
- provenance: z.ZodEnum<{
2885
- computed: "computed";
2886
- estimated: "estimated";
2887
- "provider-reported": "provider-reported";
2888
- unavailable: "unavailable";
2889
- }>;
2890
- }, z.core.$strip>>;
2891
- cost: z.ZodOptional<z.ZodObject<{
2892
- value: z.ZodOptional<z.ZodNumber>;
2893
- currency: z.ZodOptional<z.ZodString>;
2894
- provenance: z.ZodEnum<{
2895
- computed: "computed";
2896
- estimated: "estimated";
2897
- "provider-reported": "provider-reported";
2898
- unavailable: "unavailable";
2899
- }>;
2900
- }, z.core.$strip>>;
2901
- }, z.core.$strip>>;
2902
- lastOperation: z.ZodOptional<z.ZodObject<{
2903
- operationId: z.ZodString;
2904
- kind: z.ZodEnum<{
2905
- compaction: "compaction";
2906
- "model-request": "model-request";
2907
- }>;
2908
- phase: z.ZodEnum<{
2909
- cancelled: "cancelled";
2910
- completed: "completed";
2911
- failed: "failed";
2912
- "first-output": "first-output";
2913
- started: "started";
2914
- }>;
2915
- step: z.ZodOptional<z.ZodInt>;
2916
- startedAt: z.ZodISODateTime;
2917
- firstOutputAt: z.ZodOptional<z.ZodISODateTime>;
2918
- finishedAt: z.ZodOptional<z.ZodISODateTime>;
2919
- }, z.core.$strip>>;
2920
- createdAt: z.ZodISODateTime;
2921
- updatedAt: z.ZodISODateTime;
2922
- }, z.core.$strip>;
2923
- }, z.core.$strip>>;
2924
- nextCursor: z.ZodOptional<z.ZodString>;
2925
- }, z.core.$strip>;
2926
- export type AgentRecoverableDescriptor = z.infer<typeof AgentRecoverableDescriptorSchema>;
2927
- export type AgentRecoverablePage = z.infer<typeof AgentRecoverablePageSchema>;
2928
- export interface AgentRuntimeStore {
2929
- /**
2930
- * What the driver under the store implements beyond the required contract, as
2931
- * `createAgentRuntimeStore` reads it. Optional for a hand-written store the
2932
- * runtime is given; the conformance kit requires it and compares it with the
2933
- * adapter's declaration.
2934
- */
2935
- readonly capabilities?: Readonly<AgentRuntimeStoreCapabilities>;
2936
- /** Atomic independent identity from a settled prefix or validated archive. */
2937
- branchConversation?(input: BranchAgentConversationInput): Promise<AgentConversationBranchResult>;
2938
- /**
2939
- * What `branchConversation` would refuse for the same input, and which
2940
- * attachments it needs declared, without writing anything.
2941
- */
2942
- planConversationBranch?(input: BranchAgentConversationInput): Promise<AgentConversationBranchPlan>;
2943
- /** Optional atomic deletion. Active runs refuse deletion; purged IDs cannot be reused. */
2944
- purgeConversation?(input: AgentConversationPurgeInput): Promise<AgentConversationPurgeResult>;
2945
- /**
2946
- * Redact encrypted `provider/payload` bodies older than `input.before`, keeping
2947
- * invocation receipts (`artifactId`, `sha256`, `bytes`, `expiredAt`) intact and
2948
- * updating full-text search indexes in the same transaction.
2949
- */
2950
- purgeExpiredPayloads?(input: PurgeInvocationPayloadsInput): Promise<PurgeInvocationPayloadsResult>;
2951
- /**
2952
- * The whole conversation — every message and every run.
2953
- *
2954
- * Unbounded by construction, and the only read that is. Ask for it when you
2955
- * need the conversation: composing a prompt, or compacting. To resolve a
2956
- * `runId`, or to ask what is in flight, use `loadRun` / `listActiveRuns` —
2957
- * they read one record and are the calls the runtime itself uses. See
2958
- * "Reading a conversation" in the agent-runtime guide for what this costs and
2959
- * what bounds it.
2960
- */
2961
- loadSnapshot(conversationId: string): Promise<AgentSnapshot>;
2962
- /** One run by id. `undefined` if this conversation has no such run. */
2963
- loadRun(input: {
2964
- conversationId: string;
2965
- runId: string;
2966
- }): Promise<AgentRunView | undefined>;
2967
- /**
2968
- * Every run of this conversation that has not reached a terminal state, in
2969
- * the same causal order as `AgentSnapshot.runs`.
2970
- *
2971
- * Started runs follow durable execution sequence. Queued `interrupt-next`
2972
- * runs precede ordinary queued runs, preserving FIFO inside each class.
2973
- * Recovery relies on that fact: identifiers are identities, never positions.
2974
- */
2975
- listActiveRuns(conversationId: string): Promise<readonly AgentRun[]>;
2976
- acceptInputAndAssignRun(input: AcceptInputAndAssignRun): Promise<AgentStoreMutationResult>;
2977
- acquireRun(input: AcquireAgentRun): Promise<AgentStoreMutationResult>;
2978
- checkpointRunAssistant(input: CheckpointRunAssistant): Promise<AgentStoreMutationResult>;
2979
- /** Durably replace the run's latest observable model/compaction operation. */
2980
- recordRunOperation(input: RecordRunOperation): Promise<AgentStoreMutationResult>;
2981
- requestRunInterrupt(input: RequestRunInterrupt): Promise<AgentStoreMutationResult>;
2982
- recoverRun(input: RecoverAgentRun): Promise<AgentStoreMutationResult>;
2983
- commitRunTerminal(input: CommitRunTerminal): Promise<AgentStoreMutationResult>;
2984
- replaceCompactedRange(input: ReplaceCompactedRange): Promise<AgentStoreMutationResult>;
2985
- /**
2986
- * Write history no run owns exactly once per key: user instructions ahead of
2987
- * the conversation, or (`placement: 'after-settled'`) an exchange completed
2988
- * without a model after its settled history.
2989
- *
2990
- * The messages become ordinary history (no run owns them), so they
2991
- * appear in `snapshot().messages`, compaction may summarize them, and a
2992
- * history replacement removes them. A subsequent call with the same
2993
- * `seedKey` is a no-op even after that removal, because "already seeded" is
2994
- * recorded beside the history rather than inferred from it. → ADR 0178
2995
- */
2996
- seedConversationInput(input: SeedConversationInput): Promise<AgentStoreMutationResult>;
2997
- /**
2998
- * One bounded page of recoverable runs.
2999
- *
3000
- * Bounded is the whole point (→ ADR 0101): recovery must not depend on
3001
- * loading every recoverable conversation into memory to start. The driver
3002
- * member of the same name has the same shape, so an adapter implements this
3003
- * once at whichever level it plugs in.
3004
- */
3005
- scanRecoverable(input: {
3006
- cursor?: string;
3007
- limit: number;
3008
- }): Promise<AgentRecoverablePage>;
3009
- /** Append one declared non-transition fact without creating a second history store. */
3010
- appendEvent(input: AppendAgentStoreEvent): Promise<AgentStoreEventEnvelope>;
3011
- /** Optional atomic once-only admission. Required by model invocation receipts. */
3012
- appendEventOnce?(input: AppendAgentStoreEvent, key: string): Promise<{
3013
- outcome: 'applied' | 'duplicate';
3014
- event: AgentStoreEventEnvelope;
3015
- }>;
3016
- /** The event `appendEventOnce` wrote for this kind and key — one lookup, not a log scan. */
3017
- findEventOnce?(input: {
3018
- conversationId: string;
3019
- kind: string;
3020
- key: string;
3021
- }): Promise<AgentStoreEventEnvelope | undefined>;
3022
- /** Read one bounded ordered slice of the canonical conversation event log. */
3023
- readEvents(input: ReadAgentStoreEvents): Promise<AgentStoreEventPage>;
3024
- /** Deterministic canonical archive bytes for one conversation's durable event log. */
3025
- exportConversation(conversationId: string): Promise<Uint8Array>;
3026
- /** Restore a canonical archive into an empty conversation event log. */
3027
- importConversation(bytes: Uint8Array): Promise<{
3028
- conversationId: string;
3029
- events: number;
3030
- }>;
3031
- }
3032
- //# sourceMappingURL=store.d.ts.map