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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (508) hide show
  1. package/dist/.makaio-build.json +4 -3
  2. package/dist/{account-identity-DFx8pwKL.mjs → account-identity-DGpXd8h_.mjs} +1 -1
  3. package/dist/adapter-BkdJaOOG.mjs +1 -0
  4. package/dist/adapter-subsystem/index.d.mts +138 -6
  5. package/dist/adapter-subsystem/index.mjs +1 -1
  6. package/dist/adapters/acp-client/index.d.mts +105 -7
  7. package/dist/adapters/acp-client/index.mjs +2 -2
  8. package/dist/adapters/config/index.d.mts +1 -1
  9. package/dist/adapters/config/index.mjs +1 -1
  10. package/dist/adapters/index.d.mts +362 -801
  11. package/dist/adapters/index.mjs +6 -6
  12. package/dist/adapters/node.d.mts +1 -1
  13. package/dist/adapters/node.mjs +1 -1
  14. package/dist/adapters/stream-session/index.d.mts +28 -7
  15. package/dist/adapters/stream-session/index.mjs +1 -1
  16. package/dist/agent-namespace-D51PODFf.mjs +1 -0
  17. package/dist/{ajv-DD3SIL2i.mjs → ajv-L5fKxaia.mjs} +2 -2
  18. package/dist/artifact-k3veR4Yx.mjs +1 -0
  19. package/dist/attach-error-BSlc7JfL.mjs +1 -0
  20. package/dist/{auth-DGEdiHF6.mjs → auth-A1K_7q-8.mjs} +1 -1
  21. package/dist/authority-state-bootstrap-YwtEImIB.mjs +1 -0
  22. package/dist/automation-trigger-CuSdQwir.mjs +1 -0
  23. package/dist/await-trigger-ph1S0zVI.mjs +1 -0
  24. package/dist/bus/index.d.mts +19 -5
  25. package/dist/bus/index.mjs +1 -1
  26. package/dist/bus-BIj0_aG6.mjs +1 -0
  27. package/dist/bus-CqgrphNE.mjs +2 -0
  28. package/dist/{canonical-model-BAytQ4NV.mjs → canonical-model-DJASlL4m.mjs} +1 -1
  29. package/dist/{capabilities-BQEp34ir.mjs → capabilities-Bqckjh7G.mjs} +1 -1
  30. package/dist/{client-DbS847wW.mjs → client-BL5__WT0.mjs} +1 -1
  31. package/dist/clients/index.d.mts +2 -2
  32. package/dist/clients/index.mjs +1 -1
  33. package/dist/clients/managed-install.d.mts +1 -1
  34. package/dist/clients/managed-install.mjs +1 -1
  35. package/dist/{compression-74fFeBha.mjs → compression-BbttSqm8.mjs} +1 -1
  36. package/dist/{config-namespace-TVX-hG4I.mjs → config-namespace-CyzeLWSg.mjs} +1 -1
  37. package/dist/{context-resolution-DdyhpH4L.d.mts → context-resolution-CW0ya4QO.d.mts} +13 -13
  38. package/dist/contracts/adapter/index.d.mts +3 -3
  39. package/dist/contracts/adapter/index.mjs +1 -1
  40. package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
  41. package/dist/contracts/artifact/index.d.mts +3 -3
  42. package/dist/contracts/artifact/index.mjs +1 -1
  43. package/dist/contracts/auth/index.d.mts +2 -2
  44. package/dist/contracts/auth/index.mjs +1 -1
  45. package/dist/contracts/automation-trigger/index.d.mts +4 -0
  46. package/dist/contracts/automation-trigger/index.mjs +1 -0
  47. package/dist/contracts/canonical-model/index.d.mts +1 -1
  48. package/dist/contracts/canonical-model/index.mjs +1 -1
  49. package/dist/contracts/capabilities/index.d.mts +1 -1
  50. package/dist/contracts/capabilities/index.mjs +1 -1
  51. package/dist/contracts/client/index.d.mts +2 -2
  52. package/dist/contracts/client/index.mjs +1 -1
  53. package/dist/contracts/common/index.d.mts +1 -1
  54. package/dist/contracts/config/index.d.mts +1 -1
  55. package/dist/contracts/config/index.mjs +1 -1
  56. package/dist/contracts/extension/index.d.mts +6 -5
  57. package/dist/contracts/extension/index.mjs +1 -1
  58. package/dist/contracts/facet/index.d.mts +1 -1
  59. package/dist/contracts/facet/index.mjs +1 -1
  60. package/dist/contracts/harness/index.d.mts +1 -1
  61. package/dist/contracts/harness/index.mjs +1 -1
  62. package/dist/contracts/host/index.d.mts +1 -1
  63. package/dist/contracts/host/index.mjs +1 -1
  64. package/dist/contracts/index.d.mts +181 -120
  65. package/dist/contracts/index.mjs +1 -1
  66. package/dist/contracts/materialization/index.d.mts +3 -3
  67. package/dist/contracts/materialization/index.mjs +1 -1
  68. package/dist/contracts/model-registry/index.d.mts +1 -1
  69. package/dist/contracts/model-registry/index.mjs +1 -1
  70. package/dist/contracts/native-session-supervisor/index.d.mts +1 -1
  71. package/dist/contracts/native-session-supervisor/index.mjs +1 -1
  72. package/dist/contracts/platform/index.d.mts +1 -1
  73. package/dist/contracts/platform/index.mjs +1 -1
  74. package/dist/contracts/provider/index.d.mts +2 -2
  75. package/dist/contracts/provider/index.mjs +1 -1
  76. package/dist/contracts/reaction/index.d.mts +2 -0
  77. package/dist/contracts/reaction/index.mjs +1 -0
  78. package/dist/contracts/session/index.d.mts +3 -3
  79. package/dist/contracts/session/index.mjs +1 -1
  80. package/dist/contracts/shared/index.d.mts +3 -3
  81. package/dist/contracts/shared/index.mjs +1 -1
  82. package/dist/contracts/skill/index.d.mts +1 -1
  83. package/dist/contracts/skill/index.mjs +1 -1
  84. package/dist/contracts/telemetry/index.d.mts +1 -1
  85. package/dist/contracts/telemetry/index.mjs +1 -1
  86. package/dist/contracts/timeout/index.d.mts +1 -1
  87. package/dist/contracts/timeout/index.mjs +1 -1
  88. package/dist/contracts/toast/index.mjs +1 -1
  89. package/dist/contracts/variant/index.d.mts +1 -1
  90. package/dist/contracts/variant/index.mjs +1 -1
  91. package/dist/contracts/worker-node/index.d.mts +1 -1
  92. package/dist/contracts/worker-node/index.mjs +1 -1
  93. package/dist/contracts/workflow/index.d.mts +3 -3
  94. package/dist/contracts/workflow/index.mjs +1 -1
  95. package/dist/contribution-BH-wKsWI.d.mts +35 -0
  96. package/dist/core/index.d.mts +60 -1
  97. package/dist/core/index.mjs +1 -1
  98. package/dist/definition-BYgHlmMw.d.mts +375 -0
  99. package/dist/{definition-CJfiv8xm.mjs → definition-CDg-Jq1T.mjs} +1 -1
  100. package/dist/{detached-extension-handle-Ddfquy5_.mjs → detached-extension-handle-DKd17UB6.mjs} +1 -1
  101. package/dist/drizzle/0031_adapter_session_currency.sql +66 -0
  102. package/dist/drizzle/0032_native_session_ownership.sql +77 -0
  103. package/dist/drizzle/0033_m_msf3hu2s.sql +1 -0
  104. package/dist/drizzle/meta/_journal.json +21 -0
  105. package/dist/{execution-attempt-repository-DWXKY41_.d.mts → execution-attempt-repository-DFyAnchJ.d.mts} +1 -1
  106. package/dist/{execution-target-Cf645pDj.mjs → execution-target-ByNwZh5-.mjs} +1 -1
  107. package/dist/extension-DMdmj9gi.mjs +1 -0
  108. package/dist/extension-DUmibvMk.mjs +1 -0
  109. package/dist/extension-context-CqfddWXs.d.mts +295 -0
  110. package/dist/{extension-discovery-CQRdbVQ6.d.mts → extension-discovery-Fhps4icD.d.mts} +2 -0
  111. package/dist/{extension-namespace-Yu41YepM.mjs → extension-namespace-B554RmCp.mjs} +1 -1
  112. package/dist/extension-package-provenance-Dh_-Z-tE.mjs +1 -0
  113. package/dist/{filesystem-service-DlP2HfDg.mjs → filesystem-service-FAtd9gWH.mjs} +1 -1
  114. package/dist/framework-packages-D_2hBZ-p.mjs +1 -0
  115. package/dist/git/index.mjs +1 -1
  116. package/dist/{globby-1yCVCk8s.mjs → globby-BBLuT_vy.mjs} +1 -1
  117. package/dist/handlers-2yd00VEq.mjs +57 -0
  118. package/dist/{harness-DpwsFsE7.mjs → harness-KxbWGL4I.mjs} +1 -1
  119. package/dist/{hook-responses-Dh1PWXqJ.d.mts → hook-responses-CQZIv3L3.d.mts} +2 -293
  120. package/dist/{index-DCZ8BX9S.d.mts → index-3eUIRy7T.d.mts} +304 -74
  121. package/dist/{index-brqfk9JQ.d.mts → index-B4xdTT3c.d.mts} +6 -6
  122. package/dist/{index-4VfqCjl2.d.mts → index-B5op6AsV.d.mts} +49 -39
  123. package/dist/{index-CMgLxw14.d.mts → index-B6GOuxVy2.d.mts} +18 -18
  124. package/dist/index-BFhJe-Sb.d.mts +302 -0
  125. package/dist/{index-EjsSBQXy2.d.mts → index-BSQ30wYP.d.mts} +1 -1
  126. package/dist/{index-DlsHL9Jg.d.mts → index-BiAYXjgM.d.mts} +25 -25
  127. package/dist/{index-B9UW_vPM.d.mts → index-ByZi9bml.d.mts} +4967 -1509
  128. package/dist/{index-BVlXneHH.d.mts → index-C7HcDpHE.d.mts} +14 -10
  129. package/dist/{index-BskPjMet.d.mts → index-CB4aIUoF.d.mts} +16 -16
  130. package/dist/{index-cqLS1eFV.d.mts → index-CDusRXio.d.mts} +70 -71
  131. package/dist/{index-DnG-QFpG.d.mts → index-CSN_0sCo.d.mts} +18 -1
  132. package/dist/{index-BAXkicoQ.d.mts → index-C__EQfKa.d.mts} +1 -1
  133. package/dist/{index-CLvQsL6s2.d.mts → index-CqQYgsbB.d.mts} +1660 -218
  134. package/dist/{index-BNMnIe-j.d.mts → index-CwDiyJkJ.d.mts} +276 -705
  135. package/dist/{index-GHASUiem.d.mts → index-DBadVauL.d.mts} +1 -1
  136. package/dist/{index-gUhidukN.d.mts → index-DI7-tIL3.d.mts} +299 -2
  137. package/dist/index-DP3o_13U.d.mts +165 -0
  138. package/dist/{index-DSBT83c0.d.mts → index-DcYAAJ0V.d.mts} +24 -3
  139. package/dist/{index-D5Nb7IEP.d.mts → index-Dch_AxUg.d.mts} +77 -39
  140. package/dist/{index-D_ODXsBv.d.mts → index-DcqSUsX6.d.mts} +35 -79
  141. package/dist/{index-B0Kf_OWi.d.mts → index-DgOfgjx3.d.mts} +1 -1
  142. package/dist/{index-Ds5_rDEJ.d.mts → index-DwLRZscE.d.mts} +1 -12
  143. package/dist/{index-DkiTJM5p.d.mts → index-DxYDRoDE2.d.mts} +17 -3
  144. package/dist/{index-CRvpVIqA.d.mts → index-OsbtyMgx2.d.mts} +10 -1
  145. package/dist/{index-BaZeoZoS.d.mts → index-bIe_57cL.d.mts} +1 -1
  146. package/dist/{json-value-Brslhqbm.d.mts → json-value-C1RGgS0a.d.mts} +16 -1
  147. package/dist/{json-value-DmU8ibo_.mjs → json-value-D57aJhVn.mjs} +1 -1
  148. package/dist/kernel/cli/index.d.mts +2 -2
  149. package/dist/kernel/cli/index.mjs +1 -1
  150. package/dist/kernel/cli/register.d.mts +1 -1
  151. package/dist/kernel/cli/register.mjs +1 -1
  152. package/dist/kernel/cli/schemas.mjs +1 -1
  153. package/dist/kernel/extension/index.d.mts +1 -1
  154. package/dist/kernel/extension/index.mjs +1 -1
  155. package/dist/kernel/index.d.mts +9 -9
  156. package/dist/kernel/index.mjs +1 -1
  157. package/dist/kernel/namespace/index.d.mts +2 -2
  158. package/dist/kernel/namespace/index.mjs +1 -1
  159. package/dist/kernel/observability/index.d.mts +1 -1
  160. package/dist/kernel/observability/index.mjs +1 -1
  161. package/dist/kernel/providers/index.d.mts +1 -1
  162. package/dist/kernel/providers/index.mjs +1 -1
  163. package/dist/kernel/window/index.d.mts +1 -1
  164. package/dist/kernel/window/index.mjs +1 -1
  165. package/dist/{lib-C7-s68uf.mjs → lib-B_rJ6r0T.mjs} +1 -1
  166. package/dist/{lib-DErgth_E.mjs → lib-CnOAtohU.mjs} +1 -1
  167. package/dist/load-extensions-CW9uzNR5.mjs +1 -0
  168. package/dist/{load-extensions-BxsDB87B.d.mts → load-extensions-DUpaMQ7G.d.mts} +17 -13
  169. package/dist/{materialization-Jd198K3y.mjs → materialization-CcpCDhXh.mjs} +1 -1
  170. package/dist/mcp-http-server/index.mjs +1 -1
  171. package/dist/model-ZH3L1dPW.mjs +1 -0
  172. package/dist/{namespace-BqxtpNAn.mjs → namespace-B7bntOB8.mjs} +1 -1
  173. package/dist/{namespace-CWUDFGOy.mjs → namespace-BFqkUTJp.mjs} +1 -1
  174. package/dist/{namespace-CjjFvrIA2.d.mts → namespace-CAy4P5mW.d.mts} +29 -29
  175. package/dist/{namespace-B8uKAzWJ.mjs → namespace-CFjdyNXG.mjs} +1 -1
  176. package/dist/{namespace-DV-Hr9sZ.d.mts → namespace-ChnRTUG4.d.mts} +11 -1
  177. package/dist/namespace-CxrOLeeP.mjs +1 -0
  178. package/dist/{namespace-g_mbIZq_.d.mts → namespace-DSlfFhB1.d.mts} +410 -26
  179. package/dist/{namespace-CupOzbRv.d.mts → namespace-DwZwGXgF.d.mts} +24 -20
  180. package/dist/{namespace-TseEI3Pu.d.mts → namespace-Rge9mMI-.d.mts} +36 -28
  181. package/dist/{native-session-supervisor-DRx0MX-d.mjs → native-session-supervisor-fZYPUk0-.mjs} +1 -1
  182. package/dist/node/bus-server/index.d.mts +1 -1
  183. package/dist/node/bus-server/index.mjs +1 -1
  184. package/dist/node/bus-server/server-lifecycle.d.mts +1 -1
  185. package/dist/node/bus-server/server-lifecycle.mjs +1 -1
  186. package/dist/{orchestrator-shared-BHCv-l2O.d.mts → orchestrator-shared-B-KRW1Z0.d.mts} +1 -0
  187. package/dist/orchestrator-shared-CTCZc6Vl.mjs +1 -0
  188. package/dist/ownership-memory-handler-Bblp93YC.mjs +1 -0
  189. package/dist/{package-DWMxGfzK.d.mts → package-Bf3hyuzs.d.mts} +234 -84
  190. package/dist/package-CBdvjyyZ.mjs +1 -0
  191. package/dist/package-CddkNbZI.mjs +1 -0
  192. package/dist/package-ypz4rKvn.mjs +7 -0
  193. package/dist/package.json +1 -1
  194. package/dist/{profile-BTAI31Nt.mjs → profile-BtznZlq3.mjs} +1 -1
  195. package/dist/{provider-context-Dq53Cgzz.mjs → provider-context-BrLZYnDW.mjs} +1 -1
  196. package/dist/{provider-context-PZIQWcqQ.mjs → provider-context-Dh-VOOYF.mjs} +1 -1
  197. package/dist/reaction-BS0k4eNN.mjs +1 -0
  198. package/dist/{registry-wfF2uTty.mjs → registry-BO_bOoky.mjs} +2 -2
  199. package/dist/{resolved-DZgqql2Z.mjs → resolved-DMByz1_2.mjs} +1 -1
  200. package/dist/rules/index.d.mts +1 -1
  201. package/dist/rules/index.mjs +1 -1
  202. package/dist/rules/schemas.d.mts +1 -1
  203. package/dist/runtime-bun/index.mjs +1 -1
  204. package/dist/runtime-node/extension-discovery.d.mts +1 -1
  205. package/dist/runtime-node/extension-validation.d.mts +1 -1
  206. package/dist/runtime-node/extension-validation.mjs +1 -1
  207. package/dist/runtime-node/index.d.mts +4 -4
  208. package/dist/runtime-node/index.mjs +24 -24
  209. package/dist/runtime-node/makaio-config.d.mts +1 -1
  210. package/dist/runtime-node/makaio-config.mjs +1 -1
  211. package/dist/runtime-node/workflow-worker/index.d.mts +1 -1
  212. package/dist/runtime-node/workflow-worker/index.mjs +1 -1
  213. package/dist/runtime-node/workflow-worker/worker-entry.mjs +1 -1
  214. package/dist/{schema-Dd-e89MO.mjs → schema-DBG7Jq5_.mjs} +1 -1
  215. package/dist/{schema-DKUb4rkr.d.mts → schema-DKTzriEY.d.mts} +519 -9
  216. package/dist/{schemas-DrVg4aQQ.d.mts → schemas-9qeeHGBf.d.mts} +8 -8
  217. package/dist/{schemas-CRB2O5zo.mjs → schemas-BqD8LlQw.mjs} +1 -1
  218. package/dist/{schemas-DaHQzpgm.mjs → schemas-CsjN7cmM.mjs} +1 -1
  219. package/dist/schemas-DSkBOdx_.mjs +1 -0
  220. package/dist/schemas-DplrlAyR.mjs +1 -0
  221. package/dist/{schemas-DnYiAvfz.d.mts → schemas-VbB1FTxx.d.mts} +24 -20
  222. package/dist/scoped-bus-ClwTWqX8.mjs +1 -0
  223. package/dist/{selection-BNwTKEVT.mjs → selection-7Ku8DBnh.mjs} +1 -1
  224. package/dist/services/adapter-runtime/index.d.mts +3 -3
  225. package/dist/services/adapter-runtime/index.mjs +1 -1
  226. package/dist/services/adapter-runtime/namespace.d.mts +1 -1
  227. package/dist/services/adapter-runtime/schemas.d.mts +1 -1
  228. package/dist/services/adapter-subsystem/index.d.mts +4 -4
  229. package/dist/services/adapter-subsystem/index.mjs +1 -1
  230. package/dist/services/adapter-subsystem/namespace.d.mts +2 -2
  231. package/dist/services/adapter-subsystem/namespace.mjs +1 -1
  232. package/dist/services/agent-runtime/index.d.mts +2 -2
  233. package/dist/services/agent-runtime/namespace.d.mts +1 -1
  234. package/dist/services/agent-runtime/schemas.d.mts +1 -1
  235. package/dist/services/automation-trigger/index.d.mts +943 -0
  236. package/dist/services/automation-trigger/index.mjs +1 -0
  237. package/dist/services/capability/index.d.mts +1 -1
  238. package/dist/services/capability/index.mjs +1 -1
  239. package/dist/services/codebase/index.d.mts +2 -2
  240. package/dist/services/codebase/namespace.d.mts +1 -1
  241. package/dist/services/codebase/schemas.d.mts +1 -1
  242. package/dist/services/compression/index.d.mts +2 -2
  243. package/dist/services/compression/namespace.d.mts +1 -1
  244. package/dist/services/compression/schemas.d.mts +1 -1
  245. package/dist/services/context-rules/index.d.mts +4 -4
  246. package/dist/services/context-rules/index.mjs +1 -1
  247. package/dist/services/execution-target/index.d.mts +3 -3
  248. package/dist/services/execution-target/index.mjs +1 -1
  249. package/dist/services/execution-target/namespace.d.mts +1 -1
  250. package/dist/services/execution-target/namespace.mjs +1 -1
  251. package/dist/services/execution-target/schemas.d.mts +1 -1
  252. package/dist/services/execution-target/schemas.mjs +1 -1
  253. package/dist/services/filesystem/index.d.mts +1 -1
  254. package/dist/services/filesystem/index.mjs +1 -1
  255. package/dist/services/filesystem/namespace.d.mts +6 -6
  256. package/dist/services/filesystem/schemas.d.mts +3 -3
  257. package/dist/services/git/namespace.mjs +1 -1
  258. package/dist/services/git/schemas.mjs +1 -1
  259. package/dist/services/harness/index.mjs +1 -1
  260. package/dist/services/index.d.mts +459 -93
  261. package/dist/services/index.mjs +1 -1
  262. package/dist/services/log-import/browser.d.mts +2 -2
  263. package/dist/services/log-import/index.d.mts +3 -3
  264. package/dist/services/log-import/log-import.d.mts +1 -1
  265. package/dist/services/log-import/log-import.mjs +1 -1
  266. package/dist/services/log-import/namespace.mjs +1 -1
  267. package/dist/services/log-import/schemas.mjs +1 -1
  268. package/dist/services/materialization/index.d.mts +1 -1
  269. package/dist/services/materialization/index.mjs +1 -1
  270. package/dist/services/model-registry/index.d.mts +1 -1
  271. package/dist/services/model-registry/index.mjs +1 -1
  272. package/dist/services/preferences/index.d.mts +2 -2
  273. package/dist/services/preferences/schemas.d.mts +1 -1
  274. package/dist/services/preferences/storage-namespace.d.mts +2 -2
  275. package/dist/services/provider-context/index.d.mts +1 -1
  276. package/dist/services/provider-context/index.mjs +1 -1
  277. package/dist/services/provider-runtime/index.mjs +1 -1
  278. package/dist/services/session/handlers/index.d.mts +2 -2
  279. package/dist/services/session/handlers/index.mjs +1 -1
  280. package/dist/services/session/index.d.mts +10 -10
  281. package/dist/services/session/index.mjs +1 -1
  282. package/dist/services/session/messages/namespace.d.mts +1 -1
  283. package/dist/services/session/messages/namespace.mjs +1 -1
  284. package/dist/services/session/orchestrator-testing/index.d.mts +1 -1
  285. package/dist/services/session/orchestrator-testing/index.mjs +1 -1
  286. package/dist/services/session/session-events/namespace.d.mts +1 -1
  287. package/dist/services/session/session-events/namespace.mjs +1 -1
  288. package/dist/services/session/storage/namespace.d.mts +1 -1
  289. package/dist/services/session/storage/schema.d.mts +2 -2
  290. package/dist/services/session/storage/schema.mjs +1 -1
  291. package/dist/services/session/testing/index.d.mts +12 -4
  292. package/dist/services/session/testing/index.mjs +36 -4
  293. package/dist/services/session/testing/orchestrator-shared.d.mts +1 -1
  294. package/dist/services/session/testing/orchestrator-shared.mjs +1 -1
  295. package/dist/services/session/turns/namespace.d.mts +1 -1
  296. package/dist/services/session/turns/namespace.mjs +1 -1
  297. package/dist/services/session-editor/index.d.mts +1 -1
  298. package/dist/services/session-editor/index.mjs +1 -1
  299. package/dist/services/settings/index.d.mts +3 -3
  300. package/dist/services/settings/index.mjs +1 -1
  301. package/dist/services/settings/namespace.d.mts +8 -8
  302. package/dist/services/settings/namespace.mjs +1 -1
  303. package/dist/services/settings/storage/clients-namespace.d.mts +1 -1
  304. package/dist/services/settings/storage/clients-namespace.mjs +1 -1
  305. package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
  306. package/dist/services/settings/storage/index.d.mts +3 -3
  307. package/dist/services/settings/storage/index.mjs +1 -1
  308. package/dist/services/settings/storage/providers-namespace.d.mts +1 -1
  309. package/dist/services/settings/storage/providers-namespace.mjs +1 -1
  310. package/dist/services/subagent/index.d.mts +1 -1
  311. package/dist/services/subagent/index.mjs +1 -1
  312. package/dist/services/subagent-template/index.d.mts +2 -2
  313. package/dist/services/subagent-template/namespace.d.mts +1 -1
  314. package/dist/services/subagent-template/schemas.d.mts +1 -1
  315. package/dist/services/tool-approval/index.d.mts +1 -1
  316. package/dist/services/tool-approval/index.mjs +1 -1
  317. package/dist/services/tools/index.d.mts +1 -1
  318. package/dist/services/tools/index.mjs +1 -1
  319. package/dist/services/tray-menu/index.d.mts +3 -3
  320. package/dist/services/tray-menu/index.mjs +1 -1
  321. package/dist/services/tray-menu/namespace.d.mts +1 -1
  322. package/dist/services/tray-menu/schemas.d.mts +1 -1
  323. package/dist/services/turn/index.d.mts +1 -1
  324. package/dist/services/turn/namespace.d.mts +1 -1
  325. package/dist/services/workflow-transitions/index.d.mts +1 -1
  326. package/dist/services/workflow-transitions/index.mjs +1 -1
  327. package/dist/session-BMy2kRpX.mjs +90 -0
  328. package/dist/session-Cipx34j6.mjs +1 -0
  329. package/dist/{session-lineage-B_JW5LpF.d.mts → session-lineage-B_PVa1XN.d.mts} +1 -1
  330. package/dist/shared-BFVuCDPx.mjs +1 -0
  331. package/dist/{skill-BR6rkfLe.mjs → skill-C1D51nhh.mjs} +1 -1
  332. package/dist/{src-DD0v-nIj.mjs → src-xbmzokNe.mjs} +1 -1
  333. package/dist/storage/drizzle/client.d.mts +1 -1
  334. package/dist/storage/drizzle/client.mjs +1 -1
  335. package/dist/storage/drizzle/index.d.mts +42 -2
  336. package/dist/storage/drizzle/index.mjs +1 -1
  337. package/dist/storage/handlers/drizzle/index.d.mts +1 -1
  338. package/dist/storage/handlers/drizzle/index.mjs +1 -1
  339. package/dist/storage/handlers/index.d.mts +1 -1
  340. package/dist/storage/handlers/index.mjs +1 -1
  341. package/dist/tool-approval-service-BVgN9Q1r.mjs +1 -0
  342. package/dist/{tools-PdG9fO1M.mjs → tools-DxwHox1a.mjs} +1 -1
  343. package/dist/{transition-Du3MQzJV.d.mts → transition-BF1nevaC.d.mts} +7 -34
  344. package/dist/{types-DMLDHFR9.d.mts → types-BNjPhj_a.d.mts} +1 -1
  345. package/dist/{types-Dzrwa1GY.d.mts → types-CijlWGwb.d.mts} +2036 -618
  346. package/dist/types-ClpEaoAm.d.mts +2917 -0
  347. package/dist/{types-D7_kevBK.d.mts → types-xCdGghb2.d.mts} +1 -1
  348. package/dist/ui-hooks/index.d.mts +29 -2
  349. package/dist/ui-hooks/index.mjs +1 -1
  350. package/dist/ui-kernel/index.d.mts +2 -2
  351. package/dist/ui-kernel/pages/schemas.d.mts +1 -1
  352. package/dist/ui-views/index.d.mts +1 -1
  353. package/dist/utils/index.d.mts +77 -1
  354. package/dist/utils/index.mjs +2 -2
  355. package/dist/{version-CoCeMxDT.mjs → version-BfNnVAGr.mjs} +1 -1
  356. package/dist/{view-builder-DeFd-k7C.d.mts → view-builder-Bc9dx6jF.d.mts} +1 -1
  357. package/dist/{visibility-qhGWmpSJ.mjs → visibility-Dl1o2I01.mjs} +1 -1
  358. package/dist/{worker-node-Bl9_vqYi.mjs → worker-node-BDOYPEpi.mjs} +1 -1
  359. package/dist/{worker-node-DZTuT1DS.mjs → worker-node-DJ41Tr-F.mjs} +1 -1
  360. package/dist/workflow-Hzc5jlnV.mjs +1 -0
  361. package/dist/workflow-engine/execution-attempt-repository.d.mts +1 -1
  362. package/dist/workflow-engine/index.d.mts +114 -395
  363. package/dist/workflow-engine/index.mjs +1 -1
  364. package/dist/workflow-engine/package.d.mts +1 -1
  365. package/dist/workflow-engine/package.mjs +1 -1
  366. package/dist/workflow-engine/provider-operation.d.mts +1 -1
  367. package/dist/workflow-engine/testing/index.d.mts +2 -2
  368. package/dist/workflow-engine/testing/index.mjs +1 -1
  369. package/dist/workflow-engine/testing/sqlite.d.mts +1 -1
  370. package/dist/workflow-engine/testing/sqlite.mjs +27 -27
  371. package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
  372. package/dist/workflow-engine/workflow-trigger-binding-consumer.d.mts +46 -0
  373. package/dist/workflow-engine/workflow-trigger-binding-consumer.mjs +1 -0
  374. package/dist/{workflow-transitions-DSc45ixc.mjs → workflow-transitions-DM0fN_eP.mjs} +1 -1
  375. package/dist/workflow-worker-DARC7UZl.mjs +1 -0
  376. package/dist/zod-json-schema-BAGAFfCN.mjs +1 -0
  377. package/package.json +29 -1
  378. package/dist/adapter-D5c5LrPN.mjs +0 -1
  379. package/dist/artifact-DGiXqb11.mjs +0 -1
  380. package/dist/attach-error-C3tngg6J.mjs +0 -1
  381. package/dist/authority-state-bootstrap-GPL_tqaT.mjs +0 -1
  382. package/dist/await-trigger-I3lrepb8.mjs +0 -1
  383. package/dist/bus-B6SAjgOC.mjs +0 -2
  384. package/dist/bus-C2l3K74u.mjs +0 -1
  385. package/dist/extension-DCA4pYrY.mjs +0 -1
  386. package/dist/extension-hjOPs10e.mjs +0 -1
  387. package/dist/framework-packages-C3RWfJDk.mjs +0 -1
  388. package/dist/handlers-CfnLyLfE.mjs +0 -57
  389. package/dist/load-extensions-D0DfjYLC.mjs +0 -1
  390. package/dist/model-BGgVmRnN.mjs +0 -1
  391. package/dist/namespace-DJfUADSV.mjs +0 -1
  392. package/dist/orchestrator-shared-BxmHCPvx.mjs +0 -1
  393. package/dist/package-CNUPPcU1.mjs +0 -7
  394. package/dist/package-Dft_RItb.mjs +0 -1
  395. package/dist/schemas-Cm09dXL4.mjs +0 -1
  396. package/dist/scoped-bus-C9BdNwfM.mjs +0 -1
  397. package/dist/session-BOGCd18q.mjs +0 -1
  398. package/dist/session-BTFiDoGz.mjs +0 -76
  399. package/dist/shared-BQ0CHIVy.mjs +0 -1
  400. package/dist/tool-approval-service-kBA0fRzm.mjs +0 -1
  401. package/dist/types-CJ_QZ1yW.d.mts +0 -1487
  402. package/dist/workflow-BfDbgtIQ.mjs +0 -1
  403. package/dist/workflow-worker-BN9XPxQO.mjs +0 -1
  404. package/dist/{adapter-auth-runtime-DO-FVTXg.mjs → adapter-auth-runtime-D9Lnl7cc.mjs} +0 -0
  405. package/dist/{adapter-binding-DQchUtrK.d.mts → adapter-binding-B-FBoCys.d.mts} +0 -0
  406. package/dist/{attempt-record-codec-CqO1_XnE.mjs → attempt-record-codec-DaFLKR5C.mjs} +0 -0
  407. package/dist/{base-orchestrator-BilsQNW1.d.mts → base-orchestrator-D9u4NyiM.d.mts} +0 -0
  408. package/dist/{capability-service-BqiLlRGA.mjs → capability-service-CJHNkjvm.mjs} +0 -0
  409. package/dist/{client-B--e2qcU.d.mts → client-4ihewPUm.d.mts} +0 -0
  410. package/dist/{client-binary-version-verifier-taewmKTY.mjs → client-binary-version-verifier-DJajc_Ff.mjs} +0 -0
  411. package/dist/{client-binary-version-verifier-CgjM_vGF.d.mts → client-binary-version-verifier-jDDZ64Ah.d.mts} +0 -0
  412. package/dist/{clients-namespace-DfxjG2ZP.d.mts → clients-namespace-DFWuUawf.d.mts} +0 -0
  413. package/dist/{config-namespace-BCqvufbD.d.mts → config-namespace-D1kyZj0B.d.mts} +0 -0
  414. package/dist/{create-static-mount-bbQhTt6W.mjs → create-static-mount-9tnGpIeK.mjs} +0 -0
  415. package/dist/{cross-spawn-B57KZuns.mjs → cross-spawn-BIgueAqr.mjs} +0 -0
  416. package/dist/{cursor-storage-DIFK_9hg.mjs → cursor-storage-ROWfiTh1.mjs} +0 -0
  417. package/dist/{definition-gnKgXU91.d.mts → definition-DB-kKc0d.d.mts} +0 -0
  418. package/dist/{definitions-xrrY0wgz.mjs → definitions-CF6YmEhL.mjs} +0 -0
  419. package/dist/{descriptor-to-package-DvF08krT.mjs → descriptor-to-package-BecVCopf.mjs} +0 -0
  420. package/dist/{drizzle-z_0SiGY8.mjs → drizzle-CPv3vdTE.mjs} +0 -0
  421. package/dist/{esm-CltRnX8_.mjs → esm-CBFWM8u_.mjs} +0 -0
  422. package/dist/{event-CmVjR6Ib.mjs → event-DR8U9Efx.mjs} +0 -0
  423. package/dist/{facet-BCI00njh.mjs → facet-DVsW12iF.mjs} +0 -0
  424. package/dist/{filesystem-service-CQ9yVkSz.d.mts → filesystem-service-Cm2RHKBa.d.mts} +0 -0
  425. package/dist/{handler-Cbv9FqDO.mjs → handler-Bqlk-6BY.mjs} +0 -0
  426. package/dist/{host-Caq6ZfSJ.mjs → host-k5yoyKHg.mjs} +0 -0
  427. package/dist/{identity-D6guMtmi.mjs → identity-DC3Pk0ps.mjs} +0 -0
  428. package/dist/{index-dtsLKOID.d.mts → index-42UdYStR.d.mts} +0 -0
  429. package/dist/{index-DR40QWlw.d.mts → index-BJAB-BW_.d.mts} +0 -0
  430. package/dist/{index-Dm1nUxCF.d.mts → index-BJMezANn.d.mts} +0 -0
  431. package/dist/{index-CnMu8BQl.d.mts → index-BQprJNA_.d.mts} +0 -0
  432. package/dist/{index-Cv-o5Krs.d.mts → index-BRCrFirq.d.mts} +0 -0
  433. package/dist/{index-BVRQEpAg.d.mts → index-BRzHs7Bx.d.mts} +6 -6
  434. /package/dist/{index-DXN_L5D6.d.mts → index-BSbGB23v.d.mts} +0 -0
  435. /package/dist/{index-vA--0lOM.d.mts → index-BVcQcphK.d.mts} +0 -0
  436. /package/dist/{index-ye0oklfU.d.mts → index-BcvqDfcN.d.mts} +0 -0
  437. /package/dist/{index-CGZQVTid.d.mts → index-BeENojSx2.d.mts} +0 -0
  438. /package/dist/{index-DjgLchuQ.d.mts → index-Beo_Ik8-.d.mts} +0 -0
  439. /package/dist/{index-sS6KUlrx.d.mts → index-BgGe9WZz.d.mts} +0 -0
  440. /package/dist/{index-CWHfOz6d.d.mts → index-CK3f0bAL.d.mts} +0 -0
  441. /package/dist/{index-DZunhZec.d.mts → index-CQuRTeRa.d.mts} +0 -0
  442. /package/dist/{index-jTaAHsul.d.mts → index-CRmE88hi.d.mts} +0 -0
  443. /package/dist/{index-CjdRdsd0.d.mts → index-CvW9_SzR.d.mts} +0 -0
  444. /package/dist/{index-ByKi34v5.d.mts → index-CxSSdIZz.d.mts} +0 -0
  445. /package/dist/{index-vcSj12YQ.d.mts → index-E4SET1AA.d.mts} +0 -0
  446. /package/dist/{index-DN4NOCqN2.d.mts → index-Ol9RBB0W2.d.mts} +0 -0
  447. /package/dist/{index-BIdsFcQs2.d.mts → index-aoxdnhJ42.d.mts} +0 -0
  448. /package/dist/{index-SsBHjUqA.d.mts → index-nydhGvXa.d.mts} +0 -0
  449. /package/dist/{jsonl-transport-bQl3JwIu.mjs → jsonl-transport-Bp_6pB2a.mjs} +0 -0
  450. /package/dist/{lib-DOBXZmYX.mjs → lib-Bwdd2m81.mjs} +0 -0
  451. /package/dist/{model-registry-CmgcPDH3.mjs → model-registry-Y854mUml.mjs} +0 -0
  452. /package/dist/{model-registry-xyBKSye-.mjs → model-registry-yURX738J.mjs} +0 -0
  453. /package/dist/{modes-BheyN7SS.mjs → modes-DmUsjHdV.mjs} +0 -0
  454. /package/dist/{namespace-HO2J9sO8.mjs → namespace-B9FEGuEu.mjs} +0 -0
  455. /package/dist/{namespace-jDhZjw-i.d.mts → namespace-Bi3CmYQy.d.mts} +0 -0
  456. /package/dist/{namespace-GPA7zots.d.mts → namespace-BusZERU8.d.mts} +0 -0
  457. /package/dist/{namespace-BOkKoq34.d.mts → namespace-ByP1Iipi.d.mts} +0 -0
  458. /package/dist/{namespace-YytVKIgI.d.mts → namespace-C1D77w7U.d.mts} +0 -0
  459. /package/dist/{namespace-CErHuXtb.d.mts → namespace-C6CVEGH8.d.mts} +0 -0
  460. /package/dist/{namespace-C-9si-fV.mjs → namespace-CfIW0hpQ.mjs} +0 -0
  461. /package/dist/{namespace-YxU1xf-K.mjs → namespace-CkBbNFSU.mjs} +0 -0
  462. /package/dist/{namespace-DWCEo-9M.d.mts → namespace-DX1Ec15L.d.mts} +0 -0
  463. /package/dist/{namespace-CWGKCNZm.mjs → namespace-DbNWsPFY.mjs} +0 -0
  464. /package/dist/{namespace-Cv1RFP7n.d.mts → namespace-Dgg0uoe6.d.mts} +0 -0
  465. /package/dist/{namespace-tGRAod3o.d.mts → namespace-s2y_NFKf.d.mts} +0 -0
  466. /package/dist/{namespace-Blp4c8GK.d.mts → namespace-yREpGJgG.d.mts} +0 -0
  467. /package/dist/{out-CvjtANXN.mjs → out-DrhwCgqM.mjs} +0 -0
  468. /package/dist/{packages-DtEEP0Vt.mjs → packages-FBv3fAOR.mjs} +0 -0
  469. /package/dist/{packages-BZ6pzFIq.d.mts → packages-N3-2Kl-Y.d.mts} +0 -0
  470. /package/dist/{platform-Bv8llU9c.mjs → platform-BrsMv_S3.mjs} +0 -0
  471. /package/dist/{provider-operation-Cxoe2SUr.d.mts → provider-operation-DJ_TLZFf.d.mts} +0 -0
  472. /package/dist/{providers-Co5UszRH.mjs → providers-CCcn4Ndp.mjs} +0 -0
  473. /package/dist/{providers-namespace-DjFkmvBR.d.mts → providers-namespace-DeJBh6MP.d.mts} +0 -0
  474. /package/dist/{quick-lru-CrOpWwrf.mjs → quick-lru-uwB0hP-y.mjs} +0 -0
  475. /package/dist/{schema-introspection-DgWQCpwx.mjs → schema-introspection-C1wvklj9.mjs} +0 -0
  476. /package/dist/{schema-Db-y-09L.mjs → schema-jIapW8Kb.mjs} +0 -0
  477. /package/dist/{schemas-CR8hSqTy.d.mts → schemas-B7zo7Zcx.d.mts} +0 -0
  478. /package/dist/{schemas-CqRm0i9a.mjs → schemas-BNdiVBWh.mjs} +0 -0
  479. /package/dist/{schemas-B1NWNASS.d.mts → schemas-C-Bm6Oac.d.mts} +0 -0
  480. /package/dist/{schemas-BO7uOum6.d.mts → schemas-CD0wOQxx.d.mts} +0 -0
  481. /package/dist/{schemas-N6x2z7Lf.d.mts → schemas-CeUI2i5j.d.mts} +0 -0
  482. /package/dist/{schemas-CwbYk_kZ.d.mts → schemas-Cg-Kwp8c.d.mts} +0 -0
  483. /package/dist/{schemas-BtZqovRH.d.mts → schemas-Cv3rR9Sz.d.mts} +0 -0
  484. /package/dist/{schemas-tDf_WiC8.mjs → schemas-CvHFbzdy.mjs} +0 -0
  485. /package/dist/{schemas-BsVYZviy.d.mts → schemas-DZH9lpxs.d.mts} +0 -0
  486. /package/dist/{schemas-BGExwp3j.mjs → schemas-DgwEVUt-.mjs} +0 -0
  487. /package/dist/{schemas-Bfxskx_2.mjs → schemas-mLpOfMoN.mjs} +0 -0
  488. /package/dist/{schemas-CQyRBqD6.d.mts → schemas-qA279_j_.d.mts} +0 -0
  489. /package/dist/{schemas-miYxK_Z1.d.mts → schemas-sMoRnBdZ.d.mts} +0 -0
  490. /package/dist/{semver-DlM8znk4.mjs → semver-DTXuyLcK.mjs} +0 -0
  491. /package/dist/{server-lifecycle-Dsq56aqC.d.mts → server-lifecycle-C_8iKgat.d.mts} +0 -0
  492. /package/dist/{server-lifecycle-kmQ5PUDv.mjs → server-lifecycle-DKx_fWlq.mjs} +0 -0
  493. /package/dist/{shared-schemas-DXwyMCwZ.mjs → shared-schemas-aahW97QW.mjs} +0 -0
  494. /package/dist/{src-CCu8TwL6.mjs → src-DHqsl5Pg.mjs} +0 -0
  495. /package/dist/{storage-namespace-BSrv0vXR.mjs → storage-namespace-Dz2jsssp.mjs} +0 -0
  496. /package/dist/{storage-namespace-dfywhXR3.d.mts → storage-namespace-Tf3P5yJ5.d.mts} +0 -0
  497. /package/dist/{storage-namespace-definition-BvlX0QV_.d.mts → storage-namespace-definition-BsnYAPot.d.mts} +0 -0
  498. /package/dist/{storage-namespace-definition-CkMKt7-I.mjs → storage-namespace-definition-CDef0E20.mjs} +0 -0
  499. /package/dist/{supports-color-DUugCQsK.mjs → supports-color-i7OTnKcZ.mjs} +0 -0
  500. /package/dist/{telemetry-Pr3oP2rk.mjs → telemetry-BvCBUjFg.mjs} +0 -0
  501. /package/dist/{timeout-DWDhddRJ.mjs → timeout-B0nYjLc8.mjs} +0 -0
  502. /package/dist/{tray-menu-service-BBLa-Rcv.mjs → tray-menu-service-Deo6yyP8.mjs} +0 -0
  503. /package/dist/{types-BrcjaNPZ.d.mts → types-CNS55jvt.d.mts} +0 -0
  504. /package/dist/{types-b54n1o57.d.mts → types-Ce6LL25v.d.mts} +0 -0
  505. /package/dist/{ui-config-CyCdlns_.mjs → ui-config-BIyGzMNL.mjs} +0 -0
  506. /package/dist/{variant-krjlTdJt.mjs → variant-B4uWdxW7.mjs} +0 -0
  507. /package/dist/{window-registry-BDnZLPVx.d.mts → window-registry-BLtVx3Iw.d.mts} +0 -0
  508. /package/dist/{window-registry-I-imZHV_.mjs → window-registry-CoBJq3u4.mjs} +0 -0
