@intentic/sandbox-contract 1.311.0 → 1.313.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 (444) hide show
  1. package/README.md +32 -4
  2. package/dist/chores/chores.js +6 -6
  3. package/dist/chores/chores.js.map +1 -1
  4. package/dist/chores/index.d.ts +0 -1
  5. package/dist/chores/index.d.ts.map +1 -1
  6. package/dist/chores/index.js +0 -1
  7. package/dist/chores/index.js.map +1 -1
  8. package/dist/chores/prompt.d.ts.map +1 -1
  9. package/dist/chores/prompt.js +3 -2
  10. package/dist/chores/prompt.js.map +1 -1
  11. package/dist/contracts/accounts.contract.d.ts +69 -0
  12. package/dist/contracts/accounts.contract.d.ts.map +1 -1
  13. package/dist/contracts/agent.contract.d.ts +436 -0
  14. package/dist/contracts/agent.contract.d.ts.map +1 -1
  15. package/dist/contracts/agent.contract.js +11 -1
  16. package/dist/contracts/agent.contract.js.map +1 -1
  17. package/dist/contracts/agents.contract.d.ts +718 -90
  18. package/dist/contracts/agents.contract.d.ts.map +1 -1
  19. package/dist/contracts/agents.contract.js +30 -2
  20. package/dist/contracts/agents.contract.js.map +1 -1
  21. package/dist/contracts/capabilities.contract.js +1 -1
  22. package/dist/contracts/capabilities.contract.js.map +1 -1
  23. package/dist/contracts/device.contract.d.ts +20 -4
  24. package/dist/contracts/device.contract.d.ts.map +1 -1
  25. package/dist/contracts/device.contract.js +1 -1
  26. package/dist/contracts/device.contract.js.map +1 -1
  27. package/dist/contracts/extensions.contract.d.ts +13 -0
  28. package/dist/contracts/extensions.contract.d.ts.map +1 -1
  29. package/dist/contracts/git.contract.d.ts +2 -0
  30. package/dist/contracts/git.contract.d.ts.map +1 -1
  31. package/dist/contracts/offload.contract.d.ts +107 -0
  32. package/dist/contracts/offload.contract.d.ts.map +1 -0
  33. package/dist/contracts/offload.contract.js +53 -0
  34. package/dist/contracts/offload.contract.js.map +1 -0
  35. package/dist/contracts/personas.contract.d.ts +2 -0
  36. package/dist/contracts/personas.contract.d.ts.map +1 -1
  37. package/dist/contracts/ports.contract.d.ts +5 -0
  38. package/dist/contracts/ports.contract.d.ts.map +1 -1
  39. package/dist/contracts/runner.contract.d.ts +204 -0
  40. package/dist/contracts/runner.contract.d.ts.map +1 -1
  41. package/dist/contracts/runner.contract.js +3 -1
  42. package/dist/contracts/runner.contract.js.map +1 -1
  43. package/dist/contracts/secrets.contract.d.ts.map +1 -1
  44. package/dist/contracts/secrets.contract.js +1 -0
  45. package/dist/contracts/secrets.contract.js.map +1 -1
  46. package/dist/contracts/sessions.contract.d.ts +59 -0
  47. package/dist/contracts/sessions.contract.d.ts.map +1 -1
  48. package/dist/contracts/settings.contract.d.ts +20 -8
  49. package/dist/contracts/settings.contract.d.ts.map +1 -1
  50. package/dist/contracts/settings.contract.js +2 -2
  51. package/dist/contracts/settings.contract.js.map +1 -1
  52. package/dist/contracts/system.contract.d.ts +230 -15
  53. package/dist/contracts/system.contract.d.ts.map +1 -1
  54. package/dist/contracts/translator.contract.d.ts +88 -0
  55. package/dist/contracts/translator.contract.d.ts.map +1 -1
  56. package/dist/contracts/workspace.contract.d.ts +217 -0
  57. package/dist/contracts/workspace.contract.d.ts.map +1 -1
  58. package/dist/contracts/workspace.contract.js +40 -3
  59. package/dist/contracts/workspace.contract.js.map +1 -1
  60. package/dist/documents/conversions.d.ts +81 -0
  61. package/dist/documents/conversions.d.ts.map +1 -0
  62. package/dist/documents/conversions.js +213 -0
  63. package/dist/documents/conversions.js.map +1 -0
  64. package/dist/documents/index.d.ts +4 -0
  65. package/dist/documents/index.d.ts.map +1 -0
  66. package/dist/documents/index.js +4 -0
  67. package/dist/documents/index.js.map +1 -0
  68. package/dist/documents/passthrough.d.ts +13 -0
  69. package/dist/documents/passthrough.d.ts.map +1 -0
  70. package/dist/documents/passthrough.js +101 -0
  71. package/dist/documents/passthrough.js.map +1 -0
  72. package/dist/documents/read.d.ts +24 -0
  73. package/dist/documents/read.d.ts.map +1 -0
  74. package/dist/documents/read.js +81 -0
  75. package/dist/documents/read.js.map +1 -0
  76. package/dist/events/agent-events.d.ts +235 -0
  77. package/dist/events/agent-events.d.ts.map +1 -1
  78. package/dist/events/agent-events.js +3 -0
  79. package/dist/events/agent-events.js.map +1 -1
  80. package/dist/events/child-run.d.ts +9 -0
  81. package/dist/events/child-run.d.ts.map +1 -0
  82. package/dist/events/child-run.js +41 -0
  83. package/dist/events/child-run.js.map +1 -0
  84. package/dist/events/errands.d.ts +5 -0
  85. package/dist/events/errands.d.ts.map +1 -0
  86. package/dist/events/errands.js +19 -0
  87. package/dist/events/errands.js.map +1 -0
  88. package/dist/events/land-breakage.d.ts +3 -0
  89. package/dist/events/land-breakage.d.ts.map +1 -1
  90. package/dist/events/land-breakage.js +3 -0
  91. package/dist/events/land-breakage.js.map +1 -1
  92. package/dist/events/land-conflict.d.ts +3 -0
  93. package/dist/events/land-conflict.d.ts.map +1 -0
  94. package/dist/events/land-conflict.js +4 -0
  95. package/dist/events/land-conflict.js.map +1 -0
  96. package/dist/events/requests.d.ts +152 -0
  97. package/dist/events/requests.d.ts.map +1 -1
  98. package/dist/events/requests.js +26 -1
  99. package/dist/events/requests.js.map +1 -1
  100. package/dist/events/system-events.d.ts +74 -12
  101. package/dist/events/system-events.d.ts.map +1 -1
  102. package/dist/events/system-events.js +3 -1
  103. package/dist/events/system-events.js.map +1 -1
  104. package/dist/events/transcript.d.ts +387 -0
  105. package/dist/events/transcript.d.ts.map +1 -1
  106. package/dist/events/transcript.js +3 -0
  107. package/dist/events/transcript.js.map +1 -1
  108. package/dist/events/verify-nudge.d.ts.map +1 -1
  109. package/dist/events/verify-nudge.js.map +1 -1
  110. package/dist/front/browser-wire.d.ts +6 -0
  111. package/dist/front/browser-wire.d.ts.map +1 -0
  112. package/dist/front/browser-wire.js +4 -0
  113. package/dist/front/browser-wire.js.map +1 -0
  114. package/dist/front/front-wire.d.ts +6 -0
  115. package/dist/front/front-wire.d.ts.map +1 -0
  116. package/dist/front/front-wire.js +5 -0
  117. package/dist/front/front-wire.js.map +1 -0
  118. package/dist/front/generated/browser-wire.d.ts +19 -0
  119. package/dist/front/generated/browser-wire.d.ts.map +1 -0
  120. package/dist/front/generated/browser-wire.js +2 -0
  121. package/dist/front/generated/browser-wire.js.map +1 -0
  122. package/dist/front/generated/wire.d.ts +70 -1
  123. package/dist/front/generated/wire.d.ts.map +1 -1
  124. package/dist/ids/conversation-ids.d.ts +3 -0
  125. package/dist/ids/conversation-ids.d.ts.map +1 -1
  126. package/dist/ids/conversation-ids.js +4 -2
  127. package/dist/ids/conversation-ids.js.map +1 -1
  128. package/dist/ids/session-names.d.ts +3 -0
  129. package/dist/ids/session-names.d.ts.map +1 -1
  130. package/dist/ids/session-names.js +3 -0
  131. package/dist/ids/session-names.js.map +1 -1
  132. package/dist/index.d.ts +2052 -190
  133. package/dist/index.d.ts.map +1 -1
  134. package/dist/index.js +15 -1
  135. package/dist/index.js.map +1 -1
  136. package/dist/models/agent-catalog.d.ts.map +1 -1
  137. package/dist/models/agent-catalog.js +4 -6
  138. package/dist/models/agent-catalog.js.map +1 -1
  139. package/dist/models/agent-runtimes.d.ts +2 -1
  140. package/dist/models/agent-runtimes.d.ts.map +1 -1
  141. package/dist/models/agent-runtimes.js +7 -1
  142. package/dist/models/agent-runtimes.js.map +1 -1
  143. package/dist/models/plan-pools.d.ts +22 -1
  144. package/dist/models/plan-pools.d.ts.map +1 -1
  145. package/dist/models/plan-pools.js +86 -0
  146. package/dist/models/plan-pools.js.map +1 -1
  147. package/dist/policy/request-status.d.ts +1 -1
  148. package/dist/policy/request-status.d.ts.map +1 -1
  149. package/dist/policy/request-status.js +4 -11
  150. package/dist/policy/request-status.js.map +1 -1
  151. package/dist/policy/reserved-servers.d.ts.map +1 -1
  152. package/dist/policy/reserved-servers.js +2 -1
  153. package/dist/policy/reserved-servers.js.map +1 -1
  154. package/dist/policy/turned-away.d.ts.map +1 -1
  155. package/dist/policy/turned-away.js +1 -0
  156. package/dist/policy/turned-away.js.map +1 -1
  157. package/dist/protocol/container-requirements.d.ts +0 -1
  158. package/dist/protocol/container-requirements.d.ts.map +1 -1
  159. package/dist/protocol/container-requirements.js +1 -2
  160. package/dist/protocol/container-requirements.js.map +1 -1
  161. package/dist/protocol/edge-verdict.d.ts +2 -1
  162. package/dist/protocol/edge-verdict.d.ts.map +1 -1
  163. package/dist/protocol/edge-verdict.js +1 -1
  164. package/dist/protocol/edge-verdict.js.map +1 -1
  165. package/dist/protocol/ingress-contract.d.ts +1 -12
  166. package/dist/protocol/ingress-contract.d.ts.map +1 -1
  167. package/dist/protocol/ingress-contract.js +1 -1
  168. package/dist/protocol/ingress-contract.js.map +1 -1
  169. package/dist/protocol/raw-routes.d.ts +36 -26
  170. package/dist/protocol/raw-routes.d.ts.map +1 -1
  171. package/dist/protocol/raw-routes.js +17 -23
  172. package/dist/protocol/raw-routes.js.map +1 -1
  173. package/dist/protocol/route-meta.d.ts +22 -0
  174. package/dist/protocol/route-meta.d.ts.map +1 -1
  175. package/dist/protocol/route-meta.js +16 -0
  176. package/dist/protocol/route-meta.js.map +1 -1
  177. package/dist/protocol/runner-protocol.d.ts +34 -0
  178. package/dist/protocol/runner-protocol.d.ts.map +1 -1
  179. package/dist/protocol/runner-protocol.js +33 -0
  180. package/dist/protocol/runner-protocol.js.map +1 -1
  181. package/dist/protocol/tunnel-bulk.d.ts +2 -0
  182. package/dist/protocol/tunnel-bulk.d.ts.map +1 -0
  183. package/dist/protocol/tunnel-bulk.js +3 -0
  184. package/dist/protocol/tunnel-bulk.js.map +1 -0
  185. package/dist/protocol/x402.d.ts +17 -0
  186. package/dist/protocol/x402.d.ts.map +1 -0
  187. package/dist/protocol/x402.js +37 -0
  188. package/dist/protocol/x402.js.map +1 -0
  189. package/dist/schemas/activity.d.ts.map +1 -1
  190. package/dist/schemas/activity.js.map +1 -1
  191. package/dist/schemas/agent.d.ts +25 -0
  192. package/dist/schemas/agent.d.ts.map +1 -1
  193. package/dist/schemas/agent.js +14 -2
  194. package/dist/schemas/agent.js.map +1 -1
  195. package/dist/schemas/agents.d.ts +90 -18
  196. package/dist/schemas/agents.d.ts.map +1 -1
  197. package/dist/schemas/agents.js +49 -5
  198. package/dist/schemas/agents.js.map +1 -1
  199. package/dist/schemas/automations.d.ts +23 -6
  200. package/dist/schemas/automations.d.ts.map +1 -1
  201. package/dist/schemas/automations.js.map +1 -1
  202. package/dist/schemas/devices.d.ts +134 -7
  203. package/dist/schemas/devices.d.ts.map +1 -1
  204. package/dist/schemas/devices.js +43 -18
  205. package/dist/schemas/devices.js.map +1 -1
  206. package/dist/schemas/extension-updates.d.ts +26 -0
  207. package/dist/schemas/extension-updates.d.ts.map +1 -1
  208. package/dist/schemas/extension-updates.js +4 -0
  209. package/dist/schemas/extension-updates.js.map +1 -1
  210. package/dist/schemas/git/git.d.ts +19 -0
  211. package/dist/schemas/git/git.d.ts.map +1 -1
  212. package/dist/schemas/git/git.js +1 -0
  213. package/dist/schemas/git/git.js.map +1 -1
  214. package/dist/schemas/hosts.d.ts +35 -3
  215. package/dist/schemas/hosts.d.ts.map +1 -1
  216. package/dist/schemas/hosts.js +22 -6
  217. package/dist/schemas/hosts.js.map +1 -1
  218. package/dist/schemas/keep-warm.d.ts +2 -12
  219. package/dist/schemas/keep-warm.d.ts.map +1 -1
  220. package/dist/schemas/keep-warm.js +8 -10
  221. package/dist/schemas/keep-warm.js.map +1 -1
  222. package/dist/schemas/metrics.d.ts +29 -0
  223. package/dist/schemas/metrics.d.ts.map +1 -1
  224. package/dist/schemas/metrics.js +19 -3
  225. package/dist/schemas/metrics.js.map +1 -1
  226. package/dist/schemas/offload.d.ts +62 -0
  227. package/dist/schemas/offload.d.ts.map +1 -0
  228. package/dist/schemas/offload.js +23 -0
  229. package/dist/schemas/offload.js.map +1 -0
  230. package/dist/schemas/personas.d.ts +3 -0
  231. package/dist/schemas/personas.d.ts.map +1 -1
  232. package/dist/schemas/personas.js +12 -3
  233. package/dist/schemas/personas.js.map +1 -1
  234. package/dist/schemas/ports.d.ts +10 -0
  235. package/dist/schemas/ports.d.ts.map +1 -1
  236. package/dist/schemas/ports.js +8 -0
  237. package/dist/schemas/ports.js.map +1 -1
  238. package/dist/schemas/providers/plan-limits.d.ts +169 -0
  239. package/dist/schemas/providers/plan-limits.d.ts.map +1 -1
  240. package/dist/schemas/providers/plan-limits.js +54 -1
  241. package/dist/schemas/providers/plan-limits.js.map +1 -1
  242. package/dist/schemas/providers/provider-oauth.d.ts +69 -0
  243. package/dist/schemas/providers/provider-oauth.d.ts.map +1 -1
  244. package/dist/schemas/providers/provider-oauth.js +6 -1
  245. package/dist/schemas/providers/provider-oauth.js.map +1 -1
  246. package/dist/schemas/settings-history.d.ts +55 -0
  247. package/dist/schemas/settings-history.d.ts.map +1 -0
  248. package/dist/schemas/settings-history.js +73 -0
  249. package/dist/schemas/settings-history.js.map +1 -0
  250. package/dist/schemas/settings.d.ts +188 -4
  251. package/dist/schemas/settings.d.ts.map +1 -1
  252. package/dist/schemas/settings.js +41 -26
  253. package/dist/schemas/settings.js.map +1 -1
  254. package/dist/schemas/speaker.d.ts +36 -0
  255. package/dist/schemas/speaker.d.ts.map +1 -0
  256. package/dist/schemas/speaker.js +62 -0
  257. package/dist/schemas/speaker.js.map +1 -0
  258. package/dist/schemas/state-plan.d.ts +46 -0
  259. package/dist/schemas/state-plan.d.ts.map +1 -0
  260. package/dist/schemas/state-plan.js +31 -0
  261. package/dist/schemas/state-plan.js.map +1 -0
  262. package/dist/schemas/system.d.ts +64 -0
  263. package/dist/schemas/system.d.ts.map +1 -1
  264. package/dist/schemas/system.js +12 -1
  265. package/dist/schemas/system.js.map +1 -1
  266. package/dist/schemas/workspace/mainline.d.ts +513 -0
  267. package/dist/schemas/workspace/mainline.d.ts.map +1 -0
  268. package/dist/schemas/workspace/mainline.js +182 -0
  269. package/dist/schemas/workspace/mainline.js.map +1 -0
  270. package/dist/schemas/workspace/workspace-tree.d.ts +23 -0
  271. package/dist/schemas/workspace/workspace-tree.d.ts.map +1 -1
  272. package/dist/schemas/workspace/workspace-tree.js +34 -0
  273. package/dist/schemas/workspace/workspace-tree.js.map +1 -1
  274. package/dist/state/contract-lock.d.ts +1 -0
  275. package/dist/state/contract-lock.d.ts.map +1 -1
  276. package/dist/state/contract-lock.js +47 -1
  277. package/dist/state/contract-lock.js.map +1 -1
  278. package/dist/state/definition.d.ts +44 -20
  279. package/dist/state/definition.d.ts.map +1 -1
  280. package/dist/state/definition.js.map +1 -1
  281. package/dist/state/fix-stance.d.ts +1 -1
  282. package/dist/state/fix-stance.d.ts.map +1 -1
  283. package/dist/state/fix-stance.js +2 -1
  284. package/dist/state/fix-stance.js.map +1 -1
  285. package/dist/state/history-state.d.ts.map +1 -1
  286. package/dist/state/history-state.js +7 -0
  287. package/dist/state/history-state.js.map +1 -1
  288. package/dist/state/landed-commit.d.ts +1 -0
  289. package/dist/state/landed-commit.d.ts.map +1 -1
  290. package/dist/state/landed-commit.js +2 -0
  291. package/dist/state/landed-commit.js.map +1 -1
  292. package/dist/state/red-streak.d.ts +7 -0
  293. package/dist/state/red-streak.d.ts.map +1 -0
  294. package/dist/state/red-streak.js +11 -0
  295. package/dist/state/red-streak.js.map +1 -0
  296. package/dist/state/runtime-state.d.ts +3 -0
  297. package/dist/state/runtime-state.d.ts.map +1 -1
  298. package/dist/state/runtime-state.js +1 -0
  299. package/dist/state/runtime-state.js.map +1 -1
  300. package/dist/state/workspace-state.d.ts +23 -1
  301. package/dist/state/workspace-state.d.ts.map +1 -1
  302. package/dist/state/workspace-state.js +33 -3
  303. package/dist/state/workspace-state.js.map +1 -1
  304. package/dist/text/shell-regions.d.ts +1 -0
  305. package/dist/text/shell-regions.d.ts.map +1 -1
  306. package/dist/text/shell-regions.js +1 -1
  307. package/dist/text/shell-regions.js.map +1 -1
  308. package/dist/text/transcript-fold.d.ts +1 -0
  309. package/dist/text/transcript-fold.d.ts.map +1 -1
  310. package/dist/text/transcript-fold.js +24 -8
  311. package/dist/text/transcript-fold.js.map +1 -1
  312. package/package.json +42 -42
  313. package/src/chores/chores.ts +6 -6
  314. package/src/chores/index.ts +0 -1
  315. package/src/chores/prompt.ts +3 -2
  316. package/src/contracts/agent.contract.ts +14 -0
  317. package/src/contracts/agents.contract.ts +36 -1
  318. package/src/contracts/capabilities.contract.ts +2 -2
  319. package/src/contracts/device.contract.ts +5 -3
  320. package/src/contracts/offload.contract.ts +60 -0
  321. package/src/contracts/runner.contract.ts +7 -1
  322. package/src/contracts/secrets.contract.ts +2 -0
  323. package/src/contracts/settings.contract.ts +2 -1
  324. package/src/contracts/workspace.contract.ts +54 -2
  325. package/src/documents/conversions.ts +402 -0
  326. package/src/documents/index.ts +7 -0
  327. package/src/documents/passthrough.ts +139 -0
  328. package/src/documents/read.ts +114 -0
  329. package/src/events/agent-events.ts +5 -0
  330. package/src/events/child-run.test.ts +81 -0
  331. package/src/events/child-run.ts +73 -0
  332. package/src/events/errands.test.ts +22 -0
  333. package/src/events/errands.ts +27 -0
  334. package/src/events/land-breakage.ts +12 -0
  335. package/src/events/land-conflict.ts +12 -0
  336. package/src/events/requests.ts +40 -1
  337. package/src/events/system-events.ts +9 -3
  338. package/src/events/transcript.ts +8 -0
  339. package/src/events/verify-nudge.ts +4 -3
  340. package/src/front/browser-wire.ts +20 -0
  341. package/src/front/front-wire.ts +15 -0
  342. package/src/front/generated/browser-wire.json +138 -0
  343. package/src/front/generated/browser-wire.ts +16 -0
  344. package/src/front/generated/front-wire.json +793 -0
  345. package/src/front/generated/tunnel.json +38 -0
  346. package/src/front/generated/wire.ts +37 -9
  347. package/src/front/wire-manifests.test.ts +61 -0
  348. package/src/ids/conversation-ids.ts +13 -5
  349. package/src/ids/session-names.ts +7 -0
  350. package/src/index.ts +15 -2
  351. package/src/models/agent-catalog.test.ts +6 -4
  352. package/src/models/agent-catalog.ts +4 -6
  353. package/src/models/agent-runtimes.ts +22 -7
  354. package/src/models/capability-ledger.test.ts +2 -0
  355. package/src/models/plan-pools.test.ts +121 -2
  356. package/src/models/plan-pools.ts +152 -2
  357. package/src/policy/request-status.ts +4 -12
  358. package/src/policy/reserved-servers.test.ts +6 -0
  359. package/src/policy/reserved-servers.ts +13 -10
  360. package/src/policy/turned-away.ts +3 -0
  361. package/src/protocol/container-requirements.test.ts +2 -3
  362. package/src/protocol/container-requirements.ts +1 -7
  363. package/src/protocol/edge-verdict.ts +13 -11
  364. package/src/protocol/ingress-contract.fixture.json +90 -0
  365. package/src/protocol/ingress-contract.test.ts +18 -26
  366. package/src/protocol/ingress-contract.ts +10 -25
  367. package/src/protocol/raw-routes.ts +22 -26
  368. package/src/protocol/route-meta.ts +39 -0
  369. package/src/protocol/runner-protocol.ts +53 -0
  370. package/src/protocol/tunnel-bulk.test.ts +37 -0
  371. package/src/protocol/tunnel-bulk.ts +7 -0
  372. package/src/protocol/x402.test.ts +29 -0
  373. package/src/protocol/x402.ts +61 -0
  374. package/src/schemas/activity.ts +3 -1
  375. package/src/schemas/agent.ts +28 -3
  376. package/src/schemas/agents.ts +83 -8
  377. package/src/schemas/automations.ts +4 -2
  378. package/src/schemas/devices.ts +106 -39
  379. package/src/schemas/extension-updates.ts +6 -0
  380. package/src/schemas/git/git.ts +5 -0
  381. package/src/schemas/hosts.ts +64 -13
  382. package/src/schemas/ic-shape-args.test.ts +64 -0
  383. package/src/schemas/keep-warm.test.ts +6 -13
  384. package/src/schemas/keep-warm.ts +15 -20
  385. package/src/schemas/metrics.ts +28 -3
  386. package/src/schemas/offload.ts +44 -0
  387. package/src/schemas/personas.ts +18 -3
  388. package/src/schemas/ports.ts +10 -0
  389. package/src/schemas/providers/plan-limits.ts +84 -1
  390. package/src/schemas/providers/provider-oauth.ts +10 -1
  391. package/src/schemas/settings-history.ts +108 -0
  392. package/src/schemas/settings.test.ts +54 -1
  393. package/src/schemas/settings.ts +88 -49
  394. package/src/schemas/speaker.ts +89 -0
  395. package/src/schemas/state-plan.test.ts +69 -0
  396. package/src/schemas/state-plan.ts +47 -0
  397. package/src/schemas/system.ts +24 -3
  398. package/src/schemas/workspace/mainline.test.ts +28 -0
  399. package/src/schemas/workspace/mainline.ts +268 -0
  400. package/src/schemas/workspace/workspace-tree.ts +47 -0
  401. package/src/state/contract-lock.test.ts +65 -4
  402. package/src/state/contract-lock.ts +70 -2
  403. package/src/state/definition.ts +3 -2
  404. package/src/state/fix-stance.test.ts +8 -0
  405. package/src/state/fix-stance.ts +3 -3
  406. package/src/state/history-state.ts +19 -0
  407. package/src/state/landed-commit.test.ts +12 -1
  408. package/src/state/landed-commit.ts +5 -0
  409. package/src/state/red-streak.test.ts +28 -0
  410. package/src/state/red-streak.ts +28 -0
  411. package/src/state/runtime-state.ts +4 -0
  412. package/src/state/workspace-state.test.ts +7 -1
  413. package/src/state/workspace-state.ts +45 -3
  414. package/src/text/shell-regions.test.ts +38 -0
  415. package/src/text/shell-regions.ts +3 -3
  416. package/src/text/transcript-fold.test.ts +46 -0
  417. package/src/text/transcript-fold.ts +31 -9
  418. package/dist/chores/fix-deps.d.ts +0 -10
  419. package/dist/chores/fix-deps.d.ts.map +0 -1
  420. package/dist/chores/fix-deps.js +0 -18
  421. package/dist/chores/fix-deps.js.map +0 -1
  422. package/dist/protocol/ingress-protocol.d.ts +0 -30
  423. package/dist/protocol/ingress-protocol.d.ts.map +0 -1
  424. package/dist/protocol/ingress-protocol.js +0 -300
  425. package/dist/protocol/ingress-protocol.js.map +0 -1
  426. package/dist/protocol/terminal-protocol.d.ts +0 -18
  427. package/dist/protocol/terminal-protocol.d.ts.map +0 -1
  428. package/dist/protocol/terminal-protocol.js +0 -2
  429. package/dist/protocol/terminal-protocol.js.map +0 -1
  430. package/dist/protocol/tunnel-heartbeat.d.ts +0 -19
  431. package/dist/protocol/tunnel-heartbeat.d.ts.map +0 -1
  432. package/dist/protocol/tunnel-heartbeat.js +0 -41
  433. package/dist/protocol/tunnel-heartbeat.js.map +0 -1
  434. package/dist/protocol/upgrade-relay.d.ts +0 -4
  435. package/dist/protocol/upgrade-relay.d.ts.map +0 -1
  436. package/dist/protocol/upgrade-relay.js +0 -25
  437. package/dist/protocol/upgrade-relay.js.map +0 -1
  438. package/src/chores/fix-deps.ts +0 -22
  439. package/src/protocol/ingress-protocol.test.ts +0 -579
  440. package/src/protocol/ingress-protocol.ts +0 -469
  441. package/src/protocol/terminal-protocol.ts +0 -13
  442. package/src/protocol/tunnel-heartbeat.test.ts +0 -75
  443. package/src/protocol/tunnel-heartbeat.ts +0 -67
  444. package/src/protocol/upgrade-relay.ts +0 -28
package/dist/index.d.ts CHANGED
@@ -42,6 +42,7 @@ export { systemContract } from "./contracts/system.contract.js";
42
42
  export { translatorContract } from "./contracts/translator.contract.js";
43
43
  export { type PlanLimitsHeld, type PlanLimitsRefreshed, PlanLimitsRefreshedSchema, usageContract } from "./contracts/usage.contract.js";
44
44
  export { netdiskContract } from "./contracts/netdisk.contract.js";
45
+ export { offloadContract } from "./contracts/offload.contract.js";
45
46
  export { vpnContract } from "./contracts/vpn.contract.js";
46
47
  export { workflowsContract } from "./contracts/workflows.contract.js";
47
48
  export { workspaceContract } from "./contracts/workspace.contract.js";
