@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
@@ -0,0 +1,302 @@
1
+ import { n as NodeExtensionContext$1, t as ExtensionContext$1 } from "./extension-context-CqfddWXs.mjs";
2
+ import { z } from "zod";
3
+ import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
4
+
5
+ //#region core/contracts/src/reaction/schemas.d.ts
6
+ /**
7
+ * Serializable descriptor advertising a contributed Reaction.
8
+ *
9
+ * A descriptor is discovery metadata only: it carries the Reaction identity,
10
+ * a human-readable description, and a derived JSON Schema representation of
11
+ * the parameter shape. It can never synthesize or transport the Reaction's
12
+ * executable handler — runtime truth is always the live
13
+ * {@link ReactionDefinition} contributed by the owning extension.
14
+ *
15
+ * The `kind` field is the canonical Reaction identity in the form
16
+ * `<extension-name>.<reaction-name>`. Namespace ownership is enforced by the
17
+ * Reaction registry at contribution time, not by this schema.
18
+ */
19
+ declare const ReactionDescriptorSchema$1: z.ZodObject<{
20
+ kind: z.ZodString;
21
+ description: z.ZodString;
22
+ parameterSchema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
23
+ }, z.core.$strip>;
24
+ /** Serializable descriptor advertising a contributed Reaction. */
25
+ type ReactionDescriptor$1 = z.infer<typeof ReactionDescriptorSchema$1>;
26
+ /**
27
+ * Serializable normalized outcome of a single Reaction invocation.
28
+ *
29
+ * A handler that resolves normally maps to `{ success: true }`; a handler
30
+ * that throws maps to `{ success: false }` with a plain error message.
31
+ * Cancellation is cooperative: a handler that resolves despite an abort
32
+ * still yields `{ success: true }` — only dispatches that are already
33
+ * aborted or already past their deadline before handler entry are
34
+ * guaranteed failure outcomes. The outcome intentionally carries no retry,
35
+ * ordering, or durability semantics — every host dispatch is an independent
36
+ * invocation.
37
+ */
38
+ declare const ReactionOutcomeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
39
+ success: z.ZodLiteral<true>;
40
+ }, z.core.$strip>, z.ZodObject<{
41
+ success: z.ZodLiteral<false>;
42
+ error: z.ZodObject<{
43
+ message: z.ZodString;
44
+ }, z.core.$strip>;
45
+ }, z.core.$strip>], "success">;
46
+ /** Serializable normalized outcome of a single Reaction invocation. */
47
+ type ReactionOutcome$1 = z.infer<typeof ReactionOutcomeSchema>;
48
+ //#endregion
49
+ //#region core/contracts/src/reaction/execution.d.ts
50
+ declare const reactionRuleRefBrand: unique symbol;
51
+ /**
52
+ * Identifier for a single Reaction invocation.
53
+ *
54
+ * Minted by the dispatching runtime for every host dispatch. Invocations are
55
+ * independent: there is no ordering, deduplication, or exactly-once promise
56
+ * attached to this identifier — it exists for logging, outcome correlation,
57
+ * and cancellation bookkeeping only.
58
+ */
59
+ type ReactionInvocationId = string;
60
+ /**
61
+ * Opaque host-supplied reference to whatever caused a Reaction dispatch.
62
+ *
63
+ * Rule systems are consumer-owned: a host that evaluates rules attaches its
64
+ * own rule reference here so it can recognize the invocation in logs and
65
+ * outcomes. The framework never interprets this value — it is a branded
66
+ * marker type that deliberately imports no domain definition or persistence
67
+ * model. Hosts mint refs via {@link createReactionRuleRef}.
68
+ */
69
+ interface ReactionRuleRef$1 {
70
+ /** Opaque brand preventing accidental structural construction. */
71
+ readonly [reactionRuleRefBrand]: true;
72
+ }
73
+ /**
74
+ * Brands a host-owned reference as a {@link ReactionRuleRef}.
75
+ *
76
+ * The host keeps full access to its own reference value via the intersection
77
+ * return type; framework code only ever sees the opaque brand and passes the
78
+ * value through untouched. References may be primitives or objects.
79
+ * @typeParam TRef - Host-owned reference value being branded.
80
+ * @param ref - Host-owned reference value to brand.
81
+ * @returns The same value typed as `TRef & ReactionRuleRef`.
82
+ */
83
+ declare function createReactionRuleRef<TRef>(ref: TRef): TRef & ReactionRuleRef$1;
84
+ /**
85
+ * Frozen execution envelope supplied to a Reaction handler.
86
+ *
87
+ * The runtime captures and freezes the envelope's top-level fields at dispatch
88
+ * time. The handler therefore observes the same `eventKind`, event payload,
89
+ * and host-composed context that the host used to evaluate its rule and
90
+ * resolve parameters. The framework does not compose or detach domain values:
91
+ * `eventPayload`, `hostContext`, and `ruleRef` are opaque host-owned
92
+ * references passed through unchanged. They may be shared and mutable. A host
93
+ * that requires deeper isolation must detach those values before invocation.
94
+ *
95
+ * Every host dispatch has a separate envelope and independent cancellation
96
+ * and deadline controls. Host-owned values are not thereby isolated or
97
+ * ordered across invocations.
98
+ */
99
+ interface ReactionExecutionContext {
100
+ /** Runtime-minted identifier for this invocation. */
101
+ readonly invocationId: ReactionInvocationId;
102
+ /**
103
+ * Opaque host-supplied reference to the rule that caused this dispatch.
104
+ *
105
+ * `undefined` when the host dispatched without a rule system — rule systems
106
+ * are consumer-owned and not required for dispatch.
107
+ */
108
+ readonly ruleRef: ReactionRuleRef$1 | undefined;
109
+ /** Event kind string the host evaluated when deciding to dispatch. */
110
+ readonly eventKind: string;
111
+ /**
112
+ * Event payload the host evaluated, supplied verbatim.
113
+ *
114
+ * Opaque to the framework; it remains a host-owned reference and handlers
115
+ * narrow it with host-specific knowledge.
116
+ */
117
+ readonly eventPayload: unknown;
118
+ /**
119
+ * Host-composed context available during rule evaluation and parameter
120
+ * resolution, supplied verbatim.
121
+ *
122
+ * Opaque to the framework; it remains a host-owned reference and handlers
123
+ * narrow it with host-specific knowledge.
124
+ */
125
+ readonly hostContext: unknown;
126
+ /**
127
+ * Bus correlation identifier propagated from the triggering message, when
128
+ * one exists.
129
+ */
130
+ readonly correlationId: string | undefined;
131
+ /**
132
+ * Runtime-controlled cancellation signal for this invocation.
133
+ *
134
+ * Handlers should pass this to long-running operations so they cancel
135
+ * promptly when the runtime aborts the invocation. Cancellation is
136
+ * cooperative: a handler that ignores the signal and resolves still
137
+ * yields a success outcome.
138
+ */
139
+ readonly signal: AbortSignal;
140
+ /**
141
+ * Absolute deadline hint for this invocation as epoch milliseconds, or
142
+ * `undefined` when the host imposed no deadline.
143
+ *
144
+ * The dispatcher guarantees only that an invocation which is already
145
+ * aborted or already past this deadline never enters handler code; it does
146
+ * not promise an exact-instant abort. Handlers may consult the deadline
147
+ * proactively to budget their own work, but must treat {@link signal} as
148
+ * the sole source of truth for cancellation.
149
+ */
150
+ readonly deadlineEpochMs: number | undefined;
151
+ }
152
+ //#endregion
153
+ //#region core/contracts/src/reaction/definition.d.ts
154
+ /**
155
+ * Trusted asynchronous Reaction handler.
156
+ *
157
+ * Receives parameters that were already validated against the Reaction's live
158
+ * `parameterSchema` by the dispatching runtime, together with the frozen
159
+ * {@link ReactionExecutionContext} envelope for this invocation.
160
+ * @typeParam TParams - Validated parameter shape for this Reaction.
161
+ * @param parameters - Schema-validated, read-only invocation parameters.
162
+ * @param context - Frozen execution envelope for this invocation.
163
+ * @returns Resolves when the Reaction's side-effects are complete.
164
+ */
165
+ type ReactionHandler<TParams extends Record<string, unknown> = Record<string, unknown>> = (parameters: Readonly<TParams>, context: ReactionExecutionContext) => Promise<void>;
166
+ /**
167
+ * Executable Reaction contributed by an extension.
168
+ *
169
+ * This is the type-erased shape stored on contribution surfaces and consumed
170
+ * by the Reaction registry; typed authoring happens through
171
+ * {@link defineReaction}, which erases the parameter type after wiring the
172
+ * live schema and handler together. The live `parameterSchema` and `handler`
173
+ * are function-carrying runtime values and must never be treated as
174
+ * serializable descriptor data — `toDescriptor()` produces the only
175
+ * serializable representation.
176
+ */
177
+ interface ReactionDefinition$1 {
178
+ /**
179
+ * Canonical Reaction kind: `<extension-name>.<reaction-name>`.
180
+ *
181
+ * Namespace ownership (the `<extension-name>.` prefix matching the
182
+ * contributing extension) is enforced by the Reaction registry at
183
+ * contribution time.
184
+ */
185
+ readonly kind: string;
186
+ /** Human-readable description of what this Reaction does when invoked. */
187
+ readonly description: string;
188
+ /**
189
+ * Live Zod schema for the Reaction's invocation parameters.
190
+ *
191
+ * The dispatching runtime validates raw parameters against this schema
192
+ * before invoking {@link handler}.
193
+ */
194
+ readonly parameterSchema: z.ZodType<Record<string, unknown>>;
195
+ /**
196
+ * Trusted executable handler for this Reaction.
197
+ *
198
+ * Invariant: callers MUST pass parameters that were validated with
199
+ * {@link parameterSchema} — the typed inner handler installed by
200
+ * {@link defineReaction} narrows them under that contract.
201
+ */
202
+ readonly handler: ReactionHandler;
203
+ /**
204
+ * Produces the serializable {@link ReactionDescriptor} for this Reaction.
205
+ * @returns Discovery metadata with a derived JSON Schema parameter shape;
206
+ * never includes the live schema or handler. Each call returns a detached
207
+ * snapshot owned by the caller; mutating it cannot affect later discovery.
208
+ */
209
+ readonly toDescriptor: () => ReactionDescriptor$1;
210
+ }
211
+ /**
212
+ * Options for {@link defineReaction}.
213
+ * @typeParam TParams - Parameter shape validated by `parameterSchema`.
214
+ */
215
+ interface DefineReactionOptions<TParams extends Record<string, unknown>> {
216
+ /**
217
+ * Canonical Reaction kind: `<extension-name>.<reaction-name>`.
218
+ * The Reaction registry enforces the extension-name prefix at contribution time.
219
+ */
220
+ readonly kind: string;
221
+ /** Human-readable description of what this Reaction does when invoked. */
222
+ readonly description: string;
223
+ /** Live Zod schema for the Reaction's invocation parameters. */
224
+ readonly parameterSchema: z.ZodType<TParams>;
225
+ /** Typed handler receiving already-validated read-only parameters. */
226
+ readonly handler: ReactionHandler<TParams>;
227
+ }
228
+ /**
229
+ * Creates an executable Reaction definition with a live parameter schema, a
230
+ * typed handler, and a serializable descriptor.
231
+ *
232
+ * The returned definition is type-erased for storage on contribution
233
+ * surfaces; the typed `handler` from the options keeps its parameter type
234
+ * internally and is invoked under the invariant that the dispatching runtime
235
+ * validated the parameters with `parameterSchema` first. Definition creation
236
+ * derives serializable discovery metadata — the live schema and handler are
237
+ * never serialized.
238
+ * @typeParam TParams - Parameter shape validated by `parameterSchema`.
239
+ * @param options - Reaction identity, description, live parameter schema, and
240
+ * typed handler.
241
+ * @returns A type-erased {@link ReactionDefinition} ready for contribution.
242
+ * @throws Error when the Reaction identity or input parameter schema cannot
243
+ * form a serializable {@link ReactionDescriptorSchema}, enforced fail-fast
244
+ * at definition time so `toDescriptor()` can never fail discovery.
245
+ * @example
246
+ * ```ts
247
+ * export const notifyReaction = defineReaction({
248
+ * kind: 'my-extension.notify-owner',
249
+ * description: 'Notifies the owning user about a host-selected event.',
250
+ * parameterSchema: z.object({ channel: z.string(), message: z.string() }),
251
+ * handler: async (parameters, context) => {
252
+ * await sendNotification(parameters.channel, parameters.message, {
253
+ * signal: context.signal,
254
+ * });
255
+ * },
256
+ * });
257
+ * ```
258
+ */
259
+ declare function defineReaction<TParams extends Record<string, unknown>>(options: DefineReactionOptions<TParams>): ReactionDefinition$1;
260
+ //#endregion
261
+ //#region core/contracts/src/reaction/contribution.d.ts
262
+ /**
263
+ * Context supplied to the `createReactions` factory of an
264
+ * {@link ExtensionReactionsContribution}.
265
+ *
266
+ * This is a semantically named alias over the applicable host
267
+ * {@link ExtensionContext} — an API-evolution seam, not a second dependency
268
+ * container. Reaction factories receive the same per-extension runtime
269
+ * context as other executable contribution factories; the alias exists so
270
+ * the Reaction surface can grow reaction-specific context fields later
271
+ * without changing every factory signature.
272
+ * @typeParam THostContext - Concrete context shape supplied by the host
273
+ * runtime. Defaults to {@link NodeExtensionContext} because the current
274
+ * framework hosts are Node-based.
275
+ */
276
+ type ReactionContributionContext<THostContext extends ExtensionContext$1 = NodeExtensionContext$1> = THostContext;
277
+ /**
278
+ * Executable Reactions contribution surface declared by an extension.
279
+ *
280
+ * The runtime calls `createReactions(ctx)` during extension activation and
281
+ * atomically registers the returned definitions as that extension's complete
282
+ * Reaction batch.
283
+ * Definitions carry live Zod parameter schemas and trusted handlers — they
284
+ * are runtime values, never serializable descriptor data.
285
+ * @typeParam THostContext - Concrete context shape supplied by the host
286
+ * runtime. Defaults to {@link NodeExtensionContext} because the current
287
+ * framework hosts are Node-based.
288
+ */
289
+ interface ExtensionReactionsContribution<THostContext extends ExtensionContext$1 = NodeExtensionContext$1> {
290
+ /**
291
+ * Factory that produces the Reaction definitions for this extension.
292
+ *
293
+ * Called during extension activation. Each result is the extension's
294
+ * complete Reaction batch and atomically replaces its prior batch. Returning
295
+ * a `Promise` allows async resource acquisition (e.g. lazy loading).
296
+ * @param ctx - Per-extension runtime context supplied by the host.
297
+ * @returns Reaction definitions or a promise that resolves to them.
298
+ */
299
+ readonly createReactions: (ctx: ReactionContributionContext<THostContext>) => readonly ReactionDefinition$1[] | Promise<readonly ReactionDefinition$1[]>;
300
+ }
301
+ //#endregion
302
+ export { ReactionHandler as a, ReactionInvocationId as c, ReactionDescriptor$1 as d, ReactionDescriptorSchema$1 as f, ReactionDefinition$1 as i, ReactionRuleRef$1 as l, ReactionOutcomeSchema as m, ReactionContributionContext as n, defineReaction as o, ReactionOutcome$1 as p, DefineReactionOptions as r, ReactionExecutionContext as s, ExtensionReactionsContribution as t, createReactionRuleRef as u };
@@ -1,4 +1,4 @@
1
- import { c as AdapterRuntimeSnapshotErrorCode } from "./schemas-BsVYZviy.mjs";
1
+ import { c as AdapterRuntimeSnapshotErrorCode } from "./schemas-DZH9lpxs.mjs";
2
2
  import { IMakaioBus } from "@makaio/framework/bus";