@@ -19,6 +19,7 @@ declare const AdapterNamespace: _$_makaio_core0.BusNamespaceDefinition<"adapter"
19
19
  startAgent: {
20
20
  request: _$zod.ZodUnion<readonly [_$zod.ZodObject<{
21
21
  adapterId: _$zod.ZodString;
22
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
22
23
  harnessId: _$zod.ZodOptional<_$zod.ZodString>;
23
24
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
24
25
  clientProfileName: _$zod.ZodOptional<_$zod.ZodString>;
@@ -323,6 +324,7 @@ declare const AdapterNamespace: _$_makaio_core0.BusNamespaceDefinition<"adapter"
323
324
  "native-attempt-failed": "native-attempt-failed";
324
325
  "agent-already-started": "agent-already-started";
325
326
  "fork-point-unresolvable": "fork-point-unresolvable";
327
+ "adapter-session-moved": "adapter-session-moved";
326
328
  }>;
327
329
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
328
330
  kind: _$zod.ZodLiteral<"foreign">;
@@ -386,9 +388,9 @@ declare const AdapterNamespace: _$_makaio_core0.BusNamespaceDefinition<"adapter"
386
388
  description: _$zod.ZodOptional<_$zod.ZodString>;
387
389
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
388
390
  exposureMode: _$zod.ZodEnum<{
389
- hidden: "hidden";
390
391
  direct: "direct";
391
392
  discovery: "discovery";
393
+ hidden: "hidden";
392
394
  }>;
393
395
  enabled: _$zod.ZodBoolean;
394
396
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -405,9 +407,9 @@ declare const AdapterNamespace: _$_makaio_core0.BusNamespaceDefinition<"adapter"
405
407
  description: _$zod.ZodOptional<_$zod.ZodString>;
406
408
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
407
409
  exposureMode: _$zod.ZodEnum<{
408
- hidden: "hidden";
409
410
  direct: "direct";
410
411
  discovery: "discovery";
412
+ hidden: "hidden";
411
413
  }>;
412
414
  enabled: _$zod.ZodBoolean;
413
415
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -466,9 +468,9 @@ declare const AdapterNamespace: _$_makaio_core0.BusNamespaceDefinition<"adapter"
466
468
  description: _$zod.ZodOptional<_$zod.ZodString>;
467
469
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
468
470
  exposureMode: _$zod.ZodEnum<{
469
- hidden: "hidden";
470
471
  direct: "direct";
471
472
  discovery: "discovery";
473
+ hidden: "hidden";
472
474
  }>;
473
475
  enabled: _$zod.ZodBoolean;
474
476
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -485,9 +487,9 @@ declare const AdapterNamespace: _$_makaio_core0.BusNamespaceDefinition<"adapter"
485
487
  description: _$zod.ZodOptional<_$zod.ZodString>;
486
488
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
487
489
  exposureMode: _$zod.ZodEnum<{
488
- hidden: "hidden";
489
490
  direct: "direct";
490
491
  discovery: "discovery";
492
+ hidden: "hidden";
491
493
  }>;
492
494
  enabled: _$zod.ZodBoolean;
493
495
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -591,6 +593,7 @@ declare const AdapterNamespace: _$_makaio_core0.BusNamespaceDefinition<"adapter"
591
593
  targetWorkingDirectory: _$zod.ZodOptional<_$zod.ZodString>;
592
594
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
593
595
  adapterId: _$zod.ZodString;
596
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
594
597
  harnessId: _$zod.ZodOptional<_$zod.ZodString>;
595
598
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
596
599
  clientProfileName: _$zod.ZodOptional<_$zod.ZodString>;
@@ -895,6 +898,7 @@ declare const AdapterNamespace: _$_makaio_core0.BusNamespaceDefinition<"adapter"
895
898
  "native-attempt-failed": "native-attempt-failed";
896
899
  "agent-already-started": "agent-already-started";
897
900
  "fork-point-unresolvable": "fork-point-unresolvable";
901
+ "adapter-session-moved": "adapter-session-moved";
898
902
  }>;
899
903
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
900
904
  kind: _$zod.ZodLiteral<"foreign">;
@@ -958,9 +962,9 @@ declare const AdapterNamespace: _$_makaio_core0.BusNamespaceDefinition<"adapter"
958
962
  description: _$zod.ZodOptional<_$zod.ZodString>;
959
963
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
960
964
  exposureMode: _$zod.ZodEnum<{
961
- hidden: "hidden";
962
965
  direct: "direct";
963
966
  discovery: "discovery";
967
+ hidden: "hidden";
964
968
  }>;
965
969
  enabled: _$zod.ZodBoolean;
966
970
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -977,9 +981,9 @@ declare const AdapterNamespace: _$_makaio_core0.BusNamespaceDefinition<"adapter"
977
981
  description: _$zod.ZodOptional<_$zod.ZodString>;
978
982
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
979
983
  exposureMode: _$zod.ZodEnum<{
980
- hidden: "hidden";
981
984
  direct: "direct";
982
985
  discovery: "discovery";
986
+ hidden: "hidden";
983
987
  }>;
984
988
  enabled: _$zod.ZodBoolean;
985
989
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -1038,9 +1042,9 @@ declare const AdapterNamespace: _$_makaio_core0.BusNamespaceDefinition<"adapter"
1038
1042
  description: _$zod.ZodOptional<_$zod.ZodString>;
1039
1043
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
1040
1044
  exposureMode: _$zod.ZodEnum<{
1041
- hidden: "hidden";
1042
1045
  direct: "direct";
1043
1046
  discovery: "discovery";
1047
+ hidden: "hidden";
1044
1048
  }>;
1045
1049
  enabled: _$zod.ZodBoolean;
1046
1050
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -1057,9 +1061,9 @@ declare const AdapterNamespace: _$_makaio_core0.BusNamespaceDefinition<"adapter"
1057
1061
  description: _$zod.ZodOptional<_$zod.ZodString>;
1058
1062
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
1059
1063
  exposureMode: _$zod.ZodEnum<{
1060
- hidden: "hidden";
1061
1064
  direct: "direct";
1062
1065
  discovery: "discovery";
1066
+ hidden: "hidden";
1063
1067
  }>;
1064
1068
  enabled: _$zod.ZodBoolean;
1065
1069
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -1160,6 +1164,7 @@ declare const AdapterNamespace: _$_makaio_core0.BusNamespaceDefinition<"adapter"
1160
1164
  adapterSessionId: _$zod.ZodString;
1161
1165
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1162
1166
  adapterId: _$zod.ZodString;
1167
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
1163
1168
  harnessId: _$zod.ZodOptional<_$zod.ZodString>;
1164
1169
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
1165
1170
  clientProfileName: _$zod.ZodOptional<_$zod.ZodString>;
@@ -1464,6 +1469,7 @@ declare const AdapterNamespace: _$_makaio_core0.BusNamespaceDefinition<"adapter"
1464
1469
  "native-attempt-failed": "native-attempt-failed";
1465
1470
  "agent-already-started": "agent-already-started";
1466
1471
  "fork-point-unresolvable": "fork-point-unresolvable";
1472
+ "adapter-session-moved": "adapter-session-moved";
1467
1473
  }>;
