@workflow/core 5.0.0-beta.9 → 5.0.1
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/README.md +41 -0
- package/dist/attribute-changes.d.ts +4 -5
- package/dist/attribute-changes.d.ts.map +1 -1
- package/dist/attribute-changes.js +12 -4
- package/dist/capabilities.d.ts +35 -2
- package/dist/capabilities.d.ts.map +1 -1
- package/dist/capabilities.js +74 -5
- package/dist/capture-stack.d.ts +1 -1
- package/dist/capture-stack.js +2 -2
- 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 +15 -0
- package/dist/classify-error.d.ts.map +1 -1
- package/dist/classify-error.js +72 -4
- package/dist/context-violation-error.d.ts +5 -5
- package/dist/context-violation-error.d.ts.map +1 -1
- package/dist/context-violation-error.js +8 -6
- package/dist/create-hook.d.ts +109 -7
- package/dist/create-hook.d.ts.map +1 -1
- package/dist/create-hook.js +1 -1
- package/dist/define-hook.js +2 -2
- package/dist/describe-error.d.ts +7 -7
- package/dist/describe-error.d.ts.map +1 -1
- package/dist/describe-error.js +46 -7
- package/dist/encryption.d.ts +32 -4
- package/dist/encryption.d.ts.map +1 -1
- package/dist/encryption.js +85 -10
- package/dist/events-consumer.d.ts +300 -0
- package/dist/events-consumer.d.ts.map +1 -1
- package/dist/events-consumer.js +672 -42
- package/dist/flushable-stream.d.ts +97 -1
- package/dist/flushable-stream.d.ts.map +1 -1
- package/dist/flushable-stream.js +286 -10
- package/dist/global.d.ts +38 -2
- package/dist/global.d.ts.map +1 -1
- package/dist/global.js +21 -6
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/log-format.d.ts +6 -2
- package/dist/log-format.d.ts.map +1 -1
- package/dist/log-format.js +60 -15
- package/dist/logger.d.ts +1 -0
- package/dist/logger.d.ts.map +1 -1
- package/dist/logger.js +13 -7
- package/dist/private.d.ts +258 -9
- package/dist/private.d.ts.map +1 -1
- package/dist/private.js +640 -7
- package/dist/replay-divergence.d.ts +25 -0
- package/dist/replay-divergence.d.ts.map +1 -0
- package/dist/replay-divergence.js +61 -0
- package/dist/replay-payload-cache.d.ts +64 -0
- package/dist/replay-payload-cache.d.ts.map +1 -0
- package/dist/replay-payload-cache.js +158 -0
- package/dist/runtime/compute-instance.d.ts +13 -0
- package/dist/runtime/compute-instance.d.ts.map +1 -0
- package/dist/runtime/compute-instance.js +14 -0
- package/dist/runtime/constants.d.ts +298 -5
- package/dist/runtime/constants.d.ts.map +1 -1
- package/dist/runtime/constants.js +500 -17
- 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 +100 -0
- package/dist/runtime/deployment-guard.d.ts.map +1 -0
- package/dist/runtime/deployment-guard.js +159 -0
- package/dist/runtime/dynamic-workflow.d.ts +182 -0
- package/dist/runtime/dynamic-workflow.d.ts.map +1 -0
- package/dist/runtime/dynamic-workflow.js +382 -0
- package/dist/runtime/get-port-lazy.d.ts +15 -0
- package/dist/runtime/get-port-lazy.d.ts.map +1 -1
- package/dist/runtime/get-port-lazy.js +75 -6
- package/dist/runtime/get-world-lazy.d.ts +5 -14
- package/dist/runtime/get-world-lazy.d.ts.map +1 -1
- package/dist/runtime/get-world-lazy.js +19 -29
- package/dist/runtime/helpers.d.ts +445 -29
- package/dist/runtime/helpers.d.ts.map +1 -1
- package/dist/runtime/helpers.js +717 -62
- package/dist/runtime/hook-wake.d.ts +122 -0
- package/dist/runtime/hook-wake.d.ts.map +1 -0
- package/dist/runtime/hook-wake.js +225 -0
- package/dist/runtime/invocations.d.ts +35 -0
- package/dist/runtime/invocations.d.ts.map +1 -0
- package/dist/runtime/invocations.js +172 -0
- package/dist/runtime/lifecycle-hooks.d.ts +93 -0
- package/dist/runtime/lifecycle-hooks.d.ts.map +1 -0
- package/dist/runtime/lifecycle-hooks.js +178 -0
- package/dist/runtime/open-hook-wait-state.d.ts +55 -0
- package/dist/runtime/open-hook-wait-state.d.ts.map +1 -0
- package/dist/runtime/open-hook-wait-state.js +93 -0
- package/dist/runtime/quickjs-assets.generated.d.ts +21 -0
- package/dist/runtime/quickjs-assets.generated.d.ts.map +1 -0
- package/dist/runtime/quickjs-assets.generated.js +37 -0
- package/dist/runtime/quickjs-entrypoint.d.ts +130 -0
- package/dist/runtime/quickjs-entrypoint.d.ts.map +1 -0
- package/dist/runtime/quickjs-entrypoint.js +2411 -0
- package/dist/runtime/quickjs-log-view.d.ts +152 -0
- package/dist/runtime/quickjs-log-view.d.ts.map +1 -0
- package/dist/runtime/quickjs-log-view.js +266 -0
- package/dist/runtime/quickjs-runtime.d.ts +299 -0
- package/dist/runtime/quickjs-runtime.d.ts.map +1 -0
- package/dist/runtime/quickjs-runtime.js +2844 -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 +2234 -0
- package/dist/runtime/quickjs-snapshot-codec.d.ts +74 -0
- package/dist/runtime/quickjs-snapshot-codec.d.ts.map +1 -0
- package/dist/runtime/quickjs-snapshot-codec.js +159 -0
- package/dist/runtime/replay-budget.d.ts +17 -18
- package/dist/runtime/replay-budget.d.ts.map +1 -1
- package/dist/runtime/replay-budget.js +33 -81
- 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 +93 -8
- package/dist/runtime/resume-hook.d.ts.map +1 -1
- package/dist/runtime/resume-hook.js +709 -110
- package/dist/runtime/resume-latency.d.ts +150 -0
- package/dist/runtime/resume-latency.d.ts.map +1 -0
- package/dist/runtime/resume-latency.js +155 -0
- 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-spec-version.d.ts +16 -0
- package/dist/runtime/run-spec-version.d.ts.map +1 -0
- package/dist/runtime/run-spec-version.js +19 -0
- package/dist/runtime/run.d.ts +72 -7
- package/dist/runtime/run.d.ts.map +1 -1
- package/dist/runtime/run.js +295 -58
- package/dist/runtime/runs.d.ts +54 -3
- package/dist/runtime/runs.d.ts.map +1 -1
- package/dist/runtime/runs.js +148 -21
- package/dist/runtime/start.d.ts +164 -3
- package/dist/runtime/start.d.ts.map +1 -1
- package/dist/runtime/start.js +736 -89
- package/dist/runtime/step-executor.d.ts +186 -5
- package/dist/runtime/step-executor.d.ts.map +1 -1
- package/dist/runtime/step-executor.js +759 -125
- package/dist/runtime/step-latency.d.ts +221 -0
- package/dist/runtime/step-latency.d.ts.map +1 -0
- package/dist/runtime/step-latency.js +215 -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 +71 -0
- package/dist/runtime/suspension-handler.d.ts +279 -10
- package/dist/runtime/suspension-handler.d.ts.map +1 -1
- package/dist/runtime/suspension-handler.js +1442 -169
- package/dist/runtime/unserializable-step.d.ts +34 -0
- package/dist/runtime/unserializable-step.d.ts.map +1 -0
- package/dist/runtime/unserializable-step.js +52 -0
- package/dist/runtime/vm-mode.d.ts +88 -0
- package/dist/runtime/vm-mode.d.ts.map +1 -0
- package/dist/runtime/vm-mode.js +140 -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 +106 -0
- package/dist/runtime/wait-continuation.d.ts.map +1 -0
- package/dist/runtime/wait-continuation.js +136 -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 +32 -0
- package/dist/runtime/world-compatibility.d.ts.map +1 -0
- package/dist/runtime/world-compatibility.js +44 -0
- package/dist/runtime/world-init.d.ts +17 -42
- package/dist/runtime/world-init.d.ts.map +1 -1
- package/dist/runtime/world-init.js +18 -43
- package/dist/runtime/world.d.ts +14 -2
- package/dist/runtime/world.d.ts.map +1 -1
- package/dist/runtime/world.js +75 -19
- package/dist/runtime.d.ts +11 -7
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +4117 -446
- 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 +3 -3
- package/dist/serialization/client.d.ts.map +1 -1
- package/dist/serialization/client.js +8 -4
- 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 +1 -1
- package/dist/serialization/codec-devalue.d.ts.map +1 -1
- package/dist/serialization/codec-devalue.js +24 -6
- package/dist/serialization/codec.d.ts +37 -2
- package/dist/serialization/codec.d.ts.map +1 -1
- package/dist/serialization/codec.js +2 -2
- package/dist/serialization/compression.d.ts +130 -0
- package/dist/serialization/compression.d.ts.map +1 -0
- package/dist/serialization/compression.js +316 -0
- package/dist/serialization/encryption.d.ts +119 -17
- package/dist/serialization/encryption.d.ts.map +1 -1
- package/dist/serialization/encryption.js +152 -17
- package/dist/serialization/errors.d.ts +13 -0
- package/dist/serialization/errors.d.ts.map +1 -1
- package/dist/serialization/errors.js +20 -2
- package/dist/serialization/format.d.ts +6 -6
- package/dist/serialization/format.js +7 -7
- package/dist/serialization/hardened.d.ts +164 -0
- package/dist/serialization/hardened.d.ts.map +1 -0
- package/dist/serialization/hardened.js +554 -0
- package/dist/serialization/index.d.ts +10 -8
- package/dist/serialization/index.d.ts.map +1 -1
- package/dist/serialization/index.js +10 -8
- 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.map +1 -1
- package/dist/serialization/reducers/class.js +11 -6
- 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 +661 -0
- package/dist/serialization/reducers/common.d.ts +1 -1
- package/dist/serialization/reducers/common.d.ts.map +1 -1
- package/dist/serialization/reducers/common.js +227 -66
- 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.map +1 -1
- package/dist/serialization/reducers/step-function.js +25 -9
- package/dist/serialization/step.d.ts +4 -4
- package/dist/serialization/step.d.ts.map +1 -1
- package/dist/serialization/step.js +9 -5
- package/dist/serialization/types.d.ts +75 -1
- package/dist/serialization/types.d.ts.map +1 -1
- package/dist/serialization/types.js +15 -1
- 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 +74 -0
- package/dist/serialization-format.d.ts +64 -8
- package/dist/serialization-format.d.ts.map +1 -1
- package/dist/serialization-format.js +239 -73
- package/dist/serialization.d.ts +319 -34
- package/dist/serialization.d.ts.map +1 -1
- package/dist/serialization.js +1961 -321
- package/dist/set-attributes.d.ts +7 -7
- package/dist/set-attributes.d.ts.map +1 -1
- package/dist/set-attributes.js +42 -21
- package/dist/set-error-stack.d.ts +12 -0
- package/dist/set-error-stack.d.ts.map +1 -0
- package/dist/set-error-stack.js +30 -0
- package/dist/source-map.d.ts +25 -0
- package/dist/source-map.d.ts.map +1 -1
- package/dist/source-map.js +113 -7
- package/dist/step/context-storage.d.ts +50 -3
- package/dist/step/context-storage.d.ts.map +1 -1
- package/dist/step/context-storage.js +7 -5
- package/dist/step/writable-stream.d.ts +3 -3
- package/dist/step/writable-stream.d.ts.map +1 -1
- package/dist/step/writable-stream.js +53 -19
- package/dist/step.d.ts.map +1 -1
- package/dist/step.js +142 -28
- package/dist/symbols.d.ts +35 -1
- package/dist/symbols.d.ts.map +1 -1
- package/dist/symbols.js +36 -2
- package/dist/telemetry/semantic-conventions.d.ts +509 -2
- package/dist/telemetry/semantic-conventions.d.ts.map +1 -1
- package/dist/telemetry/semantic-conventions.js +363 -3
- package/dist/telemetry.d.ts +91 -0
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +244 -17
- package/dist/test-support/orchestrator-context.d.ts +25 -0
- package/dist/test-support/orchestrator-context.d.ts.map +1 -0
- package/dist/test-support/orchestrator-context.js +107 -0
- package/dist/types.d.ts +23 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +76 -1
- package/dist/util.d.ts +0 -5
- package/dist/util.d.ts.map +1 -1
- package/dist/util.js +1 -15
- 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 +84 -14
- package/dist/vm/script-cache.d.ts +26 -0
- package/dist/vm/script-cache.d.ts.map +1 -0
- package/dist/vm/script-cache.js +131 -0
- package/dist/vm/uint8array-base64.js +1 -1
- package/dist/workflow/abort-controller.d.ts +2 -2
- package/dist/workflow/abort-controller.d.ts.map +1 -1
- package/dist/workflow/abort-controller.js +75 -21
- 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 +65 -0
- package/dist/workflow/create-hook.d.ts.map +1 -1
- package/dist/workflow/create-hook.js +24 -3
- package/dist/workflow/get-workflow-metadata.js +2 -2
- package/dist/workflow/hook.d.ts.map +1 -1
- package/dist/workflow/hook.js +403 -53
- package/dist/workflow/index.d.ts +1 -1
- package/dist/workflow/index.d.ts.map +1 -1
- package/dist/workflow/index.js +2 -2
- package/dist/workflow/set-attributes.d.ts +19 -21
- package/dist/workflow/set-attributes.d.ts.map +1 -1
- package/dist/workflow/set-attributes.js +23 -25
- package/dist/workflow/sleep.d.ts.map +1 -1
- package/dist/workflow/sleep.js +42 -13
- package/dist/workflow/world-init-stub.d.ts +3 -3
- package/dist/workflow/world-init-stub.js +4 -4
- package/dist/workflow.d.ts +89 -3
- package/dist/workflow.d.ts.map +1 -1
- package/dist/workflow.js +920 -568
- package/docs/api-reference/create-hook.mdx +170 -10
- package/docs/api-reference/create-webhook.mdx +16 -15
- package/docs/api-reference/define-hook.mdx +41 -33
- package/docs/api-reference/fatal-error.mdx +30 -8
- package/docs/api-reference/fetch.mdx +14 -10
- package/docs/api-reference/get-step-metadata.mdx +2 -2
- package/docs/api-reference/get-workflow-metadata.mdx +3 -3
- package/docs/api-reference/get-writable.mdx +7 -7
- package/docs/api-reference/index.mdx +3 -3
- package/docs/api-reference/retryable-error.mdx +1 -1
- package/docs/api-reference/set-attributes.mdx +63 -0
- package/docs/api-reference/sleep.mdx +4 -4
- package/docs/foundations/cancellation.mdx +31 -32
- package/docs/foundations/errors-and-retries.mdx +54 -11
- package/docs/foundations/hooks.mdx +187 -36
- package/docs/foundations/idempotency.mdx +267 -12
- package/docs/foundations/index.mdx +1 -26
- package/docs/foundations/serialization.mdx +22 -22
- package/docs/foundations/starting-workflows.mdx +104 -30
- package/docs/foundations/streaming.mdx +108 -60
- package/docs/foundations/versioning.mdx +4 -4
- package/docs/foundations/workflows-and-steps.mdx +10 -10
- package/docs/how-it-works/cancellation.mdx +63 -63
- package/docs/how-it-works/code-transform.mdx +82 -66
- package/docs/how-it-works/encryption.mdx +30 -26
- package/docs/how-it-works/event-sourcing.mdx +132 -35
- package/docs/how-it-works/framework-integrations.mdx +96 -337
- package/docs/how-it-works/understanding-directives.mdx +22 -22
- package/package.json +29 -15
- 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 -779
- package/docs/api-reference/experimental-set-attributes.mdx +0 -63
package/dist/symbols.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const WORKFLOW_USE_STEP: unique symbol;
|
|
2
|
+
export declare const WORKFLOW_SET_ATTRIBUTES: unique symbol;
|
|
2
3
|
export declare const WORKFLOW_CREATE_HOOK: unique symbol;
|
|
3
4
|
export declare const WORKFLOW_SLEEP: unique symbol;
|
|
4
5
|
export declare const WORKFLOW_CONTEXT: unique symbol;
|
|
@@ -6,6 +7,7 @@ export declare const WORKFLOW_GET_STREAM_ID: unique symbol;
|
|
|
6
7
|
export declare const STABLE_ULID: unique symbol;
|
|
7
8
|
export declare const STREAM_NAME_SYMBOL: unique symbol;
|
|
8
9
|
export declare const STREAM_TYPE_SYMBOL: unique symbol;
|
|
10
|
+
export declare const STREAM_FRAMING_SYMBOL: unique symbol;
|
|
9
11
|
/**
|
|
10
12
|
* Stamped on a real `WritableStream` (the user-visible `serialize.writable`
|
|
11
13
|
* returned from a step-side reviver or step-context `getWritable()`) to
|
|
@@ -16,12 +18,44 @@ export declare const STREAM_TYPE_SYMBOL: unique symbol;
|
|
|
16
18
|
* `start()`) sees both symbols on a writable, it includes the `runId` in
|
|
17
19
|
* the descriptor it emits. The child run's step-side reviver then opens
|
|
18
20
|
* a server writable against the original `(runId, name)` and resolves
|
|
19
|
-
* that run's encryption key directly
|
|
21
|
+
* that run's encryption key directly, so the child's writes land on
|
|
20
22
|
* the parent's stream as-is, with no client process in the loop. That
|
|
21
23
|
* keeps the forwarding alive for the full lifetime of the child run,
|
|
22
24
|
* not just for the parent step that initiated `start()`.
|
|
23
25
|
*/
|
|
24
26
|
export declare const STREAM_SERVER_RUN_ID_SYMBOL: unique symbol;
|
|
27
|
+
/**
|
|
28
|
+
* Stamped alongside `STREAM_SERVER_RUN_ID_SYMBOL` when the deployment that
|
|
29
|
+
* owns a forwarded writable stream is known. Cross-deployment consumers use
|
|
30
|
+
* it to resolve the owning run's encryption key without loading the run first.
|
|
31
|
+
*/
|
|
32
|
+
export declare const STREAM_SERVER_DEPLOYMENT_ID_SYMBOL: unique symbol;
|
|
33
|
+
/**
|
|
34
|
+
* Stamped alongside `STREAM_SERVER_RUN_ID_SYMBOL` with the owning run's
|
|
35
|
+
* X25519 public key (base64), when the run has one.
|
|
36
|
+
*
|
|
37
|
+
* This is what lets a forwarded writable be written to across a deployment
|
|
38
|
+
* boundary at zero cost. The owning run derives its own public key locally
|
|
39
|
+
* when it creates the stream, so the key travels inside the serialized
|
|
40
|
+
* descriptor; a child on another deployment can then seal frames immediately.
|
|
41
|
+
* Without it the child would have to either fetch the owning run or fetch its
|
|
42
|
+
* symmetric key from the API, the round trip this whole mechanism exists to
|
|
43
|
+
* avoid.
|
|
44
|
+
*/
|
|
45
|
+
export declare const STREAM_SERVER_PUBLIC_KEY_SYMBOL: unique symbol;
|
|
46
|
+
/**
|
|
47
|
+
* Stamped on a `WorkflowServerWritableStream` instance to expose its
|
|
48
|
+
* durability barrier: `() => Promise<void>` that resolves once every accepted
|
|
49
|
+
* chunk has durably reached the server (nothing buffered, nothing in flight)
|
|
50
|
+
* and rejects if any dispatch failed.
|
|
51
|
+
*
|
|
52
|
+
* The sink acks `write()` on buffer entry (group-commit batching), so
|
|
53
|
+
* durability tracking lives here instead: `flushablePipe` feature-detects
|
|
54
|
+
* this and awaits it before resolving its lock-release completion, keeping
|
|
55
|
+
* the invariant that a step cannot complete while stream data is still
|
|
56
|
+
* client-side. Sinks without it are fully durable per `write()` already.
|
|
57
|
+
*/
|
|
58
|
+
export declare const STREAM_DRAIN_SYMBOL: unique symbol;
|
|
25
59
|
export declare const BODY_INIT_SYMBOL: unique symbol;
|
|
26
60
|
export declare const WEBHOOK_RESPONSE_WRITABLE: unique symbol;
|
|
27
61
|
/**
|
package/dist/symbols.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"symbols.d.ts","sourceRoot":"","sources":["../src/symbols.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,eAAkC,CAAC;AACjE,eAAO,MAAM,oBAAoB,eAAqC,CAAC;AACvE,eAAO,MAAM,cAAc,eAA+B,CAAC;AAC3D,eAAO,MAAM,gBAAgB,eAAiC,CAAC;AAC/D,eAAO,MAAM,sBAAsB,eAAuC,CAAC;AAC3E,eAAO,MAAM,WAAW,eAAqC,CAAC;AAC9D,eAAO,MAAM,kBAAkB,eAAqC,CAAC;AACrE,eAAO,MAAM,kBAAkB,eAAqC,CAAC;AACrE;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,2BAA2B,eAEvC,CAAC;AACF,eAAO,MAAM,gBAAgB,eAA0B,CAAC;AACxD,eAAO,MAAM,yBAAyB,eAErC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,eAAwC,CAAC;AAE7E,eAAO,MAAM,iBAAiB,eAA2C,CAAC;AAC1E,eAAO,MAAM,gBAAgB,eAA0C,CAAC;AACxE,eAAO,MAAM,uBAAuB,eAEnC,CAAC;AACF,eAAO,MAAM,mBAAmB,eAA6C,CAAC"}
|
|
1
|
+
{"version":3,"file":"symbols.d.ts","sourceRoot":"","sources":["../src/symbols.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,eAAkC,CAAC;AACjE,eAAO,MAAM,uBAAuB,eAAwC,CAAC;AAC7E,eAAO,MAAM,oBAAoB,eAAqC,CAAC;AACvE,eAAO,MAAM,cAAc,eAA+B,CAAC;AAC3D,eAAO,MAAM,gBAAgB,eAAiC,CAAC;AAC/D,eAAO,MAAM,sBAAsB,eAAuC,CAAC;AAC3E,eAAO,MAAM,WAAW,eAAqC,CAAC;AAC9D,eAAO,MAAM,kBAAkB,eAAqC,CAAC;AACrE,eAAO,MAAM,kBAAkB,eAAqC,CAAC;AACrE,eAAO,MAAM,qBAAqB,eAAwC,CAAC;AAC3E;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,2BAA2B,eAEvC,CAAC;AACF;;;;GAIG;AACH,eAAO,MAAM,kCAAkC,eAE9C,CAAC;AACF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,+BAA+B,eAE3C,CAAC;AACF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,mBAAmB,eAAsC,CAAC;AAEvE,eAAO,MAAM,gBAAgB,eAA0B,CAAC;AACxD,eAAO,MAAM,yBAAyB,eAErC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,eAAwC,CAAC;AAE7E,eAAO,MAAM,iBAAiB,eAA2C,CAAC;AAC1E,eAAO,MAAM,gBAAgB,eAA0C,CAAC;AACxE,eAAO,MAAM,uBAAuB,eAEnC,CAAC;AACF,eAAO,MAAM,mBAAmB,eAA6C,CAAC"}
|
package/dist/symbols.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export const WORKFLOW_USE_STEP = Symbol.for('WORKFLOW_USE_STEP');
|
|
2
|
+
export const WORKFLOW_SET_ATTRIBUTES = Symbol.for('WORKFLOW_SET_ATTRIBUTES');
|
|
2
3
|
export const WORKFLOW_CREATE_HOOK = Symbol.for('WORKFLOW_CREATE_HOOK');
|
|
3
4
|
export const WORKFLOW_SLEEP = Symbol.for('WORKFLOW_SLEEP');
|
|
4
5
|
export const WORKFLOW_CONTEXT = Symbol.for('WORKFLOW_CONTEXT');
|
|
@@ -6,6 +7,7 @@ export const WORKFLOW_GET_STREAM_ID = Symbol.for('WORKFLOW_GET_STREAM_ID');
|
|
|
6
7
|
export const STABLE_ULID = Symbol.for('WORKFLOW_STABLE_ULID');
|
|
7
8
|
export const STREAM_NAME_SYMBOL = Symbol.for('WORKFLOW_STREAM_NAME');
|
|
8
9
|
export const STREAM_TYPE_SYMBOL = Symbol.for('WORKFLOW_STREAM_TYPE');
|
|
10
|
+
export const STREAM_FRAMING_SYMBOL = Symbol.for('WORKFLOW_STREAM_FRAMING');
|
|
9
11
|
/**
|
|
10
12
|
* Stamped on a real `WritableStream` (the user-visible `serialize.writable`
|
|
11
13
|
* returned from a step-side reviver or step-context `getWritable()`) to
|
|
@@ -16,12 +18,44 @@ export const STREAM_TYPE_SYMBOL = Symbol.for('WORKFLOW_STREAM_TYPE');
|
|
|
16
18
|
* `start()`) sees both symbols on a writable, it includes the `runId` in
|
|
17
19
|
* the descriptor it emits. The child run's step-side reviver then opens
|
|
18
20
|
* a server writable against the original `(runId, name)` and resolves
|
|
19
|
-
* that run's encryption key directly
|
|
21
|
+
* that run's encryption key directly, so the child's writes land on
|
|
20
22
|
* the parent's stream as-is, with no client process in the loop. That
|
|
21
23
|
* keeps the forwarding alive for the full lifetime of the child run,
|
|
22
24
|
* not just for the parent step that initiated `start()`.
|
|
23
25
|
*/
|
|
24
26
|
export const STREAM_SERVER_RUN_ID_SYMBOL = Symbol.for('WORKFLOW_STREAM_SERVER_RUN_ID');
|
|
27
|
+
/**
|
|
28
|
+
* Stamped alongside `STREAM_SERVER_RUN_ID_SYMBOL` when the deployment that
|
|
29
|
+
* owns a forwarded writable stream is known. Cross-deployment consumers use
|
|
30
|
+
* it to resolve the owning run's encryption key without loading the run first.
|
|
31
|
+
*/
|
|
32
|
+
export const STREAM_SERVER_DEPLOYMENT_ID_SYMBOL = Symbol.for('WORKFLOW_STREAM_SERVER_DEPLOYMENT_ID');
|
|
33
|
+
/**
|
|
34
|
+
* Stamped alongside `STREAM_SERVER_RUN_ID_SYMBOL` with the owning run's
|
|
35
|
+
* X25519 public key (base64), when the run has one.
|
|
36
|
+
*
|
|
37
|
+
* This is what lets a forwarded writable be written to across a deployment
|
|
38
|
+
* boundary at zero cost. The owning run derives its own public key locally
|
|
39
|
+
* when it creates the stream, so the key travels inside the serialized
|
|
40
|
+
* descriptor; a child on another deployment can then seal frames immediately.
|
|
41
|
+
* Without it the child would have to either fetch the owning run or fetch its
|
|
42
|
+
* symmetric key from the API, the round trip this whole mechanism exists to
|
|
43
|
+
* avoid.
|
|
44
|
+
*/
|
|
45
|
+
export const STREAM_SERVER_PUBLIC_KEY_SYMBOL = Symbol.for('WORKFLOW_STREAM_SERVER_PUBLIC_KEY');
|
|
46
|
+
/**
|
|
47
|
+
* Stamped on a `WorkflowServerWritableStream` instance to expose its
|
|
48
|
+
* durability barrier: `() => Promise<void>` that resolves once every accepted
|
|
49
|
+
* chunk has durably reached the server (nothing buffered, nothing in flight)
|
|
50
|
+
* and rejects if any dispatch failed.
|
|
51
|
+
*
|
|
52
|
+
* The sink acks `write()` on buffer entry (group-commit batching), so
|
|
53
|
+
* durability tracking lives here instead: `flushablePipe` feature-detects
|
|
54
|
+
* this and awaits it before resolving its lock-release completion, keeping
|
|
55
|
+
* the invariant that a step cannot complete while stream data is still
|
|
56
|
+
* client-side. Sinks without it are fully durable per `write()` already.
|
|
57
|
+
*/
|
|
58
|
+
export const STREAM_DRAIN_SYMBOL = Symbol.for('WORKFLOW_STREAM_DRAIN');
|
|
25
59
|
export const BODY_INIT_SYMBOL = Symbol.for('BODY_INIT');
|
|
26
60
|
export const WEBHOOK_RESPONSE_WRITABLE = Symbol.for('WEBHOOK_RESPONSE_WRITABLE');
|
|
27
61
|
/**
|
|
@@ -33,4 +67,4 @@ export const ABORT_STREAM_NAME = Symbol.for('WORKFLOW_ABORT_STREAM_NAME');
|
|
|
33
67
|
export const ABORT_HOOK_TOKEN = Symbol.for('WORKFLOW_ABORT_HOOK_TOKEN');
|
|
34
68
|
export const ABORT_LISTENER_ATTACHED = Symbol.for('WORKFLOW_ABORT_LISTENER_ATTACHED');
|
|
35
69
|
export const ABORT_READER_CANCEL = Symbol.for('WORKFLOW_ABORT_READER_CANCEL');
|
|
36
|
-
//# s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