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

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 (94) hide show
  1. package/dist/.makaio-build.json +2 -2
  2. package/dist/attempt-record-codec-BORASgzn.mjs +1 -0
  3. package/dist/bus/index.d.mts +19 -19
  4. package/dist/bus/index.mjs +1 -1
  5. package/dist/{context-resolution-841T7jBI.d.mts → context-resolution-CoKFKIqz.d.mts} +3 -3
  6. package/dist/contracts/adapter/index.d.mts +1 -1
  7. package/dist/contracts/artifact/index.d.mts +2 -2
  8. package/dist/contracts/canonical-model/index.d.mts +1 -1
  9. package/dist/contracts/capabilities/index.d.mts +1 -1
  10. package/dist/contracts/client/index.d.mts +1 -1
  11. package/dist/contracts/extension/index.d.mts +3 -3
  12. package/dist/contracts/index.d.mts +616 -122
  13. package/dist/contracts/index.mjs +1 -1
  14. package/dist/contracts/materialization/index.d.mts +2 -2
  15. package/dist/contracts/session/index.d.mts +2 -2
  16. package/dist/contracts/shared/index.d.mts +1 -1
  17. package/dist/contracts/variant/index.d.mts +1 -1
  18. package/dist/contracts/worker/index.d.mts +1 -1
  19. package/dist/contracts/worker/index.mjs +1 -1
  20. package/dist/contracts/workflow/index.d.mts +2 -2
  21. package/dist/{execution-attempt-repository-DY4KTptE.d.mts → execution-attempt-repository-CRdrgou3.d.mts} +512 -3
  22. package/dist/{index-jxPncqWZ2.d.mts → index--Ws52sWV2.d.mts} +4 -4
  23. package/dist/{index-Wbd_syN2.d.mts → index-37_b--BH.d.mts} +11 -11
  24. package/dist/{index-6trZYnUP2.d.mts → index-8NdPPzUh2.d.mts} +12 -12
  25. package/dist/{index-B-3I98nw.d.mts → index-AdcDBUnc.d.mts} +95 -95
  26. package/dist/{index-C6aSnO8m.d.mts → index-BJdkVFX9.d.mts} +288 -24
  27. package/dist/{index-DXtQRehh.d.mts → index-BKIxdzIw.d.mts} +11 -11
  28. package/dist/{index-CmwAJ8-5.d.mts → index-CFI6FxC7.d.mts} +1 -1
  29. package/dist/{index-DI2lS7VT.d.mts → index-CVcG4Q3X.d.mts} +5 -5
  30. package/dist/{index-DHH-93YD.d.mts → index-CYjgoYeX.d.mts} +1 -1
  31. package/dist/{index-CDud4NAm.d.mts → index-CxwqnZpT.d.mts} +75 -75
  32. package/dist/{index-BkbnC65b.d.mts → index-CyWGSxrs.d.mts} +291 -291
  33. package/dist/{index-C146Eq_J.d.mts → index-D1wTWSLR.d.mts} +327 -327
  34. package/dist/{index-Bqk0pJBQ2.d.mts → index-DBD_oFEt2.d.mts} +1 -1
  35. package/dist/{index-BmilK-co2.d.mts → index-DV38-klA2.d.mts} +12 -36
  36. package/dist/{index-DNI6UF9h.d.mts → index-I5a37JCm.d.mts} +4 -4
  37. package/dist/kernel/extension/index.d.mts +1 -1
  38. package/dist/kernel/index.d.mts +2 -2
  39. package/dist/kernel/observability/index.d.mts +1 -1
  40. package/dist/{namespace-l-HG1rLF.d.mts → namespace-Bo94cenp.d.mts} +136 -136
  41. package/dist/{namespace-DknCutQZ.d.mts → namespace-CPm9dhi2.d.mts} +2 -2
  42. package/dist/{namespace-BNp7n_gu.d.mts → namespace-CsnrP8AD.d.mts} +3 -3
  43. package/dist/{namespace-BGRHcrmp.d.mts → namespace-CstawJgN.d.mts} +2 -2
  44. package/dist/{package-efR90JGe.d.mts → package-DkZmsdCd.d.mts} +49 -1
  45. package/dist/package-UemD2NWn.mjs +7 -0
  46. package/dist/package.json +1 -1
  47. package/dist/runtime-node/index.d.mts +2 -2
  48. package/dist/runtime-node/index.mjs +24 -24
  49. package/dist/runtime-node/workflow-execution-bus-access.mjs +1 -1
  50. package/dist/runtime-node/workflow-worker/index.d.mts +2 -2
  51. package/dist/runtime-node/workflow-worker/index.mjs +1 -1
  52. package/dist/runtime-node/workflow-worker/worker-entry.d.mts +49 -9
  53. package/dist/runtime-node/workflow-worker/worker-entry.mjs +1 -1
  54. package/dist/runtime-registration-client-BTtFpt_k.mjs +1 -0
  55. package/dist/{schemas-D7EeKBDJ.d.mts → schemas-CJKHYluy.d.mts} +13 -13
  56. package/dist/{schemas-C1mxTfd7.d.mts → schemas-CenET9Cq.d.mts} +1 -1
  57. package/dist/{schemas-D7ScxLrf.d.mts → schemas-DTJtS14K.d.mts} +136 -136
  58. package/dist/services/adapter-runtime/index.d.mts +3 -3
  59. package/dist/services/adapter-runtime/namespace.d.mts +1 -1
  60. package/dist/services/adapter-runtime/schemas.d.mts +1 -1
  61. package/dist/services/agent-runtime/index.d.mts +2 -2
  62. package/dist/services/agent-runtime/namespace.d.mts +1 -1
  63. package/dist/services/agent-runtime/schemas.d.mts +1 -1
  64. package/dist/services/filesystem/namespace.d.mts +6 -6
  65. package/dist/services/filesystem/schemas.d.mts +3 -3
  66. package/dist/services/index.d.mts +86 -86
  67. package/dist/services/session/index.d.mts +1 -1
  68. package/dist/services/session/messages/namespace.d.mts +1 -1
  69. package/dist/services/settings/namespace.d.mts +10 -10
  70. package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
  71. package/dist/services/subagent-template/index.d.mts +2 -2
  72. package/dist/services/subagent-template/namespace.d.mts +1 -1
  73. package/dist/services/subagent-template/schemas.d.mts +1 -1
  74. package/dist/{transition-D3zUBTPc.d.mts → transition-DxsrTsn4.d.mts} +1 -1
  75. package/dist/{types-DcxBYlPA.d.mts → types-Czdm5op1.d.mts} +306 -306
  76. package/dist/{view-builder-B0j9p5C0.d.mts → view-builder-D-Wz_l_B.d.mts} +1 -1
  77. package/dist/worker-DlRdLf2d.mjs +1 -0
  78. package/dist/workflow-engine/execution-attempt-repository.d.mts +2 -2
  79. package/dist/workflow-engine/execution-attempt-repository.mjs +1 -1
  80. package/dist/workflow-engine/index.d.mts +205 -70
  81. package/dist/workflow-engine/index.mjs +1 -1
  82. package/dist/workflow-engine/package.d.mts +1 -1
  83. package/dist/workflow-engine/package.mjs +1 -1
  84. package/dist/workflow-engine/testing/index.d.mts +55 -3
  85. package/dist/workflow-engine/testing/index.mjs +1 -1
  86. package/dist/workflow-engine/testing/sqlite.d.mts +1 -1
  87. package/dist/workflow-engine/testing/sqlite.mjs +106 -38
  88. package/dist/workflow-worker-DjUfKshi.mjs +1 -0
  89. package/package.json +1 -1
  90. package/dist/attempt-record-codec-dC9LSFUE.mjs +0 -1
  91. package/dist/await-trigger-Bkg2BQfg.mjs +0 -1
  92. package/dist/package-Cgjpm9om.mjs +0 -7
  93. package/dist/worker-CARV52hT.mjs +0 -1
  94. package/dist/workflow-worker-Dul-wcOR.mjs +0 -1
