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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (511) hide show
  1. package/dist/.makaio-build.json +4 -3
  2. package/dist/{account-identity-DFx8pwKL.mjs → account-identity-DGpXd8h_.mjs} +1 -1
  3. package/dist/adapter-BkdJaOOG.mjs +1 -0
  4. package/dist/adapter-subsystem/index.d.mts +138 -6
  5. package/dist/adapter-subsystem/index.mjs +1 -1
  6. package/dist/adapters/acp-client/index.d.mts +105 -7
  7. package/dist/adapters/acp-client/index.mjs +2 -2
  8. package/dist/adapters/claude/index.d.mts +24 -24
  9. package/dist/adapters/config/index.d.mts +1 -1
  10. package/dist/adapters/config/index.mjs +1 -1
  11. package/dist/adapters/index.d.mts +379 -812
  12. package/dist/adapters/index.mjs +6 -6
  13. package/dist/adapters/node.d.mts +1 -1
  14. package/dist/adapters/node.mjs +1 -1
  15. package/dist/adapters/stream-session/index.d.mts +28 -7
  16. package/dist/adapters/stream-session/index.mjs +1 -1
  17. package/dist/agent-namespace-D51PODFf.mjs +1 -0
  18. package/dist/{ajv-DD3SIL2i.mjs → ajv-L5fKxaia.mjs} +2 -2
  19. package/dist/artifact-k3veR4Yx.mjs +1 -0
  20. package/dist/attach-error-BSlc7JfL.mjs +1 -0
  21. package/dist/{auth-DGEdiHF6.mjs → auth-A1K_7q-8.mjs} +1 -1
  22. package/dist/authority-state-bootstrap-YwtEImIB.mjs +1 -0
  23. package/dist/automation-trigger-CuSdQwir.mjs +1 -0
  24. package/dist/await-trigger-ph1S0zVI.mjs +1 -0
  25. package/dist/bus/index.d.mts +17 -3
  26. package/dist/bus/index.mjs +1 -1
  27. package/dist/bus-BIj0_aG6.mjs +1 -0
  28. package/dist/bus-CqgrphNE.mjs +2 -0
  29. package/dist/{canonical-model-BAytQ4NV.mjs → canonical-model-DJASlL4m.mjs} +1 -1
  30. package/dist/{capabilities-BQEp34ir.mjs → capabilities-Bqckjh7G.mjs} +1 -1
  31. package/dist/{client-DbS847wW.mjs → client-BL5__WT0.mjs} +1 -1
  32. package/dist/clients/index.d.mts +7 -7
  33. package/dist/clients/index.mjs +1 -1
  34. package/dist/clients/managed-install.d.mts +1 -1
  35. package/dist/clients/managed-install.mjs +1 -1
  36. package/dist/{compression-74fFeBha.mjs → compression-BbttSqm8.mjs} +1 -1
  37. package/dist/{config-namespace-TVX-hG4I.mjs → config-namespace-CyzeLWSg.mjs} +1 -1
  38. package/dist/{context-resolution-DNRkyQto.d.mts → context-resolution-CW0ya4QO.d.mts} +14 -14
  39. package/dist/contracts/adapter/index.d.mts +3 -3
  40. package/dist/contracts/adapter/index.mjs +1 -1
  41. package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
  42. package/dist/contracts/artifact/index.d.mts +3 -3
  43. package/dist/contracts/artifact/index.mjs +1 -1
  44. package/dist/contracts/auth/index.d.mts +2 -2
  45. package/dist/contracts/auth/index.mjs +1 -1
  46. package/dist/contracts/automation-trigger/index.d.mts +4 -0
  47. package/dist/contracts/automation-trigger/index.mjs +1 -0
  48. package/dist/contracts/canonical-model/index.d.mts +1 -1
  49. package/dist/contracts/canonical-model/index.mjs +1 -1
  50. package/dist/contracts/capabilities/index.d.mts +1 -1
  51. package/dist/contracts/capabilities/index.mjs +1 -1
  52. package/dist/contracts/client/index.d.mts +2 -2
  53. package/dist/contracts/client/index.mjs +1 -1
  54. package/dist/contracts/common/index.d.mts +1 -1
  55. package/dist/contracts/config/index.d.mts +1 -1
  56. package/dist/contracts/config/index.mjs +1 -1
  57. package/dist/contracts/extension/index.d.mts +6 -5
  58. package/dist/contracts/extension/index.mjs +1 -1
  59. package/dist/contracts/facet/index.d.mts +1 -1
  60. package/dist/contracts/facet/index.mjs +1 -1
  61. package/dist/contracts/harness/index.d.mts +1 -1
  62. package/dist/contracts/harness/index.mjs +1 -1
  63. package/dist/contracts/host/index.d.mts +1 -1
  64. package/dist/contracts/host/index.mjs +1 -1
  65. package/dist/contracts/index.d.mts +161 -100
  66. package/dist/contracts/index.mjs +1 -1
  67. package/dist/contracts/materialization/index.d.mts +3 -3
  68. package/dist/contracts/materialization/index.mjs +1 -1
  69. package/dist/contracts/model-registry/index.d.mts +1 -1
  70. package/dist/contracts/model-registry/index.mjs +1 -1
  71. package/dist/contracts/native-session-supervisor/index.d.mts +1 -1
  72. package/dist/contracts/native-session-supervisor/index.mjs +1 -1
  73. package/dist/contracts/platform/index.d.mts +1 -1
  74. package/dist/contracts/platform/index.mjs +1 -1
  75. package/dist/contracts/provider/index.d.mts +2 -2
  76. package/dist/contracts/provider/index.mjs +1 -1
  77. package/dist/contracts/reaction/index.d.mts +2 -0
  78. package/dist/contracts/reaction/index.mjs +1 -0
  79. package/dist/contracts/session/index.d.mts +3 -3
  80. package/dist/contracts/session/index.mjs +1 -1
  81. package/dist/contracts/shared/index.d.mts +3 -3
  82. package/dist/contracts/shared/index.mjs +1 -1
  83. package/dist/contracts/skill/index.d.mts +1 -1
  84. package/dist/contracts/skill/index.mjs +1 -1
  85. package/dist/contracts/telemetry/index.d.mts +1 -1
  86. package/dist/contracts/telemetry/index.mjs +1 -1
  87. package/dist/contracts/timeout/index.d.mts +1 -1
  88. package/dist/contracts/timeout/index.mjs +1 -1
  89. package/dist/contracts/toast/index.mjs +1 -1
  90. package/dist/contracts/variant/index.d.mts +1 -1
  91. package/dist/contracts/variant/index.mjs +1 -1
  92. package/dist/contracts/worker-node/index.d.mts +1 -1
  93. package/dist/contracts/worker-node/index.mjs +1 -1
  94. package/dist/contracts/workflow/index.d.mts +3 -3
  95. package/dist/contracts/workflow/index.mjs +1 -1
  96. package/dist/contribution-BH-wKsWI.d.mts +35 -0
  97. package/dist/core/index.d.mts +60 -1
  98. package/dist/core/index.mjs +1 -1
  99. package/dist/definition-BYgHlmMw.d.mts +375 -0
  100. package/dist/{definition-CJfiv8xm.mjs → definition-CDg-Jq1T.mjs} +1 -1
  101. package/dist/{detached-extension-handle-Ddfquy5_.mjs → detached-extension-handle-DKd17UB6.mjs} +1 -1
  102. package/dist/drizzle/0031_adapter_session_currency.sql +66 -0
  103. package/dist/drizzle/0032_native_session_ownership.sql +77 -0
  104. package/dist/drizzle/0033_m_msf3hu2s.sql +1 -0
  105. package/dist/drizzle/meta/_journal.json +21 -0
  106. package/dist/{execution-attempt-repository-DWXKY41_.d.mts → execution-attempt-repository-DFyAnchJ.d.mts} +1 -1
  107. package/dist/{execution-target-Cf645pDj.mjs → execution-target-ByNwZh5-.mjs} +1 -1
  108. package/dist/extension-DMdmj9gi.mjs +1 -0
  109. package/dist/extension-DUmibvMk.mjs +1 -0
  110. package/dist/extension-context-CqfddWXs.d.mts +295 -0
  111. package/dist/{extension-discovery-CQRdbVQ6.d.mts → extension-discovery-Fhps4icD.d.mts} +2 -0
  112. package/dist/{extension-namespace-Yu41YepM.mjs → extension-namespace-B554RmCp.mjs} +1 -1
  113. package/dist/extension-package-provenance-Dh_-Z-tE.mjs +1 -0
  114. package/dist/{filesystem-service-DlP2HfDg.mjs → filesystem-service-FAtd9gWH.mjs} +1 -1
  115. package/dist/framework-packages-D_2hBZ-p.mjs +1 -0
  116. package/dist/git/index.mjs +1 -1
  117. package/dist/{globby-1yCVCk8s.mjs → globby-BBLuT_vy.mjs} +1 -1
  118. package/dist/handlers-2yd00VEq.mjs +57 -0
  119. package/dist/{harness-DpwsFsE7.mjs → harness-KxbWGL4I.mjs} +1 -1
  120. package/dist/{hook-responses-Dh1PWXqJ.d.mts → hook-responses-CQZIv3L3.d.mts} +2 -293
  121. package/dist/{index-HsTxm-R3.d.mts → index-3eUIRy7T.d.mts} +250 -20
  122. package/dist/{index-brqfk9JQ.d.mts → index-B4xdTT3c.d.mts} +6 -6
  123. package/dist/{index-CmFbzuiW.d.mts → index-B5op6AsV.d.mts} +72 -62
  124. package/dist/{index-CMgLxw14.d.mts → index-B6GOuxVy2.d.mts} +18 -18
  125. package/dist/index-BFhJe-Sb.d.mts +302 -0
  126. package/dist/{index-fmR2JNgJ.d.mts → index-BQprJNA_.d.mts} +4 -4
  127. package/dist/{index-EjsSBQXy2.d.mts → index-BSQ30wYP.d.mts} +1 -1
  128. package/dist/{index-Hk9mpC3o.d.mts → index-BSbGB23v.d.mts} +8 -8
  129. package/dist/{index-BbF2gRwd.d.mts → index-BiAYXjgM.d.mts} +41 -41
  130. package/dist/{index-sFsAqeK1.d.mts → index-ByZi9bml.d.mts} +7616 -4158
  131. package/dist/{index-CMJZ2Z8m.d.mts → index-C7HcDpHE.d.mts} +4 -0
  132. package/dist/{index-BskPjMet.d.mts → index-CB4aIUoF.d.mts} +16 -16
  133. package/dist/{index-B-xrJCwa.d.mts → index-CDusRXio.d.mts} +136 -137
  134. package/dist/{index-CUvNKYkV.d.mts → index-CSN_0sCo.d.mts} +19 -2
  135. package/dist/{index-BAXkicoQ.d.mts → index-C__EQfKa.d.mts} +1 -1
  136. package/dist/{index-BfLulUMy2.d.mts → index-CqQYgsbB.d.mts} +1659 -217
  137. package/dist/{index-DF9ffhVe.d.mts → index-CwDiyJkJ.d.mts} +327 -756
  138. package/dist/{index-GHASUiem.d.mts → index-DBadVauL.d.mts} +1 -1
  139. package/dist/{index-gUhidukN.d.mts → index-DI7-tIL3.d.mts} +299 -2
  140. package/dist/index-DP3o_13U.d.mts +165 -0
  141. package/dist/{index-DSBT83c0.d.mts → index-DcYAAJ0V.d.mts} +24 -3
  142. package/dist/{index-DqkjRTr7.d.mts → index-Dch_AxUg.d.mts} +77 -39
  143. package/dist/{index-XZyMxxnU.d.mts → index-DcqSUsX6.d.mts} +39 -83
  144. package/dist/{index-B0Kf_OWi.d.mts → index-DgOfgjx3.d.mts} +1 -1
  145. package/dist/{index-Ds5_rDEJ.d.mts → index-DwLRZscE.d.mts} +1 -12
  146. package/dist/{index-DkiTJM5p.d.mts → index-DxYDRoDE2.d.mts} +17 -3
  147. package/dist/{index-CRvpVIqA.d.mts → index-OsbtyMgx2.d.mts} +10 -1
  148. package/dist/{index-BaZeoZoS.d.mts → index-bIe_57cL.d.mts} +1 -1
  149. package/dist/{json-value-Brslhqbm.d.mts → json-value-C1RGgS0a.d.mts} +16 -1
  150. package/dist/{json-value-DmU8ibo_.mjs → json-value-D57aJhVn.mjs} +1 -1
  151. package/dist/kernel/cli/index.d.mts +2 -2
  152. package/dist/kernel/cli/index.mjs +1 -1
  153. package/dist/kernel/cli/register.d.mts +1 -1
  154. package/dist/kernel/cli/register.mjs +1 -1
  155. package/dist/kernel/cli/schemas.mjs +1 -1
  156. package/dist/kernel/extension/index.d.mts +1 -1
  157. package/dist/kernel/extension/index.mjs +1 -1
  158. package/dist/kernel/index.d.mts +9 -9
  159. package/dist/kernel/index.mjs +1 -1
  160. package/dist/kernel/namespace/index.d.mts +2 -2
  161. package/dist/kernel/namespace/index.mjs +1 -1
  162. package/dist/kernel/observability/index.d.mts +1 -1
  163. package/dist/kernel/observability/index.mjs +1 -1
  164. package/dist/kernel/providers/index.d.mts +1 -1
  165. package/dist/kernel/providers/index.mjs +1 -1
  166. package/dist/kernel/window/index.d.mts +1 -1
  167. package/dist/kernel/window/index.mjs +1 -1
  168. package/dist/{lib-C7-s68uf.mjs → lib-B_rJ6r0T.mjs} +1 -1
  169. package/dist/{lib-DErgth_E.mjs → lib-CnOAtohU.mjs} +1 -1
  170. package/dist/load-extensions-CW9uzNR5.mjs +1 -0
  171. package/dist/{load-extensions-BxsDB87B.d.mts → load-extensions-DUpaMQ7G.d.mts} +17 -13
  172. package/dist/{materialization-Jd198K3y.mjs → materialization-CcpCDhXh.mjs} +1 -1
  173. package/dist/mcp-http-server/index.mjs +1 -1
  174. package/dist/model-ZH3L1dPW.mjs +1 -0
  175. package/dist/{namespace-BqxtpNAn.mjs → namespace-B7bntOB8.mjs} +1 -1
  176. package/dist/{namespace-CWUDFGOy.mjs → namespace-BFqkUTJp.mjs} +1 -1
  177. package/dist/{namespace-D-WH2uYV2.d.mts → namespace-CAy4P5mW.d.mts} +8 -8
  178. package/dist/{namespace-B8uKAzWJ.mjs → namespace-CFjdyNXG.mjs} +1 -1
  179. package/dist/{namespace-DV-Hr9sZ.d.mts → namespace-ChnRTUG4.d.mts} +11 -1
  180. package/dist/namespace-CxrOLeeP.mjs +1 -0
  181. package/dist/{namespace-g_mbIZq_.d.mts → namespace-DSlfFhB1.d.mts} +410 -26
  182. package/dist/{namespace-Dkod-w11.d.mts → namespace-DwZwGXgF.d.mts} +4 -0
  183. package/dist/{namespace-BXvD9t0I.d.mts → namespace-Rge9mMI-.d.mts} +27 -19
  184. package/dist/{native-session-supervisor-DRx0MX-d.mjs → native-session-supervisor-fZYPUk0-.mjs} +1 -1
  185. package/dist/node/bus-server/index.d.mts +1 -1
  186. package/dist/node/bus-server/index.mjs +1 -1
  187. package/dist/node/bus-server/server-lifecycle.d.mts +1 -1
  188. package/dist/node/bus-server/server-lifecycle.mjs +1 -1
  189. package/dist/{orchestrator-shared-BHCv-l2O.d.mts → orchestrator-shared-B-KRW1Z0.d.mts} +1 -0
  190. package/dist/orchestrator-shared-CTCZc6Vl.mjs +1 -0
  191. package/dist/ownership-memory-handler-Bblp93YC.mjs +1 -0
  192. package/dist/{package-DWMxGfzK.d.mts → package-Bf3hyuzs.d.mts} +234 -84
  193. package/dist/package-CBdvjyyZ.mjs +1 -0
  194. package/dist/package-CddkNbZI.mjs +1 -0
  195. package/dist/package-ypz4rKvn.mjs +7 -0
  196. package/dist/package.json +1 -1
  197. package/dist/{profile-BTAI31Nt.mjs → profile-BtznZlq3.mjs} +1 -1
  198. package/dist/{provider-context-Dq53Cgzz.mjs → provider-context-BrLZYnDW.mjs} +1 -1
  199. package/dist/{provider-context-PZIQWcqQ.mjs → provider-context-Dh-VOOYF.mjs} +1 -1
  200. package/dist/reaction-BS0k4eNN.mjs +1 -0
  201. package/dist/{registry-wfF2uTty.mjs → registry-BO_bOoky.mjs} +2 -2
  202. package/dist/{resolved-DZgqql2Z.mjs → resolved-DMByz1_2.mjs} +1 -1
  203. package/dist/rules/index.d.mts +1 -1
  204. package/dist/rules/index.mjs +1 -1
  205. package/dist/rules/schemas.d.mts +1 -1
  206. package/dist/runtime-bun/index.mjs +1 -1
  207. package/dist/runtime-node/extension-discovery.d.mts +1 -1
  208. package/dist/runtime-node/extension-validation.d.mts +1 -1
  209. package/dist/runtime-node/extension-validation.mjs +1 -1
  210. package/dist/runtime-node/index.d.mts +4 -4
  211. package/dist/runtime-node/index.mjs +24 -24
  212. package/dist/runtime-node/makaio-config.d.mts +1 -1
  213. package/dist/runtime-node/makaio-config.mjs +1 -1
  214. package/dist/runtime-node/workflow-worker/index.d.mts +1 -1
  215. package/dist/runtime-node/workflow-worker/index.mjs +1 -1
  216. package/dist/runtime-node/workflow-worker/worker-entry.mjs +1 -1
  217. package/dist/{schema-Dd-e89MO.mjs → schema-DBG7Jq5_.mjs} +1 -1
  218. package/dist/{schema-DKUb4rkr.d.mts → schema-DKTzriEY.d.mts} +519 -9
  219. package/dist/{schemas-B5eUUi6u.d.mts → schemas-9qeeHGBf.d.mts} +8 -8
  220. package/dist/{schemas-CRB2O5zo.mjs → schemas-BqD8LlQw.mjs} +1 -1
  221. package/dist/{schemas-DaHQzpgm.mjs → schemas-CsjN7cmM.mjs} +1 -1
  222. package/dist/schemas-DSkBOdx_.mjs +1 -0
  223. package/dist/schemas-DplrlAyR.mjs +1 -0
  224. package/dist/{schemas-DuIlOWR3.d.mts → schemas-VbB1FTxx.d.mts} +4 -0
  225. package/dist/scoped-bus-ClwTWqX8.mjs +1 -0
  226. package/dist/{selection-BNwTKEVT.mjs → selection-7Ku8DBnh.mjs} +1 -1
  227. package/dist/services/adapter-runtime/index.d.mts +3 -3
  228. package/dist/services/adapter-runtime/index.mjs +1 -1
  229. package/dist/services/adapter-runtime/namespace.d.mts +1 -1
  230. package/dist/services/adapter-runtime/schemas.d.mts +1 -1
  231. package/dist/services/adapter-subsystem/index.d.mts +4 -4
  232. package/dist/services/adapter-subsystem/index.mjs +1 -1
  233. package/dist/services/adapter-subsystem/namespace.d.mts +2 -2
  234. package/dist/services/adapter-subsystem/namespace.mjs +1 -1
  235. package/dist/services/agent-runtime/index.d.mts +2 -2
  236. package/dist/services/agent-runtime/namespace.d.mts +1 -1
  237. package/dist/services/agent-runtime/schemas.d.mts +1 -1
  238. package/dist/services/automation-trigger/index.d.mts +943 -0
  239. package/dist/services/automation-trigger/index.mjs +1 -0
  240. package/dist/services/capability/index.d.mts +1 -1
  241. package/dist/services/capability/index.mjs +1 -1
  242. package/dist/services/codebase/index.d.mts +2 -2
  243. package/dist/services/codebase/namespace.d.mts +1 -1
  244. package/dist/services/codebase/schemas.d.mts +1 -1
  245. package/dist/services/compression/index.d.mts +2 -2
  246. package/dist/services/compression/namespace.d.mts +1 -1
  247. package/dist/services/compression/schemas.d.mts +1 -1
  248. package/dist/services/context-rules/index.d.mts +4 -4
  249. package/dist/services/context-rules/index.mjs +1 -1
  250. package/dist/services/execution-target/index.d.mts +3 -3
  251. package/dist/services/execution-target/index.mjs +1 -1
  252. package/dist/services/execution-target/namespace.d.mts +1 -1
  253. package/dist/services/execution-target/namespace.mjs +1 -1
  254. package/dist/services/execution-target/schemas.d.mts +1 -1
  255. package/dist/services/execution-target/schemas.mjs +1 -1
  256. package/dist/services/filesystem/index.d.mts +1 -1
  257. package/dist/services/filesystem/index.mjs +1 -1
  258. package/dist/services/filesystem/namespace.d.mts +6 -6
  259. package/dist/services/filesystem/schemas.d.mts +3 -3
  260. package/dist/services/git/namespace.d.mts +2 -2
  261. package/dist/services/git/namespace.mjs +1 -1
  262. package/dist/services/git/schemas.d.mts +1 -1
  263. package/dist/services/git/schemas.mjs +1 -1
  264. package/dist/services/harness/index.d.mts +3 -3
  265. package/dist/services/harness/index.mjs +1 -1
  266. package/dist/services/index.d.mts +449 -83
  267. package/dist/services/index.mjs +1 -1
  268. package/dist/services/log-import/browser.d.mts +2 -2
  269. package/dist/services/log-import/index.d.mts +3 -3
  270. package/dist/services/log-import/log-import.d.mts +1 -1
  271. package/dist/services/log-import/log-import.mjs +1 -1
  272. package/dist/services/log-import/namespace.mjs +1 -1
  273. package/dist/services/log-import/schemas.mjs +1 -1
  274. package/dist/services/materialization/index.d.mts +1 -1
  275. package/dist/services/materialization/index.mjs +1 -1
  276. package/dist/services/model-registry/index.d.mts +1 -1
  277. package/dist/services/model-registry/index.mjs +1 -1
  278. package/dist/services/preferences/index.d.mts +2 -2
  279. package/dist/services/preferences/schemas.d.mts +1 -1
  280. package/dist/services/preferences/storage-namespace.d.mts +2 -2
  281. package/dist/services/provider-context/index.d.mts +1 -1
  282. package/dist/services/provider-context/index.mjs +1 -1
  283. package/dist/services/provider-runtime/index.mjs +1 -1
  284. package/dist/services/session/handlers/index.d.mts +2 -2
  285. package/dist/services/session/handlers/index.mjs +1 -1
  286. package/dist/services/session/index.d.mts +10 -10
  287. package/dist/services/session/index.mjs +1 -1
  288. package/dist/services/session/messages/namespace.d.mts +1 -1
  289. package/dist/services/session/messages/namespace.mjs +1 -1
  290. package/dist/services/session/orchestrator-testing/index.d.mts +1 -1
  291. package/dist/services/session/orchestrator-testing/index.mjs +1 -1
  292. package/dist/services/session/session-events/namespace.d.mts +1 -1
  293. package/dist/services/session/session-events/namespace.mjs +1 -1
  294. package/dist/services/session/storage/namespace.d.mts +1 -1
  295. package/dist/services/session/storage/schema.d.mts +2 -2
  296. package/dist/services/session/storage/schema.mjs +1 -1
  297. package/dist/services/session/testing/index.d.mts +12 -4
  298. package/dist/services/session/testing/index.mjs +36 -4
  299. package/dist/services/session/testing/orchestrator-shared.d.mts +1 -1
  300. package/dist/services/session/testing/orchestrator-shared.mjs +1 -1
  301. package/dist/services/session/turns/namespace.d.mts +1 -1
  302. package/dist/services/session/turns/namespace.mjs +1 -1
  303. package/dist/services/session-editor/index.d.mts +1 -1
  304. package/dist/services/session-editor/index.mjs +1 -1
  305. package/dist/services/settings/index.d.mts +3 -3
  306. package/dist/services/settings/index.mjs +1 -1
  307. package/dist/services/settings/namespace.d.mts +8 -8
  308. package/dist/services/settings/namespace.mjs +1 -1
  309. package/dist/services/settings/storage/clients-namespace.d.mts +1 -1
  310. package/dist/services/settings/storage/clients-namespace.mjs +1 -1
  311. package/dist/services/settings/storage/index.d.mts +3 -3
  312. package/dist/services/settings/storage/index.mjs +1 -1
  313. package/dist/services/settings/storage/providers-namespace.d.mts +1 -1
  314. package/dist/services/settings/storage/providers-namespace.mjs +1 -1
  315. package/dist/services/subagent/index.d.mts +1 -1
  316. package/dist/services/subagent/index.mjs +1 -1
  317. package/dist/services/subagent-template/index.d.mts +2 -2
  318. package/dist/services/subagent-template/namespace.d.mts +1 -1
  319. package/dist/services/subagent-template/schemas.d.mts +1 -1
  320. package/dist/services/tool-approval/index.d.mts +1 -1
  321. package/dist/services/tool-approval/index.mjs +1 -1
  322. package/dist/services/tools/index.d.mts +1 -1
  323. package/dist/services/tools/index.mjs +1 -1
  324. package/dist/services/tray-menu/index.d.mts +3 -3
  325. package/dist/services/tray-menu/index.mjs +1 -1
  326. package/dist/services/tray-menu/namespace.d.mts +1 -1
  327. package/dist/services/tray-menu/schemas.d.mts +1 -1
  328. package/dist/services/turn/index.d.mts +1 -1
  329. package/dist/services/turn/namespace.d.mts +1 -1
  330. package/dist/services/workflow-transitions/index.d.mts +1 -1
  331. package/dist/services/workflow-transitions/index.mjs +1 -1
  332. package/dist/session-BMy2kRpX.mjs +90 -0
  333. package/dist/session-Cipx34j6.mjs +1 -0
  334. package/dist/{session-lineage-B_JW5LpF.d.mts → session-lineage-B_PVa1XN.d.mts} +1 -1
  335. package/dist/shared-BFVuCDPx.mjs +1 -0
  336. package/dist/{skill-BR6rkfLe.mjs → skill-C1D51nhh.mjs} +1 -1
  337. package/dist/{src-DD0v-nIj.mjs → src-xbmzokNe.mjs} +1 -1
  338. package/dist/storage/drizzle/client.d.mts +1 -1
  339. package/dist/storage/drizzle/client.mjs +1 -1
  340. package/dist/storage/drizzle/index.d.mts +42 -2
  341. package/dist/storage/drizzle/index.mjs +1 -1
  342. package/dist/storage/handlers/drizzle/index.d.mts +1 -1
  343. package/dist/storage/handlers/drizzle/index.mjs +1 -1
  344. package/dist/storage/handlers/index.d.mts +1 -1
  345. package/dist/storage/handlers/index.mjs +1 -1
  346. package/dist/tool-approval-service-BVgN9Q1r.mjs +1 -0
  347. package/dist/{tools-PdG9fO1M.mjs → tools-DxwHox1a.mjs} +1 -1
  348. package/dist/{transition-DwqL8W9V.d.mts → transition-BF1nevaC.d.mts} +7 -34
  349. package/dist/{types-DMLDHFR9.d.mts → types-BNjPhj_a.d.mts} +1 -1
  350. package/dist/{types-DR60yv6W.d.mts → types-CijlWGwb.d.mts} +1575 -157
  351. package/dist/types-ClpEaoAm.d.mts +2917 -0
  352. package/dist/ui-hooks/index.d.mts +29 -2
  353. package/dist/ui-hooks/index.mjs +1 -1
  354. package/dist/ui-kernel/index.d.mts +2 -2
  355. package/dist/ui-kernel/pages/schemas.d.mts +1 -1
  356. package/dist/ui-views/index.d.mts +1 -1
  357. package/dist/utils/index.d.mts +77 -1
  358. package/dist/utils/index.mjs +2 -2
  359. package/dist/{version-CoCeMxDT.mjs → version-BfNnVAGr.mjs} +1 -1
  360. package/dist/{view-builder-qp51cMWh.d.mts → view-builder-Bc9dx6jF.d.mts} +1 -1
  361. package/dist/{visibility-qhGWmpSJ.mjs → visibility-Dl1o2I01.mjs} +1 -1
  362. package/dist/{worker-node-Bl9_vqYi.mjs → worker-node-BDOYPEpi.mjs} +1 -1
  363. package/dist/{worker-node-DZTuT1DS.mjs → worker-node-DJ41Tr-F.mjs} +1 -1
  364. package/dist/workflow-Hzc5jlnV.mjs +1 -0
  365. package/dist/workflow-engine/execution-attempt-repository.d.mts +1 -1
  366. package/dist/workflow-engine/index.d.mts +161 -442
  367. package/dist/workflow-engine/index.mjs +1 -1
  368. package/dist/workflow-engine/package.d.mts +1 -1
  369. package/dist/workflow-engine/package.mjs +1 -1
  370. package/dist/workflow-engine/provider-operation.d.mts +1 -1
  371. package/dist/workflow-engine/testing/index.d.mts +2 -2
  372. package/dist/workflow-engine/testing/index.mjs +1 -1
  373. package/dist/workflow-engine/testing/sqlite.d.mts +1 -1
  374. package/dist/workflow-engine/testing/sqlite.mjs +27 -27
  375. package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
  376. package/dist/workflow-engine/workflow-trigger-binding-consumer.d.mts +46 -0
  377. package/dist/workflow-engine/workflow-trigger-binding-consumer.mjs +1 -0
  378. package/dist/{workflow-transitions-DSc45ixc.mjs → workflow-transitions-DM0fN_eP.mjs} +1 -1
  379. package/dist/workflow-worker-DARC7UZl.mjs +1 -0
  380. package/dist/zod-json-schema-BAGAFfCN.mjs +1 -0
  381. package/package.json +29 -1
  382. package/dist/adapter-D5c5LrPN.mjs +0 -1
  383. package/dist/artifact-DGiXqb11.mjs +0 -1
  384. package/dist/attach-error-C3tngg6J.mjs +0 -1
  385. package/dist/authority-state-bootstrap-GPL_tqaT.mjs +0 -1
  386. package/dist/await-trigger-I3lrepb8.mjs +0 -1
  387. package/dist/bus-B6SAjgOC.mjs +0 -2
  388. package/dist/bus-C2l3K74u.mjs +0 -1
  389. package/dist/extension-DCA4pYrY.mjs +0 -1
  390. package/dist/extension-hjOPs10e.mjs +0 -1
  391. package/dist/framework-packages-C3RWfJDk.mjs +0 -1
  392. package/dist/handlers-CfnLyLfE.mjs +0 -57
  393. package/dist/load-extensions-D0DfjYLC.mjs +0 -1
  394. package/dist/model-BGgVmRnN.mjs +0 -1
  395. package/dist/namespace-DJfUADSV.mjs +0 -1
  396. package/dist/orchestrator-shared-BxmHCPvx.mjs +0 -1
  397. package/dist/package-CNUPPcU1.mjs +0 -7
  398. package/dist/package-Dft_RItb.mjs +0 -1
  399. package/dist/schemas-Cm09dXL4.mjs +0 -1
  400. package/dist/scoped-bus-C9BdNwfM.mjs +0 -1
  401. package/dist/session-BOGCd18q.mjs +0 -1
  402. package/dist/session-BTFiDoGz.mjs +0 -76
  403. package/dist/shared-BQ0CHIVy.mjs +0 -1
  404. package/dist/tool-approval-service-kBA0fRzm.mjs +0 -1
  405. package/dist/types-CJ_QZ1yW.d.mts +0 -1487
  406. package/dist/workflow-BfDbgtIQ.mjs +0 -1
  407. package/dist/workflow-worker-BN9XPxQO.mjs +0 -1
  408. package/dist/{adapter-auth-runtime-DO-FVTXg.mjs → adapter-auth-runtime-D9Lnl7cc.mjs} +0 -0
  409. package/dist/{adapter-binding-DQchUtrK.d.mts → adapter-binding-B-FBoCys.d.mts} +0 -0
  410. package/dist/{attempt-record-codec-CqO1_XnE.mjs → attempt-record-codec-DaFLKR5C.mjs} +0 -0
  411. package/dist/{base-orchestrator-BilsQNW1.d.mts → base-orchestrator-D9u4NyiM.d.mts} +0 -0
  412. package/dist/{capability-service-BqiLlRGA.mjs → capability-service-CJHNkjvm.mjs} +0 -0
  413. package/dist/{client-B--e2qcU.d.mts → client-4ihewPUm.d.mts} +0 -0
  414. package/dist/{client-binary-version-verifier-taewmKTY.mjs → client-binary-version-verifier-DJajc_Ff.mjs} +0 -0
  415. package/dist/{client-binary-version-verifier-CgjM_vGF.d.mts → client-binary-version-verifier-jDDZ64Ah.d.mts} +0 -0
  416. package/dist/{clients-namespace-DfxjG2ZP.d.mts → clients-namespace-DFWuUawf.d.mts} +0 -0
  417. package/dist/{config-namespace-BCqvufbD.d.mts → config-namespace-D1kyZj0B.d.mts} +0 -0
  418. package/dist/{create-static-mount-bbQhTt6W.mjs → create-static-mount-9tnGpIeK.mjs} +0 -0
  419. package/dist/{cross-spawn-B57KZuns.mjs → cross-spawn-BIgueAqr.mjs} +0 -0
  420. package/dist/{cursor-storage-DIFK_9hg.mjs → cursor-storage-ROWfiTh1.mjs} +0 -0
  421. package/dist/{definition-gnKgXU91.d.mts → definition-DB-kKc0d.d.mts} +0 -0
  422. package/dist/{definitions-xrrY0wgz.mjs → definitions-CF6YmEhL.mjs} +0 -0
  423. package/dist/{descriptor-to-package-DvF08krT.mjs → descriptor-to-package-BecVCopf.mjs} +0 -0
  424. package/dist/{drizzle-z_0SiGY8.mjs → drizzle-CPv3vdTE.mjs} +0 -0
  425. package/dist/{esm-CltRnX8_.mjs → esm-CBFWM8u_.mjs} +0 -0
  426. package/dist/{event-CmVjR6Ib.mjs → event-DR8U9Efx.mjs} +0 -0
  427. package/dist/{facet-BCI00njh.mjs → facet-DVsW12iF.mjs} +0 -0
  428. package/dist/{filesystem-service-CQ9yVkSz.d.mts → filesystem-service-Cm2RHKBa.d.mts} +0 -0
  429. package/dist/{handler-Cbv9FqDO.mjs → handler-Bqlk-6BY.mjs} +0 -0
  430. package/dist/{host-Caq6ZfSJ.mjs → host-k5yoyKHg.mjs} +0 -0
  431. package/dist/{identity-D6guMtmi.mjs → identity-DC3Pk0ps.mjs} +0 -0
  432. package/dist/{index-dtsLKOID.d.mts → index-42UdYStR.d.mts} +0 -0
  433. package/dist/{index-DR40QWlw.d.mts → index-BJAB-BW_.d.mts} +0 -0
  434. package/dist/{index-Dm1nUxCF.d.mts → index-BJMezANn.d.mts} +0 -0
  435. package/dist/{index-Cv-o5Krs.d.mts → index-BRCrFirq.d.mts} +0 -0
  436. package/dist/{index-BVRQEpAg.d.mts → index-BRzHs7Bx.d.mts} +6 -6
  437. /package/dist/{index-vA--0lOM.d.mts → index-BVcQcphK.d.mts} +0 -0
  438. /package/dist/{index-ye0oklfU.d.mts → index-BcvqDfcN.d.mts} +0 -0
  439. /package/dist/{index-CGZQVTid.d.mts → index-BeENojSx2.d.mts} +0 -0
  440. /package/dist/{index-DjgLchuQ.d.mts → index-Beo_Ik8-.d.mts} +0 -0
  441. /package/dist/{index-sS6KUlrx.d.mts → index-BgGe9WZz.d.mts} +0 -0
  442. /package/dist/{index-CWHfOz6d.d.mts → index-CK3f0bAL.d.mts} +0 -0
  443. /package/dist/{index-DZunhZec.d.mts → index-CQuRTeRa.d.mts} +0 -0
  444. /package/dist/{index-jTaAHsul.d.mts → index-CRmE88hi.d.mts} +0 -0
  445. /package/dist/{index-CjdRdsd0.d.mts → index-CvW9_SzR.d.mts} +0 -0
  446. /package/dist/{index-ByKi34v5.d.mts → index-CxSSdIZz.d.mts} +0 -0
  447. /package/dist/{index-vcSj12YQ.d.mts → index-E4SET1AA.d.mts} +0 -0
  448. /package/dist/{index-DN4NOCqN2.d.mts → index-Ol9RBB0W2.d.mts} +0 -0
  449. /package/dist/{index-BIdsFcQs2.d.mts → index-aoxdnhJ42.d.mts} +0 -0
  450. /package/dist/{index-SsBHjUqA.d.mts → index-nydhGvXa.d.mts} +0 -0
  451. /package/dist/{jsonl-transport-bQl3JwIu.mjs → jsonl-transport-Bp_6pB2a.mjs} +0 -0
  452. /package/dist/{lib-DOBXZmYX.mjs → lib-Bwdd2m81.mjs} +0 -0
  453. /package/dist/{model-registry-CmgcPDH3.mjs → model-registry-Y854mUml.mjs} +0 -0
  454. /package/dist/{model-registry-xyBKSye-.mjs → model-registry-yURX738J.mjs} +0 -0
  455. /package/dist/{modes-BheyN7SS.mjs → modes-DmUsjHdV.mjs} +0 -0
  456. /package/dist/{namespace-HO2J9sO8.mjs → namespace-B9FEGuEu.mjs} +0 -0
  457. /package/dist/{namespace-jDhZjw-i.d.mts → namespace-Bi3CmYQy.d.mts} +0 -0
  458. /package/dist/{namespace-GPA7zots.d.mts → namespace-BusZERU8.d.mts} +0 -0
  459. /package/dist/{namespace-BOkKoq34.d.mts → namespace-ByP1Iipi.d.mts} +0 -0
  460. /package/dist/{namespace-YytVKIgI.d.mts → namespace-C1D77w7U.d.mts} +0 -0
  461. /package/dist/{namespace-CErHuXtb.d.mts → namespace-C6CVEGH8.d.mts} +0 -0
  462. /package/dist/{namespace-C-9si-fV.mjs → namespace-CfIW0hpQ.mjs} +0 -0
  463. /package/dist/{namespace-YxU1xf-K.mjs → namespace-CkBbNFSU.mjs} +0 -0
  464. /package/dist/{namespace-DWCEo-9M.d.mts → namespace-DX1Ec15L.d.mts} +0 -0
  465. /package/dist/{namespace-CWGKCNZm.mjs → namespace-DbNWsPFY.mjs} +0 -0
  466. /package/dist/{namespace-Cv1RFP7n.d.mts → namespace-Dgg0uoe6.d.mts} +0 -0
  467. /package/dist/{namespace-tGRAod3o.d.mts → namespace-s2y_NFKf.d.mts} +0 -0
  468. /package/dist/{namespace-Blp4c8GK.d.mts → namespace-yREpGJgG.d.mts} +0 -0
  469. /package/dist/{out-CvjtANXN.mjs → out-DrhwCgqM.mjs} +0 -0
  470. /package/dist/{packages-DtEEP0Vt.mjs → packages-FBv3fAOR.mjs} +0 -0
  471. /package/dist/{packages-BZ6pzFIq.d.mts → packages-N3-2Kl-Y.d.mts} +0 -0
  472. /package/dist/{platform-Bv8llU9c.mjs → platform-BrsMv_S3.mjs} +0 -0
  473. /package/dist/{provider-operation-Cxoe2SUr.d.mts → provider-operation-DJ_TLZFf.d.mts} +0 -0
  474. /package/dist/{providers-Co5UszRH.mjs → providers-CCcn4Ndp.mjs} +0 -0
  475. /package/dist/{providers-namespace-DjFkmvBR.d.mts → providers-namespace-DeJBh6MP.d.mts} +0 -0
  476. /package/dist/{quick-lru-CrOpWwrf.mjs → quick-lru-uwB0hP-y.mjs} +0 -0
  477. /package/dist/{schema-introspection-DgWQCpwx.mjs → schema-introspection-C1wvklj9.mjs} +0 -0
  478. /package/dist/{schema-Db-y-09L.mjs → schema-jIapW8Kb.mjs} +0 -0
  479. /package/dist/{schemas-CR8hSqTy.d.mts → schemas-B7zo7Zcx.d.mts} +0 -0
  480. /package/dist/{schemas-CqRm0i9a.mjs → schemas-BNdiVBWh.mjs} +0 -0
  481. /package/dist/{schemas-B1NWNASS.d.mts → schemas-C-Bm6Oac.d.mts} +0 -0
  482. /package/dist/{schemas-BO7uOum6.d.mts → schemas-CD0wOQxx.d.mts} +0 -0
  483. /package/dist/{schemas-N6x2z7Lf.d.mts → schemas-CeUI2i5j.d.mts} +0 -0
  484. /package/dist/{schemas-CwbYk_kZ.d.mts → schemas-Cg-Kwp8c.d.mts} +0 -0
  485. /package/dist/{schemas-BtZqovRH.d.mts → schemas-Cv3rR9Sz.d.mts} +0 -0
  486. /package/dist/{schemas-tDf_WiC8.mjs → schemas-CvHFbzdy.mjs} +0 -0
  487. /package/dist/{schemas-BsVYZviy.d.mts → schemas-DZH9lpxs.d.mts} +0 -0
  488. /package/dist/{schemas-BGExwp3j.mjs → schemas-DgwEVUt-.mjs} +0 -0
  489. /package/dist/{schemas-Bfxskx_2.mjs → schemas-mLpOfMoN.mjs} +0 -0
  490. /package/dist/{schemas-CQyRBqD6.d.mts → schemas-qA279_j_.d.mts} +0 -0
  491. /package/dist/{schemas-miYxK_Z1.d.mts → schemas-sMoRnBdZ.d.mts} +0 -0
  492. /package/dist/{semver-DlM8znk4.mjs → semver-DTXuyLcK.mjs} +0 -0
  493. /package/dist/{server-lifecycle-Dsq56aqC.d.mts → server-lifecycle-C_8iKgat.d.mts} +0 -0
  494. /package/dist/{server-lifecycle-kmQ5PUDv.mjs → server-lifecycle-DKx_fWlq.mjs} +0 -0
  495. /package/dist/{shared-schemas-DXwyMCwZ.mjs → shared-schemas-aahW97QW.mjs} +0 -0
  496. /package/dist/{src-CCu8TwL6.mjs → src-DHqsl5Pg.mjs} +0 -0
  497. /package/dist/{storage-namespace-BSrv0vXR.mjs → storage-namespace-Dz2jsssp.mjs} +0 -0
  498. /package/dist/{storage-namespace-dfywhXR3.d.mts → storage-namespace-Tf3P5yJ5.d.mts} +0 -0
  499. /package/dist/{storage-namespace-definition-BvlX0QV_.d.mts → storage-namespace-definition-BsnYAPot.d.mts} +0 -0
  500. /package/dist/{storage-namespace-definition-CkMKt7-I.mjs → storage-namespace-definition-CDef0E20.mjs} +0 -0
  501. /package/dist/{supports-color-DUugCQsK.mjs → supports-color-i7OTnKcZ.mjs} +0 -0
  502. /package/dist/{telemetry-Pr3oP2rk.mjs → telemetry-BvCBUjFg.mjs} +0 -0
  503. /package/dist/{timeout-DWDhddRJ.mjs → timeout-B0nYjLc8.mjs} +0 -0
  504. /package/dist/{tray-menu-service-BBLa-Rcv.mjs → tray-menu-service-Deo6yyP8.mjs} +0 -0
  505. /package/dist/{types-BrcjaNPZ.d.mts → types-CNS55jvt.d.mts} +0 -0
  506. /package/dist/{types-b54n1o57.d.mts → types-Ce6LL25v.d.mts} +0 -0
  507. /package/dist/{types-DHmPneIO.d.mts → types-xCdGghb2.d.mts} +0 -0
  508. /package/dist/{ui-config-CyCdlns_.mjs → ui-config-BIyGzMNL.mjs} +0 -0
  509. /package/dist/{variant-krjlTdJt.mjs → variant-B4uWdxW7.mjs} +0 -0
  510. /package/dist/{window-registry-BDnZLPVx.d.mts → window-registry-BLtVx3Iw.d.mts} +0 -0
  511. /package/dist/{window-registry-I-imZHV_.mjs → window-registry-CoBJq3u4.mjs} +0 -0
