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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (508) hide show
  1. package/dist/.makaio-build.json +4 -3
  2. package/dist/{account-identity-DFx8pwKL.mjs → account-identity-DGpXd8h_.mjs} +1 -1
  3. package/dist/adapter-BkdJaOOG.mjs +1 -0
  4. package/dist/adapter-subsystem/index.d.mts +138 -6
  5. package/dist/adapter-subsystem/index.mjs +1 -1
  6. package/dist/adapters/acp-client/index.d.mts +105 -7
  7. package/dist/adapters/acp-client/index.mjs +2 -2
  8. package/dist/adapters/config/index.d.mts +1 -1
  9. package/dist/adapters/config/index.mjs +1 -1
  10. package/dist/adapters/index.d.mts +362 -801
  11. package/dist/adapters/index.mjs +6 -6
  12. package/dist/adapters/node.d.mts +1 -1
  13. package/dist/adapters/node.mjs +1 -1
  14. package/dist/adapters/stream-session/index.d.mts +28 -7
  15. package/dist/adapters/stream-session/index.mjs +1 -1
  16. package/dist/agent-namespace-D51PODFf.mjs +1 -0
  17. package/dist/{ajv-DD3SIL2i.mjs → ajv-L5fKxaia.mjs} +2 -2
  18. package/dist/artifact-k3veR4Yx.mjs +1 -0
  19. package/dist/attach-error-BSlc7JfL.mjs +1 -0
  20. package/dist/{auth-DGEdiHF6.mjs → auth-A1K_7q-8.mjs} +1 -1
  21. package/dist/authority-state-bootstrap-YwtEImIB.mjs +1 -0
  22. package/dist/automation-trigger-CuSdQwir.mjs +1 -0
  23. package/dist/await-trigger-ph1S0zVI.mjs +1 -0
  24. package/dist/bus/index.d.mts +19 -5
  25. package/dist/bus/index.mjs +1 -1
  26. package/dist/bus-BIj0_aG6.mjs +1 -0
  27. package/dist/bus-CqgrphNE.mjs +2 -0
  28. package/dist/{canonical-model-BAytQ4NV.mjs → canonical-model-DJASlL4m.mjs} +1 -1
  29. package/dist/{capabilities-BQEp34ir.mjs → capabilities-Bqckjh7G.mjs} +1 -1
  30. package/dist/{client-DbS847wW.mjs → client-BL5__WT0.mjs} +1 -1
  31. package/dist/clients/index.d.mts +2 -2
  32. package/dist/clients/index.mjs +1 -1
  33. package/dist/clients/managed-install.d.mts +1 -1
  34. package/dist/clients/managed-install.mjs +1 -1
  35. package/dist/{compression-74fFeBha.mjs → compression-BbttSqm8.mjs} +1 -1
  36. package/dist/{config-namespace-TVX-hG4I.mjs → config-namespace-CyzeLWSg.mjs} +1 -1
  37. package/dist/{context-resolution-DdyhpH4L.d.mts → context-resolution-CW0ya4QO.d.mts} +13 -13
  38. package/dist/contracts/adapter/index.d.mts +3 -3
  39. package/dist/contracts/adapter/index.mjs +1 -1
  40. package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
  41. package/dist/contracts/artifact/index.d.mts +3 -3
  42. package/dist/contracts/artifact/index.mjs +1 -1
  43. package/dist/contracts/auth/index.d.mts +2 -2
  44. package/dist/contracts/auth/index.mjs +1 -1
  45. package/dist/contracts/automation-trigger/index.d.mts +4 -0
  46. package/dist/contracts/automation-trigger/index.mjs +1 -0
  47. package/dist/contracts/canonical-model/index.d.mts +1 -1
  48. package/dist/contracts/canonical-model/index.mjs +1 -1
  49. package/dist/contracts/capabilities/index.d.mts +1 -1
  50. package/dist/contracts/capabilities/index.mjs +1 -1
  51. package/dist/contracts/client/index.d.mts +2 -2
  52. package/dist/contracts/client/index.mjs +1 -1
  53. package/dist/contracts/common/index.d.mts +1 -1
  54. package/dist/contracts/config/index.d.mts +1 -1
  55. package/dist/contracts/config/index.mjs +1 -1
  56. package/dist/contracts/extension/index.d.mts +6 -5
  57. package/dist/contracts/extension/index.mjs +1 -1
  58. package/dist/contracts/facet/index.d.mts +1 -1
  59. package/dist/contracts/facet/index.mjs +1 -1
  60. package/dist/contracts/harness/index.d.mts +1 -1
  61. package/dist/contracts/harness/index.mjs +1 -1
  62. package/dist/contracts/host/index.d.mts +1 -1
  63. package/dist/contracts/host/index.mjs +1 -1
  64. package/dist/contracts/index.d.mts +181 -120
  65. package/dist/contracts/index.mjs +1 -1
  66. package/dist/contracts/materialization/index.d.mts +3 -3
  67. package/dist/contracts/materialization/index.mjs +1 -1
  68. package/dist/contracts/model-registry/index.d.mts +1 -1
  69. package/dist/contracts/model-registry/index.mjs +1 -1
  70. package/dist/contracts/native-session-supervisor/index.d.mts +1 -1
  71. package/dist/contracts/native-session-supervisor/index.mjs +1 -1
  72. package/dist/contracts/platform/index.d.mts +1 -1
  73. package/dist/contracts/platform/index.mjs +1 -1
  74. package/dist/contracts/provider/index.d.mts +2 -2
  75. package/dist/contracts/provider/index.mjs +1 -1
  76. package/dist/contracts/reaction/index.d.mts +2 -0
  77. package/dist/contracts/reaction/index.mjs +1 -0
  78. package/dist/contracts/session/index.d.mts +3 -3
  79. package/dist/contracts/session/index.mjs +1 -1
  80. package/dist/contracts/shared/index.d.mts +3 -3
  81. package/dist/contracts/shared/index.mjs +1 -1
  82. package/dist/contracts/skill/index.d.mts +1 -1
  83. package/dist/contracts/skill/index.mjs +1 -1
  84. package/dist/contracts/telemetry/index.d.mts +1 -1
  85. package/dist/contracts/telemetry/index.mjs +1 -1
  86. package/dist/contracts/timeout/index.d.mts +1 -1
  87. package/dist/contracts/timeout/index.mjs +1 -1
  88. package/dist/contracts/toast/index.mjs +1 -1
  89. package/dist/contracts/variant/index.d.mts +1 -1
  90. package/dist/contracts/variant/index.mjs +1 -1
  91. package/dist/contracts/worker-node/index.d.mts +1 -1
  92. package/dist/contracts/worker-node/index.mjs +1 -1
  93. package/dist/contracts/workflow/index.d.mts +3 -3
  94. package/dist/contracts/workflow/index.mjs +1 -1
  95. package/dist/contribution-BH-wKsWI.d.mts +35 -0
  96. package/dist/core/index.d.mts +60 -1
  97. package/dist/core/index.mjs +1 -1
  98. package/dist/definition-BYgHlmMw.d.mts +375 -0
  99. package/dist/{definition-CJfiv8xm.mjs → definition-CDg-Jq1T.mjs} +1 -1
  100. package/dist/{detached-extension-handle-Ddfquy5_.mjs → detached-extension-handle-DKd17UB6.mjs} +1 -1
  101. package/dist/drizzle/0031_adapter_session_currency.sql +66 -0
  102. package/dist/drizzle/0032_native_session_ownership.sql +77 -0
  103. package/dist/drizzle/0033_m_msf3hu2s.sql +1 -0
  104. package/dist/drizzle/meta/_journal.json +21 -0
  105. package/dist/{execution-attempt-repository-DWXKY41_.d.mts → execution-attempt-repository-DFyAnchJ.d.mts} +1 -1
  106. package/dist/{execution-target-Cf645pDj.mjs → execution-target-ByNwZh5-.mjs} +1 -1
  107. package/dist/extension-DMdmj9gi.mjs +1 -0
  108. package/dist/extension-DUmibvMk.mjs +1 -0
  109. package/dist/extension-context-CqfddWXs.d.mts +295 -0
  110. package/dist/{extension-discovery-CQRdbVQ6.d.mts → extension-discovery-Fhps4icD.d.mts} +2 -0
  111. package/dist/{extension-namespace-Yu41YepM.mjs → extension-namespace-B554RmCp.mjs} +1 -1
  112. package/dist/extension-package-provenance-Dh_-Z-tE.mjs +1 -0
  113. package/dist/{filesystem-service-DlP2HfDg.mjs → filesystem-service-FAtd9gWH.mjs} +1 -1
  114. package/dist/framework-packages-D_2hBZ-p.mjs +1 -0
  115. package/dist/git/index.mjs +1 -1
  116. package/dist/{globby-1yCVCk8s.mjs → globby-BBLuT_vy.mjs} +1 -1
  117. package/dist/handlers-2yd00VEq.mjs +57 -0
  118. package/dist/{harness-DpwsFsE7.mjs → harness-KxbWGL4I.mjs} +1 -1
  119. package/dist/{hook-responses-Dh1PWXqJ.d.mts → hook-responses-CQZIv3L3.d.mts} +2 -293
  120. package/dist/{index-DCZ8BX9S.d.mts → index-3eUIRy7T.d.mts} +304 -74
  121. package/dist/{index-brqfk9JQ.d.mts → index-B4xdTT3c.d.mts} +6 -6
  122. package/dist/{index-4VfqCjl2.d.mts → index-B5op6AsV.d.mts} +49 -39
  123. package/dist/{index-CMgLxw14.d.mts → index-B6GOuxVy2.d.mts} +18 -18
  124. package/dist/index-BFhJe-Sb.d.mts +302 -0
  125. package/dist/{index-EjsSBQXy2.d.mts → index-BSQ30wYP.d.mts} +1 -1
  126. package/dist/{index-DlsHL9Jg.d.mts → index-BiAYXjgM.d.mts} +25 -25
  127. package/dist/{index-B9UW_vPM.d.mts → index-ByZi9bml.d.mts} +4967 -1509
  128. package/dist/{index-BVlXneHH.d.mts → index-C7HcDpHE.d.mts} +14 -10
  129. package/dist/{index-BskPjMet.d.mts → index-CB4aIUoF.d.mts} +16 -16
  130. package/dist/{index-cqLS1eFV.d.mts → index-CDusRXio.d.mts} +70 -71
  131. package/dist/{index-DnG-QFpG.d.mts → index-CSN_0sCo.d.mts} +18 -1
  132. package/dist/{index-BAXkicoQ.d.mts → index-C__EQfKa.d.mts} +1 -1
  133. package/dist/{index-CLvQsL6s2.d.mts → index-CqQYgsbB.d.mts} +1660 -218
  134. package/dist/{index-BNMnIe-j.d.mts → index-CwDiyJkJ.d.mts} +276 -705
  135. package/dist/{index-GHASUiem.d.mts → index-DBadVauL.d.mts} +1 -1
  136. package/dist/{index-gUhidukN.d.mts → index-DI7-tIL3.d.mts} +299 -2
  137. package/dist/index-DP3o_13U.d.mts +165 -0
  138. package/dist/{index-DSBT83c0.d.mts → index-DcYAAJ0V.d.mts} +24 -3
  139. package/dist/{index-D5Nb7IEP.d.mts → index-Dch_AxUg.d.mts} +77 -39
  140. package/dist/{index-D_ODXsBv.d.mts → index-DcqSUsX6.d.mts} +35 -79
  141. package/dist/{index-B0Kf_OWi.d.mts → index-DgOfgjx3.d.mts} +1 -1
  142. package/dist/{index-Ds5_rDEJ.d.mts → index-DwLRZscE.d.mts} +1 -12
  143. package/dist/{index-DkiTJM5p.d.mts → index-DxYDRoDE2.d.mts} +17 -3
  144. package/dist/{index-CRvpVIqA.d.mts → index-OsbtyMgx2.d.mts} +10 -1
  145. package/dist/{index-BaZeoZoS.d.mts → index-bIe_57cL.d.mts} +1 -1
  146. package/dist/{json-value-Brslhqbm.d.mts → json-value-C1RGgS0a.d.mts} +16 -1
  147. package/dist/{json-value-DmU8ibo_.mjs → json-value-D57aJhVn.mjs} +1 -1
  148. package/dist/kernel/cli/index.d.mts +2 -2
  149. package/dist/kernel/cli/index.mjs +1 -1
  150. package/dist/kernel/cli/register.d.mts +1 -1
  151. package/dist/kernel/cli/register.mjs +1 -1
  152. package/dist/kernel/cli/schemas.mjs +1 -1
  153. package/dist/kernel/extension/index.d.mts +1 -1
  154. package/dist/kernel/extension/index.mjs +1 -1
  155. package/dist/kernel/index.d.mts +9 -9
  156. package/dist/kernel/index.mjs +1 -1
  157. package/dist/kernel/namespace/index.d.mts +2 -2
  158. package/dist/kernel/namespace/index.mjs +1 -1
  159. package/dist/kernel/observability/index.d.mts +1 -1
  160. package/dist/kernel/observability/index.mjs +1 -1
  161. package/dist/kernel/providers/index.d.mts +1 -1
  162. package/dist/kernel/providers/index.mjs +1 -1
  163. package/dist/kernel/window/index.d.mts +1 -1
  164. package/dist/kernel/window/index.mjs +1 -1
  165. package/dist/{lib-C7-s68uf.mjs → lib-B_rJ6r0T.mjs} +1 -1
  166. package/dist/{lib-DErgth_E.mjs → lib-CnOAtohU.mjs} +1 -1
  167. package/dist/load-extensions-CW9uzNR5.mjs +1 -0
  168. package/dist/{load-extensions-BxsDB87B.d.mts → load-extensions-DUpaMQ7G.d.mts} +17 -13
  169. package/dist/{materialization-Jd198K3y.mjs → materialization-CcpCDhXh.mjs} +1 -1
  170. package/dist/mcp-http-server/index.mjs +1 -1
  171. package/dist/model-ZH3L1dPW.mjs +1 -0
  172. package/dist/{namespace-BqxtpNAn.mjs → namespace-B7bntOB8.mjs} +1 -1
  173. package/dist/{namespace-CWUDFGOy.mjs → namespace-BFqkUTJp.mjs} +1 -1
  174. package/dist/{namespace-CjjFvrIA2.d.mts → namespace-CAy4P5mW.d.mts} +29 -29
  175. package/dist/{namespace-B8uKAzWJ.mjs → namespace-CFjdyNXG.mjs} +1 -1
  176. package/dist/{namespace-DV-Hr9sZ.d.mts → namespace-ChnRTUG4.d.mts} +11 -1
  177. package/dist/namespace-CxrOLeeP.mjs +1 -0
  178. package/dist/{namespace-g_mbIZq_.d.mts → namespace-DSlfFhB1.d.mts} +410 -26
  179. package/dist/{namespace-CupOzbRv.d.mts → namespace-DwZwGXgF.d.mts} +24 -20
  180. package/dist/{namespace-TseEI3Pu.d.mts → namespace-Rge9mMI-.d.mts} +36 -28
  181. package/dist/{native-session-supervisor-DRx0MX-d.mjs → native-session-supervisor-fZYPUk0-.mjs} +1 -1
  182. package/dist/node/bus-server/index.d.mts +1 -1
  183. package/dist/node/bus-server/index.mjs +1 -1
  184. package/dist/node/bus-server/server-lifecycle.d.mts +1 -1
  185. package/dist/node/bus-server/server-lifecycle.mjs +1 -1
  186. package/dist/{orchestrator-shared-BHCv-l2O.d.mts → orchestrator-shared-B-KRW1Z0.d.mts} +1 -0
  187. package/dist/orchestrator-shared-CTCZc6Vl.mjs +1 -0
  188. package/dist/ownership-memory-handler-Bblp93YC.mjs +1 -0
  189. package/dist/{package-DWMxGfzK.d.mts → package-Bf3hyuzs.d.mts} +234 -84
  190. package/dist/package-CBdvjyyZ.mjs +1 -0
  191. package/dist/package-CddkNbZI.mjs +1 -0
  192. package/dist/package-ypz4rKvn.mjs +7 -0
  193. package/dist/package.json +1 -1
  194. package/dist/{profile-BTAI31Nt.mjs → profile-BtznZlq3.mjs} +1 -1
  195. package/dist/{provider-context-Dq53Cgzz.mjs → provider-context-BrLZYnDW.mjs} +1 -1
  196. package/dist/{provider-context-PZIQWcqQ.mjs → provider-context-Dh-VOOYF.mjs} +1 -1
  197. package/dist/reaction-BS0k4eNN.mjs +1 -0
  198. package/dist/{registry-wfF2uTty.mjs → registry-BO_bOoky.mjs} +2 -2
  199. package/dist/{resolved-DZgqql2Z.mjs → resolved-DMByz1_2.mjs} +1 -1
  200. package/dist/rules/index.d.mts +1 -1
  201. package/dist/rules/index.mjs +1 -1
  202. package/dist/rules/schemas.d.mts +1 -1
  203. package/dist/runtime-bun/index.mjs +1 -1
  204. package/dist/runtime-node/extension-discovery.d.mts +1 -1
  205. package/dist/runtime-node/extension-validation.d.mts +1 -1
  206. package/dist/runtime-node/extension-validation.mjs +1 -1
  207. package/dist/runtime-node/index.d.mts +4 -4
  208. package/dist/runtime-node/index.mjs +24 -24
  209. package/dist/runtime-node/makaio-config.d.mts +1 -1
  210. package/dist/runtime-node/makaio-config.mjs +1 -1
  211. package/dist/runtime-node/workflow-worker/index.d.mts +1 -1
  212. package/dist/runtime-node/workflow-worker/index.mjs +1 -1
  213. package/dist/runtime-node/workflow-worker/worker-entry.mjs +1 -1
  214. package/dist/{schema-Dd-e89MO.mjs → schema-DBG7Jq5_.mjs} +1 -1
  215. package/dist/{schema-DKUb4rkr.d.mts → schema-DKTzriEY.d.mts} +519 -9
  216. package/dist/{schemas-DrVg4aQQ.d.mts → schemas-9qeeHGBf.d.mts} +8 -8
  217. package/dist/{schemas-CRB2O5zo.mjs → schemas-BqD8LlQw.mjs} +1 -1
  218. package/dist/{schemas-DaHQzpgm.mjs → schemas-CsjN7cmM.mjs} +1 -1
  219. package/dist/schemas-DSkBOdx_.mjs +1 -0
  220. package/dist/schemas-DplrlAyR.mjs +1 -0
  221. package/dist/{schemas-DnYiAvfz.d.mts → schemas-VbB1FTxx.d.mts} +24 -20
  222. package/dist/scoped-bus-ClwTWqX8.mjs +1 -0
  223. package/dist/{selection-BNwTKEVT.mjs → selection-7Ku8DBnh.mjs} +1 -1
  224. package/dist/services/adapter-runtime/index.d.mts +3 -3
  225. package/dist/services/adapter-runtime/index.mjs +1 -1
  226. package/dist/services/adapter-runtime/namespace.d.mts +1 -1
  227. package/dist/services/adapter-runtime/schemas.d.mts +1 -1
  228. package/dist/services/adapter-subsystem/index.d.mts +4 -4
  229. package/dist/services/adapter-subsystem/index.mjs +1 -1
  230. package/dist/services/adapter-subsystem/namespace.d.mts +2 -2
  231. package/dist/services/adapter-subsystem/namespace.mjs +1 -1
  232. package/dist/services/agent-runtime/index.d.mts +2 -2
  233. package/dist/services/agent-runtime/namespace.d.mts +1 -1
  234. package/dist/services/agent-runtime/schemas.d.mts +1 -1
  235. package/dist/services/automation-trigger/index.d.mts +943 -0
  236. package/dist/services/automation-trigger/index.mjs +1 -0
  237. package/dist/services/capability/index.d.mts +1 -1
  238. package/dist/services/capability/index.mjs +1 -1
  239. package/dist/services/codebase/index.d.mts +2 -2
  240. package/dist/services/codebase/namespace.d.mts +1 -1
  241. package/dist/services/codebase/schemas.d.mts +1 -1
  242. package/dist/services/compression/index.d.mts +2 -2
  243. package/dist/services/compression/namespace.d.mts +1 -1
  244. package/dist/services/compression/schemas.d.mts +1 -1
  245. package/dist/services/context-rules/index.d.mts +4 -4
  246. package/dist/services/context-rules/index.mjs +1 -1
  247. package/dist/services/execution-target/index.d.mts +3 -3
  248. package/dist/services/execution-target/index.mjs +1 -1
  249. package/dist/services/execution-target/namespace.d.mts +1 -1
  250. package/dist/services/execution-target/namespace.mjs +1 -1
  251. package/dist/services/execution-target/schemas.d.mts +1 -1
  252. package/dist/services/execution-target/schemas.mjs +1 -1
  253. package/dist/services/filesystem/index.d.mts +1 -1
  254. package/dist/services/filesystem/index.mjs +1 -1
  255. package/dist/services/filesystem/namespace.d.mts +6 -6
  256. package/dist/services/filesystem/schemas.d.mts +3 -3
  257. package/dist/services/git/namespace.mjs +1 -1
  258. package/dist/services/git/schemas.mjs +1 -1
  259. package/dist/services/harness/index.mjs +1 -1
  260. package/dist/services/index.d.mts +459 -93
  261. package/dist/services/index.mjs +1 -1
  262. package/dist/services/log-import/browser.d.mts +2 -2
  263. package/dist/services/log-import/index.d.mts +3 -3
  264. package/dist/services/log-import/log-import.d.mts +1 -1
  265. package/dist/services/log-import/log-import.mjs +1 -1
  266. package/dist/services/log-import/namespace.mjs +1 -1
  267. package/dist/services/log-import/schemas.mjs +1 -1
  268. package/dist/services/materialization/index.d.mts +1 -1
  269. package/dist/services/materialization/index.mjs +1 -1
  270. package/dist/services/model-registry/index.d.mts +1 -1
  271. package/dist/services/model-registry/index.mjs +1 -1
  272. package/dist/services/preferences/index.d.mts +2 -2
  273. package/dist/services/preferences/schemas.d.mts +1 -1
  274. package/dist/services/preferences/storage-namespace.d.mts +2 -2
  275. package/dist/services/provider-context/index.d.mts +1 -1
  276. package/dist/services/provider-context/index.mjs +1 -1
  277. package/dist/services/provider-runtime/index.mjs +1 -1
  278. package/dist/services/session/handlers/index.d.mts +2 -2
  279. package/dist/services/session/handlers/index.mjs +1 -1
  280. package/dist/services/session/index.d.mts +10 -10
  281. package/dist/services/session/index.mjs +1 -1
  282. package/dist/services/session/messages/namespace.d.mts +1 -1
  283. package/dist/services/session/messages/namespace.mjs +1 -1
  284. package/dist/services/session/orchestrator-testing/index.d.mts +1 -1
  285. package/dist/services/session/orchestrator-testing/index.mjs +1 -1
  286. package/dist/services/session/session-events/namespace.d.mts +1 -1
  287. package/dist/services/session/session-events/namespace.mjs +1 -1
  288. package/dist/services/session/storage/namespace.d.mts +1 -1
  289. package/dist/services/session/storage/schema.d.mts +2 -2
  290. package/dist/services/session/storage/schema.mjs +1 -1
  291. package/dist/services/session/testing/index.d.mts +12 -4
  292. package/dist/services/session/testing/index.mjs +36 -4
  293. package/dist/services/session/testing/orchestrator-shared.d.mts +1 -1
  294. package/dist/services/session/testing/orchestrator-shared.mjs +1 -1
  295. package/dist/services/session/turns/namespace.d.mts +1 -1
  296. package/dist/services/session/turns/namespace.mjs +1 -1
  297. package/dist/services/session-editor/index.d.mts +1 -1
  298. package/dist/services/session-editor/index.mjs +1 -1
  299. package/dist/services/settings/index.d.mts +3 -3
  300. package/dist/services/settings/index.mjs +1 -1
  301. package/dist/services/settings/namespace.d.mts +8 -8
  302. package/dist/services/settings/namespace.mjs +1 -1
  303. package/dist/services/settings/storage/clients-namespace.d.mts +1 -1
  304. package/dist/services/settings/storage/clients-namespace.mjs +1 -1
  305. package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
  306. package/dist/services/settings/storage/index.d.mts +3 -3
  307. package/dist/services/settings/storage/index.mjs +1 -1
  308. package/dist/services/settings/storage/providers-namespace.d.mts +1 -1
  309. package/dist/services/settings/storage/providers-namespace.mjs +1 -1
  310. package/dist/services/subagent/index.d.mts +1 -1
  311. package/dist/services/subagent/index.mjs +1 -1
  312. package/dist/services/subagent-template/index.d.mts +2 -2
  313. package/dist/services/subagent-template/namespace.d.mts +1 -1
  314. package/dist/services/subagent-template/schemas.d.mts +1 -1
  315. package/dist/services/tool-approval/index.d.mts +1 -1
  316. package/dist/services/tool-approval/index.mjs +1 -1
  317. package/dist/services/tools/index.d.mts +1 -1
  318. package/dist/services/tools/index.mjs +1 -1
  319. package/dist/services/tray-menu/index.d.mts +3 -3
  320. package/dist/services/tray-menu/index.mjs +1 -1
  321. package/dist/services/tray-menu/namespace.d.mts +1 -1
  322. package/dist/services/tray-menu/schemas.d.mts +1 -1
  323. package/dist/services/turn/index.d.mts +1 -1
  324. package/dist/services/turn/namespace.d.mts +1 -1
  325. package/dist/services/workflow-transitions/index.d.mts +1 -1
  326. package/dist/services/workflow-transitions/index.mjs +1 -1
  327. package/dist/session-BMy2kRpX.mjs +90 -0
  328. package/dist/session-Cipx34j6.mjs +1 -0
  329. package/dist/{session-lineage-B_JW5LpF.d.mts → session-lineage-B_PVa1XN.d.mts} +1 -1
  330. package/dist/shared-BFVuCDPx.mjs +1 -0
  331. package/dist/{skill-BR6rkfLe.mjs → skill-C1D51nhh.mjs} +1 -1
  332. package/dist/{src-DD0v-nIj.mjs → src-xbmzokNe.mjs} +1 -1
  333. package/dist/storage/drizzle/client.d.mts +1 -1
  334. package/dist/storage/drizzle/client.mjs +1 -1
  335. package/dist/storage/drizzle/index.d.mts +42 -2
  336. package/dist/storage/drizzle/index.mjs +1 -1
  337. package/dist/storage/handlers/drizzle/index.d.mts +1 -1
  338. package/dist/storage/handlers/drizzle/index.mjs +1 -1
  339. package/dist/storage/handlers/index.d.mts +1 -1
  340. package/dist/storage/handlers/index.mjs +1 -1
  341. package/dist/tool-approval-service-BVgN9Q1r.mjs +1 -0
  342. package/dist/{tools-PdG9fO1M.mjs → tools-DxwHox1a.mjs} +1 -1
  343. package/dist/{transition-Du3MQzJV.d.mts → transition-BF1nevaC.d.mts} +7 -34
  344. package/dist/{types-DMLDHFR9.d.mts → types-BNjPhj_a.d.mts} +1 -1
  345. package/dist/{types-Dzrwa1GY.d.mts → types-CijlWGwb.d.mts} +2036 -618
  346. package/dist/types-ClpEaoAm.d.mts +2917 -0
  347. package/dist/{types-D7_kevBK.d.mts → types-xCdGghb2.d.mts} +1 -1
  348. package/dist/ui-hooks/index.d.mts +29 -2
  349. package/dist/ui-hooks/index.mjs +1 -1
  350. package/dist/ui-kernel/index.d.mts +2 -2
  351. package/dist/ui-kernel/pages/schemas.d.mts +1 -1
  352. package/dist/ui-views/index.d.mts +1 -1
  353. package/dist/utils/index.d.mts +77 -1
  354. package/dist/utils/index.mjs +2 -2
  355. package/dist/{version-CoCeMxDT.mjs → version-BfNnVAGr.mjs} +1 -1
  356. package/dist/{view-builder-DeFd-k7C.d.mts → view-builder-Bc9dx6jF.d.mts} +1 -1
  357. package/dist/{visibility-qhGWmpSJ.mjs → visibility-Dl1o2I01.mjs} +1 -1
  358. package/dist/{worker-node-Bl9_vqYi.mjs → worker-node-BDOYPEpi.mjs} +1 -1
  359. package/dist/{worker-node-DZTuT1DS.mjs → worker-node-DJ41Tr-F.mjs} +1 -1
  360. package/dist/workflow-Hzc5jlnV.mjs +1 -0
  361. package/dist/workflow-engine/execution-attempt-repository.d.mts +1 -1
  362. package/dist/workflow-engine/index.d.mts +114 -395
  363. package/dist/workflow-engine/index.mjs +1 -1
  364. package/dist/workflow-engine/package.d.mts +1 -1
  365. package/dist/workflow-engine/package.mjs +1 -1
  366. package/dist/workflow-engine/provider-operation.d.mts +1 -1
  367. package/dist/workflow-engine/testing/index.d.mts +2 -2
  368. package/dist/workflow-engine/testing/index.mjs +1 -1
  369. package/dist/workflow-engine/testing/sqlite.d.mts +1 -1
  370. package/dist/workflow-engine/testing/sqlite.mjs +27 -27
  371. package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
  372. package/dist/workflow-engine/workflow-trigger-binding-consumer.d.mts +46 -0
  373. package/dist/workflow-engine/workflow-trigger-binding-consumer.mjs +1 -0
  374. package/dist/{workflow-transitions-DSc45ixc.mjs → workflow-transitions-DM0fN_eP.mjs} +1 -1
  375. package/dist/workflow-worker-DARC7UZl.mjs +1 -0
  376. package/dist/zod-json-schema-BAGAFfCN.mjs +1 -0
  377. package/package.json +29 -1
  378. package/dist/adapter-D5c5LrPN.mjs +0 -1
  379. package/dist/artifact-DGiXqb11.mjs +0 -1
  380. package/dist/attach-error-C3tngg6J.mjs +0 -1
  381. package/dist/authority-state-bootstrap-GPL_tqaT.mjs +0 -1
  382. package/dist/await-trigger-I3lrepb8.mjs +0 -1
  383. package/dist/bus-B6SAjgOC.mjs +0 -2
  384. package/dist/bus-C2l3K74u.mjs +0 -1
  385. package/dist/extension-DCA4pYrY.mjs +0 -1
  386. package/dist/extension-hjOPs10e.mjs +0 -1
  387. package/dist/framework-packages-C3RWfJDk.mjs +0 -1
  388. package/dist/handlers-CfnLyLfE.mjs +0 -57
  389. package/dist/load-extensions-D0DfjYLC.mjs +0 -1
  390. package/dist/model-BGgVmRnN.mjs +0 -1
  391. package/dist/namespace-DJfUADSV.mjs +0 -1
  392. package/dist/orchestrator-shared-BxmHCPvx.mjs +0 -1
  393. package/dist/package-CNUPPcU1.mjs +0 -7
  394. package/dist/package-Dft_RItb.mjs +0 -1
  395. package/dist/schemas-Cm09dXL4.mjs +0 -1
  396. package/dist/scoped-bus-C9BdNwfM.mjs +0 -1
  397. package/dist/session-BOGCd18q.mjs +0 -1
  398. package/dist/session-BTFiDoGz.mjs +0 -76
  399. package/dist/shared-BQ0CHIVy.mjs +0 -1
  400. package/dist/tool-approval-service-kBA0fRzm.mjs +0 -1
  401. package/dist/types-CJ_QZ1yW.d.mts +0 -1487
  402. package/dist/workflow-BfDbgtIQ.mjs +0 -1
  403. package/dist/workflow-worker-BN9XPxQO.mjs +0 -1
  404. package/dist/{adapter-auth-runtime-DO-FVTXg.mjs → adapter-auth-runtime-D9Lnl7cc.mjs} +0 -0
  405. package/dist/{adapter-binding-DQchUtrK.d.mts → adapter-binding-B-FBoCys.d.mts} +0 -0
  406. package/dist/{attempt-record-codec-CqO1_XnE.mjs → attempt-record-codec-DaFLKR5C.mjs} +0 -0
  407. package/dist/{base-orchestrator-BilsQNW1.d.mts → base-orchestrator-D9u4NyiM.d.mts} +0 -0
  408. package/dist/{capability-service-BqiLlRGA.mjs → capability-service-CJHNkjvm.mjs} +0 -0
  409. package/dist/{client-B--e2qcU.d.mts → client-4ihewPUm.d.mts} +0 -0
  410. package/dist/{client-binary-version-verifier-taewmKTY.mjs → client-binary-version-verifier-DJajc_Ff.mjs} +0 -0
  411. package/dist/{client-binary-version-verifier-CgjM_vGF.d.mts → client-binary-version-verifier-jDDZ64Ah.d.mts} +0 -0
  412. package/dist/{clients-namespace-DfxjG2ZP.d.mts → clients-namespace-DFWuUawf.d.mts} +0 -0
  413. package/dist/{config-namespace-BCqvufbD.d.mts → config-namespace-D1kyZj0B.d.mts} +0 -0
  414. package/dist/{create-static-mount-bbQhTt6W.mjs → create-static-mount-9tnGpIeK.mjs} +0 -0
  415. package/dist/{cross-spawn-B57KZuns.mjs → cross-spawn-BIgueAqr.mjs} +0 -0
  416. package/dist/{cursor-storage-DIFK_9hg.mjs → cursor-storage-ROWfiTh1.mjs} +0 -0
  417. package/dist/{definition-gnKgXU91.d.mts → definition-DB-kKc0d.d.mts} +0 -0
  418. package/dist/{definitions-xrrY0wgz.mjs → definitions-CF6YmEhL.mjs} +0 -0
  419. package/dist/{descriptor-to-package-DvF08krT.mjs → descriptor-to-package-BecVCopf.mjs} +0 -0
  420. package/dist/{drizzle-z_0SiGY8.mjs → drizzle-CPv3vdTE.mjs} +0 -0
  421. package/dist/{esm-CltRnX8_.mjs → esm-CBFWM8u_.mjs} +0 -0
  422. package/dist/{event-CmVjR6Ib.mjs → event-DR8U9Efx.mjs} +0 -0
  423. package/dist/{facet-BCI00njh.mjs → facet-DVsW12iF.mjs} +0 -0
  424. package/dist/{filesystem-service-CQ9yVkSz.d.mts → filesystem-service-Cm2RHKBa.d.mts} +0 -0
  425. package/dist/{handler-Cbv9FqDO.mjs → handler-Bqlk-6BY.mjs} +0 -0
  426. package/dist/{host-Caq6ZfSJ.mjs → host-k5yoyKHg.mjs} +0 -0
  427. package/dist/{identity-D6guMtmi.mjs → identity-DC3Pk0ps.mjs} +0 -0
  428. package/dist/{index-dtsLKOID.d.mts → index-42UdYStR.d.mts} +0 -0
  429. package/dist/{index-DR40QWlw.d.mts → index-BJAB-BW_.d.mts} +0 -0
  430. package/dist/{index-Dm1nUxCF.d.mts → index-BJMezANn.d.mts} +0 -0
  431. package/dist/{index-CnMu8BQl.d.mts → index-BQprJNA_.d.mts} +0 -0
  432. package/dist/{index-Cv-o5Krs.d.mts → index-BRCrFirq.d.mts} +0 -0
  433. package/dist/{index-BVRQEpAg.d.mts → index-BRzHs7Bx.d.mts} +6 -6
  434. /package/dist/{index-DXN_L5D6.d.mts → index-BSbGB23v.d.mts} +0 -0
  435. /package/dist/{index-vA--0lOM.d.mts → index-BVcQcphK.d.mts} +0 -0
  436. /package/dist/{index-ye0oklfU.d.mts → index-BcvqDfcN.d.mts} +0 -0
  437. /package/dist/{index-CGZQVTid.d.mts → index-BeENojSx2.d.mts} +0 -0
  438. /package/dist/{index-DjgLchuQ.d.mts → index-Beo_Ik8-.d.mts} +0 -0
  439. /package/dist/{index-sS6KUlrx.d.mts → index-BgGe9WZz.d.mts} +0 -0
  440. /package/dist/{index-CWHfOz6d.d.mts → index-CK3f0bAL.d.mts} +0 -0
  441. /package/dist/{index-DZunhZec.d.mts → index-CQuRTeRa.d.mts} +0 -0
  442. /package/dist/{index-jTaAHsul.d.mts → index-CRmE88hi.d.mts} +0 -0
  443. /package/dist/{index-CjdRdsd0.d.mts → index-CvW9_SzR.d.mts} +0 -0
  444. /package/dist/{index-ByKi34v5.d.mts → index-CxSSdIZz.d.mts} +0 -0
  445. /package/dist/{index-vcSj12YQ.d.mts → index-E4SET1AA.d.mts} +0 -0
  446. /package/dist/{index-DN4NOCqN2.d.mts → index-Ol9RBB0W2.d.mts} +0 -0
  447. /package/dist/{index-BIdsFcQs2.d.mts → index-aoxdnhJ42.d.mts} +0 -0
  448. /package/dist/{index-SsBHjUqA.d.mts → index-nydhGvXa.d.mts} +0 -0
  449. /package/dist/{jsonl-transport-bQl3JwIu.mjs → jsonl-transport-Bp_6pB2a.mjs} +0 -0
  450. /package/dist/{lib-DOBXZmYX.mjs → lib-Bwdd2m81.mjs} +0 -0
  451. /package/dist/{model-registry-CmgcPDH3.mjs → model-registry-Y854mUml.mjs} +0 -0
  452. /package/dist/{model-registry-xyBKSye-.mjs → model-registry-yURX738J.mjs} +0 -0
  453. /package/dist/{modes-BheyN7SS.mjs → modes-DmUsjHdV.mjs} +0 -0
  454. /package/dist/{namespace-HO2J9sO8.mjs → namespace-B9FEGuEu.mjs} +0 -0
  455. /package/dist/{namespace-jDhZjw-i.d.mts → namespace-Bi3CmYQy.d.mts} +0 -0
  456. /package/dist/{namespace-GPA7zots.d.mts → namespace-BusZERU8.d.mts} +0 -0
  457. /package/dist/{namespace-BOkKoq34.d.mts → namespace-ByP1Iipi.d.mts} +0 -0
  458. /package/dist/{namespace-YytVKIgI.d.mts → namespace-C1D77w7U.d.mts} +0 -0
  459. /package/dist/{namespace-CErHuXtb.d.mts → namespace-C6CVEGH8.d.mts} +0 -0
  460. /package/dist/{namespace-C-9si-fV.mjs → namespace-CfIW0hpQ.mjs} +0 -0
  461. /package/dist/{namespace-YxU1xf-K.mjs → namespace-CkBbNFSU.mjs} +0 -0
  462. /package/dist/{namespace-DWCEo-9M.d.mts → namespace-DX1Ec15L.d.mts} +0 -0
  463. /package/dist/{namespace-CWGKCNZm.mjs → namespace-DbNWsPFY.mjs} +0 -0
  464. /package/dist/{namespace-Cv1RFP7n.d.mts → namespace-Dgg0uoe6.d.mts} +0 -0
  465. /package/dist/{namespace-tGRAod3o.d.mts → namespace-s2y_NFKf.d.mts} +0 -0
  466. /package/dist/{namespace-Blp4c8GK.d.mts → namespace-yREpGJgG.d.mts} +0 -0
  467. /package/dist/{out-CvjtANXN.mjs → out-DrhwCgqM.mjs} +0 -0
  468. /package/dist/{packages-DtEEP0Vt.mjs → packages-FBv3fAOR.mjs} +0 -0
  469. /package/dist/{packages-BZ6pzFIq.d.mts → packages-N3-2Kl-Y.d.mts} +0 -0
  470. /package/dist/{platform-Bv8llU9c.mjs → platform-BrsMv_S3.mjs} +0 -0
  471. /package/dist/{provider-operation-Cxoe2SUr.d.mts → provider-operation-DJ_TLZFf.d.mts} +0 -0
  472. /package/dist/{providers-Co5UszRH.mjs → providers-CCcn4Ndp.mjs} +0 -0
  473. /package/dist/{providers-namespace-DjFkmvBR.d.mts → providers-namespace-DeJBh6MP.d.mts} +0 -0
  474. /package/dist/{quick-lru-CrOpWwrf.mjs → quick-lru-uwB0hP-y.mjs} +0 -0
  475. /package/dist/{schema-introspection-DgWQCpwx.mjs → schema-introspection-C1wvklj9.mjs} +0 -0
  476. /package/dist/{schema-Db-y-09L.mjs → schema-jIapW8Kb.mjs} +0 -0
  477. /package/dist/{schemas-CR8hSqTy.d.mts → schemas-B7zo7Zcx.d.mts} +0 -0
  478. /package/dist/{schemas-CqRm0i9a.mjs → schemas-BNdiVBWh.mjs} +0 -0
  479. /package/dist/{schemas-B1NWNASS.d.mts → schemas-C-Bm6Oac.d.mts} +0 -0
  480. /package/dist/{schemas-BO7uOum6.d.mts → schemas-CD0wOQxx.d.mts} +0 -0
  481. /package/dist/{schemas-N6x2z7Lf.d.mts → schemas-CeUI2i5j.d.mts} +0 -0
  482. /package/dist/{schemas-CwbYk_kZ.d.mts → schemas-Cg-Kwp8c.d.mts} +0 -0
  483. /package/dist/{schemas-BtZqovRH.d.mts → schemas-Cv3rR9Sz.d.mts} +0 -0
  484. /package/dist/{schemas-tDf_WiC8.mjs → schemas-CvHFbzdy.mjs} +0 -0
  485. /package/dist/{schemas-BsVYZviy.d.mts → schemas-DZH9lpxs.d.mts} +0 -0
  486. /package/dist/{schemas-BGExwp3j.mjs → schemas-DgwEVUt-.mjs} +0 -0
  487. /package/dist/{schemas-Bfxskx_2.mjs → schemas-mLpOfMoN.mjs} +0 -0
  488. /package/dist/{schemas-CQyRBqD6.d.mts → schemas-qA279_j_.d.mts} +0 -0
  489. /package/dist/{schemas-miYxK_Z1.d.mts → schemas-sMoRnBdZ.d.mts} +0 -0
  490. /package/dist/{semver-DlM8znk4.mjs → semver-DTXuyLcK.mjs} +0 -0
  491. /package/dist/{server-lifecycle-Dsq56aqC.d.mts → server-lifecycle-C_8iKgat.d.mts} +0 -0
  492. /package/dist/{server-lifecycle-kmQ5PUDv.mjs → server-lifecycle-DKx_fWlq.mjs} +0 -0
  493. /package/dist/{shared-schemas-DXwyMCwZ.mjs → shared-schemas-aahW97QW.mjs} +0 -0
  494. /package/dist/{src-CCu8TwL6.mjs → src-DHqsl5Pg.mjs} +0 -0
  495. /package/dist/{storage-namespace-BSrv0vXR.mjs → storage-namespace-Dz2jsssp.mjs} +0 -0
  496. /package/dist/{storage-namespace-dfywhXR3.d.mts → storage-namespace-Tf3P5yJ5.d.mts} +0 -0
  497. /package/dist/{storage-namespace-definition-BvlX0QV_.d.mts → storage-namespace-definition-BsnYAPot.d.mts} +0 -0
  498. /package/dist/{storage-namespace-definition-CkMKt7-I.mjs → storage-namespace-definition-CDef0E20.mjs} +0 -0
  499. /package/dist/{supports-color-DUugCQsK.mjs → supports-color-i7OTnKcZ.mjs} +0 -0
  500. /package/dist/{telemetry-Pr3oP2rk.mjs → telemetry-BvCBUjFg.mjs} +0 -0
  501. /package/dist/{timeout-DWDhddRJ.mjs → timeout-B0nYjLc8.mjs} +0 -0
  502. /package/dist/{tray-menu-service-BBLa-Rcv.mjs → tray-menu-service-Deo6yyP8.mjs} +0 -0
  503. /package/dist/{types-BrcjaNPZ.d.mts → types-CNS55jvt.d.mts} +0 -0
  504. /package/dist/{types-b54n1o57.d.mts → types-Ce6LL25v.d.mts} +0 -0
  505. /package/dist/{ui-config-CyCdlns_.mjs → ui-config-BIyGzMNL.mjs} +0 -0
  506. /package/dist/{variant-krjlTdJt.mjs → variant-B4uWdxW7.mjs} +0 -0
  507. /package/dist/{window-registry-BDnZLPVx.d.mts → window-registry-BLtVx3Iw.d.mts} +0 -0
  508. /package/dist/{window-registry-I-imZHV_.mjs → window-registry-CoBJq3u4.mjs} +0 -0
