@maiaos/protocol 0.1.0-canary.6 → 0.1.0-canary.60

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 (289) hide show
  1. package/README.md +7 -6
  2. package/dist/agent/definition.d.ts +2 -2
  3. package/dist/agent/worker-operation.d.ts +20 -0
  4. package/dist/agent/worker-operation.d.ts.map +1 -1
  5. package/dist/agents/contract.d.ts +25 -0
  6. package/dist/agents/contract.d.ts.map +1 -1
  7. package/dist/agents/contract.js +3 -1
  8. package/dist/agents/contract.js.map +1 -1
  9. package/dist/agents/effect-schema.d.ts +45 -0
  10. package/dist/agents/effect-schema.d.ts.map +1 -1
  11. package/dist/agents/effect-schema.js +38 -0
  12. package/dist/agents/effect-schema.js.map +1 -1
  13. package/dist/agents/feature.d.ts +25 -0
  14. package/dist/agents/feature.d.ts.map +1 -1
  15. package/dist/agents/feature.js +23 -0
  16. package/dist/agents/feature.js.map +1 -1
  17. package/dist/agents/index.d.ts +1 -1
  18. package/dist/agents/index.d.ts.map +1 -1
  19. package/dist/agents/index.js +1 -1
  20. package/dist/agents/index.js.map +1 -1
  21. package/dist/approval/contract.d.ts +15 -0
  22. package/dist/approval/contract.d.ts.map +1 -1
  23. package/dist/approval/contract.js +2 -1
  24. package/dist/approval/contract.js.map +1 -1
  25. package/dist/approval/effect-schema.d.ts +1 -1
  26. package/dist/approval/effect-schema.d.ts.map +1 -1
  27. package/dist/approval/effect-schema.js +1 -1
  28. package/dist/approval/effect-schema.js.map +1 -1
  29. package/dist/approval/feature.d.ts +6 -2
  30. package/dist/approval/feature.d.ts.map +1 -1
  31. package/dist/approval/feature.js +6 -2
  32. package/dist/approval/feature.js.map +1 -1
  33. package/dist/approval/index.d.ts +1 -1
  34. package/dist/approval/index.d.ts.map +1 -1
  35. package/dist/approval/index.js +1 -1
  36. package/dist/approval/index.js.map +1 -1
  37. package/dist/approval/request-effect-schema.d.ts +23 -0
  38. package/dist/approval/request-effect-schema.d.ts.map +1 -1
  39. package/dist/approval/request-effect-schema.js +19 -2
  40. package/dist/approval/request-effect-schema.js.map +1 -1
  41. package/dist/approval/result-effect-schema.d.ts +6 -0
  42. package/dist/approval/result-effect-schema.d.ts.map +1 -1
  43. package/dist/command-receipt/contract.d.ts +1 -0
  44. package/dist/command-receipt/contract.d.ts.map +1 -1
  45. package/dist/command-receipt/effect-schema.d.ts +2 -0
  46. package/dist/command-receipt/effect-schema.d.ts.map +1 -1
  47. package/dist/command-receipt/effect-schema.js +2 -0
  48. package/dist/command-receipt/effect-schema.js.map +1 -1
  49. package/dist/configuration/configuration.d.ts +2 -0
  50. package/dist/configuration/configuration.d.ts.map +1 -1
  51. package/dist/configuration/configuration.js +11 -3
  52. package/dist/configuration/configuration.js.map +1 -1
  53. package/dist/configuration/index.d.ts +1 -1
  54. package/dist/configuration/index.d.ts.map +1 -1
  55. package/dist/configuration/index.js +1 -1
  56. package/dist/configuration/index.js.map +1 -1
  57. package/dist/connection/request-effect-schema.d.ts +1 -1
  58. package/dist/connection/request-effect-schema.js +1 -1
  59. package/dist/coordinator-tool/index.d.ts +1 -1
  60. package/dist/coordinator-tool/index.d.ts.map +1 -1
  61. package/dist/coordinator-tool/index.js +1 -1
  62. package/dist/coordinator-tool/index.js.map +1 -1
  63. package/dist/coordinator-tool/input-schema.d.ts +0 -7
  64. package/dist/coordinator-tool/input-schema.d.ts.map +1 -1
  65. package/dist/coordinator-tool/input-schema.js +0 -38
  66. package/dist/coordinator-tool/input-schema.js.map +1 -1
  67. package/dist/coordinator-tool/registry.d.ts +5 -0
  68. package/dist/coordinator-tool/registry.d.ts.map +1 -1
  69. package/dist/coordinator-tool/registry.js +23 -2
  70. package/dist/coordinator-tool/registry.js.map +1 -1
  71. package/dist/discovery/contract.d.ts +52 -0
  72. package/dist/discovery/contract.d.ts.map +1 -1
  73. package/dist/discovery/contract.js +3 -1
  74. package/dist/discovery/contract.js.map +1 -1
  75. package/dist/discovery/effect-schema.d.ts +125 -0
  76. package/dist/discovery/effect-schema.d.ts.map +1 -1
  77. package/dist/discovery/effect-schema.js +70 -2
  78. package/dist/discovery/effect-schema.js.map +1 -1
  79. package/dist/discovery/feature.d.ts +1 -1
  80. package/dist/discovery/feature.d.ts.map +1 -1
  81. package/dist/discovery/feature.js +1 -1
  82. package/dist/discovery/feature.js.map +1 -1
  83. package/dist/discovery/index.d.ts +1 -1
  84. package/dist/discovery/index.d.ts.map +1 -1
  85. package/dist/discovery/index.js +1 -1
  86. package/dist/discovery/index.js.map +1 -1
  87. package/dist/event/contract.d.ts +47 -0
  88. package/dist/event/contract.d.ts.map +1 -1
  89. package/dist/event/contract.js +3 -0
  90. package/dist/event/contract.js.map +1 -1
  91. package/dist/event/effect-schema.d.ts +3 -1
  92. package/dist/event/effect-schema.d.ts.map +1 -1
  93. package/dist/event/effect-schema.js +3 -1
  94. package/dist/event/effect-schema.js.map +1 -1
  95. package/dist/event/envelope-effect-schema.d.ts +2 -0
  96. package/dist/event/envelope-effect-schema.d.ts.map +1 -1
  97. package/dist/event/envelope-effect-schema.js +2 -0
  98. package/dist/event/envelope-effect-schema.js.map +1 -1
  99. package/dist/event/feature.d.ts +30 -0
  100. package/dist/event/feature.d.ts.map +1 -0
  101. package/dist/event/feature.js +34 -0
  102. package/dist/event/feature.js.map +1 -0
  103. package/dist/event/format.d.ts +6 -0
  104. package/dist/event/format.d.ts.map +1 -1
  105. package/dist/event/format.js +6 -0
  106. package/dist/event/format.js.map +1 -1
  107. package/dist/event/index.d.ts +4 -1
  108. package/dist/event/index.d.ts.map +1 -1
  109. package/dist/event/index.js +4 -1
  110. package/dist/event/index.js.map +1 -1
  111. package/dist/event/lifecycle/effect-schema.d.ts +20 -0
  112. package/dist/event/lifecycle/effect-schema.d.ts.map +1 -0
  113. package/dist/event/lifecycle/effect-schema.js +23 -0
  114. package/dist/event/lifecycle/effect-schema.js.map +1 -0
  115. package/dist/event/lifecycle/index.d.ts +2 -0
  116. package/dist/event/lifecycle/index.d.ts.map +1 -0
  117. package/dist/event/lifecycle/index.js +2 -0
  118. package/dist/event/lifecycle/index.js.map +1 -0
  119. package/dist/event/lifecycle/schema.d.ts +14 -0
  120. package/dist/event/lifecycle/schema.d.ts.map +1 -0
  121. package/dist/event/lifecycle/schema.js +6 -0
  122. package/dist/event/lifecycle/schema.js.map +1 -0
  123. package/dist/event/read-effect-schema.d.ts +105 -0
  124. package/dist/event/read-effect-schema.d.ts.map +1 -0
  125. package/dist/event/read-effect-schema.js +64 -0
  126. package/dist/event/read-effect-schema.js.map +1 -0
  127. package/dist/event/registry.d.ts +5 -0
  128. package/dist/event/registry.d.ts.map +1 -1
  129. package/dist/event/registry.js +91 -6
  130. package/dist/event/registry.js.map +1 -1
  131. package/dist/event/session-activity-effect-schema.d.ts +36 -0
  132. package/dist/event/session-activity-effect-schema.d.ts.map +1 -0
  133. package/dist/event/session-activity-effect-schema.js +58 -0
  134. package/dist/event/session-activity-effect-schema.js.map +1 -0
  135. package/dist/event/session-activity.d.ts +30 -0
  136. package/dist/event/session-activity.d.ts.map +1 -0
  137. package/dist/event/session-activity.js +19 -0
  138. package/dist/event/session-activity.js.map +1 -0
  139. package/dist/event/update-effect-schema.d.ts +20 -0
  140. package/dist/event/update-effect-schema.d.ts.map +1 -0
  141. package/dist/event/update-effect-schema.js +29 -0
  142. package/dist/event/update-effect-schema.js.map +1 -0
  143. package/dist/event/update.d.ts +16 -0
  144. package/dist/event/update.d.ts.map +1 -0
  145. package/dist/event/update.js +6 -0
  146. package/dist/event/update.js.map +1 -0
  147. package/dist/event-stream/contract.d.ts +120 -0
  148. package/dist/event-stream/contract.d.ts.map +1 -0
  149. package/dist/event-stream/contract.js +5 -0
  150. package/dist/event-stream/contract.js.map +1 -0
  151. package/dist/event-stream/effect-schema.d.ts +117 -0
  152. package/dist/event-stream/effect-schema.d.ts.map +1 -0
  153. package/dist/event-stream/effect-schema.js +90 -0
  154. package/dist/event-stream/effect-schema.js.map +1 -0
  155. package/dist/event-stream/index.d.ts +2 -0
  156. package/dist/event-stream/index.d.ts.map +1 -0
  157. package/dist/event-stream/index.js +2 -0
  158. package/dist/event-stream/index.js.map +1 -0
  159. package/dist/feature/registry.d.ts +5 -1
  160. package/dist/feature/registry.d.ts.map +1 -1
  161. package/dist/feature/registry.js +4 -0
  162. package/dist/feature/registry.js.map +1 -1
  163. package/dist/index.d.ts +10 -8
  164. package/dist/index.d.ts.map +1 -1
  165. package/dist/index.js +10 -8
  166. package/dist/index.js.map +1 -1
  167. package/dist/local-node/contract.d.ts +22 -9
  168. package/dist/local-node/contract.d.ts.map +1 -1
  169. package/dist/local-node/contract.js.map +1 -1
  170. package/dist/local-node/effect-schema.d.ts +278 -10
  171. package/dist/local-node/effect-schema.d.ts.map +1 -1
  172. package/dist/local-node/effect-schema.js +35 -6
  173. package/dist/local-node/effect-schema.js.map +1 -1
  174. package/dist/local-node/node-api/methods.d.ts +11 -4
  175. package/dist/local-node/node-api/methods.d.ts.map +1 -1
  176. package/dist/local-node/node-api/methods.js +15 -0
  177. package/dist/local-node/node-api/methods.js.map +1 -1
  178. package/dist/local-node/receipt-list.d.ts +1 -1
  179. package/dist/local-node/receipt-list.d.ts.map +1 -1
  180. package/dist/local-node/receipt-list.js +1 -0
  181. package/dist/local-node/receipt-list.js.map +1 -1
  182. package/dist/presentation/contract.d.ts +25 -0
  183. package/dist/presentation/contract.d.ts.map +1 -1
  184. package/dist/presentation/effect-schema.d.ts +21 -0
  185. package/dist/presentation/effect-schema.d.ts.map +1 -1
  186. package/dist/presentation/session-list-effect-schema.d.ts +21 -0
  187. package/dist/presentation/session-list-effect-schema.d.ts.map +1 -1
  188. package/dist/release/version.d.ts +2 -2
  189. package/dist/release/version.d.ts.map +1 -1
  190. package/dist/release/version.js +2 -2
  191. package/dist/release/version.js.map +1 -1
  192. package/dist/remote-node/bridge-effect-schema.js +2 -2
  193. package/dist/run-ledger/contract.d.ts +2 -0
  194. package/dist/run-ledger/contract.d.ts.map +1 -1
  195. package/dist/run-ledger/result-effect-schema.d.ts +4 -0
  196. package/dist/run-ledger/result-effect-schema.d.ts.map +1 -1
  197. package/dist/runtime-schema/effect-json-schema.d.ts +9 -0
  198. package/dist/runtime-schema/effect-json-schema.d.ts.map +1 -0
  199. package/dist/runtime-schema/effect-json-schema.js +41 -0
  200. package/dist/runtime-schema/effect-json-schema.js.map +1 -0
  201. package/dist/runtime-schema/effect-schema.d.ts +1 -0
  202. package/dist/runtime-schema/effect-schema.d.ts.map +1 -1
  203. package/dist/runtime-schema/effect-schema.js +1 -0
  204. package/dist/runtime-schema/effect-schema.js.map +1 -1
  205. package/dist/session/agent-permission-contract.d.ts +5 -5
  206. package/dist/session/agent-permission-effect-schema.d.ts +9 -9
  207. package/dist/session/contract.d.ts +255 -1
  208. package/dist/session/contract.d.ts.map +1 -1
  209. package/dist/session/contract.js +3 -1
  210. package/dist/session/contract.js.map +1 -1
  211. package/dist/session/effect-schema.d.ts +982 -4
  212. package/dist/session/effect-schema.d.ts.map +1 -1
  213. package/dist/session/effect-schema.js +136 -10
  214. package/dist/session/effect-schema.js.map +1 -1
  215. package/dist/session/feature.d.ts +26 -1
  216. package/dist/session/feature.d.ts.map +1 -1
  217. package/dist/session/feature.js +24 -1
  218. package/dist/session/feature.js.map +1 -1
  219. package/dist/session/index.d.ts +2 -2
  220. package/dist/session/index.d.ts.map +1 -1
  221. package/dist/session/index.js +2 -2
  222. package/dist/session/index.js.map +1 -1
  223. package/dist/session/policy.d.ts +46 -0
  224. package/dist/session/policy.d.ts.map +1 -1
  225. package/dist/session/policy.js +52 -0
  226. package/dist/session/policy.js.map +1 -1
  227. package/dist/session/stop-resume-contract.d.ts +40 -0
  228. package/dist/session/stop-resume-contract.d.ts.map +1 -1
  229. package/dist/session/worktree-effect-schema.d.ts +18 -0
  230. package/dist/session/worktree-effect-schema.d.ts.map +1 -1
  231. package/dist/session/worktree-effect-schema.js +30 -1
  232. package/dist/session/worktree-effect-schema.js.map +1 -1
  233. package/dist/session-guard/contract.d.ts +30 -1
  234. package/dist/session-guard/contract.d.ts.map +1 -1
  235. package/dist/session-guard/contract.js +10 -2
  236. package/dist/session-guard/contract.js.map +1 -1
  237. package/dist/session-guard/index.d.ts +1 -1
  238. package/dist/session-guard/index.d.ts.map +1 -1
  239. package/dist/session-guard/index.js +1 -1
  240. package/dist/session-guard/index.js.map +1 -1
  241. package/dist/session-guard/request-effect-schema.d.ts +33 -0
  242. package/dist/session-guard/request-effect-schema.d.ts.map +1 -1
  243. package/dist/session-guard/request-effect-schema.js +22 -0
  244. package/dist/session-guard/request-effect-schema.js.map +1 -1
  245. package/dist/session-guard/result-effect-schema.d.ts +26 -0
  246. package/dist/session-guard/result-effect-schema.d.ts.map +1 -1
  247. package/dist/session-guard/result-effect-schema.js +3 -1
  248. package/dist/session-guard/result-effect-schema.js.map +1 -1
  249. package/dist/terminal/contract.d.ts +1 -0
  250. package/dist/terminal/contract.d.ts.map +1 -1
  251. package/dist/terminal/effect-schema.d.ts +4 -0
  252. package/dist/terminal/effect-schema.d.ts.map +1 -1
  253. package/dist/terminal/effect-schema.js +2 -0
  254. package/dist/terminal/effect-schema.js.map +1 -1
  255. package/dist/turn/contract.d.ts +12 -0
  256. package/dist/turn/contract.d.ts.map +1 -1
  257. package/dist/turn/effect-schema.d.ts +43 -0
  258. package/dist/turn/effect-schema.d.ts.map +1 -1
  259. package/dist/turn/effect-schema.js +16 -9
  260. package/dist/turn/effect-schema.js.map +1 -1
  261. package/dist/voice/contract.d.ts +6 -6
  262. package/dist/voice/effect-schema.d.ts +9 -9
  263. package/dist/voice/effect-schema.d.ts.map +1 -1
  264. package/dist/voice/effect-schema.js +3 -1
  265. package/dist/voice/effect-schema.js.map +1 -1
  266. package/dist/voice/feature.d.ts +2 -2
  267. package/dist/voice/orchestrator-system-prompt.d.ts +2 -2
  268. package/dist/voice/orchestrator-system-prompt.js +2 -2
  269. package/dist/webhooks/contract.d.ts +342 -0
  270. package/dist/webhooks/contract.d.ts.map +1 -0
  271. package/dist/webhooks/contract.js +25 -0
  272. package/dist/webhooks/contract.js.map +1 -0
  273. package/dist/webhooks/effect-schema.d.ts +536 -0
  274. package/dist/webhooks/effect-schema.d.ts.map +1 -0
  275. package/dist/webhooks/effect-schema.js +177 -0
  276. package/dist/webhooks/effect-schema.js.map +1 -0
  277. package/dist/webhooks/feature.d.ts +105 -0
  278. package/dist/webhooks/feature.d.ts.map +1 -0
  279. package/dist/webhooks/feature.js +103 -0
  280. package/dist/webhooks/feature.js.map +1 -0
  281. package/dist/webhooks/hook-effect-schema.d.ts +38 -0
  282. package/dist/webhooks/hook-effect-schema.d.ts.map +1 -0
  283. package/dist/webhooks/hook-effect-schema.js +64 -0
  284. package/dist/webhooks/hook-effect-schema.js.map +1 -0
  285. package/dist/webhooks/index.d.ts +3 -0
  286. package/dist/webhooks/index.d.ts.map +1 -0
  287. package/dist/webhooks/index.js +3 -0
  288. package/dist/webhooks/index.js.map +1 -0
  289. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"input-schema.js","sourceRoot":"","sources":["../../src/coordinator-tool/input-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,mCAAmC,EAAE,MAAM,gCAAgC,CAAC;AAErF,MAAM,iBAAiB,GAAG,CACxB,MAAe,EACf,KAA8B,EACxB,EAAE;IACR,IACE,SAAS,CAAC,WAAW,CAAC,MAAM,EAAE,SAAS,CAAC;QACxC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,EAC7B,CAAC;QACD,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAe,EAAE,EAAE;YACzC,iBAAiB,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QACnC,CAAC,CAAC,CAAC;QACH,OAAO;IACT,CAAC;IACD,IAAI,CAAC,S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,MAAM,CAAC,UAAU,CAAC;QAElC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC;AACxD,CAAC,CAAC;AAEF,6EAA6E;AAC7E,MAAM,CAAC,MAAM,8BAA8B,GAAG,GAG5C,EAAE;IACF,MAAM,KAAK,GAAG,IAAI,GAAG,EAAsB,CAAC;IAC5C,iBAAiB,CAAC,mCAAmC,EAAE,KAAK,CAAC,CAAC;IAC9D,OAAO,KAAK,CAAC;AACf,CAAC,CAAC"}
