@storm-software/workspace-tools 1.73.2 → 1.75.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6569,7 +6569,7 @@ var require_jiti = __commonJS({
6569
6569
  const stackTraceLimitIsWritable = isErrorStackTraceLimitWritable2();
6570
6570
  return stackTraceLimitIsWritable && (userStackTraceLimit2 = Error.stackTraceLimit, Error.stackTraceLimit = Number.POSITIVE_INFINITY), Error.captureStackTrace(error), stackTraceLimitIsWritable && (Error.stackTraceLimit = userStackTraceLimit2), error;
6571
6571
  });
6572
- const packageJsonReader2 = { read: function(jsonPath) {
6572
+ const packageJsonReader = { read: function(jsonPath) {
6573
6573
  try {
6574
6574
  return { string: external_node_fs_namespaceObject.readFileSync(external_node_path_namespaceObject.toNamespacedPath(external_node_path_namespaceObject.join(external_node_path_namespaceObject.dirname(jsonPath), "package.json")), "utf8") };
6575
6575
  } catch (error) {
@@ -6584,7 +6584,7 @@ var require_jiti = __commonJS({
6584
6584
  const existing = packageJsonCache.get(path5);
6585
6585
  if (void 0 !== existing)
6586
6586
  return existing;
6587
- const source = packageJsonReader2.read(path5).string;
6587
+ const source = packageJsonReader.read(path5).string;
6588
6588
  if (void 0 === source) {
6589
6589
  const packageConfig2 = { pjsonPath: path5, exists: false, main: void 0, name: void 0, type: "none", exports: void 0, imports: void 0 };
6590
6590
  return packageJsonCache.set(path5, packageConfig2), packageConfig2;
@@ -6647,7 +6647,7 @@ var require_jiti = __commonJS({
6647
6647
  }, "http:": getHttpProtocolModuleFormat2, "https:": getHttpProtocolModuleFormat2, "node:": () => "builtin" };
6648
6648
  function getHttpProtocolModuleFormat2() {
6649
6649
  }
6650
- const RegExpPrototypeSymbolReplace2 = RegExp.prototype[Symbol.replace], { ERR_NETWORK_IMPORT_DISALLOWED: ERR_NETWORK_IMPORT_DISALLOWED2, ERR_INVALID_MODULE_SPECIFIER: ERR_INVALID_MODULE_SPECIFIER2, ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG2, ERR_INVALID_PACKAGE_TARGET: ERR_INVALID_PACKAGE_TARGET2, ERR_MODULE_NOT_FOUND: ERR_MODULE_NOT_FOUND2, ERR_PACKAGE_IMPORT_NOT_DEFINED: ERR_PACKAGE_IMPORT_NOT_DEFINED2, ERR_PACKAGE_PATH_NOT_EXPORTED: ERR_PACKAGE_PATH_NOT_EXPORTED2, ERR_UNSUPPORTED_DIR_IMPORT: ERR_UNSUPPORTED_DIR_IMPORT2, ERR_UNSUPPORTED_ESM_URL_SCHEME } = codes2, own2 = {}.hasOwnProperty, invalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i, deprecatedInvalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i, invalidPackageNameRegEx2 = /^\.|%|\\/, patternRegEx2 = /\*/g, encodedSepRegEx2 = /%2f|%5c/i, emittedPackageWarnings2 = /* @__PURE__ */ new Set(), doubleSlashRegEx2 = /[/\\]{2}/;
6650
+ const RegExpPrototypeSymbolReplace2 = RegExp.prototype[Symbol.replace], { ERR_NETWORK_IMPORT_DISALLOWED: ERR_NETWORK_IMPORT_DISALLOWED2, ERR_INVALID_MODULE_SPECIFIER: ERR_INVALID_MODULE_SPECIFIER2, ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG2, ERR_INVALID_PACKAGE_TARGET: ERR_INVALID_PACKAGE_TARGET2, ERR_MODULE_NOT_FOUND: ERR_MODULE_NOT_FOUND2, ERR_PACKAGE_IMPORT_NOT_DEFINED: ERR_PACKAGE_IMPORT_NOT_DEFINED2, ERR_PACKAGE_PATH_NOT_EXPORTED: ERR_PACKAGE_PATH_NOT_EXPORTED2, ERR_UNSUPPORTED_DIR_IMPORT: ERR_UNSUPPORTED_DIR_IMPORT2, ERR_UNSUPPORTED_ESM_URL_SCHEME } = codes2, own2 = {}.hasOwnProperty, invalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i, deprecatedInvalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i, invalidPackageNameRegEx2 = /^\.|%|\\/, patternRegEx2 = /\*/g, encodedSepRegEx = /%2f|%5c/i, emittedPackageWarnings2 = /* @__PURE__ */ new Set(), doubleSlashRegEx2 = /[/\\]{2}/;
6651
6651
  function emitInvalidSegmentDeprecation2(target, request, match, packageJsonUrl, internal, base, isTarget) {
6652
6652
  const pjsonPath = (0, external_node_url_namespaceObject.fileURLToPath)(packageJsonUrl), double = null !== doubleSlashRegEx2.exec(isTarget ? target : request);
6653
6653
  external_node_process_namespaceObject.emitWarning(`Use of deprecated ${double ? "double slash" : "leading or trailing slash matching"} resolving "${target}" for module request "${request}" ${request === match ? "" : `matched to "${match}" `}in the "${internal ? "imports" : "exports"}" field module resolution of the package at ${pjsonPath}${base ? ` imported from ${(0, external_node_url_namespaceObject.fileURLToPath)(base)}` : ""}.`, "DeprecationWarning", "DEP0166");
@@ -6934,7 +6934,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
6934
6934
  else
6935
6935
  resolved = packageImportsResolve2(specifier, base, conditions);
6936
6936
  return external_node_assert_namespaceObject(void 0 !== resolved, "expected to be defined"), "file:" !== resolved.protocol ? resolved : function(resolved2, base2, preserveSymlinks2) {
6937
- if (null !== encodedSepRegEx2.exec(resolved2.pathname))
6937
+ if (null !== encodedSepRegEx.exec(resolved2.pathname))
6938
6938
  throw new ERR_INVALID_MODULE_SPECIFIER2(resolved2.pathname, 'must not include encoded "/" or "\\" characters', (0, external_node_url_namespaceObject.fileURLToPath)(base2));
6939
6939
  const filePath = (0, external_node_url_namespaceObject.fileURLToPath)(resolved2), stats = tryStatSync2(filePath.endsWith("/") ? filePath.slice(-1) : filePath);
6940
6940
  if (stats.isDirectory()) {
@@ -12540,7 +12540,7 @@ Add ${syntaxPluginInfo} to the 'plugins' section of your Babel config to enable
12540
12540
  const stackTraceLimitIsWritable = isErrorStackTraceLimitWritable2();
12541
12541
  return stackTraceLimitIsWritable && (userStackTraceLimit2 = Error.stackTraceLimit, Error.stackTraceLimit = Number.POSITIVE_INFINITY), Error.captureStackTrace(error), stackTraceLimitIsWritable && (Error.stackTraceLimit = userStackTraceLimit2), error;
12542
12542
  });
12543
- var packageJsonReader2 = { read: function(jsonPath) {
12543
+ var packageJsonReader = { read: function(jsonPath) {
12544
12544
  try {
12545
12545
  return { string: _fs().default.readFileSync(_path().toNamespacedPath(_path().join(_path().dirname(jsonPath), "package.json")), "utf8") };
12546
12546
  } catch (error) {
@@ -12555,7 +12555,7 @@ Add ${syntaxPluginInfo} to the 'plugins' section of your Babel config to enable
12555
12555
  const existing = packageJsonCache.get(path5);
12556
12556
  if (void 0 !== existing)
12557
12557
  return existing;
12558
- const source = packageJsonReader2.read(path5).string;
12558
+ const source = packageJsonReader.read(path5).string;
12559
12559
  if (void 0 === source) {
12560
12560
  const packageConfig2 = { pjsonPath: path5, exists: false, main: void 0, name: void 0, type: "none", exports: void 0, imports: void 0 };
12561
12561
  return packageJsonCache.set(path5, packageConfig2), packageConfig2;
@@ -12622,7 +12622,7 @@ Add ${syntaxPluginInfo} to the 'plugins' section of your Babel config to enable
12622
12622
  return hasOwnProperty3.call(protocolHandlers2, url.protocol) && protocolHandlers2[url.protocol](url, context, true) || null;
12623
12623
  }
12624
12624
  const { ERR_INVALID_ARG_VALUE } = codes2, DEFAULT_CONDITIONS = Object.freeze(["node", "import"]), DEFAULT_CONDITIONS_SET2 = new Set(DEFAULT_CONDITIONS);
12625
- const RegExpPrototypeSymbolReplace2 = RegExp.prototype[Symbol.replace], experimentalNetworkImports = false, { ERR_NETWORK_IMPORT_DISALLOWED: ERR_NETWORK_IMPORT_DISALLOWED2, ERR_INVALID_MODULE_SPECIFIER: ERR_INVALID_MODULE_SPECIFIER2, ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG2, ERR_INVALID_PACKAGE_TARGET: ERR_INVALID_PACKAGE_TARGET2, ERR_MODULE_NOT_FOUND: ERR_MODULE_NOT_FOUND2, ERR_PACKAGE_IMPORT_NOT_DEFINED: ERR_PACKAGE_IMPORT_NOT_DEFINED2, ERR_PACKAGE_PATH_NOT_EXPORTED: ERR_PACKAGE_PATH_NOT_EXPORTED2, ERR_UNSUPPORTED_DIR_IMPORT: ERR_UNSUPPORTED_DIR_IMPORT2, ERR_UNSUPPORTED_ESM_URL_SCHEME } = codes2, own2 = {}.hasOwnProperty, invalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i, deprecatedInvalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i, invalidPackageNameRegEx2 = /^\.|%|\\/, patternRegEx2 = /\*/g, encodedSepRegEx2 = /%2f|%5c/i, emittedPackageWarnings2 = /* @__PURE__ */ new Set(), doubleSlashRegEx2 = /[/\\]{2}/;
12625
+ const RegExpPrototypeSymbolReplace2 = RegExp.prototype[Symbol.replace], experimentalNetworkImports = false, { ERR_NETWORK_IMPORT_DISALLOWED: ERR_NETWORK_IMPORT_DISALLOWED2, ERR_INVALID_MODULE_SPECIFIER: ERR_INVALID_MODULE_SPECIFIER2, ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG2, ERR_INVALID_PACKAGE_TARGET: ERR_INVALID_PACKAGE_TARGET2, ERR_MODULE_NOT_FOUND: ERR_MODULE_NOT_FOUND2, ERR_PACKAGE_IMPORT_NOT_DEFINED: ERR_PACKAGE_IMPORT_NOT_DEFINED2, ERR_PACKAGE_PATH_NOT_EXPORTED: ERR_PACKAGE_PATH_NOT_EXPORTED2, ERR_UNSUPPORTED_DIR_IMPORT: ERR_UNSUPPORTED_DIR_IMPORT2, ERR_UNSUPPORTED_ESM_URL_SCHEME } = codes2, own2 = {}.hasOwnProperty, invalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i, deprecatedInvalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i, invalidPackageNameRegEx2 = /^\.|%|\\/, patternRegEx2 = /\*/g, encodedSepRegEx = /%2f|%5c/i, emittedPackageWarnings2 = /* @__PURE__ */ new Set(), doubleSlashRegEx2 = /[/\\]{2}/;
12626
12626
  function emitInvalidSegmentDeprecation2(target, request, match, packageJsonUrl, internal, base, isTarget) {
12627
12627
  const pjsonPath = (0, _url().fileURLToPath)(packageJsonUrl), double = null !== doubleSlashRegEx2.exec(isTarget ? target : request);
12628
12628
  _process().emitWarning(`Use of deprecated ${double ? "double slash" : "leading or trailing slash matching"} resolving "${target}" for module request "${request}" ${request === match ? "" : `matched to "${match}" `}in the "${internal ? "imports" : "exports"}" field module resolution of the package at ${pjsonPath}${base ? ` imported from ${(0, _url().fileURLToPath)(base)}` : ""}.`, "DeprecationWarning", "DEP0166");
@@ -12907,7 +12907,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
12907
12907
  else
12908
12908
  resolved = packageImportsResolve2(specifier, base, conditions);
12909
12909
  return _assert()(void 0 !== resolved, "expected to be defined"), "file:" !== resolved.protocol ? resolved : function(resolved2, base2, preserveSymlinks2) {
12910
- if (null !== encodedSepRegEx2.exec(resolved2.pathname))
12910
+ if (null !== encodedSepRegEx.exec(resolved2.pathname))
12911
12911
  throw new ERR_INVALID_MODULE_SPECIFIER2(resolved2.pathname, 'must not include encoded "/" or "\\" characters', (0, _url().fileURLToPath)(base2));
12912
12912
  const filePath = (0, _url().fileURLToPath)(resolved2), stats = tryStatSync2(filePath.endsWith("/") ? filePath.slice(-1) : filePath);
12913
12913
  if (stats.isDirectory()) {
@@ -42218,27 +42218,27 @@ var init_dist5 = __esm({
42218
42218
  }
42219
42219
  });
42220
42220
 
42221
- // node_modules/.pnpm/mlly@1.6.1/node_modules/mlly/dist/index.mjs
42221
+ // node_modules/.pnpm/mlly@1.7.0/node_modules/mlly/dist/index.mjs
42222
42222
  function normalizeSlash(path5) {
42223
42223
  return path5.replace(/\\/g, "/");
42224
42224
  }
42225
42225
  function formatList(array, type = "and") {
42226
42226
  return array.length < 3 ? array.join(` ${type} `) : `${array.slice(0, -1).join(", ")}, ${type} ${array[array.length - 1]}`;
42227
42227
  }
42228
- function createError(sym, value2, def) {
42228
+ function createError(sym, value2, constructor) {
42229
42229
  messages.set(sym, value2);
42230
- return makeNodeErrorWithCode(def, sym);
42230
+ return makeNodeErrorWithCode(constructor, sym);
42231
42231
  }
42232
42232
  function makeNodeErrorWithCode(Base, key) {
42233
42233
  return NodeError;
42234
- function NodeError(...args) {
42234
+ function NodeError(...parameters) {
42235
42235
  const limit = Error.stackTraceLimit;
42236
42236
  if (isErrorStackTraceLimitWritable())
42237
42237
  Error.stackTraceLimit = 0;
42238
42238
  const error = new Base();
42239
42239
  if (isErrorStackTraceLimitWritable())
42240
42240
  Error.stackTraceLimit = limit;
42241
- const message = getMessage(key, args, error);
42241
+ const message = getMessage(key, parameters, error);
42242
42242
  Object.defineProperties(error, {
42243
42243
  // Note: no need to implement `kIsNodeError` symbol, would be hard,
42244
42244
  // probably.
@@ -42276,34 +42276,34 @@ function isErrorStackTraceLimitWritable() {
42276
42276
  }
42277
42277
  return own$1.call(desc, "writable") && desc.writable !== void 0 ? desc.writable : desc.set !== void 0;
42278
42278
  }
42279
- function hideStackFrames(fn2) {
42280
- const hidden = nodeInternalPrefix + fn2.name;
42281
- Object.defineProperty(fn2, "name", { value: hidden });
42282
- return fn2;
42279
+ function hideStackFrames(wrappedFunction) {
42280
+ const hidden = nodeInternalPrefix + wrappedFunction.name;
42281
+ Object.defineProperty(wrappedFunction, "name", { value: hidden });
42282
+ return wrappedFunction;
42283
42283
  }
42284
- function getMessage(key, args, self2) {
42284
+ function getMessage(key, parameters, self2) {
42285
42285
  const message = messages.get(key);
42286
42286
  (0, import_node_assert.default)(message !== void 0, "expected `message` to be found");
42287
42287
  if (typeof message === "function") {
42288
42288
  (0, import_node_assert.default)(
42289
- message.length <= args.length,
42289
+ message.length <= parameters.length,
42290
42290
  // Default options do not count.
42291
- `Code: ${key}; The provided arguments length (${args.length}) does not match the required ones (${message.length}).`
42291
+ `Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${message.length}).`
42292
42292
  );
42293
- return Reflect.apply(message, self2, args);
42293
+ return Reflect.apply(message, self2, parameters);
42294
42294
  }
42295
42295
  const regex = /%[dfijoOs]/g;
42296
42296
  let expectedLength = 0;
42297
42297
  while (regex.exec(message) !== null)
42298
42298
  expectedLength++;
42299
42299
  (0, import_node_assert.default)(
42300
- expectedLength === args.length,
42301
- `Code: ${key}; The provided arguments length (${args.length}) does not match the required ones (${expectedLength}).`
42300
+ expectedLength === parameters.length,
42301
+ `Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${expectedLength}).`
42302
42302
  );
42303
- if (args.length === 0)
42303
+ if (parameters.length === 0)
42304
42304
  return message;
42305
- args.unshift(message);
42306
- return Reflect.apply(import_node_util.format, null, args);
42305
+ parameters.unshift(message);
42306
+ return Reflect.apply(import_node_util.format, null, parameters);
42307
42307
  }
42308
42308
  function determineSpecificType(value2) {
42309
42309
  if (value2 === null || value2 === void 0) {
@@ -42389,21 +42389,20 @@ function read2(jsonPath, { base, specifier }) {
42389
42389
  return result;
42390
42390
  }
42391
42391
  function getPackageScopeConfig(resolved) {
42392
- let packageJSONUrl = new import_node_url.URL("package.json", resolved);
42392
+ let packageJSONUrl = new URL("package.json", resolved);
42393
42393
  while (true) {
42394
42394
  const packageJSONPath2 = packageJSONUrl.pathname;
42395
42395
  if (packageJSONPath2.endsWith("node_modules/package.json")) {
42396
42396
  break;
42397
42397
  }
42398
- const packageConfig = packageJsonReader.read(
42399
- (0, import_node_url.fileURLToPath)(packageJSONUrl),
42400
- { specifier: resolved }
42401
- );
42398
+ const packageConfig = read2((0, import_node_url.fileURLToPath)(packageJSONUrl), {
42399
+ specifier: resolved
42400
+ });
42402
42401
  if (packageConfig.exists) {
42403
42402
  return packageConfig;
42404
42403
  }
42405
42404
  const lastPackageJSONUrl = packageJSONUrl;
42406
- packageJSONUrl = new import_node_url.URL("../package.json", packageJSONUrl);
42405
+ packageJSONUrl = new URL("../package.json", packageJSONUrl);
42407
42406
  if (packageJSONUrl.pathname === lastPackageJSONUrl.pathname) {
42408
42407
  break;
42409
42408
  }
@@ -42412,16 +42411,11 @@ function getPackageScopeConfig(resolved) {
42412
42411
  return {
42413
42412
  pjsonPath: packageJSONPath,
42414
42413
  exists: false,
42415
- main: void 0,
42416
- name: void 0,
42417
- type: "none",
42418
- exports: void 0,
42419
- imports: void 0
42414
+ type: "none"
42420
42415
  };
42421
42416
  }
42422
42417
  function getPackageType(url) {
42423
- const packageConfig = getPackageScopeConfig(url);
42424
- return packageConfig.type;
42418
+ return getPackageScopeConfig(url).type;
42425
42419
  }
42426
42420
  function mimeToFormat(mime) {
42427
42421
  if (mime && /\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(mime))
@@ -42451,29 +42445,29 @@ function extname2(url) {
42451
42445
  return "";
42452
42446
  }
42453
42447
  function getFileProtocolModuleFormat(url, _context, ignoreErrors) {
42454
- const ext = extname2(url);
42455
- if (ext === ".js") {
42448
+ const value2 = extname2(url);
42449
+ if (value2 === ".js") {
42456
42450
  const packageType = getPackageType(url);
42457
42451
  if (packageType !== "none") {
42458
42452
  return packageType;
42459
42453
  }
42460
42454
  return "commonjs";
42461
42455
  }
42462
- if (ext === "") {
42456
+ if (value2 === "") {
42463
42457
  const packageType = getPackageType(url);
42464
42458
  if (packageType === "none" || packageType === "commonjs") {
42465
42459
  return "commonjs";
42466
42460
  }
42467
42461
  return "module";
42468
42462
  }
42469
- const format3 = extensionFormatMap[ext];
42463
+ const format3 = extensionFormatMap[value2];
42470
42464
  if (format3)
42471
42465
  return format3;
42472
42466
  if (ignoreErrors) {
42473
42467
  return void 0;
42474
42468
  }
42475
42469
  const filepath = (0, import_node_url.fileURLToPath)(url);
42476
- throw new ERR_UNKNOWN_FILE_EXTENSION(ext, filepath);
42470
+ throw new ERR_UNKNOWN_FILE_EXTENSION(value2, filepath);
42477
42471
  }
42478
42472
  function getHttpProtocolModuleFormat() {
42479
42473
  }
@@ -42504,21 +42498,21 @@ function emitLegacyIndexDeprecation(url, packageJsonUrl, base, main) {
42504
42498
  if (format3 !== "module")
42505
42499
  return;
42506
42500
  const urlPath = (0, import_node_url.fileURLToPath)(url.href);
42507
- const pkgPath = (0, import_node_url.fileURLToPath)(new import_node_url.URL(".", packageJsonUrl));
42501
+ const packagePath = (0, import_node_url.fileURLToPath)(new import_node_url.URL(".", packageJsonUrl));
42508
42502
  const basePath = (0, import_node_url.fileURLToPath)(base);
42509
42503
  if (!main) {
42510
42504
  import_node_process.default.emitWarning(
42511
- `No "main" or "exports" field defined in the package.json for ${pkgPath} resolving the main entry point "${urlPath.slice(
42512
- pkgPath.length
42505
+ `No "main" or "exports" field defined in the package.json for ${packagePath} resolving the main entry point "${urlPath.slice(
42506
+ packagePath.length
42513
42507
  )}", imported from ${basePath}.
42514
42508
  Default "index" lookups for the main are deprecated for ES modules.`,
42515
42509
  "DeprecationWarning",
42516
42510
  "DEP0151"
42517
42511
  );
42518
- } else if (import_node_path3.default.resolve(pkgPath, main) !== urlPath) {
42512
+ } else if (import_node_path3.default.resolve(packagePath, main) !== urlPath) {
42519
42513
  import_node_process.default.emitWarning(
42520
- `Package ${pkgPath} has a "main" field set to "${main}", excluding the full filename and extension to the resolved file at "${urlPath.slice(
42521
- pkgPath.length
42514
+ `Package ${packagePath} has a "main" field set to "${main}", excluding the full filename and extension to the resolved file at "${urlPath.slice(
42515
+ packagePath.length
42522
42516
  )}", imported from ${basePath}.
42523
42517
  Automatic extension resolution of the "main" field is deprecated for ES modules.`,
42524
42518
  "DeprecationWarning",
@@ -42530,7 +42524,6 @@ function tryStatSync(path5) {
42530
42524
  try {
42531
42525
  return (0, import_node_fs3.statSync)(path5);
42532
42526
  } catch {
42533
- return new import_node_fs3.Stats();
42534
42527
  }
42535
42528
  }
42536
42529
  function fileExists(url) {
@@ -42587,7 +42580,7 @@ function legacyMainResolve(packageJsonUrl, packageConfig, base) {
42587
42580
  );
42588
42581
  }
42589
42582
  function finalizeResolution(resolved, base, preserveSymlinks) {
42590
- if (encodedSepRegEx.exec(resolved.pathname) !== null) {
42583
+ if (encodedSeparatorRegEx.exec(resolved.pathname) !== null) {
42591
42584
  throw new ERR_INVALID_MODULE_SPECIFIER(
42592
42585
  resolved.pathname,
42593
42586
  'must not include encoded "/" or "\\" characters',
@@ -42609,12 +42602,12 @@ function finalizeResolution(resolved, base, preserveSymlinks) {
42609
42602
  const stats = tryStatSync(
42610
42603
  filePath.endsWith("/") ? filePath.slice(-1) : filePath
42611
42604
  );
42612
- if (stats.isDirectory()) {
42605
+ if (stats && stats.isDirectory()) {
42613
42606
  const error = new ERR_UNSUPPORTED_DIR_IMPORT(filePath, (0, import_node_url.fileURLToPath)(base));
42614
42607
  error.url = String(resolved);
42615
42608
  throw error;
42616
42609
  }
42617
- if (!stats.isFile()) {
42610
+ if (!stats || !stats.isFile()) {
42618
42611
  const error = new ERR_MODULE_NOT_FOUND(
42619
42612
  filePath || resolved.pathname,
42620
42613
  base && (0, import_node_url.fileURLToPath)(base),
@@ -42872,13 +42865,13 @@ function isConditionalExportsMainSugar(exports2, packageJsonUrl, base) {
42872
42865
  const keys = Object.getOwnPropertyNames(exports2);
42873
42866
  let isConditionalSugar = false;
42874
42867
  let i2 = 0;
42875
- let j3 = -1;
42876
- while (++j3 < keys.length) {
42877
- const key = keys[j3];
42878
- const curIsConditionalSugar = key === "" || key[0] !== ".";
42868
+ let keyIndex = -1;
42869
+ while (++keyIndex < keys.length) {
42870
+ const key = keys[keyIndex];
42871
+ const currentIsConditionalSugar = key === "" || key[0] !== ".";
42879
42872
  if (i2++ === 0) {
42880
- isConditionalSugar = curIsConditionalSugar;
42881
- } else if (isConditionalSugar !== curIsConditionalSugar) {
42873
+ isConditionalSugar = currentIsConditionalSugar;
42874
+ } else if (isConditionalSugar !== currentIsConditionalSugar) {
42882
42875
  throw new ERR_INVALID_PACKAGE_CONFIG(
42883
42876
  (0, import_node_url.fileURLToPath)(packageJsonUrl),
42884
42877
  base,
@@ -43114,7 +43107,7 @@ function packageResolve(specifier, base, conditions) {
43114
43107
  let lastPath;
43115
43108
  do {
43116
43109
  const stat = tryStatSync(packageJsonPath.slice(0, -13));
43117
- if (!stat.isDirectory()) {
43110
+ if (!stat || !stat.isDirectory()) {
43118
43111
  lastPath = packageJsonPath;
43119
43112
  packageJsonUrl = new import_node_url.URL(
43120
43113
  (isScoped ? "../../../../node_modules/" : "../../../node_modules/") + packageName + "/package.json",
@@ -43123,10 +43116,7 @@ function packageResolve(specifier, base, conditions) {
43123
43116
  packageJsonPath = (0, import_node_url.fileURLToPath)(packageJsonUrl);
43124
43117
  continue;
43125
43118
  }
43126
- const packageConfig2 = packageJsonReader.read(packageJsonPath, {
43127
- base,
43128
- specifier
43129
- });
43119
+ const packageConfig2 = read2(packageJsonPath, { base, specifier });
43130
43120
  if (packageConfig2.exports !== void 0 && packageConfig2.exports !== null) {
43131
43121
  return packageExportsResolve(
43132
43122
  packageJsonUrl,
@@ -43162,19 +43152,29 @@ function shouldBeTreatedAsRelativeOrAbsolutePath(specifier) {
43162
43152
  }
43163
43153
  function moduleResolve(specifier, base, conditions, preserveSymlinks) {
43164
43154
  const protocol = base.protocol;
43165
- const isRemote = protocol === "http:" || protocol === "https:";
43155
+ const isData = protocol === "data:";
43156
+ const isRemote = isData || protocol === "http:" || protocol === "https:";
43166
43157
  let resolved;
43167
43158
  if (shouldBeTreatedAsRelativeOrAbsolutePath(specifier)) {
43168
- resolved = new import_node_url.URL(specifier, base);
43169
- } else if (!isRemote && specifier[0] === "#") {
43159
+ try {
43160
+ resolved = new import_node_url.URL(specifier, base);
43161
+ } catch (error_) {
43162
+ const error = new ERR_UNSUPPORTED_RESOLVE_REQUEST(specifier, base);
43163
+ error.cause = error_;
43164
+ throw error;
43165
+ }
43166
+ } else if (protocol === "file:" && specifier[0] === "#") {
43170
43167
  resolved = packageImportsResolve(specifier, base, conditions);
43171
43168
  } else {
43172
43169
  try {
43173
43170
  resolved = new import_node_url.URL(specifier);
43174
- } catch {
43175
- if (!isRemote) {
43176
- resolved = packageResolve(specifier, base, conditions);
43171
+ } catch (error_) {
43172
+ if (isRemote && !import_node_module.builtinModules.includes(specifier)) {
43173
+ const error = new ERR_UNSUPPORTED_RESOLVE_REQUEST(specifier, base);
43174
+ error.cause = error_;
43175
+ throw error;
43177
43176
  }
43177
+ resolved = packageResolve(specifier, base, conditions);
43178
43178
  }
43179
43179
  }
43180
43180
  (0, import_node_assert.default)(resolved !== void 0, "expected to be defined");
@@ -43306,9 +43306,9 @@ function resolvePath(id, options) {
43306
43306
  return Promise.reject(error);
43307
43307
  }
43308
43308
  }
43309
- var import_node_module, import_node_fs3, import_node_url, import_node_assert, import_node_process, import_node_path3, import_node_v8, import_node_util, BUILTIN_MODULES, own$1, classRegExp, kTypes, codes, messages, nodeInternalPrefix, userStackTraceLimit, captureLargerStackTrace, hasOwnProperty$1, ERR_INVALID_PACKAGE_CONFIG$1, cache, reader, packageJsonReader, ERR_UNKNOWN_FILE_EXTENSION, hasOwnProperty2, extensionFormatMap, protocolHandlers, RegExpPrototypeSymbolReplace, ERR_NETWORK_IMPORT_DISALLOWED, ERR_INVALID_MODULE_SPECIFIER, ERR_INVALID_PACKAGE_CONFIG, ERR_INVALID_PACKAGE_TARGET, ERR_MODULE_NOT_FOUND, ERR_PACKAGE_IMPORT_NOT_DEFINED, ERR_PACKAGE_PATH_NOT_EXPORTED, ERR_UNSUPPORTED_DIR_IMPORT, own, invalidSegmentRegEx, deprecatedInvalidSegmentRegEx, invalidPackageNameRegEx, patternRegEx, encodedSepRegEx, emittedPackageWarnings, doubleSlashRegEx, DEFAULT_CONDITIONS_SET, DEFAULT_EXTENSIONS, NOT_FOUND_ERRORS;
43309
+ var import_node_module, import_node_fs3, import_node_url, import_node_assert, import_node_process, import_node_path3, import_node_v8, import_node_util, BUILTIN_MODULES, own$1, classRegExp, kTypes, codes, messages, nodeInternalPrefix, userStackTraceLimit, captureLargerStackTrace, hasOwnProperty$1, ERR_INVALID_PACKAGE_CONFIG$1, cache, ERR_UNKNOWN_FILE_EXTENSION, hasOwnProperty2, extensionFormatMap, protocolHandlers, RegExpPrototypeSymbolReplace, ERR_NETWORK_IMPORT_DISALLOWED, ERR_INVALID_MODULE_SPECIFIER, ERR_INVALID_PACKAGE_CONFIG, ERR_INVALID_PACKAGE_TARGET, ERR_MODULE_NOT_FOUND, ERR_PACKAGE_IMPORT_NOT_DEFINED, ERR_PACKAGE_PATH_NOT_EXPORTED, ERR_UNSUPPORTED_DIR_IMPORT, ERR_UNSUPPORTED_RESOLVE_REQUEST, own, invalidSegmentRegEx, deprecatedInvalidSegmentRegEx, invalidPackageNameRegEx, patternRegEx, encodedSeparatorRegEx, emittedPackageWarnings, doubleSlashRegEx, DEFAULT_CONDITIONS_SET, DEFAULT_EXTENSIONS, NOT_FOUND_ERRORS;
43310
43310
  var init_dist6 = __esm({
43311
- "node_modules/.pnpm/mlly@1.6.1/node_modules/mlly/dist/index.mjs"() {
43311
+ "node_modules/.pnpm/mlly@1.7.0/node_modules/mlly/dist/index.mjs"() {
43312
43312
  init_acorn();
43313
43313
  import_node_module = require("node:module");
43314
43314
  import_node_fs3 = __toESM(require("node:fs"), 1);
@@ -43439,21 +43439,21 @@ var init_dist6 = __esm({
43439
43439
  codes.ERR_INVALID_PACKAGE_TARGET = createError(
43440
43440
  "ERR_INVALID_PACKAGE_TARGET",
43441
43441
  /**
43442
- * @param {string} pkgPath
43442
+ * @param {string} packagePath
43443
43443
  * @param {string} key
43444
43444
  * @param {unknown} target
43445
43445
  * @param {boolean} [isImport=false]
43446
43446
  * @param {string} [base]
43447
43447
  */
43448
- (pkgPath, key, target, isImport = false, base = void 0) => {
43449
- const relError = typeof target === "string" && !isImport && target.length > 0 && !target.startsWith("./");
43448
+ (packagePath, key, target, isImport = false, base = void 0) => {
43449
+ const relatedError = typeof target === "string" && !isImport && target.length > 0 && !target.startsWith("./");
43450
43450
  if (key === ".") {
43451
43451
  (0, import_node_assert.default)(isImport === false);
43452
- return `Invalid "exports" main target ${JSON.stringify(target)} defined in the package config ${pkgPath}package.json${base ? ` imported from ${base}` : ""}${relError ? '; targets must start with "./"' : ""}`;
43452
+ return `Invalid "exports" main target ${JSON.stringify(target)} defined in the package config ${packagePath}package.json${base ? ` imported from ${base}` : ""}${relatedError ? '; targets must start with "./"' : ""}`;
43453
43453
  }
43454
43454
  return `Invalid "${isImport ? "imports" : "exports"}" target ${JSON.stringify(
43455
43455
  target
43456
- )} defined for '${key}' in the package config ${pkgPath}package.json${base ? ` imported from ${base}` : ""}${relError ? '; targets must start with "./"' : ""}`;
43456
+ )} defined for '${key}' in the package config ${packagePath}package.json${base ? ` imported from ${base}` : ""}${relatedError ? '; targets must start with "./"' : ""}`;
43457
43457
  },
43458
43458
  Error
43459
43459
  );
@@ -43489,14 +43489,14 @@ var init_dist6 = __esm({
43489
43489
  codes.ERR_PACKAGE_PATH_NOT_EXPORTED = createError(
43490
43490
  "ERR_PACKAGE_PATH_NOT_EXPORTED",
43491
43491
  /**
43492
- * @param {string} pkgPath
43492
+ * @param {string} packagePath
43493
43493
  * @param {string} subpath
43494
43494
  * @param {string} [base]
43495
43495
  */
43496
- (pkgPath, subpath, base = void 0) => {
43496
+ (packagePath, subpath, base = void 0) => {
43497
43497
  if (subpath === ".")
43498
- return `No "exports" main defined in ${pkgPath}package.json${base ? ` imported from ${base}` : ""}`;
43499
- return `Package subpath '${subpath}' is not defined by "exports" in ${pkgPath}package.json${base ? ` imported from ${base}` : ""}`;
43498
+ return `No "exports" main defined in ${packagePath}package.json${base ? ` imported from ${base}` : ""}`;
43499
+ return `Package subpath '${subpath}' is not defined by "exports" in ${packagePath}package.json${base ? ` imported from ${base}` : ""}`;
43500
43500
  },
43501
43501
  Error
43502
43502
  );
@@ -43505,14 +43505,19 @@ var init_dist6 = __esm({
43505
43505
  "Directory import '%s' is not supported resolving ES modules imported from %s",
43506
43506
  Error
43507
43507
  );
43508
+ codes.ERR_UNSUPPORTED_RESOLVE_REQUEST = createError(
43509
+ "ERR_UNSUPPORTED_RESOLVE_REQUEST",
43510
+ 'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',
43511
+ TypeError
43512
+ );
43508
43513
  codes.ERR_UNKNOWN_FILE_EXTENSION = createError(
43509
43514
  "ERR_UNKNOWN_FILE_EXTENSION",
43510
43515
  /**
43511
- * @param {string} ext
43516
+ * @param {string} extension
43512
43517
  * @param {string} path
43513
43518
  */
43514
- (ext, path5) => {
43515
- return `Unknown file extension "${ext}" for ${path5}`;
43519
+ (extension, path5) => {
43520
+ return `Unknown file extension "${extension}" for ${path5}`;
43516
43521
  },
43517
43522
  TypeError
43518
43523
  );
@@ -43556,8 +43561,6 @@ var init_dist6 = __esm({
43556
43561
  hasOwnProperty$1 = {}.hasOwnProperty;
43557
43562
  ({ ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG$1 } = codes);
43558
43563
  cache = /* @__PURE__ */ new Map();
43559
- reader = { read: read2 };
43560
- packageJsonReader = reader;
43561
43564
  ({ ERR_UNKNOWN_FILE_EXTENSION } = codes);
43562
43565
  hasOwnProperty2 = {}.hasOwnProperty;
43563
43566
  extensionFormatMap = {
@@ -43588,14 +43591,15 @@ var init_dist6 = __esm({
43588
43591
  ERR_MODULE_NOT_FOUND,
43589
43592
  ERR_PACKAGE_IMPORT_NOT_DEFINED,
43590
43593
  ERR_PACKAGE_PATH_NOT_EXPORTED,
43591
- ERR_UNSUPPORTED_DIR_IMPORT
43594
+ ERR_UNSUPPORTED_DIR_IMPORT,
43595
+ ERR_UNSUPPORTED_RESOLVE_REQUEST
43592
43596
  } = codes);
43593
43597
  own = {}.hasOwnProperty;
43594
43598
  invalidSegmentRegEx = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i;
43595
43599
  deprecatedInvalidSegmentRegEx = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i;
43596
43600
  invalidPackageNameRegEx = /^\.|%|\\/;
43597
43601
  patternRegEx = /\*/g;
43598
- encodedSepRegEx = /%2f|%5c/i;
43602
+ encodedSeparatorRegEx = /%2f|%5c/i;
43599
43603
  emittedPackageWarnings = /* @__PURE__ */ new Set();
43600
43604
  doubleSlashRegEx = /[/\\]{2}/;
43601
43605
  DEFAULT_CONDITIONS_SET = /* @__PURE__ */ new Set(["node", "import"]);
@@ -72940,27 +72944,23 @@ var init_lib = __esm({
72940
72944
  });
72941
72945
 
72942
72946
  // packages/config/src/schema.ts
72943
- var DarkColorSchema, LightColorSchema, PrimaryColorSchema, SecondaryColorSchema, TertiaryColorSchema, AccentColorSchema, SuccessColorSchema, InfoColorSchema, WarningColorSchema, ErrorColorSchema, FatalColorSchema, DarkThemeColorConfigSchema, LightThemeColorConfigSchema, MultiThemeColorConfigSchema, SingleThemeColorConfigSchema, ColorConfigSchema, ColorConfigMapSchema, StormConfigSchema;
72947
+ var DarkColorSchema, LightColorSchema, BrandColorSchema, AccentColorSchema, SuccessColorSchema, InfoColorSchema, WarningColorSchema, ErrorColorSchema, FatalColorSchema, DarkThemeColorConfigSchema, LightThemeColorConfigSchema, MultiThemeColorConfigSchema, SingleThemeColorConfigSchema, ColorConfigSchema, ColorConfigMapSchema, StormConfigSchema;
72944
72948
  var init_schema = __esm({
72945
72949
  "packages/config/src/schema.ts"() {
72946
72950
  init_lib();
72947
- DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d232a").describe("The dark background color of the workspace");
72951
+ DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#22272E").describe("The dark background color of the workspace");
72948
72952
  LightColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
72949
- PrimaryColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary color of the workspace");
72950
- SecondaryColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0ea5e9").describe("The secondary color of the workspace");
72951
- TertiaryColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#ec5990").describe("The tertiary color of the workspace");
72952
- AccentColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#6366f1").describe("The accent color of the workspace");
72953
+ BrandColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The first brand specific color of the workspace");
72954
+ AccentColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#8256D0").describe("The second brand specific color of the workspace");
72953
72955
  SuccessColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#087f5b").describe("The success color of the workspace");
72954
- InfoColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0ea5e9").describe("The informational color of the workspace");
72956
+ InfoColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#316DCA").describe("The informational color of the workspace");
72955
72957
  WarningColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace");
72956
- ErrorColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#990000").describe("The error color of the workspace");
72957
- FatalColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#7d1a1a").describe("The fatal color of the workspace");
72958
+ ErrorColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#a40e26").describe("The error color of the workspace");
72959
+ FatalColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
72958
72960
  DarkThemeColorConfigSchema = z2.object({
72959
72961
  foreground: LightColorSchema,
72960
72962
  background: DarkColorSchema,
72961
- primary: PrimaryColorSchema,
72962
- secondary: SecondaryColorSchema,
72963
- tertiary: TertiaryColorSchema,
72963
+ brand: BrandColorSchema,
72964
72964
  accent: AccentColorSchema,
72965
72965
  success: SuccessColorSchema,
72966
72966
  info: InfoColorSchema,
@@ -72971,9 +72971,7 @@ var init_schema = __esm({
72971
72971
  LightThemeColorConfigSchema = z2.object({
72972
72972
  foreground: DarkColorSchema,
72973
72973
  background: LightColorSchema,
72974
- primary: PrimaryColorSchema,
72975
- secondary: SecondaryColorSchema,
72976
- tertiary: TertiaryColorSchema,
72974
+ brand: BrandColorSchema,
72977
72975
  accent: AccentColorSchema,
72978
72976
  success: SuccessColorSchema,
72979
72977
  info: InfoColorSchema,
@@ -72988,9 +72986,7 @@ var init_schema = __esm({
72988
72986
  SingleThemeColorConfigSchema = z2.object({
72989
72987
  dark: DarkColorSchema,
72990
72988
  light: LightColorSchema,
72991
- primary: PrimaryColorSchema,
72992
- secondary: SecondaryColorSchema,
72993
- tertiary: TertiaryColorSchema,
72989
+ brand: BrandColorSchema,
72994
72990
  accent: AccentColorSchema,
72995
72991
  success: SuccessColorSchema,
72996
72992
  info: InfoColorSchema,
@@ -73037,7 +73033,7 @@ var init_schema = __esm({
73037
73033
  runtimeVersion: z2.string().trim().regex(
73038
73034
  /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/
73039
73035
  ).default("1.0.0").describe("The global version of the Storm runtime"),
73040
- packageManager: z2.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe("The package manager used by the repository"),
73036
+ packageManager: z2.enum(["npm", "yarn", "pnpm", "bun"]).default("pnpm").describe("The package manager used by the repository"),
73041
73037
  timezone: z2.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
73042
73038
  locale: z2.string().trim().default("en-US").describe("The default locale of the workspace"),
73043
73039
  logLevel: z2.enum([
@@ -73072,9 +73068,7 @@ var init_types = __esm({
73072
73068
  COLOR_KEYS = [
73073
73069
  "dark",
73074
73070
  "light",
73075
- "primary",
73076
- "secondary",
73077
- "tertiary",
73071
+ "brand",
73078
73072
  "accent",
73079
73073
  "success",
73080
73074
  "info",
@@ -73109,17 +73103,26 @@ var init_get_default_config = __esm({
73109
73103
  init_src();
73110
73104
  init_find_workspace_root();
73111
73105
  DEFAULT_COLOR_CONFIG = {
73112
- dark: "#1d232a",
73113
- light: "#f4f4f5",
73114
- primary: "#1fb2a6",
73115
- secondary: "#0ea5e9",
73116
- tertiary: "#ec5990",
73117
- accent: "#6366f1",
73118
- success: "#087f5b",
73119
- info: "#0ea5e9",
73120
- warning: "#fcc419",
73121
- error: "#990000",
73122
- fatal: "#7d1a1a"
73106
+ light: {
73107
+ background: "#f4f4f5",
73108
+ foreground: "#1d232a",
73109
+ brand: "#1fb2a6",
73110
+ accent: "#8250df",
73111
+ success: "#087f5b",
73112
+ info: "#0550ae",
73113
+ warning: "#e3b341",
73114
+ error: "#a40e26"
73115
+ },
73116
+ dark: {
73117
+ background: "#22272E",
73118
+ foreground: "#fcfcf5",
73119
+ brand: "#1fb2a6",
73120
+ accent: "#8256D0",
73121
+ success: "#087f5b",
73122
+ info: "#316DCA",
73123
+ warning: "#F3D371",
73124
+ error: "#d1242f"
73125
+ }
73123
73126
  };
73124
73127
  DEFAULT_STORM_CONFIG = {
73125
73128
  name: "storm",
@@ -74879,7 +74882,7 @@ var init_logger = __esm({
74879
74882
  return (message) => {
74880
74883
  console.error(
74881
74884
  `
74882
- ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#b62324").whiteBright(
74885
+ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
74883
74886
  " \u{1F480} Fatal "
74884
74887
  )} ${_chalk.hex(colors.error ?? "#f85149")(formatLogMessage(message))}
74885
74888
  `
@@ -74934,9 +74937,9 @@ ${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.inf
74934
74937
  return (message) => {
74935
74938
  console.debug(
74936
74939
  `
74937
- ${_chalk.bold.hex(colors.primary ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.primary ?? "#1fb2a6").whiteBright(
74940
+ ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
74938
74941
  " \u{1F6E0} Debug "
74939
- )} ${_chalk.hex(colors.primary ?? "#1fb2a6")(formatLogMessage(message))}
74942
+ )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
74940
74943
  `
74941
74944
  );
74942
74945
  };
@@ -74944,9 +74947,9 @@ ${_chalk.bold.hex(colors.primary ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.
74944
74947
  return (message) => {
74945
74948
  console.log(
74946
74949
  `
74947
- ${_chalk.bold.hex(colors.primary ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.primary ?? "#1fb2a6").whiteBright(
74950
+ ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
74948
74951
  " \u2709 System "
74949
- )} ${_chalk.hex(colors.primary ?? "#1fb2a6")(formatLogMessage(message))}
74952
+ )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
74950
74953
  `
74951
74954
  );
74952
74955
  };
@@ -74974,7 +74977,7 @@ ${_chalk.bold.hex(colors.primary ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.
74974
74977
  };
74975
74978
  };
74976
74979
  formatLogMessage = (message, prefix = "-") => {
74977
- return typeof message === "string" ? message : typeof message === "object" ? `
74980
+ return typeof message === "undefined" || message === null || !message && typeof message !== "boolean" ? "<none>" : typeof message === "string" ? message : typeof message === "object" ? `
74978
74981
  ${Object.keys(message).map(
74979
74982
  (key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? formatLogMessage(message[key], `${prefix}-`) : message[key]}`
74980
74983
  ).join("\n")}` : message;
@@ -75331,15 +75334,13 @@ var init_get_env = __esm({
75331
75334
  };
75332
75335
  getThemeColorConfigEnv = (prefix, theme) => {
75333
75336
  const themeName = `COLOR_${theme && theme !== "base" ? `${theme}_` : ""}`.toUpperCase();
75334
- return process.env[`${prefix}${themeName}LIGHT_PRIMARY`] || process.env[`${prefix}${themeName}DARK_PRIMARY`] ? getMultiThemeColorConfigEnv(prefix + themeName) : getSingleThemeColorConfigEnv(prefix + themeName);
75337
+ return process.env[`${prefix}${themeName}LIGHT_BRAND`] || process.env[`${prefix}${themeName}DARK_BRAND`] ? getMultiThemeColorConfigEnv(prefix + themeName) : getSingleThemeColorConfigEnv(prefix + themeName);
75335
75338
  };
75336
75339
  getSingleThemeColorConfigEnv = (prefix) => {
75337
75340
  return {
75338
75341
  dark: process.env[`${prefix}DARK`],
75339
75342
  light: process.env[`${prefix}LIGHT`],
75340
- primary: process.env[`${prefix}PRIMARY`],
75341
- secondary: process.env[`${prefix}SECONDARY`],
75342
- tertiary: process.env[`${prefix}TERTIARY`],
75343
+ brand: process.env[`${prefix}BRAND`],
75343
75344
  accent: process.env[`${prefix}ACCENT`],
75344
75345
  success: process.env[`${prefix}SUCCESS`],
75345
75346
  info: process.env[`${prefix}INFO`],
@@ -75360,9 +75361,7 @@ var init_get_env = __esm({
75360
75361
  return {
75361
75362
  foreground: process.env[`${prefix}FOREGROUND`],
75362
75363
  background: process.env[`${prefix}BACKGROUND`],
75363
- primary: process.env[`${prefix}PRIMARY`],
75364
- secondary: process.env[`${prefix}SECONDARY`],
75365
- tertiary: process.env[`${prefix}TERTIARY`],
75364
+ brand: process.env[`${prefix}BRAND`],
75366
75365
  accent: process.env[`${prefix}ACCENT`],
75367
75366
  success: process.env[`${prefix}SUCCESS`],
75368
75367
  info: process.env[`${prefix}INFO`],
@@ -75529,7 +75528,7 @@ var init_set_env = __esm({
75529
75528
  }
75530
75529
  };
75531
75530
  setThemeColorConfigEnv = (prefix, config) => {
75532
- return config?.light?.primary || config?.dark?.primary ? setMultiThemeColorConfigEnv(prefix, config) : setSingleThemeColorConfigEnv(prefix, config);
75531
+ return config?.light?.brand || config?.dark?.brand ? setMultiThemeColorConfigEnv(prefix, config) : setSingleThemeColorConfigEnv(prefix, config);
75533
75532
  };
75534
75533
  setSingleThemeColorConfigEnv = (prefix, config) => {
75535
75534
  if (config.dark) {
@@ -75538,14 +75537,8 @@ var init_set_env = __esm({
75538
75537
  if (config.light) {
75539
75538
  process.env[`${prefix}LIGHT`] = config.light;
75540
75539
  }
75541
- if (config.primary) {
75542
- process.env[`${prefix}PRIMARY`] = config.primary;
75543
- }
75544
- if (config.secondary) {
75545
- process.env[`${prefix}SECONDARY`] = config.secondary;
75546
- }
75547
- if (config.tertiary) {
75548
- process.env[`${prefix}TERTIARY`] = config.tertiary;
75540
+ if (config.brand) {
75541
+ process.env[`${prefix}BRAND`] = config.brand;
75549
75542
  }
75550
75543
  if (config.accent) {
75551
75544
  process.env[`${prefix}ACCENT`] = config.accent;
@@ -75579,14 +75572,8 @@ var init_set_env = __esm({
75579
75572
  if (config.background) {
75580
75573
  process.env[`${prefix}BACKGROUND`] = config.background;
75581
75574
  }
75582
- if (config.primary) {
75583
- process.env[`${prefix}PRIMARY`] = config.primary;
75584
- }
75585
- if (config.secondary) {
75586
- process.env[`${prefix}SECONDARY`] = config.secondary;
75587
- }
75588
- if (config.tertiary) {
75589
- process.env[`${prefix}TERTIARY`] = config.tertiary;
75575
+ if (config.brand) {
75576
+ process.env[`${prefix}BRAND`] = config.brand;
75590
75577
  }
75591
75578
  if (config.accent) {
75592
75579
  process.env[`${prefix}ACCENT`] = config.accent;
@@ -302519,7 +302506,7 @@ var require_ProtobufDecodeProgrammer = __commonJS({
302519
302506
  }).map(function(obj) {
302520
302507
  return StatementFactory_1.StatementFactory.constant("".concat(PREFIX, "o").concat(obj.index), write_object_function(project)(importer)(obj));
302521
302508
  });
302522
- var reader2 = StatementFactory_1.StatementFactory.constant("reader", typescript_1.default.factory.createNewExpression(importer.use("Reader"), void 0, [
302509
+ var reader = StatementFactory_1.StatementFactory.constant("reader", typescript_1.default.factory.createNewExpression(importer.use("Reader"), void 0, [
302523
302510
  typescript_1.default.factory.createIdentifier("input")
302524
302511
  ]));
302525
302512
  return typescript_1.default.factory.createArrowFunction(void 0, void 0, [
@@ -302527,7 +302514,7 @@ var require_ProtobufDecodeProgrammer = __commonJS({
302527
302514
  ], typescript_1.default.factory.createImportTypeNode(typescript_1.default.factory.createLiteralTypeNode(typescript_1.default.factory.createStringLiteral("typia")), void 0, typescript_1.default.factory.createIdentifier("Resolved"), [
302528
302515
  typescript_1.default.factory.createTypeReferenceNode(name !== null && name !== void 0 ? name : TypeFactory_1.TypeFactory.getFullName(project.checker)(type))
302529
302516
  ], false), void 0, typescript_1.default.factory.createBlock(__spreadArray(__spreadArray(__spreadArray([], __read(importer.declare(modulo)), false), __read(functors), false), [
302530
- reader2,
302517
+ reader,
302531
302518
  typescript_1.default.factory.createReturnStatement(decode_regular_object(true)(meta.objects[0]))
302532
302519
  ], false), true));
302533
302520
  };