@@ -1,11 +1,12 @@
1
- import { a as ProviderOperationClaim, c as ProviderOperationObligation, i as ProcessBoundProvisionerLossProof, l as ProviderOperationOwnershipRecord, n as InitialProviderOperationClaimContextSource, o as ProviderOperationClaimDecision, r as PROVIDER_OPERATION_OBLIGATIONS, s as ProviderOperationMutationDecision, t as InitialProviderOperationClaimContext } from "../provider-operation-Cxoe2SUr.mjs";
2
- import { A as RecoverableAttemptRecord, C as ProvisioningClaimDecision, D as RecordProviderOperationUncertaintyInput, E as RecordInfrastructureFailureInput, M as TakeOverProviderOperationInput, N as sameAllocationRef, O as RecordProvisionerIncarnationLostInput, P as sameWorkflowResult, S as ProvisioningAbsenceDecision, T as RecordAllocationTerminatedInput, _ as ExecutionAttemptStatus, a as BeginProvisioningInput, b as PendingAttemptAbandonmentDecision, c as EXECUTION_ATTEMPT_SETTLEMENT_KINDS, d as ExecutionAttemptOutcomeCommit, f as ExecutionAttemptOutcomeDecision, g as ExecutionAttemptSettlementKind, h as ExecutionAttemptRepository, i as AllocationTerminationDecision, j as RenewProviderOperationClaimInput, k as RecordProvisioningAbsentInput, l as EXECUTION_ATTEMPT_STATUSES, m as ExecutionAttemptRecoveryOperations, n as AllocationRefEvolution, o as DiscoveredAllocationDecision, p as ExecutionAttemptRecord, r as AllocationRefEvolutionDecision, s as DuplicateExecutionAttemptError, t as AllocationRecordingDecision, u as ExecutionAttemptCreate, v as HandoffProviderOperationInput, w as RecordAllocationInput, x as ProvisionerIncarnationLossDecision, y as InfrastructureFailureDecision } from "../execution-attempt-repository-DWXKY41_.mjs";
3
- import { a as WorkflowEngineServiceOptions, c as WorkflowMaterializationSpecResolution, d as registerDrizzleWorkflowStorage, i as WorkflowEngineService, l as WorkflowMaterializationSpecResolver, n as createWorkflowEnginePackage, o as WorkflowExecutor, r as workflowEnginePackage, s as ExecutionAttemptAuthority, t as WorkflowEngineToken, u as WorkflowWorkspaceRootResolver } from "../package-DWMxGfzK.mjs";
1
+ import { a as ProviderOperationClaim, c as ProviderOperationObligation, i as ProcessBoundProvisionerLossProof, l as ProviderOperationOwnershipRecord, n as InitialProviderOperationClaimContextSource, o as ProviderOperationClaimDecision, r as PROVIDER_OPERATION_OBLIGATIONS, s as ProviderOperationMutationDecision, t as InitialProviderOperationClaimContext } from "../provider-operation-DJ_TLZFf.mjs";
2
+ import { A as RecoverableAttemptRecord, C as ProvisioningClaimDecision, D as RecordProviderOperationUncertaintyInput, E as RecordInfrastructureFailureInput, M as TakeOverProviderOperationInput, N as sameAllocationRef, O as RecordProvisionerIncarnationLostInput, P as sameWorkflowResult, S as ProvisioningAbsenceDecision, T as RecordAllocationTerminatedInput, _ as ExecutionAttemptStatus, a as BeginProvisioningInput, b as PendingAttemptAbandonmentDecision, c as EXECUTION_ATTEMPT_SETTLEMENT_KINDS, d as ExecutionAttemptOutcomeCommit, f as ExecutionAttemptOutcomeDecision, g as ExecutionAttemptSettlementKind, h as ExecutionAttemptRepository, i as AllocationTerminationDecision, j as RenewProviderOperationClaimInput, k as RecordProvisioningAbsentInput, l as EXECUTION_ATTEMPT_STATUSES, m as ExecutionAttemptRecoveryOperations, n as AllocationRefEvolution, o as DiscoveredAllocationDecision, p as ExecutionAttemptRecord, r as AllocationRefEvolutionDecision, s as DuplicateExecutionAttemptError, t as AllocationRecordingDecision, u as ExecutionAttemptCreate, v as HandoffProviderOperationInput, w as RecordAllocationInput, x as ProvisionerIncarnationLossDecision, y as InfrastructureFailureDecision } from "../execution-attempt-repository-DFyAnchJ.mjs";
3
+ import { a as WorkflowEngineServiceOptions, c as ExecutionAttemptAuthority, d as WorkflowWorkspaceRootResolver, f as registerDrizzleWorkflowStorage, i as WorkflowEngineService, l as WorkflowMaterializationSpecResolution, n as createWorkflowEnginePackage, o as WorkflowTriggerReconciler, r as workflowEnginePackage, s as WorkflowExecutor, t as WorkflowEngineToken, u as WorkflowMaterializationSpecResolver } from "../package-Bf3hyuzs.mjs";
4
+ import { WorkflowTriggerPayloadPredicate, assertWorkflowTriggerPayload, compileWorkflowTriggerBindingFilter } from "./workflow-trigger-binding-consumer.mjs";
4
5
  import { z } from "zod";