3
3
  import { ProviderContext, ResolvedProviderContext } from "@makaio/framework/contracts";
4
4
 
@@ -1,4 +1,4 @@
1
- import { H as ClientDefinition, U as ClientDefinitionInput } from "./hook-responses-Dh1PWXqJ.mjs";
1
+ import { D as ClientDefinitionInput, E as ClientDefinition } from "./hook-responses-CQZIv3L3.mjs";
2
2
  import * as _$zod from "zod";
3
3
  import { z } from "zod";
4
4
  import * as _$_makaio_core0 from "@makaio/framework/core";
@@ -17,8 +17,8 @@ declare const ClientExecutionContextSchema: z.ZodObject<{
17
17
  env: z.ZodRecord<z.ZodString, z.ZodString>;
18
18
  configDir: z.ZodNullable<z.ZodString>;
19
19
  source: z.ZodEnum<{
20
- global: "global";
21
20
  managed: "managed";
21
+ global: "global";
22
22
  }>;
23
23
  version: z.ZodNullable<z.ZodString>;
24
24
  }, z.core.$strip>;
@@ -39,8 +39,8 @@ declare const ClientResolveBinarySchema: {
39
39
  sessionId: z.ZodOptional<z.ZodString>;
40
40
  projectDir: z.ZodOptional<z.ZodString>;
41
41
  preferSource: z.ZodOptional<z.ZodEnum<{
42
- global: "global";
43
42
  managed: "managed";
43
+ global: "global";
44
44
  }>>;
45
45
  harnessId: z.ZodOptional<z.ZodString>;
46
46
  }, z.core.$strip>;
