@superblocksteam/cli 2.0.124-next.0 → 2.0.124-next.2
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/dist/{acorn-I7LW2FZG.js → acorn-RRQBNGZD.js} +3 -3
- package/dist/{angular-VTZIPRQU.js → angular-UHO3MYA5.js} +3 -3
- package/dist/{api-VHDFNHLS.js → api-2ZHDSMZ4.js} +4 -4
- package/dist/{babel-2UVZQSYJ.js → babel-F3XXE66L.js} +3 -3
- package/dist/{chunk-GZLLYBZV.js → chunk-32WC6HAR.js} +4 -4
- package/dist/{chunk-JLXZ3WAU.js → chunk-47C2G5DU.js} +4 -4
- package/dist/{chunk-RXY6UUIK.js → chunk-4LB54TDK.js} +3 -3
- package/dist/{chunk-YKAQXRBT.js → chunk-7THBUQBJ.js} +3 -3
- package/dist/{chunk-QNDAYZSF.js → chunk-CPRJ6TXX.js} +6 -6
- package/dist/{chunk-QGKZQEHG.js → chunk-EQYHM5DX.js} +3 -3
- package/dist/{chunk-W6BSLSFB.js → chunk-FLU6CADI.js} +2 -2
- package/dist/{chunk-UVFJBAOS.js → chunk-FXHUMW2K.js} +3 -3
- package/dist/{chunk-M2SI4WRB.js → chunk-H5OG4ZR5.js} +3 -3
- package/dist/{chunk-3GQYYNTU.js → chunk-H5X6IVOV.js} +169 -63
- package/dist/{chunk-3GQYYNTU.js.map → chunk-H5X6IVOV.js.map} +1 -1
- package/dist/{chunk-AGGT27D6.js → chunk-JXOQL4OB.js} +4 -4
- package/dist/{chunk-VVIDGKBM.js → chunk-LBNTZYSC.js} +6 -6
- package/dist/{chunk-ZPKHY4TR.js → chunk-LEEWY6AR.js} +3 -3
- package/dist/{chunk-VMVCTMUD.js → chunk-OCP6DHSU.js} +4 -4
- package/dist/{chunk-HBV3OFIW.js → chunk-T7F3ANPA.js} +3 -3
- package/dist/{chunk-FI2KBYYW.js → chunk-WS3XYVSX.js} +3 -3
- package/dist/{chunk-CHCNUJBS.js → chunk-Y2S3ZA5I.js} +3 -3
- package/dist/{cli-truncate-QP2QXANK.js → cli-truncate-UYNY4GIB.js} +5 -5
- package/dist/commands/dev-parent.js +2 -2
- package/dist/{dd-trace-JWH4DKVT.js → dd-trace-HQIJFVAG.js} +7 -7
- package/dist/{dist-KNNVUVMT.js → dist-MRF53NFL.js} +13 -13
- package/dist/{embedded-playwright-mcp-server-OD6TPDSE.js → embedded-playwright-mcp-server-WLS4YWM6.js} +3 -3
- package/dist/{enquirer-6ISHOQH6.js → enquirer-O7E4DHUA.js} +4 -4
- package/dist/{estree-F7YRBMH4.js → estree-FXKP33XD.js} +3 -3
- package/dist/{flow-C6HMOQMX.js → flow-N32PMPPF.js} +3 -3
- package/dist/{getMachineId-bsd-5OF7DQSS.js → getMachineId-bsd-PDY3Z4OQ.js} +5 -5
- package/dist/{getMachineId-darwin-B5XTIQSJ.js → getMachineId-darwin-UTSWABXK.js} +5 -5
- package/dist/{getMachineId-linux-E5TSUEUB.js → getMachineId-linux-K5GPQ4EP.js} +4 -4
- package/dist/{getMachineId-unsupported-G5Q2YKAA.js → getMachineId-unsupported-A26ZITNG.js} +4 -4
- package/dist/{getMachineId-win-CVE4IXUV.js → getMachineId-win-DW7JXQ7A.js} +5 -5
- package/dist/{glimmer-PSKFK3H7.js → glimmer-3UBLRKBU.js} +3 -3
- package/dist/{graphql-YJCYUY3C.js → graphql-DAK7JNGW.js} +3 -3
- package/dist/{html-NWFMJ2IC.js → html-MHBBFYZN.js} +3 -3
- package/dist/{http-5NOPISSU.js → http-DCCUILA4.js} +12 -12
- package/dist/index.js +18 -18
- package/dist/{jiti-FIVQTCZJ.js → jiti-MBSFAMDQ.js} +3 -3
- package/dist/{log-update-TS5KW5A5.js → log-update-XOGQITIJ.js} +6 -6
- package/dist/{markdown-GFSHWVVT.js → markdown-62E67PQJ.js} +3 -3
- package/dist/{meriyah-ULFR2VN4.js → meriyah-MA7VWKPN.js} +3 -3
- package/dist/{postcss-PE32FW56.js → postcss-PI4WHXKU.js} +3 -3
- package/dist/{read-pkg-UY2WG3MO.js → read-pkg-PAHVAIXB.js} +5 -5
- package/dist/{spans-TQTQLIFS.js → spans-7AKJMIJN.js} +4 -4
- package/dist/{src-6HTRCZ34.js → src-ZZBEYAJC.js} +3 -3
- package/dist/{token-CHDYJV5Z.js → token-6Y7XVLN2.js} +5 -5
- package/dist/{token-util-DEC5MK7D.js → token-util-P5QSCC6E.js} +5 -5
- package/dist/{typescript-G2NIDHKU.js → typescript-OJRG5VA4.js} +3 -3
- package/dist/{wrap-ansi-IOKHO7PU.js → wrap-ansi-QPPCVY4B.js} +5 -5
- package/dist/{yaml-PIU5OO2X.js → yaml-VX4J4IIB.js} +3 -3
- package/oclif.manifest.json +1 -1
- package/package.json +6 -6
- /package/dist/{acorn-I7LW2FZG.js.map → acorn-RRQBNGZD.js.map} +0 -0
- /package/dist/{angular-VTZIPRQU.js.map → angular-UHO3MYA5.js.map} +0 -0
- /package/dist/{api-VHDFNHLS.js.map → api-2ZHDSMZ4.js.map} +0 -0
- /package/dist/{babel-2UVZQSYJ.js.map → babel-F3XXE66L.js.map} +0 -0
- /package/dist/{chunk-GZLLYBZV.js.map → chunk-32WC6HAR.js.map} +0 -0
- /package/dist/{chunk-JLXZ3WAU.js.map → chunk-47C2G5DU.js.map} +0 -0
- /package/dist/{chunk-RXY6UUIK.js.map → chunk-4LB54TDK.js.map} +0 -0
- /package/dist/{chunk-YKAQXRBT.js.map → chunk-7THBUQBJ.js.map} +0 -0
- /package/dist/{chunk-QNDAYZSF.js.map → chunk-CPRJ6TXX.js.map} +0 -0
- /package/dist/{chunk-QGKZQEHG.js.map → chunk-EQYHM5DX.js.map} +0 -0
- /package/dist/{chunk-W6BSLSFB.js.map → chunk-FLU6CADI.js.map} +0 -0
- /package/dist/{chunk-UVFJBAOS.js.map → chunk-FXHUMW2K.js.map} +0 -0
- /package/dist/{chunk-M2SI4WRB.js.map → chunk-H5OG4ZR5.js.map} +0 -0
- /package/dist/{chunk-AGGT27D6.js.map → chunk-JXOQL4OB.js.map} +0 -0
- /package/dist/{chunk-VVIDGKBM.js.map → chunk-LBNTZYSC.js.map} +0 -0
- /package/dist/{chunk-ZPKHY4TR.js.map → chunk-LEEWY6AR.js.map} +0 -0
- /package/dist/{chunk-VMVCTMUD.js.map → chunk-OCP6DHSU.js.map} +0 -0
- /package/dist/{chunk-HBV3OFIW.js.map → chunk-T7F3ANPA.js.map} +0 -0
- /package/dist/{chunk-FI2KBYYW.js.map → chunk-WS3XYVSX.js.map} +0 -0
- /package/dist/{chunk-CHCNUJBS.js.map → chunk-Y2S3ZA5I.js.map} +0 -0
- /package/dist/{cli-truncate-QP2QXANK.js.map → cli-truncate-UYNY4GIB.js.map} +0 -0
- /package/dist/{dd-trace-JWH4DKVT.js.map → dd-trace-HQIJFVAG.js.map} +0 -0
- /package/dist/{dist-KNNVUVMT.js.map → dist-MRF53NFL.js.map} +0 -0
- /package/dist/{embedded-playwright-mcp-server-OD6TPDSE.js.map → embedded-playwright-mcp-server-WLS4YWM6.js.map} +0 -0
- /package/dist/{enquirer-6ISHOQH6.js.map → enquirer-O7E4DHUA.js.map} +0 -0
- /package/dist/{estree-F7YRBMH4.js.map → estree-FXKP33XD.js.map} +0 -0
- /package/dist/{flow-C6HMOQMX.js.map → flow-N32PMPPF.js.map} +0 -0
- /package/dist/{getMachineId-bsd-5OF7DQSS.js.map → getMachineId-bsd-PDY3Z4OQ.js.map} +0 -0
- /package/dist/{getMachineId-darwin-B5XTIQSJ.js.map → getMachineId-darwin-UTSWABXK.js.map} +0 -0
- /package/dist/{getMachineId-linux-E5TSUEUB.js.map → getMachineId-linux-K5GPQ4EP.js.map} +0 -0
- /package/dist/{getMachineId-unsupported-G5Q2YKAA.js.map → getMachineId-unsupported-A26ZITNG.js.map} +0 -0
- /package/dist/{getMachineId-win-CVE4IXUV.js.map → getMachineId-win-DW7JXQ7A.js.map} +0 -0
- /package/dist/{glimmer-PSKFK3H7.js.map → glimmer-3UBLRKBU.js.map} +0 -0
- /package/dist/{graphql-YJCYUY3C.js.map → graphql-DAK7JNGW.js.map} +0 -0
- /package/dist/{html-NWFMJ2IC.js.map → html-MHBBFYZN.js.map} +0 -0
- /package/dist/{http-5NOPISSU.js.map → http-DCCUILA4.js.map} +0 -0
- /package/dist/{jiti-FIVQTCZJ.js.map → jiti-MBSFAMDQ.js.map} +0 -0
- /package/dist/{log-update-TS5KW5A5.js.map → log-update-XOGQITIJ.js.map} +0 -0
- /package/dist/{markdown-GFSHWVVT.js.map → markdown-62E67PQJ.js.map} +0 -0
- /package/dist/{meriyah-ULFR2VN4.js.map → meriyah-MA7VWKPN.js.map} +0 -0
- /package/dist/{postcss-PE32FW56.js.map → postcss-PI4WHXKU.js.map} +0 -0
- /package/dist/{read-pkg-UY2WG3MO.js.map → read-pkg-PAHVAIXB.js.map} +0 -0
- /package/dist/{spans-TQTQLIFS.js.map → spans-7AKJMIJN.js.map} +0 -0
- /package/dist/{src-6HTRCZ34.js.map → src-ZZBEYAJC.js.map} +0 -0
- /package/dist/{token-CHDYJV5Z.js.map → token-6Y7XVLN2.js.map} +0 -0
- /package/dist/{token-util-DEC5MK7D.js.map → token-util-P5QSCC6E.js.map} +0 -0
- /package/dist/{typescript-G2NIDHKU.js.map → typescript-OJRG5VA4.js.map} +0 -0
- /package/dist/{wrap-ansi-IOKHO7PU.js.map → wrap-ansi-QPPCVY4B.js.map} +0 -0
- /package/dist/{yaml-PIU5OO2X.js.map → yaml-VX4J4IIB.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 = '36ea08033df95228dd9094cc777fe04bccc51b56';
|
|
5
5
|
}
|
|
6
6
|
import { createRequire as $dd_createRequire } from 'module';
|
|
7
7
|
import { fileURLToPath as $dd_fileURLToPath } from 'url';
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
require_re,
|
|
23
23
|
require_semver,
|
|
24
24
|
require_valid
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-WS3XYVSX.js";
|
|
26
26
|
import {
|
|
27
27
|
debounce_default,
|
|
28
28
|
get_default,
|
|
@@ -39,23 +39,23 @@ import {
|
|
|
39
39
|
require_lib,
|
|
40
40
|
require_slugify,
|
|
41
41
|
throttle_default
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-Y2S3ZA5I.js";
|
|
43
43
|
import {
|
|
44
44
|
require_dd_trace,
|
|
45
45
|
require_js_yaml,
|
|
46
46
|
require_module_details_from_path,
|
|
47
47
|
require_p_limit,
|
|
48
48
|
require_path_to_regexp
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-LBNTZYSC.js";
|
|
50
50
|
import {
|
|
51
51
|
require_commonjs
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-EQYHM5DX.js";
|
|
53
53
|
import {
|
|
54
54
|
require_dc_polyfill
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-T7F3ANPA.js";
|
|
56
56
|
import {
|
|
57
57
|
require_token_error
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-FXHUMW2K.js";
|
|
59
59
|
import {
|
|
60
60
|
SpanKind,
|
|
61
61
|
SpanStatusCode,
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
init_esm,
|
|
66
66
|
metrics,
|
|
67
67
|
trace
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-LEEWY6AR.js";
|
|
69
69
|
import {
|
|
70
70
|
__commonJS,
|
|
71
71
|
__esm,
|
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
__toCommonJS,
|
|
75
75
|
__toESM,
|
|
76
76
|
init_cjs_shims
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-FLU6CADI.js";
|
|
78
78
|
|
|
79
79
|
// ../../../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/constants.js
|
|
80
80
|
var require_constants3 = __commonJS({
|
|
@@ -42348,6 +42348,7 @@ var require_rbac = __commonJS({
|
|
|
42348
42348
|
ResourceTypeEnum2["INTEGRATIONS_DEFAULT_AI"] = "integrations.default_ai";
|
|
42349
42349
|
ResourceTypeEnum2["LOGS"] = "logs";
|
|
42350
42350
|
ResourceTypeEnum2["LOGS_STREAMS"] = "logs.streams";
|
|
42351
|
+
ResourceTypeEnum2["NPM_REGISTRY"] = "npm_registry";
|
|
42351
42352
|
ResourceTypeEnum2["ORGANIZATION"] = "org";
|
|
42352
42353
|
ResourceTypeEnum2["ORGANIZATION_USERS"] = "org.users";
|
|
42353
42354
|
ResourceTypeEnum2["ORG_KNOWLEDGE"] = "org_knowledge";
|
|
@@ -42477,6 +42478,9 @@ var require_rbac = __commonJS({
|
|
|
42477
42478
|
MANAGE: ActionTypeEnum.MANAGE,
|
|
42478
42479
|
READ: ActionTypeEnum.READ
|
|
42479
42480
|
},
|
|
42481
|
+
NPM_REGISTRY: {
|
|
42482
|
+
MANAGE: ActionTypeEnum.MANAGE
|
|
42483
|
+
},
|
|
42480
42484
|
SCHEDULED_JOBS: {
|
|
42481
42485
|
CREATE: ActionTypeEnum.CREATE,
|
|
42482
42486
|
DELETE: ActionTypeEnum.DELETE,
|
|
@@ -97014,15 +97018,15 @@ var require_api_files = __commonJS({
|
|
|
97014
97018
|
exports.readAppApiYamlFile = readAppApiYamlFile4;
|
|
97015
97019
|
exports.resolveLanguageSpecificStepContentFromBlocks = resolveLanguageSpecificStepContentFromBlocks2;
|
|
97016
97020
|
async function writeApiFiles3(...args) {
|
|
97017
|
-
const esmFunction = await import("./api-
|
|
97021
|
+
const esmFunction = await import("./api-2ZHDSMZ4.js");
|
|
97018
97022
|
return esmFunction.writeApiFiles(...args);
|
|
97019
97023
|
}
|
|
97020
97024
|
async function readAppApiYamlFile4(...args) {
|
|
97021
|
-
const esmFunction = await import("./api-
|
|
97025
|
+
const esmFunction = await import("./api-2ZHDSMZ4.js");
|
|
97022
97026
|
return esmFunction.readAppApiYamlFile(...args);
|
|
97023
97027
|
}
|
|
97024
97028
|
async function resolveLanguageSpecificStepContentFromBlocks2(...args) {
|
|
97025
|
-
const esmFunction = await import("./api-
|
|
97029
|
+
const esmFunction = await import("./api-2ZHDSMZ4.js");
|
|
97026
97030
|
return esmFunction.resolveLanguageSpecificStepContentFromBlocks(...args);
|
|
97027
97031
|
}
|
|
97028
97032
|
}
|
|
@@ -103612,19 +103616,19 @@ var require_getMachineId = __commonJS({
|
|
|
103612
103616
|
if (!getMachineIdImpl) {
|
|
103613
103617
|
switch (process5.platform) {
|
|
103614
103618
|
case "darwin":
|
|
103615
|
-
getMachineIdImpl = (await import("./getMachineId-darwin-
|
|
103619
|
+
getMachineIdImpl = (await import("./getMachineId-darwin-UTSWABXK.js")).getMachineId;
|
|
103616
103620
|
break;
|
|
103617
103621
|
case "linux":
|
|
103618
|
-
getMachineIdImpl = (await import("./getMachineId-linux-
|
|
103622
|
+
getMachineIdImpl = (await import("./getMachineId-linux-K5GPQ4EP.js")).getMachineId;
|
|
103619
103623
|
break;
|
|
103620
103624
|
case "freebsd":
|
|
103621
|
-
getMachineIdImpl = (await import("./getMachineId-bsd-
|
|
103625
|
+
getMachineIdImpl = (await import("./getMachineId-bsd-PDY3Z4OQ.js")).getMachineId;
|
|
103622
103626
|
break;
|
|
103623
103627
|
case "win32":
|
|
103624
|
-
getMachineIdImpl = (await import("./getMachineId-win-
|
|
103628
|
+
getMachineIdImpl = (await import("./getMachineId-win-DW7JXQ7A.js")).getMachineId;
|
|
103625
103629
|
break;
|
|
103626
103630
|
default:
|
|
103627
|
-
getMachineIdImpl = (await import("./getMachineId-unsupported-
|
|
103631
|
+
getMachineIdImpl = (await import("./getMachineId-unsupported-A26ZITNG.js")).getMachineId;
|
|
103628
103632
|
break;
|
|
103629
103633
|
}
|
|
103630
103634
|
}
|
|
@@ -182582,8 +182586,8 @@ var require_get_vercel_oidc_token = __commonJS({
|
|
|
182582
182586
|
}
|
|
182583
182587
|
try {
|
|
182584
182588
|
const [{ getTokenPayload, isExpired }, { refreshToken }] = await Promise.all([
|
|
182585
|
-
await import("./token-util-
|
|
182586
|
-
await import("./token-
|
|
182589
|
+
await import("./token-util-P5QSCC6E.js"),
|
|
182590
|
+
await import("./token-6Y7XVLN2.js")
|
|
182587
182591
|
]);
|
|
182588
182592
|
if (!token2 || isExpired(getTokenPayload(token2))) {
|
|
182589
182593
|
await refreshToken();
|
|
@@ -437970,7 +437974,7 @@ var require_config_loader = __commonJS({
|
|
|
437970
437974
|
* @returns {Promise<{createJiti: Function|undefined, version: string;}>} A promise that fulfills with an object containing the jiti module's createJiti function and version.
|
|
437971
437975
|
*/
|
|
437972
437976
|
static async loadJiti() {
|
|
437973
|
-
const { createJiti } = await import("./jiti-
|
|
437977
|
+
const { createJiti } = await import("./jiti-MBSFAMDQ.js");
|
|
437974
437978
|
const version4 = require_package5().version;
|
|
437975
437979
|
return { createJiti, version: version4 };
|
|
437976
437980
|
}
|
|
@@ -438299,7 +438303,7 @@ var require_eslint_helpers = __commonJS({
|
|
|
438299
438303
|
}
|
|
438300
438304
|
async function globMatch({ basePath, pattern }) {
|
|
438301
438305
|
let found = false;
|
|
438302
|
-
const { hfs } = await import("./src-
|
|
438306
|
+
const { hfs } = await import("./src-ZZBEYAJC.js");
|
|
438303
438307
|
const patternToUse = normalizeToPosix(path78.relative(basePath, pattern));
|
|
438304
438308
|
const matcher = new Minimatch2(patternToUse, MINIMATCH_OPTIONS);
|
|
438305
438309
|
const walkSettings = {
|
|
@@ -438339,7 +438343,7 @@ var require_eslint_helpers = __commonJS({
|
|
|
438339
438343
|
return new Minimatch2(patternToUse, MINIMATCH_OPTIONS);
|
|
438340
438344
|
});
|
|
438341
438345
|
const unmatchedPatterns = /* @__PURE__ */ new Set([...relativeToPatterns.keys()]);
|
|
438342
|
-
const { hfs } = await import("./src-
|
|
438346
|
+
const { hfs } = await import("./src-ZZBEYAJC.js");
|
|
438343
438347
|
const walk2 = hfs.walk(basePath, {
|
|
438344
438348
|
async directoryFilter(entry) {
|
|
438345
438349
|
if (!matchers.some((matcher) => matcher.match(entry.path, true))) {
|
|
@@ -494603,7 +494607,7 @@ init_cjs_shims();
|
|
|
494603
494607
|
// ../sdk/package.json
|
|
494604
494608
|
var package_default = {
|
|
494605
494609
|
name: "@superblocksteam/sdk",
|
|
494606
|
-
version: "2.0.124-next.
|
|
494610
|
+
version: "2.0.124-next.2",
|
|
494607
494611
|
description: "Superblocks JS SDK",
|
|
494608
494612
|
homepage: "https://www.superblocks.com",
|
|
494609
494613
|
license: "Superblocks Community Software License",
|
|
@@ -494965,7 +494969,7 @@ var config = void 0;
|
|
|
494965
494969
|
var configured = false;
|
|
494966
494970
|
var ddTracePromise = void 0;
|
|
494967
494971
|
async function getDdTrace() {
|
|
494968
|
-
ddTracePromise ??= import("./dd-trace-
|
|
494972
|
+
ddTracePromise ??= import("./dd-trace-HQIJFVAG.js").then((module) => module.default);
|
|
494969
494973
|
return await ddTracePromise;
|
|
494970
494974
|
}
|
|
494971
494975
|
var deploymentType = (() => {
|
|
@@ -503430,6 +503434,28 @@ init_cjs_shims();
|
|
|
503430
503434
|
// ../../../library-shared/dist/types/parent-messages.js
|
|
503431
503435
|
init_cjs_shims();
|
|
503432
503436
|
|
|
503437
|
+
// ../../../library-shared/dist/types/protected-packages.js
|
|
503438
|
+
init_cjs_shims();
|
|
503439
|
+
var PROTECTED_PACKAGE_SCOPE = "@superblocksteam/";
|
|
503440
|
+
var PROTECTED_CORE_PACKAGES = [
|
|
503441
|
+
"react",
|
|
503442
|
+
"react-dom",
|
|
503443
|
+
"react-router",
|
|
503444
|
+
"react-router-dom",
|
|
503445
|
+
"vite",
|
|
503446
|
+
"typescript",
|
|
503447
|
+
"@tailwindcss/vite",
|
|
503448
|
+
"tailwindcss"
|
|
503449
|
+
];
|
|
503450
|
+
function packageNameFromSpec(spec) {
|
|
503451
|
+
const at5 = spec.indexOf("@", spec.startsWith("@") ? 1 : 0);
|
|
503452
|
+
return at5 === -1 ? spec : spec.slice(0, at5);
|
|
503453
|
+
}
|
|
503454
|
+
function isProtectedCorePackage(nameOrSpec) {
|
|
503455
|
+
const name17 = packageNameFromSpec(nameOrSpec.trim());
|
|
503456
|
+
return name17.startsWith(PROTECTED_PACKAGE_SCOPE) || PROTECTED_CORE_PACKAGES.includes(name17);
|
|
503457
|
+
}
|
|
503458
|
+
|
|
503433
503459
|
// ../../../library-shared/dist/types/routing.js
|
|
503434
503460
|
init_cjs_shims();
|
|
503435
503461
|
|
|
@@ -520312,7 +520338,7 @@ var MAX_ATTRIBUTE_LENGTH = 64e3;
|
|
|
520312
520338
|
var LLMObsSpanWriter = null;
|
|
520313
520339
|
async function loadLLMObsSpanWriter() {
|
|
520314
520340
|
if (!LLMObsSpanWriter) {
|
|
520315
|
-
const module = await import("./spans-
|
|
520341
|
+
const module = await import("./spans-7AKJMIJN.js");
|
|
520316
520342
|
LLMObsSpanWriter = module.default;
|
|
520317
520343
|
}
|
|
520318
520344
|
return LLMObsSpanWriter;
|
|
@@ -545790,6 +545816,7 @@ function buildBlockedMessage(err) {
|
|
|
545790
545816
|
const safeHost = err.registryHost ? sanitizeForAgentMessage(err.registryHost) : "";
|
|
545791
545817
|
const host = safeHost ? ` (registry: ${safeHost})` : "";
|
|
545792
545818
|
const packagesPhrase = err.packages.length > 0 ? err.packages.map((p3) => `\`${sanitizeForAgentMessage(p3)}\``).join(", ") : "the requested package";
|
|
545819
|
+
const protectedCorePackageGuidance = err.packages.some((p3) => isProtectedCorePackage(p3)) ? ` One or more of these are core app dependencies (\`@superblocksteam/*\` packages, ${PROTECTED_CORE_PACKAGES.join(", ")}). Never suggest uninstalling, replacing, or refactoring the app away from a core dependency; an org admin must make it available in the registry.` : "";
|
|
545793
545820
|
const hasRows = err.hasAnyRegistryConfigured !== false;
|
|
545794
545821
|
const hostIsPublic = isPublicNpmHost(err.registryHost);
|
|
545795
545822
|
const hostIsKnown = !!err.registryHost;
|
|
@@ -545800,12 +545827,12 @@ function buildBlockedMessage(err) {
|
|
|
545800
545827
|
if (privateHostWithRows) {
|
|
545801
545828
|
return {
|
|
545802
545829
|
variant: "private_mirror_hint",
|
|
545803
|
-
message: `The npm registry${host} returned 404 for ${packagesPhrase}. This may be a typo, an unpublished package, or a package that has not been mirrored into your private registry. Stop and confirm with the user before trying a different package \u2014 and if the package name is correct, an org admin may need to mirror it into your private registry
|
|
545830
|
+
message: `The npm registry${host} returned 404 for ${packagesPhrase}. This may be a typo, an unpublished package, or a package that has not been mirrored into your private registry. Stop and confirm with the user before trying a different package \u2014 and if the package name is correct, an org admin may need to mirror it into your private registry.${protectedCorePackageGuidance}`
|
|
545804
545831
|
};
|
|
545805
545832
|
}
|
|
545806
545833
|
return {
|
|
545807
545834
|
variant: "default",
|
|
545808
|
-
message: `The npm registry${host} returned 404 for ${packagesPhrase}. This may be a typo, an unpublished or renamed package, or \u2014 if a private registry is configured \u2014 a package that has not been mirrored. Stop and confirm with the user before trying a different package
|
|
545835
|
+
message: `The npm registry${host} returned 404 for ${packagesPhrase}. This may be a typo, an unpublished or renamed package, or \u2014 if a private registry is configured \u2014 a package that has not been mirrored. Stop and confirm with the user before trying a different package.${protectedCorePackageGuidance}`
|
|
545809
545836
|
};
|
|
545810
545837
|
}
|
|
545811
545838
|
case "registry_unreachable": {
|
|
@@ -594065,6 +594092,10 @@ var AppShell = (() => {
|
|
|
594065
594092
|
}
|
|
594066
594093
|
}
|
|
594067
594094
|
async uninstallPackages(packages, options8) {
|
|
594095
|
+
const protectedRequested = packages.filter((p3) => isProtectedCorePackage(p3));
|
|
594096
|
+
if (protectedRequested.length > 0) {
|
|
594097
|
+
throw new Error(`Refusing to uninstall protected core package(s): ${protectedRequested.join(", ")}. These are required by the Superblocks platform (dev server, build pipeline, or app runtime) and must remain in the app.`);
|
|
594098
|
+
}
|
|
594068
594099
|
return await this.withAuthFailedRetry(async (registryFetchResult) => {
|
|
594069
594100
|
this.maybeShortCircuitForUnreachable(registryFetchResult, packages);
|
|
594070
594101
|
const ignoreScripts = shouldIgnoreInstallScripts(registryFetchResult);
|
|
@@ -609553,7 +609584,7 @@ var PlaywrightMcpServerManager = class {
|
|
|
609553
609584
|
this.logger.info(`Starting embedded Playwright MCP server: browser=${options8?.browser || "chromium"}, headless=${options8?.headless !== false}`);
|
|
609554
609585
|
}
|
|
609555
609586
|
try {
|
|
609556
|
-
const { startEmbeddedPlaywrightMcpServer } = await import("./embedded-playwright-mcp-server-
|
|
609587
|
+
const { startEmbeddedPlaywrightMcpServer } = await import("./embedded-playwright-mcp-server-WLS4YWM6.js");
|
|
609557
609588
|
this.server = await startEmbeddedPlaywrightMcpServer({
|
|
609558
609589
|
storageStatePath: options8?.storageStatePath,
|
|
609559
609590
|
jwt: options8?.jwt,
|
|
@@ -613335,7 +613366,8 @@ function buildRegistryPolicyParagraph(registryPolicy) {
|
|
|
613335
613366
|
`;
|
|
613336
613367
|
}
|
|
613337
613368
|
if (registryPolicy.hasAnyRegistryConfigured) {
|
|
613338
|
-
|
|
613369
|
+
const protectedPackagesPhrase = PROTECTED_CORE_PACKAGES.map((name17) => `\`${name17}\``).join(", ");
|
|
613370
|
+
return `Your organization uses a private npm registry. Only packages available in that registry can be installed. If \`build_installPackages\` returns \`NpmInstallBlocked\` with reason \`not_in_registry\`, do not retry \u2014 explain to the user that the package isn't available and suggest they ask their org admin to add it. Never suggest uninstalling, replacing, or refactoring the app away from core dependencies \u2014 any \`@superblocksteam/*\` package, plus ${protectedPackagesPhrase}. If a core dependency is unavailable in the registry, the only fix is for an org admin to make it available there.
|
|
613339
613371
|
|
|
613340
613372
|
`;
|
|
613341
613373
|
}
|
|
@@ -615589,8 +615621,10 @@ async function installTemplateModulesImpl(dir, options8) {
|
|
|
615589
615621
|
const detectionCwd = options8?.detectionCwd ?? process.cwd();
|
|
615590
615622
|
const override = process.env[PM_OVERRIDE_ENV]?.trim();
|
|
615591
615623
|
const fromOverride = override ? override : null;
|
|
615592
|
-
const
|
|
615593
|
-
const
|
|
615624
|
+
const isCloudMode = !fromOverride && process.env.SUPERBLOCKS_SERVER_ENV !== "local";
|
|
615625
|
+
const fromCloud = isCloudMode ? "npm" : null;
|
|
615626
|
+
const fromEnv = fromOverride || fromCloud ? null : getUserAgent();
|
|
615627
|
+
const fromDetect = fromOverride || fromCloud || fromEnv ? null : (await detect({
|
|
615594
615628
|
strategies: [
|
|
615595
615629
|
"packageManager-field",
|
|
615596
615630
|
"lockfile",
|
|
@@ -615600,8 +615634,8 @@ async function installTemplateModulesImpl(dir, options8) {
|
|
|
615600
615634
|
cwd: detectionCwd
|
|
615601
615635
|
}))?.agent ?? null;
|
|
615602
615636
|
const fallback = "npm";
|
|
615603
|
-
const agent = fromOverride ?? fromEnv ?? fromDetect ?? fallback;
|
|
615604
|
-
const source2 = fromOverride ? "override" : fromEnv ? "env" : fromDetect ? "detect" : "fallback";
|
|
615637
|
+
const agent = fromOverride ?? fromCloud ?? fromEnv ?? fromDetect ?? fallback;
|
|
615638
|
+
const source2 = fromOverride ? "override" : fromCloud ? "cloud" : fromEnv ? "env" : fromDetect ? "detect" : "fallback";
|
|
615605
615639
|
getLogger3().info(`[ai-service] template-install: resolved package manager '${agent}' via ${source2}` + (source2 === "fallback" ? ` (no signal from $${PM_OVERRIDE_ENV}, $npm_config_user_agent, or detect(cwd=${detectionCwd}); set $${PM_OVERRIDE_ENV} to override)` : ""));
|
|
615606
615640
|
const installCommand = resolveCommand(agent, "install", ["--ignore-scripts"]);
|
|
615607
615641
|
if (!installCommand) {
|
|
@@ -616459,6 +616493,15 @@ var AiService = class extends import_shared48.TracedEventEmitter {
|
|
|
616459
616493
|
if (!checklist) {
|
|
616460
616494
|
return;
|
|
616461
616495
|
}
|
|
616496
|
+
const staleInProgressItems = checklist.items.filter((item) => API_MIGRATION_ORIGINS.has(item.origin) && item.status === "in_progress");
|
|
616497
|
+
for (const item of staleInProgressItems) {
|
|
616498
|
+
await updateChecklistItem({
|
|
616499
|
+
appRootDirPath: this.appRootDirPath,
|
|
616500
|
+
itemId: item.id,
|
|
616501
|
+
status: "pending"
|
|
616502
|
+
});
|
|
616503
|
+
this.getLogger().info(`[ai-service] Reset stale in_progress item "${item.id}" to pending after restart`);
|
|
616504
|
+
}
|
|
616462
616505
|
const hasPendingSeedApi = checklist.items.some((item) => API_MIGRATION_ORIGINS.has(item.origin) && (item.status === "pending" || item.status === "in_progress"));
|
|
616463
616506
|
if (hasPendingSeedApi) {
|
|
616464
616507
|
this.appShell.setApiHandlerEnabled(false);
|
|
@@ -616698,11 +616741,19 @@ var AiService = class extends import_shared48.TracedEventEmitter {
|
|
|
616698
616741
|
}
|
|
616699
616742
|
return await response.json();
|
|
616700
616743
|
}
|
|
616701
|
-
|
|
616744
|
+
/**
|
|
616745
|
+
* Non-throwing AI quota check. Returns `{ allowed: true }` when the org is
|
|
616746
|
+
* within its limit, and also when the check itself can't run (no JWT, or the
|
|
616747
|
+
* quota endpoint errors) — callers fail open so a flaky quota service never
|
|
616748
|
+
* blocks legitimate work. When the org is over limit, returns the reason and
|
|
616749
|
+
* a user-facing message instead of throwing, so callers that don't surface
|
|
616750
|
+
* exceptions (e.g. the background migration turn) can react.
|
|
616751
|
+
*/
|
|
616752
|
+
async checkAiQuota(jwt2) {
|
|
616702
616753
|
const token2 = jwt2 ?? this.getJwt();
|
|
616703
616754
|
if (!token2) {
|
|
616704
616755
|
this.getLogger().warn("[ai-service] No JWT available for quota check, skipping");
|
|
616705
|
-
return;
|
|
616756
|
+
return { allowed: true };
|
|
616706
616757
|
}
|
|
616707
616758
|
try {
|
|
616708
616759
|
const quota = await this.callServer({
|
|
@@ -616712,13 +616763,18 @@ var AiService = class extends import_shared48.TracedEventEmitter {
|
|
|
616712
616763
|
if (!quota.allowed) {
|
|
616713
616764
|
const reason = quota.reason ?? "token_limit_exceeded";
|
|
616714
616765
|
const message = reason === "trial_expired" ? "Your AI trial period has ended." : reason === "no_seat_assigned" ? "You don't have an AI Builder license assigned. Ask your admin to assign a license." : "Your organization has reached its AI usage limit.";
|
|
616715
|
-
|
|
616766
|
+
return { allowed: false, reason, message };
|
|
616716
616767
|
}
|
|
616768
|
+
return { allowed: true };
|
|
616717
616769
|
} catch (error40) {
|
|
616718
|
-
if (error40 instanceof Error && error40.message.includes("[reason:")) {
|
|
616719
|
-
throw error40;
|
|
616720
|
-
}
|
|
616721
616770
|
this.getLogger().warn("[ai-service] Quota check failed, allowing request", getErrorMeta2(error40));
|
|
616771
|
+
return { allowed: true };
|
|
616772
|
+
}
|
|
616773
|
+
}
|
|
616774
|
+
async ensureAiQuotaAvailable(jwt2) {
|
|
616775
|
+
const quota = await this.checkAiQuota(jwt2);
|
|
616776
|
+
if (!quota.allowed) {
|
|
616777
|
+
throw new Error(`${quota.message} [reason:${quota.reason}]`);
|
|
616722
616778
|
}
|
|
616723
616779
|
}
|
|
616724
616780
|
/**
|
|
@@ -616759,11 +616815,16 @@ var AiService = class extends import_shared48.TracedEventEmitter {
|
|
|
616759
616815
|
this.getLogger().warn("[ai-service] Migration checklist not found or unreadable; skipping translation turn");
|
|
616760
616816
|
return { dispatched: false, reason: "checklist-unavailable" };
|
|
616761
616817
|
}
|
|
616762
|
-
const pendingSeedApiItems = checklist.items.filter((item) => API_MIGRATION_ORIGINS.has(item.origin) && item.status === "pending");
|
|
616818
|
+
const pendingSeedApiItems = checklist.items.filter((item) => API_MIGRATION_ORIGINS.has(item.origin) && (item.status === "pending" || item.status === "in_progress"));
|
|
616763
616819
|
const pendingSeedApiCount = pendingSeedApiItems.length;
|
|
616764
616820
|
if (pendingSeedApiCount === 0) {
|
|
616765
616821
|
return { dispatched: false, reason: "no-pending-items" };
|
|
616766
616822
|
}
|
|
616823
|
+
const quota = await this.checkAiQuota(request.jwt);
|
|
616824
|
+
if (!quota.allowed) {
|
|
616825
|
+
this.getLogger().warn("[ai-service] Skipping v2\u2192v3 migration turn \u2014 AI quota exceeded", { reason: quota.reason });
|
|
616826
|
+
return { dispatched: false, reason: "quota-exceeded" };
|
|
616827
|
+
}
|
|
616767
616828
|
this.migrationTurnTriggered = true;
|
|
616768
616829
|
this.appShell.setApiHandlerEnabled(false);
|
|
616769
616830
|
this.getLogger().info(`[ai-service] Dispatching internal v2\u2192v3 migration turn for ${pendingSeedApiCount} API(s) (API VFS projection disabled, retryMode=${request.retryMode ?? "none"})`);
|
|
@@ -644575,7 +644636,7 @@ var parseYaml3;
|
|
|
644575
644636
|
async function loadYaml(file2) {
|
|
644576
644637
|
const content17 = await read_file_default(file2);
|
|
644577
644638
|
if (!parseYaml3) {
|
|
644578
|
-
({ __parsePrettierYamlConfig: parseYaml3 } = await import("./yaml-
|
|
644639
|
+
({ __parsePrettierYamlConfig: parseYaml3 } = await import("./yaml-VX4J4IIB.js"));
|
|
644579
644640
|
}
|
|
644580
644641
|
try {
|
|
644581
644642
|
return parseYaml3(content17);
|
|
@@ -649969,7 +650030,7 @@ function createParsersAndPrinters(modules) {
|
|
|
649969
650030
|
}
|
|
649970
650031
|
var estreePlugin = createParsersAndPrinters([
|
|
649971
650032
|
{
|
|
649972
|
-
importPlugin: () => import("./estree-
|
|
650033
|
+
importPlugin: () => import("./estree-FXKP33XD.js"),
|
|
649973
650034
|
printers: ["estree", "estree-json"]
|
|
649974
650035
|
}
|
|
649975
650036
|
]);
|
|
@@ -649993,11 +650054,11 @@ var languages = [
|
|
|
649993
650054
|
];
|
|
649994
650055
|
var { parsers: parsers12, printers } = createParsersAndPrinters([
|
|
649995
650056
|
{
|
|
649996
|
-
importPlugin: () => import("./acorn-
|
|
650057
|
+
importPlugin: () => import("./acorn-RRQBNGZD.js"),
|
|
649997
650058
|
parsers: ["acorn", "espree"]
|
|
649998
650059
|
},
|
|
649999
650060
|
{
|
|
650000
|
-
importPlugin: () => import("./angular-
|
|
650061
|
+
importPlugin: () => import("./angular-UHO3MYA5.js"),
|
|
650001
650062
|
parsers: [
|
|
650002
650063
|
"__ng_action",
|
|
650003
650064
|
"__ng_binding",
|
|
@@ -650006,7 +650067,7 @@ var { parsers: parsers12, printers } = createParsersAndPrinters([
|
|
|
650006
650067
|
]
|
|
650007
650068
|
},
|
|
650008
650069
|
{
|
|
650009
|
-
importPlugin: () => import("./babel-
|
|
650070
|
+
importPlugin: () => import("./babel-F3XXE66L.js"),
|
|
650010
650071
|
parsers: [
|
|
650011
650072
|
"babel",
|
|
650012
650073
|
"babel-flow",
|
|
@@ -650025,44 +650086,44 @@ var { parsers: parsers12, printers } = createParsersAndPrinters([
|
|
|
650025
650086
|
]
|
|
650026
650087
|
},
|
|
650027
650088
|
{
|
|
650028
|
-
importPlugin: () => import("./flow-
|
|
650089
|
+
importPlugin: () => import("./flow-N32PMPPF.js"),
|
|
650029
650090
|
parsers: ["flow"]
|
|
650030
650091
|
},
|
|
650031
650092
|
{
|
|
650032
|
-
importPlugin: () => import("./glimmer-
|
|
650093
|
+
importPlugin: () => import("./glimmer-3UBLRKBU.js"),
|
|
650033
650094
|
parsers: ["glimmer"],
|
|
650034
650095
|
printers: ["glimmer"]
|
|
650035
650096
|
},
|
|
650036
650097
|
{
|
|
650037
|
-
importPlugin: () => import("./graphql-
|
|
650098
|
+
importPlugin: () => import("./graphql-DAK7JNGW.js"),
|
|
650038
650099
|
parsers: ["graphql"],
|
|
650039
650100
|
printers: ["graphql"]
|
|
650040
650101
|
},
|
|
650041
650102
|
{
|
|
650042
|
-
importPlugin: () => import("./html-
|
|
650103
|
+
importPlugin: () => import("./html-MHBBFYZN.js"),
|
|
650043
650104
|
parsers: ["html", "angular", "vue", "lwc", "mjml"],
|
|
650044
650105
|
printers: ["html"]
|
|
650045
650106
|
},
|
|
650046
650107
|
{
|
|
650047
|
-
importPlugin: () => import("./markdown-
|
|
650108
|
+
importPlugin: () => import("./markdown-62E67PQJ.js"),
|
|
650048
650109
|
parsers: ["markdown", "mdx", "remark"],
|
|
650049
650110
|
printers: ["mdast"]
|
|
650050
650111
|
},
|
|
650051
650112
|
{
|
|
650052
|
-
importPlugin: () => import("./meriyah-
|
|
650113
|
+
importPlugin: () => import("./meriyah-MA7VWKPN.js"),
|
|
650053
650114
|
parsers: ["meriyah"]
|
|
650054
650115
|
},
|
|
650055
650116
|
{
|
|
650056
|
-
importPlugin: () => import("./postcss-
|
|
650117
|
+
importPlugin: () => import("./postcss-PI4WHXKU.js"),
|
|
650057
650118
|
parsers: ["css", "less", "scss"],
|
|
650058
650119
|
printers: ["postcss"]
|
|
650059
650120
|
},
|
|
650060
650121
|
{
|
|
650061
|
-
importPlugin: () => import("./typescript-
|
|
650122
|
+
importPlugin: () => import("./typescript-OJRG5VA4.js"),
|
|
650062
650123
|
parsers: ["typescript"]
|
|
650063
650124
|
},
|
|
650064
650125
|
{
|
|
650065
|
-
importPlugin: () => import("./yaml-
|
|
650126
|
+
importPlugin: () => import("./yaml-VX4J4IIB.js"),
|
|
650066
650127
|
parsers: ["yaml"],
|
|
650067
650128
|
printers: ["yaml"]
|
|
650068
650129
|
}
|
|
@@ -652009,7 +652070,7 @@ function stripComments(source2) {
|
|
|
652009
652070
|
stripped = stripped.replace(/(^|[^:])\/\/[^\n]*/g, "$1");
|
|
652010
652071
|
return stripped;
|
|
652011
652072
|
}
|
|
652012
|
-
function
|
|
652073
|
+
function packageNameFromSpec2(spec) {
|
|
652013
652074
|
if (spec.length === 0)
|
|
652014
652075
|
return null;
|
|
652015
652076
|
if (spec === "." || spec === ".." || spec.startsWith("./") || spec.startsWith("../")) {
|
|
@@ -652048,7 +652109,7 @@ function extractImportedPackageNames(source2) {
|
|
|
652048
652109
|
const spec = match2[1];
|
|
652049
652110
|
if (spec === void 0)
|
|
652050
652111
|
continue;
|
|
652051
|
-
const pkg =
|
|
652112
|
+
const pkg = packageNameFromSpec2(spec);
|
|
652052
652113
|
if (pkg !== null)
|
|
652053
652114
|
specs.add(pkg);
|
|
652054
652115
|
}
|
|
@@ -667206,12 +667267,48 @@ async function handleLockConflict(error40, lockSvc, span, logger21) {
|
|
|
667206
667267
|
}
|
|
667207
667268
|
async function readPkgJson(cwd) {
|
|
667208
667269
|
try {
|
|
667209
|
-
const { readPackage } = await import("./read-pkg-
|
|
667270
|
+
const { readPackage } = await import("./read-pkg-PAHVAIXB.js");
|
|
667210
667271
|
return await readPackage({ cwd });
|
|
667211
667272
|
} catch {
|
|
667212
667273
|
return null;
|
|
667213
667274
|
}
|
|
667214
667275
|
}
|
|
667276
|
+
async function readPackageLock(cwd) {
|
|
667277
|
+
try {
|
|
667278
|
+
return await nodeFs.readFile(path77.join(cwd, "package-lock.json"), "utf8");
|
|
667279
|
+
} catch {
|
|
667280
|
+
return null;
|
|
667281
|
+
}
|
|
667282
|
+
}
|
|
667283
|
+
function lockfileComparisonKey(raw) {
|
|
667284
|
+
if (raw === null)
|
|
667285
|
+
return null;
|
|
667286
|
+
try {
|
|
667287
|
+
const parsed = JSON.parse(raw);
|
|
667288
|
+
if (parsed?.packages && typeof parsed.packages === "object") {
|
|
667289
|
+
for (const entry of Object.values(parsed.packages)) {
|
|
667290
|
+
if (entry && typeof entry === "object") {
|
|
667291
|
+
delete entry.resolved;
|
|
667292
|
+
}
|
|
667293
|
+
}
|
|
667294
|
+
}
|
|
667295
|
+
return JSON.stringify(parsed);
|
|
667296
|
+
} catch {
|
|
667297
|
+
return raw;
|
|
667298
|
+
}
|
|
667299
|
+
}
|
|
667300
|
+
async function shouldValidatePrivateRegistryInstall(npmRegistryClient, logger21) {
|
|
667301
|
+
if (!npmRegistryClient) {
|
|
667302
|
+
return false;
|
|
667303
|
+
}
|
|
667304
|
+
try {
|
|
667305
|
+
const result = await npmRegistryClient.getConfig();
|
|
667306
|
+
return result.source === "configured" || result.source === "stale";
|
|
667307
|
+
} catch (err) {
|
|
667308
|
+
logger21.warn("Could not resolve npm registry config for startup install validation; preserving package snapshot decision", getErrorMeta(err));
|
|
667309
|
+
return false;
|
|
667310
|
+
}
|
|
667311
|
+
}
|
|
667215
667312
|
async function normalizePackageJsonForNpm(cwd, logger21) {
|
|
667216
667313
|
const packageJsonPath = path77.join(cwd, "package.json");
|
|
667217
667314
|
let raw;
|
|
@@ -667715,10 +667812,12 @@ async function dev(options8) {
|
|
|
667715
667812
|
if (!packageJsonBefore && packageJsonRequiresInstall) {
|
|
667716
667813
|
logger21.info("package.json was created, installing packages\u2026");
|
|
667717
667814
|
}
|
|
667815
|
+
const npmRegistryClient = aiService?.getNpmRegistryClient();
|
|
667718
667816
|
const forcePackageInstallRequested = !!options8.forcePackageInstall;
|
|
667719
667817
|
let forcePackageInstall = forcePackageInstallRequested;
|
|
667818
|
+
const privateRegistryRequiresInstallValidation = packageJsonAfter ? await shouldValidatePrivateRegistryInstall(npmRegistryClient, logger21) : false;
|
|
667720
667819
|
if (forcePackageInstallRequested && hasPackageJsonSnapshotBeforeRestore) {
|
|
667721
|
-
forcePackageInstall = packageJsonRequiresInstall;
|
|
667820
|
+
forcePackageInstall = packageJsonRequiresInstall || privateRegistryRequiresInstallValidation;
|
|
667722
667821
|
}
|
|
667723
667822
|
logger21.info("Package install decision", {
|
|
667724
667823
|
packageJsonBeforePresent: !!packageJsonBefore,
|
|
@@ -667727,6 +667826,7 @@ async function dev(options8) {
|
|
|
667727
667826
|
packageJsonRequiresInstall,
|
|
667728
667827
|
forcePackageInstall,
|
|
667729
667828
|
forcePackageInstallRequested,
|
|
667829
|
+
privateRegistryRequiresInstallValidation,
|
|
667730
667830
|
upgradePromiseCount: upgradePromises.length,
|
|
667731
667831
|
packageJsonSnapshotBefore: packageJsonSnapshotDiagnostic(packageJsonSnapshotBefore),
|
|
667732
667832
|
packageJsonInstallBaselineSnapshot: packageJsonSnapshotDiagnostic(packageJsonInstallBaselineSnapshot),
|
|
@@ -667747,11 +667847,13 @@ async function dev(options8) {
|
|
|
667747
667847
|
logger21.error(`Background package upgrade failed [errorId=DEV_SERVER_BG_UPGRADE_FAILED applicationId=${installApplicationId} cwd=${cwd} upgradePromiseCount=${launchedUpgradeCount}]`, getErrorMeta(err));
|
|
667748
667848
|
});
|
|
667749
667849
|
}
|
|
667750
|
-
|
|
667850
|
+
let packageLockBeforeInstall = null;
|
|
667851
|
+
if (packageJsonRequiresInstall || upgradePromises.length > 0 || forcePackageInstall || privateRegistryRequiresInstallValidation) {
|
|
667852
|
+
packageLockBeforeInstall = await readPackageLock(cwd);
|
|
667751
667853
|
logger21.info("Starting package install in background\u2026");
|
|
667752
667854
|
packageInstallPromise = tracer4.startActiveSpan("installPackages", async (span) => {
|
|
667753
667855
|
try {
|
|
667754
|
-
await installPackages(cwd, logger21,
|
|
667856
|
+
await installPackages(cwd, logger21, npmRegistryClient);
|
|
667755
667857
|
} finally {
|
|
667756
667858
|
span.end();
|
|
667757
667859
|
}
|
|
@@ -667770,7 +667872,8 @@ async function dev(options8) {
|
|
|
667770
667872
|
logger21.info("package.json has not changed, skipping package installation");
|
|
667771
667873
|
}
|
|
667772
667874
|
const shouldUploadPackageState = hasPackageChanged || forcePackageInstall;
|
|
667773
|
-
|
|
667875
|
+
let shouldUploadAfterInstall = shouldUploadPackageState;
|
|
667876
|
+
if (shouldUploadPackageState || uploadFirst || privateRegistryRequiresInstallValidation) {
|
|
667774
667877
|
let skipStartupUploadForCliRestart = false;
|
|
667775
667878
|
try {
|
|
667776
667879
|
await joinUpgradeThenInstall("before upload");
|
|
@@ -667782,7 +667885,10 @@ async function dev(options8) {
|
|
|
667782
667885
|
throw joinError;
|
|
667783
667886
|
}
|
|
667784
667887
|
}
|
|
667785
|
-
if (!
|
|
667888
|
+
if (privateRegistryRequiresInstallValidation && !shouldUploadAfterInstall && lockfileComparisonKey(packageLockBeforeInstall) !== lockfileComparisonKey(await readPackageLock(cwd))) {
|
|
667889
|
+
shouldUploadAfterInstall = true;
|
|
667890
|
+
}
|
|
667891
|
+
if (!skipStartupUploadForCliRestart && (shouldUploadAfterInstall || uploadFirst)) {
|
|
667786
667892
|
logger21.info(`Uploading local files to branch '${activeDbfsBranchName}' on server before starting`);
|
|
667787
667893
|
await tracer4.startActiveSpan("uploadFirstOrPackageChanged", async (span) => {
|
|
667788
667894
|
await syncService.uploadDirectory("cli:sdk");
|
|
@@ -668855,4 +668961,4 @@ serve-static/index.js:
|
|
|
668855
668961
|
chokidar/esm/index.js:
|
|
668856
668962
|
(*! chokidar - MIT License (c) 2012 Paul Miller (paulmillr.com) *)
|
|
668857
668963
|
*/
|
|
668858
|
-
//# sourceMappingURL=chunk-
|
|
668964
|
+
//# sourceMappingURL=chunk-H5X6IVOV.js.map
|