@makaio/framework 1.0.0-dev-1788721567504 → 1.0.0-dev-1788832451167

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 (309) hide show
  1. package/dist/.makaio-build.json +2 -2
  2. package/dist/adapters/config/index.d.mts +1 -1
  3. package/dist/adapters/index.d.mts +2 -2
  4. package/dist/adapters/node.d.mts +1 -1
  5. package/dist/{artifact-Btbuib48.mjs → artifact-ClvHqL3w.mjs} +1 -1
  6. package/dist/attempt-fixtures-CnrnF5_4.mjs +1 -0
  7. package/dist/attempt-record-codec-B32Whx75.mjs +1 -0
  8. package/dist/authority-state-bootstrap-7Cgb9TR2.mjs +1 -0
  9. package/dist/bootstrap-start-client-DrvofWwi.mjs +1 -0
  10. package/dist/bus/index.d.mts +46 -28
  11. package/dist/bus/index.mjs +1 -1
  12. package/dist/bus-CobBUqjo.mjs +2 -0
  13. package/dist/bus-Uy9C3TBM.mjs +1 -0
  14. package/dist/clients/index.d.mts +1 -1
  15. package/dist/clients/managed-install.d.mts +1 -1
  16. package/dist/code-execution/worker-entry.d.mts +1 -1
  17. package/dist/{context-resolution-CoKFKIqz.d.mts → context-resolution-BrtoXnez.d.mts} +97 -18
  18. package/dist/contracts/adapter/index.d.mts +2 -2
  19. package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
  20. package/dist/contracts/artifact/index.d.mts +3 -3
  21. package/dist/contracts/artifact/index.mjs +1 -1
  22. package/dist/contracts/auth/index.d.mts +2 -2
  23. package/dist/contracts/automation-trigger/index.d.mts +3 -3
  24. package/dist/contracts/canonical-model/index.d.mts +1 -1
  25. package/dist/contracts/capabilities/index.d.mts +2 -2
  26. package/dist/contracts/client/index.d.mts +2 -2
  27. package/dist/contracts/code-execution/index.d.mts +1 -1
  28. package/dist/contracts/common/index.d.mts +1 -1
  29. package/dist/contracts/config/index.d.mts +1 -1
  30. package/dist/contracts/extension/index.d.mts +5 -5
  31. package/dist/contracts/facet/index.d.mts +1 -1
  32. package/dist/contracts/harness/index.d.mts +1 -1
  33. package/dist/contracts/host/index.d.mts +1 -1
  34. package/dist/contracts/index.d.mts +901 -183
  35. package/dist/contracts/index.mjs +1 -1
  36. package/dist/contracts/materialization/index.d.mts +3 -3
  37. package/dist/contracts/materialization/index.mjs +1 -1
  38. package/dist/contracts/model-registry/index.d.mts +1 -1
  39. package/dist/contracts/native-session-supervisor/index.d.mts +1 -1
  40. package/dist/contracts/platform/index.d.mts +1 -1
  41. package/dist/contracts/provider/index.d.mts +2 -2
  42. package/dist/contracts/reaction/index.d.mts +1 -1
  43. package/dist/contracts/session/index.d.mts +2 -2
  44. package/dist/contracts/shared/index.d.mts +2 -2
  45. package/dist/contracts/skill/index.d.mts +1 -1
  46. package/dist/contracts/telemetry/index.d.mts +1 -1
  47. package/dist/contracts/timeout/index.d.mts +1 -1
  48. package/dist/contracts/variant/index.d.mts +1 -1
  49. package/dist/contracts/worker/index.d.mts +2 -2
  50. package/dist/contracts/worker/index.mjs +1 -1
  51. package/dist/contracts/workflow/index.d.mts +2 -2
  52. package/dist/contracts/workflow/index.mjs +1 -1
  53. package/dist/{contribution-CUHLVLsT.d.mts → contribution-Crm-mctl.d.mts} +2 -2
  54. package/dist/{definition-DyGImhyi.d.mts → definition-u_5rYQtc.d.mts} +1 -1
  55. package/dist/{detached-extension-handle-D0aI0pJA.mjs → detached-extension-handle-DAXKQT9c.mjs} +1 -1
  56. package/dist/{execution-attempt-repository-CRdrgou3.d.mts → execution-attempt-repository-CgB7uiYD.d.mts} +242 -9
  57. package/dist/execution-attempt-repository-D0cCU7dI.mjs +1 -0
  58. package/dist/{execution-target-H0RWV7Py.mjs → execution-target-BcoF_oDB.mjs} +1 -1
  59. package/dist/{hook-responses-9Ywsqzzq.d.mts → hook-responses-DcapjzLb.d.mts} +1 -1
  60. package/dist/{index-D1wTWSLR.d.mts → index-BADuMxcP.d.mts} +458 -458
  61. package/dist/{index-8NdPPzUh2.d.mts → index-BDAfOYSw2.d.mts} +12 -12
  62. package/dist/{index-DHnSLGP4.d.mts → index-BDzqNCXs.d.mts} +1 -1
  63. package/dist/{index-CxwqnZpT.d.mts → index-BakMNLkB.d.mts} +175 -80
  64. package/dist/{index-B0VO0rAl.d.mts → index-Bo3LRb2u.d.mts} +1 -1
  65. package/dist/{index-CVcG4Q3X.d.mts → index-Bsr4rZl0.d.mts} +13 -13
  66. package/dist/{index-B_8bA2JW.d.mts → index-BvgLFm-U.d.mts} +1 -1
  67. package/dist/{index-Dg11JxKZ.d.mts → index-BwccWakG.d.mts} +1 -1
  68. package/dist/{index-BJdkVFX9.d.mts → index-BxOFB25y.d.mts} +335 -78
  69. package/dist/{index-37_b--BH.d.mts → index-C1PfDEIV.d.mts} +52 -47
  70. package/dist/{index-CPRQ4dWX.d.mts → index-CBixkF0n.d.mts} +12 -0
  71. package/dist/{index-CyWGSxrs.d.mts → index-CGJgZGqN.d.mts} +292 -292
  72. package/dist/{index--Ws52sWV2.d.mts → index-COOM1j_L2.d.mts} +4 -4
  73. package/dist/{index-BmevAPME2.d.mts → index-Cbv_3Xi12.d.mts} +1 -1
  74. package/dist/{index-DWBkiiXH.d.mts → index-CfJKwWJa.d.mts} +1 -1
  75. package/dist/{index-DV38-klA2.d.mts → index-CiKzWCW02.d.mts} +273 -26
  76. package/dist/{index-AdcDBUnc.d.mts → index-D6RMsZko.d.mts} +95 -95
  77. package/dist/{index-CIEycZrt.d.mts → index-DIhkK4Y0.d.mts} +1 -1
  78. package/dist/{index-BKIxdzIw.d.mts → index-DZXpKlyB.d.mts} +21 -21
  79. package/dist/{index-DBD_oFEt2.d.mts → index-DZnb56vt2.d.mts} +1 -1
  80. package/dist/{index-Cny5RvjO.d.mts → index-J-kv32zv.d.mts} +2 -2
  81. package/dist/{index-BNzUyVwV.d.mts → index-LOh6AEqx.d.mts} +10 -10
  82. package/dist/{index-CYjgoYeX.d.mts → index-LryUXslm.d.mts} +3 -3
  83. package/dist/{index-CFI6FxC7.d.mts → index-QJW9g1mG.d.mts} +2 -2
  84. package/dist/{index-B0yMCJW8.d.mts → index-rygpcDBV.d.mts} +1 -1
  85. package/dist/{index-I5a37JCm.d.mts → index-vXmPEZ5O.d.mts} +382 -82
  86. package/dist/kernel/cli/index.d.mts +2 -2
  87. package/dist/kernel/cli/register.d.mts +1 -1
  88. package/dist/kernel/extension/index.d.mts +1 -1
  89. package/dist/kernel/index.d.mts +5 -5
  90. package/dist/kernel/namespace/index.d.mts +1 -1
  91. package/dist/kernel/observability/index.d.mts +1 -1
  92. package/dist/kernel/providers/index.d.mts +1 -1
  93. package/dist/kernel/window/index.d.mts +1 -1
  94. package/dist/{lib-Cm-uEoC1.mjs → lib-271rPR7A.mjs} +1 -1
  95. package/dist/{lib-BpGvHZye.mjs → lib-RFpLjUda.mjs} +1 -1
  96. package/dist/{load-extensions-BQoXaHhR.d.mts → load-extensions-CY8ELnCp.d.mts} +1 -1
  97. package/dist/{load-extensions-DG5LvPyM.mjs → load-extensions-D9inWcDy.mjs} +1 -1
  98. package/dist/{materialization-lVd9_-jr.mjs → materialization-B_LA9pfy.mjs} +1 -1
  99. package/dist/{namespace-DOezqDti.d.mts → namespace-BymM0nl_.d.mts} +27 -27
  100. package/dist/{namespace-Bo94cenp.d.mts → namespace-Cs-cOyrn.d.mts} +136 -136
  101. package/dist/{namespace-BdAK0lD8.d.mts → namespace-DdqVQSyc.d.mts} +2 -2
  102. package/dist/{namespace-BRuHzhPo.d.mts → namespace-DlrX8feY.d.mts} +45 -45
  103. package/dist/{namespace-CsnrP8AD.d.mts → namespace-Dw5H_KCF.d.mts} +1 -1
  104. package/dist/{namespace-CstawJgN.d.mts → namespace-DykqxEyX.d.mts} +2 -2
  105. package/dist/node/bus-server/index.d.mts +1 -1
  106. package/dist/node/bus-server/server-lifecycle.d.mts +1 -1
  107. package/dist/node/transports/index.d.mts +56 -16
  108. package/dist/node/transports/index.mjs +2 -2
  109. package/dist/package-CzKoZ1k0.mjs +7 -0
  110. package/dist/{package-DkZmsdCd.d.mts → package-DkpF17X_.d.mts} +458 -17
  111. package/dist/package.json +1 -1
  112. package/dist/rules/index.d.mts +1 -1
  113. package/dist/rules/schemas.d.mts +1 -1
  114. package/dist/runtime-bun/index.mjs +1 -1
  115. package/dist/runtime-node/code-execution/index.d.mts +2 -2
  116. package/dist/runtime-node/extension-discovery.d.mts +1 -1
  117. package/dist/runtime-node/extension-validation.d.mts +1 -1
  118. package/dist/runtime-node/extension-validation.mjs +1 -1
  119. package/dist/runtime-node/index.d.mts +6 -6
  120. package/dist/runtime-node/index.mjs +24 -24
  121. package/dist/runtime-node/makaio-config.d.mts +1 -1
  122. package/dist/runtime-node/workflow-execution-bus-access.mjs +1 -1
  123. package/dist/runtime-node/workflow-worker/index.d.mts +2 -2
  124. package/dist/runtime-node/workflow-worker/index.mjs +1 -1
  125. package/dist/runtime-node/workflow-worker/worker-entry.d.mts +22 -2
  126. package/dist/runtime-node/workflow-worker/worker-entry.mjs +1 -1
  127. package/dist/{schema-B3Pf7JP7.d.mts → schema-C9PauHXt.d.mts} +2 -2
  128. package/dist/{schemas-CJKHYluy.d.mts → schemas-B2UbGJpJ.d.mts} +15 -15
  129. package/dist/{schemas-B50oWBuj.d.mts → schemas-BDZFd3Wb.d.mts} +2 -2
  130. package/dist/schemas-CNkUEbIr.mjs +1 -0
  131. package/dist/schemas-CeHU889f.mjs +1 -0
  132. package/dist/{schemas-DTJtS14K.d.mts → schemas-ClGDFa44.d.mts} +136 -136
  133. package/dist/scoped-bus-DwVrmi_1.mjs +1 -0
  134. package/dist/services/adapter-runtime/index.d.mts +3 -3
  135. package/dist/services/adapter-runtime/namespace.d.mts +1 -1
  136. package/dist/services/adapter-runtime/schemas.d.mts +1 -1
  137. package/dist/services/adapter-subsystem/index.d.mts +3 -3
  138. package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
  139. package/dist/services/agent-runtime/index.d.mts +2 -2
  140. package/dist/services/agent-runtime/namespace.d.mts +1 -1
  141. package/dist/services/agent-runtime/schemas.d.mts +1 -1
  142. package/dist/services/capability/index.d.mts +2 -2
  143. package/dist/services/code-execution/index.d.mts +1 -1
  144. package/dist/services/codebase/index.d.mts +2 -2
  145. package/dist/services/codebase/namespace.d.mts +1 -1
  146. package/dist/services/codebase/schemas.d.mts +1 -1
  147. package/dist/services/compression/index.d.mts +2 -2
  148. package/dist/services/compression/namespace.d.mts +1 -1
  149. package/dist/services/compression/schemas.d.mts +1 -1
  150. package/dist/services/context-rules/index.d.mts +4 -4
  151. package/dist/services/execution-target/index.d.mts +3 -3
  152. package/dist/services/execution-target/index.mjs +1 -1
  153. package/dist/services/execution-target/namespace.d.mts +1 -1
  154. package/dist/services/execution-target/namespace.mjs +1 -1
  155. package/dist/services/execution-target/schemas.d.mts +1 -1
  156. package/dist/services/execution-target/schemas.mjs +1 -1
  157. package/dist/services/filesystem/index.d.mts +1 -1
  158. package/dist/services/filesystem/namespace.d.mts +6 -6
  159. package/dist/services/filesystem/schemas.d.mts +3 -3
  160. package/dist/services/index.d.mts +124 -122
  161. package/dist/services/index.mjs +1 -1
  162. package/dist/services/log-import/browser.d.mts +2 -2
  163. package/dist/services/log-import/index.d.mts +2 -2
  164. package/dist/services/log-import/log-import.d.mts +1 -1
  165. package/dist/services/materialization/index.d.mts +1 -1
  166. package/dist/services/model-registry/index.d.mts +1 -1
  167. package/dist/services/preferences/index.d.mts +2 -2
  168. package/dist/services/preferences/schemas.d.mts +1 -1
  169. package/dist/services/preferences/storage-namespace.d.mts +2 -2
  170. package/dist/services/provider-context/index.d.mts +1 -1
  171. package/dist/services/session/handlers/index.d.mts +1 -1
  172. package/dist/services/session/index.d.mts +9 -9
  173. package/dist/services/session/messages/namespace.d.mts +1 -1
  174. package/dist/services/session/orchestrator-testing/index.d.mts +1 -1
  175. package/dist/services/session/session-events/namespace.d.mts +1 -1
  176. package/dist/services/session/storage/namespace.d.mts +1 -1
  177. package/dist/services/session/storage/schema.d.mts +1 -1
  178. package/dist/services/session/testing/orchestrator-shared.d.mts +1 -1
  179. package/dist/services/session/turns/namespace.d.mts +1 -1
  180. package/dist/services/session-editor/index.d.mts +1 -1
  181. package/dist/services/settings/index.d.mts +3 -3
  182. package/dist/services/settings/namespace.d.mts +12 -12
  183. package/dist/services/settings/storage/clients-namespace.d.mts +1 -1
  184. package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
  185. package/dist/services/settings/storage/index.d.mts +3 -3
  186. package/dist/services/settings/storage/providers-namespace.d.mts +1 -1
  187. package/dist/services/subagent/index.d.mts +1 -1
  188. package/dist/services/subagent-template/index.d.mts +2 -2
  189. package/dist/services/subagent-template/namespace.d.mts +1 -1
  190. package/dist/services/subagent-template/schemas.d.mts +1 -1
  191. package/dist/services/tool-approval/index.d.mts +1 -1
  192. package/dist/services/tools/index.d.mts +1 -1
  193. package/dist/services/tray-menu/index.d.mts +3 -3
  194. package/dist/services/tray-menu/namespace.d.mts +1 -1
  195. package/dist/services/tray-menu/schemas.d.mts +1 -1
  196. package/dist/services/turn/index.d.mts +1 -1
  197. package/dist/services/turn/namespace.d.mts +1 -1
  198. package/dist/services/workflow-transitions/index.d.mts +1 -1
  199. package/dist/{src-BmSQ3rlz.mjs → src-DEgV239R.mjs} +1 -1
  200. package/dist/storage/drizzle/client.d.mts +1 -1
  201. package/dist/storage/drizzle/index.d.mts +1 -1
  202. package/dist/storage/handlers/drizzle/index.d.mts +1 -1
  203. package/dist/storage/handlers/index.d.mts +1 -1
  204. package/dist/{transition-DxsrTsn4.d.mts → transition-DFA_ckdP.d.mts} +2 -2
  205. package/dist/{types-Czdm5op1.d.mts → types-DkfDRSTr.d.mts} +356 -356
  206. package/dist/{types-CtDGkyLx2.d.mts → types-p55qvq922.d.mts} +1 -1
  207. package/dist/ui-kernel/index.d.mts +1 -1
  208. package/dist/ui-kernel/pages/schemas.d.mts +1 -1
  209. package/dist/{view-builder-D-Wz_l_B.d.mts → view-builder-CYW_9n4A.d.mts} +1 -1
  210. package/dist/worker-B4nD_Erm.mjs +1 -0
  211. package/dist/{workflow-BomH9DBB.mjs → workflow-H8hsEikC.mjs} +1 -1
  212. package/dist/workflow-engine/execution-attempt-repository.d.mts +2 -2
  213. package/dist/workflow-engine/execution-attempt-repository.mjs +1 -1
  214. package/dist/workflow-engine/index.d.mts +300 -216
  215. package/dist/workflow-engine/index.mjs +1 -1
  216. package/dist/workflow-engine/package.d.mts +1 -1
  217. package/dist/workflow-engine/package.mjs +1 -1
  218. package/dist/workflow-engine/provider-operation.d.mts +1 -1
  219. package/dist/workflow-engine/testing/conformance.d.mts +85 -0
  220. package/dist/workflow-engine/testing/conformance.mjs +1 -0
  221. package/dist/workflow-engine/testing/index.d.mts +12 -5
  222. package/dist/workflow-engine/testing/index.mjs +1 -1
  223. package/dist/workflow-engine/testing/sqlite.d.mts +1 -1
  224. package/dist/workflow-engine/testing/sqlite.mjs +75 -46
  225. package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
  226. package/dist/workflow-worker-CmIkKnpF.mjs +2 -0
  227. package/package.json +13 -1
  228. package/dist/attempt-record-codec-BORASgzn.mjs +0 -1
  229. package/dist/authority-state-bootstrap-eitx6Ukn.mjs +0 -1
  230. package/dist/bus-D6NoBhIV.mjs +0 -2
  231. package/dist/bus-UgFdHybD.mjs +0 -1
  232. package/dist/package-UemD2NWn.mjs +0 -7
  233. package/dist/runtime-registration-client-BTtFpt_k.mjs +0 -1
  234. package/dist/schemas-C3kyQWGf.mjs +0 -1
  235. package/dist/schemas-TK29KWx-.mjs +0 -1
  236. package/dist/scoped-bus-DoPmCJeM.mjs +0 -1
  237. package/dist/worker-DlRdLf2d.mjs +0 -1
  238. package/dist/workflow-worker-DjUfKshi.mjs +0 -1
  239. /package/dist/{adapter-binding-CATvmGuz.d.mts → adapter-binding-D68U_Hmh.d.mts} +0 -0
  240. /package/dist/{base-orchestrator-B4YW6z_Q.d.mts → base-orchestrator-DA95InJU.d.mts} +0 -0
  241. /package/dist/{capability-service-BW1-teFU.d.mts → capability-service-s4ZYSEWc.d.mts} +0 -0
  242. /package/dist/{client-binary-version-verifier-lcv83Hq3.d.mts → client-binary-version-verifier-kd9LP9AQ.d.mts} +0 -0
  243. /package/dist/{client-BG0WX5Vz.d.mts → client-f5A-6La5.d.mts} +0 -0
  244. /package/dist/{clients-namespace-DLAjOTTb.d.mts → clients-namespace-q4PqU1cA.d.mts} +0 -0
  245. /package/dist/{config-namespace-CH7sJZ4f.d.mts → config-namespace-Cp71zTT0.d.mts} +0 -0
  246. /package/dist/{create-static-mount-DxuixuLZ.mjs → create-static-mount-CmQgA0jq.mjs} +0 -0
  247. /package/dist/{definition-BrgzUuFk.d.mts → definition-BHSzhrUf.d.mts} +0 -0
  248. /package/dist/{extension-context-QmFuHdq5.d.mts → extension-context-BmU5XKjI.d.mts} +0 -0
  249. /package/dist/{extension-discovery-Dhu3WplO.d.mts → extension-discovery-DnO7bINK.d.mts} +0 -0
  250. /package/dist/{filesystem-service-ZJ43SbBi.d.mts → filesystem-service-BBArEDPL.d.mts} +0 -0
  251. /package/dist/{index-BC-6qNeo.d.mts → index-B-zl-O-Y.d.mts} +0 -0
  252. /package/dist/{index-BfV8U4XX.d.mts → index-BB0HypzC.d.mts} +0 -0
  253. /package/dist/{index-8y4hT9WL.d.mts → index-Bf2MgOni.d.mts} +0 -0
  254. /package/dist/{index-B4svZC6L.d.mts → index-C9xVZ-gt.d.mts} +0 -0
  255. /package/dist/{index-kzIjbrS02.d.mts → index-CDLf3Fka2.d.mts} +0 -0
  256. /package/dist/{index-BuMsrli0.d.mts → index-CPWBGotQ.d.mts} +0 -0
  257. /package/dist/{index-pvX-BIpr2.d.mts → index-CcrXttC02.d.mts} +0 -0
  258. /package/dist/{index-B5dP8rj6.d.mts → index-CkpR5sIH.d.mts} +0 -0
  259. /package/dist/{index-CmbkCxj-.d.mts → index-Co1da7YK.d.mts} +0 -0
  260. /package/dist/{index-VzLAV0Yt.d.mts → index-CrcfeFOo.d.mts} +0 -0
  261. /package/dist/{index-BM56936c.d.mts → index-CsFN2nv7.d.mts} +0 -0
  262. /package/dist/{index-CVpaGijY.d.mts → index-D-JbTXIH.d.mts} +0 -0
  263. /package/dist/{index-l01zsChf.d.mts → index-D94yE5Dr.d.mts} +0 -0
  264. /package/dist/{index-D037TVsm.d.mts → index-DQD2-jcL.d.mts} +0 -0
  265. /package/dist/{index-D8D-yibS2.d.mts → index-DSLTgc7h2.d.mts} +0 -0
  266. /package/dist/{index-CL0Jo1b92.d.mts → index-DSN2t48K.d.mts} +0 -0
  267. /package/dist/{index-DQ8o3JGi.d.mts → index-DW4SE_sH.d.mts} +0 -0
  268. /package/dist/{index-DgspOUa72.d.mts → index-DYHxzwok2.d.mts} +0 -0
  269. /package/dist/{index-BMRB9yhF.d.mts → index-D_sMzTvv.d.mts} +0 -0
  270. /package/dist/{index-BFWvT0NG.d.mts → index-Df1c_2PF.d.mts} +0 -0
  271. /package/dist/{index-B2Y1Wvbh.d.mts → index-Dn_SGTgp.d.mts} +0 -0
  272. /package/dist/{index-C4V8Pmi4.d.mts → index-KAAnSRZt.d.mts} +0 -0
  273. /package/dist/{index-Ek4y8M9J2.d.mts → index-NhW2h2wH2.d.mts} +0 -0
  274. /package/dist/{index-CqdMbYmR.d.mts → index-mK-rgiit.d.mts} +0 -0
  275. /package/dist/{index-BTEJfzjE.d.mts → index-xaBSwHxJ.d.mts} +0 -0
  276. /package/dist/{json-value-DPqb-SJ8.d.mts → json-value-pX6xnLGw.d.mts} +0 -0
  277. /package/dist/{jsonl-transport-Cyyh5Wje.mjs → jsonl-transport-DQIlRX_y.mjs} +0 -0
  278. /package/dist/{lib-BqV8hYtk.mjs → lib-6eNAiNK7.mjs} +0 -0
  279. /package/dist/{namespace-DBO1OzYB.d.mts → namespace-9ychTEk_.d.mts} +0 -0
  280. /package/dist/{namespace-CVFaZv8x.d.mts → namespace-BGDq7HmW.d.mts} +0 -0
  281. /package/dist/{namespace-K23m4b0n.d.mts → namespace-BMG3RCdr.d.mts} +0 -0
  282. /package/dist/{namespace-CPm9dhi2.d.mts → namespace-BoyqQiW9.d.mts} +0 -0
  283. /package/dist/{namespace-BUYDmd0r.d.mts → namespace-CPR2xem0.d.mts} +0 -0
  284. /package/dist/{namespace-CPG6u60N.d.mts → namespace-CQEYu8az.d.mts} +0 -0
  285. /package/dist/{namespace-DqZweTbX.d.mts → namespace-CVg_cpkh.d.mts} +0 -0
  286. /package/dist/{namespace-B0ftHlK3.d.mts → namespace-DG0hjPcx.d.mts} +0 -0
  287. /package/dist/{orchestrator-shared-CNHSImNY.d.mts → orchestrator-shared-BzqqcY2z.d.mts} +0 -0
  288. /package/dist/{packages-CxPMEg8D.d.mts → packages-Cx-BwSZr.d.mts} +0 -0
  289. /package/dist/{provider-operation-DbdyFwNm.d.mts → provider-operation-B2wQST6N.d.mts} +0 -0
  290. /package/dist/{providers-namespace-CfZKp-C0.d.mts → providers-namespace-DsKTnuO1.d.mts} +0 -0
  291. /package/dist/{schemas-ChmQldVH.d.mts → schemas--LAbwXvw.d.mts} +0 -0
  292. /package/dist/{schemas-CF8QwRqt.d.mts → schemas-Bk50UoMA.d.mts} +0 -0
  293. /package/dist/{schemas-BCXvEWyF.d.mts → schemas-CBpjAhut.d.mts} +0 -0
  294. /package/dist/{schemas-bfZNpl0B.d.mts → schemas-CHRuwe18.d.mts} +0 -0
  295. /package/dist/{schemas-BGvkTiCx.d.mts → schemas-CzGN0eqW.d.mts} +0 -0
  296. /package/dist/{schemas-Pe892GgN.d.mts → schemas-DmULJ7Jk.d.mts} +0 -0
  297. /package/dist/{schemas-B6Q-qdmn.d.mts → schemas-Dxvjq-Bi.d.mts} +0 -0
  298. /package/dist/{schemas-CenET9Cq.d.mts → schemas-Wqo3_F6-.d.mts} +0 -0
  299. /package/dist/{server-lifecycle-L8zja8t8.d.mts → server-lifecycle-WFZcCMwF.d.mts} +0 -0
  300. /package/dist/{session-lineage-bUkd3fqx.d.mts → session-lineage-C9kppcCa.d.mts} +0 -0
  301. /package/dist/{src-BacfeiI4.mjs → src-DIyWekjW.mjs} +0 -0
  302. /package/dist/{storage-namespace-YmE8XCCL.d.mts → storage-namespace-BWU-8rvj.d.mts} +0 -0
  303. /package/dist/{storage-namespace-definition-BsnYAPot.d.mts → storage-namespace-definition-B-8JKvzm.d.mts} +0 -0
  304. /package/dist/{types-DdpSEmTO.d.mts → types-8rMNe3AS.d.mts} +0 -0
  305. /package/dist/{types-DnK6Wa_Y.d.mts → types-BFeWU3WM.d.mts} +0 -0
  306. /package/dist/{types-tyv0B605.d.mts → types-BnPJa-C_.d.mts} +0 -0
  307. /package/dist/{types-OKJCOjme.d.mts → types-DQTCNM2i.d.mts} +0 -0
  308. /package/dist/{types-BlB23n4f.d.mts → types-DxHeL0pF.d.mts} +0 -0
  309. /package/dist/{window-registry-Pcf35cac.d.mts → window-registry-DQP5P2_0.d.mts} +0 -0
