@makaio/framework 1.0.0-dev-1785407933303 → 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 (511) 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/claude/index.d.mts +24 -24
  9. package/dist/adapters/config/index.d.mts +1 -1
  10. package/dist/adapters/config/index.mjs +1 -1
  11. package/dist/adapters/index.d.mts +379 -812
  12. package/dist/adapters/index.mjs +6 -6
  13. package/dist/adapters/node.d.mts +1 -1
  14. package/dist/adapters/node.mjs +1 -1
  15. package/dist/adapters/stream-session/index.d.mts +28 -7
  16. package/dist/adapters/stream-session/index.mjs +1 -1
  17. package/dist/agent-namespace-D51PODFf.mjs +1 -0
  18. package/dist/{ajv-DD3SIL2i.mjs → ajv-L5fKxaia.mjs} +2 -2
  19. package/dist/artifact-k3veR4Yx.mjs +1 -0
  20. package/dist/attach-error-BSlc7JfL.mjs +1 -0
  21. package/dist/{auth-DGEdiHF6.mjs → auth-A1K_7q-8.mjs} +1 -1
  22. package/dist/authority-state-bootstrap-YwtEImIB.mjs +1 -0
  23. package/dist/automation-trigger-CuSdQwir.mjs +1 -0
  24. package/dist/await-trigger-ph1S0zVI.mjs +1 -0
  25. package/dist/bus/index.d.mts +17 -3
  26. package/dist/bus/index.mjs +1 -1
  27. package/dist/bus-BIj0_aG6.mjs +1 -0
  28. package/dist/bus-CqgrphNE.mjs +2 -0
  29. package/dist/{canonical-model-BAytQ4NV.mjs → canonical-model-DJASlL4m.mjs} +1 -1
  30. package/dist/{capabilities-BQEp34ir.mjs → capabilities-Bqckjh7G.mjs} +1 -1
  31. package/dist/{client-DbS847wW.mjs → client-BL5__WT0.mjs} +1 -1
  32. package/dist/clients/index.d.mts +7 -7
  33. package/dist/clients/index.mjs +1 -1
  34. package/dist/clients/managed-install.d.mts +1 -1
  35. package/dist/clients/managed-install.mjs +1 -1
  36. package/dist/{compression-74fFeBha.mjs → compression-BbttSqm8.mjs} +1 -1
  37. package/dist/{config-namespace-TVX-hG4I.mjs → config-namespace-CyzeLWSg.mjs} +1 -1
  38. package/dist/{context-resolution-DNRkyQto.d.mts → context-resolution-CW0ya4QO.d.mts} +14 -14
  39. package/dist/contracts/adapter/index.d.mts +3 -3
  40. package/dist/contracts/adapter/index.mjs +1 -1
  41. package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
  42. package/dist/contracts/artifact/index.d.mts +3 -3
  43. package/dist/contracts/artifact/index.mjs +1 -1
  44. package/dist/contracts/auth/index.d.mts +2 -2
  45. package/dist/contracts/auth/index.mjs +1 -1
  46. package/dist/contracts/automation-trigger/index.d.mts +4 -0
  47. package/dist/contracts/automation-trigger/index.mjs +1 -0
  48. package/dist/contracts/canonical-model/index.d.mts +1 -1
  49. package/dist/contracts/canonical-model/index.mjs +1 -1
  50. package/dist/contracts/capabilities/index.d.mts +1 -1
  51. package/dist/contracts/capabilities/index.mjs +1 -1
  52. package/dist/contracts/client/index.d.mts +2 -2
  53. package/dist/contracts/client/index.mjs +1 -1
  54. package/dist/contracts/common/index.d.mts +1 -1
  55. package/dist/contracts/config/index.d.mts +1 -1
  56. package/dist/contracts/config/index.mjs +1 -1
  57. package/dist/contracts/extension/index.d.mts +6 -5
  58. package/dist/contracts/extension/index.mjs +1 -1
  59. package/dist/contracts/facet/index.d.mts +1 -1
  60. package/dist/contracts/facet/index.mjs +1 -1
  61. package/dist/contracts/harness/index.d.mts +1 -1
  62. package/dist/contracts/harness/index.mjs +1 -1
  63. package/dist/contracts/host/index.d.mts +1 -1
  64. package/dist/contracts/host/index.mjs +1 -1
  65. package/dist/contracts/index.d.mts +161 -100
  66. package/dist/contracts/index.mjs +1 -1
  67. package/dist/contracts/materialization/index.d.mts +3 -3
  68. package/dist/contracts/materialization/index.mjs +1 -1
  69. package/dist/contracts/model-registry/index.d.mts +1 -1
  70. package/dist/contracts/model-registry/index.mjs +1 -1
  71. package/dist/contracts/native-session-supervisor/index.d.mts +1 -1
  72. package/dist/contracts/native-session-supervisor/index.mjs +1 -1
  73. package/dist/contracts/platform/index.d.mts +1 -1
  74. package/dist/contracts/platform/index.mjs +1 -1
  75. package/dist/contracts/provider/index.d.mts +2 -2
  76. package/dist/contracts/provider/index.mjs +1 -1
  77. package/dist/contracts/reaction/index.d.mts +2 -0
  78. package/dist/contracts/reaction/index.mjs +1 -0
  79. package/dist/contracts/session/index.d.mts +3 -3
  80. package/dist/contracts/session/index.mjs +1 -1
  81. package/dist/contracts/shared/index.d.mts +3 -3
  82. package/dist/contracts/shared/index.mjs +1 -1
  83. package/dist/contracts/skill/index.d.mts +1 -1
  84. package/dist/contracts/skill/index.mjs +1 -1
  85. package/dist/contracts/telemetry/index.d.mts +1 -1
  86. package/dist/contracts/telemetry/index.mjs +1 -1
  87. package/dist/contracts/timeout/index.d.mts +1 -1
  88. package/dist/contracts/timeout/index.mjs +1 -1
  89. package/dist/contracts/toast/index.mjs +1 -1
  90. package/dist/contracts/variant/index.d.mts +1 -1
  91. package/dist/contracts/variant/index.mjs +1 -1
  92. package/dist/contracts/worker-node/index.d.mts +1 -1
  93. package/dist/contracts/worker-node/index.mjs +1 -1
  94. package/dist/contracts/workflow/index.d.mts +3 -3
  95. package/dist/contracts/workflow/index.mjs +1 -1
  96. package/dist/contribution-BH-wKsWI.d.mts +35 -0
  97. package/dist/core/index.d.mts +60 -1
  98. package/dist/core/index.mjs +1 -1
  99. package/dist/definition-BYgHlmMw.d.mts +375 -0
  100. package/dist/{definition-CJfiv8xm.mjs → definition-CDg-Jq1T.mjs} +1 -1
  101. package/dist/{detached-extension-handle-Ddfquy5_.mjs → detached-extension-handle-DKd17UB6.mjs} +1 -1
  102. package/dist/drizzle/0031_adapter_session_currency.sql +66 -0
  103. package/dist/drizzle/0032_native_session_ownership.sql +77 -0
  104. package/dist/drizzle/0033_m_msf3hu2s.sql +1 -0
  105. package/dist/drizzle/meta/_journal.json +21 -0
  106. package/dist/{execution-attempt-repository-DWXKY41_.d.mts → execution-attempt-repository-DFyAnchJ.d.mts} +1 -1
  107. package/dist/{execution-target-Cf645pDj.mjs → execution-target-ByNwZh5-.mjs} +1 -1
  108. package/dist/extension-DMdmj9gi.mjs +1 -0
  109. package/dist/extension-DUmibvMk.mjs +1 -0
  110. package/dist/extension-context-CqfddWXs.d.mts +295 -0
  111. package/dist/{extension-discovery-CQRdbVQ6.d.mts → extension-discovery-Fhps4icD.d.mts} +2 -0
  112. package/dist/{extension-namespace-Yu41YepM.mjs → extension-namespace-B554RmCp.mjs} +1 -1
  113. package/dist/extension-package-provenance-Dh_-Z-tE.mjs +1 -0
  114. package/dist/{filesystem-service-DlP2HfDg.mjs → filesystem-service-FAtd9gWH.mjs} +1 -1
  115. package/dist/framework-packages-D_2hBZ-p.mjs +1 -0
  116. package/dist/git/index.mjs +1 -1
  117. package/dist/{globby-1yCVCk8s.mjs → globby-BBLuT_vy.mjs} +1 -1
  118. package/dist/handlers-2yd00VEq.mjs +57 -0
  119. package/dist/{harness-DpwsFsE7.mjs → harness-KxbWGL4I.mjs} +1 -1
  120. package/dist/{hook-responses-Dh1PWXqJ.d.mts → hook-responses-CQZIv3L3.d.mts} +2 -293
  121. package/dist/{index-HsTxm-R3.d.mts → index-3eUIRy7T.d.mts} +250 -20
  122. package/dist/{index-brqfk9JQ.d.mts → index-B4xdTT3c.d.mts} +6 -6
  123. package/dist/{index-CmFbzuiW.d.mts → index-B5op6AsV.d.mts} +72 -62
  124. package/dist/{index-CMgLxw14.d.mts → index-B6GOuxVy2.d.mts} +18 -18
  125. package/dist/index-BFhJe-Sb.d.mts +302 -0
  126. package/dist/{index-fmR2JNgJ.d.mts → index-BQprJNA_.d.mts} +4 -4
  127. package/dist/{index-EjsSBQXy2.d.mts → index-BSQ30wYP.d.mts} +1 -1
  128. package/dist/{index-Hk9mpC3o.d.mts → index-BSbGB23v.d.mts} +8 -8
  129. package/dist/{index-BbF2gRwd.d.mts → index-BiAYXjgM.d.mts} +41 -41
  130. package/dist/{index-sFsAqeK1.d.mts → index-ByZi9bml.d.mts} +7616 -4158
  131. package/dist/{index-CMJZ2Z8m.d.mts → index-C7HcDpHE.d.mts} +4 -0
  132. package/dist/{index-BskPjMet.d.mts → index-CB4aIUoF.d.mts} +16 -16
  133. package/dist/{index-B-xrJCwa.d.mts → index-CDusRXio.d.mts} +136 -137
  134. package/dist/{index-CUvNKYkV.d.mts → index-CSN_0sCo.d.mts} +19 -2
  135. package/dist/{index-BAXkicoQ.d.mts → index-C__EQfKa.d.mts} +1 -1
  136. package/dist/{index-BfLulUMy2.d.mts → index-CqQYgsbB.d.mts} +1659 -217
  137. package/dist/{index-DF9ffhVe.d.mts → index-CwDiyJkJ.d.mts} +327 -756
  138. package/dist/{index-GHASUiem.d.mts → index-DBadVauL.d.mts} +1 -1
  139. package/dist/{index-gUhidukN.d.mts → index-DI7-tIL3.d.mts} +299 -2
  140. package/dist/index-DP3o_13U.d.mts +165 -0
  141. package/dist/{index-DSBT83c0.d.mts → index-DcYAAJ0V.d.mts} +24 -3
  142. package/dist/{index-DqkjRTr7.d.mts → index-Dch_AxUg.d.mts} +77 -39
  143. package/dist/{index-XZyMxxnU.d.mts → index-DcqSUsX6.d.mts} +39 -83
  144. package/dist/{index-B0Kf_OWi.d.mts → index-DgOfgjx3.d.mts} +1 -1
  145. package/dist/{index-Ds5_rDEJ.d.mts → index-DwLRZscE.d.mts} +1 -12
  146. package/dist/{index-DkiTJM5p.d.mts → index-DxYDRoDE2.d.mts} +17 -3
  147. package/dist/{index-CRvpVIqA.d.mts → index-OsbtyMgx2.d.mts} +10 -1
  148. package/dist/{index-BaZeoZoS.d.mts → index-bIe_57cL.d.mts} +1 -1
  149. package/dist/{json-value-Brslhqbm.d.mts → json-value-C1RGgS0a.d.mts} +16 -1
  150. package/dist/{json-value-DmU8ibo_.mjs → json-value-D57aJhVn.mjs} +1 -1
  151. package/dist/kernel/cli/index.d.mts +2 -2
  152. package/dist/kernel/cli/index.mjs +1 -1
  153. package/dist/kernel/cli/register.d.mts +1 -1
  154. package/dist/kernel/cli/register.mjs +1 -1
  155. package/dist/kernel/cli/schemas.mjs +1 -1
  156. package/dist/kernel/extension/index.d.mts +1 -1
  157. package/dist/kernel/extension/index.mjs +1 -1
  158. package/dist/kernel/index.d.mts +9 -9
  159. package/dist/kernel/index.mjs +1 -1
  160. package/dist/kernel/namespace/index.d.mts +2 -2
  161. package/dist/kernel/namespace/index.mjs +1 -1
  162. package/dist/kernel/observability/index.d.mts +1 -1
  163. package/dist/kernel/observability/index.mjs +1 -1
  164. package/dist/kernel/providers/index.d.mts +1 -1
  165. package/dist/kernel/providers/index.mjs +1 -1
  166. package/dist/kernel/window/index.d.mts +1 -1
  167. package/dist/kernel/window/index.mjs +1 -1
  168. package/dist/{lib-C7-s68uf.mjs → lib-B_rJ6r0T.mjs} +1 -1
  169. package/dist/{lib-DErgth_E.mjs → lib-CnOAtohU.mjs} +1 -1
  170. package/dist/load-extensions-CW9uzNR5.mjs +1 -0
  171. package/dist/{load-extensions-BxsDB87B.d.mts → load-extensions-DUpaMQ7G.d.mts} +17 -13
  172. package/dist/{materialization-Jd198K3y.mjs → materialization-CcpCDhXh.mjs} +1 -1
  173. package/dist/mcp-http-server/index.mjs +1 -1
  174. package/dist/model-ZH3L1dPW.mjs +1 -0
  175. package/dist/{namespace-BqxtpNAn.mjs → namespace-B7bntOB8.mjs} +1 -1
  176. package/dist/{namespace-CWUDFGOy.mjs → namespace-BFqkUTJp.mjs} +1 -1
  177. package/dist/{namespace-D-WH2uYV2.d.mts → namespace-CAy4P5mW.d.mts} +8 -8
  178. package/dist/{namespace-B8uKAzWJ.mjs → namespace-CFjdyNXG.mjs} +1 -1
  179. package/dist/{namespace-DV-Hr9sZ.d.mts → namespace-ChnRTUG4.d.mts} +11 -1
  180. package/dist/namespace-CxrOLeeP.mjs +1 -0
  181. package/dist/{namespace-g_mbIZq_.d.mts → namespace-DSlfFhB1.d.mts} +410 -26
  182. package/dist/{namespace-Dkod-w11.d.mts → namespace-DwZwGXgF.d.mts} +4 -0
  183. package/dist/{namespace-BXvD9t0I.d.mts → namespace-Rge9mMI-.d.mts} +27 -19
  184. package/dist/{native-session-supervisor-DRx0MX-d.mjs → native-session-supervisor-fZYPUk0-.mjs} +1 -1
  185. package/dist/node/bus-server/index.d.mts +1 -1
  186. package/dist/node/bus-server/index.mjs +1 -1
  187. package/dist/node/bus-server/server-lifecycle.d.mts +1 -1
  188. package/dist/node/bus-server/server-lifecycle.mjs +1 -1
  189. package/dist/{orchestrator-shared-BHCv-l2O.d.mts → orchestrator-shared-B-KRW1Z0.d.mts} +1 -0
  190. package/dist/orchestrator-shared-CTCZc6Vl.mjs +1 -0
  191. package/dist/ownership-memory-handler-Bblp93YC.mjs +1 -0
  192. package/dist/{package-DWMxGfzK.d.mts → package-Bf3hyuzs.d.mts} +234 -84
  193. package/dist/package-CBdvjyyZ.mjs +1 -0
  194. package/dist/package-CddkNbZI.mjs +1 -0
  195. package/dist/package-ypz4rKvn.mjs +7 -0
  196. package/dist/package.json +1 -1
  197. package/dist/{profile-BTAI31Nt.mjs → profile-BtznZlq3.mjs} +1 -1
  198. package/dist/{provider-context-Dq53Cgzz.mjs → provider-context-BrLZYnDW.mjs} +1 -1
  199. package/dist/{provider-context-PZIQWcqQ.mjs → provider-context-Dh-VOOYF.mjs} +1 -1
  200. package/dist/reaction-BS0k4eNN.mjs +1 -0
  201. package/dist/{registry-wfF2uTty.mjs → registry-BO_bOoky.mjs} +2 -2
  202. package/dist/{resolved-DZgqql2Z.mjs → resolved-DMByz1_2.mjs} +1 -1
  203. package/dist/rules/index.d.mts +1 -1
  204. package/dist/rules/index.mjs +1 -1
  205. package/dist/rules/schemas.d.mts +1 -1
  206. package/dist/runtime-bun/index.mjs +1 -1
  207. package/dist/runtime-node/extension-discovery.d.mts +1 -1
  208. package/dist/runtime-node/extension-validation.d.mts +1 -1
  209. package/dist/runtime-node/extension-validation.mjs +1 -1
  210. package/dist/runtime-node/index.d.mts +4 -4
  211. package/dist/runtime-node/index.mjs +24 -24
  212. package/dist/runtime-node/makaio-config.d.mts +1 -1
  213. package/dist/runtime-node/makaio-config.mjs +1 -1
  214. package/dist/runtime-node/workflow-worker/index.d.mts +1 -1
  215. package/dist/runtime-node/workflow-worker/index.mjs +1 -1
  216. package/dist/runtime-node/workflow-worker/worker-entry.mjs +1 -1
  217. package/dist/{schema-Dd-e89MO.mjs → schema-DBG7Jq5_.mjs} +1 -1
  218. package/dist/{schema-DKUb4rkr.d.mts → schema-DKTzriEY.d.mts} +519 -9
  219. package/dist/{schemas-B5eUUi6u.d.mts → schemas-9qeeHGBf.d.mts} +8 -8
  220. package/dist/{schemas-CRB2O5zo.mjs → schemas-BqD8LlQw.mjs} +1 -1
  221. package/dist/{schemas-DaHQzpgm.mjs → schemas-CsjN7cmM.mjs} +1 -1
  222. package/dist/schemas-DSkBOdx_.mjs +1 -0
  223. package/dist/schemas-DplrlAyR.mjs +1 -0
  224. package/dist/{schemas-DuIlOWR3.d.mts → schemas-VbB1FTxx.d.mts} +4 -0
  225. package/dist/scoped-bus-ClwTWqX8.mjs +1 -0
  226. package/dist/{selection-BNwTKEVT.mjs → selection-7Ku8DBnh.mjs} +1 -1
  227. package/dist/services/adapter-runtime/index.d.mts +3 -3
  228. package/dist/services/adapter-runtime/index.mjs +1 -1
  229. package/dist/services/adapter-runtime/namespace.d.mts +1 -1
  230. package/dist/services/adapter-runtime/schemas.d.mts +1 -1
  231. package/dist/services/adapter-subsystem/index.d.mts +4 -4
  232. package/dist/services/adapter-subsystem/index.mjs +1 -1
  233. package/dist/services/adapter-subsystem/namespace.d.mts +2 -2
  234. package/dist/services/adapter-subsystem/namespace.mjs +1 -1
  235. package/dist/services/agent-runtime/index.d.mts +2 -2
  236. package/dist/services/agent-runtime/namespace.d.mts +1 -1
  237. package/dist/services/agent-runtime/schemas.d.mts +1 -1
  238. package/dist/services/automation-trigger/index.d.mts +943 -0
  239. package/dist/services/automation-trigger/index.mjs +1 -0
  240. package/dist/services/capability/index.d.mts +1 -1
  241. package/dist/services/capability/index.mjs +1 -1
  242. package/dist/services/codebase/index.d.mts +2 -2
  243. package/dist/services/codebase/namespace.d.mts +1 -1
  244. package/dist/services/codebase/schemas.d.mts +1 -1
  245. package/dist/services/compression/index.d.mts +2 -2
  246. package/dist/services/compression/namespace.d.mts +1 -1
  247. package/dist/services/compression/schemas.d.mts +1 -1
  248. package/dist/services/context-rules/index.d.mts +4 -4
  249. package/dist/services/context-rules/index.mjs +1 -1
  250. package/dist/services/execution-target/index.d.mts +3 -3
  251. package/dist/services/execution-target/index.mjs +1 -1
  252. package/dist/services/execution-target/namespace.d.mts +1 -1
  253. package/dist/services/execution-target/namespace.mjs +1 -1
  254. package/dist/services/execution-target/schemas.d.mts +1 -1
  255. package/dist/services/execution-target/schemas.mjs +1 -1
  256. package/dist/services/filesystem/index.d.mts +1 -1
  257. package/dist/services/filesystem/index.mjs +1 -1
  258. package/dist/services/filesystem/namespace.d.mts +6 -6
  259. package/dist/services/filesystem/schemas.d.mts +3 -3
  260. package/dist/services/git/namespace.d.mts +2 -2
  261. package/dist/services/git/namespace.mjs +1 -1
  262. package/dist/services/git/schemas.d.mts +1 -1
  263. package/dist/services/git/schemas.mjs +1 -1
  264. package/dist/services/harness/index.d.mts +3 -3
  265. package/dist/services/harness/index.mjs +1 -1
  266. package/dist/services/index.d.mts +449 -83
  267. package/dist/services/index.mjs +1 -1
  268. package/dist/services/log-import/browser.d.mts +2 -2
  269. package/dist/services/log-import/index.d.mts +3 -3
  270. package/dist/services/log-import/log-import.d.mts +1 -1
  271. package/dist/services/log-import/log-import.mjs +1 -1
  272. package/dist/services/log-import/namespace.mjs +1 -1
  273. package/dist/services/log-import/schemas.mjs +1 -1
  274. package/dist/services/materialization/index.d.mts +1 -1
  275. package/dist/services/materialization/index.mjs +1 -1
  276. package/dist/services/model-registry/index.d.mts +1 -1
  277. package/dist/services/model-registry/index.mjs +1 -1
  278. package/dist/services/preferences/index.d.mts +2 -2
  279. package/dist/services/preferences/schemas.d.mts +1 -1
  280. package/dist/services/preferences/storage-namespace.d.mts +2 -2
  281. package/dist/services/provider-context/index.d.mts +1 -1
  282. package/dist/services/provider-context/index.mjs +1 -1
  283. package/dist/services/provider-runtime/index.mjs +1 -1
  284. package/dist/services/session/handlers/index.d.mts +2 -2
  285. package/dist/services/session/handlers/index.mjs +1 -1
  286. package/dist/services/session/index.d.mts +10 -10
  287. package/dist/services/session/index.mjs +1 -1
  288. package/dist/services/session/messages/namespace.d.mts +1 -1
  289. package/dist/services/session/messages/namespace.mjs +1 -1
  290. package/dist/services/session/orchestrator-testing/index.d.mts +1 -1
  291. package/dist/services/session/orchestrator-testing/index.mjs +1 -1
  292. package/dist/services/session/session-events/namespace.d.mts +1 -1
  293. package/dist/services/session/session-events/namespace.mjs +1 -1
  294. package/dist/services/session/storage/namespace.d.mts +1 -1
  295. package/dist/services/session/storage/schema.d.mts +2 -2
  296. package/dist/services/session/storage/schema.mjs +1 -1
  297. package/dist/services/session/testing/index.d.mts +12 -4
  298. package/dist/services/session/testing/index.mjs +36 -4
  299. package/dist/services/session/testing/orchestrator-shared.d.mts +1 -1
  300. package/dist/services/session/testing/orchestrator-shared.mjs +1 -1
  301. package/dist/services/session/turns/namespace.d.mts +1 -1
  302. package/dist/services/session/turns/namespace.mjs +1 -1
  303. package/dist/services/session-editor/index.d.mts +1 -1
  304. package/dist/services/session-editor/index.mjs +1 -1
  305. package/dist/services/settings/index.d.mts +3 -3
  306. package/dist/services/settings/index.mjs +1 -1
  307. package/dist/services/settings/namespace.d.mts +8 -8
  308. package/dist/services/settings/namespace.mjs +1 -1
  309. package/dist/services/settings/storage/clients-namespace.d.mts +1 -1
  310. package/dist/services/settings/storage/clients-namespace.mjs +1 -1
  311. package/dist/services/settings/storage/index.d.mts +3 -3
  312. package/dist/services/settings/storage/index.mjs +1 -1
  313. package/dist/services/settings/storage/providers-namespace.d.mts +1 -1
  314. package/dist/services/settings/storage/providers-namespace.mjs +1 -1
  315. package/dist/services/subagent/index.d.mts +1 -1
  316. package/dist/services/subagent/index.mjs +1 -1
  317. package/dist/services/subagent-template/index.d.mts +2 -2
  318. package/dist/services/subagent-template/namespace.d.mts +1 -1
  319. package/dist/services/subagent-template/schemas.d.mts +1 -1
  320. package/dist/services/tool-approval/index.d.mts +1 -1
  321. package/dist/services/tool-approval/index.mjs +1 -1
  322. package/dist/services/tools/index.d.mts +1 -1
  323. package/dist/services/tools/index.mjs +1 -1
  324. package/dist/services/tray-menu/index.d.mts +3 -3
  325. package/dist/services/tray-menu/index.mjs +1 -1
  326. package/dist/services/tray-menu/namespace.d.mts +1 -1
  327. package/dist/services/tray-menu/schemas.d.mts +1 -1
  328. package/dist/services/turn/index.d.mts +1 -1
  329. package/dist/services/turn/namespace.d.mts +1 -1
  330. package/dist/services/workflow-transitions/index.d.mts +1 -1
  331. package/dist/services/workflow-transitions/index.mjs +1 -1
  332. package/dist/session-BMy2kRpX.mjs +90 -0
  333. package/dist/session-Cipx34j6.mjs +1 -0
  334. package/dist/{session-lineage-B_JW5LpF.d.mts → session-lineage-B_PVa1XN.d.mts} +1 -1
  335. package/dist/shared-BFVuCDPx.mjs +1 -0
  336. package/dist/{skill-BR6rkfLe.mjs → skill-C1D51nhh.mjs} +1 -1
  337. package/dist/{src-DD0v-nIj.mjs → src-xbmzokNe.mjs} +1 -1
  338. package/dist/storage/drizzle/client.d.mts +1 -1
  339. package/dist/storage/drizzle/client.mjs +1 -1
  340. package/dist/storage/drizzle/index.d.mts +42 -2
  341. package/dist/storage/drizzle/index.mjs +1 -1
  342. package/dist/storage/handlers/drizzle/index.d.mts +1 -1
  343. package/dist/storage/handlers/drizzle/index.mjs +1 -1
  344. package/dist/storage/handlers/index.d.mts +1 -1
  345. package/dist/storage/handlers/index.mjs +1 -1
  346. package/dist/tool-approval-service-BVgN9Q1r.mjs +1 -0
  347. package/dist/{tools-PdG9fO1M.mjs → tools-DxwHox1a.mjs} +1 -1
  348. package/dist/{transition-DwqL8W9V.d.mts → transition-BF1nevaC.d.mts} +7 -34
  349. package/dist/{types-DMLDHFR9.d.mts → types-BNjPhj_a.d.mts} +1 -1
  350. package/dist/{types-DR60yv6W.d.mts → types-CijlWGwb.d.mts} +1575 -157
  351. package/dist/types-ClpEaoAm.d.mts +2917 -0
  352. package/dist/ui-hooks/index.d.mts +29 -2
  353. package/dist/ui-hooks/index.mjs +1 -1
  354. package/dist/ui-kernel/index.d.mts +2 -2
  355. package/dist/ui-kernel/pages/schemas.d.mts +1 -1
  356. package/dist/ui-views/index.d.mts +1 -1
  357. package/dist/utils/index.d.mts +77 -1
  358. package/dist/utils/index.mjs +2 -2
  359. package/dist/{version-CoCeMxDT.mjs → version-BfNnVAGr.mjs} +1 -1
  360. package/dist/{view-builder-qp51cMWh.d.mts → view-builder-Bc9dx6jF.d.mts} +1 -1
  361. package/dist/{visibility-qhGWmpSJ.mjs → visibility-Dl1o2I01.mjs} +1 -1
  362. package/dist/{worker-node-Bl9_vqYi.mjs → worker-node-BDOYPEpi.mjs} +1 -1
  363. package/dist/{worker-node-DZTuT1DS.mjs → worker-node-DJ41Tr-F.mjs} +1 -1
  364. package/dist/workflow-Hzc5jlnV.mjs +1 -0
  365. package/dist/workflow-engine/execution-attempt-repository.d.mts +1 -1
  366. package/dist/workflow-engine/index.d.mts +161 -442
  367. package/dist/workflow-engine/index.mjs +1 -1
  368. package/dist/workflow-engine/package.d.mts +1 -1
  369. package/dist/workflow-engine/package.mjs +1 -1
  370. package/dist/workflow-engine/provider-operation.d.mts +1 -1
  371. package/dist/workflow-engine/testing/index.d.mts +2 -2
  372. package/dist/workflow-engine/testing/index.mjs +1 -1
  373. package/dist/workflow-engine/testing/sqlite.d.mts +1 -1
  374. package/dist/workflow-engine/testing/sqlite.mjs +27 -27
  375. package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
  376. package/dist/workflow-engine/workflow-trigger-binding-consumer.d.mts +46 -0
  377. package/dist/workflow-engine/workflow-trigger-binding-consumer.mjs +1 -0
  378. package/dist/{workflow-transitions-DSc45ixc.mjs → workflow-transitions-DM0fN_eP.mjs} +1 -1
  379. package/dist/workflow-worker-DARC7UZl.mjs +1 -0
  380. package/dist/zod-json-schema-BAGAFfCN.mjs +1 -0
  381. package/package.json +29 -1
  382. package/dist/adapter-D5c5LrPN.mjs +0 -1
  383. package/dist/artifact-DGiXqb11.mjs +0 -1
  384. package/dist/attach-error-C3tngg6J.mjs +0 -1
  385. package/dist/authority-state-bootstrap-GPL_tqaT.mjs +0 -1
  386. package/dist/await-trigger-I3lrepb8.mjs +0 -1
  387. package/dist/bus-B6SAjgOC.mjs +0 -2
  388. package/dist/bus-C2l3K74u.mjs +0 -1
  389. package/dist/extension-DCA4pYrY.mjs +0 -1
  390. package/dist/extension-hjOPs10e.mjs +0 -1
  391. package/dist/framework-packages-C3RWfJDk.mjs +0 -1
  392. package/dist/handlers-CfnLyLfE.mjs +0 -57
  393. package/dist/load-extensions-D0DfjYLC.mjs +0 -1
  394. package/dist/model-BGgVmRnN.mjs +0 -1
  395. package/dist/namespace-DJfUADSV.mjs +0 -1
  396. package/dist/orchestrator-shared-BxmHCPvx.mjs +0 -1
  397. package/dist/package-CNUPPcU1.mjs +0 -7
  398. package/dist/package-Dft_RItb.mjs +0 -1
  399. package/dist/schemas-Cm09dXL4.mjs +0 -1
  400. package/dist/scoped-bus-C9BdNwfM.mjs +0 -1
  401. package/dist/session-BOGCd18q.mjs +0 -1
  402. package/dist/session-BTFiDoGz.mjs +0 -76
  403. package/dist/shared-BQ0CHIVy.mjs +0 -1
  404. package/dist/tool-approval-service-kBA0fRzm.mjs +0 -1
  405. package/dist/types-CJ_QZ1yW.d.mts +0 -1487
  406. package/dist/workflow-BfDbgtIQ.mjs +0 -1
  407. package/dist/workflow-worker-BN9XPxQO.mjs +0 -1
  408. package/dist/{adapter-auth-runtime-DO-FVTXg.mjs → adapter-auth-runtime-D9Lnl7cc.mjs} +0 -0
  409. package/dist/{adapter-binding-DQchUtrK.d.mts → adapter-binding-B-FBoCys.d.mts} +0 -0
  410. package/dist/{attempt-record-codec-CqO1_XnE.mjs → attempt-record-codec-DaFLKR5C.mjs} +0 -0
  411. package/dist/{base-orchestrator-BilsQNW1.d.mts → base-orchestrator-D9u4NyiM.d.mts} +0 -0
  412. package/dist/{capability-service-BqiLlRGA.mjs → capability-service-CJHNkjvm.mjs} +0 -0
  413. package/dist/{client-B--e2qcU.d.mts → client-4ihewPUm.d.mts} +0 -0
  414. package/dist/{client-binary-version-verifier-taewmKTY.mjs → client-binary-version-verifier-DJajc_Ff.mjs} +0 -0
  415. package/dist/{client-binary-version-verifier-CgjM_vGF.d.mts → client-binary-version-verifier-jDDZ64Ah.d.mts} +0 -0
  416. package/dist/{clients-namespace-DfxjG2ZP.d.mts → clients-namespace-DFWuUawf.d.mts} +0 -0
  417. package/dist/{config-namespace-BCqvufbD.d.mts → config-namespace-D1kyZj0B.d.mts} +0 -0
  418. package/dist/{create-static-mount-bbQhTt6W.mjs → create-static-mount-9tnGpIeK.mjs} +0 -0
  419. package/dist/{cross-spawn-B57KZuns.mjs → cross-spawn-BIgueAqr.mjs} +0 -0
  420. package/dist/{cursor-storage-DIFK_9hg.mjs → cursor-storage-ROWfiTh1.mjs} +0 -0
  421. package/dist/{definition-gnKgXU91.d.mts → definition-DB-kKc0d.d.mts} +0 -0
  422. package/dist/{definitions-xrrY0wgz.mjs → definitions-CF6YmEhL.mjs} +0 -0
  423. package/dist/{descriptor-to-package-DvF08krT.mjs → descriptor-to-package-BecVCopf.mjs} +0 -0
  424. package/dist/{drizzle-z_0SiGY8.mjs → drizzle-CPv3vdTE.mjs} +0 -0
  425. package/dist/{esm-CltRnX8_.mjs → esm-CBFWM8u_.mjs} +0 -0
  426. package/dist/{event-CmVjR6Ib.mjs → event-DR8U9Efx.mjs} +0 -0
  427. package/dist/{facet-BCI00njh.mjs → facet-DVsW12iF.mjs} +0 -0
  428. package/dist/{filesystem-service-CQ9yVkSz.d.mts → filesystem-service-Cm2RHKBa.d.mts} +0 -0
  429. package/dist/{handler-Cbv9FqDO.mjs → handler-Bqlk-6BY.mjs} +0 -0
  430. package/dist/{host-Caq6ZfSJ.mjs → host-k5yoyKHg.mjs} +0 -0
  431. package/dist/{identity-D6guMtmi.mjs → identity-DC3Pk0ps.mjs} +0 -0
  432. package/dist/{index-dtsLKOID.d.mts → index-42UdYStR.d.mts} +0 -0
  433. package/dist/{index-DR40QWlw.d.mts → index-BJAB-BW_.d.mts} +0 -0
  434. package/dist/{index-Dm1nUxCF.d.mts → index-BJMezANn.d.mts} +0 -0
  435. package/dist/{index-Cv-o5Krs.d.mts → index-BRCrFirq.d.mts} +0 -0
  436. package/dist/{index-BVRQEpAg.d.mts → index-BRzHs7Bx.d.mts} +6 -6
  437. /package/dist/{index-vA--0lOM.d.mts → index-BVcQcphK.d.mts} +0 -0
  438. /package/dist/{index-ye0oklfU.d.mts → index-BcvqDfcN.d.mts} +0 -0
  439. /package/dist/{index-CGZQVTid.d.mts → index-BeENojSx2.d.mts} +0 -0
  440. /package/dist/{index-DjgLchuQ.d.mts → index-Beo_Ik8-.d.mts} +0 -0
  441. /package/dist/{index-sS6KUlrx.d.mts → index-BgGe9WZz.d.mts} +0 -0
  442. /package/dist/{index-CWHfOz6d.d.mts → index-CK3f0bAL.d.mts} +0 -0
  443. /package/dist/{index-DZunhZec.d.mts → index-CQuRTeRa.d.mts} +0 -0
  444. /package/dist/{index-jTaAHsul.d.mts → index-CRmE88hi.d.mts} +0 -0
  445. /package/dist/{index-CjdRdsd0.d.mts → index-CvW9_SzR.d.mts} +0 -0
  446. /package/dist/{index-ByKi34v5.d.mts → index-CxSSdIZz.d.mts} +0 -0
  447. /package/dist/{index-vcSj12YQ.d.mts → index-E4SET1AA.d.mts} +0 -0
  448. /package/dist/{index-DN4NOCqN2.d.mts → index-Ol9RBB0W2.d.mts} +0 -0
  449. /package/dist/{index-BIdsFcQs2.d.mts → index-aoxdnhJ42.d.mts} +0 -0
  450. /package/dist/{index-SsBHjUqA.d.mts → index-nydhGvXa.d.mts} +0 -0
  451. /package/dist/{jsonl-transport-bQl3JwIu.mjs → jsonl-transport-Bp_6pB2a.mjs} +0 -0
  452. /package/dist/{lib-DOBXZmYX.mjs → lib-Bwdd2m81.mjs} +0 -0
  453. /package/dist/{model-registry-CmgcPDH3.mjs → model-registry-Y854mUml.mjs} +0 -0
  454. /package/dist/{model-registry-xyBKSye-.mjs → model-registry-yURX738J.mjs} +0 -0
  455. /package/dist/{modes-BheyN7SS.mjs → modes-DmUsjHdV.mjs} +0 -0
  456. /package/dist/{namespace-HO2J9sO8.mjs → namespace-B9FEGuEu.mjs} +0 -0
  457. /package/dist/{namespace-jDhZjw-i.d.mts → namespace-Bi3CmYQy.d.mts} +0 -0
  458. /package/dist/{namespace-GPA7zots.d.mts → namespace-BusZERU8.d.mts} +0 -0
  459. /package/dist/{namespace-BOkKoq34.d.mts → namespace-ByP1Iipi.d.mts} +0 -0
  460. /package/dist/{namespace-YytVKIgI.d.mts → namespace-C1D77w7U.d.mts} +0 -0
  461. /package/dist/{namespace-CErHuXtb.d.mts → namespace-C6CVEGH8.d.mts} +0 -0
  462. /package/dist/{namespace-C-9si-fV.mjs → namespace-CfIW0hpQ.mjs} +0 -0
  463. /package/dist/{namespace-YxU1xf-K.mjs → namespace-CkBbNFSU.mjs} +0 -0
  464. /package/dist/{namespace-DWCEo-9M.d.mts → namespace-DX1Ec15L.d.mts} +0 -0
  465. /package/dist/{namespace-CWGKCNZm.mjs → namespace-DbNWsPFY.mjs} +0 -0
  466. /package/dist/{namespace-Cv1RFP7n.d.mts → namespace-Dgg0uoe6.d.mts} +0 -0
  467. /package/dist/{namespace-tGRAod3o.d.mts → namespace-s2y_NFKf.d.mts} +0 -0
  468. /package/dist/{namespace-Blp4c8GK.d.mts → namespace-yREpGJgG.d.mts} +0 -0
  469. /package/dist/{out-CvjtANXN.mjs → out-DrhwCgqM.mjs} +0 -0
  470. /package/dist/{packages-DtEEP0Vt.mjs → packages-FBv3fAOR.mjs} +0 -0
  471. /package/dist/{packages-BZ6pzFIq.d.mts → packages-N3-2Kl-Y.d.mts} +0 -0
  472. /package/dist/{platform-Bv8llU9c.mjs → platform-BrsMv_S3.mjs} +0 -0
  473. /package/dist/{provider-operation-Cxoe2SUr.d.mts → provider-operation-DJ_TLZFf.d.mts} +0 -0
  474. /package/dist/{providers-Co5UszRH.mjs → providers-CCcn4Ndp.mjs} +0 -0
  475. /package/dist/{providers-namespace-DjFkmvBR.d.mts → providers-namespace-DeJBh6MP.d.mts} +0 -0
  476. /package/dist/{quick-lru-CrOpWwrf.mjs → quick-lru-uwB0hP-y.mjs} +0 -0
  477. /package/dist/{schema-introspection-DgWQCpwx.mjs → schema-introspection-C1wvklj9.mjs} +0 -0
  478. /package/dist/{schema-Db-y-09L.mjs → schema-jIapW8Kb.mjs} +0 -0
  479. /package/dist/{schemas-CR8hSqTy.d.mts → schemas-B7zo7Zcx.d.mts} +0 -0
  480. /package/dist/{schemas-CqRm0i9a.mjs → schemas-BNdiVBWh.mjs} +0 -0
  481. /package/dist/{schemas-B1NWNASS.d.mts → schemas-C-Bm6Oac.d.mts} +0 -0
  482. /package/dist/{schemas-BO7uOum6.d.mts → schemas-CD0wOQxx.d.mts} +0 -0
  483. /package/dist/{schemas-N6x2z7Lf.d.mts → schemas-CeUI2i5j.d.mts} +0 -0
  484. /package/dist/{schemas-CwbYk_kZ.d.mts → schemas-Cg-Kwp8c.d.mts} +0 -0
  485. /package/dist/{schemas-BtZqovRH.d.mts → schemas-Cv3rR9Sz.d.mts} +0 -0
  486. /package/dist/{schemas-tDf_WiC8.mjs → schemas-CvHFbzdy.mjs} +0 -0
  487. /package/dist/{schemas-BsVYZviy.d.mts → schemas-DZH9lpxs.d.mts} +0 -0
  488. /package/dist/{schemas-BGExwp3j.mjs → schemas-DgwEVUt-.mjs} +0 -0
  489. /package/dist/{schemas-Bfxskx_2.mjs → schemas-mLpOfMoN.mjs} +0 -0
  490. /package/dist/{schemas-CQyRBqD6.d.mts → schemas-qA279_j_.d.mts} +0 -0
  491. /package/dist/{schemas-miYxK_Z1.d.mts → schemas-sMoRnBdZ.d.mts} +0 -0
  492. /package/dist/{semver-DlM8znk4.mjs → semver-DTXuyLcK.mjs} +0 -0
  493. /package/dist/{server-lifecycle-Dsq56aqC.d.mts → server-lifecycle-C_8iKgat.d.mts} +0 -0
  494. /package/dist/{server-lifecycle-kmQ5PUDv.mjs → server-lifecycle-DKx_fWlq.mjs} +0 -0
  495. /package/dist/{shared-schemas-DXwyMCwZ.mjs → shared-schemas-aahW97QW.mjs} +0 -0
  496. /package/dist/{src-CCu8TwL6.mjs → src-DHqsl5Pg.mjs} +0 -0
  497. /package/dist/{storage-namespace-BSrv0vXR.mjs → storage-namespace-Dz2jsssp.mjs} +0 -0
  498. /package/dist/{storage-namespace-dfywhXR3.d.mts → storage-namespace-Tf3P5yJ5.d.mts} +0 -0
  499. /package/dist/{storage-namespace-definition-BvlX0QV_.d.mts → storage-namespace-definition-BsnYAPot.d.mts} +0 -0
  500. /package/dist/{storage-namespace-definition-CkMKt7-I.mjs → storage-namespace-definition-CDef0E20.mjs} +0 -0
  501. /package/dist/{supports-color-DUugCQsK.mjs → supports-color-i7OTnKcZ.mjs} +0 -0
  502. /package/dist/{telemetry-Pr3oP2rk.mjs → telemetry-BvCBUjFg.mjs} +0 -0
  503. /package/dist/{timeout-DWDhddRJ.mjs → timeout-B0nYjLc8.mjs} +0 -0
  504. /package/dist/{tray-menu-service-BBLa-Rcv.mjs → tray-menu-service-Deo6yyP8.mjs} +0 -0
  505. /package/dist/{types-BrcjaNPZ.d.mts → types-CNS55jvt.d.mts} +0 -0
  506. /package/dist/{types-b54n1o57.d.mts → types-Ce6LL25v.d.mts} +0 -0
  507. /package/dist/{types-DHmPneIO.d.mts → types-xCdGghb2.d.mts} +0 -0
  508. /package/dist/{ui-config-CyCdlns_.mjs → ui-config-BIyGzMNL.mjs} +0 -0
  509. /package/dist/{variant-krjlTdJt.mjs → variant-B4uWdxW7.mjs} +0 -0
  510. /package/dist/{window-registry-BDnZLPVx.d.mts → window-registry-BLtVx3Iw.d.mts} +0 -0
  511. /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">;
