@workflow/world-testing 5.0.0-beta.23 → 5.0.0-beta.24

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.
@@ -19065,10 +19065,11 @@ function matchesDebugNamespace2(namespace, patternList) {
19065
19065
  }
19066
19066
  return enabled;
19067
19067
  }
19068
- function createLogger2(namespace) {
19068
+ function createLogger2(namespace, options = {}) {
19069
19069
  const build = /* @__PURE__ */ __name((parentMetadata) => {
19070
+ const getDebugNamespace = /* @__PURE__ */ __name((level) => options.debugNamespace ?? `workflow:${namespace}:${level}`, "getDebugNamespace");
19070
19071
  const logger = /* @__PURE__ */ __name((level) => {
19071
- const debugNamespace = `workflow:${namespace}:${level}`;
19072
+ const debugNamespace = getDebugNamespace(level);
19072
19073
  return (message, metadata) => {
19073
19074
  const hasParent = Object.keys(parentMetadata).length > 0;
19074
19075
  const hasCallSite = metadata && Object.keys(metadata).length > 0;
@@ -19103,7 +19104,7 @@ function createLogger2(namespace) {
19103
19104
  }, "build");
19104
19105
  return build({});
19105
19106
  }
19106
- var stepLogger2, runtimeLogger2, webhookLogger2, eventsLogger2, adapterLogger2;
19107
+ var stepLogger2, runtimeLogger2, webhookLogger2, eventsLogger2, adapterLogger2, buildLogger2;
19107
19108
  var init_logger2 = __esm({
19108
19109
  "../core/dist/logger.js"() {
19109
19110
  "use strict";
@@ -19116,6 +19117,9 @@ var init_logger2 = __esm({
19116
19117
  webhookLogger2 = createLogger2("webhook");
19117
19118
  eventsLogger2 = createLogger2("events");
19118
19119
  adapterLogger2 = createLogger2("adapter");
19120
+ buildLogger2 = createLogger2("build", {
19121
+ debugNamespace: "workflow:build"
19122
+ });
19119
19123
  }
19120
19124
  });
19121
19125
 
@@ -19200,7 +19204,7 @@ var version4;
19200
19204
  var init_version3 = __esm({
19201
19205
  "../core/dist/version.js"() {
19202
19206
  "use strict";
19203
- version4 = "5.0.0-beta.23";
19207
+ version4 = "5.0.0-beta.24";
19204
19208
  }
19205
19209
  });
19206
19210
 
@@ -77300,10 +77304,11 @@ function matchesDebugNamespace(namespace, patternList) {
77300
77304
  return enabled;
77301
77305
  }
77302
77306
  __name(matchesDebugNamespace, "matchesDebugNamespace");
77303
- function createLogger(namespace) {
77307
+ function createLogger(namespace, options = {}) {
77304
77308
  const build = /* @__PURE__ */ __name2((parentMetadata) => {
77309
+ const getDebugNamespace = /* @__PURE__ */ __name2((level) => options.debugNamespace ?? `workflow:${namespace}:${level}`, "getDebugNamespace");
77305
77310
  const logger = /* @__PURE__ */ __name2((level) => {
77306
- const debugNamespace = `workflow:${namespace}:${level}`;
77311
+ const debugNamespace = getDebugNamespace(level);
77307
77312
  return (message, metadata) => {
77308
77313
  const hasParent = Object.keys(parentMetadata).length > 0;
77309
77314
  const hasCallSite = metadata && Object.keys(metadata).length > 0;
@@ -77355,6 +77360,7 @@ var runtimeLogger;
77355
77360
  var webhookLogger;
77356
77361
  var eventsLogger;
77357
77362
  var adapterLogger;
77363
+ var buildLogger;
77358
77364
  var init_logger = __esm2({
77359
77365
  "../core/dist/logger.js"() {
77360
77366
  "use strict";
@@ -77367,6 +77373,9 @@ var init_logger = __esm2({
77367
77373
  webhookLogger = createLogger("webhook");
77368
77374
  eventsLogger = createLogger("events");
77369
77375
  adapterLogger = createLogger("adapter");
77376
+ buildLogger = createLogger("build", {
77377
+ debugNamespace: "workflow:build"
77378
+ });
77370
77379
  }
77371
77380
  });
77372
77381
  function rethrowIfRuntimeError(error482) {
@@ -79577,7 +79586,7 @@ var version2;
79577
79586
  var init_version = __esm2({
79578
79587
  "../core/dist/version.js"() {
79579
79588
  "use strict";
79580
- version2 = "5.0.0-beta.23";
79589
+ version2 = "5.0.0-beta.24";
79581
79590
  }
79582
79591
  });
79583
79592
  function getWorkflowQueueName(workflowName, namespace) {
@@ -82814,7 +82823,7 @@ __name2(start, "start");
82814
82823
  value: "start",
82815
82824
  configurable: true
82816
82825
  });
82817
- })(start, "step//@workflow/core/runtime/start@5.0.0-beta.23//start");
82826
+ })(start, "step//@workflow/core/runtime/start@5.0.0-beta.24//start");
82818
82827
  function isRetryableStartError(err) {
82819
82828
  if (ThrottleError.is(err)) return true;
82820
82829
  if (WorkflowWorldError.is(err) && err.status && err.status >= 500) return true;
@@ -83148,7 +83157,7 @@ var Run = class _Run {
83148
83157
  value: "wakeUp",
83149
83158
  configurable: true
83150
83159
  });
83151
- })(Run.prototype["wakeUp"], "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#wakeUp");
83160
+ })(Run.prototype["wakeUp"], "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#wakeUp");
83152
83161
  (function(__wf_fn, __wf_id) {
83153
83162
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
83154
83163
  __wf_reg.set(__wf_id, __wf_fn);
@@ -83157,7 +83166,7 @@ var Run = class _Run {
83157
83166
  value: "cancel",
83158
83167
  configurable: true
83159
83168
  });
83160
- })(Run.prototype["cancel"], "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#cancel");
83169
+ })(Run.prototype["cancel"], "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#cancel");
83161
83170
  (function(__wf_fn, __wf_id) {
83162
83171
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
83163
83172
  __wf_reg.set(__wf_id, __wf_fn);
@@ -83166,7 +83175,7 @@ var Run = class _Run {
83166
83175
  value: "getReadable",
83167
83176
  configurable: true
83168
83177
  });
83169
- })(Run.prototype["getReadable"], "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#getReadable");
83178
+ })(Run.prototype["getReadable"], "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#getReadable");
83170
83179
  (function(__wf_fn, __wf_id) {
83171
83180
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
83172
83181
  __wf_reg.set(__wf_id, __wf_fn);
@@ -83175,7 +83184,7 @@ var Run = class _Run {
83175
83184
  value: "exists",
83176
83185
  configurable: true
83177
83186
  });
83178
- })(Object.getOwnPropertyDescriptor(Run.prototype, "exists").get, "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#exists");
83187
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "exists").get, "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#exists");
83179
83188
  (function(__wf_fn, __wf_id) {
83180
83189
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
83181
83190
  __wf_reg.set(__wf_id, __wf_fn);
@@ -83184,7 +83193,7 @@ var Run = class _Run {
83184
83193
  value: "status",
83185
83194
  configurable: true
83186
83195
  });
83187
- })(Object.getOwnPropertyDescriptor(Run.prototype, "status").get, "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#status");
83196
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "status").get, "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#status");
83188
83197
  (function(__wf_fn, __wf_id) {
83189
83198
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
83190
83199
  __wf_reg.set(__wf_id, __wf_fn);
@@ -83193,7 +83202,7 @@ var Run = class _Run {
83193
83202
  value: "returnValue",
83194
83203
  configurable: true
83195
83204
  });
83196
- })(Object.getOwnPropertyDescriptor(Run.prototype, "returnValue").get, "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#returnValue");
83205
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "returnValue").get, "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#returnValue");
83197
83206
  (function(__wf_fn, __wf_id) {
83198
83207
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
83199
83208
  __wf_reg.set(__wf_id, __wf_fn);
@@ -83202,7 +83211,7 @@ var Run = class _Run {
83202
83211
  value: "workflowName",
83203
83212
  configurable: true
83204
83213
  });
83205
- })(Object.getOwnPropertyDescriptor(Run.prototype, "workflowName").get, "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#workflowName");
83214
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "workflowName").get, "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#workflowName");
83206
83215
  (function(__wf_fn, __wf_id) {
83207
83216
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
83208
83217
  __wf_reg.set(__wf_id, __wf_fn);
@@ -83211,7 +83220,7 @@ var Run = class _Run {
83211
83220
  value: "createdAt",
83212
83221
  configurable: true
83213
83222
  });
83214
- })(Object.getOwnPropertyDescriptor(Run.prototype, "createdAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#createdAt");
83223
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "createdAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#createdAt");
83215
83224
  (function(__wf_fn, __wf_id) {
83216
83225
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
83217
83226
  __wf_reg.set(__wf_id, __wf_fn);
@@ -83220,7 +83229,7 @@ var Run = class _Run {
83220
83229
  value: "startedAt",
83221
83230
  configurable: true
83222
83231
  });
83223
- })(Object.getOwnPropertyDescriptor(Run.prototype, "startedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#startedAt");
83232
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "startedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#startedAt");
83224
83233
  (function(__wf_fn, __wf_id) {
83225
83234
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
83226
83235
  __wf_reg.set(__wf_id, __wf_fn);
@@ -83229,7 +83238,7 @@ var Run = class _Run {
83229
83238
  value: "completedAt",
83230
83239
  configurable: true
83231
83240
  });
83232
- })(Object.getOwnPropertyDescriptor(Run.prototype, "completedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#completedAt");
83241
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "completedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#completedAt");
83233
83242
  (function(__wf_cls, __wf_id) {
83234
83243
  var __wf_sym = /* @__PURE__ */ Symbol.for("workflow-class-registry"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
83235
83244
  __wf_reg.set(__wf_id, __wf_cls);
@@ -83239,7 +83248,7 @@ var Run = class _Run {
83239
83248
  enumerable: false,
83240
83249
  configurable: false
83241
83250
  });
83242
- })(Run, "class//@workflow/core/runtime/run@5.0.0-beta.23//Run");
83251
+ })(Run, "class//@workflow/core/runtime/run@5.0.0-beta.24//Run");
83243
83252
  async function fetch2(...args) {
83244
83253
  return globalThis.fetch(...args);
83245
83254
  }