5
6
  import * as _$_makaio_core0 from "@makaio/framework/core";
6
7
  import { IMakaioBus } from "@makaio/framework/bus";
7
8
  import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
8
- import { JsonPatchOperation, JsonValue, WorkflowExecution, WorkflowExecutionSchema, WorkflowListQuerySchema, WorkflowRunResult, WorkflowRunnerCompletion, createWorkflowFinalizerNamespace } from "@makaio/framework/contracts";
9
+ import { JsonPatchOperation, JsonValue, WorkflowAutomationTriggerBinding, WorkflowExecution, WorkflowExecutionSchema, WorkflowListQuerySchema, WorkflowRunResult, WorkflowRunnerCompletion, createWorkflowFinalizerNamespace } from "@makaio/framework/contracts";
9
10
  import * as _$drizzle_orm_sqlite_core0 from "drizzle-orm/sqlite-core";
10
11
  import * as _$drizzle_orm_pg_core0 from "drizzle-orm/pg-core";
11
12
  import * as _$_makaio_storage_drizzle0 from "@makaio/framework/storage/drizzle";
@@ -110,24 +111,9 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
110
111
  type: z.ZodLiteral<"sequence">;
111
112
  nodes: z.ZodLazy<z.ZodType<_$_makaio_contracts0.WorkflowNode[], unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.WorkflowNode[], unknown>>>;
