@brickkit/cli 0.8.2 → 0.9.1
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 +10 -1
- package/dashboard-dist/{CollapsiblePanel-DM8J3g8m.js → CollapsiblePanel-a54TwMKb.js} +1 -1
- package/dashboard-dist/{PopoverPopup-B6eMOlOC.js → PopoverPopup-BLzjTqsi.js} +1 -1
- package/dashboard-dist/{api-reference-wTdT1AVt.js → api-reference-r893F8zi.js} +2 -2
- package/dashboard-dist/app.css +1 -1
- package/dashboard-dist/app.js +13 -13
- package/dashboard-dist/core-BWAwhSFf.js +1 -0
- package/dashboard-dist/{docs-DflzpIIh.js → docs-CkMy3Y5i.js} +1 -1
- package/dashboard-dist/{preload-helper-CVJ-D494.js → preload-helper-CjQDFR0M.js} +1 -1
- package/dist/app-entry2.js +8 -1
- package/dist/app-entry2.js.map +1 -1
- package/dist/bin.js +6 -2
- package/dist/bin.js.map +1 -1
- package/dist/build.js +18 -5
- package/dist/build.js.map +1 -1
- package/dist/dev-telemetry-store.js +148 -5
- package/dist/dev-telemetry-store.js.map +1 -1
- package/dist/dev-telemetry.js.map +1 -1
- package/dist/dev-worker.js +19 -2
- package/dist/dev-worker.js.map +1 -1
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/runner.js +69 -3
- package/dist/runner.js.map +1 -1
- package/dist/workflows.d.ts +61 -0
- package/dist/workflows.d.ts.map +1 -0
- package/dist/workflows.js +1 -0
- package/dist/workflows2.js +298 -0
- package/dist/workflows2.js.map +1 -0
- package/inspector-dist/LICENSE.md +201 -0
- package/inspector-dist/NOTICE +20 -0
- package/inspector-dist/client/assets/api.rpc-l0sNRNKZ.js +1 -0
- package/inspector-dist/client/assets/api.stream._streamId-l0sNRNKZ.js +1 -0
- package/inspector-dist/client/assets/app-CY7CQBRo.css +1 -0
- package/inspector-dist/client/assets/entry.client-BJ6G3n5t.js +11697 -0
- package/inspector-dist/client/assets/highlighted-body-B3W2YXNL-C-3wZnxf.js +19 -0
- package/inspector-dist/client/assets/home-CSKAS4P2.js +4979 -0
- package/inspector-dist/client/assets/index-DECCyMR0.js +4482 -0
- package/inspector-dist/client/assets/index-Dot7CgrA.js +9837 -0
- package/inspector-dist/client/assets/index-HqNj_XIX.js +200 -0
- package/inspector-dist/client/assets/manifest-4baa7c6f.js +1 -0
- package/inspector-dist/client/assets/mermaid-3ZIDBTTL-DC0K8uTy.js +58626 -0
- package/inspector-dist/client/assets/mermaid-3ZIDBTTL-F88p7PFX.css +1 -0
- package/inspector-dist/client/assets/root-Bmn5n3jF.js +305 -0
- package/inspector-dist/client/assets/root-CfCr265_.css +1 -0
- package/inspector-dist/client/assets/run-detail-CWoGxu_0.css +1 -0
- package/inspector-dist/client/assets/run-detail-Cc7tSGNq.js +6237 -0
- package/inspector-dist/client/assets/world-config-context-BAD1QCrR.js +26 -0
- package/inspector-dist/client/assets/zstd-B5R2yJjB.wasm +0 -0
- package/inspector-dist/client/assets/zstd-browser-decoder-BQoRpP7L.js +28 -0
- package/inspector-dist/server/assets/app-C-ZVJtic.js +174880 -0
- package/inspector-dist/server/assets/highlighted-body-B3W2YXNL-C8sq8F_D.js +71 -0
- package/inspector-dist/server/assets/index-BfLBLRRi.js +204 -0
- package/inspector-dist/server/assets/index-BzrGWk7J.js +1164 -0
- package/inspector-dist/server/assets/index-CWJr34WJ.js +1296 -0
- package/inspector-dist/server/assets/index-CYlmUaKx.js +191 -0
- package/inspector-dist/server/assets/mermaid-3ZIDBTTL-Dv5rjfMN.js +58 -0
- package/inspector-dist/server/assets/token-DnLp3wBO.js +95 -0
- package/inspector-dist/server/assets/token-util-Bpfp-B0w.js +33 -0
- package/inspector-dist/server/assets/wrapper-D5LIcZ_u.js +67 -0
- package/inspector-dist/server/assets/zstd-browser-decoder-BM8GpVB8.js +77 -0
- package/inspector-dist/server/index.js +58 -0
- package/package.json +11 -4
- package/dashboard-dist/core-CHWYtApw.js +0 -1
|
@@ -0,0 +1,191 @@
|
|
|
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-C-ZVJtic.js";
|
|
6
|
+
import { A, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, B, s, t, u, v, C, D, w, E, x, y, z, F, G, I, J, K, L, M, 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, aW, aX, aY, aZ, a_, a$, b0, b1, b2, b3, b4, b5, b6, b7, b8, b9, ba, bb, bc, bd, be, bf } from "./app-C-ZVJtic.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:util";
|
|
14
|
+
import "node:async_hooks";
|
|
15
|
+
import "node:module";
|
|
16
|
+
import "node:url";
|
|
17
|
+
import "node:fs";
|
|
18
|
+
import "node:fs/promises";
|
|
19
|
+
import "node:path";
|
|
20
|
+
import "node:os";
|
|
21
|
+
import "node:child_process";
|
|
22
|
+
import "path";
|
|
23
|
+
import "fs";
|
|
24
|
+
import "constants";
|
|
25
|
+
import "assert";
|
|
26
|
+
import "events";
|
|
27
|
+
import "node:timers/promises";
|
|
28
|
+
import "node:buffer";
|
|
29
|
+
import "node:http";
|
|
30
|
+
import "node:https";
|
|
31
|
+
import "node:zlib";
|
|
32
|
+
import "node:assert";
|
|
33
|
+
import "node:net";
|
|
34
|
+
import "node:querystring";
|
|
35
|
+
import "node:events";
|
|
36
|
+
import "node:diagnostics_channel";
|
|
37
|
+
import "node:tls";
|
|
38
|
+
import "node:perf_hooks";
|
|
39
|
+
import "node:util/types";
|
|
40
|
+
import "node:sqlite";
|
|
41
|
+
import "node:worker_threads";
|
|
42
|
+
import "node:console";
|
|
43
|
+
import "node:timers";
|
|
44
|
+
import "node:dns";
|
|
45
|
+
import "os";
|
|
46
|
+
import "module";
|
|
47
|
+
import "assert/strict";
|
|
48
|
+
import "net";
|
|
49
|
+
import "node:assert/strict";
|
|
50
|
+
import "https";
|
|
51
|
+
import "http";
|
|
52
|
+
import "tls";
|
|
53
|
+
import "url";
|
|
54
|
+
import "zlib";
|
|
55
|
+
import "buffer";
|
|
56
|
+
import "node:process";
|
|
57
|
+
export {
|
|
58
|
+
A as ANALYTICS_EVENTS_GET_MANY_LIMIT,
|
|
59
|
+
a as ANALYTICS_MAX_ATTRIBUTE_FILTERS,
|
|
60
|
+
b as ANALYTICS_PAGE_LIMIT,
|
|
61
|
+
c as ANALYTICS_RUN_SCOPED_PAGE_LIMIT,
|
|
62
|
+
d as ATTRIBUTE_EVENT_DATA_MAX_BYTES,
|
|
63
|
+
e as ATTRIBUTE_KEY_MAX_LENGTH,
|
|
64
|
+
f as ATTRIBUTE_MAX_PER_RUN,
|
|
65
|
+
g as ATTRIBUTE_VALUE_MAX_BYTES,
|
|
66
|
+
h as AnalyticsAttributeKeySchema,
|
|
67
|
+
i as AnalyticsEventSchema,
|
|
68
|
+
j as AnalyticsHookSchema,
|
|
69
|
+
k as AnalyticsRunSchema,
|
|
70
|
+
l as AnalyticsStepSchema,
|
|
71
|
+
m as AnalyticsWaitSchema,
|
|
72
|
+
n as AttributeChangeSchema,
|
|
73
|
+
o as AttributeChangesSchema,
|
|
74
|
+
p as AttributeKeySchema,
|
|
75
|
+
q as AttributeValidationError,
|
|
76
|
+
r as AttributeValueSchema,
|
|
77
|
+
B as BULK_CANCEL_MAX_RUN_IDS,
|
|
78
|
+
s as BaseEventSchema,
|
|
79
|
+
t as BulkCancelWorkflowRunResultSchema,
|
|
80
|
+
u as BulkCancelWorkflowRunsRequestSchema,
|
|
81
|
+
v as BulkCancelWorkflowRunsResultSchema,
|
|
82
|
+
C as CHILD_ENTITY_CREATION_EVENT_TYPES,
|
|
83
|
+
D as DEFAULT_TIMESTAMP_THRESHOLD_FUTURE_MS,
|
|
84
|
+
w as DEFAULT_TIMESTAMP_THRESHOLD_PAST_MS,
|
|
85
|
+
E as EVENT_ID_BODY_LENGTH,
|
|
86
|
+
x as EVENT_ID_PREFIX,
|
|
87
|
+
y as EventSchema,
|
|
88
|
+
z as EventTypeSchema,
|
|
89
|
+
F as FIRST_EVENT_SLOT,
|
|
90
|
+
G as HOOK_EVENTS_REQUIRING_EXISTENCE,
|
|
91
|
+
I as HOOK_LIFECYCLE_EVENT_TYPES,
|
|
92
|
+
J as HOOK_RESUME_DEDUP_VERSION,
|
|
93
|
+
K as HOOK_RESUME_INPUT_VERSION,
|
|
94
|
+
L as HealthCheckPayloadSchema,
|
|
95
|
+
M as HookClaimedFromSchema,
|
|
96
|
+
O as HookCreatedEventSchema,
|
|
97
|
+
P as HookResumeCapabilitiesSchema,
|
|
98
|
+
HookSchema,
|
|
99
|
+
Q as IN_BAND_SEQ_AT_RUN_CREATION,
|
|
100
|
+
R as LegacySerializedDataSchemaV1,
|
|
101
|
+
S as MessageId,
|
|
102
|
+
T as NODE_HTTP_DEFAULT,
|
|
103
|
+
U as NODE_HTTP_ENV_VAR,
|
|
104
|
+
V as PARENT_RUN_ID_ATTRIBUTE,
|
|
105
|
+
W as PaginatedResponseSchema,
|
|
106
|
+
X as QueuePayloadSchema,
|
|
107
|
+
Y as QueuePrefix,
|
|
108
|
+
Z as RESERVED_ATTRIBUTE_KEY_PREFIX,
|
|
109
|
+
_ as RETENTION_ATTRIBUTE,
|
|
110
|
+
$ as RETENTION_DEFAULT,
|
|
111
|
+
a0 as RETENTION_ZERO,
|
|
112
|
+
a1 as ROOT_RUN_ID_ATTRIBUTE,
|
|
113
|
+
a2 as RUN_ENTITY_KEY,
|
|
114
|
+
a3 as RunInputSchema,
|
|
115
|
+
a4 as SEALED_LOG_ENV_VAR,
|
|
116
|
+
a5 as SPEC_VERSION_CURRENT,
|
|
117
|
+
a6 as SPEC_VERSION_LEGACY,
|
|
118
|
+
a7 as SPEC_VERSION_MAX_SUPPORTED,
|
|
119
|
+
a8 as SPEC_VERSION_SUPPORTS_ATTRIBUTES,
|
|
120
|
+
a9 as SPEC_VERSION_SUPPORTS_CBOR_QUEUE_TRANSPORT,
|
|
121
|
+
aa as SPEC_VERSION_SUPPORTS_COMPRESSION,
|
|
122
|
+
ab as SPEC_VERSION_SUPPORTS_EVENT_SOURCING,
|
|
123
|
+
ac as SPEC_VERSION_SUPPORTS_HOOK_FORCE_CLAIM,
|
|
124
|
+
ad as SPEC_VERSION_SUPPORTS_SLOT_IDENTITY,
|
|
125
|
+
ae as STEP_EVENT_TYPES,
|
|
126
|
+
af as SerializedDataSchema,
|
|
127
|
+
ag as SnapshotMetadataSchema,
|
|
128
|
+
ah as StepSchema,
|
|
129
|
+
ai as StepStatusSchema,
|
|
130
|
+
aj as StructuredErrorSchema,
|
|
131
|
+
ak as TERMINAL_EVENT_CLASSES,
|
|
132
|
+
al as TERMINAL_RUN_EVENT_TYPES,
|
|
133
|
+
am as TERMINAL_STEP_EVENT_TYPES,
|
|
134
|
+
an as TERMINAL_STEP_STATUSES,
|
|
135
|
+
ao as TERMINAL_WORKFLOW_RUN_STATUSES,
|
|
136
|
+
ap as TerminalRunEventTypeSchema,
|
|
137
|
+
aq as TerminalStepStatusSchema,
|
|
138
|
+
ar as TerminalWorkflowRunStatusSchema,
|
|
139
|
+
as as ValidQueueName,
|
|
140
|
+
at as WAIT_EVENT_TYPES,
|
|
141
|
+
au as WORKFLOW_FLOW_ROUTE,
|
|
142
|
+
av as WaitSchema,
|
|
143
|
+
aw as WaitStatusSchema,
|
|
144
|
+
ax as WorkflowInvokePayloadSchema,
|
|
145
|
+
ay as WorkflowRunBaseSchema,
|
|
146
|
+
az as WorkflowRunSchema,
|
|
147
|
+
aA as WorkflowRunStatusSchema,
|
|
148
|
+
aB as applyAttributeChanges,
|
|
149
|
+
aC as classifyEntityEvent,
|
|
150
|
+
aD as decodeSnapshotEnvelope,
|
|
151
|
+
aE as encodeSnapshotEnvelope,
|
|
152
|
+
aF as entityEventClass,
|
|
153
|
+
aG as entityResolveData,
|
|
154
|
+
aH as envFlag,
|
|
155
|
+
aI as envNumber,
|
|
156
|
+
aJ as eventIdToSlot,
|
|
157
|
+
aK as getEventDataPayloadField,
|
|
158
|
+
aL as getEventDataRefFields,
|
|
159
|
+
aM as getMaxEventsPerRun,
|
|
160
|
+
aN as getQueueTopicPrefix,
|
|
161
|
+
aO as getRunQueueNamespace,
|
|
162
|
+
aP as isChildEntityCreationEvent,
|
|
163
|
+
aQ as isChildEntityCreationEventType,
|
|
164
|
+
aR as isHookEventRequiringExistence,
|
|
165
|
+
aS as isHookLifecycleEventType,
|
|
166
|
+
aT as isLegacySpecVersion,
|
|
167
|
+
aU as isNodeHttpEnabled,
|
|
168
|
+
aV as isSealedNoopEvent,
|
|
169
|
+
aW as isSlotBody,
|
|
170
|
+
aX as isSlotEventId,
|
|
171
|
+
aY as isStepEventType,
|
|
172
|
+
aZ as isTerminalRunEventType,
|
|
173
|
+
a_ as isTerminalStepEventType,
|
|
174
|
+
a$ as isTerminalStepStatus,
|
|
175
|
+
b0 as isTerminalWorkflowRunStatus,
|
|
176
|
+
b1 as isWaitEventType,
|
|
177
|
+
b2 as mintedSpecVersion,
|
|
178
|
+
b3 as parseQueueName,
|
|
179
|
+
b4 as parseQueueRoute,
|
|
180
|
+
b5 as readRunRetention,
|
|
181
|
+
b6 as reenqueueActiveRuns,
|
|
182
|
+
b7 as requiresNewerWorld,
|
|
183
|
+
b8 as resolveQueueNamespace,
|
|
184
|
+
b9 as slotToEventId,
|
|
185
|
+
ba as stripEventDataRefs,
|
|
186
|
+
bb as ulidToDate,
|
|
187
|
+
bc as validateAttributeChanges,
|
|
188
|
+
bd as validateAttributeEventDataSize,
|
|
189
|
+
be as validateUlidTimestamp,
|
|
190
|
+
bf as workflowRunIdSchema
|
|
191
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { createRequire as __wkfCreateRequire } from "node:module";
|
|
2
|
+
if (typeof require === "undefined") {
|
|
3
|
+
globalThis.require = __wkfCreateRequire(import.meta.url);
|
|
4
|
+
}
|
|
5
|
+
import { N as Nt } from "./app-C-ZVJtic.js";
|
|
6
|
+
import "node:stream";
|
|
7
|
+
import "stream";
|
|
8
|
+
import "util";
|
|
9
|
+
import "crypto";
|
|
10
|
+
import "async_hooks";
|
|
11
|
+
import "node:crypto";
|
|
12
|
+
import "node:util";
|
|
13
|
+
import "node:async_hooks";
|
|
14
|
+
import "node:module";
|
|
15
|
+
import "node:url";
|
|
16
|
+
import "node:fs";
|
|
17
|
+
import "node:fs/promises";
|
|
18
|
+
import "node:path";
|
|
19
|
+
import "node:os";
|
|
20
|
+
import "node:child_process";
|
|
21
|
+
import "path";
|
|
22
|
+
import "fs";
|
|
23
|
+
import "constants";
|
|
24
|
+
import "assert";
|
|
25
|
+
import "events";
|
|
26
|
+
import "node:timers/promises";
|
|
27
|
+
import "node:buffer";
|
|
28
|
+
import "node:http";
|
|
29
|
+
import "node:https";
|
|
30
|
+
import "node:zlib";
|
|
31
|
+
import "node:assert";
|
|
32
|
+
import "node:net";
|
|
33
|
+
import "node:querystring";
|
|
34
|
+
import "node:events";
|
|
35
|
+
import "node:diagnostics_channel";
|
|
36
|
+
import "node:tls";
|
|
37
|
+
import "node:perf_hooks";
|
|
38
|
+
import "node:util/types";
|
|
39
|
+
import "node:sqlite";
|
|
40
|
+
import "node:worker_threads";
|
|
41
|
+
import "node:console";
|
|
42
|
+
import "node:timers";
|
|
43
|
+
import "node:dns";
|
|
44
|
+
import "os";
|
|
45
|
+
import "module";
|
|
46
|
+
import "assert/strict";
|
|
47
|
+
import "net";
|
|
48
|
+
import "node:assert/strict";
|
|
49
|
+
import "https";
|
|
50
|
+
import "http";
|
|
51
|
+
import "tls";
|
|
52
|
+
import "url";
|
|
53
|
+
import "zlib";
|
|
54
|
+
import "buffer";
|
|
55
|
+
import "node:process";
|
|
56
|
+
export {
|
|
57
|
+
Nt as Mermaid
|
|
58
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { createRequire as __wkfCreateRequire } from "node:module";
|
|
2
|
+
if (typeof require === "undefined") {
|
|
3
|
+
globalThis.require = __wkfCreateRequire(import.meta.url);
|
|
4
|
+
}
|
|
5
|
+
import { bw as requireTokenError, bv as requireTokenUtil, bu as getDefaultExportFromCjs } from "./app-C-ZVJtic.js";
|
|
6
|
+
function _mergeNamespaces(n, m) {
|
|
7
|
+
for (var i = 0; i < m.length; i++) {
|
|
8
|
+
const e = m[i];
|
|
9
|
+
if (typeof e !== "string" && !Array.isArray(e)) {
|
|
10
|
+
for (const k in e) {
|
|
11
|
+
if (k !== "default" && !(k in n)) {
|
|
12
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
13
|
+
if (d) {
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: () => e[k]
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, { value: "Module" }));
|
|
24
|
+
}
|
|
25
|
+
var token$2;
|
|
26
|
+
var hasRequiredToken;
|
|
27
|
+
function requireToken() {
|
|
28
|
+
if (hasRequiredToken) return token$2;
|
|
29
|
+
hasRequiredToken = 1;
|
|
30
|
+
var __defProp = Object.defineProperty;
|
|
31
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
32
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
33
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
34
|
+
var __export = (target, all) => {
|
|
35
|
+
for (var name in all)
|
|
36
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
37
|
+
};
|
|
38
|
+
var __copyProps = (to, from, except, desc) => {
|
|
39
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
40
|
+
for (let key of __getOwnPropNames(from))
|
|
41
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
42
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
43
|
+
}
|
|
44
|
+
return to;
|
|
45
|
+
};
|
|
46
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
47
|
+
var token_exports = {};
|
|
48
|
+
__export(token_exports, {
|
|
49
|
+
refreshToken: () => refreshToken
|
|
50
|
+
});
|
|
51
|
+
token$2 = __toCommonJS(token_exports);
|
|
52
|
+
var import_token_error = requireTokenError();
|
|
53
|
+
var import_token_util = requireTokenUtil();
|
|
54
|
+
async function refreshToken(options) {
|
|
55
|
+
let projectId = options?.project;
|
|
56
|
+
let teamId = options?.team;
|
|
57
|
+
if (!projectId && !teamId) {
|
|
58
|
+
const projectInfo = (0, import_token_util.findProjectInfo)();
|
|
59
|
+
projectId = projectInfo.projectId;
|
|
60
|
+
teamId = projectInfo.teamId;
|
|
61
|
+
} else if (!projectId || !teamId) {
|
|
62
|
+
const projectInfo = (0, import_token_util.findProjectInfo)();
|
|
63
|
+
projectId = projectId ?? projectInfo.projectId;
|
|
64
|
+
teamId = teamId ?? projectInfo.teamId;
|
|
65
|
+
}
|
|
66
|
+
if (!projectId) {
|
|
67
|
+
throw new import_token_error.VercelOidcTokenError(
|
|
68
|
+
"Failed to refresh OIDC token: No project specified. Try re-linking your project with `vc link`"
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
let maybeToken = (0, import_token_util.loadToken)(projectId);
|
|
72
|
+
if (!maybeToken || (0, import_token_util.isExpired)((0, import_token_util.getTokenPayload)(maybeToken.token), options?.expirationBufferMs)) {
|
|
73
|
+
const authToken = await (0, import_token_util.getVercelToken)({
|
|
74
|
+
expirationBufferMs: options?.expirationBufferMs
|
|
75
|
+
});
|
|
76
|
+
maybeToken = await (0, import_token_util.getVercelOidcToken)(authToken, projectId, teamId);
|
|
77
|
+
if (!maybeToken) {
|
|
78
|
+
throw new import_token_error.VercelOidcTokenError("Failed to refresh OIDC token");
|
|
79
|
+
}
|
|
80
|
+
(0, import_token_util.saveToken)(maybeToken, projectId);
|
|
81
|
+
}
|
|
82
|
+
process.env.VERCEL_OIDC_TOKEN = maybeToken.token;
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
return token$2;
|
|
86
|
+
}
|
|
87
|
+
var tokenExports = requireToken();
|
|
88
|
+
const token = /* @__PURE__ */ getDefaultExportFromCjs(tokenExports);
|
|
89
|
+
const token$1 = /* @__PURE__ */ _mergeNamespaces({
|
|
90
|
+
__proto__: null,
|
|
91
|
+
default: token
|
|
92
|
+
}, [tokenExports]);
|
|
93
|
+
export {
|
|
94
|
+
token$1 as t
|
|
95
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { createRequire as __wkfCreateRequire } from "node:module";
|
|
2
|
+
if (typeof require === "undefined") {
|
|
3
|
+
globalThis.require = __wkfCreateRequire(import.meta.url);
|
|
4
|
+
}
|
|
5
|
+
import { bu as getDefaultExportFromCjs, bv as requireTokenUtil } from "./app-C-ZVJtic.js";
|
|
6
|
+
function _mergeNamespaces(n, m) {
|
|
7
|
+
for (var i = 0; i < m.length; i++) {
|
|
8
|
+
const e = m[i];
|
|
9
|
+
if (typeof e !== "string" && !Array.isArray(e)) {
|
|
10
|
+
for (const k in e) {
|
|
11
|
+
if (k !== "default" && !(k in n)) {
|
|
12
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
13
|
+
if (d) {
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: () => e[k]
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, { value: "Module" }));
|
|
24
|
+
}
|
|
25
|
+
var tokenUtilExports = requireTokenUtil();
|
|
26
|
+
const tokenUtil = /* @__PURE__ */ getDefaultExportFromCjs(tokenUtilExports);
|
|
27
|
+
const tokenUtil$1 = /* @__PURE__ */ _mergeNamespaces({
|
|
28
|
+
__proto__: null,
|
|
29
|
+
default: tokenUtil
|
|
30
|
+
}, [tokenUtilExports]);
|
|
31
|
+
export {
|
|
32
|
+
tokenUtil$1 as t
|
|
33
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { createRequire as __wkfCreateRequire } from "node:module";
|
|
2
|
+
if (typeof require === "undefined") {
|
|
3
|
+
globalThis.require = __wkfCreateRequire(import.meta.url);
|
|
4
|
+
}
|
|
5
|
+
import { bm as WebSocket } from "./app-C-ZVJtic.js";
|
|
6
|
+
import { bn, bo, bp, bq, br, bs, bt } from "./app-C-ZVJtic.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:util";
|
|
14
|
+
import "node:async_hooks";
|
|
15
|
+
import "node:module";
|
|
16
|
+
import "node:url";
|
|
17
|
+
import "node:fs";
|
|
18
|
+
import "node:fs/promises";
|
|
19
|
+
import "node:path";
|
|
20
|
+
import "node:os";
|
|
21
|
+
import "node:child_process";
|
|
22
|
+
import "path";
|
|
23
|
+
import "fs";
|
|
24
|
+
import "constants";
|
|
25
|
+
import "assert";
|
|
26
|
+
import "events";
|
|
27
|
+
import "node:timers/promises";
|
|
28
|
+
import "node:buffer";
|
|
29
|
+
import "node:http";
|
|
30
|
+
import "node:https";
|
|
31
|
+
import "node:zlib";
|
|
32
|
+
import "node:assert";
|
|
33
|
+
import "node:net";
|
|
34
|
+
import "node:querystring";
|
|
35
|
+
import "node:events";
|
|
36
|
+
import "node:diagnostics_channel";
|
|
37
|
+
import "node:tls";
|
|
38
|
+
import "node:perf_hooks";
|
|
39
|
+
import "node:util/types";
|
|
40
|
+
import "node:sqlite";
|
|
41
|
+
import "node:worker_threads";
|
|
42
|
+
import "node:console";
|
|
43
|
+
import "node:timers";
|
|
44
|
+
import "node:dns";
|
|
45
|
+
import "os";
|
|
46
|
+
import "module";
|
|
47
|
+
import "assert/strict";
|
|
48
|
+
import "net";
|
|
49
|
+
import "node:assert/strict";
|
|
50
|
+
import "https";
|
|
51
|
+
import "http";
|
|
52
|
+
import "tls";
|
|
53
|
+
import "url";
|
|
54
|
+
import "zlib";
|
|
55
|
+
import "buffer";
|
|
56
|
+
import "node:process";
|
|
57
|
+
export {
|
|
58
|
+
bn as PerMessageDeflate,
|
|
59
|
+
bo as Receiver,
|
|
60
|
+
bp as Sender,
|
|
61
|
+
WebSocket,
|
|
62
|
+
bq as WebSocketServer,
|
|
63
|
+
br as createWebSocketStream,
|
|
64
|
+
WebSocket as default,
|
|
65
|
+
bs as extension,
|
|
66
|
+
bt as subprotocol
|
|
67
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { createRequire as __wkfCreateRequire } from "node:module";
|
|
2
|
+
if (typeof require === "undefined") {
|
|
3
|
+
globalThis.require = __wkfCreateRequire(import.meta.url);
|
|
4
|
+
}
|
|
5
|
+
import { bl as registerZstdDecoder } from "./app-C-ZVJtic.js";
|
|
6
|
+
import "node:stream";
|
|
7
|
+
import "stream";
|
|
8
|
+
import "util";
|
|
9
|
+
import "crypto";
|
|
10
|
+
import "async_hooks";
|
|
11
|
+
import "node:crypto";
|
|
12
|
+
import "node:util";
|
|
13
|
+
import "node:async_hooks";
|
|
14
|
+
import "node:module";
|
|
15
|
+
import "node:url";
|
|
16
|
+
import "node:fs";
|
|
17
|
+
import "node:fs/promises";
|
|
18
|
+
import "node:path";
|
|
19
|
+
import "node:os";
|
|
20
|
+
import "node:child_process";
|
|
21
|
+
import "path";
|
|
22
|
+
import "fs";
|
|
23
|
+
import "constants";
|
|
24
|
+
import "assert";
|
|
25
|
+
import "events";
|
|
26
|
+
import "node:timers/promises";
|
|
27
|
+
import "node:buffer";
|
|
28
|
+
import "node:http";
|
|
29
|
+
import "node:https";
|
|
30
|
+
import "node:zlib";
|
|
31
|
+
import "node:assert";
|
|
32
|
+
import "node:net";
|
|
33
|
+
import "node:querystring";
|
|
34
|
+
import "node:events";
|
|
35
|
+
import "node:diagnostics_channel";
|
|
36
|
+
import "node:tls";
|
|
37
|
+
import "node:perf_hooks";
|
|
38
|
+
import "node:util/types";
|
|
39
|
+
import "node:sqlite";
|
|
40
|
+
import "node:worker_threads";
|
|
41
|
+
import "node:console";
|
|
42
|
+
import "node:timers";
|
|
43
|
+
import "node:dns";
|
|
44
|
+
import "os";
|
|
45
|
+
import "module";
|
|
46
|
+
import "assert/strict";
|
|
47
|
+
import "net";
|
|
48
|
+
import "node:assert/strict";
|
|
49
|
+
import "https";
|
|
50
|
+
import "http";
|
|
51
|
+
import "tls";
|
|
52
|
+
import "url";
|
|
53
|
+
import "zlib";
|
|
54
|
+
import "buffer";
|
|
55
|
+
import "node:process";
|
|
56
|
+
let registered = false;
|
|
57
|
+
let modulePromise;
|
|
58
|
+
function loadWasmModule() {
|
|
59
|
+
if (!modulePromise) {
|
|
60
|
+
const url = new URL("@tootallnate/zstd-wasm/zstd.wasm", import.meta.url);
|
|
61
|
+
modulePromise = fetch(url).then((res) => res.arrayBuffer()).then((bytes) => WebAssembly.compile(bytes));
|
|
62
|
+
}
|
|
63
|
+
return modulePromise;
|
|
64
|
+
}
|
|
65
|
+
function ensureZstdDecoderRegistered() {
|
|
66
|
+
if (registered)
|
|
67
|
+
return;
|
|
68
|
+
registered = true;
|
|
69
|
+
registerZstdDecoder(async (payload) => {
|
|
70
|
+
const { decompressBytes } = await import("./index-BfLBLRRi.js");
|
|
71
|
+
const wasmModule = await loadWasmModule();
|
|
72
|
+
return decompressBytes(wasmModule, payload);
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
export {
|
|
76
|
+
ensureZstdDecoderRegistered
|
|
77
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { createRequire as __wkfCreateRequire } from "node:module";
|
|
2
|
+
if (typeof require === "undefined") {
|
|
3
|
+
globalThis.require = __wkfCreateRequire(import.meta.url);
|
|
4
|
+
}
|
|
5
|
+
import { bx } from "./assets/app-C-ZVJtic.js";
|
|
6
|
+
import "node:stream";
|
|
7
|
+
import "stream";
|
|
8
|
+
import "util";
|
|
9
|
+
import "crypto";
|
|
10
|
+
import "async_hooks";
|
|
11
|
+
import "node:crypto";
|
|
12
|
+
import "node:util";
|
|
13
|
+
import "node:async_hooks";
|
|
14
|
+
import "node:module";
|
|
15
|
+
import "node:url";
|
|
16
|
+
import "node:fs";
|
|
17
|
+
import "node:fs/promises";
|
|
18
|
+
import "node:path";
|
|
19
|
+
import "node:os";
|
|
20
|
+
import "node:child_process";
|
|
21
|
+
import "path";
|
|
22
|
+
import "fs";
|
|
23
|
+
import "constants";
|
|
24
|
+
import "assert";
|
|
25
|
+
import "events";
|
|
26
|
+
import "node:timers/promises";
|
|
27
|
+
import "node:buffer";
|
|
28
|
+
import "node:http";
|
|
29
|
+
import "node:https";
|
|
30
|
+
import "node:zlib";
|
|
31
|
+
import "node:assert";
|
|
32
|
+
import "node:net";
|
|
33
|
+
import "node:querystring";
|
|
34
|
+
import "node:events";
|
|
35
|
+
import "node:diagnostics_channel";
|
|
36
|
+
import "node:tls";
|
|
37
|
+
import "node:perf_hooks";
|
|
38
|
+
import "node:util/types";
|
|
39
|
+
import "node:sqlite";
|
|
40
|
+
import "node:worker_threads";
|
|
41
|
+
import "node:console";
|
|
42
|
+
import "node:timers";
|
|
43
|
+
import "node:dns";
|
|
44
|
+
import "os";
|
|
45
|
+
import "module";
|
|
46
|
+
import "assert/strict";
|
|
47
|
+
import "net";
|
|
48
|
+
import "node:assert/strict";
|
|
49
|
+
import "https";
|
|
50
|
+
import "http";
|
|
51
|
+
import "tls";
|
|
52
|
+
import "url";
|
|
53
|
+
import "zlib";
|
|
54
|
+
import "buffer";
|
|
55
|
+
import "node:process";
|
|
56
|
+
export {
|
|
57
|
+
bx as createFetchHandler
|
|
58
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brickkit/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"description": "CLI and server engine for Brick-TS",
|
|
5
5
|
"homepage": "https://brickkit.dev",
|
|
6
6
|
"keywords": [
|
|
@@ -42,6 +42,10 @@
|
|
|
42
42
|
},
|
|
43
43
|
"./vite/client": {
|
|
44
44
|
"types": "./vite-client.d.ts"
|
|
45
|
+
},
|
|
46
|
+
"./workflows": {
|
|
47
|
+
"import": "./dist/workflows.js",
|
|
48
|
+
"types": "./dist/workflows.d.ts"
|
|
45
49
|
}
|
|
46
50
|
},
|
|
47
51
|
"publishConfig": {
|
|
@@ -50,6 +54,7 @@
|
|
|
50
54
|
"files": [
|
|
51
55
|
"dist",
|
|
52
56
|
"dashboard-dist",
|
|
57
|
+
"inspector-dist",
|
|
53
58
|
"vite-client.d.ts"
|
|
54
59
|
],
|
|
55
60
|
"repository": {
|
|
@@ -58,7 +63,7 @@
|
|
|
58
63
|
"directory": "packages/cli"
|
|
59
64
|
},
|
|
60
65
|
"scripts": {
|
|
61
|
-
"build": "bun scripts/build-dashboard.ts && tsdown",
|
|
66
|
+
"build": "bun scripts/build-inspector.ts && bun scripts/build-dashboard.ts && tsdown",
|
|
62
67
|
"prepublishOnly": "bun run build",
|
|
63
68
|
"typecheck": "tsc --noEmit -p tsconfig.build.json && tsc --noEmit -p dashboard/tsconfig.json",
|
|
64
69
|
"lint": "oxlint .",
|
|
@@ -67,7 +72,7 @@
|
|
|
67
72
|
"format:check": "oxfmt --check ."
|
|
68
73
|
},
|
|
69
74
|
"dependencies": {
|
|
70
|
-
"@brickkit/core": "^0.
|
|
75
|
+
"@brickkit/core": "^0.9.1",
|
|
71
76
|
"@opentelemetry/api": "^1.9.1",
|
|
72
77
|
"@opentelemetry/context-async-hooks": "^2.12.0",
|
|
73
78
|
"@opentelemetry/core": "^2.12.0",
|
|
@@ -85,6 +90,7 @@
|
|
|
85
90
|
"@types/react": "^19.3.0",
|
|
86
91
|
"@types/react-dom": "^19.3.0",
|
|
87
92
|
"@vitejs/plugin-react": "^6.1.2",
|
|
93
|
+
"@workflow/builders": "5.0.5",
|
|
88
94
|
"class-variance-authority": "^0.7.1",
|
|
89
95
|
"clsx": "^2.1.1",
|
|
90
96
|
"fumadocs-core": "16.17.2",
|
|
@@ -103,7 +109,8 @@
|
|
|
103
109
|
"tsdown": "^0.23.1",
|
|
104
110
|
"tw-animate-css": "^1.4.0",
|
|
105
111
|
"typescript": "^5.7.0",
|
|
106
|
-
"vite": "^8.3.4"
|
|
112
|
+
"vite": "^8.3.4",
|
|
113
|
+
"workflow": "5.2.2"
|
|
107
114
|
},
|
|
108
115
|
"peerDependencies": {
|
|
109
116
|
"@mdx-js/mdx": "^3.0.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{w as isSpecialLang}from"./api-reference-wTdT1AVt.js";
|