@@ -1,12 +1,13 @@
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-DbdyFwNm.mjs";
2
- import { A as OutcomeCodec, B as RecordProvisioningAbsentInput, C as ExecutionAttemptStatus, D as MarkRuntimeReadyInput, E as InfrastructureFailureDecision, F as RecordAllocationInput, G as RuntimeRegistrationDecision, H as RegisterRuntimeInput, I as RecordAllocationTerminatedInput, J as durableOutcome, K as TakeOverProviderOperationInput, L as RecordInfrastructureFailureInput, M as ProvisionerIncarnationLossDecision, N as ProvisioningAbsenceDecision, O as OperationAdmissionDecision, P as ProvisioningClaimDecision, R as RecordProviderOperationUncertaintyInput, S as ExecutionAttemptSettlementKind, T as HandoffProviderOperationInput, U as RenewProviderOperationClaimInput, V as RecoverableAttemptRecord, W as RuntimeReadinessDecision, X as sameDurableOutcome, Y as sameAllocationRef, _ as ExecutionAttemptOutcomeCommit, a as AllocationRefEvolutionDecision, b as ExecutionAttemptRecoveryOperations, c as AttemptOperationStartGate, d as DiscoveredAllocationDecision, f as DuplicateExecutionAttemptError, g as ExecutionAttemptCreate, h as EXECUTION_ATTEMPT_STATUSES, i as AllocationRefEvolution, j as PendingAttemptAbandonmentDecision, k as OperationCompletionDecision, l as BeginProvisioningInput, m as EXECUTION_ATTEMPT_SETTLEMENT_KINDS, n as AdmitOperationInput, o as AllocationTerminationDecision, p as DurableOutcome, q as decodeDurableOutcome, r as AllocationRecordingDecision, s as AttemptControlState, t as ATTEMPT_OPERATION_START_GATES, u as CompleteOperationInput, v as ExecutionAttemptOutcomeDecision, w as ExecutionOwnerId, x as ExecutionAttemptRepository, y as ExecutionAttemptRecord, z as RecordProvisionerIncarnationLostInput } from "../execution-attempt-repository-CRdrgou3.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-DkZmsdCd.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-B2wQST6N.mjs";
2
+ import { $ as RuntimeReadinessDecision, A as MarkRuntimeReadyInput, B as ReadBootstrapStartStateInput, C as ExecutionAttemptRepository, E as ExecutionOwnerId, F as PendingAttemptAbandonmentDecision, G as RecordProvisionerIncarnationLostInput, H as RecordAllocationTerminatedInput, J as RegisterRuntimeInput, K as RecordProvisioningAbsentInput, L as ProvisionerIncarnationLossDecision, M as OperationCompletionDecision, O as HandoffProviderOperationInput, P as OutcomeCodec, Q as RuntimeOutcomeFenceMismatchError, R as ProvisioningAbsenceDecision, S as ExecutionAttemptRecoveryOperations, T as ExecutionAttemptStatus, U as RecordInfrastructureFailureInput, V as RecordAllocationInput, W as RecordProviderOperationUncertaintyInput, Y as RenewProviderOperationClaimInput, Z as RuntimeOutcomeFence, _ as EXECUTION_ATTEMPT_STATUSES, a as AllocationRefEvolutionDecision, at as sameAllocationRef, b as ExecutionAttemptOutcomeDecision, ct as AttemptReachabilityDecision, d as BootstrapStartState, dt as evaluateOperationCompletion, et as RuntimeRegistrationDecision, f as CompleteOperationInput, g as EXECUTION_ATTEMPT_SETTLEMENT_KINDS, h as DurableOutcome, ht as evaluateRuntimeRegistration, i as AllocationRefEvolution, it as durableOutcome, j as OperationAdmissionDecision, k as InfrastructureFailureDecision, l as AttemptOperationStartGate, lt as evaluateAttemptReachability, m as DuplicateExecutionAttemptError, mt as evaluateRuntimeReadiness, n as AdmitOperationInput, nt as assertRuntimeOutcomeFence, o as AllocationTerminationDecision, ot as sameDurableOutcome, p as DiscoveredAllocationDecision, pt as evaluateProvisionerIncarnationLoss, q as RecoverableAttemptRecord, r as AllocationRecordingDecision, rt as decodeDurableOutcome, s as AttemptControlState, st as AttemptReachability, t as ATTEMPT_OPERATION_START_GATES, tt as TakeOverProviderOperationInput, u as BeginProvisioningInput, ut as evaluateOperationAdmission, v as ExecutionAttemptCreate, w as ExecutionAttemptSettlementKind, x as ExecutionAttemptRecord, y as ExecutionAttemptOutcomeCommit, z as ProvisioningClaimDecision } from "../execution-attempt-repository-CgB7uiYD.mjs";
3
+ import { A as WorkflowWorkspaceRootResolver, C as OutcomePreCommitValidation, D as BootstrapStartOptions, E as BootstrapStartAuthority, O as WorkflowMaterializationSpecResolution, S as OutcomeConvergenceInput, T as ExecutionAttemptAuthority, _ as ExecutionAttemptHandlersDeps, a as WorkflowEngineServiceOptions, b as AttemptOutcomeSubmissionDeps, c as CommittedWorkflowOutcomeIdentity, d as WorkflowAttemptOutcomeSchema, f as WorkflowAttemptTechnicalFailure, g as AttemptOutcomeDecodingInput, h as workflowAttemptOutcomeCodec, i as WorkflowEngineService, j as registerDrizzleWorkflowStorage, k as WorkflowMaterializationSpecResolver, l as WorkflowAttemptCancellation, m as toCommittedWorkflowRunnerResult, n as createWorkflowEnginePackage, o as WorkflowTriggerReconciler, p as decodeWorkflowAttemptOutcome, r as workflowEnginePackage, s as WorkflowExecutor, t as WorkflowEngineToken, u as WorkflowAttemptOutcome, v as registerExecutionAttemptHandlers, w as submitAttemptOutcome, x as OutcomeConvergence, y as AttemptOutcomeSubmission } from "../package-DkpF17X_.mjs";
4
4
  import { WorkflowTriggerPayloadPredicate, assertWorkflowTriggerPayload, compileWorkflowTriggerBindingFilter } from "./workflow-trigger-binding-consumer.mjs";