@@ -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<{
@@ -467,8 +423,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
467
423
  completed: "completed";
468
424
  cancelled: "cancelled";
469
425
  failed: "failed";
470
- paused: "paused";
471
426
  running: "running";
427
+ paused: "paused";
472
428
  finalizing: "finalizing";
473
429
  }>;
474
430
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
@@ -509,8 +465,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
509
465
  completed: "completed";
510
466
  cancelled: "cancelled";
511
467
  failed: "failed";
512
- paused: "paused";
513
468
  running: "running";
469
+ paused: "paused";
514
470
  finalizing: "finalizing";
515
471
  }>;
516
472
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
@@ -558,8 +514,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
558
514
  completed: "completed";
559
515
  cancelled: "cancelled";
560
516
  failed: "failed";
561
- paused: "paused";
562
517
  running: "running";
518
+ paused: "paused";
563
519
  finalizing: "finalizing";
564
520
  }>;
565
521
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
@@ -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;
@@ -755,8 +700,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
755
700
  "exit-and-resume": "exit-and-resume";
756
701
  }>>;
757
702
  terminalAuthority: z.ZodOptional<z.ZodEnum<{
758
- worker: "worker";
759
703
  authority: "authority";
704
+ worker: "worker";
760
705
  }>>;
761
706
  materializationSpec: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
