@intentic/sandbox-contract 1.331.0 → 1.333.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 (416) hide show
  1. package/README.md +23 -1
  2. package/dist/chores/probes.d.ts.map +1 -1
  3. package/dist/chores/probes.js.map +1 -1
  4. package/dist/contracts/accounts.contract.d.ts +11 -0
  5. package/dist/contracts/accounts.contract.d.ts.map +1 -1
  6. package/dist/contracts/agent.contract.d.ts +38 -0
  7. package/dist/contracts/agent.contract.d.ts.map +1 -1
  8. package/dist/contracts/agent.contract.js +14 -3
  9. package/dist/contracts/agent.contract.js.map +1 -1
  10. package/dist/contracts/agents.contract.d.ts +29 -0
  11. package/dist/contracts/agents.contract.d.ts.map +1 -1
  12. package/dist/contracts/automations.contract.d.ts +3 -0
  13. package/dist/contracts/automations.contract.d.ts.map +1 -1
  14. package/dist/contracts/device.contract.d.ts +7 -0
  15. package/dist/contracts/device.contract.d.ts.map +1 -1
  16. package/dist/contracts/git.contract.d.ts +2 -0
  17. package/dist/contracts/git.contract.d.ts.map +1 -1
  18. package/dist/contracts/logs.contract.d.ts +10 -0
  19. package/dist/contracts/logs.contract.d.ts.map +1 -1
  20. package/dist/contracts/needs.contract.d.ts +36 -1
  21. package/dist/contracts/needs.contract.d.ts.map +1 -1
  22. package/dist/contracts/needs.contract.js +2 -2
  23. package/dist/contracts/needs.contract.js.map +1 -1
  24. package/dist/contracts/offload.contract.d.ts +70 -0
  25. package/dist/contracts/offload.contract.d.ts.map +1 -1
  26. package/dist/contracts/offload.contract.js +10 -1
  27. package/dist/contracts/offload.contract.js.map +1 -1
  28. package/dist/contracts/privacy.contract.d.ts +14 -0
  29. package/dist/contracts/privacy.contract.d.ts.map +1 -1
  30. package/dist/contracts/privacy.contract.js +11 -1
  31. package/dist/contracts/privacy.contract.js.map +1 -1
  32. package/dist/contracts/providers.contract.d.ts +3 -0
  33. package/dist/contracts/providers.contract.d.ts.map +1 -1
  34. package/dist/contracts/runner.contract.d.ts +103 -2
  35. package/dist/contracts/runner.contract.d.ts.map +1 -1
  36. package/dist/contracts/runner.contract.js +2 -2
  37. package/dist/contracts/runner.contract.js.map +1 -1
  38. package/dist/contracts/sessions.contract.d.ts +1 -0
  39. package/dist/contracts/sessions.contract.d.ts.map +1 -1
  40. package/dist/contracts/settings.contract.d.ts +106 -94
  41. package/dist/contracts/settings.contract.d.ts.map +1 -1
  42. package/dist/contracts/settings.contract.js +19 -1
  43. package/dist/contracts/settings.contract.js.map +1 -1
  44. package/dist/contracts/system.contract.d.ts +17 -0
  45. package/dist/contracts/system.contract.d.ts.map +1 -1
  46. package/dist/contracts/translator.contract.d.ts +4 -0
  47. package/dist/contracts/translator.contract.d.ts.map +1 -1
  48. package/dist/events/agent-events.d.ts +46 -0
  49. package/dist/events/agent-events.d.ts.map +1 -1
  50. package/dist/events/agent-events.js +6 -0
  51. package/dist/events/agent-events.js.map +1 -1
  52. package/dist/events/agent-words.d.ts.map +1 -1
  53. package/dist/events/agent-words.js +1 -1
  54. package/dist/events/agent-words.js.map +1 -1
  55. package/dist/events/resume.d.ts +3 -0
  56. package/dist/events/resume.d.ts.map +1 -1
  57. package/dist/events/resume.js +17 -2
  58. package/dist/events/resume.js.map +1 -1
  59. package/dist/events/sandbox-notice.d.ts +18 -0
  60. package/dist/events/sandbox-notice.d.ts.map +1 -1
  61. package/dist/events/sandbox-notice.js +27 -1
  62. package/dist/events/sandbox-notice.js.map +1 -1
  63. package/dist/events/system-events.d.ts +2 -0
  64. package/dist/events/system-events.d.ts.map +1 -1
  65. package/dist/events/transcript.d.ts +64 -0
  66. package/dist/events/transcript.d.ts.map +1 -1
  67. package/dist/events/transcript.js +17 -1
  68. package/dist/events/transcript.js.map +1 -1
  69. package/dist/index.d.ts +427 -167
  70. package/dist/index.d.ts.map +1 -1
  71. package/dist/index.js +12 -0
  72. package/dist/index.js.map +1 -1
  73. package/dist/models/agent-catalog.d.ts.map +1 -1
  74. package/dist/models/agent-catalog.js +8 -7
  75. package/dist/models/agent-catalog.js.map +1 -1
  76. package/dist/models/agent-runtimes.d.ts +3 -1
  77. package/dist/models/agent-runtimes.d.ts.map +1 -1
  78. package/dist/models/agent-runtimes.js +10 -0
  79. package/dist/models/agent-runtimes.js.map +1 -1
  80. package/dist/models/model-order.d.ts +1 -0
  81. package/dist/models/model-order.d.ts.map +1 -1
  82. package/dist/models/model-order.js +9 -0
  83. package/dist/models/model-order.js.map +1 -1
  84. package/dist/models/model-pins.d.ts.map +1 -1
  85. package/dist/models/model-pins.js.map +1 -1
  86. package/dist/models/model-roles.d.ts +33 -18
  87. package/dist/models/model-roles.d.ts.map +1 -1
  88. package/dist/models/model-roles.js +31 -27
  89. package/dist/models/model-roles.js.map +1 -1
  90. package/dist/models/model-setups.d.ts +46 -0
  91. package/dist/models/model-setups.d.ts.map +1 -0
  92. package/dist/models/model-setups.js +86 -0
  93. package/dist/models/model-setups.js.map +1 -0
  94. package/dist/models/plan-pools.d.ts +3 -1
  95. package/dist/models/plan-pools.d.ts.map +1 -1
  96. package/dist/models/plan-pools.js +18 -6
  97. package/dist/models/plan-pools.js.map +1 -1
  98. package/dist/models/provider-specs.d.ts +20 -0
  99. package/dist/models/provider-specs.d.ts.map +1 -1
  100. package/dist/models/provider-specs.js +13 -1
  101. package/dist/models/provider-specs.js.map +1 -1
  102. package/dist/policy/command-classes.d.ts.map +1 -1
  103. package/dist/policy/command-classes.js +26 -3
  104. package/dist/policy/command-classes.js.map +1 -1
  105. package/dist/policy/control-scopes.d.ts +47 -0
  106. package/dist/policy/control-scopes.d.ts.map +1 -1
  107. package/dist/policy/control-scopes.js +16 -0
  108. package/dist/policy/control-scopes.js.map +1 -1
  109. package/dist/policy/credential-material.d.ts +6 -0
  110. package/dist/policy/credential-material.d.ts.map +1 -1
  111. package/dist/policy/credential-material.js +37 -15
  112. package/dist/policy/credential-material.js.map +1 -1
  113. package/dist/policy/device-programs.d.ts +28 -0
  114. package/dist/policy/device-programs.d.ts.map +1 -0
  115. package/dist/policy/device-programs.js +79 -0
  116. package/dist/policy/device-programs.js.map +1 -0
  117. package/dist/policy/identity-assertion.d.ts +27 -0
  118. package/dist/policy/identity-assertion.d.ts.map +1 -0
  119. package/dist/policy/identity-assertion.js +77 -0
  120. package/dist/policy/identity-assertion.js.map +1 -0
  121. package/dist/policy/sandbox-power.d.ts +34 -0
  122. package/dist/policy/sandbox-power.d.ts.map +1 -0
  123. package/dist/policy/sandbox-power.js +146 -0
  124. package/dist/policy/sandbox-power.js.map +1 -0
  125. package/dist/policy/search-globs.d.ts +3 -0
  126. package/dist/policy/search-globs.d.ts.map +1 -1
  127. package/dist/policy/search-globs.js +118 -0
  128. package/dist/policy/search-globs.js.map +1 -1
  129. package/dist/policy/secret-hosts.d.ts +1 -0
  130. package/dist/policy/secret-hosts.d.ts.map +1 -1
  131. package/dist/policy/secret-hosts.js +1 -0
  132. package/dist/policy/secret-hosts.js.map +1 -1
  133. package/dist/policy/turned-away.d.ts.map +1 -1
  134. package/dist/policy/turned-away.js +1 -0
  135. package/dist/policy/turned-away.js.map +1 -1
  136. package/dist/protocol/doors/runner-protocol.d.ts +45 -0
  137. package/dist/protocol/doors/runner-protocol.d.ts.map +1 -1
  138. package/dist/protocol/doors/runner-protocol.js +7 -0
  139. package/dist/protocol/doors/runner-protocol.js.map +1 -1
  140. package/dist/protocol/pairing-redeem.d.ts +23 -0
  141. package/dist/protocol/pairing-redeem.d.ts.map +1 -0
  142. package/dist/protocol/pairing-redeem.js +44 -0
  143. package/dist/protocol/pairing-redeem.js.map +1 -0
  144. package/dist/protocol/peer-mcp-server.d.ts.map +1 -1
  145. package/dist/protocol/peer-mcp-server.js +1 -1
  146. package/dist/protocol/peer-mcp-server.js.map +1 -1
  147. package/dist/protocol/raw/raw-json-routes.d.ts +855 -1
  148. package/dist/protocol/raw/raw-json-routes.d.ts.map +1 -1
  149. package/dist/protocol/raw/raw-json-routes.js +61 -1
  150. package/dist/protocol/raw/raw-json-routes.js.map +1 -1
  151. package/dist/protocol/raw/raw-routes.d.ts +17 -0
  152. package/dist/protocol/raw/raw-routes.d.ts.map +1 -1
  153. package/dist/protocol/raw/raw-routes.js +5 -0
  154. package/dist/protocol/raw/raw-routes.js.map +1 -1
  155. package/dist/protocol/sse.d.ts +20 -1
  156. package/dist/protocol/sse.d.ts.map +1 -1
  157. package/dist/protocol/sse.js +112 -17
  158. package/dist/protocol/sse.js.map +1 -1
  159. package/dist/schemas/agent.d.ts +35 -0
  160. package/dist/schemas/agent.d.ts.map +1 -1
  161. package/dist/schemas/agent.js +12 -1
  162. package/dist/schemas/agent.js.map +1 -1
  163. package/dist/schemas/automations.d.ts +7 -0
  164. package/dist/schemas/automations.d.ts.map +1 -1
  165. package/dist/schemas/automations.js +11 -3
  166. package/dist/schemas/automations.js.map +1 -1
  167. package/dist/schemas/device-swaps.d.ts +19 -0
  168. package/dist/schemas/device-swaps.d.ts.map +1 -0
  169. package/dist/schemas/device-swaps.js +11 -0
  170. package/dist/schemas/device-swaps.js.map +1 -0
  171. package/dist/schemas/devices.d.ts +17 -0
  172. package/dist/schemas/devices.d.ts.map +1 -1
  173. package/dist/schemas/devices.js +2 -1
  174. package/dist/schemas/devices.js.map +1 -1
  175. package/dist/schemas/engines.d.ts +8 -1
  176. package/dist/schemas/engines.d.ts.map +1 -1
  177. package/dist/schemas/engines.js +1 -1
  178. package/dist/schemas/engines.js.map +1 -1
  179. package/dist/schemas/environment.d.ts +7 -0
  180. package/dist/schemas/environment.d.ts.map +1 -1
  181. package/dist/schemas/environment.js +2 -0
  182. package/dist/schemas/environment.js.map +1 -1
  183. package/dist/schemas/git/git-scope.d.ts +20 -0
  184. package/dist/schemas/git/git-scope.d.ts.map +1 -0
  185. package/dist/schemas/git/git-scope.js +37 -0
  186. package/dist/schemas/git/git-scope.js.map +1 -0
  187. package/dist/schemas/git/git.d.ts +1 -0
  188. package/dist/schemas/git/git.d.ts.map +1 -1
  189. package/dist/schemas/git/git.js +9 -1
  190. package/dist/schemas/git/git.js.map +1 -1
  191. package/dist/schemas/hosts.d.ts +42 -0
  192. package/dist/schemas/hosts.d.ts.map +1 -1
  193. package/dist/schemas/hosts.js +3 -0
  194. package/dist/schemas/hosts.js.map +1 -1
  195. package/dist/schemas/keep-warm.d.ts +1 -0
  196. package/dist/schemas/keep-warm.d.ts.map +1 -1
  197. package/dist/schemas/keep-warm.js +1 -1
  198. package/dist/schemas/keep-warm.js.map +1 -1
  199. package/dist/schemas/logs.d.ts +21 -0
  200. package/dist/schemas/logs.d.ts.map +1 -1
  201. package/dist/schemas/logs.js +19 -0
  202. package/dist/schemas/logs.js.map +1 -1
  203. package/dist/schemas/members.d.ts +4 -0
  204. package/dist/schemas/members.d.ts.map +1 -1
  205. package/dist/schemas/members.js +5 -0
  206. package/dist/schemas/members.js.map +1 -1
  207. package/dist/schemas/metrics.d.ts +12 -0
  208. package/dist/schemas/metrics.d.ts.map +1 -1
  209. package/dist/schemas/metrics.js +26 -8
  210. package/dist/schemas/metrics.js.map +1 -1
  211. package/dist/schemas/needs.d.ts +97 -1
  212. package/dist/schemas/needs.d.ts.map +1 -1
  213. package/dist/schemas/needs.js +53 -4
  214. package/dist/schemas/needs.js.map +1 -1
  215. package/dist/schemas/offload.d.ts +154 -0
  216. package/dist/schemas/offload.d.ts.map +1 -1
  217. package/dist/schemas/offload.js +34 -0
  218. package/dist/schemas/offload.js.map +1 -1
  219. package/dist/schemas/privacy.d.ts +19 -0
  220. package/dist/schemas/privacy.d.ts.map +1 -1
  221. package/dist/schemas/privacy.js +17 -2
  222. package/dist/schemas/privacy.js.map +1 -1
  223. package/dist/schemas/project-bring-back.d.ts +172 -0
  224. package/dist/schemas/project-bring-back.d.ts.map +1 -0
  225. package/dist/schemas/project-bring-back.js +39 -0
  226. package/dist/schemas/project-bring-back.js.map +1 -0
  227. package/dist/schemas/providers/handoff.d.ts +77 -0
  228. package/dist/schemas/providers/handoff.d.ts.map +1 -0
  229. package/dist/schemas/providers/handoff.js +85 -0
  230. package/dist/schemas/providers/handoff.js.map +1 -0
  231. package/dist/schemas/providers/plan-limits.d.ts +27 -0
  232. package/dist/schemas/providers/plan-limits.d.ts.map +1 -1
  233. package/dist/schemas/providers/plan-limits.js +8 -1
  234. package/dist/schemas/providers/plan-limits.js.map +1 -1
  235. package/dist/schemas/providers/provider-oauth.d.ts +4 -0
  236. package/dist/schemas/providers/provider-oauth.d.ts.map +1 -1
  237. package/dist/schemas/providers/usage.d.ts +3 -1
  238. package/dist/schemas/providers/usage.d.ts.map +1 -1
  239. package/dist/schemas/providers/usage.js +7 -2
  240. package/dist/schemas/providers/usage.js.map +1 -1
  241. package/dist/schemas/restart-intent.d.ts +47 -0
  242. package/dist/schemas/restart-intent.d.ts.map +1 -0
  243. package/dist/schemas/restart-intent.js +19 -0
  244. package/dist/schemas/restart-intent.js.map +1 -0
  245. package/dist/schemas/run-targets.d.ts.map +1 -1
  246. package/dist/schemas/run-targets.js +5 -2
  247. package/dist/schemas/run-targets.js.map +1 -1
  248. package/dist/schemas/settings-history.d.ts +1 -1
  249. package/dist/schemas/settings-history.d.ts.map +1 -1
  250. package/dist/schemas/settings-history.js +21 -0
  251. package/dist/schemas/settings-history.js.map +1 -1
  252. package/dist/schemas/settings.d.ts +101 -100
  253. package/dist/schemas/settings.d.ts.map +1 -1
  254. package/dist/schemas/settings.js +43 -24
  255. package/dist/schemas/settings.js.map +1 -1
  256. package/dist/schemas/short-codes.d.ts +47 -0
  257. package/dist/schemas/short-codes.d.ts.map +1 -0
  258. package/dist/schemas/short-codes.js +30 -0
  259. package/dist/schemas/short-codes.js.map +1 -0
  260. package/dist/schemas/speech.d.ts +4 -0
  261. package/dist/schemas/speech.d.ts.map +1 -1
  262. package/dist/schemas/speech.js +1 -0
  263. package/dist/schemas/speech.js.map +1 -1
  264. package/dist/schemas/system.d.ts +176 -0
  265. package/dist/schemas/system.d.ts.map +1 -1
  266. package/dist/schemas/system.js +55 -2
  267. package/dist/schemas/system.js.map +1 -1
  268. package/dist/schemas/voice.d.ts +171 -0
  269. package/dist/schemas/voice.d.ts.map +1 -0
  270. package/dist/schemas/voice.js +99 -0
  271. package/dist/schemas/voice.js.map +1 -0
  272. package/dist/schemas/workspace/workspace-upload.d.ts +14 -0
  273. package/dist/schemas/workspace/workspace-upload.d.ts.map +1 -0
  274. package/dist/schemas/workspace/workspace-upload.js +6 -0
  275. package/dist/schemas/workspace/workspace-upload.js.map +1 -0
  276. package/dist/state/arrival.d.ts +3 -0
  277. package/dist/state/arrival.d.ts.map +1 -1
  278. package/dist/state/arrival.js +1 -0
  279. package/dist/state/arrival.js.map +1 -1
  280. package/dist/state/definition.d.ts +112 -40
  281. package/dist/state/definition.d.ts.map +1 -1
  282. package/dist/state/history-state.d.ts.map +1 -1
  283. package/dist/state/history-state.js +3 -0
  284. package/dist/state/history-state.js.map +1 -1
  285. package/dist/state/runtime-state.d.ts +5 -2
  286. package/dist/state/runtime-state.d.ts.map +1 -1
  287. package/dist/state/runtime-state.js +3 -2
  288. package/dist/state/runtime-state.js.map +1 -1
  289. package/dist/state/update-probation.d.ts +50 -0
  290. package/dist/state/update-probation.d.ts.map +1 -0
  291. package/dist/state/update-probation.js +81 -0
  292. package/dist/state/update-probation.js.map +1 -0
  293. package/dist/state/versions.d.ts +6 -0
  294. package/dist/state/versions.d.ts.map +1 -1
  295. package/dist/state/versions.js +47 -0
  296. package/dist/state/versions.js.map +1 -1
  297. package/dist/state/workspace-state.d.ts +1 -1
  298. package/dist/state/workspace-state.d.ts.map +1 -1
  299. package/dist/state/workspace-state.js +1 -1
  300. package/dist/state/workspace-state.js.map +1 -1
  301. package/dist/text/embed.d.ts +2 -1
  302. package/dist/text/embed.d.ts.map +1 -1
  303. package/dist/text/embed.js +10 -5
  304. package/dist/text/embed.js.map +1 -1
  305. package/dist/text/title.d.ts.map +1 -1
  306. package/dist/text/title.js +4 -7
  307. package/dist/text/title.js.map +1 -1
  308. package/dist/text/transcript-fold.d.ts +2 -1
  309. package/dist/text/transcript-fold.d.ts.map +1 -1
  310. package/dist/text/transcript-fold.js +21 -6
  311. package/dist/text/transcript-fold.js.map +1 -1
  312. package/package.json +39 -6
  313. package/src/chores/probes.ts +3 -1
  314. package/src/contracts/agent.contract.ts +24 -3
  315. package/src/contracts/needs.contract.ts +2 -2
  316. package/src/contracts/offload.contract.ts +21 -1
  317. package/src/contracts/privacy.contract.ts +13 -0
  318. package/src/contracts/runner.contract.ts +10 -2
  319. package/src/contracts/settings.contract.ts +23 -0
  320. package/src/events/agent-events.ts +13 -0
  321. package/src/events/agent-words.ts +2 -3
  322. package/src/events/resume.test.ts +14 -2
  323. package/src/events/resume.ts +32 -3
  324. package/src/events/sandbox-notice.ts +31 -1
  325. package/src/events/transcript.ts +27 -2
  326. package/src/ids/tunnel-ids.test.ts +30 -0
  327. package/src/index.ts +12 -0
  328. package/src/models/agent-catalog.test.ts +4 -3
  329. package/src/models/agent-catalog.ts +10 -7
  330. package/src/models/agent-runtimes.ts +30 -1
  331. package/src/models/capability-ledger.test.ts +4 -0
  332. package/src/models/model-order.ts +13 -0
  333. package/src/models/model-pins.ts +5 -4
  334. package/src/models/model-roles.test.ts +9 -31
  335. package/src/models/model-roles.ts +45 -50
  336. package/src/models/model-setups.test.ts +100 -0
  337. package/src/models/model-setups.ts +151 -0
  338. package/src/models/plan-pools.test.ts +58 -0
  339. package/src/models/plan-pools.ts +38 -7
  340. package/src/models/provider-specs.ts +20 -2
  341. package/src/policy/command-classes.ts +34 -3
  342. package/src/policy/control-scopes.ts +27 -0
  343. package/src/policy/credential-material.ts +58 -16
  344. package/src/policy/device-programs.ts +137 -0
  345. package/src/policy/identity-assertion.ts +130 -0
  346. package/src/policy/sandbox-power.ts +247 -0
  347. package/src/policy/search-globs.ts +135 -0
  348. package/src/policy/secret-hosts.ts +7 -0
  349. package/src/policy/tests/command-classes.test.ts +35 -0
  350. package/src/policy/tests/credential-material.test.ts +20 -0
  351. package/src/policy/tests/device-programs.test.ts +107 -0
  352. package/src/policy/tests/identity-assertion.test.ts +79 -0
  353. package/src/policy/tests/sandbox-power.test.ts +181 -0
  354. package/src/policy/tests/search-globs.test.ts +46 -1
  355. package/src/policy/tests/secret-hosts.test.ts +17 -1
  356. package/src/policy/turned-away.ts +2 -0
  357. package/src/protocol/doors/runner-protocol.ts +21 -1
  358. package/src/protocol/pairing-redeem.test.ts +86 -0
  359. package/src/protocol/pairing-redeem.ts +79 -0
  360. package/src/protocol/peer-mcp-server.ts +1 -2
  361. package/src/protocol/raw/raw-json-routes.test.ts +87 -0
  362. package/src/protocol/raw/raw-json-routes.ts +127 -5
  363. package/src/protocol/raw/raw-routes.ts +11 -0
  364. package/src/protocol/sse.test.ts +50 -1
  365. package/src/protocol/sse.ts +172 -26
  366. package/src/schemas/agent.ts +23 -2
  367. package/src/schemas/automations.ts +16 -5
  368. package/src/schemas/daemon-health.test.ts +28 -0
  369. package/src/schemas/device-swaps.test.ts +39 -0
  370. package/src/schemas/device-swaps.ts +26 -0
  371. package/src/schemas/devices.ts +11 -2
  372. package/src/schemas/engines.ts +1 -1
  373. package/src/schemas/environment.ts +4 -0
  374. package/src/schemas/git/git-scope.test.ts +91 -0
  375. package/src/schemas/git/git-scope.ts +71 -0
  376. package/src/schemas/git/git.ts +15 -1
  377. package/src/schemas/hosts.ts +7 -0
  378. package/src/schemas/keep-warm.ts +2 -1
  379. package/src/schemas/logs.ts +25 -0
  380. package/src/schemas/members.ts +8 -0
  381. package/src/schemas/metrics.test.ts +80 -0
  382. package/src/schemas/metrics.ts +31 -9
  383. package/src/schemas/needs.ts +80 -4
  384. package/src/schemas/offload.ts +76 -0
  385. package/src/schemas/privacy.ts +27 -3
  386. package/src/schemas/project-bring-back.test.ts +15 -0
  387. package/src/schemas/project-bring-back.ts +78 -0
  388. package/src/schemas/providers/handoff.test.ts +42 -0
  389. package/src/schemas/providers/handoff.ts +128 -0
  390. package/src/schemas/providers/plan-limits.ts +14 -1
  391. package/src/schemas/providers/usage.ts +13 -7
  392. package/src/schemas/restart-intent.test.ts +45 -0
  393. package/src/schemas/restart-intent.ts +47 -0
  394. package/src/schemas/run-targets.ts +5 -2
  395. package/src/schemas/settings-history.ts +28 -0
  396. package/src/schemas/settings.test.ts +74 -21
  397. package/src/schemas/settings.ts +80 -44
  398. package/src/schemas/short-codes.ts +59 -0
  399. package/src/schemas/speech.ts +4 -0
  400. package/src/schemas/system.ts +106 -5
  401. package/src/schemas/voice.ts +161 -0
  402. package/src/schemas/workspace/workspace-upload.ts +11 -0
  403. package/src/state/arrival.ts +3 -0
  404. package/src/state/history-state.ts +9 -0
  405. package/src/state/runtime-state.test.ts +13 -0
  406. package/src/state/runtime-state.ts +11 -5
  407. package/src/state/update-probation.test.ts +45 -0
  408. package/src/state/update-probation.ts +169 -0
  409. package/src/state/versions.test.ts +30 -1
  410. package/src/state/versions.ts +68 -0
  411. package/src/state/workspace-state.ts +4 -1
  412. package/src/text/embed.test.ts +14 -0
  413. package/src/text/embed.ts +19 -10
  414. package/src/text/title.ts +5 -9
  415. package/src/text/transcript-fold.test.ts +61 -0
  416. package/src/text/transcript-fold.ts +31 -6