1468
1474
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1469
1475
  kind: _$zod.ZodLiteral<"foreign">;
@@ -1527,9 +1533,9 @@ declare const AdapterNamespace: _$_makaio_core0.BusNamespaceDefinition<"adapter"
1527
1533
  description: _$zod.ZodOptional<_$zod.ZodString>;
1528
1534
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
1529
1535
  exposureMode: _$zod.ZodEnum<{
1530
- hidden: "hidden";
1531
1536
  direct: "direct";
1532
1537
  discovery: "discovery";
1538
+ hidden: "hidden";
1533
1539
  }>;
1534
1540
  enabled: _$zod.ZodBoolean;
1535
1541
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -1546,9 +1552,9 @@ declare const AdapterNamespace: _$_makaio_core0.BusNamespaceDefinition<"adapter"
1546
1552
  description: _$zod.ZodOptional<_$zod.ZodString>;
1547
1553
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
1548
1554
  exposureMode: _$zod.ZodEnum<{
1549
- hidden: "hidden";
1550
1555
  direct: "direct";
1551
1556
  discovery: "discovery";
1557
+ hidden: "hidden";
1552
1558
  }>;
1553
1559
  enabled: _$zod.ZodBoolean;
1554
1560
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -1607,9 +1613,9 @@ declare const AdapterNamespace: _$_makaio_core0.BusNamespaceDefinition<"adapter"
1607
1613
  description: _$zod.ZodOptional<_$zod.ZodString>;