762
707
  kind: z.ZodLiteral<"local-directory">;
@@ -909,8 +854,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
909
854
  completed: "completed";
910
855
  cancelled: "cancelled";
911
856
  failed: "failed";
912
- paused: "paused";
913
857
  running: "running";
858
+ paused: "paused";
914
859
  finalizing: "finalizing";
915
860
  }>>;
916
861
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1106,8 +1051,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1106
1051
  completed: "completed";
1107
1052
  cancelled: "cancelled";
1108
1053
  failed: "failed";
1109
- paused: "paused";
1110
1054
  running: "running";
1055
+ paused: "paused";
1111
1056
  finalizing: "finalizing";
1112
1057
  }>>;
1113
1058
  artifactRef: z.ZodOptional<z.ZodObject<{
@@ -1130,8 +1075,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1130
1075
  completed: "completed";
1131
1076
  cancelled: "cancelled";
1132
1077
  failed: "failed";
1133
- paused: "paused";
1134
1078
  running: "running";
1079
+ paused: "paused";
1135
1080
  finalizing: "finalizing";
1136
1081
  }>;
1137
1082
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
@@ -1183,8 +1128,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1183
1128
  completed: "completed";
1184
1129
  cancelled: "cancelled";
1185
1130
  failed: "failed";
1186
- paused: "paused";
1187
1131
  running: "running";
