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

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 (549) hide show
  1. package/README.md +2 -0
  2. package/dist/.makaio-build.json +4 -3
  3. package/dist/{account-identity-DFx8pwKL.mjs → account-identity-B3vLwm9O.mjs} +1 -1
  4. package/dist/adapter-Dz1fX5Wa.mjs +1 -0
  5. package/dist/adapter-subsystem/index.d.mts +194 -20
  6. package/dist/adapter-subsystem/index.mjs +1 -1
  7. package/dist/adapters/acp-client/index.d.mts +105 -7
  8. package/dist/adapters/acp-client/index.mjs +2 -2
  9. package/dist/adapters/claude/index.d.mts +5 -5
  10. package/dist/adapters/config/index.d.mts +1 -1
  11. package/dist/adapters/config/index.mjs +1 -1
  12. package/dist/adapters/index.d.mts +405 -824
  13. package/dist/adapters/index.mjs +6 -6
  14. package/dist/adapters/node.d.mts +1 -1
  15. package/dist/adapters/node.mjs +1 -1
  16. package/dist/adapters/stream-session/index.d.mts +28 -7
  17. package/dist/adapters/stream-session/index.mjs +1 -1
  18. package/dist/{ajv-DD3SIL2i.mjs → ajv-krzJXh1X.mjs} +2 -2
  19. package/dist/artifact-Btbuib48.mjs +1 -0
  20. package/dist/attach-error-Cb3GbeKe.mjs +1 -0
  21. package/dist/{auth-DGEdiHF6.mjs → auth-C6tVtaOX.mjs} +1 -1
  22. package/dist/authority-state-bootstrap-CLYus369.mjs +1 -0
  23. package/dist/automation-trigger-ByjNlClm.mjs +1 -0
  24. package/dist/await-trigger-Bkg2BQfg.mjs +1 -0
  25. package/dist/bus/index.d.mts +41 -9
  26. package/dist/bus/index.mjs +1 -1
  27. package/dist/bus-D6NoBhIV.mjs +2 -0
  28. package/dist/bus-UgFdHybD.mjs +1 -0
  29. package/dist/caller-owned-adapter-stub-C1M7FKrv.mjs +1 -0
  30. package/dist/{canonical-model-BAytQ4NV.mjs → canonical-model-DXOvCaVg.mjs} +1 -1
  31. package/dist/capabilities-BUwuA7XX.mjs +1 -0
  32. package/dist/capability-j3NekkIu.mjs +1 -0
  33. package/dist/{client-DbS847wW.mjs → client-BkznbdsO.mjs} +1 -1
  34. package/dist/clients/index.d.mts +2 -2
  35. package/dist/clients/index.mjs +1 -1
  36. package/dist/clients/managed-install.d.mts +1 -1
  37. package/dist/clients/managed-install.mjs +1 -1
  38. package/dist/code-execution/worker-entry.d.mts +21 -0
  39. package/dist/code-execution/worker-entry.mjs +1 -0
  40. package/dist/code-execution-Ckmn8OZu.mjs +1 -0
  41. package/dist/code-execution-CweDSWco.mjs +1 -0
  42. package/dist/code-execution-DqkQjKa1.mjs +1 -0
  43. package/dist/{compression-74fFeBha.mjs → compression-CtgeVLpP.mjs} +1 -1
  44. package/dist/{config-namespace-TVX-hG4I.mjs → config-namespace-CjWvw8ij.mjs} +1 -1
  45. package/dist/{context-resolution-DdyhpH4L.d.mts → context-resolution-841T7jBI.d.mts} +11 -11
  46. package/dist/contracts/adapter/index.d.mts +3 -3
  47. package/dist/contracts/adapter/index.mjs +1 -1
  48. package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
  49. package/dist/contracts/artifact/index.d.mts +3 -3
  50. package/dist/contracts/artifact/index.mjs +1 -1
  51. package/dist/contracts/auth/index.d.mts +2 -2
  52. package/dist/contracts/auth/index.mjs +1 -1
  53. package/dist/contracts/automation-trigger/index.d.mts +4 -0
  54. package/dist/contracts/automation-trigger/index.mjs +1 -0
  55. package/dist/contracts/canonical-model/index.d.mts +1 -1
  56. package/dist/contracts/canonical-model/index.mjs +1 -1
  57. package/dist/contracts/capabilities/index.d.mts +1 -1
  58. package/dist/contracts/capabilities/index.mjs +1 -1
  59. package/dist/contracts/client/index.d.mts +2 -2
  60. package/dist/contracts/client/index.mjs +1 -1
  61. package/dist/contracts/code-execution/index.d.mts +2 -0
  62. package/dist/contracts/code-execution/index.mjs +1 -0
  63. package/dist/contracts/common/index.d.mts +1 -1
  64. package/dist/contracts/config/index.d.mts +1 -1
  65. package/dist/contracts/config/index.mjs +1 -1
  66. package/dist/contracts/extension/index.d.mts +6 -5
  67. package/dist/contracts/extension/index.mjs +1 -1
  68. package/dist/contracts/facet/index.d.mts +1 -1
  69. package/dist/contracts/facet/index.mjs +1 -1
  70. package/dist/contracts/harness/index.d.mts +1 -1
  71. package/dist/contracts/harness/index.mjs +1 -1
  72. package/dist/contracts/host/index.d.mts +1 -1
  73. package/dist/contracts/host/index.mjs +1 -1
  74. package/dist/contracts/index.d.mts +171 -100
  75. package/dist/contracts/index.mjs +1 -1
  76. package/dist/contracts/materialization/index.d.mts +3 -3
  77. package/dist/contracts/materialization/index.mjs +1 -1
  78. package/dist/contracts/model-registry/index.d.mts +1 -1
  79. package/dist/contracts/model-registry/index.mjs +1 -1
  80. package/dist/contracts/native-session-supervisor/index.d.mts +1 -1
  81. package/dist/contracts/native-session-supervisor/index.mjs +1 -1
  82. package/dist/contracts/platform/index.d.mts +1 -1
  83. package/dist/contracts/platform/index.mjs +1 -1
  84. package/dist/contracts/provider/index.d.mts +2 -2
  85. package/dist/contracts/provider/index.mjs +1 -1
  86. package/dist/contracts/reaction/index.d.mts +2 -0
  87. package/dist/contracts/reaction/index.mjs +1 -0
  88. package/dist/contracts/session/index.d.mts +3 -3
  89. package/dist/contracts/session/index.mjs +1 -1
  90. package/dist/contracts/shared/index.d.mts +3 -3
  91. package/dist/contracts/shared/index.mjs +1 -1
  92. package/dist/contracts/skill/index.d.mts +1 -1
  93. package/dist/contracts/skill/index.mjs +1 -1
  94. package/dist/contracts/telemetry/index.d.mts +1 -1
  95. package/dist/contracts/telemetry/index.mjs +1 -1
  96. package/dist/contracts/timeout/index.d.mts +1 -1
  97. package/dist/contracts/timeout/index.mjs +1 -1
  98. package/dist/contracts/toast/index.mjs +1 -1
  99. package/dist/contracts/variant/index.d.mts +1 -1
  100. package/dist/contracts/variant/index.mjs +1 -1
  101. package/dist/contracts/worker-node/index.d.mts +1 -1
  102. package/dist/contracts/worker-node/index.mjs +1 -1
  103. package/dist/contracts/workflow/index.d.mts +3 -3
  104. package/dist/contracts/workflow/index.mjs +1 -1
  105. package/dist/contribution-CUHLVLsT.d.mts +35 -0
  106. package/dist/core/index.d.mts +84 -2
  107. package/dist/core/index.mjs +1 -1
  108. package/dist/{definition-CJfiv8xm.mjs → definition-BH4QLGLI.mjs} +1 -1
  109. package/dist/definition-DyGImhyi.d.mts +375 -0
  110. package/dist/{detached-extension-handle-Ddfquy5_.mjs → detached-extension-handle-D0aI0pJA.mjs} +1 -1
  111. package/dist/drizzle/0031_adapter_session_currency.sql +66 -0
  112. package/dist/drizzle/0032_native_session_ownership.sql +77 -0
  113. package/dist/drizzle/0033_m_msf3hu2s.sql +1 -0
  114. package/dist/drizzle/0034_m_msha1388.sql +41 -0
  115. package/dist/drizzle/0035_m_mshgj6x7.sql +40 -0
  116. package/dist/drizzle/0036_m_msivwbgm.sql +1 -0
  117. package/dist/drizzle/0037_runtime_instance_incarnation_counter.sql +6 -0
  118. package/dist/drizzle/meta/_journal.json +49 -0
  119. package/dist/event-B8ELuk6k.mjs +1 -0
  120. package/dist/{execution-attempt-repository-DWXKY41_.d.mts → execution-attempt-repository-BJ2W6wwx.d.mts} +1 -1
  121. package/dist/{execution-target-Cf645pDj.mjs → execution-target-H0RWV7Py.mjs} +1 -1
  122. package/dist/extension-Bfkr2DBs.mjs +1 -0
  123. package/dist/extension-Cz39YNXy.mjs +1 -0
  124. package/dist/extension-context-QmFuHdq5.d.mts +295 -0
  125. package/dist/{extension-discovery-CQRdbVQ6.d.mts → extension-discovery-Dhu3WplO.d.mts} +11 -1
  126. package/dist/{extension-namespace-Yu41YepM.mjs → extension-namespace-QoTTwKPt.mjs} +1 -1
  127. package/dist/extension-package-provenance-aYrZuS4W.mjs +1 -0
  128. package/dist/{filesystem-service-DlP2HfDg.mjs → filesystem-service-CiUw0YN5.mjs} +1 -1
  129. package/dist/framework-packages-BHgul8Kl.mjs +1 -0
  130. package/dist/git/index.mjs +2 -2
  131. package/dist/{globby-1yCVCk8s.mjs → globby-QBDqstzq.mjs} +1 -1
  132. package/dist/handlers-BsHAFtye.mjs +57 -0
  133. package/dist/{harness-DpwsFsE7.mjs → harness-YQ2ewID9.mjs} +1 -1
  134. package/dist/{hook-responses-Dh1PWXqJ.d.mts → hook-responses-9Ywsqzzq.d.mts} +2 -293
  135. package/dist/identity-OjRlG6dZ.mjs +1 -0
  136. package/dist/{index-CMgLxw14.d.mts → index-8NdPPzUh2.d.mts} +2 -2
  137. package/dist/{index-Ds5_rDEJ.d.mts → index-8y4hT9WL.d.mts} +1 -12
  138. package/dist/{index-BVlXneHH.d.mts → index-B-3I98nw.d.mts} +14 -10
  139. package/dist/index-B0VO0rAl.d.mts +302 -0
  140. package/dist/{index-gUhidukN.d.mts → index-B0yMCJW8.d.mts} +324 -2
  141. package/dist/index-BM56936c.d.mts +165 -0
  142. package/dist/{index-CLvQsL6s2.d.mts → index-BNzUyVwV.d.mts} +2105 -320
  143. package/dist/{index-BaZeoZoS.d.mts → index-BTEJfzjE.d.mts} +1 -1
  144. package/dist/{index-B0Kf_OWi.d.mts → index-BfV8U4XX.d.mts} +1 -1
  145. package/dist/{index-DCZ8BX9S.d.mts → index-BkbnC65b.d.mts} +487 -85
  146. package/dist/{index-GHASUiem.d.mts → index-BmevAPME2.d.mts} +1 -1
  147. package/dist/index-Bqk0pJBQ2.d.mts +138 -0
  148. package/dist/{index-B9UW_vPM.d.mts → index-C146Eq_J.d.mts} +2465 -273
  149. package/dist/{index-BAXkicoQ.d.mts → index-CIEycZrt.d.mts} +1 -1
  150. package/dist/{index-DkiTJM5p.d.mts → index-CMekqu_D.d.mts} +44 -10
  151. package/dist/{index-SsBHjUqA.d.mts → index-CPRQ4dWX.d.mts} +0 -23
  152. package/dist/{index-EjsSBQXy2.d.mts → index-CPi0UpRh.d.mts} +1 -1
  153. package/dist/{index-DSBT83c0.d.mts → index-CYjgoYeX.d.mts} +24 -3
  154. package/dist/{index-DnG-QFpG.d.mts → index-CmwAJ8-5.d.mts} +18 -1
  155. package/dist/index-Cny5RvjO.d.mts +800 -0
  156. package/dist/{index-BNMnIe-j.d.mts → index-D-4jv_66.d.mts} +434 -863
  157. package/dist/{index-brqfk9JQ.d.mts → index-D8D-yibS2.d.mts} +4 -4
  158. package/dist/index-DHnSLGP4.d.mts +268 -0
  159. package/dist/{index-D5Nb7IEP.d.mts → index-DI2lS7VT.d.mts} +79 -41
  160. package/dist/{index-D_ODXsBv.d.mts → index-DJ2KgJDJ2.d.mts} +51 -95
  161. package/dist/{index-cqLS1eFV.d.mts → index-DNI6UF9h.d.mts} +133 -134
  162. package/dist/index-DQ8o3JGi.d.mts +132 -0
  163. package/dist/index-DWBkiiXH.d.mts +18 -0
  164. package/dist/{index-DlsHL9Jg.d.mts → index-DXtQRehh.d.mts} +12 -12
  165. package/dist/{index-4VfqCjl2.d.mts → index-D_4K3Tf_.d.mts} +79 -194
  166. package/dist/index-Dg11JxKZ.d.mts +496 -0
  167. package/dist/json-value-BBZ6uGwc.mjs +1 -0
  168. package/dist/json-value-DPqb-SJ8.d.mts +177 -0
  169. package/dist/kernel/cli/index.d.mts +2 -2
  170. package/dist/kernel/cli/index.mjs +1 -1
  171. package/dist/kernel/cli/register.d.mts +1 -1
  172. package/dist/kernel/cli/register.mjs +1 -1
  173. package/dist/kernel/cli/schemas.mjs +1 -1
  174. package/dist/kernel/extension/index.d.mts +1 -1
  175. package/dist/kernel/extension/index.mjs +1 -1
  176. package/dist/kernel/index.d.mts +9 -9
  177. package/dist/kernel/index.mjs +1 -1
  178. package/dist/kernel/namespace/index.d.mts +2 -2
  179. package/dist/kernel/namespace/index.mjs +1 -1
  180. package/dist/kernel/observability/index.d.mts +1 -1
  181. package/dist/kernel/observability/index.mjs +1 -1
  182. package/dist/kernel/providers/index.d.mts +1 -1
  183. package/dist/kernel/providers/index.mjs +1 -1
  184. package/dist/kernel/window/index.d.mts +1 -1
  185. package/dist/kernel/window/index.mjs +1 -1
  186. package/dist/{lib-DErgth_E.mjs → lib-BpGvHZye.mjs} +2 -2
  187. package/dist/{lib-C7-s68uf.mjs → lib-Cm-uEoC1.mjs} +1 -1
  188. package/dist/{load-extensions-BxsDB87B.d.mts → load-extensions-BQoXaHhR.d.mts} +17 -13
  189. package/dist/load-extensions-DG5LvPyM.mjs +1 -0
  190. package/dist/{materialization-Jd198K3y.mjs → materialization-lVd9_-jr.mjs} +1 -1
  191. package/dist/mcp-http-server/index.mjs +1 -1
  192. package/dist/model-DrzPt3ou.mjs +1 -0
  193. package/dist/{namespace-BqxtpNAn.mjs → namespace-BL7lHlmg.mjs} +1 -1
  194. package/dist/{namespace-CjjFvrIA2.d.mts → namespace-BNp7n_gu.d.mts} +25 -25
  195. package/dist/{namespace-g_mbIZq_.d.mts → namespace-BRuHzhPo.d.mts} +564 -28
  196. package/dist/{namespace-DV-Hr9sZ.d.mts → namespace-C06lJSuj.d.mts} +17 -7
  197. package/dist/{namespace-TseEI3Pu.d.mts → namespace-DOezqDti.d.mts} +18 -10
  198. package/dist/{namespace-CErHuXtb.d.mts → namespace-DknCutQZ.d.mts} +50 -0
  199. package/dist/{namespace-B8uKAzWJ.mjs → namespace-Du0accdE.mjs} +1 -1
  200. package/dist/{namespace-CWUDFGOy.mjs → namespace-NXm_zvL1.mjs} +1 -1
  201. package/dist/{namespace-CupOzbRv.d.mts → namespace-l-HG1rLF.d.mts} +24 -20
  202. package/dist/namespace-sCPb79-7.mjs +1 -0
  203. package/dist/{native-session-supervisor-DRx0MX-d.mjs → native-session-supervisor-LKio8XZn.mjs} +1 -1
  204. package/dist/node/bus-server/index.d.mts +1 -1
  205. package/dist/node/bus-server/index.mjs +1 -1
  206. package/dist/node/bus-server/server-lifecycle.d.mts +1 -1
  207. package/dist/node/bus-server/server-lifecycle.mjs +1 -1
  208. package/dist/npm-package-name-DuTYVICk.mjs +1 -0
  209. package/dist/orchestrator-shared-BGlN-m-V.mjs +1 -0
  210. package/dist/{orchestrator-shared-BHCv-l2O.d.mts → orchestrator-shared-CNHSImNY.d.mts} +10 -10
  211. package/dist/ownership-memory-handler-BpGdR_uG.mjs +1 -0
  212. package/dist/ownership-recovery-guard-DyW5vGBr.mjs +1 -0
  213. package/dist/package-B01gmu75.mjs +7 -0
  214. package/dist/{package-DWMxGfzK.d.mts → package-BNFTUFLB.d.mts} +234 -84
  215. package/dist/package-DttKA9wN.mjs +1 -0
  216. package/dist/package-EGTn-Ng1.mjs +1 -0
  217. package/dist/package-JtjbO-Oi.mjs +1 -0
  218. package/dist/package.json +1 -1
  219. package/dist/{profile-BTAI31Nt.mjs → profile-N5qGUpF0.mjs} +1 -1
  220. package/dist/{provider-context-PZIQWcqQ.mjs → provider-context-CG42JlP9.mjs} +1 -1
  221. package/dist/{provider-context-Dq53Cgzz.mjs → provider-context-zTDSH2x9.mjs} +1 -1
  222. package/dist/reaction-D3TNwPK8.mjs +1 -0
  223. package/dist/{registry-wfF2uTty.mjs → registry-Dk12tAfv.mjs} +2 -2
  224. package/dist/{resolved-DZgqql2Z.mjs → resolved-sq8RXNDf.mjs} +1 -1
  225. package/dist/rules/index.d.mts +1 -1
  226. package/dist/rules/index.mjs +1 -1
  227. package/dist/rules/schemas.d.mts +1 -1
  228. package/dist/rules/schemas.mjs +1 -1
  229. package/dist/runtime-bun/index.mjs +1 -1
  230. package/dist/runtime-node/code-execution/index.d.mts +3 -0
  231. package/dist/runtime-node/code-execution/index.mjs +1 -0
  232. package/dist/runtime-node/extension-discovery.d.mts +2 -2
  233. package/dist/runtime-node/extension-discovery.mjs +1 -1
  234. package/dist/runtime-node/extension-validation.d.mts +1 -1
  235. package/dist/runtime-node/extension-validation.mjs +1 -1
  236. package/dist/runtime-node/index.d.mts +7 -5
  237. package/dist/runtime-node/index.mjs +24 -24
  238. package/dist/runtime-node/makaio-config.d.mts +1 -1
  239. package/dist/runtime-node/makaio-config.mjs +1 -1
  240. package/dist/runtime-node/workflow-worker/index.d.mts +1 -1
  241. package/dist/runtime-node/workflow-worker/index.mjs +1 -1
  242. package/dist/runtime-node/workflow-worker/worker-entry.mjs +1 -1
  243. package/dist/{schema-DKUb4rkr.d.mts → schema-B3Pf7JP7.d.mts} +778 -21
  244. package/dist/{schema-Dd-e89MO.mjs → schema-Dq-7si8u.mjs} +1 -1
  245. package/dist/{schemas-B1NWNASS.d.mts → schemas-BXc9qOpl.d.mts} +2 -0
  246. package/dist/schemas-BfO5jkrL.mjs +1 -0
  247. package/dist/{schemas-CR8hSqTy.d.mts → schemas-C1mxTfd7.d.mts} +60 -4
  248. package/dist/schemas-C3kyQWGf.mjs +1 -0
  249. package/dist/{schemas-DnYiAvfz.d.mts → schemas-D7ScxLrf.d.mts} +24 -20
  250. package/dist/{schemas-BsVYZviy.d.mts → schemas-OWvBn7AH.d.mts} +4 -4
  251. package/dist/{schemas-DaHQzpgm.mjs → schemas-QWDnauKX.mjs} +1 -1
  252. package/dist/schemas-TK29KWx-.mjs +1 -0
  253. package/dist/schemas-_2Syo_01.mjs +1 -0
  254. package/dist/scoped-bus-DoPmCJeM.mjs +1 -0
  255. package/dist/{selection-BNwTKEVT.mjs → selection-DL3ric7K.mjs} +1 -1
  256. package/dist/services/adapter-runtime/index.d.mts +4 -4
  257. package/dist/services/adapter-runtime/index.mjs +1 -1
  258. package/dist/services/adapter-runtime/namespace.d.mts +1 -1
  259. package/dist/services/adapter-runtime/schemas.d.mts +2 -2
  260. package/dist/services/adapter-runtime/schemas.mjs +1 -1
  261. package/dist/services/adapter-subsystem/index.d.mts +4 -4
  262. package/dist/services/adapter-subsystem/index.mjs +1 -1
  263. package/dist/services/adapter-subsystem/namespace.d.mts +2 -2
  264. package/dist/services/adapter-subsystem/namespace.mjs +1 -1
  265. package/dist/services/agent-runtime/index.d.mts +2 -2
  266. package/dist/services/agent-runtime/namespace.d.mts +1 -1
  267. package/dist/services/agent-runtime/schemas.d.mts +1 -1
  268. package/dist/services/automation-trigger/index.d.mts +943 -0
  269. package/dist/services/automation-trigger/index.mjs +1 -0
  270. package/dist/services/capability/index.d.mts +3 -2
  271. package/dist/services/capability/index.mjs +1 -1
  272. package/dist/services/code-execution/index.d.mts +2 -0
  273. package/dist/services/code-execution/index.mjs +1 -0
  274. package/dist/services/codebase/index.d.mts +2 -2
  275. package/dist/services/codebase/namespace.d.mts +1 -1
  276. package/dist/services/codebase/schemas.d.mts +1 -1
  277. package/dist/services/compression/index.d.mts +2 -2
  278. package/dist/services/compression/namespace.d.mts +1 -1
  279. package/dist/services/compression/schemas.d.mts +1 -1
  280. package/dist/services/context-rules/index.d.mts +1 -1
  281. package/dist/services/context-rules/index.mjs +1 -1
  282. package/dist/services/execution-target/index.d.mts +3 -3
  283. package/dist/services/execution-target/index.mjs +1 -1
  284. package/dist/services/execution-target/namespace.d.mts +1 -1
  285. package/dist/services/execution-target/namespace.mjs +1 -1
  286. package/dist/services/execution-target/schemas.d.mts +1 -1
  287. package/dist/services/execution-target/schemas.mjs +1 -1
  288. package/dist/services/filesystem/index.d.mts +1 -1
  289. package/dist/services/filesystem/index.mjs +1 -1
  290. package/dist/services/filesystem/namespace.d.mts +6 -6
  291. package/dist/services/filesystem/schemas.d.mts +3 -3
  292. package/dist/services/git/namespace.d.mts +18 -0
  293. package/dist/services/git/namespace.mjs +1 -1
  294. package/dist/services/git/schemas.d.mts +10 -1
  295. package/dist/services/git/schemas.mjs +1 -1
  296. package/dist/services/harness/index.mjs +1 -1
  297. package/dist/services/index.d.mts +567 -101
  298. package/dist/services/index.mjs +1 -1
  299. package/dist/services/log-import/browser.d.mts +2 -2
  300. package/dist/services/log-import/index.d.mts +3 -3
  301. package/dist/services/log-import/log-import.d.mts +1 -1
  302. package/dist/services/log-import/log-import.mjs +1 -1
  303. package/dist/services/log-import/namespace.mjs +1 -1
  304. package/dist/services/log-import/schemas.mjs +1 -1
  305. package/dist/services/materialization/index.d.mts +1 -1
  306. package/dist/services/materialization/index.mjs +1 -1
  307. package/dist/services/model-registry/index.d.mts +1 -1
  308. package/dist/services/model-registry/index.mjs +1 -1
  309. package/dist/services/preferences/index.d.mts +2 -2
  310. package/dist/services/preferences/schemas.d.mts +1 -1
  311. package/dist/services/preferences/storage-namespace.d.mts +2 -2
  312. package/dist/services/provider-context/index.d.mts +1 -1
  313. package/dist/services/provider-context/index.mjs +1 -1
  314. package/dist/services/provider-runtime/index.mjs +1 -1
  315. package/dist/services/session/handlers/index.d.mts +2 -2
  316. package/dist/services/session/handlers/index.mjs +1 -1
  317. package/dist/services/session/index.d.mts +10 -10
  318. package/dist/services/session/index.mjs +1 -1
  319. package/dist/services/session/messages/namespace.d.mts +1 -1
  320. package/dist/services/session/messages/namespace.mjs +1 -1
  321. package/dist/services/session/orchestrator-testing/index.d.mts +1 -1
  322. package/dist/services/session/orchestrator-testing/index.mjs +1 -1
  323. package/dist/services/session/session-events/namespace.d.mts +1 -1
  324. package/dist/services/session/session-events/namespace.mjs +1 -1
  325. package/dist/services/session/storage/namespace.d.mts +1 -1
  326. package/dist/services/session/storage/schema.d.mts +2 -2
  327. package/dist/services/session/storage/schema.mjs +1 -1
  328. package/dist/services/session/testing/index.d.mts +33 -4
  329. package/dist/services/session/testing/index.mjs +68 -12
  330. package/dist/services/session/testing/orchestrator-shared.d.mts +1 -1
  331. package/dist/services/session/testing/orchestrator-shared.mjs +1 -1
  332. package/dist/services/session/turns/namespace.d.mts +1 -1
  333. package/dist/services/session/turns/namespace.mjs +1 -1
  334. package/dist/services/session-editor/index.d.mts +1 -1
  335. package/dist/services/session-editor/index.mjs +1 -1
  336. package/dist/services/settings/index.d.mts +3 -3
  337. package/dist/services/settings/index.mjs +1 -1
  338. package/dist/services/settings/namespace.mjs +1 -1
  339. package/dist/services/settings/storage/clients-namespace.d.mts +1 -1
  340. package/dist/services/settings/storage/clients-namespace.mjs +1 -1
  341. package/dist/services/settings/storage/index.d.mts +3 -3
  342. package/dist/services/settings/storage/index.mjs +1 -1
  343. package/dist/services/settings/storage/providers-namespace.d.mts +1 -1
  344. package/dist/services/settings/storage/providers-namespace.mjs +1 -1
  345. package/dist/services/subagent/index.d.mts +1 -1
  346. package/dist/services/subagent/index.mjs +1 -1
  347. package/dist/services/subagent-template/index.d.mts +2 -2
  348. package/dist/services/subagent-template/namespace.d.mts +1 -1
  349. package/dist/services/subagent-template/schemas.d.mts +1 -1
  350. package/dist/services/tool-approval/index.d.mts +1 -1
  351. package/dist/services/tool-approval/index.mjs +1 -1
  352. package/dist/services/tools/index.d.mts +1 -1
  353. package/dist/services/tools/index.mjs +1 -1
  354. package/dist/services/tray-menu/index.d.mts +3 -3
  355. package/dist/services/tray-menu/index.mjs +1 -1
  356. package/dist/services/tray-menu/namespace.d.mts +1 -1
  357. package/dist/services/tray-menu/schemas.d.mts +1 -1
  358. package/dist/services/turn/index.d.mts +1 -1
  359. package/dist/services/turn/namespace.d.mts +1 -1
  360. package/dist/services/workflow-transitions/index.d.mts +1 -1
  361. package/dist/services/workflow-transitions/index.mjs +1 -1
  362. package/dist/session-BOpTI79g.mjs +1 -0
  363. package/dist/session-CXOPk3yg.mjs +95 -0
  364. package/dist/shared-B9AWRm9A.mjs +1 -0
  365. package/dist/{skill-BR6rkfLe.mjs → skill-DGNtc_ww.mjs} +1 -1
  366. package/dist/{src-DD0v-nIj.mjs → src-BmSQ3rlz.mjs} +1 -1
  367. package/dist/storage/drizzle/client.d.mts +1 -1
  368. package/dist/storage/drizzle/client.mjs +1 -1
  369. package/dist/storage/drizzle/index.d.mts +81 -2
  370. package/dist/storage/drizzle/index.mjs +1 -1
  371. package/dist/storage/handlers/drizzle/index.d.mts +1 -1
  372. package/dist/storage/handlers/drizzle/index.mjs +1 -1
  373. package/dist/storage/handlers/index.d.mts +1 -1
  374. package/dist/storage/handlers/index.mjs +1 -1
  375. package/dist/tool-approval-service-BFDOFUGC.mjs +1 -0
  376. package/dist/{tools-PdG9fO1M.mjs → tools-DWKWX3eV.mjs} +1 -1
  377. package/dist/{transition-Du3MQzJV.d.mts → transition-D3zUBTPc.d.mts} +11 -38
  378. package/dist/{types-D7_kevBK.d.mts → types-BlB23n4f.d.mts} +1 -1
  379. package/dist/{types-DMLDHFR9.d.mts → types-CtDGkyLx2.d.mts} +1 -1
  380. package/dist/types-Cwza95hS.mjs +1 -0
  381. package/dist/{types-Dzrwa1GY.d.mts → types-DcxBYlPA.d.mts} +5834 -1436
  382. package/dist/types-DnK6Wa_Y.d.mts +260 -0
  383. package/dist/types-OKJCOjme.d.mts +2937 -0
  384. package/dist/ui-hooks/index.d.mts +29 -2
  385. package/dist/ui-hooks/index.mjs +1 -1
  386. package/dist/ui-kernel/index.d.mts +2 -2
  387. package/dist/ui-kernel/pages/schemas.d.mts +1 -1
  388. package/dist/ui-views/index.d.mts +1 -1
  389. package/dist/utils/index.d.mts +98 -1
  390. package/dist/utils/index.mjs +2 -2
  391. package/dist/utils/project-manifest.mjs +1 -1
  392. package/dist/{version-CoCeMxDT.mjs → version-BYeVh1pI.mjs} +1 -1
  393. package/dist/{view-builder-DeFd-k7C.d.mts → view-builder-B0j9p5C0.d.mts} +4 -4
  394. package/dist/{visibility-qhGWmpSJ.mjs → visibility-DtDLRBdr.mjs} +1 -1
  395. package/dist/worker-node-CjuQb9hl.mjs +1 -0
  396. package/dist/{worker-node-DZTuT1DS.mjs → worker-node-Dtf9ilsR.mjs} +1 -1
  397. package/dist/workflow-C4mck_NW.mjs +1 -0
  398. package/dist/workflow-engine/execution-attempt-repository.d.mts +1 -1
  399. package/dist/workflow-engine/index.d.mts +237 -518
  400. package/dist/workflow-engine/index.mjs +1 -1
  401. package/dist/workflow-engine/package.d.mts +1 -1
  402. package/dist/workflow-engine/package.mjs +1 -1
  403. package/dist/workflow-engine/provider-operation.d.mts +1 -1
  404. package/dist/workflow-engine/testing/index.d.mts +2 -2
  405. package/dist/workflow-engine/testing/index.mjs +1 -1
  406. package/dist/workflow-engine/testing/sqlite.d.mts +1 -1
  407. package/dist/workflow-engine/testing/sqlite.mjs +27 -27
  408. package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
  409. package/dist/workflow-engine/workflow-trigger-binding-consumer.d.mts +46 -0
  410. package/dist/workflow-engine/workflow-trigger-binding-consumer.mjs +1 -0
  411. package/dist/{workflow-transitions-DSc45ixc.mjs → workflow-transitions-c_VQbyV0.mjs} +1 -1
  412. package/dist/workflow-worker-aNbdgqml.mjs +1 -0
  413. package/dist/zod-json-schema-Dixc-B1T.mjs +1 -0
  414. package/package.json +46 -1
  415. package/dist/adapter-D5c5LrPN.mjs +0 -1
  416. package/dist/artifact-DGiXqb11.mjs +0 -1
  417. package/dist/attach-error-C3tngg6J.mjs +0 -1
  418. package/dist/authority-state-bootstrap-GPL_tqaT.mjs +0 -1
  419. package/dist/await-trigger-I3lrepb8.mjs +0 -1
  420. package/dist/bus-B6SAjgOC.mjs +0 -2
  421. package/dist/bus-C2l3K74u.mjs +0 -1
  422. package/dist/capabilities-BQEp34ir.mjs +0 -1
  423. package/dist/capability-service-BqiLlRGA.mjs +0 -1
  424. package/dist/event-CmVjR6Ib.mjs +0 -1
  425. package/dist/extension-DCA4pYrY.mjs +0 -1
  426. package/dist/extension-hjOPs10e.mjs +0 -1
  427. package/dist/framework-packages-C3RWfJDk.mjs +0 -1
  428. package/dist/handlers-CfnLyLfE.mjs +0 -57
  429. package/dist/identity-D6guMtmi.mjs +0 -1
  430. package/dist/index-CRvpVIqA.d.mts +0 -89
  431. package/dist/json-value-Brslhqbm.d.mts +0 -57
  432. package/dist/json-value-DmU8ibo_.mjs +0 -1
  433. package/dist/load-extensions-D0DfjYLC.mjs +0 -1
  434. package/dist/model-BGgVmRnN.mjs +0 -1
  435. package/dist/namespace-DJfUADSV.mjs +0 -1
  436. package/dist/orchestrator-shared-BxmHCPvx.mjs +0 -1
  437. package/dist/package-CNUPPcU1.mjs +0 -7
  438. package/dist/package-Dft_RItb.mjs +0 -1
  439. package/dist/schemas-CRB2O5zo.mjs +0 -1
  440. package/dist/schemas-Cm09dXL4.mjs +0 -1
  441. package/dist/schemas-tDf_WiC8.mjs +0 -1
  442. package/dist/scoped-bus-C9BdNwfM.mjs +0 -1
  443. package/dist/session-BOGCd18q.mjs +0 -1
  444. package/dist/session-BTFiDoGz.mjs +0 -76
  445. package/dist/shared-BQ0CHIVy.mjs +0 -1
  446. package/dist/tool-approval-service-kBA0fRzm.mjs +0 -1
  447. package/dist/types-CJ_QZ1yW.d.mts +0 -1487
  448. package/dist/worker-node-Bl9_vqYi.mjs +0 -1
  449. package/dist/workflow-BfDbgtIQ.mjs +0 -1
  450. package/dist/workflow-worker-BN9XPxQO.mjs +0 -1
  451. package/dist/{adapter-auth-runtime-DO-FVTXg.mjs → adapter-auth-runtime-DHHppU4f.mjs} +0 -0
  452. package/dist/{adapter-binding-DQchUtrK.d.mts → adapter-binding-CATvmGuz.d.mts} +0 -0
  453. package/dist/{attempt-record-codec-CqO1_XnE.mjs → attempt-record-codec-BYfYkj4M.mjs} +0 -0
  454. package/dist/{base-orchestrator-BilsQNW1.d.mts → base-orchestrator-B4YW6z_Q.d.mts} +0 -0
  455. package/dist/{index-DN4NOCqN2.d.mts → capability-service-BW1-teFU.d.mts} +0 -0
  456. package/dist/{client-B--e2qcU.d.mts → client-BG0WX5Vz.d.mts} +0 -0
  457. package/dist/{client-binary-version-verifier-taewmKTY.mjs → client-binary-version-verifier-0lCKZOTg.mjs} +0 -0
  458. package/dist/{client-binary-version-verifier-CgjM_vGF.d.mts → client-binary-version-verifier-lcv83Hq3.d.mts} +0 -0
  459. package/dist/{clients-namespace-DfxjG2ZP.d.mts → clients-namespace-DLAjOTTb.d.mts} +0 -0
  460. package/dist/{config-namespace-BCqvufbD.d.mts → config-namespace-CH7sJZ4f.d.mts} +0 -0
  461. package/dist/{create-static-mount-bbQhTt6W.mjs → create-static-mount-DxuixuLZ.mjs} +0 -0
  462. package/dist/{cross-spawn-B57KZuns.mjs → cross-spawn-CZygZJMH.mjs} +0 -0
  463. package/dist/{cursor-storage-DIFK_9hg.mjs → cursor-storage-bsc9lZKk.mjs} +0 -0
  464. package/dist/{definition-gnKgXU91.d.mts → definition-BrgzUuFk.d.mts} +0 -0
  465. package/dist/{definitions-xrrY0wgz.mjs → definitions-CRpdnHYM.mjs} +0 -0
  466. package/dist/{descriptor-to-package-DvF08krT.mjs → descriptor-to-package-CcjdoWP4.mjs} +0 -0
  467. package/dist/{drizzle-z_0SiGY8.mjs → drizzle-Bzc-OGVI.mjs} +0 -0
  468. package/dist/{esm-CltRnX8_.mjs → esm-i-S5TW72.mjs} +0 -0
  469. package/dist/{facet-BCI00njh.mjs → facet-BnMh7Jyc.mjs} +0 -0
  470. package/dist/{filesystem-service-CQ9yVkSz.d.mts → filesystem-service-ZJ43SbBi.d.mts} +0 -0
  471. package/dist/{handler-Cbv9FqDO.mjs → handler-DF1fVDpf.mjs} +0 -0
  472. package/dist/{host-Caq6ZfSJ.mjs → host-B-_ntOMH.mjs} +0 -0
  473. package/dist/{index-ye0oklfU.d.mts → index-B2Y1Wvbh.d.mts} +0 -0
  474. package/dist/{index-Cv-o5Krs.d.mts → index-B4svZC6L.d.mts} +0 -0
  475. package/dist/{index-DZunhZec.d.mts → index-B5dP8rj6.d.mts} +0 -0
  476. package/dist/{index-jTaAHsul.d.mts → index-BC-6qNeo.d.mts} +0 -0
  477. package/dist/{index-ByKi34v5.d.mts → index-BFWvT0NG.d.mts} +0 -0
  478. package/dist/{index-vA--0lOM.d.mts → index-BMRB9yhF.d.mts} +0 -0
  479. package/dist/{index-BskPjMet.d.mts → index-BuMsrli0.d.mts} +0 -0
  480. package/dist/{index-DR40QWlw.d.mts → index-C4V8Pmi4.d.mts} +0 -0
  481. package/dist/{index-BIdsFcQs2.d.mts → index-CL0Jo1b92.d.mts} +0 -0
  482. package/dist/{index-CjdRdsd0.d.mts → index-CVpaGijY.d.mts} +0 -0
  483. package/dist/{index-vcSj12YQ.d.mts → index-CmbkCxj-.d.mts} +0 -0
  484. package/dist/{index-sS6KUlrx.d.mts → index-CqdMbYmR.d.mts} +0 -0
  485. package/dist/{index-CnMu8BQl.d.mts → index-D037TVsm.d.mts} +0 -0
  486. package/dist/{index-CGZQVTid.d.mts → index-DgspOUa72.d.mts} +0 -0
  487. package/dist/{index-dtsLKOID.d.mts → index-Ek4y8M9J2.d.mts} +0 -0
  488. package/dist/{index-DjgLchuQ.d.mts → index-VzLAV0Yt.d.mts} +0 -0
  489. package/dist/{index-DXN_L5D6.d.mts → index-jxPncqWZ2.d.mts} +0 -0
  490. package/dist/{index-BVRQEpAg.d.mts → index-kzIjbrS02.d.mts} +6 -6
  491. /package/dist/{index-Dm1nUxCF.d.mts → index-l01zsChf.d.mts} +0 -0
  492. /package/dist/{index-CWHfOz6d.d.mts → index-pvX-BIpr2.d.mts} +0 -0
  493. /package/dist/{jsonl-transport-bQl3JwIu.mjs → jsonl-transport-Cyyh5Wje.mjs} +0 -0
  494. /package/dist/{lib-DOBXZmYX.mjs → lib-BqV8hYtk.mjs} +0 -0
  495. /package/dist/{model-registry-xyBKSye-.mjs → model-registry-C9rFu3kV.mjs} +0 -0
  496. /package/dist/{model-registry-CmgcPDH3.mjs → model-registry-Cixxx2jv.mjs} +0 -0
  497. /package/dist/{modes-BheyN7SS.mjs → modes-DwsJ3yVl.mjs} +0 -0
  498. /package/dist/{namespace-BOkKoq34.d.mts → namespace-B0ftHlK3.d.mts} +0 -0
  499. /package/dist/{namespace-YytVKIgI.d.mts → namespace-BGRHcrmp.d.mts} +0 -0
  500. /package/dist/{namespace-jDhZjw-i.d.mts → namespace-BUYDmd0r.d.mts} +0 -0
  501. /package/dist/{namespace-YxU1xf-K.mjs → namespace-BW3Bfu9h.mjs} +0 -0
  502. /package/dist/{namespace-DWCEo-9M.d.mts → namespace-BdAK0lD8.d.mts} +0 -0
  503. /package/dist/{namespace-Cv1RFP7n.d.mts → namespace-CPG6u60N.d.mts} +0 -0
  504. /package/dist/{namespace-GPA7zots.d.mts → namespace-CVFaZv8x.d.mts} +0 -0
  505. /package/dist/{namespace-Blp4c8GK.d.mts → namespace-DBO1OzYB.d.mts} +0 -0
  506. /package/dist/{namespace-C-9si-fV.mjs → namespace-DiwqpB-c.mjs} +0 -0
  507. /package/dist/{namespace-tGRAod3o.d.mts → namespace-DqZweTbX.d.mts} +0 -0
  508. /package/dist/{namespace-HO2J9sO8.mjs → namespace-jVTsuZHX.mjs} +0 -0
  509. /package/dist/{namespace-CWGKCNZm.mjs → namespace-tjoxekmf.mjs} +0 -0
  510. /package/dist/{out-CvjtANXN.mjs → out-8bOYN6EF.mjs} +0 -0
  511. /package/dist/{packages-DtEEP0Vt.mjs → packages-Bp124-gx.mjs} +0 -0
  512. /package/dist/{packages-BZ6pzFIq.d.mts → packages-CxPMEg8D.d.mts} +0 -0
  513. /package/dist/{platform-Bv8llU9c.mjs → platform-CxyYPrkf.mjs} +0 -0
  514. /package/dist/{provider-operation-Cxoe2SUr.d.mts → provider-operation-DbdyFwNm.d.mts} +0 -0
  515. /package/dist/{providers-Co5UszRH.mjs → providers-C-eekMxD.mjs} +0 -0
  516. /package/dist/{providers-namespace-DjFkmvBR.d.mts → providers-namespace-CfZKp-C0.d.mts} +0 -0
  517. /package/dist/{quick-lru-CrOpWwrf.mjs → quick-lru-CCEnf7y6.mjs} +0 -0
  518. /package/dist/{schema-Db-y-09L.mjs → schema-C0opCPww.mjs} +0 -0
  519. /package/dist/{schema-introspection-DgWQCpwx.mjs → schema-introspection-6-r_KEJQ.mjs} +0 -0
  520. /package/dist/{schemas-N6x2z7Lf.d.mts → schemas-B50oWBuj.d.mts} +0 -0
  521. /package/dist/{schemas-BO7uOum6.d.mts → schemas-B6Q-qdmn.d.mts} +0 -0
  522. /package/dist/{schemas-BGExwp3j.mjs → schemas-B8hKbBwI.mjs} +0 -0
  523. /package/dist/{schemas-miYxK_Z1.d.mts → schemas-BGvkTiCx.d.mts} +0 -0
  524. /package/dist/{schemas-CqRm0i9a.mjs → schemas-BivbWRkG.mjs} +0 -0
  525. /package/dist/{schemas-CwbYk_kZ.d.mts → schemas-ChmQldVH.d.mts} +0 -0
  526. /package/dist/{schemas-DrVg4aQQ.d.mts → schemas-Dd13TMgU.d.mts} +0 -0
  527. /package/dist/{schemas-BtZqovRH.d.mts → schemas-Pe892GgN.d.mts} +0 -0
  528. /package/dist/{schemas-CQyRBqD6.d.mts → schemas-bfZNpl0B.d.mts} +0 -0
  529. /package/dist/{schemas-Bfxskx_2.mjs → schemas-scyC2tFF.mjs} +0 -0
  530. /package/dist/{semver-DlM8znk4.mjs → semver-BI7kTNsY.mjs} +0 -0
  531. /package/dist/{server-lifecycle-kmQ5PUDv.mjs → server-lifecycle-B_OZnoe-.mjs} +0 -0
  532. /package/dist/{server-lifecycle-Dsq56aqC.d.mts → server-lifecycle-L8zja8t8.d.mts} +0 -0
  533. /package/dist/{session-lineage-B_JW5LpF.d.mts → session-lineage-bUkd3fqx.d.mts} +0 -0
  534. /package/dist/{shared-schemas-DXwyMCwZ.mjs → shared-schemas-CQ6blrEW.mjs} +0 -0
  535. /package/dist/{src-CCu8TwL6.mjs → src-BacfeiI4.mjs} +0 -0
  536. /package/dist/{storage-namespace-BSrv0vXR.mjs → storage-namespace-BZce8kkW.mjs} +0 -0
  537. /package/dist/{storage-namespace-dfywhXR3.d.mts → storage-namespace-YmE8XCCL.d.mts} +0 -0
  538. /package/dist/{storage-namespace-definition-BvlX0QV_.d.mts → storage-namespace-definition-BsnYAPot.d.mts} +0 -0
  539. /package/dist/{storage-namespace-definition-CkMKt7-I.mjs → storage-namespace-definition-Cca-zwXU.mjs} +0 -0
  540. /package/dist/{supports-color-DUugCQsK.mjs → supports-color-SV_FgSN2.mjs} +0 -0
  541. /package/dist/{telemetry-Pr3oP2rk.mjs → telemetry-BqoC87F-.mjs} +0 -0
  542. /package/dist/{timeout-DWDhddRJ.mjs → timeout-DVlN2Zhy.mjs} +0 -0
  543. /package/dist/{tray-menu-service-BBLa-Rcv.mjs → tray-menu-service-eVVxgPLc.mjs} +0 -0
  544. /package/dist/{types-BrcjaNPZ.d.mts → types-DdpSEmTO.d.mts} +0 -0
  545. /package/dist/{types-b54n1o57.d.mts → types-tyv0B605.d.mts} +0 -0
  546. /package/dist/{ui-config-CyCdlns_.mjs → ui-config-B35GloSX.mjs} +0 -0
  547. /package/dist/{variant-krjlTdJt.mjs → variant-Dwnge3J_.mjs} +0 -0
  548. /package/dist/{window-registry-I-imZHV_.mjs → window-registry-CKiMJjId.mjs} +0 -0
  549. /package/dist/{window-registry-BDnZLPVx.d.mts → window-registry-Pcf35cac.d.mts} +0 -0
