@workflow/world-testing 5.0.0-beta.32 → 5.0.0-beta.33

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.
@@ -15585,7 +15585,7 @@ var init_waits2 = __esm({
15585
15585
  });
15586
15586
 
15587
15587
  // ../world/dist/analytics.js
15588
- var NullableDateSchema2, NullableStringSchema2, NullableBooleanSchema2, AnalyticsRunSchema2, AnalyticsStepSchema2, AnalyticsEventSchema2, AnalyticsHookSchema2, AnalyticsWaitSchema2;
15588
+ var NAIVE_DATETIME2, UTCDateSchema2, NullableDateSchema2, NullableStringSchema2, NullableBooleanSchema2, AnalyticsRunSchema2, AnalyticsStepSchema2, AnalyticsEventSchema2, AnalyticsHookSchema2, AnalyticsWaitSchema2, AnalyticsAttributeKeySchema2;
15589
15589
  var init_analytics2 = __esm({
15590
15590
  "../world/dist/analytics.js"() {
15591
15591
  "use strict";
@@ -15594,7 +15594,14 @@ var init_analytics2 = __esm({
15594
15594
  init_runs2();
15595
15595
  init_steps2();
15596
15596
  init_waits2();
15597
- NullableDateSchema2 = external_exports2.coerce.date().nullable().optional();
15597
+ NAIVE_DATETIME2 = /^\d{4}-\d{2}-\d{2}[ T]\d{2}:\d{2}:\d{2}(?:\.\d+)?$/;
15598
+ UTCDateSchema2 = external_exports2.preprocess((value) => {
15599
+ if (typeof value === "string" && NAIVE_DATETIME2.test(value)) {
15600
+ return `${value.replace(" ", "T")}Z`;
15601
+ }
15602
+ return value;
15603
+ }, external_exports2.coerce.date());
15604
+ NullableDateSchema2 = UTCDateSchema2.nullable().optional();
15598
15605
  NullableStringSchema2 = external_exports2.string().nullable().optional();
15599
15606
  NullableBooleanSchema2 = external_exports2.boolean().nullable().optional();
15600
15607
  AnalyticsRunSchema2 = external_exports2.object({
@@ -15604,8 +15611,8 @@ var init_analytics2 = __esm({
15604
15611
  workflowName: external_exports2.string(),
15605
15612
  specVersion: external_exports2.coerce.number().optional(),
15606
15613
  attributes: external_exports2.record(external_exports2.string(), external_exports2.string()).default({}),
15607
- createdAt: external_exports2.coerce.date(),
15608
- updatedAt: external_exports2.coerce.date(),
15614
+ createdAt: UTCDateSchema2,
15615
+ updatedAt: UTCDateSchema2,
15609
15616
  startedAt: NullableDateSchema2,
15610
15617
  completedAt: NullableDateSchema2,
15611
15618
  errorCode: NullableStringSchema2,
@@ -15618,8 +15625,8 @@ var init_analytics2 = __esm({
15618
15625
  stepName: NullableStringSchema2,
15619
15626
  status: StepStatusSchema2,
15620
15627
  attempt: external_exports2.number().optional(),
15621
- createdAt: external_exports2.coerce.date(),
15622
- updatedAt: external_exports2.coerce.date(),
15628
+ createdAt: UTCDateSchema2,
15629
+ updatedAt: UTCDateSchema2,
15623
15630
  startedAt: NullableDateSchema2,
15624
15631
  completedAt: NullableDateSchema2,
15625
15632
  retryAfter: NullableDateSchema2,
@@ -15637,8 +15644,8 @@ var init_analytics2 = __esm({
15637
15644
  workflowName: external_exports2.string(),
15638
15645
  deploymentId: external_exports2.string(),
15639
15646
  specVersion: external_exports2.coerce.number().optional(),
15640
- runCreatedAt: external_exports2.coerce.date(),
15641
- createdAt: external_exports2.coerce.date(),
15647
+ runCreatedAt: UTCDateSchema2,
15648
+ createdAt: UTCDateSchema2,
15642
15649
  region: NullableStringSchema2,
15643
15650
  vercelId: NullableStringSchema2,
15644
15651
  requestId: NullableStringSchema2,
@@ -15654,8 +15661,8 @@ var init_analytics2 = __esm({
15654
15661
  runId: external_exports2.string(),
15655
15662
  hookId: external_exports2.string(),
15656
15663
  status: external_exports2.enum(["created", "received", "disposed", "conflict"]),
15657
- createdAt: external_exports2.coerce.date(),
15658
- updatedAt: external_exports2.coerce.date(),
15664
+ createdAt: UTCDateSchema2,
15665
+ updatedAt: UTCDateSchema2,
15659
15666
  receivedAt: NullableDateSchema2,
15660
15667
  disposedAt: NullableDateSchema2,
15661
15668
  isWebhook: NullableBooleanSchema2,
@@ -15668,12 +15675,18 @@ var init_analytics2 = __esm({
15668
15675
  waitId: external_exports2.string(),
15669
15676
  status: WaitStatusSchema2,
15670
15677
  resumeAt: NullableDateSchema2,
15671
- createdAt: external_exports2.coerce.date(),
15672
- updatedAt: external_exports2.coerce.date(),
15678
+ createdAt: UTCDateSchema2,
15679
+ updatedAt: UTCDateSchema2,
15673
15680
  completedAt: NullableDateSchema2,
15674
15681
  workflowCoreVersion: NullableStringSchema2,
15675
15682
  workflowEncryptionEnabled: NullableBooleanSchema2
15676
15683
  });
15684
+ AnalyticsAttributeKeySchema2 = external_exports2.object({
15685
+ key: external_exports2.string(),
15686
+ runCount: external_exports2.coerce.number(),
15687
+ firstSeenAt: external_exports2.coerce.date(),
15688
+ lastSeenAt: external_exports2.coerce.date()
15689
+ });
15677
15690
  }
15678
15691
  });
15679
15692
 
@@ -16169,6 +16182,7 @@ __export(dist_exports, {
16169
16182
  ATTRIBUTE_KEY_MAX_LENGTH: () => ATTRIBUTE_KEY_MAX_LENGTH2,
16170
16183
  ATTRIBUTE_MAX_PER_RUN: () => ATTRIBUTE_MAX_PER_RUN2,
16171
16184
  ATTRIBUTE_VALUE_MAX_BYTES: () => ATTRIBUTE_VALUE_MAX_BYTES2,
16185
+ AnalyticsAttributeKeySchema: () => AnalyticsAttributeKeySchema2,
16172
16186
  AnalyticsEventSchema: () => AnalyticsEventSchema2,
16173
16187
  AnalyticsHookSchema: () => AnalyticsHookSchema2,
16174
16188
  AnalyticsRunSchema: () => AnalyticsRunSchema2,
@@ -45576,7 +45590,7 @@ var version4;
45576
45590
  var init_version3 = __esm({
45577
45591
  "../core/dist/version.js"() {
45578
45592
  "use strict";
45579
- version4 = "5.0.0-beta.32";
45593
+ version4 = "5.0.0-beta.33";
45580
45594
  }
45581
45595
  });
45582
45596
 
@@ -71723,6 +71737,8 @@ var init_waits = __esm2({
71723
71737
  });
71724
71738
  }
71725
71739
  });
71740
+ var NAIVE_DATETIME;
71741
+ var UTCDateSchema;
71726
71742
  var NullableDateSchema;
71727
71743
  var NullableStringSchema;
71728
71744
  var NullableBooleanSchema;
@@ -71731,6 +71747,7 @@ var AnalyticsStepSchema;
71731
71747
  var AnalyticsEventSchema;
71732
71748
  var AnalyticsHookSchema;
71733
71749
  var AnalyticsWaitSchema;
71750
+ var AnalyticsAttributeKeySchema;
71734
71751
  var init_analytics = __esm2({
71735
71752
  "../world/dist/analytics.js"() {
71736
71753
  "use strict";
@@ -71739,7 +71756,14 @@ var init_analytics = __esm2({
71739
71756
  init_runs();
71740
71757
  init_steps();
71741
71758
  init_waits();
71742
- NullableDateSchema = external_exports.coerce.date().nullable().optional();
71759
+ NAIVE_DATETIME = /^\d{4}-\d{2}-\d{2}[ T]\d{2}:\d{2}:\d{2}(?:\.\d+)?$/;
71760
+ UTCDateSchema = external_exports.preprocess((value) => {
71761
+ if (typeof value === "string" && NAIVE_DATETIME.test(value)) {
71762
+ return `${value.replace(" ", "T")}Z`;
71763
+ }
71764
+ return value;
71765
+ }, external_exports.coerce.date());
71766
+ NullableDateSchema = UTCDateSchema.nullable().optional();
71743
71767
  NullableStringSchema = external_exports.string().nullable().optional();
71744
71768
  NullableBooleanSchema = external_exports.boolean().nullable().optional();
71745
71769
  AnalyticsRunSchema = external_exports.object({
@@ -71749,8 +71773,8 @@ var init_analytics = __esm2({
71749
71773
  workflowName: external_exports.string(),
71750
71774
  specVersion: external_exports.coerce.number().optional(),
71751
71775
  attributes: external_exports.record(external_exports.string(), external_exports.string()).default({}),
71752
- createdAt: external_exports.coerce.date(),
71753
- updatedAt: external_exports.coerce.date(),
71776
+ createdAt: UTCDateSchema,
71777
+ updatedAt: UTCDateSchema,
71754
71778
  startedAt: NullableDateSchema,
71755
71779
  completedAt: NullableDateSchema,
71756
71780
  errorCode: NullableStringSchema,
@@ -71763,8 +71787,8 @@ var init_analytics = __esm2({
71763
71787
  stepName: NullableStringSchema,
71764
71788
  status: StepStatusSchema,
71765
71789
  attempt: external_exports.number().optional(),
71766
- createdAt: external_exports.coerce.date(),
71767
- updatedAt: external_exports.coerce.date(),
71790
+ createdAt: UTCDateSchema,
71791
+ updatedAt: UTCDateSchema,
71768
71792
  startedAt: NullableDateSchema,
71769
71793
  completedAt: NullableDateSchema,
71770
71794
  retryAfter: NullableDateSchema,
@@ -71782,8 +71806,8 @@ var init_analytics = __esm2({
71782
71806
  workflowName: external_exports.string(),
71783
71807
  deploymentId: external_exports.string(),
71784
71808
  specVersion: external_exports.coerce.number().optional(),
71785
- runCreatedAt: external_exports.coerce.date(),
71786
- createdAt: external_exports.coerce.date(),
71809
+ runCreatedAt: UTCDateSchema,
71810
+ createdAt: UTCDateSchema,
71787
71811
  region: NullableStringSchema,
71788
71812
  vercelId: NullableStringSchema,
71789
71813
  requestId: NullableStringSchema,
@@ -71804,8 +71828,8 @@ var init_analytics = __esm2({
71804
71828
  "disposed",
71805
71829
  "conflict"
71806
71830
  ]),
71807
- createdAt: external_exports.coerce.date(),
71808
- updatedAt: external_exports.coerce.date(),
71831
+ createdAt: UTCDateSchema,
71832
+ updatedAt: UTCDateSchema,
71809
71833
  receivedAt: NullableDateSchema,
71810
71834
  disposedAt: NullableDateSchema,
71811
71835
  isWebhook: NullableBooleanSchema,
@@ -71818,12 +71842,18 @@ var init_analytics = __esm2({
71818
71842
  waitId: external_exports.string(),
71819
71843
  status: WaitStatusSchema,
71820
71844
  resumeAt: NullableDateSchema,
71821
- createdAt: external_exports.coerce.date(),
71822
- updatedAt: external_exports.coerce.date(),
71845
+ createdAt: UTCDateSchema,
71846
+ updatedAt: UTCDateSchema,
71823
71847
  completedAt: NullableDateSchema,
71824
71848
  workflowCoreVersion: NullableStringSchema,
71825
71849
  workflowEncryptionEnabled: NullableBooleanSchema
71826
71850
  });
71851
+ AnalyticsAttributeKeySchema = external_exports.object({
71852
+ key: external_exports.string(),
71853
+ runCount: external_exports.coerce.number(),
71854
+ firstSeenAt: external_exports.coerce.date(),
71855
+ lastSeenAt: external_exports.coerce.date()
71856
+ });
71827
71857
  }
71828
71858
  });
71829
71859
  function warnOnce(key, message) {
@@ -79155,7 +79185,7 @@ var version2;
79155
79185
  var init_version = __esm2({
79156
79186
  "../core/dist/version.js"() {
79157
79187
  "use strict";
79158
- version2 = "5.0.0-beta.32";
79188
+ version2 = "5.0.0-beta.33";
79159
79189
  }
79160
79190
  });
79161
79191
  function getWorkflowQueueName(workflowName, namespace) {
@@ -79249,7 +79279,7 @@ function parseHealthCheckResponse(chunks) {
79249
79279
  __name(parseHealthCheckResponse, "parseHealthCheckResponse");
79250
79280
  async function healthCheck(world, endpoint, options) {
79251
79281
  const timeout = options?.timeout ?? DEFAULT_HEALTH_CHECK_TIMEOUT;
79252
- const correlationId = generateId();
79282
+ const correlationId = world.createRunId?.() ?? generateId();
79253
79283
  const streamName = getHealthCheckStreamName(correlationId);
79254
79284
  const queueName = `${getQueueTopicPrefix(endpoint, resolveQueueNamespace(options?.namespace))}health_check`;
79255
79285
  const startTime = Date.now();
@@ -82415,7 +82445,7 @@ async function start(workflow, argsOrOptions, options) {
82415
82445
  targetSupportsCompression = capabilities.supportedFormats.has(SerializationFormat.GZIP);
82416
82446
  }
82417
82447
  const ops = [];
82418
- const runId = `wrun_${ulid3()}`;
82448
+ const runId = `wrun_${world.createRunId ? world.createRunId(opts) : ulid3()}`;
82419
82449
  const traceCarrier = await serializeTraceCarrier();
82420
82450
  const specVersion = opts.specVersion ?? world.specVersion;
82421
82451
  const v1Compat = isLegacySpecVersion(specVersion);
@@ -82493,7 +82523,14 @@ async function start(workflow, argsOrOptions, options) {
82493
82523
  } : {}
82494
82524
  }, {
82495
82525
  deploymentId,
82496
- specVersion
82526
+ specVersion,
82527
+ // Forward any caller-supplied region hint so worlds with
82528
+ // per-region queue routing (e.g. world-vercel) can target the
82529
+ // matching queue. Worlds without a regional dimension ignore
82530
+ // this field.
82531
+ ...opts.region !== void 0 ? {
82532
+ region: opts.region
82533
+ } : {}
82497
82534
  })
82498
82535
  ]);
82499
82536
  if (queueResult.status === "rejected") {
@@ -82548,7 +82585,7 @@ __name2(start, "start");
82548
82585
  value: "start",
82549
82586
  configurable: true
82550
82587
  });
82551
- })(start, "step//@workflow/core/runtime/start@5.0.0-beta.32//start");
82588
+ })(start, "step//@workflow/core/runtime/start@5.0.0-beta.33//start");
82552
82589
  async function wakeUpRun(world, runId, options) {
82553
82590
  try {
82554
82591
  const run22 = await world.runs.get(runId, {
@@ -82884,7 +82921,7 @@ var Run = class _Run {
82884
82921
  value: "wakeUp",
82885
82922
  configurable: true
82886
82923
  });
82887
- })(Run.prototype["wakeUp"], "step//@workflow/core/runtime/run@5.0.0-beta.32//Run#wakeUp");
82924
+ })(Run.prototype["wakeUp"], "step//@workflow/core/runtime/run@5.0.0-beta.33//Run#wakeUp");
82888
82925
  (function(__wf_fn, __wf_id) {
82889
82926
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
82890
82927
  __wf_reg.set(__wf_id, __wf_fn);
@@ -82893,7 +82930,7 @@ var Run = class _Run {
82893
82930
  value: "cancel",
82894
82931
  configurable: true
82895
82932
  });
82896
- })(Run.prototype["cancel"], "step//@workflow/core/runtime/run@5.0.0-beta.32//Run#cancel");
82933
+ })(Run.prototype["cancel"], "step//@workflow/core/runtime/run@5.0.0-beta.33//Run#cancel");
82897
82934
  (function(__wf_fn, __wf_id) {
82898
82935
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
82899
82936
  __wf_reg.set(__wf_id, __wf_fn);
@@ -82902,7 +82939,7 @@ var Run = class _Run {
82902
82939
  value: "getReadable",
82903
82940
  configurable: true
82904
82941
  });
82905
- })(Run.prototype["getReadable"], "step//@workflow/core/runtime/run@5.0.0-beta.32//Run#getReadable");
82942
+ })(Run.prototype["getReadable"], "step//@workflow/core/runtime/run@5.0.0-beta.33//Run#getReadable");
82906
82943
  (function(__wf_fn, __wf_id) {
82907
82944
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
82908
82945
  __wf_reg.set(__wf_id, __wf_fn);
@@ -82911,7 +82948,7 @@ var Run = class _Run {
82911
82948
  value: "exists",
82912
82949
  configurable: true
82913
82950
  });
82914
- })(Object.getOwnPropertyDescriptor(Run.prototype, "exists").get, "step//@workflow/core/runtime/run@5.0.0-beta.32//Run#exists");
82951
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "exists").get, "step//@workflow/core/runtime/run@5.0.0-beta.33//Run#exists");
82915
82952
  (function(__wf_fn, __wf_id) {
82916
82953
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
82917
82954
  __wf_reg.set(__wf_id, __wf_fn);
@@ -82920,7 +82957,7 @@ var Run = class _Run {
82920
82957
  value: "status",
82921
82958
  configurable: true
82922
82959
  });
82923
- })(Object.getOwnPropertyDescriptor(Run.prototype, "status").get, "step//@workflow/core/runtime/run@5.0.0-beta.32//Run#status");
82960
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "status").get, "step//@workflow/core/runtime/run@5.0.0-beta.33//Run#status");
82924
82961
  (function(__wf_fn, __wf_id) {
82925
82962
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
82926
82963
  __wf_reg.set(__wf_id, __wf_fn);
@@ -82929,7 +82966,7 @@ var Run = class _Run {
82929
82966
  value: "returnValue",
82930
82967
  configurable: true
82931
82968
  });
82932
- })(Object.getOwnPropertyDescriptor(Run.prototype, "returnValue").get, "step//@workflow/core/runtime/run@5.0.0-beta.32//Run#returnValue");
82969
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "returnValue").get, "step//@workflow/core/runtime/run@5.0.0-beta.33//Run#returnValue");
82933
82970
  (function(__wf_fn, __wf_id) {
82934
82971
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
82935
82972
  __wf_reg.set(__wf_id, __wf_fn);
@@ -82938,7 +82975,7 @@ var Run = class _Run {
82938
82975
  value: "workflowName",
82939
82976
  configurable: true
82940
82977
  });
82941
- })(Object.getOwnPropertyDescriptor(Run.prototype, "workflowName").get, "step//@workflow/core/runtime/run@5.0.0-beta.32//Run#workflowName");
82978
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "workflowName").get, "step//@workflow/core/runtime/run@5.0.0-beta.33//Run#workflowName");
82942
82979
  (function(__wf_fn, __wf_id) {
82943
82980
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
82944
82981
  __wf_reg.set(__wf_id, __wf_fn);
@@ -82947,7 +82984,7 @@ var Run = class _Run {
82947
82984
  value: "createdAt",
82948
82985
  configurable: true
82949
82986
  });
82950
- })(Object.getOwnPropertyDescriptor(Run.prototype, "createdAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.32//Run#createdAt");
82987
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "createdAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.33//Run#createdAt");
82951
82988
  (function(__wf_fn, __wf_id) {
82952
82989
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
82953
82990
  __wf_reg.set(__wf_id, __wf_fn);
@@ -82956,7 +82993,7 @@ var Run = class _Run {
82956
82993
  value: "startedAt",
82957
82994
  configurable: true
82958
82995
  });
82959
- })(Object.getOwnPropertyDescriptor(Run.prototype, "startedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.32//Run#startedAt");
82996
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "startedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.33//Run#startedAt");
82960
82997
  (function(__wf_fn, __wf_id) {
82961
82998
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
82962
82999
  __wf_reg.set(__wf_id, __wf_fn);
@@ -82965,7 +83002,7 @@ var Run = class _Run {
82965
83002
  value: "completedAt",
82966
83003
  configurable: true
82967
83004
  });
82968
- })(Object.getOwnPropertyDescriptor(Run.prototype, "completedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.32//Run#completedAt");
83005
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "completedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.33//Run#completedAt");
82969
83006
  (function(__wf_cls, __wf_id) {
82970
83007
  var __wf_sym = /* @__PURE__ */ Symbol.for("workflow-class-registry"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
82971
83008
  __wf_reg.set(__wf_id, __wf_cls);
@@ -82975,7 +83012,7 @@ var Run = class _Run {
82975
83012
  enumerable: false,
82976
83013
  configurable: false
82977
83014
  });
82978
- })(Run, "class//@workflow/core/runtime/run@5.0.0-beta.32//Run");
83015
+ })(Run, "class//@workflow/core/runtime/run@5.0.0-beta.33//Run");
82979
83016
  async function fetch2(...args) {
82980
83017
  return globalThis.fetch(...args);
82981
83018
  }