@@ -49,8 +49,8 @@ declare const ClientResolveBinarySchema: {
49
49
  env: z.ZodRecord<z.ZodString, z.ZodString>;
50
50
  configDir: z.ZodNullable<z.ZodString>;
51
51
  source: z.ZodEnum<{
52
- global: "global";
53
52
  managed: "managed";
53
+ global: "global";
54
54
  }>;
55
55
  version: z.ZodNullable<z.ZodString>;
56
56
  }, z.core.$strip>;
@@ -506,11 +506,11 @@ declare const ClientSchemas: {
506
506
  cwd: z.ZodOptional<z.ZodString>;
507
507
  machineId: z.ZodOptional<z.ZodString>;
508
508
  startMode: z.ZodOptional<z.ZodEnum<{
509
- fork: "fork";
510
- resume: "resume";
511
509
  fresh: "fresh";
512
- compact: "compact";
510
+ resume: "resume";
511
+ fork: "fork";
513
512
  clear: "clear";
513
+ compact: "compact";
514
514
  }>>;
515
515
  parentAdapterSessionId: z.ZodOptional<z.ZodString>;
516
516
  }, z.core.$strip>;
@@ -698,8 +698,8 @@ declare const ClientSchemas: {
698
698
  sessionId: z.ZodOptional<z.ZodString>;
699
699
  projectDir: z.ZodOptional<z.ZodString>;
700
700
  preferSource: z.ZodOptional<z.ZodEnum<{
701
- global: "global";
702
701
  managed: "managed";
702
+ global: "global";
703
703
  }>>;
704
704
  harnessId: z.ZodOptional<z.ZodString>;
705
705
  }, z.core.$strip>;
