@makaio/framework 1.0.0-dev-1789178780636 → 1.0.0-dev-1789238522058

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 (136) hide show
  1. package/dist/.makaio-build.json +2 -2
  2. package/dist/adapters/claude/index.d.mts +5 -5
  3. package/dist/artifact-CKz9YQPu.mjs +1 -0
  4. package/dist/authority-state-bootstrap-CvuWPywM.mjs +1 -0
  5. package/dist/bus/index.d.mts +1 -1
  6. package/dist/bus/index.mjs +1 -1
  7. package/dist/bus-DlTN167w.mjs +9 -0
  8. package/dist/contracts/adapter/index.d.mts +2 -2
  9. package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
  10. package/dist/contracts/artifact/index.d.mts +3 -3
  11. package/dist/contracts/artifact/index.mjs +1 -1
  12. package/dist/contracts/automation-trigger/index.d.mts +1 -1
  13. package/dist/contracts/capabilities/index.d.mts +1 -1
  14. package/dist/contracts/client/index.d.mts +2 -2
  15. package/dist/contracts/extension/index.d.mts +4 -4
  16. package/dist/contracts/extension/index.mjs +1 -1
  17. package/dist/contracts/index.d.mts +36 -36
  18. package/dist/contracts/index.mjs +1 -1
  19. package/dist/contracts/materialization/index.d.mts +2 -2
  20. package/dist/contracts/materialization/index.mjs +1 -1
  21. package/dist/contracts/native-session-supervisor/index.d.mts +1 -1
  22. package/dist/contracts/reaction/index.d.mts +1 -1
  23. package/dist/contracts/session/index.d.mts +2 -2
  24. package/dist/contracts/skill/index.d.mts +1 -1
  25. package/dist/contracts/variant/index.d.mts +1 -1
  26. package/dist/contracts/worker/index.d.mts +1 -1
  27. package/dist/contracts/worker/index.mjs +1 -1
  28. package/dist/contracts/workflow/index.d.mts +2 -2
  29. package/dist/contracts/workflow/index.mjs +1 -1
  30. package/dist/{contribution-DDbHzCPF.d.mts → contribution-ZhnuhOfc.d.mts} +1 -1
  31. package/dist/drizzle/0038_execution-attempt-repository.sql +73 -0
  32. package/dist/drizzle/0039_m_mtyn7x1q.sql +1 -0
  33. package/dist/drizzle/meta/_journal.json +14 -0
  34. package/dist/{extension-DRwry8GA.mjs → extension-CfrTp3rC.mjs} +1 -1
  35. package/dist/{extension-context-BH31eOMv.d.mts → extension-context-CBzrM1F0.d.mts} +3 -3
  36. package/dist/{framework-packages-CCIReKIe.mjs → framework-packages-Bg4edkkM.mjs} +1 -1
  37. package/dist/{hook-responses-Dq16X3Cb.d.mts → hook-responses-C1fnL4N2.d.mts} +1 -1
  38. package/dist/{index-BDRfiSz8.d.mts → index-B4pPwpKk.d.mts} +1 -1
  39. package/dist/{index-BFS-2kcS.d.mts → index-BDSMRw8q.d.mts} +19 -3
  40. package/dist/{index-KnN2OyWD2.d.mts → index-BJds6o8j2.d.mts} +28 -28
  41. package/dist/{index-CA3Uzki8.d.mts → index-BRIHyYnt.d.mts} +12 -12
  42. package/dist/{index-B6WkHnCQ.d.mts → index-C1nSuiG0.d.mts} +1 -1
  43. package/dist/{index-CdWxSwhQ2.d.mts → index-C6e9cwAl2.d.mts} +4 -4
  44. package/dist/{index-4GaVggnR.d.mts → index-CAuJ4nsk.d.mts} +51 -18
  45. package/dist/{index-DhunnX8V.d.mts → index-CCe0cTiI.d.mts} +161 -86
  46. package/dist/{index-nkix3hP7.d.mts → index-CWlvL7GB.d.mts} +6 -6
  47. package/dist/{index-DtCVHx8-.d.mts → index-CzUUoexw.d.mts} +17 -9
  48. package/dist/{index-GPTSqhvy.d.mts → index-D29N22wH.d.mts} +1 -1
  49. package/dist/{index-DI07GxEW.d.mts → index-DGsmGacL.d.mts} +11 -11
  50. package/dist/{index-GpfGF9AO2.d.mts → index-DKuobpsN2.d.mts} +11 -4
  51. package/dist/{index-DNgrWs5j.d.mts → index-DO-OFkMA.d.mts} +49 -49
  52. package/dist/{index-CsLb9M1M.d.mts → index-Du4wUv9q.d.mts} +7 -7
  53. package/dist/{index-iVisrVdC2.d.mts → index-RiTM6SGs2.d.mts} +5 -5
  54. package/dist/{index-xsaaa85T.d.mts → index-T-aAKybB.d.mts} +8 -8
  55. package/dist/{index-BI8PuDkI.d.mts → index-U--ajOHy.d.mts} +1 -1
  56. package/dist/{index-C87P0WpY2.d.mts → index-f5W_Zqj72.d.mts} +1 -1
  57. package/dist/{index-DVocx__-2.d.mts → index-zmDRR8gv2.d.mts} +11 -11
  58. package/dist/kernel/extension/index.d.mts +1 -1
  59. package/dist/kernel/index.d.mts +2 -2
  60. package/dist/kernel/observability/index.d.mts +1 -1
  61. package/dist/{kind-registration-WrdMzWmV.mjs → kind-registration-Dzfo6kyb.mjs} +1 -1
  62. package/dist/materialization-iFhpbs1s.mjs +1 -0
  63. package/dist/{namespace-DQpBf2CK.d.mts → namespace-B5IFLQc-.d.mts} +6 -6
  64. package/dist/{namespace-Phxf0Lep.d.mts → namespace-CPGTaFqO.d.mts} +2 -2
  65. package/dist/{namespace-BrqkCnyt.d.mts → namespace-DM5vykb7.d.mts} +4 -4
  66. package/dist/{namespace-uCaKZm89.d.mts → namespace-LSHmxtMn.d.mts} +4 -4
  67. package/dist/{namespace-CjvSQYRJ.d.mts → namespace-f6Kz5cwX.d.mts} +12 -12
  68. package/dist/node/transports/index.d.mts +32 -11
  69. package/dist/node/transports/index.mjs +2 -2
  70. package/dist/{package-DdymauE9.d.mts → package-CDj3F-L3.d.mts} +1 -0
  71. package/dist/package-DYScYC0D.mjs +7 -0
  72. package/dist/package.json +1 -1
  73. package/dist/packages-vF9F4M41.mjs +1 -0
  74. package/dist/runtime-node/index.d.mts +1 -1
  75. package/dist/runtime-node/index.mjs +1 -1
  76. package/dist/runtime-node/workflow-execution-bus-access.d.mts +37 -20
  77. package/dist/runtime-node/workflow-execution-bus-access.mjs +1 -1
  78. package/dist/runtime-node/workflow-worker/index.d.mts +1 -1
  79. package/dist/runtime-node/workflow-worker/index.mjs +1 -1
  80. package/dist/runtime-node/workflow-worker/worker-entry.mjs +1 -1
  81. package/dist/{schemas-DlVKv9QC.d.mts → schemas-CEJe8O6P.d.mts} +4 -4
  82. package/dist/{schemas-Dl_3zv9l.mjs → schemas-CHM0wMq4.mjs} +1 -1
  83. package/dist/{schemas-2_D4iVbb.d.mts → schemas-CJKDu4Kt.d.mts} +1 -1
  84. package/dist/{schemas-CKVm28Oy.d.mts → schemas-CRobhM7q.d.mts} +5 -1
  85. package/dist/{schemas-uA8246K9.d.mts → schemas-CeItAAQM.d.mts} +8 -8
  86. package/dist/{schemas-BcynDWi-.d.mts → schemas-Cj6Gbqch.d.mts} +7 -7
  87. package/dist/{schemas-COiUhOce.d.mts → schemas-DnY1EYUr.d.mts} +4 -4
  88. package/dist/services/adapter-runtime/index.d.mts +3 -3
  89. package/dist/services/adapter-runtime/namespace.d.mts +1 -1
  90. package/dist/services/adapter-runtime/schemas.d.mts +1 -1
  91. package/dist/services/adapter-subsystem/index.d.mts +2 -2
  92. package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
  93. package/dist/services/context-rules/index.d.mts +3 -3
  94. package/dist/services/execution-target/index.d.mts +3 -3
  95. package/dist/services/execution-target/namespace.d.mts +1 -1
  96. package/dist/services/execution-target/schemas.d.mts +1 -1
  97. package/dist/services/filesystem/namespace.d.mts +12 -12
  98. package/dist/services/filesystem/schemas.d.mts +6 -6
  99. package/dist/services/index.d.mts +37 -37
  100. package/dist/services/index.mjs +1 -1
  101. package/dist/services/materialization/index.mjs +1 -1
  102. package/dist/services/provider-context/index.d.mts +1 -1
  103. package/dist/services/session/handlers/index.d.mts +1 -1
  104. package/dist/services/session/index.d.mts +4 -4
  105. package/dist/services/session/messages/namespace.d.mts +1 -1
  106. package/dist/services/settings/namespace.d.mts +4 -4
  107. package/dist/services/subagent-template/index.d.mts +1 -1
  108. package/dist/services/subagent-template/schemas.d.mts +1 -1
  109. package/dist/services/tools/index.mjs +1 -1
  110. package/dist/services/tray-menu/index.d.mts +2 -2
  111. package/dist/services/tray-menu/namespace.d.mts +1 -1
  112. package/dist/services/tray-menu/schemas.d.mts +1 -1
  113. package/dist/services/workflow-transitions/index.mjs +1 -1
  114. package/dist/{session-lineage-C3myyt5x.d.mts → session-lineage-BQimcKsh.d.mts} +1 -1
  115. package/dist/{tools-Dj_ImUQ8.mjs → tools-C5Gy0IQG.mjs} +1 -1
  116. package/dist/{transition-B-YmSK-s.d.mts → transition-Rp5wD763.d.mts} +1 -1
  117. package/dist/{types-DhbllltK.d.mts → types-CJrhRe5f.d.mts} +3 -3
  118. package/dist/{view-builder-BUZoNyEQ.d.mts → view-builder-CIDqBcRz.d.mts} +15 -2
  119. package/dist/{worker-IIubsEFG.mjs → worker-B72n8bse.mjs} +1 -1
  120. package/dist/workflow-D-X3rPsl.mjs +1 -0
  121. package/dist/workflow-engine/index.d.mts +137 -27
  122. package/dist/workflow-engine/index.mjs +1 -1
  123. package/dist/workflow-engine/package.d.mts +1 -1
  124. package/dist/workflow-engine/package.mjs +1 -1
  125. package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
  126. package/dist/{workflow-transitions-t6jn_pR_.mjs → workflow-transitions-C0sg3kar.mjs} +1 -1
  127. package/dist/{workflow-worker-C3ZbuhyA.mjs → workflow-worker-COM5U2Rv.mjs} +2 -2
  128. package/package.json +1 -1
  129. package/dist/artifact-CH7yhgti.mjs +0 -1
  130. package/dist/authority-state-bootstrap-CV7HpB4v.mjs +0 -1
  131. package/dist/bus-CPlKKH4v.mjs +0 -9
  132. package/dist/materialization-C_92G2CL.mjs +0 -1
  133. package/dist/package-Bn4iwDm3.mjs +0 -7
  134. package/dist/packages-G3bMStlV.mjs +0 -1
  135. package/dist/workflow-dVr_9gaf.mjs +0 -1
  136. package/dist/{index-Htfr-K5U2.d.mts → index-CCH0Dnty2.d.mts} +6 -6
