@makaio/framework 1.0.0-dev-1785409369816 → 1.0.0-dev-1786014320559

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 (508) hide show
  1. package/dist/.makaio-build.json +4 -3
  2. package/dist/{account-identity-DFx8pwKL.mjs → account-identity-DGpXd8h_.mjs} +1 -1
  3. package/dist/adapter-BkdJaOOG.mjs +1 -0
  4. package/dist/adapter-subsystem/index.d.mts +138 -6
  5. package/dist/adapter-subsystem/index.mjs +1 -1
  6. package/dist/adapters/acp-client/index.d.mts +105 -7
  7. package/dist/adapters/acp-client/index.mjs +2 -2
  8. package/dist/adapters/config/index.d.mts +1 -1
  9. package/dist/adapters/config/index.mjs +1 -1
  10. package/dist/adapters/index.d.mts +362 -801
  11. package/dist/adapters/index.mjs +6 -6
  12. package/dist/adapters/node.d.mts +1 -1
  13. package/dist/adapters/node.mjs +1 -1
  14. package/dist/adapters/stream-session/index.d.mts +28 -7
  15. package/dist/adapters/stream-session/index.mjs +1 -1
  16. package/dist/agent-namespace-D51PODFf.mjs +1 -0
  17. package/dist/{ajv-DD3SIL2i.mjs → ajv-L5fKxaia.mjs} +2 -2
  18. package/dist/artifact-k3veR4Yx.mjs +1 -0
  19. package/dist/attach-error-BSlc7JfL.mjs +1 -0
  20. package/dist/{auth-DGEdiHF6.mjs → auth-A1K_7q-8.mjs} +1 -1
  21. package/dist/authority-state-bootstrap-YwtEImIB.mjs +1 -0
  22. package/dist/automation-trigger-CuSdQwir.mjs +1 -0
  23. package/dist/await-trigger-ph1S0zVI.mjs +1 -0
  24. package/dist/bus/index.d.mts +19 -5
  25. package/dist/bus/index.mjs +1 -1
  26. package/dist/bus-BIj0_aG6.mjs +1 -0
  27. package/dist/bus-CqgrphNE.mjs +2 -0
  28. package/dist/{canonical-model-BAytQ4NV.mjs → canonical-model-DJASlL4m.mjs} +1 -1
  29. package/dist/{capabilities-BQEp34ir.mjs → capabilities-Bqckjh7G.mjs} +1 -1
  30. package/dist/{client-DbS847wW.mjs → client-BL5__WT0.mjs} +1 -1
  31. package/dist/clients/index.d.mts +2 -2
  32. package/dist/clients/index.mjs +1 -1
  33. package/dist/clients/managed-install.d.mts +1 -1
  34. package/dist/clients/managed-install.mjs +1 -1
  35. package/dist/{compression-74fFeBha.mjs → compression-BbttSqm8.mjs} +1 -1
  36. package/dist/{config-namespace-TVX-hG4I.mjs → config-namespace-CyzeLWSg.mjs} +1 -1
  37. package/dist/{context-resolution-DdyhpH4L.d.mts → context-resolution-CW0ya4QO.d.mts} +13 -13
  38. package/dist/contracts/adapter/index.d.mts +3 -3
  39. package/dist/contracts/adapter/index.mjs +1 -1
  40. package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
  41. package/dist/contracts/artifact/index.d.mts +3 -3
  42. package/dist/contracts/artifact/index.mjs +1 -1
  43. package/dist/contracts/auth/index.d.mts +2 -2
  44. package/dist/contracts/auth/index.mjs +1 -1
  45. package/dist/contracts/automation-trigger/index.d.mts +4 -0
  46. package/dist/contracts/automation-trigger/index.mjs +1 -0
  47. package/dist/contracts/canonical-model/index.d.mts +1 -1
  48. package/dist/contracts/canonical-model/index.mjs +1 -1
  49. package/dist/contracts/capabilities/index.d.mts +1 -1
  50. package/dist/contracts/capabilities/index.mjs +1 -1
  51. package/dist/contracts/client/index.d.mts +2 -2
  52. package/dist/contracts/client/index.mjs +1 -1
  53. package/dist/contracts/common/index.d.mts +1 -1
  54. package/dist/contracts/config/index.d.mts +1 -1
  55. package/dist/contracts/config/index.mjs +1 -1
  56. package/dist/contracts/extension/index.d.mts +6 -5
  57. package/dist/contracts/extension/index.mjs +1 -1
  58. package/dist/contracts/facet/index.d.mts +1 -1
  59. package/dist/contracts/facet/index.mjs +1 -1
  60. package/dist/contracts/harness/index.d.mts +1 -1
  61. package/dist/contracts/harness/index.mjs +1 -1
  62. package/dist/contracts/host/index.d.mts +1 -1
  63. package/dist/contracts/host/index.mjs +1 -1
  64. package/dist/contracts/index.d.mts +181 -120
  65. package/dist/contracts/index.mjs +1 -1
  66. package/dist/contracts/materialization/index.d.mts +3 -3
  67. package/dist/contracts/materialization/index.mjs +1 -1
  68. package/dist/contracts/model-registry/index.d.mts +1 -1
  69. package/dist/contracts/model-registry/index.mjs +1 -1
  70. package/dist/contracts/native-session-supervisor/index.d.mts +1 -1
  71. package/dist/contracts/native-session-supervisor/index.mjs +1 -1
  72. package/dist/contracts/platform/index.d.mts +1 -1
  73. package/dist/contracts/platform/index.mjs +1 -1
  74. package/dist/contracts/provider/index.d.mts +2 -2
  75. package/dist/contracts/provider/index.mjs +1 -1
  76. package/dist/contracts/reaction/index.d.mts +2 -0
  77. package/dist/contracts/reaction/index.mjs +1 -0
  78. package/dist/contracts/session/index.d.mts +3 -3
  79. package/dist/contracts/session/index.mjs +1 -1
  80. package/dist/contracts/shared/index.d.mts +3 -3
  81. package/dist/contracts/shared/index.mjs +1 -1
  82. package/dist/contracts/skill/index.d.mts +1 -1
  83. package/dist/contracts/skill/index.mjs +1 -1
  84. package/dist/contracts/telemetry/index.d.mts +1 -1
  85. package/dist/contracts/telemetry/index.mjs +1 -1
  86. package/dist/contracts/timeout/index.d.mts +1 -1
  87. package/dist/contracts/timeout/index.mjs +1 -1
  88. package/dist/contracts/toast/index.mjs +1 -1
  89. package/dist/contracts/variant/index.d.mts +1 -1
  90. package/dist/contracts/variant/index.mjs +1 -1
  91. package/dist/contracts/worker-node/index.d.mts +1 -1
  92. package/dist/contracts/worker-node/index.mjs +1 -1
  93. package/dist/contracts/workflow/index.d.mts +3 -3
  94. package/dist/contracts/workflow/index.mjs +1 -1
  95. package/dist/contribution-BH-wKsWI.d.mts +35 -0
  96. package/dist/core/index.d.mts +60 -1
  97. package/dist/core/index.mjs +1 -1
  98. package/dist/definition-BYgHlmMw.d.mts +375 -0
  99. package/dist/{definition-CJfiv8xm.mjs → definition-CDg-Jq1T.mjs} +1 -1
  100. package/dist/{detached-extension-handle-Ddfquy5_.mjs → detached-extension-handle-DKd17UB6.mjs} +1 -1
  101. package/dist/drizzle/0031_adapter_session_currency.sql +66 -0
  102. package/dist/drizzle/0032_native_session_ownership.sql +77 -0
  103. package/dist/drizzle/0033_m_msf3hu2s.sql +1 -0
  104. package/dist/drizzle/meta/_journal.json +21 -0
  105. package/dist/{execution-attempt-repository-DWXKY41_.d.mts → execution-attempt-repository-DFyAnchJ.d.mts} +1 -1
  106. package/dist/{execution-target-Cf645pDj.mjs → execution-target-ByNwZh5-.mjs} +1 -1
  107. package/dist/extension-DMdmj9gi.mjs +1 -0
  108. package/dist/extension-DUmibvMk.mjs +1 -0
  109. package/dist/extension-context-CqfddWXs.d.mts +295 -0
  110. package/dist/{extension-discovery-CQRdbVQ6.d.mts → extension-discovery-Fhps4icD.d.mts} +2 -0
  111. package/dist/{extension-namespace-Yu41YepM.mjs → extension-namespace-B554RmCp.mjs} +1 -1
  112. package/dist/extension-package-provenance-Dh_-Z-tE.mjs +1 -0
  113. package/dist/{filesystem-service-DlP2HfDg.mjs → filesystem-service-FAtd9gWH.mjs} +1 -1
  114. package/dist/framework-packages-D_2hBZ-p.mjs +1 -0
  115. package/dist/git/index.mjs +1 -1
  116. package/dist/{globby-1yCVCk8s.mjs → globby-BBLuT_vy.mjs} +1 -1
  117. package/dist/handlers-2yd00VEq.mjs +57 -0
  118. package/dist/{harness-DpwsFsE7.mjs → harness-KxbWGL4I.mjs} +1 -1
  119. package/dist/{hook-responses-Dh1PWXqJ.d.mts → hook-responses-CQZIv3L3.d.mts} +2 -293
  120. package/dist/{index-DCZ8BX9S.d.mts → index-3eUIRy7T.d.mts} +304 -74
  121. package/dist/{index-brqfk9JQ.d.mts → index-B4xdTT3c.d.mts} +6 -6
  122. package/dist/{index-4VfqCjl2.d.mts → index-B5op6AsV.d.mts} +49 -39
  123. package/dist/{index-CMgLxw14.d.mts → index-B6GOuxVy2.d.mts} +18 -18
  124. package/dist/index-BFhJe-Sb.d.mts +302 -0
  125. package/dist/{index-EjsSBQXy2.d.mts → index-BSQ30wYP.d.mts} +1 -1
  126. package/dist/{index-DlsHL9Jg.d.mts → index-BiAYXjgM.d.mts} +25 -25
  127. package/dist/{index-B9UW_vPM.d.mts → index-ByZi9bml.d.mts} +4967 -1509
  128. package/dist/{index-BVlXneHH.d.mts → index-C7HcDpHE.d.mts} +14 -10
  129. package/dist/{index-BskPjMet.d.mts → index-CB4aIUoF.d.mts} +16 -16
  130. package/dist/{index-cqLS1eFV.d.mts → index-CDusRXio.d.mts} +70 -71
  131. package/dist/{index-DnG-QFpG.d.mts → index-CSN_0sCo.d.mts} +18 -1
  132. package/dist/{index-BAXkicoQ.d.mts → index-C__EQfKa.d.mts} +1 -1
  133. package/dist/{index-CLvQsL6s2.d.mts → index-CqQYgsbB.d.mts} +1660 -218
  134. package/dist/{index-BNMnIe-j.d.mts → index-CwDiyJkJ.d.mts} +276 -705
  135. package/dist/{index-GHASUiem.d.mts → index-DBadVauL.d.mts} +1 -1
  136. package/dist/{index-gUhidukN.d.mts → index-DI7-tIL3.d.mts} +299 -2
  137. package/dist/index-DP3o_13U.d.mts +165 -0
  138. package/dist/{index-DSBT83c0.d.mts → index-DcYAAJ0V.d.mts} +24 -3
  139. package/dist/{index-D5Nb7IEP.d.mts → index-Dch_AxUg.d.mts} +77 -39
  140. package/dist/{index-D_ODXsBv.d.mts → index-DcqSUsX6.d.mts} +35 -79
  141. package/dist/{index-B0Kf_OWi.d.mts → index-DgOfgjx3.d.mts} +1 -1
  142. package/dist/{index-Ds5_rDEJ.d.mts → index-DwLRZscE.d.mts} +1 -12
  143. package/dist/{index-DkiTJM5p.d.mts → index-DxYDRoDE2.d.mts} +17 -3
  144. package/dist/{index-CRvpVIqA.d.mts → index-OsbtyMgx2.d.mts} +10 -1
  145. package/dist/{index-BaZeoZoS.d.mts → index-bIe_57cL.d.mts} +1 -1
  146. package/dist/{json-value-Brslhqbm.d.mts → json-value-C1RGgS0a.d.mts} +16 -1
  147. package/dist/{json-value-DmU8ibo_.mjs → json-value-D57aJhVn.mjs} +1 -1
  148. package/dist/kernel/cli/index.d.mts +2 -2
  149. package/dist/kernel/cli/index.mjs +1 -1
  150. package/dist/kernel/cli/register.d.mts +1 -1
  151. package/dist/kernel/cli/register.mjs +1 -1
  152. package/dist/kernel/cli/schemas.mjs +1 -1
  153. package/dist/kernel/extension/index.d.mts +1 -1
  154. package/dist/kernel/extension/index.mjs +1 -1
  155. package/dist/kernel/index.d.mts +9 -9
  156. package/dist/kernel/index.mjs +1 -1
  157. package/dist/kernel/namespace/index.d.mts +2 -2
  158. package/dist/kernel/namespace/index.mjs +1 -1
  159. package/dist/kernel/observability/index.d.mts +1 -1
  160. package/dist/kernel/observability/index.mjs +1 -1
  161. package/dist/kernel/providers/index.d.mts +1 -1
  162. package/dist/kernel/providers/index.mjs +1 -1
  163. package/dist/kernel/window/index.d.mts +1 -1
  164. package/dist/kernel/window/index.mjs +1 -1
  165. package/dist/{lib-C7-s68uf.mjs → lib-B_rJ6r0T.mjs} +1 -1
  166. package/dist/{lib-DErgth_E.mjs → lib-CnOAtohU.mjs} +1 -1
  167. package/dist/load-extensions-CW9uzNR5.mjs +1 -0
  168. package/dist/{load-extensions-BxsDB87B.d.mts → load-extensions-DUpaMQ7G.d.mts} +17 -13
  169. package/dist/{materialization-Jd198K3y.mjs → materialization-CcpCDhXh.mjs} +1 -1
  170. package/dist/mcp-http-server/index.mjs +1 -1
  171. package/dist/model-ZH3L1dPW.mjs +1 -0
  172. package/dist/{namespace-BqxtpNAn.mjs → namespace-B7bntOB8.mjs} +1 -1
  173. package/dist/{namespace-CWUDFGOy.mjs → namespace-BFqkUTJp.mjs} +1 -1
  174. package/dist/{namespace-CjjFvrIA2.d.mts → namespace-CAy4P5mW.d.mts} +29 -29
  175. package/dist/{namespace-B8uKAzWJ.mjs → namespace-CFjdyNXG.mjs} +1 -1
  176. package/dist/{namespace-DV-Hr9sZ.d.mts → namespace-ChnRTUG4.d.mts} +11 -1
  177. package/dist/namespace-CxrOLeeP.mjs +1 -0
  178. package/dist/{namespace-g_mbIZq_.d.mts → namespace-DSlfFhB1.d.mts} +410 -26
  179. package/dist/{namespace-CupOzbRv.d.mts → namespace-DwZwGXgF.d.mts} +24 -20
  180. package/dist/{namespace-TseEI3Pu.d.mts → namespace-Rge9mMI-.d.mts} +36 -28
  181. package/dist/{native-session-supervisor-DRx0MX-d.mjs → native-session-supervisor-fZYPUk0-.mjs} +1 -1
  182. package/dist/node/bus-server/index.d.mts +1 -1
  183. package/dist/node/bus-server/index.mjs +1 -1
  184. package/dist/node/bus-server/server-lifecycle.d.mts +1 -1
  185. package/dist/node/bus-server/server-lifecycle.mjs +1 -1
  186. package/dist/{orchestrator-shared-BHCv-l2O.d.mts → orchestrator-shared-B-KRW1Z0.d.mts} +1 -0
  187. package/dist/orchestrator-shared-CTCZc6Vl.mjs +1 -0
  188. package/dist/ownership-memory-handler-Bblp93YC.mjs +1 -0
  189. package/dist/{package-DWMxGfzK.d.mts → package-Bf3hyuzs.d.mts} +234 -84
  190. package/dist/package-CBdvjyyZ.mjs +1 -0
  191. package/dist/package-CddkNbZI.mjs +1 -0
  192. package/dist/package-ypz4rKvn.mjs +7 -0
  193. package/dist/package.json +1 -1
  194. package/dist/{profile-BTAI31Nt.mjs → profile-BtznZlq3.mjs} +1 -1
  195. package/dist/{provider-context-Dq53Cgzz.mjs → provider-context-BrLZYnDW.mjs} +1 -1
  196. package/dist/{provider-context-PZIQWcqQ.mjs → provider-context-Dh-VOOYF.mjs} +1 -1
  197. package/dist/reaction-BS0k4eNN.mjs +1 -0
  198. package/dist/{registry-wfF2uTty.mjs → registry-BO_bOoky.mjs} +2 -2
  199. package/dist/{resolved-DZgqql2Z.mjs → resolved-DMByz1_2.mjs} +1 -1
  200. package/dist/rules/index.d.mts +1 -1
  201. package/dist/rules/index.mjs +1 -1
  202. package/dist/rules/schemas.d.mts +1 -1
  203. package/dist/runtime-bun/index.mjs +1 -1
  204. package/dist/runtime-node/extension-discovery.d.mts +1 -1
  205. package/dist/runtime-node/extension-validation.d.mts +1 -1
  206. package/dist/runtime-node/extension-validation.mjs +1 -1
  207. package/dist/runtime-node/index.d.mts +4 -4
  208. package/dist/runtime-node/index.mjs +24 -24
  209. package/dist/runtime-node/makaio-config.d.mts +1 -1
  210. package/dist/runtime-node/makaio-config.mjs +1 -1
  211. package/dist/runtime-node/workflow-worker/index.d.mts +1 -1
  212. package/dist/runtime-node/workflow-worker/index.mjs +1 -1
  213. package/dist/runtime-node/workflow-worker/worker-entry.mjs +1 -1
  214. package/dist/{schema-Dd-e89MO.mjs → schema-DBG7Jq5_.mjs} +1 -1
  215. package/dist/{schema-DKUb4rkr.d.mts → schema-DKTzriEY.d.mts} +519 -9
  216. package/dist/{schemas-DrVg4aQQ.d.mts → schemas-9qeeHGBf.d.mts} +8 -8
  217. package/dist/{schemas-CRB2O5zo.mjs → schemas-BqD8LlQw.mjs} +1 -1
  218. package/dist/{schemas-DaHQzpgm.mjs → schemas-CsjN7cmM.mjs} +1 -1
  219. package/dist/schemas-DSkBOdx_.mjs +1 -0
  220. package/dist/schemas-DplrlAyR.mjs +1 -0
  221. package/dist/{schemas-DnYiAvfz.d.mts → schemas-VbB1FTxx.d.mts} +24 -20
  222. package/dist/scoped-bus-ClwTWqX8.mjs +1 -0
  223. package/dist/{selection-BNwTKEVT.mjs → selection-7Ku8DBnh.mjs} +1 -1
  224. package/dist/services/adapter-runtime/index.d.mts +3 -3
  225. package/dist/services/adapter-runtime/index.mjs +1 -1
  226. package/dist/services/adapter-runtime/namespace.d.mts +1 -1
  227. package/dist/services/adapter-runtime/schemas.d.mts +1 -1
  228. package/dist/services/adapter-subsystem/index.d.mts +4 -4
  229. package/dist/services/adapter-subsystem/index.mjs +1 -1
  230. package/dist/services/adapter-subsystem/namespace.d.mts +2 -2
  231. package/dist/services/adapter-subsystem/namespace.mjs +1 -1
  232. package/dist/services/agent-runtime/index.d.mts +2 -2
  233. package/dist/services/agent-runtime/namespace.d.mts +1 -1
  234. package/dist/services/agent-runtime/schemas.d.mts +1 -1
  235. package/dist/services/automation-trigger/index.d.mts +943 -0
  236. package/dist/services/automation-trigger/index.mjs +1 -0
  237. package/dist/services/capability/index.d.mts +1 -1
  238. package/dist/services/capability/index.mjs +1 -1
  239. package/dist/services/codebase/index.d.mts +2 -2
  240. package/dist/services/codebase/namespace.d.mts +1 -1
  241. package/dist/services/codebase/schemas.d.mts +1 -1
  242. package/dist/services/compression/index.d.mts +2 -2
  243. package/dist/services/compression/namespace.d.mts +1 -1
  244. package/dist/services/compression/schemas.d.mts +1 -1
  245. package/dist/services/context-rules/index.d.mts +4 -4
  246. package/dist/services/context-rules/index.mjs +1 -1
  247. package/dist/services/execution-target/index.d.mts +3 -3
  248. package/dist/services/execution-target/index.mjs +1 -1
  249. package/dist/services/execution-target/namespace.d.mts +1 -1
  250. package/dist/services/execution-target/namespace.mjs +1 -1
  251. package/dist/services/execution-target/schemas.d.mts +1 -1
  252. package/dist/services/execution-target/schemas.mjs +1 -1
  253. package/dist/services/filesystem/index.d.mts +1 -1
  254. package/dist/services/filesystem/index.mjs +1 -1
  255. package/dist/services/filesystem/namespace.d.mts +6 -6
  256. package/dist/services/filesystem/schemas.d.mts +3 -3
  257. package/dist/services/git/namespace.mjs +1 -1
  258. package/dist/services/git/schemas.mjs +1 -1
  259. package/dist/services/harness/index.mjs +1 -1
  260. package/dist/services/index.d.mts +459 -93
  261. package/dist/services/index.mjs +1 -1
  262. package/dist/services/log-import/browser.d.mts +2 -2
  263. package/dist/services/log-import/index.d.mts +3 -3
  264. package/dist/services/log-import/log-import.d.mts +1 -1
  265. package/dist/services/log-import/log-import.mjs +1 -1
  266. package/dist/services/log-import/namespace.mjs +1 -1
  267. package/dist/services/log-import/schemas.mjs +1 -1
  268. package/dist/services/materialization/index.d.mts +1 -1
  269. package/dist/services/materialization/index.mjs +1 -1
  270. package/dist/services/model-registry/index.d.mts +1 -1
  271. package/dist/services/model-registry/index.mjs +1 -1
  272. package/dist/services/preferences/index.d.mts +2 -2
  273. package/dist/services/preferences/schemas.d.mts +1 -1
  274. package/dist/services/preferences/storage-namespace.d.mts +2 -2
  275. package/dist/services/provider-context/index.d.mts +1 -1
  276. package/dist/services/provider-context/index.mjs +1 -1
  277. package/dist/services/provider-runtime/index.mjs +1 -1
  278. package/dist/services/session/handlers/index.d.mts +2 -2
  279. package/dist/services/session/handlers/index.mjs +1 -1
  280. package/dist/services/session/index.d.mts +10 -10
  281. package/dist/services/session/index.mjs +1 -1
  282. package/dist/services/session/messages/namespace.d.mts +1 -1
  283. package/dist/services/session/messages/namespace.mjs +1 -1
  284. package/dist/services/session/orchestrator-testing/index.d.mts +1 -1
  285. package/dist/services/session/orchestrator-testing/index.mjs +1 -1
  286. package/dist/services/session/session-events/namespace.d.mts +1 -1
  287. package/dist/services/session/session-events/namespace.mjs +1 -1
  288. package/dist/services/session/storage/namespace.d.mts +1 -1
  289. package/dist/services/session/storage/schema.d.mts +2 -2
  290. package/dist/services/session/storage/schema.mjs +1 -1
  291. package/dist/services/session/testing/index.d.mts +12 -4
  292. package/dist/services/session/testing/index.mjs +36 -4
  293. package/dist/services/session/testing/orchestrator-shared.d.mts +1 -1
  294. package/dist/services/session/testing/orchestrator-shared.mjs +1 -1
  295. package/dist/services/session/turns/namespace.d.mts +1 -1
  296. package/dist/services/session/turns/namespace.mjs +1 -1
  297. package/dist/services/session-editor/index.d.mts +1 -1
  298. package/dist/services/session-editor/index.mjs +1 -1
  299. package/dist/services/settings/index.d.mts +3 -3
  300. package/dist/services/settings/index.mjs +1 -1
  301. package/dist/services/settings/namespace.d.mts +8 -8
  302. package/dist/services/settings/namespace.mjs +1 -1
  303. package/dist/services/settings/storage/clients-namespace.d.mts +1 -1
  304. package/dist/services/settings/storage/clients-namespace.mjs +1 -1
  305. package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
  306. package/dist/services/settings/storage/index.d.mts +3 -3
  307. package/dist/services/settings/storage/index.mjs +1 -1
  308. package/dist/services/settings/storage/providers-namespace.d.mts +1 -1
  309. package/dist/services/settings/storage/providers-namespace.mjs +1 -1
  310. package/dist/services/subagent/index.d.mts +1 -1
  311. package/dist/services/subagent/index.mjs +1 -1
  312. package/dist/services/subagent-template/index.d.mts +2 -2
  313. package/dist/services/subagent-template/namespace.d.mts +1 -1
  314. package/dist/services/subagent-template/schemas.d.mts +1 -1
  315. package/dist/services/tool-approval/index.d.mts +1 -1
  316. package/dist/services/tool-approval/index.mjs +1 -1
  317. package/dist/services/tools/index.d.mts +1 -1
  318. package/dist/services/tools/index.mjs +1 -1
  319. package/dist/services/tray-menu/index.d.mts +3 -3
  320. package/dist/services/tray-menu/index.mjs +1 -1
  321. package/dist/services/tray-menu/namespace.d.mts +1 -1
  322. package/dist/services/tray-menu/schemas.d.mts +1 -1
  323. package/dist/services/turn/index.d.mts +1 -1
  324. package/dist/services/turn/namespace.d.mts +1 -1
  325. package/dist/services/workflow-transitions/index.d.mts +1 -1
  326. package/dist/services/workflow-transitions/index.mjs +1 -1
  327. package/dist/session-BMy2kRpX.mjs +90 -0
  328. package/dist/session-Cipx34j6.mjs +1 -0
  329. package/dist/{session-lineage-B_JW5LpF.d.mts → session-lineage-B_PVa1XN.d.mts} +1 -1
  330. package/dist/shared-BFVuCDPx.mjs +1 -0
  331. package/dist/{skill-BR6rkfLe.mjs → skill-C1D51nhh.mjs} +1 -1
  332. package/dist/{src-DD0v-nIj.mjs → src-xbmzokNe.mjs} +1 -1
  333. package/dist/storage/drizzle/client.d.mts +1 -1
  334. package/dist/storage/drizzle/client.mjs +1 -1
  335. package/dist/storage/drizzle/index.d.mts +42 -2
  336. package/dist/storage/drizzle/index.mjs +1 -1
  337. package/dist/storage/handlers/drizzle/index.d.mts +1 -1
  338. package/dist/storage/handlers/drizzle/index.mjs +1 -1
  339. package/dist/storage/handlers/index.d.mts +1 -1
  340. package/dist/storage/handlers/index.mjs +1 -1
  341. package/dist/tool-approval-service-BVgN9Q1r.mjs +1 -0
  342. package/dist/{tools-PdG9fO1M.mjs → tools-DxwHox1a.mjs} +1 -1
  343. package/dist/{transition-Du3MQzJV.d.mts → transition-BF1nevaC.d.mts} +7 -34
  344. package/dist/{types-DMLDHFR9.d.mts → types-BNjPhj_a.d.mts} +1 -1
  345. package/dist/{types-Dzrwa1GY.d.mts → types-CijlWGwb.d.mts} +2036 -618
  346. package/dist/types-ClpEaoAm.d.mts +2917 -0
  347. package/dist/{types-D7_kevBK.d.mts → types-xCdGghb2.d.mts} +1 -1
  348. package/dist/ui-hooks/index.d.mts +29 -2
  349. package/dist/ui-hooks/index.mjs +1 -1
  350. package/dist/ui-kernel/index.d.mts +2 -2
  351. package/dist/ui-kernel/pages/schemas.d.mts +1 -1
  352. package/dist/ui-views/index.d.mts +1 -1
  353. package/dist/utils/index.d.mts +77 -1
  354. package/dist/utils/index.mjs +2 -2
  355. package/dist/{version-CoCeMxDT.mjs → version-BfNnVAGr.mjs} +1 -1
  356. package/dist/{view-builder-DeFd-k7C.d.mts → view-builder-Bc9dx6jF.d.mts} +1 -1
  357. package/dist/{visibility-qhGWmpSJ.mjs → visibility-Dl1o2I01.mjs} +1 -1
  358. package/dist/{worker-node-Bl9_vqYi.mjs → worker-node-BDOYPEpi.mjs} +1 -1
  359. package/dist/{worker-node-DZTuT1DS.mjs → worker-node-DJ41Tr-F.mjs} +1 -1
  360. package/dist/workflow-Hzc5jlnV.mjs +1 -0
  361. package/dist/workflow-engine/execution-attempt-repository.d.mts +1 -1
  362. package/dist/workflow-engine/index.d.mts +114 -395
  363. package/dist/workflow-engine/index.mjs +1 -1
  364. package/dist/workflow-engine/package.d.mts +1 -1
  365. package/dist/workflow-engine/package.mjs +1 -1
  366. package/dist/workflow-engine/provider-operation.d.mts +1 -1
  367. package/dist/workflow-engine/testing/index.d.mts +2 -2
  368. package/dist/workflow-engine/testing/index.mjs +1 -1
  369. package/dist/workflow-engine/testing/sqlite.d.mts +1 -1
  370. package/dist/workflow-engine/testing/sqlite.mjs +27 -27
  371. package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
  372. package/dist/workflow-engine/workflow-trigger-binding-consumer.d.mts +46 -0
  373. package/dist/workflow-engine/workflow-trigger-binding-consumer.mjs +1 -0
  374. package/dist/{workflow-transitions-DSc45ixc.mjs → workflow-transitions-DM0fN_eP.mjs} +1 -1
  375. package/dist/workflow-worker-DARC7UZl.mjs +1 -0
  376. package/dist/zod-json-schema-BAGAFfCN.mjs +1 -0
  377. package/package.json +29 -1
  378. package/dist/adapter-D5c5LrPN.mjs +0 -1
  379. package/dist/artifact-DGiXqb11.mjs +0 -1
  380. package/dist/attach-error-C3tngg6J.mjs +0 -1
  381. package/dist/authority-state-bootstrap-GPL_tqaT.mjs +0 -1
  382. package/dist/await-trigger-I3lrepb8.mjs +0 -1
  383. package/dist/bus-B6SAjgOC.mjs +0 -2
  384. package/dist/bus-C2l3K74u.mjs +0 -1
  385. package/dist/extension-DCA4pYrY.mjs +0 -1
  386. package/dist/extension-hjOPs10e.mjs +0 -1
  387. package/dist/framework-packages-C3RWfJDk.mjs +0 -1
  388. package/dist/handlers-CfnLyLfE.mjs +0 -57
  389. package/dist/load-extensions-D0DfjYLC.mjs +0 -1
  390. package/dist/model-BGgVmRnN.mjs +0 -1
  391. package/dist/namespace-DJfUADSV.mjs +0 -1
  392. package/dist/orchestrator-shared-BxmHCPvx.mjs +0 -1
  393. package/dist/package-CNUPPcU1.mjs +0 -7
  394. package/dist/package-Dft_RItb.mjs +0 -1
  395. package/dist/schemas-Cm09dXL4.mjs +0 -1
  396. package/dist/scoped-bus-C9BdNwfM.mjs +0 -1
  397. package/dist/session-BOGCd18q.mjs +0 -1
  398. package/dist/session-BTFiDoGz.mjs +0 -76
  399. package/dist/shared-BQ0CHIVy.mjs +0 -1
  400. package/dist/tool-approval-service-kBA0fRzm.mjs +0 -1
  401. package/dist/types-CJ_QZ1yW.d.mts +0 -1487
  402. package/dist/workflow-BfDbgtIQ.mjs +0 -1
  403. package/dist/workflow-worker-BN9XPxQO.mjs +0 -1
  404. package/dist/{adapter-auth-runtime-DO-FVTXg.mjs → adapter-auth-runtime-D9Lnl7cc.mjs} +0 -0
  405. package/dist/{adapter-binding-DQchUtrK.d.mts → adapter-binding-B-FBoCys.d.mts} +0 -0
  406. package/dist/{attempt-record-codec-CqO1_XnE.mjs → attempt-record-codec-DaFLKR5C.mjs} +0 -0
  407. package/dist/{base-orchestrator-BilsQNW1.d.mts → base-orchestrator-D9u4NyiM.d.mts} +0 -0
  408. package/dist/{capability-service-BqiLlRGA.mjs → capability-service-CJHNkjvm.mjs} +0 -0
  409. package/dist/{client-B--e2qcU.d.mts → client-4ihewPUm.d.mts} +0 -0
  410. package/dist/{client-binary-version-verifier-taewmKTY.mjs → client-binary-version-verifier-DJajc_Ff.mjs} +0 -0
  411. package/dist/{client-binary-version-verifier-CgjM_vGF.d.mts → client-binary-version-verifier-jDDZ64Ah.d.mts} +0 -0
  412. package/dist/{clients-namespace-DfxjG2ZP.d.mts → clients-namespace-DFWuUawf.d.mts} +0 -0
  413. package/dist/{config-namespace-BCqvufbD.d.mts → config-namespace-D1kyZj0B.d.mts} +0 -0
  414. package/dist/{create-static-mount-bbQhTt6W.mjs → create-static-mount-9tnGpIeK.mjs} +0 -0
  415. package/dist/{cross-spawn-B57KZuns.mjs → cross-spawn-BIgueAqr.mjs} +0 -0
  416. package/dist/{cursor-storage-DIFK_9hg.mjs → cursor-storage-ROWfiTh1.mjs} +0 -0
  417. package/dist/{definition-gnKgXU91.d.mts → definition-DB-kKc0d.d.mts} +0 -0
  418. package/dist/{definitions-xrrY0wgz.mjs → definitions-CF6YmEhL.mjs} +0 -0
  419. package/dist/{descriptor-to-package-DvF08krT.mjs → descriptor-to-package-BecVCopf.mjs} +0 -0
  420. package/dist/{drizzle-z_0SiGY8.mjs → drizzle-CPv3vdTE.mjs} +0 -0
  421. package/dist/{esm-CltRnX8_.mjs → esm-CBFWM8u_.mjs} +0 -0
  422. package/dist/{event-CmVjR6Ib.mjs → event-DR8U9Efx.mjs} +0 -0
  423. package/dist/{facet-BCI00njh.mjs → facet-DVsW12iF.mjs} +0 -0
  424. package/dist/{filesystem-service-CQ9yVkSz.d.mts → filesystem-service-Cm2RHKBa.d.mts} +0 -0
  425. package/dist/{handler-Cbv9FqDO.mjs → handler-Bqlk-6BY.mjs} +0 -0
  426. package/dist/{host-Caq6ZfSJ.mjs → host-k5yoyKHg.mjs} +0 -0
  427. package/dist/{identity-D6guMtmi.mjs → identity-DC3Pk0ps.mjs} +0 -0
  428. package/dist/{index-dtsLKOID.d.mts → index-42UdYStR.d.mts} +0 -0
  429. package/dist/{index-DR40QWlw.d.mts → index-BJAB-BW_.d.mts} +0 -0
  430. package/dist/{index-Dm1nUxCF.d.mts → index-BJMezANn.d.mts} +0 -0
  431. package/dist/{index-CnMu8BQl.d.mts → index-BQprJNA_.d.mts} +0 -0
  432. package/dist/{index-Cv-o5Krs.d.mts → index-BRCrFirq.d.mts} +0 -0
  433. package/dist/{index-BVRQEpAg.d.mts → index-BRzHs7Bx.d.mts} +6 -6
  434. /package/dist/{index-DXN_L5D6.d.mts → index-BSbGB23v.d.mts} +0 -0
  435. /package/dist/{index-vA--0lOM.d.mts → index-BVcQcphK.d.mts} +0 -0
  436. /package/dist/{index-ye0oklfU.d.mts → index-BcvqDfcN.d.mts} +0 -0
  437. /package/dist/{index-CGZQVTid.d.mts → index-BeENojSx2.d.mts} +0 -0
  438. /package/dist/{index-DjgLchuQ.d.mts → index-Beo_Ik8-.d.mts} +0 -0
  439. /package/dist/{index-sS6KUlrx.d.mts → index-BgGe9WZz.d.mts} +0 -0
  440. /package/dist/{index-CWHfOz6d.d.mts → index-CK3f0bAL.d.mts} +0 -0
  441. /package/dist/{index-DZunhZec.d.mts → index-CQuRTeRa.d.mts} +0 -0
  442. /package/dist/{index-jTaAHsul.d.mts → index-CRmE88hi.d.mts} +0 -0
  443. /package/dist/{index-CjdRdsd0.d.mts → index-CvW9_SzR.d.mts} +0 -0
  444. /package/dist/{index-ByKi34v5.d.mts → index-CxSSdIZz.d.mts} +0 -0
  445. /package/dist/{index-vcSj12YQ.d.mts → index-E4SET1AA.d.mts} +0 -0
  446. /package/dist/{index-DN4NOCqN2.d.mts → index-Ol9RBB0W2.d.mts} +0 -0
  447. /package/dist/{index-BIdsFcQs2.d.mts → index-aoxdnhJ42.d.mts} +0 -0
  448. /package/dist/{index-SsBHjUqA.d.mts → index-nydhGvXa.d.mts} +0 -0
  449. /package/dist/{jsonl-transport-bQl3JwIu.mjs → jsonl-transport-Bp_6pB2a.mjs} +0 -0
  450. /package/dist/{lib-DOBXZmYX.mjs → lib-Bwdd2m81.mjs} +0 -0
  451. /package/dist/{model-registry-CmgcPDH3.mjs → model-registry-Y854mUml.mjs} +0 -0
  452. /package/dist/{model-registry-xyBKSye-.mjs → model-registry-yURX738J.mjs} +0 -0
  453. /package/dist/{modes-BheyN7SS.mjs → modes-DmUsjHdV.mjs} +0 -0
  454. /package/dist/{namespace-HO2J9sO8.mjs → namespace-B9FEGuEu.mjs} +0 -0
  455. /package/dist/{namespace-jDhZjw-i.d.mts → namespace-Bi3CmYQy.d.mts} +0 -0
  456. /package/dist/{namespace-GPA7zots.d.mts → namespace-BusZERU8.d.mts} +0 -0
  457. /package/dist/{namespace-BOkKoq34.d.mts → namespace-ByP1Iipi.d.mts} +0 -0
  458. /package/dist/{namespace-YytVKIgI.d.mts → namespace-C1D77w7U.d.mts} +0 -0
  459. /package/dist/{namespace-CErHuXtb.d.mts → namespace-C6CVEGH8.d.mts} +0 -0
  460. /package/dist/{namespace-C-9si-fV.mjs → namespace-CfIW0hpQ.mjs} +0 -0
  461. /package/dist/{namespace-YxU1xf-K.mjs → namespace-CkBbNFSU.mjs} +0 -0
  462. /package/dist/{namespace-DWCEo-9M.d.mts → namespace-DX1Ec15L.d.mts} +0 -0
  463. /package/dist/{namespace-CWGKCNZm.mjs → namespace-DbNWsPFY.mjs} +0 -0
  464. /package/dist/{namespace-Cv1RFP7n.d.mts → namespace-Dgg0uoe6.d.mts} +0 -0
  465. /package/dist/{namespace-tGRAod3o.d.mts → namespace-s2y_NFKf.d.mts} +0 -0
  466. /package/dist/{namespace-Blp4c8GK.d.mts → namespace-yREpGJgG.d.mts} +0 -0
  467. /package/dist/{out-CvjtANXN.mjs → out-DrhwCgqM.mjs} +0 -0
  468. /package/dist/{packages-DtEEP0Vt.mjs → packages-FBv3fAOR.mjs} +0 -0
  469. /package/dist/{packages-BZ6pzFIq.d.mts → packages-N3-2Kl-Y.d.mts} +0 -0
  470. /package/dist/{platform-Bv8llU9c.mjs → platform-BrsMv_S3.mjs} +0 -0
  471. /package/dist/{provider-operation-Cxoe2SUr.d.mts → provider-operation-DJ_TLZFf.d.mts} +0 -0
  472. /package/dist/{providers-Co5UszRH.mjs → providers-CCcn4Ndp.mjs} +0 -0
  473. /package/dist/{providers-namespace-DjFkmvBR.d.mts → providers-namespace-DeJBh6MP.d.mts} +0 -0
  474. /package/dist/{quick-lru-CrOpWwrf.mjs → quick-lru-uwB0hP-y.mjs} +0 -0
  475. /package/dist/{schema-introspection-DgWQCpwx.mjs → schema-introspection-C1wvklj9.mjs} +0 -0
  476. /package/dist/{schema-Db-y-09L.mjs → schema-jIapW8Kb.mjs} +0 -0
  477. /package/dist/{schemas-CR8hSqTy.d.mts → schemas-B7zo7Zcx.d.mts} +0 -0
  478. /package/dist/{schemas-CqRm0i9a.mjs → schemas-BNdiVBWh.mjs} +0 -0
  479. /package/dist/{schemas-B1NWNASS.d.mts → schemas-C-Bm6Oac.d.mts} +0 -0
  480. /package/dist/{schemas-BO7uOum6.d.mts → schemas-CD0wOQxx.d.mts} +0 -0
  481. /package/dist/{schemas-N6x2z7Lf.d.mts → schemas-CeUI2i5j.d.mts} +0 -0
  482. /package/dist/{schemas-CwbYk_kZ.d.mts → schemas-Cg-Kwp8c.d.mts} +0 -0
  483. /package/dist/{schemas-BtZqovRH.d.mts → schemas-Cv3rR9Sz.d.mts} +0 -0
  484. /package/dist/{schemas-tDf_WiC8.mjs → schemas-CvHFbzdy.mjs} +0 -0
  485. /package/dist/{schemas-BsVYZviy.d.mts → schemas-DZH9lpxs.d.mts} +0 -0
  486. /package/dist/{schemas-BGExwp3j.mjs → schemas-DgwEVUt-.mjs} +0 -0
  487. /package/dist/{schemas-Bfxskx_2.mjs → schemas-mLpOfMoN.mjs} +0 -0
  488. /package/dist/{schemas-CQyRBqD6.d.mts → schemas-qA279_j_.d.mts} +0 -0
  489. /package/dist/{schemas-miYxK_Z1.d.mts → schemas-sMoRnBdZ.d.mts} +0 -0
  490. /package/dist/{semver-DlM8znk4.mjs → semver-DTXuyLcK.mjs} +0 -0
  491. /package/dist/{server-lifecycle-Dsq56aqC.d.mts → server-lifecycle-C_8iKgat.d.mts} +0 -0
  492. /package/dist/{server-lifecycle-kmQ5PUDv.mjs → server-lifecycle-DKx_fWlq.mjs} +0 -0
  493. /package/dist/{shared-schemas-DXwyMCwZ.mjs → shared-schemas-aahW97QW.mjs} +0 -0
  494. /package/dist/{src-CCu8TwL6.mjs → src-DHqsl5Pg.mjs} +0 -0
  495. /package/dist/{storage-namespace-BSrv0vXR.mjs → storage-namespace-Dz2jsssp.mjs} +0 -0
  496. /package/dist/{storage-namespace-dfywhXR3.d.mts → storage-namespace-Tf3P5yJ5.d.mts} +0 -0
  497. /package/dist/{storage-namespace-definition-BvlX0QV_.d.mts → storage-namespace-definition-BsnYAPot.d.mts} +0 -0
  498. /package/dist/{storage-namespace-definition-CkMKt7-I.mjs → storage-namespace-definition-CDef0E20.mjs} +0 -0
  499. /package/dist/{supports-color-DUugCQsK.mjs → supports-color-i7OTnKcZ.mjs} +0 -0
  500. /package/dist/{telemetry-Pr3oP2rk.mjs → telemetry-BvCBUjFg.mjs} +0 -0
  501. /package/dist/{timeout-DWDhddRJ.mjs → timeout-B0nYjLc8.mjs} +0 -0
  502. /package/dist/{tray-menu-service-BBLa-Rcv.mjs → tray-menu-service-Deo6yyP8.mjs} +0 -0
  503. /package/dist/{types-BrcjaNPZ.d.mts → types-CNS55jvt.d.mts} +0 -0
  504. /package/dist/{types-b54n1o57.d.mts → types-Ce6LL25v.d.mts} +0 -0
  505. /package/dist/{ui-config-CyCdlns_.mjs → ui-config-BIyGzMNL.mjs} +0 -0
  506. /package/dist/{variant-krjlTdJt.mjs → variant-B4uWdxW7.mjs} +0 -0
  507. /package/dist/{window-registry-BDnZLPVx.d.mts → window-registry-BLtVx3Iw.d.mts} +0 -0
  508. /package/dist/{window-registry-I-imZHV_.mjs → window-registry-CoBJq3u4.mjs} +0 -0
