@intentic/sandbox-contract 1.239.0 → 1.242.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 (310) hide show
  1. package/README.md +52 -16
  2. package/dist/agent-catalog.d.ts +5 -28
  3. package/dist/agent-catalog.d.ts.map +1 -1
  4. package/dist/agent-catalog.js +21 -157
  5. package/dist/agent-catalog.js.map +1 -1
  6. package/dist/agent-run-model.d.ts +3 -2
  7. package/dist/agent-run-model.d.ts.map +1 -1
  8. package/dist/agent-run-model.js +9 -6
  9. package/dist/agent-run-model.js.map +1 -1
  10. package/dist/agent-runtimes.d.ts +27 -0
  11. package/dist/agent-runtimes.d.ts.map +1 -0
  12. package/dist/agent-runtimes.js +113 -0
  13. package/dist/agent-runtimes.js.map +1 -0
  14. package/dist/approvals-execution.d.ts +11 -0
  15. package/dist/approvals-execution.d.ts.map +1 -0
  16. package/dist/approvals-execution.js +44 -0
  17. package/dist/approvals-execution.js.map +1 -0
  18. package/dist/arrival.d.ts +151 -0
  19. package/dist/arrival.d.ts.map +1 -0
  20. package/dist/arrival.js +56 -0
  21. package/dist/arrival.js.map +1 -0
  22. package/dist/card-status.d.ts +5 -0
  23. package/dist/card-status.d.ts.map +1 -0
  24. package/dist/card-status.js +74 -0
  25. package/dist/card-status.js.map +1 -0
  26. package/dist/chores/chores.d.ts.map +1 -1
  27. package/dist/chores/chores.js +1 -1
  28. package/dist/chores/chores.js.map +1 -1
  29. package/dist/command-classes.d.ts +0 -1
  30. package/dist/command-classes.d.ts.map +1 -1
  31. package/dist/command-classes.js +9 -2
  32. package/dist/command-classes.js.map +1 -1
  33. package/dist/command-run.d.ts +10 -0
  34. package/dist/command-run.d.ts.map +1 -0
  35. package/dist/command-run.js +46 -0
  36. package/dist/command-run.js.map +1 -0
  37. package/dist/contracts/agent.contract.d.ts +991 -771
  38. package/dist/contracts/agent.contract.d.ts.map +1 -1
  39. package/dist/contracts/agents.contract.d.ts +483 -1
  40. package/dist/contracts/agents.contract.d.ts.map +1 -1
  41. package/dist/contracts/agents.contract.js +20 -2
  42. package/dist/contracts/agents.contract.js.map +1 -1
  43. package/dist/contracts/approvals.contract.d.ts +99 -0
  44. package/dist/contracts/approvals.contract.d.ts.map +1 -0
  45. package/dist/contracts/approvals.contract.js +32 -0
  46. package/dist/contracts/approvals.contract.js.map +1 -0
  47. package/dist/contracts/ci.contract.d.ts +1 -4
  48. package/dist/contracts/ci.contract.d.ts.map +1 -1
  49. package/dist/contracts/ci.contract.js +1 -9
  50. package/dist/contracts/ci.contract.js.map +1 -1
  51. package/dist/contracts/claude.contract.d.ts +9 -0
  52. package/dist/contracts/claude.contract.d.ts.map +1 -1
  53. package/dist/contracts/cursor.contract.d.ts +6 -0
  54. package/dist/contracts/cursor.contract.d.ts.map +1 -1
  55. package/dist/contracts/git.contract.d.ts +63 -1
  56. package/dist/contracts/git.contract.d.ts.map +1 -1
  57. package/dist/contracts/git.contract.js +22 -4
  58. package/dist/contracts/git.contract.js.map +1 -1
  59. package/dist/contracts/grok.contract.d.ts +3 -0
  60. package/dist/contracts/grok.contract.d.ts.map +1 -1
  61. package/dist/contracts/keys.contract.d.ts +81 -0
  62. package/dist/contracts/keys.contract.d.ts.map +1 -0
  63. package/dist/contracts/keys.contract.js +51 -0
  64. package/dist/contracts/keys.contract.js.map +1 -0
  65. package/dist/contracts/panels.contract.d.ts +7 -0
  66. package/dist/contracts/panels.contract.d.ts.map +1 -1
  67. package/dist/contracts/prepush.contract.js +2 -2
  68. package/dist/contracts/providers.contract.d.ts +2 -0
  69. package/dist/contracts/providers.contract.d.ts.map +1 -1
  70. package/dist/contracts/runner.contract.d.ts +99 -101
  71. package/dist/contracts/runner.contract.d.ts.map +1 -1
  72. package/dist/contracts/safety.contract.d.ts +35 -0
  73. package/dist/contracts/safety.contract.d.ts.map +1 -0
  74. package/dist/contracts/safety.contract.js +32 -0
  75. package/dist/contracts/safety.contract.js.map +1 -0
  76. package/dist/contracts/sessions.contract.d.ts +211 -1
  77. package/dist/contracts/sessions.contract.d.ts.map +1 -1
  78. package/dist/contracts/settings.contract.d.ts +30 -32
  79. package/dist/contracts/settings.contract.d.ts.map +1 -1
  80. package/dist/contracts/system.contract.d.ts +277 -1
  81. package/dist/contracts/system.contract.d.ts.map +1 -1
  82. package/dist/contracts/translator.contract.d.ts +31 -3
  83. package/dist/contracts/translator.contract.d.ts.map +1 -1
  84. package/dist/contracts/usage.contract.d.ts +29 -20
  85. package/dist/contracts/usage.contract.d.ts.map +1 -1
  86. package/dist/contracts/usage.contract.js +13 -0
  87. package/dist/contracts/usage.contract.js.map +1 -1
  88. package/dist/contracts/workspace.contract.d.ts +8 -0
  89. package/dist/contracts/workspace.contract.d.ts.map +1 -1
  90. package/dist/conversation-ids.d.ts +2 -0
  91. package/dist/conversation-ids.d.ts.map +1 -1
  92. package/dist/conversation-ids.js +8 -0
  93. package/dist/conversation-ids.js.map +1 -1
  94. package/dist/credential-material.d.ts +1 -0
  95. package/dist/credential-material.d.ts.map +1 -1
  96. package/dist/credential-material.js +24 -2
  97. package/dist/credential-material.js.map +1 -1
  98. package/dist/definition.d.ts +51 -93
  99. package/dist/definition.d.ts.map +1 -1
  100. package/dist/definition.js +6 -28
  101. package/dist/definition.js.map +1 -1
  102. package/dist/events.d.ts +2947 -991
  103. package/dist/events.d.ts.map +1 -1
  104. package/dist/events.js +233 -82
  105. package/dist/events.js.map +1 -1
  106. package/dist/history-state.d.ts.map +1 -1
  107. package/dist/history-state.js +1 -0
  108. package/dist/history-state.js.map +1 -1
  109. package/dist/index.d.ts +2532 -1054
  110. package/dist/index.d.ts.map +1 -1
  111. package/dist/index.js +20 -5
  112. package/dist/index.js.map +1 -1
  113. package/dist/ingress-protocol.d.ts +13 -1
  114. package/dist/ingress-protocol.d.ts.map +1 -1
  115. package/dist/ingress-protocol.js +19 -0
  116. package/dist/ingress-protocol.js.map +1 -1
  117. package/dist/mentions.d.ts +3 -0
  118. package/dist/mentions.d.ts.map +1 -0
  119. package/dist/mentions.js +13 -0
  120. package/dist/mentions.js.map +1 -0
  121. package/dist/needs-action.d.ts +7 -0
  122. package/dist/needs-action.d.ts.map +1 -0
  123. package/dist/needs-action.js +3 -0
  124. package/dist/needs-action.js.map +1 -0
  125. package/dist/overlay-lint.d.ts +7 -0
  126. package/dist/overlay-lint.d.ts.map +1 -0
  127. package/dist/overlay-lint.js +68 -0
  128. package/dist/overlay-lint.js.map +1 -0
  129. package/dist/owner-ticket.d.ts +18 -0
  130. package/dist/owner-ticket.d.ts.map +1 -0
  131. package/dist/owner-ticket.js +51 -0
  132. package/dist/owner-ticket.js.map +1 -0
  133. package/dist/plan-pools.d.ts +12 -0
  134. package/dist/plan-pools.d.ts.map +1 -0
  135. package/dist/plan-pools.js +30 -0
  136. package/dist/plan-pools.js.map +1 -0
  137. package/dist/provider-specs.d.ts +228 -0
  138. package/dist/provider-specs.d.ts.map +1 -0
  139. package/dist/provider-specs.js +124 -0
  140. package/dist/provider-specs.js.map +1 -0
  141. package/dist/quick-model.d.ts.map +1 -1
  142. package/dist/quick-model.js +2 -1
  143. package/dist/quick-model.js.map +1 -1
  144. package/dist/runner-protocol.js +2 -2
  145. package/dist/runner-protocol.js.map +1 -1
  146. package/dist/runtime-state.d.ts +2 -2
  147. package/dist/runtime-state.d.ts.map +1 -1
  148. package/dist/runtime-state.js +1 -1
  149. package/dist/runtime-state.js.map +1 -1
  150. package/dist/safety-policy.d.ts +49 -0
  151. package/dist/safety-policy.d.ts.map +1 -0
  152. package/dist/safety-policy.js +52 -0
  153. package/dist/safety-policy.js.map +1 -0
  154. package/dist/schemas/agent.d.ts +21 -3
  155. package/dist/schemas/agent.d.ts.map +1 -1
  156. package/dist/schemas/agent.js +18 -8
  157. package/dist/schemas/agent.js.map +1 -1
  158. package/dist/schemas/agents.d.ts +19 -0
  159. package/dist/schemas/agents.d.ts.map +1 -1
  160. package/dist/schemas/agents.js +15 -0
  161. package/dist/schemas/agents.js.map +1 -1
  162. package/dist/schemas/approvals.d.ts +241 -0
  163. package/dist/schemas/approvals.d.ts.map +1 -0
  164. package/dist/schemas/approvals.js +63 -0
  165. package/dist/schemas/approvals.js.map +1 -0
  166. package/dist/schemas/automations.d.ts +5 -0
  167. package/dist/schemas/automations.d.ts.map +1 -1
  168. package/dist/schemas/ci.d.ts +5 -9
  169. package/dist/schemas/ci.d.ts.map +1 -1
  170. package/dist/schemas/ci.js +3 -10
  171. package/dist/schemas/ci.js.map +1 -1
  172. package/dist/schemas/computers.d.ts +31 -5
  173. package/dist/schemas/computers.d.ts.map +1 -1
  174. package/dist/schemas/computers.js +7 -5
  175. package/dist/schemas/computers.js.map +1 -1
  176. package/dist/schemas/environment.d.ts +11 -131
  177. package/dist/schemas/environment.d.ts.map +1 -1
  178. package/dist/schemas/environment.js +5 -42
  179. package/dist/schemas/environment.js.map +1 -1
  180. package/dist/schemas/git-history.d.ts +4 -0
  181. package/dist/schemas/git-history.d.ts.map +1 -1
  182. package/dist/schemas/git.d.ts +179 -0
  183. package/dist/schemas/git.d.ts.map +1 -1
  184. package/dist/schemas/git.js +39 -1
  185. package/dist/schemas/git.js.map +1 -1
  186. package/dist/schemas/panels.d.ts +21 -0
  187. package/dist/schemas/panels.d.ts.map +1 -1
  188. package/dist/schemas/panels.js +5 -0
  189. package/dist/schemas/panels.js.map +1 -1
  190. package/dist/schemas/plan-limits.d.ts +50 -3
  191. package/dist/schemas/plan-limits.d.ts.map +1 -1
  192. package/dist/schemas/plan-limits.js +11 -6
  193. package/dist/schemas/plan-limits.js.map +1 -1
  194. package/dist/schemas/provider-oauth.d.ts +6 -0
  195. package/dist/schemas/provider-oauth.d.ts.map +1 -1
  196. package/dist/schemas/provider-subscriptions.d.ts +2 -1
  197. package/dist/schemas/provider-subscriptions.d.ts.map +1 -1
  198. package/dist/schemas/provider-subscriptions.js +2 -1
  199. package/dist/schemas/provider-subscriptions.js.map +1 -1
  200. package/dist/schemas/settings.d.ts +29 -16
  201. package/dist/schemas/settings.d.ts.map +1 -1
  202. package/dist/schemas/settings.js +13 -20
  203. package/dist/schemas/settings.js.map +1 -1
  204. package/dist/schemas/system.d.ts +3 -0
  205. package/dist/schemas/system.d.ts.map +1 -1
  206. package/dist/schemas/system.js +5 -1
  207. package/dist/schemas/system.js.map +1 -1
  208. package/dist/schemas/workspace-repos.d.ts +14 -0
  209. package/dist/schemas/workspace-repos.d.ts.map +1 -1
  210. package/dist/schemas/workspace-repos.js +5 -0
  211. package/dist/schemas/workspace-repos.js.map +1 -1
  212. package/dist/schemas/workspace-tree.d.ts +1 -0
  213. package/dist/schemas/workspace-tree.d.ts.map +1 -1
  214. package/dist/schemas/workspace-tree.js +3 -0
  215. package/dist/schemas/workspace-tree.js.map +1 -1
  216. package/dist/transcript-fold.d.ts +31 -0
  217. package/dist/transcript-fold.d.ts.map +1 -0
  218. package/dist/transcript-fold.js +457 -0
  219. package/dist/transcript-fold.js.map +1 -0
  220. package/dist/workspace-state.d.ts +20 -3
  221. package/dist/workspace-state.d.ts.map +1 -1
  222. package/dist/workspace-state.js +22 -2
  223. package/dist/workspace-state.js.map +1 -1
  224. package/package.json +27 -5
  225. package/src/agent-catalog.test.ts +1 -1
  226. package/src/agent-catalog.ts +76 -555
  227. package/src/agent-run-model.test.ts +31 -15
  228. package/src/agent-run-model.ts +26 -12
  229. package/src/agent-runtimes.ts +419 -0
  230. package/src/approvals-execution.ts +96 -0
  231. package/src/arrival.ts +160 -0
  232. package/src/capability-ledger.test.ts +6 -4
  233. package/src/card-status.ts +93 -0
  234. package/src/chores/chores.ts +6 -3
  235. package/src/command-classes.test.ts +25 -0
  236. package/src/command-classes.ts +47 -5
  237. package/src/command-run.ts +78 -0
  238. package/src/contract-lock.test.ts +1 -1
  239. package/src/contract-lock.ts +2 -2
  240. package/src/contracts/agents.contract.ts +35 -2
  241. package/src/contracts/approvals.contract.ts +37 -0
  242. package/src/contracts/ci.contract.ts +0 -13
  243. package/src/contracts/git.contract.ts +28 -3
  244. package/src/contracts/keys.contract.ts +79 -0
  245. package/src/contracts/prepush.contract.ts +3 -3
  246. package/src/contracts/safety.contract.ts +48 -0
  247. package/src/contracts/usage.contract.ts +22 -0
  248. package/src/conversation-ids.test.ts +31 -1
  249. package/src/conversation-ids.ts +37 -3
  250. package/src/credential-material.test.ts +69 -1
  251. package/src/credential-material.ts +86 -5
  252. package/src/definition.ts +25 -53
  253. package/src/events.ts +508 -198
  254. package/src/history-state.ts +6 -0
  255. package/src/index.ts +24 -5
  256. package/src/ingress-protocol.ts +52 -1
  257. package/src/mentions.test.ts +22 -0
  258. package/src/mentions.ts +25 -0
  259. package/src/needs-action.ts +14 -0
  260. package/src/overlay-lint.test.ts +89 -0
  261. package/src/overlay-lint.ts +116 -0
  262. package/src/owner-ticket.test.ts +54 -0
  263. package/src/owner-ticket.ts +102 -0
  264. package/src/plan-pools.test.ts +71 -0
  265. package/src/plan-pools.ts +82 -0
  266. package/src/provider-specs.test.ts +130 -0
  267. package/src/provider-specs.ts +352 -0
  268. package/src/quick-model.ts +9 -5
  269. package/src/runner-protocol.ts +2 -2
  270. package/src/runtime-state.ts +6 -6
  271. package/src/safety-policy.ts +165 -0
  272. package/src/schemas/agent.ts +62 -17
  273. package/src/schemas/agents.ts +71 -0
  274. package/src/schemas/approvals.ts +174 -0
  275. package/src/schemas/ci.ts +19 -26
  276. package/src/schemas/computers.ts +52 -11
  277. package/src/schemas/environment.ts +21 -100
  278. package/src/schemas/git.ts +121 -6
  279. package/src/schemas/issues.ts +1 -1
  280. package/src/schemas/panels.ts +20 -0
  281. package/src/schemas/plan-limits.ts +58 -11
  282. package/src/schemas/provider-subscriptions.ts +7 -2
  283. package/src/schemas/settings.ts +67 -93
  284. package/src/schemas/system.ts +12 -1
  285. package/src/schemas/workspace-repos.ts +9 -0
  286. package/src/schemas/workspace-tree.ts +11 -0
  287. package/src/transcript-fold.test.ts +493 -0
  288. package/src/transcript-fold.ts +655 -0
  289. package/src/workspace-state.test.ts +77 -29
  290. package/src/workspace-state.ts +99 -31
  291. package/dist/contracts/drafts.contract.d.ts +0 -57
  292. package/dist/contracts/drafts.contract.d.ts.map +0 -1
  293. package/dist/contracts/drafts.contract.js +0 -32
  294. package/dist/contracts/drafts.contract.js.map +0 -1
  295. package/dist/definition-action.d.ts +0 -7
  296. package/dist/definition-action.d.ts.map +0 -1
  297. package/dist/definition-action.js +0 -3
  298. package/dist/definition-action.js.map +0 -1
  299. package/dist/publish-drafts.d.ts +0 -7
  300. package/dist/publish-drafts.d.ts.map +0 -1
  301. package/dist/publish-drafts.js +0 -20
  302. package/dist/publish-drafts.js.map +0 -1
  303. package/dist/schemas/drafts.d.ts +0 -84
  304. package/dist/schemas/drafts.d.ts.map +0 -1
  305. package/dist/schemas/drafts.js +0 -44
  306. package/dist/schemas/drafts.js.map +0 -1
  307. package/src/contracts/drafts.contract.ts +0 -35
  308. package/src/definition-action.ts +0 -8
  309. package/src/publish-drafts.ts +0 -59
  310. package/src/schemas/drafts.ts +0 -108
package/dist/index.d.ts CHANGED
@@ -2,13 +2,13 @@ import type { ContractRoute } from "./routes.js";
2
2
  export { activityContract } from "./contracts/activity.contract.js";
3
3
  export { agentContract } from "./contracts/agent.contract.js";
4
4
  export { agentsContract } from "./contracts/agents.contract.js";
5
+ export { approvalsContract } from "./contracts/approvals.contract.js";
5
6
  export { automationsContract } from "./contracts/automations.contract.js";
6
7
  export { capabilitiesContract } from "./contracts/capabilities.contract.js";
7
8
  export { choresContract } from "./contracts/chores.contract.js";
8
9
  export { ciContract } from "./contracts/ci.contract.js";
9
10
  export { claudeContract } from "./contracts/claude.contract.js";
10
11
  export { cursorContract } from "./contracts/cursor.contract.js";
11
- export { draftsContract } from "./contracts/drafts.contract.js";
12
12
  export { endpointsContract, type TrialHealth, TrialStatusSchema, type TrialStatusResponse } from "./contracts/endpoints.contract.js";
13
13
  export { exitContract } from "./contracts/exit.contract.js";
14
14
  export { extensionsContract } from "./contracts/extensions.contract.js";
@@ -29,8 +29,10 @@ export { panelsContract } from "./contracts/panels.contract.js";
29
29
  export { portsContract } from "./contracts/ports.contract.js";
30
30
  export { publicContract } from "./contracts/public.contract.js";
31
31
  export { prepushContract } from "./contracts/prepush.contract.js";
32
+ export { keysContract } from "./contracts/keys.contract.js";
32
33
  export { providersContract } from "./contracts/providers.contract.js";
33
34
  export { pushContract } from "./contracts/push.contract.js";
35
+ export { safetyContract } from "./contracts/safety.contract.js";
34
36
  export { secretsContract } from "./contracts/secrets.contract.js";
35
37
  export { sessionsContract } from "./contracts/sessions.contract.js";
36
38
  export { settingsContract } from "./contracts/settings.contract.js";
@@ -43,6 +45,8 @@ export { vpnContract } from "./contracts/vpn.contract.js";
43
45
  export { workflowsContract } from "./contracts/workflows.contract.js";
44
46
  export { workspaceContract } from "./contracts/workspace.contract.js";
45
47
  export * from "./events.js";
48
+ export * from "./card-status.js";
49
+ export * from "./mentions.js";
46
50
  export * from "./sse.js";
47
51
  export * from "./routes.js";
48
52
  export { HISTORY_ROOT, HOST_STATE_ROOT, STATE_DIR, WORKSPACE_ROOT } from "@intentic/constants";
@@ -50,10 +54,14 @@ export * from "./workspace-state.js";
50
54
  export * from "./runtime-state.js";
51
55
  export * from "./state-portability.js";
52
56
  export * from "./history-state.js";
57
+ export * from "./agent-runtimes.js";
58
+ export * from "./provider-specs.js";
53
59
  export * from "./agent-catalog.js";
54
60
  export * from "./agent-run-model.js";
55
61
  export * from "./capability-env.js";
56
62
  export * from "./command-classes.js";
63
+ export * from "./command-run.js";
64
+ export * from "./safety-policy.js";
57
65
  export * from "./credential-material.js";
58
66
  export * from "./capability-secrets.js";
59
67
  export * from "./conversation-ids.js";
@@ -65,22 +73,24 @@ export * from "./webext-links.js";
65
73
  export * from "./runner-protocol.js";
66
74
  export * from "./listener-protocol.js";
67
75
  export * from "./hostnames.js";
76
+ export * from "./overlay-lint.js";
68
77
  export * from "./model-order.js";
78
+ export * from "./plan-pools.js";
69
79
  export * from "./path-refs.js";
70
80
  export * from "./prompt-complexity.js";
71
81
  export * from "./quick-model.js";
72
82
  export * from "./output-fields.js";
73
- export * from "./publish-drafts.js";
83
+ export * from "./approvals-execution.js";
74
84
  export * from "./schemas/activity.js";
75
85
  export * from "./schemas/agent.js";
76
86
  export * from "./schemas/agents.js";
87
+ export * from "./schemas/approvals.js";
77
88
  export * from "./schemas/automations.js";
78
89
  export * from "./schemas/capabilities.js";
79
90
  export * from "./schemas/ci.js";
80
91
  export * from "./schemas/claude-gate.js";
81
92
  export * from "./schemas/codebase-health.js";
82
93
  export * from "./schemas/computers.js";
83
- export * from "./schemas/drafts.js";
84
94
  export * from "./schemas/engines.js";
85
95
  export * from "./schemas/environment.js";
86
96
  export * from "./schemas/exit.js";
@@ -120,6 +130,7 @@ export * from "./schemas/workspace-repos.js";
120
130
  export * from "./schemas/workspace-search.js";
121
131
  export * from "./schemas/workspace-setup.js";
122
132
  export * from "./schemas/workspace-tree.js";
133
+ export * from "./arrival.js";
123
134
  export * from "./definition.js";
124
135
  export * from "./search-globs.js";
125
136
  export * from "./starter.js";
