@superblocksteam/cli 2.0.106-next.5 → 2.0.106-next.7
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 +1 -3
- package/dist/{acorn-EDFP2NMP.js → acorn-OPZCSTYG.js} +3 -3
- package/dist/{angular-S34NUPXK.js → angular-JLP3RKZK.js} +3 -3
- package/dist/{api-GBFKEFBB.js → api-JLDXTUFL.js} +4 -4
- package/dist/{babel-TMEGIY4U.js → babel-FVAYSPTK.js} +3 -3
- package/dist/{chunk-64RMUSTE.js → chunk-2WWKACJ2.js} +6 -6
- package/dist/{chunk-ZCU76UER.js → chunk-5ZMFXRHW.js} +3 -3
- package/dist/{chunk-7P5XXE7Q.js → chunk-AUV3WDOS.js} +4 -4
- package/dist/{chunk-BM6RZ4S4.js → chunk-BWBZYXU5.js} +3 -3
- package/dist/{chunk-PCV535TS.js → chunk-BYANSVAG.js} +3 -3
- package/dist/{chunk-B5YYICVW.js → chunk-DSGY5JAH.js} +3 -3
- package/dist/{chunk-5GJTZJP4.js → chunk-FHJT33HP.js} +4 -4
- package/dist/{chunk-AV6DBAUX.js → chunk-HZD7ZWC6.js} +4 -4
- package/dist/{chunk-MMN52NEN.js → chunk-II4LCNBM.js} +102 -141
- package/dist/{chunk-MMN52NEN.js.map → chunk-II4LCNBM.js.map} +1 -1
- package/dist/{chunk-Y3FEFHXG.js → chunk-JLROLCEP.js} +6 -6
- package/dist/{chunk-HR6EGXC7.js → chunk-KGR5DCN5.js} +3 -3
- package/dist/{chunk-4TJN2LSR.js → chunk-PY3OWIDM.js} +3 -3
- package/dist/{chunk-DBOAZBDA.js → chunk-Q56KYNGS.js} +3 -3
- package/dist/{chunk-POCQ3R52.js → chunk-T22YBSOZ.js} +3 -3
- package/dist/{chunk-M43CAEHJ.js → chunk-UAG22FZS.js} +2 -2
- package/dist/{chunk-E7CW5SFT.js → chunk-VTXO4JDR.js} +4 -4
- package/dist/{chunk-V4XF3W56.js → chunk-Y3GXLERD.js} +3 -3
- package/dist/{cli-truncate-NRRNQGR4.js → cli-truncate-OGHPFNU6.js} +5 -5
- package/dist/commands/dev-parent.js +2 -2
- package/dist/{dd-trace-GLDHJKXZ.js → dd-trace-YXIIRXVV.js} +7 -7
- package/dist/{dist-N4FO5HB5.js → dist-LDDII4PX.js} +13 -13
- package/dist/{embedded-playwright-mcp-server-NL4LRR52.js → embedded-playwright-mcp-server-5DISRHEH.js} +3 -3
- package/dist/{enquirer-6DC7TDGU.js → enquirer-QINGXDWL.js} +4 -4
- package/dist/{estree-IKGTXHVM.js → estree-M6BQF6KG.js} +3 -3
- package/dist/{flow-VOT6D5DM.js → flow-JLCLR675.js} +3 -3
- package/dist/{getMachineId-bsd-FHMP6FZR.js → getMachineId-bsd-JVP7SDPZ.js} +5 -5
- package/dist/{getMachineId-darwin-2F5WYRC6.js → getMachineId-darwin-6MAOIEBB.js} +5 -5
- package/dist/{getMachineId-linux-5WWMKBVS.js → getMachineId-linux-FBW4JREJ.js} +4 -4
- package/dist/{getMachineId-unsupported-GP7APQH4.js → getMachineId-unsupported-A3UAAG7R.js} +4 -4
- package/dist/{getMachineId-win-K7S2FVSJ.js → getMachineId-win-2QZJGUKI.js} +5 -5
- package/dist/{glimmer-GMPYTK36.js → glimmer-226AW5SK.js} +3 -3
- package/dist/{graphql-M62HJB7I.js → graphql-2XEFI5SS.js} +3 -3
- package/dist/{html-QIFGXOPC.js → html-CSEIJNCQ.js} +3 -3
- package/dist/{http-3UBKSFLG.js → http-QT6UTXZ4.js} +12 -12
- package/dist/index.js +33 -182
- package/dist/index.js.map +1 -1
- package/dist/{jiti-WZOR5MR4.js → jiti-YQX2EMDI.js} +3 -3
- package/dist/{log-update-WETLEYJ7.js → log-update-G3PGSVWS.js} +6 -6
- package/dist/{markdown-I26U52BM.js → markdown-2OWCHQBX.js} +3 -3
- package/dist/{meriyah-5FBJGLJ3.js → meriyah-UYOZJRBS.js} +3 -3
- package/dist/{postcss-GYMRFANZ.js → postcss-LTJAJ5HX.js} +3 -3
- package/dist/{read-pkg-GXXY5LOI.js → read-pkg-G5MAO2UG.js} +5 -5
- package/dist/{spans-UCXHW47G.js → spans-M7K5PCTJ.js} +4 -4
- package/dist/{src-5VKJZ453.js → src-HIWNQ2ZK.js} +3 -3
- package/dist/{token-5U26RZ4H.js → token-2OMWY57H.js} +5 -5
- package/dist/{token-util-JTGG3Z5K.js → token-util-JN27DL5B.js} +5 -5
- package/dist/{typescript-HKDVE4N7.js → typescript-AOTBQ4RS.js} +3 -3
- package/dist/{wrap-ansi-SZDQTLM6.js → wrap-ansi-N7NR2MFH.js} +5 -5
- package/dist/{yaml-EJHCUXLN.js → yaml-7T4RBYWN.js} +3 -3
- package/oclif.manifest.json +7 -8
- package/package.json +5 -5
- /package/dist/{acorn-EDFP2NMP.js.map → acorn-OPZCSTYG.js.map} +0 -0
- /package/dist/{angular-S34NUPXK.js.map → angular-JLP3RKZK.js.map} +0 -0
- /package/dist/{api-GBFKEFBB.js.map → api-JLDXTUFL.js.map} +0 -0
- /package/dist/{babel-TMEGIY4U.js.map → babel-FVAYSPTK.js.map} +0 -0
- /package/dist/{chunk-64RMUSTE.js.map → chunk-2WWKACJ2.js.map} +0 -0
- /package/dist/{chunk-ZCU76UER.js.map → chunk-5ZMFXRHW.js.map} +0 -0
- /package/dist/{chunk-7P5XXE7Q.js.map → chunk-AUV3WDOS.js.map} +0 -0
- /package/dist/{chunk-BM6RZ4S4.js.map → chunk-BWBZYXU5.js.map} +0 -0
- /package/dist/{chunk-PCV535TS.js.map → chunk-BYANSVAG.js.map} +0 -0
- /package/dist/{chunk-B5YYICVW.js.map → chunk-DSGY5JAH.js.map} +0 -0
- /package/dist/{chunk-5GJTZJP4.js.map → chunk-FHJT33HP.js.map} +0 -0
- /package/dist/{chunk-AV6DBAUX.js.map → chunk-HZD7ZWC6.js.map} +0 -0
- /package/dist/{chunk-Y3FEFHXG.js.map → chunk-JLROLCEP.js.map} +0 -0
- /package/dist/{chunk-HR6EGXC7.js.map → chunk-KGR5DCN5.js.map} +0 -0
- /package/dist/{chunk-4TJN2LSR.js.map → chunk-PY3OWIDM.js.map} +0 -0
- /package/dist/{chunk-DBOAZBDA.js.map → chunk-Q56KYNGS.js.map} +0 -0
- /package/dist/{chunk-POCQ3R52.js.map → chunk-T22YBSOZ.js.map} +0 -0
- /package/dist/{chunk-M43CAEHJ.js.map → chunk-UAG22FZS.js.map} +0 -0
- /package/dist/{chunk-E7CW5SFT.js.map → chunk-VTXO4JDR.js.map} +0 -0
- /package/dist/{chunk-V4XF3W56.js.map → chunk-Y3GXLERD.js.map} +0 -0
- /package/dist/{cli-truncate-NRRNQGR4.js.map → cli-truncate-OGHPFNU6.js.map} +0 -0
- /package/dist/{dd-trace-GLDHJKXZ.js.map → dd-trace-YXIIRXVV.js.map} +0 -0
- /package/dist/{dist-N4FO5HB5.js.map → dist-LDDII4PX.js.map} +0 -0
- /package/dist/{embedded-playwright-mcp-server-NL4LRR52.js.map → embedded-playwright-mcp-server-5DISRHEH.js.map} +0 -0
- /package/dist/{enquirer-6DC7TDGU.js.map → enquirer-QINGXDWL.js.map} +0 -0
- /package/dist/{estree-IKGTXHVM.js.map → estree-M6BQF6KG.js.map} +0 -0
- /package/dist/{flow-VOT6D5DM.js.map → flow-JLCLR675.js.map} +0 -0
- /package/dist/{getMachineId-bsd-FHMP6FZR.js.map → getMachineId-bsd-JVP7SDPZ.js.map} +0 -0
- /package/dist/{getMachineId-darwin-2F5WYRC6.js.map → getMachineId-darwin-6MAOIEBB.js.map} +0 -0
- /package/dist/{getMachineId-linux-5WWMKBVS.js.map → getMachineId-linux-FBW4JREJ.js.map} +0 -0
- /package/dist/{getMachineId-unsupported-GP7APQH4.js.map → getMachineId-unsupported-A3UAAG7R.js.map} +0 -0
- /package/dist/{getMachineId-win-K7S2FVSJ.js.map → getMachineId-win-2QZJGUKI.js.map} +0 -0
- /package/dist/{glimmer-GMPYTK36.js.map → glimmer-226AW5SK.js.map} +0 -0
- /package/dist/{graphql-M62HJB7I.js.map → graphql-2XEFI5SS.js.map} +0 -0
- /package/dist/{html-QIFGXOPC.js.map → html-CSEIJNCQ.js.map} +0 -0
- /package/dist/{http-3UBKSFLG.js.map → http-QT6UTXZ4.js.map} +0 -0
- /package/dist/{jiti-WZOR5MR4.js.map → jiti-YQX2EMDI.js.map} +0 -0
- /package/dist/{log-update-WETLEYJ7.js.map → log-update-G3PGSVWS.js.map} +0 -0
- /package/dist/{markdown-I26U52BM.js.map → markdown-2OWCHQBX.js.map} +0 -0
- /package/dist/{meriyah-5FBJGLJ3.js.map → meriyah-UYOZJRBS.js.map} +0 -0
- /package/dist/{postcss-GYMRFANZ.js.map → postcss-LTJAJ5HX.js.map} +0 -0
- /package/dist/{read-pkg-GXXY5LOI.js.map → read-pkg-G5MAO2UG.js.map} +0 -0
- /package/dist/{spans-UCXHW47G.js.map → spans-M7K5PCTJ.js.map} +0 -0
- /package/dist/{src-5VKJZ453.js.map → src-HIWNQ2ZK.js.map} +0 -0
- /package/dist/{token-5U26RZ4H.js.map → token-2OMWY57H.js.map} +0 -0
- /package/dist/{token-util-JTGG3Z5K.js.map → token-util-JN27DL5B.js.map} +0 -0
- /package/dist/{typescript-HKDVE4N7.js.map → typescript-AOTBQ4RS.js.map} +0 -0
- /package/dist/{wrap-ansi-SZDQTLM6.js.map → wrap-ansi-N7NR2MFH.js.map} +0 -0
- /package/dist/{yaml-EJHCUXLN.js.map → yaml-7T4RBYWN.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 = '4e1c623f75f21674a09b339b795dfed9454cd72d';
|
|
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-UAG22FZS.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-2XEFI5SS.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 = '4e1c623f75f21674a09b339b795dfed9454cd72d';
|
|
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-UAG22FZS.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-CSEIJNCQ.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 = '4e1c623f75f21674a09b339b795dfed9454cd72d';
|
|
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-JLROLCEP.js";
|
|
23
|
+
import "./chunk-II4LCNBM.js";
|
|
24
|
+
import "./chunk-T22YBSOZ.js";
|
|
25
|
+
import "./chunk-KGR5DCN5.js";
|
|
26
|
+
import "./chunk-2WWKACJ2.js";
|
|
27
|
+
import "./chunk-5ZMFXRHW.js";
|
|
28
|
+
import "./chunk-Y3GXLERD.js";
|
|
29
|
+
import "./chunk-BYANSVAG.js";
|
|
30
|
+
import "./chunk-PY3OWIDM.js";
|
|
31
31
|
import {
|
|
32
32
|
init_cjs_shims
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-UAG22FZS.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-QT6UTXZ4.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 = '4e1c623f75f21674a09b339b795dfed9454cd72d';
|
|
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-VTXO4JDR.js";
|
|
19
19
|
import {
|
|
20
20
|
AUTO_UPGRADE_EXIT_CODE,
|
|
21
21
|
AuthHotReloadServer,
|
|
@@ -62,7 +62,6 @@ import {
|
|
|
62
62
|
isSocketAlive,
|
|
63
63
|
magenta,
|
|
64
64
|
modeFlagValuesMap,
|
|
65
|
-
preWarmViteCache,
|
|
66
65
|
readApiFromDisk,
|
|
67
66
|
readApplicationFromDisk,
|
|
68
67
|
readMultiPageApplicationFromDisk,
|
|
@@ -79,28 +78,28 @@ import {
|
|
|
79
78
|
writeApplicationToDisk,
|
|
80
79
|
writeResourceToDisk,
|
|
81
80
|
yellow
|
|
82
|
-
} from "./chunk-
|
|
83
|
-
import "./chunk-
|
|
81
|
+
} from "./chunk-II4LCNBM.js";
|
|
82
|
+
import "./chunk-T22YBSOZ.js";
|
|
84
83
|
import {
|
|
85
84
|
require_enquirer
|
|
86
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-Q56KYNGS.js";
|
|
87
86
|
import {
|
|
88
87
|
init_lodash,
|
|
89
88
|
isEmpty_default,
|
|
90
89
|
require_lib
|
|
91
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-KGR5DCN5.js";
|
|
92
91
|
import {
|
|
93
92
|
require_rfdc
|
|
94
|
-
} from "./chunk-
|
|
95
|
-
import "./chunk-
|
|
96
|
-
import "./chunk-
|
|
97
|
-
import "./chunk-
|
|
98
|
-
import "./chunk-
|
|
93
|
+
} from "./chunk-2WWKACJ2.js";
|
|
94
|
+
import "./chunk-5ZMFXRHW.js";
|
|
95
|
+
import "./chunk-Y3GXLERD.js";
|
|
96
|
+
import "./chunk-BYANSVAG.js";
|
|
97
|
+
import "./chunk-PY3OWIDM.js";
|
|
99
98
|
import {
|
|
100
99
|
__commonJS,
|
|
101
100
|
__toESM,
|
|
102
101
|
init_cjs_shims
|
|
103
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-UAG22FZS.js";
|
|
104
103
|
|
|
105
104
|
// ../../../../node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.js
|
|
106
105
|
var require_eventemitter3 = __commonJS({
|
|
@@ -1012,7 +1011,7 @@ async function createPrompt(options, settings) {
|
|
|
1012
1011
|
enquirer3 = settings.enquirer;
|
|
1013
1012
|
} else {
|
|
1014
1013
|
try {
|
|
1015
|
-
enquirer3 = await import("./enquirer-
|
|
1014
|
+
enquirer3 = await import("./enquirer-QINGXDWL.js").then((imported) => imported.default ? new imported.default() : new imported());
|
|
1016
1015
|
} catch (e) {
|
|
1017
1016
|
if (this instanceof TaskWrapper) {
|
|
1018
1017
|
this.task.prompt = new PromptError("Enquirer is a peer dependency that must be installed separately.");
|
|
@@ -1220,9 +1219,9 @@ var _DefaultRenderer = class {
|
|
|
1220
1219
|
return typeof bottomBar === "number" && bottomBar !== 0 || typeof bottomBar === "boolean" && bottomBar !== false || !task.hasTitle();
|
|
1221
1220
|
}
|
|
1222
1221
|
async render() {
|
|
1223
|
-
const { createLogUpdate } = await import("./log-update-
|
|
1224
|
-
const { default: truncate } = await import("./cli-truncate-
|
|
1225
|
-
const { default: wrap } = await import("./wrap-ansi-
|
|
1222
|
+
const { createLogUpdate } = await import("./log-update-G3PGSVWS.js");
|
|
1223
|
+
const { default: truncate } = await import("./cli-truncate-OGHPFNU6.js");
|
|
1224
|
+
const { default: wrap } = await import("./wrap-ansi-N7NR2MFH.js");
|
|
1226
1225
|
this.updater = createLogUpdate(this.logger.process.stdout);
|
|
1227
1226
|
this.truncate = truncate;
|
|
1228
1227
|
this.wrap = wrap;
|
|
@@ -4787,9 +4786,7 @@ var Deploy = class _Deploy extends AuthenticatedCommand {
|
|
|
4787
4786
|
// src/commands/dev.mts
|
|
4788
4787
|
init_cjs_shims();
|
|
4789
4788
|
import * as child_process from "node:child_process";
|
|
4790
|
-
import
|
|
4791
|
-
import * as http from "node:http";
|
|
4792
|
-
import { basename, join as join3, resolve } from "node:path";
|
|
4789
|
+
import { resolve } from "node:path";
|
|
4793
4790
|
import { Flags as Flags6, ux as ux4 } from "@oclif/core";
|
|
4794
4791
|
var import_util13 = __toESM(require_dist2(), 1);
|
|
4795
4792
|
var Dev = class _Dev extends AuthenticatedCommand {
|
|
@@ -4798,8 +4795,6 @@ var Dev = class _Dev extends AuthenticatedCommand {
|
|
|
4798
4795
|
flags;
|
|
4799
4796
|
applicationConfig;
|
|
4800
4797
|
superblocksBaseUrl;
|
|
4801
|
-
warmServer;
|
|
4802
|
-
s3Restored = false;
|
|
4803
4798
|
authHotReloadServer;
|
|
4804
4799
|
getAuthTokenTimeoutMs() {
|
|
4805
4800
|
return 5 * 60 * 1e3;
|
|
@@ -4814,9 +4809,6 @@ var Dev = class _Dev extends AuthenticatedCommand {
|
|
|
4814
4809
|
async init() {
|
|
4815
4810
|
const { flags } = await this.parse(_Dev);
|
|
4816
4811
|
this.flags = flags;
|
|
4817
|
-
if (this.flags.warm) {
|
|
4818
|
-
return;
|
|
4819
|
-
}
|
|
4820
4812
|
let token;
|
|
4821
4813
|
let superblocksBaseUrl;
|
|
4822
4814
|
const branch = await getCurrentBranchInfo();
|
|
@@ -5002,11 +4994,7 @@ var Dev = class _Dev extends AuthenticatedCommand {
|
|
|
5002
4994
|
superblocksPath: resolve(process.argv[1]),
|
|
5003
4995
|
autoUpgradeMode,
|
|
5004
4996
|
sdk,
|
|
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
|
|
4997
|
+
prefetchedApplication
|
|
5010
4998
|
});
|
|
5011
4999
|
}
|
|
5012
5000
|
async onTokenReceived(token) {
|
|
@@ -5037,12 +5025,6 @@ var Dev = class _Dev extends AuthenticatedCommand {
|
|
|
5037
5025
|
description: "The port that the dev server will run on",
|
|
5038
5026
|
hidden: true
|
|
5039
5027
|
}),
|
|
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
|
-
}),
|
|
5046
5028
|
"upload-first": Flags6.boolean({
|
|
5047
5029
|
name: "upload-first",
|
|
5048
5030
|
description: "Upload to Superblocks before starting",
|
|
@@ -5091,10 +5073,6 @@ var Dev = class _Dev extends AuthenticatedCommand {
|
|
|
5091
5073
|
if (!this.flags) {
|
|
5092
5074
|
throw new Error("Flags are not initialized");
|
|
5093
5075
|
}
|
|
5094
|
-
if (this.flags.warm) {
|
|
5095
|
-
await this.runWarmStandby();
|
|
5096
|
-
return;
|
|
5097
|
-
}
|
|
5098
5076
|
if (!this.flags["upload-first"] && !this.flags["download-first"]) {
|
|
5099
5077
|
throw new Error(
|
|
5100
5078
|
"This command requires either the --upload-first or --download-first flag"
|
|
@@ -5180,142 +5158,8 @@ var Dev = class _Dev extends AuthenticatedCommand {
|
|
|
5180
5158
|
tokenManager: this.tokenManager,
|
|
5181
5159
|
getCurrentToken: () => this.getCurrentToken(),
|
|
5182
5160
|
authHotReloadServer: this.authHotReloadServer,
|
|
5183
|
-
autoUpgradeMode: options.autoUpgradeMode
|
|
5184
|
-
existingServer: this.warmServer
|
|
5185
|
-
});
|
|
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
|
-
});
|
|
5161
|
+
autoUpgradeMode: options.autoUpgradeMode
|
|
5239
5162
|
});
|
|
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.initializeTelemetry(activationConfig.token);
|
|
5318
|
-
await this.executeWithToken(activationConfig.token);
|
|
5319
5163
|
}
|
|
5320
5164
|
async spawnAndWaitForChild(previousRunResult, flags) {
|
|
5321
5165
|
let _resolve;
|
|
@@ -5535,6 +5379,10 @@ var Upload2 = class _Upload extends Command6 {
|
|
|
5535
5379
|
char: "u",
|
|
5536
5380
|
description: "URL to upload to",
|
|
5537
5381
|
default: "https://bucketeer.superblocks.com"
|
|
5382
|
+
}),
|
|
5383
|
+
includeSuperblocks: Flags8.boolean({
|
|
5384
|
+
description: "Include the .superblocks directory in the upload (controlled by LD flag superblocks.deploy.include-dot-superblocks)",
|
|
5385
|
+
default: false
|
|
5538
5386
|
})
|
|
5539
5387
|
};
|
|
5540
5388
|
static hidden = true;
|
|
@@ -5550,7 +5398,10 @@ var Upload2 = class _Upload extends Command6 {
|
|
|
5550
5398
|
this.exit(1);
|
|
5551
5399
|
}
|
|
5552
5400
|
const fileRelativePaths = [];
|
|
5553
|
-
const excluded = [".
|
|
5401
|
+
const excluded = [".env", ".git", "node_modules"];
|
|
5402
|
+
if (!flags.includeSuperblocks) {
|
|
5403
|
+
excluded.push(".superblocks");
|
|
5404
|
+
}
|
|
5554
5405
|
await walkThroughDirectory(flags.directory, fileRelativePaths, excluded);
|
|
5555
5406
|
if (fileRelativePaths.length === 0) {
|
|
5556
5407
|
ux6.action.stop();
|
|
@@ -6127,12 +5978,12 @@ var McpServe = class _McpServe extends Command9 {
|
|
|
6127
5978
|
"HTTP transport requires auth token. Pass --http-token <token> or set SUPERBLOCKS_MCP_HTTP_TOKEN."
|
|
6128
5979
|
);
|
|
6129
5980
|
}
|
|
6130
|
-
const { startHttpServer } = await import("./http-
|
|
5981
|
+
const { startHttpServer } = await import("./http-QT6UTXZ4.js");
|
|
6131
5982
|
await startHttpServer({ port: flags.port, authToken: httpToken });
|
|
6132
5983
|
await new Promise(() => {
|
|
6133
5984
|
});
|
|
6134
5985
|
} else {
|
|
6135
|
-
const { startServer } = await import("./dist-
|
|
5986
|
+
const { startServer } = await import("./dist-LDDII4PX.js");
|
|
6136
5987
|
await startServer();
|
|
6137
5988
|
await new Promise((resolve2) => {
|
|
6138
5989
|
process.stdin.once("end", () => resolve2());
|
|
@@ -7615,7 +7466,7 @@ function getResourceIdFromLocation(ctx, resourceLocation) {
|
|
|
7615
7466
|
// src/commands/sync.mts
|
|
7616
7467
|
init_cjs_shims();
|
|
7617
7468
|
import { execFile } from "node:child_process";
|
|
7618
|
-
import * as
|
|
7469
|
+
import * as fs11 from "node:fs/promises";
|
|
7619
7470
|
import * as os from "node:os";
|
|
7620
7471
|
import path17 from "node:path";
|
|
7621
7472
|
import { promisify as promisify2 } from "node:util";
|
|
@@ -7709,7 +7560,7 @@ var Sync = class _Sync extends Command11 {
|
|
|
7709
7560
|
appRelativePath,
|
|
7710
7561
|
requestedSha
|
|
7711
7562
|
}) {
|
|
7712
|
-
const worktreeBase = await
|
|
7563
|
+
const worktreeBase = await fs11.mkdtemp(
|
|
7713
7564
|
path17.join(os.tmpdir(), "superblocks-sync-main-")
|
|
7714
7565
|
);
|
|
7715
7566
|
const worktreePath = path17.join(worktreeBase, "worktree");
|
|
@@ -7769,7 +7620,7 @@ var Sync = class _Sync extends Command11 {
|
|
|
7769
7620
|
);
|
|
7770
7621
|
} catch {
|
|
7771
7622
|
}
|
|
7772
|
-
await
|
|
7623
|
+
await fs11.rm(worktreeBase, { recursive: true, force: true });
|
|
7773
7624
|
}
|
|
7774
7625
|
}
|
|
7775
7626
|
async resolveRepoRoot(localDirectoryPath) {
|
|
@@ -7806,7 +7657,7 @@ var Sync = class _Sync extends Command11 {
|
|
|
7806
7657
|
return snapshotAppPath;
|
|
7807
7658
|
}
|
|
7808
7659
|
const uploadPath = path17.join(worktreeBase, "upload");
|
|
7809
|
-
await
|
|
7660
|
+
await fs11.cp(snapshotAppPath, uploadPath, {
|
|
7810
7661
|
recursive: true,
|
|
7811
7662
|
force: true,
|
|
7812
7663
|
filter: (sourcePath) => path17.basename(sourcePath) !== ".git"
|