@makaio/framework 1.0.0-dev-1789178780636 → 1.0.0-dev-1789234461336
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.
- package/dist/.makaio-build.json +2 -2
- package/dist/adapters/claude/index.d.mts +5 -5
- package/dist/artifact-CKz9YQPu.mjs +1 -0
- package/dist/authority-state-bootstrap-BkI-zYRx.mjs +1 -0
- package/dist/bus/index.d.mts +1 -1
- package/dist/bus/index.mjs +1 -1
- package/dist/bus-BZB7jNes.mjs +9 -0
- package/dist/contracts/artifact/index.d.mts +3 -3
- package/dist/contracts/artifact/index.mjs +1 -1
- package/dist/contracts/capabilities/index.d.mts +1 -1
- package/dist/contracts/extension/index.d.mts +2 -2
- package/dist/contracts/extension/index.mjs +1 -1
- package/dist/contracts/index.d.mts +49 -49
- package/dist/contracts/index.mjs +1 -1
- package/dist/contracts/materialization/index.d.mts +2 -2
- package/dist/contracts/materialization/index.mjs +1 -1
- package/dist/contracts/skill/index.d.mts +1 -1
- package/dist/contracts/variant/index.d.mts +1 -1
- package/dist/contracts/worker/index.d.mts +1 -1
- package/dist/contracts/worker/index.mjs +1 -1
- package/dist/contracts/workflow/index.d.mts +2 -2
- package/dist/contracts/workflow/index.mjs +1 -1
- package/dist/drizzle/0038_execution-attempt-repository.sql +73 -0
- package/dist/drizzle/meta/_journal.json +7 -0
- package/dist/{extension-DRwry8GA.mjs → extension-CfrTp3rC.mjs} +1 -1
- package/dist/{framework-packages-CCIReKIe.mjs → framework-packages-Bg4edkkM.mjs} +1 -1
- package/dist/{index-BDRfiSz8.d.mts → index-B4pPwpKk.d.mts} +1 -1
- package/dist/{index-DI07GxEW.d.mts → index-Bg3WVL8n.d.mts} +6 -6
- package/dist/{index-DNgrWs5j.d.mts → index-BmCm9R8_.d.mts} +21 -21
- package/dist/{index-BI8PuDkI.d.mts → index-BpQX136X.d.mts} +1 -1
- package/dist/{index-CdWxSwhQ2.d.mts → index-C6e9cwAl2.d.mts} +4 -4
- package/dist/{index-BFS-2kcS.d.mts → index-C_kOkO3E.d.mts} +16 -0
- package/dist/{index-DhunnX8V.d.mts → index-ClKwF6LE.d.mts} +83 -8
- package/dist/{index-4GaVggnR.d.mts → index-Cplq28EL.d.mts} +49 -33
- package/dist/{index-DtCVHx8-.d.mts → index-CzUUoexw.d.mts} +17 -9
- package/dist/{index-CsLb9M1M.d.mts → index-DMkzJCjS.d.mts} +1 -1
- package/dist/{index-GpfGF9AO2.d.mts → index-DXZImst_2.d.mts} +11 -8
- package/dist/{index-GPTSqhvy.d.mts → index-D_j_T3nS.d.mts} +1 -1
- package/dist/{index-KnN2OyWD2.d.mts → index-mTaFX2HH2.d.mts} +24 -24
- package/dist/{index-DVocx__-2.d.mts → index-zmDRR8gv2.d.mts} +11 -11
- package/dist/kernel/extension/index.d.mts +1 -1
- package/dist/kernel/index.d.mts +2 -2
- package/dist/kernel/observability/index.d.mts +1 -1
- package/dist/{kind-registration-WrdMzWmV.mjs → kind-registration-Dzfo6kyb.mjs} +1 -1
- package/dist/materialization-iFhpbs1s.mjs +1 -0
- package/dist/{namespace-DQpBf2CK.d.mts → namespace-B5IFLQc-.d.mts} +6 -6
- package/dist/{namespace-BrqkCnyt.d.mts → namespace-BsQPRiMd.d.mts} +6 -6
- package/dist/{namespace-CjvSQYRJ.d.mts → namespace-f6Kz5cwX.d.mts} +12 -12
- package/dist/node/transports/index.d.mts +32 -11
- package/dist/node/transports/index.mjs +2 -2
- package/dist/{package-DdymauE9.d.mts → package-CDj3F-L3.d.mts} +1 -0
- package/dist/package-D2Erka-E.mjs +7 -0
- package/dist/package.json +1 -1
- package/dist/packages-vF9F4M41.mjs +1 -0
- package/dist/runtime-node/index.d.mts +1 -1
- package/dist/runtime-node/index.mjs +1 -1
- package/dist/runtime-node/workflow-execution-bus-access.d.mts +37 -20
- package/dist/runtime-node/workflow-execution-bus-access.mjs +1 -1
- package/dist/runtime-node/workflow-worker/index.d.mts +1 -1
- package/dist/runtime-node/workflow-worker/index.mjs +1 -1
- package/dist/{schemas-Dl_3zv9l.mjs → schemas-CHM0wMq4.mjs} +1 -1
- package/dist/{schemas-DlVKv9QC.d.mts → schemas-CaBRbfhU.d.mts} +6 -6
- package/dist/{schemas-uA8246K9.d.mts → schemas-CeItAAQM.d.mts} +8 -8
- package/dist/{schemas-BcynDWi-.d.mts → schemas-Cj6Gbqch.d.mts} +7 -7
- package/dist/{schemas-CKVm28Oy.d.mts → schemas-JjyFxrC0.d.mts} +4 -0
- package/dist/services/adapter-subsystem/index.d.mts +2 -2
- package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
- package/dist/services/execution-target/index.d.mts +2 -2
- package/dist/services/execution-target/namespace.d.mts +1 -1
- package/dist/services/execution-target/schemas.d.mts +1 -1
- package/dist/services/filesystem/namespace.d.mts +6 -6
- package/dist/services/filesystem/schemas.d.mts +3 -3
- package/dist/services/index.d.mts +22 -22
- package/dist/services/index.mjs +1 -1
- package/dist/services/materialization/index.mjs +1 -1
- package/dist/services/provider-context/index.d.mts +1 -1
- package/dist/services/session/handlers/index.d.mts +1 -1
- package/dist/services/session/index.d.mts +3 -3
- package/dist/services/tools/index.mjs +1 -1
- package/dist/services/tray-menu/index.d.mts +2 -2
- package/dist/services/tray-menu/namespace.d.mts +1 -1
- package/dist/services/tray-menu/schemas.d.mts +1 -1
- package/dist/services/workflow-transitions/index.mjs +1 -1
- package/dist/{tools-Dj_ImUQ8.mjs → tools-C5Gy0IQG.mjs} +1 -1
- package/dist/{transition-B-YmSK-s.d.mts → transition-D-Lgbp1j.d.mts} +1 -1
- package/dist/{view-builder-BUZoNyEQ.d.mts → view-builder-CHUTXJDl.d.mts} +14 -1
- package/dist/{worker-IIubsEFG.mjs → worker-4pqm147Q.mjs} +1 -1
- package/dist/{workflow-dVr_9gaf.mjs → workflow-C5cS1mgK.mjs} +1 -1
- package/dist/workflow-engine/index.d.mts +118 -41
- package/dist/workflow-engine/index.mjs +1 -1
- package/dist/workflow-engine/package.d.mts +1 -1
- package/dist/workflow-engine/package.mjs +1 -1
- package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
- package/dist/{workflow-transitions-t6jn_pR_.mjs → workflow-transitions-C0sg3kar.mjs} +1 -1
- package/dist/{workflow-worker-C3ZbuhyA.mjs → workflow-worker-l-wflI6V.mjs} +2 -2
- package/package.json +1 -1
- package/dist/artifact-CH7yhgti.mjs +0 -1
- package/dist/authority-state-bootstrap-CV7HpB4v.mjs +0 -1
- package/dist/bus-CPlKKH4v.mjs +0 -9
- package/dist/materialization-C_92G2CL.mjs +0 -1
- package/dist/package-Bn4iwDm3.mjs +0 -7
- package/dist/packages-G3bMStlV.mjs +0 -1
|
@@ -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-
|
|
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";
|
|
@@ -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";
|
|
@@ -1589,8 +1589,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1589
1589
|
"delegate-agent": "delegate-agent";
|
|
1590
1590
|
"delegate-role": "delegate-role";
|
|
1591
1591
|
sequence: "sequence";
|
|
1592
|
-
gate: "gate";
|
|
1593
1592
|
parallel: "parallel";
|
|
1593
|
+
gate: "gate";
|
|
1594
1594
|
iterate: "iterate";
|
|
1595
1595
|
"iterate-chain": "iterate-chain";
|
|
1596
1596
|
loop: "loop";
|
|
@@ -1603,8 +1603,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1603
1603
|
cancelled: "cancelled";
|
|
1604
1604
|
failed: "failed";
|
|
1605
1605
|
running: "running";
|
|
1606
|
-
waiting: "waiting";
|
|
1607
1606
|
skipped: "skipped";
|
|
1607
|
+
waiting: "waiting";
|
|
1608
1608
|
}>;
|
|
1609
1609
|
attempt: z.ZodDefault<z.ZodNumber>;
|
|
1610
1610
|
iteration: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1635,8 +1635,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1635
1635
|
"delegate-agent": "delegate-agent";
|
|
1636
1636
|
"delegate-role": "delegate-role";
|
|
1637
1637
|
sequence: "sequence";
|
|
1638
|
-
gate: "gate";
|
|
1639
1638
|
parallel: "parallel";
|
|
1639
|
+
gate: "gate";
|
|
1640
1640
|
iterate: "iterate";
|
|
1641
1641
|
"iterate-chain": "iterate-chain";
|
|
1642
1642
|
loop: "loop";
|
|
@@ -1649,8 +1649,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1649
1649
|
cancelled: "cancelled";
|
|
1650
1650
|
failed: "failed";
|
|
1651
1651
|
running: "running";
|
|
1652
|
-
waiting: "waiting";
|
|
1653
1652
|
skipped: "skipped";
|
|
1653
|
+
waiting: "waiting";
|
|
1654
1654
|
}>;
|
|
1655
1655
|
attempt: z.ZodDefault<z.ZodNumber>;
|
|
1656
1656
|
iteration: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1678,8 +1678,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1678
1678
|
"delegate-agent": "delegate-agent";
|
|
1679
1679
|
"delegate-role": "delegate-role";
|
|
1680
1680
|
sequence: "sequence";
|
|
1681
|
-
gate: "gate";
|
|
1682
1681
|
parallel: "parallel";
|
|
1682
|
+
gate: "gate";
|
|
1683
1683
|
iterate: "iterate";
|
|
1684
1684
|
"iterate-chain": "iterate-chain";
|
|
1685
1685
|
loop: "loop";
|
|
@@ -1692,8 +1692,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1692
1692
|
cancelled: "cancelled";
|
|
1693
1693
|
failed: "failed";
|
|
1694
1694
|
running: "running";
|
|
1695
|
-
waiting: "waiting";
|
|
1696
1695
|
skipped: "skipped";
|
|
1696
|
+
waiting: "waiting";
|
|
1697
1697
|
}>;
|
|
1698
1698
|
attempt: z.ZodDefault<z.ZodNumber>;
|
|
1699
1699
|
iteration: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1720,8 +1720,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1720
1720
|
status: z.ZodEnum<{
|
|
1721
1721
|
cancelled: "cancelled";
|
|
1722
1722
|
rejected: "rejected";
|
|
1723
|
-
waiting: "waiting";
|
|
1724
1723
|
resumed: "resumed";
|
|
1724
|
+
waiting: "waiting";
|
|
1725
1725
|
"timed-out": "timed-out";
|
|
1726
1726
|
}>;
|
|
1727
1727
|
autoAction: z.ZodEnum<{
|
|
@@ -1852,8 +1852,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1852
1852
|
status: z.ZodEnum<{
|
|
1853
1853
|
cancelled: "cancelled";
|
|
1854
1854
|
rejected: "rejected";
|
|
1855
|
-
waiting: "waiting";
|
|
1856
1855
|
resumed: "resumed";
|
|
1856
|
+
waiting: "waiting";
|
|
1857
1857
|
"timed-out": "timed-out";
|
|
1858
1858
|
}>;
|
|
1859
1859
|
autoAction: z.ZodEnum<{
|
|
@@ -1877,8 +1877,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1877
1877
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1878
1878
|
cancelled: "cancelled";
|
|
1879
1879
|
rejected: "rejected";
|
|
1880
|
-
waiting: "waiting";
|
|
1881
1880
|
resumed: "resumed";
|
|
1881
|
+
waiting: "waiting";
|
|
1882
1882
|
"timed-out": "timed-out";
|
|
1883
1883
|
}>>;
|
|
1884
1884
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1893,8 +1893,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1893
1893
|
status: z.ZodEnum<{
|
|
1894
1894
|
cancelled: "cancelled";
|
|
1895
1895
|
rejected: "rejected";
|
|
1896
|
-
waiting: "waiting";
|
|
1897
1896
|
resumed: "resumed";
|
|
1897
|
+
waiting: "waiting";
|
|
1898
1898
|
"timed-out": "timed-out";
|
|
1899
1899
|
}>;
|
|
1900
1900
|
autoAction: z.ZodEnum<{
|
|
@@ -1928,8 +1928,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1928
1928
|
status: z.ZodEnum<{
|
|
1929
1929
|
cancelled: "cancelled";
|
|
1930
1930
|
rejected: "rejected";
|
|
1931
|
-
waiting: "waiting";
|
|
1932
1931
|
resumed: "resumed";
|
|
1932
|
+
waiting: "waiting";
|
|
1933
1933
|
"timed-out": "timed-out";
|
|
1934
1934
|
}>;
|
|
1935
1935
|
autoAction: z.ZodEnum<{
|
|
@@ -3327,7 +3327,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
3327
3327
|
tableName: "workflow_execution_frames";
|
|
3328
3328
|
dataType: "string";
|
|
3329
3329
|
columnType: "SQLiteText";
|
|
3330
|
-
data: "station" | "delegate-agent" | "delegate-role" | "sequence" | "
|
|
3330
|
+
data: "station" | "delegate-agent" | "delegate-role" | "sequence" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop";
|
|
3331
3331
|
driverParam: string;
|
|
3332
3332
|
notNull: true;
|
|
3333
3333
|
hasDefault: false;
|
|
@@ -3340,7 +3340,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
3340
3340
|
generated: undefined;
|
|
3341
3341
|
}, {}, {
|
|
3342
3342
|
length: number | undefined;
|
|
3343
|
-
$type: "station" | "delegate-agent" | "delegate-role" | "sequence" | "
|
|
3343
|
+
$type: "station" | "delegate-agent" | "delegate-role" | "sequence" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop";
|
|
3344
3344
|
}>;
|
|
3345
3345
|
path: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
3346
3346
|
name: string;
|
|
@@ -3385,7 +3385,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
3385
3385
|
tableName: "workflow_execution_frames";
|
|
3386
3386
|
dataType: "string";
|
|
3387
3387
|
columnType: "SQLiteText";
|
|
3388
|
-
data: "pending" | "completed" | "cancelled" | "failed" | "running" | "
|
|
3388
|
+
data: "pending" | "completed" | "cancelled" | "failed" | "running" | "skipped" | "waiting";
|
|
3389
3389
|
driverParam: string;
|
|
3390
3390
|
notNull: true;
|
|
3391
3391
|
hasDefault: true;
|
|
@@ -3398,7 +3398,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
3398
3398
|
generated: undefined;
|
|
3399
3399
|
}, {}, {
|
|
3400
3400
|
length: number | undefined;
|
|
3401
|
-
$type: "pending" | "completed" | "cancelled" | "failed" | "running" | "
|
|
3401
|
+
$type: "pending" | "completed" | "cancelled" | "failed" | "running" | "skipped" | "waiting";
|
|
3402
3402
|
}>;
|
|
3403
3403
|
attempt: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
3404
3404
|
name: string;
|
|
@@ -3668,7 +3668,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
3668
3668
|
tableName: "workflow_gate_instances";
|
|
3669
3669
|
dataType: "string";
|
|
3670
3670
|
columnType: "SQLiteText";
|
|
3671
|
-
data: "cancelled" | "rejected" | "
|
|
3671
|
+
data: "cancelled" | "rejected" | "resumed" | "waiting" | "timed-out";
|
|
3672
3672
|
driverParam: string;
|
|
3673
3673
|
notNull: true;
|
|
3674
3674
|
hasDefault: true;
|
|
@@ -3681,7 +3681,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
3681
3681
|
generated: undefined;
|
|
3682
3682
|
}, {}, {
|
|
3683
3683
|
length: number | undefined;
|
|
3684
|
-
$type: "cancelled" | "rejected" | "
|
|
3684
|
+
$type: "cancelled" | "rejected" | "resumed" | "waiting" | "timed-out";
|
|
3685
3685
|
}>;
|
|
3686
3686
|
autoAction: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
3687
3687
|
name: "auto_action";
|
|
@@ -5141,7 +5141,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
5141
5141
|
tableName: "worklog_frame_entries";
|
|
5142
5142
|
dataType: "string";
|
|
5143
5143
|
columnType: "SQLiteText";
|
|
5144
|
-
data: "station" | "delegate-agent" | "delegate-role" | "sequence" | "
|
|
5144
|
+
data: "station" | "delegate-agent" | "delegate-role" | "sequence" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop";
|
|
5145
5145
|
driverParam: string;
|
|
5146
5146
|
notNull: true;
|
|
5147
5147
|
hasDefault: false;
|
|
@@ -5154,7 +5154,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
5154
5154
|
generated: undefined;
|
|
5155
5155
|
}, {}, {
|
|
5156
5156
|
length: number | undefined;
|
|
5157
|
-
$type: "station" | "delegate-agent" | "delegate-role" | "sequence" | "
|
|
5157
|
+
$type: "station" | "delegate-agent" | "delegate-role" | "sequence" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop";
|
|
5158
5158
|
}>;
|
|
5159
5159
|
path: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
5160
5160
|
name: string;
|
|
@@ -5180,7 +5180,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
5180
5180
|
tableName: "worklog_frame_entries";
|
|
5181
5181
|
dataType: "string";
|
|
5182
5182
|
columnType: "SQLiteText";
|
|
5183
|
-
data: "pending" | "completed" | "cancelled" | "failed" | "running" | "
|
|
5183
|
+
data: "pending" | "completed" | "cancelled" | "failed" | "running" | "skipped" | "waiting";
|
|
5184
5184
|
driverParam: string;
|
|
5185
5185
|
notNull: true;
|
|
5186
5186
|
hasDefault: false;
|
|
@@ -5614,7 +5614,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
5614
5614
|
tableName: "worklog_gate_events";
|
|
5615
5615
|
dataType: "string";
|
|
5616
5616
|
columnType: "SQLiteText";
|
|
5617
|
-
data: "cancelled" | "rejected" | "
|
|
5617
|
+
data: "cancelled" | "rejected" | "resumed" | "waiting" | "timed-out";
|
|
5618
5618
|
driverParam: string;
|
|
5619
5619
|
notNull: true;
|
|
5620
5620
|
hasDefault: false;
|
|
@@ -5627,7 +5627,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
5627
5627
|
generated: undefined;
|
|
5628
5628
|
}, {}, {
|
|
5629
5629
|
length: number | undefined;
|
|
5630
|
-
$type: "cancelled" | "rejected" | "
|
|
5630
|
+
$type: "cancelled" | "rejected" | "resumed" | "waiting" | "timed-out";
|
|
5631
5631
|
}>;
|
|
5632
5632
|
prompt: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
5633
5633
|
name: "prompt";
|
|
@@ -6809,8 +6809,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6809
6809
|
"delegate-agent": "delegate-agent";
|
|
6810
6810
|
"delegate-role": "delegate-role";
|
|
6811
6811
|
sequence: "sequence";
|
|
6812
|
-
gate: "gate";
|
|
6813
6812
|
parallel: "parallel";
|
|
6813
|
+
gate: "gate";
|
|
6814
6814
|
iterate: "iterate";
|
|
6815
6815
|
"iterate-chain": "iterate-chain";
|
|
6816
6816
|
loop: "loop";
|
|
@@ -6854,8 +6854,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6854
6854
|
"delegate-agent": "delegate-agent";
|
|
6855
6855
|
"delegate-role": "delegate-role";
|
|
6856
6856
|
sequence: "sequence";
|
|
6857
|
-
gate: "gate";
|
|
6858
6857
|
parallel: "parallel";
|
|
6858
|
+
gate: "gate";
|
|
6859
6859
|
iterate: "iterate";
|
|
6860
6860
|
"iterate-chain": "iterate-chain";
|
|
6861
6861
|
loop: "loop";
|
|
@@ -7212,8 +7212,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
7212
7212
|
"delegate-agent": "delegate-agent";
|
|
7213
7213
|
"delegate-role": "delegate-role";
|
|
7214
7214
|
sequence: "sequence";
|
|
7215
|
-
gate: "gate";
|
|
7216
7215
|
parallel: "parallel";
|
|
7216
|
+
gate: "gate";
|
|
7217
7217
|
iterate: "iterate";
|
|
7218
7218
|
"iterate-chain": "iterate-chain";
|
|
7219
7219
|
loop: "loop";
|
|
@@ -7226,8 +7226,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
7226
7226
|
cancelled: "cancelled";
|
|
7227
7227
|
failed: "failed";
|
|
7228
7228
|
running: "running";
|
|
7229
|
-
waiting: "waiting";
|
|
7230
7229
|
skipped: "skipped";
|
|
7230
|
+
waiting: "waiting";
|
|
7231
7231
|
}>;
|
|
7232
7232
|
attempt: z.ZodDefault<z.ZodNumber>;
|
|
7233
7233
|
iteration: z.ZodOptional<z.ZodNumber>;
|
|
@@ -7258,8 +7258,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
7258
7258
|
"delegate-agent": "delegate-agent";
|
|
7259
7259
|
"delegate-role": "delegate-role";
|
|
7260
7260
|
sequence: "sequence";
|
|
7261
|
-
gate: "gate";
|
|
7262
7261
|
parallel: "parallel";
|
|
7262
|
+
gate: "gate";
|
|
7263
7263
|
iterate: "iterate";
|
|
7264
7264
|
"iterate-chain": "iterate-chain";
|
|
7265
7265
|
loop: "loop";
|
|
@@ -7272,8 +7272,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
7272
7272
|
cancelled: "cancelled";
|
|
7273
7273
|
failed: "failed";
|
|
7274
7274
|
running: "running";
|
|
7275
|
-
waiting: "waiting";
|
|
7276
7275
|
skipped: "skipped";
|
|
7276
|
+
waiting: "waiting";
|
|
7277
7277
|
}>;
|
|
7278
7278
|
attempt: z.ZodDefault<z.ZodNumber>;
|
|
7279
7279
|
iteration: z.ZodOptional<z.ZodNumber>;
|
|
@@ -7301,8 +7301,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
7301
7301
|
"delegate-agent": "delegate-agent";
|
|
7302
7302
|
"delegate-role": "delegate-role";
|
|
7303
7303
|
sequence: "sequence";
|
|
7304
|
-
gate: "gate";
|
|
7305
7304
|
parallel: "parallel";
|
|
7305
|
+
gate: "gate";
|
|
7306
7306
|
iterate: "iterate";
|
|
7307
7307
|
"iterate-chain": "iterate-chain";
|
|
7308
7308
|
loop: "loop";
|
|
@@ -7315,8 +7315,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
7315
7315
|
cancelled: "cancelled";
|
|
7316
7316
|
failed: "failed";
|
|
7317
7317
|
running: "running";
|
|
7318
|
-
waiting: "waiting";
|
|
7319
7318
|
skipped: "skipped";
|
|
7319
|
+
waiting: "waiting";
|
|
7320
7320
|
}>;
|
|
7321
7321
|
attempt: z.ZodDefault<z.ZodNumber>;
|
|
7322
7322
|
iteration: z.ZodOptional<z.ZodNumber>;
|
|
@@ -7343,8 +7343,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
7343
7343
|
status: z.ZodEnum<{
|
|
7344
7344
|
cancelled: "cancelled";
|
|
7345
7345
|
rejected: "rejected";
|
|
7346
|
-
waiting: "waiting";
|
|
7347
7346
|
resumed: "resumed";
|
|
7347
|
+
waiting: "waiting";
|
|
7348
7348
|
"timed-out": "timed-out";
|
|
7349
7349
|
}>;
|
|
7350
7350
|
autoAction: z.ZodEnum<{
|
|
@@ -7475,8 +7475,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
7475
7475
|
status: z.ZodEnum<{
|
|
7476
7476
|
cancelled: "cancelled";
|
|
7477
7477
|
rejected: "rejected";
|
|
7478
|
-
waiting: "waiting";
|
|
7479
7478
|
resumed: "resumed";
|
|
7479
|
+
waiting: "waiting";
|
|
7480
7480
|
"timed-out": "timed-out";
|
|
7481
7481
|
}>;
|
|
7482
7482
|
autoAction: z.ZodEnum<{
|
|
@@ -7500,8 +7500,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
7500
7500
|
status: z.ZodOptional<z.ZodEnum<{
|
|
7501
7501
|
cancelled: "cancelled";
|
|
7502
7502
|
rejected: "rejected";
|
|
7503
|
-
waiting: "waiting";
|
|
7504
7503
|
resumed: "resumed";
|
|
7504
|
+
waiting: "waiting";
|
|
7505
7505
|
"timed-out": "timed-out";
|
|
7506
7506
|
}>>;
|
|
7507
7507
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
@@ -7516,8 +7516,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
7516
7516
|
status: z.ZodEnum<{
|
|
7517
7517
|
cancelled: "cancelled";
|
|
7518
7518
|
rejected: "rejected";
|
|
7519
|
-
waiting: "waiting";
|
|
7520
7519
|
resumed: "resumed";
|
|
7520
|
+
waiting: "waiting";
|
|
7521
7521
|
"timed-out": "timed-out";
|
|
7522
7522
|
}>;
|
|
7523
7523
|
autoAction: z.ZodEnum<{
|
|
@@ -7551,8 +7551,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
7551
7551
|
status: z.ZodEnum<{
|
|
7552
7552
|
cancelled: "cancelled";
|
|
7553
7553
|
rejected: "rejected";
|
|
7554
|
-
waiting: "waiting";
|
|
7555
7554
|
resumed: "resumed";
|
|
7555
|
+
waiting: "waiting";
|
|
7556
7556
|
"timed-out": "timed-out";
|
|
7557
7557
|
}>;
|
|
7558
7558
|
autoAction: z.ZodEnum<{
|
|
@@ -8148,6 +8148,83 @@ declare const workflowFinalizationsDual: _$_makaio_storage_drizzle0.DualTable<"w
|
|
|
8148
8148
|
publishedAt: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteIntegerBuilderInitial<string>, _$drizzle_orm_pg_core0.PgBigInt53BuilderInitial<string>>;
|
|
8149
8149
|
}>;
|
|
8150
8150
|
//#endregion
|
|
8151
|
+
//#region subsystems/workflow-engine/src/storage/execution-attempt-schema.d.ts
|
|
8152
|
+
/**
|
|
8153
|
+
* Durable execution-attempt facts.
|
|
8154
|
+
*
|
|
8155
|
+
* These tables are owner-agnostic. `execution_id` is a caller-supplied owner
|
|
8156
|
+
* key, so it intentionally has no foreign key to owner-specific storage.
|
|
8157
|
+
* JSON payloads and ISO-8601 instants remain text to preserve their exact
|
|
8158
|
+
* durable representations across both dialects.
|
|
8159
|
+
*/
|
|
8160
|
+
declare const executionAttemptsDual: _$_makaio_storage_drizzle0.DualTable<"execution_attempt", {
|
|
8161
|
+
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[]]>>>>;
|
|
8162
|
+
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[]]>>>;
|
|
8163
|
+
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[]]>>>;
|
|
8164
|
+
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[]]>>>>;
|
|
8165
|
+
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[]]>>>;
|
|
8166
|
+
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[]]>>;
|
|
8167
|
+
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[]]>>;
|
|
8168
|
+
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[]]>>;
|
|
8169
|
+
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[]]>>;
|
|
8170
|
+
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[]]>>;
|
|
8171
|
+
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[]]>>;
|
|
8172
|
+
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[]]>>;
|
|
8173
|
+
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>>>>;
|
|
8174
|
+
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[]]>>;
|
|
8175
|
+
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[]]>>>;
|
|
8176
|
+
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[]]>>;
|
|
8177
|
+
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>>>>;
|
|
8178
|
+
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[]]>>;
|
|
8179
|
+
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[]]>>;
|
|
8180
|
+
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[]]>>>>;
|
|
8181
|
+
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[]]>>;
|
|
8182
|
+
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[]]>>;
|
|
8183
|
+
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[]]>>;
|
|
8184
|
+
activeOperationGeneration: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteIntegerBuilderInitial<string>, _$drizzle_orm_pg_core0.PgIntegerBuilderInitial<string>>;
|
|
8185
|
+
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[]]>>;
|
|
8186
|
+
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[]]>>;
|
|
8187
|
+
}>;
|
|
8188
|
+
/** Active attempt pointer for each generic execution owner. */
|
|
8189
|
+
declare const activeExecutionAttemptsDual: _$_makaio_storage_drizzle0.DualTable<"active_execution_attempt", {
|
|
8190
|
+
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[]]>>>>;
|
|
8191
|
+
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[]]>>>;
|
|
8192
|
+
}>;
|
|
8193
|
+
/** Idempotency binding from an owner request to its execution attempt. */
|
|
8194
|
+
declare const executionAttemptRequestsDual: _$_makaio_storage_drizzle0.DualTable<"execution_attempt_request", {
|
|
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
|
+
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[]]>>>;
|
|
8197
|
+
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[]]>>>;
|
|
8198
|
+
}>;
|
|
8199
|
+
/** Provider operation claim and completion fact for one execution attempt. */
|
|
8200
|
+
declare const providerOperationsDual: _$_makaio_storage_drizzle0.DualTable<"provider_operation", {
|
|
8201
|
+
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[]]>>>>;
|
|
8202
|
+
generation: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteIntegerBuilderInitial<string>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgIntegerBuilderInitial<string>>>;
|
|
8203
|
+
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[]]>>;
|
|
8204
|
+
token: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"token", [string, ...string[]], number | undefined>, _$drizzle_orm_pg_core0.PgTextBuilderInitial<"token", [string, ...string[]]>>;
|
|
8205
|
+
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[]]>>;
|
|
8206
|
+
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[]]>>>;
|
|
8207
|
+
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>>>>;
|
|
8208
|
+
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[]]>>;
|
|
8209
|
+
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[]]>>;
|
|
8210
|
+
}>;
|
|
8211
|
+
/** Cancellation intent recorded for one execution attempt. */
|
|
8212
|
+
declare const executionAttemptCancellationsDual: _$_makaio_storage_drizzle0.DualTable<"execution_attempt_cancellation", {
|
|
8213
|
+
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[]]>>>>;
|
|
8214
|
+
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[]]>>>;
|
|
8215
|
+
controlRevision: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteIntegerBuilderInitial<string>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgIntegerBuilderInitial<string>>>;
|
|
8216
|
+
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[]]>>>;
|
|
8217
|
+
reason: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"reason", [string, ...string[]], number | undefined>, _$drizzle_orm_pg_core0.PgTextBuilderInitial<"reason", [string, ...string[]]>>;
|
|
8218
|
+
}>;
|
|
8219
|
+
/** Runtime-scoped receipts and reports for a cancellation control revision. */
|
|
8220
|
+
declare const executionAttemptControlEvidenceDual: _$_makaio_storage_drizzle0.DualTable<"execution_attempt_control_evidence", {
|
|
8221
|
+
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[]]>>>;
|
|
8222
|
+
controlRevision: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteIntegerBuilderInitial<string>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgIntegerBuilderInitial<string>>>;
|
|
8223
|
+
runtimeGeneration: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteIntegerBuilderInitial<string>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgIntegerBuilderInitial<string>>>;
|
|
8224
|
+
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[]]>>;
|
|
8225
|
+
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[]]>>;
|
|
8226
|
+
}>;
|
|
8227
|
+
//#endregion
|
|
8151
8228
|
//#region subsystems/workflow-engine/src/storage/schema.d.ts
|
|
8152
8229
|
/**
|
|
8153
8230
|
* Workflow definitions table.
|
|
@@ -8379,7 +8456,7 @@ declare const worklogFrameEntriesDual: _$_makaio_storage_drizzle0.DualTable<"wor
|
|
|
8379
8456
|
/** 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
8457
|
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
8458
|
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" | "
|
|
8459
|
+
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
8460
|
/**
|
|
8384
8461
|
* Ordered path of frame IDs from the root frame to this frame (inclusive).
|
|
8385
8462
|
* Stored as a JSON array for tree correlation.
|
|
@@ -8480,4 +8557,4 @@ declare function patchWorkflowState(db: MakaioDatabase, params: {
|
|
|
8480
8557
|
value: JsonValue;
|
|
8481
8558
|
}>;
|
|
8482
8559
|
//#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 };
|
|
8560
|
+
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,
|
|
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-BkI-zYRx.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-D2Erka-E.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-
|
|
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-
|
|
1
|
+
import{n as e,r as t,t as n}from"../package-D2Erka-E.mjs";export{n as WorkflowEngineToken,e as createWorkflowEnginePackage,t as workflowEnginePackage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
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-BkI-zYRx.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 +1 @@
|
|
|
1
|
-
import{u as e}from"./framework-packages-
|
|
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};
|