1132
+ paused: "paused";
1188
1133
  finalizing: "finalizing";
1189
1134
  }>;
1190
1135
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
@@ -1245,8 +1190,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1245
1190
  cancelled: "cancelled";
1246
1191
  failed: "failed";
1247
1192
  running: "running";
1248
- waiting: "waiting";
1249
1193
  skipped: "skipped";
1194
+ waiting: "waiting";
1250
1195
  }>;
1251
1196
  attempt: z.ZodDefault<z.ZodNumber>;
1252
1197
  iteration: z.ZodOptional<z.ZodNumber>;
@@ -1291,8 +1236,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1291
1236
  cancelled: "cancelled";
1292
1237
  failed: "failed";
1293
1238
  running: "running";
1294
- waiting: "waiting";
1295
1239
  skipped: "skipped";
1240
+ waiting: "waiting";
1296
1241
  }>;
1297
1242
  attempt: z.ZodDefault<z.ZodNumber>;
1298
1243
  iteration: z.ZodOptional<z.ZodNumber>;
@@ -1334,8 +1279,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1334
1279
  cancelled: "cancelled";
1335
1280
  failed: "failed";
1336
1281
  running: "running";
1337
- waiting: "waiting";
1338
1282
  skipped: "skipped";
1283
+ waiting: "waiting";
1339
1284
  }>;
