@workflow/world-testing 5.0.2 → 5.0.4
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/.well-known/workflow/v1/__step_registrations.mjs +88 -70
- package/dist/.well-known/workflow/v1/flow.mjs +12982 -12187
- package/dist/.well-known/workflow/v1/manifest.json +16 -16
- package/dist/src/in-band-fence.d.mts +10 -0
- package/dist/src/in-band-fence.d.mts.map +1 -0
- package/dist/src/in-band-fence.mjs +57 -0
- package/dist/src/index.d.mts.map +1 -1
- package/dist/src/index.mjs +3 -1
- package/dist/src/server.mjs +94 -3
- package/dist/src/util.d.mts +24 -0
- package/dist/src/util.d.mts.map +1 -1
- package/dist/src/util.mjs +25 -1
- package/package.json +6 -5
|
@@ -2891,6 +2891,16 @@ var init_global = __esm({
|
|
|
2891
2891
|
attributeCount;
|
|
2892
2892
|
hookDisposedCount;
|
|
2893
2893
|
abortCount;
|
|
2894
|
+
/**
|
|
2895
|
+
* Correlation ids of the open hooks that workflow code was waiting on a
|
|
2896
|
+
* payload for when the VM went idle, i.e. the hooks whose `hook_received`
|
|
2897
|
+
* could change what this suspension leads to. A hook absent from the set has
|
|
2898
|
+
* no waiting consumer, so a payload landing for it is buffered and inert
|
|
2899
|
+
* until the first `await`. `undefined` when the suspension was built without
|
|
2900
|
+
* the workflow context that tracks awaiters, which callers must read as
|
|
2901
|
+
* "every open hook is observed". See `runtime/out-of-band-observation.ts`.
|
|
2902
|
+
*/
|
|
2903
|
+
observedHookIds;
|
|
2894
2904
|
constructor(itemsInput, global2) {
|
|
2895
2905
|
const items = [
|
|
2896
2906
|
...itemsInput.values()
|
|
@@ -24781,13 +24791,13 @@ var init_events = __esm({
|
|
|
24781
24791
|
// meaning; replay skips it (see EventsConsumer). Never user-creatable.
|
|
24782
24792
|
"noop"
|
|
24783
24793
|
]));
|
|
24784
|
-
RunEventTypeSchema =
|
|
24794
|
+
RunEventTypeSchema = EventTypeSchema.extract([
|
|
24785
24795
|
"run_created",
|
|
24786
24796
|
"run_started",
|
|
24787
24797
|
"run_completed",
|
|
24788
24798
|
"run_failed",
|
|
24789
24799
|
"run_cancelled"
|
|
24790
|
-
])
|
|
24800
|
+
]);
|
|
24791
24801
|
RUN_EVENT_TYPES = RunEventTypeSchema.options;
|
|
24792
24802
|
TerminalRunEventTypeSchema = external_exports.compile(EventTypeSchema.extract([
|
|
24793
24803
|
"run_completed",
|
|
@@ -24795,40 +24805,40 @@ var init_events = __esm({
|
|
|
24795
24805
|
"run_cancelled"
|
|
24796
24806
|
]));
|
|
24797
24807
|
TERMINAL_RUN_EVENT_TYPES = TerminalRunEventTypeSchema.options;
|
|
24798
|
-
StepEventTypeSchema =
|
|
24808
|
+
StepEventTypeSchema = EventTypeSchema.extract([
|
|
24799
24809
|
"step_created",
|
|
24800
24810
|
"step_completed",
|
|
24801
24811
|
"step_failed",
|
|
24802
24812
|
"step_retrying",
|
|
24803
24813
|
"step_started"
|
|
24804
|
-
])
|
|
24814
|
+
]);
|
|
24805
24815
|
STEP_EVENT_TYPES = StepEventTypeSchema.options;
|
|
24806
|
-
TerminalStepEventTypeSchema =
|
|
24816
|
+
TerminalStepEventTypeSchema = EventTypeSchema.extract([
|
|
24807
24817
|
"step_completed",
|
|
24808
24818
|
"step_failed"
|
|
24809
|
-
])
|
|
24819
|
+
]);
|
|
24810
24820
|
TERMINAL_STEP_EVENT_TYPES = TerminalStepEventTypeSchema.options;
|
|
24811
|
-
HookLifecycleEventTypeSchema =
|
|
24821
|
+
HookLifecycleEventTypeSchema = EventTypeSchema.extract([
|
|
24812
24822
|
"hook_created",
|
|
24813
24823
|
"hook_received",
|
|
24814
24824
|
"hook_disposed"
|
|
24815
|
-
])
|
|
24825
|
+
]);
|
|
24816
24826
|
HOOK_LIFECYCLE_EVENT_TYPES = HookLifecycleEventTypeSchema.options;
|
|
24817
|
-
HookEventRequiringExistenceTypeSchema =
|
|
24827
|
+
HookEventRequiringExistenceTypeSchema = EventTypeSchema.extract([
|
|
24818
24828
|
"hook_disposed",
|
|
24819
24829
|
"hook_received"
|
|
24820
|
-
])
|
|
24830
|
+
]);
|
|
24821
24831
|
HOOK_EVENTS_REQUIRING_EXISTENCE = HookEventRequiringExistenceTypeSchema.options;
|
|
24822
|
-
WaitEventTypeSchema =
|
|
24832
|
+
WaitEventTypeSchema = EventTypeSchema.extract([
|
|
24823
24833
|
"wait_created",
|
|
24824
24834
|
"wait_completed"
|
|
24825
|
-
])
|
|
24835
|
+
]);
|
|
24826
24836
|
WAIT_EVENT_TYPES = WaitEventTypeSchema.options;
|
|
24827
|
-
ChildEntityCreationEventTypeSchema =
|
|
24837
|
+
ChildEntityCreationEventTypeSchema = EventTypeSchema.extract([
|
|
24828
24838
|
"step_created",
|
|
24829
24839
|
"hook_created",
|
|
24830
24840
|
"wait_created"
|
|
24831
|
-
])
|
|
24841
|
+
]);
|
|
24832
24842
|
CHILD_ENTITY_CREATION_EVENT_TYPES = ChildEntityCreationEventTypeSchema.options;
|
|
24833
24843
|
BaseEventSchema = external_exports.compile(external_exports.object({
|
|
24834
24844
|
eventType: EventTypeSchema,
|
|
@@ -24866,7 +24876,7 @@ var init_events = __esm({
|
|
|
24866
24876
|
// 'optimisticStart'), so latency metrics can be segmented by them.
|
|
24867
24877
|
optimizations: external_exports.array(external_exports.string()).optional()
|
|
24868
24878
|
};
|
|
24869
|
-
StepCompletedEventSchema =
|
|
24879
|
+
StepCompletedEventSchema = BaseEventSchema.extend({
|
|
24870
24880
|
eventType: external_exports.literal("step_completed"),
|
|
24871
24881
|
correlationId: external_exports.string(),
|
|
24872
24882
|
eventData: external_exports.object({
|
|
@@ -24878,8 +24888,8 @@ var init_events = __esm({
|
|
|
24878
24888
|
result: SerializedDataSchema,
|
|
24879
24889
|
...stepLatencyTelemetryFields
|
|
24880
24890
|
})
|
|
24881
|
-
})
|
|
24882
|
-
StepFailedEventSchema =
|
|
24891
|
+
});
|
|
24892
|
+
StepFailedEventSchema = BaseEventSchema.extend({
|
|
24883
24893
|
eventType: external_exports.literal("step_failed"),
|
|
24884
24894
|
correlationId: external_exports.string(),
|
|
24885
24895
|
eventData: external_exports.object({
|
|
@@ -24889,8 +24899,8 @@ var init_events = __esm({
|
|
|
24889
24899
|
error: SerializedDataSchema,
|
|
24890
24900
|
...stepLatencyTelemetryFields
|
|
24891
24901
|
})
|
|
24892
|
-
})
|
|
24893
|
-
StepRetryingEventSchema =
|
|
24902
|
+
});
|
|
24903
|
+
StepRetryingEventSchema = BaseEventSchema.extend({
|
|
24894
24904
|
eventType: external_exports.literal("step_retrying"),
|
|
24895
24905
|
correlationId: external_exports.string(),
|
|
24896
24906
|
eventData: external_exports.object({
|
|
@@ -24900,8 +24910,8 @@ var init_events = __esm({
|
|
|
24900
24910
|
error: SerializedDataSchema,
|
|
24901
24911
|
retryAfter: external_exports.coerce.date().optional()
|
|
24902
24912
|
})
|
|
24903
|
-
})
|
|
24904
|
-
StepStartedEventSchema =
|
|
24913
|
+
});
|
|
24914
|
+
StepStartedEventSchema = BaseEventSchema.extend({
|
|
24905
24915
|
eventType: external_exports.literal("step_started"),
|
|
24906
24916
|
correlationId: external_exports.string(),
|
|
24907
24917
|
eventData: external_exports.object({
|
|
@@ -24927,8 +24937,8 @@ var init_events = __esm({
|
|
|
24927
24937
|
// one message (see the Queue.createQueueHandler meta contract).
|
|
24928
24938
|
ownerMessageId: external_exports.string().optional()
|
|
24929
24939
|
}).optional()
|
|
24930
|
-
})
|
|
24931
|
-
StepCreatedEventSchema =
|
|
24940
|
+
});
|
|
24941
|
+
StepCreatedEventSchema = BaseEventSchema.extend({
|
|
24932
24942
|
eventType: external_exports.literal("step_created"),
|
|
24933
24943
|
correlationId: external_exports.string(),
|
|
24934
24944
|
eventData: external_exports.object({
|
|
@@ -24936,7 +24946,7 @@ var init_events = __esm({
|
|
|
24936
24946
|
workflowName: external_exports.string().optional(),
|
|
24937
24947
|
input: SerializedDataSchema
|
|
24938
24948
|
})
|
|
24939
|
-
})
|
|
24949
|
+
});
|
|
24940
24950
|
HookCreatedEventSchema = external_exports.compile(BaseEventSchema.extend({
|
|
24941
24951
|
eventType: external_exports.literal("hook_created"),
|
|
24942
24952
|
correlationId: external_exports.string(),
|
|
@@ -24971,15 +24981,15 @@ var init_events = __esm({
|
|
|
24971
24981
|
}).optional()
|
|
24972
24982
|
})
|
|
24973
24983
|
}));
|
|
24974
|
-
HookReceivedEventSchema =
|
|
24984
|
+
HookReceivedEventSchema = BaseEventSchema.extend({
|
|
24975
24985
|
eventType: external_exports.literal("hook_received"),
|
|
24976
24986
|
correlationId: external_exports.string(),
|
|
24977
24987
|
eventData: external_exports.object({
|
|
24978
24988
|
token: external_exports.string().optional(),
|
|
24979
24989
|
payload: SerializedDataSchema
|
|
24980
24990
|
})
|
|
24981
|
-
})
|
|
24982
|
-
HookDisposedEventSchema =
|
|
24991
|
+
});
|
|
24992
|
+
HookDisposedEventSchema = BaseEventSchema.extend({
|
|
24983
24993
|
eventType: external_exports.literal("hook_disposed"),
|
|
24984
24994
|
correlationId: external_exports.string(),
|
|
24985
24995
|
eventData: external_exports.object({
|
|
@@ -24995,8 +25005,8 @@ var init_events = __esm({
|
|
|
24995
25005
|
hookId: external_exports.string()
|
|
24996
25006
|
}).optional()
|
|
24997
25007
|
}).optional()
|
|
24998
|
-
})
|
|
24999
|
-
HookConflictEventSchema =
|
|
25008
|
+
});
|
|
25009
|
+
HookConflictEventSchema = BaseEventSchema.extend({
|
|
25000
25010
|
eventType: external_exports.literal("hook_conflict"),
|
|
25001
25011
|
correlationId: external_exports.string(),
|
|
25002
25012
|
eventData: external_exports.object({
|
|
@@ -25016,28 +25026,28 @@ var init_events = __esm({
|
|
|
25016
25026
|
*/
|
|
25017
25027
|
forceRefusedReason: external_exports.literal("victim-spec-version").optional()
|
|
25018
25028
|
})
|
|
25019
|
-
})
|
|
25020
|
-
NoopEventSchema =
|
|
25029
|
+
});
|
|
25030
|
+
NoopEventSchema = BaseEventSchema.extend({
|
|
25021
25031
|
eventType: external_exports.literal("noop"),
|
|
25022
25032
|
eventData: external_exports.object({
|
|
25023
25033
|
sealed: external_exports.boolean().optional()
|
|
25024
25034
|
}).passthrough().optional()
|
|
25025
|
-
})
|
|
25026
|
-
WaitCreatedEventSchema =
|
|
25035
|
+
});
|
|
25036
|
+
WaitCreatedEventSchema = BaseEventSchema.extend({
|
|
25027
25037
|
eventType: external_exports.literal("wait_created"),
|
|
25028
25038
|
correlationId: external_exports.string(),
|
|
25029
25039
|
eventData: external_exports.object({
|
|
25030
25040
|
resumeAt: external_exports.coerce.date()
|
|
25031
25041
|
})
|
|
25032
|
-
})
|
|
25033
|
-
WaitCompletedEventSchema =
|
|
25042
|
+
});
|
|
25043
|
+
WaitCompletedEventSchema = BaseEventSchema.extend({
|
|
25034
25044
|
eventType: external_exports.literal("wait_completed"),
|
|
25035
25045
|
correlationId: external_exports.string(),
|
|
25036
25046
|
eventData: external_exports.object({
|
|
25037
25047
|
resumeAt: external_exports.coerce.date().optional()
|
|
25038
25048
|
}).optional()
|
|
25039
|
-
})
|
|
25040
|
-
AttributeWriterSchema = external_exports.
|
|
25049
|
+
});
|
|
25050
|
+
AttributeWriterSchema = external_exports.discriminatedUnion("type", [
|
|
25041
25051
|
external_exports.object({
|
|
25042
25052
|
type: external_exports.literal("workflow")
|
|
25043
25053
|
}),
|
|
@@ -25046,8 +25056,8 @@ var init_events = __esm({
|
|
|
25046
25056
|
stepId: external_exports.string(),
|
|
25047
25057
|
attempt: external_exports.number()
|
|
25048
25058
|
})
|
|
25049
|
-
])
|
|
25050
|
-
AttrSetEventSchema =
|
|
25059
|
+
]);
|
|
25060
|
+
AttrSetEventSchema = BaseEventSchema.extend({
|
|
25051
25061
|
eventType: external_exports.literal("attr_set"),
|
|
25052
25062
|
correlationId: external_exports.string().optional(),
|
|
25053
25063
|
eventData: external_exports.object({
|
|
@@ -25055,8 +25065,8 @@ var init_events = __esm({
|
|
|
25055
25065
|
writer: AttributeWriterSchema,
|
|
25056
25066
|
allowReservedAttributes: external_exports.literal(true).optional()
|
|
25057
25067
|
})
|
|
25058
|
-
})
|
|
25059
|
-
RunCreatedEventSchema =
|
|
25068
|
+
});
|
|
25069
|
+
RunCreatedEventSchema = BaseEventSchema.extend({
|
|
25060
25070
|
eventType: external_exports.literal("run_created"),
|
|
25061
25071
|
eventData: external_exports.object({
|
|
25062
25072
|
deploymentId: external_exports.string(),
|
|
@@ -25089,8 +25099,8 @@ var init_events = __esm({
|
|
|
25089
25099
|
],
|
|
25090
25100
|
message: "dynamicWorkflowCode and dynamicWorkflowCodeRef are mutually exclusive"
|
|
25091
25101
|
})
|
|
25092
|
-
})
|
|
25093
|
-
RunStartedEventSchema =
|
|
25102
|
+
});
|
|
25103
|
+
RunStartedEventSchema = BaseEventSchema.extend({
|
|
25094
25104
|
eventType: external_exports.literal("run_started"),
|
|
25095
25105
|
eventData: external_exports.object({
|
|
25096
25106
|
input: SerializedDataSchema.optional(),
|
|
@@ -25115,14 +25125,14 @@ var init_events = __esm({
|
|
|
25115
25125
|
],
|
|
25116
25126
|
message: "dynamicWorkflowCode and dynamicWorkflowCodeRef are mutually exclusive"
|
|
25117
25127
|
}).optional()
|
|
25118
|
-
})
|
|
25119
|
-
RunCompletedEventSchema =
|
|
25128
|
+
});
|
|
25129
|
+
RunCompletedEventSchema = BaseEventSchema.extend({
|
|
25120
25130
|
eventType: external_exports.literal("run_completed"),
|
|
25121
25131
|
eventData: external_exports.object({
|
|
25122
25132
|
output: SerializedDataSchema.optional()
|
|
25123
25133
|
})
|
|
25124
|
-
})
|
|
25125
|
-
RunFailedEventSchema =
|
|
25134
|
+
});
|
|
25135
|
+
RunFailedEventSchema = BaseEventSchema.extend({
|
|
25126
25136
|
eventType: external_exports.literal("run_failed"),
|
|
25127
25137
|
eventData: external_exports.object({
|
|
25128
25138
|
// The thrown value, serialized via the workflow serialization pipeline.
|
|
@@ -25134,8 +25144,8 @@ var init_events = __esm({
|
|
|
25134
25144
|
// the full error payload.
|
|
25135
25145
|
errorCode: external_exports.string().optional()
|
|
25136
25146
|
})
|
|
25137
|
-
})
|
|
25138
|
-
RunCancelledEventSchema =
|
|
25147
|
+
});
|
|
25148
|
+
RunCancelledEventSchema = BaseEventSchema.extend({
|
|
25139
25149
|
eventType: external_exports.literal("run_cancelled"),
|
|
25140
25150
|
eventData: external_exports.object({
|
|
25141
25151
|
// Optional free-text reason for the cancellation. Kept as small
|
|
@@ -25143,7 +25153,7 @@ var init_events = __esm({
|
|
|
25143
25153
|
// resolveData: 'none' and can be displayed without decryption.
|
|
25144
25154
|
cancelReason: external_exports.string().max(512).optional()
|
|
25145
25155
|
}).optional()
|
|
25146
|
-
})
|
|
25156
|
+
});
|
|
25147
25157
|
CreateEventSchema = external_exports.compile(external_exports.discriminatedUnion("eventType", [
|
|
25148
25158
|
// Run lifecycle events
|
|
25149
25159
|
RunCreatedEventSchema,
|
|
@@ -25166,7 +25176,7 @@ var init_events = __esm({
|
|
|
25166
25176
|
WaitCreatedEventSchema,
|
|
25167
25177
|
WaitCompletedEventSchema
|
|
25168
25178
|
]));
|
|
25169
|
-
AllEventsSchema = external_exports.
|
|
25179
|
+
AllEventsSchema = external_exports.discriminatedUnion("eventType", [
|
|
25170
25180
|
// Run lifecycle events
|
|
25171
25181
|
RunCreatedEventSchema,
|
|
25172
25182
|
RunStartedEventSchema,
|
|
@@ -25189,7 +25199,7 @@ var init_events = __esm({
|
|
|
25189
25199
|
WaitCreatedEventSchema,
|
|
25190
25200
|
WaitCompletedEventSchema,
|
|
25191
25201
|
NoopEventSchema
|
|
25192
|
-
])
|
|
25202
|
+
]);
|
|
25193
25203
|
EventSchema = external_exports.compile(AllEventsSchema.and(external_exports.object({
|
|
25194
25204
|
runId: external_exports.string(),
|
|
25195
25205
|
eventId: external_exports.string(),
|
|
@@ -27434,7 +27444,7 @@ async function compress(data2, mode, stats, opts) {
|
|
|
27434
27444
|
recordStats(stats, "none", data2.length, data2.length);
|
|
27435
27445
|
return data2;
|
|
27436
27446
|
}
|
|
27437
|
-
const compressed = codec2 === "zstd" ? opts?.preferAsync ? await zstdBytesAsync(data2) : zstdBytes(data2) : await gzipBytes(data2);
|
|
27447
|
+
const compressed = codec2 === "zstd" ? opts?.preferAsync && data2.length >= COMPRESSION_ASYNC_MIN_BYTES ? await zstdBytesAsync(data2) : zstdBytes(data2) : await gzipBytes(data2);
|
|
27438
27448
|
const format = codec2 === "zstd" ? SerializationFormat.ZSTD : SerializationFormat.GZIP;
|
|
27439
27449
|
const wrappedLength = 4 + compressed.length;
|
|
27440
27450
|
if (wrappedLength >= data2.length * (1 - COMPRESSION_MIN_SAVINGS_RATIO)) {
|
|
@@ -27465,7 +27475,7 @@ async function decompress(data2, stats, opts) {
|
|
|
27465
27475
|
recordStats(stats, "none", data2.length, data2.length);
|
|
27466
27476
|
return data2;
|
|
27467
27477
|
}
|
|
27468
|
-
var COMPRESSION_MIN_BYTES, COMPRESSION_MIN_SAVINGS_RATIO, ZSTD_LEVEL, DecompressedSizeLimitError;
|
|
27478
|
+
var COMPRESSION_MIN_BYTES, COMPRESSION_MIN_SAVINGS_RATIO, COMPRESSION_ASYNC_MIN_BYTES, ZSTD_LEVEL, DecompressedSizeLimitError;
|
|
27469
27479
|
var init_compression = __esm({
|
|
27470
27480
|
"../core/dist/serialization/compression.js"() {
|
|
27471
27481
|
"use strict";
|
|
@@ -27473,6 +27483,7 @@ var init_compression = __esm({
|
|
|
27473
27483
|
init_types();
|
|
27474
27484
|
COMPRESSION_MIN_BYTES = 1024;
|
|
27475
27485
|
COMPRESSION_MIN_SAVINGS_RATIO = 0.05;
|
|
27486
|
+
COMPRESSION_ASYNC_MIN_BYTES = 256 * 1024;
|
|
27476
27487
|
ZSTD_LEVEL = 3;
|
|
27477
27488
|
__name(isCompressionDisabledByEnv, "isCompressionDisabledByEnv");
|
|
27478
27489
|
__name(codecOverrideFromEnv, "codecOverrideFromEnv");
|
|
@@ -30285,7 +30296,9 @@ async function serialize(value, encryptionKey, options) {
|
|
|
30285
30296
|
try {
|
|
30286
30297
|
const payload = devalueCodec.serialize(value, "client", options);
|
|
30287
30298
|
const prefixed = encodeWithFormatPrefix(SerializationFormat.DEVALUE_V1, payload);
|
|
30288
|
-
const compressed = await compress(prefixed, options?.compression ?? false, options?.compressionStats
|
|
30299
|
+
const compressed = await compress(prefixed, options?.compression ?? false, options?.compressionStats, {
|
|
30300
|
+
preferAsync: true
|
|
30301
|
+
});
|
|
30289
30302
|
return encrypt2(compressed, encryptionKey);
|
|
30290
30303
|
} catch (error61) {
|
|
30291
30304
|
rethrowIfRuntimeError(error61);
|
|
@@ -32584,7 +32597,7 @@ var version2;
|
|
|
32584
32597
|
var init_version = __esm({
|
|
32585
32598
|
"../core/dist/version.js"() {
|
|
32586
32599
|
"use strict";
|
|
32587
|
-
version2 = "5.1
|
|
32600
|
+
version2 = "5.2.1";
|
|
32588
32601
|
}
|
|
32589
32602
|
});
|
|
32590
32603
|
|
|
@@ -47612,9 +47625,13 @@ async function start(workflow, argsOrOptions, options) {
|
|
|
47612
47625
|
}
|
|
47613
47626
|
const workflowVm = getWorkflowVmFromEnv();
|
|
47614
47627
|
const snapshotThreshold = getSnapshotThresholdFromEnv();
|
|
47628
|
+
const queueNamespace = resolveQueueNamespace(opts.namespace);
|
|
47615
47629
|
const executionContext = {
|
|
47616
47630
|
traceCarrier,
|
|
47617
47631
|
workflowCoreVersion: version2,
|
|
47632
|
+
...queueNamespace ? {
|
|
47633
|
+
queueNamespace
|
|
47634
|
+
} : {},
|
|
47618
47635
|
...targetNodeVersion ? {
|
|
47619
47636
|
nodeVersion: targetNodeVersion
|
|
47620
47637
|
} : {},
|
|
@@ -47645,7 +47662,8 @@ async function start(workflow, argsOrOptions, options) {
|
|
|
47645
47662
|
}
|
|
47646
47663
|
}
|
|
47647
47664
|
const compression = specVersion >= SPEC_VERSION_SUPPORTS_COMPRESSION ? targetCompression : false;
|
|
47648
|
-
const
|
|
47665
|
+
const argumentCompression = opts.compressArguments === false ? false : compression;
|
|
47666
|
+
const workflowArguments = await dehydrateWorkflowArguments(args, runId, encryptionKey, ops, globalThis, v1Compat, framedByteStreams, argumentCompression);
|
|
47649
47667
|
let dynamicWorkflowCode;
|
|
47650
47668
|
let dynamicWorkflowCodeRef;
|
|
47651
47669
|
if (dynamicWorkflow) {
|
|
@@ -47779,7 +47797,7 @@ __name(start, "start");
|
|
|
47779
47797
|
value: "start",
|
|
47780
47798
|
configurable: true
|
|
47781
47799
|
});
|
|
47782
|
-
})(start, "step//@workflow/core/runtime/start@5.1
|
|
47800
|
+
})(start, "step//@workflow/core/runtime/start@5.2.1//start");
|
|
47783
47801
|
|
|
47784
47802
|
// ../core/dist/runtime/runs.js
|
|
47785
47803
|
async function wakeUpRun(world, runId, options) {
|
|
@@ -48253,7 +48271,7 @@ var Run = class _Run {
|
|
|
48253
48271
|
value: "wakeUp",
|
|
48254
48272
|
configurable: true
|
|
48255
48273
|
});
|
|
48256
|
-
})(Run.prototype["wakeUp"], "step//@workflow/core/runtime/run@5.1
|
|
48274
|
+
})(Run.prototype["wakeUp"], "step//@workflow/core/runtime/run@5.2.1//Run#wakeUp");
|
|
48257
48275
|
(function(__wf_fn, __wf_id) {
|
|
48258
48276
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
48259
48277
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -48262,7 +48280,7 @@ var Run = class _Run {
|
|
|
48262
48280
|
value: "cancel",
|
|
48263
48281
|
configurable: true
|
|
48264
48282
|
});
|
|
48265
|
-
})(Run.prototype["cancel"], "step//@workflow/core/runtime/run@5.1
|
|
48283
|
+
})(Run.prototype["cancel"], "step//@workflow/core/runtime/run@5.2.1//Run#cancel");
|
|
48266
48284
|
(function(__wf_fn, __wf_id) {
|
|
48267
48285
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
48268
48286
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -48271,7 +48289,7 @@ var Run = class _Run {
|
|
|
48271
48289
|
value: "getReadable",
|
|
48272
48290
|
configurable: true
|
|
48273
48291
|
});
|
|
48274
|
-
})(Run.prototype["getReadable"], "step//@workflow/core/runtime/run@5.1
|
|
48292
|
+
})(Run.prototype["getReadable"], "step//@workflow/core/runtime/run@5.2.1//Run#getReadable");
|
|
48275
48293
|
(function(__wf_fn, __wf_id) {
|
|
48276
48294
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
48277
48295
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -48280,7 +48298,7 @@ var Run = class _Run {
|
|
|
48280
48298
|
value: "getWritable",
|
|
48281
48299
|
configurable: true
|
|
48282
48300
|
});
|
|
48283
|
-
})(Run.prototype["getWritable"], "step//@workflow/core/runtime/run@5.1
|
|
48301
|
+
})(Run.prototype["getWritable"], "step//@workflow/core/runtime/run@5.2.1//Run#getWritable");
|
|
48284
48302
|
(function(__wf_fn, __wf_id) {
|
|
48285
48303
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
48286
48304
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -48289,7 +48307,7 @@ var Run = class _Run {
|
|
|
48289
48307
|
value: "exists",
|
|
48290
48308
|
configurable: true
|
|
48291
48309
|
});
|
|
48292
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "exists").get, "step//@workflow/core/runtime/run@5.1
|
|
48310
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "exists").get, "step//@workflow/core/runtime/run@5.2.1//Run#exists");
|
|
48293
48311
|
(function(__wf_fn, __wf_id) {
|
|
48294
48312
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
48295
48313
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -48298,7 +48316,7 @@ var Run = class _Run {
|
|
|
48298
48316
|
value: "status",
|
|
48299
48317
|
configurable: true
|
|
48300
48318
|
});
|
|
48301
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "status").get, "step//@workflow/core/runtime/run@5.1
|
|
48319
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "status").get, "step//@workflow/core/runtime/run@5.2.1//Run#status");
|
|
48302
48320
|
(function(__wf_fn, __wf_id) {
|
|
48303
48321
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
48304
48322
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -48307,7 +48325,7 @@ var Run = class _Run {
|
|
|
48307
48325
|
value: "returnValue",
|
|
48308
48326
|
configurable: true
|
|
48309
48327
|
});
|
|
48310
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "returnValue").get, "step//@workflow/core/runtime/run@5.1
|
|
48328
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "returnValue").get, "step//@workflow/core/runtime/run@5.2.1//Run#returnValue");
|
|
48311
48329
|
(function(__wf_fn, __wf_id) {
|
|
48312
48330
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
48313
48331
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -48316,7 +48334,7 @@ var Run = class _Run {
|
|
|
48316
48334
|
value: "workflowName",
|
|
48317
48335
|
configurable: true
|
|
48318
48336
|
});
|
|
48319
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "workflowName").get, "step//@workflow/core/runtime/run@5.1
|
|
48337
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "workflowName").get, "step//@workflow/core/runtime/run@5.2.1//Run#workflowName");
|
|
48320
48338
|
(function(__wf_fn, __wf_id) {
|
|
48321
48339
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
48322
48340
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -48325,7 +48343,7 @@ var Run = class _Run {
|
|
|
48325
48343
|
value: "createdAt",
|
|
48326
48344
|
configurable: true
|
|
48327
48345
|
});
|
|
48328
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "createdAt").get, "step//@workflow/core/runtime/run@5.1
|
|
48346
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "createdAt").get, "step//@workflow/core/runtime/run@5.2.1//Run#createdAt");
|
|
48329
48347
|
(function(__wf_fn, __wf_id) {
|
|
48330
48348
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
48331
48349
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -48334,7 +48352,7 @@ var Run = class _Run {
|
|
|
48334
48352
|
value: "startedAt",
|
|
48335
48353
|
configurable: true
|
|
48336
48354
|
});
|
|
48337
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "startedAt").get, "step//@workflow/core/runtime/run@5.1
|
|
48355
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "startedAt").get, "step//@workflow/core/runtime/run@5.2.1//Run#startedAt");
|
|
48338
48356
|
(function(__wf_fn, __wf_id) {
|
|
48339
48357
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
48340
48358
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -48343,7 +48361,7 @@ var Run = class _Run {
|
|
|
48343
48361
|
value: "completedAt",
|
|
48344
48362
|
configurable: true
|
|
48345
48363
|
});
|
|
48346
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "completedAt").get, "step//@workflow/core/runtime/run@5.1
|
|
48364
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "completedAt").get, "step//@workflow/core/runtime/run@5.2.1//Run#completedAt");
|
|
48347
48365
|
(function(__wf_cls, __wf_id) {
|
|
48348
48366
|
var __wf_sym = /* @__PURE__ */ Symbol.for("workflow-class-registry"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
48349
48367
|
__wf_reg.set(__wf_id, __wf_cls);
|
|
@@ -48353,7 +48371,7 @@ var Run = class _Run {
|
|
|
48353
48371
|
enumerable: false,
|
|
48354
48372
|
configurable: false
|
|
48355
48373
|
});
|
|
48356
|
-
})(Run, "class//@workflow/core/runtime/run@5.1
|
|
48374
|
+
})(Run, "class//@workflow/core/runtime/run@5.2.1//Run");
|
|
48357
48375
|
|
|
48358
48376
|
// ../workflow/dist/stdlib.js
|
|
48359
48377
|
async function fetch2(...args) {
|