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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (470) hide show
  1. package/dist/.makaio-build.json +3 -2
  2. package/dist/{account-identity-CP4DC0DL.mjs → account-identity-DFx8pwKL.mjs} +1 -1
  3. package/dist/{adapter-CYobxqN_.mjs → adapter-D5c5LrPN.mjs} +1 -1
  4. package/dist/adapters/claude/index.d.mts +204 -27
  5. package/dist/adapters/claude/index.mjs +3 -3
  6. package/dist/adapters/config/index.d.mts +2 -2
  7. package/dist/adapters/config/index.mjs +1 -1
  8. package/dist/adapters/index.d.mts +49 -4
  9. package/dist/adapters/index.mjs +3 -3
  10. package/dist/adapters/node.d.mts +1 -1
  11. package/dist/adapters/node.mjs +1 -1
  12. package/dist/{artifact-DCkizHkS.mjs → artifact-DGiXqb11.mjs} +1 -1
  13. package/dist/attempt-record-codec-CqO1_XnE.mjs +1 -0
  14. package/dist/{auth-C3NOWqTU.mjs → auth-DGEdiHF6.mjs} +1 -1
  15. package/dist/authority-state-bootstrap-GPL_tqaT.mjs +1 -0
  16. package/dist/bus/index.mjs +1 -1
  17. package/dist/{canonical-model-EMRYCVjX.mjs → canonical-model-BAytQ4NV.mjs} +1 -1
  18. package/dist/capabilities-BQEp34ir.mjs +1 -0
  19. package/dist/{client-OYk0Ttck.mjs → client-DbS847wW.mjs} +1 -1
  20. package/dist/clients/index.d.mts +10 -8
  21. package/dist/clients/index.mjs +1 -1
  22. package/dist/clients/managed-install.d.mts +1 -1
  23. package/dist/clients/managed-install.mjs +1 -1
  24. package/dist/{compression-CZ_6fYq8.mjs → compression-74fFeBha.mjs} +1 -1
  25. package/dist/{config-namespace-DTA6EQL8.mjs → config-namespace-TVX-hG4I.mjs} +1 -1
  26. package/dist/{context-resolution-B5IH2Z9v.d.mts → context-resolution-BQBk4Ish.d.mts} +8 -6
  27. package/dist/contracts/adapter/index.d.mts +2 -2
  28. package/dist/contracts/adapter/index.mjs +1 -1
  29. package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
  30. package/dist/contracts/artifact/index.d.mts +2 -2
  31. package/dist/contracts/artifact/index.mjs +1 -1
  32. package/dist/contracts/auth/index.d.mts +2 -2
  33. package/dist/contracts/auth/index.mjs +1 -1
  34. package/dist/contracts/canonical-model/index.d.mts +1 -1
  35. package/dist/contracts/canonical-model/index.mjs +1 -1
  36. package/dist/contracts/capabilities/index.d.mts +2 -0
  37. package/dist/contracts/capabilities/index.mjs +1 -0
  38. package/dist/contracts/client/index.d.mts +2 -2
  39. package/dist/contracts/client/index.mjs +1 -1
  40. package/dist/contracts/common/index.d.mts +1 -1
  41. package/dist/contracts/config/index.d.mts +24 -2
  42. package/dist/contracts/config/index.mjs +1 -1
  43. package/dist/contracts/extension/index.d.mts +4 -4
  44. package/dist/contracts/extension/index.mjs +1 -1
  45. package/dist/contracts/facet/index.d.mts +1 -1
  46. package/dist/contracts/facet/index.mjs +1 -1
  47. package/dist/contracts/harness/index.d.mts +1 -1
  48. package/dist/contracts/harness/index.mjs +1 -1
  49. package/dist/contracts/host/index.d.mts +1 -1
  50. package/dist/contracts/host/index.mjs +1 -1
  51. package/dist/contracts/index.d.mts +1678 -9427
  52. package/dist/contracts/index.mjs +1 -1
  53. package/dist/contracts/materialization/index.d.mts +3 -3
  54. package/dist/contracts/materialization/index.mjs +1 -1
  55. package/dist/contracts/model-registry/index.d.mts +1 -1
  56. package/dist/contracts/model-registry/index.mjs +1 -1
  57. package/dist/contracts/native-session-supervisor/index.d.mts +1 -1
  58. package/dist/contracts/native-session-supervisor/index.mjs +1 -1
  59. package/dist/contracts/platform/index.d.mts +1 -1
  60. package/dist/contracts/platform/index.mjs +1 -1
  61. package/dist/contracts/provider/index.d.mts +2 -2
  62. package/dist/contracts/provider/index.mjs +1 -1
  63. package/dist/contracts/session/index.d.mts +2 -2
  64. package/dist/contracts/session/index.mjs +1 -1
  65. package/dist/contracts/shared/index.d.mts +2 -2
  66. package/dist/contracts/shared/index.mjs +1 -1
  67. package/dist/contracts/skill/index.d.mts +1 -1
  68. package/dist/contracts/skill/index.mjs +1 -1
  69. package/dist/contracts/telemetry/index.d.mts +1 -1
  70. package/dist/contracts/telemetry/index.mjs +1 -1
  71. package/dist/contracts/timeout/index.d.mts +1 -1
  72. package/dist/contracts/timeout/index.mjs +1 -1
  73. package/dist/contracts/toast/index.mjs +1 -1
  74. package/dist/contracts/variant/index.d.mts +1 -1
  75. package/dist/contracts/variant/index.mjs +1 -1
  76. package/dist/contracts/worker-node/index.d.mts +2 -0
  77. package/dist/contracts/worker-node/index.mjs +1 -0
  78. package/dist/contracts/workflow/index.d.mts +3 -3
  79. package/dist/contracts/workflow/index.mjs +1 -1
  80. package/dist/{definition-K3m51lgO.mjs → definition-CJfiv8xm.mjs} +1 -1
  81. package/dist/{detached-extension-handle-BsywhHfk.mjs → detached-extension-handle-Ddfquy5_.mjs} +1 -1
  82. package/dist/drizzle/0030_remote-worker-execution.sql +6 -0
  83. package/dist/drizzle/meta/_journal.json +7 -0
  84. package/dist/execution-attempt-repository-DWXKY41_.d.mts +1056 -0
  85. package/dist/execution-target-Cf645pDj.mjs +1 -0
  86. package/dist/{extension-Cgg45Xk1.mjs → extension-DCA4pYrY.mjs} +1 -1
  87. package/dist/extension-hjOPs10e.mjs +1 -0
  88. package/dist/{filesystem-service-Cupz_Z7S.mjs → filesystem-service-DlP2HfDg.mjs} +1 -1
  89. package/dist/framework-packages-C3RWfJDk.mjs +1 -0
  90. package/dist/git/index.mjs +1 -1
  91. package/dist/{globby-DWp7V-P2.mjs → globby-1yCVCk8s.mjs} +1 -1
  92. package/dist/{handlers-cMBmexF4.mjs → handlers-CfnLyLfE.mjs} +1 -1
  93. package/dist/{harness-DflvHAGV.mjs → harness-DpwsFsE7.mjs} +1 -1
  94. package/dist/{index-BhXCCgJV2.d.mts → index-4fE_hUP02.d.mts} +1 -1
  95. package/dist/{index-DeoKITib.d.mts → index-8gKx-OVP.d.mts} +85 -79
  96. package/dist/index-B0Kf_OWi.d.mts +267 -0
  97. package/dist/{index-DRiTICBU.d.mts → index-BAXkicoQ.d.mts} +1 -1
  98. package/dist/{index-D9Tk7hyM.d.mts → index-BC79QrGC.d.mts} +29 -29
  99. package/dist/{index-y5-qCuUL.d.mts → index-BQLUVXIB.d.mts} +1023 -887
  100. package/dist/{index-BF-ZfYo4.d.mts → index-BXD3kEs_.d.mts} +28 -10
  101. package/dist/{index-CYfiCzb-.d.mts → index-CL-0NeQW.d.mts} +8 -5
  102. package/dist/{index-Cw7_69gV.d.mts → index-CRvpVIqA.d.mts} +1 -1
  103. package/dist/{index-BXgsQUhf.d.mts → index-CVaRZoiu.d.mts} +8 -8
  104. package/dist/{index-DaMfTvfz.d.mts → index-DA9g2A5P.d.mts} +1 -1
  105. package/dist/{index-DSyyWwR2.d.mts → index-DJAmSnuh.d.mts} +24 -24
  106. package/dist/{index-pjATMrvJ.d.mts → index-DkiTJM5p.d.mts} +693 -31
  107. package/dist/{index-jbgHR5J2.d.mts → index-GHASUiem.d.mts} +1 -1
  108. package/dist/{index-D73PTKXG2.d.mts → index-I5YG-qrb2.d.mts} +6 -6
  109. package/dist/{index-g36yJDge.d.mts → index-SsBHjUqA.d.mts} +198 -159
  110. package/dist/index-XZyMxxnU.d.mts +1602 -0
  111. package/dist/{index-z9bcglqL.d.mts → index-brqfk9JQ.d.mts} +4 -4
  112. package/dist/{index-Dfl1vniO.d.mts → index-q0Tiqems.d.mts} +101 -101
  113. package/dist/index-w_FmghjT.d.mts +7295 -0
  114. package/dist/kernel/cli/index.d.mts +2 -2
  115. package/dist/kernel/cli/index.mjs +1 -1
  116. package/dist/kernel/cli/register.d.mts +1 -1
  117. package/dist/kernel/cli/register.mjs +1 -1
  118. package/dist/kernel/cli/schemas.mjs +1 -1
  119. package/dist/kernel/extension/index.d.mts +1 -1
  120. package/dist/kernel/extension/index.mjs +1 -1
  121. package/dist/kernel/index.d.mts +14 -8
  122. package/dist/kernel/index.mjs +1 -1
  123. package/dist/kernel/namespace/index.d.mts +1 -1
  124. package/dist/kernel/namespace/index.mjs +1 -1
  125. package/dist/kernel/observability/index.d.mts +1 -1
  126. package/dist/kernel/observability/index.mjs +1 -1
  127. package/dist/kernel/providers/index.d.mts +1 -1
  128. package/dist/kernel/providers/index.mjs +1 -1
  129. package/dist/kernel/window/index.d.mts +1 -1
  130. package/dist/kernel/window/index.mjs +1 -1
  131. package/dist/{lib-BeMM738r.mjs → lib-C7-s68uf.mjs} +1 -1
  132. package/dist/{lib-B7TpTzkG.mjs → lib-DErgth_E.mjs} +2 -2
  133. package/dist/{load-extensions-BLdG90Zi.d.mts → load-extensions-BxsDB87B.d.mts} +1 -1
  134. package/dist/{load-extensions-CUmFCcYi.mjs → load-extensions-D0DfjYLC.mjs} +1 -1
  135. package/dist/{materialization-s8eR1eQ4.mjs → materialization-Jd198K3y.mjs} +1 -1
  136. package/dist/mcp-http-server/index.d.mts +305 -79
  137. package/dist/mcp-http-server/index.mjs +4 -4
  138. package/dist/model-BGgVmRnN.mjs +1 -0
  139. package/dist/modes-BheyN7SS.mjs +1 -0
  140. package/dist/{namespace-DwQtzlY-.mjs → namespace-BqxtpNAn.mjs} +1 -1
  141. package/dist/{namespace-BHliaabz.d.mts → namespace-DBm9K23m.d.mts} +6 -6
  142. package/dist/{namespace-Db_PFX3v.d.mts → namespace-DI4Yx_xu.d.mts} +9 -9
  143. package/dist/namespace-DJfUADSV.mjs +1 -0
  144. package/dist/{namespace-DRHnU5Yi2.d.mts → namespace-DPgxPa8m2.d.mts} +7 -7
  145. package/dist/{namespace-Bd49QmzS.d.mts → namespace-DWCEo-9M.d.mts} +0 -60
  146. package/dist/{namespace-Dvo_7BQw.d.mts → namespace-Dkod-w11.d.mts} +2 -2
  147. package/dist/{namespace-BeV7LST-.d.mts → namespace-YytVKIgI.d.mts} +2 -2
  148. package/dist/{namespace-8-GrdcbF.d.mts → namespace-jPUGV-b2.d.mts} +42 -42
  149. package/dist/{native-session-supervisor-Bgz-Q1WH.mjs → native-session-supervisor-DRx0MX-d.mjs} +1 -1
  150. package/dist/node/bus-server/index.d.mts +1 -1
  151. package/dist/node/bus-server/index.mjs +1 -1
  152. package/dist/node/bus-server/server-lifecycle.d.mts +1 -1
  153. package/dist/node/bus-server/server-lifecycle.mjs +1 -1
  154. package/dist/node/transports/index.d.mts +81 -9
  155. package/dist/node/transports/index.mjs +2 -2
  156. package/dist/{orchestrator-shared-CY7Tu7kZ.mjs → orchestrator-shared-BxmHCPvx.mjs} +1 -1
  157. package/dist/package-CNUPPcU1.mjs +7 -0
  158. package/dist/package-DWMxGfzK.d.mts +827 -0
  159. package/dist/{package-DKnzOvoR.mjs → package-Dft_RItb.mjs} +1 -1
  160. package/dist/package.json +1 -1
  161. package/dist/{packages-zDnokBpl.mjs → packages-DtEEP0Vt.mjs} +1 -1
  162. package/dist/{profile-BRi6K6am.mjs → profile-BTAI31Nt.mjs} +1 -1
  163. package/dist/{provider-context-DOsjOjiR.mjs → provider-context-Dq53Cgzz.mjs} +1 -1
  164. package/dist/{provider-context-BYkMl--1.mjs → provider-context-PZIQWcqQ.mjs} +1 -1
  165. package/dist/provider-operation-Cxoe2SUr.d.mts +207 -0
  166. package/dist/providers/index.mjs +1 -1
  167. package/dist/{registry-Dw6l7k3e.mjs → registry-wfF2uTty.mjs} +29 -29
  168. package/dist/{resolved-O2XXjTeu.mjs → resolved-DZgqql2Z.mjs} +1 -1
  169. package/dist/rules/index.d.mts +1 -1
  170. package/dist/rules/index.mjs +1 -1
  171. package/dist/rules/schemas.d.mts +1 -1
  172. package/dist/runtime-bun/index.mjs +1 -1
  173. package/dist/runtime-node/extension-discovery.d.mts +1 -1
  174. package/dist/runtime-node/extension-validation.d.mts +1 -1
  175. package/dist/runtime-node/extension-validation.mjs +1 -1
  176. package/dist/runtime-node/index.d.mts +4 -4
  177. package/dist/runtime-node/index.mjs +24 -24
  178. package/dist/runtime-node/makaio-config.d.mts +1 -1
  179. package/dist/runtime-node/makaio-config.mjs +1 -1
  180. package/dist/runtime-node/static/model-registry.yaml +348 -0
  181. package/dist/runtime-node/workflow-worker/index.d.mts +2 -2
  182. package/dist/runtime-node/workflow-worker/index.mjs +1 -1
  183. package/dist/runtime-node/workflow-worker/worker-entry.d.mts +7 -4
  184. package/dist/runtime-node/workflow-worker/worker-entry.mjs +1 -1
  185. package/dist/{schema-CfMsufSb.d.mts → schema-Bwr_NrOS.d.mts} +2 -2
  186. package/dist/{schema-BI0aCHvV.mjs → schema-Dd-e89MO.mjs} +1 -1
  187. package/dist/{schemas-B5tMYfhC.d.mts → schemas-C4yUXs4G.d.mts} +4 -4
  188. package/dist/schemas-CRB2O5zo.mjs +1 -0
  189. package/dist/{schemas-Dgj3WaOI.mjs → schemas-Cm09dXL4.mjs} +1 -1
  190. package/dist/{schemas-BJ8VMXhO.mjs → schemas-DaHQzpgm.mjs} +1 -1
  191. package/dist/{schemas-SsGbBOZ-.d.mts → schemas-DuIlOWR3.d.mts} +2 -2
  192. package/dist/{schemas-1ahuxM83.d.mts → schemas-ENwK6jmV.d.mts} +3 -3
  193. package/dist/{schemas-ChF2z4RB.d.mts → schemas-N6x2z7Lf.d.mts} +0 -45
  194. package/dist/schemas-tDf_WiC8.mjs +1 -0
  195. package/dist/selection-BNwTKEVT.mjs +1 -0
  196. package/dist/service-base/index.d.mts +47 -2
  197. package/dist/service-base/index.mjs +1 -1
  198. package/dist/services/adapter-runtime/index.d.mts +3 -3
  199. package/dist/services/adapter-runtime/index.mjs +1 -1
  200. package/dist/services/adapter-runtime/namespace.d.mts +1 -1
  201. package/dist/services/adapter-runtime/schemas.d.mts +1 -1
  202. package/dist/services/adapter-subsystem/index.d.mts +3 -3
  203. package/dist/services/adapter-subsystem/index.mjs +1 -1
  204. package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
  205. package/dist/services/adapter-subsystem/namespace.mjs +1 -1
  206. package/dist/services/agent-runtime/index.d.mts +2 -2
  207. package/dist/services/agent-runtime/namespace.d.mts +1 -1
  208. package/dist/services/agent-runtime/schemas.d.mts +1 -1
  209. package/dist/services/capability/index.d.mts +1 -1
  210. package/dist/services/capability/index.mjs +1 -1
  211. package/dist/services/codebase/index.d.mts +2 -2
  212. package/dist/services/codebase/namespace.d.mts +1 -1
  213. package/dist/services/codebase/schemas.d.mts +1 -1
  214. package/dist/services/compression/index.d.mts +2 -2
  215. package/dist/services/compression/namespace.d.mts +1 -1
  216. package/dist/services/compression/schemas.d.mts +1 -1
  217. package/dist/services/context-rules/index.d.mts +1 -1
  218. package/dist/services/context-rules/index.mjs +1 -1
  219. package/dist/services/execution-target/index.d.mts +4 -4
  220. package/dist/services/execution-target/index.mjs +1 -1
  221. package/dist/services/execution-target/namespace.d.mts +1 -1
  222. package/dist/services/execution-target/namespace.mjs +1 -1
  223. package/dist/services/execution-target/schemas.d.mts +1 -1
  224. package/dist/services/execution-target/schemas.mjs +1 -1
  225. package/dist/services/filesystem/index.d.mts +1 -1
  226. package/dist/services/filesystem/index.mjs +1 -1
  227. package/dist/services/git/namespace.d.mts +2 -2
  228. package/dist/services/git/namespace.mjs +1 -1
  229. package/dist/services/git/schemas.d.mts +1 -1
  230. package/dist/services/git/schemas.mjs +1 -1
  231. package/dist/services/harness/index.mjs +1 -1
  232. package/dist/services/index.d.mts +76 -361
  233. package/dist/services/index.mjs +1 -1
  234. package/dist/services/log-import/browser.d.mts +2 -2
  235. package/dist/services/log-import/index.d.mts +2 -2
  236. package/dist/services/log-import/log-import.d.mts +1 -1
  237. package/dist/services/log-import/log-import.mjs +1 -1
  238. package/dist/services/log-import/namespace.d.mts +2 -2
  239. package/dist/services/log-import/namespace.mjs +1 -1
  240. package/dist/services/log-import/schemas.d.mts +1 -1
  241. package/dist/services/log-import/schemas.mjs +1 -1
  242. package/dist/services/materialization/index.d.mts +1 -1
  243. package/dist/services/materialization/index.mjs +1 -1
  244. package/dist/services/model-registry/index.d.mts +1 -1
  245. package/dist/services/model-registry/index.mjs +1 -1
  246. package/dist/services/preferences/index.d.mts +2 -2
  247. package/dist/services/preferences/schemas.d.mts +1 -1
  248. package/dist/services/preferences/storage-namespace.d.mts +2 -2
  249. package/dist/services/provider-context/index.d.mts +1 -1
  250. package/dist/services/provider-context/index.mjs +1 -1
  251. package/dist/services/provider-runtime/index.mjs +1 -1
  252. package/dist/services/session/handlers/index.d.mts +1 -1
  253. package/dist/services/session/handlers/index.mjs +1 -1
  254. package/dist/services/session/index.d.mts +9 -9
  255. package/dist/services/session/index.mjs +1 -1
  256. package/dist/services/session/messages/namespace.d.mts +1 -1
  257. package/dist/services/session/messages/namespace.mjs +1 -1
  258. package/dist/services/session/orchestrator-testing/index.d.mts +1 -1
  259. package/dist/services/session/orchestrator-testing/index.mjs +1 -1
  260. package/dist/services/session/session-events/namespace.d.mts +1 -1
  261. package/dist/services/session/session-events/namespace.mjs +1 -1
  262. package/dist/services/session/storage/namespace.d.mts +1 -1
  263. package/dist/services/session/storage/schema.d.mts +1 -1
  264. package/dist/services/session/testing/index.mjs +1 -1
  265. package/dist/services/session/testing/orchestrator-shared.d.mts +1 -1
  266. package/dist/services/session/testing/orchestrator-shared.mjs +1 -1
  267. package/dist/services/session/turns/namespace.d.mts +1 -1
  268. package/dist/services/session/turns/namespace.mjs +1 -1
  269. package/dist/services/session-editor/index.d.mts +1 -1
  270. package/dist/services/session-editor/index.mjs +1 -1
  271. package/dist/services/settings/index.d.mts +3 -3
  272. package/dist/services/settings/index.mjs +1 -1
  273. package/dist/services/settings/namespace.mjs +1 -1
  274. package/dist/services/settings/storage/clients-namespace.d.mts +1 -1
  275. package/dist/services/settings/storage/clients-namespace.mjs +1 -1
  276. package/dist/services/settings/storage/index.d.mts +3 -3
  277. package/dist/services/settings/storage/index.mjs +1 -1
  278. package/dist/services/settings/storage/providers-namespace.d.mts +1 -1
  279. package/dist/services/settings/storage/providers-namespace.mjs +1 -1
  280. package/dist/services/subagent/index.d.mts +1 -1
  281. package/dist/services/subagent/index.mjs +1 -1
  282. package/dist/services/subagent-template/index.d.mts +2 -2
  283. package/dist/services/subagent-template/namespace.d.mts +1 -1
  284. package/dist/services/subagent-template/schemas.d.mts +1 -1
  285. package/dist/services/tool-approval/index.d.mts +1 -1
  286. package/dist/services/tool-approval/index.mjs +1 -1
  287. package/dist/services/tools/index.d.mts +1 -1
  288. package/dist/services/tools/index.mjs +1 -1
  289. package/dist/services/tray-menu/index.d.mts +3 -3
  290. package/dist/services/tray-menu/index.mjs +1 -1
  291. package/dist/services/tray-menu/namespace.d.mts +1 -1
  292. package/dist/services/tray-menu/schemas.d.mts +1 -1
  293. package/dist/services/turn/index.d.mts +1 -1
  294. package/dist/services/turn/namespace.d.mts +1 -1
  295. package/dist/services/workflow-transitions/index.d.mts +2 -0
  296. package/dist/services/workflow-transitions/index.mjs +1 -0
  297. package/dist/{session-Carng3Yk.mjs → session-BOGCd18q.mjs} +1 -1
  298. package/dist/{session-idI1jk5X.mjs → session-BTFiDoGz.mjs} +1 -1
  299. package/dist/{shared-RP_KARKF.mjs → shared-BQ0CHIVy.mjs} +1 -1
  300. package/dist/{skill-CpNjWFuE.mjs → skill-BR6rkfLe.mjs} +1 -1
  301. package/dist/{src-XihJcAQS.mjs → src-DD0v-nIj.mjs} +1 -1
  302. package/dist/storage/drizzle/client.d.mts +1 -1
  303. package/dist/storage/drizzle/client.mjs +1 -1
  304. package/dist/storage/drizzle/index.d.mts +50 -2
  305. package/dist/storage/drizzle/index.mjs +1 -1
  306. package/dist/storage/handlers/drizzle/index.d.mts +1 -1
  307. package/dist/storage/handlers/drizzle/index.mjs +1 -1
  308. package/dist/storage/handlers/index.d.mts +1 -1
  309. package/dist/storage/handlers/index.mjs +1 -1
  310. package/dist/testing/drizzle-harness.d.mts +44 -3
  311. package/dist/testing/drizzle-harness.mjs +1 -1
  312. package/dist/{tool-approval-service-fIZ9x0kL.mjs → tool-approval-service-kBA0fRzm.mjs} +1 -1
  313. package/dist/tools-PdG9fO1M.mjs +1 -0
  314. package/dist/{transition-BuUKc2J1.d.mts → transition-DuVzKt8-.d.mts} +3 -42
  315. package/dist/{types-LspCUW09.d.mts → types-B1MNcwgH.d.mts} +1 -1
  316. package/dist/{types-D2KG8ewJ.d.mts → types-BqVAOzJP.d.mts} +35 -35
  317. package/dist/{types-DBb5jY4Z.d.mts → types-CJ_QZ1yW.d.mts} +47 -3
  318. package/dist/ui-kernel/index.d.mts +1 -1
  319. package/dist/ui-kernel/index.mjs +1 -1
  320. package/dist/ui-kernel/pages/schemas.d.mts +1 -1
  321. package/dist/utils/index.d.mts +18 -4
  322. package/dist/utils/index.mjs +1 -1
  323. package/dist/{version-BbWrAPld.mjs → version-CoCeMxDT.mjs} +1 -1
  324. package/dist/{view-builder-BktOepKR.d.mts → view-builder-CvoSL2oL.d.mts} +5 -4
  325. package/dist/visibility-qhGWmpSJ.mjs +1 -0
  326. package/dist/worker-node-Bl9_vqYi.mjs +1 -0
  327. package/dist/worker-node-DZTuT1DS.mjs +1 -0
  328. package/dist/workflow-BfDbgtIQ.mjs +1 -0
  329. package/dist/workflow-engine/execution-attempt-repository.d.mts +2 -0
  330. package/dist/workflow-engine/execution-attempt-repository.mjs +1 -0
  331. package/dist/workflow-engine/index.d.mts +635 -701
  332. package/dist/workflow-engine/index.mjs +1 -1
  333. package/dist/workflow-engine/package.d.mts +1 -1
  334. package/dist/workflow-engine/package.mjs +1 -1
  335. package/dist/workflow-engine/provider-operation.d.mts +2 -0
  336. package/dist/workflow-engine/provider-operation.mjs +1 -0
  337. package/dist/workflow-engine/testing/index.d.mts +146 -0
  338. package/dist/workflow-engine/testing/index.mjs +1 -0
  339. package/dist/workflow-engine/testing/sqlite.d.mts +22 -0
  340. package/dist/workflow-engine/testing/sqlite.mjs +130 -0
  341. package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
  342. package/dist/workflow-transitions-DSc45ixc.mjs +1 -0
  343. package/dist/workflow-worker-BN9XPxQO.mjs +1 -0
  344. package/package.json +20 -3
  345. package/dist/authority-state-bootstrap-C_-F_dtq.mjs +0 -1
  346. package/dist/execution-target-CsZXIvli.mjs +0 -1
  347. package/dist/extension-CjTu6mzW.mjs +0 -1
  348. package/dist/model-uE5IyUFJ.mjs +0 -1
  349. package/dist/namespace-C05pkLbN.mjs +0 -1
  350. package/dist/package-BSG1681x.d.mts +0 -427
  351. package/dist/package-DW1Upu8E.mjs +0 -7
  352. package/dist/schemas-BRxU_oqL.mjs +0 -1
  353. package/dist/schemas-C-J4W1ID.mjs +0 -1
  354. package/dist/selection-YRuVSdck.mjs +0 -1
  355. package/dist/tools-Cs2DwjCC.mjs +0 -1
  356. package/dist/visibility-Cb62p9bv.mjs +0 -1
  357. package/dist/workflow-BX-FxDb0.mjs +0 -1
  358. package/dist/workflow-worker-DR9qYOFc.mjs +0 -1
  359. /package/dist/{adapter-auth-runtime-DFBLXD5K.mjs → adapter-auth-runtime-DO-FVTXg.mjs} +0 -0
  360. /package/dist/{adapter-binding-Dfk_g-lP.d.mts → adapter-binding-DQchUtrK.d.mts} +0 -0
  361. /package/dist/{ajv-C8r45sFs.mjs → ajv-DD3SIL2i.mjs} +0 -0
  362. /package/dist/{attach-error-DCnzW-Yz.mjs → attach-error-C3tngg6J.mjs} +0 -0
  363. /package/dist/{await-trigger-UceeyCyi.mjs → await-trigger-I3lrepb8.mjs} +0 -0
  364. /package/dist/{base-orchestrator-5yH3l39s.d.mts → base-orchestrator-BilsQNW1.d.mts} +0 -0
  365. /package/dist/{capability-service-BzKBK0n2.mjs → capability-service-BqiLlRGA.mjs} +0 -0
  366. /package/dist/{client-DYEHDiJN.d.mts → client-B--e2qcU.d.mts} +0 -0
  367. /package/dist/{client-binary-version-verifier-C12PvQmz.d.mts → client-binary-version-verifier-CgjM_vGF.d.mts} +0 -0
  368. /package/dist/{client-binary-version-verifier-Dv7TGFxh.mjs → client-binary-version-verifier-taewmKTY.mjs} +0 -0
  369. /package/dist/{clients-namespace-DcFmhtLv.d.mts → clients-namespace-DfxjG2ZP.d.mts} +0 -0
  370. /package/dist/{config-namespace-DmP7NVju.d.mts → config-namespace-BCqvufbD.d.mts} +0 -0
  371. /package/dist/{create-static-mount-BLbqGmva.mjs → create-static-mount-bbQhTt6W.mjs} +0 -0
  372. /package/dist/{cross-spawn-BXxQUsPS.mjs → cross-spawn-B57KZuns.mjs} +0 -0
  373. /package/dist/{cursor-storage-DCj4uUxr.mjs → cursor-storage-DIFK_9hg.mjs} +0 -0
  374. /package/dist/{definition-BEvV7tbD.d.mts → definition-gnKgXU91.d.mts} +0 -0
  375. /package/dist/{definitions-C1pgx0Nq.mjs → definitions-xrrY0wgz.mjs} +0 -0
  376. /package/dist/{descriptor-to-package-VfB8lK5w.mjs → descriptor-to-package-DvF08krT.mjs} +0 -0
  377. /package/dist/{drizzle-oCH9H53q.mjs → drizzle-z_0SiGY8.mjs} +0 -0
  378. /package/dist/{esm-ClQELElL.mjs → esm-CltRnX8_.mjs} +0 -0
  379. /package/dist/{event-BOLVCfhH.mjs → event-CmVjR6Ib.mjs} +0 -0
  380. /package/dist/{extension-discovery-B6p3iZaV.d.mts → extension-discovery-CQRdbVQ6.d.mts} +0 -0
  381. /package/dist/{extension-namespace-vrh4ERXR.mjs → extension-namespace-Yu41YepM.mjs} +0 -0
  382. /package/dist/{facet-DqPBpqkl.mjs → facet-BCI00njh.mjs} +0 -0
  383. /package/dist/{filesystem-service-CGdboor3.d.mts → filesystem-service-CQ9yVkSz.d.mts} +0 -0
  384. /package/dist/{handler-GGOD_ofd.mjs → handler-Cbv9FqDO.mjs} +0 -0
  385. /package/dist/{hook-responses-Dg8wDvRo.d.mts → hook-responses-Dh1PWXqJ.d.mts} +0 -0
  386. /package/dist/{host-BfgdjlII.mjs → host-Caq6ZfSJ.mjs} +0 -0
  387. /package/dist/{identity-BmEHHoBw.mjs → identity-D6guMtmi.mjs} +0 -0
  388. /package/dist/{index-DEchpaya.d.mts → index-BIdsFcQs2.d.mts} +0 -0
  389. /package/dist/{index-DquI_1X5.d.mts → index-BVRQEpAg.d.mts} +0 -0
  390. /package/dist/{index-Brdc35b-.d.mts → index-BaZeoZoS.d.mts} +0 -0
  391. /package/dist/{index-CzKLLQLw.d.mts → index-BskPjMet.d.mts} +0 -0
  392. /package/dist/{index-BSmwpgkR.d.mts → index-ByKi34v5.d.mts} +0 -0
  393. /package/dist/{index-oYGf2zIe.d.mts → index-CGZQVTid.d.mts} +0 -0
  394. /package/dist/{index-Chy9aknK.d.mts → index-CMJZ2Z8m.d.mts} +0 -0
  395. /package/dist/{index-4NQLoI7R.d.mts → index-CUvNKYkV.d.mts} +0 -0
  396. /package/dist/{index-Bd1GC1kU2.d.mts → index-CjdRdsd0.d.mts} +0 -0
  397. /package/dist/{index-BHQXXd-O.d.mts → index-CnMu8BQl.d.mts} +0 -0
  398. /package/dist/{index-DYUxNOIX.d.mts → index-Cv-o5Krs.d.mts} +0 -0
  399. /package/dist/{index-DC0yVsYL.d.mts → index-DN4NOCqN2.d.mts} +0 -0
  400. /package/dist/{index-CcsJnJOD.d.mts → index-DR40QWlw.d.mts} +0 -0
  401. /package/dist/{index-BG9-vQHD.d.mts → index-DZunhZec.d.mts} +0 -0
  402. /package/dist/{index-BsBvs0aK.d.mts → index-DjgLchuQ.d.mts} +0 -0
  403. /package/dist/{index-pgYFJ5h6.d.mts → index-Dm1nUxCF.d.mts} +0 -0
  404. /package/dist/{index-C96LlS5m.d.mts → index-Ds5_rDEJ.d.mts} +0 -0
  405. /package/dist/{index-B6SBIKyk.d.mts → index-HsTxm-R3.d.mts} +0 -0
  406. /package/dist/{index-GYZs75UP.d.mts → index-dtsLKOID.d.mts} +0 -0
  407. /package/dist/{index-8fJ6dkzR.d.mts → index-gUhidukN.d.mts} +0 -0
  408. /package/dist/{index-BgpYhR2z.d.mts → index-jTaAHsul.d.mts} +0 -0
  409. /package/dist/{index-Ci3_i-WC2.d.mts → index-sS6KUlrx.d.mts} +0 -0
  410. /package/dist/{index-CFeY8lfU.d.mts → index-vA--0lOM.d.mts} +0 -0
  411. /package/dist/{index-BUYyZm5I.d.mts → index-vcSj12YQ.d.mts} +0 -0
  412. /package/dist/{index-CdEhEXlY.d.mts → index-ye0oklfU.d.mts} +0 -0
  413. /package/dist/{json-value-BwVdTylT.d.mts → json-value-Brslhqbm.d.mts} +0 -0
  414. /package/dist/{jsonl-transport-D8RBF0dK.mjs → jsonl-transport-bQl3JwIu.mjs} +0 -0
  415. /package/dist/{lib-3_xcE8J-.mjs → lib-DOBXZmYX.mjs} +0 -0
  416. /package/dist/{model-registry-CoegIvks.mjs → model-registry-CmgcPDH3.mjs} +0 -0
  417. /package/dist/{model-registry-BneK5SGo.mjs → model-registry-xyBKSye-.mjs} +0 -0
  418. /package/dist/{namespace-CDO4rY11.mjs → namespace-B8uKAzWJ.mjs} +0 -0
  419. /package/dist/{namespace-BsF9IxJ9.d.mts → namespace-BOkKoq34.d.mts} +0 -0
  420. /package/dist/{namespace-SQAGytmu.d.mts → namespace-Blp4c8GK.d.mts} +0 -0
  421. /package/dist/{namespace-BeED_Ojz.mjs → namespace-C-9si-fV.mjs} +0 -0
  422. /package/dist/{namespace-De9Mg3zv.d.mts → namespace-CErHuXtb.d.mts} +0 -0
  423. /package/dist/{namespace-BHj13hbA.mjs → namespace-CWGKCNZm.mjs} +0 -0
  424. /package/dist/{namespace-D7pE2QWv.mjs → namespace-CWUDFGOy.mjs} +0 -0
  425. /package/dist/{namespace-D9HNjIdc.d.mts → namespace-Cv1RFP7n.d.mts} +0 -0
  426. /package/dist/{namespace-lWlqWTKu.d.mts → namespace-GPA7zots.d.mts} +0 -0
  427. /package/dist/{namespace-DWwWnLBu.mjs → namespace-HO2J9sO8.mjs} +0 -0
  428. /package/dist/{namespace-C238RqwB.mjs → namespace-YxU1xf-K.mjs} +0 -0
  429. /package/dist/{namespace-B9CYb9Gh.d.mts → namespace-jDhZjw-i.d.mts} +0 -0
  430. /package/dist/{namespace-BSXHdCVh2.d.mts → namespace-tGRAod3o.d.mts} +0 -0
  431. /package/dist/{orchestrator-shared-BB6j8ezL.d.mts → orchestrator-shared-BHCv-l2O.d.mts} +0 -0
  432. /package/dist/{out-CFkI17mk.mjs → out-CvjtANXN.mjs} +0 -0
  433. /package/dist/{packages-DeIgn0Hn.d.mts → packages-BZ6pzFIq.d.mts} +0 -0
  434. /package/dist/{platform-CWhGFQFX.mjs → platform-Bv8llU9c.mjs} +0 -0
  435. /package/dist/{providers-CUnrif24.mjs → providers-Co5UszRH.mjs} +0 -0
  436. /package/dist/{providers-namespace-sPbGcZ6I.d.mts → providers-namespace-DjFkmvBR.d.mts} +0 -0
  437. /package/dist/{quick-lru-CTBjxfgD.mjs → quick-lru-CrOpWwrf.mjs} +0 -0
  438. /package/dist/{schema-cus0dJ81.mjs → schema-Db-y-09L.mjs} +0 -0
  439. /package/dist/{schema-introspection-BsWLmoFp.mjs → schema-introspection-DgWQCpwx.mjs} +0 -0
  440. /package/dist/{schemas-DYvvMd3c.d.mts → schemas-B1NWNASS.d.mts} +0 -0
  441. /package/dist/{schemas-CMyv7l7-.mjs → schemas-BGExwp3j.mjs} +0 -0
  442. /package/dist/{schemas-Dmij0PIc.d.mts → schemas-BO7uOum6.d.mts} +0 -0
  443. /package/dist/{schemas-BGS9RfqV.mjs → schemas-Bfxskx_2.mjs} +0 -0
  444. /package/dist/{schemas-BKKpQC4X2.d.mts → schemas-BtZqovRH.d.mts} +0 -0
  445. /package/dist/{schemas-BAvt2HDy.d.mts → schemas-CQyRBqD6.d.mts} +0 -0
  446. /package/dist/{schemas-D55eXBgl.d.mts → schemas-CR8hSqTy.d.mts} +0 -0
  447. /package/dist/{schemas-CWxf_Yut.mjs → schemas-CqRm0i9a.mjs} +0 -0
  448. /package/dist/{schemas-CiWCNQ9a2.d.mts → schemas-CwbYk_kZ.d.mts} +0 -0
  449. /package/dist/{schemas-B4FyOOJj.d.mts → schemas-miYxK_Z1.d.mts} +0 -0
  450. /package/dist/{semver-D3Y7uMEb.mjs → semver-DlM8znk4.mjs} +0 -0
  451. /package/dist/{server-lifecycle-C-3OgoKi.d.mts → server-lifecycle-Dsq56aqC.d.mts} +0 -0
  452. /package/dist/{server-lifecycle-DV6NMsgH.mjs → server-lifecycle-kmQ5PUDv.mjs} +0 -0
  453. /package/dist/{session-lineage-D4z26OtM.d.mts → session-lineage-B_JW5LpF.d.mts} +0 -0
  454. /package/dist/{shared-schemas-BNCPgGYP.mjs → shared-schemas-DXwyMCwZ.mjs} +0 -0
  455. /package/dist/{src-ftBp6GpR.mjs → src-CCu8TwL6.mjs} +0 -0
  456. /package/dist/{storage-namespace-B1GI4elv.mjs → storage-namespace-BSrv0vXR.mjs} +0 -0
  457. /package/dist/{storage-namespace-definition-V8sc3drq.d.mts → storage-namespace-definition-BvlX0QV_.d.mts} +0 -0
  458. /package/dist/{storage-namespace-definition-4UYuij1r.mjs → storage-namespace-definition-CkMKt7-I.mjs} +0 -0
  459. /package/dist/{storage-namespace-9N9R61pI.d.mts → storage-namespace-dfywhXR3.d.mts} +0 -0
  460. /package/dist/{supports-color-DwW9N6YC.mjs → supports-color-DUugCQsK.mjs} +0 -0
  461. /package/dist/{telemetry-B42EMbZt.mjs → telemetry-Pr3oP2rk.mjs} +0 -0
  462. /package/dist/{timeout-CvONPl0l.mjs → timeout-DWDhddRJ.mjs} +0 -0
  463. /package/dist/{tray-menu-service-Dgedanv-.mjs → tray-menu-service-BBLa-Rcv.mjs} +0 -0
  464. /package/dist/{types-DkFvBdIY.d.mts → types-BrcjaNPZ.d.mts} +0 -0
  465. /package/dist/{types-DVLq657Y.d.mts → types-DHmPneIO.d.mts} +0 -0
  466. /package/dist/{types-Bju4dmAg.d.mts → types-b54n1o57.d.mts} +0 -0
  467. /package/dist/{ui-config-B2L3Xgqo.mjs → ui-config-CyCdlns_.mjs} +0 -0
  468. /package/dist/{variant-ByI-RZua.mjs → variant-krjlTdJt.mjs} +0 -0
  469. /package/dist/{window-registry-Qcnvlhp7.d.mts → window-registry-BDnZLPVx.d.mts} +0 -0
  470. /package/dist/{window-registry-DsWnCc8z.mjs → window-registry-I-imZHV_.mjs} +0 -0
