@brickkit/cli 0.11.0 → 0.13.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 (177) hide show
  1. package/dashboard-dist/CollapsiblePanel-CbUysOp5.js +2 -0
  2. package/dashboard-dist/CompositeRoot-D4sRkYq3.js +1 -0
  3. package/dashboard-dist/Geist-Variable.woff2 +0 -0
  4. package/dashboard-dist/GeistMono-Variable.woff2 +0 -0
  5. package/dashboard-dist/PopoverPopup-CiI2avT_.js +1 -0
  6. package/dashboard-dist/api-reference-mT9VNcPb.js +265 -0
  7. package/dashboard-dist/app.css +2 -2
  8. package/dashboard-dist/app.js +12 -13
  9. package/dashboard-dist/ccount-CcG1m-Yh.js +1 -0
  10. package/dashboard-dist/client-CwATkLJa.js +1 -0
  11. package/dashboard-dist/core-BEUWp6B5.js +1 -0
  12. package/dashboard-dist/docs-BRrtyxDB.js +4 -0
  13. package/dashboard-dist/docs.css +1 -1
  14. package/dashboard-dist/kit.js +1 -1
  15. package/dashboard-dist/popover-Bj9x-88h.js +1 -0
  16. package/dist/bin.d.ts +0 -2
  17. package/dist/bin.js +309 -211
  18. package/dist/bin.js.map +1 -1
  19. package/dist/build.js +463 -0
  20. package/dist/build.js.map +1 -0
  21. package/dist/client-contract-file.js +356 -1
  22. package/dist/client-contract-file.js.map +1 -0
  23. package/dist/compiler.d.ts +12 -3
  24. package/dist/compiler.js +1 -1
  25. package/dist/compiler2.js +13 -7
  26. package/dist/compiler2.js.map +1 -1
  27. package/dist/config.d.ts +3 -0
  28. package/dist/config.js +1 -252
  29. package/dist/config2.d.ts +122 -0
  30. package/dist/config2.js +207 -0
  31. package/dist/config2.js.map +1 -0
  32. package/dist/dashboard-extension.d.ts +3 -2
  33. package/dist/{dev-telemetry-store.js → dashboard-host.js} +1381 -1432
  34. package/dist/dashboard-host.js.map +1 -0
  35. package/dist/dashboard-protocol.js +189 -0
  36. package/dist/dashboard-protocol.js.map +1 -0
  37. package/dist/dashboard.d.ts +8 -135
  38. package/dist/definitions.js +33 -0
  39. package/dist/definitions.js.map +1 -0
  40. package/dist/dev-application.js +34 -0
  41. package/dist/dev-application.js.map +1 -0
  42. package/dist/dev-protocol.js +21 -0
  43. package/dist/dev-protocol.js.map +1 -0
  44. package/dist/dev-reporter.d.ts +0 -2
  45. package/dist/dev-reporter.js +3 -3
  46. package/dist/dev-reporter.js.map +1 -1
  47. package/dist/dev-telemetry.js +8 -24
  48. package/dist/dev-telemetry.js.map +1 -1
  49. package/dist/dev-worker.js +80 -21
  50. package/dist/dev-worker.js.map +1 -1
  51. package/dist/index.d.ts +18 -87
  52. package/dist/index.js +12 -6
  53. package/dist/index.js.map +1 -0
  54. package/dist/lint/oxlint.d.ts +0 -2
  55. package/dist/lint/oxlint.js +6 -5
  56. package/dist/lint/oxlint.js.map +1 -1
  57. package/dist/own-module.js +7 -0
  58. package/dist/own-module.js.map +1 -0
  59. package/dist/plugin.d.ts +6 -11
  60. package/dist/plugin.js +6 -42
  61. package/dist/plugin.js.map +1 -1
  62. package/dist/production-dashboard.d.ts +2 -0
  63. package/dist/production-dashboard.js +51 -0
  64. package/dist/production-dashboard.js.map +1 -0
  65. package/dist/production-dashboard2.d.ts +34 -0
  66. package/dist/{presets.js → project.js} +107 -113
  67. package/dist/project.js.map +1 -0
  68. package/dist/serve.d.ts +24 -0
  69. package/dist/serve.js +1 -0
  70. package/dist/serve2.js +49 -0
  71. package/dist/serve2.js.map +1 -0
  72. package/dist/vite.d.ts +0 -2
  73. package/dist/vite.js +28 -51
  74. package/dist/vite.js.map +1 -1
  75. package/dist/workflows.d.ts +2 -4
  76. package/dist/workflows2.js +60 -39
  77. package/dist/workflows2.js.map +1 -1
  78. package/inspector-dist/client/assets/api.rpc-BvRk9kiK.js +0 -0
  79. package/inspector-dist/client/assets/api.stream._streamId-BvRk9kiK.js +0 -0
  80. package/inspector-dist/client/assets/app-CeSwVsRm.css +2 -0
  81. package/inspector-dist/client/assets/dist-BK8w6xOr.js +3930 -0
  82. package/inspector-dist/client/assets/dist-CG2aVufI.js +197 -0
  83. package/inspector-dist/client/assets/entry.client-D9jbgmTR.js +9391 -0
  84. package/inspector-dist/client/assets/highlighted-body-B3W2YXNL-CfRnuITN.js +34 -0
  85. package/inspector-dist/client/assets/home-hwPlkNhv.js +4034 -0
  86. package/inspector-dist/client/assets/jsx-runtime-CPEah4WQ.js +7084 -0
  87. package/inspector-dist/client/assets/manifest-0e76e9ac.js +1 -0
  88. package/inspector-dist/client/assets/mermaid-3ZIDBTTL-ZDR2PNY_.js +1 -0
  89. package/inspector-dist/client/assets/root-ChBNTZd2.css +2 -0
  90. package/inspector-dist/client/assets/root-SLeEf-sT.js +320 -0
  91. package/inspector-dist/client/assets/run-detail-DYbVkIFH.js +1871 -0
  92. package/inspector-dist/client/assets/tabs-CaJisoyb.js +73751 -0
  93. package/inspector-dist/client/assets/tabs-L5XKzOpP.css +1 -0
  94. package/inspector-dist/client/assets/zstd-browser-decoder-D94wmfAU.js +41 -0
  95. package/inspector-dist/server/assets/app-DGlfWVUI.js +99330 -0
  96. package/inspector-dist/server/assets/chunk-RLXIAIE6-F0SJZlei.js +42975 -0
  97. package/inspector-dist/server/assets/dist-BCbwm6jl.js +10325 -0
  98. package/inspector-dist/server/assets/dist-CG2aVufI.js +197 -0
  99. package/inspector-dist/server/assets/dist-Ce0I2PUv.js +1137 -0
  100. package/inspector-dist/server/assets/dist-DY0UlahA.js +1642 -0
  101. package/inspector-dist/server/assets/encryption-DdQgC8Rk.js +886 -0
  102. package/inspector-dist/server/assets/event-metadata-n7E4zEmT.js +145 -0
  103. package/inspector-dist/server/assets/functions-CNVQtbgg.js +1170 -0
  104. package/inspector-dist/server/assets/global-singleton-D8sIN5du.js +80 -0
  105. package/inspector-dist/server/assets/highlighted-body-B3W2YXNL-CWRzMxYD.js +34 -0
  106. package/inspector-dist/server/assets/mermaid-3ZIDBTTL-D0v0ngVr.js +1 -0
  107. package/inspector-dist/server/assets/parse-Begau9cA.js +469 -0
  108. package/inspector-dist/server/assets/rolldown-runtime-C1I3wEg2.js +43 -0
  109. package/inspector-dist/server/assets/serialization-format-BbuGfHog.js +476 -0
  110. package/inspector-dist/server/assets/token-BgMmJNP5.js +60 -0
  111. package/inspector-dist/server/assets/token-BrUX0bxz.js +55 -0
  112. package/inspector-dist/server/assets/token-util-DZN32qmT.js +455 -0
  113. package/inspector-dist/server/assets/wrapper-CIC3w0oC.js +3624 -0
  114. package/inspector-dist/server/assets/ws-transport-CxTYB11n.js +29476 -0
  115. package/inspector-dist/server/assets/zstd-browser-decoder-D7bCXbGg.js +38 -0
  116. package/inspector-dist/server/index.js +1 -58
  117. package/package.json +39 -28
  118. package/vite-client.d.ts +1 -1
  119. package/dashboard-dist/CollapsiblePanel-BX79_W-b.js +0 -2
  120. package/dashboard-dist/CompositeRoot-xzybXjnx.js +0 -1
  121. package/dashboard-dist/PopoverPopup-CvlmC7EL.js +0 -1
  122. package/dashboard-dist/api-reference-BcAYVYwJ.js +0 -260
  123. package/dashboard-dist/core-BGO9JZ1r.js +0 -1
  124. package/dashboard-dist/docs-DHikPD2v.js +0 -4
  125. package/dashboard-dist/popover-DG498XHH.js +0 -1
  126. package/dist/app-entry.js +0 -1
  127. package/dist/app-entry2.js +0 -19
  128. package/dist/app-entry2.js.map +0 -1
  129. package/dist/bin.d.ts.map +0 -1
  130. package/dist/client-contract-file2.js +0 -34
  131. package/dist/client-contract-file2.js.map +0 -1
  132. package/dist/client-contract.js +0 -1
  133. package/dist/client-contract2.js +0 -294
  134. package/dist/client-contract2.js.map +0 -1
  135. package/dist/config.js.map +0 -1
  136. package/dist/dashboard-extension.d.ts.map +0 -1
  137. package/dist/dev-reporter.d.ts.map +0 -1
  138. package/dist/dev-telemetry-store.js.map +0 -1
  139. package/dist/emit.d.ts +0 -7
  140. package/dist/emit.d.ts.map +0 -1
  141. package/dist/index.d.ts.map +0 -1
  142. package/dist/lint/oxlint.d.ts.map +0 -1
  143. package/dist/plugin.d.ts.map +0 -1
  144. package/dist/presets.js.map +0 -1
  145. package/dist/runner.js +0 -523
  146. package/dist/runner.js.map +0 -1
  147. package/dist/vite.d.ts.map +0 -1
  148. package/dist/workflows.d.ts.map +0 -1
  149. package/inspector-dist/client/assets/api.rpc-l0sNRNKZ.js +0 -1
  150. package/inspector-dist/client/assets/api.stream._streamId-l0sNRNKZ.js +0 -1
  151. package/inspector-dist/client/assets/app-CvoGgWcV.css +0 -1
  152. package/inspector-dist/client/assets/entry.client-BJ6G3n5t.js +0 -11697
  153. package/inspector-dist/client/assets/highlighted-body-B3W2YXNL-C-3wZnxf.js +0 -19
  154. package/inspector-dist/client/assets/home-CSKAS4P2.js +0 -4979
  155. package/inspector-dist/client/assets/index-DECCyMR0.js +0 -4482
  156. package/inspector-dist/client/assets/index-Dot7CgrA.js +0 -9837
  157. package/inspector-dist/client/assets/index-HqNj_XIX.js +0 -200
  158. package/inspector-dist/client/assets/manifest-139c9319.js +0 -1
  159. package/inspector-dist/client/assets/mermaid-3ZIDBTTL-DC0K8uTy.js +0 -58626
  160. package/inspector-dist/client/assets/mermaid-3ZIDBTTL-F88p7PFX.css +0 -1
  161. package/inspector-dist/client/assets/root-BMHd_XHz.css +0 -1
  162. package/inspector-dist/client/assets/root-cbi6iYwg.js +0 -305
  163. package/inspector-dist/client/assets/run-detail-CWoGxu_0.css +0 -1
  164. package/inspector-dist/client/assets/run-detail-Cc7tSGNq.js +0 -6237
  165. package/inspector-dist/client/assets/world-config-context-BAD1QCrR.js +0 -26
  166. package/inspector-dist/client/assets/zstd-browser-decoder-BQoRpP7L.js +0 -28
  167. package/inspector-dist/server/assets/app-DUP5RybL.js +0 -174880
  168. package/inspector-dist/server/assets/highlighted-body-B3W2YXNL-D2g4hL2-.js +0 -71
  169. package/inspector-dist/server/assets/index-BfLBLRRi.js +0 -204
  170. package/inspector-dist/server/assets/index-BzrGWk7J.js +0 -1164
  171. package/inspector-dist/server/assets/index-D71yP6AL.js +0 -191
  172. package/inspector-dist/server/assets/index-wGSWRns3.js +0 -1296
  173. package/inspector-dist/server/assets/mermaid-3ZIDBTTL-DsvuKoEV.js +0 -58
  174. package/inspector-dist/server/assets/token-ClUZZwXl.js +0 -95
  175. package/inspector-dist/server/assets/token-util-DSxMZ6nI.js +0 -33
  176. package/inspector-dist/server/assets/wrapper-B3vstpCO.js +0 -67
  177. package/inspector-dist/server/assets/zstd-browser-decoder-Dn82m2BU.js +0 -77
@@ -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-DUP5RybL.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-DUP5RybL.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-DUP5RybL.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-DUP5RybL.js";
6
- import { bn, bo, bp, bq, br, bs, bt } from "./app-DUP5RybL.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-DUP5RybL.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
- };