@storm-software/git-tools 2.112.7 → 2.112.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
21
21
 
22
22
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
23
23
 
24
- [![Version](https://img.shields.io/badge/version-2.112.5-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-2.112.6-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
@@ -1735,12 +1735,12 @@ var require_jiti = _chunkIG6EXAQUcjs.__commonJS.call(void 0, {
1735
1735
  }, Parser.tokenizer = function(input, options) {
1736
1736
  return new this(options, input);
1737
1737
  }, Object.defineProperties(Parser.prototype, prototypeAccessors);
1738
- var pp$9 = Parser.prototype, literal = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
1738
+ var pp$9 = Parser.prototype, literal2 = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
1739
1739
  pp$9.strictDirective = function(start) {
1740
1740
  if (this.options.ecmaVersion < 5) return false;
1741
1741
  for (; ; ) {
1742
1742
  skipWhiteSpace.lastIndex = start, start += skipWhiteSpace.exec(this.input)[0].length;
1743
- var match = literal.exec(this.input.slice(start));
1743
+ var match = literal2.exec(this.input.slice(start));
1744
1744
  if (!match) return false;
1745
1745
  if ("use strict" === (match[1] || match[2])) {
1746
1746
  skipWhiteSpace.lastIndex = start + match[0].length;
@@ -17593,17 +17593,17 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
17593
17593
  const startLoc = this.state.startLoc, endOfInit = () => this.match(12) || this.match(8);
17594
17594
  switch (this.state.type) {
17595
17595
  case 135: {
17596
- const literal = this.parseNumericLiteral(this.state.value);
17597
- return endOfInit() ? { type: "number", loc: literal.loc.start, value: literal } : { type: "invalid", loc: startLoc };
17596
+ const literal2 = this.parseNumericLiteral(this.state.value);
17597
+ return endOfInit() ? { type: "number", loc: literal2.loc.start, value: literal2 } : { type: "invalid", loc: startLoc };
17598
17598
  }
17599
17599
  case 134: {
17600
- const literal = this.parseStringLiteral(this.state.value);
17601
- return endOfInit() ? { type: "string", loc: literal.loc.start, value: literal } : { type: "invalid", loc: startLoc };
17600
+ const literal2 = this.parseStringLiteral(this.state.value);
17601
+ return endOfInit() ? { type: "string", loc: literal2.loc.start, value: literal2 } : { type: "invalid", loc: startLoc };
17602
17602
  }
17603
17603
  case 85:
17604
17604
  case 86: {
17605
- const literal = this.parseBooleanLiteral(this.match(85));
17606
- return endOfInit() ? { type: "boolean", loc: literal.loc.start, value: literal } : { type: "invalid", loc: startLoc };
17605
+ const literal2 = this.parseBooleanLiteral(this.match(85));
17606
+ return endOfInit() ? { type: "boolean", loc: literal2.loc.start, value: literal2 } : { type: "invalid", loc: startLoc };
17607
17607
  }
17608
17608
  default:
17609
17609
  return { type: "invalid", loc: startLoc };
@@ -26156,9 +26156,9 @@ ${str}
26156
26156
  return validate(defs.types, node, "types", types, 1), node;
26157
26157
  }, exports2.tSIntrinsicKeyword = exports2.tsIntrinsicKeyword = function() {
26158
26158
  return { type: "TSIntrinsicKeyword" };
26159
- }, exports2.tSLiteralType = exports2.tsLiteralType = function(literal) {
26160
- const node = { type: "TSLiteralType", literal }, defs = NODE_FIELDS.TSLiteralType;
26161
- return validate(defs.literal, node, "literal", literal, 1), node;
26159
+ }, exports2.tSLiteralType = exports2.tsLiteralType = function(literal2) {
26160
+ const node = { type: "TSLiteralType", literal: literal2 }, defs = NODE_FIELDS.TSLiteralType;
26161
+ return validate(defs.literal, node, "literal", literal2, 1), node;
26162
26162
  }, exports2.tSMappedType = exports2.tsMappedType = function(typeParameter, typeAnnotation = null, nameType = null) {
26163
26163
  const node = { type: "TSMappedType", typeParameter, typeAnnotation, nameType }, defs = NODE_FIELDS.TSMappedType;
26164
26164
  return validate(defs.typeParameter, node, "typeParameter", typeParameter, 1), validate(defs.typeAnnotation, node, "typeAnnotation", typeAnnotation, 1), validate(defs.nameType, node, "nameType", nameType, 1), node;
@@ -27404,9 +27404,9 @@ Expected ${val.length + 1} quasis but got ${node.quasis.length}`);
27404
27404
  defineType("TSFunctionType", Object.assign({}, fnOrCtrBase, { fields: signatureDeclarationCommon() })), defineType("TSConstructorType", Object.assign({}, fnOrCtrBase, { fields: Object.assign({}, signatureDeclarationCommon(), { abstract: (0, _utils.validateOptional)(bool) }) })), defineType("TSTypeReference", { aliases: ["TSType"], visitor: ["typeName", "typeParameters"], fields: { typeName: (0, _utils.validateType)("TSEntityName"), typeParameters: (0, _utils.validateOptionalType)("TSTypeParameterInstantiation") } }), defineType("TSTypePredicate", { aliases: ["TSType"], visitor: ["parameterName", "typeAnnotation"], builder: ["parameterName", "typeAnnotation", "asserts"], fields: { parameterName: (0, _utils.validateType)("Identifier", "TSThisType"), typeAnnotation: (0, _utils.validateOptionalType)("TSTypeAnnotation"), asserts: (0, _utils.validateOptional)(bool) } }), defineType("TSTypeQuery", { aliases: ["TSType"], visitor: ["exprName", "typeParameters"], fields: { exprName: (0, _utils.validateType)("TSEntityName", "TSImportType"), typeParameters: (0, _utils.validateOptionalType)("TSTypeParameterInstantiation") } }), defineType("TSTypeLiteral", { aliases: ["TSType"], visitor: ["members"], fields: { members: (0, _utils.validateArrayOfType)("TSTypeElement") } }), defineType("TSArrayType", { aliases: ["TSType"], visitor: ["elementType"], fields: { elementType: (0, _utils.validateType)("TSType") } }), defineType("TSTupleType", { aliases: ["TSType"], visitor: ["elementTypes"], fields: { elementTypes: (0, _utils.validateArrayOfType)("TSType", "TSNamedTupleMember") } }), defineType("TSOptionalType", { aliases: ["TSType"], visitor: ["typeAnnotation"], fields: { typeAnnotation: (0, _utils.validateType)("TSType") } }), defineType("TSRestType", { aliases: ["TSType"], visitor: ["typeAnnotation"], fields: { typeAnnotation: (0, _utils.validateType)("TSType") } }), defineType("TSNamedTupleMember", { visitor: ["label", "elementType"], builder: ["label", "elementType", "optional"], fields: { label: (0, _utils.validateType)("Identifier"), optional: { validate: bool, default: false }, elementType: (0, _utils.validateType)("TSType") } });
27405
27405
  const unionOrIntersection = { aliases: ["TSType"], visitor: ["types"], fields: { types: (0, _utils.validateArrayOfType)("TSType") } };
27406
27406
  defineType("TSUnionType", unionOrIntersection), defineType("TSIntersectionType", unionOrIntersection), defineType("TSConditionalType", { aliases: ["TSType"], visitor: ["checkType", "extendsType", "trueType", "falseType"], fields: { checkType: (0, _utils.validateType)("TSType"), extendsType: (0, _utils.validateType)("TSType"), trueType: (0, _utils.validateType)("TSType"), falseType: (0, _utils.validateType)("TSType") } }), defineType("TSInferType", { aliases: ["TSType"], visitor: ["typeParameter"], fields: { typeParameter: (0, _utils.validateType)("TSTypeParameter") } }), defineType("TSParenthesizedType", { aliases: ["TSType"], visitor: ["typeAnnotation"], fields: { typeAnnotation: (0, _utils.validateType)("TSType") } }), defineType("TSTypeOperator", { aliases: ["TSType"], visitor: ["typeAnnotation"], fields: { operator: (0, _utils.validate)((0, _utils.assertValueType)("string")), typeAnnotation: (0, _utils.validateType)("TSType") } }), defineType("TSIndexedAccessType", { aliases: ["TSType"], visitor: ["objectType", "indexType"], fields: { objectType: (0, _utils.validateType)("TSType"), indexType: (0, _utils.validateType)("TSType") } }), defineType("TSMappedType", { aliases: ["TSType"], visitor: ["typeParameter", "nameType", "typeAnnotation"], builder: ["typeParameter", "typeAnnotation", "nameType"], fields: Object.assign({}, { typeParameter: (0, _utils.validateType)("TSTypeParameter") }, { readonly: (0, _utils.validateOptional)((0, _utils.assertOneOf)(true, false, "+", "-")), optional: (0, _utils.validateOptional)((0, _utils.assertOneOf)(true, false, "+", "-")), typeAnnotation: (0, _utils.validateOptionalType)("TSType"), nameType: (0, _utils.validateOptionalType)("TSType") }) }), defineType("TSLiteralType", { aliases: ["TSType", "TSBaseType"], visitor: ["literal"], fields: { literal: { validate: function() {
27407
- const unaryExpression = (0, _utils.assertNodeType)("NumericLiteral", "BigIntLiteral"), unaryOperator = (0, _utils.assertOneOf)("-"), literal = (0, _utils.assertNodeType)("NumericLiteral", "StringLiteral", "BooleanLiteral", "BigIntLiteral", "TemplateLiteral");
27407
+ const unaryExpression = (0, _utils.assertNodeType)("NumericLiteral", "BigIntLiteral"), unaryOperator = (0, _utils.assertOneOf)("-"), literal2 = (0, _utils.assertNodeType)("NumericLiteral", "StringLiteral", "BooleanLiteral", "BigIntLiteral", "TemplateLiteral");
27408
27408
  function validator(parent, key, node) {
27409
- (0, _is.default)("UnaryExpression", node) ? (unaryOperator(node, "operator", node.operator), unaryExpression(node, "argument", node.argument)) : literal(parent, key, node);
27409
+ (0, _is.default)("UnaryExpression", node) ? (unaryOperator(node, "operator", node.operator), unaryExpression(node, "argument", node.argument)) : literal2(parent, key, node);
27410
27410
  }
27411
27411
  return validator.oneOfNodeTypes = ["NumericLiteral", "StringLiteral", "BooleanLiteral", "BigIntLiteral", "TemplateLiteral", "UnaryExpression"], validator;
27412
27412
  }() } } });
@@ -29972,11 +29972,11 @@ ${trace}`);
29972
29972
  case "[":
29973
29973
  return newToken("punctuator", read2());
29974
29974
  case "n":
29975
- return read2(), literal("ull"), newToken("null", null);
29975
+ return read2(), literal2("ull"), newToken("null", null);
29976
29976
  case "t":
29977
- return read2(), literal("rue"), newToken("boolean", true);
29977
+ return read2(), literal2("rue"), newToken("boolean", true);
29978
29978
  case "f":
29979
- return read2(), literal("alse"), newToken("boolean", false);
29979
+ return read2(), literal2("alse"), newToken("boolean", false);
29980
29980
  case "-":
29981
29981
  case "+":
29982
29982
  return "-" === read2() && (sign = -1), void (lexState = "sign");
@@ -29995,9 +29995,9 @@ ${trace}`);
29995
29995
  case "9":
29996
29996
  return buffer = read2(), void (lexState = "decimalInteger");
29997
29997
  case "I":
29998
- return read2(), literal("nfinity"), newToken("numeric", 1 / 0);
29998
+ return read2(), literal2("nfinity"), newToken("numeric", 1 / 0);
29999
29999
  case "N":
30000
- return read2(), literal("aN"), newToken("numeric", NaN);
30000
+ return read2(), literal2("aN"), newToken("numeric", NaN);
30001
30001
  case '"':
30002
30002
  case "'":
30003
30003
  return doubleQuote = '"' === read2(), buffer = "", void (lexState = "string");
@@ -30058,9 +30058,9 @@ ${trace}`);
30058
30058
  case "9":
30059
30059
  return buffer = read2(), void (lexState = "decimalInteger");
30060
30060
  case "I":
30061
- return read2(), literal("nfinity"), newToken("numeric", sign * (1 / 0));
30061
+ return read2(), literal2("nfinity"), newToken("numeric", sign * (1 / 0));
30062
30062
  case "N":
30063
- return read2(), literal("aN"), newToken("numeric", NaN);
30063
+ return read2(), literal2("aN"), newToken("numeric", NaN);
30064
30064
  }
30065
30065
  throw invalidChar(read2());
30066
30066
  }, zero() {
@@ -30239,7 +30239,7 @@ ${trace}`);
30239
30239
  function newToken(type, value2) {
30240
30240
  return { type, value: value2, line, column };
30241
30241
  }
30242
- function literal(s) {
30242
+ function literal2(s) {
30243
30243
  for (const c2 of s) {
30244
30244
  if (peek() !== c2) throw invalidChar(read2());
30245
30245
  read2();
@@ -30798,12 +30798,12 @@ ${trace}`);
30798
30798
  }, Parser.tokenizer = function(input, options) {
30799
30799
  return new this(options, input);
30800
30800
  }, Object.defineProperties(Parser.prototype, prototypeAccessors);
30801
- var pp$9 = Parser.prototype, literal = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
30801
+ var pp$9 = Parser.prototype, literal2 = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
30802
30802
  pp$9.strictDirective = function(start) {
30803
30803
  if (this.options.ecmaVersion < 5) return false;
30804
30804
  for (; ; ) {
30805
30805
  skipWhiteSpace.lastIndex = start, start += skipWhiteSpace.exec(this.input)[0].length;
30806
- var match = literal.exec(this.input.slice(start));
30806
+ var match = literal2.exec(this.input.slice(start));
30807
30807
  if (!match) return false;
30808
30808
  if ("use strict" === (match[1] || match[2])) {
30809
30809
  skipWhiteSpace.lastIndex = start + match[0].length;
@@ -35247,6 +35247,24 @@ var $ZodEnum = /* @__PURE__ */ $constructor("$ZodEnum", (inst, def) => {
35247
35247
  return payload;
35248
35248
  };
35249
35249
  });
35250
+ var $ZodLiteral = /* @__PURE__ */ $constructor("$ZodLiteral", (inst, def) => {
35251
+ $ZodType.init(inst, def);
35252
+ inst._zod.values = new Set(def.values);
35253
+ inst._zod.pattern = new RegExp(`^(${def.values.map((o) => typeof o === "string" ? escapeRegex(o) : o ? o.toString() : String(o)).join("|")})$`);
35254
+ inst._zod.parse = (payload, _ctx) => {
35255
+ const input = payload.value;
35256
+ if (inst._zod.values.has(input)) {
35257
+ return payload;
35258
+ }
35259
+ payload.issues.push({
35260
+ code: "invalid_value",
35261
+ values: def.values,
35262
+ input,
35263
+ inst
35264
+ });
35265
+ return payload;
35266
+ };
35267
+ });
35250
35268
  var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => {
35251
35269
  $ZodType.init(inst, def);
35252
35270
  inst._zod.parse = (payload, _ctx) => {
@@ -36559,6 +36577,26 @@ function _enum(values, params) {
36559
36577
  ...util_exports.normalizeParams(params)
36560
36578
  });
36561
36579
  }
36580
+ var ZodLiteral = /* @__PURE__ */ $constructor("ZodLiteral", (inst, def) => {
36581
+ $ZodLiteral.init(inst, def);
36582
+ ZodType.init(inst, def);
36583
+ inst.values = new Set(def.values);
36584
+ Object.defineProperty(inst, "value", {
36585
+ get() {
36586
+ if (def.values.length > 1) {
36587
+ throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");
36588
+ }
36589
+ return def.values[0];
36590
+ }
36591
+ });
36592
+ });
36593
+ function literal(value2, params) {
36594
+ return new ZodLiteral({
36595
+ type: "literal",
36596
+ values: Array.isArray(value2) ? value2 : [value2],
36597
+ ...util_exports.normalizeParams(params)
36598
+ });
36599
+ }
36562
36600
  var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
36563
36601
  $ZodTransform.init(inst, def);
36564
36602
  ZodType.init(inst, def);
@@ -36820,10 +36858,10 @@ var RegistryConfigSchema = object({
36820
36858
  var ColorConfigSchema = SingleThemeColorConfigSchema.or(
36821
36859
  MultiThemeColorConfigSchema
36822
36860
  ).describe("Colors used for various workspace elements");
36823
- var ColorConfigMapSchema = union([
36824
- object({ base: ColorConfigSchema }),
36825
- record(string2(), ColorConfigSchema)
36826
- ]);
36861
+ var ColorConfigMapSchema = record(
36862
+ union([literal("base"), string2()]),
36863
+ ColorConfigSchema
36864
+ );
36827
36865
  var ExtendsItemSchema = string2().trim().describe(
36828
36866
  "The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration."
36829
36867
  );
@@ -1746,12 +1746,12 @@ var require_jiti = __commonJS({
1746
1746
  }, Parser.tokenizer = function(input, options) {
1747
1747
  return new this(options, input);
1748
1748
  }, Object.defineProperties(Parser.prototype, prototypeAccessors);
1749
- var pp$9 = Parser.prototype, literal = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
1749
+ var pp$9 = Parser.prototype, literal2 = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
1750
1750
  pp$9.strictDirective = function(start) {
1751
1751
  if (this.options.ecmaVersion < 5) return false;
1752
1752
  for (; ; ) {
1753
1753
  skipWhiteSpace.lastIndex = start, start += skipWhiteSpace.exec(this.input)[0].length;
1754
- var match = literal.exec(this.input.slice(start));
1754
+ var match = literal2.exec(this.input.slice(start));
1755
1755
  if (!match) return false;
1756
1756
  if ("use strict" === (match[1] || match[2])) {
1757
1757
  skipWhiteSpace.lastIndex = start + match[0].length;
@@ -17614,17 +17614,17 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
17614
17614
  const startLoc = this.state.startLoc, endOfInit = () => this.match(12) || this.match(8);
17615
17615
  switch (this.state.type) {
17616
17616
  case 135: {
17617
- const literal = this.parseNumericLiteral(this.state.value);
17618
- return endOfInit() ? { type: "number", loc: literal.loc.start, value: literal } : { type: "invalid", loc: startLoc };
17617
+ const literal2 = this.parseNumericLiteral(this.state.value);
17618
+ return endOfInit() ? { type: "number", loc: literal2.loc.start, value: literal2 } : { type: "invalid", loc: startLoc };
17619
17619
  }
17620
17620
  case 134: {
17621
- const literal = this.parseStringLiteral(this.state.value);
17622
- return endOfInit() ? { type: "string", loc: literal.loc.start, value: literal } : { type: "invalid", loc: startLoc };
17621
+ const literal2 = this.parseStringLiteral(this.state.value);
17622
+ return endOfInit() ? { type: "string", loc: literal2.loc.start, value: literal2 } : { type: "invalid", loc: startLoc };
17623
17623
  }
17624
17624
  case 85:
17625
17625
  case 86: {
17626
- const literal = this.parseBooleanLiteral(this.match(85));
17627
- return endOfInit() ? { type: "boolean", loc: literal.loc.start, value: literal } : { type: "invalid", loc: startLoc };
17626
+ const literal2 = this.parseBooleanLiteral(this.match(85));
17627
+ return endOfInit() ? { type: "boolean", loc: literal2.loc.start, value: literal2 } : { type: "invalid", loc: startLoc };
17628
17628
  }
17629
17629
  default:
17630
17630
  return { type: "invalid", loc: startLoc };
@@ -26177,9 +26177,9 @@ ${str}
26177
26177
  return validate(defs.types, node, "types", types2, 1), node;
26178
26178
  }, exports3.tSIntrinsicKeyword = exports3.tsIntrinsicKeyword = function() {
26179
26179
  return { type: "TSIntrinsicKeyword" };
26180
- }, exports3.tSLiteralType = exports3.tsLiteralType = function(literal) {
26181
- const node = { type: "TSLiteralType", literal }, defs = NODE_FIELDS.TSLiteralType;
26182
- return validate(defs.literal, node, "literal", literal, 1), node;
26180
+ }, exports3.tSLiteralType = exports3.tsLiteralType = function(literal2) {
26181
+ const node = { type: "TSLiteralType", literal: literal2 }, defs = NODE_FIELDS.TSLiteralType;
26182
+ return validate(defs.literal, node, "literal", literal2, 1), node;
26183
26183
  }, exports3.tSMappedType = exports3.tsMappedType = function(typeParameter, typeAnnotation = null, nameType = null) {
26184
26184
  const node = { type: "TSMappedType", typeParameter, typeAnnotation, nameType }, defs = NODE_FIELDS.TSMappedType;
26185
26185
  return validate(defs.typeParameter, node, "typeParameter", typeParameter, 1), validate(defs.typeAnnotation, node, "typeAnnotation", typeAnnotation, 1), validate(defs.nameType, node, "nameType", nameType, 1), node;
@@ -27425,9 +27425,9 @@ Expected ${val.length + 1} quasis but got ${node.quasis.length}`);
27425
27425
  defineType("TSFunctionType", Object.assign({}, fnOrCtrBase, { fields: signatureDeclarationCommon() })), defineType("TSConstructorType", Object.assign({}, fnOrCtrBase, { fields: Object.assign({}, signatureDeclarationCommon(), { abstract: (0, _utils.validateOptional)(bool) }) })), defineType("TSTypeReference", { aliases: ["TSType"], visitor: ["typeName", "typeParameters"], fields: { typeName: (0, _utils.validateType)("TSEntityName"), typeParameters: (0, _utils.validateOptionalType)("TSTypeParameterInstantiation") } }), defineType("TSTypePredicate", { aliases: ["TSType"], visitor: ["parameterName", "typeAnnotation"], builder: ["parameterName", "typeAnnotation", "asserts"], fields: { parameterName: (0, _utils.validateType)("Identifier", "TSThisType"), typeAnnotation: (0, _utils.validateOptionalType)("TSTypeAnnotation"), asserts: (0, _utils.validateOptional)(bool) } }), defineType("TSTypeQuery", { aliases: ["TSType"], visitor: ["exprName", "typeParameters"], fields: { exprName: (0, _utils.validateType)("TSEntityName", "TSImportType"), typeParameters: (0, _utils.validateOptionalType)("TSTypeParameterInstantiation") } }), defineType("TSTypeLiteral", { aliases: ["TSType"], visitor: ["members"], fields: { members: (0, _utils.validateArrayOfType)("TSTypeElement") } }), defineType("TSArrayType", { aliases: ["TSType"], visitor: ["elementType"], fields: { elementType: (0, _utils.validateType)("TSType") } }), defineType("TSTupleType", { aliases: ["TSType"], visitor: ["elementTypes"], fields: { elementTypes: (0, _utils.validateArrayOfType)("TSType", "TSNamedTupleMember") } }), defineType("TSOptionalType", { aliases: ["TSType"], visitor: ["typeAnnotation"], fields: { typeAnnotation: (0, _utils.validateType)("TSType") } }), defineType("TSRestType", { aliases: ["TSType"], visitor: ["typeAnnotation"], fields: { typeAnnotation: (0, _utils.validateType)("TSType") } }), defineType("TSNamedTupleMember", { visitor: ["label", "elementType"], builder: ["label", "elementType", "optional"], fields: { label: (0, _utils.validateType)("Identifier"), optional: { validate: bool, default: false }, elementType: (0, _utils.validateType)("TSType") } });
27426
27426
  const unionOrIntersection = { aliases: ["TSType"], visitor: ["types"], fields: { types: (0, _utils.validateArrayOfType)("TSType") } };
27427
27427
  defineType("TSUnionType", unionOrIntersection), defineType("TSIntersectionType", unionOrIntersection), defineType("TSConditionalType", { aliases: ["TSType"], visitor: ["checkType", "extendsType", "trueType", "falseType"], fields: { checkType: (0, _utils.validateType)("TSType"), extendsType: (0, _utils.validateType)("TSType"), trueType: (0, _utils.validateType)("TSType"), falseType: (0, _utils.validateType)("TSType") } }), defineType("TSInferType", { aliases: ["TSType"], visitor: ["typeParameter"], fields: { typeParameter: (0, _utils.validateType)("TSTypeParameter") } }), defineType("TSParenthesizedType", { aliases: ["TSType"], visitor: ["typeAnnotation"], fields: { typeAnnotation: (0, _utils.validateType)("TSType") } }), defineType("TSTypeOperator", { aliases: ["TSType"], visitor: ["typeAnnotation"], fields: { operator: (0, _utils.validate)((0, _utils.assertValueType)("string")), typeAnnotation: (0, _utils.validateType)("TSType") } }), defineType("TSIndexedAccessType", { aliases: ["TSType"], visitor: ["objectType", "indexType"], fields: { objectType: (0, _utils.validateType)("TSType"), indexType: (0, _utils.validateType)("TSType") } }), defineType("TSMappedType", { aliases: ["TSType"], visitor: ["typeParameter", "nameType", "typeAnnotation"], builder: ["typeParameter", "typeAnnotation", "nameType"], fields: Object.assign({}, { typeParameter: (0, _utils.validateType)("TSTypeParameter") }, { readonly: (0, _utils.validateOptional)((0, _utils.assertOneOf)(true, false, "+", "-")), optional: (0, _utils.validateOptional)((0, _utils.assertOneOf)(true, false, "+", "-")), typeAnnotation: (0, _utils.validateOptionalType)("TSType"), nameType: (0, _utils.validateOptionalType)("TSType") }) }), defineType("TSLiteralType", { aliases: ["TSType", "TSBaseType"], visitor: ["literal"], fields: { literal: { validate: function() {
27428
- const unaryExpression = (0, _utils.assertNodeType)("NumericLiteral", "BigIntLiteral"), unaryOperator = (0, _utils.assertOneOf)("-"), literal = (0, _utils.assertNodeType)("NumericLiteral", "StringLiteral", "BooleanLiteral", "BigIntLiteral", "TemplateLiteral");
27428
+ const unaryExpression = (0, _utils.assertNodeType)("NumericLiteral", "BigIntLiteral"), unaryOperator = (0, _utils.assertOneOf)("-"), literal2 = (0, _utils.assertNodeType)("NumericLiteral", "StringLiteral", "BooleanLiteral", "BigIntLiteral", "TemplateLiteral");
27429
27429
  function validator(parent, key, node) {
27430
- (0, _is.default)("UnaryExpression", node) ? (unaryOperator(node, "operator", node.operator), unaryExpression(node, "argument", node.argument)) : literal(parent, key, node);
27430
+ (0, _is.default)("UnaryExpression", node) ? (unaryOperator(node, "operator", node.operator), unaryExpression(node, "argument", node.argument)) : literal2(parent, key, node);
27431
27431
  }
27432
27432
  return validator.oneOfNodeTypes = ["NumericLiteral", "StringLiteral", "BooleanLiteral", "BigIntLiteral", "TemplateLiteral", "UnaryExpression"], validator;
27433
27433
  }() } } });
@@ -29993,11 +29993,11 @@ ${trace}`);
29993
29993
  case "[":
29994
29994
  return newToken("punctuator", read2());
29995
29995
  case "n":
29996
- return read2(), literal("ull"), newToken("null", null);
29996
+ return read2(), literal2("ull"), newToken("null", null);
29997
29997
  case "t":
29998
- return read2(), literal("rue"), newToken("boolean", true);
29998
+ return read2(), literal2("rue"), newToken("boolean", true);
29999
29999
  case "f":
30000
- return read2(), literal("alse"), newToken("boolean", false);
30000
+ return read2(), literal2("alse"), newToken("boolean", false);
30001
30001
  case "-":
30002
30002
  case "+":
30003
30003
  return "-" === read2() && (sign = -1), void (lexState = "sign");
@@ -30016,9 +30016,9 @@ ${trace}`);
30016
30016
  case "9":
30017
30017
  return buffer = read2(), void (lexState = "decimalInteger");
30018
30018
  case "I":
30019
- return read2(), literal("nfinity"), newToken("numeric", 1 / 0);
30019
+ return read2(), literal2("nfinity"), newToken("numeric", 1 / 0);
30020
30020
  case "N":
30021
- return read2(), literal("aN"), newToken("numeric", NaN);
30021
+ return read2(), literal2("aN"), newToken("numeric", NaN);
30022
30022
  case '"':
30023
30023
  case "'":
30024
30024
  return doubleQuote = '"' === read2(), buffer = "", void (lexState = "string");
@@ -30079,9 +30079,9 @@ ${trace}`);
30079
30079
  case "9":
30080
30080
  return buffer = read2(), void (lexState = "decimalInteger");
30081
30081
  case "I":
30082
- return read2(), literal("nfinity"), newToken("numeric", sign * (1 / 0));
30082
+ return read2(), literal2("nfinity"), newToken("numeric", sign * (1 / 0));
30083
30083
  case "N":
30084
- return read2(), literal("aN"), newToken("numeric", NaN);
30084
+ return read2(), literal2("aN"), newToken("numeric", NaN);
30085
30085
  }
30086
30086
  throw invalidChar(read2());
30087
30087
  }, zero() {
@@ -30260,7 +30260,7 @@ ${trace}`);
30260
30260
  function newToken(type, value2) {
30261
30261
  return { type, value: value2, line, column };
30262
30262
  }
30263
- function literal(s) {
30263
+ function literal2(s) {
30264
30264
  for (const c2 of s) {
30265
30265
  if (peek() !== c2) throw invalidChar(read2());
30266
30266
  read2();
@@ -30819,12 +30819,12 @@ ${trace}`);
30819
30819
  }, Parser.tokenizer = function(input, options) {
30820
30820
  return new this(options, input);
30821
30821
  }, Object.defineProperties(Parser.prototype, prototypeAccessors);
30822
- var pp$9 = Parser.prototype, literal = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
30822
+ var pp$9 = Parser.prototype, literal2 = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
30823
30823
  pp$9.strictDirective = function(start) {
30824
30824
  if (this.options.ecmaVersion < 5) return false;
30825
30825
  for (; ; ) {
30826
30826
  skipWhiteSpace.lastIndex = start, start += skipWhiteSpace.exec(this.input)[0].length;
30827
- var match = literal.exec(this.input.slice(start));
30827
+ var match = literal2.exec(this.input.slice(start));
30828
30828
  if (!match) return false;
30829
30829
  if ("use strict" === (match[1] || match[2])) {
30830
30830
  skipWhiteSpace.lastIndex = start + match[0].length;
@@ -35310,6 +35310,24 @@ var $ZodEnum = /* @__PURE__ */ $constructor("$ZodEnum", (inst, def) => {
35310
35310
  return payload;
35311
35311
  };
35312
35312
  });
35313
+ var $ZodLiteral = /* @__PURE__ */ $constructor("$ZodLiteral", (inst, def) => {
35314
+ $ZodType.init(inst, def);
35315
+ inst._zod.values = new Set(def.values);
35316
+ inst._zod.pattern = new RegExp(`^(${def.values.map((o) => typeof o === "string" ? escapeRegex(o) : o ? o.toString() : String(o)).join("|")})$`);
35317
+ inst._zod.parse = (payload, _ctx) => {
35318
+ const input = payload.value;
35319
+ if (inst._zod.values.has(input)) {
35320
+ return payload;
35321
+ }
35322
+ payload.issues.push({
35323
+ code: "invalid_value",
35324
+ values: def.values,
35325
+ input,
35326
+ inst
35327
+ });
35328
+ return payload;
35329
+ };
35330
+ });
35313
35331
  var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => {
35314
35332
  $ZodType.init(inst, def);
35315
35333
  inst._zod.parse = (payload, _ctx) => {
@@ -36622,6 +36640,26 @@ function _enum(values, params) {
36622
36640
  ...util_exports.normalizeParams(params)
36623
36641
  });
36624
36642
  }
36643
+ var ZodLiteral = /* @__PURE__ */ $constructor("ZodLiteral", (inst, def) => {
36644
+ $ZodLiteral.init(inst, def);
36645
+ ZodType.init(inst, def);
36646
+ inst.values = new Set(def.values);
36647
+ Object.defineProperty(inst, "value", {
36648
+ get() {
36649
+ if (def.values.length > 1) {
36650
+ throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");
36651
+ }
36652
+ return def.values[0];
36653
+ }
36654
+ });
36655
+ });
36656
+ function literal(value2, params) {
36657
+ return new ZodLiteral({
36658
+ type: "literal",
36659
+ values: Array.isArray(value2) ? value2 : [value2],
36660
+ ...util_exports.normalizeParams(params)
36661
+ });
36662
+ }
36625
36663
  var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
36626
36664
  $ZodTransform.init(inst, def);
36627
36665
  ZodType.init(inst, def);
@@ -36883,10 +36921,10 @@ var RegistryConfigSchema = object({
36883
36921
  var ColorConfigSchema = SingleThemeColorConfigSchema.or(
36884
36922
  MultiThemeColorConfigSchema
36885
36923
  ).describe("Colors used for various workspace elements");
36886
- var ColorConfigMapSchema = union([
36887
- object({ base: ColorConfigSchema }),
36888
- record(string2(), ColorConfigSchema)
36889
- ]);
36924
+ var ColorConfigMapSchema = record(
36925
+ union([literal("base"), string2()]),
36926
+ ColorConfigSchema
36927
+ );
36890
36928
  var ExtendsItemSchema = string2().trim().describe(
36891
36929
  "The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration."
36892
36930
  );