@swirls/looms 0.3.0 → 0.5.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 +64 -0
- package/dist/actor/cell.d.ts +21 -2
- package/dist/actor/cell.js +15 -3
- package/dist/actor/host.d.ts +10 -2
- package/dist/actor/host.js +27 -4
- package/dist/actor/index.d.ts +2 -1
- package/dist/actor/index.js +1 -1
- package/dist/actor/routing.d.ts +3 -0
- package/dist/actor/routing.js +13 -2
- package/dist/agent/debugger/agent-chat.js +3 -30
- package/dist/agent/debugger/streaming-text.d.ts +6 -0
- package/dist/agent/debugger/streaming-text.js +33 -0
- package/dist/agent/definitions-store.d.ts +1 -1
- package/dist/agent/definitions-store.js +1 -1
- package/dist/agent/definitions.d.ts +48 -0
- package/dist/agent/definitions.js +44 -0
- package/dist/agent/effects.d.ts +184 -0
- package/dist/agent/effects.js +172 -40
- package/dist/agent/events.d.ts +89 -0
- package/dist/agent/events.js +25 -0
- package/dist/agent/module.d.ts +819 -407
- package/dist/agent/module.js +5 -1
- package/dist/agent/scope.d.ts +88 -0
- package/dist/agent/threads.js +39 -3
- package/dist/agent/types.d.ts +4 -0
- package/dist/approval/effects.d.ts +40 -0
- package/dist/approval/module.d.ts +80 -0
- package/dist/client/client.d.ts +468 -119
- package/dist/client/client.js +214 -21
- package/dist/client/index.d.ts +1 -1
- package/dist/client/sse.d.ts +1 -1
- package/dist/client/sse.js +2 -2
- package/dist/cloudflare/durable-object.d.ts +66 -2
- package/dist/cloudflare/durable-object.js +96 -1
- package/dist/cloudflare/event-store.d.ts +7 -3
- package/dist/cloudflare/event-store.js +16 -3
- package/dist/cloudflare/index.d.ts +7 -1
- package/dist/cloudflare/index.js +7 -1
- package/dist/cloudflare/memory-queue.d.ts +18 -0
- package/dist/cloudflare/memory-queue.js +53 -0
- package/dist/cloudflare/queue-consumer.d.ts +52 -0
- package/dist/cloudflare/queue-consumer.js +102 -0
- package/dist/cloudflare/queue-message.d.ts +31 -0
- package/dist/cloudflare/queue-message.js +33 -0
- package/dist/cloudflare/queue-pull.d.ts +62 -0
- package/dist/cloudflare/queue-pull.js +130 -0
- package/dist/cloudflare/queue-worker.d.ts +39 -0
- package/dist/cloudflare/queue-worker.js +62 -0
- package/dist/cloudflare/r2-blob-store.d.ts +33 -0
- package/dist/cloudflare/r2-blob-store.js +60 -0
- package/dist/cloudflare/router.d.ts +4 -1
- package/dist/cloudflare/router.js +8 -3
- package/dist/cloudflare/websocket.d.ts +27 -0
- package/dist/cloudflare/websocket.js +215 -0
- package/dist/core/attempts.d.ts +8 -0
- package/dist/core/attempts.js +27 -0
- package/dist/core/blob-offload.d.ts +21 -0
- package/dist/core/blob-offload.js +143 -0
- package/dist/core/blob-store.d.ts +45 -0
- package/dist/core/blob-store.js +164 -0
- package/dist/core/blobs.d.ts +37 -0
- package/dist/core/blobs.js +160 -0
- package/dist/core/definition-resolver.d.ts +40 -0
- package/dist/core/definition-resolver.js +129 -0
- package/dist/core/definition-store.d.ts +6 -0
- package/dist/core/definition-store.js +37 -1
- package/dist/core/effects.d.ts +86 -3
- package/dist/core/effects.js +99 -3
- package/dist/core/envelope.d.ts +9 -0
- package/dist/core/envelope.js +4 -0
- package/dist/core/event-codec.js +3 -0
- package/dist/core/fold.js +83 -1
- package/dist/core/ids.d.ts +2 -0
- package/dist/core/ids.js +4 -0
- package/dist/core/index.d.ts +10 -0
- package/dist/core/index.js +9 -0
- package/dist/core/launcher.d.ts +97 -0
- package/dist/core/launcher.js +67 -0
- package/dist/core/module-scope.d.ts +7 -3
- package/dist/core/module-scope.js +3 -0
- package/dist/core/module.d.ts +10 -0
- package/dist/core/projection.d.ts +5 -4
- package/dist/core/projection.js +4 -0
- package/dist/core/protocol.d.ts +36 -1
- package/dist/core/protocol.js +35 -0
- package/dist/core/published.d.ts +2 -0
- package/dist/core/published.js +4 -1
- package/dist/{react → core}/register.d.ts +9 -8
- package/dist/core/replay.d.ts +96 -0
- package/dist/core/run-context.d.ts +33 -0
- package/dist/core/run-context.js +23 -0
- package/dist/core/sqlite-store.js +57 -5
- package/dist/core/state.d.ts +60 -0
- package/dist/core/state.js +19 -0
- package/dist/core/store.d.ts +6 -0
- package/dist/core/store.js +7 -0
- package/dist/core/subscription.d.ts +97 -0
- package/dist/core/subscription.js +224 -0
- package/dist/core/thread.d.ts +7 -0
- package/dist/core/thread.js +1 -0
- package/dist/core/trace.d.ts +21 -0
- package/dist/core/trace.js +45 -0
- package/dist/core/worker-callback.d.ts +25 -1
- package/dist/debugger/app/assets/{index-CgDzWJg7.css → index-B7GdT1UA.css} +1 -1
- package/dist/debugger/app/assets/index-C31SnCuN.js +22 -0
- package/dist/debugger/app/assets/routes-DPA3O5AF.js +47 -0
- package/dist/debugger/app/index.html +2 -2
- package/dist/debugger/components/event-inspector.d.ts +3 -1
- package/dist/debugger/components/event-inspector.js +25 -4
- package/dist/debugger/components/event-stream.d.ts +4 -1
- package/dist/debugger/components/event-stream.js +2 -2
- package/dist/debugger/components/run-tree.d.ts +5 -2
- package/dist/debugger/components/run-tree.js +10 -4
- package/dist/debugger/context.d.ts +8 -1
- package/dist/debugger/context.js +15 -3
- package/dist/debugger/events/protocol-summarize.js +18 -3
- package/dist/debugger/index.d.ts +1 -1
- package/dist/debugger/index.js +1 -1
- package/dist/debugger/shell/debugger-shell.js +1 -1
- package/dist/debugger/shell/events-pane.js +4 -3
- package/dist/debugger/styles.css +1 -0
- package/dist/evaluator/definitions-store.d.ts +3 -4
- package/dist/evaluator/definitions-store.js +3 -3
- package/dist/evaluator/definitions.d.ts +4 -1
- package/dist/evaluator/definitions.js +5 -2
- package/dist/evaluator/effects.d.ts +41 -0
- package/dist/evaluator/effects.js +6 -2
- package/dist/evaluator/module.d.ts +84 -0
- package/dist/evaluator/module.js +7 -3
- package/dist/evaluator/threads.d.ts +2 -0
- package/dist/evaluator/threads.js +4 -0
- package/dist/projectors/event-log.d.ts +87 -0
- package/dist/projectors/event-log.js +396 -0
- package/dist/projectors/index-model.d.ts +12 -0
- package/dist/projectors/index-model.js +12 -3
- package/dist/projectors/memory.js +7 -0
- package/dist/projectors/postgres.d.ts +1 -0
- package/dist/projectors/postgres.js +32 -15
- package/dist/projectors/schema.d.ts +5 -0
- package/dist/projectors/schema.js +26 -1
- package/dist/projectors/sqlite.js +47 -19
- package/dist/projectors/with-projectors.d.ts +7 -1
- package/dist/projectors/with-projectors.js +13 -3
- package/dist/react/derived.d.ts +26 -8
- package/dist/react/derived.js +23 -26
- package/dist/react/index.d.ts +3 -3
- package/dist/react/index.js +2 -2
- package/dist/react/materialize.js +5 -1
- package/dist/react/react.d.ts +16 -9
- package/dist/react/react.js +47 -23
- package/dist/react/store.d.ts +14 -6
- package/dist/react/store.js +104 -12
- package/dist/react/tables.d.ts +4 -1
- package/dist/runtime/cancellation.d.ts +2 -1
- package/dist/runtime/cancellation.js +35 -2
- package/dist/runtime/child-run.d.ts +10 -0
- package/dist/runtime/child-run.js +58 -0
- package/dist/runtime/deadline-transition-planner.js +11 -2
- package/dist/runtime/dispatch-effect.d.ts +2 -2
- package/dist/runtime/dispatch-effect.js +43 -19
- package/dist/runtime/errors.d.ts +14 -1
- package/dist/runtime/errors.js +10 -0
- package/dist/runtime/filesystem-blob-store.d.ts +6 -0
- package/dist/runtime/filesystem-blob-store.js +59 -0
- package/dist/runtime/helpers.d.ts +15 -6
- package/dist/runtime/helpers.js +46 -6
- package/dist/runtime/index.d.ts +4 -2
- package/dist/runtime/index.js +3 -1
- package/dist/runtime/local-effect-executor.d.ts +11 -2
- package/dist/runtime/local-effect-executor.js +80 -4
- package/dist/runtime/looms.d.ts +38 -4
- package/dist/runtime/looms.js +17 -3
- package/dist/runtime/repository.d.ts +5 -4
- package/dist/runtime/repository.js +5 -2
- package/dist/runtime/retry-policy.d.ts +5 -0
- package/dist/runtime/retry-policy.js +10 -2
- package/dist/runtime/run-start.d.ts +1 -1
- package/dist/runtime/run-start.js +10 -0
- package/dist/runtime/runtime.d.ts +2 -2
- package/dist/runtime/runtime.js +191 -68
- package/dist/runtime/server/auth.d.ts +3 -0
- package/dist/runtime/server/fetch-handler.d.ts +2 -2
- package/dist/runtime/server/fetch-handler.js +35 -4
- package/dist/runtime/server/grant.d.ts +49 -0
- package/dist/runtime/server/grant.js +177 -0
- package/dist/runtime/server/routes/effects.js +47 -5
- package/dist/runtime/server/routes/runs.js +6 -1
- package/dist/runtime/server/run-route.d.ts +18 -0
- package/dist/runtime/server/run-route.js +26 -0
- package/dist/runtime/server.d.ts +3 -1
- package/dist/runtime/server.js +3 -1
- package/dist/runtime/sse.js +26 -4
- package/dist/runtime/subscription.d.ts +8 -0
- package/dist/runtime/subscription.js +23 -0
- package/dist/runtime/types.d.ts +87 -8
- package/dist/runtime/wake-engine.d.ts +4 -2
- package/dist/runtime/wake-engine.js +57 -6
- package/dist/runtime/worker-callbacks.d.ts +12 -2
- package/dist/runtime/worker-callbacks.js +102 -72
- package/dist/runtime/worker-effect-dispatch.d.ts +14 -5
- package/dist/runtime/worker-effect-dispatch.js +84 -18
- package/dist/schedule/debugger/index.d.ts +4 -0
- package/dist/schedule/debugger/index.js +11 -0
- package/dist/schedule/debugger/schedule-view.d.ts +3 -0
- package/dist/schedule/debugger/schedule-view.js +68 -0
- package/dist/schedule/debugger/summarize.d.ts +2 -0
- package/dist/schedule/debugger/summarize.js +43 -0
- package/dist/schedule/definitions-store.d.ts +10 -0
- package/dist/schedule/definitions-store.js +8 -0
- package/dist/schedule/definitions.d.ts +57 -0
- package/dist/schedule/definitions.js +30 -0
- package/dist/schedule/effects.d.ts +756 -0
- package/dist/schedule/effects.js +244 -0
- package/dist/schedule/ensure.d.ts +55 -0
- package/dist/schedule/ensure.js +109 -0
- package/dist/schedule/events.d.ts +116 -0
- package/dist/schedule/events.js +49 -0
- package/dist/schedule/index.d.ts +11 -0
- package/dist/schedule/index.js +11 -0
- package/dist/schedule/module.d.ts +1474 -0
- package/dist/schedule/module.js +22 -0
- package/dist/schedule/projections.d.ts +55 -0
- package/dist/schedule/projections.js +88 -0
- package/dist/schedule/scope.d.ts +121 -0
- package/dist/schedule/scope.js +7 -0
- package/dist/schedule/signals.d.ts +25 -0
- package/dist/schedule/signals.js +33 -0
- package/dist/schedule/specs.d.ts +59 -0
- package/dist/schedule/specs.js +231 -0
- package/dist/schedule/threads.d.ts +25 -0
- package/dist/schedule/threads.js +259 -0
- package/dist/testing/corpus-module.d.ts +34 -0
- package/dist/testing/corpus-module.js +87 -0
- package/dist/testing/index.d.ts +2 -0
- package/dist/testing/index.js +5 -6
- package/dist/testing/replay-corpus.d.ts +22 -0
- package/dist/testing/replay-corpus.js +50 -0
- package/dist/workflow/definitions-store.d.ts +1 -1
- package/dist/workflow/definitions-store.js +1 -1
- package/dist/workflow/definitions.d.ts +14 -0
- package/dist/workflow/effects.d.ts +122 -0
- package/dist/workflow/effects.js +16 -6
- package/dist/workflow/events.d.ts +42 -0
- package/dist/workflow/events.js +4 -0
- package/dist/workflow/module.d.ts +345 -32
- package/dist/workflow/module.js +7 -3
- package/dist/workflow/scope.d.ts +42 -0
- package/dist/workflow/threads.d.ts +72 -0
- package/dist/workflow/threads.js +106 -38
- package/package.json +11 -2
- package/dist/debugger/app/assets/index-BevQYa-U.js +0 -22
- package/dist/debugger/app/assets/routes-B17Om93i.js +0 -47
- /package/dist/{react → core}/register.js +0 -0
|
@@ -0,0 +1,1474 @@
|
|
|
1
|
+
import type { ScheduleDefinition } from './definitions';
|
|
2
|
+
export interface ScheduleModuleOptions {
|
|
3
|
+
readonly definitions?: readonly ScheduleDefinition[];
|
|
4
|
+
/** Reject specs whose shortest gap is below this. Defaults to 60 seconds. `once` is exempt. */
|
|
5
|
+
readonly minIntervalMs?: number;
|
|
6
|
+
}
|
|
7
|
+
export declare function schedule(options?: ScheduleModuleOptions): import("@swirls/looms/core").RuntimeModule<"schedule", import("@swirls/looms/core").EventCatalog<"schedule", {
|
|
8
|
+
planned: import("effect/Schema").Struct<{
|
|
9
|
+
readonly nextAt: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
|
|
10
|
+
readonly generation: import("effect/Schema").Finite;
|
|
11
|
+
readonly spec: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
12
|
+
readonly type: import("effect/Schema").Literal<"cron">;
|
|
13
|
+
readonly expr: import("effect/Schema").String;
|
|
14
|
+
readonly tz: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
15
|
+
}>, import("effect/Schema").Struct<{
|
|
16
|
+
readonly type: import("effect/Schema").Literal<"every">;
|
|
17
|
+
readonly everyMs: import("effect/Schema").Finite;
|
|
18
|
+
readonly anchor: import("effect/Schema").optional<import("effect/Schema").Finite>;
|
|
19
|
+
}>, import("effect/Schema").Struct<{
|
|
20
|
+
readonly type: import("effect/Schema").Literal<"once">;
|
|
21
|
+
readonly at: import("effect/Schema").Finite;
|
|
22
|
+
}>]>;
|
|
23
|
+
}>;
|
|
24
|
+
fired: import("effect/Schema").Struct<{
|
|
25
|
+
readonly at: import("effect/Schema").Finite;
|
|
26
|
+
readonly runId: import("effect/Schema").String;
|
|
27
|
+
readonly nextAt: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
|
|
28
|
+
readonly generation: import("effect/Schema").Finite;
|
|
29
|
+
readonly manual: import("effect/Schema").Boolean;
|
|
30
|
+
readonly triggerId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
31
|
+
}>;
|
|
32
|
+
skipped: import("effect/Schema").Struct<{
|
|
33
|
+
readonly at: import("effect/Schema").Finite;
|
|
34
|
+
readonly reason: import("effect/Schema").String;
|
|
35
|
+
readonly nextAt: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
|
|
36
|
+
readonly generation: import("effect/Schema").Finite;
|
|
37
|
+
readonly manual: import("effect/Schema").Boolean;
|
|
38
|
+
readonly triggerId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
39
|
+
}>;
|
|
40
|
+
updated: import("effect/Schema").Struct<{
|
|
41
|
+
readonly spec: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
42
|
+
readonly type: import("effect/Schema").Literal<"cron">;
|
|
43
|
+
readonly expr: import("effect/Schema").String;
|
|
44
|
+
readonly tz: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
45
|
+
}>, import("effect/Schema").Struct<{
|
|
46
|
+
readonly type: import("effect/Schema").Literal<"every">;
|
|
47
|
+
readonly everyMs: import("effect/Schema").Finite;
|
|
48
|
+
readonly anchor: import("effect/Schema").optional<import("effect/Schema").Finite>;
|
|
49
|
+
}>, import("effect/Schema").Struct<{
|
|
50
|
+
readonly type: import("effect/Schema").Literal<"once">;
|
|
51
|
+
readonly at: import("effect/Schema").Finite;
|
|
52
|
+
}>]>>;
|
|
53
|
+
readonly input: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>;
|
|
54
|
+
readonly endAt: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Finite>>;
|
|
55
|
+
readonly maxFires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Finite>>;
|
|
56
|
+
readonly definitionName: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
57
|
+
readonly definitionVersion: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
58
|
+
}>;
|
|
59
|
+
paused: import("effect/Schema").Struct<{}>;
|
|
60
|
+
resumed: import("effect/Schema").Struct<{}>;
|
|
61
|
+
retired: import("effect/Schema").Struct<{}>;
|
|
62
|
+
triggered: import("effect/Schema").Struct<{}>;
|
|
63
|
+
rejected: import("effect/Schema").Struct<{
|
|
64
|
+
readonly reason: import("effect/Schema").String;
|
|
65
|
+
}>;
|
|
66
|
+
}>, {
|
|
67
|
+
plan: import("@swirls/looms/core").EffectDefinition<{
|
|
68
|
+
readonly spec: {
|
|
69
|
+
readonly type: "cron";
|
|
70
|
+
readonly expr: string;
|
|
71
|
+
readonly tz?: string | undefined;
|
|
72
|
+
} | {
|
|
73
|
+
readonly type: "every";
|
|
74
|
+
readonly everyMs: number;
|
|
75
|
+
readonly anchor?: number | undefined;
|
|
76
|
+
} | {
|
|
77
|
+
readonly type: "once";
|
|
78
|
+
readonly at: number;
|
|
79
|
+
};
|
|
80
|
+
readonly generation: number;
|
|
81
|
+
readonly fireCount: number;
|
|
82
|
+
readonly startAt: number | null;
|
|
83
|
+
readonly endAt: number | null;
|
|
84
|
+
readonly maxFires: number | null;
|
|
85
|
+
readonly misfire: "fire-once" | "skip";
|
|
86
|
+
}, never, (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
87
|
+
readonly type: "runtime.child.close.requested";
|
|
88
|
+
readonly payload: {
|
|
89
|
+
readonly policy: "terminate" | "wait";
|
|
90
|
+
};
|
|
91
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
92
|
+
readonly type: "runtime.child.settled";
|
|
93
|
+
readonly payload: {
|
|
94
|
+
readonly runId: string;
|
|
95
|
+
readonly status: "cancelled" | "completed" | "failed";
|
|
96
|
+
readonly output: import("effect/Schema").Json;
|
|
97
|
+
readonly error: string | null;
|
|
98
|
+
};
|
|
99
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
100
|
+
readonly type: "runtime.effect.ambiguous";
|
|
101
|
+
readonly payload: {
|
|
102
|
+
readonly effectId: string;
|
|
103
|
+
readonly attempt: number;
|
|
104
|
+
readonly error: string;
|
|
105
|
+
};
|
|
106
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
107
|
+
readonly type: "runtime.effect.attempt.started";
|
|
108
|
+
readonly payload: {
|
|
109
|
+
readonly effectId: string;
|
|
110
|
+
readonly attempt: number;
|
|
111
|
+
};
|
|
112
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
113
|
+
readonly type: "runtime.effect.cancel.requested";
|
|
114
|
+
readonly payload: {
|
|
115
|
+
readonly effectId: string;
|
|
116
|
+
readonly attempt: number;
|
|
117
|
+
readonly deadlineAt: number | null;
|
|
118
|
+
};
|
|
119
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
120
|
+
readonly type: "runtime.effect.cancelled";
|
|
121
|
+
readonly payload: {
|
|
122
|
+
readonly effectId: string;
|
|
123
|
+
readonly attempt: number;
|
|
124
|
+
};
|
|
125
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
126
|
+
readonly type: "runtime.effect.completed";
|
|
127
|
+
readonly payload: {
|
|
128
|
+
readonly effectId: string;
|
|
129
|
+
readonly attempt: number;
|
|
130
|
+
};
|
|
131
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
132
|
+
readonly type: "runtime.effect.dispatched";
|
|
133
|
+
readonly payload: {
|
|
134
|
+
readonly effectId: string;
|
|
135
|
+
readonly attempt: number;
|
|
136
|
+
readonly deadlineAt: number | null;
|
|
137
|
+
};
|
|
138
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
139
|
+
readonly type: "runtime.effect.failed";
|
|
140
|
+
readonly payload: {
|
|
141
|
+
readonly effectId: string;
|
|
142
|
+
readonly error: string;
|
|
143
|
+
readonly nonRetryable?: boolean | undefined;
|
|
144
|
+
readonly retryAfterMs?: number | undefined;
|
|
145
|
+
};
|
|
146
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
147
|
+
readonly type: "runtime.effect.heartbeat";
|
|
148
|
+
readonly payload: {
|
|
149
|
+
readonly effectId: string;
|
|
150
|
+
readonly attempt: number;
|
|
151
|
+
readonly heartbeatAt: number;
|
|
152
|
+
readonly deadlineAt: number | null;
|
|
153
|
+
readonly details?: import("effect/Schema").Json | undefined;
|
|
154
|
+
};
|
|
155
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
156
|
+
readonly type: "runtime.effect.queued";
|
|
157
|
+
readonly payload: {
|
|
158
|
+
readonly effectId: string;
|
|
159
|
+
readonly attempt: number;
|
|
160
|
+
readonly deadlineAt: number | null;
|
|
161
|
+
};
|
|
162
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
163
|
+
readonly type: "runtime.effect.retry.scheduled";
|
|
164
|
+
readonly payload: {
|
|
165
|
+
readonly effectId: string;
|
|
166
|
+
readonly attempt: number;
|
|
167
|
+
readonly nextAttemptAt: number;
|
|
168
|
+
readonly error: string;
|
|
169
|
+
};
|
|
170
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
171
|
+
readonly type: "runtime.effect.timed_out";
|
|
172
|
+
readonly payload: {
|
|
173
|
+
readonly effectId: string;
|
|
174
|
+
readonly attempt: number;
|
|
175
|
+
readonly timeout: string;
|
|
176
|
+
};
|
|
177
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
178
|
+
readonly type: "runtime.effect.worker.started";
|
|
179
|
+
readonly payload: {
|
|
180
|
+
readonly effectId: string;
|
|
181
|
+
readonly attempt: number;
|
|
182
|
+
readonly deadlineAt: number | null;
|
|
183
|
+
};
|
|
184
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
185
|
+
readonly type: "runtime.fork.elided";
|
|
186
|
+
readonly payload: {
|
|
187
|
+
readonly type: string;
|
|
188
|
+
};
|
|
189
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
190
|
+
readonly type: "runtime.run.cancelled";
|
|
191
|
+
readonly payload: {
|
|
192
|
+
readonly reason?: string | undefined;
|
|
193
|
+
};
|
|
194
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
195
|
+
readonly type: "runtime.run.completed";
|
|
196
|
+
readonly payload: {
|
|
197
|
+
readonly output: import("effect/Schema").Json;
|
|
198
|
+
readonly error: string | null;
|
|
199
|
+
};
|
|
200
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
201
|
+
readonly type: "runtime.run.forked";
|
|
202
|
+
readonly payload: {
|
|
203
|
+
readonly sourceRunId: string;
|
|
204
|
+
readonly sourceSeq: number;
|
|
205
|
+
};
|
|
206
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
207
|
+
readonly type: "runtime.run.launched";
|
|
208
|
+
readonly payload: {
|
|
209
|
+
readonly runId: string;
|
|
210
|
+
readonly kind: string;
|
|
211
|
+
readonly definitionName: string;
|
|
212
|
+
readonly definitionVersion: string;
|
|
213
|
+
readonly effectId: string;
|
|
214
|
+
readonly close: "terminate" | "wait";
|
|
215
|
+
};
|
|
216
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
217
|
+
readonly type: "runtime.run.started";
|
|
218
|
+
readonly payload: {
|
|
219
|
+
readonly rootThreadId?: string | undefined;
|
|
220
|
+
readonly kind: string;
|
|
221
|
+
readonly definitionName: string;
|
|
222
|
+
readonly definitionVersion: string;
|
|
223
|
+
readonly input: import("effect/Schema").Json;
|
|
224
|
+
readonly requestedThreadId?: string | null | undefined;
|
|
225
|
+
readonly launchedBy?: {
|
|
226
|
+
readonly runId: string;
|
|
227
|
+
readonly threadId: string;
|
|
228
|
+
readonly effectId: string;
|
|
229
|
+
readonly causationId: string;
|
|
230
|
+
readonly causationSeq: number;
|
|
231
|
+
} | undefined;
|
|
232
|
+
readonly attributes?: {
|
|
233
|
+
readonly [x: string]: string;
|
|
234
|
+
} | undefined;
|
|
235
|
+
readonly trace?: {
|
|
236
|
+
readonly traceparent: string;
|
|
237
|
+
readonly tracestate?: string | undefined;
|
|
238
|
+
} | undefined;
|
|
239
|
+
};
|
|
240
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
241
|
+
readonly type: "runtime.signal.received";
|
|
242
|
+
readonly payload: {
|
|
243
|
+
readonly signalType: string;
|
|
244
|
+
};
|
|
245
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
246
|
+
readonly type: "runtime.snapshot.taken";
|
|
247
|
+
readonly payload: {
|
|
248
|
+
readonly seq: number;
|
|
249
|
+
readonly stateHash: string;
|
|
250
|
+
readonly state?: import("effect/Schema").Json | undefined;
|
|
251
|
+
};
|
|
252
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
253
|
+
readonly type: "runtime.thread.cancel.requested";
|
|
254
|
+
readonly payload: {
|
|
255
|
+
readonly threadId: string;
|
|
256
|
+
};
|
|
257
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
258
|
+
readonly type: "runtime.thread.cancelled";
|
|
259
|
+
readonly payload: {
|
|
260
|
+
readonly threadId: string;
|
|
261
|
+
readonly reason?: string | undefined;
|
|
262
|
+
readonly resumeSeq?: number | undefined;
|
|
263
|
+
};
|
|
264
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
265
|
+
readonly type: "runtime.thread.completed";
|
|
266
|
+
readonly payload: {
|
|
267
|
+
readonly threadId: string;
|
|
268
|
+
readonly output: import("effect/Schema").Json;
|
|
269
|
+
};
|
|
270
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
271
|
+
readonly type: "runtime.thread.failed";
|
|
272
|
+
readonly payload: {
|
|
273
|
+
readonly threadId: string;
|
|
274
|
+
readonly error: string;
|
|
275
|
+
};
|
|
276
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
277
|
+
readonly type: "runtime.thread.started";
|
|
278
|
+
readonly payload: {
|
|
279
|
+
readonly threadId: string;
|
|
280
|
+
readonly kind: string;
|
|
281
|
+
readonly definitionName: string;
|
|
282
|
+
readonly definitionVersion: string;
|
|
283
|
+
readonly input: import("effect/Schema").Json;
|
|
284
|
+
readonly parentThreadId: string | null;
|
|
285
|
+
};
|
|
286
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
287
|
+
readonly type: "runtime.timer.fired";
|
|
288
|
+
readonly payload: {
|
|
289
|
+
readonly timerId: string;
|
|
290
|
+
readonly waitId: string;
|
|
291
|
+
};
|
|
292
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
293
|
+
readonly type: "runtime.timer.set";
|
|
294
|
+
readonly payload: {
|
|
295
|
+
readonly timerId: string;
|
|
296
|
+
readonly waitId: string;
|
|
297
|
+
readonly wakeAt: number;
|
|
298
|
+
};
|
|
299
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
300
|
+
readonly type: "runtime.wait.registered";
|
|
301
|
+
readonly payload: {
|
|
302
|
+
readonly waitId: string;
|
|
303
|
+
readonly threadId?: string | undefined;
|
|
304
|
+
readonly on: {
|
|
305
|
+
readonly type: string | readonly string[];
|
|
306
|
+
readonly match?: import("effect/Schema").Json | undefined;
|
|
307
|
+
} | {
|
|
308
|
+
readonly timerAt: number;
|
|
309
|
+
};
|
|
310
|
+
readonly tag?: import("effect/Schema").Json | undefined;
|
|
311
|
+
};
|
|
312
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
313
|
+
readonly type: "runtime.wait.satisfied";
|
|
314
|
+
readonly payload: {
|
|
315
|
+
readonly waitId: string;
|
|
316
|
+
readonly tag?: import("effect/Schema").Json | undefined;
|
|
317
|
+
readonly event: {
|
|
318
|
+
readonly id: string;
|
|
319
|
+
readonly type: string;
|
|
320
|
+
readonly payload: import("effect/Schema").Json;
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
324
|
+
readonly type: "schedule.fired";
|
|
325
|
+
readonly payload: {
|
|
326
|
+
readonly at: number;
|
|
327
|
+
readonly runId: string;
|
|
328
|
+
readonly nextAt: number | null;
|
|
329
|
+
readonly generation: number;
|
|
330
|
+
readonly manual: boolean;
|
|
331
|
+
readonly triggerId?: string | undefined;
|
|
332
|
+
};
|
|
333
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
334
|
+
readonly type: "schedule.paused";
|
|
335
|
+
readonly payload: {};
|
|
336
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
337
|
+
readonly type: "schedule.planned";
|
|
338
|
+
readonly payload: {
|
|
339
|
+
readonly nextAt: number | null;
|
|
340
|
+
readonly generation: number;
|
|
341
|
+
readonly spec: {
|
|
342
|
+
readonly type: "cron";
|
|
343
|
+
readonly expr: string;
|
|
344
|
+
readonly tz?: string | undefined;
|
|
345
|
+
} | {
|
|
346
|
+
readonly type: "every";
|
|
347
|
+
readonly everyMs: number;
|
|
348
|
+
readonly anchor?: number | undefined;
|
|
349
|
+
} | {
|
|
350
|
+
readonly type: "once";
|
|
351
|
+
readonly at: number;
|
|
352
|
+
};
|
|
353
|
+
};
|
|
354
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
355
|
+
readonly type: "schedule.rejected";
|
|
356
|
+
readonly payload: {
|
|
357
|
+
readonly reason: string;
|
|
358
|
+
};
|
|
359
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
360
|
+
readonly type: "schedule.resumed";
|
|
361
|
+
readonly payload: {};
|
|
362
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
363
|
+
readonly type: "schedule.retired";
|
|
364
|
+
readonly payload: {};
|
|
365
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
366
|
+
readonly type: "schedule.skipped";
|
|
367
|
+
readonly payload: {
|
|
368
|
+
readonly at: number;
|
|
369
|
+
readonly reason: string;
|
|
370
|
+
readonly nextAt: number | null;
|
|
371
|
+
readonly generation: number;
|
|
372
|
+
readonly manual: boolean;
|
|
373
|
+
readonly triggerId?: string | undefined;
|
|
374
|
+
};
|
|
375
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
376
|
+
readonly type: "schedule.triggered";
|
|
377
|
+
readonly payload: {};
|
|
378
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
379
|
+
readonly type: "schedule.updated";
|
|
380
|
+
readonly payload: {
|
|
381
|
+
readonly spec?: {
|
|
382
|
+
readonly type: "cron";
|
|
383
|
+
readonly expr: string;
|
|
384
|
+
readonly tz?: string | undefined;
|
|
385
|
+
} | {
|
|
386
|
+
readonly type: "every";
|
|
387
|
+
readonly everyMs: number;
|
|
388
|
+
readonly anchor?: number | undefined;
|
|
389
|
+
} | {
|
|
390
|
+
readonly type: "once";
|
|
391
|
+
readonly at: number;
|
|
392
|
+
} | undefined;
|
|
393
|
+
readonly input?: import("effect/Schema").Json | undefined;
|
|
394
|
+
readonly endAt?: number | null | undefined;
|
|
395
|
+
readonly maxFires?: number | null | undefined;
|
|
396
|
+
readonly definitionName?: string | undefined;
|
|
397
|
+
readonly definitionVersion?: string | undefined;
|
|
398
|
+
};
|
|
399
|
+
})>;
|
|
400
|
+
fire: import("@swirls/looms/core").EffectDefinition<{
|
|
401
|
+
readonly definitionName: string;
|
|
402
|
+
readonly definitionVersion: string;
|
|
403
|
+
readonly spec: {
|
|
404
|
+
readonly type: "cron";
|
|
405
|
+
readonly expr: string;
|
|
406
|
+
readonly tz?: string | undefined;
|
|
407
|
+
} | {
|
|
408
|
+
readonly type: "every";
|
|
409
|
+
readonly everyMs: number;
|
|
410
|
+
readonly anchor?: number | undefined;
|
|
411
|
+
} | {
|
|
412
|
+
readonly type: "once";
|
|
413
|
+
readonly at: number;
|
|
414
|
+
};
|
|
415
|
+
readonly generation: number;
|
|
416
|
+
readonly at: number;
|
|
417
|
+
readonly nextAt: number | null;
|
|
418
|
+
readonly misfire: "fire-once" | "skip";
|
|
419
|
+
readonly overlap: "allow" | "skip";
|
|
420
|
+
readonly storedInput: import("effect/Schema").Json;
|
|
421
|
+
readonly fireCount: number;
|
|
422
|
+
readonly startAt: number | null;
|
|
423
|
+
readonly endAt: number | null;
|
|
424
|
+
readonly maxFires: number | null;
|
|
425
|
+
readonly lastFiredRunId: string | null;
|
|
426
|
+
readonly manual: boolean;
|
|
427
|
+
readonly triggerId?: string | undefined;
|
|
428
|
+
}, import("@swirls/looms/core").RunLauncherTag | import("./definitions-store").ScheduleDefinitionsTag, (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
429
|
+
readonly type: "runtime.child.close.requested";
|
|
430
|
+
readonly payload: {
|
|
431
|
+
readonly policy: "terminate" | "wait";
|
|
432
|
+
};
|
|
433
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
434
|
+
readonly type: "runtime.child.settled";
|
|
435
|
+
readonly payload: {
|
|
436
|
+
readonly runId: string;
|
|
437
|
+
readonly status: "cancelled" | "completed" | "failed";
|
|
438
|
+
readonly output: import("effect/Schema").Json;
|
|
439
|
+
readonly error: string | null;
|
|
440
|
+
};
|
|
441
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
442
|
+
readonly type: "runtime.effect.ambiguous";
|
|
443
|
+
readonly payload: {
|
|
444
|
+
readonly effectId: string;
|
|
445
|
+
readonly attempt: number;
|
|
446
|
+
readonly error: string;
|
|
447
|
+
};
|
|
448
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
449
|
+
readonly type: "runtime.effect.attempt.started";
|
|
450
|
+
readonly payload: {
|
|
451
|
+
readonly effectId: string;
|
|
452
|
+
readonly attempt: number;
|
|
453
|
+
};
|
|
454
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
455
|
+
readonly type: "runtime.effect.cancel.requested";
|
|
456
|
+
readonly payload: {
|
|
457
|
+
readonly effectId: string;
|
|
458
|
+
readonly attempt: number;
|
|
459
|
+
readonly deadlineAt: number | null;
|
|
460
|
+
};
|
|
461
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
462
|
+
readonly type: "runtime.effect.cancelled";
|
|
463
|
+
readonly payload: {
|
|
464
|
+
readonly effectId: string;
|
|
465
|
+
readonly attempt: number;
|
|
466
|
+
};
|
|
467
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
468
|
+
readonly type: "runtime.effect.completed";
|
|
469
|
+
readonly payload: {
|
|
470
|
+
readonly effectId: string;
|
|
471
|
+
readonly attempt: number;
|
|
472
|
+
};
|
|
473
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
474
|
+
readonly type: "runtime.effect.dispatched";
|
|
475
|
+
readonly payload: {
|
|
476
|
+
readonly effectId: string;
|
|
477
|
+
readonly attempt: number;
|
|
478
|
+
readonly deadlineAt: number | null;
|
|
479
|
+
};
|
|
480
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
481
|
+
readonly type: "runtime.effect.failed";
|
|
482
|
+
readonly payload: {
|
|
483
|
+
readonly effectId: string;
|
|
484
|
+
readonly error: string;
|
|
485
|
+
readonly nonRetryable?: boolean | undefined;
|
|
486
|
+
readonly retryAfterMs?: number | undefined;
|
|
487
|
+
};
|
|
488
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
489
|
+
readonly type: "runtime.effect.heartbeat";
|
|
490
|
+
readonly payload: {
|
|
491
|
+
readonly effectId: string;
|
|
492
|
+
readonly attempt: number;
|
|
493
|
+
readonly heartbeatAt: number;
|
|
494
|
+
readonly deadlineAt: number | null;
|
|
495
|
+
readonly details?: import("effect/Schema").Json | undefined;
|
|
496
|
+
};
|
|
497
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
498
|
+
readonly type: "runtime.effect.queued";
|
|
499
|
+
readonly payload: {
|
|
500
|
+
readonly effectId: string;
|
|
501
|
+
readonly attempt: number;
|
|
502
|
+
readonly deadlineAt: number | null;
|
|
503
|
+
};
|
|
504
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
505
|
+
readonly type: "runtime.effect.retry.scheduled";
|
|
506
|
+
readonly payload: {
|
|
507
|
+
readonly effectId: string;
|
|
508
|
+
readonly attempt: number;
|
|
509
|
+
readonly nextAttemptAt: number;
|
|
510
|
+
readonly error: string;
|
|
511
|
+
};
|
|
512
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
513
|
+
readonly type: "runtime.effect.timed_out";
|
|
514
|
+
readonly payload: {
|
|
515
|
+
readonly effectId: string;
|
|
516
|
+
readonly attempt: number;
|
|
517
|
+
readonly timeout: string;
|
|
518
|
+
};
|
|
519
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
520
|
+
readonly type: "runtime.effect.worker.started";
|
|
521
|
+
readonly payload: {
|
|
522
|
+
readonly effectId: string;
|
|
523
|
+
readonly attempt: number;
|
|
524
|
+
readonly deadlineAt: number | null;
|
|
525
|
+
};
|
|
526
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
527
|
+
readonly type: "runtime.fork.elided";
|
|
528
|
+
readonly payload: {
|
|
529
|
+
readonly type: string;
|
|
530
|
+
};
|
|
531
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
532
|
+
readonly type: "runtime.run.cancelled";
|
|
533
|
+
readonly payload: {
|
|
534
|
+
readonly reason?: string | undefined;
|
|
535
|
+
};
|
|
536
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
537
|
+
readonly type: "runtime.run.completed";
|
|
538
|
+
readonly payload: {
|
|
539
|
+
readonly output: import("effect/Schema").Json;
|
|
540
|
+
readonly error: string | null;
|
|
541
|
+
};
|
|
542
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
543
|
+
readonly type: "runtime.run.forked";
|
|
544
|
+
readonly payload: {
|
|
545
|
+
readonly sourceRunId: string;
|
|
546
|
+
readonly sourceSeq: number;
|
|
547
|
+
};
|
|
548
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
549
|
+
readonly type: "runtime.run.launched";
|
|
550
|
+
readonly payload: {
|
|
551
|
+
readonly runId: string;
|
|
552
|
+
readonly kind: string;
|
|
553
|
+
readonly definitionName: string;
|
|
554
|
+
readonly definitionVersion: string;
|
|
555
|
+
readonly effectId: string;
|
|
556
|
+
readonly close: "terminate" | "wait";
|
|
557
|
+
};
|
|
558
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
559
|
+
readonly type: "runtime.run.started";
|
|
560
|
+
readonly payload: {
|
|
561
|
+
readonly rootThreadId?: string | undefined;
|
|
562
|
+
readonly kind: string;
|
|
563
|
+
readonly definitionName: string;
|
|
564
|
+
readonly definitionVersion: string;
|
|
565
|
+
readonly input: import("effect/Schema").Json;
|
|
566
|
+
readonly requestedThreadId?: string | null | undefined;
|
|
567
|
+
readonly launchedBy?: {
|
|
568
|
+
readonly runId: string;
|
|
569
|
+
readonly threadId: string;
|
|
570
|
+
readonly effectId: string;
|
|
571
|
+
readonly causationId: string;
|
|
572
|
+
readonly causationSeq: number;
|
|
573
|
+
} | undefined;
|
|
574
|
+
readonly attributes?: {
|
|
575
|
+
readonly [x: string]: string;
|
|
576
|
+
} | undefined;
|
|
577
|
+
readonly trace?: {
|
|
578
|
+
readonly traceparent: string;
|
|
579
|
+
readonly tracestate?: string | undefined;
|
|
580
|
+
} | undefined;
|
|
581
|
+
};
|
|
582
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
583
|
+
readonly type: "runtime.signal.received";
|
|
584
|
+
readonly payload: {
|
|
585
|
+
readonly signalType: string;
|
|
586
|
+
};
|
|
587
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
588
|
+
readonly type: "runtime.snapshot.taken";
|
|
589
|
+
readonly payload: {
|
|
590
|
+
readonly seq: number;
|
|
591
|
+
readonly stateHash: string;
|
|
592
|
+
readonly state?: import("effect/Schema").Json | undefined;
|
|
593
|
+
};
|
|
594
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
595
|
+
readonly type: "runtime.thread.cancel.requested";
|
|
596
|
+
readonly payload: {
|
|
597
|
+
readonly threadId: string;
|
|
598
|
+
};
|
|
599
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
600
|
+
readonly type: "runtime.thread.cancelled";
|
|
601
|
+
readonly payload: {
|
|
602
|
+
readonly threadId: string;
|
|
603
|
+
readonly reason?: string | undefined;
|
|
604
|
+
readonly resumeSeq?: number | undefined;
|
|
605
|
+
};
|
|
606
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
607
|
+
readonly type: "runtime.thread.completed";
|
|
608
|
+
readonly payload: {
|
|
609
|
+
readonly threadId: string;
|
|
610
|
+
readonly output: import("effect/Schema").Json;
|
|
611
|
+
};
|
|
612
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
613
|
+
readonly type: "runtime.thread.failed";
|
|
614
|
+
readonly payload: {
|
|
615
|
+
readonly threadId: string;
|
|
616
|
+
readonly error: string;
|
|
617
|
+
};
|
|
618
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
619
|
+
readonly type: "runtime.thread.started";
|
|
620
|
+
readonly payload: {
|
|
621
|
+
readonly threadId: string;
|
|
622
|
+
readonly kind: string;
|
|
623
|
+
readonly definitionName: string;
|
|
624
|
+
readonly definitionVersion: string;
|
|
625
|
+
readonly input: import("effect/Schema").Json;
|
|
626
|
+
readonly parentThreadId: string | null;
|
|
627
|
+
};
|
|
628
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
629
|
+
readonly type: "runtime.timer.fired";
|
|
630
|
+
readonly payload: {
|
|
631
|
+
readonly timerId: string;
|
|
632
|
+
readonly waitId: string;
|
|
633
|
+
};
|
|
634
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
635
|
+
readonly type: "runtime.timer.set";
|
|
636
|
+
readonly payload: {
|
|
637
|
+
readonly timerId: string;
|
|
638
|
+
readonly waitId: string;
|
|
639
|
+
readonly wakeAt: number;
|
|
640
|
+
};
|
|
641
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
642
|
+
readonly type: "runtime.wait.registered";
|
|
643
|
+
readonly payload: {
|
|
644
|
+
readonly waitId: string;
|
|
645
|
+
readonly threadId?: string | undefined;
|
|
646
|
+
readonly on: {
|
|
647
|
+
readonly type: string | readonly string[];
|
|
648
|
+
readonly match?: import("effect/Schema").Json | undefined;
|
|
649
|
+
} | {
|
|
650
|
+
readonly timerAt: number;
|
|
651
|
+
};
|
|
652
|
+
readonly tag?: import("effect/Schema").Json | undefined;
|
|
653
|
+
};
|
|
654
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
655
|
+
readonly type: "runtime.wait.satisfied";
|
|
656
|
+
readonly payload: {
|
|
657
|
+
readonly waitId: string;
|
|
658
|
+
readonly tag?: import("effect/Schema").Json | undefined;
|
|
659
|
+
readonly event: {
|
|
660
|
+
readonly id: string;
|
|
661
|
+
readonly type: string;
|
|
662
|
+
readonly payload: import("effect/Schema").Json;
|
|
663
|
+
};
|
|
664
|
+
};
|
|
665
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
666
|
+
readonly type: "schedule.fired";
|
|
667
|
+
readonly payload: {
|
|
668
|
+
readonly at: number;
|
|
669
|
+
readonly runId: string;
|
|
670
|
+
readonly nextAt: number | null;
|
|
671
|
+
readonly generation: number;
|
|
672
|
+
readonly manual: boolean;
|
|
673
|
+
readonly triggerId?: string | undefined;
|
|
674
|
+
};
|
|
675
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
676
|
+
readonly type: "schedule.paused";
|
|
677
|
+
readonly payload: {};
|
|
678
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
679
|
+
readonly type: "schedule.planned";
|
|
680
|
+
readonly payload: {
|
|
681
|
+
readonly nextAt: number | null;
|
|
682
|
+
readonly generation: number;
|
|
683
|
+
readonly spec: {
|
|
684
|
+
readonly type: "cron";
|
|
685
|
+
readonly expr: string;
|
|
686
|
+
readonly tz?: string | undefined;
|
|
687
|
+
} | {
|
|
688
|
+
readonly type: "every";
|
|
689
|
+
readonly everyMs: number;
|
|
690
|
+
readonly anchor?: number | undefined;
|
|
691
|
+
} | {
|
|
692
|
+
readonly type: "once";
|
|
693
|
+
readonly at: number;
|
|
694
|
+
};
|
|
695
|
+
};
|
|
696
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
697
|
+
readonly type: "schedule.rejected";
|
|
698
|
+
readonly payload: {
|
|
699
|
+
readonly reason: string;
|
|
700
|
+
};
|
|
701
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
702
|
+
readonly type: "schedule.resumed";
|
|
703
|
+
readonly payload: {};
|
|
704
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
705
|
+
readonly type: "schedule.retired";
|
|
706
|
+
readonly payload: {};
|
|
707
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
708
|
+
readonly type: "schedule.skipped";
|
|
709
|
+
readonly payload: {
|
|
710
|
+
readonly at: number;
|
|
711
|
+
readonly reason: string;
|
|
712
|
+
readonly nextAt: number | null;
|
|
713
|
+
readonly generation: number;
|
|
714
|
+
readonly manual: boolean;
|
|
715
|
+
readonly triggerId?: string | undefined;
|
|
716
|
+
};
|
|
717
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
718
|
+
readonly type: "schedule.triggered";
|
|
719
|
+
readonly payload: {};
|
|
720
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
721
|
+
readonly type: "schedule.updated";
|
|
722
|
+
readonly payload: {
|
|
723
|
+
readonly spec?: {
|
|
724
|
+
readonly type: "cron";
|
|
725
|
+
readonly expr: string;
|
|
726
|
+
readonly tz?: string | undefined;
|
|
727
|
+
} | {
|
|
728
|
+
readonly type: "every";
|
|
729
|
+
readonly everyMs: number;
|
|
730
|
+
readonly anchor?: number | undefined;
|
|
731
|
+
} | {
|
|
732
|
+
readonly type: "once";
|
|
733
|
+
readonly at: number;
|
|
734
|
+
} | undefined;
|
|
735
|
+
readonly input?: import("effect/Schema").Json | undefined;
|
|
736
|
+
readonly endAt?: number | null | undefined;
|
|
737
|
+
readonly maxFires?: number | null | undefined;
|
|
738
|
+
readonly definitionName?: string | undefined;
|
|
739
|
+
readonly definitionVersion?: string | undefined;
|
|
740
|
+
};
|
|
741
|
+
})>;
|
|
742
|
+
}, {
|
|
743
|
+
schedule: import("@swirls/looms/core").ThreadDefinition<import("./threads").ScheduleState>;
|
|
744
|
+
}, {
|
|
745
|
+
scheduleStatus: import("@swirls/looms/core").ProjectionDefinition<{
|
|
746
|
+
readonly spec: {
|
|
747
|
+
readonly type: "cron";
|
|
748
|
+
readonly expr: string;
|
|
749
|
+
readonly tz?: string | undefined;
|
|
750
|
+
} | {
|
|
751
|
+
readonly type: "every";
|
|
752
|
+
readonly everyMs: number;
|
|
753
|
+
readonly anchor?: number | undefined;
|
|
754
|
+
} | {
|
|
755
|
+
readonly type: "once";
|
|
756
|
+
readonly at: number;
|
|
757
|
+
} | null;
|
|
758
|
+
readonly status: "cancelled" | "completed" | "failed" | "paused" | "retired" | "running";
|
|
759
|
+
readonly nextAt: number | null;
|
|
760
|
+
readonly fireCount: number;
|
|
761
|
+
readonly recent: readonly {
|
|
762
|
+
readonly at: number;
|
|
763
|
+
readonly runId: string | null;
|
|
764
|
+
readonly outcome: "fired" | "skipped";
|
|
765
|
+
readonly reason?: string | undefined;
|
|
766
|
+
}[];
|
|
767
|
+
}>;
|
|
768
|
+
}, import("effect/Context").Service.Any> & {
|
|
769
|
+
readonly effects: {
|
|
770
|
+
plan: import("@swirls/looms/core").EffectDefinition<{
|
|
771
|
+
readonly spec: {
|
|
772
|
+
readonly type: "cron";
|
|
773
|
+
readonly expr: string;
|
|
774
|
+
readonly tz?: string | undefined;
|
|
775
|
+
} | {
|
|
776
|
+
readonly type: "every";
|
|
777
|
+
readonly everyMs: number;
|
|
778
|
+
readonly anchor?: number | undefined;
|
|
779
|
+
} | {
|
|
780
|
+
readonly type: "once";
|
|
781
|
+
readonly at: number;
|
|
782
|
+
};
|
|
783
|
+
readonly generation: number;
|
|
784
|
+
readonly fireCount: number;
|
|
785
|
+
readonly startAt: number | null;
|
|
786
|
+
readonly endAt: number | null;
|
|
787
|
+
readonly maxFires: number | null;
|
|
788
|
+
readonly misfire: "fire-once" | "skip";
|
|
789
|
+
}, never, (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
790
|
+
readonly type: "runtime.child.close.requested";
|
|
791
|
+
readonly payload: {
|
|
792
|
+
readonly policy: "terminate" | "wait";
|
|
793
|
+
};
|
|
794
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
795
|
+
readonly type: "runtime.child.settled";
|
|
796
|
+
readonly payload: {
|
|
797
|
+
readonly runId: string;
|
|
798
|
+
readonly status: "cancelled" | "completed" | "failed";
|
|
799
|
+
readonly output: import("effect/Schema").Json;
|
|
800
|
+
readonly error: string | null;
|
|
801
|
+
};
|
|
802
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
803
|
+
readonly type: "runtime.effect.ambiguous";
|
|
804
|
+
readonly payload: {
|
|
805
|
+
readonly effectId: string;
|
|
806
|
+
readonly attempt: number;
|
|
807
|
+
readonly error: string;
|
|
808
|
+
};
|
|
809
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
810
|
+
readonly type: "runtime.effect.attempt.started";
|
|
811
|
+
readonly payload: {
|
|
812
|
+
readonly effectId: string;
|
|
813
|
+
readonly attempt: number;
|
|
814
|
+
};
|
|
815
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
816
|
+
readonly type: "runtime.effect.cancel.requested";
|
|
817
|
+
readonly payload: {
|
|
818
|
+
readonly effectId: string;
|
|
819
|
+
readonly attempt: number;
|
|
820
|
+
readonly deadlineAt: number | null;
|
|
821
|
+
};
|
|
822
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
823
|
+
readonly type: "runtime.effect.cancelled";
|
|
824
|
+
readonly payload: {
|
|
825
|
+
readonly effectId: string;
|
|
826
|
+
readonly attempt: number;
|
|
827
|
+
};
|
|
828
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
829
|
+
readonly type: "runtime.effect.completed";
|
|
830
|
+
readonly payload: {
|
|
831
|
+
readonly effectId: string;
|
|
832
|
+
readonly attempt: number;
|
|
833
|
+
};
|
|
834
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
835
|
+
readonly type: "runtime.effect.dispatched";
|
|
836
|
+
readonly payload: {
|
|
837
|
+
readonly effectId: string;
|
|
838
|
+
readonly attempt: number;
|
|
839
|
+
readonly deadlineAt: number | null;
|
|
840
|
+
};
|
|
841
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
842
|
+
readonly type: "runtime.effect.failed";
|
|
843
|
+
readonly payload: {
|
|
844
|
+
readonly effectId: string;
|
|
845
|
+
readonly error: string;
|
|
846
|
+
readonly nonRetryable?: boolean | undefined;
|
|
847
|
+
readonly retryAfterMs?: number | undefined;
|
|
848
|
+
};
|
|
849
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
850
|
+
readonly type: "runtime.effect.heartbeat";
|
|
851
|
+
readonly payload: {
|
|
852
|
+
readonly effectId: string;
|
|
853
|
+
readonly attempt: number;
|
|
854
|
+
readonly heartbeatAt: number;
|
|
855
|
+
readonly deadlineAt: number | null;
|
|
856
|
+
readonly details?: import("effect/Schema").Json | undefined;
|
|
857
|
+
};
|
|
858
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
859
|
+
readonly type: "runtime.effect.queued";
|
|
860
|
+
readonly payload: {
|
|
861
|
+
readonly effectId: string;
|
|
862
|
+
readonly attempt: number;
|
|
863
|
+
readonly deadlineAt: number | null;
|
|
864
|
+
};
|
|
865
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
866
|
+
readonly type: "runtime.effect.retry.scheduled";
|
|
867
|
+
readonly payload: {
|
|
868
|
+
readonly effectId: string;
|
|
869
|
+
readonly attempt: number;
|
|
870
|
+
readonly nextAttemptAt: number;
|
|
871
|
+
readonly error: string;
|
|
872
|
+
};
|
|
873
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
874
|
+
readonly type: "runtime.effect.timed_out";
|
|
875
|
+
readonly payload: {
|
|
876
|
+
readonly effectId: string;
|
|
877
|
+
readonly attempt: number;
|
|
878
|
+
readonly timeout: string;
|
|
879
|
+
};
|
|
880
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
881
|
+
readonly type: "runtime.effect.worker.started";
|
|
882
|
+
readonly payload: {
|
|
883
|
+
readonly effectId: string;
|
|
884
|
+
readonly attempt: number;
|
|
885
|
+
readonly deadlineAt: number | null;
|
|
886
|
+
};
|
|
887
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
888
|
+
readonly type: "runtime.fork.elided";
|
|
889
|
+
readonly payload: {
|
|
890
|
+
readonly type: string;
|
|
891
|
+
};
|
|
892
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
893
|
+
readonly type: "runtime.run.cancelled";
|
|
894
|
+
readonly payload: {
|
|
895
|
+
readonly reason?: string | undefined;
|
|
896
|
+
};
|
|
897
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
898
|
+
readonly type: "runtime.run.completed";
|
|
899
|
+
readonly payload: {
|
|
900
|
+
readonly output: import("effect/Schema").Json;
|
|
901
|
+
readonly error: string | null;
|
|
902
|
+
};
|
|
903
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
904
|
+
readonly type: "runtime.run.forked";
|
|
905
|
+
readonly payload: {
|
|
906
|
+
readonly sourceRunId: string;
|
|
907
|
+
readonly sourceSeq: number;
|
|
908
|
+
};
|
|
909
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
910
|
+
readonly type: "runtime.run.launched";
|
|
911
|
+
readonly payload: {
|
|
912
|
+
readonly runId: string;
|
|
913
|
+
readonly kind: string;
|
|
914
|
+
readonly definitionName: string;
|
|
915
|
+
readonly definitionVersion: string;
|
|
916
|
+
readonly effectId: string;
|
|
917
|
+
readonly close: "terminate" | "wait";
|
|
918
|
+
};
|
|
919
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
920
|
+
readonly type: "runtime.run.started";
|
|
921
|
+
readonly payload: {
|
|
922
|
+
readonly rootThreadId?: string | undefined;
|
|
923
|
+
readonly kind: string;
|
|
924
|
+
readonly definitionName: string;
|
|
925
|
+
readonly definitionVersion: string;
|
|
926
|
+
readonly input: import("effect/Schema").Json;
|
|
927
|
+
readonly requestedThreadId?: string | null | undefined;
|
|
928
|
+
readonly launchedBy?: {
|
|
929
|
+
readonly runId: string;
|
|
930
|
+
readonly threadId: string;
|
|
931
|
+
readonly effectId: string;
|
|
932
|
+
readonly causationId: string;
|
|
933
|
+
readonly causationSeq: number;
|
|
934
|
+
} | undefined;
|
|
935
|
+
readonly attributes?: {
|
|
936
|
+
readonly [x: string]: string;
|
|
937
|
+
} | undefined;
|
|
938
|
+
readonly trace?: {
|
|
939
|
+
readonly traceparent: string;
|
|
940
|
+
readonly tracestate?: string | undefined;
|
|
941
|
+
} | undefined;
|
|
942
|
+
};
|
|
943
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
944
|
+
readonly type: "runtime.signal.received";
|
|
945
|
+
readonly payload: {
|
|
946
|
+
readonly signalType: string;
|
|
947
|
+
};
|
|
948
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
949
|
+
readonly type: "runtime.snapshot.taken";
|
|
950
|
+
readonly payload: {
|
|
951
|
+
readonly seq: number;
|
|
952
|
+
readonly stateHash: string;
|
|
953
|
+
readonly state?: import("effect/Schema").Json | undefined;
|
|
954
|
+
};
|
|
955
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
956
|
+
readonly type: "runtime.thread.cancel.requested";
|
|
957
|
+
readonly payload: {
|
|
958
|
+
readonly threadId: string;
|
|
959
|
+
};
|
|
960
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
961
|
+
readonly type: "runtime.thread.cancelled";
|
|
962
|
+
readonly payload: {
|
|
963
|
+
readonly threadId: string;
|
|
964
|
+
readonly reason?: string | undefined;
|
|
965
|
+
readonly resumeSeq?: number | undefined;
|
|
966
|
+
};
|
|
967
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
968
|
+
readonly type: "runtime.thread.completed";
|
|
969
|
+
readonly payload: {
|
|
970
|
+
readonly threadId: string;
|
|
971
|
+
readonly output: import("effect/Schema").Json;
|
|
972
|
+
};
|
|
973
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
974
|
+
readonly type: "runtime.thread.failed";
|
|
975
|
+
readonly payload: {
|
|
976
|
+
readonly threadId: string;
|
|
977
|
+
readonly error: string;
|
|
978
|
+
};
|
|
979
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
980
|
+
readonly type: "runtime.thread.started";
|
|
981
|
+
readonly payload: {
|
|
982
|
+
readonly threadId: string;
|
|
983
|
+
readonly kind: string;
|
|
984
|
+
readonly definitionName: string;
|
|
985
|
+
readonly definitionVersion: string;
|
|
986
|
+
readonly input: import("effect/Schema").Json;
|
|
987
|
+
readonly parentThreadId: string | null;
|
|
988
|
+
};
|
|
989
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
990
|
+
readonly type: "runtime.timer.fired";
|
|
991
|
+
readonly payload: {
|
|
992
|
+
readonly timerId: string;
|
|
993
|
+
readonly waitId: string;
|
|
994
|
+
};
|
|
995
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
996
|
+
readonly type: "runtime.timer.set";
|
|
997
|
+
readonly payload: {
|
|
998
|
+
readonly timerId: string;
|
|
999
|
+
readonly waitId: string;
|
|
1000
|
+
readonly wakeAt: number;
|
|
1001
|
+
};
|
|
1002
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1003
|
+
readonly type: "runtime.wait.registered";
|
|
1004
|
+
readonly payload: {
|
|
1005
|
+
readonly waitId: string;
|
|
1006
|
+
readonly threadId?: string | undefined;
|
|
1007
|
+
readonly on: {
|
|
1008
|
+
readonly type: string | readonly string[];
|
|
1009
|
+
readonly match?: import("effect/Schema").Json | undefined;
|
|
1010
|
+
} | {
|
|
1011
|
+
readonly timerAt: number;
|
|
1012
|
+
};
|
|
1013
|
+
readonly tag?: import("effect/Schema").Json | undefined;
|
|
1014
|
+
};
|
|
1015
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1016
|
+
readonly type: "runtime.wait.satisfied";
|
|
1017
|
+
readonly payload: {
|
|
1018
|
+
readonly waitId: string;
|
|
1019
|
+
readonly tag?: import("effect/Schema").Json | undefined;
|
|
1020
|
+
readonly event: {
|
|
1021
|
+
readonly id: string;
|
|
1022
|
+
readonly type: string;
|
|
1023
|
+
readonly payload: import("effect/Schema").Json;
|
|
1024
|
+
};
|
|
1025
|
+
};
|
|
1026
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1027
|
+
readonly type: "schedule.fired";
|
|
1028
|
+
readonly payload: {
|
|
1029
|
+
readonly at: number;
|
|
1030
|
+
readonly runId: string;
|
|
1031
|
+
readonly nextAt: number | null;
|
|
1032
|
+
readonly generation: number;
|
|
1033
|
+
readonly manual: boolean;
|
|
1034
|
+
readonly triggerId?: string | undefined;
|
|
1035
|
+
};
|
|
1036
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1037
|
+
readonly type: "schedule.paused";
|
|
1038
|
+
readonly payload: {};
|
|
1039
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1040
|
+
readonly type: "schedule.planned";
|
|
1041
|
+
readonly payload: {
|
|
1042
|
+
readonly nextAt: number | null;
|
|
1043
|
+
readonly generation: number;
|
|
1044
|
+
readonly spec: {
|
|
1045
|
+
readonly type: "cron";
|
|
1046
|
+
readonly expr: string;
|
|
1047
|
+
readonly tz?: string | undefined;
|
|
1048
|
+
} | {
|
|
1049
|
+
readonly type: "every";
|
|
1050
|
+
readonly everyMs: number;
|
|
1051
|
+
readonly anchor?: number | undefined;
|
|
1052
|
+
} | {
|
|
1053
|
+
readonly type: "once";
|
|
1054
|
+
readonly at: number;
|
|
1055
|
+
};
|
|
1056
|
+
};
|
|
1057
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1058
|
+
readonly type: "schedule.rejected";
|
|
1059
|
+
readonly payload: {
|
|
1060
|
+
readonly reason: string;
|
|
1061
|
+
};
|
|
1062
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1063
|
+
readonly type: "schedule.resumed";
|
|
1064
|
+
readonly payload: {};
|
|
1065
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1066
|
+
readonly type: "schedule.retired";
|
|
1067
|
+
readonly payload: {};
|
|
1068
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1069
|
+
readonly type: "schedule.skipped";
|
|
1070
|
+
readonly payload: {
|
|
1071
|
+
readonly at: number;
|
|
1072
|
+
readonly reason: string;
|
|
1073
|
+
readonly nextAt: number | null;
|
|
1074
|
+
readonly generation: number;
|
|
1075
|
+
readonly manual: boolean;
|
|
1076
|
+
readonly triggerId?: string | undefined;
|
|
1077
|
+
};
|
|
1078
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1079
|
+
readonly type: "schedule.triggered";
|
|
1080
|
+
readonly payload: {};
|
|
1081
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1082
|
+
readonly type: "schedule.updated";
|
|
1083
|
+
readonly payload: {
|
|
1084
|
+
readonly spec?: {
|
|
1085
|
+
readonly type: "cron";
|
|
1086
|
+
readonly expr: string;
|
|
1087
|
+
readonly tz?: string | undefined;
|
|
1088
|
+
} | {
|
|
1089
|
+
readonly type: "every";
|
|
1090
|
+
readonly everyMs: number;
|
|
1091
|
+
readonly anchor?: number | undefined;
|
|
1092
|
+
} | {
|
|
1093
|
+
readonly type: "once";
|
|
1094
|
+
readonly at: number;
|
|
1095
|
+
} | undefined;
|
|
1096
|
+
readonly input?: import("effect/Schema").Json | undefined;
|
|
1097
|
+
readonly endAt?: number | null | undefined;
|
|
1098
|
+
readonly maxFires?: number | null | undefined;
|
|
1099
|
+
readonly definitionName?: string | undefined;
|
|
1100
|
+
readonly definitionVersion?: string | undefined;
|
|
1101
|
+
};
|
|
1102
|
+
})>;
|
|
1103
|
+
fire: import("@swirls/looms/core").EffectDefinition<{
|
|
1104
|
+
readonly definitionName: string;
|
|
1105
|
+
readonly definitionVersion: string;
|
|
1106
|
+
readonly spec: {
|
|
1107
|
+
readonly type: "cron";
|
|
1108
|
+
readonly expr: string;
|
|
1109
|
+
readonly tz?: string | undefined;
|
|
1110
|
+
} | {
|
|
1111
|
+
readonly type: "every";
|
|
1112
|
+
readonly everyMs: number;
|
|
1113
|
+
readonly anchor?: number | undefined;
|
|
1114
|
+
} | {
|
|
1115
|
+
readonly type: "once";
|
|
1116
|
+
readonly at: number;
|
|
1117
|
+
};
|
|
1118
|
+
readonly generation: number;
|
|
1119
|
+
readonly at: number;
|
|
1120
|
+
readonly nextAt: number | null;
|
|
1121
|
+
readonly misfire: "fire-once" | "skip";
|
|
1122
|
+
readonly overlap: "allow" | "skip";
|
|
1123
|
+
readonly storedInput: import("effect/Schema").Json;
|
|
1124
|
+
readonly fireCount: number;
|
|
1125
|
+
readonly startAt: number | null;
|
|
1126
|
+
readonly endAt: number | null;
|
|
1127
|
+
readonly maxFires: number | null;
|
|
1128
|
+
readonly lastFiredRunId: string | null;
|
|
1129
|
+
readonly manual: boolean;
|
|
1130
|
+
readonly triggerId?: string | undefined;
|
|
1131
|
+
}, import("@swirls/looms/core").RunLauncherTag | import("./definitions-store").ScheduleDefinitionsTag, (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1132
|
+
readonly type: "runtime.child.close.requested";
|
|
1133
|
+
readonly payload: {
|
|
1134
|
+
readonly policy: "terminate" | "wait";
|
|
1135
|
+
};
|
|
1136
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1137
|
+
readonly type: "runtime.child.settled";
|
|
1138
|
+
readonly payload: {
|
|
1139
|
+
readonly runId: string;
|
|
1140
|
+
readonly status: "cancelled" | "completed" | "failed";
|
|
1141
|
+
readonly output: import("effect/Schema").Json;
|
|
1142
|
+
readonly error: string | null;
|
|
1143
|
+
};
|
|
1144
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1145
|
+
readonly type: "runtime.effect.ambiguous";
|
|
1146
|
+
readonly payload: {
|
|
1147
|
+
readonly effectId: string;
|
|
1148
|
+
readonly attempt: number;
|
|
1149
|
+
readonly error: string;
|
|
1150
|
+
};
|
|
1151
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1152
|
+
readonly type: "runtime.effect.attempt.started";
|
|
1153
|
+
readonly payload: {
|
|
1154
|
+
readonly effectId: string;
|
|
1155
|
+
readonly attempt: number;
|
|
1156
|
+
};
|
|
1157
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1158
|
+
readonly type: "runtime.effect.cancel.requested";
|
|
1159
|
+
readonly payload: {
|
|
1160
|
+
readonly effectId: string;
|
|
1161
|
+
readonly attempt: number;
|
|
1162
|
+
readonly deadlineAt: number | null;
|
|
1163
|
+
};
|
|
1164
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1165
|
+
readonly type: "runtime.effect.cancelled";
|
|
1166
|
+
readonly payload: {
|
|
1167
|
+
readonly effectId: string;
|
|
1168
|
+
readonly attempt: number;
|
|
1169
|
+
};
|
|
1170
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1171
|
+
readonly type: "runtime.effect.completed";
|
|
1172
|
+
readonly payload: {
|
|
1173
|
+
readonly effectId: string;
|
|
1174
|
+
readonly attempt: number;
|
|
1175
|
+
};
|
|
1176
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1177
|
+
readonly type: "runtime.effect.dispatched";
|
|
1178
|
+
readonly payload: {
|
|
1179
|
+
readonly effectId: string;
|
|
1180
|
+
readonly attempt: number;
|
|
1181
|
+
readonly deadlineAt: number | null;
|
|
1182
|
+
};
|
|
1183
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1184
|
+
readonly type: "runtime.effect.failed";
|
|
1185
|
+
readonly payload: {
|
|
1186
|
+
readonly effectId: string;
|
|
1187
|
+
readonly error: string;
|
|
1188
|
+
readonly nonRetryable?: boolean | undefined;
|
|
1189
|
+
readonly retryAfterMs?: number | undefined;
|
|
1190
|
+
};
|
|
1191
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1192
|
+
readonly type: "runtime.effect.heartbeat";
|
|
1193
|
+
readonly payload: {
|
|
1194
|
+
readonly effectId: string;
|
|
1195
|
+
readonly attempt: number;
|
|
1196
|
+
readonly heartbeatAt: number;
|
|
1197
|
+
readonly deadlineAt: number | null;
|
|
1198
|
+
readonly details?: import("effect/Schema").Json | undefined;
|
|
1199
|
+
};
|
|
1200
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1201
|
+
readonly type: "runtime.effect.queued";
|
|
1202
|
+
readonly payload: {
|
|
1203
|
+
readonly effectId: string;
|
|
1204
|
+
readonly attempt: number;
|
|
1205
|
+
readonly deadlineAt: number | null;
|
|
1206
|
+
};
|
|
1207
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1208
|
+
readonly type: "runtime.effect.retry.scheduled";
|
|
1209
|
+
readonly payload: {
|
|
1210
|
+
readonly effectId: string;
|
|
1211
|
+
readonly attempt: number;
|
|
1212
|
+
readonly nextAttemptAt: number;
|
|
1213
|
+
readonly error: string;
|
|
1214
|
+
};
|
|
1215
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1216
|
+
readonly type: "runtime.effect.timed_out";
|
|
1217
|
+
readonly payload: {
|
|
1218
|
+
readonly effectId: string;
|
|
1219
|
+
readonly attempt: number;
|
|
1220
|
+
readonly timeout: string;
|
|
1221
|
+
};
|
|
1222
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1223
|
+
readonly type: "runtime.effect.worker.started";
|
|
1224
|
+
readonly payload: {
|
|
1225
|
+
readonly effectId: string;
|
|
1226
|
+
readonly attempt: number;
|
|
1227
|
+
readonly deadlineAt: number | null;
|
|
1228
|
+
};
|
|
1229
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1230
|
+
readonly type: "runtime.fork.elided";
|
|
1231
|
+
readonly payload: {
|
|
1232
|
+
readonly type: string;
|
|
1233
|
+
};
|
|
1234
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1235
|
+
readonly type: "runtime.run.cancelled";
|
|
1236
|
+
readonly payload: {
|
|
1237
|
+
readonly reason?: string | undefined;
|
|
1238
|
+
};
|
|
1239
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1240
|
+
readonly type: "runtime.run.completed";
|
|
1241
|
+
readonly payload: {
|
|
1242
|
+
readonly output: import("effect/Schema").Json;
|
|
1243
|
+
readonly error: string | null;
|
|
1244
|
+
};
|
|
1245
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1246
|
+
readonly type: "runtime.run.forked";
|
|
1247
|
+
readonly payload: {
|
|
1248
|
+
readonly sourceRunId: string;
|
|
1249
|
+
readonly sourceSeq: number;
|
|
1250
|
+
};
|
|
1251
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1252
|
+
readonly type: "runtime.run.launched";
|
|
1253
|
+
readonly payload: {
|
|
1254
|
+
readonly runId: string;
|
|
1255
|
+
readonly kind: string;
|
|
1256
|
+
readonly definitionName: string;
|
|
1257
|
+
readonly definitionVersion: string;
|
|
1258
|
+
readonly effectId: string;
|
|
1259
|
+
readonly close: "terminate" | "wait";
|
|
1260
|
+
};
|
|
1261
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1262
|
+
readonly type: "runtime.run.started";
|
|
1263
|
+
readonly payload: {
|
|
1264
|
+
readonly rootThreadId?: string | undefined;
|
|
1265
|
+
readonly kind: string;
|
|
1266
|
+
readonly definitionName: string;
|
|
1267
|
+
readonly definitionVersion: string;
|
|
1268
|
+
readonly input: import("effect/Schema").Json;
|
|
1269
|
+
readonly requestedThreadId?: string | null | undefined;
|
|
1270
|
+
readonly launchedBy?: {
|
|
1271
|
+
readonly runId: string;
|
|
1272
|
+
readonly threadId: string;
|
|
1273
|
+
readonly effectId: string;
|
|
1274
|
+
readonly causationId: string;
|
|
1275
|
+
readonly causationSeq: number;
|
|
1276
|
+
} | undefined;
|
|
1277
|
+
readonly attributes?: {
|
|
1278
|
+
readonly [x: string]: string;
|
|
1279
|
+
} | undefined;
|
|
1280
|
+
readonly trace?: {
|
|
1281
|
+
readonly traceparent: string;
|
|
1282
|
+
readonly tracestate?: string | undefined;
|
|
1283
|
+
} | undefined;
|
|
1284
|
+
};
|
|
1285
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1286
|
+
readonly type: "runtime.signal.received";
|
|
1287
|
+
readonly payload: {
|
|
1288
|
+
readonly signalType: string;
|
|
1289
|
+
};
|
|
1290
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1291
|
+
readonly type: "runtime.snapshot.taken";
|
|
1292
|
+
readonly payload: {
|
|
1293
|
+
readonly seq: number;
|
|
1294
|
+
readonly stateHash: string;
|
|
1295
|
+
readonly state?: import("effect/Schema").Json | undefined;
|
|
1296
|
+
};
|
|
1297
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1298
|
+
readonly type: "runtime.thread.cancel.requested";
|
|
1299
|
+
readonly payload: {
|
|
1300
|
+
readonly threadId: string;
|
|
1301
|
+
};
|
|
1302
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1303
|
+
readonly type: "runtime.thread.cancelled";
|
|
1304
|
+
readonly payload: {
|
|
1305
|
+
readonly threadId: string;
|
|
1306
|
+
readonly reason?: string | undefined;
|
|
1307
|
+
readonly resumeSeq?: number | undefined;
|
|
1308
|
+
};
|
|
1309
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1310
|
+
readonly type: "runtime.thread.completed";
|
|
1311
|
+
readonly payload: {
|
|
1312
|
+
readonly threadId: string;
|
|
1313
|
+
readonly output: import("effect/Schema").Json;
|
|
1314
|
+
};
|
|
1315
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1316
|
+
readonly type: "runtime.thread.failed";
|
|
1317
|
+
readonly payload: {
|
|
1318
|
+
readonly threadId: string;
|
|
1319
|
+
readonly error: string;
|
|
1320
|
+
};
|
|
1321
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1322
|
+
readonly type: "runtime.thread.started";
|
|
1323
|
+
readonly payload: {
|
|
1324
|
+
readonly threadId: string;
|
|
1325
|
+
readonly kind: string;
|
|
1326
|
+
readonly definitionName: string;
|
|
1327
|
+
readonly definitionVersion: string;
|
|
1328
|
+
readonly input: import("effect/Schema").Json;
|
|
1329
|
+
readonly parentThreadId: string | null;
|
|
1330
|
+
};
|
|
1331
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1332
|
+
readonly type: "runtime.timer.fired";
|
|
1333
|
+
readonly payload: {
|
|
1334
|
+
readonly timerId: string;
|
|
1335
|
+
readonly waitId: string;
|
|
1336
|
+
};
|
|
1337
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1338
|
+
readonly type: "runtime.timer.set";
|
|
1339
|
+
readonly payload: {
|
|
1340
|
+
readonly timerId: string;
|
|
1341
|
+
readonly waitId: string;
|
|
1342
|
+
readonly wakeAt: number;
|
|
1343
|
+
};
|
|
1344
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1345
|
+
readonly type: "runtime.wait.registered";
|
|
1346
|
+
readonly payload: {
|
|
1347
|
+
readonly waitId: string;
|
|
1348
|
+
readonly threadId?: string | undefined;
|
|
1349
|
+
readonly on: {
|
|
1350
|
+
readonly type: string | readonly string[];
|
|
1351
|
+
readonly match?: import("effect/Schema").Json | undefined;
|
|
1352
|
+
} | {
|
|
1353
|
+
readonly timerAt: number;
|
|
1354
|
+
};
|
|
1355
|
+
readonly tag?: import("effect/Schema").Json | undefined;
|
|
1356
|
+
};
|
|
1357
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1358
|
+
readonly type: "runtime.wait.satisfied";
|
|
1359
|
+
readonly payload: {
|
|
1360
|
+
readonly waitId: string;
|
|
1361
|
+
readonly tag?: import("effect/Schema").Json | undefined;
|
|
1362
|
+
readonly event: {
|
|
1363
|
+
readonly id: string;
|
|
1364
|
+
readonly type: string;
|
|
1365
|
+
readonly payload: import("effect/Schema").Json;
|
|
1366
|
+
};
|
|
1367
|
+
};
|
|
1368
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1369
|
+
readonly type: "schedule.fired";
|
|
1370
|
+
readonly payload: {
|
|
1371
|
+
readonly at: number;
|
|
1372
|
+
readonly runId: string;
|
|
1373
|
+
readonly nextAt: number | null;
|
|
1374
|
+
readonly generation: number;
|
|
1375
|
+
readonly manual: boolean;
|
|
1376
|
+
readonly triggerId?: string | undefined;
|
|
1377
|
+
};
|
|
1378
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1379
|
+
readonly type: "schedule.paused";
|
|
1380
|
+
readonly payload: {};
|
|
1381
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1382
|
+
readonly type: "schedule.planned";
|
|
1383
|
+
readonly payload: {
|
|
1384
|
+
readonly nextAt: number | null;
|
|
1385
|
+
readonly generation: number;
|
|
1386
|
+
readonly spec: {
|
|
1387
|
+
readonly type: "cron";
|
|
1388
|
+
readonly expr: string;
|
|
1389
|
+
readonly tz?: string | undefined;
|
|
1390
|
+
} | {
|
|
1391
|
+
readonly type: "every";
|
|
1392
|
+
readonly everyMs: number;
|
|
1393
|
+
readonly anchor?: number | undefined;
|
|
1394
|
+
} | {
|
|
1395
|
+
readonly type: "once";
|
|
1396
|
+
readonly at: number;
|
|
1397
|
+
};
|
|
1398
|
+
};
|
|
1399
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1400
|
+
readonly type: "schedule.rejected";
|
|
1401
|
+
readonly payload: {
|
|
1402
|
+
readonly reason: string;
|
|
1403
|
+
};
|
|
1404
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1405
|
+
readonly type: "schedule.resumed";
|
|
1406
|
+
readonly payload: {};
|
|
1407
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1408
|
+
readonly type: "schedule.retired";
|
|
1409
|
+
readonly payload: {};
|
|
1410
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1411
|
+
readonly type: "schedule.skipped";
|
|
1412
|
+
readonly payload: {
|
|
1413
|
+
readonly at: number;
|
|
1414
|
+
readonly reason: string;
|
|
1415
|
+
readonly nextAt: number | null;
|
|
1416
|
+
readonly generation: number;
|
|
1417
|
+
readonly manual: boolean;
|
|
1418
|
+
readonly triggerId?: string | undefined;
|
|
1419
|
+
};
|
|
1420
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1421
|
+
readonly type: "schedule.triggered";
|
|
1422
|
+
readonly payload: {};
|
|
1423
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1424
|
+
readonly type: "schedule.updated";
|
|
1425
|
+
readonly payload: {
|
|
1426
|
+
readonly spec?: {
|
|
1427
|
+
readonly type: "cron";
|
|
1428
|
+
readonly expr: string;
|
|
1429
|
+
readonly tz?: string | undefined;
|
|
1430
|
+
} | {
|
|
1431
|
+
readonly type: "every";
|
|
1432
|
+
readonly everyMs: number;
|
|
1433
|
+
readonly anchor?: number | undefined;
|
|
1434
|
+
} | {
|
|
1435
|
+
readonly type: "once";
|
|
1436
|
+
readonly at: number;
|
|
1437
|
+
} | undefined;
|
|
1438
|
+
readonly input?: import("effect/Schema").Json | undefined;
|
|
1439
|
+
readonly endAt?: number | null | undefined;
|
|
1440
|
+
readonly maxFires?: number | null | undefined;
|
|
1441
|
+
readonly definitionName?: string | undefined;
|
|
1442
|
+
readonly definitionVersion?: string | undefined;
|
|
1443
|
+
};
|
|
1444
|
+
})>;
|
|
1445
|
+
};
|
|
1446
|
+
readonly threads: {
|
|
1447
|
+
schedule: import("@swirls/looms/core").ThreadDefinition<import("./threads").ScheduleState>;
|
|
1448
|
+
};
|
|
1449
|
+
readonly projections: {
|
|
1450
|
+
scheduleStatus: import("@swirls/looms/core").ProjectionDefinition<{
|
|
1451
|
+
readonly spec: {
|
|
1452
|
+
readonly type: "cron";
|
|
1453
|
+
readonly expr: string;
|
|
1454
|
+
readonly tz?: string | undefined;
|
|
1455
|
+
} | {
|
|
1456
|
+
readonly type: "every";
|
|
1457
|
+
readonly everyMs: number;
|
|
1458
|
+
readonly anchor?: number | undefined;
|
|
1459
|
+
} | {
|
|
1460
|
+
readonly type: "once";
|
|
1461
|
+
readonly at: number;
|
|
1462
|
+
} | null;
|
|
1463
|
+
readonly status: "cancelled" | "completed" | "failed" | "paused" | "retired" | "running";
|
|
1464
|
+
readonly nextAt: number | null;
|
|
1465
|
+
readonly fireCount: number;
|
|
1466
|
+
readonly recent: readonly {
|
|
1467
|
+
readonly at: number;
|
|
1468
|
+
readonly runId: string | null;
|
|
1469
|
+
readonly outcome: "fired" | "skipped";
|
|
1470
|
+
readonly reason?: string | undefined;
|
|
1471
|
+
}[];
|
|
1472
|
+
}>;
|
|
1473
|
+
};
|
|
1474
|
+
};
|