@makaio/framework 1.0.0-dev-1788966380232 → 1.0.0-dev-1788978977154

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 (82) hide show
  1. package/dist/.makaio-build.json +2 -2
  2. package/dist/authority-state-bootstrap-B8jG1zI1.mjs +1 -0
  3. package/dist/contracts/adapter/index.d.mts +1 -1
  4. package/dist/contracts/artifact/index.d.mts +2 -2
  5. package/dist/contracts/capabilities/index.d.mts +1 -1
  6. package/dist/contracts/client/index.d.mts +1 -1
  7. package/dist/contracts/extension/index.d.mts +3 -3
  8. package/dist/contracts/facet/index.d.mts +1 -1
  9. package/dist/contracts/harness/index.d.mts +1 -1
  10. package/dist/contracts/index.d.mts +96 -230
  11. package/dist/contracts/materialization/index.d.mts +2 -2
  12. package/dist/contracts/session/index.d.mts +2 -2
  13. package/dist/contracts/shared/index.d.mts +1 -1
  14. package/dist/contracts/variant/index.d.mts +1 -1
  15. package/dist/contracts/worker/index.d.mts +1 -1
  16. package/dist/contracts/workflow/index.d.mts +3 -3
  17. package/dist/{execution-attempt-repository--RVils5-.d.mts → execution-attempt-repository-DSpz2kyW.d.mts} +7 -25
  18. package/dist/{index-BqR2xDu6.d.mts → index-2ww5IWeo.d.mts} +67 -67
  19. package/dist/{index-LjLUr3Dm.d.mts → index-BIlFSGnW.d.mts} +10 -10
  20. package/dist/{index-nJvYTAbD.d.mts → index-BfwHYuRf.d.mts} +1 -1
  21. package/dist/{index-BKwYE1Qk.d.mts → index-Bzxs2nVR.d.mts} +5 -5
  22. package/dist/{index-MtDz_goH.d.mts → index-CQ8MVY5G.d.mts} +251 -63
  23. package/dist/{index-09eal6WI2.d.mts → index-CVBlYxKV2.d.mts} +11 -11
  24. package/dist/{index-DO633_D-.d.mts → index-CWq-9Mpk.d.mts} +38 -38
  25. package/dist/{index-BkQlL0Pl.d.mts → index-CWuPfOzU.d.mts} +6 -6
  26. package/dist/{index-Bxq_zO2E.d.mts → index-CilWtThn.d.mts} +4 -4
  27. package/dist/{index-B7wjmaev.d.mts → index-CjMMvZch.d.mts} +12 -12
  28. package/dist/{index-ud9i9pue.d.mts → index-DCHdW5g-.d.mts} +16 -16
  29. package/dist/{index-D7IZQNhD.d.mts → index-D_oDoazF.d.mts} +1 -1
  30. package/dist/{index-DU9Y9tes2.d.mts → index-Dckvm0Ml2.d.mts} +12 -12
  31. package/dist/{index-DzlGAEws.d.mts → index-Dzozmb5u.d.mts} +1 -1
  32. package/dist/{index-v9TbeVee2.d.mts → index-OQeNNbiX2.d.mts} +6 -6
  33. package/dist/{index-Bnm0QvJ4.d.mts → index-VLZJ3Scz.d.mts} +14 -14
  34. package/dist/{index-BT5qcsEf2.d.mts → index-h7_ddTvG2.d.mts} +15 -15
  35. package/dist/kernel/extension/index.d.mts +1 -1
  36. package/dist/kernel/index.d.mts +2 -2
  37. package/dist/kernel/observability/index.d.mts +1 -1
  38. package/dist/{namespace-wuGMWlyz.d.mts → namespace-B0_Sg-1m.d.mts} +2 -2
  39. package/dist/{namespace-BYsKOw-g.d.mts → namespace-CY-9Evdf.d.mts} +3 -3
  40. package/dist/package-BDaNGoBY.mjs +7 -0
  41. package/dist/{package-Bl0mcGb8.d.mts → package-DQgqWIcX.d.mts} +45 -41
  42. package/dist/package.json +1 -1
  43. package/dist/runtime-node/index.d.mts +1 -1
  44. package/dist/runtime-node/index.mjs +1 -1
  45. package/dist/runtime-node/workflow-worker/index.d.mts +1 -1
  46. package/dist/runtime-node/workflow-worker/index.mjs +1 -1
  47. package/dist/{schemas-D2HmGmCt.d.mts → schemas-CSeLgroC.d.mts} +1 -1
  48. package/dist/{schemas-BYyT43gX.d.mts → schemas-C_kxk6gr.d.mts} +4 -4
  49. package/dist/{schemas-CvUe_yff.d.mts → schemas-uWyTgMWm.d.mts} +1 -1
  50. package/dist/services/adapter-runtime/index.d.mts +3 -3
  51. package/dist/services/adapter-runtime/namespace.d.mts +1 -1
  52. package/dist/services/adapter-runtime/schemas.d.mts +1 -1
  53. package/dist/services/context-rules/index.d.mts +3 -3
  54. package/dist/services/filesystem/namespace.d.mts +6 -6
  55. package/dist/services/filesystem/schemas.d.mts +3 -3
  56. package/dist/services/harness/index.d.mts +3 -3
  57. package/dist/services/index.d.mts +13 -13
  58. package/dist/services/session/index.d.mts +1 -1
  59. package/dist/services/session/messages/namespace.d.mts +1 -1
  60. package/dist/services/settings/namespace.d.mts +4 -4
  61. package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
  62. package/dist/services/subagent-template/index.d.mts +1 -1
  63. package/dist/services/subagent-template/schemas.d.mts +1 -1
  64. package/dist/{transition-CgsrmsfE.d.mts → transition-h6UZHLGq.d.mts} +1 -1
  65. package/dist/{types-ZvPhKp3j.d.mts → types-Bcsp_FCp.d.mts} +6 -6
  66. package/dist/{view-builder-D54kvyf7.d.mts → view-builder-BMmmF-Mf.d.mts} +11 -11
  67. package/dist/workflow-engine/execution-attempt-repository.d.mts +1 -1
  68. package/dist/workflow-engine/index.d.mts +64 -64
  69. package/dist/workflow-engine/index.mjs +1 -1
  70. package/dist/workflow-engine/package.d.mts +1 -1
  71. package/dist/workflow-engine/package.mjs +1 -1
  72. package/dist/workflow-engine/provider-operation.d.mts +1 -1
  73. package/dist/workflow-engine/testing/conformance.d.mts +1 -1
  74. package/dist/workflow-engine/testing/index.d.mts +15 -4
  75. package/dist/workflow-engine/testing/index.mjs +1 -1
  76. package/dist/workflow-engine/testing/sqlite.d.mts +1 -1
  77. package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
  78. package/dist/workflow-worker-BAO7pQpx.mjs +2 -0
  79. package/package.json +1 -1
  80. package/dist/authority-state-bootstrap-DgoHPc9J.mjs +0 -1
  81. package/dist/package-B-xpYKe8.mjs +0 -7
  82. package/dist/workflow-worker-CrnDwpkP.mjs +0 -2
