@brickkit/cli 0.10.0 → 0.12.0
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/README.md +1 -1
- package/dashboard-dist/CollapsiblePanel-CbUysOp5.js +2 -0
- package/dashboard-dist/CompositeRoot-D4sRkYq3.js +1 -0
- package/dashboard-dist/Geist-Variable.woff2 +0 -0
- package/dashboard-dist/GeistMono-Variable.woff2 +0 -0
- package/dashboard-dist/PopoverPopup-CiI2avT_.js +1 -0
- package/dashboard-dist/api-reference-B-bZRtNV.js +265 -0
- package/dashboard-dist/app.css +2 -2
- package/dashboard-dist/app.js +13 -13
- package/dashboard-dist/ccount-CcG1m-Yh.js +1 -0
- package/dashboard-dist/client-BJJtVSVr.js +1 -0
- package/dashboard-dist/core-Z7NJFk0K.js +1 -0
- package/dashboard-dist/docs-Dpfc0wJb.js +4 -0
- package/dashboard-dist/docs.css +1 -1
- package/dashboard-dist/kit.js +1 -0
- package/dashboard-dist/popover-BzejBolB.js +1 -0
- package/dashboard-dist/react-dom-client.js +3 -0
- package/dashboard-dist/react-dom.js +3 -0
- package/dashboard-dist/react-jsx-runtime.js +1 -1
- package/dashboard-dist/react.js +3 -3
- package/dashboard-dist/theme.css +123 -0
- package/dist/app-entry2.js +2 -3
- package/dist/bin.d.ts +0 -2
- package/dist/bin.js +606 -49
- package/dist/bin.js.map +1 -1
- package/dist/client-contract-file2.js +2 -3
- package/dist/client-contract2.js +18 -10
- package/dist/client-contract2.js.map +1 -1
- package/dist/compiler.d.ts +1 -2
- package/dist/compiler.js +1 -1
- package/dist/compiler2.js +3 -4
- package/dist/config.js +250 -0
- package/dist/config.js.map +1 -0
- package/dist/dashboard-extension.d.ts +25 -0
- package/dist/dashboard.d.ts +2997 -0
- package/dist/dev-reporter.d.ts +0 -2
- package/dist/dev-reporter.js +1 -2
- package/dist/dev-telemetry-store.js +1411 -966
- package/dist/dev-telemetry-store.js.map +1 -1
- package/dist/dev-telemetry.js +3 -4
- package/dist/dev-telemetry.js.map +1 -1
- package/dist/dev-worker.js +3 -4
- package/dist/emit.d.ts +0 -2
- package/dist/index.d.ts +96 -17
- package/dist/index.js +4 -5
- package/dist/lint/eslint.d.ts +2 -0
- package/dist/lint/eslint.js +1 -0
- package/dist/lint/oxlint.d.ts +17 -0
- package/dist/lint/oxlint.js +18 -0
- package/dist/lint/oxlint.js.map +1 -0
- package/dist/plugin.d.ts +70 -0
- package/dist/plugin.js +64 -0
- package/dist/plugin.js.map +1 -0
- package/dist/presets.js +1066 -0
- package/dist/presets.js.map +1 -0
- package/dist/runner.js +114 -32
- package/dist/runner.js.map +1 -1
- package/dist/vite.d.ts +6 -5
- package/dist/vite.js +13 -9
- package/dist/vite.js.map +1 -1
- package/dist/workflows.d.ts +0 -2
- package/dist/workflows2.js +3 -4
- package/inspector-dist/client/assets/api.rpc-BvRk9kiK.js +0 -0
- package/inspector-dist/client/assets/api.stream._streamId-BvRk9kiK.js +0 -0
- package/inspector-dist/client/assets/app-CCzpuUz_.css +2 -0
- package/inspector-dist/client/assets/dist-BK8w6xOr.js +3930 -0
- package/inspector-dist/client/assets/dist-CG2aVufI.js +197 -0
- package/inspector-dist/client/assets/entry.client-D9jbgmTR.js +9391 -0
- package/inspector-dist/client/assets/highlighted-body-B3W2YXNL-DYVdwGy2.js +34 -0
- package/inspector-dist/client/assets/home-CyjkvtII.js +2883 -0
- package/inspector-dist/client/assets/jsx-runtime-CPEah4WQ.js +7084 -0
- package/inspector-dist/client/assets/manifest-ba30b52d.js +1 -0
- package/inspector-dist/client/assets/mermaid-3ZIDBTTL-Dy6IVqPy.js +1 -0
- package/inspector-dist/client/assets/root-8BMab1lL.css +2 -0
- package/inspector-dist/client/assets/root-DX9wtogx.js +332 -0
- package/inspector-dist/client/assets/run-detail-C69EJGql.js +1549 -0
- package/inspector-dist/client/assets/tabs-B6B88IjT.js +75692 -0
- package/inspector-dist/client/assets/tabs-L5XKzOpP.css +1 -0
- package/inspector-dist/client/assets/world-config-context-C3BqXPIv.js +30 -0
- package/inspector-dist/client/assets/zstd-browser-decoder-ByUgcY9H.js +41 -0
- package/inspector-dist/server/assets/app-WoDoT62X.js +100155 -0
- package/inspector-dist/server/assets/chunk-RLXIAIE6-CbvDIAEa.js +42977 -0
- package/inspector-dist/server/assets/dist-BRxZSWUN.js +1140 -0
- package/inspector-dist/server/assets/dist-CQnQcIJg.js +199 -0
- package/inspector-dist/server/assets/dist-DqRd9pyS.js +1644 -0
- package/inspector-dist/server/assets/dist-qR-969AD.js +10327 -0
- package/inspector-dist/server/assets/encryption-_PuklZNX.js +888 -0
- package/inspector-dist/server/assets/event-metadata-BVakQJ_y.js +147 -0
- package/inspector-dist/server/assets/functions-CImcpqNl.js +1172 -0
- package/inspector-dist/server/assets/global-singleton-CPirHxFh.js +82 -0
- package/inspector-dist/server/assets/highlighted-body-B3W2YXNL-fPMB_t7F.js +36 -0
- package/inspector-dist/server/assets/mermaid-3ZIDBTTL-bADXySE3.js +3 -0
- package/inspector-dist/server/assets/parse-D9Vvgzt9.js +471 -0
- package/inspector-dist/server/assets/rolldown-runtime-CLg409Sh.js +44 -0
- package/inspector-dist/server/assets/serialization-format-DDtsVTU1.js +478 -0
- package/inspector-dist/server/assets/token-BW4GdQZh.js +62 -0
- package/inspector-dist/server/assets/token-D6FXdkJT.js +57 -0
- package/inspector-dist/server/assets/token-util-BoNmi-wE.js +457 -0
- package/inspector-dist/server/assets/wrapper-wiqsGXcE.js +3626 -0
- package/inspector-dist/server/assets/ws-transport-DV7oG4mL.js +29478 -0
- package/inspector-dist/server/assets/zstd-browser-decoder-Cswf0KO6.js +40 -0
- package/inspector-dist/server/index.js +2 -57
- package/package.json +57 -32
- package/vite-client.d.ts +1 -1
- package/dashboard-dist/CollapsiblePanel-a54TwMKb.js +0 -2
- package/dashboard-dist/PopoverPopup-BLzjTqsi.js +0 -1
- package/dashboard-dist/api-reference-r893F8zi.js +0 -260
- package/dashboard-dist/core-BWAwhSFf.js +0 -1
- package/dashboard-dist/docs-CkMy3Y5i.js +0 -4
- package/dashboard-dist/preload-helper-CjQDFR0M.js +0 -1
- package/dist/bin.d.ts.map +0 -1
- package/dist/build.js +0 -119
- package/dist/build.js.map +0 -1
- package/dist/dev-reporter.d.ts.map +0 -1
- package/dist/emit.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/vite.d.ts.map +0 -1
- package/dist/workflows.d.ts.map +0 -1
- package/inspector-dist/client/assets/api.rpc-l0sNRNKZ.js +0 -1
- package/inspector-dist/client/assets/api.stream._streamId-l0sNRNKZ.js +0 -1
- package/inspector-dist/client/assets/app-CY7CQBRo.css +0 -1
- package/inspector-dist/client/assets/entry.client-BJ6G3n5t.js +0 -11697
- package/inspector-dist/client/assets/highlighted-body-B3W2YXNL-C-3wZnxf.js +0 -19
- package/inspector-dist/client/assets/home-CSKAS4P2.js +0 -4979
- package/inspector-dist/client/assets/index-DECCyMR0.js +0 -4482
- package/inspector-dist/client/assets/index-Dot7CgrA.js +0 -9837
- package/inspector-dist/client/assets/index-HqNj_XIX.js +0 -200
- package/inspector-dist/client/assets/manifest-4baa7c6f.js +0 -1
- package/inspector-dist/client/assets/mermaid-3ZIDBTTL-DC0K8uTy.js +0 -58626
- package/inspector-dist/client/assets/mermaid-3ZIDBTTL-F88p7PFX.css +0 -1
- package/inspector-dist/client/assets/root-Bmn5n3jF.js +0 -305
- package/inspector-dist/client/assets/root-CfCr265_.css +0 -1
- package/inspector-dist/client/assets/run-detail-CWoGxu_0.css +0 -1
- package/inspector-dist/client/assets/run-detail-Cc7tSGNq.js +0 -6237
- package/inspector-dist/client/assets/world-config-context-BAD1QCrR.js +0 -26
- package/inspector-dist/client/assets/zstd-browser-decoder-BQoRpP7L.js +0 -28
- package/inspector-dist/server/assets/app-C-ZVJtic.js +0 -174880
- package/inspector-dist/server/assets/highlighted-body-B3W2YXNL-C8sq8F_D.js +0 -71
- package/inspector-dist/server/assets/index-BfLBLRRi.js +0 -204
- package/inspector-dist/server/assets/index-BzrGWk7J.js +0 -1164
- package/inspector-dist/server/assets/index-CWJr34WJ.js +0 -1296
- package/inspector-dist/server/assets/index-CYlmUaKx.js +0 -191
- package/inspector-dist/server/assets/mermaid-3ZIDBTTL-Dv5rjfMN.js +0 -58
- package/inspector-dist/server/assets/token-DnLp3wBO.js +0 -95
- package/inspector-dist/server/assets/token-util-Bpfp-B0w.js +0 -33
- package/inspector-dist/server/assets/wrapper-D5LIcZ_u.js +0 -67
- package/inspector-dist/server/assets/zstd-browser-decoder-BM8GpVB8.js +0 -77
|
@@ -0,0 +1,478 @@
|
|
|
1
|
+
import { createRequire as __wkfCreateRequire } from "node:module";
|
|
2
|
+
if (typeof require === "undefined") globalThis.require = __wkfCreateRequire(import.meta.url);
|
|
3
|
+
import { r as __exportAll } from "./rolldown-runtime-CLg409Sh.js";
|
|
4
|
+
import { t as globalSingleton } from "./global-singleton-CPirHxFh.js";
|
|
5
|
+
import { i as getEventDataRefFields } from "./event-metadata-BVakQJ_y.js";
|
|
6
|
+
import { n as unflatten, t as parse } from "./parse-D9Vvgzt9.js";
|
|
7
|
+
import { r as deriveRunPayloadKeys } from "./encryption-_PuklZNX.js";
|
|
8
|
+
// ../../node_modules/.bun/@workflow+core@5.3.0+eefe5d4a997ff1ee/node_modules/@workflow/core/dist/serialization-format.js
|
|
9
|
+
/**
|
|
10
|
+
* Browser-safe serialization format utilities.
|
|
11
|
+
*
|
|
12
|
+
* This module contains the format prefix handling, generic hydrate/dehydrate
|
|
13
|
+
* dispatch, and shared types/classes used by all environments (runtime, web
|
|
14
|
+
* o11y, CLI o11y). It has NO Node.js dependencies.
|
|
15
|
+
*/
|
|
16
|
+
var serialization_format_exports = /* @__PURE__ */ __exportAll({
|
|
17
|
+
deriveRunPayloadKeys: () => deriveRunPayloadKeys,
|
|
18
|
+
hydrateDataWithKey: () => hydrateDataWithKey
|
|
19
|
+
});
|
|
20
|
+
var SerializationFormat = {
|
|
21
|
+
/** devalue stringify/parse with TextEncoder/TextDecoder */
|
|
22
|
+
DEVALUE_V1: "devl",
|
|
23
|
+
/** Encrypted payload (inner payload has its own format prefix after decryption) */
|
|
24
|
+
ENCRYPTED: "encr",
|
|
25
|
+
/**
|
|
26
|
+
* Sealed payload: asymmetrically encrypted to a run's X25519 public key
|
|
27
|
+
* (inner payload has its own format prefix after opening).
|
|
28
|
+
*
|
|
29
|
+
* Written by cross-run writers that hold only the recipient run's public
|
|
30
|
+
* key. Opening it requires the run's private scalar rather than the
|
|
31
|
+
* symmetric per-run key, so o11y display treats it as ciphertext via
|
|
32
|
+
* {@link isEncryptedData} but {@link hydrateDataWithKey} does not attempt
|
|
33
|
+
* an AES-GCM decrypt on it.
|
|
34
|
+
*/
|
|
35
|
+
SEALED: "encp",
|
|
36
|
+
/** Gzip-compressed payload (inner payload has its own format prefix after decompression) */
|
|
37
|
+
GZIP: "gzip",
|
|
38
|
+
/** Zstandard-compressed payload (inner payload has its own format prefix after decompression) */
|
|
39
|
+
ZSTD: "zstd"
|
|
40
|
+
};
|
|
41
|
+
/** Length of the format prefix in bytes */
|
|
42
|
+
var FORMAT_PREFIX_LENGTH = 4;
|
|
43
|
+
new TextEncoder();
|
|
44
|
+
var formatDecoder = new TextDecoder();
|
|
45
|
+
/**
|
|
46
|
+
* Decode a format-prefixed payload.
|
|
47
|
+
*/
|
|
48
|
+
function decodeFormatPrefix(data) {
|
|
49
|
+
if (!(data instanceof Uint8Array)) return {
|
|
50
|
+
format: SerializationFormat.DEVALUE_V1,
|
|
51
|
+
payload: new TextEncoder().encode(JSON.stringify(data))
|
|
52
|
+
};
|
|
53
|
+
if (data.length < FORMAT_PREFIX_LENGTH) throw new Error(`Data too short to contain format prefix: expected at least ${FORMAT_PREFIX_LENGTH} bytes, got ${data.length}`);
|
|
54
|
+
const prefixBytes = data.subarray(0, FORMAT_PREFIX_LENGTH);
|
|
55
|
+
const format = formatDecoder.decode(prefixBytes);
|
|
56
|
+
const knownFormats = Object.values(SerializationFormat);
|
|
57
|
+
if (!knownFormats.includes(format)) throw new Error(`Unknown serialization format: "${format}". Known formats: ${knownFormats.join(", ")}`);
|
|
58
|
+
return {
|
|
59
|
+
format,
|
|
60
|
+
payload: data.subarray(FORMAT_PREFIX_LENGTH)
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Check if a plain object is `{ expiredAt: "<ISO date>" }`: a single-key
|
|
65
|
+
* object with a string `expiredAt` value.
|
|
66
|
+
*/
|
|
67
|
+
function isExpiredObject(data) {
|
|
68
|
+
if (data === null || typeof data !== "object" || Array.isArray(data)) return false;
|
|
69
|
+
const keys = Object.keys(data);
|
|
70
|
+
return keys.length === 1 && keys[0] === "expiredAt" && typeof data.expiredAt === "string";
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Check if a hydrated value is an expired data stub from the server.
|
|
74
|
+
*
|
|
75
|
+
* The server replaces expired ref fields with a devalue-encoded stub
|
|
76
|
+
* (`makeExpiredStub`) that deserializes to `[{ expiredAt: "<ISO date>" }]`
|
|
77
|
+
* after `unflatten` (array-wrapped due to backwards-compatible encoding).
|
|
78
|
+
* Also matches the unwrapped `{ expiredAt: "..." }` form for robustness.
|
|
79
|
+
*/
|
|
80
|
+
function isExpiredStub(data) {
|
|
81
|
+
if (isExpiredObject(data)) return true;
|
|
82
|
+
if (Array.isArray(data) && data.length === 1 && isExpiredObject(data[0])) return true;
|
|
83
|
+
return false;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Check if a binary value is ciphertext: either a symmetrically encrypted
|
|
87
|
+
* payload ('encr') or a sealed cross-run payload ('encp').
|
|
88
|
+
*
|
|
89
|
+
* This is the predicate display layers want: both schemes are opaque bytes
|
|
90
|
+
* that must not be fed to the devalue parser, and both render as the same
|
|
91
|
+
* "Encrypted" affordance in the CLI and web UI. Use {@link isSealedData} when
|
|
92
|
+
* the *scheme* matters, notably when choosing a decryption path, since a
|
|
93
|
+
* sealed payload needs the run's private scalar rather than its symmetric key.
|
|
94
|
+
*
|
|
95
|
+
* Browser-safe: does not depend on the full serialization module.
|
|
96
|
+
*/
|
|
97
|
+
function isEncryptedData(data) {
|
|
98
|
+
if (!(data instanceof Uint8Array) || data.length < FORMAT_PREFIX_LENGTH) return false;
|
|
99
|
+
const prefix = formatDecoder.decode(data.subarray(0, FORMAT_PREFIX_LENGTH));
|
|
100
|
+
return prefix === SerializationFormat.ENCRYPTED || prefix === SerializationFormat.SEALED;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Check if a binary value has the 'encp' format prefix, indicating a sealed
|
|
104
|
+
* (asymmetrically encrypted) cross-run payload.
|
|
105
|
+
*
|
|
106
|
+
* Browser-safe: does not depend on the full serialization module.
|
|
107
|
+
*/
|
|
108
|
+
function isSealedData(data) {
|
|
109
|
+
if (!(data instanceof Uint8Array) || data.length < FORMAT_PREFIX_LENGTH) return false;
|
|
110
|
+
return formatDecoder.decode(data.subarray(0, FORMAT_PREFIX_LENGTH)) === SerializationFormat.SEALED;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Check if a binary value has a compression format prefix ('gzip' or 'zstd').
|
|
114
|
+
* Browser-safe: does not depend on the full serialization module.
|
|
115
|
+
*/
|
|
116
|
+
function isCompressedData(data) {
|
|
117
|
+
if (!(data instanceof Uint8Array) || data.length < FORMAT_PREFIX_LENGTH) return false;
|
|
118
|
+
const prefix = formatDecoder.decode(data.subarray(0, FORMAT_PREFIX_LENGTH));
|
|
119
|
+
return prefix === SerializationFormat.GZIP || prefix === SerializationFormat.ZSTD;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Resolve `node:zlib` via `process.getBuiltinModule`: no static Node
|
|
123
|
+
* dependency, invisible to browser bundlers. Returns undefined off Node.
|
|
124
|
+
*/
|
|
125
|
+
function getNodeZlib() {
|
|
126
|
+
try {
|
|
127
|
+
return globalThis.process?.getBuiltinModule?.("node:zlib");
|
|
128
|
+
} catch {
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Synchronously decompress a `gzip`/`zstd` payload when running on Node.js.
|
|
134
|
+
*
|
|
135
|
+
* Returns `undefined` when sync decompression isn't available (e.g. in the
|
|
136
|
+
* browser, or zstd on Node < 22.15); callers fall back to leaving the data
|
|
137
|
+
* un-hydrated (the async `hydrateDataWithKey` path handles decompression in
|
|
138
|
+
* browsers via `DecompressionStream` / a registered zstd decoder).
|
|
139
|
+
*/
|
|
140
|
+
function decompressSyncIfAvailable(format, payload) {
|
|
141
|
+
try {
|
|
142
|
+
const zlib = getNodeZlib();
|
|
143
|
+
if (format === SerializationFormat.GZIP && zlib?.gunzipSync) return new Uint8Array(zlib.gunzipSync(payload));
|
|
144
|
+
if (format === SerializationFormat.ZSTD && zlib?.zstdDecompressSync) return new Uint8Array(zlib.zstdDecompressSync(payload));
|
|
145
|
+
} catch {}
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Browser zstd decoder, registered by the o11y host (web-shared) since the
|
|
149
|
+
* Web `DecompressionStream` has no zstd support. Node decodes via `node:zlib`
|
|
150
|
+
* and never needs this. See `registerZstdDecoder`.
|
|
151
|
+
*/
|
|
152
|
+
var zstd = globalSingleton("@workflow/core//zstd.decoder", 1, () => ({ decoder: void 0 }));
|
|
153
|
+
/**
|
|
154
|
+
* Register a browser zstd decoder (e.g. a WASM-backed one). The web o11y UI
|
|
155
|
+
* calls this at init so `hydrateDataWithKey` can inflate zstd payloads after
|
|
156
|
+
* client-side decryption. Node readers use `node:zlib` and ignore this.
|
|
157
|
+
*/
|
|
158
|
+
function registerZstdDecoder(decoder) {
|
|
159
|
+
zstd.decoder = decoder;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Asynchronously decompress a `gzip`/`zstd` payload.
|
|
163
|
+
* - gzip: web-standard `DecompressionStream` (Node 18+, browsers, edge).
|
|
164
|
+
* - zstd: `node:zlib` when on Node, else the registered browser decoder.
|
|
165
|
+
*/
|
|
166
|
+
async function decompressAsync(format, payload) {
|
|
167
|
+
if (format === SerializationFormat.ZSTD) {
|
|
168
|
+
const sync = decompressSyncIfAvailable(format, payload);
|
|
169
|
+
if (sync) return sync;
|
|
170
|
+
if (zstd.decoder) return zstd.decoder(payload);
|
|
171
|
+
throw new Error("zstd-compressed workflow data encountered but no zstd decoder is available. Node.js 22.15+ decodes natively; in the browser register one via registerZstdDecoder (the web o11y package does this).");
|
|
172
|
+
}
|
|
173
|
+
const transform = new DecompressionStream("gzip");
|
|
174
|
+
const writer = transform.writable.getWriter();
|
|
175
|
+
const writePromise = writer.write(payload).then(() => writer.close());
|
|
176
|
+
writePromise.catch(() => {});
|
|
177
|
+
const chunks = [];
|
|
178
|
+
let total = 0;
|
|
179
|
+
const reader = transform.readable.getReader();
|
|
180
|
+
for (;;) {
|
|
181
|
+
const { done, value } = await reader.read();
|
|
182
|
+
if (done) break;
|
|
183
|
+
chunks.push(value);
|
|
184
|
+
total += value.length;
|
|
185
|
+
}
|
|
186
|
+
await writePromise;
|
|
187
|
+
const out = new Uint8Array(total);
|
|
188
|
+
let offset = 0;
|
|
189
|
+
for (const chunk of chunks) {
|
|
190
|
+
out.set(chunk, offset);
|
|
191
|
+
offset += chunk.length;
|
|
192
|
+
}
|
|
193
|
+
return out;
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Hydrate (deserialize) a value that was stored in the database.
|
|
197
|
+
*
|
|
198
|
+
* Handles four data shapes:
|
|
199
|
+
* 1. `Uint8Array` with 'encr' prefix → returned as-is (encrypted, not yet decrypted)
|
|
200
|
+
* 2. `Uint8Array` with a format prefix (specVersion 2+) → decode prefix, parse
|
|
201
|
+
* 3. `Array` (legacy specVersion 1, "revived devalue") → unflatten
|
|
202
|
+
* 4. Other (already a plain JS value) → return as-is
|
|
203
|
+
*
|
|
204
|
+
* Encrypted data is intentionally left as a `Uint8Array` so that consumers
|
|
205
|
+
* (CLI, web UI) can detect it with `isEncryptedData()` and decide how to
|
|
206
|
+
* handle it: the CLI replaces it with a styled placeholder, the web UI
|
|
207
|
+
* renders an "Encrypted" card with a Decrypt button that triggers
|
|
208
|
+
* client-side decryption on demand.
|
|
209
|
+
*/
|
|
210
|
+
function hydrateData(value, revivers) {
|
|
211
|
+
if (value instanceof Uint8Array) {
|
|
212
|
+
if (isEncryptedData(value)) return value;
|
|
213
|
+
const { format, payload } = decodeFormatPrefix(value);
|
|
214
|
+
if (format === SerializationFormat.DEVALUE_V1) {
|
|
215
|
+
const str = new TextDecoder().decode(payload);
|
|
216
|
+
return parse(str, revivers);
|
|
217
|
+
}
|
|
218
|
+
if (format === SerializationFormat.GZIP || format === SerializationFormat.ZSTD) {
|
|
219
|
+
const inflated = decompressSyncIfAvailable(format, payload);
|
|
220
|
+
if (inflated === void 0) return value;
|
|
221
|
+
return hydrateData(inflated, revivers);
|
|
222
|
+
}
|
|
223
|
+
throw new Error(`Unsupported serialization format: ${format}`);
|
|
224
|
+
}
|
|
225
|
+
if (Array.isArray(value)) return unflatten(value, revivers);
|
|
226
|
+
return value;
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Hydrate a value, decrypting it first if an encryption key is provided.
|
|
230
|
+
*
|
|
231
|
+
* This is the async version of `hydrateData` that supports transparent
|
|
232
|
+
* decryption. Used by o11y tooling (web UI, CLI) when the user requests
|
|
233
|
+
* decryption.
|
|
234
|
+
*
|
|
235
|
+
* @param value - The value to hydrate (may be encrypted or sealed)
|
|
236
|
+
* @param revivers - Devalue revivers for deserialization
|
|
237
|
+
* @param key - The run's key material. Pass `RunPayloadKeys` (from
|
|
238
|
+
* `deriveRunPayloadKeys`) to open both symmetric (`encr`) and sealed
|
|
239
|
+
* (`encp`) payloads; a bare `CryptoKey` opens only the symmetric ones.
|
|
240
|
+
* Typed as a read capability so a write-only seal target (which could open
|
|
241
|
+
* neither scheme) is rejected at compile time rather than failing here.
|
|
242
|
+
*/
|
|
243
|
+
async function hydrateDataWithKey(value, revivers, key) {
|
|
244
|
+
let data = value;
|
|
245
|
+
if (data instanceof Uint8Array && isEncryptedData(data) && key) {
|
|
246
|
+
const { decrypt, isRunPayloadKeys } = await import("./encryption-_PuklZNX.js").then((n) => n.a);
|
|
247
|
+
if (!isSealedData(data) || isRunPayloadKeys(key)) data = await decrypt(data, key);
|
|
248
|
+
}
|
|
249
|
+
if (data instanceof Uint8Array && isCompressedData(data)) {
|
|
250
|
+
const { format, payload } = decodeFormatPrefix(data);
|
|
251
|
+
data = await decompressAsync(format, payload);
|
|
252
|
+
}
|
|
253
|
+
return hydrateData(data, revivers);
|
|
254
|
+
}
|
|
255
|
+
var STREAM_ID_PREFIX = "strm_";
|
|
256
|
+
/** Marker for stream reference objects rendered as links in the UI */
|
|
257
|
+
var STREAM_REF_TYPE = "__workflow_stream_ref__";
|
|
258
|
+
/** Marker for Run reference objects rendered as links in the UI */
|
|
259
|
+
var RUN_REF_TYPE = "__workflow_run_ref__";
|
|
260
|
+
/** Check if a value is a RunRef object */
|
|
261
|
+
var isRunRef = (value) => {
|
|
262
|
+
return value !== null && typeof value === "object" && "__type" in value && value.__type === "__workflow_run_ref__" && "runId" in value && typeof value.runId === "string";
|
|
263
|
+
};
|
|
264
|
+
/** Convert a serialized Run value to a RunRef for display */
|
|
265
|
+
var serializedRunToRunRef = (value) => {
|
|
266
|
+
return {
|
|
267
|
+
__type: RUN_REF_TYPE,
|
|
268
|
+
runId: value.runId
|
|
269
|
+
};
|
|
270
|
+
};
|
|
271
|
+
/** Marker for custom class instance references */
|
|
272
|
+
var CLASS_INSTANCE_REF_TYPE = "__workflow_class_instance_ref__";
|
|
273
|
+
/**
|
|
274
|
+
* A class instance reference for o11y display.
|
|
275
|
+
*
|
|
276
|
+
* Browser-safe base class: no `util.inspect.custom`. Environment-specific
|
|
277
|
+
* rendering (CLI inspect, web component) is handled by each consumer.
|
|
278
|
+
*/
|
|
279
|
+
var ClassInstanceRef = class {
|
|
280
|
+
className;
|
|
281
|
+
classId;
|
|
282
|
+
data;
|
|
283
|
+
__type = CLASS_INSTANCE_REF_TYPE;
|
|
284
|
+
constructor(className, classId, data) {
|
|
285
|
+
this.className = className;
|
|
286
|
+
this.classId = classId;
|
|
287
|
+
this.data = data;
|
|
288
|
+
}
|
|
289
|
+
toJSON() {
|
|
290
|
+
return {
|
|
291
|
+
__type: this.__type,
|
|
292
|
+
className: this.className,
|
|
293
|
+
classId: this.classId,
|
|
294
|
+
data: this.data
|
|
295
|
+
};
|
|
296
|
+
}
|
|
297
|
+
};
|
|
298
|
+
/**
|
|
299
|
+
* Convert a serialized stream value to a StreamRef for display.
|
|
300
|
+
*/
|
|
301
|
+
var streamToStreamRef = (value) => {
|
|
302
|
+
let streamId;
|
|
303
|
+
if ("name" in value) {
|
|
304
|
+
const name = String(value.name);
|
|
305
|
+
if (!name.startsWith(STREAM_ID_PREFIX)) streamId = `${STREAM_ID_PREFIX}${name}`;
|
|
306
|
+
else streamId = name;
|
|
307
|
+
} else streamId = `${STREAM_ID_PREFIX}null`;
|
|
308
|
+
return {
|
|
309
|
+
__type: STREAM_REF_TYPE,
|
|
310
|
+
streamId
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
/** Convert a serialized step function to a display string */
|
|
314
|
+
var serializedStepFunctionToString = (value) => {
|
|
315
|
+
if (!value) return "null";
|
|
316
|
+
if (typeof value !== "object") return "null";
|
|
317
|
+
if ("stepId" in value) return `<step:${value.stepId}>`;
|
|
318
|
+
return "<function>";
|
|
319
|
+
};
|
|
320
|
+
/** Extract the class name from a classId */
|
|
321
|
+
var extractClassName = (classId) => {
|
|
322
|
+
if (!classId) return "Unknown";
|
|
323
|
+
const parts = classId.split("/");
|
|
324
|
+
return parts[parts.length - 1] || classId;
|
|
325
|
+
};
|
|
326
|
+
/** Convert a serialized class instance to a ClassInstanceRef for display.
|
|
327
|
+
* Run instances are special-cased to a RunRef for clickable rendering. */
|
|
328
|
+
var serializedInstanceToRef = (value) => {
|
|
329
|
+
const className = extractClassName(value.classId);
|
|
330
|
+
if (className === "Run" && value.data !== null && typeof value.data === "object" && "runId" in value.data && typeof value.data.runId === "string") return serializedRunToRunRef(value.data);
|
|
331
|
+
return new ClassInstanceRef(className, value.classId, value.data);
|
|
332
|
+
};
|
|
333
|
+
/** Convert a serialized class reference to a display string */
|
|
334
|
+
var serializedClassToString = (value) => {
|
|
335
|
+
return `<class:${extractClassName(value.classId)}>`;
|
|
336
|
+
};
|
|
337
|
+
/**
|
|
338
|
+
* Standard o11y revivers that override runtime-specific types with
|
|
339
|
+
* display-friendly values. Used by both web and CLI hydration.
|
|
340
|
+
*/
|
|
341
|
+
var observabilityRevivers = {
|
|
342
|
+
ReadableStream: streamToStreamRef,
|
|
343
|
+
WritableStream: streamToStreamRef,
|
|
344
|
+
TransformStream: streamToStreamRef,
|
|
345
|
+
AbortController: (value) => `<AbortController(aborted: ${value.aborted})>`,
|
|
346
|
+
AbortSignal: (value) => `<AbortSignal(aborted: ${value.aborted})>`,
|
|
347
|
+
DOMException: (value) => {
|
|
348
|
+
const G = globalThis;
|
|
349
|
+
if (typeof G.DOMException === "function") {
|
|
350
|
+
const e = new G.DOMException(value.message, value.name);
|
|
351
|
+
if (value.stack !== void 0) e.stack = value.stack;
|
|
352
|
+
if ("cause" in value) e.cause = value.cause;
|
|
353
|
+
return e;
|
|
354
|
+
}
|
|
355
|
+
const e = new Error(value.message);
|
|
356
|
+
e.name = value.name;
|
|
357
|
+
if (value.stack !== void 0) e.stack = value.stack;
|
|
358
|
+
if ("cause" in value) e.cause = value.cause;
|
|
359
|
+
return e;
|
|
360
|
+
},
|
|
361
|
+
StepFunction: serializedStepFunctionToString,
|
|
362
|
+
WorkflowFunction: (value) => `<workflow:${value.workflowId}>`,
|
|
363
|
+
Instance: serializedInstanceToRef,
|
|
364
|
+
Class: serializedClassToString
|
|
365
|
+
};
|
|
366
|
+
/**
|
|
367
|
+
* Hydrate the data fields of a step resource.
|
|
368
|
+
*/
|
|
369
|
+
function hydrateStepIO(resource, revivers) {
|
|
370
|
+
let hydratedInput = resource.input;
|
|
371
|
+
let hydratedOutput = resource.output;
|
|
372
|
+
let hydratedError = resource.error;
|
|
373
|
+
if (resource.input != null) try {
|
|
374
|
+
hydratedInput = hydrateData(resource.input, revivers);
|
|
375
|
+
} catch {}
|
|
376
|
+
if (resource.output != null) try {
|
|
377
|
+
hydratedOutput = hydrateData(resource.output, revivers);
|
|
378
|
+
} catch {}
|
|
379
|
+
if (resource.error != null) try {
|
|
380
|
+
hydratedError = hydrateData(resource.error, revivers);
|
|
381
|
+
} catch {}
|
|
382
|
+
return {
|
|
383
|
+
...resource,
|
|
384
|
+
input: hydratedInput,
|
|
385
|
+
output: hydratedOutput,
|
|
386
|
+
error: hydratedError
|
|
387
|
+
};
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* Hydrate the data fields of a workflow run resource.
|
|
391
|
+
*/
|
|
392
|
+
function hydrateWorkflowIO(resource, revivers) {
|
|
393
|
+
let hydratedInput = resource.input;
|
|
394
|
+
let hydratedOutput = resource.output;
|
|
395
|
+
let hydratedError = resource.error;
|
|
396
|
+
let hydratedDynamicWorkflowCode = resource.dynamicWorkflowCode;
|
|
397
|
+
if (resource.input != null) try {
|
|
398
|
+
hydratedInput = hydrateData(resource.input, revivers);
|
|
399
|
+
} catch {}
|
|
400
|
+
if (resource.output != null) try {
|
|
401
|
+
hydratedOutput = hydrateData(resource.output, revivers);
|
|
402
|
+
} catch {}
|
|
403
|
+
if (resource.error != null) try {
|
|
404
|
+
hydratedError = hydrateData(resource.error, revivers);
|
|
405
|
+
} catch {}
|
|
406
|
+
if (resource.dynamicWorkflowCode != null) try {
|
|
407
|
+
hydratedDynamicWorkflowCode = hydrateData(resource.dynamicWorkflowCode, revivers);
|
|
408
|
+
} catch {}
|
|
409
|
+
return {
|
|
410
|
+
...resource,
|
|
411
|
+
input: hydratedInput,
|
|
412
|
+
output: hydratedOutput,
|
|
413
|
+
error: hydratedError,
|
|
414
|
+
...resource.dynamicWorkflowCode != null ? { dynamicWorkflowCode: hydratedDynamicWorkflowCode } : {}
|
|
415
|
+
};
|
|
416
|
+
}
|
|
417
|
+
/**
|
|
418
|
+
* Hydrate the eventData fields of an event resource.
|
|
419
|
+
*/
|
|
420
|
+
function hydrateEventData(resource, revivers) {
|
|
421
|
+
if (!resource.eventData) return resource;
|
|
422
|
+
const eventData = { ...resource.eventData };
|
|
423
|
+
for (const field of getEventDataRefFields(resource.eventType ?? "")) {
|
|
424
|
+
if (eventData[field] == null) continue;
|
|
425
|
+
try {
|
|
426
|
+
eventData[field] = hydrateData(eventData[field], revivers);
|
|
427
|
+
} catch {}
|
|
428
|
+
}
|
|
429
|
+
return {
|
|
430
|
+
...resource,
|
|
431
|
+
eventData
|
|
432
|
+
};
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* Hydrate the metadata field of a hook resource.
|
|
436
|
+
*/
|
|
437
|
+
function hydrateHookMetadata(resource, revivers) {
|
|
438
|
+
if (resource.metadata == null) return resource;
|
|
439
|
+
let hydratedMetadata = resource.metadata;
|
|
440
|
+
try {
|
|
441
|
+
hydratedMetadata = hydrateData(resource.metadata, revivers);
|
|
442
|
+
} catch {}
|
|
443
|
+
return {
|
|
444
|
+
...resource,
|
|
445
|
+
metadata: hydratedMetadata
|
|
446
|
+
};
|
|
447
|
+
}
|
|
448
|
+
/**
|
|
449
|
+
* Hydrate the serialized data fields of any resource for o11y display.
|
|
450
|
+
*
|
|
451
|
+
* Dispatches by resource type (step, hook, event, workflow) and calls
|
|
452
|
+
* `hydrateData` with the provided revivers for each data field.
|
|
453
|
+
*
|
|
454
|
+
* Each environment (web, CLI) provides its own revivers; this function
|
|
455
|
+
* only handles the dispatch logic and field mapping.
|
|
456
|
+
*/
|
|
457
|
+
function hydrateResourceIO(resource, revivers) {
|
|
458
|
+
if (!resource) return resource;
|
|
459
|
+
let hydrated;
|
|
460
|
+
if ("stepId" in resource) hydrated = hydrateStepIO(resource, revivers);
|
|
461
|
+
else if ("hookId" in resource) hydrated = hydrateHookMetadata(resource, revivers);
|
|
462
|
+
else if ("eventId" in resource) hydrated = hydrateEventData(resource, revivers);
|
|
463
|
+
else hydrated = hydrateWorkflowIO(resource, revivers);
|
|
464
|
+
if ("executionContext" in hydrated) {
|
|
465
|
+
const { executionContext, ...rest } = hydrated;
|
|
466
|
+
const ctx = executionContext && typeof executionContext === "object" ? executionContext : void 0;
|
|
467
|
+
const preserved = {};
|
|
468
|
+
if (ctx?.workflowCoreVersion) preserved.workflowCoreVersion = ctx.workflowCoreVersion;
|
|
469
|
+
if (typeof ctx?.workflowVm === "string") preserved.workflowVm = ctx.workflowVm;
|
|
470
|
+
if (typeof ctx?.snapshotThreshold === "number") preserved.snapshotThreshold = ctx.snapshotThreshold;
|
|
471
|
+
return {
|
|
472
|
+
...rest,
|
|
473
|
+
...preserved
|
|
474
|
+
};
|
|
475
|
+
}
|
|
476
|
+
return hydrated;
|
|
477
|
+
}
|
|
478
|
+
export { isExpiredStub as a, registerZstdDecoder as c, isEncryptedData as i, serialization_format_exports as l, hydrateData as n, isRunRef as o, hydrateResourceIO as r, observabilityRevivers as s, extractClassName as t, serializedInstanceToRef as u };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { createRequire as __wkfCreateRequire } from "node:module";
|
|
2
|
+
if (typeof require === "undefined") globalThis.require = __wkfCreateRequire(import.meta.url);
|
|
3
|
+
import { t as __commonJSMin } from "./rolldown-runtime-CLg409Sh.js";
|
|
4
|
+
import { i as require_token_error, n as require_token_util, r as require_dist } from "./app-WoDoT62X.js";
|
|
5
|
+
// ../../node_modules/.bun/@vercel+oidc@3.8.10/node_modules/@vercel/oidc/dist/token.js
|
|
6
|
+
var require_token = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
7
|
+
var __defProp = Object.defineProperty;
|
|
8
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
9
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
10
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
+
var __export = (target, all) => {
|
|
12
|
+
for (var name in all) __defProp(target, name, {
|
|
13
|
+
get: all[name],
|
|
14
|
+
enumerable: true
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
var __copyProps = (to, from, except, desc) => {
|
|
18
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
19
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
20
|
+
get: () => from[key],
|
|
21
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
return to;
|
|
25
|
+
};
|
|
26
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
27
|
+
var token_exports = {};
|
|
28
|
+
__export(token_exports, { refreshToken: () => refreshToken });
|
|
29
|
+
module.exports = __toCommonJS(token_exports);
|
|
30
|
+
var import_cli_config = require_dist();
|
|
31
|
+
var import_token_error = require_token_error();
|
|
32
|
+
var import_token_util = require_token_util();
|
|
33
|
+
async function refreshToken(options) {
|
|
34
|
+
let projectId = options?.project;
|
|
35
|
+
let teamId = options?.team;
|
|
36
|
+
if (!projectId && !teamId) {
|
|
37
|
+
const projectInfo = (0, import_token_util.findProjectInfo)();
|
|
38
|
+
projectId = projectInfo.projectId;
|
|
39
|
+
teamId = projectInfo.teamId;
|
|
40
|
+
} else if (!projectId || !teamId) {
|
|
41
|
+
const projectInfo = (0, import_token_util.findProjectInfo)();
|
|
42
|
+
projectId = projectId ?? projectInfo.projectId;
|
|
43
|
+
teamId = teamId ?? projectInfo.teamId;
|
|
44
|
+
}
|
|
45
|
+
if (!projectId) throw new import_token_error.VercelOidcTokenError("Failed to refresh OIDC token: No project specified. Try re-linking your project with `vc link`");
|
|
46
|
+
let maybeToken = (0, import_token_util.loadToken)(projectId);
|
|
47
|
+
if (!maybeToken || (0, import_token_util.isExpired)((0, import_token_util.getTokenPayload)(maybeToken.token), options?.expirationBufferMs)) {
|
|
48
|
+
const configDir = (0, import_cli_config.getGlobalPathConfig)();
|
|
49
|
+
if ((0, import_cli_config.getLikelyEffectiveCredStorage)(configDir) === "keyring") maybeToken = await (0, import_token_util.getVercelOidcTokenFromCli)(projectId, teamId);
|
|
50
|
+
else {
|
|
51
|
+
const authToken = await (0, import_token_util.getVercelToken)({ expirationBufferMs: options?.expirationBufferMs });
|
|
52
|
+
maybeToken = await (0, import_token_util.getVercelOidcToken)(authToken, projectId, teamId);
|
|
53
|
+
}
|
|
54
|
+
if (!maybeToken) throw new import_token_error.VercelOidcTokenError("Failed to refresh OIDC token");
|
|
55
|
+
(0, import_token_util.saveToken)(maybeToken, projectId);
|
|
56
|
+
}
|
|
57
|
+
process.env.VERCEL_OIDC_TOKEN = maybeToken.token;
|
|
58
|
+
}
|
|
59
|
+
0 && (module.exports = { refreshToken });
|
|
60
|
+
}));
|
|
61
|
+
export default require_token();
|
|
62
|
+
export {};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { createRequire as __wkfCreateRequire } from "node:module";
|
|
2
|
+
if (typeof require === "undefined") globalThis.require = __wkfCreateRequire(import.meta.url);
|
|
3
|
+
import { t as __commonJSMin } from "./rolldown-runtime-CLg409Sh.js";
|
|
4
|
+
import { r as require_token_error, t as require_token_util } from "./token-util-BoNmi-wE.js";
|
|
5
|
+
// ../../node_modules/.bun/@vercel+oidc@3.2.0/node_modules/@vercel/oidc/dist/token.js
|
|
6
|
+
var require_token = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
7
|
+
var __defProp = Object.defineProperty;
|
|
8
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
9
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
10
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
+
var __export = (target, all) => {
|
|
12
|
+
for (var name in all) __defProp(target, name, {
|
|
13
|
+
get: all[name],
|
|
14
|
+
enumerable: true
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
var __copyProps = (to, from, except, desc) => {
|
|
18
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
19
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
20
|
+
get: () => from[key],
|
|
21
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
return to;
|
|
25
|
+
};
|
|
26
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
27
|
+
var token_exports = {};
|
|
28
|
+
__export(token_exports, { refreshToken: () => refreshToken });
|
|
29
|
+
module.exports = __toCommonJS(token_exports);
|
|
30
|
+
var import_token_error = require_token_error();
|
|
31
|
+
var import_token_util = require_token_util();
|
|
32
|
+
async function refreshToken(options) {
|
|
33
|
+
let projectId = options?.project;
|
|
34
|
+
let teamId = options?.team;
|
|
35
|
+
if (!projectId && !teamId) {
|
|
36
|
+
const projectInfo = (0, import_token_util.findProjectInfo)();
|
|
37
|
+
projectId = projectInfo.projectId;
|
|
38
|
+
teamId = projectInfo.teamId;
|
|
39
|
+
} else if (!projectId || !teamId) {
|
|
40
|
+
const projectInfo = (0, import_token_util.findProjectInfo)();
|
|
41
|
+
projectId = projectId ?? projectInfo.projectId;
|
|
42
|
+
teamId = teamId ?? projectInfo.teamId;
|
|
43
|
+
}
|
|
44
|
+
if (!projectId) throw new import_token_error.VercelOidcTokenError("Failed to refresh OIDC token: No project specified. Try re-linking your project with `vc link`");
|
|
45
|
+
let maybeToken = (0, import_token_util.loadToken)(projectId);
|
|
46
|
+
if (!maybeToken || (0, import_token_util.isExpired)((0, import_token_util.getTokenPayload)(maybeToken.token), options?.expirationBufferMs)) {
|
|
47
|
+
const authToken = await (0, import_token_util.getVercelToken)({ expirationBufferMs: options?.expirationBufferMs });
|
|
48
|
+
maybeToken = await (0, import_token_util.getVercelOidcToken)(authToken, projectId, teamId);
|
|
49
|
+
if (!maybeToken) throw new import_token_error.VercelOidcTokenError("Failed to refresh OIDC token");
|
|
50
|
+
(0, import_token_util.saveToken)(maybeToken, projectId);
|
|
51
|
+
}
|
|
52
|
+
process.env.VERCEL_OIDC_TOKEN = maybeToken.token;
|
|
53
|
+
}
|
|
54
|
+
0 && (module.exports = { refreshToken });
|
|
55
|
+
}));
|
|
56
|
+
export default require_token();
|
|
57
|
+
export {};
|