1608
1614
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
1609
1615
  exposureMode: _$zod.ZodEnum<{
1610
- hidden: "hidden";
1611
1616
  direct: "direct";
1612
1617
  discovery: "discovery";
1618
+ hidden: "hidden";
1613
1619
  }>;
1614
1620
  enabled: _$zod.ZodBoolean;
1615
1621
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -1626,9 +1632,9 @@ declare const AdapterNamespace: _$_makaio_core0.BusNamespaceDefinition<"adapter"
1626
1632
  description: _$zod.ZodOptional<_$zod.ZodString>;
1627
1633
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
1628
1634
  exposureMode: _$zod.ZodEnum<{
1629
- hidden: "hidden";
1630
1635
  direct: "direct";
1631
1636
  discovery: "discovery";
1637
+ hidden: "hidden";
1632
1638
  }>;
1633
1639
  enabled: _$zod.ZodBoolean;
1634
1640
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -1737,6 +1743,10 @@ declare const AdapterNamespace: _$_makaio_core0.BusNamespaceDefinition<"adapter"
1737
1743
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1738
1744
  success: _$zod.ZodLiteral<false>;
1739
1745
  message: _$zod.ZodString;
1746
+ dispatch: _$zod.ZodEnum<{
1747
+ "not-dispatched": "not-dispatched";
1748
+ "dispatch-uncertain": "dispatch-uncertain";
1749
+ }>;
1740
1750
  }, _$zod_v4_core0.$strip>], "success">;
