@makaio/framework 1.0.0-dev-1784806252593 → 1.0.0-dev-1785344643235

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 (470) hide show
  1. package/dist/.makaio-build.json +3 -2
  2. package/dist/{account-identity-CP4DC0DL.mjs → account-identity-DFx8pwKL.mjs} +1 -1
  3. package/dist/{adapter-CYobxqN_.mjs → adapter-D5c5LrPN.mjs} +1 -1
  4. package/dist/adapters/claude/index.d.mts +204 -27
  5. package/dist/adapters/claude/index.mjs +3 -3
  6. package/dist/adapters/config/index.d.mts +2 -2
  7. package/dist/adapters/config/index.mjs +1 -1
  8. package/dist/adapters/index.d.mts +49 -4
  9. package/dist/adapters/index.mjs +3 -3
  10. package/dist/adapters/node.d.mts +1 -1
  11. package/dist/adapters/node.mjs +1 -1
  12. package/dist/{artifact-DCkizHkS.mjs → artifact-DGiXqb11.mjs} +1 -1
  13. package/dist/attempt-record-codec-CqO1_XnE.mjs +1 -0
  14. package/dist/{auth-C3NOWqTU.mjs → auth-DGEdiHF6.mjs} +1 -1
  15. package/dist/authority-state-bootstrap-GPL_tqaT.mjs +1 -0
  16. package/dist/bus/index.mjs +1 -1
  17. package/dist/{canonical-model-EMRYCVjX.mjs → canonical-model-BAytQ4NV.mjs} +1 -1
  18. package/dist/capabilities-BQEp34ir.mjs +1 -0
  19. package/dist/{client-OYk0Ttck.mjs → client-DbS847wW.mjs} +1 -1
  20. package/dist/clients/index.d.mts +10 -8
  21. package/dist/clients/index.mjs +1 -1
  22. package/dist/clients/managed-install.d.mts +1 -1
  23. package/dist/clients/managed-install.mjs +1 -1
  24. package/dist/{compression-CZ_6fYq8.mjs → compression-74fFeBha.mjs} +1 -1
  25. package/dist/{config-namespace-DTA6EQL8.mjs → config-namespace-TVX-hG4I.mjs} +1 -1
  26. package/dist/{context-resolution-B5IH2Z9v.d.mts → context-resolution-BQBk4Ish.d.mts} +8 -6
  27. package/dist/contracts/adapter/index.d.mts +2 -2
  28. package/dist/contracts/adapter/index.mjs +1 -1
  29. package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
  30. package/dist/contracts/artifact/index.d.mts +2 -2
  31. package/dist/contracts/artifact/index.mjs +1 -1
  32. package/dist/contracts/auth/index.d.mts +2 -2
  33. package/dist/contracts/auth/index.mjs +1 -1
  34. package/dist/contracts/canonical-model/index.d.mts +1 -1
  35. package/dist/contracts/canonical-model/index.mjs +1 -1
  36. package/dist/contracts/capabilities/index.d.mts +2 -0
  37. package/dist/contracts/capabilities/index.mjs +1 -0
  38. package/dist/contracts/client/index.d.mts +2 -2
  39. package/dist/contracts/client/index.mjs +1 -1
  40. package/dist/contracts/common/index.d.mts +1 -1
  41. package/dist/contracts/config/index.d.mts +24 -2
  42. package/dist/contracts/config/index.mjs +1 -1
  43. package/dist/contracts/extension/index.d.mts +4 -4
  44. package/dist/contracts/extension/index.mjs +1 -1
  45. package/dist/contracts/facet/index.d.mts +1 -1
  46. package/dist/contracts/facet/index.mjs +1 -1
  47. package/dist/contracts/harness/index.d.mts +1 -1
  48. package/dist/contracts/harness/index.mjs +1 -1
  49. package/dist/contracts/host/index.d.mts +1 -1
  50. package/dist/contracts/host/index.mjs +1 -1
  51. package/dist/contracts/index.d.mts +1678 -9427
  52. package/dist/contracts/index.mjs +1 -1
  53. package/dist/contracts/materialization/index.d.mts +3 -3
  54. package/dist/contracts/materialization/index.mjs +1 -1
  55. package/dist/contracts/model-registry/index.d.mts +1 -1
  56. package/dist/contracts/model-registry/index.mjs +1 -1
  57. package/dist/contracts/native-session-supervisor/index.d.mts +1 -1
  58. package/dist/contracts/native-session-supervisor/index.mjs +1 -1
  59. package/dist/contracts/platform/index.d.mts +1 -1
  60. package/dist/contracts/platform/index.mjs +1 -1
  61. package/dist/contracts/provider/index.d.mts +2 -2
  62. package/dist/contracts/provider/index.mjs +1 -1
  63. package/dist/contracts/session/index.d.mts +2 -2
  64. package/dist/contracts/session/index.mjs +1 -1
  65. package/dist/contracts/shared/index.d.mts +2 -2
  66. package/dist/contracts/shared/index.mjs +1 -1
  67. package/dist/contracts/skill/index.d.mts +1 -1
  68. package/dist/contracts/skill/index.mjs +1 -1
  69. package/dist/contracts/telemetry/index.d.mts +1 -1
  70. package/dist/contracts/telemetry/index.mjs +1 -1
  71. package/dist/contracts/timeout/index.d.mts +1 -1
  72. package/dist/contracts/timeout/index.mjs +1 -1
  73. package/dist/contracts/toast/index.mjs +1 -1
  74. package/dist/contracts/variant/index.d.mts +1 -1
  75. package/dist/contracts/variant/index.mjs +1 -1
  76. package/dist/contracts/worker-node/index.d.mts +2 -0
  77. package/dist/contracts/worker-node/index.mjs +1 -0
  78. package/dist/contracts/workflow/index.d.mts +3 -3
  79. package/dist/contracts/workflow/index.mjs +1 -1
  80. package/dist/{definition-K3m51lgO.mjs → definition-CJfiv8xm.mjs} +1 -1
  81. package/dist/{detached-extension-handle-BsywhHfk.mjs → detached-extension-handle-Ddfquy5_.mjs} +1 -1
  82. package/dist/drizzle/0030_remote-worker-execution.sql +6 -0
  83. package/dist/drizzle/meta/_journal.json +7 -0
  84. package/dist/execution-attempt-repository-DWXKY41_.d.mts +1056 -0
  85. package/dist/execution-target-Cf645pDj.mjs +1 -0
  86. package/dist/{extension-Cgg45Xk1.mjs → extension-DCA4pYrY.mjs} +1 -1
  87. package/dist/extension-hjOPs10e.mjs +1 -0
  88. package/dist/{filesystem-service-Cupz_Z7S.mjs → filesystem-service-DlP2HfDg.mjs} +1 -1
  89. package/dist/framework-packages-C3RWfJDk.mjs +1 -0
  90. package/dist/git/index.mjs +1 -1
  91. package/dist/{globby-DWp7V-P2.mjs → globby-1yCVCk8s.mjs} +1 -1
  92. package/dist/{handlers-cMBmexF4.mjs → handlers-CfnLyLfE.mjs} +1 -1
  93. package/dist/{harness-DflvHAGV.mjs → harness-DpwsFsE7.mjs} +1 -1
  94. package/dist/{index-BhXCCgJV2.d.mts → index-4fE_hUP02.d.mts} +1 -1
  95. package/dist/{index-DeoKITib.d.mts → index-8gKx-OVP.d.mts} +85 -79
  96. package/dist/index-B0Kf_OWi.d.mts +267 -0
  97. package/dist/{index-DRiTICBU.d.mts → index-BAXkicoQ.d.mts} +1 -1
  98. package/dist/{index-D9Tk7hyM.d.mts → index-BC79QrGC.d.mts} +29 -29
  99. package/dist/{index-y5-qCuUL.d.mts → index-BQLUVXIB.d.mts} +1023 -887
  100. package/dist/{index-BF-ZfYo4.d.mts → index-BXD3kEs_.d.mts} +28 -10
  101. package/dist/{index-CYfiCzb-.d.mts → index-CL-0NeQW.d.mts} +8 -5
  102. package/dist/{index-Cw7_69gV.d.mts → index-CRvpVIqA.d.mts} +1 -1
  103. package/dist/{index-BXgsQUhf.d.mts → index-CVaRZoiu.d.mts} +8 -8
  104. package/dist/{index-DaMfTvfz.d.mts → index-DA9g2A5P.d.mts} +1 -1
  105. package/dist/{index-DSyyWwR2.d.mts → index-DJAmSnuh.d.mts} +24 -24
  106. package/dist/{index-pjATMrvJ.d.mts → index-DkiTJM5p.d.mts} +693 -31
  107. package/dist/{index-jbgHR5J2.d.mts → index-GHASUiem.d.mts} +1 -1
  108. package/dist/{index-D73PTKXG2.d.mts → index-I5YG-qrb2.d.mts} +6 -6
  109. package/dist/{index-g36yJDge.d.mts → index-SsBHjUqA.d.mts} +198 -159
  110. package/dist/index-XZyMxxnU.d.mts +1602 -0
  111. package/dist/{index-z9bcglqL.d.mts → index-brqfk9JQ.d.mts} +4 -4
  112. package/dist/{index-Dfl1vniO.d.mts → index-q0Tiqems.d.mts} +101 -101
  113. package/dist/index-w_FmghjT.d.mts +7295 -0
  114. package/dist/kernel/cli/index.d.mts +2 -2
  115. package/dist/kernel/cli/index.mjs +1 -1
  116. package/dist/kernel/cli/register.d.mts +1 -1
  117. package/dist/kernel/cli/register.mjs +1 -1
  118. package/dist/kernel/cli/schemas.mjs +1 -1
  119. package/dist/kernel/extension/index.d.mts +1 -1
  120. package/dist/kernel/extension/index.mjs +1 -1
  121. package/dist/kernel/index.d.mts +14 -8
  122. package/dist/kernel/index.mjs +1 -1
  123. package/dist/kernel/namespace/index.d.mts +1 -1
  124. package/dist/kernel/namespace/index.mjs +1 -1
  125. package/dist/kernel/observability/index.d.mts +1 -1
  126. package/dist/kernel/observability/index.mjs +1 -1
  127. package/dist/kernel/providers/index.d.mts +1 -1
  128. package/dist/kernel/providers/index.mjs +1 -1
  129. package/dist/kernel/window/index.d.mts +1 -1
  130. package/dist/kernel/window/index.mjs +1 -1
  131. package/dist/{lib-BeMM738r.mjs → lib-C7-s68uf.mjs} +1 -1
  132. package/dist/{lib-B7TpTzkG.mjs → lib-DErgth_E.mjs} +2 -2
  133. package/dist/{load-extensions-BLdG90Zi.d.mts → load-extensions-BxsDB87B.d.mts} +1 -1
  134. package/dist/{load-extensions-CUmFCcYi.mjs → load-extensions-D0DfjYLC.mjs} +1 -1
  135. package/dist/{materialization-s8eR1eQ4.mjs → materialization-Jd198K3y.mjs} +1 -1
  136. package/dist/mcp-http-server/index.d.mts +305 -79
  137. package/dist/mcp-http-server/index.mjs +4 -4
  138. package/dist/model-BGgVmRnN.mjs +1 -0
  139. package/dist/modes-BheyN7SS.mjs +1 -0
  140. package/dist/{namespace-DwQtzlY-.mjs → namespace-BqxtpNAn.mjs} +1 -1
  141. package/dist/{namespace-BHliaabz.d.mts → namespace-DBm9K23m.d.mts} +6 -6
  142. package/dist/{namespace-Db_PFX3v.d.mts → namespace-DI4Yx_xu.d.mts} +9 -9
  143. package/dist/namespace-DJfUADSV.mjs +1 -0
  144. package/dist/{namespace-DRHnU5Yi2.d.mts → namespace-DPgxPa8m2.d.mts} +7 -7
  145. package/dist/{namespace-Bd49QmzS.d.mts → namespace-DWCEo-9M.d.mts} +0 -60
  146. package/dist/{namespace-Dvo_7BQw.d.mts → namespace-Dkod-w11.d.mts} +2 -2
  147. package/dist/{namespace-BeV7LST-.d.mts → namespace-YytVKIgI.d.mts} +2 -2
  148. package/dist/{namespace-8-GrdcbF.d.mts → namespace-jPUGV-b2.d.mts} +42 -42
  149. package/dist/{native-session-supervisor-Bgz-Q1WH.mjs → native-session-supervisor-DRx0MX-d.mjs} +1 -1
  150. package/dist/node/bus-server/index.d.mts +1 -1
  151. package/dist/node/bus-server/index.mjs +1 -1
  152. package/dist/node/bus-server/server-lifecycle.d.mts +1 -1
  153. package/dist/node/bus-server/server-lifecycle.mjs +1 -1
  154. package/dist/node/transports/index.d.mts +81 -9
  155. package/dist/node/transports/index.mjs +2 -2
  156. package/dist/{orchestrator-shared-CY7Tu7kZ.mjs → orchestrator-shared-BxmHCPvx.mjs} +1 -1
  157. package/dist/package-CNUPPcU1.mjs +7 -0
  158. package/dist/package-DWMxGfzK.d.mts +827 -0
  159. package/dist/{package-DKnzOvoR.mjs → package-Dft_RItb.mjs} +1 -1
  160. package/dist/package.json +1 -1
  161. package/dist/{packages-zDnokBpl.mjs → packages-DtEEP0Vt.mjs} +1 -1
  162. package/dist/{profile-BRi6K6am.mjs → profile-BTAI31Nt.mjs} +1 -1
  163. package/dist/{provider-context-DOsjOjiR.mjs → provider-context-Dq53Cgzz.mjs} +1 -1
  164. package/dist/{provider-context-BYkMl--1.mjs → provider-context-PZIQWcqQ.mjs} +1 -1
  165. package/dist/provider-operation-Cxoe2SUr.d.mts +207 -0
  166. package/dist/providers/index.mjs +1 -1
  167. package/dist/{registry-Dw6l7k3e.mjs → registry-wfF2uTty.mjs} +29 -29
  168. package/dist/{resolved-O2XXjTeu.mjs → resolved-DZgqql2Z.mjs} +1 -1
  169. package/dist/rules/index.d.mts +1 -1
  170. package/dist/rules/index.mjs +1 -1
  171. package/dist/rules/schemas.d.mts +1 -1
  172. package/dist/runtime-bun/index.mjs +1 -1
  173. package/dist/runtime-node/extension-discovery.d.mts +1 -1
  174. package/dist/runtime-node/extension-validation.d.mts +1 -1
  175. package/dist/runtime-node/extension-validation.mjs +1 -1
  176. package/dist/runtime-node/index.d.mts +4 -4
  177. package/dist/runtime-node/index.mjs +24 -24
  178. package/dist/runtime-node/makaio-config.d.mts +1 -1
  179. package/dist/runtime-node/makaio-config.mjs +1 -1
  180. package/dist/runtime-node/static/model-registry.yaml +348 -0
  181. package/dist/runtime-node/workflow-worker/index.d.mts +2 -2
  182. package/dist/runtime-node/workflow-worker/index.mjs +1 -1
  183. package/dist/runtime-node/workflow-worker/worker-entry.d.mts +7 -4
  184. package/dist/runtime-node/workflow-worker/worker-entry.mjs +1 -1
  185. package/dist/{schema-CfMsufSb.d.mts → schema-Bwr_NrOS.d.mts} +2 -2
  186. package/dist/{schema-BI0aCHvV.mjs → schema-Dd-e89MO.mjs} +1 -1
  187. package/dist/{schemas-B5tMYfhC.d.mts → schemas-C4yUXs4G.d.mts} +4 -4
  188. package/dist/schemas-CRB2O5zo.mjs +1 -0
  189. package/dist/{schemas-Dgj3WaOI.mjs → schemas-Cm09dXL4.mjs} +1 -1
  190. package/dist/{schemas-BJ8VMXhO.mjs → schemas-DaHQzpgm.mjs} +1 -1
  191. package/dist/{schemas-SsGbBOZ-.d.mts → schemas-DuIlOWR3.d.mts} +2 -2
  192. package/dist/{schemas-1ahuxM83.d.mts → schemas-ENwK6jmV.d.mts} +3 -3
  193. package/dist/{schemas-ChF2z4RB.d.mts → schemas-N6x2z7Lf.d.mts} +0 -45
  194. package/dist/schemas-tDf_WiC8.mjs +1 -0
  195. package/dist/selection-BNwTKEVT.mjs +1 -0
  196. package/dist/service-base/index.d.mts +47 -2
  197. package/dist/service-base/index.mjs +1 -1
  198. package/dist/services/adapter-runtime/index.d.mts +3 -3
  199. package/dist/services/adapter-runtime/index.mjs +1 -1
  200. package/dist/services/adapter-runtime/namespace.d.mts +1 -1
  201. package/dist/services/adapter-runtime/schemas.d.mts +1 -1
  202. package/dist/services/adapter-subsystem/index.d.mts +3 -3
  203. package/dist/services/adapter-subsystem/index.mjs +1 -1
  204. package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
  205. package/dist/services/adapter-subsystem/namespace.mjs +1 -1
  206. package/dist/services/agent-runtime/index.d.mts +2 -2
  207. package/dist/services/agent-runtime/namespace.d.mts +1 -1
  208. package/dist/services/agent-runtime/schemas.d.mts +1 -1
  209. package/dist/services/capability/index.d.mts +1 -1
  210. package/dist/services/capability/index.mjs +1 -1
  211. package/dist/services/codebase/index.d.mts +2 -2
  212. package/dist/services/codebase/namespace.d.mts +1 -1
  213. package/dist/services/codebase/schemas.d.mts +1 -1
  214. package/dist/services/compression/index.d.mts +2 -2
  215. package/dist/services/compression/namespace.d.mts +1 -1
  216. package/dist/services/compression/schemas.d.mts +1 -1
  217. package/dist/services/context-rules/index.d.mts +1 -1
  218. package/dist/services/context-rules/index.mjs +1 -1
  219. package/dist/services/execution-target/index.d.mts +4 -4
  220. package/dist/services/execution-target/index.mjs +1 -1
  221. package/dist/services/execution-target/namespace.d.mts +1 -1
  222. package/dist/services/execution-target/namespace.mjs +1 -1
  223. package/dist/services/execution-target/schemas.d.mts +1 -1
  224. package/dist/services/execution-target/schemas.mjs +1 -1
  225. package/dist/services/filesystem/index.d.mts +1 -1
  226. package/dist/services/filesystem/index.mjs +1 -1
  227. package/dist/services/git/namespace.d.mts +2 -2
  228. package/dist/services/git/namespace.mjs +1 -1
  229. package/dist/services/git/schemas.d.mts +1 -1
  230. package/dist/services/git/schemas.mjs +1 -1
  231. package/dist/services/harness/index.mjs +1 -1
  232. package/dist/services/index.d.mts +76 -361
  233. package/dist/services/index.mjs +1 -1
  234. package/dist/services/log-import/browser.d.mts +2 -2
  235. package/dist/services/log-import/index.d.mts +2 -2
  236. package/dist/services/log-import/log-import.d.mts +1 -1
  237. package/dist/services/log-import/log-import.mjs +1 -1
  238. package/dist/services/log-import/namespace.d.mts +2 -2
  239. package/dist/services/log-import/namespace.mjs +1 -1
  240. package/dist/services/log-import/schemas.d.mts +1 -1
  241. package/dist/services/log-import/schemas.mjs +1 -1
  242. package/dist/services/materialization/index.d.mts +1 -1
  243. package/dist/services/materialization/index.mjs +1 -1
  244. package/dist/services/model-registry/index.d.mts +1 -1
  245. package/dist/services/model-registry/index.mjs +1 -1
  246. package/dist/services/preferences/index.d.mts +2 -2
  247. package/dist/services/preferences/schemas.d.mts +1 -1
  248. package/dist/services/preferences/storage-namespace.d.mts +2 -2
  249. package/dist/services/provider-context/index.d.mts +1 -1
  250. package/dist/services/provider-context/index.mjs +1 -1
  251. package/dist/services/provider-runtime/index.mjs +1 -1
  252. package/dist/services/session/handlers/index.d.mts +1 -1
  253. package/dist/services/session/handlers/index.mjs +1 -1
  254. package/dist/services/session/index.d.mts +9 -9
  255. package/dist/services/session/index.mjs +1 -1
  256. package/dist/services/session/messages/namespace.d.mts +1 -1
  257. package/dist/services/session/messages/namespace.mjs +1 -1
  258. package/dist/services/session/orchestrator-testing/index.d.mts +1 -1
  259. package/dist/services/session/orchestrator-testing/index.mjs +1 -1
  260. package/dist/services/session/session-events/namespace.d.mts +1 -1
  261. package/dist/services/session/session-events/namespace.mjs +1 -1
  262. package/dist/services/session/storage/namespace.d.mts +1 -1
  263. package/dist/services/session/storage/schema.d.mts +1 -1
  264. package/dist/services/session/testing/index.mjs +1 -1
  265. package/dist/services/session/testing/orchestrator-shared.d.mts +1 -1
  266. package/dist/services/session/testing/orchestrator-shared.mjs +1 -1
  267. package/dist/services/session/turns/namespace.d.mts +1 -1
  268. package/dist/services/session/turns/namespace.mjs +1 -1
  269. package/dist/services/session-editor/index.d.mts +1 -1
  270. package/dist/services/session-editor/index.mjs +1 -1
  271. package/dist/services/settings/index.d.mts +3 -3
  272. package/dist/services/settings/index.mjs +1 -1
  273. package/dist/services/settings/namespace.mjs +1 -1
  274. package/dist/services/settings/storage/clients-namespace.d.mts +1 -1
  275. package/dist/services/settings/storage/clients-namespace.mjs +1 -1
  276. package/dist/services/settings/storage/index.d.mts +3 -3
  277. package/dist/services/settings/storage/index.mjs +1 -1
  278. package/dist/services/settings/storage/providers-namespace.d.mts +1 -1
  279. package/dist/services/settings/storage/providers-namespace.mjs +1 -1
  280. package/dist/services/subagent/index.d.mts +1 -1
  281. package/dist/services/subagent/index.mjs +1 -1
  282. package/dist/services/subagent-template/index.d.mts +2 -2
  283. package/dist/services/subagent-template/namespace.d.mts +1 -1
  284. package/dist/services/subagent-template/schemas.d.mts +1 -1
  285. package/dist/services/tool-approval/index.d.mts +1 -1
  286. package/dist/services/tool-approval/index.mjs +1 -1
  287. package/dist/services/tools/index.d.mts +1 -1
  288. package/dist/services/tools/index.mjs +1 -1
  289. package/dist/services/tray-menu/index.d.mts +3 -3
  290. package/dist/services/tray-menu/index.mjs +1 -1
  291. package/dist/services/tray-menu/namespace.d.mts +1 -1
  292. package/dist/services/tray-menu/schemas.d.mts +1 -1
  293. package/dist/services/turn/index.d.mts +1 -1
  294. package/dist/services/turn/namespace.d.mts +1 -1
  295. package/dist/services/workflow-transitions/index.d.mts +2 -0
  296. package/dist/services/workflow-transitions/index.mjs +1 -0
  297. package/dist/{session-Carng3Yk.mjs → session-BOGCd18q.mjs} +1 -1
  298. package/dist/{session-idI1jk5X.mjs → session-BTFiDoGz.mjs} +1 -1
  299. package/dist/{shared-RP_KARKF.mjs → shared-BQ0CHIVy.mjs} +1 -1
  300. package/dist/{skill-CpNjWFuE.mjs → skill-BR6rkfLe.mjs} +1 -1
  301. package/dist/{src-XihJcAQS.mjs → src-DD0v-nIj.mjs} +1 -1
  302. package/dist/storage/drizzle/client.d.mts +1 -1
  303. package/dist/storage/drizzle/client.mjs +1 -1
  304. package/dist/storage/drizzle/index.d.mts +50 -2
  305. package/dist/storage/drizzle/index.mjs +1 -1
  306. package/dist/storage/handlers/drizzle/index.d.mts +1 -1
  307. package/dist/storage/handlers/drizzle/index.mjs +1 -1
  308. package/dist/storage/handlers/index.d.mts +1 -1
  309. package/dist/storage/handlers/index.mjs +1 -1
  310. package/dist/testing/drizzle-harness.d.mts +44 -3
  311. package/dist/testing/drizzle-harness.mjs +1 -1
  312. package/dist/{tool-approval-service-fIZ9x0kL.mjs → tool-approval-service-kBA0fRzm.mjs} +1 -1
  313. package/dist/tools-PdG9fO1M.mjs +1 -0
  314. package/dist/{transition-BuUKc2J1.d.mts → transition-DuVzKt8-.d.mts} +3 -42
  315. package/dist/{types-LspCUW09.d.mts → types-B1MNcwgH.d.mts} +1 -1
  316. package/dist/{types-D2KG8ewJ.d.mts → types-BqVAOzJP.d.mts} +35 -35
  317. package/dist/{types-DBb5jY4Z.d.mts → types-CJ_QZ1yW.d.mts} +47 -3
  318. package/dist/ui-kernel/index.d.mts +1 -1
  319. package/dist/ui-kernel/index.mjs +1 -1
  320. package/dist/ui-kernel/pages/schemas.d.mts +1 -1
  321. package/dist/utils/index.d.mts +18 -4
  322. package/dist/utils/index.mjs +1 -1
  323. package/dist/{version-BbWrAPld.mjs → version-CoCeMxDT.mjs} +1 -1
  324. package/dist/{view-builder-BktOepKR.d.mts → view-builder-CvoSL2oL.d.mts} +5 -4
  325. package/dist/visibility-qhGWmpSJ.mjs +1 -0
  326. package/dist/worker-node-Bl9_vqYi.mjs +1 -0
  327. package/dist/worker-node-DZTuT1DS.mjs +1 -0
  328. package/dist/workflow-BfDbgtIQ.mjs +1 -0
  329. package/dist/workflow-engine/execution-attempt-repository.d.mts +2 -0
  330. package/dist/workflow-engine/execution-attempt-repository.mjs +1 -0
  331. package/dist/workflow-engine/index.d.mts +635 -701
  332. package/dist/workflow-engine/index.mjs +1 -1
  333. package/dist/workflow-engine/package.d.mts +1 -1
  334. package/dist/workflow-engine/package.mjs +1 -1
  335. package/dist/workflow-engine/provider-operation.d.mts +2 -0
  336. package/dist/workflow-engine/provider-operation.mjs +1 -0
  337. package/dist/workflow-engine/testing/index.d.mts +146 -0
  338. package/dist/workflow-engine/testing/index.mjs +1 -0
  339. package/dist/workflow-engine/testing/sqlite.d.mts +22 -0
  340. package/dist/workflow-engine/testing/sqlite.mjs +130 -0
  341. package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
  342. package/dist/workflow-transitions-DSc45ixc.mjs +1 -0
  343. package/dist/workflow-worker-BN9XPxQO.mjs +1 -0
  344. package/package.json +20 -3
  345. package/dist/authority-state-bootstrap-C_-F_dtq.mjs +0 -1
  346. package/dist/execution-target-CsZXIvli.mjs +0 -1
  347. package/dist/extension-CjTu6mzW.mjs +0 -1
  348. package/dist/model-uE5IyUFJ.mjs +0 -1
  349. package/dist/namespace-C05pkLbN.mjs +0 -1
  350. package/dist/package-BSG1681x.d.mts +0 -427
  351. package/dist/package-DW1Upu8E.mjs +0 -7
  352. package/dist/schemas-BRxU_oqL.mjs +0 -1
  353. package/dist/schemas-C-J4W1ID.mjs +0 -1
  354. package/dist/selection-YRuVSdck.mjs +0 -1
  355. package/dist/tools-Cs2DwjCC.mjs +0 -1
  356. package/dist/visibility-Cb62p9bv.mjs +0 -1
  357. package/dist/workflow-BX-FxDb0.mjs +0 -1
  358. package/dist/workflow-worker-DR9qYOFc.mjs +0 -1
  359. /package/dist/{adapter-auth-runtime-DFBLXD5K.mjs → adapter-auth-runtime-DO-FVTXg.mjs} +0 -0
  360. /package/dist/{adapter-binding-Dfk_g-lP.d.mts → adapter-binding-DQchUtrK.d.mts} +0 -0
  361. /package/dist/{ajv-C8r45sFs.mjs → ajv-DD3SIL2i.mjs} +0 -0
  362. /package/dist/{attach-error-DCnzW-Yz.mjs → attach-error-C3tngg6J.mjs} +0 -0
  363. /package/dist/{await-trigger-UceeyCyi.mjs → await-trigger-I3lrepb8.mjs} +0 -0
  364. /package/dist/{base-orchestrator-5yH3l39s.d.mts → base-orchestrator-BilsQNW1.d.mts} +0 -0
  365. /package/dist/{capability-service-BzKBK0n2.mjs → capability-service-BqiLlRGA.mjs} +0 -0
  366. /package/dist/{client-DYEHDiJN.d.mts → client-B--e2qcU.d.mts} +0 -0
  367. /package/dist/{client-binary-version-verifier-C12PvQmz.d.mts → client-binary-version-verifier-CgjM_vGF.d.mts} +0 -0
  368. /package/dist/{client-binary-version-verifier-Dv7TGFxh.mjs → client-binary-version-verifier-taewmKTY.mjs} +0 -0
  369. /package/dist/{clients-namespace-DcFmhtLv.d.mts → clients-namespace-DfxjG2ZP.d.mts} +0 -0
  370. /package/dist/{config-namespace-DmP7NVju.d.mts → config-namespace-BCqvufbD.d.mts} +0 -0
  371. /package/dist/{create-static-mount-BLbqGmva.mjs → create-static-mount-bbQhTt6W.mjs} +0 -0
  372. /package/dist/{cross-spawn-BXxQUsPS.mjs → cross-spawn-B57KZuns.mjs} +0 -0
  373. /package/dist/{cursor-storage-DCj4uUxr.mjs → cursor-storage-DIFK_9hg.mjs} +0 -0
  374. /package/dist/{definition-BEvV7tbD.d.mts → definition-gnKgXU91.d.mts} +0 -0
  375. /package/dist/{definitions-C1pgx0Nq.mjs → definitions-xrrY0wgz.mjs} +0 -0
  376. /package/dist/{descriptor-to-package-VfB8lK5w.mjs → descriptor-to-package-DvF08krT.mjs} +0 -0
  377. /package/dist/{drizzle-oCH9H53q.mjs → drizzle-z_0SiGY8.mjs} +0 -0
  378. /package/dist/{esm-ClQELElL.mjs → esm-CltRnX8_.mjs} +0 -0
  379. /package/dist/{event-BOLVCfhH.mjs → event-CmVjR6Ib.mjs} +0 -0
  380. /package/dist/{extension-discovery-B6p3iZaV.d.mts → extension-discovery-CQRdbVQ6.d.mts} +0 -0
  381. /package/dist/{extension-namespace-vrh4ERXR.mjs → extension-namespace-Yu41YepM.mjs} +0 -0
  382. /package/dist/{facet-DqPBpqkl.mjs → facet-BCI00njh.mjs} +0 -0
  383. /package/dist/{filesystem-service-CGdboor3.d.mts → filesystem-service-CQ9yVkSz.d.mts} +0 -0
  384. /package/dist/{handler-GGOD_ofd.mjs → handler-Cbv9FqDO.mjs} +0 -0
  385. /package/dist/{hook-responses-Dg8wDvRo.d.mts → hook-responses-Dh1PWXqJ.d.mts} +0 -0
  386. /package/dist/{host-BfgdjlII.mjs → host-Caq6ZfSJ.mjs} +0 -0
  387. /package/dist/{identity-BmEHHoBw.mjs → identity-D6guMtmi.mjs} +0 -0
  388. /package/dist/{index-DEchpaya.d.mts → index-BIdsFcQs2.d.mts} +0 -0
  389. /package/dist/{index-DquI_1X5.d.mts → index-BVRQEpAg.d.mts} +0 -0
  390. /package/dist/{index-Brdc35b-.d.mts → index-BaZeoZoS.d.mts} +0 -0
  391. /package/dist/{index-CzKLLQLw.d.mts → index-BskPjMet.d.mts} +0 -0
  392. /package/dist/{index-BSmwpgkR.d.mts → index-ByKi34v5.d.mts} +0 -0
  393. /package/dist/{index-oYGf2zIe.d.mts → index-CGZQVTid.d.mts} +0 -0
  394. /package/dist/{index-Chy9aknK.d.mts → index-CMJZ2Z8m.d.mts} +0 -0
  395. /package/dist/{index-4NQLoI7R.d.mts → index-CUvNKYkV.d.mts} +0 -0
  396. /package/dist/{index-Bd1GC1kU2.d.mts → index-CjdRdsd0.d.mts} +0 -0
  397. /package/dist/{index-BHQXXd-O.d.mts → index-CnMu8BQl.d.mts} +0 -0
  398. /package/dist/{index-DYUxNOIX.d.mts → index-Cv-o5Krs.d.mts} +0 -0
  399. /package/dist/{index-DC0yVsYL.d.mts → index-DN4NOCqN2.d.mts} +0 -0
  400. /package/dist/{index-CcsJnJOD.d.mts → index-DR40QWlw.d.mts} +0 -0
  401. /package/dist/{index-BG9-vQHD.d.mts → index-DZunhZec.d.mts} +0 -0
  402. /package/dist/{index-BsBvs0aK.d.mts → index-DjgLchuQ.d.mts} +0 -0
  403. /package/dist/{index-pgYFJ5h6.d.mts → index-Dm1nUxCF.d.mts} +0 -0
  404. /package/dist/{index-C96LlS5m.d.mts → index-Ds5_rDEJ.d.mts} +0 -0
  405. /package/dist/{index-B6SBIKyk.d.mts → index-HsTxm-R3.d.mts} +0 -0
  406. /package/dist/{index-GYZs75UP.d.mts → index-dtsLKOID.d.mts} +0 -0
  407. /package/dist/{index-8fJ6dkzR.d.mts → index-gUhidukN.d.mts} +0 -0
  408. /package/dist/{index-BgpYhR2z.d.mts → index-jTaAHsul.d.mts} +0 -0
  409. /package/dist/{index-Ci3_i-WC2.d.mts → index-sS6KUlrx.d.mts} +0 -0
  410. /package/dist/{index-CFeY8lfU.d.mts → index-vA--0lOM.d.mts} +0 -0
  411. /package/dist/{index-BUYyZm5I.d.mts → index-vcSj12YQ.d.mts} +0 -0
  412. /package/dist/{index-CdEhEXlY.d.mts → index-ye0oklfU.d.mts} +0 -0
  413. /package/dist/{json-value-BwVdTylT.d.mts → json-value-Brslhqbm.d.mts} +0 -0
  414. /package/dist/{jsonl-transport-D8RBF0dK.mjs → jsonl-transport-bQl3JwIu.mjs} +0 -0
  415. /package/dist/{lib-3_xcE8J-.mjs → lib-DOBXZmYX.mjs} +0 -0
  416. /package/dist/{model-registry-CoegIvks.mjs → model-registry-CmgcPDH3.mjs} +0 -0
  417. /package/dist/{model-registry-BneK5SGo.mjs → model-registry-xyBKSye-.mjs} +0 -0
  418. /package/dist/{namespace-CDO4rY11.mjs → namespace-B8uKAzWJ.mjs} +0 -0
  419. /package/dist/{namespace-BsF9IxJ9.d.mts → namespace-BOkKoq34.d.mts} +0 -0
  420. /package/dist/{namespace-SQAGytmu.d.mts → namespace-Blp4c8GK.d.mts} +0 -0
  421. /package/dist/{namespace-BeED_Ojz.mjs → namespace-C-9si-fV.mjs} +0 -0
  422. /package/dist/{namespace-De9Mg3zv.d.mts → namespace-CErHuXtb.d.mts} +0 -0
  423. /package/dist/{namespace-BHj13hbA.mjs → namespace-CWGKCNZm.mjs} +0 -0
  424. /package/dist/{namespace-D7pE2QWv.mjs → namespace-CWUDFGOy.mjs} +0 -0
  425. /package/dist/{namespace-D9HNjIdc.d.mts → namespace-Cv1RFP7n.d.mts} +0 -0
  426. /package/dist/{namespace-lWlqWTKu.d.mts → namespace-GPA7zots.d.mts} +0 -0
  427. /package/dist/{namespace-DWwWnLBu.mjs → namespace-HO2J9sO8.mjs} +0 -0
  428. /package/dist/{namespace-C238RqwB.mjs → namespace-YxU1xf-K.mjs} +0 -0
  429. /package/dist/{namespace-B9CYb9Gh.d.mts → namespace-jDhZjw-i.d.mts} +0 -0
  430. /package/dist/{namespace-BSXHdCVh2.d.mts → namespace-tGRAod3o.d.mts} +0 -0
  431. /package/dist/{orchestrator-shared-BB6j8ezL.d.mts → orchestrator-shared-BHCv-l2O.d.mts} +0 -0
  432. /package/dist/{out-CFkI17mk.mjs → out-CvjtANXN.mjs} +0 -0
  433. /package/dist/{packages-DeIgn0Hn.d.mts → packages-BZ6pzFIq.d.mts} +0 -0
  434. /package/dist/{platform-CWhGFQFX.mjs → platform-Bv8llU9c.mjs} +0 -0
  435. /package/dist/{providers-CUnrif24.mjs → providers-Co5UszRH.mjs} +0 -0
  436. /package/dist/{providers-namespace-sPbGcZ6I.d.mts → providers-namespace-DjFkmvBR.d.mts} +0 -0
  437. /package/dist/{quick-lru-CTBjxfgD.mjs → quick-lru-CrOpWwrf.mjs} +0 -0
  438. /package/dist/{schema-cus0dJ81.mjs → schema-Db-y-09L.mjs} +0 -0
  439. /package/dist/{schema-introspection-BsWLmoFp.mjs → schema-introspection-DgWQCpwx.mjs} +0 -0
  440. /package/dist/{schemas-DYvvMd3c.d.mts → schemas-B1NWNASS.d.mts} +0 -0
  441. /package/dist/{schemas-CMyv7l7-.mjs → schemas-BGExwp3j.mjs} +0 -0
  442. /package/dist/{schemas-Dmij0PIc.d.mts → schemas-BO7uOum6.d.mts} +0 -0
  443. /package/dist/{schemas-BGS9RfqV.mjs → schemas-Bfxskx_2.mjs} +0 -0
  444. /package/dist/{schemas-BKKpQC4X2.d.mts → schemas-BtZqovRH.d.mts} +0 -0
  445. /package/dist/{schemas-BAvt2HDy.d.mts → schemas-CQyRBqD6.d.mts} +0 -0
  446. /package/dist/{schemas-D55eXBgl.d.mts → schemas-CR8hSqTy.d.mts} +0 -0
  447. /package/dist/{schemas-CWxf_Yut.mjs → schemas-CqRm0i9a.mjs} +0 -0
  448. /package/dist/{schemas-CiWCNQ9a2.d.mts → schemas-CwbYk_kZ.d.mts} +0 -0
  449. /package/dist/{schemas-B4FyOOJj.d.mts → schemas-miYxK_Z1.d.mts} +0 -0
  450. /package/dist/{semver-D3Y7uMEb.mjs → semver-DlM8znk4.mjs} +0 -0
  451. /package/dist/{server-lifecycle-C-3OgoKi.d.mts → server-lifecycle-Dsq56aqC.d.mts} +0 -0
  452. /package/dist/{server-lifecycle-DV6NMsgH.mjs → server-lifecycle-kmQ5PUDv.mjs} +0 -0
  453. /package/dist/{session-lineage-D4z26OtM.d.mts → session-lineage-B_JW5LpF.d.mts} +0 -0
  454. /package/dist/{shared-schemas-BNCPgGYP.mjs → shared-schemas-DXwyMCwZ.mjs} +0 -0
  455. /package/dist/{src-ftBp6GpR.mjs → src-CCu8TwL6.mjs} +0 -0
  456. /package/dist/{storage-namespace-B1GI4elv.mjs → storage-namespace-BSrv0vXR.mjs} +0 -0
  457. /package/dist/{storage-namespace-definition-V8sc3drq.d.mts → storage-namespace-definition-BvlX0QV_.d.mts} +0 -0
  458. /package/dist/{storage-namespace-definition-4UYuij1r.mjs → storage-namespace-definition-CkMKt7-I.mjs} +0 -0
  459. /package/dist/{storage-namespace-9N9R61pI.d.mts → storage-namespace-dfywhXR3.d.mts} +0 -0
  460. /package/dist/{supports-color-DwW9N6YC.mjs → supports-color-DUugCQsK.mjs} +0 -0
  461. /package/dist/{telemetry-B42EMbZt.mjs → telemetry-Pr3oP2rk.mjs} +0 -0
  462. /package/dist/{timeout-CvONPl0l.mjs → timeout-DWDhddRJ.mjs} +0 -0
  463. /package/dist/{tray-menu-service-Dgedanv-.mjs → tray-menu-service-BBLa-Rcv.mjs} +0 -0
  464. /package/dist/{types-DkFvBdIY.d.mts → types-BrcjaNPZ.d.mts} +0 -0
  465. /package/dist/{types-DVLq657Y.d.mts → types-DHmPneIO.d.mts} +0 -0
  466. /package/dist/{types-Bju4dmAg.d.mts → types-b54n1o57.d.mts} +0 -0
  467. /package/dist/{ui-config-B2L3Xgqo.mjs → ui-config-CyCdlns_.mjs} +0 -0
  468. /package/dist/{variant-ByI-RZua.mjs → variant-krjlTdJt.mjs} +0 -0
  469. /package/dist/{window-registry-Qcnvlhp7.d.mts → window-registry-BDnZLPVx.d.mts} +0 -0
  470. /package/dist/{window-registry-DsWnCc8z.mjs → window-registry-I-imZHV_.mjs} +0 -0
