@voltro/workflow 0.71.1 → 0.72.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { Cause } from 'effect';
2
+ import { ColumnBuilder } from '@voltro/database';
2
3
  import { Context } from 'effect';
3
4
  import { DataStore } from '@voltro/database';
4
5
  import { DurableClock as durableClock } from '@effect/workflow';
@@ -7,6 +8,7 @@ import { DurableRateLimiter as durableRateLimiterModule } from '@effect/workflow
7
8
  import { Duration } from 'effect';
8
9
  import { Effect } from 'effect';
9
10
  import { FiberRef } from 'effect';
11
+ import { FieldDefinitions } from '@voltro/database';
10
12
  import { Layer } from 'effect';
11
13
  import { ParseResult } from 'effect';
12
14
  import { QueryDescriptor } from '@voltro/database';
@@ -15,6 +17,7 @@ import { Schema } from 'effect';
15
17
  import { SchemaTable } from '@voltro/database';
16
18
  import { Activity as stepModule } from '@effect/workflow';
17
19
  import { Subject } from '@voltro/protocol';
20
+ import { Table } from '@voltro/database';
18
21
  import { TableLike } from '@voltro/database';
19
22
  import { WorkflowAccessOptions } from '@voltro/protocol';
20
23
  import { WorkflowEngine } from '@effect/workflow';
@@ -132,33 +135,27 @@ export declare interface AdmissionDrainDeps {
132
135
  readonly reason: string;
133
136
  readonly detail?: Record<string, unknown>;
134
137
  }) => Promise<boolean>;
135
- /**
136
- * Work that will not complete: a queued start expired or lost its workflow,
137
- * or `timeouts.finish` durably cancelled a run. Wired to the same `onFailure`
138
- * path an exhausted retry takes — a job that silently did not happen is the
139
- * failure this whole feature exists to remove, so it must not be the one
140
- * outcome with no notification.
141
- */
142
138
  /**
143
139
  * Dead-letter an intent after this many failed drain attempts, `false` for
144
140
  * never. Default `DEFAULT_DEAD_LETTER_AFTER_ATTEMPTS` (50) — with the retry
145
141
  * backoff (`retryBackoffMs`, 1 s doubling to 5 min) that is several hours of
146
142
  * a failure that does not clear, which is no longer transient in any sense a
147
- * retry can help. Signalled to `onFailure` once and retained, exactly like a
148
- * permanent payload failure; `voltro workflows flow retry` re-arms it.
149
- * Unacknowledged submissions instead persist an automatic-retry stop with
150
- * acceptance unknown: no abandonment report and no concurrency release.
151
- * Pending-intent retry commands do not reconcile those submissions.
143
+ * retry can help. The dead-letter is one transaction with its `onFailure`
144
+ * report — a resident row the failure recovery delivers, exactly like a
145
+ * permanent payload failure — and the row is retained; `voltro workflows flow
146
+ * retry` re-arms it. Unacknowledged submissions instead persist an
147
+ * automatic-retry stop with acceptance unknown: no abandonment report and no
148
+ * concurrency release. Pending-intent retry commands do not reconcile those
149
+ * submissions.
150
+ *
151
+ * Work that will not complete — a start that expired or lost its workflow,
152
+ * an intent dead-lettered, a run `timeouts.finish` cancelled — is never
153
+ * reported through a process callback: a job that silently did not happen is
154
+ * the failure this feature exists to remove, and a callback a dead process
155
+ * does not call is exactly that silence one crash later. Every such outcome
156
+ * writes its report where its decision is written.
152
157
  */
153
158
  readonly deadLetterAfterAttempts?: number | false;
154
- readonly onAbandoned: (input: {
155
- readonly workflowName: string;
156
- readonly payload: unknown;
157
- readonly callerContext: unknown;
158
- readonly reason: string;
159
- readonly runId?: string | null;
160
- readonly executionId?: string | null;
161
- }) => Promise<void>;
162
159
  /** Runs of a controlled workflow that are still running, for `timeouts.finish`. */