@@ -117063,10 +117072,10 @@ var Run = class _Run {
117063
117072
  return this.getReadable();
117064
117073
  }
117065
117074
  };
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");
117075
+ Run.prototype["wakeUp"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.24//Run#wakeUp");
117076
+ Run.prototype["cancel"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.24//Run#cancel");
117077
+ Run.prototype["getReadable"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.24//Run#getReadable");
117078
+ var __step_Run$exists = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.24//Run#exists");
117070
117079
  Object.defineProperty(Run.prototype, "exists", {
117071
117080
  get() {
117072
117081
  return __step_Run$exists.call(this);
@@ -117074,7 +117083,7 @@ Object.defineProperty(Run.prototype, "exists", {
117074
117083
  configurable: true,
117075
117084
  enumerable: false
117076
117085
  });
117077
- var __step_Run$status = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.23//Run#status");
117086
+ var __step_Run$status = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.24//Run#status");
117078
117087
  Object.defineProperty(Run.prototype, "status", {
117079
117088
  get() {
117080
117089
  return __step_Run$status.call(this);
@@ -117082,7 +117091,7 @@ Object.defineProperty(Run.prototype, "status", {
117082
117091
  configurable: true,
117083
117092
  enumerable: false
117084
117093
  });
117085
- var __step_Run$returnValue = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.23//Run#returnValue");
117094
+ var __step_Run$returnValue = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.24//Run#returnValue");
117086
117095
  Object.defineProperty(Run.prototype, "returnValue", {
117087
117096
  get() {
117088
117097
  return __step_Run$returnValue.call(this);
@@ -117090,7 +117099,7 @@ Object.defineProperty(Run.prototype, "returnValue", {
117090
117099
  configurable: true,
117091
117100
  enumerable: false
117092
117101
  });
117093
- var __step_Run$workflowName = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.23//Run#workflowName");
117102
+ var __step_Run$workflowName = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.24//Run#workflowName");
117094
117103
  Object.defineProperty(Run.prototype, "workflowName", {
117095
117104
  get() {
117096
117105
  return __step_Run$workflowName.call(this);
@@ -117098,7 +117107,7 @@ Object.defineProperty(Run.prototype, "workflowName", {
117098
117107
  configurable: true,
117099
117108
  enumerable: false
117100
117109
  });
117101
- var __step_Run$createdAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.23//Run#createdAt");
117110
+ var __step_Run$createdAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.24//Run#createdAt");
117102
117111
  Object.defineProperty(Run.prototype, "createdAt", {
117103
117112
  get() {
117104
117113
  return __step_Run$createdAt.call(this);
@@ -117106,7 +117115,7 @@ Object.defineProperty(Run.prototype, "createdAt", {
117106
117115
  configurable: true,
117107
117116
  enumerable: false
117108
117117
  });
117109
- var __step_Run$startedAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.23//Run#startedAt");
117118
+ var __step_Run$startedAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.24//Run#startedAt");
117110
117119
  Object.defineProperty(Run.prototype, "startedAt", {
117111
117120
  get() {
117112
117121
  return __step_Run$startedAt.call(this);
@@ -117114,7 +117123,7 @@ Object.defineProperty(Run.prototype, "startedAt", {
117114
117123
  configurable: true,
117115
117124
  enumerable: false
117116
117125
  });
117117
- var __step_Run$completedAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.23//Run#completedAt");
117126
+ var __step_Run$completedAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.24//Run#completedAt");
117118
117127
  Object.defineProperty(Run.prototype, "completedAt", {
117119
117128
  get() {
117120
117129
  return __step_Run$completedAt.call(this);
@@ -117131,7 +117140,7 @@ Object.defineProperty(Run.prototype, "completedAt", {
117131
117140
  enumerable: false,
117132
117141
  configurable: false
117133
117142
  });
117134
- })(Run, "class//@workflow/core/runtime/run@5.0.0-beta.23//Run");
117143
+ })(Run, "class//@workflow/core/runtime/run@5.0.0-beta.24//Run");
117135
117144
 
117136
117145
  // ../core/dist/workflow/create-hook.js
117137
117146
  aliasSerializationClass(RUN_CLASS_ID, Run);
@@ -6,9 +6,9 @@
6
6
  "stepId": "step//./workflows/hooks//writeEvent"
7
7
  }
8
8
  },
9
- "workflows/null-byte.ts": {
10
- "nullByteStep": {
11
- "stepId": "step//./workflows/null-byte//nullByteStep"
9
+ "workflows/addition.ts": {
10
+ "add": {
11
+ "stepId": "step//./workflows/addition//add"
12
12
  }
13
13
  },
14
14
  "workflows/noop.ts": {
@@ -16,17 +16,9 @@
16
16
  "stepId": "step//./workflows/noop//noop"
17
17
  }
18
18
  },
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"
19
+ "workflows/null-byte.ts": {
20
+ "nullByteStep": {
21
+ "stepId": "step//./workflows/null-byte//nullByteStep"
30
22
  }
31
23
  },
32
24
  "workflow/dist/internal/builtins.js": {
@@ -43,11 +35,6 @@
43
35
  "stepId": "__builtin_set_attributes"
44
36
  }
45
37
  },
46
- "workflow/dist/stdlib.js": {
47
- "fetch": {
48
- "stepId": "step//./workflow/dist/stdlib//fetch"
49
- }
50
- },
51
38
  "workflows/inline-execution.ts": {
52
39
  "add": {
53
40
  "stepId": "step//./workflows/inline-execution//add"
@@ -59,41 +46,54 @@
59
46
  "stepId": "step//./workflows/inline-execution//writeToStream"
60
47
  }
61
48
  },
49
+ "workflow/dist/stdlib.js": {
50
+ "fetch": {
51
+ "stepId": "step//./workflow/dist/stdlib//fetch"
52
+ }
53
+ },
54
+ "workflows/retriable-and-fatal.ts": {
55
+ "stepThatFails": {
56
+ "stepId": "step//./workflows/retriable-and-fatal//stepThatFails"
57
+ },
58
+ "stepThatThrowsRetryableError": {
59
+ "stepId": "step//./workflows/retriable-and-fatal//stepThatThrowsRetryableError"
60
+ }
61
+ },
62
62
  "core/dist/runtime/start.js": {
63
63
  "start": {
64
- "stepId": "step//@workflow/core/runtime/start@5.0.0-beta.23//start"
64
+ "stepId": "step//@workflow/core/runtime/start@5.0.0-beta.24//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.23//Run#cancel"
69
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#cancel"
70
70
  },
71
71
  "Run#completedAt": {
72
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#completedAt"
72
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#completedAt"
73
73
  },
74
74
  "Run#createdAt": {
75
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#createdAt"
75
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#createdAt"
76
76
  },
77
77
  "Run#exists": {
78
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#exists"
78
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#exists"
79
79
  },
80
80
  "Run#getReadable": {
81
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#getReadable"
81
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#getReadable"
82
82
  },
83
83
  "Run#returnValue": {
84
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#returnValue"
84
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#returnValue"
85
85
  },
86
86
  "Run#startedAt": {
87
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#startedAt"
87
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#startedAt"
88
88
  },
89
89
  "Run#status": {
90
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#status"
90
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#status"
91
91
  },
92
92
  "Run#wakeUp": {
93
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#wakeUp"
93
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#wakeUp"
94
94
  },
95
95
  "Run#workflowName": {
96
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#workflowName"
96
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#workflowName"
97
97
  }
98
98
  }
99
99
  },
@@ -131,16 +131,16 @@
131
131
  }
132
132
  }
133
133
  },
134
- "workflows/null-byte.ts": {
135
- "nullByteWorkflow": {
136
- "workflowId": "workflow//./workflows/null-byte//nullByteWorkflow",
134
+ "workflows/addition.ts": {
135
+ "addTenWorkflow": {
136
+ "workflowId": "workflow//./workflows/addition//addTenWorkflow",
137
137
  "graph": {
138
138
  "nodes": [
139
139
  {
140
140
  "id": "start",
141
141
  "type": "workflowStart",
142
142
  "data": {
143
- "label": "Start: nullByteWorkflow",
143
+ "label": "Start: addTenWorkflow",
144
144
  "nodeKind": "workflow_start"
145
145
  }
146
146
  },
@@ -162,18 +162,16 @@
162
162
  }
163
163
  ]
164
164
  }
165
- }
166
- },
167
- "workflows/noop.ts": {
168
- "brokenWf": {
169
- "workflowId": "workflow//./workflows/noop//brokenWf",
165
+ },
166
+ "addition": {
167
+ "workflowId": "workflow//./workflows/addition//addition",
170
168
  "graph": {
171
169
  "nodes": [
172
170
  {
173
171
  "id": "start",
174
172
  "type": "workflowStart",
175
173
  "data": {
176
- "label": "Start: brokenWf",
174
+ "label": "Start: addition",
177
175
  "nodeKind": "workflow_start"
178
176
  }
179
177
  },
@@ -197,47 +195,16 @@
197
195
  }
198
196
  }
199
197
  },
200
- "workflows/addition.ts": {
201
- "addTenWorkflow": {
202
- "workflowId": "workflow//./workflows/addition//addTenWorkflow",
203
- "graph": {
204
- "nodes": [
205
- {
206
- "id": "start",
207
- "type": "workflowStart",
208
- "data": {
209
- "label": "Start: addTenWorkflow",
210
- "nodeKind": "workflow_start"
211
- }
212
- },
213
- {
214
- "id": "end",
215
- "type": "workflowEnd",
216
- "data": {
217
- "label": "Return",
218
- "nodeKind": "workflow_end"
219
- }
220
- }
221
- ],
222
- "edges": [
223
- {
224
- "id": "e_start_end",
225
- "source": "start",
226
- "target": "end",
227
- "type": "default"
228
- }
229
- ]
230
- }
231
- },
232
- "addition": {
233
- "workflowId": "workflow//./workflows/addition//addition",
198
+ "workflows/noop.ts": {
199
+ "brokenWf": {
200
+ "workflowId": "workflow//./workflows/noop//brokenWf",
234
201
  "graph": {
235
202
  "nodes": [
236
203
  {
237
204
  "id": "start",
238
205
  "type": "workflowStart",
239
206
  "data": {
240
- "label": "Start: addition",
207
+ "label": "Start: brokenWf",
241
208
  "nodeKind": "workflow_start"
242
209
  }
243
210
  },
@@ -261,16 +228,16 @@
261
228
  }
262
229
  }
263
230
  },
264
- "workflows/retriable-and-fatal.ts": {
265
- "retryableAndFatalErrorWorkflow": {
266
- "workflowId": "workflow//./workflows/retriable-and-fatal//retryableAndFatalErrorWorkflow",
231
+ "workflows/null-byte.ts": {
232
+ "nullByteWorkflow": {
233
+ "workflowId": "workflow//./workflows/null-byte//nullByteWorkflow",
267
234
  "graph": {
268
235
  "nodes": [
269
236
  {
270
237
  "id": "start",
271
238
  "type": "workflowStart",
272
239
  "data": {
273
- "label": "Start: retryableAndFatalErrorWorkflow",
240
+ "label": "Start: nullByteWorkflow",
274
241
  "nodeKind": "workflow_start"
275
242
  }
276
243
  },
@@ -495,12 +462,45 @@
495
462
  ]
496
463
  }
497
464
  }
465
+ },
466
+ "workflows/retriable-and-fatal.ts": {
467
+ "retryableAndFatalErrorWorkflow": {
468
+ "workflowId": "workflow//./workflows/retriable-and-fatal//retryableAndFatalErrorWorkflow",
469
+ "graph": {
470
+ "nodes": [
471
+ {
472
+ "id": "start",
473
+ "type": "workflowStart",
474
+ "data": {
475
+ "label": "Start: retryableAndFatalErrorWorkflow",
476
+ "nodeKind": "workflow_start"
477
+ }
478
+ },
479
+ {
480
+ "id": "end",
481
+ "type": "workflowEnd",
482
+ "data": {
483
+ "label": "Return",
484
+ "nodeKind": "workflow_end"
485
+ }
486
+ }
487
+ ],
488
+ "edges": [
489
+ {
490
+ "id": "e_start_end",
491
+ "source": "start",
492
+ "target": "end",
493
+ "type": "default"
494
+ }
495
+ ]
496
+ }
497
+ }
498
498
  }
499
499
  },
500
500
  "classes": {
501
501
  "core/dist/runtime/run.js": {
502
502
  "Run": {
503
- "classId": "class//@workflow/core/runtime/run@5.0.0-beta.23//Run"
503
+ "classId": "class//@workflow/core/runtime/run@5.0.0-beta.24//Run"
504
504
  }
505
505
  }
506
506
  }
@@ -21648,10 +21648,11 @@ function matchesDebugNamespace(namespace, patternList) {
21648
21648
  }
21649
21649
  return enabled;
21650
21650
  }
21651
- function createLogger(namespace) {
21651
+ function createLogger(namespace, options = {}) {
21652
21652
  const build = /* @__PURE__ */ __name((parentMetadata) => {
21653
+ const getDebugNamespace = /* @__PURE__ */ __name((level) => options.debugNamespace ?? `workflow:${namespace}:${level}`, "getDebugNamespace");
21653
21654
  const logger = /* @__PURE__ */ __name((level) => {
21654
- const debugNamespace = `workflow:${namespace}:${level}`;
21655
+ const debugNamespace = getDebugNamespace(level);
21655
21656
  return (message, metadata) => {
21656
21657
  const hasParent = Object.keys(parentMetadata).length > 0;
21657
21658
  const hasCallSite = metadata && Object.keys(metadata).length > 0;
@@ -21697,7 +21698,7 @@ function createLogger(namespace) {
21697
21698
  }, "build");
21698
21699
  return build({});
21699
21700
  }
21700
- var stepLogger, runtimeLogger, webhookLogger, eventsLogger, adapterLogger;
21701
+ var stepLogger, runtimeLogger, webhookLogger, eventsLogger, adapterLogger, buildLogger;
21701
21702
  var init_logger = __esm({
21702
21703
  "../core/dist/logger.js"() {
21703
21704
  "use strict";
@@ -21710,6 +21711,9 @@ var init_logger = __esm({
21710
21711
  webhookLogger = createLogger("webhook");
21711
21712
  eventsLogger = createLogger("events");
21712
21713
  adapterLogger = createLogger("adapter");
21714
+ buildLogger = createLogger("build", {
21715
+ debugNamespace: "workflow:build"
21716
+ });
21713
21717
  }
21714
21718
  });
21715
21719
 
@@ -24003,7 +24007,7 @@ var version2;
24003
24007
  var init_version = __esm({
24004
24008
  "../core/dist/version.js"() {
24005
24009
  "use strict";
24006
- version2 = "5.0.0-beta.23";
24010
+ version2 = "5.0.0-beta.24";
24007
24011
  }
24008
24012
  });
24009
24013
 
@@ -27186,7 +27190,7 @@ __name(start, "start");
27186
27190
  value: "start",
27187
27191
  configurable: true
27188
27192
  });
27189
- })(start, "step//@workflow/core/runtime/start@5.0.0-beta.23//start");
27193
+ })(start, "step//@workflow/core/runtime/start@5.0.0-beta.24//start");
27190
27194
  function isRetryableStartError(err) {
27191
27195
  if (ThrottleError.is(err)) return true;
27192
27196
  if (WorkflowWorldError.is(err) && err.status && err.status >= 500) return true;
@@ -27519,7 +27523,7 @@ var Run = class _Run {
27519
27523
  value: "wakeUp",
27520
27524
  configurable: true
27521
27525
  });
27522
- })(Run.prototype["wakeUp"], "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#wakeUp");
27526
+ })(Run.prototype["wakeUp"], "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#wakeUp");
27523
27527
  (function(__wf_fn, __wf_id) {
27524
27528
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
27525
27529
  __wf_reg.set(__wf_id, __wf_fn);
@@ -27528,7 +27532,7 @@ var Run = class _Run {
27528
27532
  value: "cancel",
27529
27533
  configurable: true
27530
27534
  });
27531
- })(Run.prototype["cancel"], "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#cancel");
27535
+ })(Run.prototype["cancel"], "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#cancel");
27532
27536
  (function(__wf_fn, __wf_id) {
27533
27537
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
27534
27538
  __wf_reg.set(__wf_id, __wf_fn);
@@ -27537,7 +27541,7 @@ var Run = class _Run {
27537
27541
  value: "getReadable",
27538
27542
  configurable: true
27539
27543
  });
27540
- })(Run.prototype["getReadable"], "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#getReadable");
27544
+ })(Run.prototype["getReadable"], "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#getReadable");
27541
27545
  (function(__wf_fn, __wf_id) {
27542
27546
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
27543
27547
  __wf_reg.set(__wf_id, __wf_fn);
@@ -27546,7 +27550,7 @@ var Run = class _Run {
27546
27550
  value: "exists",
27547
27551
  configurable: true
27548
27552
  });
27549
- })(Object.getOwnPropertyDescriptor(Run.prototype, "exists").get, "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#exists");
27553
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "exists").get, "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#exists");
27550
27554
  (function(__wf_fn, __wf_id) {
27551
27555
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
27552
27556
  __wf_reg.set(__wf_id, __wf_fn);
@@ -27555,7 +27559,7 @@ var Run = class _Run {
27555
27559
  value: "status",
27556
27560
  configurable: true
27557
27561
  });
27558
- })(Object.getOwnPropertyDescriptor(Run.prototype, "status").get, "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#status");
27562
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "status").get, "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#status");
27559
27563
  (function(__wf_fn, __wf_id) {
27560
27564
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
27561
27565
  __wf_reg.set(__wf_id, __wf_fn);
@@ -27564,7 +27568,7 @@ var Run = class _Run {
27564
27568
  value: "returnValue",
27565
27569
  configurable: true
27566
27570
  });
27567
- })(Object.getOwnPropertyDescriptor(Run.prototype, "returnValue").get, "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#returnValue");
27571
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "returnValue").get, "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#returnValue");
27568
27572
  (function(__wf_fn, __wf_id) {
27569
27573
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
27570
27574
  __wf_reg.set(__wf_id, __wf_fn);
@@ -27573,7 +27577,7 @@ var Run = class _Run {
27573
27577
  value: "workflowName",
27574
27578
  configurable: true
27575
27579
  });
27576
- })(Object.getOwnPropertyDescriptor(Run.prototype, "workflowName").get, "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#workflowName");
27580
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "workflowName").get, "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#workflowName");
27577
27581
  (function(__wf_fn, __wf_id) {
27578
27582
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
27579
27583
  __wf_reg.set(__wf_id, __wf_fn);
@@ -27582,7 +27586,7 @@ var Run = class _Run {
27582
27586
  value: "createdAt",
27583
27587
  configurable: true
27584
27588
  });
27585
- })(Object.getOwnPropertyDescriptor(Run.prototype, "createdAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#createdAt");
27589
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "createdAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#createdAt");
27586
27590
  (function(__wf_fn, __wf_id) {
27587
27591
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
27588
27592
  __wf_reg.set(__wf_id, __wf_fn);
@@ -27591,7 +27595,7 @@ var Run = class _Run {
27591
27595
  value: "startedAt",
27592
27596
  configurable: true
27593
27597
  });
27594
- })(Object.getOwnPropertyDescriptor(Run.prototype, "startedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#startedAt");
27598
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "startedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#startedAt");
27595
27599
  (function(__wf_fn, __wf_id) {
27596
27600
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
27597
27601
  __wf_reg.set(__wf_id, __wf_fn);
@@ -27600,7 +27604,7 @@ var Run = class _Run {
27600
27604
  value: "completedAt",
27601
27605
  configurable: true
27602
27606
  });
27603
- })(Object.getOwnPropertyDescriptor(Run.prototype, "completedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.23//Run#completedAt");
27607
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "completedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#completedAt");
27604
27608
  (function(__wf_cls, __wf_id) {
27605
27609
  var __wf_sym = /* @__PURE__ */ Symbol.for("workflow-class-registry"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
27606
27610
  __wf_reg.set(__wf_id, __wf_cls);
@@ -27610,7 +27614,7 @@ var Run = class _Run {
27610
27614
  enumerable: false,
27611
27615
  configurable: false
27612
27616
  });
27613
- })(Run, "class//@workflow/core/runtime/run@5.0.0-beta.23//Run");
27617
+ })(Run, "class//@workflow/core/runtime/run@5.0.0-beta.24//Run");
27614
27618
 
27615
27619
  // ../workflow/dist/stdlib.js
27616
27620
  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.23",
3
+ "version": "5.0.0-beta.24",
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.23",
25
- "@workflow/core": "5.0.0-beta.23",
24
+ "@workflow/cli": "5.0.0-beta.24",
25
+ "@workflow/core": "5.0.0-beta.24",
26
26
  "@workflow/world": "5.0.0-beta.13",
27
- "workflow": "5.0.0-beta.23"
27
+ "workflow": "5.0.0-beta.24"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/jsonlines": "0.1.5",