@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.
Files changed (147) hide show
  1. package/README.md +1 -1
  2. package/dashboard-dist/CollapsiblePanel-CbUysOp5.js +2 -0
  3. package/dashboard-dist/CompositeRoot-D4sRkYq3.js +1 -0
  4. package/dashboard-dist/Geist-Variable.woff2 +0 -0
  5. package/dashboard-dist/GeistMono-Variable.woff2 +0 -0
  6. package/dashboard-dist/PopoverPopup-CiI2avT_.js +1 -0
  7. package/dashboard-dist/api-reference-B-bZRtNV.js +265 -0
  8. package/dashboard-dist/app.css +2 -2
  9. package/dashboard-dist/app.js +13 -13
  10. package/dashboard-dist/ccount-CcG1m-Yh.js +1 -0
  11. package/dashboard-dist/client-BJJtVSVr.js +1 -0
  12. package/dashboard-dist/core-Z7NJFk0K.js +1 -0
  13. package/dashboard-dist/docs-Dpfc0wJb.js +4 -0
  14. package/dashboard-dist/docs.css +1 -1
  15. package/dashboard-dist/kit.js +1 -0
  16. package/dashboard-dist/popover-BzejBolB.js +1 -0
  17. package/dashboard-dist/react-dom-client.js +3 -0
  18. package/dashboard-dist/react-dom.js +3 -0
  19. package/dashboard-dist/react-jsx-runtime.js +1 -1
  20. package/dashboard-dist/react.js +3 -3
  21. package/dashboard-dist/theme.css +123 -0
  22. package/dist/app-entry2.js +2 -3
  23. package/dist/bin.d.ts +0 -2
  24. package/dist/bin.js +606 -49
  25. package/dist/bin.js.map +1 -1
  26. package/dist/client-contract-file2.js +2 -3
  27. package/dist/client-contract2.js +18 -10
  28. package/dist/client-contract2.js.map +1 -1
  29. package/dist/compiler.d.ts +1 -2
  30. package/dist/compiler.js +1 -1
  31. package/dist/compiler2.js +3 -4
  32. package/dist/config.js +250 -0
  33. package/dist/config.js.map +1 -0
  34. package/dist/dashboard-extension.d.ts +25 -0
  35. package/dist/dashboard.d.ts +2997 -0
  36. package/dist/dev-reporter.d.ts +0 -2
  37. package/dist/dev-reporter.js +1 -2
  38. package/dist/dev-telemetry-store.js +1411 -966
  39. package/dist/dev-telemetry-store.js.map +1 -1
  40. package/dist/dev-telemetry.js +3 -4
  41. package/dist/dev-telemetry.js.map +1 -1
  42. package/dist/dev-worker.js +3 -4
  43. package/dist/emit.d.ts +0 -2
  44. package/dist/index.d.ts +96 -17
  45. package/dist/index.js +4 -5
  46. package/dist/lint/eslint.d.ts +2 -0
  47. package/dist/lint/eslint.js +1 -0
  48. package/dist/lint/oxlint.d.ts +17 -0
  49. package/dist/lint/oxlint.js +18 -0
  50. package/dist/lint/oxlint.js.map +1 -0
  51. package/dist/plugin.d.ts +70 -0
  52. package/dist/plugin.js +64 -0
  53. package/dist/plugin.js.map +1 -0
  54. package/dist/presets.js +1066 -0
  55. package/dist/presets.js.map +1 -0
  56. package/dist/runner.js +114 -32
  57. package/dist/runner.js.map +1 -1
  58. package/dist/vite.d.ts +6 -5
  59. package/dist/vite.js +13 -9
  60. package/dist/vite.js.map +1 -1
  61. package/dist/workflows.d.ts +0 -2
  62. package/dist/workflows2.js +3 -4
  63. package/inspector-dist/client/assets/api.rpc-BvRk9kiK.js +0 -0
  64. package/inspector-dist/client/assets/api.stream._streamId-BvRk9kiK.js +0 -0
  65. package/inspector-dist/client/assets/app-CCzpuUz_.css +2 -0
  66. package/inspector-dist/client/assets/dist-BK8w6xOr.js +3930 -0
  67. package/inspector-dist/client/assets/dist-CG2aVufI.js +197 -0
  68. package/inspector-dist/client/assets/entry.client-D9jbgmTR.js +9391 -0
  69. package/inspector-dist/client/assets/highlighted-body-B3W2YXNL-DYVdwGy2.js +34 -0
  70. package/inspector-dist/client/assets/home-CyjkvtII.js +2883 -0
  71. package/inspector-dist/client/assets/jsx-runtime-CPEah4WQ.js +7084 -0
  72. package/inspector-dist/client/assets/manifest-ba30b52d.js +1 -0
  73. package/inspector-dist/client/assets/mermaid-3ZIDBTTL-Dy6IVqPy.js +1 -0
  74. package/inspector-dist/client/assets/root-8BMab1lL.css +2 -0
  75. package/inspector-dist/client/assets/root-DX9wtogx.js +332 -0
  76. package/inspector-dist/client/assets/run-detail-C69EJGql.js +1549 -0
  77. package/inspector-dist/client/assets/tabs-B6B88IjT.js +75692 -0
  78. package/inspector-dist/client/assets/tabs-L5XKzOpP.css +1 -0
  79. package/inspector-dist/client/assets/world-config-context-C3BqXPIv.js +30 -0
  80. package/inspector-dist/client/assets/zstd-browser-decoder-ByUgcY9H.js +41 -0
  81. package/inspector-dist/server/assets/app-WoDoT62X.js +100155 -0
  82. package/inspector-dist/server/assets/chunk-RLXIAIE6-CbvDIAEa.js +42977 -0
  83. package/inspector-dist/server/assets/dist-BRxZSWUN.js +1140 -0
  84. package/inspector-dist/server/assets/dist-CQnQcIJg.js +199 -0
  85. package/inspector-dist/server/assets/dist-DqRd9pyS.js +1644 -0
  86. package/inspector-dist/server/assets/dist-qR-969AD.js +10327 -0
  87. package/inspector-dist/server/assets/encryption-_PuklZNX.js +888 -0
  88. package/inspector-dist/server/assets/event-metadata-BVakQJ_y.js +147 -0
  89. package/inspector-dist/server/assets/functions-CImcpqNl.js +1172 -0
  90. package/inspector-dist/server/assets/global-singleton-CPirHxFh.js +82 -0
  91. package/inspector-dist/server/assets/highlighted-body-B3W2YXNL-fPMB_t7F.js +36 -0
  92. package/inspector-dist/server/assets/mermaid-3ZIDBTTL-bADXySE3.js +3 -0
  93. package/inspector-dist/server/assets/parse-D9Vvgzt9.js +471 -0
  94. package/inspector-dist/server/assets/rolldown-runtime-CLg409Sh.js +44 -0
  95. package/inspector-dist/server/assets/serialization-format-DDtsVTU1.js +478 -0
  96. package/inspector-dist/server/assets/token-BW4GdQZh.js +62 -0
  97. package/inspector-dist/server/assets/token-D6FXdkJT.js +57 -0
  98. package/inspector-dist/server/assets/token-util-BoNmi-wE.js +457 -0
  99. package/inspector-dist/server/assets/wrapper-wiqsGXcE.js +3626 -0
  100. package/inspector-dist/server/assets/ws-transport-DV7oG4mL.js +29478 -0
  101. package/inspector-dist/server/assets/zstd-browser-decoder-Cswf0KO6.js +40 -0
  102. package/inspector-dist/server/index.js +2 -57
  103. package/package.json +57 -32
  104. package/vite-client.d.ts +1 -1
  105. package/dashboard-dist/CollapsiblePanel-a54TwMKb.js +0 -2
  106. package/dashboard-dist/PopoverPopup-BLzjTqsi.js +0 -1
  107. package/dashboard-dist/api-reference-r893F8zi.js +0 -260
  108. package/dashboard-dist/core-BWAwhSFf.js +0 -1
  109. package/dashboard-dist/docs-CkMy3Y5i.js +0 -4
  110. package/dashboard-dist/preload-helper-CjQDFR0M.js +0 -1
  111. package/dist/bin.d.ts.map +0 -1
  112. package/dist/build.js +0 -119
  113. package/dist/build.js.map +0 -1
  114. package/dist/dev-reporter.d.ts.map +0 -1
  115. package/dist/emit.d.ts.map +0 -1
  116. package/dist/index.d.ts.map +0 -1
  117. package/dist/vite.d.ts.map +0 -1
  118. package/dist/workflows.d.ts.map +0 -1
  119. package/inspector-dist/client/assets/api.rpc-l0sNRNKZ.js +0 -1
  120. package/inspector-dist/client/assets/api.stream._streamId-l0sNRNKZ.js +0 -1
  121. package/inspector-dist/client/assets/app-CY7CQBRo.css +0 -1
  122. package/inspector-dist/client/assets/entry.client-BJ6G3n5t.js +0 -11697
  123. package/inspector-dist/client/assets/highlighted-body-B3W2YXNL-C-3wZnxf.js +0 -19
  124. package/inspector-dist/client/assets/home-CSKAS4P2.js +0 -4979
  125. package/inspector-dist/client/assets/index-DECCyMR0.js +0 -4482
  126. package/inspector-dist/client/assets/index-Dot7CgrA.js +0 -9837
  127. package/inspector-dist/client/assets/index-HqNj_XIX.js +0 -200
  128. package/inspector-dist/client/assets/manifest-4baa7c6f.js +0 -1
  129. package/inspector-dist/client/assets/mermaid-3ZIDBTTL-DC0K8uTy.js +0 -58626
  130. package/inspector-dist/client/assets/mermaid-3ZIDBTTL-F88p7PFX.css +0 -1
  131. package/inspector-dist/client/assets/root-Bmn5n3jF.js +0 -305
  132. package/inspector-dist/client/assets/root-CfCr265_.css +0 -1
  133. package/inspector-dist/client/assets/run-detail-CWoGxu_0.css +0 -1
  134. package/inspector-dist/client/assets/run-detail-Cc7tSGNq.js +0 -6237
  135. package/inspector-dist/client/assets/world-config-context-BAD1QCrR.js +0 -26
  136. package/inspector-dist/client/assets/zstd-browser-decoder-BQoRpP7L.js +0 -28
  137. package/inspector-dist/server/assets/app-C-ZVJtic.js +0 -174880
  138. package/inspector-dist/server/assets/highlighted-body-B3W2YXNL-C8sq8F_D.js +0 -71
  139. package/inspector-dist/server/assets/index-BfLBLRRi.js +0 -204
  140. package/inspector-dist/server/assets/index-BzrGWk7J.js +0 -1164
  141. package/inspector-dist/server/assets/index-CWJr34WJ.js +0 -1296
  142. package/inspector-dist/server/assets/index-CYlmUaKx.js +0 -191
  143. package/inspector-dist/server/assets/mermaid-3ZIDBTTL-Dv5rjfMN.js +0 -58
  144. package/inspector-dist/server/assets/token-DnLp3wBO.js +0 -95
  145. package/inspector-dist/server/assets/token-util-Bpfp-B0w.js +0 -33
  146. package/inspector-dist/server/assets/wrapper-D5LIcZ_u.js +0 -67
  147. package/inspector-dist/server/assets/zstd-browser-decoder-BM8GpVB8.js +0 -77
@@ -1,191 +0,0 @@
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
- };
@@ -1,58 +0,0 @@
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
- };
@@ -1,95 +0,0 @@
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
- };
@@ -1,33 +0,0 @@
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
- };
@@ -1,67 +0,0 @@
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
- };
@@ -1,77 +0,0 @@
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
- };