stitchkit 0.134.1 → 0.135.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1169) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/README.md +7 -7
  3. package/dist/agent-executor/acp/v1-connect.d.ts +1 -1
  4. package/dist/agent-executor/acp/v1-connect.d.ts.map +1 -1
  5. package/dist/agent-executor/acp/v1-session.d.ts +1 -1
  6. package/dist/agent-executor/acp/v1-session.d.ts.map +1 -1
  7. package/dist/agent-executor/json-rpc-peer.d.ts +1 -1
  8. package/dist/agent-executor/json-rpc-peer.d.ts.map +1 -1
  9. package/dist/agent-runtime/browser/browser-control-contract.d.ts +1364 -0
  10. package/dist/agent-runtime/browser/browser-control-contract.d.ts.map +1 -0
  11. package/dist/agent-runtime/browser/browser-controller-view.d.ts +44 -0
  12. package/dist/agent-runtime/browser/browser-controller-view.d.ts.map +1 -0
  13. package/dist/agent-runtime/browser/browser-controller.d.ts +53 -0
  14. package/dist/agent-runtime/browser/browser-controller.d.ts.map +1 -0
  15. package/dist/agent-runtime/browser/control-interaction-schema.d.ts.map +1 -0
  16. package/dist/agent-runtime/browser/control-schema.d.ts +1378 -0
  17. package/dist/agent-runtime/browser/control-schema.d.ts.map +1 -0
  18. package/dist/agent-runtime/browser/control-view.d.ts +64 -0
  19. package/dist/agent-runtime/browser/control-view.d.ts.map +1 -0
  20. package/dist/agent-runtime/browser/react.d.ts.map +1 -0
  21. package/dist/agent-runtime/coding/coding-discovery.d.ts +25 -0
  22. package/dist/agent-runtime/coding/coding-discovery.d.ts.map +1 -0
  23. package/dist/agent-runtime/coding/coding-sandbox.d.ts +8 -0
  24. package/dist/agent-runtime/coding/coding-sandbox.d.ts.map +1 -0
  25. package/dist/agent-runtime/coding/coding-search-automaton.d.ts.map +1 -0
  26. package/dist/agent-runtime/coding/coding-search-case-fold.d.ts.map +1 -0
  27. package/dist/agent-runtime/coding/coding-search-class-ranges.d.ts.map +1 -0
  28. package/dist/agent-runtime/coding/coding-search-contract.d.ts.map +1 -0
  29. package/dist/agent-runtime/coding/coding-search-limits.d.ts.map +1 -0
  30. package/dist/agent-runtime/coding/coding-search-matcher.d.ts.map +1 -0
  31. package/dist/agent-runtime/coding/coding-search-output.d.ts.map +1 -0
  32. package/dist/agent-runtime/coding/coding-search-regex-syntax.d.ts.map +1 -0
  33. package/dist/agent-runtime/coding/coding-search-unit-classes.d.ts.map +1 -0
  34. package/dist/agent-runtime/coding/coding-shell-process.d.ts +36 -0
  35. package/dist/agent-runtime/coding/coding-shell-process.d.ts.map +1 -0
  36. package/dist/agent-runtime/coding/coding-tool-contract.d.ts +261 -0
  37. package/dist/agent-runtime/coding/coding-tool-contract.d.ts.map +1 -0
  38. package/dist/agent-runtime/coding/coding-tool-files.d.ts.map +1 -0
  39. package/dist/agent-runtime/coding/coding-tool-listing.d.ts.map +1 -0
  40. package/dist/agent-runtime/coding/coding-tool-paths.d.ts +53 -0
  41. package/dist/agent-runtime/coding/coding-tool-paths.d.ts.map +1 -0
  42. package/dist/agent-runtime/coding/coding-tool-refusals.d.ts.map +1 -0
  43. package/dist/agent-runtime/coding/coding-tool-search-patch.d.ts.map +1 -0
  44. package/dist/agent-runtime/coding/coding-tool-search.d.ts +113 -0
  45. package/dist/agent-runtime/coding/coding-tool-search.d.ts.map +1 -0
  46. package/dist/agent-runtime/coding/coding-tool-shell.d.ts.map +1 -0
  47. package/dist/agent-runtime/coding/coding-tool-utf8.d.ts.map +1 -0
  48. package/dist/agent-runtime/coding/coding-tools.d.ts.map +1 -0
  49. package/dist/agent-runtime/coding/contained-scan-budget.d.ts.map +1 -0
  50. package/dist/agent-runtime/coding/contained-scan-contract.d.ts.map +1 -0
  51. package/dist/agent-runtime/coding/contained-scan.d.ts +56 -0
  52. package/dist/agent-runtime/coding/contained-scan.d.ts.map +1 -0
  53. package/dist/agent-runtime/coding/workspace-glob.d.ts.map +1 -0
  54. package/dist/agent-runtime/context-issue.d.ts +1 -1
  55. package/dist/agent-runtime/context-issue.d.ts.map +1 -1
  56. package/dist/agent-runtime/deferred-tool-types.d.ts +3 -1
  57. package/dist/agent-runtime/deferred-tool-types.d.ts.map +1 -1
  58. package/dist/agent-runtime/harness/harness-contract.d.ts +206 -0
  59. package/dist/agent-runtime/harness/harness-contract.d.ts.map +1 -0
  60. package/dist/agent-runtime/harness/harness-control.d.ts +34 -0
  61. package/dist/agent-runtime/harness/harness-control.d.ts.map +1 -0
  62. package/dist/agent-runtime/harness/harness-file-resources.d.ts +33 -0
  63. package/dist/agent-runtime/harness/harness-file-resources.d.ts.map +1 -0
  64. package/dist/agent-runtime/harness/harness-resources.d.ts.map +1 -0
  65. package/dist/agent-runtime/harness/harness.d.ts +15 -0
  66. package/dist/agent-runtime/harness/harness.d.ts.map +1 -0
  67. package/dist/agent-runtime/history/compaction.d.ts +103 -0
  68. package/dist/agent-runtime/history/compaction.d.ts.map +1 -0
  69. package/dist/agent-runtime/history/history.d.ts +93 -0
  70. package/dist/agent-runtime/history/history.d.ts.map +1 -0
  71. package/dist/agent-runtime/history/run-history-parts.d.ts +14 -0
  72. package/dist/agent-runtime/history/run-history-parts.d.ts.map +1 -0
  73. package/dist/agent-runtime/loop/admission-lanes.d.ts +35 -0
  74. package/dist/agent-runtime/loop/admission-lanes.d.ts.map +1 -0
  75. package/dist/agent-runtime/loop/coordinator.d.ts.map +1 -0
  76. package/dist/agent-runtime/loop/deferred-tool-search.d.ts +9 -0
  77. package/dist/agent-runtime/loop/deferred-tool-search.d.ts.map +1 -0
  78. package/dist/agent-runtime/loop/deferred-tool-selection.d.ts +32 -0
  79. package/dist/agent-runtime/loop/deferred-tool-selection.d.ts.map +1 -0
  80. package/dist/agent-runtime/loop/deferred-tools-internal.d.ts +19 -0
  81. package/dist/agent-runtime/loop/deferred-tools-internal.d.ts.map +1 -0
  82. package/dist/agent-runtime/loop/deferred-tools.d.ts +4 -0
  83. package/dist/agent-runtime/loop/deferred-tools.d.ts.map +1 -0
  84. package/dist/agent-runtime/loop/injection.d.ts +28 -0
  85. package/dist/agent-runtime/loop/injection.d.ts.map +1 -0
  86. package/dist/agent-runtime/loop/invocation-attempt.d.ts +32 -0
  87. package/dist/agent-runtime/loop/invocation-attempt.d.ts.map +1 -0
  88. package/dist/agent-runtime/loop/invocation-failure.d.ts.map +1 -0
  89. package/dist/agent-runtime/loop/invocation-payload.d.ts +38 -0
  90. package/dist/agent-runtime/loop/invocation-payload.d.ts.map +1 -0
  91. package/dist/agent-runtime/loop/invocation-read.d.ts +134 -0
  92. package/dist/agent-runtime/loop/invocation-read.d.ts.map +1 -0
  93. package/dist/agent-runtime/loop/invocation-spend.d.ts +9 -0
  94. package/dist/agent-runtime/loop/invocation-spend.d.ts.map +1 -0
  95. package/dist/agent-runtime/loop/invocation-stream.d.ts +20 -0
  96. package/dist/agent-runtime/loop/invocation-stream.d.ts.map +1 -0
  97. package/dist/agent-runtime/loop/invocations.d.ts +63 -0
  98. package/dist/agent-runtime/loop/invocations.d.ts.map +1 -0
  99. package/dist/agent-runtime/loop/managed-tools.d.ts +20 -0
  100. package/dist/agent-runtime/loop/managed-tools.d.ts.map +1 -0
  101. package/dist/agent-runtime/loop/observability.d.ts +579 -0
  102. package/dist/agent-runtime/loop/observability.d.ts.map +1 -0
  103. package/dist/agent-runtime/loop/owned-provider-stream.d.ts.map +1 -0
  104. package/dist/agent-runtime/loop/provider-origin.d.ts +17 -0
  105. package/dist/agent-runtime/loop/provider-origin.d.ts.map +1 -0
  106. package/dist/agent-runtime/loop/provider-stream-parts.d.ts +5 -0
  107. package/dist/agent-runtime/loop/provider-stream-parts.d.ts.map +1 -0
  108. package/dist/agent-runtime/loop/provider-stream-segments.d.ts +63 -0
  109. package/dist/agent-runtime/loop/provider-stream-segments.d.ts.map +1 -0
  110. package/dist/agent-runtime/loop/retry-policy.d.ts +49 -0
  111. package/dist/agent-runtime/loop/retry-policy.d.ts.map +1 -0
  112. package/dist/agent-runtime/loop/run-acquisition.d.ts +24 -0
  113. package/dist/agent-runtime/loop/run-acquisition.d.ts.map +1 -0
  114. package/dist/agent-runtime/loop/run-approval.d.ts +82 -0
  115. package/dist/agent-runtime/loop/run-approval.d.ts.map +1 -0
  116. package/dist/agent-runtime/loop/run-complete-retry.d.ts +24 -0
  117. package/dist/agent-runtime/loop/run-complete-retry.d.ts.map +1 -0
  118. package/dist/agent-runtime/loop/run-complete-stream.d.ts +9 -0
  119. package/dist/agent-runtime/loop/run-complete-stream.d.ts.map +1 -0
  120. package/dist/agent-runtime/loop/run-complete-types.d.ts +171 -0
  121. package/dist/agent-runtime/loop/run-complete-types.d.ts.map +1 -0
  122. package/dist/agent-runtime/loop/run-complete.d.ts +25 -0
  123. package/dist/agent-runtime/loop/run-complete.d.ts.map +1 -0
  124. package/dist/agent-runtime/loop/run-driver-compose.d.ts +21 -0
  125. package/dist/agent-runtime/loop/run-driver-compose.d.ts.map +1 -0
  126. package/dist/agent-runtime/loop/run-execution-state.d.ts +177 -0
  127. package/dist/agent-runtime/loop/run-execution-state.d.ts.map +1 -0
  128. package/dist/agent-runtime/loop/run-execution.d.ts +22 -0
  129. package/dist/agent-runtime/loop/run-execution.d.ts.map +1 -0
  130. package/dist/agent-runtime/loop/run-failure.d.ts +21 -0
  131. package/dist/agent-runtime/loop/run-failure.d.ts.map +1 -0
  132. package/dist/agent-runtime/loop/run-loop-events.d.ts +126 -0
  133. package/dist/agent-runtime/loop/run-loop-events.d.ts.map +1 -0
  134. package/dist/agent-runtime/loop/run-model-attempts.d.ts +6 -0
  135. package/dist/agent-runtime/loop/run-model-attempts.d.ts.map +1 -0
  136. package/dist/agent-runtime/loop/run-model-messages.d.ts +9 -0
  137. package/dist/agent-runtime/loop/run-model-messages.d.ts.map +1 -0
  138. package/dist/agent-runtime/loop/run-model-step.d.ts +43 -0
  139. package/dist/agent-runtime/loop/run-model-step.d.ts.map +1 -0
  140. package/dist/agent-runtime/loop/run-model-stream.d.ts +27 -0
  141. package/dist/agent-runtime/loop/run-model-stream.d.ts.map +1 -0
  142. package/dist/agent-runtime/loop/run-operation-lifecycle.d.ts +32 -0
  143. package/dist/agent-runtime/loop/run-operation-lifecycle.d.ts.map +1 -0
  144. package/dist/agent-runtime/loop/run-prompt-history.d.ts +53 -0
  145. package/dist/agent-runtime/loop/run-prompt-history.d.ts.map +1 -0
  146. package/dist/agent-runtime/loop/run-provider-ledger.d.ts +32 -0
  147. package/dist/agent-runtime/loop/run-provider-ledger.d.ts.map +1 -0
  148. package/dist/agent-runtime/loop/run-step-barriers.d.ts +120 -0
  149. package/dist/agent-runtime/loop/run-step-barriers.d.ts.map +1 -0
  150. package/dist/agent-runtime/loop/run-step-helpers.d.ts +50 -0
  151. package/dist/agent-runtime/loop/run-step-helpers.d.ts.map +1 -0
  152. package/dist/agent-runtime/loop/run-step-prepare.d.ts +34 -0
  153. package/dist/agent-runtime/loop/run-step-prepare.d.ts.map +1 -0
  154. package/dist/agent-runtime/loop/run-step-spend.d.ts +394 -0
  155. package/dist/agent-runtime/loop/run-step-spend.d.ts.map +1 -0
  156. package/dist/agent-runtime/loop/run-stream-parts.d.ts +34 -0
  157. package/dist/agent-runtime/loop/run-stream-parts.d.ts.map +1 -0
  158. package/dist/agent-runtime/loop/run-stream-recorded.d.ts +8 -0
  159. package/dist/agent-runtime/loop/run-stream-recorded.d.ts.map +1 -0
  160. package/dist/agent-runtime/loop/run-stream-step-text.d.ts +47 -0
  161. package/dist/agent-runtime/loop/run-stream-step-text.d.ts.map +1 -0
  162. package/dist/agent-runtime/loop/run-terminal.d.ts +11 -0
  163. package/dist/agent-runtime/loop/run-terminal.d.ts.map +1 -0
  164. package/dist/agent-runtime/loop/run-tool-approval-flow.d.ts +36 -0
  165. package/dist/agent-runtime/loop/run-tool-approval-flow.d.ts.map +1 -0
  166. package/dist/agent-runtime/loop/run-tool-approval-records.d.ts +24 -0
  167. package/dist/agent-runtime/loop/run-tool-approval-records.d.ts.map +1 -0
  168. package/dist/agent-runtime/loop/run-tool-call.d.ts +119 -0
  169. package/dist/agent-runtime/loop/run-tool-call.d.ts.map +1 -0
  170. package/dist/agent-runtime/loop/run-tool-errors.d.ts.map +1 -0
  171. package/dist/agent-runtime/loop/run-tool-executor.d.ts +42 -0
  172. package/dist/agent-runtime/loop/run-tool-executor.d.ts.map +1 -0
  173. package/dist/agent-runtime/loop/run-tool-progress.d.ts +21 -0
  174. package/dist/agent-runtime/loop/run-tool-progress.d.ts.map +1 -0
  175. package/dist/agent-runtime/loop/run-tool-slots.d.ts +114 -0
  176. package/dist/agent-runtime/loop/run-tool-slots.d.ts.map +1 -0
  177. package/dist/agent-runtime/loop/run-turn-preparation.d.ts +25 -0
  178. package/dist/agent-runtime/loop/run-turn-preparation.d.ts.map +1 -0
  179. package/dist/agent-runtime/loop/run-unacquired.d.ts +19 -0
  180. package/dist/agent-runtime/loop/run-unacquired.d.ts.map +1 -0
  181. package/dist/agent-runtime/loop/runtime-admission-gate.d.ts.map +1 -0
  182. package/dist/agent-runtime/loop/runtime-control.d.ts +9 -0
  183. package/dist/agent-runtime/loop/runtime-control.d.ts.map +1 -0
  184. package/dist/agent-runtime/loop/runtime-recovery.d.ts +10 -0
  185. package/dist/agent-runtime/loop/runtime-recovery.d.ts.map +1 -0
  186. package/dist/agent-runtime/loop/runtime-state.d.ts +36 -0
  187. package/dist/agent-runtime/loop/runtime-state.d.ts.map +1 -0
  188. package/dist/agent-runtime/loop/runtime-submit.d.ts +5 -0
  189. package/dist/agent-runtime/loop/runtime-submit.d.ts.map +1 -0
  190. package/dist/agent-runtime/loop/runtime.d.ts +352 -0
  191. package/dist/agent-runtime/loop/runtime.d.ts.map +1 -0
  192. package/dist/agent-runtime/loop/state-slots.d.ts +48 -0
  193. package/dist/agent-runtime/loop/state-slots.d.ts.map +1 -0
  194. package/dist/agent-runtime/loop/state-tools.d.ts +117 -0
  195. package/dist/agent-runtime/loop/state-tools.d.ts.map +1 -0
  196. package/dist/agent-runtime/protocol.d.ts +1 -1
  197. package/dist/agent-runtime/protocol.d.ts.map +1 -1
  198. package/dist/agent-runtime/providers/ai-sdk-convert.d.ts +15 -0
  199. package/dist/agent-runtime/providers/ai-sdk-convert.d.ts.map +1 -0
  200. package/dist/agent-runtime/providers/ai-sdk.d.ts +31 -0
  201. package/dist/agent-runtime/providers/ai-sdk.d.ts.map +1 -0
  202. package/dist/agent-runtime/providers/anthropic-media.d.ts +11 -0
  203. package/dist/agent-runtime/providers/anthropic-media.d.ts.map +1 -0
  204. package/dist/agent-runtime/providers/anthropic-messages.d.ts +25 -0
  205. package/dist/agent-runtime/providers/anthropic-messages.d.ts.map +1 -0
  206. package/dist/agent-runtime/providers/anthropic-options.d.ts +80 -0
  207. package/dist/agent-runtime/providers/anthropic-options.d.ts.map +1 -0
  208. package/dist/agent-runtime/providers/anthropic-response.d.ts +19 -0
  209. package/dist/agent-runtime/providers/anthropic-response.d.ts.map +1 -0
  210. package/dist/agent-runtime/providers/anthropic-sse.d.ts.map +1 -0
  211. package/dist/agent-runtime/providers/anthropic.d.ts.map +1 -0
  212. package/dist/agent-runtime/providers/models-driver-step.d.ts +212 -0
  213. package/dist/agent-runtime/providers/models-driver-step.d.ts.map +1 -0
  214. package/dist/agent-runtime/providers/models-driver-telemetry.d.ts.map +1 -0
  215. package/dist/agent-runtime/providers/models-driver.d.ts +235 -0
  216. package/dist/agent-runtime/providers/models-driver.d.ts.map +1 -0
  217. package/dist/agent-runtime/providers/models.d.ts.map +1 -0
  218. package/dist/agent-runtime/providers/openai-messages.d.ts.map +1 -0
  219. package/dist/agent-runtime/providers/openai-options.d.ts +91 -0
  220. package/dist/agent-runtime/providers/openai-options.d.ts.map +1 -0
  221. package/dist/agent-runtime/providers/openai-response.d.ts +77 -0
  222. package/dist/agent-runtime/providers/openai-response.d.ts.map +1 -0
  223. package/dist/agent-runtime/providers/openai-sse-state.d.ts.map +1 -0
  224. package/dist/agent-runtime/providers/openai-sse.d.ts.map +1 -0
  225. package/dist/agent-runtime/providers/openai.d.ts.map +1 -0
  226. package/dist/agent-runtime/providers/openrouter-admission.d.ts +85 -0
  227. package/dist/agent-runtime/providers/openrouter-admission.d.ts.map +1 -0
  228. package/dist/agent-runtime/providers/openrouter-benchmarks.d.ts.map +1 -0
  229. package/dist/agent-runtime/providers/openrouter-catalog-cache.d.ts.map +1 -0
  230. package/dist/agent-runtime/providers/openrouter-catalog-query.d.ts +82 -0
  231. package/dist/agent-runtime/providers/openrouter-catalog-query.d.ts.map +1 -0
  232. package/dist/agent-runtime/providers/openrouter-catalog.d.ts.map +1 -0
  233. package/dist/agent-runtime/providers/openrouter-models.d.ts.map +1 -0
  234. package/dist/agent-runtime/providers/openrouter-options.d.ts +136 -0
  235. package/dist/agent-runtime/providers/openrouter-options.d.ts.map +1 -0
  236. package/dist/agent-runtime/providers/openrouter-response.d.ts +22 -0
  237. package/dist/agent-runtime/providers/openrouter-response.d.ts.map +1 -0
  238. package/dist/agent-runtime/providers/openrouter-route.d.ts.map +1 -0
  239. package/dist/agent-runtime/providers/openrouter-spend.d.ts +24 -0
  240. package/dist/agent-runtime/providers/openrouter-spend.d.ts.map +1 -0
  241. package/dist/agent-runtime/providers/openrouter.d.ts.map +1 -0
  242. package/dist/agent-runtime/providers/provider-cache.d.ts +30 -0
  243. package/dist/agent-runtime/providers/provider-cache.d.ts.map +1 -0
  244. package/dist/agent-runtime/providers/provider-content.d.ts.map +1 -0
  245. package/dist/agent-runtime/providers/provider-failure.d.ts +97 -0
  246. package/dist/agent-runtime/providers/provider-failure.d.ts.map +1 -0
  247. package/dist/agent-runtime/providers/provider-history.d.ts +13 -0
  248. package/dist/agent-runtime/providers/provider-history.d.ts.map +1 -0
  249. package/dist/agent-runtime/providers/provider-http.d.ts.map +1 -0
  250. package/dist/agent-runtime/providers/provider-journal.d.ts.map +1 -0
  251. package/dist/agent-runtime/providers/provider-json-schema-strip.d.ts.map +1 -0
  252. package/dist/agent-runtime/providers/provider-json-schema.d.ts +31 -0
  253. package/dist/agent-runtime/providers/provider-json-schema.d.ts.map +1 -0
  254. package/dist/agent-runtime/providers/provider-media.d.ts +49 -0
  255. package/dist/agent-runtime/providers/provider-media.d.ts.map +1 -0
  256. package/dist/agent-runtime/providers/provider-openai-chat-helpers.d.ts +27 -0
  257. package/dist/agent-runtime/providers/provider-openai-chat-helpers.d.ts.map +1 -0
  258. package/dist/agent-runtime/providers/provider-openai-chat-sse.d.ts +25 -0
  259. package/dist/agent-runtime/providers/provider-openai-chat-sse.d.ts.map +1 -0
  260. package/dist/agent-runtime/providers/provider-openai-chat.d.ts +27 -0
  261. package/dist/agent-runtime/providers/provider-openai-chat.d.ts.map +1 -0
  262. package/dist/agent-runtime/providers/provider-sse.d.ts.map +1 -0
  263. package/dist/agent-runtime/providers/provider-usage.d.ts +24 -0
  264. package/dist/agent-runtime/providers/provider-usage.d.ts.map +1 -0
  265. package/dist/agent-runtime/realtime/harness-realtime.d.ts +53 -0
  266. package/dist/agent-runtime/realtime/harness-realtime.d.ts.map +1 -0
  267. package/dist/agent-runtime/sandbox/sandbox-binding.d.ts.map +1 -0
  268. package/dist/agent-runtime/sandbox/sandbox-broker.d.ts.map +1 -0
  269. package/dist/agent-runtime/sandbox/sandbox-bubblewrap-args.d.ts.map +1 -0
  270. package/dist/agent-runtime/sandbox/sandbox-bubblewrap-storage.d.ts.map +1 -0
  271. package/dist/agent-runtime/sandbox/sandbox-bubblewrap.d.ts.map +1 -0
  272. package/dist/agent-runtime/sandbox/sandbox-coding-adapter.d.ts.map +1 -0
  273. package/dist/agent-runtime/sandbox/sandbox-contract.d.ts.map +1 -0
  274. package/dist/agent-runtime/sandbox/sandbox-process-linux.d.ts.map +1 -0
  275. package/dist/agent-runtime/sandbox/sandbox-process-macos.d.ts.map +1 -0
  276. package/dist/agent-runtime/sandbox/sandbox-process-owner.d.ts +19 -0
  277. package/dist/agent-runtime/sandbox/sandbox-process-owner.d.ts.map +1 -0
  278. package/dist/agent-runtime/sandbox/sandbox-process-spec.d.ts.map +1 -0
  279. package/dist/agent-runtime/sandbox/sandbox-process-wrapper.d.ts.map +1 -0
  280. package/dist/agent-runtime/sandbox/sandbox-process.d.ts +8 -0
  281. package/dist/agent-runtime/sandbox/sandbox-process.d.ts.map +1 -0
  282. package/dist/agent-runtime/sandbox/sandbox-session.d.ts.map +1 -0
  283. package/dist/agent-runtime/sandbox/sandbox.d.ts +125 -0
  284. package/dist/agent-runtime/sandbox/sandbox.d.ts.map +1 -0
  285. package/dist/agent-runtime/stores/archive-projection.d.ts.map +1 -0
  286. package/dist/agent-runtime/stores/archive-spill.d.ts.map +1 -0
  287. package/dist/agent-runtime/stores/branch-contract.d.ts.map +1 -0
  288. package/dist/agent-runtime/stores/branch-events.d.ts +25 -0
  289. package/dist/agent-runtime/stores/branch-events.d.ts.map +1 -0
  290. package/dist/agent-runtime/stores/branch-identities.d.ts +75 -0
  291. package/dist/agent-runtime/stores/branch-identities.d.ts.map +1 -0
  292. package/dist/agent-runtime/stores/branch-messages.d.ts +21 -0
  293. package/dist/agent-runtime/stores/branch-messages.d.ts.map +1 -0
  294. package/dist/agent-runtime/stores/branch-observations.d.ts +227 -0
  295. package/dist/agent-runtime/stores/branch-observations.d.ts.map +1 -0
  296. package/dist/agent-runtime/stores/branch-provider.d.ts.map +1 -0
  297. package/dist/agent-runtime/stores/branch-refusal.d.ts.map +1 -0
  298. package/dist/agent-runtime/stores/branch-replay.d.ts +456 -0
  299. package/dist/agent-runtime/stores/branch-replay.d.ts.map +1 -0
  300. package/dist/agent-runtime/stores/branch-runtime-tools.d.ts.map +1 -0
  301. package/dist/agent-runtime/stores/branch-source.d.ts +33 -0
  302. package/dist/agent-runtime/stores/branch-source.d.ts.map +1 -0
  303. package/dist/agent-runtime/stores/branch-transitions.d.ts.map +1 -0
  304. package/dist/agent-runtime/stores/child-blocking.d.ts.map +1 -0
  305. package/dist/agent-runtime/stores/child-budget-policy.d.ts +17 -0
  306. package/dist/agent-runtime/stores/child-budget-policy.d.ts.map +1 -0
  307. package/dist/agent-runtime/stores/child-tools.d.ts +144 -0
  308. package/dist/agent-runtime/stores/child-tools.d.ts.map +1 -0
  309. package/dist/agent-runtime/stores/children-contract.d.ts +236 -0
  310. package/dist/agent-runtime/stores/children-contract.d.ts.map +1 -0
  311. package/dist/agent-runtime/stores/children-control.d.ts.map +1 -0
  312. package/dist/agent-runtime/stores/children-spawn.d.ts.map +1 -0
  313. package/dist/agent-runtime/stores/children-state.d.ts.map +1 -0
  314. package/dist/agent-runtime/stores/children-usage.d.ts.map +1 -0
  315. package/dist/agent-runtime/stores/children.d.ts.map +1 -0
  316. package/dist/agent-runtime/stores/companion-host.d.ts +38 -0
  317. package/dist/agent-runtime/stores/companion-host.d.ts.map +1 -0
  318. package/dist/agent-runtime/stores/conversations.d.ts.map +1 -0
  319. package/dist/agent-runtime/stores/event-search-postgres.d.ts.map +1 -0
  320. package/dist/agent-runtime/stores/event-search-terms.d.ts.map +1 -0
  321. package/dist/agent-runtime/stores/event-search-tools.d.ts +190 -0
  322. package/dist/agent-runtime/stores/event-search-tools.d.ts.map +1 -0
  323. package/dist/agent-runtime/stores/event-search.d.ts.map +1 -0
  324. package/dist/agent-runtime/stores/postgres-schema.d.ts.map +1 -0
  325. package/dist/agent-runtime/stores/postgres-transactions.d.ts +54 -0
  326. package/dist/agent-runtime/stores/postgres-transactions.d.ts.map +1 -0
  327. package/dist/agent-runtime/stores/postgres.d.ts +72 -0
  328. package/dist/agent-runtime/stores/postgres.d.ts.map +1 -0
  329. package/dist/agent-runtime/stores/projections.d.ts +109 -0
  330. package/dist/agent-runtime/stores/projections.d.ts.map +1 -0
  331. package/dist/agent-runtime/stores/purge.d.ts.map +1 -0
  332. package/dist/agent-runtime/stores/schedule-contract.d.ts.map +1 -0
  333. package/dist/agent-runtime/stores/schedule-dispatch.d.ts.map +1 -0
  334. package/dist/agent-runtime/stores/schedule-records.d.ts.map +1 -0
  335. package/dist/agent-runtime/stores/schedule-tools.d.ts +76 -0
  336. package/dist/agent-runtime/stores/schedule-tools.d.ts.map +1 -0
  337. package/dist/agent-runtime/stores/schedules.d.ts.map +1 -0
  338. package/dist/agent-runtime/stores/spill.d.ts +26 -0
  339. package/dist/agent-runtime/stores/spill.d.ts.map +1 -0
  340. package/dist/agent-runtime/stores/sql-events.d.ts.map +1 -0
  341. package/dist/agent-runtime/stores/sql-history.d.ts.map +1 -0
  342. package/dist/agent-runtime/stores/sql-ledger.d.ts.map +1 -0
  343. package/dist/agent-runtime/stores/sql-purge.d.ts.map +1 -0
  344. package/dist/agent-runtime/stores/sql-reads.d.ts.map +1 -0
  345. package/dist/agent-runtime/stores/sql-rows.d.ts +202 -0
  346. package/dist/agent-runtime/stores/sql-rows.d.ts.map +1 -0
  347. package/dist/agent-runtime/stores/sql-session.d.ts.map +1 -0
  348. package/dist/agent-runtime/stores/sqlite-bun.d.ts.map +1 -0
  349. package/dist/agent-runtime/stores/sqlite-node.d.ts.map +1 -0
  350. package/dist/agent-runtime/stores/sqlite-purge.d.ts +6 -0
  351. package/dist/agent-runtime/stores/sqlite-purge.d.ts.map +1 -0
  352. package/dist/agent-runtime/stores/sqlite-schema.d.ts +7 -0
  353. package/dist/agent-runtime/stores/sqlite-schema.d.ts.map +1 -0
  354. package/dist/agent-runtime/stores/sqlite-transactions.d.ts +29 -0
  355. package/dist/agent-runtime/stores/sqlite-transactions.d.ts.map +1 -0
  356. package/dist/agent-runtime/stores/sqlite.d.ts +33 -0
  357. package/dist/agent-runtime/stores/sqlite.d.ts.map +1 -0
  358. package/dist/agent-runtime/stores/store-archive.d.ts.map +1 -0
  359. package/dist/agent-runtime/stores/store-branch.d.ts.map +1 -0
  360. package/dist/agent-runtime/stores/store-capabilities.d.ts.map +1 -0
  361. package/dist/agent-runtime/stores/store-create.d.ts.map +1 -0
  362. package/dist/agent-runtime/stores/store-driver-contract.d.ts +1016 -0
  363. package/dist/agent-runtime/stores/store-driver-contract.d.ts.map +1 -0
  364. package/dist/agent-runtime/stores/store-event-once.d.ts +37 -0
  365. package/dist/agent-runtime/stores/store-event-once.d.ts.map +1 -0
  366. package/dist/agent-runtime/stores/store-events.d.ts +2231 -0
  367. package/dist/agent-runtime/stores/store-events.d.ts.map +1 -0
  368. package/dist/agent-runtime/stores/store-memory-archive.d.ts.map +1 -0
  369. package/dist/agent-runtime/stores/store-memory-events.d.ts +7 -0
  370. package/dist/agent-runtime/stores/store-memory-events.d.ts.map +1 -0
  371. package/dist/agent-runtime/stores/store-memory.d.ts.map +1 -0
  372. package/dist/agent-runtime/stores/store-migrations/v1-to-v2.d.ts +6 -0
  373. package/dist/agent-runtime/stores/store-migrations/v1-to-v2.d.ts.map +1 -0
  374. package/dist/agent-runtime/stores/store-migrations/v2-to-v3.d.ts +14 -0
  375. package/dist/agent-runtime/stores/store-migrations/v2-to-v3.d.ts.map +1 -0
  376. package/dist/agent-runtime/stores/store-migrations/v3-to-v4.d.ts +4 -0
  377. package/dist/agent-runtime/stores/store-migrations/v3-to-v4.d.ts.map +1 -0
  378. package/dist/agent-runtime/stores/store-mutate.d.ts.map +1 -0
  379. package/dist/agent-runtime/stores/store-purge.d.ts.map +1 -0
  380. package/dist/agent-runtime/stores/store-reads.d.ts +29 -0
  381. package/dist/agent-runtime/stores/store-reads.d.ts.map +1 -0
  382. package/dist/agent-runtime/stores/store-reduce-history.d.ts +10 -0
  383. package/dist/agent-runtime/stores/store-reduce-history.d.ts.map +1 -0
  384. package/dist/agent-runtime/stores/store-reduce-run.d.ts +14 -0
  385. package/dist/agent-runtime/stores/store-reduce-run.d.ts.map +1 -0
  386. package/dist/agent-runtime/stores/store-reduce-shared.d.ts +78 -0
  387. package/dist/agent-runtime/stores/store-reduce-shared.d.ts.map +1 -0
  388. package/dist/agent-runtime/stores/store-reduce-terminal.d.ts +6 -0
  389. package/dist/agent-runtime/stores/store-reduce-terminal.d.ts.map +1 -0
  390. package/dist/agent-runtime/stores/store-reducer.d.ts +24 -0
  391. package/dist/agent-runtime/stores/store-reducer.d.ts.map +1 -0
  392. package/dist/agent-runtime/stores/store-replay.d.ts.map +1 -0
  393. package/dist/agent-runtime/stores/store-snapshot.d.ts +19 -0
  394. package/dist/agent-runtime/stores/store-snapshot.d.ts.map +1 -0
  395. package/dist/agent-runtime/stores/store.d.ts +3032 -0
  396. package/dist/agent-runtime/stores/store.d.ts.map +1 -0
  397. package/dist/agent-runtime/terminal-commit.d.ts +11 -11
  398. package/dist/agent-runtime/terminal-commit.d.ts.map +1 -1
  399. package/dist/agent-runtime/testing/fault-bench.d.ts.map +1 -0
  400. package/dist/agent-runtime/testing/run-assertions.d.ts +63 -0
  401. package/dist/agent-runtime/testing/run-assertions.d.ts.map +1 -0
  402. package/dist/agent-runtime/testing/store-conformance-branch.d.ts +7 -0
  403. package/dist/agent-runtime/testing/store-conformance-branch.d.ts.map +1 -0
  404. package/dist/agent-runtime/testing/store-conformance-capabilities.d.ts +6 -0
  405. package/dist/agent-runtime/testing/store-conformance-capabilities.d.ts.map +1 -0
  406. package/dist/agent-runtime/testing/store-conformance-event-once.d.ts +12 -0
  407. package/dist/agent-runtime/testing/store-conformance-event-once.d.ts.map +1 -0
  408. package/dist/agent-runtime/testing/store-conformance-lifecycle.d.ts +454 -0
  409. package/dist/agent-runtime/testing/store-conformance-lifecycle.d.ts.map +1 -0
  410. package/dist/agent-runtime/testing/store-conformance-ordering.d.ts +18 -0
  411. package/dist/agent-runtime/testing/store-conformance-ordering.d.ts.map +1 -0
  412. package/dist/agent-runtime/testing/store-conformance-seed.d.ts +8 -0
  413. package/dist/agent-runtime/testing/store-conformance-seed.d.ts.map +1 -0
  414. package/dist/agent-runtime/testing/store-conformance-support.d.ts +140 -0
  415. package/dist/agent-runtime/testing/store-conformance-support.d.ts.map +1 -0
  416. package/dist/agent-runtime/testing/store-conformance-terminal.d.ts +12 -0
  417. package/dist/agent-runtime/testing/store-conformance-terminal.d.ts.map +1 -0
  418. package/dist/agent-runtime/testing/store-conformance.d.ts +71 -0
  419. package/dist/agent-runtime/testing/store-conformance.d.ts.map +1 -0
  420. package/dist/agent-runtime/testing/testing.d.ts +46 -0
  421. package/dist/agent-runtime/testing/testing.d.ts.map +1 -0
  422. package/dist/application/grammy.d.ts +1 -1
  423. package/dist/browser/client-executors.d.ts.map +1 -1
  424. package/dist/browser/client.d.ts +3 -2
  425. package/dist/browser/client.d.ts.map +1 -1
  426. package/dist/browser/contract-identity.d.ts +1 -1
  427. package/dist/browser/http-fetch.d.ts +1 -1
  428. package/dist/browser/http.d.ts +6 -3
  429. package/dist/browser/http.d.ts.map +1 -1
  430. package/dist/browser/socket-io-contract.d.ts +1 -1
  431. package/dist/contract/bridge-envelope.d.ts +1 -1
  432. package/dist/contract/client-types.d.ts +4 -3
  433. package/dist/contract/client-types.d.ts.map +1 -1
  434. package/dist/contract/define.d.ts +2 -2
  435. package/dist/contract/errors-factory.d.ts +1 -1
  436. package/dist/contract/fingerprint.d.ts +1 -1
  437. package/dist/device-relay/hub.d.ts +1 -1
  438. package/dist/entrypoints/agent-executor/acp.js +38 -12
  439. package/dist/entrypoints/agent-executor/claude-sdk.js +1 -1
  440. package/dist/entrypoints/agent-executor/codex.js +2 -2
  441. package/dist/entrypoints/agent-executor/testing/claude-sdk.js +3 -3
  442. package/dist/entrypoints/agent-executor/testing.js +3 -3
  443. package/dist/entrypoints/agent-executor.js +1 -1
  444. package/dist/entrypoints/agent-runtime/ai-sdk.d.ts +3 -3
  445. package/dist/entrypoints/agent-runtime/ai-sdk.d.ts.map +1 -1
  446. package/dist/entrypoints/agent-runtime/ai-sdk.js +9 -8
  447. package/dist/entrypoints/agent-runtime/anthropic.d.ts +3 -3
  448. package/dist/entrypoints/agent-runtime/anthropic.d.ts.map +1 -1
  449. package/dist/entrypoints/agent-runtime/anthropic.js +72 -18
  450. package/dist/entrypoints/agent-runtime/browser.d.ts +6 -6
  451. package/dist/entrypoints/agent-runtime/browser.d.ts.map +1 -1
  452. package/dist/entrypoints/agent-runtime/browser.js +39 -39
  453. package/dist/entrypoints/agent-runtime/coding-tools.d.ts +1 -1
  454. package/dist/entrypoints/agent-runtime/coding-tools.d.ts.map +1 -1
  455. package/dist/entrypoints/agent-runtime/coding-tools.js +2 -2
  456. package/dist/entrypoints/agent-runtime/harness.d.ts +1 -1
  457. package/dist/entrypoints/agent-runtime/harness.d.ts.map +1 -1
  458. package/dist/entrypoints/agent-runtime/harness.js +27 -28
  459. package/dist/entrypoints/agent-runtime/openai.d.ts +3 -3
  460. package/dist/entrypoints/agent-runtime/openai.d.ts.map +1 -1
  461. package/dist/entrypoints/agent-runtime/openai.js +9 -9
  462. package/dist/entrypoints/agent-runtime/openrouter.d.ts +10 -10
  463. package/dist/entrypoints/agent-runtime/openrouter.d.ts.map +1 -1
  464. package/dist/entrypoints/agent-runtime/openrouter.js +167 -113
  465. package/dist/entrypoints/agent-runtime/postgres.d.ts +2 -2
  466. package/dist/entrypoints/agent-runtime/postgres.d.ts.map +1 -1
  467. package/dist/entrypoints/agent-runtime/postgres.js +11 -11
  468. package/dist/entrypoints/agent-runtime/react.d.ts +1 -1
  469. package/dist/entrypoints/agent-runtime/react.d.ts.map +1 -1
  470. package/dist/entrypoints/agent-runtime/react.js +1 -1
  471. package/dist/entrypoints/agent-runtime/realtime.d.ts +1 -1
  472. package/dist/entrypoints/agent-runtime/realtime.d.ts.map +1 -1
  473. package/dist/entrypoints/agent-runtime/realtime.js +5 -5
  474. package/dist/entrypoints/agent-runtime/sandbox.d.ts +9 -9
  475. package/dist/entrypoints/agent-runtime/sandbox.d.ts.map +1 -1
  476. package/dist/entrypoints/agent-runtime/sandbox.js +220 -93
  477. package/dist/entrypoints/agent-runtime/sqlite/bun.d.ts +1 -1
  478. package/dist/entrypoints/agent-runtime/sqlite/bun.d.ts.map +1 -1
  479. package/dist/entrypoints/agent-runtime/sqlite/bun.js +8 -8
  480. package/dist/entrypoints/agent-runtime/sqlite/node.d.ts +1 -1
  481. package/dist/entrypoints/agent-runtime/sqlite/node.d.ts.map +1 -1
  482. package/dist/entrypoints/agent-runtime/sqlite/node.js +8 -8
  483. package/dist/entrypoints/agent-runtime/testing.d.ts +4 -4
  484. package/dist/entrypoints/agent-runtime/testing.d.ts.map +1 -1
  485. package/dist/entrypoints/agent-runtime/testing.js +21 -21
  486. package/dist/entrypoints/agent-runtime.d.ts +50 -50
  487. package/dist/entrypoints/agent-runtime.d.ts.map +1 -1
  488. package/dist/entrypoints/agent-runtime.js +2853 -3107
  489. package/dist/entrypoints/bin/upgrade-cli.js +1 -1
  490. package/dist/entrypoints/cli.js +8 -9
  491. package/dist/entrypoints/files/packaging.js +2 -2
  492. package/dist/entrypoints/handler.js +2 -2
  493. package/dist/entrypoints/http.js +2 -2
  494. package/dist/entrypoints/index.js +2 -2
  495. package/dist/entrypoints/node.js +2 -2
  496. package/dist/entrypoints/react.js +1 -1
  497. package/dist/entrypoints/remote.js +2 -2
  498. package/dist/entrypoints/server.js +4 -4
  499. package/dist/entrypoints/testing.js +7 -9
  500. package/dist/entrypoints/tools/agent.js +476 -13
  501. package/dist/entrypoints/tools/connections.js +9 -7
  502. package/dist/entrypoints/tools/contract.js +4 -4
  503. package/dist/entrypoints/tools/invoker.js +7 -8
  504. package/dist/entrypoints/tools/mcp.js +11 -13
  505. package/dist/entrypoints/tools/toolkit.d.ts +6 -4
  506. package/dist/entrypoints/tools/toolkit.d.ts.map +1 -1
  507. package/dist/entrypoints/tools/toolkit.js +13 -20
  508. package/dist/entrypoints/tools.js +14 -15
  509. package/dist/files/native-packaging-layout.d.ts +1 -1
  510. package/dist/index-125ks2ec.js +17 -0
  511. package/dist/index-1w69rj9f.js +224 -0
  512. package/dist/index-1zy31r3b.js +26 -0
  513. package/dist/index-3czc3ykr.js +53 -0
  514. package/dist/index-3d2c45jn.js +77 -0
  515. package/dist/index-57sbckhv.js +271 -0
  516. package/dist/index-64t6pheq.js +2872 -0
  517. package/dist/index-73wq9abg.js +367 -0
  518. package/dist/index-7mjsb7zv.js +163 -0
  519. package/dist/index-84tp547a.js +981 -0
  520. package/dist/index-9be3tf6r.js +196 -0
  521. package/dist/index-a09r9ff0.js +76 -0
  522. package/dist/index-asnd4h2k.js +969 -0
  523. package/dist/index-b4c9dpzm.js +1210 -0
  524. package/dist/index-baba8ehy.js +53 -0
  525. package/dist/index-c24bj2r1.js +510 -0
  526. package/dist/index-cgjtj8zh.js +707 -0
  527. package/dist/index-d4at0q09.js +601 -0
  528. package/dist/index-de7b0kvz.js +215 -0
  529. package/dist/index-dm84tsd5.js +164 -0
  530. package/dist/index-fsw9wxk9.js +349 -0
  531. package/dist/index-gk6dq9ay.js +124 -0
  532. package/dist/index-gs0jw0hy.js +174 -0
  533. package/dist/index-hce3hbdg.js +121 -0
  534. package/dist/index-m2b49tvc.js +2343 -0
  535. package/dist/index-mcv7b2n0.js +3545 -0
  536. package/dist/index-n9358ydy.js +63 -0
  537. package/dist/index-npfdymav.js +409 -0
  538. package/dist/index-p9cab61p.js +305 -0
  539. package/dist/index-q86qnzzf.js +231 -0
  540. package/dist/index-qcy8et93.js +698 -0
  541. package/dist/index-refgnzy0.js +158 -0
  542. package/dist/index-rkphknhx.js +40 -0
  543. package/dist/index-v0j22shs.js +3781 -0
  544. package/dist/index-vse7x1qt.js +460 -0
  545. package/dist/index-wdb5jhas.js +51 -0
  546. package/dist/index-ws0awmzq.js +47 -0
  547. package/dist/index-wsv11dhg.js +725 -0
  548. package/dist/index-xbb8ysmq.js +40 -0
  549. package/dist/index-y0mwkgkf.js +7812 -0
  550. package/dist/index-yhwx4fwk.js +295 -0
  551. package/dist/index-z72vazf5.js +502 -0
  552. package/dist/index-zfrysr1e.js +710 -0
  553. package/dist/internal/postgres-query.d.ts +1 -1
  554. package/dist/json-schema/dialect.d.ts.map +1 -1
  555. package/dist/json-schema/string-format.d.ts.map +1 -1
  556. package/dist/react/query-client.d.ts +1 -1
  557. package/dist/server/bridge-host.d.ts +1 -1
  558. package/dist/server/bun.d.ts +1 -1
  559. package/dist/server/endpoint-dispatch.d.ts.map +1 -1
  560. package/dist/server/middleware/cors.d.ts +3 -3
  561. package/dist/server/middleware/cors.d.ts.map +1 -1
  562. package/dist/server/socket-io-config.d.ts +1 -1
  563. package/dist/service-host/identity.d.ts +1 -1
  564. package/dist/service-host/systemd-inspect.d.ts +1 -1
  565. package/dist/testing/manual-clock.d.ts +1 -1
  566. package/dist/tools/agent-call-context.d.ts +23 -0
  567. package/dist/tools/agent-call-context.d.ts.map +1 -0
  568. package/dist/tools/agent.d.ts.map +1 -1
  569. package/dist/tools/connections/types.d.ts +1 -1
  570. package/dist/tools/mcp/handler.d.ts +1 -1
  571. package/dist/tools/mcp/lazy-discovery.d.ts +1 -1
  572. package/dist/tools/mcp/mount.d.ts +1 -1
  573. package/dist/tools/mcp/stdio.d.ts +1 -1
  574. package/dist/tools/schema/flatten.d.ts.map +1 -1
  575. package/dist/tools/toolkit.d.ts +8 -6
  576. package/dist/tools/toolkit.d.ts.map +1 -1
  577. package/llms/agent-runtime-ai-sdk.txt +2 -2
  578. package/llms/agent-runtime-anthropic.txt +8 -4
  579. package/llms/agent-runtime-browser.txt +1 -1
  580. package/llms/agent-runtime-openrouter.txt +4 -4
  581. package/llms/agent-runtime-sandbox.txt +20 -7
  582. package/llms/agent-runtime-sqlite-bun.txt +1 -1
  583. package/llms/agent-runtime.2.txt +1 -1
  584. package/llms/agent-runtime.3.txt +23 -7
  585. package/llms/agent-runtime.4.txt +2 -2
  586. package/llms/agent-runtime.txt +23 -10
  587. package/llms/application.2.txt +4 -4
  588. package/llms/application.txt +4 -4
  589. package/llms/cli.2.txt +30 -6
  590. package/llms/cli.txt +2 -2
  591. package/llms/contract.txt +2 -2
  592. package/llms/files-packaging.txt +1 -1
  593. package/llms/geo.txt +1 -1
  594. package/llms/live.txt +1 -1
  595. package/llms/oauth.txt +4 -4
  596. package/llms/observability.txt +3 -3
  597. package/llms/primitives.txt +1 -1
  598. package/llms/process.2.txt +7 -7
  599. package/llms/react.txt +4 -4
  600. package/llms/server.2.txt +7 -7
  601. package/llms/server.3.txt +5 -5
  602. package/llms/server.4.txt +6 -6
  603. package/llms/server.txt +23 -11
  604. package/llms/stitchkit.2.txt +21 -14
  605. package/llms/stitchkit.3.txt +1 -1
  606. package/llms/stitchkit.txt +87 -87
  607. package/llms/telegram.txt +1 -1
  608. package/llms/testing.txt +4 -4
  609. package/llms/tools-connections.txt +1 -1
  610. package/llms/tools-toolkit.txt +3 -4
  611. package/llms/tools.2.txt +6 -6
  612. package/llms/tools.3.txt +8 -8
  613. package/llms/tools.4.txt +3 -3
  614. package/llms/upgrading-0.106.0-0.126.0.txt +1 -1
  615. package/llms/upgrading-0.128.0-0.135.0.txt +700 -0
  616. package/llms/upgrading-0.37.0-0.53.0.txt +7 -7
  617. package/llms/upgrading-0.69.0-0.95.0.txt +1 -1
  618. package/llms/upgrading-0.96.0-0.105.0.txt +1 -1
  619. package/llms/upgrading.txt +1 -1
  620. package/llms-full.txt +403 -248
  621. package/llms.txt +12 -12
  622. package/package.json +1 -1
  623. package/dist/agent-runtime/admission-lanes.d.ts +0 -35
  624. package/dist/agent-runtime/admission-lanes.d.ts.map +0 -1
  625. package/dist/agent-runtime/ai-sdk-convert.d.ts +0 -15
  626. package/dist/agent-runtime/ai-sdk-convert.d.ts.map +0 -1
  627. package/dist/agent-runtime/ai-sdk.d.ts +0 -31
  628. package/dist/agent-runtime/ai-sdk.d.ts.map +0 -1
  629. package/dist/agent-runtime/anthropic-media.d.ts +0 -11
  630. package/dist/agent-runtime/anthropic-media.d.ts.map +0 -1
  631. package/dist/agent-runtime/anthropic-messages.d.ts +0 -24
  632. package/dist/agent-runtime/anthropic-messages.d.ts.map +0 -1
  633. package/dist/agent-runtime/anthropic-options.d.ts +0 -79
  634. package/dist/agent-runtime/anthropic-options.d.ts.map +0 -1
  635. package/dist/agent-runtime/anthropic-response.d.ts +0 -19
  636. package/dist/agent-runtime/anthropic-response.d.ts.map +0 -1
  637. package/dist/agent-runtime/anthropic-sse.d.ts.map +0 -1
  638. package/dist/agent-runtime/anthropic.d.ts.map +0 -1
  639. package/dist/agent-runtime/archive-projection.d.ts.map +0 -1
  640. package/dist/agent-runtime/archive-spill.d.ts.map +0 -1
  641. package/dist/agent-runtime/branch-contract.d.ts.map +0 -1
  642. package/dist/agent-runtime/branch-events.d.ts +0 -25
  643. package/dist/agent-runtime/branch-events.d.ts.map +0 -1
  644. package/dist/agent-runtime/branch-identities.d.ts +0 -75
  645. package/dist/agent-runtime/branch-identities.d.ts.map +0 -1
  646. package/dist/agent-runtime/branch-messages.d.ts +0 -21
  647. package/dist/agent-runtime/branch-messages.d.ts.map +0 -1
  648. package/dist/agent-runtime/branch-observations.d.ts +0 -227
  649. package/dist/agent-runtime/branch-observations.d.ts.map +0 -1
  650. package/dist/agent-runtime/branch-provider.d.ts.map +0 -1
  651. package/dist/agent-runtime/branch-refusal.d.ts.map +0 -1
  652. package/dist/agent-runtime/branch-replay.d.ts +0 -456
  653. package/dist/agent-runtime/branch-replay.d.ts.map +0 -1
  654. package/dist/agent-runtime/branch-runtime-tools.d.ts.map +0 -1
  655. package/dist/agent-runtime/branch-source.d.ts +0 -33
  656. package/dist/agent-runtime/branch-source.d.ts.map +0 -1
  657. package/dist/agent-runtime/branch-transitions.d.ts.map +0 -1
  658. package/dist/agent-runtime/browser-control-contract.d.ts +0 -1364
  659. package/dist/agent-runtime/browser-control-contract.d.ts.map +0 -1
  660. package/dist/agent-runtime/browser-controller-view.d.ts +0 -44
  661. package/dist/agent-runtime/browser-controller-view.d.ts.map +0 -1
  662. package/dist/agent-runtime/browser-controller.d.ts +0 -53
  663. package/dist/agent-runtime/browser-controller.d.ts.map +0 -1
  664. package/dist/agent-runtime/child-blocking.d.ts.map +0 -1
  665. package/dist/agent-runtime/child-budget-policy.d.ts +0 -17
  666. package/dist/agent-runtime/child-budget-policy.d.ts.map +0 -1
  667. package/dist/agent-runtime/child-tools.d.ts +0 -144
  668. package/dist/agent-runtime/child-tools.d.ts.map +0 -1
  669. package/dist/agent-runtime/children-contract.d.ts +0 -236
  670. package/dist/agent-runtime/children-contract.d.ts.map +0 -1
  671. package/dist/agent-runtime/children-control.d.ts.map +0 -1
  672. package/dist/agent-runtime/children-spawn.d.ts.map +0 -1
  673. package/dist/agent-runtime/children-state.d.ts.map +0 -1
  674. package/dist/agent-runtime/children-usage.d.ts.map +0 -1
  675. package/dist/agent-runtime/children.d.ts.map +0 -1
  676. package/dist/agent-runtime/coding-discovery.d.ts +0 -25
  677. package/dist/agent-runtime/coding-discovery.d.ts.map +0 -1
  678. package/dist/agent-runtime/coding-sandbox.d.ts +0 -8
  679. package/dist/agent-runtime/coding-sandbox.d.ts.map +0 -1
  680. package/dist/agent-runtime/coding-search-automaton.d.ts.map +0 -1
  681. package/dist/agent-runtime/coding-search-case-fold.d.ts.map +0 -1
  682. package/dist/agent-runtime/coding-search-class-ranges.d.ts.map +0 -1
  683. package/dist/agent-runtime/coding-search-contract.d.ts.map +0 -1
  684. package/dist/agent-runtime/coding-search-limits.d.ts.map +0 -1
  685. package/dist/agent-runtime/coding-search-matcher.d.ts.map +0 -1
  686. package/dist/agent-runtime/coding-search-output.d.ts.map +0 -1
  687. package/dist/agent-runtime/coding-search-regex-syntax.d.ts.map +0 -1
  688. package/dist/agent-runtime/coding-search-unit-classes.d.ts.map +0 -1
  689. package/dist/agent-runtime/coding-shell-process.d.ts +0 -36
  690. package/dist/agent-runtime/coding-shell-process.d.ts.map +0 -1
  691. package/dist/agent-runtime/coding-tool-contract.d.ts +0 -261
  692. package/dist/agent-runtime/coding-tool-contract.d.ts.map +0 -1
  693. package/dist/agent-runtime/coding-tool-files.d.ts.map +0 -1
  694. package/dist/agent-runtime/coding-tool-listing.d.ts.map +0 -1
  695. package/dist/agent-runtime/coding-tool-paths.d.ts +0 -53
  696. package/dist/agent-runtime/coding-tool-paths.d.ts.map +0 -1
  697. package/dist/agent-runtime/coding-tool-refusals.d.ts.map +0 -1
  698. package/dist/agent-runtime/coding-tool-search-patch.d.ts.map +0 -1
  699. package/dist/agent-runtime/coding-tool-search.d.ts +0 -113
  700. package/dist/agent-runtime/coding-tool-search.d.ts.map +0 -1
  701. package/dist/agent-runtime/coding-tool-shell.d.ts.map +0 -1
  702. package/dist/agent-runtime/coding-tool-utf8.d.ts.map +0 -1
  703. package/dist/agent-runtime/coding-tools.d.ts.map +0 -1
  704. package/dist/agent-runtime/compaction.d.ts +0 -103
  705. package/dist/agent-runtime/compaction.d.ts.map +0 -1
  706. package/dist/agent-runtime/companion-host.d.ts +0 -38
  707. package/dist/agent-runtime/companion-host.d.ts.map +0 -1
  708. package/dist/agent-runtime/contained-scan-budget.d.ts.map +0 -1
  709. package/dist/agent-runtime/contained-scan-contract.d.ts.map +0 -1
  710. package/dist/agent-runtime/contained-scan.d.ts +0 -56
  711. package/dist/agent-runtime/contained-scan.d.ts.map +0 -1
  712. package/dist/agent-runtime/control-interaction-schema.d.ts.map +0 -1
  713. package/dist/agent-runtime/control-schema.d.ts +0 -1378
  714. package/dist/agent-runtime/control-schema.d.ts.map +0 -1
  715. package/dist/agent-runtime/control-view.d.ts +0 -64
  716. package/dist/agent-runtime/control-view.d.ts.map +0 -1
  717. package/dist/agent-runtime/conversations.d.ts.map +0 -1
  718. package/dist/agent-runtime/coordinator.d.ts.map +0 -1
  719. package/dist/agent-runtime/deferred-tool-search.d.ts +0 -9
  720. package/dist/agent-runtime/deferred-tool-search.d.ts.map +0 -1
  721. package/dist/agent-runtime/deferred-tool-selection.d.ts +0 -32
  722. package/dist/agent-runtime/deferred-tool-selection.d.ts.map +0 -1
  723. package/dist/agent-runtime/deferred-tools-internal.d.ts +0 -9
  724. package/dist/agent-runtime/deferred-tools-internal.d.ts.map +0 -1
  725. package/dist/agent-runtime/deferred-tools.d.ts +0 -4
  726. package/dist/agent-runtime/deferred-tools.d.ts.map +0 -1
  727. package/dist/agent-runtime/event-search-postgres.d.ts.map +0 -1
  728. package/dist/agent-runtime/event-search-terms.d.ts.map +0 -1
  729. package/dist/agent-runtime/event-search-tools.d.ts +0 -190
  730. package/dist/agent-runtime/event-search-tools.d.ts.map +0 -1
  731. package/dist/agent-runtime/event-search.d.ts.map +0 -1
  732. package/dist/agent-runtime/fault-bench.d.ts.map +0 -1
  733. package/dist/agent-runtime/harness-contract.d.ts +0 -206
  734. package/dist/agent-runtime/harness-contract.d.ts.map +0 -1
  735. package/dist/agent-runtime/harness-control.d.ts +0 -34
  736. package/dist/agent-runtime/harness-control.d.ts.map +0 -1
  737. package/dist/agent-runtime/harness-file-resources.d.ts +0 -33
  738. package/dist/agent-runtime/harness-file-resources.d.ts.map +0 -1
  739. package/dist/agent-runtime/harness-realtime.d.ts +0 -53
  740. package/dist/agent-runtime/harness-realtime.d.ts.map +0 -1
  741. package/dist/agent-runtime/harness-resources.d.ts.map +0 -1
  742. package/dist/agent-runtime/harness.d.ts +0 -15
  743. package/dist/agent-runtime/harness.d.ts.map +0 -1
  744. package/dist/agent-runtime/history.d.ts +0 -93
  745. package/dist/agent-runtime/history.d.ts.map +0 -1
  746. package/dist/agent-runtime/injection.d.ts +0 -28
  747. package/dist/agent-runtime/injection.d.ts.map +0 -1
  748. package/dist/agent-runtime/invocation-attempt.d.ts +0 -32
  749. package/dist/agent-runtime/invocation-attempt.d.ts.map +0 -1
  750. package/dist/agent-runtime/invocation-failure.d.ts.map +0 -1
  751. package/dist/agent-runtime/invocation-payload.d.ts +0 -38
  752. package/dist/agent-runtime/invocation-payload.d.ts.map +0 -1
  753. package/dist/agent-runtime/invocation-read.d.ts +0 -134
  754. package/dist/agent-runtime/invocation-read.d.ts.map +0 -1
  755. package/dist/agent-runtime/invocation-spend.d.ts +0 -9
  756. package/dist/agent-runtime/invocation-spend.d.ts.map +0 -1
  757. package/dist/agent-runtime/invocation-stream.d.ts +0 -20
  758. package/dist/agent-runtime/invocation-stream.d.ts.map +0 -1
  759. package/dist/agent-runtime/invocations.d.ts +0 -63
  760. package/dist/agent-runtime/invocations.d.ts.map +0 -1
  761. package/dist/agent-runtime/managed-tools.d.ts +0 -20
  762. package/dist/agent-runtime/managed-tools.d.ts.map +0 -1
  763. package/dist/agent-runtime/models-driver-step.d.ts +0 -212
  764. package/dist/agent-runtime/models-driver-step.d.ts.map +0 -1
  765. package/dist/agent-runtime/models-driver-telemetry.d.ts.map +0 -1
  766. package/dist/agent-runtime/models-driver.d.ts +0 -235
  767. package/dist/agent-runtime/models-driver.d.ts.map +0 -1
  768. package/dist/agent-runtime/models.d.ts.map +0 -1
  769. package/dist/agent-runtime/observability.d.ts +0 -579
  770. package/dist/agent-runtime/observability.d.ts.map +0 -1
  771. package/dist/agent-runtime/openai-messages.d.ts.map +0 -1
  772. package/dist/agent-runtime/openai-options.d.ts +0 -91
  773. package/dist/agent-runtime/openai-options.d.ts.map +0 -1
  774. package/dist/agent-runtime/openai-response.d.ts +0 -77
  775. package/dist/agent-runtime/openai-response.d.ts.map +0 -1
  776. package/dist/agent-runtime/openai-sse-state.d.ts.map +0 -1
  777. package/dist/agent-runtime/openai-sse.d.ts.map +0 -1
  778. package/dist/agent-runtime/openai.d.ts.map +0 -1
  779. package/dist/agent-runtime/openrouter-admission.d.ts +0 -84
  780. package/dist/agent-runtime/openrouter-admission.d.ts.map +0 -1
  781. package/dist/agent-runtime/openrouter-benchmarks.d.ts.map +0 -1
  782. package/dist/agent-runtime/openrouter-catalog-cache.d.ts.map +0 -1
  783. package/dist/agent-runtime/openrouter-catalog-query.d.ts +0 -57
  784. package/dist/agent-runtime/openrouter-catalog-query.d.ts.map +0 -1
  785. package/dist/agent-runtime/openrouter-catalog.d.ts.map +0 -1
  786. package/dist/agent-runtime/openrouter-models.d.ts.map +0 -1
  787. package/dist/agent-runtime/openrouter-options.d.ts +0 -136
  788. package/dist/agent-runtime/openrouter-options.d.ts.map +0 -1
  789. package/dist/agent-runtime/openrouter-response.d.ts +0 -22
  790. package/dist/agent-runtime/openrouter-response.d.ts.map +0 -1
  791. package/dist/agent-runtime/openrouter-route.d.ts.map +0 -1
  792. package/dist/agent-runtime/openrouter-spend.d.ts +0 -24
  793. package/dist/agent-runtime/openrouter-spend.d.ts.map +0 -1
  794. package/dist/agent-runtime/openrouter.d.ts.map +0 -1
  795. package/dist/agent-runtime/owned-provider-stream.d.ts.map +0 -1
  796. package/dist/agent-runtime/postgres-schema.d.ts.map +0 -1
  797. package/dist/agent-runtime/postgres-transactions.d.ts +0 -54
  798. package/dist/agent-runtime/postgres-transactions.d.ts.map +0 -1
  799. package/dist/agent-runtime/postgres.d.ts +0 -72
  800. package/dist/agent-runtime/postgres.d.ts.map +0 -1
  801. package/dist/agent-runtime/projections.d.ts +0 -109
  802. package/dist/agent-runtime/projections.d.ts.map +0 -1
  803. package/dist/agent-runtime/provider-cache.d.ts +0 -30
  804. package/dist/agent-runtime/provider-cache.d.ts.map +0 -1
  805. package/dist/agent-runtime/provider-content.d.ts.map +0 -1
  806. package/dist/agent-runtime/provider-failure.d.ts +0 -95
  807. package/dist/agent-runtime/provider-failure.d.ts.map +0 -1
  808. package/dist/agent-runtime/provider-history.d.ts +0 -13
  809. package/dist/agent-runtime/provider-history.d.ts.map +0 -1
  810. package/dist/agent-runtime/provider-http.d.ts.map +0 -1
  811. package/dist/agent-runtime/provider-journal.d.ts.map +0 -1
  812. package/dist/agent-runtime/provider-json-schema-strip.d.ts.map +0 -1
  813. package/dist/agent-runtime/provider-json-schema.d.ts +0 -28
  814. package/dist/agent-runtime/provider-json-schema.d.ts.map +0 -1
  815. package/dist/agent-runtime/provider-media.d.ts +0 -49
  816. package/dist/agent-runtime/provider-media.d.ts.map +0 -1
  817. package/dist/agent-runtime/provider-openai-chat-helpers.d.ts +0 -27
  818. package/dist/agent-runtime/provider-openai-chat-helpers.d.ts.map +0 -1
  819. package/dist/agent-runtime/provider-openai-chat-sse.d.ts +0 -25
  820. package/dist/agent-runtime/provider-openai-chat-sse.d.ts.map +0 -1
  821. package/dist/agent-runtime/provider-openai-chat.d.ts +0 -27
  822. package/dist/agent-runtime/provider-openai-chat.d.ts.map +0 -1
  823. package/dist/agent-runtime/provider-origin.d.ts +0 -10
  824. package/dist/agent-runtime/provider-origin.d.ts.map +0 -1
  825. package/dist/agent-runtime/provider-sse.d.ts.map +0 -1
  826. package/dist/agent-runtime/provider-stream-parts.d.ts +0 -5
  827. package/dist/agent-runtime/provider-stream-parts.d.ts.map +0 -1
  828. package/dist/agent-runtime/provider-stream-segments.d.ts +0 -63
  829. package/dist/agent-runtime/provider-stream-segments.d.ts.map +0 -1
  830. package/dist/agent-runtime/provider-usage.d.ts +0 -24
  831. package/dist/agent-runtime/provider-usage.d.ts.map +0 -1
  832. package/dist/agent-runtime/purge.d.ts.map +0 -1
  833. package/dist/agent-runtime/react.d.ts.map +0 -1
  834. package/dist/agent-runtime/retry-policy.d.ts +0 -49
  835. package/dist/agent-runtime/retry-policy.d.ts.map +0 -1
  836. package/dist/agent-runtime/run-acquisition.d.ts +0 -24
  837. package/dist/agent-runtime/run-acquisition.d.ts.map +0 -1
  838. package/dist/agent-runtime/run-approval.d.ts +0 -82
  839. package/dist/agent-runtime/run-approval.d.ts.map +0 -1
  840. package/dist/agent-runtime/run-assertions.d.ts +0 -63
  841. package/dist/agent-runtime/run-assertions.d.ts.map +0 -1
  842. package/dist/agent-runtime/run-complete-retry.d.ts +0 -24
  843. package/dist/agent-runtime/run-complete-retry.d.ts.map +0 -1
  844. package/dist/agent-runtime/run-complete-stream.d.ts +0 -9
  845. package/dist/agent-runtime/run-complete-stream.d.ts.map +0 -1
  846. package/dist/agent-runtime/run-complete-tools.d.ts +0 -21
  847. package/dist/agent-runtime/run-complete-tools.d.ts.map +0 -1
  848. package/dist/agent-runtime/run-complete-types.d.ts +0 -168
  849. package/dist/agent-runtime/run-complete-types.d.ts.map +0 -1
  850. package/dist/agent-runtime/run-complete.d.ts +0 -25
  851. package/dist/agent-runtime/run-complete.d.ts.map +0 -1
  852. package/dist/agent-runtime/run-driver-compose.d.ts +0 -21
  853. package/dist/agent-runtime/run-driver-compose.d.ts.map +0 -1
  854. package/dist/agent-runtime/run-execution-state.d.ts +0 -178
  855. package/dist/agent-runtime/run-execution-state.d.ts.map +0 -1
  856. package/dist/agent-runtime/run-execution.d.ts +0 -22
  857. package/dist/agent-runtime/run-execution.d.ts.map +0 -1
  858. package/dist/agent-runtime/run-failure.d.ts +0 -21
  859. package/dist/agent-runtime/run-failure.d.ts.map +0 -1
  860. package/dist/agent-runtime/run-history-parts.d.ts +0 -14
  861. package/dist/agent-runtime/run-history-parts.d.ts.map +0 -1
  862. package/dist/agent-runtime/run-loop-events.d.ts +0 -126
  863. package/dist/agent-runtime/run-loop-events.d.ts.map +0 -1
  864. package/dist/agent-runtime/run-model-attempts.d.ts +0 -6
  865. package/dist/agent-runtime/run-model-attempts.d.ts.map +0 -1
  866. package/dist/agent-runtime/run-model-messages.d.ts +0 -9
  867. package/dist/agent-runtime/run-model-messages.d.ts.map +0 -1
  868. package/dist/agent-runtime/run-model-step.d.ts +0 -43
  869. package/dist/agent-runtime/run-model-step.d.ts.map +0 -1
  870. package/dist/agent-runtime/run-model-stream.d.ts +0 -27
  871. package/dist/agent-runtime/run-model-stream.d.ts.map +0 -1
  872. package/dist/agent-runtime/run-operation-lifecycle.d.ts +0 -32
  873. package/dist/agent-runtime/run-operation-lifecycle.d.ts.map +0 -1
  874. package/dist/agent-runtime/run-prompt-history.d.ts +0 -53
  875. package/dist/agent-runtime/run-prompt-history.d.ts.map +0 -1
  876. package/dist/agent-runtime/run-provider-ledger.d.ts +0 -32
  877. package/dist/agent-runtime/run-provider-ledger.d.ts.map +0 -1
  878. package/dist/agent-runtime/run-step-barriers.d.ts +0 -114
  879. package/dist/agent-runtime/run-step-barriers.d.ts.map +0 -1
  880. package/dist/agent-runtime/run-step-helpers.d.ts +0 -49
  881. package/dist/agent-runtime/run-step-helpers.d.ts.map +0 -1
  882. package/dist/agent-runtime/run-step-prepare.d.ts +0 -34
  883. package/dist/agent-runtime/run-step-prepare.d.ts.map +0 -1
  884. package/dist/agent-runtime/run-step-spend.d.ts +0 -394
  885. package/dist/agent-runtime/run-step-spend.d.ts.map +0 -1
  886. package/dist/agent-runtime/run-stream-parts.d.ts +0 -34
  887. package/dist/agent-runtime/run-stream-parts.d.ts.map +0 -1
  888. package/dist/agent-runtime/run-stream-recorded.d.ts +0 -8
  889. package/dist/agent-runtime/run-stream-recorded.d.ts.map +0 -1
  890. package/dist/agent-runtime/run-stream-step-text.d.ts +0 -29
  891. package/dist/agent-runtime/run-stream-step-text.d.ts.map +0 -1
  892. package/dist/agent-runtime/run-terminal.d.ts +0 -11
  893. package/dist/agent-runtime/run-terminal.d.ts.map +0 -1
  894. package/dist/agent-runtime/run-tool-approval-flow.d.ts +0 -36
  895. package/dist/agent-runtime/run-tool-approval-flow.d.ts.map +0 -1
  896. package/dist/agent-runtime/run-tool-approval-records.d.ts +0 -24
  897. package/dist/agent-runtime/run-tool-approval-records.d.ts.map +0 -1
  898. package/dist/agent-runtime/run-tool-call.d.ts +0 -73
  899. package/dist/agent-runtime/run-tool-call.d.ts.map +0 -1
  900. package/dist/agent-runtime/run-tool-errors.d.ts.map +0 -1
  901. package/dist/agent-runtime/run-tool-executor.d.ts +0 -34
  902. package/dist/agent-runtime/run-tool-executor.d.ts.map +0 -1
  903. package/dist/agent-runtime/run-tool-progress.d.ts +0 -21
  904. package/dist/agent-runtime/run-tool-progress.d.ts.map +0 -1
  905. package/dist/agent-runtime/run-turn-preparation.d.ts +0 -25
  906. package/dist/agent-runtime/run-turn-preparation.d.ts.map +0 -1
  907. package/dist/agent-runtime/run-unacquired.d.ts +0 -19
  908. package/dist/agent-runtime/run-unacquired.d.ts.map +0 -1
  909. package/dist/agent-runtime/runtime-admission-gate.d.ts.map +0 -1
  910. package/dist/agent-runtime/runtime-control.d.ts +0 -9
  911. package/dist/agent-runtime/runtime-control.d.ts.map +0 -1
  912. package/dist/agent-runtime/runtime-recovery.d.ts +0 -10
  913. package/dist/agent-runtime/runtime-recovery.d.ts.map +0 -1
  914. package/dist/agent-runtime/runtime-state.d.ts +0 -36
  915. package/dist/agent-runtime/runtime-state.d.ts.map +0 -1
  916. package/dist/agent-runtime/runtime-submit.d.ts +0 -5
  917. package/dist/agent-runtime/runtime-submit.d.ts.map +0 -1
  918. package/dist/agent-runtime/runtime.d.ts +0 -352
  919. package/dist/agent-runtime/runtime.d.ts.map +0 -1
  920. package/dist/agent-runtime/sandbox-binding.d.ts.map +0 -1
  921. package/dist/agent-runtime/sandbox-broker.d.ts.map +0 -1
  922. package/dist/agent-runtime/sandbox-bubblewrap-args.d.ts.map +0 -1
  923. package/dist/agent-runtime/sandbox-bubblewrap-storage.d.ts.map +0 -1
  924. package/dist/agent-runtime/sandbox-bubblewrap.d.ts.map +0 -1
  925. package/dist/agent-runtime/sandbox-coding-adapter.d.ts.map +0 -1
  926. package/dist/agent-runtime/sandbox-contract.d.ts.map +0 -1
  927. package/dist/agent-runtime/sandbox-process-linux.d.ts.map +0 -1
  928. package/dist/agent-runtime/sandbox-process-macos.d.ts.map +0 -1
  929. package/dist/agent-runtime/sandbox-process-owner.d.ts +0 -19
  930. package/dist/agent-runtime/sandbox-process-owner.d.ts.map +0 -1
  931. package/dist/agent-runtime/sandbox-process-spec.d.ts.map +0 -1
  932. package/dist/agent-runtime/sandbox-process-wrapper.d.ts.map +0 -1
  933. package/dist/agent-runtime/sandbox-process.d.ts +0 -8
  934. package/dist/agent-runtime/sandbox-process.d.ts.map +0 -1
  935. package/dist/agent-runtime/sandbox-session.d.ts.map +0 -1
  936. package/dist/agent-runtime/sandbox.d.ts +0 -125
  937. package/dist/agent-runtime/sandbox.d.ts.map +0 -1
  938. package/dist/agent-runtime/schedule-contract.d.ts.map +0 -1
  939. package/dist/agent-runtime/schedule-dispatch.d.ts.map +0 -1
  940. package/dist/agent-runtime/schedule-records.d.ts.map +0 -1
  941. package/dist/agent-runtime/schedule-tools.d.ts +0 -76
  942. package/dist/agent-runtime/schedule-tools.d.ts.map +0 -1
  943. package/dist/agent-runtime/schedules.d.ts.map +0 -1
  944. package/dist/agent-runtime/spill.d.ts +0 -26
  945. package/dist/agent-runtime/spill.d.ts.map +0 -1
  946. package/dist/agent-runtime/sql-events.d.ts.map +0 -1
  947. package/dist/agent-runtime/sql-history.d.ts.map +0 -1
  948. package/dist/agent-runtime/sql-ledger.d.ts.map +0 -1
  949. package/dist/agent-runtime/sql-purge.d.ts.map +0 -1
  950. package/dist/agent-runtime/sql-reads.d.ts.map +0 -1
  951. package/dist/agent-runtime/sql-rows.d.ts +0 -202
  952. package/dist/agent-runtime/sql-rows.d.ts.map +0 -1
  953. package/dist/agent-runtime/sql-session.d.ts.map +0 -1
  954. package/dist/agent-runtime/sqlite-bun.d.ts.map +0 -1
  955. package/dist/agent-runtime/sqlite-node.d.ts.map +0 -1
  956. package/dist/agent-runtime/sqlite-purge.d.ts +0 -6
  957. package/dist/agent-runtime/sqlite-purge.d.ts.map +0 -1
  958. package/dist/agent-runtime/sqlite-schema.d.ts +0 -7
  959. package/dist/agent-runtime/sqlite-schema.d.ts.map +0 -1
  960. package/dist/agent-runtime/sqlite-transactions.d.ts +0 -29
  961. package/dist/agent-runtime/sqlite-transactions.d.ts.map +0 -1
  962. package/dist/agent-runtime/sqlite.d.ts +0 -33
  963. package/dist/agent-runtime/sqlite.d.ts.map +0 -1
  964. package/dist/agent-runtime/state-slots.d.ts +0 -48
  965. package/dist/agent-runtime/state-slots.d.ts.map +0 -1
  966. package/dist/agent-runtime/state-tools.d.ts +0 -117
  967. package/dist/agent-runtime/state-tools.d.ts.map +0 -1
  968. package/dist/agent-runtime/store-archive.d.ts.map +0 -1
  969. package/dist/agent-runtime/store-branch.d.ts.map +0 -1
  970. package/dist/agent-runtime/store-capabilities.d.ts.map +0 -1
  971. package/dist/agent-runtime/store-conformance-branch.d.ts +0 -7
  972. package/dist/agent-runtime/store-conformance-branch.d.ts.map +0 -1
  973. package/dist/agent-runtime/store-conformance-capabilities.d.ts +0 -6
  974. package/dist/agent-runtime/store-conformance-capabilities.d.ts.map +0 -1
  975. package/dist/agent-runtime/store-conformance-event-once.d.ts +0 -12
  976. package/dist/agent-runtime/store-conformance-event-once.d.ts.map +0 -1
  977. package/dist/agent-runtime/store-conformance-lifecycle.d.ts +0 -454
  978. package/dist/agent-runtime/store-conformance-lifecycle.d.ts.map +0 -1
  979. package/dist/agent-runtime/store-conformance-ordering.d.ts +0 -18
  980. package/dist/agent-runtime/store-conformance-ordering.d.ts.map +0 -1
  981. package/dist/agent-runtime/store-conformance-seed.d.ts +0 -8
  982. package/dist/agent-runtime/store-conformance-seed.d.ts.map +0 -1
  983. package/dist/agent-runtime/store-conformance-support.d.ts +0 -140
  984. package/dist/agent-runtime/store-conformance-support.d.ts.map +0 -1
  985. package/dist/agent-runtime/store-conformance-terminal.d.ts +0 -12
  986. package/dist/agent-runtime/store-conformance-terminal.d.ts.map +0 -1
  987. package/dist/agent-runtime/store-conformance.d.ts +0 -71
  988. package/dist/agent-runtime/store-conformance.d.ts.map +0 -1
  989. package/dist/agent-runtime/store-create.d.ts.map +0 -1
  990. package/dist/agent-runtime/store-driver-contract.d.ts +0 -1016
  991. package/dist/agent-runtime/store-driver-contract.d.ts.map +0 -1
  992. package/dist/agent-runtime/store-event-once.d.ts +0 -37
  993. package/dist/agent-runtime/store-event-once.d.ts.map +0 -1
  994. package/dist/agent-runtime/store-events.d.ts +0 -2231
  995. package/dist/agent-runtime/store-events.d.ts.map +0 -1
  996. package/dist/agent-runtime/store-memory-archive.d.ts.map +0 -1
  997. package/dist/agent-runtime/store-memory-events.d.ts +0 -7
  998. package/dist/agent-runtime/store-memory-events.d.ts.map +0 -1
  999. package/dist/agent-runtime/store-memory.d.ts.map +0 -1
  1000. package/dist/agent-runtime/store-migrations/v1-to-v2.d.ts +0 -6
  1001. package/dist/agent-runtime/store-migrations/v1-to-v2.d.ts.map +0 -1
  1002. package/dist/agent-runtime/store-migrations/v2-to-v3.d.ts +0 -14
  1003. package/dist/agent-runtime/store-migrations/v2-to-v3.d.ts.map +0 -1
  1004. package/dist/agent-runtime/store-migrations/v3-to-v4.d.ts +0 -4
  1005. package/dist/agent-runtime/store-migrations/v3-to-v4.d.ts.map +0 -1
  1006. package/dist/agent-runtime/store-mutate.d.ts.map +0 -1
  1007. package/dist/agent-runtime/store-purge.d.ts.map +0 -1
  1008. package/dist/agent-runtime/store-reads.d.ts +0 -29
  1009. package/dist/agent-runtime/store-reads.d.ts.map +0 -1
  1010. package/dist/agent-runtime/store-reduce-history.d.ts +0 -10
  1011. package/dist/agent-runtime/store-reduce-history.d.ts.map +0 -1
  1012. package/dist/agent-runtime/store-reduce-run.d.ts +0 -14
  1013. package/dist/agent-runtime/store-reduce-run.d.ts.map +0 -1
  1014. package/dist/agent-runtime/store-reduce-shared.d.ts +0 -78
  1015. package/dist/agent-runtime/store-reduce-shared.d.ts.map +0 -1
  1016. package/dist/agent-runtime/store-reduce-terminal.d.ts +0 -6
  1017. package/dist/agent-runtime/store-reduce-terminal.d.ts.map +0 -1
  1018. package/dist/agent-runtime/store-reducer.d.ts +0 -24
  1019. package/dist/agent-runtime/store-reducer.d.ts.map +0 -1
  1020. package/dist/agent-runtime/store-replay.d.ts.map +0 -1
  1021. package/dist/agent-runtime/store-snapshot.d.ts +0 -19
  1022. package/dist/agent-runtime/store-snapshot.d.ts.map +0 -1
  1023. package/dist/agent-runtime/store.d.ts +0 -3032
  1024. package/dist/agent-runtime/store.d.ts.map +0 -1
  1025. package/dist/agent-runtime/testing.d.ts +0 -46
  1026. package/dist/agent-runtime/testing.d.ts.map +0 -1
  1027. package/dist/agent-runtime/workspace-glob.d.ts.map +0 -1
  1028. package/dist/index-18pf56dq.js +0 -409
  1029. package/dist/index-1gmgwfn3.js +0 -439
  1030. package/dist/index-23wn8sgf.js +0 -47
  1031. package/dist/index-27hck3z2.js +0 -307
  1032. package/dist/index-27srek2g.js +0 -3781
  1033. package/dist/index-360j58vb.js +0 -63
  1034. package/dist/index-654rhe5d.js +0 -159
  1035. package/dist/index-67pnt4bh.js +0 -174
  1036. package/dist/index-6kpwkpgx.js +0 -415
  1037. package/dist/index-6xw1wf4m.js +0 -969
  1038. package/dist/index-6yb4stq3.js +0 -224
  1039. package/dist/index-76yhxa41.js +0 -725
  1040. package/dist/index-79vqbjcz.js +0 -26
  1041. package/dist/index-b23s6e2c.js +0 -158
  1042. package/dist/index-cb4nnvfr.js +0 -40
  1043. package/dist/index-ek9w11r0.js +0 -40
  1044. package/dist/index-epyj7ptp.js +0 -510
  1045. package/dist/index-er483f3w.js +0 -601
  1046. package/dist/index-fjac2w5e.js +0 -3543
  1047. package/dist/index-ga6avd48.js +0 -53
  1048. package/dist/index-hy4653g4.js +0 -345
  1049. package/dist/index-j903yhp4.js +0 -121
  1050. package/dist/index-jzdbkanz.js +0 -215
  1051. package/dist/index-k9g061ma.js +0 -164
  1052. package/dist/index-kdw0n92g.js +0 -76
  1053. package/dist/index-krekhmp7.js +0 -707
  1054. package/dist/index-ky79wwgs.js +0 -2872
  1055. package/dist/index-mgr0mdqp.js +0 -271
  1056. package/dist/index-mrng24wq.js +0 -1210
  1057. package/dist/index-mx2gya05.js +0 -465
  1058. package/dist/index-nfeafbzh.js +0 -7379
  1059. package/dist/index-ngwf1s3c.js +0 -51
  1060. package/dist/index-pjjh91vw.js +0 -53
  1061. package/dist/index-qv5v6w9c.js +0 -696
  1062. package/dist/index-qymek778.js +0 -2289
  1063. package/dist/index-rj32hkkp.js +0 -305
  1064. package/dist/index-t5zp1jjj.js +0 -77
  1065. package/dist/index-v5hmyef8.js +0 -951
  1066. package/dist/index-vv0hxrmy.js +0 -295
  1067. package/dist/index-vxm0ya3f.js +0 -707
  1068. package/dist/index-xtxxt87z.js +0 -349
  1069. package/dist/index-zk839vzf.js +0 -231
  1070. package/llms/upgrading-0.128.0-0.134.0.txt +0 -633
  1071. /package/dist/agent-runtime/{control-interaction-schema.d.ts → browser/control-interaction-schema.d.ts} +0 -0
  1072. /package/dist/agent-runtime/{react.d.ts → browser/react.d.ts} +0 -0
  1073. /package/dist/agent-runtime/{coding-search-automaton.d.ts → coding/coding-search-automaton.d.ts} +0 -0
  1074. /package/dist/agent-runtime/{coding-search-case-fold.d.ts → coding/coding-search-case-fold.d.ts} +0 -0
  1075. /package/dist/agent-runtime/{coding-search-class-ranges.d.ts → coding/coding-search-class-ranges.d.ts} +0 -0
  1076. /package/dist/agent-runtime/{coding-search-contract.d.ts → coding/coding-search-contract.d.ts} +0 -0
  1077. /package/dist/agent-runtime/{coding-search-limits.d.ts → coding/coding-search-limits.d.ts} +0 -0
  1078. /package/dist/agent-runtime/{coding-search-matcher.d.ts → coding/coding-search-matcher.d.ts} +0 -0
  1079. /package/dist/agent-runtime/{coding-search-output.d.ts → coding/coding-search-output.d.ts} +0 -0
  1080. /package/dist/agent-runtime/{coding-search-regex-syntax.d.ts → coding/coding-search-regex-syntax.d.ts} +0 -0
  1081. /package/dist/agent-runtime/{coding-search-unit-classes.d.ts → coding/coding-search-unit-classes.d.ts} +0 -0
  1082. /package/dist/agent-runtime/{coding-tool-files.d.ts → coding/coding-tool-files.d.ts} +0 -0
  1083. /package/dist/agent-runtime/{coding-tool-listing.d.ts → coding/coding-tool-listing.d.ts} +0 -0
  1084. /package/dist/agent-runtime/{coding-tool-refusals.d.ts → coding/coding-tool-refusals.d.ts} +0 -0
  1085. /package/dist/agent-runtime/{coding-tool-search-patch.d.ts → coding/coding-tool-search-patch.d.ts} +0 -0
  1086. /package/dist/agent-runtime/{coding-tool-shell.d.ts → coding/coding-tool-shell.d.ts} +0 -0
  1087. /package/dist/agent-runtime/{coding-tool-utf8.d.ts → coding/coding-tool-utf8.d.ts} +0 -0
  1088. /package/dist/agent-runtime/{coding-tools.d.ts → coding/coding-tools.d.ts} +0 -0
  1089. /package/dist/agent-runtime/{contained-scan-budget.d.ts → coding/contained-scan-budget.d.ts} +0 -0
  1090. /package/dist/agent-runtime/{contained-scan-contract.d.ts → coding/contained-scan-contract.d.ts} +0 -0
  1091. /package/dist/agent-runtime/{workspace-glob.d.ts → coding/workspace-glob.d.ts} +0 -0
  1092. /package/dist/agent-runtime/{harness-resources.d.ts → harness/harness-resources.d.ts} +0 -0
  1093. /package/dist/agent-runtime/{coordinator.d.ts → loop/coordinator.d.ts} +0 -0
  1094. /package/dist/agent-runtime/{invocation-failure.d.ts → loop/invocation-failure.d.ts} +0 -0
  1095. /package/dist/agent-runtime/{owned-provider-stream.d.ts → loop/owned-provider-stream.d.ts} +0 -0
  1096. /package/dist/agent-runtime/{run-tool-errors.d.ts → loop/run-tool-errors.d.ts} +0 -0
  1097. /package/dist/agent-runtime/{runtime-admission-gate.d.ts → loop/runtime-admission-gate.d.ts} +0 -0
  1098. /package/dist/agent-runtime/{anthropic-sse.d.ts → providers/anthropic-sse.d.ts} +0 -0
  1099. /package/dist/agent-runtime/{anthropic.d.ts → providers/anthropic.d.ts} +0 -0
  1100. /package/dist/agent-runtime/{models-driver-telemetry.d.ts → providers/models-driver-telemetry.d.ts} +0 -0
  1101. /package/dist/agent-runtime/{models.d.ts → providers/models.d.ts} +0 -0
  1102. /package/dist/agent-runtime/{openai-messages.d.ts → providers/openai-messages.d.ts} +0 -0
  1103. /package/dist/agent-runtime/{openai-sse-state.d.ts → providers/openai-sse-state.d.ts} +0 -0
  1104. /package/dist/agent-runtime/{openai-sse.d.ts → providers/openai-sse.d.ts} +0 -0
  1105. /package/dist/agent-runtime/{openai.d.ts → providers/openai.d.ts} +0 -0
  1106. /package/dist/agent-runtime/{openrouter-benchmarks.d.ts → providers/openrouter-benchmarks.d.ts} +0 -0
  1107. /package/dist/agent-runtime/{openrouter-catalog-cache.d.ts → providers/openrouter-catalog-cache.d.ts} +0 -0
  1108. /package/dist/agent-runtime/{openrouter-catalog.d.ts → providers/openrouter-catalog.d.ts} +0 -0
  1109. /package/dist/agent-runtime/{openrouter-models.d.ts → providers/openrouter-models.d.ts} +0 -0
  1110. /package/dist/agent-runtime/{openrouter-route.d.ts → providers/openrouter-route.d.ts} +0 -0
  1111. /package/dist/agent-runtime/{openrouter.d.ts → providers/openrouter.d.ts} +0 -0
  1112. /package/dist/agent-runtime/{provider-content.d.ts → providers/provider-content.d.ts} +0 -0
  1113. /package/dist/agent-runtime/{provider-http.d.ts → providers/provider-http.d.ts} +0 -0
  1114. /package/dist/agent-runtime/{provider-journal.d.ts → providers/provider-journal.d.ts} +0 -0
  1115. /package/dist/agent-runtime/{provider-json-schema-strip.d.ts → providers/provider-json-schema-strip.d.ts} +0 -0
  1116. /package/dist/agent-runtime/{provider-sse.d.ts → providers/provider-sse.d.ts} +0 -0
  1117. /package/dist/agent-runtime/{sandbox-binding.d.ts → sandbox/sandbox-binding.d.ts} +0 -0
  1118. /package/dist/agent-runtime/{sandbox-broker.d.ts → sandbox/sandbox-broker.d.ts} +0 -0
  1119. /package/dist/agent-runtime/{sandbox-bubblewrap-args.d.ts → sandbox/sandbox-bubblewrap-args.d.ts} +0 -0
  1120. /package/dist/agent-runtime/{sandbox-bubblewrap-storage.d.ts → sandbox/sandbox-bubblewrap-storage.d.ts} +0 -0
  1121. /package/dist/agent-runtime/{sandbox-bubblewrap.d.ts → sandbox/sandbox-bubblewrap.d.ts} +0 -0
  1122. /package/dist/agent-runtime/{sandbox-coding-adapter.d.ts → sandbox/sandbox-coding-adapter.d.ts} +0 -0
  1123. /package/dist/agent-runtime/{sandbox-contract.d.ts → sandbox/sandbox-contract.d.ts} +0 -0
  1124. /package/dist/agent-runtime/{sandbox-process-linux.d.ts → sandbox/sandbox-process-linux.d.ts} +0 -0
  1125. /package/dist/agent-runtime/{sandbox-process-macos.d.ts → sandbox/sandbox-process-macos.d.ts} +0 -0
  1126. /package/dist/agent-runtime/{sandbox-process-spec.d.ts → sandbox/sandbox-process-spec.d.ts} +0 -0
  1127. /package/dist/agent-runtime/{sandbox-process-wrapper.d.ts → sandbox/sandbox-process-wrapper.d.ts} +0 -0
  1128. /package/dist/agent-runtime/{sandbox-session.d.ts → sandbox/sandbox-session.d.ts} +0 -0
  1129. /package/dist/agent-runtime/{archive-projection.d.ts → stores/archive-projection.d.ts} +0 -0
  1130. /package/dist/agent-runtime/{archive-spill.d.ts → stores/archive-spill.d.ts} +0 -0
  1131. /package/dist/agent-runtime/{branch-contract.d.ts → stores/branch-contract.d.ts} +0 -0
  1132. /package/dist/agent-runtime/{branch-provider.d.ts → stores/branch-provider.d.ts} +0 -0
  1133. /package/dist/agent-runtime/{branch-refusal.d.ts → stores/branch-refusal.d.ts} +0 -0
  1134. /package/dist/agent-runtime/{branch-runtime-tools.d.ts → stores/branch-runtime-tools.d.ts} +0 -0
  1135. /package/dist/agent-runtime/{branch-transitions.d.ts → stores/branch-transitions.d.ts} +0 -0
  1136. /package/dist/agent-runtime/{child-blocking.d.ts → stores/child-blocking.d.ts} +0 -0
  1137. /package/dist/agent-runtime/{children-control.d.ts → stores/children-control.d.ts} +0 -0
  1138. /package/dist/agent-runtime/{children-spawn.d.ts → stores/children-spawn.d.ts} +0 -0
  1139. /package/dist/agent-runtime/{children-state.d.ts → stores/children-state.d.ts} +0 -0
  1140. /package/dist/agent-runtime/{children-usage.d.ts → stores/children-usage.d.ts} +0 -0
  1141. /package/dist/agent-runtime/{children.d.ts → stores/children.d.ts} +0 -0
  1142. /package/dist/agent-runtime/{conversations.d.ts → stores/conversations.d.ts} +0 -0
  1143. /package/dist/agent-runtime/{event-search-postgres.d.ts → stores/event-search-postgres.d.ts} +0 -0
  1144. /package/dist/agent-runtime/{event-search-terms.d.ts → stores/event-search-terms.d.ts} +0 -0
  1145. /package/dist/agent-runtime/{event-search.d.ts → stores/event-search.d.ts} +0 -0
  1146. /package/dist/agent-runtime/{postgres-schema.d.ts → stores/postgres-schema.d.ts} +0 -0
  1147. /package/dist/agent-runtime/{purge.d.ts → stores/purge.d.ts} +0 -0
  1148. /package/dist/agent-runtime/{schedule-contract.d.ts → stores/schedule-contract.d.ts} +0 -0
  1149. /package/dist/agent-runtime/{schedule-dispatch.d.ts → stores/schedule-dispatch.d.ts} +0 -0
  1150. /package/dist/agent-runtime/{schedule-records.d.ts → stores/schedule-records.d.ts} +0 -0
  1151. /package/dist/agent-runtime/{schedules.d.ts → stores/schedules.d.ts} +0 -0
  1152. /package/dist/agent-runtime/{sql-events.d.ts → stores/sql-events.d.ts} +0 -0
  1153. /package/dist/agent-runtime/{sql-history.d.ts → stores/sql-history.d.ts} +0 -0
  1154. /package/dist/agent-runtime/{sql-ledger.d.ts → stores/sql-ledger.d.ts} +0 -0
  1155. /package/dist/agent-runtime/{sql-purge.d.ts → stores/sql-purge.d.ts} +0 -0
  1156. /package/dist/agent-runtime/{sql-reads.d.ts → stores/sql-reads.d.ts} +0 -0
  1157. /package/dist/agent-runtime/{sql-session.d.ts → stores/sql-session.d.ts} +0 -0
  1158. /package/dist/agent-runtime/{sqlite-bun.d.ts → stores/sqlite-bun.d.ts} +0 -0
  1159. /package/dist/agent-runtime/{sqlite-node.d.ts → stores/sqlite-node.d.ts} +0 -0
  1160. /package/dist/agent-runtime/{store-archive.d.ts → stores/store-archive.d.ts} +0 -0
  1161. /package/dist/agent-runtime/{store-branch.d.ts → stores/store-branch.d.ts} +0 -0
  1162. /package/dist/agent-runtime/{store-capabilities.d.ts → stores/store-capabilities.d.ts} +0 -0
  1163. /package/dist/agent-runtime/{store-create.d.ts → stores/store-create.d.ts} +0 -0
  1164. /package/dist/agent-runtime/{store-memory-archive.d.ts → stores/store-memory-archive.d.ts} +0 -0
  1165. /package/dist/agent-runtime/{store-memory.d.ts → stores/store-memory.d.ts} +0 -0
  1166. /package/dist/agent-runtime/{store-mutate.d.ts → stores/store-mutate.d.ts} +0 -0
  1167. /package/dist/agent-runtime/{store-purge.d.ts → stores/store-purge.d.ts} +0 -0
  1168. /package/dist/agent-runtime/{store-replay.d.ts → stores/store-replay.d.ts} +0 -0
  1169. /package/dist/agent-runtime/{fault-bench.d.ts → testing/fault-bench.d.ts} +0 -0
