@maiaos/protocol 0.1.0-canary.7 → 0.1.0-canary.70

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 (910) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +15 -6
  3. package/dist/agent/definition.d.ts +3 -3
  4. package/dist/agent/definition.d.ts.map +1 -1
  5. package/dist/agent/definition.js +1 -1
  6. package/dist/agent/definition.js.map +1 -1
  7. package/dist/agent/effect-schema.d.ts +2 -0
  8. package/dist/agent/effect-schema.d.ts.map +1 -1
  9. package/dist/agent/effect-schema.js +3 -0
  10. package/dist/agent/effect-schema.js.map +1 -1
  11. package/dist/agent/index.d.ts +1 -1
  12. package/dist/agent/index.d.ts.map +1 -1
  13. package/dist/agent/index.js +1 -1
  14. package/dist/agent/index.js.map +1 -1
  15. package/dist/agent/worker-operation.d.ts +42 -1
  16. package/dist/agent/worker-operation.d.ts.map +1 -1
  17. package/dist/agents/contract.d.ts +27 -0
  18. package/dist/agents/contract.d.ts.map +1 -1
  19. package/dist/agents/contract.js +4 -1
  20. package/dist/agents/contract.js.map +1 -1
  21. package/dist/agents/effect-schema.d.ts +53 -2
  22. package/dist/agents/effect-schema.d.ts.map +1 -1
  23. package/dist/agents/effect-schema.js +51 -10
  24. package/dist/agents/effect-schema.js.map +1 -1
  25. package/dist/agents/feature.d.ts +54 -4
  26. package/dist/agents/feature.d.ts.map +1 -1
  27. package/dist/agents/feature.js +52 -4
  28. package/dist/agents/feature.js.map +1 -1
  29. package/dist/agents/index.d.ts +1 -1
  30. package/dist/agents/index.d.ts.map +1 -1
  31. package/dist/agents/index.js +1 -1
  32. package/dist/agents/index.js.map +1 -1
  33. package/dist/approval/contract.d.ts +21 -5
  34. package/dist/approval/contract.d.ts.map +1 -1
  35. package/dist/approval/contract.js +2 -1
  36. package/dist/approval/contract.js.map +1 -1
  37. package/dist/approval/effect-schema.d.ts +1 -1
  38. package/dist/approval/effect-schema.d.ts.map +1 -1
  39. package/dist/approval/effect-schema.js +1 -1
  40. package/dist/approval/effect-schema.js.map +1 -1
  41. package/dist/approval/feature.d.ts +21 -2
  42. package/dist/approval/feature.d.ts.map +1 -1
  43. package/dist/approval/feature.js +21 -2
  44. package/dist/approval/feature.js.map +1 -1
  45. package/dist/approval/index.d.ts +1 -1
  46. package/dist/approval/index.d.ts.map +1 -1
  47. package/dist/approval/index.js +1 -1
  48. package/dist/approval/index.js.map +1 -1
  49. package/dist/approval/request-effect-schema.d.ts +40 -5
  50. package/dist/approval/request-effect-schema.d.ts.map +1 -1
  51. package/dist/approval/request-effect-schema.js +30 -7
  52. package/dist/approval/request-effect-schema.js.map +1 -1
  53. package/dist/approval/result-effect-schema.d.ts +14 -6
  54. package/dist/approval/result-effect-schema.d.ts.map +1 -1
  55. package/dist/board/contract.d.ts +1668 -0
  56. package/dist/board/contract.d.ts.map +1 -0
  57. package/dist/board/contract.js +108 -0
  58. package/dist/board/contract.js.map +1 -0
  59. package/dist/board/effect-schema.d.ts +6 -0
  60. package/dist/board/effect-schema.d.ts.map +1 -0
  61. package/dist/board/effect-schema.js +6 -0
  62. package/dist/board/effect-schema.js.map +1 -0
  63. package/dist/board/feature.d.ts +565 -0
  64. package/dist/board/feature.d.ts.map +1 -0
  65. package/dist/board/feature.js +535 -0
  66. package/dist/board/feature.js.map +1 -0
  67. package/dist/board/index.d.ts +3 -0
  68. package/dist/board/index.d.ts.map +1 -0
  69. package/dist/board/index.js +3 -0
  70. package/dist/board/index.js.map +1 -0
  71. package/dist/board/manage-effect-schema.d.ts +493 -0
  72. package/dist/board/manage-effect-schema.d.ts.map +1 -0
  73. package/dist/board/manage-effect-schema.js +73 -0
  74. package/dist/board/manage-effect-schema.js.map +1 -0
  75. package/dist/board/model-effect-schema.d.ts +111 -0
  76. package/dist/board/model-effect-schema.d.ts.map +1 -0
  77. package/dist/board/model-effect-schema.js +120 -0
  78. package/dist/board/model-effect-schema.js.map +1 -0
  79. package/dist/board/plan-effect-schema.d.ts +120 -0
  80. package/dist/board/plan-effect-schema.d.ts.map +1 -0
  81. package/dist/board/plan-effect-schema.js +108 -0
  82. package/dist/board/plan-effect-schema.js.map +1 -0
  83. package/dist/board/task-effect-schema.d.ts +1835 -0
  84. package/dist/board/task-effect-schema.d.ts.map +1 -0
  85. package/dist/board/task-effect-schema.js +275 -0
  86. package/dist/board/task-effect-schema.js.map +1 -0
  87. package/dist/board/thread-effect-schema.d.ts +633 -0
  88. package/dist/board/thread-effect-schema.d.ts.map +1 -0
  89. package/dist/board/thread-effect-schema.js +116 -0
  90. package/dist/board/thread-effect-schema.js.map +1 -0
  91. package/dist/command-receipt/contract.d.ts +3 -0
  92. package/dist/command-receipt/contract.d.ts.map +1 -1
  93. package/dist/command-receipt/effect-schema.d.ts +12 -0
  94. package/dist/command-receipt/effect-schema.d.ts.map +1 -1
  95. package/dist/command-receipt/effect-schema.js +7 -0
  96. package/dist/command-receipt/effect-schema.js.map +1 -1
  97. package/dist/command-receipt/feature.d.ts +10 -0
  98. package/dist/command-receipt/feature.d.ts.map +1 -1
  99. package/dist/command-receipt/feature.js +10 -0
  100. package/dist/command-receipt/feature.js.map +1 -1
  101. package/dist/connection/access-effect-schema.d.ts +4 -0
  102. package/dist/connection/access-effect-schema.d.ts.map +1 -1
  103. package/dist/connection/contract.d.ts +154 -2
  104. package/dist/connection/contract.d.ts.map +1 -1
  105. package/dist/connection/contract.js +7 -0
  106. package/dist/connection/contract.js.map +1 -1
  107. package/dist/connection/effect-schema.d.ts +149 -2
  108. package/dist/connection/effect-schema.d.ts.map +1 -1
  109. package/dist/connection/effect-schema.js +3 -0
  110. package/dist/connection/effect-schema.js.map +1 -1
  111. package/dist/connection/executors-effect-schema.d.ts +259 -0
  112. package/dist/connection/executors-effect-schema.d.ts.map +1 -0
  113. package/dist/connection/executors-effect-schema.js +80 -0
  114. package/dist/connection/executors-effect-schema.js.map +1 -0
  115. package/dist/connection/feature.d.ts +301 -10
  116. package/dist/connection/feature.d.ts.map +1 -1
  117. package/dist/connection/feature.js +381 -46
  118. package/dist/connection/feature.js.map +1 -1
  119. package/dist/connection/gateway-effect-schema.d.ts +7 -0
  120. package/dist/connection/gateway-effect-schema.d.ts.map +1 -1
  121. package/dist/connection/gateway-effect-schema.js +7 -0
  122. package/dist/connection/gateway-effect-schema.js.map +1 -1
  123. package/dist/connection/index.d.ts +1 -1
  124. package/dist/connection/index.d.ts.map +1 -1
  125. package/dist/connection/index.js +1 -1
  126. package/dist/connection/index.js.map +1 -1
  127. package/dist/connection/request-effect-schema.d.ts +11 -4
  128. package/dist/connection/request-effect-schema.d.ts.map +1 -1
  129. package/dist/connection/request-effect-schema.js +19 -12
  130. package/dist/connection/request-effect-schema.js.map +1 -1
  131. package/dist/connection/result-effect-schema.d.ts +34 -6
  132. package/dist/connection/result-effect-schema.d.ts.map +1 -1
  133. package/dist/connection/result-effect-schema.js +4 -3
  134. package/dist/connection/result-effect-schema.js.map +1 -1
  135. package/dist/connection/system-effect-schema.d.ts +8 -0
  136. package/dist/connection/system-effect-schema.d.ts.map +1 -1
  137. package/dist/connection/system-effect-schema.js +4 -2
  138. package/dist/connection/system-effect-schema.js.map +1 -1
  139. package/dist/container/contract.d.ts +2 -0
  140. package/dist/container/contract.d.ts.map +1 -1
  141. package/dist/container/effect-schema.d.ts +4 -0
  142. package/dist/container/effect-schema.d.ts.map +1 -1
  143. package/dist/container/portfolio-feature.d.ts +286 -0
  144. package/dist/container/portfolio-feature.d.ts.map +1 -1
  145. package/dist/container/portfolio-feature.js +131 -0
  146. package/dist/container/portfolio-feature.js.map +1 -1
  147. package/dist/coordinator-tool/index.d.ts +1 -1
  148. package/dist/coordinator-tool/index.d.ts.map +1 -1
  149. package/dist/coordinator-tool/index.js +1 -1
  150. package/dist/coordinator-tool/index.js.map +1 -1
  151. package/dist/coordinator-tool/input-schema.d.ts +0 -7
  152. package/dist/coordinator-tool/input-schema.d.ts.map +1 -1
  153. package/dist/coordinator-tool/input-schema.js +0 -38
  154. package/dist/coordinator-tool/input-schema.js.map +1 -1
  155. package/dist/coordinator-tool/registry.d.ts +21 -0
  156. package/dist/coordinator-tool/registry.d.ts.map +1 -1
  157. package/dist/coordinator-tool/registry.js +175 -4
  158. package/dist/coordinator-tool/registry.js.map +1 -1
  159. package/dist/discovery/contract.d.ts +140 -2
  160. package/dist/discovery/contract.d.ts.map +1 -1
  161. package/dist/discovery/contract.js +11 -1
  162. package/dist/discovery/contract.js.map +1 -1
  163. package/dist/discovery/effect-schema.d.ts +323 -6
  164. package/dist/discovery/effect-schema.d.ts.map +1 -1
  165. package/dist/discovery/effect-schema.js +157 -8
  166. package/dist/discovery/effect-schema.js.map +1 -1
  167. package/dist/discovery/feature.d.ts +82 -2
  168. package/dist/discovery/feature.d.ts.map +1 -1
  169. package/dist/discovery/feature.js +78 -2
  170. package/dist/discovery/feature.js.map +1 -1
  171. package/dist/discovery/index.d.ts +1 -1
  172. package/dist/discovery/index.d.ts.map +1 -1
  173. package/dist/discovery/index.js +1 -1
  174. package/dist/discovery/index.js.map +1 -1
  175. package/dist/envelope/effect-schema.d.ts +38 -17
  176. package/dist/envelope/effect-schema.d.ts.map +1 -1
  177. package/dist/envelope/effect-schema.js +30 -8
  178. package/dist/envelope/effect-schema.js.map +1 -1
  179. package/dist/envelope/envelope.d.ts +25 -3
  180. package/dist/envelope/envelope.d.ts.map +1 -1
  181. package/dist/envelope/envelope.js +37 -1
  182. package/dist/envelope/envelope.js.map +1 -1
  183. package/dist/envelope/index.d.ts +2 -2
  184. package/dist/envelope/index.d.ts.map +1 -1
  185. package/dist/envelope/index.js +2 -2
  186. package/dist/envelope/index.js.map +1 -1
  187. package/dist/envelope/policy.d.ts +11 -0
  188. package/dist/envelope/policy.d.ts.map +1 -1
  189. package/dist/envelope/policy.js +13 -0
  190. package/dist/envelope/policy.js.map +1 -1
  191. package/dist/event/contract.d.ts +47 -0
  192. package/dist/event/contract.d.ts.map +1 -1
  193. package/dist/event/contract.js +3 -0
  194. package/dist/event/contract.js.map +1 -1
  195. package/dist/event/effect-schema.d.ts +3 -1
  196. package/dist/event/effect-schema.d.ts.map +1 -1
  197. package/dist/event/effect-schema.js +3 -1
  198. package/dist/event/effect-schema.js.map +1 -1
  199. package/dist/event/envelope-effect-schema.d.ts +2 -0
  200. package/dist/event/envelope-effect-schema.d.ts.map +1 -1
  201. package/dist/event/envelope-effect-schema.js +2 -0
  202. package/dist/event/envelope-effect-schema.js.map +1 -1
  203. package/dist/event/feature.d.ts +35 -0
  204. package/dist/event/feature.d.ts.map +1 -0
  205. package/dist/event/feature.js +39 -0
  206. package/dist/event/feature.js.map +1 -0
  207. package/dist/event/format.d.ts +6 -0
  208. package/dist/event/format.d.ts.map +1 -1
  209. package/dist/event/format.js +6 -0
  210. package/dist/event/format.js.map +1 -1
  211. package/dist/event/index.d.ts +4 -1
  212. package/dist/event/index.d.ts.map +1 -1
  213. package/dist/event/index.js +4 -1
  214. package/dist/event/index.js.map +1 -1
  215. package/dist/event/lifecycle/effect-schema.d.ts +31 -0
  216. package/dist/event/lifecycle/effect-schema.d.ts.map +1 -0
  217. package/dist/event/lifecycle/effect-schema.js +36 -0
  218. package/dist/event/lifecycle/effect-schema.js.map +1 -0
  219. package/dist/event/lifecycle/index.d.ts +2 -0
  220. package/dist/event/lifecycle/index.d.ts.map +1 -0
  221. package/dist/event/lifecycle/index.js +2 -0
  222. package/dist/event/lifecycle/index.js.map +1 -0
  223. package/dist/event/lifecycle/schema.d.ts +20 -0
  224. package/dist/event/lifecycle/schema.d.ts.map +1 -0
  225. package/dist/event/lifecycle/schema.js +7 -0
  226. package/dist/event/lifecycle/schema.js.map +1 -0
  227. package/dist/event/read-effect-schema.d.ts +105 -0
  228. package/dist/event/read-effect-schema.d.ts.map +1 -0
  229. package/dist/event/read-effect-schema.js +64 -0
  230. package/dist/event/read-effect-schema.js.map +1 -0
  231. package/dist/event/registry.d.ts +5 -0
  232. package/dist/event/registry.d.ts.map +1 -1
  233. package/dist/event/registry.js +288 -8
  234. package/dist/event/registry.js.map +1 -1
  235. package/dist/event/session-activity-effect-schema.d.ts +36 -0
  236. package/dist/event/session-activity-effect-schema.d.ts.map +1 -0
  237. package/dist/event/session-activity-effect-schema.js +58 -0
  238. package/dist/event/session-activity-effect-schema.js.map +1 -0
  239. package/dist/event/session-activity.d.ts +30 -0
  240. package/dist/event/session-activity.d.ts.map +1 -0
  241. package/dist/event/session-activity.js +19 -0
  242. package/dist/event/session-activity.js.map +1 -0
  243. package/dist/event/update-effect-schema.d.ts +20 -0
  244. package/dist/event/update-effect-schema.d.ts.map +1 -0
  245. package/dist/event/update-effect-schema.js +29 -0
  246. package/dist/event/update-effect-schema.js.map +1 -0
  247. package/dist/event/update.d.ts +16 -0
  248. package/dist/event/update.d.ts.map +1 -0
  249. package/dist/event/update.js +6 -0
  250. package/dist/event/update.js.map +1 -0
  251. package/dist/event/waiting/effect-schema.d.ts +42 -0
  252. package/dist/event/waiting/effect-schema.d.ts.map +1 -0
  253. package/dist/event/waiting/effect-schema.js +51 -0
  254. package/dist/event/waiting/effect-schema.js.map +1 -0
  255. package/dist/event/waiting/index.d.ts +2 -0
  256. package/dist/event/waiting/index.d.ts.map +1 -0
  257. package/dist/event/waiting/index.js +2 -0
  258. package/dist/event/waiting/index.js.map +1 -0
  259. package/dist/event/waiting/schema.d.ts +23 -0
  260. package/dist/event/waiting/schema.d.ts.map +1 -0
  261. package/dist/event/waiting/schema.js +6 -0
  262. package/dist/event/waiting/schema.js.map +1 -0
  263. package/dist/event-stream/contract.d.ts +121 -0
  264. package/dist/event-stream/contract.d.ts.map +1 -0
  265. package/dist/event-stream/contract.js +5 -0
  266. package/dist/event-stream/contract.js.map +1 -0
  267. package/dist/event-stream/effect-schema.d.ts +118 -0
  268. package/dist/event-stream/effect-schema.d.ts.map +1 -0
  269. package/dist/event-stream/effect-schema.js +90 -0
  270. package/dist/event-stream/effect-schema.js.map +1 -0
  271. package/dist/event-stream/index.d.ts +2 -0
  272. package/dist/event-stream/index.d.ts.map +1 -0
  273. package/dist/event-stream/index.js +2 -0
  274. package/dist/event-stream/index.js.map +1 -0
  275. package/dist/execution/contract.d.ts +1 -0
  276. package/dist/execution/contract.d.ts.map +1 -1
  277. package/dist/execution/effect-schema.d.ts +6 -0
  278. package/dist/execution/effect-schema.d.ts.map +1 -1
  279. package/dist/execution/feature.d.ts +575 -0
  280. package/dist/execution/feature.d.ts.map +1 -0
  281. package/dist/execution/feature.js +543 -0
  282. package/dist/execution/feature.js.map +1 -0
  283. package/dist/execution/file-operation-contract.d.ts +1 -0
  284. package/dist/execution/file-operation-contract.d.ts.map +1 -1
  285. package/dist/execution/file-operation-effect-schema.d.ts +1 -0
  286. package/dist/execution/file-operation-effect-schema.d.ts.map +1 -1
  287. package/dist/execution/index.d.ts +1 -0
  288. package/dist/execution/index.d.ts.map +1 -1
  289. package/dist/execution/index.js +1 -0
  290. package/dist/execution/index.js.map +1 -1
  291. package/dist/execution/operation-contract.d.ts +1 -0
  292. package/dist/execution/operation-contract.d.ts.map +1 -1
  293. package/dist/execution/operation-effect-schema.d.ts +1 -0
  294. package/dist/execution/operation-effect-schema.d.ts.map +1 -1
  295. package/dist/execution/placement/contract.d.ts +4 -0
  296. package/dist/execution/placement/contract.d.ts.map +1 -1
  297. package/dist/execution/placement/effect-schema.d.ts +4 -0
  298. package/dist/execution/placement/effect-schema.d.ts.map +1 -1
  299. package/dist/execution/relocation/contract.d.ts +2 -0
  300. package/dist/execution/relocation/contract.d.ts.map +1 -1
  301. package/dist/execution/relocation/effect-schema.d.ts +4 -0
  302. package/dist/execution/relocation/effect-schema.d.ts.map +1 -1
  303. package/dist/execution/worktree/contract.d.ts +12 -0
  304. package/dist/execution/worktree/contract.d.ts.map +1 -1
  305. package/dist/execution/worktree/effect-schema.d.ts +20 -0
  306. package/dist/execution/worktree/effect-schema.d.ts.map +1 -1
  307. package/dist/execution/worktree/effect-schema.js +11 -0
  308. package/dist/execution/worktree/effect-schema.js.map +1 -1
  309. package/dist/executor/index.d.ts +2 -0
  310. package/dist/executor/index.d.ts.map +1 -0
  311. package/dist/executor/index.js +2 -0
  312. package/dist/executor/index.js.map +1 -0
  313. package/dist/executor/policy.d.ts +26 -0
  314. package/dist/executor/policy.d.ts.map +1 -0
  315. package/dist/executor/policy.js +45 -0
  316. package/dist/executor/policy.js.map +1 -0
  317. package/dist/feature/descriptor/descriptor.d.ts +42 -2
  318. package/dist/feature/descriptor/descriptor.d.ts.map +1 -1
  319. package/dist/feature/descriptor/descriptor.js.map +1 -1
  320. package/dist/feature/descriptor/index.d.ts +1 -1
  321. package/dist/feature/descriptor/index.d.ts.map +1 -1
  322. package/dist/feature/descriptor/index.js.map +1 -1
  323. package/dist/feature/index.d.ts +1 -1
  324. package/dist/feature/index.d.ts.map +1 -1
  325. package/dist/feature/index.js +1 -1
  326. package/dist/feature/index.js.map +1 -1
  327. package/dist/feature/node-status.d.ts +65 -1
  328. package/dist/feature/node-status.d.ts.map +1 -1
  329. package/dist/feature/node-status.js +59 -1
  330. package/dist/feature/node-status.js.map +1 -1
  331. package/dist/feature/registry.d.ts +59 -4
  332. package/dist/feature/registry.d.ts.map +1 -1
  333. package/dist/feature/registry.js +53 -0
  334. package/dist/feature/registry.js.map +1 -1
  335. package/dist/github/contract.d.ts +266 -0
  336. package/dist/github/contract.d.ts.map +1 -0
  337. package/dist/github/contract.js +30 -0
  338. package/dist/github/contract.js.map +1 -0
  339. package/dist/github/effect-schema.d.ts +488 -0
  340. package/dist/github/effect-schema.d.ts.map +1 -0
  341. package/dist/github/effect-schema.js +231 -0
  342. package/dist/github/effect-schema.js.map +1 -0
  343. package/dist/github/feature.d.ts +201 -0
  344. package/dist/github/feature.d.ts.map +1 -0
  345. package/dist/github/feature.js +195 -0
  346. package/dist/github/feature.js.map +1 -0
  347. package/dist/github/index.d.ts +3 -0
  348. package/dist/github/index.d.ts.map +1 -0
  349. package/dist/github/index.js +3 -0
  350. package/dist/github/index.js.map +1 -0
  351. package/dist/goal/contract.d.ts +449 -0
  352. package/dist/goal/contract.d.ts.map +1 -0
  353. package/dist/goal/contract.js +37 -0
  354. package/dist/goal/contract.js.map +1 -0
  355. package/dist/goal/effect-schema.d.ts +870 -0
  356. package/dist/goal/effect-schema.d.ts.map +1 -0
  357. package/dist/goal/effect-schema.js +349 -0
  358. package/dist/goal/effect-schema.js.map +1 -0
  359. package/dist/goal/feature.d.ts +256 -0
  360. package/dist/goal/feature.d.ts.map +1 -0
  361. package/dist/goal/feature.js +237 -0
  362. package/dist/goal/feature.js.map +1 -0
  363. package/dist/goal/index.d.ts +3 -0
  364. package/dist/goal/index.d.ts.map +1 -0
  365. package/dist/goal/index.js +3 -0
  366. package/dist/goal/index.js.map +1 -0
  367. package/dist/harness/installed/effect-schema.d.ts.map +1 -1
  368. package/dist/harness/installed/effect-schema.js +2 -1
  369. package/dist/harness/installed/effect-schema.js.map +1 -1
  370. package/dist/harness/installed/feature.d.ts +35 -0
  371. package/dist/harness/installed/feature.d.ts.map +1 -0
  372. package/dist/harness/installed/feature.js +39 -0
  373. package/dist/harness/installed/feature.js.map +1 -0
  374. package/dist/harness/installed/index.d.ts +1 -0
  375. package/dist/harness/installed/index.d.ts.map +1 -1
  376. package/dist/harness/installed/index.js +1 -0
  377. package/dist/harness/installed/index.js.map +1 -1
  378. package/dist/hold/contract.d.ts +2 -0
  379. package/dist/hold/contract.d.ts.map +1 -1
  380. package/dist/hold/effect-schema.d.ts +4 -0
  381. package/dist/hold/effect-schema.d.ts.map +1 -1
  382. package/dist/hold/feature.d.ts +155 -0
  383. package/dist/hold/feature.d.ts.map +1 -0
  384. package/dist/hold/feature.js +151 -0
  385. package/dist/hold/feature.js.map +1 -0
  386. package/dist/hold/index.d.ts +1 -0
  387. package/dist/hold/index.d.ts.map +1 -1
  388. package/dist/hold/index.js +1 -0
  389. package/dist/hold/index.js.map +1 -1
  390. package/dist/inbox/contract.d.ts +386 -0
  391. package/dist/inbox/contract.d.ts.map +1 -0
  392. package/dist/inbox/contract.js +20 -0
  393. package/dist/inbox/contract.js.map +1 -0
  394. package/dist/inbox/effect-schema.d.ts +750 -0
  395. package/dist/inbox/effect-schema.d.ts.map +1 -0
  396. package/dist/inbox/effect-schema.js +246 -0
  397. package/dist/inbox/effect-schema.js.map +1 -0
  398. package/dist/inbox/feature.d.ts +164 -0
  399. package/dist/inbox/feature.d.ts.map +1 -0
  400. package/dist/inbox/feature.js +160 -0
  401. package/dist/inbox/feature.js.map +1 -0
  402. package/dist/inbox/index.d.ts +3 -0
  403. package/dist/inbox/index.d.ts.map +1 -0
  404. package/dist/inbox/index.js +3 -0
  405. package/dist/inbox/index.js.map +1 -0
  406. package/dist/index.d.ts +28 -15
  407. package/dist/index.d.ts.map +1 -1
  408. package/dist/index.js +28 -15
  409. package/dist/index.js.map +1 -1
  410. package/dist/integration-authorization/claude-code-contract.d.ts +3 -0
  411. package/dist/integration-authorization/claude-code-contract.d.ts.map +1 -1
  412. package/dist/integration-authorization/contract.d.ts +85 -12
  413. package/dist/integration-authorization/contract.d.ts.map +1 -1
  414. package/dist/integration-authorization/contract.js +19 -1
  415. package/dist/integration-authorization/contract.js.map +1 -1
  416. package/dist/integration-authorization/effect-schema.d.ts +3678 -1480
  417. package/dist/integration-authorization/effect-schema.d.ts.map +1 -1
  418. package/dist/integration-authorization/effect-schema.js +81 -6
  419. package/dist/integration-authorization/effect-schema.js.map +1 -1
  420. package/dist/integration-authorization/feature.d.ts +605 -0
  421. package/dist/integration-authorization/feature.d.ts.map +1 -0
  422. package/dist/integration-authorization/feature.js +571 -0
  423. package/dist/integration-authorization/feature.js.map +1 -0
  424. package/dist/integration-authorization/index.d.ts +3 -0
  425. package/dist/integration-authorization/index.d.ts.map +1 -1
  426. package/dist/integration-authorization/index.js +3 -0
  427. package/dist/integration-authorization/index.js.map +1 -1
  428. package/dist/integration-authorization/pi-rpc-contract.d.ts +3 -0
  429. package/dist/integration-authorization/pi-rpc-contract.d.ts.map +1 -1
  430. package/dist/integration-authorization/policy.d.ts +6 -1
  431. package/dist/integration-authorization/policy.d.ts.map +1 -1
  432. package/dist/integration-authorization/policy.js +6 -1
  433. package/dist/integration-authorization/policy.js.map +1 -1
  434. package/dist/interaction/effect-schema.d.ts +1 -1
  435. package/dist/interaction/effect-schema.d.ts.map +1 -1
  436. package/dist/interaction/effect-schema.js +1 -1
  437. package/dist/interaction/effect-schema.js.map +1 -1
  438. package/dist/interaction/feature.d.ts +50 -0
  439. package/dist/interaction/feature.d.ts.map +1 -1
  440. package/dist/interaction/feature.js +48 -0
  441. package/dist/interaction/feature.js.map +1 -1
  442. package/dist/interaction/result-contract.d.ts +3 -0
  443. package/dist/interaction/result-contract.d.ts.map +1 -1
  444. package/dist/interaction/result-effect-schema.d.ts +6 -0
  445. package/dist/interaction/result-effect-schema.d.ts.map +1 -1
  446. package/dist/invocation-context/contract.d.ts +2 -1
  447. package/dist/invocation-context/contract.d.ts.map +1 -1
  448. package/dist/invocation-context/effect-schema.d.ts +12 -2
  449. package/dist/invocation-context/effect-schema.d.ts.map +1 -1
  450. package/dist/invocation-context/effect-schema.js +24 -3
  451. package/dist/invocation-context/effect-schema.js.map +1 -1
  452. package/dist/invocation-context/feature.d.ts +35 -0
  453. package/dist/invocation-context/feature.d.ts.map +1 -0
  454. package/dist/invocation-context/feature.js +39 -0
  455. package/dist/invocation-context/feature.js.map +1 -0
  456. package/dist/invocation-context/index.d.ts +1 -0
  457. package/dist/invocation-context/index.d.ts.map +1 -1
  458. package/dist/invocation-context/index.js +1 -0
  459. package/dist/invocation-context/index.js.map +1 -1
  460. package/dist/invocation-context/policy.d.ts +6 -1
  461. package/dist/invocation-context/policy.d.ts.map +1 -1
  462. package/dist/invocation-context/policy.js +7 -1
  463. package/dist/invocation-context/policy.js.map +1 -1
  464. package/dist/local-node/contract.d.ts +57 -18
  465. package/dist/local-node/contract.d.ts.map +1 -1
  466. package/dist/local-node/contract.js +3 -1
  467. package/dist/local-node/contract.js.map +1 -1
  468. package/dist/local-node/effect-schema.d.ts +3826 -1262
  469. package/dist/local-node/effect-schema.d.ts.map +1 -1
  470. package/dist/local-node/effect-schema.js +122 -10
  471. package/dist/local-node/effect-schema.js.map +1 -1
  472. package/dist/local-node/index.d.ts +2 -2
  473. package/dist/local-node/index.d.ts.map +1 -1
  474. package/dist/local-node/index.js +2 -2
  475. package/dist/local-node/index.js.map +1 -1
  476. package/dist/local-node/node-api/index.d.ts +2 -2
  477. package/dist/local-node/node-api/index.d.ts.map +1 -1
  478. package/dist/local-node/node-api/index.js +2 -2
  479. package/dist/local-node/node-api/index.js.map +1 -1
  480. package/dist/local-node/node-api/methods.d.ts +11 -214
  481. package/dist/local-node/node-api/methods.d.ts.map +1 -1
  482. package/dist/local-node/node-api/methods.js +141 -214
  483. package/dist/local-node/node-api/methods.js.map +1 -1
  484. package/dist/local-node/node-api/policy.d.ts +33 -0
  485. package/dist/local-node/node-api/policy.d.ts.map +1 -1
  486. package/dist/local-node/node-api/policy.js +33 -0
  487. package/dist/local-node/node-api/policy.js.map +1 -1
  488. package/dist/local-node/receipt-list.d.ts +6 -7
  489. package/dist/local-node/receipt-list.d.ts.map +1 -1
  490. package/dist/local-node/receipt-list.js +60 -7
  491. package/dist/local-node/receipt-list.js.map +1 -1
  492. package/dist/node-update/contract.d.ts +198 -0
  493. package/dist/node-update/contract.d.ts.map +1 -0
  494. package/dist/node-update/contract.js +22 -0
  495. package/dist/node-update/contract.js.map +1 -0
  496. package/dist/node-update/effect-schema.d.ts +435 -0
  497. package/dist/node-update/effect-schema.d.ts.map +1 -0
  498. package/dist/node-update/effect-schema.js +307 -0
  499. package/dist/node-update/effect-schema.js.map +1 -0
  500. package/dist/node-update/feature.d.ts +379 -0
  501. package/dist/node-update/feature.d.ts.map +1 -0
  502. package/dist/node-update/feature.js +363 -0
  503. package/dist/node-update/feature.js.map +1 -0
  504. package/dist/node-update/index.d.ts +3 -0
  505. package/dist/node-update/index.d.ts.map +1 -0
  506. package/dist/node-update/index.js +3 -0
  507. package/dist/node-update/index.js.map +1 -0
  508. package/dist/orchestration/contract.d.ts +6 -0
  509. package/dist/orchestration/contract.d.ts.map +1 -1
  510. package/dist/orchestration/effect-schema.d.ts +14 -2
  511. package/dist/orchestration/effect-schema.d.ts.map +1 -1
  512. package/dist/orchestration/effect-schema.js +2 -2
  513. package/dist/orchestration/effect-schema.js.map +1 -1
  514. package/dist/orchestration/feature.d.ts +235 -0
  515. package/dist/orchestration/feature.d.ts.map +1 -1
  516. package/dist/orchestration/feature.js +227 -0
  517. package/dist/orchestration/feature.js.map +1 -1
  518. package/dist/orchestration/topology.d.ts +11 -1
  519. package/dist/orchestration/topology.d.ts.map +1 -1
  520. package/dist/orchestration/topology.js +38 -29
  521. package/dist/orchestration/topology.js.map +1 -1
  522. package/dist/pairing/contract.d.ts +86 -0
  523. package/dist/pairing/contract.d.ts.map +1 -0
  524. package/dist/pairing/contract.js +12 -0
  525. package/dist/pairing/contract.js.map +1 -0
  526. package/dist/pairing/effect-schema.d.ts +166 -0
  527. package/dist/pairing/effect-schema.d.ts.map +1 -0
  528. package/dist/pairing/effect-schema.js +94 -0
  529. package/dist/pairing/effect-schema.js.map +1 -0
  530. package/dist/pairing/feature.d.ts +141 -0
  531. package/dist/pairing/feature.d.ts.map +1 -0
  532. package/dist/pairing/feature.js +139 -0
  533. package/dist/pairing/feature.js.map +1 -0
  534. package/dist/pairing/index.d.ts +3 -0
  535. package/dist/pairing/index.d.ts.map +1 -0
  536. package/dist/pairing/index.js +3 -0
  537. package/dist/pairing/index.js.map +1 -0
  538. package/dist/port-lease/contract.d.ts +3 -0
  539. package/dist/port-lease/contract.d.ts.map +1 -1
  540. package/dist/port-lease/feature.d.ts +21 -0
  541. package/dist/port-lease/feature.d.ts.map +1 -1
  542. package/dist/port-lease/feature.js +21 -0
  543. package/dist/port-lease/feature.js.map +1 -1
  544. package/dist/port-lease/result-effect-schema.d.ts +6 -0
  545. package/dist/port-lease/result-effect-schema.d.ts.map +1 -1
  546. package/dist/presentation/contract.d.ts +41 -2
  547. package/dist/presentation/contract.d.ts.map +1 -1
  548. package/dist/presentation/effect-schema.d.ts +37 -2
  549. package/dist/presentation/effect-schema.d.ts.map +1 -1
  550. package/dist/presentation/feature.d.ts +20 -0
  551. package/dist/presentation/feature.d.ts.map +1 -1
  552. package/dist/presentation/feature.js +20 -0
  553. package/dist/presentation/feature.js.map +1 -1
  554. package/dist/presentation/session-list-effect-schema.d.ts +37 -2
  555. package/dist/presentation/session-list-effect-schema.d.ts.map +1 -1
  556. package/dist/principal/contract.d.ts +104 -0
  557. package/dist/principal/contract.d.ts.map +1 -0
  558. package/dist/principal/contract.js +18 -0
  559. package/dist/principal/contract.js.map +1 -0
  560. package/dist/principal/effect-schema.d.ts +166 -0
  561. package/dist/principal/effect-schema.d.ts.map +1 -0
  562. package/dist/principal/effect-schema.js +93 -0
  563. package/dist/principal/effect-schema.js.map +1 -0
  564. package/dist/principal/feature.d.ts +111 -0
  565. package/dist/principal/feature.d.ts.map +1 -0
  566. package/dist/principal/feature.js +111 -0
  567. package/dist/principal/feature.js.map +1 -0
  568. package/dist/principal/index.d.ts +3 -0
  569. package/dist/principal/index.d.ts.map +1 -0
  570. package/dist/principal/index.js +3 -0
  571. package/dist/principal/index.js.map +1 -0
  572. package/dist/project-workspace/contract.d.ts +351 -2
  573. package/dist/project-workspace/contract.d.ts.map +1 -1
  574. package/dist/project-workspace/contract.js +34 -2
  575. package/dist/project-workspace/contract.js.map +1 -1
  576. package/dist/project-workspace/effect-schema.d.ts +403 -0
  577. package/dist/project-workspace/effect-schema.d.ts.map +1 -1
  578. package/dist/project-workspace/effect-schema.js +105 -1
  579. package/dist/project-workspace/effect-schema.js.map +1 -1
  580. package/dist/project-workspace/feature.d.ts +659 -1
  581. package/dist/project-workspace/feature.d.ts.map +1 -1
  582. package/dist/project-workspace/feature.js +625 -1
  583. package/dist/project-workspace/feature.js.map +1 -1
  584. package/dist/project-workspace/git-effect-schema.d.ts +93 -0
  585. package/dist/project-workspace/git-effect-schema.d.ts.map +1 -0
  586. package/dist/project-workspace/git-effect-schema.js +81 -0
  587. package/dist/project-workspace/git-effect-schema.js.map +1 -0
  588. package/dist/project-workspace/index.d.ts +2 -2
  589. package/dist/project-workspace/index.d.ts.map +1 -1
  590. package/dist/project-workspace/index.js +2 -2
  591. package/dist/project-workspace/index.js.map +1 -1
  592. package/dist/project-workspace/knowledge-effect-schema.d.ts +413 -0
  593. package/dist/project-workspace/knowledge-effect-schema.d.ts.map +1 -0
  594. package/dist/project-workspace/knowledge-effect-schema.js +232 -0
  595. package/dist/project-workspace/knowledge-effect-schema.js.map +1 -0
  596. package/dist/project-workspace/policy.d.ts +40 -0
  597. package/dist/project-workspace/policy.d.ts.map +1 -1
  598. package/dist/project-workspace/policy.js +39 -0
  599. package/dist/project-workspace/policy.js.map +1 -1
  600. package/dist/provider/feature.d.ts +35 -0
  601. package/dist/provider/feature.d.ts.map +1 -0
  602. package/dist/provider/feature.js +39 -0
  603. package/dist/provider/feature.js.map +1 -0
  604. package/dist/provider/index.d.ts +1 -0
  605. package/dist/provider/index.d.ts.map +1 -1
  606. package/dist/provider/index.js +1 -0
  607. package/dist/provider/index.js.map +1 -1
  608. package/dist/reach/address.d.ts +18 -0
  609. package/dist/reach/address.d.ts.map +1 -0
  610. package/dist/reach/address.js +42 -0
  611. package/dist/reach/address.js.map +1 -0
  612. package/dist/reach/contract.d.ts +68 -0
  613. package/dist/reach/contract.d.ts.map +1 -0
  614. package/dist/reach/contract.js +8 -0
  615. package/dist/reach/contract.js.map +1 -0
  616. package/dist/reach/effect-schema.d.ts +133 -0
  617. package/dist/reach/effect-schema.d.ts.map +1 -0
  618. package/dist/reach/effect-schema.js +68 -0
  619. package/dist/reach/effect-schema.js.map +1 -0
  620. package/dist/reach/feature.d.ts +106 -0
  621. package/dist/reach/feature.d.ts.map +1 -0
  622. package/dist/reach/feature.js +106 -0
  623. package/dist/reach/feature.js.map +1 -0
  624. package/dist/reach/index.d.ts +4 -0
  625. package/dist/reach/index.d.ts.map +1 -0
  626. package/dist/reach/index.js +4 -0
  627. package/dist/reach/index.js.map +1 -0
  628. package/dist/reference/feature.d.ts +5 -0
  629. package/dist/reference/feature.d.ts.map +1 -1
  630. package/dist/reference/feature.js +5 -0
  631. package/dist/reference/feature.js.map +1 -1
  632. package/dist/release/version.d.ts +2 -2
  633. package/dist/release/version.d.ts.map +1 -1
  634. package/dist/release/version.js +2 -2
  635. package/dist/release/version.js.map +1 -1
  636. package/dist/remote-node/bridge-effect-schema.js +2 -2
  637. package/dist/remote-node/contract.d.ts +103 -2
  638. package/dist/remote-node/contract.d.ts.map +1 -1
  639. package/dist/remote-node/effect-schema.d.ts +1 -1
  640. package/dist/remote-node/effect-schema.d.ts.map +1 -1
  641. package/dist/remote-node/effect-schema.js +1 -1
  642. package/dist/remote-node/effect-schema.js.map +1 -1
  643. package/dist/remote-node/feature.d.ts +185 -0
  644. package/dist/remote-node/feature.d.ts.map +1 -1
  645. package/dist/remote-node/feature.js +173 -0
  646. package/dist/remote-node/feature.js.map +1 -1
  647. package/dist/remote-node/request-effect-schema.d.ts +4 -4
  648. package/dist/remote-node/request-effect-schema.d.ts.map +1 -1
  649. package/dist/remote-node/request-effect-schema.js +2 -1
  650. package/dist/remote-node/request-effect-schema.js.map +1 -1
  651. package/dist/remote-node/result-effect-schema.d.ts +194 -1
  652. package/dist/remote-node/result-effect-schema.d.ts.map +1 -1
  653. package/dist/remote-node/result-effect-schema.js +13 -2
  654. package/dist/remote-node/result-effect-schema.js.map +1 -1
  655. package/dist/routine/contract.d.ts +644 -18
  656. package/dist/routine/contract.d.ts.map +1 -1
  657. package/dist/routine/contract.js +28 -2
  658. package/dist/routine/contract.js.map +1 -1
  659. package/dist/routine/effect-schema.d.ts +1489 -218
  660. package/dist/routine/effect-schema.d.ts.map +1 -1
  661. package/dist/routine/effect-schema.js +358 -20
  662. package/dist/routine/effect-schema.js.map +1 -1
  663. package/dist/routine/feature.d.ts +336 -11
  664. package/dist/routine/feature.d.ts.map +1 -1
  665. package/dist/routine/feature.js +318 -11
  666. package/dist/routine/feature.js.map +1 -1
  667. package/dist/routine/index.d.ts +1 -1
  668. package/dist/routine/index.d.ts.map +1 -1
  669. package/dist/routine/index.js +1 -1
  670. package/dist/routine/index.js.map +1 -1
  671. package/dist/routine/policy.d.ts +55 -3
  672. package/dist/routine/policy.d.ts.map +1 -1
  673. package/dist/routine/policy.js +46 -1
  674. package/dist/routine/policy.js.map +1 -1
  675. package/dist/run-ledger/contract.d.ts +47 -0
  676. package/dist/run-ledger/contract.d.ts.map +1 -1
  677. package/dist/run-ledger/feature.d.ts +32 -0
  678. package/dist/run-ledger/feature.d.ts.map +1 -1
  679. package/dist/run-ledger/feature.js +32 -0
  680. package/dist/run-ledger/feature.js.map +1 -1
  681. package/dist/run-ledger/result-effect-schema.d.ts +94 -0
  682. package/dist/run-ledger/result-effect-schema.d.ts.map +1 -1
  683. package/dist/runtime/effect-schema.d.ts.map +1 -1
  684. package/dist/runtime/effect-schema.js +2 -1
  685. package/dist/runtime/effect-schema.js.map +1 -1
  686. package/dist/runtime/feature.d.ts +35 -0
  687. package/dist/runtime/feature.d.ts.map +1 -0
  688. package/dist/runtime/feature.js +39 -0
  689. package/dist/runtime/feature.js.map +1 -0
  690. package/dist/runtime/index.d.ts +1 -0
  691. package/dist/runtime/index.d.ts.map +1 -1
  692. package/dist/runtime/index.js +1 -0
  693. package/dist/runtime/index.js.map +1 -1
  694. package/dist/runtime-schema/effect-json-schema.d.ts +9 -0
  695. package/dist/runtime-schema/effect-json-schema.d.ts.map +1 -0
  696. package/dist/runtime-schema/effect-json-schema.js +41 -0
  697. package/dist/runtime-schema/effect-json-schema.js.map +1 -0
  698. package/dist/runtime-schema/effect-schema.d.ts +1 -0
  699. package/dist/runtime-schema/effect-schema.d.ts.map +1 -1
  700. package/dist/runtime-schema/effect-schema.js +1 -0
  701. package/dist/runtime-schema/effect-schema.js.map +1 -1
  702. package/dist/secret/contract.d.ts +107 -0
  703. package/dist/secret/contract.d.ts.map +1 -0
  704. package/dist/secret/contract.js +34 -0
  705. package/dist/secret/contract.js.map +1 -0
  706. package/dist/secret/effect-schema.d.ts +185 -0
  707. package/dist/secret/effect-schema.d.ts.map +1 -0
  708. package/dist/secret/effect-schema.js +113 -0
  709. package/dist/secret/effect-schema.js.map +1 -0
  710. package/dist/secret/feature.d.ts +103 -0
  711. package/dist/secret/feature.d.ts.map +1 -0
  712. package/dist/secret/feature.js +103 -0
  713. package/dist/secret/feature.js.map +1 -0
  714. package/dist/secret/index.d.ts +3 -0
  715. package/dist/secret/index.d.ts.map +1 -0
  716. package/dist/secret/index.js +3 -0
  717. package/dist/secret/index.js.map +1 -0
  718. package/dist/session/agent-permission-contract.d.ts +6 -5
  719. package/dist/session/agent-permission-contract.d.ts.map +1 -1
  720. package/dist/session/agent-permission-effect-schema.d.ts +11 -9
  721. package/dist/session/agent-permission-effect-schema.d.ts.map +1 -1
  722. package/dist/session/agent-permission-effect-schema.js +2 -2
  723. package/dist/session/agent-permission-effect-schema.js.map +1 -1
  724. package/dist/session/contract.d.ts +980 -46
  725. package/dist/session/contract.d.ts.map +1 -1
  726. package/dist/session/contract.js +35 -4
  727. package/dist/session/contract.js.map +1 -1
  728. package/dist/session/effect-schema.d.ts +2954 -176
  729. package/dist/session/effect-schema.d.ts.map +1 -1
  730. package/dist/session/effect-schema.js +593 -47
  731. package/dist/session/effect-schema.js.map +1 -1
  732. package/dist/session/feature.d.ts +801 -21
  733. package/dist/session/feature.d.ts.map +1 -1
  734. package/dist/session/feature.js +735 -3
  735. package/dist/session/feature.js.map +1 -1
  736. package/dist/session/index.d.ts +5 -3
  737. package/dist/session/index.d.ts.map +1 -1
  738. package/dist/session/index.js +5 -3
  739. package/dist/session/index.js.map +1 -1
  740. package/dist/session/observation-contract.d.ts +2 -2
  741. package/dist/session/observation-effect-schema.d.ts +7 -2
  742. package/dist/session/observation-effect-schema.d.ts.map +1 -1
  743. package/dist/session/observation-effect-schema.js +6 -1
  744. package/dist/session/observation-effect-schema.js.map +1 -1
  745. package/dist/session/placement/contract.d.ts +35 -0
  746. package/dist/session/placement/contract.d.ts.map +1 -0
  747. package/dist/session/placement/contract.js +5 -0
  748. package/dist/session/placement/contract.js.map +1 -0
  749. package/dist/session/placement/effect-schema.d.ts +55 -0
  750. package/dist/session/placement/effect-schema.d.ts.map +1 -0
  751. package/dist/session/placement/effect-schema.js +76 -0
  752. package/dist/session/placement/effect-schema.js.map +1 -0
  753. package/dist/session/placement/index.d.ts +2 -0
  754. package/dist/session/placement/index.d.ts.map +1 -0
  755. package/dist/session/placement/index.js +2 -0
  756. package/dist/session/placement/index.js.map +1 -0
  757. package/dist/session/policy.d.ts +158 -0
  758. package/dist/session/policy.d.ts.map +1 -1
  759. package/dist/session/policy.js +186 -2
  760. package/dist/session/policy.js.map +1 -1
  761. package/dist/session/stop-resume-contract.d.ts +127 -2
  762. package/dist/session/stop-resume-contract.d.ts.map +1 -1
  763. package/dist/session/stop-resume-contract.js +5 -1
  764. package/dist/session/stop-resume-contract.js.map +1 -1
  765. package/dist/session/worktree-effect-schema.d.ts +55 -1
  766. package/dist/session/worktree-effect-schema.d.ts.map +1 -1
  767. package/dist/session/worktree-effect-schema.js +79 -3
  768. package/dist/session/worktree-effect-schema.js.map +1 -1
  769. package/dist/session-command/contract.d.ts +442 -0
  770. package/dist/session-command/contract.d.ts.map +1 -0
  771. package/dist/session-command/contract.js +12 -0
  772. package/dist/session-command/contract.js.map +1 -0
  773. package/dist/session-command/effect-schema.d.ts +875 -0
  774. package/dist/session-command/effect-schema.d.ts.map +1 -0
  775. package/dist/session-command/effect-schema.js +125 -0
  776. package/dist/session-command/effect-schema.js.map +1 -0
  777. package/dist/session-command/feature.d.ts +141 -0
  778. package/dist/session-command/feature.d.ts.map +1 -0
  779. package/dist/session-command/feature.js +137 -0
  780. package/dist/session-command/feature.js.map +1 -0
  781. package/dist/session-command/index.d.ts +4 -0
  782. package/dist/session-command/index.d.ts.map +1 -0
  783. package/dist/session-command/index.js +4 -0
  784. package/dist/session-command/index.js.map +1 -0
  785. package/dist/session-command/policy.d.ts +33 -0
  786. package/dist/session-command/policy.d.ts.map +1 -0
  787. package/dist/session-command/policy.js +60 -0
  788. package/dist/session-command/policy.js.map +1 -0
  789. package/dist/session-guard/contract.d.ts +35 -4
  790. package/dist/session-guard/contract.d.ts.map +1 -1
  791. package/dist/session-guard/contract.js +34 -5
  792. package/dist/session-guard/contract.js.map +1 -1
  793. package/dist/session-guard/feature.d.ts +66 -1
  794. package/dist/session-guard/feature.d.ts.map +1 -1
  795. package/dist/session-guard/feature.js +62 -1
  796. package/dist/session-guard/feature.js.map +1 -1
  797. package/dist/session-guard/index.d.ts +1 -1
  798. package/dist/session-guard/index.d.ts.map +1 -1
  799. package/dist/session-guard/index.js +1 -1
  800. package/dist/session-guard/index.js.map +1 -1
  801. package/dist/session-guard/request-effect-schema.d.ts +33 -0
  802. package/dist/session-guard/request-effect-schema.d.ts.map +1 -1
  803. package/dist/session-guard/request-effect-schema.js +22 -0
  804. package/dist/session-guard/request-effect-schema.js.map +1 -1
  805. package/dist/session-guard/result-effect-schema.d.ts +28 -0
  806. package/dist/session-guard/result-effect-schema.d.ts.map +1 -1
  807. package/dist/session-guard/result-effect-schema.js +3 -1
  808. package/dist/session-guard/result-effect-schema.js.map +1 -1
  809. package/dist/session-stream/contract.d.ts +2 -1
  810. package/dist/session-stream/contract.d.ts.map +1 -1
  811. package/dist/session-stream/effect-schema.d.ts +9 -8
  812. package/dist/session-stream/effect-schema.d.ts.map +1 -1
  813. package/dist/skills-sync/contract.d.ts +142 -0
  814. package/dist/skills-sync/contract.d.ts.map +1 -0
  815. package/dist/skills-sync/contract.js +13 -0
  816. package/dist/skills-sync/contract.js.map +1 -0
  817. package/dist/skills-sync/effect-schema.d.ts +312 -0
  818. package/dist/skills-sync/effect-schema.d.ts.map +1 -0
  819. package/dist/skills-sync/effect-schema.js +160 -0
  820. package/dist/skills-sync/effect-schema.js.map +1 -0
  821. package/dist/skills-sync/feature.d.ts +102 -0
  822. package/dist/skills-sync/feature.d.ts.map +1 -0
  823. package/dist/skills-sync/feature.js +102 -0
  824. package/dist/skills-sync/feature.js.map +1 -0
  825. package/dist/skills-sync/index.d.ts +3 -0
  826. package/dist/skills-sync/index.d.ts.map +1 -0
  827. package/dist/skills-sync/index.js +3 -0
  828. package/dist/skills-sync/index.js.map +1 -0
  829. package/dist/team-workspace/contract.d.ts +1 -0
  830. package/dist/team-workspace/contract.d.ts.map +1 -1
  831. package/dist/team-workspace/effect-schema.d.ts +2 -0
  832. package/dist/team-workspace/effect-schema.d.ts.map +1 -1
  833. package/dist/team-workspace/feature.d.ts +10 -0
  834. package/dist/team-workspace/feature.d.ts.map +1 -1
  835. package/dist/team-workspace/feature.js +10 -0
  836. package/dist/team-workspace/feature.js.map +1 -1
  837. package/dist/terminal/contract.d.ts +2 -0
  838. package/dist/terminal/contract.d.ts.map +1 -1
  839. package/dist/terminal/effect-schema.d.ts +6 -0
  840. package/dist/terminal/effect-schema.d.ts.map +1 -1
  841. package/dist/terminal/effect-schema.js +2 -0
  842. package/dist/terminal/effect-schema.js.map +1 -1
  843. package/dist/terminal/feature.d.ts +281 -0
  844. package/dist/terminal/feature.d.ts.map +1 -1
  845. package/dist/terminal/feature.js +289 -0
  846. package/dist/terminal/feature.js.map +1 -1
  847. package/dist/turn/contract.d.ts +633 -4
  848. package/dist/turn/contract.d.ts.map +1 -1
  849. package/dist/turn/contract.js +18 -4
  850. package/dist/turn/contract.js.map +1 -1
  851. package/dist/turn/effect-schema.d.ts +1507 -161
  852. package/dist/turn/effect-schema.d.ts.map +1 -1
  853. package/dist/turn/effect-schema.js +123 -10
  854. package/dist/turn/effect-schema.js.map +1 -1
  855. package/dist/turn/index.d.ts +2 -2
  856. package/dist/turn/index.d.ts.map +1 -1
  857. package/dist/turn/index.js +2 -2
  858. package/dist/turn/index.js.map +1 -1
  859. package/dist/turn/policy.d.ts +54 -0
  860. package/dist/turn/policy.d.ts.map +1 -1
  861. package/dist/turn/policy.js +74 -0
  862. package/dist/turn/policy.js.map +1 -1
  863. package/dist/voice/contract.d.ts +6 -6
  864. package/dist/voice/effect-schema.d.ts +10 -9
  865. package/dist/voice/effect-schema.d.ts.map +1 -1
  866. package/dist/voice/effect-schema.js +3 -1
  867. package/dist/voice/effect-schema.js.map +1 -1
  868. package/dist/voice/feature.d.ts +70 -2
  869. package/dist/voice/feature.d.ts.map +1 -1
  870. package/dist/voice/feature.js +32 -0
  871. package/dist/voice/feature.js.map +1 -1
  872. package/dist/voice/orchestrator-system-prompt.d.ts +2 -2
  873. package/dist/voice/orchestrator-system-prompt.js +2 -2
  874. package/dist/voice/relay-contract.d.ts +1 -0
  875. package/dist/voice/relay-contract.d.ts.map +1 -1
  876. package/dist/voice/relay-effect-schema.d.ts +2 -0
  877. package/dist/voice/relay-effect-schema.d.ts.map +1 -1
  878. package/dist/webhooks/contract.d.ts +358 -0
  879. package/dist/webhooks/contract.d.ts.map +1 -0
  880. package/dist/webhooks/contract.js +26 -0
  881. package/dist/webhooks/contract.js.map +1 -0
  882. package/dist/webhooks/effect-schema.d.ts +550 -0
  883. package/dist/webhooks/effect-schema.d.ts.map +1 -0
  884. package/dist/webhooks/effect-schema.js +197 -0
  885. package/dist/webhooks/effect-schema.js.map +1 -0
  886. package/dist/webhooks/feature.d.ts +125 -0
  887. package/dist/webhooks/feature.d.ts.map +1 -0
  888. package/dist/webhooks/feature.js +123 -0
  889. package/dist/webhooks/feature.js.map +1 -0
  890. package/dist/webhooks/hook-effect-schema.d.ts +69 -0
  891. package/dist/webhooks/hook-effect-schema.d.ts.map +1 -0
  892. package/dist/webhooks/hook-effect-schema.js +107 -0
  893. package/dist/webhooks/hook-effect-schema.js.map +1 -0
  894. package/dist/webhooks/index.d.ts +4 -0
  895. package/dist/webhooks/index.d.ts.map +1 -0
  896. package/dist/webhooks/index.js +4 -0
  897. package/dist/webhooks/index.js.map +1 -0
  898. package/dist/webhooks/policy.d.ts +16 -0
  899. package/dist/webhooks/policy.d.ts.map +1 -0
  900. package/dist/webhooks/policy.js +16 -0
  901. package/dist/webhooks/policy.js.map +1 -0
  902. package/package.json +9 -3
  903. package/dist/configuration/configuration.d.ts +0 -63
  904. package/dist/configuration/configuration.d.ts.map +0 -1
  905. package/dist/configuration/configuration.js +0 -93
  906. package/dist/configuration/configuration.js.map +0 -1
  907. package/dist/configuration/index.d.ts +0 -2
  908. package/dist/configuration/index.d.ts.map +0 -1
  909. package/dist/configuration/index.js +0 -2
  910. package/dist/configuration/index.js.map +0 -1
