@workflow/core 5.0.0-beta.4 → 5.0.0-beta.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/attribute-changes.d.ts +7 -0
- package/dist/attribute-changes.d.ts.map +1 -0
- package/dist/attribute-changes.js +25 -0
- package/dist/capabilities.d.ts +33 -1
- package/dist/capabilities.d.ts.map +1 -1
- package/dist/capabilities.js +71 -4
- package/dist/capture-stack.d.ts +16 -0
- package/dist/capture-stack.d.ts.map +1 -0
- package/dist/capture-stack.js +21 -0
- package/dist/class-serialization.d.ts +32 -0
- package/dist/class-serialization.d.ts.map +1 -1
- package/dist/class-serialization.js +37 -1
- package/dist/classify-error.d.ts +26 -3
- package/dist/classify-error.d.ts.map +1 -1
- package/dist/classify-error.js +109 -6
- package/dist/context-errors.d.ts +27 -0
- package/dist/context-errors.d.ts.map +1 -0
- package/dist/context-errors.js +101 -0
- package/dist/context-violation-error.d.ts +97 -0
- package/dist/context-violation-error.d.ts.map +1 -0
- package/dist/context-violation-error.js +149 -0
- package/dist/create-hook.d.ts +62 -4
- package/dist/create-hook.d.ts.map +1 -1
- package/dist/create-hook.js +4 -3
- package/dist/define-hook.d.ts.map +1 -1
- package/dist/define-hook.js +20 -5
- package/dist/describe-error.d.ts +70 -0
- package/dist/describe-error.d.ts.map +1 -0
- package/dist/describe-error.js +189 -0
- package/dist/encryption.d.ts +37 -3
- package/dist/encryption.d.ts.map +1 -1
- package/dist/encryption.js +97 -31
- package/dist/events-consumer.d.ts +147 -1
- package/dist/events-consumer.d.ts.map +1 -1
- package/dist/events-consumer.js +444 -43
- package/dist/flushable-stream.d.ts +65 -10
- package/dist/flushable-stream.d.ts.map +1 -1
- package/dist/flushable-stream.js +131 -18
- package/dist/global.d.ts +37 -1
- package/dist/global.d.ts.map +1 -1
- package/dist/global.js +21 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/log-format.d.ts +25 -0
- package/dist/log-format.d.ts.map +1 -0
- package/dist/log-format.js +250 -0
- package/dist/logger.d.ts +29 -30
- package/dist/logger.d.ts.map +1 -1
- package/dist/logger.js +82 -32
- package/dist/private.d.ts +246 -8
- package/dist/private.d.ts.map +1 -1
- package/dist/private.js +345 -9
- package/dist/replay-payload-cache.d.ts +68 -0
- package/dist/replay-payload-cache.d.ts.map +1 -0
- package/dist/replay-payload-cache.js +160 -0
- package/dist/runtime/compute-instance.d.ts +12 -0
- package/dist/runtime/compute-instance.d.ts.map +1 -0
- package/dist/runtime/compute-instance.js +13 -0
- package/dist/runtime/constants.d.ts +251 -0
- package/dist/runtime/constants.d.ts.map +1 -1
- package/dist/runtime/constants.js +425 -16
- package/dist/runtime/count-step-started-events.d.ts +52 -0
- package/dist/runtime/count-step-started-events.d.ts.map +1 -0
- package/dist/runtime/count-step-started-events.js +72 -0
- package/dist/runtime/deployment-guard.d.ts +99 -0
- package/dist/runtime/deployment-guard.d.ts.map +1 -0
- package/dist/runtime/deployment-guard.js +154 -0
- package/dist/runtime/get-port-lazy.d.ts +25 -0
- package/dist/runtime/get-port-lazy.d.ts.map +1 -0
- package/dist/runtime/get-port-lazy.js +92 -0
- package/dist/runtime/get-world-lazy.d.ts +23 -0
- package/dist/runtime/get-world-lazy.d.ts.map +1 -0
- package/dist/runtime/get-world-lazy.js +46 -0
- package/dist/runtime/helpers.d.ts +327 -10
- package/dist/runtime/helpers.d.ts.map +1 -1
- package/dist/runtime/helpers.js +586 -40
- package/dist/runtime/quickjs-assets.generated.d.ts +14 -0
- package/dist/runtime/quickjs-assets.generated.d.ts.map +1 -0
- package/dist/runtime/quickjs-assets.generated.js +30 -0
- package/dist/runtime/quickjs-entrypoint.d.ts +124 -0
- package/dist/runtime/quickjs-entrypoint.d.ts.map +1 -0
- package/dist/runtime/quickjs-entrypoint.js +1437 -0
- package/dist/runtime/quickjs-runtime.d.ts +228 -0
- package/dist/runtime/quickjs-runtime.d.ts.map +1 -0
- package/dist/runtime/quickjs-runtime.js +2372 -0
- package/dist/runtime/quickjs-serde.d.ts +107 -0
- package/dist/runtime/quickjs-serde.d.ts.map +1 -0
- package/dist/runtime/quickjs-serde.js +2098 -0
- package/dist/runtime/replay-budget.d.ts +89 -0
- package/dist/runtime/replay-budget.d.ts.map +1 -0
- package/dist/runtime/replay-budget.js +139 -0
- package/dist/runtime/replay-recovery-reporter.d.ts +36 -0
- package/dist/runtime/replay-recovery-reporter.d.ts.map +1 -0
- package/dist/runtime/replay-recovery-reporter.js +64 -0
- package/dist/runtime/resume-hook.d.ts +27 -4
- package/dist/runtime/resume-hook.d.ts.map +1 -1
- package/dist/runtime/resume-hook.js +452 -76
- package/dist/runtime/run-id-time.d.ts +19 -0
- package/dist/runtime/run-id-time.d.ts.map +1 -0
- package/dist/runtime/run-id-time.js +42 -0
- package/dist/runtime/run.d.ts +8 -2
- package/dist/runtime/run.d.ts.map +1 -1
- package/dist/runtime/run.js +62 -15
- package/dist/runtime/runs.d.ts +54 -3
- package/dist/runtime/runs.d.ts.map +1 -1
- package/dist/runtime/runs.js +119 -13
- package/dist/runtime/start.d.ts +70 -1
- package/dist/runtime/start.d.ts.map +1 -1
- package/dist/runtime/start.js +313 -60
- package/dist/runtime/step-executor.d.ts +177 -0
- package/dist/runtime/step-executor.d.ts.map +1 -0
- package/dist/runtime/step-executor.js +946 -0
- package/dist/runtime/step-latency.d.ts +197 -0
- package/dist/runtime/step-latency.d.ts.map +1 -0
- package/dist/runtime/step-latency.js +207 -0
- package/dist/runtime/step-ownership.d.ts +72 -0
- package/dist/runtime/step-ownership.d.ts.map +1 -0
- package/dist/runtime/step-ownership.js +114 -0
- package/dist/runtime/step-single-flight.d.ts +12 -0
- package/dist/runtime/step-single-flight.d.ts.map +1 -0
- package/dist/runtime/step-single-flight.js +69 -0
- package/dist/runtime/suspension-handler.d.ts +109 -7
- package/dist/runtime/suspension-handler.d.ts.map +1 -1
- package/dist/runtime/suspension-handler.js +486 -140
- package/dist/runtime/vm-mode.d.ts +44 -0
- package/dist/runtime/vm-mode.d.ts.map +1 -0
- package/dist/runtime/vm-mode.js +62 -0
- package/dist/runtime/vm-serde-bundle.generated.d.ts +14 -0
- package/dist/runtime/vm-serde-bundle.generated.d.ts.map +1 -0
- package/dist/runtime/vm-serde-bundle.generated.js +16 -0
- package/dist/runtime/wait-continuation.d.ts +84 -0
- package/dist/runtime/wait-continuation.d.ts.map +1 -0
- package/dist/runtime/wait-continuation.js +105 -0
- package/dist/runtime/wait-until.d.ts +18 -0
- package/dist/runtime/wait-until.d.ts.map +1 -0
- package/dist/runtime/wait-until.js +42 -0
- package/dist/runtime/world-compatibility.d.ts +20 -0
- package/dist/runtime/world-compatibility.d.ts.map +1 -0
- package/dist/runtime/world-compatibility.js +32 -0
- package/dist/runtime/world-init.d.ts +50 -0
- package/dist/runtime/world-init.d.ts.map +1 -0
- package/dist/runtime/world-init.js +50 -0
- package/dist/runtime/world.d.ts +14 -2
- package/dist/runtime/world.d.ts.map +1 -1
- package/dist/runtime/world.js +101 -26
- package/dist/runtime.d.ts +17 -12
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +3135 -328
- package/dist/schemas.d.ts +1 -1
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +1 -1
- package/dist/sealed-box.d.ts +167 -0
- package/dist/sealed-box.d.ts.map +1 -0
- package/dist/sealed-box.js +571 -0
- package/dist/serialization/client.d.ts +17 -0
- package/dist/serialization/client.d.ts.map +1 -0
- package/dist/serialization/client.js +48 -0
- package/dist/serialization/codec-devalue-vm.d.ts +16 -0
- package/dist/serialization/codec-devalue-vm.d.ts.map +1 -0
- package/dist/serialization/codec-devalue-vm.js +148 -0
- package/dist/serialization/codec-devalue.d.ts +14 -0
- package/dist/serialization/codec-devalue.d.ts.map +1 -0
- package/dist/serialization/codec-devalue.js +105 -0
- package/dist/serialization/codec.d.ts +125 -0
- package/dist/serialization/codec.d.ts.map +1 -0
- package/dist/serialization/codec.js +17 -0
- package/dist/serialization/compression.d.ts +104 -0
- package/dist/serialization/compression.d.ts.map +1 -0
- package/dist/serialization/compression.js +260 -0
- package/dist/serialization/encryption.d.ts +134 -0
- package/dist/serialization/encryption.d.ts.map +1 -0
- package/dist/serialization/encryption.js +186 -0
- package/dist/serialization/errors.d.ts +34 -0
- package/dist/serialization/errors.d.ts.map +1 -0
- package/dist/serialization/errors.js +59 -0
- package/dist/serialization/format.d.ts +60 -0
- package/dist/serialization/format.d.ts.map +1 -0
- package/dist/serialization/format.js +97 -0
- package/dist/serialization/hardened.d.ts +155 -0
- package/dist/serialization/hardened.d.ts.map +1 -0
- package/dist/serialization/hardened.js +523 -0
- package/dist/serialization/index.d.ts +20 -0
- package/dist/serialization/index.d.ts.map +1 -0
- package/dist/serialization/index.js +22 -0
- package/dist/serialization/reducers/class-vm.d.ts +20 -0
- package/dist/serialization/reducers/class-vm.d.ts.map +1 -0
- package/dist/serialization/reducers/class-vm.js +77 -0
- package/dist/serialization/reducers/class.d.ts +11 -0
- package/dist/serialization/reducers/class.d.ts.map +1 -0
- package/dist/serialization/reducers/class.js +73 -0
- package/dist/serialization/reducers/common-vm.d.ts +15 -0
- package/dist/serialization/reducers/common-vm.d.ts.map +1 -0
- package/dist/serialization/reducers/common-vm.js +579 -0
- package/dist/serialization/reducers/common.d.ts +16 -0
- package/dist/serialization/reducers/common.d.ts.map +1 -0
- package/dist/serialization/reducers/common.js +478 -0
- package/dist/serialization/reducers/step-function-vm.d.ts +44 -0
- package/dist/serialization/reducers/step-function-vm.d.ts.map +1 -0
- package/dist/serialization/reducers/step-function-vm.js +97 -0
- package/dist/serialization/reducers/step-function.d.ts +35 -0
- package/dist/serialization/reducers/step-function.d.ts.map +1 -0
- package/dist/serialization/reducers/step-function.js +104 -0
- package/dist/serialization/step.d.ts +17 -0
- package/dist/serialization/step.d.ts.map +1 -0
- package/dist/serialization/step.js +48 -0
- package/dist/serialization/types.d.ts +273 -0
- package/dist/serialization/types.d.ts.map +1 -0
- package/dist/serialization/types.js +35 -0
- package/dist/serialization/workflow-vm.d.ts +29 -0
- package/dist/serialization/workflow-vm.d.ts.map +1 -0
- package/dist/serialization/workflow-vm.js +71 -0
- package/dist/serialization/workflow.d.ts +29 -0
- package/dist/serialization/workflow.d.ts.map +1 -0
- package/dist/serialization/workflow.js +54 -0
- package/dist/serialization-format.d.ts +60 -4
- package/dist/serialization-format.d.ts.map +1 -1
- package/dist/serialization-format.js +276 -56
- package/dist/serialization.d.ts +374 -221
- package/dist/serialization.d.ts.map +1 -1
- package/dist/serialization.js +2300 -783
- package/dist/set-attributes.d.ts +13 -0
- package/dist/set-attributes.d.ts.map +1 -0
- package/dist/set-attributes.js +60 -0
- package/dist/sleep.d.ts.map +1 -1
- package/dist/sleep.js +3 -2
- package/dist/source-map.d.ts +25 -0
- package/dist/source-map.d.ts.map +1 -1
- package/dist/source-map.js +148 -10
- package/dist/step/context-storage.d.ts +61 -2
- package/dist/step/context-storage.d.ts.map +1 -1
- package/dist/step/context-storage.js +7 -5
- package/dist/step/get-closure-vars.d.ts.map +1 -1
- package/dist/step/get-closure-vars.js +3 -2
- package/dist/step/get-step-metadata.d.ts.map +1 -1
- package/dist/step/get-step-metadata.js +3 -2
- package/dist/step/get-workflow-metadata.d.ts.map +1 -1
- package/dist/step/get-workflow-metadata.js +3 -2
- package/dist/step/writable-stream.d.ts.map +1 -1
- package/dist/step/writable-stream.js +71 -7
- package/dist/step.d.ts.map +1 -1
- package/dist/step.js +225 -29
- package/dist/symbols.d.ts +54 -0
- package/dist/symbols.d.ts.map +1 -1
- package/dist/symbols.js +55 -1
- package/dist/telemetry/semantic-conventions.d.ts +265 -2
- package/dist/telemetry/semantic-conventions.d.ts.map +1 -1
- package/dist/telemetry/semantic-conventions.js +190 -1
- package/dist/telemetry.d.ts +73 -0
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +153 -16
- package/dist/types.d.ts +6 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +23 -1
- package/dist/util.d.ts +16 -6
- package/dist/util.d.ts.map +1 -1
- package/dist/util.js +25 -16
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +2 -2
- package/dist/vm/index.d.ts.map +1 -1
- package/dist/vm/index.js +85 -14
- package/dist/vm/script-cache.d.ts +28 -0
- package/dist/vm/script-cache.d.ts.map +1 -0
- package/dist/vm/script-cache.js +140 -0
- package/dist/workflow/abort-controller.d.ts +65 -0
- package/dist/workflow/abort-controller.d.ts.map +1 -0
- package/dist/workflow/abort-controller.js +312 -0
- package/dist/workflow/attribute-dispatcher.d.ts +6 -0
- package/dist/workflow/attribute-dispatcher.d.ts.map +1 -0
- package/dist/workflow/attribute-dispatcher.js +48 -0
- package/dist/workflow/create-hook.d.ts.map +1 -1
- package/dist/workflow/create-hook.js +25 -3
- package/dist/workflow/define-hook.d.ts +1 -1
- package/dist/workflow/define-hook.d.ts.map +1 -1
- package/dist/workflow/define-hook.js +8 -4
- package/dist/workflow/get-workflow-metadata.d.ts.map +1 -1
- package/dist/workflow/get-workflow-metadata.js +14 -3
- package/dist/workflow/hook.d.ts.map +1 -1
- package/dist/workflow/hook.js +302 -36
- package/dist/workflow/index.d.ts +1 -0
- package/dist/workflow/index.d.ts.map +1 -1
- package/dist/workflow/index.js +5 -3
- package/dist/workflow/set-attributes.d.ts +68 -0
- package/dist/workflow/set-attributes.d.ts.map +1 -0
- package/dist/workflow/set-attributes.js +60 -0
- package/dist/workflow/sleep.d.ts.map +1 -1
- package/dist/workflow/sleep.js +57 -8
- package/dist/workflow/world-init-stub.d.ts +15 -0
- package/dist/workflow/world-init-stub.d.ts.map +1 -0
- package/dist/workflow/world-init-stub.js +15 -0
- package/dist/workflow.d.ts +79 -3
- package/dist/workflow.d.ts.map +1 -1
- package/dist/workflow.js +831 -553
- package/docs/api-reference/create-hook.mdx +79 -0
- package/docs/api-reference/create-webhook.mdx +1 -0
- package/docs/api-reference/define-hook.mdx +26 -24
- package/docs/api-reference/fatal-error.mdx +29 -7
- package/docs/api-reference/fetch.mdx +8 -4
- package/docs/api-reference/index.mdx +3 -0
- package/docs/api-reference/set-attributes.mdx +61 -0
- package/docs/api-reference/sleep.mdx +1 -1
- package/docs/foundations/cancellation.mdx +459 -0
- package/docs/foundations/errors-and-retries.mdx +7 -3
- package/docs/foundations/hooks.mdx +29 -0
- package/docs/foundations/idempotency.mdx +243 -11
- package/docs/foundations/index.mdx +1 -23
- package/docs/foundations/meta.json +3 -1
- package/docs/foundations/serialization.mdx +77 -41
- package/docs/foundations/starting-workflows.mdx +79 -2
- package/docs/foundations/streaming.mdx +14 -23
- package/docs/foundations/versioning.mdx +263 -0
- package/docs/how-it-works/cancellation.mdx +287 -0
- package/docs/how-it-works/code-transform.mdx +21 -17
- package/docs/how-it-works/encryption.mdx +5 -5
- package/docs/how-it-works/event-sourcing.mdx +17 -9
- package/docs/how-it-works/framework-integrations.mdx +96 -337
- package/docs/how-it-works/meta.json +2 -1
- package/package.json +31 -13
- package/dist/runtime/step-handler.d.ts +0 -2
- package/dist/runtime/step-handler.d.ts.map +0 -1
- package/dist/runtime/step-handler.js +0 -678
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import type { Event, HealthCheckPayload, ValidQueueName, World } from '@workflow/world';
|
|
1
|
+
import type { CreateEventParams, CreateEventRequest, Event, EventResult, HealthCheckPayload, ValidQueueName, WorkflowRun, World } from '@workflow/world';
|
|
2
|
+
import { type PayloadKey } from '../serialization/encryption.js';
|
|
2
3
|
/**
|
|
3
4
|
* Validates a workflow name and returns the corresponding queue name.
|
|
4
5
|
* Ensures the workflow name only contains safe characters before
|
|
5
6
|
* interpolating it into the queue name string.
|
|
6
7
|
*/
|
|
7
|
-
export declare function getWorkflowQueueName(workflowName: string): ValidQueueName;
|
|
8
|
+
export declare function getWorkflowQueueName(workflowName: string, namespace?: string): ValidQueueName;
|
|
8
9
|
/**
|
|
9
10
|
* Result of a health check operation.
|
|
10
11
|
*/
|
|
@@ -16,6 +17,35 @@ export interface HealthCheckResult {
|
|
|
16
17
|
latencyMs?: number;
|
|
17
18
|
/** Spec version of the responding deployment */
|
|
18
19
|
specVersion?: number;
|
|
20
|
+
/**
|
|
21
|
+
* `@workflow/core` version of the responding deployment, used for
|
|
22
|
+
* capability detection (see `getRunCapabilities`). Omitted when the
|
|
23
|
+
* responding deployment did not provide the field as a string —
|
|
24
|
+
* for example, an older `@workflow/core` that predates this field,
|
|
25
|
+
* or a non-JSON plain-text health response.
|
|
26
|
+
*/
|
|
27
|
+
workflowCoreVersion?: string;
|
|
28
|
+
/**
|
|
29
|
+
* The target run's X25519 public key (base64), returned only when the probe
|
|
30
|
+
* carried a `runId` and the responding deployment has encryption enabled.
|
|
31
|
+
*
|
|
32
|
+
* Lets a cross-deployment `start()` seal the workflow arguments using a
|
|
33
|
+
* response it was already waiting on, instead of making a separate
|
|
34
|
+
* key-lookup request.
|
|
35
|
+
*/
|
|
36
|
+
encryptionPublicKey?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The responding deployment's `HOOK_RESUME_INPUT_VERSION` — the protocol
|
|
39
|
+
* version at which the *consumer* (queue-message target) re-ensures the
|
|
40
|
+
* `hook_received` event from `hookInput` on replay. A cross-deployment
|
|
41
|
+
* `start()` stamps the *target's* value (not the caller's) into the new
|
|
42
|
+
* run's `executionContext.hookResumeInputVersion` so that `resumeHook()`
|
|
43
|
+
* only takes the parallel path when the deployment that will actually
|
|
44
|
+
* consume the queue message is known to honor `hookInput`. Omitted when the
|
|
45
|
+
* responding deployment predates this field (an older consumer that ignores
|
|
46
|
+
* `hookInput`), which fails the gate closed.
|
|
47
|
+
*/
|
|
48
|
+
hookResumeInputVersion?: number;
|
|
19
49
|
}
|
|
20
50
|
/**
|
|
21
51
|
* Checks if the given message is a health check payload.
|
|
@@ -27,23 +57,279 @@ export declare function parseHealthCheckPayload(message: unknown): HealthCheckPa
|
|
|
27
57
|
* The caller can listen to this stream to get the health check response.
|
|
28
58
|
*
|
|
29
59
|
* @param healthCheck - The parsed health check payload
|
|
30
|
-
* @param endpoint - Which endpoint is responding ('workflow' or 'step')
|
|
31
60
|
*/
|
|
32
|
-
export declare function handleHealthCheckMessage(healthCheck: HealthCheckPayload,
|
|
33
|
-
export type HealthCheckEndpoint = 'workflow' | 'step';
|
|
61
|
+
export declare function handleHealthCheckMessage(healthCheck: HealthCheckPayload, worldSpecVersion?: number): Promise<void>;
|
|
34
62
|
export interface HealthCheckOptions {
|
|
35
63
|
/** Timeout in milliseconds to wait for health check response. Default: 30000 (30s) */
|
|
36
64
|
timeout?: number;
|
|
37
65
|
/** Deployment ID to send the health check to. Falls back to process.env.VERCEL_DEPLOYMENT_ID. */
|
|
38
66
|
deploymentId?: string;
|
|
67
|
+
/**
|
|
68
|
+
* The run id the caller is about to create. When set, the responding
|
|
69
|
+
* deployment derives that run's public key locally and returns it as
|
|
70
|
+
* `encryptionPublicKey`, letting a cross-deployment `start()` seal the
|
|
71
|
+
* workflow arguments without a separate key lookup.
|
|
72
|
+
*/
|
|
73
|
+
runId?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Queue namespace of the target deployment (e.g. `'eve'` for topics like
|
|
76
|
+
* `__eve_wkf_workflow_*`). Falls back to `WORKFLOW_QUEUE_NAMESPACE` in the
|
|
77
|
+
* calling process. Cross-context callers (e.g. the observability
|
|
78
|
+
* dashboard) must pass the target deployment's namespace explicitly —
|
|
79
|
+
* the env fallback resolves in the caller's process, and a message
|
|
80
|
+
* published to a mismatched topic has no consumer, so the check would
|
|
81
|
+
* always time out.
|
|
82
|
+
*/
|
|
83
|
+
namespace?: string;
|
|
39
84
|
}
|
|
40
|
-
export declare function healthCheck(world: World,
|
|
85
|
+
export declare function healthCheck(world: World, options?: HealthCheckOptions): Promise<HealthCheckResult>;
|
|
41
86
|
/**
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
87
|
+
* Appends events whose IDs are not already present in `target`.
|
|
88
|
+
*
|
|
89
|
+
* Pass the IDs currently present in `target` when appending repeatedly to the
|
|
90
|
+
* same array. The set is updated alongside `target`.
|
|
91
|
+
*
|
|
92
|
+
* Events are appended in the order the World returned them, and are not
|
|
93
|
+
* re-sorted: a World's canonical order is its own, and the runtime cannot
|
|
94
|
+
* reproduce it from event ids alone. `world-vercel` orders by event id, while
|
|
95
|
+
* `world-local` orders by `(createdAt, eventId)` and deliberately re-mints keys
|
|
96
|
+
* so that the two diverge. Every append source is already in canonical order
|
|
97
|
+
* relative to the tail (a cursor-delimited page, or a write-response delta), so
|
|
98
|
+
* receipt order is the order to keep. Nothing downstream may assume the tail is
|
|
99
|
+
* the newest event — see {@link latestEventStateUpdatedAt}.
|
|
100
|
+
*/
|
|
101
|
+
export declare function appendUniqueEvents(target: Event[], events: readonly Event[], targetIds?: Set<string>): void;
|
|
102
|
+
/**
|
|
103
|
+
* Inserts `event` into `target` at the position that keeps `target` ordered by
|
|
104
|
+
* ascending `eventId`, or no-ops if an event with the same `eventId` is already
|
|
105
|
+
* present (idempotent).
|
|
106
|
+
*
|
|
107
|
+
* `preloadedEvents` is loaded `sortOrder: 'asc'` and is never re-sorted
|
|
108
|
+
* client-side, so a `hook_received` spliced in by the lazy-resume consumer must
|
|
109
|
+
* land in `eventId` order — a plain `push` would place a late-committing
|
|
110
|
+
* earlier event after events that sort before it, corrupting replay. Event IDs
|
|
111
|
+
* are ULIDs, so lexicographic string order matches commit order.
|
|
112
|
+
*/
|
|
113
|
+
export declare function insertEventByEventId(target: Event[], event: Event): void;
|
|
114
|
+
/**
|
|
115
|
+
* Loads workflow run events by iterating through all pages of paginated
|
|
116
|
+
* results. Events are returned in chronological (ascending) order for
|
|
117
|
+
* deterministic workflow replay.
|
|
118
|
+
*
|
|
119
|
+
* @param runId - The workflow run ID.
|
|
120
|
+
* @param afterCursor - If provided, only events after this cursor are
|
|
121
|
+
* returned (incremental load). If omitted, all events are returned.
|
|
122
|
+
* The returned cursor can be passed back in on a subsequent call for
|
|
123
|
+
* incremental loading.
|
|
124
|
+
*/
|
|
125
|
+
export declare function loadWorkflowRunEvents(runId: string, afterCursor?: string): Promise<LoadedEventLog>;
|
|
126
|
+
/**
|
|
127
|
+
* The runtime's loaded event-log snapshot: the events replayed so far and the
|
|
128
|
+
* cursor positioned after them. Handed to helpers that derive the precondition
|
|
129
|
+
* snapshot from it; they do not mutate it.
|
|
130
|
+
*/
|
|
131
|
+
export interface LoadedEventLog {
|
|
132
|
+
events: Event[];
|
|
133
|
+
cursor: string | null;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Whether the optimistic-concurrency guard for event creation is enabled.
|
|
137
|
+
* **On by default** where the runtime executes: replay-context creates send a
|
|
138
|
+
* `stateUpdatedAt` snapshot (and can be rejected with 412 by a supporting
|
|
139
|
+
* backend) unless `WORKFLOW_PRECONDITION_GUARD` is set to `0`. Backends without
|
|
140
|
+
* guard support ignore the snapshot, so enabling by default is
|
|
141
|
+
* backward-compatible.
|
|
142
|
+
*/
|
|
143
|
+
export declare function isPreconditionGuardEnabled(): boolean;
|
|
144
|
+
/**
|
|
145
|
+
* Whether a replay refuses to run over a log with a hole in it (see
|
|
146
|
+
* {@link findEventSlotGap}). **On by default**; set
|
|
147
|
+
* `WORKFLOW_SLOT_GAP_CHECK=0` to replay across holes instead.
|
|
148
|
+
*
|
|
149
|
+
* The switch exists because the check trades one failure for another. A hole is
|
|
150
|
+
* a position claimed by a write that then failed, so most of them stand for an
|
|
151
|
+
* event that never happened and replaying past one is correct. But a hole
|
|
152
|
+
* standing for an event that *did* happen is indistinguishable from that, and
|
|
153
|
+
* replaying past that one produces a run whose result is wrong with nothing to
|
|
154
|
+
* show for it. Failing loudly is the recoverable side of the trade, and this is
|
|
155
|
+
* the way back out if a fleet turns out to carry benign holes.
|
|
45
156
|
*/
|
|
46
|
-
export declare function
|
|
157
|
+
export declare function isSlotGapCheckEnabled(): boolean;
|
|
158
|
+
/**
|
|
159
|
+
* The `stateUpdatedAt` value to send with a replay-context event creation: the
|
|
160
|
+
* *maximum* ULID time (epoch ms) over the events the runtime has loaded. Returns
|
|
161
|
+
* `undefined` when there are no events or that id is not a decodable ULID.
|
|
162
|
+
*
|
|
163
|
+
* It is the maximum rather than the tail's because the loaded log is in the
|
|
164
|
+
* World's canonical order, which is not necessarily event-id order (see
|
|
165
|
+
* {@link appendUniqueEvents}). The maximum is what lets the count sent alongside
|
|
166
|
+
* it be read as "events at or below this watermark": every loaded event is at or
|
|
167
|
+
* below it, so the count is exactly `events.length`. Reading the tail instead
|
|
168
|
+
* would understate the watermark on a World whose order is not id-ordered, which
|
|
169
|
+
* is safe (it can only weaken detection) but needlessly imprecise.
|
|
170
|
+
*
|
|
171
|
+
* The maximum is found by lexicographic id comparison, decoding only once: the
|
|
172
|
+
* 26-character Crockford ULID encodes its timestamp in the leading 10
|
|
173
|
+
* characters, so the greatest id also carries the greatest time.
|
|
174
|
+
*
|
|
175
|
+
* Granularity: snapshots are epoch-milliseconds, and the backend allows an
|
|
176
|
+
* equal-timestamp snapshot (an up-to-date client must not be rejected). Two
|
|
177
|
+
* out-of-band events landing in the same millisecond where only the first was
|
|
178
|
+
* loaded therefore pass this half of the guard undetected — that is exactly
|
|
179
|
+
* the hole `stateEventCount` closes, since the count of events at or below the
|
|
180
|
+
* watermark differs even when the watermarks are equal.
|
|
181
|
+
*/
|
|
182
|
+
export declare function latestEventStateUpdatedAt(events: Event[]): number | undefined;
|
|
183
|
+
/**
|
|
184
|
+
* Merge the events a bump-and-report write handed back into the log it was
|
|
185
|
+
* derived from, and answer how many of them were new.
|
|
186
|
+
*
|
|
187
|
+
* Unlike {@link appendUniqueEvents}, this re-sorts. The reported events occupy
|
|
188
|
+
* slots *below* the write that reported them, so appending them would put them
|
|
189
|
+
* after events they precede — and on a slot-numbered run the id order is the
|
|
190
|
+
* World's canonical order, so restoring it is well defined rather than a guess.
|
|
191
|
+
* A run that is not slot-numbered cannot produce this report in the first
|
|
192
|
+
* place; the sort is skipped rather than applied to ids it cannot order.
|
|
193
|
+
*/
|
|
194
|
+
export declare function mergeReportedEvents(target: Event[], events: readonly Event[]): number;
|
|
195
|
+
/**
|
|
196
|
+
* The highest slot the loaded log occupies, or `undefined` when the run is not
|
|
197
|
+
* slot-numbered. A run keeps the id scheme it was created under, so one event
|
|
198
|
+
* settles it for the whole log.
|
|
199
|
+
*
|
|
200
|
+
* The maximum, not the count, and the two are not interchangeable even though
|
|
201
|
+
* a healthy log makes them equal. A World hands a position to the insert that
|
|
202
|
+
* occupies it, so a write that never lands leaves no hole behind and the log
|
|
203
|
+
* stays dense. What the count cannot survive is a *partial* read: a log
|
|
204
|
+
* assembled from a truncated report, or read while a concurrent write is
|
|
205
|
+
* committing, holds fewer events than its highest position. Counting those
|
|
206
|
+
* would make the next write claim to have seen less than it has, so the World
|
|
207
|
+
* would report the same events back to it on every attempt.
|
|
208
|
+
*
|
|
209
|
+
* A hole below the maximum is therefore a property of the read, not of the log,
|
|
210
|
+
* which is what lets {@link settleEventSlotGap} re-read instead of giving up.
|
|
211
|
+
*/
|
|
212
|
+
export declare function maxEventSlot(events: Event[]): number | undefined;
|
|
213
|
+
/** A position the log skips over, described well enough to name in an error. */
|
|
214
|
+
export interface EventSlotGap {
|
|
215
|
+
/** The lowest slot below the log's maximum that no event occupies. */
|
|
216
|
+
firstMissingSlot: number;
|
|
217
|
+
/** How many slots below the maximum no event occupies. */
|
|
218
|
+
missingCount: number;
|
|
219
|
+
/** The highest slot the log occupies. */
|
|
220
|
+
maxSlot: number;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* The hole in a loaded log, or `undefined` when there is none to find.
|
|
224
|
+
*
|
|
225
|
+
* On a slot-numbered run the World allocates every position, so a log that
|
|
226
|
+
* holds `n` events below slot `n` is missing one. That matters before a replay
|
|
227
|
+
* and nowhere else: the replay reads the log as the complete record of what has
|
|
228
|
+
* happened, and an absent position is indistinguishable from an event that
|
|
229
|
+
* never occurred. The branch it would have decided gets decided the other way,
|
|
230
|
+
* and the run diverges quietly rather than failing.
|
|
231
|
+
*
|
|
232
|
+
* Order-independent, unlike the equivalent audit the World runs over a page it
|
|
233
|
+
* just read. A loaded log is assembled from listed pages plus whatever a
|
|
234
|
+
* bump-and-report write handed back, and while {@link mergeReportedEvents}
|
|
235
|
+
* restores id order, a check that can fail a healthy run should not depend on
|
|
236
|
+
* that having happened.
|
|
237
|
+
*
|
|
238
|
+
* The first slot is never counted. It belongs to `run_created`, which `start()`
|
|
239
|
+
* posts concurrently with the queue send, so a log read in that window
|
|
240
|
+
* legitimately begins at the second slot and fills in on its own. Every replay
|
|
241
|
+
* that races a run's own start would otherwise report a hole.
|
|
242
|
+
*
|
|
243
|
+
* Returns `undefined` for a log this cannot read as slots at all: an empty one,
|
|
244
|
+
* or a run numbered by ULID, where positions carry no density to check.
|
|
245
|
+
*/
|
|
246
|
+
export declare function findEventSlotGap(events: readonly Event[]): EventSlotGap | undefined;
|
|
247
|
+
/**
|
|
248
|
+
* How many times a detected hole is re-read before the log is taken at its
|
|
249
|
+
* word, and the backoff before each re-read (doubling per attempt).
|
|
250
|
+
*
|
|
251
|
+
* A hole can be transient. The World allocates a slot inside the insert that
|
|
252
|
+
* occupies it, so two concurrent writers can collide, one retry past the other,
|
|
253
|
+
* and the higher slot commit first — leaving a window in which the lower one is
|
|
254
|
+
* genuinely absent from a strongly-consistent read and fills in a moment later.
|
|
255
|
+
* The window is one commit wide, so a short backoff clears it; anything that
|
|
256
|
+
* survives all three re-reads is a position no write will ever occupy.
|
|
257
|
+
*/
|
|
258
|
+
export declare const SLOT_GAP_RECHECK_ATTEMPTS = 3;
|
|
259
|
+
/**
|
|
260
|
+
* Re-read a log that looks holey until the hole fills in or the re-reads run
|
|
261
|
+
* out, and return the settled log alongside the hole that survived.
|
|
262
|
+
*
|
|
263
|
+
* Reads are strongly consistent, so a hole is not an artifact of *when* the log
|
|
264
|
+
* was read — but it can be an artifact of a write that had not committed yet
|
|
265
|
+
* (see {@link SLOT_GAP_RECHECK_ATTEMPTS}). Distinguishing the two costs a
|
|
266
|
+
* re-read, which is only ever paid by a replay that already found a hole.
|
|
267
|
+
*
|
|
268
|
+
* The reload is full rather than incremental: the missing position is below the
|
|
269
|
+
* log's maximum, so a cursor-anchored read starts past it and can never see it
|
|
270
|
+
* arrive.
|
|
271
|
+
*/
|
|
272
|
+
export declare function settleEventSlotGap(runId: string, loaded: LoadedEventLog): Promise<{
|
|
273
|
+
log: LoadedEventLog;
|
|
274
|
+
gap: EventSlotGap | undefined;
|
|
275
|
+
}>;
|
|
276
|
+
/**
|
|
277
|
+
* The precondition snapshot a replay-context event creation sends, describing
|
|
278
|
+
* the event log the replay derived the event from.
|
|
279
|
+
*
|
|
280
|
+
* On a slot-numbered run this is `eventCount`, optionally with the set of
|
|
281
|
+
* correlation ids the writer is blocked on. On a ULID-numbered run it is the
|
|
282
|
+
* `stateUpdatedAt` / `stateEventCount` / `stateCursor` triple, whose three
|
|
283
|
+
* fields are one indivisible unit: the backend reads the count only relative to
|
|
284
|
+
* the watermark, and returns its inline delta only relative to the cursor.
|
|
285
|
+
* Passing them as a single object is what keeps them from drifting apart at a
|
|
286
|
+
* call site.
|
|
287
|
+
*/
|
|
288
|
+
export interface PreconditionSnapshotParams {
|
|
289
|
+
stateUpdatedAt?: number;
|
|
290
|
+
stateEventCount?: number;
|
|
291
|
+
stateCursor?: string;
|
|
292
|
+
eventCount?: number;
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* Build the precondition snapshot to attach to a replay-context event creation.
|
|
296
|
+
*
|
|
297
|
+
* Returns an empty object — no guard, backend behaves as before — when the
|
|
298
|
+
* guard is disabled or the watermark is not derivable. All three fields fail
|
|
299
|
+
* open together: a count without a watermark is meaningless to the backend, and
|
|
300
|
+
* a cursor without either would invite a delta nobody asked for.
|
|
301
|
+
*
|
|
302
|
+
* `stateEventCount` is `events.length` because the watermark is the log's
|
|
303
|
+
* *maximum* ULID time, so every loaded event is at or below it regardless of the
|
|
304
|
+
* order the World returned them in.
|
|
305
|
+
*
|
|
306
|
+
* Both fields are therefore invariant under permutation of the log: a maximum is
|
|
307
|
+
* order-independent, and the length is set cardinality once `appendUniqueEvents`
|
|
308
|
+
* has deduped by event id. Two replays that consume the same events in different
|
|
309
|
+
* orders send an identical snapshot, so this guard detects that a log is missing
|
|
310
|
+
* an event and can never detect that a replay consumed one in a different order.
|
|
311
|
+
*/
|
|
312
|
+
export declare function preconditionSnapshotParams(events: Event[], cursor?: string | null): PreconditionSnapshotParams;
|
|
313
|
+
/**
|
|
314
|
+
* The events a rejecting World attached to a `PreconditionFailedError`, when it
|
|
315
|
+
* returned the ones the client's snapshot was missing inline.
|
|
316
|
+
*
|
|
317
|
+
* Returns `null` for anything else — no details, a World that did not implement
|
|
318
|
+
* this, or a payload that does not narrow cleanly. Callers fall back to
|
|
319
|
+
* reloading the event log, which is always correct; this is untrusted-shaped
|
|
320
|
+
* data on a failure path, so nothing here is repaired.
|
|
321
|
+
*
|
|
322
|
+
* `runId` is the caller's run. Every event must belong to it: the delta is
|
|
323
|
+
* merged straight into the replay's log, and one foreign event there is a
|
|
324
|
+
* corrupt log rather than a corrected one — the replay would consume a
|
|
325
|
+
* correlation id for an event that does not exist on this run.
|
|
326
|
+
*/
|
|
327
|
+
export declare function preconditionEventDelta(error: unknown, runId: string): {
|
|
328
|
+
events: Event[];
|
|
329
|
+
cursor: string | null;
|
|
330
|
+
} | null;
|
|
331
|
+
/** Creates one event on a bound run, carrying replay-recovery telemetry. */
|
|
332
|
+
export type EventCreator = (data: CreateEventRequest, params?: CreateEventParams) => Promise<EventResult>;
|
|
47
333
|
/**
|
|
48
334
|
* Wraps a request/response handler and adds a health check "mode"
|
|
49
335
|
* based on the presence of a `__health` query parameter.
|
|
@@ -61,4 +347,35 @@ export declare function getQueueOverhead(message: {
|
|
|
61
347
|
}): {
|
|
62
348
|
[k: string]: number;
|
|
63
349
|
} | undefined;
|
|
350
|
+
/**
|
|
351
|
+
* Returns a memoized accessor for a run's full encryption capability.
|
|
352
|
+
*
|
|
353
|
+
* The first call resolves the run's key material via
|
|
354
|
+
* `world.getEncryptionKeyForRun` (which may do HKDF derivation locally on
|
|
355
|
+
* Vercel, or a network fetch from external contexts) and derives a
|
|
356
|
+
* {@link PayloadKey} from it; subsequent calls await the same cached promise.
|
|
357
|
+
* If the world doesn't support encryption or the run has no key configured,
|
|
358
|
+
* the cached value is `undefined`.
|
|
359
|
+
*
|
|
360
|
+
* The resolved value is deliberately the *full* capability — the symmetric AES
|
|
361
|
+
* key plus the run's X25519 keypair — not just a `CryptoKey`. A run reading
|
|
362
|
+
* its own event log can encounter sealed (`encp`) payloads that another run
|
|
363
|
+
* wrote to it (a cross-deployment hook resumption, say), and opening those
|
|
364
|
+
* needs the keypair. Resolving only the symmetric key would leave those
|
|
365
|
+
* payloads unopenable and wedge the run.
|
|
366
|
+
*
|
|
367
|
+
* Used by step / workflow handlers to defer the (potentially expensive)
|
|
368
|
+
* key fetch until the first code path that actually needs it — typically
|
|
369
|
+
* input hydration on the success path, or error dehydration on a failure
|
|
370
|
+
* path. Both paths can race-call the accessor without triggering duplicate
|
|
371
|
+
* fetches.
|
|
372
|
+
*
|
|
373
|
+
* Errors thrown by `getEncryptionKeyForRun` propagate to every caller
|
|
374
|
+
* (the cached promise rejects). This is intentional: when encryption is
|
|
375
|
+
* configured, we never want to silently fall back to plaintext
|
|
376
|
+
* serialization. A propagated error in an event-emission path leaves the
|
|
377
|
+
* outer try/catch to log and surface the issue; the queue's redelivery
|
|
378
|
+
* semantics will retry the key fetch on the next attempt.
|
|
379
|
+
*/
|
|
380
|
+
export declare function memoizeEncryptionKey(world: World, runOrId: WorkflowRun | string): () => Promise<PayloadKey | undefined>;
|
|
64
381
|
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/runtime/helpers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/runtime/helpers.ts"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