package/dist/index.d.ts CHANGED
@@ -95,6 +95,8 @@ export * from "./models/agent-catalog.js";
95
95
  export * from "./policy/capability-env.js";
96
96
  export * from "./policy/command-classes.js";
97
97
  export * from "./policy/command-run.js";
98
+ export * from "./policy/device-programs.js";
99
+ export * from "./policy/sandbox-power.js";
98
100
  export * from "./policy/safety-policy.js";
99
101
  export * from "./policy/reserved-servers.js";
100
102
  export * from "./policy/credential-material.js";
@@ -119,6 +121,7 @@ export * from "./models/model-order.js";
119
121
  export * from "./models/model-offer.js";
120
122
  export * from "./models/model-pins.js";
121
123
  export * from "./models/model-roles.js";
124
+ export * from "./models/model-setups.js";
122
125
  export * from "./models/plan-pools.js";
123
126
  export * from "./text/path-refs.js";
124
127
  export * from "./text/archives.js";
@@ -133,6 +136,7 @@ export * from "./policy/persona-home.js";
133
136
  export * from "./schemas/agents.js";
134
137
  export * from "./schemas/speaker.js";
135
138
  export * from "./schemas/speech.js";
139
+ export * from "./schemas/voice.js";
136
140
  export * from "./schemas/approvals.js";