5
5
  import { z } from "zod";
6
6
  import * as _$_makaio_core0 from "@makaio/framework/core";
7
+ import { BaseMessageContext } from "@makaio/framework/core";
7
8
  import { IMakaioBus } from "@makaio/framework/bus";
8
9
  import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
9
- import { JsonPatchOperation, JsonValue, WorkflowAutomationTriggerBinding, WorkflowExecution, WorkflowExecutionSchema, WorkflowListQuerySchema, WorkflowRunResult, createWorkflowFinalizerNamespace } from "@makaio/framework/contracts";
10
+ import { ExecutionAttemptInstruction, ExecutionPreservationRequirements, JsonPatchOperation, JsonValue, WorkflowAutomationTriggerBinding, WorkflowExecution, WorkflowExecutionSchema, WorkflowListQuerySchema, WorkflowRunContext, WorkflowRunResult, WorkflowWorkerConfig, WorkspaceRequirement, createWorkflowFinalizerNamespace } from "@makaio/framework/contracts";
10
11
  import * as _$drizzle_orm_sqlite_core0 from "drizzle-orm/sqlite-core";
11
12
  import * as _$drizzle_orm_pg_core0 from "drizzle-orm/pg-core";
12
13
  import * as _$_makaio_storage_drizzle0 from "@makaio/framework/storage/drizzle";
