@makaio/framework 1.0.0-dev-1781729807808 → 1.0.0-dev-1781884053376

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 (392) hide show
  1. package/dist/.makaio-build.json +2 -2
  2. package/dist/{account-identity-D-9gunfD.mjs → account-identity-D5TUafYg.mjs} +1 -1
  3. package/dist/adapter-BmdC3QwV.mjs +1 -0
  4. package/dist/adapter-subsystem/index.mjs +1 -1
  5. package/dist/adapters/config/index.d.mts +1 -1
  6. package/dist/adapters/config/index.mjs +1 -1
  7. package/dist/adapters/index.d.mts +2 -2
  8. package/dist/adapters/index.mjs +1 -1
  9. package/dist/adapters/node.d.mts +1 -1
  10. package/dist/adapters/node.mjs +1 -1
  11. package/dist/await-trigger-DwVldnMt.mjs +1 -0
  12. package/dist/bus/index.d.mts +20 -20
  13. package/dist/bus/index.mjs +1 -1
  14. package/dist/canonical-model-BM5WAnQW.mjs +1 -0
  15. package/dist/{client-D24ebgGH.mjs → client-BO-0jTSV.mjs} +1 -1
  16. package/dist/clients/index.mjs +1 -1
  17. package/dist/compression-CXEHx0rS.mjs +1 -0
  18. package/dist/contracts/adapter/index.d.mts +2 -2
  19. package/dist/contracts/adapter/index.mjs +1 -1
  20. package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
  21. package/dist/contracts/artifact/index.d.mts +1 -1
  22. package/dist/contracts/canonical-model/index.d.mts +1 -1
  23. package/dist/contracts/canonical-model/index.mjs +1 -1
  24. package/dist/contracts/client/index.d.mts +2 -2
  25. package/dist/contracts/client/index.mjs +1 -1
  26. package/dist/contracts/common/index.d.mts +1 -1
  27. package/dist/contracts/config/index.d.mts +7 -7
  28. package/dist/contracts/config/index.mjs +1 -1
  29. package/dist/contracts/extension/index.d.mts +3 -3
  30. package/dist/contracts/extension/index.mjs +1 -1
  31. package/dist/contracts/facet/index.d.mts +1 -1
  32. package/dist/contracts/facet/index.mjs +1 -1
  33. package/dist/contracts/harness/index.d.mts +1 -1
  34. package/dist/contracts/harness/index.mjs +1 -1
  35. package/dist/contracts/host/index.d.mts +1 -1
  36. package/dist/contracts/host/index.mjs +1 -1
  37. package/dist/contracts/index.d.mts +202 -9904
  38. package/dist/contracts/index.mjs +1 -1
  39. package/dist/contracts/materialization/index.d.mts +3 -3
  40. package/dist/contracts/materialization/index.mjs +1 -1
  41. package/dist/contracts/model-registry/index.d.mts +1 -1
  42. package/dist/contracts/model-registry/index.mjs +1 -1
  43. package/dist/contracts/native-session-supervisor/index.d.mts +1 -1
  44. package/dist/contracts/native-session-supervisor/index.mjs +1 -1
  45. package/dist/contracts/platform/index.d.mts +1 -1
  46. package/dist/contracts/platform/index.mjs +1 -1
  47. package/dist/contracts/provider/index.d.mts +2 -2
  48. package/dist/contracts/session/index.d.mts +2 -2
  49. package/dist/contracts/session/index.mjs +1 -1
  50. package/dist/contracts/shared/index.d.mts +2 -1
  51. package/dist/contracts/skill/index.d.mts +1 -1
  52. package/dist/contracts/skill/index.mjs +1 -1
  53. package/dist/contracts/telemetry/index.d.mts +1 -1
  54. package/dist/contracts/telemetry/index.mjs +1 -1
  55. package/dist/contracts/timeout/index.d.mts +1 -1
  56. package/dist/contracts/toast/index.mjs +1 -1
  57. package/dist/contracts/variant/index.d.mts +1 -1
  58. package/dist/contracts/variant/index.mjs +1 -1
  59. package/dist/contracts/workflow/index.d.mts +3 -0
  60. package/dist/contracts/workflow/index.mjs +1 -0
  61. package/dist/{definition-CZcVOhXZ.d.mts → definition-D_3U4OLJ.d.mts} +1 -1
  62. package/dist/{detached-extension-handle-BYxNmLfv.mjs → detached-extension-handle-Cx6-0eqg.mjs} +1 -1
  63. package/dist/{extension-CTkoi8MV.mjs → extension-BJHRahFl.mjs} +1 -1
  64. package/dist/{extension-CkU_hqra.mjs → extension-CfL70C5n.mjs} +1 -1
  65. package/dist/{filesystem-service-T8JOIWeP.mjs → filesystem-service-Bmyqo6po.mjs} +1 -1
  66. package/dist/git/index.mjs +1 -1
  67. package/dist/{globby-Bos1vjKj.mjs → globby-D4SANVoq.mjs} +1 -1
  68. package/dist/{handlers-dnpT_hsm.mjs → handlers-BAycjV02.mjs} +1 -1
  69. package/dist/{harness-HEpELa_v.mjs → harness-DkUpbsuY.mjs} +1 -1
  70. package/dist/{index-HiAth5G0.d.mts → index--diIlm1t.d.mts} +42 -42
  71. package/dist/{index-Cy75lJ1O.d.mts → index-BUrNl0QJ.d.mts} +16 -16
  72. package/dist/{index-XcnFGiKL.d.mts → index-BvjLe_w9.d.mts} +8 -8
  73. package/dist/{index-WWYQEH0q.d.mts → index-BwZpSUql.d.mts} +16 -16
  74. package/dist/{index-Dn73XrXA.d.mts → index-CBN898N1.d.mts} +13 -460
  75. package/dist/{index-xeg-bqxO.d.mts → index-CqImyhjX.d.mts} +100 -100
  76. package/dist/{index-CkpGuNLe.d.mts → index-D2WJ0Zpt.d.mts} +10 -10
  77. package/dist/index-D6sjCuQA.d.mts +10036 -0
  78. package/dist/{index-6QvT0ljq.d.mts → index-D9-vOJvZ.d.mts} +1 -1
  79. package/dist/{index-BQ8H7cvY.d.mts → index-D94cDExW2.d.mts} +16 -16
  80. package/dist/{index-CUYDEQvN.d.mts → index-DYcyc2rR.d.mts} +5 -5
  81. package/dist/{index-Dbd0Tgba.d.mts → index-Di84JjS0.d.mts} +1 -1
  82. package/dist/{index-ByRAbcZd.d.mts → index-DiifAKRu.d.mts} +7 -2
  83. package/dist/{index-BuaP2Q0b.d.mts → index-DoWQjCE-.d.mts} +336 -336
  84. package/dist/{index-C2XLjebs.d.mts → index-Mi_UJoUV.d.mts} +8 -8
  85. package/dist/{index-BZuF4I8O.d.mts → index-NkNbYFud.d.mts} +1 -55
  86. package/dist/{index-BFW1X6SW.d.mts → index-SAGZBNB0.d.mts} +363 -363
  87. package/dist/{index-Dpu4e9NK.d.mts → index-UKndP4iV.d.mts} +3 -3
  88. package/dist/{index-cN4DkU5Y2.d.mts → index-q8nLr74m.d.mts} +9 -9
  89. package/dist/{index-DLPjliGd.d.mts → index-wfSedMR9.d.mts} +1 -1
  90. package/dist/{index-DUI1W-zN.d.mts → index-xyXYG5WO.d.mts} +8 -8
  91. package/dist/json-value-DtIkQN7g.d.mts +57 -0
  92. package/dist/kernel/cli/index.d.mts +2 -2
  93. package/dist/kernel/cli/index.mjs +1 -1
  94. package/dist/kernel/cli/register.d.mts +1 -1
  95. package/dist/kernel/cli/register.mjs +1 -1
  96. package/dist/kernel/cli/schemas.mjs +1 -1
  97. package/dist/kernel/extension/index.d.mts +1 -1
  98. package/dist/kernel/extension/index.mjs +1 -1
  99. package/dist/kernel/index.d.mts +5 -5
  100. package/dist/kernel/index.mjs +1 -1
  101. package/dist/kernel/namespace/index.d.mts +1 -1
  102. package/dist/kernel/namespace/index.mjs +1 -1
  103. package/dist/kernel/observability/index.d.mts +1 -1
  104. package/dist/kernel/observability/index.mjs +1 -1
  105. package/dist/kernel/providers/index.d.mts +1 -1
  106. package/dist/kernel/providers/index.mjs +1 -1
  107. package/dist/kernel/window/index.d.mts +1 -1
  108. package/dist/kernel/window/index.mjs +1 -1
  109. package/dist/{lib-B-R6VZW0.mjs → lib-Ba55od_d.mjs} +1 -1
  110. package/dist/{lib-BwYODPdd.mjs → lib-CM_BUxN8.mjs} +1 -1
  111. package/dist/{load-extensions-D-DyzN4j.mjs → load-extensions-Cze1RHcG.mjs} +1 -1
  112. package/dist/{load-extensions-CQqw0Smr.d.mts → load-extensions-DNRIy4zC.d.mts} +1 -1
  113. package/dist/loop-gate-handlers-BLoGCWMQ.mjs +1 -0
  114. package/dist/mcp-http-server/index.mjs +2 -2
  115. package/dist/{namespace-Ba1gUpUu.d.mts → namespace-3yGm4WF9.d.mts} +2 -2
  116. package/dist/{namespace-B091meTj.d.mts → namespace-65uwTpbg.d.mts} +6 -6
  117. package/dist/{namespace-Daq_-170.d.mts → namespace-Bcn5EuKq.d.mts} +5 -5
  118. package/dist/{namespace-B1Bldc48.d.mts → namespace-BeMGmLrp.d.mts} +9 -9
  119. package/dist/{namespace-BxrHvS5c.mjs → namespace-C-piH3w4.mjs} +1 -1
  120. package/dist/{namespace-BQgZChZl.d.mts → namespace-CGGzwaCj.d.mts} +154 -154
  121. package/dist/{namespace-6u1Uf-iw2.d.mts → namespace-D8P8Sxce2.d.mts} +2 -2
  122. package/dist/namespace-DibbhCPP.mjs +1 -0
  123. package/dist/{namespace-CZgcOQTh.d.mts → namespace-d_0I6P7N.d.mts} +26 -26
  124. package/dist/{namespace-CO3DK1v_.d.mts → namespace-qC3OUGCB.d.mts} +42 -42
  125. package/dist/{native-session-supervisor-DbrqcFq9.mjs → native-session-supervisor-7ElwM6Is.mjs} +1 -1
  126. package/dist/node/bus-server/index.d.mts +1 -1
  127. package/dist/node/bus-server/index.mjs +1 -1
  128. package/dist/node/bus-server/server-lifecycle.d.mts +1 -1
  129. package/dist/node/bus-server/server-lifecycle.mjs +1 -1
  130. package/dist/{orchestrator-shared-yFP8e7d5.mjs → orchestrator-shared-Cxk3x8Vs.mjs} +1 -1
  131. package/dist/package-B1AXe-oz.mjs +1 -0
  132. package/dist/{package-fwIv7zzj.d.mts → package-MmQvNJ3u.d.mts} +1 -1
  133. package/dist/package.json +1 -1
  134. package/dist/{profile-r4G32bCH.mjs → profile-BMBXUqqh.mjs} +1 -1
  135. package/dist/{provider-context-Ds6GNYnE.mjs → provider-context-DC_eq7es.mjs} +1 -1
  136. package/dist/provider-context-DjSUpHSM.mjs +1 -0
  137. package/dist/rules/index.d.mts +1 -1
  138. package/dist/rules/index.mjs +1 -1
  139. package/dist/rules/schemas.d.mts +1 -1
  140. package/dist/runtime-bun/index.mjs +1 -1
  141. package/dist/runtime-node/extension-discovery.d.mts +1 -1
  142. package/dist/runtime-node/extension-validation.d.mts +1 -1
  143. package/dist/runtime-node/extension-validation.mjs +1 -1
  144. package/dist/runtime-node/index.d.mts +3 -3
  145. package/dist/runtime-node/index.mjs +2 -2
  146. package/dist/runtime-node/makaio-config.d.mts +1 -1
  147. package/dist/runtime-node/makaio-config.mjs +1 -1
  148. package/dist/runtime-node/workflow-worker/index.d.mts +1 -1
  149. package/dist/runtime-node/workflow-worker/index.mjs +1 -1
  150. package/dist/runtime-node/workflow-worker/worker-entry.mjs +1 -1
  151. package/dist/{schema-DcZifH6p.d.mts → schema-BD0TvgFP.d.mts} +2 -2
  152. package/dist/{schema-atatXwNg.mjs → schema-D6WAI8OL.mjs} +1 -1
  153. package/dist/schemas-CE1gbhxu.mjs +1 -0
  154. package/dist/{schemas-IDGAJ_zv.d.mts → schemas-CscdPqCt.d.mts} +3 -3
  155. package/dist/{schemas-fEoe6H0K.d.mts → schemas-CyL5UEV7.d.mts} +154 -154
  156. package/dist/{schemas-BqscWIoC.d.mts → schemas-D4zaFE2p.d.mts} +6 -6
  157. package/dist/{schemas-BbFAwUpf.d.mts → schemas-DXjyGVpx.d.mts} +5 -5
  158. package/dist/{schemas-CTIaU6Rt2.d.mts → schemas-TQPiRl642.d.mts} +13 -13
  159. package/dist/schemas-yNBjlOKi.mjs +1 -0
  160. package/dist/services/adapter-runtime/index.d.mts +3 -3
  161. package/dist/services/adapter-runtime/index.mjs +1 -1
  162. package/dist/services/adapter-runtime/namespace.d.mts +1 -1
  163. package/dist/services/adapter-runtime/schemas.d.mts +1 -1
  164. package/dist/services/adapter-subsystem/index.d.mts +2 -2
  165. package/dist/services/adapter-subsystem/index.mjs +1 -1
  166. package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
  167. package/dist/services/adapter-subsystem/namespace.mjs +1 -1
  168. package/dist/services/agent-runtime/index.d.mts +2 -2
  169. package/dist/services/agent-runtime/namespace.d.mts +1 -1
  170. package/dist/services/agent-runtime/schemas.d.mts +1 -1
  171. package/dist/services/capability/index.d.mts +1 -1
  172. package/dist/services/capability/index.mjs +1 -1
  173. package/dist/services/codebase/index.d.mts +2 -2
  174. package/dist/services/codebase/namespace.d.mts +1 -1
  175. package/dist/services/codebase/schemas.d.mts +1 -1
  176. package/dist/services/compression/index.d.mts +2 -2
  177. package/dist/services/compression/namespace.d.mts +1 -1
  178. package/dist/services/compression/schemas.d.mts +1 -1
  179. package/dist/services/context-rules/index.d.mts +12 -12
  180. package/dist/services/context-rules/index.mjs +1 -1
  181. package/dist/services/execution-target/index.d.mts +3 -3
  182. package/dist/services/execution-target/index.mjs +1 -1
  183. package/dist/services/execution-target/namespace.d.mts +1 -1
  184. package/dist/services/execution-target/schemas.d.mts +1 -1
  185. package/dist/services/filesystem/index.d.mts +1 -1
  186. package/dist/services/filesystem/index.mjs +1 -1
  187. package/dist/services/filesystem/namespace.d.mts +6 -6
  188. package/dist/services/filesystem/schemas.d.mts +3 -3
  189. package/dist/services/git/namespace.mjs +1 -1
  190. package/dist/services/git/schemas.mjs +1 -1
  191. package/dist/services/harness/index.mjs +1 -1
  192. package/dist/services/index.d.mts +141 -141
  193. package/dist/services/index.mjs +1 -1
  194. package/dist/services/log-import/browser.d.mts +2 -2
  195. package/dist/services/log-import/index.d.mts +2 -2
  196. package/dist/services/log-import/log-import.d.mts +1 -1
  197. package/dist/services/log-import/log-import.mjs +1 -1
  198. package/dist/services/log-import/namespace.d.mts +2 -2
  199. package/dist/services/log-import/namespace.mjs +1 -1
  200. package/dist/services/log-import/schemas.d.mts +1 -1
  201. package/dist/services/log-import/schemas.mjs +1 -1
  202. package/dist/services/model-registry/index.d.mts +1 -1
  203. package/dist/services/model-registry/index.mjs +1 -1
  204. package/dist/services/preferences/index.d.mts +2 -2
  205. package/dist/services/preferences/schemas.d.mts +1 -1
  206. package/dist/services/preferences/storage-namespace.d.mts +2 -2
  207. package/dist/services/provider-context/index.d.mts +1 -1
  208. package/dist/services/provider-context/index.mjs +1 -1
  209. package/dist/services/provider-runtime/index.mjs +1 -1
  210. package/dist/services/session/handlers/index.d.mts +1 -1
  211. package/dist/services/session/handlers/index.mjs +1 -1
  212. package/dist/services/session/index.d.mts +9 -9
  213. package/dist/services/session/index.mjs +1 -1
  214. package/dist/services/session/messages/namespace.d.mts +1 -1
  215. package/dist/services/session/messages/namespace.mjs +1 -1
  216. package/dist/services/session/orchestrator-testing/index.d.mts +1 -1
  217. package/dist/services/session/orchestrator-testing/index.mjs +1 -1
  218. package/dist/services/session/session-events/namespace.d.mts +1 -1
  219. package/dist/services/session/session-events/namespace.mjs +1 -1
  220. package/dist/services/session/storage/namespace.d.mts +1 -1
  221. package/dist/services/session/storage/schema.d.mts +1 -1
  222. package/dist/services/session/testing/index.mjs +1 -1
  223. package/dist/services/session/testing/orchestrator-shared.d.mts +1 -1
  224. package/dist/services/session/testing/orchestrator-shared.mjs +1 -1
  225. package/dist/services/session/turns/namespace.d.mts +1 -1
  226. package/dist/services/session/turns/namespace.mjs +1 -1
  227. package/dist/services/session-editor/index.d.mts +1 -1
  228. package/dist/services/session-editor/index.mjs +1 -1
  229. package/dist/services/settings/index.d.mts +3 -3
  230. package/dist/services/settings/index.mjs +1 -1
  231. package/dist/services/settings/namespace.d.mts +10 -10
  232. package/dist/services/settings/namespace.mjs +1 -1
  233. package/dist/services/settings/storage/clients-namespace.d.mts +1 -1
  234. package/dist/services/settings/storage/clients-namespace.mjs +1 -1
  235. package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
  236. package/dist/services/settings/storage/index.d.mts +3 -3
  237. package/dist/services/settings/storage/index.mjs +1 -1
  238. package/dist/services/settings/storage/providers-namespace.d.mts +1 -1
  239. package/dist/services/settings/storage/providers-namespace.mjs +1 -1
  240. package/dist/services/subagent/index.d.mts +1 -1
  241. package/dist/services/subagent/index.mjs +1 -1
  242. package/dist/services/subagent-template/index.d.mts +2 -2
  243. package/dist/services/subagent-template/namespace.d.mts +1 -1
  244. package/dist/services/subagent-template/schemas.d.mts +1 -1
  245. package/dist/services/tool-approval/index.d.mts +1 -1
  246. package/dist/services/tool-approval/index.mjs +1 -1
  247. package/dist/services/tools/index.d.mts +1 -1
  248. package/dist/services/tools/index.mjs +1 -1
  249. package/dist/services/tray-menu/index.d.mts +3 -3
  250. package/dist/services/tray-menu/index.mjs +1 -1
  251. package/dist/services/tray-menu/namespace.d.mts +1 -1
  252. package/dist/services/tray-menu/schemas.d.mts +1 -1
  253. package/dist/services/turn/index.d.mts +1 -1
  254. package/dist/services/turn/namespace.d.mts +1 -1
  255. package/dist/{session-R-wciAdJ.mjs → session-0nWT4st6.mjs} +1 -1
  256. package/dist/{session-DApMcL_0.mjs → session-DLTZOum3.mjs} +1 -1
  257. package/dist/{session-lineage-D_8W1MI0.d.mts → session-lineage-5-wRBzuC.d.mts} +1 -1
  258. package/dist/{skill-B_VlGon5.mjs → skill-N-ttlp1i.mjs} +1 -1
  259. package/dist/{src-6n-8M8EU.mjs → src-Ck2sbaDa.mjs} +1 -1
  260. package/dist/storage/drizzle/client.d.mts +1 -1
  261. package/dist/storage/drizzle/client.mjs +1 -1
  262. package/dist/storage/drizzle/index.d.mts +1 -1
  263. package/dist/storage/drizzle/index.mjs +1 -1
  264. package/dist/storage/handlers/drizzle/index.d.mts +1 -1
  265. package/dist/storage/handlers/drizzle/index.mjs +1 -1
  266. package/dist/storage/handlers/index.d.mts +1 -1
  267. package/dist/storage/handlers/index.mjs +1 -1
  268. package/dist/{tool-approval-service-DhAqQqev.mjs → tool-approval-service-DEQiipxj.mjs} +1 -1
  269. package/dist/{tools-DeZIVtxe.mjs → tools-DFOsOboy.mjs} +1 -1
  270. package/dist/transition-CCflZ6JS.d.mts +454 -0
  271. package/dist/{types-CCsvoUTA.d.mts → types-BXUm60GF.d.mts} +258 -257
  272. package/dist/{types-BB8iIAjZ.d.mts → types-InWSdi-V.d.mts} +1 -1
  273. package/dist/ui-kernel/index.d.mts +1 -1
  274. package/dist/ui-kernel/pages/schemas.d.mts +1 -1
  275. package/dist/{version-SYP_DX4M.mjs → version-DoV_pSzT.mjs} +1 -1
  276. package/dist/workflow-BCKOJ4UC.mjs +1 -0
  277. package/dist/workflow-engine/index.d.mts +78 -72
  278. package/dist/workflow-engine/index.mjs +1 -1
  279. package/dist/workflow-engine/package.d.mts +1 -1
  280. package/dist/workflow-engine/package.mjs +1 -1
  281. package/dist/workflow-engine/workflow-orchestrator.d.mts +3 -1
  282. package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
  283. package/dist/{workflow-worker-DMFhz1q_.mjs → workflow-worker-BIpYi6o7.mjs} +1 -1
  284. package/package.json +5 -1
  285. package/dist/adapter-Cxcqmp04.mjs +0 -1
  286. package/dist/await-trigger-Cjfj0yp_.mjs +0 -1
  287. package/dist/canonical-model-C-jhofjd.mjs +0 -1
  288. package/dist/compression-BPOKUc6y.mjs +0 -1
  289. package/dist/namespace-CH_NWUKW.mjs +0 -1
  290. package/dist/package-DP8lk0-a.mjs +0 -1
  291. package/dist/primitive-runtime-Dw6OC8w5.mjs +0 -1
  292. package/dist/schemas-dNCdjOLB.mjs +0 -1
  293. /package/dist/{ajv-Cx19PP7Q.mjs → ajv-B5dPIck0.mjs} +0 -0
  294. /package/dist/{base-orchestrator-BRq4MXa7.d.mts → base-orchestrator-Cw0vpNgB.d.mts} +0 -0
  295. /package/dist/{capability-service-CHl8rrwb.mjs → capability-service-XlymTzz1.mjs} +0 -0
  296. /package/dist/{cleanEnvForAdapter-D32WnVuy.mjs → cleanEnvForAdapter-BooAgM2R.mjs} +0 -0
  297. /package/dist/{client-D2ZftNb6.d.mts → client-CebV_fZc.d.mts} +0 -0
  298. /package/dist/{clients-namespace-CeAB0t06.d.mts → clients-namespace-Bt_VTkEU.d.mts} +0 -0
  299. /package/dist/{config-namespace-DW5KHKPW.mjs → config-namespace-CY9leBnE.mjs} +0 -0
  300. /package/dist/{config-namespace-DloU-hNB.d.mts → config-namespace-DqdFE6zk.d.mts} +0 -0
  301. /package/dist/{create-static-mount-Bi0VpYS8.mjs → create-static-mount-DkK28kKW.mjs} +0 -0
  302. /package/dist/{cross-spawn-C58yEvsS.mjs → cross-spawn-CDXy3BjE.mjs} +0 -0
  303. /package/dist/{cursor-storage-CpuT5POU.mjs → cursor-storage-luQAg7E_.mjs} +0 -0
  304. /package/dist/{definition-GOb_oOmb.d.mts → definition-Cllhr9mi.d.mts} +0 -0
  305. /package/dist/{definition-BdxbXbrq.d.mts → definition-CuJvtYeG.d.mts} +0 -0
  306. /package/dist/{descriptor-to-package-D-FNxohm.mjs → descriptor-to-package-DdpjpT7n.mjs} +0 -0
  307. /package/dist/{drizzle-D7dkDEB5.mjs → drizzle-DVTAl7Us.mjs} +0 -0
  308. /package/dist/{esm-CP2zvvlx.mjs → esm-CQG9Pc7n.mjs} +0 -0
  309. /package/dist/{event-DaXakaHo.mjs → event-DguYjV6D.mjs} +0 -0
  310. /package/dist/{execution-target-Da6Vjvba.mjs → execution-target-BR8bLkCR.mjs} +0 -0
  311. /package/dist/{extension-discovery-Bv5FDtrM.d.mts → extension-discovery-CIZn5bkq.d.mts} +0 -0
  312. /package/dist/{extension-namespace-O3sKdnY9.mjs → extension-namespace-v3K0qVry.mjs} +0 -0
  313. /package/dist/{facet-Q_vgXb23.mjs → facet-BM4y4aQP.mjs} +0 -0
  314. /package/dist/{filesystem-service-89fN-2Dd.d.mts → filesystem-service-Cwp0sWNc.d.mts} +0 -0
  315. /package/dist/{handler-BIA3ld4C.mjs → handler-2bPhRn0u.mjs} +0 -0
  316. /package/dist/{host-DFqmG2qO.mjs → host-vY07gek-.mjs} +0 -0
  317. /package/dist/{identity-CA5MzB19.mjs → identity-BarL3JYI.mjs} +0 -0
  318. /package/dist/{index-BVhnqzDC2.d.mts → index-B92mToDo2.d.mts} +0 -0
  319. /package/dist/{index-cFuQpzIm.d.mts → index-BjoOSg95.d.mts} +0 -0
  320. /package/dist/{index-BeNVLvtk2.d.mts → index-BvLXySoB2.d.mts} +0 -0
  321. /package/dist/{index-DJSffYTW2.d.mts → index-C23g_M_J2.d.mts} +0 -0
  322. /package/dist/{index-kOSSuOcK.d.mts → index-C4nStEdA.d.mts} +0 -0
  323. /package/dist/{index-DHHKwLww.d.mts → index-COI1tjAf.d.mts} +0 -0
  324. /package/dist/{index-orAkFukT.d.mts → index-CpKikwK4.d.mts} +0 -0
  325. /package/dist/{index-DNmENr9M.d.mts → index-CqCe7Phc.d.mts} +0 -0
  326. /package/dist/{index-CkPIPbx9.d.mts → index-Cr9lh21j.d.mts} +0 -0
  327. /package/dist/{index-CBTp2XuF.d.mts → index-CuHqL95P.d.mts} +0 -0
  328. /package/dist/{index-CfpfkKih.d.mts → index-D3ahzHwb.d.mts} +0 -0
  329. /package/dist/{index-BE-yMFTz.d.mts → index-D7Hkmrr3.d.mts} +0 -0
  330. /package/dist/{index-DWqSqcpW.d.mts → index-DOOrKin9.d.mts} +0 -0
  331. /package/dist/{index-CYZqADXY2.d.mts → index-DUD7wikz2.d.mts} +0 -0
  332. /package/dist/{index-BUilJdHr.d.mts → index-Dfi8Rorw.d.mts} +0 -0
  333. /package/dist/{index-BplsE3qw.d.mts → index-DtwGhFFQ.d.mts} +0 -0
  334. /package/dist/{index-DVgKfgh1.d.mts → index-OGIC4puQ.d.mts} +0 -0
  335. /package/dist/{index-D0RWuwl5.d.mts → index-Y8rMeYYX.d.mts} +0 -0
  336. /package/dist/{index-BtL_9HBk.d.mts → index-gAFwNiJT.d.mts} +0 -0
  337. /package/dist/{index-DdCyeZ59.d.mts → index-wq7XeqyG.d.mts} +0 -0
  338. /package/dist/{jsonl-transport-Bb8ltqOe.mjs → jsonl-transport-CGPgD8iU.mjs} +0 -0
  339. /package/dist/{lib-BmcGxHXH.mjs → lib-ZKtnbCqH.mjs} +0 -0
  340. /package/dist/{materialization-DsPIGQP1.mjs → materialization-DBXjSiBn.mjs} +0 -0
  341. /package/dist/{model-registry-DQDclqdw.mjs → model-registry-C2VXobZj.mjs} +0 -0
  342. /package/dist/{model-registry-DLeMw3l8.mjs → model-registry-rYICIwyR.mjs} +0 -0
  343. /package/dist/{namespace-q5dD3acO.d.mts → namespace-B3ol3pc-.d.mts} +0 -0
  344. /package/dist/{namespace-DrpHLJAy.mjs → namespace-BO3tODGC.mjs} +0 -0
  345. /package/dist/{namespace-uGUGfpGQ.mjs → namespace-BdO4e1Fm.mjs} +0 -0
  346. /package/dist/{namespace-2G7A4Sza.d.mts → namespace-BsYKEMd8.d.mts} +0 -0
  347. /package/dist/{namespace-DMhz3yvr.d.mts → namespace-CQ8uza7o.d.mts} +0 -0
  348. /package/dist/{namespace-zWB-ULrX.mjs → namespace-CVMZVqB5.mjs} +0 -0
  349. /package/dist/{namespace-nQS4XwnT.d.mts → namespace-D2s-4pyg.d.mts} +0 -0
  350. /package/dist/{namespace-FJsnoEQy.mjs → namespace-DBHwyhME.mjs} +0 -0
  351. /package/dist/{namespace-CN-Llu7H.mjs → namespace-DYSFDC2G.mjs} +0 -0
  352. /package/dist/{namespace-DcUwOJ4f.d.mts → namespace-Dk4OslmY.d.mts} +0 -0
  353. /package/dist/{namespace-DKnJL0Ja.d.mts → namespace-LUNf8zo5.d.mts} +0 -0
  354. /package/dist/{namespace-UUw-S7ia.mjs → namespace-wke7juzy.mjs} +0 -0
  355. /package/dist/{orchestrator-shared-CbS4ueeq.d.mts → orchestrator-shared-ChOdIgh6.d.mts} +0 -0
  356. /package/dist/{out-BUHr98Xe.mjs → out-BoEZjBNz.mjs} +0 -0
  357. /package/dist/{package-YQeRE8bV.mjs → package-CF_Zm2v4.mjs} +0 -0
  358. /package/dist/{platform-CsO-MRJP.mjs → platform-DnbSvm2u.mjs} +0 -0
  359. /package/dist/{providers-FEZT2bQG.mjs → providers-Bd7BOZs0.mjs} +0 -0
  360. /package/dist/{providers-namespace-B4INLPUc.d.mts → providers-namespace-5GoTlHXz.d.mts} +0 -0
  361. /package/dist/{quick-lru-C7AXdpbU.mjs → quick-lru-6e7I1Bgf.mjs} +0 -0
  362. /package/dist/{registry-CwjZvH2s.mjs → registry-U_3aYSin.mjs} +0 -0
  363. /package/dist/{schema-Ba64XQjo.mjs → schema-DHlTAy0N.mjs} +0 -0
  364. /package/dist/{schema-introspection-D5FaI5B_.mjs → schema-introspection-B7xODt4I.mjs} +0 -0
  365. /package/dist/{schemas-9QC3nvYP.mjs → schemas-ArqQTC0Q.mjs} +0 -0
  366. /package/dist/{schemas-DznsZ0bq.d.mts → schemas-B6tEKf9T.d.mts} +0 -0
  367. /package/dist/{schemas-CRS7tkFP.d.mts → schemas-BemsLc_V.d.mts} +0 -0
  368. /package/dist/{schemas-5kegIs9D.mjs → schemas-CPI00yvh.mjs} +0 -0
  369. /package/dist/{schemas-9Ifo5zSf.d.mts → schemas-DKncXGnb.d.mts} +0 -0
  370. /package/dist/{schemas-DZfBym73.d.mts → schemas-DWfo0wp4.d.mts} +0 -0
  371. /package/dist/{schemas-BxI5Yq8d.d.mts → schemas-DmGRSeIq.d.mts} +0 -0
  372. /package/dist/{schemas-BSAKbVyd.d.mts → schemas-KlH1hB7u.d.mts} +0 -0
  373. /package/dist/{schemas-DAYPhB5K.mjs → schemas-XeIBqwvE.mjs} +0 -0
  374. /package/dist/{semver-ClOD8k8c.mjs → semver-CIhHqMkw.mjs} +0 -0
  375. /package/dist/{server-lifecycle-CFQaPTf7.mjs → server-lifecycle-C5Z5PSMD.mjs} +0 -0
  376. /package/dist/{server-lifecycle-5iHxcgBO.d.mts → server-lifecycle-_AA6EfzL.d.mts} +0 -0
  377. /package/dist/{shared-schemas-jG3EtHZT.mjs → shared-schemas-BEVG96xW.mjs} +0 -0
  378. /package/dist/{src-CRDOZl7K.mjs → src-_VODAJnf.mjs} +0 -0
  379. /package/dist/{storage-namespace-C1JVmZF1.mjs → storage-namespace-D5q9CrBp.mjs} +0 -0
  380. /package/dist/{storage-namespace-gey7EUhM.d.mts → storage-namespace-Di1A3DMm.d.mts} +0 -0
  381. /package/dist/{storage-namespace-definition-BPYSLTfN.d.mts → storage-namespace-definition-BffdI5Bz.d.mts} +0 -0
  382. /package/dist/{storage-namespace-definition-Df8S3E3r.mjs → storage-namespace-definition-CzXPW45M.mjs} +0 -0
  383. /package/dist/{supports-color-AnssSSH9.mjs → supports-color-DcXkvGDF.mjs} +0 -0
  384. /package/dist/{telemetry-DdbvlZ8s.mjs → telemetry-Cvi4rxiE.mjs} +0 -0
  385. /package/dist/{tray-menu-service-am356993.mjs → tray-menu-service-B2AxiQqL.mjs} +0 -0
  386. /package/dist/{types-DhlQpVEb.d.mts → types-BMS6yfLS.d.mts} +0 -0
  387. /package/dist/{types-xLd-e0wf.d.mts → types-Bo78h9e3.d.mts} +0 -0
  388. /package/dist/{types-D-GeeSdd.d.mts → types-CPmOg4X7.d.mts} +0 -0
  389. /package/dist/{types-Bj7cOrBQ.d.mts → types-DCvp_swt.d.mts} +0 -0
  390. /package/dist/{variant-BdNN5edM.mjs → variant-5huHjUTm.mjs} +0 -0
  391. /package/dist/{window-registry-LRjWPwr4.mjs → window-registry-PkrFIwX2.mjs} +0 -0
  392. /package/dist/{window-registry-CA6AC8n7.d.mts → window-registry-ofIUQnfo.d.mts} +0 -0