@@ -1,6 +1,6 @@
1
- import { H as SessionMessage$1, ct as BranchKind$1 } from "./types-Dzrwa1GY.mjs";
2
- import { o as Message$1 } from "./index-DnG-QFpG.mjs";
3
- import { t as ContractStorageNamespaceDefinition } from "./storage-namespace-definition-BvlX0QV_.mjs";
1
+ import { Hn as BranchKind$1, bn as SessionMessage$1 } from "./types-DcxBYlPA.mjs";
2
+ import { o as Message$1 } from "./index-CmwAJ8-5.mjs";
3
+ import { t as ContractStorageNamespaceDefinition } from "./storage-namespace-definition-BsnYAPot.mjs";
4
4
  import * as _$zod from "zod";
5
5
  import { z } from "zod";
6
6
  import * as _$_makaio_core0 from "@makaio/framework/core";
@@ -9,6 +9,447 @@ import * as _$zod_v4_core0 from "zod/v4/core";
9
9
 
10
10
  //#region core/contracts/src/session/namespace.d.ts
11
11
  declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session", {
12
+ 'ownership.reserveStart': {
13
+ request: _$zod.ZodObject<{
14
+ sessionId: _$zod.ZodString;
15
+ agentId: _$zod.ZodString;
16
+ adapterId: _$zod.ZodString;
17
+ adapterName: _$zod.ZodString;
18
+ ownerInstanceId: _$zod.ZodString;
19
+ machineId: _$zod.ZodOptional<_$zod.ZodString>;
20
+ role: _$zod.ZodEnum<{
21
+ lead: "lead";
22
+ member: "member";
23
+ }>;
24
+ resumeProviderSessionId: _$zod.ZodNullable<_$zod.ZodString>;
25
+ claimToken: _$zod.ZodString;
26
+ recoveryGuard: _$zod.ZodOptional<_$zod.ZodObject<{
27
+ expectedStatus: _$zod.ZodEnum<{
28
+ idle: "idle";
29
+ active: "active";
30
+ starting: "starting";
31
+ dead: "dead";
32
+ disposed: "disposed";
33
+ }>;
34
+ expectedPreimage: _$zod.ZodObject<{
35
+ status: _$zod.ZodEnum<{
36
+ idle: "idle";
37
+ active: "active";
38
+ starting: "starting";
39
+ dead: "dead";
40
+ disposed: "disposed";
41
+ }>;
42
+ adapterId: _$zod.ZodString;
43
+ binding: _$zod.ZodOptional<_$zod.ZodObject<{
44
+ adapterId: _$zod.ZodString;
45
+ ownerMachineId: _$zod.ZodString;
46
+ ownerInstanceId: _$zod.ZodString;
47
+ }, _$zod_v4_core0.$strip>>;
48
+ recoveryAttemptId: _$zod.ZodOptional<_$zod.ZodString>;
49
+ }, _$zod_v4_core0.$strip>;
50
+ expectedRevision: _$zod.ZodNumber;
51
+ expectedCurrencyFence: _$zod.ZodNumber;
52
+ expectedCurrency: _$zod.ZodObject<{
53
+ adapterSessionId: _$zod.ZodNullable<_$zod.ZodString>;
54
+ currentAdapterSessionId: _$zod.ZodNullable<_$zod.ZodString>;
55
+ currentAdapterSessionIdState: _$zod.ZodEnum<{
56
+ confirmed: "confirmed";
57
+ moved: "moved";
58
+ inherited: "inherited";
59
+ }>;
60
+ }, _$zod_v4_core0.$strip>;
61
+ ownerGeneration: _$zod.ZodNullable<_$zod.ZodObject<{
62
+ claimId: _$zod.ZodString;
63
+ claimToken: _$zod.ZodString;
64
+ fence: _$zod.ZodNumber;
65
+ ownerInstanceId: _$zod.ZodNullable<_$zod.ZodString>;
66
+ status: _$zod.ZodEnum<{
67
+ abandoned: "abandoned";
68
+ held: "held";
69
+ releasing: "releasing";
70
+ }>;
71
+ }, _$zod_v4_core0.$strip>>;
72
+ }, _$zod_v4_core0.$strip>>;
73
+ recoveryAttemptId: _$zod.ZodOptional<_$zod.ZodString>;
74
+ expectedLeadAgentId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
75
+ }, _$zod_v4_core0.$strip>;
76
+ response: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
77
+ outcome: _$zod.ZodLiteral<"reserved">;
78
+ reservation: _$zod.ZodUnion<readonly [_$zod.ZodObject<{
79
+ agentId: _$zod.ZodString;
80
+ sessionId: _$zod.ZodString;
81
+ adapterId: _$zod.ZodString;
82
+ ownerInstanceId: _$zod.ZodString;
83
+ leadDesignated: _$zod.ZodBoolean;
84
+ previousLeadAgentId: _$zod.ZodNullable<_$zod.ZodString>;
85
+ recovery: _$zod.ZodOptional<_$zod.ZodObject<{
86
+ attemptId: _$zod.ZodString;
87
+ preimage: _$zod.ZodObject<{
88
+ status: _$zod.ZodEnum<{
89
+ idle: "idle";
90
+ active: "active";
91
+ starting: "starting";
92
+ dead: "dead";
93
+ disposed: "disposed";
94
+ }>;
95
+ adapterId: _$zod.ZodString;
96
+ binding: _$zod.ZodOptional<_$zod.ZodObject<{
97
+ adapterId: _$zod.ZodString;
98
+ ownerMachineId: _$zod.ZodString;
99
+ ownerInstanceId: _$zod.ZodString;
100
+ }, _$zod_v4_core0.$strip>>;
101
+ recoveryAttemptId: _$zod.ZodOptional<_$zod.ZodString>;
102
+ }, _$zod_v4_core0.$strip>;
103
+ }, _$zod_v4_core0.$strip>>;
104
+ machineId: _$zod.ZodString;
105
+ claim: _$zod.ZodObject<{
106
+ machineId: _$zod.ZodString;
107
+ adapterId: _$zod.ZodString;
108
+ providerSessionId: _$zod.ZodString;
109
+ claimId: _$zod.ZodString;
110
+ adapterName: _$zod.ZodString;
111
+ sessionId: _$zod.ZodString;
112
+ agentId: _$zod.ZodString;
113
+ ownerInstanceId: _$zod.ZodNullable<_$zod.ZodString>;
114
+ claimToken: _$zod.ZodString;
115
+ fence: _$zod.ZodNumber;
116
+ status: _$zod.ZodEnum<{
117
+ abandoned: "abandoned";
118
+ held: "held";
119
+ releasing: "releasing";
120
+ }>;
121
+ claimedAt: _$zod.ZodNumber;
122
+ updatedAt: _$zod.ZodNumber;
123
+ }, _$zod_v4_core0.$strip>;
124
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
125
+ agentId: _$zod.ZodString;
126
+ sessionId: _$zod.ZodString;
127
+ adapterId: _$zod.ZodString;
128
+ ownerInstanceId: _$zod.ZodString;
129
+ leadDesignated: _$zod.ZodBoolean;
130
+ previousLeadAgentId: _$zod.ZodNullable<_$zod.ZodString>;
131
+ recovery: _$zod.ZodOptional<_$zod.ZodObject<{
132
+ attemptId: _$zod.ZodString;
133
+ preimage: _$zod.ZodObject<{
134
+ status: _$zod.ZodEnum<{
135
+ idle: "idle";
136
+ active: "active";
137
+ starting: "starting";
138
+ dead: "dead";
139
+ disposed: "disposed";
140
+ }>;
141
+ adapterId: _$zod.ZodString;
142
+ binding: _$zod.ZodOptional<_$zod.ZodObject<{
143
+ adapterId: _$zod.ZodString;
144
+ ownerMachineId: _$zod.ZodString;
145
+ ownerInstanceId: _$zod.ZodString;
146
+ }, _$zod_v4_core0.$strip>>;
147
+ recoveryAttemptId: _$zod.ZodOptional<_$zod.ZodString>;
148
+ }, _$zod_v4_core0.$strip>;
149
+ }, _$zod_v4_core0.$strip>>;
150
+ machineId: _$zod.ZodOptional<_$zod.ZodString>;
151
+ claim: _$zod.ZodNull;
152
+ }, _$zod_v4_core0.$strip>]>;
153
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
154
+ outcome: _$zod.ZodLiteral<"occupied">;
155
+ holder: _$zod.ZodObject<{
156
+ machineId: _$zod.ZodString;
157
+ adapterId: _$zod.ZodString;
158
+ providerSessionId: _$zod.ZodString;
159
+ claimId: _$zod.ZodString;
160
+ adapterName: _$zod.ZodString;
161
+ sessionId: _$zod.ZodString;
162
+ agentId: _$zod.ZodString;
163
+ ownerInstanceId: _$zod.ZodNullable<_$zod.ZodString>;
164
+ claimToken: _$zod.ZodString;
165
+ fence: _$zod.ZodNumber;
166
+ status: _$zod.ZodEnum<{
167
+ abandoned: "abandoned";
168
+ held: "held";
169
+ releasing: "releasing";
170
+ }>;
171
+ claimedAt: _$zod.ZodNumber;
172
+ updatedAt: _$zod.ZodNumber;
173
+ }, _$zod_v4_core0.$strip>;
174
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
175
+ outcome: _$zod.ZodLiteral<"lead-conflict">;
176
+ currentLeadAgentId: _$zod.ZodNullable<_$zod.ZodString>;
177
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
178
+ outcome: _$zod.ZodLiteral<"agent-disposed">;
179
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
180
+ outcome: _$zod.ZodLiteral<"session-not-active">;
181
+ status: _$zod.ZodEnum<{
182
+ closed: "closed";
183
+ discovered: "discovered";
184
+ archived: "archived";
185
+ }>;
186
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
187
+ outcome: _$zod.ZodLiteral<"not-found">;
188
+ missing: _$zod.ZodEnum<{
189
+ agent: "agent";
190
+ session: "session";
191
+ }>;
192
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
193
+ outcome: _$zod.ZodLiteral<"machine-identity-unavailable">;
194
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
195
+ outcome: _$zod.ZodLiteral<"currency-changed">;
196
+ revision: _$zod.ZodNumber;
197
+ currencyFence: _$zod.ZodNumber;
198
+ currency: _$zod.ZodObject<{
199
+ adapterSessionId: _$zod.ZodNullable<_$zod.ZodString>;
200
+ currentAdapterSessionId: _$zod.ZodNullable<_$zod.ZodString>;
201
+ currentAdapterSessionIdState: _$zod.ZodEnum<{
202
+ confirmed: "confirmed";
203
+ moved: "moved";
204
+ inherited: "inherited";
205
+ }>;
206
+ }, _$zod_v4_core0.$strip>;
207
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
208
+ outcome: _$zod.ZodLiteral<"recovery-conflict">;
209
+ status: _$zod.ZodEnum<{
210
+ idle: "idle";
211
+ active: "active";
212
+ starting: "starting";
213
+ dead: "dead";
214
+ disposed: "disposed";
215
+ }>;
216
+ ownerGeneration: _$zod.ZodNullable<_$zod.ZodObject<{
217
+ claimId: _$zod.ZodString;
218
+ claimToken: _$zod.ZodString;
219
+ fence: _$zod.ZodNumber;
220
+ ownerInstanceId: _$zod.ZodNullable<_$zod.ZodString>;
221
+ status: _$zod.ZodEnum<{
222
+ abandoned: "abandoned";
223
+ held: "held";
224
+ releasing: "releasing";
225
+ }>;
226
+ }, _$zod_v4_core0.$strip>>;
227
+ }, _$zod_v4_core0.$strip>], "outcome">;
228
+ };
229
+ 'ownership.settleMovement': {
230
+ request: _$zod.ZodObject<{
231
+ sessionId: _$zod.ZodString;
232
+ agentId: _$zod.ZodString;
233
+ adapterId: _$zod.ZodString;
234
+ adapterName: _$zod.ZodString;
235
+ ownerInstanceId: _$zod.ZodString;
236
+ machineId: _$zod.ZodOptional<_$zod.ZodString>;
237
+ movement: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
238
+ confirmed: _$zod.ZodLiteral<true>;
239
+ providerSessionId: _$zod.ZodString;
240
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
241
+ confirmed: _$zod.ZodLiteral<false>;
242
+ }, _$zod_v4_core0.$strip>], "confirmed">;
243
+ claimToken: _$zod.ZodOptional<_$zod.ZodString>;
244
+ }, _$zod_v4_core0.$strip>;
245
+ response: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
246
+ outcome: _$zod.ZodLiteral<"settled">;
247
+ revision: _$zod.ZodNumber;
248
+ currency: _$zod.ZodObject<{
249
+ adapterSessionId: _$zod.ZodNullable<_$zod.ZodString>;
250
+ currentAdapterSessionId: _$zod.ZodNullable<_$zod.ZodString>;
251
+ currentAdapterSessionIdState: _$zod.ZodEnum<{
252
+ confirmed: "confirmed";
253
+ moved: "moved";
254
+ inherited: "inherited";
255
+ }>;
256
+ }, _$zod_v4_core0.$strip>;
257
+ sessionSnapshotUpdated: _$zod.ZodBoolean;
258
+ releasedProviderSessionIds: _$zod.ZodArray<_$zod.ZodString>;
259
+ claim: _$zod.ZodObject<{
260
+ machineId: _$zod.ZodString;
261
+ adapterId: _$zod.ZodString;
262
+ providerSessionId: _$zod.ZodString;
263
+ claimId: _$zod.ZodString;
264
+ adapterName: _$zod.ZodString;
265
+ sessionId: _$zod.ZodString;
266
+ agentId: _$zod.ZodString;
267
+ ownerInstanceId: _$zod.ZodNullable<_$zod.ZodString>;
268
+ claimToken: _$zod.ZodString;
269
+ fence: _$zod.ZodNumber;
270
+ status: _$zod.ZodEnum<{
271
+ abandoned: "abandoned";
272
+ held: "held";
273
+ releasing: "releasing";
274
+ }>;
275
+ claimedAt: _$zod.ZodNumber;
276
+ updatedAt: _$zod.ZodNumber;
277
+ }, _$zod_v4_core0.$strip>;
278
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
279
+ outcome: _$zod.ZodLiteral<"idempotent">;
280
+ revision: _$zod.ZodNumber;
281
+ currency: _$zod.ZodObject<{
282
+ adapterSessionId: _$zod.ZodNullable<_$zod.ZodString>;
283
+ currentAdapterSessionId: _$zod.ZodNullable<_$zod.ZodString>;
284
+ currentAdapterSessionIdState: _$zod.ZodEnum<{
285
+ confirmed: "confirmed";
286
+ moved: "moved";
287
+ inherited: "inherited";
288
+ }>;
289
+ }, _$zod_v4_core0.$strip>;
290
+ sessionSnapshotUpdated: _$zod.ZodLiteral<false>;
291
+ claim: _$zod.ZodNullable<_$zod.ZodObject<{
292
+ machineId: _$zod.ZodString;
293
+ adapterId: _$zod.ZodString;
294
+ providerSessionId: _$zod.ZodString;
295
+ claimId: _$zod.ZodString;
296
+ adapterName: _$zod.ZodString;
297
+ sessionId: _$zod.ZodString;
298
+ agentId: _$zod.ZodString;
299
+ ownerInstanceId: _$zod.ZodNullable<_$zod.ZodString>;
300
+ claimToken: _$zod.ZodString;
301
+ fence: _$zod.ZodNumber;
302
+ status: _$zod.ZodEnum<{
303
+ abandoned: "abandoned";
304
+ held: "held";
305
+ releasing: "releasing";
306
+ }>;
307
+ claimedAt: _$zod.ZodNumber;
308
+ updatedAt: _$zod.ZodNumber;
309
+ }, _$zod_v4_core0.$strip>>;
310
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
311
+ outcome: _$zod.ZodLiteral<"already-claimed">;
312
+ holder: _$zod.ZodObject<{
313
+ machineId: _$zod.ZodString;
314
+ adapterId: _$zod.ZodString;
315
+ providerSessionId: _$zod.ZodString;
316
+ claimId: _$zod.ZodString;
317
+ adapterName: _$zod.ZodString;
318
+ sessionId: _$zod.ZodString;
319
+ agentId: _$zod.ZodString;
320
+ ownerInstanceId: _$zod.ZodNullable<_$zod.ZodString>;
321
+ claimToken: _$zod.ZodString;
322
+ fence: _$zod.ZodNumber;
323
+ status: _$zod.ZodEnum<{
324
+ abandoned: "abandoned";
325
+ held: "held";
326
+ releasing: "releasing";
327
+ }>;
328
+ claimedAt: _$zod.ZodNumber;
329
+ updatedAt: _$zod.ZodNumber;
330
+ }, _$zod_v4_core0.$strip>;
331
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
332
+ outcome: _$zod.ZodLiteral<"superseded">;
333
+ currentFence: _$zod.ZodNumber;
334
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
335
+ outcome: _$zod.ZodLiteral<"currency-changed">;
336
+ revision: _$zod.ZodNumber;
337
+ currency: _$zod.ZodObject<{
338
+ adapterSessionId: _$zod.ZodNullable<_$zod.ZodString>;
339
+ currentAdapterSessionId: _$zod.ZodNullable<_$zod.ZodString>;
340
+ currentAdapterSessionIdState: _$zod.ZodEnum<{
341
+ confirmed: "confirmed";
342
+ moved: "moved";
343
+ inherited: "inherited";
344
+ }>;
345
+ }, _$zod_v4_core0.$strip>;
346
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
347
+ outcome: _$zod.ZodLiteral<"not-owner">;
348
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
349
+ outcome: _$zod.ZodLiteral<"agent-disposed">;
350
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
351
+ outcome: _$zod.ZodLiteral<"not-found">;
352
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
353
+ outcome: _$zod.ZodLiteral<"machine-identity-unavailable">;
354
+ }, _$zod_v4_core0.$strip>], "outcome">;
355
+ };
356
+ 'ownership.release': {
357
+ request: _$zod.ZodObject<{
358
+ agentId: _$zod.ZodString;
359
+ claimToken: _$zod.ZodOptional<_$zod.ZodString>;
360
+ disposition: _$zod.ZodEnum<{
361
+ released: "released";
362
+ abandoned: "abandoned";
363
+ releasing: "releasing";
364
+ }>;
365
+ }, _$zod_v4_core0.$strip>;
366
+ response: _$zod.ZodObject<{
367
+ releasedProviderSessionIds: _$zod.ZodArray<_$zod.ZodString>;
368
+ markedClaims: _$zod.ZodArray<_$zod.ZodObject<{
369
+ machineId: _$zod.ZodString;
370
+ adapterId: _$zod.ZodString;
371
+ providerSessionId: _$zod.ZodString;
372
+ claimId: _$zod.ZodString;
373
+ adapterName: _$zod.ZodString;
374
+ sessionId: _$zod.ZodString;
375
+ agentId: _$zod.ZodString;
376
+ ownerInstanceId: _$zod.ZodNullable<_$zod.ZodString>;
377
+ claimToken: _$zod.ZodString;
378
+ fence: _$zod.ZodNumber;
379
+ status: _$zod.ZodEnum<{
380
+ abandoned: "abandoned";
381
+ held: "held";
382
+ releasing: "releasing";
383
+ }>;
384
+ claimedAt: _$zod.ZodNumber;
385
+ updatedAt: _$zod.ZodNumber;
386
+ }, _$zod_v4_core0.$strip>>;
387
+ claimTokenNotFound: _$zod.ZodBoolean;
388
+ }, _$zod_v4_core0.$strip>;
389
+ };
390
+ 'ownership.reconcile': {
391
+ request: _$zod.ZodObject<{}, _$zod_v4_core0.$strip>;
392
+ response: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
393
+ outcome: _$zod.ZodLiteral<"reconciled">;
394
+ machineId: _$zod.ZodString;
395
+ claims: _$zod.ZodArray<_$zod.ZodObject<{
396
+ claim: _$zod.ZodObject<{
397
+ machineId: _$zod.ZodString;
398
+ adapterId: _$zod.ZodString;
399
+ providerSessionId: _$zod.ZodString;
400
+ claimId: _$zod.ZodString;
401
+ adapterName: _$zod.ZodString;
402
+ sessionId: _$zod.ZodString;
403
+ agentId: _$zod.ZodString;
404
+ ownerInstanceId: _$zod.ZodNullable<_$zod.ZodString>;
405
+ claimToken: _$zod.ZodString;
406
+ fence: _$zod.ZodNumber;
407
+ status: _$zod.ZodEnum<{
408
+ abandoned: "abandoned";
409
+ held: "held";
410
+ releasing: "releasing";
411
+ }>;
412
+ claimedAt: _$zod.ZodNumber;
413
+ updatedAt: _$zod.ZodNumber;
414
+ }, _$zod_v4_core0.$strip>;
415
+ verdict: _$zod.ZodEnum<{
416
+ abandoned: "abandoned";
417
+ retained: "retained";
418
+ vanished: "vanished";
419
+ }>;
420
+ reason: _$zod.ZodOptional<_$zod.ZodEnum<{
421
+ "agent-disposed": "agent-disposed";
422
+ "agent-gone": "agent-gone";
423
+ "adapter-instance-gone": "adapter-instance-gone";
424
+ "owner-instance-retired": "owner-instance-retired";
425
+ }>>;
426
+ }, _$zod_v4_core0.$strip>>;
427
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
428
+ outcome: _$zod.ZodLiteral<"skipped">;
429
+ reason: _$zod.ZodLiteral<"machine-identity-unavailable">;
430
+ }, _$zod_v4_core0.$strip>], "outcome">;
431
+ };
432
+ 'ownership.continuation': {
433
+ request: _$zod.ZodObject<{
434
+ sessionId: _$zod.ZodString;
435
+ startMode: _$zod.ZodEnum<{
436
+ resume: "resume";
437
+ compact: "compact";
438
+ }>;
439
+ }, _$zod_v4_core0.$strip>;
440
+ response: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
441
+ outcome: _$zod.ZodLiteral<"reopened">;
442
+ sessionId: _$zod.ZodString;
443
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
444
+ outcome: _$zod.ZodLiteral<"unchanged">;
445
+ sessionId: _$zod.ZodString;
446
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
447
+ outcome: _$zod.ZodLiteral<"not-found">;
448
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
449
+ outcome: _$zod.ZodLiteral<"unresolved">;
450
+ sessionId: _$zod.ZodString;
451
+ }, _$zod_v4_core0.$strip>], "outcome">;
452
+ };
12
453
  enrichContext: {
13
454
  request: _$zod.ZodObject<{
14
455
  sessionId: _$zod.ZodString;
@@ -97,9 +538,9 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
97
538
  description: _$zod.ZodOptional<_$zod.ZodString>;
98
539
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
99
540
  exposureMode: _$zod.ZodEnum<{
100
- hidden: "hidden";
101
541
  direct: "direct";
102
542
  discovery: "discovery";
543
+ hidden: "hidden";
103
544
  }>;
104
545
  enabled: _$zod.ZodBoolean;
105
546
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -116,9 +557,9 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
116
557
  description: _$zod.ZodOptional<_$zod.ZodString>;
117
558
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
118
559
  exposureMode: _$zod.ZodEnum<{
119
- hidden: "hidden";
120
560
  direct: "direct";
121
561
  discovery: "discovery";
562
+ hidden: "hidden";
122
563
  }>;
123
564
  enabled: _$zod.ZodBoolean;
124
565
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -353,9 +794,9 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
353
794
  description: _$zod.ZodOptional<_$zod.ZodString>;
354
795
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
355
796
  exposureMode: _$zod.ZodEnum<{
356
- hidden: "hidden";
357
797
  direct: "direct";
358
798
  discovery: "discovery";
799
+ hidden: "hidden";
359
800
  }>;
360
801
  enabled: _$zod.ZodBoolean;
361
802
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -372,9 +813,9 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
372
813
  description: _$zod.ZodOptional<_$zod.ZodString>;
373
814
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
374
815
  exposureMode: _$zod.ZodEnum<{
375
- hidden: "hidden";
376
816
  direct: "direct";
377
817
  discovery: "discovery";
818
+ hidden: "hidden";
378
819
  }>;
379
820
  enabled: _$zod.ZodBoolean;
380
821
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -390,6 +831,7 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
390
831
  kind: _$zod.ZodLiteral<"adapter">;
391
832
  adapterName: _$zod.ZodOptional<_$zod.ZodString>;
392
833
  adapterId: _$zod.ZodOptional<_$zod.ZodString>;
834
+ machineId: _$zod.ZodOptional<_$zod.ZodString>;
393
835
  }, _$zod_v4_core0.$loose>, _$zod.ZodObject<{
394
836
  providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
395
837
  reasoningEffort: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -456,9 +898,9 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
456
898
  description: _$zod.ZodOptional<_$zod.ZodString>;
457
899
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
458
900
  exposureMode: _$zod.ZodEnum<{
459
- hidden: "hidden";
460
901
  direct: "direct";
461
902
  discovery: "discovery";
903
+ hidden: "hidden";
462
904
  }>;
463
905
  enabled: _$zod.ZodBoolean;
464
906
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -475,9 +917,9 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
475
917
  description: _$zod.ZodOptional<_$zod.ZodString>;
476
918
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
477
919
  exposureMode: _$zod.ZodEnum<{
478
- hidden: "hidden";
479
920
  direct: "direct";
480
921
  discovery: "discovery";
922
+ hidden: "hidden";
481
923
  }>;
482
924
  enabled: _$zod.ZodBoolean;
483
925
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -559,9 +1001,9 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
559
1001
  description: _$zod.ZodOptional<_$zod.ZodString>;
560
1002
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
561
1003
  exposureMode: _$zod.ZodEnum<{
562
- hidden: "hidden";
563
1004
  direct: "direct";
564
1005
  discovery: "discovery";
1006
+ hidden: "hidden";
565
1007
  }>;
566
1008
  enabled: _$zod.ZodBoolean;
567
1009
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -578,9 +1020,9 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
578
1020
  description: _$zod.ZodOptional<_$zod.ZodString>;
579
1021
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
580
1022
  exposureMode: _$zod.ZodEnum<{
581
- hidden: "hidden";
582
1023
  direct: "direct";
583
1024
  discovery: "discovery";
1025
+ hidden: "hidden";
584
1026
  }>;
585
1027
  enabled: _$zod.ZodBoolean;
586
1028
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -733,7 +1175,7 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
733
1175
  systemPrompt: "systemPrompt";
734
1176
  fullPrefix: "fullPrefix";
735
1177
  }>>;
736
- turnContext: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodType<_$_makaio_contracts0.JsonValue, unknown, _$zod_v4_core0.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
1178
+ turnContext: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, _$zod_v4_core0.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>>>;
737
1179
  requestCorrelation: _$zod.ZodOptional<_$zod.ZodObject<{
738
1180
  sessionId: _$zod.ZodOptional<_$zod.ZodString>;
739
1181
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -760,6 +1202,7 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
760
1202
  "native-attempt-failed": "native-attempt-failed";
761
1203
  "agent-already-started": "agent-already-started";
762
1204
  "fork-point-unresolvable": "fork-point-unresolvable";
1205
+ "adapter-session-moved": "adapter-session-moved";
763
1206
  }>;
764
1207
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
765
1208
  kind: _$zod.ZodLiteral<"foreign">;
@@ -787,21 +1230,21 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
787
1230
  skipConnectorSwapWarning: _$zod.ZodOptional<_$zod.ZodBoolean>;
788
1231
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
789
1232
  text: "text";
790
- voice: "voice";
791
1233
  compact: "compact";
1234
+ voice: "voice";
792
1235
  }>>;