@@ -1,6 +1,6 @@
1
1
  import { a as ProviderOperationClaim, c as ProviderOperationObligation, i as ProcessBoundProvisionerLossProof, l as ProviderOperationOwnershipRecord, n as InitialProviderOperationClaimContextSource, o as ProviderOperationClaimDecision, r as PROVIDER_OPERATION_OBLIGATIONS, s as ProviderOperationMutationDecision, t as InitialProviderOperationClaimContext } from "../provider-operation-DbdyFwNm.mjs";
2
- import { A as RecordProviderOperationUncertaintyInput, C as PendingAttemptAbandonmentDecision, D as RecordAllocationInput, E as ProvisioningClaimDecision, F as TakeOverProviderOperationInput, I as decodeDurableOutcome, L as durableOutcome, M as RecordProvisioningAbsentInput, N as RecoverableAttemptRecord, O as RecordAllocationTerminatedInput, P as RenewProviderOperationClaimInput, R as sameAllocationRef, S as OutcomeCodec, T as ProvisioningAbsenceDecision, _ as ExecutionAttemptSettlementKind, a as BeginProvisioningInput, b as HandoffProviderOperationInput, c as DurableOutcome, d as ExecutionAttemptCreate, f as ExecutionAttemptOutcomeCommit, g as ExecutionAttemptRepository, h as ExecutionAttemptRecoveryOperations, i as AllocationTerminationDecision, j as RecordProvisionerIncarnationLostInput, k as RecordInfrastructureFailureInput, l as EXECUTION_ATTEMPT_SETTLEMENT_KINDS, m as ExecutionAttemptRecord, n as AllocationRefEvolution, o as DiscoveredAllocationDecision, p as ExecutionAttemptOutcomeDecision, r as AllocationRefEvolutionDecision, s as DuplicateExecutionAttemptError, t as AllocationRecordingDecision, u as EXECUTION_ATTEMPT_STATUSES, v as ExecutionAttemptStatus, w as ProvisionerIncarnationLossDecision, x as InfrastructureFailureDecision, y as ExecutionOwnerId, z as sameDurableOutcome } from "../execution-attempt-repository-DY4KTptE.mjs";
3
- import { a as WorkflowEngineServiceOptions, c as ExecutionAttemptAuthority, d as WorkflowWorkspaceRootResolver, f as registerDrizzleWorkflowStorage, i as WorkflowEngineService, l as WorkflowMaterializationSpecResolution, n as createWorkflowEnginePackage, o as WorkflowTriggerReconciler, r as workflowEnginePackage, s as WorkflowExecutor, t as WorkflowEngineToken, u as WorkflowMaterializationSpecResolver } from "../package-efR90JGe.mjs";
2
+ import { A as OutcomeCodec, B as RecordProvisioningAbsentInput, C as ExecutionAttemptStatus, D as MarkRuntimeReadyInput, E as InfrastructureFailureDecision, F as RecordAllocationInput, G as RuntimeRegistrationDecision, H as RegisterRuntimeInput, I as RecordAllocationTerminatedInput, J as durableOutcome, K as TakeOverProviderOperationInput, L as RecordInfrastructureFailureInput, M as ProvisionerIncarnationLossDecision, N as ProvisioningAbsenceDecision, O as OperationAdmissionDecision, P as ProvisioningClaimDecision, R as RecordProviderOperationUncertaintyInput, S as ExecutionAttemptSettlementKind, T as HandoffProviderOperationInput, U as RenewProviderOperationClaimInput, V as RecoverableAttemptRecord, W as RuntimeReadinessDecision, X as sameDurableOutcome, Y as sameAllocationRef, _ as ExecutionAttemptOutcomeCommit, a as AllocationRefEvolutionDecision, b as ExecutionAttemptRecoveryOperations, c as AttemptOperationStartGate, d as DiscoveredAllocationDecision, f as DuplicateExecutionAttemptError, g as ExecutionAttemptCreate, h as EXECUTION_ATTEMPT_STATUSES, i as AllocationRefEvolution, j as PendingAttemptAbandonmentDecision, k as OperationCompletionDecision, l as BeginProvisioningInput, m as EXECUTION_ATTEMPT_SETTLEMENT_KINDS, n as AdmitOperationInput, o as AllocationTerminationDecision, p as DurableOutcome, q as decodeDurableOutcome, r as AllocationRecordingDecision, s as AttemptControlState, t as ATTEMPT_OPERATION_START_GATES, u as CompleteOperationInput, v as ExecutionAttemptOutcomeDecision, w as ExecutionOwnerId, x as ExecutionAttemptRepository, y as ExecutionAttemptRecord, z as RecordProvisionerIncarnationLostInput } from "../execution-attempt-repository-CRdrgou3.mjs";
3
+ import { a as WorkflowEngineServiceOptions, c as ExecutionAttemptAuthority, d as WorkflowWorkspaceRootResolver, f as registerDrizzleWorkflowStorage, i as WorkflowEngineService, l as WorkflowMaterializationSpecResolution, n as createWorkflowEnginePackage, o as WorkflowTriggerReconciler, r as workflowEnginePackage, s as WorkflowExecutor, t as WorkflowEngineToken, u as WorkflowMaterializationSpecResolver } from "../package-DkZmsdCd.mjs";
4
4
  import { WorkflowTriggerPayloadPredicate, assertWorkflowTriggerPayload, compileWorkflowTriggerBindingFilter } from "./workflow-trigger-binding-consumer.mjs";
5
5
  import { z } from "zod";
6
6
  import * as _$_makaio_core0 from "@makaio/framework/core";
@@ -24,6 +24,141 @@ interface WorkflowSuccessFinalizer {
24
24
  readonly finalizeSubject: ReturnType<typeof createWorkflowFinalizerNamespace>['subjects']['finalize'];
25
25
  }
26
26
  //#endregion