@@ -256,835 +267,1054 @@ export declare const sandboxContract: {
256
267
  attach: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
257
268
  conversationId: import("zod").ZodString;
258
269
  run: import("zod").ZodOptional<import("zod").ZodString>;
259
- after: import("zod").ZodOptional<import("zod").ZodNumber>;
260
270
  }, import("zod/v4/core").$strip>, import("@orpc/contract").Schema<AsyncIteratorObject<{
261
271
  kind: "attached";
262
272
  run: string;
263
- prompt: string;
264
273
  startedAt: number;
265
274
  seq: number;
266
- } | {
267
- kind: "frame";
268
- seq: number;
269
- event: {
270
- kind: "plan";
271
- requestId: string;
275
+ rows: {
276
+ role: "assistant" | "notice" | "user";
272
277
  text: string;
273
- document?: {
274
- path: string;
275
- title: string;
276
- markdown: string;
277
- truncated?: boolean | undefined;
278
- plan?: boolean | undefined;
279
- } | undefined;
280
- } | {
281
- kind: "question";
282
- requestId: string;
283
- questions: {
284
- question: string;
285
- header: string;
286
- multiSelect: boolean;
287
- options: {
288
- label: string;
289
- description: string;
290
- preview?: string | undefined;
291
- }[];
292
- }[];
293
- document?: {
294
- path: string;
295
- title: string;
296
- markdown: string;
297
- truncated?: boolean | undefined;
298
- plan?: boolean | undefined;
299
- } | undefined;
300
- } | {
301
- toolName: string;
302
- title?: string | undefined;
303
- displayName?: string | undefined;
304
- description?: string | undefined;
305
- reason?: string | undefined;
306
- path?: string | undefined;
307
- alwaysLabel?: string | undefined;
308
- program?: {
309
- text: string;
310
- language: "bash" | "javascript";
311
- truncated: boolean;
312
- spans: {
313
- start: number;
314
- end: number;
315
- }[];
316
- } | undefined;
317
- explain?: string | undefined;
318
- kind: "permission";
319
- requestId: string;
320
- } | {
321
- kind: "session";
322
- sessionId: string;
323
- account?: string | undefined;
324
- } | {
325
- kind: "worktree";
326
- branch: string;
327
- base: string;
328
- unenforced?: boolean | undefined;
329
- sync?: {
330
- commits: number;
331
- blocked: string[];
332
- } | undefined;
333
- remote?: string | undefined;
334
- } | {
335
- kind: "landed";
336
- landed: boolean;
337
- conflicts?: {
338
- repo: string;
339
- paths: {
340
- path: string;
341
- reason: "binary" | "diverged" | "workspace";
342
- }[];
343
- clean: number;
344
- mainBranch?: string | undefined;
278
+ sentAt?: number | undefined;
279
+ attachments?: string[] | undefined;
280
+ checkpointId?: string | undefined;
281
+ rewindIndex?: number | undefined;
282
+ thinking?: string | undefined;
283
+ tools?: unknown[] | undefined;
284
+ todos?: {
285
+ content: string;
286
+ status: "completed" | "in_progress" | "pending";
287
+ activeForm?: string | undefined;
345
288
  }[] | undefined;
346
- held?: boolean | undefined;
347
- deps?: {
348
- missing: number;
349
- started: string[];
350
- deferred: boolean;
289
+ usage?: {
290
+ costUsd?: number | undefined;
291
+ inputTokens?: number | undefined;
292
+ outputTokens?: number | undefined;
293
+ durationMs?: number | undefined;
294
+ numTurns?: number | undefined;
351
295
  } | undefined;
352
- } | {
353
- kind: "preamble";
354
- notes: {
296
+ notes?: {
355
297
  title: string;
356
298
  text: string;
357
- }[];
358
- } | {
359
- kind: "init";
360
- model: string;
361
- } | {
362
- kind: "checkpoint";
363
- id: string;
364
- index?: number | undefined;
365
- } | {
366
- kind: "steer";
367
- text: string;
368
- sentAt: number;
369
- attachments?: string[] | undefined;
370
- } | {
371
- kind: "delta";
372
- text: string;
373
- parentToolUseId?: string | undefined;
374
- } | {
375
- kind: "text_end";
376
- parentToolUseId?: string | undefined;
377
- } | {
378
- kind: "thinking";
379
- text: string;
380
- parentToolUseId?: string | undefined;
381
- } | {
382
- kind: "tool_call";
383
- id: string;
384
- name: string;
385
- category: "delete" | "edit" | "execute" | "fetch" | "move" | "other" | "read" | "search" | "think";
386
- status: "completed" | "failed" | "in_progress" | "pending";
387
- target?: string | undefined;
388
- locations?: {
389
- path: string;
390
- line?: number | undefined;
391
299
  }[] | undefined;
392
- content?: ({
393
- type: "text";
394
- text: string;
395
- } | {
396
- type: "diff";
397
- path: string;
398
- oldText?: string | undefined;
399
- newText: string;
400
- truncated?: boolean | undefined;
401
- } | {
402
- type: "image";
403
- path: string;
404
- })[] | undefined;
405
- parentToolUseId?: string | undefined;
406
- } | {
407
- kind: "tool_call_update";
408
- id: string;
409
- status?: "completed" | "failed" | "in_progress" | "pending" | undefined;
410
- content?: ({
411
- type: "text";
300
+ placed?: boolean | undefined;
301
+ noticeAction?: "depsInstall" | "landHold" | "outageOptOut" | "tierHold" | undefined;
302
+ noticeWait?: "credentialRenewal" | undefined;
303
+ plan?: {
304
+ requestId: string;
412
305
  text: string;
413
- } | {
414
- type: "diff";
415
- path: string;
416
- oldText?: string | undefined;
417
- newText: string;
418
- truncated?: boolean | undefined;
419
- } | {
420
- type: "image";
421
- path: string;
422
- })[] | undefined;
423
- locations?: {
424
- path: string;
425
- line?: number | undefined;
426
- }[] | undefined;
427
- } | {
428
- kind: "terminal";
429
- session: string;
430
- } | {
431
- kind: "browser";
432
- session: string;
433
- } | {
434
- kind: "subagent";
435
- id: string;
436
- subagentKind: "spawned" | "subagent";
437
- agentType?: string | undefined;
438
- description?: string | undefined;
439
- model?: string | undefined;
440
- provider?: string | undefined;
441
- background?: boolean | undefined;
442
- } | {
443
- kind: "subagent_update";
444
- id: string;
445
- status?: "blocked" | "completed" | "failed" | "killed" | "paused" | "pending" | "running" | undefined;
446
- tokens?: number | undefined;
447
- toolUses?: number | undefined;
448
- lastTool?: string | undefined;
449
- summary?: string | undefined;
450
- error?: string | undefined;
451
- verification?: {
452
- state: "failing" | "no-code" | "unproven" | "verified";
453
- paths?: string[] | undefined;
454
- check?: string | undefined;
455
- } | undefined;
456
- } | {
457
- kind: "todos";
458
- items: {
459
- content: string;
460
- status: "completed" | "in_progress" | "pending";
461
- activeForm?: string | undefined;
462
- }[];
463
- } | {
464
- kind: "commands";
465
- items: {
466
- name: string;
467
- description: string;
468
- hint?: string | undefined;
469
- }[];
470
- } | {
471
- kind: "usage";
472
- account?: string | undefined;
473
- costUsd?: number | undefined;
474
- inputTokens?: number | undefined;
475
- outputTokens?: number | undefined;
476
- cacheReadTokens?: number | undefined;
477
- cacheCreationTokens?: number | undefined;
478
- durationMs?: number | undefined;
479
- numTurns?: number | undefined;
480
- } | {
481
- status: "allowed" | "allowed_warning" | "rejected";
482
- resetsAt?: number | undefined;
483
- rateLimitType?: string | undefined;
484
- utilization?: number | undefined;
485
- kind: "rate_limit_info";
486
- account?: string | undefined;
487
- } | {
488
- kind: "fast_mode";
489
- state: "cooldown" | "off" | "on";
490
- reason?: string | undefined;
491
- } | {
492
- kind: "tier";
493
- tier: "fast" | "standard";
494
- score: number;
495
- rules: string[];
496
- model?: string | undefined;
497
- routed: boolean;
498
- held?: boolean | undefined;
499
- } | {
500
- kind: "provider_retry";
501
- attempt: number;
502
- maxAttempts?: number | undefined;
503
- nextAttemptAt?: number | undefined;
504
- status?: number | undefined;
505
- } | {
506
- kind: "account_usage";
507
- account?: string | undefined;
508
- windows: {
509
- kind: string;
510
- label?: string | undefined;
511
- utilization: number;
512
- resetsAt?: number | undefined;
513
- }[];
514
- } | {
515
- tokens: number;
516
- contextWindow: number;
517
- kind: "context_usage";
518
- } | {
519
- kind: "compact";
520
- trigger: string;
521
- preTokens?: number | undefined;
522
- postTokens?: number | undefined;
523
- } | {
524
- kind: "browser_help";
525
- requestId: string;
526
- session: string;
527
- account: string;
528
- message: string;
529
- } | {
530
- kind: "terminal_help";
531
- requestId: string;
532
- session: string;
533
- message: string;
534
- } | {
535
- kind: "service_offer";
536
- requestId: string;
537
- offer: {
538
- slug: string;
539
- name: string;
540
- publisher: string;
541
- description: string;
542
- creditsPerRun: number;
543
- probation?: boolean | undefined;
544
- credits?: {
545
- allowance: number;
546
- remaining: number;
547
- resetsAt: string;
306
+ document?: {
307
+ path: string;
308
+ title: string;
309
+ markdown: string;
310
+ truncated?: boolean | undefined;
311
+ plan?: boolean | undefined;
548
312
  } | undefined;
549
- request: string;
550
- why?: string | undefined;
551
- };
552
- } | {
553
- kind: "service_event";
554
- requestId: string;
555
- event: {
556
- event: "status";
557
- text: string;
558
- } | {
559
- event: "result";
560
- data: unknown;
561
- };
562
- } | {
563
- kind: "service_receipt";
564
- requestId: string;
565
- outcome: "ok" | "refunded" | "refused";
566
- credits: number;
567
- remaining?: number | undefined;
568
- } | {
569
- kind: "capability_offer";
570
- requestId: string;
571
- offer: {
572
- card: string;
573
- name: string;
574
- why?: string | undefined;
575
- };
576
- } | {
577
- kind: "capability_outcome";
578
- requestId: string;
579
- outcome: "connected" | "unfinished";
580
- id?: string | undefined;
581
- } | {
582
- kind: "payment_offer";
583
- requestId: string;
584
- offer: {
585
- url: string;
586
- description?: string | undefined;
587
- payTo: string;
588
- network: string;
589
- asset: string;
590
- assetName: string;
591
- amountUsd: string;
592
- spentTodayUsd: string;
593
- dailyCapUsd: string;
594
- why?: string | undefined;
595
- };
596
- } | {
597
- kind: "payment_receipt";
598
- requestId: string;
599
- outcome: "failed" | "paid";
600
- amountUsd: string;
601
- transaction?: string | undefined;
602
- network?: string | undefined;
603
- } | {
604
- kind: "resolved";
605
- requestId: string;
606
- reply?: {
607
- kind: "plan";
608
- requestId: string;
609
- approve: boolean;
610
- feedback?: string | undefined;
611
- } | {
612
- kind: "question";
313
+ status: "approved" | "cancelled" | "pending" | "rejected";
314
+ } | undefined;
315
+ question?: {
613
316
  requestId: string;
317
+ questions: {
318
+ question: string;
319
+ header: string;
320
+ multiSelect: boolean;
321
+ options: {
322
+ label: string;
323
+ description: string;
324
+ preview?: string | undefined;
325
+ }[];
326
+ }[];
327
+ document?: {
328
+ path: string;
329
+ title: string;
330
+ markdown: string;
331
+ truncated?: boolean | undefined;
332
+ plan?: boolean | undefined;
333
+ } | undefined;
334
+ status: "answered" | "cancelled" | "pending";
614
335
  answers?: Record<string, string[]> | undefined;
615
- cancelled?: boolean | undefined;
616
- } | {
617
- kind: "permission";
336
+ } | undefined;
337
+ permission?: {
338
+ toolName: string;
339
+ title?: string | undefined;
340
+ displayName?: string | undefined;
341
+ description?: string | undefined;
342
+ reason?: string | undefined;
343
+ path?: string | undefined;
344
+ alwaysLabel?: string | undefined;
345
+ program?: {
346
+ text: string;
347
+ language: "bash" | "javascript";
348
+ truncated: boolean;
349
+ spans: {
350
+ start: number;
351
+ end: number;
352
+ }[];
353
+ } | undefined;
354
+ explain?: string | undefined;
618
355
  requestId: string;
619
- decision: "always" | "deny" | "once";
620
- feedback?: string | undefined;
621
- } | {
622
- kind: "browser_help";
356
+ status: "allowed" | "always" | "cancelled" | "denied" | "pending";
357
+ } | undefined;
358
+ browserHelp?: {
623
359
  requestId: string;
624
- helped: boolean;
625
- note?: string | undefined;
626
- } | {
627
- kind: "terminal_help";
360
+ session: string;
361
+ account: string;
362
+ message: string;
363
+ status: "cancelled" | "declined" | "helped" | "pending";
364
+ } | undefined;
365
+ terminalHelp?: {
628
366
  requestId: string;
629
- helped: boolean;
630
- note?: string | undefined;
631
- } | {
632
- kind: "service_offer";
367
+ session: string;
368
+ message: string;
369
+ status: "cancelled" | "declined" | "helped" | "pending";
370
+ } | undefined;
371
+ serviceOffer?: {
633
372
  requestId: string;
634
- approve: boolean;
635
- } | {
636
- kind: "capability_offer";
373
+ offer: {
374
+ slug: string;
375
+ name: string;
376
+ publisher: string;
377
+ description: string;
378
+ creditsPerRun: number;
379
+ probation?: boolean | undefined;
380
+ credits?: {
381
+ allowance: number;
382
+ remaining: number;
383
+ resetsAt: string;
384
+ } | undefined;
385
+ request: string;
386
+ why?: string | undefined;
387
+ };
388
+ status: "approved" | "cancelled" | "pending" | "skipped";
389
+ events?: ({
390
+ event: "status";
391
+ text: string;
392
+ } | {
393
+ event: "result";
394
+ data: unknown;
395
+ })[] | undefined;
396
+ receipt?: {
397
+ outcome: "ok" | "refunded" | "refused";
398
+ credits: number;
399
+ remaining?: number | undefined;
400
+ } | undefined;
401
+ } | undefined;
402
+ capabilityOffer?: {
637
403
  requestId: string;
638
- connect: boolean;
639
- } | {
640
- kind: "payment_offer";
404
+ offer: {
405
+ card: string;
406
+ name: string;
407
+ why?: string | undefined;
408
+ };
409
+ status: "cancelled" | "connecting" | "pending" | "skipped";
410
+ outcome?: {
411
+ outcome: "connected" | "unfinished";
412
+ id?: string | undefined;
413
+ } | undefined;
414
+ } | undefined;
415
+ paymentOffer?: {
641
416
  requestId: string;
642
- approve: boolean;
417
+ offer: {
418
+ url: string;
419
+ description?: string | undefined;
420
+ payTo: string;
421
+ network: string;
422
+ asset: string;
423
+ assetName: string;
424
+ amountUsd: string;
425
+ spentTodayUsd: string;
426
+ dailyCapUsd: string;
427
+ why?: string | undefined;
428
+ };
429
+ status: "approved" | "cancelled" | "pending" | "skipped";
430
+ receipt?: {
431
+ outcome: "failed" | "paid";
432
+ amountUsd: string;
433
+ transaction?: string | undefined;
434
+ network?: string | undefined;
435
+ } | undefined;
643
436
  } | undefined;
437
+ }[];
438
+ } | {
439
+ kind: "patch";
440
+ seq: number;
441
+ patch: {
442
+ op: "append";
443
+ row: {
444
+ role: "assistant" | "notice" | "user";
445
+ text: string;
446
+ sentAt?: number | undefined;
447
+ attachments?: string[] | undefined;
448
+ checkpointId?: string | undefined;
449
+ rewindIndex?: number | undefined;
450
+ thinking?: string | undefined;
451
+ tools?: unknown[] | undefined;
452
+ todos?: {
453
+ content: string;
454
+ status: "completed" | "in_progress" | "pending";
455
+ activeForm?: string | undefined;
456
+ }[] | undefined;
457
+ usage?: {
458
+ costUsd?: number | undefined;
459
+ inputTokens?: number | undefined;
460
+ outputTokens?: number | undefined;
461
+ durationMs?: number | undefined;
462
+ numTurns?: number | undefined;
463
+ } | undefined;
464
+ notes?: {
465
+ title: string;
466
+ text: string;
467
+ }[] | undefined;
468
+ placed?: boolean | undefined;
469
+ noticeAction?: "depsInstall" | "landHold" | "outageOptOut" | "tierHold" | undefined;
470
+ noticeWait?: "credentialRenewal" | undefined;
471
+ plan?: {
472
+ requestId: string;
473
+ text: string;
474
+ document?: {
475
+ path: string;
476
+ title: string;
477
+ markdown: string;
478
+ truncated?: boolean | undefined;
479
+ plan?: boolean | undefined;
480
+ } | undefined;
481
+ status: "approved" | "cancelled" | "pending" | "rejected";
482
+ } | undefined;
483
+ question?: {
484
+ requestId: string;
485
+ questions: {
486
+ question: string;
487
+ header: string;
488
+ multiSelect: boolean;
489
+ options: {
490
+ label: string;
491
+ description: string;
492
+ preview?: string | undefined;
493
+ }[];
494
+ }[];
495
+ document?: {
496
+ path: string;
497
+ title: string;
498
+ markdown: string;
499
+ truncated?: boolean | undefined;
500
+ plan?: boolean | undefined;
501
+ } | undefined;
502
+ status: "answered" | "cancelled" | "pending";
503
+ answers?: Record<string, string[]> | undefined;
504
+ } | undefined;
505
+ permission?: {
506
+ toolName: string;
507
+ title?: string | undefined;
508
+ displayName?: string | undefined;
509
+ description?: string | undefined;
510
+ reason?: string | undefined;
511
+ path?: string | undefined;
512
+ alwaysLabel?: string | undefined;
513
+ program?: {
514
+ text: string;
515
+ language: "bash" | "javascript";
516
+ truncated: boolean;
517
+ spans: {
518
+ start: number;
519
+ end: number;
520
+ }[];
521
+ } | undefined;
522
+ explain?: string | undefined;
523
+ requestId: string;
524
+ status: "allowed" | "always" | "cancelled" | "denied" | "pending";
525
+ } | undefined;
526
+ browserHelp?: {
527
+ requestId: string;
528
+ session: string;
529
+ account: string;
530
+ message: string;
531
+ status: "cancelled" | "declined" | "helped" | "pending";
532
+ } | undefined;
533
+ terminalHelp?: {
534
+ requestId: string;
535
+ session: string;
536
+ message: string;
537
+ status: "cancelled" | "declined" | "helped" | "pending";
538
+ } | undefined;
539
+ serviceOffer?: {
540
+ requestId: string;
541
+ offer: {
542
+ slug: string;
543
+ name: string;
544
+ publisher: string;
545
+ description: string;
546
+ creditsPerRun: number;
547
+ probation?: boolean | undefined;
548
+ credits?: {
549
+ allowance: number;
550
+ remaining: number;
551
+ resetsAt: string;
552
+ } | undefined;
553
+ request: string;
554
+ why?: string | undefined;
555
+ };
556
+ status: "approved" | "cancelled" | "pending" | "skipped";
557
+ events?: ({
558
+ event: "status";
559
+ text: string;
560
+ } | {
561
+ event: "result";
562
+ data: unknown;
563
+ })[] | undefined;
564
+ receipt?: {
565
+ outcome: "ok" | "refunded" | "refused";
566
+ credits: number;
567
+ remaining?: number | undefined;
568
+ } | undefined;
569
+ } | undefined;
570
+ capabilityOffer?: {
571
+ requestId: string;
572
+ offer: {
573
+ card: string;
574
+ name: string;
575
+ why?: string | undefined;
576
+ };
577
+ status: "cancelled" | "connecting" | "pending" | "skipped";
578
+ outcome?: {
579
+ outcome: "connected" | "unfinished";
580
+ id?: string | undefined;
581
+ } | undefined;
582
+ } | undefined;
583
+ paymentOffer?: {
584
+ requestId: string;
585
+ offer: {
586
+ url: string;
587
+ description?: string | undefined;
588
+ payTo: string;
589
+ network: string;
590
+ asset: string;
591
+ assetName: string;
592
+ amountUsd: string;
593
+ spentTodayUsd: string;
594
+ dailyCapUsd: string;
595
+ why?: string | undefined;
596
+ };
597
+ status: "approved" | "cancelled" | "pending" | "skipped";
598
+ receipt?: {
599
+ outcome: "failed" | "paid";
600
+ amountUsd: string;
601
+ transaction?: string | undefined;
602
+ network?: string | undefined;
603
+ } | undefined;
604
+ } | undefined;
605
+ };
606
+ } | {
607
+ op: "replace";
608
+ index: number;
609
+ row: {
610
+ role: "assistant" | "notice" | "user";
611
+ text: string;
612
+ sentAt?: number | undefined;
613
+ attachments?: string[] | undefined;
614
+ checkpointId?: string | undefined;
615
+ rewindIndex?: number | undefined;
616
+ thinking?: string | undefined;
617
+ tools?: unknown[] | undefined;
618
+ todos?: {
619
+ content: string;
620
+ status: "completed" | "in_progress" | "pending";
621
+ activeForm?: string | undefined;
622
+ }[] | undefined;
623
+ usage?: {
624
+ costUsd?: number | undefined;
625
+ inputTokens?: number | undefined;
626
+ outputTokens?: number | undefined;
627
+ durationMs?: number | undefined;
628
+ numTurns?: number | undefined;
629
+ } | undefined;
630
+ notes?: {
631
+ title: string;
632
+ text: string;
633
+ }[] | undefined;
634
+ placed?: boolean | undefined;
635
+ noticeAction?: "depsInstall" | "landHold" | "outageOptOut" | "tierHold" | undefined;
636
+ noticeWait?: "credentialRenewal" | undefined;
637
+ plan?: {
638
+ requestId: string;
639
+ text: string;
640
+ document?: {
641
+ path: string;
642
+ title: string;
643
+ markdown: string;
644
+ truncated?: boolean | undefined;
645
+ plan?: boolean | undefined;
646
+ } | undefined;
647
+ status: "approved" | "cancelled" | "pending" | "rejected";
648
+ } | undefined;
649
+ question?: {
650
+ requestId: string;
651
+ questions: {
652
+ question: string;
653
+ header: string;
654
+ multiSelect: boolean;
655
+ options: {
656
+ label: string;
657
+ description: string;
658
+ preview?: string | undefined;
659
+ }[];
660
+ }[];
661
+ document?: {
662
+ path: string;
663
+ title: string;
664
+ markdown: string;
665
+ truncated?: boolean | undefined;
666
+ plan?: boolean | undefined;
667
+ } | undefined;
668
+ status: "answered" | "cancelled" | "pending";
669
+ answers?: Record<string, string[]> | undefined;
670
+ } | undefined;
671
+ permission?: {
672
+ toolName: string;
673
+ title?: string | undefined;
674
+ displayName?: string | undefined;
675
+ description?: string | undefined;
676
+ reason?: string | undefined;
677
+ path?: string | undefined;
678
+ alwaysLabel?: string | undefined;
679
+ program?: {
680
+ text: string;
681
+ language: "bash" | "javascript";
682
+ truncated: boolean;
683
+ spans: {
684
+ start: number;
685
+ end: number;
686
+ }[];
687
+ } | undefined;
688
+ explain?: string | undefined;
689
+ requestId: string;
690
+ status: "allowed" | "always" | "cancelled" | "denied" | "pending";
691
+ } | undefined;
692
+ browserHelp?: {
693
+ requestId: string;
694
+ session: string;
695
+ account: string;
696
+ message: string;
697
+ status: "cancelled" | "declined" | "helped" | "pending";
698
+ } | undefined;
699
+ terminalHelp?: {
700
+ requestId: string;
701
+ session: string;
702
+ message: string;
703
+ status: "cancelled" | "declined" | "helped" | "pending";
704
+ } | undefined;
705
+ serviceOffer?: {
706
+ requestId: string;
707
+ offer: {
708
+ slug: string;
709
+ name: string;
710
+ publisher: string;
711
+ description: string;
712
+ creditsPerRun: number;
713
+ probation?: boolean | undefined;
714
+ credits?: {
715
+ allowance: number;
716
+ remaining: number;
717
+ resetsAt: string;
718
+ } | undefined;
719
+ request: string;
720
+ why?: string | undefined;
721
+ };
722
+ status: "approved" | "cancelled" | "pending" | "skipped";
723
+ events?: ({
724
+ event: "status";
725
+ text: string;
726
+ } | {
727
+ event: "result";
728
+ data: unknown;
729
+ })[] | undefined;
730
+ receipt?: {
731
+ outcome: "ok" | "refunded" | "refused";
732
+ credits: number;
733
+ remaining?: number | undefined;
734
+ } | undefined;
735
+ } | undefined;
736
+ capabilityOffer?: {
737
+ requestId: string;
738
+ offer: {
739
+ card: string;
740
+ name: string;
741
+ why?: string | undefined;
742
+ };
743
+ status: "cancelled" | "connecting" | "pending" | "skipped";
744
+ outcome?: {
745
+ outcome: "connected" | "unfinished";
746
+ id?: string | undefined;
747
+ } | undefined;
748
+ } | undefined;
749
+ paymentOffer?: {
750
+ requestId: string;
751
+ offer: {
752
+ url: string;
753
+ description?: string | undefined;
754
+ payTo: string;
755
+ network: string;
756
+ asset: string;
757
+ assetName: string;
758
+ amountUsd: string;
759
+ spentTodayUsd: string;
760
+ dailyCapUsd: string;
761
+ why?: string | undefined;
762
+ };
763
+ status: "approved" | "cancelled" | "pending" | "skipped";
764
+ receipt?: {
765
+ outcome: "failed" | "paid";
766
+ amountUsd: string;
767
+ transaction?: string | undefined;
768
+ network?: string | undefined;
769
+ } | undefined;
770
+ } | undefined;
771
+ };
644
772
  } | {
645
- kind: "permission_note";
646
- requestId: string;
647
- explain: string;
773
+ op: "drop";
774
+ index: number;
648
775
  } | {
649
- kind: "mode";
650
- mode: "acceptEdits" | "bypassPermissions" | "default" | "plan";
776
+ op: "text";
777
+ index: number;
778
+ text: string;
651
779
  } | {
652
- kind: "error";
653
- message: string;
654
- code?: "agent-busy" | "claude-not-entitled" | "claude-reauth" | "claude-token-refused" | "codex-advisory" | "codex-model-invalid" | "codex-reauth" | "context-window-too-small" | "engine-version-floor" | "grok-model-invalid" | "harness-incomplete" | "provider-outage" | "rate_limit" | "sandbox-memory-low" | "session-not-found" | "subscription-required" | "trial-exhausted" | "trial-model-unavailable" | "trial-unavailable" | "turn-cap" | "unknown-command" | undefined;
655
- engine?: {
656
- id: string;
657
- running?: string | undefined;
658
- floor: string;
659
- } | undefined;
660
- resetsAt?: number | undefined;
661
- autoResume?: "available" | "scheduled" | undefined;
662
- held?: {
663
- ran: boolean;
664
- } | undefined;
665
- outage?: {
666
- retryAt: number;
667
- attempt: number;
668
- maxAttempts: number;
669
- } | undefined;
780
+ op: "thinking";
781
+ index: number;
782
+ text: string;
670
783
  } | {
671
- kind: "done";
784
+ op: "tool";
785
+ index: number;
786
+ tool: unknown;
787
+ parent?: string | undefined;
672
788
  };
789
+ } | {
790
+ kind: "fact";
791
+ seq: number;
792
+ fact: unknown;
673
793
  } | {
674
794
  kind: "end";
675
795
  }, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
676
796
  kind: "attached";
677
797
  run: string;
678
- prompt: string;
679
798
  startedAt: number;
680
799
  seq: number;
681
- } | {
682
- kind: "frame";
683
- seq: number;
684
- event: {
685
- kind: "plan";
686
- requestId: string;
800
+ rows: {
801
+ role: "assistant" | "notice" | "user";
687
802
  text: string;
688
- document?: {
689
- path: string;
690
- title: string;
691
- markdown: string;
692
- truncated?: boolean | undefined;
693
- plan?: boolean | undefined;
803
+ sentAt?: number | undefined;
804
+ attachments?: string[] | undefined;
805
+ checkpointId?: string | undefined;
806
+ rewindIndex?: number | undefined;
807
+ thinking?: string | undefined;
808
+ tools?: import("./events.js").TranscriptTool[] | undefined;
809
+ todos?: {
810
+ content: string;
811
+ status: "completed" | "in_progress" | "pending";
812
+ activeForm?: string | undefined;
813
+ }[] | undefined;
814
+ usage?: {
815
+ costUsd?: number | undefined;
816
+ inputTokens?: number | undefined;
817
+ outputTokens?: number | undefined;
818
+ durationMs?: number | undefined;
819
+ numTurns?: number | undefined;
694
820
  } | undefined;
695
- } | {
696
- kind: "question";
697
- requestId: string;
698
- questions: {
699
- question: string;
700
- header: string;
701
- multiSelect: boolean;
702
- options: {
703
- label: string;
704
- description: string;
705
- preview?: string | undefined;
706
- }[];
707
- }[];
708
- document?: {
709
- path: string;
821
+ notes?: {
710
822
  title: string;
711
- markdown: string;
712
- truncated?: boolean | undefined;
713
- plan?: boolean | undefined;
714
- } | undefined;
715
- } | {
716
- toolName: string;
717
- title?: string | undefined;
718
- displayName?: string | undefined;
719
- description?: string | undefined;
720
- reason?: string | undefined;
721
- path?: string | undefined;
722
- alwaysLabel?: string | undefined;
723
- program?: {
724
823
  text: string;
725
- language: "bash" | "javascript";
726
- truncated: boolean;
727
- spans: {
728
- start: number;
729
- end: number;
824
+ }[] | undefined;
825
+ placed?: boolean | undefined;
826
+ noticeAction?: "depsInstall" | "landHold" | "outageOptOut" | "tierHold" | undefined;
827
+ noticeWait?: "credentialRenewal" | undefined;
828
+ plan?: {
829
+ requestId: string;
830
+ text: string;
831
+ document?: {
832
+ path: string;
833
+ title: string;
834
+ markdown: string;
835
+ truncated?: boolean | undefined;
836
+ plan?: boolean | undefined;
837
+ } | undefined;
838
+ status: "approved" | "cancelled" | "pending" | "rejected";
839
+ } | undefined;
840
+ question?: {
841
+ requestId: string;
842
+ questions: {
843
+ question: string;
844
+ header: string;
845
+ multiSelect: boolean;
846
+ options: {
847
+ label: string;
848
+ description: string;
849
+ preview?: string | undefined;
850
+ }[];
730
851
  }[];
852
+ document?: {
853
+ path: string;
854
+ title: string;
855
+ markdown: string;
856
+ truncated?: boolean | undefined;
857
+ plan?: boolean | undefined;
858
+ } | undefined;
859
+ status: "answered" | "cancelled" | "pending";
860
+ answers?: Record<string, string[]> | undefined;
731
861
  } | undefined;
732
- explain?: string | undefined;
733
- kind: "permission";
734
- requestId: string;
735
- } | {
736
- kind: "session";
737
- sessionId: string;
738
- account?: string | undefined;
739
- } | {
740
- kind: "worktree";
741
- branch: string;
742
- base: string;
743
- unenforced?: boolean | undefined;
744
- sync?: {
745
- commits: number;
746
- blocked: string[];
862
+ permission?: {
863
+ toolName: string;
864
+ title?: string | undefined;
865
+ displayName?: string | undefined;
866
+ description?: string | undefined;
867
+ reason?: string | undefined;
868
+ path?: string | undefined;
869
+ alwaysLabel?: string | undefined;
870
+ program?: {
871
+ text: string;
872
+ language: "bash" | "javascript";
873
+ truncated: boolean;
874
+ spans: {
875
+ start: number;
876
+ end: number;
877
+ }[];
878
+ } | undefined;
879
+ explain?: string | undefined;
880
+ requestId: string;
881
+ status: "allowed" | "always" | "cancelled" | "denied" | "pending";
747
882
  } | undefined;
748
- remote?: string | undefined;
749
- } | {
750
- kind: "landed";
751
- landed: boolean;
752
- conflicts?: {
753
- repo: string;
754
- paths: {
755
- path: string;
756
- reason: "binary" | "diverged" | "workspace";
757
- }[];
758
- clean: number;
759
- mainBranch?: string | undefined;
760
- }[] | undefined;
761
- held?: boolean | undefined;
762
- deps?: {
763
- missing: number;
764
- started: string[];
765
- deferred: boolean;
883
+ browserHelp?: {
884
+ requestId: string;
885
+ session: string;
886
+ account: string;
887
+ message: string;
888
+ status: "cancelled" | "declined" | "helped" | "pending";
766
889
  } | undefined;
767
- } | {
768
- kind: "preamble";
769
- notes: {
770
- title: string;
890
+ terminalHelp?: {
891
+ requestId: string;
892
+ session: string;
893
+ message: string;
894
+ status: "cancelled" | "declined" | "helped" | "pending";
895
+ } | undefined;
896
+ serviceOffer?: {
897
+ requestId: string;
898
+ offer: {
899
+ slug: string;
900
+ name: string;
901
+ publisher: string;
902
+ description: string;
903
+ creditsPerRun: number;
904
+ probation?: boolean | undefined;
905
+ credits?: {
906
+ allowance: number;
907
+ remaining: number;
908
+ resetsAt: string;
909
+ } | undefined;
910
+ request: string;
911
+ why?: string | undefined;
912
+ };
913
+ status: "approved" | "cancelled" | "pending" | "skipped";
914
+ events?: ({
915
+ event: "status";
916
+ text: string;
917
+ } | {
918
+ event: "result";
919
+ data: unknown;
920
+ })[] | undefined;
921
+ receipt?: {
922
+ outcome: "ok" | "refunded" | "refused";
923
+ credits: number;
924
+ remaining?: number | undefined;
925
+ } | undefined;
926
+ } | undefined;
927
+ capabilityOffer?: {
928
+ requestId: string;
929
+ offer: {
930
+ card: string;
931
+ name: string;
932
+ why?: string | undefined;
933
+ };
934
+ status: "cancelled" | "connecting" | "pending" | "skipped";
935
+ outcome?: {
936
+ outcome: "connected" | "unfinished";
937
+ id?: string | undefined;
938
+ } | undefined;
939
+ } | undefined;
940
+ paymentOffer?: {
941
+ requestId: string;
942
+ offer: {
943
+ url: string;
944
+ description?: string | undefined;
945
+ payTo: string;
946
+ network: string;
947
+ asset: string;
948
+ assetName: string;
949
+ amountUsd: string;
950
+ spentTodayUsd: string;
951
+ dailyCapUsd: string;
952
+ why?: string | undefined;
953
+ };
954
+ status: "approved" | "cancelled" | "pending" | "skipped";
955
+ receipt?: {
956
+ outcome: "failed" | "paid";
957
+ amountUsd: string;
958
+ transaction?: string | undefined;
959
+ network?: string | undefined;
960
+ } | undefined;
961
+ } | undefined;
962
+ }[];
963
+ } | {
964
+ kind: "patch";
965
+ seq: number;
966
+ patch: {
967
+ op: "append";
968
+ row: {
969
+ role: "assistant" | "notice" | "user";
771
970
  text: string;
772
- }[];
773
- } | {
774
- kind: "init";
775
- model: string;
971
+ sentAt?: number | undefined;
972
+ attachments?: string[] | undefined;
973
+ checkpointId?: string | undefined;
974
+ rewindIndex?: number | undefined;
975
+ thinking?: string | undefined;
976
+ tools?: import("./events.js").TranscriptTool[] | undefined;
977
+ todos?: {
978
+ content: string;
979
+ status: "completed" | "in_progress" | "pending";
980
+ activeForm?: string | undefined;
981
+ }[] | undefined;
982
+ usage?: {
983
+ costUsd?: number | undefined;
984
+ inputTokens?: number | undefined;
985
+ outputTokens?: number | undefined;
986
+ durationMs?: number | undefined;
987
+ numTurns?: number | undefined;
988
+ } | undefined;
989
+ notes?: {
990
+ title: string;
991
+ text: string;
992
+ }[] | undefined;
993
+ placed?: boolean | undefined;
994
+ noticeAction?: "depsInstall" | "landHold" | "outageOptOut" | "tierHold" | undefined;
995
+ noticeWait?: "credentialRenewal" | undefined;
996
+ plan?: {
997
+ requestId: string;
998
+ text: string;
999
+ document?: {
1000
+ path: string;
1001
+ title: string;
1002
+ markdown: string;
1003
+ truncated?: boolean | undefined;
1004
+ plan?: boolean | undefined;
1005
+ } | undefined;
1006
+ status: "approved" | "cancelled" | "pending" | "rejected";
1007
+ } | undefined;
1008
+ question?: {
1009
+ requestId: string;
1010
+ questions: {
1011
+ question: string;
1012
+ header: string;
1013
+ multiSelect: boolean;
1014
+ options: {
1015
+ label: string;
1016
+ description: string;
1017
+ preview?: string | undefined;
1018
+ }[];
1019
+ }[];
1020
+ document?: {
1021
+ path: string;
1022
+ title: string;
1023
+ markdown: string;
1024
+ truncated?: boolean | undefined;
1025
+ plan?: boolean | undefined;
1026
+ } | undefined;
1027
+ status: "answered" | "cancelled" | "pending";
1028
+ answers?: Record<string, string[]> | undefined;
1029
+ } | undefined;
1030
+ permission?: {
1031
+ toolName: string;
1032
+ title?: string | undefined;
1033
+ displayName?: string | undefined;
1034
+ description?: string | undefined;
1035
+ reason?: string | undefined;
1036
+ path?: string | undefined;
1037
+ alwaysLabel?: string | undefined;
1038
+ program?: {
1039
+ text: string;
1040
+ language: "bash" | "javascript";
1041
+ truncated: boolean;
1042
+ spans: {
1043
+ start: number;
1044
+ end: number;
1045
+ }[];
1046
+ } | undefined;
1047
+ explain?: string | undefined;
1048
+ requestId: string;
1049
+ status: "allowed" | "always" | "cancelled" | "denied" | "pending";
1050
+ } | undefined;
1051
+ browserHelp?: {
1052
+ requestId: string;
1053
+ session: string;
1054
+ account: string;
1055
+ message: string;
1056
+ status: "cancelled" | "declined" | "helped" | "pending";
1057
+ } | undefined;
1058
+ terminalHelp?: {
1059
+ requestId: string;
1060
+ session: string;
1061
+ message: string;
1062
+ status: "cancelled" | "declined" | "helped" | "pending";
1063
+ } | undefined;
1064
+ serviceOffer?: {
1065
+ requestId: string;
1066
+ offer: {
1067
+ slug: string;
1068
+ name: string;
1069
+ publisher: string;
1070
+ description: string;
1071
+ creditsPerRun: number;
1072
+ probation?: boolean | undefined;
1073
+ credits?: {
1074
+ allowance: number;
1075
+ remaining: number;
1076
+ resetsAt: string;
1077
+ } | undefined;
1078
+ request: string;
1079
+ why?: string | undefined;
1080
+ };
1081
+ status: "approved" | "cancelled" | "pending" | "skipped";
1082
+ events?: ({
1083
+ event: "status";
1084
+ text: string;
1085
+ } | {
1086
+ event: "result";
1087
+ data: unknown;
1088
+ })[] | undefined;
1089
+ receipt?: {
1090
+ outcome: "ok" | "refunded" | "refused";
1091
+ credits: number;
1092
+ remaining?: number | undefined;
1093
+ } | undefined;
1094
+ } | undefined;
1095
+ capabilityOffer?: {
1096
+ requestId: string;
1097
+ offer: {
1098
+ card: string;
1099
+ name: string;
1100
+ why?: string | undefined;
1101
+ };
1102
+ status: "cancelled" | "connecting" | "pending" | "skipped";
1103
+ outcome?: {
1104
+ outcome: "connected" | "unfinished";
1105
+ id?: string | undefined;
1106
+ } | undefined;
1107
+ } | undefined;
1108
+ paymentOffer?: {
1109
+ requestId: string;
1110
+ offer: {
1111
+ url: string;
1112
+ description?: string | undefined;
1113
+ payTo: string;
1114
+ network: string;
1115
+ asset: string;
1116
+ assetName: string;
1117
+ amountUsd: string;
1118
+ spentTodayUsd: string;
1119
+ dailyCapUsd: string;
1120
+ why?: string | undefined;
1121
+ };
1122
+ status: "approved" | "cancelled" | "pending" | "skipped";
1123
+ receipt?: {
1124
+ outcome: "failed" | "paid";
1125
+ amountUsd: string;
1126
+ transaction?: string | undefined;
1127
+ network?: string | undefined;
1128
+ } | undefined;
1129
+ } | undefined;
1130
+ };
776
1131
  } | {
777
- kind: "checkpoint";
778
- id: string;
779
- index?: number | undefined;
1132
+ op: "replace";
1133
+ index: number;
1134
+ row: {
1135
+ role: "assistant" | "notice" | "user";
1136
+ text: string;
1137
+ sentAt?: number | undefined;
1138
+ attachments?: string[] | undefined;
1139
+ checkpointId?: string | undefined;
1140
+ rewindIndex?: number | undefined;
1141
+ thinking?: string | undefined;
1142
+ tools?: import("./events.js").TranscriptTool[] | undefined;
1143
+ todos?: {
1144
+ content: string;
1145
+ status: "completed" | "in_progress" | "pending";
1146
+ activeForm?: string | undefined;
1147
+ }[] | undefined;
1148
+ usage?: {
1149
+ costUsd?: number | undefined;
1150
+ inputTokens?: number | undefined;
1151
+ outputTokens?: number | undefined;
1152
+ durationMs?: number | undefined;
1153
+ numTurns?: number | undefined;
1154
+ } | undefined;
1155
+ notes?: {
1156
+ title: string;
1157
+ text: string;
1158
+ }[] | undefined;
1159
+ placed?: boolean | undefined;
1160
+ noticeAction?: "depsInstall" | "landHold" | "outageOptOut" | "tierHold" | undefined;
1161
+ noticeWait?: "credentialRenewal" | undefined;
1162
+ plan?: {
1163
+ requestId: string;
1164
+ text: string;
1165
+ document?: {
1166
+ path: string;
1167
+ title: string;
1168
+ markdown: string;
1169
+ truncated?: boolean | undefined;
1170
+ plan?: boolean | undefined;
1171
+ } | undefined;
1172
+ status: "approved" | "cancelled" | "pending" | "rejected";
1173
+ } | undefined;
1174
+ question?: {
1175
+ requestId: string;
1176
+ questions: {
1177
+ question: string;
1178
+ header: string;
1179
+ multiSelect: boolean;
1180
+ options: {
1181
+ label: string;
1182
+ description: string;
1183
+ preview?: string | undefined;
1184
+ }[];
1185
+ }[];
1186
+ document?: {
1187
+ path: string;
1188
+ title: string;
1189
+ markdown: string;
1190
+ truncated?: boolean | undefined;
1191
+ plan?: boolean | undefined;
1192
+ } | undefined;
1193
+ status: "answered" | "cancelled" | "pending";
1194
+ answers?: Record<string, string[]> | undefined;
1195
+ } | undefined;
1196
+ permission?: {
1197
+ toolName: string;
1198
+ title?: string | undefined;
1199
+ displayName?: string | undefined;
1200
+ description?: string | undefined;
1201
+ reason?: string | undefined;
1202
+ path?: string | undefined;
1203
+ alwaysLabel?: string | undefined;
1204
+ program?: {
1205
+ text: string;
1206
+ language: "bash" | "javascript";
1207
+ truncated: boolean;
1208
+ spans: {
1209
+ start: number;
1210
+ end: number;
1211
+ }[];
1212
+ } | undefined;
1213
+ explain?: string | undefined;
1214
+ requestId: string;
1215
+ status: "allowed" | "always" | "cancelled" | "denied" | "pending";
1216
+ } | undefined;
1217
+ browserHelp?: {
1218
+ requestId: string;
1219
+ session: string;
1220
+ account: string;
1221
+ message: string;
1222
+ status: "cancelled" | "declined" | "helped" | "pending";
1223
+ } | undefined;
1224
+ terminalHelp?: {
1225
+ requestId: string;
1226
+ session: string;
1227
+ message: string;
1228
+ status: "cancelled" | "declined" | "helped" | "pending";
1229
+ } | undefined;
1230
+ serviceOffer?: {
1231
+ requestId: string;
1232
+ offer: {
1233
+ slug: string;
1234
+ name: string;
1235
+ publisher: string;
1236
+ description: string;
1237
+ creditsPerRun: number;
1238
+ probation?: boolean | undefined;
1239
+ credits?: {
1240
+ allowance: number;
1241
+ remaining: number;
1242
+ resetsAt: string;
1243
+ } | undefined;
1244
+ request: string;
1245
+ why?: string | undefined;
1246
+ };
1247
+ status: "approved" | "cancelled" | "pending" | "skipped";
1248
+ events?: ({
1249
+ event: "status";
1250
+ text: string;
1251
+ } | {
1252
+ event: "result";
1253
+ data: unknown;
1254
+ })[] | undefined;
1255
+ receipt?: {
1256
+ outcome: "ok" | "refunded" | "refused";
1257
+ credits: number;
1258
+ remaining?: number | undefined;
1259
+ } | undefined;
1260
+ } | undefined;
1261
+ capabilityOffer?: {
1262
+ requestId: string;
1263
+ offer: {
1264
+ card: string;
1265
+ name: string;
1266
+ why?: string | undefined;
1267
+ };
1268
+ status: "cancelled" | "connecting" | "pending" | "skipped";
1269
+ outcome?: {
1270
+ outcome: "connected" | "unfinished";
1271
+ id?: string | undefined;
1272
+ } | undefined;
1273
+ } | undefined;
1274
+ paymentOffer?: {
1275
+ requestId: string;
1276
+ offer: {
1277
+ url: string;
1278
+ description?: string | undefined;
1279
+ payTo: string;
1280
+ network: string;
1281
+ asset: string;
1282
+ assetName: string;
1283
+ amountUsd: string;
1284
+ spentTodayUsd: string;
1285
+ dailyCapUsd: string;
1286
+ why?: string | undefined;
1287
+ };
1288
+ status: "approved" | "cancelled" | "pending" | "skipped";
1289
+ receipt?: {
1290
+ outcome: "failed" | "paid";
1291
+ amountUsd: string;
1292
+ transaction?: string | undefined;
1293
+ network?: string | undefined;
1294
+ } | undefined;
1295
+ } | undefined;
1296
+ };
780
1297
  } | {
781
- kind: "steer";
782
- text: string;
783
- sentAt: number;
784
- attachments?: string[] | undefined;
1298
+ op: "drop";
1299
+ index: number;
785
1300
  } | {
786
- kind: "delta";
1301
+ op: "text";
1302
+ index: number;
787
1303
  text: string;
788
- parentToolUseId?: string | undefined;
789
1304
  } | {
790
- kind: "text_end";
791
- parentToolUseId?: string | undefined;
792
- } | {
793
- kind: "thinking";
1305
+ op: "thinking";
1306
+ index: number;
794
1307
  text: string;
795
- parentToolUseId?: string | undefined;
796
- } | {
797
- kind: "tool_call";
798
- id: string;
799
- name: string;
800
- category: "delete" | "edit" | "execute" | "fetch" | "move" | "other" | "read" | "search" | "think";
801
- status: "completed" | "failed" | "in_progress" | "pending";
802
- target?: string | undefined;
803
- locations?: {
804
- path: string;
805
- line?: number | undefined;
806
- }[] | undefined;
807
- content?: ({
808
- type: "text";
809
- text: string;
810
- } | {
811
- type: "diff";
812
- path: string;
813
- oldText?: string | undefined;
814
- newText: string;
815
- truncated?: boolean | undefined;
816
- } | {
817
- type: "image";
818
- path: string;
819
- })[] | undefined;
820
- parentToolUseId?: string | undefined;
821
- } | {
822
- kind: "tool_call_update";
823
- id: string;
824
- status?: "completed" | "failed" | "in_progress" | "pending" | undefined;
825
- content?: ({
826
- type: "text";
827
- text: string;
828
- } | {
829
- type: "diff";
830
- path: string;
831
- oldText?: string | undefined;
832
- newText: string;
833
- truncated?: boolean | undefined;
834
- } | {
835
- type: "image";
836
- path: string;
837
- })[] | undefined;
838
- locations?: {
839
- path: string;
840
- line?: number | undefined;
841
- }[] | undefined;
842
- } | {
843
- kind: "terminal";
844
- session: string;
845
1308
  } | {
846
- kind: "browser";
847
- session: string;
848
- } | {
849
- kind: "subagent";
850
- id: string;
851
- subagentKind: "spawned" | "subagent";
852
- agentType?: string | undefined;
853
- description?: string | undefined;
854
- model?: string | undefined;
855
- provider?: string | undefined;
856
- background?: boolean | undefined;
857
- } | {
858
- kind: "subagent_update";
859
- id: string;
860
- status?: "blocked" | "completed" | "failed" | "killed" | "paused" | "pending" | "running" | undefined;
861
- tokens?: number | undefined;
862
- toolUses?: number | undefined;
863
- lastTool?: string | undefined;
864
- summary?: string | undefined;
865
- error?: string | undefined;
866
- verification?: {
867
- state: "failing" | "no-code" | "unproven" | "verified";
868
- paths?: string[] | undefined;
869
- check?: string | undefined;
870
- } | undefined;
871
- } | {
872
- kind: "todos";
873
- items: {
874
- content: string;
875
- status: "completed" | "in_progress" | "pending";
876
- activeForm?: string | undefined;
877
- }[];
878
- } | {
879
- kind: "commands";
880
- items: {
881
- name: string;
882
- description: string;
883
- hint?: string | undefined;
884
- }[];
885
- } | {
886
- kind: "usage";
887
- account?: string | undefined;
888
- costUsd?: number | undefined;
889
- inputTokens?: number | undefined;
890
- outputTokens?: number | undefined;
891
- cacheReadTokens?: number | undefined;
892
- cacheCreationTokens?: number | undefined;
893
- durationMs?: number | undefined;
894
- numTurns?: number | undefined;
895
- } | {
896
- status: "allowed" | "allowed_warning" | "rejected";
897
- resetsAt?: number | undefined;
898
- rateLimitType?: string | undefined;
899
- utilization?: number | undefined;
900
- kind: "rate_limit_info";
901
- account?: string | undefined;
902
- } | {
903
- kind: "fast_mode";
904
- state: "cooldown" | "off" | "on";
905
- reason?: string | undefined;
906
- } | {
907
- kind: "tier";
908
- tier: "fast" | "standard";
909
- score: number;
910
- rules: string[];
911
- model?: string | undefined;
912
- routed: boolean;
913
- held?: boolean | undefined;
914
- } | {
915
- kind: "provider_retry";
916
- attempt: number;
917
- maxAttempts?: number | undefined;
918
- nextAttemptAt?: number | undefined;
919
- status?: number | undefined;
920
- } | {
921
- kind: "account_usage";
922
- account?: string | undefined;
923
- windows: {
924
- kind: string;
925
- label?: string | undefined;
926
- utilization: number;
927
- resetsAt?: number | undefined;
928
- }[];
929
- } | {
930
- tokens: number;
931
- contextWindow: number;
932
- kind: "context_usage";
933
- } | {
934
- kind: "compact";
935
- trigger: string;
936
- preTokens?: number | undefined;
937
- postTokens?: number | undefined;
938
- } | {
939
- kind: "browser_help";
940
- requestId: string;
941
- session: string;
942
- account: string;
943
- message: string;
944
- } | {
945
- kind: "terminal_help";
946
- requestId: string;
947
- session: string;
948
- message: string;
949
- } | {
950
- kind: "service_offer";
951
- requestId: string;
952
- offer: {
953
- slug: string;
954
- name: string;
955
- publisher: string;
956
- description: string;
957
- creditsPerRun: number;
958
- probation?: boolean | undefined;
959
- credits?: {
960
- allowance: number;
961
- remaining: number;
962
- resetsAt: string;
963
- } | undefined;
964
- request: string;
965
- why?: string | undefined;
966
- };
967
- } | {
968
- kind: "service_event";
969
- requestId: string;
970
- event: {
971
- event: "status";
972
- text: string;
973
- } | {
974
- event: "result";
975
- data: unknown;
976
- };
977
- } | {
978
- kind: "service_receipt";
979
- requestId: string;
980
- outcome: "ok" | "refunded" | "refused";
981
- credits: number;
982
- remaining?: number | undefined;
983
- } | {
984
- kind: "capability_offer";
985
- requestId: string;
986
- offer: {
987
- card: string;
988
- name: string;
989
- why?: string | undefined;
990
- };
991
- } | {
992
- kind: "capability_outcome";
993
- requestId: string;
994
- outcome: "connected" | "unfinished";
995
- id?: string | undefined;
996
- } | {
997
- kind: "payment_offer";
998
- requestId: string;
999
- offer: {
1000
- url: string;
1001
- description?: string | undefined;
1002
- payTo: string;
1003
- network: string;
1004
- asset: string;
1005
- assetName: string;
1006
- amountUsd: string;
1007
- spentTodayUsd: string;
1008
- dailyCapUsd: string;
1009
- why?: string | undefined;
1010
- };
1011
- } | {
1012
- kind: "payment_receipt";
1013
- requestId: string;
1014
- outcome: "failed" | "paid";
1015
- amountUsd: string;
1016
- transaction?: string | undefined;
1017
- network?: string | undefined;
1018
- } | {
1019
- kind: "resolved";
1020
- requestId: string;
1021
- reply?: {
1022
- kind: "plan";
1023
- requestId: string;
1024
- approve: boolean;
1025
- feedback?: string | undefined;
1026
- } | {
1027
- kind: "question";
1028
- requestId: string;
1029
- answers?: Record<string, string[]> | undefined;
1030
- cancelled?: boolean | undefined;
1031
- } | {
1032
- kind: "permission";
1033
- requestId: string;
1034
- decision: "always" | "deny" | "once";
1035
- feedback?: string | undefined;
1036
- } | {
1037
- kind: "browser_help";
1038
- requestId: string;
1039
- helped: boolean;
1040
- note?: string | undefined;
1041
- } | {
1042
- kind: "terminal_help";
1043
- requestId: string;
1044
- helped: boolean;
1045
- note?: string | undefined;
1046
- } | {
1047
- kind: "service_offer";
1048
- requestId: string;
1049
- approve: boolean;
1050
- } | {
1051
- kind: "capability_offer";
1052
- requestId: string;
1053
- connect: boolean;
1054
- } | {
1055
- kind: "payment_offer";
1056
- requestId: string;
1057
- approve: boolean;
1058
- } | undefined;
1059
- } | {
1060
- kind: "permission_note";
1061
- requestId: string;
1062
- explain: string;
1063
- } | {
1064
- kind: "mode";
1065
- mode: "acceptEdits" | "bypassPermissions" | "default" | "plan";
1066
- } | {
1067
- kind: "error";
1068
- message: string;
1069
- code?: "agent-busy" | "claude-not-entitled" | "claude-reauth" | "claude-token-refused" | "codex-advisory" | "codex-model-invalid" | "codex-reauth" | "context-window-too-small" | "engine-version-floor" | "grok-model-invalid" | "harness-incomplete" | "provider-outage" | "rate_limit" | "sandbox-memory-low" | "session-not-found" | "subscription-required" | "trial-exhausted" | "trial-model-unavailable" | "trial-unavailable" | "turn-cap" | "unknown-command" | undefined;
1070
- engine?: {
1071
- id: string;
1072
- running?: string | undefined;
1073
- floor: string;
1074
- } | undefined;
1075
- resetsAt?: number | undefined;
1076
- autoResume?: "available" | "scheduled" | undefined;
1077
- held?: {
1078
- ran: boolean;
1079
- } | undefined;
1080
- outage?: {
1081
- retryAt: number;
1082
- attempt: number;
1083
- maxAttempts: number;
1084
- } | undefined;
1085
- } | {
1086
- kind: "done";
1309
+ op: "tool";
1310
+ index: number;
1311
+ tool: import("./events.js").TranscriptTool;
1312
+ parent?: string | undefined;
1087
1313
  };
1314
+ } | {
1315
+ kind: "fact";
1316
+ seq: number;
1317
+ fact: import("./events.js").TurnFact;
1088
1318
  } | {
1089
1319
  kind: "end";
1090
1320
  }, unknown, void>>, Record<never, never>, Record<never, never>>;
@@ -1190,6 +1420,7 @@ export declare const sandboxContract: {
1190
1420
  }>;
1191
1421
  message: import("zod").ZodString;
1192
1422
  account: import("zod").ZodOptional<import("zod").ZodString>;
1423
+ model: import("zod").ZodOptional<import("zod").ZodString>;
1193
1424
  }, import("zod/v4/core").$strip>>;
1194
1425
  }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
1195
1426
  };
@@ -1214,6 +1445,10 @@ export declare const sandboxContract: {
1214
1445
  stopping: "stopping";
1215
1446
  }>;
1216
1447
  failure: import("zod").ZodOptional<import("zod").ZodString>;
1448
+ failureCode: import("zod").ZodOptional<import("zod").ZodString>;
1449
+ limitResetsAt: import("zod").ZodOptional<import("zod").ZodNumber>;
1450
+ limitHeld: import("zod").ZodOptional<import("zod").ZodBoolean>;
1451
+ limitScheduled: import("zod").ZodOptional<import("zod").ZodBoolean>;
1217
1452
  provider: import("zod").ZodString;
1218
1453
  harness: import("zod").ZodEnum<{
1219
1454
  "claude-code": "claude-code";
@@ -1233,6 +1468,7 @@ export declare const sandboxContract: {
1233
1468
  branch: import("zod").ZodOptional<import("zod").ZodString>;
1234
1469
  autoLand: import("zod").ZodOptional<import("zod").ZodBoolean>;
1235
1470
  resumeAfterOutage: import("zod").ZodOptional<import("zod").ZodBoolean>;
1471
+ resumeAfterLimit: import("zod").ZodOptional<import("zod").ZodBoolean>;
1236
1472
  landRequested: import("zod").ZodOptional<import("zod").ZodObject<{
1237
1473
  email: import("zod").ZodString;
1238
1474
  name: import("zod").ZodOptional<import("zod").ZodString>;
@@ -1383,6 +1619,10 @@ export declare const sandboxContract: {
1383
1619
  stopping: "stopping";
1384
1620
  }>;
1385
1621
  failure: import("zod").ZodOptional<import("zod").ZodString>;
1622
+ failureCode: import("zod").ZodOptional<import("zod").ZodString>;
1623
+ limitResetsAt: import("zod").ZodOptional<import("zod").ZodNumber>;
1624
+ limitHeld: import("zod").ZodOptional<import("zod").ZodBoolean>;
1625
+ limitScheduled: import("zod").ZodOptional<import("zod").ZodBoolean>;
1386
1626
  provider: import("zod").ZodString;
1387
1627
  harness: import("zod").ZodEnum<{
1388
1628
  "claude-code": "claude-code";
@@ -1402,6 +1642,7 @@ export declare const sandboxContract: {
1402
1642
  branch: import("zod").ZodOptional<import("zod").ZodString>;
1403
1643
  autoLand: import("zod").ZodOptional<import("zod").ZodBoolean>;
1404
1644
  resumeAfterOutage: import("zod").ZodOptional<import("zod").ZodBoolean>;
1645
+ resumeAfterLimit: import("zod").ZodOptional<import("zod").ZodBoolean>;
1405
1646
  landRequested: import("zod").ZodOptional<import("zod").ZodObject<{
1406
1647
  email: import("zod").ZodString;
1407
1648
  name: import("zod").ZodOptional<import("zod").ZodString>;
@@ -1421,136 +1662,554 @@ export declare const sandboxContract: {
1421
1662
  then: "then";
1422
1663
  }>;
1423
1664
  }, import("zod/v4/core").$strip>>;
1424
- base: import("zod").ZodOptional<import("zod").ZodString>;
1425
- costUsd: import("zod").ZodOptional<import("zod").ZodNumber>;
1426
- inputTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
1427
- outputTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
1428
- contextTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
1429
- contextWindow: import("zod").ZodOptional<import("zod").ZodNumber>;
1430
- activity: import("zod").ZodOptional<import("zod").ZodObject<{
1431
- tool: import("zod").ZodOptional<import("zod").ZodString>;
1432
- target: import("zod").ZodOptional<import("zod").ZodString>;
1433
- todo: import("zod").ZodOptional<import("zod").ZodString>;
1665
+ base: import("zod").ZodOptional<import("zod").ZodString>;
1666
+ costUsd: import("zod").ZodOptional<import("zod").ZodNumber>;
1667
+ inputTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
1668
+ outputTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
1669
+ contextTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
1670
+ contextWindow: import("zod").ZodOptional<import("zod").ZodNumber>;
1671
+ activity: import("zod").ZodOptional<import("zod").ZodObject<{
1672
+ tool: import("zod").ZodOptional<import("zod").ZodString>;
1673
+ target: import("zod").ZodOptional<import("zod").ZodString>;
1674
+ todo: import("zod").ZodOptional<import("zod").ZodString>;
1675
+ }, import("zod/v4/core").$strip>>;
1676
+ landedMessageDraft: import("zod").ZodOptional<import("zod").ZodObject<{
1677
+ startedAt: import("zod").ZodNumber;
1678
+ steps: import("zod").ZodArray<import("zod").ZodObject<{
1679
+ provider: import("zod").ZodString;
1680
+ model: import("zod").ZodString;
1681
+ status: import("zod").ZodEnum<{
1682
+ answered: "answered";
1683
+ asking: "asking";
1684
+ refused: "refused";
1685
+ skipped: "skipped";
1686
+ }>;
1687
+ at: import("zod").ZodOptional<import("zod").ZodNumber>;
1688
+ ms: import("zod").ZodOptional<import("zod").ZodNumber>;
1689
+ reason: import("zod").ZodOptional<import("zod").ZodString>;
1690
+ }, import("zod/v4/core").$strip>>;
1691
+ outcome: import("zod").ZodOptional<import("zod").ZodEnum<{
1692
+ failed: "failed";
1693
+ written: "written";
1694
+ }>>;
1695
+ reason: import("zod").ZodOptional<import("zod").ZodString>;
1696
+ finishedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
1697
+ }, import("zod/v4/core").$strip>>;
1698
+ landedMessage: import("zod").ZodOptional<import("zod").ZodObject<{
1699
+ subject: import("zod").ZodString;
1700
+ note: import("zod").ZodOptional<import("zod").ZodString>;
1701
+ breaking: import("zod").ZodOptional<import("zod").ZodString>;
1702
+ }, import("zod/v4/core").$strip>>;
1703
+ startedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
1704
+ updatedAt: import("zod").ZodNumber;
1705
+ seenAt: import("zod").ZodOptional<import("zod").ZodNumber>;
1706
+ attention: import("zod").ZodObject<{
1707
+ plan: import("zod").ZodBoolean;
1708
+ question: import("zod").ZodBoolean;
1709
+ permission: import("zod").ZodBoolean;
1710
+ service: import("zod").ZodBoolean;
1711
+ capability: import("zod").ZodBoolean;
1712
+ conflict: import("zod").ZodBoolean;
1713
+ }, import("zod/v4/core").$strip>;
1714
+ turns: import("zod").ZodOptional<import("zod").ZodNumber>;
1715
+ toolUses: import("zod").ZodOptional<import("zod").ZodNumber>;
1716
+ subagents: import("zod").ZodOptional<import("zod").ZodObject<{
1717
+ running: import("zod").ZodNumber;
1718
+ total: import("zod").ZodNumber;
1719
+ }, import("zod/v4/core").$strip>>;
1720
+ diff: import("zod").ZodOptional<import("zod").ZodObject<{
1721
+ files: import("zod").ZodNumber;
1722
+ insertions: import("zod").ZodNumber;
1723
+ deletions: import("zod").ZodNumber;
1724
+ }, import("zod/v4/core").$strip>>;
1725
+ landedPresence: import("zod").ZodOptional<import("zod").ZodObject<{
1726
+ landed: import("zod").ZodNumber;
1727
+ present: import("zod").ZodNumber;
1728
+ }, import("zod/v4/core").$strip>>;
1729
+ loop: import("zod").ZodOptional<import("zod").ZodObject<{
1730
+ state: import("zod").ZodEnum<{
1731
+ done: "done";
1732
+ error: "error";
1733
+ exhausted: "exhausted";
1734
+ overspent: "overspent";
1735
+ running: "running";
1736
+ stalled: "stalled";
1737
+ stopped: "stopped";
1738
+ }>;
1739
+ iteration: import("zod").ZodNumber;
1740
+ maxIterations: import("zod").ZodNumber;
1741
+ goal: import("zod").ZodString;
1742
+ }, import("zod/v4/core").$strip>>;
1743
+ workflow: import("zod").ZodOptional<import("zod").ZodObject<{
1744
+ runId: import("zod").ZodString;
1745
+ name: import("zod").ZodString;
1746
+ step: import("zod").ZodString;
1747
+ index: import("zod").ZodNumber;
1748
+ total: import("zod").ZodNumber;
1749
+ }, import("zod/v4/core").$strip>>;
1750
+ watches: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1751
+ id: import("zod").ZodString;
1752
+ note: import("zod").ZodString;
1753
+ intervalSeconds: import("zod").ZodNumber;
1754
+ deadlineAt: import("zod").ZodNumber;
1755
+ }, import("zod/v4/core").$strip>>>;
1756
+ archivedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
1757
+ }, import("zod/v4/core").$strip>>;
1758
+ rev: import("zod").ZodNumber;
1759
+ held: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
1760
+ id: import("zod").ZodString;
1761
+ automationId: import("zod").ZodString;
1762
+ payload: import("zod").ZodOptional<import("zod").ZodString>;
1763
+ origin: import("zod").ZodOptional<import("zod").ZodObject<{
1764
+ automationId: import("zod").ZodString;
1765
+ provider: import("zod").ZodString;
1766
+ channelId: import("zod").ZodOptional<import("zod").ZodString>;
1767
+ author: import("zod").ZodOptional<import("zod").ZodString>;
1768
+ }, import("zod/v4/core").$strip>>;
1769
+ title: import("zod").ZodOptional<import("zod").ZodString>;
1770
+ conversationId: import("zod").ZodOptional<import("zod").ZodString>;
1771
+ sessionId: import("zod").ZodOptional<import("zod").ZodString>;
1772
+ createdAt: import("zod").ZodNumber;
1773
+ autoRunAt: import("zod").ZodOptional<import("zod").ZodNumber>;
1774
+ }, import("zod/v4/core").$strip>>>;
1775
+ }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
1776
+ search: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
1777
+ query: import("zod").ZodString;
1778
+ caseSensitive: import("zod").ZodOptional<import("zod").ZodCodec<import("zod").ZodString, import("zod").ZodBoolean>>;
1779
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1780
+ matches: import("zod").ZodArray<import("zod").ZodObject<{
1781
+ id: import("zod").ZodString;
1782
+ snippet: import("zod").ZodOptional<import("zod").ZodObject<{
1783
+ text: import("zod").ZodString;
1784
+ speaker: import("zod").ZodEnum<{
1785
+ agent: "agent";
1786
+ user: "user";
1787
+ }>;
1788
+ }, import("zod/v4/core").$strip>>;
1789
+ }, import("zod/v4/core").$strip>>;
1790
+ scanned: import("zod").ZodNumber;
1791
+ indexing: import("zod").ZodBoolean;
1792
+ }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
1793
+ get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
1794
+ id: import("zod").ZodString;
1795
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1796
+ id: import("zod").ZodString;
1797
+ sessionId: import("zod").ZodOptional<import("zod").ZodString>;
1798
+ title: import("zod").ZodOptional<import("zod").ZodString>;
1799
+ status: import("zod").ZodEnum<{
1800
+ awaiting: "awaiting";
1801
+ conflict: "conflict";
1802
+ dismissing: "dismissing";
1803
+ error: "error";
1804
+ idle: "idle";
1805
+ interrupted: "interrupted";
1806
+ landed: "landed";
1807
+ ready: "ready";
1808
+ resuming: "resuming";
1809
+ running: "running";
1810
+ stopped: "stopped";
1811
+ stopping: "stopping";
1812
+ }>;
1813
+ failure: import("zod").ZodOptional<import("zod").ZodString>;
1814
+ failureCode: import("zod").ZodOptional<import("zod").ZodString>;
1815
+ limitResetsAt: import("zod").ZodOptional<import("zod").ZodNumber>;
1816
+ limitHeld: import("zod").ZodOptional<import("zod").ZodBoolean>;
1817
+ limitScheduled: import("zod").ZodOptional<import("zod").ZodBoolean>;
1818
+ provider: import("zod").ZodString;
1819
+ harness: import("zod").ZodEnum<{
1820
+ "claude-code": "claude-code";
1821
+ native: "native";
1822
+ }>;
1823
+ runner: import("zod").ZodOptional<import("zod").ZodString>;
1824
+ model: import("zod").ZodOptional<import("zod").ZodString>;
1825
+ effort: import("zod").ZodOptional<import("zod").ZodString>;
1826
+ thinking: import("zod").ZodOptional<import("zod").ZodBoolean>;
1827
+ fast: import("zod").ZodOptional<import("zod").ZodBoolean>;
1828
+ tier: import("zod").ZodOptional<import("zod").ZodEnum<{
1829
+ fast: "fast";
1830
+ standard: "standard";
1831
+ }>>;
1832
+ tierHold: import("zod").ZodOptional<import("zod").ZodBoolean>;
1833
+ account: import("zod").ZodOptional<import("zod").ZodString>;
1834
+ branch: import("zod").ZodOptional<import("zod").ZodString>;
1835
+ autoLand: import("zod").ZodOptional<import("zod").ZodBoolean>;
1836
+ resumeAfterOutage: import("zod").ZodOptional<import("zod").ZodBoolean>;
1837
+ resumeAfterLimit: import("zod").ZodOptional<import("zod").ZodBoolean>;
1838
+ landRequested: import("zod").ZodOptional<import("zod").ZodObject<{
1839
+ email: import("zod").ZodString;
1840
+ name: import("zod").ZodOptional<import("zod").ZodString>;
1841
+ at: import("zod").ZodNumber;
1842
+ }, import("zod/v4/core").$strip>>;
1843
+ origin: import("zod").ZodOptional<import("zod").ZodObject<{
1844
+ automationId: import("zod").ZodString;
1845
+ provider: import("zod").ZodString;
1846
+ channelId: import("zod").ZodOptional<import("zod").ZodString>;
1847
+ author: import("zod").ZodOptional<import("zod").ZodString>;
1848
+ }, import("zod/v4/core").$strip>>;
1849
+ forkedFrom: import("zod").ZodOptional<import("zod").ZodObject<{
1850
+ conversationId: import("zod").ZodString;
1851
+ index: import("zod").ZodNumber;
1852
+ files: import("zod").ZodEnum<{
1853
+ now: "now";
1854
+ then: "then";
1855
+ }>;
1856
+ }, import("zod/v4/core").$strip>>;
1857
+ base: import("zod").ZodOptional<import("zod").ZodString>;
1858
+ costUsd: import("zod").ZodOptional<import("zod").ZodNumber>;
1859
+ inputTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
1860
+ outputTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
1861
+ contextTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
1862
+ contextWindow: import("zod").ZodOptional<import("zod").ZodNumber>;
1863
+ activity: import("zod").ZodOptional<import("zod").ZodObject<{
1864
+ tool: import("zod").ZodOptional<import("zod").ZodString>;
1865
+ target: import("zod").ZodOptional<import("zod").ZodString>;
1866
+ todo: import("zod").ZodOptional<import("zod").ZodString>;
1867
+ }, import("zod/v4/core").$strip>>;
1868
+ landedMessageDraft: import("zod").ZodOptional<import("zod").ZodObject<{
1869
+ startedAt: import("zod").ZodNumber;
1870
+ steps: import("zod").ZodArray<import("zod").ZodObject<{
1871
+ provider: import("zod").ZodString;
1872
+ model: import("zod").ZodString;
1873
+ status: import("zod").ZodEnum<{
1874
+ answered: "answered";
1875
+ asking: "asking";
1876
+ refused: "refused";
1877
+ skipped: "skipped";
1878
+ }>;
1879
+ at: import("zod").ZodOptional<import("zod").ZodNumber>;
1880
+ ms: import("zod").ZodOptional<import("zod").ZodNumber>;
1881
+ reason: import("zod").ZodOptional<import("zod").ZodString>;
1882
+ }, import("zod/v4/core").$strip>>;
1883
+ outcome: import("zod").ZodOptional<import("zod").ZodEnum<{
1884
+ failed: "failed";
1885
+ written: "written";
1886
+ }>>;
1887
+ reason: import("zod").ZodOptional<import("zod").ZodString>;
1888
+ finishedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
1889
+ }, import("zod/v4/core").$strip>>;
1890
+ landedMessage: import("zod").ZodOptional<import("zod").ZodObject<{
1891
+ subject: import("zod").ZodString;
1892
+ note: import("zod").ZodOptional<import("zod").ZodString>;
1893
+ breaking: import("zod").ZodOptional<import("zod").ZodString>;
1894
+ }, import("zod/v4/core").$strip>>;
1895
+ startedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
1896
+ updatedAt: import("zod").ZodNumber;
1897
+ seenAt: import("zod").ZodOptional<import("zod").ZodNumber>;
1898
+ attention: import("zod").ZodObject<{
1899
+ plan: import("zod").ZodBoolean;
1900
+ question: import("zod").ZodBoolean;
1901
+ permission: import("zod").ZodBoolean;
1902
+ service: import("zod").ZodBoolean;
1903
+ capability: import("zod").ZodBoolean;
1904
+ conflict: import("zod").ZodBoolean;
1905
+ }, import("zod/v4/core").$strip>;
1906
+ turns: import("zod").ZodOptional<import("zod").ZodNumber>;
1907
+ toolUses: import("zod").ZodOptional<import("zod").ZodNumber>;
1908
+ subagents: import("zod").ZodOptional<import("zod").ZodObject<{
1909
+ running: import("zod").ZodNumber;
1910
+ total: import("zod").ZodNumber;
1911
+ }, import("zod/v4/core").$strip>>;
1912
+ diff: import("zod").ZodOptional<import("zod").ZodObject<{
1913
+ files: import("zod").ZodNumber;
1914
+ insertions: import("zod").ZodNumber;
1915
+ deletions: import("zod").ZodNumber;
1916
+ }, import("zod/v4/core").$strip>>;
1917
+ landedPresence: import("zod").ZodOptional<import("zod").ZodObject<{
1918
+ landed: import("zod").ZodNumber;
1919
+ present: import("zod").ZodNumber;
1920
+ }, import("zod/v4/core").$strip>>;
1921
+ loop: import("zod").ZodOptional<import("zod").ZodObject<{
1922
+ state: import("zod").ZodEnum<{
1923
+ done: "done";
1924
+ error: "error";
1925
+ exhausted: "exhausted";
1926
+ overspent: "overspent";
1927
+ running: "running";
1928
+ stalled: "stalled";
1929
+ stopped: "stopped";
1930
+ }>;
1931
+ iteration: import("zod").ZodNumber;
1932
+ maxIterations: import("zod").ZodNumber;
1933
+ goal: import("zod").ZodString;
1934
+ }, import("zod/v4/core").$strip>>;
1935
+ workflow: import("zod").ZodOptional<import("zod").ZodObject<{
1936
+ runId: import("zod").ZodString;
1937
+ name: import("zod").ZodString;
1938
+ step: import("zod").ZodString;
1939
+ index: import("zod").ZodNumber;
1940
+ total: import("zod").ZodNumber;
1941
+ }, import("zod/v4/core").$strip>>;
1942
+ watches: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1943
+ id: import("zod").ZodString;
1944
+ note: import("zod").ZodString;
1945
+ intervalSeconds: import("zod").ZodNumber;
1946
+ deadlineAt: import("zod").ZodNumber;
1947
+ }, import("zod/v4/core").$strip>>>;
1948
+ archivedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
1949
+ }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
1950
+ transcript: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
1951
+ id: import("zod").ZodString;
1952
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1953
+ messages: import("zod").ZodArray<import("zod").ZodObject<{
1954
+ role: import("zod").ZodEnum<{
1955
+ assistant: "assistant";
1956
+ notice: "notice";
1957
+ user: "user";
1958
+ }>;
1959
+ text: import("zod").ZodString;
1960
+ sentAt: import("zod").ZodOptional<import("zod").ZodNumber>;
1961
+ attachments: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
1962
+ checkpointId: import("zod").ZodOptional<import("zod").ZodString>;
1963
+ rewindIndex: import("zod").ZodOptional<import("zod").ZodNumber>;
1964
+ thinking: import("zod").ZodOptional<import("zod").ZodString>;
1965
+ tools: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodType<import("./events.js").TranscriptTool, unknown, import("zod/v4/core").$ZodTypeInternals<import("./events.js").TranscriptTool, unknown>>>>;
1966
+ todos: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1967
+ content: import("zod").ZodString;
1968
+ status: import("zod").ZodEnum<{
1969
+ completed: "completed";
1970
+ in_progress: "in_progress";
1971
+ pending: "pending";
1972
+ }>;
1973
+ activeForm: import("zod").ZodOptional<import("zod").ZodString>;
1974
+ }, import("zod/v4/core").$strip>>>;
1975
+ usage: import("zod").ZodOptional<import("zod").ZodObject<{
1976
+ costUsd: import("zod").ZodOptional<import("zod").ZodNumber>;
1977
+ inputTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
1978
+ outputTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
1979
+ durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
1980
+ numTurns: import("zod").ZodOptional<import("zod").ZodNumber>;
1981
+ }, import("zod/v4/core").$strip>>;
1982
+ notes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1983
+ title: import("zod").ZodString;
1984
+ text: import("zod").ZodString;
1985
+ }, import("zod/v4/core").$strip>>>;
1986
+ placed: import("zod").ZodOptional<import("zod").ZodBoolean>;
1987
+ noticeAction: import("zod").ZodOptional<import("zod").ZodEnum<{
1988
+ depsInstall: "depsInstall";
1989
+ landHold: "landHold";
1990
+ outageOptOut: "outageOptOut";
1991
+ tierHold: "tierHold";
1992
+ }>>;
1993
+ noticeWait: import("zod").ZodOptional<import("zod").ZodEnum<{
1994
+ credentialRenewal: "credentialRenewal";
1995
+ }>>;
1996
+ plan: import("zod").ZodOptional<import("zod").ZodObject<{
1997
+ requestId: import("zod").ZodString;
1998
+ text: import("zod").ZodString;
1999
+ document: import("zod").ZodOptional<import("zod").ZodObject<{
2000
+ path: import("zod").ZodString;
2001
+ title: import("zod").ZodString;
2002
+ markdown: import("zod").ZodString;
2003
+ truncated: import("zod").ZodOptional<import("zod").ZodBoolean>;
2004
+ plan: import("zod").ZodOptional<import("zod").ZodBoolean>;
2005
+ }, import("zod/v4/core").$strip>>;
2006
+ status: import("zod").ZodEnum<{
2007
+ approved: "approved";
2008
+ cancelled: "cancelled";
2009
+ pending: "pending";
2010
+ rejected: "rejected";
2011
+ }>;
2012
+ }, import("zod/v4/core").$strip>>;
2013
+ question: import("zod").ZodOptional<import("zod").ZodObject<{
2014
+ requestId: import("zod").ZodString;
2015
+ questions: import("zod").ZodArray<import("zod").ZodObject<{
2016
+ question: import("zod").ZodString;
2017
+ header: import("zod").ZodString;
2018
+ multiSelect: import("zod").ZodBoolean;
2019
+ options: import("zod").ZodArray<import("zod").ZodObject<{
2020
+ label: import("zod").ZodString;
2021
+ description: import("zod").ZodString;
2022
+ preview: import("zod").ZodOptional<import("zod").ZodString>;
2023
+ }, import("zod/v4/core").$strip>>;
2024
+ }, import("zod/v4/core").$strip>>;
2025
+ document: import("zod").ZodOptional<import("zod").ZodObject<{
2026
+ path: import("zod").ZodString;
2027
+ title: import("zod").ZodString;
2028
+ markdown: import("zod").ZodString;
2029
+ truncated: import("zod").ZodOptional<import("zod").ZodBoolean>;
2030
+ plan: import("zod").ZodOptional<import("zod").ZodBoolean>;
2031
+ }, import("zod/v4/core").$strip>>;
2032
+ status: import("zod").ZodEnum<{
2033
+ answered: "answered";
2034
+ cancelled: "cancelled";
2035
+ pending: "pending";
2036
+ }>;
2037
+ answers: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>>>;
2038
+ }, import("zod/v4/core").$strip>>;
2039
+ permission: import("zod").ZodOptional<import("zod").ZodObject<{
2040
+ toolName: import("zod").ZodString;
2041
+ title: import("zod").ZodOptional<import("zod").ZodString>;
2042
+ displayName: import("zod").ZodOptional<import("zod").ZodString>;
2043
+ description: import("zod").ZodOptional<import("zod").ZodString>;
2044
+ reason: import("zod").ZodOptional<import("zod").ZodString>;
2045
+ path: import("zod").ZodOptional<import("zod").ZodString>;
2046
+ alwaysLabel: import("zod").ZodOptional<import("zod").ZodString>;
2047
+ program: import("zod").ZodOptional<import("zod").ZodObject<{
2048
+ text: import("zod").ZodString;
2049
+ language: import("zod").ZodEnum<{
2050
+ bash: "bash";
2051
+ javascript: "javascript";
2052
+ }>;
2053
+ truncated: import("zod").ZodBoolean;
2054
+ spans: import("zod").ZodArray<import("zod").ZodObject<{
2055
+ start: import("zod").ZodNumber;
2056
+ end: import("zod").ZodNumber;
2057
+ }, import("zod/v4/core").$strip>>;
2058
+ }, import("zod/v4/core").$strip>>;
2059
+ explain: import("zod").ZodOptional<import("zod").ZodString>;
2060
+ requestId: import("zod").ZodString;
2061
+ status: import("zod").ZodEnum<{
2062
+ allowed: "allowed";
2063
+ always: "always";
2064
+ cancelled: "cancelled";
2065
+ denied: "denied";
2066
+ pending: "pending";
2067
+ }>;
2068
+ }, import("zod/v4/core").$strip>>;
2069
+ browserHelp: import("zod").ZodOptional<import("zod").ZodObject<{
2070
+ requestId: import("zod").ZodString;
2071
+ session: import("zod").ZodString;
2072
+ account: import("zod").ZodString;
2073
+ message: import("zod").ZodString;
2074
+ status: import("zod").ZodEnum<{
2075
+ cancelled: "cancelled";
2076
+ declined: "declined";
2077
+ helped: "helped";
2078
+ pending: "pending";
2079
+ }>;
2080
+ }, import("zod/v4/core").$strip>>;
2081
+ terminalHelp: import("zod").ZodOptional<import("zod").ZodObject<{
2082
+ requestId: import("zod").ZodString;
2083
+ session: import("zod").ZodString;
2084
+ message: import("zod").ZodString;
2085
+ status: import("zod").ZodEnum<{
2086
+ cancelled: "cancelled";
2087
+ declined: "declined";
2088
+ helped: "helped";
2089
+ pending: "pending";
2090
+ }>;
1434
2091
  }, import("zod/v4/core").$strip>>;
1435
- landedMessageDraft: import("zod").ZodOptional<import("zod").ZodObject<{
1436
- startedAt: import("zod").ZodNumber;
1437
- steps: import("zod").ZodArray<import("zod").ZodObject<{
1438
- provider: import("zod").ZodString;
1439
- model: import("zod").ZodString;
1440
- status: import("zod").ZodEnum<{
1441
- answered: "answered";
1442
- asking: "asking";
2092
+ serviceOffer: import("zod").ZodOptional<import("zod").ZodObject<{
2093
+ requestId: import("zod").ZodString;
2094
+ offer: import("zod").ZodObject<{
2095
+ slug: import("zod").ZodString;
2096
+ name: import("zod").ZodString;
2097
+ publisher: import("zod").ZodString;
2098
+ description: import("zod").ZodString;
2099
+ creditsPerRun: import("zod").ZodNumber;
2100
+ probation: import("zod").ZodOptional<import("zod").ZodBoolean>;
2101
+ credits: import("zod").ZodOptional<import("zod").ZodObject<{
2102
+ allowance: import("zod").ZodNumber;
2103
+ remaining: import("zod").ZodNumber;
2104
+ resetsAt: import("zod").ZodString;
2105
+ }, import("zod/v4/core").$strip>>;
2106
+ request: import("zod").ZodString;
2107
+ why: import("zod").ZodOptional<import("zod").ZodString>;
2108
+ }, import("zod/v4/core").$strip>;
2109
+ status: import("zod").ZodEnum<{
2110
+ approved: "approved";
2111
+ cancelled: "cancelled";
2112
+ pending: "pending";
2113
+ skipped: "skipped";
2114
+ }>;
2115
+ events: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
2116
+ event: import("zod").ZodLiteral<"status">;
2117
+ text: import("zod").ZodString;
2118
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
2119
+ event: import("zod").ZodLiteral<"result">;
2120
+ data: import("zod").ZodUnknown;
2121
+ }, import("zod/v4/core").$strip>], "event">>>;
2122
+ receipt: import("zod").ZodOptional<import("zod").ZodObject<{
2123
+ outcome: import("zod").ZodEnum<{
2124
+ ok: "ok";
2125
+ refunded: "refunded";
1443
2126
  refused: "refused";
1444
- skipped: "skipped";
1445
2127
  }>;
1446
- at: import("zod").ZodOptional<import("zod").ZodNumber>;
1447
- ms: import("zod").ZodOptional<import("zod").ZodNumber>;
1448
- reason: import("zod").ZodOptional<import("zod").ZodString>;
2128
+ credits: import("zod").ZodNumber;
2129
+ remaining: import("zod").ZodOptional<import("zod").ZodNumber>;
1449
2130
  }, import("zod/v4/core").$strip>>;
1450
- outcome: import("zod").ZodOptional<import("zod").ZodEnum<{
1451
- failed: "failed";
1452
- written: "written";
1453
- }>>;
1454
- reason: import("zod").ZodOptional<import("zod").ZodString>;
1455
- finishedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
1456
- }, import("zod/v4/core").$strip>>;
1457
- landedMessage: import("zod").ZodOptional<import("zod").ZodObject<{
1458
- subject: import("zod").ZodString;
1459
- note: import("zod").ZodOptional<import("zod").ZodString>;
1460
- breaking: import("zod").ZodOptional<import("zod").ZodString>;
1461
- }, import("zod/v4/core").$strip>>;
1462
- startedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
1463
- updatedAt: import("zod").ZodNumber;
1464
- seenAt: import("zod").ZodOptional<import("zod").ZodNumber>;
1465
- attention: import("zod").ZodObject<{
1466
- plan: import("zod").ZodBoolean;
1467
- question: import("zod").ZodBoolean;
1468
- permission: import("zod").ZodBoolean;
1469
- service: import("zod").ZodBoolean;
1470
- capability: import("zod").ZodBoolean;
1471
- conflict: import("zod").ZodBoolean;
1472
- }, import("zod/v4/core").$strip>;
1473
- turns: import("zod").ZodOptional<import("zod").ZodNumber>;
1474
- toolUses: import("zod").ZodOptional<import("zod").ZodNumber>;
1475
- subagents: import("zod").ZodOptional<import("zod").ZodObject<{
1476
- running: import("zod").ZodNumber;
1477
- total: import("zod").ZodNumber;
1478
- }, import("zod/v4/core").$strip>>;
1479
- diff: import("zod").ZodOptional<import("zod").ZodObject<{
1480
- files: import("zod").ZodNumber;
1481
- insertions: import("zod").ZodNumber;
1482
- deletions: import("zod").ZodNumber;
1483
- }, import("zod/v4/core").$strip>>;
1484
- landedPresence: import("zod").ZodOptional<import("zod").ZodObject<{
1485
- landed: import("zod").ZodNumber;
1486
- present: import("zod").ZodNumber;
1487
2131
  }, import("zod/v4/core").$strip>>;
1488
- loop: import("zod").ZodOptional<import("zod").ZodObject<{
1489
- state: import("zod").ZodEnum<{
1490
- done: "done";
1491
- error: "error";
1492
- exhausted: "exhausted";
1493
- overspent: "overspent";
1494
- running: "running";
1495
- stalled: "stalled";
1496
- stopped: "stopped";
2132
+ capabilityOffer: import("zod").ZodOptional<import("zod").ZodObject<{
2133
+ requestId: import("zod").ZodString;
2134
+ offer: import("zod").ZodObject<{
2135
+ card: import("zod").ZodString;
2136
+ name: import("zod").ZodString;
2137
+ why: import("zod").ZodOptional<import("zod").ZodString>;
2138
+ }, import("zod/v4/core").$strip>;
2139
+ status: import("zod").ZodEnum<{
2140
+ cancelled: "cancelled";
2141
+ connecting: "connecting";
2142
+ pending: "pending";
2143
+ skipped: "skipped";
1497
2144
  }>;
1498
- iteration: import("zod").ZodNumber;
1499
- maxIterations: import("zod").ZodNumber;
1500
- goal: import("zod").ZodString;
2145
+ outcome: import("zod").ZodOptional<import("zod").ZodObject<{
2146
+ outcome: import("zod").ZodEnum<{
2147
+ connected: "connected";
2148
+ unfinished: "unfinished";
2149
+ }>;
2150
+ id: import("zod").ZodOptional<import("zod").ZodString>;
2151
+ }, import("zod/v4/core").$strip>>;
1501
2152
  }, import("zod/v4/core").$strip>>;
1502
- workflow: import("zod").ZodOptional<import("zod").ZodObject<{
1503
- runId: import("zod").ZodString;
1504
- name: import("zod").ZodString;
1505
- step: import("zod").ZodString;
1506
- index: import("zod").ZodNumber;
1507
- total: import("zod").ZodNumber;
2153
+ paymentOffer: import("zod").ZodOptional<import("zod").ZodObject<{
2154
+ requestId: import("zod").ZodString;
2155
+ offer: import("zod").ZodObject<{
2156
+ url: import("zod").ZodString;
2157
+ description: import("zod").ZodOptional<import("zod").ZodString>;
2158
+ payTo: import("zod").ZodString;
2159
+ network: import("zod").ZodString;
2160
+ asset: import("zod").ZodString;
2161
+ assetName: import("zod").ZodString;
2162
+ amountUsd: import("zod").ZodString;
2163
+ spentTodayUsd: import("zod").ZodString;
2164
+ dailyCapUsd: import("zod").ZodString;
2165
+ why: import("zod").ZodOptional<import("zod").ZodString>;
2166
+ }, import("zod/v4/core").$strip>;
2167
+ status: import("zod").ZodEnum<{
2168
+ approved: "approved";
2169
+ cancelled: "cancelled";
2170
+ pending: "pending";
2171
+ skipped: "skipped";
2172
+ }>;
2173
+ receipt: import("zod").ZodOptional<import("zod").ZodObject<{
2174
+ outcome: import("zod").ZodEnum<{
2175
+ failed: "failed";
2176
+ paid: "paid";
2177
+ }>;
2178
+ amountUsd: import("zod").ZodString;
2179
+ transaction: import("zod").ZodOptional<import("zod").ZodString>;
2180
+ network: import("zod").ZodOptional<import("zod").ZodString>;
2181
+ }, import("zod/v4/core").$strip>>;
1508
2182
  }, import("zod/v4/core").$strip>>;
1509
- watches: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1510
- id: import("zod").ZodString;
1511
- note: import("zod").ZodString;
1512
- intervalSeconds: import("zod").ZodNumber;
1513
- deadlineAt: import("zod").ZodNumber;
1514
- }, import("zod/v4/core").$strip>>>;
1515
- archivedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
1516
2183
  }, import("zod/v4/core").$strip>>;
1517
- rev: import("zod").ZodNumber;
1518
- held: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
1519
- id: import("zod").ZodString;
1520
- automationId: import("zod").ZodString;
1521
- payload: import("zod").ZodOptional<import("zod").ZodString>;
1522
- origin: import("zod").ZodOptional<import("zod").ZodObject<{
1523
- automationId: import("zod").ZodString;
1524
- provider: import("zod").ZodString;
1525
- channelId: import("zod").ZodOptional<import("zod").ZodString>;
1526
- author: import("zod").ZodOptional<import("zod").ZodString>;
2184
+ sessionId: import("zod").ZodOptional<import("zod").ZodString>;
2185
+ provider: import("zod").ZodOptional<import("zod").ZodString>;
2186
+ harness: import("zod").ZodOptional<import("zod").ZodEnum<{
2187
+ "claude-code": "claude-code";
2188
+ native: "native";
2189
+ }>>;
2190
+ account: import("zod").ZodOptional<import("zod").ZodString>;
2191
+ ending: import("zod").ZodOptional<import("zod").ZodObject<{
2192
+ reason: import("zod").ZodEnum<{
2193
+ limit: "limit";
2194
+ outage: "outage";
2195
+ stopped: "stopped";
2196
+ }>;
2197
+ resetsAt: import("zod").ZodOptional<import("zod").ZodNumber>;
2198
+ held: import("zod").ZodOptional<import("zod").ZodObject<{
2199
+ ran: import("zod").ZodBoolean;
1527
2200
  }, import("zod/v4/core").$strip>>;
1528
- title: import("zod").ZodOptional<import("zod").ZodString>;
1529
- conversationId: import("zod").ZodOptional<import("zod").ZodString>;
1530
- sessionId: import("zod").ZodOptional<import("zod").ZodString>;
1531
- createdAt: import("zod").ZodNumber;
1532
- autoRunAt: import("zod").ZodOptional<import("zod").ZodNumber>;
1533
- }, import("zod/v4/core").$strip>>>;
2201
+ scheduled: import("zod").ZodOptional<import("zod").ZodBoolean>;
2202
+ }, import("zod/v4/core").$strip>>;
1534
2203
  }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
1535
- search: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
1536
- query: import("zod").ZodString;
1537
- caseSensitive: import("zod").ZodOptional<import("zod").ZodCodec<import("zod").ZodString, import("zod").ZodBoolean>>;
2204
+ place: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
2205
+ id: import("zod").ZodString;
2206
+ text: import("zod").ZodString;
1538
2207
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1539
- matches: import("zod").ZodArray<import("zod").ZodObject<{
1540
- id: import("zod").ZodString;
1541
- snippet: import("zod").ZodOptional<import("zod").ZodObject<{
1542
- text: import("zod").ZodString;
1543
- speaker: import("zod").ZodEnum<{
1544
- agent: "agent";
1545
- user: "user";
1546
- }>;
1547
- }, import("zod/v4/core").$strip>>;
1548
- }, import("zod/v4/core").$strip>>;
1549
- scanned: import("zod").ZodNumber;
1550
- indexing: import("zod").ZodBoolean;
2208
+ ok: import("zod").ZodLiteral<true>;
1551
2209
  }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
1552
- get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
2210
+ rename: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
1553
2211
  id: import("zod").ZodString;
2212
+ title: import("zod").ZodString;
1554
2213
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1555
2214
  id: import("zod").ZodString;
1556
2215
  sessionId: import("zod").ZodOptional<import("zod").ZodString>;
@@ -1570,6 +2229,10 @@ export declare const sandboxContract: {
1570
2229
  stopping: "stopping";
1571
2230
  }>;
1572
2231
  failure: import("zod").ZodOptional<import("zod").ZodString>;
2232
+ failureCode: import("zod").ZodOptional<import("zod").ZodString>;
2233
+ limitResetsAt: import("zod").ZodOptional<import("zod").ZodNumber>;
2234
+ limitHeld: import("zod").ZodOptional<import("zod").ZodBoolean>;
2235
+ limitScheduled: import("zod").ZodOptional<import("zod").ZodBoolean>;
1573
2236
  provider: import("zod").ZodString;
1574
2237
  harness: import("zod").ZodEnum<{
1575
2238
  "claude-code": "claude-code";
@@ -1589,6 +2252,7 @@ export declare const sandboxContract: {
1589
2252
  branch: import("zod").ZodOptional<import("zod").ZodString>;
1590
2253
  autoLand: import("zod").ZodOptional<import("zod").ZodBoolean>;
1591
2254
  resumeAfterOutage: import("zod").ZodOptional<import("zod").ZodBoolean>;
2255
+ resumeAfterLimit: import("zod").ZodOptional<import("zod").ZodBoolean>;
1592
2256
  landRequested: import("zod").ZodOptional<import("zod").ZodObject<{
1593
2257
  email: import("zod").ZodString;
1594
2258
  name: import("zod").ZodOptional<import("zod").ZodString>;
@@ -1701,47 +2365,9 @@ export declare const sandboxContract: {
1701
2365
  }, import("zod/v4/core").$strip>>>;
1702
2366
  archivedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
1703
2367
  }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
1704
- transcript: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
1705
- id: import("zod").ZodString;
1706
- }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1707
- messages: import("zod").ZodArray<import("zod").ZodObject<{
1708
- role: import("zod").ZodEnum<{
1709
- assistant: "assistant";
1710
- notice: "notice";
1711
- user: "user";
1712
- }>;
1713
- text: import("zod").ZodString;
1714
- sentAt: import("zod").ZodOptional<import("zod").ZodNumber>;
1715
- attachments: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
1716
- checkpointId: import("zod").ZodOptional<import("zod").ZodString>;
1717
- thinking: import("zod").ZodOptional<import("zod").ZodString>;
1718
- tools: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodType<import("./events.js").RestoredToolCall, unknown, import("zod/v4/core").$ZodTypeInternals<import("./events.js").RestoredToolCall, unknown>>>>;
1719
- notes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1720
- title: import("zod").ZodString;
1721
- text: import("zod").ZodString;
1722
- }, import("zod/v4/core").$strip>>>;
1723
- placed: import("zod").ZodOptional<import("zod").ZodBoolean>;
1724
- noticeAction: import("zod").ZodOptional<import("zod").ZodEnum<{
1725
- tierHold: "tierHold";
1726
- }>>;
1727
- }, import("zod/v4/core").$strip>>;
1728
- sessionId: import("zod").ZodOptional<import("zod").ZodString>;
1729
- provider: import("zod").ZodOptional<import("zod").ZodString>;
1730
- harness: import("zod").ZodOptional<import("zod").ZodEnum<{
1731
- "claude-code": "claude-code";
1732
- native: "native";
1733
- }>>;
1734
- account: import("zod").ZodOptional<import("zod").ZodString>;
1735
- }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
1736
- place: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
1737
- id: import("zod").ZodString;
1738
- text: import("zod").ZodString;
1739
- }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1740
- ok: import("zod").ZodLiteral<true>;
1741
- }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
1742
- rename: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
2368
+ autoLand: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
1743
2369
  id: import("zod").ZodString;
1744
- title: import("zod").ZodString;
2370
+ autoLand: import("zod").ZodNullable<import("zod").ZodBoolean>;
1745
2371
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1746
2372
  id: import("zod").ZodString;
1747
2373
  sessionId: import("zod").ZodOptional<import("zod").ZodString>;
@@ -1761,6 +2387,10 @@ export declare const sandboxContract: {
1761
2387
  stopping: "stopping";
1762
2388
  }>;
1763
2389
  failure: import("zod").ZodOptional<import("zod").ZodString>;
2390
+ failureCode: import("zod").ZodOptional<import("zod").ZodString>;
2391
+ limitResetsAt: import("zod").ZodOptional<import("zod").ZodNumber>;
2392
+ limitHeld: import("zod").ZodOptional<import("zod").ZodBoolean>;
2393
+ limitScheduled: import("zod").ZodOptional<import("zod").ZodBoolean>;
1764
2394
  provider: import("zod").ZodString;
1765
2395
  harness: import("zod").ZodEnum<{
1766
2396
  "claude-code": "claude-code";
@@ -1780,6 +2410,7 @@ export declare const sandboxContract: {
1780
2410
  branch: import("zod").ZodOptional<import("zod").ZodString>;
1781
2411
  autoLand: import("zod").ZodOptional<import("zod").ZodBoolean>;
1782
2412
  resumeAfterOutage: import("zod").ZodOptional<import("zod").ZodBoolean>;
2413
+ resumeAfterLimit: import("zod").ZodOptional<import("zod").ZodBoolean>;
1783
2414
  landRequested: import("zod").ZodOptional<import("zod").ZodObject<{
1784
2415
  email: import("zod").ZodString;
1785
2416
  name: import("zod").ZodOptional<import("zod").ZodString>;
@@ -1892,9 +2523,9 @@ export declare const sandboxContract: {
1892
2523
  }, import("zod/v4/core").$strip>>>;
1893
2524
  archivedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
1894
2525
  }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
1895
- autoLand: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
2526
+ resumeAfterOutage: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
1896
2527
  id: import("zod").ZodString;
1897
- autoLand: import("zod").ZodNullable<import("zod").ZodBoolean>;
2528
+ resumeAfterOutage: import("zod").ZodNullable<import("zod").ZodBoolean>;
1898
2529
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1899
2530
  id: import("zod").ZodString;
1900
2531
  sessionId: import("zod").ZodOptional<import("zod").ZodString>;
@@ -1914,6 +2545,10 @@ export declare const sandboxContract: {
1914
2545
  stopping: "stopping";
1915
2546
  }>;
1916
2547
  failure: import("zod").ZodOptional<import("zod").ZodString>;
2548
+ failureCode: import("zod").ZodOptional<import("zod").ZodString>;
2549
+ limitResetsAt: import("zod").ZodOptional<import("zod").ZodNumber>;
2550
+ limitHeld: import("zod").ZodOptional<import("zod").ZodBoolean>;
2551
+ limitScheduled: import("zod").ZodOptional<import("zod").ZodBoolean>;
1917
2552
  provider: import("zod").ZodString;
1918
2553
  harness: import("zod").ZodEnum<{
1919
2554
  "claude-code": "claude-code";
@@ -1933,6 +2568,7 @@ export declare const sandboxContract: {
1933
2568
  branch: import("zod").ZodOptional<import("zod").ZodString>;
1934
2569
  autoLand: import("zod").ZodOptional<import("zod").ZodBoolean>;
1935
2570
  resumeAfterOutage: import("zod").ZodOptional<import("zod").ZodBoolean>;
2571
+ resumeAfterLimit: import("zod").ZodOptional<import("zod").ZodBoolean>;
1936
2572
  landRequested: import("zod").ZodOptional<import("zod").ZodObject<{
1937
2573
  email: import("zod").ZodString;
1938
2574
  name: import("zod").ZodOptional<import("zod").ZodString>;
@@ -2045,9 +2681,9 @@ export declare const sandboxContract: {
2045
2681
  }, import("zod/v4/core").$strip>>>;
2046
2682
  archivedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
2047
2683
  }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
2048
- resumeAfterOutage: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
2684
+ resumeAfterLimit: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
2049
2685
  id: import("zod").ZodString;
2050
- resumeAfterOutage: import("zod").ZodNullable<import("zod").ZodBoolean>;
2686
+ resumeAfterLimit: import("zod").ZodNullable<import("zod").ZodBoolean>;
2051
2687
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
2052
2688
  id: import("zod").ZodString;
2053
2689
  sessionId: import("zod").ZodOptional<import("zod").ZodString>;
@@ -2067,6 +2703,10 @@ export declare const sandboxContract: {
2067
2703
  stopping: "stopping";
2068
2704
  }>;
2069
2705
  failure: import("zod").ZodOptional<import("zod").ZodString>;
2706
+ failureCode: import("zod").ZodOptional<import("zod").ZodString>;
2707
+ limitResetsAt: import("zod").ZodOptional<import("zod").ZodNumber>;
2708
+ limitHeld: import("zod").ZodOptional<import("zod").ZodBoolean>;
2709
+ limitScheduled: import("zod").ZodOptional<import("zod").ZodBoolean>;
2070
2710
  provider: import("zod").ZodString;
2071
2711
  harness: import("zod").ZodEnum<{
2072
2712
  "claude-code": "claude-code";
@@ -2086,6 +2726,7 @@ export declare const sandboxContract: {
2086
2726
  branch: import("zod").ZodOptional<import("zod").ZodString>;
2087
2727
  autoLand: import("zod").ZodOptional<import("zod").ZodBoolean>;
2088
2728
  resumeAfterOutage: import("zod").ZodOptional<import("zod").ZodBoolean>;
2729
+ resumeAfterLimit: import("zod").ZodOptional<import("zod").ZodBoolean>;
2089
2730
  landRequested: import("zod").ZodOptional<import("zod").ZodObject<{
2090
2731
  email: import("zod").ZodString;
2091
2732
  name: import("zod").ZodOptional<import("zod").ZodString>;
@@ -2219,6 +2860,10 @@ export declare const sandboxContract: {
2219
2860
  stopping: "stopping";
2220
2861
  }>;
2221
2862
  failure: import("zod").ZodOptional<import("zod").ZodString>;
2863
+ failureCode: import("zod").ZodOptional<import("zod").ZodString>;
2864
+ limitResetsAt: import("zod").ZodOptional<import("zod").ZodNumber>;
2865
+ limitHeld: import("zod").ZodOptional<import("zod").ZodBoolean>;
2866
+ limitScheduled: import("zod").ZodOptional<import("zod").ZodBoolean>;
2222
2867
  provider: import("zod").ZodString;
2223
2868
  harness: import("zod").ZodEnum<{
2224
2869
  "claude-code": "claude-code";
@@ -2238,6 +2883,7 @@ export declare const sandboxContract: {
2238
2883
  branch: import("zod").ZodOptional<import("zod").ZodString>;
2239
2884
  autoLand: import("zod").ZodOptional<import("zod").ZodBoolean>;
2240
2885
  resumeAfterOutage: import("zod").ZodOptional<import("zod").ZodBoolean>;
2886
+ resumeAfterLimit: import("zod").ZodOptional<import("zod").ZodBoolean>;
2241
2887
  landRequested: import("zod").ZodOptional<import("zod").ZodObject<{
2242
2888
  email: import("zod").ZodString;
2243
2889
  name: import("zod").ZodOptional<import("zod").ZodString>;
@@ -2371,6 +3017,10 @@ export declare const sandboxContract: {
2371
3017
  stopping: "stopping";
2372
3018
  }>;
2373
3019
  failure: import("zod").ZodOptional<import("zod").ZodString>;
3020
+ failureCode: import("zod").ZodOptional<import("zod").ZodString>;
3021
+ limitResetsAt: import("zod").ZodOptional<import("zod").ZodNumber>;
3022
+ limitHeld: import("zod").ZodOptional<import("zod").ZodBoolean>;
3023
+ limitScheduled: import("zod").ZodOptional<import("zod").ZodBoolean>;
2374
3024
  provider: import("zod").ZodString;
2375
3025
  harness: import("zod").ZodEnum<{
2376
3026
  "claude-code": "claude-code";
@@ -2390,6 +3040,7 @@ export declare const sandboxContract: {
2390
3040
  branch: import("zod").ZodOptional<import("zod").ZodString>;
2391
3041
  autoLand: import("zod").ZodOptional<import("zod").ZodBoolean>;
2392
3042
  resumeAfterOutage: import("zod").ZodOptional<import("zod").ZodBoolean>;
3043
+ resumeAfterLimit: import("zod").ZodOptional<import("zod").ZodBoolean>;
2393
3044
  landRequested: import("zod").ZodOptional<import("zod").ZodObject<{
2394
3045
  email: import("zod").ZodString;
2395
3046
  name: import("zod").ZodOptional<import("zod").ZodString>;
@@ -2522,6 +3173,10 @@ export declare const sandboxContract: {
2522
3173
  stopping: "stopping";
2523
3174
  }>;
2524
3175
  failure: import("zod").ZodOptional<import("zod").ZodString>;
3176
+ failureCode: import("zod").ZodOptional<import("zod").ZodString>;
3177
+ limitResetsAt: import("zod").ZodOptional<import("zod").ZodNumber>;
3178
+ limitHeld: import("zod").ZodOptional<import("zod").ZodBoolean>;
3179
+ limitScheduled: import("zod").ZodOptional<import("zod").ZodBoolean>;
2525
3180
  provider: import("zod").ZodString;
2526
3181
  harness: import("zod").ZodEnum<{
2527
3182
  "claude-code": "claude-code";
@@ -2541,6 +3196,7 @@ export declare const sandboxContract: {
2541
3196
  branch: import("zod").ZodOptional<import("zod").ZodString>;
2542
3197
  autoLand: import("zod").ZodOptional<import("zod").ZodBoolean>;
2543
3198
  resumeAfterOutage: import("zod").ZodOptional<import("zod").ZodBoolean>;
3199
+ resumeAfterLimit: import("zod").ZodOptional<import("zod").ZodBoolean>;
2544
3200
  landRequested: import("zod").ZodOptional<import("zod").ZodObject<{
2545
3201
  email: import("zod").ZodString;
2546
3202
  name: import("zod").ZodOptional<import("zod").ZodString>;
@@ -2690,6 +3346,10 @@ export declare const sandboxContract: {
2690
3346
  from: import("zod").ZodOptional<import("zod").ZodString>;
2691
3347
  additions: import("zod").ZodOptional<import("zod").ZodNumber>;
2692
3348
  deletions: import("zod").ZodOptional<import("zod").ZodNumber>;
3349
+ code: import("zod").ZodOptional<import("zod").ZodObject<{
3350
+ additions: import("zod").ZodNumber;
3351
+ deletions: import("zod").ZodNumber;
3352
+ }, import("zod/v4/core").$strip>>;
2693
3353
  landed: import("zod").ZodBoolean;
2694
3354
  }, import("zod/v4/core").$strip>>;
2695
3355
  modules: import("zod").ZodArray<import("zod").ZodObject<{
@@ -2697,6 +3357,7 @@ export declare const sandboxContract: {
2697
3357
  name: import("zod").ZodString;
2698
3358
  }, import("zod/v4/core").$strip>>;
2699
3359
  }, import("zod/v4/core").$strip>>;
3360
+ absorbed: import("zod").ZodNumber;
2700
3361
  conflicts: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
2701
3362
  repo: import("zod").ZodString;
2702
3363
  paths: import("zod").ZodArray<import("zod").ZodObject<{
@@ -2711,6 +3372,43 @@ export declare const sandboxContract: {
2711
3372
  mainBranch: import("zod").ZodOptional<import("zod").ZodString>;
2712
3373
  }, import("zod/v4/core").$strip>>>;
2713
3374
  }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
3375
+ history: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3376
+ id: import("zod").ZodString;
3377
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
3378
+ repos: import("zod").ZodArray<import("zod").ZodObject<{
3379
+ repo: import("zod").ZodString;
3380
+ commits: import("zod").ZodArray<import("zod").ZodObject<{
3381
+ sha: import("zod").ZodString;
3382
+ short: import("zod").ZodString;
3383
+ subject: import("zod").ZodString;
3384
+ author: import("zod").ZodString;
3385
+ at: import("zod").ZodNumber;
3386
+ changes: import("zod").ZodArray<import("zod").ZodObject<{
3387
+ path: import("zod").ZodString;
3388
+ status: import("zod").ZodEnum<{
3389
+ added: "added";
3390
+ conflicted: "conflicted";
3391
+ deleted: "deleted";
3392
+ modified: "modified";
3393
+ renamed: "renamed";
3394
+ "type-changed": "type-changed";
3395
+ }>;
3396
+ from: import("zod").ZodOptional<import("zod").ZodString>;
3397
+ additions: import("zod").ZodOptional<import("zod").ZodNumber>;
3398
+ deletions: import("zod").ZodOptional<import("zod").ZodNumber>;
3399
+ code: import("zod").ZodOptional<import("zod").ZodObject<{
3400
+ additions: import("zod").ZodNumber;
3401
+ deletions: import("zod").ZodNumber;
3402
+ }, import("zod/v4/core").$strip>>;
3403
+ }, import("zod/v4/core").$strip>>;
3404
+ }, import("zod/v4/core").$strip>>;
3405
+ modules: import("zod").ZodArray<import("zod").ZodObject<{
3406
+ dir: import("zod").ZodString;
3407
+ name: import("zod").ZodString;
3408
+ }, import("zod/v4/core").$strip>>;
3409
+ }, import("zod/v4/core").$strip>>;
3410
+ unaccounted: import("zod").ZodNumber;
3411
+ }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
2714
3412
  fileDiff: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
2715
3413
  id: import("zod").ZodString;
2716
3414
  repo: import("zod").ZodString;
@@ -2780,6 +3478,10 @@ export declare const sandboxContract: {
2780
3478
  stopping: "stopping";
2781
3479
  }>;
2782
3480
  failure: import("zod").ZodOptional<import("zod").ZodString>;
3481
+ failureCode: import("zod").ZodOptional<import("zod").ZodString>;
3482
+ limitResetsAt: import("zod").ZodOptional<import("zod").ZodNumber>;
3483
+ limitHeld: import("zod").ZodOptional<import("zod").ZodBoolean>;
3484
+ limitScheduled: import("zod").ZodOptional<import("zod").ZodBoolean>;
2783
3485
  provider: import("zod").ZodString;
2784
3486
  harness: import("zod").ZodEnum<{
2785
3487
  "claude-code": "claude-code";
@@ -2799,6 +3501,7 @@ export declare const sandboxContract: {
2799
3501
  branch: import("zod").ZodOptional<import("zod").ZodString>;
2800
3502
  autoLand: import("zod").ZodOptional<import("zod").ZodBoolean>;
2801
3503
  resumeAfterOutage: import("zod").ZodOptional<import("zod").ZodBoolean>;
3504
+ resumeAfterLimit: import("zod").ZodOptional<import("zod").ZodBoolean>;
2802
3505
  landRequested: import("zod").ZodOptional<import("zod").ZodObject<{
2803
3506
  email: import("zod").ZodString;
2804
3507
  name: import("zod").ZodOptional<import("zod").ZodString>;
@@ -2938,6 +3641,10 @@ export declare const sandboxContract: {
2938
3641
  stopping: "stopping";
2939
3642
  }>;
2940
3643
  failure: import("zod").ZodOptional<import("zod").ZodString>;
3644
+ failureCode: import("zod").ZodOptional<import("zod").ZodString>;
3645
+ limitResetsAt: import("zod").ZodOptional<import("zod").ZodNumber>;
3646
+ limitHeld: import("zod").ZodOptional<import("zod").ZodBoolean>;
3647
+ limitScheduled: import("zod").ZodOptional<import("zod").ZodBoolean>;
2941
3648
  provider: import("zod").ZodString;
2942
3649
  harness: import("zod").ZodEnum<{
2943
3650
  "claude-code": "claude-code";
@@ -2957,6 +3664,7 @@ export declare const sandboxContract: {
2957
3664
  branch: import("zod").ZodOptional<import("zod").ZodString>;
2958
3665
  autoLand: import("zod").ZodOptional<import("zod").ZodBoolean>;
2959
3666
  resumeAfterOutage: import("zod").ZodOptional<import("zod").ZodBoolean>;
3667
+ resumeAfterLimit: import("zod").ZodOptional<import("zod").ZodBoolean>;
2960
3668
  landRequested: import("zod").ZodOptional<import("zod").ZodObject<{
2961
3669
  email: import("zod").ZodString;
2962
3670
  name: import("zod").ZodOptional<import("zod").ZodString>;
@@ -3097,6 +3805,10 @@ export declare const sandboxContract: {
3097
3805
  stopping: "stopping";
3098
3806
  }>;
3099
3807
  failure: import("zod").ZodOptional<import("zod").ZodString>;
3808
+ failureCode: import("zod").ZodOptional<import("zod").ZodString>;
3809
+ limitResetsAt: import("zod").ZodOptional<import("zod").ZodNumber>;
3810
+ limitHeld: import("zod").ZodOptional<import("zod").ZodBoolean>;
3811
+ limitScheduled: import("zod").ZodOptional<import("zod").ZodBoolean>;
3100
3812
  provider: import("zod").ZodString;
3101
3813
  harness: import("zod").ZodEnum<{
3102
3814
  "claude-code": "claude-code";
@@ -3116,6 +3828,7 @@ export declare const sandboxContract: {
3116
3828
  branch: import("zod").ZodOptional<import("zod").ZodString>;
3117
3829
  autoLand: import("zod").ZodOptional<import("zod").ZodBoolean>;
3118
3830
  resumeAfterOutage: import("zod").ZodOptional<import("zod").ZodBoolean>;
3831
+ resumeAfterLimit: import("zod").ZodOptional<import("zod").ZodBoolean>;
3119
3832
  landRequested: import("zod").ZodOptional<import("zod").ZodObject<{
3120
3833
  email: import("zod").ZodString;
3121
3834
  name: import("zod").ZodOptional<import("zod").ZodString>;
@@ -3230,8 +3943,106 @@ export declare const sandboxContract: {
3230
3943
  }, import("zod/v4/core").$strip>>;
3231
3944
  rev: import("zod").ZodNumber;
3232
3945
  }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
3233
- purge: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
3234
- removed: import("zod").ZodArray<import("zod").ZodString>;
3946
+ purge: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
3947
+ removed: import("zod").ZodArray<import("zod").ZodString>;
3948
+ }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
3949
+ };
3950
+ approvals: {
3951
+ list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
3952
+ approvals: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
3953
+ actsAs: import("zod").ZodOptional<import("zod").ZodString>;
3954
+ scheduledAt: import("zod").ZodOptional<import("zod").ZodNumber>;
3955
+ status: import("zod").ZodDefault<import("zod").ZodEnum<{
3956
+ approved: "approved";
3957
+ done: "done";
3958
+ failed: "failed";
3959
+ proposed: "proposed";
3960
+ running: "running";
3961
+ }>>;
3962
+ createdAt: import("zod").ZodOptional<import("zod").ZodNumber>;
3963
+ startedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
3964
+ finishedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
3965
+ result: import("zod").ZodOptional<import("zod").ZodString>;
3966
+ error: import("zod").ZodOptional<import("zod").ZodString>;
3967
+ kind: import("zod").ZodLiteral<"post">;
3968
+ platform: import("zod").ZodString;
3969
+ content: import("zod").ZodString;
3970
+ title: import("zod").ZodOptional<import("zod").ZodString>;
3971
+ target: import("zod").ZodOptional<import("zod").ZodString>;
3972
+ media: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
3973
+ id: import("zod").ZodString;
3974
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
3975
+ actsAs: import("zod").ZodOptional<import("zod").ZodString>;
3976
+ scheduledAt: import("zod").ZodOptional<import("zod").ZodNumber>;
3977
+ status: import("zod").ZodDefault<import("zod").ZodEnum<{
3978
+ approved: "approved";
3979
+ done: "done";
3980
+ failed: "failed";
3981
+ proposed: "proposed";
3982
+ running: "running";
3983
+ }>>;
3984
+ createdAt: import("zod").ZodOptional<import("zod").ZodNumber>;
3985
+ startedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
3986
+ finishedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
3987
+ result: import("zod").ZodOptional<import("zod").ZodString>;
3988
+ error: import("zod").ZodOptional<import("zod").ZodString>;
3989
+ kind: import("zod").ZodLiteral<"action">;
3990
+ summary: import("zod").ZodString;
3991
+ details: import("zod").ZodOptional<import("zod").ZodString>;
3992
+ instructions: import("zod").ZodString;
3993
+ id: import("zod").ZodString;
3994
+ }, import("zod/v4/core").$strip>], "kind">>;
3995
+ invalid: import("zod").ZodArray<import("zod").ZodString>;
3996
+ }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
3997
+ upsert: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
3998
+ actsAs: import("zod").ZodOptional<import("zod").ZodString>;
3999
+ scheduledAt: import("zod").ZodOptional<import("zod").ZodNumber>;
4000
+ status: import("zod").ZodDefault<import("zod").ZodEnum<{
4001
+ approved: "approved";
4002
+ done: "done";
4003
+ failed: "failed";
4004
+ proposed: "proposed";
4005
+ running: "running";
4006
+ }>>;
4007
+ createdAt: import("zod").ZodOptional<import("zod").ZodNumber>;
4008
+ startedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
4009
+ finishedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
4010
+ result: import("zod").ZodOptional<import("zod").ZodString>;
4011
+ error: import("zod").ZodOptional<import("zod").ZodString>;
4012
+ kind: import("zod").ZodLiteral<"post">;
4013
+ platform: import("zod").ZodString;
4014
+ content: import("zod").ZodString;
4015
+ title: import("zod").ZodOptional<import("zod").ZodString>;
4016
+ target: import("zod").ZodOptional<import("zod").ZodString>;
4017
+ media: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
4018
+ id: import("zod").ZodString;
4019
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
4020
+ actsAs: import("zod").ZodOptional<import("zod").ZodString>;
4021
+ scheduledAt: import("zod").ZodOptional<import("zod").ZodNumber>;
4022
+ status: import("zod").ZodDefault<import("zod").ZodEnum<{
4023
+ approved: "approved";
4024
+ done: "done";
4025
+ failed: "failed";
4026
+ proposed: "proposed";
4027
+ running: "running";
4028
+ }>>;
4029
+ createdAt: import("zod").ZodOptional<import("zod").ZodNumber>;
4030
+ startedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
4031
+ finishedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
4032
+ result: import("zod").ZodOptional<import("zod").ZodString>;
4033
+ error: import("zod").ZodOptional<import("zod").ZodString>;
4034
+ kind: import("zod").ZodLiteral<"action">;
4035
+ summary: import("zod").ZodString;
4036
+ details: import("zod").ZodOptional<import("zod").ZodString>;
4037
+ instructions: import("zod").ZodString;
4038
+ id: import("zod").ZodString;
4039
+ }, import("zod/v4/core").$strip>], "kind">, import("zod").ZodObject<{
4040
+ ok: import("zod").ZodLiteral<true>;
4041
+ }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
4042
+ remove: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
4043
+ id: import("zod").ZodString;
4044
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
4045
+ ok: import("zod").ZodLiteral<true>;
3235
4046
  }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
3236
4047
  };
3237
4048
  automations: {
@@ -4587,7 +5398,6 @@ export declare const sandboxContract: {
4587
5398
  durationSeconds: import("zod").ZodOptional<import("zod").ZodNumber>;
4588
5399
  failedJobs: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
4589
5400
  }, import("zod/v4/core").$strip>>;
4590
- seenAt: import("zod").ZodOptional<import("zod").ZodNumber>;
4591
5401
  }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
4592
5402
  rerun: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
4593
5403
  repo: import("zod").ZodString;
@@ -4628,13 +5438,11 @@ export declare const sandboxContract: {
4628
5438
  pick: import("zod").ZodOptional<import("zod").ZodObject<{
4629
5439
  agent: import("zod").ZodString;
4630
5440
  model: import("zod").ZodString;
5441
+ effort: import("zod").ZodOptional<import("zod").ZodString>;
4631
5442
  }, import("zod/v4/core").$strip>>;
4632
5443
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
4633
5444
  conversationId: import("zod").ZodString;
4634
5445
  }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
4635
- seen: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
4636
- seenAt: import("zod").ZodNumber;
4637
- }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
4638
5446
  };
4639
5447
  claude: {
4640
5448
  start: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
@@ -4662,6 +5470,9 @@ export declare const sandboxContract: {
4662
5470
  label: import("zod").ZodOptional<import("zod").ZodString>;
4663
5471
  utilization: import("zod").ZodNumber;
4664
5472
  resetsAt: import("zod").ZodOptional<import("zod").ZodNumber>;
5473
+ gates: import("zod").ZodUnion<readonly [import("zod").ZodLiteral<"all">, import("zod").ZodLiteral<"none">, import("zod").ZodObject<{
5474
+ models: import("zod").ZodArray<import("zod").ZodString>;
5475
+ }, import("zod/v4/core").$strip>]>;
4665
5476
  }, import("zod/v4/core").$strip>>;
4666
5477
  measuredAt: import("zod").ZodNumber;
4667
5478
  }, import("zod/v4/core").$strip>>;
@@ -4684,6 +5495,9 @@ export declare const sandboxContract: {
4684
5495
  label: import("zod").ZodOptional<import("zod").ZodString>;
4685
5496
  utilization: import("zod").ZodNumber;
4686
5497
  resetsAt: import("zod").ZodOptional<import("zod").ZodNumber>;
5498
+ gates: import("zod").ZodUnion<readonly [import("zod").ZodLiteral<"all">, import("zod").ZodLiteral<"none">, import("zod").ZodObject<{
5499
+ models: import("zod").ZodArray<import("zod").ZodString>;
5500
+ }, import("zod/v4/core").$strip>]>;
4687
5501
  }, import("zod/v4/core").$strip>>;
4688
5502
  measuredAt: import("zod").ZodNumber;
4689
5503
  }, import("zod/v4/core").$strip>>;
@@ -4707,6 +5521,9 @@ export declare const sandboxContract: {
4707
5521
  label: import("zod").ZodOptional<import("zod").ZodString>;
4708
5522
  utilization: import("zod").ZodNumber;
4709
5523
  resetsAt: import("zod").ZodOptional<import("zod").ZodNumber>;
5524
+ gates: import("zod").ZodUnion<readonly [import("zod").ZodLiteral<"all">, import("zod").ZodLiteral<"none">, import("zod").ZodObject<{
5525
+ models: import("zod").ZodArray<import("zod").ZodString>;
5526
+ }, import("zod/v4/core").$strip>]>;
4710
5527
  }, import("zod/v4/core").$strip>>;
4711
5528
  measuredAt: import("zod").ZodNumber;
4712
5529
  }, import("zod/v4/core").$strip>>;
@@ -4746,6 +5563,9 @@ export declare const sandboxContract: {
4746
5563
  label: import("zod").ZodOptional<import("zod").ZodString>;
4747
5564
  utilization: import("zod").ZodNumber;
4748
5565
  resetsAt: import("zod").ZodOptional<import("zod").ZodNumber>;
5566
+ gates: import("zod").ZodUnion<readonly [import("zod").ZodLiteral<"all">, import("zod").ZodLiteral<"none">, import("zod").ZodObject<{
5567
+ models: import("zod").ZodArray<import("zod").ZodString>;
5568
+ }, import("zod/v4/core").$strip>]>;
4749
5569
  }, import("zod/v4/core").$strip>>;
4750
5570
  measuredAt: import("zod").ZodNumber;
4751
5571
  }, import("zod/v4/core").$strip>>;
@@ -4769,6 +5589,9 @@ export declare const sandboxContract: {
4769
5589
  label: import("zod").ZodOptional<import("zod").ZodString>;
4770
5590
  utilization: import("zod").ZodNumber;
4771
5591
  resetsAt: import("zod").ZodOptional<import("zod").ZodNumber>;
5592
+ gates: import("zod").ZodUnion<readonly [import("zod").ZodLiteral<"all">, import("zod").ZodLiteral<"none">, import("zod").ZodObject<{
5593
+ models: import("zod").ZodArray<import("zod").ZodString>;
5594
+ }, import("zod/v4/core").$strip>]>;
4772
5595
  }, import("zod/v4/core").$strip>>;
4773
5596
  measuredAt: import("zod").ZodNumber;
4774
5597
  }, import("zod/v4/core").$strip>>;
@@ -4779,62 +5602,6 @@ export declare const sandboxContract: {
4779
5602
  ok: import("zod").ZodLiteral<true>;
4780
5603
  }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
4781
5604
  };
4782
- drafts: {
4783
- list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
4784
- drafts: import("zod").ZodArray<import("zod").ZodObject<{
4785
- platform: import("zod").ZodString;
4786
- actsAs: import("zod").ZodOptional<import("zod").ZodString>;
4787
- content: import("zod").ZodString;
4788
- title: import("zod").ZodOptional<import("zod").ZodString>;
4789
- target: import("zod").ZodOptional<import("zod").ZodString>;
4790
- media: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
4791
- scheduledAt: import("zod").ZodOptional<import("zod").ZodNumber>;
4792
- status: import("zod").ZodDefault<import("zod").ZodEnum<{
4793
- approved: "approved";
4794
- failed: "failed";
4795
- posted: "posted";
4796
- posting: "posting";
4797
- proposed: "proposed";
4798
- }>>;
4799
- createdAt: import("zod").ZodOptional<import("zod").ZodNumber>;
4800
- postingAt: import("zod").ZodOptional<import("zod").ZodNumber>;
4801
- postedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
4802
- postedUrl: import("zod").ZodOptional<import("zod").ZodString>;
4803
- error: import("zod").ZodOptional<import("zod").ZodString>;
4804
- id: import("zod").ZodString;
4805
- }, import("zod/v4/core").$strip>>;
4806
- invalid: import("zod").ZodArray<import("zod").ZodString>;
4807
- }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
4808
- upsert: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
4809
- platform: import("zod").ZodString;
4810
- actsAs: import("zod").ZodOptional<import("zod").ZodString>;
4811
- content: import("zod").ZodString;
4812
- title: import("zod").ZodOptional<import("zod").ZodString>;
4813
- target: import("zod").ZodOptional<import("zod").ZodString>;
4814
- media: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
4815
- scheduledAt: import("zod").ZodOptional<import("zod").ZodNumber>;
4816
- status: import("zod").ZodDefault<import("zod").ZodEnum<{
4817
- approved: "approved";
4818
- failed: "failed";
4819
- posted: "posted";
4820
- posting: "posting";
4821
- proposed: "proposed";
4822
- }>>;
4823
- createdAt: import("zod").ZodOptional<import("zod").ZodNumber>;
4824
- postingAt: import("zod").ZodOptional<import("zod").ZodNumber>;
4825
- postedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
4826
- postedUrl: import("zod").ZodOptional<import("zod").ZodString>;
4827
- error: import("zod").ZodOptional<import("zod").ZodString>;
4828
- id: import("zod").ZodString;
4829
- }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
4830
- ok: import("zod").ZodLiteral<true>;
4831
- }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
4832
- remove: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
4833
- id: import("zod").ZodString;
4834
- }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
4835
- ok: import("zod").ZodLiteral<true>;
4836
- }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
4837
- };
4838
5605
  endpoints: {
4839
5606
  models: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
4840
5607
  id: import("zod").ZodString;
@@ -5538,6 +6305,39 @@ export declare const sandboxContract: {
5538
6305
  ok: import("zod").ZodLiteral<true>;
5539
6306
  }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
5540
6307
  };
6308
+ safety: {
6309
+ policy: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
6310
+ text: import("zod").ZodString;
6311
+ custom: import("zod").ZodBoolean;
6312
+ }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
6313
+ setPolicy: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
6314
+ text: import("zod").ZodString;
6315
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
6316
+ ok: import("zod").ZodLiteral<true>;
6317
+ }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
6318
+ log: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodArray<import("zod").ZodObject<{
6319
+ at: import("zod").ZodNumber;
6320
+ program: import("zod").ZodString;
6321
+ classes: import("zod").ZodArray<import("zod").ZodString>;
6322
+ decision: import("zod").ZodEnum<{
6323
+ allow: "allow";
6324
+ ask: "ask";
6325
+ refuse: "refuse";
6326
+ }>;
6327
+ sentence: import("zod").ZodString;
6328
+ outcome: import("zod").ZodEnum<{
6329
+ allowed: "allowed";
6330
+ asked: "asked";
6331
+ refused: "refused";
6332
+ }>;
6333
+ answer: import("zod").ZodOptional<import("zod").ZodEnum<{
6334
+ allowed: "allowed";
6335
+ declined: "declined";
6336
+ unanswered: "unanswered";
6337
+ }>>;
6338
+ machine: import("zod").ZodOptional<import("zod").ZodString>;
6339
+ }, import("zod/v4/core").$strip>>, Record<never, never>, Record<never, never>>;
6340
+ };
5541
6341
  sessions: {
5542
6342
  list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
5543
6343
  query: import("zod").ZodOptional<import("zod").ZodString>;
@@ -5569,16 +6369,226 @@ export declare const sandboxContract: {
5569
6369
  sentAt: import("zod").ZodOptional<import("zod").ZodNumber>;
5570
6370
  attachments: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
5571
6371
  checkpointId: import("zod").ZodOptional<import("zod").ZodString>;
6372
+ rewindIndex: import("zod").ZodOptional<import("zod").ZodNumber>;
5572
6373
  thinking: import("zod").ZodOptional<import("zod").ZodString>;
5573
- tools: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodType<import("./events.js").RestoredToolCall, unknown, import("zod/v4/core").$ZodTypeInternals<import("./events.js").RestoredToolCall, unknown>>>>;
6374
+ tools: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodType<import("./events.js").TranscriptTool, unknown, import("zod/v4/core").$ZodTypeInternals<import("./events.js").TranscriptTool, unknown>>>>;
6375
+ todos: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
6376
+ content: import("zod").ZodString;
6377
+ status: import("zod").ZodEnum<{
6378
+ completed: "completed";
6379
+ in_progress: "in_progress";
6380
+ pending: "pending";
6381
+ }>;
6382
+ activeForm: import("zod").ZodOptional<import("zod").ZodString>;
6383
+ }, import("zod/v4/core").$strip>>>;
6384
+ usage: import("zod").ZodOptional<import("zod").ZodObject<{
6385
+ costUsd: import("zod").ZodOptional<import("zod").ZodNumber>;
6386
+ inputTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
6387
+ outputTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
6388
+ durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
6389
+ numTurns: import("zod").ZodOptional<import("zod").ZodNumber>;
6390
+ }, import("zod/v4/core").$strip>>;
5574
6391
  notes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
5575
6392
  title: import("zod").ZodString;
5576
6393
  text: import("zod").ZodString;
5577
6394
  }, import("zod/v4/core").$strip>>>;
5578
6395
  placed: import("zod").ZodOptional<import("zod").ZodBoolean>;
5579
6396
  noticeAction: import("zod").ZodOptional<import("zod").ZodEnum<{
6397
+ depsInstall: "depsInstall";
6398
+ landHold: "landHold";
6399
+ outageOptOut: "outageOptOut";
5580
6400
  tierHold: "tierHold";
5581
6401
  }>>;
6402
+ noticeWait: import("zod").ZodOptional<import("zod").ZodEnum<{
6403
+ credentialRenewal: "credentialRenewal";
6404
+ }>>;
6405
+ plan: import("zod").ZodOptional<import("zod").ZodObject<{
6406
+ requestId: import("zod").ZodString;
6407
+ text: import("zod").ZodString;
6408
+ document: import("zod").ZodOptional<import("zod").ZodObject<{
6409
+ path: import("zod").ZodString;
6410
+ title: import("zod").ZodString;
6411
+ markdown: import("zod").ZodString;
6412
+ truncated: import("zod").ZodOptional<import("zod").ZodBoolean>;
6413
+ plan: import("zod").ZodOptional<import("zod").ZodBoolean>;
6414
+ }, import("zod/v4/core").$strip>>;
6415
+ status: import("zod").ZodEnum<{
6416
+ approved: "approved";
6417
+ cancelled: "cancelled";
6418
+ pending: "pending";
6419
+ rejected: "rejected";
6420
+ }>;
6421
+ }, import("zod/v4/core").$strip>>;
6422
+ question: import("zod").ZodOptional<import("zod").ZodObject<{
6423
+ requestId: import("zod").ZodString;
6424
+ questions: import("zod").ZodArray<import("zod").ZodObject<{
6425
+ question: import("zod").ZodString;
6426
+ header: import("zod").ZodString;
6427
+ multiSelect: import("zod").ZodBoolean;
6428
+ options: import("zod").ZodArray<import("zod").ZodObject<{
6429
+ label: import("zod").ZodString;
6430
+ description: import("zod").ZodString;
6431
+ preview: import("zod").ZodOptional<import("zod").ZodString>;
6432
+ }, import("zod/v4/core").$strip>>;
6433
+ }, import("zod/v4/core").$strip>>;
6434
+ document: import("zod").ZodOptional<import("zod").ZodObject<{
6435
+ path: import("zod").ZodString;
6436
+ title: import("zod").ZodString;
6437
+ markdown: import("zod").ZodString;
6438
+ truncated: import("zod").ZodOptional<import("zod").ZodBoolean>;
6439
+ plan: import("zod").ZodOptional<import("zod").ZodBoolean>;
6440
+ }, import("zod/v4/core").$strip>>;
6441
+ status: import("zod").ZodEnum<{
6442
+ answered: "answered";
6443
+ cancelled: "cancelled";
6444
+ pending: "pending";
6445
+ }>;
6446
+ answers: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>>>;
6447
+ }, import("zod/v4/core").$strip>>;
6448
+ permission: import("zod").ZodOptional<import("zod").ZodObject<{
6449
+ toolName: import("zod").ZodString;
6450
+ title: import("zod").ZodOptional<import("zod").ZodString>;
6451
+ displayName: import("zod").ZodOptional<import("zod").ZodString>;
6452
+ description: import("zod").ZodOptional<import("zod").ZodString>;
6453
+ reason: import("zod").ZodOptional<import("zod").ZodString>;
6454
+ path: import("zod").ZodOptional<import("zod").ZodString>;
6455
+ alwaysLabel: import("zod").ZodOptional<import("zod").ZodString>;
6456
+ program: import("zod").ZodOptional<import("zod").ZodObject<{
6457
+ text: import("zod").ZodString;
6458
+ language: import("zod").ZodEnum<{
6459
+ bash: "bash";
6460
+ javascript: "javascript";
6461
+ }>;
6462
+ truncated: import("zod").ZodBoolean;
6463
+ spans: import("zod").ZodArray<import("zod").ZodObject<{
6464
+ start: import("zod").ZodNumber;
6465
+ end: import("zod").ZodNumber;
6466
+ }, import("zod/v4/core").$strip>>;
6467
+ }, import("zod/v4/core").$strip>>;
6468
+ explain: import("zod").ZodOptional<import("zod").ZodString>;
6469
+ requestId: import("zod").ZodString;
6470
+ status: import("zod").ZodEnum<{
6471
+ allowed: "allowed";
6472
+ always: "always";
6473
+ cancelled: "cancelled";
6474
+ denied: "denied";
6475
+ pending: "pending";
6476
+ }>;
6477
+ }, import("zod/v4/core").$strip>>;
6478
+ browserHelp: import("zod").ZodOptional<import("zod").ZodObject<{
6479
+ requestId: import("zod").ZodString;
6480
+ session: import("zod").ZodString;
6481
+ account: import("zod").ZodString;
6482
+ message: import("zod").ZodString;
6483
+ status: import("zod").ZodEnum<{
6484
+ cancelled: "cancelled";
6485
+ declined: "declined";
6486
+ helped: "helped";
6487
+ pending: "pending";
6488
+ }>;
6489
+ }, import("zod/v4/core").$strip>>;
6490
+ terminalHelp: import("zod").ZodOptional<import("zod").ZodObject<{
6491
+ requestId: import("zod").ZodString;
6492
+ session: import("zod").ZodString;
6493
+ message: import("zod").ZodString;
6494
+ status: import("zod").ZodEnum<{
6495
+ cancelled: "cancelled";
6496
+ declined: "declined";
6497
+ helped: "helped";
6498
+ pending: "pending";
6499
+ }>;
6500
+ }, import("zod/v4/core").$strip>>;
6501
+ serviceOffer: import("zod").ZodOptional<import("zod").ZodObject<{
6502
+ requestId: import("zod").ZodString;
6503
+ offer: import("zod").ZodObject<{
6504
+ slug: import("zod").ZodString;
6505
+ name: import("zod").ZodString;
6506
+ publisher: import("zod").ZodString;
6507
+ description: import("zod").ZodString;
6508
+ creditsPerRun: import("zod").ZodNumber;
6509
+ probation: import("zod").ZodOptional<import("zod").ZodBoolean>;
6510
+ credits: import("zod").ZodOptional<import("zod").ZodObject<{
6511
+ allowance: import("zod").ZodNumber;
6512
+ remaining: import("zod").ZodNumber;
6513
+ resetsAt: import("zod").ZodString;
6514
+ }, import("zod/v4/core").$strip>>;
6515
+ request: import("zod").ZodString;
6516
+ why: import("zod").ZodOptional<import("zod").ZodString>;
6517
+ }, import("zod/v4/core").$strip>;
6518
+ status: import("zod").ZodEnum<{
6519
+ approved: "approved";
6520
+ cancelled: "cancelled";
6521
+ pending: "pending";
6522
+ skipped: "skipped";
6523
+ }>;
6524
+ events: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
6525
+ event: import("zod").ZodLiteral<"status">;
6526
+ text: import("zod").ZodString;
6527
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
6528
+ event: import("zod").ZodLiteral<"result">;
6529
+ data: import("zod").ZodUnknown;
6530
+ }, import("zod/v4/core").$strip>], "event">>>;
6531
+ receipt: import("zod").ZodOptional<import("zod").ZodObject<{
6532
+ outcome: import("zod").ZodEnum<{
6533
+ ok: "ok";
6534
+ refunded: "refunded";
6535
+ refused: "refused";
6536
+ }>;
6537
+ credits: import("zod").ZodNumber;
6538
+ remaining: import("zod").ZodOptional<import("zod").ZodNumber>;
6539
+ }, import("zod/v4/core").$strip>>;
6540
+ }, import("zod/v4/core").$strip>>;
6541
+ capabilityOffer: import("zod").ZodOptional<import("zod").ZodObject<{
6542
+ requestId: import("zod").ZodString;
6543
+ offer: import("zod").ZodObject<{
6544
+ card: import("zod").ZodString;
6545
+ name: import("zod").ZodString;
6546
+ why: import("zod").ZodOptional<import("zod").ZodString>;
6547
+ }, import("zod/v4/core").$strip>;
6548
+ status: import("zod").ZodEnum<{
6549
+ cancelled: "cancelled";
6550
+ connecting: "connecting";
6551
+ pending: "pending";
6552
+ skipped: "skipped";
6553
+ }>;
6554
+ outcome: import("zod").ZodOptional<import("zod").ZodObject<{
6555
+ outcome: import("zod").ZodEnum<{
6556
+ connected: "connected";
6557
+ unfinished: "unfinished";
6558
+ }>;
6559
+ id: import("zod").ZodOptional<import("zod").ZodString>;
6560
+ }, import("zod/v4/core").$strip>>;
6561
+ }, import("zod/v4/core").$strip>>;
6562
+ paymentOffer: import("zod").ZodOptional<import("zod").ZodObject<{
6563
+ requestId: import("zod").ZodString;
6564
+ offer: import("zod").ZodObject<{
6565
+ url: import("zod").ZodString;
6566
+ description: import("zod").ZodOptional<import("zod").ZodString>;
6567
+ payTo: import("zod").ZodString;
6568
+ network: import("zod").ZodString;
6569
+ asset: import("zod").ZodString;
6570
+ assetName: import("zod").ZodString;
6571
+ amountUsd: import("zod").ZodString;
6572
+ spentTodayUsd: import("zod").ZodString;
6573
+ dailyCapUsd: import("zod").ZodString;
6574
+ why: import("zod").ZodOptional<import("zod").ZodString>;
6575
+ }, import("zod/v4/core").$strip>;
6576
+ status: import("zod").ZodEnum<{
6577
+ approved: "approved";
6578
+ cancelled: "cancelled";
6579
+ pending: "pending";
6580
+ skipped: "skipped";
6581
+ }>;
6582
+ receipt: import("zod").ZodOptional<import("zod").ZodObject<{
6583
+ outcome: import("zod").ZodEnum<{
6584
+ failed: "failed";
6585
+ paid: "paid";
6586
+ }>;
6587
+ amountUsd: import("zod").ZodString;
6588
+ transaction: import("zod").ZodOptional<import("zod").ZodString>;
6589
+ network: import("zod").ZodOptional<import("zod").ZodString>;
6590
+ }, import("zod/v4/core").$strip>>;
6591
+ }, import("zod/v4/core").$strip>>;
5582
6592
  }, import("zod/v4/core").$strip>>;
5583
6593
  }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