@@ -1,5 +1,5 @@
1
- import { i as JsonValue$1 } from "./json-value-Brslhqbm.mjs";
2
- import { s as MessageBlock$1 } from "./index-DnG-QFpG.mjs";
1
+ import { a as JsonValue$1 } from "./json-value-C1RGgS0a.mjs";
2
+ import { s as MessageBlock$1 } from "./index-CSN_0sCo.mjs";
3
3
  import * as _$zod from "zod";
4
4
  import { z } from "zod";
5
5
  import * as _$_makaio_core0 from "@makaio/framework/core";
@@ -65,14 +65,32 @@ type SessionCreateBase = z.infer<typeof SessionCreateBaseSchema>;
65
65
  //#region core/contracts/src/session/schemas/agent.d.ts
66
66
  /**
67
67
  * Agent lifecycle status.
68
+ * - 'starting': The agent row exists and its start is in flight; no connector is
69
+ * confirmed yet. Distinct from `'idle'` because a caller that persists the row
70
+ * before dispatching cannot claim connector readiness, and `'idle'` already
71
+ * means exactly that — a consumer seeing `'idle'` will use the agent without
72
+ * rehydrating it.
68
73
  * - 'idle': Connector ready, no active turn
69
74
  * - 'active': Turn in progress
70
75
  * - 'dead': Connector lost, awaiting rehydration
71
76
  * - 'disposed': Agent replaced (cross-adapter switch) — retained for message metadata
77
+ *
78
+ * **`'disposed'` is terminal.** Storage refuses every later transition out of it,
79
+ * on both the compare-and-swap seam (`storage:agent.updateStatus`) and the
80
+ * whole-record one (`storage:agent.set`, whose conflict path keeps the stored
81
+ * value). Ownership authority is a predicate over this column, so a revived
82
+ * status would let a removed agent reserve and settle again.
83
+ *
84
+ * **Status is never liveness evidence.** Whether a `'starting'` row belongs to an
85
+ * attempt that is still running, or to a process that died mid-start, is decided
86
+ * by the starting runtime's own in-flight registry and by a compare-and-swap on
87
+ * this column (`storage:agent.updateStatus`'s `expectedStatus`) — never by
88
+ * reading the status alone.
72
89
  */
73
90
  declare const AgentStatusSchema$1: z.ZodEnum<{
74
91
  idle: "idle";
75
92
  active: "active";
93
+ starting: "starting";
76
94
  dead: "dead";
77
95
  disposed: "disposed";
78
96
  }>;