@@ -20,6 +20,11 @@ export type CoordinatorToolDefinition = {
20
20
  export declare const coordinatorToolName: (operation: string) => string;
21
21
  /** Tool definitions with input schemas generated from the protocol schemas. */
22
22
  export declare const coordinatorToolDefinitions: () => readonly CoordinatorToolDefinition[];
23
+ /**
24
+ * The draft-07 JSON Schema of every Node operation's parameters, by operation
25
+ * ID, generated from the request schemas the Node validates.
26
+ */
27
+ export declare const operationParametersJsonSchemas: () => Readonly<Record<string, Readonly<Record<string, unknown>>>>;
23
28
  /** A worker's MCP projection of the existing Session role, with no new authority. */
24
29
  export type WorkerToolDefinition = Omit<CoordinatorToolDefinition, "operation"> & {
25
30
  readonly operation: LocalNodeRequestMethod;
@@ -1 +1 @@
1
- {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/coordinator-tool/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,8BAA8B,EACpC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAE9E,OAAO,EAEL,KAAK,WAAW,EACjB,MAAM,2BAA2B,CAAC;AAOnC,KAAK,8BAA8B,GAAG,OAAO,CAC3C,8BAA8B,EAC9B;IAAE,QAAQ,CAAC,WAAW,EAAE;QAAE,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAC3D,CAAC;AAkBF,MAAM,MAAM,wB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AAM,CAAA;KAAE,CAAA;CAAE,CAC3D,CAAC;AAmBF,MAAM,MAAM,wBAAwB,GAAG,8BAA8B,CAAC,QAAQ,CAAC,CAAC;AAEhF,eAAO,MAAM,2BAA2B,EAAE,SAAS,wBAAwB,EACvB,CAAC;AAErD,MAAM,MAAM,yBAAyB,GAAG;IACtC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IACxD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,SAAS,EAAE,wBAAwB,CAAC;IAC7C,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,wGAAwG;AACxG,eAAO,MAAM,mBAAmB,cAAe,MAAM,KAAG,MACnB,CAAC;AAEtC,+EAA+E;AAC/E,eAAO,MAAM,0BAA0B,QACjC,SAAS,yBAAyB,EAerC,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,8BAA8B,QAAO,QAAQ,CACxD,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAMhD,CAAC;AAEJ,qFAAqF;AACrF,MAAM,MAAM,oBAAoB,GAAG,IAAI,CACrC,yBAAyB,EACzB,WAAW,CACZ,GAAG;IACF,QAAQ,CAAC,SAAS,EAAE,sBAAsB,CAAC;CAC5C,CAAC;AAmFF,gGAAgG;AAChG,eAAO,MAAM,qBAAqB,UAC1B,WAAW,KAChB,SAAS,oBAAoB,EAsB/B,CAAC"}
@@ -1,14 +1,16 @@
1
1
  import { MAIA_FEATURE_OPERATIONS, } from "../feature/index.js";
2
+ import { inputSchemaFor } from "../runtime-schema/effect-schema.js";
2
3
  import { DEFAULT_SESSION_LIST_PAGE_SIZE } from "../session/index.js";
3
4
  import { SESSION_ROLE_OPERATIONS, } from "../session-guard/index.js";
4
- import { inputSchemaFor, requestParametersEffectSchemas, } from "./input-schema.js";
5
+ import { requestParametersEffectSchemas } from "./input-schema.js";
5
6
  /**
6
7
  * The operations an external coordinator (Claude Code, Codex) may call as MCP
7
8
  * tools, and the coordinator principal's whole allow list: `maia mcp`
8
9
  * identifies itself as that principal, and the Node refuses it every other
9
10
  * operation with `role_denied`. Each is a feature descriptor whose
10
11
  * `projections.coordinator` names the tool. It may create and drive Sessions
11
- * and send turns. Answering approvals and interactions, confirming previews,
12
+ * and send turns. It answers approvals where the Project's guard grants
13
+ * it (D-199). Answering interactions, confirming previews,
12
14
  * approving executables, and creating or changing accounts, integrations,
13
15
  * Projects and containers stay with a person and have no tool.
14
16
  */
@@ -33,6 +35,13 @@ export const coordinatorToolDefinitions = () => {
33
35
  };
34
36
  });
35
37
  };