5584
6594
  };
@@ -5604,13 +6614,21 @@ export declare const sandboxContract: {
5604
6614
  off: "off";
5605
6615
  versions: "versions";
5606
6616
  }>>;
5607
- testFaultDetection: import("zod").ZodDefault<import("zod").ZodBoolean>;
5608
6617
  outputCleaners: import("zod").ZodDefault<import("zod").ZodString>;
5609
6618
  outputHoldout: import("zod").ZodDefault<import("zod").ZodNumber>;
5610
6619
  quickModel: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
5611
6620
  changelogRepos: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
5612
- agentRunModels: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
5613
- agentRunEffort: import("zod").ZodDefault<import("zod").ZodString>;
6621
+ agentRunModels: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
6622
+ provider: import("zod").ZodString;
6623
+ model: import("zod").ZodString;
6624
+ effort: import("zod").ZodOptional<import("zod").ZodString>;
6625
+ thinking: import("zod").ZodOptional<import("zod").ZodBoolean>;
6626
+ fast: import("zod").ZodOptional<import("zod").ZodBoolean>;
6627
+ harness: import("zod").ZodOptional<import("zod").ZodEnum<{
6628
+ "claude-code": "claude-code";
6629
+ native: "native";
6630
+ }>>;
6631
+ }, import("zod/v4/core").$strip>>>;
5614
6632
  autoTier: import("zod").ZodDefault<import("zod").ZodEnum<{
5615
6633
  off: "off";
5616
6634
  on: "on";
@@ -5624,12 +6642,14 @@ export declare const sandboxContract: {
5624
6642
  autoFastModels: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
5625
6643
  agentRetentionDays: import("zod").ZodDefault<import("zod").ZodNumber>;
5626
6644
  resumeAfterOutage: import("zod").ZodDefault<import("zod").ZodBoolean>;
6645
+ resumeAfterLimit: import("zod").ZodDefault<import("zod").ZodBoolean>;
5627
6646
  autoResumeOnRestart: import("zod").ZodDefault<import("zod").ZodBoolean>;
5628
6647
  rules: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
5629
6648
  id: import("zod").ZodString;
5630
6649
  label: import("zod").ZodString;
5631
6650
  moment: import("zod").ZodEnum<{
5632
6651
  "agent.finished": "agent.finished";
6652
+ "file.edited": "file.edited";
5633
6653
  "push.starting": "push.starting";
5634
6654
  "turn.ending": "turn.ending";
5635
6655
  }>;
@@ -5637,6 +6657,7 @@ export declare const sandboxContract: {
5637
6657
  repo: import("zod").ZodOptional<import("zod").ZodString>;
5638
6658
  paths: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
5639
6659
  outcome: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
6660
+ "checks-failed": "checks-failed";
5640
6661
  clean: "clean";
5641
6662
  conflict: "conflict";
5642
6663
  error: "error";
@@ -5660,6 +6681,7 @@ export declare const sandboxContract: {
5660
6681
  name: import("zod").ZodEnum<{
5661
6682
  "verify-edits": "verify-edits";
5662
6683
  "verify-removals": "verify-removals";
6684
+ "verify-tests": "verify-tests";
5663
6685
  "verify-ui-edits": "verify-ui-edits";
5664
6686
  }>;
5665
6687
  }, import("zod/v4/core").$strip>], "kind">;
@@ -5707,19 +6729,6 @@ export declare const sandboxContract: {
5707
6729
  deny: "deny";
5708
6730
  hold: "hold";
5709
6731
  }>>>;
5710
- commandRules: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodEnum<{
5711
- "files.destructive": "files.destructive";
5712
- "git.destructive": "git.destructive";
5713
- "network.outbound": "network.outbound";
5714
- "package.publish": "package.publish";
5715
- "secrets.access": "secrets.access";
5716
- "system.destructive": "system.destructive";
5717
- }> & import("zod/v4/core").$partial, import("zod").ZodEnum<{
5718
- allow: "allow";
5719
- deny: "deny";
5720
- hold: "hold";
5721
- }>>>;
5722
- explainCommands: import("zod").ZodDefault<import("zod").ZodBoolean>;
5723
6732
  subagentsAtOnce: import("zod").ZodDefault<import("zod").ZodNumber>;
5724
6733
  subagentsPerTurn: import("zod").ZodDefault<import("zod").ZodNumber>;
5725
6734
  subagentDepth: import("zod").ZodDefault<import("zod").ZodNumber>;
@@ -5745,13 +6754,21 @@ export declare const sandboxContract: {
5745
6754
  off: "off";
5746
6755
  versions: "versions";
5747
6756
  }>>;
5748
- testFaultDetection: import("zod").ZodDefault<import("zod").ZodBoolean>;
5749
6757
  outputCleaners: import("zod").ZodDefault<import("zod").ZodString>;
5750
6758
  outputHoldout: import("zod").ZodDefault<import("zod").ZodNumber>;
5751
6759
  quickModel: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
5752
6760
  changelogRepos: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
5753
- agentRunModels: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
5754
- agentRunEffort: import("zod").ZodDefault<import("zod").ZodString>;
6761
+ agentRunModels: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
6762
+ provider: import("zod").ZodString;
6763
+ model: import("zod").ZodString;
6764
+ effort: import("zod").ZodOptional<import("zod").ZodString>;
6765
+ thinking: import("zod").ZodOptional<import("zod").ZodBoolean>;
6766
+ fast: import("zod").ZodOptional<import("zod").ZodBoolean>;
6767
+ harness: import("zod").ZodOptional<import("zod").ZodEnum<{
6768
+ "claude-code": "claude-code";
6769
+ native: "native";
6770
+ }>>;
6771
+ }, import("zod/v4/core").$strip>>>;
5755
6772
  autoTier: import("zod").ZodDefault<import("zod").ZodEnum<{
5756
6773
  off: "off";
5757
6774
  on: "on";
@@ -5765,12 +6782,14 @@ export declare const sandboxContract: {
5765
6782
  autoFastModels: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
5766
6783
  agentRetentionDays: import("zod").ZodDefault<import("zod").ZodNumber>;
5767
6784
  resumeAfterOutage: import("zod").ZodDefault<import("zod").ZodBoolean>;
6785
+ resumeAfterLimit: import("zod").ZodDefault<import("zod").ZodBoolean>;
5768
6786
  autoResumeOnRestart: import("zod").ZodDefault<import("zod").ZodBoolean>;
5769
6787
  rules: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
5770
6788
  id: import("zod").ZodString;
5771
6789
  label: import("zod").ZodString;
5772
6790
  moment: import("zod").ZodEnum<{
5773
6791
  "agent.finished": "agent.finished";
6792
+ "file.edited": "file.edited";
5774
6793
  "push.starting": "push.starting";
5775
6794
  "turn.ending": "turn.ending";
5776
6795
  }>;
@@ -5778,6 +6797,7 @@ export declare const sandboxContract: {
5778
6797
  repo: import("zod").ZodOptional<import("zod").ZodString>;
5779
6798
  paths: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
5780
6799
  outcome: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
6800
+ "checks-failed": "checks-failed";
5781
6801
  clean: "clean";
5782
6802
  conflict: "conflict";
5783
6803
  error: "error";
@@ -5801,6 +6821,7 @@ export declare const sandboxContract: {
5801
6821
  name: import("zod").ZodEnum<{
5802
6822
  "verify-edits": "verify-edits";
5803
6823
  "verify-removals": "verify-removals";
6824
+ "verify-tests": "verify-tests";
5804
6825
  "verify-ui-edits": "verify-ui-edits";
5805
6826
  }>;
5806
6827
  }, import("zod/v4/core").$strip>], "kind">;
@@ -5848,19 +6869,6 @@ export declare const sandboxContract: {
5848
6869
  deny: "deny";
5849
6870
  hold: "hold";
5850
6871
  }>>>;
5851
- commandRules: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodEnum<{
5852
- "files.destructive": "files.destructive";
5853
- "git.destructive": "git.destructive";
5854
- "network.outbound": "network.outbound";
5855
- "package.publish": "package.publish";
5856
- "secrets.access": "secrets.access";
5857
- "system.destructive": "system.destructive";
5858
- }> & import("zod/v4/core").$partial, import("zod").ZodEnum<{
5859
- allow: "allow";
5860
- deny: "deny";
5861
- hold: "hold";
5862
- }>>>;
5863
- explainCommands: import("zod").ZodDefault<import("zod").ZodBoolean>;
5864
6872
  subagentsAtOnce: import("zod").ZodDefault<import("zod").ZodNumber>;
5865
6873
  subagentsPerTurn: import("zod").ZodDefault<import("zod").ZodNumber>;
5866
6874
  subagentDepth: import("zod").ZodDefault<import("zod").ZodNumber>;
@@ -6137,6 +7145,10 @@ export declare const sandboxContract: {
6137
7145
  from: import("zod").ZodOptional<import("zod").ZodString>;
6138
7146
  additions: import("zod").ZodOptional<import("zod").ZodNumber>;
6139
7147
  deletions: import("zod").ZodOptional<import("zod").ZodNumber>;
7148
+ code: import("zod").ZodOptional<import("zod").ZodObject<{
7149
+ additions: import("zod").ZodNumber;
7150
+ deletions: import("zod").ZodNumber;
7151
+ }, import("zod/v4/core").$strip>>;
6140
7152
  }, import("zod/v4/core").$strip>>;
6141
7153
  operation: import("zod").ZodOptional<import("zod").ZodEnum<{
6142
7154
  "cherry-pick": "cherry-pick";
@@ -6157,6 +7169,10 @@ export declare const sandboxContract: {
6157
7169
  from: import("zod").ZodOptional<import("zod").ZodString>;
6158
7170
  additions: import("zod").ZodOptional<import("zod").ZodNumber>;
6159
7171
  deletions: import("zod").ZodOptional<import("zod").ZodNumber>;
7172
+ code: import("zod").ZodOptional<import("zod").ZodObject<{
7173
+ additions: import("zod").ZodNumber;
7174
+ deletions: import("zod").ZodNumber;
7175
+ }, import("zod/v4/core").$strip>>;
6160
7176
  }, import("zod/v4/core").$strip>>;
6161
7177
  unstaged: import("zod").ZodArray<import("zod").ZodObject<{
6162
7178
  path: import("zod").ZodString;
@@ -6171,6 +7187,10 @@ export declare const sandboxContract: {
6171
7187
  from: import("zod").ZodOptional<import("zod").ZodString>;
6172
7188
  additions: import("zod").ZodOptional<import("zod").ZodNumber>;
6173
7189
  deletions: import("zod").ZodOptional<import("zod").ZodNumber>;
7190
+ code: import("zod").ZodOptional<import("zod").ZodObject<{
7191
+ additions: import("zod").ZodNumber;
7192
+ deletions: import("zod").ZodNumber;
7193
+ }, import("zod/v4/core").$strip>>;
6174
7194
  }, import("zod/v4/core").$strip>>;
6175
7195
  truncated: import("zod").ZodOptional<import("zod").ZodNumber>;
6176
7196
  remote: import("zod").ZodOptional<import("zod").ZodObject<{
@@ -6242,6 +7262,10 @@ export declare const sandboxContract: {
6242
7262
  from: import("zod").ZodOptional<import("zod").ZodString>;
6243
7263
  additions: import("zod").ZodOptional<import("zod").ZodNumber>;
6244
7264
  deletions: import("zod").ZodOptional<import("zod").ZodNumber>;
7265
+ code: import("zod").ZodOptional<import("zod").ZodObject<{
7266
+ additions: import("zod").ZodNumber;
7267
+ deletions: import("zod").ZodNumber;
7268
+ }, import("zod/v4/core").$strip>>;
6245
7269
  }, import("zod/v4/core").$strip>>;
6246
7270
  }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
6247
7271
  commitFileDiff: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
@@ -6338,6 +7362,10 @@ export declare const sandboxContract: {
6338
7362
  from: import("zod").ZodOptional<import("zod").ZodString>;
6339
7363
  additions: import("zod").ZodOptional<import("zod").ZodNumber>;
6340
7364
  deletions: import("zod").ZodOptional<import("zod").ZodNumber>;
7365
+ code: import("zod").ZodOptional<import("zod").ZodObject<{
7366
+ additions: import("zod").ZodNumber;
7367
+ deletions: import("zod").ZodNumber;
7368
+ }, import("zod/v4/core").$strip>>;
6341
7369
  }, import("zod/v4/core").$strip>>;
6342
7370
  }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
6343
7371
  stashPush: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
@@ -6494,6 +7522,10 @@ export declare const sandboxContract: {
6494
7522
  from: import("zod").ZodOptional<import("zod").ZodString>;
6495
7523
  additions: import("zod").ZodOptional<import("zod").ZodNumber>;
6496
7524
  deletions: import("zod").ZodOptional<import("zod").ZodNumber>;
7525
+ code: import("zod").ZodOptional<import("zod").ZodObject<{
7526
+ additions: import("zod").ZodNumber;
7527
+ deletions: import("zod").ZodNumber;
7528
+ }, import("zod/v4/core").$strip>>;
6497
7529
  }, import("zod/v4/core").$strip>>;
6498
7530
  operation: import("zod").ZodOptional<import("zod").ZodEnum<{
6499
7531
  "cherry-pick": "cherry-pick";
@@ -6514,6 +7546,10 @@ export declare const sandboxContract: {
6514
7546
  from: import("zod").ZodOptional<import("zod").ZodString>;
6515
7547
  additions: import("zod").ZodOptional<import("zod").ZodNumber>;
6516
7548
  deletions: import("zod").ZodOptional<import("zod").ZodNumber>;
7549
+ code: import("zod").ZodOptional<import("zod").ZodObject<{
7550
+ additions: import("zod").ZodNumber;
7551
+ deletions: import("zod").ZodNumber;
7552
+ }, import("zod/v4/core").$strip>>;
6517
7553
  }, import("zod/v4/core").$strip>>;
6518
7554
  unstaged: import("zod").ZodArray<import("zod").ZodObject<{
6519
7555
  path: import("zod").ZodString;
@@ -6528,6 +7564,10 @@ export declare const sandboxContract: {
6528
7564
  from: import("zod").ZodOptional<import("zod").ZodString>;
6529
7565
  additions: import("zod").ZodOptional<import("zod").ZodNumber>;
6530
7566
  deletions: import("zod").ZodOptional<import("zod").ZodNumber>;
7567
+ code: import("zod").ZodOptional<import("zod").ZodObject<{
7568
+ additions: import("zod").ZodNumber;
7569
+ deletions: import("zod").ZodNumber;
7570
+ }, import("zod/v4/core").$strip>>;
6531
7571
  }, import("zod/v4/core").$strip>>;
6532
7572
  truncated: import("zod").ZodOptional<import("zod").ZodNumber>;
6533
7573
  remote: import("zod").ZodOptional<import("zod").ZodObject<{
@@ -6627,8 +7667,38 @@ export declare const sandboxContract: {
6627
7667
  repo: import("zod").ZodString;
6628
7668
  branch: import("zod").ZodOptional<import("zod").ZodString>;
6629
7669
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
6630
- ok: import("zod").ZodBoolean;
7670
+ ok: import("zod").ZodLiteral<true>;
7671
+ }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
7672
+ pushState: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
7673
+ repo: import("zod").ZodString;
7674
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
7675
+ status: import("zod").ZodEnum<{
7676
+ cancelled: "cancelled";
7677
+ error: "error";
7678
+ failed: "failed";
7679
+ idle: "idle";
7680
+ passed: "passed";
7681
+ running: "running";
7682
+ }>;
7683
+ command: import("zod").ZodString;
7684
+ startedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
7685
+ finishedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
7686
+ exitCode: import("zod").ZodOptional<import("zod").ZodNumber>;
7687
+ timedOut: import("zod").ZodOptional<import("zod").ZodBoolean>;
7688
+ session: import("zod").ZodOptional<import("zod").ZodString>;
7689
+ output: import("zod").ZodString;
7690
+ repo: import("zod").ZodString;
6631
7691
  reason: import("zod").ZodOptional<import("zod").ZodString>;
7692
+ refusedBy: import("zod").ZodOptional<import("zod").ZodEnum<{
7693
+ hook: "hook";
7694
+ remote: "remote";
7695
+ transport: "transport";
7696
+ }>>;
7697
+ }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
7698
+ pushCancel: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
7699
+ repo: import("zod").ZodString;
7700
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
7701
+ ok: import("zod").ZodLiteral<true>;
6632
7702
  }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
6633
7703
  files: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
6634
7704
  repo: import("zod").ZodString;
@@ -6685,6 +7755,9 @@ export declare const sandboxContract: {
6685
7755
  label: import("zod").ZodOptional<import("zod").ZodString>;
6686
7756
  utilization: import("zod").ZodNumber;
6687
7757
  resetsAt: import("zod").ZodOptional<import("zod").ZodNumber>;
7758
+ gates: import("zod").ZodUnion<readonly [import("zod").ZodLiteral<"all">, import("zod").ZodLiteral<"none">, import("zod").ZodObject<{
7759
+ models: import("zod").ZodArray<import("zod").ZodString>;
7760
+ }, import("zod/v4/core").$strip>]>;
6688
7761
  }, import("zod/v4/core").$strip>>;
6689
7762
  measuredAt: import("zod").ZodNumber;
6690
7763
  }, import("zod/v4/core").$strip>>;
@@ -6753,6 +7826,7 @@ export declare const sandboxContract: {
6753
7826
  root: import("zod").ZodString;
6754
7827
  tree: import("zod").ZodArray<import("zod").ZodType<import("./schemas/workspace-tree.js").WorkspaceTreeEntry, unknown, import("zod/v4/core").$ZodTypeInternals<import("./schemas/workspace-tree.js").WorkspaceTreeEntry, unknown>>>;
6755
7828
  hidden: import("zod").ZodNumber;
7829
+ barren: import("zod").ZodArray<import("zod").ZodString>;
6756
7830
  }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
6757
7831
  children: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
6758
7832
  agent: import("zod").ZodOptional<import("zod").ZodString>;
@@ -7015,6 +8089,13 @@ export declare const sandboxContract: {
7015
8089
  previewUrl: import("zod").ZodOptional<import("zod").ZodString>;
7016
8090
  running: import("zod").ZodBoolean;
7017
8091
  healthy: import("zod").ZodBoolean;
8092
+ installed: import("zod").ZodBoolean;
8093
+ launch: import("zod").ZodOptional<import("zod").ZodEnum<{
8094
+ exited: "exited";
8095
+ installing: "installing";
8096
+ launching: "launching";
8097
+ starting: "starting";
8098
+ }>>;
7018
8099
  }, import("zod/v4/core").$strip>>;
7019
8100
  }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
7020
8101
  packageGraph: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
@@ -7672,6 +8753,13 @@ export declare const sandboxContract: {
7672
8753
  repo: import("zod").ZodString;
7673
8754
  hasPanel: import("zod").ZodBoolean;
7674
8755
  running: import("zod").ZodBoolean;
8756
+ installed: import("zod").ZodBoolean;
8757
+ launch: import("zod").ZodOptional<import("zod").ZodEnum<{
8758
+ exited: "exited";
8759
+ installing: "installing";
8760
+ launching: "launching";
8761
+ starting: "starting";
8762
+ }>>;
7675
8763
  healthy: import("zod").ZodBoolean;
7676
8764
  port: import("zod").ZodOptional<import("zod").ZodNumber>;
7677
8765
  servers: import("zod").ZodArray<import("zod").ZodObject<{
@@ -7797,6 +8885,85 @@ export declare const sandboxContract: {
7797
8885
  ok: import("zod").ZodLiteral<true>;
7798
8886
  }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
7799
8887
  };
8888
+ keys: {
8889
+ accounts: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
8890
+ provider: import("zod").ZodEnum<{
8891
+ meta: "meta";
8892
+ zai: "zai";
8893
+ }>;
8894
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
8895
+ accounts: import("zod").ZodArray<import("zod").ZodObject<{
8896
+ id: import("zod").ZodString;
8897
+ label: import("zod").ZodString;
8898
+ email: import("zod").ZodOptional<import("zod").ZodString>;
8899
+ organization: import("zod").ZodOptional<import("zod").ZodString>;
8900
+ scope: import("zod").ZodOptional<import("zod").ZodString>;
8901
+ connectedAt: import("zod").ZodNumber;
8902
+ needsReauth: import("zod").ZodOptional<import("zod").ZodBoolean>;
8903
+ detail: import("zod").ZodOptional<import("zod").ZodString>;
8904
+ usage: import("zod").ZodOptional<import("zod").ZodObject<{
8905
+ windows: import("zod").ZodArray<import("zod").ZodObject<{
8906
+ kind: import("zod").ZodString;
8907
+ label: import("zod").ZodOptional<import("zod").ZodString>;
8908
+ utilization: import("zod").ZodNumber;
8909
+ resetsAt: import("zod").ZodOptional<import("zod").ZodNumber>;
8910
+ gates: import("zod").ZodUnion<readonly [import("zod").ZodLiteral<"all">, import("zod").ZodLiteral<"none">, import("zod").ZodObject<{
8911
+ models: import("zod").ZodArray<import("zod").ZodString>;
8912
+ }, import("zod/v4/core").$strip>]>;
8913
+ }, import("zod/v4/core").$strip>>;
8914
+ measuredAt: import("zod").ZodNumber;
8915
+ }, import("zod/v4/core").$strip>>;
8916
+ }, import("zod/v4/core").$strip>>;
8917
+ }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
8918
+ connect: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
8919
+ provider: import("zod").ZodEnum<{
8920
+ meta: "meta";
8921
+ zai: "zai";
8922
+ }>;
8923
+ apiKey: import("zod").ZodString;
8924
+ label: import("zod").ZodOptional<import("zod").ZodString>;
8925
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
8926
+ id: import("zod").ZodString;
8927
+ label: import("zod").ZodString;
8928
+ email: import("zod").ZodOptional<import("zod").ZodString>;
8929
+ organization: import("zod").ZodOptional<import("zod").ZodString>;
8930
+ scope: import("zod").ZodOptional<import("zod").ZodString>;
8931
+ connectedAt: import("zod").ZodNumber;
8932
+ needsReauth: import("zod").ZodOptional<import("zod").ZodBoolean>;
8933
+ detail: import("zod").ZodOptional<import("zod").ZodString>;
8934
+ usage: import("zod").ZodOptional<import("zod").ZodObject<{
8935
+ windows: import("zod").ZodArray<import("zod").ZodObject<{
8936
+ kind: import("zod").ZodString;
8937
+ label: import("zod").ZodOptional<import("zod").ZodString>;
8938
+ utilization: import("zod").ZodNumber;
8939
+ resetsAt: import("zod").ZodOptional<import("zod").ZodNumber>;
8940
+ gates: import("zod").ZodUnion<readonly [import("zod").ZodLiteral<"all">, import("zod").ZodLiteral<"none">, import("zod").ZodObject<{
8941
+ models: import("zod").ZodArray<import("zod").ZodString>;
8942
+ }, import("zod/v4/core").$strip>]>;
8943
+ }, import("zod/v4/core").$strip>>;
8944
+ measuredAt: import("zod").ZodNumber;
8945
+ }, import("zod/v4/core").$strip>>;
8946
+ }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
8947
+ rename: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
8948
+ provider: import("zod").ZodEnum<{
8949
+ meta: "meta";
8950
+ zai: "zai";
8951
+ }>;
8952
+ id: import("zod").ZodString;
8953
+ label: import("zod").ZodString;
8954
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
8955
+ ok: import("zod").ZodLiteral<true>;
8956
+ }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
8957
+ disconnect: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
8958
+ provider: import("zod").ZodEnum<{
8959
+ meta: "meta";
8960
+ zai: "zai";
8961
+ }>;
8962
+ id: import("zod").ZodString;
8963
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
8964
+ ok: import("zod").ZodLiteral<true>;
8965
+ }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
8966
+ };
7800
8967
  providers: {
7801
8968
  models: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
7802
8969
  provider: import("zod").ZodEnum<{
@@ -7806,6 +8973,8 @@ export declare const sandboxContract: {
7806
8973
  gemini: "gemini";
7807
8974
  grok: "grok";
7808
8975
  kimi: "kimi";
8976
+ meta: "meta";
8977
+ zai: "zai";
7809
8978
  }>;
7810
8979
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
7811
8980
  models: import("zod").ZodArray<import("zod").ZodObject<{
@@ -7947,6 +9116,7 @@ export declare const sandboxContract: {
7947
9116
  }>;
7948
9117
  detail: import("zod").ZodString;
7949
9118
  suggestion: import("zod").ZodOptional<import("zod").ZodString>;
9119
+ fix: import("zod").ZodOptional<import("zod").ZodString>;
7950
9120
  }, import("zod/v4/core").$strip>>;
7951
9121
  }, import("zod/v4/core").$strip>>, Record<never, never>, Record<never, never>>;
7952
9122
  session: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
@@ -8017,6 +9187,10 @@ export declare const sandboxContract: {
8017
9187
  title?: string | undefined;
8018
9188
  status: "awaiting" | "conflict" | "dismissing" | "error" | "idle" | "interrupted" | "landed" | "ready" | "resuming" | "running" | "stopped" | "stopping";
8019
9189
  failure?: string | undefined;
9190
+ failureCode?: string | undefined;
9191
+ limitResetsAt?: number | undefined;
9192
+ limitHeld?: boolean | undefined;
9193
+ limitScheduled?: boolean | undefined;
8020
9194
  provider: string;
8021
9195
  harness: "claude-code" | "native";
8022
9196
  runner?: string | undefined;
@@ -8030,6 +9204,7 @@ export declare const sandboxContract: {
8030
9204
  branch?: string | undefined;
8031
9205
  autoLand?: boolean | undefined;
8032
9206
  resumeAfterOutage?: boolean | undefined;
9207
+ resumeAfterLimit?: boolean | undefined;
8033
9208
  landRequested?: {
8034
9209
  email: string;
8035
9210
  name?: string | undefined;
@@ -8124,19 +9299,33 @@ export declare const sandboxContract: {
8124
9299
  archivedAt?: number | undefined;
8125
9300
  }[];
8126
9301
  rev: number;
8127
- }, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
8128
- kind: "heartbeat";
8129
9302
  } | {
8130
- ready: boolean;
8131
- startedAt: number;
8132
- steps: {
8133
- key: string;
8134
- label: string;
8135
- state: "done" | "failed" | "pending" | "running";
8136
- ms?: number | undefined;
8137
- }[];
8138
- kind: "boot";
9303
+ kind: "accountUsage";
9304
+ provider: string;
9305
+ account: string;
9306
+ usage?: {
9307
+ windows: {
9308
+ kind: string;
9309
+ label?: string | undefined;
9310
+ utilization: number;
9311
+ resetsAt?: number | undefined;
9312
+ gates: "all" | "none" | {
9313
+ models: string[];
9314
+ };
9315
+ }[];
9316
+ measuredAt: number;
9317
+ } | undefined;
8139
9318
  } | {
9319
+ kind: "providerRefusal";
9320
+ provider: string;
9321
+ refusal?: {
9322
+ at: number;
9323
+ kind: "auth" | "entitlement" | "limit";
9324
+ message: string;
9325
+ account?: string | undefined;
9326
+ model?: string | undefined;
9327
+ } | undefined;
9328
+ }, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
8140
9329
  kind: "hello";
8141
9330
  workspaceId: string;
8142
9331
  routes?: string[] | undefined;
@@ -8153,11 +9342,23 @@ export declare const sandboxContract: {
8153
9342
  }[];
8154
9343
  } | undefined;
8155
9344
  } | {
8156
- kind: "reposChanged";
8157
- repos: string[];
9345
+ kind: "heartbeat";
9346
+ } | {
9347
+ ready: boolean;
9348
+ startedAt: number;
9349
+ steps: {
9350
+ key: string;
9351
+ label: string;
9352
+ state: "done" | "failed" | "pending" | "running";
9353
+ ms?: number | undefined;
9354
+ }[];
9355
+ kind: "boot";
8158
9356
  } | {
8159
9357
  kind: "workspaceChanged";
8160
9358
  paths: string[];
9359
+ } | {
9360
+ kind: "reposChanged";
9361
+ repos: string[];
8161
9362
  } | {
8162
9363
  kind: "refsChanged";
8163
9364
  repos: string[];
@@ -8185,6 +9386,10 @@ export declare const sandboxContract: {
8185
9386
  title?: string | undefined;
8186
9387
  status: "awaiting" | "conflict" | "dismissing" | "error" | "idle" | "interrupted" | "landed" | "ready" | "resuming" | "running" | "stopped" | "stopping";
8187
9388
  failure?: string | undefined;
9389
+ failureCode?: string | undefined;
9390
+ limitResetsAt?: number | undefined;
9391
+ limitHeld?: boolean | undefined;
9392
+ limitScheduled?: boolean | undefined;
8188
9393
  provider: string;
8189
9394
  harness: "claude-code" | "native";
8190
9395
  runner?: string | undefined;
@@ -8198,6 +9403,7 @@ export declare const sandboxContract: {
8198
9403
  branch?: string | undefined;
8199
9404
  autoLand?: boolean | undefined;
8200
9405
  resumeAfterOutage?: boolean | undefined;
9406
+ resumeAfterLimit?: boolean | undefined;
8201
9407
  landRequested?: {
8202
9408
  email: string;
8203
9409
  name?: string | undefined;
@@ -8292,6 +9498,32 @@ export declare const sandboxContract: {
8292
9498
  archivedAt?: number | undefined;
8293
9499
  }[];
8294
9500
  rev: number;
9501
+ } | {
9502
+ kind: "accountUsage";
9503
+ provider: string;
9504
+ account: string;
9505
+ usage?: {
9506
+ windows: {
9507
+ kind: string;
9508
+ label?: string | undefined;
9509
+ utilization: number;
9510
+ resetsAt?: number | undefined;
9511
+ gates: "all" | "none" | {
9512
+ models: string[];
9513
+ };
9514
+ }[];
9515
+ measuredAt: number;
9516
+ } | undefined;
9517
+ } | {
9518
+ kind: "providerRefusal";
9519
+ provider: string;
9520
+ refusal?: {
9521
+ at: number;
9522
+ kind: "auth" | "entitlement" | "limit";
9523
+ message: string;
9524
+ account?: string | undefined;
9525
+ model?: string | undefined;
9526
+ } | undefined;
8295
9527
  }, unknown, void>>, Record<never, never>, Record<never, never>>;
8296
9528
  presence: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
8297
9529
  clientId: import("zod").ZodString;
@@ -8434,16 +9666,226 @@ export declare const sandboxContract: {
8434
9666
  sentAt: import("zod").ZodOptional<import("zod").ZodNumber>;
8435
9667
  attachments: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
8436
9668
  checkpointId: import("zod").ZodOptional<import("zod").ZodString>;
9669
+ rewindIndex: import("zod").ZodOptional<import("zod").ZodNumber>;
8437
9670
  thinking: import("zod").ZodOptional<import("zod").ZodString>;
8438
- tools: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodType<import("./events.js").RestoredToolCall, unknown, import("zod/v4/core").$ZodTypeInternals<import("./events.js").RestoredToolCall, unknown>>>>;
9671
+ tools: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodType<import("./events.js").TranscriptTool, unknown, import("zod/v4/core").$ZodTypeInternals<import("./events.js").TranscriptTool, unknown>>>>;
9672
+ todos: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
9673
+ content: import("zod").ZodString;
9674
+ status: import("zod").ZodEnum<{
9675
+ completed: "completed";
9676
+ in_progress: "in_progress";
9677
+ pending: "pending";
9678
+ }>;
9679
+ activeForm: import("zod").ZodOptional<import("zod").ZodString>;
9680
+ }, import("zod/v4/core").$strip>>>;
9681
+ usage: import("zod").ZodOptional<import("zod").ZodObject<{
9682
+ costUsd: import("zod").ZodOptional<import("zod").ZodNumber>;
9683
+ inputTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
9684
+ outputTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
9685
+ durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
9686
+ numTurns: import("zod").ZodOptional<import("zod").ZodNumber>;
9687
+ }, import("zod/v4/core").$strip>>;
8439
9688
  notes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
8440
9689
  title: import("zod").ZodString;
8441
9690
  text: import("zod").ZodString;
8442
9691
  }, import("zod/v4/core").$strip>>>;
8443
9692
  placed: import("zod").ZodOptional<import("zod").ZodBoolean>;
8444
9693
  noticeAction: import("zod").ZodOptional<import("zod").ZodEnum<{
9694
+ depsInstall: "depsInstall";
9695
+ landHold: "landHold";
9696
+ outageOptOut: "outageOptOut";
8445
9697
  tierHold: "tierHold";
8446
9698
  }>>;
9699
+ noticeWait: import("zod").ZodOptional<import("zod").ZodEnum<{
9700
+ credentialRenewal: "credentialRenewal";
9701
+ }>>;
9702
+ plan: import("zod").ZodOptional<import("zod").ZodObject<{
9703
+ requestId: import("zod").ZodString;
9704
+ text: import("zod").ZodString;
9705
+ document: import("zod").ZodOptional<import("zod").ZodObject<{
9706
+ path: import("zod").ZodString;
9707
+ title: import("zod").ZodString;
9708
+ markdown: import("zod").ZodString;
9709
+ truncated: import("zod").ZodOptional<import("zod").ZodBoolean>;
9710
+ plan: import("zod").ZodOptional<import("zod").ZodBoolean>;
9711
+ }, import("zod/v4/core").$strip>>;
9712
+ status: import("zod").ZodEnum<{
9713
+ approved: "approved";
9714
+ cancelled: "cancelled";
9715
+ pending: "pending";
9716
+ rejected: "rejected";
9717
+ }>;
9718
+ }, import("zod/v4/core").$strip>>;
9719
+ question: import("zod").ZodOptional<import("zod").ZodObject<{
9720
+ requestId: import("zod").ZodString;
9721
+ questions: import("zod").ZodArray<import("zod").ZodObject<{
9722
+ question: import("zod").ZodString;
9723
+ header: import("zod").ZodString;
9724
+ multiSelect: import("zod").ZodBoolean;
9725
+ options: import("zod").ZodArray<import("zod").ZodObject<{
9726
+ label: import("zod").ZodString;
9727
+ description: import("zod").ZodString;
9728
+ preview: import("zod").ZodOptional<import("zod").ZodString>;
9729
+ }, import("zod/v4/core").$strip>>;
9730
+ }, import("zod/v4/core").$strip>>;
9731
+ document: import("zod").ZodOptional<import("zod").ZodObject<{
9732
+ path: import("zod").ZodString;
9733
+ title: import("zod").ZodString;
9734
+ markdown: import("zod").ZodString;
9735
+ truncated: import("zod").ZodOptional<import("zod").ZodBoolean>;
9736
+ plan: import("zod").ZodOptional<import("zod").ZodBoolean>;
9737
+ }, import("zod/v4/core").$strip>>;
9738
+ status: import("zod").ZodEnum<{
9739
+ answered: "answered";
9740
+ cancelled: "cancelled";
9741
+ pending: "pending";
9742
+ }>;
9743
+ answers: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>>>;
9744
+ }, import("zod/v4/core").$strip>>;
9745
+ permission: import("zod").ZodOptional<import("zod").ZodObject<{
9746
+ toolName: import("zod").ZodString;
9747
+ title: import("zod").ZodOptional<import("zod").ZodString>;
9748
+ displayName: import("zod").ZodOptional<import("zod").ZodString>;
9749
+ description: import("zod").ZodOptional<import("zod").ZodString>;
9750
+ reason: import("zod").ZodOptional<import("zod").ZodString>;
9751
+ path: import("zod").ZodOptional<import("zod").ZodString>;
9752
+ alwaysLabel: import("zod").ZodOptional<import("zod").ZodString>;
9753
+ program: import("zod").ZodOptional<import("zod").ZodObject<{
9754
+ text: import("zod").ZodString;
9755
+ language: import("zod").ZodEnum<{
9756
+ bash: "bash";
9757
+ javascript: "javascript";
9758
+ }>;
9759
+ truncated: import("zod").ZodBoolean;
9760
+ spans: import("zod").ZodArray<import("zod").ZodObject<{
9761
+ start: import("zod").ZodNumber;
9762
+ end: import("zod").ZodNumber;
9763
+ }, import("zod/v4/core").$strip>>;
9764
+ }, import("zod/v4/core").$strip>>;
9765
+ explain: import("zod").ZodOptional<import("zod").ZodString>;
9766
+ requestId: import("zod").ZodString;
9767
+ status: import("zod").ZodEnum<{
9768
+ allowed: "allowed";
9769
+ always: "always";
9770
+ cancelled: "cancelled";
9771
+ denied: "denied";
9772
+ pending: "pending";
9773
+ }>;
9774
+ }, import("zod/v4/core").$strip>>;
9775
+ browserHelp: import("zod").ZodOptional<import("zod").ZodObject<{
9776
+ requestId: import("zod").ZodString;
9777
+ session: import("zod").ZodString;
9778
+ account: import("zod").ZodString;
9779
+ message: import("zod").ZodString;
9780
+ status: import("zod").ZodEnum<{
9781
+ cancelled: "cancelled";
9782
+ declined: "declined";
9783
+ helped: "helped";
9784
+ pending: "pending";
9785
+ }>;
9786
+ }, import("zod/v4/core").$strip>>;
9787
+ terminalHelp: import("zod").ZodOptional<import("zod").ZodObject<{
9788
+ requestId: import("zod").ZodString;
9789
+ session: import("zod").ZodString;
9790
+ message: import("zod").ZodString;
9791
+ status: import("zod").ZodEnum<{
9792
+ cancelled: "cancelled";
9793
+ declined: "declined";
9794
+ helped: "helped";
9795
+ pending: "pending";
9796
+ }>;
9797
+ }, import("zod/v4/core").$strip>>;
9798
+ serviceOffer: import("zod").ZodOptional<import("zod").ZodObject<{
9799
+ requestId: import("zod").ZodString;
9800
+ offer: import("zod").ZodObject<{
9801
+ slug: import("zod").ZodString;
9802
+ name: import("zod").ZodString;
9803
+ publisher: import("zod").ZodString;
9804
+ description: import("zod").ZodString;
9805
+ creditsPerRun: import("zod").ZodNumber;
9806
+ probation: import("zod").ZodOptional<import("zod").ZodBoolean>;
9807
+ credits: import("zod").ZodOptional<import("zod").ZodObject<{
9808
+ allowance: import("zod").ZodNumber;
9809
+ remaining: import("zod").ZodNumber;
9810
+ resetsAt: import("zod").ZodString;
9811
+ }, import("zod/v4/core").$strip>>;
9812
+ request: import("zod").ZodString;
9813
+ why: import("zod").ZodOptional<import("zod").ZodString>;
9814
+ }, import("zod/v4/core").$strip>;
9815
+ status: import("zod").ZodEnum<{
9816
+ approved: "approved";
9817
+ cancelled: "cancelled";
9818
+ pending: "pending";
9819
+ skipped: "skipped";
9820
+ }>;
9821
+ events: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
9822
+ event: import("zod").ZodLiteral<"status">;
9823
+ text: import("zod").ZodString;
9824
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
9825
+ event: import("zod").ZodLiteral<"result">;
9826
+ data: import("zod").ZodUnknown;
9827
+ }, import("zod/v4/core").$strip>], "event">>>;
9828
+ receipt: import("zod").ZodOptional<import("zod").ZodObject<{
9829
+ outcome: import("zod").ZodEnum<{
9830
+ ok: "ok";
9831
+ refunded: "refunded";
9832
+ refused: "refused";
9833
+ }>;
9834
+ credits: import("zod").ZodNumber;
9835
+ remaining: import("zod").ZodOptional<import("zod").ZodNumber>;
9836
+ }, import("zod/v4/core").$strip>>;
9837
+ }, import("zod/v4/core").$strip>>;
9838
+ capabilityOffer: import("zod").ZodOptional<import("zod").ZodObject<{
9839
+ requestId: import("zod").ZodString;
9840
+ offer: import("zod").ZodObject<{
9841
+ card: import("zod").ZodString;
9842
+ name: import("zod").ZodString;
9843
+ why: import("zod").ZodOptional<import("zod").ZodString>;
9844
+ }, import("zod/v4/core").$strip>;
9845
+ status: import("zod").ZodEnum<{
9846
+ cancelled: "cancelled";
9847
+ connecting: "connecting";
9848
+ pending: "pending";
9849
+ skipped: "skipped";
9850
+ }>;
9851
+ outcome: import("zod").ZodOptional<import("zod").ZodObject<{
9852
+ outcome: import("zod").ZodEnum<{
9853
+ connected: "connected";
9854
+ unfinished: "unfinished";
9855
+ }>;
9856
+ id: import("zod").ZodOptional<import("zod").ZodString>;
9857
+ }, import("zod/v4/core").$strip>>;
9858
+ }, import("zod/v4/core").$strip>>;
9859
+ paymentOffer: import("zod").ZodOptional<import("zod").ZodObject<{
9860
+ requestId: import("zod").ZodString;
9861
+ offer: import("zod").ZodObject<{
9862
+ url: import("zod").ZodString;
9863
+ description: import("zod").ZodOptional<import("zod").ZodString>;
9864
+ payTo: import("zod").ZodString;
9865
+ network: import("zod").ZodString;
9866
+ asset: import("zod").ZodString;
9867
+ assetName: import("zod").ZodString;
9868
+ amountUsd: import("zod").ZodString;
9869
+ spentTodayUsd: import("zod").ZodString;
9870
+ dailyCapUsd: import("zod").ZodString;
9871
+ why: import("zod").ZodOptional<import("zod").ZodString>;
9872
+ }, import("zod/v4/core").$strip>;
9873
+ status: import("zod").ZodEnum<{
9874
+ approved: "approved";
9875
+ cancelled: "cancelled";
9876
+ pending: "pending";
9877
+ skipped: "skipped";
9878
+ }>;
9879
+ receipt: import("zod").ZodOptional<import("zod").ZodObject<{
9880
+ outcome: import("zod").ZodEnum<{
9881
+ failed: "failed";
9882
+ paid: "paid";
9883
+ }>;
9884
+ amountUsd: import("zod").ZodString;
9885
+ transaction: import("zod").ZodOptional<import("zod").ZodString>;
9886
+ network: import("zod").ZodOptional<import("zod").ZodString>;
9887
+ }, import("zod/v4/core").$strip>>;
9888
+ }, import("zod/v4/core").$strip>>;
8447
9889
  }, import("zod/v4/core").$strip>>;