@@ -52,15 +53,19 @@ export * from "./events/resume.js";
52
53
  export * from "./events/system-events.js";
53
54
  export * from "./events/transcript.js";
54
55
  export * from "./events/land-breakage.js";
56
+ export * from "./events/land-conflict.js";
55
57
  export * from "./events/verify-nudge.js";
58
+ export * from "./events/errands.js";
56
59
  export * from "./events/watch-wake.js";
57
60
  export * from "./policy/request-status.js";
61
+ export * from "./events/child-run.js";
58
62
  export * from "./policy/turned-away.js";
59
63
  export * from "./text/mentions.js";
60
64
  export * from "./protocol/sse.js";
61
65
  export * from "./protocol/routes.js";
62
- export type { ControlReach, RouteMeta } from "./protocol/route-meta.js";
66
+ export { type ControlReach, defaultFloor, type RouteAccess, type RouteMeta, routeAccess } from "./protocol/route-meta.js";
63
67
  export { RAW_ROUTE_LIST, RAW_ROUTES, type RawRouteKey, rawRoutePath } from "./protocol/raw-routes.js";
68
+ export { tunnelBulkRoutes } from "./protocol/tunnel-bulk.js";
64
69
  export type { SandboxCallInput, SandboxGroup, SandboxHandlerInput, SandboxHandlerOutput, SandboxProcedure } from "./protocol/procedure-types.js";
65
70
  export * from "./policy/control-scopes.js";
66
71
  export { HISTORY_ROOT, HOST_STATE_ROOT, STATE_DIR, WORKSPACE_ROOT } from "@intentic/constants";
@@ -71,6 +76,7 @@ export * from "./state/history-state.js";
71
76
  export * from "./state/fix-stance.js";
72
77
  export * from "./state/landed-commit.js";
73
78
  export * from "./state/fix-attempt-plan.js";
79
+ export * from "./state/red-streak.js";
74
80
  export * from "./models/agent-runtimes.js";
75
81
  export * from "./models/provider-specs.js";
76
82
  export * from "./models/agent-catalog.js";
@@ -107,6 +113,7 @@ export * from "./schemas/areas.js";
107
113
  export * from "./policy/fence-paths.js";
108
114
  export * from "./policy/persona-home.js";
109
115
  export * from "./schemas/agents.js";
116
+ export * from "./schemas/speaker.js";
110
117
  export * from "./schemas/approvals.js";
111
118
  export * from "./schemas/automations.js";
112
119
  export * from "./schemas/capabilities.js";
@@ -147,29 +154,33 @@ export * from "./schemas/secrets.js";
147
154
  export * from "./schemas/netdisk.js";
148
155
  export * from "./schemas/sessions.js";
149
156
  export * from "./schemas/settings.js";
157
+ export * from "./schemas/settings-history.js";
150
158
  export * from "./schemas/share.js";
151
159
  export * from "./schemas/shared.js";
152
160
  export * from "./schemas/system-prompt.js";
153
161
  export * from "./schemas/system.js";
162
+ export * from "./schemas/state-plan.js";
154
163
  export * from "./schemas/terminal.js";
155
164
  export * from "./schemas/turn-break.js";
156
165
  export * from "./schemas/keep-warm.js";
157
166
  export * from "./schemas/providers/usage.js";
158
167
  export * from "./schemas/vpn.js";
168
+ export * from "./schemas/offload.js";
159
169
  export * from "./schemas/webext.js";
160
170
  export * from "./schemas/workflows.js";
161
171
  export * from "./schemas/workspace/workspace-repos.js";
162
172
  export * from "./schemas/workspace/workspace-search.js";
173
+ export * from "./schemas/workspace/mainline.js";
163
174
  export * from "./schemas/workspace/workspace-setup.js";
164
175
  export * from "./schemas/workspace/workspace-tree.js";
165
176
  export * from "./state/arrival.js";
166
177
  export * from "./state/definition.js";
167
178
  export * from "./policy/search-globs.js";
168
179
  export * from "./state/starter.js";
169
- export * from "./protocol/terminal-protocol.js";
170
180
  export * from "./text/title.js";
171
181
  export * from "./state/versions.js";
172
182
  export * from "./text/model-answer.js";
183
+ export * from "./text/shell-regions.js";
173
184
  export * from "./text/whisper.js";
174
185
  export * from "./text/workflow-faults.js";
175
186
  export * from "./text/emoji.js";
@@ -222,6 +233,7 @@ export declare const sandboxContract: {
222
233
  label: z.ZodString;
223
234
  email: z.ZodOptional<z.ZodString>;
224
235
  organization: z.ZodOptional<z.ZodString>;
236
+ variant: z.ZodOptional<z.ZodString>;
225
237
  scope: z.ZodOptional<z.ZodString>;
226
238
  connectedAt: z.ZodNumber;
227
239
  needsReauth: z.ZodOptional<z.ZodBoolean>;
@@ -238,7 +250,29 @@ export declare const sandboxContract: {
238
250
  }, z.core.$strip>]>;
239
251
  }, z.core.$strip>>;
240
252
  measuredAt: z.ZodNumber;
253
+ unread: z.ZodOptional<z.ZodObject<{
254
+ since: z.ZodNumber;
255
+ reason: z.ZodString;
256
+ }, z.core.$strip>>;
241
257
  }, z.core.$strip>>;
258
+ state: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
259
+ kind: z.ZodLiteral<"ready">;
260
+ room: z.ZodNumber;
261
+ }, z.core.$strip>, z.ZodObject<{
262
+ kind: z.ZodLiteral<"spent">;
263
+ reopensAt: z.ZodOptional<z.ZodNumber>;
264
+ }, z.core.$strip>, z.ZodObject<{
265
+ kind: z.ZodLiteral<"blocked">;
266
+ fix: z.ZodEnum<{
267
+ admin: "admin";
268
+ reconnect: "reconnect";
269
+ wait: "wait";
270
+ }>;
271
+ reason: z.ZodString;
272
+ until: z.ZodOptional<z.ZodNumber>;
273
+ }, z.core.$strip>, z.ZodObject<{
274
+ kind: z.ZodLiteral<"unknown">;
275
+ }, z.core.$strip>], "kind">>;
242
276
  }, z.core.$strip>>;
243
277
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
244
278
  cancel: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
@@ -274,6 +308,7 @@ export declare const sandboxContract: {
274
308
  label: z.ZodString;
275
309
  email: z.ZodOptional<z.ZodString>;
276
310
  organization: z.ZodOptional<z.ZodString>;
311
+ variant: z.ZodOptional<z.ZodString>;
277
312
  scope: z.ZodOptional<z.ZodString>;
278
313
  connectedAt: z.ZodNumber;
279
314
  needsReauth: z.ZodOptional<z.ZodBoolean>;
@@ -290,7 +325,29 @@ export declare const sandboxContract: {
290
325
  }, z.core.$strip>]>;
291
326
  }, z.core.$strip>>;
292
327
  measuredAt: z.ZodNumber;
328
+ unread: z.ZodOptional<z.ZodObject<{
329
+ since: z.ZodNumber;
330
+ reason: z.ZodString;
331
+ }, z.core.$strip>>;
293
332
  }, z.core.$strip>>;
333
+ state: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
334
+ kind: z.ZodLiteral<"ready">;
335
+ room: z.ZodNumber;
336
+ }, z.core.$strip>, z.ZodObject<{
337
+ kind: z.ZodLiteral<"spent">;
338
+ reopensAt: z.ZodOptional<z.ZodNumber>;
339
+ }, z.core.$strip>, z.ZodObject<{
340
+ kind: z.ZodLiteral<"blocked">;
341
+ fix: z.ZodEnum<{
342
+ admin: "admin";
343
+ reconnect: "reconnect";
344
+ wait: "wait";
345
+ }>;
346
+ reason: z.ZodString;
347
+ until: z.ZodOptional<z.ZodNumber>;
348
+ }, z.core.$strip>, z.ZodObject<{
349
+ kind: z.ZodLiteral<"unknown">;
350
+ }, z.core.$strip>], "kind">>;
294
351
  }, z.core.$strip>>;
295
352
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
296
353
  rename: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
@@ -311,6 +368,7 @@ export declare const sandboxContract: {
311
368
  label: z.ZodString;
312
369
  email: z.ZodOptional<z.ZodString>;
313
370
  organization: z.ZodOptional<z.ZodString>;
371
+ variant: z.ZodOptional<z.ZodString>;
314
372
  scope: z.ZodOptional<z.ZodString>;
315
373
  connectedAt: z.ZodNumber;
316
374
  needsReauth: z.ZodOptional<z.ZodBoolean>;
@@ -327,7 +385,29 @@ export declare const sandboxContract: {
327
385
  }, z.core.$strip>]>;
328
386
  }, z.core.$strip>>;
329
387
  measuredAt: z.ZodNumber;
388
+ unread: z.ZodOptional<z.ZodObject<{
389
+ since: z.ZodNumber;
390
+ reason: z.ZodString;
391
+ }, z.core.$strip>>;
330
392
  }, z.core.$strip>>;
393
+ state: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
394
+ kind: z.ZodLiteral<"ready">;
395
+ room: z.ZodNumber;
396
+ }, z.core.$strip>, z.ZodObject<{
397
+ kind: z.ZodLiteral<"spent">;
398
+ reopensAt: z.ZodOptional<z.ZodNumber>;
399
+ }, z.core.$strip>, z.ZodObject<{
400
+ kind: z.ZodLiteral<"blocked">;
401
+ fix: z.ZodEnum<{
402
+ admin: "admin";
403
+ reconnect: "reconnect";
404
+ wait: "wait";
405
+ }>;
406
+ reason: z.ZodString;
407
+ until: z.ZodOptional<z.ZodNumber>;
408
+ }, z.core.$strip>, z.ZodObject<{
409
+ kind: z.ZodLiteral<"unknown">;
410
+ }, z.core.$strip>], "kind">>;
331
411
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
332
412
  disconnect: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
333
413
  provider: z.ZodEnum<{
@@ -411,6 +491,18 @@ export declare const sandboxContract: {
411
491
  agent: {
412
492
  run: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
413
493
  prompt: z.ZodString;
494
+ errand: z.ZodOptional<z.ZodEnum<{
495
+ "ci-fix": "ci-fix";
496
+ "ci-fix-nudge": "ci-fix-nudge";
497
+ "land-breakage": "land-breakage";
498
+ "land-conflict": "land-conflict";
499
+ "land-fix": "land-fix";
500
+ "land-fix-nudge": "land-fix-nudge";
501
+ "land-held": "land-held";
502
+ "push-fix": "push-fix";
503
+ "push-fix-nudge": "push-fix-nudge";
504
+ "verify-nudge": "verify-nudge";
505
+ }>>;
414
506
  messageId: z.ZodOptional<z.ZodString>;
415
507
  title: z.ZodOptional<z.ZodString>;
416
508
  attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -530,6 +622,21 @@ export declare const sandboxContract: {
530
622
  title: string;
531
623
  text: string;
532
624
  }[] | undefined;
625
+ speaker?: {
626
+ kind: "person";
627
+ email: string;
628
+ name?: string | undefined;
629
+ } | {
630
+ kind: "program";
631
+ token: string;
632
+ } | {
633
+ kind: "agent";
634
+ conversationId: string;
635
+ } | {
636
+ kind: "sandbox";
637
+ source?: string | undefined;
638
+ } | undefined;
639
+ errand?: "ci-fix" | "ci-fix-nudge" | "land-breakage" | "land-conflict" | "land-fix" | "land-fix-nudge" | "land-held" | "push-fix" | "push-fix-nudge" | "verify-nudge" | undefined;
533
640
  placed?: boolean | undefined;
534
641
  noticeAction?: "depsInstall" | "landHold" | "sandboxMemory" | "sendAgain" | "sendAnyway" | "watchStop" | undefined;
535
642
  sandboxHeld?: boolean | undefined;
@@ -586,6 +693,29 @@ export declare const sandboxContract: {
586
693
  end: number;
587
694
  }[];
588
695
  } | undefined;
696
+ child?: {
697
+ provider: string;
698
+ model: string;
699
+ harness?: "claude-code" | "native" | undefined;
700
+ account?: string | undefined;
701
+ effort?: string | undefined;
702
+ thinking?: boolean | undefined;
703
+ fast?: boolean | undefined;
704
+ move: "answer" | "send" | "spawn";
705
+ child?: string | undefined;
706
+ task?: string | undefined;
707
+ message?: string | undefined;
708
+ on?: string | undefined;
709
+ proposed?: {
710
+ provider: string;
711
+ model: string;
712
+ harness?: "claude-code" | "native" | undefined;
713
+ account?: string | undefined;
714
+ effort?: string | undefined;
715
+ thinking?: boolean | undefined;
716
+ fast?: boolean | undefined;
717
+ } | undefined;
718
+ } | undefined;
589
719
  explain?: string | undefined;
590
720
  requestId: string;
591
721
  status: "allowed" | "always" | "cancelled" | "denied" | "pending";
@@ -707,6 +837,21 @@ export declare const sandboxContract: {
707
837
  title: string;
708
838
  text: string;
709
839
  }[] | undefined;
840
+ speaker?: {
841
+ kind: "person";
842
+ email: string;
843
+ name?: string | undefined;
844
+ } | {
845
+ kind: "program";
846
+ token: string;
847
+ } | {
848
+ kind: "agent";
849
+ conversationId: string;
850
+ } | {
851
+ kind: "sandbox";
852
+ source?: string | undefined;
853
+ } | undefined;
854
+ errand?: "ci-fix" | "ci-fix-nudge" | "land-breakage" | "land-conflict" | "land-fix" | "land-fix-nudge" | "land-held" | "push-fix" | "push-fix-nudge" | "verify-nudge" | undefined;
710
855
  placed?: boolean | undefined;
711
856
  noticeAction?: "depsInstall" | "landHold" | "sandboxMemory" | "sendAgain" | "sendAnyway" | "watchStop" | undefined;
712
857
  sandboxHeld?: boolean | undefined;
@@ -763,6 +908,29 @@ export declare const sandboxContract: {
763
908
  end: number;
764
909
  }[];
765
910
  } | undefined;
911
+ child?: {
912
+ provider: string;
913
+ model: string;
914
+ harness?: "claude-code" | "native" | undefined;
915
+ account?: string | undefined;
916
+ effort?: string | undefined;
917
+ thinking?: boolean | undefined;
918
+ fast?: boolean | undefined;
919
+ move: "answer" | "send" | "spawn";
920
+ child?: string | undefined;
921
+ task?: string | undefined;
922
+ message?: string | undefined;
923
+ on?: string | undefined;
924
+ proposed?: {
925
+ provider: string;
926
+ model: string;
927
+ harness?: "claude-code" | "native" | undefined;
928
+ account?: string | undefined;
929
+ effort?: string | undefined;
930
+ thinking?: boolean | undefined;
931
+ fast?: boolean | undefined;
932
+ } | undefined;
933
+ } | undefined;
766
934
  explain?: string | undefined;
767
935
  requestId: string;
768
936
  status: "allowed" | "always" | "cancelled" | "denied" | "pending";
@@ -882,6 +1050,21 @@ export declare const sandboxContract: {
882
1050
  title: string;
883
1051
  text: string;
884
1052
  }[] | undefined;
1053
+ speaker?: {
1054
+ kind: "person";
1055
+ email: string;
1056
+ name?: string | undefined;
1057
+ } | {
1058
+ kind: "program";
1059
+ token: string;
1060
+ } | {
1061
+ kind: "agent";
1062
+ conversationId: string;
1063
+ } | {
1064
+ kind: "sandbox";
1065
+ source?: string | undefined;
1066
+ } | undefined;
1067
+ errand?: "ci-fix" | "ci-fix-nudge" | "land-breakage" | "land-conflict" | "land-fix" | "land-fix-nudge" | "land-held" | "push-fix" | "push-fix-nudge" | "verify-nudge" | undefined;
885
1068
  placed?: boolean | undefined;
886
1069
  noticeAction?: "depsInstall" | "landHold" | "sandboxMemory" | "sendAgain" | "sendAnyway" | "watchStop" | undefined;
887
1070
  sandboxHeld?: boolean | undefined;
@@ -938,6 +1121,29 @@ export declare const sandboxContract: {
938
1121
  end: number;
939
1122
  }[];
940
1123
  } | undefined;
1124
+ child?: {
1125
+ provider: string;
1126
+ model: string;
1127
+ harness?: "claude-code" | "native" | undefined;
1128
+ account?: string | undefined;
1129
+ effort?: string | undefined;
1130
+ thinking?: boolean | undefined;
1131
+ fast?: boolean | undefined;
1132
+ move: "answer" | "send" | "spawn";
1133
+ child?: string | undefined;
1134
+ task?: string | undefined;
1135
+ message?: string | undefined;
1136
+ on?: string | undefined;
1137
+ proposed?: {
1138
+ provider: string;
1139
+ model: string;
1140
+ harness?: "claude-code" | "native" | undefined;
1141
+ account?: string | undefined;
1142
+ effort?: string | undefined;
1143
+ thinking?: boolean | undefined;
1144
+ fast?: boolean | undefined;
1145
+ } | undefined;
1146
+ } | undefined;
941
1147
  explain?: string | undefined;
942
1148
  requestId: string;
943
1149
  status: "allowed" | "always" | "cancelled" | "denied" | "pending";
@@ -1087,6 +1293,21 @@ export declare const sandboxContract: {
1087
1293
  title: string;
1088
1294
  text: string;
1089
1295
  }[] | undefined;
1296
+ speaker?: {
1297
+ kind: "person";
1298
+ email: string;
1299
+ name?: string | undefined;
1300
+ } | {
1301
+ kind: "program";
1302
+ token: string;
1303
+ } | {
1304
+ kind: "agent";
1305
+ conversationId: string;
1306
+ } | {
1307
+ kind: "sandbox";
1308
+ source?: string | undefined;
1309
+ } | undefined;
1310
+ errand?: "ci-fix" | "ci-fix-nudge" | "land-breakage" | "land-conflict" | "land-fix" | "land-fix-nudge" | "land-held" | "push-fix" | "push-fix-nudge" | "verify-nudge" | undefined;
1090
1311
  placed?: boolean | undefined;
1091
1312
  noticeAction?: "depsInstall" | "landHold" | "sandboxMemory" | "sendAgain" | "sendAnyway" | "watchStop" | undefined;
1092
1313
  sandboxHeld?: boolean | undefined;
@@ -1143,6 +1364,29 @@ export declare const sandboxContract: {
1143
1364
  end: number;
1144
1365
  }[];
1145
1366
  } | undefined;
1367
+ child?: {
1368
+ provider: string;
1369
+ model: string;
1370
+ harness?: "claude-code" | "native" | undefined;
1371
+ account?: string | undefined;
1372
+ effort?: string | undefined;
1373
+ thinking?: boolean | undefined;
1374
+ fast?: boolean | undefined;
1375
+ move: "answer" | "send" | "spawn";
1376
+ child?: string | undefined;
1377
+ task?: string | undefined;
1378
+ message?: string | undefined;
1379
+ on?: string | undefined;
1380
+ proposed?: {
1381
+ provider: string;
1382
+ model: string;
1383
+ harness?: "claude-code" | "native" | undefined;
1384
+ account?: string | undefined;
1385
+ effort?: string | undefined;
1386
+ thinking?: boolean | undefined;
1387
+ fast?: boolean | undefined;
1388
+ } | undefined;
1389
+ } | undefined;
1146
1390
  explain?: string | undefined;
1147
1391
  requestId: string;
1148
1392
  status: "allowed" | "always" | "cancelled" | "denied" | "pending";
@@ -1264,6 +1508,21 @@ export declare const sandboxContract: {
1264
1508
  title: string;
1265
1509
  text: string;
1266
1510
  }[] | undefined;
1511
+ speaker?: {
1512
+ kind: "person";
1513
+ email: string;
1514
+ name?: string | undefined;
1515
+ } | {
1516
+ kind: "program";
1517
+ token: string;
1518
+ } | {
1519
+ kind: "agent";
1520
+ conversationId: string;
1521
+ } | {
1522
+ kind: "sandbox";
1523
+ source?: string | undefined;
1524
+ } | undefined;
1525
+ errand?: "ci-fix" | "ci-fix-nudge" | "land-breakage" | "land-conflict" | "land-fix" | "land-fix-nudge" | "land-held" | "push-fix" | "push-fix-nudge" | "verify-nudge" | undefined;
1267
1526
  placed?: boolean | undefined;
1268
1527
  noticeAction?: "depsInstall" | "landHold" | "sandboxMemory" | "sendAgain" | "sendAnyway" | "watchStop" | undefined;
1269
1528
  sandboxHeld?: boolean | undefined;
@@ -1320,6 +1579,29 @@ export declare const sandboxContract: {
1320
1579
  end: number;
1321
1580
  }[];
1322
1581
  } | undefined;
1582
+ child?: {
1583
+ provider: string;
1584
+ model: string;
1585
+ harness?: "claude-code" | "native" | undefined;
1586
+ account?: string | undefined;
1587
+ effort?: string | undefined;
1588
+ thinking?: boolean | undefined;
1589
+ fast?: boolean | undefined;
1590
+ move: "answer" | "send" | "spawn";
1591
+ child?: string | undefined;
1592
+ task?: string | undefined;
1593
+ message?: string | undefined;
1594
+ on?: string | undefined;
1595
+ proposed?: {
1596
+ provider: string;
1597
+ model: string;
1598
+ harness?: "claude-code" | "native" | undefined;
1599
+ account?: string | undefined;
1600
+ effort?: string | undefined;
1601
+ thinking?: boolean | undefined;
1602
+ fast?: boolean | undefined;
1603
+ } | undefined;
1604
+ } | undefined;
1323
1605
  explain?: string | undefined;
1324
1606
  requestId: string;
1325
1607
  status: "allowed" | "always" | "cancelled" | "denied" | "pending";
@@ -1439,6 +1721,21 @@ export declare const sandboxContract: {
1439
1721
  title: string;
1440
1722
  text: string;
1441
1723
  }[] | undefined;
1724
+ speaker?: {
1725
+ kind: "person";
1726
+ email: string;
1727
+ name?: string | undefined;
1728
+ } | {
1729
+ kind: "program";
1730
+ token: string;
1731
+ } | {
1732
+ kind: "agent";
1733
+ conversationId: string;
1734
+ } | {
1735
+ kind: "sandbox";
1736
+ source?: string | undefined;
1737
+ } | undefined;
1738
+ errand?: "ci-fix" | "ci-fix-nudge" | "land-breakage" | "land-conflict" | "land-fix" | "land-fix-nudge" | "land-held" | "push-fix" | "push-fix-nudge" | "verify-nudge" | undefined;
1442
1739
  placed?: boolean | undefined;
1443
1740
  noticeAction?: "depsInstall" | "landHold" | "sandboxMemory" | "sendAgain" | "sendAnyway" | "watchStop" | undefined;
1444
1741
  sandboxHeld?: boolean | undefined;
@@ -1495,6 +1792,29 @@ export declare const sandboxContract: {
1495
1792
  end: number;
1496
1793
  }[];
1497
1794
  } | undefined;
1795
+ child?: {
1796
+ provider: string;
1797
+ model: string;
1798
+ harness?: "claude-code" | "native" | undefined;
1799
+ account?: string | undefined;
1800
+ effort?: string | undefined;
1801
+ thinking?: boolean | undefined;
1802
+ fast?: boolean | undefined;
1803
+ move: "answer" | "send" | "spawn";
1804
+ child?: string | undefined;
1805
+ task?: string | undefined;
1806
+ message?: string | undefined;
1807
+ on?: string | undefined;
1808
+ proposed?: {
1809
+ provider: string;
1810
+ model: string;
1811
+ harness?: "claude-code" | "native" | undefined;
1812
+ account?: string | undefined;
1813
+ effort?: string | undefined;
1814
+ thinking?: boolean | undefined;
1815
+ fast?: boolean | undefined;
1816
+ } | undefined;
1817
+ } | undefined;
1498
1818
  explain?: string | undefined;
1499
1819
  requestId: string;
1500
1820
  status: "allowed" | "always" | "cancelled" | "denied" | "pending";
@@ -1653,6 +1973,32 @@ export declare const sandboxContract: {
1653
1973
  title: z.ZodString;
1654
1974
  text: z.ZodString;
1655
1975
  }, z.core.$strip>>>;
1976
+ speaker: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1977
+ kind: z.ZodLiteral<"person">;
1978
+ email: z.ZodString;
1979
+ name: z.ZodOptional<z.ZodString>;
1980
+ }, z.core.$strip>, z.ZodObject<{
1981
+ kind: z.ZodLiteral<"program">;
1982
+ token: z.ZodString;
1983
+ }, z.core.$strip>, z.ZodObject<{
1984
+ kind: z.ZodLiteral<"agent">;
1985
+ conversationId: z.ZodString;
1986
+ }, z.core.$strip>, z.ZodObject<{
1987
+ kind: z.ZodLiteral<"sandbox">;
1988
+ source: z.ZodOptional<z.ZodString>;
1989
+ }, z.core.$strip>], "kind">>;
1990
+ errand: z.ZodOptional<z.ZodEnum<{
1991
+ "ci-fix": "ci-fix";
1992
+ "ci-fix-nudge": "ci-fix-nudge";
1993
+ "land-breakage": "land-breakage";
1994
+ "land-conflict": "land-conflict";
1995
+ "land-fix": "land-fix";
1996
+ "land-fix-nudge": "land-fix-nudge";
1997
+ "land-held": "land-held";
1998
+ "push-fix": "push-fix";
1999
+ "push-fix-nudge": "push-fix-nudge";
2000
+ "verify-nudge": "verify-nudge";
2001
+ }>>;
1656
2002
  placed: z.ZodOptional<z.ZodBoolean>;
1657
2003
  noticeAction: z.ZodOptional<z.ZodEnum<{
1658
2004
  depsInstall: "depsInstall";
@@ -1732,6 +2078,39 @@ export declare const sandboxContract: {
1732
2078
  end: z.ZodNumber;
1733
2079
  }, z.core.$strip>>;
1734
2080
  }, z.core.$strip>>;
2081
+ child: z.ZodOptional<z.ZodObject<{
2082
+ provider: z.ZodString;
2083
+ model: z.ZodString;
2084
+ harness: z.ZodOptional<z.ZodEnum<{
2085
+ "claude-code": "claude-code";
2086
+ native: "native";
2087
+ }>>;
2088
+ account: z.ZodOptional<z.ZodString>;
2089
+ effort: z.ZodOptional<z.ZodString>;
2090
+ thinking: z.ZodOptional<z.ZodBoolean>;
2091
+ fast: z.ZodOptional<z.ZodBoolean>;
2092
+ move: z.ZodEnum<{
2093
+ answer: "answer";
2094
+ send: "send";
2095
+ spawn: "spawn";
2096
+ }>;
2097
+ child: z.ZodOptional<z.ZodString>;
2098
+ task: z.ZodOptional<z.ZodString>;
2099
+ message: z.ZodOptional<z.ZodString>;
2100
+ on: z.ZodOptional<z.ZodString>;
2101
+ proposed: z.ZodOptional<z.ZodObject<{
2102
+ provider: z.ZodString;
2103
+ model: z.ZodString;
2104
+ harness: z.ZodOptional<z.ZodEnum<{
2105
+ "claude-code": "claude-code";
2106
+ native: "native";
2107
+ }>>;
2108
+ account: z.ZodOptional<z.ZodString>;
2109
+ effort: z.ZodOptional<z.ZodString>;
2110
+ thinking: z.ZodOptional<z.ZodBoolean>;
2111
+ fast: z.ZodOptional<z.ZodBoolean>;
2112
+ }, z.core.$strip>>;
2113
+ }, z.core.$strip>>;
1735
2114
  explain: z.ZodOptional<z.ZodString>;
1736
2115
  requestId: z.ZodString;