@@ -1,5 +1,5 @@
1
- import { q as ArtifactRevision$1 } from "./context-resolution-B5IH2Z9v.mjs";
2
- import { i as JsonValue$1, t as JsonObjectContractSchema } from "./json-value-BwVdTylT.mjs";
1
+ import { q as ArtifactRevision$1 } from "./context-resolution-BQBk4Ish.mjs";
2
+ import { i as JsonValue$1, t as JsonObjectContractSchema } from "./json-value-Brslhqbm.mjs";
3
3
  import { z } from "zod";
4
4
  import * as _$_makaio_core0 from "@makaio/framework/core";
5
5
  import { ExtractSubjectPayload, SubjectDefinition, TypedPayloadFilter } from "@makaio/framework/core";
@@ -820,26 +820,28 @@ declare const WorkflowDefinitionSchema$1: z.ZodObject<{
820
820
  syncedAt: z.ZodOptional<z.ZodString>;
821
821
  metadata: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
822
822
  }, z.core.$strict>], "kind">>;
823
+ executableSource: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
824
+ kind: z.ZodLiteral<"path">;
825
+ path: z.ZodString;
826
+ }, z.core.$strict>, z.ZodObject<{
827
+ kind: z.ZodLiteral<"source">;
828
+ filename: z.ZodString;
829
+ source: z.ZodString;
830
+ }, z.core.$strict>, z.ZodObject<{
831
+ kind: z.ZodLiteral<"definition">;
832
+ workflowId: z.ZodString;
833
+ }, z.core.$strict>], "kind">>;
834
+ requirements: z.ZodOptional<z.ZodObject<{
835
+ maxRuntimeMs: z.ZodOptional<z.ZodNumber>;
836
+ persistentStorage: z.ZodOptional<z.ZodBoolean>;
837
+ customCapabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
838
+ recoverableAllocation: z.ZodOptional<z.ZodBoolean>;
839
+ materializationModes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
840
+ "local-directory": "local-directory";
841
+ "workspace-snapshot": "workspace-snapshot";
842
+ }>>>;
843
+ }, z.core.$strip>>;
823
844
  successFinalizerId: z.ZodOptional<z.ZodString>;
824
- executionHints: z.ZodOptional<z.ZodObject<{
825
- source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
826
- kind: z.ZodLiteral<"path">;
827
- path: z.ZodString;
828
- }, z.core.$strict>, z.ZodObject<{
829
- kind: z.ZodLiteral<"source">;
830
- filename: z.ZodString;
831
- source: z.ZodString;
832
- }, z.core.$strict>], "kind">>;
833
- requirements: z.ZodOptional<z.ZodObject<{
834
- isolation: z.ZodOptional<z.ZodEnum<{
835
- local: "local";
836
- remote: "remote";
837
- container: "container";
838
- }>>;
839
- capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
840
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
841
- providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
842
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
843
845
  }, z.core.$strip>;
844
846
  /**
845
847
  * Workflow definition stored in the database.
@@ -854,9 +856,9 @@ declare const ExecutionStatusSchema$1: z.ZodEnum<{
854
856
  pending: "pending";
855
857
  completed: "completed";
856
858
  cancelled: "cancelled";
857
- running: "running";
858
859
  failed: "failed";
859
860
  paused: "paused";
861
+ running: "running";
860
862
  finalizing: "finalizing";
861
863
  }>;
862
864
  type ExecutionStatus = z.infer<typeof ExecutionStatusSchema$1>;
@@ -871,9 +873,9 @@ declare const WorkflowExecutionSchema$1: z.ZodObject<{
871
873
  pending: "pending";
872
874
  completed: "completed";
873
875
  cancelled: "cancelled";
874
- running: "running";
875
876
  failed: "failed";
876
877
  paused: "paused";
878
+ running: "running";
877
879
  finalizing: "finalizing";
878
880
  }>;
879
881
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
@@ -929,10 +931,10 @@ declare const WorkflowFrameStateSchema$1: z.ZodObject<{
929
931
  pending: "pending";
930
932
  completed: "completed";
931
933
  cancelled: "cancelled";
932
- running: "running";
933
934
  failed: "failed";
934
- skipped: "skipped";
935
+ running: "running";
935
936
  waiting: "waiting";
937
+ skipped: "skipped";
936
938
  }>;
937
939
  attempt: z.ZodDefault<z.ZodNumber>;
938
940
  iteration: z.ZodOptional<z.ZodNumber>;
@@ -947,8 +949,8 @@ type WorkflowFrameState$1 = z.infer<typeof WorkflowFrameStateSchema$1>;
947
949
  declare const WorkflowGateStatusSchema: z.ZodEnum<{
948
950
  cancelled: "cancelled";
949
951
  rejected: "rejected";
950
- resumed: "resumed";
951
952
  waiting: "waiting";
953
+ resumed: "resumed";
952
954
  "timed-out": "timed-out";
953
955
  }>;
954
956
  type WorkflowGateStatus = z.infer<typeof WorkflowGateStatusSchema>;
@@ -968,8 +970,8 @@ declare const WorkflowGateInstanceSchema$1: z.ZodObject<{
968
970
  status: z.ZodEnum<{
969
971
  cancelled: "cancelled";
970
972
  rejected: "rejected";
971
- resumed: "resumed";
972
973
  waiting: "waiting";
974
+ resumed: "resumed";
973
975
  "timed-out": "timed-out";
974
976
  }>;
975
977
  autoAction: z.ZodEnum<{
@@ -1267,9 +1269,9 @@ declare const ExecutionListQuerySchema$1: z.ZodObject<{
1267
1269
  pending: "pending";
1268
1270
  completed: "completed";
1269
1271
  cancelled: "cancelled";
1270
- running: "running";
1271
1272
  failed: "failed";
1272
1273
  paused: "paused";
1274
+ running: "running";
1273
1275
  finalizing: "finalizing";
1274
1276
  }>>;
1275
1277
  artifactRef: z.ZodOptional<z.ZodObject<{
@@ -1319,8 +1321,8 @@ declare const GateInstanceListQuerySchema$1: z.ZodObject<{
1319
1321
  status: z.ZodOptional<z.ZodEnum<{
1320
1322
  cancelled: "cancelled";
1321
1323
  rejected: "rejected";
1322
- resumed: "resumed";
1323
1324
  waiting: "waiting";
1325
+ resumed: "resumed";
1324
1326
  "timed-out": "timed-out";
1325
1327
  }>>;
1326
1328
  limit: z.ZodDefault<z.ZodNumber>;
@@ -1472,11 +1474,69 @@ declare const WorkflowDelegateResultFinalizationRequestSchema: z.ZodObject<{
1472
1474
  }, z.core.$strict>;
1473
1475
  }, z.core.$strict>>;
1474
1476
  }, z.core.$strict>;
1477
+ /**
1478
+ * Static authority gateway request for one delegate result finalization.
1479
+ *
1480
+ * Unlike the dynamically named finalizer subject, this envelope is safe to
1481
+ * expose to restricted remote execution attempts. The Authority validates the
1482
+ * selected finalizer against its durable definition snapshot before routing
1483
+ * the enclosed payload to the finalizer's local namespace.
1484
+ */
1485
+ declare const WorkflowDelegateResultFinalizationGatewayRequestSchema: z.ZodObject<{
1486
+ executionId: z.ZodString;
1487
+ workflowId: z.ZodString;
1488
+ frameId: z.ZodString;
1489
+ nodeId: z.ZodString;
1490
+ nodeType: z.ZodEnum<{
1491
+ "delegate-agent": "delegate-agent";
1492
+ "delegate-role": "delegate-role";
1493
+ }>;
1494
+ rawResult: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
1495
+ toolObservations: z.ZodArray<z.ZodObject<{
1496
+ toolName: z.ZodString;
1497
+ outcome: z.ZodOptional<z.ZodEnum<{
1498
+ success: "success";
1499
+ failure: "failure";
1500
+ }>>;
1501
+ artifact: z.ZodOptional<z.ZodObject<{
1502
+ kind: z.ZodString;
1503
+ id: z.ZodString;
1504
+ revision: z.ZodString;
1505
+ }, z.core.$strict>>;
1506
+ }, z.core.$strict>>;
1507
+ economics: z.ZodOptional<z.ZodObject<{
1508
+ durationMs: z.ZodNumber;
1509
+ inputTokens: z.ZodOptional<z.ZodNumber>;
1510
+ outputTokens: z.ZodOptional<z.ZodNumber>;
1511
+ cachedInputTokens: z.ZodOptional<z.ZodNumber>;
1512
+ toolCallCount: z.ZodOptional<z.ZodNumber>;
1513
+ binding: z.ZodObject<{
1514
+ adapterName: z.ZodString;
1515
+ providerConfigId: z.ZodOptional<z.ZodString>;
1516
+ providerDefinitionId: z.ZodOptional<z.ZodString>;
1517
+ model: z.ZodOptional<z.ZodString>;
1518
+ auth: z.ZodOptional<z.ZodObject<{
1519
+ mode: z.ZodEnum<{
1520
+ explicit: "explicit";
1521
+ inferred: "inferred";
1522
+ none: "none";
1523
+ }>;
1524
+ owner: z.ZodEnum<{
1525
+ provider: "provider";
1526
+ client: "client";
1527
+ }>;
1528
+ methodId: z.ZodString;
1529
+ }, z.core.$strict>>;
1530
+ }, z.core.$strict>;
1531
+ }, z.core.$strict>>;
1532
+ finalizerId: z.ZodString;
1533
+ }, z.core.$strict>;
1475
1534
  /** Authority response containing the durable delegate frame output. */