8448
9890
  }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
8449
9891
  manageMachineSandbox: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
@@ -8492,6 +9934,9 @@ export declare const sandboxContract: {
8492
9934
  command: import("zod").ZodEnum<{
8493
9935
  "mirror-off": "mirror-off";
8494
9936
  "mirror-on": "mirror-on";
9937
+ "sync-pause": "sync-pause";
9938
+ "sync-resume": "sync-resume";
9939
+ "sync-unpair": "sync-unpair";
8495
9940
  }>;
8496
9941
  sandboxId: import("zod").ZodOptional<import("zod").ZodString>;
8497
9942
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -8511,11 +9956,18 @@ export declare const sandboxContract: {
8511
9956
  label: import("zod").ZodOptional<import("zod").ZodString>;
8512
9957
  utilization: import("zod").ZodNumber;
8513
9958
  resetsAt: import("zod").ZodOptional<import("zod").ZodNumber>;
9959
+ gates: import("zod").ZodUnion<readonly [import("zod").ZodLiteral<"all">, import("zod").ZodLiteral<"none">, import("zod").ZodObject<{
9960
+ models: import("zod").ZodArray<import("zod").ZodString>;
9961
+ }, import("zod/v4/core").$strip>]>;
8514
9962
  }, import("zod/v4/core").$strip>>;
8515
9963
  measuredAt: import("zod").ZodNumber;
8516
9964
  }, import("zod/v4/core").$strip>>;