793
1236
  }, _$zod_v4_core0.$strip>;
794
1237
  response: _$zod.ZodObject<{
795
1238
  messageId: _$zod.ZodString;
796
1239
  turnId: _$zod.ZodString;
797
1240
  sessionId: _$zod.ZodString;
1241
+ deferredAgentIds: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
798
1242
  }, _$zod_v4_core0.$strip>;
799
1243
  };
800
1244
  'agent.attach': {
801
1245
  request: _$zod.ZodObject<{
802
1246
  sessionId: _$zod.ZodString;
803
- agent: _$zod.ZodObject<{
804
- kind: _$zod.ZodString;
1247
+ agent: _$zod.ZodUnion<readonly [_$zod.ZodObject<{
805
1248
  providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
806
1249
  model: _$zod.ZodOptional<_$zod.ZodString>;
807
1250
  reasoningEffort: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -868,9 +1311,9 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
868
1311
  description: _$zod.ZodOptional<_$zod.ZodString>;
869
1312
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
870
1313
  exposureMode: _$zod.ZodEnum<{
871
- hidden: "hidden";
872
1314
  direct: "direct";
873
1315
  discovery: "discovery";
1316
+ hidden: "hidden";
874
1317
  }>;
875
1318
  enabled: _$zod.ZodBoolean;
876
1319
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -887,9 +1330,9 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
887
1330
  description: _$zod.ZodOptional<_$zod.ZodString>;
888
1331
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
889
1332
  exposureMode: _$zod.ZodEnum<{
890
- hidden: "hidden";
891
1333
  direct: "direct";
892
1334
  discovery: "discovery";
1335
+ hidden: "hidden";
893
1336
  }>;
894
1337
  enabled: _$zod.ZodBoolean;
895
1338
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -902,50 +1345,258 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
902
1345
  }, _$zod_v4_core0.$strip>>;
903
1346
  allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
904
1347
  adapterConfig: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
905
- }, _$zod_v4_core0.$loose>;
906
- initialMessage: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
907
- role: _$zod.ZodOptional<_$zod.ZodEnum<{
908
- user: "user";
909
- assistant: "assistant";
910
- system: "system";
1348
+ kind: _$zod.ZodLiteral<"adapter">;
1349
+ adapterName: _$zod.ZodOptional<_$zod.ZodString>;
1350
+ adapterId: _$zod.ZodOptional<_$zod.ZodString>;
1351
+ machineId: _$zod.ZodOptional<_$zod.ZodString>;
1352
+ }, _$zod_v4_core0.$loose>, _$zod.ZodObject<{
1353
+ providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
1354
+ reasoningEffort: _$zod.ZodOptional<_$zod.ZodEnum<{
1355
+ none: "none";
1356
+ low: "low";
1357
+ medium: "medium";
1358
+ high: "high";
1359
+ "extra-high": "extra-high";
911
1360
  }>>;
912
- blocks: _$zod.ZodUnion<readonly [_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
913
- type: _$zod.ZodLiteral<"text">;
1361
+ cwd: _$zod.ZodOptional<_$zod.ZodString>;
1362
+ systemPrompt: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
1363
+ mode: _$zod.ZodLiteral<"append">;
914
1364
  content: _$zod.ZodString;
915
- }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
916
- type: _$zod.ZodLiteral<"image">;
917
- source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
918
- type: _$zod.ZodLiteral<"base64">;
919
- data: _$zod.ZodString;
920
- mimeType: _$zod.ZodString;
921
- }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
922
- type: _$zod.ZodLiteral<"url">;
923
- url: _$zod.ZodString;
924
- mimeType: _$zod.ZodOptional<_$zod.ZodString>;
925
- }, _$zod_v4_core0.$strip>], "type">;
926
- }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
927
- type: _$zod.ZodLiteral<"document">;
928
- source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
929
- type: _$zod.ZodLiteral<"base64">;
930
- data: _$zod.ZodString;
931
- mimeType: _$zod.ZodString;
932
- }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
933
- type: _$zod.ZodLiteral<"url">;
934
- url: _$zod.ZodString;
935
- mimeType: _$zod.ZodOptional<_$zod.ZodString>;
936
- }, _$zod_v4_core0.$strip>], "type">;
937
- }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
938
- type: _$zod.ZodLiteral<"attachment">;
939
- fileName: _$zod.ZodString;
940
- filePath: _$zod.ZodString;
941
- source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
942
- type: _$zod.ZodLiteral<"base64">;
943
- data: _$zod.ZodString;
944
- mimeType: _$zod.ZodString;
945
- }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
946
- type: _$zod.ZodLiteral<"url">;
947
- url: _$zod.ZodString;
948
- mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1365
+ }, _$zod_v4_core0.$strip>]>>;
1366
+ allowedTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
1367
+ disallowedTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
1368
+ env: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
1369
+ mcpSessionContext: _$zod.ZodOptional<_$zod.ZodObject<{
1370
+ sessionId: _$zod.ZodString;
1371
+ servers: _$zod.ZodArray<_$zod.ZodObject<{
1372
+ name: _$zod.ZodString;
1373
+ transport: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1374
+ type: _$zod.ZodLiteral<"stdio">;
1375
+ command: _$zod.ZodString;
1376
+ args: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
1377
+ env: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
1378
+ alwaysLoad: _$zod.ZodOptional<_$zod.ZodBoolean>;
1379
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1380
+ url: _$zod.ZodString;
1381
+ headers: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
1382
+ tools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
1383
+ name: _$zod.ZodString;
1384
+ permission_policy: _$zod.ZodEnum<{
1385
+ always_allow: "always_allow";
1386
+ always_ask: "always_ask";
1387
+ always_deny: "always_deny";
1388
+ }>;
1389
+ }, _$zod_v4_core0.$strip>>>;
1390
+ alwaysLoad: _$zod.ZodOptional<_$zod.ZodBoolean>;
1391
+ type: _$zod.ZodLiteral<"sse">;
1392
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1393
+ url: _$zod.ZodString;
1394
+ headers: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
1395
+ tools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
1396
+ name: _$zod.ZodString;
1397
+ permission_policy: _$zod.ZodEnum<{
1398
+ always_allow: "always_allow";
1399
+ always_ask: "always_ask";
1400
+ always_deny: "always_deny";
1401
+ }>;
1402
+ }, _$zod_v4_core0.$strip>>>;
1403
+ alwaysLoad: _$zod.ZodOptional<_$zod.ZodBoolean>;
1404
+ type: _$zod.ZodLiteral<"http">;
1405
+ }, _$zod_v4_core0.$strip>], "type">;
1406
+ exposureMode: _$zod.ZodEnum<{
1407
+ direct: "direct";
1408
+ discovery: "discovery";
1409
+ }>;
1410
+ }, _$zod_v4_core0.$strip>>;
1411
+ directTools: _$zod.ZodArray<_$zod.ZodObject<{
1412
+ fullName: _$zod.ZodString;
1413
+ originalName: _$zod.ZodString;
1414
+ serverName: _$zod.ZodString;
1415
+ description: _$zod.ZodOptional<_$zod.ZodString>;
1416
+ inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
1417
+ exposureMode: _$zod.ZodEnum<{
1418
+ direct: "direct";
1419
+ discovery: "discovery";
1420
+ hidden: "hidden";
1421
+ }>;
1422
+ enabled: _$zod.ZodBoolean;
1423
+ enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
1424
+ discovery: "discovery";
1425
+ toolset: "toolset";
1426
+ }>>;
1427
+ enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
1428
+ exposed: _$zod.ZodBoolean;
1429
+ }, _$zod_v4_core0.$strip>>;
1430
+ discoverableTools: _$zod.ZodArray<_$zod.ZodObject<{
1431
+ fullName: _$zod.ZodString;
1432
+ originalName: _$zod.ZodString;
1433
+ serverName: _$zod.ZodString;
1434
+ description: _$zod.ZodOptional<_$zod.ZodString>;
1435
+ inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
1436
+ exposureMode: _$zod.ZodEnum<{
1437
+ direct: "direct";
1438
+ discovery: "discovery";
1439
+ hidden: "hidden";
1440
+ }>;
1441
+ enabled: _$zod.ZodBoolean;
1442
+ enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
1443
+ discovery: "discovery";
1444
+ toolset: "toolset";
1445
+ }>>;
1446
+ enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
1447
+ exposed: _$zod.ZodBoolean;
1448
+ }, _$zod_v4_core0.$strip>>;
1449
+ }, _$zod_v4_core0.$strip>>;
1450
+ allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
1451
+ adapterConfig: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
1452
+ kind: _$zod.ZodLiteral<"canonical-model">;
1453
+ model: _$zod.ZodString;
1454
+ }, _$zod_v4_core0.$loose>, _$zod.ZodObject<{
1455
+ providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
1456
+ model: _$zod.ZodOptional<_$zod.ZodString>;
1457
+ reasoningEffort: _$zod.ZodOptional<_$zod.ZodEnum<{
1458
+ none: "none";
1459
+ low: "low";
1460
+ medium: "medium";
1461
+ high: "high";
1462
+ "extra-high": "extra-high";
1463
+ }>>;
1464
+ cwd: _$zod.ZodOptional<_$zod.ZodString>;
1465
+ systemPrompt: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
1466
+ mode: _$zod.ZodLiteral<"append">;
1467
+ content: _$zod.ZodString;
1468
+ }, _$zod_v4_core0.$strip>]>>;
1469
+ allowedTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
1470
+ disallowedTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
1471
+ env: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
1472
+ mcpSessionContext: _$zod.ZodOptional<_$zod.ZodObject<{
1473
+ sessionId: _$zod.ZodString;
1474
+ servers: _$zod.ZodArray<_$zod.ZodObject<{
1475
+ name: _$zod.ZodString;
1476
+ transport: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1477
+ type: _$zod.ZodLiteral<"stdio">;
1478
+ command: _$zod.ZodString;
1479
+ args: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
1480
+ env: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
1481
+ alwaysLoad: _$zod.ZodOptional<_$zod.ZodBoolean>;
1482
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1483
+ url: _$zod.ZodString;
1484
+ headers: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
1485
+ tools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
1486
+ name: _$zod.ZodString;
1487
+ permission_policy: _$zod.ZodEnum<{
1488
+ always_allow: "always_allow";
1489
+ always_ask: "always_ask";
1490
+ always_deny: "always_deny";
1491
+ }>;
1492
+ }, _$zod_v4_core0.$strip>>>;
1493
+ alwaysLoad: _$zod.ZodOptional<_$zod.ZodBoolean>;
1494
+ type: _$zod.ZodLiteral<"sse">;
1495
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1496
+ url: _$zod.ZodString;
1497
+ headers: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
1498
+ tools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
1499
+ name: _$zod.ZodString;
1500
+ permission_policy: _$zod.ZodEnum<{
1501
+ always_allow: "always_allow";
1502
+ always_ask: "always_ask";
1503
+ always_deny: "always_deny";
1504
+ }>;
1505
+ }, _$zod_v4_core0.$strip>>>;
1506
+ alwaysLoad: _$zod.ZodOptional<_$zod.ZodBoolean>;
1507
+ type: _$zod.ZodLiteral<"http">;
1508
+ }, _$zod_v4_core0.$strip>], "type">;
1509
+ exposureMode: _$zod.ZodEnum<{
1510
+ direct: "direct";
1511
+ discovery: "discovery";
1512
+ }>;
1513
+ }, _$zod_v4_core0.$strip>>;
1514
+ directTools: _$zod.ZodArray<_$zod.ZodObject<{
1515
+ fullName: _$zod.ZodString;
1516
+ originalName: _$zod.ZodString;
1517
+ serverName: _$zod.ZodString;
1518
+ description: _$zod.ZodOptional<_$zod.ZodString>;
1519
+ inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
1520
+ exposureMode: _$zod.ZodEnum<{
1521
+ direct: "direct";
1522
+ discovery: "discovery";
1523
+ hidden: "hidden";
1524
+ }>;
1525
+ enabled: _$zod.ZodBoolean;
1526
+ enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
1527
+ discovery: "discovery";
1528
+ toolset: "toolset";
1529
+ }>>;
1530
+ enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
1531
+ exposed: _$zod.ZodBoolean;
1532
+ }, _$zod_v4_core0.$strip>>;
1533
+ discoverableTools: _$zod.ZodArray<_$zod.ZodObject<{
1534
+ fullName: _$zod.ZodString;
1535
+ originalName: _$zod.ZodString;
1536
+ serverName: _$zod.ZodString;
1537
+ description: _$zod.ZodOptional<_$zod.ZodString>;
1538
+ inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
1539
+ exposureMode: _$zod.ZodEnum<{
1540
+ direct: "direct";
1541
+ discovery: "discovery";
1542
+ hidden: "hidden";
1543
+ }>;
1544
+ enabled: _$zod.ZodBoolean;
1545
+ enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
1546
+ discovery: "discovery";
1547
+ toolset: "toolset";
1548
+ }>>;
1549
+ enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
1550
+ exposed: _$zod.ZodBoolean;
1551
+ }, _$zod_v4_core0.$strip>>;
1552
+ }, _$zod_v4_core0.$strip>>;
1553
+ allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
1554
+ adapterConfig: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
1555
+ kind: _$zod.ZodString;
1556
+ }, _$zod_v4_core0.$loose>]>;
1557
+ initialMessage: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
1558
+ role: _$zod.ZodOptional<_$zod.ZodEnum<{
1559
+ user: "user";
1560
+ assistant: "assistant";
1561
+ system: "system";
1562
+ }>>;
1563
+ blocks: _$zod.ZodUnion<readonly [_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1564
+ type: _$zod.ZodLiteral<"text">;
1565
+ content: _$zod.ZodString;
1566
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1567
+ type: _$zod.ZodLiteral<"image">;
1568
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1569
+ type: _$zod.ZodLiteral<"base64">;
1570
+ data: _$zod.ZodString;
1571
+ mimeType: _$zod.ZodString;
1572
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1573
+ type: _$zod.ZodLiteral<"url">;
1574
+ url: _$zod.ZodString;
1575
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1576
+ }, _$zod_v4_core0.$strip>], "type">;
1577
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1578
+ type: _$zod.ZodLiteral<"document">;
1579
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1580
+ type: _$zod.ZodLiteral<"base64">;
1581
+ data: _$zod.ZodString;
1582
+ mimeType: _$zod.ZodString;
1583
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1584
+ type: _$zod.ZodLiteral<"url">;
1585
+ url: _$zod.ZodString;
1586
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
1587
+ }, _$zod_v4_core0.$strip>], "type">;
1588
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1589
+ type: _$zod.ZodLiteral<"attachment">;
1590
+ fileName: _$zod.ZodString;
1591
+ filePath: _$zod.ZodString;
1592
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1593
+ type: _$zod.ZodLiteral<"base64">;
1594
+ data: _$zod.ZodString;
1595
+ mimeType: _$zod.ZodString;
1596
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1597
+ type: _$zod.ZodLiteral<"url">;
1598
+ url: _$zod.ZodString;
1599
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
949
1600
  }, _$zod_v4_core0.$strip>], "type">;
950
1601
  displayName: _$zod.ZodOptional<_$zod.ZodString>;
951
1602
  attachmentType: _$zod.ZodEnum<{
@@ -1122,9 +1773,9 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
1122
1773
  description: _$zod.ZodOptional<_$zod.ZodString>;
1123
1774
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
1124
1775
  exposureMode: _$zod.ZodEnum<{
1125
- hidden: "hidden";
1126
1776
  direct: "direct";
1127
1777
  discovery: "discovery";
1778
+ hidden: "hidden";
1128
1779
  }>;
1129
1780
  enabled: _$zod.ZodBoolean;
1130
1781
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -1141,9 +1792,9 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
1141
1792
  description: _$zod.ZodOptional<_$zod.ZodString>;
1142
1793
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
1143
1794
  exposureMode: _$zod.ZodEnum<{
1144
- hidden: "hidden";
1145
1795
  direct: "direct";
1146
1796
  discovery: "discovery";
1797
+ hidden: "hidden";
1147
1798
  }>;
1148
1799
  enabled: _$zod.ZodBoolean;
1149
1800
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -1159,6 +1810,7 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
1159
1810
  kind: _$zod.ZodLiteral<"adapter">;
1160
1811
  adapterName: _$zod.ZodOptional<_$zod.ZodString>;
1161
1812
  adapterId: _$zod.ZodOptional<_$zod.ZodString>;
1813
+ machineId: _$zod.ZodOptional<_$zod.ZodString>;
1162
1814
  providerContext: _$zod.ZodOptional<_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1163
1815
  state: _$zod.ZodLiteral<"resolved">;
1164
1816
  providerConfigId: _$zod.ZodString;
@@ -1622,8 +2274,8 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
1622
2274
  }>>;
1623
2275
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
1624
2276
  text: "text";
1625
- voice: "voice";
1626
2277
  compact: "compact";
2278
+ voice: "voice";
1627
2279
  }>>;
1628
2280
  }, _$zod_v4_core0.$strip>;
1629
2281
  'user_message.acknowledged': _$zod.ZodObject<{
@@ -1895,7 +2547,20 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
1895
2547
  adapterId: _$zod.ZodString;
1896
2548
  adapterName: _$zod.ZodString;
1897
2549
  sessionId: _$zod.ZodString;
2550
+ runtimeOwner: _$zod.ZodOptional<_$zod.ZodObject<{
2551
+ machineId: _$zod.ZodString;
2552
+ instanceId: _$zod.ZodString;
2553
+ }, _$zod_v4_core0.$strip>>;
2554
+ recoveryAttemptId: _$zod.ZodOptional<_$zod.ZodString>;
1898
2555
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
2556
+ currentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
2557
+ currentAdapterSessionIdState: _$zod.ZodOptional<_$zod.ZodEnum<{
2558
+ confirmed: "confirmed";
2559
+ moved: "moved";
2560
+ inherited: "inherited";
2561
+ }>>;
2562
+ revision: _$zod.ZodOptional<_$zod.ZodNumber>;
2563
+ currencyFence: _$zod.ZodOptional<_$zod.ZodNumber>;
1899
2564
  model: _$zod.ZodOptional<_$zod.ZodString>;
1900
2565
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
1901
2566
  allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
@@ -1916,6 +2581,7 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
1916
2581
  status: _$zod.ZodEnum<{
1917
2582
  idle: "idle";
1918
2583
  active: "active";
2584
+ starting: "starting";
1919
2585
  dead: "dead";
1920
2586
  disposed: "disposed";
1921
2587
  }>;
@@ -1923,8 +2589,8 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
1923
2589
  lastActivityAt: _$zod.ZodNumber;
1924
2590
  }, _$zod_v4_core0.$strip>>;
1925
2591
  status: _$zod.ZodEnum<{
1926
- discovered: "discovered";
1927
2592
  closed: "closed";
2593
+ discovered: "discovered";
1928
2594
  active: "active";
1929
2595
  archived: "archived";
1930
2596
  }>;
@@ -1947,6 +2613,12 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
1947
2613
  }>>;
1948
2614
  adapterName: _$zod.ZodOptional<_$zod.ZodString>;
1949
2615
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
2616
+ currentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
2617
+ currentAdapterSessionIdState: _$zod.ZodOptional<_$zod.ZodEnum<{
2618
+ confirmed: "confirmed";
2619
+ moved: "moved";
2620
+ inherited: "inherited";
2621
+ }>>;
1950
2622
  adapterId: _$zod.ZodOptional<_$zod.ZodString>;
1951
2623
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
1952
2624
  clientAccountId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -2008,7 +2680,20 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
2008
2680
  adapterId: _$zod.ZodString;
2009
2681
  adapterName: _$zod.ZodString;
2010
2682
  sessionId: _$zod.ZodString;
2683
+ runtimeOwner: _$zod.ZodOptional<_$zod.ZodObject<{
2684
+ machineId: _$zod.ZodString;
2685
+ instanceId: _$zod.ZodString;
2686
+ }, _$zod_v4_core0.$strip>>;
2687
+ recoveryAttemptId: _$zod.ZodOptional<_$zod.ZodString>;
2011
2688
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
2689
+ currentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
2690
+ currentAdapterSessionIdState: _$zod.ZodOptional<_$zod.ZodEnum<{
2691
+ confirmed: "confirmed";
2692
+ moved: "moved";
2693
+ inherited: "inherited";
2694
+ }>>;
2695
+ revision: _$zod.ZodOptional<_$zod.ZodNumber>;
2696
+ currencyFence: _$zod.ZodOptional<_$zod.ZodNumber>;
2012
2697
  model: _$zod.ZodOptional<_$zod.ZodString>;
2013
2698
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
2014
2699
  allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
@@ -2029,6 +2714,7 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
2029
2714
  status: _$zod.ZodEnum<{
2030
2715
  idle: "idle";
2031
2716
  active: "active";
2717
+ starting: "starting";
2032
2718
  dead: "dead";
2033
2719
  disposed: "disposed";
2034
2720
  }>;
@@ -2109,8 +2795,8 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
2109
2795
  editOf: _$zod.ZodOptional<_$zod.ZodString>;
2110
2796
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
2111
2797
  text: "text";
2112
- voice: "voice";
2113
2798
  compact: "compact";
2799
+ voice: "voice";
2114
2800
  }>>;
2115
2801
  }, _$zod_v4_core0.$strip>>;
2116
2802
  turns: _$zod.ZodArray<_$zod.ZodObject<{
@@ -2306,8 +2992,8 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
2306
2992
  }>>;
2307
2993
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
2308
2994
  text: "text";
2309
- voice: "voice";
2310
2995
  compact: "compact";
2996
+ voice: "voice";
2311
2997
  }>>;
2312
2998
  }, _$zod_v4_core0.$strip>;
2313
2999
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
@@ -2487,6 +3173,7 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
2487
3173
  "native-attempt-failed": "native-attempt-failed";
2488
3174
  "agent-already-started": "agent-already-started";
2489
3175
  "fork-point-unresolvable": "fork-point-unresolvable";
3176
+ "adapter-session-moved": "adapter-session-moved";
2490
3177
  }>;
2491
3178
  agentId: _$zod.ZodOptional<_$zod.ZodString>;
2492
3179
  adapterId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -2532,7 +3219,20 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
2532
3219
  adapterId: _$zod.ZodString;
2533
3220
  adapterName: _$zod.ZodString;
2534
3221
  sessionId: _$zod.ZodString;
3222
+ runtimeOwner: _$zod.ZodOptional<_$zod.ZodObject<{
3223
+ machineId: _$zod.ZodString;
3224
+ instanceId: _$zod.ZodString;
3225
+ }, _$zod_v4_core0.$strip>>;
3226
+ recoveryAttemptId: _$zod.ZodOptional<_$zod.ZodString>;
2535
3227
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
3228
+ currentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
3229
+ currentAdapterSessionIdState: _$zod.ZodOptional<_$zod.ZodEnum<{
3230
+ confirmed: "confirmed";
3231
+ moved: "moved";
3232
+ inherited: "inherited";
3233
+ }>>;
3234
+ revision: _$zod.ZodOptional<_$zod.ZodNumber>;
3235
+ currencyFence: _$zod.ZodOptional<_$zod.ZodNumber>;
2536
3236
  model: _$zod.ZodOptional<_$zod.ZodString>;
2537
3237
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
2538
3238
  allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
@@ -2553,6 +3253,7 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
2553
3253
  status: _$zod.ZodEnum<{
2554
3254
  idle: "idle";
2555
3255
  active: "active";
3256
+ starting: "starting";
2556
3257
  dead: "dead";
2557
3258
  disposed: "disposed";
2558
3259
  }>;
@@ -2560,8 +3261,8 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
2560
3261
  lastActivityAt: _$zod.ZodNumber;
2561
3262
  }, _$zod_v4_core0.$strip>>;
2562
3263
  status: _$zod.ZodEnum<{
2563
- discovered: "discovered";
2564
3264
  closed: "closed";
3265
+ discovered: "discovered";
2565
3266
  active: "active";
2566
3267
  archived: "archived";
2567
3268
  }>;
@@ -2584,6 +3285,12 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
2584
3285
  }>>;
2585
3286
  adapterName: _$zod.ZodOptional<_$zod.ZodString>;
2586
3287
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
3288
+ currentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
3289
+ currentAdapterSessionIdState: _$zod.ZodOptional<_$zod.ZodEnum<{
3290
+ confirmed: "confirmed";
3291
+ moved: "moved";
3292
+ inherited: "inherited";
3293
+ }>>;
2587
3294
  adapterId: _$zod.ZodOptional<_$zod.ZodString>;
2588
3295
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
2589
3296
  clientAccountId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -2645,7 +3352,20 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
2645
3352
  adapterId: _$zod.ZodString;
2646
3353
  adapterName: _$zod.ZodString;
2647
3354
  sessionId: _$zod.ZodString;
3355
+ runtimeOwner: _$zod.ZodOptional<_$zod.ZodObject<{
3356
+ machineId: _$zod.ZodString;
3357
+ instanceId: _$zod.ZodString;
3358
+ }, _$zod_v4_core0.$strip>>;
3359
+ recoveryAttemptId: _$zod.ZodOptional<_$zod.ZodString>;
2648
3360
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
3361
+ currentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
3362
+ currentAdapterSessionIdState: _$zod.ZodOptional<_$zod.ZodEnum<{
3363
+ confirmed: "confirmed";
3364
+ moved: "moved";
3365
+ inherited: "inherited";
3366
+ }>>;
3367
+ revision: _$zod.ZodOptional<_$zod.ZodNumber>;
3368
+ currencyFence: _$zod.ZodOptional<_$zod.ZodNumber>;
2649
3369
  model: _$zod.ZodOptional<_$zod.ZodString>;
2650
3370
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
2651
3371
  allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
@@ -2666,6 +3386,7 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
2666
3386
  status: _$zod.ZodEnum<{
2667
3387
  idle: "idle";
2668
3388
  active: "active";
3389
+ starting: "starting";
2669
3390
  dead: "dead";
2670
3391
  disposed: "disposed";
2671
3392
  }>;
@@ -2746,8 +3467,8 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
2746
3467
  editOf: _$zod.ZodOptional<_$zod.ZodString>;
2747
3468
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
2748
3469
  text: "text";
2749
- voice: "voice";
2750
3470
  compact: "compact";
3471
+ voice: "voice";
2751
3472
  }>>;
2752
3473
  }, _$zod_v4_core0.$strip>>;
2753
3474
  turns: _$zod.ZodArray<_$zod.ZodObject<{
@@ -2943,8 +3664,8 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
2943
3664
  }>>;
2944
3665
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
2945
3666
  text: "text";
2946
- voice: "voice";
2947
3667
  compact: "compact";
3668
+ voice: "voice";
2948
3669
  }>>;
2949
3670
  }, _$zod_v4_core0.$strip>;
2950
3671
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
@@ -3124,6 +3845,7 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
3124
3845
  "native-attempt-failed": "native-attempt-failed";
3125
3846
  "agent-already-started": "agent-already-started";
3126
3847
  "fork-point-unresolvable": "fork-point-unresolvable";
3848
+ "adapter-session-moved": "adapter-session-moved";
3127
3849
  }>;
3128
3850
  agentId: _$zod.ZodOptional<_$zod.ZodString>;
3129
3851
  adapterId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -3149,8 +3871,8 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
3149
3871
  }, _$zod_v4_core0.$strip>;
3150
3872
  onConflict: _$zod.ZodDefault<_$zod.ZodEnum<{
3151
3873
  overwrite: "overwrite";
3152
- fail: "fail";
3153
3874
  skip: "skip";
3875
+ fail: "fail";
3154
3876
  }>>;
3155
3877
  }, _$zod_v4_core0.$strip>;
3156
3878
  response: _$zod.ZodObject<{
@@ -3253,6 +3975,7 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
3253
3975
  "native-attempt-failed": "native-attempt-failed";
3254
3976
  "agent-already-started": "agent-already-started";
3255
3977
  "fork-point-unresolvable": "fork-point-unresolvable";
3978
+ "adapter-session-moved": "adapter-session-moved";
3256
3979
  }>;
3257
3980
  agentId: _$zod.ZodOptional<_$zod.ZodString>;
3258
3981
  adapterId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -3457,8 +4180,8 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
3457
4180
  }>>;
3458
4181
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
3459
4182
  text: "text";
3460
- voice: "voice";
3461
4183
  compact: "compact";
4184
+ voice: "voice";
3462
4185
  }>>;
3463
4186
  }, _$zod_v4_core0.$strip>;
3464
4187
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
@@ -3638,6 +4361,7 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
3638
4361
  "native-attempt-failed": "native-attempt-failed";
3639
4362
  "agent-already-started": "agent-already-started";
3640
4363
  "fork-point-unresolvable": "fork-point-unresolvable";
4364
+ "adapter-session-moved": "adapter-session-moved";
3641
4365
  }>;
3642
4366
  agentId: _$zod.ZodOptional<_$zod.ZodString>;
3643
4367
  adapterId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -3664,8 +4388,8 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
3664
4388
  request: _$zod.ZodObject<{
3665
4389
  status: _$zod.ZodOptional<_$zod.ZodEnum<{
3666
4390
  all: "all";
3667
- discovered: "discovered";
3668
4391
  closed: "closed";
4392
+ discovered: "discovered";
3669
4393
  active: "active";
3670
4394
  archived: "archived";
3671
4395
  }>>;
@@ -3684,7 +4408,20 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
3684
4408
  adapterId: _$zod.ZodString;
3685
4409
  adapterName: _$zod.ZodString;
3686
4410
  sessionId: _$zod.ZodString;
4411
+ runtimeOwner: _$zod.ZodOptional<_$zod.ZodObject<{
4412
+ machineId: _$zod.ZodString;
4413
+ instanceId: _$zod.ZodString;
4414
+ }, _$zod_v4_core0.$strip>>;
4415
+ recoveryAttemptId: _$zod.ZodOptional<_$zod.ZodString>;
3687
4416
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
4417
+ currentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
4418
+ currentAdapterSessionIdState: _$zod.ZodOptional<_$zod.ZodEnum<{
4419
+ confirmed: "confirmed";
4420
+ moved: "moved";
4421
+ inherited: "inherited";
4422
+ }>>;
4423
+ revision: _$zod.ZodOptional<_$zod.ZodNumber>;
4424
+ currencyFence: _$zod.ZodOptional<_$zod.ZodNumber>;
3688
4425
  model: _$zod.ZodOptional<_$zod.ZodString>;
3689
4426
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
3690
4427
  allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
@@ -3705,6 +4442,7 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
3705
4442
  status: _$zod.ZodEnum<{
3706
4443
  idle: "idle";
3707
4444
  active: "active";
4445
+ starting: "starting";
3708
4446
  dead: "dead";
3709
4447
  disposed: "disposed";
3710
4448
  }>;
@@ -3712,8 +4450,8 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
3712
4450
  lastActivityAt: _$zod.ZodNumber;
3713
4451
  }, _$zod_v4_core0.$strip>>;