1476
1535
  declare const WorkflowDelegateResultFinalizationResponseSchema: z.ZodObject<{
1477
1536
  output: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
1478
1537
  }, z.core.$strict>;
1479
1538
  type WorkflowDelegateResultFinalizationRequest = z.infer<typeof WorkflowDelegateResultFinalizationRequestSchema>;
1539
+ type WorkflowDelegateResultFinalizationGatewayRequest = z.infer<typeof WorkflowDelegateResultFinalizationGatewayRequestSchema>;
1480
1540
  type WorkflowDelegateEconomics = z.infer<typeof WorkflowDelegateEconomicsSchema>;
1481
1541
  type WorkflowDelegateResultFinalizationResponse = z.infer<typeof WorkflowDelegateResultFinalizationResponseSchema>;
1482
1542
  /**
@@ -1961,8 +2021,8 @@ interface IStepRunner {
1961
2021
  */
1962
2022
  declare const SpanStatusSchema: z.ZodEnum<{
1963
2023
  completed: "completed";
1964
- running: "running";
1965
2024
  failed: "failed";
2025
+ running: "running";
1966
2026
  skipped: "skipped";
1967
2027
  }>;
1968
2028
  type SpanStatus = z.infer<typeof SpanStatusSchema>;
@@ -1986,8 +2046,8 @@ declare const SpanRecordSchema$1: z.ZodObject<{
1986
2046
  }>;
1987
2047
  status: z.ZodEnum<{
1988
2048
  completed: "completed";
1989
- running: "running";
1990
2049
  failed: "failed";
2050
+ running: "running";
1991
2051
  skipped: "skipped";
1992
2052
  }>;
1993
2053
  startedAt: z.ZodOptional<z.ZodNumber>;
@@ -2423,26 +2483,28 @@ declare const WorkflowSchemas: {
2423
2483
  syncedAt: z.ZodOptional<z.ZodString>;
2424
2484
  metadata: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
2425
2485
  }, z.core.$strict>], "kind">>;
2486
+ executableSource: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2487
+ kind: z.ZodLiteral<"path">;
2488
+ path: z.ZodString;
2489
+ }, z.core.$strict>, z.ZodObject<{
2490
+ kind: z.ZodLiteral<"source">;
2491
+ filename: z.ZodString;
2492
+ source: z.ZodString;
2493
+ }, z.core.$strict>, z.ZodObject<{
2494
+ kind: z.ZodLiteral<"definition">;
2495
+ workflowId: z.ZodString;
2496
+ }, z.core.$strict>], "kind">>;
2497
+ requirements: z.ZodOptional<z.ZodObject<{
2498
+ maxRuntimeMs: z.ZodOptional<z.ZodNumber>;
2499
+ persistentStorage: z.ZodOptional<z.ZodBoolean>;
2500
+ customCapabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
2501
+ recoverableAllocation: z.ZodOptional<z.ZodBoolean>;
2502
+ materializationModes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2503
+ "local-directory": "local-directory";
2504
+ "workspace-snapshot": "workspace-snapshot";
2505
+ }>>>;
2506
+ }, z.core.$strip>>;
2426
2507
  successFinalizerId: z.ZodOptional<z.ZodString>;
2427
- executionHints: z.ZodOptional<z.ZodObject<{
2428
- source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2429
- kind: z.ZodLiteral<"path">;
2430
- path: z.ZodString;
2431
- }, z.core.$strict>, z.ZodObject<{
2432
- kind: z.ZodLiteral<"source">;
2433
- filename: z.ZodString;
2434
- source: z.ZodString;
2435
- }, z.core.$strict>], "kind">>;
2436
- requirements: z.ZodOptional<z.ZodObject<{
2437
- isolation: z.ZodOptional<z.ZodEnum<{
2438
- local: "local";
2439
- remote: "remote";
2440
- container: "container";
2441
- }>>;
2442
- capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
2443
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
2444
- providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
2445
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
2446
2508
  }, z.core.$strip>>;
2447
2509
  }, z.core.$strip>;
2448
2510
  };
@@ -2540,26 +2602,28 @@ declare const WorkflowSchemas: {
2540
2602
  syncedAt: z.ZodOptional<z.ZodString>;
2541
2603
  metadata: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
2542
2604
  }, z.core.$strict>], "kind">>;
2605
+ executableSource: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2606
+ kind: z.ZodLiteral<"path">;
2607
+ path: z.ZodString;
2608
+ }, z.core.$strict>, z.ZodObject<{
2609
+ kind: z.ZodLiteral<"source">;
2610
+ filename: z.ZodString;
2611
+ source: z.ZodString;
2612
+ }, z.core.$strict>, z.ZodObject<{
2613
+ kind: z.ZodLiteral<"definition">;
2614
+ workflowId: z.ZodString;
2615
+ }, z.core.$strict>], "kind">>;
2616
+ requirements: z.ZodOptional<z.ZodObject<{
2617
+ maxRuntimeMs: z.ZodOptional<z.ZodNumber>;
2618
+ persistentStorage: z.ZodOptional<z.ZodBoolean>;
2619
+ customCapabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
2620
+ recoverableAllocation: z.ZodOptional<z.ZodBoolean>;
2621
+ materializationModes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2622
+ "local-directory": "local-directory";
2623
+ "workspace-snapshot": "workspace-snapshot";
2624
+ }>>>;
2625
+ }, z.core.$strip>>;
2543
2626
  successFinalizerId: z.ZodOptional<z.ZodString>;
2544
- executionHints: z.ZodOptional<z.ZodObject<{
2545
- source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2546
- kind: z.ZodLiteral<"path">;
2547
- path: z.ZodString;
2548
- }, z.core.$strict>, z.ZodObject<{
2549
- kind: z.ZodLiteral<"source">;
2550
- filename: z.ZodString;
2551
- source: z.ZodString;
2552
- }, z.core.$strict>], "kind">>;
2553
- requirements: z.ZodOptional<z.ZodObject<{
2554
- isolation: z.ZodOptional<z.ZodEnum<{
2555
- local: "local";
2556
- remote: "remote";
2557
- container: "container";
2558
- }>>;
2559
- capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
2560
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
2561
- providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
2562
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
2563
2627
  }, z.core.$strip>;
2564
2628
  }, z.core.$strip>;
2565
2629
  response: z.ZodObject<{
@@ -2683,26 +2747,28 @@ declare const WorkflowSchemas: {
2683
2747
  syncedAt: z.ZodOptional<z.ZodString>;
2684
2748
  metadata: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
2685
2749
  }, z.core.$strict>], "kind">>;
2750
+ executableSource: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2751
+ kind: z.ZodLiteral<"path">;
2752
+ path: z.ZodString;
2753
+ }, z.core.$strict>, z.ZodObject<{
2754
+ kind: z.ZodLiteral<"source">;
2755
+ filename: z.ZodString;
2756
+ source: z.ZodString;
2757
+ }, z.core.$strict>, z.ZodObject<{
2758
+ kind: z.ZodLiteral<"definition">;
2759
+ workflowId: z.ZodString;
2760
+ }, z.core.$strict>], "kind">>;
2761
+ requirements: z.ZodOptional<z.ZodObject<{
2762
+ maxRuntimeMs: z.ZodOptional<z.ZodNumber>;
2763
+ persistentStorage: z.ZodOptional<z.ZodBoolean>;
2764
+ customCapabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
2765
+ recoverableAllocation: z.ZodOptional<z.ZodBoolean>;
2766
+ materializationModes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2767
+ "local-directory": "local-directory";
2768
+ "workspace-snapshot": "workspace-snapshot";
2769
+ }>>>;
2770
+ }, z.core.$strip>>;
2686
2771
  successFinalizerId: z.ZodOptional<z.ZodString>;
2687
- executionHints: z.ZodOptional<z.ZodObject<{
2688
- source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2689
- kind: z.ZodLiteral<"path">;
2690
- path: z.ZodString;
2691
- }, z.core.$strict>, z.ZodObject<{
2692
- kind: z.ZodLiteral<"source">;
2693
- filename: z.ZodString;
2694
- source: z.ZodString;
2695
- }, z.core.$strict>], "kind">>;
2696
- requirements: z.ZodOptional<z.ZodObject<{
2697
- isolation: z.ZodOptional<z.ZodEnum<{
2698
- local: "local";
2699
- remote: "remote";
2700
- container: "container";
2701
- }>>;
2702
- capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
2703
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
2704
- providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
2705
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
2706
2772
  }, z.core.$strip>>;
2707
2773
  }, z.core.$strip>;
2708
2774
  };
@@ -2798,26 +2864,28 @@ declare const WorkflowSchemas: {
2798
2864
  syncedAt: z.ZodOptional<z.ZodString>;
2799
2865
  metadata: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
2800
2866
  }, z.core.$strict>], "kind">>;
2867
+ executableSource: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2868
+ kind: z.ZodLiteral<"path">;
2869
+ path: z.ZodString;
2870
+ }, z.core.$strict>, z.ZodObject<{
2871
+ kind: z.ZodLiteral<"source">;
2872
+ filename: z.ZodString;
2873
+ source: z.ZodString;
2874
+ }, z.core.$strict>, z.ZodObject<{
2875
+ kind: z.ZodLiteral<"definition">;
2876
+ workflowId: z.ZodString;
2877
+ }, z.core.$strict>], "kind">>;
2878
+ requirements: z.ZodOptional<z.ZodObject<{
2879
+ maxRuntimeMs: z.ZodOptional<z.ZodNumber>;
2880
+ persistentStorage: z.ZodOptional<z.ZodBoolean>;
2881
+ customCapabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
2882
+ recoverableAllocation: z.ZodOptional<z.ZodBoolean>;
2883
+ materializationModes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2884
+ "local-directory": "local-directory";
2885
+ "workspace-snapshot": "workspace-snapshot";
2886
+ }>>>;
2887
+ }, z.core.$strip>>;
2801
2888
  successFinalizerId: z.ZodOptional<z.ZodString>;
2802
- executionHints: z.ZodOptional<z.ZodObject<{
2803
- source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2804
- kind: z.ZodLiteral<"path">;
2805
- path: z.ZodString;
2806
- }, z.core.$strict>, z.ZodObject<{
2807
- kind: z.ZodLiteral<"source">;
2808
- filename: z.ZodString;
2809
- source: z.ZodString;
2810
- }, z.core.$strict>], "kind">>;
2811
- requirements: z.ZodOptional<z.ZodObject<{
2812
- isolation: z.ZodOptional<z.ZodEnum<{
2813
- local: "local";
2814
- remote: "remote";
2815
- container: "container";
2816
- }>>;
2817
- capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
2818
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
2819
- providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
2820
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
2821
2889
  }, z.core.$strip>;
2822
2890
  'definition.updated': z.ZodObject<{
2823
2891
  id: z.ZodString;
@@ -2911,26 +2979,28 @@ declare const WorkflowSchemas: {
2911
2979
  syncedAt: z.ZodOptional<z.ZodString>;
2912
2980
  metadata: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
2913
2981
  }, z.core.$strict>], "kind">>;
2982
+ executableSource: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2983
+ kind: z.ZodLiteral<"path">;
2984
+ path: z.ZodString;
2985
+ }, z.core.$strict>, z.ZodObject<{
2986
+ kind: z.ZodLiteral<"source">;
2987
+ filename: z.ZodString;
2988
+ source: z.ZodString;
2989
+ }, z.core.$strict>, z.ZodObject<{
2990
+ kind: z.ZodLiteral<"definition">;
2991
+ workflowId: z.ZodString;
2992
+ }, z.core.$strict>], "kind">>;
2993
+ requirements: z.ZodOptional<z.ZodObject<{
2994
+ maxRuntimeMs: z.ZodOptional<z.ZodNumber>;
2995
+ persistentStorage: z.ZodOptional<z.ZodBoolean>;
2996
+ customCapabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
2997
+ recoverableAllocation: z.ZodOptional<z.ZodBoolean>;
2998
+ materializationModes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2999
+ "local-directory": "local-directory";
3000
+ "workspace-snapshot": "workspace-snapshot";
3001
+ }>>>;
3002
+ }, z.core.$strip>>;
2914
3003
  successFinalizerId: z.ZodOptional<z.ZodString>;
2915
- executionHints: z.ZodOptional<z.ZodObject<{
2916
- source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2917
- kind: z.ZodLiteral<"path">;
2918
- path: z.ZodString;
2919
- }, z.core.$strict>, z.ZodObject<{
2920
- kind: z.ZodLiteral<"source">;
2921
- filename: z.ZodString;
2922
- source: z.ZodString;
2923
- }, z.core.$strict>], "kind">>;
2924
- requirements: z.ZodOptional<z.ZodObject<{
2925
- isolation: z.ZodOptional<z.ZodEnum<{
2926
- local: "local";
2927
- remote: "remote";
2928
- container: "container";
2929
- }>>;
2930
- capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
2931
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
2932
- providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
2933
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
2934
3004
  }, z.core.$strip>;
2935
3005
  'definition.deleted': z.ZodObject<{
2936
3006
  id: z.ZodString;
@@ -2957,25 +3027,6 @@ declare const WorkflowSchemas: {
2957
3027
  kind: z.ZodString;
2958
3028
  id: z.ZodString;
2959
3029
  }, z.core.$strict>], "type">>;
2960
- executionHints: z.ZodOptional<z.ZodObject<{
2961
- source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2962
- kind: z.ZodLiteral<"path">;
2963
- path: z.ZodString;
2964
- }, z.core.$strict>, z.ZodObject<{
2965
- kind: z.ZodLiteral<"source">;
2966
- filename: z.ZodString;
2967
- source: z.ZodString;
2968
- }, z.core.$strict>], "kind">>;
2969
- requirements: z.ZodOptional<z.ZodObject<{
2970
- isolation: z.ZodOptional<z.ZodEnum<{
2971
- local: "local";
2972
- remote: "remote";
2973
- container: "container";
2974
- }>>;
2975
- capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
2976
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
2977
- providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
2978
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
2979
3030
  parentSessionId: z.ZodOptional<z.ZodString>;
2980
3031
  triggerPayload: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
2981
3032
  }, z.core.$strip>;
@@ -3009,25 +3060,6 @@ declare const WorkflowSchemas: {
3009
3060
  kind: z.ZodString;
3010
3061
  id: z.ZodString;
3011
3062
  }, z.core.$strict>], "type">>;
3012
- executionHints: z.ZodOptional<z.ZodObject<{
3013
- source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3014
- kind: z.ZodLiteral<"path">;
3015
- path: z.ZodString;
3016
- }, z.core.$strict>, z.ZodObject<{
3017
- kind: z.ZodLiteral<"source">;
3018
- filename: z.ZodString;
3019
- source: z.ZodString;
3020
- }, z.core.$strict>], "kind">>;
3021
- requirements: z.ZodOptional<z.ZodObject<{
3022
- isolation: z.ZodOptional<z.ZodEnum<{
3023
- local: "local";
3024
- remote: "remote";
3025
- container: "container";
3026
- }>>;
3027
- capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
3028
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
3029
- providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
3030
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
3031
3063
  parentSessionId: z.ZodOptional<z.ZodString>;
3032
3064
  triggerPayload: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
3033
3065
  reason: z.ZodOptional<z.ZodString>;
@@ -3141,26 +3173,28 @@ declare const WorkflowSchemas: {
3141
3173
  syncedAt: z.ZodOptional<z.ZodString>;
3142
3174
  metadata: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
3143
3175
  }, z.core.$strict>], "kind">>;
3176
+ executableSource: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3177
+ kind: z.ZodLiteral<"path">;
3178
+ path: z.ZodString;
3179
+ }, z.core.$strict>, z.ZodObject<{
3180
+ kind: z.ZodLiteral<"source">;
3181
+ filename: z.ZodString;
3182
+ source: z.ZodString;
3183
+ }, z.core.$strict>, z.ZodObject<{
3184
+ kind: z.ZodLiteral<"definition">;
3185
+ workflowId: z.ZodString;
3186
+ }, z.core.$strict>], "kind">>;
3187
+ requirements: z.ZodOptional<z.ZodObject<{
3188
+ maxRuntimeMs: z.ZodOptional<z.ZodNumber>;
3189
+ persistentStorage: z.ZodOptional<z.ZodBoolean>;
3190
+ customCapabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
3191
+ recoverableAllocation: z.ZodOptional<z.ZodBoolean>;
3192
+ materializationModes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3193
+ "local-directory": "local-directory";
3194
+ "workspace-snapshot": "workspace-snapshot";
3195
+ }>>>;
3196
+ }, z.core.$strip>>;
3144
3197
  successFinalizerId: z.ZodOptional<z.ZodString>;
3145
- executionHints: z.ZodOptional<z.ZodObject<{
3146
- source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3147
- kind: z.ZodLiteral<"path">;
3148
- path: z.ZodString;
3149
- }, z.core.$strict>, z.ZodObject<{
3150
- kind: z.ZodLiteral<"source">;
3151
- filename: z.ZodString;
3152
- source: z.ZodString;
3153
- }, z.core.$strict>], "kind">>;
3154
- requirements: z.ZodOptional<z.ZodObject<{
3155
- isolation: z.ZodOptional<z.ZodEnum<{
3156
- local: "local";
3157
- remote: "remote";
3158
- container: "container";
3159
- }>>;
3160
- capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
3161
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
3162
- providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
3163
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
3164
3198
  }, z.core.$strip>;
3165
3199
  }, z.core.$strict>;
3166
3200
  response: z.ZodObject<{
@@ -3597,13 +3631,72 @@ declare const WorkflowSchemas: {
3597
3631
  pending: "pending";
3598
3632
  completed: "completed";
3599
3633
  cancelled: "cancelled";
3600
- running: "running";
3601
3634
  failed: "failed";
3602
3635
  paused: "paused";
3636
+ running: "running";
3603
3637
  finalizing: "finalizing";
3604
3638
  }>;
3605
3639
  }, z.core.$strip>;
3606
3640
  };