@@ -1,5 +1,5 @@
1
- import { $ as InitialProviderOperationClaimContextSource, $t as AttemptSettlementSnapshot, At as evaluateRuntimeReadiness, B as RecordProvisioningAbsentInput, Bt as snapshotRequestExecutionCancellationInput, C as ExecutionAttemptStatus, Ct as RuntimeOutcomeFenceMismatchError, D as MarkRuntimeReadyInput, Dt as evaluateOperationCompletion, E as InfrastructureFailureDecision, Et as evaluateOperationAdmission, F as ReadBootstrapStartStateInput, Ft as RequestAttemptCancellationInput, G as RuntimeRegistrationDecision, Gt as ReadAttemptCancellationControlInput, H as RegisterRuntimeInput, Ht as AttemptControlEvidence, I as RecordAllocationInput, It as RequestExecutionCancellationInput, J as sameAllocationRef, Jt as evaluateAttemptControlReceipt, K as decodeDurableOutcome, Kt as RecordAttemptControlReceiptInput, L as RecordAllocationTerminatedInput, Lt as evaluateAttemptCancellation, M as PendingAttemptAbandonmentDecision, Mt as AttemptOutcomeControlObservation, Nt as ExecutionAttemptCancellationDecision, O as OperationAdmissionDecision, P as ProvisioningClaimDecision, Pt as ExecutionAttemptCancellationIntent, Q as InitialProviderOperationClaimContext, Qt as AttemptSettlementRead, R as RecordInfrastructureFailureInput, Rt as snapshotAttemptOutcomeControl, S as ExecutionAttemptSettlementKind, St as RuntimeOutcomeFence, Tt as evaluateAttemptReachability, Ut as AttemptControlEvidenceDecision, V as RecoverableAttemptRecord, Vt as AttemptCancellationControlState, W as RuntimeReadinessDecision, Wt as AttemptControlEvidenceRepository, X as CompleteProviderOperationInput, Xt as snapshotAttemptControlReceipt, Y as sameDurableOutcome, Yt as evaluateAttemptControlReport, Z as HandoffProviderOperationInput, Zt as snapshotAttemptControlReport, _ as EXECUTION_ATTEMPT_STATUSES, _t as isProviderOperationResolved, a as AllocationRefEvolutionDecision, an as replayEnsuredAttempt, at as ProviderOperationClaimDecision, b as ExecutionAttemptRecoveryOperations, bt as AttemptReachability, cn as snapshotReadAttemptSettlementInput, ct as ProviderOperationLeaseRenewal, d as BootstrapStartState, dt as ProviderOperationOwnershipRecord, en as EnsureExecutionAttemptDecision, et as ListOpenProviderOperationsInput, f as CompleteOperationInput, ft as ProvisionerIncarnationLossDecision, g as EXECUTION_ATTEMPT_SETTLEMENT_KINDS, gt as TakeOverProviderOperationInput, h as DurableOutcome, ht as RenewProviderOperationClaimInput, i as AllocationRefEvolution, in as readAttemptSettlementSnapshot, it as ProviderOperationClaim, j as OutcomeCodec, jt as evaluateRuntimeRegistration, k as OperationCompletionDecision, kt as evaluateProvisionerIncarnationLoss, l as AttemptOperationStartGate, lt as ProviderOperationMutationDecision, m as DuplicateExecutionAttemptError, mt as RecordProviderOperationUncertaintyInput, n as AdmitOperationInput, nn as EnsureExecutionAttemptPersistenceInput, nt as PROVIDER_OPERATION_OBLIGATIONS, o as AllocationTerminationDecision, on as snapshotEnsureExecutionAttemptInput, ot as ProviderOperationCompletionDecision, p as DiscoveredAllocationDecision, pt as ProvisioningAbsenceDecision, q as durableOutcome, qt as ReportAttemptControlInput, r as AllocationRecordingDecision, rn as ReadAttemptSettlementInput, rt as ProcessBoundProvisionerLossProof, s as AttemptControlState, sn as snapshotEnsureExecutionAttemptPersistenceInput, st as ProviderOperationLeasePolicy, t as ATTEMPT_OPERATION_START_GATES, tn as EnsureExecutionAttemptInput, tt as OpenProviderOperationRecord, u as BeginProvisioningInput, ut as ProviderOperationObligation, v as ExecutionAttemptCreate, vt as ExecutionAttemptOutcomeCommit, w as ExecutionOwnerId, wt as assertRuntimeOutcomeFence, x as ExecutionAttemptRepository, xt as AttemptReachabilityDecision, y as ExecutionAttemptRecord, yt as ExecutionAttemptOutcomeDecision, z as RecordProvisionerIncarnationLostInput, zt as snapshotRequestAttemptCancellationInput } from "../execution-attempt-repository-BUah8hma.mjs";
2
- import { A as BootstrapStartOptions, C as OutcomeAcceptance, D as submitAttemptOutcome, E as OutcomePreCommitValidation, M as WorkflowMaterializationSpecResolver, N as WorkflowWorkspaceRootResolver, O as ExecutionAttemptAuthority, P as registerDrizzleWorkflowStorage, S as AttemptOutcomeSubmissionDeps, T as OutcomeConvergenceInput, _ as AttemptOutcomeDecodingInput, a as WorkflowEngineServiceOptions, b as AcceptedAttemptOutcome, c as CommittedWorkflowOutcomeIdentity, d as WorkflowAttemptOutcomeSchema, f as WorkflowAttemptTechnicalFailure, g as workflowAttemptOutcomeCodec, h as toCommittedWorkflowRunnerResult, i as WorkflowEngineService, j as WorkflowMaterializationSpecResolution, k as BootstrapStartAuthority, l as WorkflowAttemptCancellation, m as toCommittedWorkflowRunnerCompletion, n as createWorkflowEnginePackage, o as WorkflowTriggerReconciler, p as decodeWorkflowAttemptOutcome, r as workflowEnginePackage, s as WorkflowExecutor, t as WorkflowEngineToken, u as WorkflowAttemptOutcome, v as ExecutionAttemptHandlersDeps, w as OutcomeConvergence, x as AttemptOutcomeSubmission, y as registerExecutionAttemptHandlers } from "../package-DdymauE9.mjs";
1
+ import { $ as InitialProviderOperationClaimContextSource, $t as AttemptSettlementSnapshot, A as OperationReportDecision, At as evaluateRuntimeReadiness, B as RecordProvisioningAbsentInput, Bt as snapshotRequestExecutionCancellationInput, C as ExecutionAttemptStatus, Ct as RuntimeOutcomeFenceMismatchError, D as MarkRuntimeReadyInput, Dt as evaluateOperationCompletion, E as InfrastructureFailureDecision, Et as evaluateOperationAdmission, F as ReadBootstrapStartStateInput, Ft as RequestAttemptCancellationInput, G as RuntimeRegistrationDecision, Gt as ReadAttemptCancellationControlInput, H as RegisterRuntimeInput, Ht as AttemptControlEvidence, I as RecordAllocationInput, It as RequestExecutionCancellationInput, J as sameAllocationRef, Jt as evaluateAttemptControlReceipt, K as decodeDurableOutcome, Kt as RecordAttemptControlReceiptInput, L as RecordAllocationTerminatedInput, Lt as evaluateAttemptCancellation, M as PendingAttemptAbandonmentDecision, Mt as AttemptOutcomeControlObservation, Nt as ExecutionAttemptCancellationDecision, O as OperationAdmissionDecision, Ot as evaluatePreparationReport, P as ProvisioningClaimDecision, Pt as ExecutionAttemptCancellationIntent, Q as InitialProviderOperationClaimContext, Qt as AttemptSettlementRead, R as RecordInfrastructureFailureInput, Rt as snapshotAttemptOutcomeControl, S as ExecutionAttemptSettlementKind, St as RuntimeOutcomeFence, T as GetInstructionInput, Tt as evaluateAttemptReachability, U as ReportOperationInput, Ut as AttemptControlEvidenceDecision, V as RecoverableAttemptRecord, Vt as AttemptCancellationControlState, W as RuntimeReadinessDecision, Wt as AttemptControlEvidenceRepository, X as CompleteProviderOperationInput, Xt as snapshotAttemptControlReceipt, Y as sameDurableOutcome, Yt as evaluateAttemptControlReport, Z as HandoffProviderOperationInput, Zt as snapshotAttemptControlReport, _ as EXECUTION_ATTEMPT_STATUSES, _t as isProviderOperationResolved, a as AllocationRefEvolutionDecision, an as replayEnsuredAttempt, at as ProviderOperationClaimDecision, b as ExecutionAttemptRecoveryOperations, bt as AttemptReachability, cn as snapshotReadAttemptSettlementInput, ct as ProviderOperationLeaseRenewal, d as BootstrapStartState, dt as ProviderOperationOwnershipRecord, en as EnsureExecutionAttemptDecision, et as ListOpenProviderOperationsInput, f as CompleteOperationInput, ft as ProvisionerIncarnationLossDecision, g as EXECUTION_ATTEMPT_SETTLEMENT_KINDS, gt as TakeOverProviderOperationInput, h as DurableOutcome, ht as RenewProviderOperationClaimInput, i as AllocationRefEvolution, in as readAttemptSettlementSnapshot, it as ProviderOperationClaim, j as OutcomeCodec, jt as evaluateRuntimeRegistration, k as OperationCompletionDecision, kt as evaluateProvisionerIncarnationLoss, l as AttemptOperationStartGate, lt as ProviderOperationMutationDecision, m as DuplicateExecutionAttemptError, mt as RecordProviderOperationUncertaintyInput, n as AdmitOperationInput, nn as EnsureExecutionAttemptPersistenceInput, nt as PROVIDER_OPERATION_OBLIGATIONS, o as AllocationTerminationDecision, on as snapshotEnsureExecutionAttemptInput, ot as ProviderOperationCompletionDecision, p as DiscoveredAllocationDecision, pt as ProvisioningAbsenceDecision, q as durableOutcome, qt as ReportAttemptControlInput, r as AllocationRecordingDecision, rn as ReadAttemptSettlementInput, rt as ProcessBoundProvisionerLossProof, s as AttemptControlState, sn as snapshotEnsureExecutionAttemptPersistenceInput, st as ProviderOperationLeasePolicy, t as ATTEMPT_OPERATION_START_GATES, tn as EnsureExecutionAttemptInput, tt as OpenProviderOperationRecord, u as BeginProvisioningInput, ut as ProviderOperationObligation, v as ExecutionAttemptCreate, vt as ExecutionAttemptOutcomeCommit, w as ExecutionOwnerId, wt as assertRuntimeOutcomeFence, x as ExecutionAttemptRepository, xt as AttemptReachabilityDecision, y as ExecutionAttemptRecord, yt as ExecutionAttemptOutcomeDecision, z as RecordProvisionerIncarnationLostInput, zt as snapshotRequestAttemptCancellationInput } from "../execution-attempt-repository-BUah8hma.mjs";
2
+ import { A as BootstrapStartOptions, C as OutcomeAcceptance, D as submitAttemptOutcome, E as OutcomePreCommitValidation, M as WorkflowMaterializationSpecResolver, N as WorkflowWorkspaceRootResolver, O as ExecutionAttemptAuthority, P as registerDrizzleWorkflowStorage, S as AttemptOutcomeSubmissionDeps, T as OutcomeConvergenceInput, _ as AttemptOutcomeDecodingInput, a as WorkflowEngineServiceOptions, b as AcceptedAttemptOutcome, c as CommittedWorkflowOutcomeIdentity, d as WorkflowAttemptOutcomeSchema, f as WorkflowAttemptTechnicalFailure, g as workflowAttemptOutcomeCodec, h as toCommittedWorkflowRunnerResult, i as WorkflowEngineService, j as WorkflowMaterializationSpecResolution, k as BootstrapStartAuthority, l as WorkflowAttemptCancellation, m as toCommittedWorkflowRunnerCompletion, n as createWorkflowEnginePackage, o as WorkflowTriggerReconciler, p as decodeWorkflowAttemptOutcome, r as workflowEnginePackage, s as WorkflowExecutor, t as WorkflowEngineToken, u as WorkflowAttemptOutcome, v as ExecutionAttemptHandlersDeps, w as OutcomeConvergence, x as AttemptOutcomeSubmission, y as registerExecutionAttemptHandlers } from "../package-CDj3F-L3.mjs";
3
3
  import { WorkflowTriggerPayloadPredicate, assertWorkflowTriggerPayload, compileWorkflowTriggerBindingFilter } from "./workflow-trigger-binding-consumer.mjs";
4
4
  import { z } from "zod";
5
5
  import * as _$_makaio_core0 from "@makaio/framework/core";
@@ -1113,8 +1113,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1113
1113
  "exit-and-resume": "exit-and-resume";
1114
1114
  }>>;
1115
1115
  terminalAuthority: z.ZodOptional<z.ZodEnum<{
1116
- worker: "worker";
1117
1116
  authority: "authority";
1117
+ worker: "worker";
1118
1118
  }>>;
1119
1119
  materializationSpec: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1120
1120
  kind: z.ZodLiteral<"local-directory">;
@@ -1186,8 +1186,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1186
1186
  "delegate-agent": "delegate-agent";
1187
1187
  "delegate-role": "delegate-role";
1188
1188
  sequence: "sequence";
1189
- gate: "gate";
1190
1189
  parallel: "parallel";
1190
+ gate: "gate";
1191
1191
  iterate: "iterate";
1192
1192
  "iterate-chain": "iterate-chain";
1193
1193
  loop: "loop";
@@ -1231,8 +1231,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1231
1231
  "delegate-agent": "delegate-agent";
1232
1232
  "delegate-role": "delegate-role";
1233
1233
  sequence: "sequence";
1234
- gate: "gate";
1235
1234
  parallel: "parallel";
1235
+ gate: "gate";
1236
1236
  iterate: "iterate";
1237
1237
  "iterate-chain": "iterate-chain";
1238
1238
  loop: "loop";
@@ -1420,6 +1420,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1420
1420
  cancelled: z.ZodBoolean;
