@workflow/world-testing 5.0.0-beta.22 → 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.
@@ -17091,7 +17091,7 @@ var init_log_format2 = __esm({
17091
17091
  function SemanticConvention2(...names) {
17092
17092
  return (value) => Object.fromEntries(names.map((name) => [name, value]));
17093
17093
  }
17094
- 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;
17095
17095
  var init_semantic_conventions2 = __esm({
17096
17096
  "../core/dist/telemetry/semantic-conventions.js"() {
17097
17097
  "use strict";
@@ -17106,12 +17106,18 @@ var init_semantic_conventions2 = __esm({
17106
17106
  WorkflowResultType2 = SemanticConvention2("workflow.result.type");
17107
17107
  WorkflowTracePropagated2 = SemanticConvention2("workflow.trace.propagated");
17108
17108
  WorkflowTraceMode2 = SemanticConvention2("workflow.trace.mode");
17109
+ WorkflowTurbo2 = SemanticConvention2("workflow.turbo");
17109
17110
  WorkflowErrorName2 = SemanticConvention2("workflow.error.name");
17110
17111
  WorkflowErrorMessage2 = SemanticConvention2("workflow.error.message");
17111
17112
  WorkflowErrorCode2 = SemanticConvention2("workflow.error.code");
17112
17113
  WorkflowStepsCreated2 = SemanticConvention2("workflow.steps.created");
17113
17114
  WorkflowHooksCreated2 = SemanticConvention2("workflow.hooks.created");
17114
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");
17115
17121
  StepName2 = SemanticConvention2("step.name");
17116
17122
  StepId2 = SemanticConvention2("step.id");
17117
17123
  StepAttempt2 = SemanticConvention2("step.attempt");
@@ -17143,6 +17149,7 @@ var init_semantic_conventions2 = __esm({
17143
17149
  WorkflowSuspensionStepCount2 = SemanticConvention2("workflow.suspension.step_count");
17144
17150
  WorkflowSuspensionWaitCount2 = SemanticConvention2("workflow.suspension.wait_count");
17145
17151
  HttpRequestMethod2 = SemanticConvention2("http.request.method");
17152
+ HttpRoute2 = SemanticConvention2("http.route");
17146
17153
  UrlFull2 = SemanticConvention2("url.full");
17147
17154
  ServerAddress2 = SemanticConvention2("server.address");
17148
17155
  ServerPort2 = SemanticConvention2("server.port");
@@ -19193,7 +19200,7 @@ var version4;
19193
19200
  var init_version3 = __esm({
19194
19201
  "../core/dist/version.js"() {
19195
19202
  "use strict";
19196
- version4 = "5.0.0-beta.22";
19203
+ version4 = "5.0.0-beta.23";
19197
19204
  }
19198
19205
  });
19199
19206
 
@@ -74998,12 +75005,18 @@ var WorkflowArgumentsCount;
74998
75005
  var WorkflowResultType;
74999
75006
  var WorkflowTracePropagated;
75000
75007
  var WorkflowTraceMode;
75008
+ var WorkflowTurbo;
75001
75009
  var WorkflowErrorName;
75002
75010
  var WorkflowErrorMessage;
75003
75011
  var WorkflowErrorCode;
75004
75012
  var WorkflowStepsCreated;
75005
75013
  var WorkflowHooksCreated;
75006
75014
  var WorkflowWaitsCreated;
75015
+ var WorkflowRouteType;
75016
+ var WorkflowRouteHandlerCached;
75017
+ var WorkflowRouteInvocationCount;
75018
+ var WorkflowRouteEntrypointAgeMs;
75019
+ var WorkflowRouteModuleBodyInitMs;
75007
75020
  var StepName;
75008
75021
  var StepId;
75009
75022
  var StepAttempt;
@@ -75035,6 +75048,7 @@ var WorkflowSuspensionHookCount;
75035
75048
  var WorkflowSuspensionStepCount;
75036
75049
  var WorkflowSuspensionWaitCount;
75037
75050
  var HttpRequestMethod;
75051
+ var HttpRoute;
75038
75052
  var UrlFull;
75039
75053
  var ServerAddress;
75040
75054
  var ServerPort;
@@ -75071,12 +75085,18 @@ var init_semantic_conventions = __esm2({
75071
75085
  WorkflowResultType = SemanticConvention("workflow.result.type");
75072
75086
  WorkflowTracePropagated = SemanticConvention("workflow.trace.propagated");
75073
75087
  WorkflowTraceMode = SemanticConvention("workflow.trace.mode");
75088
+ WorkflowTurbo = SemanticConvention("workflow.turbo");
75074
75089
  WorkflowErrorName = SemanticConvention("workflow.error.name");
75075
75090
  WorkflowErrorMessage = SemanticConvention("workflow.error.message");
75076
75091
  WorkflowErrorCode = SemanticConvention("workflow.error.code");
75077
75092
  WorkflowStepsCreated = SemanticConvention("workflow.steps.created");
75078
75093
  WorkflowHooksCreated = SemanticConvention("workflow.hooks.created");
75079
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");
75080
75100
  StepName = SemanticConvention("step.name");
75081
75101
  StepId = SemanticConvention("step.id");
75082
75102
  StepAttempt = SemanticConvention("step.attempt");
@@ -75108,6 +75128,7 @@ var init_semantic_conventions = __esm2({
75108
75128
  WorkflowSuspensionStepCount = SemanticConvention("workflow.suspension.step_count");
75109
75129
  WorkflowSuspensionWaitCount = SemanticConvention("workflow.suspension.wait_count");
75110
75130
  HttpRequestMethod = SemanticConvention("http.request.method");
75131
+ HttpRoute = SemanticConvention("http.route");
75111
75132
  UrlFull = SemanticConvention("url.full");
75112
75133
  ServerAddress = SemanticConvention("server.address");
75113
75134
  ServerPort = SemanticConvention("server.port");
@@ -79556,7 +79577,7 @@ var version2;
79556
79577
  var init_version = __esm2({
79557
79578
  "../core/dist/version.js"() {
79558
79579
  "use strict";
79559
- version2 = "5.0.0-beta.22";
79580
+ version2 = "5.0.0-beta.23";
79560
79581
  }
79561
79582
  });
79562
79583
  function getWorkflowQueueName(workflowName, namespace) {
@@ -82793,7 +82814,7 @@ __name2(start, "start");
82793
82814
  value: "start",
82794
82815
  configurable: true
82795
82816
  });
82796
- })(start, "step//@workflow/core/runtime/start@5.0.0-beta.22//start");
82817
+ })(start, "step//@workflow/core/runtime/start@5.0.0-beta.23//start");
82797
82818
  function isRetryableStartError(err) {
82798
82819
  if (ThrottleError.is(err)) return true;
82799
82820
  if (WorkflowWorldError.is(err) && err.status && err.status >= 500) return true;
@@ -83127,7 +83148,7 @@ var Run = class _Run {
83127
83148
  value: "wakeUp",
83128
83149
  configurable: true
83129
83150
  });
83130
- })(Run.prototype["wakeUp"], "step//@workflow/core/runtime/run@5.0.0-beta.22//Run#wakeUp");
83151
+ })(Run.prototype["wakeUp"], "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#wakeUp");
83131
83152
  (function(__wf_fn, __wf_id) {
83132
83153
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
83133
83154
  __wf_reg.set(__wf_id, __wf_fn);
@@ -83136,7 +83157,7 @@ var Run = class _Run {
83136
83157
  value: "cancel",
83137
83158
  configurable: true
83138
83159
  });
83139
- })(Run.prototype["cancel"], "step//@workflow/core/runtime/run@5.0.0-beta.22//Run#cancel");
83160
+ })(Run.prototype["cancel"], "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#cancel");
83140
83161
  (function(__wf_fn, __wf_id) {
83141
83162
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
83142
83163
  __wf_reg.set(__wf_id, __wf_fn);
@@ -83145,7 +83166,7 @@ var Run = class _Run {
83145
83166
  value: "getReadable",
83146
83167
  configurable: true
83147
83168
  });
83148
- })(Run.prototype["getReadable"], "step//@workflow/core/runtime/run@5.0.0-beta.22//Run#getReadable");
83169
+ })(Run.prototype["getReadable"], "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#getReadable");
83149
83170
  (function(__wf_fn, __wf_id) {
83150
83171
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
83151
83172
  __wf_reg.set(__wf_id, __wf_fn);
@@ -83154,7 +83175,7 @@ var Run = class _Run {
83154
83175
  value: "exists",
83155
83176
  configurable: true
83156
83177
  });
83157
- })(Object.getOwnPropertyDescriptor(Run.prototype, "exists").get, "step//@workflow/core/runtime/run@5.0.0-beta.22//Run#exists");
83178
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "exists").get, "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#exists");
83158
83179
  (function(__wf_fn, __wf_id) {
83159
83180
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
83160
83181
  __wf_reg.set(__wf_id, __wf_fn);
@@ -83163,7 +83184,7 @@ var Run = class _Run {
83163
83184
  value: "status",
83164
83185
  configurable: true
83165
83186
  });
83166
- })(Object.getOwnPropertyDescriptor(Run.prototype, "status").get, "step//@workflow/core/runtime/run@5.0.0-beta.22//Run#status");
83187
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "status").get, "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#status");
83167
83188
  (function(__wf_fn, __wf_id) {
83168
83189
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
83169
83190
  __wf_reg.set(__wf_id, __wf_fn);
@@ -83172,7 +83193,7 @@ var Run = class _Run {
83172
83193
  value: "returnValue",
83173
83194
  configurable: true
83174
83195
  });
83175
- })(Object.getOwnPropertyDescriptor(Run.prototype, "returnValue").get, "step//@workflow/core/runtime/run@5.0.0-beta.22//Run#returnValue");
83196
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "returnValue").get, "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#returnValue");
83176
83197
  (function(__wf_fn, __wf_id) {
83177
83198
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
83178
83199
  __wf_reg.set(__wf_id, __wf_fn);
@@ -83181,7 +83202,7 @@ var Run = class _Run {
83181
83202
  value: "workflowName",
83182
83203
  configurable: true
83183
83204
  });
83184
- })(Object.getOwnPropertyDescriptor(Run.prototype, "workflowName").get, "step//@workflow/core/runtime/run@5.0.0-beta.22//Run#workflowName");
83205
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "workflowName").get, "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#workflowName");
83185
83206
  (function(__wf_fn, __wf_id) {
83186
83207
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
83187
83208
  __wf_reg.set(__wf_id, __wf_fn);
@@ -83190,7 +83211,7 @@ var Run = class _Run {
83190
83211
  value: "createdAt",
83191
83212
  configurable: true
83192
83213
  });
83193
- })(Object.getOwnPropertyDescriptor(Run.prototype, "createdAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.22//Run#createdAt");
83214
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "createdAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#createdAt");
83194
83215
  (function(__wf_fn, __wf_id) {
83195
83216
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
83196
83217
  __wf_reg.set(__wf_id, __wf_fn);
@@ -83199,7 +83220,7 @@ var Run = class _Run {
83199
83220
  value: "startedAt",
83200
83221
  configurable: true
83201
83222
  });
83202
- })(Object.getOwnPropertyDescriptor(Run.prototype, "startedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.22//Run#startedAt");
83223
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "startedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#startedAt");
83203
83224
  (function(__wf_fn, __wf_id) {
83204
83225
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
83205
83226
  __wf_reg.set(__wf_id, __wf_fn);
@@ -83208,7 +83229,7 @@ var Run = class _Run {
83208
83229
  value: "completedAt",
83209
83230
  configurable: true
83210
83231
  });
83211
- })(Object.getOwnPropertyDescriptor(Run.prototype, "completedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.22//Run#completedAt");
83232
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "completedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#completedAt");
83212
83233
  (function(__wf_cls, __wf_id) {
83213
83234
  var __wf_sym = /* @__PURE__ */ Symbol.for("workflow-class-registry"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
83214
83235
  __wf_reg.set(__wf_id, __wf_cls);
@@ -83218,7 +83239,7 @@ var Run = class _Run {
83218
83239
  enumerable: false,
83219
83240
  configurable: false
83220
83241
  });
83221
- })(Run, "class//@workflow/core/runtime/run@5.0.0-beta.22//Run");
83242
+ })(Run, "class//@workflow/core/runtime/run@5.0.0-beta.23//Run");
83222
83243
  async function fetch2(...args) {
83223
83244
  return globalThis.fetch(...args);
83224
83245
  }