3641
+ /**
3642
+ * Finalize a successful delegate result through the Authority-owned static
3643
+ * gateway. The handler verifies the attempt peer and durable node selector
3644
+ * before invoking the selected local finalizer.
3645
+ */
3646
+ finalizeDelegateResult: {
3647
+ request: z.ZodObject<{
3648
+ executionId: z.ZodString;
3649
+ workflowId: z.ZodString;
3650
+ frameId: z.ZodString;
3651
+ nodeId: z.ZodString;
3652
+ nodeType: z.ZodEnum<{
3653
+ "delegate-agent": "delegate-agent";
3654
+ "delegate-role": "delegate-role";
3655
+ }>;
3656
+ rawResult: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
3657
+ toolObservations: z.ZodArray<z.ZodObject<{
3658
+ toolName: z.ZodString;
3659
+ outcome: z.ZodOptional<z.ZodEnum<{
3660
+ success: "success";
3661
+ failure: "failure";
3662
+ }>>;
3663
+ artifact: z.ZodOptional<z.ZodObject<{
3664
+ kind: z.ZodString;
3665
+ id: z.ZodString;
3666
+ revision: z.ZodString;
3667
+ }, z.core.$strict>>;
3668
+ }, z.core.$strict>>;
3669
+ economics: z.ZodOptional<z.ZodObject<{
3670
+ durationMs: z.ZodNumber;
3671
+ inputTokens: z.ZodOptional<z.ZodNumber>;
3672
+ outputTokens: z.ZodOptional<z.ZodNumber>;
3673
+ cachedInputTokens: z.ZodOptional<z.ZodNumber>;
3674
+ toolCallCount: z.ZodOptional<z.ZodNumber>;
3675
+ binding: z.ZodObject<{
3676
+ adapterName: z.ZodString;
3677
+ providerConfigId: z.ZodOptional<z.ZodString>;
3678
+ providerDefinitionId: z.ZodOptional<z.ZodString>;
3679
+ model: z.ZodOptional<z.ZodString>;
3680
+ auth: z.ZodOptional<z.ZodObject<{
3681
+ mode: z.ZodEnum<{
3682
+ explicit: "explicit";
3683
+ inferred: "inferred";
3684
+ none: "none";
3685
+ }>;
3686
+ owner: z.ZodEnum<{
3687
+ provider: "provider";
3688
+ client: "client";
3689
+ }>;
3690
+ methodId: z.ZodString;
3691
+ }, z.core.$strict>>;
3692
+ }, z.core.$strict>;
3693
+ }, z.core.$strict>>;
3694
+ finalizerId: z.ZodString;
3695
+ }, z.core.$strict>;
3696
+ response: z.ZodObject<{
3697
+ output: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
3698
+ }, z.core.$strict>;
3699
+ };
3607
3700
  getExecution: {
3608
3701
  request: z.ZodObject<{
3609
3702
  executionId: z.ZodString;
@@ -3617,9 +3710,9 @@ declare const WorkflowSchemas: {
3617
3710
  pending: "pending";
3618
3711
  completed: "completed";
3619
3712
  cancelled: "cancelled";
3620
- running: "running";
3621
3713
  failed: "failed";
3622
3714
  paused: "paused";
3715
+ running: "running";
3623
3716
  finalizing: "finalizing";
3624
3717
  }>;
3625
3718
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
@@ -3675,9 +3768,9 @@ declare const WorkflowSchemas: {
3675
3768
  pending: "pending";
3676
3769
  completed: "completed";
3677
3770
  cancelled: "cancelled";
3678
- running: "running";
3679
3771
  failed: "failed";
3680
3772
  paused: "paused";
3773
+ running: "running";
3681
3774
  finalizing: "finalizing";
3682
3775
  }>>;
3683
3776
  artifactRef: z.ZodOptional<z.ZodObject<{
@@ -3699,9 +3792,9 @@ declare const WorkflowSchemas: {
3699
3792
  pending: "pending";
3700
3793
  completed: "completed";
3701
3794
  cancelled: "cancelled";
3702
- running: "running";
3703
3795
  failed: "failed";
3704
3796
  paused: "paused";
3797
+ running: "running";
3705
3798
  finalizing: "finalizing";
3706
3799
  }>;
3707
3800
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
@@ -3756,9 +3849,9 @@ declare const WorkflowSchemas: {
3756
3849
  pending: "pending";
3757
3850
  completed: "completed";
3758
3851
  cancelled: "cancelled";
3759
- running: "running";
3760
3852
  failed: "failed";
3761
3853
  paused: "paused";
3854
+ running: "running";
3762
3855
  finalizing: "finalizing";
3763
3856
  }>;
3764
3857
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
@@ -3811,8 +3904,8 @@ declare const WorkflowSchemas: {
3811
3904
  }>;
3812
3905
  status: z.ZodEnum<{
3813
3906
  completed: "completed";
3814
- running: "running";
3815
3907
  failed: "failed";
3908
+ running: "running";
3816
3909
  skipped: "skipped";
3817
3910
  }>;
3818
3911
  startedAt: z.ZodOptional<z.ZodNumber>;
@@ -3842,8 +3935,8 @@ declare const WorkflowSchemas: {
3842
3935
  status: z.ZodOptional<z.ZodEnum<{
3843
3936
  cancelled: "cancelled";
3844
3937
  rejected: "rejected";
3845
- resumed: "resumed";
3846
3938
  waiting: "waiting";
3939
+ resumed: "resumed";
3847
3940
  "timed-out": "timed-out";
3848
3941
  }>>;
3849
3942
  limit: z.ZodDefault<z.ZodNumber>;
@@ -3858,8 +3951,8 @@ declare const WorkflowSchemas: {
3858
3951
  status: z.ZodEnum<{
3859
3952
  cancelled: "cancelled";
3860
3953
  rejected: "rejected";
3861
- resumed: "resumed";
3862
3954
  waiting: "waiting";
3955
+ resumed: "resumed";
3863
3956
  "timed-out": "timed-out";
3864
3957
  }>;
3865
3958
  autoAction: z.ZodEnum<{
@@ -3954,10 +4047,10 @@ declare const WorkflowSchemas: {
3954
4047
  pending: "pending";
3955
4048
  completed: "completed";
3956
4049
  cancelled: "cancelled";
3957
- running: "running";
3958
4050
  failed: "failed";
3959
- skipped: "skipped";
4051
+ running: "running";
3960
4052
  waiting: "waiting";
4053
+ skipped: "skipped";
3961
4054
  }>;
3962
4055
  attempt: z.ZodDefault<z.ZodNumber>;
3963
4056
  iteration: z.ZodOptional<z.ZodNumber>;
@@ -3997,6 +4090,17 @@ declare const WorkflowSchemas: {
3997
4090
  runFile: {
3998
4091
  request: z.ZodObject<{
3999
4092
  filePath: z.ZodString;
4093
+ materializationSpec: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
4094
+ kind: z.ZodLiteral<"local-directory">;
4095
+ workspaceId: z.ZodString;
4096
+ rootDigest: z.ZodString;
4097
+ sourcePath: z.ZodString;
4098
+ }, z.core.$strict>, z.ZodObject<{
4099
+ kind: z.ZodLiteral<"workspace-snapshot">;
4100
+ snapshotId: z.ZodString;
4101
+ digest: z.ZodString;
4102
+ sourcePath: z.ZodString;
4103
+ }, z.core.$strict>], "kind">>;
4000
4104
  triggerPayload: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
4001
4105
  scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
4002
4106
  type: z.ZodLiteral<"global">;
@@ -4352,8 +4456,9 @@ declare const WorkflowSchemas: {
4352
4456
  *
4353
4457
  * Trust-boundary rules (enforced by the handler, not the schema):
4354
4458
  * - Local callers: always permitted.
4355
- * - Direct HMAC callers: `peer.kind === 'workflow-execution' && peer.id === executionId`.
4356
- * - Relay/E2E callers: authenticated and encrypted peer required.
4459
+ * - Direct HMAC callers: authenticated `workflow-execution-attempt` peer
4460
+ * whose Authority-issued `executionId` claim matches the request.
4461
+ * - Relay/E2E callers: authenticated, encrypted peer bound to `executionId`.
4357
4462
  */
4358
4463
  getRunContext: {
4359
4464
  request: z.ZodObject<{
@@ -4465,33 +4570,37 @@ declare const WorkflowSchemas: {
4465
4570
  syncedAt: z.ZodOptional<z.ZodString>;
4466
4571
  metadata: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
4467
4572
  }, z.core.$strict>], "kind">>;
4573
+ executableSource: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
4574
+ kind: z.ZodLiteral<"path">;
4575
+ path: z.ZodString;
4576
+ }, z.core.$strict>, z.ZodObject<{
4577
+ kind: z.ZodLiteral<"source">;
4578
+ filename: z.ZodString;
4579
+ source: z.ZodString;
4580
+ }, z.core.$strict>, z.ZodObject<{
4581
+ kind: z.ZodLiteral<"definition">;
4582
+ workflowId: z.ZodString;
4583
+ }, z.core.$strict>], "kind">>;
4584
+ requirements: z.ZodOptional<z.ZodObject<{
4585
+ maxRuntimeMs: z.ZodOptional<z.ZodNumber>;
4586
+ persistentStorage: z.ZodOptional<z.ZodBoolean>;
4587
+ customCapabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
4588
+ recoverableAllocation: z.ZodOptional<z.ZodBoolean>;
4589
+ materializationModes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
4590
+ "local-directory": "local-directory";
4591
+ "workspace-snapshot": "workspace-snapshot";
4592
+ }>>>;
4593
+ }, z.core.$strip>>;
4468
4594
  successFinalizerId: z.ZodOptional<z.ZodString>;
4469
- executionHints: z.ZodOptional<z.ZodObject<{
4470
- source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
4471
- kind: z.ZodLiteral<"path">;
4472
- path: z.ZodString;
4473
- }, z.core.$strict>, z.ZodObject<{
4474
- kind: z.ZodLiteral<"source">;
4475
- filename: z.ZodString;
4476
- source: z.ZodString;
4477
- }, z.core.$strict>], "kind">>;
4478
- requirements: z.ZodOptional<z.ZodObject<{
4479
- isolation: z.ZodOptional<z.ZodEnum<{
4480
- local: "local";
4481
- remote: "remote";
4482
- container: "container";
4483
- }>>;
4484
- capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
4485
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
4486
- providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
4487
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
4488
4595
  }, z.core.$strip>>;
4489
4596
  workerManifest: z.ZodDefault<z.ZodObject<{
4490
- packages: z.ZodDefault<z.ZodArray<z.ZodObject<{
4491
- name: z.ZodString;
4492
- importPath: z.ZodString;
4493
- }, z.core.$strip>>>;
4494
- }, z.core.$strip>>;
4597
+ contributionRefs: z.ZodArray<z.ZodObject<{
4598
+ packageName: z.ZodString;
4599
+ version: z.ZodString;
4600
+ entrypoint: z.ZodString;
4601
+ integrity: z.ZodString;
4602
+ }, z.core.$strict>>;
4603
+ }, z.core.$strict>>;
4495
4604
  inputs: z.ZodDefault<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>;
4496
4605
  config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
4497
4606
  scope: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -4513,38 +4622,8 @@ declare const WorkflowSchemas: {
4513
4622
  id: z.ZodString;
4514
4623
  }, z.core.$strip>>;
4515
4624
  coordinatorSessionId: z.ZodString;
4516
- executionHints: z.ZodOptional<z.ZodObject<{
4517
- source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
4518
- kind: z.ZodLiteral<"path">;
4519
- path: z.ZodString;
4520
- }, z.core.$strict>, z.ZodObject<{
4521
- kind: z.ZodLiteral<"source">;
4522
- filename: z.ZodString;
4523
- source: z.ZodString;
4524
- }, z.core.$strict>], "kind">>;
4525
- requirements: z.ZodOptional<z.ZodObject<{
4526
- isolation: z.ZodOptional<z.ZodEnum<{
4527
- local: "local";
4528
- remote: "remote";
4529
- container: "container";
4530
- }>>;
4531
- capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
4532
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
4533
- providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
4534
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
4535
4625
  dispatchMetadata: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
4536
4626
  cancelSubject: z.ZodString;
4537
- context: z.ZodObject<{
4538
- repoPath: z.ZodString;
4539
- makaioHome: z.ZodString;
4540
- os: z.ZodEnum<{
4541
- darwin: "darwin";
4542
- linux: "linux";
4543
- win32: "win32";
4544
- }>;
4545
- arch: z.ZodString;
4546
- worktree: z.ZodOptional<z.ZodString>;
4547
- }, z.core.$strip>;
4548
4627
  env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
4549
4628
  createdAt: z.ZodNumber;
4550
4629
  suspensionStrategy: z.ZodDefault<z.ZodEnum<{
@@ -4553,9 +4632,20 @@ declare const WorkflowSchemas: {
4553
4632
  "exit-and-resume": "exit-and-resume";
4554
4633
  }>>;
4555
4634
  terminalAuthority: z.ZodOptional<z.ZodEnum<{
4556
- authority: "authority";
4557
4635
  worker: "worker";
4636
+ authority: "authority";
4558
4637
  }>>;
4638
+ materializationSpec: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
4639
+ kind: z.ZodLiteral<"local-directory">;
4640
+ workspaceId: z.ZodString;
4641
+ rootDigest: z.ZodString;
4642
+ sourcePath: z.ZodString;
4643
+ }, z.core.$strict>, z.ZodObject<{
4644
+ kind: z.ZodLiteral<"workspace-snapshot">;
4645
+ snapshotId: z.ZodString;
4646
+ digest: z.ZodString;
4647
+ sourcePath: z.ZodString;
4648
+ }, z.core.$strict>], "kind">>;
4559
4649
  }, z.core.$strip>;
4560
4650
  };
4561
4651
  'execution.started': z.ZodObject<{
@@ -4910,9 +5000,9 @@ declare const WorkflowSchemas: {
4910
5000
  pending: "pending";
4911
5001
  completed: "completed";
4912
5002
  cancelled: "cancelled";
4913
- running: "running";
4914
5003
  failed: "failed";
4915
5004
  paused: "paused";
5005
+ running: "running";
4916
5006
  finalizing: "finalizing";
4917
5007
  }>;
4918
5008
  startedAt: z.ZodNumber;
@@ -4957,10 +5047,10 @@ declare const WorkflowSchemas: {
4957
5047
  pending: "pending";
4958
5048
  completed: "completed";
4959
5049
  cancelled: "cancelled";
4960
- running: "running";
4961
5050
  failed: "failed";
4962
- skipped: "skipped";
5051
+ running: "running";
4963
5052
  waiting: "waiting";
5053
+ skipped: "skipped";
4964
5054
  }>;
4965
5055
  attempt: z.ZodNumber;
4966
5056
  iteration: z.ZodOptional<z.ZodNumber>;
@@ -4988,9 +5078,9 @@ declare const WorkflowSchemas: {
4988
5078
  pending: "pending";
4989
5079
  completed: "completed";
4990
5080
  cancelled: "cancelled";
4991
- running: "running";
4992
5081
  failed: "failed";
4993
5082
  paused: "paused";
5083
+ running: "running";
4994
5084
  finalizing: "finalizing";
4995
5085
  }>>;
4996
5086
  limit: z.ZodOptional<z.ZodNumber>;
@@ -5005,9 +5095,9 @@ declare const WorkflowSchemas: {
5005
5095
  pending: "pending";
5006
5096
  completed: "completed";
5007
5097
  cancelled: "cancelled";
5008
- running: "running";
5009
5098
  failed: "failed";
5010
5099
  paused: "paused";
5100
+ running: "running";
5011
5101
  finalizing: "finalizing";
5012
5102
  }>;
5013
5103
  startedAt: z.ZodNumber;
@@ -5213,26 +5303,28 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
5213
5303
  syncedAt: z.ZodOptional<z.ZodString>;
5214
5304
  metadata: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
5215
5305
  }, z.core.$strict>], "kind">>;
5306
+ executableSource: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
5307
+ kind: z.ZodLiteral<"path">;
5308
+ path: z.ZodString;
5309
+ }, z.core.$strict>, z.ZodObject<{
5310
+ kind: z.ZodLiteral<"source">;
5311
+ filename: z.ZodString;
5312
+ source: z.ZodString;
5313
+ }, z.core.$strict>, z.ZodObject<{
5314
+ kind: z.ZodLiteral<"definition">;
5315
+ workflowId: z.ZodString;
5316
+ }, z.core.$strict>], "kind">>;
5317
+ requirements: z.ZodOptional<z.ZodObject<{
5318
+ maxRuntimeMs: z.ZodOptional<z.ZodNumber>;
5319
+ persistentStorage: z.ZodOptional<z.ZodBoolean>;
5320
+ customCapabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
5321
+ recoverableAllocation: z.ZodOptional<z.ZodBoolean>;
5322
+ materializationModes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
5323
+ "local-directory": "local-directory";
5324
+ "workspace-snapshot": "workspace-snapshot";
5325
+ }>>>;
5326
+ }, z.core.$strip>>;
5216
5327
  successFinalizerId: z.ZodOptional<z.ZodString>;
5217
- executionHints: z.ZodOptional<z.ZodObject<{
5218
- source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
5219
- kind: z.ZodLiteral<"path">;
5220
- path: z.ZodString;
5221
- }, z.core.$strict>, z.ZodObject<{
5222
- kind: z.ZodLiteral<"source">;
5223
- filename: z.ZodString;
5224
- source: z.ZodString;
5225
- }, z.core.$strict>], "kind">>;
5226
- requirements: z.ZodOptional<z.ZodObject<{
5227
- isolation: z.ZodOptional<z.ZodEnum<{
5228
- local: "local";
5229
- remote: "remote";
5230
- container: "container";
5231
- }>>;
5232
- capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
5233
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
5234
- providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
5235
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
5236
5328
  }, z.core.$strip>>;
5237
5329
  }, z.core.$strip>;
5238
5330
  };
@@ -5330,26 +5422,28 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
5330
5422
  syncedAt: z.ZodOptional<z.ZodString>;
5331
5423
  metadata: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
5332
5424
  }, z.core.$strict>], "kind">>;
5425
+ executableSource: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
5426
+ kind: z.ZodLiteral<"path">;
5427
+ path: z.ZodString;
5428
+ }, z.core.$strict>, z.ZodObject<{
5429
+ kind: z.ZodLiteral<"source">;
5430
+ filename: z.ZodString;
5431
+ source: z.ZodString;
5432
+ }, z.core.$strict>, z.ZodObject<{
5433
+ kind: z.ZodLiteral<"definition">;
5434
+ workflowId: z.ZodString;
5435
+ }, z.core.$strict>], "kind">>;
5436
+ requirements: z.ZodOptional<z.ZodObject<{
5437
+ maxRuntimeMs: z.ZodOptional<z.ZodNumber>;
5438
+ persistentStorage: z.ZodOptional<z.ZodBoolean>;
5439
+ customCapabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
5440
+ recoverableAllocation: z.ZodOptional<z.ZodBoolean>;
5441
+ materializationModes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
5442
+ "local-directory": "local-directory";
5443
+ "workspace-snapshot": "workspace-snapshot";
5444
+ }>>>;
5445
+ }, z.core.$strip>>;
5333
5446
  successFinalizerId: z.ZodOptional<z.ZodString>;
5334
- executionHints: z.ZodOptional<z.ZodObject<{
5335
- source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
5336
- kind: z.ZodLiteral<"path">;
5337
- path: z.ZodString;
5338
- }, z.core.$strict>, z.ZodObject<{
5339
- kind: z.ZodLiteral<"source">;
5340
- filename: z.ZodString;
5341
- source: z.ZodString;
5342
- }, z.core.$strict>], "kind">>;
5343
- requirements: z.ZodOptional<z.ZodObject<{
5344
- isolation: z.ZodOptional<z.ZodEnum<{
5345
- local: "local";
5346
- remote: "remote";
5347
- container: "container";
5348
- }>>;
5349
- capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
5350
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
5351
- providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
5352
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
5353
5447
  }, z.core.$strip>;
5354
5448
  }, z.core.$strip>;
5355
5449
  response: z.ZodObject<{
@@ -5473,26 +5567,28 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
5473
5567
  syncedAt: z.ZodOptional<z.ZodString>;
5474
5568
  metadata: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
5475
5569
  }, z.core.$strict>], "kind">>;
5570
+ executableSource: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
5571
+ kind: z.ZodLiteral<"path">;
5572
+ path: z.ZodString;
5573
+ }, z.core.$strict>, z.ZodObject<{
5574
+ kind: z.ZodLiteral<"source">;
5575
+ filename: z.ZodString;
5576
+ source: z.ZodString;
5577
+ }, z.core.$strict>, z.ZodObject<{
5578
+ kind: z.ZodLiteral<"definition">;
5579
+ workflowId: z.ZodString;
5580
+ }, z.core.$strict>], "kind">>;
5581
+ requirements: z.ZodOptional<z.ZodObject<{
5582
+ maxRuntimeMs: z.ZodOptional<z.ZodNumber>;
5583
+ persistentStorage: z.ZodOptional<z.ZodBoolean>;
5584
+ customCapabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
5585
+ recoverableAllocation: z.ZodOptional<z.ZodBoolean>;
5586
+ materializationModes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
5587
+ "local-directory": "local-directory";
5588
+ "workspace-snapshot": "workspace-snapshot";
5589
+ }>>>;
5590
+ }, z.core.$strip>>;
5476
5591
  successFinalizerId: z.ZodOptional<z.ZodString>;
5477
- executionHints: z.ZodOptional<z.ZodObject<{
5478
- source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
5479
- kind: z.ZodLiteral<"path">;
5480
- path: z.ZodString;
5481
- }, z.core.$strict>, z.ZodObject<{
5482
- kind: z.ZodLiteral<"source">;
5483
- filename: z.ZodString;
5484
- source: z.ZodString;
5485
- }, z.core.$strict>], "kind">>;
5486
- requirements: z.ZodOptional<z.ZodObject<{
5487
- isolation: z.ZodOptional<z.ZodEnum<{
5488
- local: "local";
5489
- remote: "remote";
5490
- container: "container";
5491
- }>>;
5492
- capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
5493
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
5494
- providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
5495
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
5496
5592
  }, z.core.$strip>>;
5497
5593
  }, z.core.$strip>;
5498
5594
  };
@@ -5588,26 +5684,28 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
5588
5684
  syncedAt: z.ZodOptional<z.ZodString>;
5589
5685
  metadata: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
5590
5686
  }, z.core.$strict>], "kind">>;
5687
+ executableSource: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
5688
+ kind: z.ZodLiteral<"path">;
5689
+ path: z.ZodString;
5690
+ }, z.core.$strict>, z.ZodObject<{
5691
+ kind: z.ZodLiteral<"source">;
5692
+ filename: z.ZodString;
5693
+ source: z.ZodString;
5694
+ }, z.core.$strict>, z.ZodObject<{
5695
+ kind: z.ZodLiteral<"definition">;
5696
+ workflowId: z.ZodString;
5697
+ }, z.core.$strict>], "kind">>;
5698
+ requirements: z.ZodOptional<z.ZodObject<{
5699
+ maxRuntimeMs: z.ZodOptional<z.ZodNumber>;
5700
+ persistentStorage: z.ZodOptional<z.ZodBoolean>;
5701
+ customCapabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
5702
+ recoverableAllocation: z.ZodOptional<z.ZodBoolean>;
5703
+ materializationModes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
5704
+ "local-directory": "local-directory";
5705
+ "workspace-snapshot": "workspace-snapshot";
5706
+ }>>>;
5707
+ }, z.core.$strip>>;
5591
5708
  successFinalizerId: z.ZodOptional<z.ZodString>;
5592
- executionHints: z.ZodOptional<z.ZodObject<{
5593
- source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
5594
- kind: z.ZodLiteral<"path">;
5595
- path: z.ZodString;
5596
- }, z.core.$strict>, z.ZodObject<{
5597
- kind: z.ZodLiteral<"source">;
5598
- filename: z.ZodString;
5599
- source: z.ZodString;
5600
- }, z.core.$strict>], "kind">>;
5601
- requirements: z.ZodOptional<z.ZodObject<{
5602
- isolation: z.ZodOptional<z.ZodEnum<{
5603
- local: "local";
5604
- remote: "remote";
5605
- container: "container";
5606
- }>>;
5607
- capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
5608
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
5609
- providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
5610
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
5611
5709
  }, z.core.$strip>;
5612
5710
  'definition.updated': z.ZodObject<{
5613
5711
  id: z.ZodString;
@@ -5701,26 +5799,28 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
5701
5799
  syncedAt: z.ZodOptional<z.ZodString>;
5702
5800
  metadata: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
5703
5801
  }, z.core.$strict>], "kind">>;
5802
+ executableSource: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
5803
+ kind: z.ZodLiteral<"path">;
5804
+ path: z.ZodString;
5805
+ }, z.core.$strict>, z.ZodObject<{
5806
+ kind: z.ZodLiteral<"source">;
5807
+ filename: z.ZodString;
5808
+ source: z.ZodString;
5809
+ }, z.core.$strict>, z.ZodObject<{
5810
+ kind: z.ZodLiteral<"definition">;
5811
+ workflowId: z.ZodString;
5812
+ }, z.core.$strict>], "kind">>;
5813
+ requirements: z.ZodOptional<z.ZodObject<{
5814
+ maxRuntimeMs: z.ZodOptional<z.ZodNumber>;
5815
+ persistentStorage: z.ZodOptional<z.ZodBoolean>;
5816
+ customCapabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
5817
+ recoverableAllocation: z.ZodOptional<z.ZodBoolean>;
5818
+ materializationModes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
5819
+ "local-directory": "local-directory";
5820
+ "workspace-snapshot": "workspace-snapshot";
5821
+ }>>>;
5822
+ }, z.core.$strip>>;
5704
5823
  successFinalizerId: z.ZodOptional<z.ZodString>;
5705
- executionHints: z.ZodOptional<z.ZodObject<{
5706
- source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
5707
- kind: z.ZodLiteral<"path">;
5708
- path: z.ZodString;
5709
- }, z.core.$strict>, z.ZodObject<{
5710
- kind: z.ZodLiteral<"source">;
5711
- filename: z.ZodString;
5712
- source: z.ZodString;
5713
- }, z.core.$strict>], "kind">>;
5714
- requirements: z.ZodOptional<z.ZodObject<{
5715
- isolation: z.ZodOptional<z.ZodEnum<{
5716
- local: "local";
5717
- remote: "remote";
5718
- container: "container";
5719
- }>>;
5720
- capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
5721
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
5722
- providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
5723
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
5724
5824
  }, z.core.$strip>;
5725
5825
  'definition.deleted': z.ZodObject<{
5726
5826
  id: z.ZodString;
@@ -5747,25 +5847,6 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
5747
5847
  kind: z.ZodString;
5748
5848
  id: z.ZodString;
5749
5849
  }, z.core.$strict>], "type">>;
5750
- executionHints: z.ZodOptional<z.ZodObject<{
5751
- source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
5752
- kind: z.ZodLiteral<"path">;
5753
- path: z.ZodString;
5754
- }, z.core.$strict>, z.ZodObject<{
5755
- kind: z.ZodLiteral<"source">;
5756
- filename: z.ZodString;
5757
- source: z.ZodString;
5758
- }, z.core.$strict>], "kind">>;
5759
- requirements: z.ZodOptional<z.ZodObject<{
5760
- isolation: z.ZodOptional<z.ZodEnum<{
5761
- local: "local";
5762
- remote: "remote";
5763
- container: "container";
5764
- }>>;
5765
- capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
5766
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
5767
- providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
5768
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
5769
5850
  parentSessionId: z.ZodOptional<z.ZodString>;
5770
5851
  triggerPayload: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
5771
5852
  }, z.core.$strip>;
@@ -5799,25 +5880,6 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
5799
5880
  kind: z.ZodString;
5800
5881
  id: z.ZodString;
5801
5882
  }, z.core.$strict>], "type">>;
5802
- executionHints: z.ZodOptional<z.ZodObject<{
5803
- source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
5804
- kind: z.ZodLiteral<"path">;
5805
- path: z.ZodString;
5806
- }, z.core.$strict>, z.ZodObject<{
5807
- kind: z.ZodLiteral<"source">;
5808
- filename: z.ZodString;
5809
- source: z.ZodString;
5810
- }, z.core.$strict>], "kind">>;
5811
- requirements: z.ZodOptional<z.ZodObject<{
5812
- isolation: z.ZodOptional<z.ZodEnum<{
5813
- local: "local";
5814
- remote: "remote";
5815
- container: "container";
5816
- }>>;
5817
- capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
5818
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
5819
- providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
5820
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
5821
5883
  parentSessionId: z.ZodOptional<z.ZodString>;
5822
5884
  triggerPayload: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
5823
5885
  reason: z.ZodOptional<z.ZodString>;
@@ -5931,26 +5993,28 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
5931
5993
  syncedAt: z.ZodOptional<z.ZodString>;
5932
5994
  metadata: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
5933
5995
  }, z.core.$strict>], "kind">>;
5996
+ executableSource: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
5997
+ kind: z.ZodLiteral<"path">;
5998
+ path: z.ZodString;
5999
+ }, z.core.$strict>, z.ZodObject<{
6000
+ kind: z.ZodLiteral<"source">;
6001
+ filename: z.ZodString;
6002
+ source: z.ZodString;
6003
+ }, z.core.$strict>, z.ZodObject<{
6004
+ kind: z.ZodLiteral<"definition">;
6005
+ workflowId: z.ZodString;
6006
+ }, z.core.$strict>], "kind">>;
6007
+ requirements: z.ZodOptional<z.ZodObject<{
6008
+ maxRuntimeMs: z.ZodOptional<z.ZodNumber>;
6009
+ persistentStorage: z.ZodOptional<z.ZodBoolean>;
6010
+ customCapabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
6011
+ recoverableAllocation: z.ZodOptional<z.ZodBoolean>;
6012
+ materializationModes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
6013
+ "local-directory": "local-directory";
6014
+ "workspace-snapshot": "workspace-snapshot";
6015
+ }>>>;
6016
+ }, z.core.$strip>>;
5934
6017
  successFinalizerId: z.ZodOptional<z.ZodString>;