1737
2116
  status: z.ZodEnum<{
@@ -1921,6 +2300,32 @@ export declare const sandboxContract: {
1921
2300
  title: z.ZodString;
1922
2301
  text: z.ZodString;
1923
2302
  }, z.core.$strip>>>;
2303
+ speaker: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2304
+ kind: z.ZodLiteral<"person">;
2305
+ email: z.ZodString;
2306
+ name: z.ZodOptional<z.ZodString>;
2307
+ }, z.core.$strip>, z.ZodObject<{
2308
+ kind: z.ZodLiteral<"program">;
2309
+ token: z.ZodString;
2310
+ }, z.core.$strip>, z.ZodObject<{
2311
+ kind: z.ZodLiteral<"agent">;
2312
+ conversationId: z.ZodString;
2313
+ }, z.core.$strip>, z.ZodObject<{
2314
+ kind: z.ZodLiteral<"sandbox">;
2315
+ source: z.ZodOptional<z.ZodString>;
2316
+ }, z.core.$strip>], "kind">>;
2317
+ errand: z.ZodOptional<z.ZodEnum<{
2318
+ "ci-fix": "ci-fix";
2319
+ "ci-fix-nudge": "ci-fix-nudge";
2320
+ "land-breakage": "land-breakage";
2321
+ "land-conflict": "land-conflict";
2322
+ "land-fix": "land-fix";
2323
+ "land-fix-nudge": "land-fix-nudge";
2324
+ "land-held": "land-held";
2325
+ "push-fix": "push-fix";
2326
+ "push-fix-nudge": "push-fix-nudge";
2327
+ "verify-nudge": "verify-nudge";
2328
+ }>>;
1924
2329
  placed: z.ZodOptional<z.ZodBoolean>;
1925
2330
  noticeAction: z.ZodOptional<z.ZodEnum<{
1926
2331
  depsInstall: "depsInstall";
@@ -2000,6 +2405,39 @@ export declare const sandboxContract: {
2000
2405
  end: z.ZodNumber;
2001
2406
  }, z.core.$strip>>;
2002
2407
  }, z.core.$strip>>;
2408
+ child: z.ZodOptional<z.ZodObject<{
2409
+ provider: z.ZodString;
2410
+ model: z.ZodString;
2411
+ harness: z.ZodOptional<z.ZodEnum<{
2412
+ "claude-code": "claude-code";
2413
+ native: "native";
2414
+ }>>;
2415
+ account: z.ZodOptional<z.ZodString>;
2416
+ effort: z.ZodOptional<z.ZodString>;
2417
+ thinking: z.ZodOptional<z.ZodBoolean>;
2418
+ fast: z.ZodOptional<z.ZodBoolean>;
2419
+ move: z.ZodEnum<{
2420
+ answer: "answer";
2421
+ send: "send";
2422
+ spawn: "spawn";
2423
+ }>;
2424
+ child: z.ZodOptional<z.ZodString>;
2425
+ task: z.ZodOptional<z.ZodString>;
2426
+ message: z.ZodOptional<z.ZodString>;
2427
+ on: z.ZodOptional<z.ZodString>;
2428
+ proposed: z.ZodOptional<z.ZodObject<{
2429
+ provider: z.ZodString;
2430
+ model: z.ZodString;
2431
+ harness: z.ZodOptional<z.ZodEnum<{
2432
+ "claude-code": "claude-code";
2433
+ native: "native";
2434
+ }>>;
2435
+ account: z.ZodOptional<z.ZodString>;
2436
+ effort: z.ZodOptional<z.ZodString>;
2437
+ thinking: z.ZodOptional<z.ZodBoolean>;
2438
+ fast: z.ZodOptional<z.ZodBoolean>;
2439
+ }, z.core.$strip>>;
2440
+ }, z.core.$strip>>;
2003
2441
  explain: z.ZodOptional<z.ZodString>;
2004
2442
  requestId: z.ZodString;
2005
2443
  status: z.ZodEnum<{
@@ -2187,6 +2625,32 @@ export declare const sandboxContract: {
2187
2625
  title: z.ZodString;
2188
2626
  text: z.ZodString;
2189
2627
  }, z.core.$strip>>>;
2628
+ speaker: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2629
+ kind: z.ZodLiteral<"person">;
2630
+ email: z.ZodString;
2631
+ name: z.ZodOptional<z.ZodString>;
2632
+ }, z.core.$strip>, z.ZodObject<{
2633
+ kind: z.ZodLiteral<"program">;
2634
+ token: z.ZodString;
2635
+ }, z.core.$strip>, z.ZodObject<{
2636
+ kind: z.ZodLiteral<"agent">;
2637
+ conversationId: z.ZodString;
2638
+ }, z.core.$strip>, z.ZodObject<{
2639
+ kind: z.ZodLiteral<"sandbox">;
2640
+ source: z.ZodOptional<z.ZodString>;
2641
+ }, z.core.$strip>], "kind">>;
2642
+ errand: z.ZodOptional<z.ZodEnum<{
2643
+ "ci-fix": "ci-fix";
2644
+ "ci-fix-nudge": "ci-fix-nudge";
2645
+ "land-breakage": "land-breakage";
2646
+ "land-conflict": "land-conflict";
2647
+ "land-fix": "land-fix";
2648
+ "land-fix-nudge": "land-fix-nudge";
2649
+ "land-held": "land-held";
2650
+ "push-fix": "push-fix";
2651
+ "push-fix-nudge": "push-fix-nudge";
2652
+ "verify-nudge": "verify-nudge";
2653
+ }>>;
2190
2654
  placed: z.ZodOptional<z.ZodBoolean>;
2191
2655
  noticeAction: z.ZodOptional<z.ZodEnum<{
2192
2656
  depsInstall: "depsInstall";
@@ -2266,6 +2730,39 @@ export declare const sandboxContract: {
2266
2730
  end: z.ZodNumber;
2267
2731
  }, z.core.$strip>>;
2268
2732
  }, z.core.$strip>>;
2733
+ child: z.ZodOptional<z.ZodObject<{
2734
+ provider: z.ZodString;
2735
+ model: z.ZodString;
2736
+ harness: z.ZodOptional<z.ZodEnum<{
2737
+ "claude-code": "claude-code";
2738
+ native: "native";
2739
+ }>>;
2740
+ account: z.ZodOptional<z.ZodString>;
2741
+ effort: z.ZodOptional<z.ZodString>;
2742
+ thinking: z.ZodOptional<z.ZodBoolean>;
2743
+ fast: z.ZodOptional<z.ZodBoolean>;
2744
+ move: z.ZodEnum<{
2745
+ answer: "answer";
2746
+ send: "send";
2747
+ spawn: "spawn";
2748
+ }>;
2749
+ child: z.ZodOptional<z.ZodString>;
2750
+ task: z.ZodOptional<z.ZodString>;
2751
+ message: z.ZodOptional<z.ZodString>;
2752
+ on: z.ZodOptional<z.ZodString>;
2753
+ proposed: z.ZodOptional<z.ZodObject<{
2754
+ provider: z.ZodString;
2755
+ model: z.ZodString;
2756
+ harness: z.ZodOptional<z.ZodEnum<{
2757
+ "claude-code": "claude-code";
2758
+ native: "native";
2759
+ }>>;
2760
+ account: z.ZodOptional<z.ZodString>;
2761
+ effort: z.ZodOptional<z.ZodString>;
2762
+ thinking: z.ZodOptional<z.ZodBoolean>;
2763
+ fast: z.ZodOptional<z.ZodBoolean>;
2764
+ }, z.core.$strip>>;
2765
+ }, z.core.$strip>>;
2269
2766
  explain: z.ZodOptional<z.ZodString>;
2270
2767
  requestId: z.ZodString;