1741
1751
  };
1742
1752
  infer: {
@@ -1867,6 +1877,14 @@ declare const AdapterNamespace: _$_makaio_core0.BusNamespaceDefinition<"adapter"
1867
1877
  }, _$zod_v4_core0.$strip>;
1868
1878
  response: _$zod.ZodObject<{
1869
1879
  success: _$zod.ZodBoolean;
1880
+ evidence: _$zod.ZodEnum<{
1881
+ unknown: "unknown";
1882
+ closed: "closed";
1883
+ exited: "exited";
1884
+ released: "released";
1885
+ detached: "detached";
1886
+ }>;
1887
+ detail: _$zod.ZodOptional<_$zod.ZodString>;
1870
1888
  }, _$zod_v4_core0.$strip>;
1871
1889
  };
1872
1890
  rehydrateAgent: {
@@ -1875,10 +1893,17 @@ declare const AdapterNamespace: _$_makaio_core0.BusNamespaceDefinition<"adapter"
1875
1893
  agentId: _$zod.ZodString;
1876
1894
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
1877
1895
  model: _$zod.ZodOptional<_$zod.ZodString>;
1878
- adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1879
1896
  resumeAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1897
+ callerOwnsAgentRow: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
1880
1898
  }, _$zod_v4_core0.$strip>;
1881
- response: _$zod.ZodObject<{}, _$zod_v4_core0.$strip>;
1899
+ response: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1900
+ success: _$zod.ZodLiteral<true>;
1901
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1902
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1903
+ success: _$zod.ZodLiteral<false>;
1904
+ message: _$zod.ZodString;
1905
+ dispatch: _$zod.ZodLiteral<"not-dispatched">;
1906
+ }, _$zod_v4_core0.$strip>], "success">;
1882
1907
  };
1883
1908
  getConfigSchema: {
1884
1909
  request: _$zod.ZodObject<{
@@ -1955,9 +1980,9 @@ declare const AdapterNamespace: _$_makaio_core0.BusNamespaceDefinition<"adapter"
1955
1980
  timestamp: _$zod.ZodNumber;
1956
1981
  level: _$zod.ZodOptional<_$zod.ZodEnum<{
1957
1982
  error: "error";
1983
+ warn: "warn";
1958
1984
  debug: "debug";
1959
1985
  info: "info";
1960
- warn: "warn";
1961
1986
  }>>;
1962
1987
  }, _$zod_v4_core0.$strip>;
1963
1988
  error: _$zod.ZodObject<{
@@ -2003,6 +2028,7 @@ declare const AdapterSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
2003
2028
  startAgent: {
2004
2029
  request: _$zod.ZodUnion<readonly [_$zod.ZodObject<{
2005
2030
  adapterId: _$zod.ZodString;
2031
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
2006
2032
  harnessId: _$zod.ZodOptional<_$zod.ZodString>;
2007
2033
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
2008
2034
  clientProfileName: _$zod.ZodOptional<_$zod.ZodString>;
@@ -2307,6 +2333,7 @@ declare const AdapterSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
2307
2333
  "native-attempt-failed": "native-attempt-failed";
2308
2334
  "agent-already-started": "agent-already-started";
2309
2335
  "fork-point-unresolvable": "fork-point-unresolvable";
2336
+ "adapter-session-moved": "adapter-session-moved";
2310
2337
  }>;
2311
2338
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2312
2339
  kind: _$zod.ZodLiteral<"foreign">;
@@ -2370,9 +2397,9 @@ declare const AdapterSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
2370
2397
  description: _$zod.ZodOptional<_$zod.ZodString>;
2371
2398
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
2372
2399
  exposureMode: _$zod.ZodEnum<{
2373
- hidden: "hidden";
2374
2400
  direct: "direct";
2375
2401
  discovery: "discovery";
2402
+ hidden: "hidden";
2376
2403
  }>;
2377
2404
  enabled: _$zod.ZodBoolean;
2378
2405
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -2389,9 +2416,9 @@ declare const AdapterSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
2389
2416
  description: _$zod.ZodOptional<_$zod.ZodString>;
2390
2417
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
2391
2418
  exposureMode: _$zod.ZodEnum<{
2392
- hidden: "hidden";
2393
2419
  direct: "direct";
2394
2420
  discovery: "discovery";
2421
+ hidden: "hidden";
2395
2422
  }>;
2396
2423
  enabled: _$zod.ZodBoolean;
2397
2424
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -2450,9 +2477,9 @@ declare const AdapterSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
2450
2477
  description: _$zod.ZodOptional<_$zod.ZodString>;
2451
2478
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
2452
2479
  exposureMode: _$zod.ZodEnum<{
2453
- hidden: "hidden";
2454
2480
  direct: "direct";
2455
2481
  discovery: "discovery";
2482
+ hidden: "hidden";
2456
2483
  }>;
2457
2484
  enabled: _$zod.ZodBoolean;
2458
2485
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -2469,9 +2496,9 @@ declare const AdapterSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
2469
2496
  description: _$zod.ZodOptional<_$zod.ZodString>;
2470
2497
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
2471
2498
  exposureMode: _$zod.ZodEnum<{
2472
- hidden: "hidden";
2473
2499
  direct: "direct";
2474
2500
  discovery: "discovery";
2501
+ hidden: "hidden";
2475
2502
  }>;
2476
2503
  enabled: _$zod.ZodBoolean;
2477
2504
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -2575,6 +2602,7 @@ declare const AdapterSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
2575
2602
  targetWorkingDirectory: _$zod.ZodOptional<_$zod.ZodString>;
2576
2603
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2577
2604
  adapterId: _$zod.ZodString;
2605
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
2578
2606
  harnessId: _$zod.ZodOptional<_$zod.ZodString>;
2579
2607
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
2580
2608
  clientProfileName: _$zod.ZodOptional<_$zod.ZodString>;
@@ -2879,6 +2907,7 @@ declare const AdapterSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
2879
2907
  "native-attempt-failed": "native-attempt-failed";
2880
2908
  "agent-already-started": "agent-already-started";
2881
2909
  "fork-point-unresolvable": "fork-point-unresolvable";
2910
+ "adapter-session-moved": "adapter-session-moved";
2882
2911
  }>;
2883
2912
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2884
2913
  kind: _$zod.ZodLiteral<"foreign">;
@@ -2942,9 +2971,9 @@ declare const AdapterSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
2942
2971
  description: _$zod.ZodOptional<_$zod.ZodString>;
2943
2972
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
2944
2973
  exposureMode: _$zod.ZodEnum<{
2945
- hidden: "hidden";
2946
2974
  direct: "direct";
2947
2975
  discovery: "discovery";
2976
+ hidden: "hidden";
2948
2977
  }>;
2949
2978
  enabled: _$zod.ZodBoolean;
2950
2979
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -2961,9 +2990,9 @@ declare const AdapterSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
2961
2990
  description: _$zod.ZodOptional<_$zod.ZodString>;
2962
2991
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
2963
2992
  exposureMode: _$zod.ZodEnum<{
2964
- hidden: "hidden";
2965
2993
  direct: "direct";
2966
2994
  discovery: "discovery";
2995
+ hidden: "hidden";
2967
2996
  }>;
2968
2997
  enabled: _$zod.ZodBoolean;
2969
2998
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -3022,9 +3051,9 @@ declare const AdapterSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
3022
3051
  description: _$zod.ZodOptional<_$zod.ZodString>;
3023
3052
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
3024
3053
  exposureMode: _$zod.ZodEnum<{
3025
- hidden: "hidden";
3026
3054
  direct: "direct";
3027
3055
  discovery: "discovery";
3056
+ hidden: "hidden";
3028
3057
  }>;
3029
3058
  enabled: _$zod.ZodBoolean;
3030
3059
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -3041,9 +3070,9 @@ declare const AdapterSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
3041
3070
  description: _$zod.ZodOptional<_$zod.ZodString>;
3042
3071
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
3043
3072
  exposureMode: _$zod.ZodEnum<{
3044
- hidden: "hidden";
3045
3073
  direct: "direct";
3046
3074
  discovery: "discovery";
3075
+ hidden: "hidden";
3047
3076
  }>;
3048
3077
  enabled: _$zod.ZodBoolean;
3049
3078
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -3144,6 +3173,7 @@ declare const AdapterSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
3144
3173
  adapterSessionId: _$zod.ZodString;
3145
3174
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
3146
3175
  adapterId: _$zod.ZodString;
3176
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
3147
3177
  harnessId: _$zod.ZodOptional<_$zod.ZodString>;
3148
3178
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
3149
3179
  clientProfileName: _$zod.ZodOptional<_$zod.ZodString>;
@@ -3448,6 +3478,7 @@ declare const AdapterSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
3448
3478
  "native-attempt-failed": "native-attempt-failed";
3449
3479
  "agent-already-started": "agent-already-started";
3450
3480
  "fork-point-unresolvable": "fork-point-unresolvable";
3481
+ "adapter-session-moved": "adapter-session-moved";
3451
3482
  }>;
3452
3483
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
3453
3484
  kind: _$zod.ZodLiteral<"foreign">;
@@ -3511,9 +3542,9 @@ declare const AdapterSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
3511
3542
  description: _$zod.ZodOptional<_$zod.ZodString>;
3512
3543
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
3513
3544
  exposureMode: _$zod.ZodEnum<{
3514
- hidden: "hidden";
3515
3545
  direct: "direct";
3516
3546
  discovery: "discovery";
3547
+ hidden: "hidden";
3517
3548
  }>;
3518
3549
  enabled: _$zod.ZodBoolean;
3519
3550
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -3530,9 +3561,9 @@ declare const AdapterSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
3530
3561
  description: _$zod.ZodOptional<_$zod.ZodString>;
3531
3562
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
3532
3563
  exposureMode: _$zod.ZodEnum<{
3533
- hidden: "hidden";
3534
3564
  direct: "direct";
3535
3565
  discovery: "discovery";
3566
+ hidden: "hidden";
3536
3567
  }>;
3537
3568
  enabled: _$zod.ZodBoolean;
3538
3569
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -3591,9 +3622,9 @@ declare const AdapterSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
3591
3622
  description: _$zod.ZodOptional<_$zod.ZodString>;
3592
3623
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
3593
3624
  exposureMode: _$zod.ZodEnum<{
3594
- hidden: "hidden";
3595
3625
  direct: "direct";
3596
3626
  discovery: "discovery";
3627
+ hidden: "hidden";
3597
3628
  }>;
3598
3629
  enabled: _$zod.ZodBoolean;
3599
3630
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -3610,9 +3641,9 @@ declare const AdapterSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
3610
3641
  description: _$zod.ZodOptional<_$zod.ZodString>;
3611
3642
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
3612
3643
  exposureMode: _$zod.ZodEnum<{
3613
- hidden: "hidden";
3614
3644
  direct: "direct";
3615
3645
  discovery: "discovery";
3646
+ hidden: "hidden";
3616
3647
  }>;
3617
3648
  enabled: _$zod.ZodBoolean;
3618
3649
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -3721,6 +3752,10 @@ declare const AdapterSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
3721
3752
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
3722
3753
  success: _$zod.ZodLiteral<false>;
3723
3754
  message: _$zod.ZodString;
3755
+ dispatch: _$zod.ZodEnum<{
3756
+ "not-dispatched": "not-dispatched";
3757
+ "dispatch-uncertain": "dispatch-uncertain";
3758
+ }>;
3724
3759
  }, _$zod_v4_core0.$strip>], "success">;
3725
3760
  };
3726
3761
  infer: {
@@ -3851,6 +3886,14 @@ declare const AdapterSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
3851
3886
  }, _$zod_v4_core0.$strip>;
3852
3887
  response: _$zod.ZodObject<{
3853
3888
  success: _$zod.ZodBoolean;
3889
+ evidence: _$zod.ZodEnum<{
3890
+ unknown: "unknown";
3891
+ closed: "closed";
3892
+ exited: "exited";
3893
+ released: "released";
3894
+ detached: "detached";
3895
+ }>;
3896
+ detail: _$zod.ZodOptional<_$zod.ZodString>;
3854
3897
  }, _$zod_v4_core0.$strip>;
3855
3898
  };
3856
3899
  rehydrateAgent: {
@@ -3859,10 +3902,17 @@ declare const AdapterSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
3859
3902
  agentId: _$zod.ZodString;
3860
3903
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
3861
3904
  model: _$zod.ZodOptional<_$zod.ZodString>;
3862
- adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
3863
3905
  resumeAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
3906
+ callerOwnsAgentRow: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
3864
3907
  }, _$zod_v4_core0.$strip>;
3865
- response: _$zod.ZodObject<{}, _$zod_v4_core0.$strip>;
3908
+ response: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
3909
+ success: _$zod.ZodLiteral<true>;
3910
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
3911
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
3912
+ success: _$zod.ZodLiteral<false>;
3913
+ message: _$zod.ZodString;
3914
+ dispatch: _$zod.ZodLiteral<"not-dispatched">;
3915
+ }, _$zod_v4_core0.$strip>], "success">;
3866
3916
  };