@@ -24,6 +25,232 @@ interface WorkflowSuccessFinalizer {
24
25
  readonly finalizeSubject: ReturnType<typeof createWorkflowFinalizerNamespace>['subjects']['finalize'];
25
26
  }
26
27
  //#endregion
28
+ //#region subsystems/workflow-engine/src/execution-bound-access.d.ts
29
+ /**
30
+ * Authenticated dispatch identity carried by a remote workflow worker.
31
+ *
32
+ * Both fields are derived from the transport peer the receiving transport
33
+ * authenticated — never from the request payload — so a worker cannot claim
34
+ * another attempt or another execution.
35
+ */
36
+ interface ExecutionAttemptPeerIdentity {
37
+ /** Authority-created attempt identifier (`peer.id`). */
38
+ readonly executionAttemptId: string;
39
+ /** Workflow execution identifier from the Authority-issued `executionId` claim. */
40
+ readonly executionId: string;
41
+ }
42
+ /**
43
+ * Resolve the authenticated attempt identity of a remote caller.
44
+ *
45
+ * This is the single derivation of "who is this worker" shared by every
46
+ * execution-bound seam in the subsystem. A caller qualifies only when the
47
+ * receiving transport authenticated it as a `workflow-execution-attempt` peer
48
+ * carrying both a non-empty attempt id and a non-empty Authority-issued
49
+ * `executionId` claim.
50
+ *
51
+ * Local origin is deliberately not considered here: each seam decides what a
52
+ * trusted local caller may do with the identity it already owns.
53
+ * @param ctx - Incoming message context.
54
+ * @returns Resolved attempt identity, or `null` when the caller is not an authenticated attempt peer.
55
+ */
56
+ declare function resolveExecutionAttemptPeer(ctx: BaseMessageContext): ExecutionAttemptPeerIdentity | null;
57
+ //#endregion
58
+ //#region subsystems/workflow-engine/src/workflow-attempt-instruction.d.ts
59
+ /** Installed adapter that interprets portable workflow invocation input. */
60
+ declare const WORKFLOW_WORKLOAD_KIND = "workflow";
61
+ /** Version of the workflow adapter's frozen input contract. */
62
+ declare const WORKFLOW_WORKLOAD_VERSION = "1";
63
+ /**
64
+ * Immutable workflow semantics, independent of the selected Worker Runtime.
65
+ *
66
+ * Environment values, contribution packages, and provider suspension behavior
67
+ * are runtime inputs. Executable acquisition remains in this adapter payload;
68
+ * it does not implicitly request a project Workspace.
69
+ */
70
+ declare const WorkflowInvocationInputSchema: z.ZodObject<{
71
+ executionId: z.ZodString;
72
+ workflowId: z.ZodString;
73
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
74
+ kind: z.ZodLiteral<"path">;
75
+ path: z.ZodString;
76
+ }, z.core.$strict>, z.ZodObject<{
77
+ kind: z.ZodLiteral<"source">;
78
+ filename: z.ZodString;
79
+ source: z.ZodString;
80
+ }, z.core.$strict>, z.ZodObject<{
81
+ kind: z.ZodLiteral<"definition">;
82
+ workflowId: z.ZodString;
83
+ }, z.core.$strict>], "kind">;
84
+ definitionSnapshot: z.ZodOptional<z.ZodObject<{
85
+ id: z.ZodString;
86
+ name: z.ZodOptional<z.ZodString>;
87
+ description: z.ZodOptional<z.ZodString>;
88
+ inputSchema: z.ZodOptional<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>>>>;
89
+ configSchema: z.ZodOptional<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>>>>;
90
+ outputSchema: z.ZodOptional<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>>>>;
91
+ state: z.ZodOptional<z.ZodObject<{
92
+ schema: 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>>>;
93
+ initial: z.ZodOptional<z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>>;
94
+ }, z.core.$strip>>;
95
+ artifact: z.ZodOptional<z.ZodObject<{
96
+ kind: z.ZodString;
97
+ schemaVersion: z.ZodString;
98
+ scope: z.ZodObject<{
99
+ level: z.ZodString;
100
+ ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
101
+ }, z.core.$strip>;
102
+ resolve: z.ZodOptional<z.ZodString>;
103
+ create: z.ZodOptional<z.ZodString>;
104
+ statusPath: z.ZodOptional<z.ZodString>;
105
+ }, z.core.$strip>>;
106
+ root: z.ZodObject<{
107
+ id: z.ZodString;
108
+ when: z.ZodOptional<z.ZodString>;
109
+ skip: z.ZodOptional<z.ZodString>;
110
+ writes: z.ZodOptional<z.ZodArray<z.ZodObject<{
111
+ kind: z.ZodString;
112
+ schemaVersion: z.ZodString;
113
+ scope: z.ZodObject<{
114
+ level: z.ZodString;
115
+ ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
116
+ }, z.core.$strip>;
117
+ dataExpression: z.ZodOptional<z.ZodString>;
118
+ }, z.core.$strip>>>;
119
+ type: z.ZodLiteral<"sequence">;
120
+ nodes: z.ZodLazy<z.ZodType<_$_makaio_contracts0.WorkflowNode[], unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.WorkflowNode[], unknown>>>;
121
+ }, z.core.$strip>;
122
+ triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
123
+ kind: z.ZodString;
124
+ 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>>>;
125
+ filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodObject<{
126
+ $in: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
127
+ }, z.core.$strict>, z.ZodObject<{
128
+ $ne: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
129
+ }, z.core.$strict>, z.ZodObject<{
130
+ $exists: z.ZodBoolean;
131
+ }, z.core.$strict>, z.ZodObject<{
132
+ $startsWith: z.ZodString;
133
+ }, z.core.$strict>, z.ZodObject<{
134
+ $endsWith: z.ZodString;
135
+ }, z.core.$strict>]>>>;
136
+ filterExpression: z.ZodOptional<z.ZodString>;
137
+ }, z.core.$strip>>>;
138
+ scope: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
139
+ type: z.ZodLiteral<"global">;
140
+ }, z.core.$strict>, z.ZodObject<{
141
+ type: z.ZodLiteral<"workspace">;
142
+ id: z.ZodString;
143
+ }, z.core.$strict>, z.ZodObject<{
144
+ type: z.ZodLiteral<"session">;
145
+ id: z.ZodString;
146
+ }, z.core.$strict>, z.ZodObject<{
147
+ type: z.ZodLiteral<"external">;
148
+ kind: z.ZodString;
149
+ id: z.ZodString;
150
+ }, z.core.$strict>], "type">>;
151
+ canvasLayout: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>>>;
152
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
153
+ kind: z.ZodLiteral<"editor">;
154
+ }, z.core.$strict>, z.ZodObject<{
155
+ kind: z.ZodLiteral<"extension">;
156
+ extension: z.ZodString;
157
+ externalId: z.ZodOptional<z.ZodString>;
158
+ syncedAt: z.ZodOptional<z.ZodString>;
159
+ metadata: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
160
+ }, z.core.$strict>], "kind">>;
161
+ executableSource: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
162
+ kind: z.ZodLiteral<"path">;
163
+ path: z.ZodString;
164
+ }, z.core.$strict>, z.ZodObject<{
165
+ kind: z.ZodLiteral<"source">;
166
+ filename: z.ZodString;
167
+ source: z.ZodString;
168
+ }, z.core.$strict>, z.ZodObject<{
169
+ kind: z.ZodLiteral<"definition">;
170
+ workflowId: z.ZodString;
171
+ }, z.core.$strict>], "kind">>;
172
+ requirements: z.ZodOptional<z.ZodObject<{
173
+ maxRuntimeMs: z.ZodOptional<z.ZodNumber>;
174
+ persistentStorage: z.ZodOptional<z.ZodBoolean>;
175
+ customCapabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
176
+ recoverableAllocation: z.ZodOptional<z.ZodBoolean>;
177
+ materializationModes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
178
+ "local-directory": "local-directory";
179
+ "workspace-snapshot": "workspace-snapshot";
180
+ }>>>;
181
+ }, z.core.$strip>>;
182
+ successFinalizerId: z.ZodOptional<z.ZodString>;
183
+ }, z.core.$strip>>;
184
+ inputs: z.ZodDefault<z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>>;
185
+ config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
186
+ scope: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
187
+ type: z.ZodLiteral<"global">;
188
+ }, z.core.$strict>, z.ZodObject<{
189
+ type: z.ZodLiteral<"workspace">;
190
+ id: z.ZodString;
191
+ }, z.core.$strict>, z.ZodObject<{
192
+ type: z.ZodLiteral<"session">;
193
+ id: z.ZodString;
194
+ }, z.core.$strict>, z.ZodObject<{
195
+ type: z.ZodLiteral<"external">;
196
+ kind: z.ZodString;
197
+ id: z.ZodString;
198
+ }, z.core.$strict>], "type">>;
199
+ triggerPayload: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
200
+ triggerMode: z.ZodOptional<z.ZodEnum<{
201
+ immediate: "immediate";
202
+ "await-trigger": "await-trigger";
203
+ }>>;
204
+ artifactRef: z.ZodOptional<z.ZodObject<{
205
+ kind: z.ZodString;
206
+ id: z.ZodString;
207
+ }, z.core.$strip>>;
208
+ coordinatorSessionId: z.ZodString;
209
+ cancelSubject: z.ZodString;
210
+ materializationSpec: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
211
+ kind: z.ZodLiteral<"local-directory">;
212
+ workspaceId: z.ZodString;
213
+ rootDigest: z.ZodString;
214
+ sourcePath: z.ZodString;
215
+ }, z.core.$strict>, z.ZodObject<{
216
+ kind: z.ZodLiteral<"workspace-snapshot">;
217
+ snapshotId: z.ZodString;
218
+ digest: z.ZodString;
219
+ sourcePath: z.ZodString;
220
+ }, z.core.$strict>], "kind">>;
221
+ terminalAuthority: z.ZodLiteral<"authority">;
222
+ }, z.core.$strict>;
223
+ /** Portable input understood exclusively by the workflow workload adapter. */
224
+ type WorkflowInvocationInput = z.infer<typeof WorkflowInvocationInputSchema>;
225
+ /** Owner inputs for freezing one workflow assignment before Attempt dispatch. */
226
+ interface BuildWorkflowAttemptInstructionOptions {
227
+ /** Identity assigned by the execution owner to this instruction. */
228
+ readonly id: string;
229
+ /** Revision assigned by the execution owner before Attempt creation. */
230
+ readonly revision: string;
231
+ /** Runner configuration; transport credentials and environment are never copied. */
232
+ readonly config: WorkflowWorkerConfig;
233
+ /** Portable owner snapshot, required when runner config names a local executable path. */
234
+ readonly runContext?: WorkflowRunContext;
235
+ /** Optional project working area, independent of workflow executable acquisition. */
236
+ readonly workspace?: WorkspaceRequirement;
237
+ /** Explicit preservation obligations; an empty list declares scratch work. */
238
+ readonly preservation: ExecutionPreservationRequirements;
239
+ }
240
+ /**
241
+ * Freeze workflow semantics without persisting a worker config or local paths.
242
+ * @param options - Instruction identity, portable workflow input, and explicit resource requirements.
243
+ * @returns A detached instruction suitable for Authority-owned Attempt creation.
244
+ */
245
+ declare function buildWorkflowAttemptInstruction(options: BuildWorkflowAttemptInstructionOptions): ExecutionAttemptInstruction;
246
+ /**
247
+ * Parse an assignment at the workflow adapter boundary.
248
+ * @param instruction - Frozen generic Attempt instruction.
249
+ * @returns The workflow adapter's portable input.
250
+ * @throws When the instruction requires another adapter or input version.
251
+ */
252
+ declare function parseWorkflowAttemptInstruction(instruction: ExecutionAttemptInstruction): WorkflowInvocationInput;
253
+ //#endregion
27
254
  //#region subsystems/workflow-engine/src/runtime-registration.d.ts