@@ -89,6 +107,14 @@ declare const MakaioSessionAgentSchema$1: z.ZodObject<{
89
107
  adapterName: z.ZodString;
90
108
  sessionId: z.ZodString;
91
109
  adapterSessionId: z.ZodOptional<z.ZodString>;
110
+ currentAdapterSessionId: z.ZodOptional<z.ZodString>;
111
+ currentAdapterSessionIdState: z.ZodOptional<z.ZodEnum<{
112
+ confirmed: "confirmed";
113
+ moved: "moved";
114
+ inherited: "inherited";
115
+ }>>;
116
+ revision: z.ZodOptional<z.ZodNumber>;
117
+ currencyFence: z.ZodOptional<z.ZodNumber>;
92
118
  model: z.ZodOptional<z.ZodString>;
93
119
  cwd: z.ZodOptional<z.ZodString>;
94
120
  allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -109,6 +135,7 @@ declare const MakaioSessionAgentSchema$1: z.ZodObject<{
109
135
  status: z.ZodEnum<{
110
136
  idle: "idle";
111
137
  active: "active";
138
+ starting: "starting";
112
139
  dead: "dead";
113
140
  disposed: "disposed";
114
141
  }>;
@@ -136,6 +163,14 @@ declare const MakaioSessionSchema: z.ZodObject<{
136
163
  adapterName: z.ZodString;
137
164
  sessionId: z.ZodString;
138
165
  adapterSessionId: z.ZodOptional<z.ZodString>;
166
+ currentAdapterSessionId: z.ZodOptional<z.ZodString>;
167
+ currentAdapterSessionIdState: z.ZodOptional<z.ZodEnum<{
168
+ confirmed: "confirmed";
169
+ moved: "moved";
170
+ inherited: "inherited";
171
+ }>>;
172
+ revision: z.ZodOptional<z.ZodNumber>;
173
+ currencyFence: z.ZodOptional<z.ZodNumber>;
139
174
  model: z.ZodOptional<z.ZodString>;
140
175
  cwd: z.ZodOptional<z.ZodString>;
141
176
  allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -156,6 +191,7 @@ declare const MakaioSessionSchema: z.ZodObject<{
156
191
  status: z.ZodEnum<{
157
192
  idle: "idle";
158
193
  active: "active";
194
+ starting: "starting";
159
195
  dead: "dead";
160
196
  disposed: "disposed";
161
197
  }>;
@@ -163,8 +199,8 @@ declare const MakaioSessionSchema: z.ZodObject<{
163
199
  lastActivityAt: z.ZodNumber;
164
200
  }, z.core.$strip>>;
165
201
  status: z.ZodEnum<{
166
- discovered: "discovered";
167
202
  closed: "closed";
203
+ discovered: "discovered";
168
204
  active: "active";
169
205
  archived: "archived";
170
206
  }>;
@@ -187,6 +223,12 @@ declare const MakaioSessionSchema: z.ZodObject<{
187
223
  }>>;
188
224
  adapterName: z.ZodOptional<z.ZodString>;
189
225
  adapterSessionId: z.ZodOptional<z.ZodString>;
226
+ currentAdapterSessionId: z.ZodOptional<z.ZodString>;
227
+ currentAdapterSessionIdState: z.ZodOptional<z.ZodEnum<{
228
+ confirmed: "confirmed";
229
+ moved: "moved";
230
+ inherited: "inherited";
231
+ }>>;
190
232
  adapterId: z.ZodOptional<z.ZodString>;
191
233
  clientId: z.ZodOptional<z.ZodString>;
192
234
  clientAccountId: z.ZodOptional<z.ZodString>;
@@ -264,6 +306,14 @@ declare const SessionWithPreviewSchema: z.ZodObject<{
264
306
  adapterName: z.ZodString;
265
307
  sessionId: z.ZodString;
266
308
  adapterSessionId: z.ZodOptional<z.ZodString>;
309
+ currentAdapterSessionId: z.ZodOptional<z.ZodString>;
310
+ currentAdapterSessionIdState: z.ZodOptional<z.ZodEnum<{
311
+ confirmed: "confirmed";
312
+ moved: "moved";
313
+ inherited: "inherited";
314
+ }>>;
315
+ revision: z.ZodOptional<z.ZodNumber>;
316
+ currencyFence: z.ZodOptional<z.ZodNumber>;
267
317
  model: z.ZodOptional<z.ZodString>;
268
318
  cwd: z.ZodOptional<z.ZodString>;
269
319
  allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -284,6 +334,7 @@ declare const SessionWithPreviewSchema: z.ZodObject<{
284
334
  status: z.ZodEnum<{
285
335
  idle: "idle";
286
336
  active: "active";
337
+ starting: "starting";
287
338
  dead: "dead";
288
339
  disposed: "disposed";
289
340
  }>;
@@ -291,8 +342,8 @@ declare const SessionWithPreviewSchema: z.ZodObject<{
291
342
  lastActivityAt: z.ZodNumber;
292
343
  }, z.core.$strip>>;
293
344
  status: z.ZodEnum<{
294
- discovered: "discovered";
295
345
  closed: "closed";
346
+ discovered: "discovered";
296
347
  active: "active";
297
348
  archived: "archived";
298
349
  }>;
@@ -315,6 +366,12 @@ declare const SessionWithPreviewSchema: z.ZodObject<{
315
366
  }>>;
316
367
  adapterName: z.ZodOptional<z.ZodString>;
317
368
  adapterSessionId: z.ZodOptional<z.ZodString>;
369
+ currentAdapterSessionId: z.ZodOptional<z.ZodString>;
370
+ currentAdapterSessionIdState: z.ZodOptional<z.ZodEnum<{
371
+ confirmed: "confirmed";
372
+ moved: "moved";
373
+ inherited: "inherited";
374
+ }>>;
318
375
  adapterId: z.ZodOptional<z.ZodString>;
319
376
  clientId: z.ZodOptional<z.ZodString>;
320
377
  clientAccountId: z.ZodOptional<z.ZodString>;
@@ -466,6 +523,14 @@ declare const SessionSnapshotSchema: z.ZodObject<{
466
523
  adapterName: z.ZodString;
467
524
  sessionId: z.ZodString;
468
525
  adapterSessionId: z.ZodOptional<z.ZodString>;
526
+ currentAdapterSessionId: z.ZodOptional<z.ZodString>;
527
+ currentAdapterSessionIdState: z.ZodOptional<z.ZodEnum<{
528
+ confirmed: "confirmed";
529
+ moved: "moved";
530
+ inherited: "inherited";
531
+ }>>;
532
+ revision: z.ZodOptional<z.ZodNumber>;
533
+ currencyFence: z.ZodOptional<z.ZodNumber>;
469
534
  model: z.ZodOptional<z.ZodString>;
470
535
  cwd: z.ZodOptional<z.ZodString>;
471
536
  allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -486,6 +551,7 @@ declare const SessionSnapshotSchema: z.ZodObject<{
486
551
  status: z.ZodEnum<{
487
552
  idle: "idle";
488
553
  active: "active";
554
+ starting: "starting";
489
555
  dead: "dead";
490
556
  disposed: "disposed";
491
557
  }>;
@@ -493,8 +559,8 @@ declare const SessionSnapshotSchema: z.ZodObject<{
493
559
  lastActivityAt: z.ZodNumber;
494
560
  }, z.core.$strip>>;
495
561
  status: z.ZodEnum<{
496
- discovered: "discovered";
497
562
  closed: "closed";
563
+ discovered: "discovered";
498
564
  active: "active";
499
565
  archived: "archived";
500
566
  }>;
@@ -517,6 +583,12 @@ declare const SessionSnapshotSchema: z.ZodObject<{
517
583
  }>>;
518
584
  adapterName: z.ZodOptional<z.ZodString>;
519
585
  adapterSessionId: z.ZodOptional<z.ZodString>;
586
+ currentAdapterSessionId: z.ZodOptional<z.ZodString>;
587
+ currentAdapterSessionIdState: z.ZodOptional<z.ZodEnum<{
588
+ confirmed: "confirmed";
589
+ moved: "moved";
590
+ inherited: "inherited";
591
+ }>>;
520
592
  adapterId: z.ZodOptional<z.ZodString>;
521
593
  clientId: z.ZodOptional<z.ZodString>;
522
594
  clientAccountId: z.ZodOptional<z.ZodString>;
@@ -579,6 +651,14 @@ declare const SessionSnapshotSchema: z.ZodObject<{
579
651
  adapterName: z.ZodString;
580
652
  sessionId: z.ZodString;
581
653
  adapterSessionId: z.ZodOptional<z.ZodString>;
654
+ currentAdapterSessionId: z.ZodOptional<z.ZodString>;
655
+ currentAdapterSessionIdState: z.ZodOptional<z.ZodEnum<{
656
+ confirmed: "confirmed";
657
+ moved: "moved";
658
+ inherited: "inherited";
659
+ }>>;
660
+ revision: z.ZodOptional<z.ZodNumber>;
661
+ currencyFence: z.ZodOptional<z.ZodNumber>;
582
662
  model: z.ZodOptional<z.ZodString>;
583
663
  cwd: z.ZodOptional<z.ZodString>;
584
664
  allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -599,6 +679,7 @@ declare const SessionSnapshotSchema: z.ZodObject<{
599
679
  status: z.ZodEnum<{
600
680
  idle: "idle";
601
681
  active: "active";
682
+ starting: "starting";
602
683
  dead: "dead";
603
684
  disposed: "disposed";
604
685
  }>;
@@ -679,8 +760,8 @@ declare const SessionSnapshotSchema: z.ZodObject<{
679
760
  editOf: z.ZodOptional<z.ZodString>;
680
761
  origin: z.ZodOptional<z.ZodEnum<{
681
762
  text: "text";
682
- voice: "voice";
683
763
  compact: "compact";
764
+ voice: "voice";
684
765
  }>>;
685
766
  }, z.core.$strip>>;
686
767
  turns: z.ZodArray<z.ZodObject<{
@@ -876,8 +957,8 @@ declare const SessionSnapshotSchema: z.ZodObject<{
876
957
  }>>;
877
958
  origin: z.ZodOptional<z.ZodEnum<{
878
959
  text: "text";
879
- voice: "voice";
880
960
  compact: "compact";
961
+ voice: "voice";
881
962
  }>>;
882
963
  }, z.core.$strip>;
883
964
  }, z.core.$strip>, z.ZodObject<{
@@ -1038,8 +1119,8 @@ declare const SessionSnapshotSchema: z.ZodObject<{
1038
1119
  type: z.ZodLiteral<"locality.degraded">;
1039
1120
  payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
1040
1121
  intent: z.ZodEnum<{
1041
- fork: "fork";
1042
1122
  resume: "resume";
1123
+ fork: "fork";
1043
1124
  }>;
1044
1125
  verdictKind: z.ZodLiteral<"degrade">;
1045
1126
  reason: z.ZodEnum<{
@@ -1057,14 +1138,15 @@ declare const SessionSnapshotSchema: z.ZodObject<{
1057
1138
  "native-attempt-failed": "native-attempt-failed";
1058
1139
  "agent-already-started": "agent-already-started";
1059
1140
  "fork-point-unresolvable": "fork-point-unresolvable";
1141
+ "adapter-session-moved": "adapter-session-moved";
1060
1142
  }>;
1061
1143
  agentId: z.ZodOptional<z.ZodString>;
1062
1144
  adapterId: z.ZodOptional<z.ZodString>;
1063
1145
  turnId: z.ZodOptional<z.ZodString>;
1064
1146
  }, z.core.$strip>, z.ZodObject<{
1065
1147
  intent: z.ZodEnum<{
1066
- fork: "fork";
1067
1148
  resume: "resume";
1149
+ fork: "fork";
1068
1150
  }>;
1069
1151
  verdictKind: z.ZodLiteral<"foreign">;
1070
1152
  foreignMachineId: z.ZodString;
@@ -1111,7 +1193,7 @@ declare const AgentRoleSchema: z.ZodEnum<{
1111
1193
  lead: "lead";
1112
1194
  member: "member";
1113
1195
  }>;
1114
- type AgentRole = z.infer<typeof AgentRoleSchema>;
1196
+ type AgentRole$1 = z.infer<typeof AgentRoleSchema>;
1115
1197
  /**
1116
1198
  * Type of branch a session represents.
1117
1199
  * - fork: Independent exploration (navigates away)
@@ -1133,6 +1215,30 @@ declare const BranchKindSchema: z.ZodEnum<{
1133
1215
  aside: "aside";
1134
1216
  }>;
1135
1217
  type BranchKind$1 = z.infer<typeof BranchKindSchema>;
1218
+ /**
1219
+ * Currency state of the session row's provider-native resume identity.
1220
+ *
1221
+ * The sessions row carries two distinct provider-session concepts:
1222
+ * `adapterSessionId` is the **immutable origin identity** (import key,
1223
+ * write-once), while `currentAdapterSessionId` plus this state form the
1224
+ * **resume currency** — which provider session, if any, a resume attach may
1225
+ * legitimately target right now.
1226
+ *
1227
+ * - `inherited`: the provider session has never moved, so the origin
1228
+ * `adapterSessionId` still is the valid currency. Default for pre-existing
1229
+ * rows and for imports.
1230
+ * - `moved`: the provider session moved but the provider has not confirmed a
1231
+ * replacement yet. Neither the origin ID nor `currentAdapterSessionId` may
1232
+ * be resumed — callers degrade to fresh-with-history.
1233
+ * - `confirmed`: `currentAdapterSessionId` is the provider-confirmed currency
1234
+ * and supersedes the origin ID for resume purposes.
1235
+ */
1236
+ declare const AdapterSessionCurrencyStateSchema: z.ZodEnum<{
1237
+ confirmed: "confirmed";
1238
+ moved: "moved";
1239
+ inherited: "inherited";
1240
+ }>;
1241
+ type AdapterSessionCurrencyState = z.infer<typeof AdapterSessionCurrencyStateSchema>;
1136
1242
  /**
1137
1243
  * Import-specific lifecycle status.
1138
1244
  * - 'discovered': Found in logs, not fully imported yet
@@ -1223,8 +1329,8 @@ declare const SessionMessageRoleSchema: z.ZodEnum<{
1223
1329
  type SessionMessageRole = z.infer<typeof SessionMessageRoleSchema>;
1224
1330
  declare const SessionMessageOriginSchema: z.ZodEnum<{
1225
1331
  text: "text";
1226
- voice: "voice";
1227
1332
  compact: "compact";
1333
+ voice: "voice";
1228
1334
  }>;
1229
1335
  type SessionMessageOrigin$1 = z.infer<typeof SessionMessageOriginSchema>;
1230
1336
  /**
@@ -1315,8 +1421,8 @@ declare const SessionMessageSchema$1: z.ZodObject<{
1315
1421
  editOf: z.ZodOptional<z.ZodString>;
1316
1422
  origin: z.ZodOptional<z.ZodEnum<{
1317
1423
  text: "text";
1318
- voice: "voice";
1319
1424
  compact: "compact";
1425
+ voice: "voice";
1320
1426
  }>>;
1321
1427
  }, z.core.$strip>;
1322
1428
  type SessionMessage$1 = z.infer<typeof SessionMessageSchema$1>;
@@ -1536,9 +1642,9 @@ declare const AgentAttachResolvedRequestSchema: z.ZodObject<{
1536
1642
  description: z.ZodOptional<z.ZodString>;
1537
1643
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1538
1644
  exposureMode: z.ZodEnum<{
1539
- hidden: "hidden";
1540
1645
  direct: "direct";
1541
1646
  discovery: "discovery";
1647
+ hidden: "hidden";
1542
1648
  }>;
1543
1649
  enabled: z.ZodBoolean;
1544
1650
  enabledBy: z.ZodOptional<z.ZodEnum<{
@@ -1555,9 +1661,9 @@ declare const AgentAttachResolvedRequestSchema: z.ZodObject<{
1555
1661
  description: z.ZodOptional<z.ZodString>;
1556
1662
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1557
1663
  exposureMode: z.ZodEnum<{
1558
- hidden: "hidden";
1559
1664
  direct: "direct";
1560
1665
  discovery: "discovery";
1666
+ hidden: "hidden";
1561
1667
  }>;
1562
1668
  enabled: z.ZodBoolean;
1563
1669
  enabledBy: z.ZodOptional<z.ZodEnum<{
@@ -1573,6 +1679,7 @@ declare const AgentAttachResolvedRequestSchema: z.ZodObject<{
1573
1679
  kind: z.ZodLiteral<"adapter">;
1574
1680
  adapterName: z.ZodOptional<z.ZodString>;
1575
1681
  adapterId: z.ZodOptional<z.ZodString>;
1682
+ machineId: z.ZodOptional<z.ZodString>;
1576
1683
  providerContext: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1577
1684
  state: z.ZodLiteral<"resolved">;
1578
1685
  providerConfigId: z.ZodString;
@@ -1805,7 +1912,10 @@ declare const OrchestratorSchemas: {
1805
1912
  *
1806
1913
  * Single entry point for all user messages. Handles:
1807
1914
  * - Creating session if sessionId does not exist
1808
- * - Auto-attaching agent via adapter.startAgent if session has no agents
1915
+ * - Auto-attaching agent via adapter.startAgent if session has no agents —
1916
+ * only for the default send (no `agentIds`). A send that states its targets,
1917
+ * whether named ids or `'all'`, is refused against a session that has none
1918
+ * and leaves no agent behind
1809
1919
  * - Turn lifecycle (creates turn if none active)
1810
1920
  * - Routing to targeted agents
1811
1921
  *
@@ -2031,9 +2141,9 @@ declare const OrchestratorSchemas: {
2031
2141
  description: z.ZodOptional<z.ZodString>;
2032
2142
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2033
2143
  exposureMode: z.ZodEnum<{
2034
- hidden: "hidden";
2035
2144
  direct: "direct";
2036
2145
  discovery: "discovery";
2146
+ hidden: "hidden";
2037
2147
  }>;
2038
2148
  enabled: z.ZodBoolean;
2039
2149
  enabledBy: z.ZodOptional<z.ZodEnum<{
@@ -2050,9 +2160,9 @@ declare const OrchestratorSchemas: {
2050
2160
  description: z.ZodOptional<z.ZodString>;
2051
2161
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2052
2162
  exposureMode: z.ZodEnum<{
2053
- hidden: "hidden";
2054
2163
  direct: "direct";
2055
2164
  discovery: "discovery";
2165
+ hidden: "hidden";
2056
2166
  }>;
2057
2167
  enabled: z.ZodBoolean;
2058
2168
  enabledBy: z.ZodOptional<z.ZodEnum<{
@@ -2068,6 +2178,7 @@ declare const OrchestratorSchemas: {
2068
2178
  kind: z.ZodLiteral<"adapter">;
2069
2179
  adapterName: z.ZodOptional<z.ZodString>;
2070
2180
  adapterId: z.ZodOptional<z.ZodString>;
2181
+ machineId: z.ZodOptional<z.ZodString>;
2071
2182
  }, z.core.$loose>, z.ZodObject<{
2072
2183
  providerConfigId: z.ZodOptional<z.ZodString>;
2073
2184
  reasoningEffort: z.ZodOptional<z.ZodEnum<{
@@ -2134,9 +2245,9 @@ declare const OrchestratorSchemas: {
2134
2245
  description: z.ZodOptional<z.ZodString>;
2135
2246
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2136
2247
  exposureMode: z.ZodEnum<{
2137
- hidden: "hidden";
2138
2248
  direct: "direct";
2139
2249
  discovery: "discovery";
2250
+ hidden: "hidden";
2140
2251
  }>;
2141
2252
  enabled: z.ZodBoolean;
2142
2253
  enabledBy: z.ZodOptional<z.ZodEnum<{
@@ -2153,9 +2264,9 @@ declare const OrchestratorSchemas: {
2153
2264
  description: z.ZodOptional<z.ZodString>;
2154
2265
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2155
2266
  exposureMode: z.ZodEnum<{
2156
- hidden: "hidden";
2157
2267
  direct: "direct";
2158
2268
  discovery: "discovery";
2269
+ hidden: "hidden";
2159
2270
  }>;
2160
2271
  enabled: z.ZodBoolean;
2161
2272
  enabledBy: z.ZodOptional<z.ZodEnum<{
@@ -2237,9 +2348,9 @@ declare const OrchestratorSchemas: {
2237
2348
  description: z.ZodOptional<z.ZodString>;
2238
2349
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2239
2350
  exposureMode: z.ZodEnum<{
2240
- hidden: "hidden";
2241
2351
  direct: "direct";
2242
2352
  discovery: "discovery";
2353
+ hidden: "hidden";
2243
2354
  }>;
2244
2355
  enabled: z.ZodBoolean;
2245
2356
  enabledBy: z.ZodOptional<z.ZodEnum<{
@@ -2256,9 +2367,9 @@ declare const OrchestratorSchemas: {
2256
2367
  description: z.ZodOptional<z.ZodString>;
2257
2368
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2258
2369
  exposureMode: z.ZodEnum<{
2259
- hidden: "hidden";
2260
2370
  direct: "direct";
2261
2371
  discovery: "discovery";
2372
+ hidden: "hidden";
2262
2373
  }>;
2263
2374
  enabled: z.ZodBoolean;
2264
2375
  enabledBy: z.ZodOptional<z.ZodEnum<{
@@ -2438,6 +2549,7 @@ declare const OrchestratorSchemas: {
2438
2549
  "native-attempt-failed": "native-attempt-failed";
2439
2550
  "agent-already-started": "agent-already-started";
2440
2551
  "fork-point-unresolvable": "fork-point-unresolvable";
2552
+ "adapter-session-moved": "adapter-session-moved";
2441
2553
  }>;
2442
2554
  }, z.core.$strip>, z.ZodObject<{
2443
2555
  kind: z.ZodLiteral<"foreign">;
@@ -2465,14 +2577,15 @@ declare const OrchestratorSchemas: {
2465
2577
  skipConnectorSwapWarning: z.ZodOptional<z.ZodBoolean>;
2466
2578
  origin: z.ZodOptional<z.ZodEnum<{
2467
2579
  text: "text";
2468
- voice: "voice";
2469
2580
  compact: "compact";
2581
+ voice: "voice";
2470
2582
  }>>;
2471
2583
  }, z.core.$strip>;
2472
2584
  response: z.ZodObject<{
2473
2585
  messageId: z.ZodString;
2474
2586
  turnId: z.ZodString;
2475
2587
  sessionId: z.ZodString;
2588
+ deferredAgentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
2476
2589
  }, z.core.$strip>;
2477
2590
  };
2478
2591
  /**
@@ -2511,8 +2624,7 @@ declare const OrchestratorSchemas: {
2511
2624
  'agent.attach': {
2512
2625
  request: z.ZodObject<{
2513
2626
  sessionId: z.ZodString;
2514
- agent: z.ZodObject<{
2515
- kind: z.ZodString;
2627
+ agent: z.ZodUnion<readonly [z.ZodObject<{
2516
2628
  providerConfigId: z.ZodOptional<z.ZodString>;
2517
2629
  model: z.ZodOptional<z.ZodString>;
2518
2630
  reasoningEffort: z.ZodOptional<z.ZodEnum<{
@@ -2579,9 +2691,9 @@ declare const OrchestratorSchemas: {
2579
2691
  description: z.ZodOptional<z.ZodString>;
2580
2692
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2581
2693
  exposureMode: z.ZodEnum<{
2582
- hidden: "hidden";
2583
2694
  direct: "direct";
2584
2695
  discovery: "discovery";
2696
+ hidden: "hidden";
2585
2697
  }>;
2586
2698
  enabled: z.ZodBoolean;
2587
2699
  enabledBy: z.ZodOptional<z.ZodEnum<{
@@ -2598,9 +2710,9 @@ declare const OrchestratorSchemas: {
2598
2710
  description: z.ZodOptional<z.ZodString>;
2599
2711
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2600
2712
  exposureMode: z.ZodEnum<{
2601
- hidden: "hidden";
2602
2713
  direct: "direct";
2603
2714
  discovery: "discovery";
2715
+ hidden: "hidden";
2604
2716
  }>;
2605
2717
  enabled: z.ZodBoolean;
2606
2718
  enabledBy: z.ZodOptional<z.ZodEnum<{
@@ -2613,170 +2725,12 @@ declare const OrchestratorSchemas: {
2613
2725
  }, z.core.$strip>>;
2614
2726
  allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
2615
2727
  adapterConfig: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
2616
- }, z.core.$loose>;
2617
- initialMessage: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2618
- role: z.ZodOptional<z.ZodEnum<{
2619
- user: "user";
2620
- assistant: "assistant";
2621
- system: "system";
2622
- }>>;
2623
- blocks: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
2624
- type: z.ZodLiteral<"text">;
2625
- content: z.ZodString;
2626
- }, z.core.$strip>, z.ZodObject<{
2627
- type: z.ZodLiteral<"image">;
2628
- source: z.ZodDiscriminatedUnion<[z.ZodObject<{
2629
- type: z.ZodLiteral<"base64">;
2630
- data: z.ZodString;
2631
- mimeType: z.ZodString;
2632
- }, z.core.$strip>, z.ZodObject<{
2633
- type: z.ZodLiteral<"url">;
2634
- url: z.ZodString;
2635
- mimeType: z.ZodOptional<z.ZodString>;
2636
- }, z.core.$strip>], "type">;
2637
- }, z.core.$strip>, z.ZodObject<{
2638
- type: z.ZodLiteral<"document">;
2639
- source: z.ZodDiscriminatedUnion<[z.ZodObject<{
2640
- type: z.ZodLiteral<"base64">;
2641
- data: z.ZodString;
2642
- mimeType: z.ZodString;
2643
- }, z.core.$strip>, z.ZodObject<{
2644
- type: z.ZodLiteral<"url">;
2645
- url: z.ZodString;
2646
- mimeType: z.ZodOptional<z.ZodString>;
2647
- }, z.core.$strip>], "type">;
2648
- }, z.core.$strip>, z.ZodObject<{
2649
- type: z.ZodLiteral<"attachment">;
2650
- fileName: z.ZodString;
2651
- filePath: z.ZodString;
2652
- source: z.ZodDiscriminatedUnion<[z.ZodObject<{
2653
- type: z.ZodLiteral<"base64">;
2654
- data: z.ZodString;
2655
- mimeType: z.ZodString;
2656
- }, z.core.$strip>, z.ZodObject<{
2657
- type: z.ZodLiteral<"url">;
2658
- url: z.ZodString;
2659
- mimeType: z.ZodOptional<z.ZodString>;
2660
- }, z.core.$strip>], "type">;
2661
- displayName: z.ZodOptional<z.ZodString>;
2662
- attachmentType: z.ZodEnum<{
2663
- file: "file";
2664
- directory: "directory";
2665
- }>;
2666
- }, z.core.$strip>, z.ZodObject<{
2667
- type: z.ZodLiteral<"reasoning">;
2668
- content: z.ZodString;
2669
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2670
- }, z.core.$strip>, z.ZodObject<{
2671
- type: z.ZodLiteral<"tool_call">;
2672
- toolCallId: z.ZodString;
2673
- name: z.ZodString;
2674
- args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2675
- }, z.core.$strip>, z.ZodObject<{
2676
- type: z.ZodLiteral<"tool_output">;
2677
- toolCallId: z.ZodString;
2678
- output: z.ZodString;
2679
- isError: z.ZodOptional<z.ZodBoolean>;
2680
- }, z.core.$strip>], "type">, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2681
- type: z.ZodLiteral<"text">;
2682
- content: z.ZodString;
2683
- }, z.core.$strip>, z.ZodObject<{
2684
- type: z.ZodLiteral<"image">;
2685
- source: z.ZodDiscriminatedUnion<[z.ZodObject<{
2686
- type: z.ZodLiteral<"base64">;
2687
- data: z.ZodString;
2688
- mimeType: z.ZodString;
2689
- }, z.core.$strip>, z.ZodObject<{
2690
- type: z.ZodLiteral<"url">;
2691
- url: z.ZodString;
2692
- mimeType: z.ZodOptional<z.ZodString>;
2693
- }, z.core.$strip>], "type">;
2694
- }, z.core.$strip>, z.ZodObject<{
2695
- type: z.ZodLiteral<"document">;
2696
- source: z.ZodDiscriminatedUnion<[z.ZodObject<{
2697
- type: z.ZodLiteral<"base64">;
2698
- data: z.ZodString;
2699
- mimeType: z.ZodString;
2700
- }, z.core.$strip>, z.ZodObject<{
2701
- type: z.ZodLiteral<"url">;
2702
- url: z.ZodString;
2703
- mimeType: z.ZodOptional<z.ZodString>;
2704
- }, z.core.$strip>], "type">;
2705
- }, z.core.$strip>, z.ZodObject<{
2706
- type: z.ZodLiteral<"attachment">;
2707
- fileName: z.ZodString;
2708
- filePath: z.ZodString;
2709
- source: z.ZodDiscriminatedUnion<[z.ZodObject<{
2710
- type: z.ZodLiteral<"base64">;
2711
- data: z.ZodString;
2712
- mimeType: z.ZodString;
2713
- }, z.core.$strip>, z.ZodObject<{
2714
- type: z.ZodLiteral<"url">;
2715
- url: z.ZodString;
2716
- mimeType: z.ZodOptional<z.ZodString>;
2717
- }, z.core.$strip>], "type">;
2718
- displayName: z.ZodOptional<z.ZodString>;
2719
- attachmentType: z.ZodEnum<{
2720
- file: "file";
2721
- directory: "directory";
2722
- }>;
2723
- }, z.core.$strip>, z.ZodObject<{
2724
- type: z.ZodLiteral<"reasoning">;
2725
- content: z.ZodString;
2726
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2727
- }, z.core.$strip>, z.ZodObject<{
2728
- type: z.ZodLiteral<"tool_call">;
2729
- toolCallId: z.ZodString;
2730
- name: z.ZodString;
2731
- args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2732
- }, z.core.$strip>, z.ZodObject<{
2733
- type: z.ZodLiteral<"tool_output">;
2734
- toolCallId: z.ZodString;
2735
- output: z.ZodString;
2736
- isError: z.ZodOptional<z.ZodBoolean>;
2737
- }, z.core.$strip>], "type">>]>;
2738
- }, z.core.$strip>]>>;
2739
- responseSchema: z.ZodOptional<z.ZodObject<{
2740
- schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
2741
- name: z.ZodOptional<z.ZodString>;
2742
- strict: z.ZodOptional<z.ZodBoolean>;
2743
- }, z.core.$strict>>;
2744
- source: z.ZodOptional<z.ZodEnum<{
2745
- user: "user";
2746
- system: "system";
2747
- extension: "extension";
2748
- }>>;
2749
- extensionId: z.ZodOptional<z.ZodString>;
2750
- role: z.ZodOptional<z.ZodEnum<{
2751
- lead: "lead";
2752
- member: "member";
2753
- }>>;
2754
- }, z.core.$strip>;
2755
- response: z.ZodObject<{
2756
- agentId: z.ZodString;
2757
- adapterSessionId: z.ZodOptional<z.ZodString>;
2758
- role: z.ZodEnum<{
2759
- lead: "lead";
2760
- member: "member";
2761
- }>;
2762
- messageId: z.ZodOptional<z.ZodString>;
2763
- turnId: z.ZodOptional<z.ZodString>;
2764
- }, z.core.$strip>;
2765
- };
2766
- /**
2767
- * Attach an adapter agent with an already resolved provider context.
2768
- *
2769
- * Local-only internal seam for framework runtimes that resolve provider
2770
- * credentials/endpoints before delegating to the session subsystem. Public
2771
- * callers must use `agent.attach`/`sendMessage` with `providerConfigId` so
2772
- * session startup performs provider resolution itself.
2773
- */
2774
- 'agent.attachResolved': _$_makaio_core0.LocalSubjectSchema<{
2775
- request: z.ZodObject<{
2776
- sessionId: z.ZodString;
2777
- agent: z.ZodObject<{
2728
+ kind: z.ZodLiteral<"adapter">;
2729
+ adapterName: z.ZodOptional<z.ZodString>;
2730
+ adapterId: z.ZodOptional<z.ZodString>;
2731
+ machineId: z.ZodOptional<z.ZodString>;
2732
+ }, z.core.$loose>, z.ZodObject<{
2778
2733
  providerConfigId: z.ZodOptional<z.ZodString>;
2779
- model: z.ZodOptional<z.ZodString>;
2780
2734
  reasoningEffort: z.ZodOptional<z.ZodEnum<{
2781
2735
  none: "none";
2782
2736
  low: "low";
@@ -2841,9 +2795,9 @@ declare const OrchestratorSchemas: {
2841
2795
  description: z.ZodOptional<z.ZodString>;
2842
2796
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2843
2797
  exposureMode: z.ZodEnum<{
2844
- hidden: "hidden";
2845
2798
  direct: "direct";
2846
2799
  discovery: "discovery";
2800
+ hidden: "hidden";
2847
2801
  }>;
2848
2802
  enabled: z.ZodBoolean;
2849
2803
  enabledBy: z.ZodOptional<z.ZodEnum<{
@@ -2860,9 +2814,9 @@ declare const OrchestratorSchemas: {
2860
2814
  description: z.ZodOptional<z.ZodString>;
2861
2815
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2862
2816
  exposureMode: z.ZodEnum<{
2863
- hidden: "hidden";
2864
2817
  direct: "direct";
2865
2818
  discovery: "discovery";
2819
+ hidden: "hidden";
2866
2820
  }>;
2867
2821
  enabled: z.ZodBoolean;
2868
2822
  enabledBy: z.ZodOptional<z.ZodEnum<{
@@ -2875,87 +2829,111 @@ declare const OrchestratorSchemas: {
2875
2829
  }, z.core.$strip>>;
2876
2830
  allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
2877
2831
  adapterConfig: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
2878
- kind: z.ZodLiteral<"adapter">;
2879
- adapterName: z.ZodOptional<z.ZodString>;
2880
- adapterId: z.ZodOptional<z.ZodString>;
2881
- providerContext: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2882
- state: z.ZodLiteral<"resolved">;
2883
- providerConfigId: z.ZodString;
2884
- definitionId: z.ZodString;
2885
- endpointOverrides: z.ZodOptional<z.ZodObject<{
2886
- anthropic: z.ZodOptional<z.ZodString>;
2887
- openai: z.ZodOptional<z.ZodString>;
2888
- }, z.core.$strip>>;
2889
- auth: z.ZodDiscriminatedUnion<[z.ZodObject<{
2890
- mode: z.ZodLiteral<"explicit">;
2891
- method: z.ZodDiscriminatedUnion<[z.ZodObject<{
2892
- owner: z.ZodLiteral<"provider">;
2893
- providerDefinitionId: z.ZodString;
2894
- methodId: z.ZodString;
2895
- }, z.core.$strict>, z.ZodObject<{
2896
- owner: z.ZodLiteral<"client">;
2897
- clientId: z.ZodString;
2898
- methodId: z.ZodString;
2899
- }, z.core.$strict>], "owner">;
2900
- definition: z.ZodObject<{
2901
- id: z.ZodString;
2902
- mode: z.ZodLiteral<"explicit">;
2903
- label: z.ZodString;
2904
- description: z.ZodOptional<z.ZodString>;
2905
- fields: z.ZodArray<z.ZodObject<{
2906
- id: z.ZodString;
2907
- label: z.ZodString;
2908
- description: z.ZodOptional<z.ZodString>;
2909
- required: z.ZodBoolean;
2910
- secret: z.ZodBoolean;
2911
- sourceHints: z.ZodArray<z.ZodObject<{
2912
- kind: z.ZodLiteral<"environment">;
2913
- variable: z.ZodString;
2914
- }, z.core.$strict>>;
2915
- }, z.core.$strict>>;
2916
- }, z.core.$strict>;
2917
- credentialRefs: z.ZodRecord<z.ZodString, z.core.$ZodBranded<z.ZodString, "CredentialRef", "out">>;
2918
- }, z.core.$strict>, z.ZodObject<{
2919
- mode: z.ZodLiteral<"inferred">;
2920
- method: z.ZodObject<{
2921
- owner: z.ZodLiteral<"client">;
2922
- clientId: z.ZodString;
2923
- methodId: z.ZodString;
2924
- }, z.core.$strict>;
2925
- definition: z.ZodObject<{
2926
- id: z.ZodString;
2927
- mode: z.ZodLiteral<"inferred">;
2928
- label: z.ZodString;
2929
- description: z.ZodOptional<z.ZodString>;
2930
- }, z.core.$strict>;
2931
- account: z.ZodOptional<z.ZodObject<{
2932
- managerId: z.ZodString;
2933
- accountId: z.ZodString;
2934
- }, z.core.$strict>>;
2935
- }, z.core.$strict>, z.ZodObject<{
2936
- mode: z.ZodLiteral<"none">;
2937
- method: z.ZodDiscriminatedUnion<[z.ZodObject<{
2938
- owner: z.ZodLiteral<"provider">;
2939
- providerDefinitionId: z.ZodString;
2940
- methodId: z.ZodString;
2941
- }, z.core.$strict>, z.ZodObject<{
2942
- owner: z.ZodLiteral<"client">;
2943
- clientId: z.ZodString;
2944
- methodId: z.ZodString;
2945
- }, z.core.$strict>], "owner">;
2946
- definition: z.ZodObject<{
2947
- id: z.ZodString;
2948
- mode: z.ZodLiteral<"none">;
2949
- label: z.ZodString;
2950
- description: z.ZodOptional<z.ZodString>;
2951
- }, z.core.$strict>;
2952
- }, z.core.$strict>], "mode">;
2953
- capabilities: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
2954
- }, z.core.$strict>, z.ZodObject<{
2955
- state: z.ZodLiteral<"unresolved">;
2956
- }, z.core.$strict>], "state">>;
2957
- }, z.core.$loose>;
2958
- harnessId: z.ZodOptional<z.ZodString>;
2832
+ kind: z.ZodLiteral<"canonical-model">;
2833
+ model: z.ZodString;
2834
+ }, z.core.$loose>, z.ZodObject<{
2835
+ providerConfigId: z.ZodOptional<z.ZodString>;
2836
+ model: z.ZodOptional<z.ZodString>;
2837
+ reasoningEffort: z.ZodOptional<z.ZodEnum<{
2838
+ none: "none";
2839
+ low: "low";
2840
+ medium: "medium";
2841
+ high: "high";
2842
+ "extra-high": "extra-high";
2843
+ }>>;
2844
+ cwd: z.ZodOptional<z.ZodString>;
2845
+ systemPrompt: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2846
+ mode: z.ZodLiteral<"append">;
2847
+ content: z.ZodString;
2848
+ }, z.core.$strip>]>>;
2849
+ allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
2850
+ disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
2851
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2852
+ mcpSessionContext: z.ZodOptional<z.ZodObject<{
2853
+ sessionId: z.ZodString;
2854
+ servers: z.ZodArray<z.ZodObject<{
2855
+ name: z.ZodString;
2856
+ transport: z.ZodDiscriminatedUnion<[z.ZodObject<{
2857
+ type: z.ZodLiteral<"stdio">;
2858
+ command: z.ZodString;
2859
+ args: z.ZodOptional<z.ZodArray<z.ZodString>>;
2860
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2861
+ alwaysLoad: z.ZodOptional<z.ZodBoolean>;
2862
+ }, z.core.$strip>, z.ZodObject<{
2863
+ url: z.ZodString;
2864
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2865
+ tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
2866
+ name: z.ZodString;
2867
+ permission_policy: z.ZodEnum<{
2868
+ always_allow: "always_allow";
2869
+ always_ask: "always_ask";
2870
+ always_deny: "always_deny";
2871
+ }>;
2872
+ }, z.core.$strip>>>;
2873
+ alwaysLoad: z.ZodOptional<z.ZodBoolean>;
2874
+ type: z.ZodLiteral<"sse">;
2875
+ }, z.core.$strip>, z.ZodObject<{
2876
+ url: z.ZodString;
2877
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2878
+ tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
2879
+ name: z.ZodString;
2880
+ permission_policy: z.ZodEnum<{
2881
+ always_allow: "always_allow";
2882
+ always_ask: "always_ask";
2883
+ always_deny: "always_deny";
2884
+ }>;
2885
+ }, z.core.$strip>>>;
2886
+ alwaysLoad: z.ZodOptional<z.ZodBoolean>;
2887
+ type: z.ZodLiteral<"http">;
2888
+ }, z.core.$strip>], "type">;
2889
+ exposureMode: z.ZodEnum<{
2890
+ direct: "direct";
2891
+ discovery: "discovery";
2892
+ }>;
2893
+ }, z.core.$strip>>;
2894
+ directTools: z.ZodArray<z.ZodObject<{
2895
+ fullName: z.ZodString;
2896
+ originalName: z.ZodString;
2897
+ serverName: z.ZodString;
2898
+ description: z.ZodOptional<z.ZodString>;
2899
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2900
+ exposureMode: z.ZodEnum<{
2901
+ direct: "direct";
2902
+ discovery: "discovery";
2903
+ hidden: "hidden";
2904
+ }>;
2905
+ enabled: z.ZodBoolean;
2906
+ enabledBy: z.ZodOptional<z.ZodEnum<{
2907
+ discovery: "discovery";
2908
+ toolset: "toolset";
2909
+ }>>;
2910
+ enabledAt: z.ZodOptional<z.ZodNumber>;
2911
+ exposed: z.ZodBoolean;
2912
+ }, z.core.$strip>>;
2913
+ discoverableTools: z.ZodArray<z.ZodObject<{
2914
+ fullName: z.ZodString;
2915
+ originalName: z.ZodString;
2916
+ serverName: z.ZodString;
2917
+ description: z.ZodOptional<z.ZodString>;
2918
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2919
+ exposureMode: z.ZodEnum<{
2920
+ direct: "direct";
2921
+ discovery: "discovery";
2922
+ hidden: "hidden";
2923
+ }>;
2924
+ enabled: z.ZodBoolean;
2925
+ enabledBy: z.ZodOptional<z.ZodEnum<{
2926
+ discovery: "discovery";
2927
+ toolset: "toolset";
2928
+ }>>;
2929
+ enabledAt: z.ZodOptional<z.ZodNumber>;
2930
+ exposed: z.ZodBoolean;
2931
+ }, z.core.$strip>>;
2932
+ }, z.core.$strip>>;
2933
+ allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
2934
+ adapterConfig: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
2935
+ kind: z.ZodString;
2936
+ }, z.core.$loose>]>;
2959
2937
  initialMessage: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2960
2938
  role: z.ZodOptional<z.ZodEnum<{
2961
2939
  user: "user";
@@ -3089,7 +3067,6 @@ declare const OrchestratorSchemas: {
3089
3067
  extension: "extension";
3090
3068
  }>>;
3091
3069
  extensionId: z.ZodOptional<z.ZodString>;
3092
- assertInitialMessageAdmission: z.ZodOptional<z.ZodUnknown>;
3093
3070
  role: z.ZodOptional<z.ZodEnum<{
3094
3071
  lead: "lead";
3095
3072
  member: "member";
@@ -3105,101 +3082,445 @@ declare const OrchestratorSchemas: {
3105
3082
  messageId: z.ZodOptional<z.ZodString>;
3106
3083
  turnId: z.ZodOptional<z.ZodString>;
3107
3084
  }, z.core.$strip>;
3108
- }>;
3109
- /**
3110
- * Turn started.
3111
- *
3112
- * Subject: `session.turn.started`
3113
- * Type: Event (fire-and-forget)
3114
- * Emitted when: First user message of a turn is received
3115
- */
3116
- 'turn.started': z.ZodObject<{
3117
- sessionId: z.ZodString;
3118
- turnId: z.ZodString;
3119
- turnNumber: z.ZodNumber;
3120
- messageId: z.ZodString;
3121
- agentIds: z.ZodArray<z.ZodString>;
3122
- initiator: z.ZodOptional<z.ZodObject<{
3123
- source: z.ZodEnum<{
3124
- user: "user";
3125
- system: "system";
3126
- extension: "extension";
3127
- }>;
3128
- sourceId: z.ZodOptional<z.ZodString>;
3129
- }, z.core.$strip>>;
3130
- ingestionMarker: z.ZodOptional<z.ZodEnum<{
3131
- live: "live";
3132
- backfill: "backfill";
3133
- }>>;
3134
- }, z.core.$strip>;
3135
- /**
3136
- * An agent's assistant-message persistence decision has settled.
3137
- *
3138
- * Subject: `session.turn.assistantPersistenceSettled`
3139
- * Type: Local event (fire-and-forget)
3140
- *
3141
- * Emitted by the in-process session bridge after it has either persisted the
3142
- * agent's assistant message or determined that no persistence will occur.
3143
- * This is coordination metadata, not a durable session lifecycle event.
3144
- */
3145
- 'turn.assistantPersistenceSettled': _$_makaio_core0.LocalSubjectSchema<z.ZodObject<{
3146
- sessionId: z.ZodString;
3147
- turnId: z.ZodString;
3148
- messageId: z.ZodString;
3149
- agentId: z.ZodString;
3150
- }, z.core.$strip>>;
3085
+ };
3151
3086
  /**
3152
- * Turn completed.
3153
- *
3154
- * Subject: `session.turn.completed`
3155
- * Type: Event (fire-and-forget)
3156
- * Emitted when: All targeted agents have completed processing
3087
+ * Attach an adapter agent with an already resolved provider context.
3157
3088
  *
3158
- * Semantics:
3159
- * - success=true: all agents completed with outcome='completed'
3160
- * - success=false: any agent had outcome='error'
3161
- * - cancelled/superseded/merged outcomes are neutral (not errors)
3162
- * - usage is present when agents emitted token usage before the turn
3163
- * completed; absence means unknown usage, not zero usage
3089
+ * Local-only internal seam for framework runtimes that resolve provider
3090
+ * credentials/endpoints before delegating to the session subsystem. Public
3091
+ * callers must use `agent.attach`/`sendMessage` with `providerConfigId` so
3092
+ * session startup performs provider resolution itself.
3164
3093
  */
3165
- 'turn.completed': z.ZodObject<{
3166
- sessionId: z.ZodString;
3167
- turnId: z.ZodString;
3168
- turnNumber: z.ZodNumber;
3169
- success: z.ZodBoolean;
3170
- error: z.ZodOptional<z.ZodString>;
3171
- usage: z.ZodOptional<z.ZodObject<{
3172
- total: z.ZodObject<{
3173
- inputTokens: z.ZodNumber;
3174
- cachedInputTokens: z.ZodOptional<z.ZodNumber>;
3175
- outputTokens: z.ZodNumber;
3176
- cost: z.ZodOptional<z.ZodNumber>;
3177
- }, z.core.$strip>;
3178
- byAgent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3179
- inputTokens: z.ZodNumber;
3180
- cachedInputTokens: z.ZodOptional<z.ZodNumber>;
3181
- outputTokens: z.ZodNumber;
3182
- cost: z.ZodOptional<z.ZodNumber>;
3183
- }, z.core.$strip>>>;
3184
- }, z.core.$strip>>;
3185
- initiator: z.ZodOptional<z.ZodObject<{
3186
- source: z.ZodEnum<{
3187
- user: "user";
3188
- system: "system";
3189
- extension: "extension";
3190
- }>;
3191
- sourceId: z.ZodOptional<z.ZodString>;
3192
- }, z.core.$strip>>;
3193
- ingestionMarker: z.ZodOptional<z.ZodEnum<{
3194
- live: "live";
3195
- backfill: "backfill";
3196
- }>>;
3197
- }, z.core.$strip>;
3198
- /**
3199
- * Await completion of a specific session turn.
3200
- *
3201
- * Subject: `session.turn.await`
3202
- * Type: Request (RPC)
3094
+ 'agent.attachResolved': _$_makaio_core0.LocalSubjectSchema<{
3095
+ request: z.ZodObject<{
3096
+ sessionId: z.ZodString;
3097
+ agent: z.ZodObject<{
3098
+ providerConfigId: z.ZodOptional<z.ZodString>;
3099
+ model: z.ZodOptional<z.ZodString>;
3100
+ reasoningEffort: z.ZodOptional<z.ZodEnum<{
3101
+ none: "none";
3102
+ low: "low";
3103
+ medium: "medium";
3104
+ high: "high";
3105
+ "extra-high": "extra-high";
3106
+ }>>;
3107
+ cwd: z.ZodOptional<z.ZodString>;
3108
+ systemPrompt: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
3109
+ mode: z.ZodLiteral<"append">;
3110
+ content: z.ZodString;
3111
+ }, z.core.$strip>]>>;
3112
+ allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
3113
+ disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
3114
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3115
+ mcpSessionContext: z.ZodOptional<z.ZodObject<{
3116
+ sessionId: z.ZodString;
3117
+ servers: z.ZodArray<z.ZodObject<{
3118
+ name: z.ZodString;
3119
+ transport: z.ZodDiscriminatedUnion<[z.ZodObject<{
3120
+ type: z.ZodLiteral<"stdio">;
3121
+ command: z.ZodString;
3122
+ args: z.ZodOptional<z.ZodArray<z.ZodString>>;
3123
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3124
+ alwaysLoad: z.ZodOptional<z.ZodBoolean>;
3125
+ }, z.core.$strip>, z.ZodObject<{
3126
+ url: z.ZodString;
3127
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3128
+ tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
3129
+ name: z.ZodString;
3130
+ permission_policy: z.ZodEnum<{
3131
+ always_allow: "always_allow";
3132
+ always_ask: "always_ask";
3133
+ always_deny: "always_deny";
3134
+ }>;
3135
+ }, z.core.$strip>>>;
3136
+ alwaysLoad: z.ZodOptional<z.ZodBoolean>;
3137
+ type: z.ZodLiteral<"sse">;
3138
+ }, z.core.$strip>, z.ZodObject<{
3139
+ url: z.ZodString;
3140
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3141
+ tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
3142
+ name: z.ZodString;
3143
+ permission_policy: z.ZodEnum<{
3144
+ always_allow: "always_allow";
3145
+ always_ask: "always_ask";
3146
+ always_deny: "always_deny";
3147
+ }>;
3148
+ }, z.core.$strip>>>;
3149
+ alwaysLoad: z.ZodOptional<z.ZodBoolean>;
3150
+ type: z.ZodLiteral<"http">;
3151
+ }, z.core.$strip>], "type">;
3152
+ exposureMode: z.ZodEnum<{
3153
+ direct: "direct";
3154
+ discovery: "discovery";
3155
+ }>;
3156
+ }, z.core.$strip>>;
3157
+ directTools: z.ZodArray<z.ZodObject<{
3158
+ fullName: z.ZodString;
3159
+ originalName: z.ZodString;
3160
+ serverName: z.ZodString;
3161
+ description: z.ZodOptional<z.ZodString>;
3162
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3163
+ exposureMode: z.ZodEnum<{
3164
+ direct: "direct";
3165
+ discovery: "discovery";
3166
+ hidden: "hidden";
3167
+ }>;
3168
+ enabled: z.ZodBoolean;
3169
+ enabledBy: z.ZodOptional<z.ZodEnum<{
3170
+ discovery: "discovery";
3171
+ toolset: "toolset";
3172
+ }>>;
3173
+ enabledAt: z.ZodOptional<z.ZodNumber>;
3174
+ exposed: z.ZodBoolean;
3175
+ }, z.core.$strip>>;
3176
+ discoverableTools: z.ZodArray<z.ZodObject<{
3177
+ fullName: z.ZodString;
3178
+ originalName: z.ZodString;
3179
+ serverName: z.ZodString;
3180
+ description: z.ZodOptional<z.ZodString>;
3181
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3182
+ exposureMode: z.ZodEnum<{
3183
+ direct: "direct";
3184
+ discovery: "discovery";
3185
+ hidden: "hidden";
3186
+ }>;
3187
+ enabled: z.ZodBoolean;
3188
+ enabledBy: z.ZodOptional<z.ZodEnum<{
3189
+ discovery: "discovery";
3190
+ toolset: "toolset";
3191
+ }>>;
3192
+ enabledAt: z.ZodOptional<z.ZodNumber>;
3193
+ exposed: z.ZodBoolean;
3194
+ }, z.core.$strip>>;
3195
+ }, z.core.$strip>>;
3196
+ allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
3197
+ adapterConfig: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
3198
+ kind: z.ZodLiteral<"adapter">;
3199
+ adapterName: z.ZodOptional<z.ZodString>;
3200
+ adapterId: z.ZodOptional<z.ZodString>;
3201
+ machineId: z.ZodOptional<z.ZodString>;
3202
+ providerContext: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3203
+ state: z.ZodLiteral<"resolved">;
3204
+ providerConfigId: z.ZodString;
3205
+ definitionId: z.ZodString;
3206
+ endpointOverrides: z.ZodOptional<z.ZodObject<{
3207
+ anthropic: z.ZodOptional<z.ZodString>;
3208
+ openai: z.ZodOptional<z.ZodString>;
3209
+ }, z.core.$strip>>;
3210
+ auth: z.ZodDiscriminatedUnion<[z.ZodObject<{
3211
+ mode: z.ZodLiteral<"explicit">;
3212
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
3213
+ owner: z.ZodLiteral<"provider">;
3214
+ providerDefinitionId: z.ZodString;
3215
+ methodId: z.ZodString;
3216
+ }, z.core.$strict>, z.ZodObject<{
3217
+ owner: z.ZodLiteral<"client">;
3218
+ clientId: z.ZodString;
3219
+ methodId: z.ZodString;
3220
+ }, z.core.$strict>], "owner">;
3221
+ definition: z.ZodObject<{
3222
+ id: z.ZodString;
3223
+ mode: z.ZodLiteral<"explicit">;
3224
+ label: z.ZodString;
3225
+ description: z.ZodOptional<z.ZodString>;
3226
+ fields: z.ZodArray<z.ZodObject<{
3227
+ id: z.ZodString;
3228
+ label: z.ZodString;
3229
+ description: z.ZodOptional<z.ZodString>;
3230
+ required: z.ZodBoolean;
3231
+ secret: z.ZodBoolean;
3232
+ sourceHints: z.ZodArray<z.ZodObject<{
3233
+ kind: z.ZodLiteral<"environment">;
3234
+ variable: z.ZodString;
3235
+ }, z.core.$strict>>;
3236
+ }, z.core.$strict>>;
3237
+ }, z.core.$strict>;
3238
+ credentialRefs: z.ZodRecord<z.ZodString, z.core.$ZodBranded<z.ZodString, "CredentialRef", "out">>;
3239
+ }, z.core.$strict>, z.ZodObject<{
3240
+ mode: z.ZodLiteral<"inferred">;
3241
+ method: z.ZodObject<{
3242
+ owner: z.ZodLiteral<"client">;
3243
+ clientId: z.ZodString;
3244
+ methodId: z.ZodString;
3245
+ }, z.core.$strict>;
3246
+ definition: z.ZodObject<{
3247
+ id: z.ZodString;
3248
+ mode: z.ZodLiteral<"inferred">;
3249
+ label: z.ZodString;
3250
+ description: z.ZodOptional<z.ZodString>;
3251
+ }, z.core.$strict>;
3252
+ account: z.ZodOptional<z.ZodObject<{
3253
+ managerId: z.ZodString;
3254
+ accountId: z.ZodString;
3255
+ }, z.core.$strict>>;
3256
+ }, z.core.$strict>, z.ZodObject<{
3257
+ mode: z.ZodLiteral<"none">;
3258
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
3259
+ owner: z.ZodLiteral<"provider">;
3260
+ providerDefinitionId: z.ZodString;
3261
+ methodId: z.ZodString;
3262
+ }, z.core.$strict>, z.ZodObject<{
3263
+ owner: z.ZodLiteral<"client">;
3264
+ clientId: z.ZodString;
3265
+ methodId: z.ZodString;
3266
+ }, z.core.$strict>], "owner">;
3267
+ definition: z.ZodObject<{
3268
+ id: z.ZodString;
3269
+ mode: z.ZodLiteral<"none">;
3270
+ label: z.ZodString;
3271
+ description: z.ZodOptional<z.ZodString>;
3272
+ }, z.core.$strict>;
3273
+ }, z.core.$strict>], "mode">;
3274
+ capabilities: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
3275
+ }, z.core.$strict>, z.ZodObject<{
3276
+ state: z.ZodLiteral<"unresolved">;
3277
+ }, z.core.$strict>], "state">>;
3278
+ }, z.core.$loose>;
3279
+ harnessId: z.ZodOptional<z.ZodString>;
3280
+ initialMessage: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
3281
+ role: z.ZodOptional<z.ZodEnum<{
3282
+ user: "user";
3283
+ assistant: "assistant";
3284
+ system: "system";
3285
+ }>>;
3286
+ blocks: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
3287
+ type: z.ZodLiteral<"text">;
3288
+ content: z.ZodString;
3289
+ }, z.core.$strip>, z.ZodObject<{
3290
+ type: z.ZodLiteral<"image">;
3291
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
3292
+ type: z.ZodLiteral<"base64">;
3293
+ data: z.ZodString;
3294
+ mimeType: z.ZodString;
3295
+ }, z.core.$strip>, z.ZodObject<{
3296
+ type: z.ZodLiteral<"url">;
3297
+ url: z.ZodString;
3298
+ mimeType: z.ZodOptional<z.ZodString>;
3299
+ }, z.core.$strip>], "type">;
3300
+ }, z.core.$strip>, z.ZodObject<{
3301
+ type: z.ZodLiteral<"document">;
3302
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
3303
+ type: z.ZodLiteral<"base64">;
3304
+ data: z.ZodString;
3305
+ mimeType: z.ZodString;
3306
+ }, z.core.$strip>, z.ZodObject<{
3307
+ type: z.ZodLiteral<"url">;
3308
+ url: z.ZodString;
3309
+ mimeType: z.ZodOptional<z.ZodString>;
3310
+ }, z.core.$strip>], "type">;
3311
+ }, z.core.$strip>, z.ZodObject<{
3312
+ type: z.ZodLiteral<"attachment">;
3313
+ fileName: z.ZodString;
3314
+ filePath: z.ZodString;
3315
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
3316
+ type: z.ZodLiteral<"base64">;
3317
+ data: z.ZodString;
3318
+ mimeType: z.ZodString;
3319
+ }, z.core.$strip>, z.ZodObject<{
3320
+ type: z.ZodLiteral<"url">;
3321
+ url: z.ZodString;
3322
+ mimeType: z.ZodOptional<z.ZodString>;
3323
+ }, z.core.$strip>], "type">;
3324
+ displayName: z.ZodOptional<z.ZodString>;
3325
+ attachmentType: z.ZodEnum<{
3326
+ file: "file";
3327
+ directory: "directory";
3328
+ }>;
3329
+ }, z.core.$strip>, z.ZodObject<{
3330
+ type: z.ZodLiteral<"reasoning">;
3331
+ content: z.ZodString;
3332
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3333
+ }, z.core.$strip>, z.ZodObject<{
3334
+ type: z.ZodLiteral<"tool_call">;
3335
+ toolCallId: z.ZodString;
3336
+ name: z.ZodString;
3337
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3338
+ }, z.core.$strip>, z.ZodObject<{
3339
+ type: z.ZodLiteral<"tool_output">;
3340
+ toolCallId: z.ZodString;
3341
+ output: z.ZodString;
3342
+ isError: z.ZodOptional<z.ZodBoolean>;
3343
+ }, z.core.$strip>], "type">, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3344
+ type: z.ZodLiteral<"text">;
3345
+ content: z.ZodString;
3346
+ }, z.core.$strip>, z.ZodObject<{
3347
+ type: z.ZodLiteral<"image">;
3348
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
3349
+ type: z.ZodLiteral<"base64">;
3350
+ data: z.ZodString;
3351
+ mimeType: z.ZodString;
3352
+ }, z.core.$strip>, z.ZodObject<{
3353
+ type: z.ZodLiteral<"url">;
3354
+ url: z.ZodString;
3355
+ mimeType: z.ZodOptional<z.ZodString>;
3356
+ }, z.core.$strip>], "type">;
3357
+ }, z.core.$strip>, z.ZodObject<{
3358
+ type: z.ZodLiteral<"document">;
3359
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
3360
+ type: z.ZodLiteral<"base64">;
3361
+ data: z.ZodString;
3362
+ mimeType: z.ZodString;
3363
+ }, z.core.$strip>, z.ZodObject<{
3364
+ type: z.ZodLiteral<"url">;
3365
+ url: z.ZodString;
3366
+ mimeType: z.ZodOptional<z.ZodString>;
3367
+ }, z.core.$strip>], "type">;
3368
+ }, z.core.$strip>, z.ZodObject<{
3369
+ type: z.ZodLiteral<"attachment">;
3370
+ fileName: z.ZodString;
3371
+ filePath: z.ZodString;
3372
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
3373
+ type: z.ZodLiteral<"base64">;
3374
+ data: z.ZodString;
3375
+ mimeType: z.ZodString;
3376
+ }, z.core.$strip>, z.ZodObject<{
3377
+ type: z.ZodLiteral<"url">;
3378
+ url: z.ZodString;
3379
+ mimeType: z.ZodOptional<z.ZodString>;
3380
+ }, z.core.$strip>], "type">;
3381
+ displayName: z.ZodOptional<z.ZodString>;
3382
+ attachmentType: z.ZodEnum<{
3383
+ file: "file";
3384
+ directory: "directory";
3385
+ }>;
3386
+ }, z.core.$strip>, z.ZodObject<{
3387
+ type: z.ZodLiteral<"reasoning">;
3388
+ content: z.ZodString;
3389
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3390
+ }, z.core.$strip>, z.ZodObject<{
3391
+ type: z.ZodLiteral<"tool_call">;
3392
+ toolCallId: z.ZodString;
3393
+ name: z.ZodString;
3394
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3395
+ }, z.core.$strip>, z.ZodObject<{
3396
+ type: z.ZodLiteral<"tool_output">;
3397
+ toolCallId: z.ZodString;
3398
+ output: z.ZodString;
3399
+ isError: z.ZodOptional<z.ZodBoolean>;
3400
+ }, z.core.$strip>], "type">>]>;
3401
+ }, z.core.$strip>]>>;
3402
+ responseSchema: z.ZodOptional<z.ZodObject<{
3403
+ schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
3404
+ name: z.ZodOptional<z.ZodString>;
3405
+ strict: z.ZodOptional<z.ZodBoolean>;
3406
+ }, z.core.$strict>>;
3407
+ source: z.ZodOptional<z.ZodEnum<{
3408
+ user: "user";
3409
+ system: "system";
3410
+ extension: "extension";
3411
+ }>>;
3412
+ extensionId: z.ZodOptional<z.ZodString>;
3413
+ assertInitialMessageAdmission: z.ZodOptional<z.ZodUnknown>;
3414
+ role: z.ZodOptional<z.ZodEnum<{
3415
+ lead: "lead";
3416
+ member: "member";
3417
+ }>>;
3418
+ }, z.core.$strip>;
3419
+ response: z.ZodObject<{
3420
+ agentId: z.ZodString;
3421
+ adapterSessionId: z.ZodOptional<z.ZodString>;
3422
+ role: z.ZodEnum<{
3423
+ lead: "lead";
3424
+ member: "member";
3425
+ }>;
3426
+ messageId: z.ZodOptional<z.ZodString>;
3427
+ turnId: z.ZodOptional<z.ZodString>;
3428
+ }, z.core.$strip>;
3429
+ }>;
3430
+ /**
3431
+ * Turn started.
3432
+ *
3433
+ * Subject: `session.turn.started`
3434
+ * Type: Event (fire-and-forget)
3435
+ * Emitted when: First user message of a turn is received
3436
+ */
3437
+ 'turn.started': z.ZodObject<{
3438
+ sessionId: z.ZodString;
3439
+ turnId: z.ZodString;
3440
+ turnNumber: z.ZodNumber;
3441
+ messageId: z.ZodString;
3442
+ agentIds: z.ZodArray<z.ZodString>;
3443
+ initiator: z.ZodOptional<z.ZodObject<{
3444
+ source: z.ZodEnum<{
3445
+ user: "user";
3446
+ system: "system";
3447
+ extension: "extension";
3448
+ }>;
3449
+ sourceId: z.ZodOptional<z.ZodString>;
3450
+ }, z.core.$strip>>;
3451
+ ingestionMarker: z.ZodOptional<z.ZodEnum<{
3452
+ live: "live";
3453
+ backfill: "backfill";
3454
+ }>>;
3455
+ }, z.core.$strip>;
3456
+ /**
3457
+ * An agent's assistant-message persistence decision has settled.
3458
+ *
3459
+ * Subject: `session.turn.assistantPersistenceSettled`
3460
+ * Type: Local event (fire-and-forget)
3461
+ *
3462
+ * Emitted by the in-process session bridge after it has either persisted the
3463
+ * agent's assistant message or determined that no persistence will occur.
3464
+ * This is coordination metadata, not a durable session lifecycle event.
3465
+ */
3466
+ 'turn.assistantPersistenceSettled': _$_makaio_core0.LocalSubjectSchema<z.ZodObject<{
3467
+ sessionId: z.ZodString;
3468
+ turnId: z.ZodString;
3469
+ messageId: z.ZodString;
3470
+ agentId: z.ZodString;
3471
+ }, z.core.$strip>>;
3472
+ /**
3473
+ * Turn completed.
3474
+ *
3475
+ * Subject: `session.turn.completed`
3476
+ * Type: Event (fire-and-forget)
3477
+ * Emitted when: All targeted agents have completed processing
3478
+ *
3479
+ * Semantics:
3480
+ * - success=true: all agents completed with outcome='completed'
3481
+ * - success=false: any agent had outcome='error'
3482
+ * - cancelled/superseded/merged outcomes are neutral (not errors)
3483
+ * - usage is present when agents emitted token usage before the turn
3484
+ * completed; absence means unknown usage, not zero usage
3485
+ */
3486
+ 'turn.completed': z.ZodObject<{
3487
+ sessionId: z.ZodString;
3488
+ turnId: z.ZodString;
3489
+ turnNumber: z.ZodNumber;
3490
+ success: z.ZodBoolean;
3491
+ error: z.ZodOptional<z.ZodString>;
3492
+ usage: z.ZodOptional<z.ZodObject<{
3493
+ total: z.ZodObject<{
3494
+ inputTokens: z.ZodNumber;
3495
+ cachedInputTokens: z.ZodOptional<z.ZodNumber>;
3496
+ outputTokens: z.ZodNumber;
3497
+ cost: z.ZodOptional<z.ZodNumber>;
3498
+ }, z.core.$strip>;
3499
+ byAgent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3500
+ inputTokens: z.ZodNumber;
3501
+ cachedInputTokens: z.ZodOptional<z.ZodNumber>;
3502
+ outputTokens: z.ZodNumber;
3503
+ cost: z.ZodOptional<z.ZodNumber>;
3504
+ }, z.core.$strip>>>;
3505
+ }, z.core.$strip>>;
3506
+ initiator: z.ZodOptional<z.ZodObject<{
3507
+ source: z.ZodEnum<{
3508
+ user: "user";
3509
+ system: "system";
3510
+ extension: "extension";
3511
+ }>;
3512
+ sourceId: z.ZodOptional<z.ZodString>;
3513
+ }, z.core.$strip>>;
3514
+ ingestionMarker: z.ZodOptional<z.ZodEnum<{
3515
+ live: "live";
3516
+ backfill: "backfill";
3517
+ }>>;
3518
+ }, z.core.$strip>;
3519
+ /**
3520
+ * Await completion of a specific session turn.
3521
+ *
3522
+ * Subject: `session.turn.await`
3523
+ * Type: Request (RPC)
3203
3524
  *
3204
3525
  * Resolves with the matching `session.turn.completed` payload. The
3205
3526
  * completion payload is the canonical live read path for turn usage keyed by
@@ -3391,8 +3712,8 @@ declare const OrchestratorSchemas: {
3391
3712
  }>>;
3392
3713
  origin: z.ZodOptional<z.ZodEnum<{
3393
3714
  text: "text";
3394
- voice: "voice";
3395
3715
  compact: "compact";
3716
+ voice: "voice";
3396
3717
  }>>;
3397
3718
  }, z.core.$strip>;
3398
3719
  /**
@@ -3509,6 +3830,11 @@ type TurnCompleted = z.infer<(typeof OrchestratorSchemas)['turn.completed']>;
3509
3830
  /**
3510
3831
  * Closed set of reasons a session cannot be resumed or forked natively
3511
3832
  * on the current machine.
3833
+ *
3834
+ * `adapter-session-moved` is the modeled degrade for a session whose provider
3835
+ * identity moved without provider confirmation (currency state `moved`):
3836
+ * neither the origin nor the current ID is valid resume currency, so the caller
3837
+ * must fall back to fresh-with-history.
3512
3838
  */
3513
3839
  declare const NativeLocalityReasonSchema: z.ZodEnum<{
3514
3840
  "adapter-unsupported": "adapter-unsupported";
@@ -3525,6 +3851,7 @@ declare const NativeLocalityReasonSchema: z.ZodEnum<{
3525
3851
  "native-attempt-failed": "native-attempt-failed";
3526
3852
  "agent-already-started": "agent-already-started";
3527
3853
  "fork-point-unresolvable": "fork-point-unresolvable";
3854
+ "adapter-session-moved": "adapter-session-moved";
3528
3855
  }>;
3529
3856
  type NativeLocalityReason = z.infer<typeof NativeLocalityReasonSchema>;
3530
3857
  /**
@@ -3557,6 +3884,7 @@ declare const NativeLocalityVerdictSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
3557
3884
  "native-attempt-failed": "native-attempt-failed";
3558
3885
  "agent-already-started": "agent-already-started";
3559
3886
  "fork-point-unresolvable": "fork-point-unresolvable";
3887
+ "adapter-session-moved": "adapter-session-moved";
3560
3888
  }>;
3561
3889
  }, z.core.$strip>, z.ZodObject<{
3562
3890
  kind: z.ZodLiteral<"foreign">;
@@ -3755,8 +4083,8 @@ declare const MakaioSessionEventSchema: z.ZodUnion<readonly [z.ZodDiscriminatedU
3755
4083
  }>>;
3756
4084
  origin: z.ZodOptional<z.ZodEnum<{
3757
4085
  text: "text";
3758
- voice: "voice";
3759
4086
  compact: "compact";
4087
+ voice: "voice";
3760
4088
  }>>;
3761
4089
  }, z.core.$strip>;
3762
4090
  }, z.core.$strip>, z.ZodObject<{
@@ -3917,8 +4245,8 @@ declare const MakaioSessionEventSchema: z.ZodUnion<readonly [z.ZodDiscriminatedU
3917
4245
  type: z.ZodLiteral<"locality.degraded">;
3918
4246
  payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
3919
4247
  intent: z.ZodEnum<{
3920
- fork: "fork";
3921
4248
  resume: "resume";
4249
+ fork: "fork";
3922
4250
  }>;
3923
4251
  verdictKind: z.ZodLiteral<"degrade">;
3924
4252
  reason: z.ZodEnum<{
@@ -3936,14 +4264,15 @@ declare const MakaioSessionEventSchema: z.ZodUnion<readonly [z.ZodDiscriminatedU
3936
4264
  "native-attempt-failed": "native-attempt-failed";
3937
4265
  "agent-already-started": "agent-already-started";
3938
4266
  "fork-point-unresolvable": "fork-point-unresolvable";
4267
+ "adapter-session-moved": "adapter-session-moved";
3939
4268
  }>;
3940
4269
  agentId: z.ZodOptional<z.ZodString>;
3941
4270
  adapterId: z.ZodOptional<z.ZodString>;
3942
4271
  turnId: z.ZodOptional<z.ZodString>;
3943
4272
  }, z.core.$strip>, z.ZodObject<{
3944
4273
  intent: z.ZodEnum<{
3945
- fork: "fork";
3946
4274
  resume: "resume";
4275
+ fork: "fork";
3947
4276
  }>;
3948
4277
  verdictKind: z.ZodLiteral<"foreign">;
3949
4278
  foreignMachineId: z.ZodString;
@@ -4108,124 +4437,596 @@ interface SessionEventTypeMap {
4108
4437
  };
4109
4438
  }
4110
4439
  /**
4111
- * Union of all session event type keys (core + plugin-defined).
4440
+ * Union of all session event type keys (core + plugin-defined).
4441
+ *
4442
+ * Runtime validation uses {@link SessionEventTypeSchema} (accepts any string).
4443
+ * Compile-time typing is derived from {@link SessionEventTypeMap} keys.
4444
+ */
4445
+ type SessionEventType$1 = keyof SessionEventTypeMap;
4446
+ /**
4447
+ * Get the payload type for a specific session event type.
4448
+ * @typeParam T - The event type key
4449
+ * @example
4450
+ * ```typescript
4451
+ * type MessagePayload = SessionEventPayload<'message'>;
4452
+ * // { messageId: string; turnId: string | null; role: 'user' | 'assistant' }
4453
+ * ```
4454
+ */
4455
+ type SessionEventPayload<T extends SessionEventType$1> = SessionEventTypeMap[T];
4456
+ //#endregion
4457
+ //#region core/contracts/src/session/schemas/fork-child-info.d.ts
4458
+ /**
4459
+ * Information about a child session for fork display.
4460
+ * Used by getChildren enriched response.
4461
+ */
4462
+ declare const ForkChildInfoSchema: z.ZodObject<{
4463
+ sessionId: z.ZodString;
4464
+ title: z.ZodNullable<z.ZodString>;
4465
+ forkPointMessageId: z.ZodNullable<z.ZodString>;
4466
+ branchKind: z.ZodNullable<z.ZodEnum<{
4467
+ fork: "fork";
4468
+ subagent: "subagent";
4469
+ compress: "compress";
4470
+ branch: "branch";
4471
+ rewrite: "rewrite";
4472
+ coordinator: "coordinator";
4473
+ aside: "aside";
4474
+ }>>;
4475
+ messageCount: z.ZodNumber;
4476
+ hasChildren: z.ZodBoolean;
4477
+ spawningToolCallId: z.ZodOptional<z.ZodString>;
4478
+ }, z.core.$strip>;
4479
+ type ForkChildInfo = z.infer<typeof ForkChildInfoSchema>;
4480
+ //#endregion
4481
+ //#region core/contracts/src/session/schemas/lifecycle-events.d.ts
4482
+ /**
4483
+ * Session lifecycle event schemas.
4484
+ * These extend SessionSchemas for fork/merge/abandon lifecycle.
4485
+ */
4486
+ /**
4487
+ * Policy for a contiguous range of messages in a fork context window.
4488
+ *
4489
+ * Segments define how a slice of conversation history is projected into the
4490
+ * child session. When `segments` is present on {@link ForkTransforms},
4491
+ * `removedMessageIds` and `appliedPipeline` are ignored — segments take
4492
+ * precedence as the authoritative context curation strategy.
4493
+ */
4494
+ declare const SegmentPolicySchema: z.ZodObject<{
4495
+ fromMessageId: z.ZodString;
4496
+ toMessageId: z.ZodString;
4497
+ policy: z.ZodEnum<{
4498
+ verbatim: "verbatim";
4499
+ summarize: "summarize";
4500
+ exclude: "exclude";
4501
+ }>;
4502
+ stripReasoning: z.ZodOptional<z.ZodBoolean>;
4503
+ stripToolOutputs: z.ZodOptional<z.ZodBoolean>;
4504
+ overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodLiteral<"exclude">>>;
4505
+ summaryText: z.ZodOptional<z.ZodString>;
4506
+ }, z.core.$strip>;
4507
+ /** Inferred type for {@link SegmentPolicySchema}. */
4508
+ type SegmentPolicy = z.infer<typeof SegmentPolicySchema>;
4509
+ /**
4510
+ * Transform configuration for fork sessions.
4511
+ * Stored on session record and applied by getFullConversation().
4512
+ *
4513
+ * When `segments` is present, it takes precedence over `removedMessageIds`
4514
+ * and `appliedPipeline` — those fields are ignored at runtime.
4515
+ */
4516
+ declare const ForkTransformsSchema$1: z.ZodObject<{
4517
+ removedMessageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
4518
+ appliedPipeline: z.ZodOptional<z.ZodArray<z.ZodObject<{
4519
+ actionId: z.ZodString;
4520
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4521
+ }, z.core.$strip>>>;
4522
+ segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
4523
+ fromMessageId: z.ZodString;
4524
+ toMessageId: z.ZodString;
4525
+ policy: z.ZodEnum<{
4526
+ verbatim: "verbatim";
4527
+ summarize: "summarize";
4528
+ exclude: "exclude";
4529
+ }>;
4530
+ stripReasoning: z.ZodOptional<z.ZodBoolean>;
4531
+ stripToolOutputs: z.ZodOptional<z.ZodBoolean>;
4532
+ overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodLiteral<"exclude">>>;
4533
+ summaryText: z.ZodOptional<z.ZodString>;
4534
+ }, z.core.$strip>>>;
4535
+ }, z.core.$strip>;
4536
+ type ForkTransforms$1 = z.infer<typeof ForkTransformsSchema$1>;
4537
+ declare const SessionCreatedEventSchema: z.ZodObject<{
4538
+ sessionId: z.ZodString;
4539
+ parentSessionId: z.ZodNullable<z.ZodString>;
4540
+ branchKind: z.ZodNullable<z.ZodEnum<{
4541
+ fork: "fork";
4542
+ subagent: "subagent";
4543
+ compress: "compress";
4544
+ branch: "branch";
4545
+ rewrite: "rewrite";
4546
+ coordinator: "coordinator";
4547
+ aside: "aside";
4548
+ }>>;
4549
+ createdAt: z.ZodNumber;
4550
+ originWindowId: z.ZodOptional<z.ZodString>;
4551
+ }, z.core.$strip>;
4552
+ declare const SessionUpdatedEventSchema: z.ZodObject<{
4553
+ sessionId: z.ZodString;
4554
+ changedProperties: z.ZodArray<z.ZodString>;
4555
+ }, z.core.$strip>;
4556
+ type SessionCreated = z.infer<typeof SessionCreatedEventSchema>;
4557
+ type SessionUpdatedEvent = z.infer<typeof SessionUpdatedEventSchema>;
4558
+ //#endregion
4559
+ //#region core/contracts/src/session/schemas/ownership.d.ts
4560
+ /**
4561
+ * How many runtime processes may own claims on one machine.
4562
+ *
4563
+ * Only `machine-exclusive` licenses "no adapter answers for this instance" as
4564
+ * evidence that an owner is gone: with peers on the same machine, an
4565
+ * unanswered probe means "not mine", never "nobody's". The default is
4566
+ * `shared-machine` everywhere, because neither the desktop runtime nor the
4567
+ * isolated workflow runtime can prove exclusivity while workflow workers and
4568
+ * relay peers may host adapters of their own.
4569
+ */
4570
+ declare const OwnershipTopologySchema: z.ZodEnum<{
4571
+ "machine-exclusive": "machine-exclusive";
4572
+ "shared-machine": "shared-machine";
4573
+ }>;
4574
+ /** {@inheritDoc OwnershipTopologySchema} */
4575
+ type OwnershipTopology$1 = z.infer<typeof OwnershipTopologySchema>;
4576
+ /**
4577
+ * Who an ownership operation acts for, and in whose adapter namespace.
4578
+ *
4579
+ * Every identity-dependent ownership operation carries this, because the
4580
+ * ownership key is the (machine, adapter instance, provider session) triple:
4581
+ * an operation that named only the agent would be reserving in a namespace
4582
+ * nobody can point at.
4583
+ */
4584
+ declare const SessionOwnershipPrincipalSchema: z.ZodObject<{
4585
+ sessionId: z.ZodString;
4586
+ agentId: z.ZodString;
4587
+ adapterId: z.ZodString;
4588
+ adapterName: z.ZodString;
4589
+ machineId: z.ZodOptional<z.ZodString>;
4590
+ }, z.core.$strip>;
4591
+ /** {@inheritDoc SessionOwnershipPrincipalSchema} */
4592
+ type SessionOwnershipPrincipal = z.infer<typeof SessionOwnershipPrincipalSchema>;
4593
+ /**
4594
+ * Request payload for `session.ownership.reserveStart`.
4595
+ *
4596
+ * One reservation is one storage transaction: the claim on the provider
4597
+ * session the start will resume (or none, for a start with no key yet) plus the
4598
+ * lead designation, taken together. A start that designated through a second
4599
+ * call would leave a window in which the provider session is owned by an agent
4600
+ * the session does not yet call its lead — and a movement announced in that
4601
+ * window has no legitimate writer.
4602
+ */
4603
+ declare const SessionOwnershipReserveStartServiceRequestSchema: z.ZodObject<{
4604
+ sessionId: z.ZodString;
4605
+ agentId: z.ZodString;
4606
+ adapterId: z.ZodString;
4607
+ adapterName: z.ZodString;
4608
+ machineId: z.ZodOptional<z.ZodString>;
4609
+ role: z.ZodEnum<{
4610
+ lead: "lead";
4611
+ member: "member";
4612
+ }>;
4613
+ resumeProviderSessionId: z.ZodNullable<z.ZodString>;
4614
+ expectedLeadAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4615
+ }, z.core.$strip>;
4616
+ /** {@inheritDoc SessionOwnershipReserveStartServiceRequestSchema} */
4617
+ type SessionOwnershipReserveStartServiceRequest = z.infer<typeof SessionOwnershipReserveStartServiceRequestSchema>;
4618
+ /**
4619
+ * What a committed reservation gives the caller to act — and to roll back — on.
4620
+ */
4621
+ declare const SessionOwnershipReservationSchema: z.ZodObject<{
4622
+ agentId: z.ZodString;
4623
+ sessionId: z.ZodString;
4624
+ machineId: z.ZodString;
4625
+ adapterId: z.ZodString;
4626
+ claim: z.ZodNullable<z.ZodObject<{
4627
+ machineId: z.ZodString;
4628
+ adapterId: z.ZodString;
4629
+ providerSessionId: z.ZodString;
4630
+ claimId: z.ZodString;
4631
+ adapterName: z.ZodString;
4632
+ sessionId: z.ZodString;
4633
+ agentId: z.ZodString;
4634
+ claimToken: z.ZodString;
4635
+ fence: z.ZodNumber;
4636
+ status: z.ZodEnum<{
4637
+ abandoned: "abandoned";
4638
+ held: "held";
4639
+ releasing: "releasing";
4640
+ }>;
4641
+ claimedAt: z.ZodNumber;
4642
+ updatedAt: z.ZodNumber;
4643
+ }, z.core.$strip>>;
4644
+ leadDesignated: z.ZodBoolean;
4645
+ previousLeadAgentId: z.ZodNullable<z.ZodString>;
4646
+ }, z.core.$strip>;
4647
+ /** {@inheritDoc SessionOwnershipReservationSchema} */
4648
+ type SessionOwnershipReservation = z.infer<typeof SessionOwnershipReservationSchema>;
4649
+ /**
4650
+ * Result of `session.ownership.reserveStart`.
4651
+ *
4652
+ * There is no caller-supplied takeover input of any kind. A key whose
4653
+ * incumbent's agent row is `disposed` is taken over by a storage predicate
4654
+ * inside the reserving transaction; everything else that holds a key is
4655
+ * reported as `occupied`, and the caller degrades rather than dispatching.
4656
+ */
4657
+ declare const SessionOwnershipReserveStartServiceResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4658
+ outcome: z.ZodLiteral<"reserved">;
4659
+ reservation: z.ZodObject<{
4660
+ agentId: z.ZodString;
4661
+ sessionId: z.ZodString;
4662
+ machineId: z.ZodString;
4663
+ adapterId: z.ZodString;
4664
+ claim: z.ZodNullable<z.ZodObject<{
4665
+ machineId: z.ZodString;
4666
+ adapterId: z.ZodString;
4667
+ providerSessionId: z.ZodString;
4668
+ claimId: z.ZodString;
4669
+ adapterName: z.ZodString;
4670
+ sessionId: z.ZodString;
4671
+ agentId: z.ZodString;
4672
+ claimToken: z.ZodString;
4673
+ fence: z.ZodNumber;
4674
+ status: z.ZodEnum<{
4675
+ abandoned: "abandoned";
4676
+ held: "held";
4677
+ releasing: "releasing";
4678
+ }>;
4679
+ claimedAt: z.ZodNumber;
4680
+ updatedAt: z.ZodNumber;
4681
+ }, z.core.$strip>>;
4682
+ leadDesignated: z.ZodBoolean;
4683
+ previousLeadAgentId: z.ZodNullable<z.ZodString>;
4684
+ }, z.core.$strip>;
4685
+ }, z.core.$strip>, z.ZodObject<{
4686
+ outcome: z.ZodLiteral<"occupied">;
4687
+ holder: z.ZodObject<{
4688
+ machineId: z.ZodString;
4689
+ adapterId: z.ZodString;
4690
+ providerSessionId: z.ZodString;
4691
+ claimId: z.ZodString;
4692
+ adapterName: z.ZodString;
4693
+ sessionId: z.ZodString;
4694
+ agentId: z.ZodString;
4695
+ claimToken: z.ZodString;
4696
+ fence: z.ZodNumber;
4697
+ status: z.ZodEnum<{
4698
+ abandoned: "abandoned";
4699
+ held: "held";
4700
+ releasing: "releasing";
4701
+ }>;
4702
+ claimedAt: z.ZodNumber;
4703
+ updatedAt: z.ZodNumber;
4704
+ }, z.core.$strip>;
4705
+ }, z.core.$strip>, z.ZodObject<{
4706
+ outcome: z.ZodLiteral<"lead-conflict">;
4707
+ currentLeadAgentId: z.ZodNullable<z.ZodString>;
4708
+ }, z.core.$strip>, z.ZodObject<{
4709
+ outcome: z.ZodLiteral<"agent-disposed">;
4710
+ }, z.core.$strip>, z.ZodObject<{
4711
+ outcome: z.ZodLiteral<"not-found">;
4712
+ missing: z.ZodEnum<{
4713
+ agent: "agent";
4714
+ session: "session";
4715
+ }>;
4716
+ }, z.core.$strip>, z.ZodObject<{
4717
+ outcome: z.ZodLiteral<"machine-identity-unavailable">;
4718
+ }, z.core.$strip>], "outcome">;
4719
+ /** {@inheritDoc SessionOwnershipReserveStartServiceResponseSchema} */
4720
+ type SessionOwnershipReserveStartServiceResult$1 = z.infer<typeof SessionOwnershipReserveStartServiceResponseSchema>;
4721
+ /**
4722
+ * A movement as the observation seam reports it, before the authority turns it
4723
+ * into a durable movement.
4724
+ *
4725
+ * Modeled as a real union rather than the seam's flag/ID pair: the pair is one
4726
+ * value, and a service surface that accepted the halves separately would have
4727
+ * to re-derive the invariant the seam's own refinement cannot carry across the
4728
+ * wire.
4729
+ */
4730
+ declare const SessionOwnershipServiceMovementSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4731
+ confirmed: z.ZodLiteral<true>;
4732
+ providerSessionId: z.ZodString;
4733
+ }, z.core.$strip>, z.ZodObject<{
4734
+ confirmed: z.ZodLiteral<false>;
4735
+ }, z.core.$strip>], "confirmed">;
4736
+ /** {@inheritDoc SessionOwnershipServiceMovementSchema} */
4737
+ type SessionOwnershipServiceMovement = z.infer<typeof SessionOwnershipServiceMovementSchema>;
4738
+ /**
4739
+ * Request payload for `session.ownership.settleMovement`.
4740
+ *
4741
+ * The authority reads the revision itself, because that is a per-attempt value
4742
+ * a caller cannot hold correctly across a retry, and the whole movement is one
4743
+ * storage transaction underneath.
4744
+ */
4745
+ declare const SessionOwnershipSettleMovementServiceRequestSchema: z.ZodObject<{
4746
+ sessionId: z.ZodString;
4747
+ agentId: z.ZodString;
4748
+ adapterId: z.ZodString;
4749
+ adapterName: z.ZodString;
4750
+ machineId: z.ZodOptional<z.ZodString>;
4751
+ movement: z.ZodDiscriminatedUnion<[z.ZodObject<{
4752
+ confirmed: z.ZodLiteral<true>;
4753
+ providerSessionId: z.ZodString;
4754
+ }, z.core.$strip>, z.ZodObject<{
4755
+ confirmed: z.ZodLiteral<false>;
4756
+ }, z.core.$strip>], "confirmed">;
4757
+ claimToken: z.ZodOptional<z.ZodString>;
4758
+ }, z.core.$strip>;
4759
+ /** {@inheritDoc SessionOwnershipSettleMovementServiceRequestSchema} */
4760
+ type SessionOwnershipSettleMovementServiceRequest = z.infer<typeof SessionOwnershipSettleMovementServiceRequestSchema>;
4761
+ /**
4762
+ * Result of `session.ownership.settleMovement`.
4763
+ *
4764
+ * The durable outcomes verbatim, plus the one outcome only the service can
4765
+ * produce. On `settled`, carry `claim` — the generation the settle actually
4766
+ * wrote through — into any later release, never the token the authority sent.
4767
+ */
4768
+ declare const SessionOwnershipSettleMovementServiceResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4769
+ outcome: z.ZodLiteral<"settled">;
4770
+ revision: z.ZodNumber;
4771
+ currency: z.ZodObject<{
4772
+ adapterSessionId: z.ZodNullable<z.ZodString>;
4773
+ currentAdapterSessionId: z.ZodNullable<z.ZodString>;
4774
+ currentAdapterSessionIdState: z.ZodEnum<{
4775
+ confirmed: "confirmed";
4776
+ moved: "moved";
4777
+ inherited: "inherited";
4778
+ }>;
4779
+ }, z.core.$strip>;
4780
+ sessionSnapshotUpdated: z.ZodBoolean;
4781
+ releasedProviderSessionIds: z.ZodArray<z.ZodString>;
4782
+ claim: z.ZodObject<{
4783
+ machineId: z.ZodString;
4784
+ adapterId: z.ZodString;
4785
+ providerSessionId: z.ZodString;
4786
+ claimId: z.ZodString;
4787
+ adapterName: z.ZodString;
4788
+ sessionId: z.ZodString;
4789
+ agentId: z.ZodString;
4790
+ claimToken: z.ZodString;
4791
+ fence: z.ZodNumber;
4792
+ status: z.ZodEnum<{
4793
+ abandoned: "abandoned";
4794
+ held: "held";
4795
+ releasing: "releasing";
4796
+ }>;
4797
+ claimedAt: z.ZodNumber;
4798
+ updatedAt: z.ZodNumber;
4799
+ }, z.core.$strip>;
4800
+ }, z.core.$strip>, z.ZodObject<{
4801
+ outcome: z.ZodLiteral<"idempotent">;
4802
+ revision: z.ZodNumber;
4803
+ currency: z.ZodObject<{
4804
+ adapterSessionId: z.ZodNullable<z.ZodString>;
4805
+ currentAdapterSessionId: z.ZodNullable<z.ZodString>;
4806
+ currentAdapterSessionIdState: z.ZodEnum<{
4807
+ confirmed: "confirmed";
4808
+ moved: "moved";
4809
+ inherited: "inherited";
4810
+ }>;
4811
+ }, z.core.$strip>;
4812
+ sessionSnapshotUpdated: z.ZodLiteral<false>;
4813
+ claim: z.ZodNullable<z.ZodObject<{
4814
+ machineId: z.ZodString;
4815
+ adapterId: z.ZodString;
4816
+ providerSessionId: z.ZodString;
4817
+ claimId: z.ZodString;
4818
+ adapterName: z.ZodString;
4819
+ sessionId: z.ZodString;
4820
+ agentId: z.ZodString;
4821
+ claimToken: z.ZodString;
4822
+ fence: z.ZodNumber;
4823
+ status: z.ZodEnum<{
4824
+ abandoned: "abandoned";
4825
+ held: "held";
4826
+ releasing: "releasing";
4827
+ }>;
4828
+ claimedAt: z.ZodNumber;
4829
+ updatedAt: z.ZodNumber;
4830
+ }, z.core.$strip>>;
4831
+ }, z.core.$strip>, z.ZodObject<{
4832
+ outcome: z.ZodLiteral<"already-claimed">;
4833
+ holder: z.ZodObject<{
4834
+ machineId: z.ZodString;
4835
+ adapterId: z.ZodString;
4836
+ providerSessionId: z.ZodString;
4837
+ claimId: z.ZodString;
4838
+ adapterName: z.ZodString;
4839
+ sessionId: z.ZodString;
4840
+ agentId: z.ZodString;
4841
+ claimToken: z.ZodString;
4842
+ fence: z.ZodNumber;
4843
+ status: z.ZodEnum<{
4844
+ abandoned: "abandoned";
4845
+ held: "held";
4846
+ releasing: "releasing";
4847
+ }>;
4848
+ claimedAt: z.ZodNumber;
4849
+ updatedAt: z.ZodNumber;
4850
+ }, z.core.$strip>;
4851
+ }, z.core.$strip>, z.ZodObject<{
4852
+ outcome: z.ZodLiteral<"superseded">;
4853
+ currentFence: z.ZodNumber;
4854
+ }, z.core.$strip>, z.ZodObject<{
4855
+ outcome: z.ZodLiteral<"currency-changed">;
4856
+ revision: z.ZodNumber;
4857
+ currency: z.ZodObject<{
4858
+ adapterSessionId: z.ZodNullable<z.ZodString>;
4859
+ currentAdapterSessionId: z.ZodNullable<z.ZodString>;
4860
+ currentAdapterSessionIdState: z.ZodEnum<{
4861
+ confirmed: "confirmed";
4862
+ moved: "moved";
4863
+ inherited: "inherited";
4864
+ }>;
4865
+ }, z.core.$strip>;
4866
+ }, z.core.$strip>, z.ZodObject<{
4867
+ outcome: z.ZodLiteral<"not-owner">;
4868
+ }, z.core.$strip>, z.ZodObject<{
4869
+ outcome: z.ZodLiteral<"agent-disposed">;
4870
+ }, z.core.$strip>, z.ZodObject<{
4871
+ outcome: z.ZodLiteral<"not-found">;
4872
+ }, z.core.$strip>, z.ZodObject<{
4873
+ outcome: z.ZodLiteral<"machine-identity-unavailable">;
4874
+ }, z.core.$strip>], "outcome">;
4875
+ /** {@inheritDoc SessionOwnershipSettleMovementServiceResponseSchema} */
4876
+ type SessionOwnershipSettleMovementServiceResult = z.infer<typeof SessionOwnershipSettleMovementServiceResponseSchema>;
4877
+ /**
4878
+ * Request payload for `session.ownership.release`.
4112
4879
  *
4113
- * Runtime validation uses {@link SessionEventTypeSchema} (accepts any string).
4114
- * Compile-time typing is derived from {@link SessionEventTypeMap} keys.
4115
- */
4116
- type SessionEventType$1 = keyof SessionEventTypeMap;
4117
- /**
4118
- * Get the payload type for a specific session event type.
4119
- * @typeParam T - The event type key
4120
- * @example
4121
- * ```typescript
4122
- * type MessagePayload = SessionEventPayload<'message'>;
4123
- * // { messageId: string; turnId: string | null; role: 'user' | 'assistant' }
4124
- * ```
4880
+ * Naming a `claimToken` is the **rollback** form — it retires exactly the
4881
+ * generation the failed attempt took, and never a second, unrelated one the
4882
+ * agent may hold from an in-flight movement. Omitting it is the **teardown**
4883
+ * form, which is the only shape that can be complete: listing an agent's claims
4884
+ * and releasing them one by one cannot see a claim taken in between.
4885
+ *
4886
+ * The disposition is the caller's evidence and is never inferred here — only a
4887
+ * failure that provably never reached the provider may release cleanly.
4125
4888
  */
4126
- type SessionEventPayload<T extends SessionEventType$1> = SessionEventTypeMap[T];
4127
- //#endregion
4128
- //#region core/contracts/src/session/schemas/fork-child-info.d.ts
4889
+ declare const SessionOwnershipReleaseServiceRequestSchema: z.ZodObject<{
4890
+ agentId: z.ZodString;
4891
+ claimToken: z.ZodOptional<z.ZodString>;
4892
+ disposition: z.ZodEnum<{
4893
+ released: "released";
4894
+ abandoned: "abandoned";
4895
+ releasing: "releasing";
4896
+ }>;
4897
+ }, z.core.$strip>;
4898
+ /** {@inheritDoc SessionOwnershipReleaseServiceRequestSchema} */
4899
+ type SessionOwnershipReleaseServiceRequest = z.infer<typeof SessionOwnershipReleaseServiceRequestSchema>;
4129
4900
  /**
4130
- * Information about a child session for fork display.
4131
- * Used by getChildren enriched response.
4901
+ * Why reconcile judged a claim's owner gone.
4902
+ *
4903
+ * **Diagnostic only.** None of these authorizes a takeover: takeover is a
4904
+ * storage predicate over the incumbent's own rows, and it never looks at a
4905
+ * claim's reconcile verdict or at an adapter probe.
4132
4906
  */
4133
- declare const ForkChildInfoSchema: z.ZodObject<{
4134
- sessionId: z.ZodString;
4135
- title: z.ZodNullable<z.ZodString>;
4136
- forkPointMessageId: z.ZodNullable<z.ZodString>;
4137
- branchKind: z.ZodNullable<z.ZodEnum<{
4138
- fork: "fork";
4139
- subagent: "subagent";
4140
- compress: "compress";
4141
- branch: "branch";
4142
- rewrite: "rewrite";
4143
- coordinator: "coordinator";
4144
- aside: "aside";
4907
+ declare const SessionOwnershipReclaimReasonSchema: z.ZodEnum<{
4908
+ "agent-disposed": "agent-disposed";
4909
+ "agent-gone": "agent-gone";
4910
+ "adapter-instance-gone": "adapter-instance-gone";
4911
+ }>;
4912
+ /** {@inheritDoc SessionOwnershipReclaimReasonSchema} */
4913
+ type SessionOwnershipReclaimReason$1 = z.infer<typeof SessionOwnershipReclaimReasonSchema>;
4914
+ /** One claim as reconcile left it. */
4915
+ declare const SessionOwnershipReconciledClaimSchema: z.ZodObject<{
4916
+ claim: z.ZodObject<{
4917
+ machineId: z.ZodString;
4918
+ adapterId: z.ZodString;
4919
+ providerSessionId: z.ZodString;
4920
+ claimId: z.ZodString;
4921
+ adapterName: z.ZodString;
4922
+ sessionId: z.ZodString;
4923
+ agentId: z.ZodString;
4924
+ claimToken: z.ZodString;
4925
+ fence: z.ZodNumber;
4926
+ status: z.ZodEnum<{
4927
+ abandoned: "abandoned";
4928
+ held: "held";
4929
+ releasing: "releasing";
4930
+ }>;
4931
+ claimedAt: z.ZodNumber;
4932
+ updatedAt: z.ZodNumber;
4933
+ }, z.core.$strip>;
4934
+ verdict: z.ZodEnum<{
4935
+ abandoned: "abandoned";
4936
+ retained: "retained";
4937
+ vanished: "vanished";
4938
+ }>;
4939
+ reason: z.ZodOptional<z.ZodEnum<{
4940
+ "agent-disposed": "agent-disposed";
4941
+ "agent-gone": "agent-gone";
4942
+ "adapter-instance-gone": "adapter-instance-gone";
4145
4943
  }>>;
4146
- messageCount: z.ZodNumber;
4147
- hasChildren: z.ZodBoolean;
4148
- spawningToolCallId: z.ZodOptional<z.ZodString>;
4149
4944
  }, z.core.$strip>;
4150
- type ForkChildInfo = z.infer<typeof ForkChildInfoSchema>;
4151
- //#endregion
4152
- //#region core/contracts/src/session/schemas/lifecycle-events.d.ts
4945
+ /** {@inheritDoc SessionOwnershipReconciledClaimSchema} */
4946
+ type SessionOwnershipReconciledClaim = z.infer<typeof SessionOwnershipReconciledClaimSchema>;
4153
4947
  /**
4154
- * Session lifecycle event schemas.
4155
- * These extend SessionSchemas for fork/merge/abandon lifecycle.
4948
+ * Result of `session.ownership.reconcile`.
4949
+ *
4950
+ * Reconcile never deletes a row and never frees a key. Marking an
4951
+ * already-`abandoned` claim is a no-op, so repeated runs are idempotent by
4952
+ * construction.
4156
4953
  */
4954
+ declare const SessionOwnershipReconcileServiceResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4955
+ outcome: z.ZodLiteral<"reconciled">;
4956
+ machineId: z.ZodString;
4957
+ claims: z.ZodArray<z.ZodObject<{
4958
+ claim: z.ZodObject<{
4959
+ machineId: z.ZodString;
4960
+ adapterId: z.ZodString;
4961
+ providerSessionId: z.ZodString;
4962
+ claimId: z.ZodString;
4963
+ adapterName: z.ZodString;
4964
+ sessionId: z.ZodString;
4965
+ agentId: z.ZodString;
4966
+ claimToken: z.ZodString;
4967
+ fence: z.ZodNumber;
4968
+ status: z.ZodEnum<{
4969
+ abandoned: "abandoned";
4970
+ held: "held";
4971
+ releasing: "releasing";
4972
+ }>;
4973
+ claimedAt: z.ZodNumber;
4974
+ updatedAt: z.ZodNumber;
4975
+ }, z.core.$strip>;
4976
+ verdict: z.ZodEnum<{
4977
+ abandoned: "abandoned";
4978
+ retained: "retained";
4979
+ vanished: "vanished";
4980
+ }>;
4981
+ reason: z.ZodOptional<z.ZodEnum<{
4982
+ "agent-disposed": "agent-disposed";
4983
+ "agent-gone": "agent-gone";
4984
+ "adapter-instance-gone": "adapter-instance-gone";
4985
+ }>>;
4986
+ }, z.core.$strip>>;
4987
+ }, z.core.$strip>, z.ZodObject<{
4988
+ outcome: z.ZodLiteral<"skipped">;
4989
+ reason: z.ZodLiteral<"machine-identity-unavailable">;
4990
+ }, z.core.$strip>], "outcome">;
4991
+ /** {@inheritDoc SessionOwnershipReconcileServiceResponseSchema} */
4992
+ type SessionOwnershipReconcileServiceResult = z.infer<typeof SessionOwnershipReconcileServiceResponseSchema>;
4157
4993
  /**
4158
- * Policy for a contiguous range of messages in a fork context window.
4994
+ * Request payload for `session.ownership.continuation`.
4159
4995
  *
4160
- * Segments define how a slice of conversation history is projected into the
4161
- * child session. When `segments` is present on {@link ForkTransforms},
4162
- * `removedMessageIds` and `appliedPipeline` are ignored — segments take
4163
- * precedence as the authoritative context curation strategy.
4996
+ * Observing that a provider conversation continued is evidence the session is
4997
+ * still in use, which a `closed` row contradicts. Reporting the observation is
4998
+ * the caller's whole duty; deciding what it implies for the row is this
4999
+ * operation's.
4164
5000
  */
4165
- declare const SegmentPolicySchema: z.ZodObject<{
4166
- fromMessageId: z.ZodString;
4167
- toMessageId: z.ZodString;
4168
- policy: z.ZodEnum<{
4169
- verbatim: "verbatim";
4170
- summarize: "summarize";
4171
- exclude: "exclude";
5001
+ declare const SessionOwnershipContinuationServiceRequestSchema: z.ZodObject<{
5002
+ sessionId: z.ZodString;
5003
+ startMode: z.ZodEnum<{
5004
+ resume: "resume";
5005
+ compact: "compact";
4172
5006
  }>;
4173
- stripReasoning: z.ZodOptional<z.ZodBoolean>;
4174
- stripToolOutputs: z.ZodOptional<z.ZodBoolean>;
4175
- overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodLiteral<"exclude">>>;
4176
- summaryText: z.ZodOptional<z.ZodString>;
4177
5007
  }, z.core.$strip>;
4178
- /** Inferred type for {@link SegmentPolicySchema}. */
4179
- type SegmentPolicy = z.infer<typeof SegmentPolicySchema>;
5008
+ /** {@inheritDoc SessionOwnershipContinuationServiceRequestSchema} */
5009
+ type SessionOwnershipContinuationServiceRequest = z.infer<typeof SessionOwnershipContinuationServiceRequestSchema>;
4180
5010
  /**
4181
- * Transform configuration for fork sessions.
4182
- * Stored on session record and applied by getFullConversation().
5011
+ * Result of `session.ownership.continuation`.
4183
5012
  *
4184
- * When `segments` is present, it takes precedence over `removedMessageIds`
4185
- * and `appliedPipeline` — those fields are ignored at runtime.
5013
+ * The reported `sessionId` is the row that was acted on, which is the lineage
5014
+ * root — not necessarily the row the caller named.
4186
5015
  */
4187
- declare const ForkTransformsSchema$1: z.ZodObject<{
4188
- removedMessageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
4189
- appliedPipeline: z.ZodOptional<z.ZodArray<z.ZodObject<{
4190
- actionId: z.ZodString;
4191
- options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4192
- }, z.core.$strip>>>;
4193
- segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
4194
- fromMessageId: z.ZodString;
4195
- toMessageId: z.ZodString;
4196
- policy: z.ZodEnum<{
4197
- verbatim: "verbatim";
4198
- summarize: "summarize";
4199
- exclude: "exclude";
4200
- }>;
4201
- stripReasoning: z.ZodOptional<z.ZodBoolean>;
4202
- stripToolOutputs: z.ZodOptional<z.ZodBoolean>;
4203
- overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodLiteral<"exclude">>>;
4204
- summaryText: z.ZodOptional<z.ZodString>;
4205
- }, z.core.$strip>>>;
4206
- }, z.core.$strip>;
4207
- type ForkTransforms$1 = z.infer<typeof ForkTransformsSchema$1>;
4208
- declare const SessionCreatedEventSchema: z.ZodObject<{
5016
+ declare const SessionOwnershipContinuationServiceResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
5017
+ outcome: z.ZodLiteral<"reopened">;
4209
5018
  sessionId: z.ZodString;
4210
- parentSessionId: z.ZodNullable<z.ZodString>;
4211
- branchKind: z.ZodNullable<z.ZodEnum<{
4212
- fork: "fork";
4213
- subagent: "subagent";
4214
- compress: "compress";
4215
- branch: "branch";
4216
- rewrite: "rewrite";
4217
- coordinator: "coordinator";
4218
- aside: "aside";
4219
- }>>;
4220
- createdAt: z.ZodNumber;
4221
- originWindowId: z.ZodOptional<z.ZodString>;
4222
- }, z.core.$strip>;
4223
- declare const SessionUpdatedEventSchema: z.ZodObject<{
5019
+ }, z.core.$strip>, z.ZodObject<{
5020
+ outcome: z.ZodLiteral<"unchanged">;
4224
5021
  sessionId: z.ZodString;
4225
- changedProperties: z.ZodArray<z.ZodString>;
4226
- }, z.core.$strip>;
4227
- type SessionCreated = z.infer<typeof SessionCreatedEventSchema>;
4228
- type SessionUpdatedEvent = z.infer<typeof SessionUpdatedEventSchema>;
5022
+ }, z.core.$strip>, z.ZodObject<{
5023
+ outcome: z.ZodLiteral<"not-found">;
5024
+ }, z.core.$strip>, z.ZodObject<{
5025
+ outcome: z.ZodLiteral<"unresolved">;
5026
+ sessionId: z.ZodString;
5027
+ }, z.core.$strip>], "outcome">;
5028
+ /** {@inheritDoc SessionOwnershipContinuationServiceResponseSchema} */
5029
+ type SessionOwnershipContinuationServiceResult = z.infer<typeof SessionOwnershipContinuationServiceResponseSchema>;
4229
5030
  //#endregion
4230
5031
  //#region core/contracts/src/session/schemas.d.ts
4231
5032
  /**
@@ -4249,6 +5050,300 @@ type SessionUpdatedEvent = z.infer<typeof SessionUpdatedEventSchema>;
4249
5050
  * ```
4250
5051
  */
4251
5052
  declare const SessionSchemas: {
5053
+ 'ownership.reserveStart': {
5054
+ request: _$zod.ZodObject<{
5055
+ sessionId: _$zod.ZodString;
5056
+ agentId: _$zod.ZodString;
5057
+ adapterId: _$zod.ZodString;
5058
+ adapterName: _$zod.ZodString;
5059
+ machineId: _$zod.ZodOptional<_$zod.ZodString>;
5060
+ role: _$zod.ZodEnum<{
5061
+ lead: "lead";
5062
+ member: "member";
5063
+ }>;
5064
+ resumeProviderSessionId: _$zod.ZodNullable<_$zod.ZodString>;
5065
+ expectedLeadAgentId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
5066
+ }, _$zod_v4_core0.$strip>;
5067
+ response: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
5068
+ outcome: _$zod.ZodLiteral<"reserved">;
5069
+ reservation: _$zod.ZodObject<{
5070
+ agentId: _$zod.ZodString;
5071
+ sessionId: _$zod.ZodString;
5072
+ machineId: _$zod.ZodString;
5073
+ adapterId: _$zod.ZodString;
5074
+ claim: _$zod.ZodNullable<_$zod.ZodObject<{
5075
+ machineId: _$zod.ZodString;
5076
+ adapterId: _$zod.ZodString;
5077
+ providerSessionId: _$zod.ZodString;
5078
+ claimId: _$zod.ZodString;
5079
+ adapterName: _$zod.ZodString;
5080
+ sessionId: _$zod.ZodString;
5081
+ agentId: _$zod.ZodString;
5082
+ claimToken: _$zod.ZodString;
5083
+ fence: _$zod.ZodNumber;
5084
+ status: _$zod.ZodEnum<{
5085
+ abandoned: "abandoned";
5086
+ held: "held";
5087
+ releasing: "releasing";
5088
+ }>;
5089
+ claimedAt: _$zod.ZodNumber;
5090
+ updatedAt: _$zod.ZodNumber;
5091
+ }, _$zod_v4_core0.$strip>>;
5092
+ leadDesignated: _$zod.ZodBoolean;
5093
+ previousLeadAgentId: _$zod.ZodNullable<_$zod.ZodString>;
5094
+ }, _$zod_v4_core0.$strip>;
5095
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5096
+ outcome: _$zod.ZodLiteral<"occupied">;
5097
+ holder: _$zod.ZodObject<{
5098
+ machineId: _$zod.ZodString;
5099
+ adapterId: _$zod.ZodString;
5100
+ providerSessionId: _$zod.ZodString;
5101
+ claimId: _$zod.ZodString;
5102
+ adapterName: _$zod.ZodString;
5103
+ sessionId: _$zod.ZodString;
5104
+ agentId: _$zod.ZodString;
5105
+ claimToken: _$zod.ZodString;
5106
+ fence: _$zod.ZodNumber;
5107
+ status: _$zod.ZodEnum<{
5108
+ abandoned: "abandoned";
5109
+ held: "held";
5110
+ releasing: "releasing";
5111
+ }>;
5112
+ claimedAt: _$zod.ZodNumber;
5113
+ updatedAt: _$zod.ZodNumber;
5114
+ }, _$zod_v4_core0.$strip>;
5115
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5116
+ outcome: _$zod.ZodLiteral<"lead-conflict">;
5117
+ currentLeadAgentId: _$zod.ZodNullable<_$zod.ZodString>;
5118
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5119
+ outcome: _$zod.ZodLiteral<"agent-disposed">;
5120
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5121
+ outcome: _$zod.ZodLiteral<"not-found">;
5122
+ missing: _$zod.ZodEnum<{
5123
+ agent: "agent";
5124
+ session: "session";
5125
+ }>;
5126
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5127
+ outcome: _$zod.ZodLiteral<"machine-identity-unavailable">;
5128
+ }, _$zod_v4_core0.$strip>], "outcome">;
5129
+ };
5130
+ 'ownership.settleMovement': {
5131
+ request: _$zod.ZodObject<{
5132
+ sessionId: _$zod.ZodString;
5133
+ agentId: _$zod.ZodString;
5134
+ adapterId: _$zod.ZodString;
5135
+ adapterName: _$zod.ZodString;
5136
+ machineId: _$zod.ZodOptional<_$zod.ZodString>;
5137
+ movement: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
5138
+ confirmed: _$zod.ZodLiteral<true>;
5139
+ providerSessionId: _$zod.ZodString;
5140
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5141
+ confirmed: _$zod.ZodLiteral<false>;
5142
+ }, _$zod_v4_core0.$strip>], "confirmed">;
5143
+ claimToken: _$zod.ZodOptional<_$zod.ZodString>;
5144
+ }, _$zod_v4_core0.$strip>;
5145
+ response: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
5146
+ outcome: _$zod.ZodLiteral<"settled">;
5147
+ revision: _$zod.ZodNumber;
5148
+ currency: _$zod.ZodObject<{
5149
+ adapterSessionId: _$zod.ZodNullable<_$zod.ZodString>;
5150
+ currentAdapterSessionId: _$zod.ZodNullable<_$zod.ZodString>;
5151
+ currentAdapterSessionIdState: _$zod.ZodEnum<{
5152
+ confirmed: "confirmed";
5153
+ moved: "moved";
5154
+ inherited: "inherited";
5155
+ }>;
5156
+ }, _$zod_v4_core0.$strip>;
5157
+ sessionSnapshotUpdated: _$zod.ZodBoolean;
5158
+ releasedProviderSessionIds: _$zod.ZodArray<_$zod.ZodString>;
5159
+ claim: _$zod.ZodObject<{
5160
+ machineId: _$zod.ZodString;
5161
+ adapterId: _$zod.ZodString;
5162
+ providerSessionId: _$zod.ZodString;
5163
+ claimId: _$zod.ZodString;
5164
+ adapterName: _$zod.ZodString;
5165
+ sessionId: _$zod.ZodString;
5166
+ agentId: _$zod.ZodString;
5167
+ claimToken: _$zod.ZodString;
5168
+ fence: _$zod.ZodNumber;
5169
+ status: _$zod.ZodEnum<{
5170
+ abandoned: "abandoned";
5171
+ held: "held";
5172
+ releasing: "releasing";
5173
+ }>;
5174
+ claimedAt: _$zod.ZodNumber;
5175
+ updatedAt: _$zod.ZodNumber;
5176
+ }, _$zod_v4_core0.$strip>;
5177
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5178
+ outcome: _$zod.ZodLiteral<"idempotent">;
5179
+ revision: _$zod.ZodNumber;
5180
+ currency: _$zod.ZodObject<{
5181
+ adapterSessionId: _$zod.ZodNullable<_$zod.ZodString>;
5182
+ currentAdapterSessionId: _$zod.ZodNullable<_$zod.ZodString>;
5183
+ currentAdapterSessionIdState: _$zod.ZodEnum<{
5184
+ confirmed: "confirmed";
5185
+ moved: "moved";
5186
+ inherited: "inherited";
5187
+ }>;
5188
+ }, _$zod_v4_core0.$strip>;
5189
+ sessionSnapshotUpdated: _$zod.ZodLiteral<false>;
5190
+ claim: _$zod.ZodNullable<_$zod.ZodObject<{
5191
+ machineId: _$zod.ZodString;
5192
+ adapterId: _$zod.ZodString;
5193
+ providerSessionId: _$zod.ZodString;
5194
+ claimId: _$zod.ZodString;
5195
+ adapterName: _$zod.ZodString;
5196
+ sessionId: _$zod.ZodString;
5197
+ agentId: _$zod.ZodString;
5198
+ claimToken: _$zod.ZodString;
5199
+ fence: _$zod.ZodNumber;
5200
+ status: _$zod.ZodEnum<{
5201
+ abandoned: "abandoned";
5202
+ held: "held";
5203
+ releasing: "releasing";
5204
+ }>;
5205
+ claimedAt: _$zod.ZodNumber;
5206
+ updatedAt: _$zod.ZodNumber;
5207
+ }, _$zod_v4_core0.$strip>>;
5208
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5209
+ outcome: _$zod.ZodLiteral<"already-claimed">;
5210
+ holder: _$zod.ZodObject<{
5211
+ machineId: _$zod.ZodString;
5212
+ adapterId: _$zod.ZodString;
5213
+ providerSessionId: _$zod.ZodString;
5214
+ claimId: _$zod.ZodString;
5215
+ adapterName: _$zod.ZodString;
5216
+ sessionId: _$zod.ZodString;
5217
+ agentId: _$zod.ZodString;
5218
+ claimToken: _$zod.ZodString;
5219
+ fence: _$zod.ZodNumber;
5220
+ status: _$zod.ZodEnum<{
5221
+ abandoned: "abandoned";
5222
+ held: "held";
5223
+ releasing: "releasing";
5224
+ }>;
5225
+ claimedAt: _$zod.ZodNumber;
5226
+ updatedAt: _$zod.ZodNumber;
5227
+ }, _$zod_v4_core0.$strip>;
5228
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5229
+ outcome: _$zod.ZodLiteral<"superseded">;
5230
+ currentFence: _$zod.ZodNumber;
5231
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5232
+ outcome: _$zod.ZodLiteral<"currency-changed">;
5233
+ revision: _$zod.ZodNumber;
5234
+ currency: _$zod.ZodObject<{
5235
+ adapterSessionId: _$zod.ZodNullable<_$zod.ZodString>;
5236
+ currentAdapterSessionId: _$zod.ZodNullable<_$zod.ZodString>;
5237
+ currentAdapterSessionIdState: _$zod.ZodEnum<{
5238
+ confirmed: "confirmed";
5239
+ moved: "moved";
5240
+ inherited: "inherited";
5241
+ }>;
5242
+ }, _$zod_v4_core0.$strip>;
5243
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5244
+ outcome: _$zod.ZodLiteral<"not-owner">;
5245
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5246
+ outcome: _$zod.ZodLiteral<"agent-disposed">;
5247
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5248
+ outcome: _$zod.ZodLiteral<"not-found">;
5249
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5250
+ outcome: _$zod.ZodLiteral<"machine-identity-unavailable">;
5251
+ }, _$zod_v4_core0.$strip>], "outcome">;
5252
+ };
5253
+ 'ownership.release': {
5254
+ request: _$zod.ZodObject<{
5255
+ agentId: _$zod.ZodString;
5256
+ claimToken: _$zod.ZodOptional<_$zod.ZodString>;
5257
+ disposition: _$zod.ZodEnum<{
5258
+ released: "released";
5259
+ abandoned: "abandoned";
5260
+ releasing: "releasing";
5261
+ }>;
5262
+ }, _$zod_v4_core0.$strip>;
5263
+ response: _$zod.ZodObject<{
5264
+ releasedProviderSessionIds: _$zod.ZodArray<_$zod.ZodString>;
5265
+ markedClaims: _$zod.ZodArray<_$zod.ZodObject<{
5266
+ machineId: _$zod.ZodString;
5267
+ adapterId: _$zod.ZodString;
5268
+ providerSessionId: _$zod.ZodString;
5269
+ claimId: _$zod.ZodString;
5270
+ adapterName: _$zod.ZodString;
5271
+ sessionId: _$zod.ZodString;
5272
+ agentId: _$zod.ZodString;
5273
+ claimToken: _$zod.ZodString;
5274
+ fence: _$zod.ZodNumber;
5275
+ status: _$zod.ZodEnum<{
5276
+ abandoned: "abandoned";
5277
+ held: "held";
5278
+ releasing: "releasing";
5279
+ }>;
5280
+ claimedAt: _$zod.ZodNumber;
5281
+ updatedAt: _$zod.ZodNumber;
5282
+ }, _$zod_v4_core0.$strip>>;
5283
+ claimTokenNotFound: _$zod.ZodBoolean;
5284
+ }, _$zod_v4_core0.$strip>;
5285
+ };
5286
+ 'ownership.reconcile': {
5287
+ request: _$zod.ZodObject<{}, _$zod_v4_core0.$strip>;
5288
+ response: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
5289
+ outcome: _$zod.ZodLiteral<"reconciled">;
5290
+ machineId: _$zod.ZodString;
5291
+ claims: _$zod.ZodArray<_$zod.ZodObject<{
5292
+ claim: _$zod.ZodObject<{
5293
+ machineId: _$zod.ZodString;
5294
+ adapterId: _$zod.ZodString;
5295
+ providerSessionId: _$zod.ZodString;
5296
+ claimId: _$zod.ZodString;
5297
+ adapterName: _$zod.ZodString;
5298
+ sessionId: _$zod.ZodString;
5299
+ agentId: _$zod.ZodString;
5300
+ claimToken: _$zod.ZodString;
5301
+ fence: _$zod.ZodNumber;
5302
+ status: _$zod.ZodEnum<{
5303
+ abandoned: "abandoned";
5304
+ held: "held";
5305
+ releasing: "releasing";
5306
+ }>;
5307
+ claimedAt: _$zod.ZodNumber;
5308
+ updatedAt: _$zod.ZodNumber;
5309
+ }, _$zod_v4_core0.$strip>;
5310
+ verdict: _$zod.ZodEnum<{
5311
+ abandoned: "abandoned";
5312
+ retained: "retained";
5313
+ vanished: "vanished";
5314
+ }>;
5315
+ reason: _$zod.ZodOptional<_$zod.ZodEnum<{
5316
+ "agent-disposed": "agent-disposed";
5317
+ "agent-gone": "agent-gone";
5318
+ "adapter-instance-gone": "adapter-instance-gone";
5319
+ }>>;
5320
+ }, _$zod_v4_core0.$strip>>;
5321
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5322
+ outcome: _$zod.ZodLiteral<"skipped">;
5323
+ reason: _$zod.ZodLiteral<"machine-identity-unavailable">;
5324
+ }, _$zod_v4_core0.$strip>], "outcome">;
5325
+ };
5326
+ 'ownership.continuation': {
5327
+ request: _$zod.ZodObject<{
5328
+ sessionId: _$zod.ZodString;
5329
+ startMode: _$zod.ZodEnum<{
5330
+ resume: "resume";
5331
+ compact: "compact";
5332
+ }>;
5333
+ }, _$zod_v4_core0.$strip>;
5334
+ response: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
5335
+ outcome: _$zod.ZodLiteral<"reopened">;
5336
+ sessionId: _$zod.ZodString;
5337
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5338
+ outcome: _$zod.ZodLiteral<"unchanged">;
5339
+ sessionId: _$zod.ZodString;
5340
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5341
+ outcome: _$zod.ZodLiteral<"not-found">;
5342
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5343
+ outcome: _$zod.ZodLiteral<"unresolved">;
5344
+ sessionId: _$zod.ZodString;
5345
+ }, _$zod_v4_core0.$strip>], "outcome">;
5346
+ };
4252
5347
  enrichContext: {
4253
5348
  request: _$zod.ZodObject<{
4254
5349
  sessionId: _$zod.ZodString;
@@ -4337,9 +5432,9 @@ declare const SessionSchemas: {
4337
5432
  description: _$zod.ZodOptional<_$zod.ZodString>;
4338
5433
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
4339
5434
  exposureMode: _$zod.ZodEnum<{
4340
- hidden: "hidden";
4341
5435
  direct: "direct";
4342
5436
  discovery: "discovery";
5437
+ hidden: "hidden";
4343
5438
  }>;
4344
5439
  enabled: _$zod.ZodBoolean;
4345
5440
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -4356,9 +5451,9 @@ declare const SessionSchemas: {
4356
5451
  description: _$zod.ZodOptional<_$zod.ZodString>;
4357
5452
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
4358
5453
  exposureMode: _$zod.ZodEnum<{
4359
- hidden: "hidden";
4360
5454
  direct: "direct";
4361
5455
  discovery: "discovery";
5456
+ hidden: "hidden";
4362
5457
  }>;
4363
5458
  enabled: _$zod.ZodBoolean;
4364
5459
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -4593,9 +5688,9 @@ declare const SessionSchemas: {
4593
5688
  description: _$zod.ZodOptional<_$zod.ZodString>;
4594
5689
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
4595
5690
  exposureMode: _$zod.ZodEnum<{
4596
- hidden: "hidden";
4597
5691
  direct: "direct";
4598
5692
  discovery: "discovery";
5693
+ hidden: "hidden";
4599
5694
  }>;
4600
5695
  enabled: _$zod.ZodBoolean;
4601
5696
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -4612,9 +5707,9 @@ declare const SessionSchemas: {
4612
5707
  description: _$zod.ZodOptional<_$zod.ZodString>;
4613
5708
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
4614
5709
  exposureMode: _$zod.ZodEnum<{
4615
- hidden: "hidden";
4616
5710
  direct: "direct";
4617
5711
  discovery: "discovery";
5712
+ hidden: "hidden";
4618
5713
  }>;
4619
5714
  enabled: _$zod.ZodBoolean;
4620
5715
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -4630,6 +5725,7 @@ declare const SessionSchemas: {
4630
5725
  kind: _$zod.ZodLiteral<"adapter">;
4631
5726
  adapterName: _$zod.ZodOptional<_$zod.ZodString>;
4632
5727
  adapterId: _$zod.ZodOptional<_$zod.ZodString>;
5728
+ machineId: _$zod.ZodOptional<_$zod.ZodString>;
4633
5729
  }, _$zod_v4_core0.$loose>, _$zod.ZodObject<{
4634
5730
  providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
4635
5731
  reasoningEffort: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -4696,9 +5792,9 @@ declare const SessionSchemas: {
4696
5792
  description: _$zod.ZodOptional<_$zod.ZodString>;
4697
5793
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
4698
5794
  exposureMode: _$zod.ZodEnum<{
4699
- hidden: "hidden";
4700
5795
  direct: "direct";
4701
5796
  discovery: "discovery";
5797
+ hidden: "hidden";
4702
5798
  }>;
4703
5799
  enabled: _$zod.ZodBoolean;
4704
5800
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -4715,9 +5811,9 @@ declare const SessionSchemas: {
4715
5811
  description: _$zod.ZodOptional<_$zod.ZodString>;
4716
5812
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
4717
5813
  exposureMode: _$zod.ZodEnum<{
4718
- hidden: "hidden";
4719
5814
  direct: "direct";
4720
5815
  discovery: "discovery";
5816
+ hidden: "hidden";
4721
5817
  }>;
4722
5818
  enabled: _$zod.ZodBoolean;
4723
5819
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -4799,9 +5895,9 @@ declare const SessionSchemas: {
4799
5895
  description: _$zod.ZodOptional<_$zod.ZodString>;
4800
5896
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
4801
5897
  exposureMode: _$zod.ZodEnum<{
4802
- hidden: "hidden";
4803
5898
  direct: "direct";
4804
5899
  discovery: "discovery";
5900
+ hidden: "hidden";
4805
5901
  }>;
4806
5902
  enabled: _$zod.ZodBoolean;
4807
5903
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -4818,9 +5914,9 @@ declare const SessionSchemas: {
4818
5914
  description: _$zod.ZodOptional<_$zod.ZodString>;
4819
5915
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
4820
5916
  exposureMode: _$zod.ZodEnum<{
4821
- hidden: "hidden";
4822
5917
  direct: "direct";
4823
5918
  discovery: "discovery";
5919
+ hidden: "hidden";
4824
5920
  }>;
4825
5921
  enabled: _$zod.ZodBoolean;
4826
5922
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -4925,123 +6021,331 @@ declare const SessionSchemas: {
4925
6021
  data: _$zod.ZodString;
4926
6022
  mimeType: _$zod.ZodString;
4927
6023
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
4928
- type: _$zod.ZodLiteral<"url">;
6024
+ type: _$zod.ZodLiteral<"url">;
6025
+ url: _$zod.ZodString;
6026
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
6027
+ }, _$zod_v4_core0.$strip>], "type">;
6028
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
6029
+ type: _$zod.ZodLiteral<"attachment">;
6030
+ fileName: _$zod.ZodString;
6031
+ filePath: _$zod.ZodString;
6032
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
6033
+ type: _$zod.ZodLiteral<"base64">;
6034
+ data: _$zod.ZodString;
6035
+ mimeType: _$zod.ZodString;
6036
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
6037
+ type: _$zod.ZodLiteral<"url">;
6038
+ url: _$zod.ZodString;
6039
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
6040
+ }, _$zod_v4_core0.$strip>], "type">;
6041
+ displayName: _$zod.ZodOptional<_$zod.ZodString>;
6042
+ attachmentType: _$zod.ZodEnum<{
6043
+ file: "file";
6044
+ directory: "directory";
6045
+ }>;
6046
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
6047
+ type: _$zod.ZodLiteral<"reasoning">;
6048
+ content: _$zod.ZodString;
6049
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
6050
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
6051
+ type: _$zod.ZodLiteral<"tool_call">;
6052
+ toolCallId: _$zod.ZodString;
6053
+ name: _$zod.ZodString;
6054
+ args: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
6055
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
6056
+ type: _$zod.ZodLiteral<"tool_output">;
6057
+ toolCallId: _$zod.ZodString;
6058
+ output: _$zod.ZodString;
6059
+ isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
6060
+ }, _$zod_v4_core0.$strip>], "type">>]>;
6061
+ }, _$zod_v4_core0.$strip>>>;
6062
+ hasNewTransforms: _$zod.ZodOptional<_$zod.ZodBoolean>;
6063
+ hasCompression: _$zod.ZodOptional<_$zod.ZodBoolean>;
6064
+ extractedContext: _$zod.ZodOptional<_$zod.ZodUnknown>;
6065
+ isFirstTurn: _$zod.ZodOptional<_$zod.ZodBoolean>;
6066
+ hasConnectorSwap: _$zod.ZodOptional<_$zod.ZodBoolean>;
6067
+ cacheStrategy: _$zod.ZodOptional<_$zod.ZodEnum<{
6068
+ auto: "auto";
6069
+ systemPrompt: "systemPrompt";
6070
+ fullPrefix: "fullPrefix";
6071
+ }>>;
6072
+ turnContext: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodType<_$_makaio_contracts0.JsonValue, unknown, _$zod_v4_core0.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
6073
+ requestCorrelation: _$zod.ZodOptional<_$zod.ZodObject<{
6074
+ sessionId: _$zod.ZodOptional<_$zod.ZodString>;
6075
+ turnId: _$zod.ZodOptional<_$zod.ZodString>;
6076
+ messageId: _$zod.ZodOptional<_$zod.ZodString>;
6077
+ executionId: _$zod.ZodOptional<_$zod.ZodString>;
6078
+ frameId: _$zod.ZodOptional<_$zod.ZodString>;
6079
+ }, _$zod_v4_core0.$strict>>;
6080
+ nativeLocality: _$zod.ZodOptional<_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
6081
+ kind: _$zod.ZodLiteral<"native">;
6082
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
6083
+ kind: _$zod.ZodLiteral<"degrade">;
6084
+ reason: _$zod.ZodEnum<{
6085
+ "adapter-unsupported": "adapter-unsupported";
6086
+ "adapter-mismatch": "adapter-mismatch";
6087
+ "no-adapter-session": "no-adapter-session";
6088
+ "missing-machine-id": "missing-machine-id";
6089
+ "machine-mismatch": "machine-mismatch";
6090
+ "cwd-mismatch": "cwd-mismatch";
6091
+ "transforms-present": "transforms-present";
6092
+ "compression-present": "compression-present";
6093
+ "connector-swap": "connector-swap";
6094
+ "mid-history-unsupported": "mid-history-unsupported";
6095
+ "hybrid-imported-orchestrated": "hybrid-imported-orchestrated";
6096
+ "native-attempt-failed": "native-attempt-failed";
6097
+ "agent-already-started": "agent-already-started";
6098
+ "fork-point-unresolvable": "fork-point-unresolvable";
6099
+ "adapter-session-moved": "adapter-session-moved";
6100
+ }>;
6101
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
6102
+ kind: _$zod.ZodLiteral<"foreign">;
6103
+ machineId: _$zod.ZodString;
6104
+ }, _$zod_v4_core0.$strip>], "kind">>;
6105
+ nativeFork: _$zod.ZodOptional<_$zod.ZodObject<{
6106
+ sourceSessionId: _$zod.ZodString;
6107
+ sourceAdapterSessionId: _$zod.ZodString;
6108
+ forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
6109
+ targetWorkingDirectory: _$zod.ZodOptional<_$zod.ZodString>;
6110
+ }, _$zod_v4_core0.$strip>>;
6111
+ }, _$zod_v4_core0.$strip>>;
6112
+ responseSchema: _$zod.ZodOptional<_$zod.ZodObject<{
6113
+ schema: _$zod.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, _$zod_v4_core0.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
6114
+ name: _$zod.ZodOptional<_$zod.ZodString>;
6115
+ strict: _$zod.ZodOptional<_$zod.ZodBoolean>;
6116
+ }, _$zod_v4_core0.$strict>>;
6117
+ source: _$zod.ZodOptional<_$zod.ZodEnum<{
6118
+ user: "user";
6119
+ system: "system";
6120
+ extension: "extension";
6121
+ }>>;
6122
+ extensionId: _$zod.ZodOptional<_$zod.ZodString>;
6123
+ originWindowId: _$zod.ZodOptional<_$zod.ZodString>;
6124
+ skipConnectorSwapWarning: _$zod.ZodOptional<_$zod.ZodBoolean>;
6125
+ origin: _$zod.ZodOptional<_$zod.ZodEnum<{
6126
+ text: "text";
6127
+ compact: "compact";
6128
+ voice: "voice";
6129
+ }>>;
6130
+ }, _$zod_v4_core0.$strip>;
6131
+ response: _$zod.ZodObject<{
6132
+ messageId: _$zod.ZodString;
6133
+ turnId: _$zod.ZodString;
6134
+ sessionId: _$zod.ZodString;
6135
+ deferredAgentIds: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
6136
+ }, _$zod_v4_core0.$strip>;
6137
+ };
6138
+ 'agent.attach': {
6139
+ request: _$zod.ZodObject<{
6140
+ sessionId: _$zod.ZodString;
6141
+ agent: _$zod.ZodUnion<readonly [_$zod.ZodObject<{
6142
+ providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
6143
+ model: _$zod.ZodOptional<_$zod.ZodString>;
6144
+ reasoningEffort: _$zod.ZodOptional<_$zod.ZodEnum<{
6145
+ none: "none";
6146
+ low: "low";
6147
+ medium: "medium";
6148
+ high: "high";
6149
+ "extra-high": "extra-high";
6150
+ }>>;
6151
+ cwd: _$zod.ZodOptional<_$zod.ZodString>;
6152
+ systemPrompt: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
6153
+ mode: _$zod.ZodLiteral<"append">;
6154
+ content: _$zod.ZodString;
6155
+ }, _$zod_v4_core0.$strip>]>>;
6156
+ allowedTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
6157
+ disallowedTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
6158
+ env: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
6159
+ mcpSessionContext: _$zod.ZodOptional<_$zod.ZodObject<{
6160
+ sessionId: _$zod.ZodString;
6161
+ servers: _$zod.ZodArray<_$zod.ZodObject<{
6162
+ name: _$zod.ZodString;
6163
+ transport: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
6164
+ type: _$zod.ZodLiteral<"stdio">;
6165
+ command: _$zod.ZodString;
6166
+ args: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
6167
+ env: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
6168
+ alwaysLoad: _$zod.ZodOptional<_$zod.ZodBoolean>;
6169
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
6170
+ url: _$zod.ZodString;
6171
+ headers: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
6172
+ tools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
6173
+ name: _$zod.ZodString;
6174
+ permission_policy: _$zod.ZodEnum<{
6175
+ always_allow: "always_allow";
6176
+ always_ask: "always_ask";
6177
+ always_deny: "always_deny";
6178
+ }>;
6179
+ }, _$zod_v4_core0.$strip>>>;
6180
+ alwaysLoad: _$zod.ZodOptional<_$zod.ZodBoolean>;
6181
+ type: _$zod.ZodLiteral<"sse">;
6182
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
6183
+ url: _$zod.ZodString;
6184
+ headers: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
6185
+ tools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
6186
+ name: _$zod.ZodString;
6187
+ permission_policy: _$zod.ZodEnum<{
6188
+ always_allow: "always_allow";
6189
+ always_ask: "always_ask";
6190
+ always_deny: "always_deny";
6191
+ }>;
6192
+ }, _$zod_v4_core0.$strip>>>;
6193
+ alwaysLoad: _$zod.ZodOptional<_$zod.ZodBoolean>;
6194
+ type: _$zod.ZodLiteral<"http">;
6195
+ }, _$zod_v4_core0.$strip>], "type">;
6196
+ exposureMode: _$zod.ZodEnum<{
6197
+ direct: "direct";
6198
+ discovery: "discovery";
6199
+ }>;
6200
+ }, _$zod_v4_core0.$strip>>;
6201
+ directTools: _$zod.ZodArray<_$zod.ZodObject<{
6202
+ fullName: _$zod.ZodString;
6203
+ originalName: _$zod.ZodString;
6204
+ serverName: _$zod.ZodString;
6205
+ description: _$zod.ZodOptional<_$zod.ZodString>;
6206
+ inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
6207
+ exposureMode: _$zod.ZodEnum<{
6208
+ direct: "direct";
6209
+ discovery: "discovery";
6210
+ hidden: "hidden";
6211
+ }>;
6212
+ enabled: _$zod.ZodBoolean;
6213
+ enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
6214
+ discovery: "discovery";
6215
+ toolset: "toolset";
6216
+ }>>;
6217
+ enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
6218
+ exposed: _$zod.ZodBoolean;
6219
+ }, _$zod_v4_core0.$strip>>;
6220
+ discoverableTools: _$zod.ZodArray<_$zod.ZodObject<{
6221
+ fullName: _$zod.ZodString;
6222
+ originalName: _$zod.ZodString;
6223
+ serverName: _$zod.ZodString;
6224
+ description: _$zod.ZodOptional<_$zod.ZodString>;
6225
+ inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
6226
+ exposureMode: _$zod.ZodEnum<{
6227
+ direct: "direct";
6228
+ discovery: "discovery";
6229
+ hidden: "hidden";
6230
+ }>;
6231
+ enabled: _$zod.ZodBoolean;
6232
+ enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
6233
+ discovery: "discovery";
6234
+ toolset: "toolset";
6235
+ }>>;
6236
+ enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
6237
+ exposed: _$zod.ZodBoolean;
6238
+ }, _$zod_v4_core0.$strip>>;
6239
+ }, _$zod_v4_core0.$strip>>;
6240
+ allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
6241
+ adapterConfig: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
6242
+ kind: _$zod.ZodLiteral<"adapter">;
6243
+ adapterName: _$zod.ZodOptional<_$zod.ZodString>;
6244
+ adapterId: _$zod.ZodOptional<_$zod.ZodString>;
6245
+ machineId: _$zod.ZodOptional<_$zod.ZodString>;
6246
+ }, _$zod_v4_core0.$loose>, _$zod.ZodObject<{
6247
+ providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
6248
+ reasoningEffort: _$zod.ZodOptional<_$zod.ZodEnum<{
6249
+ none: "none";
6250
+ low: "low";
6251
+ medium: "medium";
6252
+ high: "high";
6253
+ "extra-high": "extra-high";
6254
+ }>>;
6255
+ cwd: _$zod.ZodOptional<_$zod.ZodString>;
6256
+ systemPrompt: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
6257
+ mode: _$zod.ZodLiteral<"append">;
6258
+ content: _$zod.ZodString;
6259
+ }, _$zod_v4_core0.$strip>]>>;
6260
+ allowedTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
6261
+ disallowedTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
6262
+ env: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
6263
+ mcpSessionContext: _$zod.ZodOptional<_$zod.ZodObject<{
6264
+ sessionId: _$zod.ZodString;
6265
+ servers: _$zod.ZodArray<_$zod.ZodObject<{
6266
+ name: _$zod.ZodString;
6267
+ transport: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
6268
+ type: _$zod.ZodLiteral<"stdio">;
6269
+ command: _$zod.ZodString;
6270
+ args: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
6271
+ env: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
6272
+ alwaysLoad: _$zod.ZodOptional<_$zod.ZodBoolean>;
6273
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
4929
6274
  url: _$zod.ZodString;
4930
- mimeType: _$zod.ZodOptional<_$zod.ZodString>;
4931
- }, _$zod_v4_core0.$strip>], "type">;
4932
- }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
4933
- type: _$zod.ZodLiteral<"attachment">;
4934
- fileName: _$zod.ZodString;
4935
- filePath: _$zod.ZodString;
4936
- source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
4937
- type: _$zod.ZodLiteral<"base64">;
4938
- data: _$zod.ZodString;
4939
- mimeType: _$zod.ZodString;
6275
+ headers: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
6276
+ tools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
6277
+ name: _$zod.ZodString;
6278
+ permission_policy: _$zod.ZodEnum<{
6279
+ always_allow: "always_allow";
6280
+ always_ask: "always_ask";
6281
+ always_deny: "always_deny";
6282
+ }>;
6283
+ }, _$zod_v4_core0.$strip>>>;
6284
+ alwaysLoad: _$zod.ZodOptional<_$zod.ZodBoolean>;
6285
+ type: _$zod.ZodLiteral<"sse">;
4940
6286
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
4941
- type: _$zod.ZodLiteral<"url">;
4942
6287
  url: _$zod.ZodString;