3714
4452
  status: _$zod.ZodEnum<{
3715
- discovered: "discovered";
3716
4453
  closed: "closed";
4454
+ discovered: "discovered";
3717
4455
  active: "active";
3718
4456
  archived: "archived";
3719
4457
  }>;
@@ -3736,6 +4474,12 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
3736
4474
  }>>;
3737
4475
  adapterName: _$zod.ZodOptional<_$zod.ZodString>;
3738
4476
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
4477
+ currentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
4478
+ currentAdapterSessionIdState: _$zod.ZodOptional<_$zod.ZodEnum<{
4479
+ confirmed: "confirmed";
4480
+ moved: "moved";
4481
+ inherited: "inherited";
4482
+ }>>;
3739
4483
  adapterId: _$zod.ZodOptional<_$zod.ZodString>;
3740
4484
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
3741
4485
  clientAccountId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -3805,8 +4549,8 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
3805
4549
  limit: _$zod.ZodOptional<_$zod.ZodNumber>;
3806
4550
  status: _$zod.ZodOptional<_$zod.ZodEnum<{
3807
4551
  all: "all";
3808
- discovered: "discovered";
3809
4552
  closed: "closed";
4553
+ discovered: "discovered";
3810
4554
  active: "active";
3811
4555
  archived: "archived";
3812
4556
  }>>;
@@ -3822,7 +4566,20 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
3822
4566
  adapterId: _$zod.ZodString;
3823
4567
  adapterName: _$zod.ZodString;
3824
4568
  sessionId: _$zod.ZodString;
4569
+ runtimeOwner: _$zod.ZodOptional<_$zod.ZodObject<{
4570
+ machineId: _$zod.ZodString;
4571
+ instanceId: _$zod.ZodString;
4572
+ }, _$zod_v4_core0.$strip>>;
4573
+ recoveryAttemptId: _$zod.ZodOptional<_$zod.ZodString>;
3825
4574
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
4575
+ currentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
4576
+ currentAdapterSessionIdState: _$zod.ZodOptional<_$zod.ZodEnum<{
4577
+ confirmed: "confirmed";
4578
+ moved: "moved";
4579
+ inherited: "inherited";
4580
+ }>>;
4581
+ revision: _$zod.ZodOptional<_$zod.ZodNumber>;
4582
+ currencyFence: _$zod.ZodOptional<_$zod.ZodNumber>;
3826
4583
  model: _$zod.ZodOptional<_$zod.ZodString>;
3827
4584
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
3828
4585
  allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
@@ -3843,6 +4600,7 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
3843
4600
  status: _$zod.ZodEnum<{
3844
4601
  idle: "idle";
3845
4602
  active: "active";
4603
+ starting: "starting";
3846
4604
  dead: "dead";
3847
4605
  disposed: "disposed";
3848
4606
  }>;
@@ -3850,8 +4608,8 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
3850
4608
  lastActivityAt: _$zod.ZodNumber;
3851
4609
  }, _$zod_v4_core0.$strip>>;
3852
4610
  status: _$zod.ZodEnum<{
3853
- discovered: "discovered";
3854
4611
  closed: "closed";
4612
+ discovered: "discovered";
3855
4613
  active: "active";
3856
4614
  archived: "archived";
3857
4615
  }>;
@@ -3874,6 +4632,12 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
3874
4632
  }>>;
3875
4633
  adapterName: _$zod.ZodOptional<_$zod.ZodString>;
3876
4634
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
4635
+ currentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
4636
+ currentAdapterSessionIdState: _$zod.ZodOptional<_$zod.ZodEnum<{
4637
+ confirmed: "confirmed";
4638
+ moved: "moved";
4639
+ inherited: "inherited";
4640
+ }>>;
3877
4641
  adapterId: _$zod.ZodOptional<_$zod.ZodString>;
3878
4642
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
3879
4643
  clientAccountId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -3951,7 +4715,20 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
3951
4715
  adapterId: _$zod.ZodString;
3952
4716
  adapterName: _$zod.ZodString;
3953
4717
  sessionId: _$zod.ZodString;
4718
+ runtimeOwner: _$zod.ZodOptional<_$zod.ZodObject<{
4719
+ machineId: _$zod.ZodString;
4720
+ instanceId: _$zod.ZodString;
4721
+ }, _$zod_v4_core0.$strip>>;
4722
+ recoveryAttemptId: _$zod.ZodOptional<_$zod.ZodString>;
3954
4723
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
4724
+ currentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
4725
+ currentAdapterSessionIdState: _$zod.ZodOptional<_$zod.ZodEnum<{
4726
+ confirmed: "confirmed";
4727
+ moved: "moved";
4728
+ inherited: "inherited";
4729
+ }>>;
4730
+ revision: _$zod.ZodOptional<_$zod.ZodNumber>;
4731
+ currencyFence: _$zod.ZodOptional<_$zod.ZodNumber>;
3955
4732
  model: _$zod.ZodOptional<_$zod.ZodString>;
3956
4733
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
3957
4734
  allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
@@ -3972,6 +4749,7 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
3972
4749
  status: _$zod.ZodEnum<{
3973
4750
  idle: "idle";
3974
4751
  active: "active";
4752
+ starting: "starting";
3975
4753
  dead: "dead";
3976
4754
  disposed: "disposed";
3977
4755
  }>;
@@ -3979,8 +4757,8 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
3979
4757
  lastActivityAt: _$zod.ZodNumber;
3980
4758
  }, _$zod_v4_core0.$strip>>;
3981
4759
  status: _$zod.ZodEnum<{
3982
- discovered: "discovered";
3983
4760
  closed: "closed";
4761
+ discovered: "discovered";
3984
4762
  active: "active";
3985
4763
  archived: "archived";
3986
4764
  }>;
@@ -4003,6 +4781,12 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
4003
4781
  }>>;
4004
4782
  adapterName: _$zod.ZodOptional<_$zod.ZodString>;
4005
4783
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
4784
+ currentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
4785
+ currentAdapterSessionIdState: _$zod.ZodOptional<_$zod.ZodEnum<{
4786
+ confirmed: "confirmed";
4787
+ moved: "moved";
4788
+ inherited: "inherited";
4789
+ }>>;
4006
4790
  adapterId: _$zod.ZodOptional<_$zod.ZodString>;
4007
4791
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
4008
4792
  clientAccountId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -4194,7 +4978,20 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
4194
4978
  adapterId: _$zod.ZodString;
4195
4979
  adapterName: _$zod.ZodString;
4196
4980
  sessionId: _$zod.ZodString;
4981
+ runtimeOwner: _$zod.ZodOptional<_$zod.ZodObject<{
4982
+ machineId: _$zod.ZodString;
4983
+ instanceId: _$zod.ZodString;
4984
+ }, _$zod_v4_core0.$strip>>;
4985
+ recoveryAttemptId: _$zod.ZodOptional<_$zod.ZodString>;
4197
4986
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
4987
+ currentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
4988
+ currentAdapterSessionIdState: _$zod.ZodOptional<_$zod.ZodEnum<{
4989
+ confirmed: "confirmed";
4990
+ moved: "moved";
4991
+ inherited: "inherited";
4992
+ }>>;
4993
+ revision: _$zod.ZodOptional<_$zod.ZodNumber>;
4994
+ currencyFence: _$zod.ZodOptional<_$zod.ZodNumber>;
4198
4995
  model: _$zod.ZodOptional<_$zod.ZodString>;
4199
4996
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
4200
4997
  allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
@@ -4215,6 +5012,7 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
4215
5012
  status: _$zod.ZodEnum<{
4216
5013
  idle: "idle";
4217
5014
  active: "active";
5015
+ starting: "starting";
4218
5016
  dead: "dead";
4219
5017
  disposed: "disposed";
4220
5018
  }>;
@@ -4222,8 +5020,8 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
4222
5020
  lastActivityAt: _$zod.ZodNumber;
4223
5021
  }, _$zod_v4_core0.$strip>>;
4224
5022
  status: _$zod.ZodEnum<{
4225
- discovered: "discovered";
4226
5023
  closed: "closed";
5024
+ discovered: "discovered";
4227
5025
  active: "active";
4228
5026
  archived: "archived";
4229
5027
  }>;
@@ -4246,6 +5044,12 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
4246
5044
  }>>;
4247
5045
  adapterName: _$zod.ZodOptional<_$zod.ZodString>;
4248
5046
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
5047
+ currentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
5048
+ currentAdapterSessionIdState: _$zod.ZodOptional<_$zod.ZodEnum<{
5049
+ confirmed: "confirmed";
5050
+ moved: "moved";
5051
+ inherited: "inherited";
5052
+ }>>;
4249
5053
  adapterId: _$zod.ZodOptional<_$zod.ZodString>;
4250
5054
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
4251
5055
  clientAccountId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -4316,6 +5120,447 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
4316
5120
  };
4317
5121
  }>;
4318
5122
  declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubjectDefinitions<"session", {
5123
+ 'ownership.reserveStart': {
5124
+ request: _$zod.ZodObject<{
5125
+ sessionId: _$zod.ZodString;
5126
+ agentId: _$zod.ZodString;
5127
+ adapterId: _$zod.ZodString;
5128
+ adapterName: _$zod.ZodString;
5129
+ ownerInstanceId: _$zod.ZodString;
5130
+ machineId: _$zod.ZodOptional<_$zod.ZodString>;
5131
+ role: _$zod.ZodEnum<{
5132
+ lead: "lead";
5133
+ member: "member";
5134
+ }>;
5135
+ resumeProviderSessionId: _$zod.ZodNullable<_$zod.ZodString>;
5136
+ claimToken: _$zod.ZodString;
5137
+ recoveryGuard: _$zod.ZodOptional<_$zod.ZodObject<{
5138
+ expectedStatus: _$zod.ZodEnum<{
5139
+ idle: "idle";
5140
+ active: "active";
5141
+ starting: "starting";
5142
+ dead: "dead";
5143
+ disposed: "disposed";
5144
+ }>;
5145
+ expectedPreimage: _$zod.ZodObject<{
5146
+ status: _$zod.ZodEnum<{
5147
+ idle: "idle";
5148
+ active: "active";
5149
+ starting: "starting";
5150
+ dead: "dead";
5151
+ disposed: "disposed";
5152
+ }>;
5153
+ adapterId: _$zod.ZodString;
5154
+ binding: _$zod.ZodOptional<_$zod.ZodObject<{
5155
+ adapterId: _$zod.ZodString;
5156
+ ownerMachineId: _$zod.ZodString;
5157
+ ownerInstanceId: _$zod.ZodString;
5158
+ }, _$zod_v4_core0.$strip>>;
5159
+ recoveryAttemptId: _$zod.ZodOptional<_$zod.ZodString>;
5160
+ }, _$zod_v4_core0.$strip>;
5161
+ expectedRevision: _$zod.ZodNumber;
5162
+ expectedCurrencyFence: _$zod.ZodNumber;
5163
+ expectedCurrency: _$zod.ZodObject<{
5164
+ adapterSessionId: _$zod.ZodNullable<_$zod.ZodString>;
5165
+ currentAdapterSessionId: _$zod.ZodNullable<_$zod.ZodString>;
5166
+ currentAdapterSessionIdState: _$zod.ZodEnum<{
5167
+ confirmed: "confirmed";
5168
+ moved: "moved";
5169
+ inherited: "inherited";
5170
+ }>;
5171
+ }, _$zod_v4_core0.$strip>;
5172
+ ownerGeneration: _$zod.ZodNullable<_$zod.ZodObject<{
5173
+ claimId: _$zod.ZodString;
5174
+ claimToken: _$zod.ZodString;
5175
+ fence: _$zod.ZodNumber;
5176
+ ownerInstanceId: _$zod.ZodNullable<_$zod.ZodString>;
5177
+ status: _$zod.ZodEnum<{
5178
+ abandoned: "abandoned";
5179
+ held: "held";
5180
+ releasing: "releasing";
5181
+ }>;
5182
+ }, _$zod_v4_core0.$strip>>;
5183
+ }, _$zod_v4_core0.$strip>>;
5184
+ recoveryAttemptId: _$zod.ZodOptional<_$zod.ZodString>;
5185
+ expectedLeadAgentId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
5186
+ }, _$zod_v4_core0.$strip>;
5187
+ response: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
5188
+ outcome: _$zod.ZodLiteral<"reserved">;
5189
+ reservation: _$zod.ZodUnion<readonly [_$zod.ZodObject<{
5190
+ agentId: _$zod.ZodString;
5191
+ sessionId: _$zod.ZodString;
5192
+ adapterId: _$zod.ZodString;
5193
+ ownerInstanceId: _$zod.ZodString;
5194
+ leadDesignated: _$zod.ZodBoolean;
5195
+ previousLeadAgentId: _$zod.ZodNullable<_$zod.ZodString>;
5196
+ recovery: _$zod.ZodOptional<_$zod.ZodObject<{
5197
+ attemptId: _$zod.ZodString;
5198
+ preimage: _$zod.ZodObject<{
5199
+ status: _$zod.ZodEnum<{
5200
+ idle: "idle";
5201
+ active: "active";
5202
+ starting: "starting";
5203
+ dead: "dead";
5204
+ disposed: "disposed";
5205
+ }>;
5206
+ adapterId: _$zod.ZodString;
5207
+ binding: _$zod.ZodOptional<_$zod.ZodObject<{
5208
+ adapterId: _$zod.ZodString;
5209
+ ownerMachineId: _$zod.ZodString;
5210
+ ownerInstanceId: _$zod.ZodString;
5211
+ }, _$zod_v4_core0.$strip>>;
5212
+ recoveryAttemptId: _$zod.ZodOptional<_$zod.ZodString>;
5213
+ }, _$zod_v4_core0.$strip>;
5214
+ }, _$zod_v4_core0.$strip>>;
5215
+ machineId: _$zod.ZodString;
5216
+ claim: _$zod.ZodObject<{
5217
+ machineId: _$zod.ZodString;
5218
+ adapterId: _$zod.ZodString;
5219
+ providerSessionId: _$zod.ZodString;
5220
+ claimId: _$zod.ZodString;
5221
+ adapterName: _$zod.ZodString;
5222
+ sessionId: _$zod.ZodString;
5223
+ agentId: _$zod.ZodString;
5224
+ ownerInstanceId: _$zod.ZodNullable<_$zod.ZodString>;
5225
+ claimToken: _$zod.ZodString;
5226
+ fence: _$zod.ZodNumber;
5227
+ status: _$zod.ZodEnum<{
5228
+ abandoned: "abandoned";
5229
+ held: "held";
5230
+ releasing: "releasing";
5231
+ }>;
5232
+ claimedAt: _$zod.ZodNumber;
5233
+ updatedAt: _$zod.ZodNumber;
5234
+ }, _$zod_v4_core0.$strip>;
5235
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5236
+ agentId: _$zod.ZodString;
5237
+ sessionId: _$zod.ZodString;
5238
+ adapterId: _$zod.ZodString;
5239
+ ownerInstanceId: _$zod.ZodString;
5240
+ leadDesignated: _$zod.ZodBoolean;
5241
+ previousLeadAgentId: _$zod.ZodNullable<_$zod.ZodString>;
5242
+ recovery: _$zod.ZodOptional<_$zod.ZodObject<{
5243
+ attemptId: _$zod.ZodString;
5244
+ preimage: _$zod.ZodObject<{
5245
+ status: _$zod.ZodEnum<{
5246
+ idle: "idle";
5247
+ active: "active";
5248
+ starting: "starting";
5249
+ dead: "dead";
5250
+ disposed: "disposed";
5251
+ }>;
5252
+ adapterId: _$zod.ZodString;
5253
+ binding: _$zod.ZodOptional<_$zod.ZodObject<{
5254
+ adapterId: _$zod.ZodString;
5255
+ ownerMachineId: _$zod.ZodString;
5256
+ ownerInstanceId: _$zod.ZodString;
5257
+ }, _$zod_v4_core0.$strip>>;
5258
+ recoveryAttemptId: _$zod.ZodOptional<_$zod.ZodString>;
5259
+ }, _$zod_v4_core0.$strip>;
5260
+ }, _$zod_v4_core0.$strip>>;
5261
+ machineId: _$zod.ZodOptional<_$zod.ZodString>;
5262
+ claim: _$zod.ZodNull;
5263
+ }, _$zod_v4_core0.$strip>]>;
5264
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5265
+ outcome: _$zod.ZodLiteral<"occupied">;
5266
+ holder: _$zod.ZodObject<{
5267
+ machineId: _$zod.ZodString;
5268
+ adapterId: _$zod.ZodString;
5269
+ providerSessionId: _$zod.ZodString;
5270
+ claimId: _$zod.ZodString;
5271
+ adapterName: _$zod.ZodString;
5272
+ sessionId: _$zod.ZodString;
5273
+ agentId: _$zod.ZodString;
5274
+ ownerInstanceId: _$zod.ZodNullable<_$zod.ZodString>;
5275
+ claimToken: _$zod.ZodString;
5276
+ fence: _$zod.ZodNumber;
5277
+ status: _$zod.ZodEnum<{
5278
+ abandoned: "abandoned";
5279
+ held: "held";
5280
+ releasing: "releasing";
5281
+ }>;
5282
+ claimedAt: _$zod.ZodNumber;
5283
+ updatedAt: _$zod.ZodNumber;
5284
+ }, _$zod_v4_core0.$strip>;
5285
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5286
+ outcome: _$zod.ZodLiteral<"lead-conflict">;
5287
+ currentLeadAgentId: _$zod.ZodNullable<_$zod.ZodString>;
5288
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5289
+ outcome: _$zod.ZodLiteral<"agent-disposed">;
5290
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5291
+ outcome: _$zod.ZodLiteral<"session-not-active">;
5292
+ status: _$zod.ZodEnum<{
5293
+ closed: "closed";
5294
+ discovered: "discovered";
5295
+ archived: "archived";
5296
+ }>;
5297
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5298
+ outcome: _$zod.ZodLiteral<"not-found">;
5299
+ missing: _$zod.ZodEnum<{
5300
+ agent: "agent";
5301
+ session: "session";
5302
+ }>;
5303
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5304
+ outcome: _$zod.ZodLiteral<"machine-identity-unavailable">;
5305
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5306
+ outcome: _$zod.ZodLiteral<"currency-changed">;
5307
+ revision: _$zod.ZodNumber;
5308
+ currencyFence: _$zod.ZodNumber;
5309
+ currency: _$zod.ZodObject<{
5310
+ adapterSessionId: _$zod.ZodNullable<_$zod.ZodString>;
5311
+ currentAdapterSessionId: _$zod.ZodNullable<_$zod.ZodString>;
5312
+ currentAdapterSessionIdState: _$zod.ZodEnum<{
5313
+ confirmed: "confirmed";
5314
+ moved: "moved";
5315
+ inherited: "inherited";
5316
+ }>;
5317
+ }, _$zod_v4_core0.$strip>;
5318
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5319
+ outcome: _$zod.ZodLiteral<"recovery-conflict">;
5320
+ status: _$zod.ZodEnum<{
5321
+ idle: "idle";
5322
+ active: "active";
5323
+ starting: "starting";
5324
+ dead: "dead";
5325
+ disposed: "disposed";
5326
+ }>;
5327
+ ownerGeneration: _$zod.ZodNullable<_$zod.ZodObject<{
5328
+ claimId: _$zod.ZodString;
5329
+ claimToken: _$zod.ZodString;
5330
+ fence: _$zod.ZodNumber;
5331
+ ownerInstanceId: _$zod.ZodNullable<_$zod.ZodString>;
5332
+ status: _$zod.ZodEnum<{
5333
+ abandoned: "abandoned";
5334
+ held: "held";
5335
+ releasing: "releasing";
5336
+ }>;
5337
+ }, _$zod_v4_core0.$strip>>;
5338
+ }, _$zod_v4_core0.$strip>], "outcome">;
5339
+ };
5340
+ 'ownership.settleMovement': {
5341
+ request: _$zod.ZodObject<{
5342
+ sessionId: _$zod.ZodString;
5343
+ agentId: _$zod.ZodString;
5344
+ adapterId: _$zod.ZodString;
5345
+ adapterName: _$zod.ZodString;
5346
+ ownerInstanceId: _$zod.ZodString;
5347
+ machineId: _$zod.ZodOptional<_$zod.ZodString>;
5348
+ movement: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
5349
+ confirmed: _$zod.ZodLiteral<true>;
5350
+ providerSessionId: _$zod.ZodString;
5351
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5352
+ confirmed: _$zod.ZodLiteral<false>;
5353
+ }, _$zod_v4_core0.$strip>], "confirmed">;
5354
+ claimToken: _$zod.ZodOptional<_$zod.ZodString>;
5355
+ }, _$zod_v4_core0.$strip>;
5356
+ response: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
5357
+ outcome: _$zod.ZodLiteral<"settled">;
5358
+ revision: _$zod.ZodNumber;
5359
+ currency: _$zod.ZodObject<{
5360
+ adapterSessionId: _$zod.ZodNullable<_$zod.ZodString>;
5361
+ currentAdapterSessionId: _$zod.ZodNullable<_$zod.ZodString>;
5362
+ currentAdapterSessionIdState: _$zod.ZodEnum<{
5363
+ confirmed: "confirmed";
5364
+ moved: "moved";
5365
+ inherited: "inherited";
5366
+ }>;
5367
+ }, _$zod_v4_core0.$strip>;
5368
+ sessionSnapshotUpdated: _$zod.ZodBoolean;
5369
+ releasedProviderSessionIds: _$zod.ZodArray<_$zod.ZodString>;
5370
+ claim: _$zod.ZodObject<{
5371
+ machineId: _$zod.ZodString;
5372
+ adapterId: _$zod.ZodString;
5373
+ providerSessionId: _$zod.ZodString;
5374
+ claimId: _$zod.ZodString;
5375
+ adapterName: _$zod.ZodString;
5376
+ sessionId: _$zod.ZodString;
5377
+ agentId: _$zod.ZodString;
5378
+ ownerInstanceId: _$zod.ZodNullable<_$zod.ZodString>;
5379
+ claimToken: _$zod.ZodString;
5380
+ fence: _$zod.ZodNumber;
5381
+ status: _$zod.ZodEnum<{
5382
+ abandoned: "abandoned";
5383
+ held: "held";
5384
+ releasing: "releasing";
5385
+ }>;
5386
+ claimedAt: _$zod.ZodNumber;
5387
+ updatedAt: _$zod.ZodNumber;
5388
+ }, _$zod_v4_core0.$strip>;
5389
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5390
+ outcome: _$zod.ZodLiteral<"idempotent">;
5391
+ revision: _$zod.ZodNumber;
5392
+ currency: _$zod.ZodObject<{
5393
+ adapterSessionId: _$zod.ZodNullable<_$zod.ZodString>;
5394
+ currentAdapterSessionId: _$zod.ZodNullable<_$zod.ZodString>;
5395
+ currentAdapterSessionIdState: _$zod.ZodEnum<{
5396
+ confirmed: "confirmed";
5397
+ moved: "moved";
5398
+ inherited: "inherited";
5399
+ }>;
5400
+ }, _$zod_v4_core0.$strip>;
5401
+ sessionSnapshotUpdated: _$zod.ZodLiteral<false>;
5402
+ claim: _$zod.ZodNullable<_$zod.ZodObject<{
5403
+ machineId: _$zod.ZodString;
5404
+ adapterId: _$zod.ZodString;
5405
+ providerSessionId: _$zod.ZodString;
5406
+ claimId: _$zod.ZodString;
5407
+ adapterName: _$zod.ZodString;
5408
+ sessionId: _$zod.ZodString;
5409
+ agentId: _$zod.ZodString;
5410
+ ownerInstanceId: _$zod.ZodNullable<_$zod.ZodString>;
5411
+ claimToken: _$zod.ZodString;
5412
+ fence: _$zod.ZodNumber;
5413
+ status: _$zod.ZodEnum<{
5414
+ abandoned: "abandoned";
5415
+ held: "held";
5416
+ releasing: "releasing";
5417
+ }>;
5418
+ claimedAt: _$zod.ZodNumber;
5419
+ updatedAt: _$zod.ZodNumber;
5420
+ }, _$zod_v4_core0.$strip>>;
5421
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5422
+ outcome: _$zod.ZodLiteral<"already-claimed">;
5423
+ holder: _$zod.ZodObject<{
5424
+ machineId: _$zod.ZodString;
5425
+ adapterId: _$zod.ZodString;
5426
+ providerSessionId: _$zod.ZodString;
5427
+ claimId: _$zod.ZodString;
5428
+ adapterName: _$zod.ZodString;
5429
+ sessionId: _$zod.ZodString;
5430
+ agentId: _$zod.ZodString;
5431
+ ownerInstanceId: _$zod.ZodNullable<_$zod.ZodString>;
5432
+ claimToken: _$zod.ZodString;
5433
+ fence: _$zod.ZodNumber;
5434
+ status: _$zod.ZodEnum<{
5435
+ abandoned: "abandoned";
5436
+ held: "held";
5437
+ releasing: "releasing";
5438
+ }>;
5439
+ claimedAt: _$zod.ZodNumber;
5440
+ updatedAt: _$zod.ZodNumber;
5441
+ }, _$zod_v4_core0.$strip>;
5442
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5443
+ outcome: _$zod.ZodLiteral<"superseded">;
5444
+ currentFence: _$zod.ZodNumber;
5445
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5446
+ outcome: _$zod.ZodLiteral<"currency-changed">;
5447
+ revision: _$zod.ZodNumber;
5448
+ currency: _$zod.ZodObject<{
5449
+ adapterSessionId: _$zod.ZodNullable<_$zod.ZodString>;
5450
+ currentAdapterSessionId: _$zod.ZodNullable<_$zod.ZodString>;
5451
+ currentAdapterSessionIdState: _$zod.ZodEnum<{
5452
+ confirmed: "confirmed";
5453
+ moved: "moved";
5454
+ inherited: "inherited";
5455
+ }>;
5456
+ }, _$zod_v4_core0.$strip>;
5457
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5458
+ outcome: _$zod.ZodLiteral<"not-owner">;
5459
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5460
+ outcome: _$zod.ZodLiteral<"agent-disposed">;
5461
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5462
+ outcome: _$zod.ZodLiteral<"not-found">;
5463
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5464
+ outcome: _$zod.ZodLiteral<"machine-identity-unavailable">;
5465
+ }, _$zod_v4_core0.$strip>], "outcome">;
5466
+ };
5467
+ 'ownership.release': {
5468
+ request: _$zod.ZodObject<{
5469
+ agentId: _$zod.ZodString;
5470
+ claimToken: _$zod.ZodOptional<_$zod.ZodString>;
5471
+ disposition: _$zod.ZodEnum<{
5472
+ released: "released";
5473
+ abandoned: "abandoned";
5474
+ releasing: "releasing";
5475
+ }>;
5476
+ }, _$zod_v4_core0.$strip>;
5477
+ response: _$zod.ZodObject<{
5478
+ releasedProviderSessionIds: _$zod.ZodArray<_$zod.ZodString>;
5479
+ markedClaims: _$zod.ZodArray<_$zod.ZodObject<{
5480
+ machineId: _$zod.ZodString;
5481
+ adapterId: _$zod.ZodString;
5482
+ providerSessionId: _$zod.ZodString;
5483
+ claimId: _$zod.ZodString;
5484
+ adapterName: _$zod.ZodString;
5485
+ sessionId: _$zod.ZodString;
5486
+ agentId: _$zod.ZodString;
5487
+ ownerInstanceId: _$zod.ZodNullable<_$zod.ZodString>;
5488
+ claimToken: _$zod.ZodString;
5489
+ fence: _$zod.ZodNumber;
5490
+ status: _$zod.ZodEnum<{
5491
+ abandoned: "abandoned";
5492
+ held: "held";
5493
+ releasing: "releasing";
5494
+ }>;
5495
+ claimedAt: _$zod.ZodNumber;
5496
+ updatedAt: _$zod.ZodNumber;
5497
+ }, _$zod_v4_core0.$strip>>;
5498
+ claimTokenNotFound: _$zod.ZodBoolean;
5499
+ }, _$zod_v4_core0.$strip>;
5500
+ };
5501
+ 'ownership.reconcile': {
5502
+ request: _$zod.ZodObject<{}, _$zod_v4_core0.$strip>;
5503
+ response: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
5504
+ outcome: _$zod.ZodLiteral<"reconciled">;
5505
+ machineId: _$zod.ZodString;
5506
+ claims: _$zod.ZodArray<_$zod.ZodObject<{
5507
+ claim: _$zod.ZodObject<{
5508
+ machineId: _$zod.ZodString;
5509
+ adapterId: _$zod.ZodString;
5510
+ providerSessionId: _$zod.ZodString;
5511
+ claimId: _$zod.ZodString;
5512
+ adapterName: _$zod.ZodString;
5513
+ sessionId: _$zod.ZodString;
5514
+ agentId: _$zod.ZodString;
5515
+ ownerInstanceId: _$zod.ZodNullable<_$zod.ZodString>;
5516
+ claimToken: _$zod.ZodString;
5517
+ fence: _$zod.ZodNumber;
5518
+ status: _$zod.ZodEnum<{
5519
+ abandoned: "abandoned";
5520
+ held: "held";
5521
+ releasing: "releasing";
5522
+ }>;
5523
+ claimedAt: _$zod.ZodNumber;
5524
+ updatedAt: _$zod.ZodNumber;
5525
+ }, _$zod_v4_core0.$strip>;
5526
+ verdict: _$zod.ZodEnum<{
5527
+ abandoned: "abandoned";
5528
+ retained: "retained";
5529
+ vanished: "vanished";
5530
+ }>;
5531
+ reason: _$zod.ZodOptional<_$zod.ZodEnum<{
5532
+ "agent-disposed": "agent-disposed";
5533
+ "agent-gone": "agent-gone";
5534
+ "adapter-instance-gone": "adapter-instance-gone";
5535
+ "owner-instance-retired": "owner-instance-retired";
5536
+ }>>;
5537
+ }, _$zod_v4_core0.$strip>>;
5538
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5539
+ outcome: _$zod.ZodLiteral<"skipped">;
5540
+ reason: _$zod.ZodLiteral<"machine-identity-unavailable">;
5541
+ }, _$zod_v4_core0.$strip>], "outcome">;
5542
+ };
5543
+ 'ownership.continuation': {
5544
+ request: _$zod.ZodObject<{
5545
+ sessionId: _$zod.ZodString;
5546
+ startMode: _$zod.ZodEnum<{
5547
+ resume: "resume";
5548
+ compact: "compact";
5549
+ }>;
5550
+ }, _$zod_v4_core0.$strip>;
5551
+ response: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
5552
+ outcome: _$zod.ZodLiteral<"reopened">;
5553
+ sessionId: _$zod.ZodString;
5554
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5555
+ outcome: _$zod.ZodLiteral<"unchanged">;
5556
+ sessionId: _$zod.ZodString;
5557
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5558
+ outcome: _$zod.ZodLiteral<"not-found">;
5559
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5560
+ outcome: _$zod.ZodLiteral<"unresolved">;
5561
+ sessionId: _$zod.ZodString;
5562
+ }, _$zod_v4_core0.$strip>], "outcome">;
5563
+ };
4319
5564
  enrichContext: {
4320
5565
  request: _$zod.ZodObject<{
4321
5566
  sessionId: _$zod.ZodString;
@@ -4404,9 +5649,9 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
4404
5649
  description: _$zod.ZodOptional<_$zod.ZodString>;
4405
5650
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
4406
5651
  exposureMode: _$zod.ZodEnum<{
4407
- hidden: "hidden";
4408
5652
  direct: "direct";
4409
5653
  discovery: "discovery";
5654
+ hidden: "hidden";
4410
5655
  }>;
4411
5656
  enabled: _$zod.ZodBoolean;
4412
5657
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -4423,9 +5668,9 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
4423
5668
  description: _$zod.ZodOptional<_$zod.ZodString>;
4424
5669
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
4425
5670
  exposureMode: _$zod.ZodEnum<{
4426
- hidden: "hidden";
4427
5671
  direct: "direct";
4428
5672
  discovery: "discovery";
5673
+ hidden: "hidden";
4429
5674
  }>;
4430
5675
  enabled: _$zod.ZodBoolean;
4431
5676
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -4660,9 +5905,9 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
4660
5905
  description: _$zod.ZodOptional<_$zod.ZodString>;
4661
5906
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
4662
5907
  exposureMode: _$zod.ZodEnum<{
4663
- hidden: "hidden";
4664
5908
  direct: "direct";
4665
5909
  discovery: "discovery";
5910
+ hidden: "hidden";
4666
5911
  }>;
4667
5912
  enabled: _$zod.ZodBoolean;
4668
5913
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -4679,9 +5924,9 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
4679
5924
  description: _$zod.ZodOptional<_$zod.ZodString>;
4680
5925
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
4681
5926
  exposureMode: _$zod.ZodEnum<{
4682
- hidden: "hidden";
4683
5927
  direct: "direct";
4684
5928
  discovery: "discovery";
5929
+ hidden: "hidden";
4685
5930
  }>;
4686
5931
  enabled: _$zod.ZodBoolean;
4687
5932
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -4697,6 +5942,7 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
4697
5942
  kind: _$zod.ZodLiteral<"adapter">;
4698
5943
  adapterName: _$zod.ZodOptional<_$zod.ZodString>;
4699
5944
  adapterId: _$zod.ZodOptional<_$zod.ZodString>;
5945
+ machineId: _$zod.ZodOptional<_$zod.ZodString>;
4700
5946
  }, _$zod_v4_core0.$loose>, _$zod.ZodObject<{
4701
5947
  providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
4702
5948
  reasoningEffort: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -4763,9 +6009,9 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
4763
6009
  description: _$zod.ZodOptional<_$zod.ZodString>;
4764
6010
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
4765
6011
  exposureMode: _$zod.ZodEnum<{
4766
- hidden: "hidden";
4767
6012
  direct: "direct";
4768
6013
  discovery: "discovery";
6014
+ hidden: "hidden";
4769
6015
  }>;
4770
6016
  enabled: _$zod.ZodBoolean;
4771
6017
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -4782,9 +6028,9 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
4782
6028
  description: _$zod.ZodOptional<_$zod.ZodString>;
4783
6029
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
4784
6030
  exposureMode: _$zod.ZodEnum<{
4785
- hidden: "hidden";
4786
6031
  direct: "direct";
4787
6032
  discovery: "discovery";
6033
+ hidden: "hidden";
4788
6034
  }>;
4789
6035
  enabled: _$zod.ZodBoolean;
4790
6036
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -4866,9 +6112,9 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
4866
6112
  description: _$zod.ZodOptional<_$zod.ZodString>;
4867
6113
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
4868
6114
  exposureMode: _$zod.ZodEnum<{
4869
- hidden: "hidden";
4870
6115
  direct: "direct";
4871
6116
  discovery: "discovery";
6117
+ hidden: "hidden";
4872
6118
  }>;
4873
6119
  enabled: _$zod.ZodBoolean;
4874
6120
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -4885,9 +6131,9 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
4885
6131
  description: _$zod.ZodOptional<_$zod.ZodString>;
4886
6132
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
4887
6133
  exposureMode: _$zod.ZodEnum<{
4888
- hidden: "hidden";
4889
6134
  direct: "direct";
4890
6135
  discovery: "discovery";
6136
+ hidden: "hidden";
4891
6137
  }>;
4892
6138
  enabled: _$zod.ZodBoolean;
4893
6139
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -4992,123 +6238,331 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
4992
6238
  data: _$zod.ZodString;
4993
6239
  mimeType: _$zod.ZodString;
4994
6240
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
4995
- type: _$zod.ZodLiteral<"url">;
6241
+ type: _$zod.ZodLiteral<"url">;
6242
+ url: _$zod.ZodString;
6243
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
6244
+ }, _$zod_v4_core0.$strip>], "type">;
6245
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
6246
+ type: _$zod.ZodLiteral<"attachment">;
6247
+ fileName: _$zod.ZodString;
6248
+ filePath: _$zod.ZodString;
6249
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
6250
+ type: _$zod.ZodLiteral<"base64">;
6251
+ data: _$zod.ZodString;
6252
+ mimeType: _$zod.ZodString;
6253
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
6254
+ type: _$zod.ZodLiteral<"url">;
6255
+ url: _$zod.ZodString;
6256
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
6257
+ }, _$zod_v4_core0.$strip>], "type">;
6258
+ displayName: _$zod.ZodOptional<_$zod.ZodString>;
6259
+ attachmentType: _$zod.ZodEnum<{
6260
+ file: "file";
6261
+ directory: "directory";
6262
+ }>;
6263
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
6264
+ type: _$zod.ZodLiteral<"reasoning">;
6265
+ content: _$zod.ZodString;
6266
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
6267
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
6268
+ type: _$zod.ZodLiteral<"tool_call">;
6269
+ toolCallId: _$zod.ZodString;
6270
+ name: _$zod.ZodString;
6271
+ args: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
6272
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
6273
+ type: _$zod.ZodLiteral<"tool_output">;
6274
+ toolCallId: _$zod.ZodString;
6275
+ output: _$zod.ZodString;
6276
+ isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
6277
+ }, _$zod_v4_core0.$strip>], "type">>]>;
6278
+ }, _$zod_v4_core0.$strip>>>;
6279
+ hasNewTransforms: _$zod.ZodOptional<_$zod.ZodBoolean>;
6280
+ hasCompression: _$zod.ZodOptional<_$zod.ZodBoolean>;
6281
+ extractedContext: _$zod.ZodOptional<_$zod.ZodUnknown>;
6282
+ isFirstTurn: _$zod.ZodOptional<_$zod.ZodBoolean>;
6283
+ hasConnectorSwap: _$zod.ZodOptional<_$zod.ZodBoolean>;
6284
+ cacheStrategy: _$zod.ZodOptional<_$zod.ZodEnum<{
6285
+ auto: "auto";
6286
+ systemPrompt: "systemPrompt";
6287
+ fullPrefix: "fullPrefix";
6288
+ }>>;
6289
+ turnContext: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, _$zod_v4_core0.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>>>;
6290
+ requestCorrelation: _$zod.ZodOptional<_$zod.ZodObject<{
6291
+ sessionId: _$zod.ZodOptional<_$zod.ZodString>;
6292
+ turnId: _$zod.ZodOptional<_$zod.ZodString>;
6293
+ messageId: _$zod.ZodOptional<_$zod.ZodString>;
6294
+ executionId: _$zod.ZodOptional<_$zod.ZodString>;
6295
+ frameId: _$zod.ZodOptional<_$zod.ZodString>;
6296
+ }, _$zod_v4_core0.$strict>>;
6297
+ nativeLocality: _$zod.ZodOptional<_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
6298
+ kind: _$zod.ZodLiteral<"native">;
6299
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
6300
+ kind: _$zod.ZodLiteral<"degrade">;
6301
+ reason: _$zod.ZodEnum<{
6302
+ "adapter-unsupported": "adapter-unsupported";
6303
+ "adapter-mismatch": "adapter-mismatch";
6304
+ "no-adapter-session": "no-adapter-session";
6305
+ "missing-machine-id": "missing-machine-id";
6306
+ "machine-mismatch": "machine-mismatch";
6307
+ "cwd-mismatch": "cwd-mismatch";
6308
+ "transforms-present": "transforms-present";
6309
+ "compression-present": "compression-present";
6310
+ "connector-swap": "connector-swap";
6311
+ "mid-history-unsupported": "mid-history-unsupported";
6312
+ "hybrid-imported-orchestrated": "hybrid-imported-orchestrated";
6313
+ "native-attempt-failed": "native-attempt-failed";
6314
+ "agent-already-started": "agent-already-started";
6315
+ "fork-point-unresolvable": "fork-point-unresolvable";
6316
+ "adapter-session-moved": "adapter-session-moved";
6317
+ }>;
6318
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
6319
+ kind: _$zod.ZodLiteral<"foreign">;
6320
+ machineId: _$zod.ZodString;
6321
+ }, _$zod_v4_core0.$strip>], "kind">>;
6322
+ nativeFork: _$zod.ZodOptional<_$zod.ZodObject<{
6323
+ sourceSessionId: _$zod.ZodString;
6324
+ sourceAdapterSessionId: _$zod.ZodString;
6325
+ forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
6326
+ targetWorkingDirectory: _$zod.ZodOptional<_$zod.ZodString>;
6327
+ }, _$zod_v4_core0.$strip>>;
6328
+ }, _$zod_v4_core0.$strip>>;
6329
+ responseSchema: _$zod.ZodOptional<_$zod.ZodObject<{
6330
+ 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>>>;
6331
+ name: _$zod.ZodOptional<_$zod.ZodString>;
6332
+ strict: _$zod.ZodOptional<_$zod.ZodBoolean>;
6333
+ }, _$zod_v4_core0.$strict>>;
6334
+ source: _$zod.ZodOptional<_$zod.ZodEnum<{
6335
+ user: "user";
6336
+ system: "system";
6337
+ extension: "extension";
6338
+ }>>;
6339
+ extensionId: _$zod.ZodOptional<_$zod.ZodString>;
6340
+ originWindowId: _$zod.ZodOptional<_$zod.ZodString>;
6341
+ skipConnectorSwapWarning: _$zod.ZodOptional<_$zod.ZodBoolean>;
6342
+ origin: _$zod.ZodOptional<_$zod.ZodEnum<{
6343
+ text: "text";
6344
+ compact: "compact";
6345
+ voice: "voice";
6346
+ }>>;
6347
+ }, _$zod_v4_core0.$strip>;
6348
+ response: _$zod.ZodObject<{
6349
+ messageId: _$zod.ZodString;
6350
+ turnId: _$zod.ZodString;
6351
+ sessionId: _$zod.ZodString;
6352
+ deferredAgentIds: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
6353
+ }, _$zod_v4_core0.$strip>;
6354
+ };
6355
+ 'agent.attach': {
6356
+ request: _$zod.ZodObject<{
6357
+ sessionId: _$zod.ZodString;
6358
+ agent: _$zod.ZodUnion<readonly [_$zod.ZodObject<{
6359
+ providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
6360
+ model: _$zod.ZodOptional<_$zod.ZodString>;
6361
+ reasoningEffort: _$zod.ZodOptional<_$zod.ZodEnum<{
6362
+ none: "none";
6363
+ low: "low";
6364
+ medium: "medium";
6365
+ high: "high";
6366
+ "extra-high": "extra-high";
6367
+ }>>;
6368
+ cwd: _$zod.ZodOptional<_$zod.ZodString>;
6369
+ systemPrompt: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
6370
+ mode: _$zod.ZodLiteral<"append">;
6371
+ content: _$zod.ZodString;
6372
+ }, _$zod_v4_core0.$strip>]>>;
6373
+ allowedTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
6374
+ disallowedTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
6375
+ env: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
6376
+ mcpSessionContext: _$zod.ZodOptional<_$zod.ZodObject<{
6377
+ sessionId: _$zod.ZodString;
6378
+ servers: _$zod.ZodArray<_$zod.ZodObject<{
6379
+ name: _$zod.ZodString;
6380
+ transport: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
6381
+ type: _$zod.ZodLiteral<"stdio">;
6382
+ command: _$zod.ZodString;
6383
+ args: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
6384
+ env: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
6385
+ alwaysLoad: _$zod.ZodOptional<_$zod.ZodBoolean>;
6386
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
6387
+ url: _$zod.ZodString;
6388
+ headers: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
6389
+ tools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
6390
+ name: _$zod.ZodString;
6391
+ permission_policy: _$zod.ZodEnum<{
6392
+ always_allow: "always_allow";
6393
+ always_ask: "always_ask";
6394
+ always_deny: "always_deny";
6395
+ }>;
6396
+ }, _$zod_v4_core0.$strip>>>;
6397
+ alwaysLoad: _$zod.ZodOptional<_$zod.ZodBoolean>;
6398
+ type: _$zod.ZodLiteral<"sse">;
6399
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
6400
+ url: _$zod.ZodString;
6401
+ headers: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
6402
+ tools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
6403
+ name: _$zod.ZodString;
6404
+ permission_policy: _$zod.ZodEnum<{
6405
+ always_allow: "always_allow";
6406
+ always_ask: "always_ask";
6407
+ always_deny: "always_deny";
6408
+ }>;
6409
+ }, _$zod_v4_core0.$strip>>>;
6410
+ alwaysLoad: _$zod.ZodOptional<_$zod.ZodBoolean>;
6411
+ type: _$zod.ZodLiteral<"http">;
6412
+ }, _$zod_v4_core0.$strip>], "type">;
6413
+ exposureMode: _$zod.ZodEnum<{
6414
+ direct: "direct";
6415
+ discovery: "discovery";
6416
+ }>;
6417
+ }, _$zod_v4_core0.$strip>>;
6418
+ directTools: _$zod.ZodArray<_$zod.ZodObject<{
6419
+ fullName: _$zod.ZodString;
6420
+ originalName: _$zod.ZodString;
6421
+ serverName: _$zod.ZodString;
6422
+ description: _$zod.ZodOptional<_$zod.ZodString>;
6423
+ inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
6424
+ exposureMode: _$zod.ZodEnum<{
6425
+ direct: "direct";
6426
+ discovery: "discovery";
6427
+ hidden: "hidden";
6428
+ }>;
6429
+ enabled: _$zod.ZodBoolean;
6430
+ enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
6431
+ discovery: "discovery";
6432
+ toolset: "toolset";
6433
+ }>>;
6434
+ enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
6435
+ exposed: _$zod.ZodBoolean;
6436
+ }, _$zod_v4_core0.$strip>>;
6437
+ discoverableTools: _$zod.ZodArray<_$zod.ZodObject<{
6438
+ fullName: _$zod.ZodString;
6439
+ originalName: _$zod.ZodString;
6440
+ serverName: _$zod.ZodString;
6441
+ description: _$zod.ZodOptional<_$zod.ZodString>;
6442
+ inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
6443
+ exposureMode: _$zod.ZodEnum<{
6444
+ direct: "direct";
6445
+ discovery: "discovery";
6446
+ hidden: "hidden";
6447
+ }>;
6448
+ enabled: _$zod.ZodBoolean;
6449
+ enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
6450
+ discovery: "discovery";
6451
+ toolset: "toolset";
6452
+ }>>;
6453
+ enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
6454
+ exposed: _$zod.ZodBoolean;
6455
+ }, _$zod_v4_core0.$strip>>;
6456
+ }, _$zod_v4_core0.$strip>>;
6457
+ allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
6458
+ adapterConfig: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
6459
+ kind: _$zod.ZodLiteral<"adapter">;
6460
+ adapterName: _$zod.ZodOptional<_$zod.ZodString>;
6461
+ adapterId: _$zod.ZodOptional<_$zod.ZodString>;
6462
+ machineId: _$zod.ZodOptional<_$zod.ZodString>;
6463
+ }, _$zod_v4_core0.$loose>, _$zod.ZodObject<{
6464
+ providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
6465
+ reasoningEffort: _$zod.ZodOptional<_$zod.ZodEnum<{
6466
+ none: "none";
6467
+ low: "low";
6468
+ medium: "medium";
6469
+ high: "high";
6470
+ "extra-high": "extra-high";
6471
+ }>>;
6472
+ cwd: _$zod.ZodOptional<_$zod.ZodString>;
6473
+ systemPrompt: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
6474
+ mode: _$zod.ZodLiteral<"append">;
6475
+ content: _$zod.ZodString;
6476
+ }, _$zod_v4_core0.$strip>]>>;
6477
+ allowedTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
6478
+ disallowedTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
6479
+ env: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
6480
+ mcpSessionContext: _$zod.ZodOptional<_$zod.ZodObject<{
6481
+ sessionId: _$zod.ZodString;
6482
+ servers: _$zod.ZodArray<_$zod.ZodObject<{
6483
+ name: _$zod.ZodString;
6484
+ transport: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
6485
+ type: _$zod.ZodLiteral<"stdio">;
6486
+ command: _$zod.ZodString;
6487
+ args: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
6488
+ env: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
6489
+ alwaysLoad: _$zod.ZodOptional<_$zod.ZodBoolean>;
6490
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
4996
6491
  url: _$zod.ZodString;
4997
- mimeType: _$zod.ZodOptional<_$zod.ZodString>;
4998
- }, _$zod_v4_core0.$strip>], "type">;
4999
- }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5000
- type: _$zod.ZodLiteral<"attachment">;
5001
- fileName: _$zod.ZodString;
5002
- filePath: _$zod.ZodString;
5003
- source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
5004
- type: _$zod.ZodLiteral<"base64">;
5005
- data: _$zod.ZodString;
5006
- mimeType: _$zod.ZodString;
6492
+ headers: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
6493
+ tools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
6494
+ name: _$zod.ZodString;
6495
+ permission_policy: _$zod.ZodEnum<{
6496
+ always_allow: "always_allow";
6497
+ always_ask: "always_ask";
6498
+ always_deny: "always_deny";
6499
+ }>;
6500
+ }, _$zod_v4_core0.$strip>>>;
6501
+ alwaysLoad: _$zod.ZodOptional<_$zod.ZodBoolean>;
6502
+ type: _$zod.ZodLiteral<"sse">;
5007
6503
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5008
- type: _$zod.ZodLiteral<"url">;
5009
6504
  url: _$zod.ZodString;
