@workflow/world-testing 5.0.0-beta.21 → 5.0.0-beta.23
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.
|
@@ -16000,6 +16000,7 @@ var init_events2 = __esm({
|
|
|
16000
16000
|
runId: external_exports2.string(),
|
|
16001
16001
|
eventId: external_exports2.string(),
|
|
16002
16002
|
createdAt: external_exports2.coerce.date(),
|
|
16003
|
+
occurredAt: external_exports2.coerce.date().optional(),
|
|
16003
16004
|
specVersion: external_exports2.number().optional()
|
|
16004
16005
|
}));
|
|
16005
16006
|
}
|
|
@@ -17090,7 +17091,7 @@ var init_log_format2 = __esm({
|
|
|
17090
17091
|
function SemanticConvention2(...names) {
|
|
17091
17092
|
return (value) => Object.fromEntries(names.map((name) => [name, value]));
|
|
17092
17093
|
}
|
|
17093
|
-
var WorkflowName2, WorkflowOperation2, WorkflowRunId2, WorkflowRunStatus2, WorkflowStartedAt2, WorkflowEventsCount2, WorkflowArgumentsCount2, WorkflowResultType2, WorkflowTracePropagated2, WorkflowTraceMode2, WorkflowErrorName2, WorkflowErrorMessage2, WorkflowErrorCode2, WorkflowStepsCreated2, WorkflowHooksCreated2, WorkflowWaitsCreated2, StepName2, StepId2, StepAttempt2, StepStatus2, StepMaxRetries2, StepTracePropagated2, StepSkipped2, StepSkipReason2, StepArgumentsCount2, StepResultType2, StepErrorName2, StepErrorMessage2, StepFatalError2, StepRetryExhausted2, StepRetryTimeoutSeconds2, StepRetryWillRetry2, MessagingSystem2, MessagingDestinationName2, MessagingMessageId2, MessagingOperationType2, QueueOverheadMs2, DeploymentId2, HookToken2, HookId2, HookFound2, WebhookHandlersTriggered2, WorkflowSuspensionState2, WorkflowSuspensionHookCount2, WorkflowSuspensionStepCount2, WorkflowSuspensionWaitCount2, HttpRequestMethod2, UrlFull2, ServerAddress2, ServerPort2, HttpResponseStatusCode2, ErrorType2, WorldParseFormat2, WorkflowEventsPagesLoaded2, QueueDeserializeTimeMs2, QueueExecutionTimeMs2, QueueSerializeTimeMs2, SerializationOperation2, SerializationCompressed2, SerializationCodec2, SerializationUncompressedBytes2, SerializationStoredBytes2, SerializationCompressionRatio2, PeerService2, RpcSystem2, RpcService2, RpcMethod2, ErrorRetryable2, ErrorCategory2;
|
|
17094
|
+
var WorkflowName2, WorkflowOperation2, WorkflowRunId2, WorkflowRunStatus2, WorkflowStartedAt2, WorkflowEventsCount2, WorkflowArgumentsCount2, WorkflowResultType2, WorkflowTracePropagated2, WorkflowTraceMode2, WorkflowTurbo2, WorkflowErrorName2, WorkflowErrorMessage2, WorkflowErrorCode2, WorkflowStepsCreated2, WorkflowHooksCreated2, WorkflowWaitsCreated2, WorkflowRouteType2, WorkflowRouteHandlerCached2, WorkflowRouteInvocationCount2, WorkflowRouteEntrypointAgeMs2, WorkflowRouteModuleBodyInitMs2, StepName2, StepId2, StepAttempt2, StepStatus2, StepMaxRetries2, StepTracePropagated2, StepSkipped2, StepSkipReason2, StepArgumentsCount2, StepResultType2, StepErrorName2, StepErrorMessage2, StepFatalError2, StepRetryExhausted2, StepRetryTimeoutSeconds2, StepRetryWillRetry2, MessagingSystem2, MessagingDestinationName2, MessagingMessageId2, MessagingOperationType2, QueueOverheadMs2, DeploymentId2, HookToken2, HookId2, HookFound2, WebhookHandlersTriggered2, WorkflowSuspensionState2, WorkflowSuspensionHookCount2, WorkflowSuspensionStepCount2, WorkflowSuspensionWaitCount2, HttpRequestMethod2, HttpRoute2, UrlFull2, ServerAddress2, ServerPort2, HttpResponseStatusCode2, ErrorType2, WorldParseFormat2, WorkflowEventsPagesLoaded2, QueueDeserializeTimeMs2, QueueExecutionTimeMs2, QueueSerializeTimeMs2, SerializationOperation2, SerializationCompressed2, SerializationCodec2, SerializationUncompressedBytes2, SerializationStoredBytes2, SerializationCompressionRatio2, PeerService2, RpcSystem2, RpcService2, RpcMethod2, ErrorRetryable2, ErrorCategory2;
|
|
17094
17095
|
var init_semantic_conventions2 = __esm({
|
|
17095
17096
|
"../core/dist/telemetry/semantic-conventions.js"() {
|
|
17096
17097
|
"use strict";
|
|
@@ -17105,12 +17106,18 @@ var init_semantic_conventions2 = __esm({
|
|
|
17105
17106
|
WorkflowResultType2 = SemanticConvention2("workflow.result.type");
|
|
17106
17107
|
WorkflowTracePropagated2 = SemanticConvention2("workflow.trace.propagated");
|
|
17107
17108
|
WorkflowTraceMode2 = SemanticConvention2("workflow.trace.mode");
|
|
17109
|
+
WorkflowTurbo2 = SemanticConvention2("workflow.turbo");
|
|
17108
17110
|
WorkflowErrorName2 = SemanticConvention2("workflow.error.name");
|
|
17109
17111
|
WorkflowErrorMessage2 = SemanticConvention2("workflow.error.message");
|
|
17110
17112
|
WorkflowErrorCode2 = SemanticConvention2("workflow.error.code");
|
|
17111
17113
|
WorkflowStepsCreated2 = SemanticConvention2("workflow.steps.created");
|
|
17112
17114
|
WorkflowHooksCreated2 = SemanticConvention2("workflow.hooks.created");
|
|
17113
17115
|
WorkflowWaitsCreated2 = SemanticConvention2("workflow.waits.created");
|
|
17116
|
+
WorkflowRouteType2 = SemanticConvention2("workflow.route.type");
|
|
17117
|
+
WorkflowRouteHandlerCached2 = SemanticConvention2("workflow.route.handler_cached");
|
|
17118
|
+
WorkflowRouteInvocationCount2 = SemanticConvention2("workflow.route.invocation_count");
|
|
17119
|
+
WorkflowRouteEntrypointAgeMs2 = SemanticConvention2("workflow.route.entrypoint_age_ms");
|
|
17120
|
+
WorkflowRouteModuleBodyInitMs2 = SemanticConvention2("workflow.route.module_body_init_ms");
|
|
17114
17121
|
StepName2 = SemanticConvention2("step.name");
|
|
17115
17122
|
StepId2 = SemanticConvention2("step.id");
|
|
17116
17123
|
StepAttempt2 = SemanticConvention2("step.attempt");
|
|
@@ -17142,6 +17149,7 @@ var init_semantic_conventions2 = __esm({
|
|
|
17142
17149
|
WorkflowSuspensionStepCount2 = SemanticConvention2("workflow.suspension.step_count");
|
|
17143
17150
|
WorkflowSuspensionWaitCount2 = SemanticConvention2("workflow.suspension.wait_count");
|
|
17144
17151
|
HttpRequestMethod2 = SemanticConvention2("http.request.method");
|
|
17152
|
+
HttpRoute2 = SemanticConvention2("http.route");
|
|
17145
17153
|
UrlFull2 = SemanticConvention2("url.full");
|
|
17146
17154
|
ServerAddress2 = SemanticConvention2("server.address");
|
|
17147
17155
|
ServerPort2 = SemanticConvention2("server.port");
|
|
@@ -19192,7 +19200,7 @@ var version4;
|
|
|
19192
19200
|
var init_version3 = __esm({
|
|
19193
19201
|
"../core/dist/version.js"() {
|
|
19194
19202
|
"use strict";
|
|
19195
|
-
version4 = "5.0.0-beta.
|
|
19203
|
+
version4 = "5.0.0-beta.23";
|
|
19196
19204
|
}
|
|
19197
19205
|
});
|
|
19198
19206
|
|
|
@@ -25338,14 +25346,6 @@ function createReconnectingFramedStream2(runId, name, startIndex) {
|
|
|
25338
25346
|
}
|
|
25339
25347
|
__name(connect2, "connect");
|
|
25340
25348
|
async function reconnect() {
|
|
25341
|
-
reconnectCount++;
|
|
25342
|
-
totalReconnectCount++;
|
|
25343
|
-
if (reconnectCount > FRAMED_STREAM_MAX_RECONNECTS2) {
|
|
25344
|
-
throw new Error(`Stream "${name}" exceeded maximum reconnection attempts (${FRAMED_STREAM_MAX_RECONNECTS2})`);
|
|
25345
|
-
}
|
|
25346
|
-
if (totalReconnectCount > FRAMED_STREAM_MAX_TOTAL_RECONNECTS2) {
|
|
25347
|
-
throw new Error(`Stream "${name}" exceeded maximum total reconnection attempts (${FRAMED_STREAM_MAX_TOTAL_RECONNECTS2})`);
|
|
25348
|
-
}
|
|
25349
25349
|
if (reader) {
|
|
25350
25350
|
await reader.cancel().catch(() => {
|
|
25351
25351
|
});
|
|
@@ -25354,7 +25354,21 @@ function createReconnectingFramedStream2(runId, name, startIndex) {
|
|
|
25354
25354
|
currentStartIndex += consumedFrames;
|
|
25355
25355
|
consumedFrames = 0;
|
|
25356
25356
|
buffer3 = new Uint8Array(0);
|
|
25357
|
-
|
|
25357
|
+
for (; ; ) {
|
|
25358
|
+
reconnectCount++;
|
|
25359
|
+
totalReconnectCount++;
|
|
25360
|
+
if (reconnectCount > FRAMED_STREAM_MAX_RECONNECTS2) {
|
|
25361
|
+
throw new Error(`Stream "${name}" exceeded maximum reconnection attempts (${FRAMED_STREAM_MAX_RECONNECTS2})`);
|
|
25362
|
+
}
|
|
25363
|
+
if (totalReconnectCount > FRAMED_STREAM_MAX_TOTAL_RECONNECTS2) {
|
|
25364
|
+
throw new Error(`Stream "${name}" exceeded maximum total reconnection attempts (${FRAMED_STREAM_MAX_TOTAL_RECONNECTS2})`);
|
|
25365
|
+
}
|
|
25366
|
+
try {
|
|
25367
|
+
await connect2();
|
|
25368
|
+
return;
|
|
25369
|
+
} catch {
|
|
25370
|
+
}
|
|
25371
|
+
}
|
|
25358
25372
|
}
|
|
25359
25373
|
__name(reconnect, "reconnect");
|
|
25360
25374
|
return new ReadableStream({
|
|
@@ -72128,6 +72142,7 @@ var init_events = __esm2({
|
|
|
72128
72142
|
runId: external_exports.string(),
|
|
72129
72143
|
eventId: external_exports.string(),
|
|
72130
72144
|
createdAt: external_exports.coerce.date(),
|
|
72145
|
+
occurredAt: external_exports.coerce.date().optional(),
|
|
72131
72146
|
specVersion: external_exports.number().optional()
|
|
72132
72147
|
}));
|
|
72133
72148
|
}
|
|
@@ -74990,12 +75005,18 @@ var WorkflowArgumentsCount;
|
|
|
74990
75005
|
var WorkflowResultType;
|
|
74991
75006
|
var WorkflowTracePropagated;
|
|
74992
75007
|
var WorkflowTraceMode;
|
|
75008
|
+
var WorkflowTurbo;
|
|
74993
75009
|
var WorkflowErrorName;
|
|
74994
75010
|
var WorkflowErrorMessage;
|
|
74995
75011
|
var WorkflowErrorCode;
|
|
74996
75012
|
var WorkflowStepsCreated;
|
|
74997
75013
|
var WorkflowHooksCreated;
|
|
74998
75014
|
var WorkflowWaitsCreated;
|
|
75015
|
+
var WorkflowRouteType;
|
|
75016
|
+
var WorkflowRouteHandlerCached;
|
|
75017
|
+
var WorkflowRouteInvocationCount;
|
|
75018
|
+
var WorkflowRouteEntrypointAgeMs;
|
|
75019
|
+
var WorkflowRouteModuleBodyInitMs;
|
|
74999
75020
|
var StepName;
|
|
75000
75021
|
var StepId;
|
|
75001
75022
|
var StepAttempt;
|
|
@@ -75027,6 +75048,7 @@ var WorkflowSuspensionHookCount;
|
|
|
75027
75048
|
var WorkflowSuspensionStepCount;
|
|
75028
75049
|
var WorkflowSuspensionWaitCount;
|
|
75029
75050
|
var HttpRequestMethod;
|
|
75051
|
+
var HttpRoute;
|
|
75030
75052
|
var UrlFull;
|
|
75031
75053
|
var ServerAddress;
|
|
75032
75054
|
var ServerPort;
|
|
@@ -75063,12 +75085,18 @@ var init_semantic_conventions = __esm2({
|
|
|
75063
75085
|
WorkflowResultType = SemanticConvention("workflow.result.type");
|
|
75064
75086
|
WorkflowTracePropagated = SemanticConvention("workflow.trace.propagated");
|
|
75065
75087
|
WorkflowTraceMode = SemanticConvention("workflow.trace.mode");
|
|
75088
|
+
WorkflowTurbo = SemanticConvention("workflow.turbo");
|
|
75066
75089
|
WorkflowErrorName = SemanticConvention("workflow.error.name");
|
|
75067
75090
|
WorkflowErrorMessage = SemanticConvention("workflow.error.message");
|
|
75068
75091
|
WorkflowErrorCode = SemanticConvention("workflow.error.code");
|
|
75069
75092
|
WorkflowStepsCreated = SemanticConvention("workflow.steps.created");
|
|
75070
75093
|
WorkflowHooksCreated = SemanticConvention("workflow.hooks.created");
|
|
75071
75094
|
WorkflowWaitsCreated = SemanticConvention("workflow.waits.created");
|
|
75095
|
+
WorkflowRouteType = SemanticConvention("workflow.route.type");
|
|
75096
|
+
WorkflowRouteHandlerCached = SemanticConvention("workflow.route.handler_cached");
|
|
75097
|
+
WorkflowRouteInvocationCount = SemanticConvention("workflow.route.invocation_count");
|
|
75098
|
+
WorkflowRouteEntrypointAgeMs = SemanticConvention("workflow.route.entrypoint_age_ms");
|
|
75099
|
+
WorkflowRouteModuleBodyInitMs = SemanticConvention("workflow.route.module_body_init_ms");
|
|
75072
75100
|
StepName = SemanticConvention("step.name");
|
|
75073
75101
|
StepId = SemanticConvention("step.id");
|
|
75074
75102
|
StepAttempt = SemanticConvention("step.attempt");
|
|
@@ -75100,6 +75128,7 @@ var init_semantic_conventions = __esm2({
|
|
|
75100
75128
|
WorkflowSuspensionStepCount = SemanticConvention("workflow.suspension.step_count");
|
|
75101
75129
|
WorkflowSuspensionWaitCount = SemanticConvention("workflow.suspension.wait_count");
|
|
75102
75130
|
HttpRequestMethod = SemanticConvention("http.request.method");
|
|
75131
|
+
HttpRoute = SemanticConvention("http.route");
|
|
75103
75132
|
UrlFull = SemanticConvention("url.full");
|
|
75104
75133
|
ServerAddress = SemanticConvention("server.address");
|
|
75105
75134
|
ServerPort = SemanticConvention("server.port");
|
|
@@ -79548,7 +79577,7 @@ var version2;
|
|
|
79548
79577
|
var init_version = __esm2({
|
|
79549
79578
|
"../core/dist/version.js"() {
|
|
79550
79579
|
"use strict";
|
|
79551
|
-
version2 = "5.0.0-beta.
|
|
79580
|
+
version2 = "5.0.0-beta.23";
|
|
79552
79581
|
}
|
|
79553
79582
|
});
|
|
79554
79583
|
function getWorkflowQueueName(workflowName, namespace) {
|
|
@@ -81293,14 +81322,6 @@ function createReconnectingFramedStream(runId, name, startIndex) {
|
|
|
81293
81322
|
__name(connect2, "connect");
|
|
81294
81323
|
__name2(connect2, "connect");
|
|
81295
81324
|
async function reconnect() {
|
|
81296
|
-
reconnectCount++;
|
|
81297
|
-
totalReconnectCount++;
|
|
81298
|
-
if (reconnectCount > FRAMED_STREAM_MAX_RECONNECTS) {
|
|
81299
|
-
throw new Error(`Stream "${name}" exceeded maximum reconnection attempts (${FRAMED_STREAM_MAX_RECONNECTS})`);
|
|
81300
|
-
}
|
|
81301
|
-
if (totalReconnectCount > FRAMED_STREAM_MAX_TOTAL_RECONNECTS) {
|
|
81302
|
-
throw new Error(`Stream "${name}" exceeded maximum total reconnection attempts (${FRAMED_STREAM_MAX_TOTAL_RECONNECTS})`);
|
|
81303
|
-
}
|
|
81304
81325
|
if (reader) {
|
|
81305
81326
|
await reader.cancel().catch(() => {
|
|
81306
81327
|
});
|
|
@@ -81309,7 +81330,21 @@ function createReconnectingFramedStream(runId, name, startIndex) {
|
|
|
81309
81330
|
currentStartIndex += consumedFrames;
|
|
81310
81331
|
consumedFrames = 0;
|
|
81311
81332
|
buffer22 = new Uint8Array(0);
|
|
81312
|
-
|
|
81333
|
+
for (; ; ) {
|
|
81334
|
+
reconnectCount++;
|
|
81335
|
+
totalReconnectCount++;
|
|
81336
|
+
if (reconnectCount > FRAMED_STREAM_MAX_RECONNECTS) {
|
|
81337
|
+
throw new Error(`Stream "${name}" exceeded maximum reconnection attempts (${FRAMED_STREAM_MAX_RECONNECTS})`);
|
|
81338
|
+
}
|
|
81339
|
+
if (totalReconnectCount > FRAMED_STREAM_MAX_TOTAL_RECONNECTS) {
|
|
81340
|
+
throw new Error(`Stream "${name}" exceeded maximum total reconnection attempts (${FRAMED_STREAM_MAX_TOTAL_RECONNECTS})`);
|
|
81341
|
+
}
|
|
81342
|
+
try {
|
|
81343
|
+
await connect2();
|
|
81344
|
+
return;
|
|
81345
|
+
} catch {
|
|
81346
|
+
}
|
|
81347
|
+
}
|
|
81313
81348
|
}
|
|
81314
81349
|
__name(reconnect, "reconnect");
|
|
81315
81350
|
__name2(reconnect, "reconnect");
|
|
@@ -82779,7 +82814,7 @@ __name2(start, "start");
|
|
|
82779
82814
|
value: "start",
|
|
82780
82815
|
configurable: true
|
|
82781
82816
|
});
|
|
82782
|
-
})(start, "step//@workflow/core/runtime/start@5.0.0-beta.
|
|
82817
|
+
})(start, "step//@workflow/core/runtime/start@5.0.0-beta.23//start");
|
|
82783
82818
|
function isRetryableStartError(err) {
|
|
82784
82819
|
if (ThrottleError.is(err)) return true;
|
|
82785
82820
|
if (WorkflowWorldError.is(err) && err.status && err.status >= 500) return true;
|
|
@@ -83113,7 +83148,7 @@ var Run = class _Run {
|
|
|
83113
83148
|
value: "wakeUp",
|
|
83114
83149
|
configurable: true
|
|
83115
83150
|
});
|
|
83116
|
-
})(Run.prototype["wakeUp"], "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
83151
|
+
})(Run.prototype["wakeUp"], "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#wakeUp");
|
|
83117
83152
|
(function(__wf_fn, __wf_id) {
|
|
83118
83153
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
83119
83154
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -83122,7 +83157,7 @@ var Run = class _Run {
|
|
|
83122
83157
|
value: "cancel",
|
|
83123
83158
|
configurable: true
|
|
83124
83159
|
});
|
|
83125
|
-
})(Run.prototype["cancel"], "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
83160
|
+
})(Run.prototype["cancel"], "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#cancel");
|
|
83126
83161
|
(function(__wf_fn, __wf_id) {
|
|
83127
83162
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
83128
83163
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -83131,7 +83166,7 @@ var Run = class _Run {
|
|
|
83131
83166
|
value: "getReadable",
|
|
83132
83167
|
configurable: true
|
|
83133
83168
|
});
|
|
83134
|
-
})(Run.prototype["getReadable"], "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
83169
|
+
})(Run.prototype["getReadable"], "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#getReadable");
|
|
83135
83170
|
(function(__wf_fn, __wf_id) {
|
|
83136
83171
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
83137
83172
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -83140,7 +83175,7 @@ var Run = class _Run {
|
|
|
83140
83175
|
value: "exists",
|
|
83141
83176
|
configurable: true
|
|
83142
83177
|
});
|
|
83143
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "exists").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
83178
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "exists").get, "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#exists");
|
|
83144
83179
|
(function(__wf_fn, __wf_id) {
|
|
83145
83180
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
83146
83181
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -83149,7 +83184,7 @@ var Run = class _Run {
|
|
|
83149
83184
|
value: "status",
|
|
83150
83185
|
configurable: true
|
|
83151
83186
|
});
|
|
83152
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "status").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
83187
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "status").get, "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#status");
|
|
83153
83188
|
(function(__wf_fn, __wf_id) {
|
|
83154
83189
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
83155
83190
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -83158,7 +83193,7 @@ var Run = class _Run {
|
|
|
83158
83193
|
value: "returnValue",
|
|
83159
83194
|
configurable: true
|
|
83160
83195
|
});
|
|
83161
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "returnValue").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
83196
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "returnValue").get, "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#returnValue");
|
|
83162
83197
|
(function(__wf_fn, __wf_id) {
|
|
83163
83198
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
83164
83199
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -83167,7 +83202,7 @@ var Run = class _Run {
|
|
|
83167
83202
|
value: "workflowName",
|
|
83168
83203
|
configurable: true
|
|
83169
83204
|
});
|
|
83170
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "workflowName").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
83205
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "workflowName").get, "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#workflowName");
|
|
83171
83206
|
(function(__wf_fn, __wf_id) {
|
|
83172
83207
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
83173
83208
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -83176,7 +83211,7 @@ var Run = class _Run {
|
|
|
83176
83211
|
value: "createdAt",
|
|
83177
83212
|
configurable: true
|
|
83178
83213
|
});
|
|
83179
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "createdAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
83214
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "createdAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#createdAt");
|
|
83180
83215
|
(function(__wf_fn, __wf_id) {
|
|
83181
83216
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
83182
83217
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -83185,7 +83220,7 @@ var Run = class _Run {
|
|
|
83185
83220
|
value: "startedAt",
|
|
83186
83221
|
configurable: true
|
|
83187
83222
|
});
|
|
83188
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "startedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
83223
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "startedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#startedAt");
|
|
83189
83224
|
(function(__wf_fn, __wf_id) {
|
|
83190
83225
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
83191
83226
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -83194,7 +83229,7 @@ var Run = class _Run {
|
|
|
83194
83229
|
value: "completedAt",
|
|
83195
83230
|
configurable: true
|
|
83196
83231
|
});
|
|
83197
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "completedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
83232
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "completedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#completedAt");
|
|
83198
83233
|
(function(__wf_cls, __wf_id) {
|
|
83199
83234
|
var __wf_sym = /* @__PURE__ */ Symbol.for("workflow-class-registry"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
83200
83235
|
__wf_reg.set(__wf_id, __wf_cls);
|
|
@@ -83204,7 +83239,7 @@ var Run = class _Run {
|
|
|
83204
83239
|
enumerable: false,
|
|
83205
83240
|
configurable: false
|
|
83206
83241
|
});
|
|
83207
|
-
})(Run, "class//@workflow/core/runtime/run@5.0.0-beta.
|
|
83242
|
+
})(Run, "class//@workflow/core/runtime/run@5.0.0-beta.23//Run");
|
|
83208
83243
|
async function fetch2(...args) {
|
|
83209
83244
|
return globalThis.fetch(...args);
|
|
83210
83245
|
}
|
|
@@ -94287,7 +94322,7 @@ import os from "node:os";
|
|
|
94287
94322
|
import { inspect } from "node:util";
|
|
94288
94323
|
|
|
94289
94324
|
// ../world-vercel/dist/version.js
|
|
94290
|
-
var version5 = "5.0.0-beta.
|
|
94325
|
+
var version5 = "5.0.0-beta.20";
|
|
94291
94326
|
|
|
94292
94327
|
// ../world-vercel/dist/utils.js
|
|
94293
94328
|
var HTTP_DEBUG_ENABLED = typeof process !== "undefined" && typeof process.env.DEBUG === "string" && (process.env.DEBUG.includes("workflow:") || process.env.DEBUG === "*");
|
|
@@ -94933,6 +94968,8 @@ function buildPostFrameMeta(input) {
|
|
|
94933
94968
|
meta5.correlationId = input.correlationId;
|
|
94934
94969
|
if (input.vercelId !== void 0)
|
|
94935
94970
|
meta5.vercelId = input.vercelId;
|
|
94971
|
+
if (input.occurredAt !== void 0)
|
|
94972
|
+
meta5.occurredAt = input.occurredAt;
|
|
94936
94973
|
if (input.remoteRefBehavior !== void 0) {
|
|
94937
94974
|
meta5.remoteRefBehavior = input.remoteRefBehavior;
|
|
94938
94975
|
}
|
|
@@ -94970,6 +95007,8 @@ function buildPostFrameMeta(input) {
|
|
|
94970
95007
|
}
|
|
94971
95008
|
if (input.sinceCursor !== void 0)
|
|
94972
95009
|
meta5.sinceCursor = input.sinceCursor;
|
|
95010
|
+
if (input.skipPreload !== void 0)
|
|
95011
|
+
meta5.skipPreload = input.skipPreload;
|
|
94973
95012
|
return meta5;
|
|
94974
95013
|
}
|
|
94975
95014
|
__name(buildPostFrameMeta, "buildPostFrameMeta");
|
|
@@ -95500,6 +95539,9 @@ function buildEventFromV4(decoded, payloadBody, resolveData) {
|
|
|
95500
95539
|
runId: decoded.runId,
|
|
95501
95540
|
eventType: decoded.eventType,
|
|
95502
95541
|
createdAt: decoded.createdAt instanceof Date ? decoded.createdAt : new Date(decoded.createdAt),
|
|
95542
|
+
...decoded.occurredAt !== void 0 ? {
|
|
95543
|
+
occurredAt: decoded.occurredAt instanceof Date ? decoded.occurredAt : new Date(decoded.occurredAt)
|
|
95544
|
+
} : {},
|
|
95503
95545
|
...decoded.correlationId ? { correlationId: decoded.correlationId } : {},
|
|
95504
95546
|
eventData,
|
|
95505
95547
|
...decoded.specVersion !== void 0 ? { specVersion: decoded.specVersion } : {}
|
|
@@ -95585,6 +95627,7 @@ async function createWorkflowRunEventInner(id, data, params, config4) {
|
|
|
95585
95627
|
specVersion: data.specVersion ?? 2,
|
|
95586
95628
|
...data.correlationId ? { correlationId: data.correlationId } : {},
|
|
95587
95629
|
...params?.requestId ? { vercelId: params.requestId } : {},
|
|
95630
|
+
occurredAt: params?.occurredAt ?? /* @__PURE__ */ new Date(),
|
|
95588
95631
|
// Opt-in inline-delta: forward the cursor the runtime held before
|
|
95589
95632
|
// this write so the server can return the authoritative event-log
|
|
95590
95633
|
// delta on the response (events/cursor/hasMore), letting the inline
|
|
@@ -95592,6 +95635,11 @@ async function createWorkflowRunEventInner(id, data, params, config4) {
|
|
|
95592
95635
|
// step_completed/step_failed; older servers ignore it and the runtime
|
|
95593
95636
|
// falls back to events.list.
|
|
95594
95637
|
...params?.sinceCursor ? { sinceCursor: params.sinceCursor } : {},
|
|
95638
|
+
// Run-started preload opt-out: turbo backgrounds run_started as a write
|
|
95639
|
+
// barrier only and never reads the preloaded log, so tell the server to
|
|
95640
|
+
// skip the list+resolve. The server only acts on it for run_started;
|
|
95641
|
+
// older servers ignore it and simply preload as before.
|
|
95642
|
+
...params?.skipPreload ? { skipPreload: true } : {},
|
|
95595
95643
|
remoteRefBehavior,
|
|
95596
95644
|
payload,
|
|
95597
95645
|
...meta5
|
|
@@ -95731,6 +95779,10 @@ function getStreamUrl(name, runId, httpConfig) {
|
|
|
95731
95779
|
return new URL(`${httpConfig.baseUrl}/v2/runs/${encodeURIComponent(runId)}/stream/${encodeURIComponent(name)}`);
|
|
95732
95780
|
}
|
|
95733
95781
|
__name(getStreamUrl, "getStreamUrl");
|
|
95782
|
+
function getStreamReadUrl(name, runId, httpConfig) {
|
|
95783
|
+
return new URL(`${httpConfig.baseUrl}/v3/runs/${encodeURIComponent(runId)}/stream/${encodeURIComponent(name)}`);
|
|
95784
|
+
}
|
|
95785
|
+
__name(getStreamReadUrl, "getStreamReadUrl");
|
|
95734
95786
|
function createStreamRequestError(operation, url3, response, text) {
|
|
95735
95787
|
const context2 = [`PUT ${url3.origin}${url3.pathname}`];
|
|
95736
95788
|
for (const header of ["x-vercel-id", "x-vercel-error"]) {
|
|
@@ -95830,7 +95882,7 @@ function createStreamer2(config4) {
|
|
|
95830
95882
|
},
|
|
95831
95883
|
async get(runId, name, startIndex) {
|
|
95832
95884
|
const httpConfig = await getHttpConfig(config4);
|
|
95833
|
-
const url3 =
|
|
95885
|
+
const url3 = getStreamReadUrl(name, runId, httpConfig);
|
|
95834
95886
|
if (typeof startIndex === "number") {
|
|
95835
95887
|
url3.searchParams.set("startIndex", String(startIndex));
|
|
95836
95888
|
}
|
|
@@ -99957,7 +100009,7 @@ function workflowEntrypoint(workflowCode2, options) {
|
|
|
99957
100009
|
const spanKind = await getSpanKind("CONSUMER");
|
|
99958
100010
|
return await withTraceContext(parentTraceCarrier, async () => {
|
|
99959
100011
|
return await withWorkflowBaggage({ workflowRunId: runId, workflowName }, async () => {
|
|
99960
|
-
const world = await getWorld();
|
|
100012
|
+
const world = await trace3("workflow.route.get_world", async () => getWorld());
|
|
99961
100013
|
return trace3(`workflow.execute ${workflowDisplayName2(workflowName)}`, { kind: spanKind, links: spanLinks }, async (span) => {
|
|
99962
100014
|
span?.setAttributes({
|
|
99963
100015
|
...WorkflowName2(workflowName),
|
|
@@ -99982,6 +100034,7 @@ function workflowEntrypoint(workflowCode2, options) {
|
|
|
99982
100034
|
let preloadedEvents;
|
|
99983
100035
|
let preloadedEventsCursor;
|
|
99984
100036
|
const turbo = isTurboEnabled() && runInput !== void 0 && metadata.attempt === 1 && incomingStepId === void 0 && !replayDivergence;
|
|
100037
|
+
span?.setAttributes(WorkflowTurbo2(turbo));
|
|
99985
100038
|
let runReadyBarrier;
|
|
99986
100039
|
const awaitRunReady = /* @__PURE__ */ __name(async () => {
|
|
99987
100040
|
if (runReadyBarrier) {
|
|
@@ -100108,8 +100161,25 @@ function workflowEntrypoint(workflowCode2, options) {
|
|
|
100108
100161
|
}
|
|
100109
100162
|
} : {}
|
|
100110
100163
|
};
|
|
100164
|
+
const recordRunStartedCreateStart = /* @__PURE__ */ __name((skipPreload) => {
|
|
100165
|
+
span?.addEvent("workflow.run_started.create.start", {
|
|
100166
|
+
"workflow.run_started.skip_preload": skipPreload
|
|
100167
|
+
});
|
|
100168
|
+
}, "recordRunStartedCreateStart");
|
|
100111
100169
|
if (turbo && runInput) {
|
|
100112
|
-
|
|
100170
|
+
recordRunStartedCreateStart(true);
|
|
100171
|
+
const startedPromise = world.events.create(
|
|
100172
|
+
runId,
|
|
100173
|
+
runStartedEvent,
|
|
100174
|
+
// We background this purely as a write barrier and
|
|
100175
|
+
// never read its preloaded events (preloadedEvents is
|
|
100176
|
+
// forced to [] below), so tell the World to skip the
|
|
100177
|
+
// run_started event-log preload. That trims the
|
|
100178
|
+
// run_started request the chained first step_started
|
|
100179
|
+
// waits on — shortening time-to-second-step — and the
|
|
100180
|
+
// wasted list+resolve it would otherwise compute.
|
|
100181
|
+
{ requestId, skipPreload: true }
|
|
100182
|
+
);
|
|
100113
100183
|
runReadyBarrier = startedPromise;
|
|
100114
100184
|
startedPromise.catch(() => {
|
|
100115
100185
|
});
|
|
@@ -100147,6 +100217,7 @@ function workflowEntrypoint(workflowCode2, options) {
|
|
|
100147
100217
|
});
|
|
100148
100218
|
} else {
|
|
100149
100219
|
try {
|
|
100220
|
+
recordRunStartedCreateStart(false);
|
|
100150
100221
|
const result = await world.events.create(runId, runStartedEvent, { requestId });
|
|
100151
100222
|
if (!result.run) {
|
|
100152
100223
|
throw new WorkflowRuntimeError2(`Event creation for 'run_started' did not return the run entity for run "${runId}"`);
|
|
@@ -100677,16 +100748,43 @@ function workflowEntrypoint(workflowCode2, options) {
|
|
|
100677
100748
|
});
|
|
100678
100749
|
}), "handler");
|
|
100679
100750
|
let cachedHandler;
|
|
100751
|
+
let invocationCount = 0;
|
|
100752
|
+
const entrypointCreatedAt = Date.now();
|
|
100753
|
+
const routeModuleBodyInitMs = typeof options?.routeModuleBodyStartedAt === "number" ? entrypointCreatedAt - options.routeModuleBodyStartedAt : void 0;
|
|
100680
100754
|
return withHealthCheck(async (req) => {
|
|
100681
|
-
|
|
100682
|
-
|
|
100683
|
-
|
|
100684
|
-
return
|
|
100755
|
+
invocationCount += 1;
|
|
100756
|
+
const handlerCached = cachedHandler !== void 0;
|
|
100757
|
+
const spanKind = await getSpanKind("SERVER");
|
|
100758
|
+
return trace3("workflow.route.flow", {
|
|
100759
|
+
kind: spanKind,
|
|
100760
|
+
attributes: {
|
|
100761
|
+
...WorkflowRouteType2("flow"),
|
|
100762
|
+
...WorkflowRouteHandlerCached2(handlerCached),
|
|
100763
|
+
...WorkflowRouteInvocationCount2(invocationCount),
|
|
100764
|
+
...WorkflowRouteEntrypointAgeMs2(Date.now() - entrypointCreatedAt),
|
|
100765
|
+
...routeModuleBodyInitMs === void 0 ? {} : WorkflowRouteModuleBodyInitMs2(routeModuleBodyInitMs),
|
|
100766
|
+
...HttpRequestMethod2(req.method),
|
|
100767
|
+
...HttpRoute2("/.well-known/workflow/v1/flow")
|
|
100768
|
+
}
|
|
100769
|
+
}, async (span) => {
|
|
100770
|
+
if (!cachedHandler) {
|
|
100771
|
+
cachedHandler = await trace3("workflow.route.init", async () => {
|
|
100772
|
+
const worldHandlers = await trace3("workflow.route.get_world_handlers", async () => getWorldHandlers());
|
|
100773
|
+
return handler(worldHandlers);
|
|
100774
|
+
});
|
|
100775
|
+
}
|
|
100776
|
+
const response = await cachedHandler(req);
|
|
100777
|
+
if (response instanceof Response) {
|
|
100778
|
+
span?.setAttributes(HttpResponseStatusCode2(response.status));
|
|
100779
|
+
}
|
|
100780
|
+
return response;
|
|
100781
|
+
});
|
|
100685
100782
|
});
|
|
100686
100783
|
}
|
|
100687
100784
|
__name(workflowEntrypoint, "workflowEntrypoint");
|
|
100688
100785
|
|
|
100689
100786
|
// .well-known/workflow/v1/virtual-entry.js
|
|
100787
|
+
var workflowRouteModuleBodyStartedAt = Date.now();
|
|
100690
100788
|
var workflowCode = `globalThis.__private_workflows = new Map();
|
|
100691
100789
|
"use strict";
|
|
100692
100790
|
var __create = Object.create;
|
|
@@ -116602,6 +116700,7 @@ var EventSchema = AllEventsSchema.and(external_exports.object({
|
|
|
116602
116700
|
runId: external_exports.string(),
|
|
116603
116701
|
eventId: external_exports.string(),
|
|
116604
116702
|
createdAt: external_exports.coerce.date(),
|
|
116703
|
+
occurredAt: external_exports.coerce.date().optional(),
|
|
116605
116704
|
specVersion: external_exports.number().optional()
|
|
116606
116705
|
}));
|
|
116607
116706
|
|
|
@@ -116964,10 +117063,10 @@ var Run = class _Run {
|
|
|
116964
117063
|
return this.getReadable();
|
|
116965
117064
|
}
|
|
116966
117065
|
};
|
|
116967
|
-
Run.prototype["wakeUp"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
116968
|
-
Run.prototype["cancel"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
116969
|
-
Run.prototype["getReadable"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
116970
|
-
var __step_Run$exists = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
117066
|
+
Run.prototype["wakeUp"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.23//Run#wakeUp");
|
|
117067
|
+
Run.prototype["cancel"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.23//Run#cancel");
|
|
117068
|
+
Run.prototype["getReadable"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.23//Run#getReadable");
|
|
117069
|
+
var __step_Run$exists = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.23//Run#exists");
|
|
116971
117070
|
Object.defineProperty(Run.prototype, "exists", {
|
|
116972
117071
|
get() {
|
|
116973
117072
|
return __step_Run$exists.call(this);
|
|
@@ -116975,7 +117074,7 @@ Object.defineProperty(Run.prototype, "exists", {
|
|
|
116975
117074
|
configurable: true,
|
|
116976
117075
|
enumerable: false
|
|
116977
117076
|
});
|
|
116978
|
-
var __step_Run$status = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
117077
|
+
var __step_Run$status = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.23//Run#status");
|
|
116979
117078
|
Object.defineProperty(Run.prototype, "status", {
|
|
116980
117079
|
get() {
|
|
116981
117080
|
return __step_Run$status.call(this);
|
|
@@ -116983,7 +117082,7 @@ Object.defineProperty(Run.prototype, "status", {
|
|
|
116983
117082
|
configurable: true,
|
|
116984
117083
|
enumerable: false
|
|
116985
117084
|
});
|
|
116986
|
-
var __step_Run$returnValue = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
117085
|
+
var __step_Run$returnValue = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.23//Run#returnValue");
|
|
116987
117086
|
Object.defineProperty(Run.prototype, "returnValue", {
|
|
116988
117087
|
get() {
|
|
116989
117088
|
return __step_Run$returnValue.call(this);
|
|
@@ -116991,7 +117090,7 @@ Object.defineProperty(Run.prototype, "returnValue", {
|
|
|
116991
117090
|
configurable: true,
|
|
116992
117091
|
enumerable: false
|
|
116993
117092
|
});
|
|
116994
|
-
var __step_Run$workflowName = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
117093
|
+
var __step_Run$workflowName = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.23//Run#workflowName");
|
|
116995
117094
|
Object.defineProperty(Run.prototype, "workflowName", {
|
|
116996
117095
|
get() {
|
|
116997
117096
|
return __step_Run$workflowName.call(this);
|
|
@@ -116999,7 +117098,7 @@ Object.defineProperty(Run.prototype, "workflowName", {
|
|
|
116999
117098
|
configurable: true,
|
|
117000
117099
|
enumerable: false
|
|
117001
117100
|
});
|
|
117002
|
-
var __step_Run$createdAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
117101
|
+
var __step_Run$createdAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.23//Run#createdAt");
|
|
117003
117102
|
Object.defineProperty(Run.prototype, "createdAt", {
|
|
117004
117103
|
get() {
|
|
117005
117104
|
return __step_Run$createdAt.call(this);
|
|
@@ -117007,7 +117106,7 @@ Object.defineProperty(Run.prototype, "createdAt", {
|
|
|
117007
117106
|
configurable: true,
|
|
117008
117107
|
enumerable: false
|
|
117009
117108
|
});
|
|
117010
|
-
var __step_Run$startedAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
117109
|
+
var __step_Run$startedAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.23//Run#startedAt");
|
|
117011
117110
|
Object.defineProperty(Run.prototype, "startedAt", {
|
|
117012
117111
|
get() {
|
|
117013
117112
|
return __step_Run$startedAt.call(this);
|
|
@@ -117015,7 +117114,7 @@ Object.defineProperty(Run.prototype, "startedAt", {
|
|
|
117015
117114
|
configurable: true,
|
|
117016
117115
|
enumerable: false
|
|
117017
117116
|
});
|
|
117018
|
-
var __step_Run$completedAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
117117
|
+
var __step_Run$completedAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.23//Run#completedAt");
|
|
117019
117118
|
Object.defineProperty(Run.prototype, "completedAt", {
|
|
117020
117119
|
get() {
|
|
117021
117120
|
return __step_Run$completedAt.call(this);
|
|
@@ -117032,7 +117131,7 @@ Object.defineProperty(Run.prototype, "completedAt", {
|
|
|
117032
117131
|
enumerable: false,
|
|
117033
117132
|
configurable: false
|
|
117034
117133
|
});
|
|
117035
|
-
})(Run, "class//@workflow/core/runtime/run@5.0.0-beta.
|
|
117134
|
+
})(Run, "class//@workflow/core/runtime/run@5.0.0-beta.23//Run");
|
|
117036
117135
|
|
|
117037
117136
|
// ../core/dist/workflow/create-hook.js
|
|
117038
117137
|
aliasSerializationClass(RUN_CLASS_ID, Run);
|
|
@@ -117255,7 +117354,7 @@ globalThis.__private_workflows.set("workflow//./workflows/retriable-and-fatal//r
|
|
|
117255
117354
|
var stepThatThrowsRetryableError = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//./workflows/retriable-and-fatal//stepThatThrowsRetryableError");
|
|
117256
117355
|
var stepThatFails = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//./workflows/retriable-and-fatal//stepThatFails");
|
|
117257
117356
|
`;
|
|
117258
|
-
var POST = workflowEntrypoint(workflowCode);
|
|
117357
|
+
var POST = workflowEntrypoint(workflowCode, { routeModuleBodyStartedAt: workflowRouteModuleBodyStartedAt });
|
|
117259
117358
|
export {
|
|
117260
117359
|
POST
|
|
117261
117360
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "1.0.0",
|
|
3
3
|
"steps": {
|
|
4
|
-
"workflows/
|
|
5
|
-
"
|
|
6
|
-
"stepId": "step//./workflows/
|
|
4
|
+
"workflows/hooks.ts": {
|
|
5
|
+
"writeEvent": {
|
|
6
|
+
"stepId": "step//./workflows/hooks//writeEvent"
|
|
7
7
|
}
|
|
8
8
|
},
|
|
9
9
|
"workflows/null-byte.ts": {
|
|
@@ -11,11 +11,24 @@
|
|
|
11
11
|
"stepId": "step//./workflows/null-byte//nullByteStep"
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
|
+
"workflows/noop.ts": {
|
|
15
|
+
"noop": {
|
|
16
|
+
"stepId": "step//./workflows/noop//noop"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
14
19
|
"workflows/addition.ts": {
|
|
15
20
|
"add": {
|
|
16
21
|
"stepId": "step//./workflows/addition//add"
|
|
17
22
|
}
|
|
18
23
|
},
|
|
24
|
+
"workflows/retriable-and-fatal.ts": {
|
|
25
|
+
"stepThatFails": {
|
|
26
|
+
"stepId": "step//./workflows/retriable-and-fatal//stepThatFails"
|
|
27
|
+
},
|
|
28
|
+
"stepThatThrowsRetryableError": {
|
|
29
|
+
"stepId": "step//./workflows/retriable-and-fatal//stepThatThrowsRetryableError"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
19
32
|
"workflow/dist/internal/builtins.js": {
|
|
20
33
|
"__builtin_response_array_buffer": {
|
|
21
34
|
"stepId": "__builtin_response_array_buffer"
|
|
@@ -30,12 +43,9 @@
|
|
|
30
43
|
"stepId": "__builtin_set_attributes"
|
|
31
44
|
}
|
|
32
45
|
},
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"stepId": "step//./
|
|
36
|
-
},
|
|
37
|
-
"stepThatThrowsRetryableError": {
|
|
38
|
-
"stepId": "step//./workflows/retriable-and-fatal//stepThatThrowsRetryableError"
|
|
46
|
+
"workflow/dist/stdlib.js": {
|
|
47
|
+
"fetch": {
|
|
48
|
+
"stepId": "step//./workflow/dist/stdlib//fetch"
|
|
39
49
|
}
|
|
40
50
|
},
|
|
41
51
|
"workflows/inline-execution.ts": {
|
|
@@ -49,65 +59,55 @@
|
|
|
49
59
|
"stepId": "step//./workflows/inline-execution//writeToStream"
|
|
50
60
|
}
|
|
51
61
|
},
|
|
52
|
-
"workflow/dist/stdlib.js": {
|
|
53
|
-
"fetch": {
|
|
54
|
-
"stepId": "step//./workflow/dist/stdlib//fetch"
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
"workflows/hooks.ts": {
|
|
58
|
-
"writeEvent": {
|
|
59
|
-
"stepId": "step//./workflows/hooks//writeEvent"
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
62
|
"core/dist/runtime/start.js": {
|
|
63
63
|
"start": {
|
|
64
|
-
"stepId": "step//@workflow/core/runtime/start@5.0.0-beta.
|
|
64
|
+
"stepId": "step//@workflow/core/runtime/start@5.0.0-beta.23//start"
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
67
|
"core/dist/runtime/run.js": {
|
|
68
68
|
"Run#cancel": {
|
|
69
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
69
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#cancel"
|
|
70
70
|
},
|
|
71
71
|
"Run#completedAt": {
|
|
72
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
72
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#completedAt"
|
|
73
73
|
},
|
|
74
74
|
"Run#createdAt": {
|
|
75
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
75
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#createdAt"
|
|
76
76
|
},
|
|
77
77
|
"Run#exists": {
|
|
78
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
78
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#exists"
|
|
79
79
|
},
|
|
80
80
|
"Run#getReadable": {
|
|
81
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
81
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#getReadable"
|
|
82
82
|
},
|
|
83
83
|
"Run#returnValue": {
|
|
84
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
84
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#returnValue"
|
|
85
85
|
},
|
|
86
86
|
"Run#startedAt": {
|
|
87
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
87
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#startedAt"
|
|
88
88
|
},
|
|
89
89
|
"Run#status": {
|
|
90
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
90
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#status"
|
|
91
91
|
},
|
|
92
92
|
"Run#wakeUp": {
|
|
93
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
93
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#wakeUp"
|
|
94
94
|
},
|
|
95
95
|
"Run#workflowName": {
|
|
96
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
96
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#workflowName"
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
},
|
|
100
100
|
"workflows": {
|
|
101
|
-
"workflows/
|
|
102
|
-
"
|
|
103
|
-
"workflowId": "workflow//./workflows/
|
|
101
|
+
"workflows/hooks.ts": {
|
|
102
|
+
"collectWithHook": {
|
|
103
|
+
"workflowId": "workflow//./workflows/hooks//collectWithHook",
|
|
104
104
|
"graph": {
|
|
105
105
|
"nodes": [
|
|
106
106
|
{
|
|
107
107
|
"id": "start",
|
|
108
108
|
"type": "workflowStart",
|
|
109
109
|
"data": {
|
|
110
|
-
"label": "Start:
|
|
110
|
+
"label": "Start: collectWithHook",
|
|
111
111
|
"nodeKind": "workflow_start"
|
|
112
112
|
}
|
|
113
113
|
},
|
|
@@ -164,6 +164,39 @@
|
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
},
|
|
167
|
+
"workflows/noop.ts": {
|
|
168
|
+
"brokenWf": {
|
|
169
|
+
"workflowId": "workflow//./workflows/noop//brokenWf",
|
|
170
|
+
"graph": {
|
|
171
|
+
"nodes": [
|
|
172
|
+
{
|
|
173
|
+
"id": "start",
|
|
174
|
+
"type": "workflowStart",
|
|
175
|
+
"data": {
|
|
176
|
+
"label": "Start: brokenWf",
|
|
177
|
+
"nodeKind": "workflow_start"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"id": "end",
|
|
182
|
+
"type": "workflowEnd",
|
|
183
|
+
"data": {
|
|
184
|
+
"label": "Return",
|
|
185
|
+
"nodeKind": "workflow_end"
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
],
|
|
189
|
+
"edges": [
|
|
190
|
+
{
|
|
191
|
+
"id": "e_start_end",
|
|
192
|
+
"source": "start",
|
|
193
|
+
"target": "end",
|
|
194
|
+
"type": "default"
|
|
195
|
+
}
|
|
196
|
+
]
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
},
|
|
167
200
|
"workflows/addition.ts": {
|
|
168
201
|
"addTenWorkflow": {
|
|
169
202
|
"workflowId": "workflow//./workflows/addition//addTenWorkflow",
|
|
@@ -462,45 +495,12 @@
|
|
|
462
495
|
]
|
|
463
496
|
}
|
|
464
497
|
}
|
|
465
|
-
},
|
|
466
|
-
"workflows/hooks.ts": {
|
|
467
|
-
"collectWithHook": {
|
|
468
|
-
"workflowId": "workflow//./workflows/hooks//collectWithHook",
|
|
469
|
-
"graph": {
|
|
470
|
-
"nodes": [
|
|
471
|
-
{
|
|
472
|
-
"id": "start",
|
|
473
|
-
"type": "workflowStart",
|
|
474
|
-
"data": {
|
|
475
|
-
"label": "Start: collectWithHook",
|
|
476
|
-
"nodeKind": "workflow_start"
|
|
477
|
-
}
|
|
478
|
-
},
|
|
479
|
-
{
|
|
480
|
-
"id": "end",
|
|
481
|
-
"type": "workflowEnd",
|
|
482
|
-
"data": {
|
|
483
|
-
"label": "Return",
|
|
484
|
-
"nodeKind": "workflow_end"
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
],
|
|
488
|
-
"edges": [
|
|
489
|
-
{
|
|
490
|
-
"id": "e_start_end",
|
|
491
|
-
"source": "start",
|
|
492
|
-
"target": "end",
|
|
493
|
-
"type": "default"
|
|
494
|
-
}
|
|
495
|
-
]
|
|
496
|
-
}
|
|
497
|
-
}
|
|
498
498
|
}
|
|
499
499
|
},
|
|
500
500
|
"classes": {
|
|
501
501
|
"core/dist/runtime/run.js": {
|
|
502
502
|
"Run": {
|
|
503
|
-
"classId": "class//@workflow/core/runtime/run@5.0.0-beta.
|
|
503
|
+
"classId": "class//@workflow/core/runtime/run@5.0.0-beta.23//Run"
|
|
504
504
|
}
|
|
505
505
|
}
|
|
506
506
|
}
|
|
@@ -16698,6 +16698,7 @@ var init_events = __esm({
|
|
|
16698
16698
|
runId: external_exports.string(),
|
|
16699
16699
|
eventId: external_exports.string(),
|
|
16700
16700
|
createdAt: external_exports.coerce.date(),
|
|
16701
|
+
occurredAt: external_exports.coerce.date().optional(),
|
|
16701
16702
|
specVersion: external_exports.number().optional()
|
|
16702
16703
|
}));
|
|
16703
16704
|
}
|
|
@@ -19446,7 +19447,7 @@ function SemanticConvention(...names) {
|
|
|
19446
19447
|
value
|
|
19447
19448
|
]));
|
|
19448
19449
|
}
|
|
19449
|
-
var WorkflowName, WorkflowOperation, WorkflowRunId, WorkflowRunStatus, WorkflowStartedAt, WorkflowEventsCount, WorkflowArgumentsCount, WorkflowResultType, WorkflowTracePropagated, WorkflowTraceMode, WorkflowErrorName, WorkflowErrorMessage, WorkflowErrorCode, WorkflowStepsCreated, WorkflowHooksCreated, WorkflowWaitsCreated, StepName, StepId, StepAttempt, StepStatus, StepMaxRetries, StepTracePropagated, StepSkipped, StepSkipReason, StepArgumentsCount, StepResultType, StepErrorName, StepErrorMessage, StepFatalError, StepRetryExhausted, StepRetryTimeoutSeconds, StepRetryWillRetry, MessagingSystem, MessagingDestinationName, MessagingMessageId, MessagingOperationType, QueueOverheadMs, DeploymentId, HookToken, HookId, HookFound, WebhookHandlersTriggered, WorkflowSuspensionState, WorkflowSuspensionHookCount, WorkflowSuspensionStepCount, WorkflowSuspensionWaitCount, HttpRequestMethod, UrlFull, ServerAddress, ServerPort, HttpResponseStatusCode, ErrorType, WorldParseFormat, WorkflowEventsPagesLoaded, QueueDeserializeTimeMs, QueueExecutionTimeMs, QueueSerializeTimeMs, SerializationOperation, SerializationCompressed, SerializationCodec, SerializationUncompressedBytes, SerializationStoredBytes, SerializationCompressionRatio, PeerService, RpcSystem, RpcService, RpcMethod, ErrorRetryable, ErrorCategory;
|
|
19450
|
+
var WorkflowName, WorkflowOperation, WorkflowRunId, WorkflowRunStatus, WorkflowStartedAt, WorkflowEventsCount, WorkflowArgumentsCount, WorkflowResultType, WorkflowTracePropagated, WorkflowTraceMode, WorkflowTurbo, WorkflowErrorName, WorkflowErrorMessage, WorkflowErrorCode, WorkflowStepsCreated, WorkflowHooksCreated, WorkflowWaitsCreated, WorkflowRouteType, WorkflowRouteHandlerCached, WorkflowRouteInvocationCount, WorkflowRouteEntrypointAgeMs, WorkflowRouteModuleBodyInitMs, StepName, StepId, StepAttempt, StepStatus, StepMaxRetries, StepTracePropagated, StepSkipped, StepSkipReason, StepArgumentsCount, StepResultType, StepErrorName, StepErrorMessage, StepFatalError, StepRetryExhausted, StepRetryTimeoutSeconds, StepRetryWillRetry, MessagingSystem, MessagingDestinationName, MessagingMessageId, MessagingOperationType, QueueOverheadMs, DeploymentId, HookToken, HookId, HookFound, WebhookHandlersTriggered, WorkflowSuspensionState, WorkflowSuspensionHookCount, WorkflowSuspensionStepCount, WorkflowSuspensionWaitCount, HttpRequestMethod, HttpRoute, UrlFull, ServerAddress, ServerPort, HttpResponseStatusCode, ErrorType, WorldParseFormat, WorkflowEventsPagesLoaded, QueueDeserializeTimeMs, QueueExecutionTimeMs, QueueSerializeTimeMs, SerializationOperation, SerializationCompressed, SerializationCodec, SerializationUncompressedBytes, SerializationStoredBytes, SerializationCompressionRatio, PeerService, RpcSystem, RpcService, RpcMethod, ErrorRetryable, ErrorCategory;
|
|
19450
19451
|
var init_semantic_conventions = __esm({
|
|
19451
19452
|
"../core/dist/telemetry/semantic-conventions.js"() {
|
|
19452
19453
|
"use strict";
|
|
@@ -19461,12 +19462,18 @@ var init_semantic_conventions = __esm({
|
|
|
19461
19462
|
WorkflowResultType = SemanticConvention("workflow.result.type");
|
|
19462
19463
|
WorkflowTracePropagated = SemanticConvention("workflow.trace.propagated");
|
|
19463
19464
|
WorkflowTraceMode = SemanticConvention("workflow.trace.mode");
|
|
19465
|
+
WorkflowTurbo = SemanticConvention("workflow.turbo");
|
|
19464
19466
|
WorkflowErrorName = SemanticConvention("workflow.error.name");
|
|
19465
19467
|
WorkflowErrorMessage = SemanticConvention("workflow.error.message");
|
|
19466
19468
|
WorkflowErrorCode = SemanticConvention("workflow.error.code");
|
|
19467
19469
|
WorkflowStepsCreated = SemanticConvention("workflow.steps.created");
|
|
19468
19470
|
WorkflowHooksCreated = SemanticConvention("workflow.hooks.created");
|
|
19469
19471
|
WorkflowWaitsCreated = SemanticConvention("workflow.waits.created");
|
|
19472
|
+
WorkflowRouteType = SemanticConvention("workflow.route.type");
|
|
19473
|
+
WorkflowRouteHandlerCached = SemanticConvention("workflow.route.handler_cached");
|
|
19474
|
+
WorkflowRouteInvocationCount = SemanticConvention("workflow.route.invocation_count");
|
|
19475
|
+
WorkflowRouteEntrypointAgeMs = SemanticConvention("workflow.route.entrypoint_age_ms");
|
|
19476
|
+
WorkflowRouteModuleBodyInitMs = SemanticConvention("workflow.route.module_body_init_ms");
|
|
19470
19477
|
StepName = SemanticConvention("step.name");
|
|
19471
19478
|
StepId = SemanticConvention("step.id");
|
|
19472
19479
|
StepAttempt = SemanticConvention("step.attempt");
|
|
@@ -19498,6 +19505,7 @@ var init_semantic_conventions = __esm({
|
|
|
19498
19505
|
WorkflowSuspensionStepCount = SemanticConvention("workflow.suspension.step_count");
|
|
19499
19506
|
WorkflowSuspensionWaitCount = SemanticConvention("workflow.suspension.wait_count");
|
|
19500
19507
|
HttpRequestMethod = SemanticConvention("http.request.method");
|
|
19508
|
+
HttpRoute = SemanticConvention("http.route");
|
|
19501
19509
|
UrlFull = SemanticConvention("url.full");
|
|
19502
19510
|
ServerAddress = SemanticConvention("server.address");
|
|
19503
19511
|
ServerPort = SemanticConvention("server.port");
|
|
@@ -23995,7 +24003,7 @@ var version2;
|
|
|
23995
24003
|
var init_version = __esm({
|
|
23996
24004
|
"../core/dist/version.js"() {
|
|
23997
24005
|
"use strict";
|
|
23998
|
-
version2 = "5.0.0-beta.
|
|
24006
|
+
version2 = "5.0.0-beta.23";
|
|
23999
24007
|
}
|
|
24000
24008
|
});
|
|
24001
24009
|
|
|
@@ -25722,14 +25730,6 @@ function createReconnectingFramedStream(runId, name, startIndex) {
|
|
|
25722
25730
|
}
|
|
25723
25731
|
__name(connect, "connect");
|
|
25724
25732
|
async function reconnect() {
|
|
25725
|
-
reconnectCount++;
|
|
25726
|
-
totalReconnectCount++;
|
|
25727
|
-
if (reconnectCount > FRAMED_STREAM_MAX_RECONNECTS) {
|
|
25728
|
-
throw new Error(`Stream "${name}" exceeded maximum reconnection attempts (${FRAMED_STREAM_MAX_RECONNECTS})`);
|
|
25729
|
-
}
|
|
25730
|
-
if (totalReconnectCount > FRAMED_STREAM_MAX_TOTAL_RECONNECTS) {
|
|
25731
|
-
throw new Error(`Stream "${name}" exceeded maximum total reconnection attempts (${FRAMED_STREAM_MAX_TOTAL_RECONNECTS})`);
|
|
25732
|
-
}
|
|
25733
25733
|
if (reader) {
|
|
25734
25734
|
await reader.cancel().catch(() => {
|
|
25735
25735
|
});
|
|
@@ -25738,7 +25738,21 @@ function createReconnectingFramedStream(runId, name, startIndex) {
|
|
|
25738
25738
|
currentStartIndex += consumedFrames;
|
|
25739
25739
|
consumedFrames = 0;
|
|
25740
25740
|
buffer2 = new Uint8Array(0);
|
|
25741
|
-
|
|
25741
|
+
for (; ; ) {
|
|
25742
|
+
reconnectCount++;
|
|
25743
|
+
totalReconnectCount++;
|
|
25744
|
+
if (reconnectCount > FRAMED_STREAM_MAX_RECONNECTS) {
|
|
25745
|
+
throw new Error(`Stream "${name}" exceeded maximum reconnection attempts (${FRAMED_STREAM_MAX_RECONNECTS})`);
|
|
25746
|
+
}
|
|
25747
|
+
if (totalReconnectCount > FRAMED_STREAM_MAX_TOTAL_RECONNECTS) {
|
|
25748
|
+
throw new Error(`Stream "${name}" exceeded maximum total reconnection attempts (${FRAMED_STREAM_MAX_TOTAL_RECONNECTS})`);
|
|
25749
|
+
}
|
|
25750
|
+
try {
|
|
25751
|
+
await connect();
|
|
25752
|
+
return;
|
|
25753
|
+
} catch {
|
|
25754
|
+
}
|
|
25755
|
+
}
|
|
25742
25756
|
}
|
|
25743
25757
|
__name(reconnect, "reconnect");
|
|
25744
25758
|
return new ReadableStream({
|
|
@@ -27172,7 +27186,7 @@ __name(start, "start");
|
|
|
27172
27186
|
value: "start",
|
|
27173
27187
|
configurable: true
|
|
27174
27188
|
});
|
|
27175
|
-
})(start, "step//@workflow/core/runtime/start@5.0.0-beta.
|
|
27189
|
+
})(start, "step//@workflow/core/runtime/start@5.0.0-beta.23//start");
|
|
27176
27190
|
function isRetryableStartError(err) {
|
|
27177
27191
|
if (ThrottleError.is(err)) return true;
|
|
27178
27192
|
if (WorkflowWorldError.is(err) && err.status && err.status >= 500) return true;
|
|
@@ -27505,7 +27519,7 @@ var Run = class _Run {
|
|
|
27505
27519
|
value: "wakeUp",
|
|
27506
27520
|
configurable: true
|
|
27507
27521
|
});
|
|
27508
|
-
})(Run.prototype["wakeUp"], "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
27522
|
+
})(Run.prototype["wakeUp"], "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#wakeUp");
|
|
27509
27523
|
(function(__wf_fn, __wf_id) {
|
|
27510
27524
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
27511
27525
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -27514,7 +27528,7 @@ var Run = class _Run {
|
|
|
27514
27528
|
value: "cancel",
|
|
27515
27529
|
configurable: true
|
|
27516
27530
|
});
|
|
27517
|
-
})(Run.prototype["cancel"], "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
27531
|
+
})(Run.prototype["cancel"], "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#cancel");
|
|
27518
27532
|
(function(__wf_fn, __wf_id) {
|
|
27519
27533
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
27520
27534
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -27523,7 +27537,7 @@ var Run = class _Run {
|
|
|
27523
27537
|
value: "getReadable",
|
|
27524
27538
|
configurable: true
|
|
27525
27539
|
});
|
|
27526
|
-
})(Run.prototype["getReadable"], "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
27540
|
+
})(Run.prototype["getReadable"], "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#getReadable");
|
|
27527
27541
|
(function(__wf_fn, __wf_id) {
|
|
27528
27542
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
27529
27543
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -27532,7 +27546,7 @@ var Run = class _Run {
|
|
|
27532
27546
|
value: "exists",
|
|
27533
27547
|
configurable: true
|
|
27534
27548
|
});
|
|
27535
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "exists").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
27549
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "exists").get, "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#exists");
|
|
27536
27550
|
(function(__wf_fn, __wf_id) {
|
|
27537
27551
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
27538
27552
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -27541,7 +27555,7 @@ var Run = class _Run {
|
|
|
27541
27555
|
value: "status",
|
|
27542
27556
|
configurable: true
|
|
27543
27557
|
});
|
|
27544
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "status").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
27558
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "status").get, "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#status");
|
|
27545
27559
|
(function(__wf_fn, __wf_id) {
|
|
27546
27560
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
27547
27561
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -27550,7 +27564,7 @@ var Run = class _Run {
|
|
|
27550
27564
|
value: "returnValue",
|
|
27551
27565
|
configurable: true
|
|
27552
27566
|
});
|
|
27553
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "returnValue").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
27567
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "returnValue").get, "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#returnValue");
|
|
27554
27568
|
(function(__wf_fn, __wf_id) {
|
|
27555
27569
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
27556
27570
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -27559,7 +27573,7 @@ var Run = class _Run {
|
|
|
27559
27573
|
value: "workflowName",
|
|
27560
27574
|
configurable: true
|
|
27561
27575
|
});
|
|
27562
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "workflowName").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
27576
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "workflowName").get, "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#workflowName");
|
|
27563
27577
|
(function(__wf_fn, __wf_id) {
|
|
27564
27578
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
27565
27579
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -27568,7 +27582,7 @@ var Run = class _Run {
|
|
|
27568
27582
|
value: "createdAt",
|
|
27569
27583
|
configurable: true
|
|
27570
27584
|
});
|
|
27571
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "createdAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
27585
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "createdAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#createdAt");
|
|
27572
27586
|
(function(__wf_fn, __wf_id) {
|
|
27573
27587
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
27574
27588
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -27577,7 +27591,7 @@ var Run = class _Run {
|
|
|
27577
27591
|
value: "startedAt",
|
|
27578
27592
|
configurable: true
|
|
27579
27593
|
});
|
|
27580
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "startedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
27594
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "startedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#startedAt");
|
|
27581
27595
|
(function(__wf_fn, __wf_id) {
|
|
27582
27596
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
27583
27597
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -27586,7 +27600,7 @@ var Run = class _Run {
|
|
|
27586
27600
|
value: "completedAt",
|
|
27587
27601
|
configurable: true
|
|
27588
27602
|
});
|
|
27589
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "completedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
27603
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "completedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#completedAt");
|
|
27590
27604
|
(function(__wf_cls, __wf_id) {
|
|
27591
27605
|
var __wf_sym = /* @__PURE__ */ Symbol.for("workflow-class-registry"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
27592
27606
|
__wf_reg.set(__wf_id, __wf_cls);
|
|
@@ -27596,7 +27610,7 @@ var Run = class _Run {
|
|
|
27596
27610
|
enumerable: false,
|
|
27597
27611
|
configurable: false
|
|
27598
27612
|
});
|
|
27599
|
-
})(Run, "class//@workflow/core/runtime/run@5.0.0-beta.
|
|
27613
|
+
})(Run, "class//@workflow/core/runtime/run@5.0.0-beta.23//Run");
|
|
27600
27614
|
|
|
27601
27615
|
// ../workflow/dist/stdlib.js
|
|
27602
27616
|
async function fetch2(...args) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workflow/world-testing",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.23",
|
|
4
4
|
"description": "Testing utilities and World implementation for Workflow SDK",
|
|
5
5
|
"main": "dist/src/index.mjs",
|
|
6
6
|
"files": [
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"hono": "4.12.25",
|
|
22
22
|
"jsonlines": "0.1.1",
|
|
23
23
|
"zod": "4.3.6",
|
|
24
|
-
"@workflow/cli": "5.0.0-beta.
|
|
25
|
-
"@workflow/core": "5.0.0-beta.
|
|
26
|
-
"@workflow/world": "5.0.0-beta.
|
|
27
|
-
"workflow": "5.0.0-beta.
|
|
24
|
+
"@workflow/cli": "5.0.0-beta.23",
|
|
25
|
+
"@workflow/core": "5.0.0-beta.23",
|
|
26
|
+
"@workflow/world": "5.0.0-beta.13",
|
|
27
|
+
"workflow": "5.0.0-beta.23"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/jsonlines": "0.1.5",
|