@workflow/core 5.0.0-beta.9 → 5.0.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/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 +10 -6
- 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 +148 -0
- package/dist/runtime/dynamic-workflow.d.ts.map +1 -0
- package/dist/runtime/dynamic-workflow.js +290 -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 +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 +158 -0
- package/dist/runtime/quickjs-entrypoint.d.ts.map +1 -0
- package/dist/runtime/quickjs-entrypoint.js +1939 -0
- package/dist/runtime/quickjs-log-view.d.ts +129 -0
- package/dist/runtime/quickjs-log-view.d.ts.map +1 -0
- package/dist/runtime/quickjs-log-view.js +229 -0
- package/dist/runtime/quickjs-runtime.d.ts +247 -0
- package/dist/runtime/quickjs-runtime.d.ts.map +1 -0
- package/dist/runtime/quickjs-runtime.js +2599 -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/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 +700 -78
- 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 +756 -123
- 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 +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 +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 +4111 -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 +105 -0
- package/dist/serialization/compression.d.ts.map +1 -0
- package/dist/serialization/compression.js +261 -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 +156 -0
- package/dist/serialization/hardened.d.ts.map +1 -0
- package/dist/serialization/hardened.js +538 -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/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 +481 -2
- package/dist/telemetry/semantic-conventions.d.ts.map +1 -1
- package/dist/telemetry/semantic-conventions.js +349 -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 +166 -10
- package/docs/api-reference/create-webhook.mdx +16 -15
- package/docs/api-reference/define-hook.mdx +37 -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 +98 -35
- 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 +9 -9
- 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/serialization.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import {
|
|
1
|
+
import { createFlushableState, type FlushableStreamState } from './flushable-stream.js';
|
|
2
|
+
import { compress, decompress } from './serialization/compression.js';
|
|
3
|
+
import { aesKeyOf, decrypt, deriveRunPayloadKeys, type EncryptionKeyParam, encrypt, isRunPayloadKeys, isSealTarget, type PayloadKey, type RunPayloadKeys, runPayloadKeys, type SealTarget, sealTo } from './serialization/encryption.js';
|
|
3
4
|
import { decodeFormatPrefix, encodeWithFormatPrefix, isEncrypted, peekFormatPrefix } from './serialization/format.js';
|
|
5
|
+
import { type GuestCodeStats } from './serialization/hardened.js';
|
|
4
6
|
import { type FormatPrefix, isFormatPrefix, SerializationFormat } from './serialization/types.js';
|
|
5
|
-
export { SerializationFormat, type FormatPrefix, isFormatPrefix, encodeWithFormatPrefix, decodeFormatPrefix, peekFormatPrefix, isEncrypted, encrypt, decrypt, type EncryptionKeyParam, };
|
|
7
|
+
export { SerializationFormat, type FormatPrefix, isFormatPrefix, encodeWithFormatPrefix, decodeFormatPrefix, peekFormatPrefix, isEncrypted, encrypt, decrypt, compress, decompress, type EncryptionKeyParam, type PayloadKey, type RunPayloadKeys, type SealTarget, sealTo, runPayloadKeys, deriveRunPayloadKeys, isSealTarget, isRunPayloadKeys, aesKeyOf, };
|
|
6
8
|
export type SerializationFormatType = (typeof SerializationFormat)[keyof typeof SerializationFormat];
|
|
7
9
|
/**
|
|
8
10
|
* Detect if a readable stream is a byte stream.
|
|
@@ -13,31 +15,122 @@ export type SerializationFormatType = (typeof SerializationFormat)[keyof typeof
|
|
|
13
15
|
export declare function getStreamType(stream: ReadableStream): 'bytes' | undefined;
|
|
14
16
|
export declare function getSerializeStream(reducers: Partial<Reducers>, cryptoKey: EncryptionKeyParam): TransformStream<any, Uint8Array>;
|
|
15
17
|
export declare function getDeserializeStream(revivers: Partial<Revivers>, cryptoKey: EncryptionKeyParam): TransformStream<Uint8Array, any>;
|
|
18
|
+
/**
|
|
19
|
+
* Wraps each chunk of a byte stream in a 4-byte big-endian length
|
|
20
|
+
* prefix. Used by the producer side of a framed byte-stream pipe.
|
|
21
|
+
*
|
|
22
|
+
* Empty chunks (length 0) are dropped: the resulting `[0x00 0x00 0x00 0x00]`
|
|
23
|
+
* frame would be ambiguous with the legacy "looks framed" detection in
|
|
24
|
+
* `getDeserializeStream`, and it carries no information.
|
|
25
|
+
*
|
|
26
|
+
* Load-bearing invariant: each user chunk becomes exactly one frame, and
|
|
27
|
+
* each frame is enqueued as exactly one transport chunk (the downstream
|
|
28
|
+
* writable performs one wire write per chunk, preserving boundaries). The
|
|
29
|
+
* server therefore stores one frame per chunk index, which is what allows
|
|
30
|
+
* a future reconnecting reader to resume a framed byte stream at
|
|
31
|
+
* `startIndex + consumedFrames`, the same arithmetic
|
|
32
|
+
* `createReconnectingFramedStream` relies on for object streams. Do not
|
|
33
|
+
* coalesce or split frames here without revisiting that resume logic.
|
|
34
|
+
*/
|
|
35
|
+
export declare function getByteFramingStream(): TransformStream<Uint8Array, Uint8Array>;
|
|
36
|
+
/**
|
|
37
|
+
* Unwraps length-prefixed byte-stream frames back into the original user
|
|
38
|
+
* chunks. Used by the consumer side of a framed byte-stream pipe.
|
|
39
|
+
*
|
|
40
|
+
* Buffers across read boundaries, since the transport may split a single
|
|
41
|
+
* frame across multiple reads (header in one chunk, payload in another)
|
|
42
|
+
* or coalesce multiple frames into a single read. The transform emits
|
|
43
|
+
* whole user chunks regardless of transport chunking.
|
|
44
|
+
*
|
|
45
|
+
* Errors the stream if the length header advertises a frame larger than
|
|
46
|
+
* `MAX_FRAME_SIZE` bytes, since that almost certainly indicates a
|
|
47
|
+
* misframed wire (e.g. a raw byte stream being fed through this transform
|
|
48
|
+
* by mistake) and we don't want to allocate an enormous buffer.
|
|
49
|
+
*/
|
|
50
|
+
export declare function getByteUnframingStream(): TransformStream<Uint8Array, Uint8Array>;
|
|
16
51
|
export declare class WorkflowServerReadableStream extends ReadableStream<Uint8Array> {
|
|
17
52
|
#private;
|
|
18
53
|
constructor(runId: string, name: string, startIndex?: number);
|
|
19
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* Maximum consecutive reconnect attempts for a single framed stream session.
|
|
57
|
+
* The counter resets to zero whenever a reconnect makes forward progress (a
|
|
58
|
+
* frame is delivered), so this bounds *consecutive* failures, not the lifetime
|
|
59
|
+
* total: a long-lived serverless stream may legitimately reconnect far more
|
|
60
|
+
* than this many times as long as each reconnect keeps delivering data. We only
|
|
61
|
+
* give up after this many reconnects in a row produce nothing.
|
|
62
|
+
*/
|
|
63
|
+
export declare const FRAMED_STREAM_MAX_RECONNECTS = 50;
|
|
64
|
+
/**
|
|
65
|
+
* Absolute backstop on total reconnects for a single session, independent of
|
|
66
|
+
* progress. The consecutive cap above resets on forward progress, which is
|
|
67
|
+
* correct for a well-behaved backend that honors `startIndex`. But if a World's
|
|
68
|
+
* `streams.get` ever ignored `startIndex` and re-delivered earlier chunks,
|
|
69
|
+
* "progress" would be reported every reconnect and the consecutive cap would
|
|
70
|
+
* never trip, turning a bounded failure into an unbounded reconnect loop. This
|
|
71
|
+
* hard ceiling guarantees the loop always terminates. It is set high enough
|
|
72
|
+
* (hours of streaming at realistic per-session timeouts) to never interfere
|
|
73
|
+
* with legitimate long-lived streams.
|
|
74
|
+
*/
|
|
75
|
+
export declare const FRAMED_STREAM_MAX_TOTAL_RECONNECTS = 1000;
|
|
76
|
+
/**
|
|
77
|
+
* Wraps the length-prefix-framed byte stream from `world.streams.get` with
|
|
78
|
+
* transparent auto-reconnect.
|
|
79
|
+
*
|
|
80
|
+
* Every fully-decoded outer frame corresponds to exactly one server-side
|
|
81
|
+
* chunk (the serialize transform enqueues one frame per workflow write, and
|
|
82
|
+
* the writable buffers one frame per chunk when multi-writing). The wrapper
|
|
83
|
+
* counts completed frames and, on upstream error, reopens the connection
|
|
84
|
+
* with `startIndex = resolvedStartIndex + consumedFrames`. Partial-frame
|
|
85
|
+
* bytes buffered before the cut are discarded; the server will resend the
|
|
86
|
+
* in-flight chunk in full from the new startIndex.
|
|
87
|
+
*
|
|
88
|
+
* A clean upstream close (EOF with no error) is NOT trusted as completion
|
|
89
|
+
* on its own: some transport paths normalize a mid-stream abort into a
|
|
90
|
+
* graceful end (observed in production on Vercel response streaming, where
|
|
91
|
+
* the server's max-duration abort arrives at the client as a clean EOF).
|
|
92
|
+
* On EOF the wrapper verifies against the stream's authoritative metadata
|
|
93
|
+
* (`streams.getInfo`) that the stream is complete AND that every chunk up to
|
|
94
|
+
* `done` was delivered; otherwise it reconnects from the next chunk exactly
|
|
95
|
+
* like an errored connection. If the metadata read itself fails, the EOF is
|
|
96
|
+
* trusted (legacy behavior) rather than failing a read that may well be
|
|
97
|
+
* complete.
|
|
98
|
+
*
|
|
99
|
+
* Negative `startIndex` values (last-N semantics) skip the reconnect
|
|
100
|
+
* machinery because we cannot compute an absolute resume position without
|
|
101
|
+
* a tail-index lookup; the returned stream behaves as a single-shot read.
|
|
102
|
+
*/
|
|
103
|
+
export declare function createReconnectingFramedStream(runId: string, name: string, startIndex?: number, prefetchEncryptionKey?: () => Promise<PayloadKey | undefined>): ReadableStream<Uint8Array>;
|
|
20
104
|
export declare class WorkflowServerWritableStream extends WritableStream<Uint8Array> {
|
|
21
|
-
|
|
105
|
+
/**
|
|
106
|
+
* @param runReadyBarrier Turbo mode only: a promise that resolves once the
|
|
107
|
+
* backgrounded `run_started` has landed. When the step body runs
|
|
108
|
+
* optimistically (before `run_started` is durable), the first chunk write to
|
|
109
|
+
* a brand-new stream would otherwise reach the World before the run exists
|
|
110
|
+
* and be rejected as run-not-found. Awaiting this once before the first
|
|
111
|
+
* flush/close orders the write after the run's creation. `undefined` outside
|
|
112
|
+
* turbo and on the await path, where the run was already durable.
|
|
113
|
+
*/
|
|
114
|
+
constructor(runId: string, name: string, runReadyBarrier?: Promise<unknown>);
|
|
22
115
|
}
|
|
23
|
-
export type { Reducers, Revivers, SerializableSpecial, } from './serialization/types.js';
|
|
24
|
-
import type { Reducers, Revivers } from './serialization/types.js';
|
|
116
|
+
export type { ByteStreamFraming, Reducers, Revivers, SerializableSpecial, } from './serialization/types.js';
|
|
117
|
+
import type { ByteStreamFraming, Reducers, Revivers } from './serialization/types.js';
|
|
25
118
|
/**
|
|
26
119
|
* Reducers for serialization boundary from the client side, passing arguments
|
|
27
120
|
* to the workflow handler.
|
|
28
121
|
*
|
|
29
122
|
* @param global
|
|
30
123
|
* @param ops
|
|
124
|
+
* @param runId
|
|
125
|
+
* @param cryptoKey
|
|
126
|
+
* @param framedByteStreams - When `true`, byte streams (`type: 'bytes'`)
|
|
127
|
+
* are wrapped in length-prefixed frames on the wire so the consumer
|
|
128
|
+
* can reconnect on transient errors. Should match the target run's
|
|
129
|
+
* capability: see `getRunCapabilities` in `capabilities.ts`. Defaults
|
|
130
|
+
* to `false` for backwards compatibility with older runs.
|
|
31
131
|
* @returns
|
|
32
132
|
*/
|
|
33
|
-
export declare function getExternalReducers(global: Record<string, any> | undefined, ops: Promise<void>[], runId: string, cryptoKey: EncryptionKeyParam): Partial<Reducers>;
|
|
34
|
-
/**
|
|
35
|
-
* Reducers for serialization boundary from within the workflow execution
|
|
36
|
-
* environment, passing return value to the client side and into step arguments.
|
|
37
|
-
*
|
|
38
|
-
* @param global
|
|
39
|
-
* @returns
|
|
40
|
-
*/
|
|
133
|
+
export declare function getExternalReducers(global: Record<string, any> | undefined, ops: Promise<void>[], runId: string, cryptoKey: EncryptionKeyParam, framedByteStreams?: boolean, runReadyBarrier?: Promise<unknown>, readbackOps?: Promise<void>[]): Partial<Reducers>;
|
|
41
134
|
export declare function getWorkflowReducers(global?: Record<string, any>): Partial<Reducers>;
|
|
42
135
|
/**
|
|
43
136
|
* Cancel dangling abort-stream readers on any AbortController instances found
|
|
@@ -57,6 +150,7 @@ export declare function getCommonRevivers(global?: Record<string, any>): {
|
|
|
57
150
|
BigInt?: ((value: string) => any) | undefined;
|
|
58
151
|
BigInt64Array?: ((value: string) => any) | undefined;
|
|
59
152
|
BigUint64Array?: ((value: string) => any) | undefined;
|
|
153
|
+
DataViewBytes?: ((value: string) => any) | undefined;
|
|
60
154
|
Date?: ((value: string) => any) | undefined;
|
|
61
155
|
DOMException?: ((value: {
|
|
62
156
|
message: string;
|
|
@@ -90,6 +184,14 @@ export declare function getCommonRevivers(global?: Record<string, any>): {
|
|
|
90
184
|
token: string;
|
|
91
185
|
conflictingRunId?: string;
|
|
92
186
|
}) => any) | undefined;
|
|
187
|
+
HookForceClaimedError?: ((value: {
|
|
188
|
+
message: string;
|
|
189
|
+
stack?: string;
|
|
190
|
+
cause?: unknown;
|
|
191
|
+
token: string;
|
|
192
|
+
claimedByRunId: string;
|
|
193
|
+
claimedByHookId?: string;
|
|
194
|
+
}) => any) | undefined;
|
|
93
195
|
Int8Array?: ((value: string) => any) | undefined;
|
|
94
196
|
Int16Array?: ((value: string) => any) | undefined;
|
|
95
197
|
Int32Array?: ((value: string) => any) | undefined;
|
|
@@ -103,6 +205,7 @@ export declare function getCommonRevivers(global?: Record<string, any>): {
|
|
|
103
205
|
name: string;
|
|
104
206
|
type?: "bytes";
|
|
105
207
|
startIndex?: number;
|
|
208
|
+
framing?: ByteStreamFraming;
|
|
106
209
|
} | {
|
|
107
210
|
bodyInit: any;
|
|
108
211
|
}) => any) | undefined;
|
|
@@ -121,6 +224,19 @@ export declare function getCommonRevivers(global?: Record<string, any>): {
|
|
|
121
224
|
cause?: unknown;
|
|
122
225
|
retryAfter: number;
|
|
123
226
|
}) => any) | undefined;
|
|
227
|
+
RuntimeDecryptionError?: ((value: {
|
|
228
|
+
message: string;
|
|
229
|
+
stack?: string;
|
|
230
|
+
cause?: unknown;
|
|
231
|
+
context?: import("@workflow/errors").RuntimeDecryptionErrorContext;
|
|
232
|
+
}) => any) | undefined;
|
|
233
|
+
StreamError?: ((value: {
|
|
234
|
+
message: string;
|
|
235
|
+
stack?: string;
|
|
236
|
+
cause?: unknown;
|
|
237
|
+
status?: number;
|
|
238
|
+
url?: string;
|
|
239
|
+
}) => any) | undefined;
|
|
124
240
|
Request?: ((value: {
|
|
125
241
|
method: string;
|
|
126
242
|
url: string;
|
|
@@ -186,6 +302,8 @@ export declare function getCommonRevivers(global?: Record<string, any>): {
|
|
|
186
302
|
WritableStream?: ((value: {
|
|
187
303
|
name: string;
|
|
188
304
|
runId?: string;
|
|
305
|
+
deploymentId?: string;
|
|
306
|
+
encryptionPublicKey?: string;
|
|
189
307
|
}) => any) | undefined;
|
|
190
308
|
AbortController?: ((value: {
|
|
191
309
|
streamName: string;
|
|
@@ -200,6 +318,50 @@ export declare function getCommonRevivers(global?: Record<string, any>): {
|
|
|
200
318
|
reason?: unknown;
|
|
201
319
|
}) => any) | undefined;
|
|
202
320
|
};
|
|
321
|
+
/**
|
|
322
|
+
* Resolves the owner's encryption key, preferring its public key, then its
|
|
323
|
+
* deployment, and finally its run record.
|
|
324
|
+
* @internal
|
|
325
|
+
*/
|
|
326
|
+
export declare function getForwardedWritableEncryptionKey(runId: string, deploymentId: string | undefined, encryptionPublicKey: string | undefined): Promise<PayloadKey | undefined>;
|
|
327
|
+
/** Tags a forwarded writable with its owner's metadata. @internal */
|
|
328
|
+
export declare function tagForwardedWritableTarget(writable: WritableStream, { deploymentId, encryptionPublicKey, }: {
|
|
329
|
+
deploymentId?: string;
|
|
330
|
+
encryptionPublicKey?: string;
|
|
331
|
+
}): void;
|
|
332
|
+
/** Creates and tags a forwarded writable targeting the owner run. @internal */
|
|
333
|
+
export declare function createForwardedWritable<W = any>({ global, ops, runId, name, key, deploymentId, encryptionPublicKey, runReadyBarrier, }: {
|
|
334
|
+
global: Record<string, any>;
|
|
335
|
+
ops: Promise<any>[];
|
|
336
|
+
runId: string;
|
|
337
|
+
name: string;
|
|
338
|
+
key: EncryptionKeyParam;
|
|
339
|
+
deploymentId?: string;
|
|
340
|
+
encryptionPublicKey?: string;
|
|
341
|
+
runReadyBarrier?: Promise<unknown>;
|
|
342
|
+
}): WritableStream<W>;
|
|
343
|
+
/**
|
|
344
|
+
* Create a run's object readable without dispatching its stream GET or
|
|
345
|
+
* encryption-key lookup until the caller reads it. The external reviver starts
|
|
346
|
+
* its background pipe immediately, so this boundary belongs here—next to the
|
|
347
|
+
* source/transform assembly—rather than in `Run`.
|
|
348
|
+
*
|
|
349
|
+
* @internal
|
|
350
|
+
*/
|
|
351
|
+
export declare function getRunReadableStream<T>(global: Record<string, any>, ops: Promise<void>[], runId: string, name: string, startIndex: number | undefined, cryptoKey: EncryptionKeyParam): ReadableStream<T>;
|
|
352
|
+
/** Options for external hydration. Defaults preserve live, eager hydration. @internal */
|
|
353
|
+
type ExternalReviverOptions = {
|
|
354
|
+
/**
|
|
355
|
+
* Defer readable stream I/O until consumption, including nested streams.
|
|
356
|
+
* Writable streams still construct their forwarding pipe and lock poller
|
|
357
|
+
* during hydration; callers must drain `ops` even for unused writables.
|
|
358
|
+
*/
|
|
359
|
+
lazyStreams?: boolean;
|
|
360
|
+
/** Set false for terminal reporting: revive only the persisted abort snapshot. */
|
|
361
|
+
liveAbortSignals?: boolean;
|
|
362
|
+
/** Receives completion state when a wrapper owns the public readable. */
|
|
363
|
+
onReadableState?: (state: ReturnType<typeof createFlushableState>) => void;
|
|
364
|
+
};
|
|
203
365
|
/**
|
|
204
366
|
* Revivers for deserialization boundary from the client side,
|
|
205
367
|
* receiving the return value from the workflow handler.
|
|
@@ -208,7 +370,7 @@ export declare function getCommonRevivers(global?: Record<string, any>): {
|
|
|
208
370
|
* @param ops
|
|
209
371
|
* @param runId
|
|
210
372
|
*/
|
|
211
|
-
export declare function getExternalRevivers(global: Record<string, any> | undefined, ops: Promise<void>[], runId: string, cryptoKey: EncryptionKeyParam): Partial<Revivers>;
|
|
373
|
+
export declare function getExternalRevivers(global: Record<string, any> | undefined, ops: Promise<void>[], runId: string, cryptoKey: EncryptionKeyParam, options?: ExternalReviverOptions): Partial<Revivers>;
|
|
212
374
|
/**
|
|
213
375
|
* Revivers for deserialization boundary from within the workflow execution
|
|
214
376
|
* environment, receiving arguments from the client side, and return values
|
|
@@ -224,50 +386,123 @@ export declare function getWorkflowRevivers(global?: Record<string, any>): Parti
|
|
|
224
386
|
*
|
|
225
387
|
* @deprecated Use `encrypt` from `./serialization/encryption.js` instead.
|
|
226
388
|
*/
|
|
227
|
-
export declare function maybeEncrypt(data: Uint8Array, key:
|
|
389
|
+
export declare function maybeEncrypt(data: Uint8Array, key: PayloadKey | undefined): Promise<Uint8Array>;
|
|
228
390
|
/**
|
|
229
391
|
* Decrypt data if it has the 'encr' prefix.
|
|
230
392
|
*
|
|
231
393
|
* @deprecated Use `decrypt` from `./serialization/encryption.js` instead.
|
|
232
394
|
*/
|
|
233
|
-
export declare function maybeDecrypt(data: Uint8Array | unknown, key:
|
|
395
|
+
export declare function maybeDecrypt(data: Uint8Array | unknown, key: PayloadKey | undefined): Promise<Uint8Array | unknown>;
|
|
396
|
+
/**
|
|
397
|
+
* Replay hydration has two stages:
|
|
398
|
+
*
|
|
399
|
+
* 1. Host-side preparation decrypts and decompresses persisted data. That work
|
|
400
|
+
* is independent of a workflow VM and can be cached across replay VMs.
|
|
401
|
+
* 2. Deserialization revives the prepared representation against the current
|
|
402
|
+
* VM's globals. It must run again for every VM to produce fresh object graphs
|
|
403
|
+
* and correctly scoped Workflow objects.
|
|
404
|
+
*
|
|
405
|
+
* `data` is the boundary between those stages. For current-format payloads it
|
|
406
|
+
* is still format-prefixed serialized bytes, not a live JavaScript value.
|
|
407
|
+
*/
|
|
408
|
+
export interface PreparedReplayPayload {
|
|
409
|
+
readonly data: unknown;
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* Swappable implementation of the host-side preparation stage. Supporting
|
|
413
|
+
* both direct and promised results lets a future synchronous Node decryptor use
|
|
414
|
+
* the same cache contract as today's asynchronous Web Crypto implementation.
|
|
415
|
+
*/
|
|
416
|
+
export type ReplayPayloadPreparer = (value: unknown, key: PayloadKey | undefined) => PreparedReplayPayload | Promise<PreparedReplayPayload>;
|
|
417
|
+
/**
|
|
418
|
+
* Decrypt and decompress persisted data without parsing it into JavaScript.
|
|
419
|
+
* Legacy non-binary values pass through unchanged for their consumer to revive.
|
|
420
|
+
*/
|
|
421
|
+
export declare const prepareReplayPayload: ReplayPayloadPreparer;
|
|
422
|
+
/**
|
|
423
|
+
* Parse a prepared workflow argument or successful step/hook payload using the
|
|
424
|
+
* current workflow VM's globals and revivers. Each call intentionally creates
|
|
425
|
+
* a fresh object graph so mutations cannot leak across replay iterations.
|
|
426
|
+
*/
|
|
427
|
+
export declare function deserializePreparedReplayPayload(prepared: PreparedReplayPayload, global?: Record<string, any>, extraRevivers?: Record<string, (value: any) => any>): any;
|
|
428
|
+
/**
|
|
429
|
+
* Parse a prepared step error using the current workflow VM's class revivers.
|
|
430
|
+
* This preserves thrown-value identity without sharing objects between VMs.
|
|
431
|
+
*/
|
|
432
|
+
export declare function deserializePreparedStepError(prepared: PreparedReplayPayload, global?: Record<string, any>, extraRevivers?: Record<string, (value: any) => any>): unknown;
|
|
234
433
|
/**
|
|
235
434
|
* Called from the `start()` function to serialize the workflow arguments
|
|
236
435
|
* into a format that can be saved to the database and then hydrated from
|
|
237
436
|
* within the workflow execution environment.
|
|
437
|
+
*
|
|
438
|
+
* @param value - The value to serialize
|
|
439
|
+
* @param runId - The workflow run ID (required for encryption context)
|
|
440
|
+
* @param key - Encryption key (undefined to skip encryption)
|
|
441
|
+
* @param ops - Promise array for stream operations
|
|
442
|
+
* @param global - Global object for serialization context
|
|
443
|
+
* @param v1Compat - Enable legacy v1 compatibility mode
|
|
444
|
+
* @param framedByteStreams - Whether the target run can decode wire-framed
|
|
445
|
+
* byte streams. Should match the target deployment's capability: see
|
|
446
|
+
* `getRunCapabilities` in `capabilities.ts`. Defaults to `false` for
|
|
447
|
+
* backwards compatibility with older runs.
|
|
448
|
+
* @returns The dehydrated value as binary data (Uint8Array) with format prefix
|
|
238
449
|
*/
|
|
239
|
-
export declare function dehydrateWorkflowArguments(value: unknown, runId: string, key:
|
|
450
|
+
export declare function dehydrateWorkflowArguments(value: unknown, runId: string, key: PayloadKey | undefined, ops?: Promise<void>[], global?: Record<string, any>, v1Compat?: boolean, framedByteStreams?: boolean, compression?: boolean, readbackOps?: Promise<void>[]): Promise<Uint8Array | unknown>;
|
|
240
451
|
/**
|
|
241
452
|
* Called from workflow execution environment to hydrate the workflow
|
|
242
|
-
* arguments from the database at the start of workflow execution.
|
|
453
|
+
* arguments from the database at the start of workflow execution. A prepared
|
|
454
|
+
* payload skips host-side decrypt/decompress but always performs VM revival.
|
|
243
455
|
*/
|
|
244
|
-
export declare function hydrateWorkflowArguments(value: Uint8Array | unknown, _runId: string, key:
|
|
456
|
+
export declare function hydrateWorkflowArguments(value: Uint8Array | unknown, _runId: string, key: PayloadKey | undefined, global?: Record<string, any>, extraRevivers?: Record<string, (value: any) => any>, prepared?: PreparedReplayPayload): Promise<any>;
|
|
245
457
|
/**
|
|
246
458
|
* Dehydrate workflow return value for storage.
|
|
247
459
|
*/
|
|
248
|
-
export declare function dehydrateWorkflowReturnValue(value: unknown, _runId: string, key:
|
|
460
|
+
export declare function dehydrateWorkflowReturnValue(value: unknown, _runId: string, key: PayloadKey | undefined, global?: Record<string, any>, v1Compat?: boolean, compression?: boolean,
|
|
461
|
+
/**
|
|
462
|
+
* Optional sink receiving the first five samples and exact total count of
|
|
463
|
+
* workflow-code executions serialization could not avoid. The diagnostics
|
|
464
|
+
* are emitted as span attributes either way, so omitting this loses nothing
|
|
465
|
+
* observability-wise. The retained-VM gate in runtime/suspension-handler.ts
|
|
466
|
+
* passes one for step-input dehydration.
|
|
467
|
+
*/
|
|
468
|
+
guestCodeStatsOut?: GuestCodeStats): Promise<Uint8Array | unknown>;
|
|
249
469
|
/**
|
|
250
470
|
* Called from the client side to hydrate the workflow return value
|
|
251
471
|
* of a completed workflow run.
|
|
252
472
|
*/
|
|
253
|
-
export declare function hydrateWorkflowReturnValue(value: Uint8Array | unknown, runId: string, key:
|
|
473
|
+
export declare function hydrateWorkflowReturnValue(value: Uint8Array | unknown, runId: string, key: PayloadKey | undefined, ops?: Promise<void>[], global?: Record<string, any>, extraRevivers?: Record<string, (value: any) => any>): Promise<any>;
|
|
254
474
|
/**
|
|
255
475
|
* Called from the workflow handler when a step is being created.
|
|
256
476
|
* Dehydrates values from within the workflow execution environment.
|
|
257
477
|
*/
|
|
258
|
-
export declare function dehydrateStepArguments(value: unknown, _runId: string, key:
|
|
478
|
+
export declare function dehydrateStepArguments(value: unknown, _runId: string, key: PayloadKey | undefined, global?: Record<string, any>, v1Compat?: boolean, compression?: boolean,
|
|
479
|
+
/** See `dehydrateWorkflowReturnValue`. */
|
|
480
|
+
guestCodeStatsOut?: GuestCodeStats): Promise<Uint8Array | unknown>;
|
|
259
481
|
/**
|
|
260
|
-
* Called from the step
|
|
482
|
+
* Called from the step executor to hydrate the arguments of a step
|
|
261
483
|
* from the database at the start of the step execution.
|
|
262
484
|
*/
|
|
263
|
-
export declare function hydrateStepArguments(value: Uint8Array | unknown, runId: string, key:
|
|
485
|
+
export declare function hydrateStepArguments(value: Uint8Array | unknown, runId: string, key: PayloadKey | undefined, ops?: Promise<any>[], global?: Record<string, any>, extraRevivers?: Record<string, (value: any) => any>, deploymentId?: string, streamStates?: FlushableStreamState[]): Promise<any>;
|
|
264
486
|
/**
|
|
265
|
-
* Called from the step
|
|
266
|
-
* Dehydrates values from within the step execution environment
|
|
487
|
+
* Called from the step executor when a step has completed.
|
|
488
|
+
* Dehydrates values from within the step execution environment
|
|
489
|
+
* into a format that can be saved to the database.
|
|
490
|
+
*
|
|
491
|
+
* @param value - The value to serialize
|
|
492
|
+
* @param runId - Run ID for encryption context
|
|
493
|
+
* @param key - Encryption key (undefined to skip encryption)
|
|
494
|
+
* @param ops - Promise array for stream operations
|
|
495
|
+
* @param global - Global object for serialization context
|
|
496
|
+
* @param v1Compat - Enable legacy v1 compatibility mode
|
|
497
|
+
* @param framedByteStreams - Whether the target run can decode wire-framed
|
|
498
|
+
* byte streams. Should match the target deployment's capability: see
|
|
499
|
+
* `getRunCapabilities` in `capabilities.ts`. Defaults to `false` for
|
|
500
|
+
* backwards compatibility with older runs.
|
|
501
|
+
* @returns The dehydrated value as binary data (Uint8Array) with format prefix
|
|
267
502
|
*/
|
|
268
|
-
export declare function dehydrateStepReturnValue(value: unknown, runId: string, key:
|
|
503
|
+
export declare function dehydrateStepReturnValue(value: unknown, runId: string, key: PayloadKey | undefined, ops?: Promise<any>[], global?: Record<string, any>, v1Compat?: boolean, framedByteStreams?: boolean, compression?: boolean, runReadyBarrier?: Promise<unknown>, readbackOps?: Promise<void>[]): Promise<Uint8Array | unknown>;
|
|
269
504
|
/**
|
|
270
|
-
* Called from the step
|
|
505
|
+
* Called from the step executor when a step throws. Dehydrates the thrown
|
|
271
506
|
* value from within the step execution environment into a format that can
|
|
272
507
|
* be saved to the database in a `step_failed` or `step_retrying` event.
|
|
273
508
|
*
|
|
@@ -282,7 +517,7 @@ export declare function dehydrateStepReturnValue(value: unknown, runId: string,
|
|
|
282
517
|
* @param global - Global object for serialization context
|
|
283
518
|
* @returns The dehydrated value as binary data (Uint8Array) with format prefix
|
|
284
519
|
*/
|
|
285
|
-
export declare function dehydrateStepError(value: unknown, runId: string, key:
|
|
520
|
+
export declare function dehydrateStepError(value: unknown, runId: string, key: PayloadKey | undefined, ops?: Promise<any>[], global?: Record<string, any>, compression?: boolean): Promise<Uint8Array>;
|
|
286
521
|
/**
|
|
287
522
|
* Called from the workflow handler when replaying the event log of a
|
|
288
523
|
* `step_failed` or `step_retrying` event. Hydrates the thrown value from
|
|
@@ -293,9 +528,57 @@ export declare function dehydrateStepError(value: unknown, runId: string, key: C
|
|
|
293
528
|
* @param key - Encryption key (undefined to skip decryption)
|
|
294
529
|
* @param global - Global object for deserialization context
|
|
295
530
|
* @param extraRevivers - Additional revivers for custom types
|
|
531
|
+
* @param prepared - Optional cached decrypt/decompress result
|
|
296
532
|
* @returns The hydrated thrown value, ready to reject the step promise
|
|
297
533
|
*/
|
|
298
|
-
export declare function hydrateStepError(value: Uint8Array | unknown, _runId: string, key:
|
|
534
|
+
export declare function hydrateStepError(value: Uint8Array | unknown, _runId: string, key: PayloadKey | undefined, global?: Record<string, any>, extraRevivers?: Record<string, (value: any) => any>, prepared?: PreparedReplayPayload): Promise<unknown>;
|
|
535
|
+
/**
|
|
536
|
+
* Serialize a dynamic run's generated workflow VM code for storage.
|
|
537
|
+
*
|
|
538
|
+
* Dynamic workflow code is application source, so it gets the same treatment
|
|
539
|
+
* as any other run payload: compressed (it is plain text, which compresses
|
|
540
|
+
* very well), then encrypted with the run's key. At rest it is opaque
|
|
541
|
+
* ciphertext, which is the point — generated orchestration can name internal
|
|
542
|
+
* step ids, prompts, and business rules, and observability surfaces must not
|
|
543
|
+
* read it without going through the decrypt flow.
|
|
544
|
+
*
|
|
545
|
+
* The code is a plain string, so it needs none of the reducers the other
|
|
546
|
+
* payloads go through, but it is still written as real devalue under the
|
|
547
|
+
* `DEVALUE_V1` prefix: the generic hydrators (`hydrateData` behind the CLI
|
|
548
|
+
* and the observability UI) trust that prefix and hand the bytes to
|
|
549
|
+
* devalue's `parse`, which rejects a bare JSON string as invalid input.
|
|
550
|
+
*
|
|
551
|
+
* @param code - Generated workflow VM code.
|
|
552
|
+
* @param key - Encryption key (undefined to skip encryption).
|
|
553
|
+
* @param compression - Whether the target run may carry compressed payloads.
|
|
554
|
+
*/
|
|
555
|
+
export declare function dehydrateDynamicWorkflowCode(code: string, key: PayloadKey | undefined, compression?: boolean): Promise<Uint8Array>;
|
|
556
|
+
/**
|
|
557
|
+
* Hydrate a dynamic run's workflow VM code back into source, on the replay
|
|
558
|
+
* path.
|
|
559
|
+
*
|
|
560
|
+
* When the run has key material, or its execution context records that it was
|
|
561
|
+
* started with encryption, only the symmetric `encr` envelope is accepted.
|
|
562
|
+
* Plaintext would let anyone who can write the run record supply code, and a
|
|
563
|
+
* sealed `encp` envelope can be produced by anyone holding the run's public
|
|
564
|
+
* key, so neither is evidence that the run's own key encrypted it. This gives
|
|
565
|
+
* confidentiality and narrows who can supply code; it is not an integrity
|
|
566
|
+
* guarantee against a holder of the run key.
|
|
567
|
+
*
|
|
568
|
+
* Without key material (Worlds with no encryption), plaintext is accepted.
|
|
569
|
+
*
|
|
570
|
+
* @param value - Stored bytes from the run's `dynamicWorkflowCode`.
|
|
571
|
+
* @param key - Encryption key (undefined when encryption is disabled).
|
|
572
|
+
* @param options.encryptionRequired - The run was started with encryption
|
|
573
|
+
* (`executionContext.features.encryption`), so plaintext is refused even
|
|
574
|
+
* when no key was resolved.
|
|
575
|
+
* @throws SerializationError when the payload is not `encr` although
|
|
576
|
+
* encryption is required, or does not decode to a string: a corrupted or
|
|
577
|
+
* foreign payload must not reach the workflow VM as code.
|
|
578
|
+
*/
|
|
579
|
+
export declare function hydrateDynamicWorkflowCode(value: Uint8Array | unknown, key: PayloadKey | undefined, options?: {
|
|
580
|
+
encryptionRequired?: boolean;
|
|
581
|
+
}): Promise<string>;
|
|
299
582
|
/**
|
|
300
583
|
* Called from the workflow handler when the workflow itself throws.
|
|
301
584
|
* Dehydrates the thrown value from within the workflow execution environment
|
|
@@ -307,7 +590,7 @@ export declare function hydrateStepError(value: Uint8Array | unknown, _runId: st
|
|
|
307
590
|
* @param global - Global object for serialization context
|
|
308
591
|
* @returns The dehydrated value as binary data (Uint8Array) with format prefix
|
|
309
592
|
*/
|
|
310
|
-
export declare function dehydrateRunError(value: unknown, _runId: string, key:
|
|
593
|
+
export declare function dehydrateRunError(value: unknown, _runId: string, key: PayloadKey | undefined, global?: Record<string, any>, compression?: boolean): Promise<Uint8Array>;
|
|
311
594
|
/**
|
|
312
595
|
* Called from the client side (or observability tools) to hydrate the run
|
|
313
596
|
* error value of a failed workflow run.
|
|
@@ -318,9 +601,10 @@ export declare function dehydrateRunError(value: unknown, _runId: string, key: C
|
|
|
318
601
|
* @param ops - Promise array for stream operations
|
|
319
602
|
* @param global - Global object for deserialization context
|
|
320
603
|
* @param extraRevivers - Additional revivers for custom types
|
|
604
|
+
* @param options - External hydration policy, including lazy readable streams
|
|
321
605
|
* @returns The hydrated thrown value, ready to be consumed by the client
|
|
322
606
|
*/
|
|
323
|
-
export declare function hydrateRunError(value: Uint8Array | unknown, runId: string, key:
|
|
607
|
+
export declare function hydrateRunError(value: Uint8Array | unknown, runId: string, key: PayloadKey | undefined, ops?: Promise<void>[], global?: Record<string, any>, extraRevivers?: Record<string, (value: any) => any>, options?: ExternalReviverOptions): Promise<unknown>;
|
|
324
608
|
/**
|
|
325
609
|
* Called from the workflow handler when replaying the event log of a `step_completed` event.
|
|
326
610
|
* Hydrates the return value of a step from the database.
|
|
@@ -330,8 +614,9 @@ export declare function hydrateRunError(value: Uint8Array | unknown, runId: stri
|
|
|
330
614
|
* @param key - Encryption key (undefined to skip decryption)
|
|
331
615
|
* @param global - Global object for deserialization context
|
|
332
616
|
* @param extraRevivers - Additional revivers for custom types
|
|
617
|
+
* @param prepared - Optional cached decrypt/decompress result
|
|
333
618
|
* Called from the workflow handler when replaying the event log
|
|
334
619
|
* of a `step_completed` event.
|
|
335
620
|
*/
|
|
336
|
-
export declare function hydrateStepReturnValue(value: Uint8Array | unknown, _runId: string, key:
|
|
621
|
+
export declare function hydrateStepReturnValue(value: Uint8Array | unknown, _runId: string, key: PayloadKey | undefined, global?: Record<string, any>, extraRevivers?: Record<string, (value: any) => any>, prepared?: PreparedReplayPayload): Promise<any>;
|
|
337
622
|
//# sourceMappingURL=serialization.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serialization.d.ts","sourceRoot":"","sources":["../src/serialization.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"serialization.d.ts","sourceRoot":"","sources":["../src/serialization.ts"],"names":[],"mappings":"AAaA,OAAO,EACL,oBAAoB,EACpB,KAAK,oBAAoB,EAS1B,MAAM,uBA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