5010
- mimeType: _$zod.ZodOptional<_$zod.ZodString>;
6505
+ headers: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
6506
+ tools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
6507
+ name: _$zod.ZodString;
6508
+ permission_policy: _$zod.ZodEnum<{
6509
+ always_allow: "always_allow";
6510
+ always_ask: "always_ask";
6511
+ always_deny: "always_deny";
6512
+ }>;
6513
+ }, _$zod_v4_core0.$strip>>>;
6514
+ alwaysLoad: _$zod.ZodOptional<_$zod.ZodBoolean>;
6515
+ type: _$zod.ZodLiteral<"http">;
5011
6516
  }, _$zod_v4_core0.$strip>], "type">;
5012
- displayName: _$zod.ZodOptional<_$zod.ZodString>;
5013
- attachmentType: _$zod.ZodEnum<{
5014
- file: "file";
5015
- directory: "directory";
6517
+ exposureMode: _$zod.ZodEnum<{
6518
+ direct: "direct";
6519
+ discovery: "discovery";
5016
6520
  }>;
5017
- }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5018
- type: _$zod.ZodLiteral<"reasoning">;
5019
- content: _$zod.ZodString;
5020
- metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
5021
- }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5022
- type: _$zod.ZodLiteral<"tool_call">;
5023
- toolCallId: _$zod.ZodString;
5024
- name: _$zod.ZodString;
5025
- args: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
5026
- }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5027
- type: _$zod.ZodLiteral<"tool_output">;
5028
- toolCallId: _$zod.ZodString;
5029
- output: _$zod.ZodString;
5030
- isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
5031
- }, _$zod_v4_core0.$strip>], "type">>]>;
5032
- }, _$zod_v4_core0.$strip>>>;
5033
- hasNewTransforms: _$zod.ZodOptional<_$zod.ZodBoolean>;
5034
- hasCompression: _$zod.ZodOptional<_$zod.ZodBoolean>;
5035
- extractedContext: _$zod.ZodOptional<_$zod.ZodUnknown>;
5036
- isFirstTurn: _$zod.ZodOptional<_$zod.ZodBoolean>;
5037
- hasConnectorSwap: _$zod.ZodOptional<_$zod.ZodBoolean>;
5038
- cacheStrategy: _$zod.ZodOptional<_$zod.ZodEnum<{
5039
- auto: "auto";
5040
- systemPrompt: "systemPrompt";
5041
- fullPrefix: "fullPrefix";
5042
- }>>;
5043
- turnContext: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodType<_$_makaio_contracts0.JsonValue, unknown, _$zod_v4_core0.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
5044
- requestCorrelation: _$zod.ZodOptional<_$zod.ZodObject<{
5045
- sessionId: _$zod.ZodOptional<_$zod.ZodString>;
5046
- turnId: _$zod.ZodOptional<_$zod.ZodString>;
5047
- messageId: _$zod.ZodOptional<_$zod.ZodString>;
5048
- executionId: _$zod.ZodOptional<_$zod.ZodString>;
5049
- frameId: _$zod.ZodOptional<_$zod.ZodString>;
5050
- }, _$zod_v4_core0.$strict>>;
5051
- nativeLocality: _$zod.ZodOptional<_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
5052
- kind: _$zod.ZodLiteral<"native">;
5053
- }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5054
- kind: _$zod.ZodLiteral<"degrade">;
5055
- reason: _$zod.ZodEnum<{
5056
- "adapter-unsupported": "adapter-unsupported";
5057
- "adapter-mismatch": "adapter-mismatch";
5058
- "no-adapter-session": "no-adapter-session";
5059
- "missing-machine-id": "missing-machine-id";
5060
- "machine-mismatch": "machine-mismatch";
5061
- "cwd-mismatch": "cwd-mismatch";
5062
- "transforms-present": "transforms-present";
5063
- "compression-present": "compression-present";
5064
- "connector-swap": "connector-swap";
5065
- "mid-history-unsupported": "mid-history-unsupported";
5066
- "hybrid-imported-orchestrated": "hybrid-imported-orchestrated";
5067
- "native-attempt-failed": "native-attempt-failed";
5068
- "agent-already-started": "agent-already-started";
5069
- "fork-point-unresolvable": "fork-point-unresolvable";
5070
- }>;
5071
- }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5072
- kind: _$zod.ZodLiteral<"foreign">;
5073
- machineId: _$zod.ZodString;
5074
- }, _$zod_v4_core0.$strip>], "kind">>;
5075
- nativeFork: _$zod.ZodOptional<_$zod.ZodObject<{
5076
- sourceSessionId: _$zod.ZodString;
5077
- sourceAdapterSessionId: _$zod.ZodString;
5078
- forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
5079
- targetWorkingDirectory: _$zod.ZodOptional<_$zod.ZodString>;
6521
+ }, _$zod_v4_core0.$strip>>;
6522
+ directTools: _$zod.ZodArray<_$zod.ZodObject<{
6523
+ fullName: _$zod.ZodString;
6524
+ originalName: _$zod.ZodString;
6525
+ serverName: _$zod.ZodString;
6526
+ description: _$zod.ZodOptional<_$zod.ZodString>;
6527
+ inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
6528
+ exposureMode: _$zod.ZodEnum<{
6529
+ direct: "direct";
6530
+ discovery: "discovery";
6531
+ hidden: "hidden";
6532
+ }>;
6533
+ enabled: _$zod.ZodBoolean;
6534
+ enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
6535
+ discovery: "discovery";
6536
+ toolset: "toolset";
6537
+ }>>;
6538
+ enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
6539
+ exposed: _$zod.ZodBoolean;
6540
+ }, _$zod_v4_core0.$strip>>;
6541
+ discoverableTools: _$zod.ZodArray<_$zod.ZodObject<{
6542
+ fullName: _$zod.ZodString;
6543
+ originalName: _$zod.ZodString;
6544
+ serverName: _$zod.ZodString;
6545
+ description: _$zod.ZodOptional<_$zod.ZodString>;
6546
+ inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
6547
+ exposureMode: _$zod.ZodEnum<{
6548
+ direct: "direct";
6549
+ discovery: "discovery";
6550
+ hidden: "hidden";
6551
+ }>;
6552
+ enabled: _$zod.ZodBoolean;
6553
+ enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
6554
+ discovery: "discovery";
6555
+ toolset: "toolset";
6556
+ }>>;
6557
+ enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
6558
+ exposed: _$zod.ZodBoolean;
6559
+ }, _$zod_v4_core0.$strip>>;
5080
6560
  }, _$zod_v4_core0.$strip>>;
5081
- }, _$zod_v4_core0.$strip>>;
5082
- responseSchema: _$zod.ZodOptional<_$zod.ZodObject<{
5083
- 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>>>;
5084
- name: _$zod.ZodOptional<_$zod.ZodString>;
5085
- strict: _$zod.ZodOptional<_$zod.ZodBoolean>;
5086
- }, _$zod_v4_core0.$strict>>;
5087
- source: _$zod.ZodOptional<_$zod.ZodEnum<{
5088
- user: "user";
5089
- system: "system";
5090
- extension: "extension";
5091
- }>>;
5092
- extensionId: _$zod.ZodOptional<_$zod.ZodString>;
5093
- originWindowId: _$zod.ZodOptional<_$zod.ZodString>;
5094
- skipConnectorSwapWarning: _$zod.ZodOptional<_$zod.ZodBoolean>;
5095
- origin: _$zod.ZodOptional<_$zod.ZodEnum<{
5096
- text: "text";
5097
- voice: "voice";
5098
- compact: "compact";
5099
- }>>;
5100
- }, _$zod_v4_core0.$strip>;
5101
- response: _$zod.ZodObject<{
5102
- messageId: _$zod.ZodString;
5103
- turnId: _$zod.ZodString;
5104
- sessionId: _$zod.ZodString;
5105
- }, _$zod_v4_core0.$strip>;
5106
- };
5107
- 'agent.attach': {
5108
- request: _$zod.ZodObject<{
5109
- sessionId: _$zod.ZodString;
5110
- agent: _$zod.ZodObject<{
5111
- kind: _$zod.ZodString;
6561
+ allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
6562
+ adapterConfig: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
6563
+ kind: _$zod.ZodLiteral<"canonical-model">;
6564
+ model: _$zod.ZodString;
6565
+ }, _$zod_v4_core0.$loose>, _$zod.ZodObject<{
5112
6566
  providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
5113
6567
  model: _$zod.ZodOptional<_$zod.ZodString>;
5114
6568
  reasoningEffort: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -5175,9 +6629,9 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
5175
6629
  description: _$zod.ZodOptional<_$zod.ZodString>;
5176
6630
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
5177
6631
  exposureMode: _$zod.ZodEnum<{
5178
- hidden: "hidden";
5179
6632
  direct: "direct";
5180
6633
  discovery: "discovery";
6634
+ hidden: "hidden";
5181
6635
  }>;
5182
6636
  enabled: _$zod.ZodBoolean;
5183
6637
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -5194,9 +6648,9 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
5194
6648
  description: _$zod.ZodOptional<_$zod.ZodString>;
5195
6649
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
5196
6650
  exposureMode: _$zod.ZodEnum<{
5197
- hidden: "hidden";
5198
6651
  direct: "direct";
5199
6652
  discovery: "discovery";
6653
+ hidden: "hidden";
5200
6654
  }>;
5201
6655
  enabled: _$zod.ZodBoolean;
5202
6656
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -5209,7 +6663,8 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
5209
6663
  }, _$zod_v4_core0.$strip>>;
5210
6664
  allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
5211
6665
  adapterConfig: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
5212
- }, _$zod_v4_core0.$loose>;
6666
+ kind: _$zod.ZodString;
6667
+ }, _$zod_v4_core0.$loose>]>;
5213
6668
  initialMessage: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
5214
6669
  role: _$zod.ZodOptional<_$zod.ZodEnum<{
5215
6670
  user: "user";
@@ -5429,9 +6884,9 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
5429
6884
  description: _$zod.ZodOptional<_$zod.ZodString>;
5430
6885
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
5431
6886
  exposureMode: _$zod.ZodEnum<{
5432
- hidden: "hidden";
5433
6887
  direct: "direct";
5434
6888
  discovery: "discovery";
6889
+ hidden: "hidden";
5435
6890
  }>;
5436
6891
  enabled: _$zod.ZodBoolean;
5437
6892
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -5448,9 +6903,9 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
5448
6903
  description: _$zod.ZodOptional<_$zod.ZodString>;
5449
6904
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
5450
6905
  exposureMode: _$zod.ZodEnum<{
5451
- hidden: "hidden";
5452
6906
  direct: "direct";
5453
6907
  discovery: "discovery";
6908
+ hidden: "hidden";
5454
6909
  }>;
5455
6910
  enabled: _$zod.ZodBoolean;
5456
6911
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -5466,6 +6921,7 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
5466
6921
  kind: _$zod.ZodLiteral<"adapter">;
5467
6922
  adapterName: _$zod.ZodOptional<_$zod.ZodString>;
5468
6923
  adapterId: _$zod.ZodOptional<_$zod.ZodString>;
6924
+ machineId: _$zod.ZodOptional<_$zod.ZodString>;
5469
6925
  providerContext: _$zod.ZodOptional<_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
5470
6926
  state: _$zod.ZodLiteral<"resolved">;
5471
6927
  providerConfigId: _$zod.ZodString;
@@ -5929,8 +7385,8 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
5929
7385
  }>>;
5930
7386
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
5931
7387
  text: "text";
5932
- voice: "voice";
5933
7388
  compact: "compact";
7389
+ voice: "voice";
5934
7390
  }>>;
5935
7391
  }, _$zod_v4_core0.$strip>;
5936
7392
  'user_message.acknowledged': _$zod.ZodObject<{
@@ -6202,7 +7658,20 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
6202
7658
  adapterId: _$zod.ZodString;
6203
7659
  adapterName: _$zod.ZodString;
6204
7660
  sessionId: _$zod.ZodString;
7661
+ runtimeOwner: _$zod.ZodOptional<_$zod.ZodObject<{
7662
+ machineId: _$zod.ZodString;
7663
+ instanceId: _$zod.ZodString;
7664
+ }, _$zod_v4_core0.$strip>>;
7665
+ recoveryAttemptId: _$zod.ZodOptional<_$zod.ZodString>;
6205
7666
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
7667
+ currentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
7668
+ currentAdapterSessionIdState: _$zod.ZodOptional<_$zod.ZodEnum<{
7669
+ confirmed: "confirmed";
7670
+ moved: "moved";
7671
+ inherited: "inherited";
7672
+ }>>;
7673
+ revision: _$zod.ZodOptional<_$zod.ZodNumber>;
7674
+ currencyFence: _$zod.ZodOptional<_$zod.ZodNumber>;
6206
7675
  model: _$zod.ZodOptional<_$zod.ZodString>;
6207
7676
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
6208
7677
  allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
@@ -6223,6 +7692,7 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
6223
7692
  status: _$zod.ZodEnum<{
6224
7693
  idle: "idle";
6225
7694
  active: "active";
7695
+ starting: "starting";
6226
7696
  dead: "dead";
6227
7697
  disposed: "disposed";
6228
7698
  }>;
@@ -6230,8 +7700,8 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
6230
7700
  lastActivityAt: _$zod.ZodNumber;
6231
7701
  }, _$zod_v4_core0.$strip>>;
6232
7702
  status: _$zod.ZodEnum<{
6233
- discovered: "discovered";
6234
7703
  closed: "closed";
7704
+ discovered: "discovered";
6235
7705
  active: "active";
6236
7706
  archived: "archived";
6237
7707
  }>;
@@ -6254,6 +7724,12 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
6254
7724
  }>>;
6255
7725
  adapterName: _$zod.ZodOptional<_$zod.ZodString>;
6256
7726
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
7727
+ currentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
7728
+ currentAdapterSessionIdState: _$zod.ZodOptional<_$zod.ZodEnum<{
7729
+ confirmed: "confirmed";
7730
+ moved: "moved";
7731
+ inherited: "inherited";
7732
+ }>>;
6257
7733
  adapterId: _$zod.ZodOptional<_$zod.ZodString>;
6258
7734
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
6259
7735
  clientAccountId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -6315,7 +7791,20 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
6315
7791
  adapterId: _$zod.ZodString;
6316
7792
  adapterName: _$zod.ZodString;
6317
7793
  sessionId: _$zod.ZodString;
7794
+ runtimeOwner: _$zod.ZodOptional<_$zod.ZodObject<{
7795
+ machineId: _$zod.ZodString;
7796
+ instanceId: _$zod.ZodString;
7797
+ }, _$zod_v4_core0.$strip>>;
7798
+ recoveryAttemptId: _$zod.ZodOptional<_$zod.ZodString>;
6318
7799
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
7800
+ currentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
7801
+ currentAdapterSessionIdState: _$zod.ZodOptional<_$zod.ZodEnum<{
7802
+ confirmed: "confirmed";
7803
+ moved: "moved";
7804
+ inherited: "inherited";
7805
+ }>>;
7806
+ revision: _$zod.ZodOptional<_$zod.ZodNumber>;
7807
+ currencyFence: _$zod.ZodOptional<_$zod.ZodNumber>;
6319
7808
  model: _$zod.ZodOptional<_$zod.ZodString>;
6320
7809
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
6321
7810
  allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
@@ -6336,6 +7825,7 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
6336
7825
  status: _$zod.ZodEnum<{
6337
7826
  idle: "idle";
6338
7827
  active: "active";
7828
+ starting: "starting";
6339
7829
  dead: "dead";
6340
7830
  disposed: "disposed";
6341
7831
  }>;
@@ -6416,8 +7906,8 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
6416
7906
  editOf: _$zod.ZodOptional<_$zod.ZodString>;
6417
7907
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
6418
7908
  text: "text";
6419
- voice: "voice";
6420
7909
  compact: "compact";
7910
+ voice: "voice";
6421
7911
  }>>;
6422
7912
  }, _$zod_v4_core0.$strip>>;
6423
7913
  turns: _$zod.ZodArray<_$zod.ZodObject<{
@@ -6613,8 +8103,8 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
6613
8103
  }>>;
6614
8104
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
6615
8105
  text: "text";
6616
- voice: "voice";
6617
8106
  compact: "compact";
8107
+ voice: "voice";
6618
8108
  }>>;
6619
8109
  }, _$zod_v4_core0.$strip>;
6620
8110
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
@@ -6794,6 +8284,7 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
6794
8284
  "native-attempt-failed": "native-attempt-failed";
6795
8285
  "agent-already-started": "agent-already-started";
6796
8286
  "fork-point-unresolvable": "fork-point-unresolvable";
8287
+ "adapter-session-moved": "adapter-session-moved";
6797
8288
  }>;
6798
8289
  agentId: _$zod.ZodOptional<_$zod.ZodString>;
6799
8290
  adapterId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -6839,7 +8330,20 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
6839
8330
  adapterId: _$zod.ZodString;
6840
8331
  adapterName: _$zod.ZodString;
6841
8332
  sessionId: _$zod.ZodString;
8333
+ runtimeOwner: _$zod.ZodOptional<_$zod.ZodObject<{
8334
+ machineId: _$zod.ZodString;
8335
+ instanceId: _$zod.ZodString;
8336
+ }, _$zod_v4_core0.$strip>>;
8337
+ recoveryAttemptId: _$zod.ZodOptional<_$zod.ZodString>;
6842
8338
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
8339
+ currentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
8340
+ currentAdapterSessionIdState: _$zod.ZodOptional<_$zod.ZodEnum<{
8341
+ confirmed: "confirmed";
8342
+ moved: "moved";
8343
+ inherited: "inherited";
8344
+ }>>;
8345
+ revision: _$zod.ZodOptional<_$zod.ZodNumber>;
8346
+ currencyFence: _$zod.ZodOptional<_$zod.ZodNumber>;
6843
8347
  model: _$zod.ZodOptional<_$zod.ZodString>;
6844
8348
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
6845
8349
  allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
@@ -6860,6 +8364,7 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
6860
8364
  status: _$zod.ZodEnum<{
6861
8365
  idle: "idle";
6862
8366
  active: "active";
8367
+ starting: "starting";
6863
8368
  dead: "dead";
6864
8369
  disposed: "disposed";
6865
8370
  }>;
@@ -6867,8 +8372,8 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
6867
8372
  lastActivityAt: _$zod.ZodNumber;
6868
8373
  }, _$zod_v4_core0.$strip>>;
6869
8374
  status: _$zod.ZodEnum<{
6870
- discovered: "discovered";
6871
8375
  closed: "closed";
8376
+ discovered: "discovered";
6872
8377
  active: "active";
6873
8378
  archived: "archived";
6874
8379
  }>;
@@ -6891,6 +8396,12 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
6891
8396
  }>>;
6892
8397
  adapterName: _$zod.ZodOptional<_$zod.ZodString>;
6893
8398
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
8399
+ currentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
8400
+ currentAdapterSessionIdState: _$zod.ZodOptional<_$zod.ZodEnum<{
8401
+ confirmed: "confirmed";
8402
+ moved: "moved";
8403
+ inherited: "inherited";
8404
+ }>>;
6894
8405
  adapterId: _$zod.ZodOptional<_$zod.ZodString>;
6895
8406
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
6896
8407
  clientAccountId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -6952,7 +8463,20 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
6952
8463
  adapterId: _$zod.ZodString;
6953
8464
  adapterName: _$zod.ZodString;
6954
8465
  sessionId: _$zod.ZodString;
8466
+ runtimeOwner: _$zod.ZodOptional<_$zod.ZodObject<{
8467
+ machineId: _$zod.ZodString;
8468
+ instanceId: _$zod.ZodString;
8469
+ }, _$zod_v4_core0.$strip>>;
8470
+ recoveryAttemptId: _$zod.ZodOptional<_$zod.ZodString>;
6955
8471
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
8472
+ currentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
8473
+ currentAdapterSessionIdState: _$zod.ZodOptional<_$zod.ZodEnum<{
8474
+ confirmed: "confirmed";
8475
+ moved: "moved";
8476
+ inherited: "inherited";
8477
+ }>>;
8478
+ revision: _$zod.ZodOptional<_$zod.ZodNumber>;
8479
+ currencyFence: _$zod.ZodOptional<_$zod.ZodNumber>;
6956
8480
  model: _$zod.ZodOptional<_$zod.ZodString>;
6957
8481
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
6958
8482
  allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
@@ -6973,6 +8497,7 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
6973
8497
  status: _$zod.ZodEnum<{
6974
8498
  idle: "idle";
6975
8499
  active: "active";
8500
+ starting: "starting";
6976
8501
  dead: "dead";
6977
8502
  disposed: "disposed";
6978
8503
  }>;