@@ -0,0 +1,267 @@
1
+ import { z } from "zod";
2
+ import { IMakaioBus } from "@makaio/framework/bus";
3
+ import { TransitionActionFactory, TransitionActionInvocation, TransitionEvaluationContext, TransitionEventType, TransitionRuleDefinition, TransitionRuleDefinitionSchema } from "@makaio/framework/contracts";
4
+ import { BaseService } from "@makaio/framework/service-base";
5
+ import { Condition } from "@makaio/framework/rules";
6
+ import { ContributionProcessor } from "@makaio/framework/kernel";
7
+
8
+ //#region services/core/src/workflow-transitions/transition-action-registry.d.ts
9
+ /**
10
+ * Built-in action type identifier for starting a workflow via the bus.
11
+ *
12
+ * Input fields (all optional):
13
+ * - `workflowId` — required workflow ID
14
+ * - `input` — workflow input payload
15
+ * - `inputExpression` — jexl expression resolving workflow input from the transition context
16
+ * - `config` — workflow config overrides
17
+ * - `artifactRef` — explicit artifact binding target
18
+ * - `scope` — execution scope override
19
+ */
20
+ declare const WORKFLOW_START_ACTION_TYPE = "workflow.start";
21
+ /**
22
+ * Registry for executable transition action factories.
23
+ *
24
+ * Manages built-in actions (seeded at construction) and extension-contributed
25
+ * actions. Duplicate action type keys hard-fail registration. Source keys
26
+ * support clean deregistration on extension stop.
27
+ *
28
+ * Unlike rules, actions are executable (factory-based), not static. Each
29
+ * dispatch call creates a fresh handler via the registered factory.
30
+ */
31
+ declare class TransitionActionRegistry {
32
+ /** All factories indexed by action type string. */
33
+ private readonly factories;
34
+ /** Factories indexed by source key for deregistration. */
35
+ private readonly factoriesBySource;
36
+ /**
37
+ * @param bus - Bus instance forwarded to the built-in `workflow.start` factory.
38
+ */
39
+ constructor(bus: IMakaioBus);
40
+ /**
41
+ * Register custom action factories from a source (extension name).
42
+ *
43
+ * Source keys and type keys are checked for collisions before any mutations.
44
+ * Built-in action types (`workflow.start`) may not be overridden.
45
+ * @param sourceKey - Stable source identifier (extension name).
46
+ * @param actions - Map of action type string to factory.
47
+ * @throws If the source or any action type collides with an existing registration.
48
+ */
49
+ register(sourceKey: string, actions: Readonly<Record<string, TransitionActionFactory>>): void;
50
+ /**
51
+ * Deregister all action factories contributed by a source.
52
+ *
53
+ * Built-in actions (`__builtin__`) cannot be deregistered.
54
+ * No-op when the source has no registered factories.
55
+ * @param sourceKey - Source identifier previously passed to {@link register}.
56
+ */
57
+ deregister(sourceKey: string): void;
58
+ /**
59
+ * Resolve and invoke the action handler for the given invocation.
60
+ *
61
+ * Creates a fresh handler via the registered factory, then delegates
62
+ * execution to the handler's `execute` method.
63
+ * @param invocation - Action invocation descriptor from the matched rule.
64
+ * @param context - Evaluation context from the triggering artifact event.
65
+ * @throws If no factory is registered for `invocation.type`.
66
+ */
67
+ dispatch(invocation: TransitionActionInvocation, context: TransitionEvaluationContext): Promise<void>;
68
+ /**
69
+ * Check whether an action type is registered.
70
+ * @param actionType - Action type identifier to check.
71
+ * @returns `true` when the type has a registered factory.
72
+ */
73
+ has(actionType: string): boolean;
74
+ /**
75
+ * List all registered action type strings.
76
+ * @returns Array of registered action type identifiers.
77
+ */
78
+ listTypes(): string[];
79
+ }
80
+ //#endregion
81
+ //#region services/core/src/workflow-transitions/transition-rule-registry.d.ts
82
+ type TransitionRuleDefinitionInput = z.input<typeof TransitionRuleDefinitionSchema>;
83
+ interface SourceSnapshot {
84
+ ruleIds: readonly string[];
85
+ }
86
+ /**
87
+ * A {@link TransitionRuleDefinition} with its optional `when` condition
88
+ * pre-parsed at registration time so the pipeline avoids re-parsing on
89
+ * every incoming artifact event.
90
+ */
91
+ interface PreparedTransitionRule {
92
+ /** The original serializable rule definition. */
93
+ readonly rule: TransitionRuleDefinition;
94
+ /**
95
+ * Pre-parsed condition produced by `ConditionSchema.parse(rule.when)`.
96
+ * `undefined` when the rule has no `when` clause — it always matches.
97
+ */
98
+ readonly condition: Condition | undefined;
99
+ }
100
+ /**
101
+ * Registry for serializable transition rules contributed by workflow bundles
102
+ * and extensions.
103
+ *
104
+ * Rules are stored under a stable source key (bundle ID or extension name) and
105
+ * indexed by event type for fast pipeline evaluation. Duplicate rule IDs
106
+ * hard-fail registration across all sources. Source keys support clean
107
+ * deregistration.
108
+ *
109
+ * Rules are purely static and serializable — no functions.
110
+ */
111
+ declare class TransitionRuleRegistry {
112
+ /** All rules indexed by source key. */
113
+ private readonly rulesBySource;
114
+ /** Index: event type → flat list of prepared rules across all sources. */
115
+ private readonly rulesByEventType;
116
+ /** All registered rule IDs for collision detection. */
117
+ private readonly ruleIdSet;
118
+ /**
119
+ * Register transition rules from a source (bundle or extension).
120
+ *
121
+ * The source key, rule definitions, rule IDs, and conditions are checked
122
+ * before any mutations are applied — registration is atomic: either all rules
123
+ * from the source are added or none are.
124
+ * @param sourceKey - Stable identifier for the contributing source (bundle ID or extension name).
125
+ * @param rules - Rule definitions to register. IDs must not collide with existing registrations.
126
+ * @throws If the source or any rule ID collides, or if any rule definition or condition is invalid.
127
+ */
128
+ register(sourceKey: string, rules: readonly TransitionRuleDefinitionInput[]): void;
129
+ /**
130
+ * Deregister all rules contributed by a source.
131
+ *
132
+ * No-op when the source has no registered rules.
133
+ * @param sourceKey - Source identifier previously passed to {@link register}.
134
+ */
135
+ deregister(sourceKey: string): void;
136
+ /**
137
+ * Return all enabled prepared rules matching the given event type.
138
+ *
139
+ * Returns a shallow copy of the internal bucket to prevent external mutation.
140
+ * Each entry carries the original rule definition alongside its pre-parsed
141
+ * condition so the pipeline avoids re-parsing per event.
142
+ * @param eventType - Artifact event type to query.
143
+ * @returns Enabled prepared rules registered for the event type.
144
+ */
145
+ getRulesForEvent(eventType: TransitionEventType): PreparedTransitionRule[];
146
+ /**
147
+ * Snapshot the current rule IDs registered under a source.
148
+ *
149
+ * Used for diagnostics and deduplication checks.
150
+ * @param sourceKey - Source identifier.
151
+ * @returns Snapshot of registered rule IDs, or `undefined` if the source has no rules.
152
+ */
153
+ snapshotSource(sourceKey: string): SourceSnapshot | undefined;
154
+ }
155
+ //#endregion
156
+ //#region services/core/src/workflow-transitions/transition-pipeline-service.d.ts
157
+ /**
158
+ * Service that watches artifact bus events and fires transition rules.
159
+ *
160
+ * On initialization the service subscribes to the three artifact lifecycle
161
+ * events (`artifact.created`, `artifact.revised`, `artifact.status.changed`).
162
+ * For each incoming event it evaluates the registered rules for that event type
163
+ * using `@makaio/rules`, then dispatches the matching rule's action through the
164
+ * {@link TransitionActionRegistry}.
165
+ *
166
+ * Loop protection: the service maintains an in-memory depth counter keyed by
167
+ * `${kind}:${id}` for each artifact. Each time a `workflow.start` action is
168
+ * dispatched for an artifact the counter is incremented. Incoming events for an
169
+ * artifact whose counter has reached {@link MAX_TRANSITION_DEPTH} are silently
170
+ * dropped. Counters are pruned after {@link DEPTH_ENTRY_TTL_MS} to prevent
171
+ * unbounded growth.
172
+ */
173
+ declare class TransitionPipelineService extends BaseService {
174
+ /** Registry of serializable transition rules. */
175
+ readonly ruleRegistry: TransitionRuleRegistry;
176
+ /** Registry of executable action factories. */
177
+ readonly actionRegistry: TransitionActionRegistry;
178
+ /**
179
+ * In-memory depth tracker keyed by `${kind}:${id}`.
180
+ *
181
+ * Counts how many `workflow.start` actions have been dispatched for each
182
+ * artifact in the current execution chain. Entries expire after
183
+ * {@link DEPTH_ENTRY_TTL_MS}.
184
+ */
185
+ private readonly depthMap;
186
+ /**
187
+ * @param bus - Bus instance used for artifact event subscriptions and workflow.start dispatch.
188
+ */
189
+ constructor(bus: IMakaioBus);
190
+ /**
191
+ * Subscribe to all three artifact lifecycle event types.
192
+ */
193
+ protected onInit(): void;
194
+ /**
195
+ * Evaluate all enabled rules for the event type, then dispatch matching actions.
196
+ * @param eventType - The artifact event type that fired.
197
+ * @param contextBase - Partial evaluation context built from the event payload.
198
+ */
199
+ private handleArtifactEvent;
200
+ /**
201
+ * Resolve a status-change artifact ref into the exact revision that emitted
202
+ * the event before rule evaluation.
203
+ * @param ref - Revisioned artifact reference from the status.changed event.
204
+ * @returns Full artifact revision, or `undefined` when the artifact store cannot provide it.
205
+ */
206
+ private resolveStatusChangedArtifact;
207
+ /**
208
+ * Resolve the previous revision for an artifact.revised event.
209
+ *
210
+ * The original `previous` context value remains the event's artifact ref for
211
+ * compatibility; this helper adds a full `previousArtifact` snapshot when the
212
+ * artifact store can provide it so rules can compare before/after state.
213
+ * @param ref - Revisioned artifact reference from the revised event.
214
+ * @returns Full previous artifact revision, or `undefined` when unavailable.
215
+ */
216
+ private resolvePreviousRevisedArtifact;
217
+ /**
218
+ * Evaluate a single prepared rule condition and dispatch its action if the condition matches.
219
+ *
220
+ * The condition is pre-parsed at registration time, so this method only evaluates it
221
+ * against the current event context — no schema parsing overhead per event.
222
+ *
223
+ * When dispatch succeeds and the action type is `workflow.start`, the in-memory
224
+ * depth counter for the artifact is incremented so subsequent events in the same
225
+ * execution chain are correctly depth-checked.
226
+ * @param entry - The prepared rule (definition + pre-parsed condition) to evaluate.
227
+ * @param eventType - The artifact event type.
228
+ * @param contextBase - Partial evaluation context from the event payload.
229
+ * @param artifactKey - Composite `${kind}:${id}` key for depth tracking.
230
+ * @param incomingDepth - Current loop-protection depth for this artifact.
231
+ */
232
+ private evaluateAndDispatch;
233
+ /**
234
+ * Derive the composite artifact key used for depth tracking.
235
+ * @param artifact - Artifact ref or revision from the event payload.
236
+ * @returns A `${kind}:${id}` string, falling back to `'unknown:unknown'` when
237
+ * the artifact lacks these fields.
238
+ */
239
+ private artifactKey;
240
+ /**
241
+ * Read the current dispatch depth for the given artifact key.
242
+ *
243
+ * Prunes stale entries lazily on each read so the map does not grow
244
+ * unboundedly when artifacts are no longer active.
245
+ * @param key - Composite `${kind}:${id}` key.
246
+ * @returns Current dispatch count, or `0` when absent or expired.
247
+ */
248
+ private readDepth;
249
+ /**
250
+ * Increment the dispatch depth counter for the given artifact key and reset its TTL.
251
+ * @param key - Composite `${kind}:${id}` key.
252
+ */
253
+ private incrementDepth;
254
+ }
255
+ //#endregion
256
+ //#region services/core/src/workflow-transitions/transition-contribution-processor.d.ts
257
+ /**
258
+ * Processes transition rule and action contributions from extensions.
259
+ *
260
+ * During activation: validates namespace prefixes, then registers rules and
261
+ * actions with the {@link TransitionPipelineService}. On stop: deregisters
262
+ * all contributions from that extension.
263
+ * @returns Contribution processor for transition pipeline registration.
264
+ */
265
+ declare function createTransitionContributionProcessor(): ContributionProcessor;
266
+ //#endregion
267
+ export { WORKFLOW_START_ACTION_TYPE as a, TransitionActionRegistry as i, TransitionPipelineService as n, TransitionRuleRegistry as r, createTransitionContributionProcessor as t };
@@ -1,4 +1,4 @@
1
- import { t as AdapterAuthBinding } from "./adapter-binding-Dfk_g-lP.mjs";
1
+ import { t as AdapterAuthBinding } from "./adapter-binding-DQchUtrK.mjs";
2
2
  import { z } from "zod";