112
113
  }, z.core.$strip>;
113
- triggers: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
114
- type: z.ZodLiteral<"manual">;
115
- }, z.core.$strip>, z.ZodObject<{
116
- type: z.ZodLiteral<"cron">;
117
- schedule: z.ZodString;
118
- timezone: z.ZodOptional<z.ZodString>;
119
- }, z.core.$strip>, z.ZodObject<{
120
- type: z.ZodLiteral<"webhook">;
121
- event: z.ZodString;
122
- branch: z.ZodOptional<z.ZodString>;
123
- repo: z.ZodOptional<z.ZodString>;
124
- }, z.core.$strip>, z.ZodObject<{
125
- type: z.ZodLiteral<"extension">;
126
- extensionType: z.ZodString;
127
- config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
128
- }, z.core.$strip>, z.ZodObject<{
129
- type: z.ZodLiteral<"bus-event">;
130
- subject: z.ZodString;
114
+ triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
115
+ kind: z.ZodString;
116
+ params: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
131
117
  filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodObject<{
132
118
  $in: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
133
119
  }, z.core.$strict>, z.ZodObject<{
@@ -140,7 +126,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
140
126
  $endsWith: z.ZodString;
141
127
  }, z.core.$strict>]>>>;
142
128
  filterExpression: z.ZodOptional<z.ZodString>;