@@ -0,0 +1,454 @@
1
+ import { mt as ArtifactRevision$1 } from "./index--diIlm1t.mjs";
2
+ import { i as JsonValue$1 } from "./json-value-DtIkQN7g.mjs";
3
+ import { z } from "zod";
4
+ import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
5
+
6
+ //#region core/contracts/src/workflow/blocks.d.ts
7
+ /**
8
+ * JSON Schema document used for `outputSchema` fields on step block run mappings.
9
+ *
10
+ * A JSON Schema document is a JSON object (`Record<string, JsonValue>`). Using
11
+ * the inferred type from {@link JsonSchemaRecordSchema} keeps this type consistent
12
+ * with the schema validator used in persisted workflow node definitions.
13
+ */
14
+ type JsonSchemaRecord = Record<string, JsonValue$1>;
15
+ /**
16
+ * Step block run mapping that compiles into a `station` primitive node.
17
+ *
18
+ * A station node is an atomic work unit executed by an AI agent or registered
19
+ * runtime handler. The `prompt` is a template evaluated against the builder
20
+ * form values; the optional `role` selects the executor role.
21
+ */
22
+ interface StationNodeBlockRun {
23
+ /** Run mapping discriminant. */
24
+ readonly type: 'station';
25
+ /**
26
+ * Task prompt template compiled into the station node.
27
+ * Supports `{{ config.<field> }}` and `{{ input.<field> }}` interpolation.
28
+ */
29
+ readonly prompt: string;
30
+ /**
31
+ * Named role reference forwarded to the compiled station node.
32
+ * Resolved via the bus `resolveRole` RPC before execution.
33
+ */
34
+ readonly role?: string;
35
+ /**
36
+ * JSON Schema for the expected station output.
37
+ * Forwarded verbatim to the compiled station node's `outputSchema` field.
38
+ */
39
+ readonly outputSchema?: JsonSchemaRecord;
40
+ /**
41
+ * Positive timeout in milliseconds forwarded to the compiled station node.
42
+ * Defaults to 300 000 ms at execution time when omitted.
43
+ */
44
+ readonly timeoutMs?: number;
45
+ }
46
+ /**
47
+ * Step block run mapping that compiles into a `delegate-agent` primitive node.
48
+ *
49
+ * The `agentId` references a registered agent definition. The block builder
50
+ * resolves `inputExpression` against the configured form values when compiling
51
+ * the node.
52
+ */
53
+ interface DelegateAgentNodeBlockRun {
54
+ /** Run mapping discriminant. */
55
+ readonly type: 'delegate-agent';
56
+ /**
57
+ * Identifier of the registered agent definition to invoke.
58
+ */
59
+ readonly agentId: string;
60
+ /**
61
+ * jexl expression template resolving to the agent input payload.
62
+ * Supports `{{ config.<field> }}` and `{{ input.<field> }}` interpolation
63
+ * that the builder resolves when compiling into a concrete node.
64
+ */
65
+ readonly inputExpression?: string;
66
+ /**
67
+ * JSON Schema for the expected agent output.
68
+ * Forwarded verbatim to the compiled node's `outputSchema` field.
69
+ */
70
+ readonly outputSchema?: JsonSchemaRecord;
71
+ }
72
+ /**
73
+ * Step block run mapping that compiles into a `delegate-role` primitive node.
74
+ *
75
+ * The `role` is a product-resolved named executor. The `prompt` template is
76
+ * evaluated against the builder form values when compiling the node.
77
+ */
78
+ interface DelegateRoleNodeBlockRun {
79
+ /** Run mapping discriminant. */
80
+ readonly type: 'delegate-role';
81
+ /**
82
+ * Named role reference resolved via the bus `resolveRole` RPC at execution time.
83
+ */
84
+ readonly role: string;
85
+ /**
86
+ * Task prompt template forwarded to the compiled node.
87
+ * Supports `{{ config.<field> }}` and `{{ input.<field> }}` interpolation.
88
+ */
89
+ readonly prompt: string;
90
+ /**
91
+ * JSON Schema for the expected delegation output.
92
+ * Forwarded verbatim to the compiled node's `outputSchema` field.
93
+ */
94
+ readonly outputSchema?: JsonSchemaRecord;
95
+ /**
96
+ * Positive timeout in milliseconds forwarded to the compiled node.
97
+ * Defaults to 300 000 ms at execution time when omitted.
98
+ */
99
+ readonly timeoutMs?: number;
100
+ }
101
+ /**
102
+ * Discriminated union of all supported workflow step block run mappings.
103
+ *
104
+ * Each variant maps a declared step block to a concrete primitive node type.
105
+ * The builder compiles the selected variant into the workflow definition as the
106
+ * corresponding {@link WorkflowNode} subtype when the block is placed in the canvas.
107
+ *
108
+ * Extend this union when new primitive node types require builder support.
109
+ */
110
+ type WorkflowStepBlockRun = StationNodeBlockRun | DelegateAgentNodeBlockRun | DelegateRoleNodeBlockRun;
111
+ /**
112
+ * Metadata shared by all workflow blocks.
113
+ */
114
+ interface WorkflowBlockMetadata {
115
+ /** Stable identifier, namespaced by extension (e.g., 'coderabbit.review-posted'). */
116
+ name: string;
117
+ /** Human-readable label for the builder UI. */
118
+ label: string;
119
+ /** Short description for tooltips and catalog. */
120
+ description: string;
121
+ /** Grouping tags for the builder palette. Uncategorized blocks appear in "Other". */
122
+ categories?: string[];
123
+ }
124
+ /**
125
+ * A trigger block declaration — determines WHEN a workflow starts.
126
+ * @typeParam TConfig - Zod shape for the builder configuration form.
127
+ * @typeParam TOutput - Zod type for the payload passed into the workflow as input.
128
+ */
129
+ interface WorkflowTriggerBlock<TConfig extends z.ZodRawShape = z.ZodRawShape, TOutput extends z.ZodType = z.ZodType> {
130
+ /** Shared metadata used in the builder palette and catalog. */
131
+ metadata: WorkflowBlockMetadata;
132
+ /** Drives the configuration form in the builder UI. */
133
+ configSchema: z.ZodObject<TConfig>;
134
+ /** The payload shape passed into the workflow when this trigger fires. */
135
+ outputSchema: TOutput;
136
+ }
137
+ /**
138
+ * A step block declaration — determines WHAT happens inside a workflow.
139
+ *
140
+ * The `runs` field specifies which primitive node type this block compiles to
141
+ * when placed in the workflow canvas. The builder reads `runs` to construct a
142
+ * concrete {@link WorkflowNode} (station, delegate-agent, or delegate-role) for
143
+ * the persisted workflow definition.
144
+ * @typeParam TConfig - Zod shape for the builder configuration form.
145
+ * @typeParam TInput - Zod type for what this step expects from upstream.
146
+ * @typeParam TOutput - Zod type for what downstream steps can reference.
147
+ */
148
+ interface WorkflowStepBlock<TConfig extends z.ZodRawShape = z.ZodRawShape, TInput extends z.ZodType = z.ZodType, TOutput extends z.ZodType = z.ZodType> {
149
+ /** Shared metadata used in the builder palette and catalog. */
150
+ metadata: WorkflowBlockMetadata;
151
+ /** Drives the configuration form in the builder UI. */
152
+ configSchema: z.ZodObject<TConfig>;
153
+ /** What this step expects from upstream (expressions/config). */
154
+ inputSchema: TInput;
155
+ /** What downstream steps can reference via steps.<id>.result. */
156
+ outputSchema: TOutput;
157
+ /**
158
+ * Primitive node compilation target for this step block.
159
+ *
160
+ * The builder reads this field and constructs the corresponding primitive
161
+ * node ({@link WorkflowStationNode}, {@link WorkflowDelegateAgentNode}, or
162
+ * {@link WorkflowDelegateRoleNode}) when the block is placed on the canvas.
163
+ */
164
+ runs: WorkflowStepBlockRun;
165
+ }
166
+ /**
167
+ * Collection of workflow blocks contributed by an extension.
168
+ */
169
+ interface WorkflowBlockCollection$1 {
170
+ /** Trigger block declarations — each determines WHEN a workflow starts. */
171
+ readonly triggers?: readonly WorkflowTriggerBlock[];
172
+ /** Step block declarations — each determines WHAT happens inside a workflow. */
173
+ readonly steps?: readonly WorkflowStepBlock[];
174
+ }
175
+ /**
176
+ * Serialized trigger block as stored in the registry and served via bus.
177
+ *
178
+ * Schema fields are stored as JSON Schema objects for transport and builder
179
+ * catalog rendering.
180
+ */
181
+ interface RegisteredTriggerBlock$1 {
182
+ /** Trigger metadata combined with the owning extension name. */
183
+ metadata: WorkflowBlockMetadata & {
184
+ extensionName: string;
185
+ };
186
+ /** JSON Schema representation of the builder configuration form. */
187
+ configSchema: Record<string, unknown>;
188
+ /** JSON Schema representation of the trigger output payload. */
189
+ outputSchema: Record<string, unknown>;
190
+ }
191
+ /**
192
+ * Serialized step block as stored in the registry and served via bus.
193
+ *
194
+ * Schema fields are stored as JSON Schema objects for transport and builder
195
+ * catalog rendering. The `runs` field is preserved verbatim from the block
196
+ * declaration so the builder can construct the target primitive node directly.
197
+ */
198
+ interface RegisteredStepBlock$1 {
199
+ /** Step metadata combined with the owning extension name. */
200
+ metadata: WorkflowBlockMetadata & {
201
+ extensionName: string;
202
+ };
203
+ /** JSON Schema representation of the builder configuration form. */
204
+ configSchema: Record<string, unknown>;
205
+ /** JSON Schema representation of the expected upstream input. */
206
+ inputSchema: Record<string, unknown>;
207
+ /** JSON Schema representation of what downstream steps can reference. */
208
+ outputSchema: Record<string, unknown>;
209
+ /**
210
+ * Primitive node compilation target preserved verbatim from the block declaration.
211
+ * The builder uses this to construct the appropriate primitive node when
212
+ * placing the block on the canvas.
213
+ */
214
+ runs: WorkflowStepBlockRun;
215
+ }
216
+ //#endregion
217
+ //#region core/contracts/src/workflow/transition.d.ts
218
+ /**
219
+ * The set of artifact bus events that can trigger a transition rule.
220
+ *
221
+ * - `artifact.created` — fires when a new artifact is created
222
+ * - `artifact.revised` — fires when an existing artifact receives a new revision
223
+ * - `artifact.status.changed` — fires when a tracked status field changes
224
+ */
225
+ declare const TransitionEventTypeSchema: z.ZodEnum<{
226
+ "artifact.created": "artifact.created";
227
+ "artifact.revised": "artifact.revised";
228
+ "artifact.status.changed": "artifact.status.changed";
229
+ }>;
230
+ type TransitionEventType$1 = z.infer<typeof TransitionEventTypeSchema>;
231
+ /**
232
+ * Serializable condition evaluated against an artifact event payload.
233
+ *
234
+ * Stored as an opaque JSON record in the contracts layer. The pipeline
235
+ * service interprets this using `@makaio/rules` at evaluation time,
236
+ * supporting field comparisons, `$and`/`$or`/`$not` combinators, and
237
+ * `$expr` jexl expression strings.
238
+ *
239
+ * Evaluation context shape:
240
+ * - `artifact` — the `ArtifactRevision` involved in the event
241
+ * - `previous` — the previous `ArtifactRef` for `artifact.revised` events
242
+ * - `previousArtifact` — the resolved previous `ArtifactRevision` for
243
+ * `artifact.revised` events when the artifact store can provide it
244
+ * - `path` — the status path for `artifact.status.changed` events
245
+ * - `current` — the new status value for `artifact.status.changed` events
246
+ */
247
+ declare const TransitionConditionSchema: z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>;
248
+ type TransitionCondition = z.infer<typeof TransitionConditionSchema>;
249
+ /**
250
+ * Invocation descriptor for the action to execute when a transition rule fires.
251
+ *
252
+ * `type` selects the registered action handler; `input` supplies the
253
+ * action-specific payload; `executionHints` threads optional infrastructure
254
+ * hints to the execution host.
255
+ *
256
+ * Built-in action type:
257
+ * - `'workflow.start'` — start a workflow execution via the bus
258
+ */
259
+ declare const TransitionActionInvocationSchema: z.ZodObject<{
260
+ type: z.ZodString;
261
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
262
+ executionHints: z.ZodOptional<z.ZodObject<{
263
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
264
+ kind: z.ZodLiteral<"path">;
265
+ path: z.ZodString;
266
+ }, z.core.$strict>, z.ZodObject<{
267
+ kind: z.ZodLiteral<"source">;
268
+ filename: z.ZodString;
269
+ source: z.ZodString;
270
+ }, z.core.$strict>], "kind">>;
271
+ requirements: z.ZodOptional<z.ZodObject<{
272
+ isolation: z.ZodOptional<z.ZodEnum<{
273
+ local: "local";
274
+ remote: "remote";
275
+ container: "container";
276
+ }>>;
277
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
278
+ }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
279
+ providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
280
+ }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
281
+ }, z.core.$strip>;
282
+ type TransitionActionInvocation$1 = z.infer<typeof TransitionActionInvocationSchema>;
283
+ /**
284
+ * Declarative rule that watches artifact events and triggers workflow actions.
285
+ *
286
+ * Transition rules are purely serializable — no functions. The pipeline service
287
+ * evaluates the `when` condition against the incoming artifact event payload and
288
+ * dispatches the `action` through the `TransitionActionRegistry` when the
289
+ * condition matches.
290
+ *
291
+ * ID namespacing:
292
+ * - Bundle-contributed rules: `'<bundleId>.<localId>'`
293
+ * - Extension-contributed rules: `'<extensionName>.<localId>'`
294
+ *
295
+ * Duplicate IDs across all sources hard-fail activation.
296
+ */
297
+ declare const TransitionRuleDefinitionSchema$1: z.ZodObject<{
298
+ id: z.ZodString;
299
+ description: z.ZodOptional<z.ZodString>;
300
+ on: z.ZodEnum<{
301
+ "artifact.created": "artifact.created";
302
+ "artifact.revised": "artifact.revised";
303
+ "artifact.status.changed": "artifact.status.changed";
304
+ }>;
305
+ when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
306
+ action: z.ZodObject<{
307
+ type: z.ZodString;
308
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
309
+ executionHints: z.ZodOptional<z.ZodObject<{
310
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
311
+ kind: z.ZodLiteral<"path">;
312
+ path: z.ZodString;
313
+ }, z.core.$strict>, z.ZodObject<{
314
+ kind: z.ZodLiteral<"source">;
315
+ filename: z.ZodString;
316
+ source: z.ZodString;
317
+ }, z.core.$strict>], "kind">>;
318
+ requirements: z.ZodOptional<z.ZodObject<{
319
+ isolation: z.ZodOptional<z.ZodEnum<{
320
+ local: "local";
321
+ remote: "remote";
322
+ container: "container";
323
+ }>>;
324
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
325
+ }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
326
+ providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
327
+ }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
328
+ }, z.core.$strip>;
329
+ enabled: z.ZodDefault<z.ZodBoolean>;
330
+ }, z.core.$strip>;
331
+ type TransitionRuleDefinition$1 = z.infer<typeof TransitionRuleDefinitionSchema$1>;
332
+ /**
333
+ * Transition rule contribution surface for extension packages.
334
+ *
335
+ * Declarative static rules contributed by an extension. Processed by
336
+ * `TransitionContributionProcessor` during extension activation.
337
+ */
338
+ interface ExtensionTransitionRulesContribution {
339
+ /**
340
+ * Transition rule definitions contributed by this extension.
341
+ *
342
+ * All IDs must be prefixed with `'<extensionName>.'` (enforced by the
343
+ * contribution processor). Duplicate IDs hard-fail activation.
344
+ */
345
+ readonly rules: readonly TransitionRuleDefinition$1[];
346
+ }
347
+ /**
348
+ * Callable transition action handler.
349
+ *
350
+ * Invoked by the pipeline when a matching rule fires. Receives the resolved
351
+ * invocation and the artifact event context so it can read artifact data when
352
+ * building downstream bus requests.
353
+ */
354
+ interface TransitionActionHandler {
355
+ /**
356
+ * Execute the action.
357
+ * @param invocation - Resolved action invocation descriptor.
358
+ * @param context - Evaluation context built from the triggering artifact event.
359
+ * @returns Promise that resolves when the action dispatch completes.
360
+ */
361
+ readonly execute: (invocation: TransitionActionInvocation$1, context: TransitionEvaluationContext$1) => Promise<void>;
362
+ }
363
+ /**
364
+ * Factory that creates a {@link TransitionActionHandler} for a given action type.
365
+ *
366
+ * Factories are registered at contribution time and instantiated lazily by the
367
+ * pipeline service.
368
+ */
369
+ type TransitionActionFactory$1 = () => TransitionActionHandler;
370
+ /**
371
+ * Transition action factory contribution surface for extension packages.
372
+ *
373
+ * Extensions that need custom action semantics beyond the built-in
374
+ * `workflow.start` action register their handler factories here.
375
+ */
376
+ interface ExtensionTransitionActionsContribution {
377
+ /**
378
+ * Map of action type strings to action handler factories.
379
+ *
380
+ * Each key is a registered action `type` string as declared in
381
+ * {@link TransitionActionInvocationSchema}. Values are factories
382
+ * called once per rule dispatch to produce a fresh handler.
383
+ *
384
+ * All keys must be prefixed with `'<extensionName>.'`.
385
+ */
386
+ readonly actions: Readonly<Record<string, TransitionActionFactory$1>>;
387
+ }
388
+ /**
389
+ * Context object passed to condition evaluation and action dispatch.
390
+ *
391
+ * The pipeline builds this from the incoming artifact event payload so
392
+ * that rules can reference `artifact`, `previous`, `path`, and `current`
393
+ * fields using dot-notation in their `when` conditions.
394
+ */
395
+ interface TransitionEvaluationContext$1 {
396
+ /**
397
+ * The artifact revision involved in the event.
398
+ *
399
+ * The transition pipeline resolves ref-oriented artifact events, such as
400
+ * `artifact.status.changed`, before evaluating rules so authoring sees a
401
+ * consistent full-revision context.
402
+ */
403
+ readonly artifact: ArtifactRevision$1;
404
+ /**
405
+ * Previous value from the artifact event. For `artifact.revised` this is the
406
+ * previous artifact ref; for `artifact.status.changed` this is the previous
407
+ * status value.
408
+ */
409
+ readonly previous?: unknown;
410
+ /**
411
+ * Resolved previous artifact revision for `artifact.revised` events.
412
+ *
413
+ * This preserves `previous` as the original event value while giving rules a
414
+ * full before/after snapshot when they need to detect semantic deltas.
415
+ */
416
+ readonly previousArtifact?: ArtifactRevision$1;
417
+ /**
418
+ * JSON Pointer path to the status field that changed.
419
+ * Present only for `artifact.status.changed` events.
420
+ */
421
+ readonly path?: string;
422
+ /**
423
+ * Current status value after the change.
424
+ * Present only for `artifact.status.changed` events.
425
+ */
426
+ readonly current?: unknown;
427
+ /**
428
+ * Loop-protection metadata injected by the pipeline.
429
+ *
430
+ * Downstream actions can inspect this to detect and break
431
+ * artifact-triggered → workflow → artifact cycles.
432
+ */
433
+ readonly _transition: {
434
+ /**
435
+ * The transition rule ID that fired this action.
436
+ */
437
+ readonly ruleId: string;
438
+ /**
439
+ * The artifact event type that matched the rule.
440
+ */
441
+ readonly eventType: TransitionEventType$1;
442
+ /**
443
+ * Depth counter tracking recursive transition invocations.
444
+ *
445
+ * The pipeline increments this on each nested trigger level.
446
+ * Action handlers that re-emit artifact events must propagate this
447
+ * metadata so the pipeline can reject invocations that exceed the
448
+ * configured maximum depth.
449
+ */
450
+ readonly depth: number;
451
+ };
452
+ }
453
+ //#endregion
454
+ export { WorkflowTriggerBlock as C, WorkflowStepBlockRun as S, RegisteredTriggerBlock$1 as _, TransitionActionInvocation$1 as a, WorkflowBlockMetadata as b, TransitionConditionSchema as c, TransitionEventTypeSchema as d, TransitionRuleDefinition$1 as f, RegisteredStepBlock$1 as g, DelegateRoleNodeBlockRun as h, TransitionActionHandler as i, TransitionEvaluationContext$1 as l, DelegateAgentNodeBlockRun as m, ExtensionTransitionRulesContribution as n, TransitionActionInvocationSchema as o, TransitionRuleDefinitionSchema$1 as p, TransitionActionFactory$1 as r, TransitionCondition as s, ExtensionTransitionActionsContribution as t, TransitionEventType$1 as u, StationNodeBlockRun as v, WorkflowStepBlock as x, WorkflowBlockCollection$1 as y };