38
+ /**
39
+ * The draft-07 JSON Schema of every Node operation's parameters, by operation
40
+ * ID, generated from the request schemas the Node validates.
41
+ */
42
+ export const operationParametersJsonSchemas = () => Object.fromEntries([...requestParametersEffectSchemas()]
43
+ .map(([method, schema]) => [method, inputSchemaFor(schema)])
44
+ .sort(([left], [right]) => Number(left > right) - Number(left < right)));
36
45
  /**
37
46
  * Mailbox tools belong to a Session credential. They are not coordinator
38
47
  * tools: the coordinator principal has no Session to send as or to read for.
@@ -50,6 +59,10 @@ const SESSION_MAILBOX_TOOLS = [
50
59
  description: "Acknowledge one handled message with its deliveryId and the mailbox revision from session_inbox_check, plus a unique commandId.",
51
60
  operation: "session.inbox.ack",
52
61
  },
62
+ {
63
+ description: "Answer a question one of your child Sessions asks, with decision answer, your answer text, the requestDigest from approval_show and a unique commandId. Refused for an approval, a denial and any Session that is not your child; the receipt names you.",
64
+ operation: "approval.respond",
65
+ },
53
66
  ];
54
67
  const sessionMailboxToolDefinitions = () => {
55
68
  const parameters = requestParametersEffectSchemas();
@@ -69,6 +82,9 @@ const sessionMailboxToolDefinitions = () => {
69
82
  };
70
83
  /** Operations an orchestrator aims at its own child Sessions, never at others. */