@@ -708,8 +708,8 @@ declare const ClientSchemas: {
708
708
  env: z.ZodRecord<z.ZodString, z.ZodString>;
709
709
  configDir: z.ZodNullable<z.ZodString>;
710
710
  source: z.ZodEnum<{
711
- global: "global";
712
711
  managed: "managed";
712
+ global: "global";
713
713
  }>;
714
714
  version: z.ZodNullable<z.ZodString>;
715
715
  }, z.core.$strip>;
@@ -1486,11 +1486,11 @@ type ClientSessionObservedBase = z.infer<typeof ClientSessionObservedBaseSchema>
1486
1486
  declare const CLIENT_SESSION_START_MODES: readonly ["fresh", "fork", "resume", "clear", "compact"];
1487
1487
  /** Zod schema for the client-reported session start mode. */
1488
1488
  declare const ClientSessionStartModeSchema: z.ZodEnum<{
1489
- fork: "fork";
1490
- resume: "resume";
1491
1489
  fresh: "fresh";
1492
- compact: "compact";
1490
+ resume: "resume";
1491
+ fork: "fork";
1493
1492
  clear: "clear";
1493
+ compact: "compact";
1494
1494
  }>;
1495
1495
  /** Client-reported session start mode discriminator. */
1496
1496
  type ClientSessionStartMode = z.infer<typeof ClientSessionStartModeSchema>;