4943
- mimeType: _$zod.ZodOptional<_$zod.ZodString>;
6288
+ headers: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
6289
+ tools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
6290
+ name: _$zod.ZodString;
6291
+ permission_policy: _$zod.ZodEnum<{
6292
+ always_allow: "always_allow";
6293
+ always_ask: "always_ask";
6294
+ always_deny: "always_deny";
6295
+ }>;
6296
+ }, _$zod_v4_core0.$strip>>>;
6297
+ alwaysLoad: _$zod.ZodOptional<_$zod.ZodBoolean>;
6298
+ type: _$zod.ZodLiteral<"http">;
4944
6299
  }, _$zod_v4_core0.$strip>], "type">;
4945
- displayName: _$zod.ZodOptional<_$zod.ZodString>;
4946
- attachmentType: _$zod.ZodEnum<{
4947
- file: "file";
4948
- directory: "directory";
6300
+ exposureMode: _$zod.ZodEnum<{
6301
+ direct: "direct";
6302
+ discovery: "discovery";
4949
6303
  }>;
4950
- }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
4951
- type: _$zod.ZodLiteral<"reasoning">;
4952
- content: _$zod.ZodString;
4953
- metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
4954
- }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
4955
- type: _$zod.ZodLiteral<"tool_call">;
4956
- toolCallId: _$zod.ZodString;
4957
- name: _$zod.ZodString;
4958
- args: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
4959
- }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
4960
- type: _$zod.ZodLiteral<"tool_output">;
4961
- toolCallId: _$zod.ZodString;
4962
- output: _$zod.ZodString;
4963
- isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
4964
- }, _$zod_v4_core0.$strip>], "type">>]>;
4965
- }, _$zod_v4_core0.$strip>>>;
4966
- hasNewTransforms: _$zod.ZodOptional<_$zod.ZodBoolean>;
4967
- hasCompression: _$zod.ZodOptional<_$zod.ZodBoolean>;
4968
- extractedContext: _$zod.ZodOptional<_$zod.ZodUnknown>;
4969
- isFirstTurn: _$zod.ZodOptional<_$zod.ZodBoolean>;
4970
- hasConnectorSwap: _$zod.ZodOptional<_$zod.ZodBoolean>;
4971
- cacheStrategy: _$zod.ZodOptional<_$zod.ZodEnum<{
4972
- auto: "auto";
4973
- systemPrompt: "systemPrompt";
4974
- fullPrefix: "fullPrefix";
4975
- }>>;
4976
- turnContext: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodType<_$_makaio_contracts0.JsonValue, unknown, _$zod_v4_core0.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
4977
- requestCorrelation: _$zod.ZodOptional<_$zod.ZodObject<{
4978
- sessionId: _$zod.ZodOptional<_$zod.ZodString>;
4979
- turnId: _$zod.ZodOptional<_$zod.ZodString>;
4980
- messageId: _$zod.ZodOptional<_$zod.ZodString>;
4981
- executionId: _$zod.ZodOptional<_$zod.ZodString>;
4982
- frameId: _$zod.ZodOptional<_$zod.ZodString>;
4983
- }, _$zod_v4_core0.$strict>>;
4984
- nativeLocality: _$zod.ZodOptional<_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
4985
- kind: _$zod.ZodLiteral<"native">;
4986
- }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
4987
- kind: _$zod.ZodLiteral<"degrade">;
4988
- reason: _$zod.ZodEnum<{
4989
- "adapter-unsupported": "adapter-unsupported";
4990
- "adapter-mismatch": "adapter-mismatch";
4991
- "no-adapter-session": "no-adapter-session";
4992
- "missing-machine-id": "missing-machine-id";
4993
- "machine-mismatch": "machine-mismatch";
4994
- "cwd-mismatch": "cwd-mismatch";
4995
- "transforms-present": "transforms-present";
4996
- "compression-present": "compression-present";
4997
- "connector-swap": "connector-swap";
4998
- "mid-history-unsupported": "mid-history-unsupported";
4999
- "hybrid-imported-orchestrated": "hybrid-imported-orchestrated";
5000
- "native-attempt-failed": "native-attempt-failed";
5001
- "agent-already-started": "agent-already-started";
5002
- "fork-point-unresolvable": "fork-point-unresolvable";
5003
- }>;
5004
- }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5005
- kind: _$zod.ZodLiteral<"foreign">;
5006
- machineId: _$zod.ZodString;
5007
- }, _$zod_v4_core0.$strip>], "kind">>;
5008
- nativeFork: _$zod.ZodOptional<_$zod.ZodObject<{
5009
- sourceSessionId: _$zod.ZodString;
5010
- sourceAdapterSessionId: _$zod.ZodString;
5011
- forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
5012
- targetWorkingDirectory: _$zod.ZodOptional<_$zod.ZodString>;
6304
+ }, _$zod_v4_core0.$strip>>;
6305
+ directTools: _$zod.ZodArray<_$zod.ZodObject<{
6306
+ fullName: _$zod.ZodString;
6307
+ originalName: _$zod.ZodString;
6308
+ serverName: _$zod.ZodString;
6309
+ description: _$zod.ZodOptional<_$zod.ZodString>;
6310
+ inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
6311
+ exposureMode: _$zod.ZodEnum<{
6312
+ direct: "direct";
6313
+ discovery: "discovery";
6314
+ hidden: "hidden";
6315
+ }>;
6316
+ enabled: _$zod.ZodBoolean;
6317
+ enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
6318
+ discovery: "discovery";
6319
+ toolset: "toolset";
6320
+ }>>;
6321
+ enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
6322
+ exposed: _$zod.ZodBoolean;
6323
+ }, _$zod_v4_core0.$strip>>;
6324
+ discoverableTools: _$zod.ZodArray<_$zod.ZodObject<{
6325
+ fullName: _$zod.ZodString;
6326
+ originalName: _$zod.ZodString;
6327
+ serverName: _$zod.ZodString;
6328
+ description: _$zod.ZodOptional<_$zod.ZodString>;
6329
+ inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
6330
+ exposureMode: _$zod.ZodEnum<{
6331
+ direct: "direct";
6332
+ discovery: "discovery";
6333
+ hidden: "hidden";
6334
+ }>;
6335
+ enabled: _$zod.ZodBoolean;
6336
+ enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
6337
+ discovery: "discovery";
6338
+ toolset: "toolset";
6339
+ }>>;
6340
+ enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
6341
+ exposed: _$zod.ZodBoolean;
6342
+ }, _$zod_v4_core0.$strip>>;
5013
6343
  }, _$zod_v4_core0.$strip>>;