@@ -7053,8 +8578,8 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
7053
8578
  editOf: _$zod.ZodOptional<_$zod.ZodString>;
7054
8579
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
7055
8580
  text: "text";
7056
- voice: "voice";
7057
8581
  compact: "compact";
8582
+ voice: "voice";
7058
8583
  }>>;
7059
8584
  }, _$zod_v4_core0.$strip>>;
7060
8585
  turns: _$zod.ZodArray<_$zod.ZodObject<{
@@ -7250,8 +8775,8 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
7250
8775
  }>>;
7251
8776
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
7252
8777
  text: "text";
7253
- voice: "voice";
7254
8778
  compact: "compact";
8779
+ voice: "voice";
7255
8780
  }>>;
7256
8781
  }, _$zod_v4_core0.$strip>;
7257
8782
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
@@ -7431,6 +8956,7 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
7431
8956
  "native-attempt-failed": "native-attempt-failed";
7432
8957
  "agent-already-started": "agent-already-started";
7433
8958
  "fork-point-unresolvable": "fork-point-unresolvable";
8959
+ "adapter-session-moved": "adapter-session-moved";
7434
8960
  }>;
7435
8961
  agentId: _$zod.ZodOptional<_$zod.ZodString>;
7436
8962
  adapterId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -7456,8 +8982,8 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
7456
8982
  }, _$zod_v4_core0.$strip>;
7457
8983
  onConflict: _$zod.ZodDefault<_$zod.ZodEnum<{
7458
8984
  overwrite: "overwrite";
7459
- fail: "fail";
7460
8985
  skip: "skip";
8986
+ fail: "fail";
7461
8987
  }>>;
7462
8988
  }, _$zod_v4_core0.$strip>;
7463
8989
  response: _$zod.ZodObject<{
@@ -7560,6 +9086,7 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
7560
9086
  "native-attempt-failed": "native-attempt-failed";
7561
9087
  "agent-already-started": "agent-already-started";
7562
9088
  "fork-point-unresolvable": "fork-point-unresolvable";
9089
+ "adapter-session-moved": "adapter-session-moved";
7563
9090
  }>;
7564
9091
  agentId: _$zod.ZodOptional<_$zod.ZodString>;
7565
9092
  adapterId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -7764,8 +9291,8 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
7764
9291
  }>>;
7765
9292
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
7766
9293
  text: "text";
7767
- voice: "voice";
7768
9294
  compact: "compact";
9295
+ voice: "voice";
7769
9296
  }>>;
7770
9297
  }, _$zod_v4_core0.$strip>;
7771
9298
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
@@ -7945,6 +9472,7 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
7945
9472
  "native-attempt-failed": "native-attempt-failed";
7946
9473
  "agent-already-started": "agent-already-started";
7947
9474
  "fork-point-unresolvable": "fork-point-unresolvable";
9475
+ "adapter-session-moved": "adapter-session-moved";
7948
9476
  }>;
7949
9477
  agentId: _$zod.ZodOptional<_$zod.ZodString>;
7950
9478
  adapterId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -7971,8 +9499,8 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
7971
9499
  request: _$zod.ZodObject<{
7972
9500
  status: _$zod.ZodOptional<_$zod.ZodEnum<{
7973
9501
  all: "all";
7974
- discovered: "discovered";
7975
9502
  closed: "closed";
9503
+ discovered: "discovered";
7976
9504
  active: "active";
7977
9505
  archived: "archived";
7978
9506
  }>>;
@@ -7991,7 +9519,20 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
7991
9519
  adapterId: _$zod.ZodString;
7992
9520
  adapterName: _$zod.ZodString;
7993
9521
  sessionId: _$zod.ZodString;
9522
+ runtimeOwner: _$zod.ZodOptional<_$zod.ZodObject<{
9523
+ machineId: _$zod.ZodString;
9524
+ instanceId: _$zod.ZodString;
9525
+ }, _$zod_v4_core0.$strip>>;
9526
+ recoveryAttemptId: _$zod.ZodOptional<_$zod.ZodString>;
7994
9527
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
9528
+ currentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
9529
+ currentAdapterSessionIdState: _$zod.ZodOptional<_$zod.ZodEnum<{
9530
+ confirmed: "confirmed";
9531
+ moved: "moved";
9532
+ inherited: "inherited";
9533
+ }>>;
9534
+ revision: _$zod.ZodOptional<_$zod.ZodNumber>;
9535
+ currencyFence: _$zod.ZodOptional<_$zod.ZodNumber>;
7995
9536
  model: _$zod.ZodOptional<_$zod.ZodString>;
7996
9537
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
7997
9538
  allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
@@ -8012,6 +9553,7 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
8012
9553
  status: _$zod.ZodEnum<{
8013
9554
  idle: "idle";
8014
9555
  active: "active";
9556
+ starting: "starting";
8015
9557
  dead: "dead";
8016
9558
  disposed: "disposed";
8017
9559
  }>;
@@ -8019,8 +9561,8 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
8019
9561
  lastActivityAt: _$zod.ZodNumber;
8020
9562
  }, _$zod_v4_core0.$strip>>;
8021
9563
  status: _$zod.ZodEnum<{
8022
- discovered: "discovered";
8023
9564
  closed: "closed";
9565
+ discovered: "discovered";
8024
9566
  active: "active";
8025
9567
  archived: "archived";
8026
9568
  }>;
@@ -8043,6 +9585,12 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
8043
9585
  }>>;
8044
9586
  adapterName: _$zod.ZodOptional<_$zod.ZodString>;
8045
9587
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
9588
+ currentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
9589
+ currentAdapterSessionIdState: _$zod.ZodOptional<_$zod.ZodEnum<{
9590
+ confirmed: "confirmed";
9591
+ moved: "moved";
9592
+ inherited: "inherited";
9593
+ }>>;
8046
9594
  adapterId: _$zod.ZodOptional<_$zod.ZodString>;
8047
9595
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
8048
9596
  clientAccountId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -8112,8 +9660,8 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
8112
9660
  limit: _$zod.ZodOptional<_$zod.ZodNumber>;
8113
9661
  status: _$zod.ZodOptional<_$zod.ZodEnum<{
8114
9662
  all: "all";
8115
- discovered: "discovered";
8116
9663
  closed: "closed";
9664
+ discovered: "discovered";
8117
9665
  active: "active";
8118
9666
  archived: "archived";
8119
9667
  }>>;
@@ -8129,7 +9677,20 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
8129
9677
  adapterId: _$zod.ZodString;
8130
9678
  adapterName: _$zod.ZodString;
8131
9679
  sessionId: _$zod.ZodString;
9680
+ runtimeOwner: _$zod.ZodOptional<_$zod.ZodObject<{
9681
+ machineId: _$zod.ZodString;
9682
+ instanceId: _$zod.ZodString;
9683
+ }, _$zod_v4_core0.$strip>>;
9684
+ recoveryAttemptId: _$zod.ZodOptional<_$zod.ZodString>;
8132
9685
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
9686
+ currentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
9687
+ currentAdapterSessionIdState: _$zod.ZodOptional<_$zod.ZodEnum<{
9688
+ confirmed: "confirmed";
9689
+ moved: "moved";
9690
+ inherited: "inherited";
9691
+ }>>;
9692
+ revision: _$zod.ZodOptional<_$zod.ZodNumber>;
9693
+ currencyFence: _$zod.ZodOptional<_$zod.ZodNumber>;
8133
9694
  model: _$zod.ZodOptional<_$zod.ZodString>;
8134
9695
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
8135
9696
  allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
@@ -8150,6 +9711,7 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
8150
9711
  status: _$zod.ZodEnum<{
8151
9712
  idle: "idle";
8152
9713
  active: "active";
9714
+ starting: "starting";
8153
9715
  dead: "dead";
8154
9716
  disposed: "disposed";
8155
9717
  }>;
@@ -8157,8 +9719,8 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
8157
9719
  lastActivityAt: _$zod.ZodNumber;
8158
9720
  }, _$zod_v4_core0.$strip>>;
8159
9721
  status: _$zod.ZodEnum<{
8160
- discovered: "discovered";
8161
9722
  closed: "closed";
9723
+ discovered: "discovered";
8162
9724
  active: "active";
8163
9725
  archived: "archived";
8164
9726
  }>;
@@ -8181,6 +9743,12 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
8181
9743
  }>>;
8182
9744
  adapterName: _$zod.ZodOptional<_$zod.ZodString>;
8183
9745
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
9746
+ currentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
9747
+ currentAdapterSessionIdState: _$zod.ZodOptional<_$zod.ZodEnum<{
9748
+ confirmed: "confirmed";
9749
+ moved: "moved";
9750
+ inherited: "inherited";
9751
+ }>>;
8184
9752
  adapterId: _$zod.ZodOptional<_$zod.ZodString>;
8185
9753
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
8186
9754
  clientAccountId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -8258,7 +9826,20 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
8258
9826
  adapterId: _$zod.ZodString;
8259
9827
  adapterName: _$zod.ZodString;
8260
9828
  sessionId: _$zod.ZodString;
9829
+ runtimeOwner: _$zod.ZodOptional<_$zod.ZodObject<{
9830
+ machineId: _$zod.ZodString;
9831
+ instanceId: _$zod.ZodString;
9832
+ }, _$zod_v4_core0.$strip>>;
9833
+ recoveryAttemptId: _$zod.ZodOptional<_$zod.ZodString>;
8261
9834
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
9835
+ currentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
9836
+ currentAdapterSessionIdState: _$zod.ZodOptional<_$zod.ZodEnum<{
9837
+ confirmed: "confirmed";
9838
+ moved: "moved";
9839
+ inherited: "inherited";
9840
+ }>>;
9841
+ revision: _$zod.ZodOptional<_$zod.ZodNumber>;
9842
+ currencyFence: _$zod.ZodOptional<_$zod.ZodNumber>;
8262
9843
  model: _$zod.ZodOptional<_$zod.ZodString>;
8263
9844
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
8264
9845
  allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
@@ -8279,6 +9860,7 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
8279
9860
  status: _$zod.ZodEnum<{
8280
9861
  idle: "idle";
8281
9862
  active: "active";
9863
+ starting: "starting";
8282
9864
  dead: "dead";
8283
9865
  disposed: "disposed";
8284
9866
  }>;
@@ -8286,8 +9868,8 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
8286
9868
  lastActivityAt: _$zod.ZodNumber;
8287
9869
  }, _$zod_v4_core0.$strip>>;
8288
9870
  status: _$zod.ZodEnum<{
8289
- discovered: "discovered";
8290
9871
  closed: "closed";
9872
+ discovered: "discovered";
8291
9873
  active: "active";
8292
9874
  archived: "archived";
8293
9875
  }>;
@@ -8310,6 +9892,12 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
8310
9892
  }>>;
8311
9893
  adapterName: _$zod.ZodOptional<_$zod.ZodString>;
8312
9894
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
9895
+ currentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
9896
+ currentAdapterSessionIdState: _$zod.ZodOptional<_$zod.ZodEnum<{
9897
+ confirmed: "confirmed";
9898
+ moved: "moved";
9899
+ inherited: "inherited";
9900
+ }>>;
8313
9901
  adapterId: _$zod.ZodOptional<_$zod.ZodString>;
8314
9902
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
8315
9903
  clientAccountId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -8501,7 +10089,20 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
8501
10089
  adapterId: _$zod.ZodString;
8502
10090
  adapterName: _$zod.ZodString;
8503
10091
  sessionId: _$zod.ZodString;
10092
+ runtimeOwner: _$zod.ZodOptional<_$zod.ZodObject<{
10093
+ machineId: _$zod.ZodString;
10094
+ instanceId: _$zod.ZodString;
10095
+ }, _$zod_v4_core0.$strip>>;
10096
+ recoveryAttemptId: _$zod.ZodOptional<_$zod.ZodString>;
8504
10097
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
10098
+ currentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
10099
+ currentAdapterSessionIdState: _$zod.ZodOptional<_$zod.ZodEnum<{
10100
+ confirmed: "confirmed";
10101
+ moved: "moved";
10102
+ inherited: "inherited";
10103
+ }>>;
10104
+ revision: _$zod.ZodOptional<_$zod.ZodNumber>;
10105
+ currencyFence: _$zod.ZodOptional<_$zod.ZodNumber>;
8505
10106
  model: _$zod.ZodOptional<_$zod.ZodString>;
8506
10107
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
8507
10108
  allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
@@ -8522,6 +10123,7 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
8522
10123
  status: _$zod.ZodEnum<{
8523
10124
  idle: "idle";
8524
10125
  active: "active";
10126
+ starting: "starting";
8525
10127
  dead: "dead";
8526
10128
  disposed: "disposed";
8527
10129
  }>;
@@ -8529,8 +10131,8 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
8529
10131
  lastActivityAt: _$zod.ZodNumber;
8530
10132
  }, _$zod_v4_core0.$strip>>;
8531
10133
  status: _$zod.ZodEnum<{
8532
- discovered: "discovered";
8533
10134
  closed: "closed";
10135
+ discovered: "discovered";
8534
10136
  active: "active";
8535
10137
  archived: "archived";
8536
10138
  }>;
@@ -8553,6 +10155,12 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
8553
10155
  }>>;
8554
10156
  adapterName: _$zod.ZodOptional<_$zod.ZodString>;
8555
10157
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
10158
+ currentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
10159
+ currentAdapterSessionIdState: _$zod.ZodOptional<_$zod.ZodEnum<{
10160
+ confirmed: "confirmed";
10161
+ moved: "moved";
10162
+ inherited: "inherited";
10163
+ }>>;
8556
10164
  adapterId: _$zod.ZodOptional<_$zod.ZodString>;
8557
10165
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
8558
10166
  clientAccountId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -8842,7 +10450,7 @@ declare const SessionContextSchema$1: z.ZodObject<{
8842
10450
  systemPrompt: "systemPrompt";
8843
10451
  fullPrefix: "fullPrefix";
8844
10452
  }>>;
8845
- turnContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
10453
+ turnContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>>>;
8846
10454
  requestCorrelation: z.ZodOptional<z.ZodObject<{
8847
10455
  sessionId: z.ZodOptional<z.ZodString>;
8848
10456
  turnId: z.ZodOptional<z.ZodString>;
@@ -8869,6 +10477,7 @@ declare const SessionContextSchema$1: z.ZodObject<{
8869
10477
  "native-attempt-failed": "native-attempt-failed";
8870
10478
  "agent-already-started": "agent-already-started";
8871
10479
  "fork-point-unresolvable": "fork-point-unresolvable";
10480
+ "adapter-session-moved": "adapter-session-moved";
8872
10481
  }>;
8873
10482
  }, z.core.$strip>, z.ZodObject<{
8874
10483
  kind: z.ZodLiteral<"foreign">;
@@ -9048,9 +10657,9 @@ declare const ResolveAgentConfigSchema: {
9048
10657
  description: z.ZodOptional<z.ZodString>;
9049
10658
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
9050
10659
  exposureMode: z.ZodEnum<{
9051
- hidden: "hidden";
9052
10660
  direct: "direct";
9053
10661
  discovery: "discovery";
10662
+ hidden: "hidden";
9054
10663
  }>;
9055
10664
  enabled: z.ZodBoolean;
9056
10665
  enabledBy: z.ZodOptional<z.ZodEnum<{
@@ -9067,9 +10676,9 @@ declare const ResolveAgentConfigSchema: {
9067
10676
  description: z.ZodOptional<z.ZodString>;
9068
10677
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
9069
10678
  exposureMode: z.ZodEnum<{
9070
- hidden: "hidden";
9071
10679
  direct: "direct";
9072
10680
  discovery: "discovery";
10681
+ hidden: "hidden";
9073
10682
  }>;
9074
10683
  enabled: z.ZodBoolean;
9075
10684
  enabledBy: z.ZodOptional<z.ZodEnum<{
@@ -9379,8 +10988,8 @@ declare const MessageStorageNamespace$1: ContractStorageNamespaceDefinition<"mes
9379
10988
  message: z.ZodObject<{
9380
10989
  origin: z.ZodOptional<z.ZodEnum<{
9381
10990
  text: "text";
9382
- voice: "voice";
9383
10991
  compact: "compact";
10992
+ voice: "voice";
9384
10993
  }>>;
9385
10994
  sessionId: z.ZodString;
9386
10995
  role: z.ZodEnum<{
@@ -9445,9 +11054,9 @@ declare const MessageStorageNamespace$1: ContractStorageNamespaceDefinition<"mes
9445
11054
  output: z.ZodString;
9446
11055
  isError: z.ZodOptional<z.ZodBoolean>;
9447
11056
  }, z.core.$strip>], "type">>;
11057
+ agentId: z.ZodOptional<z.ZodString>;
9448
11058
  turnId: z.ZodNullable<z.ZodString>;
9449
11059
  adapterSessionId: z.ZodOptional<z.ZodString>;
9450
- agentId: z.ZodOptional<z.ZodString>;
9451
11060
  timestamp: z.ZodNumber;
9452
11061
  contentText: z.ZodString;
9453
11062
  adapterMessageId: z.ZodOptional<z.ZodString>;
@@ -9531,8 +11140,8 @@ declare const MessageStorageNamespace$1: ContractStorageNamespaceDefinition<"mes
9531
11140
  editOf: z.ZodOptional<z.ZodString>;
9532
11141
  origin: z.ZodOptional<z.ZodEnum<{
9533
11142
  text: "text";
9534
- voice: "voice";
9535
11143
  compact: "compact";
11144
+ voice: "voice";
9536
11145
  }>>;
9537
11146
  }, z.core.$strip>;
9538
11147
  }, z.core.$strip>;
@@ -9632,8 +11241,8 @@ declare const MessageStorageNamespace$1: ContractStorageNamespaceDefinition<"mes
9632
11241
  editOf: z.ZodOptional<z.ZodString>;
9633
11242
  origin: z.ZodOptional<z.ZodEnum<{
9634
11243
  text: "text";
9635
- voice: "voice";
9636
11244
  compact: "compact";
11245
+ voice: "voice";
9637
11246
  }>>;
9638
11247
  }, z.core.$strip>>;
9639
11248
  nextCursor: z.ZodNullable<z.ZodObject<{
@@ -9727,8 +11336,8 @@ declare const MessageStorageNamespace$1: ContractStorageNamespaceDefinition<"mes
9727
11336
  editOf: z.ZodOptional<z.ZodString>;
9728
11337
  origin: z.ZodOptional<z.ZodEnum<{
9729
11338
  text: "text";
9730
- voice: "voice";
9731
11339
  compact: "compact";
11340
+ voice: "voice";
9732
11341
  }>>;
9733
11342
  }, z.core.$strip>>;
9734
11343
  }, z.core.$strip>;
@@ -9818,8 +11427,8 @@ declare const MessageStorageNamespace$1: ContractStorageNamespaceDefinition<"mes
9818
11427
  editOf: z.ZodOptional<z.ZodString>;
9819
11428
  origin: z.ZodOptional<z.ZodEnum<{
9820
11429
  text: "text";
9821
- voice: "voice";
9822
11430
  compact: "compact";
11431
+ voice: "voice";
9823
11432
  }>>;
9824
11433
  }, z.core.$strip>>;
9825
11434
  }, z.core.$strip>;
@@ -9909,8 +11518,8 @@ declare const MessageStorageNamespace$1: ContractStorageNamespaceDefinition<"mes
9909
11518
  editOf: z.ZodOptional<z.ZodString>;
9910
11519
  origin: z.ZodOptional<z.ZodEnum<{
9911
11520
  text: "text";
9912
- voice: "voice";
9913
11521
  compact: "compact";
11522
+ voice: "voice";
9914
11523
  }>>;
9915
11524
  }, z.core.$strip>>;
9916
11525
  }, z.core.$strip>;
@@ -10003,8 +11612,8 @@ declare const MessageStorageNamespace$1: ContractStorageNamespaceDefinition<"mes
10003
11612
  editOf: z.ZodOptional<z.ZodString>;
10004
11613
  origin: z.ZodOptional<z.ZodEnum<{
10005
11614
  text: "text";
10006
- voice: "voice";
10007
11615
  compact: "compact";
11616
+ voice: "voice";
10008
11617
  }>>;
10009
11618
  }, z.core.$strip>>;
10010
11619
  total: z.ZodNumber;
@@ -10116,8 +11725,8 @@ declare const MessageStorageNamespace$1: ContractStorageNamespaceDefinition<"mes
10116
11725
  timestamp: z.ZodNumber;
10117
11726
  origin: z.ZodOptional<z.ZodEnum<{
10118
11727
  text: "text";
10119
- voice: "voice";
10120
11728
  compact: "compact";
11729
+ voice: "voice";
10121
11730
  }>>;
10122
11731
  }, z.core.$strip>;
10123
11732
  response: z.ZodObject<{
@@ -10206,8 +11815,8 @@ declare const MessageStorageNamespace$1: ContractStorageNamespaceDefinition<"mes
10206
11815
  editOf: z.ZodOptional<z.ZodString>;
10207
11816
  origin: z.ZodOptional<z.ZodEnum<{
10208
11817
  text: "text";
10209
- voice: "voice";
10210
11818
  compact: "compact";
11819
+ voice: "voice";
10211
11820
  }>>;
10212
11821
  }, z.core.$strip>;
10213
11822
  }, z.core.$strip>;
@@ -10227,8 +11836,8 @@ declare const MessageStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
10227
11836
  message: z.ZodObject<{
10228
11837
  origin: z.ZodOptional<z.ZodEnum<{
10229
11838
  text: "text";
10230
- voice: "voice";
10231
11839
  compact: "compact";
11840
+ voice: "voice";
10232
11841
  }>>;
10233
11842
  sessionId: z.ZodString;
10234
11843
  role: z.ZodEnum<{
@@ -10293,9 +11902,9 @@ declare const MessageStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
10293
11902
  output: z.ZodString;
10294
11903
  isError: z.ZodOptional<z.ZodBoolean>;
10295
11904
  }, z.core.$strip>], "type">>;
11905
+ agentId: z.ZodOptional<z.ZodString>;
10296
11906
  turnId: z.ZodNullable<z.ZodString>;
10297
11907
  adapterSessionId: z.ZodOptional<z.ZodString>;
10298
- agentId: z.ZodOptional<z.ZodString>;
10299
11908
  timestamp: z.ZodNumber;
10300
11909
  contentText: z.ZodString;
10301
11910
  adapterMessageId: z.ZodOptional<z.ZodString>;
@@ -10379,8 +11988,8 @@ declare const MessageStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
10379
11988
  editOf: z.ZodOptional<z.ZodString>;
10380
11989
  origin: z.ZodOptional<z.ZodEnum<{
10381
11990
  text: "text";
10382
- voice: "voice";
10383
11991
  compact: "compact";
11992
+ voice: "voice";
10384
11993
  }>>;
10385
11994
  }, z.core.$strip>;
10386
11995
  }, z.core.$strip>;
@@ -10480,8 +12089,8 @@ declare const MessageStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
10480
12089
  editOf: z.ZodOptional<z.ZodString>;
10481
12090
  origin: z.ZodOptional<z.ZodEnum<{
10482
12091
  text: "text";
10483
- voice: "voice";
10484
12092
  compact: "compact";
12093
+ voice: "voice";
10485
12094
  }>>;
10486
12095
  }, z.core.$strip>>;
10487
12096
  nextCursor: z.ZodNullable<z.ZodObject<{
@@ -10575,8 +12184,8 @@ declare const MessageStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
10575
12184
  editOf: z.ZodOptional<z.ZodString>;
10576
12185
  origin: z.ZodOptional<z.ZodEnum<{
10577
12186
  text: "text";
10578
- voice: "voice";
10579
12187
  compact: "compact";
12188
+ voice: "voice";
10580
12189
  }>>;
10581
12190
  }, z.core.$strip>>;
10582
12191
  }, z.core.$strip>;
@@ -10666,8 +12275,8 @@ declare const MessageStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
10666
12275
  editOf: z.ZodOptional<z.ZodString>;
10667
12276
  origin: z.ZodOptional<z.ZodEnum<{
10668
12277
  text: "text";
10669
- voice: "voice";
10670
12278
  compact: "compact";
12279
+ voice: "voice";
10671
12280
  }>>;
10672
12281
  }, z.core.$strip>>;
10673
12282
  }, z.core.$strip>;
@@ -10757,8 +12366,8 @@ declare const MessageStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
10757
12366
  editOf: z.ZodOptional<z.ZodString>;
10758
12367
  origin: z.ZodOptional<z.ZodEnum<{
10759
12368
  text: "text";
10760
- voice: "voice";
10761
12369
  compact: "compact";
12370
+ voice: "voice";
10762
12371
  }>>;
10763
12372
  }, z.core.$strip>>;
10764
12373
  }, z.core.$strip>;
@@ -10851,8 +12460,8 @@ declare const MessageStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
10851
12460
  editOf: z.ZodOptional<z.ZodString>;
10852
12461
  origin: z.ZodOptional<z.ZodEnum<{
10853
12462
  text: "text";
10854
- voice: "voice";
10855
12463
  compact: "compact";
12464
+ voice: "voice";
10856
12465
  }>>;
10857
12466
  }, z.core.$strip>>;
10858
12467
  total: z.ZodNumber;
@@ -10964,8 +12573,8 @@ declare const MessageStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
10964
12573
  timestamp: z.ZodNumber;
10965
12574
  origin: z.ZodOptional<z.ZodEnum<{
10966
12575
  text: "text";
10967
- voice: "voice";
10968
12576
  compact: "compact";
12577
+ voice: "voice";
10969
12578
  }>>;
10970
12579
  }, z.core.$strip>;
10971
12580
  response: z.ZodObject<{
@@ -11054,8 +12663,8 @@ declare const MessageStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
11054
12663
  editOf: z.ZodOptional<z.ZodString>;
11055
12664
  origin: z.ZodOptional<z.ZodEnum<{
11056
12665
  text: "text";
11057
- voice: "voice";
11058
12666
  compact: "compact";
12667
+ voice: "voice";
11059
12668
  }>>;
11060
12669
  }, z.core.$strip>;
11061
12670
  }, z.core.$strip>;
@@ -11276,8 +12885,8 @@ declare const SessionEventStorageNamespace$1: ContractStorageNamespaceDefinition
11276
12885
  }>>;
11277
12886
  origin: z.ZodOptional<z.ZodEnum<{
11278
12887
  text: "text";
11279
- voice: "voice";
11280
12888
  compact: "compact";
12889
+ voice: "voice";
11281
12890
  }>>;
11282
12891
  }, z.core.$strip>;
11283
12892
  }, z.core.$strip>, z.ZodObject<{
@@ -11457,6 +13066,7 @@ declare const SessionEventStorageNamespace$1: ContractStorageNamespaceDefinition
11457
13066
  "native-attempt-failed": "native-attempt-failed";
11458
13067
  "agent-already-started": "agent-already-started";
11459
13068
  "fork-point-unresolvable": "fork-point-unresolvable";
13069
+ "adapter-session-moved": "adapter-session-moved";
11460
13070
  }>;
11461
13071
  agentId: z.ZodOptional<z.ZodString>;
11462
13072
  adapterId: z.ZodOptional<z.ZodString>;
@@ -11663,8 +13273,8 @@ declare const SessionEventStorageNamespace$1: ContractStorageNamespaceDefinition
11663
13273
  }>>;
11664
13274
  origin: z.ZodOptional<z.ZodEnum<{
11665
13275
  text: "text";
11666
- voice: "voice";
11667
13276
  compact: "compact";
13277
+ voice: "voice";
11668
13278
  }>>;
11669
13279
  }, z.core.$strip>;
11670
13280
  }, z.core.$strip>, z.ZodObject<{
@@ -11844,6 +13454,7 @@ declare const SessionEventStorageNamespace$1: ContractStorageNamespaceDefinition
11844
13454
  "native-attempt-failed": "native-attempt-failed";
11845
13455
  "agent-already-started": "agent-already-started";
11846
13456
  "fork-point-unresolvable": "fork-point-unresolvable";
13457
+ "adapter-session-moved": "adapter-session-moved";
11847
13458
  }>;
11848
13459
  agentId: z.ZodOptional<z.ZodString>;
11849
13460
  adapterId: z.ZodOptional<z.ZodString>;
@@ -12040,8 +13651,8 @@ declare const SessionEventStorageNamespace$1: ContractStorageNamespaceDefinition
12040
13651
  }>>;
12041
13652
  origin: z.ZodOptional<z.ZodEnum<{
12042
13653
  text: "text";
12043
- voice: "voice";
12044
13654
  compact: "compact";
13655
+ voice: "voice";
12045
13656
  }>>;
12046
13657
  }, z.core.$strip>;
12047
13658
  }, z.core.$strip>, z.ZodObject<{
@@ -12221,6 +13832,7 @@ declare const SessionEventStorageNamespace$1: ContractStorageNamespaceDefinition
12221
13832
  "native-attempt-failed": "native-attempt-failed";
12222
13833
  "agent-already-started": "agent-already-started";
12223
13834
  "fork-point-unresolvable": "fork-point-unresolvable";
13835
+ "adapter-session-moved": "adapter-session-moved";
12224
13836
  }>;
12225
13837
  agentId: z.ZodOptional<z.ZodString>;
12226
13838
  adapterId: z.ZodOptional<z.ZodString>;
@@ -12431,8 +14043,8 @@ declare const SessionEventStorageNamespace$1: ContractStorageNamespaceDefinition
12431
14043
  }>>;
12432
14044
  origin: z.ZodOptional<z.ZodEnum<{
12433
14045
  text: "text";
12434
- voice: "voice";
12435
14046
  compact: "compact";
14047
+ voice: "voice";
12436
14048
  }>>;
12437
14049
  }, z.core.$strip>;
12438
14050
  }, z.core.$strip>, z.ZodObject<{
@@ -12612,6 +14224,7 @@ declare const SessionEventStorageNamespace$1: ContractStorageNamespaceDefinition
12612
14224
  "native-attempt-failed": "native-attempt-failed";
12613
14225
  "agent-already-started": "agent-already-started";
12614
14226
  "fork-point-unresolvable": "fork-point-unresolvable";
14227
+ "adapter-session-moved": "adapter-session-moved";
12615
14228
  }>;
12616
14229
  agentId: z.ZodOptional<z.ZodString>;
12617
14230
  adapterId: z.ZodOptional<z.ZodString>;
@@ -12809,8 +14422,8 @@ declare const SessionEventStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio
12809
14422
  }>>;
12810
14423
  origin: z.ZodOptional<z.ZodEnum<{
12811
14424
  text: "text";
12812
- voice: "voice";
12813
14425
  compact: "compact";
14426
+ voice: "voice";
12814
14427
  }>>;
12815
14428
  }, z.core.$strip>;
12816
14429
  }, z.core.$strip>, z.ZodObject<{
@@ -12990,6 +14603,7 @@ declare const SessionEventStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio
12990
14603
  "native-attempt-failed": "native-attempt-failed";
12991
14604
  "agent-already-started": "agent-already-started";
12992
14605
  "fork-point-unresolvable": "fork-point-unresolvable";
14606
+ "adapter-session-moved": "adapter-session-moved";
12993
14607
  }>;
12994
14608
  agentId: z.ZodOptional<z.ZodString>;
12995
14609
  adapterId: z.ZodOptional<z.ZodString>;
@@ -13196,8 +14810,8 @@ declare const SessionEventStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio
13196
14810
  }>>;
13197
14811
  origin: z.ZodOptional<z.ZodEnum<{
13198
14812
  text: "text";
13199
- voice: "voice";
13200
14813
  compact: "compact";
14814
+ voice: "voice";
13201
14815
  }>>;
13202
14816
  }, z.core.$strip>;
13203
14817
  }, z.core.$strip>, z.ZodObject<{
@@ -13377,6 +14991,7 @@ declare const SessionEventStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio
13377
14991
  "native-attempt-failed": "native-attempt-failed";
13378
14992
  "agent-already-started": "agent-already-started";
13379
14993
  "fork-point-unresolvable": "fork-point-unresolvable";
14994
+ "adapter-session-moved": "adapter-session-moved";
13380
14995
  }>;
13381
14996
  agentId: z.ZodOptional<z.ZodString>;
13382
14997
  adapterId: z.ZodOptional<z.ZodString>;
@@ -13573,8 +15188,8 @@ declare const SessionEventStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio
13573
15188
  }>>;
13574
15189
  origin: z.ZodOptional<z.ZodEnum<{
13575
15190
  text: "text";
13576
- voice: "voice";
13577
15191
  compact: "compact";
15192
+ voice: "voice";
13578
15193
  }>>;
13579
15194
  }, z.core.$strip>;
13580
15195
  }, z.core.$strip>, z.ZodObject<{
@@ -13754,6 +15369,7 @@ declare const SessionEventStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio
13754
15369
  "native-attempt-failed": "native-attempt-failed";
13755
15370
  "agent-already-started": "agent-already-started";
13756
15371
  "fork-point-unresolvable": "fork-point-unresolvable";
15372
+ "adapter-session-moved": "adapter-session-moved";
13757
15373
  }>;
13758
15374
  agentId: z.ZodOptional<z.ZodString>;
13759
15375
  adapterId: z.ZodOptional<z.ZodString>;
@@ -13964,8 +15580,8 @@ declare const SessionEventStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio
13964
15580
  }>>;
13965
15581
  origin: z.ZodOptional<z.ZodEnum<{
13966
15582
  text: "text";
13967
- voice: "voice";
13968
15583
  compact: "compact";
15584
+ voice: "voice";
13969
15585
  }>>;
13970
15586
  }, z.core.$strip>;
13971
15587
  }, z.core.$strip>, z.ZodObject<{
@@ -14145,6 +15761,7 @@ declare const SessionEventStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio
14145
15761
  "native-attempt-failed": "native-attempt-failed";
14146
15762
  "agent-already-started": "agent-already-started";
14147
15763
  "fork-point-unresolvable": "fork-point-unresolvable";
15764
+ "adapter-session-moved": "adapter-session-moved";
14148
15765
  }>;
14149
15766
  agentId: z.ZodOptional<z.ZodString>;
14150
15767
  adapterId: z.ZodOptional<z.ZodString>;