@@ -1505,11 +1505,11 @@ declare const ClientSessionStartedSchema: z.ZodObject<{
1505
1505
  cwd: z.ZodOptional<z.ZodString>;
1506
1506
  machineId: z.ZodOptional<z.ZodString>;
1507
1507
  startMode: z.ZodOptional<z.ZodEnum<{
1508
- fork: "fork";
1509
- resume: "resume";
1510
1508
  fresh: "fresh";
1511
- compact: "compact";
1509
+ resume: "resume";
1510
+ fork: "fork";
1512
1511
  clear: "clear";
1512
+ compact: "compact";
1513
1513
  }>>;
1514
1514
  parentAdapterSessionId: z.ZodOptional<z.ZodString>;
1515
1515
  }, z.core.$strip>;
@@ -2076,11 +2076,11 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
2076
2076
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
2077
2077
  machineId: _$zod.ZodOptional<_$zod.ZodString>;
2078
2078
  startMode: _$zod.ZodOptional<_$zod.ZodEnum<{
2079
- fork: "fork";
2080
- resume: "resume";
2081
2079
  fresh: "fresh";
2082
- compact: "compact";
2080
+ resume: "resume";
2081
+ fork: "fork";
2083
2082
  clear: "clear";
2083
+ compact: "compact";
2084
2084
  }>>;
