awaitly 1.31.1 → 1.32.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.
Files changed (169) hide show
  1. package/dist/adapters.cjs +2 -2
  2. package/dist/adapters.cjs.map +1 -1
  3. package/dist/adapters.d.cts +3 -1
  4. package/dist/adapters.d.ts +3 -1
  5. package/dist/adapters.js +2 -2
  6. package/dist/adapters.js.map +1 -1
  7. package/dist/batch.cjs +2 -2
  8. package/dist/batch.cjs.map +1 -1
  9. package/dist/batch.d.cts +3 -1
  10. package/dist/batch.d.ts +3 -1
  11. package/dist/batch.js +2 -2
  12. package/dist/batch.js.map +1 -1
  13. package/dist/circuit-breaker.cjs +2 -2
  14. package/dist/circuit-breaker.cjs.map +1 -1
  15. package/dist/circuit-breaker.d.cts +3 -1
  16. package/dist/circuit-breaker.d.ts +3 -1
  17. package/dist/circuit-breaker.js +2 -2
  18. package/dist/circuit-breaker.js.map +1 -1
  19. package/dist/conditional.d.cts +3 -1
  20. package/dist/conditional.d.ts +3 -1
  21. package/dist/core.cjs +2 -2
  22. package/dist/core.cjs.map +1 -1
  23. package/dist/core.d.cts +2 -1
  24. package/dist/core.d.ts +2 -1
  25. package/dist/core.js +2 -2
  26. package/dist/core.js.map +1 -1
  27. package/dist/diagnostics.cjs +3 -3
  28. package/dist/diagnostics.cjs.map +1 -1
  29. package/dist/diagnostics.d.cts +3 -1
  30. package/dist/diagnostics.d.ts +3 -1
  31. package/dist/diagnostics.js +3 -3
  32. package/dist/diagnostics.js.map +1 -1
  33. package/dist/durable.cjs +3 -3
  34. package/dist/durable.cjs.map +1 -1
  35. package/dist/durable.d.cts +8 -361
  36. package/dist/durable.d.ts +8 -361
  37. package/dist/durable.js +3 -3
  38. package/dist/durable.js.map +1 -1
  39. package/dist/engine.cjs +11 -0
  40. package/dist/engine.cjs.map +1 -0
  41. package/dist/engine.d.cts +114 -0
  42. package/dist/engine.d.ts +114 -0
  43. package/dist/engine.js +11 -0
  44. package/dist/engine.js.map +1 -0
  45. package/dist/errors-entry-CMH73Eym.d.cts +339 -0
  46. package/dist/errors-entry-DOt5UUl4.d.ts +339 -0
  47. package/dist/errors.cjs +1 -1
  48. package/dist/errors.cjs.map +1 -1
  49. package/dist/errors.d.cts +2 -318
  50. package/dist/errors.d.ts +2 -318
  51. package/dist/errors.js +1 -1
  52. package/dist/errors.js.map +1 -1
  53. package/dist/fetch.cjs +2 -2
  54. package/dist/fetch.cjs.map +1 -1
  55. package/dist/fetch.d.cts +3 -1
  56. package/dist/fetch.d.ts +3 -1
  57. package/dist/fetch.js +2 -2
  58. package/dist/fetch.js.map +1 -1
  59. package/dist/functional.cjs +1 -1
  60. package/dist/functional.cjs.map +1 -1
  61. package/dist/functional.d.cts +2 -0
  62. package/dist/functional.d.ts +2 -0
  63. package/dist/functional.js +1 -1
  64. package/dist/functional.js.map +1 -1
  65. package/dist/{guards-PU64_GKv.d.cts → guards-B79mP5Q8.d.cts} +3 -3
  66. package/dist/{guards-B5lgMJq0.d.ts → guards-BUq6NJCM.d.ts} +3 -3
  67. package/dist/{hitl-Dyiy0R1v.d.cts → hitl-BCqkMAHw.d.cts} +2 -2
  68. package/dist/{hitl-BjeSm1sJ.d.ts → hitl-BZtPx0aU.d.ts} +2 -2
  69. package/dist/hitl.cjs +2 -2
  70. package/dist/hitl.cjs.map +1 -1
  71. package/dist/hitl.d.cts +9 -6
  72. package/dist/hitl.d.ts +9 -6
  73. package/dist/hitl.js +2 -2
  74. package/dist/hitl.js.map +1 -1
  75. package/dist/index-BVUAOWGG.d.ts +417 -0
  76. package/dist/index-CQnpmUcC.d.cts +417 -0
  77. package/dist/index.cjs +1 -1
  78. package/dist/index.cjs.map +1 -1
  79. package/dist/index.d.cts +4 -3
  80. package/dist/index.d.ts +4 -3
  81. package/dist/index.js +1 -1
  82. package/dist/index.js.map +1 -1
  83. package/dist/otel.d.cts +3 -1
  84. package/dist/otel.d.ts +3 -1
  85. package/dist/{persistence-entry-B3ukwbb5.d.ts → persistence-entry-ClFhxd2Q.d.ts} +11 -5
  86. package/dist/{persistence-entry-CgVzswbg.d.cts → persistence-entry-jflY61az.d.cts} +11 -5
  87. package/dist/persistence.d.cts +6 -3
  88. package/dist/persistence.d.ts +6 -3
  89. package/dist/policies.d.cts +3 -1
  90. package/dist/policies.d.ts +3 -1
  91. package/dist/ratelimit.cjs +2 -2
  92. package/dist/ratelimit.cjs.map +1 -1
  93. package/dist/ratelimit.d.cts +3 -1
  94. package/dist/ratelimit.d.ts +3 -1
  95. package/dist/ratelimit.js +2 -2
  96. package/dist/ratelimit.js.map +1 -1
  97. package/dist/reliability.cjs +2 -2
  98. package/dist/reliability.cjs.map +1 -1
  99. package/dist/reliability.d.cts +3 -1
  100. package/dist/reliability.d.ts +3 -1
  101. package/dist/reliability.js +2 -2
  102. package/dist/reliability.js.map +1 -1
  103. package/dist/resolver.cjs +2 -2
  104. package/dist/resolver.cjs.map +1 -1
  105. package/dist/resolver.d.cts +5 -3
  106. package/dist/resolver.d.ts +5 -3
  107. package/dist/resolver.js +2 -2
  108. package/dist/resolver.js.map +1 -1
  109. package/dist/resource.cjs +2 -2
  110. package/dist/resource.cjs.map +1 -1
  111. package/dist/resource.d.cts +3 -1
  112. package/dist/resource.d.ts +3 -1
  113. package/dist/resource.js +2 -2
  114. package/dist/resource.js.map +1 -1
  115. package/dist/result/retry.cjs +1 -1
  116. package/dist/result/retry.cjs.map +1 -1
  117. package/dist/result/retry.d.cts +2 -0
  118. package/dist/result/retry.d.ts +2 -0
  119. package/dist/result/retry.js +1 -1
  120. package/dist/result/retry.js.map +1 -1
  121. package/dist/result.cjs +1 -1
  122. package/dist/result.cjs.map +1 -1
  123. package/dist/result.d.cts +8 -23
  124. package/dist/result.d.ts +8 -23
  125. package/dist/result.js +1 -1
  126. package/dist/result.js.map +1 -1
  127. package/dist/{run-entry-C1uFytM6.d.cts → run-entry-rw7zll_G.d.ts} +16 -45
  128. package/dist/{run-entry-C1uFytM6.d.ts → run-entry-yQu63Yj9.d.cts} +16 -45
  129. package/dist/run.cjs +2 -2
  130. package/dist/run.cjs.map +1 -1
  131. package/dist/run.d.cts +3 -1
  132. package/dist/run.d.ts +3 -1
  133. package/dist/run.js +2 -2
  134. package/dist/run.js.map +1 -1
  135. package/dist/saga.cjs +2 -2
  136. package/dist/saga.cjs.map +1 -1
  137. package/dist/saga.d.cts +3 -1
  138. package/dist/saga.d.ts +3 -1
  139. package/dist/saga.js +2 -2
  140. package/dist/saga.js.map +1 -1
  141. package/dist/singleflight.d.cts +3 -1
  142. package/dist/singleflight.d.ts +3 -1
  143. package/dist/streaming.cjs +4 -4
  144. package/dist/streaming.cjs.map +1 -1
  145. package/dist/streaming.d.cts +5 -3
  146. package/dist/streaming.d.ts +5 -3
  147. package/dist/streaming.js +4 -4
  148. package/dist/streaming.js.map +1 -1
  149. package/dist/testing.cjs +8 -4
  150. package/dist/testing.cjs.map +1 -1
  151. package/dist/testing.d.cts +87 -4
  152. package/dist/testing.d.ts +87 -4
  153. package/dist/testing.js +8 -4
  154. package/dist/testing.js.map +1 -1
  155. package/dist/{types-wa_wTOn3.d.ts → types-CuWK5AlK.d.ts} +1 -1
  156. package/dist/{types-DUWrNIJu.d.cts → types-uR3JpwvF.d.cts} +1 -1
  157. package/dist/webhook.cjs +2 -2
  158. package/dist/webhook.cjs.map +1 -1
  159. package/dist/webhook.d.cts +7 -4
  160. package/dist/webhook.d.ts +7 -4
  161. package/dist/webhook.js +2 -2
  162. package/dist/webhook.js.map +1 -1
  163. package/dist/workflow.cjs +3 -3
  164. package/dist/workflow.cjs.map +1 -1
  165. package/dist/workflow.d.cts +47 -11
  166. package/dist/workflow.d.ts +47 -11
  167. package/dist/workflow.js +3 -3
  168. package/dist/workflow.js.map +1 -1
  169. package/package.json +15 -1