163
160
  readonly listRunningRuns?: (workflowName: string) => Promise<ReadonlyArray<{
164
161
  readonly runId: string;
@@ -347,6 +344,11 @@ export declare const allIntents: (store: AdmissionDataStore, limit: number) => P
347
344
  */
348
345
  export declare const assertConsistentPools: (controls: ReadonlyArray<ResolvedFlowControl | undefined>) => void;
349
346
 
347
+ /** Declaration-owned bridge, preserving the definition's engine annotations
348
+ * and suspended retry schedule. Enumerable like execute/toLayer so descriptor
349
+ * adapters that spread the definition retain its execution capability. */
350
+ export declare const attachPreparedWorkflowExecution: (definition: object, execute: Execute) => void;
351
+
350
352
  /**
351
353
  * Wait for a domain event correlated with this run.
352
354
  *
@@ -568,12 +570,12 @@ export declare const beginWorkflowControlDispatchInTransaction: (tx: Store, id:
568
570
  readonly generation: string;
569
571
  readonly enteredAt: number;
570
572
  } | null;
573
+ readonly generation: string;
571
574
  readonly requestedAt: number;
572
575
  readonly executionId: string;
573
576
  readonly runId: string;
574
577
  readonly workflowName: string;
575
578
  readonly operation: "resume" | "cancel" | "terminate";
576
- readonly generation: string;
577
579
  readonly owner: {
578
580
  readonly tenantId: string | null;
579
581
  } | null;
@@ -608,12 +610,12 @@ export declare const beginWorkflowControlDispatchInTransaction: (tx: Store, id:
608
610
  readonly generation: string;
609
611
  readonly enteredAt: number;
610
612
  } | null;
613
+ readonly generation: string;
611
614
  readonly requestedAt: number;
612
615
  readonly executionId: string;
613
616
  readonly runId: string;
614
617
  readonly workflowName: string;
615
618
  readonly operation: "resume" | "cancel" | "terminate";
616
- readonly generation: string;
617
619
  readonly owner: {
618
620
  readonly tenantId: string | null;
619
621
  } | null;
@@ -648,12 +650,12 @@ export declare const beginWorkflowControlDispatchInTransaction: (tx: Store, id:
648
650
  readonly generation: string;
649
651
  readonly enteredAt: number;
650
652
  } | null;
653
+ readonly generation: string;
651
654
  readonly requestedAt: number;
652
655
  readonly executionId: string;
653
656
  readonly runId: string;
654
657
  readonly workflowName: string;
655
658
  readonly operation: "resume" | "cancel" | "terminate";
656
- readonly generation: string;
657
659
  readonly owner: {
658
660
  readonly tenantId: string | null;
659
661
  } | null;
@@ -688,12 +690,12 @@ export declare const beginWorkflowControlDispatchInTransaction: (tx: Store, id:
688
690
  readonly generation: string;
689
691
  readonly enteredAt: number;
690
692
  } | null;
693
+ readonly generation: string;
691
694
  readonly requestedAt: number;
692
695
  readonly executionId: string;
693
696
  readonly runId: string;
694
697
  readonly workflowName: string;
695
698
  readonly operation: "resume" | "cancel" | "terminate";
696
- readonly generation: string;
697
699
  readonly owner: {
698
700
  readonly tenantId: string | null;
699
701
  } | null;
@@ -729,12 +731,12 @@ export declare const beginWorkflowControlDispatchInTransaction: (tx: Store, id:
729
731
  readonly generation: string;
730
732
  readonly enteredAt: number;
731
733
  } | null;
734
+ generation: string;
732
735
  requestedAt: number;
733
736
  executionId: string;
734
737
  runId: string;
735
738
  workflowName: string;
736
739
  operation: "resume" | "cancel" | "terminate";
737
- generation: string;
738
740
  owner: {
739
741
  readonly tenantId: string | null;
740
742
  } | null;
@@ -779,12 +781,12 @@ export declare const bindWorkflowResumeJournalInTransaction: (tx: Store, id: str
779
781
  readonly generation: string;
780
782
  readonly enteredAt: number;
781
783
  } | null;
784
+ readonly generation: string;
782
785
  readonly requestedAt: number;
783
786
  readonly executionId: string;
784
787
  readonly runId: string;
785
788
  readonly workflowName: string;
786
789
  readonly operation: "resume" | "cancel" | "terminate";
787
- readonly generation: string;
788
790
  readonly owner: {
789
791
  readonly tenantId: string | null;
790
792
  } | null;
@@ -818,12 +820,12 @@ export declare const bindWorkflowResumeJournalInTransaction: (tx: Store, id: str
818
820
  readonly generation: string;
819
821
  readonly enteredAt: number;
820
822
  } | null;
823
+ readonly generation: string;
821
824
  readonly requestedAt: number;
822
825
  readonly executionId: string;
823
826
  readonly runId: string;
824
827
  readonly workflowName: string;
825
828
  readonly operation: "resume" | "cancel" | "terminate";
826
- readonly generation: string;
827
829
  readonly owner: {
828
830
  readonly tenantId: string | null;
829
831
  } | null;
@@ -857,12 +859,12 @@ export declare const bindWorkflowResumeJournalInTransaction: (tx: Store, id: str
857
859
  readonly generation: string;
858
860
  readonly enteredAt: number;
859
861
  } | null;
862
+ readonly generation: string;
860
863
  readonly requestedAt: number;
861
864
  readonly executionId: string;
862
865
  readonly runId: string;
863
866
  readonly workflowName: string;
864
867
  readonly operation: "resume" | "cancel" | "terminate";
865
- readonly generation: string;
866
868
  readonly owner: {
867
869
  readonly tenantId: string | null;
868
870
  } | null;
@@ -896,12 +898,12 @@ export declare const bindWorkflowResumeJournalInTransaction: (tx: Store, id: str
896
898
  readonly generation: string;
897
899
  readonly enteredAt: number;
898
900
  } | null;
901
+ readonly generation: string;
899
902
  readonly requestedAt: number;
900
903
  readonly executionId: string;
901
904
  readonly runId: string;
902
905
  readonly workflowName: string;
903
906
  readonly operation: "resume" | "cancel" | "terminate";
904
- readonly generation: string;
905
907
  readonly owner: {
906
908
  readonly tenantId: string | null;
907
909
  } | null;
@@ -935,12 +937,12 @@ export declare const bindWorkflowResumeJournalInTransaction: (tx: Store, id: str
935
937
  readonly generation: string;
936
938
  readonly enteredAt: number;
937
939
  } | null;
940
+ readonly generation: string;
938
941
  readonly requestedAt: number;
939
942
  readonly executionId: string;
940
943
  readonly runId: string;
941
944
  readonly workflowName: string;
942
945
  readonly operation: "resume" | "cancel" | "terminate";
943
- readonly generation: string;
944
946
  readonly owner: {
945
947
  readonly tenantId: string | null;
946
948
  } | null;
@@ -974,12 +976,12 @@ export declare const bindWorkflowResumeJournalInTransaction: (tx: Store, id: str
974
976
  readonly generation: string;
975
977
  readonly enteredAt: number;
976
978
  } | null;
979
+ readonly generation: string;
977
980
  readonly requestedAt: number;
978
981
  readonly executionId: string;
979
982
  readonly runId: string;
980
983
  readonly workflowName: string;
981
984
  readonly operation: "resume" | "cancel" | "terminate";
982
- readonly generation: string;
983
985
  readonly owner: {
984
986
  readonly tenantId: string | null;
985
987
  } | null;
@@ -1662,6 +1664,8 @@ declare interface EvaluateInput {
1662
1664
 
1663
1665
  export declare const EVENTS_TABLE = "_voltro_workflow_events";
1664
1666
 
1667
+ declare type Execute = (payload: unknown, executionId: string, discard: boolean) => Effect.Effect<unknown, unknown, unknown>;
1668
+
1665
1669
  /** Submit under an identity the durable owner already chose and persisted.
1666
1670
  * Does not derive the key again, reserve capacity, or persist caller context.
1667
1671
  * Call only AFTER those responsibilities have committed, outside their
@@ -1751,6 +1755,10 @@ export declare const hasCancelOn: (control: ResolvedFlowControl | undefined) =>
1751
1755
  * two writes per start for a decision that is always "admit". */
1752
1756
  export declare const hasFlowControl: (control: ResolvedFlowControl | undefined) => boolean;
1753
1757
 
1758
+ /** Every `workflow()` definition carries the capability; a hand-built stand-in
1759
+ * (a test fake, an adapter that did not spread the definition) does not. */
1760
+ export declare const hasPreparedWorkflowExecution: (definition: unknown) => boolean;
1761
+
1754
1762
  /** The distinct budgets currently holding at least one run — what a poller
1755
1763
  * iterates so it asks about nothing else. */
1756
1764
  export declare const heldBudgets: (store: DataStore) => Promise<ReadonlyArray<{
@@ -3844,6 +3852,25 @@ export declare interface WorkflowResolvedRun {
3844
3852
  readonly tag?: string;
3845
3853
  }
3846
3854
 
3855
+ /** Internal until recorder delivery and shared-capacity release use this owner.
3856
+ * Reservation never creates an ordinary start submission. */
3857
+ export declare const workflowRestartRequestsTable: Table<"_voltro_workflow_restart_requests", FieldDefinitions<{
3858
+ readonly id: ColumnBuilder<string, "id", boolean>;
3859
+ readonly runId: ColumnBuilder<string, "text", boolean>;
3860
+ readonly workflowName: ColumnBuilder<string, "text", boolean>;
3861
+ readonly executionId: ColumnBuilder<string, "text", boolean>;
3862
+ readonly generation: ColumnBuilder<string, "text", boolean>;
3863
+ readonly token: ColumnBuilder<string, "text", boolean>;
3864
+ readonly ledgerId: ColumnBuilder<string, "text", boolean>;
3865
+ readonly tenantId: ColumnBuilder<string | null, "text", boolean>;
3866
+ readonly delivery: ColumnBuilder<unknown, "json", boolean>;
3867
+ readonly replies: ColumnBuilder<unknown, "json", boolean>;
3868
+ readonly eviction: ColumnBuilder<unknown, "json", boolean>;
3869
+ readonly requestedAt: ColumnBuilder<Date, "timestamp", boolean>;
3870
+ readonly dispatchAttempts: ColumnBuilder<number, "integer", true>;
3871
+ readonly enteredGeneration: ColumnBuilder<string | null, "text", boolean>;
3872
+ }>, false, never>;
3873
+
3847
3874
  export declare interface WorkflowRunCompletion {
3848
3875
  readonly owner: WorkflowRunGeneration;
3849
3876
  readonly now: number;
@@ -4078,7 +4105,11 @@ export declare interface WorkflowRunRecorderService {
4078
4105
  * have a row representation in the runs or steps tables:
4079
4106
  * suspend / resume / cancel, and (in later phases) timer fires +
4080
4107
  * signal receipts + child spawns. Implementations should NOT throw —
4081
- * recorder failures must NOT break workflow execution.
4108
+ * recorder failures must NOT break workflow execution. They SAY whether the
4109
+ * row landed instead: `recorded: false` is a warning for a lifecycle event,
4110
+ * and a refusal for a sender whose receipt MEANS persistence — a signal or
4111
+ * update whose row never landed was accepted and lost, and the run waited
4112
+ * on while the UI said "delivered".
4082
4113
  */
4083
4114
  readonly recordEvent: (input: {
4084
4115
  readonly runId: string;
@@ -4088,6 +4119,7 @@ export declare interface WorkflowRunRecorderService {
4088
4119
  readonly attempt?: number | null;
4089
4120
  }) => Promise<{
4090
4121
  readonly id: string;
4122
+ readonly recorded: boolean;
4091
4123
  }>;
4092
4124
  }
4093
4125
 
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as e, B as t, C as n, D as r, E as i, F as a, G as o, H as s, K as c, L as l, M as u, O as d, P as f, R as p, S as m, T as h, U as g, V as _, W as v, _ as y, a as b, b as x, c as S, d as C, f as w, g as T, h as E, i as D, j as O, k, l as A, m as j, n as M, o as N, p as P, q as F, r as I, s as L, t as R, u as z, v as B, w as V, x as H, y as U, z as W } from "./primitives-DsMsMr5S.js";
2
- import { $ as G, $t as K, A as q, At as J, B as Y, Bt as X, C as Z, Ct as Q, D as $, Dt as ee, E as te, Et as ne, F as re, Ft as ie, G as ae, Gt as oe, H as se, Ht as ce, I as le, It as ue, J as de, Jt as fe, K as pe, Kt as me, L as he, Lt as ge, M as _e, Mt as ve, N as ye, Nt as be, O as xe, Ot as Se, P as Ce, Pt as we, Q as Te, Qt as Ee, R as De, Rt as Oe, S as ke, St as Ae, T as je, Tt as Me, U as Ne, Ut as Pe, V as Fe, Vt as Ie, W as Le, Wt as Re, X as ze, Xt as Be, Y as Ve, Yt as He, Z as Ue, Zt as We, _ as Ge, _n as Ke, _t as qe, a as Je, an as Ye, at as Xe, b as Ze, bn as Qe, bt as $e, c as et, cn as tt, ct as nt, d as rt, dn as it, dt as at, en as ot, et as st, f as ct, fn as lt, ft as ut, g as dt, gn as ft, gt as pt, h as mt, hn as ht, ht as gt, i as _t, in as vt, it as yt, j as bt, jt as xt, k as St, kt as Ct, l as wt, ln as Tt, lt as Et, m as Dt, mn as Ot, mt as kt, n as At, nn as jt, nt as Mt, o as Nt, on as Pt, ot as Ft, p as It, pn as Lt, pt as Rt, q as zt, qt as Bt, r as Vt, rn as Ht, rt as Ut, s as Wt, sn as Gt, st as Kt, t as qt, tn as Jt, tt as Yt, u as Xt, un as Zt, ut as Qt, v as $t, vn as en, vt as tn, w as nn, wt as rn, x as an, xt as on, y as sn, yn as cn, yt as ln, z as un, zt as dn } from "./src-OEBqLBJl.js";
3
- import { c as fn, l as pn, n as mn, p as hn, r as gn, s as _n, t as vn } from "./clusterDiagnostics-jpkNVay6.js";
4
- export { ut as ADMISSIONS_TABLE, ct as BUDGET_HOLDS_TABLE, It as BudgetHoldExpired, Le as CANCEL_ON_WATERMARK, vn as CLUSTER_REREAD_WINDOW_MS, mn as ClusterDiagnostics, u as CurrentWorkflowExecutionId, f as CurrentWorkflowPatches, V as CurrentWorkflowReplayShape, a as CurrentWorkflowRunId, Dt as DEFAULT_BUDGET_HOLD_TIMEOUT_MS, ae as DEFAULT_COLD_LOOKBACK_MS, he as DEFAULT_DRAIN_BATCH, pe as DEFAULT_EVENT_BATCH, Rt as DEFAULT_LEASE_MS, qt as DEFAULT_MAX_RUN_RECLAIMS, At as DEFAULT_REPLAY_SHAPE_LIMIT, Y as DEFAULT_STALL_AFTER_MS, Fe as DEFAULT_STALL_EVENT_LOOKBACK, se as DEFAULT_STALL_RUN_PAGE, _e as DEFAULT_SUSPEND_HINT_MS, d as DEFAULT_WORKFLOW_SCHEDULE_MAX_RUNTIME_MS, _ as DEFERRING_CONTROLS, zt as EVENTS_TABLE, Ee as FlowControlKeyError, kt as PAUSES_TABLE, gt as PENDING_TABLE, de as WATERMARKS_TABLE, R as WorkflowFlowControlProperty, M as WorkflowMessagesProperty, l as WorkflowRunRecorder, k as WorkflowScheduleProperty, p as WorkflowStepInterceptorTag, I as WorkflowVersionTypeId, D as WorkflowWorkerLayerTypeId, mt as _voltroBudgetHoldsTable, Gt as _voltroWorkflowAdmissionLocksTable, tt as _voltroWorkflowAdmissionsTable, Tt as _voltroWorkflowControlRequestsTable, Zt as _voltroWorkflowFailureReportsTable, it as _voltroWorkflowParentClosuresTable, lt as _voltroWorkflowPausesTable, Lt as _voltroWorkflowPendingTable, Ke as _voltroWorkflowRunEventsTable, en as _voltroWorkflowRunStepsTable, cn as _voltroWorkflowRunsTable, ft as _voltroWorkflowStartContextsTable, Ot as _voltroWorkflowStartReceiptsTable, ht as _voltroWorkflowSubmissionsTable, st as _voltroWorkflowWatermarksTable, De as acceptAdmissionSubmission, _n as acceptWorkflowControlInTransaction, X as acknowledgeAdmissionSubmission, Yt as admitStart, pt as allIntents, s as assertConsistentPools, q as awaitEvent, bt as awaitSignal, Z as awaitSignalSuspending, rt as awaitUpdate, Ie as beginAdmissionSubmissionDispatchInTransaction, fn as beginWorkflowControlDispatchInTransaction, pn as bindWorkflowResumeJournalInTransaction, ue as bindWorkflowStartReceipts, dt as budgetHoldGeneration, Ge as budgetHoldKey, $t as budgetHoldSignalName, Xe as cancelQueuedWorkflowStartInTransaction, nt as cancelSuspendedWorkflowRunInTransaction, K as comparePendingOrder, nn as completeSuspendingSignal, Et as completeWorkflowRunGenerationInTransaction, qe as deadLetterIntent, ot as decideAdmission, g as deferringControlsOf, tn as deleteIntent, gn as describeStalledRun, ln as discardIntent, $e as discardIntentInTransaction, un as drainTick, on as dueIntents, b as durableClock, N as durableQueue, L as durableQueueModule, S as durableRateLimiterModule, Qt as enterWorkflowRunGenerationInTransaction, Ae as evaluateAdmission, F as executePreparedWorkflow, W as getCurrentWorkflowExecutionId, t as getCurrentWorkflowRunId, A as getWorkflowFlowControl, e as getWorkflowSchedule, z as getWorkflowVersionMetadata, fe as handoffWorkflowFailureInTransaction, v as hasCancelOn, o as hasFlowControl, sn as heldBudgets, Qe as inMemoryWorkflowEngineLayer, Xt as inspectWorkflow, Jt as isFinishExpired, jt as isStartExpired, C as isWorkflowWorkerLayer, Mt as linkExecution, wt as makeInMemoryRecorder, h as makeReplayShapeTracker, Vt as makeWorkflowRunRecorder, te as makeWorkflowUpdateId, ye as maybeHintSuspendingSignal, Te as newestEventAt, Ht as nextSlotAt, i as nondeterminismEventPayload, _t as normaliseWorkflowPatches, ce as noteAdmissionSubmissionFailure, Q as noteIntentAttempt, rn as parkDelayedStart, w as patch, Me as pauseWorkflow, Pe as pendingAdmissionSubmissions, Ze as pendingBudgetHolds, ne as pendingSlotId, ee as pendingWindow, Se as persistDefer, G as planCancellations, vt as pooledConcurrencyKey, Re as prepareAdmissionSubmissionExecutionInTransaction, P as processQueue, Ct as pruneAdmissions, j as queueWorker, Kt as queuedCancellationRequestsTable, E as rateLimit, J as readAdmissionState, oe as readAdmissionSubmission, xt as readPausedWorkflows, Ft as readQueuedWorkflowCancellationInTransaction, Ve as readWatermark, hn as readWorkflowControlInTransaction, Be as readWorkflowFailureRecord, ge as readWorkflowStartReceipt, He as reconcileWorkflowFailureInTransaction, ve as recordAdmission, We as recordWorkflowFailureInTransaction, Oe as recordWorkflowStartReceipt, me as rejectAdmissionSubmissionInTransaction, an as releaseBudgetHolds, be as releaseLease, r as reportNondeterminism, Bt as reserveAdmissionSubmission, Ce as resetSuspendHintsForTest, Ye as resolveAdmissionKeys, Je as resolveRunGuardTuning, re as resolveSuspendHintMs, $ as resolveWorkflowMessageRun, dn as resolveWorkflowStartReceipt, we as resumeWorkflow, ie as retryDeadLetterIntent, xe as sendWorkflowSignal, St as sendWorkflowUpdate, Nt as serialiseWorkflowRowForWire, le as setSuspendSignalHintMs, T as sleep, y as sleepUntil, at as stageWorkflowParentClosureInTransaction, B as step, U as stepIdempotencyKey, x as stepModule, ke as suspendForBudget, je as suspendingSignalDeferredName, ze as sweepCancelOn, Ne as sweepStalledRuns, Ut as takeAdmittedSubmissionInTransaction, yt as takePendingAdmissionSubmission, Wt as truncateWorkflowValue, c as validateFlowControl, O as validateWorkflowSchedule, Pt as withAdmissionTransaction, H as withCompensation, m as workflow, n as workflowModule, et as wrapWorkflowExecuteWithRunRecording, Ue as writeWatermark };
1
+ import { A as e, B as t, C as n, D as r, E as i, F as a, G as o, H as s, J as c, K as l, L as u, M as d, O as f, P as p, R as m, S as h, T as g, U as _, V as v, W as y, Y as b, _ as x, a as S, b as C, c as w, d as T, f as E, g as D, h as O, i as k, j as A, k as j, l as M, m as N, n as P, o as F, p as I, q as L, r as R, s as z, t as B, u as V, v as H, w as U, x as W, y as G, z as K } from "./primitives-bv2JHUfk.js";
2
+ import { $ as q, $t as J, A as Y, At as X, B as Z, Bt as Q, C as $, Ct as ee, D as te, Dt as ne, E as re, Et as ie, F as ae, Ft as oe, G as se, Gt as ce, H as le, Ht as ue, I as de, It as fe, J as pe, Jt as me, K as he, Kt as ge, L as _e, Lt as ve, M as ye, Mt as be, N as xe, Nt as Se, O as Ce, Ot as we, P as Te, Pt as Ee, Q as De, Qt as Oe, R as ke, Rt as Ae, S as je, St as Me, T as Ne, Tt as Pe, U as Fe, Ut as Ie, V as Le, Vt as Re, W as ze, Wt as Be, X as Ve, Xt as He, Y as Ue, Yt as We, Z as Ge, Zt as Ke, _ as qe, _n as Je, _t as Ye, a as Xe, an as Ze, at as Qe, b as $e, bn as et, bt as tt, c as nt, cn as rt, ct as it, d as at, dn as ot, dt as st, en as ct, et as lt, f as ut, fn as dt, ft, g as pt, gn as mt, gt as ht, h as gt, hn as _t, ht as vt, i as yt, in as bt, it as xt, j as St, jt as Ct, k as wt, kt as Tt, l as Et, ln as Dt, lt as Ot, m as kt, mn as At, mt as jt, n as Mt, nn as Nt, nt as Pt, o as Ft, on as It, ot as Lt, p as Rt, pn as zt, pt as Bt, q as Vt, qt as Ht, r as Ut, rn as Wt, rt as Gt, s as Kt, sn as qt, st as Jt, t as Yt, tn as Xt, tt as Zt, u as Qt, un as $t, ut as en, v as tn, vn as nn, vt as rn, w as an, wt as on, x as sn, xn as cn, xt as ln, y as un, yn as dn, yt as fn, z as pn, zt as mn } from "./src-BnF1JtbZ.js";
3
+ import { c as hn, g as gn, l as _n, n as vn, r as yn, t as bn, u as xn } from "./clusterDiagnostics-Cwt-WFec.js";
4
+ export { Bt as ADMISSIONS_TABLE, ut as BUDGET_HOLDS_TABLE, Rt as BudgetHoldExpired, ze as CANCEL_ON_WATERMARK, bn as CLUSTER_REREAD_WINDOW_MS, vn as ClusterDiagnostics, d as CurrentWorkflowExecutionId, p as CurrentWorkflowPatches, U as CurrentWorkflowReplayShape, a as CurrentWorkflowRunId, kt as DEFAULT_BUDGET_HOLD_TIMEOUT_MS, se as DEFAULT_COLD_LOOKBACK_MS, _e as DEFAULT_DRAIN_BATCH, he as DEFAULT_EVENT_BATCH, jt as DEFAULT_LEASE_MS, Yt as DEFAULT_MAX_RUN_RECLAIMS, Mt as DEFAULT_REPLAY_SHAPE_LIMIT, Z as DEFAULT_STALL_AFTER_MS, Le as DEFAULT_STALL_EVENT_LOOKBACK, le as DEFAULT_STALL_RUN_PAGE, ye as DEFAULT_SUSPEND_HINT_MS, f as DEFAULT_WORKFLOW_SCHEDULE_MAX_RUNTIME_MS, v as DEFERRING_CONTROLS, Vt as EVENTS_TABLE, J as FlowControlKeyError, vt as PAUSES_TABLE, ht as PENDING_TABLE, pe as WATERMARKS_TABLE, B as WorkflowFlowControlProperty, P as WorkflowMessagesProperty, u as WorkflowRunRecorder, j as WorkflowScheduleProperty, m as WorkflowStepInterceptorTag, R as WorkflowVersionTypeId, k as WorkflowWorkerLayerTypeId, gt as _voltroBudgetHoldsTable, rt as _voltroWorkflowAdmissionLocksTable, Dt as _voltroWorkflowAdmissionsTable, $t as _voltroWorkflowControlRequestsTable, ot as _voltroWorkflowFailureReportsTable, dt as _voltroWorkflowParentClosuresTable, zt as _voltroWorkflowPausesTable, At as _voltroWorkflowPendingTable, nn as _voltroWorkflowRunEventsTable, dn as _voltroWorkflowRunStepsTable, et as _voltroWorkflowRunsTable, Je as _voltroWorkflowStartContextsTable, _t as _voltroWorkflowStartReceiptsTable, mt as _voltroWorkflowSubmissionsTable, lt as _voltroWorkflowWatermarksTable, ke as acceptAdmissionSubmission, hn as acceptWorkflowControlInTransaction, Re as acknowledgeAdmissionSubmission, Zt as admitStart, Ye as allIntents, s as assertConsistentPools, L as attachPreparedWorkflowExecution, Y as awaitEvent, St as awaitSignal, $ as awaitSignalSuspending, at as awaitUpdate, ue as beginAdmissionSubmissionDispatchInTransaction, _n as beginWorkflowControlDispatchInTransaction, xn as bindWorkflowResumeJournalInTransaction, ve as bindWorkflowStartReceipts, pt as budgetHoldGeneration, qe as budgetHoldKey, tn as budgetHoldSignalName, Qe as cancelQueuedWorkflowStartInTransaction, it as cancelSuspendedWorkflowRunInTransaction, ct as comparePendingOrder, an as completeSuspendingSignal, Ot as completeWorkflowRunGenerationInTransaction, rn as deadLetterIntent, Xt as decideAdmission, _ as deferringControlsOf, fn as deleteIntent, yn as describeStalledRun, tt as discardIntent, ln as discardIntentInTransaction, pn as drainTick, Me as dueIntents, S as durableClock, F as durableQueue, z as durableQueueModule, w as durableRateLimiterModule, en as enterWorkflowRunGenerationInTransaction, ee as evaluateAdmission, c as executePreparedWorkflow, K as getCurrentWorkflowExecutionId, t as getCurrentWorkflowRunId, M as getWorkflowFlowControl, e as getWorkflowSchedule, V as getWorkflowVersionMetadata, We as handoffWorkflowFailureInTransaction, y as hasCancelOn, o as hasFlowControl, b as hasPreparedWorkflowExecution, un as heldBudgets, cn as inMemoryWorkflowEngineLayer, Qt as inspectWorkflow, Nt as isFinishExpired, Wt as isStartExpired, T as isWorkflowWorkerLayer, Pt as linkExecution, Et as makeInMemoryRecorder, g as makeReplayShapeTracker, Ut as makeWorkflowRunRecorder, re as makeWorkflowUpdateId, xe as maybeHintSuspendingSignal, De as newestEventAt, bt as nextSlotAt, i as nondeterminismEventPayload, yt as normaliseWorkflowPatches, Ie as noteAdmissionSubmissionFailure, on as noteIntentAttempt, Pe as parkDelayedStart, E as patch, ie as pauseWorkflow, Be as pendingAdmissionSubmissions, $e as pendingBudgetHolds, ne as pendingSlotId, we as pendingWindow, Tt as persistDefer, q as planCancellations, Ze as pooledConcurrencyKey, ce as prepareAdmissionSubmissionExecutionInTransaction, I as processQueue, X as pruneAdmissions, N as queueWorker, Jt as queuedCancellationRequestsTable, O as rateLimit, Ct as readAdmissionState, ge as readAdmissionSubmission, be as readPausedWorkflows, Lt as readQueuedWorkflowCancellationInTransaction, Ue as readWatermark, gn as readWorkflowControlInTransaction, Ke as readWorkflowFailureRecord, Ae as readWorkflowStartReceipt, He as reconcileWorkflowFailureInTransaction, Se as recordAdmission, Oe as recordWorkflowFailureInTransaction, mn as recordWorkflowStartReceipt, Ht as rejectAdmissionSubmissionInTransaction, sn as releaseBudgetHolds, Ee as releaseLease, r as reportNondeterminism, me as reserveAdmissionSubmission, Te as resetSuspendHintsForTest, It as resolveAdmissionKeys, Xe as resolveRunGuardTuning, ae as resolveSuspendHintMs, te as resolveWorkflowMessageRun, Q as resolveWorkflowStartReceipt, oe as resumeWorkflow, fe as retryDeadLetterIntent, Ce as sendWorkflowSignal, wt as sendWorkflowUpdate, Ft as serialiseWorkflowRowForWire, de as setSuspendSignalHintMs, D as sleep, x as sleepUntil, ft as stageWorkflowParentClosureInTransaction, H as step, G as stepIdempotencyKey, C as stepModule, je as suspendForBudget, Ne as suspendingSignalDeferredName, Ve as sweepCancelOn, Fe as sweepStalledRuns, Gt as takeAdmittedSubmissionInTransaction, xt as takePendingAdmissionSubmission, Kt as truncateWorkflowValue, l as validateFlowControl, A as validateWorkflowSchedule, qt as withAdmissionTransaction, W as withCompensation, h as workflow, n as workflowModule, st as workflowRestartRequestsTable, nt as wrapWorkflowExecuteWithRunRecording, Ge as writeWatermark };