1340
1285
  attempt: z.ZodDefault<z.ZodNumber>;
1341
1286
  iteration: z.ZodOptional<z.ZodNumber>;
@@ -1362,8 +1307,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1362
1307
  status: z.ZodEnum<{
1363
1308
  cancelled: "cancelled";
1364
1309
  rejected: "rejected";
1365
- waiting: "waiting";
1366
1310
  resumed: "resumed";
1311
+ waiting: "waiting";
1367
1312
  "timed-out": "timed-out";
1368
1313
  }>;
1369
1314
  autoAction: z.ZodEnum<{
@@ -1494,8 +1439,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1494
1439
  status: z.ZodEnum<{
1495
1440
  cancelled: "cancelled";
1496
1441
  rejected: "rejected";
1497
- waiting: "waiting";
1498
1442
  resumed: "resumed";
1443
+ waiting: "waiting";
1499
1444
  "timed-out": "timed-out";
1500
1445
  }>;
1501
1446
  autoAction: z.ZodEnum<{
@@ -1519,8 +1464,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1519
1464
  status: z.ZodOptional<z.ZodEnum<{
1520
1465
  cancelled: "cancelled";
1521
1466
  rejected: "rejected";
1522
- waiting: "waiting";
1523
1467
  resumed: "resumed";
1468
+ waiting: "waiting";
1524
1469
  "timed-out": "timed-out";
1525
1470
  }>>;
1526
1471
  limit: z.ZodDefault<z.ZodNumber>;
@@ -1535,8 +1480,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1535
1480
  status: z.ZodEnum<{
1536
1481
  cancelled: "cancelled";
1537
1482
  rejected: "rejected";
1538
- waiting: "waiting";
1539
1483
  resumed: "resumed";
1484
+ waiting: "waiting";
1540
1485
  "timed-out": "timed-out";
1541
1486
  }>;
1542
1487
  autoAction: z.ZodEnum<{
@@ -1570,8 +1515,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1570
1515
  status: z.ZodEnum<{
1571
1516
  cancelled: "cancelled";
1572
1517
  rejected: "rejected";
1573
- waiting: "waiting";
1574
1518
  resumed: "resumed";
1519
+ waiting: "waiting";
1575
1520
  "timed-out": "timed-out";
1576
1521
  }>;
1577
1522
  autoAction: z.ZodEnum<{
@@ -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;
@@ -1861,8 +1795,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1861
1795
  "exit-and-resume": "exit-and-resume";
1862
1796
  }>>;
1863
1797
  terminalAuthority: z.ZodOptional<z.ZodEnum<{
1864
- worker: "worker";
1865
1798
  authority: "authority";
1799
+ worker: "worker";
1866
1800
  }>>;
1867
1801
  materializationSpec: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1868
1802
  kind: z.ZodLiteral<"local-directory">;
@@ -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;
@@ -2059,8 +1982,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
2059
1982
  "exit-and-resume": "exit-and-resume";
2060
1983
  }>>;
2061
1984
  terminalAuthority: z.ZodOptional<z.ZodEnum<{
2062
- worker: "worker";
2063
1985
  authority: "authority";
1986
+ worker: "worker";
2064
1987
  }>>;
2065
1988
  materializationSpec: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2066
1989
  kind: z.ZodLiteral<"local-directory">;
@@ -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";
@@ -2782,7 +2645,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
2782
2645
  tableName: "workflow_executions";
2783
2646
  dataType: "string";
2784
2647
  columnType: "SQLiteText";
2785
- data: "pending" | "completed" | "cancelled" | "failed" | "paused" | "running" | "finalizing";
2648
+ data: "pending" | "completed" | "cancelled" | "failed" | "running" | "paused" | "finalizing";
2786
2649
  driverParam: string;
2787
2650
  notNull: true;
2788
2651
  hasDefault: false;
@@ -3109,7 +2972,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
3109
2972
  tableName: "workflow_execution_frames";
3110
2973
  dataType: "string";
3111
2974
  columnType: "SQLiteText";
3112
- data: "pending" | "completed" | "cancelled" | "failed" | "running" | "waiting" | "skipped";
2975
+ data: "pending" | "completed" | "cancelled" | "failed" | "running" | "skipped" | "waiting";
3113
2976
  driverParam: string;
3114
2977
  notNull: true;
3115
2978
  hasDefault: true;
@@ -3122,7 +2985,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
3122
2985
  generated: undefined;
3123
2986
  }, {}, {
3124
2987
  length: number | undefined;
3125
- $type: "pending" | "completed" | "cancelled" | "failed" | "running" | "waiting" | "skipped";
2988
+ $type: "pending" | "completed" | "cancelled" | "failed" | "running" | "skipped" | "waiting";
3126
2989
  }>;
3127
2990
  attempt: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
3128
2991
  name: string;
@@ -3392,7 +3255,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
3392
3255
  tableName: "workflow_gate_instances";
3393
3256
  dataType: "string";
3394
3257
  columnType: "SQLiteText";
3395
- data: "cancelled" | "rejected" | "waiting" | "resumed" | "timed-out";
3258
+ data: "cancelled" | "rejected" | "resumed" | "waiting" | "timed-out";
3396
3259
  driverParam: string;
3397
3260
  notNull: true;
3398
3261
  hasDefault: true;
@@ -3405,7 +3268,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
3405
3268
  generated: undefined;
3406
3269
  }, {}, {
3407
3270
  length: number | undefined;
3408
- $type: "cancelled" | "rejected" | "waiting" | "resumed" | "timed-out";
3271
+ $type: "cancelled" | "rejected" | "resumed" | "waiting" | "timed-out";
3409
3272
  }>;
