@workflow/web 5.0.0-beta.41 → 5.0.0-beta.43
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.
- package/build/client/assets/app-9JVnf-IU.css +1 -0
- package/build/client/assets/{arrow-up-right-jWH-UQH9.js → arrow-up-right-D39pnGsD.js} +1 -1
- package/build/client/assets/{highlighted-body-B3W2YXNL-DmmWu7VM.js → highlighted-body-B3W2YXNL-Dc1dLaUr.js} +1 -1
- package/build/client/assets/{home-BwYHJJJr.js → home-C6CuMqQu.js} +3 -3
- package/build/client/assets/{loader-circle-fFQM94Ej.js → loader-circle-BOxaTUjK.js} +1 -1
- package/build/client/assets/{manifest-f6a9dca2.js → manifest-157e28f1.js} +1 -1
- package/build/client/assets/{mermaid-3ZIDBTTL-DchhEfRL.js → mermaid-3ZIDBTTL-gEw-Ch1C.js} +308 -284
- package/build/client/assets/{root-D6p4Hb4F.js → root-BfhMCbkz.js} +3 -3
- package/build/client/assets/root-Bl5xphvU.css +1 -0
- package/build/client/assets/{run-detail-vPCbZIXx.js → run-detail-BG_1K2Hq.js} +339 -130
- package/build/client/assets/{workflow-graph-viewer-t_fSwuwz.js → workflow-graph-viewer-CxrWityD.js} +3 -145
- package/build/client/assets/{zstd-browser-decoder-BTw1glGN.js → zstd-browser-decoder-CAEVa0bm.js} +1 -1
- package/build/server/assets/{app-D8GiFFR6.js → app-_xgEuKqE.js} +1533 -799
- package/build/server/assets/{highlighted-body-B3W2YXNL-BZVc2guG.js → highlighted-body-B3W2YXNL-B1Smd86a.js} +5 -4
- package/build/server/assets/index-CSsrecUx.js +161 -0
- package/build/server/assets/{index-DTci39F3.js → index-Ck5CB_wQ.js} +1 -1
- package/build/server/assets/{mermaid-3ZIDBTTL-DOefrphg.js → mermaid-3ZIDBTTL-CwYR558N.js} +5 -4
- package/build/server/assets/{token-c3byIJRC.js → token-COK7oHMh.js} +1 -1
- package/build/server/assets/{token-util-C2yENsqE.js → token-util-BhmVdeCX.js} +1 -1
- package/build/server/assets/{websocket-server-DagS_hnJ.js → websocket-server-ByjlHAhQ.js} +1 -1
- package/build/server/assets/{wrapper-Cnumc4u1.js → wrapper-DWeVTope.js} +7 -6
- package/build/server/assets/{ws-transport-2gJL6hC2.js → ws-transport-BCfcEhAO.js} +45 -6
- package/build/server/assets/{zstd-browser-decoder-BCVvr1WT.js → zstd-browser-decoder-D8JD_nwS.js} +5 -4
- package/build/server/index.js +7 -6
- package/package.json +7 -7
- package/build/client/assets/app-BkGXg64e.css +0 -1
- package/build/client/assets/root-ZRjqDhEN.css +0 -1
- package/build/server/assets/index-BByEr1g6.js +0 -154
|
@@ -2,7 +2,7 @@ import { createRequire as __wkfCreateRequire } from "node:module";
|
|
|
2
2
|
if (typeof require === "undefined") {
|
|
3
3
|
globalThis.require = __wkfCreateRequire(import.meta.url);
|
|
4
4
|
}
|
|
5
|
-
import {
|
|
5
|
+
import { aU as reactExports, aV as R, aW as Ks, aX as jsxRuntimeExports, aY as Qe } from "./app-_xgEuKqE.js";
|
|
6
6
|
import "node:stream";
|
|
7
7
|
import "stream";
|
|
8
8
|
import "util";
|
|
@@ -21,16 +21,17 @@ import "node:fs";
|
|
|
21
21
|
import "node:os";
|
|
22
22
|
import "node:child_process";
|
|
23
23
|
import "node:timers/promises";
|
|
24
|
+
import "node:buffer";
|
|
25
|
+
import "node:http";
|
|
26
|
+
import "node:https";
|
|
27
|
+
import "node:zlib";
|
|
24
28
|
import "events";
|
|
25
29
|
import "node:assert";
|
|
26
30
|
import "node:net";
|
|
27
|
-
import "node:http";
|
|
28
31
|
import "node:querystring";
|
|
29
32
|
import "node:events";
|
|
30
33
|
import "node:diagnostics_channel";
|
|
31
34
|
import "node:tls";
|
|
32
|
-
import "node:buffer";
|
|
33
|
-
import "node:zlib";
|
|
34
35
|
import "node:perf_hooks";
|
|
35
36
|
import "node:util/types";
|
|
36
37
|
import "node:sqlite";
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { createRequire as __wkfCreateRequire } from "node:module";
|
|
2
|
+
if (typeof require === "undefined") {
|
|
3
|
+
globalThis.require = __wkfCreateRequire(import.meta.url);
|
|
4
|
+
}
|
|
5
|
+
import { H as HookSchema } from "./app-_xgEuKqE.js";
|
|
6
|
+
import { A, a, b, c, d, e, f, g, h, i, j, k, l, B, m, n, o, p, C, D, q, E, r, s, t, u, v, F, w, x, y, z, G, I, J, L, M, K, O, P, Q, R, S, T, U, V, W, X, Y, Z, _, $, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae, af, ag, ah, ai, aj, ak, al, am, an, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, aI, aJ, aK, aL, aM, aN, aO, aP, aQ, aR, aS, aT } from "./app-_xgEuKqE.js";
|
|
7
|
+
import "node:stream";
|
|
8
|
+
import "stream";
|
|
9
|
+
import "util";
|
|
10
|
+
import "crypto";
|
|
11
|
+
import "async_hooks";
|
|
12
|
+
import "node:crypto";
|
|
13
|
+
import "node:process";
|
|
14
|
+
import "node:path";
|
|
15
|
+
import "node:url";
|
|
16
|
+
import "module";
|
|
17
|
+
import "node:fs/promises";
|
|
18
|
+
import "node:module";
|
|
19
|
+
import "node:util";
|
|
20
|
+
import "node:async_hooks";
|
|
21
|
+
import "node:fs";
|
|
22
|
+
import "node:os";
|
|
23
|
+
import "node:child_process";
|
|
24
|
+
import "node:timers/promises";
|
|
25
|
+
import "node:buffer";
|
|
26
|
+
import "node:http";
|
|
27
|
+
import "node:https";
|
|
28
|
+
import "node:zlib";
|
|
29
|
+
import "events";
|
|
30
|
+
import "node:assert";
|
|
31
|
+
import "node:net";
|
|
32
|
+
import "node:querystring";
|
|
33
|
+
import "node:events";
|
|
34
|
+
import "node:diagnostics_channel";
|
|
35
|
+
import "node:tls";
|
|
36
|
+
import "node:perf_hooks";
|
|
37
|
+
import "node:util/types";
|
|
38
|
+
import "node:sqlite";
|
|
39
|
+
import "node:worker_threads";
|
|
40
|
+
import "node:console";
|
|
41
|
+
import "node:timers";
|
|
42
|
+
import "node:dns";
|
|
43
|
+
import "path";
|
|
44
|
+
import "fs";
|
|
45
|
+
import "constants";
|
|
46
|
+
import "assert";
|
|
47
|
+
import "os";
|
|
48
|
+
import "net";
|
|
49
|
+
import "node:assert/strict";
|
|
50
|
+
import "express";
|
|
51
|
+
export {
|
|
52
|
+
A as ANALYTICS_EVENTS_GET_MANY_LIMIT,
|
|
53
|
+
a as ATTRIBUTE_KEY_MAX_LENGTH,
|
|
54
|
+
b as ATTRIBUTE_MAX_PER_RUN,
|
|
55
|
+
c as ATTRIBUTE_VALUE_MAX_BYTES,
|
|
56
|
+
d as AnalyticsAttributeKeySchema,
|
|
57
|
+
e as AnalyticsEventSchema,
|
|
58
|
+
f as AnalyticsHookSchema,
|
|
59
|
+
g as AnalyticsRunSchema,
|
|
60
|
+
h as AnalyticsStepSchema,
|
|
61
|
+
i as AnalyticsWaitSchema,
|
|
62
|
+
j as AttributeChangeSchema,
|
|
63
|
+
k as AttributeChangesSchema,
|
|
64
|
+
l as AttributeValidationError,
|
|
65
|
+
B as BULK_CANCEL_MAX_RUN_IDS,
|
|
66
|
+
m as BaseEventSchema,
|
|
67
|
+
n as BulkCancelWorkflowRunResultSchema,
|
|
68
|
+
o as BulkCancelWorkflowRunsRequestSchema,
|
|
69
|
+
p as BulkCancelWorkflowRunsResultSchema,
|
|
70
|
+
C as CHILD_ENTITY_CREATION_EVENT_TYPES,
|
|
71
|
+
D as DEFAULT_TIMESTAMP_THRESHOLD_FUTURE_MS,
|
|
72
|
+
q as DEFAULT_TIMESTAMP_THRESHOLD_PAST_MS,
|
|
73
|
+
E as EVENT_DATA_PAYLOAD_FIELD_BY_EVENT_TYPE,
|
|
74
|
+
r as EVENT_DATA_REF_FIELDS,
|
|
75
|
+
s as EVENT_ID_BODY_LENGTH,
|
|
76
|
+
t as EVENT_ID_PREFIX,
|
|
77
|
+
u as EventSchema,
|
|
78
|
+
v as EventTypeSchema,
|
|
79
|
+
F as FIRST_EVENT_SLOT,
|
|
80
|
+
w as HOOK_EVENTS_REQUIRING_EXISTENCE,
|
|
81
|
+
x as HOOK_LIFECYCLE_EVENT_TYPES,
|
|
82
|
+
y as HOOK_RESUME_DEDUP_VERSION,
|
|
83
|
+
z as HOOK_RESUME_INPUT_VERSION,
|
|
84
|
+
G as HealthCheckPayloadSchema,
|
|
85
|
+
I as HookCreatedEventSchema,
|
|
86
|
+
J as HookResumeCapabilitiesSchema,
|
|
87
|
+
HookSchema,
|
|
88
|
+
L as LegacySerializedDataSchemaV1,
|
|
89
|
+
M as MessageId,
|
|
90
|
+
K as NODE_HTTP_DEFAULT,
|
|
91
|
+
O as NODE_HTTP_ENV_VAR,
|
|
92
|
+
P as PARENT_RUN_ID_ATTRIBUTE,
|
|
93
|
+
Q as PaginatedResponseSchema,
|
|
94
|
+
R as QueuePayloadSchema,
|
|
95
|
+
S as QueuePrefix,
|
|
96
|
+
T as RESERVED_ATTRIBUTE_KEY_PREFIX,
|
|
97
|
+
U as ROOT_RUN_ID_ATTRIBUTE,
|
|
98
|
+
V as RunInputSchema,
|
|
99
|
+
W as SPEC_VERSION_CURRENT,
|
|
100
|
+
X as SPEC_VERSION_LEGACY,
|
|
101
|
+
Y as SPEC_VERSION_MAX_SUPPORTED,
|
|
102
|
+
Z as SPEC_VERSION_SUPPORTS_ATTRIBUTES,
|
|
103
|
+
_ as SPEC_VERSION_SUPPORTS_CBOR_QUEUE_TRANSPORT,
|
|
104
|
+
$ as SPEC_VERSION_SUPPORTS_COMPRESSION,
|
|
105
|
+
a0 as SPEC_VERSION_SUPPORTS_SLOT_IDENTITY,
|
|
106
|
+
a1 as STEP_EVENT_TYPES,
|
|
107
|
+
a2 as SerializedDataSchema,
|
|
108
|
+
a3 as StepSchema,
|
|
109
|
+
a4 as StepStatusSchema,
|
|
110
|
+
a5 as StructuredErrorSchema,
|
|
111
|
+
a6 as TERMINAL_RUN_EVENT_TYPES,
|
|
112
|
+
a7 as TERMINAL_STEP_EVENT_TYPES,
|
|
113
|
+
a8 as TERMINAL_STEP_STATUSES,
|
|
114
|
+
a9 as TERMINAL_WORKFLOW_RUN_STATUSES,
|
|
115
|
+
aa as TerminalRunEventTypeSchema,
|
|
116
|
+
ab as TerminalStepStatusSchema,
|
|
117
|
+
ac as TerminalWorkflowRunStatusSchema,
|
|
118
|
+
ad as ValidQueueName,
|
|
119
|
+
ae as WAIT_EVENT_TYPES,
|
|
120
|
+
af as WaitSchema,
|
|
121
|
+
ag as WaitStatusSchema,
|
|
122
|
+
ah as WorkflowInvokePayloadSchema,
|
|
123
|
+
ai as WorkflowRunBaseSchema,
|
|
124
|
+
aj as WorkflowRunSchema,
|
|
125
|
+
ak as WorkflowRunStatusSchema,
|
|
126
|
+
al as applyAttributeChanges,
|
|
127
|
+
am as entityEventClass,
|
|
128
|
+
an as envFlag,
|
|
129
|
+
ao as envNumber,
|
|
130
|
+
ap as eventIdToSlot,
|
|
131
|
+
aq as getEventDataPayloadField,
|
|
132
|
+
ar as getEventDataRefFields,
|
|
133
|
+
as as getMaxEventsPerRun,
|
|
134
|
+
at as getQueueTopicPrefix,
|
|
135
|
+
au as isChildEntityCreationEvent,
|
|
136
|
+
av as isChildEntityCreationEventType,
|
|
137
|
+
aw as isHookEventRequiringExistence,
|
|
138
|
+
ax as isHookLifecycleEventType,
|
|
139
|
+
ay as isLegacySpecVersion,
|
|
140
|
+
az as isNodeHttpEnabled,
|
|
141
|
+
aA as isSlotBody,
|
|
142
|
+
aB as isSlotEventId,
|
|
143
|
+
aC as isStepEventType,
|
|
144
|
+
aD as isTerminalRunEventType,
|
|
145
|
+
aE as isTerminalStepEventType,
|
|
146
|
+
aF as isTerminalStepStatus,
|
|
147
|
+
aG as isTerminalWorkflowRunStatus,
|
|
148
|
+
aH as isWaitEventType,
|
|
149
|
+
aI as parseQueueName,
|
|
150
|
+
aJ as reenqueueActiveRuns,
|
|
151
|
+
aK as requiresNewerWorld,
|
|
152
|
+
aL as resolveQueueNamespace,
|
|
153
|
+
aM as slotToEventId,
|
|
154
|
+
aN as stripEventDataRefs,
|
|
155
|
+
aO as ulidToDate,
|
|
156
|
+
aP as validateAttributeChanges,
|
|
157
|
+
aQ as validateAttributeKey,
|
|
158
|
+
aR as validateAttributeValue,
|
|
159
|
+
aS as validateUlidTimestamp,
|
|
160
|
+
aT as workflowRunIdSchema
|
|
161
|
+
};
|
|
@@ -1137,7 +1137,7 @@ function requireWebsocket() {
|
|
|
1137
1137
|
const DEFAULT_MAX_PAYLOAD = 256 * 1024;
|
|
1138
1138
|
async function loadWebSocketServer() {
|
|
1139
1139
|
try {
|
|
1140
|
-
const ws = await import("./wrapper-
|
|
1140
|
+
const ws = await import("./wrapper-DWeVTope.js");
|
|
1141
1141
|
return ws.WebSocketServer;
|
|
1142
1142
|
} catch {
|
|
1143
1143
|
throw new Error(
|
|
@@ -2,7 +2,7 @@ import { createRequire as __wkfCreateRequire } from "node:module";
|
|
|
2
2
|
if (typeof require === "undefined") {
|
|
3
3
|
globalThis.require = __wkfCreateRequire(import.meta.url);
|
|
4
4
|
}
|
|
5
|
-
import { N as Nt } from "./app-
|
|
5
|
+
import { N as Nt } from "./app-_xgEuKqE.js";
|
|
6
6
|
import "node:stream";
|
|
7
7
|
import "stream";
|
|
8
8
|
import "util";
|
|
@@ -21,16 +21,17 @@ import "node:fs";
|
|
|
21
21
|
import "node:os";
|
|
22
22
|
import "node:child_process";
|
|
23
23
|
import "node:timers/promises";
|
|
24
|
+
import "node:buffer";
|
|
25
|
+
import "node:http";
|
|
26
|
+
import "node:https";
|
|
27
|
+
import "node:zlib";
|
|
24
28
|
import "events";
|
|
25
29
|
import "node:assert";
|
|
26
30
|
import "node:net";
|
|
27
|
-
import "node:http";
|
|
28
31
|
import "node:querystring";
|
|
29
32
|
import "node:events";
|
|
30
33
|
import "node:diagnostics_channel";
|
|
31
34
|
import "node:tls";
|
|
32
|
-
import "node:buffer";
|
|
33
|
-
import "node:zlib";
|
|
34
35
|
import "node:perf_hooks";
|
|
35
36
|
import "node:util/types";
|
|
36
37
|
import "node:sqlite";
|
|
@@ -2,7 +2,7 @@ import { createRequire as __wkfCreateRequire } from "node:module";
|
|
|
2
2
|
if (typeof require === "undefined") {
|
|
3
3
|
globalThis.require = __wkfCreateRequire(import.meta.url);
|
|
4
4
|
}
|
|
5
|
-
import {
|
|
5
|
+
import { bd as requireTokenError, bc as requireTokenUtil, bb as getDefaultExportFromCjs } from "./app-_xgEuKqE.js";
|
|
6
6
|
function _mergeNamespaces(n, m) {
|
|
7
7
|
for (var i = 0; i < m.length; i++) {
|
|
8
8
|
const e = m[i];
|
|
@@ -2,7 +2,7 @@ import { createRequire as __wkfCreateRequire } from "node:module";
|
|
|
2
2
|
if (typeof require === "undefined") {
|
|
3
3
|
globalThis.require = __wkfCreateRequire(import.meta.url);
|
|
4
4
|
}
|
|
5
|
-
import {
|
|
5
|
+
import { bb as getDefaultExportFromCjs, bc as requireTokenUtil } from "./app-_xgEuKqE.js";
|
|
6
6
|
function _mergeNamespaces(n, m) {
|
|
7
7
|
for (var i = 0; i < m.length; i++) {
|
|
8
8
|
const e = m[i];
|
|
@@ -2,7 +2,7 @@ import { createRequire as __wkfCreateRequire } from "node:module";
|
|
|
2
2
|
if (typeof require === "undefined") {
|
|
3
3
|
globalThis.require = __wkfCreateRequire(import.meta.url);
|
|
4
4
|
}
|
|
5
|
-
import {
|
|
5
|
+
import { be as getAugmentedNamespace, bb as getDefaultExportFromCjs } from "./app-_xgEuKqE.js";
|
|
6
6
|
import require$$0$2 from "stream";
|
|
7
7
|
import require$$0$3 from "events";
|
|
8
8
|
import require$$2$1 from "http";
|
|
@@ -2,9 +2,9 @@ import { createRequire as __wkfCreateRequire } from "node:module";
|
|
|
2
2
|
if (typeof require === "undefined") {
|
|
3
3
|
globalThis.require = __wkfCreateRequire(import.meta.url);
|
|
4
4
|
}
|
|
5
|
-
import { W as WebSocket } from "./websocket-server-
|
|
6
|
-
import { p, r, s, w, a, e, b } from "./websocket-server-
|
|
7
|
-
import "./app-
|
|
5
|
+
import { W as WebSocket } from "./websocket-server-ByjlHAhQ.js";
|
|
6
|
+
import { p, r, s, w, a, e, b } from "./websocket-server-ByjlHAhQ.js";
|
|
7
|
+
import "./app-_xgEuKqE.js";
|
|
8
8
|
import "node:stream";
|
|
9
9
|
import "stream";
|
|
10
10
|
import "util";
|
|
@@ -23,16 +23,17 @@ import "node:fs";
|
|
|
23
23
|
import "node:os";
|
|
24
24
|
import "node:child_process";
|
|
25
25
|
import "node:timers/promises";
|
|
26
|
+
import "node:buffer";
|
|
27
|
+
import "node:http";
|
|
28
|
+
import "node:https";
|
|
29
|
+
import "node:zlib";
|
|
26
30
|
import "events";
|
|
27
31
|
import "node:assert";
|
|
28
32
|
import "node:net";
|
|
29
|
-
import "node:http";
|
|
30
33
|
import "node:querystring";
|
|
31
34
|
import "node:events";
|
|
32
35
|
import "node:diagnostics_channel";
|
|
33
36
|
import "node:tls";
|
|
34
|
-
import "node:buffer";
|
|
35
|
-
import "node:zlib";
|
|
36
37
|
import "node:perf_hooks";
|
|
37
38
|
import "node:util/types";
|
|
38
39
|
import "node:sqlite";
|
|
@@ -5,8 +5,8 @@ import { createRequire as __wkfCreateRequire } from "node:module";
|
|
|
5
5
|
if (typeof require === "undefined") {
|
|
6
6
|
globalThis.require = __wkfCreateRequire(import.meta.url);
|
|
7
7
|
}
|
|
8
|
-
import {
|
|
9
|
-
import { W as WebSocket } from "./websocket-server-
|
|
8
|
+
import { a_ as isWsEventsTransportEnabled, a$ as getHttpUrl, b0 as getHttpConfig, b1 as headersToRecord, b2 as getRequestTimeoutMs, b3 as injectTraceContextIntoHeaders, b4 as withHttpClientSpan, b5 as ErrorType, b6 as WorkflowWsReconnectAttempt, b7 as NetworkProtocolName, b8 as WorkflowEventsTransport, b9 as distExports, ba as decodeFrames } from "./app-_xgEuKqE.js";
|
|
9
|
+
import { W as WebSocket } from "./websocket-server-ByjlHAhQ.js";
|
|
10
10
|
import "node:stream";
|
|
11
11
|
import "stream";
|
|
12
12
|
import "util";
|
|
@@ -25,16 +25,17 @@ import "node:fs";
|
|
|
25
25
|
import "node:os";
|
|
26
26
|
import "node:child_process";
|
|
27
27
|
import "node:timers/promises";
|
|
28
|
+
import "node:buffer";
|
|
29
|
+
import "node:http";
|
|
30
|
+
import "node:https";
|
|
31
|
+
import "node:zlib";
|
|
28
32
|
import "events";
|
|
29
33
|
import "node:assert";
|
|
30
34
|
import "node:net";
|
|
31
|
-
import "node:http";
|
|
32
35
|
import "node:querystring";
|
|
33
36
|
import "node:events";
|
|
34
37
|
import "node:diagnostics_channel";
|
|
35
38
|
import "node:tls";
|
|
36
|
-
import "node:buffer";
|
|
37
|
-
import "node:zlib";
|
|
38
39
|
import "node:perf_hooks";
|
|
39
40
|
import "node:util/types";
|
|
40
41
|
import "node:sqlite";
|
|
@@ -234,7 +235,7 @@ class WsEventsTransport {
|
|
|
234
235
|
if (conn && conn.ws.readyState === WebSocket.OPEN) {
|
|
235
236
|
return Promise.resolve(conn);
|
|
236
237
|
}
|
|
237
|
-
this.connecting ?? (this.connecting = this.
|
|
238
|
+
this.connecting ?? (this.connecting = this.connectWithSpan().finally(() => {
|
|
238
239
|
this.connecting = null;
|
|
239
240
|
}));
|
|
240
241
|
return this.connecting;
|
|
@@ -272,6 +273,44 @@ class WsEventsTransport {
|
|
|
272
273
|
if (reason === "auth_expiry")
|
|
273
274
|
this.needsFreshToken = true;
|
|
274
275
|
}
|
|
276
|
+
/**
|
|
277
|
+
* The handshake, wrapped in its own CLIENT span.
|
|
278
|
+
*
|
|
279
|
+
* The upgrade is the one genuinely-HTTP request this transport makes, and
|
|
280
|
+
* until it had a span it was the invisible half of every WS write's latency:
|
|
281
|
+
* a write that waits on a handshake shows the wait inside its own span with
|
|
282
|
+
* nothing to attribute it to, and an eager reconnect between two writes shows
|
|
283
|
+
* up nowhere at all. Named for the operation rather than `http GET` so it
|
|
284
|
+
* doesn't land in the same bucket as the event writes it enables.
|
|
285
|
+
*
|
|
286
|
+
* It also puts `resolveUpgradeHeaders`' trace-context injection inside a
|
|
287
|
+
* client span, matching `makeRequest`'s contract (CLAUDE.md): the server's
|
|
288
|
+
* per-event spans parent to *this* span rather than directly to whichever
|
|
289
|
+
* invocation happened to open the socket, so the handshake and everything the
|
|
290
|
+
* server does over the connection hang together.
|
|
291
|
+
*/
|
|
292
|
+
connectWithSpan() {
|
|
293
|
+
return withHttpClientSpan({
|
|
294
|
+
method: "GET",
|
|
295
|
+
url: this.wsUrl,
|
|
296
|
+
spanName: "workflow.events.ws.connect",
|
|
297
|
+
attributes: {
|
|
298
|
+
...WorkflowEventsTransport("ws"),
|
|
299
|
+
...NetworkProtocolName("websocket"),
|
|
300
|
+
...WorkflowWsReconnectAttempt(this.reconnectAttempts)
|
|
301
|
+
}
|
|
302
|
+
}, async (span) => {
|
|
303
|
+
var _a;
|
|
304
|
+
try {
|
|
305
|
+
return await this.connect();
|
|
306
|
+
} catch (err) {
|
|
307
|
+
span == null ? void 0 : span.setAttributes({ ...ErrorType("TRANSPORT") });
|
|
308
|
+
if (err instanceof Error)
|
|
309
|
+
(_a = span == null ? void 0 : span.recordException) == null ? void 0 : _a.call(span, err);
|
|
310
|
+
throw err;
|
|
311
|
+
}
|
|
312
|
+
});
|
|
313
|
+
}
|
|
275
314
|
connect() {
|
|
276
315
|
return new Promise((resolve, reject) => {
|
|
277
316
|
void (async () => {
|
package/build/server/assets/{zstd-browser-decoder-BCVvr1WT.js → zstd-browser-decoder-D8JD_nwS.js}
RENAMED
|
@@ -2,7 +2,7 @@ import { createRequire as __wkfCreateRequire } from "node:module";
|
|
|
2
2
|
if (typeof require === "undefined") {
|
|
3
3
|
globalThis.require = __wkfCreateRequire(import.meta.url);
|
|
4
4
|
}
|
|
5
|
-
import {
|
|
5
|
+
import { aZ as registerZstdDecoder } from "./app-_xgEuKqE.js";
|
|
6
6
|
import "node:stream";
|
|
7
7
|
import "stream";
|
|
8
8
|
import "util";
|
|
@@ -21,16 +21,17 @@ import "node:fs";
|
|
|
21
21
|
import "node:os";
|
|
22
22
|
import "node:child_process";
|
|
23
23
|
import "node:timers/promises";
|
|
24
|
+
import "node:buffer";
|
|
25
|
+
import "node:http";
|
|
26
|
+
import "node:https";
|
|
27
|
+
import "node:zlib";
|
|
24
28
|
import "events";
|
|
25
29
|
import "node:assert";
|
|
26
30
|
import "node:net";
|
|
27
|
-
import "node:http";
|
|
28
31
|
import "node:querystring";
|
|
29
32
|
import "node:events";
|
|
30
33
|
import "node:diagnostics_channel";
|
|
31
34
|
import "node:tls";
|
|
32
|
-
import "node:buffer";
|
|
33
|
-
import "node:zlib";
|
|
34
35
|
import "node:perf_hooks";
|
|
35
36
|
import "node:util/types";
|
|
36
37
|
import "node:sqlite";
|
package/build/server/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { createRequire as __wkfCreateRequire } from "node:module";
|
|
|
2
2
|
if (typeof require === "undefined") {
|
|
3
3
|
globalThis.require = __wkfCreateRequire(import.meta.url);
|
|
4
4
|
}
|
|
5
|
-
import {
|
|
5
|
+
import { bf, bg } from "./assets/app-_xgEuKqE.js";
|
|
6
6
|
import "express";
|
|
7
7
|
import "node:stream";
|
|
8
8
|
import "stream";
|
|
@@ -22,16 +22,17 @@ import "node:fs";
|
|
|
22
22
|
import "node:os";
|
|
23
23
|
import "node:child_process";
|
|
24
24
|
import "node:timers/promises";
|
|
25
|
+
import "node:buffer";
|
|
26
|
+
import "node:http";
|
|
27
|
+
import "node:https";
|
|
28
|
+
import "node:zlib";
|
|
25
29
|
import "events";
|
|
26
30
|
import "node:assert";
|
|
27
31
|
import "node:net";
|
|
28
|
-
import "node:http";
|
|
29
32
|
import "node:querystring";
|
|
30
33
|
import "node:events";
|
|
31
34
|
import "node:diagnostics_channel";
|
|
32
35
|
import "node:tls";
|
|
33
|
-
import "node:buffer";
|
|
34
|
-
import "node:zlib";
|
|
35
36
|
import "node:perf_hooks";
|
|
36
37
|
import "node:util/types";
|
|
37
38
|
import "node:sqlite";
|
|
@@ -47,6 +48,6 @@ import "os";
|
|
|
47
48
|
import "net";
|
|
48
49
|
import "node:assert/strict";
|
|
49
50
|
export {
|
|
50
|
-
|
|
51
|
-
|
|
51
|
+
bf as app,
|
|
52
|
+
bg as createFetchHandler
|
|
52
53
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workflow/web",
|
|
3
3
|
"description": "Workflow Observability UI",
|
|
4
|
-
"version": "5.0.0-beta.
|
|
4
|
+
"version": "5.0.0-beta.43",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
7
7
|
"files": [
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"express": "^5.2.1",
|
|
43
43
|
"swr": "^2.3.6",
|
|
44
|
-
"@workflow/world-local": "5.0.0-beta.
|
|
44
|
+
"@workflow/world-local": "5.0.0-beta.37"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@biomejs/biome": "^2.4.4",
|
|
@@ -86,12 +86,12 @@
|
|
|
86
86
|
"typescript": "^6.0.3",
|
|
87
87
|
"vite": "^6",
|
|
88
88
|
"vitest": "^3.2.7",
|
|
89
|
-
"@workflow/core": "5.0.0-beta.
|
|
90
|
-
"@workflow/errors": "5.0.0-beta.
|
|
89
|
+
"@workflow/core": "5.0.0-beta.43",
|
|
90
|
+
"@workflow/errors": "5.0.0-beta.17",
|
|
91
91
|
"@workflow/utils": "5.0.0-beta.8",
|
|
92
|
-
"@workflow/web-shared": "5.0.0-beta.
|
|
93
|
-
"@workflow/world": "5.0.0-beta.
|
|
94
|
-
"@workflow/world-vercel": "5.0.0-beta.
|
|
92
|
+
"@workflow/web-shared": "5.0.0-beta.43",
|
|
93
|
+
"@workflow/world": "5.0.0-beta.28",
|
|
94
|
+
"@workflow/world-vercel": "5.0.0-beta.39"
|
|
95
95
|
},
|
|
96
96
|
"scripts": {
|
|
97
97
|
"dev": "react-router dev",
|