3867
3917
  getConfigSchema: {
3868
3918
  request: _$zod.ZodObject<{
@@ -3939,9 +3989,9 @@ declare const AdapterSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
3939
3989
  timestamp: _$zod.ZodNumber;
3940
3990
  level: _$zod.ZodOptional<_$zod.ZodEnum<{
3941
3991
  error: "error";
3992
+ warn: "warn";
3942
3993
  debug: "debug";
3943
3994
  info: "info";
3944
- warn: "warn";
3945
3995
  }>>;
3946
3996
  }, _$zod_v4_core0.$strip>;
3947
3997
  error: _$zod.ZodObject<{
@@ -4011,6 +4061,7 @@ declare const AdapterSchemas: {
4011
4061
  startAgent: {
4012
4062
  request: _$zod.ZodUnion<readonly [_$zod.ZodObject<{
4013
4063
  adapterId: _$zod.ZodString;
4064
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
4014
4065
  harnessId: _$zod.ZodOptional<_$zod.ZodString>;
4015
4066
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
4016
4067
  clientProfileName: _$zod.ZodOptional<_$zod.ZodString>;
@@ -4315,6 +4366,7 @@ declare const AdapterSchemas: {
4315
4366
  "native-attempt-failed": "native-attempt-failed";
4316
4367
  "agent-already-started": "agent-already-started";
4317
4368
  "fork-point-unresolvable": "fork-point-unresolvable";
4369
+ "adapter-session-moved": "adapter-session-moved";
4318
4370
  }>;
4319
4371
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
4320
4372
  kind: _$zod.ZodLiteral<"foreign">;
@@ -4378,9 +4430,9 @@ declare const AdapterSchemas: {
4378
4430
  description: _$zod.ZodOptional<_$zod.ZodString>;
4379
4431
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
4380
4432
  exposureMode: _$zod.ZodEnum<{
4381
- hidden: "hidden";
4382
4433
  direct: "direct";
4383
4434
  discovery: "discovery";
4435
+ hidden: "hidden";
4384
4436
  }>;
4385
4437
  enabled: _$zod.ZodBoolean;
4386
4438
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -4397,9 +4449,9 @@ declare const AdapterSchemas: {
4397
4449
  description: _$zod.ZodOptional<_$zod.ZodString>;
4398
4450
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
4399
4451
  exposureMode: _$zod.ZodEnum<{
4400
- hidden: "hidden";
4401
4452
  direct: "direct";
4402
4453
  discovery: "discovery";
4454
+ hidden: "hidden";
4403
4455
  }>;
4404
4456
  enabled: _$zod.ZodBoolean;
4405
4457
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -4458,9 +4510,9 @@ declare const AdapterSchemas: {
4458
4510
  description: _$zod.ZodOptional<_$zod.ZodString>;
4459
4511
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
4460
4512
  exposureMode: _$zod.ZodEnum<{
4461
- hidden: "hidden";
4462
4513
  direct: "direct";
4463
4514
  discovery: "discovery";
4515
+ hidden: "hidden";
4464
4516
  }>;
4465
4517
  enabled: _$zod.ZodBoolean;
4466
4518
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -4477,9 +4529,9 @@ declare const AdapterSchemas: {
4477
4529
  description: _$zod.ZodOptional<_$zod.ZodString>;
4478
4530
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
4479
4531
  exposureMode: _$zod.ZodEnum<{
4480
- hidden: "hidden";
4481
4532
  direct: "direct";
4482
4533
  discovery: "discovery";
4534
+ hidden: "hidden";
4483
4535
  }>;
4484
4536
  enabled: _$zod.ZodBoolean;
4485
4537
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -4583,6 +4635,7 @@ declare const AdapterSchemas: {
4583
4635
  targetWorkingDirectory: _$zod.ZodOptional<_$zod.ZodString>;
4584
4636
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
4585
4637
  adapterId: _$zod.ZodString;
4638
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
4586
4639
  harnessId: _$zod.ZodOptional<_$zod.ZodString>;
4587
4640
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
4588
4641
  clientProfileName: _$zod.ZodOptional<_$zod.ZodString>;
@@ -4887,6 +4940,7 @@ declare const AdapterSchemas: {
4887
4940
  "native-attempt-failed": "native-attempt-failed";
4888
4941
  "agent-already-started": "agent-already-started";
4889
4942
  "fork-point-unresolvable": "fork-point-unresolvable";
4943
+ "adapter-session-moved": "adapter-session-moved";
4890
4944
  }>;
4891
4945
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
4892
4946
  kind: _$zod.ZodLiteral<"foreign">;
@@ -4950,9 +5004,9 @@ declare const AdapterSchemas: {
4950
5004
  description: _$zod.ZodOptional<_$zod.ZodString>;
4951
5005
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
4952
5006
  exposureMode: _$zod.ZodEnum<{
4953
- hidden: "hidden";
4954
5007
  direct: "direct";
4955
5008
  discovery: "discovery";
5009
+ hidden: "hidden";
4956
5010
  }>;
4957
5011
  enabled: _$zod.ZodBoolean;
4958
5012
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -4969,9 +5023,9 @@ declare const AdapterSchemas: {
4969
5023
  description: _$zod.ZodOptional<_$zod.ZodString>;
4970
5024
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
4971
5025
  exposureMode: _$zod.ZodEnum<{
4972
- hidden: "hidden";
4973
5026
  direct: "direct";
4974
5027
  discovery: "discovery";
5028
+ hidden: "hidden";
4975
5029
  }>;
4976
5030
  enabled: _$zod.ZodBoolean;
4977
5031
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -5030,9 +5084,9 @@ declare const AdapterSchemas: {
5030
5084
  description: _$zod.ZodOptional<_$zod.ZodString>;
5031
5085
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
5032
5086
  exposureMode: _$zod.ZodEnum<{
5033
- hidden: "hidden";
5034
5087
  direct: "direct";
5035
5088
  discovery: "discovery";
5089
+ hidden: "hidden";
5036
5090
  }>;
5037
5091
  enabled: _$zod.ZodBoolean;
5038
5092
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -5049,9 +5103,9 @@ declare const AdapterSchemas: {
5049
5103
  description: _$zod.ZodOptional<_$zod.ZodString>;
5050
5104
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
5051
5105
  exposureMode: _$zod.ZodEnum<{
5052
- hidden: "hidden";
5053
5106
  direct: "direct";
5054
5107
  discovery: "discovery";
5108
+ hidden: "hidden";
5055
5109
  }>;
5056
5110
  enabled: _$zod.ZodBoolean;
5057
5111
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -5152,6 +5206,7 @@ declare const AdapterSchemas: {
5152
5206
  adapterSessionId: _$zod.ZodString;
5153
5207
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5154
5208
  adapterId: _$zod.ZodString;
5209
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
5155
5210
  harnessId: _$zod.ZodOptional<_$zod.ZodString>;
5156
5211
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
5157
5212
  clientProfileName: _$zod.ZodOptional<_$zod.ZodString>;
@@ -5456,6 +5511,7 @@ declare const AdapterSchemas: {
5456
5511
  "native-attempt-failed": "native-attempt-failed";
5457
5512
  "agent-already-started": "agent-already-started";
5458
5513
  "fork-point-unresolvable": "fork-point-unresolvable";
5514
+ "adapter-session-moved": "adapter-session-moved";
5459
5515
  }>;
5460
5516
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5461
5517
  kind: _$zod.ZodLiteral<"foreign">;
@@ -5519,9 +5575,9 @@ declare const AdapterSchemas: {
5519
5575
  description: _$zod.ZodOptional<_$zod.ZodString>;
5520
5576
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
5521
5577
  exposureMode: _$zod.ZodEnum<{
5522
- hidden: "hidden";
5523
5578
  direct: "direct";
5524
5579
  discovery: "discovery";
5580
+ hidden: "hidden";
5525
5581
  }>;
5526
5582
  enabled: _$zod.ZodBoolean;
5527
5583
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -5538,9 +5594,9 @@ declare const AdapterSchemas: {
5538
5594
  description: _$zod.ZodOptional<_$zod.ZodString>;
5539
5595
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
5540
5596
  exposureMode: _$zod.ZodEnum<{
5541
- hidden: "hidden";
5542
5597
  direct: "direct";
5543
5598
  discovery: "discovery";
5599
+ hidden: "hidden";
5544
5600
  }>;
5545
5601
  enabled: _$zod.ZodBoolean;
5546
5602
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -5599,9 +5655,9 @@ declare const AdapterSchemas: {
5599
5655
  description: _$zod.ZodOptional<_$zod.ZodString>;
5600
5656
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
5601
5657
  exposureMode: _$zod.ZodEnum<{
5602
- hidden: "hidden";
5603
5658
  direct: "direct";
5604
5659
  discovery: "discovery";
5660
+ hidden: "hidden";
5605
5661
  }>;
5606
5662
  enabled: _$zod.ZodBoolean;
5607
5663
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -5618,9 +5674,9 @@ declare const AdapterSchemas: {
5618
5674
  description: _$zod.ZodOptional<_$zod.ZodString>;
5619
5675
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
5620
5676
  exposureMode: _$zod.ZodEnum<{
5621
- hidden: "hidden";
5622
5677
  direct: "direct";
5623
5678
  discovery: "discovery";
5679
+ hidden: "hidden";
5624
5680
  }>;
5625
5681
  enabled: _$zod.ZodBoolean;
5626
5682
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -5729,6 +5785,10 @@ declare const AdapterSchemas: {
5729
5785
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5730
5786
  success: _$zod.ZodLiteral<false>;
5731
5787
  message: _$zod.ZodString;
5788
+ dispatch: _$zod.ZodEnum<{
5789
+ "not-dispatched": "not-dispatched";
5790
+ "dispatch-uncertain": "dispatch-uncertain";
5791
+ }>;
5732
5792
  }, _$zod_v4_core0.$strip>], "success">;
5733
5793
  };
5734
5794
  infer: {
@@ -5859,6 +5919,14 @@ declare const AdapterSchemas: {
5859
5919
  }, _$zod_v4_core0.$strip>;
5860
5920
  response: _$zod.ZodObject<{
5861
5921
  success: _$zod.ZodBoolean;
5922
+ evidence: _$zod.ZodEnum<{
5923
+ unknown: "unknown";
5924
+ closed: "closed";
5925
+ exited: "exited";
5926
+ released: "released";
5927
+ detached: "detached";
5928
+ }>;
5929
+ detail: _$zod.ZodOptional<_$zod.ZodString>;
5862
5930
  }, _$zod_v4_core0.$strip>;
5863
5931
  };
5864
5932
  rehydrateAgent: {
@@ -5867,10 +5935,17 @@ declare const AdapterSchemas: {
5867
5935
  agentId: _$zod.ZodString;
5868
5936
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
5869
5937
  model: _$zod.ZodOptional<_$zod.ZodString>;
5870
- adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
5871
5938
  resumeAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
5939
+ callerOwnsAgentRow: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
5872
5940
  }, _$zod_v4_core0.$strip>;
5873
- response: _$zod.ZodObject<{}, _$zod_v4_core0.$strip>;
5941
+ response: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
5942
+ success: _$zod.ZodLiteral<true>;
5943
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
5944
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5945
+ success: _$zod.ZodLiteral<false>;
5946
+ message: _$zod.ZodString;
5947
+ dispatch: _$zod.ZodLiteral<"not-dispatched">;
5948
+ }, _$zod_v4_core0.$strip>], "success">;
5874
5949
  };
5875
5950
  getConfigSchema: {
5876
5951
  request: _$zod.ZodObject<{
@@ -5947,9 +6022,9 @@ declare const AdapterSchemas: {
5947
6022
  timestamp: _$zod.ZodNumber;
5948
6023
  level: _$zod.ZodOptional<_$zod.ZodEnum<{
5949
6024
  error: "error";
6025
+ warn: "warn";
5950
6026
  debug: "debug";
5951
6027
  info: "info";
5952
- warn: "warn";
5953
6028
  }>>;
5954
6029
  }, _$zod_v4_core0.$strip>;
5955
6030
  error: _$zod.ZodObject<{
@@ -6015,6 +6090,29 @@ declare const AdapterRuntimeOptionsSchema: z.ZodObject<{
6015
6090
  type AdapterRuntimeOptions$1 = z.infer<typeof AdapterRuntimeOptionsSchema>;
6016
6091
  //#endregion
6017
6092
  //#region core/contracts/src/adapter/schemas/start-agent.d.ts
6093
+ /**
6094
+ * How far a failed start got, as evidence for the caller's cleanup decision.
6095
+ *
6096
+ * A caller that reserved provider-session ownership before dispatching has to
6097
+ * decide between two incompatible cleanups: give the reservation back, or retire
6098
+ * it as possibly-live debris. Only the adapter knows which, and a bare error
6099
+ * message cannot carry it.
6100
+ *
6101
+ * Exactly two members, because a start has exactly two knowable outcomes. A
6102
+ * thrown start carries no disposition at all and callers must treat it as
6103
+ * `'dispatch-uncertain'`: the throw may come from anywhere in provider-context
6104
+ * activation, agent creation or the connector start.
6105
+ *
6106
+ * `adapter.rehydrateAgent` is a second producer of this vocabulary. Its failure
6107
+ * response narrows the field to `'not-dispatched'`, because a rehydrate that
6108
+ * may have reached the provider always leaves by throwing.
6109
+ */
6110
+ declare const AdapterStartDispositionSchema: z.ZodEnum<{
6111
+ "not-dispatched": "not-dispatched";
6112
+ "dispatch-uncertain": "dispatch-uncertain";
6113
+ }>;
6114
+ /** {@inheritDoc AdapterStartDispositionSchema} */
6115
+ type AdapterStartDisposition = z.infer<typeof AdapterStartDispositionSchema>;
6018
6116
  /**
6019
6117
  * Start a new agent with full lifecycle control.
6020
6118
  *
@@ -6034,6 +6132,7 @@ type AdapterRuntimeOptions$1 = z.infer<typeof AdapterRuntimeOptionsSchema>;
6034
6132
  declare const StartAgentSchema: {
6035
6133
  request: z.ZodUnion<readonly [z.ZodObject<{
6036
6134
  adapterId: z.ZodString;
6135
+ agentId: z.ZodOptional<z.ZodString>;
6037
6136
  harnessId: z.ZodOptional<z.ZodString>;
6038
6137
  clientId: z.ZodOptional<z.ZodString>;
6039
6138
  clientProfileName: z.ZodOptional<z.ZodString>;
@@ -6338,6 +6437,7 @@ declare const StartAgentSchema: {
6338
6437
  "native-attempt-failed": "native-attempt-failed";
6339
6438
  "agent-already-started": "agent-already-started";
6340
6439
  "fork-point-unresolvable": "fork-point-unresolvable";
6440
+ "adapter-session-moved": "adapter-session-moved";
6341
6441
  }>;
6342
6442
  }, z.core.$strip>, z.ZodObject<{
6343
6443
  kind: z.ZodLiteral<"foreign">;
@@ -6401,9 +6501,9 @@ declare const StartAgentSchema: {
6401
6501
  description: z.ZodOptional<z.ZodString>;
6402
6502
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6403
6503
  exposureMode: z.ZodEnum<{
6404
- hidden: "hidden";
6405
6504
  direct: "direct";
6406
6505
  discovery: "discovery";
6506
+ hidden: "hidden";
6407
6507
  }>;
6408
6508
  enabled: z.ZodBoolean;
6409
6509
  enabledBy: z.ZodOptional<z.ZodEnum<{
@@ -6420,9 +6520,9 @@ declare const StartAgentSchema: {
6420
6520
  description: z.ZodOptional<z.ZodString>;
6421
6521
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6422
6522
  exposureMode: z.ZodEnum<{
6423
- hidden: "hidden";
6424
6523
  direct: "direct";
6425
6524
  discovery: "discovery";
6525
+ hidden: "hidden";
6426
6526
  }>;
6427
6527
  enabled: z.ZodBoolean;
6428
6528
  enabledBy: z.ZodOptional<z.ZodEnum<{
@@ -6481,9 +6581,9 @@ declare const StartAgentSchema: {
6481
6581
  description: z.ZodOptional<z.ZodString>;
6482
6582
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6483
6583
  exposureMode: z.ZodEnum<{
6484
- hidden: "hidden";
6485
6584
  direct: "direct";
6486
6585
  discovery: "discovery";
6586
+ hidden: "hidden";
6487
6587
  }>;
6488
6588
  enabled: z.ZodBoolean;
6489
6589
  enabledBy: z.ZodOptional<z.ZodEnum<{
@@ -6500,9 +6600,9 @@ declare const StartAgentSchema: {
6500
6600
  description: z.ZodOptional<z.ZodString>;
6501
6601
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6502
6602
  exposureMode: z.ZodEnum<{
6503
- hidden: "hidden";
6504
6603
  direct: "direct";
6505
6604
  discovery: "discovery";
6605
+ hidden: "hidden";
6506
6606
  }>;
6507
6607
  enabled: z.ZodBoolean;
6508
6608
  enabledBy: z.ZodOptional<z.ZodEnum<{
@@ -6606,6 +6706,7 @@ declare const StartAgentSchema: {
6606
6706
  targetWorkingDirectory: z.ZodOptional<z.ZodString>;
6607
6707
  }, z.core.$strip>, z.ZodObject<{
6608
6708
  adapterId: z.ZodString;
6709
+ agentId: z.ZodOptional<z.ZodString>;
6609
6710
  harnessId: z.ZodOptional<z.ZodString>;
6610
6711
  clientId: z.ZodOptional<z.ZodString>;
6611
6712
  clientProfileName: z.ZodOptional<z.ZodString>;
@@ -6910,6 +7011,7 @@ declare const StartAgentSchema: {
6910
7011
  "native-attempt-failed": "native-attempt-failed";
6911
7012
  "agent-already-started": "agent-already-started";
6912
7013
  "fork-point-unresolvable": "fork-point-unresolvable";
7014
+ "adapter-session-moved": "adapter-session-moved";
6913
7015
  }>;
6914
7016
  }, z.core.$strip>, z.ZodObject<{
6915
7017
  kind: z.ZodLiteral<"foreign">;
@@ -6973,9 +7075,9 @@ declare const StartAgentSchema: {
6973
7075
  description: z.ZodOptional<z.ZodString>;
6974
7076
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6975
7077
  exposureMode: z.ZodEnum<{
6976
- hidden: "hidden";
6977
7078
  direct: "direct";
6978
7079
  discovery: "discovery";
7080
+ hidden: "hidden";
6979
7081
  }>;
6980
7082
  enabled: z.ZodBoolean;
6981
7083
  enabledBy: z.ZodOptional<z.ZodEnum<{
@@ -6992,9 +7094,9 @@ declare const StartAgentSchema: {
6992
7094
  description: z.ZodOptional<z.ZodString>;
6993
7095
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6994
7096
  exposureMode: z.ZodEnum<{
6995
- hidden: "hidden";
6996
7097
  direct: "direct";
6997
7098
  discovery: "discovery";
7099
+ hidden: "hidden";
6998
7100
  }>;
6999
7101
  enabled: z.ZodBoolean;
7000
7102
  enabledBy: z.ZodOptional<z.ZodEnum<{
@@ -7053,9 +7155,9 @@ declare const StartAgentSchema: {
7053
7155
  description: z.ZodOptional<z.ZodString>;
7054
7156
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7055
7157
  exposureMode: z.ZodEnum<{
7056
- hidden: "hidden";
7057
7158
  direct: "direct";
7058
7159
  discovery: "discovery";
7160
+ hidden: "hidden";
7059
7161
  }>;
7060
7162
  enabled: z.ZodBoolean;
7061
7163
  enabledBy: z.ZodOptional<z.ZodEnum<{
@@ -7072,9 +7174,9 @@ declare const StartAgentSchema: {
7072
7174
  description: z.ZodOptional<z.ZodString>;
7073
7175
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7074
7176
  exposureMode: z.ZodEnum<{
7075
- hidden: "hidden";
7076
7177
  direct: "direct";
7077
7178
  discovery: "discovery";
7179
+ hidden: "hidden";
7078
7180
  }>;
7079
7181
  enabled: z.ZodBoolean;
7080
7182
  enabledBy: z.ZodOptional<z.ZodEnum<{
@@ -7175,6 +7277,7 @@ declare const StartAgentSchema: {
7175
7277
  adapterSessionId: z.ZodString;
7176
7278
  }, z.core.$strip>, z.ZodObject<{
7177
7279
  adapterId: z.ZodString;
7280
+ agentId: z.ZodOptional<z.ZodString>;
7178
7281
  harnessId: z.ZodOptional<z.ZodString>;
7179
7282
  clientId: z.ZodOptional<z.ZodString>;
7180
7283
  clientProfileName: z.ZodOptional<z.ZodString>;
@@ -7479,6 +7582,7 @@ declare const StartAgentSchema: {
7479
7582
  "native-attempt-failed": "native-attempt-failed";
7480
7583
  "agent-already-started": "agent-already-started";
7481
7584
  "fork-point-unresolvable": "fork-point-unresolvable";
7585
+ "adapter-session-moved": "adapter-session-moved";
7482
7586
  }>;
7483
7587
  }, z.core.$strip>, z.ZodObject<{
7484
7588
  kind: z.ZodLiteral<"foreign">;
@@ -7542,9 +7646,9 @@ declare const StartAgentSchema: {
7542
7646
  description: z.ZodOptional<z.ZodString>;
7543
7647
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7544
7648
  exposureMode: z.ZodEnum<{
7545
- hidden: "hidden";
7546
7649
  direct: "direct";
7547
7650
  discovery: "discovery";
7651
+ hidden: "hidden";
7548
7652
  }>;
7549
7653
  enabled: z.ZodBoolean;
7550
7654
  enabledBy: z.ZodOptional<z.ZodEnum<{
@@ -7561,9 +7665,9 @@ declare const StartAgentSchema: {
7561
7665
  description: z.ZodOptional<z.ZodString>;
7562
7666
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7563
7667
  exposureMode: z.ZodEnum<{
7564
- hidden: "hidden";
7565
7668
  direct: "direct";
7566
7669
  discovery: "discovery";
7670
+ hidden: "hidden";
7567
7671
  }>;
7568
7672
  enabled: z.ZodBoolean;
7569
7673
  enabledBy: z.ZodOptional<z.ZodEnum<{
@@ -7622,9 +7726,9 @@ declare const StartAgentSchema: {
7622
7726
  description: z.ZodOptional<z.ZodString>;
7623
7727
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7624
7728
  exposureMode: z.ZodEnum<{
7625
- hidden: "hidden";
7626
7729
  direct: "direct";
7627
7730
  discovery: "discovery";
7731
+ hidden: "hidden";
7628
7732
  }>;
7629
7733
  enabled: z.ZodBoolean;
7630
7734
  enabledBy: z.ZodOptional<z.ZodEnum<{
@@ -7641,9 +7745,9 @@ declare const StartAgentSchema: {
7641
7745
  description: z.ZodOptional<z.ZodString>;
7642
7746
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7643
7747
  exposureMode: z.ZodEnum<{
7644
- hidden: "hidden";
7645
7748
  direct: "direct";
7646
7749
  discovery: "discovery";
7750
+ hidden: "hidden";
7647
7751
  }>;
7648
7752
  enabled: z.ZodBoolean;
7649
7753
  enabledBy: z.ZodOptional<z.ZodEnum<{
@@ -7752,6 +7856,10 @@ declare const StartAgentSchema: {
7752
7856
  }, z.core.$strip>, z.ZodObject<{
7753
7857
  success: z.ZodLiteral<false>;
7754
7858
  message: z.ZodString;
7859
+ dispatch: z.ZodEnum<{
7860
+ "not-dispatched": "not-dispatched";
7861
+ "dispatch-uncertain": "dispatch-uncertain";
7862
+ }>;
7755
7863
  }, z.core.$strip>], "success">;
7756
7864
  };
7757
7865
  type StartAgentRequest = z.infer<typeof StartAgentSchema.request>;
@@ -7772,15 +7880,21 @@ type StartAgentResponse = z.infer<typeof StartAgentSchema.response>;
7772
7880
  * 2. Create a new connector with optional config overrides (cwd, model)
7773
7881
  * 3. Wire the new connector to the existing agent instance
7774
7882
  *
7775
- * Success is implicit. Errors are thrown if:
7776
- * - Agent not found
7777
- * - Adapter not found
7778
- * - Connector swap fails
7883
+ * The response is a disposition union, mirroring `adapter.startAgent`. A refusal
7884
+ * the adapter takes *before* anything reaches the provider — a disposed agent,
7885
+ * or a provider session already claimed by another in-flight operation — is
7886
+ * modelled as `{ success: false, dispatch: 'not-dispatched' }` so a caller that
7887
+ * reserved provider-session ownership can give the reservation back cleanly
7888
+ * instead of retiring it as possibly-live debris. Every other failure still
7889
+ * throws, and a throw is `'dispatch-uncertain'` by construction: it can come
7890
+ * from anywhere in provider-context activation, agent creation or the connector
7891
+ * swap.
7779
7892
  * @param adapterId - Target adapter instance ID
7780
7893
  * @param agentId - Agent to rehydrate
7781
7894
  * @param cwd - Optional working directory override for new connector
7782
7895
  * @param model - Optional model override for new connector
7783
- * @param adapterSessionId - Optional persisted native session ID for resume-capable connectors
7896
+ * @param resumeAdapterSessionId - Optional provider session to natively resume
7897
+ * @param callerOwnsAgentRow - Set when the caller owns the agent row's status transitions
7784
7898
  */
7785
7899
  declare const RehydrateAgentSchema: {
7786
7900
  request: z.ZodObject<{
@@ -7788,14 +7902,122 @@ declare const RehydrateAgentSchema: {
7788
7902
  agentId: z.ZodString;
7789
7903
  cwd: z.ZodOptional<z.ZodString>;
7790
7904
  model: z.ZodOptional<z.ZodString>;
7791
- adapterSessionId: z.ZodOptional<z.ZodString>;
7792
7905
  resumeAdapterSessionId: z.ZodOptional<z.ZodString>;
7793
- }, z.core.$strip>; /** Empty response - success is implicit, errors throw */
7794
- response: z.ZodObject<{}, z.core.$strip>;
7906
+ callerOwnsAgentRow: z.ZodOptional<z.ZodLiteral<true>>;
7907
+ }, z.core.$strip>;
7908
+ response: z.ZodDiscriminatedUnion<[z.ZodObject<{
7909
+ success: z.ZodLiteral<true>;
7910
+ adapterSessionId: z.ZodOptional<z.ZodString>;
7911
+ }, z.core.$strip>, z.ZodObject<{
7912
+ success: z.ZodLiteral<false>;
7913
+ message: z.ZodString;
7914
+ dispatch: z.ZodLiteral<"not-dispatched">;
7915
+ }, z.core.$strip>], "success">;
7795
7916
  };
7796
7917
  type RehydrateAgentRequest = z.infer<typeof RehydrateAgentSchema.request>;
7797
7918
  type RehydrateAgentResponse = z.infer<typeof RehydrateAgentSchema.response>;
7798
7919
  //#endregion
7920
+ //#region core/contracts/src/adapter/schemas/teardown.d.ts
7921
+ /**
7922
+ * What a runtime observed about the end of a resource it was holding.
7923
+ *
7924
+ * Ordered from strongest to weakest evidence. The distinction that matters to
7925
+ * every consumer is the boundary between the first three and the last two: the
7926
+ * first three mean *nothing of ours is still talking to the provider*, the last
7927
+ * two mean *we stopped holding it and cannot say more*.
7928
+ *
7929
+ * The per-member reasoning:
7930
+ * - `exited` — an operating-system process this runtime spawned has terminated
7931
+ * and its termination was observed (an `exit`/`close` event, a settled spawn
7932
+ * promise, a reaped status). The strongest class available anywhere here.
7933
+ * - `closed` — a connection this runtime owned is closed and the close was
7934
+ * acknowledged by the peer or reported by the OS. The peer process may
7935
+ * outlive it; what is proven is that *this* runtime can no longer speak on it.
7936
+ * - `released` — an in-process object was released, every handle dropped and
7937
+ * every subscription cancelled, so no callback can arrive afterwards.
7938
+ * Provable locally and without a counterparty — which is exactly why it is
7939
+ * admissible: for a resource with no external end, "no further effects are
7940
+ * possible" is the whole of what closure means.
7941
+ * - `detached` — the runtime gave up its handle, but something outside it may
7942
+ * still be running: a process it did not spawn, a server-side session it can
7943
+ * only *ask* to end, a detached supervisor. **Not** an error.
7944
+ * - `unknown` — the teardown path threw, timed out, or was never reached.
7945
+ * Nothing is known.
7946
+ */
7947
+ declare const TeardownEvidenceSchema: z.ZodEnum<{
7948
+ unknown: "unknown";
7949
+ closed: "closed";
7950
+ exited: "exited";
7951
+ released: "released";
7952
+ detached: "detached";
7953
+ }>;
7954
+ /** One member of {@link TeardownEvidenceSchema}. */
7955
+ type TeardownEvidence$1 = z.infer<typeof TeardownEvidenceSchema>;
7956
+ /**
7957
+ * Whether an evidence class proves this runtime has stopped speaking to the
7958
+ * provider.
7959
+ *
7960
+ * The single predicate every consumer branches on, so the boundary is defined
7961
+ * once. `detached` and `unknown` are **not** observed: the first because someone
7962
+ * else may still be speaking, the second because nobody knows.
7963
+ * @param evidence - Class reported by the teardown.
7964
+ * @returns Whether the runtime provably released the provider conversation.
7965
+ */
7966
+ declare function teardownWasObserved$1(evidence: TeardownEvidence$1): boolean;
7967
+ /**
7968
+ * Result of tearing one connector down.
7969
+ *
7970
+ * Carries the class plus a human-readable `detail` for diagnostics. It is not an
7971
+ * error type: a `detached` or `unknown` teardown is a *reported outcome*, and a
7972
+ * consumer that treats it as a failure will start failing removals whenever an
7973
+ * adapter is slow.
7974
+ */
7975
+ declare const ConnectorTeardownResultSchema: z.ZodObject<{
7976
+ evidence: z.ZodEnum<{
7977
+ unknown: "unknown";
7978
+ closed: "closed";
7979
+ exited: "exited";
7980
+ released: "released";
7981
+ detached: "detached";
7982
+ }>;
7983
+ detail: z.ZodOptional<z.ZodString>;
7984
+ }, z.core.$strip>;
7985
+ /** One reported connector teardown. */
7986
+ type ConnectorTeardownResult$1 = z.infer<typeof ConnectorTeardownResultSchema>;
7987
+ /**
7988
+ * Reduce a set of teardown classes to the one a caller may claim for all of
7989
+ * them.
7990
+ *
7991
+ * **The wave's only aggregation rule**, so every layer that tears down more
7992
+ * than one resource calls this instead of restating it: the reported class is
7993
+ * the **weakest** in the set — `unknown` if any is `unknown`, else `detached` if
7994
+ * any is `detached`, else the weakest of the observed three.
7995
+ *
7996
+ * A teardown of *nothing* reports `released`: there is provably nothing
7997
+ * speaking, and that is the case consumers hit most often — a wrong default
7998
+ * there is invisible.
7999
+ * @param classes - Classes observed by the individual teardowns, in any order.
8000
+ * @returns The weakest class in the set, or `released` for an empty set.
8001
+ */
8002
+ declare function aggregateTeardownEvidence$1(classes: Iterable<TeardownEvidence$1>): TeardownEvidence$1;
8003
+ /**
8004
+ * Reduce a set of reported teardowns to the one result standing for all of them.
8005
+ *
8006
+ * {@link aggregateTeardownEvidence} answers the class; this answers the whole
8007
+ * *result*, because every layer that aggregates needs the second half too and had
8008
+ * been restating it: the `detail`s of the members that reached no observed class
8009
+ * are joined, so a caller told only `unknown` can still tell **which** of several
8010
+ * resources produced it. Which members those are is not a second list of classes
8011
+ * here — it is {@link teardownWasObserved} negated, so the boundary keeps having
8012
+ * exactly one definition.
8013
+ *
8014
+ * Layers that carry more than the wire fields (a failure to rethrow, a per-resource
8015
+ * breakdown) build on this result rather than beside it.
8016
+ * @param results - Results reported by the individual teardowns, in any order.
8017
+ * @returns The weakest class in the set, carrying the joined weak-class `detail`s.
8018
+ */
8019
+ declare function aggregateTeardownResults$1(results: readonly ConnectorTeardownResult$1[]): ConnectorTeardownResult$1;
8020
+ //#endregion
7799
8021
  //#region core/contracts/src/adapter/schemas/session-usage.d.ts
7800
8022
  /**
7801
8023
  * Session-level cumulative usage metrics.
@@ -7933,9 +8155,9 @@ declare const AgentSelectionBaseSchema: z.ZodObject<{
7933
8155
  description: z.ZodOptional<z.ZodString>;
7934
8156
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7935
8157
  exposureMode: z.ZodEnum<{
7936
- hidden: "hidden";
7937
8158
  direct: "direct";
7938
8159
  discovery: "discovery";
8160
+ hidden: "hidden";
7939
8161
  }>;
7940
8162
  enabled: z.ZodBoolean;
7941
8163
  enabledBy: z.ZodOptional<z.ZodEnum<{
@@ -7952,9 +8174,9 @@ declare const AgentSelectionBaseSchema: z.ZodObject<{
7952
8174
  description: z.ZodOptional<z.ZodString>;
7953
8175
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7954
8176
  exposureMode: z.ZodEnum<{
7955
- hidden: "hidden";
7956
8177
  direct: "direct";
7957
8178
  discovery: "discovery";
8179
+ hidden: "hidden";
7958
8180
  }>;
7959
8181
  enabled: z.ZodBoolean;
7960
8182
  enabledBy: z.ZodOptional<z.ZodEnum<{
@@ -7976,11 +8198,18 @@ type AgentSelectionBase = z.infer<typeof AgentSelectionBaseSchema>;
7976
8198
  * Specifies the adapter driver to use. `adapterName` may be omitted when an
7977
8199
  * `adapterId` is provided for unambiguous multi-host targeting; startup paths
7978
8200
  * backfill the name when the runtime already knows it.
8201
+ *
8202
+ * **Naming an instance means naming its machine, and naming a machine means
8203
+ * naming an instance.** The two are one key: an instance ID cannot be inverted
8204
+ * back to the machine it was derived for, and a machine named on its own is read
8205
+ * by nothing — see {@link AdapterSelectionSchema.machineId}. Either half alone is
8206
+ * refused.
7979
8207
  * @example
7980
8208
  * ```typescript
7981
8209
  * const selection: AdapterSelection = {
7982
8210
  * kind: 'adapter',
7983
8211
  * adapterId: 'adapter-123',
8212
+ * machineId: 'machine-a',
7984
8213
  * model: 'sonnet',
7985
8214
  * };
7986
8215
  * ```
@@ -8052,9 +8281,9 @@ declare const AdapterSelectionSchema: z.ZodObject<{
8052
8281
  description: z.ZodOptional<z.ZodString>;
8053
8282
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
8054
8283
  exposureMode: z.ZodEnum<{
8055
- hidden: "hidden";
8056
8284
  direct: "direct";
8057
8285
  discovery: "discovery";
8286
+ hidden: "hidden";
8058
8287
  }>;
8059
8288
  enabled: z.ZodBoolean;
8060
8289
  enabledBy: z.ZodOptional<z.ZodEnum<{
@@ -8071,9 +8300,9 @@ declare const AdapterSelectionSchema: z.ZodObject<{
8071
8300
  description: z.ZodOptional<z.ZodString>;
8072
8301
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
8073
8302
  exposureMode: z.ZodEnum<{
8074
- hidden: "hidden";
8075
8303
  direct: "direct";
8076
8304
  discovery: "discovery";
8305
+ hidden: "hidden";
8077
8306
  }>;
8078
8307
  enabled: z.ZodBoolean;
8079
8308
  enabledBy: z.ZodOptional<z.ZodEnum<{
@@ -8089,8 +8318,9 @@ declare const AdapterSelectionSchema: z.ZodObject<{
8089
8318
  kind: z.ZodLiteral<"adapter">;
8090
8319
  adapterName: z.ZodOptional<z.ZodString>;
8091
8320
  adapterId: z.ZodOptional<z.ZodString>;
8321
+ machineId: z.ZodOptional<z.ZodString>;
8092
8322
  }, z.core.$loose>;
8093
- type AdapterSelection = z.infer<typeof AdapterSelectionSchema>;
8323
+ type AdapterSelection$1 = z.infer<typeof AdapterSelectionSchema>;
8094
8324
  /**
8095
8325
  * Interface map for the `AgentSelection` discriminated union.
8096
8326
  *
@@ -8111,7 +8341,7 @@ type AdapterSelection = z.infer<typeof AdapterSelectionSchema>;
8111
8341
  * registered kinds while keeping the Zod wire schema open (`kind: z.string()`).
8112
8342
  */
8113
8343
  interface AgentSelectionKindMap {
8114
- adapter: AdapterSelection;
8344
+ adapter: AdapterSelection$1;
8115
8345
  }
8116
8346
  /**
8117
8347
  * Agent configuration selection for `sendMessage` and `agent.attach`.
@@ -8202,9 +8432,9 @@ declare const AgentSelectionSchema: z.ZodObject<{
8202
8432
  description: z.ZodOptional<z.ZodString>;
8203
8433
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
8204
8434
  exposureMode: z.ZodEnum<{
8205
- hidden: "hidden";
8206
8435
  direct: "direct";
8207
8436
  discovery: "discovery";
8437
+ hidden: "hidden";
8208
8438
  }>;
8209
8439
  enabled: z.ZodBoolean;
8210
8440
  enabledBy: z.ZodOptional<z.ZodEnum<{
@@ -8221,9 +8451,9 @@ declare const AgentSelectionSchema: z.ZodObject<{
8221
8451
  description: z.ZodOptional<z.ZodString>;
8222
8452
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
8223
8453
  exposureMode: z.ZodEnum<{
8224
- hidden: "hidden";
8225
8454
  direct: "direct";
8226
8455
  discovery: "discovery";
8456
+ hidden: "hidden";
8227
8457
  }>;
8228
8458
  enabled: z.ZodBoolean;
8229
8459
  enabledBy: z.ZodOptional<z.ZodEnum<{
@@ -8410,4 +8640,4 @@ type UnresolvedProviderContext = z.infer<typeof UnresolvedProviderContextSchema>
8410
8640
  /** Runtime provider context union. */
8411
8641
  type ProviderContext$1 = z.infer<typeof ProviderContextSchema$1>;
8412
8642
  //#endregion
8413
- export { StartAgentSchema as C, AdapterNamespace as D, AdapterSchemas as E, AdapterSubjects$1 as O, StartAgentResponse as S, AdapterRuntimeOptionsSchema as T, SessionUsageSchema as _, UnresolvedProviderContext as a, RehydrateAgentSchema as b, AdapterSelectionSchema as c, AgentSelectionBaseSchema as d, AgentSelectionKindMap as f, SessionUsage as g, SessionDiscoveredSchema$1 as h, ResolvedProviderContextSchema$1 as i, AgentSelection as l, SessionDiscovered as m, ProviderContextSchema$1 as n, UnresolvedProviderContextSchema as o, AgentSelectionSchema as p, ResolvedProviderContext$1 as r, AdapterSelection as s, ProviderContext$1 as t, AgentSelectionBase as u, RehydrateAgentRequest as v, AdapterRuntimeOptions$1 as w, StartAgentRequest as x, RehydrateAgentResponse as y };
8643
+ export { StartAgentRequest as A, aggregateTeardownResults$1 as C, RehydrateAgentSchema as D, RehydrateAgentResponse as E, AdapterSchemas as F, AdapterNamespace as I, AdapterSubjects$1 as L, StartAgentSchema as M, AdapterRuntimeOptions$1 as N, AdapterStartDisposition as O, AdapterRuntimeOptionsSchema as P, aggregateTeardownEvidence$1 as S, RehydrateAgentRequest as T, SessionUsageSchema as _, UnresolvedProviderContext as a, TeardownEvidence$1 as b, AdapterSelectionSchema as c, AgentSelectionBaseSchema as d, AgentSelectionKindMap as f, SessionUsage as g, SessionDiscoveredSchema$1 as h, ResolvedProviderContextSchema$1 as i, StartAgentResponse as j, AdapterStartDispositionSchema as k, AgentSelection as l, SessionDiscovered as m, ProviderContextSchema$1 as n, UnresolvedProviderContextSchema as o, AgentSelectionSchema as p, ResolvedProviderContext$1 as r, AdapterSelection$1 as s, ProviderContext$1 as t, AgentSelectionBase as u, ConnectorTeardownResult$1 as v, teardownWasObserved$1 as w, TeardownEvidenceSchema as x, ConnectorTeardownResultSchema as y };