@@ -1,5 +1,6 @@
1
1
  import type { InferRuntimeSchema } from "../runtime-schema/index.js";
2
2
  import type { SessionObserveResult } from "./observation-contract.js";
3
+ import type { SessionPlacementShowResult } from "./placement/index.js";
3
4
  import type { SessionResumeResult, SessionStopResult } from "./stop-resume-contract.js";
4
5
  export declare const sessionSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
5
6
  readonly createdAt: string;
@@ -10,22 +11,55 @@ export declare const sessionSchema: import("../runtime-schema/runtime-schema.js"
10
11
  readonly updatedAt: string;
11
12
  readonly workspaceId: string;
12
13
  readonly workspaceRevision: string;
14
+ readonly activity?: "idle" | "stopped" | "waiting_approval" | "working" | undefined;
13
15
  readonly agentDefinitionRef?: {
14
16
  readonly contentDigest: string;
15
17
  readonly key: string;
16
18
  readonly version: string;
17
19
  } | undefined;
20
+ readonly containment?: "none" | undefined;
18
21
  readonly executor?: {
19
22
  readonly connectionId: string;
20
23
  readonly effort?: "high" | "low" | "max" | "medium" | "ultra" | "xhigh" | undefined;
21
- readonly kind: "claude-code" | "codex-cli";
24
+ readonly kind: string;
22
25
  readonly model?: string | undefined;
23
26
  } | undefined;
24
27
  readonly failure?: {
25
28
  readonly code: string;
26
29
  readonly message: string;
27
30
  } | undefined;
31
+ readonly heldTaskCount?: number | undefined;
32
+ readonly heldTasks?: readonly {
33
+ readonly claimedAt: string;
34
+ readonly id: string;
35
+ readonly leaseExpiresAt: string;
36
+ readonly state: "claimed";
37
+ readonly title: string;
38
+ }[] | undefined;
39
+ readonly labels?: {
40
+ readonly [x: string]: string;
41
+ } | undefined;
42
+ readonly latestTurnId?: string | undefined;
43
+ readonly latestTurnState?: "completed" | "dispatching" | "failed" | "interrupted" | "outcome-unknown" | "queued" | "running" | undefined;
44
+ readonly parentSessionId?: string | undefined;
45
+ readonly permission?: "acceptEdits" | "bypassPermissions" | "default" | "dontAsk" | "never" | "on-request" | "plan" | "untrusted" | undefined;
46
+ readonly prompt?: {
47
+ readonly approvalId: string;
48
+ readonly expiresAt: string;
49
+ readonly kind: "command" | "file_change" | "question" | "tool";
50
+ readonly options?: readonly {
51
+ readonly label: string;
52
+ readonly optionId: string;
53
+ }[] | undefined;
54
+ readonly summary?: string | undefined;
55
+ } | undefined;
56
+ readonly recovery?: {
57
+ readonly code: string;
58
+ readonly message: string;
59
+ } | undefined;
28
60
  readonly schemaVersion: 4;
61
+ readonly settledReason?: "failed" | "idle" | "stopped" | undefined;
62
+ readonly status?: "approval" | "compacting" | "done" | "ended" | "error" | "idle" | "question" | "rate_limited" | "starting" | "unknown" | "working" | undefined;
29
63
  readonly title?: string | undefined;
30
64
  readonly worktree?: {
31
65
  readonly baseRef: string;
@@ -59,12 +93,16 @@ export declare const sessionEventSchema: import("../runtime-schema/runtime-schem
59
93
  readonly key: string;
60
94
  readonly version: string;
61
95
  } | undefined;
96
+ readonly authorizedBy?: string | undefined;
97
+ readonly containment?: "none" | undefined;
98
+ readonly cwd?: string | undefined;
62
99
  readonly executor?: {
63
100
  readonly connectionId: string;
64
101
  readonly effort?: "high" | "low" | "max" | "medium" | "ultra" | "xhigh" | undefined;
65
- readonly kind: "claude-code" | "codex-cli";
102
+ readonly kind: string;
66
103
  readonly model?: string | undefined;
67
104
  } | undefined;
105
+ readonly permission?: "acceptEdits" | "bypassPermissions" | "default" | "dontAsk" | "never" | "on-request" | "plan" | "untrusted" | undefined;
68
106
  readonly projectId: string;
69
107
  readonly workspaceId: string;
70
108
  readonly workspaceRevision: string;
@@ -111,6 +149,20 @@ export declare const sessionEventSchema: import("../runtime-schema/runtime-schem
111
149
  readonly schemaVersion: 4;
112
150
  readonly sessionCursor: string;
113
151
  readonly sessionId: string;
152
+ } | {
153
+ readonly commandId: string;
154
+ readonly eventType: "session.runtime.recovery.updated";
155
+ readonly globalCursor: string;
156
+ readonly payload: {
157
+ readonly recovery?: {
158
+ readonly code: string;
159
+ readonly message: string;
160
+ } | undefined;
161
+ };
162
+ readonly recordedAt: string;
163
+ readonly schemaVersion: 4;
164
+ readonly sessionCursor: string;
165
+ readonly sessionId: string;
114
166
  } | {
115
167
  readonly commandId: string;
116
168
  readonly eventType: "session.runtime.resumed";
@@ -270,21 +322,30 @@ export declare const sessionCreateParametersSchema: import("../runtime-schema/ru
270
322
  readonly workspaceId: string;
271
323
  readonly agentId?: string | undefined;
272
324
  readonly connectionId?: string | undefined;
325
+ readonly cwd?: string | undefined;
273
326
  readonly definitionRef?: {
274
327
  readonly contentDigest: string;
275
328
  readonly key: string;
276
329
  readonly version: string;
277
330
  } | undefined;
278
331
  readonly effort?: "high" | "low" | "max" | "medium" | "ultra" | "xhigh" | undefined;
279
- readonly executor?: "claude-code" | "codex-cli" | undefined;
332
+ readonly executor?: string | undefined;
333
+ readonly hostAuthority?: true | undefined;
334
+ readonly labels?: {
335
+ readonly [x: string]: string;
336
+ } | undefined;
280
337
  readonly model?: string | undefined;
338
+ readonly permission?: "acceptEdits" | "bypassPermissions" | "default" | "dontAsk" | "never" | "on-request" | "plan" | "untrusted" | undefined;
281
339
  readonly role?: "orchestrator" | "worker" | undefined;
282
340
  readonly title?: string | undefined;
283
341
  readonly worktree?: {
284
342
  readonly baseRef: string;
343
+ readonly branch?: string | undefined;
285
344
  } | undefined;
286
345
  }>;
287
346
  export type SessionCreateParameters = InferRuntimeSchema<typeof sessionCreateParametersSchema>;
347
+ /** An executor id: lowercase kebab text; the Node's registry decides which ids exist. */
348
+ export declare const sessionExecutorKindSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<string>;
288
349
  export declare const sessionMailboxSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
289
350
  readonly contentBytes: string;
290
351
  readonly createdAt: string;
@@ -373,8 +434,14 @@ export type SessionInboxAckParameters = InferRuntimeSchema<typeof sessionInboxAc
373
434
  export declare const sessionListParametersSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
374
435
  readonly afterCursor?: string | undefined;
375
436
  readonly attention?: boolean | undefined;
437
+ readonly idleForSeconds?: number | undefined;
438
+ readonly labels?: {
439
+ readonly [x: string]: string;
440
+ } | undefined;
376
441
  readonly limit?: number | undefined;
442
+ readonly parentSessionId?: string | undefined;
377
443
  readonly projectId?: string | undefined;
444
+ readonly settled?: true | undefined;
378
445
  readonly states?: readonly ("failed" | "idle" | "interrupted" | "recovering" | "running" | "starting" | "stopped" | "stopping" | "waiting-approval")[] | undefined;
379
446
  }>;
380
447
  export type SessionListParameters = InferRuntimeSchema<typeof sessionListParametersSchema>;
@@ -382,40 +449,16 @@ export declare const sessionShowParametersSchema: import("../runtime-schema/runt
382
449
  readonly sessionId: string;
383
450
  }>;
384
451
  export type SessionShowParameters = InferRuntimeSchema<typeof sessionShowParametersSchema>;
385
- export declare const sessionSpawnParametersSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
386
- readonly commandId: string;
387
- readonly expectedRevision: "0";
388
- readonly workspaceId: string;
389
- readonly definitionRef?: {
390
- readonly contentDigest: string;
391
- readonly key: string;
392
- readonly version: string;
393
- } | undefined;
394
- readonly harness: "maia-agent" | "pi";
395
- readonly parentSessionId: string;
452
+ export declare const sessionWaitParametersSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
453
+ readonly activities?: readonly ("idle" | "stopped" | "waiting_approval" | "working")[] | undefined;
454
+ readonly sessionId: string;
455
+ readonly states?: readonly ("failed" | "idle" | "interrupted" | "recovering" | "running" | "starting" | "stopped" | "stopping" | "waiting-approval")[] | undefined;
456
+ readonly waitMilliseconds: number;
396
457
  }>;
397
- export type SessionSpawnParameters = InferRuntimeSchema<typeof sessionSpawnParametersSchema>;
398
- export declare const sessionSpawnResultSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
399
- readonly delivery: "duplicate" | "new";
400
- readonly harness: "maia-agent" | "pi";
401
- readonly method: "session.spawn";
402
- readonly parentSessionId: string;
403
- readonly receipt: {
404
- readonly actorId: string;
405
- readonly aggregateRevision: string;
406
- readonly commandId: string;
407
- readonly createdAt: string;
408
- readonly eventCursor: string;
409
- readonly method: string;
410
- readonly receiptId: string;
411
- readonly schemaVersion: 1;
412
- readonly state: "succeeded";
413
- readonly target: {
414
- readonly id: string;
415
- readonly type: string;
416
- };
417
- readonly updatedAt: string;
418
- };
458
+ export type SessionWaitParameters = InferRuntimeSchema<typeof sessionWaitParametersSchema>;
459
+ export declare const sessionWaitResultSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
460
+ readonly method: "session.wait";
461
+ readonly satisfied: boolean;
419
462
  readonly session: {
420
463
  readonly createdAt: string;
421
464
  readonly id: string;
@@ -425,22 +468,55 @@ export declare const sessionSpawnResultSchema: import("../runtime-schema/runtime
425
468
  readonly updatedAt: string;
426
469
  readonly workspaceId: string;
427
470
  readonly workspaceRevision: string;
471
+ readonly activity?: "idle" | "stopped" | "waiting_approval" | "working" | undefined;
428
472
  readonly agentDefinitionRef?: {
429
473
  readonly contentDigest: string;
430
474
  readonly key: string;
431
475
  readonly version: string;
432
476
  } | undefined;
477
+ readonly containment?: "none" | undefined;
433
478
  readonly executor?: {
434
479
  readonly connectionId: string;
435
480
  readonly effort?: "high" | "low" | "max" | "medium" | "ultra" | "xhigh" | undefined;
436
- readonly kind: "claude-code" | "codex-cli";
481
+ readonly kind: string;
437
482
  readonly model?: string | undefined;
438
483
  } | undefined;
439
484
  readonly failure?: {
440
485
  readonly code: string;
441
486
  readonly message: string;
442
487
  } | undefined;
488
+ readonly heldTaskCount?: number | undefined;
489
+ readonly heldTasks?: readonly {
490
+ readonly claimedAt: string;
491
+ readonly id: string;
492
+ readonly leaseExpiresAt: string;
493
+ readonly state: "claimed";
494
+ readonly title: string;
495
+ }[] | undefined;
496
+ readonly labels?: {
497
+ readonly [x: string]: string;
498
+ } | undefined;
499
+ readonly latestTurnId?: string | undefined;
500
+ readonly latestTurnState?: "completed" | "dispatching" | "failed" | "interrupted" | "outcome-unknown" | "queued" | "running" | undefined;
501
+ readonly parentSessionId?: string | undefined;
502
+ readonly permission?: "acceptEdits" | "bypassPermissions" | "default" | "dontAsk" | "never" | "on-request" | "plan" | "untrusted" | undefined;
503
+ readonly prompt?: {
504
+ readonly approvalId: string;
505
+ readonly expiresAt: string;
506
+ readonly kind: "command" | "file_change" | "question" | "tool";
507
+ readonly options?: readonly {
508
+ readonly label: string;
509
+ readonly optionId: string;
510
+ }[] | undefined;
511
+ readonly summary?: string | undefined;
512
+ } | undefined;
513
+ readonly recovery?: {
514
+ readonly code: string;
515
+ readonly message: string;
516
+ } | undefined;
443
517
  readonly schemaVersion: 4;
518
+ readonly settledReason?: "failed" | "idle" | "stopped" | undefined;
519
+ readonly status?: "approval" | "compacting" | "done" | "ended" | "error" | "idle" | "question" | "rate_limited" | "starting" | "unknown" | "working" | undefined;
444
520
  readonly title?: string | undefined;
445
521
  readonly worktree?: {
446
522
  readonly baseRef: string;
@@ -455,7 +531,7 @@ export declare const sessionSpawnResultSchema: import("../runtime-schema/runtime
455
531
  } | undefined;
456
532
  };
457
533
  }>;
458
- export type SessionSpawnResult = InferRuntimeSchema<typeof sessionSpawnResultSchema>;
534
+ export type SessionWaitResult = InferRuntimeSchema<typeof sessionWaitResultSchema>;
459
535
  export declare const sessionEventsListParametersSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
460
536
  readonly afterSessionCursor: string;
461
537
  readonly limit: number;
@@ -472,6 +548,7 @@ export declare const sessionCreateResultSchema: import("../runtime-schema/runtim
472
548
  readonly createdAt: string;
473
549
  readonly eventCursor: string;
474
550
  readonly method: string;
551
+ readonly proposedBy?: string | undefined;
475
552
  readonly receiptId: string;
476
553
  readonly schemaVersion: 1;
477
554
  readonly state: "succeeded";
@@ -490,22 +567,55 @@ export declare const sessionCreateResultSchema: import("../runtime-schema/runtim
490
567
  readonly updatedAt: string;
491
568
  readonly workspaceId: string;
492
569
  readonly workspaceRevision: string;
570
+ readonly activity?: "idle" | "stopped" | "waiting_approval" | "working" | undefined;
493
571
  readonly agentDefinitionRef?: {
494
572
  readonly contentDigest: string;
495
573
  readonly key: string;
496
574
  readonly version: string;
497
575
  } | undefined;
576
+ readonly containment?: "none" | undefined;
498
577
  readonly executor?: {
499
578
  readonly connectionId: string;
500
579
  readonly effort?: "high" | "low" | "max" | "medium" | "ultra" | "xhigh" | undefined;
501
- readonly kind: "claude-code" | "codex-cli";
580
+ readonly kind: string;
502
581
  readonly model?: string | undefined;
503
582
  } | undefined;
504
583
  readonly failure?: {
505
584
  readonly code: string;
506
585
  readonly message: string;
507
586
  } | undefined;
587
+ readonly heldTaskCount?: number | undefined;
588
+ readonly heldTasks?: readonly {
589
+ readonly claimedAt: string;
590
+ readonly id: string;
591
+ readonly leaseExpiresAt: string;
592
+ readonly state: "claimed";
593
+ readonly title: string;
594
+ }[] | undefined;
595
+ readonly labels?: {
596
+ readonly [x: string]: string;
597
+ } | undefined;
598
+ readonly latestTurnId?: string | undefined;
599
+ readonly latestTurnState?: "completed" | "dispatching" | "failed" | "interrupted" | "outcome-unknown" | "queued" | "running" | undefined;
600
+ readonly parentSessionId?: string | undefined;
601
+ readonly permission?: "acceptEdits" | "bypassPermissions" | "default" | "dontAsk" | "never" | "on-request" | "plan" | "untrusted" | undefined;
602
+ readonly prompt?: {
603
+ readonly approvalId: string;
604
+ readonly expiresAt: string;
605
+ readonly kind: "command" | "file_change" | "question" | "tool";
606
+ readonly options?: readonly {
607
+ readonly label: string;
608
+ readonly optionId: string;
609
+ }[] | undefined;
610
+ readonly summary?: string | undefined;
611
+ } | undefined;
612
+ readonly recovery?: {
613
+ readonly code: string;
614
+ readonly message: string;
615
+ } | undefined;
508
616
  readonly schemaVersion: 4;
617
+ readonly settledReason?: "failed" | "idle" | "stopped" | undefined;
618
+ readonly status?: "approval" | "compacting" | "done" | "ended" | "error" | "idle" | "question" | "rate_limited" | "starting" | "unknown" | "working" | undefined;
509
619
  readonly title?: string | undefined;
510
620
  readonly worktree?: {
511
621
  readonly baseRef: string;
@@ -544,6 +654,7 @@ export declare const sessionMessageSendResultSchema: import("../runtime-schema/r
544
654
  readonly createdAt: string;
545
655
  readonly eventCursor: string;
546
656
  readonly method: string;
657
+ readonly proposedBy?: string | undefined;
547
658
  readonly receiptId: string;
548
659
  readonly schemaVersion: 1;
549
660
  readonly state: "succeeded";
@@ -628,6 +739,7 @@ export declare const sessionInboxAckResultSchema: import("../runtime-schema/runt
628
739
  readonly createdAt: string;
629
740
  readonly eventCursor: string;
630
741
  readonly method: string;
742
+ readonly proposedBy?: string | undefined;
631
743
  readonly receiptId: string;
632
744
  readonly schemaVersion: 1;
633
745
  readonly state: "succeeded";
@@ -653,22 +765,55 @@ export declare const sessionListResultSchema: import("../runtime-schema/runtime-
653
765
  readonly updatedAt: string;
654
766
  readonly workspaceId: string;
655
767
  readonly workspaceRevision: string;
768
+ readonly activity?: "idle" | "stopped" | "waiting_approval" | "working" | undefined;
656
769
  readonly agentDefinitionRef?: {
657
770
  readonly contentDigest: string;
658
771
  readonly key: string;
659
772
  readonly version: string;
660
773
  } | undefined;
774
+ readonly containment?: "none" | undefined;
661
775
  readonly executor?: {
662
776
  readonly connectionId: string;
663
777
  readonly effort?: "high" | "low" | "max" | "medium" | "ultra" | "xhigh" | undefined;
664
- readonly kind: "claude-code" | "codex-cli";
778
+ readonly kind: string;
665
779
  readonly model?: string | undefined;
666
780
  } | undefined;
667
781
  readonly failure?: {
668
782
  readonly code: string;
669
783
  readonly message: string;
670
784
  } | undefined;
785
+ readonly heldTaskCount?: number | undefined;
786
+ readonly heldTasks?: readonly {
787
+ readonly claimedAt: string;
788
+ readonly id: string;
789
+ readonly leaseExpiresAt: string;
790
+ readonly state: "claimed";
791
+ readonly title: string;
792
+ }[] | undefined;
793
+ readonly labels?: {
794
+ readonly [x: string]: string;
795
+ } | undefined;
796
+ readonly latestTurnId?: string | undefined;
797
+ readonly latestTurnState?: "completed" | "dispatching" | "failed" | "interrupted" | "outcome-unknown" | "queued" | "running" | undefined;
798
+ readonly parentSessionId?: string | undefined;
799
+ readonly permission?: "acceptEdits" | "bypassPermissions" | "default" | "dontAsk" | "never" | "on-request" | "plan" | "untrusted" | undefined;
800
+ readonly prompt?: {
801
+ readonly approvalId: string;
802
+ readonly expiresAt: string;
803
+ readonly kind: "command" | "file_change" | "question" | "tool";
804
+ readonly options?: readonly {
805
+ readonly label: string;
806
+ readonly optionId: string;
807
+ }[] | undefined;
808
+ readonly summary?: string | undefined;
809
+ } | undefined;
810
+ readonly recovery?: {
811
+ readonly code: string;
812
+ readonly message: string;
813
+ } | undefined;
671
814
  readonly schemaVersion: 4;
815
+ readonly settledReason?: "failed" | "idle" | "stopped" | undefined;
816
+ readonly status?: "approval" | "compacting" | "done" | "ended" | "error" | "idle" | "question" | "rate_limited" | "starting" | "unknown" | "working" | undefined;
672
817
  readonly title?: string | undefined;
673
818
  readonly worktree?: {
674
819
  readonly baseRef: string;
@@ -688,6 +833,14 @@ export declare const sessionListResultSchema: import("../runtime-schema/runtime-
688
833
  export type SessionListResult = InferRuntimeSchema<typeof sessionListResultSchema>;
689
834
  export declare const sessionShowResultSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
690
835
  readonly method: "session.show";
836
+ readonly remoteChildren?: readonly {
837
+ readonly linkedAt: string;
838
+ readonly node: string;
839
+ readonly observedState?: "failed" | "idle" | "interrupted" | "recovering" | "running" | "starting" | "stopped" | "stopping" | "waiting-approval" | undefined;
840
+ readonly orphanedAt?: string | undefined;
841
+ readonly sessionId: string;
842
+ readonly state: "linked" | "orphaned";
843
+ }[] | undefined;
691
844
  readonly session: {
692
845
  readonly createdAt: string;
693
846
  readonly id: string;
@@ -697,22 +850,55 @@ export declare const sessionShowResultSchema: import("../runtime-schema/runtime-
697
850
  readonly updatedAt: string;
698
851
  readonly workspaceId: string;
699
852
  readonly workspaceRevision: string;
853
+ readonly activity?: "idle" | "stopped" | "waiting_approval" | "working" | undefined;
700
854
  readonly agentDefinitionRef?: {
701
855
  readonly contentDigest: string;
702
856
  readonly key: string;
703
857
  readonly version: string;
704
858
  } | undefined;
859
+ readonly containment?: "none" | undefined;
705
860
  readonly executor?: {
706
861
  readonly connectionId: string;
707
862
  readonly effort?: "high" | "low" | "max" | "medium" | "ultra" | "xhigh" | undefined;
708
- readonly kind: "claude-code" | "codex-cli";
863
+ readonly kind: string;
709
864
  readonly model?: string | undefined;
710
865
  } | undefined;
711
866
  readonly failure?: {
712
867
  readonly code: string;
713
868
  readonly message: string;
714
869
  } | undefined;
870
+ readonly heldTaskCount?: number | undefined;
871
+ readonly heldTasks?: readonly {
872
+ readonly claimedAt: string;
873
+ readonly id: string;
874
+ readonly leaseExpiresAt: string;
875
+ readonly state: "claimed";
876
+ readonly title: string;
877
+ }[] | undefined;
878
+ readonly labels?: {
879
+ readonly [x: string]: string;
880
+ } | undefined;
881
+ readonly latestTurnId?: string | undefined;
882
+ readonly latestTurnState?: "completed" | "dispatching" | "failed" | "interrupted" | "outcome-unknown" | "queued" | "running" | undefined;
883
+ readonly parentSessionId?: string | undefined;
884
+ readonly permission?: "acceptEdits" | "bypassPermissions" | "default" | "dontAsk" | "never" | "on-request" | "plan" | "untrusted" | undefined;
885
+ readonly prompt?: {
886
+ readonly approvalId: string;
887
+ readonly expiresAt: string;
888
+ readonly kind: "command" | "file_change" | "question" | "tool";
889
+ readonly options?: readonly {
890
+ readonly label: string;
891
+ readonly optionId: string;
892
+ }[] | undefined;
893
+ readonly summary?: string | undefined;
894
+ } | undefined;
895
+ readonly recovery?: {
896
+ readonly code: string;
897
+ readonly message: string;
898
+ } | undefined;
715
899
  readonly schemaVersion: 4;
900
+ readonly settledReason?: "failed" | "idle" | "stopped" | undefined;
901
+ readonly status?: "approval" | "compacting" | "done" | "ended" | "error" | "idle" | "question" | "rate_limited" | "starting" | "unknown" | "working" | undefined;
716
902
  readonly title?: string | undefined;
717
903
  readonly worktree?: {
718
904
  readonly baseRef: string;
@@ -744,12 +930,16 @@ export declare const sessionEventsListResultSchema: import("../runtime-schema/ru
744
930
  readonly key: string;
745
931
  readonly version: string;
746
932
  } | undefined;
933
+ readonly authorizedBy?: string | undefined;
934
+ readonly containment?: "none" | undefined;
935
+ readonly cwd?: string | undefined;
747
936
  readonly executor?: {
748
937
  readonly connectionId: string;
749
938
  readonly effort?: "high" | "low" | "max" | "medium" | "ultra" | "xhigh" | undefined;
750
- readonly kind: "claude-code" | "codex-cli";
939
+ readonly kind: string;
751
940
  readonly model?: string | undefined;
752
941
  } | undefined;
942
+ readonly permission?: "acceptEdits" | "bypassPermissions" | "default" | "dontAsk" | "never" | "on-request" | "plan" | "untrusted" | undefined;
753
943
  readonly projectId: string;
754
944
  readonly workspaceId: string;
755
945
  readonly workspaceRevision: string;
@@ -796,6 +986,20 @@ export declare const sessionEventsListResultSchema: import("../runtime-schema/ru
796
986
  readonly schemaVersion: 4;
797
987
  readonly sessionCursor: string;
798
988
  readonly sessionId: string;
989
+ } | {
990
+ readonly commandId: string;
991
+ readonly eventType: "session.runtime.recovery.updated";
992
+ readonly globalCursor: string;
993
+ readonly payload: {
994
+ readonly recovery?: {
995
+ readonly code: string;
996
+ readonly message: string;
997
+ } | undefined;
998
+ };
999
+ readonly recordedAt: string;
1000
+ readonly schemaVersion: 4;
1001
+ readonly sessionCursor: string;
1002
+ readonly sessionId: string;
799
1003
  } | {
800
1004
  readonly commandId: string;
801
1005
  readonly eventType: "session.runtime.resumed";
@@ -950,6 +1154,7 @@ export declare const sessionEventsListResultSchema: import("../runtime-schema/ru
950
1154
  })[];
951
1155
  readonly method: "session.events.list";
952
1156
  readonly nextSessionCursor?: string | undefined;
1157
+ readonly oldestRetainedCursor?: string | undefined;
953
1158
  readonly sessionId: string;
954
1159
  }>;
955
1160
  export type SessionEventsListResult = InferRuntimeSchema<typeof sessionEventsListResultSchema>;
@@ -969,6 +1174,7 @@ export declare const sessionStartResultSchema: import("../runtime-schema/runtime
969
1174
  readonly createdAt: string;
970
1175
  readonly eventCursor: string;
971
1176
  readonly method: string;
1177
+ readonly proposedBy?: string | undefined;
972
1178
  readonly receiptId: string;
973
1179
  readonly schemaVersion: 1;
974
1180
  readonly state: "succeeded";
@@ -987,22 +1193,55 @@ export declare const sessionStartResultSchema: import("../runtime-schema/runtime
987
1193
  readonly updatedAt: string;
988
1194
  readonly workspaceId: string;
989
1195
  readonly workspaceRevision: string;
1196
+ readonly activity?: "idle" | "stopped" | "waiting_approval" | "working" | undefined;
990
1197
  readonly agentDefinitionRef?: {
991
1198
  readonly contentDigest: string;
992
1199
  readonly key: string;
993
1200
  readonly version: string;
994
1201
  } | undefined;
1202
+ readonly containment?: "none" | undefined;
995
1203
  readonly executor?: {
996
1204
  readonly connectionId: string;
997
1205
  readonly effort?: "high" | "low" | "max" | "medium" | "ultra" | "xhigh" | undefined;
998
- readonly kind: "claude-code" | "codex-cli";
1206
+ readonly kind: string;
999
1207
  readonly model?: string | undefined;
1000
1208
  } | undefined;
1001
1209
  readonly failure?: {
1002
1210
  readonly code: string;
1003
1211
  readonly message: string;
1004
1212
  } | undefined;
1213
+ readonly heldTaskCount?: number | undefined;
1214
+ readonly heldTasks?: readonly {
1215
+ readonly claimedAt: string;
1216
+ readonly id: string;
1217
+ readonly leaseExpiresAt: string;
1218
+ readonly state: "claimed";
1219
+ readonly title: string;
1220
+ }[] | undefined;
1221
+ readonly labels?: {
1222
+ readonly [x: string]: string;
1223
+ } | undefined;
1224
+ readonly latestTurnId?: string | undefined;
1225
+ readonly latestTurnState?: "completed" | "dispatching" | "failed" | "interrupted" | "outcome-unknown" | "queued" | "running" | undefined;
1226
+ readonly parentSessionId?: string | undefined;
1227
+ readonly permission?: "acceptEdits" | "bypassPermissions" | "default" | "dontAsk" | "never" | "on-request" | "plan" | "untrusted" | undefined;
1228
+ readonly prompt?: {
1229
+ readonly approvalId: string;
1230
+ readonly expiresAt: string;
1231
+ readonly kind: "command" | "file_change" | "question" | "tool";
1232
+ readonly options?: readonly {
1233
+ readonly label: string;
1234
+ readonly optionId: string;
1235
+ }[] | undefined;
1236
+ readonly summary?: string | undefined;
1237
+ } | undefined;
1238
+ readonly recovery?: {
1239
+ readonly code: string;
1240
+ readonly message: string;
1241
+ } | undefined;
1005
1242
  readonly schemaVersion: 4;
1243
+ readonly settledReason?: "failed" | "idle" | "stopped" | undefined;
1244
+ readonly status?: "approval" | "compacting" | "done" | "ended" | "error" | "idle" | "question" | "rate_limited" | "starting" | "unknown" | "working" | undefined;
1006
1245
  readonly title?: string | undefined;
1007
1246
  readonly worktree?: {
1008
1247
  readonly baseRef: string;
@@ -1018,9 +1257,11 @@ export declare const sessionStartResultSchema: import("../runtime-schema/runtime
1018
1257
  };
1019
1258
  }>;
1020
1259
  export type SessionStartResult = InferRuntimeSchema<typeof sessionStartResultSchema>;
1021
- export type SessionResult = SessionArchiveResult | SessionCreateResult | SessionDiffResult | SessionEventsListResult | SessionInboxAckResult | SessionInboxCheckResult | SessionListResult | SessionMessageSendResult | SessionObserveResult | SessionRenameResult | SessionResumeResult | SessionShowResult | SessionSpawnResult | SessionStartResult | SessionStopResult;
1260
+ export type SessionResult = SessionArchiveResult | SessionCreateResult | SessionDiffResult | SessionEventsListResult | SessionForkConfirmResult | SessionForkPreviewResult | SessionGitStatusResult | SessionInboxAckResult | SessionInboxCheckResult | SessionListResult | SessionMessageSendResult | SessionObserveResult | SessionPlacementShowResult | SessionRenameResult | SessionResumeResult | SessionSetupConfirmResult | SessionSetupPreviewResult | SessionShowResult | SessionSpawnConfirmResult | SessionSpawnPreviewResult | SessionStartResult | SessionStopResult | SessionSwitchConfirmResult | SessionSwitchPreviewResult | SessionWaitResult;
1022
1261
  export declare const sessionBaseRefSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<string>;
1023
1262
  export type SessionBaseRef = InferRuntimeSchema<typeof sessionBaseRefSchema>;
1263
+ /** The branch a coding Session may name for its new worktree. */
1264
+ export declare const sessionBranchNameSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<string>;
1024
1265
  export declare const sessionWorktreeSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
1025
1266
  readonly baseRef: string;
1026
1267
  readonly baseRevision: string;
@@ -1057,10 +1298,35 @@ export declare const sessionDiffResultSchema: import("../runtime-schema/runtime-
1057
1298
  readonly totalFiles: number;
1058
1299
  }>;
1059
1300
  export type SessionDiffResult = InferRuntimeSchema<typeof sessionDiffResultSchema>;
1301
+ export declare const sessionGitStatusParametersSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
1302
+ readonly sessionId: string;
1303
+ }>;
1304
+ export type SessionGitStatusParameters = InferRuntimeSchema<typeof sessionGitStatusParametersSchema>;
1305
+ export declare const sessionGitStatusResultSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
1306
+ readonly ahead?: number | undefined;
1307
+ readonly baseRef: string;
1308
+ readonly baseRevision?: string | undefined;
1309
+ readonly behind?: number | undefined;
1310
+ readonly branch?: string | undefined;
1311
+ readonly changedFiles: number;
1312
+ readonly dirty: boolean;
1313
+ readonly headRevision: string;
1314
+ readonly method: "session.git.status";
1315
+ readonly observedAt: string;
1316
+ readonly sessionId: string;
1317
+ readonly upstream?: {
1318
+ readonly ahead?: number | undefined;
1319
+ readonly behind?: number | undefined;
1320
+ readonly name: string;
1321
+ } | undefined;
1322
+ }>;
1323
+ export type SessionGitStatusResult = InferRuntimeSchema<typeof sessionGitStatusResultSchema>;
1060
1324
  export declare const sessionArchiveParametersSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
1061
1325
  readonly commandId: string;
1062
1326
  readonly expectedRevision: string;
1063
1327
  readonly sessionId: string;
1328
+ readonly summary?: string | undefined;
1329
+ readonly transcriptPath?: string | undefined;
1064
1330
  }>;
1065
1331
  export type SessionArchiveParameters = InferRuntimeSchema<typeof sessionArchiveParametersSchema>;
1066
1332
  export declare const sessionArchiveResultSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
@@ -1079,6 +1345,7 @@ export declare const sessionArchiveResultSchema: import("../runtime-schema/runti
1079
1345
  readonly createdAt: string;
1080
1346
  readonly eventCursor: string;
1081
1347
  readonly method: string;
1348
+ readonly proposedBy?: string | undefined;
1082
1349
  readonly receiptId: string;
1083
1350
  readonly schemaVersion: 1;
1084
1351
  readonly state: "succeeded";
@@ -1097,22 +1364,55 @@ export declare const sessionArchiveResultSchema: import("../runtime-schema/runti
1097
1364
  readonly updatedAt: string;
1098
1365
  readonly workspaceId: string;
1099
1366
  readonly workspaceRevision: string;
1367
+ readonly activity?: "idle" | "stopped" | "waiting_approval" | "working" | undefined;
1100
1368
  readonly agentDefinitionRef?: {
1101
1369
  readonly contentDigest: string;
1102
1370
  readonly key: string;
1103
1371
  readonly version: string;
1104
1372
  } | undefined;
1373
+ readonly containment?: "none" | undefined;
1105
1374
  readonly executor?: {
1106
1375
  readonly connectionId: string;
1107
1376
  readonly effort?: "high" | "low" | "max" | "medium" | "ultra" | "xhigh" | undefined;
1108
- readonly kind: "claude-code" | "codex-cli";
1377
+ readonly kind: string;
1109
1378
  readonly model?: string | undefined;
1110
1379
  } | undefined;
1111
1380
  readonly failure?: {
1112
1381
  readonly code: string;
1113
1382
  readonly message: string;
1114
1383
  } | undefined;
1384
+ readonly heldTaskCount?: number | undefined;
1385
+ readonly heldTasks?: readonly {
1386
+ readonly claimedAt: string;
1387
+ readonly id: string;
1388
+ readonly leaseExpiresAt: string;
1389
+ readonly state: "claimed";
1390
+ readonly title: string;
1391
+ }[] | undefined;
1392
+ readonly labels?: {
1393
+ readonly [x: string]: string;
1394
+ } | undefined;
1395
+ readonly latestTurnId?: string | undefined;
1396
+ readonly latestTurnState?: "completed" | "dispatching" | "failed" | "interrupted" | "outcome-unknown" | "queued" | "running" | undefined;
1397
+ readonly parentSessionId?: string | undefined;
1398
+ readonly permission?: "acceptEdits" | "bypassPermissions" | "default" | "dontAsk" | "never" | "on-request" | "plan" | "untrusted" | undefined;
1399
+ readonly prompt?: {
1400
+ readonly approvalId: string;
1401
+ readonly expiresAt: string;
1402
+ readonly kind: "command" | "file_change" | "question" | "tool";
1403
+ readonly options?: readonly {
1404
+ readonly label: string;
1405
+ readonly optionId: string;
1406
+ }[] | undefined;
1407
+ readonly summary?: string | undefined;
1408
+ } | undefined;
1409
+ readonly recovery?: {
1410
+ readonly code: string;
1411
+ readonly message: string;
1412
+ } | undefined;
1115
1413
  readonly schemaVersion: 4;
1414
+ readonly settledReason?: "failed" | "idle" | "stopped" | undefined;
1415
+ readonly status?: "approval" | "compacting" | "done" | "ended" | "error" | "idle" | "question" | "rate_limited" | "starting" | "unknown" | "working" | undefined;
1116
1416
  readonly title?: string | undefined;
1117
1417
  readonly worktree?: {
1118
1418
  readonly baseRef: string;
@@ -1126,8 +1426,490 @@ export declare const sessionArchiveResultSchema: import("../runtime-schema/runti
1126
1426
  readonly state: "active" | "archived" | "removed";
1127
1427
  } | undefined;
1128
1428
  };
1429
+ readonly summary?: string | undefined;
1430
+ readonly transcriptPath?: string | undefined;
1129
1431
  }>;
1130
1432
  export type SessionArchiveResult = InferRuntimeSchema<typeof sessionArchiveResultSchema>;
1433
+ export declare const sessionForkPreviewParametersSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
1434
+ readonly commandId: string;
1435
+ readonly sessionId: string;
1436
+ readonly turnId?: string | undefined;
1437
+ }>;
1438
+ export type SessionForkPreviewParameters = InferRuntimeSchema<typeof sessionForkPreviewParametersSchema>;
1439
+ export declare const sessionForkPreviewResultSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
1440
+ readonly inputDigest: string;
1441
+ readonly proof: string;
1442
+ readonly validUntil: string;
1443
+ readonly checkpoint?: string | undefined;
1444
+ readonly commandId: string;
1445
+ readonly expectedRevision: string;
1446
+ readonly sessionId: string;
1447
+ readonly turnId: string;
1448
+ readonly method: "session.fork.preview";
1449
+ readonly path: "context-handoff";
1450
+ }>;
1451
+ export type SessionForkPreviewResult = InferRuntimeSchema<typeof sessionForkPreviewResultSchema>;
1452
+ export declare const sessionForkConfirmParametersSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
1453
+ readonly inputDigest: string;
1454
+ readonly proof: string;
1455
+ readonly validUntil: string;
1456
+ readonly checkpoint?: string | undefined;
1457
+ readonly commandId: string;
1458
+ readonly expectedRevision: string;
1459
+ readonly sessionId: string;
1460
+ readonly turnId: string;
1461
+ }>;
1462
+ export type SessionForkConfirmParameters = InferRuntimeSchema<typeof sessionForkConfirmParametersSchema>;
1463
+ export declare const sessionForkConfirmResultSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
1464
+ readonly delivery: "duplicate" | "new";
1465
+ readonly handoff: string;
1466
+ readonly path: "context-handoff";
1467
+ readonly receipt: {
1468
+ readonly actorId: string;
1469
+ readonly aggregateRevision: string;
1470
+ readonly commandId: string;
1471
+ readonly createdAt: string;
1472
+ readonly eventCursor: string;
1473
+ readonly method: string;
1474
+ readonly proposedBy?: string | undefined;
1475
+ readonly receiptId: string;
1476
+ readonly schemaVersion: 1;
1477
+ readonly state: "succeeded";
1478
+ readonly target: {
1479
+ readonly id: string;
1480
+ readonly type: string;
1481
+ };
1482
+ readonly updatedAt: string;
1483
+ };
1484
+ readonly session: {
1485
+ readonly createdAt: string;
1486
+ readonly id: string;
1487
+ readonly projectId: string;
1488
+ readonly revision: string;
1489
+ readonly state: "failed" | "idle" | "interrupted" | "recovering" | "running" | "starting" | "stopped" | "stopping" | "waiting-approval";
1490
+ readonly updatedAt: string;
1491
+ readonly workspaceId: string;
1492
+ readonly workspaceRevision: string;
1493
+ readonly activity?: "idle" | "stopped" | "waiting_approval" | "working" | undefined;
1494
+ readonly agentDefinitionRef?: {
1495
+ readonly contentDigest: string;
1496
+ readonly key: string;
1497
+ readonly version: string;
1498
+ } | undefined;
1499
+ readonly containment?: "none" | undefined;
1500
+ readonly executor?: {
1501
+ readonly connectionId: string;
1502
+ readonly effort?: "high" | "low" | "max" | "medium" | "ultra" | "xhigh" | undefined;
1503
+ readonly kind: string;
1504
+ readonly model?: string | undefined;
1505
+ } | undefined;
1506
+ readonly failure?: {
1507
+ readonly code: string;
1508
+ readonly message: string;
1509
+ } | undefined;
1510
+ readonly heldTaskCount?: number | undefined;
1511
+ readonly heldTasks?: readonly {
1512
+ readonly claimedAt: string;
1513
+ readonly id: string;
1514
+ readonly leaseExpiresAt: string;
1515
+ readonly state: "claimed";
1516
+ readonly title: string;
1517
+ }[] | undefined;
1518
+ readonly labels?: {
1519
+ readonly [x: string]: string;
1520
+ } | undefined;
1521
+ readonly latestTurnId?: string | undefined;
1522
+ readonly latestTurnState?: "completed" | "dispatching" | "failed" | "interrupted" | "outcome-unknown" | "queued" | "running" | undefined;
1523
+ readonly parentSessionId?: string | undefined;
1524
+ readonly permission?: "acceptEdits" | "bypassPermissions" | "default" | "dontAsk" | "never" | "on-request" | "plan" | "untrusted" | undefined;
1525
+ readonly prompt?: {
1526
+ readonly approvalId: string;
1527
+ readonly expiresAt: string;
1528
+ readonly kind: "command" | "file_change" | "question" | "tool";
1529
+ readonly options?: readonly {
1530
+ readonly label: string;
1531
+ readonly optionId: string;
1532
+ }[] | undefined;
1533
+ readonly summary?: string | undefined;
1534
+ } | undefined;
1535
+ readonly recovery?: {
1536
+ readonly code: string;
1537
+ readonly message: string;
1538
+ } | undefined;
1539
+ readonly schemaVersion: 4;
1540
+ readonly settledReason?: "failed" | "idle" | "stopped" | undefined;
1541
+ readonly status?: "approval" | "compacting" | "done" | "ended" | "error" | "idle" | "question" | "rate_limited" | "starting" | "unknown" | "working" | undefined;
1542
+ readonly title?: string | undefined;
1543
+ readonly worktree?: {
1544
+ readonly baseRef: string;
1545
+ readonly baseRevision: string;
1546
+ readonly branch: string;
1547
+ readonly setup: "failed" | "none" | "pending" | "succeeded";
1548
+ readonly skills?: readonly {
1549
+ readonly digest: string;
1550
+ readonly name: string;
1551
+ }[] | undefined;
1552
+ readonly state: "active" | "archived" | "removed";
1553
+ } | undefined;
1554
+ };
1555
+ readonly sourceSessionId: string;
1556
+ readonly method: "session.fork.confirm";
1557
+ }>;
1558
+ export type SessionForkConfirmResult = InferRuntimeSchema<typeof sessionForkConfirmResultSchema>;
1559
+ export declare const sessionSetupPreviewParametersSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
1560
+ readonly commandId: string;
1561
+ readonly sessionId: string;
1562
+ }>;
1563
+ export type SessionSetupPreviewParameters = InferRuntimeSchema<typeof sessionSetupPreviewParametersSchema>;
1564
+ export declare const sessionSetupPreviewResultSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
1565
+ readonly inputDigest: string;
1566
+ readonly proof: string;
1567
+ readonly validUntil: string;
1568
+ readonly commandId: string;
1569
+ readonly expectedRevision: string;
1570
+ readonly sessionId: string;
1571
+ readonly setupDigest: string;
1572
+ readonly approved: boolean;
1573
+ readonly method: "session.setup.preview";
1574
+ readonly setup: {
1575
+ readonly command: readonly string[];
1576
+ readonly files: readonly {
1577
+ readonly path: string;
1578
+ readonly sha256: string;
1579
+ }[];
1580
+ };
1581
+ }>;
1582
+ export type SessionSetupPreviewResult = InferRuntimeSchema<typeof sessionSetupPreviewResultSchema>;
1583
+ export declare const sessionSetupConfirmParametersSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
1584
+ readonly inputDigest: string;
1585
+ readonly proof: string;
1586
+ readonly validUntil: string;
1587
+ readonly commandId: string;
1588
+ readonly expectedRevision: string;
1589
+ readonly sessionId: string;
1590
+ readonly setupDigest: string;
1591
+ }>;
1592
+ export type SessionSetupConfirmParameters = InferRuntimeSchema<typeof sessionSetupConfirmParametersSchema>;
1593
+ export declare const sessionSetupConfirmResultSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
1594
+ readonly delivery: "duplicate" | "new";
1595
+ readonly method: "session.setup.confirm";
1596
+ readonly receipt: {
1597
+ readonly actorId: string;
1598
+ readonly aggregateRevision: string;
1599
+ readonly commandId: string;
1600
+ readonly createdAt: string;
1601
+ readonly eventCursor: string;
1602
+ readonly method: string;
1603
+ readonly proposedBy?: string | undefined;
1604
+ readonly receiptId: string;
1605
+ readonly schemaVersion: 1;
1606
+ readonly state: "succeeded";
1607
+ readonly target: {
1608
+ readonly id: string;
1609
+ readonly type: string;
1610
+ };
1611
+ readonly updatedAt: string;
1612
+ };
1613
+ readonly sessionId: string;
1614
+ readonly setupDigest: string;
1615
+ }>;
1616
+ export type SessionSetupConfirmResult = InferRuntimeSchema<typeof sessionSetupConfirmResultSchema>;
1617
+ export declare const sessionSpawnPreviewParametersSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
1618
+ readonly commandId: string;
1619
+ readonly executor: string;
1620
+ readonly hostAuthority?: true | undefined;
1621
+ readonly parent: {
1622
+ readonly children: {
1623
+ readonly live: number;
1624
+ readonly total: number;
1625
+ };
1626
+ readonly depth: number;
1627
+ readonly hostAuthority?: true | undefined;
1628
+ readonly permission?: "acceptEdits" | "bypassPermissions" | "default" | "dontAsk" | "never" | "on-request" | "plan" | "untrusted" | undefined;
1629
+ readonly role: "orchestrator" | "worker";
1630
+ readonly sessionId: string;
1631
+ };
1632
+ readonly permission?: "acceptEdits" | "bypassPermissions" | "default" | "dontAsk" | "never" | "on-request" | "plan" | "untrusted" | undefined;
1633
+ readonly workspaceId: string;
1634
+ }>;
1635
+ export type SessionSpawnPreviewParameters = InferRuntimeSchema<typeof sessionSpawnPreviewParametersSchema>;
1636
+ export declare const sessionSpawnPreviewResultSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
1637
+ readonly inputDigest: string;
1638
+ readonly proof: string;
1639
+ readonly validUntil: string;
1640
+ readonly commandId: string;
1641
+ readonly executor: string;
1642
+ readonly hostAuthority?: true | undefined;
1643
+ readonly parent: {
1644
+ readonly children: {
1645
+ readonly live: number;
1646
+ readonly total: number;
1647
+ };
1648
+ readonly depth: number;
1649
+ readonly hostAuthority?: true | undefined;
1650
+ readonly permission?: "acceptEdits" | "bypassPermissions" | "default" | "dontAsk" | "never" | "on-request" | "plan" | "untrusted" | undefined;
1651
+ readonly role: "orchestrator" | "worker";
1652
+ readonly sessionId: string;
1653
+ };
1654
+ readonly permission?: "acceptEdits" | "bypassPermissions" | "default" | "dontAsk" | "never" | "on-request" | "plan" | "untrusted" | undefined;
1655
+ readonly workspaceId: string;
1656
+ readonly expectedRevision: "0";
1657
+ readonly method: "session.spawn.preview";
1658
+ }>;
1659
+ export type SessionSpawnPreviewResult = InferRuntimeSchema<typeof sessionSpawnPreviewResultSchema>;
1660
+ export declare const sessionSpawnConfirmParametersSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
1661
+ readonly inputDigest: string;
1662
+ readonly proof: string;
1663
+ readonly validUntil: string;
1664
+ readonly commandId: string;
1665
+ readonly executor: string;
1666
+ readonly hostAuthority?: true | undefined;
1667
+ readonly parent: {
1668
+ readonly children: {
1669
+ readonly live: number;
1670
+ readonly total: number;
1671
+ };
1672
+ readonly depth: number;
1673
+ readonly hostAuthority?: true | undefined;
1674
+ readonly permission?: "acceptEdits" | "bypassPermissions" | "default" | "dontAsk" | "never" | "on-request" | "plan" | "untrusted" | undefined;
1675
+ readonly role: "orchestrator" | "worker";
1676
+ readonly sessionId: string;
1677
+ };
1678
+ readonly permission?: "acceptEdits" | "bypassPermissions" | "default" | "dontAsk" | "never" | "on-request" | "plan" | "untrusted" | undefined;
1679
+ readonly workspaceId: string;
1680
+ readonly expectedRevision: "0";
1681
+ }>;
1682
+ export type SessionSpawnConfirmParameters = InferRuntimeSchema<typeof sessionSpawnConfirmParametersSchema>;
1683
+ export declare const sessionSpawnConfirmResultSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
1684
+ readonly delivery: "duplicate" | "new";
1685
+ readonly method: "session.spawn.confirm";
1686
+ readonly parentSessionId: string;
1687
+ readonly receipt: {
1688
+ readonly actorId: string;
1689
+ readonly aggregateRevision: string;
1690
+ readonly commandId: string;
1691
+ readonly createdAt: string;
1692
+ readonly eventCursor: string;
1693
+ readonly method: string;
1694
+ readonly proposedBy?: string | undefined;
1695
+ readonly receiptId: string;
1696
+ readonly schemaVersion: 1;
1697
+ readonly state: "succeeded";
1698
+ readonly target: {
1699
+ readonly id: string;
1700
+ readonly type: string;
1701
+ };
1702
+ readonly updatedAt: string;
1703
+ };
1704
+ readonly session: {
1705
+ readonly createdAt: string;
1706
+ readonly id: string;
1707
+ readonly projectId: string;
1708
+ readonly revision: string;
1709
+ readonly state: "failed" | "idle" | "interrupted" | "recovering" | "running" | "starting" | "stopped" | "stopping" | "waiting-approval";
1710
+ readonly updatedAt: string;
1711
+ readonly workspaceId: string;
1712
+ readonly workspaceRevision: string;
1713
+ readonly activity?: "idle" | "stopped" | "waiting_approval" | "working" | undefined;
1714
+ readonly agentDefinitionRef?: {
1715
+ readonly contentDigest: string;
1716
+ readonly key: string;
1717
+ readonly version: string;
1718
+ } | undefined;
1719
+ readonly containment?: "none" | undefined;
1720
+ readonly executor?: {
1721
+ readonly connectionId: string;
1722
+ readonly effort?: "high" | "low" | "max" | "medium" | "ultra" | "xhigh" | undefined;
1723
+ readonly kind: string;
1724
+ readonly model?: string | undefined;
1725
+ } | undefined;
1726
+ readonly failure?: {
1727
+ readonly code: string;
1728
+ readonly message: string;
1729
+ } | undefined;
1730
+ readonly heldTaskCount?: number | undefined;
1731
+ readonly heldTasks?: readonly {
1732
+ readonly claimedAt: string;
1733
+ readonly id: string;
1734
+ readonly leaseExpiresAt: string;
1735
+ readonly state: "claimed";
1736
+ readonly title: string;
1737
+ }[] | undefined;
1738
+ readonly labels?: {
1739
+ readonly [x: string]: string;
1740
+ } | undefined;
1741
+ readonly latestTurnId?: string | undefined;
1742
+ readonly latestTurnState?: "completed" | "dispatching" | "failed" | "interrupted" | "outcome-unknown" | "queued" | "running" | undefined;
1743
+ readonly parentSessionId?: string | undefined;
1744
+ readonly permission?: "acceptEdits" | "bypassPermissions" | "default" | "dontAsk" | "never" | "on-request" | "plan" | "untrusted" | undefined;
1745
+ readonly prompt?: {
1746
+ readonly approvalId: string;
1747
+ readonly expiresAt: string;
1748
+ readonly kind: "command" | "file_change" | "question" | "tool";
1749
+ readonly options?: readonly {
1750
+ readonly label: string;
1751
+ readonly optionId: string;
1752
+ }[] | undefined;
1753
+ readonly summary?: string | undefined;
1754
+ } | undefined;
1755
+ readonly recovery?: {
1756
+ readonly code: string;
1757
+ readonly message: string;
1758
+ } | undefined;
1759
+ readonly schemaVersion: 4;
1760
+ readonly settledReason?: "failed" | "idle" | "stopped" | undefined;
1761
+ readonly status?: "approval" | "compacting" | "done" | "ended" | "error" | "idle" | "question" | "rate_limited" | "starting" | "unknown" | "working" | undefined;
1762
+ readonly title?: string | undefined;
1763
+ readonly worktree?: {
1764
+ readonly baseRef: string;
1765
+ readonly baseRevision: string;
1766
+ readonly branch: string;
1767
+ readonly setup: "failed" | "none" | "pending" | "succeeded";
1768
+ readonly skills?: readonly {
1769
+ readonly digest: string;
1770
+ readonly name: string;
1771
+ }[] | undefined;
1772
+ readonly state: "active" | "archived" | "removed";
1773
+ } | undefined;
1774
+ };
1775
+ }>;
1776
+ export type SessionSpawnConfirmResult = InferRuntimeSchema<typeof sessionSpawnConfirmResultSchema>;
1777
+ export declare const sessionSwitchPreviewParametersSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
1778
+ readonly commandId: string;
1779
+ readonly sessionId: string;
1780
+ readonly target: {
1781
+ readonly connectionId?: string | undefined;
1782
+ readonly executor?: string | undefined;
1783
+ readonly model?: string | undefined;
1784
+ };
1785
+ }>;
1786
+ export type SessionSwitchPreviewParameters = InferRuntimeSchema<typeof sessionSwitchPreviewParametersSchema>;
1787
+ export declare const sessionSwitchPreviewResultSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
1788
+ readonly inputDigest: string;
1789
+ readonly proof: string;
1790
+ readonly validUntil: string;
1791
+ readonly commandId: string;
1792
+ readonly expectedRevision: string;
1793
+ readonly sessionId: string;
1794
+ readonly target: {
1795
+ readonly connectionId?: string | undefined;
1796
+ readonly executor?: string | undefined;
1797
+ readonly model?: string | undefined;
1798
+ };
1799
+ readonly method: "session.switch.preview";
1800
+ readonly path: "context-handoff";
1801
+ }>;
1802
+ export type SessionSwitchPreviewResult = InferRuntimeSchema<typeof sessionSwitchPreviewResultSchema>;
1803
+ export declare const sessionSwitchConfirmParametersSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
1804
+ readonly inputDigest: string;
1805
+ readonly proof: string;
1806
+ readonly validUntil: string;
1807
+ readonly commandId: string;
1808
+ readonly expectedRevision: string;
1809
+ readonly sessionId: string;
1810
+ readonly target: {
1811
+ readonly connectionId?: string | undefined;
1812
+ readonly executor?: string | undefined;
1813
+ readonly model?: string | undefined;
1814
+ };
1815
+ }>;
1816
+ export type SessionSwitchConfirmParameters = InferRuntimeSchema<typeof sessionSwitchConfirmParametersSchema>;
1817
+ export declare const sessionSwitchConfirmResultSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
1818
+ readonly delivery: "duplicate" | "new";
1819
+ readonly handoff: string;
1820
+ readonly path: "context-handoff";
1821
+ readonly receipt: {
1822
+ readonly actorId: string;
1823
+ readonly aggregateRevision: string;
1824
+ readonly commandId: string;
1825
+ readonly createdAt: string;
1826
+ readonly eventCursor: string;
1827
+ readonly method: string;
1828
+ readonly proposedBy?: string | undefined;
1829
+ readonly receiptId: string;
1830
+ readonly schemaVersion: 1;
1831
+ readonly state: "succeeded";
1832
+ readonly target: {
1833
+ readonly id: string;
1834
+ readonly type: string;
1835
+ };
1836
+ readonly updatedAt: string;
1837
+ };
1838
+ readonly session: {
1839
+ readonly createdAt: string;
1840
+ readonly id: string;
1841
+ readonly projectId: string;
1842
+ readonly revision: string;
1843
+ readonly state: "failed" | "idle" | "interrupted" | "recovering" | "running" | "starting" | "stopped" | "stopping" | "waiting-approval";
1844
+ readonly updatedAt: string;
1845
+ readonly workspaceId: string;
1846
+ readonly workspaceRevision: string;
1847
+ readonly activity?: "idle" | "stopped" | "waiting_approval" | "working" | undefined;
1848
+ readonly agentDefinitionRef?: {
1849
+ readonly contentDigest: string;
1850
+ readonly key: string;
1851
+ readonly version: string;
1852
+ } | undefined;
1853
+ readonly containment?: "none" | undefined;
1854
+ readonly executor?: {
1855
+ readonly connectionId: string;
1856
+ readonly effort?: "high" | "low" | "max" | "medium" | "ultra" | "xhigh" | undefined;
1857
+ readonly kind: string;
1858
+ readonly model?: string | undefined;
1859
+ } | undefined;
1860
+ readonly failure?: {
1861
+ readonly code: string;
1862
+ readonly message: string;
1863
+ } | undefined;
1864
+ readonly heldTaskCount?: number | undefined;
1865
+ readonly heldTasks?: readonly {
1866
+ readonly claimedAt: string;
1867
+ readonly id: string;
1868
+ readonly leaseExpiresAt: string;
1869
+ readonly state: "claimed";
1870
+ readonly title: string;
1871
+ }[] | undefined;
1872
+ readonly labels?: {
1873
+ readonly [x: string]: string;
1874
+ } | undefined;
1875
+ readonly latestTurnId?: string | undefined;
1876
+ readonly latestTurnState?: "completed" | "dispatching" | "failed" | "interrupted" | "outcome-unknown" | "queued" | "running" | undefined;
1877
+ readonly parentSessionId?: string | undefined;
1878
+ readonly permission?: "acceptEdits" | "bypassPermissions" | "default" | "dontAsk" | "never" | "on-request" | "plan" | "untrusted" | undefined;
1879
+ readonly prompt?: {
1880
+ readonly approvalId: string;
1881
+ readonly expiresAt: string;
1882
+ readonly kind: "command" | "file_change" | "question" | "tool";
1883
+ readonly options?: readonly {
1884
+ readonly label: string;
1885
+ readonly optionId: string;
1886
+ }[] | undefined;
1887
+ readonly summary?: string | undefined;
1888
+ } | undefined;
1889
+ readonly recovery?: {
1890
+ readonly code: string;
1891
+ readonly message: string;
1892
+ } | undefined;
1893
+ readonly schemaVersion: 4;
1894
+ readonly settledReason?: "failed" | "idle" | "stopped" | undefined;
1895
+ readonly status?: "approval" | "compacting" | "done" | "ended" | "error" | "idle" | "question" | "rate_limited" | "starting" | "unknown" | "working" | undefined;
1896
+ readonly title?: string | undefined;
1897
+ readonly worktree?: {
1898
+ readonly baseRef: string;
1899
+ readonly baseRevision: string;
1900
+ readonly branch: string;
1901
+ readonly setup: "failed" | "none" | "pending" | "succeeded";
1902
+ readonly skills?: readonly {
1903
+ readonly digest: string;
1904
+ readonly name: string;
1905
+ }[] | undefined;
1906
+ readonly state: "active" | "archived" | "removed";
1907
+ } | undefined;
1908
+ };
1909
+ readonly sourceSessionId: string;
1910
+ readonly method: "session.switch.confirm";
1911
+ }>;
1912
+ export type SessionSwitchConfirmResult = InferRuntimeSchema<typeof sessionSwitchConfirmResultSchema>;
1131
1913
  export declare const sessionRenameParametersSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