143
- }, z.core.$strip>], "type">>>;
129
+ }, z.core.$strip>>>;
144
130
  scope: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
145
131
  type: z.ZodLiteral<"global">;
146
132
  }, z.core.$strict>, z.ZodObject<{
@@ -229,24 +215,9 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
229
215
  type: z.ZodLiteral<"sequence">;
230
216
  nodes: z.ZodLazy<z.ZodType<_$_makaio_contracts0.WorkflowNode[], unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.WorkflowNode[], unknown>>>;
231
217
  }, z.core.$strip>;
232
- triggers: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
233
- type: z.ZodLiteral<"manual">;
234
- }, z.core.$strip>, z.ZodObject<{
235
- type: z.ZodLiteral<"cron">;
236
- schedule: z.ZodString;
237
- timezone: z.ZodOptional<z.ZodString>;
238
- }, z.core.$strip>, z.ZodObject<{
239
- type: z.ZodLiteral<"webhook">;
240
- event: z.ZodString;
241
- branch: z.ZodOptional<z.ZodString>;
242
- repo: z.ZodOptional<z.ZodString>;
243
- }, z.core.$strip>, z.ZodObject<{
244
- type: z.ZodLiteral<"extension">;
245
- extensionType: z.ZodString;
246
- config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
247
- }, z.core.$strip>, z.ZodObject<{
248
- type: z.ZodLiteral<"bus-event">;
249
- subject: z.ZodString;
218
+ triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
219
+ kind: z.ZodString;
220
+ params: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
250
221
  filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodObject<{
251
222
  $in: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
252
223
  }, z.core.$strict>, z.ZodObject<{
@@ -259,7 +230,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
259
230
  $endsWith: z.ZodString;
260
231
  }, z.core.$strict>]>>>;
261
232
  filterExpression: z.ZodOptional<z.ZodString>;
262
- }, z.core.$strip>], "type">>>;
233
+ }, z.core.$strip>>>;
263
234
  scope: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
264
235
  type: z.ZodLiteral<"global">;
265
236
  }, z.core.$strict>, z.ZodObject<{
@@ -374,24 +345,9 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
374
345
  type: z.ZodLiteral<"sequence">;
375
346
  nodes: z.ZodLazy<z.ZodType<_$_makaio_contracts0.WorkflowNode[], unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.WorkflowNode[], unknown>>>;
376
347
  }, z.core.$strip>;
377
- triggers: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
378
- type: z.ZodLiteral<"manual">;
379
- }, z.core.$strip>, z.ZodObject<{
380
- type: z.ZodLiteral<"cron">;
381
- schedule: z.ZodString;
382
- timezone: z.ZodOptional<z.ZodString>;
383
- }, z.core.$strip>, z.ZodObject<{
384
- type: z.ZodLiteral<"webhook">;
385
- event: z.ZodString;
386
- branch: z.ZodOptional<z.ZodString>;
387
- repo: z.ZodOptional<z.ZodString>;
388
- }, z.core.$strip>, z.ZodObject<{
389
- type: z.ZodLiteral<"extension">;
390
- extensionType: z.ZodString;
391
- config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
392
- }, z.core.$strip>, z.ZodObject<{
393
- type: z.ZodLiteral<"bus-event">;
394
- subject: z.ZodString;
348
+ triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
349
+ kind: z.ZodString;
350
+ params: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
395
351
  filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodObject<{
396
352
  $in: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
397
353
  }, z.core.$strict>, z.ZodObject<{
@@ -404,7 +360,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
404
360
  $endsWith: z.ZodString;
405
361
  }, z.core.$strict>]>>>;
406
362
  filterExpression: z.ZodOptional<z.ZodString>;
407
- }, z.core.$strip>], "type">>>;
363
+ }, z.core.$strip>>>;
408
364
  scope: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
409
365
  type: z.ZodLiteral<"global">;
410
366
  }, z.core.$strict>, z.ZodObject<{
@@ -639,24 +595,9 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
639
595
  type: z.ZodLiteral<"sequence">;
640
596
  nodes: z.ZodLazy<z.ZodType<_$_makaio_contracts0.WorkflowNode[], unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.WorkflowNode[], unknown>>>;
641
597
  }, z.core.$strip>;
