@builder.io/dev-tools 1.35.3-dev.202603240503.f6a4a49b2 → 1.35.3-dev.202603241447.30967e3da

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/core/index.cjs CHANGED
@@ -54,6 +54,13 @@ var require_which_pm_runs = __commonJS({
54
54
  }
55
55
  });
56
56
 
57
+ // node_modules/process/index.js
58
+ var require_process = __commonJS({
59
+ "node_modules/process/index.js"(exports, module2) {
60
+ module2.exports = global.process;
61
+ }
62
+ });
63
+
57
64
  // node_modules/compress-json/dist/debug.js
58
65
  var require_debug = __commonJS({
59
66
  "node_modules/compress-json/dist/debug.js"(exports) {
@@ -707,7 +714,7 @@ __export(index_exports, {
707
714
  module.exports = __toCommonJS(index_exports);
708
715
 
709
716
  // packages/dev-tools/cli/version.ts
710
- var builderVersion = true ? "1.35.3-dev.202603240503.f6a4a49b2" : "0.0.0";
717
+ var builderVersion = true ? "1.35.3-dev.202603241447.30967e3da" : "0.0.0";
711
718
  var pkgVersion = process.env.OVERRIDE_VERSION ?? builderVersion;
712
719
 
713
720
  // packages/dev-tools/common/fs.ts
@@ -1015,13 +1022,13 @@ var VERSION_RESOLVER = /* @__PURE__ */ new Map([
1015
1022
  }
1016
1023
  const packageManager = getPackageManager();
1017
1024
  const command = packageManager === "npm" ? "npx" : packageManager;
1018
- const { stdout } = sys.spawnSync(command, ["next", "-v"], {
1025
+ const { stdout: stdout2 } = sys.spawnSync(command, ["next", "-v"], {
1019
1026
  encoding: "utf8"
1020
1027
  });
1021
- if (!stdout) {
1028
+ if (!stdout2) {
1022
1029
  return;
1023
1030
  }
1024
- const nextInfo = stdout.match(/(Next.js v)([\d.]+)/g);
1031
+ const nextInfo = stdout2.match(/(Next.js v)([\d.]+)/g);
1025
1032
  if (!nextInfo) {
1026
1033
  return;
1027
1034
  }
@@ -8958,7 +8965,140 @@ async function setEnvValue(sys, envPath, key2, value) {
8958
8965
  }
8959
8966
  var ANGULAR_BUILDER_API_KEY_ENV = "builderApiKey";
8960
8967
 
8968
+ // packages/dev-tools/common/logger.ts
8969
+ var import_process = __toESM(require_process(), 1);
8970
+ var LEVELS = {
8971
+ debug: 0,
8972
+ info: 1,
8973
+ warn: 2,
8974
+ error: 3
8975
+ };
8976
+ function extractOptions(args) {
8977
+ const last = args[args.length - 1];
8978
+ if (last && typeof last === "object" && !(last instanceof Error) && !Array.isArray(last) && "loggerOptions" in last) {
8979
+ return {
8980
+ callArgs: args.slice(0, -1),
8981
+ options: last.loggerOptions
8982
+ };
8983
+ }
8984
+ return { callArgs: args, options: {} };
8985
+ }
8986
+ function formatArgs(args) {
8987
+ return args.map((a) => {
8988
+ if (a instanceof Error) return a.stack ?? a.message;
8989
+ if (typeof a === "object" && a !== null) {
8990
+ try {
8991
+ return JSON.stringify(a);
8992
+ } catch {
8993
+ return String(a);
8994
+ }
8995
+ }
8996
+ return String(a);
8997
+ }).join(" ");
8998
+ }
8999
+ function isCloudEnvironment() {
9000
+ const env = process.env.FUSION_ENVIRONMENT;
9001
+ return env === "cloud" || env === "cloud-v2";
9002
+ }
9003
+ function writeStructured(stream, severity, context, args) {
9004
+ const entry = {
9005
+ severity,
9006
+ message: formatArgs(args),
9007
+ timestamp: (/* @__PURE__ */ new Date()).toISOString()
9008
+ };
9009
+ if (context) entry.context = context;
9010
+ stream.write(JSON.stringify(entry) + "\n");
9011
+ }
9012
+ function createCloudLogger(minLevel, isDebugEnabled, context) {
9013
+ return {
9014
+ debug(...args) {
9015
+ if (!isDebugEnabled()) return;
9016
+ const { callArgs, options } = extractOptions(args);
9017
+ writeStructured(
9018
+ options.stderr ? import_process.stderr : import_process.stdout,
9019
+ "DEBUG",
9020
+ context,
9021
+ callArgs
9022
+ );
9023
+ },
9024
+ info(...args) {
9025
+ if (LEVELS.info < minLevel) return;
9026
+ const { callArgs, options } = extractOptions(args);
9027
+ if (options.debug && !isDebugEnabled()) return;
9028
+ writeStructured(
9029
+ options.stderr ? import_process.stderr : import_process.stdout,
9030
+ "INFO",
9031
+ context,
9032
+ callArgs
9033
+ );
9034
+ },
9035
+ warn(...args) {
9036
+ if (LEVELS.warn < minLevel) return;
9037
+ const { callArgs, options } = extractOptions(args);
9038
+ if (options.debug && !isDebugEnabled()) return;
9039
+ writeStructured(import_process.stderr, "WARNING", context, callArgs);
9040
+ },
9041
+ error(...args) {
9042
+ if (LEVELS.error < minLevel) return;
9043
+ const { callArgs, options } = extractOptions(args);
9044
+ if (options.debug && !isDebugEnabled()) return;
9045
+ writeStructured(import_process.stderr, "ERROR", context, callArgs);
9046
+ }
9047
+ };
9048
+ }
9049
+ function timestamp() {
9050
+ return (/* @__PURE__ */ new Date()).toISOString();
9051
+ }
9052
+ function localPrefix(context) {
9053
+ return context ? `[${timestamp()}] [${context}]` : `[${timestamp()}]`;
9054
+ }
9055
+ function createLocalLogger(minLevel, isDebugEnabled, context) {
9056
+ return {
9057
+ debug(...args) {
9058
+ if (!isDebugEnabled()) return;
9059
+ const { callArgs, options } = extractOptions(args);
9060
+ if (options.stderr) {
9061
+ console.error(localPrefix(context), ...callArgs);
9062
+ } else {
9063
+ console.debug(localPrefix(context), ...callArgs);
9064
+ }
9065
+ },
9066
+ info(...args) {
9067
+ if (LEVELS.info < minLevel) return;
9068
+ const { callArgs, options } = extractOptions(args);
9069
+ if (options.debug && !isDebugEnabled()) return;
9070
+ if (options.stderr) {
9071
+ console.error(localPrefix(context), ...callArgs);
9072
+ } else {
9073
+ console.log(localPrefix(context), ...callArgs);
9074
+ }
9075
+ },
9076
+ warn(...args) {
9077
+ if (LEVELS.warn < minLevel) return;
9078
+ const { callArgs, options } = extractOptions(args);
9079
+ if (options.debug && !isDebugEnabled()) return;
9080
+ console.warn(localPrefix(context), ...callArgs);
9081
+ },
9082
+ error(...args) {
9083
+ if (LEVELS.error < minLevel) return;
9084
+ const { callArgs, options } = extractOptions(args);
9085
+ if (options.debug && !isDebugEnabled()) return;
9086
+ console.error(localPrefix(context), ...callArgs);
9087
+ }
9088
+ };
9089
+ }
9090
+ function createLogger(context, options) {
9091
+ const isDebugEnabled = typeof options?.debug === "function" ? options.debug : options?.debug !== void 0 ? () => options.debug : () => !!process.env.DEBUG;
9092
+ const levelStr = options?.level ?? process.env.LOG_LEVEL?.toLowerCase() ?? "info";
9093
+ const minLevel = LEVELS[levelStr] ?? LEVELS.info;
9094
+ if (isCloudEnvironment()) {
9095
+ return createCloudLogger(minLevel, isDebugEnabled, context);
9096
+ }
9097
+ return createLocalLogger(minLevel, isDebugEnabled, context);
9098
+ }
9099
+
8961
9100
  // packages/dev-tools/core/adapters/angular/angular-components.ts
9101
+ var angularLogger = createLogger("AngularComponents");
8962
9102
  async function getAngularSourceComponentsFromDir(sys, tsProgram) {
8963
9103
  const cmps = [];
8964
9104
  const sourceFiles = tsProgram.getSourceFiles();
@@ -9324,7 +9464,7 @@ async function getExportedAngularComponentSource(sys, typeChecker, filePath, sou
9324
9464
  }
9325
9465
  }
9326
9466
  } catch (error) {
9327
- console.warn(
9467
+ angularLogger.warn(
9328
9468
  `Error processing star export from ${moduleName}:`,
9329
9469
  error
9330
9470
  );
@@ -11661,6 +11801,7 @@ var VUE_VITE_BUILDER_KEY_ENV = `VITE_PUBLIC_BUILDER_KEY`;
11661
11801
  var VUE_WEBPACK_BUILDER_KEY_ENV = `PUBLIC_BUILDER_KEY`;
11662
11802
 
11663
11803
  // packages/dev-tools/core/adapters/vue/vue-components.ts
11804
+ var vueLogger = createLogger("VueComponents");
11664
11805
  async function parseVueComponent(sys, filePath, readAllInputTypes) {
11665
11806
  try {
11666
11807
  const content = await sys.readFile(filePath);
@@ -11685,7 +11826,7 @@ async function parseVueComponent(sys, filePath, readAllInputTypes) {
11685
11826
  vueApiType: apiType
11686
11827
  };
11687
11828
  } catch (error) {
11688
- console.warn(`Failed to parse Vue component ${filePath}:`, error);
11829
+ vueLogger.warn(`Failed to parse Vue component ${filePath}:`, error);
11689
11830
  return null;
11690
11831
  }
11691
11832
  }
@@ -12260,6 +12401,7 @@ async function isNuxtProject(sys) {
12260
12401
 
12261
12402
  // packages/dev-tools/core/import-export-registry.ts
12262
12403
  var import_compress_json = __toESM(require_dist(), 1);
12404
+ var registryLogger = createLogger("ImportExportRegistry");
12263
12405
  async function exportRegistry(sys, devTools) {
12264
12406
  const registry = await devTools.getRegistry();
12265
12407
  const exportedRegistry = {
@@ -12303,7 +12445,7 @@ async function importRegistry(sys, devTools, registryToImport) {
12303
12445
  (c2) => normalizePathSlash(c2.filePath).endsWith(filePath) && c2.exportName === cmpToRegister.exportName
12304
12446
  );
12305
12447
  if (!cmp) {
12306
- console.error(
12448
+ registryLogger.error(
12307
12449
  `Could not find component to register: ${cmpToRegister.filePath}, ${cmpToRegister.exportName}`
12308
12450
  );
12309
12451
  continue;
@@ -13236,6 +13378,7 @@ async function createDevToolsSys(opts) {
13236
13378
  }
13237
13379
 
13238
13380
  // packages/dev-tools/core/adapters/next/next-ensure-config-plugin.ts
13381
+ var nextLogger = createLogger("NextConfig");
13239
13382
  async function nextEnsureConfigPlugin(sys, configFilePath, configContent) {
13240
13383
  try {
13241
13384
  let sourceFile = codeToSource(sys, configContent);
@@ -13247,7 +13390,7 @@ async function nextEnsureConfigPlugin(sys, configFilePath, configContent) {
13247
13390
  };
13248
13391
  const isTurbopack = await detectTurbopack(sys);
13249
13392
  if (isTurbopack) {
13250
- console.warn(
13393
+ nextLogger.warn(
13251
13394
  `Turbopack does not support the Builder.io devtools cli. Please disable Turbopack or manually integrate Builder.io into your Next.js project.`
13252
13395
  );
13253
13396
  return result;
@@ -14560,10 +14703,11 @@ module.exports = nextConfig
14560
14703
  var DEV_TOOLS_CLIENT_SCRIPT_PATH = "/~builder-dev-tools.js";
14561
14704
 
14562
14705
  // packages/dev-tools/core/client-script.ts
14706
+ var clientScriptLogger = createLogger("ClientScript");
14563
14707
  function getClientScript(devToolsServerUrl) {
14564
14708
  try {
14565
14709
  if (typeof devToolsServerUrl !== "string" || devToolsServerUrl.trim().length === 0) {
14566
- console.error(`Missing devtool server url`);
14710
+ clientScriptLogger.error(`Missing devtool server url`);
14567
14711
  return ``;
14568
14712
  }
14569
14713
  const url = new URL(DEV_TOOLS_CLIENT_SCRIPT_PATH, devToolsServerUrl);
@@ -14597,7 +14741,9 @@ function getClientScript(devToolsServerUrl) {
14597
14741
  `;
14598
14742
  return c2;
14599
14743
  } catch (e) {
14600
- console.error(`Failed to create devtools client script: ${e.message || e}`);
14744
+ clientScriptLogger.error(
14745
+ `Failed to create devtools client script: ${e.message || e}`
14746
+ );
14601
14747
  return ``;
14602
14748
  }
14603
14749
  }
package/core/index.mjs CHANGED
@@ -49,6 +49,13 @@ var require_which_pm_runs = __commonJS({
49
49
  }
50
50
  });
51
51
 
52
+ // node_modules/process/index.js
53
+ var require_process = __commonJS({
54
+ "node_modules/process/index.js"(exports, module) {
55
+ module.exports = global.process;
56
+ }
57
+ });
58
+
52
59
  // node_modules/compress-json/dist/debug.js
53
60
  var require_debug = __commonJS({
54
61
  "node_modules/compress-json/dist/debug.js"(exports) {
@@ -687,7 +694,7 @@ var require_dist = __commonJS({
687
694
  });
688
695
 
689
696
  // packages/dev-tools/cli/version.ts
690
- var builderVersion = true ? "1.35.3-dev.202603240503.f6a4a49b2" : "0.0.0";
697
+ var builderVersion = true ? "1.35.3-dev.202603241447.30967e3da" : "0.0.0";
691
698
  var pkgVersion = process.env.OVERRIDE_VERSION ?? builderVersion;
692
699
 
693
700
  // packages/dev-tools/common/fs.ts
@@ -995,13 +1002,13 @@ var VERSION_RESOLVER = /* @__PURE__ */ new Map([
995
1002
  }
996
1003
  const packageManager = getPackageManager();
997
1004
  const command = packageManager === "npm" ? "npx" : packageManager;
998
- const { stdout } = sys.spawnSync(command, ["next", "-v"], {
1005
+ const { stdout: stdout2 } = sys.spawnSync(command, ["next", "-v"], {
999
1006
  encoding: "utf8"
1000
1007
  });
1001
- if (!stdout) {
1008
+ if (!stdout2) {
1002
1009
  return;
1003
1010
  }
1004
- const nextInfo = stdout.match(/(Next.js v)([\d.]+)/g);
1011
+ const nextInfo = stdout2.match(/(Next.js v)([\d.]+)/g);
1005
1012
  if (!nextInfo) {
1006
1013
  return;
1007
1014
  }
@@ -8938,7 +8945,140 @@ async function setEnvValue(sys, envPath, key2, value) {
8938
8945
  }
8939
8946
  var ANGULAR_BUILDER_API_KEY_ENV = "builderApiKey";
8940
8947
 
8948
+ // packages/dev-tools/common/logger.ts
8949
+ var import_process = __toESM(require_process(), 1);
8950
+ var LEVELS = {
8951
+ debug: 0,
8952
+ info: 1,
8953
+ warn: 2,
8954
+ error: 3
8955
+ };
8956
+ function extractOptions(args) {
8957
+ const last = args[args.length - 1];
8958
+ if (last && typeof last === "object" && !(last instanceof Error) && !Array.isArray(last) && "loggerOptions" in last) {
8959
+ return {
8960
+ callArgs: args.slice(0, -1),
8961
+ options: last.loggerOptions
8962
+ };
8963
+ }
8964
+ return { callArgs: args, options: {} };
8965
+ }
8966
+ function formatArgs(args) {
8967
+ return args.map((a) => {
8968
+ if (a instanceof Error) return a.stack ?? a.message;
8969
+ if (typeof a === "object" && a !== null) {
8970
+ try {
8971
+ return JSON.stringify(a);
8972
+ } catch {
8973
+ return String(a);
8974
+ }
8975
+ }
8976
+ return String(a);
8977
+ }).join(" ");
8978
+ }
8979
+ function isCloudEnvironment() {
8980
+ const env = process.env.FUSION_ENVIRONMENT;
8981
+ return env === "cloud" || env === "cloud-v2";
8982
+ }
8983
+ function writeStructured(stream, severity, context, args) {
8984
+ const entry = {
8985
+ severity,
8986
+ message: formatArgs(args),
8987
+ timestamp: (/* @__PURE__ */ new Date()).toISOString()
8988
+ };
8989
+ if (context) entry.context = context;
8990
+ stream.write(JSON.stringify(entry) + "\n");
8991
+ }
8992
+ function createCloudLogger(minLevel, isDebugEnabled, context) {
8993
+ return {
8994
+ debug(...args) {
8995
+ if (!isDebugEnabled()) return;
8996
+ const { callArgs, options } = extractOptions(args);
8997
+ writeStructured(
8998
+ options.stderr ? import_process.stderr : import_process.stdout,
8999
+ "DEBUG",
9000
+ context,
9001
+ callArgs
9002
+ );
9003
+ },
9004
+ info(...args) {
9005
+ if (LEVELS.info < minLevel) return;
9006
+ const { callArgs, options } = extractOptions(args);
9007
+ if (options.debug && !isDebugEnabled()) return;
9008
+ writeStructured(
9009
+ options.stderr ? import_process.stderr : import_process.stdout,
9010
+ "INFO",
9011
+ context,
9012
+ callArgs
9013
+ );
9014
+ },
9015
+ warn(...args) {
9016
+ if (LEVELS.warn < minLevel) return;
9017
+ const { callArgs, options } = extractOptions(args);
9018
+ if (options.debug && !isDebugEnabled()) return;
9019
+ writeStructured(import_process.stderr, "WARNING", context, callArgs);
9020
+ },
9021
+ error(...args) {
9022
+ if (LEVELS.error < minLevel) return;
9023
+ const { callArgs, options } = extractOptions(args);
9024
+ if (options.debug && !isDebugEnabled()) return;
9025
+ writeStructured(import_process.stderr, "ERROR", context, callArgs);
9026
+ }
9027
+ };
9028
+ }
9029
+ function timestamp() {
9030
+ return (/* @__PURE__ */ new Date()).toISOString();
9031
+ }
9032
+ function localPrefix(context) {
9033
+ return context ? `[${timestamp()}] [${context}]` : `[${timestamp()}]`;
9034
+ }
9035
+ function createLocalLogger(minLevel, isDebugEnabled, context) {
9036
+ return {
9037
+ debug(...args) {
9038
+ if (!isDebugEnabled()) return;
9039
+ const { callArgs, options } = extractOptions(args);
9040
+ if (options.stderr) {
9041
+ console.error(localPrefix(context), ...callArgs);
9042
+ } else {
9043
+ console.debug(localPrefix(context), ...callArgs);
9044
+ }
9045
+ },
9046
+ info(...args) {
9047
+ if (LEVELS.info < minLevel) return;
9048
+ const { callArgs, options } = extractOptions(args);
9049
+ if (options.debug && !isDebugEnabled()) return;
9050
+ if (options.stderr) {
9051
+ console.error(localPrefix(context), ...callArgs);
9052
+ } else {
9053
+ console.log(localPrefix(context), ...callArgs);
9054
+ }
9055
+ },
9056
+ warn(...args) {
9057
+ if (LEVELS.warn < minLevel) return;
9058
+ const { callArgs, options } = extractOptions(args);
9059
+ if (options.debug && !isDebugEnabled()) return;
9060
+ console.warn(localPrefix(context), ...callArgs);
9061
+ },
9062
+ error(...args) {
9063
+ if (LEVELS.error < minLevel) return;
9064
+ const { callArgs, options } = extractOptions(args);
9065
+ if (options.debug && !isDebugEnabled()) return;
9066
+ console.error(localPrefix(context), ...callArgs);
9067
+ }
9068
+ };
9069
+ }
9070
+ function createLogger(context, options) {
9071
+ const isDebugEnabled = typeof options?.debug === "function" ? options.debug : options?.debug !== void 0 ? () => options.debug : () => !!process.env.DEBUG;
9072
+ const levelStr = options?.level ?? process.env.LOG_LEVEL?.toLowerCase() ?? "info";
9073
+ const minLevel = LEVELS[levelStr] ?? LEVELS.info;
9074
+ if (isCloudEnvironment()) {
9075
+ return createCloudLogger(minLevel, isDebugEnabled, context);
9076
+ }
9077
+ return createLocalLogger(minLevel, isDebugEnabled, context);
9078
+ }
9079
+
8941
9080
  // packages/dev-tools/core/adapters/angular/angular-components.ts
9081
+ var angularLogger = createLogger("AngularComponents");
8942
9082
  async function getAngularSourceComponentsFromDir(sys, tsProgram) {
8943
9083
  const cmps = [];
8944
9084
  const sourceFiles = tsProgram.getSourceFiles();
@@ -9304,7 +9444,7 @@ async function getExportedAngularComponentSource(sys, typeChecker, filePath, sou
9304
9444
  }
9305
9445
  }
9306
9446
  } catch (error) {
9307
- console.warn(
9447
+ angularLogger.warn(
9308
9448
  `Error processing star export from ${moduleName}:`,
9309
9449
  error
9310
9450
  );
@@ -11641,6 +11781,7 @@ var VUE_VITE_BUILDER_KEY_ENV = `VITE_PUBLIC_BUILDER_KEY`;
11641
11781
  var VUE_WEBPACK_BUILDER_KEY_ENV = `PUBLIC_BUILDER_KEY`;
11642
11782
 
11643
11783
  // packages/dev-tools/core/adapters/vue/vue-components.ts
11784
+ var vueLogger = createLogger("VueComponents");
11644
11785
  async function parseVueComponent(sys, filePath, readAllInputTypes) {
11645
11786
  try {
11646
11787
  const content = await sys.readFile(filePath);
@@ -11665,7 +11806,7 @@ async function parseVueComponent(sys, filePath, readAllInputTypes) {
11665
11806
  vueApiType: apiType
11666
11807
  };
11667
11808
  } catch (error) {
11668
- console.warn(`Failed to parse Vue component ${filePath}:`, error);
11809
+ vueLogger.warn(`Failed to parse Vue component ${filePath}:`, error);
11669
11810
  return null;
11670
11811
  }
11671
11812
  }
@@ -12240,6 +12381,7 @@ async function isNuxtProject(sys) {
12240
12381
 
12241
12382
  // packages/dev-tools/core/import-export-registry.ts
12242
12383
  var import_compress_json = __toESM(require_dist(), 1);
12384
+ var registryLogger = createLogger("ImportExportRegistry");
12243
12385
  async function exportRegistry(sys, devTools) {
12244
12386
  const registry = await devTools.getRegistry();
12245
12387
  const exportedRegistry = {
@@ -12283,7 +12425,7 @@ async function importRegistry(sys, devTools, registryToImport) {
12283
12425
  (c2) => normalizePathSlash(c2.filePath).endsWith(filePath) && c2.exportName === cmpToRegister.exportName
12284
12426
  );
12285
12427
  if (!cmp) {
12286
- console.error(
12428
+ registryLogger.error(
12287
12429
  `Could not find component to register: ${cmpToRegister.filePath}, ${cmpToRegister.exportName}`
12288
12430
  );
12289
12431
  continue;
@@ -13216,6 +13358,7 @@ async function createDevToolsSys(opts) {
13216
13358
  }
13217
13359
 
13218
13360
  // packages/dev-tools/core/adapters/next/next-ensure-config-plugin.ts
13361
+ var nextLogger = createLogger("NextConfig");
13219
13362
  async function nextEnsureConfigPlugin(sys, configFilePath, configContent) {
13220
13363
  try {
13221
13364
  let sourceFile = codeToSource(sys, configContent);
@@ -13227,7 +13370,7 @@ async function nextEnsureConfigPlugin(sys, configFilePath, configContent) {
13227
13370
  };
13228
13371
  const isTurbopack = await detectTurbopack(sys);
13229
13372
  if (isTurbopack) {
13230
- console.warn(
13373
+ nextLogger.warn(
13231
13374
  `Turbopack does not support the Builder.io devtools cli. Please disable Turbopack or manually integrate Builder.io into your Next.js project.`
13232
13375
  );
13233
13376
  return result;
@@ -14540,10 +14683,11 @@ module.exports = nextConfig
14540
14683
  var DEV_TOOLS_CLIENT_SCRIPT_PATH = "/~builder-dev-tools.js";
14541
14684
 
14542
14685
  // packages/dev-tools/core/client-script.ts
14686
+ var clientScriptLogger = createLogger("ClientScript");
14543
14687
  function getClientScript(devToolsServerUrl) {
14544
14688
  try {
14545
14689
  if (typeof devToolsServerUrl !== "string" || devToolsServerUrl.trim().length === 0) {
14546
- console.error(`Missing devtool server url`);
14690
+ clientScriptLogger.error(`Missing devtool server url`);
14547
14691
  return ``;
14548
14692
  }
14549
14693
  const url = new URL(DEV_TOOLS_CLIENT_SCRIPT_PATH, devToolsServerUrl);
@@ -14577,7 +14721,9 @@ function getClientScript(devToolsServerUrl) {
14577
14721
  `;
14578
14722
  return c2;
14579
14723
  } catch (e) {
14580
- console.error(`Failed to create devtools client script: ${e.message || e}`);
14724
+ clientScriptLogger.error(
14725
+ `Failed to create devtools client script: ${e.message || e}`
14726
+ );
14581
14727
  return ``;
14582
14728
  }
14583
14729
  }
package/node/index.cjs CHANGED
@@ -22778,7 +22778,7 @@ async function writeFile(node, filename, options) {
22778
22778
  var Sentry = __toESM(require("@sentry/node"), 1);
22779
22779
 
22780
22780
  // packages/dev-tools/cli/version.ts
22781
- var builderVersion = true ? "1.35.3-dev.202603240503.f6a4a49b2" : "0.0.0";
22781
+ var builderVersion = true ? "1.35.3-dev.202603241447.30967e3da" : "0.0.0";
22782
22782
  var pkgVersion = process.env.OVERRIDE_VERSION ?? builderVersion;
22783
22783
 
22784
22784
  // packages/dev-tools/node/node-sys.ts
package/node/index.mjs CHANGED
@@ -22790,7 +22790,7 @@ async function writeFile(node, filename, options) {
22790
22790
  import * as Sentry from "@sentry/node";
22791
22791
 
22792
22792
  // packages/dev-tools/cli/version.ts
22793
- var builderVersion = true ? "1.35.3-dev.202603240503.f6a4a49b2" : "0.0.0";
22793
+ var builderVersion = true ? "1.35.3-dev.202603241447.30967e3da" : "0.0.0";
22794
22794
  var pkgVersion = process.env.OVERRIDE_VERSION ?? builderVersion;
22795
22795
 
22796
22796
  // packages/dev-tools/node/node-sys.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/dev-tools",
3
- "version": "1.35.3-dev.202603240503.f6a4a49b2",
3
+ "version": "1.35.3-dev.202603241447.30967e3da",
4
4
  "description": "Builder.io Visual CMS Devtools",
5
5
  "keywords": [
6
6
  "builder.io",