@@ -1,361 +1,8 @@
1
- import { ah as WorkflowEvent, q as UnexpectedError, ai as RunStep, R as Result } from './run-entry-C1uFytM6.cjs';
2
- import { S as SnapshotStore, c as WorkflowSnapshot, b as AnyResultFn, E as ErrorsOfDeps, d as WorkflowContext, e as WorkflowCancelledError } from './persistence-entry-CgVzswbg.cjs';
3
- export { b as isWorkflowCancelled } from './guards-PU64_GKv.cjs';
4
- import './types-DUWrNIJu.cjs';
5
-
6
- /**
7
- * awaitly/durable
8
- *
9
- * Durable execution with automatic state persistence.
10
- * Workflows automatically checkpoint after each keyed step and can resume from any point.
11
- */
12
-
13
- /**
14
- * Error returned when workflow cannot resume due to version mismatch.
15
- * Indicates the stored state was created with a different workflow version.
16
- * Fail-fast contract: bump version when you change step keys, order, or outputs.
17
- */
18
- type VersionMismatchError = {
19
- type: "VERSION_MISMATCH";
20
- /** Workflow execution ID */
21
- workflowId: string;
22
- /** Version stored in persisted state */
23
- storedVersion: number;
24
- /** Version requested by this run */
25
- requestedVersion: number;
26
- /** Guidance message with suggested actions */
27
- message: string;
28
- /** Use requestedVersion. */
29
- currentVersion?: number;
30
- };
31
- /**
32
- * Error returned when workflow execution is rejected due to concurrent run.
33
- */
34
- type ConcurrentExecutionError = {
35
- type: "CONCURRENT_EXECUTION";
36
- /** The workflow ID that is already running */
37
- workflowId: string;
38
- /** Guidance message */
39
- message: string;
40
- /**
41
- * Distinguishes in-process (activeWorkflows) from cross-process (lock held).
42
- * Enables debuggability and branching without parsing the message.
43
- */
44
- reason?: "in-process" | "cross-process";
45
- };
46
- /**
47
- * Error returned when a persistence store operation fails.
48
- */
49
- type PersistenceError = {
50
- type: "PERSISTENCE_ERROR";
51
- /** The operation that failed */
52
- operation: "load" | "save" | "delete";
53
- /** The workflow ID */
54
- workflowId: string;
55
- /** The underlying error */
56
- cause: unknown;
57
- /** Guidance message */
58
- message: string;
59
- };
60
- /**
61
- * Type guard to check if an error is a VersionMismatchError.
62
- */
63
- declare function isVersionMismatch(error: unknown): error is VersionMismatchError;
64
- /**
65
- * Type guard to check if an error is a ConcurrentExecutionError.
66
- */
67
- declare function isConcurrentExecution(error: unknown): error is ConcurrentExecutionError;
68
- /**
69
- * Type guard to check if an error is a PersistenceError.
70
- */
71
- declare function isPersistenceError(error: unknown): error is PersistenceError;
72
- /**
73
- * Optional cross-process lock interface.
74
- * When a store implements this, durable.run uses it to ensure only one process
75
- * runs a given workflow ID at a time (when allowConcurrent is false).
76
- *
77
- * Uses a lease (TTL) + owner token so a crashed worker does not wedge a workflow
78
- * indefinitely. Release must verify the owner token so one process never
79
- * unlocks another's lease.
80
- *
81
- * Mid-run lock loss (e.g. lease expires during a long workflow) is handled
82
- * adapter-side; core assumes the lock is held until release in finally.
83
- * Adapters may implement heartbeats/renewal.
84
- */
85
- interface WorkflowLock {
86
- /**
87
- * Try to acquire a lease for the workflow ID.
88
- * @param id - Workflow execution ID
89
- * @param options - Optional TTL for the lease (adapter default if omitted)
90
- * @returns Owner token if acquired, null if already held by another
91
- */
92
- tryAcquire(id: string, options?: {
93
- ttlMs?: number;
94
- }): Promise<{
95
- ownerToken: string;
96
- } | null>;
97
- /**
98
- * Release the lease. Must verify owner token; no-op or ignore if token
99
- * does not match (e.g. lease already expired or taken by another).
100
- */
101
- release(id: string, ownerToken: string): Promise<void>;
102
- }
103
- /**
104
- * Options for durable workflow execution.
105
- */
106
- interface DurableOptions<C = void> {
107
- /**
108
- * Unique workflow execution ID.
109
- * Used as the key for state persistence.
110
- *
111
- * @example 'order-checkout-123', 'user-onboarding-abc'
112
- */
113
- id: string;
114
- /**
115
- * Snapshot store for persistence. Optional. When omitted, an in-memory store is used (per process).
116
- * Same-process resume/retry works; state is lost on restart. Override with postgres/mongo/libsql for persistence.
117
- *
118
- * @example
119
- * ```typescript
120
- * // Zero-config: uses in-memory store (per process)
121
- * await durable.run(deps, fn, { id: 'my-id' });
122
- *
123
- * // Override: pass a store for persistence across restarts
124
- * import { postgres } from 'awaitly-postgres';
125
- * const store = postgres('postgresql://localhost/mydb');
126
- * await durable.run(deps, fn, { id: 'my-id', store });
127
- * ```
128
- */
129
- store?: SnapshotStore;
130
- /**
131
- * Workflow logic version.
132
- * If stored state has a different version, workflow will reject resume with VersionMismatchError
133
- * unless onVersionMismatch is used to clear or migrate.
134
- *
135
- * Bump when you change step keys, reorder steps, or change step outputs in a way old checkpoints can't satisfy.
136
- *
137
- * @default 1
138
- */
139
- version?: number;
140
- /**
141
- * When stored state version differs from requested version, either throw (default), clear state and run from scratch, or supply migrated snapshot.
142
- * Use for migration or one-off clear without wrapping durable.run.
143
- *
144
- * @default 'throw'
145
- */
146
- onVersionMismatch?: (ctx: {
147
- id: string;
148
- storedVersion: number;
149
- requestedVersion: number;
150
- }) => "throw" | "clear" | {
151
- migratedSnapshot: WorkflowSnapshot;
152
- } | Promise<"throw" | "clear" | {
153
- migratedSnapshot: WorkflowSnapshot;
154
- }>;
155
- /**
156
- * Allow concurrent executions with the same workflow ID.
157
- * When `false` (default), a second run with the same ID will be rejected while one is active.
158
- *
159
- * @default false
160
- */
161
- allowConcurrent?: boolean;
162
- /**
163
- * Lease TTL in milliseconds for cross-process locking.
164
- * Only used when the store implements WorkflowLock and allowConcurrent is false.
165
- * A crashed worker's lease expires after this duration so the workflow can be picked up again.
166
- *
167
- * @default 60000 (1 minute)
168
- */
169
- lockTtlMs?: number;
170
- /**
171
- * Metadata to store alongside workflow state.
172
- * Useful for debugging, auditing, or filtering workflows.
173
- *
174
- * @example { userId: 'user-123', source: 'api' }
175
- */
176
- metadata?: Record<string, unknown>;
177
- /**
178
- * External AbortSignal for workflow-level cancellation.
179
- * Cancellation persists state up to the last completed step.
180
- */
181
- signal?: AbortSignal;
182
- /**
183
- * Create per-run context for event correlation.
184
- */
185
- createContext?: () => C;
186
- /**
187
- * Unified event stream for workflow and step lifecycle.
188
- * Includes durable-specific events: `persist_success` and `persist_error`.
189
- */
190
- onEvent?: (event: DurableWorkflowEvent<unknown, C>, ctx: C) => void;
191
- /**
192
- * Handler for expected and unexpected errors.
193
- */
194
- onError?: (error: unknown, stepName?: string, ctx?: C) => void;
195
- }
196
- /**
197
- * Extended workflow event type that includes durable-specific events.
198
- * E is the deps error type - the full error type includes E | UnexpectedError.
199
- */
200
- type DurableWorkflowEvent<E, C = void> = WorkflowEvent<E | UnexpectedError, C> | {
201
- type: "persist_success";
202
- workflowId: string;
203
- stepKey: string;
204
- ts: number;
205
- context?: C;
206
- } | {
207
- type: "persist_error";
208
- workflowId: string;
209
- stepKey: string;
210
- error: unknown;
211
- ts: number;
212
- context?: C;
213
- };
214
- /**
215
- * Options for bulk delete of workflow state.
216
- */
217
- interface DeleteStatesOptions {
218
- /**
219
- * Max number of concurrent delete calls when store has no deleteMany.
220
- * @default 10
221
- */
222
- concurrency?: number;
223
- /**
224
- * When true, collect errors and return them; when false, throw on first error.
225
- * @default true
226
- */
227
- continueOnError?: boolean;
228
- }
229
- /**
230
- * Result of bulk delete of workflow state.
231
- */
232
- interface DeleteStatesResult {
233
- /** Number of entries successfully deleted. */
234
- deleted: number;
235
- /** Per-id errors when continueOnError was true and some deletes failed. */
236
- errors?: Array<{
237
- id: string;
238
- error: unknown;
239
- }>;
240
- }
241
- /**
242
- * Durable workflow execution namespace.
243
- */
244
- declare const durable: {
245
- /**
246
- * Execute a workflow with automatic state persistence.
247
- *
248
- * Features:
249
- * - **Automatic checkpointing**: State is saved after each keyed step
250
- * - **Crash recovery**: Resume from the last completed step on restart
251
- * - **Version checking**: Reject resume if workflow logic version changed
252
- * - **Concurrency control**: Prevent duplicate executions of the same workflow ID
253
- * - **Cancellation support**: Integrates with AbortSignal for graceful shutdown
254
- *
255
- * ## How It Works
256
- *
257
- * 1. On start: Load existing state from store (if any)
258
- * 2. Check version compatibility (reject if mismatch)
259
- * 3. Pre-populate cache from loaded state (skip completed steps)
260
- * 4. Execute workflow, persisting state after each keyed step
261
- * 5. On completion: Delete stored state (clean up)
262
- * 6. On error/cancellation: State remains for future resume
263
- *
264
- * ## Important Notes
265
- *
266
- * - **Only keyed steps are durable**: Use `{ key: 'step-name' }` option
267
- * - **Steps should be idempotent**: They may be retried on resume
268
- * - **Serialization**: State is JSON-serialized; complex objects may lose fidelity
269
- *
270
- * @param deps - Workflow dependencies (Result-returning functions)
271
- * @param fn - Workflow function receiving ({ step, deps, ctx })
272
- * @param options - Durable execution options
273
- * @returns AsyncResult with workflow result or error
274
- *
275
- * @example
276
- * ```typescript
277
- * import { durable } from 'awaitly/durable';
278
- *
279
- * // Zero-config: uses in-memory store (per process)
280
- * const result = await durable.run(
281
- * { fetchUser, createOrder, sendEmail },
282
- * async ({ step, deps: { fetchUser, createOrder, sendEmail } }) => {
283
- * const user = await step(() => fetchUser('123'), { key: 'fetch-user' });
284
- * const order = await step(() => createOrder(user), { key: 'create-order' });
285
- * await step(() => sendEmail(order), { key: 'send-email' });
286
- * return order;
287
- * },
288
- * { id: 'checkout-123' }
289
- * );
290
- *
291
- * // Override: pass a store for persistence across restarts
292
- * import { createMemoryStatePersistence } from 'awaitly/persistence';
293
- * const store = createMemoryStatePersistence();
294
- * await durable.run(deps, fn, { id: 'checkout-123', store });
295
- *
296
- * if (result.ok) {
297
- * console.log('Order completed:', result.value);
298
- * } else if (isWorkflowCancelled(result.error)) {
299
- * console.log('Workflow cancelled at:', result.error.lastStepKey);
300
- * }
301
- * ```
302
- */
303
- run<const Deps extends Readonly<Record<string, AnyResultFn>>, T, C = void>(deps: Deps, fn: (context: {
304
- step: RunStep<ErrorsOfDeps<Deps>>;
305
- deps: Deps;
306
- ctx: WorkflowContext<C>;
307
- }) => T | Promise<T>, options: DurableOptions<C>): Promise<Result<T, ErrorsOfDeps<Deps> | UnexpectedError | WorkflowCancelledError | VersionMismatchError | ConcurrentExecutionError | PersistenceError, unknown>>;
308
- /**
309
- * Clear all persisted workflow state from the store.
310
- * Use for admin/testing. If the store implements `clear()`, that is used;
311
- * otherwise clears by listing and deleting in pages.
312
- *
313
- * @param store - Snapshot store
314
- */
315
- clearState(store: SnapshotStore): Promise<void>;
316
- /**
317
- * Check if a workflow ID has persisted state (can be resumed).
318
- *
319
- * @param store - Snapshot store
320
- * @param id - Workflow execution ID
321
- * @returns `true` if state exists, `false` otherwise (including on store errors)
322
- */
323
- hasState(store: SnapshotStore, id: string): Promise<boolean>;
324
- /**
325
- * Delete persisted state for a workflow (cancel resume capability).
326
- * Deleting is effectively an ack/reset: the workflow can no longer resume from that state.
327
- * If you delete while a run is in flight, the run continues; on success it may delete again (no-op) or save (recreating state).
328
- * For multi-worker safety, prefer deleting only when the workflow is not running or when you hold the lock.
329
- *
330
- * @param store - Snapshot store
331
- * @param id - Workflow execution ID
332
- * @returns `true` on success, `false` on store errors
333
- */
334
- deleteState(store: SnapshotStore, id: string): Promise<boolean>;
335
- /**
336
- * Bulk delete persisted state for multiple workflow IDs (best-effort).
337
- * Use for admin/cleanup. Deletes in a loop with optional concurrency.
338
- *
339
- * @param store - Snapshot store
340
- * @param ids - Workflow execution IDs to delete
341
- * @param options - Optional concurrency and error handling
342
- * @returns Count of deleted entries and any errors when continueOnError is true
343
- */
344
- deleteStates(store: SnapshotStore, ids: string[], options?: DeleteStatesOptions): Promise<DeleteStatesResult>;
345
- /**
346
- * List workflow IDs with persisted state.
347
- *
348
- * @param store - Snapshot store
349
- * @param options - Optional prefix and limit
350
- * @returns Array of { id, updatedAt } entries
351
- */
352
- listPending(store: SnapshotStore, options?: {
353
- prefix?: string;
354
- limit?: number;
355
- }): Promise<Array<{
356
- id: string;
357
- updatedAt: string;
358
- }>>;
359
- };
360
-
361
- export { type ConcurrentExecutionError, type DeleteStatesOptions, type DeleteStatesResult, type DurableOptions, type DurableWorkflowEvent, type PersistenceError, SnapshotStore, type VersionMismatchError, WorkflowCancelledError, type WorkflowLock, durable, isConcurrentExecution, isPersistenceError, isVersionMismatch };
1
+ export { C as ConcurrentExecutionError, D as DeleteStatesOptions, a as DeleteStatesResult, b as DurableOptions, c as DurableWorkflowEvent, I as IdempotencyConflictError, L as LeaseExpiredError, P as PersistenceError, V as VersionMismatchError, W as WorkflowLock, d as durable, i as isConcurrentExecution, e as isIdempotencyConflict, f as isLeaseExpired, g as isPersistenceError, h as isVersionMismatch } from './index-CQnpmUcC.cjs';
2
+ export { S as SnapshotStore, W as WorkflowCancelledError } from './persistence-entry-jflY61az.cjs';
3
+ export { i as isWorkflowCancelled } from './guards-B79mP5Q8.cjs';
4
+ import './run-entry-yQu63Yj9.cjs';
5
+ import './errors-entry-CMH73Eym.cjs';
6
+ import './tagged-error.cjs';
7
+ import './types-uR3JpwvF.cjs';
8
+ import '@standard-schema/spec';