2271
2768
  status: z.ZodEnum<{
@@ -2464,6 +2961,18 @@ export declare const sandboxContract: {
2464
2961
  once: "once";
2465
2962
  }>;
2466
2963
  feedback: z.ZodOptional<z.ZodString>;
2964
+ child: z.ZodOptional<z.ZodObject<{
2965
+ provider: z.ZodString;
2966
+ model: z.ZodString;
2967
+ harness: z.ZodOptional<z.ZodEnum<{
2968
+ "claude-code": "claude-code";
2969
+ native: "native";
2970
+ }>>;
2971
+ account: z.ZodOptional<z.ZodString>;
2972
+ effort: z.ZodOptional<z.ZodString>;
2973
+ thinking: z.ZodOptional<z.ZodBoolean>;
2974
+ fast: z.ZodOptional<z.ZodBoolean>;
2975
+ }, z.core.$strip>>;
2467
2976
  }, z.core.$strip>, z.ZodObject<{
2468
2977
  kind: z.ZodLiteral<"browser_help">;
2469
2978
  requestId: z.ZodString;
@@ -2600,6 +3109,13 @@ export declare const sandboxContract: {
2600
3109
  }, z.core.$strip>, z.ZodObject<{
2601
3110
  run: z.ZodString;
2602
3111
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
3112
+ switchAccount: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
3113
+ conversationId: z.ZodString;
3114
+ account: z.ZodString;
3115
+ carry: z.ZodOptional<z.ZodBoolean>;
3116
+ }, z.core.$strip>, z.ZodObject<{
3117
+ run: z.ZodOptional<z.ZodString>;
3118
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
2603
3119
  rewind: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2604
3120
  conversationId: z.ZodString;
2605
3121
  index: z.ZodNumber;
@@ -2691,6 +3207,7 @@ export declare const sandboxContract: {
2691
3207
  runner: z.ZodOptional<z.ZodString>;
2692
3208
  startIn: z.ZodOptional<z.ZodString>;
2693
3209
  actsAs: z.ZodOptional<z.ZodString>;
3210
+ lastActsAs: z.ZodOptional<z.ZodString>;
2694
3211
  model: z.ZodOptional<z.ZodString>;
2695
3212
  effort: z.ZodOptional<z.ZodString>;
2696
3213
  thinking: z.ZodOptional<z.ZodBoolean>;
@@ -2755,12 +3272,11 @@ export declare const sandboxContract: {
2755
3272
  at: z.ZodNumber;
2756
3273
  ttlMs: z.ZodNumber;
2757
3274
  rollsAt: z.ZodOptional<z.ZodNumber>;
2758
- keepable: z.ZodOptional<z.ZodBoolean>;
3275
+ keepableUntil: z.ZodOptional<z.ZodNumber>;
2759
3276
  }, z.core.$strip>>;
2760
3277
  keepWarm: z.ZodOptional<z.ZodObject<{
2761
3278
  since: z.ZodNumber;
2762
3279
  until: z.ZodNumber;
2763
- auto: z.ZodOptional<z.ZodBoolean>;
2764
3280
  refreshes: z.ZodNumber;
2765
3281
  readTokens: z.ZodOptional<z.ZodNumber>;
2766
3282
  ended: z.ZodOptional<z.ZodObject<{
@@ -2771,10 +3287,6 @@ export declare const sandboxContract: {
2771
3287
  cold: "cold";
2772
3288
  elapsed: "elapsed";
2773
3289
  failed: "failed";
2774
- limited: "limited";
2775
- midnight: "midnight";
2776
- moved: "moved";
2777
- rewrote: "rewrote";
2778
3290
  }>;
2779
3291
  detail: z.ZodOptional<z.ZodString>;
2780
3292
  }, z.core.$strip>>;
@@ -2815,6 +3327,7 @@ export declare const sandboxContract: {
2815
3327
  note: z.ZodOptional<z.ZodString>;
2816
3328
  breaking: z.ZodOptional<z.ZodString>;
2817
3329
  testNote: z.ZodOptional<z.ZodString>;
3330
+ allows: z.ZodOptional<z.ZodArray<z.ZodString>>;
2818
3331
  }, z.core.$strip>>;
2819
3332
  startedAt: z.ZodOptional<z.ZodNumber>;
2820
3333
  run: z.ZodOptional<z.ZodString>;
@@ -2861,6 +3374,17 @@ export declare const sandboxContract: {
2861
3374
  }, z.core.$strip>>;
2862
3375
  check: z.ZodOptional<z.ZodString>;
2863
3376
  }, z.core.$strip>>;
3377
+ proof: z.ZodOptional<z.ZodObject<{
3378
+ at: z.ZodNumber;
3379
+ verification: z.ZodEnum<{
3380
+ failing: "failing";
3381
+ "no-code": "no-code";
3382
+ unproven: "unproven";
3383
+ verified: "verified";
3384
+ }>;
3385
+ check: z.ZodOptional<z.ZodString>;
3386
+ unviewed: z.ZodOptional<z.ZodNumber>;
3387
+ }, z.core.$strip>>;
2864
3388
  turns: z.ZodOptional<z.ZodNumber>;
2865
3389
  toolUses: z.ZodOptional<z.ZodNumber>;
2866
3390
  subagents: z.ZodOptional<z.ZodObject<{
@@ -2897,6 +3421,7 @@ export declare const sandboxContract: {
2897
3421
  index: z.ZodNumber;
2898
3422
  total: z.ZodNumber;
2899
3423
  }, z.core.$strip>>;
3424
+ awaitingWake: z.ZodOptional<z.ZodBoolean>;
2900
3425
  watches: z.ZodOptional<z.ZodArray<z.ZodObject<{
2901
3426
  id: z.ZodString;
2902
3427
  note: z.ZodString;
@@ -2910,6 +3435,14 @@ export declare const sandboxContract: {
2910
3435
  startedAt: z.ZodNumber;
2911
3436
  endedAt: z.ZodOptional<z.ZodNumber>;
2912
3437
  exitCode: z.ZodOptional<z.ZodNumber>;
3438
+ watch: z.ZodOptional<z.ZodString>;
3439
+ handed: z.ZodOptional<z.ZodBoolean>;
3440
+ ports: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
3441
+ stoppedBy: z.ZodOptional<z.ZodEnum<{
3442
+ agent: "agent";
3443
+ person: "person";
3444
+ turn: "turn";
3445
+ }>>;
2913
3446
  }, z.core.$strip>>>;
2914
3447
  archivedAt: z.ZodOptional<z.ZodNumber>;
2915
3448
  }, z.core.$strip>>;
@@ -2968,6 +3501,7 @@ export declare const sandboxContract: {
2968
3501
  runner: z.ZodOptional<z.ZodString>;
2969
3502
  startIn: z.ZodOptional<z.ZodString>;
2970
3503
  actsAs: z.ZodOptional<z.ZodString>;
3504
+ lastActsAs: z.ZodOptional<z.ZodString>;
2971
3505
  model: z.ZodOptional<z.ZodString>;
2972
3506
  effort: z.ZodOptional<z.ZodString>;
2973
3507
  thinking: z.ZodOptional<z.ZodBoolean>;
@@ -3032,12 +3566,11 @@ export declare const sandboxContract: {
3032
3566
  at: z.ZodNumber;
3033
3567
  ttlMs: z.ZodNumber;
3034
3568
  rollsAt: z.ZodOptional<z.ZodNumber>;
3035
- keepable: z.ZodOptional<z.ZodBoolean>;
3569
+ keepableUntil: z.ZodOptional<z.ZodNumber>;
3036
3570
  }, z.core.$strip>>;
3037
3571
  keepWarm: z.ZodOptional<z.ZodObject<{
3038
3572
  since: z.ZodNumber;
3039
3573
  until: z.ZodNumber;
3040
- auto: z.ZodOptional<z.ZodBoolean>;
3041
3574
  refreshes: z.ZodNumber;
3042
3575
  readTokens: z.ZodOptional<z.ZodNumber>;
3043
3576
  ended: z.ZodOptional<z.ZodObject<{
@@ -3048,10 +3581,6 @@ export declare const sandboxContract: {
3048
3581
  cold: "cold";
3049
3582
  elapsed: "elapsed";
3050
3583
  failed: "failed";
3051
- limited: "limited";
3052
- midnight: "midnight";
3053
- moved: "moved";
3054
- rewrote: "rewrote";
3055
3584
  }>;
3056
3585
  detail: z.ZodOptional<z.ZodString>;
3057
3586
  }, z.core.$strip>>;
@@ -3092,6 +3621,7 @@ export declare const sandboxContract: {
3092
3621
  note: z.ZodOptional<z.ZodString>;
3093
3622
  breaking: z.ZodOptional<z.ZodString>;
3094
3623
  testNote: z.ZodOptional<z.ZodString>;
3624
+ allows: z.ZodOptional<z.ZodArray<z.ZodString>>;
3095
3625
  }, z.core.$strip>>;
3096
3626
  startedAt: z.ZodOptional<z.ZodNumber>;
3097
3627
  run: z.ZodOptional<z.ZodString>;
@@ -3138,6 +3668,17 @@ export declare const sandboxContract: {
3138
3668
  }, z.core.$strip>>;
3139
3669
  check: z.ZodOptional<z.ZodString>;
3140
3670
  }, z.core.$strip>>;
3671
+ proof: z.ZodOptional<z.ZodObject<{
3672
+ at: z.ZodNumber;
3673
+ verification: z.ZodEnum<{
3674
+ failing: "failing";
3675
+ "no-code": "no-code";
3676
+ unproven: "unproven";
3677
+ verified: "verified";
3678
+ }>;
3679
+ check: z.ZodOptional<z.ZodString>;
3680
+ unviewed: z.ZodOptional<z.ZodNumber>;
3681
+ }, z.core.$strip>>;
3141
3682
  turns: z.ZodOptional<z.ZodNumber>;
3142
3683
  toolUses: z.ZodOptional<z.ZodNumber>;
3143
3684
  subagents: z.ZodOptional<z.ZodObject<{
@@ -3174,6 +3715,7 @@ export declare const sandboxContract: {
3174
3715
  index: z.ZodNumber;
3175
3716
  total: z.ZodNumber;
3176
3717
  }, z.core.$strip>>;
3718
+ awaitingWake: z.ZodOptional<z.ZodBoolean>;
3177
3719
  watches: z.ZodOptional<z.ZodArray<z.ZodObject<{
3178
3720
  id: z.ZodString;
3179
3721
  note: z.ZodString;
@@ -3187,6 +3729,14 @@ export declare const sandboxContract: {
3187
3729
  startedAt: z.ZodNumber;
3188
3730
  endedAt: z.ZodOptional<z.ZodNumber>;
3189
3731
  exitCode: z.ZodOptional<z.ZodNumber>;
3732
+ watch: z.ZodOptional<z.ZodString>;
3733
+ handed: z.ZodOptional<z.ZodBoolean>;
3734
+ ports: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
3735
+ stoppedBy: z.ZodOptional<z.ZodEnum<{
3736
+ agent: "agent";
3737
+ person: "person";
3738
+ turn: "turn";
3739
+ }>>;
3190
3740
  }, z.core.$strip>>>;
3191
3741
  archivedAt: z.ZodOptional<z.ZodNumber>;
3192
3742
  }, z.core.$strip>>;
@@ -3263,6 +3813,7 @@ export declare const sandboxContract: {
3263
3813
  runner: z.ZodOptional<z.ZodString>;
3264
3814
  startIn: z.ZodOptional<z.ZodString>;
3265
3815
  actsAs: z.ZodOptional<z.ZodString>;
3816
+ lastActsAs: z.ZodOptional<z.ZodString>;
3266
3817
  model: z.ZodOptional<z.ZodString>;
3267
3818
  effort: z.ZodOptional<z.ZodString>;
3268
3819
  thinking: z.ZodOptional<z.ZodBoolean>;
@@ -3327,12 +3878,11 @@ export declare const sandboxContract: {
3327
3878
  at: z.ZodNumber;
3328
3879
  ttlMs: z.ZodNumber;
3329
3880
  rollsAt: z.ZodOptional<z.ZodNumber>;
3330
- keepable: z.ZodOptional<z.ZodBoolean>;
3881
+ keepableUntil: z.ZodOptional<z.ZodNumber>;
3331
3882
  }, z.core.$strip>>;
3332
3883
  keepWarm: z.ZodOptional<z.ZodObject<{
3333
3884
  since: z.ZodNumber;
3334
3885
  until: z.ZodNumber;
3335
- auto: z.ZodOptional<z.ZodBoolean>;
3336
3886
  refreshes: z.ZodNumber;
3337
3887
  readTokens: z.ZodOptional<z.ZodNumber>;
3338
3888
  ended: z.ZodOptional<z.ZodObject<{
@@ -3343,10 +3893,6 @@ export declare const sandboxContract: {
3343
3893
  cold: "cold";
3344
3894
  elapsed: "elapsed";
3345
3895
  failed: "failed";
3346
- limited: "limited";
3347
- midnight: "midnight";
3348
- moved: "moved";
3349
- rewrote: "rewrote";
3350
3896
  }>;
3351
3897
  detail: z.ZodOptional<z.ZodString>;
3352
3898
  }, z.core.$strip>>;
@@ -3387,6 +3933,7 @@ export declare const sandboxContract: {
3387
3933
  note: z.ZodOptional<z.ZodString>;
3388
3934
  breaking: z.ZodOptional<z.ZodString>;
3389
3935
  testNote: z.ZodOptional<z.ZodString>;
3936
+ allows: z.ZodOptional<z.ZodArray<z.ZodString>>;
3390
3937
  }, z.core.$strip>>;
3391
3938
  startedAt: z.ZodOptional<z.ZodNumber>;
3392
3939
  run: z.ZodOptional<z.ZodString>;
@@ -3433,6 +3980,17 @@ export declare const sandboxContract: {
3433
3980
  }, z.core.$strip>>;
3434
3981
  check: z.ZodOptional<z.ZodString>;
3435
3982
  }, z.core.$strip>>;
3983
+ proof: z.ZodOptional<z.ZodObject<{
3984
+ at: z.ZodNumber;
3985
+ verification: z.ZodEnum<{
3986
+ failing: "failing";
3987
+ "no-code": "no-code";
3988
+ unproven: "unproven";
3989
+ verified: "verified";
3990
+ }>;
3991
+ check: z.ZodOptional<z.ZodString>;
3992
+ unviewed: z.ZodOptional<z.ZodNumber>;
3993
+ }, z.core.$strip>>;
3436
3994
  turns: z.ZodOptional<z.ZodNumber>;
3437
3995
  toolUses: z.ZodOptional<z.ZodNumber>;
3438
3996
  subagents: z.ZodOptional<z.ZodObject<{
@@ -3469,6 +4027,7 @@ export declare const sandboxContract: {
3469
4027
  index: z.ZodNumber;
3470
4028
  total: z.ZodNumber;
3471
4029
  }, z.core.$strip>>;
4030
+ awaitingWake: z.ZodOptional<z.ZodBoolean>;
3472
4031
  watches: z.ZodOptional<z.ZodArray<z.ZodObject<{
3473
4032
  id: z.ZodString;
3474
4033
  note: z.ZodString;
@@ -3482,6 +4041,14 @@ export declare const sandboxContract: {
3482
4041
  startedAt: z.ZodNumber;
3483
4042
  endedAt: z.ZodOptional<z.ZodNumber>;
3484
4043
  exitCode: z.ZodOptional<z.ZodNumber>;
4044
+ watch: z.ZodOptional<z.ZodString>;
4045
+ handed: z.ZodOptional<z.ZodBoolean>;
4046
+ ports: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
4047
+ stoppedBy: z.ZodOptional<z.ZodEnum<{
4048
+ agent: "agent";
4049
+ person: "person";
4050
+ turn: "turn";
4051
+ }>>;
3485
4052
  }, z.core.$strip>>>;
3486
4053
  archivedAt: z.ZodOptional<z.ZodNumber>;
3487
4054
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
@@ -3525,6 +4092,32 @@ export declare const sandboxContract: {
3525
4092
  title: z.ZodString;
3526
4093
  text: z.ZodString;
3527
4094
  }, z.core.$strip>>>;
4095
+ speaker: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
4096
+ kind: z.ZodLiteral<"person">;
4097
+ email: z.ZodString;
4098
+ name: z.ZodOptional<z.ZodString>;
4099
+ }, z.core.$strip>, z.ZodObject<{
4100
+ kind: z.ZodLiteral<"program">;
4101
+ token: z.ZodString;
4102
+ }, z.core.$strip>, z.ZodObject<{
4103
+ kind: z.ZodLiteral<"agent">;
4104
+ conversationId: z.ZodString;
4105
+ }, z.core.$strip>, z.ZodObject<{
4106
+ kind: z.ZodLiteral<"sandbox">;
4107
+ source: z.ZodOptional<z.ZodString>;
4108
+ }, z.core.$strip>], "kind">>;
4109
+ errand: z.ZodOptional<z.ZodEnum<{
4110
+ "ci-fix": "ci-fix";
4111
+ "ci-fix-nudge": "ci-fix-nudge";
4112
+ "land-breakage": "land-breakage";
4113
+ "land-conflict": "land-conflict";
4114
+ "land-fix": "land-fix";
4115
+ "land-fix-nudge": "land-fix-nudge";
4116
+ "land-held": "land-held";
4117
+ "push-fix": "push-fix";
4118
+ "push-fix-nudge": "push-fix-nudge";
4119
+ "verify-nudge": "verify-nudge";
4120
+ }>>;
3528
4121
  placed: z.ZodOptional<z.ZodBoolean>;
3529
4122
  noticeAction: z.ZodOptional<z.ZodEnum<{
3530
4123
  depsInstall: "depsInstall";
@@ -3604,6 +4197,39 @@ export declare const sandboxContract: {
3604
4197
  end: z.ZodNumber;
3605
4198
  }, z.core.$strip>>;
3606
4199
  }, z.core.$strip>>;
4200
+ child: z.ZodOptional<z.ZodObject<{
4201
+ provider: z.ZodString;
4202
+ model: z.ZodString;
4203
+ harness: z.ZodOptional<z.ZodEnum<{
4204
+ "claude-code": "claude-code";
4205
+ native: "native";
4206
+ }>>;
4207
+ account: z.ZodOptional<z.ZodString>;
4208
+ effort: z.ZodOptional<z.ZodString>;
4209
+ thinking: z.ZodOptional<z.ZodBoolean>;
4210
+ fast: z.ZodOptional<z.ZodBoolean>;
4211
+ move: z.ZodEnum<{
4212
+ answer: "answer";
4213
+ send: "send";
4214
+ spawn: "spawn";
4215
+ }>;
4216
+ child: z.ZodOptional<z.ZodString>;
4217
+ task: z.ZodOptional<z.ZodString>;
4218
+ message: z.ZodOptional<z.ZodString>;
4219
+ on: z.ZodOptional<z.ZodString>;
4220
+ proposed: z.ZodOptional<z.ZodObject<{
4221
+ provider: z.ZodString;
4222
+ model: z.ZodString;
4223
+ harness: z.ZodOptional<z.ZodEnum<{
4224
+ "claude-code": "claude-code";
4225
+ native: "native";
4226
+ }>>;
4227
+ account: z.ZodOptional<z.ZodString>;
4228
+ effort: z.ZodOptional<z.ZodString>;
4229
+ thinking: z.ZodOptional<z.ZodBoolean>;
4230
+ fast: z.ZodOptional<z.ZodBoolean>;
4231
+ }, z.core.$strip>>;
4232
+ }, z.core.$strip>>;
3607
4233
  explain: z.ZodOptional<z.ZodString>;
3608
4234
  requestId: z.ZodString;
3609
4235
  status: z.ZodEnum<{
@@ -3866,6 +4492,7 @@ export declare const sandboxContract: {
3866
4492
  runner: z.ZodOptional<z.ZodString>;
3867
4493
  startIn: z.ZodOptional<z.ZodString>;
3868
4494
  actsAs: z.ZodOptional<z.ZodString>;
4495
+ lastActsAs: z.ZodOptional<z.ZodString>;
3869
4496
  model: z.ZodOptional<z.ZodString>;
3870
4497
  effort: z.ZodOptional<z.ZodString>;
3871
4498
  thinking: z.ZodOptional<z.ZodBoolean>;
@@ -3930,12 +4557,11 @@ export declare const sandboxContract: {
3930
4557
  at: z.ZodNumber;
3931
4558
  ttlMs: z.ZodNumber;
3932
4559
  rollsAt: z.ZodOptional<z.ZodNumber>;
3933
- keepable: z.ZodOptional<z.ZodBoolean>;
4560
+ keepableUntil: z.ZodOptional<z.ZodNumber>;
3934
4561
  }, z.core.$strip>>;
3935
4562
  keepWarm: z.ZodOptional<z.ZodObject<{
3936
4563
  since: z.ZodNumber;
3937
4564
  until: z.ZodNumber;
3938
- auto: z.ZodOptional<z.ZodBoolean>;
3939
4565
  refreshes: z.ZodNumber;
3940
4566
  readTokens: z.ZodOptional<z.ZodNumber>;
3941
4567
  ended: z.ZodOptional<z.ZodObject<{
@@ -3946,10 +4572,6 @@ export declare const sandboxContract: {
3946
4572
  cold: "cold";
3947
4573
  elapsed: "elapsed";
3948
4574
  failed: "failed";
3949
- limited: "limited";
3950
- midnight: "midnight";
3951
- moved: "moved";
3952
- rewrote: "rewrote";
3953
4575
  }>;
3954
4576
  detail: z.ZodOptional<z.ZodString>;
3955
4577
  }, z.core.$strip>>;
@@ -3990,6 +4612,7 @@ export declare const sandboxContract: {
3990
4612
  note: z.ZodOptional<z.ZodString>;
3991
4613
  breaking: z.ZodOptional<z.ZodString>;
3992
4614
  testNote: z.ZodOptional<z.ZodString>;
4615
+ allows: z.ZodOptional<z.ZodArray<z.ZodString>>;
3993
4616
  }, z.core.$strip>>;
3994
4617
  startedAt: z.ZodOptional<z.ZodNumber>;
3995
4618
  run: z.ZodOptional<z.ZodString>;
@@ -4036,6 +4659,17 @@ export declare const sandboxContract: {
4036
4659
  }, z.core.$strip>>;
4037
4660
  check: z.ZodOptional<z.ZodString>;
4038
4661
  }, z.core.$strip>>;
4662
+ proof: z.ZodOptional<z.ZodObject<{
4663
+ at: z.ZodNumber;
4664
+ verification: z.ZodEnum<{
4665
+ failing: "failing";
4666
+ "no-code": "no-code";
4667
+ unproven: "unproven";
4668
+ verified: "verified";
4669
+ }>;
4670
+ check: z.ZodOptional<z.ZodString>;
4671
+ unviewed: z.ZodOptional<z.ZodNumber>;
4672
+ }, z.core.$strip>>;
4039
4673
  turns: z.ZodOptional<z.ZodNumber>;
4040
4674
  toolUses: z.ZodOptional<z.ZodNumber>;
4041
4675
  subagents: z.ZodOptional<z.ZodObject<{
@@ -4072,6 +4706,7 @@ export declare const sandboxContract: {
4072
4706
  index: z.ZodNumber;
4073
4707
  total: z.ZodNumber;
4074
4708
  }, z.core.$strip>>;
4709
+ awaitingWake: z.ZodOptional<z.ZodBoolean>;
4075
4710
  watches: z.ZodOptional<z.ZodArray<z.ZodObject<{
4076
4711
  id: z.ZodString;
4077
4712
  note: z.ZodString;
@@ -4085,6 +4720,14 @@ export declare const sandboxContract: {
4085
4720
  startedAt: z.ZodNumber;
4086
4721
  endedAt: z.ZodOptional<z.ZodNumber>;
4087
4722
  exitCode: z.ZodOptional<z.ZodNumber>;
4723
+ watch: z.ZodOptional<z.ZodString>;
4724
+ handed: z.ZodOptional<z.ZodBoolean>;
4725
+ ports: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
4726
+ stoppedBy: z.ZodOptional<z.ZodEnum<{
4727
+ agent: "agent";
4728
+ person: "person";
4729
+ turn: "turn";
4730
+ }>>;
4088
4731
  }, z.core.$strip>>>;
4089
4732
  archivedAt: z.ZodOptional<z.ZodNumber>;
4090
4733
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
@@ -4125,6 +4768,7 @@ export declare const sandboxContract: {
4125
4768
  runner: z.ZodOptional<z.ZodString>;
4126
4769
  startIn: z.ZodOptional<z.ZodString>;
4127
4770
  actsAs: z.ZodOptional<z.ZodString>;
4771
+ lastActsAs: z.ZodOptional<z.ZodString>;
4128
4772
  model: z.ZodOptional<z.ZodString>;
4129
4773
  effort: z.ZodOptional<z.ZodString>;
4130
4774
  thinking: z.ZodOptional<z.ZodBoolean>;
@@ -4189,12 +4833,11 @@ export declare const sandboxContract: {
4189
4833
  at: z.ZodNumber;
4190
4834
  ttlMs: z.ZodNumber;
4191
4835
  rollsAt: z.ZodOptional<z.ZodNumber>;
4192
- keepable: z.ZodOptional<z.ZodBoolean>;
4836
+ keepableUntil: z.ZodOptional<z.ZodNumber>;
4193
4837
  }, z.core.$strip>>;
4194
4838
  keepWarm: z.ZodOptional<z.ZodObject<{
4195
4839
  since: z.ZodNumber;
4196
4840
  until: z.ZodNumber;
4197
- auto: z.ZodOptional<z.ZodBoolean>;
4198
4841
  refreshes: z.ZodNumber;
4199
4842
  readTokens: z.ZodOptional<z.ZodNumber>;
4200
4843
  ended: z.ZodOptional<z.ZodObject<{
@@ -4205,10 +4848,6 @@ export declare const sandboxContract: {
4205
4848
  cold: "cold";
4206
4849
  elapsed: "elapsed";
4207
4850
  failed: "failed";
4208
- limited: "limited";
4209
- midnight: "midnight";
4210
- moved: "moved";
4211
- rewrote: "rewrote";
4212
4851
  }>;
4213
4852
  detail: z.ZodOptional<z.ZodString>;
4214
4853
  }, z.core.$strip>>;
@@ -4249,6 +4888,7 @@ export declare const sandboxContract: {
4249
4888
  note: z.ZodOptional<z.ZodString>;
4250
4889
  breaking: z.ZodOptional<z.ZodString>;
4251
4890
  testNote: z.ZodOptional<z.ZodString>;
4891
+ allows: z.ZodOptional<z.ZodArray<z.ZodString>>;
4252
4892
  }, z.core.$strip>>;
4253
4893
  startedAt: z.ZodOptional<z.ZodNumber>;
4254
4894
  run: z.ZodOptional<z.ZodString>;
@@ -4295,6 +4935,17 @@ export declare const sandboxContract: {
4295
4935
  }, z.core.$strip>>;
4296
4936
  check: z.ZodOptional<z.ZodString>;
4297
4937
  }, z.core.$strip>>;
4938
+ proof: z.ZodOptional<z.ZodObject<{
4939
+ at: z.ZodNumber;
4940
+ verification: z.ZodEnum<{
4941
+ failing: "failing";
4942
+ "no-code": "no-code";
4943
+ unproven: "unproven";
4944
+ verified: "verified";
4945
+ }>;
4946
+ check: z.ZodOptional<z.ZodString>;
4947
+ unviewed: z.ZodOptional<z.ZodNumber>;
4948
+ }, z.core.$strip>>;
4298
4949
  turns: z.ZodOptional<z.ZodNumber>;
4299
4950
  toolUses: z.ZodOptional<z.ZodNumber>;
4300
4951
  subagents: z.ZodOptional<z.ZodObject<{
@@ -4331,6 +4982,7 @@ export declare const sandboxContract: {
4331
4982
  index: z.ZodNumber;
4332
4983
  total: z.ZodNumber;
4333
4984
  }, z.core.$strip>>;
4985
+ awaitingWake: z.ZodOptional<z.ZodBoolean>;
4334
4986
  watches: z.ZodOptional<z.ZodArray<z.ZodObject<{
4335
4987
  id: z.ZodString;
4336
4988
  note: z.ZodString;
@@ -4344,6 +4996,14 @@ export declare const sandboxContract: {
4344
4996
  startedAt: z.ZodNumber;
4345
4997
  endedAt: z.ZodOptional<z.ZodNumber>;
4346
4998
  exitCode: z.ZodOptional<z.ZodNumber>;
4999
+ watch: z.ZodOptional<z.ZodString>;
5000
+ handed: z.ZodOptional<z.ZodBoolean>;
5001
+ ports: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
5002
+ stoppedBy: z.ZodOptional<z.ZodEnum<{
5003
+ agent: "agent";
5004
+ person: "person";
5005
+ turn: "turn";
5006
+ }>>;
4347
5007
  }, z.core.$strip>>>;
4348
5008
  archivedAt: z.ZodOptional<z.ZodNumber>;
4349
5009
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
@@ -4394,6 +5054,7 @@ export declare const sandboxContract: {
4394
5054
  runner: z.ZodOptional<z.ZodString>;
4395
5055
  startIn: z.ZodOptional<z.ZodString>;
4396
5056
  actsAs: z.ZodOptional<z.ZodString>;
5057
+ lastActsAs: z.ZodOptional<z.ZodString>;
4397
5058
  model: z.ZodOptional<z.ZodString>;
4398
5059
  effort: z.ZodOptional<z.ZodString>;
4399
5060
  thinking: z.ZodOptional<z.ZodBoolean>;
@@ -4458,12 +5119,11 @@ export declare const sandboxContract: {
4458
5119
  at: z.ZodNumber;
4459
5120
  ttlMs: z.ZodNumber;
4460
5121
  rollsAt: z.ZodOptional<z.ZodNumber>;
4461
- keepable: z.ZodOptional<z.ZodBoolean>;
5122
+ keepableUntil: z.ZodOptional<z.ZodNumber>;
4462
5123
  }, z.core.$strip>>;
4463
5124
  keepWarm: z.ZodOptional<z.ZodObject<{
4464
5125
  since: z.ZodNumber;
4465
5126
  until: z.ZodNumber;
4466
- auto: z.ZodOptional<z.ZodBoolean>;
4467
5127
  refreshes: z.ZodNumber;
4468
5128
  readTokens: z.ZodOptional<z.ZodNumber>;
4469
5129
  ended: z.ZodOptional<z.ZodObject<{
@@ -4474,10 +5134,6 @@ export declare const sandboxContract: {
4474
5134
  cold: "cold";
4475
5135
  elapsed: "elapsed";
4476
5136
  failed: "failed";
4477
- limited: "limited";
4478
- midnight: "midnight";
4479
- moved: "moved";
4480
- rewrote: "rewrote";
4481
5137
  }>;
4482
5138
  detail: z.ZodOptional<z.ZodString>;
4483
5139
  }, z.core.$strip>>;
@@ -4518,6 +5174,7 @@ export declare const sandboxContract: {
4518
5174
  note: z.ZodOptional<z.ZodString>;
4519
5175
  breaking: z.ZodOptional<z.ZodString>;
4520
5176
  testNote: z.ZodOptional<z.ZodString>;
5177
+ allows: z.ZodOptional<z.ZodArray<z.ZodString>>;
4521
5178
  }, z.core.$strip>>;
4522
5179
  startedAt: z.ZodOptional<z.ZodNumber>;
4523
5180
  run: z.ZodOptional<z.ZodString>;
@@ -4564,6 +5221,17 @@ export declare const sandboxContract: {
4564
5221
  }, z.core.$strip>>;
4565
5222
  check: z.ZodOptional<z.ZodString>;
4566
5223
  }, z.core.$strip>>;
5224
+ proof: z.ZodOptional<z.ZodObject<{
5225
+ at: z.ZodNumber;
5226
+ verification: z.ZodEnum<{
5227
+ failing: "failing";
5228
+ "no-code": "no-code";
5229
+ unproven: "unproven";
5230
+ verified: "verified";
5231
+ }>;
5232
+ check: z.ZodOptional<z.ZodString>;
5233
+ unviewed: z.ZodOptional<z.ZodNumber>;
5234
+ }, z.core.$strip>>;
4567
5235
  turns: z.ZodOptional<z.ZodNumber>;
4568
5236
  toolUses: z.ZodOptional<z.ZodNumber>;
4569
5237
  subagents: z.ZodOptional<z.ZodObject<{
@@ -4600,6 +5268,7 @@ export declare const sandboxContract: {
4600
5268
  index: z.ZodNumber;
4601
5269
  total: z.ZodNumber;
4602
5270
  }, z.core.$strip>>;
5271
+ awaitingWake: z.ZodOptional<z.ZodBoolean>;
4603
5272
  watches: z.ZodOptional<z.ZodArray<z.ZodObject<{
4604
5273
  id: z.ZodString;
4605
5274
  note: z.ZodString;
@@ -4613,6 +5282,14 @@ export declare const sandboxContract: {
4613
5282
  startedAt: z.ZodNumber;
4614
5283
  endedAt: z.ZodOptional<z.ZodNumber>;
4615
5284
  exitCode: z.ZodOptional<z.ZodNumber>;
5285
+ watch: z.ZodOptional<z.ZodString>;
5286
+ handed: z.ZodOptional<z.ZodBoolean>;
5287
+ ports: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
5288
+ stoppedBy: z.ZodOptional<z.ZodEnum<{
5289
+ agent: "agent";
5290
+ person: "person";
5291
+ turn: "turn";
5292
+ }>>;
4616
5293
  }, z.core.$strip>>>;
4617
5294
  archivedAt: z.ZodOptional<z.ZodNumber>;
4618
5295
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
@@ -4653,6 +5330,7 @@ export declare const sandboxContract: {
4653
5330
  runner: z.ZodOptional<z.ZodString>;
4654
5331
  startIn: z.ZodOptional<z.ZodString>;
4655
5332
  actsAs: z.ZodOptional<z.ZodString>;
5333
+ lastActsAs: z.ZodOptional<z.ZodString>;
4656
5334
  model: z.ZodOptional<z.ZodString>;
4657
5335
  effort: z.ZodOptional<z.ZodString>;
4658
5336
  thinking: z.ZodOptional<z.ZodBoolean>;
@@ -4717,12 +5395,11 @@ export declare const sandboxContract: {
4717
5395
  at: z.ZodNumber;
4718
5396
  ttlMs: z.ZodNumber;
4719
5397
  rollsAt: z.ZodOptional<z.ZodNumber>;
4720
- keepable: z.ZodOptional<z.ZodBoolean>;
5398
+ keepableUntil: z.ZodOptional<z.ZodNumber>;
4721
5399
  }, z.core.$strip>>;
4722
5400
  keepWarm: z.ZodOptional<z.ZodObject<{
4723
5401
  since: z.ZodNumber;
4724
5402
  until: z.ZodNumber;
4725
- auto: z.ZodOptional<z.ZodBoolean>;
4726
5403
  refreshes: z.ZodNumber;
4727
5404
  readTokens: z.ZodOptional<z.ZodNumber>;
4728
5405
  ended: z.ZodOptional<z.ZodObject<{
@@ -4733,10 +5410,6 @@ export declare const sandboxContract: {
4733
5410
  cold: "cold";
4734
5411
  elapsed: "elapsed";
4735
5412
  failed: "failed";
4736
- limited: "limited";
4737
- midnight: "midnight";
4738
- moved: "moved";
4739
- rewrote: "rewrote";
4740
5413
  }>;
4741
5414
  detail: z.ZodOptional<z.ZodString>;
4742
5415
  }, z.core.$strip>>;
@@ -4777,6 +5450,7 @@ export declare const sandboxContract: {
4777
5450
  note: z.ZodOptional<z.ZodString>;
4778
5451
  breaking: z.ZodOptional<z.ZodString>;
4779
5452
  testNote: z.ZodOptional<z.ZodString>;
5453
+ allows: z.ZodOptional<z.ZodArray<z.ZodString>>;
4780
5454
  }, z.core.$strip>>;
4781
5455
  startedAt: z.ZodOptional<z.ZodNumber>;
4782
5456
  run: z.ZodOptional<z.ZodString>;
@@ -4823,6 +5497,17 @@ export declare const sandboxContract: {
4823
5497
  }, z.core.$strip>>;
4824
5498
  check: z.ZodOptional<z.ZodString>;
4825
5499
  }, z.core.$strip>>;
5500
+ proof: z.ZodOptional<z.ZodObject<{
5501
+ at: z.ZodNumber;
5502
+ verification: z.ZodEnum<{
5503
+ failing: "failing";
5504
+ "no-code": "no-code";
5505
+ unproven: "unproven";
5506
+ verified: "verified";
5507
+ }>;
5508
+ check: z.ZodOptional<z.ZodString>;
5509
+ unviewed: z.ZodOptional<z.ZodNumber>;
5510
+ }, z.core.$strip>>;
4826
5511
  turns: z.ZodOptional<z.ZodNumber>;
4827
5512
  toolUses: z.ZodOptional<z.ZodNumber>;
4828
5513
  subagents: z.ZodOptional<z.ZodObject<{
@@ -4859,6 +5544,7 @@ export declare const sandboxContract: {
4859
5544
  index: z.ZodNumber;
4860
5545
  total: z.ZodNumber;
4861
5546
  }, z.core.$strip>>;
5547
+ awaitingWake: z.ZodOptional<z.ZodBoolean>;
4862
5548
  watches: z.ZodOptional<z.ZodArray<z.ZodObject<{
4863
5549
  id: z.ZodString;
4864
5550
  note: z.ZodString;
@@ -4872,6 +5558,14 @@ export declare const sandboxContract: {
4872
5558
  startedAt: z.ZodNumber;
4873
5559
  endedAt: z.ZodOptional<z.ZodNumber>;
4874
5560
  exitCode: z.ZodOptional<z.ZodNumber>;
5561
+ watch: z.ZodOptional<z.ZodString>;
5562
+ handed: z.ZodOptional<z.ZodBoolean>;
5563
+ ports: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
5564
+ stoppedBy: z.ZodOptional<z.ZodEnum<{
5565
+ agent: "agent";
5566
+ person: "person";
5567
+ turn: "turn";
5568
+ }>>;
4875
5569
  }, z.core.$strip>>>;
4876
5570
  archivedAt: z.ZodOptional<z.ZodNumber>;
4877
5571
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
@@ -4911,6 +5605,7 @@ export declare const sandboxContract: {
4911
5605
  runner: z.ZodOptional<z.ZodString>;
4912
5606
  startIn: z.ZodOptional<z.ZodString>;
4913
5607
  actsAs: z.ZodOptional<z.ZodString>;
5608
+ lastActsAs: z.ZodOptional<z.ZodString>;
4914
5609
  model: z.ZodOptional<z.ZodString>;
4915
5610
  effort: z.ZodOptional<z.ZodString>;
4916
5611
  thinking: z.ZodOptional<z.ZodBoolean>;
@@ -4975,12 +5670,11 @@ export declare const sandboxContract: {
4975
5670
  at: z.ZodNumber;
4976
5671
  ttlMs: z.ZodNumber;
4977
5672
  rollsAt: z.ZodOptional<z.ZodNumber>;
4978
- keepable: z.ZodOptional<z.ZodBoolean>;
5673
+ keepableUntil: z.ZodOptional<z.ZodNumber>;
4979
5674
  }, z.core.$strip>>;
4980
5675
  keepWarm: z.ZodOptional<z.ZodObject<{
4981
5676
  since: z.ZodNumber;
4982
5677
  until: z.ZodNumber;
4983
- auto: z.ZodOptional<z.ZodBoolean>;
4984
5678
  refreshes: z.ZodNumber;
4985
5679
  readTokens: z.ZodOptional<z.ZodNumber>;
4986
5680
  ended: z.ZodOptional<z.ZodObject<{
@@ -4991,10 +5685,6 @@ export declare const sandboxContract: {
4991
5685
  cold: "cold";
4992
5686
  elapsed: "elapsed";
4993
5687
  failed: "failed";
4994
- limited: "limited";
4995
- midnight: "midnight";
4996
- moved: "moved";
4997
- rewrote: "rewrote";
4998
5688
  }>;
4999
5689
  detail: z.ZodOptional<z.ZodString>;
5000
5690
  }, z.core.$strip>>;
@@ -5035,6 +5725,7 @@ export declare const sandboxContract: {
5035
5725
  note: z.ZodOptional<z.ZodString>;
5036
5726
  breaking: z.ZodOptional<z.ZodString>;
5037
5727
  testNote: z.ZodOptional<z.ZodString>;
5728
+ allows: z.ZodOptional<z.ZodArray<z.ZodString>>;
5038
5729
  }, z.core.$strip>>;
5039
5730
  startedAt: z.ZodOptional<z.ZodNumber>;
5040
5731
  run: z.ZodOptional<z.ZodString>;
@@ -5081,6 +5772,17 @@ export declare const sandboxContract: {
5081
5772
  }, z.core.$strip>>;
5082
5773
  check: z.ZodOptional<z.ZodString>;
5083
5774
  }, z.core.$strip>>;
5775
+ proof: z.ZodOptional<z.ZodObject<{
5776
+ at: z.ZodNumber;
5777
+ verification: z.ZodEnum<{
5778
+ failing: "failing";
5779
+ "no-code": "no-code";
5780
+ unproven: "unproven";
5781
+ verified: "verified";
5782
+ }>;
5783
+ check: z.ZodOptional<z.ZodString>;
5784
+ unviewed: z.ZodOptional<z.ZodNumber>;
5785
+ }, z.core.$strip>>;
5084
5786
  turns: z.ZodOptional<z.ZodNumber>;
5085
5787
  toolUses: z.ZodOptional<z.ZodNumber>;
5086
5788
  subagents: z.ZodOptional<z.ZodObject<{
@@ -5117,6 +5819,7 @@ export declare const sandboxContract: {
5117
5819
  index: z.ZodNumber;
5118
5820
  total: z.ZodNumber;
5119
5821
  }, z.core.$strip>>;
5822
+ awaitingWake: z.ZodOptional<z.ZodBoolean>;
5120
5823
  watches: z.ZodOptional<z.ZodArray<z.ZodObject<{
5121
5824
  id: z.ZodString;
5122
5825
  note: z.ZodString;
@@ -5130,6 +5833,14 @@ export declare const sandboxContract: {
5130
5833
  startedAt: z.ZodNumber;
5131
5834
  endedAt: z.ZodOptional<z.ZodNumber>;
5132
5835
  exitCode: z.ZodOptional<z.ZodNumber>;
5836
+ watch: z.ZodOptional<z.ZodString>;
5837
+ handed: z.ZodOptional<z.ZodBoolean>;
5838
+ ports: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
5839
+ stoppedBy: z.ZodOptional<z.ZodEnum<{
5840
+ agent: "agent";
5841
+ person: "person";
5842
+ turn: "turn";
5843
+ }>>;
5133
5844
  }, z.core.$strip>>>;
5134
5845
  archivedAt: z.ZodOptional<z.ZodNumber>;
5135
5846
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
@@ -5170,6 +5881,7 @@ export declare const sandboxContract: {
5170
5881
  runner: z.ZodOptional<z.ZodString>;
5171
5882
  startIn: z.ZodOptional<z.ZodString>;
5172
5883
  actsAs: z.ZodOptional<z.ZodString>;
5884
+ lastActsAs: z.ZodOptional<z.ZodString>;
5173
5885
  model: z.ZodOptional<z.ZodString>;
5174
5886
  effort: z.ZodOptional<z.ZodString>;
5175
5887
  thinking: z.ZodOptional<z.ZodBoolean>;
@@ -5234,12 +5946,11 @@ export declare const sandboxContract: {
5234
5946
  at: z.ZodNumber;
5235
5947
  ttlMs: z.ZodNumber;
5236
5948
  rollsAt: z.ZodOptional<z.ZodNumber>;
5237
- keepable: z.ZodOptional<z.ZodBoolean>;
5949
+ keepableUntil: z.ZodOptional<z.ZodNumber>;
5238
5950
  }, z.core.$strip>>;
5239
5951
  keepWarm: z.ZodOptional<z.ZodObject<{
5240
5952
  since: z.ZodNumber;
5241
5953
  until: z.ZodNumber;
5242
- auto: z.ZodOptional<z.ZodBoolean>;
5243
5954
  refreshes: z.ZodNumber;
5244
5955
  readTokens: z.ZodOptional<z.ZodNumber>;
5245
5956
  ended: z.ZodOptional<z.ZodObject<{
@@ -5250,10 +5961,6 @@ export declare const sandboxContract: {
5250
5961
  cold: "cold";
5251
5962
  elapsed: "elapsed";
5252
5963
  failed: "failed";
5253
- limited: "limited";
5254
- midnight: "midnight";
5255
- moved: "moved";
5256
- rewrote: "rewrote";
5257
5964
  }>;
5258
5965
  detail: z.ZodOptional<z.ZodString>;
5259
5966
  }, z.core.$strip>>;
@@ -5294,6 +6001,7 @@ export declare const sandboxContract: {
5294
6001
  note: z.ZodOptional<z.ZodString>;
5295
6002
  breaking: z.ZodOptional<z.ZodString>;
5296
6003
  testNote: z.ZodOptional<z.ZodString>;
6004
+ allows: z.ZodOptional<z.ZodArray<z.ZodString>>;
5297
6005
  }, z.core.$strip>>;
5298
6006
  startedAt: z.ZodOptional<z.ZodNumber>;
5299
6007
  run: z.ZodOptional<z.ZodString>;
@@ -5340,6 +6048,17 @@ export declare const sandboxContract: {
5340
6048
  }, z.core.$strip>>;
5341
6049
  check: z.ZodOptional<z.ZodString>;
5342
6050
  }, z.core.$strip>>;
6051
+ proof: z.ZodOptional<z.ZodObject<{
6052
+ at: z.ZodNumber;
6053
+ verification: z.ZodEnum<{
6054
+ failing: "failing";
6055
+ "no-code": "no-code";
6056
+ unproven: "unproven";
6057
+ verified: "verified";
6058
+ }>;
6059
+ check: z.ZodOptional<z.ZodString>;
6060
+ unviewed: z.ZodOptional<z.ZodNumber>;
6061
+ }, z.core.$strip>>;
5343
6062
  turns: z.ZodOptional<z.ZodNumber>;
5344
6063
  toolUses: z.ZodOptional<z.ZodNumber>;
5345
6064
  subagents: z.ZodOptional<z.ZodObject<{
@@ -5376,6 +6095,7 @@ export declare const sandboxContract: {
5376
6095
  index: z.ZodNumber;
5377
6096
  total: z.ZodNumber;
5378
6097
  }, z.core.$strip>>;
6098
+ awaitingWake: z.ZodOptional<z.ZodBoolean>;
5379
6099
  watches: z.ZodOptional<z.ZodArray<z.ZodObject<{
5380
6100
  id: z.ZodString;
5381
6101
  note: z.ZodString;
@@ -5389,28 +6109,312 @@ export declare const sandboxContract: {
5389
6109
  startedAt: z.ZodNumber;
5390
6110
  endedAt: z.ZodOptional<z.ZodNumber>;
5391
6111
  exitCode: z.ZodOptional<z.ZodNumber>;
6112
+ watch: z.ZodOptional<z.ZodString>;
6113
+ handed: z.ZodOptional<z.ZodBoolean>;
6114
+ ports: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
6115
+ stoppedBy: z.ZodOptional<z.ZodEnum<{
6116
+ agent: "agent";
6117
+ person: "person";
6118
+ turn: "turn";
6119
+ }>>;
5392
6120
  }, z.core.$strip>>>;
5393
6121
  archivedAt: z.ZodOptional<z.ZodNumber>;
5394
6122
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
5395
- seenAll: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
5396
- agents: z.ZodArray<z.ZodObject<{
5397
- id: z.ZodString;
5398
- sessionId: z.ZodOptional<z.ZodString>;
5399
- title: z.ZodOptional<z.ZodString>;
5400
- titleAction: z.ZodOptional<z.ZodString>;
5401
- status: z.ZodEnum<{
5402
- awaiting: "awaiting";
5403
- conflict: "conflict";
5404
- dismissing: "dismissing";
5405
- error: "error";
5406
- idle: "idle";
5407
- interrupted: "interrupted";
5408
- landed: "landed";
5409
- landing: "landing";
5410
- ready: "ready";
5411
- resuming: "resuming";
5412
- running: "running";
5413
- stopped: "stopped";
6123
+ stopJob: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
6124
+ id: z.ZodString;
6125
+ jobId: z.ZodString;
6126
+ }, z.core.$strip>, z.ZodObject<{
6127
+ id: z.ZodString;
6128
+ sessionId: z.ZodOptional<z.ZodString>;
6129
+ title: z.ZodOptional<z.ZodString>;
6130
+ titleAction: z.ZodOptional<z.ZodString>;
6131
+ status: z.ZodEnum<{
6132
+ awaiting: "awaiting";
6133
+ conflict: "conflict";
6134
+ dismissing: "dismissing";
6135
+ error: "error";
6136
+ idle: "idle";
6137
+ interrupted: "interrupted";
6138
+ landed: "landed";
6139
+ landing: "landing";
6140
+ ready: "ready";
6141
+ resuming: "resuming";
6142
+ running: "running";
6143
+ stopped: "stopped";
6144
+ stopping: "stopping";
6145
+ }>;
6146
+ failure: z.ZodOptional<z.ZodString>;
6147
+ failureCode: z.ZodOptional<z.ZodString>;
6148
+ limitResetsAt: z.ZodOptional<z.ZodNumber>;
6149
+ limitHeld: z.ZodOptional<z.ZodBoolean>;
6150
+ limitScheduled: z.ZodOptional<z.ZodBoolean>;
6151
+ limitMoving: z.ZodOptional<z.ZodString>;
6152
+ provider: z.ZodString;
6153
+ harness: z.ZodEnum<{
6154
+ "claude-code": "claude-code";
6155
+ native: "native";
6156
+ }>;
6157
+ runner: z.ZodOptional<z.ZodString>;
6158
+ startIn: z.ZodOptional<z.ZodString>;
6159
+ actsAs: z.ZodOptional<z.ZodString>;
6160
+ lastActsAs: z.ZodOptional<z.ZodString>;
6161
+ model: z.ZodOptional<z.ZodString>;
6162
+ effort: z.ZodOptional<z.ZodString>;
6163
+ thinking: z.ZodOptional<z.ZodBoolean>;
6164
+ fast: z.ZodOptional<z.ZodBoolean>;
6165
+ account: z.ZodOptional<z.ZodString>;
6166
+ branch: z.ZodOptional<z.ZodString>;
6167
+ autoLand: z.ZodOptional<z.ZodBoolean>;
6168
+ limitPolicy: z.ZodOptional<z.ZodEnum<{
6169
+ move: "move";
6170
+ resend: "resend";
6171
+ wait: "wait";
6172
+ }>>;
6173
+ outagePolicy: z.ZodOptional<z.ZodEnum<{
6174
+ retry: "retry";
6175
+ wait: "wait";
6176
+ }>>;
6177
+ stopPolicy: z.ZodOptional<z.ZodEnum<{
6178
+ retry: "retry";
6179
+ wait: "wait";
6180
+ }>>;
6181
+ landRequested: z.ZodOptional<z.ZodObject<{
6182
+ email: z.ZodString;
6183
+ name: z.ZodOptional<z.ZodString>;
6184
+ at: z.ZodNumber;
6185
+ }, z.core.$strip>>;
6186
+ reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{
6187
+ emoji: z.ZodString;
6188
+ by: z.ZodArray<z.ZodObject<{
6189
+ email: z.ZodString;
6190
+ name: z.ZodOptional<z.ZodString>;
6191
+ at: z.ZodNumber;
6192
+ }, z.core.$strip>>;
6193
+ }, z.core.$strip>>>;
6194
+ origin: z.ZodOptional<z.ZodObject<{
6195
+ automationId: z.ZodString;
6196
+ provider: z.ZodString;
6197
+ channelId: z.ZodOptional<z.ZodString>;
6198
+ author: z.ZodOptional<z.ZodString>;
6199
+ }, z.core.$strip>>;
6200
+ startedBy: z.ZodOptional<z.ZodString>;
6201
+ areas: z.ZodOptional<z.ZodArray<z.ZodString>>;
6202
+ owner: z.ZodOptional<z.ZodObject<{
6203
+ email: z.ZodString;
6204
+ name: z.ZodOptional<z.ZodString>;
6205
+ since: z.ZodNumber;
6206
+ }, z.core.$strip>>;
6207
+ forkedFrom: z.ZodOptional<z.ZodObject<{
6208
+ conversationId: z.ZodString;
6209
+ index: z.ZodNumber;
6210
+ files: z.ZodEnum<{
6211
+ now: "now";
6212
+ then: "then";
6213
+ }>;
6214
+ }, z.core.$strip>>;
6215
+ base: z.ZodOptional<z.ZodString>;
6216
+ costUsd: z.ZodOptional<z.ZodNumber>;
6217
+ inputTokens: z.ZodOptional<z.ZodNumber>;
6218
+ outputTokens: z.ZodOptional<z.ZodNumber>;
6219
+ contextTokens: z.ZodOptional<z.ZodNumber>;
6220
+ contextWindow: z.ZodOptional<z.ZodNumber>;
6221
+ promptCache: z.ZodOptional<z.ZodObject<{
6222
+ at: z.ZodNumber;
6223
+ ttlMs: z.ZodNumber;
6224
+ rollsAt: z.ZodOptional<z.ZodNumber>;
6225
+ keepableUntil: z.ZodOptional<z.ZodNumber>;
6226
+ }, z.core.$strip>>;
6227
+ keepWarm: z.ZodOptional<z.ZodObject<{
6228
+ since: z.ZodNumber;
6229
+ until: z.ZodNumber;
6230
+ refreshes: z.ZodNumber;
6231
+ readTokens: z.ZodOptional<z.ZodNumber>;
6232
+ ended: z.ZodOptional<z.ZodObject<{
6233
+ at: z.ZodNumber;
6234
+ reason: z.ZodEnum<{
6235
+ allowance: "allowance";
6236
+ changed: "changed";
6237
+ cold: "cold";
6238
+ elapsed: "elapsed";
6239
+ failed: "failed";
6240
+ }>;
6241
+ detail: z.ZodOptional<z.ZodString>;
6242
+ }, z.core.$strip>>;
6243
+ }, z.core.$strip>>;
6244
+ activity: z.ZodOptional<z.ZodObject<{
6245
+ tool: z.ZodOptional<z.ZodString>;
6246
+ target: z.ZodOptional<z.ZodString>;
6247
+ todo: z.ZodOptional<z.ZodString>;
6248
+ }, z.core.$strip>>;
6249
+ checklist: z.ZodOptional<z.ZodObject<{
6250
+ done: z.ZodNumber;
6251
+ total: z.ZodNumber;
6252
+ }, z.core.$strip>>;
6253
+ landedMessageDraft: z.ZodOptional<z.ZodObject<{
6254
+ startedAt: z.ZodNumber;
6255
+ steps: z.ZodArray<z.ZodObject<{
6256
+ provider: z.ZodString;
6257
+ model: z.ZodString;
6258
+ status: z.ZodEnum<{
6259
+ answered: "answered";
6260
+ asking: "asking";
6261
+ refused: "refused";
6262
+ skipped: "skipped";
6263
+ }>;
6264
+ at: z.ZodOptional<z.ZodNumber>;
6265
+ ms: z.ZodOptional<z.ZodNumber>;
6266
+ reason: z.ZodOptional<z.ZodString>;
6267
+ }, z.core.$strip>>;
6268
+ outcome: z.ZodOptional<z.ZodEnum<{
6269
+ failed: "failed";
6270
+ written: "written";
6271
+ }>>;
6272
+ reason: z.ZodOptional<z.ZodString>;
6273
+ finishedAt: z.ZodOptional<z.ZodNumber>;
6274
+ }, z.core.$strip>>;
6275
+ landedMessage: z.ZodOptional<z.ZodObject<{
6276
+ subject: z.ZodString;
6277
+ note: z.ZodOptional<z.ZodString>;
6278
+ breaking: z.ZodOptional<z.ZodString>;
6279
+ testNote: z.ZodOptional<z.ZodString>;
6280
+ allows: z.ZodOptional<z.ZodArray<z.ZodString>>;
6281
+ }, z.core.$strip>>;
6282
+ startedAt: z.ZodOptional<z.ZodNumber>;
6283
+ run: z.ZodOptional<z.ZodString>;
6284
+ queue: z.ZodOptional<z.ZodObject<{
6285
+ items: z.ZodArray<z.ZodObject<{
6286
+ id: z.ZodString;
6287
+ text: z.ZodString;
6288
+ attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
6289
+ voice: z.ZodEnum<{
6290
+ agent: "agent";
6291
+ person: "person";
6292
+ sandbox: "sandbox";
6293
+ }>;
6294
+ queuedAt: z.ZodNumber;
6295
+ revision: z.ZodNumber;
6296
+ }, z.core.$strip>>;
6297
+ revision: z.ZodNumber;
6298
+ paused: z.ZodOptional<z.ZodEnum<{
6299
+ refused: "refused";
6300
+ stopped: "stopped";
6301
+ }>>;
6302
+ }, z.core.$strip>>;
6303
+ updatedAt: z.ZodNumber;
6304
+ seenAt: z.ZodOptional<z.ZodNumber>;
6305
+ attention: z.ZodObject<{
6306
+ plan: z.ZodBoolean;
6307
+ question: z.ZodBoolean;
6308
+ permission: z.ZodBoolean;
6309
+ capability: z.ZodBoolean;
6310
+ credential: z.ZodBoolean;
6311
+ conflict: z.ZodBoolean;
6312
+ }, z.core.$strip>;
6313
+ conflictCauses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
6314
+ binary: "binary";
6315
+ diverged: "diverged";
6316
+ workspace: "workspace";
6317
+ }>>>;
6318
+ unfinished: z.ZodOptional<z.ZodObject<{
6319
+ at: z.ZodNumber;
6320
+ steps: z.ZodOptional<z.ZodObject<{
6321
+ open: z.ZodNumber;
6322
+ total: z.ZodNumber;
6323
+ next: z.ZodOptional<z.ZodString>;
6324
+ }, z.core.$strip>>;
6325
+ check: z.ZodOptional<z.ZodString>;
6326
+ }, z.core.$strip>>;
6327
+ proof: z.ZodOptional<z.ZodObject<{
6328
+ at: z.ZodNumber;
6329
+ verification: z.ZodEnum<{
6330
+ failing: "failing";
6331
+ "no-code": "no-code";
6332
+ unproven: "unproven";
6333
+ verified: "verified";
6334
+ }>;
6335
+ check: z.ZodOptional<z.ZodString>;
6336
+ unviewed: z.ZodOptional<z.ZodNumber>;
6337
+ }, z.core.$strip>>;
6338
+ turns: z.ZodOptional<z.ZodNumber>;
6339
+ toolUses: z.ZodOptional<z.ZodNumber>;
6340
+ subagents: z.ZodOptional<z.ZodObject<{
6341
+ running: z.ZodNumber;
6342
+ total: z.ZodNumber;
6343
+ }, z.core.$strip>>;
6344
+ diff: z.ZodOptional<z.ZodObject<{
6345
+ files: z.ZodNumber;
6346
+ insertions: z.ZodNumber;
6347
+ deletions: z.ZodNumber;
6348
+ }, z.core.$strip>>;
6349
+ landedPresence: z.ZodOptional<z.ZodObject<{
6350
+ landed: z.ZodNumber;
6351
+ present: z.ZodNumber;
6352
+ }, z.core.$strip>>;
6353
+ loop: z.ZodOptional<z.ZodObject<{
6354
+ state: z.ZodEnum<{
6355
+ done: "done";
6356
+ error: "error";
6357
+ exhausted: "exhausted";
6358
+ overspent: "overspent";
6359
+ running: "running";
6360
+ stalled: "stalled";
6361
+ stopped: "stopped";
6362
+ }>;
6363
+ iteration: z.ZodNumber;
6364
+ maxIterations: z.ZodNumber;
6365
+ goal: z.ZodString;
6366
+ }, z.core.$strip>>;
6367
+ workflow: z.ZodOptional<z.ZodObject<{
6368
+ runId: z.ZodString;
6369
+ name: z.ZodString;
6370
+ step: z.ZodString;
6371
+ index: z.ZodNumber;
6372
+ total: z.ZodNumber;
6373
+ }, z.core.$strip>>;
6374
+ awaitingWake: z.ZodOptional<z.ZodBoolean>;
6375
+ watches: z.ZodOptional<z.ZodArray<z.ZodObject<{
6376
+ id: z.ZodString;
6377
+ note: z.ZodString;
6378
+ intervalSeconds: z.ZodNumber;
6379
+ deadlineAt: z.ZodNumber;
6380
+ }, z.core.$strip>>>;
6381
+ jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
6382
+ id: z.ZodString;
6383
+ label: z.ZodString;
6384
+ session: z.ZodString;
6385
+ startedAt: z.ZodNumber;
6386
+ endedAt: z.ZodOptional<z.ZodNumber>;
6387
+ exitCode: z.ZodOptional<z.ZodNumber>;
6388
+ watch: z.ZodOptional<z.ZodString>;
6389
+ handed: z.ZodOptional<z.ZodBoolean>;
6390
+ ports: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
6391
+ stoppedBy: z.ZodOptional<z.ZodEnum<{
6392
+ agent: "agent";
6393
+ person: "person";
6394
+ turn: "turn";
6395
+ }>>;
6396
+ }, z.core.$strip>>>;
6397
+ archivedAt: z.ZodOptional<z.ZodNumber>;
6398
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
6399
+ seenAll: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
6400
+ agents: z.ZodArray<z.ZodObject<{
6401
+ id: z.ZodString;
6402
+ sessionId: z.ZodOptional<z.ZodString>;
6403
+ title: z.ZodOptional<z.ZodString>;
6404
+ titleAction: z.ZodOptional<z.ZodString>;
6405
+ status: z.ZodEnum<{
6406
+ awaiting: "awaiting";
6407
+ conflict: "conflict";
6408
+ dismissing: "dismissing";
6409
+ error: "error";
6410
+ idle: "idle";
6411
+ interrupted: "interrupted";
6412
+ landed: "landed";
6413
+ landing: "landing";
6414
+ ready: "ready";
6415
+ resuming: "resuming";
6416
+ running: "running";
6417
+ stopped: "stopped";
5414
6418
  stopping: "stopping";
5415
6419
  }>;
5416
6420
  failure: z.ZodOptional<z.ZodString>;
@@ -5427,6 +6431,7 @@ export declare const sandboxContract: {
5427
6431
  runner: z.ZodOptional<z.ZodString>;
5428
6432
  startIn: z.ZodOptional<z.ZodString>;
5429
6433
  actsAs: z.ZodOptional<z.ZodString>;
6434
+ lastActsAs: z.ZodOptional<z.ZodString>;
5430
6435
  model: z.ZodOptional<z.ZodString>;
5431
6436
  effort: z.ZodOptional<z.ZodString>;
5432
6437
  thinking: z.ZodOptional<z.ZodBoolean>;
@@ -5491,12 +6496,11 @@ export declare const sandboxContract: {
5491
6496
  at: z.ZodNumber;
5492
6497
  ttlMs: z.ZodNumber;
5493
6498
  rollsAt: z.ZodOptional<z.ZodNumber>;
5494
- keepable: z.ZodOptional<z.ZodBoolean>;
6499
+ keepableUntil: z.ZodOptional<z.ZodNumber>;
5495
6500
  }, z.core.$strip>>;
5496
6501
  keepWarm: z.ZodOptional<z.ZodObject<{
5497
6502
  since: z.ZodNumber;
5498
6503
  until: z.ZodNumber;
5499
- auto: z.ZodOptional<z.ZodBoolean>;
5500
6504
  refreshes: z.ZodNumber;
5501
6505
  readTokens: z.ZodOptional<z.ZodNumber>;
5502
6506
  ended: z.ZodOptional<z.ZodObject<{
@@ -5507,10 +6511,6 @@ export declare const sandboxContract: {
5507
6511
  cold: "cold";
5508
6512
  elapsed: "elapsed";
5509
6513
  failed: "failed";
5510
- limited: "limited";
5511
- midnight: "midnight";
5512
- moved: "moved";
5513
- rewrote: "rewrote";
5514
6514
  }>;
5515
6515
  detail: z.ZodOptional<z.ZodString>;
5516
6516
  }, z.core.$strip>>;
@@ -5551,6 +6551,7 @@ export declare const sandboxContract: {
5551
6551
  note: z.ZodOptional<z.ZodString>;
5552
6552
  breaking: z.ZodOptional<z.ZodString>;
5553
6553
  testNote: z.ZodOptional<z.ZodString>;
6554
+ allows: z.ZodOptional<z.ZodArray<z.ZodString>>;
5554
6555
  }, z.core.$strip>>;
5555
6556
  startedAt: z.ZodOptional<z.ZodNumber>;
5556
6557
  run: z.ZodOptional<z.ZodString>;
@@ -5597,6 +6598,17 @@ export declare const sandboxContract: {
5597
6598
  }, z.core.$strip>>;
5598
6599
  check: z.ZodOptional<z.ZodString>;
5599
6600
  }, z.core.$strip>>;
6601
+ proof: z.ZodOptional<z.ZodObject<{
6602
+ at: z.ZodNumber;
6603
+ verification: z.ZodEnum<{
6604
+ failing: "failing";
6605
+ "no-code": "no-code";
6606
+ unproven: "unproven";
6607
+ verified: "verified";
6608
+ }>;
6609
+ check: z.ZodOptional<z.ZodString>;
6610
+ unviewed: z.ZodOptional<z.ZodNumber>;
6611
+ }, z.core.$strip>>;
5600
6612
  turns: z.ZodOptional<z.ZodNumber>;
5601
6613
  toolUses: z.ZodOptional<z.ZodNumber>;
5602
6614
  subagents: z.ZodOptional<z.ZodObject<{
@@ -5633,6 +6645,7 @@ export declare const sandboxContract: {
5633
6645
  index: z.ZodNumber;
5634
6646
  total: z.ZodNumber;
5635
6647
  }, z.core.$strip>>;
6648
+ awaitingWake: z.ZodOptional<z.ZodBoolean>;
5636
6649
  watches: z.ZodOptional<z.ZodArray<z.ZodObject<{
5637
6650
  id: z.ZodString;
5638
6651
  note: z.ZodString;
@@ -5646,6 +6659,14 @@ export declare const sandboxContract: {
5646
6659
  startedAt: z.ZodNumber;
5647
6660
  endedAt: z.ZodOptional<z.ZodNumber>;
5648
6661
  exitCode: z.ZodOptional<z.ZodNumber>;
6662
+ watch: z.ZodOptional<z.ZodString>;
6663
+ handed: z.ZodOptional<z.ZodBoolean>;
6664
+ ports: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
6665
+ stoppedBy: z.ZodOptional<z.ZodEnum<{
6666
+ agent: "agent";
6667
+ person: "person";
6668
+ turn: "turn";
6669
+ }>>;
5649
6670
  }, z.core.$strip>>>;
5650
6671
  archivedAt: z.ZodOptional<z.ZodNumber>;
5651
6672
  }, z.core.$strip>>;
@@ -5733,6 +6754,23 @@ export declare const sandboxContract: {
5733
6754
  }, z.core.$strip>>;
5734
6755
  }, z.core.$strip>>>;
5735
6756
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
6757
+ conflicts: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
6758
+ id: z.ZodString;
6759
+ }, z.core.$strip>, z.ZodObject<{
6760
+ conflicts: z.ZodOptional<z.ZodArray<z.ZodObject<{
6761
+ repo: z.ZodString;
6762
+ paths: z.ZodArray<z.ZodObject<{
6763
+ path: z.ZodString;
6764
+ reason: z.ZodEnum<{
6765
+ binary: "binary";
6766
+ diverged: "diverged";
6767
+ workspace: "workspace";
6768
+ }>;
6769
+ }, z.core.$strip>>;
6770
+ clean: z.ZodNumber;
6771
+ mainBranch: z.ZodOptional<z.ZodString>;
6772
+ }, z.core.$strip>>>;
6773
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
5736
6774
  history: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
5737
6775
  id: z.ZodString;
5738
6776
  }, z.core.$strip>, z.ZodObject<{
@@ -5799,6 +6837,27 @@ export declare const sandboxContract: {
5799
6837
  }, z.core.$strip>, z.ZodObject<{
5800
6838
  ok: z.ZodLiteral<true>;
5801
6839
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
6840
+ pushFix: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
6841
+ project: z.ZodString;
6842
+ pick: z.ZodOptional<z.ZodObject<{
6843
+ agent: z.ZodString;
6844
+ model: z.ZodString;
6845
+ account: z.ZodOptional<z.ZodString>;
6846
+ harness: z.ZodOptional<z.ZodEnum<{
6847
+ "claude-code": "claude-code";
6848
+ native: "native";
6849
+ }>>;
6850
+ effort: z.ZodOptional<z.ZodString>;
6851
+ thinking: z.ZodOptional<z.ZodBoolean>;
6852
+ fast: z.ZodOptional<z.ZodBoolean>;
6853
+ }, z.core.$strip>>;
6854
+ mode: z.ZodOptional<z.ZodEnum<{
6855
+ continue: "continue";
6856
+ "start-over": "start-over";
6857
+ }>>;
6858
+ }, z.core.$strip>, z.ZodObject<{
6859
+ conversationId: z.ZodString;
6860
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
5802
6861
  land: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
5803
6862
  id: z.ZodString;
5804
6863
  mode: z.ZodOptional<z.ZodEnum<{
@@ -5869,6 +6928,7 @@ export declare const sandboxContract: {
5869
6928
  runner: z.ZodOptional<z.ZodString>;
5870
6929
  startIn: z.ZodOptional<z.ZodString>;
5871
6930
  actsAs: z.ZodOptional<z.ZodString>;
6931
+ lastActsAs: z.ZodOptional<z.ZodString>;
5872
6932
  model: z.ZodOptional<z.ZodString>;
5873
6933
  effort: z.ZodOptional<z.ZodString>;
5874
6934
  thinking: z.ZodOptional<z.ZodBoolean>;
@@ -5933,12 +6993,11 @@ export declare const sandboxContract: {
5933
6993
  at: z.ZodNumber;
5934
6994
  ttlMs: z.ZodNumber;
5935
6995
  rollsAt: z.ZodOptional<z.ZodNumber>;
5936
- keepable: z.ZodOptional<z.ZodBoolean>;
6996
+ keepableUntil: z.ZodOptional<z.ZodNumber>;
5937
6997
  }, z.core.$strip>>;
5938
6998
  keepWarm: z.ZodOptional<z.ZodObject<{
5939
6999
  since: z.ZodNumber;
5940
7000
  until: z.ZodNumber;
5941
- auto: z.ZodOptional<z.ZodBoolean>;
5942
7001
  refreshes: z.ZodNumber;
5943
7002
  readTokens: z.ZodOptional<z.ZodNumber>;
5944
7003
  ended: z.ZodOptional<z.ZodObject<{
@@ -5949,10 +7008,6 @@ export declare const sandboxContract: {
5949
7008
  cold: "cold";
5950
7009
  elapsed: "elapsed";
5951
7010
  failed: "failed";
5952
- limited: "limited";
5953
- midnight: "midnight";
5954
- moved: "moved";
5955
- rewrote: "rewrote";
5956
7011
  }>;
5957
7012
  detail: z.ZodOptional<z.ZodString>;
5958
7013
  }, z.core.$strip>>;
@@ -5993,6 +7048,7 @@ export declare const sandboxContract: {
5993
7048
  note: z.ZodOptional<z.ZodString>;
5994
7049
  breaking: z.ZodOptional<z.ZodString>;
5995
7050
  testNote: z.ZodOptional<z.ZodString>;
7051
+ allows: z.ZodOptional<z.ZodArray<z.ZodString>>;
5996
7052
  }, z.core.$strip>>;
5997
7053
  startedAt: z.ZodOptional<z.ZodNumber>;
5998
7054
  run: z.ZodOptional<z.ZodString>;
@@ -6039,6 +7095,17 @@ export declare const sandboxContract: {
6039
7095
  }, z.core.$strip>>;
6040
7096
  check: z.ZodOptional<z.ZodString>;
6041
7097
  }, z.core.$strip>>;
7098
+ proof: z.ZodOptional<z.ZodObject<{
7099
+ at: z.ZodNumber;
7100
+ verification: z.ZodEnum<{
7101
+ failing: "failing";
7102
+ "no-code": "no-code";
7103
+ unproven: "unproven";
7104
+ verified: "verified";
7105
+ }>;
7106
+ check: z.ZodOptional<z.ZodString>;
7107
+ unviewed: z.ZodOptional<z.ZodNumber>;
7108
+ }, z.core.$strip>>;
6042
7109
  turns: z.ZodOptional<z.ZodNumber>;
6043
7110
  toolUses: z.ZodOptional<z.ZodNumber>;
6044
7111
  subagents: z.ZodOptional<z.ZodObject<{
@@ -6075,6 +7142,7 @@ export declare const sandboxContract: {
6075
7142
  index: z.ZodNumber;
6076
7143
  total: z.ZodNumber;
6077
7144
  }, z.core.$strip>>;
7145
+ awaitingWake: z.ZodOptional<z.ZodBoolean>;
6078
7146
  watches: z.ZodOptional<z.ZodArray<z.ZodObject<{
6079
7147
  id: z.ZodString;
6080
7148
  note: z.ZodString;
@@ -6088,6 +7156,14 @@ export declare const sandboxContract: {
6088
7156
  startedAt: z.ZodNumber;
6089
7157
  endedAt: z.ZodOptional<z.ZodNumber>;
6090
7158
  exitCode: z.ZodOptional<z.ZodNumber>;
7159
+ watch: z.ZodOptional<z.ZodString>;
7160
+ handed: z.ZodOptional<z.ZodBoolean>;
7161
+ ports: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
7162
+ stoppedBy: z.ZodOptional<z.ZodEnum<{
7163
+ agent: "agent";
7164
+ person: "person";
7165
+ turn: "turn";
7166
+ }>>;
6091
7167
  }, z.core.$strip>>>;
6092
7168
  archivedAt: z.ZodOptional<z.ZodNumber>;
6093
7169
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
@@ -6128,6 +7204,7 @@ export declare const sandboxContract: {
6128
7204
  runner: z.ZodOptional<z.ZodString>;
6129
7205
  startIn: z.ZodOptional<z.ZodString>;
6130
7206
  actsAs: z.ZodOptional<z.ZodString>;
7207
+ lastActsAs: z.ZodOptional<z.ZodString>;
6131
7208
  model: z.ZodOptional<z.ZodString>;
6132
7209
  effort: z.ZodOptional<z.ZodString>;
6133
7210
  thinking: z.ZodOptional<z.ZodBoolean>;
@@ -6192,12 +7269,11 @@ export declare const sandboxContract: {
6192
7269
  at: z.ZodNumber;
6193
7270
  ttlMs: z.ZodNumber;
6194
7271
  rollsAt: z.ZodOptional<z.ZodNumber>;
6195
- keepable: z.ZodOptional<z.ZodBoolean>;
7272
+ keepableUntil: z.ZodOptional<z.ZodNumber>;
6196
7273
  }, z.core.$strip>>;
6197
7274
  keepWarm: z.ZodOptional<z.ZodObject<{
6198
7275
  since: z.ZodNumber;
6199
7276
  until: z.ZodNumber;
6200
- auto: z.ZodOptional<z.ZodBoolean>;
6201
7277
  refreshes: z.ZodNumber;
6202
7278
  readTokens: z.ZodOptional<z.ZodNumber>;
6203
7279
  ended: z.ZodOptional<z.ZodObject<{
@@ -6208,10 +7284,6 @@ export declare const sandboxContract: {
6208
7284
  cold: "cold";
6209
7285
  elapsed: "elapsed";
6210
7286
  failed: "failed";
6211
- limited: "limited";
6212
- midnight: "midnight";
6213
- moved: "moved";
6214
- rewrote: "rewrote";
6215
7287
  }>;
6216
7288
  detail: z.ZodOptional<z.ZodString>;
6217
7289
  }, z.core.$strip>>;
@@ -6252,6 +7324,7 @@ export declare const sandboxContract: {
6252
7324
  note: z.ZodOptional<z.ZodString>;
6253
7325
  breaking: z.ZodOptional<z.ZodString>;
6254
7326
  testNote: z.ZodOptional<z.ZodString>;
7327
+ allows: z.ZodOptional<z.ZodArray<z.ZodString>>;
6255
7328
  }, z.core.$strip>>;
6256
7329
  startedAt: z.ZodOptional<z.ZodNumber>;
6257
7330
  run: z.ZodOptional<z.ZodString>;
@@ -6298,6 +7371,17 @@ export declare const sandboxContract: {
6298
7371
  }, z.core.$strip>>;
6299
7372
  check: z.ZodOptional<z.ZodString>;
6300
7373
  }, z.core.$strip>>;
7374
+ proof: z.ZodOptional<z.ZodObject<{
7375
+ at: z.ZodNumber;
7376
+ verification: z.ZodEnum<{
7377
+ failing: "failing";
7378
+ "no-code": "no-code";
7379
+ unproven: "unproven";
7380
+ verified: "verified";
7381
+ }>;
7382
+ check: z.ZodOptional<z.ZodString>;
7383
+ unviewed: z.ZodOptional<z.ZodNumber>;
7384
+ }, z.core.$strip>>;
6301
7385
  turns: z.ZodOptional<z.ZodNumber>;
6302
7386
  toolUses: z.ZodOptional<z.ZodNumber>;
6303
7387
  subagents: z.ZodOptional<z.ZodObject<{
@@ -6334,6 +7418,7 @@ export declare const sandboxContract: {
6334
7418
  index: z.ZodNumber;
6335
7419
  total: z.ZodNumber;
6336
7420
  }, z.core.$strip>>;
7421
+ awaitingWake: z.ZodOptional<z.ZodBoolean>;
6337
7422
  watches: z.ZodOptional<z.ZodArray<z.ZodObject<{
6338
7423
  id: z.ZodString;
6339
7424
  note: z.ZodString;
@@ -6347,6 +7432,14 @@ export declare const sandboxContract: {
6347
7432
  startedAt: z.ZodNumber;
6348
7433
  endedAt: z.ZodOptional<z.ZodNumber>;
6349
7434
  exitCode: z.ZodOptional<z.ZodNumber>;
7435
+ watch: z.ZodOptional<z.ZodString>;
7436
+ handed: z.ZodOptional<z.ZodBoolean>;
7437
+ ports: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
7438
+ stoppedBy: z.ZodOptional<z.ZodEnum<{
7439
+ agent: "agent";
7440
+ person: "person";
7441
+ turn: "turn";
7442
+ }>>;
6350
7443
  }, z.core.$strip>>>;
6351
7444
  archivedAt: z.ZodOptional<z.ZodNumber>;
6352
7445
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
@@ -6388,6 +7481,7 @@ export declare const sandboxContract: {
6388
7481
  runner: z.ZodOptional<z.ZodString>;
6389
7482
  startIn: z.ZodOptional<z.ZodString>;
6390
7483
  actsAs: z.ZodOptional<z.ZodString>;
7484
+ lastActsAs: z.ZodOptional<z.ZodString>;
6391
7485
  model: z.ZodOptional<z.ZodString>;
6392
7486
  effort: z.ZodOptional<z.ZodString>;
6393
7487
  thinking: z.ZodOptional<z.ZodBoolean>;
@@ -6452,12 +7546,11 @@ export declare const sandboxContract: {
6452
7546
  at: z.ZodNumber;
6453
7547
  ttlMs: z.ZodNumber;
6454
7548
  rollsAt: z.ZodOptional<z.ZodNumber>;
6455
- keepable: z.ZodOptional<z.ZodBoolean>;
7549
+ keepableUntil: z.ZodOptional<z.ZodNumber>;
6456
7550
  }, z.core.$strip>>;
6457
7551
  keepWarm: z.ZodOptional<z.ZodObject<{
6458
7552
  since: z.ZodNumber;
6459
7553
  until: z.ZodNumber;
6460
- auto: z.ZodOptional<z.ZodBoolean>;
6461
7554
  refreshes: z.ZodNumber;
6462
7555
  readTokens: z.ZodOptional<z.ZodNumber>;
6463
7556
  ended: z.ZodOptional<z.ZodObject<{
@@ -6468,10 +7561,6 @@ export declare const sandboxContract: {
6468
7561
  cold: "cold";
6469
7562
  elapsed: "elapsed";
6470
7563
  failed: "failed";
6471
- limited: "limited";
6472
- midnight: "midnight";
6473
- moved: "moved";
6474
- rewrote: "rewrote";
6475
7564
  }>;
6476
7565
  detail: z.ZodOptional<z.ZodString>;
6477
7566
  }, z.core.$strip>>;
@@ -6512,6 +7601,7 @@ export declare const sandboxContract: {
6512
7601
  note: z.ZodOptional<z.ZodString>;
6513
7602
  breaking: z.ZodOptional<z.ZodString>;
6514
7603
  testNote: z.ZodOptional<z.ZodString>;
7604
+ allows: z.ZodOptional<z.ZodArray<z.ZodString>>;
6515
7605
  }, z.core.$strip>>;
6516
7606
  startedAt: z.ZodOptional<z.ZodNumber>;
6517
7607
  run: z.ZodOptional<z.ZodString>;
@@ -6558,6 +7648,17 @@ export declare const sandboxContract: {
6558
7648
  }, z.core.$strip>>;
6559
7649
  check: z.ZodOptional<z.ZodString>;
6560
7650
  }, z.core.$strip>>;
7651
+ proof: z.ZodOptional<z.ZodObject<{
7652
+ at: z.ZodNumber;
7653
+ verification: z.ZodEnum<{
7654
+ failing: "failing";
7655
+ "no-code": "no-code";
7656
+ unproven: "unproven";
7657
+ verified: "verified";
7658
+ }>;
7659
+ check: z.ZodOptional<z.ZodString>;
7660
+ unviewed: z.ZodOptional<z.ZodNumber>;
7661
+ }, z.core.$strip>>;
6561
7662
  turns: z.ZodOptional<z.ZodNumber>;
6562
7663
  toolUses: z.ZodOptional<z.ZodNumber>;
6563
7664
  subagents: z.ZodOptional<z.ZodObject<{
@@ -6594,6 +7695,7 @@ export declare const sandboxContract: {
6594
7695
  index: z.ZodNumber;
6595
7696
  total: z.ZodNumber;
6596
7697
  }, z.core.$strip>>;
7698
+ awaitingWake: z.ZodOptional<z.ZodBoolean>;
6597
7699
  watches: z.ZodOptional<z.ZodArray<z.ZodObject<{
6598
7700
  id: z.ZodString;
6599
7701
  note: z.ZodString;
@@ -6607,6 +7709,14 @@ export declare const sandboxContract: {
6607
7709
  startedAt: z.ZodNumber;
6608
7710
  endedAt: z.ZodOptional<z.ZodNumber>;
6609
7711
  exitCode: z.ZodOptional<z.ZodNumber>;
7712
+ watch: z.ZodOptional<z.ZodString>;
7713
+ handed: z.ZodOptional<z.ZodBoolean>;
7714
+ ports: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
7715
+ stoppedBy: z.ZodOptional<z.ZodEnum<{
7716
+ agent: "agent";
7717
+ person: "person";
7718
+ turn: "turn";
7719
+ }>>;
6610
7720
  }, z.core.$strip>>>;
6611
7721
  archivedAt: z.ZodOptional<z.ZodNumber>;
6612
7722
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
@@ -6652,6 +7762,7 @@ export declare const sandboxContract: {
6652
7762
  runner: z.ZodOptional<z.ZodString>;
6653
7763
  startIn: z.ZodOptional<z.ZodString>;
6654
7764
  actsAs: z.ZodOptional<z.ZodString>;
7765
+ lastActsAs: z.ZodOptional<z.ZodString>;
6655
7766
  model: z.ZodOptional<z.ZodString>;
6656
7767
  effort: z.ZodOptional<z.ZodString>;
6657
7768
  thinking: z.ZodOptional<z.ZodBoolean>;
@@ -6716,12 +7827,11 @@ export declare const sandboxContract: {
6716
7827
  at: z.ZodNumber;
6717
7828
  ttlMs: z.ZodNumber;
6718
7829
  rollsAt: z.ZodOptional<z.ZodNumber>;
6719
- keepable: z.ZodOptional<z.ZodBoolean>;
7830
+ keepableUntil: z.ZodOptional<z.ZodNumber>;
6720
7831
  }, z.core.$strip>>;
6721
7832
  keepWarm: z.ZodOptional<z.ZodObject<{
6722
7833
  since: z.ZodNumber;
6723
7834
  until: z.ZodNumber;
6724
- auto: z.ZodOptional<z.ZodBoolean>;
6725
7835
  refreshes: z.ZodNumber;
6726
7836
  readTokens: z.ZodOptional<z.ZodNumber>;
6727
7837
  ended: z.ZodOptional<z.ZodObject<{
@@ -6732,10 +7842,6 @@ export declare const sandboxContract: {
6732
7842
  cold: "cold";
6733
7843
  elapsed: "elapsed";
6734
7844
  failed: "failed";
6735
- limited: "limited";
6736
- midnight: "midnight";
6737
- moved: "moved";
6738
- rewrote: "rewrote";
6739
7845
  }>;
6740
7846
  detail: z.ZodOptional<z.ZodString>;
6741
7847
  }, z.core.$strip>>;
@@ -6776,6 +7882,7 @@ export declare const sandboxContract: {
6776
7882
  note: z.ZodOptional<z.ZodString>;
6777
7883
  breaking: z.ZodOptional<z.ZodString>;
6778
7884
  testNote: z.ZodOptional<z.ZodString>;
7885
+ allows: z.ZodOptional<z.ZodArray<z.ZodString>>;
6779
7886
  }, z.core.$strip>>;
6780
7887
  startedAt: z.ZodOptional<z.ZodNumber>;
6781
7888
  run: z.ZodOptional<z.ZodString>;
@@ -6822,6 +7929,17 @@ export declare const sandboxContract: {
6822
7929
  }, z.core.$strip>>;
6823
7930
  check: z.ZodOptional<z.ZodString>;
6824
7931
  }, z.core.$strip>>;
7932
+ proof: z.ZodOptional<z.ZodObject<{
7933
+ at: z.ZodNumber;
7934
+ verification: z.ZodEnum<{
7935
+ failing: "failing";
7936
+ "no-code": "no-code";
7937
+ unproven: "unproven";
7938
+ verified: "verified";
7939
+ }>;
7940
+ check: z.ZodOptional<z.ZodString>;
7941
+ unviewed: z.ZodOptional<z.ZodNumber>;
7942
+ }, z.core.$strip>>;
6825
7943
  turns: z.ZodOptional<z.ZodNumber>;
6826
7944
  toolUses: z.ZodOptional<z.ZodNumber>;
6827
7945
  subagents: z.ZodOptional<z.ZodObject<{
@@ -6858,6 +7976,7 @@ export declare const sandboxContract: {
6858
7976
  index: z.ZodNumber;
6859
7977
  total: z.ZodNumber;
6860
7978
  }, z.core.$strip>>;
7979
+ awaitingWake: z.ZodOptional<z.ZodBoolean>;
6861
7980
  watches: z.ZodOptional<z.ZodArray<z.ZodObject<{
6862
7981
  id: z.ZodString;
6863
7982
  note: z.ZodString;
@@ -6871,6 +7990,14 @@ export declare const sandboxContract: {
6871
7990
  startedAt: z.ZodNumber;
6872
7991
  endedAt: z.ZodOptional<z.ZodNumber>;
6873
7992
  exitCode: z.ZodOptional<z.ZodNumber>;
7993
+ watch: z.ZodOptional<z.ZodString>;
7994
+ handed: z.ZodOptional<z.ZodBoolean>;
7995
+ ports: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
7996
+ stoppedBy: z.ZodOptional<z.ZodEnum<{
7997
+ agent: "agent";
7998
+ person: "person";
7999
+ turn: "turn";
8000
+ }>>;
6874
8001
  }, z.core.$strip>>>;
6875
8002
  archivedAt: z.ZodOptional<z.ZodNumber>;
6876
8003
  }, z.core.$strip>>;
@@ -6917,6 +8044,7 @@ export declare const sandboxContract: {
6917
8044
  runner: z.ZodOptional<z.ZodString>;
6918
8045
  startIn: z.ZodOptional<z.ZodString>;
6919
8046
  actsAs: z.ZodOptional<z.ZodString>;
8047
+ lastActsAs: z.ZodOptional<z.ZodString>;
6920
8048
  model: z.ZodOptional<z.ZodString>;
6921
8049
  effort: z.ZodOptional<z.ZodString>;
6922
8050
  thinking: z.ZodOptional<z.ZodBoolean>;
@@ -6981,12 +8109,11 @@ export declare const sandboxContract: {
6981
8109
  at: z.ZodNumber;
6982
8110
  ttlMs: z.ZodNumber;
6983
8111
  rollsAt: z.ZodOptional<z.ZodNumber>;
6984
- keepable: z.ZodOptional<z.ZodBoolean>;
8112
+ keepableUntil: z.ZodOptional<z.ZodNumber>;
6985
8113
  }, z.core.$strip>>;
6986
8114
  keepWarm: z.ZodOptional<z.ZodObject<{
6987
8115
  since: z.ZodNumber;
6988
8116
  until: z.ZodNumber;
6989
- auto: z.ZodOptional<z.ZodBoolean>;
6990
8117
  refreshes: z.ZodNumber;
6991
8118
  readTokens: z.ZodOptional<z.ZodNumber>;
6992
8119
  ended: z.ZodOptional<z.ZodObject<{
@@ -6997,10 +8124,6 @@ export declare const sandboxContract: {
6997
8124
  cold: "cold";
6998
8125
  elapsed: "elapsed";
6999
8126
  failed: "failed";
7000
- limited: "limited";
7001
- midnight: "midnight";
7002
- moved: "moved";
7003
- rewrote: "rewrote";
7004
8127
  }>;
7005
8128
  detail: z.ZodOptional<z.ZodString>;
7006
8129
  }, z.core.$strip>>;
@@ -7041,6 +8164,7 @@ export declare const sandboxContract: {
7041
8164
  note: z.ZodOptional<z.ZodString>;
7042
8165
  breaking: z.ZodOptional<z.ZodString>;
7043
8166
  testNote: z.ZodOptional<z.ZodString>;
8167
+ allows: z.ZodOptional<z.ZodArray<z.ZodString>>;
7044
8168
  }, z.core.$strip>>;
7045
8169
  startedAt: z.ZodOptional<z.ZodNumber>;
7046
8170
  run: z.ZodOptional<z.ZodString>;
@@ -7087,6 +8211,17 @@ export declare const sandboxContract: {
7087
8211
  }, z.core.$strip>>;
7088
8212
  check: z.ZodOptional<z.ZodString>;
7089
8213
  }, z.core.$strip>>;
8214
+ proof: z.ZodOptional<z.ZodObject<{
8215
+ at: z.ZodNumber;
8216
+ verification: z.ZodEnum<{
8217
+ failing: "failing";
8218
+ "no-code": "no-code";
8219
+ unproven: "unproven";
8220
+ verified: "verified";
8221
+ }>;
8222
+ check: z.ZodOptional<z.ZodString>;
8223
+ unviewed: z.ZodOptional<z.ZodNumber>;
8224
+ }, z.core.$strip>>;
7090
8225
  turns: z.ZodOptional<z.ZodNumber>;
7091
8226
  toolUses: z.ZodOptional<z.ZodNumber>;
7092
8227
  subagents: z.ZodOptional<z.ZodObject<{
@@ -7123,6 +8258,7 @@ export declare const sandboxContract: {
7123
8258
  index: z.ZodNumber;
7124
8259
  total: z.ZodNumber;
7125
8260
  }, z.core.$strip>>;
8261
+ awaitingWake: z.ZodOptional<z.ZodBoolean>;
7126
8262
  watches: z.ZodOptional<z.ZodArray<z.ZodObject<{
7127
8263
  id: z.ZodString;
7128
8264
  note: z.ZodString;
@@ -7136,6 +8272,14 @@ export declare const sandboxContract: {
7136
8272
  startedAt: z.ZodNumber;
7137
8273
  endedAt: z.ZodOptional<z.ZodNumber>;
7138
8274
  exitCode: z.ZodOptional<z.ZodNumber>;
8275
+ watch: z.ZodOptional<z.ZodString>;
8276
+ handed: z.ZodOptional<z.ZodBoolean>;
8277
+ ports: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
8278
+ stoppedBy: z.ZodOptional<z.ZodEnum<{
8279
+ agent: "agent";
8280
+ person: "person";
8281
+ turn: "turn";
8282
+ }>>;
7139
8283
  }, z.core.$strip>>>;
7140
8284
  archivedAt: z.ZodOptional<z.ZodNumber>;
7141
8285
  }, z.core.$strip>>;
@@ -9078,6 +10222,7 @@ export declare const sandboxContract: {
9078
10222
  identity: z.ZodOptional<z.ZodString>;
9079
10223
  insecure: z.ZodOptional<z.ZodBoolean>;
9080
10224
  }, z.core.$strip>>;
10225
+ mcp: z.ZodOptional<z.ZodString>;
9081
10226
  }, z.core.$strip>, z.ZodObject<{
9082
10227
  id: z.ZodString;
9083
10228
  catalog: z.ZodObject<{
@@ -9319,6 +10464,11 @@ export declare const sandboxContract: {
9319
10464
  secret: z.ZodOptional<z.ZodBoolean>;
9320
10465
  env: z.ZodOptional<z.ZodString>;
9321
10466
  }, z.core.$strip>>>;
10467
+ tools: z.ZodOptional<z.ZodObject<{
10468
+ perCard: z.ZodOptional<z.ZodString>;
10469
+ process: z.ZodOptional<z.ZodString>;
10470
+ path: z.ZodOptional<z.ZodString>;
10471
+ }, z.core.$strip>>;
9322
10472
  viewers: z.ZodOptional<z.ZodArray<z.ZodObject<{
9323
10473
  id: z.ZodString;
9324
10474
  extensions: z.ZodArray<z.ZodString>;
@@ -9366,6 +10516,7 @@ export declare const sandboxContract: {
9366
10516
  }>;
9367
10517
  detail: z.ZodOptional<z.ZodString>;
9368
10518
  }, z.core.$strip>>;
10519
+ problems: z.ZodOptional<z.ZodArray<z.ZodString>>;
9369
10520
  update: z.ZodOptional<z.ZodObject<{
9370
10521
  ref: z.ZodString;
9371
10522
  version: z.ZodOptional<z.ZodString>;
@@ -9532,6 +10683,7 @@ export declare const sandboxContract: {
9532
10683
  identity: z.ZodOptional<z.ZodString>;
9533
10684
  insecure: z.ZodOptional<z.ZodBoolean>;
9534
10685
  }, z.core.$strip>>;
10686
+ mcp: z.ZodOptional<z.ZodString>;
9535
10687
  }, z.core.$strip>, z.ZodObject<{
9536
10688
  id: z.ZodString;
9537
10689
  catalog: z.ZodObject<{
@@ -9773,6 +10925,11 @@ export declare const sandboxContract: {
9773
10925
  secret: z.ZodOptional<z.ZodBoolean>;
9774
10926
  env: z.ZodOptional<z.ZodString>;
9775
10927
  }, z.core.$strip>>>;
10928
+ tools: z.ZodOptional<z.ZodObject<{
10929
+ perCard: z.ZodOptional<z.ZodString>;
10930
+ process: z.ZodOptional<z.ZodString>;
10931
+ path: z.ZodOptional<z.ZodString>;
10932
+ }, z.core.$strip>>;
9776
10933
  viewers: z.ZodOptional<z.ZodArray<z.ZodObject<{
9777
10934
  id: z.ZodString;
9778
10935
  extensions: z.ZodArray<z.ZodString>;
@@ -9990,6 +11147,7 @@ export declare const sandboxContract: {
9990
11147
  connectors: z.ZodOptional<z.ZodArray<z.ZodString>>;
9991
11148
  devices: z.ZodOptional<z.ZodArray<z.ZodString>>;
9992
11149
  mcp: z.ZodOptional<z.ZodArray<z.ZodString>>;
11150
+ extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
9993
11151
  }, z.core.$strip>>;
9994
11152
  workspace: z.ZodOptional<z.ZodObject<{
9995
11153
  startIn: z.ZodOptional<z.ZodString>;
@@ -10050,6 +11208,7 @@ export declare const sandboxContract: {
10050
11208
  connectors: z.ZodOptional<z.ZodArray<z.ZodString>>;
10051
11209
  devices: z.ZodOptional<z.ZodArray<z.ZodString>>;
10052
11210
  mcp: z.ZodOptional<z.ZodArray<z.ZodString>>;
11211
+ extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
10053
11212
  }, z.core.$strip>>;
10054
11213
  workspace: z.ZodOptional<z.ZodObject<{
10055
11214
  startIn: z.ZodOptional<z.ZodString>;
@@ -10222,6 +11381,32 @@ export declare const sandboxContract: {
10222
11381
  title: z.ZodString;
10223
11382
  text: z.ZodString;
10224
11383
  }, z.core.$strip>>>;
11384
+ speaker: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
11385
+ kind: z.ZodLiteral<"person">;
11386
+ email: z.ZodString;
11387
+ name: z.ZodOptional<z.ZodString>;
11388
+ }, z.core.$strip>, z.ZodObject<{
11389
+ kind: z.ZodLiteral<"program">;
11390
+ token: z.ZodString;
11391
+ }, z.core.$strip>, z.ZodObject<{
11392
+ kind: z.ZodLiteral<"agent">;
11393
+ conversationId: z.ZodString;
11394
+ }, z.core.$strip>, z.ZodObject<{
11395
+ kind: z.ZodLiteral<"sandbox">;
11396
+ source: z.ZodOptional<z.ZodString>;
11397
+ }, z.core.$strip>], "kind">>;
11398
+ errand: z.ZodOptional<z.ZodEnum<{
11399
+ "ci-fix": "ci-fix";
11400
+ "ci-fix-nudge": "ci-fix-nudge";
11401
+ "land-breakage": "land-breakage";
11402
+ "land-conflict": "land-conflict";
11403
+ "land-fix": "land-fix";
11404
+ "land-fix-nudge": "land-fix-nudge";
11405
+ "land-held": "land-held";
11406
+ "push-fix": "push-fix";
11407
+ "push-fix-nudge": "push-fix-nudge";
11408
+ "verify-nudge": "verify-nudge";
11409
+ }>>;
10225
11410
  placed: z.ZodOptional<z.ZodBoolean>;
10226
11411
  noticeAction: z.ZodOptional<z.ZodEnum<{
10227
11412
  depsInstall: "depsInstall";
@@ -10301,6 +11486,39 @@ export declare const sandboxContract: {
10301
11486
  end: z.ZodNumber;
10302
11487
  }, z.core.$strip>>;
10303
11488
  }, z.core.$strip>>;
11489
+ child: z.ZodOptional<z.ZodObject<{
11490
+ provider: z.ZodString;
11491
+ model: z.ZodString;
11492
+ harness: z.ZodOptional<z.ZodEnum<{
11493
+ "claude-code": "claude-code";
11494
+ native: "native";
11495
+ }>>;
11496
+ account: z.ZodOptional<z.ZodString>;
11497
+ effort: z.ZodOptional<z.ZodString>;
11498
+ thinking: z.ZodOptional<z.ZodBoolean>;
11499
+ fast: z.ZodOptional<z.ZodBoolean>;
11500
+ move: z.ZodEnum<{
11501
+ answer: "answer";
11502
+ send: "send";
11503
+ spawn: "spawn";
11504
+ }>;
11505
+ child: z.ZodOptional<z.ZodString>;
11506
+ task: z.ZodOptional<z.ZodString>;
11507
+ message: z.ZodOptional<z.ZodString>;
11508
+ on: z.ZodOptional<z.ZodString>;
11509
+ proposed: z.ZodOptional<z.ZodObject<{
11510
+ provider: z.ZodString;
11511
+ model: z.ZodString;
11512
+ harness: z.ZodOptional<z.ZodEnum<{
11513
+ "claude-code": "claude-code";
11514
+ native: "native";
11515
+ }>>;
11516
+ account: z.ZodOptional<z.ZodString>;
11517
+ effort: z.ZodOptional<z.ZodString>;
11518
+ thinking: z.ZodOptional<z.ZodBoolean>;
11519
+ fast: z.ZodOptional<z.ZodBoolean>;
11520
+ }, z.core.$strip>>;
11521
+ }, z.core.$strip>>;
10304
11522
  explain: z.ZodOptional<z.ZodString>;
10305
11523
  requestId: z.ZodString;
10306
11524
  status: z.ZodEnum<{
@@ -10520,11 +11738,17 @@ export declare const sandboxContract: {
10520
11738
  wait: "wait";
10521
11739
  }>>;
10522
11740
  limitMoveCarryUnder: z.ZodDefault<z.ZodNumber>;
10523
- keepWarm: z.ZodDefault<z.ZodBoolean>;
10524
- keepWarmHours: z.ZodDefault<z.ZodNumber>;
10525
- keepWarmMinTokens: z.ZodDefault<z.ZodNumber>;
10526
- keepWarmReserve: z.ZodDefault<z.ZodNumber>;
11741
+ keepWarm: z.ZodPrefault<z.ZodObject<{
11742
+ auto: z.ZodDefault<z.ZodBoolean>;
11743
+ hours: z.ZodDefault<z.ZodNumber>;
11744
+ minTokens: z.ZodDefault<z.ZodNumber>;
11745
+ reserve: z.ZodDefault<z.ZodNumber>;
11746
+ }, z.core.$strip>>;
10527
11747
  autoRepair: z.ZodDefault<z.ZodBoolean>;
11748
+ offload: z.ZodDefault<z.ZodObject<{
11749
+ commands: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
11750
+ landCheck: z.ZodOptional<z.ZodString>;
11751
+ }, z.core.$strip>>;
10528
11752
  autoResumeOnRestart: z.ZodDefault<z.ZodBoolean>;
10529
11753
  adoptedChecks: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
10530
11754
  rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -10684,11 +11908,17 @@ export declare const sandboxContract: {
10684
11908
  wait: "wait";
10685
11909
  }>>;
10686
11910
  limitMoveCarryUnder: z.ZodDefault<z.ZodNumber>;
10687
- keepWarm: z.ZodDefault<z.ZodBoolean>;
10688
- keepWarmHours: z.ZodDefault<z.ZodNumber>;
10689
- keepWarmMinTokens: z.ZodDefault<z.ZodNumber>;
10690
- keepWarmReserve: z.ZodDefault<z.ZodNumber>;
11911
+ keepWarm: z.ZodPrefault<z.ZodObject<{
11912
+ auto: z.ZodDefault<z.ZodBoolean>;
11913
+ hours: z.ZodDefault<z.ZodNumber>;
11914
+ minTokens: z.ZodDefault<z.ZodNumber>;
11915
+ reserve: z.ZodDefault<z.ZodNumber>;
11916
+ }, z.core.$strip>>;
10691
11917
  autoRepair: z.ZodDefault<z.ZodBoolean>;
11918
+ offload: z.ZodDefault<z.ZodObject<{
11919
+ commands: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
11920
+ landCheck: z.ZodOptional<z.ZodString>;
11921
+ }, z.core.$strip>>;
10692
11922
  autoResumeOnRestart: z.ZodDefault<z.ZodBoolean>;
10693
11923
  adoptedChecks: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
10694
11924
  rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -11297,6 +12527,7 @@ export declare const sandboxContract: {
11297
12527
  note: z.ZodOptional<z.ZodString>;
11298
12528
  breaking: z.ZodOptional<z.ZodString>;
11299
12529
  testNote: z.ZodOptional<z.ZodString>;
12530
+ allows: z.ZodOptional<z.ZodArray<z.ZodString>>;
11300
12531
  }, z.core.$strip>>;
11301
12532
  }, z.core.$strip>>>;
11302
12533
  committing: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -11699,6 +12930,7 @@ export declare const sandboxContract: {
11699
12930
  note: z.ZodOptional<z.ZodString>;
11700
12931
  breaking: z.ZodOptional<z.ZodString>;
11701
12932
  testNote: z.ZodOptional<z.ZodString>;
12933
+ allows: z.ZodOptional<z.ZodArray<z.ZodString>>;
11702
12934
  }, z.core.$strip>>;
11703
12935
  }, z.core.$strip>>>;
11704
12936
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
@@ -11928,6 +13160,7 @@ export declare const sandboxContract: {
11928
13160
  tree: z.ZodArray<z.ZodType<import("./schemas/workspace/workspace-tree.js").WorkspaceTreeEntry, unknown, z.core.$ZodTypeInternals<import("./schemas/workspace/workspace-tree.js").WorkspaceTreeEntry, unknown>>>;
11929
13161
  hidden: z.ZodNumber;
11930
13162
  barren: z.ZodArray<z.ZodString>;
13163
+ generation: z.ZodOptional<z.ZodNumber>;
11931
13164
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
11932
13165
  children: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
11933
13166
  agent: z.ZodOptional<z.ZodString>;
@@ -12214,6 +13447,12 @@ export declare const sandboxContract: {
12214
13447
  path: z.ZodString;
12215
13448
  }, z.core.$strip>, z.ZodObject<{
12216
13449
  ok: z.ZodLiteral<true>;
13450
+ trashed: z.ZodOptional<z.ZodString>;
13451
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
13452
+ restore: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
13453
+ trashed: z.ZodString;
13454
+ }, z.core.$strip>, z.ZodObject<{
13455
+ path: z.ZodString;
12217
13456
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
12218
13457
  move: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
12219
13458
  from: z.ZodString;
@@ -12227,35 +13466,245 @@ export declare const sandboxContract: {
12227
13466
  }, z.core.$strip>, z.ZodObject<{
12228
13467
  ok: z.ZodLiteral<true>;
12229
13468
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
12230
- extract: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
12231
- path: z.ZodString;
13469
+ extract: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
13470
+ path: z.ZodString;
13471
+ }, z.core.$strip>, z.ZodObject<{
13472
+ path: z.ZodString;
13473
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
13474
+ setup: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
13475
+ projects: z.ZodArray<z.ZodObject<{
13476
+ dir: z.ZodString;
13477
+ ecosystem: z.ZodEnum<{
13478
+ node: "node";
13479
+ python: "python";
13480
+ }>;
13481
+ manager: z.ZodString;
13482
+ command: z.ZodString;
13483
+ evidence: z.ZodString;
13484
+ state: z.ZodEnum<{
13485
+ installing: "installing";
13486
+ "needs-setup": "needs-setup";
13487
+ ready: "ready";
13488
+ stale: "stale";
13489
+ unsupported: "unsupported";
13490
+ }>;
13491
+ missing: z.ZodOptional<z.ZodNumber>;
13492
+ }, z.core.$strip>>;
13493
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
13494
+ install: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
13495
+ dirs: z.ZodArray<z.ZodString>;
13496
+ }, z.core.$strip>, z.ZodObject<{
13497
+ queued: z.ZodArray<z.ZodString>;
13498
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
13499
+ mainline: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
13500
+ projects: z.ZodArray<z.ZodObject<{
13501
+ project: z.ZodString;
13502
+ running: z.ZodOptional<z.ZodObject<{
13503
+ command: z.ZodString;
13504
+ startedAt: z.ZodNumber;
13505
+ lands: z.ZodArray<z.ZodObject<{
13506
+ conversationId: z.ZodString;
13507
+ title: z.ZodOptional<z.ZodString>;
13508
+ at: z.ZodNumber;
13509
+ }, z.core.$strip>>;
13510
+ on: z.ZodOptional<z.ZodString>;
13511
+ }, z.core.$strip>>;
13512
+ session: z.ZodOptional<z.ZodString>;
13513
+ queued: z.ZodArray<z.ZodObject<{
13514
+ conversationId: z.ZodString;
13515
+ title: z.ZodOptional<z.ZodString>;
13516
+ at: z.ZodNumber;
13517
+ }, z.core.$strip>>;
13518
+ last: z.ZodOptional<z.ZodObject<{
13519
+ project: z.ZodString;
13520
+ command: z.ZodString;
13521
+ status: z.ZodEnum<{
13522
+ green: "green";
13523
+ red: "red";
13524
+ }>;
13525
+ startedAt: z.ZodNumber;
13526
+ at: z.ZodNumber;
13527
+ lands: z.ZodArray<z.ZodObject<{
13528
+ conversationId: z.ZodString;
13529
+ title: z.ZodOptional<z.ZodString>;
13530
+ at: z.ZodNumber;
13531
+ }, z.core.$strip>>;
13532
+ failures: z.ZodArray<z.ZodString>;
13533
+ failureCount: z.ZodNumber;
13534
+ attempt: z.ZodNumber;
13535
+ suspects: z.ZodOptional<z.ZodArray<z.ZodString>>;
13536
+ named: z.ZodOptional<z.ZodBoolean>;
13537
+ units: z.ZodOptional<z.ZodArray<z.ZodObject<{
13538
+ name: z.ZodString;
13539
+ path: z.ZodOptional<z.ZodString>;
13540
+ }, z.core.$strip>>>;
13541
+ routing: z.ZodOptional<z.ZodObject<{
13542
+ kind: z.ZodEnum<{
13543
+ dismissed: "dismissed";
13544
+ "fix-up": "fix-up";
13545
+ held: "held";
13546
+ original: "original";
13547
+ reported: "reported";
13548
+ resolved: "resolved";
13549
+ spent: "spent";
13550
+ waiting: "waiting";
13551
+ }>;
13552
+ conversationId: z.ZodOptional<z.ZodString>;
13553
+ at: z.ZodNumber;
13554
+ detail: z.ZodOptional<z.ZodString>;
13555
+ findings: z.ZodOptional<z.ZodArray<z.ZodString>>;
13556
+ }, z.core.$strip>>;
13557
+ }, z.core.$strip>>;
13558
+ redSince: z.ZodOptional<z.ZodNumber>;
13559
+ red: z.ZodOptional<z.ZodObject<{
13560
+ since: z.ZodNumber;
13561
+ cause: z.ZodArray<z.ZodObject<{
13562
+ conversationId: z.ZodString;
13563
+ title: z.ZodOptional<z.ZodString>;
13564
+ }, z.core.$strip>>;
13565
+ named: z.ZodBoolean;
13566
+ fixer: z.ZodOptional<z.ZodObject<{
13567
+ kind: z.ZodEnum<{
13568
+ dismissed: "dismissed";
13569
+ "fix-up": "fix-up";
13570
+ held: "held";
13571
+ original: "original";
13572
+ reported: "reported";
13573
+ resolved: "resolved";
13574
+ spent: "spent";
13575
+ waiting: "waiting";
13576
+ }>;
13577
+ conversationId: z.ZodOptional<z.ZodString>;
13578
+ at: z.ZodNumber;
13579
+ detail: z.ZodOptional<z.ZodString>;
13580
+ findings: z.ZodOptional<z.ZodArray<z.ZodString>>;
13581
+ }, z.core.$strip>>;
13582
+ }, z.core.$strip>>;
13583
+ }, z.core.$strip>>;
13584
+ recent: z.ZodArray<z.ZodObject<{
13585
+ project: z.ZodString;
13586
+ command: z.ZodString;
13587
+ status: z.ZodEnum<{
13588
+ green: "green";
13589
+ red: "red";
13590
+ }>;
13591
+ startedAt: z.ZodNumber;
13592
+ at: z.ZodNumber;
13593
+ lands: z.ZodArray<z.ZodObject<{
13594
+ conversationId: z.ZodString;
13595
+ title: z.ZodOptional<z.ZodString>;
13596
+ at: z.ZodNumber;
13597
+ }, z.core.$strip>>;
13598
+ failures: z.ZodArray<z.ZodString>;
13599
+ failureCount: z.ZodNumber;
13600
+ attempt: z.ZodNumber;
13601
+ suspects: z.ZodOptional<z.ZodArray<z.ZodString>>;
13602
+ named: z.ZodOptional<z.ZodBoolean>;
13603
+ units: z.ZodOptional<z.ZodArray<z.ZodObject<{
13604
+ name: z.ZodString;
13605
+ path: z.ZodOptional<z.ZodString>;
13606
+ }, z.core.$strip>>>;
13607
+ routing: z.ZodOptional<z.ZodObject<{
13608
+ kind: z.ZodEnum<{
13609
+ dismissed: "dismissed";
13610
+ "fix-up": "fix-up";
13611
+ held: "held";
13612
+ original: "original";
13613
+ reported: "reported";
13614
+ resolved: "resolved";
13615
+ spent: "spent";
13616
+ waiting: "waiting";
13617
+ }>;
13618
+ conversationId: z.ZodOptional<z.ZodString>;
13619
+ at: z.ZodNumber;
13620
+ detail: z.ZodOptional<z.ZodString>;
13621
+ findings: z.ZodOptional<z.ZodArray<z.ZodString>>;
13622
+ }, z.core.$strip>>;
13623
+ }, z.core.$strip>>;
13624
+ pushed: z.ZodOptional<z.ZodArray<z.ZodObject<{
13625
+ project: z.ZodString;
13626
+ id: z.ZodString;
13627
+ at: z.ZodNumber;
13628
+ remote: z.ZodOptional<z.ZodString>;
13629
+ branch: z.ZodOptional<z.ZodString>;
13630
+ base: z.ZodOptional<z.ZodString>;
13631
+ head: z.ZodString;
13632
+ commits: z.ZodNumber;
13633
+ findings: z.ZodArray<z.ZodObject<{
13634
+ id: z.ZodString;
13635
+ source: z.ZodString;
13636
+ text: z.ZodString;
13637
+ path: z.ZodOptional<z.ZodString>;
13638
+ command: z.ZodOptional<z.ZodString>;
13639
+ recheckable: z.ZodBoolean;
13640
+ gate: z.ZodOptional<z.ZodEnum<{
13641
+ code: "code";
13642
+ tidy: "tidy";
13643
+ }>>;
13644
+ commit: z.ZodOptional<z.ZodObject<{
13645
+ sha: z.ZodString;
13646
+ subject: z.ZodString;
13647
+ }, z.core.$strip>>;
13648
+ }, z.core.$strip>>;
13649
+ refused: z.ZodOptional<z.ZodBoolean>;
13650
+ }, z.core.$strip>>>;
13651
+ reds: z.ZodOptional<z.ZodArray<z.ZodObject<{
13652
+ source: z.ZodEnum<{
13653
+ ci: "ci";
13654
+ land: "land";
13655
+ push: "push";
13656
+ }>;
13657
+ scope: z.ZodString;
13658
+ since: z.ZodNumber;
13659
+ findings: z.ZodDefault<z.ZodArray<z.ZodObject<{
13660
+ id: z.ZodString;
13661
+ source: z.ZodString;
13662
+ text: z.ZodString;
13663
+ path: z.ZodOptional<z.ZodString>;
13664
+ command: z.ZodOptional<z.ZodString>;
13665
+ recheckable: z.ZodBoolean;
13666
+ gate: z.ZodOptional<z.ZodEnum<{
13667
+ code: "code";
13668
+ tidy: "tidy";
13669
+ }>>;
13670
+ commit: z.ZodOptional<z.ZodObject<{
13671
+ sha: z.ZodString;
13672
+ subject: z.ZodString;
13673
+ }, z.core.$strip>>;
13674
+ }, z.core.$strip>>>;
13675
+ suspects: z.ZodDefault<z.ZodArray<z.ZodString>>;
13676
+ named: z.ZodDefault<z.ZodBoolean>;
13677
+ decisions: z.ZodDefault<z.ZodArray<z.ZodObject<{
13678
+ kind: z.ZodEnum<{
13679
+ dismissed: "dismissed";
13680
+ "fix-up": "fix-up";
13681
+ held: "held";
13682
+ original: "original";
13683
+ reported: "reported";
13684
+ resolved: "resolved";
13685
+ spent: "spent";
13686
+ waiting: "waiting";
13687
+ }>;
13688
+ conversationId: z.ZodOptional<z.ZodString>;
13689
+ at: z.ZodNumber;
13690
+ detail: z.ZodOptional<z.ZodString>;
13691
+ findings: z.ZodOptional<z.ZodArray<z.ZodString>>;
13692
+ }, z.core.$strip>>>;
13693
+ }, z.core.$strip>>>;
13694
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
13695
+ mainlinePushDismiss: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
13696
+ project: z.ZodString;
13697
+ ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
13698
+ restore: z.ZodOptional<z.ZodBoolean>;
12232
13699
  }, z.core.$strip>, z.ZodObject<{
12233
- path: z.ZodString;
12234
- }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
12235
- setup: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
12236
- projects: z.ZodArray<z.ZodObject<{
12237
- dir: z.ZodString;
12238
- ecosystem: z.ZodEnum<{
12239
- node: "node";
12240
- python: "python";
12241
- }>;
12242
- manager: z.ZodString;
12243
- command: z.ZodString;
12244
- evidence: z.ZodString;
12245
- state: z.ZodEnum<{
12246
- installing: "installing";
12247
- "needs-setup": "needs-setup";
12248
- ready: "ready";
12249
- stale: "stale";
12250
- unsupported: "unsupported";
12251
- }>;
12252
- missing: z.ZodOptional<z.ZodNumber>;
12253
- }, z.core.$strip>>;
13700
+ changed: z.ZodNumber;
12254
13701
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
12255
- install: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
12256
- dirs: z.ZodArray<z.ZodString>;
13702
+ mainlinePushRecheck: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
13703
+ project: z.ZodString;
12257
13704
  }, z.core.$strip>, z.ZodObject<{
12258
- queued: z.ZodArray<z.ZodString>;
13705
+ measured: z.ZodBoolean;
13706
+ resolved: z.ZodNumber;
13707
+ open: z.ZodNumber;
12259
13708
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
12260
13709
  repos: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
12261
13710
  repos: z.ZodArray<z.ZodString>;
@@ -13050,6 +14499,11 @@ export declare const sandboxContract: {
13050
14499
  command: z.ZodOptional<z.ZodString>;
13051
14500
  cwd: z.ZodOptional<z.ZodString>;
13052
14501
  session: z.ZodOptional<z.ZodString>;
14502
+ job: z.ZodOptional<z.ZodObject<{
14503
+ conversationId: z.ZodString;
14504
+ jobId: z.ZodString;
14505
+ label: z.ZodString;
14506
+ }, z.core.$strip>>;
13053
14507
  forwarded: z.ZodBoolean;
13054
14508
  previewUrl: z.ZodOptional<z.ZodString>;
13055
14509
  }, z.core.$strip>>;
@@ -13303,6 +14757,29 @@ export declare const sandboxContract: {
13303
14757
  version: z.ZodOptional<z.ZodString>;
13304
14758
  channel: z.ZodString;
13305
14759
  at: z.ZodNumber;
14760
+ plan: z.ZodOptional<z.ZodObject<{
14761
+ plan: z.ZodOptional<z.ZodLiteral<1>>;
14762
+ version: z.ZodOptional<z.ZodString>;
14763
+ engine: z.ZodOptional<z.ZodNumber>;
14764
+ digest: z.ZodOptional<z.ZodString>;
14765
+ downgrade: z.ZodOptional<z.ZodBoolean>;
14766
+ failures: z.ZodOptional<z.ZodArray<z.ZodObject<{
14767
+ document: z.ZodString;
14768
+ detail: z.ZodString;
14769
+ }, z.core.$strip>>>;
14770
+ steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
14771
+ document: z.ZodString;
14772
+ change: z.ZodString;
14773
+ detail: z.ZodOptional<z.ZodString>;
14774
+ }, z.core.$strip>>>;
14775
+ converts: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
14776
+ document: z.ZodString;
14777
+ change: z.ZodString;
14778
+ detail: z.ZodOptional<z.ZodString>;
14779
+ }, z.core.$strip>>>>;
14780
+ files: z.ZodOptional<z.ZodArray<z.ZodString>>;
14781
+ ok: z.ZodBoolean;
14782
+ }, z.core.$strip>>;
13306
14783
  }, z.core.$strip>>;
13307
14784
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
13308
14785
  manifestProblems: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
@@ -13313,6 +14790,12 @@ export declare const sandboxContract: {
13313
14790
  unknownKey: "unknownKey";
13314
14791
  unreadable: "unreadable";
13315
14792
  }>;
14793
+ reason: z.ZodOptional<z.ZodEnum<{
14794
+ "conversion-failed": "conversion-failed";
14795
+ io: "io";
14796
+ "not-json": "not-json";
14797
+ rejected: "rejected";
14798
+ }>>;
13316
14799
  detail: z.ZodString;
13317
14800
  suggestion: z.ZodOptional<z.ZodString>;
13318
14801
  fix: z.ZodOptional<z.ZodString>;
@@ -13333,6 +14816,19 @@ export declare const sandboxContract: {
13333
14816
  events: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
13334
14817
  clientId: z.ZodOptional<z.ZodString>;
13335
14818
  }, z.core.$strip>, import("@orpc/contract").Schema<AsyncIteratorObject<{
14819
+ kind: "heartbeat";
14820
+ rev: number;
14821
+ } | {
14822
+ ready: boolean;
14823
+ startedAt: number;
14824
+ steps: {
14825
+ key: string;
14826
+ label: string;
14827
+ state: "done" | "failed" | "pending" | "running";
14828
+ ms?: number | undefined;
14829
+ }[];
14830
+ kind: "boot";
14831
+ } | {
13336
14832
  kind: "hello";
13337
14833
  workspaceId: string;
13338
14834
  routes?: string[] | undefined;
@@ -13349,18 +14845,8 @@ export declare const sandboxContract: {
13349
14845
  }[];
13350
14846
  } | undefined;
13351
14847
  } | {
13352
- kind: "heartbeat";
13353
- rev: number;
13354
- } | {
13355
- ready: boolean;
13356
- startedAt: number;
13357
- steps: {
13358
- key: string;
13359
- label: string;
13360
- state: "done" | "failed" | "pending" | "running";
13361
- ms?: number | undefined;
13362
- }[];
13363
- kind: "boot";
14848
+ kind: "reposChanged";
14849
+ repos: string[];
13364
14850
  } | {
13365
14851
  kind: "workspaceChanged";
13366
14852
  paths: string[];
@@ -13376,9 +14862,6 @@ export declare const sandboxContract: {
13376
14862
  shadows?: number | undefined;
13377
14863
  sweptAt?: string | undefined;
13378
14864
  };
13379
- } | {
13380
- kind: "reposChanged";
13381
- repos: string[];
13382
14865
  } | {
13383
14866
  kind: "refsChanged";
13384
14867
  repos: string[];
@@ -13417,6 +14900,7 @@ export declare const sandboxContract: {
13417
14900
  runner?: string | undefined;
13418
14901
  startIn?: string | undefined;
13419
14902
  actsAs?: string | undefined;
14903
+ lastActsAs?: string | undefined;
13420
14904
  model?: string | undefined;
13421
14905
  effort?: string | undefined;
13422
14906
  thinking?: boolean | undefined;
@@ -13468,17 +14952,16 @@ export declare const sandboxContract: {
13468
14952
  at: number;
13469
14953
  ttlMs: number;
13470
14954
  rollsAt?: number | undefined;
13471
- keepable?: boolean | undefined;
14955
+ keepableUntil?: number | undefined;
13472
14956
  } | undefined;
13473
14957
  keepWarm?: {
13474
14958
  since: number;
13475
14959
  until: number;
13476
- auto?: boolean | undefined;
13477
14960
  refreshes: number;
13478
14961
  readTokens?: number | undefined;
13479
14962
  ended?: {
13480
14963
  at: number;
13481
- reason: "allowance" | "changed" | "cold" | "elapsed" | "failed" | "limited" | "midnight" | "moved" | "rewrote";
14964
+ reason: "allowance" | "changed" | "cold" | "elapsed" | "failed";
13482
14965
  detail?: string | undefined;
13483
14966
  } | undefined;
13484
14967
  } | undefined;
@@ -13510,6 +14993,7 @@ export declare const sandboxContract: {
13510
14993
  note?: string | undefined;
13511
14994
  breaking?: string | undefined;
13512
14995
  testNote?: string | undefined;
14996
+ allows?: string[] | undefined;
13513
14997
  } | undefined;
13514
14998
  startedAt?: number | undefined;
13515
14999
  run?: string | undefined;
@@ -13545,6 +15029,12 @@ export declare const sandboxContract: {
13545
15029
  } | undefined;
13546
15030
  check?: string | undefined;
13547
15031
  } | undefined;
15032
+ proof?: {
15033
+ at: number;
15034
+ verification: "failing" | "no-code" | "unproven" | "verified";
15035
+ check?: string | undefined;
15036
+ unviewed?: number | undefined;
15037
+ } | undefined;
13548
15038
  turns?: number | undefined;
13549
15039
  toolUses?: number | undefined;
13550
15040
  subagents?: {
@@ -13573,6 +15063,7 @@ export declare const sandboxContract: {
13573
15063
  index: number;
13574
15064
  total: number;
13575
15065
  } | undefined;
15066
+ awaitingWake?: boolean | undefined;
13576
15067
  watches?: {
13577
15068
  id: string;
13578
15069
  note: string;
@@ -13586,6 +15077,10 @@ export declare const sandboxContract: {
13586
15077
  startedAt: number;
13587
15078
  endedAt?: number | undefined;
13588
15079
  exitCode?: number | undefined;
15080
+ watch?: string | undefined;
15081
+ handed?: boolean | undefined;
15082
+ ports?: number[] | undefined;
15083
+ stoppedBy?: "agent" | "person" | "turn" | undefined;
13589
15084
  }[] | undefined;
13590
15085
  archivedAt?: number | undefined;
13591
15086
  }[];
@@ -13605,6 +15100,10 @@ export declare const sandboxContract: {
13605
15100
  };
13606
15101
  }[];
13607
15102
  measuredAt: number;
15103
+ unread?: {
15104
+ since: number;
15105
+ reason: string;
15106
+ } | undefined;
13608
15107
  } | undefined;
13609
15108
  } | {
13610
15109
  kind: "providerRefusal";
@@ -13616,7 +15115,29 @@ export declare const sandboxContract: {
13616
15115
  account?: string | undefined;
13617
15116
  model?: string | undefined;
13618
15117
  } | undefined;
15118
+ } | {
15119
+ from: number;
15120
+ generation: number;
15121
+ dirs: {
15122
+ path: string;
15123
+ entries: unknown[];
15124
+ }[];
15125
+ barren?: string[] | undefined;
15126
+ kind: "treeChanged";
13619
15127
  }, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
15128
+ kind: "heartbeat";
15129
+ rev: number;
15130
+ } | {
15131
+ ready: boolean;
15132
+ startedAt: number;
15133
+ steps: {
15134
+ key: string;
15135
+ label: string;
15136
+ state: "done" | "failed" | "pending" | "running";
15137
+ ms?: number | undefined;
15138
+ }[];
15139
+ kind: "boot";
15140
+ } | {
13620
15141
  kind: "hello";
13621
15142
  workspaceId: string;
13622
15143
  routes?: string[] | undefined;
@@ -13633,18 +15154,8 @@ export declare const sandboxContract: {
13633
15154
  }[];
13634
15155
  } | undefined;
13635
15156
  } | {
13636
- kind: "heartbeat";
13637
- rev: number;
13638
- } | {
13639
- ready: boolean;
13640
- startedAt: number;
13641
- steps: {
13642
- key: string;
13643
- label: string;
13644
- state: "done" | "failed" | "pending" | "running";
13645
- ms?: number | undefined;
13646
- }[];
13647
- kind: "boot";
15157
+ kind: "reposChanged";
15158
+ repos: string[];
13648
15159
  } | {
13649
15160
  kind: "workspaceChanged";
13650
15161
  paths: string[];
@@ -13660,9 +15171,6 @@ export declare const sandboxContract: {
13660
15171
  shadows?: number | undefined;
13661
15172
  sweptAt?: string | undefined;
13662
15173
  };
13663
- } | {
13664
- kind: "reposChanged";
13665
- repos: string[];
13666
15174
  } | {
13667
15175
  kind: "refsChanged";
13668
15176
  repos: string[];
@@ -13701,6 +15209,7 @@ export declare const sandboxContract: {
13701
15209
  runner?: string | undefined;
13702
15210
  startIn?: string | undefined;
13703
15211
  actsAs?: string | undefined;
15212
+ lastActsAs?: string | undefined;
13704
15213
  model?: string | undefined;
13705
15214
  effort?: string | undefined;
13706
15215
  thinking?: boolean | undefined;
@@ -13752,17 +15261,16 @@ export declare const sandboxContract: {
13752
15261
  at: number;
13753
15262
  ttlMs: number;
13754
15263
  rollsAt?: number | undefined;
13755
- keepable?: boolean | undefined;
15264
+ keepableUntil?: number | undefined;
13756
15265
  } | undefined;
13757
15266
  keepWarm?: {
13758
15267
  since: number;
13759
15268
  until: number;
13760
- auto?: boolean | undefined;
13761
15269
  refreshes: number;
13762
15270
  readTokens?: number | undefined;
13763
15271
  ended?: {
13764
15272
  at: number;
13765
- reason: "allowance" | "changed" | "cold" | "elapsed" | "failed" | "limited" | "midnight" | "moved" | "rewrote";
15273
+ reason: "allowance" | "changed" | "cold" | "elapsed" | "failed";
13766
15274
  detail?: string | undefined;
13767
15275
  } | undefined;
13768
15276
  } | undefined;
@@ -13794,6 +15302,7 @@ export declare const sandboxContract: {
13794
15302
  note?: string | undefined;
13795
15303
  breaking?: string | undefined;
13796
15304
  testNote?: string | undefined;
15305
+ allows?: string[] | undefined;
13797
15306
  } | undefined;
13798
15307
  startedAt?: number | undefined;
13799
15308
  run?: string | undefined;
@@ -13829,6 +15338,12 @@ export declare const sandboxContract: {
13829
15338
  } | undefined;
13830
15339
  check?: string | undefined;
13831
15340
  } | undefined;
15341
+ proof?: {
15342
+ at: number;
15343
+ verification: "failing" | "no-code" | "unproven" | "verified";
15344
+ check?: string | undefined;
15345
+ unviewed?: number | undefined;
15346
+ } | undefined;
13832
15347
  turns?: number | undefined;
13833
15348
  toolUses?: number | undefined;
13834
15349
  subagents?: {
@@ -13857,6 +15372,7 @@ export declare const sandboxContract: {
13857
15372
  index: number;
13858
15373
  total: number;
13859
15374
  } | undefined;
15375
+ awaitingWake?: boolean | undefined;
13860
15376
  watches?: {
13861
15377
  id: string;
13862
15378
  note: string;
@@ -13870,6 +15386,10 @@ export declare const sandboxContract: {
13870
15386
  startedAt: number;
13871
15387
  endedAt?: number | undefined;
13872
15388
  exitCode?: number | undefined;
15389
+ watch?: string | undefined;
15390
+ handed?: boolean | undefined;
15391
+ ports?: number[] | undefined;
15392
+ stoppedBy?: "agent" | "person" | "turn" | undefined;
13873
15393
  }[] | undefined;
13874
15394
  archivedAt?: number | undefined;
13875
15395
  }[];
@@ -13889,6 +15409,10 @@ export declare const sandboxContract: {
13889
15409
  };
13890
15410
  }[];
13891
15411
  measuredAt: number;
15412
+ unread?: {
15413
+ since: number;
15414
+ reason: string;
15415
+ } | undefined;
13892
15416
  } | undefined;
13893
15417
  } | {
13894
15418
  kind: "providerRefusal";
@@ -13900,6 +15424,15 @@ export declare const sandboxContract: {
13900
15424
  account?: string | undefined;
13901
15425
  model?: string | undefined;
13902
15426
  } | undefined;
15427
+ } | {
15428
+ from: number;
15429
+ generation: number;
15430
+ dirs: {
15431
+ path: string;
15432
+ entries: import("./schemas/workspace/workspace-tree.js").WorkspaceTreeEntry[];
15433
+ }[];
15434
+ barren?: string[] | undefined;
15435
+ kind: "treeChanged";
13903
15436
  }, unknown, void>> & {
13904
15437
  [x: symbol]: z.ZodDiscriminatedUnion<[z.ZodObject<{
13905
15438
  kind: z.ZodLiteral<"hello">;
@@ -13943,6 +15476,15 @@ export declare const sandboxContract: {
13943
15476
  }, z.core.$strip>, z.ZodObject<{
13944
15477
  kind: z.ZodLiteral<"workspaceChanged">;
13945
15478
  paths: z.ZodArray<z.ZodString>;
15479
+ }, z.core.$strip>, z.ZodObject<{
15480
+ from: z.ZodNumber;
15481
+ generation: z.ZodNumber;
15482
+ dirs: z.ZodArray<z.ZodObject<{
15483
+ path: z.ZodString;
15484
+ entries: z.ZodArray<z.ZodType<import("./schemas/workspace/workspace-tree.js").WorkspaceTreeEntry, unknown, z.core.$ZodTypeInternals<import("./schemas/workspace/workspace-tree.js").WorkspaceTreeEntry, unknown>>>;
15485
+ }, z.core.$strip>>;
15486
+ barren: z.ZodOptional<z.ZodArray<z.ZodString>>;
15487
+ kind: z.ZodLiteral<"treeChanged">;
13946
15488
  }, z.core.$strip>, z.ZodObject<{
13947
15489
  kind: z.ZodLiteral<"derivedChanged">;
13948
15490
  paths: z.ZodArray<z.ZodString>;
@@ -14020,6 +15562,7 @@ export declare const sandboxContract: {
14020
15562
  runner: z.ZodOptional<z.ZodString>;
14021
15563
  startIn: z.ZodOptional<z.ZodString>;
14022
15564
  actsAs: z.ZodOptional<z.ZodString>;
15565
+ lastActsAs: z.ZodOptional<z.ZodString>;
14023
15566
  model: z.ZodOptional<z.ZodString>;
14024
15567
  effort: z.ZodOptional<z.ZodString>;
14025
15568
  thinking: z.ZodOptional<z.ZodBoolean>;
@@ -14084,12 +15627,11 @@ export declare const sandboxContract: {
14084
15627
  at: z.ZodNumber;
14085
15628
  ttlMs: z.ZodNumber;
14086
15629
  rollsAt: z.ZodOptional<z.ZodNumber>;
14087
- keepable: z.ZodOptional<z.ZodBoolean>;
15630
+ keepableUntil: z.ZodOptional<z.ZodNumber>;
14088
15631
  }, z.core.$strip>>;
14089
15632
  keepWarm: z.ZodOptional<z.ZodObject<{
14090
15633
  since: z.ZodNumber;
14091
15634
  until: z.ZodNumber;
14092
- auto: z.ZodOptional<z.ZodBoolean>;
14093
15635
  refreshes: z.ZodNumber;
14094
15636
  readTokens: z.ZodOptional<z.ZodNumber>;
14095
15637
  ended: z.ZodOptional<z.ZodObject<{
@@ -14100,10 +15642,6 @@ export declare const sandboxContract: {
14100
15642
  cold: "cold";
14101
15643
  elapsed: "elapsed";
14102
15644
  failed: "failed";
14103
- limited: "limited";
14104
- midnight: "midnight";
14105
- moved: "moved";
14106
- rewrote: "rewrote";
14107
15645
  }>;
14108
15646
  detail: z.ZodOptional<z.ZodString>;
14109
15647
  }, z.core.$strip>>;
@@ -14144,6 +15682,7 @@ export declare const sandboxContract: {
14144
15682
  note: z.ZodOptional<z.ZodString>;
14145
15683
  breaking: z.ZodOptional<z.ZodString>;
14146
15684
  testNote: z.ZodOptional<z.ZodString>;
15685
+ allows: z.ZodOptional<z.ZodArray<z.ZodString>>;
14147
15686
  }, z.core.$strip>>;
14148
15687
  startedAt: z.ZodOptional<z.ZodNumber>;
14149
15688
  run: z.ZodOptional<z.ZodString>;
@@ -14190,6 +15729,17 @@ export declare const sandboxContract: {
14190
15729
  }, z.core.$strip>>;
14191
15730
  check: z.ZodOptional<z.ZodString>;
14192
15731
  }, z.core.$strip>>;
15732
+ proof: z.ZodOptional<z.ZodObject<{
15733
+ at: z.ZodNumber;
15734
+ verification: z.ZodEnum<{
15735
+ failing: "failing";
15736
+ "no-code": "no-code";
15737
+ unproven: "unproven";
15738
+ verified: "verified";
15739
+ }>;
15740
+ check: z.ZodOptional<z.ZodString>;
15741
+ unviewed: z.ZodOptional<z.ZodNumber>;
15742
+ }, z.core.$strip>>;
14193
15743
  turns: z.ZodOptional<z.ZodNumber>;
14194
15744
  toolUses: z.ZodOptional<z.ZodNumber>;
14195
15745
  subagents: z.ZodOptional<z.ZodObject<{
@@ -14226,6 +15776,7 @@ export declare const sandboxContract: {
14226
15776
  index: z.ZodNumber;
14227
15777
  total: z.ZodNumber;
14228
15778
  }, z.core.$strip>>;
15779
+ awaitingWake: z.ZodOptional<z.ZodBoolean>;
14229
15780
  watches: z.ZodOptional<z.ZodArray<z.ZodObject<{
14230
15781
  id: z.ZodString;
14231
15782
  note: z.ZodString;
@@ -14239,6 +15790,14 @@ export declare const sandboxContract: {
14239
15790
  startedAt: z.ZodNumber;
14240
15791
  endedAt: z.ZodOptional<z.ZodNumber>;
14241
15792
  exitCode: z.ZodOptional<z.ZodNumber>;
15793
+ watch: z.ZodOptional<z.ZodString>;
15794
+ handed: z.ZodOptional<z.ZodBoolean>;
15795
+ ports: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
15796
+ stoppedBy: z.ZodOptional<z.ZodEnum<{
15797
+ agent: "agent";
15798
+ person: "person";
15799
+ turn: "turn";
15800
+ }>>;
14242
15801
  }, z.core.$strip>>>;
14243
15802
  archivedAt: z.ZodOptional<z.ZodNumber>;
14244
15803
  }, z.core.$strip>>;
@@ -14258,6 +15817,10 @@ export declare const sandboxContract: {
14258
15817
  }, z.core.$strip>]>;
14259
15818
  }, z.core.$strip>>;
14260
15819
  measuredAt: z.ZodNumber;
15820
+ unread: z.ZodOptional<z.ZodObject<{
15821
+ since: z.ZodNumber;
15822
+ reason: z.ZodString;
15823
+ }, z.core.$strip>>;
14261
15824
  }, z.core.$strip>>;
14262
15825
  }, z.core.$strip>, z.ZodObject<{
14263
15826
  kind: z.ZodLiteral<"providerRefusal">;
@@ -14305,6 +15868,13 @@ export declare const sandboxContract: {
14305
15868
  memoryBytes: z.ZodNumber;
14306
15869
  memoryLimitBytes: z.ZodNumber;
14307
15870
  swapBytes: z.ZodOptional<z.ZodNumber>;
15871
+ memoryRoom: z.ZodOptional<z.ZodObject<{
15872
+ freeBytes: z.ZodOptional<z.ZodNumber>;
15873
+ reservedBytes: z.ZodNumber;
15874
+ personNeedBytes: z.ZodNumber;
15875
+ stallPercent: z.ZodNumber;
15876
+ stallLimitPercent: z.ZodNumber;
15877
+ }, z.core.$strip>>;
14308
15878
  diskBytes: z.ZodOptional<z.ZodNumber>;
14309
15879
  diskTotalBytes: z.ZodOptional<z.ZodNumber>;
14310
15880
  loadAverage: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
@@ -14359,6 +15929,7 @@ export declare const sandboxContract: {
14359
15929
  categories: z.ZodArray<z.ZodObject<{
14360
15930
  id: z.ZodEnum<{
14361
15931
  artifacts: "artifacts";
15932
+ backups: "backups";
14362
15933
  browserCaptures: "browserCaptures";
14363
15934
  browserProfiles: "browserProfiles";
14364
15935
  buildCaches: "buildCaches";
@@ -14412,6 +15983,7 @@ export declare const sandboxContract: {
14412
15983
  categories: z.ZodArray<z.ZodObject<{
14413
15984
  id: z.ZodEnum<{
14414
15985
  artifacts: "artifacts";
15986
+ backups: "backups";
14415
15987
  browserCaptures: "browserCaptures";
14416
15988
  browserProfiles: "browserProfiles";
14417
15989
  buildCaches: "buildCaches";
@@ -14456,6 +16028,7 @@ export declare const sandboxContract: {
14456
16028
  cleanStorage: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
14457
16029
  category: z.ZodEnum<{
14458
16030
  artifacts: "artifacts";
16031
+ backups: "backups";
14459
16032
  browserCaptures: "browserCaptures";
14460
16033
  browserProfiles: "browserProfiles";
14461
16034
  buildCaches: "buildCaches";
@@ -14480,6 +16053,7 @@ export declare const sandboxContract: {
14480
16053
  }, z.core.$strip>, z.ZodObject<{
14481
16054
  category: z.ZodEnum<{
14482
16055
  artifacts: "artifacts";
16056
+ backups: "backups";
14483
16057
  browserCaptures: "browserCaptures";
14484
16058
  browserProfiles: "browserProfiles";
14485
16059
  buildCaches: "buildCaches";
@@ -14662,6 +16236,32 @@ export declare const sandboxContract: {
14662
16236
  title: z.ZodString;
14663
16237
  text: z.ZodString;
14664
16238
  }, z.core.$strip>>>;
16239
+ speaker: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
16240
+ kind: z.ZodLiteral<"person">;
16241
+ email: z.ZodString;
16242
+ name: z.ZodOptional<z.ZodString>;
16243
+ }, z.core.$strip>, z.ZodObject<{
16244
+ kind: z.ZodLiteral<"program">;
16245
+ token: z.ZodString;
16246
+ }, z.core.$strip>, z.ZodObject<{
16247
+ kind: z.ZodLiteral<"agent">;
16248
+ conversationId: z.ZodString;
16249
+ }, z.core.$strip>, z.ZodObject<{
16250
+ kind: z.ZodLiteral<"sandbox">;
16251
+ source: z.ZodOptional<z.ZodString>;
16252
+ }, z.core.$strip>], "kind">>;
16253
+ errand: z.ZodOptional<z.ZodEnum<{
16254
+ "ci-fix": "ci-fix";
16255
+ "ci-fix-nudge": "ci-fix-nudge";
16256
+ "land-breakage": "land-breakage";
16257
+ "land-conflict": "land-conflict";
16258
+ "land-fix": "land-fix";
16259
+ "land-fix-nudge": "land-fix-nudge";
16260
+ "land-held": "land-held";
16261
+ "push-fix": "push-fix";
16262
+ "push-fix-nudge": "push-fix-nudge";
16263
+ "verify-nudge": "verify-nudge";
16264
+ }>>;
14665
16265
  placed: z.ZodOptional<z.ZodBoolean>;
14666
16266
  noticeAction: z.ZodOptional<z.ZodEnum<{
14667
16267
  depsInstall: "depsInstall";
@@ -14741,6 +16341,39 @@ export declare const sandboxContract: {
14741
16341
  end: z.ZodNumber;
14742
16342
  }, z.core.$strip>>;
14743
16343
  }, z.core.$strip>>;
16344
+ child: z.ZodOptional<z.ZodObject<{
16345
+ provider: z.ZodString;
16346
+ model: z.ZodString;
16347
+ harness: z.ZodOptional<z.ZodEnum<{
16348
+ "claude-code": "claude-code";
16349
+ native: "native";
16350
+ }>>;
16351
+ account: z.ZodOptional<z.ZodString>;
16352
+ effort: z.ZodOptional<z.ZodString>;
16353
+ thinking: z.ZodOptional<z.ZodBoolean>;
16354
+ fast: z.ZodOptional<z.ZodBoolean>;
16355
+ move: z.ZodEnum<{
16356
+ answer: "answer";
16357
+ send: "send";
16358
+ spawn: "spawn";
16359
+ }>;
16360
+ child: z.ZodOptional<z.ZodString>;
16361
+ task: z.ZodOptional<z.ZodString>;
16362
+ message: z.ZodOptional<z.ZodString>;
16363
+ on: z.ZodOptional<z.ZodString>;
16364
+ proposed: z.ZodOptional<z.ZodObject<{
16365
+ provider: z.ZodString;
16366
+ model: z.ZodString;
16367
+ harness: z.ZodOptional<z.ZodEnum<{
16368
+ "claude-code": "claude-code";
16369
+ native: "native";
16370
+ }>>;
16371
+ account: z.ZodOptional<z.ZodString>;
16372
+ effort: z.ZodOptional<z.ZodString>;
16373
+ thinking: z.ZodOptional<z.ZodBoolean>;
16374
+ fast: z.ZodOptional<z.ZodBoolean>;
16375
+ }, z.core.$strip>>;
16376
+ }, z.core.$strip>>;
14744
16377
  explain: z.ZodOptional<z.ZodString>;
14745
16378
  requestId: z.ZodString;
14746
16379
  status: z.ZodEnum<{
@@ -14902,11 +16535,16 @@ export declare const sandboxContract: {
14902
16535
  sync: "sync";
14903
16536
  }>;
14904
16537
  seenAt: z.ZodOptional<z.ZodNumber>;
16538
+ machineId: z.ZodOptional<z.ZodString>;
16539
+ environment: z.ZodOptional<z.ZodString>;
14905
16540
  }, z.core.$strip>>;
14906
16541
  hostId: z.ZodOptional<z.ZodString>;
16542
+ card: z.ZodOptional<z.ZodString>;
16543
+ machineId: z.ZodOptional<z.ZodString>;
14907
16544
  online: z.ZodOptional<z.ZodBoolean>;
14908
16545
  platform: z.ZodOptional<z.ZodString>;
14909
16546
  facts: z.ZodOptional<z.ZodObject<{
16547
+ machineId: z.ZodOptional<z.ZodString>;
14910
16548
  os: z.ZodString;
14911
16549
  arch: z.ZodString;
14912
16550
  shell: z.ZodString;
@@ -14926,10 +16564,12 @@ export declare const sandboxContract: {
14926
16564
  unreachable: z.ZodNumber;
14927
16565
  unreachableSince: z.ZodOptional<z.ZodNumber>;
14928
16566
  }, z.core.$strip>>;
16567
+ features: z.ZodOptional<z.ZodArray<z.ZodString>>;
14929
16568
  }, z.core.$strip>>;
14930
16569
  agentVersion: z.ZodOptional<z.ZodString>;
14931
16570
  lastSeen: z.ZodOptional<z.ZodNumber>;
14932
16571
  report: z.ZodOptional<z.ZodObject<{
16572
+ machineId: z.ZodOptional<z.ZodString>;
14933
16573
  hostname: z.ZodString;
14934
16574
  os: z.ZodString;
14935
16575
  wsl: z.ZodOptional<z.ZodObject<{
@@ -15009,6 +16649,18 @@ export declare const sandboxContract: {
15009
16649
  gpu: z.ZodBoolean;
15010
16650
  hostRuntime: z.ZodArray<z.ZodString>;
15011
16651
  overlayRuntime: z.ZodArray<z.ZodString>;
16652
+ shape: z.ZodOptional<z.ZodObject<{
16653
+ memoryGib: z.ZodNullable<z.ZodInt>;
16654
+ cpus: z.ZodNullable<z.ZodInt>;
16655
+ privileged: z.ZodBoolean;
16656
+ gpu: z.ZodBoolean;
16657
+ }, z.core.$strip>>;
16658
+ desired: z.ZodOptional<z.ZodObject<{
16659
+ memoryGib: z.ZodNullable<z.ZodInt>;
16660
+ cpus: z.ZodNullable<z.ZodInt>;
16661
+ privileged: z.ZodBoolean;
16662
+ gpu: z.ZodBoolean;
16663
+ }, z.core.$strip>>;
15012
16664
  saved: z.ZodOptional<z.ZodObject<{
15013
16665
  memoryGib: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
15014
16666
  cpus: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
@@ -15016,6 +16668,11 @@ export declare const sandboxContract: {
15016
16668
  gpu: z.ZodOptional<z.ZodBoolean>;
15017
16669
  }, z.core.$strip>>;
15018
16670
  }, z.core.$strip>>;
16671
+ staged: z.ZodOptional<z.ZodObject<{
16672
+ image: z.ZodString;
16673
+ version: z.ZodOptional<z.ZodString>;
16674
+ channel: z.ZodOptional<z.ZodString>;
16675
+ }, z.core.$strip>>;
15019
16676
  }, z.core.$strip>>>;
15020
16677
  gap: z.ZodOptional<z.ZodEnum<{
15021
16678
  offline: "offline";
@@ -15027,6 +16684,7 @@ export declare const sandboxContract: {
15027
16684
  manageDeviceSandbox: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
15028
16685
  op: z.ZodEnum<{
15029
16686
  create: "create";
16687
+ "forget-shape": "forget-shape";
15030
16688
  logs: "logs";
15031
16689
  prepare: "prepare";
15032
16690
  rebuild: "rebuild";
@@ -15037,18 +16695,29 @@ export declare const sandboxContract: {
15037
16695
  rollback: "rollback";
15038
16696
  "runner-remove": "runner-remove";
15039
16697
  "runner-up": "runner-up";
16698
+ "set-shape": "set-shape";
15040
16699
  start: "start";
15041
16700
  stop: "stop";
15042
16701
  update: "update";
15043
16702
  }>;
15044
16703
  slug: z.ZodString;
15045
16704
  hash: z.ZodOptional<z.ZodString>;
16705
+ shape: z.ZodOptional<z.ZodObject<{
16706
+ memoryGib: z.ZodNullable<z.ZodInt>;
16707
+ cpus: z.ZodNullable<z.ZodInt>;
16708
+ privileged: z.ZodBoolean;
16709
+ gpu: z.ZodBoolean;
16710
+ }, z.core.$strict>>;
16711
+ when: z.ZodOptional<z.ZodEnum<{
16712
+ nextRestart: "nextRestart";
16713
+ now: "now";
16714
+ }>>;
15046
16715
  resources: z.ZodOptional<z.ZodObject<{
15047
16716
  memoryGib: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
15048
16717
  cpus: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
15049
16718
  privileged: z.ZodOptional<z.ZodBoolean>;
15050
16719
  gpu: z.ZodOptional<z.ZodBoolean>;
15051
- }, z.core.$strip>>;
16720
+ }, z.core.$strict>>;
15052
16721
  later: z.ZodOptional<z.ZodBoolean>;
15053
16722
  parentUrl: z.ZodOptional<z.ZodString>;
15054
16723
  pair: z.ZodOptional<z.ZodString>;
@@ -15058,7 +16727,7 @@ export declare const sandboxContract: {
15058
16727
  overlay: z.ZodOptional<z.ZodString>;
15059
16728
  overlayHash: z.ZodOptional<z.ZodString>;
15060
16729
  id: z.ZodString;
15061
- }, z.core.$strip>, import("@orpc/contract").Schema<AsyncIteratorObject<{
16730
+ }, z.core.$strict>, import("@orpc/contract").Schema<AsyncIteratorObject<{
15062
16731
  kind: "line";
15063
16732
  text: string;
15064
16733
  } | {
@@ -15124,7 +16793,7 @@ export declare const sandboxContract: {
15124
16793
  upgrade: "upgrade";
15125
16794
  }>;
15126
16795
  id: z.ZodString;
15127
- }, z.core.$strip>, import("@orpc/contract").Schema<AsyncIteratorObject<{
16796
+ }, z.core.$strict>, import("@orpc/contract").Schema<AsyncIteratorObject<{
15128
16797
  kind: "line";
15129
16798
  text: string;
15130
16799
  } | {
@@ -15171,11 +16840,33 @@ export declare const sandboxContract: {
15171
16840
  }, z.core.$strip>]>;
15172
16841
  }, z.core.$strip>>;
15173
16842
  measuredAt: z.ZodNumber;
16843
+ unread: z.ZodOptional<z.ZodObject<{
16844
+ since: z.ZodNumber;
16845
+ reason: z.ZodString;
16846
+ }, z.core.$strip>>;
15174
16847
  }, z.core.$strip>>;
15175
16848
  cooling: z.ZodOptional<z.ZodObject<{
15176
16849
  until: z.ZodOptional<z.ZodNumber>;
15177
16850
  reason: z.ZodOptional<z.ZodString>;
15178
16851
  }, z.core.$strip>>;
16852
+ state: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
16853
+ kind: z.ZodLiteral<"ready">;
16854
+ room: z.ZodNumber;
16855
+ }, z.core.$strip>, z.ZodObject<{
16856
+ kind: z.ZodLiteral<"spent">;
16857
+ reopensAt: z.ZodOptional<z.ZodNumber>;
16858
+ }, z.core.$strip>, z.ZodObject<{
16859
+ kind: z.ZodLiteral<"blocked">;
16860
+ fix: z.ZodEnum<{
16861
+ admin: "admin";
16862
+ reconnect: "reconnect";
16863
+ wait: "wait";
16864
+ }>;
16865
+ reason: z.ZodString;
16866
+ until: z.ZodOptional<z.ZodNumber>;
16867
+ }, z.core.$strip>, z.ZodObject<{
16868
+ kind: z.ZodLiteral<"unknown">;
16869
+ }, z.core.$strip>], "kind">>;
15179
16870
  }, z.core.$strip>>;
15180
16871
  gemini: z.ZodArray<z.ZodObject<{
15181
16872
  name: z.ZodString;
@@ -15191,11 +16882,33 @@ export declare const sandboxContract: {
15191
16882
  }, z.core.$strip>]>;
15192
16883
  }, z.core.$strip>>;
15193
16884
  measuredAt: z.ZodNumber;
16885
+ unread: z.ZodOptional<z.ZodObject<{
16886
+ since: z.ZodNumber;
16887
+ reason: z.ZodString;
16888
+ }, z.core.$strip>>;
15194
16889
  }, z.core.$strip>>;
15195
16890
  cooling: z.ZodOptional<z.ZodObject<{
15196
16891
  until: z.ZodOptional<z.ZodNumber>;
15197
16892
  reason: z.ZodOptional<z.ZodString>;
15198
16893
  }, z.core.$strip>>;
16894
+ state: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
16895
+ kind: z.ZodLiteral<"ready">;
16896
+ room: z.ZodNumber;
16897
+ }, z.core.$strip>, z.ZodObject<{
16898
+ kind: z.ZodLiteral<"spent">;
16899
+ reopensAt: z.ZodOptional<z.ZodNumber>;
16900
+ }, z.core.$strip>, z.ZodObject<{
16901
+ kind: z.ZodLiteral<"blocked">;
16902
+ fix: z.ZodEnum<{
16903
+ admin: "admin";
16904
+ reconnect: "reconnect";
16905
+ wait: "wait";
16906
+ }>;
16907
+ reason: z.ZodString;
16908
+ until: z.ZodOptional<z.ZodNumber>;
16909
+ }, z.core.$strip>, z.ZodObject<{
16910
+ kind: z.ZodLiteral<"unknown">;
16911
+ }, z.core.$strip>], "kind">>;
15199
16912
  }, z.core.$strip>>;
15200
16913
  grok: z.ZodArray<z.ZodObject<{
15201
16914
  name: z.ZodString;
@@ -15211,11 +16924,33 @@ export declare const sandboxContract: {
15211
16924
  }, z.core.$strip>]>;
15212
16925
  }, z.core.$strip>>;
15213
16926
  measuredAt: z.ZodNumber;
16927
+ unread: z.ZodOptional<z.ZodObject<{
16928
+ since: z.ZodNumber;
16929
+ reason: z.ZodString;
16930
+ }, z.core.$strip>>;
15214
16931
  }, z.core.$strip>>;
15215
16932
  cooling: z.ZodOptional<z.ZodObject<{
15216
16933
  until: z.ZodOptional<z.ZodNumber>;
15217
16934
  reason: z.ZodOptional<z.ZodString>;
15218
16935
  }, z.core.$strip>>;
16936
+ state: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
16937
+ kind: z.ZodLiteral<"ready">;
16938
+ room: z.ZodNumber;
16939
+ }, z.core.$strip>, z.ZodObject<{
16940
+ kind: z.ZodLiteral<"spent">;
16941
+ reopensAt: z.ZodOptional<z.ZodNumber>;
16942
+ }, z.core.$strip>, z.ZodObject<{
16943
+ kind: z.ZodLiteral<"blocked">;
16944
+ fix: z.ZodEnum<{
16945
+ admin: "admin";
16946
+ reconnect: "reconnect";
16947
+ wait: "wait";
16948
+ }>;
16949
+ reason: z.ZodString;
16950
+ until: z.ZodOptional<z.ZodNumber>;
16951
+ }, z.core.$strip>, z.ZodObject<{
16952
+ kind: z.ZodLiteral<"unknown">;
16953
+ }, z.core.$strip>], "kind">>;
15219
16954
  }, z.core.$strip>>;
15220
16955
  kimi: z.ZodArray<z.ZodObject<{
15221
16956
  name: z.ZodString;
@@ -15231,11 +16966,33 @@ export declare const sandboxContract: {
15231
16966
  }, z.core.$strip>]>;
15232
16967
  }, z.core.$strip>>;
15233
16968
  measuredAt: z.ZodNumber;
16969
+ unread: z.ZodOptional<z.ZodObject<{
16970
+ since: z.ZodNumber;
16971
+ reason: z.ZodString;
16972
+ }, z.core.$strip>>;
15234
16973
  }, z.core.$strip>>;
15235
16974
  cooling: z.ZodOptional<z.ZodObject<{
15236
16975
  until: z.ZodOptional<z.ZodNumber>;
15237
16976
  reason: z.ZodOptional<z.ZodString>;
15238
16977
  }, z.core.$strip>>;
16978
+ state: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
16979
+ kind: z.ZodLiteral<"ready">;
16980
+ room: z.ZodNumber;
16981
+ }, z.core.$strip>, z.ZodObject<{
16982
+ kind: z.ZodLiteral<"spent">;
16983
+ reopensAt: z.ZodOptional<z.ZodNumber>;
16984
+ }, z.core.$strip>, z.ZodObject<{
16985
+ kind: z.ZodLiteral<"blocked">;
16986
+ fix: z.ZodEnum<{
16987
+ admin: "admin";
16988
+ reconnect: "reconnect";
16989
+ wait: "wait";
16990
+ }>;
16991
+ reason: z.ZodString;
16992
+ until: z.ZodOptional<z.ZodNumber>;
16993
+ }, z.core.$strip>, z.ZodObject<{
16994
+ kind: z.ZodLiteral<"unknown">;
16995
+ }, z.core.$strip>], "kind">>;
15239
16996
  }, z.core.$strip>>;
15240
16997
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
15241
16998
  connect: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
@@ -15416,6 +17173,111 @@ export declare const sandboxContract: {
15416
17173
  }, z.core.$strip>>;
15417
17174
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
15418
17175
  };
17176
+ offload: {
17177
+ target: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
17178
+ runner: z.ZodString;
17179
+ }, z.core.$strip>, z.ZodObject<{
17180
+ runner: z.ZodString;
17181
+ name: z.ZodString;
17182
+ ready: z.ZodBoolean;
17183
+ why: z.ZodOptional<z.ZodString>;
17184
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
17185
+ run: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
17186
+ runId: z.ZodString;
17187
+ repo: z.ZodString;
17188
+ ref: z.ZodString;
17189
+ cwd: z.ZodString;
17190
+ command: z.ZodString;
17191
+ env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
17192
+ exports: z.ZodDefault<z.ZodArray<z.ZodString>>;
17193
+ label: z.ZodString;
17194
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
17195
+ runner: z.ZodString;
17196
+ }, z.core.$strip>, import("@orpc/contract").Schema<AsyncIteratorObject<{
17197
+ kind: "status";
17198
+ text: string;
17199
+ } | {
17200
+ kind: "output";
17201
+ stream: "stderr" | "stdout";
17202
+ text: string;
17203
+ } | {
17204
+ kind: "exit";
17205
+ code: number;
17206
+ signal?: string | undefined;
17207
+ failure?: string | undefined;
17208
+ ran?: boolean | undefined;
17209
+ patchBase64?: string | undefined;
17210
+ files?: Record<string, string> | undefined;
17211
+ } | {
17212
+ kind: "refused";
17213
+ why: string;
17214
+ }, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
17215
+ kind: "status";
17216
+ text: string;
17217
+ } | {
17218
+ kind: "output";
17219
+ stream: "stderr" | "stdout";
17220
+ text: string;
17221
+ } | {
17222
+ kind: "exit";
17223
+ code: number;
17224
+ signal?: string | undefined;
17225
+ failure?: string | undefined;
17226
+ ran: boolean;
17227
+ patchBase64?: string | undefined;
17228
+ files: Record<string, string>;
17229
+ } | {
17230
+ kind: "refused";
17231
+ why: string;
17232
+ }, unknown, void>> & {
17233
+ [x: symbol]: z.ZodUnion<readonly [z.ZodObject<{
17234
+ kind: z.ZodLiteral<"status">;
17235
+ text: z.ZodString;
17236
+ }, z.core.$strip>, z.ZodObject<{
17237
+ kind: z.ZodLiteral<"output">;
17238
+ stream: z.ZodEnum<{
17239
+ stderr: "stderr";
17240
+ stdout: "stdout";
17241
+ }>;
17242
+ text: z.ZodString;
17243
+ }, z.core.$strip>, z.ZodObject<{
17244
+ kind: z.ZodLiteral<"exit">;
17245
+ code: z.ZodNumber;
17246
+ signal: z.ZodOptional<z.ZodString>;
17247
+ failure: z.ZodOptional<z.ZodString>;
17248
+ ran: z.ZodDefault<z.ZodBoolean>;
17249
+ patchBase64: z.ZodOptional<z.ZodString>;
17250
+ files: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
17251
+ }, z.core.$strip>, z.ZodObject<{
17252
+ kind: z.ZodLiteral<"refused">;
17253
+ why: z.ZodString;
17254
+ }, z.core.$strip>]>;
17255
+ }, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
17256
+ cancel: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
17257
+ runId: z.ZodString;
17258
+ }, z.core.$strip>, z.ZodObject<{
17259
+ ok: z.ZodLiteral<true>;
17260
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
17261
+ kinds: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
17262
+ kinds: z.ZodArray<z.ZodObject<{
17263
+ id: z.ZodString;
17264
+ pattern: z.ZodString;
17265
+ }, z.core.$strip>>;
17266
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
17267
+ runs: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
17268
+ runs: z.ZodArray<z.ZodObject<{
17269
+ runId: z.ZodString;
17270
+ runner: z.ZodString;
17271
+ name: z.ZodString;
17272
+ label: z.ZodString;
17273
+ command: z.ZodString;
17274
+ startedAt: z.ZodNumber;
17275
+ endedAt: z.ZodOptional<z.ZodNumber>;
17276
+ code: z.ZodOptional<z.ZodNumber>;
17277
+ failure: z.ZodOptional<z.ZodString>;
17278
+ }, z.core.$strip>>;
17279
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
17280
+ };
15419
17281
  exit: {
15420
17282
  list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
15421
17283
  links: z.ZodArray<z.ZodObject<{