2085
2085
  parentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
2086
2086
  }, _$zod_v4_core0.$strip>;
@@ -2268,8 +2268,8 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
2268
2268
  sessionId: _$zod.ZodOptional<_$zod.ZodString>;
2269
2269
  projectDir: _$zod.ZodOptional<_$zod.ZodString>;
2270
2270
  preferSource: _$zod.ZodOptional<_$zod.ZodEnum<{
2271
- global: "global";
2272
2271
  managed: "managed";
2272
+ global: "global";
2273
2273
  }>>;
2274
2274
  harnessId: _$zod.ZodOptional<_$zod.ZodString>;
2275
2275
  }, _$zod_v4_core0.$strip>;
@@ -2278,8 +2278,8 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
2278
2278
  env: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>;
2279
2279
  configDir: _$zod.ZodNullable<_$zod.ZodString>;
2280
2280
  source: _$zod.ZodEnum<{
2281
- global: "global";
2282
2281
  managed: "managed";
2282
+ global: "global";
2283
2283
  }>;
2284
2284
  version: _$zod.ZodNullable<_$zod.ZodString>;
2285
2285
  }, _$zod_v4_core0.$strip>;
@@ -2716,11 +2716,11 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
2716
2716
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
2717
2717
  machineId: _$zod.ZodOptional<_$zod.ZodString>;
2718
2718
  startMode: _$zod.ZodOptional<_$zod.ZodEnum<{
2719
- fork: "fork";
2720
- resume: "resume";
2721
2719
  fresh: "fresh";
2722
- compact: "compact";
2720
+ resume: "resume";
2721
+ fork: "fork";
2723
2722
  clear: "clear";
2723
+ compact: "compact";
2724
2724
  }>>;
2725
2725
  parentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
2726
2726
  }, _$zod_v4_core0.$strip>;
@@ -2908,8 +2908,8 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
2908
2908
  sessionId: _$zod.ZodOptional<_$zod.ZodString>;
2909
2909
  projectDir: _$zod.ZodOptional<_$zod.ZodString>;
2910
2910
  preferSource: _$zod.ZodOptional<_$zod.ZodEnum<{
2911
- global: "global";
2912
2911
  managed: "managed";
2912
+ global: "global";
2913
2913
  }>>;
2914
2914
  harnessId: _$zod.ZodOptional<_$zod.ZodString>;
2915
2915
  }, _$zod_v4_core0.$strip>;
@@ -2918,8 +2918,8 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
2918
2918
  env: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>;
2919
2919
  configDir: _$zod.ZodNullable<_$zod.ZodString>;
2920
2920
  source: _$zod.ZodEnum<{
2921
- global: "global";
2922
2921
  managed: "managed";
2922
+ global: "global";
2923
2923
  }>;
2924
2924
  version: _$zod.ZodNullable<_$zod.ZodString>;
2925
2925
  }, _$zod_v4_core0.$strip>;