@@ -1,11 +1,11 @@
1
- import { $ as InitialProviderOperationClaimContextSource, 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 EnsureExecutionAttemptPersistenceInput, H as RegisterRuntimeInput, Ht as AttemptSettlementSnapshot, I as RecordAllocationInput, It as RequestExecutionCancellationInput, J as sameAllocationRef, Jt as replayEnsuredAttempt, K as decodeDurableOutcome, Kt as ReadAttemptSettlementInput, 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, R as RecordInfrastructureFailureInput, Rt as snapshotAttemptOutcomeControl, S as ExecutionAttemptSettlementKind, St as RuntimeOutcomeFence, Tt as evaluateAttemptReachability, Ut as EnsureExecutionAttemptDecision, V as RecoverableAttemptRecord, Vt as AttemptSettlementRead, W as RuntimeReadinessDecision, Wt as EnsureExecutionAttemptInput, X as CompleteProviderOperationInput, Xt as snapshotEnsureExecutionAttemptPersistenceInput, Y as sameDurableOutcome, Yt as snapshotEnsureExecutionAttemptInput, Z as HandoffProviderOperationInput, Zt as snapshotReadAttemptSettlementInput, _ as EXECUTION_ATTEMPT_STATUSES, _t as isProviderOperationResolved, a as AllocationRefEvolutionDecision, at as ProviderOperationClaimDecision, b as ExecutionAttemptRecoveryOperations, bt as AttemptReachability, ct as ProviderOperationLeaseRenewal, d as BootstrapStartState, dt as ProviderOperationOwnershipRecord, 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, 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, nt as PROVIDER_OPERATION_OBLIGATIONS, o as AllocationTerminationDecision, ot as ProviderOperationCompletionDecision, p as DiscoveredAllocationDecision, pt as ProvisioningAbsenceDecision, q as durableOutcome, qt as readAttemptSettlementSnapshot, r as AllocationRecordingDecision, rt as ProcessBoundProvisionerLossProof, s as AttemptControlState, st as ProviderOperationLeasePolicy, t as ATTEMPT_OPERATION_START_GATES, 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--RVils5-.mjs";
2
- import { A as WorkflowWorkspaceRootResolver, C as OutcomePreCommitValidation, D as BootstrapStartOptions, E as BootstrapStartAuthority, O as WorkflowMaterializationSpecResolution, S as OutcomeConvergenceInput, T as ExecutionAttemptAuthority, _ as ExecutionAttemptHandlersDeps, a as WorkflowEngineServiceOptions, b as AttemptOutcomeSubmissionDeps, c as CommittedWorkflowOutcomeIdentity, d as WorkflowAttemptOutcomeSchema, f as WorkflowAttemptTechnicalFailure, g as AttemptOutcomeDecodingInput, h as workflowAttemptOutcomeCodec, i as WorkflowEngineService, j as registerDrizzleWorkflowStorage, k as WorkflowMaterializationSpecResolver, l as WorkflowAttemptCancellation, m as toCommittedWorkflowRunnerResult, n as createWorkflowEnginePackage, o as WorkflowTriggerReconciler, p as decodeWorkflowAttemptOutcome, r as workflowEnginePackage, s as WorkflowExecutor, t as WorkflowEngineToken, u as WorkflowAttemptOutcome, v as registerExecutionAttemptHandlers, w as submitAttemptOutcome, x as OutcomeConvergence, y as AttemptOutcomeSubmission } from "../package-Bl0mcGb8.mjs";
1
+ import { $ as InitialProviderOperationClaimContextSource, 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 EnsureExecutionAttemptPersistenceInput, H as RegisterRuntimeInput, Ht as AttemptSettlementSnapshot, I as RecordAllocationInput, It as RequestExecutionCancellationInput, J as sameAllocationRef, Jt as replayEnsuredAttempt, K as decodeDurableOutcome, Kt as ReadAttemptSettlementInput, 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, R as RecordInfrastructureFailureInput, Rt as snapshotAttemptOutcomeControl, S as ExecutionAttemptSettlementKind, St as RuntimeOutcomeFence, Tt as evaluateAttemptReachability, Ut as EnsureExecutionAttemptDecision, V as RecoverableAttemptRecord, Vt as AttemptSettlementRead, W as RuntimeReadinessDecision, Wt as EnsureExecutionAttemptInput, X as CompleteProviderOperationInput, Xt as snapshotEnsureExecutionAttemptPersistenceInput, Y as sameDurableOutcome, Yt as snapshotEnsureExecutionAttemptInput, Z as HandoffProviderOperationInput, Zt as snapshotReadAttemptSettlementInput, _ as EXECUTION_ATTEMPT_STATUSES, _t as isProviderOperationResolved, a as AllocationRefEvolutionDecision, at as ProviderOperationClaimDecision, b as ExecutionAttemptRecoveryOperations, bt as AttemptReachability, ct as ProviderOperationLeaseRenewal, d as BootstrapStartState, dt as ProviderOperationOwnershipRecord, 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, 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, nt as PROVIDER_OPERATION_OBLIGATIONS, o as AllocationTerminationDecision, ot as ProviderOperationCompletionDecision, p as DiscoveredAllocationDecision, pt as ProvisioningAbsenceDecision, q as durableOutcome, qt as readAttemptSettlementSnapshot, r as AllocationRecordingDecision, rt as ProcessBoundProvisionerLossProof, s as AttemptControlState, st as ProviderOperationLeasePolicy, t as ATTEMPT_OPERATION_START_GATES, 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-DSpz2kyW.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-DQgqWIcX.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";
6
6
  import { BaseMessageContext } from "@makaio/framework/core";
7
7
  import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
8
- import { ExecutionAttemptInstruction, ExecutionPreservationRequirements, JsonPatchOperation, JsonValue, WorkflowAutomationTriggerBinding, WorkflowExecution, WorkflowExecutionSchema, WorkflowListQuerySchema, WorkflowRunContext, WorkflowRunResult, WorkflowWorkerConfig, WorkspaceRequirement, createWorkflowFinalizerNamespace } from "@makaio/framework/contracts";
8
+ import { AcceptedAttemptOutcome as AcceptedAttemptOutcome$1, ExecutionAttemptInstruction, ExecutionPreservationRequirements, JsonPatchOperation, JsonValue, WorkflowAutomationTriggerBinding, WorkflowExecution, WorkflowExecutionSchema, WorkflowListQuerySchema, WorkflowRunContext, WorkflowRunResult, WorkflowWorkerConfig, WorkspaceRequirement, createWorkflowFinalizerNamespace } from "@makaio/framework/contracts";
9
9
  import { IMakaioBus } from "@makaio/framework/bus";
10
10
  import * as _$drizzle_orm_sqlite_core0 from "drizzle-orm/sqlite-core";
11
11
  import * as _$drizzle_orm_pg_core0 from "drizzle-orm/pg-core";
@@ -418,9 +418,9 @@ interface AuthorityDispatchRunnerOptions<TOutcome> {
418
418
  * request. The pending-abandonment CAS distinguishes a confirmed pre-allocation
419
419
  * failure from a lost acknowledgement after provisioning, allocation, or settlement.
420
420
  * @param options - Authority, owner identity, immutable instruction, and dispatch operation.
421
- * @returns The Authority-committed outcome.
421
+ * @returns The canonical outcome, frozen control observation, and owner acceptance.
422
422
  */
423
- declare function runAuthorityDispatchedAttempt<TOutcome>(options: AuthorityDispatchRunnerOptions<TOutcome>): Promise<TOutcome>;
423
+ declare function runAuthorityDispatchedAttempt<TOutcome>(options: AuthorityDispatchRunnerOptions<TOutcome>): Promise<AcceptedAttemptOutcome$1<TOutcome>>;
424
424
  //#endregion
425
425
  //#region subsystems/workflow-engine/src/storage/namespace.d.ts
426
426
  /**
@@ -798,8 +798,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
798
798
  completed: "completed";
799
799
  cancelled: "cancelled";
800
800
  failed: "failed";
801
- paused: "paused";
802
801
  running: "running";
802
+ paused: "paused";
803
803
  finalizing: "finalizing";
804
804
  }>;
805
805
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>;
@@ -840,8 +840,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
840
840
  completed: "completed";
841
841
  cancelled: "cancelled";
842
842
  failed: "failed";
843
- paused: "paused";
844
843
  running: "running";
844
+ paused: "paused";
845
845
  finalizing: "finalizing";
846
846
  }>;
847
847
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>;
@@ -889,8 +889,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
889
889
  completed: "completed";
890
890
  cancelled: "cancelled";
891
891
  failed: "failed";
892
- paused: "paused";
893
892
  running: "running";
893
+ paused: "paused";
894
894
  finalizing: "finalizing";
895
895
  }>;
896
896
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>;
@@ -1075,8 +1075,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1075
1075
  "exit-and-resume": "exit-and-resume";
1076
1076
  }>>;
1077
1077
  terminalAuthority: z.ZodOptional<z.ZodEnum<{
1078
- authority: "authority";
1079
1078
  worker: "worker";
1079
+ authority: "authority";
1080
1080
  }>>;
1081
1081
  materializationSpec: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1082
1082
  kind: z.ZodLiteral<"local-directory">;
@@ -1144,12 +1144,12 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1144
1144
  frameId: z.ZodString;
1145
1145
  nodeId: z.ZodString;
1146
1146
  nodeType: z.ZodEnum<{
1147
- sequence: "sequence";
1148
1147
  station: "station";
1149
1148
  "delegate-agent": "delegate-agent";
1150
1149
  "delegate-role": "delegate-role";
1151
- gate: "gate";
1150
+ sequence: "sequence";
1152
1151
  parallel: "parallel";
1152
+ gate: "gate";
1153
1153
  iterate: "iterate";
1154
1154
  "iterate-chain": "iterate-chain";
1155
1155
  loop: "loop";
@@ -1189,12 +1189,12 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1189
1189
  frameId: z.ZodString;
1190
1190
  nodeId: z.ZodString;
1191
1191
  nodeType: z.ZodEnum<{
1192
- sequence: "sequence";
1193
1192
  station: "station";
1194
1193
  "delegate-agent": "delegate-agent";
1195
1194
  "delegate-role": "delegate-role";
1196
- gate: "gate";
1195
+ sequence: "sequence";
1197
1196
  parallel: "parallel";
1197
+ gate: "gate";
1198
1198
  iterate: "iterate";
1199
1199
  "iterate-chain": "iterate-chain";
1200
1200
  loop: "loop";
@@ -1229,8 +1229,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1229
1229
  completed: "completed";
1230
1230
  cancelled: "cancelled";
1231
1231
  failed: "failed";
1232
- paused: "paused";
1233
1232
  running: "running";
1233
+ paused: "paused";
1234
1234
  finalizing: "finalizing";
1235
1235
  }>>;
1236
1236
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1426,8 +1426,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1426
1426
  completed: "completed";
1427
1427
  cancelled: "cancelled";
1428
1428
  failed: "failed";
1429
- paused: "paused";
1430
1429
  running: "running";
1430
+ paused: "paused";
1431
1431
  finalizing: "finalizing";
1432
1432
  }>>;
1433
1433
  artifactRef: z.ZodOptional<z.ZodObject<{
@@ -1450,8 +1450,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1450
1450
  completed: "completed";
1451
1451
  cancelled: "cancelled";
1452
1452
  failed: "failed";
1453
- paused: "paused";
1454
1453
  running: "running";
1454
+ paused: "paused";
1455
1455
  finalizing: "finalizing";
1456
1456
  }>;
1457
1457
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>;
@@ -1503,8 +1503,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1503
1503
  completed: "completed";
1504
1504
  cancelled: "cancelled";
1505
1505
  failed: "failed";
1506
- paused: "paused";
1507
1506
  running: "running";
1507
+ paused: "paused";
1508
1508
  finalizing: "finalizing";
1509
1509
  }>;
1510
1510
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>;
@@ -1547,12 +1547,12 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1547
1547
  frameId: z.ZodString;
1548
1548
  nodeId: z.ZodString;
1549
1549
  nodeType: z.ZodEnum<{
1550
- sequence: "sequence";
1551
1550
  station: "station";
1552
1551
  "delegate-agent": "delegate-agent";
1553
1552
  "delegate-role": "delegate-role";
1554
- gate: "gate";
1553
+ sequence: "sequence";
1555
1554
  parallel: "parallel";
1555
+ gate: "gate";
1556
1556
  iterate: "iterate";
1557
1557
  "iterate-chain": "iterate-chain";
1558
1558
  loop: "loop";
@@ -1593,12 +1593,12 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1593
1593
  frameId: z.ZodString;
1594
1594
  nodeId: z.ZodString;
1595
1595
  nodeType: z.ZodEnum<{
1596
- sequence: "sequence";
1597
1596
  station: "station";
1598
1597
  "delegate-agent": "delegate-agent";
1599
1598
  "delegate-role": "delegate-role";
1600
- gate: "gate";
1599
+ sequence: "sequence";
1601
1600
  parallel: "parallel";
1601
+ gate: "gate";
1602
1602
  iterate: "iterate";
1603
1603
  "iterate-chain": "iterate-chain";
1604
1604
  loop: "loop";
@@ -1636,12 +1636,12 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1636
1636
  frameId: z.ZodString;
1637
1637
  nodeId: z.ZodString;
1638
1638
  nodeType: z.ZodEnum<{
1639
- sequence: "sequence";
1640
1639
  station: "station";
1641
1640
  "delegate-agent": "delegate-agent";
1642
1641
  "delegate-role": "delegate-role";
1643
- gate: "gate";
1642
+ sequence: "sequence";
1644
1643
  parallel: "parallel";
1644
+ gate: "gate";
1645
1645
  iterate: "iterate";
1646
1646
  "iterate-chain": "iterate-chain";
1647
1647
  loop: "loop";
@@ -2170,8 +2170,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
2170
2170
  "exit-and-resume": "exit-and-resume";
2171
2171
  }>>;
2172
2172
  terminalAuthority: z.ZodOptional<z.ZodEnum<{
2173
- authority: "authority";
2174
2173
  worker: "worker";
2174
+ authority: "authority";
2175
2175
  }>>;
2176
2176
  materializationSpec: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2177
2177
  kind: z.ZodLiteral<"local-directory">;
@@ -2357,8 +2357,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
2357
2357
  "exit-and-resume": "exit-and-resume";
2358
2358
  }>>;
2359
2359
  terminalAuthority: z.ZodOptional<z.ZodEnum<{
2360
- authority: "authority";
2361
2360
  worker: "worker";
2361
+ authority: "authority";
2362
2362
  }>>;
2363
2363
  materializationSpec: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2364
2364
  kind: z.ZodLiteral<"local-directory">;
@@ -2594,7 +2594,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
2594
2594
  tableName: "workflow_definitions";
2595
2595
  dataType: "string";
2596
2596
  columnType: "SQLiteText";
2597
- data: "external" | "workspace" | "session" | "global";
2597
+ data: "external" | "session" | "global" | "workspace";
2598
2598
  driverParam: string;
2599
2599
  notNull: true;
2600
2600
  hasDefault: false;
@@ -2607,7 +2607,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
2607
2607
  generated: undefined;
2608
2608
  }, {}, {
2609
2609
  length: number | undefined;
2610
- $type: "external" | "workspace" | "session" | "global";
2610
+ $type: "external" | "session" | "global" | "workspace";
2611
2611
  }>;
2612
2612
  scopeKind: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
2613
2613
  name: "scope_kind";
@@ -2905,7 +2905,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
2905
2905
  tableName: "workflow_executions";
2906
2906
  dataType: "string";
2907
2907
  columnType: "SQLiteText";
2908
- data: "external" | "workspace" | "session" | "global";
2908
+ data: "external" | "session" | "global" | "workspace";
2909
2909
  driverParam: string;
2910
2910
  notNull: true;
2911
2911
  hasDefault: false;
@@ -2918,7 +2918,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
2918
2918
  generated: undefined;
2919
2919
  }, {}, {
2920
2920
  length: number | undefined;
2921
- $type: "external" | "workspace" | "session" | "global";
2921
+ $type: "external" | "session" | "global" | "workspace";
2922
2922
  }>;
2923
2923
  scopeKind: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
2924
2924
  name: "scope_kind";
@@ -3020,7 +3020,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
3020
3020
  tableName: "workflow_executions";
3021
3021
  dataType: "string";
3022
3022
  columnType: "SQLiteText";
3023
- data: "pending" | "completed" | "cancelled" | "failed" | "paused" | "running" | "finalizing";
3023
+ data: "pending" | "completed" | "cancelled" | "failed" | "running" | "paused" | "finalizing";
3024
3024
  driverParam: string;
3025
3025
  notNull: true;
3026
3026
  hasDefault: false;
@@ -3289,7 +3289,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
3289
3289
  tableName: "workflow_execution_frames";
3290
3290
  dataType: "string";
3291
3291
  columnType: "SQLiteText";
3292
- data: "sequence" | "station" | "delegate-agent" | "delegate-role" | "gate" | "parallel" | "iterate" | "iterate-chain" | "loop";
3292
+ data: "station" | "delegate-agent" | "delegate-role" | "sequence" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop";
3293
3293
  driverParam: string;
3294
3294
  notNull: true;
3295
3295
  hasDefault: false;
@@ -3302,7 +3302,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
3302
3302
  generated: undefined;
3303
3303
  }, {}, {
3304
3304
  length: number | undefined;
3305
- $type: "sequence" | "station" | "delegate-agent" | "delegate-role" | "gate" | "parallel" | "iterate" | "iterate-chain" | "loop";
3305
+ $type: "station" | "delegate-agent" | "delegate-role" | "sequence" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop";
3306
3306
  }>;
3307
3307
  path: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
3308
3308
  name: string;
@@ -4624,7 +4624,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
4624
4624
  tableName: "workflow_run_contexts";
4625
4625
  dataType: "string";
4626
4626
  columnType: "SQLiteText";
4627
- data: "external" | "workspace" | "session" | "global";
4627
+ data: "external" | "session" | "global" | "workspace";
4628
4628
  driverParam: string;
4629
4629
  notNull: true;
4630
4630
  hasDefault: true;
@@ -4637,7 +4637,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
4637
4637
  generated: undefined;
4638
4638
  }, {}, {
4639
4639
  length: number | undefined;
4640
- $type: "external" | "workspace" | "session" | "global";
4640
+ $type: "external" | "session" | "global" | "workspace";
4641
4641
  }>;
4642
4642
  scopeKind: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
4643
4643
  name: "scope_kind";
@@ -4757,7 +4757,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
4757
4757
  tableName: "workflow_run_contexts";
4758
4758
  dataType: "string";
4759
4759
  columnType: "SQLiteText";
4760
- data: "authority" | "worker" | undefined;
4760
+ data: "worker" | "authority" | undefined;
4761
4761
  driverParam: string;
4762
4762
  notNull: false;
4763
4763
  hasDefault: false;
@@ -4770,7 +4770,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
4770
4770
  generated: undefined;
4771
4771
  }, {}, {
4772
4772
  length: number | undefined;
4773
- $type: "authority" | "worker" | undefined;
4773
+ $type: "worker" | "authority" | undefined;
4774
4774
  }>;
4775
4775
  materializationSpec: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
4776
4776
  name: string;
@@ -4880,7 +4880,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
4880
4880
  tableName: "worklog_summaries";
4881
4881
  dataType: "string";
4882
4882
  columnType: "SQLiteText";
4883
- data: "pending" | "completed" | "cancelled" | "failed" | "paused" | "running" | "finalizing";
4883
+ data: "pending" | "completed" | "cancelled" | "failed" | "running" | "paused" | "finalizing";
4884
4884
  driverParam: string;
4885
4885
  notNull: true;
4886
4886
  hasDefault: false;
@@ -5103,7 +5103,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
5103
5103
  tableName: "worklog_frame_entries";
5104
5104
  dataType: "string";
5105
5105
  columnType: "SQLiteText";
5106
- data: "sequence" | "station" | "delegate-agent" | "delegate-role" | "gate" | "parallel" | "iterate" | "iterate-chain" | "loop";
5106
+ data: "station" | "delegate-agent" | "delegate-role" | "sequence" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop";
5107
5107
  driverParam: string;
5108
5108
  notNull: true;
5109
5109
  hasDefault: false;
@@ -5116,7 +5116,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
5116
5116
  generated: undefined;
5117
5117
  }, {}, {
5118
5118
  length: number | undefined;
5119
- $type: "sequence" | "station" | "delegate-agent" | "delegate-role" | "gate" | "parallel" | "iterate" | "iterate-chain" | "loop";
5119
+ $type: "station" | "delegate-agent" | "delegate-role" | "sequence" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop";
5120
5120
  }>;
5121
5121
  path: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
5122
5122
  name: string;
@@ -5976,7 +5976,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
5976
5976
  tableName: "workflow_finalizations";
5977
5977
  dataType: "string";
5978
5978
  columnType: "SQLiteText";
5979
- data: "failed" | "acknowledged" | "claimed";
5979
+ data: "acknowledged" | "failed" | "claimed";
5980
5980
  driverParam: string;
5981
5981
  notNull: true;
5982
5982
  hasDefault: false;
@@ -6421,8 +6421,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6421
6421
  completed: "completed";
6422
6422
  cancelled: "cancelled";
6423
6423
  failed: "failed";
6424
- paused: "paused";
6425
6424
  running: "running";
6425
+ paused: "paused";
6426
6426
  finalizing: "finalizing";
6427
6427
  }>;
6428
6428
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>;
@@ -6463,8 +6463,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6463
6463
  completed: "completed";
6464
6464
  cancelled: "cancelled";
6465
6465
  failed: "failed";
6466
- paused: "paused";
6467
6466
  running: "running";
6467
+ paused: "paused";
6468
6468
  finalizing: "finalizing";
6469
6469
  }>;
6470
6470
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>;
@@ -6512,8 +6512,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6512
6512
  completed: "completed";
6513
6513
  cancelled: "cancelled";
6514
6514
  failed: "failed";
6515
- paused: "paused";
6516
6515
  running: "running";
6516
+ paused: "paused";
6517
6517
  finalizing: "finalizing";
6518
6518
  }>;
6519
6519
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>;
@@ -6698,8 +6698,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6698
6698
  "exit-and-resume": "exit-and-resume";
6699
6699
  }>>;
6700
6700
  terminalAuthority: z.ZodOptional<z.ZodEnum<{
6701
- authority: "authority";
6702
6701
  worker: "worker";
6702
+ authority: "authority";
6703
6703
  }>>;
6704
6704
  materializationSpec: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
6705
6705
  kind: z.ZodLiteral<"local-directory">;
@@ -6767,12 +6767,12 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6767
6767
  frameId: z.ZodString;
6768
6768
  nodeId: z.ZodString;
6769
6769
  nodeType: z.ZodEnum<{
6770
- sequence: "sequence";
6771
6770
  station: "station";
6772
6771
  "delegate-agent": "delegate-agent";
6773
6772
  "delegate-role": "delegate-role";
6774
- gate: "gate";
6773
+ sequence: "sequence";
6775
6774
  parallel: "parallel";
6775
+ gate: "gate";
6776
6776
  iterate: "iterate";
6777
6777
  "iterate-chain": "iterate-chain";
6778
6778
  loop: "loop";
@@ -6812,12 +6812,12 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6812
6812
  frameId: z.ZodString;
6813
6813
  nodeId: z.ZodString;
6814
6814
  nodeType: z.ZodEnum<{
6815
- sequence: "sequence";
6816
6815
  station: "station";
6817
6816
  "delegate-agent": "delegate-agent";
6818
6817
  "delegate-role": "delegate-role";
6819
- gate: "gate";
6818
+ sequence: "sequence";
6820
6819
  parallel: "parallel";
6820
+ gate: "gate";
6821
6821
  iterate: "iterate";
6822
6822
  "iterate-chain": "iterate-chain";
6823
6823
  loop: "loop";
@@ -6852,8 +6852,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6852
6852
  completed: "completed";
6853
6853
  cancelled: "cancelled";
6854
6854
  failed: "failed";
6855
- paused: "paused";
6856
6855
  running: "running";
6856
+ paused: "paused";
6857
6857
  finalizing: "finalizing";
6858
6858
  }>>;
6859
6859
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -7049,8 +7049,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7049
7049
  completed: "completed";
7050
7050
  cancelled: "cancelled";
7051
7051
  failed: "failed";
7052
- paused: "paused";
7053
7052
  running: "running";
7053
+ paused: "paused";
7054
7054
  finalizing: "finalizing";
7055
7055
  }>>;
7056
7056
  artifactRef: z.ZodOptional<z.ZodObject<{
@@ -7073,8 +7073,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7073
7073
  completed: "completed";
7074
7074
  cancelled: "cancelled";
7075
7075
  failed: "failed";
7076
- paused: "paused";
7077
7076
  running: "running";
7077
+ paused: "paused";
7078
7078
  finalizing: "finalizing";
7079
7079
  }>;
7080
7080
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>;
@@ -7126,8 +7126,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7126
7126
  completed: "completed";
7127
7127
  cancelled: "cancelled";
7128
7128
  failed: "failed";
7129
- paused: "paused";
7130
7129
  running: "running";
7130
+ paused: "paused";
7131
7131
  finalizing: "finalizing";
7132
7132
  }>;
7133
7133
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>;
@@ -7170,12 +7170,12 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7170
7170
  frameId: z.ZodString;
7171
7171
  nodeId: z.ZodString;
7172
7172
  nodeType: z.ZodEnum<{
7173
- sequence: "sequence";
7174
7173
  station: "station";
7175
7174
  "delegate-agent": "delegate-agent";
7176
7175
  "delegate-role": "delegate-role";
7177
- gate: "gate";
7176
+ sequence: "sequence";
7178
7177
  parallel: "parallel";
7178
+ gate: "gate";
7179
7179
  iterate: "iterate";
7180
7180
  "iterate-chain": "iterate-chain";
7181
7181
  loop: "loop";
@@ -7216,12 +7216,12 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7216
7216
  frameId: z.ZodString;
7217
7217
  nodeId: z.ZodString;
7218
7218
  nodeType: z.ZodEnum<{
7219
- sequence: "sequence";
7220
7219
  station: "station";
7221
7220
  "delegate-agent": "delegate-agent";
7222
7221
  "delegate-role": "delegate-role";
7223
- gate: "gate";
7222
+ sequence: "sequence";
7224
7223
  parallel: "parallel";
7224
+ gate: "gate";
7225
7225
  iterate: "iterate";
7226
7226
  "iterate-chain": "iterate-chain";
7227
7227
  loop: "loop";
@@ -7259,12 +7259,12 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7259
7259
  frameId: z.ZodString;
7260
7260
  nodeId: z.ZodString;
7261
7261
  nodeType: z.ZodEnum<{
7262
- sequence: "sequence";
7263
7262
  station: "station";
7264
7263
  "delegate-agent": "delegate-agent";
7265
7264
  "delegate-role": "delegate-role";
7266
- gate: "gate";
7265
+ sequence: "sequence";
7267
7266
  parallel: "parallel";
7267
+ gate: "gate";
7268
7268
  iterate: "iterate";
7269
7269
  "iterate-chain": "iterate-chain";
7270
7270
  loop: "loop";
@@ -7793,8 +7793,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7793
7793
  "exit-and-resume": "exit-and-resume";
7794
7794
  }>>;
7795
7795
  terminalAuthority: z.ZodOptional<z.ZodEnum<{
7796
- authority: "authority";
7797
7796
  worker: "worker";
7797
+ authority: "authority";
7798
7798
  }>>;
7799
7799
  materializationSpec: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
7800
7800
  kind: z.ZodLiteral<"local-directory">;
@@ -7980,8 +7980,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7980
7980
  "exit-and-resume": "exit-and-resume";
7981
7981
  }>>;
7982
7982
  terminalAuthority: z.ZodOptional<z.ZodEnum<{
7983
- authority: "authority";
7984
7983
  worker: "worker";
7984
+ authority: "authority";
7985
7985
  }>>;
7986
7986
  materializationSpec: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
7987
7987
  kind: z.ZodLiteral<"local-directory">;
@@ -8183,7 +8183,7 @@ declare const workflowDefinitionsDual: _$_makaio_storage_drizzle0.DualTable<"wor
8183
8183
  materializationModes?: ("local-directory" | "workspace-snapshot")[] | undefined;
8184
8184
  }>>; /** Definition-owned finalizer selected after successful execution. */
8185
8185
  successFinalizerId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"success_finalizer_id", [string, ...string[]], number | undefined>, _$drizzle_orm_pg_core0.PgTextBuilderInitial<"success_finalizer_id", [string, ...string[]]>>;
8186
- scopeType: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.$Type<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"scope_type", ["global", "workspace", "session", "external"], number | undefined>>, "external" | "workspace" | "session" | "global">, _$drizzle_orm0.$Type<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"scope_type", ["global", "workspace", "session", "external"]>>, "external" | "workspace" | "session" | "global">>;
8186
+ scopeType: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.$Type<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"scope_type", ["global", "workspace", "session", "external"], number | undefined>>, "external" | "session" | "global" | "workspace">, _$drizzle_orm0.$Type<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"scope_type", ["global", "workspace", "session", "external"]>>, "external" | "session" | "global" | "workspace">>;
8187
8187
  scopeKind: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.HasDefault<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"scope_kind", [string, ...string[]], number | undefined>>>, _$drizzle_orm0.HasDefault<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"scope_kind", [string, ...string[]]>>>>;
8188
8188
  scopeId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.HasDefault<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"scope_id", [string, ...string[]], number | undefined>>>, _$drizzle_orm0.HasDefault<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"scope_id", [string, ...string[]]>>>>; /** Unique workflow identifier. */
8189
8189
  id: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.IsPrimaryKey<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"id", [string, ...string[]], number | undefined>>>, _$drizzle_orm0.IsPrimaryKey<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"id", [string, ...string[]]>>>>; /** Workflow name. */
@@ -8266,7 +8266,7 @@ declare const workflowDefinitionsDual: _$_makaio_storage_drizzle0.DualTable<"wor
8266
8266
  * Stores runtime state of workflow executions.
8267
8267
  */
8268
8268
  declare const workflowExecutionsDual: _$_makaio_storage_drizzle0.DualTable<"workflow_executions", {
8269
- scopeType: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.$Type<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"scope_type", ["global", "workspace", "session", "external"], number | undefined>>, "external" | "workspace" | "session" | "global">, _$drizzle_orm0.$Type<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"scope_type", ["global", "workspace", "session", "external"]>>, "external" | "workspace" | "session" | "global">>;
8269
+ scopeType: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.$Type<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"scope_type", ["global", "workspace", "session", "external"], number | undefined>>, "external" | "session" | "global" | "workspace">, _$drizzle_orm0.$Type<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"scope_type", ["global", "workspace", "session", "external"]>>, "external" | "session" | "global" | "workspace">>;
8270
8270
  scopeKind: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.HasDefault<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"scope_kind", [string, ...string[]], number | undefined>>>, _$drizzle_orm0.HasDefault<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"scope_kind", [string, ...string[]]>>>>;
8271
8271
  scopeId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.HasDefault<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"scope_id", [string, ...string[]], number | undefined>>>, _$drizzle_orm0.HasDefault<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"scope_id", [string, ...string[]]>>>>; /** Unique execution identifier. */
8272
8272
  id: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.IsPrimaryKey<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"id", [string, ...string[]], number | undefined>>>, _$drizzle_orm0.IsPrimaryKey<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"id", [string, ...string[]]>>>>; /** Workflow definition or ephemeral source execution identifier. */
@@ -8341,7 +8341,7 @@ declare const worklogFrameEntriesDual: _$_makaio_storage_drizzle0.DualTable<"wor
8341
8341
  /** 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. */
8342
8342
  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. */
8343
8343
  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. */
8344
- nodeType: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.$Type<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"node_type", [string, ...string[]], number | undefined>>, "sequence" | "station" | "delegate-agent" | "delegate-role" | "gate" | "parallel" | "iterate" | "iterate-chain" | "loop">, _$drizzle_orm0.$Type<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"node_type", [string, ...string[]]>>, "sequence" | "station" | "delegate-agent" | "delegate-role" | "gate" | "parallel" | "iterate" | "iterate-chain" | "loop">>;
8344
+ 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">>;
8345
8345
  /**
8346
8346
  * Ordered path of frame IDs from the root frame to this frame (inclusive).
8347
8347
  * Stored as a JSON array for tree correlation.
@@ -8442,4 +8442,4 @@ declare function patchWorkflowState(db: MakaioDatabase, params: {
8442
8442
  value: JsonValue;
8443
8443
  }>;
8444
8444
  //#endregion
8445
- export { ATTEMPT_OPERATION_START_GATES, type AdmitOperationInput, type AllocationRecordingDecision, type AllocationRefEvolution, type AllocationRefEvolutionDecision, type AllocationTerminationDecision, 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 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 ReadAttemptSettlementInput, type ReadBootstrapStartStateInput, type RecordAllocationInput, type RecordAllocationTerminatedInput, type RecordInfrastructureFailureInput, type RecordProviderOperationUncertaintyInput, type RecordProvisionerIncarnationLostInput, type RecordProvisioningAbsentInput, type RecoverableAttemptRecord, type RegisterRuntimeInput, type RenewProviderOperationClaimInput, 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, evaluateAttemptReachability, evaluateOperationAdmission, evaluateOperationCompletion, evaluateProvisionerIncarnationLoss, evaluateRuntimeReadiness, evaluateRuntimeRegistration, getWorkflowState, initializeWorkflowState, isProviderOperationResolved, parseWorkflowAttemptInstruction, patchWorkflowState, readAttemptSettlementSnapshot, registerBootstrapStartHandler, registerDrizzleWorkflowStorage, registerExecutionAttemptHandlers, registerOperationAdmissionHandler, registerRuntimeRegistrationHandler, replayEnsuredAttempt, resolveExecutionAttemptPeer, runAuthorityDispatchedAttempt, runShellStep, sameAllocationRef, sameDurableOutcome, snapshotAttemptOutcomeControl, snapshotEnsureExecutionAttemptInput, snapshotEnsureExecutionAttemptPersistenceInput, snapshotReadAttemptSettlementInput, snapshotRequestAttemptCancellationInput, snapshotRequestExecutionCancellationInput, submitAttemptOutcome, toCommittedWorkflowRunnerResult, workflowAttemptOutcomeCodec, workflowDefinitionsDual, workflowEnginePackage, workflowExecutionStateDual, workflowExecutionStateEventsDual, workflowExecutionsDual, workflowFinalizationsDual, workflowStepSpansDual, worklogFrameEntriesDual, worklogSummariesDual };
8445
+ export { ATTEMPT_OPERATION_START_GATES, type AcceptedAttemptOutcome, type AdmitOperationInput, type AllocationRecordingDecision, type AllocationRefEvolution, type AllocationRefEvolutionDecision, type AllocationTerminationDecision, 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 ReadAttemptSettlementInput, type ReadBootstrapStartStateInput, type RecordAllocationInput, type RecordAllocationTerminatedInput, type RecordInfrastructureFailureInput, type RecordProviderOperationUncertaintyInput, type RecordProvisionerIncarnationLostInput, type RecordProvisioningAbsentInput, type RecoverableAttemptRecord, type RegisterRuntimeInput, type RenewProviderOperationClaimInput, 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, evaluateAttemptReachability, evaluateOperationAdmission, evaluateOperationCompletion, evaluateProvisionerIncarnationLoss, evaluateRuntimeReadiness, evaluateRuntimeRegistration, getWorkflowState, initializeWorkflowState, isProviderOperationResolved, parseWorkflowAttemptInstruction, patchWorkflowState, readAttemptSettlementSnapshot, registerBootstrapStartHandler, registerDrizzleWorkflowStorage, registerExecutionAttemptHandlers, registerOperationAdmissionHandler, registerRuntimeRegistrationHandler, replayEnsuredAttempt, resolveExecutionAttemptPeer, runAuthorityDispatchedAttempt, runShellStep, sameAllocationRef, sameDurableOutcome, snapshotAttemptOutcomeControl, snapshotEnsureExecutionAttemptInput, snapshotEnsureExecutionAttemptPersistenceInput, snapshotReadAttemptSettlementInput, snapshotRequestAttemptCancellationInput, snapshotRequestExecutionCancellationInput, submitAttemptOutcome, toCommittedWorkflowRunnerCompletion, toCommittedWorkflowRunnerResult, workflowAttemptOutcomeCodec, workflowDefinitionsDual, workflowEnginePackage, workflowExecutionStateDual, workflowExecutionStateEventsDual, workflowExecutionsDual, workflowFinalizationsDual, workflowStepSpansDual, worklogFrameEntriesDual, worklogSummariesDual };
@@ -1 +1 @@
1
- import{C as e,E as t,H as n,K as ee,L as te,Q as r,S as i,T as a,U as o,W as s,_ as c,b as l,ct as u,et as d,ft as f,gt as p,nt as m,v as h,vt as g,w as _,x as v,y}from"../authority-state-bootstrap-DgoHPc9J.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-B-xpYKe8.mjs";import{_ as L,a as R,b as ne,c as z,d as B,f as V,g as H,h as U,i as W,l as G,m as K,n as q,o as J,p as Y,r as X,s as Z,t as re,u as ie,x as ae,y as oe}from"../execution-attempt-repository-CWbgCTwA.mjs";import{assertWorkflowTriggerPayload as se,compileWorkflowTriggerBindingFilter as ce}from"./workflow-trigger-binding-consumer.mjs";import{a as le,i as ue,n as de,r as fe,t as pe}from"../execution-attempt-owner-recovery-D4APLAvt.mjs";import{PROVIDER_OPERATION_OBLIGATIONS as me,isProviderOperationResolved as he}from"./provider-operation.mjs";import{JsonValueSchema as Q,WorkflowFrameStateSchema as ge}from"@makaio/framework/contracts";const _e=new Set([...ge.shape.status.options]);function $(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function ve(e){if(!$(e))return!1;for(let t of Object.values(e))if(!$(t)||typeof t.status!=`string`||!_e.has(t.status)||`result`in t&&t.result!==void 0&&!Q.safeParse(t.result).success)return!1;return!0}function ye(e){let t={trigger:$(e.trigger)?e.trigger:{},steps:ve(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{re as ATTEMPT_OPERATION_START_GATES,q as DuplicateExecutionAttemptError,X as EXECUTION_ATTEMPT_SETTLEMENT_KINDS,W as EXECUTION_ATTEMPT_STATUSES,x as ExecutionAttemptAuthority,me as PROVIDER_OPERATION_OBLIGATIONS,O as RUNTIME_PROBE_DELIVERY_TIMEOUT_MS,Y as RuntimeOutcomeFenceMismatchError,v as WORKFLOW_WORKLOAD_KIND,i as WORKFLOW_WORKLOAD_VERSION,c as WorkflowAttemptOutcomeSchema,D as WorkflowEngineService,F as WorkflowEngineToken,P as WorkflowExecutor,e as WorkflowInvocationInputSchema,o as WorkflowStorageNamespace,s as WorkflowStorageSubjects,j as WorkflowTriggerReconciler,K as assertRuntimeOutcomeFence,se as assertWorkflowTriggerPayload,_ as buildWorkflowAttemptInstruction,ye as buildWorkflowExpressionContextFromResolvedInputs,ce as compileWorkflowTriggerBindingFilter,A as createWorkflowEnginePackage,R as decodeDurableOutcome,h as decodeWorkflowAttemptOutcome,J as durableOutcome,G as evaluateAttemptCancellation,U as evaluateAttemptReachability,H as evaluateOperationAdmission,L as evaluateOperationCompletion,oe as evaluateProvisionerIncarnationLoss,ne as evaluateRuntimeReadiness,ae as evaluateRuntimeRegistration,E as getWorkflowState,T as initializeWorkflowState,he as isProviderOperationResolved,a as parseWorkflowAttemptInstruction,b as patchWorkflowState,pe as readAttemptSettlementSnapshot,S as registerBootstrapStartHandler,k as registerDrizzleWorkflowStorage,w as registerExecutionAttemptHandlers,C as registerOperationAdmissionHandler,I as registerRuntimeRegistrationHandler,de as replayEnsuredAttempt,n as resolveExecutionAttemptPeer,t as runAuthorityDispatchedAttempt,te as runShellStep,Z as sameAllocationRef,z as sameDurableOutcome,ie as snapshotAttemptOutcomeControl,fe as snapshotEnsureExecutionAttemptInput,ue as snapshotEnsureExecutionAttemptPersistenceInput,le as snapshotReadAttemptSettlementInput,B as snapshotRequestAttemptCancellationInput,V as snapshotRequestExecutionCancellationInput,M as submitAttemptOutcome,y as toCommittedWorkflowRunnerResult,l as workflowAttemptOutcomeCodec,ee as workflowDefinitionsDual,N as workflowEnginePackage,r as workflowExecutionStateDual,d as workflowExecutionStateEventsDual,m as workflowExecutionsDual,g as workflowFinalizationsDual,u as workflowStepSpansDual,f as worklogFrameEntriesDual,p as worklogSummariesDual};
1
+ import{B as e,C as t,D as n,E as ee,G as te,K as r,O as i,S as a,T as o,Y as s,at as c,b as l,dt as u,ht as d,q as f,rt as p,tt as m,v as h,w as g,x as _,xt as v,y,yt as b}from"../authority-state-bootstrap-B8jG1zI1.mjs";import{_ as x,a as S,c as C,d as w,f as T,g as E,h as D,i as O,l as k,m as A,n as j,o as M,p as N,r as P,s as F,t as I,u as L}from"../package-BDaNGoBY.mjs";import{_ as R,a as ne,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 J,o as Y,p as X,r as Z,s as re,t as ie,u as ae,x as oe,y as se}from"../execution-attempt-repository-CWbgCTwA.mjs";import{assertWorkflowTriggerPayload as ce,compileWorkflowTriggerBindingFilter as le}from"./workflow-trigger-binding-consumer.mjs";import{a as ue,i as de,n as fe,r as pe,t as me}from"../execution-attempt-owner-recovery-D4APLAvt.mjs";import{PROVIDER_OPERATION_OBLIGATIONS as he,isProviderOperationResolved as ge}from"./provider-operation.mjs";import{JsonValueSchema as Q,WorkflowFrameStateSchema as _e}from"@makaio/framework/contracts";const ve=new Set([..._e.shape.status.options]);function $(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function ye(e){if(!$(e))return!1;for(let t of Object.values(e))if(!$(t)||typeof t.status!=`string`||!ve.has(t.status)||`result`in t&&t.result!==void 0&&!Q.safeParse(t.result).success)return!1;return!0}function be(e){let t={trigger:$(e.trigger)?e.trigger:{},steps:ye(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{ie as ATTEMPT_OPERATION_START_GATES,J as DuplicateExecutionAttemptError,Z as EXECUTION_ATTEMPT_SETTLEMENT_KINDS,G as EXECUTION_ATTEMPT_STATUSES,S as ExecutionAttemptAuthority,he as PROVIDER_OPERATION_OBLIGATIONS,k as RUNTIME_PROBE_DELIVERY_TIMEOUT_MS,X as RuntimeOutcomeFenceMismatchError,t as WORKFLOW_WORKLOAD_KIND,g as WORKFLOW_WORKLOAD_VERSION,h as WorkflowAttemptOutcomeSchema,O as WorkflowEngineService,I as WorkflowEngineToken,F as WorkflowExecutor,o as WorkflowInvocationInputSchema,r as WorkflowStorageNamespace,f as WorkflowStorageSubjects,M as WorkflowTriggerReconciler,q as assertRuntimeOutcomeFence,ce as assertWorkflowTriggerPayload,ee as buildWorkflowAttemptInstruction,be as buildWorkflowExpressionContextFromResolvedInputs,le as compileWorkflowTriggerBindingFilter,j as createWorkflowEnginePackage,ne as decodeDurableOutcome,y as decodeWorkflowAttemptOutcome,Y as durableOutcome,K as evaluateAttemptCancellation,W as evaluateAttemptReachability,U as evaluateOperationAdmission,R as evaluateOperationCompletion,se as evaluateProvisionerIncarnationLoss,z as evaluateRuntimeReadiness,oe as evaluateRuntimeRegistration,D as getWorkflowState,E as initializeWorkflowState,ge as isProviderOperationResolved,n as parseWorkflowAttemptInstruction,x as patchWorkflowState,me as readAttemptSettlementSnapshot,C as registerBootstrapStartHandler,A as registerDrizzleWorkflowStorage,T as registerExecutionAttemptHandlers,w as registerOperationAdmissionHandler,L as registerRuntimeRegistrationHandler,fe as replayEnsuredAttempt,te as resolveExecutionAttemptPeer,i as runAuthorityDispatchedAttempt,e as runShellStep,re as sameAllocationRef,B as sameDurableOutcome,ae as snapshotAttemptOutcomeControl,pe as snapshotEnsureExecutionAttemptInput,de as snapshotEnsureExecutionAttemptPersistenceInput,ue as snapshotReadAttemptSettlementInput,V as snapshotRequestAttemptCancellationInput,H as snapshotRequestExecutionCancellationInput,N as submitAttemptOutcome,l as toCommittedWorkflowRunnerCompletion,_ as toCommittedWorkflowRunnerResult,a as workflowAttemptOutcomeCodec,s as workflowDefinitionsDual,P as workflowEnginePackage,m as workflowExecutionStateDual,p as workflowExecutionStateEventsDual,c as workflowExecutionsDual,v as workflowFinalizationsDual,u as workflowStepSpansDual,d as worklogFrameEntriesDual,b as worklogSummariesDual};
@@ -1,2 +1,2 @@
1
- import { n as createWorkflowEnginePackage, r as workflowEnginePackage, t as WorkflowEngineToken } from "../package-Bl0mcGb8.mjs";
1
+ import { n as createWorkflowEnginePackage, r as workflowEnginePackage, t as WorkflowEngineToken } from "../package-DQgqWIcX.mjs";
2
2
  export { WorkflowEngineToken, createWorkflowEnginePackage, workflowEnginePackage };
@@ -1 +1 @@
1
- import{n as e,r as t,t as n}from"../package-B-xpYKe8.mjs";export{n as WorkflowEngineToken,e as createWorkflowEnginePackage,t as workflowEnginePackage};
1
+ import{n as e,r as t,t as n}from"../package-BDaNGoBY.mjs";export{n as WorkflowEngineToken,e as createWorkflowEnginePackage,t as workflowEnginePackage};
@@ -1,2 +1,2 @@
1
- import { $ as InitialProviderOperationClaimContextSource, Q as InitialProviderOperationClaimContext, X as CompleteProviderOperationInput, Z as HandoffProviderOperationInput, _t as isProviderOperationResolved, at as ProviderOperationClaimDecision, ct as ProviderOperationLeaseRenewal, dt as ProviderOperationOwnershipRecord, et as ListOpenProviderOperationsInput, ft as ProvisionerIncarnationLossDecision, gt as TakeOverProviderOperationInput, ht as RenewProviderOperationClaimInput, it as ProviderOperationClaim, lt as ProviderOperationMutationDecision, mt as RecordProviderOperationUncertaintyInput, nt as PROVIDER_OPERATION_OBLIGATIONS, ot as ProviderOperationCompletionDecision, pt as ProvisioningAbsenceDecision, rt as ProcessBoundProvisionerLossProof, st as ProviderOperationLeasePolicy, tt as OpenProviderOperationRecord, ut as ProviderOperationObligation } from "../execution-attempt-repository--RVils5-.mjs";
1
+ import { $ as InitialProviderOperationClaimContextSource, Q as InitialProviderOperationClaimContext, X as CompleteProviderOperationInput, Z as HandoffProviderOperationInput, _t as isProviderOperationResolved, at as ProviderOperationClaimDecision, ct as ProviderOperationLeaseRenewal, dt as ProviderOperationOwnershipRecord, et as ListOpenProviderOperationsInput, ft as ProvisionerIncarnationLossDecision, gt as TakeOverProviderOperationInput, ht as RenewProviderOperationClaimInput, it as ProviderOperationClaim, lt as ProviderOperationMutationDecision, mt as RecordProviderOperationUncertaintyInput, nt as PROVIDER_OPERATION_OBLIGATIONS, ot as ProviderOperationCompletionDecision, pt as ProvisioningAbsenceDecision, rt as ProcessBoundProvisionerLossProof, st as ProviderOperationLeasePolicy, tt as OpenProviderOperationRecord, ut as ProviderOperationObligation } from "../execution-attempt-repository-DSpz2kyW.mjs";
2
2
  export { CompleteProviderOperationInput, HandoffProviderOperationInput, InitialProviderOperationClaimContext, InitialProviderOperationClaimContextSource, ListOpenProviderOperationsInput, OpenProviderOperationRecord, PROVIDER_OPERATION_OBLIGATIONS, ProcessBoundProvisionerLossProof, ProviderOperationClaim, ProviderOperationClaimDecision, ProviderOperationCompletionDecision, ProviderOperationLeasePolicy, ProviderOperationLeaseRenewal, ProviderOperationMutationDecision, ProviderOperationObligation, ProviderOperationOwnershipRecord, ProvisionerIncarnationLossDecision, ProvisioningAbsenceDecision, RecordProviderOperationUncertaintyInput, RenewProviderOperationClaimInput, TakeOverProviderOperationInput, isProviderOperationResolved };