27
+ //#region subsystems/workflow-engine/src/runtime-registration.d.ts
28
+ /**
29
+ * Time the authority waits for the runtime's receipt of the bounded probe.
30
+ *
31
+ * Strictly below the bus-wide `DEFAULT_REQUEST_TIMEOUT_MS` of 60 000 ms the
32
+ * outer `execution-attempt.runtime.register` request runs on, so a dead
33
+ * endpoint fails its own registration with `probe-failed` instead of timing
34
+ * out the runtime that is waiting for the decision.
35
+ */
36
+ declare const RUNTIME_PROBE_DELIVERY_TIMEOUT_MS = 10000;
37
+ /**
38
+ * Dependencies for the runtime registration handler.
39
+ */
40
+ interface RuntimeRegistrationDeps<TOutcome> {
41
+ /**
42
+ * Bus the authority speaks on.
43
+ *
44
+ * Carries the probe delivery request and the readiness event. The bus the
45
+ * handler is registered on is the registrar's own first argument; in every
46
+ * production wiring the two are the same instance.
47
+ */
48
+ readonly bus: IMakaioBus;
49
+ /** Execution attempt Authority service. */
50
+ readonly authority: ExecutionAttemptAuthority<TOutcome>;
51
+ /**
52
+ * Probe delivery budget override, in milliseconds.
53
+ *
54
+ * Defaults to {@link RUNTIME_PROBE_DELIVERY_TIMEOUT_MS}. Exists so a test can
55
+ * pin the timeout branch without waiting ten seconds for it; production
56
+ * wiring omits it.
57
+ */
58
+ readonly probeDeliveryTimeoutMs?: number;
59
+ }
60
+ /**
61
+ * Register the `execution-attempt.runtime.register` bus handler.
62
+ *
63
+ * The single authority gate for runtime registration. It runs the whole
64
+ * handshake inside the one request the runtime made, so the reply is the
65
+ * runtime's complete answer and there is no `not-ready` retry loop:
66
+ *
67
+ * 1. Resolve the authenticated attempt peer and refuse unless its attempt id
68
+ * equals the payload's. Local origin is not a bypass — this handler is the
69
+ * identity fence, and the peer is where `executionId` comes from, because no
70
+ * payload in the namespace carries one.
71
+ * 2. `registerRuntime`. A `duplicate` that already proved readiness announces
72
+ * that readiness again (step 7) and is answered `duplicate`; a `duplicate` without
73
+ * readiness is a replay of this incarnation's own report and continues at
74
+ * step 3 exactly as `registered` does. Every other refusal is reported
75
+ * one-to-one.
76
+ * 3. Admit the bounded runtime probe under `probe:<runtimeIncarnationId>`. **No
77
+ * `operation.admitted` event is published for `runtime-probe`** — the probe
78
+ * never reaches the pool.
79
+ * 4. Deliver the probe to the runtime's own filtered subscription within
80
+ * {@link RUNTIME_PROBE_DELIVERY_TIMEOUT_MS}. The delivery names the
81
+ * incarnation, so only the endpoint that registered can answer it. A
82
+ * `refused` receipt, a timeout, an absent responder, or any throw fails the
83
+ * registration with `probe-failed`, releases the probe's slot, and leaves
84
+ * readiness unproven.
85
+ * 5. `completeOperation`, which frees the attempt for real work.
86
+ * 6. `markRuntimeReady`, which makes readiness durable for this generation and
87
+ * is the last fence: an attempt superseded since step 2 is refused here.
88
+ * 7. Publish `execution-attempt.runtime.ready` for the durable readiness, on
89
+ * the `ready` transition and on every `duplicate` that finds it already
90
+ * persisted. Announcements are at-least-once projections of durable state:
91
+ * the authority re-reads the control state right before it announces and
92
+ * publishes only the readiness that still holds — the same generation, still
93
+ * ready — so a newer incarnation that registered in between is never
94
+ * misrepresented by a stale announcement; a retried registration announces
95
+ * again, so an announcement whose first pass failed after persistence is
96
+ * delivered by the next pass; and every consumer is idempotent and
97
+ * generation-aware — the worker pool projects each generation once and
98
+ * ignores older ones, the Fly tracker resolves once, and observability
99
+ * upserts. What this does not cover is a process that exits between
100
+ * persisting readiness and announcing it: until a durable publication marker
101
+ * exists, that readiness is announced by the next registration of the same
102
+ * incarnation, or never.
103
+ * 8. Reply `ready` with the generation the runtime must fence everything else
104
+ * with.
105
+ *
106
+ * Step 7 is unreachable unless step 5 persisted the completion: readiness is
107
+ * announced only after the probe receipt became a durable fact.
108
+ * @param bus - Bus the handler subscribes on.
109
+ * @param deps - Runtime registration dependencies.
110
+ * @returns Cleanup function for handler deregistration.
111
+ */
112
+ declare function registerRuntimeRegistrationHandler<TOutcome>(bus: IMakaioBus, deps: RuntimeRegistrationDeps<TOutcome>): () => void;
113
+ //#endregion
114
+ //#region subsystems/workflow-engine/src/operation-admission.d.ts
115
+ /**
116
+ * Dependencies for the operation admission handler.
117
+ */
118
+ interface OperationAdmissionDeps<TOutcome> {
119
+ /**
120
+ * Bus the authority speaks on.
121
+ *
122
+ * Carries the `operation.admitted` announcement. The bus the handler is
123
+ * registered on is the registrar's own first argument; in every production
124
+ * wiring the two are the same instance.
125
+ */
126
+ readonly bus: IMakaioBus;
127
+ /** Execution attempt Authority service. */
128
+ readonly authority: ExecutionAttemptAuthority<TOutcome>;
129
+ }
130
+ /**
131
+ * Register the `execution-attempt.operation.admit` bus handler.
132
+ *
133
+ * The single authority gate for the attempt's start gate. It fences the caller
134
+ * exactly as runtime registration does — the authenticated attempt peer must be
135
+ * the attempt named in the payload, and `executionId` is taken from the peer
136
+ * because no payload in the namespace carries one — and then makes one
137
+ * `admitOperation` call whose eight refusal kinds are the eight wire refusal
138
+ * reasons, one to one.
139
+ *
140
+ * `runtime-probe` is not admissible here at all. The bounded probe is the
141
+ * authority's own proof of the endpoint, admitted and completed inside the
142
+ * registration handshake; a caller admitting one on this gate would occupy the
143
+ * attempt's single slot with an operation no subject can complete. It is
144
+ * refused as a protocol violation, exactly like a peer mismatch.
145
+ *
146
+ * `execution-attempt.operation.admitted` is published for the durable
147
+ * admission, on the `admitted` transition and on every `duplicate` that finds
148
+ * it already persisted. Publication is at-least-once: a retried admission
149
+ * announces again, so an announcement whose first pass failed after
150
+ * persistence is delivered by the next pass. Every consumer is idempotent —
151
+ * the worker pool collapses repeats into one `busy` projection and
152
+ * observability upserts. What this does not cover is a process that exits
153
+ * between persisting the admission and announcing it: until a durable
154
+ * publication marker exists, that admission is announced by the next retry of
155
+ * the same key, or never.
156
+ * @param bus - Bus the handler subscribes on.
157
+ * @param deps - Operation admission dependencies.
158
+ * @returns Cleanup function for handler deregistration.
159
+ */
160
+ declare function registerOperationAdmissionHandler<TOutcome>(bus: IMakaioBus, deps: OperationAdmissionDeps<TOutcome>): () => void;
161
+ //#endregion
27
162
  //#region subsystems/workflow-engine/src/authority-dispatch-runner.d.ts