642
- triggers: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
643
- type: z.ZodLiteral<"manual">;
644
- }, z.core.$strip>, z.ZodObject<{
645
- type: z.ZodLiteral<"cron">;
646
- schedule: z.ZodString;
647
- timezone: z.ZodOptional<z.ZodString>;
648
- }, z.core.$strip>, z.ZodObject<{
649
- type: z.ZodLiteral<"webhook">;
650
- event: z.ZodString;
651
- branch: z.ZodOptional<z.ZodString>;
652
- repo: z.ZodOptional<z.ZodString>;
653
- }, z.core.$strip>, z.ZodObject<{
654
- type: z.ZodLiteral<"extension">;
655
- extensionType: z.ZodString;
656
- config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
657
- }, z.core.$strip>, z.ZodObject<{
658
- type: z.ZodLiteral<"bus-event">;
659
- subject: z.ZodString;
598
+ triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
599
+ kind: z.ZodString;
600
+ params: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
660
601
  filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodObject<{
661
602
  $in: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
662
603
  }, z.core.$strict>, z.ZodObject<{
@@ -669,7 +610,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
669
610
  $endsWith: z.ZodString;
670
611
  }, z.core.$strict>]>>>;
671
612
  filterExpression: z.ZodOptional<z.ZodString>;
672
- }, z.core.$strip>], "type">>>;
613
+ }, z.core.$strip>>>;
673
614
  scope: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
674
615
  type: z.ZodLiteral<"global">;
675
616
  }, z.core.$strict>, z.ZodObject<{
@@ -740,6 +681,10 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
740
681
  id: z.ZodString;
741
682
  }, z.core.$strict>], "type">>;
742
683
  triggerPayload: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
684
+ triggerMode: z.ZodOptional<z.ZodEnum<{
685
+ immediate: "immediate";
686
+ "await-trigger": "await-trigger";
687
+ }>>;
743
688
  artifactRef: z.ZodOptional<z.ZodObject<{
744
689
  kind: z.ZodString;
745
690
  id: z.ZodString;
@@ -1745,24 +1690,9 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1745
1690
  type: z.ZodLiteral<"sequence">;
1746
1691
  nodes: z.ZodLazy<z.ZodType<_$_makaio_contracts0.WorkflowNode[], unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.WorkflowNode[], unknown>>>;
1747
1692
  }, z.core.$strip>;
1748
- triggers: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1749
- type: z.ZodLiteral<"manual">;
1750
- }, z.core.$strip>, z.ZodObject<{
1751
- type: z.ZodLiteral<"cron">;
1752
- schedule: z.ZodString;
1753
- timezone: z.ZodOptional<z.ZodString>;
1754
- }, z.core.$strip>, z.ZodObject<{
1755
- type: z.ZodLiteral<"webhook">;
1756
- event: z.ZodString;
1757
- branch: z.ZodOptional<z.ZodString>;
1758
- repo: z.ZodOptional<z.ZodString>;
1759
- }, z.core.$strip>, z.ZodObject<{
1760
- type: z.ZodLiteral<"extension">;
1761
- extensionType: z.ZodString;
1762
- config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
1763
- }, z.core.$strip>, z.ZodObject<{
1764
- type: z.ZodLiteral<"bus-event">;
1765
- subject: z.ZodString;
1693
+ triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1694
+ kind: z.ZodString;
1695
+ params: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
1766
1696
  filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodObject<{
1767
1697
  $in: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
1768
1698
  }, z.core.$strict>, z.ZodObject<{
@@ -1775,7 +1705,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1775
1705
  $endsWith: z.ZodString;
1776
1706
  }, z.core.$strict>]>>>;
1777
1707
  filterExpression: z.ZodOptional<z.ZodString>;
1778
- }, z.core.$strip>], "type">>>;
1708
+ }, z.core.$strip>>>;
1779
1709
  scope: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
1780
1710
  type: z.ZodLiteral<"global">;
1781
1711
  }, z.core.$strict>, z.ZodObject<{
@@ -1846,6 +1776,10 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1846
1776
  id: z.ZodString;
1847
1777
  }, z.core.$strict>], "type">>;
1848
1778
  triggerPayload: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
1779
+ triggerMode: z.ZodOptional<z.ZodEnum<{
1780
+ immediate: "immediate";
1781
+ "await-trigger": "await-trigger";
1782
+ }>>;
1849
1783
  artifactRef: z.ZodOptional<z.ZodObject<{
1850
1784
  kind: z.ZodString;
1851
1785
  id: z.ZodString;
@@ -1943,24 +1877,9 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1943
1877
  type: z.ZodLiteral<"sequence">;
1944
1878
  nodes: z.ZodLazy<z.ZodType<_$_makaio_contracts0.WorkflowNode[], unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.WorkflowNode[], unknown>>>;
1945
1879
  }, z.core.$strip>;
1946
- triggers: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1947
- type: z.ZodLiteral<"manual">;
1948
- }, z.core.$strip>, z.ZodObject<{
1949
- type: z.ZodLiteral<"cron">;
1950
- schedule: z.ZodString;
1951
- timezone: z.ZodOptional<z.ZodString>;
1952
- }, z.core.$strip>, z.ZodObject<{
1953
- type: z.ZodLiteral<"webhook">;
1954
- event: z.ZodString;
1955
- branch: z.ZodOptional<z.ZodString>;
1956
- repo: z.ZodOptional<z.ZodString>;
1957
- }, z.core.$strip>, z.ZodObject<{
1958
- type: z.ZodLiteral<"extension">;
1959
- extensionType: z.ZodString;
1960
- config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
1961
- }, z.core.$strip>, z.ZodObject<{
1962
- type: z.ZodLiteral<"bus-event">;
1963
- subject: z.ZodString;
1880
+ triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1881
+ kind: z.ZodString;
1882
+ params: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
1964
1883
  filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodObject<{
1965
1884
  $in: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
1966
1885
  }, z.core.$strict>, z.ZodObject<{
@@ -1973,7 +1892,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1973
1892
  $endsWith: z.ZodString;
1974
1893
  }, z.core.$strict>]>>>;
1975
1894
  filterExpression: z.ZodOptional<z.ZodString>;
1976
- }, z.core.$strip>], "type">>>;
1895
+ }, z.core.$strip>>>;
1977
1896
  scope: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
1978
1897
  type: z.ZodLiteral<"global">;
1979
1898
  }, z.core.$strict>, z.ZodObject<{
@@ -2044,6 +1963,10 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
2044
1963
  id: z.ZodString;
2045
1964
  }, z.core.$strict>], "type">>;
2046
1965
  triggerPayload: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
1966
+ triggerMode: z.ZodOptional<z.ZodEnum<{
1967
+ immediate: "immediate";
1968
+ "await-trigger": "await-trigger";
1969
+ }>>;
2047
1970
  artifactRef: z.ZodOptional<z.ZodObject<{
2048
1971
  kind: z.ZodString;
2049
1972
  id: z.ZodString;
@@ -2581,37 +2504,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
2581
2504
  tableName: "workflow_definitions";
2582
2505
  dataType: "json";
2583
2506
  columnType: "SQLiteTextJson";
2584
- data: ({
2585
- type: "manual";
2586
- } | {
2587
- type: "cron";
2588
- schedule: string;
2589
- timezone?: string | undefined;
2590
- } | {
2591
- type: "webhook";
2592
- event: string;
2593
- branch?: string | undefined;
2594
- repo?: string | undefined;
2595
- } | {
2596
- type: "extension";
2597
- extensionType: string;
2598
- config?: Record<string, unknown> | undefined;
2599
- } | {
2600
- type: "bus-event";
2601
- subject: string;
2602
- filter?: Record<string, string | number | boolean | {
2603
- $in: (string | number | boolean | null)[];
2604
- } | {
2605
- $ne: string | number | boolean | null;
2606
- } | {
2607
- $exists: boolean;
2608
- } | {
2609
- $startsWith: string;
2610
- } | {
2611
- $endsWith: string;
2612
- } | null> | undefined;
2613
- filterExpression?: string | undefined;
2614
- })[];
2507
+ data: _$_makaio_contracts0.WorkflowAutomationTriggerBinding[];
2615
2508
  driverParam: string;
2616
2509
  notNull: false;
2617
2510
  hasDefault: false;
@@ -2623,37 +2516,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
2623
2516
  identity: undefined;
2624
2517
  generated: undefined;
2625
2518
  }, {}, {
2626
- $type: ({
2627
- type: "manual";
2628
- } | {
2629
- type: "cron";
2630
- schedule: string;
2631
- timezone?: string | undefined;
2632
- } | {
2633
- type: "webhook";
2634
- event: string;
2635
- branch?: string | undefined;
2636
- repo?: string | undefined;
2637
- } | {
2638
- type: "extension";
2639
- extensionType: string;
2640
- config?: Record<string, unknown> | undefined;
2641
- } | {
2642
- type: "bus-event";
2643
- subject: string;
2644
- filter?: Record<string, string | number | boolean | {
2645
- $in: (string | number | boolean | null)[];
2646
- } | {
2647
- $ne: string | number | boolean | null;
2648
- } | {
2649
- $exists: boolean;
2650
- } | {
2651
- $startsWith: string;
2652
- } | {
2653
- $endsWith: string;
2654
- } | null> | undefined;
2655
- filterExpression?: string | undefined;
2656
- })[];
2519
+ $type: _$_makaio_contracts0.WorkflowAutomationTriggerBinding[];
2657
2520
  }>;
2658
2521
  };
2659
2522
  dialect: "sqlite";
@@ -4072,24 +3935,9 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
4072
3935
  create?: string | undefined;
4073
3936
  statusPath?: string | undefined;
4074
3937
  } | undefined;
4075
- triggers?: ({
4076
- type: "manual";
4077
- } | {
4078
- type: "cron";
4079
- schedule: string;
4080
- timezone?: string | undefined;
4081
- } | {
4082
- type: "webhook";
4083
- event: string;
4084
- branch?: string | undefined;
4085
- repo?: string | undefined;
4086
- } | {
4087
- type: "extension";
4088
- extensionType: string;
4089
- config?: Record<string, unknown> | undefined;
4090
- } | {
4091
- type: "bus-event";
4092
- subject: string;
3938
+ triggers?: {
3939
+ kind: string;
3940
+ params: Record<string, _$_makaio_contracts0.JsonValue>;
4093
3941
  filter?: Record<string, string | number | boolean | {
4094
3942
  $in: (string | number | boolean | null)[];
4095
3943
  } | {
@@ -4102,7 +3950,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
4102
3950
  $endsWith: string;
4103
3951
  } | null> | undefined;
4104
3952
  filterExpression?: string | undefined;
4105
- })[] | undefined;
3953
+ }[] | undefined;
4106
3954
  canvasLayout?: Record<string, _$_makaio_contracts0.JsonValue> | undefined;
4107
3955
  source?: {
4108
3956
  kind: "editor";
@@ -4195,24 +4043,9 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
4195
4043
  create?: string | undefined;
4196
4044
  statusPath?: string | undefined;
4197
4045
  } | undefined;
4198
- triggers?: ({
4199
- type: "manual";
4200
- } | {
4201
- type: "cron";
4202
- schedule: string;
4203
- timezone?: string | undefined;
4204
- } | {
4205
- type: "webhook";
4206
- event: string;
4207
- branch?: string | undefined;
4208
- repo?: string | undefined;
4209
- } | {
4210
- type: "extension";
4211
- extensionType: string;
4212
- config?: Record<string, unknown> | undefined;
4213
- } | {
4214
- type: "bus-event";
4215
- subject: string;
4046
+ triggers?: {
4047
+ kind: string;
4048
+ params: Record<string, _$_makaio_contracts0.JsonValue>;
4216
4049
  filter?: Record<string, string | number | boolean | {
4217
4050
  $in: (string | number | boolean | null)[];
4218
4051
  } | {
@@ -4225,7 +4058,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
4225
4058
  $endsWith: string;
4226
4059
  } | null> | undefined;
4227
4060
  filterExpression?: string | undefined;
4228
- })[] | undefined;
4061
+ }[] | undefined;
4229
4062
  canvasLayout?: Record<string, _$_makaio_contracts0.JsonValue> | undefined;