5935
- executionHints: z.ZodOptional<z.ZodObject<{
5936
- source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
5937
- kind: z.ZodLiteral<"path">;
5938
- path: z.ZodString;
5939
- }, z.core.$strict>, z.ZodObject<{
5940
- kind: z.ZodLiteral<"source">;
5941
- filename: z.ZodString;
5942
- source: z.ZodString;
5943
- }, z.core.$strict>], "kind">>;
5944
- requirements: z.ZodOptional<z.ZodObject<{
5945
- isolation: z.ZodOptional<z.ZodEnum<{
5946
- local: "local";
5947
- remote: "remote";
5948
- container: "container";
5949
- }>>;
5950
- capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
5951
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
5952
- providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
5953
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
5954
6018
  }, z.core.$strip>;
5955
6019
  }, z.core.$strict>;
5956
6020
  response: z.ZodObject<{
@@ -6387,13 +6451,72 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
6387
6451
  pending: "pending";
6388
6452
  completed: "completed";
6389
6453
  cancelled: "cancelled";
6390
- running: "running";
6391
6454
  failed: "failed";
6392
6455
  paused: "paused";
6456
+ running: "running";
6393
6457
  finalizing: "finalizing";
6394
6458
  }>;
6395
6459
  }, z.core.$strip>;
6396
6460
  };
6461
+ /**
6462
+ * Finalize a successful delegate result through the Authority-owned static
6463
+ * gateway. The handler verifies the attempt peer and durable node selector
6464
+ * before invoking the selected local finalizer.
6465
+ */
6466
+ finalizeDelegateResult: {
6467
+ request: z.ZodObject<{
6468
+ executionId: z.ZodString;
6469
+ workflowId: z.ZodString;
6470
+ frameId: z.ZodString;
6471
+ nodeId: z.ZodString;
6472
+ nodeType: z.ZodEnum<{
6473
+ "delegate-agent": "delegate-agent";
6474
+ "delegate-role": "delegate-role";
6475
+ }>;
6476
+ rawResult: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
6477
+ toolObservations: z.ZodArray<z.ZodObject<{
6478
+ toolName: z.ZodString;
6479
+ outcome: z.ZodOptional<z.ZodEnum<{
6480
+ success: "success";
6481
+ failure: "failure";
6482
+ }>>;
6483
+ artifact: z.ZodOptional<z.ZodObject<{
6484
+ kind: z.ZodString;
6485
+ id: z.ZodString;
6486
+ revision: z.ZodString;
6487
+ }, z.core.$strict>>;
6488
+ }, z.core.$strict>>;
6489
+ economics: z.ZodOptional<z.ZodObject<{
6490
+ durationMs: z.ZodNumber;
6491
+ inputTokens: z.ZodOptional<z.ZodNumber>;
6492
+ outputTokens: z.ZodOptional<z.ZodNumber>;
6493
+ cachedInputTokens: z.ZodOptional<z.ZodNumber>;
6494
+ toolCallCount: z.ZodOptional<z.ZodNumber>;
6495
+ binding: z.ZodObject<{
6496
+ adapterName: z.ZodString;
6497
+ providerConfigId: z.ZodOptional<z.ZodString>;
6498
+ providerDefinitionId: z.ZodOptional<z.ZodString>;
6499
+ model: z.ZodOptional<z.ZodString>;
6500
+ auth: z.ZodOptional<z.ZodObject<{
6501
+ mode: z.ZodEnum<{
6502
+ explicit: "explicit";
6503
+ inferred: "inferred";
6504
+ none: "none";
6505
+ }>;
6506
+ owner: z.ZodEnum<{
6507
+ provider: "provider";
6508
+ client: "client";
6509
+ }>;
6510
+ methodId: z.ZodString;
6511
+ }, z.core.$strict>>;
6512
+ }, z.core.$strict>;
6513
+ }, z.core.$strict>>;
6514
+ finalizerId: z.ZodString;
6515
+ }, z.core.$strict>;
6516
+ response: z.ZodObject<{
6517
+ output: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
6518
+ }, z.core.$strict>;
6519
+ };
6397
6520
  getExecution: {
6398
6521
  request: z.ZodObject<{
6399
6522
  executionId: z.ZodString;
@@ -6407,9 +6530,9 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
6407
6530
  pending: "pending";
6408
6531
  completed: "completed";
6409
6532
  cancelled: "cancelled";
6410
- running: "running";
6411
6533
  failed: "failed";
6412
6534
  paused: "paused";
6535
+ running: "running";
6413
6536
  finalizing: "finalizing";
6414
6537
  }>;
6415
6538
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
@@ -6465,9 +6588,9 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
6465
6588
  pending: "pending";
6466
6589
  completed: "completed";
6467
6590
  cancelled: "cancelled";
6468
- running: "running";
6469
6591
  failed: "failed";
6470
6592
  paused: "paused";
6593
+ running: "running";
6471
6594
  finalizing: "finalizing";
6472
6595
  }>>;
6473
6596
  artifactRef: z.ZodOptional<z.ZodObject<{
@@ -6489,9 +6612,9 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
6489
6612
  pending: "pending";
6490
6613
  completed: "completed";
6491
6614
  cancelled: "cancelled";
6492
- running: "running";
6493
6615
  failed: "failed";
6494
6616
  paused: "paused";
6617
+ running: "running";
6495
6618
  finalizing: "finalizing";
6496
6619
  }>;
6497
6620
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
@@ -6546,9 +6669,9 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
6546
6669
  pending: "pending";
6547
6670
  completed: "completed";
6548
6671
  cancelled: "cancelled";
6549
- running: "running";
6550
6672
  failed: "failed";
6551
6673
  paused: "paused";
6674
+ running: "running";
6552
6675
  finalizing: "finalizing";
6553
6676
  }>;
6554
6677
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
@@ -6601,8 +6724,8 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
6601
6724
  }>;
6602
6725
  status: z.ZodEnum<{
6603
6726
  completed: "completed";
6604
- running: "running";
6605
6727
  failed: "failed";
6728
+ running: "running";
6606
6729
  skipped: "skipped";
6607
6730
  }>;
6608
6731
  startedAt: z.ZodOptional<z.ZodNumber>;
@@ -6632,8 +6755,8 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
6632
6755
  status: z.ZodOptional<z.ZodEnum<{
6633
6756
  cancelled: "cancelled";
6634
6757
  rejected: "rejected";
6635
- resumed: "resumed";
6636
6758
  waiting: "waiting";
6759
+ resumed: "resumed";
6637
6760
  "timed-out": "timed-out";
6638
6761
  }>>;
6639
6762
  limit: z.ZodDefault<z.ZodNumber>;
@@ -6648,8 +6771,8 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
6648
6771
  status: z.ZodEnum<{
6649
6772
  cancelled: "cancelled";
6650
6773
  rejected: "rejected";
6651
- resumed: "resumed";
6652
6774
  waiting: "waiting";
6775
+ resumed: "resumed";
6653
6776
  "timed-out": "timed-out";
6654
6777
  }>;
6655
6778
  autoAction: z.ZodEnum<{
@@ -6744,10 +6867,10 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
6744
6867
  pending: "pending";
6745
6868
  completed: "completed";
6746
6869
  cancelled: "cancelled";
6747
- running: "running";
6748
6870
  failed: "failed";
6749
- skipped: "skipped";
6871
+ running: "running";
6750
6872
  waiting: "waiting";
6873
+ skipped: "skipped";
6751
6874
  }>;
6752
6875
  attempt: z.ZodDefault<z.ZodNumber>;
6753
6876
  iteration: z.ZodOptional<z.ZodNumber>;
@@ -6787,6 +6910,17 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
6787
6910
  runFile: {
6788
6911
  request: z.ZodObject<{
6789
6912
  filePath: z.ZodString;
6913
+ materializationSpec: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
6914
+ kind: z.ZodLiteral<"local-directory">;
6915
+ workspaceId: z.ZodString;
6916
+ rootDigest: z.ZodString;
6917
+ sourcePath: z.ZodString;
6918
+ }, z.core.$strict>, z.ZodObject<{
6919
+ kind: z.ZodLiteral<"workspace-snapshot">;
6920
+ snapshotId: z.ZodString;
6921
+ digest: z.ZodString;
6922
+ sourcePath: z.ZodString;
6923
+ }, z.core.$strict>], "kind">>;
6790
6924
  triggerPayload: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
6791
6925
  scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
6792
6926
  type: z.ZodLiteral<"global">;
@@ -7142,8 +7276,9 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
7142
7276
  *
7143
7277
  * Trust-boundary rules (enforced by the handler, not the schema):
7144
7278
  * - Local callers: always permitted.
7145
- * - Direct HMAC callers: `peer.kind === 'workflow-execution' && peer.id === executionId`.
7146
- * - Relay/E2E callers: authenticated and encrypted peer required.
7279
+ * - Direct HMAC callers: authenticated `workflow-execution-attempt` peer
7280
+ * whose Authority-issued `executionId` claim matches the request.
7281
+ * - Relay/E2E callers: authenticated, encrypted peer bound to `executionId`.
7147
7282
  */
7148
7283
  getRunContext: {
7149
7284
  request: z.ZodObject<{
@@ -7255,33 +7390,37 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
7255
7390
  syncedAt: z.ZodOptional<z.ZodString>;
7256
7391
  metadata: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
7257
7392
  }, z.core.$strict>], "kind">>;
7393
+ executableSource: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
7394
+ kind: z.ZodLiteral<"path">;
7395
+ path: z.ZodString;
7396
+ }, z.core.$strict>, z.ZodObject<{
7397
+ kind: z.ZodLiteral<"source">;
7398
+ filename: z.ZodString;
7399
+ source: z.ZodString;
7400
+ }, z.core.$strict>, z.ZodObject<{
7401
+ kind: z.ZodLiteral<"definition">;
7402
+ workflowId: z.ZodString;
7403
+ }, z.core.$strict>], "kind">>;
7404
+ requirements: z.ZodOptional<z.ZodObject<{
7405
+ maxRuntimeMs: z.ZodOptional<z.ZodNumber>;
7406
+ persistentStorage: z.ZodOptional<z.ZodBoolean>;
7407
+ customCapabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
7408
+ recoverableAllocation: z.ZodOptional<z.ZodBoolean>;
7409
+ materializationModes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
7410
+ "local-directory": "local-directory";
7411
+ "workspace-snapshot": "workspace-snapshot";
7412
+ }>>>;
7413
+ }, z.core.$strip>>;
7258
7414
  successFinalizerId: z.ZodOptional<z.ZodString>;
7259
- executionHints: z.ZodOptional<z.ZodObject<{
7260
- source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
7261
- kind: z.ZodLiteral<"path">;
7262
- path: z.ZodString;
7263
- }, z.core.$strict>, z.ZodObject<{
7264
- kind: z.ZodLiteral<"source">;
7265
- filename: z.ZodString;
7266
- source: z.ZodString;
7267
- }, z.core.$strict>], "kind">>;
7268
- requirements: z.ZodOptional<z.ZodObject<{
7269
- isolation: z.ZodOptional<z.ZodEnum<{
7270
- local: "local";
7271
- remote: "remote";
7272
- container: "container";
7273
- }>>;
7274
- capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
7275
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
7276
- providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
7277
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
7278
7415
  }, z.core.$strip>>;
7279
7416
  workerManifest: z.ZodDefault<z.ZodObject<{
7280
- packages: z.ZodDefault<z.ZodArray<z.ZodObject<{
7281
- name: z.ZodString;
7282
- importPath: z.ZodString;
7283
- }, z.core.$strip>>>;
7284
- }, z.core.$strip>>;
7417
+ contributionRefs: z.ZodArray<z.ZodObject<{
7418
+ packageName: z.ZodString;
7419
+ version: z.ZodString;
7420
+ entrypoint: z.ZodString;
7421
+ integrity: z.ZodString;
7422
+ }, z.core.$strict>>;
7423
+ }, z.core.$strict>>;
7285
7424
  inputs: z.ZodDefault<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>;
7286
7425
  config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
7287
7426
  scope: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -7303,38 +7442,8 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
7303
7442
  id: z.ZodString;
7304
7443
  }, z.core.$strip>>;
7305
7444
  coordinatorSessionId: z.ZodString;
7306
- executionHints: z.ZodOptional<z.ZodObject<{
7307
- source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
7308
- kind: z.ZodLiteral<"path">;
7309
- path: z.ZodString;
7310
- }, z.core.$strict>, z.ZodObject<{
7311
- kind: z.ZodLiteral<"source">;
7312
- filename: z.ZodString;
7313
- source: z.ZodString;
7314
- }, z.core.$strict>], "kind">>;
7315
- requirements: z.ZodOptional<z.ZodObject<{
7316
- isolation: z.ZodOptional<z.ZodEnum<{
7317
- local: "local";
7318
- remote: "remote";
7319
- container: "container";
7320
- }>>;
7321
- capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
7322
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
7323
- providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
7324
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
7325
7445
  dispatchMetadata: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
7326
7446
  cancelSubject: z.ZodString;
7327
- context: z.ZodObject<{
7328
- repoPath: z.ZodString;
7329
- makaioHome: z.ZodString;
7330
- os: z.ZodEnum<{
7331
- darwin: "darwin";
7332
- linux: "linux";
7333
- win32: "win32";
7334
- }>;
7335
- arch: z.ZodString;
7336
- worktree: z.ZodOptional<z.ZodString>;
7337
- }, z.core.$strip>;
7338
7447
  env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
7339
7448
  createdAt: z.ZodNumber;
7340
7449
  suspensionStrategy: z.ZodDefault<z.ZodEnum<{
@@ -7343,9 +7452,20 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
7343
7452
  "exit-and-resume": "exit-and-resume";
7344
7453
  }>>;
7345
7454
  terminalAuthority: z.ZodOptional<z.ZodEnum<{
7346
- authority: "authority";
7347
7455
  worker: "worker";
7456
+ authority: "authority";
7348
7457
  }>>;
7458
+ materializationSpec: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
7459
+ kind: z.ZodLiteral<"local-directory">;
7460
+ workspaceId: z.ZodString;
7461
+ rootDigest: z.ZodString;
7462
+ sourcePath: z.ZodString;
7463
+ }, z.core.$strict>, z.ZodObject<{
7464
+ kind: z.ZodLiteral<"workspace-snapshot">;
7465
+ snapshotId: z.ZodString;
7466
+ digest: z.ZodString;
7467
+ sourcePath: z.ZodString;
7468
+ }, z.core.$strict>], "kind">>;
7349
7469
  }, z.core.$strip>;
7350
7470
  };
7351
7471
  'execution.started': z.ZodObject<{
@@ -7700,9 +7820,9 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
7700
7820
  pending: "pending";
7701
7821
  completed: "completed";
7702
7822
  cancelled: "cancelled";
7703
- running: "running";
7704
7823
  failed: "failed";
7705
7824
  paused: "paused";
7825
+ running: "running";
7706
7826
  finalizing: "finalizing";
7707
7827
  }>;
7708
7828
  startedAt: z.ZodNumber;
@@ -7747,10 +7867,10 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
7747
7867
  pending: "pending";
7748
7868
  completed: "completed";
7749
7869
  cancelled: "cancelled";
7750
- running: "running";
7751
7870
  failed: "failed";
7752
- skipped: "skipped";
7871
+ running: "running";
7753
7872
  waiting: "waiting";
7873
+ skipped: "skipped";
7754
7874
  }>;
7755
7875
  attempt: z.ZodNumber;
7756
7876
  iteration: z.ZodOptional<z.ZodNumber>;
@@ -7778,9 +7898,9 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
7778
7898
  pending: "pending";
7779
7899
  completed: "completed";
7780
7900
  cancelled: "cancelled";
7781
- running: "running";
7782
7901
  failed: "failed";
7783
7902
  paused: "paused";
7903
+ running: "running";
7784
7904
  finalizing: "finalizing";
7785
7905
  }>>;
7786
7906
  limit: z.ZodOptional<z.ZodNumber>;
@@ -7795,9 +7915,9 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
7795
7915
  pending: "pending";
7796
7916
  completed: "completed";
7797
7917
  cancelled: "cancelled";
7798
- running: "running";
7799
7918
  failed: "failed";
7800
7919
  paused: "paused";
7920
+ running: "running";
7801
7921
  finalizing: "finalizing";
7802
7922
  }>;
7803
7923
  startedAt: z.ZodNumber;
@@ -8003,26 +8123,28 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
8003
8123
  syncedAt: z.ZodOptional<z.ZodString>;
8004
8124
  metadata: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
8005
8125
  }, z.core.$strict>], "kind">>;
8126
+ executableSource: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
8127
+ kind: z.ZodLiteral<"path">;
8128
+ path: z.ZodString;
8129
+ }, z.core.$strict>, z.ZodObject<{
8130
+ kind: z.ZodLiteral<"source">;
8131
+ filename: z.ZodString;
8132
+ source: z.ZodString;
8133
+ }, z.core.$strict>, z.ZodObject<{
8134
+ kind: z.ZodLiteral<"definition">;
8135
+ workflowId: z.ZodString;
8136
+ }, z.core.$strict>], "kind">>;
8137
+ requirements: z.ZodOptional<z.ZodObject<{
8138
+ maxRuntimeMs: z.ZodOptional<z.ZodNumber>;
8139
+ persistentStorage: z.ZodOptional<z.ZodBoolean>;
8140
+ customCapabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
8141
+ recoverableAllocation: z.ZodOptional<z.ZodBoolean>;
8142
+ materializationModes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
8143
+ "local-directory": "local-directory";
8144
+ "workspace-snapshot": "workspace-snapshot";
8145
+ }>>>;
8146
+ }, z.core.$strip>>;
8006
8147
  successFinalizerId: z.ZodOptional<z.ZodString>;
8007
- executionHints: z.ZodOptional<z.ZodObject<{
8008
- source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
8009
- kind: z.ZodLiteral<"path">;
8010
- path: z.ZodString;
8011
- }, z.core.$strict>, z.ZodObject<{
8012
- kind: z.ZodLiteral<"source">;
8013
- filename: z.ZodString;
8014
- source: z.ZodString;
8015
- }, z.core.$strict>], "kind">>;
8016
- requirements: z.ZodOptional<z.ZodObject<{
8017
- isolation: z.ZodOptional<z.ZodEnum<{
8018
- local: "local";
8019
- remote: "remote";
8020
- container: "container";
8021
- }>>;
8022
- capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
8023
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
8024
- providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
8025
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
8026
8148
  }, z.core.$strip>>;
8027
8149
  }, z.core.$strip>;
8028
8150
  };
@@ -8120,26 +8242,28 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
8120
8242
  syncedAt: z.ZodOptional<z.ZodString>;
8121
8243
  metadata: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
8122
8244
  }, z.core.$strict>], "kind">>;
8245
+ executableSource: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
8246
+ kind: z.ZodLiteral<"path">;
8247
+ path: z.ZodString;
8248
+ }, z.core.$strict>, z.ZodObject<{
8249
+ kind: z.ZodLiteral<"source">;
8250
+ filename: z.ZodString;
8251
+ source: z.ZodString;
8252
+ }, z.core.$strict>, z.ZodObject<{
8253
+ kind: z.ZodLiteral<"definition">;
8254
+ workflowId: z.ZodString;
8255
+ }, z.core.$strict>], "kind">>;
8256
+ requirements: z.ZodOptional<z.ZodObject<{
8257
+ maxRuntimeMs: z.ZodOptional<z.ZodNumber>;
8258
+ persistentStorage: z.ZodOptional<z.ZodBoolean>;
8259
+ customCapabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
8260
+ recoverableAllocation: z.ZodOptional<z.ZodBoolean>;
8261
+ materializationModes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
8262
+ "local-directory": "local-directory";
8263
+ "workspace-snapshot": "workspace-snapshot";
8264
+ }>>>;
8265
+ }, z.core.$strip>>;
8123
8266
  successFinalizerId: z.ZodOptional<z.ZodString>;
8124
- executionHints: z.ZodOptional<z.ZodObject<{
8125
- source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
8126
- kind: z.ZodLiteral<"path">;
8127
- path: z.ZodString;
8128
- }, z.core.$strict>, z.ZodObject<{
8129
- kind: z.ZodLiteral<"source">;
8130
- filename: z.ZodString;
8131
- source: z.ZodString;
8132
- }, z.core.$strict>], "kind">>;
8133
- requirements: z.ZodOptional<z.ZodObject<{
8134
- isolation: z.ZodOptional<z.ZodEnum<{
8135
- local: "local";
8136
- remote: "remote";
8137
- container: "container";
8138
- }>>;
8139
- capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
8140
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
8141
- providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
8142
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
8143
8267
  }, z.core.$strip>;
8144
8268
  }, z.core.$strip>;
8145
8269
  response: z.ZodObject<{
@@ -8263,26 +8387,28 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
8263
8387
  syncedAt: z.ZodOptional<z.ZodString>;
8264
8388
  metadata: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
8265
8389
  }, z.core.$strict>], "kind">>;
8390
+ executableSource: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
8391
+ kind: z.ZodLiteral<"path">;
8392
+ path: z.ZodString;
8393
+ }, z.core.$strict>, z.ZodObject<{
8394
+ kind: z.ZodLiteral<"source">;
8395
+ filename: z.ZodString;
8396
+ source: z.ZodString;
8397
+ }, z.core.$strict>, z.ZodObject<{
8398
+ kind: z.ZodLiteral<"definition">;
8399
+ workflowId: z.ZodString;
8400
+ }, z.core.$strict>], "kind">>;
8401
+ requirements: z.ZodOptional<z.ZodObject<{
8402
+ maxRuntimeMs: z.ZodOptional<z.ZodNumber>;
8403
+ persistentStorage: z.ZodOptional<z.ZodBoolean>;
8404
+ customCapabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
8405
+ recoverableAllocation: z.ZodOptional<z.ZodBoolean>;
8406
+ materializationModes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
8407
+ "local-directory": "local-directory";
8408
+ "workspace-snapshot": "workspace-snapshot";
8409
+ }>>>;
8410
+ }, z.core.$strip>>;
8266
8411
  successFinalizerId: z.ZodOptional<z.ZodString>;
8267
- executionHints: z.ZodOptional<z.ZodObject<{
8268
- source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
8269
- kind: z.ZodLiteral<"path">;
8270
- path: z.ZodString;
8271
- }, z.core.$strict>, z.ZodObject<{
8272
- kind: z.ZodLiteral<"source">;
8273
- filename: z.ZodString;
8274
- source: z.ZodString;
8275
- }, z.core.$strict>], "kind">>;
8276
- requirements: z.ZodOptional<z.ZodObject<{
8277
- isolation: z.ZodOptional<z.ZodEnum<{
8278
- local: "local";
8279
- remote: "remote";
8280
- container: "container";
8281
- }>>;
8282
- capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
8283
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
8284
- providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
8285
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
8286
8412
  }, z.core.$strip>>;
8287
8413
  }, z.core.$strip>;
8288
8414
  };
@@ -8378,26 +8504,28 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
8378
8504
  syncedAt: z.ZodOptional<z.ZodString>;
8379
8505
  metadata: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
8380
8506
  }, z.core.$strict>], "kind">>;
8507
+ executableSource: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
8508
+ kind: z.ZodLiteral<"path">;
8509
+ path: z.ZodString;
8510
+ }, z.core.$strict>, z.ZodObject<{
8511
+ kind: z.ZodLiteral<"source">;
8512
+ filename: z.ZodString;
8513
+ source: z.ZodString;
8514
+ }, z.core.$strict>, z.ZodObject<{
8515
+ kind: z.ZodLiteral<"definition">;
8516
+ workflowId: z.ZodString;
8517
+ }, z.core.$strict>], "kind">>;
8518
+ requirements: z.ZodOptional<z.ZodObject<{
8519
+ maxRuntimeMs: z.ZodOptional<z.ZodNumber>;
8520
+ persistentStorage: z.ZodOptional<z.ZodBoolean>;
8521
+ customCapabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
8522
+ recoverableAllocation: z.ZodOptional<z.ZodBoolean>;
8523
+ materializationModes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
8524
+ "local-directory": "local-directory";
8525
+ "workspace-snapshot": "workspace-snapshot";
8526
+ }>>>;
8527
+ }, z.core.$strip>>;
8381
8528
  successFinalizerId: z.ZodOptional<z.ZodString>;