28
163
  /**
29
164
  * Inputs for dispatching an Authority-owned attempt.
@@ -577,8 +712,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
577
712
  pending: "pending";
578
713
  completed: "completed";
579
714
  cancelled: "cancelled";
580
- failed: "failed";
581
715
  running: "running";
716
+ failed: "failed";
582
717
  paused: "paused";
583
718
  finalizing: "finalizing";
584
719
  }>;
@@ -619,8 +754,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
619
754
  pending: "pending";
620
755
  completed: "completed";
621
756
  cancelled: "cancelled";
622
- failed: "failed";
623
757
  running: "running";
758
+ failed: "failed";
624
759
  paused: "paused";
625
760
  finalizing: "finalizing";
626
761
  }>;
@@ -668,8 +803,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
668
803
  pending: "pending";
669
804
  completed: "completed";
670
805
  cancelled: "cancelled";
671
- failed: "failed";
672
806
  running: "running";
807
+ failed: "failed";
673
808
  paused: "paused";
674
809
  finalizing: "finalizing";
675
810
  }>;
@@ -924,10 +1059,10 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
924
1059
  frameId: z.ZodString;
925
1060
  nodeId: z.ZodString;
926
1061
  nodeType: z.ZodEnum<{
1062
+ sequence: "sequence";
927
1063
  station: "station";
928
1064
  "delegate-agent": "delegate-agent";
929
1065
  "delegate-role": "delegate-role";
930
- sequence: "sequence";
931
1066
  parallel: "parallel";
932
1067
  gate: "gate";
933
1068
  iterate: "iterate";
@@ -969,10 +1104,10 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
969
1104
  frameId: z.ZodString;
970
1105
  nodeId: z.ZodString;
971
1106
  nodeType: z.ZodEnum<{
1107
+ sequence: "sequence";
972
1108
  station: "station";
973
1109
  "delegate-agent": "delegate-agent";
974
1110
  "delegate-role": "delegate-role";
975
- sequence: "sequence";
976
1111
  parallel: "parallel";
977
1112
  gate: "gate";
978
1113
  iterate: "iterate";
@@ -1008,8 +1143,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1008
1143
  pending: "pending";
1009
1144
  completed: "completed";
1010
1145
  cancelled: "cancelled";
1011
- failed: "failed";
1012
1146
  running: "running";
1147
+ failed: "failed";
1013
1148
  paused: "paused";
1014
1149
  finalizing: "finalizing";
1015
1150
  }>>;
@@ -1205,8 +1340,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1205
1340
  pending: "pending";
1206
1341
  completed: "completed";
1207
1342
  cancelled: "cancelled";
1208
- failed: "failed";
1209
1343
  running: "running";
1344
+ failed: "failed";
1210
1345
  paused: "paused";
1211
1346
  finalizing: "finalizing";
1212
1347
  }>>;
@@ -1229,8 +1364,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1229
1364
  pending: "pending";
1230
1365
  completed: "completed";
1231
1366
  cancelled: "cancelled";
1232
- failed: "failed";
1233
1367
  running: "running";
1368
+ failed: "failed";
1234
1369
  paused: "paused";
1235
1370
  finalizing: "finalizing";
1236
1371
  }>;
@@ -1282,8 +1417,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1282
1417
  pending: "pending";
1283
1418
  completed: "completed";
1284
1419
  cancelled: "cancelled";
1285
- failed: "failed";
1286
1420
  running: "running";
1421
+ failed: "failed";
1287
1422
  paused: "paused";
1288
1423
  finalizing: "finalizing";
1289
1424
  }>;
@@ -1327,10 +1462,10 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1327
1462
  frameId: z.ZodString;
1328
1463
  nodeId: z.ZodString;
1329
1464
  nodeType: z.ZodEnum<{
1465
+ sequence: "sequence";
1330
1466
  station: "station";
1331
1467
  "delegate-agent": "delegate-agent";
1332
1468
  "delegate-role": "delegate-role";
1333
- sequence: "sequence";
1334
1469
  parallel: "parallel";
1335
1470
  gate: "gate";
1336
1471
  iterate: "iterate";
@@ -1343,10 +1478,10 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1343
1478
  pending: "pending";
1344
1479
  completed: "completed";
1345
1480
  cancelled: "cancelled";
1346
- failed: "failed";
1347
1481
  running: "running";
1348
- waiting: "waiting";
1482
+ failed: "failed";
1349
1483
  skipped: "skipped";
1484
+ waiting: "waiting";
1350
1485
  }>;
1351
1486
  attempt: z.ZodDefault<z.ZodNumber>;
1352
1487
  iteration: z.ZodOptional<z.ZodNumber>;
@@ -1373,10 +1508,10 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1373
1508
  frameId: z.ZodString;
1374
1509
  nodeId: z.ZodString;
1375
1510
  nodeType: z.ZodEnum<{
1511
+ sequence: "sequence";
1376
1512
  station: "station";
1377
1513
  "delegate-agent": "delegate-agent";
1378
1514
  "delegate-role": "delegate-role";
1379
- sequence: "sequence";
1380
1515
  parallel: "parallel";
1381
1516
  gate: "gate";
1382
1517
  iterate: "iterate";
@@ -1389,10 +1524,10 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1389
1524
  pending: "pending";
1390
1525
  completed: "completed";
1391
1526
  cancelled: "cancelled";
1392
- failed: "failed";
1393
1527
  running: "running";
1394
- waiting: "waiting";
1528
+ failed: "failed";
1395
1529
  skipped: "skipped";
1530
+ waiting: "waiting";
1396
1531
  }>;
1397
1532
  attempt: z.ZodDefault<z.ZodNumber>;
1398
1533
  iteration: z.ZodOptional<z.ZodNumber>;
@@ -1416,10 +1551,10 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1416
1551
  frameId: z.ZodString;
1417
1552
  nodeId: z.ZodString;
1418
1553
  nodeType: z.ZodEnum<{
1554
+ sequence: "sequence";
1419
1555
  station: "station";
1420
1556
  "delegate-agent": "delegate-agent";
1421
1557
  "delegate-role": "delegate-role";
1422
- sequence: "sequence";
1423
1558
  parallel: "parallel";
1424
1559
  gate: "gate";
1425
1560
  iterate: "iterate";
@@ -1432,10 +1567,10 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1432
1567
  pending: "pending";
1433
1568
  completed: "completed";
1434
1569
  cancelled: "cancelled";
1435
- failed: "failed";
1436
1570
  running: "running";
1437
- waiting: "waiting";
1571
+ failed: "failed";
1438
1572
  skipped: "skipped";
1573
+ waiting: "waiting";
1439
1574
  }>;
1440
1575
  attempt: z.ZodDefault<z.ZodNumber>;
1441
1576
  iteration: z.ZodOptional<z.ZodNumber>;
@@ -1462,8 +1597,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1462
1597
  status: z.ZodEnum<{
1463
1598
  cancelled: "cancelled";
1464
1599
  rejected: "rejected";
1465
- waiting: "waiting";
1466
1600
  resumed: "resumed";
1601
+ waiting: "waiting";
1467
1602
  "timed-out": "timed-out";
1468
1603
  }>;
1469
1604
  autoAction: z.ZodEnum<{
@@ -1594,8 +1729,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1594
1729
  status: z.ZodEnum<{
1595
1730
  cancelled: "cancelled";
1596
1731
  rejected: "rejected";
1597
- waiting: "waiting";
1598
1732
  resumed: "resumed";
1733
+ waiting: "waiting";
1599
1734
  "timed-out": "timed-out";
1600
1735
  }>;
1601
1736
  autoAction: z.ZodEnum<{
@@ -1619,8 +1754,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1619
1754
  status: z.ZodOptional<z.ZodEnum<{
1620
1755
  cancelled: "cancelled";
1621
1756
  rejected: "rejected";
1622
- waiting: "waiting";
1623
1757
  resumed: "resumed";
1758
+ waiting: "waiting";
1624
1759
  "timed-out": "timed-out";
1625
1760
  }>>;
1626
1761
  limit: z.ZodDefault<z.ZodNumber>;
@@ -1635,8 +1770,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1635
1770
  status: z.ZodEnum<{
1636
1771
  cancelled: "cancelled";
1637
1772
  rejected: "rejected";
1638
- waiting: "waiting";
1639
1773
  resumed: "resumed";
1774
+ waiting: "waiting";
1640
1775
  "timed-out": "timed-out";
1641
1776
  }>;
1642
1777
  autoAction: z.ZodEnum<{
@@ -1670,8 +1805,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1670
1805
  status: z.ZodEnum<{
1671
1806
  cancelled: "cancelled";
1672
1807
  rejected: "rejected";
1673
- waiting: "waiting";
1674
1808
  resumed: "resumed";
1809
+ waiting: "waiting";
1675
1810
  "timed-out": "timed-out";
1676
1811
  }>;
1677
1812
  autoAction: z.ZodEnum<{
@@ -1700,8 +1835,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1700
1835
  }>;
1701
1836
  status: z.ZodEnum<{
1702
1837
  completed: "completed";
1703
- failed: "failed";
1704
1838
  running: "running";
1839
+ failed: "failed";
1705
1840
  skipped: "skipped";
1706
1841
  }>;
1707
1842
  startedAt: z.ZodOptional<z.ZodNumber>;
@@ -1736,8 +1871,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
1736
1871
  }>;
1737
1872
  status: z.ZodEnum<{
1738
1873
  completed: "completed";
1739
- failed: "failed";
1740
1874
  running: "running";
1875
+ failed: "failed";
1741
1876
  skipped: "skipped";
1742
1877
  }>;
1743
1878
  startedAt: z.ZodOptional<z.ZodNumber>;
@@ -2800,7 +2935,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
2800
2935
  tableName: "workflow_executions";
2801
2936
  dataType: "string";
2802
2937
  columnType: "SQLiteText";
2803
- data: "pending" | "completed" | "cancelled" | "failed" | "running" | "paused" | "finalizing";
2938
+ data: "pending" | "completed" | "cancelled" | "running" | "failed" | "paused" | "finalizing";
2804
2939
  driverParam: string;
2805
2940
  notNull: true;
2806
2941
  hasDefault: false;
@@ -3069,7 +3204,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
3069
3204
  tableName: "workflow_execution_frames";
3070
3205
  dataType: "string";
3071
3206
  columnType: "SQLiteText";
3072
- data: "station" | "delegate-agent" | "delegate-role" | "sequence" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop";
3207
+ data: "sequence" | "station" | "delegate-agent" | "delegate-role" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop";
3073
3208
  driverParam: string;
3074
3209
  notNull: true;
3075
3210
  hasDefault: false;
@@ -3082,7 +3217,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
3082
3217
  generated: undefined;
3083
3218
  }, {}, {
3084
3219
  length: number | undefined;
3085
- $type: "station" | "delegate-agent" | "delegate-role" | "sequence" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop";
3220
+ $type: "sequence" | "station" | "delegate-agent" | "delegate-role" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop";
3086
3221
  }>;
3087
3222
  path: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
3088
3223
  name: string;
@@ -3127,7 +3262,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
3127
3262
  tableName: "workflow_execution_frames";
3128
3263
  dataType: "string";
3129
3264
  columnType: "SQLiteText";
3130
- data: "pending" | "completed" | "cancelled" | "failed" | "running" | "waiting" | "skipped";
3265
+ data: "pending" | "completed" | "cancelled" | "running" | "failed" | "skipped" | "waiting";
3131
3266
  driverParam: string;
3132
3267
  notNull: true;
3133
3268
  hasDefault: true;
@@ -3140,7 +3275,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
3140
3275
  generated: undefined;
3141
3276
  }, {}, {
3142
3277
  length: number | undefined;
3143
- $type: "pending" | "completed" | "cancelled" | "failed" | "running" | "waiting" | "skipped";
3278
+ $type: "pending" | "completed" | "cancelled" | "running" | "failed" | "skipped" | "waiting";
3144
3279
  }>;
3145
3280
  attempt: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
3146
3281
  name: string;
@@ -3410,7 +3545,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
3410
3545
  tableName: "workflow_gate_instances";
3411
3546
  dataType: "string";
3412
3547
  columnType: "SQLiteText";
3413
- data: "cancelled" | "rejected" | "waiting" | "resumed" | "timed-out";
3548
+ data: "cancelled" | "rejected" | "resumed" | "waiting" | "timed-out";
3414
3549
  driverParam: string;
3415
3550
  notNull: true;
3416
3551
  hasDefault: true;
@@ -3423,7 +3558,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
3423
3558
  generated: undefined;
3424
3559
  }, {}, {
3425
3560
  length: number | undefined;
3426
- $type: "cancelled" | "rejected" | "waiting" | "resumed" | "timed-out";
3561
+ $type: "cancelled" | "rejected" | "resumed" | "waiting" | "timed-out";
3427
3562
  }>;
3428
3563
  autoAction: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
3429
3564
  name: "auto_action";
@@ -3638,7 +3773,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
3638
3773
  tableName: "workflow_step_spans";
3639
3774
  dataType: "string";
3640
3775
  columnType: "SQLiteText";
3641
- data: "completed" | "failed" | "running" | "skipped";
3776
+ data: "completed" | "running" | "failed" | "skipped";
3642
3777
  driverParam: string;
3643
3778
  notNull: true;
3644
3779
  hasDefault: false;
@@ -3651,7 +3786,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
3651
3786
  generated: undefined;
3652
3787
  }, {}, {
3653
3788
  length: number | undefined;
3654
- $type: "completed" | "failed" | "running" | "skipped";
3789
+ $type: "completed" | "running" | "failed" | "skipped";
3655
3790
  }>;
3656
3791
  startedAt: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
3657
3792
  name: string;
@@ -4660,7 +4795,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
4660
4795
  tableName: "worklog_summaries";
4661
4796
  dataType: "string";
4662
4797
  columnType: "SQLiteText";
4663
- data: "pending" | "completed" | "cancelled" | "failed" | "running" | "paused" | "finalizing";
4798
+ data: "pending" | "completed" | "cancelled" | "running" | "failed" | "paused" | "finalizing";
4664
4799
  driverParam: string;
4665
4800
  notNull: true;
4666
4801
  hasDefault: false;
@@ -4883,7 +5018,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
4883
5018
  tableName: "worklog_frame_entries";
4884
5019
  dataType: "string";
4885
5020
  columnType: "SQLiteText";
4886
- data: "station" | "delegate-agent" | "delegate-role" | "sequence" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop";
5021
+ data: "sequence" | "station" | "delegate-agent" | "delegate-role" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop";
4887
5022
  driverParam: string;
4888
5023
  notNull: true;
4889
5024
  hasDefault: false;
@@ -4896,7 +5031,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
4896
5031
  generated: undefined;
4897
5032
  }, {}, {
4898
5033
  length: number | undefined;
4899
- $type: "station" | "delegate-agent" | "delegate-role" | "sequence" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop";
5034
+ $type: "sequence" | "station" | "delegate-agent" | "delegate-role" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop";
4900
5035
  }>;
4901
5036
  path: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
4902
5037
  name: string;
@@ -4922,7 +5057,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
4922
5057
  tableName: "worklog_frame_entries";
4923
5058
  dataType: "string";
4924
5059
  columnType: "SQLiteText";
4925
- data: "pending" | "completed" | "cancelled" | "failed" | "running" | "waiting" | "skipped";
5060
+ data: "pending" | "completed" | "cancelled" | "running" | "failed" | "skipped" | "waiting";
4926
5061
  driverParam: string;
4927
5062
  notNull: true;
4928
5063
  hasDefault: false;
@@ -5356,7 +5491,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
5356
5491
  tableName: "worklog_gate_events";
5357
5492
  dataType: "string";
5358
5493
  columnType: "SQLiteText";
5359
- data: "cancelled" | "rejected" | "waiting" | "resumed" | "timed-out";
5494
+ data: "cancelled" | "rejected" | "resumed" | "waiting" | "timed-out";
5360
5495
  driverParam: string;
5361
5496
  notNull: true;
5362
5497
  hasDefault: false;
@@ -5369,7 +5504,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
5369
5504
  generated: undefined;
5370
5505
  }, {}, {
5371
5506
  length: number | undefined;
5372
- $type: "cancelled" | "rejected" | "waiting" | "resumed" | "timed-out";
5507
+ $type: "cancelled" | "rejected" | "resumed" | "waiting" | "timed-out";
5373
5508
  }>;
5374
5509
  prompt: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
5375
5510
  name: "prompt";
@@ -6200,8 +6335,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6200
6335
  pending: "pending";
6201
6336
  completed: "completed";
6202
6337
  cancelled: "cancelled";
6203
- failed: "failed";
6204
6338
  running: "running";
6339
+ failed: "failed";
6205
6340
  paused: "paused";
6206
6341
  finalizing: "finalizing";
6207
6342
  }>;
@@ -6242,8 +6377,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6242
6377
  pending: "pending";
6243
6378
  completed: "completed";
6244
6379
  cancelled: "cancelled";
6245
- failed: "failed";
6246
6380
  running: "running";
6381
+ failed: "failed";
6247
6382
  paused: "paused";
6248
6383
  finalizing: "finalizing";
6249
6384
  }>;
@@ -6291,8 +6426,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6291
6426
  pending: "pending";
6292
6427
  completed: "completed";
6293
6428
  cancelled: "cancelled";
6294
- failed: "failed";
6295
6429
  running: "running";
6430
+ failed: "failed";
6296
6431
  paused: "paused";
6297
6432
  finalizing: "finalizing";
6298
6433
  }>;
@@ -6547,10 +6682,10 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6547
6682
  frameId: z.ZodString;
6548
6683
  nodeId: z.ZodString;
6549
6684
  nodeType: z.ZodEnum<{
6685
+ sequence: "sequence";
6550
6686
  station: "station";
6551
6687
  "delegate-agent": "delegate-agent";
6552
6688
  "delegate-role": "delegate-role";
6553
- sequence: "sequence";
6554
6689
  parallel: "parallel";
6555
6690
  gate: "gate";
6556
6691
  iterate: "iterate";
@@ -6592,10 +6727,10 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6592
6727
  frameId: z.ZodString;
6593
6728
  nodeId: z.ZodString;
6594
6729
  nodeType: z.ZodEnum<{
6730
+ sequence: "sequence";
6595
6731
  station: "station";
6596
6732
  "delegate-agent": "delegate-agent";
6597
6733
  "delegate-role": "delegate-role";
6598
- sequence: "sequence";
6599
6734
  parallel: "parallel";
6600
6735
  gate: "gate";
6601
6736
  iterate: "iterate";
@@ -6631,8 +6766,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6631
6766
  pending: "pending";
6632
6767
  completed: "completed";
6633
6768
  cancelled: "cancelled";
6634
- failed: "failed";
6635
6769
  running: "running";
6770
+ failed: "failed";
6636
6771
  paused: "paused";
6637
6772
  finalizing: "finalizing";
6638
6773
  }>>;
@@ -6828,8 +6963,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6828
6963
  pending: "pending";
6829
6964
  completed: "completed";
6830
6965
  cancelled: "cancelled";
6831
- failed: "failed";
6832
6966
  running: "running";
6967
+ failed: "failed";
6833
6968
  paused: "paused";
6834
6969
  finalizing: "finalizing";
6835
6970
  }>>;
@@ -6852,8 +6987,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6852
6987
  pending: "pending";
6853
6988
  completed: "completed";
6854
6989
  cancelled: "cancelled";
6855
- failed: "failed";
6856
6990
  running: "running";
6991
+ failed: "failed";
6857
6992
  paused: "paused";
6858
6993
  finalizing: "finalizing";
6859
6994
  }>;
@@ -6905,8 +7040,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6905
7040
  pending: "pending";
6906
7041
  completed: "completed";
6907
7042
  cancelled: "cancelled";
6908
- failed: "failed";
6909
7043
  running: "running";
7044
+ failed: "failed";
6910
7045
  paused: "paused";
6911
7046
  finalizing: "finalizing";
6912
7047
  }>;
@@ -6950,10 +7085,10 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6950
7085
  frameId: z.ZodString;
6951
7086
  nodeId: z.ZodString;
6952
7087
  nodeType: z.ZodEnum<{
7088
+ sequence: "sequence";
6953
7089
  station: "station";
6954
7090
  "delegate-agent": "delegate-agent";
6955
7091
  "delegate-role": "delegate-role";
6956
- sequence: "sequence";
6957
7092
  parallel: "parallel";
6958
7093
  gate: "gate";
6959
7094
  iterate: "iterate";
@@ -6966,10 +7101,10 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6966
7101
  pending: "pending";
6967
7102
  completed: "completed";
6968
7103
  cancelled: "cancelled";
6969
- failed: "failed";
6970
7104
  running: "running";
6971
- waiting: "waiting";
7105
+ failed: "failed";
6972
7106
  skipped: "skipped";
7107
+ waiting: "waiting";
6973
7108
  }>;
6974
7109
  attempt: z.ZodDefault<z.ZodNumber>;
6975
7110
  iteration: z.ZodOptional<z.ZodNumber>;
@@ -6996,10 +7131,10 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
6996
7131
  frameId: z.ZodString;
6997
7132
  nodeId: z.ZodString;
6998
7133
  nodeType: z.ZodEnum<{
7134
+ sequence: "sequence";
6999
7135
  station: "station";
7000
7136
  "delegate-agent": "delegate-agent";
7001
7137
  "delegate-role": "delegate-role";
7002
- sequence: "sequence";
7003
7138
  parallel: "parallel";
7004
7139
  gate: "gate";
7005
7140
  iterate: "iterate";
@@ -7012,10 +7147,10 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7012
7147
  pending: "pending";
7013
7148
  completed: "completed";
7014
7149
  cancelled: "cancelled";
7015
- failed: "failed";
7016
7150
  running: "running";
7017
- waiting: "waiting";
7151
+ failed: "failed";
7018
7152
  skipped: "skipped";
7153
+ waiting: "waiting";
7019
7154
  }>;
7020
7155
  attempt: z.ZodDefault<z.ZodNumber>;
7021
7156
  iteration: z.ZodOptional<z.ZodNumber>;
@@ -7039,10 +7174,10 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7039
7174
  frameId: z.ZodString;
7040
7175
  nodeId: z.ZodString;
7041
7176
  nodeType: z.ZodEnum<{
7177
+ sequence: "sequence";
7042
7178
  station: "station";
7043
7179
  "delegate-agent": "delegate-agent";
7044
7180
  "delegate-role": "delegate-role";
7045
- sequence: "sequence";
7046
7181
  parallel: "parallel";
7047
7182
  gate: "gate";
7048
7183
  iterate: "iterate";
@@ -7055,10 +7190,10 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7055
7190
  pending: "pending";
7056
7191
  completed: "completed";
7057
7192
  cancelled: "cancelled";
7058
- failed: "failed";
7059
7193
  running: "running";
7060
- waiting: "waiting";
7194
+ failed: "failed";
7061
7195
  skipped: "skipped";
7196
+ waiting: "waiting";
7062
7197
  }>;
7063
7198
  attempt: z.ZodDefault<z.ZodNumber>;
7064
7199
  iteration: z.ZodOptional<z.ZodNumber>;
@@ -7085,8 +7220,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7085
7220
  status: z.ZodEnum<{
7086
7221
  cancelled: "cancelled";
7087
7222
  rejected: "rejected";
7088
- waiting: "waiting";
7089
7223
  resumed: "resumed";
7224
+ waiting: "waiting";
7090
7225
  "timed-out": "timed-out";
7091
7226
  }>;
7092
7227
  autoAction: z.ZodEnum<{
@@ -7217,8 +7352,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7217
7352
  status: z.ZodEnum<{
7218
7353
  cancelled: "cancelled";
7219
7354
  rejected: "rejected";
7220
- waiting: "waiting";
7221
7355
  resumed: "resumed";
7356
+ waiting: "waiting";
7222
7357
  "timed-out": "timed-out";
7223
7358
  }>;
7224
7359
  autoAction: z.ZodEnum<{
@@ -7242,8 +7377,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7242
7377
  status: z.ZodOptional<z.ZodEnum<{
7243
7378
  cancelled: "cancelled";
7244
7379
  rejected: "rejected";
7245
- waiting: "waiting";
7246
7380
  resumed: "resumed";
7381
+ waiting: "waiting";
7247
7382
  "timed-out": "timed-out";
7248
7383
  }>>;
7249
7384
  limit: z.ZodDefault<z.ZodNumber>;
@@ -7258,8 +7393,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7258
7393
  status: z.ZodEnum<{
7259
7394
  cancelled: "cancelled";
7260
7395
  rejected: "rejected";
7261
- waiting: "waiting";
7262
7396
  resumed: "resumed";
7397
+ waiting: "waiting";
7263
7398
  "timed-out": "timed-out";
7264
7399
  }>;
7265
7400
  autoAction: z.ZodEnum<{
@@ -7293,8 +7428,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7293
7428
  status: z.ZodEnum<{
7294
7429
  cancelled: "cancelled";
7295
7430
  rejected: "rejected";
7296
- waiting: "waiting";
7297
7431
  resumed: "resumed";
7432
+ waiting: "waiting";
7298
7433
  "timed-out": "timed-out";
7299
7434
  }>;
7300
7435
  autoAction: z.ZodEnum<{
@@ -7323,8 +7458,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7323
7458
  }>;
7324
7459
  status: z.ZodEnum<{
7325
7460
  completed: "completed";
7326
- failed: "failed";
7327
7461
  running: "running";
7462
+ failed: "failed";
7328
7463
  skipped: "skipped";
7329
7464
  }>;
7330
7465
  startedAt: z.ZodOptional<z.ZodNumber>;
@@ -7359,8 +7494,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
7359
7494
  }>;
7360
7495
  status: z.ZodEnum<{
7361
7496
  completed: "completed";
7362
- failed: "failed";
7363
7497
  running: "running";
7498
+ failed: "failed";
7364
7499
  skipped: "skipped";
7365
7500
  }>;
7366
7501
  startedAt: z.ZodOptional<z.ZodNumber>;
@@ -8073,7 +8208,7 @@ declare const workflowStepSpansDual: _$_makaio_storage_drizzle0.DualTable<"workf
8073
8208
  frameId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"frame_id", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"frame_id", [string, ...string[]]>>>; /** Step identifier within the workflow definition. */