137
141
  export * from "./schemas/automations.js";
138
142
  export * from "./schemas/agents-list.js";
@@ -143,6 +147,7 @@ export * from "./schemas/providers/claude-gate.js";
143
147
  export * from "./schemas/codebase-health.js";
144
148
  export * from "./schemas/context-trim.js";
145
149
  export * from "./schemas/devices.js";
150
+ export * from "./schemas/device-swaps.js";
146
151
  export * from "./schemas/project-delivery.js";
147
152
  export * from "./schemas/device-artifacts.js";
148
153
  export * from "./schemas/run-targets.js";
@@ -153,6 +158,7 @@ export * from "./schemas/extension-updates.js";
153
158
  export * from "./schemas/providers/fast-mode.js";
154
159
  export * from "./schemas/diff.js";
155
160
  export * from "./schemas/git/git.js";
161
+ export * from "./schemas/git/git-scope.js";
156
162
  export * from "./schemas/git/git-history.js";
157
163
  export * from "./schemas/history.js";
158
164
  export * from "./schemas/hosts.js";
@@ -171,7 +177,9 @@ export * from "./schemas/panels.js";
171
177
  export * from "./schemas/personas.js";
172
178
  export * from "./schemas/privacy.js";
173
179
  export * from "./schemas/providers/plan-limits.js";
180
+ export * from "./schemas/providers/handoff.js";
174
181
  export * from "./schemas/platform-link.js";
182
+ export * from "./schemas/project-bring-back.js";
175
183
  export * from "./schemas/ports.js";
176
184
  export * from "./schemas/providers/provider-oauth.js";
177
185
  export * from "./schemas/providers/provider-subscriptions.js";
@@ -186,9 +194,11 @@ export * from "./schemas/settings.js";
186
194
  export * from "./schemas/settings-history.js";
187
195
  export * from "./schemas/share.js";
188
196
  export * from "./schemas/shared.js";
197
+ export * from "./schemas/short-codes.js";
189
198
  export * from "./schemas/system-prompt.js";
190
199
  export * from "./schemas/system.js";
191
200
  export * from "./schemas/state-plan.js";
201
+ export * from "./schemas/restart-intent.js";
192
202
  export * from "./schemas/updates.js";
193
203
  export * from "./schemas/terminal.js";
194
204
  export * from "./schemas/turn-break.js";
@@ -204,11 +214,13 @@ export * from "./schemas/workspace/workspace-repos.js";
204
214
  export * from "./schemas/workspace/workspace-search.js";
205
215
  export * from "./schemas/workspace/workspace-setup.js";
206
216
  export * from "./schemas/workspace/workspace-tree.js";
217
+ export * from "./schemas/workspace/workspace-upload.js";
207
218
  export * from "./state/arrival.js";
208
219
  export * from "./state/definition.js";
209
220
  export * from "./policy/search-globs.js";
210
221
  export * from "./state/starter.js";
211
222
  export * from "./text/title.js";
223
+ export * from "./state/update-probation.js";
212
224
  export * from "./state/versions.js";
213
225
  export * from "./text/model-answer.js";
214
226
  export * from "./text/shell-regions.js";
@@ -222,6 +234,7 @@ export declare const sandboxContract: {
222
234
  claude: "claude";
223
235
  codex: "codex";
224
236
  cursor: "cursor";
237
+ devin: "devin";
225
238
  gemini: "gemini";
226
239
  grok: "grok";
227
240
  kimi: "kimi";
@@ -254,6 +267,7 @@ export declare const sandboxContract: {
254
267
  claude: "claude";
255
268
  codex: "codex";
256
269
  cursor: "cursor";
270
+ devin: "devin";
257
271
  gemini: "gemini";
258
272
  grok: "grok";
259
273
  kimi: "kimi";
@@ -286,6 +300,7 @@ export declare const sandboxContract: {
286
300
  models: z.ZodArray<z.ZodString>;
287
301
  }, z.core.$strip>]>;
288
302
  rounded: z.ZodOptional<z.ZodBoolean>;
303
+ lapsedAt: z.ZodOptional<z.ZodNumber>;
289
304
  }, z.core.$strip>>;
290
305
  measuredAt: z.ZodNumber;
291
306
  unread: z.ZodOptional<z.ZodObject<{
@@ -320,6 +335,7 @@ export declare const sandboxContract: {
320
335
  claude: "claude";
321
336
  codex: "codex";
322
337
  cursor: "cursor";
338
+ devin: "devin";
323
339
  gemini: "gemini";
324
340
  grok: "grok";
325
341
  kimi: "kimi";
@@ -352,6 +368,7 @@ export declare const sandboxContract: {
352
368
  models: z.ZodArray<z.ZodString>;
353
369
  }, z.core.$strip>]>;
354
370
  rounded: z.ZodOptional<z.ZodBoolean>;
371
+ lapsedAt: z.ZodOptional<z.ZodNumber>;
355
372
  }, z.core.$strip>>;
356
373
  measuredAt: z.ZodNumber;
