@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.
@@ -3948,27 +3948,23 @@ var init_lib = __esm({
3948
3948
  });
3949
3949
 
3950
3950
  // packages/config/src/schema.ts
3951
- var DarkColorSchema, LightColorSchema, PrimaryColorSchema, SecondaryColorSchema, TertiaryColorSchema, AccentColorSchema, SuccessColorSchema, InfoColorSchema, WarningColorSchema, ErrorColorSchema, FatalColorSchema, DarkThemeColorConfigSchema, LightThemeColorConfigSchema, MultiThemeColorConfigSchema, SingleThemeColorConfigSchema, ColorConfigSchema, ColorConfigMapSchema, StormConfigSchema;
3951
+ var DarkColorSchema, LightColorSchema, BrandColorSchema, AccentColorSchema, SuccessColorSchema, InfoColorSchema, WarningColorSchema, ErrorColorSchema, FatalColorSchema, DarkThemeColorConfigSchema, LightThemeColorConfigSchema, MultiThemeColorConfigSchema, SingleThemeColorConfigSchema, ColorConfigSchema, ColorConfigMapSchema, StormConfigSchema;
3952
3952
  var init_schema = __esm({
3953
3953
  "packages/config/src/schema.ts"() {
3954
3954
  init_lib();
3955
- DarkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d232a").describe("The dark background color of the workspace");
3955
+ DarkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#22272E").describe("The dark background color of the workspace");
3956
3956
  LightColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
3957
- PrimaryColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary color of the workspace");
3958
- SecondaryColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0ea5e9").describe("The secondary color of the workspace");
3959
- TertiaryColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#ec5990").describe("The tertiary color of the workspace");
3960
- AccentColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#6366f1").describe("The accent color of the workspace");
3957
+ BrandColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The first brand specific color of the workspace");
3958
+ AccentColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#8256D0").describe("The second brand specific color of the workspace");
3961
3959
  SuccessColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#087f5b").describe("The success color of the workspace");
3962
- InfoColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0ea5e9").describe("The informational color of the workspace");
3960
+ InfoColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#316DCA").describe("The informational color of the workspace");
3963
3961
  WarningColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace");
3964
- ErrorColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#990000").describe("The error color of the workspace");
3965
- FatalColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#7d1a1a").describe("The fatal color of the workspace");
3962
+ ErrorColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#a40e26").describe("The error color of the workspace");
3963
+ FatalColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
3966
3964
  DarkThemeColorConfigSchema = z.object({
3967
3965
  foreground: LightColorSchema,
3968
3966
  background: DarkColorSchema,
3969
- primary: PrimaryColorSchema,
3970
- secondary: SecondaryColorSchema,
3971
- tertiary: TertiaryColorSchema,
3967
+ brand: BrandColorSchema,
3972
3968
  accent: AccentColorSchema,
3973
3969
  success: SuccessColorSchema,
3974
3970
  info: InfoColorSchema,
@@ -3979,9 +3975,7 @@ var init_schema = __esm({
3979
3975
  LightThemeColorConfigSchema = z.object({
3980
3976
  foreground: DarkColorSchema,
3981
3977
  background: LightColorSchema,
3982
- primary: PrimaryColorSchema,
3983
- secondary: SecondaryColorSchema,
3984
- tertiary: TertiaryColorSchema,
3978
+ brand: BrandColorSchema,
3985
3979
  accent: AccentColorSchema,
3986
3980
  success: SuccessColorSchema,
3987
3981
  info: InfoColorSchema,
@@ -3996,9 +3990,7 @@ var init_schema = __esm({
3996
3990
  SingleThemeColorConfigSchema = z.object({
3997
3991
  dark: DarkColorSchema,
3998
3992
  light: LightColorSchema,
3999
- primary: PrimaryColorSchema,
4000
- secondary: SecondaryColorSchema,
4001
- tertiary: TertiaryColorSchema,
3993
+ brand: BrandColorSchema,
4002
3994
  accent: AccentColorSchema,
4003
3995
  success: SuccessColorSchema,
4004
3996
  info: InfoColorSchema,
@@ -4045,7 +4037,7 @@ var init_schema = __esm({
4045
4037
  runtimeVersion: z.string().trim().regex(
4046
4038
  /^(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-]+)*))?$/
4047
4039
  ).default("1.0.0").describe("The global version of the Storm runtime"),
4048
- packageManager: z.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe("The package manager used by the repository"),
4040
+ packageManager: z.enum(["npm", "yarn", "pnpm", "bun"]).default("pnpm").describe("The package manager used by the repository"),
4049
4041
  timezone: z.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
4050
4042
  locale: z.string().trim().default("en-US").describe("The default locale of the workspace"),
4051
4043
  logLevel: z.enum([
@@ -4080,9 +4072,7 @@ var init_types = __esm({
4080
4072
  COLOR_KEYS = [
4081
4073
  "dark",
4082
4074
  "light",
4083
- "primary",
4084
- "secondary",
4085
- "tertiary",
4075
+ "brand",
4086
4076
  "accent",
4087
4077
  "success",
4088
4078
  "info",
@@ -6082,7 +6072,7 @@ var require_jiti = __commonJS({
6082
6072
  return ".";
6083
6073
  const isUNCPath = (path5 = normalizeWindowsPath2(path5)).match(_UNC_REGEX2), isPathAbsolute = isAbsolute2(path5), trailingSeparator = "/" === path5[path5.length - 1];
6084
6074
  return 0 === (path5 = normalizeString2(path5, !isPathAbsolute)).length ? isPathAbsolute ? "/" : trailingSeparator ? "./" : "." : (trailingSeparator && (path5 += "/"), _DRIVE_LETTER_RE2.test(path5) && (path5 += "/"), isUNCPath ? isPathAbsolute ? `//${path5}` : `//./${path5}` : isPathAbsolute && !isAbsolute2(path5) ? `/${path5}` : path5);
6085
- }, join5 = function(...arguments_) {
6075
+ }, join4 = function(...arguments_) {
6086
6076
  if (0 === arguments_.length)
6087
6077
  return ".";
6088
6078
  let joined;
@@ -8446,7 +8436,7 @@ var require_jiti = __commonJS({
8446
8436
  const stackTraceLimitIsWritable = isErrorStackTraceLimitWritable2();
8447
8437
  return stackTraceLimitIsWritable && (userStackTraceLimit2 = Error.stackTraceLimit, Error.stackTraceLimit = Number.POSITIVE_INFINITY), Error.captureStackTrace(error), stackTraceLimitIsWritable && (Error.stackTraceLimit = userStackTraceLimit2), error;
8448
8438
  });
8449
- const packageJsonReader2 = { read: function(jsonPath) {
8439
+ const packageJsonReader = { read: function(jsonPath) {
8450
8440
  try {
8451
8441
  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") };
8452
8442
  } catch (error) {
@@ -8461,7 +8451,7 @@ var require_jiti = __commonJS({
8461
8451
  const existing = packageJsonCache.get(path5);
8462
8452
  if (void 0 !== existing)
8463
8453
  return existing;
8464
- const source = packageJsonReader2.read(path5).string;
8454
+ const source = packageJsonReader.read(path5).string;
8465
8455
  if (void 0 === source) {
8466
8456
  const packageConfig2 = { pjsonPath: path5, exists: false, main: void 0, name: void 0, type: "none", exports: void 0, imports: void 0 };
8467
8457
  return packageJsonCache.set(path5, packageConfig2), packageConfig2;
@@ -8524,7 +8514,7 @@ var require_jiti = __commonJS({
8524
8514
  }, "http:": getHttpProtocolModuleFormat2, "https:": getHttpProtocolModuleFormat2, "node:": () => "builtin" };
8525
8515
  function getHttpProtocolModuleFormat2() {
8526
8516
  }
8527
- 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}/;
8517
+ 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}/;
8528
8518
  function emitInvalidSegmentDeprecation2(target, request, match, packageJsonUrl, internal, base, isTarget) {
8529
8519
  const pjsonPath = (0, external_node_url_namespaceObject.fileURLToPath)(packageJsonUrl), double = null !== doubleSlashRegEx2.exec(isTarget ? target : request);
8530
8520
  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");
@@ -8811,7 +8801,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
8811
8801
  else
8812
8802
  resolved = packageImportsResolve2(specifier, base, conditions);
8813
8803
  return external_node_assert_namespaceObject(void 0 !== resolved, "expected to be defined"), "file:" !== resolved.protocol ? resolved : function(resolved2, base2, preserveSymlinks2) {
8814
- if (null !== encodedSepRegEx2.exec(resolved2.pathname))
8804
+ if (null !== encodedSepRegEx.exec(resolved2.pathname))
8815
8805
  throw new ERR_INVALID_MODULE_SPECIFIER2(resolved2.pathname, 'must not include encoded "/" or "\\" characters', (0, external_node_url_namespaceObject.fileURLToPath)(base2));
8816
8806
  const filePath = (0, external_node_url_namespaceObject.fileURLToPath)(resolved2), stats = tryStatSync2(filePath.endsWith("/") ? filePath.slice(-1) : filePath);
8817
8807
  if (stats.isDirectory()) {
@@ -8928,13 +8918,13 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
8928
8918
  } catch (_a) {
8929
8919
  return false;
8930
8920
  }
8931
- }(_filename) && (_filename = join5(_filename, "index.js")), true === opts.cache && (opts.cache = function() {
8921
+ }(_filename) && (_filename = join4(_filename, "index.js")), true === opts.cache && (opts.cache = function() {
8932
8922
  let _tmpDir = (0, external_os_namespaceObject.tmpdir)();
8933
8923
  if (process.env.TMPDIR && _tmpDir === process.cwd() && !process.env.JITI_RESPECT_TMPDIR_ENV) {
8934
8924
  const _env = process.env.TMPDIR;
8935
8925
  delete process.env.TMPDIR, _tmpDir = (0, external_os_namespaceObject.tmpdir)(), process.env.TMPDIR = _env;
8936
8926
  }
8937
- return join5(_tmpDir, "node-jiti");
8927
+ return join4(_tmpDir, "node-jiti");
8938
8928
  }()), opts.cache)
8939
8929
  try {
8940
8930
  if ((0, external_fs_.mkdirSync)(opts.cache, { recursive: true }), !function(filename) {
@@ -8960,7 +8950,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
8960
8950
  aliases2 = normalizeAliases(aliases2);
8961
8951
  for (const alias2 in aliases2)
8962
8952
  if (_path.startsWith(alias2) && pathSeparators.has(_path[alias2.length]))
8963
- return join5(aliases2[alias2], _path.slice(alias2.length));
8953
+ return join4(aliases2[alias2], _path.slice(alias2.length));
8964
8954
  return _path;
8965
8955
  }(id, alias)), opts.esmResolve) {
8966
8956
  const conditionSets = [["node", "require"], ["node", "import"]];
@@ -8991,7 +8981,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
8991
8981
  let code = function(filename, source, get) {
8992
8982
  if (!opts.cache || !filename)
8993
8983
  return get();
8994
- const sourceHash = ` /* v${opts.cacheVersion}-${md5(source, 16)} */`, filebase = basename2(pathe_92c04245_dirname(filename)) + "-" + basename2(filename), cacheFile = join5(opts.cache, filebase + "." + md5(filename) + ".js");
8984
+ const sourceHash = ` /* v${opts.cacheVersion}-${md5(source, 16)} */`, filebase = basename2(pathe_92c04245_dirname(filename)) + "-" + basename2(filename), cacheFile = join4(opts.cache, filebase + "." + md5(filename) + ".js");
8995
8985
  if ((0, external_fs_.existsSync)(cacheFile)) {
8996
8986
  const cacheSource = (0, external_fs_.readFileSync)(cacheFile, "utf8");
8997
8987
  if (cacheSource.endsWith(sourceHash))
@@ -9060,9 +9050,9 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
9060
9050
  var _a;
9061
9051
  const id = evalOptions.id || (evalOptions.filename ? basename2(evalOptions.filename) : `_jitiEval.${evalOptions.ext || ".js"}`), filename = evalOptions.filename || _resolve3(id), ext = evalOptions.ext || extname3(filename), cache2 = evalOptions.cache || parentCache || {}, isTypescript = ".ts" === ext || ".mts" === ext || ".cts" === ext, isNativeModule = ".mjs" === ext || ".js" === ext && "module" === (null === (_a = function(path5) {
9062
9052
  for (; path5 && "." !== path5 && "/" !== path5; ) {
9063
- path5 = join5(path5, "..");
9053
+ path5 = join4(path5, "..");
9064
9054
  try {
9065
- const pkg = (0, external_fs_.readFileSync)(join5(path5, "package.json"), "utf8");
9055
+ const pkg = (0, external_fs_.readFileSync)(join4(path5, "package.json"), "utf8");
9066
9056
  try {
9067
9057
  return JSON.parse(pkg);
9068
9058
  } catch (_a2) {
@@ -14417,7 +14407,7 @@ Add ${syntaxPluginInfo} to the 'plugins' section of your Babel config to enable
14417
14407
  const stackTraceLimitIsWritable = isErrorStackTraceLimitWritable2();
14418
14408
  return stackTraceLimitIsWritable && (userStackTraceLimit2 = Error.stackTraceLimit, Error.stackTraceLimit = Number.POSITIVE_INFINITY), Error.captureStackTrace(error), stackTraceLimitIsWritable && (Error.stackTraceLimit = userStackTraceLimit2), error;
14419
14409
  });
14420
- var packageJsonReader2 = { read: function(jsonPath) {
14410
+ var packageJsonReader = { read: function(jsonPath) {
14421
14411
  try {
14422
14412
  return { string: _fs().default.readFileSync(_path().toNamespacedPath(_path().join(_path().dirname(jsonPath), "package.json")), "utf8") };
14423
14413
  } catch (error) {
@@ -14432,7 +14422,7 @@ Add ${syntaxPluginInfo} to the 'plugins' section of your Babel config to enable
14432
14422
  const existing = packageJsonCache.get(path5);
14433
14423
  if (void 0 !== existing)
14434
14424
  return existing;
14435
- const source = packageJsonReader2.read(path5).string;
14425
+ const source = packageJsonReader.read(path5).string;
14436
14426
  if (void 0 === source) {
14437
14427
  const packageConfig2 = { pjsonPath: path5, exists: false, main: void 0, name: void 0, type: "none", exports: void 0, imports: void 0 };
14438
14428
  return packageJsonCache.set(path5, packageConfig2), packageConfig2;
@@ -14499,7 +14489,7 @@ Add ${syntaxPluginInfo} to the 'plugins' section of your Babel config to enable
14499
14489
  return hasOwnProperty3.call(protocolHandlers2, url.protocol) && protocolHandlers2[url.protocol](url, context, true) || null;
14500
14490
  }
14501
14491
  const { ERR_INVALID_ARG_VALUE } = codes2, DEFAULT_CONDITIONS = Object.freeze(["node", "import"]), DEFAULT_CONDITIONS_SET2 = new Set(DEFAULT_CONDITIONS);
14502
- 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}/;
14492
+ 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}/;
14503
14493
  function emitInvalidSegmentDeprecation2(target, request, match, packageJsonUrl, internal, base, isTarget) {
14504
14494
  const pjsonPath = (0, _url().fileURLToPath)(packageJsonUrl), double = null !== doubleSlashRegEx2.exec(isTarget ? target : request);
14505
14495
  _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");
@@ -14784,7 +14774,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
14784
14774
  else
14785
14775
  resolved = packageImportsResolve2(specifier, base, conditions);
14786
14776
  return _assert()(void 0 !== resolved, "expected to be defined"), "file:" !== resolved.protocol ? resolved : function(resolved2, base2, preserveSymlinks2) {
14787
- if (null !== encodedSepRegEx2.exec(resolved2.pathname))
14777
+ if (null !== encodedSepRegEx.exec(resolved2.pathname))
14788
14778
  throw new ERR_INVALID_MODULE_SPECIFIER2(resolved2.pathname, 'must not include encoded "/" or "\\" characters', (0, _url().fileURLToPath)(base2));
14789
14779
  const filePath = (0, _url().fileURLToPath)(resolved2), stats = tryStatSync2(filePath.endsWith("/") ? filePath.slice(-1) : filePath);
14790
14780
  if (stats.isDirectory()) {
@@ -44095,27 +44085,27 @@ var init_dist5 = __esm({
44095
44085
  }
44096
44086
  });
44097
44087
 
44098
- // node_modules/.pnpm/mlly@1.6.1/node_modules/mlly/dist/index.mjs
44088
+ // node_modules/.pnpm/mlly@1.7.0/node_modules/mlly/dist/index.mjs
44099
44089
  function normalizeSlash(path5) {
44100
44090
  return path5.replace(/\\/g, "/");
44101
44091
  }
44102
44092
  function formatList(array, type = "and") {
44103
44093
  return array.length < 3 ? array.join(` ${type} `) : `${array.slice(0, -1).join(", ")}, ${type} ${array[array.length - 1]}`;
44104
44094
  }
44105
- function createError(sym, value2, def) {
44095
+ function createError(sym, value2, constructor) {
44106
44096
  messages.set(sym, value2);
44107
- return makeNodeErrorWithCode(def, sym);
44097
+ return makeNodeErrorWithCode(constructor, sym);
44108
44098
  }
44109
44099
  function makeNodeErrorWithCode(Base, key) {
44110
44100
  return NodeError;
44111
- function NodeError(...args) {
44101
+ function NodeError(...parameters) {
44112
44102
  const limit = Error.stackTraceLimit;
44113
44103
  if (isErrorStackTraceLimitWritable())
44114
44104
  Error.stackTraceLimit = 0;
44115
44105
  const error = new Base();
44116
44106
  if (isErrorStackTraceLimitWritable())
44117
44107
  Error.stackTraceLimit = limit;
44118
- const message = getMessage(key, args, error);
44108
+ const message = getMessage(key, parameters, error);
44119
44109
  Object.defineProperties(error, {
44120
44110
  // Note: no need to implement `kIsNodeError` symbol, would be hard,
44121
44111
  // probably.
@@ -44153,34 +44143,34 @@ function isErrorStackTraceLimitWritable() {
44153
44143
  }
44154
44144
  return own$1.call(desc, "writable") && desc.writable !== void 0 ? desc.writable : desc.set !== void 0;
44155
44145
  }
44156
- function hideStackFrames(fn2) {
44157
- const hidden = nodeInternalPrefix + fn2.name;
44158
- Object.defineProperty(fn2, "name", { value: hidden });
44159
- return fn2;
44146
+ function hideStackFrames(wrappedFunction) {
44147
+ const hidden = nodeInternalPrefix + wrappedFunction.name;
44148
+ Object.defineProperty(wrappedFunction, "name", { value: hidden });
44149
+ return wrappedFunction;
44160
44150
  }
44161
- function getMessage(key, args, self2) {
44151
+ function getMessage(key, parameters, self2) {
44162
44152
  const message = messages.get(key);
44163
44153
  (0, import_node_assert.default)(message !== void 0, "expected `message` to be found");
44164
44154
  if (typeof message === "function") {
44165
44155
  (0, import_node_assert.default)(
44166
- message.length <= args.length,
44156
+ message.length <= parameters.length,
44167
44157
  // Default options do not count.
44168
- `Code: ${key}; The provided arguments length (${args.length}) does not match the required ones (${message.length}).`
44158
+ `Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${message.length}).`
44169
44159
  );
44170
- return Reflect.apply(message, self2, args);
44160
+ return Reflect.apply(message, self2, parameters);
44171
44161
  }
44172
44162
  const regex = /%[dfijoOs]/g;
44173
44163
  let expectedLength = 0;
44174
44164
  while (regex.exec(message) !== null)
44175
44165
  expectedLength++;
44176
44166
  (0, import_node_assert.default)(
44177
- expectedLength === args.length,
44178
- `Code: ${key}; The provided arguments length (${args.length}) does not match the required ones (${expectedLength}).`
44167
+ expectedLength === parameters.length,
44168
+ `Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${expectedLength}).`
44179
44169
  );
44180
- if (args.length === 0)
44170
+ if (parameters.length === 0)
44181
44171
  return message;
44182
- args.unshift(message);
44183
- return Reflect.apply(import_node_util.format, null, args);
44172
+ parameters.unshift(message);
44173
+ return Reflect.apply(import_node_util.format, null, parameters);
44184
44174
  }
44185
44175
  function determineSpecificType(value2) {
44186
44176
  if (value2 === null || value2 === void 0) {
@@ -44266,21 +44256,20 @@ function read2(jsonPath, { base, specifier }) {
44266
44256
  return result;
44267
44257
  }
44268
44258
  function getPackageScopeConfig(resolved) {
44269
- let packageJSONUrl = new import_node_url.URL("package.json", resolved);
44259
+ let packageJSONUrl = new URL("package.json", resolved);
44270
44260
  while (true) {
44271
44261
  const packageJSONPath2 = packageJSONUrl.pathname;
44272
44262
  if (packageJSONPath2.endsWith("node_modules/package.json")) {
44273
44263
  break;
44274
44264
  }
44275
- const packageConfig = packageJsonReader.read(
44276
- (0, import_node_url.fileURLToPath)(packageJSONUrl),
44277
- { specifier: resolved }
44278
- );
44265
+ const packageConfig = read2((0, import_node_url.fileURLToPath)(packageJSONUrl), {
44266
+ specifier: resolved
44267
+ });
44279
44268
  if (packageConfig.exists) {
44280
44269
  return packageConfig;
44281
44270
  }
44282
44271
  const lastPackageJSONUrl = packageJSONUrl;
44283
- packageJSONUrl = new import_node_url.URL("../package.json", packageJSONUrl);
44272
+ packageJSONUrl = new URL("../package.json", packageJSONUrl);
44284
44273
  if (packageJSONUrl.pathname === lastPackageJSONUrl.pathname) {
44285
44274
  break;
44286
44275
  }
@@ -44289,16 +44278,11 @@ function getPackageScopeConfig(resolved) {
44289
44278
  return {
44290
44279
  pjsonPath: packageJSONPath,
44291
44280
  exists: false,
44292
- main: void 0,
44293
- name: void 0,
44294
- type: "none",
44295
- exports: void 0,
44296
- imports: void 0
44281
+ type: "none"
44297
44282
  };
44298
44283
  }
44299
44284
  function getPackageType(url) {
44300
- const packageConfig = getPackageScopeConfig(url);
44301
- return packageConfig.type;
44285
+ return getPackageScopeConfig(url).type;
44302
44286
  }
44303
44287
  function mimeToFormat(mime) {
44304
44288
  if (mime && /\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(mime))
@@ -44328,29 +44312,29 @@ function extname2(url) {
44328
44312
  return "";
44329
44313
  }
44330
44314
  function getFileProtocolModuleFormat(url, _context, ignoreErrors) {
44331
- const ext = extname2(url);
44332
- if (ext === ".js") {
44315
+ const value2 = extname2(url);
44316
+ if (value2 === ".js") {
44333
44317
  const packageType = getPackageType(url);
44334
44318
  if (packageType !== "none") {
44335
44319
  return packageType;
44336
44320
  }
44337
44321
  return "commonjs";
44338
44322
  }
44339
- if (ext === "") {
44323
+ if (value2 === "") {
44340
44324
  const packageType = getPackageType(url);
44341
44325
  if (packageType === "none" || packageType === "commonjs") {
44342
44326
  return "commonjs";
44343
44327
  }
44344
44328
  return "module";
44345
44329
  }
44346
- const format3 = extensionFormatMap[ext];
44330
+ const format3 = extensionFormatMap[value2];
44347
44331
  if (format3)
44348
44332
  return format3;
44349
44333
  if (ignoreErrors) {
44350
44334
  return void 0;
44351
44335
  }
44352
44336
  const filepath = (0, import_node_url.fileURLToPath)(url);
44353
- throw new ERR_UNKNOWN_FILE_EXTENSION(ext, filepath);
44337
+ throw new ERR_UNKNOWN_FILE_EXTENSION(value2, filepath);
44354
44338
  }
44355
44339
  function getHttpProtocolModuleFormat() {
44356
44340
  }
@@ -44381,21 +44365,21 @@ function emitLegacyIndexDeprecation(url, packageJsonUrl, base, main) {
44381
44365
  if (format3 !== "module")
44382
44366
  return;
44383
44367
  const urlPath = (0, import_node_url.fileURLToPath)(url.href);
44384
- const pkgPath = (0, import_node_url.fileURLToPath)(new import_node_url.URL(".", packageJsonUrl));
44368
+ const packagePath = (0, import_node_url.fileURLToPath)(new import_node_url.URL(".", packageJsonUrl));
44385
44369
  const basePath = (0, import_node_url.fileURLToPath)(base);
44386
44370
  if (!main) {
44387
44371
  import_node_process.default.emitWarning(
44388
- `No "main" or "exports" field defined in the package.json for ${pkgPath} resolving the main entry point "${urlPath.slice(
44389
- pkgPath.length
44372
+ `No "main" or "exports" field defined in the package.json for ${packagePath} resolving the main entry point "${urlPath.slice(
44373
+ packagePath.length
44390
44374
  )}", imported from ${basePath}.
44391
44375
  Default "index" lookups for the main are deprecated for ES modules.`,
44392
44376
  "DeprecationWarning",
44393
44377
  "DEP0151"
44394
44378
  );
44395
- } else if (import_node_path3.default.resolve(pkgPath, main) !== urlPath) {
44379
+ } else if (import_node_path3.default.resolve(packagePath, main) !== urlPath) {
44396
44380
  import_node_process.default.emitWarning(
44397
- `Package ${pkgPath} has a "main" field set to "${main}", excluding the full filename and extension to the resolved file at "${urlPath.slice(
44398
- pkgPath.length
44381
+ `Package ${packagePath} has a "main" field set to "${main}", excluding the full filename and extension to the resolved file at "${urlPath.slice(
44382
+ packagePath.length
44399
44383
  )}", imported from ${basePath}.
44400
44384
  Automatic extension resolution of the "main" field is deprecated for ES modules.`,
44401
44385
  "DeprecationWarning",
@@ -44407,7 +44391,6 @@ function tryStatSync(path5) {
44407
44391
  try {
44408
44392
  return (0, import_node_fs3.statSync)(path5);
44409
44393
  } catch {
44410
- return new import_node_fs3.Stats();
44411
44394
  }
44412
44395
  }
44413
44396
  function fileExists(url) {
@@ -44464,7 +44447,7 @@ function legacyMainResolve(packageJsonUrl, packageConfig, base) {
44464
44447
  );
44465
44448
  }
44466
44449
  function finalizeResolution(resolved, base, preserveSymlinks) {
44467
- if (encodedSepRegEx.exec(resolved.pathname) !== null) {
44450
+ if (encodedSeparatorRegEx.exec(resolved.pathname) !== null) {
44468
44451
  throw new ERR_INVALID_MODULE_SPECIFIER(
44469
44452
  resolved.pathname,
44470
44453
  'must not include encoded "/" or "\\" characters',
@@ -44486,12 +44469,12 @@ function finalizeResolution(resolved, base, preserveSymlinks) {
44486
44469
  const stats = tryStatSync(
44487
44470
  filePath.endsWith("/") ? filePath.slice(-1) : filePath
44488
44471
  );
44489
- if (stats.isDirectory()) {
44472
+ if (stats && stats.isDirectory()) {
44490
44473
  const error = new ERR_UNSUPPORTED_DIR_IMPORT(filePath, (0, import_node_url.fileURLToPath)(base));
44491
44474
  error.url = String(resolved);
44492
44475
  throw error;
44493
44476
  }
44494
- if (!stats.isFile()) {
44477
+ if (!stats || !stats.isFile()) {
44495
44478
  const error = new ERR_MODULE_NOT_FOUND(
44496
44479
  filePath || resolved.pathname,
44497
44480
  base && (0, import_node_url.fileURLToPath)(base),
@@ -44749,13 +44732,13 @@ function isConditionalExportsMainSugar(exports2, packageJsonUrl, base) {
44749
44732
  const keys = Object.getOwnPropertyNames(exports2);
44750
44733
  let isConditionalSugar = false;
44751
44734
  let i2 = 0;
44752
- let j3 = -1;
44753
- while (++j3 < keys.length) {
44754
- const key = keys[j3];
44755
- const curIsConditionalSugar = key === "" || key[0] !== ".";
44735
+ let keyIndex = -1;
44736
+ while (++keyIndex < keys.length) {
44737
+ const key = keys[keyIndex];
44738
+ const currentIsConditionalSugar = key === "" || key[0] !== ".";
44756
44739
  if (i2++ === 0) {
44757
- isConditionalSugar = curIsConditionalSugar;
44758
- } else if (isConditionalSugar !== curIsConditionalSugar) {
44740
+ isConditionalSugar = currentIsConditionalSugar;
44741
+ } else if (isConditionalSugar !== currentIsConditionalSugar) {
44759
44742
  throw new ERR_INVALID_PACKAGE_CONFIG(
44760
44743
  (0, import_node_url.fileURLToPath)(packageJsonUrl),
44761
44744
  base,
@@ -44991,7 +44974,7 @@ function packageResolve(specifier, base, conditions) {
44991
44974
  let lastPath;
44992
44975
  do {
44993
44976
  const stat = tryStatSync(packageJsonPath.slice(0, -13));
44994
- if (!stat.isDirectory()) {
44977
+ if (!stat || !stat.isDirectory()) {
44995
44978
  lastPath = packageJsonPath;
44996
44979
  packageJsonUrl = new import_node_url.URL(
44997
44980
  (isScoped ? "../../../../node_modules/" : "../../../node_modules/") + packageName + "/package.json",
@@ -45000,10 +44983,7 @@ function packageResolve(specifier, base, conditions) {
45000
44983
  packageJsonPath = (0, import_node_url.fileURLToPath)(packageJsonUrl);
45001
44984
  continue;
45002
44985
  }
45003
- const packageConfig2 = packageJsonReader.read(packageJsonPath, {
45004
- base,
45005
- specifier
45006
- });
44986
+ const packageConfig2 = read2(packageJsonPath, { base, specifier });
45007
44987
  if (packageConfig2.exports !== void 0 && packageConfig2.exports !== null) {
45008
44988
  return packageExportsResolve(
45009
44989
  packageJsonUrl,
@@ -45039,19 +45019,29 @@ function shouldBeTreatedAsRelativeOrAbsolutePath(specifier) {
45039
45019
  }
45040
45020
  function moduleResolve(specifier, base, conditions, preserveSymlinks) {
45041
45021
  const protocol = base.protocol;
45042
- const isRemote = protocol === "http:" || protocol === "https:";
45022
+ const isData = protocol === "data:";
45023
+ const isRemote = isData || protocol === "http:" || protocol === "https:";
45043
45024
  let resolved;
45044
45025
  if (shouldBeTreatedAsRelativeOrAbsolutePath(specifier)) {
45045
- resolved = new import_node_url.URL(specifier, base);
45046
- } else if (!isRemote && specifier[0] === "#") {
45026
+ try {
45027
+ resolved = new import_node_url.URL(specifier, base);
45028
+ } catch (error_) {
45029
+ const error = new ERR_UNSUPPORTED_RESOLVE_REQUEST(specifier, base);
45030
+ error.cause = error_;
45031
+ throw error;
45032
+ }
45033
+ } else if (protocol === "file:" && specifier[0] === "#") {
45047
45034
  resolved = packageImportsResolve(specifier, base, conditions);
45048
45035
  } else {
45049
45036
  try {
45050
45037
  resolved = new import_node_url.URL(specifier);
45051
- } catch {
45052
- if (!isRemote) {
45053
- resolved = packageResolve(specifier, base, conditions);
45038
+ } catch (error_) {
45039
+ if (isRemote && !import_node_module.builtinModules.includes(specifier)) {
45040
+ const error = new ERR_UNSUPPORTED_RESOLVE_REQUEST(specifier, base);
45041
+ error.cause = error_;
45042
+ throw error;
45054
45043
  }
45044
+ resolved = packageResolve(specifier, base, conditions);
45055
45045
  }
45056
45046
  }
45057
45047
  (0, import_node_assert.default)(resolved !== void 0, "expected to be defined");
@@ -45183,9 +45173,9 @@ function resolvePath(id, options) {
45183
45173
  return Promise.reject(error);
45184
45174
  }
45185
45175
  }
45186
- 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;
45176
+ 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;
45187
45177
  var init_dist6 = __esm({
45188
- "node_modules/.pnpm/mlly@1.6.1/node_modules/mlly/dist/index.mjs"() {
45178
+ "node_modules/.pnpm/mlly@1.7.0/node_modules/mlly/dist/index.mjs"() {
45189
45179
  init_acorn();
45190
45180
  import_node_module = require("node:module");
45191
45181
  import_node_fs3 = __toESM(require("node:fs"), 1);
@@ -45316,21 +45306,21 @@ var init_dist6 = __esm({
45316
45306
  codes.ERR_INVALID_PACKAGE_TARGET = createError(
45317
45307
  "ERR_INVALID_PACKAGE_TARGET",
45318
45308
  /**
45319
- * @param {string} pkgPath
45309
+ * @param {string} packagePath
45320
45310
  * @param {string} key
45321
45311
  * @param {unknown} target
45322
45312
  * @param {boolean} [isImport=false]
45323
45313
  * @param {string} [base]
45324
45314
  */
45325
- (pkgPath, key, target, isImport = false, base = void 0) => {
45326
- const relError = typeof target === "string" && !isImport && target.length > 0 && !target.startsWith("./");
45315
+ (packagePath, key, target, isImport = false, base = void 0) => {
45316
+ const relatedError = typeof target === "string" && !isImport && target.length > 0 && !target.startsWith("./");
45327
45317
  if (key === ".") {
45328
45318
  (0, import_node_assert.default)(isImport === false);
45329
- 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 "./"' : ""}`;
45319
+ 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 "./"' : ""}`;
45330
45320
  }
45331
45321
  return `Invalid "${isImport ? "imports" : "exports"}" target ${JSON.stringify(
45332
45322
  target
45333
- )} defined for '${key}' in the package config ${pkgPath}package.json${base ? ` imported from ${base}` : ""}${relError ? '; targets must start with "./"' : ""}`;
45323
+ )} defined for '${key}' in the package config ${packagePath}package.json${base ? ` imported from ${base}` : ""}${relatedError ? '; targets must start with "./"' : ""}`;
45334
45324
  },
45335
45325
  Error
45336
45326
  );
@@ -45366,14 +45356,14 @@ var init_dist6 = __esm({
45366
45356
  codes.ERR_PACKAGE_PATH_NOT_EXPORTED = createError(
45367
45357
  "ERR_PACKAGE_PATH_NOT_EXPORTED",
45368
45358
  /**
45369
- * @param {string} pkgPath
45359
+ * @param {string} packagePath
45370
45360
  * @param {string} subpath
45371
45361
  * @param {string} [base]
45372
45362
  */
45373
- (pkgPath, subpath, base = void 0) => {
45363
+ (packagePath, subpath, base = void 0) => {
45374
45364
  if (subpath === ".")
45375
- return `No "exports" main defined in ${pkgPath}package.json${base ? ` imported from ${base}` : ""}`;
45376
- return `Package subpath '${subpath}' is not defined by "exports" in ${pkgPath}package.json${base ? ` imported from ${base}` : ""}`;
45365
+ return `No "exports" main defined in ${packagePath}package.json${base ? ` imported from ${base}` : ""}`;
45366
+ return `Package subpath '${subpath}' is not defined by "exports" in ${packagePath}package.json${base ? ` imported from ${base}` : ""}`;
45377
45367
  },
45378
45368
  Error
45379
45369
  );
@@ -45382,14 +45372,19 @@ var init_dist6 = __esm({
45382
45372
  "Directory import '%s' is not supported resolving ES modules imported from %s",
45383
45373
  Error
45384
45374
  );
45375
+ codes.ERR_UNSUPPORTED_RESOLVE_REQUEST = createError(
45376
+ "ERR_UNSUPPORTED_RESOLVE_REQUEST",
45377
+ 'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',
45378
+ TypeError
45379
+ );
45385
45380
  codes.ERR_UNKNOWN_FILE_EXTENSION = createError(
45386
45381
  "ERR_UNKNOWN_FILE_EXTENSION",
45387
45382
  /**
45388
- * @param {string} ext
45383
+ * @param {string} extension
45389
45384
  * @param {string} path
45390
45385
  */
45391
- (ext, path5) => {
45392
- return `Unknown file extension "${ext}" for ${path5}`;
45386
+ (extension, path5) => {
45387
+ return `Unknown file extension "${extension}" for ${path5}`;
45393
45388
  },
45394
45389
  TypeError
45395
45390
  );
@@ -45433,8 +45428,6 @@ var init_dist6 = __esm({
45433
45428
  hasOwnProperty$1 = {}.hasOwnProperty;
45434
45429
  ({ ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG$1 } = codes);
45435
45430
  cache = /* @__PURE__ */ new Map();
45436
- reader = { read: read2 };
45437
- packageJsonReader = reader;
45438
45431
  ({ ERR_UNKNOWN_FILE_EXTENSION } = codes);
45439
45432
  hasOwnProperty2 = {}.hasOwnProperty;
45440
45433
  extensionFormatMap = {
@@ -45465,14 +45458,15 @@ var init_dist6 = __esm({
45465
45458
  ERR_MODULE_NOT_FOUND,
45466
45459
  ERR_PACKAGE_IMPORT_NOT_DEFINED,
45467
45460
  ERR_PACKAGE_PATH_NOT_EXPORTED,
45468
- ERR_UNSUPPORTED_DIR_IMPORT
45461
+ ERR_UNSUPPORTED_DIR_IMPORT,
45462
+ ERR_UNSUPPORTED_RESOLVE_REQUEST
45469
45463
  } = codes);
45470
45464
  own = {}.hasOwnProperty;
45471
45465
  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;
45472
45466
  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;
45473
45467
  invalidPackageNameRegEx = /^\.|%|\\/;
45474
45468
  patternRegEx = /\*/g;
45475
- encodedSepRegEx = /%2f|%5c/i;
45469
+ encodedSeparatorRegEx = /%2f|%5c/i;
45476
45470
  emittedPackageWarnings = /* @__PURE__ */ new Set();
45477
45471
  doubleSlashRegEx = /[/\\]{2}/;
45478
45472
  DEFAULT_CONDITIONS_SET = /* @__PURE__ */ new Set(["node", "import"]);
@@ -53851,7 +53845,7 @@ var require_path_reservations = __commonJS({
53851
53845
  var assert2 = require("assert");
53852
53846
  var normalize2 = require_normalize_unicode();
53853
53847
  var stripSlashes = require_strip_trailing_slashes();
53854
- var { join: join5 } = require("path");
53848
+ var { join: join4 } = require("path");
53855
53849
  var platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
53856
53850
  var isWindows = platform === "win32";
53857
53851
  module2.exports = () => {
@@ -53860,7 +53854,7 @@ var require_path_reservations = __commonJS({
53860
53854
  const getDirs = (path5) => {
53861
53855
  const dirs = path5.split("/").slice(0, -1).reduce((set, path6) => {
53862
53856
  if (set.length) {
53863
- path6 = join5(set[set.length - 1], path6);
53857
+ path6 = join4(set[set.length - 1], path6);
53864
53858
  }
53865
53859
  set.push(path6 || "/");
53866
53860
  return set;
@@ -53928,7 +53922,7 @@ var require_path_reservations = __commonJS({
53928
53922
  };
53929
53923
  const reserve = (paths, fn2) => {
53930
53924
  paths = isWindows ? ["win32 parallelization disabled"] : paths.map((p2) => {
53931
- return stripSlashes(join5(normalize2(p2))).toLowerCase();
53925
+ return stripSlashes(join4(normalize2(p2))).toLowerCase();
53932
53926
  });
53933
53927
  const dirs = new Set(
53934
53928
  paths.map((path5) => getDirs(path5)).reduce((a2, b6) => a2.concat(b6))
@@ -70910,17 +70904,26 @@ var init_get_default_config = __esm({
70910
70904
  init_src();
70911
70905
  init_find_workspace_root();
70912
70906
  DEFAULT_COLOR_CONFIG = {
70913
- dark: "#1d232a",
70914
- light: "#f4f4f5",
70915
- primary: "#1fb2a6",
70916
- secondary: "#0ea5e9",
70917
- tertiary: "#ec5990",
70918
- accent: "#6366f1",
70919
- success: "#087f5b",
70920
- info: "#0ea5e9",
70921
- warning: "#fcc419",
70922
- error: "#990000",
70923
- fatal: "#7d1a1a"
70907
+ light: {
70908
+ background: "#f4f4f5",
70909
+ foreground: "#1d232a",
70910
+ brand: "#1fb2a6",
70911
+ accent: "#8250df",
70912
+ success: "#087f5b",
70913
+ info: "#0550ae",
70914
+ warning: "#e3b341",
70915
+ error: "#a40e26"
70916
+ },
70917
+ dark: {
70918
+ background: "#22272E",
70919
+ foreground: "#fcfcf5",
70920
+ brand: "#1fb2a6",
70921
+ accent: "#8256D0",
70922
+ success: "#087f5b",
70923
+ info: "#316DCA",
70924
+ warning: "#F3D371",
70925
+ error: "#d1242f"
70926
+ }
70924
70927
  };
70925
70928
  DEFAULT_STORM_CONFIG = {
70926
70929
  name: "storm",
@@ -72680,7 +72683,7 @@ var init_logger = __esm({
72680
72683
  return (message) => {
72681
72684
  console.error(
72682
72685
  `
72683
- ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#b62324").whiteBright(
72686
+ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
72684
72687
  " \u{1F480} Fatal "
72685
72688
  )} ${_chalk.hex(colors.error ?? "#f85149")(formatLogMessage(message))}
72686
72689
  `
@@ -72735,9 +72738,9 @@ ${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.inf
72735
72738
  return (message) => {
72736
72739
  console.debug(
72737
72740
  `
72738
- ${_chalk.bold.hex(colors.primary ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.primary ?? "#1fb2a6").whiteBright(
72741
+ ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
72739
72742
  " \u{1F6E0} Debug "
72740
- )} ${_chalk.hex(colors.primary ?? "#1fb2a6")(formatLogMessage(message))}
72743
+ )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
72741
72744
  `
72742
72745
  );
72743
72746
  };
@@ -72745,9 +72748,9 @@ ${_chalk.bold.hex(colors.primary ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.
72745
72748
  return (message) => {
72746
72749
  console.log(
72747
72750
  `
72748
- ${_chalk.bold.hex(colors.primary ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.primary ?? "#1fb2a6").whiteBright(
72751
+ ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
72749
72752
  " \u2709 System "
72750
- )} ${_chalk.hex(colors.primary ?? "#1fb2a6")(formatLogMessage(message))}
72753
+ )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
72751
72754
  `
72752
72755
  );
72753
72756
  };
@@ -72775,7 +72778,7 @@ ${_chalk.bold.hex(colors.primary ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.
72775
72778
  };
72776
72779
  };
72777
72780
  formatLogMessage = (message, prefix = "-") => {
72778
- return typeof message === "string" ? message : typeof message === "object" ? `
72781
+ return typeof message === "undefined" || message === null || !message && typeof message !== "boolean" ? "<none>" : typeof message === "string" ? message : typeof message === "object" ? `
72779
72782
  ${Object.keys(message).map(
72780
72783
  (key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? formatLogMessage(message[key], `${prefix}-`) : message[key]}`
72781
72784
  ).join("\n")}` : message;
@@ -73132,15 +73135,13 @@ var init_get_env = __esm({
73132
73135
  };
73133
73136
  getThemeColorConfigEnv = (prefix, theme) => {
73134
73137
  const themeName = `COLOR_${theme && theme !== "base" ? `${theme}_` : ""}`.toUpperCase();
73135
- return process.env[`${prefix}${themeName}LIGHT_PRIMARY`] || process.env[`${prefix}${themeName}DARK_PRIMARY`] ? getMultiThemeColorConfigEnv(prefix + themeName) : getSingleThemeColorConfigEnv(prefix + themeName);
73138
+ return process.env[`${prefix}${themeName}LIGHT_BRAND`] || process.env[`${prefix}${themeName}DARK_BRAND`] ? getMultiThemeColorConfigEnv(prefix + themeName) : getSingleThemeColorConfigEnv(prefix + themeName);
73136
73139
  };
73137
73140
  getSingleThemeColorConfigEnv = (prefix) => {
73138
73141
  return {
73139
73142
  dark: process.env[`${prefix}DARK`],
73140
73143
  light: process.env[`${prefix}LIGHT`],
73141
- primary: process.env[`${prefix}PRIMARY`],
73142
- secondary: process.env[`${prefix}SECONDARY`],
73143
- tertiary: process.env[`${prefix}TERTIARY`],
73144
+ brand: process.env[`${prefix}BRAND`],
73144
73145
  accent: process.env[`${prefix}ACCENT`],
73145
73146
  success: process.env[`${prefix}SUCCESS`],
73146
73147
  info: process.env[`${prefix}INFO`],
@@ -73161,9 +73162,7 @@ var init_get_env = __esm({
73161
73162
  return {
73162
73163
  foreground: process.env[`${prefix}FOREGROUND`],
73163
73164
  background: process.env[`${prefix}BACKGROUND`],
73164
- primary: process.env[`${prefix}PRIMARY`],
73165
- secondary: process.env[`${prefix}SECONDARY`],
73166
- tertiary: process.env[`${prefix}TERTIARY`],
73165
+ brand: process.env[`${prefix}BRAND`],
73167
73166
  accent: process.env[`${prefix}ACCENT`],
73168
73167
  success: process.env[`${prefix}SUCCESS`],
73169
73168
  info: process.env[`${prefix}INFO`],
@@ -73330,7 +73329,7 @@ var init_set_env = __esm({
73330
73329
  }
73331
73330
  };
73332
73331
  setThemeColorConfigEnv = (prefix, config) => {
73333
- return config?.light?.primary || config?.dark?.primary ? setMultiThemeColorConfigEnv(prefix, config) : setSingleThemeColorConfigEnv(prefix, config);
73332
+ return config?.light?.brand || config?.dark?.brand ? setMultiThemeColorConfigEnv(prefix, config) : setSingleThemeColorConfigEnv(prefix, config);
73334
73333
  };
73335
73334
  setSingleThemeColorConfigEnv = (prefix, config) => {
73336
73335
  if (config.dark) {
@@ -73339,14 +73338,8 @@ var init_set_env = __esm({
73339
73338
  if (config.light) {
73340
73339
  process.env[`${prefix}LIGHT`] = config.light;
73341
73340
  }
73342
- if (config.primary) {
73343
- process.env[`${prefix}PRIMARY`] = config.primary;
73344
- }
73345
- if (config.secondary) {
73346
- process.env[`${prefix}SECONDARY`] = config.secondary;
73347
- }
73348
- if (config.tertiary) {
73349
- process.env[`${prefix}TERTIARY`] = config.tertiary;
73341
+ if (config.brand) {
73342
+ process.env[`${prefix}BRAND`] = config.brand;
73350
73343
  }
73351
73344
  if (config.accent) {
73352
73345
  process.env[`${prefix}ACCENT`] = config.accent;
@@ -73380,14 +73373,8 @@ var init_set_env = __esm({
73380
73373
  if (config.background) {
73381
73374
  process.env[`${prefix}BACKGROUND`] = config.background;
73382
73375
  }
73383
- if (config.primary) {
73384
- process.env[`${prefix}PRIMARY`] = config.primary;
73385
- }
73386
- if (config.secondary) {
73387
- process.env[`${prefix}SECONDARY`] = config.secondary;
73388
- }
73389
- if (config.tertiary) {
73390
- process.env[`${prefix}TERTIARY`] = config.tertiary;
73376
+ if (config.brand) {
73377
+ process.env[`${prefix}BRAND`] = config.brand;
73391
73378
  }
73392
73379
  if (config.accent) {
73393
73380
  process.env[`${prefix}ACCENT`] = config.accent;
@@ -73566,7 +73553,6 @@ __export(generator_exports, {
73566
73553
  module.exports = __toCommonJS(generator_exports);
73567
73554
  var import_devkit = require("@nx/devkit");
73568
73555
  init_src();
73569
- var import_node_path8 = require("node:path");
73570
73556
 
73571
73557
  // node_modules/.pnpm/zod-to-json-schema@3.23.0_zod@3.23.4/node_modules/zod-to-json-schema/dist/esm/Options.js
73572
73558
  var ignoreOverride = Symbol("Let zodToJsonSchema decide on which parser to use");
@@ -74743,15 +74729,30 @@ ${Object.keys(options ?? {}).map((key) => ` - ${key}=${JSON.stringify(options[ke
74743
74729
  };
74744
74730
 
74745
74731
  // packages/workspace-tools/src/generators/config-schema/generator.ts
74732
+ init_src2();
74746
74733
  async function configSchemaGeneratorFn(tree, options, config) {
74747
- const { findWorkspaceRoot: findWorkspaceRoot2 } = await Promise.resolve().then(() => (init_src2(), src_exports));
74748
- const workspaceRoot = config?.workspaceRoot ?? findWorkspaceRoot2();
74749
- (0, import_devkit.writeJson)(
74750
- tree,
74751
- options.outputFile ? (0, import_node_path8.join)(workspaceRoot, options.outputFile) : (0, import_node_path8.join)(workspaceRoot, "storm.schema.json"),
74752
- zodToJsonSchema(StormConfigSchema, { name: "StormConfiguration" })
74734
+ const { findWorkspaceRoot: findWorkspaceRoot2, writeInfo: writeInfo2, writeSuccess: writeSuccess2 } = await Promise.resolve().then(() => (init_src2(), src_exports));
74735
+ writeInfo2("\u{1F4E6} Running Storm Configuration JSON Schema generator", config);
74736
+ writeTrace(`Determining the Storm Configuration JSON Schema...`, config);
74737
+ const jsonSchema = zodToJsonSchema(StormConfigSchema, {
74738
+ name: "StormConfiguration"
74739
+ });
74740
+ writeTrace(jsonSchema, config);
74741
+ let outputPath = options.outputFile ? options.outputFile.replaceAll("{workspaceRoot}", "") : "storm.schema.json";
74742
+ outputPath = outputPath.replaceAll(
74743
+ config?.workspaceRoot ?? findWorkspaceRoot2(),
74744
+ outputPath.startsWith("./") ? "" : "./"
74745
+ );
74746
+ writeTrace(
74747
+ `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`,
74748
+ config
74753
74749
  );
74750
+ (0, import_devkit.writeJson)(tree, outputPath, jsonSchema, { spaces: 2 });
74754
74751
  await (0, import_devkit.formatFiles)(tree);
74752
+ writeSuccess2(
74753
+ "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!",
74754
+ config
74755
+ );
74755
74756
  return {
74756
74757
  success: true
74757
74758
  };