3410
3273
  autoAction: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
3411
3274
  name: "auto_action";
@@ -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";
@@ -4529,7 +4382,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
4529
4382
  tableName: "workflow_run_contexts";
4530
4383
  dataType: "string";
4531
4384
  columnType: "SQLiteText";
4532
- data: "worker" | "authority" | undefined;
4385
+ data: "authority" | "worker" | undefined;
4533
4386
  driverParam: string;
4534
4387
  notNull: false;
4535
4388
  hasDefault: false;
@@ -4542,7 +4395,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
4542
4395
  generated: undefined;
4543
4396
  }, {}, {
4544
4397
  length: number | undefined;
4545
- $type: "worker" | "authority" | undefined;
4398
+ $type: "authority" | "worker" | undefined;
4546
4399
  }>;
4547
4400
  materializationSpec: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
4548
4401
  name: string;
@@ -4652,7 +4505,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
4652
4505
  tableName: "worklog_summaries";
4653
4506
  dataType: "string";
4654
4507
  columnType: "SQLiteText";
4655
- data: "pending" | "completed" | "cancelled" | "failed" | "paused" | "running" | "finalizing";
4508
+ data: "pending" | "completed" | "cancelled" | "failed" | "running" | "paused" | "finalizing";
4656
4509
  driverParam: string;
