@workflow/world-testing 5.0.0-beta.52 → 5.0.0-beta.54

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.
@@ -24557,6 +24557,12 @@ var init_zod = __esm({
24557
24557
  });
24558
24558
 
24559
24559
  // ../world/dist/attributes-validation.js
24560
+ function validateAttributeEventDataSize(eventData) {
24561
+ const bytes = textEncoder.encode(JSON.stringify(eventData)).length;
24562
+ if (bytes > ATTRIBUTE_EVENT_DATA_MAX_BYTES) {
24563
+ throw new AttributeValidationError(`Attribute eventData exceeds limit ${ATTRIBUTE_EVENT_DATA_MAX_BYTES} UTF-8 JSON bytes (received ${bytes} bytes). Split the changes into smaller setAttributes() calls.`);
24564
+ }
24565
+ }
24560
24566
  function assertValidAttributeKey(key, allowReservedAttributes) {
24561
24567
  if (typeof key !== "string") {
24562
24568
  throw new AttributeValidationError(`Attribute key must be a string, got ${typeof key}`);
@@ -24607,7 +24613,7 @@ function validateAttributeChanges(changes, context = {}) {
24607
24613
  }
24608
24614
  validateAttributeBatchConstraints(changes, context);
24609
24615
  }
24610
- var RESERVED_ATTRIBUTE_KEY_PREFIX, ROOT_RUN_ID_ATTRIBUTE, PARENT_RUN_ID_ATTRIBUTE, RETENTION_ATTRIBUTE, ATTRIBUTE_KEY_MAX_LENGTH, ATTRIBUTE_VALUE_MAX_BYTES, ATTRIBUTE_MAX_PER_RUN, textEncoder, AttributeValidationError;
24616
+ var RESERVED_ATTRIBUTE_KEY_PREFIX, ROOT_RUN_ID_ATTRIBUTE, PARENT_RUN_ID_ATTRIBUTE, RETENTION_ATTRIBUTE, ATTRIBUTE_KEY_MAX_LENGTH, ATTRIBUTE_VALUE_MAX_BYTES, ATTRIBUTE_MAX_PER_RUN, ATTRIBUTE_EVENT_DATA_MAX_BYTES, textEncoder, AttributeValidationError;
24611
24617
  var init_attributes_validation = __esm({
24612
24618
  "../world/dist/attributes-validation.js"() {
24613
24619
  "use strict";
@@ -24618,6 +24624,7 @@ var init_attributes_validation = __esm({
24618
24624
  ATTRIBUTE_KEY_MAX_LENGTH = 256;
24619
24625
  ATTRIBUTE_VALUE_MAX_BYTES = 256;
24620
24626
  ATTRIBUTE_MAX_PER_RUN = 64;
24627
+ ATTRIBUTE_EVENT_DATA_MAX_BYTES = 8192;
24621
24628
  textEncoder = new TextEncoder();
24622
24629
  AttributeValidationError = class extends Error {
24623
24630
  static {
@@ -24628,6 +24635,7 @@ var init_attributes_validation = __esm({
24628
24635
  this.name = "AttributeValidationError";
24629
24636
  }
24630
24637
  };
24638
+ __name(validateAttributeEventDataSize, "validateAttributeEventDataSize");
24631
24639
  __name(assertValidAttributeKey, "assertValidAttributeKey");
24632
24640
  __name(assertValidAttributeValue, "assertValidAttributeValue");
24633
24641
  __name(attributeCountDelta, "attributeCountDelta");
@@ -25651,6 +25659,11 @@ var init_queue = __esm({
25651
25659
  }));
25652
25660
  WorkflowInvokePayloadSchema = external_exports.compile(external_exports.object({
25653
25661
  runId: external_exports.string(),
25662
+ /** Process this input and return the handler's result as response data. */
25663
+ invoke: external_exports.literal(true).optional(),
25664
+ /** Identifies one input across retries, separately from the queue delivery ID. */
25665
+ requestId: external_exports.string().optional(),
25666
+ input: external_exports.unknown().optional(),
25654
25667
  traceCarrier: TraceCarrierSchema.optional(),
25655
25668
  requestedAt: external_exports.coerce.date().optional(),
25656
25669
  /**
@@ -27255,6 +27268,7 @@ function renderStructuredFields(framing, body, metadata) {
27255
27268
  "errorName",
27256
27269
  "errorMessage",
27257
27270
  "errorStack",
27271
+ "errorCause",
27258
27272
  "hint",
27259
27273
  "attempt",
27260
27274
  "retryCount"
@@ -27297,6 +27311,10 @@ function renderStructuredFields(framing, body, metadata) {
27297
27311
  if (errorMessage && !redundant.has("errorMessage")) {
27298
27312
  lines.push(` ${kvKey("error")} ${formatPassthroughValue(errorMessage)}`);
27299
27313
  }
27314
+ const errorCause = pickString(metadata, "errorCause");
27315
+ if (errorCause && !body.includes(errorCause)) {
27316
+ lines.push(` ${kvKey("cause")} ${formatPassthroughValue(errorCause)}`);
27317
+ }
27300
27318
  const hint2 = pickString(metadata, "hint");
27301
27319
  if (hint2) {
27302
27320
  lines.push(` ${hint(hint2)}`);
@@ -32164,7 +32182,7 @@ var version2;
32164
32182
  var init_version = __esm({
32165
32183
  "../core/dist/version.js"() {
32166
32184
  "use strict";
32167
- version2 = "5.0.0-beta.52";
32185
+ version2 = "5.0.0-beta.54";
32168
32186
  }
32169
32187
  });
32170
32188
 
@@ -32343,6 +32361,38 @@ var init_helpers = __esm({
32343
32361
  }
32344
32362
  });
32345
32363
 
32364
+ // ../core/dist/runtime/invocations.js
32365
+ var HookInvocationSchema, HookInvocationResultSchema;
32366
+ var init_invocations = __esm({
32367
+ "../core/dist/runtime/invocations.js"() {
32368
+ "use strict";
32369
+ init_dist2();
32370
+ init_dist4();
32371
+ init_zod();
32372
+ init_semantic_conventions();
32373
+ init_telemetry();
32374
+ HookInvocationSchema = external_exports.object({
32375
+ type: external_exports.literal("hook_resume"),
32376
+ version: external_exports.literal(1),
32377
+ hookId: external_exports.string(),
32378
+ token: external_exports.string(),
32379
+ payload: external_exports.instanceof(Uint8Array)
32380
+ });
32381
+ HookInvocationResultSchema = external_exports.discriminatedUnion("status", [
32382
+ external_exports.object({
32383
+ status: external_exports.literal("accepted")
32384
+ }),
32385
+ external_exports.object({
32386
+ status: external_exports.literal("rejected"),
32387
+ code: external_exports.enum([
32388
+ "HOOK_NOT_FOUND",
32389
+ "INVALID_INPUT"
32390
+ ])
32391
+ })
32392
+ ]);
32393
+ }
32394
+ });
32395
+
32346
32396
  // ../../node_modules/.pnpm/@vercel+functions@3.8.0_@aws-sdk+credential-provider-web-identity@3.972.49_ws@8.20.0/node_modules/@vercel/functions/headers.js
32347
32397
  var require_headers = __commonJS({
32348
32398
  "../../node_modules/.pnpm/@vercel+functions@3.8.0_@aws-sdk+credential-provider-web-identity@3.972.49_ws@8.20.0/node_modules/@vercel/functions/headers.js"(exports, module) {
@@ -37477,6 +37527,29 @@ async function resumeHookImpl(tokenOrHook, payload, encryptionKeyOverride, hookF
37477
37527
  if (originLink) {
37478
37528
  span?.addLink?.(originLink);
37479
37529
  }
37530
+ if (world.capabilities?.invoke === true && !v1Compat && dehydratedPayload instanceof Uint8Array) {
37531
+ if (!world.invoke) {
37532
+ throw new WorkflowRuntimeError("World advertises invoke without implementing it");
37533
+ }
37534
+ span?.setAttributes({
37535
+ "workflow.hook.resume_strategy": "invoke"
37536
+ });
37537
+ const result = HookInvocationResultSchema.parse(await world.invoke(hook.runId, {
37538
+ type: "hook_resume",
37539
+ version: 1,
37540
+ hookId: hook.hookId,
37541
+ token: hook.token,
37542
+ payload: dehydratedPayload
37543
+ }, {
37544
+ idempotencyKey: generateResumeId()
37545
+ }));
37546
+ if (result.status === "rejected") {
37547
+ if (result.code === "HOOK_NOT_FOUND") throw new HookNotFoundError(hook.token);
37548
+ throw new WorkflowRuntimeError("Executor rejected the hook invocation input");
37549
+ }
37550
+ span?.setAttributes(HookResumeCommitted(true));
37551
+ return asLazyMetadataHook(hook);
37552
+ }
37480
37553
  const queueName = getWorkflowQueueName(resumeContext.workflowName);
37481
37554
  const queueOptions = {
37482
37555
  deploymentId: resumeContext.deploymentId,
@@ -37614,6 +37687,7 @@ var init_resume_hook = __esm({
37614
37687
  init_telemetry();
37615
37688
  init_get_world_lazy();
37616
37689
  init_helpers();
37690
+ init_invocations();
37617
37691
  init_wait_until();
37618
37692
  generateResumeId = monotonicFactory();
37619
37693
  __name(computeResumePayloadDigest, "computeResumePayloadDigest");
@@ -38606,6 +38680,13 @@ async function getForwardedWritableEncryptionKey(runId, deploymentId, encryption
38606
38680
  "encrypt"
38607
38681
  ]) : void 0;
38608
38682
  }
38683
+ function lazyForwardedWritableEncryptionKey(runId, deploymentId, encryptionPublicKey) {
38684
+ let keyPromise;
38685
+ return () => {
38686
+ keyPromise ??= getForwardedWritableEncryptionKey(runId, deploymentId, encryptionPublicKey);
38687
+ return keyPromise;
38688
+ };
38689
+ }
38609
38690
  function tagForwardedWritableTarget(writable, { deploymentId, encryptionPublicKey }) {
38610
38691
  if (typeof deploymentId === "string") {
38611
38692
  Object.defineProperty(writable, STREAM_SERVER_DEPLOYMENT_ID_SYMBOL, {
@@ -38643,6 +38724,14 @@ function createForwardedWritable({ global: global2, ops, runId, name, key, deplo
38643
38724
  return serialize3.writable;
38644
38725
  }
38645
38726
  function getRunReadableStream(global2, ops, runId, name, startIndex, cryptoKey) {
38727
+ return getLazyReadableStream((onReadableState) => getExternalRevivers(global2, ops, runId, cryptoKey, {
38728
+ onReadableState
38729
+ }).ReadableStream({
38730
+ name,
38731
+ startIndex
38732
+ }));
38733
+ }
38734
+ function getLazyReadableStream(reviveReadable, onReadableState) {
38646
38735
  let reader;
38647
38736
  let lockState;
38648
38737
  let lockPollingStarted = false;
@@ -38652,18 +38741,14 @@ function getRunReadableStream(global2, ops, runId, name, startIndex, cryptoKey)
38652
38741
  async pull(controller) {
38653
38742
  try {
38654
38743
  if (!reader) {
38655
- const stream = getExternalRevivers(global2, ops, runId, cryptoKey, {
38656
- onReadableState: /* @__PURE__ */ __name((state) => {
38657
- lockState = state;
38658
- }, "onReadableState")
38659
- }).ReadableStream({
38660
- name,
38661
- startIndex
38744
+ const stream = reviveReadable((state) => {
38745
+ lockState = state;
38662
38746
  });
38663
38747
  reader = stream.getReader();
38664
38748
  if (lockState && !lockPollingStarted) {
38665
38749
  lockPollingStarted = true;
38666
- pollReadableLock(userReadable, lockState);
38750
+ if (onReadableState) onReadableState(lockState);
38751
+ else pollReadableLock(userReadable, lockState);
38667
38752
  }
38668
38753
  }
38669
38754
  const result = await reader.read();
@@ -38687,6 +38772,43 @@ function getRunReadableStream(global2, ops, runId, name, startIndex, cryptoKey)
38687
38772
  return userReadable;
38688
38773
  }
38689
38774
  function getExternalRevivers(global2 = globalThis, ops, runId, cryptoKey, options) {
38775
+ function reviveReadableStream(value, onReadableState = options?.onReadableState) {
38776
+ if (value.type === "bytes") {
38777
+ const readable2 = new WorkflowServerReadableStream(runId, value.name, value.startIndex);
38778
+ const state2 = createFlushableState();
38779
+ ops.push(state2.promise);
38780
+ const { readable: userReadable, writable } = value.framing === "framed-v1" ? getByteUnframingStream() : new global2.TransformStream();
38781
+ flushablePipe(readable2, writable, state2).catch(() => {
38782
+ });
38783
+ if (onReadableState) onReadableState(state2);
38784
+ else pollReadableLock(userReadable, state2);
38785
+ return userReadable;
38786
+ }
38787
+ let keyPromise;
38788
+ const resolveKey = /* @__PURE__ */ __name(() => {
38789
+ keyPromise ??= resolveEncryptionKey(cryptoKey);
38790
+ return keyPromise;
38791
+ }, "resolveKey");
38792
+ const readable = createReconnectingFramedStream(runId, value.name, value.startIndex, resolveKey);
38793
+ const transform2 = getDeserializeStream(getExternalRevivers(global2, ops, runId, resolveKey, {
38794
+ lazyStreams: options?.lazyStreams,
38795
+ liveAbortSignals: options?.liveAbortSignals
38796
+ }), resolveKey);
38797
+ const state = createFlushableState();
38798
+ ops.push(state.promise);
38799
+ flushablePipe(readable, transform2.writable, state).catch(() => {
38800
+ });
38801
+ if (onReadableState) onReadableState(state);
38802
+ else pollReadableLock(transform2.readable, state);
38803
+ return transform2.readable;
38804
+ }
38805
+ __name(reviveReadableStream, "reviveReadableStream");
38806
+ function reviveAbortSnapshot(value) {
38807
+ const controller = new AbortController();
38808
+ if (value.aborted) controller.abort(value.reason);
38809
+ return controller;
38810
+ }
38811
+ __name(reviveAbortSnapshot, "reviveAbortSnapshot");
38690
38812
  return {
38691
38813
  ...getCommonRevivers2(global2),
38692
38814
  // StepFunction should not be returned from workflows to clients
@@ -38727,36 +38849,11 @@ function getExternalRevivers(global2 = globalThis, ops, runId, cryptoKey, option
38727
38849
  const response = new global2.Response(bodyInit);
38728
38850
  return response.body;
38729
38851
  }
38730
- if (value.type === "bytes") {
38731
- const readable = new WorkflowServerReadableStream(runId, value.name, value.startIndex);
38732
- const state = createFlushableState();
38733
- ops.push(state.promise);
38734
- const { readable: userReadable, writable } = value.framing === "framed-v1" ? getByteUnframingStream() : new global2.TransformStream();
38735
- flushablePipe(readable, writable, state).catch(() => {
38736
- });
38737
- if (options?.onReadableState) options.onReadableState(state);
38738
- else pollReadableLock(userReadable, state);
38739
- return userReadable;
38740
- } else {
38741
- let keyPromise;
38742
- const resolveKey = /* @__PURE__ */ __name(() => {
38743
- keyPromise ??= resolveEncryptionKey(cryptoKey);
38744
- return keyPromise;
38745
- }, "resolveKey");
38746
- const readable = createReconnectingFramedStream(runId, value.name, value.startIndex, resolveKey);
38747
- const transform2 = getDeserializeStream(getExternalRevivers(global2, ops, runId, resolveKey), resolveKey);
38748
- const state = createFlushableState();
38749
- ops.push(state.promise);
38750
- flushablePipe(readable, transform2.writable, state).catch(() => {
38751
- });
38752
- if (options?.onReadableState) options.onReadableState(state);
38753
- else pollReadableLock(transform2.readable, state);
38754
- return transform2.readable;
38755
- }
38852
+ return options?.lazyStreams ? getLazyReadableStream((onReadableState) => reviveReadableStream(value, onReadableState), options.onReadableState) : reviveReadableStream(value);
38756
38853
  }, "ReadableStream"),
38757
38854
  WritableStream: /* @__PURE__ */ __name((value) => {
38758
38855
  const targetRunId = typeof value.runId === "string" ? value.runId : runId;
38759
- const targetKey = targetRunId === runId ? cryptoKey : getForwardedWritableEncryptionKey(targetRunId, value.deploymentId, value.encryptionPublicKey);
38856
+ const targetKey = targetRunId === runId ? cryptoKey : lazyForwardedWritableEncryptionKey(targetRunId, value.deploymentId, value.encryptionPublicKey);
38760
38857
  return createForwardedWritable({
38761
38858
  global: global2,
38762
38859
  ops,
@@ -38767,8 +38864,8 @@ function getExternalRevivers(global2 = globalThis, ops, runId, cryptoKey, option
38767
38864
  encryptionPublicKey: value.encryptionPublicKey
38768
38865
  });
38769
38866
  }, "WritableStream"),
38770
- AbortController: /* @__PURE__ */ __name((value) => reviveAbortController(value, ops, runId), "AbortController"),
38771
- AbortSignal: /* @__PURE__ */ __name((value) => reviveAbortSignal(value, ops, runId), "AbortSignal")
38867
+ AbortController: /* @__PURE__ */ __name((value) => options?.liveAbortSignals === false ? reviveAbortSnapshot(value) : reviveAbortController(value, ops, runId), "AbortController"),
38868
+ AbortSignal: /* @__PURE__ */ __name((value) => options?.liveAbortSignals === false ? reviveAbortSnapshot(value).signal : reviveAbortSignal(value, ops, runId), "AbortSignal")
38772
38869
  };
38773
38870
  }
38774
38871
  function getStepRevivers(global2 = globalThis, ops, runId, cryptoKey, deploymentId, streamStates) {
@@ -38902,7 +38999,7 @@ function getStepRevivers(global2 = globalThis, ops, runId, cryptoKey, deployment
38902
38999
  WritableStream: /* @__PURE__ */ __name((value) => {
38903
39000
  const targetRunId = typeof value.runId === "string" ? value.runId : runId;
38904
39001
  const targetDeploymentId = typeof value.deploymentId === "string" ? value.deploymentId : targetRunId === runId ? deploymentId : void 0;
38905
- const targetKey = targetRunId === runId ? cryptoKey : getForwardedWritableEncryptionKey(targetRunId, targetDeploymentId, value.encryptionPublicKey);
39002
+ const targetKey = targetRunId === runId ? cryptoKey : lazyForwardedWritableEncryptionKey(targetRunId, targetDeploymentId, value.encryptionPublicKey);
38906
39003
  const serialize3 = getSerializeStream(getStepReducers(global2, ops, targetRunId, targetKey), targetKey);
38907
39004
  const serverWritable = new WorkflowServerWritableStream(targetRunId, value.name);
38908
39005
  const state = createFlushableState();
@@ -39464,9 +39561,11 @@ var init_serialization2 = __esm({
39464
39561
  __name(reviveAbortSignal, "reviveAbortSignal");
39465
39562
  __name(getCommonRevivers2, "getCommonRevivers");
39466
39563
  __name(getForwardedWritableEncryptionKey, "getForwardedWritableEncryptionKey");
39564
+ __name(lazyForwardedWritableEncryptionKey, "lazyForwardedWritableEncryptionKey");
39467
39565
  __name(tagForwardedWritableTarget, "tagForwardedWritableTarget");
39468
39566
  __name(createForwardedWritable, "createForwardedWritable");
39469
39567
  __name(getRunReadableStream, "getRunReadableStream");
39568
+ __name(getLazyReadableStream, "getLazyReadableStream");
39470
39569
  __name(getExternalRevivers, "getExternalRevivers");
39471
39570
  __name(getStepRevivers, "getStepRevivers");
39472
39571
  __name(dehydrateWorkflowArguments, "dehydrateWorkflowArguments");
@@ -39609,7 +39708,7 @@ init_node();
39609
39708
  // ../core/dist/attribute-changes.js
39610
39709
  init_dist2();
39611
39710
  init_attributes_validation();
39612
- function normalizeAttributeChanges(attrs, options = {}) {
39711
+ function normalizeAttributeChanges(attrs, options = {}, writer) {
39613
39712
  if (attrs === null || typeof attrs !== "object" || Array.isArray(attrs)) {
39614
39713
  throw new FatalError(`setAttributes requires a plain object, got ${attrs === null ? "null" : Array.isArray(attrs) ? "array" : typeof attrs}`);
39615
39714
  }
@@ -39623,6 +39722,15 @@ function normalizeAttributeChanges(attrs, options = {}) {
39623
39722
  validateAttributeChanges(changes, {
39624
39723
  allowReservedAttributes
39625
39724
  });
39725
+ if (writer) {
39726
+ validateAttributeEventDataSize({
39727
+ changes,
39728
+ writer,
39729
+ ...allowReservedAttributes ? {
39730
+ allowReservedAttributes: true
39731
+ } : {}
39732
+ });
39733
+ }
39626
39734
  } catch (err) {
39627
39735
  if (err instanceof AttributeValidationError) {
39628
39736
  throw new FatalError(err.message);
@@ -39978,7 +40086,7 @@ __name(start, "start");
39978
40086
  value: "start",
39979
40087
  configurable: true
39980
40088
  });
39981
- })(start, "step//@workflow/core/runtime/start@5.0.0-beta.52//start");
40089
+ })(start, "step//@workflow/core/runtime/start@5.0.0-beta.54//start");
39982
40090
 
39983
40091
  // ../core/dist/runtime/runs.js
39984
40092
  async function wakeUpRun(world, runId, options) {
@@ -40236,27 +40344,35 @@ var Run = class _Run {
40236
40344
  * The name of the workflow.
40237
40345
  */
40238
40346
  get workflowName() {
40239
- return this.#lazyWorldPromise.then((world) => world.runs.get(this.runId).then((run2) => run2.workflowName));
40347
+ return this.#lazyWorldPromise.then((world) => world.runs.get(this.runId, {
40348
+ resolveData: "none"
40349
+ }).then((run2) => run2.workflowName));
40240
40350
  }
40241
40351
  /**
40242
40352
  * The timestamp when the workflow run was created.
40243
40353
  */
40244
40354
  get createdAt() {
40245
- return this.#lazyWorldPromise.then((world) => world.runs.get(this.runId).then((run2) => run2.createdAt));
40355
+ return this.#lazyWorldPromise.then((world) => world.runs.get(this.runId, {
40356
+ resolveData: "none"
40357
+ }).then((run2) => run2.createdAt));
40246
40358
  }
40247
40359
  /**
40248
40360
  * The timestamp when the workflow run started execution.
40249
40361
  * Returns undefined if the workflow has not started yet.
40250
40362
  */
40251
40363
  get startedAt() {
40252
- return this.#lazyWorldPromise.then((world) => world.runs.get(this.runId).then((run2) => run2.startedAt));
40364
+ return this.#lazyWorldPromise.then((world) => world.runs.get(this.runId, {
40365
+ resolveData: "none"
40366
+ }).then((run2) => run2.startedAt));
40253
40367
  }
40254
40368
  /**
40255
40369
  * The timestamp when the workflow run completed.
40256
40370
  * Returns undefined if the workflow has not completed yet.
40257
40371
  */
40258
40372
  get completedAt() {
40259
- return this.#lazyWorldPromise.then((world) => world.runs.get(this.runId).then((run2) => run2.completedAt));
40373
+ return this.#lazyWorldPromise.then((world) => world.runs.get(this.runId, {
40374
+ resolveData: "none"
40375
+ }).then((run2) => run2.completedAt));
40260
40376
  }
40261
40377
  /**
40262
40378
  * The readable stream of the workflow run.
@@ -40441,7 +40557,7 @@ var Run = class _Run {
40441
40557
  value: "wakeUp",
40442
40558
  configurable: true
40443
40559
  });
40444
- })(Run.prototype["wakeUp"], "step//@workflow/core/runtime/run@5.0.0-beta.52//Run#wakeUp");
40560
+ })(Run.prototype["wakeUp"], "step//@workflow/core/runtime/run@5.0.0-beta.54//Run#wakeUp");
40445
40561
  (function(__wf_fn, __wf_id) {
40446
40562
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
40447
40563
  __wf_reg.set(__wf_id, __wf_fn);
@@ -40450,7 +40566,7 @@ var Run = class _Run {
40450
40566
  value: "cancel",
40451
40567
  configurable: true
40452
40568
  });
40453
- })(Run.prototype["cancel"], "step//@workflow/core/runtime/run@5.0.0-beta.52//Run#cancel");
40569
+ })(Run.prototype["cancel"], "step//@workflow/core/runtime/run@5.0.0-beta.54//Run#cancel");
40454
40570
  (function(__wf_fn, __wf_id) {
40455
40571
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
40456
40572
  __wf_reg.set(__wf_id, __wf_fn);
@@ -40459,7 +40575,7 @@ var Run = class _Run {
40459
40575
  value: "getReadable",
40460
40576
  configurable: true
40461
40577
  });
40462
- })(Run.prototype["getReadable"], "step//@workflow/core/runtime/run@5.0.0-beta.52//Run#getReadable");
40578
+ })(Run.prototype["getReadable"], "step//@workflow/core/runtime/run@5.0.0-beta.54//Run#getReadable");
40463
40579
  (function(__wf_fn, __wf_id) {
40464
40580
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
40465
40581
  __wf_reg.set(__wf_id, __wf_fn);
@@ -40468,7 +40584,7 @@ var Run = class _Run {
40468
40584
  value: "getWritable",
40469
40585
  configurable: true
40470
40586
  });
40471
- })(Run.prototype["getWritable"], "step//@workflow/core/runtime/run@5.0.0-beta.52//Run#getWritable");
40587
+ })(Run.prototype["getWritable"], "step//@workflow/core/runtime/run@5.0.0-beta.54//Run#getWritable");
40472
40588
  (function(__wf_fn, __wf_id) {
40473
40589
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
40474
40590
  __wf_reg.set(__wf_id, __wf_fn);
@@ -40477,7 +40593,7 @@ var Run = class _Run {
40477
40593
  value: "exists",
40478
40594
  configurable: true
40479
40595
  });
40480
- })(Object.getOwnPropertyDescriptor(Run.prototype, "exists").get, "step//@workflow/core/runtime/run@5.0.0-beta.52//Run#exists");
40596
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "exists").get, "step//@workflow/core/runtime/run@5.0.0-beta.54//Run#exists");
40481
40597
  (function(__wf_fn, __wf_id) {
40482
40598
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
40483
40599
  __wf_reg.set(__wf_id, __wf_fn);
@@ -40486,7 +40602,7 @@ var Run = class _Run {
40486
40602
  value: "status",
40487
40603
  configurable: true
40488
40604
  });
40489
- })(Object.getOwnPropertyDescriptor(Run.prototype, "status").get, "step//@workflow/core/runtime/run@5.0.0-beta.52//Run#status");
40605
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "status").get, "step//@workflow/core/runtime/run@5.0.0-beta.54//Run#status");
40490
40606
  (function(__wf_fn, __wf_id) {
40491
40607
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
40492
40608
  __wf_reg.set(__wf_id, __wf_fn);
@@ -40495,7 +40611,7 @@ var Run = class _Run {
40495
40611
  value: "returnValue",
40496
40612
  configurable: true
40497
40613
  });
40498
- })(Object.getOwnPropertyDescriptor(Run.prototype, "returnValue").get, "step//@workflow/core/runtime/run@5.0.0-beta.52//Run#returnValue");
40614
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "returnValue").get, "step//@workflow/core/runtime/run@5.0.0-beta.54//Run#returnValue");
40499
40615
  (function(__wf_fn, __wf_id) {
40500
40616
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
40501
40617
  __wf_reg.set(__wf_id, __wf_fn);
@@ -40504,7 +40620,7 @@ var Run = class _Run {
40504
40620
  value: "workflowName",
40505
40621
  configurable: true
40506
40622
  });
40507
- })(Object.getOwnPropertyDescriptor(Run.prototype, "workflowName").get, "step//@workflow/core/runtime/run@5.0.0-beta.52//Run#workflowName");
40623
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "workflowName").get, "step//@workflow/core/runtime/run@5.0.0-beta.54//Run#workflowName");
40508
40624
  (function(__wf_fn, __wf_id) {
40509
40625
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
40510
40626
  __wf_reg.set(__wf_id, __wf_fn);
@@ -40513,7 +40629,7 @@ var Run = class _Run {
40513
40629
  value: "createdAt",
40514
40630
  configurable: true
40515
40631
  });
40516
- })(Object.getOwnPropertyDescriptor(Run.prototype, "createdAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.52//Run#createdAt");
40632
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "createdAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.54//Run#createdAt");
40517
40633
  (function(__wf_fn, __wf_id) {
40518
40634
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
40519
40635
  __wf_reg.set(__wf_id, __wf_fn);
@@ -40522,7 +40638,7 @@ var Run = class _Run {
40522
40638
  value: "startedAt",
40523
40639
  configurable: true
40524
40640
  });
40525
- })(Object.getOwnPropertyDescriptor(Run.prototype, "startedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.52//Run#startedAt");
40641
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "startedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.54//Run#startedAt");
40526
40642
  (function(__wf_fn, __wf_id) {
40527
40643
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
40528
40644
  __wf_reg.set(__wf_id, __wf_fn);
@@ -40531,7 +40647,7 @@ var Run = class _Run {
40531
40647
  value: "completedAt",
40532
40648
  configurable: true
40533
40649
  });
40534
- })(Object.getOwnPropertyDescriptor(Run.prototype, "completedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.52//Run#completedAt");
40650
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "completedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.54//Run#completedAt");
40535
40651
  (function(__wf_cls, __wf_id) {
40536
40652
  var __wf_sym = /* @__PURE__ */ Symbol.for("workflow-class-registry"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
40537
40653
  __wf_reg.set(__wf_id, __wf_cls);
@@ -40541,7 +40657,7 @@ var Run = class _Run {
40541
40657
  enumerable: false,
40542
40658
  configurable: false
40543
40659
  });
40544
- })(Run, "class//@workflow/core/runtime/run@5.0.0-beta.52//Run");
40660
+ })(Run, "class//@workflow/core/runtime/run@5.0.0-beta.54//Run");
40545
40661
 
40546
40662
  // ../workflow/dist/stdlib.js
40547
40663
  async function fetch2(...args) {