357
374
  unread: z.ZodOptional<z.ZodObject<{
@@ -389,6 +406,7 @@ export declare const sandboxContract: {
389
406
  claude: "claude";
390
407
  codex: "codex";
391
408
  cursor: "cursor";
409
+ devin: "devin";
392
410
  gemini: "gemini";
393
411
  grok: "grok";
394
412
  kimi: "kimi";
@@ -404,6 +422,7 @@ export declare const sandboxContract: {
404
422
  claude: "claude";
405
423
  codex: "codex";
406
424
  cursor: "cursor";
425
+ devin: "devin";
407
426
  gemini: "gemini";
408
427
  grok: "grok";
409
428
  kimi: "kimi";
@@ -433,6 +452,7 @@ export declare const sandboxContract: {
433
452
  models: z.ZodArray<z.ZodString>;
434
453
  }, z.core.$strip>]>;
435
454
  rounded: z.ZodOptional<z.ZodBoolean>;
455
+ lapsedAt: z.ZodOptional<z.ZodNumber>;
436
456
  }, z.core.$strip>>;
437
457
  measuredAt: z.ZodNumber;
438
458
  unread: z.ZodOptional<z.ZodObject<{
@@ -467,6 +487,7 @@ export declare const sandboxContract: {
467
487
  claude: "claude";
468
488
  codex: "codex";
469
489
  cursor: "cursor";
490
+ devin: "devin";
470
491
  gemini: "gemini";
471
492
  grok: "grok";
472
493
  kimi: "kimi";
@@ -496,6 +517,7 @@ export declare const sandboxContract: {
496
517
  models: z.ZodArray<z.ZodString>;
497
518
  }, z.core.$strip>]>;
498
519
  rounded: z.ZodOptional<z.ZodBoolean>;
520
+ lapsedAt: z.ZodOptional<z.ZodNumber>;
499
521
  }, z.core.$strip>>;
500
522
  measuredAt: z.ZodNumber;
501
523
  unread: z.ZodOptional<z.ZodObject<{
@@ -529,6 +551,7 @@ export declare const sandboxContract: {
529
551
  claude: "claude";
530
552
  codex: "codex";
531
553
  cursor: "cursor";
554
+ devin: "devin";
532
555
  gemini: "gemini";
533
556
  grok: "grok";
534
557
  kimi: "kimi";
@@ -651,6 +674,7 @@ export declare const sandboxContract: {
651
674
  "deployment-fix": "deployment-fix";
652
675
  "documentation-run": "documentation-run";
653
676
  "extension-review": "extension-review";
677
+ "handoff-summary": "handoff-summary";
654
678
  "loop-iteration": "loop-iteration";
655
679
  "loop-verdict": "loop-verdict";
656
680
  "maintenance-chore": "maintenance-chore";
@@ -659,6 +683,7 @@ export declare const sandboxContract: {
659
683
  "refactor-run": "refactor-run";
660
684
  "safety-judge": "safety-judge";
661
685
  "session-title": "session-title";
686
+ "spoken-reply": "spoken-reply";
662
687
  }>>;
663
688
  origin: z.ZodOptional<z.ZodObject<{
664
689
  automationId: z.ZodString;
@@ -719,6 +744,7 @@ export declare const sandboxContract: {
719
744
  text: string;
720
745
  run?: string | undefined;
721
746
  sentAt?: number | undefined;
747
+ openedAt?: number | undefined;
722
748
  messageId?: string | undefined;
723
749
  attachments?: string[] | undefined;
724
750
  checkpointId?: string | undefined;
@@ -907,6 +933,13 @@ export declare const sandboxContract: {
907
933
  id: string;
908
934
  conversationId: string;
909
935
  subject: {
936
+ kind: "secret";
937
+ name: string;
938
+ where?: string | undefined;
939
+ link?: string | undefined;
940
+ hint?: string | undefined;
941
+ replace?: boolean | undefined;
942
+ } | {
910
943
  kind: "capability";
911
944
  entry: string;
912
945
  name: string;
@@ -917,13 +950,6 @@ export declare const sandboxContract: {
917
950
  changes?: Record<string, string> | undefined;
918
951
  reason?: string | undefined;
919
952
  reported?: boolean | undefined;
920
- } | {
921
- kind: "secret";
922
- name: string;
923
- where?: string | undefined;
924
- link?: string | undefined;
925
- hint?: string | undefined;
926
- replace?: boolean | undefined;
927
953
  } | {
928
954
  kind: "grant";
929
955
  subject: "capability" | "folder" | "shelf" | "site";
@@ -1146,6 +1172,7 @@ export declare const sandboxContract: {
1146
1172
  text: string;
1147
1173
  run?: string | undefined;
1148
1174
  sentAt?: number | undefined;
1175
+ openedAt?: number | undefined;
1149
1176
  messageId?: string | undefined;
1150
1177
  attachments?: string[] | undefined;
1151
1178
  checkpointId?: string | undefined;
@@ -1334,6 +1361,13 @@ export declare const sandboxContract: {
1334
1361
  id: string;
1335
1362
  conversationId: string;
1336
1363
  subject: {
1364
+ kind: "secret";
1365
+ name: string;
1366
+ where?: string | undefined;
1367
+ link?: string | undefined;
1368
+ hint?: string | undefined;
1369
+ replace?: boolean | undefined;
1370
+ } | {
1337
1371
  kind: "capability";
1338
1372
  entry: string;
1339
1373
  name: string;
@@ -1344,13 +1378,6 @@ export declare const sandboxContract: {
1344
1378
  changes?: Record<string, string> | undefined;
1345
1379
  reason?: string | undefined;
1346
1380
  reported?: boolean | undefined;
1347
- } | {
1348
- kind: "secret";
1349
- name: string;
1350
- where?: string | undefined;
1351
- link?: string | undefined;
1352
- hint?: string | undefined;
1353
- replace?: boolean | undefined;
1354
1381
  } | {
1355
1382
  kind: "grant";
1356
1383
  subject: "capability" | "folder" | "shelf" | "site";
@@ -1571,6 +1598,7 @@ export declare const sandboxContract: {
1571
1598
  text: string;
1572
1599
  run?: string | undefined;
1573
1600
  sentAt?: number | undefined;
1601
+ openedAt?: number | undefined;
1574
1602
  messageId?: string | undefined;
1575
1603
  attachments?: string[] | undefined;
1576
1604
  checkpointId?: string | undefined;
@@ -1759,6 +1787,13 @@ export declare const sandboxContract: {
1759
1787
  id: string;
1760
1788
  conversationId: string;
1761
1789
  subject: {
1790
+ kind: "secret";
1791
+ name: string;
1792
+ where?: string | undefined;
1793
+ link?: string | undefined;
1794
+ hint?: string | undefined;
1795
+ replace?: boolean | undefined;
1796
+ } | {
1762
1797
  kind: "capability";
1763
1798
  entry: string;
1764
1799
  name: string;
@@ -1769,13 +1804,6 @@ export declare const sandboxContract: {
1769
1804
  changes?: Record<string, string> | undefined;
1770
1805
  reason?: string | undefined;
1771
1806
  reported?: boolean | undefined;
1772
- } | {
1773
- kind: "secret";
1774
- name: string;
1775
- where?: string | undefined;
1776
- link?: string | undefined;
1777
- hint?: string | undefined;
1778
- replace?: boolean | undefined;
1779
1807
  } | {
1780
1808
  kind: "grant";
1781
1809
  subject: "capability" | "folder" | "shelf" | "site";
@@ -2026,6 +2054,7 @@ export declare const sandboxContract: {
2026
2054
  text: string;
2027
2055
  run?: string | undefined;
2028
2056
  sentAt?: number | undefined;
2057
+ openedAt?: number | undefined;
2029
2058
  messageId?: string | undefined;
2030
2059
  attachments?: string[] | undefined;
2031
2060
  checkpointId?: string | undefined;
@@ -2214,6 +2243,13 @@ export declare const sandboxContract: {
2214
2243
  id: string;
2215
2244
  conversationId: string;
2216
2245
  subject: {
2246
+ kind: "secret";
2247
+ name: string;
2248
+ where?: string | undefined;
2249
+ link?: string | undefined;
2250
+ hint?: string | undefined;
2251
+ replace?: boolean | undefined;
2252
+ } | {
2217
2253
  kind: "capability";
2218
2254
  entry: string;
2219
2255
  name: string;
@@ -2224,13 +2260,6 @@ export declare const sandboxContract: {
2224
2260
  changes?: Record<string, string> | undefined;
2225
2261
  reason?: string | undefined;
2226
2262
  reported?: boolean | undefined;
2227
- } | {
2228
- kind: "secret";
2229
- name: string;
2230
- where?: string | undefined;
2231
- link?: string | undefined;
2232
- hint?: string | undefined;
2233
- replace?: boolean | undefined;
2234
2263
  } | {
2235
2264
  kind: "grant";
2236
2265
  subject: "capability" | "folder" | "shelf" | "site";
@@ -2455,6 +2484,7 @@ export declare const sandboxContract: {
2455
2484
  text: string;
2456
2485
  run?: string | undefined;
2457
2486
  sentAt?: number | undefined;
2487
+ openedAt?: number | undefined;
2458
2488
  messageId?: string | undefined;
2459
2489
  attachments?: string[] | undefined;
2460
2490
  checkpointId?: string | undefined;
@@ -2643,6 +2673,13 @@ export declare const sandboxContract: {
2643
2673
  id: string;
2644
2674
  conversationId: string;
2645
2675
  subject: {
2676
+ kind: "secret";
2677
+ name: string;
2678
+ where?: string | undefined;
2679
+ link?: string | undefined;
2680
+ hint?: string | undefined;
2681
+ replace?: boolean | undefined;
2682
+ } | {
2646
2683
  kind: "capability";
2647
2684
  entry: string;
2648
2685
  name: string;
@@ -2653,13 +2690,6 @@ export declare const sandboxContract: {
2653
2690
  changes?: Record<string, string> | undefined;
2654
2691
  reason?: string | undefined;
2655
2692
  reported?: boolean | undefined;
2656
- } | {
2657
- kind: "secret";
2658
- name: string;
2659
- where?: string | undefined;
2660
- link?: string | undefined;
2661
- hint?: string | undefined;
2662
- replace?: boolean | undefined;
2663
2693
  } | {
2664
2694
  kind: "grant";
2665
2695
  subject: "capability" | "folder" | "shelf" | "site";
@@ -2882,6 +2912,7 @@ export declare const sandboxContract: {
2882
2912
  text: string;
2883
2913
  run?: string | undefined;
2884
2914
  sentAt?: number | undefined;
2915
+ openedAt?: number | undefined;
2885
2916
  messageId?: string | undefined;
2886
2917
  attachments?: string[] | undefined;
2887
2918
  checkpointId?: string | undefined;
@@ -3070,6 +3101,13 @@ export declare const sandboxContract: {
3070
3101
  id: string;
3071
3102
  conversationId: string;
3072
3103
  subject: {
3104
+ kind: "secret";
3105
+ name: string;
3106
+ where?: string | undefined;
3107
+ link?: string | undefined;
3108
+ hint?: string | undefined;
3109
+ replace?: boolean | undefined;
3110
+ } | {
3073
3111
  kind: "capability";
3074
3112
  entry: string;
3075
3113
  name: string;
@@ -3080,13 +3118,6 @@ export declare const sandboxContract: {
3080
3118
  changes?: Record<string, string> | undefined;
3081
3119
  reason?: string | undefined;
3082
3120
  reported?: boolean | undefined;
3083
- } | {
3084
- kind: "secret";
3085
- name: string;
3086
- where?: string | undefined;
3087
- link?: string | undefined;
3088
- hint?: string | undefined;
3089
- replace?: boolean | undefined;
3090
3121
  } | {
3091
3122
  kind: "grant";
3092
3123
  subject: "capability" | "folder" | "shelf" | "site";
@@ -3344,6 +3375,7 @@ export declare const sandboxContract: {
3344
3375
  text: z.ZodString;
3345
3376
  run: z.ZodOptional<z.ZodString>;
3346
3377
  sentAt: z.ZodOptional<z.ZodNumber>;
3378
+ openedAt: z.ZodOptional<z.ZodNumber>;
3347
3379
  messageId: z.ZodOptional<z.ZodString>;
3348
3380
  attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
3349
3381
  checkpointId: z.ZodOptional<z.ZodString>;
@@ -3949,6 +3981,7 @@ export declare const sandboxContract: {
3949
3981
  text: z.ZodString;
3950
3982
  run: z.ZodOptional<z.ZodString>;
3951
3983
  sentAt: z.ZodOptional<z.ZodNumber>;
3984
+ openedAt: z.ZodOptional<z.ZodNumber>;
3952
3985
  messageId: z.ZodOptional<z.ZodString>;
3953
3986
  attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
3954
3987
  checkpointId: z.ZodOptional<z.ZodString>;
@@ -4552,6 +4585,7 @@ export declare const sandboxContract: {
4552
4585
  text: z.ZodString;
4553
4586
  run: z.ZodOptional<z.ZodString>;
4554
4587
  sentAt: z.ZodOptional<z.ZodNumber>;
4588
+ openedAt: z.ZodOptional<z.ZodNumber>;
4555
4589
  messageId: z.ZodOptional<z.ZodString>;
4556
4590
  attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
4557
4591
  checkpointId: z.ZodOptional<z.ZodString>;
@@ -5326,6 +5360,7 @@ export declare const sandboxContract: {
5326
5360
  }>>;
5327
5361
  until: z.ZodOptional<z.ZodNumber>;
5328
5362
  after: z.ZodOptional<z.ZodString>;
5363
+ unopened: z.ZodOptional<z.ZodBoolean>;
5329
5364
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
5330
5365
  queueResume: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
5331
5366
  conversationId: z.ZodString;
@@ -5338,6 +5373,11 @@ export declare const sandboxContract: {
5338
5373
  account: z.ZodOptional<z.ZodString>;
5339
5374
  model: z.ZodOptional<z.ZodString>;
5340
5375
  carry: z.ZodOptional<z.ZodBoolean>;
5376
+ handoff: z.ZodOptional<z.ZodEnum<{
5377
+ carry: "carry";
5378
+ summary: "summary";
5379
+ trim: "trim";
5380
+ }>>;
5341
5381
  }, z.core.$strip>>;
5342
5382
  ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
5343
5383
  }, z.core.$strip>, z.ZodObject<{
@@ -5366,6 +5406,7 @@ export declare const sandboxContract: {
5366
5406
  until: z.ZodOptional<z.ZodNumber>;
5367
5407
  after: z.ZodOptional<z.ZodString>;
5368
5408
  }, z.core.$strip>>;
5409
+ reason: z.ZodOptional<z.ZodString>;
5369
5410
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
5370
5411
  queueSchedule: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
5371
5412
  conversationId: z.ZodString;
@@ -5407,6 +5448,11 @@ export declare const sandboxContract: {
5407
5448
  account: z.ZodOptional<z.ZodString>;
5408
5449
  model: z.ZodOptional<z.ZodString>;
5409
5450
  carry: z.ZodOptional<z.ZodBoolean>;
5451
+ handoff: z.ZodOptional<z.ZodEnum<{
5452
+ carry: "carry";
5453
+ summary: "summary";
5454
+ trim: "trim";
5455
+ }>>;
5410
5456
  }, z.core.$strip>>;
5411
5457
  }, z.core.$strip>, z.ZodObject<{
5412
5458
  run: z.ZodString;
@@ -5415,10 +5461,25 @@ export declare const sandboxContract: {
5415
5461
  conversationId: z.ZodString;
5416
5462
  account: z.ZodString;
5417
5463
  carry: z.ZodOptional<z.ZodBoolean>;
5464
+ handoff: z.ZodOptional<z.ZodEnum<{
5465
+ carry: "carry";
5466
+ summary: "summary";
5467
+ trim: "trim";
5468
+ }>>;
5418
5469
  run: z.ZodOptional<z.ZodBoolean>;
5419
5470
  }, z.core.$strip>, z.ZodObject<{
5420
5471
  run: z.ZodOptional<z.ZodString>;
5421
5472
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
5473
+ chooseHandoff: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
5474
+ conversationId: z.ZodString;
5475
+ handoff: z.ZodEnum<{
5476
+ carry: "carry";
5477
+ summary: "summary";
5478
+ trim: "trim";
5479
+ }>;
5480
+ }, z.core.$strip>, z.ZodObject<{
5481
+ ok: z.ZodLiteral<true>;
5482
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
5422
5483
  rewind: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
5423
5484
  conversationId: z.ZodString;
5424
5485
  index: z.ZodNumber;
@@ -6702,6 +6763,7 @@ export declare const sandboxContract: {
6702
6763
  text: z.ZodString;
6703
6764
  run: z.ZodOptional<z.ZodString>;
6704
6765
  sentAt: z.ZodOptional<z.ZodNumber>;
6766
+ openedAt: z.ZodOptional<z.ZodNumber>;
6705
6767
  messageId: z.ZodOptional<z.ZodString>;
6706
6768
  attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
6707
6769
  checkpointId: z.ZodOptional<z.ZodString>;
@@ -7313,6 +7375,33 @@ export declare const sandboxContract: {
7313
7375
  contextTokens: z.ZodOptional<z.ZodNumber>;
7314
7376
  handoffTokens: z.ZodOptional<z.ZodNumber>;
7315
7377
  moving: z.ZodOptional<z.ZodString>;
7378
+ handoff: z.ZodOptional<z.ZodObject<{
7379
+ suggested: z.ZodEnum<{
7380
+ carry: "carry";
7381
+ summary: "summary";
7382
+ trim: "trim";
7383
+ }>;
7384
+ basis: z.ZodEnum<{
7385
+ setting: "setting";
7386
+ size: "size";
7387
+ }>;
7388
+ carry: z.ZodOptional<z.ZodObject<{
7389
+ tokens: z.ZodOptional<z.ZodNumber>;
7390
+ }, z.core.$strip>>;
7391
+ trim: z.ZodOptional<z.ZodObject<{
7392
+ tokens: z.ZodNumber;
7393
+ cleared: z.ZodNumber;
7394
+ }, z.core.$strip>>;
7395
+ summary: z.ZodOptional<z.ZodObject<{
7396
+ tokens: z.ZodNumber;
7397
+ reads: z.ZodOptional<z.ZodNumber>;
7398
+ }, z.core.$strip>>;
7399
+ chosen: z.ZodOptional<z.ZodEnum<{
7400
+ carry: "carry";
7401
+ summary: "summary";
7402
+ trim: "trim";
7403
+ }>>;
7404
+ }, z.core.$strip>>;
7316
7405
  }, z.core.$strip>>;
7317
7406
  scheduled: z.ZodOptional<z.ZodBoolean>;
7318
7407
  nextAt: z.ZodOptional<z.ZodNumber>;
@@ -7377,6 +7466,7 @@ export declare const sandboxContract: {
7377
7466
  text: z.ZodString;
7378
7467
  run: z.ZodOptional<z.ZodString>;
7379
7468
  sentAt: z.ZodOptional<z.ZodNumber>;
7469
+ openedAt: z.ZodOptional<z.ZodNumber>;
7380
7470
  messageId: z.ZodOptional<z.ZodString>;
7381
7471
  attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
7382
7472
  checkpointId: z.ZodOptional<z.ZodString>;
@@ -13952,6 +14042,8 @@ export declare const sandboxContract: {
13952
14042
  armedAt: z.ZodNumber;
13953
14043
  checkedAt: z.ZodNumber;
13954
14044
  value: z.ZodOptional<z.ZodString>;
14045
+ digest: z.ZodOptional<z.ZodString>;
14046
+ condition: z.ZodOptional<z.ZodString>;
13955
14047
  changedAt: z.ZodOptional<z.ZodNumber>;
13956
14048
  firedAt: z.ZodOptional<z.ZodNumber>;
13957
14049
  waiting: z.ZodOptional<z.ZodString>;
@@ -14283,6 +14375,7 @@ export declare const sandboxContract: {
14283
14375
  createdAt: z.ZodNumber;
14284
14376
  autoRunAt: z.ZodOptional<z.ZodNumber>;
14285
14377
  }, z.core.$strip>>;
14378
+ unreadable: z.ZodDefault<z.ZodArray<z.ZodString>>;
14286
14379
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
14287
14380
  approve: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
14288
14381
  id: z.ZodString;
@@ -17246,11 +17339,25 @@ export declare const sandboxContract: {
17246
17339
  }>;
17247
17340
  excerpt: z.ZodString;
17248
17341
  image: z.ZodOptional<z.ZodBoolean>;
17342
+ imageId: z.ZodOptional<z.ZodString>;
17249
17343
  }, z.core.$strip>>>;
17250
17344
  }, z.core.$strip>>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
17251
17345
  reveal: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
17252
17346
  tokens: z.ZodArray<z.ZodString>;
17253
17347
  }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodString>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
17348
+ image: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
17349
+ id: z.ZodString;
17350
+ }, z.core.$strip>, z.ZodObject<{
17351
+ at: z.ZodString;
17352
+ before: z.ZodObject<{
17353
+ mediaType: z.ZodString;
17354
+ data: z.ZodString;
17355
+ }, z.core.$strip>;
17356
+ after: z.ZodObject<{
17357
+ mediaType: z.ZodString;
17358
+ data: z.ZodString;
17359
+ }, z.core.$strip>;
17360
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
17254
17361
  dictionary: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
17255
17362
  query: z.ZodOptional<z.ZodString>;
17256
17363
  }, z.core.$strip>, z.ZodObject<{
@@ -17392,6 +17499,7 @@ export declare const sandboxContract: {
17392
17499
  text: z.ZodString;
17393
17500
  run: z.ZodOptional<z.ZodString>;
17394
17501
  sentAt: z.ZodOptional<z.ZodNumber>;
17502
+ openedAt: z.ZodOptional<z.ZodNumber>;
17395
17503
  messageId: z.ZodOptional<z.ZodString>;
17396
17504
  attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
17397
17505
  checkpointId: z.ZodOptional<z.ZodString>;
@@ -18013,8 +18121,6 @@ export declare const sandboxContract: {
18013
18121
  intentic: "intentic";
18014
18122
  }>>;
18015
18123
  systemPrompt: z.ZodDefault<z.ZodString>;
18016
- toolResultClearing: z.ZodDefault<z.ZodBoolean>;
18017
- toolResultClearingHoldout: z.ZodDefault<z.ZodNumber>;
18018
18124
  iqSearch: z.ZodDefault<z.ZodBoolean>;
18019
18125
  iqSearchHoldout: z.ZodDefault<z.ZodNumber>;
18020
18126
  workspaceMap: z.ZodDefault<z.ZodBoolean>;
@@ -18024,13 +18130,29 @@ export declare const sandboxContract: {
18024
18130
  fieldNotesHoldout: z.ZodDefault<z.ZodNumber>;
18025
18131
  outputCleaners: z.ZodDefault<z.ZodString>;
18026
18132
  outputHoldout: z.ZodDefault<z.ZodNumber>;
18027
- modelRoles: z.ZodDefault<z.ZodRecord<z.ZodEnum<{
18133
+ modelSetups: z.ZodDefault<z.ZodArray<z.ZodObject<{
18134
+ id: z.ZodString;
18135
+ name: z.ZodOptional<z.ZodString>;
18136
+ pins: z.ZodOptional<z.ZodArray<z.ZodObject<{
18137
+ provider: z.ZodString;
18138
+ model: z.ZodString;
18139
+ effort: z.ZodOptional<z.ZodString>;
18140
+ thinking: z.ZodOptional<z.ZodBoolean>;
18141
+ fast: z.ZodOptional<z.ZodBoolean>;
18142
+ harness: z.ZodOptional<z.ZodEnum<{
18143
+ "claude-code": "claude-code";
18144
+ native: "native";
18145
+ }>>;
18146
+ }, z.core.$strip>>>;
18147
+ }, z.core.$strip>>>;
18148
+ roleSetups: z.ZodDefault<z.ZodRecord<z.ZodEnum<{
18028
18149
  "acceptance-run": "acceptance-run";
18029
18150
  "approval-queue": "approval-queue";
18030
18151
  "commit-message": "commit-message";
18031
18152
  "deployment-fix": "deployment-fix";
18032
18153
  "documentation-run": "documentation-run";
18033
18154
  "extension-review": "extension-review";
18155
+ "handoff-summary": "handoff-summary";
18034
18156
  "loop-iteration": "loop-iteration";
18035
18157
  "loop-verdict": "loop-verdict";
18036
18158
  "maintenance-chore": "maintenance-chore";
@@ -18039,17 +18161,8 @@ export declare const sandboxContract: {
18039
18161
  "refactor-run": "refactor-run";
18040
18162
  "safety-judge": "safety-judge";
18041
18163
  "session-title": "session-title";
18042
- }> & z.core.$partial, z.ZodArray<z.ZodObject<{
18043
- provider: z.ZodString;
18044
- model: z.ZodString;
18045
- effort: z.ZodOptional<z.ZodString>;
18046
- thinking: z.ZodOptional<z.ZodBoolean>;
18047
- fast: z.ZodOptional<z.ZodBoolean>;
18048
- harness: z.ZodOptional<z.ZodEnum<{
18049
- "claude-code": "claude-code";
18050
- native: "native";
18051
- }>>;
18052
- }, z.core.$strip>>>>;
18164
+ "spoken-reply": "spoken-reply";
18165
+ }> & z.core.$partial, z.ZodString>>;
18053
18166
  autoModelGuidance: z.ZodDefault<z.ZodString>;
18054
18167
  changelogRepos: z.ZodDefault<z.ZodArray<z.ZodString>>;
18055
18168
  agentRetentionDays: z.ZodDefault<z.ZodNumber>;
@@ -18070,7 +18183,14 @@ export declare const sandboxContract: {
18070
18183
  resend: "resend";
18071
18184
  wait: "wait";
18072
18185
  }>>;
18186
+ limitHandoff: z.ZodDefault<z.ZodEnum<{
18187
+ carry: "carry";
18188
+ suggested: "suggested";
18189
+ summary: "summary";
18190
+ trim: "trim";
18191
+ }>>;
18073
18192
  limitMoveCarryUnder: z.ZodDefault<z.ZodNumber>;
18193
+ handoffSummaryOver: z.ZodDefault<z.ZodNumber>;
18074
18194
  keepWarm: z.ZodPrefault<z.ZodObject<{
18075
18195
  auto: z.ZodDefault<z.ZodBoolean>;
18076
18196
  hours: z.ZodDefault<z.ZodNumber>;
@@ -18081,6 +18201,11 @@ export declare const sandboxContract: {
18081
18201
  followOrigin: z.ZodDefault<z.ZodBoolean>;
18082
18202
  offload: z.ZodDefault<z.ZodObject<{
18083
18203
  commands: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
18204
+ sessions: z.ZodDefault<z.ZodEnum<{
18205
+ auto: "auto";
18206
+ off: "off";
18207
+ suggest: "suggest";
18208
+ }>>;
18084
18209
  }, z.core.$strip>>;
18085
18210
  continueWhenNeedMet: z.ZodDefault<z.ZodBoolean>;
18086
18211
  autoResumeOnRestart: z.ZodDefault<z.ZodBoolean>;
@@ -18125,6 +18250,22 @@ export declare const sandboxContract: {
18125
18250
  enabled: z.ZodDefault<z.ZodBoolean>;
18126
18251
  }, z.core.$strip>>>;
18127
18252
  automationFailureLimit: z.ZodDefault<z.ZodNumber>;
18253
+ voice: z.ZodPrefault<z.ZodObject<{
18254
+ replies: z.ZodDefault<z.ZodBoolean>;
18255
+ interrupt: z.ZodDefault<z.ZodBoolean>;
18256
+ speed: z.ZodDefault<z.ZodNumber>;
18257
+ voices: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
18258
+ cloud: z.ZodOptional<z.ZodObject<{
18259
+ provider: z.ZodEnum<{
18260
+ cartesia: "cartesia";
18261
+ deepgram: "deepgram";
18262
+ elevenlabs: "elevenlabs";
18263
+ }>;
18264
+ secret: z.ZodString;
18265
+ model: z.ZodDefault<z.ZodString>;
18266
+ voice: z.ZodDefault<z.ZodString>;
18267
+ }, z.core.$strip>>;
18268
+ }, z.core.$strip>>;
18128
18269
  admission: z.ZodPrefault<z.ZodObject<{
18129
18270
  schedule: z.ZodDefault<z.ZodEnum<{
18130
18271
  allow: "allow";
@@ -18193,8 +18334,6 @@ export declare const sandboxContract: {
18193
18334
  intentic: "intentic";
18194
18335
  }>>;
18195
18336
  systemPrompt: z.ZodDefault<z.ZodString>;
18196
- toolResultClearing: z.ZodDefault<z.ZodBoolean>;
18197
- toolResultClearingHoldout: z.ZodDefault<z.ZodNumber>;
18198
18337
  iqSearch: z.ZodDefault<z.ZodBoolean>;
18199
18338
  iqSearchHoldout: z.ZodDefault<z.ZodNumber>;
18200
18339
  workspaceMap: z.ZodDefault<z.ZodBoolean>;
@@ -18204,13 +18343,29 @@ export declare const sandboxContract: {
18204
18343
  fieldNotesHoldout: z.ZodDefault<z.ZodNumber>;
18205
18344
  outputCleaners: z.ZodDefault<z.ZodString>;
18206
18345
  outputHoldout: z.ZodDefault<z.ZodNumber>;
18207
- modelRoles: z.ZodDefault<z.ZodRecord<z.ZodEnum<{
18346
+ modelSetups: z.ZodDefault<z.ZodArray<z.ZodObject<{
18347
+ id: z.ZodString;
18348
+ name: z.ZodOptional<z.ZodString>;
18349
+ pins: z.ZodOptional<z.ZodArray<z.ZodObject<{
18350
+ provider: z.ZodString;
18351
+ model: z.ZodString;
18352
+ effort: z.ZodOptional<z.ZodString>;
18353
+ thinking: z.ZodOptional<z.ZodBoolean>;
18354
+ fast: z.ZodOptional<z.ZodBoolean>;
18355
+ harness: z.ZodOptional<z.ZodEnum<{
18356
+ "claude-code": "claude-code";
18357
+ native: "native";
18358
+ }>>;
18359
+ }, z.core.$strip>>>;
18360
+ }, z.core.$strip>>>;
18361
+ roleSetups: z.ZodDefault<z.ZodRecord<z.ZodEnum<{
18208
18362
  "acceptance-run": "acceptance-run";
18209
18363
  "approval-queue": "approval-queue";
18210
18364
  "commit-message": "commit-message";
18211
18365
  "deployment-fix": "deployment-fix";
18212
18366
  "documentation-run": "documentation-run";
18213
18367
  "extension-review": "extension-review";
18368
+ "handoff-summary": "handoff-summary";
18214
18369
  "loop-iteration": "loop-iteration";
18215
18370
  "loop-verdict": "loop-verdict";
18216
18371
  "maintenance-chore": "maintenance-chore";
@@ -18219,17 +18374,8 @@ export declare const sandboxContract: {
18219
18374
  "refactor-run": "refactor-run";
18220
18375
  "safety-judge": "safety-judge";
18221
18376
  "session-title": "session-title";
18222
- }> & z.core.$partial, z.ZodArray<z.ZodObject<{
18223
- provider: z.ZodString;
18224
- model: z.ZodString;
18225
- effort: z.ZodOptional<z.ZodString>;
18226
- thinking: z.ZodOptional<z.ZodBoolean>;
18227
- fast: z.ZodOptional<z.ZodBoolean>;
18228
- harness: z.ZodOptional<z.ZodEnum<{
18229
- "claude-code": "claude-code";
18230
- native: "native";
18231
- }>>;
18232
- }, z.core.$strip>>>>;
18377
+ "spoken-reply": "spoken-reply";
18378
+ }> & z.core.$partial, z.ZodString>>;
18233
18379
  autoModelGuidance: z.ZodDefault<z.ZodString>;
18234
18380
  changelogRepos: z.ZodDefault<z.ZodArray<z.ZodString>>;
18235
18381
  agentRetentionDays: z.ZodDefault<z.ZodNumber>;
@@ -18250,7 +18396,14 @@ export declare const sandboxContract: {
18250
18396
  resend: "resend";
18251
18397
  wait: "wait";
18252
18398
  }>>;
18399
+ limitHandoff: z.ZodDefault<z.ZodEnum<{
18400
+ carry: "carry";
18401
+ suggested: "suggested";
18402
+ summary: "summary";
18403
+ trim: "trim";
18404
+ }>>;
18253
18405
  limitMoveCarryUnder: z.ZodDefault<z.ZodNumber>;
18406
+ handoffSummaryOver: z.ZodDefault<z.ZodNumber>;
18254
18407
  keepWarm: z.ZodPrefault<z.ZodObject<{
18255
18408
  auto: z.ZodDefault<z.ZodBoolean>;
18256
18409
  hours: z.ZodDefault<z.ZodNumber>;
@@ -18261,6 +18414,11 @@ export declare const sandboxContract: {
18261
18414
  followOrigin: z.ZodDefault<z.ZodBoolean>;
18262
18415
  offload: z.ZodDefault<z.ZodObject<{
18263
18416
  commands: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
18417
+ sessions: z.ZodDefault<z.ZodEnum<{
18418
+ auto: "auto";
18419
+ off: "off";
18420
+ suggest: "suggest";
18421
+ }>>;
18264
18422
  }, z.core.$strip>>;
18265
18423
  continueWhenNeedMet: z.ZodDefault<z.ZodBoolean>;
18266
18424
  autoResumeOnRestart: z.ZodDefault<z.ZodBoolean>;
@@ -18305,6 +18463,22 @@ export declare const sandboxContract: {
18305
18463
  enabled: z.ZodDefault<z.ZodBoolean>;
18306
18464
  }, z.core.$strip>>>;
18307
18465
  automationFailureLimit: z.ZodDefault<z.ZodNumber>;
18466
+ voice: z.ZodPrefault<z.ZodObject<{
18467
+ replies: z.ZodDefault<z.ZodBoolean>;
18468
+ interrupt: z.ZodDefault<z.ZodBoolean>;
18469
+ speed: z.ZodDefault<z.ZodNumber>;
18470
+ voices: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
18471
+ cloud: z.ZodOptional<z.ZodObject<{
18472
+ provider: z.ZodEnum<{
18473
+ cartesia: "cartesia";
18474
+ deepgram: "deepgram";
18475
+ elevenlabs: "elevenlabs";
18476
+ }>;
18477
+ secret: z.ZodString;
18478
+ model: z.ZodDefault<z.ZodString>;
18479
+ voice: z.ZodDefault<z.ZodString>;
18480
+ }, z.core.$strip>>;
18481
+ }, z.core.$strip>>;
18308
18482
  admission: z.ZodPrefault<z.ZodObject<{
18309
18483
  schedule: z.ZodDefault<z.ZodEnum<{
18310
18484
  allow: "allow";
@@ -18392,11 +18566,9 @@ export declare const sandboxContract: {
18392
18566
  metrics: z.ZodTuple<[z.ZodObject<{
18393
18567
  metric: z.ZodEnum<{
18394
18568
  callsBeforeTarget: "callsBeforeTarget";
18395
- contextPerCall: "contextPerCall";
18396
18569
  failedCalls: "failedCalls";
18397
18570
  openingListings: "openingListings";
18398
18571
  openingSearches: "openingSearches";
18399
- roundTrips: "roundTrips";
18400
18572
  searchCalls: "searchCalls";
18401
18573
  }>;
18402
18574
  on: z.ZodObject<{
@@ -18414,11 +18586,9 @@ export declare const sandboxContract: {
18414
18586
  }, z.core.$strip>], z.ZodObject<{
18415
18587
  metric: z.ZodEnum<{
18416
18588
  callsBeforeTarget: "callsBeforeTarget";
18417
- contextPerCall: "contextPerCall";
18418
18589
  failedCalls: "failedCalls";
18419
18590
  openingListings: "openingListings";
18420
18591
  openingSearches: "openingSearches";
18421
- roundTrips: "roundTrips";
18422
18592
  searchCalls: "searchCalls";
18423
18593
  }>;
18424
18594
  on: z.ZodObject<{
@@ -18446,11 +18616,9 @@ export declare const sandboxContract: {
18446
18616
  metrics: z.ZodTuple<[z.ZodObject<{
18447
18617
  metric: z.ZodEnum<{
18448
18618
  callsBeforeTarget: "callsBeforeTarget";
18449
- contextPerCall: "contextPerCall";
18450
18619
  failedCalls: "failedCalls";
18451
18620
  openingListings: "openingListings";
18452
18621
  openingSearches: "openingSearches";
18453
- roundTrips: "roundTrips";
18454
18622
  searchCalls: "searchCalls";
18455
18623
  }>;
18456
18624
  on: z.ZodObject<{
@@ -18468,11 +18636,9 @@ export declare const sandboxContract: {
18468
18636
  }, z.core.$strip>], z.ZodObject<{
18469
18637
  metric: z.ZodEnum<{
18470
18638
  callsBeforeTarget: "callsBeforeTarget";
18471
- contextPerCall: "contextPerCall";
18472
18639
  failedCalls: "failedCalls";
18473
18640
  openingListings: "openingListings";
18474
18641
  openingSearches: "openingSearches";
18475
- roundTrips: "roundTrips";
18476
18642
  searchCalls: "searchCalls";
18477
18643
  }>;
18478
18644
  on: z.ZodObject<{
@@ -18500,65 +18666,9 @@ export declare const sandboxContract: {
18500
18666
  metrics: z.ZodTuple<[z.ZodObject<{
18501
18667
  metric: z.ZodEnum<{
18502
18668
  callsBeforeTarget: "callsBeforeTarget";
18503
- contextPerCall: "contextPerCall";
18504
- failedCalls: "failedCalls";
18505
- openingListings: "openingListings";
18506
- openingSearches: "openingSearches";
18507
- roundTrips: "roundTrips";
18508
- searchCalls: "searchCalls";
18509
- }>;
18510
- on: z.ZodObject<{
18511
- turns: z.ZodNumber;
18512
- mean: z.ZodNumber;
18513
- }, z.core.$strip>;
18514
- off: z.ZodObject<{
18515
- turns: z.ZodNumber;
18516
- mean: z.ZodNumber;
18517
- }, z.core.$strip>;
18518
- controlTurnsNeeded: z.ZodOptional<z.ZodNumber>;
18519
- marginPct: z.ZodOptional<z.ZodNumber>;
18520
- deltaPct: z.ZodOptional<z.ZodNumber>;
18521
- saved: z.ZodOptional<z.ZodNumber>;
18522
- }, z.core.$strip>], z.ZodObject<{
18523
- metric: z.ZodEnum<{
18524
- callsBeforeTarget: "callsBeforeTarget";
18525
- contextPerCall: "contextPerCall";
18526
- failedCalls: "failedCalls";
18527
- openingListings: "openingListings";
18528
- openingSearches: "openingSearches";
18529
- roundTrips: "roundTrips";
18530
- searchCalls: "searchCalls";
18531
- }>;
18532
- on: z.ZodObject<{
18533
- turns: z.ZodNumber;
18534
- mean: z.ZodNumber;
18535
- }, z.core.$strip>;
18536
- off: z.ZodObject<{
18537
- turns: z.ZodNumber;
18538
- mean: z.ZodNumber;
18539
- }, z.core.$strip>;
18540
- controlTurnsNeeded: z.ZodOptional<z.ZodNumber>;
18541
- marginPct: z.ZodOptional<z.ZodNumber>;
18542
- deltaPct: z.ZodOptional<z.ZodNumber>;
18543
- saved: z.ZodOptional<z.ZodNumber>;
18544
- }, z.core.$strip>>;
18545
- minTurns: z.ZodNumber;
18546
- sampleUnit: z.ZodOptional<z.ZodEnum<{
18547
- conversations: "conversations";
18548
- "opening turns": "opening turns";
18549
- turns: "turns";
18550
- }>>;
18551
- cohort: z.ZodOptional<z.ZodString>;
18552
- }, z.core.$strip>>;
18553
- clearing: z.ZodOptional<z.ZodObject<{
18554
- metrics: z.ZodTuple<[z.ZodObject<{
18555
- metric: z.ZodEnum<{
18556
- callsBeforeTarget: "callsBeforeTarget";
18557
- contextPerCall: "contextPerCall";
18558
18669
  failedCalls: "failedCalls";
18559
18670
  openingListings: "openingListings";
18560
18671
  openingSearches: "openingSearches";
18561
- roundTrips: "roundTrips";
18562
18672
  searchCalls: "searchCalls";
18563
18673
  }>;
18564
18674
  on: z.ZodObject<{
@@ -18576,11 +18686,9 @@ export declare const sandboxContract: {
18576
18686
  }, z.core.$strip>], z.ZodObject<{
18577
18687
  metric: z.ZodEnum<{
18578
18688
  callsBeforeTarget: "callsBeforeTarget";
18579
- contextPerCall: "contextPerCall";
18580
18689
  failedCalls: "failedCalls";
18581
18690
  openingListings: "openingListings";
18582
18691
  openingSearches: "openingSearches";
18583
- roundTrips: "roundTrips";
18584
18692
  searchCalls: "searchCalls";
18585
18693
  }>;
18586
18694
  on: z.ZodObject<{
@@ -18633,6 +18741,7 @@ export declare const sandboxContract: {
18633
18741
  fired: z.ZodArray<z.ZodNullable<z.ZodNumber>>;
18634
18742
  adopted: z.ZodBoolean;
18635
18743
  changed: z.ZodBoolean;
18744
+ held: z.ZodOptional<z.ZodArray<z.ZodBoolean>>;
18636
18745
  error: z.ZodOptional<z.ZodString>;
18637
18746
  }, z.core.$strip>>;
18638
18747
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
@@ -18675,6 +18784,17 @@ export declare const sandboxContract: {
18675
18784
  }>;
18676
18785
  adopted: z.ZodBoolean;
18677
18786
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
18787
+ gettingStarted: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
18788
+ hidden: z.ZodOptional<z.ZodBoolean>;
18789
+ skipped: z.ZodOptional<z.ZodArray<z.ZodString>>;
18790
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
18791
+ setGettingStarted: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
18792
+ hidden: z.ZodOptional<z.ZodBoolean>;
18793
+ skipped: z.ZodOptional<z.ZodArray<z.ZodString>>;
18794
+ }, z.core.$strip>, z.ZodObject<{
18795
+ hidden: z.ZodOptional<z.ZodBoolean>;
18796
+ skipped: z.ZodOptional<z.ZodArray<z.ZodString>>;
18797
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
18678
18798
  adoptRepoChecks: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
18679
18799
  repo: z.ZodString;
18680
18800
  on: z.ZodBoolean;
@@ -19342,6 +19462,7 @@ export declare const sandboxContract: {
19342
19462
  }>>;
19343
19463
  origin: z.ZodOptional<z.ZodString>;
19344
19464
  }, z.core.$strip>>;
19465
+ chip: z.ZodOptional<z.ZodString>;
19345
19466
  }, z.core.$strip>, z.ZodObject<{
19346
19467
  ok: z.ZodLiteral<true>;
19347
19468
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
@@ -19356,6 +19477,7 @@ export declare const sandboxContract: {
19356
19477
  }>>;
19357
19478
  origin: z.ZodOptional<z.ZodString>;
19358
19479
  }, z.core.$strip>>;
19480
+ chip: z.ZodOptional<z.ZodString>;
19359
19481
  }, z.core.$strip>, z.ZodObject<{
19360
19482
  ok: z.ZodLiteral<true>;
19361
19483
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
@@ -20244,6 +20366,16 @@ export declare const sandboxContract: {
20244
20366
  build: z.ZodOptional<z.ZodString>;
20245
20367
  fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
20246
20368
  }, z.core.$strip>>;
20369
+ page: z.ZodOptional<z.ZodObject<{
20370
+ pageId: z.ZodString;
20371
+ tabId: z.ZodOptional<z.ZodString>;
20372
+ userAgent: z.ZodOptional<z.ZodString>;
20373
+ viewport: z.ZodOptional<z.ZodString>;
20374
+ replay: z.ZodOptional<z.ZodString>;
20375
+ origin: z.ZodOptional<z.ZodString>;
20376
+ served: z.ZodOptional<z.ZodString>;
20377
+ commit: z.ZodOptional<z.ZodString>;
20378
+ }, z.core.$strip>>;
20247
20379
  }, z.core.$strip>, z.ZodObject<{
20248
20380
  recorded: z.ZodNumber;
20249
20381
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
@@ -20766,6 +20898,7 @@ export declare const sandboxContract: {
20766
20898
  claude: "claude";
20767
20899
  codex: "codex";
20768
20900
  cursor: "cursor";
20901
+ devin: "devin";
20769
20902
  gemini: "gemini";
20770
20903
  grok: "grok";
20771
20904
  kimi: "kimi";
@@ -20790,6 +20923,7 @@ export declare const sandboxContract: {
20790
20923
  claude: "claude";
20791
20924
  codex: "codex";
20792
20925
  cursor: "cursor";
20926
+ devin: "devin";
20793
20927
  gemini: "gemini";
20794
20928
  grok: "grok";
20795
20929
  kimi: "kimi";
@@ -22368,6 +22502,11 @@ export declare const sandboxContract: {
22368
22502
  installs: z.ZodDefault<z.ZodBoolean>;
22369
22503
  secrets: z.ZodDefault<z.ZodArray<z.ZodString>>;
22370
22504
  everything: z.ZodDefault<z.ZodBoolean>;
22505
+ rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
22506
+ capability: z.ZodString;
22507
+ rule: z.ZodString;
22508
+ said: z.ZodString;
22509
+ }, z.core.$strip>>>;
22371
22510
  by: z.ZodOptional<z.ZodString>;
22372
22511
  updatedAt: z.ZodOptional<z.ZodNumber>;
22373
22512
  releases: z.ZodArray<z.ZodObject<{
@@ -22376,8 +22515,29 @@ export declare const sandboxContract: {
22376
22515
  at: z.ZodNumber;
22377
22516
  }, z.core.$strip>>;
22378
22517
  }, z.core.$strip>>;
22518
+ ownerWide: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
22519
+ kind: z.ZodLiteral<"command-policy">;
22520
+ line: z.ZodString;
22521
+ at: z.ZodNumber;
22522
+ by: z.ZodOptional<z.ZodString>;
22523
+ }, z.core.$strip>, z.ZodObject<{
22524
+ kind: z.ZodLiteral<"hook-set">;
22525
+ digest: z.ZodString;
22526
+ hooks: z.ZodArray<z.ZodString>;
22527
+ at: z.ZodNumber;
22528
+ }, z.core.$strip>, z.ZodObject<{
22529
+ kind: z.ZodLiteral<"extension">;
22530
+ id: z.ZodString;
22531
+ powers: z.ZodArray<z.ZodString>;
22532
+ at: z.ZodNumber;
22533
+ }, z.core.$strip>], "kind">>>;
22534
+ unreadable: z.ZodDefault<z.ZodArray<z.ZodEnum<{
22535
+ "command-policy": "command-policy";
22536
+ extension: "extension";
22537
+ "hook-set": "hook-set";
22538
+ }>>>;
22379
22539
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
22380
- revokeGrant: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
22540
+ revokeGrant: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodUnion<readonly [z.ZodObject<{
22381
22541
  conversationId: z.ZodString;
22382
22542
  kind: z.ZodEnum<{
22383
22543
  capability: "capability";
@@ -22385,11 +22545,20 @@ export declare const sandboxContract: {
22385
22545
  folder: "folder";
22386
22546
  install: "install";
22387
22547
  release: "release";
22548
+ rule: "rule";
22388
22549
  secret: "secret";
22389
22550
  shelf: "shelf";
22390
22551
  }>;
22391
22552
  what: z.ZodString;
22553
+ capability: z.ZodOptional<z.ZodString>;
22392
22554
  }, z.core.$strip>, z.ZodObject<{
22555
+ kind: z.ZodEnum<{
22556
+ "command-policy": "command-policy";
22557
+ extension: "extension";
22558
+ "hook-set": "hook-set";
22559
+ }>;
22560
+ what: z.ZodString;
22561
+ }, z.core.$strip>]>, z.ZodObject<{
22393
22562
  ok: z.ZodLiteral<true>;
22394
22563
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
22395
22564
  };
@@ -22795,19 +22964,6 @@ export declare const sandboxContract: {
22795
22964
  events: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
22796
22965
  clientId: z.ZodOptional<z.ZodString>;
22797
22966
  }, z.core.$strip>, import("@orpc/contract").Schema<AsyncIteratorObject<{
22798
- kind: "heartbeat";
22799
- rev: number;
22800
- } | {
22801
- ready: boolean;
22802
- startedAt: number;
22803
- steps: {
22804
- key: string;
22805
- label: string;
22806
- state: "done" | "failed" | "pending" | "running";
22807
- ms?: number | undefined;
22808
- }[];
22809
- kind: "boot";
22810
- } | {
22811
22967
  kind: "hello";
22812
22968
  workspaceId: string;
22813
22969
  routes?: string[] | undefined;
@@ -22826,14 +22982,27 @@ export declare const sandboxContract: {
22826
22982
  projectDir?: string | undefined;
22827
22983
  surface?: "folder" | "sandbox" | undefined;
22828
22984
  } | {
22829
- kind: "reposChanged";
22830
- repos: string[];
22985
+ kind: "heartbeat";
22986
+ rev: number;
22987
+ } | {
22988
+ ready: boolean;
22989
+ startedAt: number;
22990
+ steps: {
22991
+ key: string;
22992
+ label: string;
22993
+ state: "done" | "failed" | "pending" | "running";
22994
+ ms?: number | undefined;
22995
+ }[];
22996
+ kind: "boot";
22831
22997
  } | {
22832
22998
  kind: "workspaceChanged";
22833
22999
  paths: string[];
22834
23000
  } | {
22835
23001
  kind: "derivedChanged";
22836
23002
  paths: string[];
23003
+ } | {
23004
+ kind: "reposChanged";
23005
+ repos: string[];
22837
23006
  } | {
22838
23007
  kind: "refsChanged";
22839
23008
  repos: string[];
@@ -23150,6 +23319,7 @@ export declare const sandboxContract: {
23150
23319
  models: string[];
23151
23320
  };
23152
23321
  rounded?: boolean | undefined;
23322
+ lapsedAt?: number | undefined;
23153
23323
  }[];
23154
23324
  measuredAt: number;
23155
23325
  unread?: {
@@ -23178,19 +23348,6 @@ export declare const sandboxContract: {
23178
23348
  barren?: string[] | undefined;
23179
23349
  kind: "treeChanged";
23180
23350
  }, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
23181
- kind: "heartbeat";
23182
- rev: number;
23183
- } | {
23184
- ready: boolean;
23185
- startedAt: number;
23186
- steps: {
23187
- key: string;
23188
- label: string;
23189
- state: "done" | "failed" | "pending" | "running";
23190
- ms?: number | undefined;
23191
- }[];
23192
- kind: "boot";
23193
- } | {
23194
23351
  kind: "hello";
23195
23352
  workspaceId: string;
23196
23353
  routes?: string[] | undefined;
@@ -23209,14 +23366,27 @@ export declare const sandboxContract: {
23209
23366
  projectDir?: string | undefined;
23210
23367
  surface?: "folder" | "sandbox" | undefined;
23211
23368
  } | {
23212
- kind: "reposChanged";
23213
- repos: string[];
23369
+ kind: "heartbeat";
23370
+ rev: number;
23371
+ } | {
23372
+ ready: boolean;
23373
+ startedAt: number;
23374
+ steps: {
23375
+ key: string;
23376
+ label: string;
23377
+ state: "done" | "failed" | "pending" | "running";
23378
+ ms?: number | undefined;
23379
+ }[];
23380
+ kind: "boot";
23214
23381
  } | {
23215
23382
  kind: "workspaceChanged";
23216
23383
  paths: string[];
23217
23384
  } | {
23218
23385
  kind: "derivedChanged";
23219
23386
  paths: string[];
23387
+ } | {
23388
+ kind: "reposChanged";
23389
+ repos: string[];
23220
23390
  } | {
23221
23391
  kind: "refsChanged";
23222
23392
  repos: string[];
@@ -23533,6 +23703,7 @@ export declare const sandboxContract: {
23533
23703
  models: string[];
23534
23704
  };
23535
23705
  rounded?: boolean | undefined;
23706
+ lapsedAt?: number | undefined;
23536
23707
  }[];
23537
23708
  measuredAt: number;
23538
23709
  unread?: {
@@ -24050,6 +24221,7 @@ export declare const sandboxContract: {
24050
24221
  models: z.ZodArray<z.ZodString>;
24051
24222
  }, z.core.$strip>]>;
24052
24223
  rounded: z.ZodOptional<z.ZodBoolean>;
24224
+ lapsedAt: z.ZodOptional<z.ZodNumber>;
24053
24225
  }, z.core.$strip>>;
24054
24226
  measuredAt: z.ZodNumber;
24055
24227
  unread: z.ZodOptional<z.ZodObject<{
@@ -24104,6 +24276,12 @@ export declare const sandboxContract: {
24104
24276
  cores: z.ZodNumber;
24105
24277
  memoryBytes: z.ZodNumber;
24106
24278
  memoryLimitBytes: z.ZodNumber;
24279
+ memoryBreakdown: z.ZodOptional<z.ZodObject<{
24280
+ anonymousBytes: z.ZodOptional<z.ZodNumber>;
24281
+ countedFileCacheBytes: z.ZodOptional<z.ZodNumber>;
24282
+ kernelBytes: z.ZodOptional<z.ZodNumber>;
24283
+ inactiveFileCacheBytes: z.ZodOptional<z.ZodNumber>;
24284
+ }, z.core.$strip>>;
24107
24285
  swapBytes: z.ZodOptional<z.ZodNumber>;
24108
24286
  swapLimitBytes: z.ZodOptional<z.ZodNumber>;
24109
24287
  swapFull: z.ZodOptional<z.ZodBoolean>;
@@ -24518,6 +24696,13 @@ export declare const sandboxContract: {
24518
24696
  why: z.ZodString;
24519
24697
  }, z.core.$strip>>;
24520
24698
  }, z.core.$strip>>;
24699
+ previousExit: z.ZodOptional<z.ZodString>;
24700
+ ic: z.ZodOptional<z.ZodObject<{
24701
+ path: z.ZodString;
24702
+ version: z.ZodString;
24703
+ modified: z.ZodOptional<z.ZodString>;
24704
+ }, z.core.$strip>>;
24705
+ icOverrides: z.ZodOptional<z.ZodArray<z.ZodString>>;
24521
24706
  }, z.core.$strip>>;
24522
24707
  agentVersion: z.ZodOptional<z.ZodString>;
24523
24708
  lastSeen: z.ZodOptional<z.ZodNumber>;
@@ -24660,6 +24845,7 @@ export declare const sandboxContract: {
24660
24845
  keptElsewhereName: z.ZodOptional<z.ZodString>;
24661
24846
  adoptedFrom: z.ZodOptional<z.ZodString>;
24662
24847
  keeperSilentSince: z.ZodOptional<z.ZodNumber>;
24848
+ asleep: z.ZodOptional<z.ZodBoolean>;
24663
24849
  }, z.core.$strip>>>;
24664
24850
  sandboxesUnread: z.ZodOptional<z.ZodString>;
24665
24851
  gap: z.ZodOptional<z.ZodEnum<{
@@ -24830,6 +25016,7 @@ export declare const sandboxContract: {
24830
25016
  models: z.ZodArray<z.ZodString>;
24831
25017
  }, z.core.$strip>]>;
24832
25018
  rounded: z.ZodOptional<z.ZodBoolean>;
25019
+ lapsedAt: z.ZodOptional<z.ZodNumber>;
24833
25020
  }, z.core.$strip>>;
24834
25021
  measuredAt: z.ZodNumber;
24835
25022
  unread: z.ZodOptional<z.ZodObject<{
@@ -24876,6 +25063,7 @@ export declare const sandboxContract: {
24876
25063
  models: z.ZodArray<z.ZodString>;
24877
25064
  }, z.core.$strip>]>;
24878
25065
  rounded: z.ZodOptional<z.ZodBoolean>;
25066
+ lapsedAt: z.ZodOptional<z.ZodNumber>;
24879
25067
  }, z.core.$strip>>;
24880
25068
  measuredAt: z.ZodNumber;
24881
25069
  unread: z.ZodOptional<z.ZodObject<{
@@ -24922,6 +25110,7 @@ export declare const sandboxContract: {
24922
25110
  models: z.ZodArray<z.ZodString>;
24923
25111
  }, z.core.$strip>]>;
24924
25112
  rounded: z.ZodOptional<z.ZodBoolean>;
25113
+ lapsedAt: z.ZodOptional<z.ZodNumber>;
24925
25114
  }, z.core.$strip>>;
24926
25115
  measuredAt: z.ZodNumber;
24927
25116
  unread: z.ZodOptional<z.ZodObject<{
@@ -24968,6 +25157,7 @@ export declare const sandboxContract: {
24968
25157
  models: z.ZodArray<z.ZodString>;
24969
25158
  }, z.core.$strip>]>;
24970
25159
  rounded: z.ZodOptional<z.ZodBoolean>;
25160
+ lapsedAt: z.ZodOptional<z.ZodNumber>;
24971
25161
  }, z.core.$strip>>;
24972
25162
  measuredAt: z.ZodNumber;
24973
25163
  unread: z.ZodOptional<z.ZodObject<{
@@ -25292,6 +25482,76 @@ export declare const sandboxContract: {
25292
25482
  failure: z.ZodOptional<z.ZodString>;
25293
25483
  }, z.core.$strip>>;
25294
25484
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
25485
+ placement: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
25486
+ agent: z.ZodOptional<z.ZodString>;
25487
+ harness: z.ZodOptional<z.ZodEnum<{
25488
+ "claude-code": "claude-code";
25489
+ native: "native";
25490
+ }>>;
25491
+ conversationId: z.ZodOptional<z.ZodString>;
25492
+ }, z.core.$strip>, z.ZodObject<{
25493
+ mode: z.ZodEnum<{
25494
+ auto: "auto";
25495
+ off: "off";
25496
+ suggest: "suggest";
25497
+ }>;
25498
+ here: z.ZodObject<{
25499
+ standing: z.ZodEnum<{
25500
+ busy: "busy";
25501
+ calm: "calm";
25502
+ full: "full";
25503
+ }>;
25504
+ strain: z.ZodArray<z.ZodEnum<{
25505
+ agents: "agents";
25506
+ cpu: "cpu";
25507
+ memory: "memory";
25508
+ "memory-stall": "memory-stall";
25509
+ }>>;
25510
+ cpus: z.ZodNumber;
25511
+ load: z.ZodNumber;
25512
+ memoryFreeMb: z.ZodOptional<z.ZodNumber>;
25513
+ memoryLimitMb: z.ZodOptional<z.ZodNumber>;
25514
+ agents: z.ZodNumber;
25515
+ slots: z.ZodNumber;
25516
+ headroom: z.ZodNumber;
25517
+ }, z.core.$strip>;
25518
+ machines: z.ZodArray<z.ZodObject<{
25519
+ runner: z.ZodString;
25520
+ name: z.ZodString;
25521
+ online: z.ZodBoolean;
25522
+ load: z.ZodOptional<z.ZodObject<{
25523
+ standing: z.ZodEnum<{
25524
+ busy: "busy";
25525
+ calm: "calm";
25526
+ full: "full";
25527
+ }>;
25528
+ strain: z.ZodArray<z.ZodEnum<{
25529
+ agents: "agents";
25530
+ cpu: "cpu";
25531
+ memory: "memory";
25532
+ "memory-stall": "memory-stall";
25533
+ }>>;
25534
+ cpus: z.ZodNumber;
25535
+ load: z.ZodNumber;
25536
+ memoryFreeMb: z.ZodOptional<z.ZodNumber>;
25537
+ memoryLimitMb: z.ZodOptional<z.ZodNumber>;
25538
+ agents: z.ZodNumber;
25539
+ slots: z.ZodNumber;
25540
+ headroom: z.ZodNumber;
25541
+ }, z.core.$strip>>;
25542
+ unfit: z.ZodOptional<z.ZodEnum<{
25543
+ areas: "areas";
25544
+ credentials: "credentials";
25545
+ offline: "offline";
25546
+ privacy: "privacy";
25547
+ unmeasured: "unmeasured";
25548
+ }>>;
25549
+ }, z.core.$strip>>;
25550
+ suggestion: z.ZodOptional<z.ZodObject<{
25551
+ runner: z.ZodString;
25552
+ name: z.ZodString;
25553
+ }, z.core.$strip>>;
25554
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
25295
25555
  };
25296
25556
  exit: {
25297
25557
  list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{