4657
4510
  notNull: true;
4658
4511
  hasDefault: false;
@@ -4914,7 +4767,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
4914
4767
  tableName: "worklog_frame_entries";
4915
4768
  dataType: "string";
4916
4769
  columnType: "SQLiteText";
4917
- data: "pending" | "completed" | "cancelled" | "failed" | "running" | "waiting" | "skipped";
4770
+ data: "pending" | "completed" | "cancelled" | "failed" | "running" | "skipped" | "waiting";
4918
4771
  driverParam: string;
4919
4772
  notNull: true;
4920
4773
  hasDefault: false;
@@ -5348,7 +5201,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
5348
5201
  tableName: "worklog_gate_events";
5349
5202
  dataType: "string";
5350
5203
  columnType: "SQLiteText";
5351
- data: "cancelled" | "rejected" | "waiting" | "resumed" | "timed-out";
5204
+ data: "cancelled" | "rejected" | "resumed" | "waiting" | "timed-out";
5352
5205
  driverParam: string;
5353
5206
  notNull: true;
5354
5207
  hasDefault: false;
@@ -5361,7 +5214,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
5361
5214
  generated: undefined;
5362
5215
  }, {}, {
5363
5216
  length: number | undefined;
5364
- $type: "cancelled" | "rejected" | "waiting" | "resumed" | "timed-out";
5217
+ $type: "cancelled" | "rejected" | "resumed" | "waiting" | "timed-out";
5365
5218
  }>;
