@workflow/world-testing 5.0.0-beta.48 → 5.0.0-beta.49

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.
@@ -688,8 +688,17 @@ Caused by: ${options.cause.stack}`;
688
688
  static {
689
689
  __name(this, "RunExpiredError");
690
690
  }
691
- constructor(message) {
692
- super(message);
691
+ runId;
692
+ runStatus;
693
+ expiredAt;
694
+ constructor(message, runId, runStatus, expiredAt) {
695
+ super(message, {
696
+ status: 410,
697
+ code: "run-expired"
698
+ });
699
+ this.runId = runId;
700
+ this.runStatus = runStatus;
701
+ this.expiredAt = expiredAt;
693
702
  this.name = "RunExpiredError";
694
703
  }
695
704
  static is(value) {
@@ -18529,13 +18538,14 @@ function validateAttributeChanges(changes, context = {}) {
18529
18538
  }
18530
18539
  validateAttributeBatchConstraints(changes, context);
18531
18540
  }
18532
- var RESERVED_ATTRIBUTE_KEY_PREFIX, ROOT_RUN_ID_ATTRIBUTE, PARENT_RUN_ID_ATTRIBUTE, ATTRIBUTE_KEY_MAX_LENGTH, ATTRIBUTE_VALUE_MAX_BYTES, ATTRIBUTE_MAX_PER_RUN, textEncoder, AttributeValidationError;
18541
+ 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;
18533
18542
  var init_attributes_validation = __esm({
18534
18543
  "../world/dist/attributes-validation.js"() {
18535
18544
  "use strict";
18536
18545
  RESERVED_ATTRIBUTE_KEY_PREFIX = "$";
18537
18546
  ROOT_RUN_ID_ATTRIBUTE = `${RESERVED_ATTRIBUTE_KEY_PREFIX}rootRunId`;
18538
18547
  PARENT_RUN_ID_ATTRIBUTE = `${RESERVED_ATTRIBUTE_KEY_PREFIX}parentRunId`;
18548
+ RETENTION_ATTRIBUTE = `${RESERVED_ATTRIBUTE_KEY_PREFIX}retention`;
18539
18549
  ATTRIBUTE_KEY_MAX_LENGTH = 256;
18540
18550
  ATTRIBUTE_VALUE_MAX_BYTES = 256;
18541
18551
  ATTRIBUTE_MAX_PER_RUN = 64;
@@ -26042,7 +26052,7 @@ var version2;
26042
26052
  var init_version = __esm({
26043
26053
  "../core/dist/version.js"() {
26044
26054
  "use strict";
26045
- version2 = "5.0.0-beta.48";
26055
+ version2 = "5.0.0-beta.49";
26046
26056
  }
26047
26057
  });
26048
26058
 
@@ -32458,6 +32468,42 @@ async function getForwardedWritableEncryptionKey(runId, deploymentId, encryption
32458
32468
  "encrypt"
32459
32469
  ]) : void 0;
32460
32470
  }
32471
+ function tagForwardedWritableTarget(writable, { deploymentId, encryptionPublicKey }) {
32472
+ if (typeof deploymentId === "string") {
32473
+ Object.defineProperty(writable, STREAM_SERVER_DEPLOYMENT_ID_SYMBOL, {
32474
+ value: deploymentId,
32475
+ writable: false
32476
+ });
32477
+ }
32478
+ if (typeof encryptionPublicKey === "string") {
32479
+ Object.defineProperty(writable, STREAM_SERVER_PUBLIC_KEY_SYMBOL, {
32480
+ value: encryptionPublicKey,
32481
+ writable: false
32482
+ });
32483
+ }
32484
+ }
32485
+ function createForwardedWritable({ global: global2, ops, runId, name, key, deploymentId, encryptionPublicKey, runReadyBarrier }) {
32486
+ const serialize3 = getSerializeStream(getExternalReducers(global2, ops, runId, key), key);
32487
+ const serverWritable = new WorkflowServerWritableStream(runId, name, runReadyBarrier);
32488
+ const state = createFlushableState();
32489
+ ops.push(state.promise);
32490
+ flushablePipe(serialize3.readable, serverWritable, state).catch(() => {
32491
+ });
32492
+ pollWritableLock(serialize3.writable, state);
32493
+ Object.defineProperty(serialize3.writable, STREAM_NAME_SYMBOL, {
32494
+ value: name,
32495
+ writable: false
32496
+ });
32497
+ Object.defineProperty(serialize3.writable, STREAM_SERVER_RUN_ID_SYMBOL, {
32498
+ value: runId,
32499
+ writable: false
32500
+ });
32501
+ tagForwardedWritableTarget(serialize3.writable, {
32502
+ deploymentId,
32503
+ encryptionPublicKey
32504
+ });
32505
+ return serialize3.writable;
32506
+ }
32461
32507
  function getRunReadableStream(global2, ops, runId, name, startIndex, cryptoKey) {
32462
32508
  let reader;
32463
32509
  let lockState;
@@ -32573,34 +32619,15 @@ function getExternalRevivers(global2 = globalThis, ops, runId, cryptoKey, option
32573
32619
  WritableStream: /* @__PURE__ */ __name((value) => {
32574
32620
  const targetRunId = typeof value.runId === "string" ? value.runId : runId;
32575
32621
  const targetKey = targetRunId === runId ? cryptoKey : getForwardedWritableEncryptionKey(targetRunId, value.deploymentId, value.encryptionPublicKey);
32576
- const serialize3 = getSerializeStream(getExternalReducers(global2, ops, targetRunId, targetKey), targetKey);
32577
- const serverWritable = new WorkflowServerWritableStream(targetRunId, value.name);
32578
- const state = createFlushableState();
32579
- ops.push(state.promise);
32580
- flushablePipe(serialize3.readable, serverWritable, state).catch(() => {
32581
- });
32582
- pollWritableLock(serialize3.writable, state);
32583
- Object.defineProperty(serialize3.writable, STREAM_NAME_SYMBOL, {
32584
- value: value.name,
32585
- writable: false
32586
- });
32587
- Object.defineProperty(serialize3.writable, STREAM_SERVER_RUN_ID_SYMBOL, {
32588
- value: targetRunId,
32589
- writable: false
32622
+ return createForwardedWritable({
32623
+ global: global2,
32624
+ ops,
32625
+ runId: targetRunId,
32626
+ name: value.name,
32627
+ key: targetKey,
32628
+ deploymentId: value.deploymentId,
32629
+ encryptionPublicKey: value.encryptionPublicKey
32590
32630
  });
32591
- if (typeof value.deploymentId === "string") {
32592
- Object.defineProperty(serialize3.writable, STREAM_SERVER_DEPLOYMENT_ID_SYMBOL, {
32593
- value: value.deploymentId,
32594
- writable: false
32595
- });
32596
- }
32597
- if (typeof value.encryptionPublicKey === "string") {
32598
- Object.defineProperty(serialize3.writable, STREAM_SERVER_PUBLIC_KEY_SYMBOL, {
32599
- value: value.encryptionPublicKey,
32600
- writable: false
32601
- });
32602
- }
32603
- return serialize3.writable;
32604
32631
  }, "WritableStream"),
32605
32632
  AbortController: /* @__PURE__ */ __name((value) => reviveAbortController(value, ops, runId), "AbortController"),
32606
32633
  AbortSignal: /* @__PURE__ */ __name((value) => reviveAbortSignal(value, ops, runId), "AbortSignal")
@@ -33073,6 +33100,14 @@ var init_serialization2 = __esm({
33073
33100
  pendingRunReady = void 0;
33074
33101
  }
33075
33102
  }, "ensureRunReady");
33103
+ const writerId = `wrtr_${defaultUlid()}`;
33104
+ const writeSessionPromise = ensureRunReady().then(async () => {
33105
+ const world = await worldPromise;
33106
+ return world.streams.createWriteSession?.(runId, name, {
33107
+ writerId
33108
+ });
33109
+ });
33110
+ let nextChunkSeq = 0;
33076
33111
  let buffer2 = [];
33077
33112
  let bufferBytes = 0;
33078
33113
  let inFlightChunks = 0;
@@ -33118,14 +33153,18 @@ var init_serialization2 = __esm({
33118
33153
  const sendGroup = /* @__PURE__ */ __name(async (group, bytes, groupT0) => {
33119
33154
  await ensureRunReady();
33120
33155
  const world = await worldPromise;
33156
+ const session = await writeSessionPromise;
33121
33157
  const dispatchAt = Date.now();
33122
- if (typeof world.streams.writeMulti === "function" && group.length > 1) {
33158
+ if (session) {
33159
+ await session.write(nextChunkSeq, group);
33160
+ } else if (typeof world.streams.writeMulti === "function" && group.length > 1) {
33123
33161
  await world.streams.writeMulti(runId, name, group);
33124
33162
  } else {
33125
33163
  for (const chunk of group) {
33126
33164
  await world.streams.write(runId, name, chunk);
33127
33165
  }
33128
33166
  }
33167
+ nextChunkSeq += group.length;
33129
33168
  if (groupT0 !== void 0) {
33130
33169
  recordStreamWriteFlush(groupT0, dispatchAt, runId, name, group.length, bytes, Date.now() - dispatchAt);
33131
33170
  }
@@ -33236,8 +33275,13 @@ var init_serialization2 = __esm({
33236
33275
  await drain();
33237
33276
  await ensureRunReady();
33238
33277
  const world = await worldPromise;
33278
+ const session = await writeSessionPromise;
33239
33279
  const closeStart = Date.now();
33240
- await world.streams.close(runId, name);
33280
+ if (session) {
33281
+ await session.close();
33282
+ } else {
33283
+ await world.streams.close(runId, name);
33284
+ }
33241
33285
  recordStreamClose(closeStart, runId, name);
33242
33286
  },
33243
33287
  async abort(reason) {
@@ -33253,6 +33297,8 @@ var init_serialization2 = __esm({
33253
33297
  bufferBytes = 0;
33254
33298
  sinkError ??= reason ?? new Error("Stream aborted");
33255
33299
  rejectWaiters(sinkError);
33300
+ const session = await writeSessionPromise.catch(() => void 0);
33301
+ await session?.dispose?.();
33256
33302
  }
33257
33303
  });
33258
33304
  Object.defineProperty(this, STREAM_DRAIN_SYMBOL, {
@@ -33277,6 +33323,8 @@ var init_serialization2 = __esm({
33277
33323
  __name(reviveAbortSignal, "reviveAbortSignal");
33278
33324
  __name(getCommonRevivers2, "getCommonRevivers");
33279
33325
  __name(getForwardedWritableEncryptionKey, "getForwardedWritableEncryptionKey");
33326
+ __name(tagForwardedWritableTarget, "tagForwardedWritableTarget");
33327
+ __name(createForwardedWritable, "createForwardedWritable");
33280
33328
  __name(getRunReadableStream, "getRunReadableStream");
33281
33329
  __name(getExternalRevivers, "getExternalRevivers");
33282
33330
  __name(getStepRevivers, "getStepRevivers");
@@ -33518,6 +33566,7 @@ __name(getWorkflowVmFromEnv, "getWorkflowVmFromEnv");
33518
33566
  init_wait_until();
33519
33567
  init_world_compatibility();
33520
33568
  var CROSS_DEPLOYMENT_CAPABILITY_PROBE_TIMEOUT_MS = 2e3;
33569
+ var RETENTION_ZERO_ATTRIBUTE_VALUE = "0";
33521
33570
  var ulid3 = monotonicFactory();
33522
33571
  function resolveLineageAttributes() {
33523
33572
  const store = contextStorage.getStore();
@@ -33622,14 +33671,27 @@ async function start(workflow, argsOrOptions, options) {
33622
33671
  value
33623
33672
  ]));
33624
33673
  }
33674
+ let retentionAttribute;
33675
+ if (opts.experimental_retention !== void 0 && opts.experimental_retention !== "default") {
33676
+ if (opts.experimental_retention !== 0) {
33677
+ throw new WorkflowRuntimeError(`start({ experimental_retention }) must be 0 or 'default'; received ${JSON.stringify(opts.experimental_retention)}.`);
33678
+ }
33679
+ if (specVersion < SPEC_VERSION_SUPPORTS_ATTRIBUTES) {
33680
+ throw new WorkflowRuntimeError("start({ experimental_retention }) requires a World that supports spec version 4 or later.");
33681
+ }
33682
+ retentionAttribute = {
33683
+ [RETENTION_ATTRIBUTE]: RETENTION_ZERO_ATTRIBUTE_VALUE
33684
+ };
33685
+ }
33625
33686
  const lineage = specVersion >= SPEC_VERSION_SUPPORTS_ATTRIBUTES ? resolveLineageAttributes() : void 0;
33626
- const runAttributes = lineage ? {
33687
+ const runAttributes = lineage || retentionAttribute ? {
33627
33688
  ...lineage,
33628
- ...attributes
33689
+ ...attributes,
33690
+ ...retentionAttribute
33629
33691
  } : attributes;
33630
33692
  const attributeSeed = runAttributes ? {
33631
33693
  attributes: runAttributes,
33632
- ...allowReservedAttributes || lineage != null ? {
33694
+ ...allowReservedAttributes || lineage != null || retentionAttribute != null ? {
33633
33695
  allowReservedAttributes: true
33634
33696
  } : {}
33635
33697
  } : {};
@@ -33775,7 +33837,7 @@ __name(start, "start");
33775
33837
  value: "start",
33776
33838
  configurable: true
33777
33839
  });
33778
- })(start, "step//@workflow/core/runtime/start@5.0.0-beta.48//start");
33840
+ })(start, "step//@workflow/core/runtime/start@5.0.0-beta.49//start");
33779
33841
 
33780
33842
  // ../core/dist/runtime/runs.js
33781
33843
  async function wakeUpRun(world, runId, options) {
@@ -33866,6 +33928,11 @@ var PAYLOAD_TERMINAL_RUN_STATUSES = /* @__PURE__ */ new Set([
33866
33928
  "completed",
33867
33929
  "failed"
33868
33930
  ]);
33931
+ var NOT_FOUND_RETRY_DELAYS = [
33932
+ 1e3,
33933
+ 3e3,
33934
+ 6e3
33935
+ ];
33869
33936
  function getReturnValuePollIntervalMs() {
33870
33937
  return envNumber("WORKFLOW_RETURN_VALUE_POLL_INTERVAL_MS", RETURN_VALUE_POLL_INTERVAL_MS, {
33871
33938
  integer: true,
@@ -34083,8 +34150,75 @@ var Run = class _Run {
34083
34150
  }, "getTailIndex")
34084
34151
  });
34085
34152
  }
34153
+ /** The writable stream of the workflow run. */
34154
+ get writable() {
34155
+ return this.getWritable();
34156
+ }
34157
+ /**
34158
+ * Returns a writable that appends to this run's stream.
34159
+ *
34160
+ * Initialization is deferred until the first write. The run must already
34161
+ * exist. The writable may be forwarded through `start()` and into steps, but
34162
+ * grants no read access or additional authorization.
34163
+ *
34164
+ * @remarks
34165
+ * `writer.close()` closes the shared stream. Contributors should call
34166
+ * `releaseLock()`, which also drains pending writes.
34167
+ *
34168
+ * @param options - The writable stream options.
34169
+ */
34170
+ getWritable(options = {}) {
34171
+ const { ops = [], global: global2 = globalThis, namespace } = options;
34172
+ const name = getWorkflowRunStreamId(this.runId, namespace);
34173
+ let targetPromise;
34174
+ let writable;
34175
+ const resolveTarget = /* @__PURE__ */ __name(() => {
34176
+ targetPromise ??= this.#getMetadata().then(async (run2) => {
34177
+ const target = {
34178
+ key: await getForwardedWritableEncryptionKey(this.runId, run2.deploymentId, run2.encryptionPublicKey),
34179
+ deploymentId: run2.deploymentId,
34180
+ encryptionPublicKey: run2.encryptionPublicKey
34181
+ };
34182
+ tagForwardedWritableTarget(writable, target);
34183
+ return target;
34184
+ });
34185
+ return targetPromise;
34186
+ }, "resolveTarget");
34187
+ writable = createForwardedWritable({
34188
+ global: global2,
34189
+ ops,
34190
+ runId: this.runId,
34191
+ name,
34192
+ key: /* @__PURE__ */ __name(() => resolveTarget().then(({ key }) => key), "key")
34193
+ });
34194
+ return writable;
34195
+ }
34196
+ /** Reads metadata, briefly retrying resilient starts. @internal */
34197
+ async #getMetadata() {
34198
+ const world = await this.#lazyWorldPromise;
34199
+ const maxRetries = this.#resilientStart ? NOT_FOUND_RETRY_DELAYS.length : 0;
34200
+ let attempt = 0;
34201
+ while (true) {
34202
+ try {
34203
+ return await world.runs.get(this.runId, {
34204
+ resolveData: "none"
34205
+ });
34206
+ } catch (error48) {
34207
+ if (!WorkflowRunNotFoundError.is(error48) || attempt >= maxRetries) {
34208
+ throw error48;
34209
+ }
34210
+ const delay = NOT_FOUND_RETRY_DELAYS[attempt];
34211
+ attempt++;
34212
+ await new Promise((resolve) => setTimeout(resolve, delay));
34213
+ }
34214
+ }
34215
+ }
34086
34216
  /** @internal */
34087
34217
  async #resolveTerminalReturnValue(run2) {
34218
+ const expiredAt = run2.expiredAt;
34219
+ if (expiredAt != null && expiredAt <= /* @__PURE__ */ new Date()) {
34220
+ throw new RunExpiredError(`Run "${this.runId}" ${run2.status === "completed" ? "completed" : `is ${run2.status}`}, but its data expired at ${expiredAt.toISOString()} and is no longer readable.`, this.runId, run2.status, expiredAt);
34221
+ }
34088
34222
  if (run2.status === "completed") {
34089
34223
  const encryptionKey = await this.#getEncryptionKey(run2);
34090
34224
  return await hydrateWorkflowReturnValue(run2.output, this.runId, encryptionKey);
@@ -34114,12 +34248,7 @@ var Run = class _Run {
34114
34248
  async #pollReturnValue() {
34115
34249
  const world = await this.#lazyWorldPromise;
34116
34250
  let notFoundRetries = 0;
34117
- const NOT_FOUND_MAX_RETRIES = this.#resilientStart ? 3 : 0;
34118
- const NOT_FOUND_DELAYS = [
34119
- 1e3,
34120
- 3e3,
34121
- 6e3
34122
- ];
34251
+ const NOT_FOUND_MAX_RETRIES = this.#resilientStart ? NOT_FOUND_RETRY_DELAYS.length : 0;
34123
34252
  const waitForTerminalStatus = isReturnValueLongPollEnabled() ? world.runs.waitForTerminalStatus?.bind(world.runs) : void 0;
34124
34253
  let longPolls = 0;
34125
34254
  const maxLongPolls = getReturnValueMaxLongPolls();
@@ -34153,7 +34282,7 @@ var Run = class _Run {
34153
34282
  continue;
34154
34283
  }
34155
34284
  if (WorkflowRunNotFoundError.is(error48) && notFoundRetries < NOT_FOUND_MAX_RETRIES) {
34156
- const delay = NOT_FOUND_DELAYS[notFoundRetries];
34285
+ const delay = NOT_FOUND_RETRY_DELAYS[notFoundRetries];
34157
34286
  notFoundRetries++;
34158
34287
  await new Promise((resolve) => setTimeout(resolve, delay));
34159
34288
  continue;
@@ -34171,7 +34300,7 @@ var Run = class _Run {
34171
34300
  value: "wakeUp",
34172
34301
  configurable: true
34173
34302
  });
34174
- })(Run.prototype["wakeUp"], "step//@workflow/core/runtime/run@5.0.0-beta.48//Run#wakeUp");
34303
+ })(Run.prototype["wakeUp"], "step//@workflow/core/runtime/run@5.0.0-beta.49//Run#wakeUp");
34175
34304
  (function(__wf_fn, __wf_id) {
34176
34305
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
34177
34306
  __wf_reg.set(__wf_id, __wf_fn);
@@ -34180,7 +34309,7 @@ var Run = class _Run {
34180
34309
  value: "cancel",
34181
34310
  configurable: true
34182
34311
  });
34183
- })(Run.prototype["cancel"], "step//@workflow/core/runtime/run@5.0.0-beta.48//Run#cancel");
34312
+ })(Run.prototype["cancel"], "step//@workflow/core/runtime/run@5.0.0-beta.49//Run#cancel");
34184
34313
  (function(__wf_fn, __wf_id) {
34185
34314
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
34186
34315
  __wf_reg.set(__wf_id, __wf_fn);
@@ -34189,7 +34318,16 @@ var Run = class _Run {
34189
34318
  value: "getReadable",
34190
34319
  configurable: true
34191
34320
  });
34192
- })(Run.prototype["getReadable"], "step//@workflow/core/runtime/run@5.0.0-beta.48//Run#getReadable");
34321
+ })(Run.prototype["getReadable"], "step//@workflow/core/runtime/run@5.0.0-beta.49//Run#getReadable");
34322
+ (function(__wf_fn, __wf_id) {
34323
+ var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
34324
+ __wf_reg.set(__wf_id, __wf_fn);
34325
+ __wf_fn.stepId = __wf_id;
34326
+ Object.defineProperty(__wf_fn, "name", {
34327
+ value: "getWritable",
34328
+ configurable: true
34329
+ });
34330
+ })(Run.prototype["getWritable"], "step//@workflow/core/runtime/run@5.0.0-beta.49//Run#getWritable");
34193
34331
  (function(__wf_fn, __wf_id) {
34194
34332
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
34195
34333
  __wf_reg.set(__wf_id, __wf_fn);
@@ -34198,7 +34336,7 @@ var Run = class _Run {
34198
34336
  value: "exists",
34199
34337
  configurable: true
34200
34338
  });
34201
- })(Object.getOwnPropertyDescriptor(Run.prototype, "exists").get, "step//@workflow/core/runtime/run@5.0.0-beta.48//Run#exists");
34339
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "exists").get, "step//@workflow/core/runtime/run@5.0.0-beta.49//Run#exists");
34202
34340
  (function(__wf_fn, __wf_id) {
34203
34341
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
34204
34342
  __wf_reg.set(__wf_id, __wf_fn);
@@ -34207,7 +34345,7 @@ var Run = class _Run {
34207
34345
  value: "status",
34208
34346
  configurable: true
34209
34347
  });
34210
- })(Object.getOwnPropertyDescriptor(Run.prototype, "status").get, "step//@workflow/core/runtime/run@5.0.0-beta.48//Run#status");
34348
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "status").get, "step//@workflow/core/runtime/run@5.0.0-beta.49//Run#status");
34211
34349
  (function(__wf_fn, __wf_id) {
34212
34350
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
34213
34351
  __wf_reg.set(__wf_id, __wf_fn);
@@ -34216,7 +34354,7 @@ var Run = class _Run {
34216
34354
  value: "returnValue",
34217
34355
  configurable: true
34218
34356
  });
34219
- })(Object.getOwnPropertyDescriptor(Run.prototype, "returnValue").get, "step//@workflow/core/runtime/run@5.0.0-beta.48//Run#returnValue");
34357
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "returnValue").get, "step//@workflow/core/runtime/run@5.0.0-beta.49//Run#returnValue");
34220
34358
  (function(__wf_fn, __wf_id) {
34221
34359
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
34222
34360
  __wf_reg.set(__wf_id, __wf_fn);
@@ -34225,7 +34363,7 @@ var Run = class _Run {
34225
34363
  value: "workflowName",
34226
34364
  configurable: true
34227
34365
  });
34228
- })(Object.getOwnPropertyDescriptor(Run.prototype, "workflowName").get, "step//@workflow/core/runtime/run@5.0.0-beta.48//Run#workflowName");
34366
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "workflowName").get, "step//@workflow/core/runtime/run@5.0.0-beta.49//Run#workflowName");
34229
34367
  (function(__wf_fn, __wf_id) {
34230
34368
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
34231
34369
  __wf_reg.set(__wf_id, __wf_fn);
@@ -34234,7 +34372,7 @@ var Run = class _Run {
34234
34372
  value: "createdAt",
34235
34373
  configurable: true
34236
34374
  });
34237
- })(Object.getOwnPropertyDescriptor(Run.prototype, "createdAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.48//Run#createdAt");
34375
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "createdAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.49//Run#createdAt");
34238
34376
  (function(__wf_fn, __wf_id) {
34239
34377
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
34240
34378
  __wf_reg.set(__wf_id, __wf_fn);
@@ -34243,7 +34381,7 @@ var Run = class _Run {
34243
34381
  value: "startedAt",
34244
34382
  configurable: true
34245
34383
  });
34246
- })(Object.getOwnPropertyDescriptor(Run.prototype, "startedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.48//Run#startedAt");
34384
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "startedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.49//Run#startedAt");
34247
34385
  (function(__wf_fn, __wf_id) {
34248
34386
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
34249
34387
  __wf_reg.set(__wf_id, __wf_fn);
@@ -34252,7 +34390,7 @@ var Run = class _Run {
34252
34390
  value: "completedAt",
34253
34391
  configurable: true
34254
34392
  });
34255
- })(Object.getOwnPropertyDescriptor(Run.prototype, "completedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.48//Run#completedAt");
34393
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "completedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.49//Run#completedAt");
34256
34394
  (function(__wf_cls, __wf_id) {
34257
34395
  var __wf_sym = /* @__PURE__ */ Symbol.for("workflow-class-registry"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
34258
34396
  __wf_reg.set(__wf_id, __wf_cls);
@@ -34262,7 +34400,7 @@ var Run = class _Run {
34262
34400
  enumerable: false,
34263
34401
  configurable: false
34264
34402
  });
34265
- })(Run, "class//@workflow/core/runtime/run@5.0.0-beta.48//Run");
34403
+ })(Run, "class//@workflow/core/runtime/run@5.0.0-beta.49//Run");
34266
34404
 
34267
34405
  // ../workflow/dist/stdlib.js
34268
34406
  async function fetch2(...args) {