@swirls/looms 0.17.0 → 0.18.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 +15 -0
- package/dist/actor/cell.d.ts +5 -1
- package/dist/actor/cell.js +2 -0
- package/dist/actor/host.d.ts +5 -1
- package/dist/actor/host.js +2 -0
- package/dist/agent/effects.d.ts +266 -266
- package/dist/client/client.d.ts +1 -0
- package/dist/client/client.js +10 -4
- package/dist/cloudflare/durable-object.d.ts +5 -1
- package/dist/cloudflare/durable-object.js +2 -0
- package/dist/cloudflare/queue-consumer.js +11 -3
- package/dist/core/effects.d.ts +1 -1
- package/dist/core/module.d.ts +1 -0
- package/dist/core/run-context.d.ts +6 -2
- package/dist/core/sqlite-store.js +6 -0
- package/dist/core/store.js +5 -0
- package/dist/core/worker-callback.d.ts +5 -2
- package/dist/debugger/app/assets/{index-Br9tGbPI.js → index-BjZn1DuJ.js} +2 -2
- package/dist/debugger/app/assets/{routes-CZ0buqO7.js → routes-B90xnBF1.js} +2 -2
- package/dist/debugger/app/index.html +1 -1
- package/dist/runtime/effect-admission.d.ts +8 -3
- package/dist/runtime/effect-admission.js +23 -4
- package/dist/runtime/index.d.ts +2 -0
- package/dist/runtime/index.js +2 -0
- package/dist/runtime/local-effect-executor.d.ts +8 -2
- package/dist/runtime/local-effect-executor.js +21 -8
- package/dist/runtime/looms.d.ts +6 -0
- package/dist/runtime/looms.js +2 -0
- package/dist/runtime/observer.d.ts +15 -0
- package/dist/runtime/run-secrets.d.ts +132 -0
- package/dist/runtime/run-secrets.js +154 -0
- package/dist/runtime/runtime.js +27 -25
- package/dist/runtime/secret-sealer.d.ts +24 -0
- package/dist/runtime/secret-sealer.js +120 -0
- package/dist/runtime/server/routes/runs.js +2 -1
- package/dist/runtime/types.d.ts +20 -7
- package/dist/runtime/wake-engine.d.ts +2 -0
- package/dist/runtime/wake-engine.js +23 -9
- package/dist/runtime/worker-callbacks.d.ts +4 -2
- package/dist/runtime/worker-callbacks.js +15 -2
- package/dist/runtime/worker-effect-dispatch.d.ts +1 -2
- package/dist/runtime/worker-effect-dispatch.js +0 -1
- package/dist/schedule/module.d.ts +36 -36
- package/dist/workflow/module.d.ts +32 -32
- package/package.json +1 -1
|
@@ -143,14 +143,6 @@ export declare function workflow(options?: WorkflowModuleOptions): import("@swir
|
|
|
143
143
|
} | undefined;
|
|
144
144
|
readonly input?: import("effect/Schema").Json | undefined;
|
|
145
145
|
}, import("./definitions-store").WorkflowDefinitionsTag, (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
146
|
-
readonly type: "runtime.effect.retry.scheduled";
|
|
147
|
-
readonly payload: {
|
|
148
|
-
readonly effectId: string;
|
|
149
|
-
readonly attempt: number;
|
|
150
|
-
readonly nextAttemptAt: number;
|
|
151
|
-
readonly error: string;
|
|
152
|
-
};
|
|
153
|
-
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
154
146
|
readonly type: "runtime.child.close.requested";
|
|
155
147
|
readonly payload: {
|
|
156
148
|
readonly policy: "terminate" | "wait";
|
|
@@ -235,6 +227,14 @@ export declare function workflow(options?: WorkflowModuleOptions): import("@swir
|
|
|
235
227
|
readonly attempt: number;
|
|
236
228
|
readonly deadlineAt: number | null;
|
|
237
229
|
};
|
|
230
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
231
|
+
readonly type: "runtime.effect.retry.scheduled";
|
|
232
|
+
readonly payload: {
|
|
233
|
+
readonly effectId: string;
|
|
234
|
+
readonly attempt: number;
|
|
235
|
+
readonly nextAttemptAt: number;
|
|
236
|
+
readonly error: string;
|
|
237
|
+
};
|
|
238
238
|
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
239
239
|
readonly type: "runtime.effect.timed_out";
|
|
240
240
|
readonly payload: {
|
|
@@ -548,14 +548,6 @@ export declare function workflow(options?: WorkflowModuleOptions): import("@swir
|
|
|
548
548
|
};
|
|
549
549
|
} | undefined;
|
|
550
550
|
}, import("./definitions-store").WorkflowDefinitionsTag, (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
551
|
-
readonly type: "runtime.effect.retry.scheduled";
|
|
552
|
-
readonly payload: {
|
|
553
|
-
readonly effectId: string;
|
|
554
|
-
readonly attempt: number;
|
|
555
|
-
readonly nextAttemptAt: number;
|
|
556
|
-
readonly error: string;
|
|
557
|
-
};
|
|
558
|
-
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
559
551
|
readonly type: "runtime.child.close.requested";
|
|
560
552
|
readonly payload: {
|
|
561
553
|
readonly policy: "terminate" | "wait";
|
|
@@ -640,6 +632,14 @@ export declare function workflow(options?: WorkflowModuleOptions): import("@swir
|
|
|
640
632
|
readonly attempt: number;
|
|
641
633
|
readonly deadlineAt: number | null;
|
|
642
634
|
};
|
|
635
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
636
|
+
readonly type: "runtime.effect.retry.scheduled";
|
|
637
|
+
readonly payload: {
|
|
638
|
+
readonly effectId: string;
|
|
639
|
+
readonly attempt: number;
|
|
640
|
+
readonly nextAttemptAt: number;
|
|
641
|
+
readonly error: string;
|
|
642
|
+
};
|
|
643
643
|
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
644
644
|
readonly type: "runtime.effect.timed_out";
|
|
645
645
|
readonly payload: {
|
|
@@ -1131,14 +1131,6 @@ export declare function workflow(options?: WorkflowModuleOptions): import("@swir
|
|
|
1131
1131
|
} | undefined;
|
|
1132
1132
|
readonly input?: import("effect/Schema").Json | undefined;
|
|
1133
1133
|
}, import("./definitions-store").WorkflowDefinitionsTag, (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1134
|
-
readonly type: "runtime.effect.retry.scheduled";
|
|
1135
|
-
readonly payload: {
|
|
1136
|
-
readonly effectId: string;
|
|
1137
|
-
readonly attempt: number;
|
|
1138
|
-
readonly nextAttemptAt: number;
|
|
1139
|
-
readonly error: string;
|
|
1140
|
-
};
|
|
1141
|
-
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1142
1134
|
readonly type: "runtime.child.close.requested";
|
|
1143
1135
|
readonly payload: {
|
|
1144
1136
|
readonly policy: "terminate" | "wait";
|
|
@@ -1223,6 +1215,14 @@ export declare function workflow(options?: WorkflowModuleOptions): import("@swir
|
|
|
1223
1215
|
readonly attempt: number;
|
|
1224
1216
|
readonly deadlineAt: number | null;
|
|
1225
1217
|
};
|
|
1218
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1219
|
+
readonly type: "runtime.effect.retry.scheduled";
|
|
1220
|
+
readonly payload: {
|
|
1221
|
+
readonly effectId: string;
|
|
1222
|
+
readonly attempt: number;
|
|
1223
|
+
readonly nextAttemptAt: number;
|
|
1224
|
+
readonly error: string;
|
|
1225
|
+
};
|
|
1226
1226
|
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1227
1227
|
readonly type: "runtime.effect.timed_out";
|
|
1228
1228
|
readonly payload: {
|
|
@@ -1536,14 +1536,6 @@ export declare function workflow(options?: WorkflowModuleOptions): import("@swir
|
|
|
1536
1536
|
};
|
|
1537
1537
|
} | undefined;
|
|
1538
1538
|
}, import("./definitions-store").WorkflowDefinitionsTag, (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1539
|
-
readonly type: "runtime.effect.retry.scheduled";
|
|
1540
|
-
readonly payload: {
|
|
1541
|
-
readonly effectId: string;
|
|
1542
|
-
readonly attempt: number;
|
|
1543
|
-
readonly nextAttemptAt: number;
|
|
1544
|
-
readonly error: string;
|
|
1545
|
-
};
|
|
1546
|
-
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1547
1539
|
readonly type: "runtime.child.close.requested";
|
|
1548
1540
|
readonly payload: {
|
|
1549
1541
|
readonly policy: "terminate" | "wait";
|
|
@@ -1628,6 +1620,14 @@ export declare function workflow(options?: WorkflowModuleOptions): import("@swir
|
|
|
1628
1620
|
readonly attempt: number;
|
|
1629
1621
|
readonly deadlineAt: number | null;
|
|
1630
1622
|
};
|
|
1623
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1624
|
+
readonly type: "runtime.effect.retry.scheduled";
|
|
1625
|
+
readonly payload: {
|
|
1626
|
+
readonly effectId: string;
|
|
1627
|
+
readonly attempt: number;
|
|
1628
|
+
readonly nextAttemptAt: number;
|
|
1629
|
+
readonly error: string;
|
|
1630
|
+
};
|
|
1631
1631
|
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1632
1632
|
readonly type: "runtime.effect.timed_out";
|
|
1633
1633
|
readonly payload: {
|