@superblocksteam/cli 2.0.105-next.4 → 2.0.105-next.5
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/bin/run.js +3 -1
- package/dist/{acorn-BTNM3FZI.js → acorn-6R47IUFK.js} +3 -3
- package/dist/{angular-IAGGJ6XA.js → angular-LVNL3NNR.js} +3 -3
- package/dist/{api-3XZF2X7G.js → api-5LWZ2RJV.js} +4 -4
- package/dist/{babel-IOJIVLBY.js → babel-K6JZSYBV.js} +3 -3
- package/dist/{chunk-7ZHHOLLO.js → chunk-3RV7M2PT.js} +3 -3
- package/dist/{chunk-HYRE2UIV.js → chunk-7M4YHJV2.js} +6 -6
- package/dist/{chunk-MAQLTSHB.js → chunk-AVKVXWKJ.js} +289 -140
- package/dist/{chunk-MAQLTSHB.js.map → chunk-AVKVXWKJ.js.map} +1 -1
- package/dist/{chunk-NBB4O45T.js → chunk-CIJ25SQK.js} +4 -4
- package/dist/{chunk-JQIBWPYB.js → chunk-DKXQ57WS.js} +3 -3
- package/dist/{chunk-OTZCIRJ7.js → chunk-FJUIROKS.js} +221 -119
- package/dist/chunk-FJUIROKS.js.map +1 -0
- package/dist/{chunk-NBOHJQPH.js → chunk-HIJJKWAX.js} +2 -2
- package/dist/{chunk-M62PQGNW.js → chunk-I63GF7VA.js} +3 -3
- package/dist/{chunk-HFEPOUPK.js → chunk-IV6FUXBH.js} +4 -4
- package/dist/{chunk-SP7QB3NW.js → chunk-LUJ4CJWP.js} +3 -3
- package/dist/{chunk-PHWLMXDX.js → chunk-LXPILG67.js} +3 -3
- package/dist/{chunk-UT2PIQQW.js → chunk-OQDZI7FE.js} +3 -3
- package/dist/{chunk-ZPXNALEG.js → chunk-SF4XBYWH.js} +4 -4
- package/dist/{chunk-ODDW4AJL.js → chunk-TGWWMECZ.js} +4 -4
- package/dist/{chunk-35X4GTAC.js → chunk-W6XJS53S.js} +3 -3
- package/dist/{chunk-PQGR3RDY.js → chunk-YBGPQSKP.js} +3 -3
- package/dist/{chunk-O7QEN3UA.js → chunk-YGT4VZZZ.js} +3 -3
- package/dist/{cli-truncate-KPAOSG3Y.js → cli-truncate-7FLT3OMT.js} +5 -5
- package/dist/commands/dev-parent.js +2 -2
- package/dist/{dd-trace-V6PA7MZX.js → dd-trace-KWF2WUPA.js} +7 -7
- package/dist/{dist-TWRJICXC.js → dist-IL6GBI4J.js} +13 -13
- package/dist/{embedded-playwright-mcp-server-FM3NWCX4.js → embedded-playwright-mcp-server-QS5LX4BK.js} +3 -3
- package/dist/{enquirer-XETJUED5.js → enquirer-ZX3MUWXX.js} +4 -4
- package/dist/{estree-P3FRTTSR.js → estree-PVMY34ZL.js} +3 -3
- package/dist/{flow-RKTJXFTE.js → flow-JYIJFJXK.js} +3 -3
- package/dist/{getMachineId-bsd-OMUMBPUC.js → getMachineId-bsd-TYV34NXZ.js} +5 -5
- package/dist/{getMachineId-darwin-54K2BDUE.js → getMachineId-darwin-7SOYKEDM.js} +5 -5
- package/dist/{getMachineId-linux-AWND2HGT.js → getMachineId-linux-VOAZGOQK.js} +4 -4
- package/dist/{getMachineId-unsupported-4AF5C7FT.js → getMachineId-unsupported-KYTYK754.js} +4 -4
- package/dist/{getMachineId-win-7TESEAM6.js → getMachineId-win-ZDDTCX7C.js} +5 -5
- package/dist/{glimmer-VF5APVO2.js → glimmer-O2HVFRLS.js} +3 -3
- package/dist/{graphql-UDCFEARF.js → graphql-6DTV46OU.js} +3 -3
- package/dist/{html-XSCIOP23.js → html-VJSOS5JX.js} +3 -3
- package/dist/{http-RGTHS6J3.js → http-4QAFVIXP.js} +12 -12
- package/dist/index.js +180 -25
- package/dist/index.js.map +1 -1
- package/dist/{jiti-EXDQILFH.js → jiti-XX3MTTOH.js} +3 -3
- package/dist/{log-update-7FW54GKH.js → log-update-GGROIXS7.js} +6 -6
- package/dist/{markdown-CCT4U2OD.js → markdown-573GJL7H.js} +3 -3
- package/dist/{meriyah-JUHUZ7QV.js → meriyah-TN2VK6HX.js} +3 -3
- package/dist/{postcss-F3GU35AQ.js → postcss-3RNLSVAL.js} +3 -3
- package/dist/{read-pkg-OP7WVLBF.js → read-pkg-US2CH2JR.js} +5 -5
- package/dist/{spans-46V2JXGY.js → spans-UIF2GQWZ.js} +4 -4
- package/dist/{src-SSBA3WSK.js → src-S5UPWBUY.js} +3 -3
- package/dist/{token-BG7HAGYR.js → token-FLDOMOR4.js} +5 -5
- package/dist/{token-util-3KK5CXUZ.js → token-util-4CO5DF4C.js} +5 -5
- package/dist/{typescript-POHXZHCC.js → typescript-US5OJORY.js} +3 -3
- package/dist/{wrap-ansi-MQWDKIJQ.js → wrap-ansi-YZ546A5J.js} +5 -5
- package/dist/{yaml-XW544KRJ.js → yaml-3X6V5R6M.js} +3 -3
- package/oclif.manifest.json +8 -1
- package/package.json +5 -5
- package/dist/chunk-OTZCIRJ7.js.map +0 -1
- /package/dist/{acorn-BTNM3FZI.js.map → acorn-6R47IUFK.js.map} +0 -0
- /package/dist/{angular-IAGGJ6XA.js.map → angular-LVNL3NNR.js.map} +0 -0
- /package/dist/{api-3XZF2X7G.js.map → api-5LWZ2RJV.js.map} +0 -0
- /package/dist/{babel-IOJIVLBY.js.map → babel-K6JZSYBV.js.map} +0 -0
- /package/dist/{chunk-7ZHHOLLO.js.map → chunk-3RV7M2PT.js.map} +0 -0
- /package/dist/{chunk-HYRE2UIV.js.map → chunk-7M4YHJV2.js.map} +0 -0
- /package/dist/{chunk-NBB4O45T.js.map → chunk-CIJ25SQK.js.map} +0 -0
- /package/dist/{chunk-JQIBWPYB.js.map → chunk-DKXQ57WS.js.map} +0 -0
- /package/dist/{chunk-NBOHJQPH.js.map → chunk-HIJJKWAX.js.map} +0 -0
- /package/dist/{chunk-M62PQGNW.js.map → chunk-I63GF7VA.js.map} +0 -0
- /package/dist/{chunk-HFEPOUPK.js.map → chunk-IV6FUXBH.js.map} +0 -0
- /package/dist/{chunk-SP7QB3NW.js.map → chunk-LUJ4CJWP.js.map} +0 -0
- /package/dist/{chunk-PHWLMXDX.js.map → chunk-LXPILG67.js.map} +0 -0
- /package/dist/{chunk-UT2PIQQW.js.map → chunk-OQDZI7FE.js.map} +0 -0
- /package/dist/{chunk-ZPXNALEG.js.map → chunk-SF4XBYWH.js.map} +0 -0
- /package/dist/{chunk-ODDW4AJL.js.map → chunk-TGWWMECZ.js.map} +0 -0
- /package/dist/{chunk-35X4GTAC.js.map → chunk-W6XJS53S.js.map} +0 -0
- /package/dist/{chunk-PQGR3RDY.js.map → chunk-YBGPQSKP.js.map} +0 -0
- /package/dist/{chunk-O7QEN3UA.js.map → chunk-YGT4VZZZ.js.map} +0 -0
- /package/dist/{cli-truncate-KPAOSG3Y.js.map → cli-truncate-7FLT3OMT.js.map} +0 -0
- /package/dist/{dd-trace-V6PA7MZX.js.map → dd-trace-KWF2WUPA.js.map} +0 -0
- /package/dist/{dist-TWRJICXC.js.map → dist-IL6GBI4J.js.map} +0 -0
- /package/dist/{embedded-playwright-mcp-server-FM3NWCX4.js.map → embedded-playwright-mcp-server-QS5LX4BK.js.map} +0 -0
- /package/dist/{enquirer-XETJUED5.js.map → enquirer-ZX3MUWXX.js.map} +0 -0
- /package/dist/{estree-P3FRTTSR.js.map → estree-PVMY34ZL.js.map} +0 -0
- /package/dist/{flow-RKTJXFTE.js.map → flow-JYIJFJXK.js.map} +0 -0
- /package/dist/{getMachineId-bsd-OMUMBPUC.js.map → getMachineId-bsd-TYV34NXZ.js.map} +0 -0
- /package/dist/{getMachineId-darwin-54K2BDUE.js.map → getMachineId-darwin-7SOYKEDM.js.map} +0 -0
- /package/dist/{getMachineId-linux-AWND2HGT.js.map → getMachineId-linux-VOAZGOQK.js.map} +0 -0
- /package/dist/{getMachineId-unsupported-4AF5C7FT.js.map → getMachineId-unsupported-KYTYK754.js.map} +0 -0
- /package/dist/{getMachineId-win-7TESEAM6.js.map → getMachineId-win-ZDDTCX7C.js.map} +0 -0
- /package/dist/{glimmer-VF5APVO2.js.map → glimmer-O2HVFRLS.js.map} +0 -0
- /package/dist/{graphql-UDCFEARF.js.map → graphql-6DTV46OU.js.map} +0 -0
- /package/dist/{html-XSCIOP23.js.map → html-VJSOS5JX.js.map} +0 -0
- /package/dist/{http-RGTHS6J3.js.map → http-4QAFVIXP.js.map} +0 -0
- /package/dist/{jiti-EXDQILFH.js.map → jiti-XX3MTTOH.js.map} +0 -0
- /package/dist/{log-update-7FW54GKH.js.map → log-update-GGROIXS7.js.map} +0 -0
- /package/dist/{markdown-CCT4U2OD.js.map → markdown-573GJL7H.js.map} +0 -0
- /package/dist/{meriyah-JUHUZ7QV.js.map → meriyah-TN2VK6HX.js.map} +0 -0
- /package/dist/{postcss-F3GU35AQ.js.map → postcss-3RNLSVAL.js.map} +0 -0
- /package/dist/{read-pkg-OP7WVLBF.js.map → read-pkg-US2CH2JR.js.map} +0 -0
- /package/dist/{spans-46V2JXGY.js.map → spans-UIF2GQWZ.js.map} +0 -0
- /package/dist/{src-SSBA3WSK.js.map → src-S5UPWBUY.js.map} +0 -0
- /package/dist/{token-BG7HAGYR.js.map → token-FLDOMOR4.js.map} +0 -0
- /package/dist/{token-util-3KK5CXUZ.js.map → token-util-4CO5DF4C.js.map} +0 -0
- /package/dist/{typescript-POHXZHCC.js.map → typescript-US5OJORY.js.map} +0 -0
- /package/dist/{wrap-ansi-MQWDKIJQ.js.map → wrap-ansi-YZ546A5J.js.map} +0 -0
- /package/dist/{yaml-XW544KRJ.js.map → yaml-3X6V5R6M.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
if (typeof process === 'object' && process !== null &&
|
|
2
2
|
process.env !== null && typeof process.env === 'object') {
|
|
3
3
|
process.env.DD_GIT_REPOSITORY_URL = 'https://token@github.com/superblocksteam/superblocks.git';
|
|
4
|
-
process.env.DD_GIT_COMMIT_SHA = '
|
|
4
|
+
process.env.DD_GIT_COMMIT_SHA = '8e1822386833b3e535aac72538348bb99b9da073';
|
|
5
5
|
}
|
|
6
6
|
import { createRequire as $dd_createRequire } from 'module';
|
|
7
7
|
import { fileURLToPath as $dd_fileURLToPath } from 'url';
|
|
@@ -12,17 +12,17 @@ globalThis.__dirname ??= $dd_dirname(globalThis.__filename);
|
|
|
12
12
|
|
|
13
13
|
import {
|
|
14
14
|
require_execAsync
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YBGPQSKP.js";
|
|
16
16
|
import {
|
|
17
17
|
esm_exports,
|
|
18
18
|
init_esm
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-3RV7M2PT.js";
|
|
20
20
|
import {
|
|
21
21
|
__commonJS,
|
|
22
22
|
__require,
|
|
23
23
|
__toCommonJS,
|
|
24
24
|
init_cjs_shims
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-HIJJKWAX.js";
|
|
26
26
|
|
|
27
27
|
// ../../../../node_modules/.pnpm/@opentelemetry+resources@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-win.js
|
|
28
28
|
var require_getMachineId_win = __commonJS({
|
|
@@ -54,4 +54,4 @@ var require_getMachineId_win = __commonJS({
|
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
56
|
export default require_getMachineId_win();
|
|
57
|
-
//# sourceMappingURL=getMachineId-win-
|
|
57
|
+
//# sourceMappingURL=getMachineId-win-ZDDTCX7C.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
if (typeof process === 'object' && process !== null &&
|
|
2
2
|
process.env !== null && typeof process.env === 'object') {
|
|
3
3
|
process.env.DD_GIT_REPOSITORY_URL = 'https://token@github.com/superblocksteam/superblocks.git';
|
|
4
|
-
process.env.DD_GIT_COMMIT_SHA = '
|
|
4
|
+
process.env.DD_GIT_COMMIT_SHA = '8e1822386833b3e535aac72538348bb99b9da073';
|
|
5
5
|
}
|
|
6
6
|
import { createRequire as $dd_createRequire } from 'module';
|
|
7
7
|
import { fileURLToPath as $dd_fileURLToPath } from 'url';
|
|
@@ -12,7 +12,7 @@ globalThis.__dirname ??= $dd_dirname(globalThis.__filename);
|
|
|
12
12
|
|
|
13
13
|
import {
|
|
14
14
|
init_cjs_shims
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-HIJJKWAX.js";
|
|
16
16
|
|
|
17
17
|
// ../../../../node_modules/.pnpm/prettier@3.8.1/node_modules/prettier/plugins/glimmer.mjs
|
|
18
18
|
init_cjs_shims();
|
|
@@ -2907,4 +2907,4 @@ export {
|
|
|
2907
2907
|
yr as parsers,
|
|
2908
2908
|
Ai as printers
|
|
2909
2909
|
};
|
|
2910
|
-
//# sourceMappingURL=glimmer-
|
|
2910
|
+
//# sourceMappingURL=glimmer-O2HVFRLS.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
if (typeof process === 'object' && process !== null &&
|
|
2
2
|
process.env !== null && typeof process.env === 'object') {
|
|
3
3
|
process.env.DD_GIT_REPOSITORY_URL = 'https://token@github.com/superblocksteam/superblocks.git';
|
|
4
|
-
process.env.DD_GIT_COMMIT_SHA = '
|
|
4
|
+
process.env.DD_GIT_COMMIT_SHA = '8e1822386833b3e535aac72538348bb99b9da073';
|
|
5
5
|
}
|
|
6
6
|
import { createRequire as $dd_createRequire } from 'module';
|
|
7
7
|
import { fileURLToPath as $dd_fileURLToPath } from 'url';
|
|
@@ -12,7 +12,7 @@ globalThis.__dirname ??= $dd_dirname(globalThis.__filename);
|
|
|
12
12
|
|
|
13
13
|
import {
|
|
14
14
|
init_cjs_shims
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-HIJJKWAX.js";
|
|
16
16
|
|
|
17
17
|
// ../../../../node_modules/.pnpm/prettier@3.8.1/node_modules/prettier/plugins/graphql.mjs
|
|
18
18
|
init_cjs_shims();
|
|
@@ -1279,4 +1279,4 @@ export {
|
|
|
1279
1279
|
he as parsers,
|
|
1280
1280
|
nn as printers
|
|
1281
1281
|
};
|
|
1282
|
-
//# sourceMappingURL=graphql-
|
|
1282
|
+
//# sourceMappingURL=graphql-6DTV46OU.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
if (typeof process === 'object' && process !== null &&
|
|
2
2
|
process.env !== null && typeof process.env === 'object') {
|
|
3
3
|
process.env.DD_GIT_REPOSITORY_URL = 'https://token@github.com/superblocksteam/superblocks.git';
|
|
4
|
-
process.env.DD_GIT_COMMIT_SHA = '
|
|
4
|
+
process.env.DD_GIT_COMMIT_SHA = '8e1822386833b3e535aac72538348bb99b9da073';
|
|
5
5
|
}
|
|
6
6
|
import { createRequire as $dd_createRequire } from 'module';
|
|
7
7
|
import { fileURLToPath as $dd_fileURLToPath } from 'url';
|
|
@@ -12,7 +12,7 @@ globalThis.__dirname ??= $dd_dirname(globalThis.__filename);
|
|
|
12
12
|
|
|
13
13
|
import {
|
|
14
14
|
init_cjs_shims
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-HIJJKWAX.js";
|
|
16
16
|
|
|
17
17
|
// ../../../../node_modules/.pnpm/prettier@3.8.1/node_modules/prettier/plugins/html.mjs
|
|
18
18
|
init_cjs_shims();
|
|
@@ -2946,4 +2946,4 @@ export {
|
|
|
2946
2946
|
Qr as parsers,
|
|
2947
2947
|
Ll as printers
|
|
2948
2948
|
};
|
|
2949
|
-
//# sourceMappingURL=html-
|
|
2949
|
+
//# sourceMappingURL=html-VJSOS5JX.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
if (typeof process === 'object' && process !== null &&
|
|
2
2
|
process.env !== null && typeof process.env === 'object') {
|
|
3
3
|
process.env.DD_GIT_REPOSITORY_URL = 'https://token@github.com/superblocksteam/superblocks.git';
|
|
4
|
-
process.env.DD_GIT_COMMIT_SHA = '
|
|
4
|
+
process.env.DD_GIT_COMMIT_SHA = '8e1822386833b3e535aac72538348bb99b9da073';
|
|
5
5
|
}
|
|
6
6
|
import { createRequire as $dd_createRequire } from 'module';
|
|
7
7
|
import { fileURLToPath as $dd_fileURLToPath } from 'url';
|
|
@@ -19,18 +19,18 @@ import {
|
|
|
19
19
|
package_default,
|
|
20
20
|
resolveProfile,
|
|
21
21
|
toolDefinitions
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-FJUIROKS.js";
|
|
23
|
+
import "./chunk-AVKVXWKJ.js";
|
|
24
|
+
import "./chunk-DKXQ57WS.js";
|
|
25
|
+
import "./chunk-LXPILG67.js";
|
|
26
|
+
import "./chunk-7M4YHJV2.js";
|
|
27
|
+
import "./chunk-OQDZI7FE.js";
|
|
28
|
+
import "./chunk-I63GF7VA.js";
|
|
29
|
+
import "./chunk-LUJ4CJWP.js";
|
|
30
|
+
import "./chunk-3RV7M2PT.js";
|
|
31
31
|
import {
|
|
32
32
|
init_cjs_shims
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-HIJJKWAX.js";
|
|
34
34
|
|
|
35
35
|
// ../mcp-server/dist/http.js
|
|
36
36
|
init_cjs_shims();
|
|
@@ -313,4 +313,4 @@ async function startHttpServer(options = {}) {
|
|
|
313
313
|
export {
|
|
314
314
|
startHttpServer
|
|
315
315
|
};
|
|
316
|
-
//# sourceMappingURL=http-
|
|
316
|
+
//# sourceMappingURL=http-4QAFVIXP.js.map
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
if (typeof process === 'object' && process !== null &&
|
|
2
2
|
process.env !== null && typeof process.env === 'object') {
|
|
3
3
|
process.env.DD_GIT_REPOSITORY_URL = 'https://token@github.com/superblocksteam/superblocks.git';
|
|
4
|
-
process.env.DD_GIT_COMMIT_SHA = '
|
|
4
|
+
process.env.DD_GIT_COMMIT_SHA = '8e1822386833b3e535aac72538348bb99b9da073';
|
|
5
5
|
}
|
|
6
6
|
import { createRequire as $dd_createRequire } from 'module';
|
|
7
7
|
import { fileURLToPath as $dd_fileURLToPath } from 'url';
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
configPathForClient,
|
|
16
16
|
labelForClient,
|
|
17
17
|
mergeMcpConfig
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-IV6FUXBH.js";
|
|
19
19
|
import {
|
|
20
20
|
AUTO_UPGRADE_EXIT_CODE,
|
|
21
21
|
AuthHotReloadServer,
|
|
@@ -62,6 +62,7 @@ import {
|
|
|
62
62
|
isSocketAlive,
|
|
63
63
|
magenta,
|
|
64
64
|
modeFlagValuesMap,
|
|
65
|
+
preWarmViteCache,
|
|
65
66
|
readApiFromDisk,
|
|
66
67
|
readApplicationFromDisk,
|
|
67
68
|
readMultiPageApplicationFromDisk,
|
|
@@ -78,28 +79,28 @@ import {
|
|
|
78
79
|
writeApplicationToDisk,
|
|
79
80
|
writeResourceToDisk,
|
|
80
81
|
yellow
|
|
81
|
-
} from "./chunk-
|
|
82
|
-
import "./chunk-
|
|
82
|
+
} from "./chunk-AVKVXWKJ.js";
|
|
83
|
+
import "./chunk-DKXQ57WS.js";
|
|
83
84
|
import {
|
|
84
85
|
require_enquirer
|
|
85
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-YGT4VZZZ.js";
|
|
86
87
|
import {
|
|
87
88
|
init_lodash,
|
|
88
89
|
isEmpty_default,
|
|
89
90
|
require_lib
|
|
90
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-LXPILG67.js";
|
|
91
92
|
import {
|
|
92
93
|
require_rfdc
|
|
93
|
-
} from "./chunk-
|
|
94
|
-
import "./chunk-
|
|
95
|
-
import "./chunk-
|
|
96
|
-
import "./chunk-
|
|
97
|
-
import "./chunk-
|
|
94
|
+
} from "./chunk-7M4YHJV2.js";
|
|
95
|
+
import "./chunk-OQDZI7FE.js";
|
|
96
|
+
import "./chunk-I63GF7VA.js";
|
|
97
|
+
import "./chunk-LUJ4CJWP.js";
|
|
98
|
+
import "./chunk-3RV7M2PT.js";
|
|
98
99
|
import {
|
|
99
100
|
__commonJS,
|
|
100
101
|
__toESM,
|
|
101
102
|
init_cjs_shims
|
|
102
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-HIJJKWAX.js";
|
|
103
104
|
|
|
104
105
|
// ../../../../node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.js
|
|
105
106
|
var require_eventemitter3 = __commonJS({
|
|
@@ -1011,7 +1012,7 @@ async function createPrompt(options, settings) {
|
|
|
1011
1012
|
enquirer3 = settings.enquirer;
|
|
1012
1013
|
} else {
|
|
1013
1014
|
try {
|
|
1014
|
-
enquirer3 = await import("./enquirer-
|
|
1015
|
+
enquirer3 = await import("./enquirer-ZX3MUWXX.js").then((imported) => imported.default ? new imported.default() : new imported());
|
|
1015
1016
|
} catch (e) {
|
|
1016
1017
|
if (this instanceof TaskWrapper) {
|
|
1017
1018
|
this.task.prompt = new PromptError("Enquirer is a peer dependency that must be installed separately.");
|
|
@@ -1219,9 +1220,9 @@ var _DefaultRenderer = class {
|
|
|
1219
1220
|
return typeof bottomBar === "number" && bottomBar !== 0 || typeof bottomBar === "boolean" && bottomBar !== false || !task.hasTitle();
|
|
1220
1221
|
}
|
|
1221
1222
|
async render() {
|
|
1222
|
-
const { createLogUpdate } = await import("./log-update-
|
|
1223
|
-
const { default: truncate } = await import("./cli-truncate-
|
|
1224
|
-
const { default: wrap } = await import("./wrap-ansi-
|
|
1223
|
+
const { createLogUpdate } = await import("./log-update-GGROIXS7.js");
|
|
1224
|
+
const { default: truncate } = await import("./cli-truncate-7FLT3OMT.js");
|
|
1225
|
+
const { default: wrap } = await import("./wrap-ansi-YZ546A5J.js");
|
|
1225
1226
|
this.updater = createLogUpdate(this.logger.process.stdout);
|
|
1226
1227
|
this.truncate = truncate;
|
|
1227
1228
|
this.wrap = wrap;
|
|
@@ -4786,7 +4787,9 @@ var Deploy = class _Deploy extends AuthenticatedCommand {
|
|
|
4786
4787
|
// src/commands/dev.mts
|
|
4787
4788
|
init_cjs_shims();
|
|
4788
4789
|
import * as child_process from "node:child_process";
|
|
4789
|
-
import
|
|
4790
|
+
import * as fs6 from "node:fs";
|
|
4791
|
+
import * as http from "node:http";
|
|
4792
|
+
import { basename, join as join3, resolve } from "node:path";
|
|
4790
4793
|
import { Flags as Flags6, ux as ux4 } from "@oclif/core";
|
|
4791
4794
|
var import_util13 = __toESM(require_dist2(), 1);
|
|
4792
4795
|
var Dev = class _Dev extends AuthenticatedCommand {
|
|
@@ -4795,6 +4798,8 @@ var Dev = class _Dev extends AuthenticatedCommand {
|
|
|
4795
4798
|
flags;
|
|
4796
4799
|
applicationConfig;
|
|
4797
4800
|
superblocksBaseUrl;
|
|
4801
|
+
warmServer;
|
|
4802
|
+
s3Restored = false;
|
|
4798
4803
|
authHotReloadServer;
|
|
4799
4804
|
getAuthTokenTimeoutMs() {
|
|
4800
4805
|
return 5 * 60 * 1e3;
|
|
@@ -4809,6 +4814,9 @@ var Dev = class _Dev extends AuthenticatedCommand {
|
|
|
4809
4814
|
async init() {
|
|
4810
4815
|
const { flags } = await this.parse(_Dev);
|
|
4811
4816
|
this.flags = flags;
|
|
4817
|
+
if (this.flags.warm) {
|
|
4818
|
+
return;
|
|
4819
|
+
}
|
|
4812
4820
|
let token;
|
|
4813
4821
|
let superblocksBaseUrl;
|
|
4814
4822
|
const branch = await getCurrentBranchInfo();
|
|
@@ -4994,7 +5002,11 @@ var Dev = class _Dev extends AuthenticatedCommand {
|
|
|
4994
5002
|
superblocksPath: resolve(process.argv[1]),
|
|
4995
5003
|
autoUpgradeMode,
|
|
4996
5004
|
sdk,
|
|
4997
|
-
prefetchedApplication
|
|
5005
|
+
prefetchedApplication,
|
|
5006
|
+
// Skip DBFS sync when S3 restored the workspace successfully — files are
|
|
5007
|
+
// already on disk. Fall back to DBFS sync when S3 has no state (first visit)
|
|
5008
|
+
// or S3 is not configured.
|
|
5009
|
+
skipSync: this.warmServer !== void 0 && this.s3Restored
|
|
4998
5010
|
});
|
|
4999
5011
|
}
|
|
5000
5012
|
async onTokenReceived(token) {
|
|
@@ -5025,6 +5037,12 @@ var Dev = class _Dev extends AuthenticatedCommand {
|
|
|
5025
5037
|
description: "The port that the dev server will run on",
|
|
5026
5038
|
hidden: true
|
|
5027
5039
|
}),
|
|
5040
|
+
warm: Flags6.boolean({
|
|
5041
|
+
name: "warm",
|
|
5042
|
+
description: "Start in warm standby mode: pre-loads the server process without auth, then activates on /_sb_activate POST",
|
|
5043
|
+
default: false,
|
|
5044
|
+
hidden: true
|
|
5045
|
+
}),
|
|
5028
5046
|
"upload-first": Flags6.boolean({
|
|
5029
5047
|
name: "upload-first",
|
|
5030
5048
|
description: "Upload to Superblocks before starting",
|
|
@@ -5073,6 +5091,10 @@ var Dev = class _Dev extends AuthenticatedCommand {
|
|
|
5073
5091
|
if (!this.flags) {
|
|
5074
5092
|
throw new Error("Flags are not initialized");
|
|
5075
5093
|
}
|
|
5094
|
+
if (this.flags.warm) {
|
|
5095
|
+
await this.runWarmStandby();
|
|
5096
|
+
return;
|
|
5097
|
+
}
|
|
5076
5098
|
if (!this.flags["upload-first"] && !this.flags["download-first"]) {
|
|
5077
5099
|
throw new Error(
|
|
5078
5100
|
"This command requires either the --upload-first or --download-first flag"
|
|
@@ -5158,9 +5180,142 @@ var Dev = class _Dev extends AuthenticatedCommand {
|
|
|
5158
5180
|
tokenManager: this.tokenManager,
|
|
5159
5181
|
getCurrentToken: () => this.getCurrentToken(),
|
|
5160
5182
|
authHotReloadServer: this.authHotReloadServer,
|
|
5161
|
-
autoUpgradeMode: options.autoUpgradeMode
|
|
5183
|
+
autoUpgradeMode: options.autoUpgradeMode,
|
|
5184
|
+
existingServer: this.warmServer
|
|
5162
5185
|
});
|
|
5163
5186
|
}
|
|
5187
|
+
/**
|
|
5188
|
+
* Warm standby mode: starts a minimal HTTP server that responds to health
|
|
5189
|
+
* checks while the Node.js runtime is fully loaded in memory. When SABS
|
|
5190
|
+
* activates the pod via POST /_sb_activate with session credentials, this
|
|
5191
|
+
* method writes the config files, closes the standby server, and hands off
|
|
5192
|
+
* to the normal `executeWithToken` flow.
|
|
5193
|
+
*
|
|
5194
|
+
* This eliminates the ~1.9s CLI cold-start from the claim-time critical path.
|
|
5195
|
+
*/
|
|
5196
|
+
async runWarmStandby() {
|
|
5197
|
+
const port = this.flags?.port ?? 5173;
|
|
5198
|
+
const logger = this.logger();
|
|
5199
|
+
logger.info(`Starting warm standby server on port ${port}`);
|
|
5200
|
+
const activationConfig = await new Promise((resolveActivation) => {
|
|
5201
|
+
const server = http.createServer((req, res) => {
|
|
5202
|
+
res.setHeader("Cache-Control", "no-store, max-age=0");
|
|
5203
|
+
res.setHeader("x-csb-no-sw-proxy", "1");
|
|
5204
|
+
if (req.url === "/_sb_health" && req.method === "GET") {
|
|
5205
|
+
res.writeHead(503, { "Content-Type": "application/json" });
|
|
5206
|
+
res.end(JSON.stringify({ status: "warming" }));
|
|
5207
|
+
return;
|
|
5208
|
+
}
|
|
5209
|
+
if (req.url === "/_sb_activate" && req.method === "POST") {
|
|
5210
|
+
let body = "";
|
|
5211
|
+
req.on("data", (chunk) => {
|
|
5212
|
+
body += chunk.toString();
|
|
5213
|
+
});
|
|
5214
|
+
req.on("end", () => {
|
|
5215
|
+
try {
|
|
5216
|
+
const config = JSON.parse(body);
|
|
5217
|
+
res.writeHead(200, { "Content-Type": "application/json" });
|
|
5218
|
+
res.end(JSON.stringify({ status: "activating" }));
|
|
5219
|
+
logger.info(
|
|
5220
|
+
"Activation received, transitioning to full dev server"
|
|
5221
|
+
);
|
|
5222
|
+
this.warmServer = server;
|
|
5223
|
+
resolveActivation(config);
|
|
5224
|
+
} catch {
|
|
5225
|
+
res.writeHead(400, { "Content-Type": "application/json" });
|
|
5226
|
+
res.end(JSON.stringify({ error: "invalid JSON body" }));
|
|
5227
|
+
}
|
|
5228
|
+
});
|
|
5229
|
+
return;
|
|
5230
|
+
}
|
|
5231
|
+
res.writeHead(503);
|
|
5232
|
+
res.end();
|
|
5233
|
+
});
|
|
5234
|
+
server.listen(port, () => {
|
|
5235
|
+
logger.info(`Warm standby ready on port ${port}`);
|
|
5236
|
+
preWarmViteCache(process.cwd()).catch(() => {
|
|
5237
|
+
});
|
|
5238
|
+
});
|
|
5239
|
+
});
|
|
5240
|
+
process.env.SUPERBLOCKS_TOKEN = activationConfig.token;
|
|
5241
|
+
process.env.SUPERBLOCKS_BASE_URL = activationConfig.baseUrl;
|
|
5242
|
+
process.env.APPLICATION_ID = activationConfig.applicationId;
|
|
5243
|
+
process.env.BRANCH = activationConfig.branch;
|
|
5244
|
+
if (activationConfig.hostname) {
|
|
5245
|
+
process.env.SABS_LIVE_EDIT_HOSTNAME = activationConfig.hostname;
|
|
5246
|
+
}
|
|
5247
|
+
if (activationConfig.templateName) {
|
|
5248
|
+
process.env.SUPERBLOCKS_APP_TEMPLATE_NAME = activationConfig.templateName;
|
|
5249
|
+
const currentDir = basename(process.cwd());
|
|
5250
|
+
if (currentDir !== activationConfig.templateName) {
|
|
5251
|
+
const targetDir = join3(
|
|
5252
|
+
process.cwd(),
|
|
5253
|
+
"..",
|
|
5254
|
+
activationConfig.templateName
|
|
5255
|
+
);
|
|
5256
|
+
if (fs6.existsSync(targetDir)) {
|
|
5257
|
+
logger.info(
|
|
5258
|
+
`Switching template directory: ${currentDir} -> ${activationConfig.templateName}`
|
|
5259
|
+
);
|
|
5260
|
+
process.chdir(targetDir);
|
|
5261
|
+
} else {
|
|
5262
|
+
logger.warn(
|
|
5263
|
+
`Template directory not found: ${targetDir}, staying in ${currentDir}`
|
|
5264
|
+
);
|
|
5265
|
+
}
|
|
5266
|
+
}
|
|
5267
|
+
}
|
|
5268
|
+
fs6.writeFileSync(
|
|
5269
|
+
(0, import_util13.resolveAuthFilePath)(),
|
|
5270
|
+
JSON.stringify({
|
|
5271
|
+
superblocksBaseUrl: activationConfig.baseUrl,
|
|
5272
|
+
token: activationConfig.token
|
|
5273
|
+
})
|
|
5274
|
+
);
|
|
5275
|
+
const appConfigPath = join3(
|
|
5276
|
+
process.cwd(),
|
|
5277
|
+
".superblocks",
|
|
5278
|
+
"superblocks.json"
|
|
5279
|
+
);
|
|
5280
|
+
if (fs6.existsSync(appConfigPath)) {
|
|
5281
|
+
fs6.writeFileSync(
|
|
5282
|
+
appConfigPath,
|
|
5283
|
+
JSON.stringify({
|
|
5284
|
+
configType: "APPLICATION_V2",
|
|
5285
|
+
id: activationConfig.applicationId
|
|
5286
|
+
})
|
|
5287
|
+
);
|
|
5288
|
+
}
|
|
5289
|
+
const devEnvPath = join3(
|
|
5290
|
+
process.cwd(),
|
|
5291
|
+
"..",
|
|
5292
|
+
"..",
|
|
5293
|
+
".superblocks",
|
|
5294
|
+
"dev-environment.json"
|
|
5295
|
+
);
|
|
5296
|
+
if (fs6.existsSync(devEnvPath)) {
|
|
5297
|
+
fs6.writeFileSync(
|
|
5298
|
+
devEnvPath,
|
|
5299
|
+
JSON.stringify({
|
|
5300
|
+
configType: "DEV_ENVIRONMENT",
|
|
5301
|
+
branch: activationConfig.branch
|
|
5302
|
+
})
|
|
5303
|
+
);
|
|
5304
|
+
}
|
|
5305
|
+
this.s3Restored = activationConfig.s3Restored === true;
|
|
5306
|
+
this.currentToken = activationConfig.token;
|
|
5307
|
+
this.superblocksBaseUrl = activationConfig.baseUrl;
|
|
5308
|
+
this.applicationConfig = {
|
|
5309
|
+
id: activationConfig.applicationId,
|
|
5310
|
+
branchName: activationConfig.branch
|
|
5311
|
+
};
|
|
5312
|
+
this.flags = {
|
|
5313
|
+
...this.flags,
|
|
5314
|
+
"download-first": true,
|
|
5315
|
+
"skip-auto-upgrade": true
|
|
5316
|
+
};
|
|
5317
|
+
await this.executeWithToken(activationConfig.token);
|
|
5318
|
+
}
|
|
5164
5319
|
async spawnAndWaitForChild(previousRunResult, flags) {
|
|
5165
5320
|
let _resolve;
|
|
5166
5321
|
const promise = new Promise((resolve2) => {
|
|
@@ -5971,12 +6126,12 @@ var McpServe = class _McpServe extends Command9 {
|
|
|
5971
6126
|
"HTTP transport requires auth token. Pass --http-token <token> or set SUPERBLOCKS_MCP_HTTP_TOKEN."
|
|
5972
6127
|
);
|
|
5973
6128
|
}
|
|
5974
|
-
const { startHttpServer } = await import("./http-
|
|
6129
|
+
const { startHttpServer } = await import("./http-4QAFVIXP.js");
|
|
5975
6130
|
await startHttpServer({ port: flags.port, authToken: httpToken });
|
|
5976
6131
|
await new Promise(() => {
|
|
5977
6132
|
});
|
|
5978
6133
|
} else {
|
|
5979
|
-
const { startServer } = await import("./dist-
|
|
6134
|
+
const { startServer } = await import("./dist-IL6GBI4J.js");
|
|
5980
6135
|
await startServer();
|
|
5981
6136
|
await new Promise((resolve2) => {
|
|
5982
6137
|
process.stdin.once("end", () => resolve2());
|
|
@@ -7459,7 +7614,7 @@ function getResourceIdFromLocation(ctx, resourceLocation) {
|
|
|
7459
7614
|
// src/commands/sync.mts
|
|
7460
7615
|
init_cjs_shims();
|
|
7461
7616
|
import { execFile } from "node:child_process";
|
|
7462
|
-
import * as
|
|
7617
|
+
import * as fs12 from "node:fs/promises";
|
|
7463
7618
|
import * as os from "node:os";
|
|
7464
7619
|
import path17 from "node:path";
|
|
7465
7620
|
import { promisify as promisify2 } from "node:util";
|
|
@@ -7553,7 +7708,7 @@ var Sync = class _Sync extends Command11 {
|
|
|
7553
7708
|
appRelativePath,
|
|
7554
7709
|
requestedSha
|
|
7555
7710
|
}) {
|
|
7556
|
-
const worktreeBase = await
|
|
7711
|
+
const worktreeBase = await fs12.mkdtemp(
|
|
7557
7712
|
path17.join(os.tmpdir(), "superblocks-sync-main-")
|
|
7558
7713
|
);
|
|
7559
7714
|
const worktreePath = path17.join(worktreeBase, "worktree");
|
|
@@ -7613,7 +7768,7 @@ var Sync = class _Sync extends Command11 {
|
|
|
7613
7768
|
);
|
|
7614
7769
|
} catch {
|
|
7615
7770
|
}
|
|
7616
|
-
await
|
|
7771
|
+
await fs12.rm(worktreeBase, { recursive: true, force: true });
|
|
7617
7772
|
}
|
|
7618
7773
|
}
|
|
7619
7774
|
async resolveRepoRoot(localDirectoryPath) {
|
|
@@ -7650,7 +7805,7 @@ var Sync = class _Sync extends Command11 {
|
|
|
7650
7805
|
return snapshotAppPath;
|
|
7651
7806
|
}
|
|
7652
7807
|
const uploadPath = path17.join(worktreeBase, "upload");
|
|
7653
|
-
await
|
|
7808
|
+
await fs12.cp(snapshotAppPath, uploadPath, {
|
|
7654
7809
|
recursive: true,
|
|
7655
7810
|
force: true,
|
|
7656
7811
|
filter: (sourcePath) => path17.basename(sourcePath) !== ".git"
|