@voltro/workflow 0.83.1 → 0.84.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/CHANGELOG.md +642 -0
- package/dist/{cluster--WvQZFwk.js → cluster-i3frC3Da.js} +142 -133
- package/dist/cluster.d.ts +13 -13
- package/dist/cluster.js +1 -1
- package/dist/clusterTestSuite.js +1 -1
- package/dist/index.d.ts +99 -11
- package/dist/index.js +2 -2
- package/package.json +4 -4
package/dist/cluster.d.ts
CHANGED
|
@@ -88,8 +88,8 @@ declare const bindWorkflowResumeJournalInTransaction: (tx: Store, id: string, ob
|
|
|
88
88
|
readonly result: {
|
|
89
89
|
readonly status: "failed" | "cancelled" | "succeeded";
|
|
90
90
|
readonly kind: "confirmed" | "already-terminal";
|
|
91
|
-
readonly errorMessage: string | null;
|
|
92
91
|
readonly output: unknown;
|
|
92
|
+
readonly errorMessage: string | null;
|
|
93
93
|
readonly errorTag: string | null;
|
|
94
94
|
readonly completedAt: number;
|
|
95
95
|
} | {
|
|
@@ -127,8 +127,8 @@ declare const bindWorkflowResumeJournalInTransaction: (tx: Store, id: string, ob
|
|
|
127
127
|
readonly result: {
|
|
128
128
|
readonly status: "failed" | "cancelled" | "succeeded";
|
|
129
129
|
readonly kind: "confirmed" | "already-terminal";
|
|
130
|
-
readonly errorMessage: string | null;
|
|
131
130
|
readonly output: unknown;
|
|
131
|
+
readonly errorMessage: string | null;
|
|
132
132
|
readonly errorTag: string | null;
|
|
133
133
|
readonly completedAt: number;
|
|
134
134
|
} | {
|
|
@@ -166,8 +166,8 @@ declare const bindWorkflowResumeJournalInTransaction: (tx: Store, id: string, ob
|
|
|
166
166
|
readonly result: {
|
|
167
167
|
readonly status: "failed" | "cancelled" | "succeeded";
|
|
168
168
|
readonly kind: "confirmed" | "already-terminal";
|
|
169
|
-
readonly errorMessage: string | null;
|
|
170
169
|
readonly output: unknown;
|
|
170
|
+
readonly errorMessage: string | null;
|
|
171
171
|
readonly errorTag: string | null;
|
|
172
172
|
readonly completedAt: number;
|
|
173
173
|
} | {
|
|
@@ -205,8 +205,8 @@ declare const bindWorkflowResumeJournalInTransaction: (tx: Store, id: string, ob
|
|
|
205
205
|
readonly result: {
|
|
206
206
|
readonly status: "failed" | "cancelled" | "succeeded";
|
|
207
207
|
readonly kind: "confirmed" | "already-terminal";
|
|
208
|
-
readonly errorMessage: string | null;
|
|
209
208
|
readonly output: unknown;
|
|
209
|
+
readonly errorMessage: string | null;
|
|
210
210
|
readonly errorTag: string | null;
|
|
211
211
|
readonly completedAt: number;
|
|
212
212
|
} | {
|
|
@@ -244,8 +244,8 @@ declare const bindWorkflowResumeJournalInTransaction: (tx: Store, id: string, ob
|
|
|
244
244
|
readonly result: {
|
|
245
245
|
readonly status: "failed" | "cancelled" | "succeeded";
|
|
246
246
|
readonly kind: "confirmed" | "already-terminal";
|
|
247
|
-
readonly errorMessage: string | null;
|
|
248
247
|
readonly output: unknown;
|
|
248
|
+
readonly errorMessage: string | null;
|
|
249
249
|
readonly errorTag: string | null;
|
|
250
250
|
readonly completedAt: number;
|
|
251
251
|
} | {
|
|
@@ -283,8 +283,8 @@ declare const bindWorkflowResumeJournalInTransaction: (tx: Store, id: string, ob
|
|
|
283
283
|
readonly result: {
|
|
284
284
|
readonly status: "failed" | "cancelled" | "succeeded";
|
|
285
285
|
readonly kind: "confirmed" | "already-terminal";
|
|
286
|
-
readonly errorMessage: string | null;
|
|
287
286
|
readonly output: unknown;
|
|
287
|
+
readonly errorMessage: string | null;
|
|
288
288
|
readonly errorTag: string | null;
|
|
289
289
|
readonly completedAt: number;
|
|
290
290
|
} | {
|
|
@@ -486,8 +486,8 @@ declare const dispatchWorkflowResume: (options: {
|
|
|
486
486
|
readonly result: {
|
|
487
487
|
readonly status: "failed" | "cancelled" | "succeeded";
|
|
488
488
|
readonly kind: "confirmed" | "already-terminal";
|
|
489
|
-
readonly errorMessage: string | null;
|
|
490
489
|
readonly output: unknown;
|
|
490
|
+
readonly errorMessage: string | null;
|
|
491
491
|
readonly errorTag: string | null;
|
|
492
492
|
readonly completedAt: number;
|
|
493
493
|
} | {
|
|
@@ -525,8 +525,8 @@ declare const dispatchWorkflowResume: (options: {
|
|
|
525
525
|
readonly result: {
|
|
526
526
|
readonly status: "failed" | "cancelled" | "succeeded";
|
|
527
527
|
readonly kind: "confirmed" | "already-terminal";
|
|
528
|
-
readonly errorMessage: string | null;
|
|
529
528
|
readonly output: unknown;
|
|
529
|
+
readonly errorMessage: string | null;
|
|
530
530
|
readonly errorTag: string | null;
|
|
531
531
|
readonly completedAt: number;
|
|
532
532
|
} | {
|
|
@@ -564,8 +564,8 @@ declare const dispatchWorkflowResume: (options: {
|
|
|
564
564
|
readonly result: {
|
|
565
565
|
readonly status: "failed" | "cancelled" | "succeeded";
|
|
566
566
|
readonly kind: "confirmed" | "already-terminal";
|
|
567
|
-
readonly errorMessage: string | null;
|
|
568
567
|
readonly output: unknown;
|
|
568
|
+
readonly errorMessage: string | null;
|
|
569
569
|
readonly errorTag: string | null;
|
|
570
570
|
readonly completedAt: number;
|
|
571
571
|
} | {
|
|
@@ -603,8 +603,8 @@ declare const dispatchWorkflowResume: (options: {
|
|
|
603
603
|
readonly result: {
|
|
604
604
|
readonly status: "failed" | "cancelled" | "succeeded";
|
|
605
605
|
readonly kind: "confirmed" | "already-terminal";
|
|
606
|
-
readonly errorMessage: string | null;
|
|
607
606
|
readonly output: unknown;
|
|
607
|
+
readonly errorMessage: string | null;
|
|
608
608
|
readonly errorTag: string | null;
|
|
609
609
|
readonly completedAt: number;
|
|
610
610
|
} | {
|
|
@@ -642,8 +642,8 @@ declare const dispatchWorkflowResume: (options: {
|
|
|
642
642
|
readonly result: {
|
|
643
643
|
readonly status: "failed" | "cancelled" | "succeeded";
|
|
644
644
|
readonly kind: "confirmed" | "already-terminal";
|
|
645
|
-
readonly errorMessage: string | null;
|
|
646
645
|
readonly output: unknown;
|
|
646
|
+
readonly errorMessage: string | null;
|
|
647
647
|
readonly errorTag: string | null;
|
|
648
648
|
readonly completedAt: number;
|
|
649
649
|
} | {
|
|
@@ -681,8 +681,8 @@ declare const dispatchWorkflowResume: (options: {
|
|
|
681
681
|
readonly result: {
|
|
682
682
|
readonly status: "failed" | "cancelled" | "succeeded";
|
|
683
683
|
readonly kind: "confirmed" | "already-terminal";
|
|
684
|
-
readonly errorMessage: string | null;
|
|
685
684
|
readonly output: unknown;
|
|
685
|
+
readonly errorMessage: string | null;
|
|
686
686
|
readonly errorTag: string | null;
|
|
687
687
|
readonly completedAt: number;
|
|
688
688
|
} | {
|
|
@@ -722,8 +722,8 @@ declare const dispatchWorkflowResume: (options: {
|
|
|
722
722
|
result: {
|
|
723
723
|
readonly status: "failed" | "cancelled" | "succeeded";
|
|
724
724
|
readonly kind: "confirmed" | "already-terminal";
|
|
725
|
-
readonly errorMessage: string | null;
|
|
726
725
|
readonly output: unknown;
|
|
726
|
+
readonly errorMessage: string | null;
|
|
727
727
|
readonly errorTag: string | null;
|
|
728
728
|
readonly completedAt: number;
|
|
729
729
|
} | {
|
package/dist/cluster.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g, v as _ } from "./cluster
|
|
1
|
+
import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g, v as _ } from "./cluster-i3frC3Da.js";
|
|
2
2
|
export { u as DEFAULT_RUNNER_LISTEN_PORT, f as WorkflowRestartDispatcher, _ as WorkflowResumeDispatcher, l as activityPrimaryKey, i as clusterMigrationGateLayer, p as detectWsrepCluster, h as makeClusterCronLayer, r as makeClusterDiagnostics, s as parseShardLockMode, t as pollWorkflowStorage, o as readWorkflowRunReply, a as redriveFailedRun, d as resolveFailoverTuning, m as resolveRunnerIdentity, n as resolveRunnerStorage, c as resolveShardLockDisableAdvisory, e as resumeRunFromStep, g as workflowEngineLayer };
|
package/dist/clusterTestSuite.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { F as e, R as t, S as n, g as r, v as i } from "./primitives-Btjhjm8P.js";
|
|
2
2
|
import { E as a, a as o } from "./journalEncryption--n5VDdYO.js";
|
|
3
3
|
import { C as s, r as c, w as l } from "./src-DP-lKqaG.js";
|
|
4
|
-
import { t as u, u as d } from "./cluster
|
|
4
|
+
import { t as u, u as d } from "./cluster-i3frC3Da.js";
|
|
5
5
|
import { Cause as f, Cron as p, Deferred as m, Effect as h, Fiber as g, Layer as _, Schema as v } from "effect";
|
|
6
6
|
import { SqlClient as y } from "@effect/sql";
|
|
7
7
|
import { afterEach as b, beforeAll as x, describe as S, expect as C, test as w } from "vitest";
|
package/dist/index.d.ts
CHANGED
|
@@ -579,8 +579,8 @@ export declare const beginWorkflowControlDispatchInTransaction: (tx: Store, id:
|
|
|
579
579
|
readonly result: {
|
|
580
580
|
readonly status: "failed" | "cancelled" | "succeeded";
|
|
581
581
|
readonly kind: "confirmed" | "already-terminal";
|
|
582
|
-
readonly errorMessage: string | null;
|
|
583
582
|
readonly output: unknown;
|
|
583
|
+
readonly errorMessage: string | null;
|
|
584
584
|
readonly errorTag: string | null;
|
|
585
585
|
readonly completedAt: number;
|
|
586
586
|
} | {
|
|
@@ -619,8 +619,8 @@ export declare const beginWorkflowControlDispatchInTransaction: (tx: Store, id:
|
|
|
619
619
|
readonly result: {
|
|
620
620
|
readonly status: "failed" | "cancelled" | "succeeded";
|
|
621
621
|
readonly kind: "confirmed" | "already-terminal";
|
|
622
|
-
readonly errorMessage: string | null;
|
|
623
622
|
readonly output: unknown;
|
|
623
|
+
readonly errorMessage: string | null;
|
|
624
624
|
readonly errorTag: string | null;
|
|
625
625
|
readonly completedAt: number;
|
|
626
626
|
} | {
|
|
@@ -659,8 +659,8 @@ export declare const beginWorkflowControlDispatchInTransaction: (tx: Store, id:
|
|
|
659
659
|
readonly result: {
|
|
660
660
|
readonly status: "failed" | "cancelled" | "succeeded";
|
|
661
661
|
readonly kind: "confirmed" | "already-terminal";
|
|
662
|
-
readonly errorMessage: string | null;
|
|
663
662
|
readonly output: unknown;
|
|
663
|
+
readonly errorMessage: string | null;
|
|
664
664
|
readonly errorTag: string | null;
|
|
665
665
|
readonly completedAt: number;
|
|
666
666
|
} | {
|
|
@@ -699,8 +699,8 @@ export declare const beginWorkflowControlDispatchInTransaction: (tx: Store, id:
|
|
|
699
699
|
readonly result: {
|
|
700
700
|
readonly status: "failed" | "cancelled" | "succeeded";
|
|
701
701
|
readonly kind: "confirmed" | "already-terminal";
|
|
702
|
-
readonly errorMessage: string | null;
|
|
703
702
|
readonly output: unknown;
|
|
703
|
+
readonly errorMessage: string | null;
|
|
704
704
|
readonly errorTag: string | null;
|
|
705
705
|
readonly completedAt: number;
|
|
706
706
|
} | {
|
|
@@ -740,8 +740,8 @@ export declare const beginWorkflowControlDispatchInTransaction: (tx: Store, id:
|
|
|
740
740
|
result: {
|
|
741
741
|
readonly status: "failed" | "cancelled" | "succeeded";
|
|
742
742
|
readonly kind: "confirmed" | "already-terminal";
|
|
743
|
-
readonly errorMessage: string | null;
|
|
744
743
|
readonly output: unknown;
|
|
744
|
+
readonly errorMessage: string | null;
|
|
745
745
|
readonly errorTag: string | null;
|
|
746
746
|
readonly completedAt: number;
|
|
747
747
|
} | {
|
|
@@ -790,8 +790,8 @@ export declare const bindWorkflowResumeJournalInTransaction: (tx: Store, id: str
|
|
|
790
790
|
readonly result: {
|
|
791
791
|
readonly status: "failed" | "cancelled" | "succeeded";
|
|
792
792
|
readonly kind: "confirmed" | "already-terminal";
|
|
793
|
-
readonly errorMessage: string | null;
|
|
794
793
|
readonly output: unknown;
|
|
794
|
+
readonly errorMessage: string | null;
|
|
795
795
|
readonly errorTag: string | null;
|
|
796
796
|
readonly completedAt: number;
|
|
797
797
|
} | {
|
|
@@ -829,8 +829,8 @@ export declare const bindWorkflowResumeJournalInTransaction: (tx: Store, id: str
|
|
|
829
829
|
readonly result: {
|
|
830
830
|
readonly status: "failed" | "cancelled" | "succeeded";
|
|
831
831
|
readonly kind: "confirmed" | "already-terminal";
|
|
832
|
-
readonly errorMessage: string | null;
|
|
833
832
|
readonly output: unknown;
|
|
833
|
+
readonly errorMessage: string | null;
|
|
834
834
|
readonly errorTag: string | null;
|
|
835
835
|
readonly completedAt: number;
|
|
836
836
|
} | {
|
|
@@ -868,8 +868,8 @@ export declare const bindWorkflowResumeJournalInTransaction: (tx: Store, id: str
|
|
|
868
868
|
readonly result: {
|
|
869
869
|
readonly status: "failed" | "cancelled" | "succeeded";
|
|
870
870
|
readonly kind: "confirmed" | "already-terminal";
|
|
871
|
-
readonly errorMessage: string | null;
|
|
872
871
|
readonly output: unknown;
|
|
872
|
+
readonly errorMessage: string | null;
|
|
873
873
|
readonly errorTag: string | null;
|
|
874
874
|
readonly completedAt: number;
|
|
875
875
|
} | {
|
|
@@ -907,8 +907,8 @@ export declare const bindWorkflowResumeJournalInTransaction: (tx: Store, id: str
|
|
|
907
907
|
readonly result: {
|
|
908
908
|
readonly status: "failed" | "cancelled" | "succeeded";
|
|
909
909
|
readonly kind: "confirmed" | "already-terminal";
|
|
910
|
-
readonly errorMessage: string | null;
|
|
911
910
|
readonly output: unknown;
|
|
911
|
+
readonly errorMessage: string | null;
|
|
912
912
|
readonly errorTag: string | null;
|
|
913
913
|
readonly completedAt: number;
|
|
914
914
|
} | {
|
|
@@ -946,8 +946,8 @@ export declare const bindWorkflowResumeJournalInTransaction: (tx: Store, id: str
|
|
|
946
946
|
readonly result: {
|
|
947
947
|
readonly status: "failed" | "cancelled" | "succeeded";
|
|
948
948
|
readonly kind: "confirmed" | "already-terminal";
|
|
949
|
-
readonly errorMessage: string | null;
|
|
950
949
|
readonly output: unknown;
|
|
950
|
+
readonly errorMessage: string | null;
|
|
951
951
|
readonly errorTag: string | null;
|
|
952
952
|
readonly completedAt: number;
|
|
953
953
|
} | {
|
|
@@ -985,8 +985,8 @@ export declare const bindWorkflowResumeJournalInTransaction: (tx: Store, id: str
|
|
|
985
985
|
readonly result: {
|
|
986
986
|
readonly status: "failed" | "cancelled" | "succeeded";
|
|
987
987
|
readonly kind: "confirmed" | "already-terminal";
|
|
988
|
-
readonly errorMessage: string | null;
|
|
989
988
|
readonly output: unknown;
|
|
989
|
+
readonly errorMessage: string | null;
|
|
990
990
|
readonly errorTag: string | null;
|
|
991
991
|
readonly completedAt: number;
|
|
992
992
|
} | {
|
|
@@ -1535,6 +1535,11 @@ export declare const deferringControlsOf: (control: ResolvedFlowControl | undefi
|
|
|
1535
1535
|
* own. Use {@link discardIntent} for a start that is being dropped. */
|
|
1536
1536
|
export declare const deleteIntent: (store: AdmissionDataStore, id: string) => Promise<boolean>;
|
|
1537
1537
|
|
|
1538
|
+
declare const Delivery: Schema.Struct<{
|
|
1539
|
+
requestId: typeof Schema.NonEmptyString;
|
|
1540
|
+
restartToken: Schema.NullOr<typeof Schema.NonEmptyString>;
|
|
1541
|
+
}>;
|
|
1542
|
+
|
|
1538
1543
|
/**
|
|
1539
1544
|
* The cluster half of a stalled run's report, built from the diagnostics: the
|
|
1540
1545
|
* run's messages and, for the unprocessed ones, who holds their shards. Pure
|
|
@@ -2612,6 +2617,11 @@ export declare interface ReplayShapeTracker {
|
|
|
2612
2617
|
readonly settle: () => ReadonlyArray<NondeterminismFinding>;
|
|
2613
2618
|
}
|
|
2614
2619
|
|
|
2620
|
+
declare const Reply: Schema.Struct<{
|
|
2621
|
+
requestId: typeof Schema.NonEmptyString;
|
|
2622
|
+
replyId: typeof Schema.NonEmptyString;
|
|
2623
|
+
}>;
|
|
2624
|
+
|
|
2615
2625
|
/**
|
|
2616
2626
|
* Emit findings from INSIDE the workflow body, where the run id and the
|
|
2617
2627
|
* recorder are only reachable through the fiber context.
|
|
@@ -2698,6 +2708,84 @@ export declare type ReserveAdmissionSubmissionResult = {
|
|
|
2698
2708
|
}>;
|
|
2699
2709
|
};
|
|
2700
2710
|
|
|
2711
|
+
/** Caller already holds the physical resident admission transaction. Selection
|
|
2712
|
+
* and identities are captured before journal I/O; retries cannot retarget them.
|
|
2713
|
+
* Capacity rejection writes neither a request nor a reservation. */
|
|
2714
|
+
export declare const reserveWorkflowRestartInTransaction: (tx: AdmissionDataStore, input: {
|
|
2715
|
+
readonly id: string;
|
|
2716
|
+
readonly runId: string;
|
|
2717
|
+
readonly generation: string;
|
|
2718
|
+
readonly token: string;
|
|
2719
|
+
readonly delivery: typeof Delivery.Type;
|
|
2720
|
+
readonly replies: ReadonlyArray<typeof Reply.Type>;
|
|
2721
|
+
readonly selection: WorkflowRestartSelection;
|
|
2722
|
+
readonly control: ResolvedFlowControl;
|
|
2723
|
+
readonly tenantId: string | null;
|
|
2724
|
+
readonly paused: boolean;
|
|
2725
|
+
readonly now: number;
|
|
2726
|
+
}) => Promise<{
|
|
2727
|
+
kind: "reserved";
|
|
2728
|
+
request: {
|
|
2729
|
+
readonly id: string;
|
|
2730
|
+
readonly tenantId: string | null;
|
|
2731
|
+
readonly token: string;
|
|
2732
|
+
readonly generation: string;
|
|
2733
|
+
readonly runId: string;
|
|
2734
|
+
readonly requestedAt: Date;
|
|
2735
|
+
readonly executionId: string;
|
|
2736
|
+
readonly workflowName: string;
|
|
2737
|
+
readonly selection: {
|
|
2738
|
+
readonly kind: "failed-steps";
|
|
2739
|
+
} | {
|
|
2740
|
+
readonly kind: "from-step";
|
|
2741
|
+
readonly stepName: string;
|
|
2742
|
+
};
|
|
2743
|
+
readonly dispatchAttempts: number;
|
|
2744
|
+
readonly enteredGeneration: string | null;
|
|
2745
|
+
readonly ledgerId: string;
|
|
2746
|
+
readonly eviction: {
|
|
2747
|
+
readonly runId: string;
|
|
2748
|
+
readonly executionId: string;
|
|
2749
|
+
} | null;
|
|
2750
|
+
readonly delivery: {
|
|
2751
|
+
readonly requestId: string;
|
|
2752
|
+
readonly restartToken: string | null;
|
|
2753
|
+
};
|
|
2754
|
+
readonly replies: readonly {
|
|
2755
|
+
readonly requestId: string;
|
|
2756
|
+
readonly replyId: string;
|
|
2757
|
+
}[];
|
|
2758
|
+
};
|
|
2759
|
+
reused: boolean;
|
|
2760
|
+
decision?: never;
|
|
2761
|
+
} | {
|
|
2762
|
+
kind: "already-requested";
|
|
2763
|
+
request?: never;
|
|
2764
|
+
reused?: never;
|
|
2765
|
+
decision?: never;
|
|
2766
|
+
} | {
|
|
2767
|
+
kind: "not-admitted";
|
|
2768
|
+
decision: {
|
|
2769
|
+
readonly kind: "defer";
|
|
2770
|
+
readonly mode: DeferMode;
|
|
2771
|
+
readonly dueAt: number;
|
|
2772
|
+
readonly deadlineAt?: number;
|
|
2773
|
+
readonly collapse: "replace" | "append" | "hold";
|
|
2774
|
+
readonly keys: AdmissionKeys;
|
|
2775
|
+
} | {
|
|
2776
|
+
readonly kind: "drop";
|
|
2777
|
+
readonly reason: "rate-limit";
|
|
2778
|
+
readonly retryAfterMs: number;
|
|
2779
|
+
readonly keys: AdmissionKeys;
|
|
2780
|
+
} | {
|
|
2781
|
+
readonly kind: "skip";
|
|
2782
|
+
readonly incumbent: AdmissionIncumbent;
|
|
2783
|
+
readonly keys: AdmissionKeys;
|
|
2784
|
+
};
|
|
2785
|
+
request?: never;
|
|
2786
|
+
reused?: never;
|
|
2787
|
+
}>;
|
|
2788
|
+
|
|
2701
2789
|
/** Test seam: forget which (workflow, signal) pairs have been hinted. */
|
|
2702
2790
|
export declare const resetSuspendHintsForTest: () => void;
|
|
2703
2791
|
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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, I as c, J as l, K 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, X as b, Y as x, Z as S, _ as C, a as w, b as T, c as E, d as D, f as O, g as k, h as A, i as j, j as M, k as N, l as P, m as F, n as I, o as L, p as R, q as z, r as B, s as V, t as H, u as U, v as W, w as G, x as K, y as q, z as J } from "./primitives-Btjhjm8P.js";
|
|
2
2
|
import { D as Y, E as X, S as Z, _ as Q, c as $, g as ee, h as te, l as ne, m as re, n as ie, o as ae, r as oe, v as se } from "./journalEncryption--n5VDdYO.js";
|
|
3
3
|
import { $ as ce, A as le, B as ue, C as de, Ct as fe, D as pe, Dt as me, E as he, Et as ge, F as _e, G as ve, H as ye, I as be, J as xe, K as Se, L as Ce, M as we, N as Te, O as Ee, Ot as De, P as Oe, Q as ke, R as Ae, S as je, St as Me, T as Ne, Tt as Pe, U as Fe, V as Ie, W as Le, X as Re, Y as ze, Z as Be, _ as Ve, _t as He, a as Ue, at as We, b as Ge, bt as Ke, c as qe, ct as Je, d as Ye, dt as Xe, et as Ze, f as Qe, ft as $e, g as et, gt as tt, h as nt, ht as rt, i as it, it as at, j as ot, k as st, l as ct, lt, m as ut, mt as dt, n as ft, nt as pt, o as mt, ot as ht, p as gt, pt as _t, q as vt, r as yt, rt as bt, s as xt, st as St, t as Ct, tt as wt, u as Tt, ut as Et, v as Dt, vt as Ot, w as kt, wt as At, x as jt, xt as Mt, y as Nt, yt as Pt, z as Ft } from "./src-DP-lKqaG.js";
|
|
4
|
-
import { $ as It, A as Lt, B as Rt, Bt as zt, D as Bt, Dt as Vt, F as Ht, Ft as Ut, G as Wt, Gt, H as Kt, Ht as qt, J as Jt, K as Yt, Kt as Xt, L as Zt, Lt as Qt, M as $t, Mt as en, N as tn, Ot as nn, P as rn, Q as an, R as on, Rt as sn, St as cn, Tt as ln, U as un, Ut as dn, Vt as fn, W as pn, Wt as mn, X as hn, Y as gn, Z as _n, _t as vn, at as yn, b as bn, bt as xn,
|
|
5
|
-
export { Lt as ADMISSIONS_TABLE,
|
|
4
|
+
import { $ as It, A as Lt, B as Rt, Bt as zt, D as Bt, Dt as Vt, F as Ht, Ft as Ut, G as Wt, Gt, H as Kt, Ht as qt, J as Jt, K as Yt, Kt as Xt, L as Zt, Lt as Qt, M as $t, Mt as en, N as tn, Ot as nn, P as rn, Q as an, R as on, Rt as sn, St as cn, Tt as ln, U as un, Ut as dn, Vt as fn, W as pn, Wt as mn, X as hn, Y as gn, Z as _n, _t as vn, at as yn, b as bn, bt as xn, c as Sn, ct as Cn, d as wn, dt as Tn, et as En, f as Dn, ht as On, j as kn, kt as An, lt as jn, mt as Mn, n as Nn, nt as Pn, o as Fn, ot as In, q as Ln, qt as Rn, r as zn, t as Bn, u as Vn, ut as Hn, wt as Un, x as Wn, xt as Gn, y as Kn, z as qn, zt as Jn } from "./clusterDiagnostics-CGUtnJkX.js";
|
|
5
|
+
export { Lt as ADMISSIONS_TABLE, Mn as ADMISSION_SUBMISSION_ID_PREFIX, Qe as BUDGET_HOLDS_TABLE, gt as BudgetHoldExpired, vt as CANCEL_ON_WATERMARK, Bn as CLUSTER_REREAD_WINDOW_MS, Nn as ClusterDiagnostics, d as CurrentWorkflowExecutionId, p as CurrentWorkflowPatches, G as CurrentWorkflowReplayShape, a as CurrentWorkflowRunId, c as CurrentWorkflowStep, ut as DEFAULT_BUDGET_HOLD_TIMEOUT_MS, xe as DEFAULT_COLD_LOOKBACK_MS, Ft as DEFAULT_DRAIN_BATCH, ze as DEFAULT_EVENT_BATCH, kn as DEFAULT_LEASE_MS, Ct as DEFAULT_MAX_RUN_RECLAIMS, ft as DEFAULT_REPLAY_SHAPE_LIMIT, Fe as DEFAULT_STALL_AFTER_MS, Le as DEFAULT_STALL_EVENT_LOOKBACK, ve as DEFAULT_STALL_RUN_PAGE, Oe as DEFAULT_SUSPEND_HINT_MS, f as DEFAULT_WORKFLOW_SCHEDULE_MAX_RUNTIME_MS, _ as DEFERRING_CONTROLS, Re as EVENTS_TABLE, Jn as FlowControlKeyError, $t as PAUSES_TABLE, tn as PENDING_TABLE, ie as STEP_JOURNAL_BINDING, le as SuspensionUnavailable, Be as WATERMARKS_TABLE, oe as WORKFLOW_JOURNAL_BINDING, ot as WorkflowCannotPark, H as WorkflowFlowControlProperty, I as WorkflowMessagesProperty, m as WorkflowRunRecorder, N as WorkflowScheduleProperty, yn as WorkflowStartRequestConflictError, J as WorkflowStepInterceptorTag, B as WorkflowVersionTypeId, j as WorkflowWorkerLayerTypeId, nt as _voltroBudgetHoldsTable, rt as _voltroWorkflowAdmissionLocksTable, tt as _voltroWorkflowAdmissionsTable, He as _voltroWorkflowControlRequestsTable, Ot as _voltroWorkflowFailureReportsTable, Pt as _voltroWorkflowParentClosuresTable, Ke as _voltroWorkflowPausesTable, Mt as _voltroWorkflowPendingTable, Pe as _voltroWorkflowRunEventsTable, ge as _voltroWorkflowRunStepsTable, me as _voltroWorkflowRunsTable, At as _voltroWorkflowStartContextsTable, Me as _voltroWorkflowStartReceiptsTable, fe as _voltroWorkflowSubmissionsTable, bt as _voltroWorkflowWatermarksTable, ue as acceptAdmissionSubmission, Kn as acceptWorkflowControlInTransaction, On as acknowledgeAdmissionSubmission, at as admitStart, rn as allIntents, y as assertConsistentPools, x as attachPreparedWorkflowExecution, we as awaitEvent, Te as awaitSignal, de as awaitSignalSuspending, Ye as awaitUpdate, vn as beginAdmissionSubmissionDispatchInTransaction, bn as beginWorkflowControlDispatchInTransaction, Wn as bindWorkflowResumeJournalInTransaction, In as bindWorkflowStartReceipts, et as budgetHoldGeneration, Ve as budgetHoldKey, Dt as budgetHoldSignalName, Je as cancelQueuedWorkflowStartInTransaction, Xe as cancelSuspendedWorkflowRunInTransaction, zt as comparePendingOrder, kt as completeSuspendingSignal, $e as completeWorkflowRunGenerationInTransaction, t as currentWorkflowStep, Ht as deadLetterIntent, fn as decideAdmission, o as deferringControlsOf, Zt as deleteIntent, zn as describeStalledRun, on as discardIntent, qn as discardIntentInTransaction, Ie as drainTick, Rt as dueIntents, w as durableClock, L as durableQueue, V as durableQueueModule, E as durableRateLimiterModule, _t as enterWorkflowRunGenerationInTransaction, Kt as evaluateAdmission, b as executePreparedWorkflow, v as getCurrentWorkflowExecutionId, s as getCurrentWorkflowRunId, P as getWorkflowFlowControl, ae as getWorkflowJournalCipher, e as getWorkflowSchedule, U as getWorkflowVersionMetadata, en as handoffWorkflowFailureInTransaction, u as hasCancelOn, z as hasFlowControl, S as hasPreparedWorkflowExecution, Nt as heldBudgets, De as inMemoryWorkflowEngineLayer, Tt as inspectWorkflow, qt as isFinishExpired, $ as isSealedJournalValue, dn as isStartExpired, ye as isUnacknowledgedSubmission, ne as isWorkflowEncrypted, D as isWorkflowWorkerLayer, We as linkExecution, ct as makeInMemoryRecorder, g as makeReplayShapeTracker, yt as makeWorkflowRunRecorder, he as makeWorkflowUpdateId, _e as maybeHintSuspendingSignal, xn as newAdmissionSubmissionId, wt as newestEventAt, mn as nextSlotAt, i as nondeterminismEventPayload, it as normaliseWorkflowPatches, Gn as noteAdmissionSubmissionFailure, un as noteIntentAttempt, re as openErrorText, te as openEventPayload, ee as openJournalValue, Q as openPayloadFields, se as openWorkflowRow, pn as parkDelayedStart, O as patch, Wt as pauseWorkflow, cn as pendingAdmissionSubmissions, Ge as pendingBudgetHolds, Yt as pendingSlotId, Ln as pendingWindow, Jt as persistDefer, pt as planCancellations, Gt as pooledConcurrencyKey, Un as prepareAdmissionSubmissionExecutionInTransaction, R as processQueue, gn as pruneAdmissions, F as queueWorker, Et as queuedCancellationRequestsTable, A as rateLimit, hn as readAdmissionState, ln as readAdmissionSubmission, _n as readPausedWorkflows, lt as readQueuedWorkflowCancellationInTransaction, ke as readWatermark, Bt as readWorkflowControlInTransaction, Qt as readWorkflowFailureRecord, Fn as readWorkflowRestartObservationInTransaction, Cn as readWorkflowStartReceipt, jn as readWorkflowStartRequest, Ut as reconcileWorkflowFailureInTransaction, an as recordAdmission, sn as recordWorkflowFailureInTransaction, Hn as recordWorkflowStartReceipt, Vt as rejectAdmissionSubmissionInTransaction, jt as releaseBudgetHolds, It as releaseLease, r as reportNondeterminism, nn as reserveAdmissionSubmission, An as reserveAdmissionSubmissionInTransaction, Sn as reserveWorkflowRestartInTransaction, be as resetSuspendHintsForTest, Xt as resolveAdmissionKeys, Ue as resolveRunGuardTuning, Ce as resolveSuspendHintMs, pe as resolveWorkflowMessageRun, Tn as resolveWorkflowStartReceipt, En as resumeWorkflow, Pn as retryDeadLetterIntent, Z as sealJournalValue, Ee as sendWorkflowSignal, st as sendWorkflowUpdate, mt as serialiseWorkflowRowForWire, Ae as setSuspendSignalHintMs, X as setWorkflowJournalCipher, k as sleep, C as sleepUntil, dt as stageWorkflowParentClosureInTransaction, W as step, q as stepIdempotencyKey, T as stepModule, je as suspendForBudget, Ne as suspendingSignalDeferredName, ce as sweepCancelOn, Se as sweepStalledRuns, ht as takeAdmittedSubmissionInTransaction, St as takePendingAdmissionSubmission, xt as truncateWorkflowValue, Y as tryOpenJournalValue, l as validateFlowControl, M as validateWorkflowSchedule, Rn as withAdmissionTransaction, K as withCompensation, Vn as withdrawWorkflowRestartInTransaction, h as workflow, n as workflowModule, wn as workflowRestartRequestsTable, Dn as workflowRestartWithdrawalsTable, qe as wrapWorkflowExecuteWithRunRecording, Ze as writeWatermark };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voltro/workflow",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.84.0",
|
|
4
4
|
"description": "Durable workflows for Voltro — the workflow() descriptor + step() / awaitSignal primitives over @effect/cluster, with a browser-safe define subpath.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"voltro",
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
"@effect/cluster": "^0.60.2",
|
|
52
52
|
"@effect/sql": "^0.52.1",
|
|
53
53
|
"@effect/workflow": "^0.19.1",
|
|
54
|
-
"@voltro/database": "0.
|
|
55
|
-
"@voltro/logger": "0.
|
|
56
|
-
"@voltro/protocol": "0.
|
|
54
|
+
"@voltro/database": "0.84.0",
|
|
55
|
+
"@voltro/logger": "0.84.0",
|
|
56
|
+
"@voltro/protocol": "0.84.0"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
59
|
"effect": "^3.22.2",
|