8382
- executionHints: z.ZodOptional<z.ZodObject<{
8383
- source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
8384
- kind: z.ZodLiteral<"path">;
8385
- path: z.ZodString;
8386
- }, z.core.$strict>, z.ZodObject<{
8387
- kind: z.ZodLiteral<"source">;
8388
- filename: z.ZodString;
8389
- source: z.ZodString;
8390
- }, z.core.$strict>], "kind">>;
8391
- requirements: z.ZodOptional<z.ZodObject<{
8392
- isolation: z.ZodOptional<z.ZodEnum<{
8393
- local: "local";
8394
- remote: "remote";
8395
- container: "container";
8396
- }>>;
8397
- capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
8398
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
8399
- providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
8400
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
8401
8529
  }, z.core.$strip>;
8402
8530
  'definition.updated': z.ZodObject<{
8403
8531
  id: z.ZodString;
@@ -8491,26 +8619,28 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
8491
8619
  syncedAt: z.ZodOptional<z.ZodString>;
8492
8620
  metadata: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
8493
8621
  }, z.core.$strict>], "kind">>;
8622
+ executableSource: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
8623
+ kind: z.ZodLiteral<"path">;
8624
+ path: z.ZodString;
8625
+ }, z.core.$strict>, z.ZodObject<{
8626
+ kind: z.ZodLiteral<"source">;
8627
+ filename: z.ZodString;
8628
+ source: z.ZodString;
8629
+ }, z.core.$strict>, z.ZodObject<{
8630
+ kind: z.ZodLiteral<"definition">;
8631
+ workflowId: z.ZodString;
8632
+ }, z.core.$strict>], "kind">>;
8633
+ requirements: z.ZodOptional<z.ZodObject<{
8634
+ maxRuntimeMs: z.ZodOptional<z.ZodNumber>;
8635
+ persistentStorage: z.ZodOptional<z.ZodBoolean>;
8636
+ customCapabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
8637
+ recoverableAllocation: z.ZodOptional<z.ZodBoolean>;
8638
+ materializationModes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
8639
+ "local-directory": "local-directory";
8640
+ "workspace-snapshot": "workspace-snapshot";
8641
+ }>>>;
8642
+ }, z.core.$strip>>;
8494
8643
  successFinalizerId: z.ZodOptional<z.ZodString>;
8495
- executionHints: z.ZodOptional<z.ZodObject<{
8496
- source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
8497
- kind: z.ZodLiteral<"path">;
8498
- path: z.ZodString;
8499
- }, z.core.$strict>, z.ZodObject<{
8500
- kind: z.ZodLiteral<"source">;
8501
- filename: z.ZodString;
8502
- source: z.ZodString;
8503
- }, z.core.$strict>], "kind">>;
8504
- requirements: z.ZodOptional<z.ZodObject<{
8505
- isolation: z.ZodOptional<z.ZodEnum<{
8506
- local: "local";
8507
- remote: "remote";
8508
- container: "container";
8509
- }>>;
8510
- capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
8511
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
8512
- providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
8513
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
8514
8644
  }, z.core.$strip>;
8515
8645
  'definition.deleted': z.ZodObject<{
8516
8646
  id: z.ZodString;
@@ -8532,30 +8662,11 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
8532
8662
  }, z.core.$strict>, z.ZodObject<{
8533
8663
  type: z.ZodLiteral<"session">;
8534
8664
  id: z.ZodString;
8535
- }, z.core.$strict>, z.ZodObject<{
8536
- type: z.ZodLiteral<"external">;
8537
- kind: z.ZodString;
8538
- id: z.ZodString;
8539
- }, z.core.$strict>], "type">>;
8540
- executionHints: z.ZodOptional<z.ZodObject<{
8541
- source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
8542
- kind: z.ZodLiteral<"path">;
8543
- path: z.ZodString;
8544
- }, z.core.$strict>, z.ZodObject<{
8545
- kind: z.ZodLiteral<"source">;
8546
- filename: z.ZodString;
8547
- source: z.ZodString;
8548
- }, z.core.$strict>], "kind">>;
8549
- requirements: z.ZodOptional<z.ZodObject<{
8550
- isolation: z.ZodOptional<z.ZodEnum<{
8551
- local: "local";
8552
- remote: "remote";
8553
- container: "container";
8554
- }>>;
8555
- capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
8556
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
8557
- providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
8558
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
8665
+ }, z.core.$strict>, z.ZodObject<{
8666
+ type: z.ZodLiteral<"external">;
8667
+ kind: z.ZodString;
8668
+ id: z.ZodString;
8669
+ }, z.core.$strict>], "type">>;
8559
8670
  parentSessionId: z.ZodOptional<z.ZodString>;
8560
8671
  triggerPayload: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
8561
8672
  }, z.core.$strip>;
@@ -8589,25 +8700,6 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
8589
8700
  kind: z.ZodString;
8590
8701
  id: z.ZodString;
8591
8702
  }, z.core.$strict>], "type">>;
8592
- executionHints: z.ZodOptional<z.ZodObject<{
8593
- source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
8594
- kind: z.ZodLiteral<"path">;
8595
- path: z.ZodString;
8596
- }, z.core.$strict>, z.ZodObject<{
8597
- kind: z.ZodLiteral<"source">;
8598
- filename: z.ZodString;
8599
- source: z.ZodString;
8600
- }, z.core.$strict>], "kind">>;
8601
- requirements: z.ZodOptional<z.ZodObject<{
8602
- isolation: z.ZodOptional<z.ZodEnum<{
8603
- local: "local";
8604
- remote: "remote";
8605
- container: "container";
8606
- }>>;
8607
- capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
8608
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
8609
- providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
8610
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
8611
8703
  parentSessionId: z.ZodOptional<z.ZodString>;
8612
8704
  triggerPayload: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
8613
8705
  reason: z.ZodOptional<z.ZodString>;
@@ -8721,26 +8813,28 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
8721
8813
  syncedAt: z.ZodOptional<z.ZodString>;
8722
8814
  metadata: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
8723
8815
  }, z.core.$strict>], "kind">>;
8816
+ executableSource: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
8817
+ kind: z.ZodLiteral<"path">;
8818
+ path: z.ZodString;
8819
+ }, z.core.$strict>, z.ZodObject<{
8820
+ kind: z.ZodLiteral<"source">;
8821
+ filename: z.ZodString;
8822
+ source: z.ZodString;
8823
+ }, z.core.$strict>, z.ZodObject<{
8824
+ kind: z.ZodLiteral<"definition">;
8825
+ workflowId: z.ZodString;
8826
+ }, z.core.$strict>], "kind">>;
8827
+ requirements: z.ZodOptional<z.ZodObject<{
8828
+ maxRuntimeMs: z.ZodOptional<z.ZodNumber>;
8829
+ persistentStorage: z.ZodOptional<z.ZodBoolean>;
8830
+ customCapabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
8831
+ recoverableAllocation: z.ZodOptional<z.ZodBoolean>;
8832
+ materializationModes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
8833
+ "local-directory": "local-directory";
8834
+ "workspace-snapshot": "workspace-snapshot";
8835
+ }>>>;
8836
+ }, z.core.$strip>>;
8724
8837
  successFinalizerId: z.ZodOptional<z.ZodString>;
8725
- executionHints: z.ZodOptional<z.ZodObject<{
8726
- source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
8727
- kind: z.ZodLiteral<"path">;
8728
- path: z.ZodString;
8729
- }, z.core.$strict>, z.ZodObject<{
8730
- kind: z.ZodLiteral<"source">;
8731
- filename: z.ZodString;
8732
- source: z.ZodString;
8733
- }, z.core.$strict>], "kind">>;
8734
- requirements: z.ZodOptional<z.ZodObject<{
8735
- isolation: z.ZodOptional<z.ZodEnum<{
8736
- local: "local";
8737
- remote: "remote";
8738
- container: "container";
8739
- }>>;
8740
- capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
8741
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
8742
- providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
8743
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
8744
8838
  }, z.core.$strip>;
8745
8839
  }, z.core.$strict>;
8746
8840
  response: z.ZodObject<{
@@ -9177,13 +9271,72 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
9177
9271
  pending: "pending";
9178
9272
  completed: "completed";
9179
9273
  cancelled: "cancelled";
9180
- running: "running";
9181
9274
  failed: "failed";
9182
9275
  paused: "paused";
9276
+ running: "running";
9183
9277
  finalizing: "finalizing";
9184
9278
  }>;
9185
9279
  }, z.core.$strip>;
9186
9280
  };
9281
+ /**
9282
+ * Finalize a successful delegate result through the Authority-owned static
9283
+ * gateway. The handler verifies the attempt peer and durable node selector
9284
+ * before invoking the selected local finalizer.
9285
+ */
9286
+ finalizeDelegateResult: {
9287
+ request: z.ZodObject<{
9288
+ executionId: z.ZodString;
9289
+ workflowId: z.ZodString;
9290
+ frameId: z.ZodString;
9291
+ nodeId: z.ZodString;
9292
+ nodeType: z.ZodEnum<{
9293
+ "delegate-agent": "delegate-agent";
9294
+ "delegate-role": "delegate-role";
9295
+ }>;
9296
+ rawResult: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
9297
+ toolObservations: z.ZodArray<z.ZodObject<{
9298
+ toolName: z.ZodString;
9299
+ outcome: z.ZodOptional<z.ZodEnum<{
9300
+ success: "success";
9301
+ failure: "failure";
9302
+ }>>;
9303
+ artifact: z.ZodOptional<z.ZodObject<{
9304
+ kind: z.ZodString;
9305
+ id: z.ZodString;
9306
+ revision: z.ZodString;
9307
+ }, z.core.$strict>>;
9308
+ }, z.core.$strict>>;
9309
+ economics: z.ZodOptional<z.ZodObject<{
9310
+ durationMs: z.ZodNumber;
9311
+ inputTokens: z.ZodOptional<z.ZodNumber>;
9312
+ outputTokens: z.ZodOptional<z.ZodNumber>;
9313
+ cachedInputTokens: z.ZodOptional<z.ZodNumber>;
9314
+ toolCallCount: z.ZodOptional<z.ZodNumber>;
9315
+ binding: z.ZodObject<{
9316
+ adapterName: z.ZodString;
9317
+ providerConfigId: z.ZodOptional<z.ZodString>;
9318
+ providerDefinitionId: z.ZodOptional<z.ZodString>;
9319
+ model: z.ZodOptional<z.ZodString>;
9320
+ auth: z.ZodOptional<z.ZodObject<{
9321
+ mode: z.ZodEnum<{
9322
+ explicit: "explicit";
9323
+ inferred: "inferred";
9324
+ none: "none";
9325
+ }>;
9326
+ owner: z.ZodEnum<{
9327
+ provider: "provider";
9328
+ client: "client";
9329
+ }>;
9330
+ methodId: z.ZodString;
9331
+ }, z.core.$strict>>;
9332
+ }, z.core.$strict>;
9333
+ }, z.core.$strict>>;
9334
+ finalizerId: z.ZodString;
9335
+ }, z.core.$strict>;
9336
+ response: z.ZodObject<{
9337
+ output: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
9338
+ }, z.core.$strict>;
9339
+ };
9187
9340
  getExecution: {
9188
9341
  request: z.ZodObject<{
9189
9342
  executionId: z.ZodString;
@@ -9197,9 +9350,9 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
9197
9350
  pending: "pending";
9198
9351
  completed: "completed";
9199
9352
  cancelled: "cancelled";
9200
- running: "running";
9201
9353
  failed: "failed";
9202
9354
  paused: "paused";
9355
+ running: "running";
9203
9356
  finalizing: "finalizing";
9204
9357
  }>;
9205
9358
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
@@ -9255,9 +9408,9 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
9255
9408
  pending: "pending";
9256
9409
  completed: "completed";
9257
9410
  cancelled: "cancelled";
9258
- running: "running";
9259
9411
  failed: "failed";
9260
9412
  paused: "paused";
9413
+ running: "running";
9261
9414
  finalizing: "finalizing";
9262
9415
  }>>;
9263
9416
  artifactRef: z.ZodOptional<z.ZodObject<{
@@ -9279,9 +9432,9 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
9279
9432
  pending: "pending";
9280
9433
  completed: "completed";
9281
9434
  cancelled: "cancelled";
9282
- running: "running";
9283
9435
  failed: "failed";
9284
9436
  paused: "paused";
9437
+ running: "running";
9285
9438
  finalizing: "finalizing";
9286
9439
  }>;
9287
9440
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
@@ -9336,9 +9489,9 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
9336
9489
  pending: "pending";
9337
9490
  completed: "completed";
9338
9491
  cancelled: "cancelled";
9339
- running: "running";
9340
9492
  failed: "failed";
9341
9493
  paused: "paused";
9494
+ running: "running";
9342
9495
  finalizing: "finalizing";
9343
9496
  }>;
9344
9497
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
@@ -9391,8 +9544,8 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
9391
9544
  }>;
9392
9545
  status: z.ZodEnum<{
9393
9546
  completed: "completed";
9394
- running: "running";
9395
9547
  failed: "failed";
9548
+ running: "running";
9396
9549
  skipped: "skipped";
9397
9550
  }>;
9398
9551
  startedAt: z.ZodOptional<z.ZodNumber>;
@@ -9422,8 +9575,8 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
9422
9575
  status: z.ZodOptional<z.ZodEnum<{
9423
9576
  cancelled: "cancelled";
9424
9577
  rejected: "rejected";
9425
- resumed: "resumed";
9426
9578
  waiting: "waiting";
9579
+ resumed: "resumed";
9427
9580
  "timed-out": "timed-out";
9428
9581
  }>>;
9429
9582
  limit: z.ZodDefault<z.ZodNumber>;
@@ -9438,8 +9591,8 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
9438
9591
  status: z.ZodEnum<{
9439
9592
  cancelled: "cancelled";
9440
9593
  rejected: "rejected";
9441
- resumed: "resumed";
9442
9594
  waiting: "waiting";
9595
+ resumed: "resumed";
9443
9596
  "timed-out": "timed-out";
9444
9597
  }>;
9445
9598
  autoAction: z.ZodEnum<{
@@ -9534,10 +9687,10 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
9534
9687
  pending: "pending";
9535
9688
  completed: "completed";
9536
9689
  cancelled: "cancelled";
9537
- running: "running";
9538
9690
  failed: "failed";
9539
- skipped: "skipped";
9691
+ running: "running";
9540
9692
  waiting: "waiting";
9693
+ skipped: "skipped";
9541
9694
  }>;
9542
9695
  attempt: z.ZodDefault<z.ZodNumber>;
9543
9696
  iteration: z.ZodOptional<z.ZodNumber>;
@@ -9577,6 +9730,17 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
9577
9730
  runFile: {
9578
9731
  request: z.ZodObject<{
9579
9732
  filePath: z.ZodString;
9733
+ materializationSpec: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
9734
+ kind: z.ZodLiteral<"local-directory">;
9735
+ workspaceId: z.ZodString;
9736
+ rootDigest: z.ZodString;
9737
+ sourcePath: z.ZodString;
9738
+ }, z.core.$strict>, z.ZodObject<{
9739
+ kind: z.ZodLiteral<"workspace-snapshot">;
9740
+ snapshotId: z.ZodString;
9741
+ digest: z.ZodString;
9742
+ sourcePath: z.ZodString;
9743
+ }, z.core.$strict>], "kind">>;
9580
9744
  triggerPayload: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
9581
9745
  scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
9582
9746
  type: z.ZodLiteral<"global">;
@@ -9932,8 +10096,9 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
9932
10096
  *
9933
10097
  * Trust-boundary rules (enforced by the handler, not the schema):
9934
10098
  * - Local callers: always permitted.
9935
- * - Direct HMAC callers: `peer.kind === 'workflow-execution' && peer.id === executionId`.
9936
- * - Relay/E2E callers: authenticated and encrypted peer required.
10099
+ * - Direct HMAC callers: authenticated `workflow-execution-attempt` peer
10100
+ * whose Authority-issued `executionId` claim matches the request.
10101
+ * - Relay/E2E callers: authenticated, encrypted peer bound to `executionId`.
9937
10102
  */
9938
10103
  getRunContext: {
9939
10104
  request: z.ZodObject<{
@@ -10045,33 +10210,37 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
10045
10210
  syncedAt: z.ZodOptional<z.ZodString>;
10046
10211
  metadata: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
10047
10212
  }, z.core.$strict>], "kind">>;
10213
+ executableSource: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
10214
+ kind: z.ZodLiteral<"path">;
10215
+ path: z.ZodString;
10216
+ }, z.core.$strict>, z.ZodObject<{
10217
+ kind: z.ZodLiteral<"source">;
10218
+ filename: z.ZodString;
10219
+ source: z.ZodString;
10220
+ }, z.core.$strict>, z.ZodObject<{
10221
+ kind: z.ZodLiteral<"definition">;
10222
+ workflowId: z.ZodString;
10223
+ }, z.core.$strict>], "kind">>;
10224
+ requirements: z.ZodOptional<z.ZodObject<{
10225
+ maxRuntimeMs: z.ZodOptional<z.ZodNumber>;
10226
+ persistentStorage: z.ZodOptional<z.ZodBoolean>;
10227
+ customCapabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
10228
+ recoverableAllocation: z.ZodOptional<z.ZodBoolean>;
10229
+ materializationModes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
10230
+ "local-directory": "local-directory";
10231
+ "workspace-snapshot": "workspace-snapshot";
10232
+ }>>>;
10233
+ }, z.core.$strip>>;
10048
10234
  successFinalizerId: z.ZodOptional<z.ZodString>;
10049
- executionHints: z.ZodOptional<z.ZodObject<{
10050
- source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
10051
- kind: z.ZodLiteral<"path">;
10052
- path: z.ZodString;
10053
- }, z.core.$strict>, z.ZodObject<{
10054
- kind: z.ZodLiteral<"source">;
10055
- filename: z.ZodString;
10056
- source: z.ZodString;
10057
- }, z.core.$strict>], "kind">>;
10058
- requirements: z.ZodOptional<z.ZodObject<{
10059
- isolation: z.ZodOptional<z.ZodEnum<{
10060
- local: "local";
10061
- remote: "remote";
10062
- container: "container";
10063
- }>>;
10064
- capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
10065
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
10066
- providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
10067
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
10068
10235
  }, z.core.$strip>>;
10069
10236
  workerManifest: z.ZodDefault<z.ZodObject<{
10070
- packages: z.ZodDefault<z.ZodArray<z.ZodObject<{
10071
- name: z.ZodString;
10072
- importPath: z.ZodString;
10073
- }, z.core.$strip>>>;
10074
- }, z.core.$strip>>;
10237
+ contributionRefs: z.ZodArray<z.ZodObject<{
10238
+ packageName: z.ZodString;
10239
+ version: z.ZodString;
10240
+ entrypoint: z.ZodString;
10241
+ integrity: z.ZodString;
10242
+ }, z.core.$strict>>;
10243
+ }, z.core.$strict>>;
10075
10244
  inputs: z.ZodDefault<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>;
10076
10245
  config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
10077
10246
  scope: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -10093,38 +10262,8 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
10093
10262
  id: z.ZodString;
10094
10263
  }, z.core.$strip>>;
10095
10264
  coordinatorSessionId: z.ZodString;
10096
- executionHints: z.ZodOptional<z.ZodObject<{
10097
- source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
10098
- kind: z.ZodLiteral<"path">;
10099
- path: z.ZodString;
10100
- }, z.core.$strict>, z.ZodObject<{
10101
- kind: z.ZodLiteral<"source">;
10102
- filename: z.ZodString;
10103
- source: z.ZodString;
10104
- }, z.core.$strict>], "kind">>;
10105
- requirements: z.ZodOptional<z.ZodObject<{
10106
- isolation: z.ZodOptional<z.ZodEnum<{
10107
- local: "local";
10108
- remote: "remote";
10109
- container: "container";
10110
- }>>;
10111
- capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
10112
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
10113
- providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
10114
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
10115
10265
  dispatchMetadata: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
10116
10266
  cancelSubject: z.ZodString;
10117
- context: z.ZodObject<{
10118
- repoPath: z.ZodString;
10119
- makaioHome: z.ZodString;
10120
- os: z.ZodEnum<{
10121
- darwin: "darwin";
10122
- linux: "linux";
10123
- win32: "win32";
10124
- }>;
10125
- arch: z.ZodString;
10126
- worktree: z.ZodOptional<z.ZodString>;
10127
- }, z.core.$strip>;
10128
10267
  env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
10129
10268
  createdAt: z.ZodNumber;
10130
10269
  suspensionStrategy: z.ZodDefault<z.ZodEnum<{
@@ -10133,9 +10272,20 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
10133
10272
  "exit-and-resume": "exit-and-resume";
10134
10273
  }>>;
10135
10274
  terminalAuthority: z.ZodOptional<z.ZodEnum<{
10136
- authority: "authority";
10137
10275
  worker: "worker";
10276
+ authority: "authority";
10138
10277
  }>>;
10278
+ materializationSpec: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
10279
+ kind: z.ZodLiteral<"local-directory">;
10280
+ workspaceId: z.ZodString;
10281
+ rootDigest: z.ZodString;
10282
+ sourcePath: z.ZodString;
10283
+ }, z.core.$strict>, z.ZodObject<{
10284
+ kind: z.ZodLiteral<"workspace-snapshot">;
10285
+ snapshotId: z.ZodString;
10286
+ digest: z.ZodString;
10287
+ sourcePath: z.ZodString;
10288
+ }, z.core.$strict>], "kind">>;
10139
10289
  }, z.core.$strip>;
10140
10290
  };
10141
10291
  'execution.started': z.ZodObject<{
@@ -10490,9 +10640,9 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
10490
10640
  pending: "pending";
10491
10641
  completed: "completed";
10492
10642
  cancelled: "cancelled";
10493
- running: "running";
10494
10643
  failed: "failed";
10495
10644
  paused: "paused";
10645
+ running: "running";
10496
10646
  finalizing: "finalizing";
10497
10647
  }>;
10498
10648
  startedAt: z.ZodNumber;
@@ -10537,10 +10687,10 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
10537
10687
  pending: "pending";
10538
10688
  completed: "completed";
10539
10689
  cancelled: "cancelled";
10540
- running: "running";
10541
10690
  failed: "failed";
10542
- skipped: "skipped";
10691
+ running: "running";
10543
10692
  waiting: "waiting";
10693
+ skipped: "skipped";
10544
10694
  }>;
10545
10695
  attempt: z.ZodNumber;
10546
10696
  iteration: z.ZodOptional<z.ZodNumber>;
@@ -10568,9 +10718,9 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
10568
10718
  pending: "pending";
10569
10719
  completed: "completed";
10570
10720
  cancelled: "cancelled";
10571
- running: "running";
10572
10721
  failed: "failed";
10573
10722
  paused: "paused";
10723
+ running: "running";
10574
10724
  finalizing: "finalizing";
10575
10725
  }>>;
10576
10726
  limit: z.ZodOptional<z.ZodNumber>;
@@ -10585,9 +10735,9 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
10585
10735
  pending: "pending";
10586
10736
  completed: "completed";
10587
10737
  cancelled: "cancelled";
10588
- running: "running";
10589
10738
  failed: "failed";
10590
10739
  paused: "paused";
10740
+ running: "running";
10591
10741
  finalizing: "finalizing";
10592
10742
  }>;
10593
10743
  startedAt: z.ZodNumber;
@@ -10717,6 +10867,26 @@ declare function serializeArtifactRef$1(ref: WorkflowArtifactRef): string;
10717
10867
  declare function parseArtifactRef(key: string): WorkflowArtifactRef;
10718
10868
  //#endregion
10719
10869
  //#region core/contracts/src/workflow/run-context.d.ts