1421
1421
  gates: z.ZodArray<z.ZodObject<{
1422
1422
  executionId: z.ZodString;
1423
+ executionAttemptId: z.ZodOptional<z.ZodString>;
1423
1424
  nodeId: z.ZodString;
1424
1425
  frameId: z.ZodString;
1425
1426
  schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
@@ -1589,8 +1590,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1589
1590
  "delegate-agent": "delegate-agent";
1590
1591
  "delegate-role": "delegate-role";
1591
1592
  sequence: "sequence";
1592
- gate: "gate";
1593
1593
  parallel: "parallel";
1594
+ gate: "gate";
1594
1595
  iterate: "iterate";
1595
1596
  "iterate-chain": "iterate-chain";
1596
1597
  loop: "loop";
@@ -1635,8 +1636,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1635
1636
  "delegate-agent": "delegate-agent";
1636
1637
  "delegate-role": "delegate-role";
1637
1638
  sequence: "sequence";
1638
- gate: "gate";
1639
1639
  parallel: "parallel";
1640
+ gate: "gate";
1640
1641
  iterate: "iterate";
1641
1642
  "iterate-chain": "iterate-chain";
1642
1643
  loop: "loop";
@@ -1678,8 +1679,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1678
1679
  "delegate-agent": "delegate-agent";
1679
1680
  "delegate-role": "delegate-role";
1680
1681
  sequence: "sequence";
1681
- gate: "gate";
1682
1682
  parallel: "parallel";
1683
+ gate: "gate";
1683
1684
  iterate: "iterate";
1684
1685
  "iterate-chain": "iterate-chain";
1685
1686
  loop: "loop";
@@ -1713,6 +1714,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1713
1714
  request: z.ZodObject<{
1714
1715
  gate: z.ZodObject<{
1715
1716
  executionId: z.ZodString;
1717
+ executionAttemptId: z.ZodOptional<z.ZodString>;
1716
1718
  nodeId: z.ZodString;
1717
1719
  frameId: z.ZodString;
1718
1720
  schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
@@ -1750,6 +1752,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1750
1752
  request: z.ZodObject<{
1751
1753
  gate: z.ZodObject<{
1752
1754
  executionId: z.ZodString;
1755
+ executionAttemptId: z.ZodOptional<z.ZodString>;
1753
1756
  nodeId: z.ZodString;
1754
1757
  frameId: z.ZodString;
1755
1758
  schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
@@ -1811,6 +1814,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1811
1814
  }, z.core.$strip>;
1812
1815
  gate: z.ZodObject<{
1813
1816
  executionId: z.ZodString;
1817
+ executionAttemptId: z.ZodOptional<z.ZodString>;
1814
1818
  nodeId: z.ZodString;
1815
1819
  frameId: z.ZodString;
1816
1820
  schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
@@ -1845,6 +1849,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1845
1849
  response: z.ZodObject<{
1846
1850
  gate: z.ZodNullable<z.ZodObject<{
1847
1851
  executionId: z.ZodString;
1852
+ executionAttemptId: z.ZodOptional<z.ZodString>;
1848
1853
  nodeId: z.ZodString;
1849
1854
  frameId: z.ZodString;
1850
1855
  schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
@@ -1886,6 +1891,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1886
1891
  response: z.ZodObject<{
1887
1892
  gates: z.ZodArray<z.ZodObject<{
1888
1893
  executionId: z.ZodString;
1894
+ executionAttemptId: z.ZodOptional<z.ZodString>;
1889
1895
  nodeId: z.ZodString;
1890
1896
  frameId: z.ZodString;
1891
1897
  schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
@@ -1921,6 +1927,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1921
1927
  response: z.ZodObject<{
1922
1928
  gates: z.ZodArray<z.ZodObject<{
1923
1929
  executionId: z.ZodString;
1930
+ executionAttemptId: z.ZodOptional<z.ZodString>;
1924
1931
  nodeId: z.ZodString;
1925
1932
  frameId: z.ZodString;
1926
1933
  schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
@@ -2208,8 +2215,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
2208
2215
  "exit-and-resume": "exit-and-resume";
2209
2216
  }>>;
2210
2217
  terminalAuthority: z.ZodOptional<z.ZodEnum<{
2211
- worker: "worker";
2212
2218
  authority: "authority";
2219
+ worker: "worker";
2213
2220
  }>>;
2214
2221
  materializationSpec: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2215
2222
  kind: z.ZodLiteral<"local-directory">;
@@ -2395,8 +2402,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
2395
2402
  "exit-and-resume": "exit-and-resume";
2396
2403
  }>>;
2397
2404
  terminalAuthority: z.ZodOptional<z.ZodEnum<{
2398
- worker: "worker";
2399
2405
  authority: "authority";
2406
+ worker: "worker";
2400
2407
  }>>;
2401
2408
  materializationSpec: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2402
2409
  kind: z.ZodLiteral<"local-directory">;
@@ -3327,7 +3334,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
3327
3334
  tableName: "workflow_execution_frames";
3328
3335
  dataType: "string";
3329
3336
  columnType: "SQLiteText";
3330
- data: "station" | "delegate-agent" | "delegate-role" | "sequence" | "gate" | "parallel" | "iterate" | "iterate-chain" | "loop";
3337
+ data: "station" | "delegate-agent" | "delegate-role" | "sequence" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop";
3331
3338
  driverParam: string;
3332
3339
  notNull: true;
3333
3340
  hasDefault: false;
@@ -3340,7 +3347,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
3340
3347
  generated: undefined;
3341
3348
  }, {}, {
3342
3349
  length: number | undefined;
3343
- $type: "station" | "delegate-agent" | "delegate-role" | "sequence" | "gate" | "parallel" | "iterate" | "iterate-chain" | "loop";
3350
+ $type: "station" | "delegate-agent" | "delegate-role" | "sequence" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop";
3344
3351
  }>;
3345
3352
  path: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
3346
3353
  name: string;
@@ -3587,6 +3594,25 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
3587
3594
  }, {}, {
3588
3595
  length: number | undefined;
3589
3596
  }>;
3597
+ executionAttemptId: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
3598
+ name: "execution_attempt_id";
3599
+ tableName: "workflow_gate_instances";
3600
+ dataType: "string";
3601
+ columnType: "SQLiteText";
3602
+ data: string;
3603
+ driverParam: string;
3604
+ notNull: false;
3605
+ hasDefault: false;
3606
+ isPrimaryKey: false;
3607
+ isAutoincrement: false;
3608
+ hasRuntimeDefault: false;
3609
+ enumValues: [string, ...string[]];
3610
+ baseColumn: never;
3611
+ identity: undefined;
3612
+ generated: undefined;
3613
+ }, {}, {
3614
+ length: number | undefined;
3615
+ }>;
3590
3616
  nodeId: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
3591
3617
  name: "node_id";
3592
3618
  tableName: "workflow_gate_instances";
@@ -4795,7 +4821,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
4795
4821
  tableName: "workflow_run_contexts";
4796
4822
  dataType: "string";
4797
4823
  columnType: "SQLiteText";
4798
- data: "worker" | "authority" | undefined;
4824
+ data: "authority" | "worker" | undefined;
4799
4825
  driverParam: string;
4800
4826
  notNull: false;
4801
4827
  hasDefault: false;
@@ -4808,7 +4834,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
4808
4834
  generated: undefined;
4809
4835
  }, {}, {
4810
4836
  length: number | undefined;
4811
- $type: "worker" | "authority" | undefined;
4837
+ $type: "authority" | "worker" | undefined;
4812
4838
  }>;
4813
4839
  materializationSpec: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
4814
4840
  name: string;
@@ -5141,7 +5167,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
5141
5167
  tableName: "worklog_frame_entries";
5142
5168
  dataType: "string";
5143
5169
  columnType: "SQLiteText";
5144
- data: "station" | "delegate-agent" | "delegate-role" | "sequence" | "gate" | "parallel" | "iterate" | "iterate-chain" | "loop";
5170
+ data: "station" | "delegate-agent" | "delegate-role" | "sequence" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop";
5145
5171
  driverParam: string;
5146
5172
  notNull: true;
5147
5173
  hasDefault: false;
@@ -5154,7 +5180,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
5154
5180
  generated: undefined;
5155
5181
  }, {}, {
5156
5182
  length: number | undefined;
5157
- $type: "station" | "delegate-agent" | "delegate-role" | "sequence" | "gate" | "parallel" | "iterate" | "iterate-chain" | "loop";
5183
+ $type: "station" | "delegate-agent" | "delegate-role" | "sequence" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop";
5158
5184
  }>;
5159
5185
  path: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
5160
5186
  name: string;
@@ -6014,7 +6040,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
6014
6040
  tableName: "workflow_finalizations";
6015
6041
  dataType: "string";
6016
6042
  columnType: "SQLiteText";
6017
- data: "acknowledged" | "failed" | "claimed";
6043
+ data: "failed" | "acknowledged" | "claimed";
6018
6044
  driverParam: string;
6019
6045
  notNull: true;
6020
6046
  hasDefault: false;
@@ -6736,8 +6762,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6736
6762
  "exit-and-resume": "exit-and-resume";
6737
6763
  }>>;
6738
6764
  terminalAuthority: z.ZodOptional<z.ZodEnum<{
6739
- worker: "worker";
6740
6765
  authority: "authority";
6766
+ worker: "worker";
6741
6767
  }>>;
6742
6768
  materializationSpec: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
6743
6769
  kind: z.ZodLiteral<"local-directory">;
@@ -6809,8 +6835,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6809
6835
  "delegate-agent": "delegate-agent";
6810
6836
  "delegate-role": "delegate-role";
6811
6837
  sequence: "sequence";
6812
- gate: "gate";
6813
6838
  parallel: "parallel";
6839
+ gate: "gate";
6814
6840
  iterate: "iterate";
6815
6841
  "iterate-chain": "iterate-chain";
6816
6842
  loop: "loop";
@@ -6854,8 +6880,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6854
6880
  "delegate-agent": "delegate-agent";
6855
6881
  "delegate-role": "delegate-role";
6856
6882
  sequence: "sequence";
6857
- gate: "gate";
6858
6883
  parallel: "parallel";
6884
+ gate: "gate";
6859
6885
  iterate: "iterate";
6860
6886
  "iterate-chain": "iterate-chain";
6861
6887
  loop: "loop";
@@ -7043,6 +7069,7 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7043
7069
  cancelled: z.ZodBoolean;
7044
7070
  gates: z.ZodArray<z.ZodObject<{
7045
7071
  executionId: z.ZodString;
7072
+ executionAttemptId: z.ZodOptional<z.ZodString>;
7046
7073
  nodeId: z.ZodString;
7047
7074
  frameId: z.ZodString;
7048
7075
  schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
@@ -7212,8 +7239,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7212
7239
  "delegate-agent": "delegate-agent";
7213
7240
  "delegate-role": "delegate-role";
7214
7241
  sequence: "sequence";
7215
- gate: "gate";
7216
7242
  parallel: "parallel";
7243
+ gate: "gate";
7217
7244
  iterate: "iterate";
7218
7245
  "iterate-chain": "iterate-chain";
7219
7246
  loop: "loop";
@@ -7258,8 +7285,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7258
7285
  "delegate-agent": "delegate-agent";
7259
7286
  "delegate-role": "delegate-role";
7260
7287
  sequence: "sequence";
7261
- gate: "gate";
7262
7288
  parallel: "parallel";
7289
+ gate: "gate";
7263
7290
  iterate: "iterate";
7264
7291
  "iterate-chain": "iterate-chain";
7265
7292
  loop: "loop";
@@ -7301,8 +7328,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7301
7328
  "delegate-agent": "delegate-agent";
7302
7329
  "delegate-role": "delegate-role";
7303
7330
  sequence: "sequence";
7304
- gate: "gate";
7305
7331
  parallel: "parallel";
7332
+ gate: "gate";
7306
7333
  iterate: "iterate";
7307
7334
  "iterate-chain": "iterate-chain";
7308
7335
  loop: "loop";
@@ -7336,6 +7363,7 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7336
7363
  request: z.ZodObject<{
7337
7364
  gate: z.ZodObject<{
7338
7365
  executionId: z.ZodString;
7366
+ executionAttemptId: z.ZodOptional<z.ZodString>;
7339
7367
  nodeId: z.ZodString;
7340
7368
  frameId: z.ZodString;
7341
7369
  schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
@@ -7373,6 +7401,7 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7373
7401
  request: z.ZodObject<{
7374
7402
  gate: z.ZodObject<{
7375
7403
  executionId: z.ZodString;
7404
+ executionAttemptId: z.ZodOptional<z.ZodString>;
7376
7405
  nodeId: z.ZodString;
7377
7406
  frameId: z.ZodString;
7378
7407
  schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
@@ -7434,6 +7463,7 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7434
7463
  }, z.core.$strip>;
7435
7464
  gate: z.ZodObject<{
7436
7465
  executionId: z.ZodString;
7466
+ executionAttemptId: z.ZodOptional<z.ZodString>;
7437
7467
  nodeId: z.ZodString;
7438
7468
  frameId: z.ZodString;
7439
7469
  schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
@@ -7468,6 +7498,7 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7468
7498
  response: z.ZodObject<{
7469
7499
  gate: z.ZodNullable<z.ZodObject<{
7470
7500
  executionId: z.ZodString;
7501
+ executionAttemptId: z.ZodOptional<z.ZodString>;
7471
7502
  nodeId: z.ZodString;
7472
7503
  frameId: z.ZodString;
7473
7504
  schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
@@ -7509,6 +7540,7 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7509
7540
  response: z.ZodObject<{
7510
7541
  gates: z.ZodArray<z.ZodObject<{
7511
7542
  executionId: z.ZodString;
7543
+ executionAttemptId: z.ZodOptional<z.ZodString>;
7512
7544
  nodeId: z.ZodString;
7513
7545
  frameId: z.ZodString;
7514
7546
  schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
@@ -7544,6 +7576,7 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7544
7576
  response: z.ZodObject<{
7545
7577
  gates: z.ZodArray<z.ZodObject<{
7546
7578
  executionId: z.ZodString;
7579
+ executionAttemptId: z.ZodOptional<z.ZodString>;
7547
7580
  nodeId: z.ZodString;
7548
7581
  frameId: z.ZodString;
7549
7582
  schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
@@ -7831,8 +7864,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7831
7864
  "exit-and-resume": "exit-and-resume";
7832
7865
  }>>;
7833
7866
  terminalAuthority: z.ZodOptional<z.ZodEnum<{
7834
- worker: "worker";
7835
7867
  authority: "authority";
7868
+ worker: "worker";
7836
7869
  }>>;
7837
7870
  materializationSpec: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
7838
7871
  kind: z.ZodLiteral<"local-directory">;
@@ -8018,8 +8051,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
8018
8051
  "exit-and-resume": "exit-and-resume";
8019
8052
  }>>;
8020
8053
  terminalAuthority: z.ZodOptional<z.ZodEnum<{
8021
- worker: "worker";
8022
8054
  authority: "authority";
8055
+ worker: "worker";
8023
8056
  }>>;
8024
8057
  materializationSpec: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
8025
8058
  kind: z.ZodLiteral<"local-directory">;
@@ -8148,6 +8181,83 @@ declare const workflowFinalizationsDual: _$_makaio_storage_drizzle0.DualTable<"w
8148
8181
  publishedAt: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteIntegerBuilderInitial<string>, _$drizzle_orm_pg_core0.PgBigInt53BuilderInitial<string>>;
8149
8182
  }>;
8150
8183
  //#endregion
8184
+ //#region subsystems/workflow-engine/src/storage/execution-attempt-schema.d.ts
8185
+ /**
8186
+ * Durable execution-attempt facts.
8187
+ *
8188
+ * These tables are owner-agnostic. `execution_id` is a caller-supplied owner
8189
+ * key, so it intentionally has no foreign key to owner-specific storage.
8190
+ * JSON payloads and ISO-8601 instants remain text to preserve their exact
8191
+ * durable representations across both dialects.
8192
+ */
8193
+ declare const executionAttemptsDual: _$_makaio_storage_drizzle0.DualTable<"execution_attempt", {
8194
+ executionAttemptId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.IsPrimaryKey<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"execution_attempt_id", [string, ...string[]], number | undefined>>>, _$drizzle_orm0.IsPrimaryKey<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"execution_attempt_id", [string, ...string[]]>>>>;
8195
+ executionId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"execution_id", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"execution_id", [string, ...string[]]>>>;
8196
+ instruction: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"instruction", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"instruction", [string, ...string[]]>>>;
8197
+ preparationReceipts: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.HasDefault<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"preparation_receipts", [string, ...string[]], number | undefined>>>, _$drizzle_orm0.HasDefault<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"preparation_receipts", [string, ...string[]]>>>>;
8198
+ status: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"status", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"status", [string, ...string[]]>>>;
8199
+ providerId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"provider_id", [string, ...string[]], number | undefined>, _$drizzle_orm_pg_core0.PgTextBuilderInitial<"provider_id", [string, ...string[]]>>;
8200
+ allocationLifetime: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"allocation_lifetime", [string, ...string[]], number | undefined>, _$drizzle_orm_pg_core0.PgTextBuilderInitial<"allocation_lifetime", [string, ...string[]]>>;
8201
+ provisionerIncarnationId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"provisioner_incarnation_id", [string, ...string[]], number | undefined>, _$drizzle_orm_pg_core0.PgTextBuilderInitial<"provisioner_incarnation_id", [string, ...string[]]>>;
8202
+ allocationRef: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"allocation_ref", [string, ...string[]], number | undefined>, _$drizzle_orm_pg_core0.PgTextBuilderInitial<"allocation_ref", [string, ...string[]]>>;
8203
+ settlementKind: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"settlement_kind", [string, ...string[]], number | undefined>, _$drizzle_orm_pg_core0.PgTextBuilderInitial<"settlement_kind", [string, ...string[]]>>;
8204
+ outcomeText: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"outcome_text", [string, ...string[]], number | undefined>, _$drizzle_orm_pg_core0.PgTextBuilderInitial<"outcome_text", [string, ...string[]]>>;
8205
+ outcomeControlObservation: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"outcome_control_observation", [string, ...string[]], number | undefined>, _$drizzle_orm_pg_core0.PgTextBuilderInitial<"outcome_control_observation", [string, ...string[]]>>;
8206
+ claimable: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.HasDefault<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteIntegerBuilderInitial<string>>>, _$drizzle_orm0.HasDefault<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgIntegerBuilderInitial<string>>>>;
8207
+ claimExpiresAt: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"claim_expires_at", [string, ...string[]], number | undefined>, _$drizzle_orm_pg_core0.PgTextBuilderInitial<"claim_expires_at", [string, ...string[]]>>;
8208
+ createdAt: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"created_at", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"created_at", [string, ...string[]]>>>;
8209
+ bootstrapDeadlineAt: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"bootstrap_deadline_at", [string, ...string[]], number | undefined>, _$drizzle_orm_pg_core0.PgTextBuilderInitial<"bootstrap_deadline_at", [string, ...string[]]>>;
8210
+ runtimeGeneration: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.HasDefault<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteIntegerBuilderInitial<string>>>, _$drizzle_orm0.HasDefault<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgIntegerBuilderInitial<string>>>>;
8211
+ runtimeIncarnationId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"runtime_incarnation_id", [string, ...string[]], number | undefined>, _$drizzle_orm_pg_core0.PgTextBuilderInitial<"runtime_incarnation_id", [string, ...string[]]>>;
8212
+ runtimeReadyAt: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"runtime_ready_at", [string, ...string[]], number | undefined>, _$drizzle_orm_pg_core0.PgTextBuilderInitial<"runtime_ready_at", [string, ...string[]]>>;
8213
+ operationStartGate: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.HasDefault<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"operation_start_gate", [string, ...string[]], number | undefined>>>, _$drizzle_orm0.HasDefault<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"operation_start_gate", [string, ...string[]]>>>>;
8214
+ activeOperationId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"active_operation_id", [string, ...string[]], number | undefined>, _$drizzle_orm_pg_core0.PgTextBuilderInitial<"active_operation_id", [string, ...string[]]>>;
8215
+ activeOperationKind: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"active_operation_kind", [string, ...string[]], number | undefined>, _$drizzle_orm_pg_core0.PgTextBuilderInitial<"active_operation_kind", [string, ...string[]]>>;
8216
+ activeOperationKey: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"active_operation_key", [string, ...string[]], number | undefined>, _$drizzle_orm_pg_core0.PgTextBuilderInitial<"active_operation_key", [string, ...string[]]>>;
8217
+ activeOperationGeneration: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteIntegerBuilderInitial<string>, _$drizzle_orm_pg_core0.PgIntegerBuilderInitial<string>>;
8218
+ activeOperationAdmittedAt: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"active_operation_admitted_at", [string, ...string[]], number | undefined>, _$drizzle_orm_pg_core0.PgTextBuilderInitial<"active_operation_admitted_at", [string, ...string[]]>>;
8219
+ lastCompletedOperationId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"last_completed_operation_id", [string, ...string[]], number | undefined>, _$drizzle_orm_pg_core0.PgTextBuilderInitial<"last_completed_operation_id", [string, ...string[]]>>;
8220
+ }>;
8221
+ /** Active attempt pointer for each generic execution owner. */
8222
+ declare const activeExecutionAttemptsDual: _$_makaio_storage_drizzle0.DualTable<"active_execution_attempt", {
8223
+ executionId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.IsPrimaryKey<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"execution_id", [string, ...string[]], number | undefined>>>, _$drizzle_orm0.IsPrimaryKey<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"execution_id", [string, ...string[]]>>>>;
8224
+ executionAttemptId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"execution_attempt_id", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"execution_attempt_id", [string, ...string[]]>>>;
8225
+ }>;
8226
+ /** Idempotency binding from an owner request to its execution attempt. */
8227
+ declare const executionAttemptRequestsDual: _$_makaio_storage_drizzle0.DualTable<"execution_attempt_request", {
8228
+ executionId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"execution_id", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"execution_id", [string, ...string[]]>>>;
8229
+ requestKey: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"request_key", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"request_key", [string, ...string[]]>>>;
8230
+ executionAttemptId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"execution_attempt_id", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"execution_attempt_id", [string, ...string[]]>>>;
8231
+ }>;
8232
+ /** Provider operation claim and completion fact for one execution attempt. */
8233
+ declare const providerOperationsDual: _$_makaio_storage_drizzle0.DualTable<"provider_operation", {
8234
+ executionAttemptId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.IsPrimaryKey<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"execution_attempt_id", [string, ...string[]], number | undefined>>>, _$drizzle_orm0.IsPrimaryKey<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"execution_attempt_id", [string, ...string[]]>>>>;
8235
+ generation: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteIntegerBuilderInitial<string>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgIntegerBuilderInitial<string>>>;
8236
+ ownerId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"owner_id", [string, ...string[]], number | undefined>, _$drizzle_orm_pg_core0.PgTextBuilderInitial<"owner_id", [string, ...string[]]>>;
8237
+ token: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"token", [string, ...string[]], number | undefined>, _$drizzle_orm_pg_core0.PgTextBuilderInitial<"token", [string, ...string[]]>>;
8238
+ leaseExpiresAt: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"lease_expires_at", [string, ...string[]], number | undefined>, _$drizzle_orm_pg_core0.PgTextBuilderInitial<"lease_expires_at", [string, ...string[]]>>;
8239
+ obligation: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"obligation", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"obligation", [string, ...string[]]>>>;
8240
+ failureCount: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.HasDefault<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteIntegerBuilderInitial<string>>>, _$drizzle_orm0.HasDefault<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgIntegerBuilderInitial<string>>>>;
8241
+ lastFailure: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"last_failure", [string, ...string[]], number | undefined>, _$drizzle_orm_pg_core0.PgTextBuilderInitial<"last_failure", [string, ...string[]]>>;
8242
+ completionEvidence: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"completion_evidence", [string, ...string[]], number | undefined>, _$drizzle_orm_pg_core0.PgTextBuilderInitial<"completion_evidence", [string, ...string[]]>>;
8243
+ }>;
8244
+ /** Cancellation intent recorded for one execution attempt. */
8245
+ declare const executionAttemptCancellationsDual: _$_makaio_storage_drizzle0.DualTable<"execution_attempt_cancellation", {
8246
+ executionAttemptId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.IsPrimaryKey<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"execution_attempt_id", [string, ...string[]], number | undefined>>>, _$drizzle_orm0.IsPrimaryKey<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"execution_attempt_id", [string, ...string[]]>>>>;
8247
+ requestKey: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"request_key", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"request_key", [string, ...string[]]>>>;
8248
+ controlRevision: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteIntegerBuilderInitial<string>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgIntegerBuilderInitial<string>>>;
8249
+ requestedAt: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"requested_at", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"requested_at", [string, ...string[]]>>>;
8250
+ reason: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"reason", [string, ...string[]], number | undefined>, _$drizzle_orm_pg_core0.PgTextBuilderInitial<"reason", [string, ...string[]]>>;
8251
+ }>;
8252
+ /** Runtime-scoped receipts and reports for a cancellation control revision. */
8253
+ declare const executionAttemptControlEvidenceDual: _$_makaio_storage_drizzle0.DualTable<"execution_attempt_control_evidence", {
8254
+ executionAttemptId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"execution_attempt_id", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"execution_attempt_id", [string, ...string[]]>>>;
8255
+ controlRevision: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteIntegerBuilderInitial<string>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgIntegerBuilderInitial<string>>>;
8256
+ runtimeGeneration: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteIntegerBuilderInitial<string>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgIntegerBuilderInitial<string>>>;
8257
+ receiptJson: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"receipt_json", [string, ...string[]], number | undefined>, _$drizzle_orm_pg_core0.PgTextBuilderInitial<"receipt_json", [string, ...string[]]>>;
8258
+ reportJson: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"report_json", [string, ...string[]], number | undefined>, _$drizzle_orm_pg_core0.PgTextBuilderInitial<"report_json", [string, ...string[]]>>;
8259
+ }>;
8260
+ //#endregion
8151
8261
  //#region subsystems/workflow-engine/src/storage/schema.d.ts
8152
8262
  /**
8153
8263
  * Workflow definitions table.
@@ -8379,7 +8489,7 @@ declare const worklogFrameEntriesDual: _$_makaio_storage_drizzle0.DualTable<"wor
8379
8489
  /** Unique frame identifier within the execution. */frameId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.IsPrimaryKey<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"frame_id", [string, ...string[]], number | undefined>>>, _$drizzle_orm0.IsPrimaryKey<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"frame_id", [string, ...string[]]>>>>; /** Execution this frame belongs to. */
8380
8490
  executionId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"execution_id", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"execution_id", [string, ...string[]]>>>; /** Node identifier from the workflow definition. */
8381
8491
  nodeId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"node_id", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"node_id", [string, ...string[]]>>>; /** Node type discriminant. */
8382
- nodeType: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.$Type<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"node_type", [string, ...string[]], number | undefined>>, "station" | "delegate-agent" | "delegate-role" | "sequence" | "gate" | "parallel" | "iterate" | "iterate-chain" | "loop">, _$drizzle_orm0.$Type<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"node_type", [string, ...string[]]>>, "station" | "delegate-agent" | "delegate-role" | "sequence" | "gate" | "parallel" | "iterate" | "iterate-chain" | "loop">>;
8492
+ nodeType: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.$Type<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"node_type", [string, ...string[]], number | undefined>>, "station" | "delegate-agent" | "delegate-role" | "sequence" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop">, _$drizzle_orm0.$Type<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"node_type", [string, ...string[]]>>, "station" | "delegate-agent" | "delegate-role" | "sequence" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop">>;
8383
8493
  /**
8384
8494
  * Ordered path of frame IDs from the root frame to this frame (inclusive).
8385
8495
  * Stored as a JSON array for tree correlation.
@@ -8480,4 +8590,4 @@ declare function patchWorkflowState(db: MakaioDatabase, params: {
8480
8590
  value: JsonValue;
8481
8591
  }>;
8482
8592
  //#endregion
8483
- export { ATTEMPT_OPERATION_START_GATES, type AcceptedAttemptOutcome, type AdmitOperationInput, type AllocationRecordingDecision, type AllocationRefEvolution, type AllocationRefEvolutionDecision, type AllocationTerminationDecision, type AttemptCancellationControlState, type AttemptControlDeliveryDeps, type AttemptControlDeliveryResult, type AttemptControlEvidence, type AttemptControlEvidenceDecision, type AttemptControlEvidenceRepository, type AttemptControlState, type AttemptOperationStartGate, type AttemptOutcomeControlObservation, type AttemptOutcomeDecodingInput, type AttemptOutcomeSubmission, type AttemptOutcomeSubmissionDeps, type AttemptReachability, type AttemptReachabilityDecision, type AttemptSettlementRead, type AttemptSettlementSnapshot, type AuthorityDispatchRunnerOptions, type BeginProvisioningInput, type BootstrapStartAuthority, type BootstrapStartOptions, type BootstrapStartState, type BuildWorkflowAttemptInstructionOptions, type CommittedWorkflowOutcomeIdentity, type CompleteOperationInput, type CompleteProviderOperationInput, type DiscoveredAllocationDecision, DuplicateExecutionAttemptError, type DurableOutcome, EXECUTION_ATTEMPT_SETTLEMENT_KINDS, EXECUTION_ATTEMPT_STATUSES, type EnsureExecutionAttemptDecision, type EnsureExecutionAttemptInput, type EnsureExecutionAttemptPersistenceInput, ExecutionAttemptAuthority, type ExecutionAttemptCancellationDecision, type ExecutionAttemptCancellationIntent, type ExecutionAttemptCreate, type ExecutionAttemptHandlersDeps, type ExecutionAttemptOutcomeCommit, type ExecutionAttemptOutcomeDecision, type ExecutionAttemptPeerIdentity, type ExecutionAttemptRecord, type ExecutionAttemptRecoveryOperations, type ExecutionAttemptRepository, type ExecutionAttemptSettlementKind, type ExecutionAttemptStatus, type ExecutionOwnerId, type HandoffProviderOperationInput, type InfrastructureFailureDecision, type InitialProviderOperationClaimContext, type InitialProviderOperationClaimContextSource, type ListOpenProviderOperationsInput, type MarkRuntimeReadyInput, type OpenProviderOperationRecord, type OperationAdmissionDecision, type OperationAdmissionDeps, type OperationCompletionDecision, type OutcomeAcceptance, type OutcomeCodec, type OutcomeConvergence, type OutcomeConvergenceInput, type OutcomePreCommitValidation, PROVIDER_OPERATION_OBLIGATIONS, type PendingAttemptAbandonmentDecision, type ProcessBoundProvisionerLossProof, type ProviderOperationClaim, type ProviderOperationClaimDecision, type ProviderOperationCompletionDecision, type ProviderOperationLeasePolicy, type ProviderOperationLeaseRenewal, type ProviderOperationMutationDecision, type ProviderOperationObligation, type ProviderOperationOwnershipRecord, type ProvisionerIncarnationLossDecision, type ProvisioningAbsenceDecision, type ProvisioningClaimDecision, RUNTIME_PROBE_DELIVERY_TIMEOUT_MS, type ReadAttemptCancellationControlInput, type ReadAttemptSettlementInput, type ReadBootstrapStartStateInput, type ReconcileAttemptCancellationInput, type RecordAllocationInput, type RecordAllocationTerminatedInput, type RecordAttemptControlReceiptInput, type RecordInfrastructureFailureInput, type RecordProviderOperationUncertaintyInput, type RecordProvisionerIncarnationLostInput, type RecordProvisioningAbsentInput, type RecoverableAttemptRecord, type RegisterRuntimeInput, type RenewProviderOperationClaimInput, type ReportAttemptControlInput, type RequestAttemptCancellationInput, type RequestExecutionCancellationInput, type RuntimeOutcomeFence, RuntimeOutcomeFenceMismatchError, type RuntimeReadinessDecision, type RuntimeRegistrationDecision, type RuntimeRegistrationDeps, type TakeOverProviderOperationInput, WORKFLOW_WORKLOAD_KIND, WORKFLOW_WORKLOAD_VERSION, type WorkflowAttemptCancellation, type WorkflowAttemptOutcome, WorkflowAttemptOutcomeSchema, type WorkflowAttemptTechnicalFailure, WorkflowEngineService, type WorkflowEngineServiceOptions, WorkflowEngineToken, WorkflowExecutor, type WorkflowInvocationInput, WorkflowInvocationInputSchema, type WorkflowMaterializationSpecResolution, type WorkflowMaterializationSpecResolver, WorkflowStorageNamespace, WorkflowStorageSubjects, type WorkflowSuccessFinalizer, type WorkflowTriggerPayloadPredicate, WorkflowTriggerReconciler, type WorkflowWorkspaceRootResolver, assertRuntimeOutcomeFence, assertWorkflowTriggerPayload, buildWorkflowAttemptInstruction, buildWorkflowExpressionContextFromResolvedInputs, compileWorkflowTriggerBindingFilter, createWorkflowEnginePackage, decodeDurableOutcome, decodeWorkflowAttemptOutcome, durableOutcome, evaluateAttemptCancellation, evaluateAttemptControlReceipt, evaluateAttemptControlReport, evaluateAttemptReachability, evaluateOperationAdmission, evaluateOperationCompletion, evaluateProvisionerIncarnationLoss, evaluateRuntimeReadiness, evaluateRuntimeRegistration, getWorkflowState, initializeWorkflowState, isProviderOperationResolved, parseWorkflowAttemptInstruction, patchWorkflowState, readAttemptSettlementSnapshot, reconcileAttemptCancellation, registerBootstrapStartHandler, registerDrizzleWorkflowStorage, registerExecutionAttemptHandlers, registerOperationAdmissionHandler, registerRuntimeRegistrationHandler, replayEnsuredAttempt, resolveExecutionAttemptPeer, runAuthorityDispatchedAttempt, runShellStep, sameAllocationRef, sameDurableOutcome, snapshotAttemptControlReceipt, snapshotAttemptControlReport, snapshotAttemptOutcomeControl, snapshotEnsureExecutionAttemptInput, snapshotEnsureExecutionAttemptPersistenceInput, snapshotReadAttemptSettlementInput, snapshotRequestAttemptCancellationInput, snapshotRequestExecutionCancellationInput, submitAttemptOutcome, toCommittedWorkflowRunnerCompletion, toCommittedWorkflowRunnerResult, workflowAttemptOutcomeCodec, workflowDefinitionsDual, workflowEnginePackage, workflowExecutionStateDual, workflowExecutionStateEventsDual, workflowExecutionsDual, workflowFinalizationsDual, workflowStepSpansDual, worklogFrameEntriesDual, worklogSummariesDual };
8593
+ export { ATTEMPT_OPERATION_START_GATES, type AcceptedAttemptOutcome, type AdmitOperationInput, type AllocationRecordingDecision, type AllocationRefEvolution, type AllocationRefEvolutionDecision, type AllocationTerminationDecision, type AttemptCancellationControlState, type AttemptControlDeliveryDeps, type AttemptControlDeliveryResult, type AttemptControlEvidence, type AttemptControlEvidenceDecision, type AttemptControlEvidenceRepository, type AttemptControlState, type AttemptOperationStartGate, type AttemptOutcomeControlObservation, type AttemptOutcomeDecodingInput, type AttemptOutcomeSubmission, type AttemptOutcomeSubmissionDeps, type AttemptReachability, type AttemptReachabilityDecision, type AttemptSettlementRead, type AttemptSettlementSnapshot, type AuthorityDispatchRunnerOptions, type BeginProvisioningInput, type BootstrapStartAuthority, type BootstrapStartOptions, type BootstrapStartState, type BuildWorkflowAttemptInstructionOptions, type CommittedWorkflowOutcomeIdentity, type CompleteOperationInput, type CompleteProviderOperationInput, type DiscoveredAllocationDecision, DuplicateExecutionAttemptError, type DurableOutcome, EXECUTION_ATTEMPT_SETTLEMENT_KINDS, EXECUTION_ATTEMPT_STATUSES, type EnsureExecutionAttemptDecision, type EnsureExecutionAttemptInput, type EnsureExecutionAttemptPersistenceInput, ExecutionAttemptAuthority, type ExecutionAttemptCancellationDecision, type ExecutionAttemptCancellationIntent, type ExecutionAttemptCreate, type ExecutionAttemptHandlersDeps, type ExecutionAttemptOutcomeCommit, type ExecutionAttemptOutcomeDecision, type ExecutionAttemptPeerIdentity, type ExecutionAttemptRecord, type ExecutionAttemptRecoveryOperations, type ExecutionAttemptRepository, type ExecutionAttemptSettlementKind, type ExecutionAttemptStatus, type ExecutionOwnerId, type GetInstructionInput, type HandoffProviderOperationInput, type InfrastructureFailureDecision, type InitialProviderOperationClaimContext, type InitialProviderOperationClaimContextSource, type ListOpenProviderOperationsInput, type MarkRuntimeReadyInput, type OpenProviderOperationRecord, type OperationAdmissionDecision, type OperationAdmissionDeps, type OperationCompletionDecision, type OperationReportDecision, type OutcomeAcceptance, type OutcomeCodec, type OutcomeConvergence, type OutcomeConvergenceInput, type OutcomePreCommitValidation, PROVIDER_OPERATION_OBLIGATIONS, type PendingAttemptAbandonmentDecision, type ProcessBoundProvisionerLossProof, type ProviderOperationClaim, type ProviderOperationClaimDecision, type ProviderOperationCompletionDecision, type ProviderOperationLeasePolicy, type ProviderOperationLeaseRenewal, type ProviderOperationMutationDecision, type ProviderOperationObligation, type ProviderOperationOwnershipRecord, type ProvisionerIncarnationLossDecision, type ProvisioningAbsenceDecision, type ProvisioningClaimDecision, RUNTIME_PROBE_DELIVERY_TIMEOUT_MS, type ReadAttemptCancellationControlInput, type ReadAttemptSettlementInput, type ReadBootstrapStartStateInput, type ReconcileAttemptCancellationInput, type RecordAllocationInput, type RecordAllocationTerminatedInput, type RecordAttemptControlReceiptInput, type RecordInfrastructureFailureInput, type RecordProviderOperationUncertaintyInput, type RecordProvisionerIncarnationLostInput, type RecordProvisioningAbsentInput, type RecoverableAttemptRecord, type RegisterRuntimeInput, type RenewProviderOperationClaimInput, type ReportAttemptControlInput, type ReportOperationInput, type RequestAttemptCancellationInput, type RequestExecutionCancellationInput, type RuntimeOutcomeFence, RuntimeOutcomeFenceMismatchError, type RuntimeReadinessDecision, type RuntimeRegistrationDecision, type RuntimeRegistrationDeps, type TakeOverProviderOperationInput, WORKFLOW_WORKLOAD_KIND, WORKFLOW_WORKLOAD_VERSION, type WorkflowAttemptCancellation, type WorkflowAttemptOutcome, WorkflowAttemptOutcomeSchema, type WorkflowAttemptTechnicalFailure, WorkflowEngineService, type WorkflowEngineServiceOptions, WorkflowEngineToken, WorkflowExecutor, type WorkflowInvocationInput, WorkflowInvocationInputSchema, type WorkflowMaterializationSpecResolution, type WorkflowMaterializationSpecResolver, WorkflowStorageNamespace, WorkflowStorageSubjects, type WorkflowSuccessFinalizer, type WorkflowTriggerPayloadPredicate, WorkflowTriggerReconciler, type WorkflowWorkspaceRootResolver, activeExecutionAttemptsDual, assertRuntimeOutcomeFence, assertWorkflowTriggerPayload, buildWorkflowAttemptInstruction, buildWorkflowExpressionContextFromResolvedInputs, compileWorkflowTriggerBindingFilter, createWorkflowEnginePackage, decodeDurableOutcome, decodeWorkflowAttemptOutcome, durableOutcome, evaluateAttemptCancellation, evaluateAttemptControlReceipt, evaluateAttemptControlReport, evaluateAttemptReachability, evaluateOperationAdmission, evaluateOperationCompletion, evaluatePreparationReport, evaluateProvisionerIncarnationLoss, evaluateRuntimeReadiness, evaluateRuntimeRegistration, executionAttemptCancellationsDual, executionAttemptControlEvidenceDual, executionAttemptRequestsDual, executionAttemptsDual, getWorkflowState, initializeWorkflowState, isProviderOperationResolved, parseWorkflowAttemptInstruction, patchWorkflowState, providerOperationsDual, readAttemptSettlementSnapshot, reconcileAttemptCancellation, registerBootstrapStartHandler, registerDrizzleWorkflowStorage, registerExecutionAttemptHandlers, registerOperationAdmissionHandler, registerRuntimeRegistrationHandler, replayEnsuredAttempt, resolveExecutionAttemptPeer, runAuthorityDispatchedAttempt, runShellStep, sameAllocationRef, sameDurableOutcome, snapshotAttemptControlReceipt, snapshotAttemptControlReport, snapshotAttemptOutcomeControl, snapshotEnsureExecutionAttemptInput, snapshotEnsureExecutionAttemptPersistenceInput, snapshotReadAttemptSettlementInput, snapshotRequestAttemptCancellationInput, snapshotRequestExecutionCancellationInput, submitAttemptOutcome, toCommittedWorkflowRunnerCompletion, toCommittedWorkflowRunnerResult, workflowAttemptOutcomeCodec, workflowDefinitionsDual, workflowEnginePackage, workflowExecutionStateDual, workflowExecutionStateEventsDual, workflowExecutionsDual, workflowFinalizationsDual, workflowStepSpansDual, worklogFrameEntriesDual, worklogSummariesDual };
@@ -1 +1 @@
1
- import{B as e,C as t,D as n,E as r,G as i,K as a,O as o,S as s,T as c,Y as l,at as u,b as d,dt as ee,ht as te,q as ne,rt as f,tt as p,v as m,w as h,x as g,xt as _,y as v,yt as y}from"../authority-state-bootstrap-CV7HpB4v.mjs";import{_ as b,a as x,c as S,d as C,f as w,g as T,h as E,i as D,l as O,m as k,n as A,o as j,p as M,r as N,s as P,t as F,u as I}from"../package-Bn4iwDm3.mjs";import{_ as L,a as R,b as z,c as B,d as V,f as H,g as U,h as W,i as G,l as K,m as q,n as re,o as J,p as Y,r as X,s as ie,t as ae,u as oe,x as se,y as ce}from"../execution-attempt-repository-aabFKcXN.mjs";import{assertWorkflowTriggerPayload as le,compileWorkflowTriggerBindingFilter as ue}from"./workflow-trigger-binding-consumer.mjs";import{a as de,i as fe,n as pe,r as me,t as he}from"../execution-attempt-owner-recovery-CE_rvHKE.mjs";import{i as ge,n as _e,r as ve,t as ye}from"../attempt-control-evidence-7lwRG73Y.mjs";import{PROVIDER_OPERATION_OBLIGATIONS as be,isProviderOperationResolved as xe}from"./provider-operation.mjs";import{ExecutionAttemptControlDeliveryResponseSchema as Se,ExecutionAttemptSubjects as Z,JsonValueSchema as Q,WorkflowFrameStateSchema as Ce}from"@makaio/framework/contracts";function we(e,t){return t.executionAttemptId===e.executionAttemptId&&t.runtimeIncarnationId===e.runtimeIncarnationId&&t.runtimeGeneration===e.runtimeGeneration&&t.controlRevision===e.cancellation.controlRevision&&t.requestKey===e.cancellation.requestKey}async function Te(e,t){let{executionId:n,executionAttemptId:r,timeoutMs:i,signal:a}=t;if(!Number.isSafeInteger(i)||i<=0)throw TypeError(`timeoutMs must be a positive safe integer`);if(a?.aborted)return{kind:`aborted`};let o=await e.authority.readAttemptCancellationControl({executionId:n,executionAttemptId:r});if(a?.aborted)return{kind:`aborted`};if(o===null)return{kind:`not-found`};if(o.cancellation===null)return{kind:`not-requested`};let{runtimeGeneration:s,runtimeIncarnationId:c}=o.control;if(c===null||s===0)return{kind:`runtime-unregistered`};let l=o.evidence.find(e=>e.controlRevision===o.cancellation?.controlRevision&&e.runtimeGeneration===s);if(l?.receipt&&l.report)return{kind:`evidence-complete`};let u={executionAttemptId:r,runtimeIncarnationId:c,runtimeGeneration:s,cancellation:o.cancellation},d;try{d=Se.parse(await e.bus.request(Z.control.deliver,u,{timeout:i,signal:a}))}catch{return{kind:a?.aborted?`aborted`:`unavailable`}}return d.decision===`refused`?{kind:`refused`,reason:d.reason}:we(u,d.receipt)?{kind:`received`,persistence:await e.authority.recordAttemptControlReceipt({...d.receipt,executionId:n})}:{kind:`invalid-receipt`}}const Ee=new Set([...Ce.shape.status.options]);function $(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function De(e){if(!$(e))return!1;for(let t of Object.values(e))if(!$(t)||typeof t.status!=`string`||!Ee.has(t.status)||`result`in t&&t.result!==void 0&&!Q.safeParse(t.result).success)return!1;return!0}function Oe(e){let t={trigger:$(e.trigger)?e.trigger:{},steps:De(e.steps)?e.steps:{},inputs:Q.safeParse(e.inputs).success?e.inputs:{}};return`item`in e&&(t.item=e.item),typeof e.index==`number`&&(t.index=e.index),t}export{ae as ATTEMPT_OPERATION_START_GATES,re as DuplicateExecutionAttemptError,X as EXECUTION_ATTEMPT_SETTLEMENT_KINDS,G as EXECUTION_ATTEMPT_STATUSES,x as ExecutionAttemptAuthority,be as PROVIDER_OPERATION_OBLIGATIONS,O as RUNTIME_PROBE_DELIVERY_TIMEOUT_MS,Y as RuntimeOutcomeFenceMismatchError,t as WORKFLOW_WORKLOAD_KIND,h as WORKFLOW_WORKLOAD_VERSION,m as WorkflowAttemptOutcomeSchema,D as WorkflowEngineService,F as WorkflowEngineToken,P as WorkflowExecutor,c as WorkflowInvocationInputSchema,a as WorkflowStorageNamespace,ne as WorkflowStorageSubjects,j as WorkflowTriggerReconciler,q as assertRuntimeOutcomeFence,le as assertWorkflowTriggerPayload,r as buildWorkflowAttemptInstruction,Oe as buildWorkflowExpressionContextFromResolvedInputs,ue as compileWorkflowTriggerBindingFilter,A as createWorkflowEnginePackage,R as decodeDurableOutcome,v as decodeWorkflowAttemptOutcome,J as durableOutcome,K as evaluateAttemptCancellation,ye as evaluateAttemptControlReceipt,_e as evaluateAttemptControlReport,W as evaluateAttemptReachability,U as evaluateOperationAdmission,L as evaluateOperationCompletion,ce as evaluateProvisionerIncarnationLoss,z as evaluateRuntimeReadiness,se as evaluateRuntimeRegistration,E as getWorkflowState,T as initializeWorkflowState,xe as isProviderOperationResolved,n as parseWorkflowAttemptInstruction,b as patchWorkflowState,he as readAttemptSettlementSnapshot,Te as reconcileAttemptCancellation,S as registerBootstrapStartHandler,k as registerDrizzleWorkflowStorage,w as registerExecutionAttemptHandlers,C as registerOperationAdmissionHandler,I as registerRuntimeRegistrationHandler,pe as replayEnsuredAttempt,i as resolveExecutionAttemptPeer,o as runAuthorityDispatchedAttempt,e as runShellStep,ie as sameAllocationRef,B as sameDurableOutcome,ve as snapshotAttemptControlReceipt,ge as snapshotAttemptControlReport,oe as snapshotAttemptOutcomeControl,me as snapshotEnsureExecutionAttemptInput,fe as snapshotEnsureExecutionAttemptPersistenceInput,de as snapshotReadAttemptSettlementInput,V as snapshotRequestAttemptCancellationInput,H as snapshotRequestExecutionCancellationInput,M as submitAttemptOutcome,d as toCommittedWorkflowRunnerCompletion,g as toCommittedWorkflowRunnerResult,s as workflowAttemptOutcomeCodec,l as workflowDefinitionsDual,N as workflowEnginePackage,p as workflowExecutionStateDual,f as workflowExecutionStateEventsDual,u as workflowExecutionsDual,_ as workflowFinalizationsDual,ee as workflowStepSpansDual,te as worklogFrameEntriesDual,y as worklogSummariesDual};
1
+ import{B as e,C as t,Ct as n,D as r,Dt as i,E as a,G as o,K as s,Nt as c,O as l,S as u,T as d,Tt as ee,Y as te,at as ne,b as re,dt as f,ht as p,jt as m,kt as h,q as g,rt as _,tt as v,v as y,w as b,x,xt as S,y as C,yt as w}from"../authority-state-bootstrap-CvuWPywM.mjs";import{_ as T,a as E,c as D,d as O,f as k,g as A,h as j,i as M,l as N,m as P,n as F,o as I,p as L,r as R,s as z,t as B,u as V}from"../package-DYScYC0D.mjs";import{_ as H,a as U,b as W,c as G,d as K,f as q,g as J,h as Y,i as X,l as ie,m as ae,n as oe,o as se,p as ce,r as le,s as ue,t as de,u as fe,v as pe,x as me,y as he}from"../execution-attempt-repository-aabFKcXN.mjs";import{assertWorkflowTriggerPayload as ge,compileWorkflowTriggerBindingFilter as _e}from"./workflow-trigger-binding-consumer.mjs";import{a as ve,i as ye,n as be,r as xe,t as Se}from"../execution-attempt-owner-recovery-CE_rvHKE.mjs";import{i as Ce,n as we,r as Te,t as Ee}from"../attempt-control-evidence-7lwRG73Y.mjs";import{PROVIDER_OPERATION_OBLIGATIONS as De,isProviderOperationResolved as Oe}from"./provider-operation.mjs";import{ExecutionAttemptControlDeliveryResponseSchema as ke,ExecutionAttemptSubjects as Z,JsonValueSchema as Q,WorkflowFrameStateSchema as Ae}from"@makaio/framework/contracts";function je(e,t){return t.executionAttemptId===e.executionAttemptId&&t.runtimeIncarnationId===e.runtimeIncarnationId&&t.runtimeGeneration===e.runtimeGeneration&&t.controlRevision===e.cancellation.controlRevision&&t.requestKey===e.cancellation.requestKey}async function Me(e,t){let{executionId:n,executionAttemptId:r,timeoutMs:i,signal:a}=t;if(!Number.isSafeInteger(i)||i<=0)throw TypeError(`timeoutMs must be a positive safe integer`);if(a?.aborted)return{kind:`aborted`};let o=await e.authority.readAttemptCancellationControl({executionId:n,executionAttemptId:r});if(a?.aborted)return{kind:`aborted`};if(o===null)return{kind:`not-found`};if(o.cancellation===null)return{kind:`not-requested`};let{runtimeGeneration:s,runtimeIncarnationId:c}=o.control;if(c===null||s===0)return{kind:`runtime-unregistered`};let l=o.evidence.find(e=>e.controlRevision===o.cancellation?.controlRevision&&e.runtimeGeneration===s);if(l?.receipt&&l.report)return{kind:`evidence-complete`};let u={executionAttemptId:r,runtimeIncarnationId:c,runtimeGeneration:s,cancellation:o.cancellation},d;try{d=ke.parse(await e.bus.request(Z.control.deliver,u,{timeout:i,signal:a}))}catch{return{kind:a?.aborted?`aborted`:`unavailable`}}return d.decision===`refused`?{kind:`refused`,reason:d.reason}:je(u,d.receipt)?{kind:`received`,persistence:await e.authority.recordAttemptControlReceipt({...d.receipt,executionId:n})}:{kind:`invalid-receipt`}}const Ne=new Set([...Ae.shape.status.options]);function $(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Pe(e){if(!$(e))return!1;for(let t of Object.values(e))if(!$(t)||typeof t.status!=`string`||!Ne.has(t.status)||`result`in t&&t.result!==void 0&&!Q.safeParse(t.result).success)return!1;return!0}function Fe(e){let t={trigger:$(e.trigger)?e.trigger:{},steps:Pe(e.steps)?e.steps:{},inputs:Q.safeParse(e.inputs).success?e.inputs:{}};return`item`in e&&(t.item=e.item),typeof e.index==`number`&&(t.index=e.index),t}export{de as ATTEMPT_OPERATION_START_GATES,oe as DuplicateExecutionAttemptError,le as EXECUTION_ATTEMPT_SETTLEMENT_KINDS,X as EXECUTION_ATTEMPT_STATUSES,E as ExecutionAttemptAuthority,De as PROVIDER_OPERATION_OBLIGATIONS,N as RUNTIME_PROBE_DELIVERY_TIMEOUT_MS,ce as RuntimeOutcomeFenceMismatchError,t as WORKFLOW_WORKLOAD_KIND,b as WORKFLOW_WORKLOAD_VERSION,y as WorkflowAttemptOutcomeSchema,M as WorkflowEngineService,B as WorkflowEngineToken,z as WorkflowExecutor,d as WorkflowInvocationInputSchema,s as WorkflowStorageNamespace,g as WorkflowStorageSubjects,I as WorkflowTriggerReconciler,S as activeExecutionAttemptsDual,ae as assertRuntimeOutcomeFence,ge as assertWorkflowTriggerPayload,a as buildWorkflowAttemptInstruction,Fe as buildWorkflowExpressionContextFromResolvedInputs,_e as compileWorkflowTriggerBindingFilter,F as createWorkflowEnginePackage,U as decodeDurableOutcome,C as decodeWorkflowAttemptOutcome,se as durableOutcome,ie as evaluateAttemptCancellation,Ee as evaluateAttemptControlReceipt,we as evaluateAttemptControlReport,Y as evaluateAttemptReachability,J as evaluateOperationAdmission,H as evaluateOperationCompletion,pe as evaluatePreparationReport,he as evaluateProvisionerIncarnationLoss,W as evaluateRuntimeReadiness,me as evaluateRuntimeRegistration,n as executionAttemptCancellationsDual,ee as executionAttemptControlEvidenceDual,i as executionAttemptRequestsDual,h as executionAttemptsDual,j as getWorkflowState,A as initializeWorkflowState,Oe as isProviderOperationResolved,r as parseWorkflowAttemptInstruction,T as patchWorkflowState,m as providerOperationsDual,Se as readAttemptSettlementSnapshot,Me as reconcileAttemptCancellation,D as registerBootstrapStartHandler,P as registerDrizzleWorkflowStorage,k as registerExecutionAttemptHandlers,O as registerOperationAdmissionHandler,V as registerRuntimeRegistrationHandler,be as replayEnsuredAttempt,o as resolveExecutionAttemptPeer,l as runAuthorityDispatchedAttempt,e as runShellStep,ue as sameAllocationRef,G as sameDurableOutcome,Te as snapshotAttemptControlReceipt,Ce as snapshotAttemptControlReport,fe as snapshotAttemptOutcomeControl,xe as snapshotEnsureExecutionAttemptInput,ye as snapshotEnsureExecutionAttemptPersistenceInput,ve as snapshotReadAttemptSettlementInput,K as snapshotRequestAttemptCancellationInput,q as snapshotRequestExecutionCancellationInput,L as submitAttemptOutcome,re as toCommittedWorkflowRunnerCompletion,x as toCommittedWorkflowRunnerResult,u as workflowAttemptOutcomeCodec,te as workflowDefinitionsDual,R as workflowEnginePackage,v as workflowExecutionStateDual,_ as workflowExecutionStateEventsDual,ne as workflowExecutionsDual,c as workflowFinalizationsDual,f as workflowStepSpansDual,p as worklogFrameEntriesDual,w as worklogSummariesDual};
@@ -1,2 +1,2 @@
1
- import { n as createWorkflowEnginePackage, r as workflowEnginePackage, t as WorkflowEngineToken } from "../package-DdymauE9.mjs";
1
+ import { n as createWorkflowEnginePackage, r as workflowEnginePackage, t as WorkflowEngineToken } from "../package-CDj3F-L3.mjs";
2
2
  export { WorkflowEngineToken, createWorkflowEnginePackage, workflowEnginePackage };
@@ -1 +1 @@
1
- import{n as e,r as t,t as n}from"../package-Bn4iwDm3.mjs";export{n as WorkflowEngineToken,e as createWorkflowEnginePackage,t as workflowEnginePackage};
1
+ import{n as e,r as t,t as n}from"../package-DYScYC0D.mjs";export{n as WorkflowEngineToken,e as createWorkflowEnginePackage,t as workflowEnginePackage};
@@ -1 +1 @@
1
- import{Ct as e,H as t,M as n,c as r,d as i,i as a,l as o,q as s,r as c,s as l,t as u}from"../authority-state-bootstrap-CV7HpB4v.mjs";import{WORKFLOW_CANCELLED_REASON as d,WorkflowRunContextSchema as f}from"@makaio/framework/contracts";import*as p from"node:os";async function m(t,n,r,i){let a=await y(t,n,r);return await t.request(s.setExecution,{execution:a}),r===`completed`?await t.emit(e.execution.completed,{executionId:n.executionId,workflowId:n.workflowId,totalDuration:0,completedAt:a.completedAt}):await t.emit(e.execution.cancelled,{executionId:n.executionId,workflowId:n.workflowId,reason:i,completedAt:a.completedAt}),r===`cancelled`?{executionId:n.executionId,workflowId:n.workflowId,status:`cancelled`,...i===void 0?{}:{reason:i}}:{executionId:n.executionId,workflowId:n.workflowId,status:`completed`}}function h(e,t){return t.status===`completed`?{executionId:e.executionId,workflowId:e.workflowId,status:`completed`,...t.artifact===void 0?{}:{artifact:t.artifact}}:t.status===`cancelled`?{executionId:e.executionId,workflowId:e.workflowId,status:`cancelled`,...t.reason===void 0?{}:{reason:t.reason}}:t.status===`paused`?{executionId:e.executionId,workflowId:e.workflowId,status:`paused`,pausedAtGateId:t.pausedAtGateId,pausedAtFrameId:t.pausedAtFrameId}:{executionId:e.executionId,workflowId:e.workflowId,status:`failed`,error:t.error}}function g(e){let r,i=()=>{r=n({bus:e.bus,activeExecutions:e.activeExecutions,shellAbortControllers:e.shellAbortControllers,activeRunnerSteps:e.activeRunnerSteps,durableLifecycleTransitions:e.durableLifecycleTransitions,lifecyclePublications:e.lifecyclePublications,publishingLifecycleExecutions:e.publishingLifecycleExecutions,cancelTimeoutMs:t.cancelTimeoutMs},e.executionId,d).catch(t=>(console.error(`[WorkflowOrchestrator] Failed to persist cancellation for ${e.executionId}:`,t),!1))};return e.signal.addEventListener(`abort`,i,{once:!0}),e.signal.aborted&&i(),async()=>(e.signal.removeEventListener(`abort`,i),r??!1)}async function _(e,t){let n=await e.requestOptional(s.getExecution,{executionId:t});return n.handled?n.data.execution?.startedAt??void 0:void 0}async function v(e,t){return{id:t.executionId,workflowId:t.workflowId,coordinatorSessionId:t.coordinatorSessionId,status:`running`,inputs:t.inputs,config:t.config??{},startedAt:await _(e,t.executionId)??Date.now(),triggerPayload:t.triggerPayload,...t.artifactRef===void 0?{}:{artifactRef:t.artifactRef},scope:t.scope}}async function y(e,t,n){let r=Date.now();return{id:t.executionId,workflowId:t.workflowId,coordinatorSessionId:t.coordinatorSessionId,status:n,inputs:t.inputs,config:t.config??{},startedAt:await _(e,t.executionId)??r,completedAt:r,triggerPayload:t.triggerPayload,...t.artifactRef===void 0?{}:{artifactRef:t.artifactRef},scope:t.scope}}async function b(e,t,n,i,s,c,l,u,f){let m=e.suspensionStrategy===`wait-in-process`?void 0:await x(e.executionId,l,{required:!0}),h=await r({definition:t,execution:n,runContext:i,zodSchema:f?.artifact,bus:l}),g=new o(e.executionId,e.workflowId,t,n,s,l,u,void 0,h,{context:{repoPath:process.cwd(),makaioHome:process.env.MAKAIO_HOME??`${p.homedir()}/.makaio`,os:process.platform===`win32`?`win32`:process.platform===`darwin`?`darwin`:`linux`,arch:process.arch},env:e.env},{suspensionStrategy:e.suspensionStrategy,resumeFrames:m,runtimeLoopGates:c}),_=g.buildExpressionContext(),v=await a(t.root,g,_);return v.status===`failed`?{status:`failed`,error:v.error}:v.status===`paused`?{status:`paused`,pausedAtGateId:v.pausedAtGateId,pausedAtFrameId:v.pausedAtFrameId}:v.status===`cancelled`||u.aborted?{status:`cancelled`,reason:d}:{status:`completed`,artifact:h?.current}}async function x(e,t,n={}){try{let r=await t.requestOptional(s.listFrames,{executionId:e});if(!r.handled){if(n.required===!0)throw Error(`Frame storage handler is required to resume execution '${e}'.`);return}return r.data.frames.length===0?void 0:l(r.data.frames)}catch(e){if(n.required===!0)throw e;return}}function S(e,t){return f.parse({executionId:e.executionId,workflowId:e.workflowId,source:e.source.kind===`path`?{kind:`path`,path:e.materializationSpec?.sourcePath??``}:e.source,definitionSnapshot:e.source.kind===`definition`?e.definition??t:t,workerManifest:{contributionRefs:[]},inputs:e.inputs,config:e.config??{},scope:e.scope,triggerPayload:e.triggerPayload,...e.artifactRef===void 0?{}:{artifactRef:e.artifactRef},coordinatorSessionId:e.coordinatorSessionId,cancelSubject:e.cancelSubject,env:e.env,createdAt:Date.now(),suspensionStrategy:e.suspensionStrategy,...e.terminalAuthority===void 0?{}:{terminalAuthority:e.terminalAuthority},...e.materializationSpec===void 0?{}:{materializationSpec:e.materializationSpec}})}async function C(t,n,r,i,a){r.status=`paused`,await t.request(s.setExecution,{execution:r}),await t.emit(e.execution.paused,{executionId:n.executionId,workflowId:n.workflowId,pausedAtGateId:i,pausedAtFrameId:a})}async function w(t,n,r,i,a,o){r===`completed`?await t.emit(e.execution.completed,{executionId:n.executionId,workflowId:n.workflowId,totalDuration:a-i.startedAt,completedAt:a}):r===`cancelled`?await t.emit(e.execution.cancelled,{executionId:n.executionId,workflowId:n.workflowId,reason:d,completedAt:a}):await t.emit(e.execution.failed,{executionId:n.executionId,workflowId:n.workflowId,error:o??`Workflow execution failed`,completedAt:a})}async function T(e){let{config:t,loaded:n,bus:r,signal:a}=e,{definition:o}=n;if(a.aborted)return t.terminalAuthority===`authority`?{executionId:t.executionId,workflowId:t.workflowId,status:`cancelled`,reason:d}:m(r,t,`cancelled`,d);let l=await v(r,t),f=S(t,o);t.terminalAuthority===`authority`?await u(r,f,o):await i(r,l,f,o);let p=new Map(n.runtimeHandlers),_=n.runtimeLoopGates??new Map,y=new Map,x=new Map,T=new Map,E=new Map,D=new Map,O=new Set;y.set(t.executionId,{execution:l,workflow:o,runContext:f,runtimeHandlers:p,runtimeLoopGates:new Map(_)});let k=t.terminalAuthority===`authority`?async()=>!1:g({signal:a,executionId:t.executionId,bus:r,activeExecutions:y,shellAbortControllers:x,activeRunnerSteps:T,durableLifecycleTransitions:E,lifecyclePublications:D,publishingLifecycleExecutions:O}),A={status:`completed`},j=!1;try{o.root.nodes.length>0&&(c(o,_),A=await b(t,o,l,f,p,_,r,a,n.zodSchemas))}catch(e){A={status:`failed`,error:e instanceof Error?e.message:String(e)}}finally{j=await k(),y.clear()}if(j)return h(t,{status:`cancelled`,reason:d});if((a.aborted||l.status===`cancelled`)&&(A={status:`cancelled`,reason:d}),A.status===`paused`)return t.terminalAuthority!==`authority`&&await C(r,t,l,A.pausedAtGateId,A.pausedAtFrameId),h(t,A);if(t.terminalAuthority===`authority`)return h(t,A);let M=Date.now(),N=A.status===`failed`?A.error:void 0;return l.status=A.status,l.completedAt=M,l.error=N,await r.request(s.setExecution,{execution:l}),await w(r,t,A.status,l,M,N),h(t,A)}export{T as runWorkflowOrchestrator};
1
+ import{Ft as e,H as t,M as n,c as r,d as i,i as a,l as o,q as s,r as c,s as l,t as u}from"../authority-state-bootstrap-CvuWPywM.mjs";import{WORKFLOW_CANCELLED_REASON as d,WorkflowRunContextSchema as f}from"@makaio/framework/contracts";import*as p from"node:os";async function m(t,n,r,i){let a=await y(t,n,r);return await t.request(s.setExecution,{execution:a}),r===`completed`?await t.emit(e.execution.completed,{executionId:n.executionId,workflowId:n.workflowId,totalDuration:0,completedAt:a.completedAt}):await t.emit(e.execution.cancelled,{executionId:n.executionId,workflowId:n.workflowId,reason:i,completedAt:a.completedAt}),r===`cancelled`?{executionId:n.executionId,workflowId:n.workflowId,status:`cancelled`,...i===void 0?{}:{reason:i}}:{executionId:n.executionId,workflowId:n.workflowId,status:`completed`}}function h(e,t){return t.status===`completed`?{executionId:e.executionId,workflowId:e.workflowId,status:`completed`,...t.artifact===void 0?{}:{artifact:t.artifact}}:t.status===`cancelled`?{executionId:e.executionId,workflowId:e.workflowId,status:`cancelled`,...t.reason===void 0?{}:{reason:t.reason}}:t.status===`paused`?{executionId:e.executionId,workflowId:e.workflowId,status:`paused`,pausedAtGateId:t.pausedAtGateId,pausedAtFrameId:t.pausedAtFrameId}:{executionId:e.executionId,workflowId:e.workflowId,status:`failed`,error:t.error}}function g(e){let r,i=()=>{r=n({bus:e.bus,activeExecutions:e.activeExecutions,shellAbortControllers:e.shellAbortControllers,activeRunnerSteps:e.activeRunnerSteps,durableLifecycleTransitions:e.durableLifecycleTransitions,lifecyclePublications:e.lifecyclePublications,publishingLifecycleExecutions:e.publishingLifecycleExecutions,cancelTimeoutMs:t.cancelTimeoutMs},e.executionId,d).catch(t=>(console.error(`[WorkflowOrchestrator] Failed to persist cancellation for ${e.executionId}:`,t),!1))};return e.signal.addEventListener(`abort`,i,{once:!0}),e.signal.aborted&&i(),async()=>(e.signal.removeEventListener(`abort`,i),r??!1)}async function _(e,t){let n=await e.requestOptional(s.getExecution,{executionId:t});return n.handled?n.data.execution?.startedAt??void 0:void 0}async function v(e,t){return{id:t.executionId,workflowId:t.workflowId,coordinatorSessionId:t.coordinatorSessionId,status:`running`,inputs:t.inputs,config:t.config??{},startedAt:await _(e,t.executionId)??Date.now(),triggerPayload:t.triggerPayload,...t.artifactRef===void 0?{}:{artifactRef:t.artifactRef},scope:t.scope}}async function y(e,t,n){let r=Date.now();return{id:t.executionId,workflowId:t.workflowId,coordinatorSessionId:t.coordinatorSessionId,status:n,inputs:t.inputs,config:t.config??{},startedAt:await _(e,t.executionId)??r,completedAt:r,triggerPayload:t.triggerPayload,...t.artifactRef===void 0?{}:{artifactRef:t.artifactRef},scope:t.scope}}async function b(e,t,n,i,s,c,l,u,f){let{executionAttemptId:m,suspensionStrategy:h}=e,g=h===`wait-in-process`?void 0:await x(e.executionId,l,{required:!0}),_=await r({definition:t,execution:n,runContext:i,zodSchema:f?.artifact,bus:l}),v=new o(e.executionId,e.workflowId,t,n,s,l,u,void 0,_,{context:{repoPath:process.cwd(),makaioHome:process.env.MAKAIO_HOME??`${p.homedir()}/.makaio`,os:process.platform===`win32`?`win32`:process.platform===`darwin`?`darwin`:`linux`,arch:process.arch},env:e.env},{executionAttemptId:m,suspensionStrategy:h,resumeFrames:g,runtimeLoopGates:c}),y=v.buildExpressionContext(),b=await a(t.root,v,y);return b.status===`failed`?{status:`failed`,error:b.error}:b.status===`paused`?{status:`paused`,pausedAtGateId:b.pausedAtGateId,pausedAtFrameId:b.pausedAtFrameId}:b.status===`cancelled`||u.aborted?{status:`cancelled`,reason:d}:{status:`completed`,artifact:_?.current}}async function x(e,t,n={}){try{let r=await t.requestOptional(s.listFrames,{executionId:e});if(!r.handled){if(n.required===!0)throw Error(`Frame storage handler is required to resume execution '${e}'.`);return}return r.data.frames.length===0?void 0:l(r.data.frames)}catch(e){if(n.required===!0)throw e;return}}function S(e,t){return f.parse({executionId:e.executionId,workflowId:e.workflowId,source:e.source.kind===`path`?{kind:`path`,path:e.materializationSpec?.sourcePath??``}:e.source,definitionSnapshot:e.source.kind===`definition`?e.definition??t:t,workerManifest:{contributionRefs:[]},inputs:e.inputs,config:e.config??{},scope:e.scope,triggerPayload:e.triggerPayload,...e.artifactRef===void 0?{}:{artifactRef:e.artifactRef},coordinatorSessionId:e.coordinatorSessionId,cancelSubject:e.cancelSubject,env:e.env,createdAt:Date.now(),suspensionStrategy:e.suspensionStrategy,...e.terminalAuthority===void 0?{}:{terminalAuthority:e.terminalAuthority},...e.materializationSpec===void 0?{}:{materializationSpec:e.materializationSpec}})}async function C(t,n,r,i,a){r.status=`paused`,await t.request(s.setExecution,{execution:r}),await t.emit(e.execution.paused,{executionId:n.executionId,workflowId:n.workflowId,pausedAtGateId:i,pausedAtFrameId:a})}async function w(t,n,r,i,a,o){r===`completed`?await t.emit(e.execution.completed,{executionId:n.executionId,workflowId:n.workflowId,totalDuration:a-i.startedAt,completedAt:a}):r===`cancelled`?await t.emit(e.execution.cancelled,{executionId:n.executionId,workflowId:n.workflowId,reason:d,completedAt:a}):await t.emit(e.execution.failed,{executionId:n.executionId,workflowId:n.workflowId,error:o??`Workflow execution failed`,completedAt:a})}async function T(e){let{config:t,loaded:n,bus:r,signal:a}=e,{definition:o}=n;if(a.aborted)return t.terminalAuthority===`authority`?{executionId:t.executionId,workflowId:t.workflowId,status:`cancelled`,reason:d}:m(r,t,`cancelled`,d);let l=await v(r,t),f=S(t,o);t.terminalAuthority===`authority`?await u(r,f,o):await i(r,l,f,o);let p=new Map(n.runtimeHandlers),_=n.runtimeLoopGates??new Map,y=new Map,x=new Map,T=new Map,E=new Map,D=new Map,O=new Set;y.set(t.executionId,{execution:l,workflow:o,runContext:f,runtimeHandlers:p,runtimeLoopGates:new Map(_)});let k=t.terminalAuthority===`authority`?async()=>!1:g({signal:a,executionId:t.executionId,bus:r,activeExecutions:y,shellAbortControllers:x,activeRunnerSteps:T,durableLifecycleTransitions:E,lifecyclePublications:D,publishingLifecycleExecutions:O}),A={status:`completed`},j=!1;try{o.root.nodes.length>0&&(c(o,_),A=await b(t,o,l,f,p,_,r,a,n.zodSchemas))}catch(e){A={status:`failed`,error:e instanceof Error?e.message:String(e)}}finally{j=await k(),y.clear()}if(j)return h(t,{status:`cancelled`,reason:d});if((a.aborted||l.status===`cancelled`)&&(A={status:`cancelled`,reason:d}),A.status===`paused`)return t.terminalAuthority!==`authority`&&await C(r,t,l,A.pausedAtGateId,A.pausedAtFrameId),h(t,A);if(t.terminalAuthority===`authority`)return h(t,A);let M=Date.now(),N=A.status===`failed`?A.error:void 0;return l.status=A.status,l.completedAt=M,l.error=N,await r.request(s.setExecution,{execution:l}),await w(r,t,A.status,l,M,N),h(t,A)}export{T as runWorkflowOrchestrator};
@@ -1 +1 @@
1
- import{u as e}from"./framework-packages-CCIReKIe.mjs";function t(){let t=new Map;return{filter:e=>!!(e.transitionRules?.rules?.length||e.transitionActions?.actions),async processActivated(i,a,o){let s=o.getService(e);if(!s)throw Error(`TransitionContributionProcessor: TransitionPipelineService is not available — ensure '${e.name}' is started before extensions with transitionRules or transitionActions.`);let c=a.transitionRules?.rules??[],l=a.transitionActions?.actions,u=c.length>0,d=l!==void 0;u&&n(i,c),d&&r(i,l);let f=!1,p=!1;try{u&&(s.ruleRegistry.register(i,c),f=!0),d&&(s.actionRegistry.register(i,l),p=!0)}catch(e){throw f&&s.ruleRegistry.deregister(i),p&&s.actionRegistry.deregister(i),e}t.set(i,()=>{u&&s.ruleRegistry.deregister(i),d&&s.actionRegistry.deregister(i)})},async processStopped(e){let n=t.get(e);if(n){try{n()}catch(t){console.error(`[TransitionContributionProcessor] Deregister error for "${e}":`,t)}t.delete(e)}}}}function n(e,t){let n=`${e}.`;for(let e of t)if(!e.id.startsWith(n))throw Error(`TransitionContributionProcessor: rule '${e.id}' must be namespaced by extension '${n}'`)}function r(e,t){let n=`${e}.`;for(let e of Object.keys(t))if(!e.startsWith(n))throw Error(`TransitionContributionProcessor: action type '${e}' must be namespaced by extension '${n}'`)}export{t};
1
+ import{u as e}from"./framework-packages-Bg4edkkM.mjs";function t(){let t=new Map;return{filter:e=>!!(e.transitionRules?.rules?.length||e.transitionActions?.actions),async processActivated(i,a,o){let s=o.getService(e);if(!s)throw Error(`TransitionContributionProcessor: TransitionPipelineService is not available — ensure '${e.name}' is started before extensions with transitionRules or transitionActions.`);let c=a.transitionRules?.rules??[],l=a.transitionActions?.actions,u=c.length>0,d=l!==void 0;u&&n(i,c),d&&r(i,l);let f=!1,p=!1;try{u&&(s.ruleRegistry.register(i,c),f=!0),d&&(s.actionRegistry.register(i,l),p=!0)}catch(e){throw f&&s.ruleRegistry.deregister(i),p&&s.actionRegistry.deregister(i),e}t.set(i,()=>{u&&s.ruleRegistry.deregister(i),d&&s.actionRegistry.deregister(i)})},async processStopped(e){let n=t.get(e);if(n){try{n()}catch(t){console.error(`[TransitionContributionProcessor] Deregister error for "${e}":`,t)}t.delete(e)}}}}function n(e,t){let n=`${e}.`;for(let e of t)if(!e.id.startsWith(n))throw Error(`TransitionContributionProcessor: rule '${e.id}' must be namespaced by extension '${n}'`)}function r(e,t){let n=`${e}.`;for(let e of Object.keys(t))if(!e.startsWith(n))throw Error(`TransitionContributionProcessor: action type '${e}' must be namespaced by extension '${n}'`)}export{t};