1132
1914
  readonly commandId: string;
1133
1915
  readonly expectedRevision: string;
@@ -1145,6 +1927,7 @@ export declare const sessionRenameResultSchema: import("../runtime-schema/runtim
1145
1927
  readonly createdAt: string;
1146
1928
  readonly eventCursor: string;
1147
1929
  readonly method: string;
1930
+ readonly proposedBy?: string | undefined;
1148
1931
  readonly receiptId: string;
1149
1932
  readonly schemaVersion: 1;
1150
1933
  readonly state: "succeeded";
@@ -1163,22 +1946,55 @@ export declare const sessionRenameResultSchema: import("../runtime-schema/runtim
1163
1946
  readonly updatedAt: string;
1164
1947
  readonly workspaceId: string;
1165
1948
  readonly workspaceRevision: string;
1949
+ readonly activity?: "idle" | "stopped" | "waiting_approval" | "working" | undefined;
1166
1950
  readonly agentDefinitionRef?: {
1167
1951
  readonly contentDigest: string;
1168
1952
  readonly key: string;
1169
1953
  readonly version: string;
1170
1954
  } | undefined;
1955
+ readonly containment?: "none" | undefined;
1171
1956
  readonly executor?: {
1172
1957
  readonly connectionId: string;
1173
1958
  readonly effort?: "high" | "low" | "max" | "medium" | "ultra" | "xhigh" | undefined;
1174
- readonly kind: "claude-code" | "codex-cli";
1959
+ readonly kind: string;
1175
1960
  readonly model?: string | undefined;
1176
1961
  } | undefined;
1177
1962
  readonly failure?: {
1178
1963
  readonly code: string;
1179
1964
  readonly message: string;
1180
1965
  } | undefined;
1966
+ readonly heldTaskCount?: number | undefined;
1967
+ readonly heldTasks?: readonly {
1968
+ readonly claimedAt: string;
1969
+ readonly id: string;
1970
+ readonly leaseExpiresAt: string;
1971
+ readonly state: "claimed";
1972
+ readonly title: string;
1973
+ }[] | undefined;
1974
+ readonly labels?: {
1975
+ readonly [x: string]: string;
1976
+ } | undefined;
1977
+ readonly latestTurnId?: string | undefined;
1978
+ readonly latestTurnState?: "completed" | "dispatching" | "failed" | "interrupted" | "outcome-unknown" | "queued" | "running" | undefined;
1979
+ readonly parentSessionId?: string | undefined;
1980
+ readonly permission?: "acceptEdits" | "bypassPermissions" | "default" | "dontAsk" | "never" | "on-request" | "plan" | "untrusted" | undefined;
1981
+ readonly prompt?: {
1982
+ readonly approvalId: string;
1983
+ readonly expiresAt: string;
1984
+ readonly kind: "command" | "file_change" | "question" | "tool";
1985
+ readonly options?: readonly {
1986
+ readonly label: string;
1987
+ readonly optionId: string;
1988
+ }[] | undefined;
1989
+ readonly summary?: string | undefined;
1990
+ } | undefined;
1991
+ readonly recovery?: {
1992
+ readonly code: string;
1993
+ readonly message: string;
1994
+ } | undefined;
1181
1995
  readonly schemaVersion: 4;
1996
+ readonly settledReason?: "failed" | "idle" | "stopped" | undefined;
1997
+ readonly status?: "approval" | "compacting" | "done" | "ended" | "error" | "idle" | "question" | "rate_limited" | "starting" | "unknown" | "working" | undefined;
1182
1998
  readonly title?: string | undefined;
1183
1999
  readonly worktree?: {
1184
2000
  readonly baseRef: string;
@@ -1194,4 +2010,122 @@ export declare const sessionRenameResultSchema: import("../runtime-schema/runtim
1194
2010
  };
1195
2011
  }>;
1196
2012
  export type SessionRenameResult = InferRuntimeSchema<typeof sessionRenameResultSchema>;
2013
+ export declare const sessionSpawnCapsRecordSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
2014
+ readonly caps: {
2015
+ readonly concurrency: number;
2016
+ readonly depth: number;
2017
+ readonly fanOut: number;
2018
+ };
2019
+ readonly revision: string;
2020
+ readonly source: "default" | "node";
2021
+ readonly updatedAt?: string | undefined;
2022
+ }>;
2023
+ export declare const sessionSpawnCapsShowParametersSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
2024
+ readonly sessionId?: string | undefined;
2025
+ }>;
2026
+ export declare const sessionSpawnCapsShowResultSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
2027
+ readonly caps: {
2028
+ readonly caps: {
2029
+ readonly concurrency: number;
2030
+ readonly depth: number;
2031
+ readonly fanOut: number;
2032
+ };
2033
+ readonly revision: string;
2034
+ readonly source: "default" | "node";
2035
+ readonly updatedAt?: string | undefined;
2036
+ };
2037
+ readonly method: "session.spawn-caps.show";
2038
+ readonly standing?: {
2039
+ readonly children: {
2040
+ readonly live: number;
2041
+ readonly total: number;
2042
+ };
2043
+ readonly depth?: number | undefined;
2044
+ readonly role?: "orchestrator" | "worker" | undefined;
2045
+ readonly sessionId: string;
2046
+ } | undefined;
2047
+ }>;
2048
+ export declare const sessionSpawnCapsPreviewParametersSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
2049
+ readonly caps: {
2050
+ readonly concurrency: number;
2051
+ readonly depth: number;
2052
+ readonly fanOut: number;
2053
+ };
2054
+ readonly commandId: string;
2055
+ readonly expectedRevision: string;
2056
+ }>;
2057
+ export declare const sessionSpawnCapsPreviewResultSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
2058
+ readonly caps: {
2059
+ readonly concurrency: number;
2060
+ readonly depth: number;
2061
+ readonly fanOut: number;
2062
+ };
2063
+ readonly commandId: string;
2064
+ readonly expectedRevision: string;
2065
+ readonly inputDigest: string;
2066
+ readonly proof: string;
2067
+ readonly validUntil: string;
2068
+ readonly current: {
2069
+ readonly caps: {
2070
+ readonly concurrency: number;
2071
+ readonly depth: number;
2072
+ readonly fanOut: number;
2073
+ };
2074
+ readonly revision: string;
2075
+ readonly source: "default" | "node";
2076
+ readonly updatedAt?: string | undefined;
2077
+ };
2078
+ readonly method: "session.spawn-caps.preview";
2079
+ }>;
2080
+ export declare const sessionSpawnCapsConfirmParametersSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
2081
+ readonly caps: {
2082
+ readonly concurrency: number;
2083
+ readonly depth: number;
2084
+ readonly fanOut: number;
2085
+ };
2086
+ readonly commandId: string;
2087
+ readonly expectedRevision: string;
2088
+ readonly inputDigest: string;
2089
+ readonly proof: string;
2090
+ readonly validUntil: string;
2091
+ }>;
2092
+ export declare const sessionSpawnCapsConfirmResultSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
2093
+ readonly caps: {
2094
+ readonly caps: {
2095
+ readonly concurrency: number;
2096
+ readonly depth: number;
2097
+ readonly fanOut: number;
2098
+ };
2099
+ readonly revision: string;
2100
+ readonly source: "default" | "node";
2101
+ readonly updatedAt?: string | undefined;
2102
+ };
2103
+ readonly delivery: "duplicate" | "new";
2104
+ readonly method: "session.spawn-caps.confirm";
2105
+ readonly receipt: {
2106
+ readonly actorId: string;
2107
+ readonly aggregateRevision: string;
2108
+ readonly commandId: string;
2109
+ readonly createdAt: string;
2110
+ readonly eventCursor: string;
2111
+ readonly method: string;
2112
+ readonly proposedBy?: string | undefined;
2113
+ readonly receiptId: string;
2114
+ readonly schemaVersion: 1;
2115
+ readonly state: "succeeded";
2116
+ readonly target: {
2117
+ readonly id: string;
2118
+ readonly type: string;
2119
+ };
2120
+ readonly updatedAt: string;
2121
+ };
2122
+ }>;
2123
+ export type SessionSpawnCapsRecord = InferRuntimeSchema<typeof sessionSpawnCapsRecordSchema>;
2124
+ export type SessionSpawnCaps = SessionSpawnCapsRecord["caps"];
2125
+ export type SessionSpawnCapsShowParameters = InferRuntimeSchema<typeof sessionSpawnCapsShowParametersSchema>;
2126
+ export type SessionSpawnCapsShowResult = InferRuntimeSchema<typeof sessionSpawnCapsShowResultSchema>;
2127
+ export type SessionSpawnCapsPreviewParameters = InferRuntimeSchema<typeof sessionSpawnCapsPreviewParametersSchema>;
2128
+ export type SessionSpawnCapsPreviewResult = InferRuntimeSchema<typeof sessionSpawnCapsPreviewResultSchema>;
2129
+ export type SessionSpawnCapsConfirmParameters = InferRuntimeSchema<typeof sessionSpawnCapsConfirmParametersSchema>;
2130
+ export type SessionSpawnCapsConfirmResult = InferRuntimeSchema<typeof sessionSpawnCapsConfirmResultSchema>;
1197
2131
  //# sourceMappingURL=contract.d.ts.map