28
255
  /**
29
256
  * Time the authority waits for the runtime's receipt of the bounded probe.
@@ -159,6 +386,15 @@ interface OperationAdmissionDeps<TOutcome> {
159
386
  */
160
387
  declare function registerOperationAdmissionHandler<TOutcome>(bus: IMakaioBus, deps: OperationAdmissionDeps<TOutcome>): () => void;
161
388
  //#endregion
389
+ //#region subsystems/workflow-engine/src/bootstrap-start-handler.d.ts
390
+ /**
391
+ * Register attempt-authenticated start authorization and own its pending waits.
392
+ * @param bus - Bus receiving the authenticated requests.
393
+ * @param authority - Durable start authorization, shared with credential ingress.
394
+ * @returns Idempotent cleanup that cancels waits before removing the handler.
395
+ */
396
+ declare function registerBootstrapStartHandler(bus: IMakaioBus, authority: BootstrapStartAuthority): () => void;
397
+ //#endregion
162
398
  //#region subsystems/workflow-engine/src/authority-dispatch-runner.d.ts
163
399
  /**
164
400
  * Inputs for dispatching an Authority-owned attempt.
@@ -169,6 +405,8 @@ interface AuthorityDispatchRunnerOptions<TOutcome> {
169
405
  readonly authority: ExecutionAttemptAuthority<TOutcome>;
170
406
  /** Owner identifier of the aggregate that owns the attempt. */
171
407
  readonly executionId: ExecutionOwnerId;
408
+ /** Complete non-secret assignment frozen before this Attempt can be dispatched. */
409
+ readonly instruction: ExecutionAttemptInstruction;
172
410
  /** Dispatch operation whose successful return acknowledges acceptance. */
173
411
  readonly dispatch: (executionAttemptId: string) => Promise<unknown>;
174
412
  }
