@workflow/world-testing 5.0.0-beta.16 → 5.0.0-beta.17
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.
|
@@ -102,6 +102,26 @@ function formatStepName2(name) {
|
|
|
102
102
|
function formatWorkflowName2(name) {
|
|
103
103
|
return formatParsedName2(parseWorkflowName2(name), name);
|
|
104
104
|
}
|
|
105
|
+
function workflowDisplayName2(name) {
|
|
106
|
+
return parseWorkflowName2(name)?.shortName ?? shortNameFromSanitized2("workflow", name) ?? name;
|
|
107
|
+
}
|
|
108
|
+
function stepDisplayName(name) {
|
|
109
|
+
return parseStepName2(name)?.shortName ?? shortNameFromSanitized2("step", name) ?? name;
|
|
110
|
+
}
|
|
111
|
+
function shortNameFromSanitized2(tag, name) {
|
|
112
|
+
if (!name.startsWith(`${tag}--`))
|
|
113
|
+
return null;
|
|
114
|
+
const segments = name.split("--").filter(Boolean);
|
|
115
|
+
const functionPart = segments.at(-1);
|
|
116
|
+
let shortName = functionPart?.split("-").filter(Boolean).at(-1) ?? "";
|
|
117
|
+
if (["default", "__default"].includes(shortName)) {
|
|
118
|
+
const moduleShortName = segments.at(-2)?.split("-").filter(Boolean).at(-1);
|
|
119
|
+
if (moduleShortName && moduleShortName !== tag) {
|
|
120
|
+
shortName = moduleShortName;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
return shortName || null;
|
|
124
|
+
}
|
|
105
125
|
function formatParsedName2(parsed, fallback) {
|
|
106
126
|
if (!parsed)
|
|
107
127
|
return fallback;
|
|
@@ -115,6 +135,9 @@ var init_parse_name2 = __esm({
|
|
|
115
135
|
__name(parseStepName2, "parseStepName");
|
|
116
136
|
__name(formatStepName2, "formatStepName");
|
|
117
137
|
__name(formatWorkflowName2, "formatWorkflowName");
|
|
138
|
+
__name(workflowDisplayName2, "workflowDisplayName");
|
|
139
|
+
__name(stepDisplayName, "stepDisplayName");
|
|
140
|
+
__name(shortNameFromSanitized2, "shortNameFromSanitized");
|
|
118
141
|
__name(formatParsedName2, "formatParsedName");
|
|
119
142
|
}
|
|
120
143
|
});
|
|
@@ -17054,7 +17077,7 @@ var init_log_format2 = __esm({
|
|
|
17054
17077
|
function SemanticConvention2(...names) {
|
|
17055
17078
|
return (value) => Object.fromEntries(names.map((name) => [name, value]));
|
|
17056
17079
|
}
|
|
17057
|
-
var WorkflowName2, WorkflowOperation2, WorkflowRunId2, WorkflowRunStatus2, WorkflowStartedAt2, WorkflowEventsCount2, WorkflowArgumentsCount2, WorkflowResultType2, WorkflowTracePropagated2, WorkflowErrorName2, WorkflowErrorMessage2, WorkflowErrorCode2, WorkflowStepsCreated2, WorkflowHooksCreated2, WorkflowWaitsCreated2, StepName2, StepId2, StepAttempt2, StepStatus2, StepMaxRetries2, StepTracePropagated2, StepSkipped2, StepSkipReason2, StepArgumentsCount2, StepResultType2, StepErrorName2, StepErrorMessage2, StepFatalError2, StepRetryExhausted2, StepRetryTimeoutSeconds2, StepRetryWillRetry2, MessagingSystem2, MessagingDestinationName2, MessagingMessageId2, MessagingOperationType2, QueueOverheadMs2, DeploymentId2, HookToken2, HookId2, HookFound2, WebhookHandlersTriggered2, WorkflowSuspensionState2, WorkflowSuspensionHookCount2, WorkflowSuspensionStepCount2, WorkflowSuspensionWaitCount2, HttpRequestMethod2, UrlFull2, ServerAddress2, ServerPort2, HttpResponseStatusCode2, ErrorType2, WorldParseFormat2, WorkflowEventsPagesLoaded2, QueueDeserializeTimeMs2, QueueExecutionTimeMs2, QueueSerializeTimeMs2, PeerService2, RpcSystem2, RpcService2, RpcMethod2, ErrorRetryable2, ErrorCategory2;
|
|
17080
|
+
var WorkflowName2, WorkflowOperation2, WorkflowRunId2, WorkflowRunStatus2, WorkflowStartedAt2, WorkflowEventsCount2, WorkflowArgumentsCount2, WorkflowResultType2, WorkflowTracePropagated2, WorkflowTraceMode2, WorkflowErrorName2, WorkflowErrorMessage2, WorkflowErrorCode2, WorkflowStepsCreated2, WorkflowHooksCreated2, WorkflowWaitsCreated2, StepName2, StepId2, StepAttempt2, StepStatus2, StepMaxRetries2, StepTracePropagated2, StepSkipped2, StepSkipReason2, StepArgumentsCount2, StepResultType2, StepErrorName2, StepErrorMessage2, StepFatalError2, StepRetryExhausted2, StepRetryTimeoutSeconds2, StepRetryWillRetry2, MessagingSystem2, MessagingDestinationName2, MessagingMessageId2, MessagingOperationType2, QueueOverheadMs2, DeploymentId2, HookToken2, HookId2, HookFound2, WebhookHandlersTriggered2, WorkflowSuspensionState2, WorkflowSuspensionHookCount2, WorkflowSuspensionStepCount2, WorkflowSuspensionWaitCount2, HttpRequestMethod2, UrlFull2, ServerAddress2, ServerPort2, HttpResponseStatusCode2, ErrorType2, WorldParseFormat2, WorkflowEventsPagesLoaded2, QueueDeserializeTimeMs2, QueueExecutionTimeMs2, QueueSerializeTimeMs2, PeerService2, RpcSystem2, RpcService2, RpcMethod2, ErrorRetryable2, ErrorCategory2;
|
|
17058
17081
|
var init_semantic_conventions2 = __esm({
|
|
17059
17082
|
"../core/dist/telemetry/semantic-conventions.js"() {
|
|
17060
17083
|
"use strict";
|
|
@@ -17068,6 +17091,7 @@ var init_semantic_conventions2 = __esm({
|
|
|
17068
17091
|
WorkflowArgumentsCount2 = SemanticConvention2("workflow.arguments.count");
|
|
17069
17092
|
WorkflowResultType2 = SemanticConvention2("workflow.result.type");
|
|
17070
17093
|
WorkflowTracePropagated2 = SemanticConvention2("workflow.trace.propagated");
|
|
17094
|
+
WorkflowTraceMode2 = SemanticConvention2("workflow.trace.mode");
|
|
17071
17095
|
WorkflowErrorName2 = SemanticConvention2("workflow.error.name");
|
|
17072
17096
|
WorkflowErrorMessage2 = SemanticConvention2("workflow.error.message");
|
|
17073
17097
|
WorkflowErrorCode2 = SemanticConvention2("workflow.error.code");
|
|
@@ -18813,6 +18837,32 @@ var init_esm = __esm({
|
|
|
18813
18837
|
});
|
|
18814
18838
|
|
|
18815
18839
|
// ../core/dist/telemetry.js
|
|
18840
|
+
function getWorkflowTraceMode() {
|
|
18841
|
+
const value = process.env.WORKFLOW_TRACE_MODE;
|
|
18842
|
+
if (value === "continuous")
|
|
18843
|
+
return "continuous";
|
|
18844
|
+
if (value && value !== "linked" && !warnedUnrecognizedTraceModes.has(value)) {
|
|
18845
|
+
warnedUnrecognizedTraceModes.add(value);
|
|
18846
|
+
runtimeLogger2.warn(`Unrecognized WORKFLOW_TRACE_MODE value "${value}"; expected "linked" or "continuous". Falling back to "linked".`);
|
|
18847
|
+
}
|
|
18848
|
+
return "linked";
|
|
18849
|
+
}
|
|
18850
|
+
function isUsableTraceCarrier(carrier) {
|
|
18851
|
+
return carrier !== void 0 && Object.keys(carrier).length > 0;
|
|
18852
|
+
}
|
|
18853
|
+
function getNextTraceCarrier(traceMode, incomingCarrier) {
|
|
18854
|
+
return traceMode === "linked" && isUsableTraceCarrier(incomingCarrier) ? Promise.resolve(incomingCarrier) : serializeTraceCarrier2();
|
|
18855
|
+
}
|
|
18856
|
+
async function buildInvocationSpanLinks(traceMode, incomingCarrier) {
|
|
18857
|
+
const deliveryLinks = await linkToCurrentContext();
|
|
18858
|
+
if (traceMode !== "linked")
|
|
18859
|
+
return deliveryLinks;
|
|
18860
|
+
const originLink = await linkToTraceCarrier2(isUsableTraceCarrier(incomingCarrier) ? incomingCarrier : void 0);
|
|
18861
|
+
if (!originLink || deliveryLinks?.some((link) => link.context.traceId === originLink.context.traceId && link.context.spanId === originLink.context.spanId)) {
|
|
18862
|
+
return deliveryLinks;
|
|
18863
|
+
}
|
|
18864
|
+
return [...deliveryLinks ?? [], originLink];
|
|
18865
|
+
}
|
|
18816
18866
|
async function serializeTraceCarrier2() {
|
|
18817
18867
|
const otel = await OtelApi2.value;
|
|
18818
18868
|
if (!otel)
|
|
@@ -18906,6 +18956,19 @@ function linkToCurrentContext() {
|
|
|
18906
18956
|
return [{ context: context2 }];
|
|
18907
18957
|
});
|
|
18908
18958
|
}
|
|
18959
|
+
async function linkToTraceCarrier2(carrier) {
|
|
18960
|
+
if (!carrier)
|
|
18961
|
+
return;
|
|
18962
|
+
const [context2, otel] = await Promise.all([
|
|
18963
|
+
getSpanContextForTraceCarrier2(carrier),
|
|
18964
|
+
OtelApi2.value
|
|
18965
|
+
]);
|
|
18966
|
+
if (!context2 || !otel)
|
|
18967
|
+
return;
|
|
18968
|
+
if (!otel.trace.isSpanContextValid(context2))
|
|
18969
|
+
return;
|
|
18970
|
+
return { context: context2 };
|
|
18971
|
+
}
|
|
18909
18972
|
async function withWorkflowBaggage(context2, fn) {
|
|
18910
18973
|
const otel = await OtelApi2.value;
|
|
18911
18974
|
if (!otel)
|
|
@@ -18917,7 +18980,7 @@ async function withWorkflowBaggage(context2, fn) {
|
|
|
18917
18980
|
const contextWithBaggage = otel.propagation.setBaggage(otel.context.active(), baggage);
|
|
18918
18981
|
return otel.context.with(contextWithBaggage, () => fn());
|
|
18919
18982
|
}
|
|
18920
|
-
var OtelApi2, Tracer2;
|
|
18983
|
+
var warnedUnrecognizedTraceModes, OtelApi2, Tracer2;
|
|
18921
18984
|
var init_telemetry2 = __esm({
|
|
18922
18985
|
"../core/dist/telemetry.js"() {
|
|
18923
18986
|
"use strict";
|
|
@@ -18925,6 +18988,11 @@ var init_telemetry2 = __esm({
|
|
|
18925
18988
|
init_global2();
|
|
18926
18989
|
init_logger2();
|
|
18927
18990
|
init_semantic_conventions2();
|
|
18991
|
+
warnedUnrecognizedTraceModes = /* @__PURE__ */ new Set();
|
|
18992
|
+
__name(getWorkflowTraceMode, "getWorkflowTraceMode");
|
|
18993
|
+
__name(isUsableTraceCarrier, "isUsableTraceCarrier");
|
|
18994
|
+
__name(getNextTraceCarrier, "getNextTraceCarrier");
|
|
18995
|
+
__name(buildInvocationSpanLinks, "buildInvocationSpanLinks");
|
|
18928
18996
|
__name(serializeTraceCarrier2, "serializeTraceCarrier");
|
|
18929
18997
|
__name(deserializeTraceCarrier2, "deserializeTraceCarrier");
|
|
18930
18998
|
__name(withTraceContext, "withTraceContext");
|
|
@@ -18949,6 +19017,7 @@ var init_telemetry2 = __esm({
|
|
|
18949
19017
|
__name(getSpanKind, "getSpanKind");
|
|
18950
19018
|
__name(withOtel2, "withOtel");
|
|
18951
19019
|
__name(linkToCurrentContext, "linkToCurrentContext");
|
|
19020
|
+
__name(linkToTraceCarrier2, "linkToTraceCarrier");
|
|
18952
19021
|
__name(withWorkflowBaggage, "withWorkflowBaggage");
|
|
18953
19022
|
}
|
|
18954
19023
|
});
|
|
@@ -19108,7 +19177,7 @@ var version4;
|
|
|
19108
19177
|
var init_version3 = __esm({
|
|
19109
19178
|
"../core/dist/version.js"() {
|
|
19110
19179
|
"use strict";
|
|
19111
|
-
version4 = "5.0.0-beta.
|
|
19180
|
+
version4 = "5.0.0-beta.17";
|
|
19112
19181
|
}
|
|
19113
19182
|
});
|
|
19114
19183
|
|
|
@@ -24752,12 +24821,9 @@ async function resumeHook2(tokenOrHook, payload, encryptionKeyOverride) {
|
|
|
24752
24821
|
span?.setAttributes({
|
|
24753
24822
|
...WorkflowName2(workflowRun.workflowName)
|
|
24754
24823
|
});
|
|
24755
|
-
const
|
|
24756
|
-
if (
|
|
24757
|
-
|
|
24758
|
-
if (context2) {
|
|
24759
|
-
span?.addLink?.({ context: context2 });
|
|
24760
|
-
}
|
|
24824
|
+
const originLink = await linkToTraceCarrier2(workflowRun.executionContext?.traceCarrier);
|
|
24825
|
+
if (originLink) {
|
|
24826
|
+
span?.addLink?.(originLink);
|
|
24761
24827
|
}
|
|
24762
24828
|
await world.queue(getWorkflowQueueName2(workflowRun.workflowName), {
|
|
24763
24829
|
runId: hook.runId,
|
|
@@ -54310,6 +54376,27 @@ function formatWorkflowName(name) {
|
|
|
54310
54376
|
return formatParsedName(parseWorkflowName(name), name);
|
|
54311
54377
|
}
|
|
54312
54378
|
__name(formatWorkflowName, "formatWorkflowName");
|
|
54379
|
+
function workflowDisplayName(name) {
|
|
54380
|
+
return parseWorkflowName(name)?.shortName ?? shortNameFromSanitized("workflow", name) ?? name;
|
|
54381
|
+
}
|
|
54382
|
+
__name(workflowDisplayName, "workflowDisplayName");
|
|
54383
|
+
function shortNameFromSanitized(tag, name) {
|
|
54384
|
+
if (!name.startsWith(`${tag}--`)) return null;
|
|
54385
|
+
const segments = name.split("--").filter(Boolean);
|
|
54386
|
+
const functionPart = segments.at(-1);
|
|
54387
|
+
let shortName = functionPart?.split("-").filter(Boolean).at(-1) ?? "";
|
|
54388
|
+
if ([
|
|
54389
|
+
"default",
|
|
54390
|
+
"__default"
|
|
54391
|
+
].includes(shortName)) {
|
|
54392
|
+
const moduleShortName = segments.at(-2)?.split("-").filter(Boolean).at(-1);
|
|
54393
|
+
if (moduleShortName && moduleShortName !== tag) {
|
|
54394
|
+
shortName = moduleShortName;
|
|
54395
|
+
}
|
|
54396
|
+
}
|
|
54397
|
+
return shortName || null;
|
|
54398
|
+
}
|
|
54399
|
+
__name(shortNameFromSanitized, "shortNameFromSanitized");
|
|
54313
54400
|
function formatParsedName(parsed, fallback) {
|
|
54314
54401
|
if (!parsed) return fallback;
|
|
54315
54402
|
return `${parsed.shortName} (${parsed.moduleSpecifier})`;
|
|
@@ -54323,6 +54410,8 @@ var init_parse_name = __esm2({
|
|
|
54323
54410
|
__name2(parseStepName, "parseStepName");
|
|
54324
54411
|
__name2(formatStepName, "formatStepName");
|
|
54325
54412
|
__name2(formatWorkflowName, "formatWorkflowName");
|
|
54413
|
+
__name2(workflowDisplayName, "workflowDisplayName");
|
|
54414
|
+
__name2(shortNameFromSanitized, "shortNameFromSanitized");
|
|
54326
54415
|
__name2(formatParsedName, "formatParsedName");
|
|
54327
54416
|
}
|
|
54328
54417
|
});
|
|
@@ -74264,6 +74353,7 @@ var WorkflowEventsCount;
|
|
|
74264
74353
|
var WorkflowArgumentsCount;
|
|
74265
74354
|
var WorkflowResultType;
|
|
74266
74355
|
var WorkflowTracePropagated;
|
|
74356
|
+
var WorkflowTraceMode;
|
|
74267
74357
|
var WorkflowErrorName;
|
|
74268
74358
|
var WorkflowErrorMessage;
|
|
74269
74359
|
var WorkflowErrorCode;
|
|
@@ -74330,6 +74420,7 @@ var init_semantic_conventions = __esm2({
|
|
|
74330
74420
|
WorkflowArgumentsCount = SemanticConvention("workflow.arguments.count");
|
|
74331
74421
|
WorkflowResultType = SemanticConvention("workflow.result.type");
|
|
74332
74422
|
WorkflowTracePropagated = SemanticConvention("workflow.trace.propagated");
|
|
74423
|
+
WorkflowTraceMode = SemanticConvention("workflow.trace.mode");
|
|
74333
74424
|
WorkflowErrorName = SemanticConvention("workflow.error.name");
|
|
74334
74425
|
WorkflowErrorMessage = SemanticConvention("workflow.error.message");
|
|
74335
74426
|
WorkflowErrorCode = SemanticConvention("workflow.error.code");
|
|
@@ -76467,6 +76558,19 @@ async function withOtel(fn) {
|
|
|
76467
76558
|
return await fn(otel);
|
|
76468
76559
|
}
|
|
76469
76560
|
__name(withOtel, "withOtel");
|
|
76561
|
+
async function linkToTraceCarrier(carrier) {
|
|
76562
|
+
if (!carrier) return;
|
|
76563
|
+
const [context2, otel] = await Promise.all([
|
|
76564
|
+
getSpanContextForTraceCarrier(carrier),
|
|
76565
|
+
OtelApi.value
|
|
76566
|
+
]);
|
|
76567
|
+
if (!context2 || !otel) return;
|
|
76568
|
+
if (!otel.trace.isSpanContextValid(context2)) return;
|
|
76569
|
+
return {
|
|
76570
|
+
context: context2
|
|
76571
|
+
};
|
|
76572
|
+
}
|
|
76573
|
+
__name(linkToTraceCarrier, "linkToTraceCarrier");
|
|
76470
76574
|
var OtelApi;
|
|
76471
76575
|
var Tracer;
|
|
76472
76576
|
var init_telemetry = __esm2({
|
|
@@ -76496,6 +76600,7 @@ var init_telemetry = __esm2({
|
|
|
76496
76600
|
__name2(getSpanContextForTraceCarrier, "getSpanContextForTraceCarrier");
|
|
76497
76601
|
__name2(getActiveSpan, "getActiveSpan");
|
|
76498
76602
|
__name2(withOtel, "withOtel");
|
|
76603
|
+
__name2(linkToTraceCarrier, "linkToTraceCarrier");
|
|
76499
76604
|
}
|
|
76500
76605
|
});
|
|
76501
76606
|
function matchesDebugNamespace(namespace, patternList) {
|
|
@@ -78777,7 +78882,7 @@ var version2;
|
|
|
78777
78882
|
var init_version = __esm2({
|
|
78778
78883
|
"../core/dist/version.js"() {
|
|
78779
78884
|
"use strict";
|
|
78780
|
-
version2 = "5.0.0-beta.
|
|
78885
|
+
version2 = "5.0.0-beta.17";
|
|
78781
78886
|
}
|
|
78782
78887
|
});
|
|
78783
78888
|
function getWorkflowQueueName(workflowName, namespace) {
|
|
@@ -80193,14 +80298,9 @@ async function resumeHook(tokenOrHook, payload, encryptionKeyOverride) {
|
|
|
80193
80298
|
span?.setAttributes({
|
|
80194
80299
|
...WorkflowName(workflowRun.workflowName)
|
|
80195
80300
|
});
|
|
80196
|
-
const
|
|
80197
|
-
if (
|
|
80198
|
-
|
|
80199
|
-
if (context2) {
|
|
80200
|
-
span?.addLink?.({
|
|
80201
|
-
context: context2
|
|
80202
|
-
});
|
|
80203
|
-
}
|
|
80301
|
+
const originLink = await linkToTraceCarrier(workflowRun.executionContext?.traceCarrier);
|
|
80302
|
+
if (originLink) {
|
|
80303
|
+
span?.addLink?.(originLink);
|
|
80204
80304
|
}
|
|
80205
80305
|
await world.queue(getWorkflowQueueName(workflowRun.workflowName), {
|
|
80206
80306
|
runId: hook.runId,
|
|
@@ -81736,6 +81836,7 @@ init_encryption();
|
|
|
81736
81836
|
init_serialization2();
|
|
81737
81837
|
init_helpers();
|
|
81738
81838
|
init_dist2();
|
|
81839
|
+
init_parse_name();
|
|
81739
81840
|
init_dist4();
|
|
81740
81841
|
init_node();
|
|
81741
81842
|
init_dist2();
|
|
@@ -81784,7 +81885,8 @@ async function start(workflow, argsOrOptions, options) {
|
|
|
81784
81885
|
slug: "start-invalid-workflow-function"
|
|
81785
81886
|
});
|
|
81786
81887
|
}
|
|
81787
|
-
|
|
81888
|
+
const spanName = `workflow.start ${workflowDisplayName(workflowName)}`;
|
|
81889
|
+
return trace(spanName, async (span) => {
|
|
81788
81890
|
span?.setAttributes({
|
|
81789
81891
|
...WorkflowName(workflowName),
|
|
81790
81892
|
...WorkflowOperation("start")
|
|
@@ -81947,7 +82049,7 @@ __name2(start, "start");
|
|
|
81947
82049
|
value: "start",
|
|
81948
82050
|
configurable: true
|
|
81949
82051
|
});
|
|
81950
|
-
})(start, "step//@workflow/core/runtime/start@5.0.0-beta.
|
|
82052
|
+
})(start, "step//@workflow/core/runtime/start@5.0.0-beta.17//start");
|
|
81951
82053
|
function isRetryableStartError(err) {
|
|
81952
82054
|
if (ThrottleError.is(err)) return true;
|
|
81953
82055
|
if (WorkflowWorldError.is(err) && err.status && err.status >= 500) return true;
|
|
@@ -82281,7 +82383,7 @@ var Run = class _Run {
|
|
|
82281
82383
|
value: "wakeUp",
|
|
82282
82384
|
configurable: true
|
|
82283
82385
|
});
|
|
82284
|
-
})(Run.prototype["wakeUp"], "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
82386
|
+
})(Run.prototype["wakeUp"], "step//@workflow/core/runtime/run@5.0.0-beta.17//Run#wakeUp");
|
|
82285
82387
|
(function(__wf_fn, __wf_id) {
|
|
82286
82388
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
82287
82389
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -82290,7 +82392,7 @@ var Run = class _Run {
|
|
|
82290
82392
|
value: "cancel",
|
|
82291
82393
|
configurable: true
|
|
82292
82394
|
});
|
|
82293
|
-
})(Run.prototype["cancel"], "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
82395
|
+
})(Run.prototype["cancel"], "step//@workflow/core/runtime/run@5.0.0-beta.17//Run#cancel");
|
|
82294
82396
|
(function(__wf_fn, __wf_id) {
|
|
82295
82397
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
82296
82398
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -82299,7 +82401,7 @@ var Run = class _Run {
|
|
|
82299
82401
|
value: "getReadable",
|
|
82300
82402
|
configurable: true
|
|
82301
82403
|
});
|
|
82302
|
-
})(Run.prototype["getReadable"], "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
82404
|
+
})(Run.prototype["getReadable"], "step//@workflow/core/runtime/run@5.0.0-beta.17//Run#getReadable");
|
|
82303
82405
|
(function(__wf_fn, __wf_id) {
|
|
82304
82406
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
82305
82407
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -82308,7 +82410,7 @@ var Run = class _Run {
|
|
|
82308
82410
|
value: "exists",
|
|
82309
82411
|
configurable: true
|
|
82310
82412
|
});
|
|
82311
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "exists").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
82413
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "exists").get, "step//@workflow/core/runtime/run@5.0.0-beta.17//Run#exists");
|
|
82312
82414
|
(function(__wf_fn, __wf_id) {
|
|
82313
82415
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
82314
82416
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -82317,7 +82419,7 @@ var Run = class _Run {
|
|
|
82317
82419
|
value: "status",
|
|
82318
82420
|
configurable: true
|
|
82319
82421
|
});
|
|
82320
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "status").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
82422
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "status").get, "step//@workflow/core/runtime/run@5.0.0-beta.17//Run#status");
|
|
82321
82423
|
(function(__wf_fn, __wf_id) {
|
|
82322
82424
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
82323
82425
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -82326,7 +82428,7 @@ var Run = class _Run {
|
|
|
82326
82428
|
value: "returnValue",
|
|
82327
82429
|
configurable: true
|
|
82328
82430
|
});
|
|
82329
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "returnValue").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
82431
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "returnValue").get, "step//@workflow/core/runtime/run@5.0.0-beta.17//Run#returnValue");
|
|
82330
82432
|
(function(__wf_fn, __wf_id) {
|
|
82331
82433
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
82332
82434
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -82335,7 +82437,7 @@ var Run = class _Run {
|
|
|
82335
82437
|
value: "workflowName",
|
|
82336
82438
|
configurable: true
|
|
82337
82439
|
});
|
|
82338
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "workflowName").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
82440
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "workflowName").get, "step//@workflow/core/runtime/run@5.0.0-beta.17//Run#workflowName");
|
|
82339
82441
|
(function(__wf_fn, __wf_id) {
|
|
82340
82442
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
82341
82443
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -82344,7 +82446,7 @@ var Run = class _Run {
|
|
|
82344
82446
|
value: "createdAt",
|
|
82345
82447
|
configurable: true
|
|
82346
82448
|
});
|
|
82347
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "createdAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
82449
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "createdAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.17//Run#createdAt");
|
|
82348
82450
|
(function(__wf_fn, __wf_id) {
|
|
82349
82451
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
82350
82452
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -82353,7 +82455,7 @@ var Run = class _Run {
|
|
|
82353
82455
|
value: "startedAt",
|
|
82354
82456
|
configurable: true
|
|
82355
82457
|
});
|
|
82356
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "startedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
82458
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "startedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.17//Run#startedAt");
|
|
82357
82459
|
(function(__wf_fn, __wf_id) {
|
|
82358
82460
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
82359
82461
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -82362,7 +82464,7 @@ var Run = class _Run {
|
|
|
82362
82464
|
value: "completedAt",
|
|
82363
82465
|
configurable: true
|
|
82364
82466
|
});
|
|
82365
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "completedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
82467
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "completedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.17//Run#completedAt");
|
|
82366
82468
|
(function(__wf_cls, __wf_id) {
|
|
82367
82469
|
var __wf_sym = /* @__PURE__ */ Symbol.for("workflow-class-registry"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
82368
82470
|
__wf_reg.set(__wf_id, __wf_cls);
|
|
@@ -82372,7 +82474,7 @@ var Run = class _Run {
|
|
|
82372
82474
|
enumerable: false,
|
|
82373
82475
|
configurable: false
|
|
82374
82476
|
});
|
|
82375
|
-
})(Run, "class//@workflow/core/runtime/run@5.0.0-beta.
|
|
82477
|
+
})(Run, "class//@workflow/core/runtime/run@5.0.0-beta.17//Run");
|
|
82376
82478
|
async function fetch2(...args) {
|
|
82377
82479
|
return globalThis.fetch(...args);
|
|
82378
82480
|
}
|
|
@@ -86208,6 +86310,17 @@ async function getSpanKind3(field) {
|
|
|
86208
86310
|
return otel.SpanKind[field];
|
|
86209
86311
|
}
|
|
86210
86312
|
__name(getSpanKind3, "getSpanKind");
|
|
86313
|
+
async function injectTraceContextIntoHeaders(headers) {
|
|
86314
|
+
const otel = await getOtelApi2();
|
|
86315
|
+
if (!otel)
|
|
86316
|
+
return;
|
|
86317
|
+
const carrier = {};
|
|
86318
|
+
otel.propagation.inject(otel.context.active(), carrier);
|
|
86319
|
+
for (const [key, value] of Object.entries(carrier)) {
|
|
86320
|
+
headers.set(key, value);
|
|
86321
|
+
}
|
|
86322
|
+
}
|
|
86323
|
+
__name(injectTraceContextIntoHeaders, "injectTraceContextIntoHeaders");
|
|
86211
86324
|
function SemanticConvention4(...names) {
|
|
86212
86325
|
return (value) => Object.fromEntries(names.map((name) => [name, value]));
|
|
86213
86326
|
}
|
|
@@ -93187,7 +93300,7 @@ import os from "node:os";
|
|
|
93187
93300
|
import { inspect } from "node:util";
|
|
93188
93301
|
|
|
93189
93302
|
// ../world-vercel/dist/version.js
|
|
93190
|
-
var version5 = "5.0.0-beta.
|
|
93303
|
+
var version5 = "5.0.0-beta.16";
|
|
93191
93304
|
|
|
93192
93305
|
// ../world-vercel/dist/utils.js
|
|
93193
93306
|
var HTTP_DEBUG_ENABLED = typeof process !== "undefined" && typeof process.env.DEBUG === "string" && (process.env.DEBUG.includes("workflow:") || process.env.DEBUG === "*");
|
|
@@ -93306,6 +93419,7 @@ async function makeRequest({ endpoint, options = {}, config: config4 = {}, schem
|
|
|
93306
93419
|
...RpcService4("workflow-server")
|
|
93307
93420
|
});
|
|
93308
93421
|
headers.set("Accept", "application/cbor");
|
|
93422
|
+
await injectTraceContextIntoHeaders(headers);
|
|
93309
93423
|
let body;
|
|
93310
93424
|
if (data !== void 0) {
|
|
93311
93425
|
headers.set("Content-Type", "application/cbor");
|
|
@@ -95129,7 +95243,8 @@ var DEFAULT_STEP_MAX_RETRIES = 3;
|
|
|
95129
95243
|
async function executeStep(params) {
|
|
95130
95244
|
const { world, workflowRunId, workflowName, workflowStartedAt, stepId, stepName } = params;
|
|
95131
95245
|
const isVercel = process.env.VERCEL_URL !== void 0;
|
|
95132
|
-
|
|
95246
|
+
const spanName = `step.execute ${stepDisplayName(stepName)}`;
|
|
95247
|
+
return trace3(spanName, {}, async (span) => {
|
|
95133
95248
|
span?.setAttributes({
|
|
95134
95249
|
...StepName2(stepName),
|
|
95135
95250
|
...WorkflowName2(workflowName),
|
|
@@ -98066,6 +98181,7 @@ init_helpers2();
|
|
|
98066
98181
|
|
|
98067
98182
|
// ../core/dist/runtime/start.js
|
|
98068
98183
|
init_dist6();
|
|
98184
|
+
init_parse_name2();
|
|
98069
98185
|
init_dist7();
|
|
98070
98186
|
init_node2();
|
|
98071
98187
|
|
|
@@ -98458,7 +98574,8 @@ function workflowEntrypoint(workflowCode2, options) {
|
|
|
98458
98574
|
await handleHealthCheckMessage(healthCheck3, "workflow", worldHandlers.specVersion);
|
|
98459
98575
|
return;
|
|
98460
98576
|
}
|
|
98461
|
-
const { runId, traceCarrier:
|
|
98577
|
+
const { runId, traceCarrier: incomingTraceCarrier, requestedAt, stepId: incomingStepId, stepName: incomingStepName, replayDivergence, runInput } = WorkflowInvokePayloadSchema2.parse(message_);
|
|
98578
|
+
const traceContext = isUsableTraceCarrier(incomingTraceCarrier) ? incomingTraceCarrier : void 0;
|
|
98462
98579
|
const { requestId } = metadata;
|
|
98463
98580
|
const workflowName = metadata.queueName.slice(workflowPrefix.length);
|
|
98464
98581
|
const runLogger = runtimeLogger2.forRun(runId, workflowName);
|
|
@@ -98494,12 +98611,16 @@ function workflowEntrypoint(workflowCode2, options) {
|
|
|
98494
98611
|
}
|
|
98495
98612
|
return;
|
|
98496
98613
|
}
|
|
98497
|
-
const
|
|
98614
|
+
const traceMode = getWorkflowTraceMode();
|
|
98615
|
+
const nextTraceCarrier = /* @__PURE__ */ __name(() => getNextTraceCarrier(traceMode, traceContext), "nextTraceCarrier");
|
|
98616
|
+
const spanLinks = await buildInvocationSpanLinks(traceMode, traceContext);
|
|
98498
98617
|
const replayBudget = new ReplayBudget();
|
|
98499
|
-
|
|
98618
|
+
const parentTraceCarrier = traceMode === "continuous" ? traceContext : void 0;
|
|
98619
|
+
const spanKind = await getSpanKind("CONSUMER");
|
|
98620
|
+
return await withTraceContext(parentTraceCarrier, async () => {
|
|
98500
98621
|
return await withWorkflowBaggage({ workflowRunId: runId, workflowName }, async () => {
|
|
98501
98622
|
const world = await getWorld();
|
|
98502
|
-
return trace3(`
|
|
98623
|
+
return trace3(`workflow.execute ${workflowDisplayName2(workflowName)}`, traceMode === "linked" ? { kind: spanKind, links: spanLinks, root: true } : { kind: spanKind, links: spanLinks }, async (span) => {
|
|
98503
98624
|
span?.setAttributes({
|
|
98504
98625
|
...WorkflowName2(workflowName),
|
|
98505
98626
|
...WorkflowOperation2("execute_v2"),
|
|
@@ -98509,7 +98630,8 @@ function workflowEntrypoint(workflowCode2, options) {
|
|
|
98509
98630
|
...MessagingOperationType2("process"),
|
|
98510
98631
|
...getQueueOverhead({ requestedAt }),
|
|
98511
98632
|
...WorkflowRunId2(runId),
|
|
98512
|
-
...WorkflowTracePropagated2(!!traceContext)
|
|
98633
|
+
...WorkflowTracePropagated2(!!traceContext),
|
|
98634
|
+
...WorkflowTraceMode2(traceMode)
|
|
98513
98635
|
});
|
|
98514
98636
|
const invocationStartTime = Date.now();
|
|
98515
98637
|
let loopIteration = 0;
|
|
@@ -98551,7 +98673,7 @@ function workflowEntrypoint(workflowCode2, options) {
|
|
|
98551
98673
|
if (stepResult.type === "completed" && stepResult.hasPendingOps) {
|
|
98552
98674
|
await queueMessage(world, getWorkflowQueueName2(workflowName, namespace), {
|
|
98553
98675
|
runId,
|
|
98554
|
-
traceCarrier: await
|
|
98676
|
+
traceCarrier: await nextTraceCarrier(),
|
|
98555
98677
|
requestedAt: /* @__PURE__ */ new Date()
|
|
98556
98678
|
});
|
|
98557
98679
|
return;
|
|
@@ -98693,7 +98815,7 @@ function workflowEntrypoint(workflowCode2, options) {
|
|
|
98693
98815
|
});
|
|
98694
98816
|
await queueMessage(world, getWorkflowQueueName2(workflowName, namespace), {
|
|
98695
98817
|
runId,
|
|
98696
|
-
traceCarrier: await
|
|
98818
|
+
traceCarrier: await nextTraceCarrier(),
|
|
98697
98819
|
requestedAt: /* @__PURE__ */ new Date()
|
|
98698
98820
|
});
|
|
98699
98821
|
return;
|
|
@@ -98904,7 +99026,7 @@ function workflowEntrypoint(workflowCode2, options) {
|
|
|
98904
99026
|
const pendingSteps = suspensionResult.pendingSteps;
|
|
98905
99027
|
const ownedPendingSteps = pendingSteps.filter((s) => suspensionResult.createdStepCorrelationIds.has(s.correlationId));
|
|
98906
99028
|
const inlineStep = suspensionResult.hasAwaitedHookCreation ? void 0 : ownedPendingSteps[0];
|
|
98907
|
-
const traceCarrier = await
|
|
99029
|
+
const traceCarrier = await nextTraceCarrier();
|
|
98908
99030
|
const dispatches = [];
|
|
98909
99031
|
for (const step of pendingSteps) {
|
|
98910
99032
|
if (inlineStep && step.correlationId === inlineStep.correlationId) {
|
|
@@ -98950,7 +99072,7 @@ function workflowEntrypoint(workflowCode2, options) {
|
|
|
98950
99072
|
replayBudget.resume();
|
|
98951
99073
|
}
|
|
98952
99074
|
if (stepResult.type === "retry") {
|
|
98953
|
-
const retryTraceCarrier = await
|
|
99075
|
+
const retryTraceCarrier = await nextTraceCarrier();
|
|
98954
99076
|
await queueMessage(world, getWorkflowQueueName2(workflowName, namespace), {
|
|
98955
99077
|
runId,
|
|
98956
99078
|
stepId: inlineStep.correlationId,
|
|
@@ -98975,7 +99097,7 @@ function workflowEntrypoint(workflowCode2, options) {
|
|
|
98975
99097
|
});
|
|
98976
99098
|
await queueMessage(world, getWorkflowQueueName2(workflowName, namespace), {
|
|
98977
99099
|
runId,
|
|
98978
|
-
traceCarrier: await
|
|
99100
|
+
traceCarrier: await nextTraceCarrier(),
|
|
98979
99101
|
requestedAt: /* @__PURE__ */ new Date()
|
|
98980
99102
|
});
|
|
98981
99103
|
return;
|
|
@@ -98996,7 +99118,7 @@ function workflowEntrypoint(workflowCode2, options) {
|
|
|
98996
99118
|
});
|
|
98997
99119
|
await queueMessage(world, getWorkflowQueueName2(workflowName, namespace), {
|
|
98998
99120
|
runId,
|
|
98999
|
-
traceCarrier: await
|
|
99121
|
+
traceCarrier: await nextTraceCarrier(),
|
|
99000
99122
|
requestedAt: /* @__PURE__ */ new Date(),
|
|
99001
99123
|
replayDivergence: {
|
|
99002
99124
|
eventId: err.eventId,
|
|
@@ -115348,10 +115470,10 @@ var Run = class _Run {
|
|
|
115348
115470
|
return this.getReadable();
|
|
115349
115471
|
}
|
|
115350
115472
|
};
|
|
115351
|
-
Run.prototype["wakeUp"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
115352
|
-
Run.prototype["cancel"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
115353
|
-
Run.prototype["getReadable"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
115354
|
-
var __step_Run$exists = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
115473
|
+
Run.prototype["wakeUp"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.17//Run#wakeUp");
|
|
115474
|
+
Run.prototype["cancel"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.17//Run#cancel");
|
|
115475
|
+
Run.prototype["getReadable"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.17//Run#getReadable");
|
|
115476
|
+
var __step_Run$exists = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.17//Run#exists");
|
|
115355
115477
|
Object.defineProperty(Run.prototype, "exists", {
|
|
115356
115478
|
get() {
|
|
115357
115479
|
return __step_Run$exists.call(this);
|
|
@@ -115359,7 +115481,7 @@ Object.defineProperty(Run.prototype, "exists", {
|
|
|
115359
115481
|
configurable: true,
|
|
115360
115482
|
enumerable: false
|
|
115361
115483
|
});
|
|
115362
|
-
var __step_Run$status = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
115484
|
+
var __step_Run$status = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.17//Run#status");
|
|
115363
115485
|
Object.defineProperty(Run.prototype, "status", {
|
|
115364
115486
|
get() {
|
|
115365
115487
|
return __step_Run$status.call(this);
|
|
@@ -115367,7 +115489,7 @@ Object.defineProperty(Run.prototype, "status", {
|
|
|
115367
115489
|
configurable: true,
|
|
115368
115490
|
enumerable: false
|
|
115369
115491
|
});
|
|
115370
|
-
var __step_Run$returnValue = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
115492
|
+
var __step_Run$returnValue = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.17//Run#returnValue");
|
|
115371
115493
|
Object.defineProperty(Run.prototype, "returnValue", {
|
|
115372
115494
|
get() {
|
|
115373
115495
|
return __step_Run$returnValue.call(this);
|
|
@@ -115375,7 +115497,7 @@ Object.defineProperty(Run.prototype, "returnValue", {
|
|
|
115375
115497
|
configurable: true,
|
|
115376
115498
|
enumerable: false
|
|
115377
115499
|
});
|
|
115378
|
-
var __step_Run$workflowName = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
115500
|
+
var __step_Run$workflowName = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.17//Run#workflowName");
|
|
115379
115501
|
Object.defineProperty(Run.prototype, "workflowName", {
|
|
115380
115502
|
get() {
|
|
115381
115503
|
return __step_Run$workflowName.call(this);
|
|
@@ -115383,7 +115505,7 @@ Object.defineProperty(Run.prototype, "workflowName", {
|
|
|
115383
115505
|
configurable: true,
|
|
115384
115506
|
enumerable: false
|
|
115385
115507
|
});
|
|
115386
|
-
var __step_Run$createdAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
115508
|
+
var __step_Run$createdAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.17//Run#createdAt");
|
|
115387
115509
|
Object.defineProperty(Run.prototype, "createdAt", {
|
|
115388
115510
|
get() {
|
|
115389
115511
|
return __step_Run$createdAt.call(this);
|
|
@@ -115391,7 +115513,7 @@ Object.defineProperty(Run.prototype, "createdAt", {
|
|
|
115391
115513
|
configurable: true,
|
|
115392
115514
|
enumerable: false
|
|
115393
115515
|
});
|
|
115394
|
-
var __step_Run$startedAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
115516
|
+
var __step_Run$startedAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.17//Run#startedAt");
|
|
115395
115517
|
Object.defineProperty(Run.prototype, "startedAt", {
|
|
115396
115518
|
get() {
|
|
115397
115519
|
return __step_Run$startedAt.call(this);
|
|
@@ -115399,7 +115521,7 @@ Object.defineProperty(Run.prototype, "startedAt", {
|
|
|
115399
115521
|
configurable: true,
|
|
115400
115522
|
enumerable: false
|
|
115401
115523
|
});
|
|
115402
|
-
var __step_Run$completedAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
115524
|
+
var __step_Run$completedAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.17//Run#completedAt");
|
|
115403
115525
|
Object.defineProperty(Run.prototype, "completedAt", {
|
|
115404
115526
|
get() {
|
|
115405
115527
|
return __step_Run$completedAt.call(this);
|
|
@@ -115416,7 +115538,7 @@ Object.defineProperty(Run.prototype, "completedAt", {
|
|
|
115416
115538
|
enumerable: false,
|
|
115417
115539
|
configurable: false
|
|
115418
115540
|
});
|
|
115419
|
-
})(Run, "class//@workflow/core/runtime/run@5.0.0-beta.
|
|
115541
|
+
})(Run, "class//@workflow/core/runtime/run@5.0.0-beta.17//Run");
|
|
115420
115542
|
|
|
115421
115543
|
// ../core/dist/workflow/create-hook.js
|
|
115422
115544
|
aliasSerializationClass(RUN_CLASS_ID, Run);
|