5366
5219
  prompt: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
5367
5220
  name: "prompt";
@@ -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<{
@@ -6238,8 +6046,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6238
6046
  completed: "completed";
6239
6047
  cancelled: "cancelled";
6240
6048
  failed: "failed";
6241
- paused: "paused";
6242
6049
  running: "running";
6050
+ paused: "paused";
6243
6051
  finalizing: "finalizing";
6244
6052
  }>;
6245
6053
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
@@ -6280,8 +6088,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6280
6088
  completed: "completed";
6281
6089
  cancelled: "cancelled";
6282
6090
  failed: "failed";
6283
- paused: "paused";
6284
6091
  running: "running";
6092
+ paused: "paused";
6285
6093
  finalizing: "finalizing";
6286
6094
  }>;
6287
6095
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
@@ -6329,8 +6137,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6329
6137
  completed: "completed";
6330
6138
  cancelled: "cancelled";
6331
6139
  failed: "failed";
6332
- paused: "paused";
6333
6140
  running: "running";
6141
+ paused: "paused";
6334
6142
  finalizing: "finalizing";
6335
6143
  }>;
6336
6144
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
@@ -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;
@@ -6526,8 +6323,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6526
6323
  "exit-and-resume": "exit-and-resume";
6527
6324
  }>>;
6528
6325
  terminalAuthority: z.ZodOptional<z.ZodEnum<{
6529
- worker: "worker";
6530
6326
  authority: "authority";
6327
+ worker: "worker";
6531
6328
  }>>;
6532
6329
  materializationSpec: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
6533
6330
  kind: z.ZodLiteral<"local-directory">;
@@ -6680,8 +6477,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6680
6477
  completed: "completed";
6681
6478
  cancelled: "cancelled";
6682
6479
  failed: "failed";
6683
- paused: "paused";
6684
6480
  running: "running";
6481
+ paused: "paused";
6685
6482
  finalizing: "finalizing";
6686
6483
  }>>;
6687
6484
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -6877,8 +6674,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6877
6674
  completed: "completed";
6878
6675
  cancelled: "cancelled";
6879
6676
  failed: "failed";
6880
- paused: "paused";
6881
6677
  running: "running";
6678
+ paused: "paused";
6882
6679
  finalizing: "finalizing";
6883
6680
  }>>;
6884
6681
  artifactRef: z.ZodOptional<z.ZodObject<{
@@ -6901,8 +6698,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6901
6698
  completed: "completed";
6902
6699
  cancelled: "cancelled";
6903
6700
  failed: "failed";
6904
- paused: "paused";
6905
6701
  running: "running";
6702
+ paused: "paused";
6906
6703
  finalizing: "finalizing";
6907
6704
  }>;
6908
6705
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
@@ -6954,8 +6751,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6954
6751
  completed: "completed";
6955
6752
  cancelled: "cancelled";
6956
6753
  failed: "failed";
6957
- paused: "paused";
6958
6754
  running: "running";
6755
+ paused: "paused";
6959
6756
  finalizing: "finalizing";
6960
6757
  }>;
6961
6758
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
@@ -7016,8 +6813,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7016
6813
  cancelled: "cancelled";
7017
6814
  failed: "failed";
7018
6815
  running: "running";
7019
- waiting: "waiting";
7020
6816
  skipped: "skipped";
6817
+ waiting: "waiting";
7021
6818
  }>;
7022
6819
  attempt: z.ZodDefault<z.ZodNumber>;
7023
6820
  iteration: z.ZodOptional<z.ZodNumber>;
@@ -7062,8 +6859,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7062
6859
  cancelled: "cancelled";
7063
6860
  failed: "failed";
7064
6861
  running: "running";
7065
- waiting: "waiting";
7066
6862
  skipped: "skipped";
6863
+ waiting: "waiting";
7067
6864
  }>;
7068
6865
  attempt: z.ZodDefault<z.ZodNumber>;
7069
6866
  iteration: z.ZodOptional<z.ZodNumber>;
@@ -7105,8 +6902,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7105
6902
  cancelled: "cancelled";
7106
6903
  failed: "failed";
7107
6904
  running: "running";
7108
- waiting: "waiting";
7109
6905
  skipped: "skipped";
6906
+ waiting: "waiting";
7110
6907
  }>;
7111
6908
  attempt: z.ZodDefault<z.ZodNumber>;
7112
6909
  iteration: z.ZodOptional<z.ZodNumber>;
@@ -7133,8 +6930,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7133
6930
  status: z.ZodEnum<{
7134
6931
  cancelled: "cancelled";
7135
6932
  rejected: "rejected";
7136
- waiting: "waiting";
7137
6933
  resumed: "resumed";
6934
+ waiting: "waiting";
7138
6935
  "timed-out": "timed-out";
7139
6936
  }>;
7140
6937
  autoAction: z.ZodEnum<{
@@ -7265,8 +7062,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7265
7062
  status: z.ZodEnum<{
7266
7063
  cancelled: "cancelled";
7267
7064
  rejected: "rejected";
7268
- waiting: "waiting";
7269
7065
  resumed: "resumed";
7066
+ waiting: "waiting";
7270
7067
  "timed-out": "timed-out";
7271
7068
  }>;
7272
7069
  autoAction: z.ZodEnum<{
@@ -7290,8 +7087,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7290
7087
  status: z.ZodOptional<z.ZodEnum<{
7291
7088
  cancelled: "cancelled";
7292
7089
  rejected: "rejected";
7293
- waiting: "waiting";
7294
7090
  resumed: "resumed";
7091
+ waiting: "waiting";
7295
7092
  "timed-out": "timed-out";
7296
7093
  }>>;
7297
7094
  limit: z.ZodDefault<z.ZodNumber>;
@@ -7306,8 +7103,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7306
7103
  status: z.ZodEnum<{
7307
7104
  cancelled: "cancelled";
7308
7105
  rejected: "rejected";
7309
- waiting: "waiting";
7310
7106
  resumed: "resumed";
7107
+ waiting: "waiting";
7311
7108
  "timed-out": "timed-out";
7312
7109
  }>;
7313
7110
  autoAction: z.ZodEnum<{
@@ -7341,8 +7138,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7341
7138
  status: z.ZodEnum<{
7342
7139
  cancelled: "cancelled";
7343
7140
  rejected: "rejected";
7344
- waiting: "waiting";
7345
7141
  resumed: "resumed";
7142
+ waiting: "waiting";
7346
7143
  "timed-out": "timed-out";
7347
7144
  }>;
7348
7145
  autoAction: z.ZodEnum<{
@@ -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;
@@ -7632,8 +7418,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7632
7418
  "exit-and-resume": "exit-and-resume";
7633
7419
  }>>;
7634
7420
  terminalAuthority: z.ZodOptional<z.ZodEnum<{
7635
- worker: "worker";
7636
7421
  authority: "authority";
7422
+ worker: "worker";
7637
7423
  }>>;
7638
7424
  materializationSpec: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
7639
7425
  kind: z.ZodLiteral<"local-directory">;
@@ -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;
@@ -7830,8 +7605,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7830
7605
  "exit-and-resume": "exit-and-resume";
7831
7606
  }>>;
7832
7607
  terminalAuthority: z.ZodOptional<z.ZodEnum<{
7833
- worker: "worker";
7834
7608
  authority: "authority";
7609
+ worker: "worker";
7835
7610
  }>>;
7836
7611
  materializationSpec: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
7837
7612
  kind: z.ZodLiteral<"local-directory">;
@@ -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 };