4230
4063
  source?: {
4231
4064
  kind: "editor";
@@ -4347,6 +4180,26 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
4347
4180
  }, {}, {
4348
4181
  $type: Record<string, _$_makaio_contracts0.JsonValue>;
4349
4182
  }>;
4183
+ triggerMode: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
4184
+ name: "trigger_mode";
4185
+ tableName: "workflow_run_contexts";
4186
+ dataType: "string";
4187
+ columnType: "SQLiteText";
4188
+ data: NonNullable<"immediate" | "await-trigger" | undefined>;
4189
+ driverParam: string;
4190
+ notNull: true;
4191
+ hasDefault: true;
4192
+ isPrimaryKey: false;
4193
+ isAutoincrement: false;
4194
+ hasRuntimeDefault: false;
4195
+ enumValues: ["immediate", "await-trigger"];
4196
+ baseColumn: never;
4197
+ identity: undefined;
4198
+ generated: undefined;
4199
+ }, {}, {
4200
+ length: number | undefined;
4201
+ $type: NonNullable<"immediate" | "await-trigger" | undefined>;
4202
+ }>;
4350
4203
  artifactRef: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
4351
4204
  name: string;
4352
4205
  tableName: "workflow_run_contexts";
@@ -5881,24 +5734,9 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
5881
5734
  type: z.ZodLiteral<"sequence">;
5882
5735
  nodes: z.ZodLazy<z.ZodType<_$_makaio_contracts0.WorkflowNode[], unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.WorkflowNode[], unknown>>>;
5883
5736
  }, z.core.$strip>;
5884
- triggers: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
5885
- type: z.ZodLiteral<"manual">;
5886
- }, z.core.$strip>, z.ZodObject<{
5887
- type: z.ZodLiteral<"cron">;
5888
- schedule: z.ZodString;
5889
- timezone: z.ZodOptional<z.ZodString>;
5890
- }, z.core.$strip>, z.ZodObject<{
5891
- type: z.ZodLiteral<"webhook">;
5892
- event: z.ZodString;
5893
- branch: z.ZodOptional<z.ZodString>;
5894
- repo: z.ZodOptional<z.ZodString>;
5895
- }, z.core.$strip>, z.ZodObject<{
5896
- type: z.ZodLiteral<"extension">;
5897
- extensionType: z.ZodString;
5898
- config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
5899
- }, z.core.$strip>, z.ZodObject<{
5900
- type: z.ZodLiteral<"bus-event">;
5901
- subject: z.ZodString;
5737
+ triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
5738
+ kind: z.ZodString;
5739
+ params: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
5902
5740
  filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodObject<{
5903
5741
  $in: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
5904
5742
  }, z.core.$strict>, z.ZodObject<{
@@ -5911,7 +5749,7 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
5911
5749
  $endsWith: z.ZodString;
5912
5750
  }, z.core.$strict>]>>>;
5913
5751
  filterExpression: z.ZodOptional<z.ZodString>;
5914
- }, z.core.$strip>], "type">>>;
5752
+ }, z.core.$strip>>>;
5915
5753
  scope: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
5916
5754
  type: z.ZodLiteral<"global">;
5917
5755
  }, z.core.$strict>, z.ZodObject<{
@@ -6000,24 +5838,9 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6000
5838
  type: z.ZodLiteral<"sequence">;
6001
5839
  nodes: z.ZodLazy<z.ZodType<_$_makaio_contracts0.WorkflowNode[], unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.WorkflowNode[], unknown>>>;
6002
5840
  }, z.core.$strip>;
6003
- triggers: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
6004
- type: z.ZodLiteral<"manual">;
6005
- }, z.core.$strip>, z.ZodObject<{
6006
- type: z.ZodLiteral<"cron">;
6007
- schedule: z.ZodString;
6008
- timezone: z.ZodOptional<z.ZodString>;
6009
- }, z.core.$strip>, z.ZodObject<{
6010
- type: z.ZodLiteral<"webhook">;
6011
- event: z.ZodString;
6012
- branch: z.ZodOptional<z.ZodString>;
6013
- repo: z.ZodOptional<z.ZodString>;
6014
- }, z.core.$strip>, z.ZodObject<{
6015
- type: z.ZodLiteral<"extension">;
6016
- extensionType: z.ZodString;
6017
- config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
6018
- }, z.core.$strip>, z.ZodObject<{
6019
- type: z.ZodLiteral<"bus-event">;
6020
- subject: z.ZodString;
5841
+ triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
5842
+ kind: z.ZodString;
5843
+ params: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
6021
5844
  filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodObject<{
6022
5845
  $in: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
6023
5846
  }, z.core.$strict>, z.ZodObject<{
@@ -6030,7 +5853,7 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6030
5853
  $endsWith: z.ZodString;
6031
5854
  }, z.core.$strict>]>>>;
6032
5855
  filterExpression: z.ZodOptional<z.ZodString>;
6033
- }, z.core.$strip>], "type">>>;
5856
+ }, z.core.$strip>>>;
6034
5857
  scope: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
6035
5858
  type: z.ZodLiteral<"global">;
6036
5859
  }, z.core.$strict>, z.ZodObject<{
@@ -6145,24 +5968,9 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6145
5968
  type: z.ZodLiteral<"sequence">;
6146
5969
  nodes: z.ZodLazy<z.ZodType<_$_makaio_contracts0.WorkflowNode[], unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.WorkflowNode[], unknown>>>;
6147
5970
  }, z.core.$strip>;
6148
- triggers: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
6149
- type: z.ZodLiteral<"manual">;
6150
- }, z.core.$strip>, z.ZodObject<{
6151
- type: z.ZodLiteral<"cron">;
6152
- schedule: z.ZodString;
6153
- timezone: z.ZodOptional<z.ZodString>;
6154
- }, z.core.$strip>, z.ZodObject<{
6155
- type: z.ZodLiteral<"webhook">;
6156
- event: z.ZodString;
6157
- branch: z.ZodOptional<z.ZodString>;
6158
- repo: z.ZodOptional<z.ZodString>;
6159
- }, z.core.$strip>, z.ZodObject<{
6160
- type: z.ZodLiteral<"extension">;
6161
- extensionType: z.ZodString;
6162
- config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
6163
- }, z.core.$strip>, z.ZodObject<{
6164
- type: z.ZodLiteral<"bus-event">;
6165
- subject: z.ZodString;
5971
+ triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
5972
+ kind: z.ZodString;
5973
+ params: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
6166
5974
  filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodObject<{
6167
5975
  $in: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
6168
5976
  }, z.core.$strict>, z.ZodObject<{
@@ -6175,7 +5983,7 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6175
5983
  $endsWith: z.ZodString;
6176
5984
  }, z.core.$strict>]>>>;
6177
5985
  filterExpression: z.ZodOptional<z.ZodString>;
6178
- }, z.core.$strip>], "type">>>;
5986
+ }, z.core.$strip>>>;
6179
5987
  scope: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
6180
5988
  type: z.ZodLiteral<"global">;
6181
5989
  }, z.core.$strict>, z.ZodObject<{
@@ -6410,24 +6218,9 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6410
6218
  type: z.ZodLiteral<"sequence">;
6411
6219
  nodes: z.ZodLazy<z.ZodType<_$_makaio_contracts0.WorkflowNode[], unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.WorkflowNode[], unknown>>>;
6412
6220
  }, z.core.$strip>;
6413
- triggers: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
6414
- type: z.ZodLiteral<"manual">;
6415
- }, z.core.$strip>, z.ZodObject<{
6416
- type: z.ZodLiteral<"cron">;
6417
- schedule: z.ZodString;
6418
- timezone: z.ZodOptional<z.ZodString>;
6419
- }, z.core.$strip>, z.ZodObject<{
6420
- type: z.ZodLiteral<"webhook">;
6421
- event: z.ZodString;
6422
- branch: z.ZodOptional<z.ZodString>;
6423
- repo: z.ZodOptional<z.ZodString>;
6424
- }, z.core.$strip>, z.ZodObject<{
6425
- type: z.ZodLiteral<"extension">;
6426
- extensionType: z.ZodString;
6427
- config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
6428
- }, z.core.$strip>, z.ZodObject<{
6429
- type: z.ZodLiteral<"bus-event">;
6430
- subject: z.ZodString;
6221
+ triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
6222
+ kind: z.ZodString;
6223
+ params: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
6431
6224
  filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodObject<{
6432
6225
  $in: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
6433
6226
  }, z.core.$strict>, z.ZodObject<{
@@ -6440,7 +6233,7 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6440
6233
  $endsWith: z.ZodString;
6441
6234
  }, z.core.$strict>]>>>;
6442
6235
  filterExpression: z.ZodOptional<z.ZodString>;
6443
- }, z.core.$strip>], "type">>>;
6236
+ }, z.core.$strip>>>;
6444
6237
  scope: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
6445
6238
  type: z.ZodLiteral<"global">;
6446
6239
  }, z.core.$strict>, z.ZodObject<{
@@ -6511,6 +6304,10 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6511
6304
  id: z.ZodString;
6512
6305
  }, z.core.$strict>], "type">>;
6513
6306
  triggerPayload: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
6307
+ triggerMode: z.ZodOptional<z.ZodEnum<{
6308
+ immediate: "immediate";
6309
+ "await-trigger": "await-trigger";
6310
+ }>>;
6514
6311
  artifactRef: z.ZodOptional<z.ZodObject<{
6515
6312
  kind: z.ZodString;
6516
6313
  id: z.ZodString;
@@ -7516,24 +7313,9 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7516
7313
  type: z.ZodLiteral<"sequence">;
7517
7314
  nodes: z.ZodLazy<z.ZodType<_$_makaio_contracts0.WorkflowNode[], unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.WorkflowNode[], unknown>>>;
7518
7315
  }, z.core.$strip>;
7519
- triggers: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
7520
- type: z.ZodLiteral<"manual">;
7521
- }, z.core.$strip>, z.ZodObject<{
7522
- type: z.ZodLiteral<"cron">;
7523
- schedule: z.ZodString;
7524
- timezone: z.ZodOptional<z.ZodString>;
7525
- }, z.core.$strip>, z.ZodObject<{
7526
- type: z.ZodLiteral<"webhook">;
7527
- event: z.ZodString;
7528
- branch: z.ZodOptional<z.ZodString>;
7529
- repo: z.ZodOptional<z.ZodString>;
7530
- }, z.core.$strip>, z.ZodObject<{
7531
- type: z.ZodLiteral<"extension">;
7532
- extensionType: z.ZodString;
7533
- config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
7534
- }, z.core.$strip>, z.ZodObject<{
7535
- type: z.ZodLiteral<"bus-event">;
7536
- subject: z.ZodString;
7316
+ triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
7317
+ kind: z.ZodString;
7318
+ params: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
7537
7319
  filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodObject<{
7538
7320
  $in: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
7539
7321
  }, z.core.$strict>, z.ZodObject<{
@@ -7546,7 +7328,7 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7546
7328
  $endsWith: z.ZodString;
7547
7329
  }, z.core.$strict>]>>>;
7548
7330
  filterExpression: z.ZodOptional<z.ZodString>;
7549
- }, z.core.$strip>], "type">>>;
7331
+ }, z.core.$strip>>>;
7550
7332
  scope: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
7551
7333
  type: z.ZodLiteral<"global">;
7552
7334
  }, z.core.$strict>, z.ZodObject<{
@@ -7617,6 +7399,10 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7617
7399
  id: z.ZodString;
7618
7400
  }, z.core.$strict>], "type">>;