3
3
 
4
4
  //#region core/contracts/src/auth/definitions.d.ts
@@ -1,4 +1,4 @@
1
- import { H as ClientDefinition, U as ClientDefinitionInput } from "./hook-responses-Dg8wDvRo.mjs";
1
+ import { H as ClientDefinition, U as ClientDefinitionInput } from "./hook-responses-Dh1PWXqJ.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
- managed: "managed";
21
20
  global: "global";
21
+ managed: "managed";
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
- managed: "managed";
43
42
  global: "global";
43
+ managed: "managed";
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
- managed: "managed";
53
52
  global: "global";
53
+ managed: "managed";
54
54
  }>;
55
55
  version: z.ZodNullable<z.ZodString>;
56
56
  }, z.core.$strip>;
@@ -89,9 +89,9 @@ declare const ClientSchemas: {
89
89
  baseConfigDir: z.ZodOptional<z.ZodString>;
90
90
  projectDir: z.ZodOptional<z.ZodString>;
91
91
  configInheritance: z.ZodOptional<z.ZodEnum<{
92
+ empty: "empty";
92
93
  "auth-only": "auth-only";
93
94
  full: "full";
94
- empty: "empty";
95
95
  }>>;
96
96
  }, z.core.$strip>;
97
97
  response: z.ZodObject<{
@@ -258,8 +258,8 @@ declare const ClientSchemas: {
258
258
  clientRuntimeId: z.ZodString;
259
259
  clientId: z.ZodString;
260
260
  status: z.ZodEnum<{
261
- observed: "observed";
262
261
  started: "started";
262
+ observed: "observed";
263
263
  }>;
264
264
  source: z.ZodObject<{
265
265
  layer: z.ZodEnum<{
@@ -648,8 +648,8 @@ declare const ClientSchemas: {
648
648
  "signed-binary-bucket": "signed-binary-bucket";
649
649
  }>;
650
650
  stage: z.ZodEnum<{
651
- resolving: "resolving";
652
651
  downloading: "downloading";
652
+ resolving: "resolving";
653
653
  verifying: "verifying";
654
654
  extracting: "extracting";
655
655
  installing: "installing";
@@ -688,8 +688,8 @@ declare const ClientSchemas: {
688
688
  reason: z.ZodEnum<{
689
689
  update: "update";
690
690
  install: "install";
691
- uninstall: "uninstall";
692
691
  "set-active": "set-active";
692
+ uninstall: "uninstall";
693
693
  }>;
694
694
  }, z.core.$strip>;
695
695
  resolveBinary: {
@@ -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
- managed: "managed";
702
701
  global: "global";
702
+ managed: "managed";
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
- managed: "managed";
712
711
  global: "global";
712
+ managed: "managed";
713
713
  }>;
714
714
  version: z.ZodNullable<z.ZodString>;
715
715
  }, z.core.$strip>;
@@ -1159,8 +1159,8 @@ type ClientSetActiveResponse = z.infer<typeof ClientSetActiveSchema.response>;
1159
1159
  * - `'activating'` — marking the installed version as active.
1160
1160
  */
1161
1161
  declare const InstallStageSchema: z.ZodEnum<{
1162
- resolving: "resolving";
1163
1162
  downloading: "downloading";
1163
+ resolving: "resolving";
1164
1164
  verifying: "verifying";
1165
1165
  extracting: "extracting";
1166
1166
  installing: "installing";
@@ -1183,8 +1183,8 @@ declare const ClientInstallProgressSchema: z.ZodObject<{
1183
1183
  "signed-binary-bucket": "signed-binary-bucket";
1184
1184
  }>;
1185
1185
  stage: z.ZodEnum<{
1186
- resolving: "resolving";
1187
1186
  downloading: "downloading";
1187
+ resolving: "resolving";
1188
1188
  verifying: "verifying";
1189
1189
  extracting: "extracting";
1190
1190
  installing: "installing";
@@ -1246,8 +1246,8 @@ declare const ClientVersionChangedSchema: z.ZodObject<{
1246
1246
  reason: z.ZodEnum<{
1247
1247
  update: "update";
1248
1248
  install: "install";
1249
- uninstall: "uninstall";
1250
1249
  "set-active": "set-active";
1250
+ uninstall: "uninstall";
1251
1251
  }>;
1252
1252
  }, z.core.$strip>;
1253
1253
  type ClientVersionChanged = z.infer<typeof ClientVersionChangedSchema>;
@@ -1382,8 +1382,8 @@ declare const ClientRuntimeStartedSchema: z.ZodObject<{
1382
1382
  clientRuntimeId: z.ZodString;
1383
1383
  clientId: z.ZodString;
1384
1384
  status: z.ZodEnum<{
1385
- observed: "observed";
1386
1385
  started: "started";
1386
+ observed: "observed";
1387
1387
  }>;
1388
1388
  source: z.ZodObject<{
1389
1389
  layer: z.ZodEnum<{
@@ -1675,9 +1675,9 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
1675
1675
  baseConfigDir: _$zod.ZodOptional<_$zod.ZodString>;
1676
1676
  projectDir: _$zod.ZodOptional<_$zod.ZodString>;
1677
1677
  configInheritance: _$zod.ZodOptional<_$zod.ZodEnum<{
1678
+ empty: "empty";
1678
1679
  "auth-only": "auth-only";
1679
1680
  full: "full";
1680
- empty: "empty";
1681
1681
  }>>;
1682
1682
  }, _$zod_v4_core0.$strip>;
1683
1683
  response: _$zod.ZodObject<{
@@ -1844,8 +1844,8 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
1844
1844
  clientRuntimeId: _$zod.ZodString;
1845
1845
  clientId: _$zod.ZodString;
1846
1846
  status: _$zod.ZodEnum<{
1847
- observed: "observed";
1848
1847
  started: "started";
1848
+ observed: "observed";
1849
1849
  }>;
1850
1850
  source: _$zod.ZodObject<{
1851
1851
  layer: _$zod.ZodEnum<{
@@ -2218,8 +2218,8 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
2218
2218
  "signed-binary-bucket": "signed-binary-bucket";
2219
2219
  }>;
2220
2220
  stage: _$zod.ZodEnum<{
2221
- resolving: "resolving";
2222
2221
  downloading: "downloading";
2222
+ resolving: "resolving";
2223
2223
  verifying: "verifying";
2224
2224
  extracting: "extracting";
2225
2225
  installing: "installing";
@@ -2258,8 +2258,8 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
2258
2258
  reason: _$zod.ZodEnum<{
2259
2259
  update: "update";
2260
2260
  install: "install";
2261
- uninstall: "uninstall";
2262
2261
  "set-active": "set-active";
2262
+ uninstall: "uninstall";
2263
2263
  }>;
2264
2264
  }, _$zod_v4_core0.$strip>;
2265
2265
  resolveBinary: {
@@ -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
- managed: "managed";
2272
2271
  global: "global";
2272
+ managed: "managed";
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
- managed: "managed";
2282
2281
  global: "global";
2282
+ managed: "managed";
2283
2283
  }>;
2284
2284
  version: _$zod.ZodNullable<_$zod.ZodString>;
2285
2285
  }, _$zod_v4_core0.$strip>;
@@ -2315,9 +2315,9 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
2315
2315
  baseConfigDir: _$zod.ZodOptional<_$zod.ZodString>;
2316
2316
  projectDir: _$zod.ZodOptional<_$zod.ZodString>;
2317
2317
  configInheritance: _$zod.ZodOptional<_$zod.ZodEnum<{
2318
+ empty: "empty";
2318
2319
  "auth-only": "auth-only";
2319
2320
  full: "full";
2320
- empty: "empty";
2321
2321
  }>>;
2322
2322
  }, _$zod_v4_core0.$strip>;
2323
2323
  response: _$zod.ZodObject<{
@@ -2484,8 +2484,8 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
2484
2484
  clientRuntimeId: _$zod.ZodString;
2485
2485
  clientId: _$zod.ZodString;
2486
2486
  status: _$zod.ZodEnum<{
2487
- observed: "observed";
2488
2487
  started: "started";
2488
+ observed: "observed";
2489
2489
  }>;
2490
2490
  source: _$zod.ZodObject<{
2491
2491
  layer: _$zod.ZodEnum<{
@@ -2858,8 +2858,8 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
2858
2858
  "signed-binary-bucket": "signed-binary-bucket";
2859
2859
  }>;
2860
2860
  stage: _$zod.ZodEnum<{
2861
- resolving: "resolving";
2862
2861
  downloading: "downloading";
2862
+ resolving: "resolving";
2863
2863
  verifying: "verifying";
2864
2864
  extracting: "extracting";
2865
2865
  installing: "installing";
@@ -2898,8 +2898,8 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
2898
2898
  reason: _$zod.ZodEnum<{
2899
2899
  update: "update";
2900
2900
  install: "install";
2901
- uninstall: "uninstall";
2902
2901
  "set-active": "set-active";
2902
+ uninstall: "uninstall";
2903
2903
  }>;
2904
2904
  }, _$zod_v4_core0.$strip>;
2905
2905
  resolveBinary: {
@@ -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
- managed: "managed";
2912
2911
  global: "global";
2912
+ managed: "managed";
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
- managed: "managed";
2922
2921
  global: "global";
2922
+ managed: "managed";
2923
2923
  }>;
2924
2924
  version: _$zod.ZodNullable<_$zod.ZodString>;
2925
2925
  }, _$zod_v4_core0.$strip>;
@@ -2978,9 +2978,9 @@ declare const SessionConfigEnvSchema: z.ZodRecord<z.ZodString, z.ZodString>;
2978
2978
  * Policy for materializing a session config directory from a base client config.
2979
2979
  */
2980
2980
  declare const SessionConfigInheritanceSchema: z.ZodEnum<{
2981
+ empty: "empty";
2981
2982
  "auth-only": "auth-only";
2982
2983
  full: "full";
2983
- empty: "empty";
2984
2984
  }>;
2985
2985
  type SessionConfigInheritance = z.infer<typeof SessionConfigInheritanceSchema>;
2986
2986
  /**
@@ -3136,9 +3136,9 @@ declare const ClientSessionConfigSchemas: {
3136
3136
  baseConfigDir: z.ZodOptional<z.ZodString>;
3137
3137
  projectDir: z.ZodOptional<z.ZodString>;
3138
3138
  configInheritance: z.ZodOptional<z.ZodEnum<{
3139
+ empty: "empty";
3139
3140
  "auth-only": "auth-only";
3140
3141
  full: "full";
3141
- empty: "empty";
3142
3142
  }>>;
3143
3143
  }, z.core.$strip>;
3144
3144
  response: z.ZodObject<{
@@ -3192,9 +3192,9 @@ declare const SessionConfigSetupRequestSchema: z.ZodObject<{
3192
3192
  win32: "win32";
3193
3193
  }>;
3194
3194
  configInheritance: z.ZodEnum<{
3195
+ empty: "empty";
3195
3196
  "auth-only": "auth-only";
3196
3197
  full: "full";
3197
- empty: "empty";
3198
3198
  }>;
3199
3199
  }, z.core.$strip>;
3200
3200
  type SessionConfigSetupRequest = z.infer<typeof SessionConfigSetupRequestSchema>;