@@ -14181,7 +15798,20 @@ declare const SessionStorageSetSessionSchema: z.ZodObject<{
14181
15798
  adapterId: z.ZodString;
14182
15799
  adapterName: z.ZodString;
14183
15800
  sessionId: z.ZodString;
15801
+ runtimeOwner: z.ZodOptional<z.ZodObject<{
15802
+ machineId: z.ZodString;
15803
+ instanceId: z.ZodString;
15804
+ }, z.core.$strip>>;
15805
+ recoveryAttemptId: z.ZodOptional<z.ZodString>;
14184
15806
  adapterSessionId: z.ZodOptional<z.ZodString>;
15807
+ currentAdapterSessionId: z.ZodOptional<z.ZodString>;
15808
+ currentAdapterSessionIdState: z.ZodOptional<z.ZodEnum<{
15809
+ confirmed: "confirmed";
15810
+ moved: "moved";
15811
+ inherited: "inherited";
15812
+ }>>;
15813
+ revision: z.ZodOptional<z.ZodNumber>;
15814
+ currencyFence: z.ZodOptional<z.ZodNumber>;
14185
15815
  model: z.ZodOptional<z.ZodString>;
14186
15816
  cwd: z.ZodOptional<z.ZodString>;
14187
15817
  allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -14202,6 +15832,7 @@ declare const SessionStorageSetSessionSchema: z.ZodObject<{
14202
15832
  status: z.ZodEnum<{
14203
15833
  idle: "idle";
14204
15834
  active: "active";
15835
+ starting: "starting";
14205
15836
  dead: "dead";
14206
15837
  disposed: "disposed";
14207
15838
  }>;
@@ -14209,8 +15840,8 @@ declare const SessionStorageSetSessionSchema: z.ZodObject<{
14209
15840
  lastActivityAt: z.ZodNumber;
14210
15841
  }, z.core.$strip>>;
14211
15842
  status: z.ZodEnum<{
14212
- discovered: "discovered";
14213
15843
  closed: "closed";
15844
+ discovered: "discovered";
14214
15845
  active: "active";
14215
15846
  archived: "archived";
14216
15847
  }>;
@@ -14233,6 +15864,12 @@ declare const SessionStorageSetSessionSchema: z.ZodObject<{
14233
15864
  }>>;
14234
15865
  adapterName: z.ZodOptional<z.ZodString>;
14235
15866
  adapterSessionId: z.ZodOptional<z.ZodString>;
15867
+ currentAdapterSessionId: z.ZodOptional<z.ZodString>;
15868
+ currentAdapterSessionIdState: z.ZodOptional<z.ZodEnum<{
15869
+ confirmed: "confirmed";
15870
+ moved: "moved";
15871
+ inherited: "inherited";
15872
+ }>>;
14236
15873
  adapterId: z.ZodOptional<z.ZodString>;
14237
15874
  clientId: z.ZodOptional<z.ZodString>;
14238
15875
  clientAccountId: z.ZodOptional<z.ZodString>;
@@ -14300,7 +15937,20 @@ declare const SessionStorageSetRequestSchema$1: z.ZodObject<{
14300
15937
  adapterId: z.ZodString;
14301
15938
  adapterName: z.ZodString;
14302
15939
  sessionId: z.ZodString;
15940
+ runtimeOwner: z.ZodOptional<z.ZodObject<{
15941
+ machineId: z.ZodString;
15942
+ instanceId: z.ZodString;
15943
+ }, z.core.$strip>>;
15944
+ recoveryAttemptId: z.ZodOptional<z.ZodString>;
14303
15945
  adapterSessionId: z.ZodOptional<z.ZodString>;
15946
+ currentAdapterSessionId: z.ZodOptional<z.ZodString>;
15947
+ currentAdapterSessionIdState: z.ZodOptional<z.ZodEnum<{
15948
+ confirmed: "confirmed";
15949
+ moved: "moved";
15950
+ inherited: "inherited";
15951
+ }>>;
15952
+ revision: z.ZodOptional<z.ZodNumber>;
15953
+ currencyFence: z.ZodOptional<z.ZodNumber>;
14304
15954
  model: z.ZodOptional<z.ZodString>;
14305
15955
  cwd: z.ZodOptional<z.ZodString>;
14306
15956
  allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -14321,6 +15971,7 @@ declare const SessionStorageSetRequestSchema$1: z.ZodObject<{
14321
15971
  status: z.ZodEnum<{
14322
15972
  idle: "idle";
14323
15973
  active: "active";
15974
+ starting: "starting";
14324
15975
  dead: "dead";
14325
15976
  disposed: "disposed";
14326
15977
  }>;
@@ -14328,8 +15979,8 @@ declare const SessionStorageSetRequestSchema$1: z.ZodObject<{
14328
15979
  lastActivityAt: z.ZodNumber;
14329
15980
  }, z.core.$strip>>;
14330
15981
  status: z.ZodEnum<{
14331
- discovered: "discovered";
14332
15982
  closed: "closed";
15983
+ discovered: "discovered";
14333
15984
  active: "active";
14334
15985
  archived: "archived";
14335
15986
  }>;
@@ -14352,6 +16003,12 @@ declare const SessionStorageSetRequestSchema$1: z.ZodObject<{
14352
16003
  }>>;
14353
16004
  adapterName: z.ZodOptional<z.ZodString>;
14354
16005
  adapterSessionId: z.ZodOptional<z.ZodString>;
16006
+ currentAdapterSessionId: z.ZodOptional<z.ZodString>;
16007
+ currentAdapterSessionIdState: z.ZodOptional<z.ZodEnum<{
16008
+ confirmed: "confirmed";
16009
+ moved: "moved";
16010
+ inherited: "inherited";
16011
+ }>>;
14355
16012
  adapterId: z.ZodOptional<z.ZodString>;
14356
16013
  clientId: z.ZodOptional<z.ZodString>;
14357
16014
  clientAccountId: z.ZodOptional<z.ZodString>;
@@ -14417,12 +16074,18 @@ declare const SessionStorageUpdateSchema$1: {
14417
16074
  request: z.ZodObject<{
14418
16075
  sessionId: z.ZodString;
14419
16076
  status: z.ZodOptional<z.ZodEnum<{
14420
- discovered: "discovered";
14421
16077
  closed: "closed";
16078
+ discovered: "discovered";
14422
16079
  active: "active";
14423
16080
  archived: "archived";
14424
16081
  }>>;
14425
- parentSessionId: z.ZodOptional<z.ZodString>;
16082
+ expectedStatus: z.ZodOptional<z.ZodArray<z.ZodEnum<{
16083
+ closed: "closed";
16084
+ discovered: "discovered";
16085
+ active: "active";
16086
+ archived: "archived";
16087
+ }>>>;
16088
+ parentSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14426
16089
  contextInheritance: z.ZodOptional<z.ZodEnum<{
14427
16090
  none: "none";
14428
16091
  "parent-history": "parent-history";
@@ -14461,6 +16124,19 @@ declare const SessionStorageUpdateSchema$1: {
14461
16124
  metadata: z.ZodOptional<z.ZodNullable<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>>>>>;
14462
16125
  spawningToolCallId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14463
16126
  machineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16127
+ identity: z.ZodOptional<z.ZodObject<{
16128
+ adapterName: z.ZodString;
16129
+ adapterId: z.ZodString;
16130
+ adapterSessionId: z.ZodOptional<z.ZodString>;
16131
+ }, z.core.$strip>>;
16132
+ expectIdentityOpenForLead: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16133
+ reconcileAdapterSession: z.ZodOptional<z.ZodObject<{
16134
+ agentId: z.ZodString;
16135
+ adapterName: z.ZodString;
16136
+ adapterId: z.ZodString;
16137
+ adapterSessionId: z.ZodString;
16138
+ lastActivityAt: z.ZodNumber;
16139
+ }, z.core.$strip>>;
14464
16140
  }, z.core.$strip>;
14465
16141
  response: z.ZodObject<{
14466
16142
  success: z.ZodBoolean;
@@ -14585,6 +16261,45 @@ declare const ImportUpsertRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
14585
16261
  forkPointMessageId: z.ZodNull;
14586
16262
  }, z.core.$strip>], "kind">;
14587
16263
  type ImportUpsertRequest = z.infer<typeof ImportUpsertRequestSchema>;
16264
+ /**
16265
+ * Request payload for `storage:session.rebindObserved`.
16266
+ *
16267
+ * A rebind is the write a *continuation* of an already known external session
16268
+ * produces: the provider session keeps its identity, but the runtime observing
16269
+ * it may sit in a different working directory, on a different machine, or write
16270
+ * to a different transcript file. Only those runtime/locality facts are
16271
+ * refreshed. Origin identity (`source`, `adapterSessionId`), lineage,
16272
+ * `importStatus`, lifecycle `status`, `createdAt`, metadata and content are
16273
+ * deliberately out of reach — a continuation is not an import and must never
16274
+ * be able to rewrite what an import owns.
16275
+ *
16276
+ * Every locality field is optional and `undefined` means "unchanged": the
16277
+ * observing runtime reports what it knows, and absence of evidence must not
16278
+ * erase a stored value.
16279
+ */
16280
+ declare const SessionStorageRebindObservedRequestSchema: z.ZodObject<{
16281
+ externalSessionId: z.ZodString;
16282
+ source: z.ZodString;
16283
+ cwd: z.ZodOptional<z.ZodString>;
16284
+ logFilePath: z.ZodOptional<z.ZodString>;
16285
+ machineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16286
+ }, z.core.$strip>;
16287
+ type SessionStorageRebindObservedRequest = z.infer<typeof SessionStorageRebindObservedRequestSchema>;
16288
+ /**
16289
+ * Result of `storage:session.rebindObserved`.
16290
+ *
16291
+ * `'not-found'` is a modeled outcome, not a failure and not an implicit
16292
+ * create: a continuation of a session storage has never seen carries no
16293
+ * trustworthy creation time, lineage or content, so storage reports the miss
16294
+ * and leaves session creation to the import path that does.
16295
+ */
16296
+ declare const SessionStorageRebindObservedResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
16297
+ outcome: z.ZodLiteral<"rebound">;
16298
+ sessionId: z.ZodString;
16299
+ }, z.core.$strip>, z.ZodObject<{
16300
+ outcome: z.ZodLiteral<"not-found">;
16301
+ }, z.core.$strip>], "outcome">;
16302
+ type SessionStorageRebindObservedResult = z.infer<typeof SessionStorageRebindObservedResponseSchema>;
14588
16303
  /**
14589
16304
  * Session storage namespace.
14590
16305
  *
@@ -14622,7 +16337,20 @@ declare const SessionStorageNamespace$1: ContractStorageNamespaceDefinition<"ses
14622
16337
  adapterId: z.ZodString;
14623
16338
  adapterName: z.ZodString;
14624
16339
  sessionId: z.ZodString;
16340
+ runtimeOwner: z.ZodOptional<z.ZodObject<{
16341
+ machineId: z.ZodString;
16342
+ instanceId: z.ZodString;
16343
+ }, z.core.$strip>>;
16344
+ recoveryAttemptId: z.ZodOptional<z.ZodString>;
14625
16345
  adapterSessionId: z.ZodOptional<z.ZodString>;
16346
+ currentAdapterSessionId: z.ZodOptional<z.ZodString>;
16347
+ currentAdapterSessionIdState: z.ZodOptional<z.ZodEnum<{
16348
+ confirmed: "confirmed";
16349
+ moved: "moved";
16350
+ inherited: "inherited";
16351
+ }>>;
16352
+ revision: z.ZodOptional<z.ZodNumber>;
16353
+ currencyFence: z.ZodOptional<z.ZodNumber>;
14626
16354
  model: z.ZodOptional<z.ZodString>;
14627
16355
  cwd: z.ZodOptional<z.ZodString>;
14628
16356
  allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -14643,6 +16371,7 @@ declare const SessionStorageNamespace$1: ContractStorageNamespaceDefinition<"ses
14643
16371
  status: z.ZodEnum<{
14644
16372
  idle: "idle";
14645
16373
  active: "active";
16374
+ starting: "starting";
14646
16375
  dead: "dead";
14647
16376
  disposed: "disposed";
14648
16377
  }>;
@@ -14650,8 +16379,8 @@ declare const SessionStorageNamespace$1: ContractStorageNamespaceDefinition<"ses
14650
16379
  lastActivityAt: z.ZodNumber;
14651
16380
  }, z.core.$strip>>;
14652
16381
  status: z.ZodEnum<{
14653
- discovered: "discovered";
14654
16382
  closed: "closed";
16383
+ discovered: "discovered";
14655
16384
  active: "active";
14656
16385
  archived: "archived";
14657
16386
  }>;
@@ -14674,6 +16403,12 @@ declare const SessionStorageNamespace$1: ContractStorageNamespaceDefinition<"ses
14674
16403
  }>>;
14675
16404
  adapterName: z.ZodOptional<z.ZodString>;
14676
16405
  adapterSessionId: z.ZodOptional<z.ZodString>;
16406
+ currentAdapterSessionId: z.ZodOptional<z.ZodString>;
16407
+ currentAdapterSessionIdState: z.ZodOptional<z.ZodEnum<{
16408
+ confirmed: "confirmed";
16409
+ moved: "moved";
16410
+ inherited: "inherited";
16411
+ }>>;
14677
16412
  adapterId: z.ZodOptional<z.ZodString>;
14678
16413
  clientId: z.ZodOptional<z.ZodString>;
14679
16414
  clientAccountId: z.ZodOptional<z.ZodString>;
@@ -14750,7 +16485,20 @@ declare const SessionStorageNamespace$1: ContractStorageNamespaceDefinition<"ses
14750
16485
  adapterId: z.ZodString;
14751
16486
  adapterName: z.ZodString;
14752
16487
  sessionId: z.ZodString;
16488
+ runtimeOwner: z.ZodOptional<z.ZodObject<{
16489
+ machineId: z.ZodString;
16490
+ instanceId: z.ZodString;
16491
+ }, z.core.$strip>>;
16492
+ recoveryAttemptId: z.ZodOptional<z.ZodString>;
14753
16493
  adapterSessionId: z.ZodOptional<z.ZodString>;
16494
+ currentAdapterSessionId: z.ZodOptional<z.ZodString>;
16495
+ currentAdapterSessionIdState: z.ZodOptional<z.ZodEnum<{
16496
+ confirmed: "confirmed";
16497
+ moved: "moved";
16498
+ inherited: "inherited";
16499
+ }>>;
16500
+ revision: z.ZodOptional<z.ZodNumber>;
16501
+ currencyFence: z.ZodOptional<z.ZodNumber>;
14754
16502
  model: z.ZodOptional<z.ZodString>;
14755
16503
  cwd: z.ZodOptional<z.ZodString>;
14756
16504
  allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -14771,6 +16519,7 @@ declare const SessionStorageNamespace$1: ContractStorageNamespaceDefinition<"ses
14771
16519
  status: z.ZodEnum<{
14772
16520
  idle: "idle";
14773
16521
  active: "active";
16522
+ starting: "starting";
14774
16523
  dead: "dead";
14775
16524
  disposed: "disposed";
14776
16525
  }>;
@@ -14778,8 +16527,8 @@ declare const SessionStorageNamespace$1: ContractStorageNamespaceDefinition<"ses
14778
16527
  lastActivityAt: z.ZodNumber;
14779
16528
  }, z.core.$strip>>;
14780
16529
  status: z.ZodEnum<{
14781
- discovered: "discovered";
14782
16530
  closed: "closed";
16531
+ discovered: "discovered";
14783
16532
  active: "active";
14784
16533
  archived: "archived";
14785
16534
  }>;
@@ -14802,6 +16551,12 @@ declare const SessionStorageNamespace$1: ContractStorageNamespaceDefinition<"ses
14802
16551
  }>>;
14803
16552
  adapterName: z.ZodOptional<z.ZodString>;
14804
16553
  adapterSessionId: z.ZodOptional<z.ZodString>;
16554
+ currentAdapterSessionId: z.ZodOptional<z.ZodString>;
16555
+ currentAdapterSessionIdState: z.ZodOptional<z.ZodEnum<{
16556
+ confirmed: "confirmed";
16557
+ moved: "moved";
16558
+ inherited: "inherited";
16559
+ }>>;
14805
16560
  adapterId: z.ZodOptional<z.ZodString>;
14806
16561
  clientId: z.ZodOptional<z.ZodString>;
14807
16562
  clientAccountId: z.ZodOptional<z.ZodString>;
@@ -14889,8 +16644,8 @@ declare const SessionStorageNamespace$1: ContractStorageNamespaceDefinition<"ses
14889
16644
  request: z.ZodObject<{
14890
16645
  status: z.ZodOptional<z.ZodEnum<{
14891
16646
  all: "all";
14892
- discovered: "discovered";
14893
16647
  closed: "closed";
16648
+ discovered: "discovered";
14894
16649
  active: "active";
14895
16650
  archived: "archived";
14896
16651
  }>>;
@@ -14909,7 +16664,20 @@ declare const SessionStorageNamespace$1: ContractStorageNamespaceDefinition<"ses
14909
16664
  adapterId: z.ZodString;
14910
16665
  adapterName: z.ZodString;
14911
16666
  sessionId: z.ZodString;
16667
+ runtimeOwner: z.ZodOptional<z.ZodObject<{
16668
+ machineId: z.ZodString;
16669
+ instanceId: z.ZodString;
16670
+ }, z.core.$strip>>;
16671
+ recoveryAttemptId: z.ZodOptional<z.ZodString>;
14912
16672
  adapterSessionId: z.ZodOptional<z.ZodString>;
16673
+ currentAdapterSessionId: z.ZodOptional<z.ZodString>;
16674
+ currentAdapterSessionIdState: z.ZodOptional<z.ZodEnum<{
16675
+ confirmed: "confirmed";
16676
+ moved: "moved";
16677
+ inherited: "inherited";
16678
+ }>>;
16679
+ revision: z.ZodOptional<z.ZodNumber>;
16680
+ currencyFence: z.ZodOptional<z.ZodNumber>;
14913
16681
  model: z.ZodOptional<z.ZodString>;
14914
16682
  cwd: z.ZodOptional<z.ZodString>;
14915
16683
  allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -14930,6 +16698,7 @@ declare const SessionStorageNamespace$1: ContractStorageNamespaceDefinition<"ses
14930
16698
  status: z.ZodEnum<{
14931
16699
  idle: "idle";
14932
16700
  active: "active";
16701
+ starting: "starting";
14933
16702
  dead: "dead";
14934
16703
  disposed: "disposed";
14935
16704
  }>;
@@ -14937,8 +16706,8 @@ declare const SessionStorageNamespace$1: ContractStorageNamespaceDefinition<"ses
14937
16706
  lastActivityAt: z.ZodNumber;
14938
16707
  }, z.core.$strip>>;
14939
16708
  status: z.ZodEnum<{
14940
- discovered: "discovered";
14941
16709
  closed: "closed";
16710
+ discovered: "discovered";
14942
16711
  active: "active";
14943
16712
  archived: "archived";
14944
16713
  }>;
@@ -14961,6 +16730,12 @@ declare const SessionStorageNamespace$1: ContractStorageNamespaceDefinition<"ses
14961
16730
  }>>;
14962
16731
  adapterName: z.ZodOptional<z.ZodString>;
14963
16732
  adapterSessionId: z.ZodOptional<z.ZodString>;
16733
+ currentAdapterSessionId: z.ZodOptional<z.ZodString>;
16734
+ currentAdapterSessionIdState: z.ZodOptional<z.ZodEnum<{
16735
+ confirmed: "confirmed";
16736
+ moved: "moved";
16737
+ inherited: "inherited";
16738
+ }>>;
14964
16739
  adapterId: z.ZodOptional<z.ZodString>;
14965
16740
  clientId: z.ZodOptional<z.ZodString>;
14966
16741
  clientAccountId: z.ZodOptional<z.ZodString>;
@@ -15067,8 +16842,8 @@ declare const SessionStorageNamespace$1: ContractStorageNamespaceDefinition<"ses
15067
16842
  limit: z.ZodOptional<z.ZodNumber>;
15068
16843
  status: z.ZodOptional<z.ZodEnum<{
15069
16844
  all: "all";
15070
- discovered: "discovered";
15071
16845
  closed: "closed";
16846
+ discovered: "discovered";
15072
16847
  active: "active";
15073
16848
  archived: "archived";
15074
16849
  }>>;
@@ -15084,7 +16859,20 @@ declare const SessionStorageNamespace$1: ContractStorageNamespaceDefinition<"ses
15084
16859
  adapterId: z.ZodString;
15085
16860
  adapterName: z.ZodString;
15086
16861
  sessionId: z.ZodString;
16862
+ runtimeOwner: z.ZodOptional<z.ZodObject<{
16863
+ machineId: z.ZodString;
16864
+ instanceId: z.ZodString;
16865
+ }, z.core.$strip>>;
16866
+ recoveryAttemptId: z.ZodOptional<z.ZodString>;
15087
16867
  adapterSessionId: z.ZodOptional<z.ZodString>;
16868
+ currentAdapterSessionId: z.ZodOptional<z.ZodString>;
16869
+ currentAdapterSessionIdState: z.ZodOptional<z.ZodEnum<{
16870
+ confirmed: "confirmed";
16871
+ moved: "moved";
16872
+ inherited: "inherited";
16873
+ }>>;
16874
+ revision: z.ZodOptional<z.ZodNumber>;
16875
+ currencyFence: z.ZodOptional<z.ZodNumber>;
15088
16876
  model: z.ZodOptional<z.ZodString>;
15089
16877
  cwd: z.ZodOptional<z.ZodString>;
15090
16878
  allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -15105,6 +16893,7 @@ declare const SessionStorageNamespace$1: ContractStorageNamespaceDefinition<"ses
15105
16893
  status: z.ZodEnum<{
15106
16894
  idle: "idle";
15107
16895
  active: "active";
16896
+ starting: "starting";
15108
16897
  dead: "dead";
15109
16898
  disposed: "disposed";
15110
16899
  }>;
@@ -15112,8 +16901,8 @@ declare const SessionStorageNamespace$1: ContractStorageNamespaceDefinition<"ses
15112
16901
  lastActivityAt: z.ZodNumber;
15113
16902
  }, z.core.$strip>>;
15114
16903
  status: z.ZodEnum<{
15115
- discovered: "discovered";
15116
16904
  closed: "closed";
16905
+ discovered: "discovered";
15117
16906
  active: "active";
15118
16907
  archived: "archived";
15119
16908
  }>;
@@ -15136,6 +16925,12 @@ declare const SessionStorageNamespace$1: ContractStorageNamespaceDefinition<"ses
15136
16925
  }>>;
15137
16926
  adapterName: z.ZodOptional<z.ZodString>;
15138
16927
  adapterSessionId: z.ZodOptional<z.ZodString>;
16928
+ currentAdapterSessionId: z.ZodOptional<z.ZodString>;
16929
+ currentAdapterSessionIdState: z.ZodOptional<z.ZodEnum<{
16930
+ confirmed: "confirmed";
16931
+ moved: "moved";
16932
+ inherited: "inherited";
16933
+ }>>;
15139
16934
  adapterId: z.ZodOptional<z.ZodString>;
15140
16935
  clientId: z.ZodOptional<z.ZodString>;
15141
16936
  clientAccountId: z.ZodOptional<z.ZodString>;
@@ -15209,12 +17004,18 @@ declare const SessionStorageNamespace$1: ContractStorageNamespaceDefinition<"ses
15209
17004
  request: z.ZodObject<{
15210
17005
  sessionId: z.ZodString;
15211
17006
  status: z.ZodOptional<z.ZodEnum<{
15212
- discovered: "discovered";
15213
17007
  closed: "closed";
17008
+ discovered: "discovered";
15214
17009
  active: "active";
15215
17010
  archived: "archived";
15216
17011
  }>>;
15217
- parentSessionId: z.ZodOptional<z.ZodString>;
17012
+ expectedStatus: z.ZodOptional<z.ZodArray<z.ZodEnum<{
17013
+ closed: "closed";
17014
+ discovered: "discovered";
17015
+ active: "active";
17016
+ archived: "archived";
17017
+ }>>>;
17018
+ parentSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15218
17019
  contextInheritance: z.ZodOptional<z.ZodEnum<{
15219
17020
  none: "none";
15220
17021
  "parent-history": "parent-history";
@@ -15253,6 +17054,19 @@ declare const SessionStorageNamespace$1: ContractStorageNamespaceDefinition<"ses
15253
17054
  metadata: z.ZodOptional<z.ZodNullable<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>>>>>;
15254
17055
  spawningToolCallId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15255
17056
  machineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17057
+ identity: z.ZodOptional<z.ZodObject<{
17058
+ adapterName: z.ZodString;
17059
+ adapterId: z.ZodString;
17060
+ adapterSessionId: z.ZodOptional<z.ZodString>;
17061
+ }, z.core.$strip>>;
17062
+ expectIdentityOpenForLead: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17063
+ reconcileAdapterSession: z.ZodOptional<z.ZodObject<{
17064
+ agentId: z.ZodString;
17065
+ adapterName: z.ZodString;
17066
+ adapterId: z.ZodString;
17067
+ adapterSessionId: z.ZodString;
17068
+ lastActivityAt: z.ZodNumber;
17069
+ }, z.core.$strip>>;
15256
17070
  }, z.core.$strip>;
15257
17071
  response: z.ZodObject<{
15258
17072
  success: z.ZodBoolean;
@@ -15281,7 +17095,20 @@ declare const SessionStorageNamespace$1: ContractStorageNamespaceDefinition<"ses
15281
17095
  adapterId: z.ZodString;
15282
17096
  adapterName: z.ZodString;
15283
17097
  sessionId: z.ZodString;
17098
+ runtimeOwner: z.ZodOptional<z.ZodObject<{
17099
+ machineId: z.ZodString;
17100
+ instanceId: z.ZodString;
17101
+ }, z.core.$strip>>;
17102
+ recoveryAttemptId: z.ZodOptional<z.ZodString>;
15284
17103
  adapterSessionId: z.ZodOptional<z.ZodString>;
17104
+ currentAdapterSessionId: z.ZodOptional<z.ZodString>;
17105
+ currentAdapterSessionIdState: z.ZodOptional<z.ZodEnum<{
17106
+ confirmed: "confirmed";
17107
+ moved: "moved";
17108
+ inherited: "inherited";
17109
+ }>>;
17110
+ revision: z.ZodOptional<z.ZodNumber>;
17111
+ currencyFence: z.ZodOptional<z.ZodNumber>;
15285
17112
  model: z.ZodOptional<z.ZodString>;
15286
17113
  cwd: z.ZodOptional<z.ZodString>;
15287
17114
  allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -15302,6 +17129,7 @@ declare const SessionStorageNamespace$1: ContractStorageNamespaceDefinition<"ses
15302
17129
  status: z.ZodEnum<{
15303
17130
  idle: "idle";
15304
17131
  active: "active";
17132
+ starting: "starting";
15305
17133
  dead: "dead";
15306
17134
  disposed: "disposed";
15307
17135
  }>;
@@ -15309,8 +17137,8 @@ declare const SessionStorageNamespace$1: ContractStorageNamespaceDefinition<"ses
15309
17137
  lastActivityAt: z.ZodNumber;
15310
17138
  }, z.core.$strip>>;
15311
17139
  status: z.ZodEnum<{
15312
- discovered: "discovered";
15313
17140
  closed: "closed";
17141
+ discovered: "discovered";
15314
17142
  active: "active";
15315
17143
  archived: "archived";
15316
17144
  }>;
@@ -15333,6 +17161,12 @@ declare const SessionStorageNamespace$1: ContractStorageNamespaceDefinition<"ses
15333
17161
  }>>;
15334
17162
  adapterName: z.ZodOptional<z.ZodString>;
15335
17163
  adapterSessionId: z.ZodOptional<z.ZodString>;
17164
+ currentAdapterSessionId: z.ZodOptional<z.ZodString>;
17165
+ currentAdapterSessionIdState: z.ZodOptional<z.ZodEnum<{
17166
+ confirmed: "confirmed";
17167
+ moved: "moved";
17168
+ inherited: "inherited";
17169
+ }>>;
15336
17170
  adapterId: z.ZodOptional<z.ZodString>;
15337
17171
  clientId: z.ZodOptional<z.ZodString>;
15338
17172
  clientAccountId: z.ZodOptional<z.ZodString>;
@@ -15540,6 +17374,31 @@ declare const SessionStorageNamespace$1: ContractStorageNamespaceDefinition<"ses
15540
17374
  created: z.ZodBoolean;
15541
17375
  }, z.core.$strip>;
15542
17376
  };
17377
+ /**
17378
+ * Rebind an already known observed session to the runtime that just
17379
+ * continued it (resume/compact).
17380
+ *
17381
+ * Refreshes runtime/locality columns only and reports a miss instead of
17382
+ * creating a row — see {@link SessionStorageRebindObservedRequestSchema}.
17383
+ *
17384
+ * Subject: `storage:session.rebindObserved`
17385
+ * Type: Request (RPC)
17386
+ */
17387
+ rebindObserved: {
17388
+ request: z.ZodObject<{
17389
+ externalSessionId: z.ZodString;
17390
+ source: z.ZodString;
17391
+ cwd: z.ZodOptional<z.ZodString>;
17392
+ logFilePath: z.ZodOptional<z.ZodString>;
17393
+ machineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17394
+ }, z.core.$strip>;
17395
+ response: z.ZodDiscriminatedUnion<[z.ZodObject<{
17396
+ outcome: z.ZodLiteral<"rebound">;
17397
+ sessionId: z.ZodString;
17398
+ }, z.core.$strip>, z.ZodObject<{
17399
+ outcome: z.ZodLiteral<"not-found">;
17400
+ }, z.core.$strip>], "outcome">;
17401
+ };
15543
17402
  /**
15544
17403
  * Get a session by its source log file path.
15545
17404
  * Used by the discovery orchestrator for cursor resumption.
@@ -15561,7 +17420,20 @@ declare const SessionStorageNamespace$1: ContractStorageNamespaceDefinition<"ses
15561
17420
  adapterId: z.ZodString;
15562
17421
  adapterName: z.ZodString;
15563
17422
  sessionId: z.ZodString;
17423
+ runtimeOwner: z.ZodOptional<z.ZodObject<{
17424
+ machineId: z.ZodString;
17425
+ instanceId: z.ZodString;
17426
+ }, z.core.$strip>>;
17427
+ recoveryAttemptId: z.ZodOptional<z.ZodString>;
15564
17428
  adapterSessionId: z.ZodOptional<z.ZodString>;
17429
+ currentAdapterSessionId: z.ZodOptional<z.ZodString>;
17430
+ currentAdapterSessionIdState: z.ZodOptional<z.ZodEnum<{
17431
+ confirmed: "confirmed";
17432
+ moved: "moved";
17433
+ inherited: "inherited";
17434
+ }>>;
17435
+ revision: z.ZodOptional<z.ZodNumber>;
17436
+ currencyFence: z.ZodOptional<z.ZodNumber>;
15565
17437
  model: z.ZodOptional<z.ZodString>;
15566
17438
  cwd: z.ZodOptional<z.ZodString>;
15567
17439
  allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -15582,6 +17454,7 @@ declare const SessionStorageNamespace$1: ContractStorageNamespaceDefinition<"ses
15582
17454
  status: z.ZodEnum<{
15583
17455
  idle: "idle";
15584
17456
  active: "active";
17457
+ starting: "starting";
15585
17458
  dead: "dead";
15586
17459
  disposed: "disposed";
15587
17460
  }>;
@@ -15589,8 +17462,8 @@ declare const SessionStorageNamespace$1: ContractStorageNamespaceDefinition<"ses
15589
17462
  lastActivityAt: z.ZodNumber;
15590
17463
  }, z.core.$strip>>;
15591
17464
  status: z.ZodEnum<{
15592
- discovered: "discovered";
15593
17465
  closed: "closed";
17466
+ discovered: "discovered";
15594
17467
  active: "active";
15595
17468
  archived: "archived";
15596
17469
  }>;
@@ -15613,6 +17486,12 @@ declare const SessionStorageNamespace$1: ContractStorageNamespaceDefinition<"ses
15613
17486
  }>>;
15614
17487
  adapterName: z.ZodOptional<z.ZodString>;
15615
17488
  adapterSessionId: z.ZodOptional<z.ZodString>;
17489
+ currentAdapterSessionId: z.ZodOptional<z.ZodString>;
17490
+ currentAdapterSessionIdState: z.ZodOptional<z.ZodEnum<{
17491
+ confirmed: "confirmed";
17492
+ moved: "moved";
17493
+ inherited: "inherited";
17494
+ }>>;
15616
17495
  adapterId: z.ZodOptional<z.ZodString>;
15617
17496
  clientId: z.ZodOptional<z.ZodString>;
15618
17497
  clientAccountId: z.ZodOptional<z.ZodString>;
@@ -15696,7 +17575,20 @@ declare const SessionStorageNamespace$1: ContractStorageNamespaceDefinition<"ses
15696
17575
  adapterId: z.ZodString;
15697
17576
  adapterName: z.ZodString;
15698
17577
  sessionId: z.ZodString;
17578
+ runtimeOwner: z.ZodOptional<z.ZodObject<{
17579
+ machineId: z.ZodString;
17580
+ instanceId: z.ZodString;
17581
+ }, z.core.$strip>>;
17582
+ recoveryAttemptId: z.ZodOptional<z.ZodString>;
15699
17583
  adapterSessionId: z.ZodOptional<z.ZodString>;
17584
+ currentAdapterSessionId: z.ZodOptional<z.ZodString>;
17585
+ currentAdapterSessionIdState: z.ZodOptional<z.ZodEnum<{
17586
+ confirmed: "confirmed";
17587
+ moved: "moved";
17588
+ inherited: "inherited";
17589
+ }>>;
17590
+ revision: z.ZodOptional<z.ZodNumber>;
17591
+ currencyFence: z.ZodOptional<z.ZodNumber>;
15700
17592
  model: z.ZodOptional<z.ZodString>;
15701
17593
  cwd: z.ZodOptional<z.ZodString>;
15702
17594
  allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -15717,6 +17609,7 @@ declare const SessionStorageNamespace$1: ContractStorageNamespaceDefinition<"ses
15717
17609
  status: z.ZodEnum<{
15718
17610
  idle: "idle";
15719
17611
  active: "active";
17612
+ starting: "starting";
15720
17613
  dead: "dead";
15721
17614
  disposed: "disposed";
15722
17615
  }>;
@@ -15724,8 +17617,8 @@ declare const SessionStorageNamespace$1: ContractStorageNamespaceDefinition<"ses
15724
17617
  lastActivityAt: z.ZodNumber;
15725
17618
  }, z.core.$strip>>;
15726
17619
  status: z.ZodEnum<{
15727
- discovered: "discovered";
15728
17620
  closed: "closed";
17621
+ discovered: "discovered";
15729
17622
  active: "active";
15730
17623
  archived: "archived";
15731
17624
  }>;
@@ -15748,6 +17641,12 @@ declare const SessionStorageNamespace$1: ContractStorageNamespaceDefinition<"ses
15748
17641
  }>>;
15749
17642
  adapterName: z.ZodOptional<z.ZodString>;
15750
17643
  adapterSessionId: z.ZodOptional<z.ZodString>;
17644
+ currentAdapterSessionId: z.ZodOptional<z.ZodString>;
17645
+ currentAdapterSessionIdState: z.ZodOptional<z.ZodEnum<{
17646
+ confirmed: "confirmed";
17647
+ moved: "moved";
17648
+ inherited: "inherited";
17649
+ }>>;
15751
17650
  adapterId: z.ZodOptional<z.ZodString>;
15752
17651
  clientId: z.ZodOptional<z.ZodString>;
15753
17652
  clientAccountId: z.ZodOptional<z.ZodString>;
@@ -15869,7 +17768,20 @@ declare const SessionStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
15869
17768
  adapterId: z.ZodString;
15870
17769
  adapterName: z.ZodString;
15871
17770
  sessionId: z.ZodString;
17771
+ runtimeOwner: z.ZodOptional<z.ZodObject<{
17772
+ machineId: z.ZodString;
17773
+ instanceId: z.ZodString;
17774
+ }, z.core.$strip>>;
17775
+ recoveryAttemptId: z.ZodOptional<z.ZodString>;
15872
17776
  adapterSessionId: z.ZodOptional<z.ZodString>;
17777
+ currentAdapterSessionId: z.ZodOptional<z.ZodString>;
17778
+ currentAdapterSessionIdState: z.ZodOptional<z.ZodEnum<{
17779
+ confirmed: "confirmed";
17780
+ moved: "moved";
17781
+ inherited: "inherited";
17782
+ }>>;
17783
+ revision: z.ZodOptional<z.ZodNumber>;
17784
+ currencyFence: z.ZodOptional<z.ZodNumber>;
15873
17785
  model: z.ZodOptional<z.ZodString>;
15874
17786
  cwd: z.ZodOptional<z.ZodString>;
15875
17787
  allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -15890,6 +17802,7 @@ declare const SessionStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
15890
17802
  status: z.ZodEnum<{
15891
17803
  idle: "idle";
15892
17804
  active: "active";
17805
+ starting: "starting";
15893
17806
  dead: "dead";
15894
17807
  disposed: "disposed";
15895
17808
  }>;
@@ -15897,8 +17810,8 @@ declare const SessionStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
15897
17810
  lastActivityAt: z.ZodNumber;
15898
17811
  }, z.core.$strip>>;
15899
17812
  status: z.ZodEnum<{
15900
- discovered: "discovered";
15901
17813
  closed: "closed";
17814
+ discovered: "discovered";
15902
17815
  active: "active";
15903
17816
  archived: "archived";
15904
17817
  }>;
@@ -15921,6 +17834,12 @@ declare const SessionStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
15921
17834
  }>>;
15922
17835
  adapterName: z.ZodOptional<z.ZodString>;
15923
17836
  adapterSessionId: z.ZodOptional<z.ZodString>;
17837
+ currentAdapterSessionId: z.ZodOptional<z.ZodString>;
17838
+ currentAdapterSessionIdState: z.ZodOptional<z.ZodEnum<{
17839
+ confirmed: "confirmed";
17840
+ moved: "moved";
17841
+ inherited: "inherited";
17842
+ }>>;
15924
17843
  adapterId: z.ZodOptional<z.ZodString>;
15925
17844
  clientId: z.ZodOptional<z.ZodString>;
15926
17845
  clientAccountId: z.ZodOptional<z.ZodString>;
@@ -15997,7 +17916,20 @@ declare const SessionStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
15997
17916
  adapterId: z.ZodString;
15998
17917
  adapterName: z.ZodString;
15999
17918
  sessionId: z.ZodString;
17919
+ runtimeOwner: z.ZodOptional<z.ZodObject<{
17920
+ machineId: z.ZodString;
17921
+ instanceId: z.ZodString;
17922
+ }, z.core.$strip>>;
17923
+ recoveryAttemptId: z.ZodOptional<z.ZodString>;
16000
17924
  adapterSessionId: z.ZodOptional<z.ZodString>;
17925
+ currentAdapterSessionId: z.ZodOptional<z.ZodString>;
17926
+ currentAdapterSessionIdState: z.ZodOptional<z.ZodEnum<{
17927
+ confirmed: "confirmed";
17928
+ moved: "moved";
17929
+ inherited: "inherited";
17930
+ }>>;
17931
+ revision: z.ZodOptional<z.ZodNumber>;
17932
+ currencyFence: z.ZodOptional<z.ZodNumber>;
16001
17933
  model: z.ZodOptional<z.ZodString>;
16002
17934
  cwd: z.ZodOptional<z.ZodString>;
16003
17935
  allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -16018,6 +17950,7 @@ declare const SessionStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
16018
17950
  status: z.ZodEnum<{
16019
17951
  idle: "idle";
16020
17952
  active: "active";
17953
+ starting: "starting";
16021
17954
  dead: "dead";
16022
17955
  disposed: "disposed";
16023
17956
  }>;
@@ -16025,8 +17958,8 @@ declare const SessionStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
16025
17958
  lastActivityAt: z.ZodNumber;
16026
17959
  }, z.core.$strip>>;
16027
17960
  status: z.ZodEnum<{
16028
- discovered: "discovered";
16029
17961
  closed: "closed";
17962
+ discovered: "discovered";
16030
17963
  active: "active";
16031
17964
  archived: "archived";
16032
17965
  }>;
@@ -16049,6 +17982,12 @@ declare const SessionStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
16049
17982
  }>>;
16050
17983
  adapterName: z.ZodOptional<z.ZodString>;
16051
17984
  adapterSessionId: z.ZodOptional<z.ZodString>;
17985
+ currentAdapterSessionId: z.ZodOptional<z.ZodString>;
17986
+ currentAdapterSessionIdState: z.ZodOptional<z.ZodEnum<{
17987
+ confirmed: "confirmed";
17988
+ moved: "moved";
17989
+ inherited: "inherited";
17990
+ }>>;
16052
17991
  adapterId: z.ZodOptional<z.ZodString>;
16053
17992
  clientId: z.ZodOptional<z.ZodString>;
16054
17993
  clientAccountId: z.ZodOptional<z.ZodString>;
@@ -16136,8 +18075,8 @@ declare const SessionStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
16136
18075
  request: z.ZodObject<{
16137
18076
  status: z.ZodOptional<z.ZodEnum<{
16138
18077
  all: "all";
16139
- discovered: "discovered";
16140
18078
  closed: "closed";
18079
+ discovered: "discovered";
16141
18080
  active: "active";
16142
18081
  archived: "archived";
16143
18082
  }>>;
@@ -16156,7 +18095,20 @@ declare const SessionStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
16156
18095
  adapterId: z.ZodString;
16157
18096
  adapterName: z.ZodString;
16158
18097
  sessionId: z.ZodString;
18098
+ runtimeOwner: z.ZodOptional<z.ZodObject<{
18099
+ machineId: z.ZodString;
18100
+ instanceId: z.ZodString;
18101
+ }, z.core.$strip>>;
18102
+ recoveryAttemptId: z.ZodOptional<z.ZodString>;
16159
18103
  adapterSessionId: z.ZodOptional<z.ZodString>;
18104
+ currentAdapterSessionId: z.ZodOptional<z.ZodString>;
18105
+ currentAdapterSessionIdState: z.ZodOptional<z.ZodEnum<{
18106
+ confirmed: "confirmed";
18107
+ moved: "moved";
18108
+ inherited: "inherited";
18109
+ }>>;
18110
+ revision: z.ZodOptional<z.ZodNumber>;
18111
+ currencyFence: z.ZodOptional<z.ZodNumber>;
16160
18112
  model: z.ZodOptional<z.ZodString>;
16161
18113
  cwd: z.ZodOptional<z.ZodString>;
16162
18114
  allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -16177,6 +18129,7 @@ declare const SessionStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
16177
18129
  status: z.ZodEnum<{
16178
18130
  idle: "idle";
16179
18131
  active: "active";
18132
+ starting: "starting";
16180
18133
  dead: "dead";
16181
18134
  disposed: "disposed";
16182
18135
  }>;
@@ -16184,8 +18137,8 @@ declare const SessionStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
16184
18137
  lastActivityAt: z.ZodNumber;
16185
18138
  }, z.core.$strip>>;
16186
18139
  status: z.ZodEnum<{
16187
- discovered: "discovered";
16188
18140
  closed: "closed";
18141
+ discovered: "discovered";
16189
18142
  active: "active";
16190
18143
  archived: "archived";
16191
18144
  }>;
@@ -16208,6 +18161,12 @@ declare const SessionStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
16208
18161
  }>>;
16209
18162
  adapterName: z.ZodOptional<z.ZodString>;
16210
18163
  adapterSessionId: z.ZodOptional<z.ZodString>;
18164
+ currentAdapterSessionId: z.ZodOptional<z.ZodString>;
18165
+ currentAdapterSessionIdState: z.ZodOptional<z.ZodEnum<{
18166
+ confirmed: "confirmed";
18167
+ moved: "moved";
18168
+ inherited: "inherited";
18169
+ }>>;
16211
18170
  adapterId: z.ZodOptional<z.ZodString>;
16212
18171
  clientId: z.ZodOptional<z.ZodString>;
16213
18172
  clientAccountId: z.ZodOptional<z.ZodString>;
@@ -16314,8 +18273,8 @@ declare const SessionStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
16314
18273
  limit: z.ZodOptional<z.ZodNumber>;
16315
18274
  status: z.ZodOptional<z.ZodEnum<{
16316
18275
  all: "all";
16317
- discovered: "discovered";
16318
18276
  closed: "closed";
18277
+ discovered: "discovered";
16319
18278
  active: "active";
16320
18279
  archived: "archived";
16321
18280
  }>>;
@@ -16331,7 +18290,20 @@ declare const SessionStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
16331
18290
  adapterId: z.ZodString;
16332
18291
  adapterName: z.ZodString;
16333
18292
  sessionId: z.ZodString;
18293
+ runtimeOwner: z.ZodOptional<z.ZodObject<{
18294
+ machineId: z.ZodString;
18295
+ instanceId: z.ZodString;
18296
+ }, z.core.$strip>>;
18297
+ recoveryAttemptId: z.ZodOptional<z.ZodString>;
16334
18298
  adapterSessionId: z.ZodOptional<z.ZodString>;
18299
+ currentAdapterSessionId: z.ZodOptional<z.ZodString>;
18300
+ currentAdapterSessionIdState: z.ZodOptional<z.ZodEnum<{
18301
+ confirmed: "confirmed";
18302
+ moved: "moved";
18303
+ inherited: "inherited";
18304
+ }>>;
18305
+ revision: z.ZodOptional<z.ZodNumber>;
18306
+ currencyFence: z.ZodOptional<z.ZodNumber>;
16335
18307
  model: z.ZodOptional<z.ZodString>;
16336
18308
  cwd: z.ZodOptional<z.ZodString>;
16337
18309
  allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -16352,6 +18324,7 @@ declare const SessionStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
16352
18324
  status: z.ZodEnum<{
16353
18325
  idle: "idle";
16354
18326
  active: "active";
18327
+ starting: "starting";
16355
18328
  dead: "dead";
16356
18329
  disposed: "disposed";
16357
18330
  }>;
@@ -16359,8 +18332,8 @@ declare const SessionStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
16359
18332
  lastActivityAt: z.ZodNumber;
16360
18333
  }, z.core.$strip>>;
16361
18334
  status: z.ZodEnum<{
16362
- discovered: "discovered";
16363
18335
  closed: "closed";
18336
+ discovered: "discovered";
16364
18337
  active: "active";
16365
18338
  archived: "archived";
16366
18339
  }>;
@@ -16383,6 +18356,12 @@ declare const SessionStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
16383
18356
  }>>;
16384
18357
  adapterName: z.ZodOptional<z.ZodString>;
16385
18358
  adapterSessionId: z.ZodOptional<z.ZodString>;
18359
+ currentAdapterSessionId: z.ZodOptional<z.ZodString>;
18360
+ currentAdapterSessionIdState: z.ZodOptional<z.ZodEnum<{
18361
+ confirmed: "confirmed";
18362
+ moved: "moved";
18363
+ inherited: "inherited";
18364
+ }>>;
16386
18365
  adapterId: z.ZodOptional<z.ZodString>;
16387
18366
  clientId: z.ZodOptional<z.ZodString>;
16388
18367
  clientAccountId: z.ZodOptional<z.ZodString>;
@@ -16456,12 +18435,18 @@ declare const SessionStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
16456
18435
  request: z.ZodObject<{
16457
18436
  sessionId: z.ZodString;
16458
18437
  status: z.ZodOptional<z.ZodEnum<{
16459
- discovered: "discovered";
16460
18438
  closed: "closed";
18439
+ discovered: "discovered";
16461
18440
  active: "active";
16462
18441
  archived: "archived";
16463
18442
  }>>;
16464
- parentSessionId: z.ZodOptional<z.ZodString>;
18443
+ expectedStatus: z.ZodOptional<z.ZodArray<z.ZodEnum<{
18444
+ closed: "closed";
18445
+ discovered: "discovered";
18446
+ active: "active";
18447
+ archived: "archived";
18448
+ }>>>;
18449
+ parentSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16465
18450
  contextInheritance: z.ZodOptional<z.ZodEnum<{
16466
18451
  none: "none";
16467
18452
  "parent-history": "parent-history";
@@ -16500,6 +18485,19 @@ declare const SessionStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
16500
18485
  metadata: z.ZodOptional<z.ZodNullable<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>>>>>;
16501
18486
  spawningToolCallId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16502
18487
  machineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18488
+ identity: z.ZodOptional<z.ZodObject<{
18489
+ adapterName: z.ZodString;
18490
+ adapterId: z.ZodString;
18491
+ adapterSessionId: z.ZodOptional<z.ZodString>;
18492
+ }, z.core.$strip>>;
18493
+ expectIdentityOpenForLead: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18494
+ reconcileAdapterSession: z.ZodOptional<z.ZodObject<{
18495
+ agentId: z.ZodString;
18496
+ adapterName: z.ZodString;
18497
+ adapterId: z.ZodString;
18498
+ adapterSessionId: z.ZodString;
18499
+ lastActivityAt: z.ZodNumber;
18500
+ }, z.core.$strip>>;
16503
18501
  }, z.core.$strip>;
16504
18502
  response: z.ZodObject<{
16505
18503
  success: z.ZodBoolean;
@@ -16528,7 +18526,20 @@ declare const SessionStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
16528
18526
  adapterId: z.ZodString;
16529
18527
  adapterName: z.ZodString;
16530
18528
  sessionId: z.ZodString;
18529
+ runtimeOwner: z.ZodOptional<z.ZodObject<{
18530
+ machineId: z.ZodString;
18531
+ instanceId: z.ZodString;
18532
+ }, z.core.$strip>>;
18533
+ recoveryAttemptId: z.ZodOptional<z.ZodString>;
16531
18534
  adapterSessionId: z.ZodOptional<z.ZodString>;
18535
+ currentAdapterSessionId: z.ZodOptional<z.ZodString>;
18536
+ currentAdapterSessionIdState: z.ZodOptional<z.ZodEnum<{
18537
+ confirmed: "confirmed";
18538
+ moved: "moved";
18539
+ inherited: "inherited";
18540
+ }>>;
18541
+ revision: z.ZodOptional<z.ZodNumber>;
18542
+ currencyFence: z.ZodOptional<z.ZodNumber>;
16532
18543
  model: z.ZodOptional<z.ZodString>;
16533
18544
  cwd: z.ZodOptional<z.ZodString>;
16534
18545
  allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -16549,6 +18560,7 @@ declare const SessionStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
16549
18560
  status: z.ZodEnum<{
16550
18561
  idle: "idle";
16551
18562
  active: "active";
18563
+ starting: "starting";
16552
18564
  dead: "dead";
16553
18565
  disposed: "disposed";
16554
18566
  }>;
@@ -16556,8 +18568,8 @@ declare const SessionStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
16556
18568
  lastActivityAt: z.ZodNumber;
16557
18569
  }, z.core.$strip>>;
16558
18570
  status: z.ZodEnum<{
16559
- discovered: "discovered";
16560
18571
  closed: "closed";
18572
+ discovered: "discovered";
16561
18573
  active: "active";
16562
18574
  archived: "archived";
16563
18575
  }>;
@@ -16580,6 +18592,12 @@ declare const SessionStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
16580
18592
  }>>;
16581
18593
  adapterName: z.ZodOptional<z.ZodString>;
16582
18594
  adapterSessionId: z.ZodOptional<z.ZodString>;
18595
+ currentAdapterSessionId: z.ZodOptional<z.ZodString>;
18596
+ currentAdapterSessionIdState: z.ZodOptional<z.ZodEnum<{
18597
+ confirmed: "confirmed";
18598
+ moved: "moved";
18599
+ inherited: "inherited";
18600
+ }>>;
16583
18601
  adapterId: z.ZodOptional<z.ZodString>;
16584
18602
  clientId: z.ZodOptional<z.ZodString>;
16585
18603
  clientAccountId: z.ZodOptional<z.ZodString>;
@@ -16787,6 +18805,31 @@ declare const SessionStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
16787
18805
  created: z.ZodBoolean;
16788
18806
  }, z.core.$strip>;
16789
18807
  };
18808
+ /**
18809
+ * Rebind an already known observed session to the runtime that just
18810
+ * continued it (resume/compact).
18811
+ *
18812
+ * Refreshes runtime/locality columns only and reports a miss instead of
18813
+ * creating a row — see {@link SessionStorageRebindObservedRequestSchema}.
18814
+ *
18815
+ * Subject: `storage:session.rebindObserved`
18816
+ * Type: Request (RPC)
18817
+ */
18818
+ rebindObserved: {
18819
+ request: z.ZodObject<{
18820
+ externalSessionId: z.ZodString;
18821
+ source: z.ZodString;
18822
+ cwd: z.ZodOptional<z.ZodString>;
18823
+ logFilePath: z.ZodOptional<z.ZodString>;
18824
+ machineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18825
+ }, z.core.$strip>;
18826
+ response: z.ZodDiscriminatedUnion<[z.ZodObject<{
18827
+ outcome: z.ZodLiteral<"rebound">;
18828
+ sessionId: z.ZodString;
18829
+ }, z.core.$strip>, z.ZodObject<{
18830
+ outcome: z.ZodLiteral<"not-found">;
18831
+ }, z.core.$strip>], "outcome">;
18832
+ };
16790
18833
  /**
16791
18834
  * Get a session by its source log file path.
16792
18835
  * Used by the discovery orchestrator for cursor resumption.
@@ -16808,7 +18851,20 @@ declare const SessionStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
16808
18851
  adapterId: z.ZodString;
16809
18852
  adapterName: z.ZodString;
16810
18853
  sessionId: z.ZodString;
18854
+ runtimeOwner: z.ZodOptional<z.ZodObject<{
18855
+ machineId: z.ZodString;
18856
+ instanceId: z.ZodString;
18857
+ }, z.core.$strip>>;
18858
+ recoveryAttemptId: z.ZodOptional<z.ZodString>;
16811
18859
  adapterSessionId: z.ZodOptional<z.ZodString>;
18860
+ currentAdapterSessionId: z.ZodOptional<z.ZodString>;
18861
+ currentAdapterSessionIdState: z.ZodOptional<z.ZodEnum<{
18862
+ confirmed: "confirmed";
18863
+ moved: "moved";
18864
+ inherited: "inherited";
18865
+ }>>;
18866
+ revision: z.ZodOptional<z.ZodNumber>;
18867
+ currencyFence: z.ZodOptional<z.ZodNumber>;
16812
18868
  model: z.ZodOptional<z.ZodString>;
16813
18869
  cwd: z.ZodOptional<z.ZodString>;
16814
18870
  allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -16829,6 +18885,7 @@ declare const SessionStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
16829
18885
  status: z.ZodEnum<{
16830
18886
  idle: "idle";
16831
18887
  active: "active";
18888
+ starting: "starting";
16832
18889
  dead: "dead";
16833
18890
  disposed: "disposed";
16834
18891
  }>;
@@ -16836,8 +18893,8 @@ declare const SessionStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
16836
18893
  lastActivityAt: z.ZodNumber;
16837
18894
  }, z.core.$strip>>;
16838
18895
  status: z.ZodEnum<{
16839
- discovered: "discovered";
16840
18896
  closed: "closed";
18897
+ discovered: "discovered";
16841
18898
  active: "active";
16842
18899
  archived: "archived";
16843
18900
  }>;
@@ -16860,6 +18917,12 @@ declare const SessionStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
16860
18917
  }>>;
16861
18918
  adapterName: z.ZodOptional<z.ZodString>;
16862
18919
  adapterSessionId: z.ZodOptional<z.ZodString>;
18920
+ currentAdapterSessionId: z.ZodOptional<z.ZodString>;
18921
+ currentAdapterSessionIdState: z.ZodOptional<z.ZodEnum<{
18922
+ confirmed: "confirmed";
18923
+ moved: "moved";
18924
+ inherited: "inherited";
18925
+ }>>;
16863
18926
  adapterId: z.ZodOptional<z.ZodString>;
16864
18927
  clientId: z.ZodOptional<z.ZodString>;
16865
18928
  clientAccountId: z.ZodOptional<z.ZodString>;
@@ -16943,7 +19006,20 @@ declare const SessionStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
16943
19006
  adapterId: z.ZodString;
16944
19007
  adapterName: z.ZodString;
16945
19008
  sessionId: z.ZodString;
19009
+ runtimeOwner: z.ZodOptional<z.ZodObject<{
19010
+ machineId: z.ZodString;
19011
+ instanceId: z.ZodString;
19012
+ }, z.core.$strip>>;
19013
+ recoveryAttemptId: z.ZodOptional<z.ZodString>;
16946
19014
  adapterSessionId: z.ZodOptional<z.ZodString>;
19015
+ currentAdapterSessionId: z.ZodOptional<z.ZodString>;
19016
+ currentAdapterSessionIdState: z.ZodOptional<z.ZodEnum<{
19017
+ confirmed: "confirmed";
19018
+ moved: "moved";
19019
+ inherited: "inherited";
19020
+ }>>;
19021
+ revision: z.ZodOptional<z.ZodNumber>;
19022
+ currencyFence: z.ZodOptional<z.ZodNumber>;
16947
19023
  model: z.ZodOptional<z.ZodString>;
16948
19024
  cwd: z.ZodOptional<z.ZodString>;
16949
19025
  allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -16964,6 +19040,7 @@ declare const SessionStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
16964
19040
  status: z.ZodEnum<{
16965
19041
  idle: "idle";
16966
19042
  active: "active";
19043
+ starting: "starting";
16967
19044
  dead: "dead";
16968
19045
  disposed: "disposed";
16969
19046
  }>;
@@ -16971,8 +19048,8 @@ declare const SessionStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
16971
19048
  lastActivityAt: z.ZodNumber;
16972
19049
  }, z.core.$strip>>;
16973
19050
  status: z.ZodEnum<{
16974
- discovered: "discovered";
16975
19051
  closed: "closed";
19052
+ discovered: "discovered";
16976
19053
  active: "active";
16977
19054
  archived: "archived";
16978
19055
  }>;
@@ -16995,6 +19072,12 @@ declare const SessionStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
16995
19072
  }>>;
16996
19073
  adapterName: z.ZodOptional<z.ZodString>;
16997
19074
  adapterSessionId: z.ZodOptional<z.ZodString>;
19075
+ currentAdapterSessionId: z.ZodOptional<z.ZodString>;
19076
+ currentAdapterSessionIdState: z.ZodOptional<z.ZodEnum<{
19077
+ confirmed: "confirmed";
19078
+ moved: "moved";
19079
+ inherited: "inherited";
19080
+ }>>;
16998
19081
  adapterId: z.ZodOptional<z.ZodString>;
16999
19082
  clientId: z.ZodOptional<z.ZodString>;
17000
19083
  clientAccountId: z.ZodOptional<z.ZodString>;
@@ -17093,6 +19176,115 @@ declare const SessionStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
17093
19176
  };
17094
19177
  }>, "storage:session">;
17095
19178
  //#endregion
19179
+ //#region core/contracts/src/session/session-ownership-designation-mutation.d.ts
19180
+ /** Lead designation flags accepted by the ownership claim contract. */
19181
+ interface SessionOwnershipLeadDesignationMutation {
19182
+ readonly expectedLeadAgentId: string | null;
19183
+ readonly clear?: true;
19184
+ readonly restore?: true;
19185
+ }
19186
+ /** Fields that determine whether a claim only mutates a lead designation. */
19187
+ interface SessionOwnershipDesignationMutationCandidate {
19188
+ readonly agentId: string;
19189
+ readonly providerSessionId: string | null;
19190
+ readonly ownerInstance?: unknown;
19191
+ readonly recoveryGuard?: unknown;
19192
+ readonly recoveryAttemptId?: unknown;
19193
+ readonly supersedes?: unknown;
19194
+ readonly designateLead?: SessionOwnershipLeadDesignationMutation;
19195
+ }
19196
+ /**
19197
+ * Whether a request is a keyless, unguarded lead relinquishment.
19198
+ * @param value - Claim fields relevant to acquisition.
19199
+ * @returns Whether no authority is acquired or published.
19200
+ */
19201
+ declare function isPureLeadRelinquishment(value: SessionOwnershipDesignationMutationCandidate): boolean;
19202
+ /**
19203
+ * Whether a request is a keyless, unguarded restoration of a prior lead.
19204
+ * @param value - Claim fields relevant to acquisition.
19205
+ * @returns Whether the request only restores a designation under CAS.
19206
+ */
19207
+ declare function isPureLeadRestoration(value: SessionOwnershipDesignationMutationCandidate): boolean;
19208
+ /**
19209
+ * Whether a designation mutation is safe after the session becomes inactive.
19210
+ * @param value - Claim fields relevant to acquisition.
19211
+ * @returns Whether the request only clears or restores a prior designation.
19212
+ */
19213
+ declare function isInactiveSafeLeadDesignationMutation$1(value: SessionOwnershipDesignationMutationCandidate): boolean;
19214
+ /**
19215
+ * Explain why a flagged designation request is not a pure mutation.
19216
+ * @param value - Claim fields relevant to acquisition.
19217
+ * @returns The contract violation, or `undefined` for a valid mutation.
19218
+ */
19219
+ declare function getLeadDesignationMutationViolation(value: SessionOwnershipDesignationMutationCandidate): string | undefined;
19220
+ /**
19221
+ * Add canonical designation-mutation issues to a claim schema refinement.
19222
+ * @param value - Claim fields relevant to designation and recovery.
19223
+ * @param ctx - Active schema refinement context.
19224
+ */
19225
+ declare function validateLeadDesignationMutation(value: SessionOwnershipDesignationMutationCandidate, ctx: z.RefinementCtx): void;
19226
+ //#endregion
19227
+ //#region core/contracts/src/session/schemas/adapter-session-currency.d.ts
19228
+ /**
19229
+ * The writable half of an adapter-session currency: where the provider
19230
+ * conversation lives now, as a single value.
19231
+ *
19232
+ * The immutable origin identity is deliberately absent — a currency write moves
19233
+ * the resume target, it never rewrites where the session came from.
19234
+ */
19235
+ declare const AdapterSessionCurrencyTargetSchema: z.ZodObject<{
19236
+ currentAdapterSessionId: z.ZodNullable<z.ZodString>;
19237
+ currentAdapterSessionIdState: z.ZodEnum<{
19238
+ confirmed: "confirmed";
19239
+ moved: "moved";
19240
+ inherited: "inherited";
19241
+ }>;
19242
+ }, z.core.$strip>;
19243
+ /** {@inheritDoc AdapterSessionCurrencyTargetSchema} */
19244
+ type AdapterSessionCurrencyTarget = z.infer<typeof AdapterSessionCurrencyTargetSchema>;
19245
+ /**
19246
+ * The full provider-native resume state of one row — the currency trias.
19247
+ *
19248
+ * Both the session row and the agent row carry the same three facts, and both
19249
+ * resolve a resume target from them by the same rule, so the shape and its
19250
+ * resolver are declared once here:
19251
+ *
19252
+ * - `adapterSessionId` — the **immutable origin identity** (import key,
19253
+ * write-once). It records where the provider conversation came from.
19254
+ * - `currentAdapterSessionId` + `currentAdapterSessionIdState` — the
19255
+ * **currency**: where the provider conversation is now.
19256
+ *
19257
+ * Reading a resume target from any two of these fields in isolation is how the
19258
+ * origin/currency split gets re-broken; use
19259
+ * {@link resolveResumableAdapterSessionId}.
19260
+ */
19261
+ declare const AdapterSessionCurrencySnapshotSchema: z.ZodObject<{
19262
+ adapterSessionId: z.ZodNullable<z.ZodString>;
19263
+ currentAdapterSessionId: z.ZodNullable<z.ZodString>;
19264
+ currentAdapterSessionIdState: z.ZodEnum<{
19265
+ confirmed: "confirmed";
19266
+ moved: "moved";
19267
+ inherited: "inherited";
19268
+ }>;
19269
+ }, z.core.$strip>;
19270
+ /** {@inheritDoc AdapterSessionCurrencySnapshotSchema} */
19271
+ type AdapterSessionCurrencySnapshot = z.infer<typeof AdapterSessionCurrencySnapshotSchema>;
19272
+ /**
19273
+ * Resolve the provider session a resume attach may legitimately target.
19274
+ *
19275
+ * The total mapping of the currency trias, and the only sanctioned way to turn
19276
+ * one into a resume target:
19277
+ * - `inherited` — the conversation never moved, so the origin identity is still
19278
+ * the valid currency.
19279
+ * - `confirmed` — `currentAdapterSessionId` supersedes the origin identity.
19280
+ * - `moved` — the conversation left the origin and the provider has not
19281
+ * confirmed a successor, so **nothing** is resumable; callers degrade to
19282
+ * fresh-with-history rather than resuming a session the provider abandoned.
19283
+ * @param snapshot - Currency trias of a session or agent row
19284
+ * @returns Provider session ID to resume, or `null` when no resume is legitimate
19285
+ */
19286
+ declare function resolveResumableAdapterSessionId$1(snapshot: AdapterSessionCurrencySnapshot): string | null;
19287
+ //#endregion
17096
19288
  //#region core/contracts/src/session/extraction-exclusion.d.ts
17097
19289
  /**
17098
19290
  * Extraction-exclusion metadata contract.
@@ -17151,4 +19343,4 @@ declare function isExtractionExcluded(metadata: Record<string, unknown> | undefi
17151
19343
  */
17152
19344
  declare function buildExtractionExclusionMetadata(): ExtractionExclusionMetadata;
17153
19345
  //#endregion
17154
- export { SessionContext$1 as $, isNavigatingBranch as A, ResolveAgentConfigSchema as B, SessionEnrichmentSchemas as C, getBranchBehavior as D, BranchBehavior as E, ResolveSystemPromptRequest as F, CONNECTOR_SWAP_WARNING_SUPPRESSED_KEY as G, ConnectorSwapCancelledError as H, ResolveSystemPromptResponse as I, UI_WARNINGS_CATEGORY as J, ConnectorSwapWarningOptionId as K, ResolveSystemPromptSchema as L, SessionClientAccountChangedSchema as M, SessionImportStatusChanged as N, isInViewBranch as O, SessionImportStatusChangedSchema as P, CacheStrategy$1 as Q, ResolveAgentConfigRequest as R, MessageStorageSubjects$1 as S, CompressionModeSchema$1 as T, isConnectorSwapCancelledError as U, CONNECTOR_SWAP_CANCELLED_CODE as V, CONNECTOR_SWAP_WARNING_OPTION_IDS as W, RequestCorrelationContextSchema$1 as X, RequestCorrelationContext$1 as Y, CACHE_STRATEGIES as Z, messageCursorKey as _, isExtractionExcluded as a, SessionNamespace as at, MessagePageCursorSchema as b, SessionStorageNamespace$1 as c, SessionStorageSubjects$1 as d, SessionContextSchema$1 as et, SessionStorageUpdateSchema$1 as f, compareMessageCursorDesc$1 as g, compareMessageCursorAsc$1 as h, buildExtractionExclusionMetadata as i, SessionExtensionContextFactory as it, SessionClientAccountChanged as j, isMergeable as k, SessionStorageSetRequestSchema$1 as l, SessionEventStorageSubjects as m, ExtractionExclusionKey as n, ForkOptions$1 as nt, ImportUpsertRequest as o, SessionSubjects$1 as ot, SessionEventStorageNamespace$1 as p, INTERACTIVE_DIALOG_TIMEOUT_MS as q, ExtractionExclusionMetadata as r, SessionExtensionContext$1 as rt, ImportUpsertRequestSchema as s, EXTRACTION_EXCLUSION_KEY as t, ContextWindowState$1 as tt, SessionStorageSetSessionSchema as u, messageToCursor$1 as v, CompressionMode as w, MessageStorageNamespace$1 as x, MessagePageCursor as y, ResolveAgentConfigResponse as z };
19346
+ export { ResolveSystemPromptSchema as $, SessionEventStorageSubjects as A, CompressionMode as B, SessionStorageRebindObservedResponseSchema as C, SessionStorageSubjects$1 as D, SessionStorageSetSessionSchema as E, MessagePageCursor as F, isMergeable as G, BranchBehavior as H, MessagePageCursorSchema as I, SessionClientAccountChangedSchema as J, isNavigatingBranch as K, MessageStorageNamespace$1 as L, compareMessageCursorDesc$1 as M, messageCursorKey as N, SessionStorageUpdateSchema$1 as O, messageToCursor$1 as P, ResolveSystemPromptResponse as Q, MessageStorageSubjects$1 as R, SessionStorageRebindObservedRequestSchema as S, SessionSubjects$1 as St, SessionStorageSetRequestSchema$1 as T, getBranchBehavior as U, CompressionModeSchema$1 as V, isInViewBranch as W, SessionImportStatusChangedSchema as X, SessionImportStatusChanged as Y, ResolveSystemPromptRequest as Z, validateLeadDesignationMutation as _, ContextWindowState$1 as _t, isExtractionExcluded as a, isConnectorSwapCancelledError as at, SessionStorageNamespace$1 as b, SessionExtensionContextFactory as bt, AdapterSessionCurrencyTarget as c, ConnectorSwapWarningOptionId as ct, SessionOwnershipDesignationMutationCandidate as d, RequestCorrelationContext$1 as dt, ResolveAgentConfigRequest as et, SessionOwnershipLeadDesignationMutation as f, RequestCorrelationContextSchema$1 as ft, isPureLeadRestoration as g, SessionContextSchema$1 as gt, isPureLeadRelinquishment as h, SessionContext$1 as ht, buildExtractionExclusionMetadata as i, ConnectorSwapCancelledError as it, compareMessageCursorAsc$1 as j, SessionEventStorageNamespace$1 as k, AdapterSessionCurrencyTargetSchema as l, INTERACTIVE_DIALOG_TIMEOUT_MS as lt, isInactiveSafeLeadDesignationMutation$1 as m, CacheStrategy$1 as mt, ExtractionExclusionKey as n, ResolveAgentConfigSchema as nt, AdapterSessionCurrencySnapshot as o, CONNECTOR_SWAP_WARNING_OPTION_IDS as ot, getLeadDesignationMutationViolation as p, CACHE_STRATEGIES as pt, SessionClientAccountChanged as q, ExtractionExclusionMetadata as r, CONNECTOR_SWAP_CANCELLED_CODE as rt, AdapterSessionCurrencySnapshotSchema as s, CONNECTOR_SWAP_WARNING_SUPPRESSED_KEY as st, EXTRACTION_EXCLUSION_KEY as t, ResolveAgentConfigResponse as tt, resolveResumableAdapterSessionId$1 as u, UI_WARNINGS_CATEGORY as ut, ImportUpsertRequest as v, ForkOptions$1 as vt, SessionStorageRebindObservedResult as w, SessionStorageRebindObservedRequest as x, SessionNamespace as xt, ImportUpsertRequestSchema as y, SessionExtensionContext$1 as yt, SessionEnrichmentSchemas as z };