10870
+ /**
10871
+ * Durable source descriptor for a workflow execution.
10872
+ *
10873
+ * Bootstrap worker configuration may contain a worker-local path. Durable
10874
+ * path sources are instead workspace-relative and acquire their local
10875
+ * realization only through a materialization spec.
10876
+ */
10877
+ declare const WorkflowRunContextSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
10878
+ kind: z.ZodLiteral<"path">;
10879
+ path: z.ZodString;
10880
+ }, z.core.$strict>, z.ZodObject<{
10881
+ kind: z.ZodLiteral<"source">;
10882
+ filename: z.ZodString;
10883
+ source: z.ZodString;
10884
+ }, z.core.$strict>, z.ZodObject<{
10885
+ kind: z.ZodLiteral<"definition">;
10886
+ workflowId: z.ZodString;
10887
+ }, z.core.$strict>], "kind">;
10888
+ /** Durable source descriptor for a workflow execution. */
10889
+ type WorkflowRunContextSource = z.infer<typeof WorkflowRunContextSourceSchema>;
10720
10890
  /**
10721
10891
  * Persisted, per-execution snapshot of the configuration and context needed to
10722
10892
  * run a workflow.
@@ -10834,33 +11004,37 @@ declare const WorkflowRunContextSchema$1: z.ZodObject<{
10834
11004
  syncedAt: z.ZodOptional<z.ZodString>;
10835
11005
  metadata: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
10836
11006
  }, z.core.$strict>], "kind">>;
11007
+ executableSource: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
11008
+ kind: z.ZodLiteral<"path">;
11009
+ path: z.ZodString;
11010
+ }, z.core.$strict>, z.ZodObject<{
11011
+ kind: z.ZodLiteral<"source">;
11012
+ filename: z.ZodString;
11013
+ source: z.ZodString;
11014
+ }, z.core.$strict>, z.ZodObject<{
11015
+ kind: z.ZodLiteral<"definition">;
11016
+ workflowId: z.ZodString;
11017
+ }, z.core.$strict>], "kind">>;
11018
+ requirements: z.ZodOptional<z.ZodObject<{
11019
+ maxRuntimeMs: z.ZodOptional<z.ZodNumber>;
11020
+ persistentStorage: z.ZodOptional<z.ZodBoolean>;
11021
+ customCapabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
11022
+ recoverableAllocation: z.ZodOptional<z.ZodBoolean>;
11023
+ materializationModes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
11024
+ "local-directory": "local-directory";
11025
+ "workspace-snapshot": "workspace-snapshot";
11026
+ }>>>;
11027
+ }, z.core.$strip>>;
10837
11028
  successFinalizerId: z.ZodOptional<z.ZodString>;
10838
- executionHints: z.ZodOptional<z.ZodObject<{
10839
- source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
10840
- kind: z.ZodLiteral<"path">;
10841
- path: z.ZodString;
10842
- }, z.core.$strict>, z.ZodObject<{
10843
- kind: z.ZodLiteral<"source">;
10844
- filename: z.ZodString;
10845
- source: z.ZodString;
10846
- }, z.core.$strict>], "kind">>;
10847
- requirements: z.ZodOptional<z.ZodObject<{
10848
- isolation: z.ZodOptional<z.ZodEnum<{
10849
- local: "local";
10850
- remote: "remote";
10851
- container: "container";
10852
- }>>;
10853
- capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
10854
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
10855
- providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
10856
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
10857
11029
  }, z.core.$strip>>;
10858
11030
  workerManifest: z.ZodDefault<z.ZodObject<{
10859
- packages: z.ZodDefault<z.ZodArray<z.ZodObject<{
10860
- name: z.ZodString;
10861
- importPath: z.ZodString;
10862
- }, z.core.$strip>>>;
10863
- }, z.core.$strip>>;
11031
+ contributionRefs: z.ZodArray<z.ZodObject<{
11032
+ packageName: z.ZodString;
11033
+ version: z.ZodString;
11034
+ entrypoint: z.ZodString;
11035
+ integrity: z.ZodString;
11036
+ }, z.core.$strict>>;
11037
+ }, z.core.$strict>>;
10864
11038
  inputs: z.ZodDefault<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>;
10865
11039
  config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
10866
11040
  scope: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -10882,38 +11056,8 @@ declare const WorkflowRunContextSchema$1: z.ZodObject<{
10882
11056
  id: z.ZodString;
10883
11057
  }, z.core.$strip>>;
10884
11058
  coordinatorSessionId: z.ZodString;
10885
- executionHints: z.ZodOptional<z.ZodObject<{
10886
- source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
10887
- kind: z.ZodLiteral<"path">;
10888
- path: z.ZodString;
10889
- }, z.core.$strict>, z.ZodObject<{
10890
- kind: z.ZodLiteral<"source">;
10891
- filename: z.ZodString;
10892
- source: z.ZodString;
10893
- }, z.core.$strict>], "kind">>;
10894
- requirements: z.ZodOptional<z.ZodObject<{
10895
- isolation: z.ZodOptional<z.ZodEnum<{
10896
- local: "local";
10897
- remote: "remote";
10898
- container: "container";
10899
- }>>;
10900
- capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
10901
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
10902
- providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
10903
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
10904
11059
  dispatchMetadata: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
10905
11060
  cancelSubject: z.ZodString;
10906
- context: z.ZodObject<{
10907
- repoPath: z.ZodString;
10908
- makaioHome: z.ZodString;
10909
- os: z.ZodEnum<{
10910
- darwin: "darwin";
10911
- linux: "linux";
10912
- win32: "win32";
10913
- }>;
10914
- arch: z.ZodString;
10915
- worktree: z.ZodOptional<z.ZodString>;
10916
- }, z.core.$strip>;
10917
11061
  env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
10918
11062
  createdAt: z.ZodNumber;
10919
11063
  suspensionStrategy: z.ZodDefault<z.ZodEnum<{
@@ -10922,11 +11066,22 @@ declare const WorkflowRunContextSchema$1: z.ZodObject<{
10922
11066
  "exit-and-resume": "exit-and-resume";
10923
11067
  }>>;
10924
11068
  terminalAuthority: z.ZodOptional<z.ZodEnum<{
10925
- authority: "authority";
10926
11069
  worker: "worker";
11070
+ authority: "authority";
10927
11071
  }>>;
11072
+ materializationSpec: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
11073
+ kind: z.ZodLiteral<"local-directory">;
11074
+ workspaceId: z.ZodString;
11075
+ rootDigest: z.ZodString;
11076
+ sourcePath: z.ZodString;
11077
+ }, z.core.$strict>, z.ZodObject<{
11078
+ kind: z.ZodLiteral<"workspace-snapshot">;
11079
+ snapshotId: z.ZodString;
11080
+ digest: z.ZodString;
11081
+ sourcePath: z.ZodString;
11082
+ }, z.core.$strict>], "kind">>;
10928
11083
  }, z.core.$strip>;
10929
- type WorkflowRunContext = z.infer<typeof WorkflowRunContextSchema$1>;
11084
+ type WorkflowRunContext$1 = z.infer<typeof WorkflowRunContextSchema$1>;
10930
11085
  //#endregion
10931
11086
  //#region core/contracts/src/workflow/walk.d.ts
10932
11087
  /** How the current node was reached from its parent. */
@@ -11080,7 +11235,7 @@ type WorkflowWorkerBusAuth = z.infer<typeof WorkflowWorkerBusAuthSchema>;
11080
11235
  * - `source`: load workflow from inline source code with a virtual filename
11081
11236
  * - `definition`: load workflow by its registered definition ID
11082
11237
  */
11083
- declare const WorkflowWorkerSourceSchema$1: z.ZodDiscriminatedUnion<[z.ZodObject<{
11238
+ declare const WorkflowWorkerSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
11084
11239
  kind: z.ZodLiteral<"path">;
11085
11240
  path: z.ZodString;
11086
11241
  }, z.core.$strict>, z.ZodObject<{
@@ -11091,7 +11246,7 @@ declare const WorkflowWorkerSourceSchema$1: z.ZodDiscriminatedUnion<[z.ZodObject
11091
11246
  kind: z.ZodLiteral<"definition">;
11092
11247
  workflowId: z.ZodString;
11093
11248
  }, z.core.$strict>], "kind">;
11094
- type WorkflowWorkerSource$1 = z.infer<typeof WorkflowWorkerSourceSchema$1>;
11249
+ type WorkflowWorkerSource$1 = z.infer<typeof WorkflowWorkerSourceSchema>;
11095
11250
  /**
11096
11251
  * Full configuration passed to a workflow worker process at startup.
11097
11252
  *
@@ -11202,26 +11357,28 @@ declare const WorkflowWorkerConfigSchema$1: z.ZodObject<{
11202
11357
  syncedAt: z.ZodOptional<z.ZodString>;
11203
11358
  metadata: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
11204
11359
  }, z.core.$strict>], "kind">>;
11360
+ executableSource: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
11361
+ kind: z.ZodLiteral<"path">;
11362
+ path: z.ZodString;
11363
+ }, z.core.$strict>, z.ZodObject<{
11364
+ kind: z.ZodLiteral<"source">;
11365
+ filename: z.ZodString;
11366
+ source: z.ZodString;
11367
+ }, z.core.$strict>, z.ZodObject<{
11368
+ kind: z.ZodLiteral<"definition">;
11369
+ workflowId: z.ZodString;
11370
+ }, z.core.$strict>], "kind">>;
11371
+ requirements: z.ZodOptional<z.ZodObject<{
11372
+ maxRuntimeMs: z.ZodOptional<z.ZodNumber>;
11373
+ persistentStorage: z.ZodOptional<z.ZodBoolean>;
11374
+ customCapabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
11375
+ recoverableAllocation: z.ZodOptional<z.ZodBoolean>;
11376
+ materializationModes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
11377
+ "local-directory": "local-directory";
11378
+ "workspace-snapshot": "workspace-snapshot";
11379
+ }>>>;
11380
+ }, z.core.$strip>>;
11205
11381
  successFinalizerId: z.ZodOptional<z.ZodString>;
11206
- executionHints: z.ZodOptional<z.ZodObject<{
11207
- source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
11208
- kind: z.ZodLiteral<"path">;
11209
- path: z.ZodString;
11210
- }, z.core.$strict>, z.ZodObject<{
11211
- kind: z.ZodLiteral<"source">;
11212
- filename: z.ZodString;
11213
- source: z.ZodString;
11214
- }, z.core.$strict>], "kind">>;
11215
- requirements: z.ZodOptional<z.ZodObject<{
11216
- isolation: z.ZodOptional<z.ZodEnum<{
11217
- local: "local";
11218
- remote: "remote";
11219
- container: "container";
11220
- }>>;
11221
- capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
11222
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
11223
- providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
11224
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
11225
11382
  }, z.core.$strip>>;
11226
11383
  executionId: z.ZodString;
11227
11384
  workflowId: z.ZodString;
@@ -11252,38 +11409,8 @@ declare const WorkflowWorkerConfigSchema$1: z.ZodObject<{
11252
11409
  kind: z.ZodLiteral<"hmac">;
11253
11410
  secret: z.ZodString;
11254
11411
  }, z.core.$strict>], "kind">>;
11255
- context: z.ZodObject<{
11256
- repoPath: z.ZodString;
11257
- makaioHome: z.ZodString;
11258
- os: z.ZodEnum<{
11259
- darwin: "darwin";
11260
- linux: "linux";
11261
- win32: "win32";
11262
- }>;
11263
- arch: z.ZodString;
11264
- worktree: z.ZodOptional<z.ZodString>;
11265
- }, z.core.$strip>;
11266
11412
  env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
11267
11413
  coordinatorSessionId: z.ZodString;
11268
- executionHints: z.ZodOptional<z.ZodObject<{
11269
- source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
11270
- kind: z.ZodLiteral<"path">;
11271
- path: z.ZodString;
11272
- }, z.core.$strict>, z.ZodObject<{
11273
- kind: z.ZodLiteral<"source">;
11274
- filename: z.ZodString;
11275
- source: z.ZodString;
11276
- }, z.core.$strict>], "kind">>;
11277
- requirements: z.ZodOptional<z.ZodObject<{
11278
- isolation: z.ZodOptional<z.ZodEnum<{
11279
- local: "local";
11280
- remote: "remote";
11281
- container: "container";
11282
- }>>;
11283
- capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
11284
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
11285
- providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
11286
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
11287
11414
  cancelSubject: z.ZodString;
11288
11415
  suspensionStrategy: z.ZodDefault<z.ZodEnum<{
11289
11416
  "wait-in-process": "wait-in-process";
@@ -11291,11 +11418,49 @@ declare const WorkflowWorkerConfigSchema$1: z.ZodObject<{
11291
11418
  "exit-and-resume": "exit-and-resume";
11292
11419
  }>>;
11293
11420
  terminalAuthority: z.ZodOptional<z.ZodEnum<{
11294
- authority: "authority";
11295
11421
  worker: "worker";
11422
+ authority: "authority";
11296
11423
  }>>;
11424
+ materializationSpec: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
11425
+ kind: z.ZodLiteral<"local-directory">;
11426
+ workspaceId: z.ZodString;
11427
+ rootDigest: z.ZodString;
11428
+ sourcePath: z.ZodString;
11429
+ }, z.core.$strict>, z.ZodObject<{
11430
+ kind: z.ZodLiteral<"workspace-snapshot">;
11431
+ snapshotId: z.ZodString;
11432
+ digest: z.ZodString;
11433
+ sourcePath: z.ZodString;
11434
+ }, z.core.$strict>], "kind">>;
11297
11435
  }, z.core.$strip>;
11298
11436
  type WorkflowWorkerConfig$1 = z.infer<typeof WorkflowWorkerConfigSchema$1>;
11437
+ /**
11438
+ * Ephemeral realization context produced by the materializer on the worker.
11439
+ *
11440
+ * Contains worker-local absolute paths and platform information. This type
11441
+ * is NEVER persisted as part of {@link WorkflowRunContext} or any durable
11442
+ * record. It exists only for the lifetime of a single worker process and
11443
+ * is constructed from the portable {@link WorkerMaterializationSpec} after
11444
+ * the materializer resolves the workspace on the local filesystem.
11445
+ *
11446
+ * - `workspaceRoot`: absolute path to the realized workspace root on this worker.
11447
+ * - `sourcePath`: absolute path to the workflow source file within the workspace.
11448
+ * - `contributionEntrypoints`: absolute paths to resolved contribution entrypoints.
11449
+ * - `platform`: worker operating system (`darwin`, `linux`, `win32`).
11450
+ * - `arch`: worker CPU architecture (e.g. `arm64`, `x64`).
11451
+ */
11452
+ interface WorkerRuntimeContext$1 {
11453
+ /** Absolute path to the realized workspace root on this worker. */
11454
+ readonly workspaceRoot: string;
11455
+ /** Absolute path to the workflow source file within the workspace. */
11456
+ readonly sourcePath: string;
11457
+ /** Absolute paths to resolved contribution entrypoints in load order. */
11458
+ readonly contributionEntrypoints: readonly string[];
11459
+ /** Worker operating system. */
11460
+ readonly platform: 'darwin' | 'linux' | 'win32';
11461
+ /** Worker CPU architecture (e.g. `'arm64'`, `'x64'`). */
11462
+ readonly arch: string;
11463
+ }
11299
11464
  /**
11300
11465
  * Shared identity fields present on every workflow run result variant.
11301
11466
  */
@@ -11419,7 +11584,7 @@ type WorkflowRunResult$1 = WorkflowCompletedRunResult | WorkflowFailedRunResult
11419
11584
  * When `status` is `'paused'`, both `pausedAtGateId` and `pausedAtFrameId`
11420
11585
  * are required to uniquely identify the suspended gate frame.
11421
11586
  */
11422
- declare const WorkflowRunResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
11587
+ declare const WorkflowRunResultSchema$1: z.ZodDiscriminatedUnion<[z.ZodObject<{
11423
11588
  executionId: z.ZodString;
11424
11589
  workflowId: z.ZodString;
11425
11590
  status: z.ZodLiteral<"completed">;
@@ -11532,25 +11697,22 @@ declare const WorkflowRunResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
11532
11697
  *
11533
11698
  * Fully serializable so it can cross worker-thread, process, container, or
11534
11699
  * remote node boundaries without carrying runtime objects.
11535
- */
11536
- declare const WorkerContributionPackageRefSchema: z.ZodObject<{
11537
- name: z.ZodString;
11538
- importPath: z.ZodString;
11539
- }, z.core.$strip>;
11540
- type WorkerContributionPackageRef = z.infer<typeof WorkerContributionPackageRefSchema>;
11700
+ *
11541
11701
  /**
11542
- * Serializable manifest declaring worker-local extension packages.
11702
+ * Serializable manifest declaring the exact worker-local extension packages.
11543
11703
  *
11544
- * The manifest contains concrete import paths, not project-level desired
11545
- * package specs. Product pool dispatch resolves desired project manifests into
11546
- * this worker manifest before provisioning a WorkerNode.
11704
+ * Product pool dispatch resolves project-level package pins into this exact
11705
+ * identity before provisioning. Materializers verify every ref, and workers
11706
+ * load only the verified worker-local entrypoints returned by materialization.
11547
11707
  */
11548
11708
  declare const WorkerContributionManifestSchema: z.ZodObject<{
11549
- packages: z.ZodDefault<z.ZodArray<z.ZodObject<{
11550
- name: z.ZodString;
11551
- importPath: z.ZodString;
11552
- }, z.core.$strip>>>;
11553
- }, z.core.$strip>;
11709
+ contributionRefs: z.ZodArray<z.ZodObject<{
11710
+ packageName: z.ZodString;
11711
+ version: z.ZodString;
11712
+ entrypoint: z.ZodString;
11713
+ integrity: z.ZodString;
11714
+ }, z.core.$strict>>;
11715
+ }, z.core.$strict>;
11554
11716
  type WorkerContributionManifest$1 = z.infer<typeof WorkerContributionManifestSchema>;
11555
11717
  /**
11556
11718
  * Optional controls for one workflow runner invocation.
@@ -11563,6 +11725,25 @@ interface WorkflowRunnerRunOptions$1 {
11563
11725
  */
11564
11726
  readonly dispatchMetadata?: z.infer<typeof JsonObjectContractSchema>;
11565
11727
  }
11728
+ /**
11729
+ * Envelope returned by {@link IWorkflowRunner.run} that tells the caller
11730
+ * whether the terminal result has already been durably committed by an
11731
+ * Authority or still needs host-side finalization.
11732
+ *
11733
+ * - `uncommitted`: the runner produced the result but the durable lifecycle
11734
+ * transition has not been performed. The host executor must finalize or
11735
+ * park the execution (in-process and Piscina runners).
11736
+ * - `authority-committed`: the Authority outcome RPC has converged canonical
11737
+ * state. The host executor verifies durable state but must not invoke
11738
+ * the fallback finalizer (WorkerNode dispatch runners).
11739
+ */
11740
+ type WorkflowRunnerCompletion$1 = {
11741
+ readonly state: 'uncommitted';
11742
+ readonly result: WorkflowRunResult$1;
11743
+ } | {
11744
+ readonly state: 'authority-committed';
11745
+ readonly result: WorkflowRunResult$1;
11746
+ };
11566
11747
  /**
11567
11748
  * Contract for dispatching a full workflow execution to an isolated environment.
11568
11749
  *
@@ -11582,9 +11763,9 @@ interface IWorkflowRunner$1 {
11582
11763
  * @param signal - AbortSignal for cooperative cancellation.
11583
11764
  * @param manifest - Optional per-call contribution manifest. Overrides the runner's default.
11584
11765
  * @param options - Optional per-run controls for dispatch-capable runners.
11585
- * @returns The execution result with status-specific terminal details.
11766
+ * @returns Completion envelope indicating whether the result needs host finalization.
11586
11767
  */
11587
- run(config: WorkflowWorkerConfig$1, signal: AbortSignal, manifest?: WorkerContributionManifest$1, options?: WorkflowRunnerRunOptions$1): Promise<WorkflowRunResult$1>;
11768
+ run(config: WorkflowWorkerConfig$1, signal: AbortSignal, manifest?: WorkerContributionManifest$1, options?: WorkflowRunnerRunOptions$1): Promise<WorkflowRunnerCompletion$1>;
11588
11769
  /**
11589
11770
  * Release underlying resources (thread pool, processes, connections).
11590
11771
  *
@@ -11735,9 +11916,9 @@ declare const WorkLogExecutionSummarySchema: z.ZodObject<{
11735
11916
  pending: "pending";
11736
11917
  completed: "completed";
11737
11918
  cancelled: "cancelled";
11738
- running: "running";
11739
11919
  failed: "failed";
11740
11920
  paused: "paused";
11921
+ running: "running";
11741
11922
  finalizing: "finalizing";
11742
11923
  }>;
11743
11924
  startedAt: z.ZodNumber;
@@ -11778,10 +11959,10 @@ declare const WorkLogFrameEntrySchema$1: z.ZodObject<{
11778
11959
  pending: "pending";
11779
11960
  completed: "completed";
11780
11961
  cancelled: "cancelled";
11781
- running: "running";
11782
11962
  failed: "failed";
11783
- skipped: "skipped";
11963
+ running: "running";
11784
11964
  waiting: "waiting";
11965
+ skipped: "skipped";
11785
11966
  }>;
11786
11967
  attempt: z.ZodNumber;
11787
11968
  iteration: z.ZodOptional<z.ZodNumber>;
@@ -11834,8 +12015,8 @@ declare const WorkLogGateEventSchema: z.ZodObject<{
11834
12015
  status: z.ZodEnum<{
11835
12016
  cancelled: "cancelled";
11836
12017
  rejected: "rejected";
11837
- resumed: "resumed";
11838
12018
  waiting: "waiting";
12019
+ resumed: "resumed";
11839
12020
  "timed-out": "timed-out";
11840
12021
  }>;
11841
12022
  prompt: z.ZodOptional<z.ZodString>;
@@ -12305,12 +12486,12 @@ type ContextMode = z.infer<typeof ContextModeSchema$1>;
12305
12486
  declare const SubagentStatusSchema: z.ZodEnum<{
12306
12487
  completed: "completed";
12307
12488
  cancelled: "cancelled";
12489
+ failed: "failed";
12308
12490
  spawning: "spawning";
12309
12491
  running: "running";
12310
12492
  completing: "completing";
12311
12493
  waiting_input: "waiting_input";
12312
12494
  hung: "hung";
12313
- failed: "failed";
12314
12495
  }>;
12315
12496
  type SubagentStatus$1 = z.infer<typeof SubagentStatusSchema>;
12316
12497
  /**
@@ -12636,8 +12817,8 @@ declare const AwaitSubagentResponseSchema: z.ZodObject<{
12636
12817
  status: z.ZodEnum<{
12637
12818
  completed: "completed";
12638
12819
  cancelled: "cancelled";
12639
- waiting_input: "waiting_input";
12640
12820
  failed: "failed";
12821
+ waiting_input: "waiting_input";
12641
12822
  timeout: "timeout";
12642
12823
  }>;
12643
12824
  result: z.ZodOptional<z.ZodString>;
@@ -12759,12 +12940,12 @@ declare const ListSubagentsBySessionResponseSchema: z.ZodObject<{
12759
12940
  status: z.ZodEnum<{
12760
12941
  completed: "completed";
12761
12942
  cancelled: "cancelled";
12943
+ failed: "failed";
12762
12944
  spawning: "spawning";
12763
12945
  running: "running";
12764
12946
  completing: "completing";
12765
12947
  waiting_input: "waiting_input";
12766
12948
  hung: "hung";
12767
- failed: "failed";
12768
12949
  }>;
12769
12950
  }, z.core.$strip>>;
12770
12951
  }, z.core.$strip>;
@@ -13405,49 +13586,4 @@ declare function defineWorkflowBundle(config: {
13405
13586
  /** Non-empty list of built workflows to include in the bundle. */readonly workflows: readonly BuiltWorkflow[];
13406
13587
  }): WorkflowBundle;
13407
13588
  //#endregion