9965
+ cooling: import("zod").ZodOptional<import("zod").ZodObject<{
9966
+ until: import("zod").ZodOptional<import("zod").ZodNumber>;
9967
+ reason: import("zod").ZodOptional<import("zod").ZodString>;
9968
+ }, import("zod/v4/core").$strip>>;
8517
9969
  }, import("zod/v4/core").$strip>>;
8518
- grok: import("zod").ZodArray<import("zod").ZodObject<{
9970
+ gemini: import("zod").ZodArray<import("zod").ZodObject<{
8519
9971
  name: import("zod").ZodString;
8520
9972
  label: import("zod").ZodString;
8521
9973
  usage: import("zod").ZodOptional<import("zod").ZodObject<{
@@ -8524,11 +9976,18 @@ export declare const sandboxContract: {
8524
9976
  label: import("zod").ZodOptional<import("zod").ZodString>;
8525
9977
  utilization: import("zod").ZodNumber;
8526
9978
  resetsAt: import("zod").ZodOptional<import("zod").ZodNumber>;
9979
+ gates: import("zod").ZodUnion<readonly [import("zod").ZodLiteral<"all">, import("zod").ZodLiteral<"none">, import("zod").ZodObject<{
9980
+ models: import("zod").ZodArray<import("zod").ZodString>;
9981
+ }, import("zod/v4/core").$strip>]>;
8527
9982
  }, import("zod/v4/core").$strip>>;
8528
9983
  measuredAt: import("zod").ZodNumber;
8529
9984
  }, import("zod/v4/core").$strip>>;
9985
+ cooling: import("zod").ZodOptional<import("zod").ZodObject<{
9986
+ until: import("zod").ZodOptional<import("zod").ZodNumber>;
9987
+ reason: import("zod").ZodOptional<import("zod").ZodString>;
9988
+ }, import("zod/v4/core").$strip>>;
8530
9989
  }, import("zod/v4/core").$strip>>;
8531
- kimi: import("zod").ZodArray<import("zod").ZodObject<{
9990
+ grok: import("zod").ZodArray<import("zod").ZodObject<{
8532
9991
  name: import("zod").ZodString;
8533
9992
  label: import("zod").ZodString;
8534
9993
  usage: import("zod").ZodOptional<import("zod").ZodObject<{
@@ -8537,11 +9996,18 @@ export declare const sandboxContract: {
8537
9996
  label: import("zod").ZodOptional<import("zod").ZodString>;
8538
9997
  utilization: import("zod").ZodNumber;
8539
9998
  resetsAt: import("zod").ZodOptional<import("zod").ZodNumber>;
9999
+ gates: import("zod").ZodUnion<readonly [import("zod").ZodLiteral<"all">, import("zod").ZodLiteral<"none">, import("zod").ZodObject<{
10000
+ models: import("zod").ZodArray<import("zod").ZodString>;
10001
+ }, import("zod/v4/core").$strip>]>;
8540
10002
  }, import("zod/v4/core").$strip>>;
8541
10003
  measuredAt: import("zod").ZodNumber;
8542
10004
  }, import("zod/v4/core").$strip>>;
10005
+ cooling: import("zod").ZodOptional<import("zod").ZodObject<{
10006
+ until: import("zod").ZodOptional<import("zod").ZodNumber>;
10007
+ reason: import("zod").ZodOptional<import("zod").ZodString>;
10008
+ }, import("zod/v4/core").$strip>>;
8543
10009
  }, import("zod/v4/core").$strip>>;
8544
- gemini: import("zod").ZodArray<import("zod").ZodObject<{
10010
+ kimi: import("zod").ZodArray<import("zod").ZodObject<{
8545
10011
  name: import("zod").ZodString;
8546
10012
  label: import("zod").ZodString;
8547
10013
  usage: import("zod").ZodOptional<import("zod").ZodObject<{
@@ -8550,9 +10016,16 @@ export declare const sandboxContract: {
8550
10016
  label: import("zod").ZodOptional<import("zod").ZodString>;
8551
10017
  utilization: import("zod").ZodNumber;
8552
10018
  resetsAt: import("zod").ZodOptional<import("zod").ZodNumber>;
10019
+ gates: import("zod").ZodUnion<readonly [import("zod").ZodLiteral<"all">, import("zod").ZodLiteral<"none">, import("zod").ZodObject<{
10020
+ models: import("zod").ZodArray<import("zod").ZodString>;
10021
+ }, import("zod/v4/core").$strip>]>;
8553
10022
  }, import("zod/v4/core").$strip>>;
8554
10023
  measuredAt: import("zod").ZodNumber;
8555
10024
  }, import("zod/v4/core").$strip>>;
10025
+ cooling: import("zod").ZodOptional<import("zod").ZodObject<{
10026
+ until: import("zod").ZodOptional<import("zod").ZodNumber>;
10027
+ reason: import("zod").ZodOptional<import("zod").ZodString>;
10028
+ }, import("zod/v4/core").$strip>>;
8556
10029
  }, import("zod/v4/core").$strip>>;
8557
10030
  }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
8558
10031
  connect: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
@@ -8616,6 +10089,11 @@ export declare const sandboxContract: {
8616
10089
  durationMs: import("zod").ZodNumber;
8617
10090
  }, import("zod/v4/core").$strip>>;
8618
10091
  }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
10092
+ refreshPlanLimits: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
10093
+ force: import("zod").ZodDefault<import("zod").ZodBoolean>;
10094
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
10095
+ ok: import("zod").ZodLiteral<true>;
10096
+ }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
8619
10097
  };
8620
10098
  vpn: {
8621
10099
  list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{