@@ -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">;
@@ -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">;
@@ -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">;
@@ -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">;
@@ -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">;
@@ -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">;
@@ -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">;
@@ -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">;
@@ -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">;
@@ -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">;
@@ -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">;
@@ -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.
@@ -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
  * ```
@@ -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`.
@@ -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 };
@@ -193,8 +193,8 @@ declare const MaterializationSchemas: {
193
193
  template: z.ZodString;
194
194
  }, z.core.$strip>], "kind">;
195
195
  appliesTo: z.ZodArray<z.ZodEnum<{
196
- artifact: "artifact";
197
196
  workpiece: "workpiece";
197
+ artifact: "artifact";
198
198
  surface: "surface";
199
199
  }>>;
200
200
  valueMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -235,8 +235,8 @@ declare const MaterializationSchemas: {
235
235
  template: z.ZodString;
236
236
  }, z.core.$strip>], "kind">;
237
237
  appliesTo: z.ZodArray<z.ZodEnum<{
238
- artifact: "artifact";
239
238
  workpiece: "workpiece";
239
+ artifact: "artifact";
240
240
  surface: "surface";
241
241
  }>>;
242
242
  valueMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -431,8 +431,8 @@ declare const MaterializationNamespace: _$_makaio_core0.BusNamespaceDefinition<"