8074
8209
  stepId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"step_id", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"step_id", [string, ...string[]]>>>; /** Step type discriminant. */
8075
8210
  stepType: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"step_type", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"step_type", [string, ...string[]]>>>; /** Current span status. */
8076
- status: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm0.$Type<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"status", [string, ...string[]], number | undefined>, "completed" | "failed" | "running" | "skipped">>, _$drizzle_orm0.NotNull<_$drizzle_orm0.$Type<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"status", [string, ...string[]]>, "completed" | "failed" | "running" | "skipped">>>; /** Step start timestamp (epoch ms). */
8211
+ status: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm0.$Type<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"status", [string, ...string[]], number | undefined>, "completed" | "running" | "failed" | "skipped">>, _$drizzle_orm0.NotNull<_$drizzle_orm0.$Type<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"status", [string, ...string[]]>, "completed" | "running" | "failed" | "skipped">>>; /** Step start timestamp (epoch ms). */
8077
8212
  startedAt: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteIntegerBuilderInitial<string>, _$drizzle_orm_pg_core0.PgBigInt53BuilderInitial<string>>; /** Step completion timestamp (epoch ms). */
8078
8213
  completedAt: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteIntegerBuilderInitial<string>, _$drizzle_orm_pg_core0.PgBigInt53BuilderInitial<string>>; /** Wall-clock duration in milliseconds. */