71
84
  const CHILD_SCOPED_OPERATIONS = new Set([
85
+ "approval.list",
86
+ "approval.respond",
87
+ "approval.show",
72
88
  "session.create",
73
89
  "session.show",
74
90
  "session.start",
@@ -83,6 +99,11 @@ const sessionTool = (tool) => {
83
99
  ...tool,
84
100
  description: `List Sessions in this worker's Project only. First page: omit afterCursor; next page: afterCursor set to the result nextCursor. limit defaults to ${String(DEFAULT_SESSION_LIST_PAGE_SIZE)}.`,
85
101
  };
102
+ if (tool.operation === "approval.list")
103
+ return {
104
+ ...tool,
105
+ description: "List what one of your child Sessions waits on: pass its sessionId (required). Answer its questions with approval_respond; approvals of commands, patches and tool calls stay with a person. Reaches your own child Sessions only.",
106
+ };
86
107
  return CHILD_SCOPED_OPERATIONS.has(tool.operation)
87
108
  ? {
88
109
  ...tool,
@@ -1 +1 @@
1
- {"version":3,"file":"registry.js","sourceRoot":"","sources":["../../src/coordinator-tool/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,GAExB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,8BAA8B,EAAE,MAAM,qBAAqB,CAAC;AACrE,OAAO,EACL,uBAAuB,GAExB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACL,cAAc,EACd,8BAA8B,GAC/B,MAAM,mBAAmB,CAAC;AAO3B;;;;;;;;;GASG;AACH,MAAM,sBAAsB,GAC1B,uBAAuB,CAAC,MAAM,CAC5B,CAAC,SAAS,EAA+C,EAAE,CACzD,SAAS,CAAC,WAAW,CAAC,WAAW,KAAK,KAAK,CAC9C,CAAC;AAIJ,MAAM,CAAC,MAAM,2BAA2B,GACtC,sBAAsB,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC;AAWrD,wGAAwG;AACxG,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,SAAiB,EAAU,EAAE,CAC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M,IAAI,GAAG,KAAK,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QAClC,IAAI,IAAI,KAAK,SAAS;YAAE,MAAM,IAAI,KAAK,CAAC,sBAAsB,SAAS,GAAG,CAAC,CAAC;QAC5E,OAAO,WAAW,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"}
@@ -1,8 +1,10 @@
1
1
  import type { InferRuntimeSchema } from "../runtime-schema/index.js";
2
2
  export declare const discoverySessionsListParametersSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
3
+ readonly adopted?: "none" | "only" | undefined;
3
4
  readonly cursor?: string | undefined;
4
5
  readonly includeContentFields?: boolean | undefined;
5
6
  readonly limit: number;
7
+ readonly observed?: "running" | undefined;
6
8
  readonly roots?: readonly string[] | undefined;
7
9
  readonly sinceDays?: number | undefined;
8
10
  readonly sources: readonly ("claude" | "codex")[];
@@ -38,6 +40,7 @@ export declare const discoverySessionsListResultSchema: import("../runtime-schem
38
40
  readonly livenessEvidence: "no-pid-record" | "no-process-evidence" | "pid-record" | "recent-activity" | "vendor-active";
39
41
  readonly model?: string | undefined;
40
42
  readonly nativeId: string;
43
+ readonly observed?: "not-running" | "running" | "unknown" | undefined;
41
44
  readonly orphaned: boolean;
42
45
  readonly repository?: {
43
46
  readonly branch?: string | undefined;
@@ -68,6 +71,7 @@ export declare const discoverySessionsListResultSchema: import("../runtime-schem
68
71
  readonly orphaned: number;
69
72
  readonly total: number;
70
73
  };
74
+ readonly truncatedSources?: readonly ("claude" | "codex")[] | undefined;
71
75
  }>;
72
76
  export type DiscoverySessionsListResult = InferRuntimeSchema<typeof discoverySessionsListResultSchema>;
73
77
  export declare const discoveredSessionSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
@@ -85,6 +89,7 @@ export declare const discoveredSessionSchema: import("../runtime-schema/runtime-
85
89
  readonly livenessEvidence: "no-pid-record" | "no-process-evidence" | "pid-record" | "recent-activity" | "vendor-active";
86
90
  readonly model?: string | undefined;
87
91
  readonly nativeId: string;
92
+ readonly observed?: "not-running" | "running" | "unknown" | undefined;
88
93
  readonly orphaned: boolean;
89
94
  readonly repository?: {
90
95
  readonly branch?: string | undefined;
@@ -144,6 +149,13 @@ export declare const sessionHistoryMessageSchema: import("../runtime-schema/runt
144
149
  }>;
145
150
  export type SessionHistoryMessage = InferRuntimeSchema<typeof sessionHistoryMessageSchema>;
146
151
  export declare const sessionAdoptPreviewParametersSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
152
+ readonly hostAuthority?: true | undefined;
153
+ readonly permission?: "acceptEdits" | "bypassPermissions" | "default" | "dontAsk" | "never" | "on-request" | "plan" | "untrusted" | undefined;
154
+ readonly labels?: {
155
+ readonly [x: string]: string;
156
+ } | undefined;
157
+ readonly role?: "orchestrator" | "worker" | undefined;
158
+ readonly title?: string | undefined;
147
159
  readonly attestEnded?: true | undefined;
148
160
  readonly commandId: string;
149
161
  readonly executor: "claude-code" | "codex-cli";
@@ -157,6 +169,13 @@ export declare const sessionAdoptPreviewResultSchema: import("../runtime-schema/
157
169
  readonly expiresAt: string;
158
170
  readonly inputDigest: string;
159
171
  readonly issuedAt: string;
172
+ readonly hostAuthority?: true | undefined;
173
+ readonly permission?: "acceptEdits" | "bypassPermissions" | "default" | "dontAsk" | "never" | "on-request" | "plan" | "untrusted" | undefined;
174
+ readonly labels?: {
175
+ readonly [x: string]: string;
176
+ } | undefined;
177
+ readonly role?: "orchestrator" | "worker" | undefined;
178
+ readonly title?: string | undefined;
160
179
  readonly connectionId: string;
161
180
  readonly executor: "claude-code" | "codex-cli";
162
181
  readonly nativeId: string;
@@ -172,7 +191,19 @@ export declare const sessionAdoptPreviewResultSchema: import("../runtime-schema/
172
191
  readonly workspaceId: string;
173
192
  }>;
174
193
  export type SessionAdoptPreviewResult = InferRuntimeSchema<typeof sessionAdoptPreviewResultSchema>;
194
+ export declare const sessionAdoptAlreadyAdoptedSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
195
+ readonly alreadyAdopted: {
196
+ readonly sessionId: string;
197
+ };
198
+ readonly executor: "claude-code" | "codex-cli";
199
+ readonly method: "session.adopt.preview";
200
+ readonly nativeId: string;
201
+ }>;
202
+ export type SessionAdoptAlreadyAdopted = InferRuntimeSchema<typeof sessionAdoptAlreadyAdoptedSchema>;
203
+ /** A preview answers with a preview to confirm, or names the Session that already holds the claim. */
204
+ export type SessionAdoptPreviewOutcome = SessionAdoptAlreadyAdopted | SessionAdoptPreviewResult;
175
205
  export declare const sessionAdoptConfirmParametersSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
206
+ readonly inputDigest?: string | undefined;
176
207
  readonly previewId: string;
177
208
  }>;
178
209
  export type SessionAdoptConfirmParameters = InferRuntimeSchema<typeof sessionAdoptConfirmParametersSchema>;
@@ -214,11 +245,13 @@ export declare const sessionAdoptConfirmResultSchema: import("../runtime-schema/
214
245
  readonly updatedAt: string;
215
246
  readonly workspaceId: string;
216
247
  readonly workspaceRevision: string;
248
+ readonly activity?: "idle" | "stopped" | "waiting_approval" | "working" | undefined;
217
249
  readonly agentDefinitionRef?: {
218
250
  readonly contentDigest: string;
219
251
  readonly key: string;
220
252
  readonly version: string;
221
253
  } | undefined;
254
+ readonly containment?: "none" | undefined;
222
255
  readonly executor?: {
223
256
  readonly connectionId: string;
224
257
  readonly effort?: "high" | "low" | "max" | "medium" | "ultra" | "xhigh" | undefined;
@@ -229,7 +262,25 @@ export declare const sessionAdoptConfirmResultSchema: import("../runtime-schema/
229
262
  readonly code: string;
230
263
  readonly message: string;
231
264
  } | undefined;
265
+ readonly labels?: {
266
+ readonly [x: string]: string;
267
+ } | undefined;
268
+ readonly latestTurnId?: string | undefined;
269
+ readonly latestTurnState?: "completed" | "dispatching" | "failed" | "interrupted" | "outcome-unknown" | "queued" | "running" | undefined;
270
+ readonly permission?: "acceptEdits" | "bypassPermissions" | "default" | "dontAsk" | "never" | "on-request" | "plan" | "untrusted" | undefined;
271
+ readonly prompt?: {
272
+ readonly approvalId: string;
273
+ readonly expiresAt: string;
274
+ readonly kind: "command" | "file_change" | "question" | "tool";
275
+ readonly options?: readonly {
276
+ readonly label: string;
277
+ readonly optionId: string;
278
+ }[] | undefined;
279
+ readonly summary?: string | undefined;
280
+ } | undefined;
232
281
  readonly schemaVersion: 4;
282
+ readonly settledReason?: "failed" | "idle" | "stopped" | undefined;
283
+ readonly status?: "approval" | "compacting" | "done" | "ended" | "error" | "idle" | "question" | "rate_limited" | "starting" | "unknown" | "working" | undefined;
233
284
  readonly title?: string | undefined;
234
285
  readonly worktree?: {
235
286
  readonly baseRef: string;
@@ -246,6 +297,7 @@ export declare const sessionAdoptConfirmResultSchema: import("../runtime-schema/
246
297
  }>;
247
298
  export type SessionAdoptConfirmResult = InferRuntimeSchema<typeof sessionAdoptConfirmResultSchema>;
248
299
  export declare const ADOPTION_REFUSED_ERROR_CODE: "adoption_refused";
300
+ export declare const ALREADY_ADOPTED_ERROR_CODE: "already_adopted";
249
301
  export declare const DEFAULT_DISCOVERY_WINDOW_DAYS: number;
250
302
  export declare const MAX_DISCOVERY_GROUPS: number;
251
303
  export declare const MAX_DISCOVERY_PAGE_SIZE: number;
@@ -1 +1 @@
1
- {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../src/discovery/contract.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAwBrE,eAAO,MAAM,qCAAqC;;;;;;;EAEjD,CAAC;AACF,MAAM,MAAM,+BAA+B,GAAG,kBAAkB,CAC9D,OAAO,qCAAqC,CAC7C,CAAC;AACF,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE7C,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG,kBAAkB,CAC1D,OAAO,iCAAiC,CACzC,CAAC;AACF,eAAO,MAAM,uBAAuB;;;;;;;;;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AAO,MAAM,qBAAqB,EAAE,MAAgC,CAAC;AACrE,eAAO,MAAM,2BAA2B,EAAE,MACX,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { makeEffectRuntimeSchema } from "../runtime-schema/effect-schema.js";
2
- import { ADOPTION_REFUSED_ERROR_CODE as adoptionrefusederrorcodeValue, DEFAULT_DISCOVERY_WINDOW_DAYS as defaultdiscoverywindowdaysValue, discoveredSessionEffectSchema, discoveryGroupEffectSchema, discoverySessionsListParametersEffectSchema, discoverySessionsListResultEffectSchema, MAX_DISCOVERY_GROUPS as maxdiscoverygroupsValue, MAX_DISCOVERY_PAGE_SIZE as maxdiscoverypagesizeValue, MAX_DISCOVERY_ROOTS as maxdiscoveryrootsValue, MAX_DISCOVERY_WINDOW_DAYS as maxdiscoverywindowdaysValue, MAX_HISTORY_PAGE_SIZE as maxhistorypagesizeValue, MAX_HISTORY_TEXT_CHARACTERS as maxhistorytextcharactersValue, sessionAdoptConfirmParametersEffectSchema, sessionAdoptConfirmResultEffectSchema, sessionAdoptPreviewParametersEffectSchema, sessionAdoptPreviewResultEffectSchema, sessionHistoryMessageEffectSchema, sessionHistoryReadParametersEffectSchema, sessionHistoryReadResultEffectSchema, } from "./effect-schema.js";
2
+ import { ADOPTION_REFUSED_ERROR_CODE as adoptionrefusederrorcodeValue, ALREADY_ADOPTED_ERROR_CODE as alreadyadoptederrorcodeValue, DEFAULT_DISCOVERY_WINDOW_DAYS as defaultdiscoverywindowdaysValue, discoveredSessionEffectSchema, discoveryGroupEffectSchema, discoverySessionsListParametersEffectSchema, discoverySessionsListResultEffectSchema, MAX_DISCOVERY_GROUPS as maxdiscoverygroupsValue, MAX_DISCOVERY_PAGE_SIZE as maxdiscoverypagesizeValue, MAX_DISCOVERY_ROOTS as maxdiscoveryrootsValue, MAX_DISCOVERY_WINDOW_DAYS as maxdiscoverywindowdaysValue, MAX_HISTORY_PAGE_SIZE as maxhistorypagesizeValue, MAX_HISTORY_TEXT_CHARACTERS as maxhistorytextcharactersValue, sessionAdoptAlreadyAdoptedEffectSchema, sessionAdoptConfirmParametersEffectSchema, sessionAdoptConfirmResultEffectSchema, sessionAdoptPreviewParametersEffectSchema, sessionAdoptPreviewResultEffectSchema, sessionHistoryMessageEffectSchema, sessionHistoryReadParametersEffectSchema, sessionHistoryReadResultEffectSchema, } from "./effect-schema.js";
3
3
  export const discoverySessionsListParametersSchema = makeEffectRuntimeSchema(discoverySessionsListParametersEffectSchema);
4
4
  export const discoverySessionsListResultSchema = makeEffectRuntimeSchema(discoverySessionsListResultEffectSchema);
5
5
  export const discoveredSessionSchema = makeEffectRuntimeSchema(discoveredSessionEffectSchema);
@@ -9,9 +9,11 @@ export const sessionHistoryReadResultSchema = makeEffectRuntimeSchema(sessionHis
9
9
  export const sessionHistoryMessageSchema = makeEffectRuntimeSchema(sessionHistoryMessageEffectSchema);
10
10
  export const sessionAdoptPreviewParametersSchema = makeEffectRuntimeSchema(sessionAdoptPreviewParametersEffectSchema);
11
11
  export const sessionAdoptPreviewResultSchema = makeEffectRuntimeSchema(sessionAdoptPreviewResultEffectSchema);
12
+ export const sessionAdoptAlreadyAdoptedSchema = makeEffectRuntimeSchema(sessionAdoptAlreadyAdoptedEffectSchema);
12
13
  export const sessionAdoptConfirmParametersSchema = makeEffectRuntimeSchema(sessionAdoptConfirmParametersEffectSchema);
13
14
  export const sessionAdoptConfirmResultSchema = makeEffectRuntimeSchema(sessionAdoptConfirmResultEffectSchema);
14
15
  export const ADOPTION_REFUSED_ERROR_CODE = adoptionrefusederrorcodeValue;
16
+ export const ALREADY_ADOPTED_ERROR_CODE = alreadyadoptederrorcodeValue;
15
17
  export const DEFAULT_DISCOVERY_WINDOW_DAYS = defaultdiscoverywindowdaysValue;
16
18
  export const MAX_DISCOVERY_GROUPS = maxdiscoverygroupsValue;
17
19
  export const MAX_DISCOVERY_PAGE_SIZE = maxdiscoverypagesizeValue;
@@ -1 +1 @@
1
- {"version":3,"file":"contract.js","sourceRoot":"","sources":["../../src/discov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MAAM,2BAA2B,GACtC,6BAA6B,CAAC"}
@@ -10,6 +10,8 @@ export declare const MAX_HISTORY_PAGE_SIZE = 50;
10
10
  export declare const MAX_HISTORY_TEXT_CHARACTERS = 4000;
11
11
  /** A refused adoption, with a message that names the fix. */
12
12
  export declare const ADOPTION_REFUSED_ERROR_CODE = "adoption_refused";
13
+ /** A confirmation lost the claim: another Maia Session already adopted the native session. */
14
+ export declare const ALREADY_ADOPTED_ERROR_CODE = "already_adopted";
13
15
  export declare const discoverySourceEffectSchema: Schema.Literals<readonly ["claude", "codex"]>;
14
16
  export declare const nativeExecutorEffectSchema: Schema.Literals<readonly ["claude-code", "codex-cli"]>;
15
17
  /** A Claude session UUID or a Codex thread ID. */
@@ -22,11 +24,15 @@ export declare const nativeSessionIdEffectSchema: Schema.String;
22
24
  export declare const nativeLivenessEffectSchema: Schema.Literals<readonly ["live", "ended", "unknown"]>;
23
25
  export declare const nativeLivenessEvidenceEffectSchema: Schema.Literals<readonly ["pid-record", "no-pid-record", "recent-activity", "vendor-active", "no-process-evidence"]>;
24
26
  export declare const discoverySessionsListParametersEffectSchema: Schema.Struct<{
27
+ /** Filters by adoption: the adopted sessions or the ones left alone. */
28
+ readonly adopted: Schema.optional<Schema.Literals<readonly ["only", "none"]>>;
25
29
  /** Opaque; the previous page's `nextCursor`. */
26
30
  readonly cursor: Schema.optional<Schema.String>;
27
31
  /** Title, first prompt and preview come from message content: opt-in. */
28
32
  readonly includeContentFields: Schema.optional<Schema.Boolean>;
29
33
  readonly limit: Schema.Int;
34
+ /** `running` keeps the sessions a live process shows running (`observed`). */
35
+ readonly observed: Schema.optional<Schema.Literal<"running">>;
30
36
  /** Keeps sessions whose working directory is one of these or below it. */
31
37
  readonly roots: Schema.optional<Schema.$Array<Schema.String>>;
32
38
  readonly sinceDays: Schema.optional<Schema.Int>;
@@ -47,6 +53,14 @@ export declare const discoveredSessionEffectSchema: Schema.Struct<{
47
53
  readonly livenessEvidence: Schema.Literals<readonly ["pid-record", "no-pid-record", "recent-activity", "vendor-active", "no-process-evidence"]>;
48
54
  readonly model: Schema.optional<Schema.String>;
49
55
  readonly nativeId: Schema.String;
56
+ /**
57
+ * What a live process shows, apart from `liveness` (adoption's conservative
58
+ * check): Claude `running` when its pid record names a live Claude Code
59
+ * process, `not-running` for a stale or absent record; Codex `running` when
60
+ * a Codex process carries the thread ID, else `unknown`. `unknown` also
61
+ * covers a host without a readable process table.
62
+ */
63
+ readonly observed: Schema.optional<Schema.Literals<readonly ["not-running", "running", "unknown"]>>;
50
64
  /** The working directory no longer exists. */
51
65
  readonly orphaned: Schema.Boolean;
52
66
  readonly repository: Schema.optional<Schema.Struct<{
@@ -99,6 +113,14 @@ export declare const discoverySessionsListResultEffectSchema: Schema.Struct<{
99
113
  readonly livenessEvidence: Schema.Literals<readonly ["pid-record", "no-pid-record", "recent-activity", "vendor-active", "no-process-evidence"]>;
100
114
  readonly model: Schema.optional<Schema.String>;
101
115
  readonly nativeId: Schema.String;
116
+ /**
117
+ * What a live process shows, apart from `liveness` (adoption's conservative
118
+ * check): Claude `running` when its pid record names a live Claude Code
119
+ * process, `not-running` for a stale or absent record; Codex `running` when
120
+ * a Codex process carries the thread ID, else `unknown`. `unknown` also
121
+ * covers a host without a readable process table.
122
+ */
123
+ readonly observed: Schema.optional<Schema.Literals<readonly ["not-running", "running", "unknown"]>>;
102
124
  /** The working directory no longer exists. */
103
125
  readonly orphaned: Schema.Boolean;
104
126
  readonly repository: Schema.optional<Schema.Struct<{
@@ -130,6 +152,12 @@ export declare const discoverySessionsListResultEffectSchema: Schema.Struct<{
130
152
  readonly orphaned: Schema.Int;
131
153
  readonly total: Schema.Int;
132
154
  }>;
155
+ /**
156
+ * Stores that held more sessions than one listing reads, oldest left out.
157
+ * A store named here may hold a session the filters match but the listing
158
+ * omits; an empty or missing list means the listing is complete.
159
+ */
160
+ readonly truncatedSources: Schema.optional<Schema.$Array<Schema.Literals<readonly ["claude", "codex"]>>>;
133
161
  }>;
134
162
  export declare const sessionHistoryReadParametersEffectSchema: Schema.Struct<{
135
163
  readonly limit: Schema.Int;
@@ -168,6 +196,11 @@ export declare const sessionHistoryReadResultEffectSchema: Schema.Struct<{
168
196
  /** An opaque handle naming one stored adoption preview. */
169
197
  export declare const adoptionPreviewIdEffectSchema: Schema.String;
170
198
  export declare const sessionAdoptPreviewParametersEffectSchema: Schema.Struct<{
199
+ readonly hostAuthority: Schema.optional<Schema.Literal<true>>;
200
+ readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
201
+ readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
202
+ readonly role: Schema.optional<Schema.Literals<readonly ["orchestrator", "worker"]>>;
203
+ readonly title: Schema.optional<Schema.String>;
171
204
  /**
172
205
  * Codex keeps no liveness evidence Maia can read; a person may attest that
173
206
  * no other client has the thread open. Bound into the preview digest.
@@ -188,6 +221,11 @@ export declare const sessionAdoptPreviewResultEffectSchema: Schema.Struct<{
188
221
  readonly expiresAt: Schema.String;
189
222
  readonly inputDigest: Schema.String;
190
223
  readonly issuedAt: Schema.String;
224
+ readonly hostAuthority: Schema.optional<Schema.Literal<true>>;
225
+ readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
226
+ readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
227
+ readonly role: Schema.optional<Schema.Literals<readonly ["orchestrator", "worker"]>>;
228
+ readonly title: Schema.optional<Schema.String>;
191
229
  readonly connectionId: Schema.String;
192
230
  readonly executor: Schema.Literals<readonly ["claude-code", "codex-cli"]>;
193
231
  readonly nativeId: Schema.String;
@@ -202,7 +240,21 @@ export declare const sessionAdoptPreviewResultEffectSchema: Schema.Struct<{
202
240
  readonly projectId: Schema.String;
203
241
  readonly workspaceId: Schema.String;
204
242
  }>;
243
+ /**
244
+ * What a preview answers for a native session a Maia Session already
245
+ * adopted: no preview, no change, and the ID of the Session that holds the claim.
246
+ */
247
+ export declare const sessionAdoptAlreadyAdoptedEffectSchema: Schema.Struct<{
248
+ readonly alreadyAdopted: Schema.Struct<{
249
+ readonly sessionId: Schema.String;
250
+ }>;
251
+ readonly executor: Schema.Literals<readonly ["claude-code", "codex-cli"]>;
252
+ readonly method: Schema.Literal<"session.adopt.preview">;
253
+ readonly nativeId: Schema.String;
254
+ }>;
205
255
  export declare const sessionAdoptConfirmParametersEffectSchema: Schema.Struct<{
256
+ /** The digest the caller expects the stored preview to hold; the Node refuses a different one before it changes anything. */
257
+ readonly inputDigest: Schema.optional<Schema.String>;
206
258
  readonly previewId: Schema.String;
207
259
  }>;
208
260
  export declare const sessionAdoptConfirmResultEffectSchema: Schema.Struct<{
@@ -243,11 +295,13 @@ export declare const sessionAdoptConfirmResultEffectSchema: Schema.Struct<{
243
295
  readonly updatedAt: Schema.String;
244
296
  readonly workspaceId: Schema.String;
245
297
  readonly workspaceRevision: Schema.String;
298
+ readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
246
299
  readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
247
300
  readonly contentDigest: Schema.String;
248
301
  readonly key: Schema.String;
249
302
  readonly version: Schema.String;
250
303
  }>>;
304
+ readonly containment: Schema.optional<Schema.Literal<"none">>;
251
305
  readonly executor: Schema.optional<Schema.Struct<{
252
306
  readonly connectionId: Schema.String;
253
307
  readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
@@ -258,7 +312,23 @@ export declare const sessionAdoptConfirmResultEffectSchema: Schema.Struct<{
258
312
  readonly code: Schema.String;
259
313
  readonly message: Schema.String;
260
314
  }>>;
315
+ readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
316
+ readonly latestTurnId: Schema.optional<Schema.String>;
317
+ readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
318
+ readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
319
+ readonly prompt: Schema.optional<Schema.Struct<{
320
+ readonly approvalId: Schema.String;
321
+ readonly expiresAt: Schema.String;
322
+ readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
323
+ readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
324
+ readonly label: Schema.String;
325
+ readonly optionId: Schema.String;
326
+ }>>>;
327
+ readonly summary: Schema.optional<Schema.String>;
328
+ }>>;
261
329
  readonly schemaVersion: Schema.Literal<4>;
330
+ readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
331
+ readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
262
332
  readonly title: Schema.optional<Schema.String>;
263
333
  readonly worktree: Schema.optional<Schema.Struct<{
264
334
  readonly baseRef: Schema.String;
@@ -276,11 +346,15 @@ export declare const sessionAdoptConfirmResultEffectSchema: Schema.Struct<{
276
346
  export declare const discoveryRequestEffectSchema: Schema.Union<readonly [Schema.Struct<{
277
347
  readonly method: Schema.Literal<"discovery.sessions.list">;
278
348
  readonly parameters: Schema.Struct<{
349
+ /** Filters by adoption: the adopted sessions or the ones left alone. */
350
+ readonly adopted: Schema.optional<Schema.Literals<readonly ["only", "none"]>>;
279
351
  /** Opaque; the previous page's `nextCursor`. */
280
352
  readonly cursor: Schema.optional<Schema.String>;
281
353
  /** Title, first prompt and preview come from message content: opt-in. */
282
354
  readonly includeContentFields: Schema.optional<Schema.Boolean>;
283
355
  readonly limit: Schema.Int;
356
+ /** `running` keeps the sessions a live process shows running (`observed`). */
357
+ readonly observed: Schema.optional<Schema.Literal<"running">>;
284
358
  /** Keeps sessions whose working directory is one of these or below it. */
285
359
  readonly roots: Schema.optional<Schema.$Array<Schema.String>>;
286
360
  readonly sinceDays: Schema.optional<Schema.Int>;
@@ -303,6 +377,11 @@ export declare const discoveryRequestEffectSchema: Schema.Union<readonly [Schema
303
377
  }>, Schema.Struct<{
304
378
  readonly method: Schema.Literal<"session.adopt.preview">;
305
379
  readonly parameters: Schema.Struct<{
380
+ readonly hostAuthority: Schema.optional<Schema.Literal<true>>;
381
+ readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
382
+ readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
383
+ readonly role: Schema.optional<Schema.Literals<readonly ["orchestrator", "worker"]>>;
384
+ readonly title: Schema.optional<Schema.String>;
306
385
  /**
307
386
  * Codex keeps no liveness evidence Maia can read; a person may attest that
308
387
  * no other client has the thread open. Bound into the preview digest.
@@ -320,6 +399,8 @@ export declare const discoveryRequestEffectSchema: Schema.Union<readonly [Schema
320
399
  }>, Schema.Struct<{
321
400
  readonly method: Schema.Literal<"session.adopt.confirm">;
322
401
  readonly parameters: Schema.Struct<{
402
+ /** The digest the caller expects the stored preview to hold; the Node refuses a different one before it changes anything. */
403
+ readonly inputDigest: Schema.optional<Schema.String>;
323
404
  readonly previewId: Schema.String;
324
405
  }>;
325
406
  }>]>;
@@ -353,6 +434,14 @@ export declare const discoveryResultEffectSchema: Schema.Union<readonly [Schema.
353
434
  readonly livenessEvidence: Schema.Literals<readonly ["pid-record", "no-pid-record", "recent-activity", "vendor-active", "no-process-evidence"]>;
354
435
  readonly model: Schema.optional<Schema.String>;
355
436
  readonly nativeId: Schema.String;
437
+ /**
438
+ * What a live process shows, apart from `liveness` (adoption's conservative
439
+ * check): Claude `running` when its pid record names a live Claude Code
440
+ * process, `not-running` for a stale or absent record; Codex `running` when
441
+ * a Codex process carries the thread ID, else `unknown`. `unknown` also
442
+ * covers a host without a readable process table.
443
+ */
444
+ readonly observed: Schema.optional<Schema.Literals<readonly ["not-running", "running", "unknown"]>>;
356
445
  /** The working directory no longer exists. */
357
446
  readonly orphaned: Schema.Boolean;
358
447
  readonly repository: Schema.optional<Schema.Struct<{
@@ -384,6 +473,12 @@ export declare const discoveryResultEffectSchema: Schema.Union<readonly [Schema.
384
473
  readonly orphaned: Schema.Int;
385
474
  readonly total: Schema.Int;
386
475
  }>;
476
+ /**
477
+ * Stores that held more sessions than one listing reads, oldest left out.
478
+ * A store named here may hold a session the filters match but the listing
479
+ * omits; an empty or missing list means the listing is complete.
480
+ */
481
+ readonly truncatedSources: Schema.optional<Schema.$Array<Schema.Literals<readonly ["claude", "codex"]>>>;
387
482
  }>, Schema.Struct<{
388
483
  readonly executor: Schema.Literals<readonly ["claude-code", "codex-cli"]>;
389
484
  readonly messages: Schema.$Array<Schema.Struct<{
@@ -403,6 +498,11 @@ export declare const discoveryResultEffectSchema: Schema.Union<readonly [Schema.
403
498
  readonly expiresAt: Schema.String;
404
499
  readonly inputDigest: Schema.String;
405
500
  readonly issuedAt: Schema.String;
501
+ readonly hostAuthority: Schema.optional<Schema.Literal<true>>;
502
+ readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
503
+ readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
504
+ readonly role: Schema.optional<Schema.Literals<readonly ["orchestrator", "worker"]>>;
505
+ readonly title: Schema.optional<Schema.String>;
406
506
  readonly connectionId: Schema.String;
407
507
  readonly executor: Schema.Literals<readonly ["claude-code", "codex-cli"]>;
408
508
  readonly nativeId: Schema.String;
@@ -416,6 +516,13 @@ export declare const discoveryResultEffectSchema: Schema.Union<readonly [Schema.
416
516
  readonly previewId: Schema.String;
417
517
  readonly projectId: Schema.String;
418
518
  readonly workspaceId: Schema.String;
519
+ }>, Schema.Struct<{
520
+ readonly alreadyAdopted: Schema.Struct<{
521
+ readonly sessionId: Schema.String;
522
+ }>;
523
+ readonly executor: Schema.Literals<readonly ["claude-code", "codex-cli"]>;
524
+ readonly method: Schema.Literal<"session.adopt.preview">;
525
+ readonly nativeId: Schema.String;
419
526
  }>, Schema.Struct<{
420
527
  readonly actorId: Schema.String;
421
528
  readonly adoption: Schema.Struct<{
@@ -454,11 +561,13 @@ export declare const discoveryResultEffectSchema: Schema.Union<readonly [Schema.
454
561
  readonly updatedAt: Schema.String;
455
562
  readonly workspaceId: Schema.String;
456
563
  readonly workspaceRevision: Schema.String;
564
+ readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
457
565
  readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
458
566
  readonly contentDigest: Schema.String;
459
567
  readonly key: Schema.String;
460
568
  readonly version: Schema.String;
461
569
  }>>;
570
+ readonly containment: Schema.optional<Schema.Literal<"none">>;
462
571
  readonly executor: Schema.optional<Schema.Struct<{
463
572
  readonly connectionId: Schema.String;
464
573
  readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
@@ -469,7 +578,23 @@ export declare const discoveryResultEffectSchema: Schema.Union<readonly [Schema.
469
578
  readonly code: Schema.String;
470
579
  readonly message: Schema.String;
471
580
  }>>;
581
+ readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
582
+ readonly latestTurnId: Schema.optional<Schema.String>;
583
+ readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
584
+ readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
585
+ readonly prompt: Schema.optional<Schema.Struct<{
586
+ readonly approvalId: Schema.String;
587
+ readonly expiresAt: Schema.String;
588
+ readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
589
+ readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
590
+ readonly label: Schema.String;
591
+ readonly optionId: Schema.String;
592
+ }>>>;
593
+ readonly summary: Schema.optional<Schema.String>;
594
+ }>>;
472
595
  readonly schemaVersion: Schema.Literal<4>;
596
+ readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
597
+ readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
473
598
  readonly title: Schema.optional<Schema.String>;
474
599
  readonly worktree: Schema.optional<Schema.Struct<{
475
600
  readonly baseRef: Schema.String;
@@ -1 +1 @@
1
- {"version":3,"file":"effect-schema.d.ts","sourceRoot":"","sources":["../../src/discovery/effect-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AASxC,mDAAmD;AACnD,eAAO,MAAM,iBAAiB,YAAI,QAAQ,EAAE,OAAO,CAAU,CAAC;AAC9D,eAAO,MAAM,6BAA6B,KAAK,CAAC;AAChD,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAC7C,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAC3C,eAAO,MAAM,mBAAmB,KAAK,CAAC;AACtC,eAAO,MAAM,oBAAoB,MAAM,CAAC;AACxC,eAAO,MAAM,qBAAqB,KAAK,CAAC;AACxC,eAAO,MAAM,2BAA2B,OAAO,CAAC;AAChD,6DAA6D;AAC7D,eAAO,MAAM,2BAA2B,qBAAqB,CAAC;AAoB9D,eAAO,MAAM,2BAA2B,+CAAqC,CAAC;AAC9E,eAAO,MAAM,0BAA0B,wDAGrC,CAAC;AACH,kDAAkD;AAClD,eAAO,MAAM,2BAA2B,eAAK,CAAC;AAO9C;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,wDAIrC,CAAC;AACH,eAAO,MAAM,kCAAkC,sHAM7C,CAAC;AAEH,eAAO,MAAM,2CAA2C;IACtD,gDAAgD;;IAIhD,yEAAyE;;;IAKzE,0EAA0E;;;;EAa1E,CAAC;AAQH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;IAiBx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