431
431
  template: z.ZodString;
432
432
  }, z.core.$strip>], "kind">;
433
433
  appliesTo: z.ZodArray<z.ZodEnum<{
434
- artifact: "artifact";
435
434
  workpiece: "workpiece";
435
+ artifact: "artifact";
436
436
  surface: "surface";
437
437
  }>>;
438
438
  valueMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -473,8 +473,8 @@ declare const MaterializationNamespace: _$_makaio_core0.BusNamespaceDefinition<"
473
473
  template: z.ZodString;
474
474
  }, z.core.$strip>], "kind">;
475
475
  appliesTo: z.ZodArray<z.ZodEnum<{
476
- artifact: "artifact";
477
476
  workpiece: "workpiece";
477
+ artifact: "artifact";
478
478
  surface: "surface";
479
479
  }>>;
480
480
  valueMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -681,8 +681,8 @@ declare const MaterializationSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_c
681
681
  template: z.ZodString;
682
682
  }, z.core.$strip>], "kind">;
683
683
  appliesTo: z.ZodArray<z.ZodEnum<{
684
- artifact: "artifact";
685
684
  workpiece: "workpiece";
685
+ artifact: "artifact";
686
686
  surface: "surface";
687
687
  }>>;
688
688
  valueMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -723,8 +723,8 @@ declare const MaterializationSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_c
723
723
  template: z.ZodString;
724
724
  }, z.core.$strip>], "kind">;
725
725
  appliesTo: z.ZodArray<z.ZodEnum<{
726
- artifact: "artifact";
727
726
  workpiece: "workpiece";
727
+ artifact: "artifact";
728
728
  surface: "surface";
729
729
  }>>;
730
730
  valueMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;