8079
8214
  durationMs: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteIntegerBuilderInitial<string>, _$drizzle_orm_pg_core0.PgIntegerBuilderInitial<string>>; /** Input tokens consumed (agent steps). */
@@ -8121,7 +8256,7 @@ declare const worklogFrameEntriesDual: _$_makaio_storage_drizzle0.DualTable<"wor
8121
8256
  /** 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. */
8122
8257
  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. */
8123
8258
  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. */
8124
- 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">>;
8259
+ nodeType: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.$Type<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"node_type", [string, ...string[]], number | undefined>>, "sequence" | "station" | "delegate-agent" | "delegate-role" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop">, _$drizzle_orm0.$Type<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"node_type", [string, ...string[]]>>, "sequence" | "station" | "delegate-agent" | "delegate-role" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop">>;
8125
8260
  /**
8126
8261
  * Ordered path of frame IDs from the root frame to this frame (inclusive).
8127
8262
  * Stored as a JSON array for tree correlation.
@@ -8222,4 +8357,4 @@ declare function patchWorkflowState(db: MakaioDatabase, params: {
8222
8357
  value: JsonValue;
8223
8358
  }>;
8224
8359
  //#endregion
8225
- export { type AllocationRecordingDecision, type AllocationRefEvolution, type AllocationRefEvolutionDecision, type AllocationTerminationDecision, type AttemptOutcomeSubmission, type AttemptOutcomeSubmissionDeps, type AuthorityDispatchRunnerOptions, type BeginProvisioningInput, type DiscoveredAllocationDecision, DuplicateExecutionAttemptError, type DurableOutcome, EXECUTION_ATTEMPT_SETTLEMENT_KINDS, EXECUTION_ATTEMPT_STATUSES, ExecutionAttemptAuthority, type ExecutionAttemptCreate, type ExecutionAttemptOutcomeCommit, type ExecutionAttemptOutcomeDecision, type ExecutionAttemptRecord, type ExecutionAttemptRecoveryOperations, type ExecutionAttemptRepository, type ExecutionAttemptSettlementKind, type ExecutionAttemptStatus, type ExecutionOwnerId, type HandoffProviderOperationInput, type InfrastructureFailureDecision, type InitialProviderOperationClaimContext, type InitialProviderOperationClaimContextSource, type OutcomeCodec, type OutcomeConvergence, type OutcomeConvergenceInput, type OutcomePreCommitValidation, PROVIDER_OPERATION_OBLIGATIONS, type PendingAttemptAbandonmentDecision, type ProcessBoundProvisionerLossProof, type ProviderOperationClaim, type ProviderOperationClaimDecision, type ProviderOperationMutationDecision, type ProviderOperationObligation, type ProviderOperationOwnershipRecord, type ProvisionerIncarnationLossDecision, type ProvisioningAbsenceDecision, type ProvisioningClaimDecision, type RecordAllocationInput, type RecordAllocationTerminatedInput, type RecordInfrastructureFailureInput, type RecordProviderOperationUncertaintyInput, type RecordProvisionerIncarnationLostInput, type RecordProvisioningAbsentInput, type RecoverableAttemptRecord, type RenewProviderOperationClaimInput, type TakeOverProviderOperationInput, WorkflowEngineService, type WorkflowEngineServiceOptions, WorkflowEngineToken, WorkflowExecutor, type WorkflowMaterializationSpecResolution, type WorkflowMaterializationSpecResolver, WorkflowStorageNamespace, WorkflowStorageSubjects, type WorkflowSuccessFinalizer, type WorkflowTriggerPayloadPredicate, WorkflowTriggerReconciler, type WorkflowWorkspaceRootResolver, assertWorkflowTriggerPayload, buildWorkflowExpressionContextFromResolvedInputs, compileWorkflowTriggerBindingFilter, createWorkflowEnginePackage, decodeDurableOutcome, durableOutcome, getWorkflowState, initializeWorkflowState, patchWorkflowState, registerDrizzleWorkflowStorage, runAuthorityDispatchedAttempt, runShellStep, sameAllocationRef, sameDurableOutcome, submitAttemptOutcome, workflowDefinitionsDual, workflowEnginePackage, workflowExecutionStateDual, workflowExecutionStateEventsDual, workflowExecutionsDual, workflowFinalizationsDual, workflowStepSpansDual, worklogFrameEntriesDual, worklogSummariesDual };
8360
+ export { ATTEMPT_OPERATION_START_GATES, type AdmitOperationInput, type AllocationRecordingDecision, type AllocationRefEvolution, type AllocationRefEvolutionDecision, type AllocationTerminationDecision, type AttemptControlState, type AttemptOperationStartGate, type AttemptOutcomeSubmission, type AttemptOutcomeSubmissionDeps, type AuthorityDispatchRunnerOptions, type BeginProvisioningInput, type CompleteOperationInput, type DiscoveredAllocationDecision, DuplicateExecutionAttemptError, type DurableOutcome, EXECUTION_ATTEMPT_SETTLEMENT_KINDS, EXECUTION_ATTEMPT_STATUSES, ExecutionAttemptAuthority, type ExecutionAttemptCreate, type ExecutionAttemptOutcomeCommit, type ExecutionAttemptOutcomeDecision, type ExecutionAttemptRecord, type ExecutionAttemptRecoveryOperations, type ExecutionAttemptRepository, type ExecutionAttemptSettlementKind, type ExecutionAttemptStatus, type ExecutionOwnerId, type HandoffProviderOperationInput, type InfrastructureFailureDecision, type InitialProviderOperationClaimContext, type InitialProviderOperationClaimContextSource, type MarkRuntimeReadyInput, type OperationAdmissionDecision, type OperationAdmissionDeps, type OperationCompletionDecision, type OutcomeCodec, type OutcomeConvergence, type OutcomeConvergenceInput, type OutcomePreCommitValidation, PROVIDER_OPERATION_OBLIGATIONS, type PendingAttemptAbandonmentDecision, type ProcessBoundProvisionerLossProof, type ProviderOperationClaim, type ProviderOperationClaimDecision, type ProviderOperationMutationDecision, type ProviderOperationObligation, type ProviderOperationOwnershipRecord, type ProvisionerIncarnationLossDecision, type ProvisioningAbsenceDecision, type ProvisioningClaimDecision, RUNTIME_PROBE_DELIVERY_TIMEOUT_MS, type RecordAllocationInput, type RecordAllocationTerminatedInput, type RecordInfrastructureFailureInput, type RecordProviderOperationUncertaintyInput, type RecordProvisionerIncarnationLostInput, type RecordProvisioningAbsentInput, type RecoverableAttemptRecord, type RegisterRuntimeInput, type RenewProviderOperationClaimInput, type RuntimeReadinessDecision, type RuntimeRegistrationDecision, type RuntimeRegistrationDeps, type TakeOverProviderOperationInput, WorkflowEngineService, type WorkflowEngineServiceOptions, WorkflowEngineToken, WorkflowExecutor, type WorkflowMaterializationSpecResolution, type WorkflowMaterializationSpecResolver, WorkflowStorageNamespace, WorkflowStorageSubjects, type WorkflowSuccessFinalizer, type WorkflowTriggerPayloadPredicate, WorkflowTriggerReconciler, type WorkflowWorkspaceRootResolver, assertWorkflowTriggerPayload, buildWorkflowExpressionContextFromResolvedInputs, compileWorkflowTriggerBindingFilter, createWorkflowEnginePackage, decodeDurableOutcome, durableOutcome, getWorkflowState, initializeWorkflowState, patchWorkflowState, registerDrizzleWorkflowStorage, registerOperationAdmissionHandler, registerRuntimeRegistrationHandler, runAuthorityDispatchedAttempt, runShellStep, sameAllocationRef, sameDurableOutcome, submitAttemptOutcome, workflowDefinitionsDual, workflowEnginePackage, workflowExecutionStateDual, workflowExecutionStateEventsDual, workflowExecutionsDual, workflowFinalizationsDual, workflowStepSpansDual, worklogFrameEntriesDual, worklogSummariesDual };