@@ -93390,10 +93427,10 @@ var Run = class _Run {
93390
93427
  return this.getReadable();
93391
93428
  }
93392
93429
  };
93393
- Run.prototype["wakeUp"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.32//Run#wakeUp");
93394
- Run.prototype["cancel"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.32//Run#cancel");
93395
- Run.prototype["getReadable"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.32//Run#getReadable");
93396
- var __step_Run$exists = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.32//Run#exists");
93430
+ Run.prototype["wakeUp"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.33//Run#wakeUp");
93431
+ Run.prototype["cancel"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.33//Run#cancel");
93432
+ Run.prototype["getReadable"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.33//Run#getReadable");
93433
+ var __step_Run$exists = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.33//Run#exists");
93397
93434
  Object.defineProperty(Run.prototype, "exists", {
93398
93435
  get() {
93399
93436
  return __step_Run$exists.call(this);
@@ -93401,7 +93438,7 @@ Object.defineProperty(Run.prototype, "exists", {
93401
93438
  configurable: true,
93402
93439
  enumerable: false
93403
93440
  });
93404
- var __step_Run$status = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.32//Run#status");
93441
+ var __step_Run$status = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.33//Run#status");
93405
93442
  Object.defineProperty(Run.prototype, "status", {
93406
93443
  get() {
93407
93444
  return __step_Run$status.call(this);
@@ -93409,7 +93446,7 @@ Object.defineProperty(Run.prototype, "status", {
93409
93446
  configurable: true,
93410
93447
  enumerable: false
93411
93448
  });
93412
- var __step_Run$returnValue = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.32//Run#returnValue");
93449
+ var __step_Run$returnValue = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.33//Run#returnValue");
93413
93450
  Object.defineProperty(Run.prototype, "returnValue", {
93414
93451
  get() {
93415
93452
  return __step_Run$returnValue.call(this);
@@ -93417,7 +93454,7 @@ Object.defineProperty(Run.prototype, "returnValue", {
93417
93454
  configurable: true,
93418
93455
  enumerable: false
93419
93456
  });
93420
- var __step_Run$workflowName = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.32//Run#workflowName");
93457
+ var __step_Run$workflowName = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.33//Run#workflowName");
93421
93458
  Object.defineProperty(Run.prototype, "workflowName", {
93422
93459
  get() {
93423
93460
  return __step_Run$workflowName.call(this);
@@ -93425,7 +93462,7 @@ Object.defineProperty(Run.prototype, "workflowName", {
93425
93462
  configurable: true,
93426
93463
  enumerable: false
93427
93464
  });
93428
- var __step_Run$createdAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.32//Run#createdAt");
93465
+ var __step_Run$createdAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.33//Run#createdAt");
93429
93466
  Object.defineProperty(Run.prototype, "createdAt", {
93430
93467
  get() {
93431
93468
  return __step_Run$createdAt.call(this);
@@ -93433,7 +93470,7 @@ Object.defineProperty(Run.prototype, "createdAt", {
93433
93470
  configurable: true,
93434
93471
  enumerable: false
93435
93472
  });
93436
- var __step_Run$startedAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.32//Run#startedAt");
93473
+ var __step_Run$startedAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.33//Run#startedAt");
93437
93474
  Object.defineProperty(Run.prototype, "startedAt", {
93438
93475
  get() {
93439
93476
  return __step_Run$startedAt.call(this);
@@ -93441,7 +93478,7 @@ Object.defineProperty(Run.prototype, "startedAt", {
93441
93478
  configurable: true,
93442
93479
  enumerable: false
93443
93480
  });
93444
- var __step_Run$completedAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.32//Run#completedAt");
93481
+ var __step_Run$completedAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.33//Run#completedAt");
93445
93482
  Object.defineProperty(Run.prototype, "completedAt", {
93446
93483
  get() {
93447
93484
  return __step_Run$completedAt.call(this);
@@ -93458,7 +93495,7 @@ Object.defineProperty(Run.prototype, "completedAt", {
93458
93495
  enumerable: false,
93459
93496
  configurable: false
93460
93497
  });
93461
- })(Run, "class//@workflow/core/runtime/run@5.0.0-beta.32//Run");
93498
+ })(Run, "class//@workflow/core/runtime/run@5.0.0-beta.33//Run");
93462
93499
 
93463
93500
  // ../core/dist/workflow/create-hook.js
93464
93501
  aliasSerializationClass(RUN_CLASS_ID, Run);
@@ -109062,7 +109099,14 @@ var WaitSchema = external_exports.object({
109062
109099
  });
109063
109100
 
109064
109101
  // ../world/dist/analytics.js
109065
- var NullableDateSchema = external_exports.coerce.date().nullable().optional();
109102
+ var NAIVE_DATETIME = /^\\d{4}-\\d{2}-\\d{2}[ T]\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?$/;
109103
+ var UTCDateSchema = external_exports.preprocess((value) => {
109104
+ if (typeof value === "string" && NAIVE_DATETIME.test(value)) {
109105
+ return \`\${value.replace(" ", "T")}Z\`;
109106
+ }
109107
+ return value;
109108
+ }, external_exports.coerce.date());
109109
+ var NullableDateSchema = UTCDateSchema.nullable().optional();
109066
109110
  var NullableStringSchema = external_exports.string().nullable().optional();
109067
109111
  var NullableBooleanSchema = external_exports.boolean().nullable().optional();
109068
109112
  var AnalyticsRunSchema = external_exports.object({
@@ -109072,8 +109116,8 @@ var AnalyticsRunSchema = external_exports.object({
109072
109116
  workflowName: external_exports.string(),
109073
109117
  specVersion: external_exports.coerce.number().optional(),
109074
109118
  attributes: external_exports.record(external_exports.string(), external_exports.string()).default({}),
109075
- createdAt: external_exports.coerce.date(),
109076
- updatedAt: external_exports.coerce.date(),
109119
+ createdAt: UTCDateSchema,
109120
+ updatedAt: UTCDateSchema,
109077
109121
  startedAt: NullableDateSchema,
109078
109122
  completedAt: NullableDateSchema,
109079
109123
  errorCode: NullableStringSchema,
@@ -109086,8 +109130,8 @@ var AnalyticsStepSchema = external_exports.object({
109086
109130
  stepName: NullableStringSchema,
109087
109131
  status: StepStatusSchema,
109088
109132
  attempt: external_exports.number().optional(),
109089
- createdAt: external_exports.coerce.date(),
109090
- updatedAt: external_exports.coerce.date(),
109133
+ createdAt: UTCDateSchema,
109134
+ updatedAt: UTCDateSchema,
109091
109135
  startedAt: NullableDateSchema,
109092
109136
  completedAt: NullableDateSchema,
109093
109137
  retryAfter: NullableDateSchema,
@@ -109105,8 +109149,8 @@ var AnalyticsEventSchema = external_exports.object({
109105
109149
  workflowName: external_exports.string(),
109106
109150
  deploymentId: external_exports.string(),
109107
109151
  specVersion: external_exports.coerce.number().optional(),
109108
- runCreatedAt: external_exports.coerce.date(),
109109
- createdAt: external_exports.coerce.date(),
109152
+ runCreatedAt: UTCDateSchema,
109153
+ createdAt: UTCDateSchema,
109110
109154
  region: NullableStringSchema,
109111
109155
  vercelId: NullableStringSchema,
109112
109156
  requestId: NullableStringSchema,
@@ -109127,8 +109171,8 @@ var AnalyticsHookSchema = external_exports.object({
109127
109171
  "disposed",
109128
109172
  "conflict"
109129
109173
  ]),
109130
- createdAt: external_exports.coerce.date(),
109131
- updatedAt: external_exports.coerce.date(),
109174
+ createdAt: UTCDateSchema,
109175
+ updatedAt: UTCDateSchema,
109132
109176
  receivedAt: NullableDateSchema,
109133
109177
  disposedAt: NullableDateSchema,
109134
109178
  isWebhook: NullableBooleanSchema,
@@ -109141,12 +109185,18 @@ var AnalyticsWaitSchema = external_exports.object({
109141
109185
  waitId: external_exports.string(),
109142
109186
  status: WaitStatusSchema,
109143
109187
  resumeAt: NullableDateSchema,
109144
- createdAt: external_exports.coerce.date(),
109145
- updatedAt: external_exports.coerce.date(),
109188
+ createdAt: UTCDateSchema,
109189
+ updatedAt: UTCDateSchema,
109146
109190
  completedAt: NullableDateSchema,
109147
109191
  workflowCoreVersion: NullableStringSchema,
109148
109192
  workflowEncryptionEnabled: NullableBooleanSchema
109149
109193
  });
109194
+ var AnalyticsAttributeKeySchema = external_exports.object({
109195
+ key: external_exports.string(),
109196
+ runCount: external_exports.coerce.number(),
109197
+ firstSeenAt: external_exports.coerce.date(),
109198
+ lastSeenAt: external_exports.coerce.date()
109199
+ });
109150
109200
 
109151
109201
  // ../world/dist/hooks.js
109152
109202
  var HookSchema = external_exports.object({