13408
- //#region core/contracts/src/workflow/execution-hints.d.ts
13409
- /**
13410
- * Executable source override for module-backed stored definitions.
13411
- *
13412
- * Generated workflow definitions can carry only trigger/provenance metadata
13413
- * while their runtime remains in a module. This hint lets the executor dispatch
13414
- * those definitions through a concrete file or inline source without knowing
13415
- * which extension produced them.
13416
- */
13417
- declare const ExecutionSourceHintSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
13418
- kind: z.ZodLiteral<"path">;
13419
- path: z.ZodString;
13420
- }, z.core.$strict>, z.ZodObject<{
13421
- kind: z.ZodLiteral<"source">;
13422
- filename: z.ZodString;
13423
- source: z.ZodString;
13424
- }, z.core.$strict>], "kind">;
13425
- /**
13426
- * Advisory hints for worker provisioning passed to the workflow executor.
13427
- *
13428
- * Most values remain opaque provider-specific scheduling, pool, isolation, or
13429
- * capability hints. `source` is the one generic executable hint: when present,
13430
- * the executor uses it as the worker source for definition-backed starts.
13431
- */
13432
- declare const ExecutionHintsSchema$1: z.ZodObject<{
13433
- source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
13434
- kind: z.ZodLiteral<"path">;
13435
- path: z.ZodString;
13436
- }, z.core.$strict>, z.ZodObject<{
13437
- kind: z.ZodLiteral<"source">;
13438
- filename: z.ZodString;
13439
- source: z.ZodString;
13440
- }, z.core.$strict>], "kind">>;
13441
- requirements: z.ZodOptional<z.ZodObject<{
13442
- isolation: z.ZodOptional<z.ZodEnum<{
13443
- local: "local";
13444
- remote: "remote";
13445
- container: "container";
13446
- }>>;
13447
- capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
13448
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>>;
13449
- providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
13450
- }, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
13451
- type ExecutionHints = z.infer<typeof ExecutionHintsSchema$1>;
13452
- //#endregion
13453
- export { SendToSubagentResponse as $, WorkflowGateNode as $i, JsonPatchOperation$1 as $n, WorkflowFinalizationIntent as $r, RegisterExternalExecutionRequestSchema as $t, LoopGateHandler$1 as A, WorkflowStateDefinitionSchema as Aa, WorkflowArtifactBindingSchema as Ai, parseArtifactRef as An, WorkflowCancelPayload as Ar, WorkflowTriggerDef as At, DEFAULT_CONSTRAINTS$1 as B, WorkflowDelegateAgentNodeSchema as Bi, ArtifactQuerySourceSchema as Bn, WorkflowTriggerTypeRecord as Br, WorkLogGateEventSchema as Bt, NodeOptions as C, WorkflowResolvedRole as Ca, ExtensionWorkflowTrigger$1 as Ci, WalkRelationship as Cn, StepRunnerPlatformDefaults$1 as Cr, CronTriggerPayload as Ct, WorkflowStateAuthoringDefinition as D, WorkflowSourceLocation as Da, LoopGateOutcome as Di, WorkflowRunContextSchema$1 as Dn, TokenUsage as Dr, ManualWorkflowTrigger as Dt, WorkflowBuilder as E, WorkflowSequenceNodeSchema as Ea, GateInstanceListQuerySchema$1 as Ei, WorkflowRunContext as En, StepTelemetrySchema as Er, ExtractTriggerPayload as Et, CompleteTaskResponse as F, WorkflowDefinition$1 as Fi, WorkflowSchemas as Fn, WorkflowStepType as Fr, WorkLogExecutionSummary as Ft, ListSubagentsBySessionResponse as G, WorkflowExecution$1 as Gi, ContextBundle as Gn, WorkflowDelegateResultFinalizationResponse as Gr, CompleteExternalExecutionRequest as Gt, KillSubagentRequest as H, WorkflowDelegateRoleNodeSchema as Hi, BusEventPublishTargetSchema as Hn, WorkflowDelegateEconomicsSchema as Hr, WorkLogStatsSchema as Ht, CompletionMode$1 as I, WorkflowDefinitionProvenance as Ii, WorkflowSubjects$1 as In, WorkflowStepTypeSchema$1 as Ir, WorkLogExecutionSummarySchema as It, ReportProgressRequest as J, WorkflowExecutionScopeSchema as Ji, ContextPublishTargetSchema as Jn, WorkflowDelegateToolObservation as Jr, ExternalExecutionFrameCompletion as Jt, PendingRequest$1 as K, WorkflowExecutionSchema$1 as Ki, ContextBundleSchema as Kn, WorkflowDelegateResultFinalizationResponseSchema as Kr, CompleteExternalExecutionRequestSchema as Kt, CompletionModeSchema as L, WorkflowDefinitionProvenanceSchema as Li, ArtifactPublishTarget as Ln, createStepCancelSubject$1 as Lr, WorkLogFrameEntry as Lt, AwaitSubagentRequest as M, WorkflowStationNodeSchema as Ma, WorkflowArtifactWriteDeclarationSchema as Mi, WorkflowNamespace$1 as Mn, WorkflowCancelSubject as Mr, WorkLogArtifactWriteSchema as Mt, AwaitSubagentResponse$1 as N, WorkflowTrigger as Na, WorkflowCondition as Ni, WorkflowProgressUpdate as Nn, WorkflowRunnerStepType as Nr, WorkLogDynamicNodeMaterialization as Nt, WorkflowZodSchemas$1 as O, WorkflowSourceLocationSchema as Oa, LoopGateOutcomeSchema as Oi, WorkflowArtifactRef as On, TokenUsageSchema as Or, WebhookTriggerPayload as Ot, CompleteTaskRequest as P, WorkflowTriggerSchema as Pa, WorkflowConditionSchema as Pi, WorkflowProgressUpdateSchema as Pn, WorkflowRunnerStepTypeSchema as Pr, WorkLogDynamicNodeMaterializationSchema as Pt, SendToSubagentRequest as Q, WorkflowGateInstanceSchema$1 as Qi, ResolvedContextEntrySchema as Qn, WorkflowFinalizationDeliveryResultSchema as Qr, RegisterExternalExecutionRequest as Qt, ContextMode as R, WorkflowDefinitionSchema$1 as Ri, ArtifactPublishTargetSchema as Rn, createWorkflowCancelSubject$1 as Rr, WorkLogFrameEntrySchema$1 as Rt, LoopOptions as S, WorkflowResolvedAgentSchema as Sa, ExecutionsByArtifactRefsQuerySchema$1 as Si, WalkContext as Sn, StepRunnerBusAuthSchema as Sr, BusEventWorkflowTrigger as St, ParallelOptions as T, WorkflowSequenceNode as Ta, GateInstanceListQuery as Ti, walkWorkflowDefinition$1 as Tn, StepTelemetry as Tr, ExtensionWorkflowTrigger as Tt, KillSubagentResponse as U, WorkflowDynamicRegion as Ui, BusRequestSource as Un, WorkflowDelegateResultFinalizationRequest as Ur, WorkLogUsageSummary as Ut, ExecuteSubagentResponse as V, WorkflowDelegateRoleNode as Vi, BusEventPublishTarget as Vn, WorkflowDelegateEconomics as Vr, WorkLogStats as Vt, ListSubagentsBySessionRequest as W, WorkflowDynamicRegionSchema as Wi, BusRequestSourceSchema as Wn, WorkflowDelegateResultFinalizationRequestSchema as Wr, WorkLogUsageSummarySchema as Wt, RequestInputRpcRequest as X, WorkflowFrameStateSchema$1 as Xi, ContextSourceSchema as Xn, WorkflowFinalizationClaim as Xr, ExternalExecutionFrameStart as Xt, ReportProgressResponse as Y, WorkflowFrameState$1 as Yi, ContextSource as Yn, WorkflowDelegateToolObservationSchema as Yr, ExternalExecutionFrameCompletionSchema as Yt, RequestInputRpcResponse as Z, WorkflowGateInstance as Zi, ResolvedContextEntry as Zn, WorkflowFinalizationClaimSchema$1 as Zr, ExternalExecutionFrameStartSchema as Zt, BuiltWorkflow as _, WorkflowParallelMode as _a, ExecutionListQuery as _i, ProjectedNodeRole as _n, StepRunConfig as _r, StationStepContext as _t, defineWorkflowBundle as a, WorkflowIterateNode as aa, createWorkflowDelegateResultFinalizerNamespace$1 as ai, WorkflowRunResult$1 as an, ExecutionLinkListQuerySchema$1 as ar, SubagentConstraints$1 as at, IterateOptions as b, WorkflowParallelNodeSchema as ba, ExecutionStatusSchema$1 as bi, WorkflowDefinitionPathSegment as bn, StepRunResultSchema as br, WorkflowContextBase as bt, delegateToRole as c, WorkflowListQuerySchema$1 as ca, BusEventTriggerSchema as ci, WorkflowWorkerBusAuth as cn, ExecutionLinkTypeSchema as cr, SubagentStatusSchema as ct, iterateChain as d, WorkflowNode as da, EXECUTIONS_BY_ARTIFACT_REFS_MAX_REFS as di, WorkflowWorkerConfigSchema$1 as dn, SpanStatus as dr, ArtifactPatch as dt, WorkflowGateNodeSchema as ea, WorkflowFinalizationIntentSchema as ei, IWorkflowRunner$1 as en, JsonPatchOperationSchema$1 as er, SpawnSubagentRpcRequest as et, loop as f, WorkflowNodeBase as fa, EXECUTION_LIST_DEFAULT_LIMIT$1 as fi, WorkflowWorkerSource$1 as fn, SpanStatusSchema as fr, ArtifactUpdateOperation as ft, ArtifactBindingOptions as g, WorkflowNodeTypeSchema as ga, ExecutionListCursorSchema as gi, ProjectedNode as gn, StepCancelSubject as gr, StationHandler$1 as gt, AgentConfig as h, WorkflowNodeType as ha, ExecutionListCursor as hi, ProjectedEdgeKind as hn, StepCancelPayloadSchema as hr, PreviousStepOutput as ht, WorkflowBundle as i, WorkflowIterateChainNodeSchema as ia, WorkflowTerminalStatusSchema as ii, WorkerContributionPackageRefSchema as in, ExecutionLinkListQuery as ir, SubagentConfigSchema$1 as it, validateNoNestedLoops as j, WorkflowStationNode as ja, WorkflowArtifactWriteDeclaration as ji, serializeArtifactRef$1 as jn, WorkflowCancelPayloadSchema as jr, WorkLogArtifactWrite as jt, LoopGateContext as k, WorkflowStateDefinition as ka, WorkflowArtifactBinding as ki, WorkflowArtifactRefSchema as kn, WORKFLOW_CANCELLED_REASON$1 as kr, WebhookWorkflowTrigger as kt, gate as l, WorkflowLoopNode as la, EXECUTIONS_BY_ARTIFACT_REFS_DEFAULT_LIMIT_PER_REF as li, WorkflowWorkerBusAuthSchema as ln, SpanRecord as lr, UsageStats$1 as lt, zodSchemaToJsonRecord$1 as m, WorkflowNodeSchema as ma, EXECUTION_LIST_MIN_LIMIT$1 as mi, ProjectedEdge as mn, StepCancelPayload as mr, IterateHandler as mt, ExecutionHintsSchema$1 as n, WorkflowGateStatusSchema as na, WorkflowFinalizerIdSchema$1 as ni, WorkerContributionManifestSchema as nn, WorkflowErrorCode$1 as nr, SpawnSubagentRpcResponse as nt, defineWorkflow as o, WorkflowIterateNodeSchema as oa, createWorkflowFinalizerNamespace$1 as oi, WorkflowRunResultSchema as on, ExecutionLinkSchema$1 as or, SubagentExecutionFailed as ot, station as p, WorkflowNodeBaseSchema as pa, EXECUTION_LIST_MAX_LIMIT$1 as pi, WorkflowWorkerSourceSchema$1 as pn, IStepRunner as pr, ArtifactUpdater as pt, PendingRequestSchema as q, WorkflowExecutionScope as qi, ContextPublishTarget as qn, WorkflowDelegateResultFinalizerIdSchema as qr, EXTERNAL_EXECUTION_ID_PREFIX$1 as qt, ExecutionSourceHintSchema as r, WorkflowIterateChainNode as ra, WorkflowTerminalStatus as ri, WorkerContributionPackageRef as rn, ExecutionLink as rr, SubagentConfig$1 as rt, delegateToAgent as s, WorkflowListQuery as sa, BusEventTrigger as si, WorkflowRunnerRunOptions$1 as sn, ExecutionLinkType as sr, SubagentStatus$1 as st, ExecutionHints as t, WorkflowGateStatus as ta, WorkflowFinalizerId as ti, WorkerContributionManifest$1 as tn, WorkflowError$1 as tr, SpawnSubagentRpcRequestSchema$1 as tt, iterate as u, WorkflowLoopNodeSchema as ua, EXECUTIONS_BY_ARTIFACT_REFS_MAX_LIMIT_PER_REF as ui, WorkflowWorkerConfig$1 as un, SpanRecordSchema$1 as ur, ArtifactContext as ut, DefineWorkflowOptions as v, WorkflowParallelModeSchema as va, ExecutionListQuerySchema$1 as vi, ProjectedWorkflowGraph as vn, StepRunConfigSchema as vr, StepContext as vt, ParallelMode as w, WorkflowResolvedRoleSchema as wa, ExtensionWorkflowTriggerSchema as wi, WorkflowNodeVisitor as wn, StepRunnerPlatformDefaultsSchema as wr, CronWorkflowTrigger as wt, LoopGateRegistration as x, WorkflowResolvedAgent as xa, ExecutionsByArtifactRefsQuery as xi, projectWorkflowGraph as xn, StepRunnerBusAuth$1 as xr, WorkflowStateContext as xt, GateOptions as y, WorkflowParallelNode as ya, ExecutionStatus as yi, WorkflowDefinitionPath as yn, StepRunResult as yr, WorkflowContext as yt, ContextModeSchema$1 as z, WorkflowDelegateAgentNode as zi, ArtifactQuerySource as zn, IWorkflowTriggerTypeRegistry$1 as zr, WorkLogGateEvent as zt };
13589
+ export { SpawnSubagentRpcResponse as $, WorkflowGateNode as $i, WorkflowError$1 as $n, WorkflowFinalizationIntent as $r, WorkerContributionManifestSchema as $t, AwaitSubagentResponse$1 as A, WorkflowStateDefinitionSchema as Aa, WorkflowArtifactBindingSchema as Ai, WorkflowNamespace$1 as An, WorkflowCancelSubject as Ar, WorkLogDynamicNodeMaterialization as At, KillSubagentResponse as B, WorkflowDelegateAgentNodeSchema as Bi, BusEventPublishTargetSchema as Bn, WorkflowDelegateEconomicsSchema as Br, WorkLogUsageSummary as Bt, WorkflowBuilder as C, WorkflowResolvedRole as Ca, ExtensionWorkflowTrigger$1 as Ci, WorkflowRunContext$1 as Cn, StepTelemetry as Cr, ExtractTriggerPayload as Ct, LoopGateHandler$1 as D, WorkflowSourceLocation as Da, LoopGateOutcome as Di, WorkflowArtifactRefSchema as Dn, WORKFLOW_CANCELLED_REASON$1 as Dr, WorkflowTriggerDef as Dt, LoopGateContext as E, WorkflowSequenceNodeSchema as Ea, GateInstanceListQuerySchema$1 as Ei, WorkflowArtifactRef as En, TokenUsageSchema as Er, WebhookWorkflowTrigger as Et, ContextMode as F, WorkflowDefinition$1 as Fi, ArtifactPublishTarget as Fn, createStepCancelSubject$1 as Fr, WorkLogFrameEntrySchema$1 as Ft, ReportProgressRequest as G, WorkflowExecution$1 as Gi, ContextPublishTarget as Gn, WorkflowDelegateResultFinalizationResponse as Gr, ExternalExecutionFrameCompletion as Gt, ListSubagentsBySessionResponse as H, WorkflowDelegateRoleNodeSchema as Hi, BusRequestSourceSchema as Hn, WorkflowDelegateResultFinalizationGatewayRequestSchema as Hr, CompleteExternalExecutionRequest as Ht, ContextModeSchema$1 as I, WorkflowDefinitionProvenance as Ii, ArtifactPublishTargetSchema as In, createWorkflowCancelSubject$1 as Ir, WorkLogGateEvent as It, RequestInputRpcResponse as J, WorkflowExecutionScopeSchema as Ji, ContextSourceSchema as Jn, WorkflowDelegateToolObservation as Jr, ExternalExecutionFrameStartSchema as Jt, ReportProgressResponse as K, WorkflowExecutionSchema$1 as Ki, ContextPublishTargetSchema as Kn, WorkflowDelegateResultFinalizationResponseSchema as Kr, ExternalExecutionFrameCompletionSchema as Kt, DEFAULT_CONSTRAINTS$1 as L, WorkflowDefinitionProvenanceSchema as Li, ArtifactQuerySource as Ln, IWorkflowTriggerTypeRegistry$1 as Lr, WorkLogGateEventSchema as Lt, CompleteTaskResponse as M, WorkflowStationNodeSchema as Ma, WorkflowArtifactWriteDeclarationSchema as Mi, WorkflowProgressUpdateSchema as Mn, WorkflowRunnerStepTypeSchema as Mr, WorkLogExecutionSummary as Mt, CompletionMode$1 as N, WorkflowTrigger as Na, WorkflowCondition as Ni, WorkflowSchemas as Nn, WorkflowStepType as Nr, WorkLogExecutionSummarySchema as Nt, validateNoNestedLoops as O, WorkflowSourceLocationSchema as Oa, LoopGateOutcomeSchema as Oi, parseArtifactRef as On, WorkflowCancelPayload as Or, WorkLogArtifactWrite as Ot, CompletionModeSchema as P, WorkflowTriggerSchema as Pa, WorkflowConditionSchema as Pi, WorkflowSubjects$1 as Pn, WorkflowStepTypeSchema$1 as Pr, WorkLogFrameEntry as Pt, SpawnSubagentRpcRequestSchema$1 as Q, WorkflowGateInstanceSchema$1 as Qi, JsonPatchOperationSchema$1 as Qn, WorkflowFinalizationDeliveryResultSchema as Qr, WorkerContributionManifest$1 as Qt, ExecuteSubagentResponse as R, WorkflowDefinitionSchema$1 as Ri, ArtifactQuerySourceSchema as Rn, WorkflowTriggerTypeRecord as Rr, WorkLogStats as Rt, ParallelOptions as S, WorkflowResolvedAgentSchema as Sa, ExecutionsByArtifactRefsQuerySchema$1 as Si, walkWorkflowDefinition$1 as Sn, StepRunnerPlatformDefaultsSchema as Sr, ExtensionWorkflowTrigger as St, WorkflowZodSchemas$1 as T, WorkflowSequenceNode as Ta, GateInstanceListQuery as Ti, WorkflowRunContextSource as Tn, TokenUsage as Tr, WebhookTriggerPayload as Tt, PendingRequest$1 as U, WorkflowDynamicRegion as Ui, ContextBundle as Un, WorkflowDelegateResultFinalizationRequest as Ur, CompleteExternalExecutionRequestSchema as Ut, ListSubagentsBySessionRequest as V, WorkflowDelegateRoleNode as Vi, BusRequestSource as Vn, WorkflowDelegateResultFinalizationGatewayRequest as Vr, WorkLogUsageSummarySchema as Vt, PendingRequestSchema as W, WorkflowDynamicRegionSchema as Wi, ContextBundleSchema as Wn, WorkflowDelegateResultFinalizationRequestSchema as Wr, EXTERNAL_EXECUTION_ID_PREFIX$1 as Wt, SendToSubagentResponse as X, WorkflowFrameStateSchema$1 as Xi, ResolvedContextEntrySchema as Xn, WorkflowFinalizationClaim as Xr, RegisterExternalExecutionRequestSchema as Xt, SendToSubagentRequest as Y, WorkflowFrameState$1 as Yi, ResolvedContextEntry as Yn, WorkflowDelegateToolObservationSchema as Yr, RegisterExternalExecutionRequest as Yt, SpawnSubagentRpcRequest as Z, WorkflowGateInstance as Zi, JsonPatchOperation$1 as Zn, WorkflowFinalizationClaimSchema$1 as Zr, IWorkflowRunner$1 as Zt, IterateOptions as _, WorkflowParallelMode as _a, ExecutionListQuery as _i, WorkflowDefinitionPathSegment as _n, StepRunResult as _r, WorkflowContextBase as _t, delegateToRole as a, WorkflowIterateNode as aa, createWorkflowDelegateResultFinalizerNamespace$1 as ai, WorkflowWorkerBusAuth as an, ExecutionLinkType as ar, SubagentStatusSchema as at, NodeOptions as b, WorkflowParallelNodeSchema as ba, ExecutionStatusSchema$1 as bi, WalkRelationship as bn, StepRunnerBusAuthSchema as br, CronTriggerPayload as bt, iterateChain as c, WorkflowListQuerySchema$1 as ca, BusEventTriggerSchema as ci, WorkflowWorkerConfigSchema$1 as cn, SpanRecordSchema$1 as cr, ArtifactPatch as ct, zodSchemaToJsonRecord$1 as d, WorkflowNode as da, EXECUTIONS_BY_ARTIFACT_REFS_MAX_REFS as di, ProjectedEdge as dn, IStepRunner as dr, IterateHandler as dt, WorkflowGateNodeSchema as ea, WorkflowFinalizationIntentSchema as ei, WorkerRuntimeContext$1 as en, WorkflowErrorCode$1 as er, SubagentConfig$1 as et, AgentConfig as f, WorkflowNodeBase as fa, EXECUTION_LIST_DEFAULT_LIMIT$1 as fi, ProjectedEdgeKind as fn, StepCancelPayload as fr, PreviousStepOutput as ft, GateOptions as g, WorkflowNodeTypeSchema as ga, ExecutionListCursorSchema as gi, WorkflowDefinitionPath as gn, StepRunConfigSchema as gr, WorkflowContext as gt, DefineWorkflowOptions as h, WorkflowNodeType as ha, ExecutionListCursor as hi, ProjectedWorkflowGraph as hn, StepRunConfig as hr, StepContext as ht, delegateToAgent as i, WorkflowIterateChainNodeSchema as ia, WorkflowTerminalStatusSchema as ii, WorkflowRunnerRunOptions$1 as in, ExecutionLinkSchema$1 as ir, SubagentStatus$1 as it, CompleteTaskRequest as j, WorkflowStationNode as ja, WorkflowArtifactWriteDeclaration as ji, WorkflowProgressUpdate as jn, WorkflowRunnerStepType as jr, WorkLogDynamicNodeMaterializationSchema as jt, AwaitSubagentRequest as k, WorkflowStateDefinition as ka, WorkflowArtifactBinding as ki, serializeArtifactRef$1 as kn, WorkflowCancelPayloadSchema as kr, WorkLogArtifactWriteSchema as kt, loop as l, WorkflowLoopNode as la, EXECUTIONS_BY_ARTIFACT_REFS_DEFAULT_LIMIT_PER_REF as li, WorkflowWorkerSource$1 as ln, SpanStatus as lr, ArtifactUpdateOperation as lt, BuiltWorkflow as m, WorkflowNodeSchema as ma, EXECUTION_LIST_MIN_LIMIT$1 as mi, ProjectedNodeRole as mn, StepCancelSubject as mr, StationStepContext as mt, defineWorkflowBundle as n, WorkflowGateStatusSchema as na, WorkflowFinalizerIdSchema$1 as ni, WorkflowRunResultSchema$1 as nn, ExecutionLinkListQuery as nr, SubagentConstraints$1 as nt, gate as o, WorkflowIterateNodeSchema as oa, createWorkflowFinalizerNamespace$1 as oi, WorkflowWorkerBusAuthSchema as on, ExecutionLinkTypeSchema as or, UsageStats$1 as ot, ArtifactBindingOptions as p, WorkflowNodeBaseSchema as pa, EXECUTION_LIST_MAX_LIMIT$1 as pi, ProjectedNode as pn, StepCancelPayloadSchema as pr, StationHandler$1 as pt, RequestInputRpcRequest as q, WorkflowExecutionScope as qi, ContextSource as qn, WorkflowDelegateResultFinalizerIdSchema as qr, ExternalExecutionFrameStart as qt, defineWorkflow as r, WorkflowIterateChainNode as ra, WorkflowTerminalStatus as ri, WorkflowRunnerCompletion$1 as rn, ExecutionLinkListQuerySchema$1 as rr, SubagentExecutionFailed as rt, iterate as s, WorkflowListQuery as sa, BusEventTrigger as si, WorkflowWorkerConfig$1 as sn, SpanRecord as sr, ArtifactContext as st, WorkflowBundle as t, WorkflowGateStatus as ta, WorkflowFinalizerId as ti, WorkflowRunResult$1 as tn, ExecutionLink as tr, SubagentConfigSchema$1 as tt, station as u, WorkflowLoopNodeSchema as ua, EXECUTIONS_BY_ARTIFACT_REFS_MAX_LIMIT_PER_REF as ui, WorkflowWorkerSourceSchema as un, SpanStatusSchema as ur, ArtifactUpdater as ut, LoopGateRegistration as v, WorkflowParallelModeSchema as va, ExecutionListQuerySchema$1 as vi, projectWorkflowGraph as vn, StepRunResultSchema as vr, WorkflowStateContext as vt, WorkflowStateAuthoringDefinition as w, WorkflowResolvedRoleSchema as wa, ExtensionWorkflowTriggerSchema as wi, WorkflowRunContextSchema$1 as wn, StepTelemetrySchema as wr, ManualWorkflowTrigger as wt, ParallelMode as x, WorkflowResolvedAgent as xa, ExecutionsByArtifactRefsQuery as xi, WorkflowNodeVisitor as xn, StepRunnerPlatformDefaults$1 as xr, CronWorkflowTrigger as xt, LoopOptions as y, WorkflowParallelNode as ya, ExecutionStatus as yi, WalkContext as yn, StepRunnerBusAuth$1 as yr, BusEventWorkflowTrigger as yt, KillSubagentRequest as z, WorkflowDelegateAgentNode as zi, BusEventPublishTarget as zn, WorkflowDelegateEconomics as zr, WorkLogStatsSchema as zt };