@workflow/web 5.0.0-beta.43 → 5.0.0-beta.46
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/{arrow-up-right-D39pnGsD.js → arrow-up-right-UOc2WcaC.js} +1 -1
- package/build/client/assets/{highlighted-body-B3W2YXNL-Dc1dLaUr.js → highlighted-body-B3W2YXNL-D78gcP7S.js} +1 -1
- package/build/client/assets/{home-C6CuMqQu.js → home-DYB1uz9w.js} +3 -3
- package/build/client/assets/{loader-circle-BOxaTUjK.js → loader-circle-oscnpy3L.js} +1 -1
- package/build/client/assets/{manifest-157e28f1.js → manifest-a701502a.js} +1 -1
- package/build/client/assets/{mermaid-3ZIDBTTL-gEw-Ch1C.js → mermaid-3ZIDBTTL-BKGEyEYb.js} +463 -334
- package/build/client/assets/{root-BfhMCbkz.js → root-Zvnb602n.js} +3 -3
- package/build/client/assets/{run-detail-BG_1K2Hq.js → run-detail-CedyZW9h.js} +54 -31
- package/build/client/assets/{workflow-graph-viewer-CxrWityD.js → workflow-graph-viewer-Du0ztkb8.js} +1 -1
- package/build/client/assets/{zstd-browser-decoder-CAEVa0bm.js → zstd-browser-decoder-DafWVuEG.js} +1 -1
- package/build/server/assets/{app-_xgEuKqE.js → app-BpmEMaiu.js} +1162 -852
- package/build/server/assets/{highlighted-body-B3W2YXNL-B1Smd86a.js → highlighted-body-B3W2YXNL-C6ES2Pzm.js} +1 -1
- package/build/server/assets/{index-CSsrecUx.js → index-BtQfiVUN.js} +75 -73
- package/build/server/assets/{index-Ck5CB_wQ.js → index-QOlZC9D-.js} +1 -1
- package/build/server/assets/{mermaid-3ZIDBTTL-CwYR558N.js → mermaid-3ZIDBTTL-X6IEJ8gj.js} +1 -1
- package/build/server/assets/{token-COK7oHMh.js → token-CrxXUTBD.js} +1 -1
- package/build/server/assets/{token-util-BhmVdeCX.js → token-util-DuToe55u.js} +1 -1
- package/build/server/assets/{websocket-server-ByjlHAhQ.js → websocket-server-CTnzV_B7.js} +1 -1
- package/build/server/assets/{wrapper-DWeVTope.js → wrapper-Bjff6YRz.js} +3 -3
- package/build/server/assets/{ws-transport-BCfcEhAO.js → ws-transport-ByYax88V.js} +40 -22
- package/build/server/assets/{zstd-browser-decoder-D8JD_nwS.js → zstd-browser-decoder-Bfk1d5vU.js} +1 -1
- package/build/server/index.js +3 -3
- package/package.json +8 -8
|
@@ -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 { aW as reactExports, aX as R, aY as Ks, aZ as jsxRuntimeExports, a_ as Qe } from "./app-BpmEMaiu.js";
|
|
6
6
|
import "node:stream";
|
|
7
7
|
import "stream";
|
|
8
8
|
import "util";
|
|
@@ -2,8 +2,8 @@ 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 { H as HookSchema } from "./app-
|
|
6
|
-
import { A, a, b, c, d, e, f, g, h, i, j, k, l,
|
|
5
|
+
import { H as HookSchema } from "./app-BpmEMaiu.js";
|
|
6
|
+
import { A, a, b, c, d, e, f, g, h, i, j, k, l, m, n, B, o, p, q, r, C, D, s, E, 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, aU, aV } from "./app-BpmEMaiu.js";
|
|
7
7
|
import "node:stream";
|
|
8
8
|
import "stream";
|
|
9
9
|
import "util";
|
|
@@ -61,18 +61,18 @@ export {
|
|
|
61
61
|
i as AnalyticsWaitSchema,
|
|
62
62
|
j as AttributeChangeSchema,
|
|
63
63
|
k as AttributeChangesSchema,
|
|
64
|
-
l as
|
|
64
|
+
l as AttributeKeySchema,
|
|
65
|
+
m as AttributeValidationError,
|
|
66
|
+
n as AttributeValueSchema,
|
|
65
67
|
B as BULK_CANCEL_MAX_RUN_IDS,
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
o as BaseEventSchema,
|
|
69
|
+
p as BulkCancelWorkflowRunResultSchema,
|
|
70
|
+
q as BulkCancelWorkflowRunsRequestSchema,
|
|
71
|
+
r as BulkCancelWorkflowRunsResultSchema,
|
|
70
72
|
C as CHILD_ENTITY_CREATION_EVENT_TYPES,
|
|
71
73
|
D as DEFAULT_TIMESTAMP_THRESHOLD_FUTURE_MS,
|
|
72
|
-
|
|
73
|
-
E as
|
|
74
|
-
r as EVENT_DATA_REF_FIELDS,
|
|
75
|
-
s as EVENT_ID_BODY_LENGTH,
|
|
74
|
+
s as DEFAULT_TIMESTAMP_THRESHOLD_PAST_MS,
|
|
75
|
+
E as EVENT_ID_BODY_LENGTH,
|
|
76
76
|
t as EVENT_ID_PREFIX,
|
|
77
77
|
u as EventSchema,
|
|
78
78
|
v as EventTypeSchema,
|
|
@@ -96,66 +96,68 @@ export {
|
|
|
96
96
|
T as RESERVED_ATTRIBUTE_KEY_PREFIX,
|
|
97
97
|
U as ROOT_RUN_ID_ATTRIBUTE,
|
|
98
98
|
V as RunInputSchema,
|
|
99
|
-
W as
|
|
100
|
-
X as
|
|
101
|
-
Y as
|
|
102
|
-
Z as
|
|
103
|
-
_ as
|
|
104
|
-
$ as
|
|
105
|
-
a0 as
|
|
106
|
-
a1 as
|
|
107
|
-
a2 as
|
|
108
|
-
a3 as
|
|
109
|
-
a4 as
|
|
110
|
-
a5 as
|
|
111
|
-
a6 as
|
|
112
|
-
a7 as
|
|
113
|
-
a8 as
|
|
114
|
-
a9 as
|
|
115
|
-
aa as
|
|
116
|
-
ab as
|
|
117
|
-
ac as
|
|
118
|
-
ad as
|
|
119
|
-
ae as
|
|
120
|
-
af as
|
|
121
|
-
ag as
|
|
122
|
-
ah as
|
|
123
|
-
ai as
|
|
124
|
-
aj as
|
|
125
|
-
ak as
|
|
126
|
-
al as
|
|
127
|
-
am as
|
|
128
|
-
an as
|
|
129
|
-
ao as
|
|
130
|
-
ap as
|
|
131
|
-
aq as
|
|
132
|
-
ar as
|
|
133
|
-
as as
|
|
134
|
-
at as
|
|
135
|
-
au as
|
|
136
|
-
av as
|
|
137
|
-
aw as
|
|
138
|
-
ax as
|
|
139
|
-
ay as
|
|
140
|
-
az as
|
|
141
|
-
aA as
|
|
142
|
-
aB as
|
|
143
|
-
aC as
|
|
144
|
-
aD as
|
|
145
|
-
aE as
|
|
146
|
-
aF as
|
|
147
|
-
aG as
|
|
148
|
-
aH as
|
|
149
|
-
aI as
|
|
150
|
-
aJ as
|
|
151
|
-
aK as
|
|
152
|
-
aL as
|
|
153
|
-
aM as
|
|
154
|
-
aN as
|
|
155
|
-
aO as
|
|
156
|
-
aP as
|
|
157
|
-
aQ as
|
|
158
|
-
aR as
|
|
159
|
-
aS as
|
|
160
|
-
aT as
|
|
99
|
+
W as SEALED_LOG_ENV_VAR,
|
|
100
|
+
X as SPEC_VERSION_CURRENT,
|
|
101
|
+
Y as SPEC_VERSION_LEGACY,
|
|
102
|
+
Z as SPEC_VERSION_MAX_SUPPORTED,
|
|
103
|
+
_ as SPEC_VERSION_SUPPORTS_ATTRIBUTES,
|
|
104
|
+
$ as SPEC_VERSION_SUPPORTS_CBOR_QUEUE_TRANSPORT,
|
|
105
|
+
a0 as SPEC_VERSION_SUPPORTS_COMPRESSION,
|
|
106
|
+
a1 as SPEC_VERSION_SUPPORTS_SEALED_LOG,
|
|
107
|
+
a2 as SPEC_VERSION_SUPPORTS_SLOT_IDENTITY,
|
|
108
|
+
a3 as STEP_EVENT_TYPES,
|
|
109
|
+
a4 as SerializedDataSchema,
|
|
110
|
+
a5 as StepSchema,
|
|
111
|
+
a6 as StepStatusSchema,
|
|
112
|
+
a7 as StructuredErrorSchema,
|
|
113
|
+
a8 as TERMINAL_RUN_EVENT_TYPES,
|
|
114
|
+
a9 as TERMINAL_STEP_EVENT_TYPES,
|
|
115
|
+
aa as TERMINAL_STEP_STATUSES,
|
|
116
|
+
ab as TERMINAL_WORKFLOW_RUN_STATUSES,
|
|
117
|
+
ac as TerminalRunEventTypeSchema,
|
|
118
|
+
ad as TerminalStepStatusSchema,
|
|
119
|
+
ae as TerminalWorkflowRunStatusSchema,
|
|
120
|
+
af as ValidQueueName,
|
|
121
|
+
ag as WAIT_EVENT_TYPES,
|
|
122
|
+
ah as WaitSchema,
|
|
123
|
+
ai as WaitStatusSchema,
|
|
124
|
+
aj as WorkflowInvokePayloadSchema,
|
|
125
|
+
ak as WorkflowRunBaseSchema,
|
|
126
|
+
al as WorkflowRunSchema,
|
|
127
|
+
am as WorkflowRunStatusSchema,
|
|
128
|
+
an as applyAttributeChanges,
|
|
129
|
+
ao as entityEventClass,
|
|
130
|
+
ap as envFlag,
|
|
131
|
+
aq as envNumber,
|
|
132
|
+
ar as eventIdToSlot,
|
|
133
|
+
as as getEventDataPayloadField,
|
|
134
|
+
at as getEventDataRefFields,
|
|
135
|
+
au as getMaxEventsPerRun,
|
|
136
|
+
av as getQueueTopicPrefix,
|
|
137
|
+
aw as isChildEntityCreationEvent,
|
|
138
|
+
ax as isChildEntityCreationEventType,
|
|
139
|
+
ay as isHookEventRequiringExistence,
|
|
140
|
+
az as isHookLifecycleEventType,
|
|
141
|
+
aA as isLegacySpecVersion,
|
|
142
|
+
aB as isNodeHttpEnabled,
|
|
143
|
+
aC as isSealedNoopEvent,
|
|
144
|
+
aD as isSlotBody,
|
|
145
|
+
aE as isSlotEventId,
|
|
146
|
+
aF as isStepEventType,
|
|
147
|
+
aG as isTerminalRunEventType,
|
|
148
|
+
aH as isTerminalStepEventType,
|
|
149
|
+
aI as isTerminalStepStatus,
|
|
150
|
+
aJ as isTerminalWorkflowRunStatus,
|
|
151
|
+
aK as isWaitEventType,
|
|
152
|
+
aL as mintedSpecVersion,
|
|
153
|
+
aM as parseQueueName,
|
|
154
|
+
aN as reenqueueActiveRuns,
|
|
155
|
+
aO as requiresNewerWorld,
|
|
156
|
+
aP as resolveQueueNamespace,
|
|
157
|
+
aQ as slotToEventId,
|
|
158
|
+
aR as stripEventDataRefs,
|
|
159
|
+
aS as ulidToDate,
|
|
160
|
+
aT as validateAttributeChanges,
|
|
161
|
+
aU as validateUlidTimestamp,
|
|
162
|
+
aV as workflowRunIdSchema
|
|
161
163
|
};
|
|
@@ -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-Bjff6YRz.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-BpmEMaiu.js";
|
|
6
6
|
import "node:stream";
|
|
7
7
|
import "stream";
|
|
8
8
|
import "util";
|
|
@@ -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 { bh as requireTokenError, bg as requireTokenUtil, bf as getDefaultExportFromCjs } from "./app-BpmEMaiu.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 { bf as getDefaultExportFromCjs, bg as requireTokenUtil } from "./app-BpmEMaiu.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 { bi as getAugmentedNamespace, bf as getDefaultExportFromCjs } from "./app-BpmEMaiu.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-CTnzV_B7.js";
|
|
6
|
+
import { p, r, s, w, a, e, b } from "./websocket-server-CTnzV_B7.js";
|
|
7
|
+
import "./app-BpmEMaiu.js";
|
|
8
8
|
import "node:stream";
|
|
9
9
|
import "stream";
|
|
10
10
|
import "util";
|
|
@@ -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 { b0 as isWsEventsTransportEnabled, b1 as getHttpUrl, b2 as globalSingleton, b3 as version, b4 as getHttpConfig, b5 as headersToRecord, b6 as getRequestTimeoutMs, b7 as injectTraceContextIntoHeaders, b8 as withHttpClientSpan, b9 as ErrorType, ba as WorkflowWsReconnectAttempt, bb as NetworkProtocolName, bc as WorkflowEventsTransport, bd as distExports, be as decodeFrames } from "./app-BpmEMaiu.js";
|
|
9
|
+
import { W as WebSocket } from "./websocket-server-CTnzV_B7.js";
|
|
10
10
|
import "node:stream";
|
|
11
11
|
import "stream";
|
|
12
12
|
import "util";
|
|
@@ -107,15 +107,15 @@ class WsEventsTransport {
|
|
|
107
107
|
__publicField(this, "reconnectTimer", null);
|
|
108
108
|
/** Number of `open()` calls not yet matched by a `release()`. The socket goes
|
|
109
109
|
* away at zero. A refcount rather than a flag because concurrent invocations
|
|
110
|
-
* for one run share this instance
|
|
110
|
+
* for one run share this instance; see `open`. */
|
|
111
111
|
__publicField(this, "openCount", 0);
|
|
112
112
|
/** Set by `close()`. Suppresses reconnects so an intentional teardown can't
|
|
113
113
|
* be undone by the close handler it triggers. */
|
|
114
114
|
__publicField(this, "closed", false);
|
|
115
115
|
/** Reason from the most recent `drain`, consumed by the close that follows. */
|
|
116
116
|
__publicField(this, "lastDrainReason", null);
|
|
117
|
-
/** A drain said the *token* expired, not that the socket aged out
|
|
118
|
-
* connect must not reuse the same bearer. */
|
|
117
|
+
/** A drain said the *token* expired, not that the socket aged out, so the
|
|
118
|
+
* next connect must not reuse the same bearer. */
|
|
119
119
|
__publicField(this, "needsFreshToken", false);
|
|
120
120
|
/** Authorization the current socket was opened with, so a forced refresh can
|
|
121
121
|
* tell whether it actually produced a new one. */
|
|
@@ -160,7 +160,7 @@ class WsEventsTransport {
|
|
|
160
160
|
}
|
|
161
161
|
/**
|
|
162
162
|
* Claim the channel and start connecting. Called once per invocation that
|
|
163
|
-
* intends to write, at the point the run id is known
|
|
163
|
+
* intends to write, at the point the run id is known. Connecting lazily on
|
|
164
164
|
* the first write instead bills the handshake (plus the OIDC mint riding it)
|
|
165
165
|
* to whichever event happens to be written first; when that's a `step_started`
|
|
166
166
|
* issued as the step body already runs, its server-recorded timestamp lands
|
|
@@ -211,7 +211,7 @@ class WsEventsTransport {
|
|
|
211
211
|
/**
|
|
212
212
|
* Drop the socket and evict this transport from the cache. Terminal, not a
|
|
213
213
|
* pause: the instance stays closed and a later `openWsChannel` for the same
|
|
214
|
-
* run constructs a fresh one. Idempotent. Safe with work in flight
|
|
214
|
+
* run constructs a fresh one. Idempotent. Safe with work in flight: those
|
|
215
215
|
* requests fail through the socket's own `close` handler, same as any other
|
|
216
216
|
* close.
|
|
217
217
|
*/
|
|
@@ -224,8 +224,9 @@ class WsEventsTransport {
|
|
|
224
224
|
clearTimeout(this.reconnectTimer);
|
|
225
225
|
this.reconnectTimer = null;
|
|
226
226
|
}
|
|
227
|
-
if (transports.get(this.wsUrl) === this)
|
|
228
|
-
transports.delete(this.wsUrl);
|
|
227
|
+
if (wsState.transports.get(this.wsUrl) === this) {
|
|
228
|
+
wsState.transports.delete(this.wsUrl);
|
|
229
|
+
}
|
|
229
230
|
const conn = this.connection;
|
|
230
231
|
this.connection = null;
|
|
231
232
|
conn == null ? void 0 : conn.ws.close(1e3, reason);
|
|
@@ -241,7 +242,7 @@ class WsEventsTransport {
|
|
|
241
242
|
return this.connecting;
|
|
242
243
|
}
|
|
243
244
|
/**
|
|
244
|
-
* Resolve the headers for one upgrade request
|
|
245
|
+
* Resolve the headers for one upgrade request, once per socket, since the
|
|
245
246
|
* bearer only rides the upgrade. Re-resolving per socket is what lets a
|
|
246
247
|
* reconnect pick up a fresh token rather than replaying an expired one.
|
|
247
248
|
*
|
|
@@ -437,13 +438,13 @@ class WsEventsTransport {
|
|
|
437
438
|
conn.pending.clear();
|
|
438
439
|
}
|
|
439
440
|
/**
|
|
440
|
-
* Fail every waiter on `conn` and drop the socket
|
|
441
|
+
* Fail every waiter on `conn` and drop the socket, for a reply that can't be
|
|
441
442
|
* correlated to a caller, and for a request that outlived its deadline. The
|
|
442
443
|
* whole connection goes because each case says the stream itself is no longer
|
|
443
444
|
* understood; logging and moving on would leave the originating request in
|
|
444
445
|
* `pending` with nothing able to answer it until the server drains (~680s),
|
|
445
446
|
* well past the waiting invocation's `maxDuration`. The socket's own `close`
|
|
446
|
-
* handler does the teardown and schedules the reconnect
|
|
447
|
+
* handler does the teardown and schedules the reconnect; failing the waiters
|
|
447
448
|
* here is what makes callers see this diagnosis, not a bare close code.
|
|
448
449
|
*/
|
|
449
450
|
failConnection(conn, message) {
|
|
@@ -453,12 +454,31 @@ class WsEventsTransport {
|
|
|
453
454
|
conn.ws.close();
|
|
454
455
|
}
|
|
455
456
|
}
|
|
456
|
-
const
|
|
457
|
+
const wsState = globalSingleton(
|
|
458
|
+
// Keyed by package version, unlike the state that holds only plain data.
|
|
459
|
+
// Two different published versions of this package can share one process (a
|
|
460
|
+
// transitive dependency pinning an older `@workflow/core`, which depends on
|
|
461
|
+
// this package by exact version), and this Map holds `WsEventsTransport`
|
|
462
|
+
// instances. An unversioned key would hand one version's write path an object
|
|
463
|
+
// built by the other version's class, and `events-v4.ts` would then frame and
|
|
464
|
+
// parse against a protocol the other copy may not share. There is no version
|
|
465
|
+
// negotiation on this socket to catch that. `shapeVersion` cannot express it:
|
|
466
|
+
// the container shape is stable, the hazard is in the contents. Two versions
|
|
467
|
+
// therefore keep separate registries, which costs a second socket and is what
|
|
468
|
+
// happened before this package was bundled anyway.
|
|
469
|
+
`@workflow/world-vercel//wsEventsTransports@${version}`,
|
|
470
|
+
1,
|
|
471
|
+
() => ({
|
|
472
|
+
transports: /* @__PURE__ */ new Map(),
|
|
473
|
+
loggedWsProxyFallback: false,
|
|
474
|
+
loggedWsInUse: false
|
|
475
|
+
})
|
|
476
|
+
);
|
|
457
477
|
function getWsEventsTransport(wsUrl, getHeaders) {
|
|
458
|
-
let transport = transports.get(wsUrl);
|
|
478
|
+
let transport = wsState.transports.get(wsUrl);
|
|
459
479
|
if (!transport) {
|
|
460
480
|
transport = new WsEventsTransport(wsUrl, getHeaders);
|
|
461
|
-
transports.set(wsUrl, transport);
|
|
481
|
+
wsState.transports.set(wsUrl, transport);
|
|
462
482
|
}
|
|
463
483
|
return transport;
|
|
464
484
|
}
|
|
@@ -474,8 +494,8 @@ function openWsChannel(runId, config) {
|
|
|
474
494
|
const resolved = resolveChannelUrl(runId, config);
|
|
475
495
|
if (!resolved)
|
|
476
496
|
return void 0;
|
|
477
|
-
if (!loggedWsInUse) {
|
|
478
|
-
loggedWsInUse = true;
|
|
497
|
+
if (!wsState.loggedWsInUse) {
|
|
498
|
+
wsState.loggedWsInUse = true;
|
|
479
499
|
console.log(`world-vercel: using ws events transport (${resolved}).`);
|
|
480
500
|
}
|
|
481
501
|
const transport = getWsEventsTransport(resolved, async ({ forceRefresh }) => {
|
|
@@ -502,13 +522,11 @@ async function refreshOidcTokenBestEffort() {
|
|
|
502
522
|
} catch {
|
|
503
523
|
}
|
|
504
524
|
}
|
|
505
|
-
let loggedWsProxyFallback = false;
|
|
506
|
-
let loggedWsInUse = false;
|
|
507
525
|
function resolveChannelUrl(runId, config) {
|
|
508
526
|
const { baseUrl, usingProxy } = getHttpUrl(config);
|
|
509
527
|
if (usingProxy) {
|
|
510
|
-
if (!loggedWsProxyFallback) {
|
|
511
|
-
loggedWsProxyFallback = true;
|
|
528
|
+
if (!wsState.loggedWsProxyFallback) {
|
|
529
|
+
wsState.loggedWsProxyFallback = true;
|
|
512
530
|
console.warn(`world-vercel: ws events transport requested but a World with projectConfig (api-workflow proxy, resolved baseUrl: ${baseUrl}) is active — falling back.`);
|
|
513
531
|
}
|
|
514
532
|
return null;
|
|
@@ -519,7 +537,7 @@ function resolveWsTransport(runId, config) {
|
|
|
519
537
|
const wsUrl = resolveChannelUrl(runId, config);
|
|
520
538
|
if (!wsUrl)
|
|
521
539
|
return null;
|
|
522
|
-
const transport = transports.get(wsUrl);
|
|
540
|
+
const transport = wsState.transports.get(wsUrl);
|
|
523
541
|
return transport ? { transport, wsUrl } : null;
|
|
524
542
|
}
|
|
525
543
|
export {
|
package/build/server/assets/{zstd-browser-decoder-D8JD_nwS.js → zstd-browser-decoder-Bfk1d5vU.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 { a$ as registerZstdDecoder } from "./app-BpmEMaiu.js";
|
|
6
6
|
import "node:stream";
|
|
7
7
|
import "stream";
|
|
8
8
|
import "util";
|
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 { bj, bk } from "./assets/app-BpmEMaiu.js";
|
|
6
6
|
import "express";
|
|
7
7
|
import "node:stream";
|
|
8
8
|
import "stream";
|
|
@@ -48,6 +48,6 @@ import "os";
|
|
|
48
48
|
import "net";
|
|
49
49
|
import "node:assert/strict";
|
|
50
50
|
export {
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
bj as app,
|
|
52
|
+
bk as createFetchHandler
|
|
53
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.46",
|
|
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.40"
|
|
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.
|
|
91
|
-
"@workflow/
|
|
92
|
-
"@workflow/
|
|
93
|
-
"@workflow/world": "5.0.0-beta.
|
|
94
|
-
"@workflow/world-vercel": "5.0.0-beta.
|
|
89
|
+
"@workflow/core": "5.0.0-beta.46",
|
|
90
|
+
"@workflow/errors": "5.0.0-beta.18",
|
|
91
|
+
"@workflow/web-shared": "5.0.0-beta.46",
|
|
92
|
+
"@workflow/utils": "5.0.0-beta.9",
|
|
93
|
+
"@workflow/world": "5.0.0-beta.31",
|
|
94
|
+
"@workflow/world-vercel": "5.0.0-beta.42"
|
|
95
95
|
},
|
|
96
96
|
"scripts": {
|
|
97
97
|
"dev": "react-router dev",
|