@@ -178,165 +416,11 @@ interface AuthorityDispatchRunnerOptions<TOutcome> {
178
416
  * A rejected dispatch operation is not proof that no provider received the
179
417
  * request. The pending-abandonment CAS distinguishes a confirmed pre-allocation
180
418
  * failure from a lost acknowledgement after provisioning, allocation, or settlement.
181
- * @param options - Authority, owner identity, and dispatch operation.
419
+ * @param options - Authority, owner identity, immutable instruction, and dispatch operation.
182
420
  * @returns The Authority-committed outcome.
183
421
  */
184
422
  declare function runAuthorityDispatchedAttempt<TOutcome>(options: AuthorityDispatchRunnerOptions<TOutcome>): Promise<TOutcome>;
185
423
  //#endregion
186
- //#region subsystems/workflow-engine/src/outcome-convergence.d.ts
187
- /**
188
- * Input handed to {@link OutcomeConvergence.converge}.
189
- *
190
- * Named rather than inlined so an owner-side realization can state the shape
191
- * it implements against, and so a consumer can pin it from the public surface.
192
- * @typeParam TOutcome - Owner-specific outcome type committed per attempt.
193
- */
194
- interface OutcomeConvergenceInput<TOutcome> {
195
- /** Owner identifier the attempt belongs to. */
196
- readonly executionId: ExecutionOwnerId;
197
- /** Authority-created attempt identifier. */
198
- readonly executionAttemptId: string;
199
- /** The canonical committed outcome, never the submitter's copy of it. */
200
- readonly outcome: TOutcome;
201
- /** The durable decision that produced the committed outcome. */
202
- readonly decision: 'accepted' | 'duplicate';
203
- }
204
- /**
205
- * Owner-side convergence of a committed attempt outcome.
206
- *
207
- * Runs after the durable commit and before waiter settlement and ACK. It is
208
- * idempotent by contract: it is re-entered for every duplicate retry, because
209
- * a worker whose first submission committed but did not converge resubmits
210
- * the same outcome, receives `duplicate`, and must converge again.
211
- * @typeParam TOutcome - Owner-specific outcome type committed per attempt.
212
- */
213
- interface OutcomeConvergence<TOutcome> {
214
- /**
215
- * Converge owner state with the committed outcome.
216
- * @param input - Attempt identity, the canonical committed outcome, and the
217
- * durable decision that produced it.
218
- */
219
- converge(input: OutcomeConvergenceInput<TOutcome>): Promise<void>;
220
- }
221
- /**
222
- * Owner-side validation that runs before the durable commit.
223
- *
224
- * Performs reads only: an outcome it rejects never becomes an immutable
225
- * attempt outcome, so a corrected retry is not answered as a conflict. What
226
- * it inspects is the canonical outcome the attempt will hold, obtained from
227
- * `ExecutionAttemptAuthority.canonicalizeOutcome` before the commit.
228
- *
229
- * **A realization must be retry-stable.** {@link submitAttemptOutcome} runs it
230
- * ahead of every commit, including the retry of a submission that already
231
- * committed, so its verdict may depend only on the submission itself and on
232
- * owner facts no convergence step rewrites — never on owner state convergence
233
- * moves forward. A validator that read, say, a mutable lifecycle status would
234
- * reject the identical retry of an outcome its own convergence already
235
- * committed, and the waiter for that outcome would never settle.
236
- *
237
- * Retry-stable is measured on the outcome, not on its text. A retry need not
238
- * render the same text as the first commit: `sameDurableOutcome` judges
239
- * two texts the same outcome whatever member order they carry and answers
240
- * `duplicate` for such a retry, while the validator sees the retry's own
241
- * canonical rendering, never the stored one. Its verdict may therefore turn
242
- * only on what `sameDurableOutcome` compares — the members and their values
243
- * — and never on member order or any other detail of one particular
244
- * rendering. A validator that keyed on which member comes first would reject
245
- * the retry the repository is about to report as `duplicate`, and the
246
- * committed-but-unconverged waiter could never recover. Validating the stored
247
- * representation instead is not an option, for the reason the next paragraph
248
- * gives: validation runs ahead of the commit, where the retry's rendering is
249
- * the only one there is.
250
- *
251
- * The rule is stated here rather than worked around downstream because the
252
- * order it constrains is the one that keeps a spoofed outcome out of durable
253
- * storage: validation cannot move behind the commit without committing what
254
- * it exists to reject. The workflow adapter's `validateOutcomeExecutionIdentity`
255
- * satisfies it by correlating the submitted result against immutable durable
256
- * identity — the execution's own id and workflow id, and the run context's
257
- * terminal-authority binding, none of which outcome convergence touches.
258
- * @typeParam TOutcome - Owner-specific outcome type committed per attempt.
259
- */
260
- interface OutcomePreCommitValidation<TOutcome> {
261
- /**
262
- * Validate an outcome against owner state.
263
- *
264
- * Called again for every retry of the same submission, so the same outcome
265
- * owes the same verdict — the same as `sameDurableOutcome` reads it,
266
- * which ignores member order and every other rendering detail, not the
267
- * same text.
268
- *
269
- * The outcome handed over is the canonical one — what the attempt will
270
- * hold and what {@link OutcomeConvergence.converge} will receive — not the
271
- * submitter's copy of it. A codec may normalize while serializing, so
272
- * validating the copy would let an outcome the validator would have
273
- * rejected become the immutable committed one.
274
- * @param executionId - Owner identifier the attempt belongs to.
275
- * @param outcome - Canonical outcome about to be committed.
276
- * @throws When the outcome must not be committed.
277
- */
278
- validate(executionId: ExecutionOwnerId, outcome: TOutcome): Promise<void>;
279
- }
280
- /**
281
- * Dependencies of {@link submitAttemptOutcome}.
282
- * @typeParam TOutcome - Owner-specific outcome type committed per attempt.
283
- */
284
- interface AttemptOutcomeSubmissionDeps<TOutcome> {
285
- /** Authority that commits the outcome and holds the in-process waiter. */
286
- readonly authority: ExecutionAttemptAuthority<TOutcome>;
287
- /** Owner convergence that runs for `accepted` and `duplicate` decisions. */
288
- readonly convergence: OutcomeConvergence<TOutcome>;
289
- /** Optional owner validation that runs before the durable commit. */
290
- readonly validation?: OutcomePreCommitValidation<TOutcome>;
291
- }
292
- /**
293
- * Input of {@link submitAttemptOutcome}.
294
- * @typeParam TOutcome - Owner-specific outcome type committed per attempt.
295
- */
296
- interface AttemptOutcomeSubmission<TOutcome> {
297
- /** Owner identifier the attempt belongs to. */
298
- readonly executionId: ExecutionOwnerId;
299
- /** Authority-created attempt identifier. */
300
- readonly executionAttemptId: string;
301
- /** Outcome the worker submitted. */
302
- readonly outcome: TOutcome;
303
- }
304
- /**
305
- * Submit an attempt outcome through the generic owner boundary.
306
- *
307
- * Order: one canonicalization of the submitted outcome, optional pre-commit
308
- * validation of that canonical value, durable commit of that same rendering
309
- * through the authority, owner convergence for `accepted` and `duplicate`,
310
- * then waiter settlement on a fresh decode of the text the decision reports
311
- * as committed. The decision kind is returned for the caller's
312
- * acknowledgement.
313
- *
314
- * Invariants this function keeps:
315
- * - the submission is rendered exactly once, and the submitter's object is
316
- * never read again after that: an outcome the caller mutates while an await
317
- * is pending can reach neither the validation nor the durable write;
318
- * - validation and convergence see one and the same value: the canonical
319
- * outcome the attempt holds, never the submitter's copy of it;
320
- * - convergence only ever sees `decision.outcome`, the repository's own
321
- * committed object;
322
- * - the waiter settles on a value decoded afresh from the text the attempt
323
- * stores — the decision's own text, which for a `duplicate` is the first
324
- * commit's rather than the retry's — so what a runner receives is the
325
- * committed outcome even when convergence mutated the object it was handed;
326
- * - a throwing convergence leaves the outcome durably committed and the
327
- * waiter pending, so the worker's retry yields `duplicate` and converges
328
- * again; nothing is rejected or deleted here. That recovery path runs the
329
- * validation again first, which is why {@link OutcomePreCommitValidation}
330
- * owes a retry-stable verdict;
331
- * - `conflict` and `fenced` skip convergence and settlement; their waiter
332
- * rejection already happened inside `ExecutionAttemptAuthority.commitOutcome`.
333
- * @param deps - Authority, convergence, and optional validation.
334
- * @param input - Attempt identity and submitted outcome.
335
- * @returns The durable decision kind.
336
- * @typeParam TOutcome - Owner-specific outcome type committed per attempt.
337
- */
338
- declare function submitAttemptOutcome<TOutcome>(deps: AttemptOutcomeSubmissionDeps<TOutcome>, input: AttemptOutcomeSubmission<TOutcome>): Promise<'accepted' | 'duplicate' | 'conflict' | 'fenced'>;
339
- //#endregion
340
424
  //#region subsystems/workflow-engine/src/storage/namespace.d.ts
341
425
  /**
342
426
  * Storage namespace for workflow persistence.
@@ -712,8 +796,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
712
796
  pending: "pending";
713
797
  completed: "completed";
714
798
  cancelled: "cancelled";
715
- running: "running";
716
799
  failed: "failed";
800
+ running: "running";
717
801
  paused: "paused";
718
802
  finalizing: "finalizing";
719
803
  }>;
@@ -754,8 +838,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
754
838
  pending: "pending";
755
839
  completed: "completed";
756
840
  cancelled: "cancelled";
757
- running: "running";
758
841
  failed: "failed";
842
+ running: "running";
759
843
  paused: "paused";
760
844
  finalizing: "finalizing";
761
845
  }>;
@@ -803,8 +887,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
803
887
  pending: "pending";
804
888
  completed: "completed";
805
889
  cancelled: "cancelled";
806
- running: "running";
807
890
  failed: "failed";
891
+ running: "running";
808
892
  paused: "paused";
809
893
  finalizing: "finalizing";
810
894
  }>;
@@ -1059,10 +1143,10 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1059
1143
  frameId: z.ZodString;
1060
1144
  nodeId: z.ZodString;
1061
1145
  nodeType: z.ZodEnum<{
1062
- sequence: "sequence";
1063
1146
  station: "station";
1064
1147
  "delegate-agent": "delegate-agent";
1065
1148
  "delegate-role": "delegate-role";
1149
+ sequence: "sequence";
1066
1150
  parallel: "parallel";
1067
1151
  gate: "gate";
1068
1152
  iterate: "iterate";
@@ -1104,10 +1188,10 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1104
1188
  frameId: z.ZodString;
1105
1189
  nodeId: z.ZodString;
1106
1190
  nodeType: z.ZodEnum<{
1107
- sequence: "sequence";
1108
1191
  station: "station";
1109
1192
  "delegate-agent": "delegate-agent";
1110
1193
  "delegate-role": "delegate-role";
1194
+ sequence: "sequence";
1111
1195
  parallel: "parallel";
1112
1196
  gate: "gate";
1113
1197
  iterate: "iterate";
@@ -1143,8 +1227,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1143
1227
  pending: "pending";
1144
1228
  completed: "completed";
1145
1229
  cancelled: "cancelled";
1146
- running: "running";
1147
1230
  failed: "failed";
1231
+ running: "running";
1148
1232
  paused: "paused";
1149
1233
  finalizing: "finalizing";
1150
1234
  }>>;
@@ -1340,8 +1424,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1340
1424
  pending: "pending";
1341
1425
  completed: "completed";
1342
1426
  cancelled: "cancelled";
1343
- running: "running";
1344
1427
  failed: "failed";
1428
+ running: "running";
1345
1429
  paused: "paused";
1346
1430
  finalizing: "finalizing";
1347
1431
  }>>;
@@ -1364,8 +1448,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1364
1448
  pending: "pending";
1365
1449
  completed: "completed";
1366
1450
  cancelled: "cancelled";
1367
- running: "running";
1368
1451
  failed: "failed";
1452
+ running: "running";
1369
1453
  paused: "paused";
1370
1454
  finalizing: "finalizing";
1371
1455
  }>;
@@ -1417,8 +1501,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1417
1501
  pending: "pending";
1418
1502
  completed: "completed";
1419
1503
  cancelled: "cancelled";
1420
- running: "running";
1421
1504
  failed: "failed";
1505
+ running: "running";
1422
1506
  paused: "paused";
1423
1507
  finalizing: "finalizing";
1424
1508
  }>;
@@ -1462,10 +1546,10 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1462
1546
  frameId: z.ZodString;
1463
1547
  nodeId: z.ZodString;
1464
1548
  nodeType: z.ZodEnum<{
1465
- sequence: "sequence";
1466
1549
  station: "station";
1467
1550
  "delegate-agent": "delegate-agent";
1468
1551
  "delegate-role": "delegate-role";
1552
+ sequence: "sequence";
1469
1553
  parallel: "parallel";
1470
1554
  gate: "gate";
1471
1555
  iterate: "iterate";
@@ -1478,8 +1562,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1478
1562
  pending: "pending";
1479
1563
  completed: "completed";
1480
1564
  cancelled: "cancelled";
1481
- running: "running";
1482
1565
  failed: "failed";
1566
+ running: "running";
1483
1567
  skipped: "skipped";
1484
1568
  waiting: "waiting";
1485
1569
  }>;
@@ -1508,10 +1592,10 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1508
1592
  frameId: z.ZodString;
1509
1593
  nodeId: z.ZodString;
1510
1594
  nodeType: z.ZodEnum<{
1511
- sequence: "sequence";
1512
1595
  station: "station";
1513
1596
  "delegate-agent": "delegate-agent";
1514
1597
  "delegate-role": "delegate-role";
1598
+ sequence: "sequence";
1515
1599
  parallel: "parallel";
1516
1600
  gate: "gate";
1517
1601
  iterate: "iterate";
@@ -1524,8 +1608,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1524
1608
  pending: "pending";
1525
1609
  completed: "completed";
1526
1610
  cancelled: "cancelled";
1527
- running: "running";
1528
1611
  failed: "failed";
1612
+ running: "running";
1529
1613
  skipped: "skipped";
1530
1614
  waiting: "waiting";
1531
1615
  }>;
@@ -1551,10 +1635,10 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1551
1635
  frameId: z.ZodString;
1552
1636
  nodeId: z.ZodString;
1553
1637
  nodeType: z.ZodEnum<{
1554
- sequence: "sequence";
1555
1638
  station: "station";
1556
1639
  "delegate-agent": "delegate-agent";
1557
1640
  "delegate-role": "delegate-role";
1641
+ sequence: "sequence";
1558
1642
  parallel: "parallel";
1559
1643
  gate: "gate";
1560
1644
  iterate: "iterate";
@@ -1567,8 +1651,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1567
1651
  pending: "pending";
1568
1652
  completed: "completed";
1569
1653
  cancelled: "cancelled";
1570
- running: "running";
1571
1654
  failed: "failed";
1655
+ running: "running";
1572
1656
  skipped: "skipped";
1573
1657
  waiting: "waiting";
1574
1658
  }>;
@@ -1835,8 +1919,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1835
1919
  }>;
1836
1920
  status: z.ZodEnum<{
1837
1921
  completed: "completed";
1838
- running: "running";
1839
1922
  failed: "failed";
1923
+ running: "running";
1840
1924
  skipped: "skipped";
1841
1925
  }>;
1842
1926
  startedAt: z.ZodOptional<z.ZodNumber>;
@@ -1871,8 +1955,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1871
1955
  }>;
1872
1956
  status: z.ZodEnum<{
1873
1957
  completed: "completed";
1874
- running: "running";
1875
1958
  failed: "failed";
1959
+ running: "running";
1876
1960
  skipped: "skipped";
1877
1961
  }>;
1878
1962
  startedAt: z.ZodOptional<z.ZodNumber>;
@@ -2509,7 +2593,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
2509
2593
  tableName: "workflow_definitions";
2510
2594
  dataType: "string";
2511
2595
  columnType: "SQLiteText";
2512
- data: "external" | "session" | "global" | "workspace";
2596
+ data: "external" | "session" | "workspace" | "global";
2513
2597
  driverParam: string;
2514
2598
  notNull: true;
2515
2599
  hasDefault: false;
@@ -2522,7 +2606,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
2522
2606
  generated: undefined;
2523
2607
  }, {}, {
2524
2608
  length: number | undefined;
2525
- $type: "external" | "session" | "global" | "workspace";
2609
+ $type: "external" | "session" | "workspace" | "global";
2526
2610
  }>;
2527
2611
  scopeKind: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
2528
2612
  name: "scope_kind";
@@ -2820,7 +2904,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
2820
2904
  tableName: "workflow_executions";
2821
2905
  dataType: "string";
2822
2906
  columnType: "SQLiteText";
2823
- data: "external" | "session" | "global" | "workspace";
2907
+ data: "external" | "session" | "workspace" | "global";
2824
2908
  driverParam: string;
2825
2909
  notNull: true;
2826
2910
  hasDefault: false;
@@ -2833,7 +2917,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
2833
2917
  generated: undefined;
2834
2918
  }, {}, {
2835
2919
  length: number | undefined;
2836
- $type: "external" | "session" | "global" | "workspace";
2920
+ $type: "external" | "session" | "workspace" | "global";
2837
2921
  }>;
2838
2922
  scopeKind: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
2839
2923
  name: "scope_kind";
@@ -2935,7 +3019,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
2935
3019
  tableName: "workflow_executions";
2936
3020
  dataType: "string";
2937
3021
  columnType: "SQLiteText";
2938
- data: "pending" | "completed" | "cancelled" | "running" | "failed" | "paused" | "finalizing";
3022
+ data: "pending" | "completed" | "cancelled" | "failed" | "running" | "paused" | "finalizing";
2939
3023
  driverParam: string;
2940
3024
  notNull: true;
2941
3025
  hasDefault: false;
@@ -3204,7 +3288,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
3204
3288
  tableName: "workflow_execution_frames";
3205
3289
  dataType: "string";
3206
3290
  columnType: "SQLiteText";
3207
- data: "sequence" | "station" | "delegate-agent" | "delegate-role" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop";
3291
+ data: "station" | "delegate-agent" | "delegate-role" | "sequence" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop";
3208
3292
  driverParam: string;
3209
3293
  notNull: true;
3210
3294
  hasDefault: false;
@@ -3217,7 +3301,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
3217
3301
  generated: undefined;
3218
3302
  }, {}, {
3219
3303
  length: number | undefined;
3220
- $type: "sequence" | "station" | "delegate-agent" | "delegate-role" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop";
3304
+ $type: "station" | "delegate-agent" | "delegate-role" | "sequence" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop";
3221
3305
  }>;
3222
3306
  path: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
3223
3307
  name: string;
@@ -3262,7 +3346,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
3262
3346
  tableName: "workflow_execution_frames";
3263
3347
  dataType: "string";
3264
3348
  columnType: "SQLiteText";
3265
- data: "pending" | "completed" | "cancelled" | "running" | "failed" | "skipped" | "waiting";
3349
+ data: "pending" | "completed" | "cancelled" | "failed" | "running" | "skipped" | "waiting";
3266
3350
  driverParam: string;
3267
3351
  notNull: true;
3268
3352
  hasDefault: true;
@@ -3275,7 +3359,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
3275
3359
  generated: undefined;
3276
3360
  }, {}, {
3277
3361
  length: number | undefined;
3278
- $type: "pending" | "completed" | "cancelled" | "running" | "failed" | "skipped" | "waiting";
3362
+ $type: "pending" | "completed" | "cancelled" | "failed" | "running" | "skipped" | "waiting";
3279
3363
  }>;
3280
3364
  attempt: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
3281
3365
  name: string;
@@ -3773,7 +3857,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
3773
3857
  tableName: "workflow_step_spans";
3774
3858
  dataType: "string";
3775
3859
  columnType: "SQLiteText";
3776
- data: "completed" | "running" | "failed" | "skipped";
3860
+ data: "completed" | "failed" | "running" | "skipped";
3777
3861
  driverParam: string;
3778
3862
  notNull: true;
3779
3863
  hasDefault: false;
@@ -3786,7 +3870,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
3786
3870
  generated: undefined;
3787
3871
  }, {}, {
3788
3872
  length: number | undefined;
3789
- $type: "completed" | "running" | "failed" | "skipped";
3873
+ $type: "completed" | "failed" | "running" | "skipped";
3790
3874
  }>;
3791
3875
  startedAt: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
3792
3876
  name: string;
@@ -4539,7 +4623,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
4539
4623
  tableName: "workflow_run_contexts";
4540
4624
  dataType: "string";
4541
4625
  columnType: "SQLiteText";
4542
- data: "external" | "session" | "global" | "workspace";
4626
+ data: "external" | "session" | "workspace" | "global";
4543
4627
  driverParam: string;
4544
4628
  notNull: true;
4545
4629
  hasDefault: true;
@@ -4552,7 +4636,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
4552
4636
  generated: undefined;
4553
4637
  }, {}, {
4554
4638
  length: number | undefined;
4555
- $type: "external" | "session" | "global" | "workspace";
4639
+ $type: "external" | "session" | "workspace" | "global";
4556
4640
  }>;
4557
4641
  scopeKind: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
4558
4642
  name: "scope_kind";
@@ -4795,7 +4879,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
4795
4879
  tableName: "worklog_summaries";
4796
4880
  dataType: "string";
4797
4881
  columnType: "SQLiteText";
4798
- data: "pending" | "completed" | "cancelled" | "running" | "failed" | "paused" | "finalizing";
4882
+ data: "pending" | "completed" | "cancelled" | "failed" | "running" | "paused" | "finalizing";
4799
4883
  driverParam: string;
4800
4884
  notNull: true;
4801
4885
  hasDefault: false;
@@ -5018,7 +5102,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
5018
5102
  tableName: "worklog_frame_entries";
5019
5103
  dataType: "string";
5020
5104
  columnType: "SQLiteText";
5021
- data: "sequence" | "station" | "delegate-agent" | "delegate-role" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop";
5105
+ data: "station" | "delegate-agent" | "delegate-role" | "sequence" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop";
5022
5106
  driverParam: string;
5023
5107
  notNull: true;
5024
5108
  hasDefault: false;
@@ -5031,7 +5115,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
5031
5115
  generated: undefined;
5032
5116
  }, {}, {
5033
5117
  length: number | undefined;
5034
- $type: "sequence" | "station" | "delegate-agent" | "delegate-role" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop";
5118
+ $type: "station" | "delegate-agent" | "delegate-role" | "sequence" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop";
5035
5119
  }>;
5036
5120
  path: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
5037
5121
  name: string;
@@ -5057,7 +5141,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
5057
5141
  tableName: "worklog_frame_entries";
5058
5142
  dataType: "string";
5059
5143
  columnType: "SQLiteText";
5060
- data: "pending" | "completed" | "cancelled" | "running" | "failed" | "skipped" | "waiting";
5144
+ data: "pending" | "completed" | "cancelled" | "failed" | "running" | "skipped" | "waiting";
5061
5145
  driverParam: string;
5062
5146
  notNull: true;
5063
5147
  hasDefault: false;
@@ -5891,7 +5975,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
5891
5975
  tableName: "workflow_finalizations";
5892
5976
  dataType: "string";
5893
5977
  columnType: "SQLiteText";
5894
- data: "acknowledged" | "failed" | "claimed";
5978
+ data: "failed" | "acknowledged" | "claimed";
5895
5979
  driverParam: string;
5896
5980
  notNull: true;
5897
5981
  hasDefault: false;
@@ -6335,8 +6419,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6335
6419
  pending: "pending";
6336
6420
  completed: "completed";
6337
6421
  cancelled: "cancelled";
6338
- running: "running";
6339
6422
  failed: "failed";
6423
+ running: "running";
6340
6424
  paused: "paused";
6341
6425
  finalizing: "finalizing";
6342
6426
  }>;
@@ -6377,8 +6461,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6377
6461
  pending: "pending";
6378
6462
  completed: "completed";
6379
6463
  cancelled: "cancelled";
6380
- running: "running";
6381
6464
  failed: "failed";
6465
+ running: "running";
6382
6466
  paused: "paused";
6383
6467
  finalizing: "finalizing";
6384
6468
  }>;
@@ -6426,8 +6510,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6426
6510
  pending: "pending";
6427
6511
  completed: "completed";
6428
6512
  cancelled: "cancelled";
6429
- running: "running";
6430
6513
  failed: "failed";
6514
+ running: "running";
6431
6515
  paused: "paused";
6432
6516
  finalizing: "finalizing";
6433
6517
  }>;
@@ -6682,10 +6766,10 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6682
6766
  frameId: z.ZodString;
6683
6767
  nodeId: z.ZodString;
6684
6768
  nodeType: z.ZodEnum<{
6685
- sequence: "sequence";
6686
6769
  station: "station";
6687
6770
  "delegate-agent": "delegate-agent";
6688
6771
  "delegate-role": "delegate-role";
6772
+ sequence: "sequence";
6689
6773
  parallel: "parallel";
6690
6774
  gate: "gate";
6691
6775
  iterate: "iterate";
@@ -6727,10 +6811,10 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6727
6811
  frameId: z.ZodString;
6728
6812
  nodeId: z.ZodString;
6729
6813
  nodeType: z.ZodEnum<{
6730
- sequence: "sequence";
6731
6814
  station: "station";
6732
6815
  "delegate-agent": "delegate-agent";
6733
6816
  "delegate-role": "delegate-role";
6817
+ sequence: "sequence";
6734
6818
  parallel: "parallel";
6735
6819
  gate: "gate";
6736
6820
  iterate: "iterate";
@@ -6766,8 +6850,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6766
6850
  pending: "pending";
6767
6851
  completed: "completed";
6768
6852
  cancelled: "cancelled";
6769
- running: "running";
6770
6853
  failed: "failed";
6854
+ running: "running";
6771
6855
  paused: "paused";
6772
6856
  finalizing: "finalizing";
6773
6857
  }>>;
@@ -6963,8 +7047,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6963
7047
  pending: "pending";
6964
7048
  completed: "completed";
6965
7049
  cancelled: "cancelled";
6966
- running: "running";
6967
7050
  failed: "failed";
7051
+ running: "running";
6968
7052
  paused: "paused";
6969
7053
  finalizing: "finalizing";
6970
7054
  }>>;
@@ -6987,8 +7071,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6987
7071
  pending: "pending";
6988
7072
  completed: "completed";
6989
7073
  cancelled: "cancelled";
6990
- running: "running";
6991
7074
  failed: "failed";
7075
+ running: "running";
6992
7076
  paused: "paused";
6993
7077
  finalizing: "finalizing";
6994
7078
  }>;
@@ -7040,8 +7124,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7040
7124
  pending: "pending";
7041
7125
  completed: "completed";
7042
7126
  cancelled: "cancelled";
7043
- running: "running";
7044
7127
  failed: "failed";
7128
+ running: "running";
7045
7129
  paused: "paused";
7046
7130
  finalizing: "finalizing";
7047
7131
  }>;
@@ -7085,10 +7169,10 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7085
7169
  frameId: z.ZodString;
7086
7170
  nodeId: z.ZodString;
7087
7171
  nodeType: z.ZodEnum<{
7088
- sequence: "sequence";
7089
7172
  station: "station";
7090
7173
  "delegate-agent": "delegate-agent";
7091
7174
  "delegate-role": "delegate-role";
7175
+ sequence: "sequence";
7092
7176
  parallel: "parallel";
7093
7177
  gate: "gate";
7094
7178
  iterate: "iterate";
@@ -7101,8 +7185,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7101
7185
  pending: "pending";
7102
7186
  completed: "completed";
7103
7187
  cancelled: "cancelled";
7104
- running: "running";
7105
7188
  failed: "failed";
7189
+ running: "running";
7106
7190
  skipped: "skipped";
7107
7191
  waiting: "waiting";
7108
7192
  }>;
@@ -7131,10 +7215,10 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7131
7215
  frameId: z.ZodString;
7132
7216
  nodeId: z.ZodString;
7133
7217
  nodeType: z.ZodEnum<{
7134
- sequence: "sequence";
7135
7218
  station: "station";
7136
7219
  "delegate-agent": "delegate-agent";
7137
7220
  "delegate-role": "delegate-role";
7221
+ sequence: "sequence";
7138
7222
  parallel: "parallel";
7139
7223
  gate: "gate";
7140
7224
  iterate: "iterate";
@@ -7147,8 +7231,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7147
7231
  pending: "pending";
7148
7232
  completed: "completed";
7149
7233
  cancelled: "cancelled";
7150
- running: "running";
7151
7234
  failed: "failed";
7235
+ running: "running";
7152
7236
  skipped: "skipped";
7153
7237
  waiting: "waiting";
7154
7238
  }>;
@@ -7174,10 +7258,10 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7174
7258
  frameId: z.ZodString;
7175
7259
  nodeId: z.ZodString;
7176
7260
  nodeType: z.ZodEnum<{
7177
- sequence: "sequence";
7178
7261
  station: "station";
7179
7262
  "delegate-agent": "delegate-agent";
7180
7263
  "delegate-role": "delegate-role";
7264
+ sequence: "sequence";
7181
7265
  parallel: "parallel";
7182
7266
  gate: "gate";
7183
7267
  iterate: "iterate";
@@ -7190,8 +7274,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7190
7274
  pending: "pending";
7191
7275
  completed: "completed";
7192
7276
  cancelled: "cancelled";
7193
- running: "running";
7194
7277
  failed: "failed";
7278
+ running: "running";
7195
7279
  skipped: "skipped";
7196
7280
  waiting: "waiting";
7197
7281
  }>;
@@ -7458,8 +7542,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7458
7542
  }>;
7459
7543
  status: z.ZodEnum<{
7460
7544
  completed: "completed";
7461
- running: "running";
7462
7545
  failed: "failed";
7546
+ running: "running";
7463
7547
  skipped: "skipped";
7464
7548
  }>;
7465
7549
  startedAt: z.ZodOptional<z.ZodNumber>;
@@ -7494,8 +7578,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7494
7578
  }>;
7495
7579
  status: z.ZodEnum<{
7496
7580
  completed: "completed";
7497
- running: "running";
7498
7581
  failed: "failed";
7582
+ running: "running";
7499
7583
  skipped: "skipped";
7500
7584
  }>;
7501
7585
  startedAt: z.ZodOptional<z.ZodNumber>;
@@ -8098,7 +8182,7 @@ declare const workflowDefinitionsDual: _$_makaio_storage_drizzle0.DualTable<"wor
8098
8182
  materializationModes?: ("local-directory" | "workspace-snapshot")[] | undefined;
8099
8183
  }>>; /** Definition-owned finalizer selected after successful execution. */
8100
8184
  successFinalizerId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"success_finalizer_id", [string, ...string[]], number | undefined>, _$drizzle_orm_pg_core0.PgTextBuilderInitial<"success_finalizer_id", [string, ...string[]]>>;
8101
- scopeType: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.$Type<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"scope_type", ["global", "workspace", "session", "external"], number | undefined>>, "external" | "session" | "global" | "workspace">, _$drizzle_orm0.$Type<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"scope_type", ["global", "workspace", "session", "external"]>>, "external" | "session" | "global" | "workspace">>;
8185
+ scopeType: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.$Type<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"scope_type", ["global", "workspace", "session", "external"], number | undefined>>, "external" | "session" | "workspace" | "global">, _$drizzle_orm0.$Type<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"scope_type", ["global", "workspace", "session", "external"]>>, "external" | "session" | "workspace" | "global">>;
8102
8186
  scopeKind: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.HasDefault<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"scope_kind", [string, ...string[]], number | undefined>>>, _$drizzle_orm0.HasDefault<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"scope_kind", [string, ...string[]]>>>>;
8103
8187
  scopeId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.HasDefault<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"scope_id", [string, ...string[]], number | undefined>>>, _$drizzle_orm0.HasDefault<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"scope_id", [string, ...string[]]>>>>; /** Unique workflow identifier. */
8104
8188
  id: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.IsPrimaryKey<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"id", [string, ...string[]], number | undefined>>>, _$drizzle_orm0.IsPrimaryKey<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"id", [string, ...string[]]>>>>; /** Workflow name. */
@@ -8181,7 +8265,7 @@ declare const workflowDefinitionsDual: _$_makaio_storage_drizzle0.DualTable<"wor
8181
8265
  * Stores runtime state of workflow executions.
8182
8266
  */
8183
8267
  declare const workflowExecutionsDual: _$_makaio_storage_drizzle0.DualTable<"workflow_executions", {
8184
- scopeType: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.$Type<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"scope_type", ["global", "workspace", "session", "external"], number | undefined>>, "external" | "session" | "global" | "workspace">, _$drizzle_orm0.$Type<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"scope_type", ["global", "workspace", "session", "external"]>>, "external" | "session" | "global" | "workspace">>;
8268
+ scopeType: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.$Type<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"scope_type", ["global", "workspace", "session", "external"], number | undefined>>, "external" | "session" | "workspace" | "global">, _$drizzle_orm0.$Type<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"scope_type", ["global", "workspace", "session", "external"]>>, "external" | "session" | "workspace" | "global">>;
8185
8269
  scopeKind: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.HasDefault<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"scope_kind", [string, ...string[]], number | undefined>>>, _$drizzle_orm0.HasDefault<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"scope_kind", [string, ...string[]]>>>>;
8186
8270
  scopeId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.HasDefault<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"scope_id", [string, ...string[]], number | undefined>>>, _$drizzle_orm0.HasDefault<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"scope_id", [string, ...string[]]>>>>; /** Unique execution identifier. */
8187
8271
  id: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.IsPrimaryKey<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"id", [string, ...string[]], number | undefined>>>, _$drizzle_orm0.IsPrimaryKey<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"id", [string, ...string[]]>>>>; /** Workflow definition or ephemeral source execution identifier. */
@@ -8208,7 +8292,7 @@ declare const workflowStepSpansDual: _$_makaio_storage_drizzle0.DualTable<"workf
8208
8292
  frameId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"frame_id", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"frame_id", [string, ...string[]]>>>; /** Step identifier within the workflow definition. */
8209
8293
  stepId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"step_id", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"step_id", [string, ...string[]]>>>; /** Step type discriminant. */
8210
8294
  stepType: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"step_type", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"step_type", [string, ...string[]]>>>; /** Current span status. */
8211
- status: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm0.$Type<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"status", [string, ...string[]], number | undefined>, "completed" | "running" | "failed" | "skipped">>, _$drizzle_orm0.NotNull<_$drizzle_orm0.$Type<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"status", [string, ...string[]]>, "completed" | "running" | "failed" | "skipped">>>; /** Step start timestamp (epoch ms). */
8295
+ status: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm0.$Type<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"status", [string, ...string[]], number | undefined>, "completed" | "failed" | "running" | "skipped">>, _$drizzle_orm0.NotNull<_$drizzle_orm0.$Type<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"status", [string, ...string[]]>, "completed" | "failed" | "running" | "skipped">>>; /** Step start timestamp (epoch ms). */
8212
8296
  startedAt: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteIntegerBuilderInitial<string>, _$drizzle_orm_pg_core0.PgBigInt53BuilderInitial<string>>; /** Step completion timestamp (epoch ms). */
8213
8297
  completedAt: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteIntegerBuilderInitial<string>, _$drizzle_orm_pg_core0.PgBigInt53BuilderInitial<string>>; /** Wall-clock duration in milliseconds. */
8214
8298
  durationMs: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteIntegerBuilderInitial<string>, _$drizzle_orm_pg_core0.PgIntegerBuilderInitial<string>>; /** Input tokens consumed (agent steps). */
@@ -8256,7 +8340,7 @@ declare const worklogFrameEntriesDual: _$_makaio_storage_drizzle0.DualTable<"wor
8256
8340
  /** Unique frame identifier within the execution. */frameId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.IsPrimaryKey<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"frame_id", [string, ...string[]], number | undefined>>>, _$drizzle_orm0.IsPrimaryKey<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"frame_id", [string, ...string[]]>>>>; /** Execution this frame belongs to. */
8257
8341
  executionId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"execution_id", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"execution_id", [string, ...string[]]>>>; /** Node identifier from the workflow definition. */
8258
8342
  nodeId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"node_id", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"node_id", [string, ...string[]]>>>; /** Node type discriminant. */
8259
- nodeType: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.$Type<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"node_type", [string, ...string[]], number | undefined>>, "sequence" | "station" | "delegate-agent" | "delegate-role" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop">, _$drizzle_orm0.$Type<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"node_type", [string, ...string[]]>>, "sequence" | "station" | "delegate-agent" | "delegate-role" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop">>;
8343
+ nodeType: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.$Type<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"node_type", [string, ...string[]], number | undefined>>, "station" | "delegate-agent" | "delegate-role" | "sequence" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop">, _$drizzle_orm0.$Type<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"node_type", [string, ...string[]]>>, "station" | "delegate-agent" | "delegate-role" | "sequence" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop">>;
8260
8344
  /**
8261
8345
  * Ordered path of frame IDs from the root frame to this frame (inclusive).
8262
8346
  * Stored as a JSON array for tree correlation.
@@ -8357,4 +8441,4 @@ declare function patchWorkflowState(db: MakaioDatabase, params: {
8357
8441
  value: JsonValue;
8358
8442
  }>;
8359
8443
  //#endregion
8360
- export { ATTEMPT_OPERATION_START_GATES, type AdmitOperationInput, type AllocationRecordingDecision, type AllocationRefEvolution, type AllocationRefEvolutionDecision, type AllocationTerminationDecision, type AttemptControlState, type AttemptOperationStartGate, type AttemptOutcomeSubmission, type AttemptOutcomeSubmissionDeps, type AuthorityDispatchRunnerOptions, type BeginProvisioningInput, type CompleteOperationInput, type DiscoveredAllocationDecision, DuplicateExecutionAttemptError, type DurableOutcome, 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 ExecutionOwnerId, type HandoffProviderOperationInput, type InfrastructureFailureDecision, type InitialProviderOperationClaimContext, type InitialProviderOperationClaimContextSource, type MarkRuntimeReadyInput, type OperationAdmissionDecision, type OperationAdmissionDeps, type OperationCompletionDecision, type OutcomeCodec, type OutcomeConvergence, type OutcomeConvergenceInput, type OutcomePreCommitValidation, PROVIDER_OPERATION_OBLIGATIONS, type PendingAttemptAbandonmentDecision, type ProcessBoundProvisionerLossProof, type ProviderOperationClaim, type ProviderOperationClaimDecision, type ProviderOperationMutationDecision, type ProviderOperationObligation, type ProviderOperationOwnershipRecord, type ProvisionerIncarnationLossDecision, type ProvisioningAbsenceDecision, type ProvisioningClaimDecision, RUNTIME_PROBE_DELIVERY_TIMEOUT_MS, type RecordAllocationInput, type RecordAllocationTerminatedInput, type RecordInfrastructureFailureInput, type RecordProviderOperationUncertaintyInput, type RecordProvisionerIncarnationLostInput, type RecordProvisioningAbsentInput, type RecoverableAttemptRecord, type RegisterRuntimeInput, type RenewProviderOperationClaimInput, type RuntimeReadinessDecision, type RuntimeRegistrationDecision, type RuntimeRegistrationDeps, type TakeOverProviderOperationInput, WorkflowEngineService, type WorkflowEngineServiceOptions, WorkflowEngineToken, WorkflowExecutor, type WorkflowMaterializationSpecResolution, type WorkflowMaterializationSpecResolver, WorkflowStorageNamespace, WorkflowStorageSubjects, type WorkflowSuccessFinalizer, type WorkflowTriggerPayloadPredicate, WorkflowTriggerReconciler, type WorkflowWorkspaceRootResolver, assertWorkflowTriggerPayload, buildWorkflowExpressionContextFromResolvedInputs, compileWorkflowTriggerBindingFilter, createWorkflowEnginePackage, decodeDurableOutcome, durableOutcome, getWorkflowState, initializeWorkflowState, patchWorkflowState, registerDrizzleWorkflowStorage, registerOperationAdmissionHandler, registerRuntimeRegistrationHandler, runAuthorityDispatchedAttempt, runShellStep, sameAllocationRef, sameDurableOutcome, submitAttemptOutcome, workflowDefinitionsDual, workflowEnginePackage, workflowExecutionStateDual, workflowExecutionStateEventsDual, workflowExecutionsDual, workflowFinalizationsDual, workflowStepSpansDual, worklogFrameEntriesDual, worklogSummariesDual };
8444
+ export { ATTEMPT_OPERATION_START_GATES, type AdmitOperationInput, type AllocationRecordingDecision, type AllocationRefEvolution, type AllocationRefEvolutionDecision, type AllocationTerminationDecision, type AttemptControlState, type AttemptOperationStartGate, type AttemptOutcomeDecodingInput, type AttemptOutcomeSubmission, type AttemptOutcomeSubmissionDeps, type AttemptReachability, type AttemptReachabilityDecision, type AuthorityDispatchRunnerOptions, type BeginProvisioningInput, type BootstrapStartAuthority, type BootstrapStartOptions, type BootstrapStartState, type BuildWorkflowAttemptInstructionOptions, type CommittedWorkflowOutcomeIdentity, type CompleteOperationInput, type DiscoveredAllocationDecision, DuplicateExecutionAttemptError, type DurableOutcome, EXECUTION_ATTEMPT_SETTLEMENT_KINDS, EXECUTION_ATTEMPT_STATUSES, ExecutionAttemptAuthority, type ExecutionAttemptCreate, type ExecutionAttemptHandlersDeps, type ExecutionAttemptOutcomeCommit, type ExecutionAttemptOutcomeDecision, type ExecutionAttemptPeerIdentity, type ExecutionAttemptRecord, type ExecutionAttemptRecoveryOperations, type ExecutionAttemptRepository, type ExecutionAttemptSettlementKind, type ExecutionAttemptStatus, type ExecutionOwnerId, type HandoffProviderOperationInput, type InfrastructureFailureDecision, type InitialProviderOperationClaimContext, type InitialProviderOperationClaimContextSource, type MarkRuntimeReadyInput, type OperationAdmissionDecision, type OperationAdmissionDeps, type OperationCompletionDecision, type OutcomeCodec, type OutcomeConvergence, type OutcomeConvergenceInput, type OutcomePreCommitValidation, PROVIDER_OPERATION_OBLIGATIONS, type PendingAttemptAbandonmentDecision, type ProcessBoundProvisionerLossProof, type ProviderOperationClaim, type ProviderOperationClaimDecision, type ProviderOperationMutationDecision, type ProviderOperationObligation, type ProviderOperationOwnershipRecord, type ProvisionerIncarnationLossDecision, type ProvisioningAbsenceDecision, type ProvisioningClaimDecision, RUNTIME_PROBE_DELIVERY_TIMEOUT_MS, type ReadBootstrapStartStateInput, type RecordAllocationInput, type RecordAllocationTerminatedInput, type RecordInfrastructureFailureInput, type RecordProviderOperationUncertaintyInput, type RecordProvisionerIncarnationLostInput, type RecordProvisioningAbsentInput, type RecoverableAttemptRecord, type RegisterRuntimeInput, type RenewProviderOperationClaimInput, type RuntimeOutcomeFence, RuntimeOutcomeFenceMismatchError, type RuntimeReadinessDecision, type RuntimeRegistrationDecision, type RuntimeRegistrationDeps, type TakeOverProviderOperationInput, WORKFLOW_WORKLOAD_KIND, WORKFLOW_WORKLOAD_VERSION, type WorkflowAttemptCancellation, type WorkflowAttemptOutcome, WorkflowAttemptOutcomeSchema, type WorkflowAttemptTechnicalFailure, WorkflowEngineService, type WorkflowEngineServiceOptions, WorkflowEngineToken, WorkflowExecutor, type WorkflowInvocationInput, WorkflowInvocationInputSchema, type WorkflowMaterializationSpecResolution, type WorkflowMaterializationSpecResolver, WorkflowStorageNamespace, WorkflowStorageSubjects, type WorkflowSuccessFinalizer, type WorkflowTriggerPayloadPredicate, WorkflowTriggerReconciler, type WorkflowWorkspaceRootResolver, assertRuntimeOutcomeFence, assertWorkflowTriggerPayload, buildWorkflowAttemptInstruction, buildWorkflowExpressionContextFromResolvedInputs, compileWorkflowTriggerBindingFilter, createWorkflowEnginePackage, decodeDurableOutcome, decodeWorkflowAttemptOutcome, durableOutcome, evaluateAttemptReachability, evaluateOperationAdmission, evaluateOperationCompletion, evaluateProvisionerIncarnationLoss, evaluateRuntimeReadiness, evaluateRuntimeRegistration, getWorkflowState, initializeWorkflowState, parseWorkflowAttemptInstruction, patchWorkflowState, registerBootstrapStartHandler, registerDrizzleWorkflowStorage, registerExecutionAttemptHandlers, registerOperationAdmissionHandler, registerRuntimeRegistrationHandler, resolveExecutionAttemptPeer, runAuthorityDispatchedAttempt, runShellStep, sameAllocationRef, sameDurableOutcome, submitAttemptOutcome, toCommittedWorkflowRunnerResult, workflowAttemptOutcomeCodec, workflowDefinitionsDual, workflowEnginePackage, workflowExecutionStateDual, workflowExecutionStateEventsDual, workflowExecutionsDual, workflowFinalizationsDual, workflowStepSpansDual, worklogFrameEntriesDual, worklogSummariesDual };