@@ -99988,7 +100009,7 @@ function workflowEntrypoint(workflowCode2, options) {
99988
100009
  const spanKind = await getSpanKind("CONSUMER");
99989
100010
  return await withTraceContext(parentTraceCarrier, async () => {
99990
100011
  return await withWorkflowBaggage({ workflowRunId: runId, workflowName }, async () => {
99991
- const world = await getWorld();
100012
+ const world = await trace3("workflow.route.get_world", async () => getWorld());
99992
100013
  return trace3(`workflow.execute ${workflowDisplayName2(workflowName)}`, { kind: spanKind, links: spanLinks }, async (span) => {
99993
100014
  span?.setAttributes({
99994
100015
  ...WorkflowName2(workflowName),
@@ -100013,6 +100034,7 @@ function workflowEntrypoint(workflowCode2, options) {
100013
100034
  let preloadedEvents;
100014
100035
  let preloadedEventsCursor;
100015
100036
  const turbo = isTurboEnabled() && runInput !== void 0 && metadata.attempt === 1 && incomingStepId === void 0 && !replayDivergence;
100037
+ span?.setAttributes(WorkflowTurbo2(turbo));
100016
100038
  let runReadyBarrier;
100017
100039
  const awaitRunReady = /* @__PURE__ */ __name(async () => {
100018
100040
  if (runReadyBarrier) {
@@ -100139,7 +100161,13 @@ function workflowEntrypoint(workflowCode2, options) {
100139
100161
  }
100140
100162
  } : {}
100141
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");
100142
100169
  if (turbo && runInput) {
100170
+ recordRunStartedCreateStart(true);
100143
100171
  const startedPromise = world.events.create(
100144
100172
  runId,
100145
100173
  runStartedEvent,
@@ -100189,6 +100217,7 @@ function workflowEntrypoint(workflowCode2, options) {
100189
100217
  });
100190
100218
  } else {
100191
100219
  try {
100220
+ recordRunStartedCreateStart(false);
100192
100221
  const result = await world.events.create(runId, runStartedEvent, { requestId });
100193
100222
  if (!result.run) {
100194
100223
  throw new WorkflowRuntimeError2(`Event creation for 'run_started' did not return the run entity for run "${runId}"`);
@@ -100719,16 +100748,43 @@ function workflowEntrypoint(workflowCode2, options) {
100719
100748
  });
100720
100749
  }), "handler");
100721
100750
  let cachedHandler;
100751
+ let invocationCount = 0;
100752
+ const entrypointCreatedAt = Date.now();
100753
+ const routeModuleBodyInitMs = typeof options?.routeModuleBodyStartedAt === "number" ? entrypointCreatedAt - options.routeModuleBodyStartedAt : void 0;
100722
100754
  return withHealthCheck(async (req) => {
100723
- if (!cachedHandler) {
100724
- cachedHandler = handler(await getWorldHandlers());
100725
- }
100726
- return cachedHandler(req);
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
+ });
100727
100782
  });
100728
100783
  }
100729
100784
  __name(workflowEntrypoint, "workflowEntrypoint");
100730
100785
 
100731
100786
  // .well-known/workflow/v1/virtual-entry.js
100787
+ var workflowRouteModuleBodyStartedAt = Date.now();
100732
100788
  var workflowCode = `globalThis.__private_workflows = new Map();
100733
100789
  "use strict";
100734
100790
  var __create = Object.create;
@@ -117007,10 +117063,10 @@ var Run = class _Run {
117007
117063
  return this.getReadable();
117008
117064
  }
117009
117065
  };
117010
- Run.prototype["wakeUp"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.22//Run#wakeUp");
117011
- Run.prototype["cancel"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.22//Run#cancel");
117012
- Run.prototype["getReadable"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.22//Run#getReadable");
117013
- var __step_Run$exists = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.22//Run#exists");
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");
117014
117070
  Object.defineProperty(Run.prototype, "exists", {
117015
117071
  get() {
117016
117072
  return __step_Run$exists.call(this);
@@ -117018,7 +117074,7 @@ Object.defineProperty(Run.prototype, "exists", {
117018
117074
  configurable: true,
117019
117075
  enumerable: false
117020
117076
  });
117021
- var __step_Run$status = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.22//Run#status");
117077
+ var __step_Run$status = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.23//Run#status");
117022
117078
  Object.defineProperty(Run.prototype, "status", {
117023
117079
  get() {
117024
117080
  return __step_Run$status.call(this);
@@ -117026,7 +117082,7 @@ Object.defineProperty(Run.prototype, "status", {
117026
117082
  configurable: true,
117027
117083
  enumerable: false
117028
117084
  });
117029
- var __step_Run$returnValue = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.22//Run#returnValue");
117085
+ var __step_Run$returnValue = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.23//Run#returnValue");
117030
117086
  Object.defineProperty(Run.prototype, "returnValue", {
117031
117087
  get() {
117032
117088
  return __step_Run$returnValue.call(this);
@@ -117034,7 +117090,7 @@ Object.defineProperty(Run.prototype, "returnValue", {
117034
117090
  configurable: true,
117035
117091
  enumerable: false
117036
117092
  });
117037
- var __step_Run$workflowName = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.22//Run#workflowName");
117093
+ var __step_Run$workflowName = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.23//Run#workflowName");
117038
117094
  Object.defineProperty(Run.prototype, "workflowName", {
117039
117095
  get() {
117040
117096
  return __step_Run$workflowName.call(this);
@@ -117042,7 +117098,7 @@ Object.defineProperty(Run.prototype, "workflowName", {
117042
117098
  configurable: true,
117043
117099
  enumerable: false
117044
117100
  });
117045
- var __step_Run$createdAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.22//Run#createdAt");
117101
+ var __step_Run$createdAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.23//Run#createdAt");
117046
117102
  Object.defineProperty(Run.prototype, "createdAt", {
117047
117103
  get() {
117048
117104
  return __step_Run$createdAt.call(this);
@@ -117050,7 +117106,7 @@ Object.defineProperty(Run.prototype, "createdAt", {
117050
117106
  configurable: true,
117051
117107
  enumerable: false
117052
117108
  });
117053
- var __step_Run$startedAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.22//Run#startedAt");
117109
+ var __step_Run$startedAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.23//Run#startedAt");
117054
117110
  Object.defineProperty(Run.prototype, "startedAt", {
117055
117111
  get() {
117056
117112
  return __step_Run$startedAt.call(this);
@@ -117058,7 +117114,7 @@ Object.defineProperty(Run.prototype, "startedAt", {
117058
117114
  configurable: true,
117059
117115
  enumerable: false
117060
117116
  });
117061
- var __step_Run$completedAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.22//Run#completedAt");
117117
+ var __step_Run$completedAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.23//Run#completedAt");
117062
117118
  Object.defineProperty(Run.prototype, "completedAt", {
117063
117119
  get() {
117064
117120
  return __step_Run$completedAt.call(this);
@@ -117075,7 +117131,7 @@ Object.defineProperty(Run.prototype, "completedAt", {
117075
117131
  enumerable: false,
117076
117132
  configurable: false
117077
117133
  });
117078
- })(Run, "class//@workflow/core/runtime/run@5.0.0-beta.22//Run");
117134
+ })(Run, "class//@workflow/core/runtime/run@5.0.0-beta.23//Run");
117079
117135
 
117080
117136
  // ../core/dist/workflow/create-hook.js
117081
117137
  aliasSerializationClass(RUN_CLASS_ID, Run);
@@ -117298,7 +117354,7 @@ globalThis.__private_workflows.set("workflow//./workflows/retriable-and-fatal//r
117298
117354
  var stepThatThrowsRetryableError = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//./workflows/retriable-and-fatal//stepThatThrowsRetryableError");
117299
117355
  var stepThatFails = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//./workflows/retriable-and-fatal//stepThatFails");
117300
117356
  `;
117301
- var POST = workflowEntrypoint(workflowCode);
117357
+ var POST = workflowEntrypoint(workflowCode, { routeModuleBodyStartedAt: workflowRouteModuleBodyStartedAt });
117302
117358
  export {
117303
117359
  POST
117304
117360
  };
@@ -1,14 +1,6 @@
1
1
  {
2
2
  "version": "1.0.0",
3
3
  "steps": {
4
- "workflows/retriable-and-fatal.ts": {
5
- "stepThatFails": {
6
- "stepId": "step//./workflows/retriable-and-fatal//stepThatFails"
7
- },
8
- "stepThatThrowsRetryableError": {
9
- "stepId": "step//./workflows/retriable-and-fatal//stepThatThrowsRetryableError"
10
- }
11
- },
12
4
  "workflows/hooks.ts": {
13
5
  "writeEvent": {
14
6
  "stepId": "step//./workflows/hooks//writeEvent"
@@ -19,25 +11,22 @@
19
11
  "stepId": "step//./workflows/null-byte//nullByteStep"
20
12
  }
21
13
  },
22
- "workflows/inline-execution.ts": {
23
- "add": {
24
- "stepId": "step//./workflows/inline-execution//add"
25
- },
26
- "closeOutputStream": {
27
- "stepId": "step//./workflows/inline-execution//closeOutputStream"
28
- },
29
- "writeToStream": {
30
- "stepId": "step//./workflows/inline-execution//writeToStream"
31
- }
32
- },
33
14
  "workflows/noop.ts": {
34
15
  "noop": {
35
16
  "stepId": "step//./workflows/noop//noop"
36
17
  }
37
18
  },
38
- "workflow/dist/stdlib.js": {
39
- "fetch": {
40
- "stepId": "step//./workflow/dist/stdlib//fetch"
19
+ "workflows/addition.ts": {
20
+ "add": {
21
+ "stepId": "step//./workflows/addition//add"
22
+ }
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"
41
30
  }
42
31
  },
43
32
  "workflow/dist/internal/builtins.js": {
@@ -54,60 +43,71 @@
54
43
  "stepId": "__builtin_set_attributes"
55
44
  }
56
45
  },
57
- "workflows/addition.ts": {
46
+ "workflow/dist/stdlib.js": {
47
+ "fetch": {
48
+ "stepId": "step//./workflow/dist/stdlib//fetch"
49
+ }
50
+ },
51
+ "workflows/inline-execution.ts": {
58
52
  "add": {
59
- "stepId": "step//./workflows/addition//add"
53
+ "stepId": "step//./workflows/inline-execution//add"
54
+ },
55
+ "closeOutputStream": {
56
+ "stepId": "step//./workflows/inline-execution//closeOutputStream"
57
+ },
58
+ "writeToStream": {
59
+ "stepId": "step//./workflows/inline-execution//writeToStream"
60
60
  }
61
61
  },
62
62
  "core/dist/runtime/start.js": {
63
63
  "start": {
64
- "stepId": "step//@workflow/core/runtime/start@5.0.0-beta.22//start"
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.22//Run#cancel"
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.22//Run#completedAt"
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.22//Run#createdAt"
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.22//Run#exists"
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.22//Run#getReadable"
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.22//Run#returnValue"
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.22//Run#startedAt"
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.22//Run#status"
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.22//Run#wakeUp"
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.22//Run#workflowName"
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/retriable-and-fatal.ts": {
102
- "retryableAndFatalErrorWorkflow": {
103
- "workflowId": "workflow//./workflows/retriable-and-fatal//retryableAndFatalErrorWorkflow",
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: retryableAndFatalErrorWorkflow",
110
+ "label": "Start: collectWithHook",
111
111
  "nodeKind": "workflow_start"
112
112
  }
113
113
  },
@@ -131,16 +131,16 @@
131
131
  }
132
132
  }
133
133
  },
134
- "workflows/hooks.ts": {
135
- "collectWithHook": {
136
- "workflowId": "workflow//./workflows/hooks//collectWithHook",
134
+ "workflows/null-byte.ts": {
135
+ "nullByteWorkflow": {
136
+ "workflowId": "workflow//./workflows/null-byte//nullByteWorkflow",
137
137
  "graph": {
138
138
  "nodes": [
139
139
  {
140
140
  "id": "start",
141
141
  "type": "workflowStart",
142
142
  "data": {
143
- "label": "Start: collectWithHook",
143
+ "label": "Start: nullByteWorkflow",
144
144
  "nodeKind": "workflow_start"
145
145
  }
146
146
  },
@@ -164,16 +164,16 @@
164
164
  }
165
165
  }
166
166
  },
167
- "workflows/null-byte.ts": {
168
- "nullByteWorkflow": {
169
- "workflowId": "workflow//./workflows/null-byte//nullByteWorkflow",
167
+ "workflows/noop.ts": {
168
+ "brokenWf": {
169
+ "workflowId": "workflow//./workflows/noop//brokenWf",
170
170
  "graph": {
171
171
  "nodes": [
172
172
  {
173
173
  "id": "start",
174
174
  "type": "workflowStart",
175
175
  "data": {
176
- "label": "Start: nullByteWorkflow",
176
+ "label": "Start: brokenWf",
177
177
  "nodeKind": "workflow_start"
178
178
  }
179
179
  },
@@ -197,16 +197,16 @@
197
197
  }
198
198
  }
199
199
  },
200
- "workflows/inline-execution.ts": {
201
- "hookWorkflow": {
202
- "workflowId": "workflow//./workflows/inline-execution//hookWorkflow",
200
+ "workflows/addition.ts": {
201
+ "addTenWorkflow": {
202
+ "workflowId": "workflow//./workflows/addition//addTenWorkflow",
203
203
  "graph": {
204
204
  "nodes": [
205
205
  {
206
206
  "id": "start",
207
207
  "type": "workflowStart",
208
208
  "data": {
209
- "label": "Start: hookWorkflow",
209
+ "label": "Start: addTenWorkflow",
210
210
  "nodeKind": "workflow_start"
211
211
  }
212
212
  },
@@ -229,15 +229,15 @@
229
229
  ]
230
230
  }
231
231
  },
232
- "parallelStepsWorkflow": {
233
- "workflowId": "workflow//./workflows/inline-execution//parallelStepsWorkflow",
232
+ "addition": {
233
+ "workflowId": "workflow//./workflows/addition//addition",
234
234
  "graph": {
235
235
  "nodes": [
236
236
  {
237
237
  "id": "start",
238
238
  "type": "workflowStart",
239
239
  "data": {
240
- "label": "Start: parallelStepsWorkflow",
240
+ "label": "Start: addition",
241
241
  "nodeKind": "workflow_start"
242
242
  }
243
243
  },
@@ -259,16 +259,18 @@
259
259
  }
260
260
  ]
261
261
  }
262
- },
263
- "sequentialStepsWithStreamWorkflow": {
264
- "workflowId": "workflow//./workflows/inline-execution//sequentialStepsWithStreamWorkflow",
262
+ }
263
+ },
264
+ "workflows/retriable-and-fatal.ts": {
265
+ "retryableAndFatalErrorWorkflow": {
266
+ "workflowId": "workflow//./workflows/retriable-and-fatal//retryableAndFatalErrorWorkflow",
265
267
  "graph": {
266
268
  "nodes": [
267
269
  {
268
270
  "id": "start",
269
271
  "type": "workflowStart",
270
272
  "data": {
271
- "label": "Start: sequentialStepsWithStreamWorkflow",
273
+ "label": "Start: retryableAndFatalErrorWorkflow",
272
274
  "nodeKind": "workflow_start"
273
275
  }
274
276
  },
@@ -290,16 +292,18 @@
290
292
  }
291
293
  ]
292
294
  }
293
- },
294
- "sequentialStepsWorkflow": {
295
- "workflowId": "workflow//./workflows/inline-execution//sequentialStepsWorkflow",
295
+ }
296
+ },
297
+ "workflows/inline-execution.ts": {
298
+ "hookWorkflow": {
299
+ "workflowId": "workflow//./workflows/inline-execution//hookWorkflow",
296
300
  "graph": {
297
301
  "nodes": [
298
302
  {
299
303
  "id": "start",
300
304
  "type": "workflowStart",
301
305
  "data": {
302
- "label": "Start: sequentialStepsWorkflow",
306
+ "label": "Start: hookWorkflow",
303
307
  "nodeKind": "workflow_start"
304
308
  }
305
309
  },
@@ -322,26 +326,18 @@
322
326
  ]
323
327
  }
324
328
  },
325
- "sleepWorkflow": {
326
- "workflowId": "workflow//./workflows/inline-execution//sleepWorkflow",
329
+ "parallelStepsWorkflow": {
330
+ "workflowId": "workflow//./workflows/inline-execution//parallelStepsWorkflow",
327
331
  "graph": {
328
332
  "nodes": [
329
333
  {
330
334
  "id": "start",
331
335
  "type": "workflowStart",
332
336
  "data": {
333
- "label": "Start: sleepWorkflow",
337
+ "label": "Start: parallelStepsWorkflow",
334
338
  "nodeKind": "workflow_start"
335
339
  }
336
340
  },
337
- {
338
- "id": "node_0",
339
- "type": "primitive",
340
- "data": {
341
- "label": "sleep",
342
- "nodeKind": "primitive"
343
- }
344
- },
345
341
  {
346
342
  "id": "end",
347
343
  "type": "workflowEnd",
@@ -353,29 +349,23 @@
353
349
  ],
354
350
  "edges": [
355
351
  {
356
- "id": "e_start_node_0",
352
+ "id": "e_start_end",
357
353
  "source": "start",
358
- "target": "node_0",
359
- "type": "default"
360
- },
361
- {
362
- "id": "e_node_0_end",
363
- "source": "node_0",
364
354
  "target": "end",
365
355
  "type": "default"
366
356
  }
367
357
  ]
368
358
  }
369
359
  },
370
- "threeBatchesOfFiveWorkflow": {
371
- "workflowId": "workflow//./workflows/inline-execution//threeBatchesOfFiveWorkflow",
360
+ "sequentialStepsWithStreamWorkflow": {
361
+ "workflowId": "workflow//./workflows/inline-execution//sequentialStepsWithStreamWorkflow",
372
362
  "graph": {
373
363
  "nodes": [
374
364
  {
375
365
  "id": "start",
376
366
  "type": "workflowStart",
377
367
  "data": {
378
- "label": "Start: threeBatchesOfFiveWorkflow",
368
+ "label": "Start: sequentialStepsWithStreamWorkflow",
379
369
  "nodeKind": "workflow_start"
380
370
  }
381
371
  },
@@ -397,18 +387,16 @@
397
387
  }
398
388
  ]
399
389
  }
400
- }
401
- },
402
- "workflows/noop.ts": {
403
- "brokenWf": {
404
- "workflowId": "workflow//./workflows/noop//brokenWf",
390
+ },
391
+ "sequentialStepsWorkflow": {
392
+ "workflowId": "workflow//./workflows/inline-execution//sequentialStepsWorkflow",
405
393
  "graph": {
406
394
  "nodes": [
407
395
  {
408
396
  "id": "start",
409
397
  "type": "workflowStart",
410
398
  "data": {
411
- "label": "Start: brokenWf",
399
+ "label": "Start: sequentialStepsWorkflow",
412
400
  "nodeKind": "workflow_start"
413
401
  }
414
402
  },
@@ -430,21 +418,27 @@
430
418
  }
431
419
  ]
432
420
  }
433
- }
434
- },
435
- "workflows/addition.ts": {
436
- "addTenWorkflow": {
437
- "workflowId": "workflow//./workflows/addition//addTenWorkflow",
421
+ },
422
+ "sleepWorkflow": {
423
+ "workflowId": "workflow//./workflows/inline-execution//sleepWorkflow",
438
424
  "graph": {
439
425
  "nodes": [
440
426
  {
441
427
  "id": "start",
442
428
  "type": "workflowStart",
443
429
  "data": {
444
- "label": "Start: addTenWorkflow",
430
+ "label": "Start: sleepWorkflow",
445
431
  "nodeKind": "workflow_start"
446
432
  }
447
433
  },
434
+ {
435
+ "id": "node_0",
436
+ "type": "primitive",
437
+ "data": {
438
+ "label": "sleep",
439
+ "nodeKind": "primitive"
440
+ }
441
+ },
448
442
  {
449
443
  "id": "end",
450
444
  "type": "workflowEnd",
@@ -456,23 +450,29 @@
456
450
  ],
457
451
  "edges": [
458
452
  {
459
- "id": "e_start_end",
453
+ "id": "e_start_node_0",
460
454
  "source": "start",
455
+ "target": "node_0",
456
+ "type": "default"
457
+ },
458
+ {
459
+ "id": "e_node_0_end",
460
+ "source": "node_0",
461
461
  "target": "end",
462
462
  "type": "default"
463
463
  }
464
464
  ]
465
465
  }
466
466
  },
467
- "addition": {
468
- "workflowId": "workflow//./workflows/addition//addition",
467
+ "threeBatchesOfFiveWorkflow": {
468
+ "workflowId": "workflow//./workflows/inline-execution//threeBatchesOfFiveWorkflow",
469
469
  "graph": {
470
470
  "nodes": [
471
471
  {
472
472
  "id": "start",
473
473
  "type": "workflowStart",
474
474
  "data": {
475
- "label": "Start: addition",
475
+ "label": "Start: threeBatchesOfFiveWorkflow",
476
476
  "nodeKind": "workflow_start"
477
477
  }
478
478
  },
@@ -500,7 +500,7 @@
500
500
  "classes": {
501
501
  "core/dist/runtime/run.js": {
502
502
  "Run": {
503
- "classId": "class//@workflow/core/runtime/run@5.0.0-beta.22//Run"
503
+ "classId": "class//@workflow/core/runtime/run@5.0.0-beta.23//Run"
504
504
  }
505
505
  }
506
506
  }
@@ -19447,7 +19447,7 @@ function SemanticConvention(...names) {
19447
19447
  value
19448
19448
  ]));
19449
19449
  }
19450
- 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;
19451
19451
  var init_semantic_conventions = __esm({
19452
19452
  "../core/dist/telemetry/semantic-conventions.js"() {
19453
19453
  "use strict";
@@ -19462,12 +19462,18 @@ var init_semantic_conventions = __esm({
19462
19462
  WorkflowResultType = SemanticConvention("workflow.result.type");
19463
19463
  WorkflowTracePropagated = SemanticConvention("workflow.trace.propagated");
19464
19464
  WorkflowTraceMode = SemanticConvention("workflow.trace.mode");
19465
+ WorkflowTurbo = SemanticConvention("workflow.turbo");
19465
19466
  WorkflowErrorName = SemanticConvention("workflow.error.name");
19466
19467
  WorkflowErrorMessage = SemanticConvention("workflow.error.message");
19467
19468
  WorkflowErrorCode = SemanticConvention("workflow.error.code");
19468
19469
  WorkflowStepsCreated = SemanticConvention("workflow.steps.created");
19469
19470
  WorkflowHooksCreated = SemanticConvention("workflow.hooks.created");
19470
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");
19471
19477
  StepName = SemanticConvention("step.name");
19472
19478
  StepId = SemanticConvention("step.id");
19473
19479
  StepAttempt = SemanticConvention("step.attempt");
@@ -19499,6 +19505,7 @@ var init_semantic_conventions = __esm({
19499
19505
  WorkflowSuspensionStepCount = SemanticConvention("workflow.suspension.step_count");
19500
19506
  WorkflowSuspensionWaitCount = SemanticConvention("workflow.suspension.wait_count");
19501
19507
  HttpRequestMethod = SemanticConvention("http.request.method");
19508
+ HttpRoute = SemanticConvention("http.route");
19502
19509
  UrlFull = SemanticConvention("url.full");
19503
19510
  ServerAddress = SemanticConvention("server.address");
19504
19511
  ServerPort = SemanticConvention("server.port");
@@ -23996,7 +24003,7 @@ var version2;
23996
24003
  var init_version = __esm({
23997
24004
  "../core/dist/version.js"() {
23998
24005
  "use strict";
23999
- version2 = "5.0.0-beta.22";
24006
+ version2 = "5.0.0-beta.23";
24000
24007
  }
24001
24008
  });
24002
24009
 
@@ -27179,7 +27186,7 @@ __name(start, "start");
27179
27186
  value: "start",
27180
27187
  configurable: true
27181
27188
  });
27182
- })(start, "step//@workflow/core/runtime/start@5.0.0-beta.22//start");
27189
+ })(start, "step//@workflow/core/runtime/start@5.0.0-beta.23//start");
27183
27190
  function isRetryableStartError(err) {
27184
27191
  if (ThrottleError.is(err)) return true;
27185
27192
  if (WorkflowWorldError.is(err) && err.status && err.status >= 500) return true;
@@ -27512,7 +27519,7 @@ var Run = class _Run {
27512
27519
  value: "wakeUp",
27513
27520
  configurable: true
27514
27521
  });
27515
- })(Run.prototype["wakeUp"], "step//@workflow/core/runtime/run@5.0.0-beta.22//Run#wakeUp");
27522
+ })(Run.prototype["wakeUp"], "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#wakeUp");
27516
27523
  (function(__wf_fn, __wf_id) {
27517
27524
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
27518
27525
  __wf_reg.set(__wf_id, __wf_fn);
@@ -27521,7 +27528,7 @@ var Run = class _Run {
27521
27528
  value: "cancel",
27522
27529
  configurable: true
27523
27530
  });
27524
- })(Run.prototype["cancel"], "step//@workflow/core/runtime/run@5.0.0-beta.22//Run#cancel");
27531
+ })(Run.prototype["cancel"], "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#cancel");
27525
27532
  (function(__wf_fn, __wf_id) {
27526
27533
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
27527
27534
  __wf_reg.set(__wf_id, __wf_fn);
@@ -27530,7 +27537,7 @@ var Run = class _Run {
27530
27537
  value: "getReadable",
27531
27538
  configurable: true
27532
27539
  });
27533
- })(Run.prototype["getReadable"], "step//@workflow/core/runtime/run@5.0.0-beta.22//Run#getReadable");
27540
+ })(Run.prototype["getReadable"], "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#getReadable");
27534
27541
  (function(__wf_fn, __wf_id) {
27535
27542
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
27536
27543
  __wf_reg.set(__wf_id, __wf_fn);
@@ -27539,7 +27546,7 @@ var Run = class _Run {
27539
27546
  value: "exists",
27540
27547
  configurable: true
27541
27548
  });
27542
- })(Object.getOwnPropertyDescriptor(Run.prototype, "exists").get, "step//@workflow/core/runtime/run@5.0.0-beta.22//Run#exists");
27549
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "exists").get, "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#exists");
27543
27550
  (function(__wf_fn, __wf_id) {
27544
27551
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
27545
27552
  __wf_reg.set(__wf_id, __wf_fn);
@@ -27548,7 +27555,7 @@ var Run = class _Run {
27548
27555
  value: "status",
27549
27556
  configurable: true
27550
27557
  });
27551
- })(Object.getOwnPropertyDescriptor(Run.prototype, "status").get, "step//@workflow/core/runtime/run@5.0.0-beta.22//Run#status");
27558
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "status").get, "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#status");
27552
27559
  (function(__wf_fn, __wf_id) {
27553
27560
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
27554
27561
  __wf_reg.set(__wf_id, __wf_fn);
@@ -27557,7 +27564,7 @@ var Run = class _Run {
27557
27564
  value: "returnValue",
27558
27565
  configurable: true
27559
27566
  });
27560
- })(Object.getOwnPropertyDescriptor(Run.prototype, "returnValue").get, "step//@workflow/core/runtime/run@5.0.0-beta.22//Run#returnValue");
27567
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "returnValue").get, "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#returnValue");
27561
27568
  (function(__wf_fn, __wf_id) {
27562
27569
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
27563
27570
  __wf_reg.set(__wf_id, __wf_fn);
@@ -27566,7 +27573,7 @@ var Run = class _Run {
27566
27573
  value: "workflowName",
27567
27574
  configurable: true
27568
27575
  });
27569
- })(Object.getOwnPropertyDescriptor(Run.prototype, "workflowName").get, "step//@workflow/core/runtime/run@5.0.0-beta.22//Run#workflowName");
27576
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "workflowName").get, "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#workflowName");
27570
27577
  (function(__wf_fn, __wf_id) {
27571
27578
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
27572
27579
  __wf_reg.set(__wf_id, __wf_fn);
@@ -27575,7 +27582,7 @@ var Run = class _Run {
27575
27582
  value: "createdAt",
27576
27583
  configurable: true
27577
27584
  });
27578
- })(Object.getOwnPropertyDescriptor(Run.prototype, "createdAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.22//Run#createdAt");
27585
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "createdAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#createdAt");
27579
27586
  (function(__wf_fn, __wf_id) {
27580
27587
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
27581
27588
  __wf_reg.set(__wf_id, __wf_fn);
@@ -27584,7 +27591,7 @@ var Run = class _Run {
27584
27591
  value: "startedAt",
27585
27592
  configurable: true
27586
27593
  });
27587
- })(Object.getOwnPropertyDescriptor(Run.prototype, "startedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.22//Run#startedAt");
27594
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "startedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#startedAt");
27588
27595
  (function(__wf_fn, __wf_id) {
27589
27596
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
27590
27597
  __wf_reg.set(__wf_id, __wf_fn);
@@ -27593,7 +27600,7 @@ var Run = class _Run {
27593
27600
  value: "completedAt",
27594
27601
  configurable: true
27595
27602
  });
27596
- })(Object.getOwnPropertyDescriptor(Run.prototype, "completedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.22//Run#completedAt");
27603
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "completedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#completedAt");
27597
27604
  (function(__wf_cls, __wf_id) {
27598
27605
  var __wf_sym = /* @__PURE__ */ Symbol.for("workflow-class-registry"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
27599
27606
  __wf_reg.set(__wf_id, __wf_cls);
@@ -27603,7 +27610,7 @@ var Run = class _Run {
27603
27610
  enumerable: false,
27604
27611
  configurable: false
27605
27612
  });
27606
- })(Run, "class//@workflow/core/runtime/run@5.0.0-beta.22//Run");
27613
+ })(Run, "class//@workflow/core/runtime/run@5.0.0-beta.23//Run");
27607
27614
 
27608
27615
  // ../workflow/dist/stdlib.js
27609
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.22",
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.22",
25
- "@workflow/core": "5.0.0-beta.22",
24
+ "@workflow/cli": "5.0.0-beta.23",
25
+ "@workflow/core": "5.0.0-beta.23",
26
26
  "@workflow/world": "5.0.0-beta.13",
27
- "workflow": "5.0.0-beta.22"
27
+ "workflow": "5.0.0-beta.23"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/jsonlines": "0.1.5",