5014
- }, _$zod_v4_core0.$strip>>;
5015
- responseSchema: _$zod.ZodOptional<_$zod.ZodObject<{
5016
- schema: _$zod.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, _$zod_v4_core0.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
5017
- name: _$zod.ZodOptional<_$zod.ZodString>;
5018
- strict: _$zod.ZodOptional<_$zod.ZodBoolean>;
5019
- }, _$zod_v4_core0.$strict>>;
5020
- source: _$zod.ZodOptional<_$zod.ZodEnum<{
5021
- user: "user";
5022
- system: "system";
5023
- extension: "extension";
5024
- }>>;
5025
- extensionId: _$zod.ZodOptional<_$zod.ZodString>;
5026
- originWindowId: _$zod.ZodOptional<_$zod.ZodString>;
5027
- skipConnectorSwapWarning: _$zod.ZodOptional<_$zod.ZodBoolean>;
5028
- origin: _$zod.ZodOptional<_$zod.ZodEnum<{
5029
- text: "text";
5030
- voice: "voice";
5031
- compact: "compact";
5032
- }>>;
5033
- }, _$zod_v4_core0.$strip>;
5034
- response: _$zod.ZodObject<{
5035
- messageId: _$zod.ZodString;
5036
- turnId: _$zod.ZodString;
5037
- sessionId: _$zod.ZodString;
5038
- }, _$zod_v4_core0.$strip>;
5039
- };
5040
- 'agent.attach': {
5041
- request: _$zod.ZodObject<{
5042
- sessionId: _$zod.ZodString;
5043
- agent: _$zod.ZodObject<{
5044
- kind: _$zod.ZodString;
6344
+ allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
6345
+ adapterConfig: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
6346
+ kind: _$zod.ZodLiteral<"canonical-model">;
6347
+ model: _$zod.ZodString;
6348
+ }, _$zod_v4_core0.$loose>, _$zod.ZodObject<{
5045
6349
  providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
5046
6350
  model: _$zod.ZodOptional<_$zod.ZodString>;
5047
6351
  reasoningEffort: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -5108,9 +6412,9 @@ declare const SessionSchemas: {
5108
6412
  description: _$zod.ZodOptional<_$zod.ZodString>;
5109
6413
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
5110
6414
  exposureMode: _$zod.ZodEnum<{
5111
- hidden: "hidden";
5112
6415
  direct: "direct";
5113
6416
  discovery: "discovery";
6417
+ hidden: "hidden";
5114
6418
  }>;
5115
6419
  enabled: _$zod.ZodBoolean;
5116
6420
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -5127,9 +6431,9 @@ declare const SessionSchemas: {
5127
6431
  description: _$zod.ZodOptional<_$zod.ZodString>;
5128
6432
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
5129
6433
  exposureMode: _$zod.ZodEnum<{
5130
- hidden: "hidden";
5131
6434
  direct: "direct";
5132
6435
  discovery: "discovery";
6436
+ hidden: "hidden";
5133
6437
  }>;
5134
6438
  enabled: _$zod.ZodBoolean;
5135
6439
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -5142,7 +6446,8 @@ declare const SessionSchemas: {
5142
6446
  }, _$zod_v4_core0.$strip>>;
5143
6447
  allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
5144
6448
  adapterConfig: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
5145
- }, _$zod_v4_core0.$loose>;
6449
+ kind: _$zod.ZodString;
6450
+ }, _$zod_v4_core0.$loose>]>;
5146
6451
  initialMessage: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
5147
6452
  role: _$zod.ZodOptional<_$zod.ZodEnum<{
5148
6453
  user: "user";
@@ -5362,9 +6667,9 @@ declare const SessionSchemas: {
5362
6667
  description: _$zod.ZodOptional<_$zod.ZodString>;
5363
6668
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
5364
6669
  exposureMode: _$zod.ZodEnum<{
5365
- hidden: "hidden";
5366
6670
  direct: "direct";
5367
6671
  discovery: "discovery";
6672
+ hidden: "hidden";
5368
6673
  }>;
5369
6674
  enabled: _$zod.ZodBoolean;
5370
6675
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -5381,9 +6686,9 @@ declare const SessionSchemas: {
5381
6686
  description: _$zod.ZodOptional<_$zod.ZodString>;
5382
6687
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
5383
6688
  exposureMode: _$zod.ZodEnum<{
5384
- hidden: "hidden";
5385
6689
  direct: "direct";
5386
6690
  discovery: "discovery";
6691
+ hidden: "hidden";
5387
6692
  }>;
5388
6693
  enabled: _$zod.ZodBoolean;
5389
6694
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -5399,6 +6704,7 @@ declare const SessionSchemas: {
5399
6704
  kind: _$zod.ZodLiteral<"adapter">;
5400
6705
  adapterName: _$zod.ZodOptional<_$zod.ZodString>;
5401
6706
  adapterId: _$zod.ZodOptional<_$zod.ZodString>;
6707
+ machineId: _$zod.ZodOptional<_$zod.ZodString>;
5402
6708
  providerContext: _$zod.ZodOptional<_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
5403
6709
  state: _$zod.ZodLiteral<"resolved">;
5404
6710
  providerConfigId: _$zod.ZodString;
@@ -5862,8 +7168,8 @@ declare const SessionSchemas: {
5862
7168
  }>>;
5863
7169
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
5864
7170
  text: "text";
5865
- voice: "voice";
5866
7171
  compact: "compact";
7172
+ voice: "voice";
5867
7173
  }>>;
5868
7174
  }, _$zod_v4_core0.$strip>;
5869
7175
  'user_message.acknowledged': _$zod.ZodObject<{
@@ -6136,6 +7442,14 @@ declare const SessionSchemas: {
6136
7442
  adapterName: _$zod.ZodString;
6137
7443
  sessionId: _$zod.ZodString;
6138
7444
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
7445
+ currentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
7446
+ currentAdapterSessionIdState: _$zod.ZodOptional<_$zod.ZodEnum<{
7447
+ confirmed: "confirmed";
7448
+ moved: "moved";
7449
+ inherited: "inherited";
7450
+ }>>;
7451
+ revision: _$zod.ZodOptional<_$zod.ZodNumber>;
7452
+ currencyFence: _$zod.ZodOptional<_$zod.ZodNumber>;
6139
7453
  model: _$zod.ZodOptional<_$zod.ZodString>;
6140
7454
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
6141
7455
  allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
@@ -6156,6 +7470,7 @@ declare const SessionSchemas: {
6156
7470
  status: _$zod.ZodEnum<{
6157
7471
  idle: "idle";
6158
7472
  active: "active";
7473
+ starting: "starting";
6159
7474
  dead: "dead";
6160
7475
  disposed: "disposed";
6161
7476
  }>;
@@ -6163,8 +7478,8 @@ declare const SessionSchemas: {
6163
7478
  lastActivityAt: _$zod.ZodNumber;
6164
7479
  }, _$zod_v4_core0.$strip>>;
6165
7480
  status: _$zod.ZodEnum<{
6166
- discovered: "discovered";
6167
7481
  closed: "closed";
7482
+ discovered: "discovered";
6168
7483
  active: "active";
6169
7484
  archived: "archived";
6170
7485
  }>;
@@ -6187,6 +7502,12 @@ declare const SessionSchemas: {
6187
7502
  }>>;
6188
7503
  adapterName: _$zod.ZodOptional<_$zod.ZodString>;
6189
7504
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
7505
+ currentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
7506
+ currentAdapterSessionIdState: _$zod.ZodOptional<_$zod.ZodEnum<{
7507
+ confirmed: "confirmed";
7508
+ moved: "moved";
7509
+ inherited: "inherited";
7510
+ }>>;
6190
7511
  adapterId: _$zod.ZodOptional<_$zod.ZodString>;
6191
7512
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
6192
7513
  clientAccountId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -6249,6 +7570,14 @@ declare const SessionSchemas: {
6249
7570
  adapterName: _$zod.ZodString;
6250
7571
  sessionId: _$zod.ZodString;
6251
7572
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
7573
+ currentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
7574
+ currentAdapterSessionIdState: _$zod.ZodOptional<_$zod.ZodEnum<{
7575
+ confirmed: "confirmed";
7576
+ moved: "moved";
7577
+ inherited: "inherited";
7578
+ }>>;
7579
+ revision: _$zod.ZodOptional<_$zod.ZodNumber>;
7580
+ currencyFence: _$zod.ZodOptional<_$zod.ZodNumber>;
6252
7581
  model: _$zod.ZodOptional<_$zod.ZodString>;
6253
7582
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
6254
7583
  allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
@@ -6269,6 +7598,7 @@ declare const SessionSchemas: {
6269
7598
  status: _$zod.ZodEnum<{
6270
7599
  idle: "idle";
6271
7600
  active: "active";
7601
+ starting: "starting";
6272
7602
  dead: "dead";
6273
7603
  disposed: "disposed";
6274
7604
  }>;
@@ -6349,8 +7679,8 @@ declare const SessionSchemas: {
6349
7679
  editOf: _$zod.ZodOptional<_$zod.ZodString>;
6350
7680
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
6351
7681
  text: "text";
6352
- voice: "voice";
6353
7682
  compact: "compact";
7683
+ voice: "voice";
6354
7684
  }>>;
6355
7685
  }, _$zod_v4_core0.$strip>>;
6356
7686
  turns: _$zod.ZodArray<_$zod.ZodObject<{
@@ -6546,8 +7876,8 @@ declare const SessionSchemas: {
6546
7876
  }>>;
6547
7877
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
6548
7878
  text: "text";
6549
- voice: "voice";
6550
7879
  compact: "compact";
7880
+ voice: "voice";
6551
7881
  }>>;
6552
7882
  }, _$zod_v4_core0.$strip>;
6553
7883
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
@@ -6708,8 +8038,8 @@ declare const SessionSchemas: {
6708
8038
  type: _$zod.ZodLiteral<"locality.degraded">;
6709
8039
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
6710
8040
  intent: _$zod.ZodEnum<{
6711
- fork: "fork";
6712
8041
  resume: "resume";
8042
+ fork: "fork";
6713
8043
  }>;
6714
8044
  verdictKind: _$zod.ZodLiteral<"degrade">;
6715
8045
  reason: _$zod.ZodEnum<{
@@ -6727,14 +8057,15 @@ declare const SessionSchemas: {
6727
8057
  "native-attempt-failed": "native-attempt-failed";
6728
8058
  "agent-already-started": "agent-already-started";
6729
8059
  "fork-point-unresolvable": "fork-point-unresolvable";
8060
+ "adapter-session-moved": "adapter-session-moved";
6730
8061
  }>;
6731
8062
  agentId: _$zod.ZodOptional<_$zod.ZodString>;
6732
8063
  adapterId: _$zod.ZodOptional<_$zod.ZodString>;
6733
8064
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
6734
8065
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
6735
8066
  intent: _$zod.ZodEnum<{
6736
- fork: "fork";
6737
8067
  resume: "resume";
8068
+ fork: "fork";
6738
8069
  }>;
6739
8070
  verdictKind: _$zod.ZodLiteral<"foreign">;
6740
8071
  foreignMachineId: _$zod.ZodString;
@@ -6773,6 +8104,14 @@ declare const SessionSchemas: {
6773
8104
  adapterName: _$zod.ZodString;
6774
8105
  sessionId: _$zod.ZodString;
6775
8106
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
8107
+ currentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
8108
+ currentAdapterSessionIdState: _$zod.ZodOptional<_$zod.ZodEnum<{
8109
+ confirmed: "confirmed";
8110
+ moved: "moved";
8111
+ inherited: "inherited";
8112
+ }>>;
8113
+ revision: _$zod.ZodOptional<_$zod.ZodNumber>;
8114
+ currencyFence: _$zod.ZodOptional<_$zod.ZodNumber>;
6776
8115
  model: _$zod.ZodOptional<_$zod.ZodString>;
6777
8116
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
6778
8117
  allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
@@ -6793,6 +8132,7 @@ declare const SessionSchemas: {
6793
8132
  status: _$zod.ZodEnum<{
6794
8133
  idle: "idle";
6795
8134
  active: "active";
8135
+ starting: "starting";
6796
8136
  dead: "dead";
6797
8137
  disposed: "disposed";
6798
8138
  }>;
@@ -6800,8 +8140,8 @@ declare const SessionSchemas: {
6800
8140
  lastActivityAt: _$zod.ZodNumber;
6801
8141
  }, _$zod_v4_core0.$strip>>;
6802
8142
  status: _$zod.ZodEnum<{
6803
- discovered: "discovered";
6804
8143
  closed: "closed";
8144
+ discovered: "discovered";
6805
8145
  active: "active";
6806
8146
  archived: "archived";
6807
8147
  }>;
@@ -6824,6 +8164,12 @@ declare const SessionSchemas: {
6824
8164
  }>>;
6825
8165
  adapterName: _$zod.ZodOptional<_$zod.ZodString>;
6826
8166
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
8167
+ currentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
8168
+ currentAdapterSessionIdState: _$zod.ZodOptional<_$zod.ZodEnum<{
8169
+ confirmed: "confirmed";
8170
+ moved: "moved";
8171
+ inherited: "inherited";
8172
+ }>>;
6827
8173
  adapterId: _$zod.ZodOptional<_$zod.ZodString>;
6828
8174
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
6829
8175
  clientAccountId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -6886,6 +8232,14 @@ declare const SessionSchemas: {
6886
8232
  adapterName: _$zod.ZodString;
6887
8233
  sessionId: _$zod.ZodString;
6888
8234
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
8235
+ currentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
8236
+ currentAdapterSessionIdState: _$zod.ZodOptional<_$zod.ZodEnum<{
8237
+ confirmed: "confirmed";
8238
+ moved: "moved";
8239
+ inherited: "inherited";
8240
+ }>>;
8241
+ revision: _$zod.ZodOptional<_$zod.ZodNumber>;
8242
+ currencyFence: _$zod.ZodOptional<_$zod.ZodNumber>;
6889
8243
  model: _$zod.ZodOptional<_$zod.ZodString>;
6890
8244
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
6891
8245
  allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
@@ -6906,6 +8260,7 @@ declare const SessionSchemas: {
6906
8260
  status: _$zod.ZodEnum<{
6907
8261
  idle: "idle";
6908
8262
  active: "active";
8263
+ starting: "starting";
6909
8264
  dead: "dead";
6910
8265
  disposed: "disposed";
6911
8266
  }>;
@@ -6986,8 +8341,8 @@ declare const SessionSchemas: {
6986
8341
  editOf: _$zod.ZodOptional<_$zod.ZodString>;
6987
8342
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
6988
8343
  text: "text";
6989
- voice: "voice";
6990
8344
  compact: "compact";
8345
+ voice: "voice";
6991
8346
  }>>;
6992
8347
  }, _$zod_v4_core0.$strip>>;
6993
8348
  turns: _$zod.ZodArray<_$zod.ZodObject<{
@@ -7183,8 +8538,8 @@ declare const SessionSchemas: {
7183
8538
  }>>;
7184
8539
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
7185
8540
  text: "text";
7186
- voice: "voice";
7187
8541
  compact: "compact";
8542
+ voice: "voice";
7188
8543
  }>>;
7189
8544
  }, _$zod_v4_core0.$strip>;
7190
8545
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
@@ -7345,8 +8700,8 @@ declare const SessionSchemas: {
7345
8700
  type: _$zod.ZodLiteral<"locality.degraded">;
7346
8701
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
7347
8702
  intent: _$zod.ZodEnum<{
7348
- fork: "fork";
7349
8703
  resume: "resume";
8704
+ fork: "fork";
7350
8705
  }>;
7351
8706
  verdictKind: _$zod.ZodLiteral<"degrade">;
7352
8707
  reason: _$zod.ZodEnum<{
@@ -7364,14 +8719,15 @@ declare const SessionSchemas: {
7364
8719
  "native-attempt-failed": "native-attempt-failed";
7365
8720
  "agent-already-started": "agent-already-started";
7366
8721
  "fork-point-unresolvable": "fork-point-unresolvable";
8722
+ "adapter-session-moved": "adapter-session-moved";
7367
8723
  }>;
7368
8724
  agentId: _$zod.ZodOptional<_$zod.ZodString>;
7369
8725
  adapterId: _$zod.ZodOptional<_$zod.ZodString>;
7370
8726
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
7371
8727
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
7372
8728
  intent: _$zod.ZodEnum<{
7373
- fork: "fork";
7374
8729
  resume: "resume";
8730
+ fork: "fork";
7375
8731
  }>;
7376
8732
  verdictKind: _$zod.ZodLiteral<"foreign">;
7377
8733
  foreignMachineId: _$zod.ZodString;
@@ -7389,8 +8745,8 @@ declare const SessionSchemas: {
7389
8745
  }, _$zod_v4_core0.$strip>;
7390
8746
  onConflict: _$zod.ZodDefault<_$zod.ZodEnum<{
7391
8747
  overwrite: "overwrite";
7392
- fail: "fail";
7393
8748
  skip: "skip";
8749
+ fail: "fail";
7394
8750
  }>>;
7395
8751
  }, _$zod_v4_core0.$strip>;
7396
8752
  response: _$zod.ZodObject<{
@@ -7474,8 +8830,8 @@ declare const SessionSchemas: {
7474
8830
  timestamp: _$zod.ZodNumber;
7475
8831
  }, _$zod_v4_core0.$strip>, _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
7476
8832
  intent: _$zod.ZodEnum<{
7477
- fork: "fork";
7478
8833
  resume: "resume";
8834
+ fork: "fork";
7479
8835
  }>;
7480
8836
  verdictKind: _$zod.ZodLiteral<"degrade">;
7481
8837
  reason: _$zod.ZodEnum<{
@@ -7493,14 +8849,15 @@ declare const SessionSchemas: {
7493
8849
  "native-attempt-failed": "native-attempt-failed";
7494
8850
  "agent-already-started": "agent-already-started";
7495
8851
  "fork-point-unresolvable": "fork-point-unresolvable";
8852
+ "adapter-session-moved": "adapter-session-moved";
7496
8853
  }>;
7497
8854
  agentId: _$zod.ZodOptional<_$zod.ZodString>;
7498
8855
  adapterId: _$zod.ZodOptional<_$zod.ZodString>;
7499
8856
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
7500
8857
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
7501
8858
  intent: _$zod.ZodEnum<{
7502
- fork: "fork";
7503
8859
  resume: "resume";
8860
+ fork: "fork";
7504
8861
  }>;
7505
8862
  verdictKind: _$zod.ZodLiteral<"foreign">;
7506
8863
  foreignMachineId: _$zod.ZodString;
@@ -7518,8 +8875,8 @@ declare const SessionSchemas: {
7518
8875
  maxTokens: _$zod.ZodNumber;
7519
8876
  percentage: _$zod.ZodNumber;
7520
8877
  level: _$zod.ZodEnum<{
7521
- warn: "warn";
7522
8878
  ok: "ok";
8879
+ warn: "warn";
7523
8880
  critical: "critical";
7524
8881
  }>;
7525
8882
  lastUpdatedAt: _$zod.ZodNumber;
@@ -7697,8 +9054,8 @@ declare const SessionSchemas: {
7697
9054
  }>>;
7698
9055
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
7699
9056
  text: "text";
7700
- voice: "voice";
7701
9057
  compact: "compact";
9058
+ voice: "voice";
7702
9059
  }>>;
7703
9060
  }, _$zod_v4_core0.$strip>;
7704
9061
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
@@ -7859,8 +9216,8 @@ declare const SessionSchemas: {
7859
9216
  type: _$zod.ZodLiteral<"locality.degraded">;
7860
9217
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
7861
9218
  intent: _$zod.ZodEnum<{
7862
- fork: "fork";
7863
9219
  resume: "resume";
9220
+ fork: "fork";
7864
9221
  }>;
7865
9222
  verdictKind: _$zod.ZodLiteral<"degrade">;
7866
9223
  reason: _$zod.ZodEnum<{
@@ -7878,14 +9235,15 @@ declare const SessionSchemas: {
7878
9235
  "native-attempt-failed": "native-attempt-failed";
7879
9236
  "agent-already-started": "agent-already-started";
7880
9237
  "fork-point-unresolvable": "fork-point-unresolvable";
9238
+ "adapter-session-moved": "adapter-session-moved";
7881
9239
  }>;
7882
9240
  agentId: _$zod.ZodOptional<_$zod.ZodString>;
7883
9241
  adapterId: _$zod.ZodOptional<_$zod.ZodString>;
7884
9242
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
7885
9243
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
7886
9244
  intent: _$zod.ZodEnum<{
7887
- fork: "fork";
7888
9245
  resume: "resume";
9246
+ fork: "fork";
7889
9247
  }>;
7890
9248
  verdictKind: _$zod.ZodLiteral<"foreign">;
7891
9249
  foreignMachineId: _$zod.ZodString;
@@ -7904,8 +9262,8 @@ declare const SessionSchemas: {
7904
9262
  request: _$zod.ZodObject<{
7905
9263
  status: _$zod.ZodOptional<_$zod.ZodEnum<{
7906
9264
  all: "all";
7907
- discovered: "discovered";
7908
9265
  closed: "closed";
9266
+ discovered: "discovered";
7909
9267
  active: "active";
7910
9268
  archived: "archived";
7911
9269
  }>>;
@@ -7925,6 +9283,14 @@ declare const SessionSchemas: {
7925
9283
  adapterName: _$zod.ZodString;
7926
9284
  sessionId: _$zod.ZodString;
7927
9285
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
9286
+ currentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
9287
+ currentAdapterSessionIdState: _$zod.ZodOptional<_$zod.ZodEnum<{
9288
+ confirmed: "confirmed";
9289
+ moved: "moved";
9290
+ inherited: "inherited";
9291
+ }>>;
9292
+ revision: _$zod.ZodOptional<_$zod.ZodNumber>;
9293
+ currencyFence: _$zod.ZodOptional<_$zod.ZodNumber>;
7928
9294
  model: _$zod.ZodOptional<_$zod.ZodString>;
7929
9295
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
7930
9296
  allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
@@ -7945,6 +9311,7 @@ declare const SessionSchemas: {
7945
9311
  status: _$zod.ZodEnum<{
7946
9312
  idle: "idle";
7947
9313
  active: "active";
9314
+ starting: "starting";
7948
9315
  dead: "dead";
7949
9316
  disposed: "disposed";
7950
9317
  }>;
@@ -7952,8 +9319,8 @@ declare const SessionSchemas: {
7952
9319
  lastActivityAt: _$zod.ZodNumber;
7953
9320
  }, _$zod_v4_core0.$strip>>;
7954
9321
  status: _$zod.ZodEnum<{
7955
- discovered: "discovered";
7956
9322
  closed: "closed";
9323
+ discovered: "discovered";
7957
9324
  active: "active";
7958
9325
  archived: "archived";
7959
9326
  }>;
@@ -7976,6 +9343,12 @@ declare const SessionSchemas: {
7976
9343
  }>>;
7977
9344
  adapterName: _$zod.ZodOptional<_$zod.ZodString>;
7978
9345
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
9346
+ currentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
9347
+ currentAdapterSessionIdState: _$zod.ZodOptional<_$zod.ZodEnum<{
9348
+ confirmed: "confirmed";
9349
+ moved: "moved";
9350
+ inherited: "inherited";
9351
+ }>>;
7979
9352
  adapterId: _$zod.ZodOptional<_$zod.ZodString>;
7980
9353
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
7981
9354
  clientAccountId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -8045,8 +9418,8 @@ declare const SessionSchemas: {
8045
9418
  limit: _$zod.ZodOptional<_$zod.ZodNumber>;
8046
9419
  status: _$zod.ZodOptional<_$zod.ZodEnum<{
8047
9420
  all: "all";
8048
- discovered: "discovered";
8049
9421
  closed: "closed";
9422
+ discovered: "discovered";
8050
9423
  active: "active";
8051
9424
  archived: "archived";
8052
9425
  }>>;
@@ -8063,6 +9436,14 @@ declare const SessionSchemas: {
8063
9436
  adapterName: _$zod.ZodString;
8064
9437
  sessionId: _$zod.ZodString;
8065
9438
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
9439
+ currentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
9440
+ currentAdapterSessionIdState: _$zod.ZodOptional<_$zod.ZodEnum<{
9441
+ confirmed: "confirmed";
9442
+ moved: "moved";
9443
+ inherited: "inherited";
9444
+ }>>;
9445
+ revision: _$zod.ZodOptional<_$zod.ZodNumber>;
9446
+ currencyFence: _$zod.ZodOptional<_$zod.ZodNumber>;
8066
9447
  model: _$zod.ZodOptional<_$zod.ZodString>;
8067
9448
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
8068
9449
  allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
@@ -8083,6 +9464,7 @@ declare const SessionSchemas: {
8083
9464
  status: _$zod.ZodEnum<{
8084
9465
  idle: "idle";
8085
9466
  active: "active";
9467
+ starting: "starting";
8086
9468
  dead: "dead";
8087
9469
  disposed: "disposed";
8088
9470
  }>;
@@ -8090,8 +9472,8 @@ declare const SessionSchemas: {
8090
9472
  lastActivityAt: _$zod.ZodNumber;
8091
9473
  }, _$zod_v4_core0.$strip>>;
8092
9474
  status: _$zod.ZodEnum<{
8093
- discovered: "discovered";
8094
9475
  closed: "closed";
9476
+ discovered: "discovered";
8095
9477
  active: "active";
8096
9478
  archived: "archived";
8097
9479
  }>;
@@ -8114,6 +9496,12 @@ declare const SessionSchemas: {
8114
9496
  }>>;
8115
9497
  adapterName: _$zod.ZodOptional<_$zod.ZodString>;
8116
9498
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
9499
+ currentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
9500
+ currentAdapterSessionIdState: _$zod.ZodOptional<_$zod.ZodEnum<{
9501
+ confirmed: "confirmed";
9502
+ moved: "moved";
9503
+ inherited: "inherited";
9504
+ }>>;
8117
9505
  adapterId: _$zod.ZodOptional<_$zod.ZodString>;
8118
9506
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
8119
9507
  clientAccountId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -8192,6 +9580,14 @@ declare const SessionSchemas: {
8192
9580
  adapterName: _$zod.ZodString;
8193
9581
  sessionId: _$zod.ZodString;
8194
9582
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
9583
+ currentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
9584
+ currentAdapterSessionIdState: _$zod.ZodOptional<_$zod.ZodEnum<{
9585
+ confirmed: "confirmed";
9586
+ moved: "moved";
9587
+ inherited: "inherited";
9588
+ }>>;
9589
+ revision: _$zod.ZodOptional<_$zod.ZodNumber>;
9590
+ currencyFence: _$zod.ZodOptional<_$zod.ZodNumber>;
8195
9591
  model: _$zod.ZodOptional<_$zod.ZodString>;
8196
9592
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
8197
9593
  allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
@@ -8212,6 +9608,7 @@ declare const SessionSchemas: {
8212
9608
  status: _$zod.ZodEnum<{
8213
9609
  idle: "idle";
8214
9610
  active: "active";
9611
+ starting: "starting";
8215
9612
  dead: "dead";
8216
9613
  disposed: "disposed";
8217
9614
  }>;
@@ -8219,8 +9616,8 @@ declare const SessionSchemas: {
8219
9616
  lastActivityAt: _$zod.ZodNumber;
8220
9617
  }, _$zod_v4_core0.$strip>>;
8221
9618
  status: _$zod.ZodEnum<{
8222
- discovered: "discovered";
8223
9619
  closed: "closed";
9620
+ discovered: "discovered";
8224
9621
  active: "active";
8225
9622
  archived: "archived";
8226
9623
  }>;
@@ -8243,6 +9640,12 @@ declare const SessionSchemas: {
8243
9640
  }>>;
8244
9641
  adapterName: _$zod.ZodOptional<_$zod.ZodString>;
8245
9642
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
9643
+ currentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
9644
+ currentAdapterSessionIdState: _$zod.ZodOptional<_$zod.ZodEnum<{
9645
+ confirmed: "confirmed";
9646
+ moved: "moved";
9647
+ inherited: "inherited";
9648
+ }>>;
8246
9649
  adapterId: _$zod.ZodOptional<_$zod.ZodString>;
8247
9650
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
8248
9651
  clientAccountId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -8435,6 +9838,14 @@ declare const SessionSchemas: {
8435
9838
  adapterName: _$zod.ZodString;
8436
9839
  sessionId: _$zod.ZodString;
8437
9840
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
9841
+ currentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
9842
+ currentAdapterSessionIdState: _$zod.ZodOptional<_$zod.ZodEnum<{
9843
+ confirmed: "confirmed";
9844
+ moved: "moved";
9845
+ inherited: "inherited";
9846
+ }>>;
9847
+ revision: _$zod.ZodOptional<_$zod.ZodNumber>;
9848
+ currencyFence: _$zod.ZodOptional<_$zod.ZodNumber>;
8438
9849
  model: _$zod.ZodOptional<_$zod.ZodString>;
8439
9850
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
8440
9851
  allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
@@ -8455,6 +9866,7 @@ declare const SessionSchemas: {
8455
9866
  status: _$zod.ZodEnum<{
8456
9867
  idle: "idle";
8457
9868
  active: "active";
9869
+ starting: "starting";
8458
9870
  dead: "dead";
8459
9871
  disposed: "disposed";
8460
9872
  }>;
@@ -8462,8 +9874,8 @@ declare const SessionSchemas: {
8462
9874
  lastActivityAt: _$zod.ZodNumber;
8463
9875
  }, _$zod_v4_core0.$strip>>;
8464
9876
  status: _$zod.ZodEnum<{
8465
- discovered: "discovered";
8466
9877
  closed: "closed";
9878
+ discovered: "discovered";
8467
9879
  active: "active";
8468
9880
  archived: "archived";
8469
9881
  }>;
@@ -8486,6 +9898,12 @@ declare const SessionSchemas: {
8486
9898
  }>>;
8487
9899
  adapterName: _$zod.ZodOptional<_$zod.ZodString>;
8488
9900
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
9901
+ currentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
9902
+ currentAdapterSessionIdState: _$zod.ZodOptional<_$zod.ZodEnum<{
9903
+ confirmed: "confirmed";
9904
+ moved: "moved";
9905
+ inherited: "inherited";
9906
+ }>>;
8489
9907
  adapterId: _$zod.ZodOptional<_$zod.ZodString>;
8490
9908
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
8491
9909
  clientAccountId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -8657,4 +10075,4 @@ type KnownSessionEvent = { [K in RuntimeKnownSessionEventType]: SessionEventBase
8657
10075
  */
8658
10076
  declare function isKnownSessionEvent(event: MakaioSessionEvent$1): event is KnownSessionEvent;
8659
10077
  //#endregion
8660
- export { TurnSchema$1 as $, NativeLocalityVerdictSchema as A, SessionCreateBaseSchema as At, MessageRoutingStatus as B, SessionEventTypeMap as C, SessionRecordMetadata as Ct, NativeLocalityReason as D, AgentStatusSchema$1 as Dt, NativeForkDirectiveSchema as E, AgentStatus as Et, TurnIngestionMarker$1 as F, SessionMessageOrigin$1 as G, SessionMessage$1 as H, TurnIngestionMarkerSchema$1 as I, SessionMessageRoleSchema as J, SessionMessageOriginSchema as K, TurnStarted as L, SendMessageRequest as M, SendMessageResponse as N, NativeLocalityReasonSchema as O, MakaioSessionAgentSchema$1 as Ot, TurnCompleted as P, TurnInitiatorSchema$1 as Q, MessageRouting as R, SessionEventType$1 as S, SessionPreviewDataSchema as St, NativeForkDirective$1 as T, SessionWithPreviewSchema as Tt, SessionMessageBlock$1 as U, MessageRoutingStatusSchema as V, SessionMessageBlockSchema as W, Turn$1 as X, SessionMessageSchema$1 as Y, TurnInitiator$2 as Z, ForkChildInfo as _, SnapshotImportConflictErrorData as _t, SessionPreviewData as a, UsageMetricsSchema as at, SESSION_EVENT_TYPES as b, validateSnapshot as bt, SessionSchemas as c, BranchKind$1 as ct, SegmentPolicy as d, ImportStatusSchema as dt, TurnStatus as et, SegmentPolicySchema as f, SNAPSHOT_VERSION as ft, SessionUpdatedEventSchema as g, SnapshotExportOptionsSchema as gt, SessionUpdatedEvent as h, SnapshotExportOptions as ht, MakaioSessionEvent$1 as i, UsageMetrics as it, AgentAttachResolvedRequest as j, NativeLocalityVerdict$1 as k, SessionCreateBase as kt, ForkTransforms$1 as l, BranchKindSchema as lt, SessionCreatedEventSchema as m, SessionSnapshotSchema as mt, KnownSessionEvent as n, TurnUsage$1 as nt, SessionWithPreview as o, AgentRole as ot, SessionCreated as p, SessionSnapshot as pt, SessionMessageRole as q, MakaioSessionAgent$1 as r, TurnUsageSchema$1 as rt, isKnownSessionEvent as s, AgentRoleSchema as st, IMakaioSession$1 as t, TurnStatusSchema$1 as tt, ForkTransformsSchema$1 as u, ImportStatus as ut, ForkChildInfoSchema as v, SnapshotPreviewData as vt, SessionEventTypeSchema as w, SessionRecordMetadataSchema$1 as wt, SessionEventPayload as x, MakaioSessionSchema as xt, MakaioSessionEventSchema as y, safeValidateSnapshot as yt, MessageRoutingSchema$1 as z };
10078
+ export { NativeForkDirective$1 as $, SessionRecordMetadata as $t, SessionOwnershipReserveStartServiceResult$1 as A, TurnUsage$1 as At, SegmentPolicySchema as B, ImportStatus as Bt, SessionOwnershipReleaseServiceRequest as C, SessionMessageSchema$1 as Ct, SessionOwnershipReserveStartServiceRequest as D, TurnSchema$1 as Dt, SessionOwnershipReservationSchema as E, TurnInitiatorSchema$1 as Et, SessionOwnershipSettleMovementServiceResponseSchema as F, AdapterSessionCurrencyStateSchema as Ft, ForkChildInfo as G, SnapshotExportOptions as Gt, SessionCreatedEventSchema as H, SNAPSHOT_VERSION as Ht, SessionOwnershipSettleMovementServiceResult as I, AgentRole$1 as It, SESSION_EVENT_TYPES as J, SnapshotPreviewData as Jt, ForkChildInfoSchema as K, SnapshotExportOptionsSchema as Kt, ForkTransforms$1 as L, AgentRoleSchema as Lt, SessionOwnershipServiceMovementSchema as M, UsageMetrics as Mt, SessionOwnershipSettleMovementServiceRequest as N, UsageMetricsSchema as Nt, SessionOwnershipReserveStartServiceRequestSchema as O, TurnStatus as Ot, SessionOwnershipSettleMovementServiceRequestSchema as P, AdapterSessionCurrencyState as Pt, SessionEventTypeSchema as Q, SessionPreviewDataSchema as Qt, ForkTransformsSchema$1 as R, BranchKind$1 as Rt, SessionOwnershipReconciledClaimSchema as S, SessionMessageRoleSchema as St, SessionOwnershipReservation as T, TurnInitiator$2 as Tt, SessionUpdatedEvent as U, SessionSnapshot as Ut, SessionCreated as V, ImportStatusSchema as Vt, SessionUpdatedEventSchema as W, SessionSnapshotSchema as Wt, SessionEventType$1 as X, validateSnapshot as Xt, SessionEventPayload as Y, safeValidateSnapshot as Yt, SessionEventTypeMap as Z, MakaioSessionSchema as Zt, SessionOwnershipReclaimReason$1 as _, SessionMessageBlock$1 as _t, SessionPreviewData as a, SessionCreateBase as an, AgentAttachResolvedRequest as at, SessionOwnershipReconcileServiceResult as b, SessionMessageOriginSchema as bt, SessionSchemas as c, TurnCompleted as ct, SessionOwnershipContinuationServiceRequest as d, TurnStarted as dt, SessionRecordMetadataSchema$1 as en, NativeForkDirectiveSchema as et, SessionOwnershipContinuationServiceRequestSchema as f, MessageRouting as ft, SessionOwnershipPrincipalSchema as g, SessionMessage$1 as gt, SessionOwnershipPrincipal as h, MessageRoutingStatusSchema as ht, MakaioSessionEvent$1 as i, MakaioSessionAgentSchema$1 as in, NativeLocalityVerdictSchema as it, SessionOwnershipServiceMovement as j, TurnUsageSchema$1 as jt, SessionOwnershipReserveStartServiceResponseSchema as k, TurnStatusSchema$1 as kt, OwnershipTopology$1 as l, TurnIngestionMarker$1 as lt, SessionOwnershipContinuationServiceResult as m, MessageRoutingStatus as mt, KnownSessionEvent as n, AgentStatus as nn, NativeLocalityReasonSchema as nt, SessionWithPreview as o, SessionCreateBaseSchema as on, SendMessageRequest as ot, SessionOwnershipContinuationServiceResponseSchema as p, MessageRoutingSchema$1 as pt, MakaioSessionEventSchema as q, SnapshotImportConflictErrorData as qt, MakaioSessionAgent$1 as r, AgentStatusSchema$1 as rn, NativeLocalityVerdict$1 as rt, isKnownSessionEvent as s, SendMessageResponse as st, IMakaioSession$1 as t, SessionWithPreviewSchema as tn, NativeLocalityReason as tt, OwnershipTopologySchema as u, TurnIngestionMarkerSchema$1 as ut, SessionOwnershipReclaimReasonSchema as v, SessionMessageBlockSchema as vt, SessionOwnershipReleaseServiceRequestSchema as w, Turn$1 as wt, SessionOwnershipReconciledClaim as x, SessionMessageRole as xt, SessionOwnershipReconcileServiceResponseSchema as y, SessionMessageOrigin$1 as yt, SegmentPolicy as z, BranchKindSchema as zt };