@@ -1,1364 +0,0 @@
1
- import { z } from 'zod';
2
- /**
3
- * Untrusted user input cannot manufacture tool evidence or supply runtime identity.
4
- */
5
- export declare const AgentBrowserRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
6
- schemaVersion: z.ZodLiteral<1>;
7
- requestId: z.ZodString;
8
- operation: z.ZodLiteral<"attach">;
9
- conversationId: z.ZodString;
10
- access: z.ZodEnum<{
11
- control: "control";
12
- observe: "observe";
13
- }>;
14
- }, z.core.$strict>, z.ZodObject<{
15
- schemaVersion: z.ZodLiteral<1>;
16
- requestId: z.ZodString;
17
- operation: z.ZodLiteral<"detach">;
18
- conversationId: z.ZodString;
19
- }, z.core.$strict>, z.ZodObject<{
20
- schemaVersion: z.ZodLiteral<1>;
21
- requestId: z.ZodString;
22
- operation: z.ZodLiteral<"snapshot">;
23
- conversationId: z.ZodString;
24
- }, z.core.$strict>, z.ZodObject<{
25
- schemaVersion: z.ZodLiteral<1>;
26
- requestId: z.ZodString;
27
- operation: z.ZodLiteral<"submit">;
28
- conversationId: z.ZodString;
29
- idempotencyKey: z.ZodString;
30
- metadata: z.ZodOptional<z.ZodUnknown>;
31
- parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
32
- type: z.ZodLiteral<"text">;
33
- text: z.ZodString;
34
- provider: z.ZodOptional<z.ZodObject<{
35
- schemaVersion: z.ZodInt;
36
- provider: z.ZodString;
37
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
38
- }, z.core.$strip>>;
39
- }, z.core.$strict>, z.ZodObject<{
40
- type: z.ZodLiteral<"file">;
41
- mediaType: z.ZodString;
42
- reference: z.ZodString;
43
- filename: z.ZodOptional<z.ZodString>;
44
- }, z.core.$strict>]>>;
45
- }, z.core.$strict>, z.ZodObject<{
46
- schemaVersion: z.ZodLiteral<1>;
47
- requestId: z.ZodString;
48
- operation: z.ZodLiteral<"interrupt">;
49
- conversationId: z.ZodString;
50
- runId: z.ZodString;
51
- }, z.core.$strict>, z.ZodObject<{
52
- schemaVersion: z.ZodLiteral<1>;
53
- requestId: z.ZodString;
54
- operation: z.ZodLiteral<"respond-approval">;
55
- conversationId: z.ZodString;
56
- approvalId: z.ZodString;
57
- approved: z.ZodBoolean;
58
- idempotencyKey: z.ZodOptional<z.ZodString>;
59
- reason: z.ZodOptional<z.ZodString>;
60
- metadata: z.ZodOptional<z.ZodUnknown>;
61
- }, z.core.$strict>, z.ZodObject<{
62
- schemaVersion: z.ZodLiteral<1>;
63
- requestId: z.ZodString;
64
- operation: z.ZodLiteral<"respond-input">;
65
- conversationId: z.ZodString;
66
- inputId: z.ZodString;
67
- idempotencyKey: z.ZodOptional<z.ZodString>;
68
- answer: z.ZodObject<{
69
- text: z.ZodOptional<z.ZodString>;
70
- answers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>>;
71
- cancelled: z.ZodOptional<z.ZodBoolean>;
72
- }, z.core.$strict>;
73
- metadata: z.ZodOptional<z.ZodUnknown>;
74
- }, z.core.$strict>, z.ZodObject<{
75
- schemaVersion: z.ZodLiteral<1>;
76
- requestId: z.ZodString;
77
- operation: z.ZodLiteral<"set-permission-mode">;
78
- conversationId: z.ZodString;
79
- permissionMode: z.ZodEnum<{
80
- "accept-edits": "accept-edits";
81
- auto: "auto";
82
- default: "default";
83
- plan: "plan";
84
- }>;
85
- }, z.core.$strict>], "operation">;
86
- /**
87
- * A request a browser may send to the agent controller (attach, send message, interrupt and so
88
- * on); the server supplies context and identity, the browser cannot.
89
- */
90
- export type AgentBrowserRequest = z.infer<typeof AgentBrowserRequestSchema>;
91
- /**
92
- * Realtime contract carrying `agent:control` requests up and `agent:delivery` events down;
93
- * bind it with `bindAgentHarnessRealtime` on the server and `createAgentController` in the
94
- * browser.
95
- */
96
- export declare const agentControlRealtimeContract: import("../realtime/index.js").RealtimeContract<{
97
- readonly 'agent:delivery': {
98
- args: z.ZodTuple<[z.ZodDiscriminatedUnion<[z.ZodObject<{
99
- schemaVersion: z.ZodLiteral<1>;
100
- type: z.ZodLiteral<"event">;
101
- event: z.ZodDiscriminatedUnion<[z.ZodObject<{
102
- type: z.ZodLiteral<"admission">;
103
- eventId: z.ZodString;
104
- conversationId: z.ZodString;
105
- runId: z.ZodString;
106
- snapshotVersion: z.ZodInt;
107
- input: z.ZodObject<{
108
- schemaVersion: z.ZodLiteral<1>;
109
- id: z.ZodString;
110
- conversationId: z.ZodString;
111
- runId: z.ZodOptional<z.ZodString>;
112
- role: z.ZodEnum<{
113
- assistant: "assistant";
114
- summary: "summary";
115
- system: "system";
116
- tool: "tool";
117
- user: "user";
118
- }>;
119
- status: z.ZodEnum<{
120
- committed: "committed";
121
- completed: "completed";
122
- failed: "failed";
123
- interrupted: "interrupted";
124
- streaming: "streaming";
125
- superseded: "superseded";
126
- }>;
127
- parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
128
- type: z.ZodLiteral<"text">;
129
- text: z.ZodString;
130
- provider: z.ZodOptional<z.ZodObject<{
131
- schemaVersion: z.ZodInt;
132
- provider: z.ZodString;
133
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
134
- }, z.core.$strip>>;
135
- }, z.core.$strip>, z.ZodObject<{
136
- type: z.ZodLiteral<"reasoning">;
137
- text: z.ZodString;
138
- provider: z.ZodOptional<z.ZodObject<{
139
- schemaVersion: z.ZodInt;
140
- provider: z.ZodString;
141
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
142
- }, z.core.$strip>>;
143
- }, z.core.$strip>, z.ZodObject<{
144
- type: z.ZodLiteral<"file">;
145
- mediaType: z.ZodString;
146
- reference: z.ZodString;
147
- filename: z.ZodOptional<z.ZodString>;
148
- }, z.core.$strip>, z.ZodObject<{
149
- type: z.ZodLiteral<"source">;
150
- sourceId: z.ZodString;
151
- url: z.ZodOptional<z.ZodURL>;
152
- title: z.ZodOptional<z.ZodString>;
153
- }, z.core.$strip>, z.ZodObject<{
154
- type: z.ZodLiteral<"tool-call">;
155
- callId: z.ZodString;
156
- toolName: z.ZodString;
157
- input: z.ZodJSONSchema;
158
- provider: z.ZodOptional<z.ZodObject<{
159
- schemaVersion: z.ZodInt;
160
- provider: z.ZodString;
161
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
162
- }, z.core.$strip>>;
163
- }, z.core.$strip>, z.ZodObject<{
164
- type: z.ZodLiteral<"tool-result">;
165
- callId: z.ZodString;
166
- toolName: z.ZodString;
167
- outcome: z.ZodEnum<{
168
- error: "error";
169
- interrupted: "interrupted";
170
- success: "success";
171
- }>;
172
- output: z.ZodOptional<z.ZodJSONSchema>;
173
- provider: z.ZodOptional<z.ZodObject<{
174
- schemaVersion: z.ZodInt;
175
- provider: z.ZodString;
176
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
177
- }, z.core.$strip>>;
178
- }, z.core.$strip>, z.ZodObject<{
179
- type: z.ZodLiteral<"tool-approval-request">;
180
- approvalId: z.ZodString;
181
- callId: z.ZodString;
182
- isAutomatic: z.ZodOptional<z.ZodBoolean>;
183
- signature: z.ZodOptional<z.ZodString>;
184
- }, z.core.$strip>, z.ZodObject<{
185
- type: z.ZodLiteral<"tool-approval-response">;
186
- approvalId: z.ZodString;
187
- approved: z.ZodBoolean;
188
- reason: z.ZodOptional<z.ZodString>;
189
- }, z.core.$strip>, z.ZodObject<{
190
- type: z.ZodLiteral<"provider">;
191
- envelope: z.ZodObject<{
192
- schemaVersion: z.ZodInt;
193
- provider: z.ZodString;
194
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
195
- }, z.core.$strip>;
196
- }, z.core.$strip>, z.ZodObject<{
197
- type: z.ZodLiteral<"control">;
198
- reason: z.ZodEnum<{
199
- "run-interrupted": "run-interrupted";
200
- "stale-run": "stale-run";
201
- }>;
202
- }, z.core.$strip>], "type">>;
203
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
204
- createdAt: z.ZodISODateTime;
205
- updatedAt: z.ZodISODateTime;
206
- }, z.core.$strip>;
207
- run: z.ZodObject<{
208
- schemaVersion: z.ZodLiteral<1>;
209
- id: z.ZodString;
210
- conversationId: z.ZodString;
211
- inputMessageIds: z.ZodArray<z.ZodString>;
212
- assistantMessageId: z.ZodString;
213
- state: z.ZodEnum<{
214
- abandoned: "abandoned";
215
- cancelled: "cancelled";
216
- completed: "completed";
217
- failed: "failed";
218
- interrupt_requested: "interrupt_requested";
219
- interrupted: "interrupted";
220
- queued: "queued";
221
- running: "running";
222
- superseded: "superseded";
223
- }>;
224
- revision: z.ZodInt;
225
- queuePriority: z.ZodOptional<z.ZodEnum<{
226
- "interrupt-next": "interrupt-next";
227
- }>>;
228
- executionSequence: z.ZodOptional<z.ZodInt>;
229
- ownerId: z.ZodOptional<z.ZodString>;
230
- fencingToken: z.ZodOptional<z.ZodInt>;
231
- terminalReason: z.ZodOptional<z.ZodEnum<{
232
- abandoned: "abandoned";
233
- absorbed: "absorbed";
234
- cancelled: "cancelled";
235
- context_overflow: "context_overflow";
236
- interrupted: "interrupted";
237
- output_rejected: "output_rejected";
238
- policy_stop: "policy_stop";
239
- provider_failure: "provider_failure";
240
- provider_stop: "provider_stop";
241
- runtime_failure: "runtime_failure";
242
- shutdown: "shutdown";
243
- storage_conflict: "storage_conflict";
244
- success: "success";
245
- superseded: "superseded";
246
- timeout: "timeout";
247
- }>>;
248
- terminalPolicyName: z.ZodOptional<z.ZodString>;
249
- absorbedIntoRunId: z.ZodOptional<z.ZodString>;
250
- usage: z.ZodOptional<z.ZodObject<{
251
- inputTokens: z.ZodObject<{
252
- value: z.ZodOptional<z.ZodInt>;
253
- provenance: z.ZodEnum<{
254
- computed: "computed";
255
- estimated: "estimated";
256
- "provider-reported": "provider-reported";
257
- unavailable: "unavailable";
258
- }>;
259
- }, z.core.$strip>;
260
- outputTokens: z.ZodObject<{
261
- value: z.ZodOptional<z.ZodInt>;
262
- provenance: z.ZodEnum<{
263
- computed: "computed";
264
- estimated: "estimated";
265
- "provider-reported": "provider-reported";
266
- unavailable: "unavailable";
267
- }>;
268
- }, z.core.$strip>;
269
- reasoningTokens: z.ZodOptional<z.ZodObject<{
270
- value: z.ZodOptional<z.ZodInt>;
271
- provenance: z.ZodEnum<{
272
- computed: "computed";
273
- estimated: "estimated";
274
- "provider-reported": "provider-reported";
275
- unavailable: "unavailable";
276
- }>;
277
- }, z.core.$strip>>;
278
- cacheReadTokens: z.ZodOptional<z.ZodObject<{
279
- value: z.ZodOptional<z.ZodInt>;
280
- provenance: z.ZodEnum<{
281
- computed: "computed";
282
- estimated: "estimated";
283
- "provider-reported": "provider-reported";
284
- unavailable: "unavailable";
285
- }>;
286
- }, z.core.$strip>>;
287
- cacheWriteTokens: z.ZodOptional<z.ZodObject<{
288
- value: z.ZodOptional<z.ZodInt>;
289
- provenance: z.ZodEnum<{
290
- computed: "computed";
291
- estimated: "estimated";
292
- "provider-reported": "provider-reported";
293
- unavailable: "unavailable";
294
- }>;
295
- }, z.core.$strip>>;
296
- cost: z.ZodOptional<z.ZodObject<{
297
- value: z.ZodOptional<z.ZodNumber>;
298
- currency: z.ZodOptional<z.ZodString>;
299
- provenance: z.ZodEnum<{
300
- computed: "computed";
301
- estimated: "estimated";
302
- "provider-reported": "provider-reported";
303
- unavailable: "unavailable";
304
- }>;
305
- }, z.core.$strip>>;
306
- }, z.core.$strip>>;
307
- lastOperation: z.ZodOptional<z.ZodObject<{
308
- operationId: z.ZodString;
309
- kind: z.ZodEnum<{
310
- compaction: "compaction";
311
- "model-request": "model-request";
312
- }>;
313
- phase: z.ZodEnum<{
314
- cancelled: "cancelled";
315
- completed: "completed";
316
- failed: "failed";
317
- "first-output": "first-output";
318
- started: "started";
319
- }>;
320
- step: z.ZodOptional<z.ZodInt>;
321
- startedAt: z.ZodISODateTime;
322
- firstOutputAt: z.ZodOptional<z.ZodISODateTime>;
323
- finishedAt: z.ZodOptional<z.ZodISODateTime>;
324
- }, z.core.$strip>>;
325
- createdAt: z.ZodISODateTime;
326
- updatedAt: z.ZodISODateTime;
327
- }, z.core.$strip>;
328
- assistant: z.ZodUnion<readonly [z.ZodObject<{
329
- schemaVersion: z.ZodLiteral<1>;
330
- id: z.ZodString;
331
- conversationId: z.ZodString;
332
- runId: z.ZodString;
333
- status: z.ZodLiteral<"pending">;
334
- createdAt: z.ZodISODateTime;
335
- updatedAt: z.ZodISODateTime;
336
- }, z.core.$strip>, z.ZodObject<{
337
- schemaVersion: z.ZodLiteral<1>;
338
- id: z.ZodString;
339
- conversationId: z.ZodString;
340
- runId: z.ZodOptional<z.ZodString>;
341
- role: z.ZodEnum<{
342
- assistant: "assistant";
343
- summary: "summary";
344
- system: "system";
345
- tool: "tool";
346
- user: "user";
347
- }>;
348
- status: z.ZodEnum<{
349
- committed: "committed";
350
- completed: "completed";
351
- failed: "failed";
352
- interrupted: "interrupted";
353
- streaming: "streaming";
354
- superseded: "superseded";
355
- }>;
356
- parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
357
- type: z.ZodLiteral<"text">;
358
- text: z.ZodString;
359
- provider: z.ZodOptional<z.ZodObject<{
360
- schemaVersion: z.ZodInt;
361
- provider: z.ZodString;
362
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
363
- }, z.core.$strip>>;
364
- }, z.core.$strip>, z.ZodObject<{
365
- type: z.ZodLiteral<"reasoning">;
366
- text: z.ZodString;
367
- provider: z.ZodOptional<z.ZodObject<{
368
- schemaVersion: z.ZodInt;
369
- provider: z.ZodString;
370
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
371
- }, z.core.$strip>>;
372
- }, z.core.$strip>, z.ZodObject<{
373
- type: z.ZodLiteral<"file">;
374
- mediaType: z.ZodString;
375
- reference: z.ZodString;
376
- filename: z.ZodOptional<z.ZodString>;
377
- }, z.core.$strip>, z.ZodObject<{
378
- type: z.ZodLiteral<"source">;
379
- sourceId: z.ZodString;
380
- url: z.ZodOptional<z.ZodURL>;
381
- title: z.ZodOptional<z.ZodString>;
382
- }, z.core.$strip>, z.ZodObject<{
383
- type: z.ZodLiteral<"tool-call">;
384
- callId: z.ZodString;
385
- toolName: z.ZodString;
386
- input: z.ZodJSONSchema;
387
- provider: z.ZodOptional<z.ZodObject<{
388
- schemaVersion: z.ZodInt;
389
- provider: z.ZodString;
390
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
391
- }, z.core.$strip>>;
392
- }, z.core.$strip>, z.ZodObject<{
393
- type: z.ZodLiteral<"tool-result">;
394
- callId: z.ZodString;
395
- toolName: z.ZodString;
396
- outcome: z.ZodEnum<{
397
- error: "error";
398
- interrupted: "interrupted";
399
- success: "success";
400
- }>;
401
- output: z.ZodOptional<z.ZodJSONSchema>;
402
- provider: z.ZodOptional<z.ZodObject<{
403
- schemaVersion: z.ZodInt;
404
- provider: z.ZodString;
405
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
406
- }, z.core.$strip>>;
407
- }, z.core.$strip>, z.ZodObject<{
408
- type: z.ZodLiteral<"tool-approval-request">;
409
- approvalId: z.ZodString;
410
- callId: z.ZodString;
411
- isAutomatic: z.ZodOptional<z.ZodBoolean>;
412
- signature: z.ZodOptional<z.ZodString>;
413
- }, z.core.$strip>, z.ZodObject<{
414
- type: z.ZodLiteral<"tool-approval-response">;
415
- approvalId: z.ZodString;
416
- approved: z.ZodBoolean;
417
- reason: z.ZodOptional<z.ZodString>;
418
- }, z.core.$strip>, z.ZodObject<{
419
- type: z.ZodLiteral<"provider">;
420
- envelope: z.ZodObject<{
421
- schemaVersion: z.ZodInt;
422
- provider: z.ZodString;
423
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
424
- }, z.core.$strip>;
425
- }, z.core.$strip>, z.ZodObject<{
426
- type: z.ZodLiteral<"control">;
427
- reason: z.ZodEnum<{
428
- "run-interrupted": "run-interrupted";
429
- "stale-run": "stale-run";
430
- }>;
431
- }, z.core.$strip>], "type">>;
432
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
433
- createdAt: z.ZodISODateTime;
434
- updatedAt: z.ZodISODateTime;
435
- }, z.core.$strip>]>;
436
- emittedAt: z.ZodISODateTime;
437
- }, z.core.$strip>, z.ZodObject<{
438
- conversationId: z.ZodString;
439
- runId: z.ZodString;
440
- emittedAt: z.ZodISODateTime;
441
- type: z.ZodLiteral<"assistant-delta">;
442
- runtimeEpoch: z.ZodString;
443
- sequence: z.ZodInt;
444
- textDelta: z.ZodString;
445
- }, z.core.$strip>, z.ZodObject<{
446
- conversationId: z.ZodString;
447
- runId: z.ZodString;
448
- emittedAt: z.ZodISODateTime;
449
- runtimeEpoch: z.ZodString;
450
- sequence: z.ZodInt;
451
- provider: z.ZodOptional<z.ZodObject<{
452
- schemaVersion: z.ZodInt;
453
- provider: z.ZodString;
454
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
455
- }, z.core.$strip>>;
456
- type: z.ZodLiteral<"reasoning-start">;
457
- }, z.core.$strip>, z.ZodObject<{
458
- conversationId: z.ZodString;
459
- runId: z.ZodString;
460
- emittedAt: z.ZodISODateTime;
461
- runtimeEpoch: z.ZodString;
462
- sequence: z.ZodInt;
463
- provider: z.ZodOptional<z.ZodObject<{
464
- schemaVersion: z.ZodInt;
465
- provider: z.ZodString;
466
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
467
- }, z.core.$strip>>;
468
- type: z.ZodLiteral<"reasoning-delta">;
469
- textDelta: z.ZodString;
470
- }, z.core.$strip>, z.ZodObject<{
471
- conversationId: z.ZodString;
472
- runId: z.ZodString;
473
- emittedAt: z.ZodISODateTime;
474
- runtimeEpoch: z.ZodString;
475
- sequence: z.ZodInt;
476
- provider: z.ZodOptional<z.ZodObject<{
477
- schemaVersion: z.ZodInt;
478
- provider: z.ZodString;
479
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
480
- }, z.core.$strip>>;
481
- type: z.ZodLiteral<"reasoning-end">;
482
- }, z.core.$strip>, z.ZodObject<{
483
- conversationId: z.ZodString;
484
- runId: z.ZodString;
485
- emittedAt: z.ZodISODateTime;
486
- type: z.ZodLiteral<"attempt-reset">;
487
- runtimeEpoch: z.ZodString;
488
- sequence: z.ZodInt;
489
- attempt: z.ZodInt;
490
- }, z.core.$strip>, z.ZodObject<{
491
- conversationId: z.ZodString;
492
- runId: z.ZodString;
493
- emittedAt: z.ZodISODateTime;
494
- type: z.ZodLiteral<"assistant-checkpoint">;
495
- eventId: z.ZodString;
496
- snapshotVersion: z.ZodInt;
497
- message: z.ZodObject<{
498
- schemaVersion: z.ZodLiteral<1>;
499
- id: z.ZodString;
500
- conversationId: z.ZodString;
501
- runId: z.ZodOptional<z.ZodString>;
502
- role: z.ZodEnum<{
503
- assistant: "assistant";
504
- summary: "summary";
505
- system: "system";
506
- tool: "tool";
507
- user: "user";
508
- }>;
509
- status: z.ZodEnum<{
510
- committed: "committed";
511
- completed: "completed";
512
- failed: "failed";
513
- interrupted: "interrupted";
514
- streaming: "streaming";
515
- superseded: "superseded";
516
- }>;
517
- parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
518
- type: z.ZodLiteral<"text">;
519
- text: z.ZodString;
520
- provider: z.ZodOptional<z.ZodObject<{
521
- schemaVersion: z.ZodInt;
522
- provider: z.ZodString;
523
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
524
- }, z.core.$strip>>;
525
- }, z.core.$strip>, z.ZodObject<{
526
- type: z.ZodLiteral<"reasoning">;
527
- text: z.ZodString;
528
- provider: z.ZodOptional<z.ZodObject<{
529
- schemaVersion: z.ZodInt;
530
- provider: z.ZodString;
531
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
532
- }, z.core.$strip>>;
533
- }, z.core.$strip>, z.ZodObject<{
534
- type: z.ZodLiteral<"file">;
535
- mediaType: z.ZodString;
536
- reference: z.ZodString;
537
- filename: z.ZodOptional<z.ZodString>;
538
- }, z.core.$strip>, z.ZodObject<{
539
- type: z.ZodLiteral<"source">;
540
- sourceId: z.ZodString;
541
- url: z.ZodOptional<z.ZodURL>;
542
- title: z.ZodOptional<z.ZodString>;
543
- }, z.core.$strip>, z.ZodObject<{
544
- type: z.ZodLiteral<"tool-call">;
545
- callId: z.ZodString;
546
- toolName: z.ZodString;
547
- input: z.ZodJSONSchema;
548
- provider: z.ZodOptional<z.ZodObject<{
549
- schemaVersion: z.ZodInt;
550
- provider: z.ZodString;
551
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
552
- }, z.core.$strip>>;
553
- }, z.core.$strip>, z.ZodObject<{
554
- type: z.ZodLiteral<"tool-result">;
555
- callId: z.ZodString;
556
- toolName: z.ZodString;
557
- outcome: z.ZodEnum<{
558
- error: "error";
559
- interrupted: "interrupted";
560
- success: "success";
561
- }>;
562
- output: z.ZodOptional<z.ZodJSONSchema>;
563
- provider: z.ZodOptional<z.ZodObject<{
564
- schemaVersion: z.ZodInt;
565
- provider: z.ZodString;
566
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
567
- }, z.core.$strip>>;
568
- }, z.core.$strip>, z.ZodObject<{
569
- type: z.ZodLiteral<"tool-approval-request">;
570
- approvalId: z.ZodString;
571
- callId: z.ZodString;
572
- isAutomatic: z.ZodOptional<z.ZodBoolean>;
573
- signature: z.ZodOptional<z.ZodString>;
574
- }, z.core.$strip>, z.ZodObject<{
575
- type: z.ZodLiteral<"tool-approval-response">;
576
- approvalId: z.ZodString;
577
- approved: z.ZodBoolean;
578
- reason: z.ZodOptional<z.ZodString>;
579
- }, z.core.$strip>, z.ZodObject<{
580
- type: z.ZodLiteral<"provider">;
581
- envelope: z.ZodObject<{
582
- schemaVersion: z.ZodInt;
583
- provider: z.ZodString;
584
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
585
- }, z.core.$strip>;
586
- }, z.core.$strip>, z.ZodObject<{
587
- type: z.ZodLiteral<"control">;
588
- reason: z.ZodEnum<{
589
- "run-interrupted": "run-interrupted";
590
- "stale-run": "stale-run";
591
- }>;
592
- }, z.core.$strip>], "type">>;
593
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
594
- createdAt: z.ZodISODateTime;
595
- updatedAt: z.ZodISODateTime;
596
- }, z.core.$strip>;
597
- metrics: z.ZodOptional<z.ZodObject<{
598
- partial: z.ZodBoolean;
599
- usage: z.ZodObject<{
600
- inputTokens: z.ZodObject<{
601
- value: z.ZodOptional<z.ZodInt>;
602
- provenance: z.ZodEnum<{
603
- computed: "computed";
604
- estimated: "estimated";
605
- "provider-reported": "provider-reported";
606
- unavailable: "unavailable";
607
- }>;
608
- }, z.core.$strip>;
609
- outputTokens: z.ZodObject<{
610
- value: z.ZodOptional<z.ZodInt>;
611
- provenance: z.ZodEnum<{
612
- computed: "computed";
613
- estimated: "estimated";
614
- "provider-reported": "provider-reported";
615
- unavailable: "unavailable";
616
- }>;
617
- }, z.core.$strip>;
618
- reasoningTokens: z.ZodOptional<z.ZodObject<{
619
- value: z.ZodOptional<z.ZodInt>;
620
- provenance: z.ZodEnum<{
621
- computed: "computed";
622
- estimated: "estimated";
623
- "provider-reported": "provider-reported";
624
- unavailable: "unavailable";
625
- }>;
626
- }, z.core.$strip>>;
627
- cacheReadTokens: z.ZodOptional<z.ZodObject<{
628
- value: z.ZodOptional<z.ZodInt>;
629
- provenance: z.ZodEnum<{
630
- computed: "computed";
631
- estimated: "estimated";
632
- "provider-reported": "provider-reported";
633
- unavailable: "unavailable";
634
- }>;
635
- }, z.core.$strip>>;
636
- cacheWriteTokens: z.ZodOptional<z.ZodObject<{
637
- value: z.ZodOptional<z.ZodInt>;
638
- provenance: z.ZodEnum<{
639
- computed: "computed";
640
- estimated: "estimated";
641
- "provider-reported": "provider-reported";
642
- unavailable: "unavailable";
643
- }>;
644
- }, z.core.$strip>>;
645
- cost: z.ZodOptional<z.ZodObject<{
646
- value: z.ZodOptional<z.ZodNumber>;
647
- currency: z.ZodOptional<z.ZodString>;
648
- provenance: z.ZodEnum<{
649
- computed: "computed";
650
- estimated: "estimated";
651
- "provider-reported": "provider-reported";
652
- unavailable: "unavailable";
653
- }>;
654
- }, z.core.$strip>>;
655
- }, z.core.$strip>;
656
- durationMs: z.ZodOptional<z.ZodNumber>;
657
- ttftMs: z.ZodOptional<z.ZodNumber>;
658
- }, z.core.$strip>>;
659
- }, z.core.$strip>, z.ZodObject<{
660
- conversationId: z.ZodString;
661
- runId: z.ZodString;
662
- emittedAt: z.ZodISODateTime;
663
- type: z.ZodLiteral<"run-state">;
664
- eventId: z.ZodString;
665
- snapshotVersion: z.ZodInt;
666
- state: z.ZodEnum<{
667
- abandoned: "abandoned";
668
- cancelled: "cancelled";
669
- completed: "completed";
670
- failed: "failed";
671
- interrupt_requested: "interrupt_requested";
672
- interrupted: "interrupted";
673
- queued: "queued";
674
- running: "running";
675
- superseded: "superseded";
676
- }>;
677
- }, z.core.$strip>, z.ZodObject<{
678
- conversationId: z.ZodString;
679
- runId: z.ZodString;
680
- emittedAt: z.ZodISODateTime;
681
- type: z.ZodLiteral<"run-operation">;
682
- eventId: z.ZodString;
683
- snapshotVersion: z.ZodInt;
684
- operation: z.ZodObject<{
685
- operationId: z.ZodString;
686
- kind: z.ZodEnum<{
687
- compaction: "compaction";
688
- "model-request": "model-request";
689
- }>;
690
- phase: z.ZodEnum<{
691
- cancelled: "cancelled";
692
- completed: "completed";
693
- failed: "failed";
694
- "first-output": "first-output";
695
- started: "started";
696
- }>;
697
- step: z.ZodOptional<z.ZodInt>;
698
- startedAt: z.ZodISODateTime;
699
- firstOutputAt: z.ZodOptional<z.ZodISODateTime>;
700
- finishedAt: z.ZodOptional<z.ZodISODateTime>;
701
- }, z.core.$strip>;
702
- }, z.core.$strip>, z.ZodObject<{
703
- conversationId: z.ZodString;
704
- runId: z.ZodString;
705
- emittedAt: z.ZodISODateTime;
706
- type: z.ZodLiteral<"tool-status">;
707
- eventId: z.ZodString;
708
- snapshotVersion: z.ZodInt;
709
- callId: z.ZodString;
710
- toolName: z.ZodString;
711
- status: z.ZodEnum<{
712
- completed: "completed";
713
- failed: "failed";
714
- interrupted: "interrupted";
715
- started: "started";
716
- }>;
717
- input: z.ZodOptional<z.ZodJSONSchema>;
718
- output: z.ZodOptional<z.ZodJSONSchema>;
719
- }, z.core.$strip>, z.ZodObject<{
720
- conversationId: z.ZodString;
721
- runId: z.ZodString;
722
- emittedAt: z.ZodISODateTime;
723
- type: z.ZodLiteral<"tool-progress">;
724
- runtimeEpoch: z.ZodString;
725
- sequence: z.ZodInt;
726
- callId: z.ZodString;
727
- toolName: z.ZodString;
728
- message: z.ZodOptional<z.ZodString>;
729
- progress: z.ZodOptional<z.ZodNumber>;
730
- total: z.ZodOptional<z.ZodNumber>;
731
- }, z.core.$strip>, z.ZodObject<{
732
- conversationId: z.ZodString;
733
- runId: z.ZodString;
734
- emittedAt: z.ZodISODateTime;
735
- type: z.ZodLiteral<"terminal">;
736
- eventId: z.ZodString;
737
- snapshotVersion: z.ZodInt;
738
- reason: z.ZodEnum<{
739
- abandoned: "abandoned";
740
- absorbed: "absorbed";
741
- cancelled: "cancelled";
742
- context_overflow: "context_overflow";
743
- interrupted: "interrupted";
744
- output_rejected: "output_rejected";
745
- policy_stop: "policy_stop";
746
- provider_failure: "provider_failure";
747
- provider_stop: "provider_stop";
748
- runtime_failure: "runtime_failure";
749
- shutdown: "shutdown";
750
- storage_conflict: "storage_conflict";
751
- success: "success";
752
- superseded: "superseded";
753
- timeout: "timeout";
754
- }>;
755
- policyName: z.ZodOptional<z.ZodString>;
756
- message: z.ZodObject<{
757
- schemaVersion: z.ZodLiteral<1>;
758
- id: z.ZodString;
759
- conversationId: z.ZodString;
760
- runId: z.ZodOptional<z.ZodString>;
761
- role: z.ZodEnum<{
762
- assistant: "assistant";
763
- summary: "summary";
764
- system: "system";
765
- tool: "tool";
766
- user: "user";
767
- }>;
768
- status: z.ZodEnum<{
769
- committed: "committed";
770
- completed: "completed";
771
- failed: "failed";
772
- interrupted: "interrupted";
773
- streaming: "streaming";
774
- superseded: "superseded";
775
- }>;
776
- parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
777
- type: z.ZodLiteral<"text">;
778
- text: z.ZodString;
779
- provider: z.ZodOptional<z.ZodObject<{
780
- schemaVersion: z.ZodInt;
781
- provider: z.ZodString;
782
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
783
- }, z.core.$strip>>;
784
- }, z.core.$strip>, z.ZodObject<{
785
- type: z.ZodLiteral<"reasoning">;
786
- text: z.ZodString;
787
- provider: z.ZodOptional<z.ZodObject<{
788
- schemaVersion: z.ZodInt;
789
- provider: z.ZodString;
790
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
791
- }, z.core.$strip>>;
792
- }, z.core.$strip>, z.ZodObject<{
793
- type: z.ZodLiteral<"file">;
794
- mediaType: z.ZodString;
795
- reference: z.ZodString;
796
- filename: z.ZodOptional<z.ZodString>;
797
- }, z.core.$strip>, z.ZodObject<{
798
- type: z.ZodLiteral<"source">;
799
- sourceId: z.ZodString;
800
- url: z.ZodOptional<z.ZodURL>;
801
- title: z.ZodOptional<z.ZodString>;
802
- }, z.core.$strip>, z.ZodObject<{
803
- type: z.ZodLiteral<"tool-call">;
804
- callId: z.ZodString;
805
- toolName: z.ZodString;
806
- input: z.ZodJSONSchema;
807
- provider: z.ZodOptional<z.ZodObject<{
808
- schemaVersion: z.ZodInt;
809
- provider: z.ZodString;
810
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
811
- }, z.core.$strip>>;
812
- }, z.core.$strip>, z.ZodObject<{
813
- type: z.ZodLiteral<"tool-result">;
814
- callId: z.ZodString;
815
- toolName: z.ZodString;
816
- outcome: z.ZodEnum<{
817
- error: "error";
818
- interrupted: "interrupted";
819
- success: "success";
820
- }>;
821
- output: z.ZodOptional<z.ZodJSONSchema>;
822
- provider: z.ZodOptional<z.ZodObject<{
823
- schemaVersion: z.ZodInt;
824
- provider: z.ZodString;
825
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
826
- }, z.core.$strip>>;
827
- }, z.core.$strip>, z.ZodObject<{
828
- type: z.ZodLiteral<"tool-approval-request">;
829
- approvalId: z.ZodString;
830
- callId: z.ZodString;
831
- isAutomatic: z.ZodOptional<z.ZodBoolean>;
832
- signature: z.ZodOptional<z.ZodString>;
833
- }, z.core.$strip>, z.ZodObject<{
834
- type: z.ZodLiteral<"tool-approval-response">;
835
- approvalId: z.ZodString;
836
- approved: z.ZodBoolean;
837
- reason: z.ZodOptional<z.ZodString>;
838
- }, z.core.$strip>, z.ZodObject<{
839
- type: z.ZodLiteral<"provider">;
840
- envelope: z.ZodObject<{
841
- schemaVersion: z.ZodInt;
842
- provider: z.ZodString;
843
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
844
- }, z.core.$strip>;
845
- }, z.core.$strip>, z.ZodObject<{
846
- type: z.ZodLiteral<"control">;
847
- reason: z.ZodEnum<{
848
- "run-interrupted": "run-interrupted";
849
- "stale-run": "stale-run";
850
- }>;
851
- }, z.core.$strip>], "type">>;
852
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
853
- createdAt: z.ZodISODateTime;
854
- updatedAt: z.ZodISODateTime;
855
- }, z.core.$strip>;
856
- metrics: z.ZodOptional<z.ZodObject<{
857
- partial: z.ZodBoolean;
858
- usage: z.ZodObject<{
859
- inputTokens: z.ZodObject<{
860
- value: z.ZodOptional<z.ZodInt>;
861
- provenance: z.ZodEnum<{
862
- computed: "computed";
863
- estimated: "estimated";
864
- "provider-reported": "provider-reported";
865
- unavailable: "unavailable";
866
- }>;
867
- }, z.core.$strip>;
868
- outputTokens: z.ZodObject<{
869
- value: z.ZodOptional<z.ZodInt>;
870
- provenance: z.ZodEnum<{
871
- computed: "computed";
872
- estimated: "estimated";
873
- "provider-reported": "provider-reported";
874
- unavailable: "unavailable";
875
- }>;
876
- }, z.core.$strip>;
877
- reasoningTokens: z.ZodOptional<z.ZodObject<{
878
- value: z.ZodOptional<z.ZodInt>;
879
- provenance: z.ZodEnum<{
880
- computed: "computed";
881
- estimated: "estimated";
882
- "provider-reported": "provider-reported";
883
- unavailable: "unavailable";
884
- }>;
885
- }, z.core.$strip>>;
886
- cacheReadTokens: z.ZodOptional<z.ZodObject<{
887
- value: z.ZodOptional<z.ZodInt>;
888
- provenance: z.ZodEnum<{
889
- computed: "computed";
890
- estimated: "estimated";
891
- "provider-reported": "provider-reported";
892
- unavailable: "unavailable";
893
- }>;
894
- }, z.core.$strip>>;
895
- cacheWriteTokens: z.ZodOptional<z.ZodObject<{
896
- value: z.ZodOptional<z.ZodInt>;
897
- provenance: z.ZodEnum<{
898
- computed: "computed";
899
- estimated: "estimated";
900
- "provider-reported": "provider-reported";
901
- unavailable: "unavailable";
902
- }>;
903
- }, z.core.$strip>>;
904
- cost: z.ZodOptional<z.ZodObject<{
905
- value: z.ZodOptional<z.ZodNumber>;
906
- currency: z.ZodOptional<z.ZodString>;
907
- provenance: z.ZodEnum<{
908
- computed: "computed";
909
- estimated: "estimated";
910
- "provider-reported": "provider-reported";
911
- unavailable: "unavailable";
912
- }>;
913
- }, z.core.$strip>>;
914
- }, z.core.$strip>;
915
- durationMs: z.ZodOptional<z.ZodNumber>;
916
- ttftMs: z.ZodOptional<z.ZodNumber>;
917
- }, z.core.$strip>>;
918
- }, z.core.$strip>], "type">;
919
- }, z.core.$strict>, z.ZodObject<{
920
- schemaVersion: z.ZodLiteral<1>;
921
- type: z.ZodLiteral<"resync-required">;
922
- conversationId: z.ZodString;
923
- reason: z.ZodLiteral<"overflow">;
924
- }, z.core.$strict>, z.ZodObject<{
925
- schemaVersion: z.ZodLiteral<1>;
926
- type: z.ZodLiteral<"access-denied">;
927
- conversationId: z.ZodString;
928
- }, z.core.$strict>, z.ZodObject<{
929
- schemaVersion: z.ZodLiteral<1>;
930
- type: z.ZodLiteral<"approval-state">;
931
- conversationId: z.ZodString;
932
- pendingApprovals: z.ZodArray<z.ZodObject<{
933
- approvalId: z.ZodString;
934
- runId: z.ZodOptional<z.ZodString>;
935
- callId: z.ZodOptional<z.ZodString>;
936
- toolName: z.ZodString;
937
- input: z.ZodOptional<z.ZodJSONSchema>;
938
- summary: z.ZodOptional<z.ZodString>;
939
- requestedAt: z.ZodOptional<z.ZodISODateTime>;
940
- signature: z.ZodOptional<z.ZodString>;
941
- }, z.core.$strict>>;
942
- }, z.core.$strict>, z.ZodObject<{
943
- schemaVersion: z.ZodLiteral<1>;
944
- type: z.ZodLiteral<"input-state">;
945
- conversationId: z.ZodString;
946
- pendingInputs: z.ZodArray<z.ZodObject<{
947
- inputId: z.ZodString;
948
- runId: z.ZodOptional<z.ZodString>;
949
- prompt: z.ZodString;
950
- questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
951
- id: z.ZodString;
952
- prompt: z.ZodString;
953
- header: z.ZodOptional<z.ZodString>;
954
- multiSelect: z.ZodOptional<z.ZodBoolean>;
955
- allowFreeText: z.ZodOptional<z.ZodBoolean>;
956
- secret: z.ZodOptional<z.ZodBoolean>;
957
- options: z.ZodOptional<z.ZodArray<z.ZodObject<{
958
- id: z.ZodString;
959
- label: z.ZodString;
960
- description: z.ZodOptional<z.ZodString>;
961
- }, z.core.$strict>>>;
962
- }, z.core.$strict>>>;
963
- requestedAt: z.ZodOptional<z.ZodISODateTime>;
964
- }, z.core.$strict>>;
965
- }, z.core.$strict>, z.ZodObject<{
966
- schemaVersion: z.ZodLiteral<1>;
967
- type: z.ZodLiteral<"permission-mode">;
968
- conversationId: z.ZodString;
969
- permissionMode: z.ZodEnum<{
970
- "accept-edits": "accept-edits";
971
- auto: "auto";
972
- default: "default";
973
- plan: "plan";
974
- }>;
975
- supportedPermissionModes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
976
- "accept-edits": "accept-edits";
977
- auto: "auto";
978
- default: "default";
979
- plan: "plan";
980
- }>>>;
981
- }, z.core.$strict>, z.ZodObject<{
982
- schemaVersion: z.ZodLiteral<1>;
983
- type: z.ZodLiteral<"host-status">;
984
- conversationId: z.ZodString;
985
- hostStatus: z.ZodEnum<{
986
- asleep: "asleep";
987
- offline: "offline";
988
- online: "online";
989
- unknown: "unknown";
990
- }>;
991
- validUntil: z.ZodOptional<z.ZodISODateTime>;
992
- reason: z.ZodOptional<z.ZodString>;
993
- observedAt: z.ZodOptional<z.ZodISODateTime>;
994
- }, z.core.$strict>, z.ZodObject<{
995
- schemaVersion: z.ZodLiteral<1>;
996
- type: z.ZodLiteral<"delivery-state">;
997
- conversationId: z.ZodString;
998
- requestId: z.ZodString;
999
- operation: z.ZodEnum<{
1000
- "respond-approval": "respond-approval";
1001
- "respond-input": "respond-input";
1002
- "set-permission-mode": "set-permission-mode";
1003
- submit: "submit";
1004
- }>;
1005
- delivery: z.ZodEnum<{
1006
- confirmed: "confirmed";
1007
- rejected: "rejected";
1008
- unknown: "unknown";
1009
- }>;
1010
- idempotencyKey: z.ZodOptional<z.ZodString>;
1011
- reason: z.ZodOptional<z.ZodString>;
1012
- recordedAt: z.ZodOptional<z.ZodISODateTime>;
1013
- }, z.core.$strict>], "type">], null>;
1014
- };
1015
- }, {
1016
- readonly 'agent:control': {
1017
- args: z.ZodTuple<[z.ZodDiscriminatedUnion<[z.ZodObject<{
1018
- schemaVersion: z.ZodLiteral<1>;
1019
- requestId: z.ZodString;
1020
- operation: z.ZodLiteral<"attach">;
1021
- conversationId: z.ZodString;
1022
- access: z.ZodEnum<{
1023
- control: "control";
1024
- observe: "observe";
1025
- }>;
1026
- }, z.core.$strict>, z.ZodObject<{
1027
- schemaVersion: z.ZodLiteral<1>;
1028
- requestId: z.ZodString;
1029
- operation: z.ZodLiteral<"detach">;
1030
- conversationId: z.ZodString;
1031
- }, z.core.$strict>, z.ZodObject<{
1032
- schemaVersion: z.ZodLiteral<1>;
1033
- requestId: z.ZodString;
1034
- operation: z.ZodLiteral<"snapshot">;
1035
- conversationId: z.ZodString;
1036
- }, z.core.$strict>, z.ZodObject<{
1037
- schemaVersion: z.ZodLiteral<1>;
1038
- requestId: z.ZodString;
1039
- operation: z.ZodLiteral<"submit">;
1040
- conversationId: z.ZodString;
1041
- idempotencyKey: z.ZodString;
1042
- metadata: z.ZodOptional<z.ZodUnknown>;
1043
- parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1044
- type: z.ZodLiteral<"text">;
1045
- text: z.ZodString;
1046
- provider: z.ZodOptional<z.ZodObject<{
1047
- schemaVersion: z.ZodInt;
1048
- provider: z.ZodString;
1049
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1050
- }, z.core.$strip>>;
1051
- }, z.core.$strict>, z.ZodObject<{
1052
- type: z.ZodLiteral<"file">;
1053
- mediaType: z.ZodString;
1054
- reference: z.ZodString;
1055
- filename: z.ZodOptional<z.ZodString>;
1056
- }, z.core.$strict>]>>;
1057
- }, z.core.$strict>, z.ZodObject<{
1058
- schemaVersion: z.ZodLiteral<1>;
1059
- requestId: z.ZodString;
1060
- operation: z.ZodLiteral<"interrupt">;
1061
- conversationId: z.ZodString;
1062
- runId: z.ZodString;
1063
- }, z.core.$strict>, z.ZodObject<{
1064
- schemaVersion: z.ZodLiteral<1>;
1065
- requestId: z.ZodString;
1066
- operation: z.ZodLiteral<"respond-approval">;
1067
- conversationId: z.ZodString;
1068
- approvalId: z.ZodString;
1069
- approved: z.ZodBoolean;
1070
- idempotencyKey: z.ZodOptional<z.ZodString>;
1071
- reason: z.ZodOptional<z.ZodString>;
1072
- metadata: z.ZodOptional<z.ZodUnknown>;
1073
- }, z.core.$strict>, z.ZodObject<{
1074
- schemaVersion: z.ZodLiteral<1>;
1075
- requestId: z.ZodString;
1076
- operation: z.ZodLiteral<"respond-input">;
1077
- conversationId: z.ZodString;
1078
- inputId: z.ZodString;
1079
- idempotencyKey: z.ZodOptional<z.ZodString>;
1080
- answer: z.ZodObject<{
1081
- text: z.ZodOptional<z.ZodString>;
1082
- answers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>>;
1083
- cancelled: z.ZodOptional<z.ZodBoolean>;
1084
- }, z.core.$strict>;
1085
- metadata: z.ZodOptional<z.ZodUnknown>;
1086
- }, z.core.$strict>, z.ZodObject<{
1087
- schemaVersion: z.ZodLiteral<1>;
1088
- requestId: z.ZodString;
1089
- operation: z.ZodLiteral<"set-permission-mode">;
1090
- conversationId: z.ZodString;
1091
- permissionMode: z.ZodEnum<{
1092
- "accept-edits": "accept-edits";
1093
- auto: "auto";
1094
- default: "default";
1095
- plan: "plan";
1096
- }>;
1097
- }, z.core.$strict>], "operation">], null>;
1098
- ack: z.ZodDiscriminatedUnion<[z.ZodObject<{
1099
- schemaVersion: z.ZodLiteral<1>;
1100
- requestId: z.ZodString;
1101
- outcome: z.ZodLiteral<"ok">;
1102
- snapshot: z.ZodOptional<z.ZodObject<{
1103
- schemaVersion: z.ZodLiteral<1>;
1104
- conversationId: z.ZodString;
1105
- version: z.ZodInt;
1106
- messages: z.ZodArray<z.ZodObject<{
1107
- schemaVersion: z.ZodLiteral<1>;
1108
- id: z.ZodString;
1109
- conversationId: z.ZodString;
1110
- runId: z.ZodOptional<z.ZodString>;
1111
- role: z.ZodEnum<{
1112
- assistant: "assistant";
1113
- summary: "summary";
1114
- system: "system";
1115
- tool: "tool";
1116
- user: "user";
1117
- }>;
1118
- status: z.ZodEnum<{
1119
- committed: "committed";
1120
- completed: "completed";
1121
- failed: "failed";
1122
- interrupted: "interrupted";
1123
- streaming: "streaming";
1124
- superseded: "superseded";
1125
- }>;
1126
- parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1127
- type: z.ZodLiteral<"text">;
1128
- text: z.ZodString;
1129
- provider: z.ZodOptional<z.ZodObject<{
1130
- schemaVersion: z.ZodInt;
1131
- provider: z.ZodString;
1132
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1133
- }, z.core.$strip>>;
1134
- }, z.core.$strip>, z.ZodObject<{
1135
- type: z.ZodLiteral<"reasoning">;
1136
- text: z.ZodString;
1137
- provider: z.ZodOptional<z.ZodObject<{
1138
- schemaVersion: z.ZodInt;
1139
- provider: z.ZodString;
1140
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1141
- }, z.core.$strip>>;
1142
- }, z.core.$strip>, z.ZodObject<{
1143
- type: z.ZodLiteral<"file">;
1144
- mediaType: z.ZodString;
1145
- reference: z.ZodString;
1146
- filename: z.ZodOptional<z.ZodString>;
1147
- }, z.core.$strip>, z.ZodObject<{
1148
- type: z.ZodLiteral<"source">;
1149
- sourceId: z.ZodString;
1150
- url: z.ZodOptional<z.ZodURL>;
1151
- title: z.ZodOptional<z.ZodString>;
1152
- }, z.core.$strip>, z.ZodObject<{
1153
- type: z.ZodLiteral<"tool-call">;
1154
- callId: z.ZodString;
1155
- toolName: z.ZodString;
1156
- input: z.ZodJSONSchema;
1157
- provider: z.ZodOptional<z.ZodObject<{
1158
- schemaVersion: z.ZodInt;
1159
- provider: z.ZodString;
1160
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1161
- }, z.core.$strip>>;
1162
- }, z.core.$strip>, z.ZodObject<{
1163
- type: z.ZodLiteral<"tool-result">;
1164
- callId: z.ZodString;
1165
- toolName: z.ZodString;
1166
- outcome: z.ZodEnum<{
1167
- error: "error";
1168
- interrupted: "interrupted";
1169
- success: "success";
1170
- }>;
1171
- output: z.ZodOptional<z.ZodJSONSchema>;
1172
- provider: z.ZodOptional<z.ZodObject<{
1173
- schemaVersion: z.ZodInt;
1174
- provider: z.ZodString;
1175
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1176
- }, z.core.$strip>>;
1177
- }, z.core.$strip>, z.ZodObject<{
1178
- type: z.ZodLiteral<"tool-approval-request">;
1179
- approvalId: z.ZodString;
1180
- callId: z.ZodString;
1181
- isAutomatic: z.ZodOptional<z.ZodBoolean>;
1182
- signature: z.ZodOptional<z.ZodString>;
1183
- }, z.core.$strip>, z.ZodObject<{
1184
- type: z.ZodLiteral<"tool-approval-response">;
1185
- approvalId: z.ZodString;
1186
- approved: z.ZodBoolean;
1187
- reason: z.ZodOptional<z.ZodString>;
1188
- }, z.core.$strip>, z.ZodObject<{
1189
- type: z.ZodLiteral<"provider">;
1190
- envelope: z.ZodObject<{
1191
- schemaVersion: z.ZodInt;
1192
- provider: z.ZodString;
1193
- data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1194
- }, z.core.$strip>;
1195
- }, z.core.$strip>, z.ZodObject<{
1196
- type: z.ZodLiteral<"control">;
1197
- reason: z.ZodEnum<{
1198
- "run-interrupted": "run-interrupted";
1199
- "stale-run": "stale-run";
1200
- }>;
1201
- }, z.core.$strip>], "type">>;
1202
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1203
- createdAt: z.ZodISODateTime;
1204
- updatedAt: z.ZodISODateTime;
1205
- }, z.core.$strip>>;
1206
- runs: z.ZodArray<z.ZodObject<{
1207
- schemaVersion: z.ZodLiteral<1>;
1208
- id: z.ZodString;
1209
- conversationId: z.ZodString;
1210
- inputMessageIds: z.ZodArray<z.ZodString>;
1211
- assistantMessageId: z.ZodString;
1212
- state: z.ZodEnum<{
1213
- abandoned: "abandoned";
1214
- cancelled: "cancelled";
1215
- completed: "completed";
1216
- failed: "failed";
1217
- interrupt_requested: "interrupt_requested";
1218
- interrupted: "interrupted";
1219
- queued: "queued";
1220
- running: "running";
1221
- superseded: "superseded";
1222
- }>;
1223
- revision: z.ZodInt;
1224
- queuePriority: z.ZodOptional<z.ZodEnum<{
1225
- "interrupt-next": "interrupt-next";
1226
- }>>;
1227
- executionSequence: z.ZodOptional<z.ZodInt>;
1228
- ownerId: z.ZodOptional<z.ZodString>;
1229
- fencingToken: z.ZodOptional<z.ZodInt>;
1230
- terminalReason: z.ZodOptional<z.ZodEnum<{
1231
- abandoned: "abandoned";
1232
- absorbed: "absorbed";
1233
- cancelled: "cancelled";
1234
- context_overflow: "context_overflow";
1235
- interrupted: "interrupted";
1236
- output_rejected: "output_rejected";
1237
- policy_stop: "policy_stop";
1238
- provider_failure: "provider_failure";
1239
- provider_stop: "provider_stop";
1240
- runtime_failure: "runtime_failure";
1241
- shutdown: "shutdown";
1242
- storage_conflict: "storage_conflict";
1243
- success: "success";
1244
- superseded: "superseded";
1245
- timeout: "timeout";
1246
- }>>;
1247
- terminalPolicyName: z.ZodOptional<z.ZodString>;
1248
- absorbedIntoRunId: z.ZodOptional<z.ZodString>;
1249
- usage: z.ZodOptional<z.ZodObject<{
1250
- inputTokens: z.ZodObject<{
1251
- value: z.ZodOptional<z.ZodInt>;
1252
- provenance: z.ZodEnum<{
1253
- computed: "computed";
1254
- estimated: "estimated";
1255
- "provider-reported": "provider-reported";
1256
- unavailable: "unavailable";
1257
- }>;
1258
- }, z.core.$strip>;
1259
- outputTokens: z.ZodObject<{
1260
- value: z.ZodOptional<z.ZodInt>;
1261
- provenance: z.ZodEnum<{
1262
- computed: "computed";
1263
- estimated: "estimated";
1264
- "provider-reported": "provider-reported";
1265
- unavailable: "unavailable";
1266
- }>;
1267
- }, z.core.$strip>;
1268
- reasoningTokens: z.ZodOptional<z.ZodObject<{
1269
- value: z.ZodOptional<z.ZodInt>;
1270
- provenance: z.ZodEnum<{
1271
- computed: "computed";
1272
- estimated: "estimated";
1273
- "provider-reported": "provider-reported";
1274
- unavailable: "unavailable";
1275
- }>;
1276
- }, z.core.$strip>>;
1277
- cacheReadTokens: z.ZodOptional<z.ZodObject<{
1278
- value: z.ZodOptional<z.ZodInt>;
1279
- provenance: z.ZodEnum<{
1280
- computed: "computed";
1281
- estimated: "estimated";
1282
- "provider-reported": "provider-reported";
1283
- unavailable: "unavailable";
1284
- }>;
1285
- }, z.core.$strip>>;
1286
- cacheWriteTokens: z.ZodOptional<z.ZodObject<{
1287
- value: z.ZodOptional<z.ZodInt>;
1288
- provenance: z.ZodEnum<{
1289
- computed: "computed";
1290
- estimated: "estimated";
1291
- "provider-reported": "provider-reported";
1292
- unavailable: "unavailable";
1293
- }>;
1294
- }, z.core.$strip>>;
1295
- cost: z.ZodOptional<z.ZodObject<{
1296
- value: z.ZodOptional<z.ZodNumber>;
1297
- currency: z.ZodOptional<z.ZodString>;
1298
- provenance: z.ZodEnum<{
1299
- computed: "computed";
1300
- estimated: "estimated";
1301
- "provider-reported": "provider-reported";
1302
- unavailable: "unavailable";
1303
- }>;
1304
- }, z.core.$strip>>;
1305
- }, z.core.$strip>>;
1306
- lastOperation: z.ZodOptional<z.ZodObject<{
1307
- operationId: z.ZodString;
1308
- kind: z.ZodEnum<{
1309
- compaction: "compaction";
1310
- "model-request": "model-request";
1311
- }>;
1312
- phase: z.ZodEnum<{
1313
- cancelled: "cancelled";
1314
- completed: "completed";
1315
- failed: "failed";
1316
- "first-output": "first-output";
1317
- started: "started";
1318
- }>;
1319
- step: z.ZodOptional<z.ZodInt>;
1320
- startedAt: z.ZodISODateTime;
1321
- firstOutputAt: z.ZodOptional<z.ZodISODateTime>;
1322
- finishedAt: z.ZodOptional<z.ZodISODateTime>;
1323
- }, z.core.$strip>>;
1324
- createdAt: z.ZodISODateTime;
1325
- updatedAt: z.ZodISODateTime;
1326
- }, z.core.$strip>>;
1327
- }, z.core.$strip>>;
1328
- runId: z.ZodOptional<z.ZodString>;
1329
- }, z.core.$strict>, z.ZodObject<{
1330
- schemaVersion: z.ZodLiteral<1>;
1331
- requestId: z.ZodString;
1332
- outcome: z.ZodLiteral<"error">;
1333
- error: z.ZodObject<{
1334
- code: z.ZodEnum<{
1335
- ATTACHMENT_CAPACITY: "ATTACHMENT_CAPACITY";
1336
- ATTACH_CANCELLED: "ATTACH_CANCELLED";
1337
- ATTACH_IN_PROGRESS: "ATTACH_IN_PROGRESS";
1338
- CONNECTION_CLOSED: "CONNECTION_CLOSED";
1339
- CONTROL_REQUEST_FAILED: "CONTROL_REQUEST_FAILED";
1340
- EVENT_OVERFLOW: "EVENT_OVERFLOW";
1341
- FORBIDDEN: "FORBIDDEN";
1342
- HOST_OFFLINE: "HOST_OFFLINE";
1343
- LEASE_CONFLICT: "LEASE_CONFLICT";
1344
- LEASE_REQUIRED: "LEASE_REQUIRED";
1345
- NOT_ATTACHED: "NOT_ATTACHED";
1346
- REQUEST_CANCELLED: "REQUEST_CANCELLED";
1347
- REQUEST_CAPACITY: "REQUEST_CAPACITY";
1348
- REQUEST_REJECTED: "REQUEST_REJECTED";
1349
- RESYNC_EXHAUSTED: "RESYNC_EXHAUSTED";
1350
- UNSUPPORTED_OPERATION: "UNSUPPORTED_OPERATION";
1351
- }>;
1352
- message: z.ZodString;
1353
- }, z.core.$strict>;
1354
- }, z.core.$strict>, z.ZodObject<{
1355
- schemaVersion: z.ZodLiteral<1>;
1356
- requestId: z.ZodString;
1357
- outcome: z.ZodLiteral<"unknown">;
1358
- delivery: z.ZodLiteral<"unknown">;
1359
- idempotencyKey: z.ZodOptional<z.ZodString>;
1360
- message: z.ZodOptional<z.ZodString>;
1361
- }, z.core.$strict>], "outcome">;
1362
- };
1363
- }>;
1364
- //# sourceMappingURL=browser-control-contract.d.ts.map