7619
7401
  triggerPayload: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
7402
+ triggerMode: z.ZodOptional<z.ZodEnum<{
7403
+ immediate: "immediate";
7404
+ "await-trigger": "await-trigger";
7405
+ }>>;
7620
7406
  artifactRef: z.ZodOptional<z.ZodObject<{
7621
7407
  kind: z.ZodString;
7622
7408
  id: z.ZodString;
@@ -7714,24 +7500,9 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7714
7500
  type: z.ZodLiteral<"sequence">;
7715
7501
  nodes: z.ZodLazy<z.ZodType<_$_makaio_contracts0.WorkflowNode[], unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.WorkflowNode[], unknown>>>;
7716
7502
  }, z.core.$strip>;
7717
- triggers: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
7718
- type: z.ZodLiteral<"manual">;
7719
- }, z.core.$strip>, z.ZodObject<{
7720
- type: z.ZodLiteral<"cron">;
7721
- schedule: z.ZodString;
7722
- timezone: z.ZodOptional<z.ZodString>;
7723
- }, z.core.$strip>, z.ZodObject<{
7724
- type: z.ZodLiteral<"webhook">;
7725
- event: z.ZodString;
7726
- branch: z.ZodOptional<z.ZodString>;
7727
- repo: z.ZodOptional<z.ZodString>;
7728
- }, z.core.$strip>, z.ZodObject<{
7729
- type: z.ZodLiteral<"extension">;
7730
- extensionType: z.ZodString;
7731
- config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
7732
- }, z.core.$strip>, z.ZodObject<{
7733
- type: z.ZodLiteral<"bus-event">;
7734
- subject: z.ZodString;
7503
+ triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
7504
+ kind: z.ZodString;
7505
+ params: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
7735
7506
  filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodObject<{
7736
7507
  $in: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
7737
7508
  }, z.core.$strict>, z.ZodObject<{
@@ -7744,7 +7515,7 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7744
7515
  $endsWith: z.ZodString;
7745
7516
  }, z.core.$strict>]>>>;
7746
7517
  filterExpression: z.ZodOptional<z.ZodString>;
7747
- }, z.core.$strip>], "type">>>;
7518
+ }, z.core.$strip>>>;
7748
7519
  scope: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
7749
7520
  type: z.ZodLiteral<"global">;
7750
7521
  }, z.core.$strict>, z.ZodObject<{
@@ -7815,6 +7586,10 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7815
7586
  id: z.ZodString;
7816
7587
  }, z.core.$strict>], "type">>;
7817
7588
  triggerPayload: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
7589
+ triggerMode: z.ZodOptional<z.ZodEnum<{
7590
+ immediate: "immediate";
7591
+ "await-trigger": "await-trigger";
7592
+ }>>;
7818
7593
  artifactRef: z.ZodOptional<z.ZodObject<{
7819
7594
  kind: z.ZodString;
7820
7595
  id: z.ZodString;
@@ -8104,68 +7879,12 @@ declare const workflowDefinitionsDual: _$_makaio_storage_drizzle0.DualTable<"wor
8104
7879
  resolve?: string | undefined;
8105
7880
  create?: string | undefined;
8106
7881
  statusPath?: string | undefined;
8107
- } | undefined>>; /** Trigger configuration (JSON array). Null means manual-only default. */
8108
- triggers: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.$Type<_$drizzle_orm_sqlite_core0.SQLiteTextJsonBuilderInitial<string>, ({
8109
- type: "manual";
8110
- } | {
8111
- type: "cron";
8112
- schedule: string;
8113
- timezone?: string | undefined;
8114
- } | {
8115
- type: "webhook";
8116
- event: string;
8117
- branch?: string | undefined;
8118
- repo?: string | undefined;
8119
- } | {
8120
- type: "extension";
8121
- extensionType: string;
8122
- config?: Record<string, unknown> | undefined;
8123
- } | {
8124
- type: "bus-event";
8125
- subject: string;
8126
- filter?: Record<string, string | number | boolean | {
8127
- $in: (string | number | boolean | null)[];
8128
- } | {
8129
- $ne: string | number | boolean | null;
8130
- } | {
8131
- $exists: boolean;
8132
- } | {
8133
- $startsWith: string;
8134
- } | {
8135
- $endsWith: string;
8136
- } | null> | undefined;
8137
- filterExpression?: string | undefined;
8138
- })[]>, _$drizzle_orm0.$Type<_$drizzle_orm_pg_core0.PgJsonbBuilderInitial<string>, ({
8139
- type: "manual";
8140
- } | {
8141
- type: "cron";
8142
- schedule: string;
8143
- timezone?: string | undefined;
8144
- } | {
8145
- type: "webhook";
8146
- event: string;
8147
- branch?: string | undefined;
8148
- repo?: string | undefined;
8149
- } | {
8150
- type: "extension";
8151
- extensionType: string;
8152
- config?: Record<string, unknown> | undefined;
8153
- } | {
8154
- type: "bus-event";
8155
- subject: string;
8156
- filter?: Record<string, string | number | boolean | {
8157
- $in: (string | number | boolean | null)[];
8158
- } | {
8159
- $ne: string | number | boolean | null;
8160
- } | {
8161
- $exists: boolean;
8162
- } | {
8163
- $startsWith: string;
8164
- } | {
8165
- $endsWith: string;
8166
- } | null> | undefined;
8167
- filterExpression?: string | undefined;
8168
- })[]>>;
7882
+ } | undefined>>;
7883
+ /**
7884
+ * Declarative automation trigger bindings (JSON array).
7885
+ * Null means manual-only: the workflow starts through invocation.
7886
+ */
7887
+ triggers: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.$Type<_$drizzle_orm_sqlite_core0.SQLiteTextJsonBuilderInitial<string>, WorkflowAutomationTriggerBinding[]>, _$drizzle_orm0.$Type<_$drizzle_orm_pg_core0.PgJsonbBuilderInitial<string>, WorkflowAutomationTriggerBinding[]>>;
8169
7888
  }>;
8170
7889
  /**
8171
7890
  * Workflow executions table.
@@ -8348,4 +8067,4 @@ declare function patchWorkflowState(db: MakaioDatabase, params: {
8348
8067
  value: JsonValue;
8349
8068
  }>;
8350
8069
  //#endregion
8351
- export { type AllocationRecordingDecision, type AllocationRefEvolution, type AllocationRefEvolutionDecision, type AllocationTerminationDecision, type AuthorityDispatchRunnerOptions, type BeginProvisioningInput, type DiscoveredAllocationDecision, DuplicateExecutionAttemptError, EXECUTION_ATTEMPT_SETTLEMENT_KINDS, EXECUTION_ATTEMPT_STATUSES, ExecutionAttemptAuthority, type ExecutionAttemptCreate, type ExecutionAttemptOutcomeCommit, type ExecutionAttemptOutcomeDecision, type ExecutionAttemptRecord, type ExecutionAttemptRecoveryOperations, type ExecutionAttemptRepository, type ExecutionAttemptSettlementKind, type ExecutionAttemptStatus, type HandoffProviderOperationInput, type InfrastructureFailureDecision, type InitialProviderOperationClaimContext, type InitialProviderOperationClaimContextSource, PROVIDER_OPERATION_OBLIGATIONS, type PendingAttemptAbandonmentDecision, type ProcessBoundProvisionerLossProof, type ProviderOperationClaim, type ProviderOperationClaimDecision, type ProviderOperationMutationDecision, type ProviderOperationObligation, type ProviderOperationOwnershipRecord, type ProvisionerIncarnationLossDecision, type ProvisioningAbsenceDecision, type ProvisioningClaimDecision, type RecordAllocationInput, type RecordAllocationTerminatedInput, type RecordInfrastructureFailureInput, type RecordProviderOperationUncertaintyInput, type RecordProvisionerIncarnationLostInput, type RecordProvisioningAbsentInput, type RecoverableAttemptRecord, type RenewProviderOperationClaimInput, type TakeOverProviderOperationInput, WorkflowEngineService, type WorkflowEngineServiceOptions, WorkflowEngineToken, WorkflowExecutor, type WorkflowMaterializationSpecResolution, type WorkflowMaterializationSpecResolver, WorkflowStorageNamespace, WorkflowStorageSubjects, type WorkflowSuccessFinalizer, type WorkflowWorkspaceRootResolver, buildWorkflowExpressionContextFromResolvedInputs, createWorkflowEnginePackage, getWorkflowState, initializeWorkflowState, patchWorkflowState, registerDrizzleWorkflowStorage, runAuthorityDispatchedAttempt, runShellStep, sameAllocationRef, sameWorkflowResult, workflowDefinitionsDual, workflowEnginePackage, workflowExecutionStateDual, workflowExecutionStateEventsDual, workflowExecutionsDual, workflowFinalizationsDual, workflowStepSpansDual, worklogFrameEntriesDual, worklogSummariesDual };
8070
+ export { type AllocationRecordingDecision, type AllocationRefEvolution, type AllocationRefEvolutionDecision, type AllocationTerminationDecision, type AuthorityDispatchRunnerOptions, type BeginProvisioningInput, type DiscoveredAllocationDecision, DuplicateExecutionAttemptError, EXECUTION_ATTEMPT_SETTLEMENT_KINDS, EXECUTION_ATTEMPT_STATUSES, ExecutionAttemptAuthority, type ExecutionAttemptCreate, type ExecutionAttemptOutcomeCommit, type ExecutionAttemptOutcomeDecision, type ExecutionAttemptRecord, type ExecutionAttemptRecoveryOperations, type ExecutionAttemptRepository, type ExecutionAttemptSettlementKind, type ExecutionAttemptStatus, type HandoffProviderOperationInput, type InfrastructureFailureDecision, type InitialProviderOperationClaimContext, type InitialProviderOperationClaimContextSource, PROVIDER_OPERATION_OBLIGATIONS, type PendingAttemptAbandonmentDecision, type ProcessBoundProvisionerLossProof, type ProviderOperationClaim, type ProviderOperationClaimDecision, type ProviderOperationMutationDecision, type ProviderOperationObligation, type ProviderOperationOwnershipRecord, type ProvisionerIncarnationLossDecision, type ProvisioningAbsenceDecision, type ProvisioningClaimDecision, type RecordAllocationInput, type RecordAllocationTerminatedInput, type RecordInfrastructureFailureInput, type RecordProviderOperationUncertaintyInput, type RecordProvisionerIncarnationLostInput, type RecordProvisioningAbsentInput, type RecoverableAttemptRecord, type RenewProviderOperationClaimInput, type TakeOverProviderOperationInput, WorkflowEngineService, type WorkflowEngineServiceOptions, WorkflowEngineToken, WorkflowExecutor, type WorkflowMaterializationSpecResolution, type WorkflowMaterializationSpecResolver, WorkflowStorageNamespace, WorkflowStorageSubjects, type WorkflowSuccessFinalizer, type WorkflowTriggerPayloadPredicate, WorkflowTriggerReconciler, type WorkflowWorkspaceRootResolver, assertWorkflowTriggerPayload, buildWorkflowExpressionContextFromResolvedInputs, compileWorkflowTriggerBindingFilter, createWorkflowEnginePackage, getWorkflowState, initializeWorkflowState, patchWorkflowState, registerDrizzleWorkflowStorage, runAuthorityDispatchedAttempt, runShellStep, sameAllocationRef, sameWorkflowResult, workflowDefinitionsDual, workflowEnginePackage, workflowExecutionStateDual, workflowExecutionStateEventsDual, workflowExecutionsDual, workflowFinalizationsDual, workflowStepSpansDual, worklogFrameEntriesDual, worklogSummariesDual };