@jixo/cli 0.23.0 → 0.23.3

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.
Files changed (53) hide show
  1. package/README.md +170 -15
  2. package/assets/prompt.json +4 -0
  3. package/bundle/index.js +640 -531
  4. package/dist/index.d.ts +1 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +1 -0
  7. package/dist/index.js.map +1 -1
  8. package/dist/prompts.json +2 -14
  9. package/package.json +3 -3
  10. package/dist/cli.d.ts +0 -2
  11. package/dist/cli.d.ts.map +0 -1
  12. package/dist/cli.js +0 -83
  13. package/dist/cli.js.map +0 -1
  14. package/dist/commands/daemon.d.ts +0 -5
  15. package/dist/commands/daemon.d.ts.map +0 -1
  16. package/dist/commands/daemon.js +0 -20
  17. package/dist/commands/daemon.js.map +0 -1
  18. package/dist/commands/doctor/config.d.ts +0 -3
  19. package/dist/commands/doctor/config.d.ts.map +0 -1
  20. package/dist/commands/doctor/config.js +0 -17
  21. package/dist/commands/doctor/config.js.map +0 -1
  22. package/dist/commands/doctor/doctor.d.ts +0 -3
  23. package/dist/commands/doctor/doctor.d.ts.map +0 -1
  24. package/dist/commands/doctor/doctor.js +0 -158
  25. package/dist/commands/doctor/doctor.js.map +0 -1
  26. package/dist/commands/doctor/doctor.test.d.ts +0 -2
  27. package/dist/commands/doctor/doctor.test.d.ts.map +0 -1
  28. package/dist/commands/doctor/doctor.test.js +0 -14
  29. package/dist/commands/doctor/doctor.test.js.map +0 -1
  30. package/dist/commands/doctor/index.d.ts +0 -2
  31. package/dist/commands/doctor/index.d.ts.map +0 -1
  32. package/dist/commands/doctor/index.js +0 -8
  33. package/dist/commands/doctor/index.js.map +0 -1
  34. package/dist/commands/doctor/types.d.ts +0 -45
  35. package/dist/commands/doctor/types.d.ts.map +0 -1
  36. package/dist/commands/doctor/types.js +0 -3
  37. package/dist/commands/doctor/types.js.map +0 -1
  38. package/dist/commands/init.d.ts +0 -2
  39. package/dist/commands/init.d.ts.map +0 -1
  40. package/dist/commands/init.js +0 -40
  41. package/dist/commands/init.js.map +0 -1
  42. package/dist/commands/tasks/run.d.ts +0 -10
  43. package/dist/commands/tasks/run.d.ts.map +0 -1
  44. package/dist/commands/tasks/run.js +0 -44
  45. package/dist/commands/tasks/run.js.map +0 -1
  46. package/dist/config.d.ts +0 -15
  47. package/dist/config.d.ts.map +0 -1
  48. package/dist/config.js +0 -23
  49. package/dist/config.js.map +0 -1
  50. package/dist/env.d.ts +0 -6
  51. package/dist/env.d.ts.map +0 -1
  52. package/dist/env.js +0 -16
  53. package/dist/env.js.map +0 -1
package/bundle/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ #!/usr/bin/env node
1
2
  import { createRequire } from "node:module";
2
3
  import { URL as URL$1, fileURLToPath, pathToFileURL } from "node:url";
3
4
  import path, { dirname, join } from "node:path";
@@ -373,9 +374,9 @@ function ansiRegex$1({ onlyFirst = false } = {}) {
373
374
  //#endregion
374
375
  //#region ../../node_modules/.pnpm/strip-ansi@7.1.0/node_modules/strip-ansi/index.js
375
376
  const regex = ansiRegex$1();
376
- function stripAnsi$2(string$6) {
377
- if (typeof string$6 !== "string") throw new TypeError(`Expected a \`string\`, got \`${typeof string$6}\``);
378
- return string$6.replace(regex, "");
377
+ function stripAnsi$2(string$7) {
378
+ if (typeof string$7 !== "string") throw new TypeError(`Expected a \`string\`, got \`${typeof string$7}\``);
379
+ return string$7.replace(regex, "");
379
380
  }
380
381
 
381
382
  //#endregion
@@ -414,14 +415,14 @@ var require_emoji_regex$1 = __commonJS$2({ "../../node_modules/.pnpm/emoji-regex
414
415
  var import_emoji_regex = __toESM$1(require_emoji_regex$1(), 1);
415
416
  const segmenter = new Intl.Segmenter();
416
417
  const defaultIgnorableCodePointRegex = /^\p{Default_Ignorable_Code_Point}$/u;
417
- function stringWidth$2(string$6, options$1 = {}) {
418
- if (typeof string$6 !== "string" || string$6.length === 0) return 0;
418
+ function stringWidth$2(string$7, options$1 = {}) {
419
+ if (typeof string$7 !== "string" || string$7.length === 0) return 0;
419
420
  const { ambiguousIsNarrow = true, countAnsiEscapeCodes = false } = options$1;
420
- if (!countAnsiEscapeCodes) string$6 = stripAnsi$2(string$6);
421
- if (string$6.length === 0) return 0;
421
+ if (!countAnsiEscapeCodes) string$7 = stripAnsi$2(string$7);
422
+ if (string$7.length === 0) return 0;
422
423
  let width = 0;
423
424
  const eastAsianWidthOptions = { ambiguousAsWide: !ambiguousIsNarrow };
424
- for (const { segment: character } of segmenter.segment(string$6)) {
425
+ for (const { segment: character } of segmenter.segment(string$7)) {
425
426
  const codePoint = character.codePointAt(0);
426
427
  if (codePoint <= 31 || codePoint >= 127 && codePoint <= 159) continue;
427
428
  if (codePoint >= 8203 && codePoint <= 8207 || codePoint === 65279) continue;
@@ -615,7 +616,7 @@ const ANSI_SGR_TERMINATOR = "m";
615
616
  const ANSI_ESCAPE_LINK = `${ANSI_OSC}8;;`;
616
617
  const wrapAnsiCode = (code$1) => `${ESCAPES$1.values().next().value}${ANSI_CSI}${code$1}${ANSI_SGR_TERMINATOR}`;
617
618
  const wrapAnsiHyperlink = (url$2) => `${ESCAPES$1.values().next().value}${ANSI_ESCAPE_LINK}${url$2}${ANSI_ESCAPE_BELL}`;
618
- const wordLengths$1 = (string$6) => string$6.split(" ").map((character) => stringWidth$2(character));
619
+ const wordLengths$1 = (string$7) => string$7.split(" ").map((character) => stringWidth$2(character));
619
620
  const wrapWord$1 = (rows, word, columns) => {
620
621
  const characters = [...word];
621
622
  let isInsideEscape = false;
@@ -650,24 +651,24 @@ const wrapWord$1 = (rows, word, columns) => {
650
651
  }
651
652
  if (!visible && rows.at(-1).length > 0 && rows.length > 1) rows[rows.length - 2] += rows.pop();
652
653
  };
653
- const stringVisibleTrimSpacesRight$1 = (string$6) => {
654
- const words = string$6.split(" ");
654
+ const stringVisibleTrimSpacesRight$1 = (string$7) => {
655
+ const words = string$7.split(" ");
655
656
  let last$1 = words.length;
656
657
  while (last$1 > 0) {
657
658
  if (stringWidth$2(words[last$1 - 1]) > 0) break;
658
659
  last$1--;
659
660
  }
660
- if (last$1 === words.length) return string$6;
661
+ if (last$1 === words.length) return string$7;
661
662
  return words.slice(0, last$1).join(" ") + words.slice(last$1).join("");
662
663
  };
663
- const exec$1 = (string$6, columns, options$1 = {}) => {
664
- if (options$1.trim !== false && string$6.trim() === "") return "";
664
+ const exec$1 = (string$7, columns, options$1 = {}) => {
665
+ if (options$1.trim !== false && string$7.trim() === "") return "";
665
666
  let returnValue = "";
666
667
  let escapeCode;
667
668
  let escapeUrl;
668
- const lengths = wordLengths$1(string$6);
669
+ const lengths = wordLengths$1(string$7);
669
670
  let rows = [""];
670
- for (const [index$1, word] of string$6.split(" ").entries()) {
671
+ for (const [index$1, word] of string$7.split(" ").entries()) {
671
672
  if (options$1.trim !== false) rows[rows.length - 1] = rows.at(-1).trimStart();
672
673
  let rowLength = stringWidth$2(rows.at(-1));
673
674
  if (index$1 !== 0) {
@@ -726,8 +727,8 @@ const exec$1 = (string$6, columns, options$1 = {}) => {
726
727
  }
727
728
  return returnValue;
728
729
  };
729
- function wrapAnsi$2(string$6, columns, options$1) {
730
- return String(string$6).normalize().replaceAll("\r\n", "\n").split("\n").map((line$2) => exec$1(line$2, columns, options$1)).join("\n");
730
+ function wrapAnsi$2(string$7, columns, options$1) {
731
+ return String(string$7).normalize().replaceAll("\r\n", "\n").split("\n").map((line$2) => exec$1(line$2, columns, options$1)).join("\n");
731
732
  }
732
733
 
733
734
  //#endregion
@@ -1824,8 +1825,8 @@ function assertNotStrictEqual(actual, expected, shim$2, message) {
1824
1825
  function assertSingleKey(actual, shim$2) {
1825
1826
  shim$2.assert.strictEqual(typeof actual, "string");
1826
1827
  }
1827
- function objectKeys(object$1) {
1828
- return Object.keys(object$1);
1828
+ function objectKeys(object$2) {
1829
+ return Object.keys(object$2);
1829
1830
  }
1830
1831
 
1831
1832
  //#endregion
@@ -1914,12 +1915,12 @@ function argsert(arg1, arg2, arg3) {
1914
1915
  if (matchingTypes.length === 0) argumentTypeError(observedType, demanded.cmd, position$1);
1915
1916
  position$1 += 1;
1916
1917
  });
1917
- parsed.optional.forEach((optional$1) => {
1918
+ parsed.optional.forEach((optional$2) => {
1918
1919
  if (args.length === 0) return;
1919
1920
  const arg = args.shift();
1920
1921
  const observedType = guessType(arg);
1921
- const matchingTypes = optional$1.cmd.filter((type$1) => type$1 === observedType || type$1 === "*");
1922
- if (matchingTypes.length === 0) argumentTypeError(observedType, optional$1.cmd, position$1);
1922
+ const matchingTypes = optional$2.cmd.filter((type$1) => type$1 === observedType || type$1 === "*");
1923
+ if (matchingTypes.length === 0) argumentTypeError(observedType, optional$2.cmd, position$1);
1923
1924
  position$1 += 1;
1924
1925
  });
1925
1926
  } catch (err) {
@@ -2233,15 +2234,15 @@ var CommandInstance = class {
2233
2234
  populatePositionals(commandHandler, argv, context, yargs) {
2234
2235
  argv._ = argv._.slice(context.commands.length);
2235
2236
  const demanded = commandHandler.demanded.slice(0);
2236
- const optional$1 = commandHandler.optional.slice(0);
2237
+ const optional$2 = commandHandler.optional.slice(0);
2237
2238
  const positionalMap = {};
2238
2239
  this.validation.positionalCount(demanded.length, argv._.length);
2239
2240
  while (demanded.length) {
2240
2241
  const demand = demanded.shift();
2241
2242
  this.populatePositional(demand, argv, positionalMap);
2242
2243
  }
2243
- while (optional$1.length) {
2244
- const maybe = optional$1.shift();
2244
+ while (optional$2.length) {
2245
+ const maybe = optional$2.shift();
2245
2246
  this.populatePositional(maybe, argv, positionalMap);
2246
2247
  }
2247
2248
  argv._ = context.commands.concat(argv._.map((a$1) => "" + a$1));
@@ -2791,30 +2792,30 @@ function usage(yargs, shim$2) {
2791
2792
  ].join("");
2792
2793
  };
2793
2794
  self.stringifiedValues = function stringifiedValues(values, separator) {
2794
- let string$6 = "";
2795
+ let string$7 = "";
2795
2796
  const sep = separator || ", ";
2796
- const array$3 = [].concat(values);
2797
- if (!values || !array$3.length) return string$6;
2798
- array$3.forEach((value) => {
2799
- if (string$6.length) string$6 += sep;
2800
- string$6 += JSON.stringify(value);
2797
+ const array$4 = [].concat(values);
2798
+ if (!values || !array$4.length) return string$7;
2799
+ array$4.forEach((value) => {
2800
+ if (string$7.length) string$7 += sep;
2801
+ string$7 += JSON.stringify(value);
2801
2802
  });
2802
- return string$6;
2803
+ return string$7;
2803
2804
  };
2804
2805
  function defaultString(value, defaultDescription) {
2805
- let string$6 = `[${__("default:")} `;
2806
+ let string$7 = `[${__("default:")} `;
2806
2807
  if (value === void 0 && !defaultDescription) return null;
2807
- if (defaultDescription) string$6 += defaultDescription;
2808
+ if (defaultDescription) string$7 += defaultDescription;
2808
2809
  else switch (typeof value) {
2809
2810
  case "string":
2810
- string$6 += `"${value}"`;
2811
+ string$7 += `"${value}"`;
2811
2812
  break;
2812
2813
  case "object":
2813
- string$6 += JSON.stringify(value);
2814
+ string$7 += JSON.stringify(value);
2814
2815
  break;
2815
- default: string$6 += value;
2816
+ default: string$7 += value;
2816
2817
  }
2817
- return `${string$6}]`;
2818
+ return `${string$7}]`;
2818
2819
  }
2819
2820
  function windowWidth() {
2820
2821
  const maxWidth$1 = 80;
@@ -3183,13 +3184,13 @@ function validation(yargs, usage$1, shim$2) {
3183
3184
  self.unknownArguments = function unknownArguments(argv, aliases, positionalMap, isDefaultCommand, checkPositionals = true) {
3184
3185
  var _a$2;
3185
3186
  const commandKeys = yargs.getInternalMethods().getCommandInstance().getCommands();
3186
- const unknown$1 = [];
3187
+ const unknown$2 = [];
3187
3188
  const currentContext = yargs.getInternalMethods().getContext();
3188
3189
  Object.keys(argv).forEach((key$1) => {
3189
- if (!specialKeys.includes(key$1) && !Object.prototype.hasOwnProperty.call(positionalMap, key$1) && !Object.prototype.hasOwnProperty.call(yargs.getInternalMethods().getParseContext(), key$1) && !self.isValidAndSomeAliasIsNotNew(key$1, aliases)) unknown$1.push(key$1);
3190
+ if (!specialKeys.includes(key$1) && !Object.prototype.hasOwnProperty.call(positionalMap, key$1) && !Object.prototype.hasOwnProperty.call(yargs.getInternalMethods().getParseContext(), key$1) && !self.isValidAndSomeAliasIsNotNew(key$1, aliases)) unknown$2.push(key$1);
3190
3191
  });
3191
3192
  if (checkPositionals && (currentContext.commands.length > 0 || commandKeys.length > 0 || isDefaultCommand)) argv._.slice(currentContext.commands.length).forEach((key$1) => {
3192
- if (!commandKeys.includes("" + key$1)) unknown$1.push("" + key$1);
3193
+ if (!commandKeys.includes("" + key$1)) unknown$2.push("" + key$1);
3193
3194
  });
3194
3195
  if (checkPositionals) {
3195
3196
  const demandedCommands = yargs.getDemandedCommands();
@@ -3197,20 +3198,20 @@ function validation(yargs, usage$1, shim$2) {
3197
3198
  const expected = currentContext.commands.length + maxNonOptDemanded;
3198
3199
  if (expected < argv._.length) argv._.slice(expected).forEach((key$1) => {
3199
3200
  key$1 = String(key$1);
3200
- if (!currentContext.commands.includes(key$1) && !unknown$1.includes(key$1)) unknown$1.push(key$1);
3201
+ if (!currentContext.commands.includes(key$1) && !unknown$2.includes(key$1)) unknown$2.push(key$1);
3201
3202
  });
3202
3203
  }
3203
- if (unknown$1.length) usage$1.fail(__n("Unknown argument: %s", "Unknown arguments: %s", unknown$1.length, unknown$1.map((s$2) => s$2.trim() ? s$2 : `"${s$2}"`).join(", ")));
3204
+ if (unknown$2.length) usage$1.fail(__n("Unknown argument: %s", "Unknown arguments: %s", unknown$2.length, unknown$2.map((s$2) => s$2.trim() ? s$2 : `"${s$2}"`).join(", ")));
3204
3205
  };
3205
3206
  self.unknownCommands = function unknownCommands(argv) {
3206
3207
  const commandKeys = yargs.getInternalMethods().getCommandInstance().getCommands();
3207
- const unknown$1 = [];
3208
+ const unknown$2 = [];
3208
3209
  const currentContext = yargs.getInternalMethods().getContext();
3209
3210
  if (currentContext.commands.length > 0 || commandKeys.length > 0) argv._.slice(currentContext.commands.length).forEach((key$1) => {
3210
- if (!commandKeys.includes("" + key$1)) unknown$1.push("" + key$1);
3211
+ if (!commandKeys.includes("" + key$1)) unknown$2.push("" + key$1);
3211
3212
  });
3212
- if (unknown$1.length > 0) {
3213
- usage$1.fail(__n("Unknown command: %s", "Unknown commands: %s", unknown$1.length, unknown$1.join(", ")));
3213
+ if (unknown$2.length > 0) {
3214
+ usage$1.fail(__n("Unknown command: %s", "Unknown commands: %s", unknown$2.length, unknown$2.join(", ")));
3214
3215
  return true;
3215
3216
  } else return false;
3216
3217
  };
@@ -4687,7 +4688,7 @@ var yargs_default = Yargs;
4687
4688
  //#endregion
4688
4689
  //#region package.json
4689
4690
  var name = "@jixo/cli";
4690
- var version$1 = "0.23.0";
4691
+ var version$1 = "0.23.3";
4691
4692
  var type = "module";
4692
4693
  var bin = { "jixo": "./bundle/index.js" };
4693
4694
  var files = [
@@ -4696,6 +4697,8 @@ var files = [
4696
4697
  "dist"
4697
4698
  ];
4698
4699
  var scripts = {
4700
+ "prepack": "node scripts/prepack.ts",
4701
+ "postpack": "node scripts/postpack.ts",
4699
4702
  "build": "pnpm run \"/^b\\:.*/\"",
4700
4703
  "b:ts": "tsc --build",
4701
4704
  "b:bundle": "tsdown",
@@ -4754,7 +4757,7 @@ var package_default = {
4754
4757
  };
4755
4758
 
4756
4759
  //#endregion
4757
- //#region ../../node_modules/.pnpm/@gaubee+nodekit@0.12.0_@gau_ac796b2c5c73dab9bab91ba9e75b6834/node_modules/@gaubee/nodekit/esm/_dnt.shims.js
4760
+ //#region ../../node_modules/.pnpm/@gaubee+nodekit@0.12.0_@gaubee+node@0.4.0_@gaubee+util@0.34.2__@gaubee+util@0.34.2_@types+node@24.1.0/node_modules/@gaubee/nodekit/esm/_dnt.shims.js
4758
4761
  const dntGlobals = {};
4759
4762
  const dntGlobalThis = createMergeProxy(globalThis, dntGlobals);
4760
4763
  function createMergeProxy(baseObj, extObj) {
@@ -4802,7 +4805,7 @@ function createMergeProxy(baseObj, extObj) {
4802
4805
  }
4803
4806
 
4804
4807
  //#endregion
4805
- //#region ../../node_modules/.pnpm/@gaubee+nodekit@0.12.0_@gau_ac796b2c5c73dab9bab91ba9e75b6834/node_modules/@gaubee/nodekit/esm/deps/jsr.io/@std/fmt/1.0.8/colors.js
4808
+ //#region ../../node_modules/.pnpm/@gaubee+nodekit@0.12.0_@gaubee+node@0.4.0_@gaubee+util@0.34.2__@gaubee+util@0.34.2_@types+node@24.1.0/node_modules/@gaubee/nodekit/esm/deps/jsr.io/@std/fmt/1.0.8/colors.js
4806
4809
  const { Deno } = dntGlobalThis;
4807
4810
  const noColor = typeof Deno?.noColor === "boolean" ? Deno.noColor : false;
4808
4811
  let enabled = !noColor;
@@ -5794,7 +5797,7 @@ const createResolverByRootFile = (fromPath = process$1.cwd(), rootFilename = "pa
5794
5797
  };
5795
5798
 
5796
5799
  //#endregion
5797
- //#region ../../node_modules/.pnpm/@gaubee+nodekit@0.12.0_@gau_ac796b2c5c73dab9bab91ba9e75b6834/node_modules/@gaubee/nodekit/esm/deps/jsr.io/@std/jsonc/1.0.2/parse.js
5800
+ //#region ../../node_modules/.pnpm/@gaubee+nodekit@0.12.0_@gaubee+node@0.4.0_@gaubee+util@0.34.2__@gaubee+util@0.34.2_@types+node@24.1.0/node_modules/@gaubee/nodekit/esm/deps/jsr.io/@std/jsonc/1.0.2/parse.js
5798
5801
  /**
5799
5802
  * Converts a JSON with Comments (JSONC) string into an object.
5800
5803
  *
@@ -6020,7 +6023,7 @@ function buildErrorMessage({ type: type$1, sourceText, position: position$1 }) {
6020
6023
  }
6021
6024
 
6022
6025
  //#endregion
6023
- //#region ../../node_modules/.pnpm/@gaubee+nodekit@0.12.0_@gau_ac796b2c5c73dab9bab91ba9e75b6834/node_modules/@gaubee/nodekit/esm/config_file.js
6026
+ //#region ../../node_modules/.pnpm/@gaubee+nodekit@0.12.0_@gaubee+node@0.4.0_@gaubee+util@0.34.2__@gaubee+util@0.34.2_@types+node@24.1.0/node_modules/@gaubee/nodekit/esm/config_file.js
6024
6027
  /**
6025
6028
  * read json or jsonc file
6026
6029
  */
@@ -6285,13 +6288,13 @@ var require_common$4 = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/n
6285
6288
  }
6286
6289
  return target;
6287
6290
  }
6288
- function repeat(string$6, count) {
6291
+ function repeat(string$7, count) {
6289
6292
  var result = "", cycle;
6290
- for (cycle = 0; cycle < count; cycle += 1) result += string$6;
6293
+ for (cycle = 0; cycle < count; cycle += 1) result += string$7;
6291
6294
  return result;
6292
6295
  }
6293
- function isNegativeZero(number$3) {
6294
- return number$3 === 0 && Number.NEGATIVE_INFINITY === 1 / number$3;
6296
+ function isNegativeZero(number$4) {
6297
+ return number$4 === 0 && Number.NEGATIVE_INFINITY === 1 / number$4;
6295
6298
  }
6296
6299
  module.exports.isNothing = isNothing;
6297
6300
  module.exports.isObject = isObject$4;
@@ -6561,8 +6564,8 @@ var require_null = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/node_
6561
6564
  function constructYamlNull() {
6562
6565
  return null;
6563
6566
  }
6564
- function isNull(object$1) {
6565
- return object$1 === null;
6567
+ function isNull(object$2) {
6568
+ return object$2 === null;
6566
6569
  }
6567
6570
  module.exports = new Type$12("tag:yaml.org,2002:null", {
6568
6571
  kind: "scalar",
@@ -6599,8 +6602,8 @@ var require_bool = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/node_
6599
6602
  function constructYamlBoolean(data) {
6600
6603
  return data === "true" || data === "True" || data === "TRUE";
6601
6604
  }
6602
- function isBoolean(object$1) {
6603
- return Object.prototype.toString.call(object$1) === "[object Boolean]";
6605
+ function isBoolean(object$2) {
6606
+ return Object.prototype.toString.call(object$2) === "[object Boolean]";
6604
6607
  }
6605
6608
  module.exports = new Type$11("tag:yaml.org,2002:bool", {
6606
6609
  kind: "scalar",
@@ -6608,14 +6611,14 @@ var require_bool = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/node_
6608
6611
  construct: constructYamlBoolean,
6609
6612
  predicate: isBoolean,
6610
6613
  represent: {
6611
- lowercase: function(object$1) {
6612
- return object$1 ? "true" : "false";
6614
+ lowercase: function(object$2) {
6615
+ return object$2 ? "true" : "false";
6613
6616
  },
6614
- uppercase: function(object$1) {
6615
- return object$1 ? "TRUE" : "FALSE";
6617
+ uppercase: function(object$2) {
6618
+ return object$2 ? "TRUE" : "FALSE";
6616
6619
  },
6617
- camelcase: function(object$1) {
6618
- return object$1 ? "True" : "False";
6620
+ camelcase: function(object$2) {
6621
+ return object$2 ? "True" : "False";
6619
6622
  }
6620
6623
  },
6621
6624
  defaultStyle: "lowercase"
@@ -6714,8 +6717,8 @@ var require_int = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/node_m
6714
6717
  }
6715
6718
  return sign$1 * parseInt(value, 10);
6716
6719
  }
6717
- function isInteger(object$1) {
6718
- return Object.prototype.toString.call(object$1) === "[object Number]" && object$1 % 1 === 0 && !common$9.isNegativeZero(object$1);
6720
+ function isInteger(object$2) {
6721
+ return Object.prototype.toString.call(object$2) === "[object Number]" && object$2 % 1 === 0 && !common$9.isNegativeZero(object$2);
6719
6722
  }
6720
6723
  module.exports = new Type$10("tag:yaml.org,2002:int", {
6721
6724
  kind: "scalar",
@@ -6780,29 +6783,29 @@ var require_float = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/node
6780
6783
  return sign$1 * parseFloat(value, 10);
6781
6784
  }
6782
6785
  var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
6783
- function representYamlFloat(object$1, style) {
6786
+ function representYamlFloat(object$2, style) {
6784
6787
  var res;
6785
- if (isNaN(object$1)) switch (style) {
6788
+ if (isNaN(object$2)) switch (style) {
6786
6789
  case "lowercase": return ".nan";
6787
6790
  case "uppercase": return ".NAN";
6788
6791
  case "camelcase": return ".NaN";
6789
6792
  }
6790
- else if (Number.POSITIVE_INFINITY === object$1) switch (style) {
6793
+ else if (Number.POSITIVE_INFINITY === object$2) switch (style) {
6791
6794
  case "lowercase": return ".inf";
6792
6795
  case "uppercase": return ".INF";
6793
6796
  case "camelcase": return ".Inf";
6794
6797
  }
6795
- else if (Number.NEGATIVE_INFINITY === object$1) switch (style) {
6798
+ else if (Number.NEGATIVE_INFINITY === object$2) switch (style) {
6796
6799
  case "lowercase": return "-.inf";
6797
6800
  case "uppercase": return "-.INF";
6798
6801
  case "camelcase": return "-.Inf";
6799
6802
  }
6800
- else if (common$8.isNegativeZero(object$1)) return "-0.0";
6801
- res = object$1.toString(10);
6803
+ else if (common$8.isNegativeZero(object$2)) return "-0.0";
6804
+ res = object$2.toString(10);
6802
6805
  return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace("e", ".e") : res;
6803
6806
  }
6804
- function isFloat(object$1) {
6805
- return Object.prototype.toString.call(object$1) === "[object Number]" && (object$1 % 1 !== 0 || common$8.isNegativeZero(object$1));
6807
+ function isFloat(object$2) {
6808
+ return Object.prototype.toString.call(object$2) === "[object Number]" && (object$2 % 1 !== 0 || common$8.isNegativeZero(object$2));
6806
6809
  }
6807
6810
  module.exports = new Type$9("tag:yaml.org,2002:float", {
6808
6811
  kind: "scalar",
@@ -6875,8 +6878,8 @@ var require_timestamp = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/
6875
6878
  if (delta) date$4.setTime(date$4.getTime() - delta);
6876
6879
  return date$4;
6877
6880
  }
6878
- function representYamlTimestamp(object$1) {
6879
- return object$1.toISOString();
6881
+ function representYamlTimestamp(object$2) {
6882
+ return object$2.toISOString();
6880
6883
  }
6881
6884
  module.exports = new Type$8("tag:yaml.org,2002:timestamp", {
6882
6885
  kind: "scalar",
@@ -6943,8 +6946,8 @@ var require_binary = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
6943
6946
  if (NodeBuffer) return NodeBuffer.from ? NodeBuffer.from(result) : new NodeBuffer(result);
6944
6947
  return result;
6945
6948
  }
6946
- function representYamlBinary(object$1) {
6947
- var result = "", bits = 0, idx, tail, max = object$1.length, map$1 = BASE64_MAP;
6949
+ function representYamlBinary(object$2) {
6950
+ var result = "", bits = 0, idx, tail, max = object$2.length, map$1 = BASE64_MAP;
6948
6951
  for (idx = 0; idx < max; idx++) {
6949
6952
  if (idx % 3 === 0 && idx) {
6950
6953
  result += map$1[bits >> 18 & 63];
@@ -6952,7 +6955,7 @@ var require_binary = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
6952
6955
  result += map$1[bits >> 6 & 63];
6953
6956
  result += map$1[bits & 63];
6954
6957
  }
6955
- bits = (bits << 8) + object$1[idx];
6958
+ bits = (bits << 8) + object$2[idx];
6956
6959
  }
6957
6960
  tail = max % 3;
6958
6961
  if (tail === 0) {
@@ -6973,8 +6976,8 @@ var require_binary = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
6973
6976
  }
6974
6977
  return result;
6975
6978
  }
6976
- function isBinary(object$1) {
6977
- return NodeBuffer && NodeBuffer.isBuffer(object$1);
6979
+ function isBinary(object$2) {
6980
+ return NodeBuffer && NodeBuffer.isBuffer(object$2);
6978
6981
  }
6979
6982
  module.exports = new Type$6("tag:yaml.org,2002:binary", {
6980
6983
  kind: "scalar",
@@ -6993,9 +6996,9 @@ var require_omap = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/node_
6993
6996
  var _toString$2 = Object.prototype.toString;
6994
6997
  function resolveYamlOmap(data) {
6995
6998
  if (data === null) return true;
6996
- var objectKeys$1 = [], index$1, length, pair, pairKey, pairHasKey, object$1 = data;
6997
- for (index$1 = 0, length = object$1.length; index$1 < length; index$1 += 1) {
6998
- pair = object$1[index$1];
6999
+ var objectKeys$1 = [], index$1, length, pair, pairKey, pairHasKey, object$2 = data;
7000
+ for (index$1 = 0, length = object$2.length; index$1 < length; index$1 += 1) {
7001
+ pair = object$2[index$1];
6999
7002
  pairHasKey = false;
7000
7003
  if (_toString$2.call(pair) !== "[object Object]") return false;
7001
7004
  for (pairKey in pair) if (_hasOwnProperty$3.call(pair, pairKey)) if (!pairHasKey) pairHasKey = true;
@@ -7023,10 +7026,10 @@ var require_pairs = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/node
7023
7026
  var _toString$1 = Object.prototype.toString;
7024
7027
  function resolveYamlPairs(data) {
7025
7028
  if (data === null) return true;
7026
- var index$1, length, pair, keys, result, object$1 = data;
7027
- result = new Array(object$1.length);
7028
- for (index$1 = 0, length = object$1.length; index$1 < length; index$1 += 1) {
7029
- pair = object$1[index$1];
7029
+ var index$1, length, pair, keys, result, object$2 = data;
7030
+ result = new Array(object$2.length);
7031
+ for (index$1 = 0, length = object$2.length; index$1 < length; index$1 += 1) {
7032
+ pair = object$2[index$1];
7030
7033
  if (_toString$1.call(pair) !== "[object Object]") return false;
7031
7034
  keys = Object.keys(pair);
7032
7035
  if (keys.length !== 1) return false;
@@ -7036,10 +7039,10 @@ var require_pairs = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/node
7036
7039
  }
7037
7040
  function constructYamlPairs(data) {
7038
7041
  if (data === null) return [];
7039
- var index$1, length, pair, keys, result, object$1 = data;
7040
- result = new Array(object$1.length);
7041
- for (index$1 = 0, length = object$1.length; index$1 < length; index$1 += 1) {
7042
- pair = object$1[index$1];
7042
+ var index$1, length, pair, keys, result, object$2 = data;
7043
+ result = new Array(object$2.length);
7044
+ for (index$1 = 0, length = object$2.length; index$1 < length; index$1 += 1) {
7045
+ pair = object$2[index$1];
7043
7046
  keys = Object.keys(pair);
7044
7047
  result[index$1] = [keys[0], pair[keys[0]]];
7045
7048
  }
@@ -7059,9 +7062,9 @@ var require_set = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/node_m
7059
7062
  var _hasOwnProperty$2 = Object.prototype.hasOwnProperty;
7060
7063
  function resolveYamlSet(data) {
7061
7064
  if (data === null) return true;
7062
- var key$1, object$1 = data;
7063
- for (key$1 in object$1) if (_hasOwnProperty$2.call(object$1, key$1)) {
7064
- if (object$1[key$1] !== null) return false;
7065
+ var key$1, object$2 = data;
7066
+ for (key$1 in object$2) if (_hasOwnProperty$2.call(object$2, key$1)) {
7067
+ if (object$2[key$1] !== null) return false;
7065
7068
  }
7066
7069
  return true;
7067
7070
  }
@@ -7104,8 +7107,8 @@ var require_undefined = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/
7104
7107
  function representJavascriptUndefined() {
7105
7108
  return "";
7106
7109
  }
7107
- function isUndefined(object$1) {
7108
- return typeof object$1 === "undefined";
7110
+ function isUndefined(object$2) {
7111
+ return typeof object$2 === "undefined";
7109
7112
  }
7110
7113
  module.exports = new Type$2("tag:yaml.org,2002:js/undefined", {
7111
7114
  kind: "scalar",
@@ -7139,15 +7142,15 @@ var require_regexp = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
7139
7142
  }
7140
7143
  return new RegExp(regexp, modifiers);
7141
7144
  }
7142
- function representJavascriptRegExp(object$1) {
7143
- var result = "/" + object$1.source + "/";
7144
- if (object$1.global) result += "g";
7145
- if (object$1.multiline) result += "m";
7146
- if (object$1.ignoreCase) result += "i";
7145
+ function representJavascriptRegExp(object$2) {
7146
+ var result = "/" + object$2.source + "/";
7147
+ if (object$2.global) result += "g";
7148
+ if (object$2.multiline) result += "m";
7149
+ if (object$2.ignoreCase) result += "i";
7147
7150
  return result;
7148
7151
  }
7149
- function isRegExp(object$1) {
7150
- return Object.prototype.toString.call(object$1) === "[object RegExp]";
7152
+ function isRegExp(object$2) {
7153
+ return Object.prototype.toString.call(object$2) === "[object RegExp]";
7151
7154
  }
7152
7155
  module.exports = new Type$1("tag:yaml.org,2002:js/regexp", {
7153
7156
  kind: "scalar",
@@ -7189,11 +7192,11 @@ var require_function = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/n
7189
7192
  if (ast.body[0].expression.body.type === "BlockStatement") return new Function(params, source$1.slice(body[0] + 1, body[1] - 1));
7190
7193
  return new Function(params, "return " + source$1.slice(body[0], body[1]));
7191
7194
  }
7192
- function representJavascriptFunction(object$1) {
7193
- return object$1.toString();
7195
+ function representJavascriptFunction(object$2) {
7196
+ return object$2.toString();
7194
7197
  }
7195
- function isFunction(object$1) {
7196
- return Object.prototype.toString.call(object$1) === "[object Function]";
7198
+ function isFunction(object$2) {
7199
+ return Object.prototype.toString.call(object$2) === "[object Function]";
7197
7200
  }
7198
7201
  module.exports = new Type("tag:yaml.org,2002:js/function", {
7199
7202
  kind: "scalar",
@@ -8107,8 +8110,8 @@ var require_dumper = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
8107
8110
  return result;
8108
8111
  }
8109
8112
  function encodeHex(character) {
8110
- var string$6, handle, length;
8111
- string$6 = character.toString(16).toUpperCase();
8113
+ var string$7, handle, length;
8114
+ string$7 = character.toString(16).toUpperCase();
8112
8115
  if (character <= 255) {
8113
8116
  handle = "x";
8114
8117
  length = 2;
@@ -8119,7 +8122,7 @@ var require_dumper = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
8119
8122
  handle = "U";
8120
8123
  length = 8;
8121
8124
  } else throw new YAMLException("code point within a string may not be greater than 0xFFFFFFFF");
8122
- return "\\" + handle + common$6.repeat("0", length - string$6.length) + string$6;
8125
+ return "\\" + handle + common$6.repeat("0", length - string$7.length) + string$7;
8123
8126
  }
8124
8127
  function State(options$1) {
8125
8128
  this.schema = options$1["schema"] || DEFAULT_FULL_SCHEMA;
@@ -8140,15 +8143,15 @@ var require_dumper = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
8140
8143
  this.duplicates = [];
8141
8144
  this.usedDuplicates = null;
8142
8145
  }
8143
- function indentString(string$6, spaces) {
8144
- var ind = common$6.repeat(" ", spaces), position$1 = 0, next = -1, result = "", line$2, length = string$6.length;
8146
+ function indentString(string$7, spaces) {
8147
+ var ind = common$6.repeat(" ", spaces), position$1 = 0, next = -1, result = "", line$2, length = string$7.length;
8145
8148
  while (position$1 < length) {
8146
- next = string$6.indexOf("\n", position$1);
8149
+ next = string$7.indexOf("\n", position$1);
8147
8150
  if (next === -1) {
8148
- line$2 = string$6.slice(position$1);
8151
+ line$2 = string$7.slice(position$1);
8149
8152
  position$1 = length;
8150
8153
  } else {
8151
- line$2 = string$6.slice(position$1, next + 1);
8154
+ line$2 = string$7.slice(position$1, next + 1);
8152
8155
  position$1 = next + 1;
8153
8156
  }
8154
8157
  if (line$2.length && line$2 !== "\n") result += ind;
@@ -8182,86 +8185,86 @@ var require_dumper = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
8182
8185
  function isPlainSafeFirst(c$2) {
8183
8186
  return isPrintable(c$2) && c$2 !== 65279 && !isWhitespace(c$2) && c$2 !== CHAR_MINUS && c$2 !== CHAR_QUESTION && c$2 !== CHAR_COLON && c$2 !== CHAR_COMMA$2 && c$2 !== CHAR_LEFT_SQUARE_BRACKET$2 && c$2 !== CHAR_RIGHT_SQUARE_BRACKET$2 && c$2 !== CHAR_LEFT_CURLY_BRACKET && c$2 !== CHAR_RIGHT_CURLY_BRACKET && c$2 !== CHAR_SHARP && c$2 !== CHAR_AMPERSAND && c$2 !== CHAR_ASTERISK$1 && c$2 !== CHAR_EXCLAMATION && c$2 !== CHAR_VERTICAL_LINE && c$2 !== CHAR_EQUALS && c$2 !== CHAR_GREATER_THAN && c$2 !== CHAR_SINGLE_QUOTE$1 && c$2 !== CHAR_DOUBLE_QUOTE$1 && c$2 !== CHAR_PERCENT && c$2 !== CHAR_COMMERCIAL_AT && c$2 !== CHAR_GRAVE_ACCENT;
8184
8187
  }
8185
- function needIndentIndicator(string$6) {
8188
+ function needIndentIndicator(string$7) {
8186
8189
  var leadingSpaceRe = /^\n* /;
8187
- return leadingSpaceRe.test(string$6);
8190
+ return leadingSpaceRe.test(string$7);
8188
8191
  }
8189
8192
  var STYLE_PLAIN = 1, STYLE_SINGLE = 2, STYLE_LITERAL = 3, STYLE_FOLDED = 4, STYLE_DOUBLE = 5;
8190
- function chooseScalarStyle(string$6, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType) {
8193
+ function chooseScalarStyle(string$7, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType) {
8191
8194
  var i$2;
8192
8195
  var char, prev_char;
8193
8196
  var hasLineBreak = false;
8194
8197
  var hasFoldableLine = false;
8195
8198
  var shouldTrackWidth = lineWidth !== -1;
8196
8199
  var previousLineBreak = -1;
8197
- var plain = isPlainSafeFirst(string$6.charCodeAt(0)) && !isWhitespace(string$6.charCodeAt(string$6.length - 1));
8198
- if (singleLineOnly) for (i$2 = 0; i$2 < string$6.length; i$2++) {
8199
- char = string$6.charCodeAt(i$2);
8200
+ var plain = isPlainSafeFirst(string$7.charCodeAt(0)) && !isWhitespace(string$7.charCodeAt(string$7.length - 1));
8201
+ if (singleLineOnly) for (i$2 = 0; i$2 < string$7.length; i$2++) {
8202
+ char = string$7.charCodeAt(i$2);
8200
8203
  if (!isPrintable(char)) return STYLE_DOUBLE;
8201
- prev_char = i$2 > 0 ? string$6.charCodeAt(i$2 - 1) : null;
8204
+ prev_char = i$2 > 0 ? string$7.charCodeAt(i$2 - 1) : null;
8202
8205
  plain = plain && isPlainSafe(char, prev_char);
8203
8206
  }
8204
8207
  else {
8205
- for (i$2 = 0; i$2 < string$6.length; i$2++) {
8206
- char = string$6.charCodeAt(i$2);
8208
+ for (i$2 = 0; i$2 < string$7.length; i$2++) {
8209
+ char = string$7.charCodeAt(i$2);
8207
8210
  if (char === CHAR_LINE_FEED) {
8208
8211
  hasLineBreak = true;
8209
8212
  if (shouldTrackWidth) {
8210
- hasFoldableLine = hasFoldableLine || i$2 - previousLineBreak - 1 > lineWidth && string$6[previousLineBreak + 1] !== " ";
8213
+ hasFoldableLine = hasFoldableLine || i$2 - previousLineBreak - 1 > lineWidth && string$7[previousLineBreak + 1] !== " ";
8211
8214
  previousLineBreak = i$2;
8212
8215
  }
8213
8216
  } else if (!isPrintable(char)) return STYLE_DOUBLE;
8214
- prev_char = i$2 > 0 ? string$6.charCodeAt(i$2 - 1) : null;
8217
+ prev_char = i$2 > 0 ? string$7.charCodeAt(i$2 - 1) : null;
8215
8218
  plain = plain && isPlainSafe(char, prev_char);
8216
8219
  }
8217
- hasFoldableLine = hasFoldableLine || shouldTrackWidth && i$2 - previousLineBreak - 1 > lineWidth && string$6[previousLineBreak + 1] !== " ";
8220
+ hasFoldableLine = hasFoldableLine || shouldTrackWidth && i$2 - previousLineBreak - 1 > lineWidth && string$7[previousLineBreak + 1] !== " ";
8218
8221
  }
8219
- if (!hasLineBreak && !hasFoldableLine) return plain && !testAmbiguousType(string$6) ? STYLE_PLAIN : STYLE_SINGLE;
8220
- if (indentPerLevel > 9 && needIndentIndicator(string$6)) return STYLE_DOUBLE;
8222
+ if (!hasLineBreak && !hasFoldableLine) return plain && !testAmbiguousType(string$7) ? STYLE_PLAIN : STYLE_SINGLE;
8223
+ if (indentPerLevel > 9 && needIndentIndicator(string$7)) return STYLE_DOUBLE;
8221
8224
  return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;
8222
8225
  }
8223
- function writeScalar(state, string$6, level, iskey) {
8226
+ function writeScalar(state, string$7, level, iskey) {
8224
8227
  state.dump = function() {
8225
- if (string$6.length === 0) return "''";
8226
- if (!state.noCompatMode && DEPRECATED_BOOLEANS_SYNTAX.indexOf(string$6) !== -1) return "'" + string$6 + "'";
8228
+ if (string$7.length === 0) return "''";
8229
+ if (!state.noCompatMode && DEPRECATED_BOOLEANS_SYNTAX.indexOf(string$7) !== -1) return "'" + string$7 + "'";
8227
8230
  var indent$2 = state.indent * Math.max(1, level);
8228
8231
  var lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent$2);
8229
8232
  var singleLineOnly = iskey || state.flowLevel > -1 && level >= state.flowLevel;
8230
- function testAmbiguity(string$7) {
8231
- return testImplicitResolving(state, string$7);
8232
- }
8233
- switch (chooseScalarStyle(string$6, singleLineOnly, state.indent, lineWidth, testAmbiguity)) {
8234
- case STYLE_PLAIN: return string$6;
8235
- case STYLE_SINGLE: return "'" + string$6.replace(/'/g, "''") + "'";
8236
- case STYLE_LITERAL: return "|" + blockHeader(string$6, state.indent) + dropEndingNewline(indentString(string$6, indent$2));
8237
- case STYLE_FOLDED: return ">" + blockHeader(string$6, state.indent) + dropEndingNewline(indentString(foldString(string$6, lineWidth), indent$2));
8238
- case STYLE_DOUBLE: return "\"" + escapeString(string$6, lineWidth) + "\"";
8233
+ function testAmbiguity(string$8) {
8234
+ return testImplicitResolving(state, string$8);
8235
+ }
8236
+ switch (chooseScalarStyle(string$7, singleLineOnly, state.indent, lineWidth, testAmbiguity)) {
8237
+ case STYLE_PLAIN: return string$7;
8238
+ case STYLE_SINGLE: return "'" + string$7.replace(/'/g, "''") + "'";
8239
+ case STYLE_LITERAL: return "|" + blockHeader(string$7, state.indent) + dropEndingNewline(indentString(string$7, indent$2));
8240
+ case STYLE_FOLDED: return ">" + blockHeader(string$7, state.indent) + dropEndingNewline(indentString(foldString(string$7, lineWidth), indent$2));
8241
+ case STYLE_DOUBLE: return "\"" + escapeString(string$7, lineWidth) + "\"";
8239
8242
  default: throw new YAMLException("impossible error: invalid scalar style");
8240
8243
  }
8241
8244
  }();
8242
8245
  }
8243
- function blockHeader(string$6, indentPerLevel) {
8244
- var indentIndicator = needIndentIndicator(string$6) ? String(indentPerLevel) : "";
8245
- var clip = string$6[string$6.length - 1] === "\n";
8246
- var keep = clip && (string$6[string$6.length - 2] === "\n" || string$6 === "\n");
8246
+ function blockHeader(string$7, indentPerLevel) {
8247
+ var indentIndicator = needIndentIndicator(string$7) ? String(indentPerLevel) : "";
8248
+ var clip = string$7[string$7.length - 1] === "\n";
8249
+ var keep = clip && (string$7[string$7.length - 2] === "\n" || string$7 === "\n");
8247
8250
  var chomp = keep ? "+" : clip ? "" : "-";
8248
8251
  return indentIndicator + chomp + "\n";
8249
8252
  }
8250
- function dropEndingNewline(string$6) {
8251
- return string$6[string$6.length - 1] === "\n" ? string$6.slice(0, -1) : string$6;
8253
+ function dropEndingNewline(string$7) {
8254
+ return string$7[string$7.length - 1] === "\n" ? string$7.slice(0, -1) : string$7;
8252
8255
  }
8253
- function foldString(string$6, width) {
8256
+ function foldString(string$7, width) {
8254
8257
  var lineRe = /(\n+)([^\n]*)/g;
8255
8258
  var result = function() {
8256
- var nextLF = string$6.indexOf("\n");
8257
- nextLF = nextLF !== -1 ? nextLF : string$6.length;
8259
+ var nextLF = string$7.indexOf("\n");
8260
+ nextLF = nextLF !== -1 ? nextLF : string$7.length;
8258
8261
  lineRe.lastIndex = nextLF;
8259
- return foldLine(string$6.slice(0, nextLF), width);
8262
+ return foldLine(string$7.slice(0, nextLF), width);
8260
8263
  }();
8261
- var prevMoreIndented = string$6[0] === "\n" || string$6[0] === " ";
8264
+ var prevMoreIndented = string$7[0] === "\n" || string$7[0] === " ";
8262
8265
  var moreIndented;
8263
8266
  var match;
8264
- while (match = lineRe.exec(string$6)) {
8267
+ while (match = lineRe.exec(string$7)) {
8265
8268
  var prefix = match[1], line$2 = match[2];
8266
8269
  moreIndented = line$2[0] === " ";
8267
8270
  result += prefix + (!prevMoreIndented && !moreIndented && line$2 !== "" ? "\n" : "") + foldLine(line$2, width);
@@ -8289,14 +8292,14 @@ var require_dumper = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
8289
8292
  else result += line$2.slice(start);
8290
8293
  return result.slice(1);
8291
8294
  }
8292
- function escapeString(string$6) {
8295
+ function escapeString(string$7) {
8293
8296
  var result = "";
8294
8297
  var char, nextChar;
8295
8298
  var escapeSeq;
8296
- for (var i$2 = 0; i$2 < string$6.length; i$2++) {
8297
- char = string$6.charCodeAt(i$2);
8299
+ for (var i$2 = 0; i$2 < string$7.length; i$2++) {
8300
+ char = string$7.charCodeAt(i$2);
8298
8301
  if (char >= 55296 && char <= 56319) {
8299
- nextChar = string$6.charCodeAt(i$2 + 1);
8302
+ nextChar = string$7.charCodeAt(i$2 + 1);
8300
8303
  if (nextChar >= 56320 && nextChar <= 57343) {
8301
8304
  result += encodeHex((char - 55296) * 1024 + nextChar - 56320 + 65536);
8302
8305
  i$2++;
@@ -8304,22 +8307,22 @@ var require_dumper = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
8304
8307
  }
8305
8308
  }
8306
8309
  escapeSeq = ESCAPE_SEQUENCES[char];
8307
- result += !escapeSeq && isPrintable(char) ? string$6[i$2] : escapeSeq || encodeHex(char);
8310
+ result += !escapeSeq && isPrintable(char) ? string$7[i$2] : escapeSeq || encodeHex(char);
8308
8311
  }
8309
8312
  return result;
8310
8313
  }
8311
- function writeFlowSequence(state, level, object$1) {
8314
+ function writeFlowSequence(state, level, object$2) {
8312
8315
  var _result = "", _tag = state.tag, index$1, length;
8313
- for (index$1 = 0, length = object$1.length; index$1 < length; index$1 += 1) if (writeNode(state, level, object$1[index$1], false, false)) {
8316
+ for (index$1 = 0, length = object$2.length; index$1 < length; index$1 += 1) if (writeNode(state, level, object$2[index$1], false, false)) {
8314
8317
  if (index$1 !== 0) _result += "," + (!state.condenseFlow ? " " : "");
8315
8318
  _result += state.dump;
8316
8319
  }
8317
8320
  state.tag = _tag;
8318
8321
  state.dump = "[" + _result + "]";
8319
8322
  }
8320
- function writeBlockSequence(state, level, object$1, compact) {
8323
+ function writeBlockSequence(state, level, object$2, compact) {
8321
8324
  var _result = "", _tag = state.tag, index$1, length;
8322
- for (index$1 = 0, length = object$1.length; index$1 < length; index$1 += 1) if (writeNode(state, level + 1, object$1[index$1], true, true)) {
8325
+ for (index$1 = 0, length = object$2.length; index$1 < length; index$1 += 1) if (writeNode(state, level + 1, object$2[index$1], true, true)) {
8323
8326
  if (!compact || index$1 !== 0) _result += generateNextLine(state, level);
8324
8327
  if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) _result += "-";
8325
8328
  else _result += "- ";
@@ -8328,14 +8331,14 @@ var require_dumper = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
8328
8331
  state.tag = _tag;
8329
8332
  state.dump = _result || "[]";
8330
8333
  }
8331
- function writeFlowMapping(state, level, object$1) {
8332
- var _result = "", _tag = state.tag, objectKeyList = Object.keys(object$1), index$1, length, objectKey, objectValue, pairBuffer;
8334
+ function writeFlowMapping(state, level, object$2) {
8335
+ var _result = "", _tag = state.tag, objectKeyList = Object.keys(object$2), index$1, length, objectKey, objectValue, pairBuffer;
8333
8336
  for (index$1 = 0, length = objectKeyList.length; index$1 < length; index$1 += 1) {
8334
8337
  pairBuffer = "";
8335
8338
  if (index$1 !== 0) pairBuffer += ", ";
8336
8339
  if (state.condenseFlow) pairBuffer += "\"";
8337
8340
  objectKey = objectKeyList[index$1];
8338
- objectValue = object$1[objectKey];
8341
+ objectValue = object$2[objectKey];
8339
8342
  if (!writeNode(state, level, objectKey, false, false)) continue;
8340
8343
  if (state.dump.length > 1024) pairBuffer += "? ";
8341
8344
  pairBuffer += state.dump + (state.condenseFlow ? "\"" : "") + ":" + (state.condenseFlow ? "" : " ");
@@ -8346,8 +8349,8 @@ var require_dumper = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
8346
8349
  state.tag = _tag;
8347
8350
  state.dump = "{" + _result + "}";
8348
8351
  }
8349
- function writeBlockMapping(state, level, object$1, compact) {
8350
- var _result = "", _tag = state.tag, objectKeyList = Object.keys(object$1), index$1, length, objectKey, objectValue, explicitPair, pairBuffer;
8352
+ function writeBlockMapping(state, level, object$2, compact) {
8353
+ var _result = "", _tag = state.tag, objectKeyList = Object.keys(object$2), index$1, length, objectKey, objectValue, explicitPair, pairBuffer;
8351
8354
  if (state.sortKeys === true) objectKeyList.sort();
8352
8355
  else if (typeof state.sortKeys === "function") objectKeyList.sort(state.sortKeys);
8353
8356
  else if (state.sortKeys) throw new YAMLException("sortKeys must be a boolean or a function");
@@ -8355,7 +8358,7 @@ var require_dumper = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
8355
8358
  pairBuffer = "";
8356
8359
  if (!compact || index$1 !== 0) pairBuffer += generateNextLine(state, level);
8357
8360
  objectKey = objectKeyList[index$1];
8358
- objectValue = object$1[objectKey];
8361
+ objectValue = object$2[objectKey];
8359
8362
  if (!writeNode(state, level + 1, objectKey, true, true, true)) continue;
8360
8363
  explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
8361
8364
  if (explicitPair) if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) pairBuffer += "?";
@@ -8371,17 +8374,17 @@ var require_dumper = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
8371
8374
  state.tag = _tag;
8372
8375
  state.dump = _result || "{}";
8373
8376
  }
8374
- function detectType(state, object$1, explicit) {
8377
+ function detectType(state, object$2, explicit) {
8375
8378
  var _result, typeList, index$1, length, type$1, style;
8376
8379
  typeList = explicit ? state.explicitTypes : state.implicitTypes;
8377
8380
  for (index$1 = 0, length = typeList.length; index$1 < length; index$1 += 1) {
8378
8381
  type$1 = typeList[index$1];
8379
- if ((type$1.instanceOf || type$1.predicate) && (!type$1.instanceOf || typeof object$1 === "object" && object$1 instanceof type$1.instanceOf) && (!type$1.predicate || type$1.predicate(object$1))) {
8382
+ if ((type$1.instanceOf || type$1.predicate) && (!type$1.instanceOf || typeof object$2 === "object" && object$2 instanceof type$1.instanceOf) && (!type$1.predicate || type$1.predicate(object$2))) {
8380
8383
  state.tag = explicit ? type$1.tag : "?";
8381
8384
  if (type$1.represent) {
8382
8385
  style = state.styleMap[type$1.tag] || type$1.defaultStyle;
8383
- if (_toString.call(type$1.represent) === "[object Function]") _result = type$1.represent(object$1, style);
8384
- else if (_hasOwnProperty.call(type$1.represent, style)) _result = type$1.represent[style](object$1, style);
8386
+ if (_toString.call(type$1.represent) === "[object Function]") _result = type$1.represent(object$2, style);
8387
+ else if (_hasOwnProperty.call(type$1.represent, style)) _result = type$1.represent[style](object$2, style);
8385
8388
  else throw new YAMLException("!<" + type$1.tag + "> tag resolver accepts not \"" + style + "\" style");
8386
8389
  state.dump = _result;
8387
8390
  }
@@ -8390,15 +8393,15 @@ var require_dumper = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
8390
8393
  }
8391
8394
  return false;
8392
8395
  }
8393
- function writeNode(state, level, object$1, block, compact, iskey) {
8396
+ function writeNode(state, level, object$2, block, compact, iskey) {
8394
8397
  state.tag = null;
8395
- state.dump = object$1;
8396
- if (!detectType(state, object$1, false)) detectType(state, object$1, true);
8398
+ state.dump = object$2;
8399
+ if (!detectType(state, object$2, false)) detectType(state, object$2, true);
8397
8400
  var type$1 = _toString.call(state.dump);
8398
8401
  if (block) block = state.flowLevel < 0 || state.flowLevel > level;
8399
8402
  var objectOrArray = type$1 === "[object Object]" || type$1 === "[object Array]", duplicateIndex, duplicate;
8400
8403
  if (objectOrArray) {
8401
- duplicateIndex = state.duplicates.indexOf(object$1);
8404
+ duplicateIndex = state.duplicates.indexOf(object$2);
8402
8405
  duplicate = duplicateIndex !== -1;
8403
8406
  }
8404
8407
  if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0) compact = false;
@@ -8431,24 +8434,24 @@ var require_dumper = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
8431
8434
  }
8432
8435
  return true;
8433
8436
  }
8434
- function getDuplicateReferences(object$1, state) {
8437
+ function getDuplicateReferences(object$2, state) {
8435
8438
  var objects = [], duplicatesIndexes = [], index$1, length;
8436
- inspectNode(object$1, objects, duplicatesIndexes);
8439
+ inspectNode(object$2, objects, duplicatesIndexes);
8437
8440
  for (index$1 = 0, length = duplicatesIndexes.length; index$1 < length; index$1 += 1) state.duplicates.push(objects[duplicatesIndexes[index$1]]);
8438
8441
  state.usedDuplicates = new Array(length);
8439
8442
  }
8440
- function inspectNode(object$1, objects, duplicatesIndexes) {
8443
+ function inspectNode(object$2, objects, duplicatesIndexes) {
8441
8444
  var objectKeyList, index$1, length;
8442
- if (object$1 !== null && typeof object$1 === "object") {
8443
- index$1 = objects.indexOf(object$1);
8445
+ if (object$2 !== null && typeof object$2 === "object") {
8446
+ index$1 = objects.indexOf(object$2);
8444
8447
  if (index$1 !== -1) {
8445
8448
  if (duplicatesIndexes.indexOf(index$1) === -1) duplicatesIndexes.push(index$1);
8446
8449
  } else {
8447
- objects.push(object$1);
8448
- if (Array.isArray(object$1)) for (index$1 = 0, length = object$1.length; index$1 < length; index$1 += 1) inspectNode(object$1[index$1], objects, duplicatesIndexes);
8450
+ objects.push(object$2);
8451
+ if (Array.isArray(object$2)) for (index$1 = 0, length = object$2.length; index$1 < length; index$1 += 1) inspectNode(object$2[index$1], objects, duplicatesIndexes);
8449
8452
  else {
8450
- objectKeyList = Object.keys(object$1);
8451
- for (index$1 = 0, length = objectKeyList.length; index$1 < length; index$1 += 1) inspectNode(object$1[objectKeyList[index$1]], objects, duplicatesIndexes);
8453
+ objectKeyList = Object.keys(object$2);
8454
+ for (index$1 = 0, length = objectKeyList.length; index$1 < length; index$1 += 1) inspectNode(object$2[objectKeyList[index$1]], objects, duplicatesIndexes);
8452
8455
  }
8453
8456
  }
8454
8457
  }
@@ -8924,7 +8927,7 @@ var require_gray_matter = __commonJS$2({ "../../node_modules/.pnpm/gray-matter@4
8924
8927
  } });
8925
8928
 
8926
8929
  //#endregion
8927
- //#region ../../node_modules/.pnpm/@gaubee+nodekit@0.12.0_@gau_ac796b2c5c73dab9bab91ba9e75b6834/node_modules/@gaubee/nodekit/esm/markdown_file.js
8930
+ //#region ../../node_modules/.pnpm/@gaubee+nodekit@0.12.0_@gaubee+node@0.4.0_@gaubee+util@0.34.2__@gaubee+util@0.34.2_@types+node@24.1.0/node_modules/@gaubee/nodekit/esm/markdown_file.js
8928
8931
  var import_gray_matter = __toESM$1(require_gray_matter(), 1);
8929
8932
 
8930
8933
  //#endregion
@@ -8949,8 +8952,8 @@ var require_ignore$1 = __commonJS$2({ "../../node_modules/.pnpm/ignore@7.0.5/nod
8949
8952
  /* istanbul ignore else */
8950
8953
  if (typeof Symbol !== "undefined") TMP_KEY_IGNORE = Symbol.for("node-ignore");
8951
8954
  const KEY_IGNORE = TMP_KEY_IGNORE;
8952
- const define = (object$1, key$1, value) => {
8953
- Object.defineProperty(object$1, key$1, { value });
8955
+ const define = (object$2, key$1, value) => {
8956
+ Object.defineProperty(object$2, key$1, { value });
8954
8957
  return value;
8955
8958
  };
8956
8959
  const REGEX_REGEXP_RANGE = /([0-z])-([0-z])/g;
@@ -9339,17 +9342,17 @@ var require_yoctocolors_cjs = __commonJS$2({ "../../node_modules/.pnpm/yoctocolo
9339
9342
  const openCode = `\u001B[${open}m`;
9340
9343
  const closeCode = `\u001B[${close}m`;
9341
9344
  return (input) => {
9342
- const string$6 = input + "";
9343
- let index$1 = string$6.indexOf(closeCode);
9344
- if (index$1 === -1) return openCode + string$6 + closeCode;
9345
+ const string$7 = input + "";
9346
+ let index$1 = string$7.indexOf(closeCode);
9347
+ if (index$1 === -1) return openCode + string$7 + closeCode;
9345
9348
  let result = openCode;
9346
9349
  let lastIndex = 0;
9347
9350
  while (index$1 !== -1) {
9348
- result += string$6.slice(lastIndex, index$1) + openCode;
9351
+ result += string$7.slice(lastIndex, index$1) + openCode;
9349
9352
  lastIndex = index$1 + closeCode.length;
9350
- index$1 = string$6.indexOf(closeCode, lastIndex);
9353
+ index$1 = string$7.indexOf(closeCode, lastIndex);
9351
9354
  }
9352
- result += string$6.slice(lastIndex) + closeCode;
9355
+ result += string$7.slice(lastIndex) + closeCode;
9353
9356
  return result;
9354
9357
  };
9355
9358
  };
@@ -9852,7 +9855,7 @@ var require_ansi_regex = __commonJS$2({ "../../node_modules/.pnpm/ansi-regex@5.0
9852
9855
  //#region ../../node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js
9853
9856
  var require_strip_ansi = __commonJS$2({ "../../node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js"(exports, module) {
9854
9857
  const ansiRegex = require_ansi_regex();
9855
- module.exports = (string$6) => typeof string$6 === "string" ? string$6.replace(ansiRegex(), "") : string$6;
9858
+ module.exports = (string$7) => typeof string$7 === "string" ? string$7.replace(ansiRegex(), "") : string$7;
9856
9859
  } });
9857
9860
 
9858
9861
  //#endregion
@@ -9881,14 +9884,14 @@ var require_string_width = __commonJS$2({ "../../node_modules/.pnpm/string-width
9881
9884
  const stripAnsi$1 = require_strip_ansi();
9882
9885
  const isFullwidthCodePoint = require_is_fullwidth_code_point();
9883
9886
  const emojiRegex = require_emoji_regex();
9884
- const stringWidth$1 = (string$6) => {
9885
- if (typeof string$6 !== "string" || string$6.length === 0) return 0;
9886
- string$6 = stripAnsi$1(string$6);
9887
- if (string$6.length === 0) return 0;
9888
- string$6 = string$6.replace(emojiRegex(), " ");
9887
+ const stringWidth$1 = (string$7) => {
9888
+ if (typeof string$7 !== "string" || string$7.length === 0) return 0;
9889
+ string$7 = stripAnsi$1(string$7);
9890
+ if (string$7.length === 0) return 0;
9891
+ string$7 = string$7.replace(emojiRegex(), " ");
9889
9892
  let width = 0;
9890
- for (let i$2 = 0; i$2 < string$6.length; i$2++) {
9891
- const code$1 = string$6.codePointAt(i$2);
9893
+ for (let i$2 = 0; i$2 < string$7.length; i$2++) {
9894
+ const code$1 = string$7.codePointAt(i$2);
9892
9895
  if (code$1 <= 31 || code$1 >= 127 && code$1 <= 159) continue;
9893
9896
  if (code$1 >= 768 && code$1 <= 879) continue;
9894
9897
  if (code$1 > 65535) i$2++;
@@ -10851,27 +10854,27 @@ var require_conversions = __commonJS$2({ "../../node_modules/.pnpm/color-convert
10851
10854
  b$1 = b$1 > .04045 ? ((b$1 + .055) / 1.055) ** 2.4 : b$1 / 12.92;
10852
10855
  const x$1 = r$1 * .4124 + g$1 * .3576 + b$1 * .1805;
10853
10856
  const y$2 = r$1 * .2126 + g$1 * .7152 + b$1 * .0722;
10854
- const z$2 = r$1 * .0193 + g$1 * .1192 + b$1 * .9505;
10857
+ const z$1 = r$1 * .0193 + g$1 * .1192 + b$1 * .9505;
10855
10858
  return [
10856
10859
  x$1 * 100,
10857
10860
  y$2 * 100,
10858
- z$2 * 100
10861
+ z$1 * 100
10859
10862
  ];
10860
10863
  };
10861
10864
  convert$2.rgb.lab = function(rgb) {
10862
10865
  const xyz = convert$2.rgb.xyz(rgb);
10863
10866
  let x$1 = xyz[0];
10864
10867
  let y$2 = xyz[1];
10865
- let z$2 = xyz[2];
10868
+ let z$1 = xyz[2];
10866
10869
  x$1 /= 95.047;
10867
10870
  y$2 /= 100;
10868
- z$2 /= 108.883;
10871
+ z$1 /= 108.883;
10869
10872
  x$1 = x$1 > .008856 ? x$1 ** (1 / 3) : 7.787 * x$1 + 16 / 116;
10870
10873
  y$2 = y$2 > .008856 ? y$2 ** (1 / 3) : 7.787 * y$2 + 16 / 116;
10871
- z$2 = z$2 > .008856 ? z$2 ** (1 / 3) : 7.787 * z$2 + 16 / 116;
10874
+ z$1 = z$1 > .008856 ? z$1 ** (1 / 3) : 7.787 * z$1 + 16 / 116;
10872
10875
  const l$1 = 116 * y$2 - 16;
10873
10876
  const a$1 = 500 * (x$1 - y$2);
10874
- const b$1 = 200 * (y$2 - z$2);
10877
+ const b$1 = 200 * (y$2 - z$1);
10875
10878
  return [
10876
10879
  l$1,
10877
10880
  a$1,
@@ -11067,13 +11070,13 @@ var require_conversions = __commonJS$2({ "../../node_modules/.pnpm/color-convert
11067
11070
  convert$2.xyz.rgb = function(xyz) {
11068
11071
  const x$1 = xyz[0] / 100;
11069
11072
  const y$2 = xyz[1] / 100;
11070
- const z$2 = xyz[2] / 100;
11073
+ const z$1 = xyz[2] / 100;
11071
11074
  let r$1;
11072
11075
  let g$1;
11073
11076
  let b$1;
11074
- r$1 = x$1 * 3.2406 + y$2 * -1.5372 + z$2 * -.4986;
11075
- g$1 = x$1 * -.9689 + y$2 * 1.8758 + z$2 * .0415;
11076
- b$1 = x$1 * .0557 + y$2 * -.204 + z$2 * 1.057;
11077
+ r$1 = x$1 * 3.2406 + y$2 * -1.5372 + z$1 * -.4986;
11078
+ g$1 = x$1 * -.9689 + y$2 * 1.8758 + z$1 * .0415;
11079
+ b$1 = x$1 * .0557 + y$2 * -.204 + z$1 * 1.057;
11077
11080
  r$1 = r$1 > .0031308 ? 1.055 * r$1 ** (1 / 2.4) - .055 : r$1 * 12.92;
11078
11081
  g$1 = g$1 > .0031308 ? 1.055 * g$1 ** (1 / 2.4) - .055 : g$1 * 12.92;
11079
11082
  b$1 = b$1 > .0031308 ? 1.055 * b$1 ** (1 / 2.4) - .055 : b$1 * 12.92;
@@ -11089,16 +11092,16 @@ var require_conversions = __commonJS$2({ "../../node_modules/.pnpm/color-convert
11089
11092
  convert$2.xyz.lab = function(xyz) {
11090
11093
  let x$1 = xyz[0];
11091
11094
  let y$2 = xyz[1];
11092
- let z$2 = xyz[2];
11095
+ let z$1 = xyz[2];
11093
11096
  x$1 /= 95.047;
11094
11097
  y$2 /= 100;
11095
- z$2 /= 108.883;
11098
+ z$1 /= 108.883;
11096
11099
  x$1 = x$1 > .008856 ? x$1 ** (1 / 3) : 7.787 * x$1 + 16 / 116;
11097
11100
  y$2 = y$2 > .008856 ? y$2 ** (1 / 3) : 7.787 * y$2 + 16 / 116;
11098
- z$2 = z$2 > .008856 ? z$2 ** (1 / 3) : 7.787 * z$2 + 16 / 116;
11101
+ z$1 = z$1 > .008856 ? z$1 ** (1 / 3) : 7.787 * z$1 + 16 / 116;
11099
11102
  const l$1 = 116 * y$2 - 16;
11100
11103
  const a$1 = 500 * (x$1 - y$2);
11101
- const b$1 = 200 * (y$2 - z$2);
11104
+ const b$1 = 200 * (y$2 - z$1);
11102
11105
  return [
11103
11106
  l$1,
11104
11107
  a$1,
@@ -11111,23 +11114,23 @@ var require_conversions = __commonJS$2({ "../../node_modules/.pnpm/color-convert
11111
11114
  const b$1 = lab[2];
11112
11115
  let x$1;
11113
11116
  let y$2;
11114
- let z$2;
11117
+ let z$1;
11115
11118
  y$2 = (l$1 + 16) / 116;
11116
11119
  x$1 = a$1 / 500 + y$2;
11117
- z$2 = y$2 - b$1 / 200;
11120
+ z$1 = y$2 - b$1 / 200;
11118
11121
  const y2 = y$2 ** 3;
11119
11122
  const x2 = x$1 ** 3;
11120
- const z2 = z$2 ** 3;
11123
+ const z2 = z$1 ** 3;
11121
11124
  y$2 = y2 > .008856 ? y2 : (y$2 - 16 / 116) / 7.787;
11122
11125
  x$1 = x2 > .008856 ? x2 : (x$1 - 16 / 116) / 7.787;
11123
- z$2 = z2 > .008856 ? z2 : (z$2 - 16 / 116) / 7.787;
11126
+ z$1 = z2 > .008856 ? z2 : (z$1 - 16 / 116) / 7.787;
11124
11127
  x$1 *= 95.047;
11125
11128
  y$2 *= 100;
11126
- z$2 *= 108.883;
11129
+ z$1 *= 108.883;
11127
11130
  return [
11128
11131
  x$1,
11129
11132
  y$2,
11130
- z$2
11133
+ z$1
11131
11134
  ];
11132
11135
  };
11133
11136
  convert$2.lab.lch = function(lab) {
@@ -11225,8 +11228,8 @@ var require_conversions = __commonJS$2({ "../../node_modules/.pnpm/color-convert
11225
11228
  };
11226
11229
  convert$2.rgb.hex = function(args) {
11227
11230
  const integer$1 = ((Math.round(args[0]) & 255) << 16) + ((Math.round(args[1]) & 255) << 8) + (Math.round(args[2]) & 255);
11228
- const string$6 = integer$1.toString(16).toUpperCase();
11229
- return "000000".substring(string$6.length) + string$6;
11231
+ const string$7 = integer$1.toString(16).toUpperCase();
11232
+ return "000000".substring(string$7.length) + string$7;
11230
11233
  };
11231
11234
  convert$2.hex.rgb = function(args) {
11232
11235
  const match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
@@ -11454,8 +11457,8 @@ var require_conversions = __commonJS$2({ "../../node_modules/.pnpm/color-convert
11454
11457
  convert$2.gray.hex = function(gray$1) {
11455
11458
  const val = Math.round(gray$1[0] / 100 * 255) & 255;
11456
11459
  const integer$1 = (val << 16) + (val << 8) + val;
11457
- const string$6 = integer$1.toString(16).toUpperCase();
11458
- return "000000".substring(string$6.length) + string$6;
11460
+ const string$7 = integer$1.toString(16).toUpperCase();
11461
+ return "000000".substring(string$7.length) + string$7;
11459
11462
  };
11460
11463
  convert$2.rgb.gray = function(rgb) {
11461
11464
  const val = (rgb[0] + rgb[1] + rgb[2]) / 3;
@@ -11591,11 +11594,11 @@ var require_ansi_styles = __commonJS$2({ "../../node_modules/.pnpm/ansi-styles@4
11591
11594
  g$1,
11592
11595
  b$1
11593
11596
  ];
11594
- const setLazyProperty = (object$1, property, get) => {
11595
- Object.defineProperty(object$1, property, {
11597
+ const setLazyProperty = (object$2, property, get) => {
11598
+ Object.defineProperty(object$2, property, {
11596
11599
  get: () => {
11597
11600
  const value = get();
11598
- Object.defineProperty(object$1, property, {
11601
+ Object.defineProperty(object$2, property, {
11599
11602
  value,
11600
11603
  enumerable: true,
11601
11604
  configurable: true
@@ -11716,7 +11719,7 @@ var require_wrap_ansi = __commonJS$2({ "../../node_modules/.pnpm/wrap-ansi@6.2.0
11716
11719
  const ESCAPES = new Set(["\x1B", "›"]);
11717
11720
  const END_CODE = 39;
11718
11721
  const wrapAnsi$1 = (code$1) => `${ESCAPES.values().next().value}[${code$1}m`;
11719
- const wordLengths = (string$6) => string$6.split(" ").map((character) => stringWidth(character));
11722
+ const wordLengths = (string$7) => string$7.split(" ").map((character) => stringWidth(character));
11720
11723
  const wrapWord = (rows, word, columns) => {
11721
11724
  const characters = [...word];
11722
11725
  let isInsideEscape = false;
@@ -11752,14 +11755,14 @@ var require_wrap_ansi = __commonJS$2({ "../../node_modules/.pnpm/wrap-ansi@6.2.0
11752
11755
  if (last$1 === words.length) return str;
11753
11756
  return words.slice(0, last$1).join(" ") + words.slice(last$1).join("");
11754
11757
  };
11755
- const exec = (string$6, columns, options$1 = {}) => {
11756
- if (options$1.trim !== false && string$6.trim() === "") return "";
11758
+ const exec = (string$7, columns, options$1 = {}) => {
11759
+ if (options$1.trim !== false && string$7.trim() === "") return "";
11757
11760
  let pre = "";
11758
11761
  let ret = "";
11759
11762
  let escapeCode;
11760
- const lengths = wordLengths(string$6);
11763
+ const lengths = wordLengths(string$7);
11761
11764
  let rows = [""];
11762
- for (const [index$1, word] of string$6.split(" ").entries()) {
11765
+ for (const [index$1, word] of string$7.split(" ").entries()) {
11763
11766
  if (options$1.trim !== false) rows[rows.length - 1] = rows[rows.length - 1].trimLeft();
11764
11767
  let rowLength = stringWidth(rows[rows.length - 1]);
11765
11768
  if (index$1 !== 0) {
@@ -11809,8 +11812,8 @@ var require_wrap_ansi = __commonJS$2({ "../../node_modules/.pnpm/wrap-ansi@6.2.0
11809
11812
  }
11810
11813
  return ret;
11811
11814
  };
11812
- module.exports = (string$6, columns, options$1) => {
11813
- return String(string$6).normalize().replace(/\r\n/g, "\n").split("\n").map((line$2) => exec(line$2, columns, options$1)).join("\n");
11815
+ module.exports = (string$7, columns, options$1) => {
11816
+ return String(string$7).normalize().replace(/\r\n/g, "\n").split("\n").map((line$2) => exec(line$2, columns, options$1)).join("\n");
11814
11817
  };
11815
11818
  } });
11816
11819
 
@@ -13411,9 +13414,9 @@ var require_to_regex_range$1 = __commonJS$2({ "../../node_modules/.pnpm/to-regex
13411
13414
  function filterPatterns(arr, comparison, prefix, intersection$1, options$1) {
13412
13415
  let result = [];
13413
13416
  for (let ele of arr) {
13414
- let { string: string$6 } = ele;
13415
- if (!intersection$1 && !contains(comparison, "string", string$6)) result.push(prefix + string$6);
13416
- if (intersection$1 && contains(comparison, "string", string$6)) result.push(prefix + string$6);
13417
+ let { string: string$7 } = ele;
13418
+ if (!intersection$1 && !contains(comparison, "string", string$7)) result.push(prefix + string$7);
13419
+ if (intersection$1 && contains(comparison, "string", string$7)) result.push(prefix + string$7);
13417
13420
  }
13418
13421
  return result;
13419
13422
  }
@@ -16609,8 +16612,8 @@ var require_string$1 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3/
16609
16612
  var require_utils$2 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.js"(exports) {
16610
16613
  Object.defineProperty(exports, "__esModule", { value: true });
16611
16614
  exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = void 0;
16612
- const array$2 = require_array$1();
16613
- exports.array = array$2;
16615
+ const array$3 = require_array$1();
16616
+ exports.array = array$3;
16614
16617
  const errno = require_errno$1();
16615
16618
  exports.errno = errno;
16616
16619
  const fs$8 = require_fs$4();
@@ -16621,8 +16624,8 @@ var require_utils$2 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3/n
16621
16624
  exports.pattern = pattern;
16622
16625
  const stream = require_stream$4();
16623
16626
  exports.stream = stream;
16624
- const string$5 = require_string$1();
16625
- exports.string = string$5;
16627
+ const string$6 = require_string$1();
16628
+ exports.string = string$6;
16626
16629
  } });
16627
16630
 
16628
16631
  //#endregion
@@ -23375,16 +23378,16 @@ var VALID_OBJECT_DOC_TYPES$1 = /* @__PURE__ */ new Set([
23375
23378
  DOC_TYPE_LABEL$1,
23376
23379
  DOC_TYPE_BREAK_PARENT$1
23377
23380
  ]);
23378
- var at$1 = (isOptionalObject, object$1, index$1) => {
23379
- if (isOptionalObject && (object$1 === void 0 || object$1 === null)) return;
23380
- if (Array.isArray(object$1) || typeof object$1 === "string") return object$1[index$1 < 0 ? object$1.length + index$1 : index$1];
23381
- return object$1.at(index$1);
23381
+ var at$1 = (isOptionalObject, object$2, index$1) => {
23382
+ if (isOptionalObject && (object$2 === void 0 || object$2 === null)) return;
23383
+ if (Array.isArray(object$2) || typeof object$2 === "string") return object$2[index$1 < 0 ? object$2.length + index$1 : index$1];
23384
+ return object$2.at(index$1);
23382
23385
  };
23383
23386
  var at_default$1 = at$1;
23384
- function trimNewlinesEnd$1(string$6) {
23385
- let end = string$6.length;
23386
- while (end > 0 && (string$6[end - 1] === "\r" || string$6[end - 1] === "\n")) end--;
23387
- return end < string$6.length ? string$6.slice(0, end) : string$6;
23387
+ function trimNewlinesEnd$1(string$7) {
23388
+ let end = string$7.length;
23389
+ while (end > 0 && (string$7[end - 1] === "\r" || string$7[end - 1] === "\n")) end--;
23390
+ return end < string$7.length ? string$7.slice(0, end) : string$7;
23388
23391
  }
23389
23392
  function getDocType$1(doc) {
23390
23393
  if (typeof doc === "string") return DOC_TYPE_STRING$1;
@@ -24825,9 +24828,9 @@ var require_to_regex_range = __commonJS({ "node_modules/to-regex-range/index.js"
24825
24828
  function filterPatterns$1(arr, comparison, prefix, intersection$1, options8) {
24826
24829
  let result = [];
24827
24830
  for (let ele of arr) {
24828
- let { string: string$6 } = ele;
24829
- if (!intersection$1 && !contains$1(comparison, "string", string$6)) result.push(prefix + string$6);
24830
- if (intersection$1 && contains$1(comparison, "string", string$6)) result.push(prefix + string$6);
24831
+ let { string: string$7 } = ele;
24832
+ if (!intersection$1 && !contains$1(comparison, "string", string$7)) result.push(prefix + string$7);
24833
+ if (intersection$1 && contains$1(comparison, "string", string$7)) result.push(prefix + string$7);
24831
24834
  }
24832
24835
  return result;
24833
24836
  }
@@ -27285,8 +27288,8 @@ var require_utils3 = __commonJS({ "node_modules/fast-glob/out/utils/index.js"(ex
27285
27288
  exports$2.pattern = pattern$1;
27286
27289
  var stream$1 = require_stream();
27287
27290
  exports$2.stream = stream$1;
27288
- var string$6 = require_string();
27289
- exports$2.string = string$6;
27291
+ var string$7 = require_string();
27292
+ exports$2.string = string$7;
27290
27293
  } });
27291
27294
  var require_tasks = __commonJS({ "node_modules/fast-glob/out/managers/tasks.js"(exports$2) {
27292
27295
  "use strict";
@@ -29028,17 +29031,17 @@ var require_picocolors = __commonJS({ "node_modules/picocolors/picocolors.js"(ex
29028
29031
  var env$2 = p$1.env || {};
29029
29032
  var isColorSupported = !(!!env$2.NO_COLOR || argv.includes("--no-color")) && (!!env$2.FORCE_COLOR || argv.includes("--color") || p$1.platform === "win32" || (p$1.stdout || {}).isTTY && env$2.TERM !== "dumb" || !!env$2.CI);
29030
29033
  var formatter = (open, close, replace = open) => (input) => {
29031
- let string$6 = "" + input, index$1 = string$6.indexOf(close, open.length);
29032
- return ~index$1 ? open + replaceClose(string$6, close, replace, index$1) + close : open + string$6 + close;
29034
+ let string$7 = "" + input, index$1 = string$7.indexOf(close, open.length);
29035
+ return ~index$1 ? open + replaceClose(string$7, close, replace, index$1) + close : open + string$7 + close;
29033
29036
  };
29034
- var replaceClose = (string$6, close, replace, index$1) => {
29037
+ var replaceClose = (string$7, close, replace, index$1) => {
29035
29038
  let result = "", cursor2 = 0;
29036
29039
  do {
29037
- result += string$6.substring(cursor2, index$1) + replace;
29040
+ result += string$7.substring(cursor2, index$1) + replace;
29038
29041
  cursor2 = index$1 + close.length;
29039
- index$1 = string$6.indexOf(close, cursor2);
29042
+ index$1 = string$7.indexOf(close, cursor2);
29040
29043
  } while (~index$1);
29041
- return result + string$6.substring(cursor2);
29044
+ return result + string$7.substring(cursor2);
29042
29045
  };
29043
29046
  var createColors = (enabled$1 = isColorSupported) => {
29044
29047
  let f$1 = enabled$1 ? formatter : () => String;
@@ -32348,11 +32351,11 @@ var require_lib2 = __commonJS({ "node_modules/@babel/code-frame/lib/index.js"(ex
32348
32351
  const numberMaxWidth = String(end).length;
32349
32352
  const highlightedLines = shouldHighlight ? highlight(rawLines) : rawLines;
32350
32353
  let frame = highlightedLines.split(NEWLINE, end).slice(start, end).map((line3, index2) => {
32351
- const number$3 = start + 1 + index2;
32352
- const paddedNumber = ` ${number$3}`.slice(-numberMaxWidth);
32354
+ const number$4 = start + 1 + index2;
32355
+ const paddedNumber = ` ${number$4}`.slice(-numberMaxWidth);
32353
32356
  const gutter = ` ${paddedNumber} |`;
32354
- const hasMarker = markerLines[number$3];
32355
- const lastMarkerLine = !markerLines[number$3 + 1];
32357
+ const hasMarker = markerLines[number$4];
32358
+ const lastMarkerLine = !markerLines[number$4 + 1];
32356
32359
  if (hasMarker) {
32357
32360
  let markerLine = "";
32358
32361
  if (Array.isArray(hasMarker)) {
@@ -32516,8 +32519,8 @@ var require_ignore = __commonJS({ "node_modules/ignore/index.js"(exports$2, modu
32516
32519
  var TMP_KEY_IGNORE$1 = "node-ignore";
32517
32520
  if (typeof Symbol !== "undefined") TMP_KEY_IGNORE$1 = Symbol.for("node-ignore");
32518
32521
  var KEY_IGNORE$1 = TMP_KEY_IGNORE$1;
32519
- var define$1 = (object$1, key2, value) => {
32520
- Object.defineProperty(object$1, key2, { value });
32522
+ var define$1 = (object$2, key2, value) => {
32523
+ Object.defineProperty(object$2, key2, { value });
32521
32524
  return value;
32522
32525
  };
32523
32526
  var REGEX_REGEXP_RANGE$1 = /([0-z])-([0-z])/g;
@@ -33090,7 +33093,7 @@ function splitLines(text$2) {
33090
33093
  return result;
33091
33094
  }
33092
33095
  var import_fast_glob = __toESM(require_out4(), 1);
33093
- var array$1 = [];
33096
+ var array$2 = [];
33094
33097
  var characterCodeCache = [];
33095
33098
  function leven(first$1, second) {
33096
33099
  if (first$1 === second) return 0;
@@ -33118,7 +33121,7 @@ function leven(first$1, second) {
33118
33121
  let index2 = 0;
33119
33122
  while (index$1 < firstLength) {
33120
33123
  characterCodeCache[index$1] = first$1.charCodeAt(start + index$1);
33121
- array$1[index$1] = ++index$1;
33124
+ array$2[index$1] = ++index$1;
33122
33125
  }
33123
33126
  while (index2 < secondLength) {
33124
33127
  bCharacterCode = second.charCodeAt(start + index2);
@@ -33126,8 +33129,8 @@ function leven(first$1, second) {
33126
33129
  result = index2;
33127
33130
  for (index$1 = 0; index$1 < firstLength; index$1++) {
33128
33131
  temporary2 = bCharacterCode === characterCodeCache[index$1] ? temporary : temporary + 1;
33129
- temporary = array$1[index$1];
33130
- result = array$1[index$1] = temporary > result ? temporary2 > result ? result + 1 : temporary2 : temporary2 > temporary ? temporary + 1 : temporary2;
33132
+ temporary = array$2[index$1];
33133
+ result = array$2[index$1] = temporary > result ? temporary2 > result ? result + 1 : temporary2 : temporary2 > temporary ? temporary + 1 : temporary2;
33131
33134
  }
33132
33135
  }
33133
33136
  return result;
@@ -33517,7 +33520,7 @@ var defaultInvalidHandler = commonInvalidHandler;
33517
33520
  var defaultDeprecatedHandler = commonDeprecatedHandler;
33518
33521
  var Normalizer = class {
33519
33522
  constructor(schemas, opts) {
33520
- const { logger: logger$1 = console, loggerPrintWidth = 80, descriptor = defaultDescriptor, unknown: unknown$1 = defaultUnknownHandler, invalid = defaultInvalidHandler, deprecated: deprecated$1 = defaultDeprecatedHandler, missing = () => false, required: required$1 = () => false, preprocess: preprocess$2 = (x$1) => x$1, postprocess: postprocess$1 = () => VALUE_UNCHANGED } = opts || {};
33523
+ const { logger: logger$1 = console, loggerPrintWidth = 80, descriptor = defaultDescriptor, unknown: unknown$2 = defaultUnknownHandler, invalid = defaultInvalidHandler, deprecated: deprecated$1 = defaultDeprecatedHandler, missing = () => false, required: required$1 = () => false, preprocess: preprocess$2 = (x$1) => x$1, postprocess: postprocess$1 = () => VALUE_UNCHANGED } = opts || {};
33521
33524
  this._utils = {
33522
33525
  descriptor,
33523
33526
  logger: logger$1 || { warn: () => {} },
@@ -33530,7 +33533,7 @@ var Normalizer = class {
33530
33533
  normalizeRedirectResult,
33531
33534
  normalizeValidateResult
33532
33535
  };
33533
- this._unknownHandler = unknown$1;
33536
+ this._unknownHandler = unknown$2;
33534
33537
  this._invalidHandler = normalizeInvalidHandler(invalid);
33535
33538
  this._deprecatedHandler = deprecated$1;
33536
33539
  this._identifyMissing = (k$1, o$1) => !(k$1 in o$1) || missing(k$1, o$1);
@@ -34748,7 +34751,7 @@ getCodeFrame_fn = function(highlightCode) {
34748
34751
  return (0, import_code_frame.codeFrameColumns)(input, { start: location }, { highlightCode });
34749
34752
  };
34750
34753
  var JSONError = _JSONError;
34751
- var getErrorLocation = (string$6, message) => {
34754
+ var getErrorLocation = (string$7, message) => {
34752
34755
  const match = message.match(/in JSON at position (?<index>\d+)(?: \(line (?<line>\d+) column (?<column>\d+)\))?$/);
34753
34756
  if (!match) return;
34754
34757
  const { index: index$1, line: line3, column: column2 } = match.groups;
@@ -34756,30 +34759,30 @@ var getErrorLocation = (string$6, message) => {
34756
34759
  line: Number(line3),
34757
34760
  column: Number(column2)
34758
34761
  };
34759
- return indexToPosition(string$6, Number(index$1), { oneBased: true });
34762
+ return indexToPosition(string$7, Number(index$1), { oneBased: true });
34760
34763
  };
34761
34764
  var addCodePointToUnexpectedToken = (message) => message.replace(/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/, (_$1, _quote, token2) => `"${token2}"(${getCodePoint(token2)})`);
34762
- function parseJson(string$6, reviver, fileName) {
34765
+ function parseJson(string$7, reviver, fileName) {
34763
34766
  if (typeof reviver === "string") {
34764
34767
  fileName = reviver;
34765
34768
  reviver = void 0;
34766
34769
  }
34767
34770
  try {
34768
- return JSON.parse(string$6, reviver);
34771
+ return JSON.parse(string$7, reviver);
34769
34772
  } catch (error$41) {
34770
34773
  throw new JSONError({
34771
34774
  jsonParseError: error$41,
34772
34775
  fileName,
34773
- input: string$6
34776
+ input: string$7
34774
34777
  });
34775
34778
  }
34776
34779
  }
34777
- function getLineColFromPtr(string$6, ptr) {
34778
- let lines = string$6.slice(0, ptr).split(/\r\n|\n|\r/g);
34780
+ function getLineColFromPtr(string$7, ptr) {
34781
+ let lines = string$7.slice(0, ptr).split(/\r\n|\n|\r/g);
34779
34782
  return [lines.length, lines.pop().length + 1];
34780
34783
  }
34781
- function makeCodeBlock(string$6, line3, column2) {
34782
- let lines = string$6.split(/\r\n|\n|\r/g);
34784
+ function makeCodeBlock(string$7, line3, column2) {
34785
+ let lines = string$7.split(/\r\n|\n|\r/g);
34783
34786
  let codeblock = "";
34784
34787
  let numberLen = (Math.log10(line3 + 1) | 0) + 1;
34785
34788
  for (let i$2 = line3 - 1; i$2 <= line3 + 1; i$2++) {
@@ -35766,9 +35769,9 @@ var cache = /* @__PURE__ */ new Map();
35766
35769
  function read2(jsonPath, { base, specifier }) {
35767
35770
  const existing = cache.get(jsonPath);
35768
35771
  if (existing) return existing;
35769
- let string$6;
35772
+ let string$7;
35770
35773
  try {
35771
- string$6 = fs3.readFileSync(path10.toNamespacedPath(jsonPath), "utf8");
35774
+ string$7 = fs3.readFileSync(path10.toNamespacedPath(jsonPath), "utf8");
35772
35775
  } catch (error$41) {
35773
35776
  const exception = error$41;
35774
35777
  if (exception.code !== "ENOENT") throw exception;
@@ -35782,10 +35785,10 @@ function read2(jsonPath, { base, specifier }) {
35782
35785
  exports: void 0,
35783
35786
  imports: void 0
35784
35787
  };
35785
- if (string$6 !== void 0) {
35788
+ if (string$7 !== void 0) {
35786
35789
  let parsed;
35787
35790
  try {
35788
- parsed = JSON.parse(string$6);
35791
+ parsed = JSON.parse(string$7);
35789
35792
  } catch (error_) {
35790
35793
  const cause = error_;
35791
35794
  const error$41 = new ERR_INVALID_PACKAGE_CONFIG(jsonPath, (base ? `"${specifier}" from ` : "") + fileURLToPath$1(base || specifier), cause.message);
@@ -36579,16 +36582,16 @@ var VALID_OBJECT_DOC_TYPES = /* @__PURE__ */ new Set([
36579
36582
  DOC_TYPE_LABEL,
36580
36583
  DOC_TYPE_BREAK_PARENT
36581
36584
  ]);
36582
- var at = (isOptionalObject, object$1, index$1) => {
36583
- if (isOptionalObject && (object$1 === void 0 || object$1 === null)) return;
36584
- if (Array.isArray(object$1) || typeof object$1 === "string") return object$1[index$1 < 0 ? object$1.length + index$1 : index$1];
36585
- return object$1.at(index$1);
36585
+ var at = (isOptionalObject, object$2, index$1) => {
36586
+ if (isOptionalObject && (object$2 === void 0 || object$2 === null)) return;
36587
+ if (Array.isArray(object$2) || typeof object$2 === "string") return object$2[index$1 < 0 ? object$2.length + index$1 : index$1];
36588
+ return object$2.at(index$1);
36586
36589
  };
36587
36590
  var at_default = at;
36588
- function trimNewlinesEnd(string$6) {
36589
- let end = string$6.length;
36590
- while (end > 0 && (string$6[end - 1] === "\r" || string$6[end - 1] === "\n")) end--;
36591
- return end < string$6.length ? string$6.slice(0, end) : string$6;
36591
+ function trimNewlinesEnd(string$7) {
36592
+ let end = string$7.length;
36593
+ while (end > 0 && (string$7[end - 1] === "\r" || string$7[end - 1] === "\n")) end--;
36594
+ return end < string$7.length ? string$7.slice(0, end) : string$7;
36592
36595
  }
36593
36596
  function getDocType(doc2) {
36594
36597
  if (typeof doc2 === "string") return DOC_TYPE_STRING;
@@ -37612,13 +37615,13 @@ var AstPath = class {
37612
37615
  let node$1 = this.stack[stackPointer--];
37613
37616
  for (const predicate of predicates) {
37614
37617
  if (node$1 === void 0) return false;
37615
- let number$3 = null;
37618
+ let number$4 = null;
37616
37619
  if (typeof name$1 === "number") {
37617
- number$3 = name$1;
37620
+ number$4 = name$1;
37618
37621
  name$1 = this.stack[stackPointer--];
37619
37622
  node$1 = this.stack[stackPointer--];
37620
37623
  }
37621
- if (predicate && !predicate(node$1, name$1, number$3)) return false;
37624
+ if (predicate && !predicate(node$1, name$1, number$4)) return false;
37622
37625
  name$1 = this.stack[stackPointer--];
37623
37626
  node$1 = this.stack[stackPointer--];
37624
37627
  }
@@ -37661,8 +37664,8 @@ getAncestors_fn = function* () {
37661
37664
  }
37662
37665
  };
37663
37666
  var ast_path_default = AstPath;
37664
- function isObject$1(object$1) {
37665
- return object$1 !== null && typeof object$1 === "object";
37667
+ function isObject$1(object$2) {
37668
+ return object$2 !== null && typeof object$2 === "object";
37666
37669
  }
37667
37670
  var is_object_default = isObject$1;
37668
37671
  function* getChildren(node$1, options8) {
@@ -37729,8 +37732,8 @@ function hasNewline(text$2, startIndex, options8 = {}) {
37729
37732
  return idx !== idx2;
37730
37733
  }
37731
37734
  var has_newline_default = hasNewline;
37732
- function isNonEmptyArray(object$1) {
37733
- return Array.isArray(object$1) && object$1.length > 0;
37735
+ function isNonEmptyArray(object$2) {
37736
+ return Array.isArray(object$2) && object$2.length > 0;
37734
37737
  }
37735
37738
  var is_non_empty_array_default = isNonEmptyArray;
37736
37739
  var nonTraversableKeys = /* @__PURE__ */ new Set([
@@ -38401,7 +38404,7 @@ function normalizeOptions(options8, optionInfos, { logger: logger$1 = false, isC
38401
38404
  if (!FlagSchema) throw new Error("'FlagSchema' option is required.");
38402
38405
  if (!descriptor) throw new Error("'descriptor' option is required.");
38403
38406
  } else descriptor = apiDescriptor;
38404
- const unknown$1 = !passThrough ? (key2, value, options9) => {
38407
+ const unknown$2 = !passThrough ? (key2, value, options9) => {
38405
38408
  const { _: _$1,...schemas2 } = options9.schemas;
38406
38409
  return levenUnknownHandler(key2, value, {
38407
38410
  ...options9,
@@ -38414,7 +38417,7 @@ function normalizeOptions(options8, optionInfos, { logger: logger$1 = false, isC
38414
38417
  });
38415
38418
  const normalizer = new Normalizer(schemas, {
38416
38419
  logger: logger$1,
38417
- unknown: unknown$1,
38420
+ unknown: unknown$2,
38418
38421
  descriptor
38419
38422
  });
38420
38423
  const shouldSuppressDuplicateDeprecationWarnings = logger$1 !== false;
@@ -40097,9 +40100,9 @@ async function isIgnored(file$1, options8) {
40097
40100
  const isIgnored2 = await createIsIgnoredFunction(ignoreFiles, withNodeModules);
40098
40101
  return isIgnored2(file$1);
40099
40102
  }
40100
- function omit$1(object$1, keys) {
40103
+ function omit$1(object$2, keys) {
40101
40104
  keys = new Set(keys);
40102
- return Object.fromEntries(Object.entries(object$1).filter(([key2]) => !keys.has(key2)));
40105
+ return Object.fromEntries(Object.entries(object$2).filter(([key2]) => !keys.has(key2)));
40103
40106
  }
40104
40107
  var object_omit_default = omit$1;
40105
40108
  async function getFileInfo(file$1, options8 = {}) {
@@ -40202,9 +40205,9 @@ function getIndentSize(value, tabWidth) {
40202
40205
  return get_alignment_size_default(value.slice(lastNewlineIndex + 1).match(/^[\t ]*/u)[0], tabWidth);
40203
40206
  }
40204
40207
  var get_indent_size_default = getIndentSize;
40205
- function escapeStringRegexp(string$6) {
40206
- if (typeof string$6 !== "string") throw new TypeError("Expected a string");
40207
- return string$6.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
40208
+ function escapeStringRegexp(string$7) {
40209
+ if (typeof string$7 !== "string") throw new TypeError("Expected a string");
40210
+ return string$7.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
40208
40211
  }
40209
40212
  function getMaxContinuousCount(text$2, searchString) {
40210
40213
  const results = text$2.match(new RegExp(`(${escapeStringRegexp(searchString)})+`, "gu"));
@@ -40656,7 +40659,7 @@ const $ = {
40656
40659
  matched: !1,
40657
40660
  value: void 0
40658
40661
  };
40659
- function z$1(t$1) {
40662
+ function z(t$1) {
40660
40663
  return new I(t$1, $);
40661
40664
  }
40662
40665
  var I = class I {
@@ -40710,7 +40713,7 @@ const logger = {
40710
40713
  warn: (message) => console.log(yellow("[WARN]"), message),
40711
40714
  error: (message) => console.error(red("[ERROR]"), message),
40712
40715
  file: (filePath) => magenta(filePath),
40713
- mode: (mode) => z$1(mode).with("add", () => green("❇️")).with("modify", () => yellow("✏️")).with("delete", () => red("❌")).with("rename", () => red("🔄")).with("rename+modify", () => red("🔀")).exhaustive(),
40716
+ mode: (mode) => z(mode).with("add", () => green("❇️")).with("modify", () => yellow("✏️")).with("delete", () => red("❌")).with("rename", () => red("🔄")).with("rename+modify", () => red("🔀")).exhaustive(),
40714
40717
  commitMessage: (title, detail) => {
40715
40718
  return [
40716
40719
  underline(bold(title)),
@@ -40761,7 +40764,7 @@ async function applyChanges(files$1, format$2) {
40761
40764
  await fsp$1.writeFile(filepath, contentToWrite, "utf-8");
40762
40765
  };
40763
40766
  try {
40764
- await z$1(file$1.mode).with("add", "modify", async () => {
40767
+ await z(file$1.mode).with("add", "modify", async () => {
40765
40768
  const dirName = path.dirname(file$1.fullSourcePath);
40766
40769
  await fsp$1.mkdir(dirName, { recursive: true });
40767
40770
  await writeFile$2();
@@ -41731,32 +41734,32 @@ function generateFileTree(files$1, expandDirectories = true) {
41731
41734
  //#region ../dev/dist/gen-prompt/replacers/params-to-globby-options.js
41732
41735
  const paramsToGlobbyOptions = (params, defaults$4 = {}) => {
41733
41736
  const opts = {
41734
- expandDirectories: z$1(params.expandDirectories).with(N.boolean, (v$1) => v$1).with(N.array(N.string), (v$1) => v$1).with({
41737
+ expandDirectories: z(params.expandDirectories).with(N.boolean, (v$1) => v$1).with(N.array(N.string), (v$1) => v$1).with({
41735
41738
  files: N.array(N.string).optional(),
41736
41739
  extensions: N.array(N.string).optional()
41737
41740
  }, (v$1) => v$1).otherwise(() => defaults$4.expandDirectories),
41738
- gitignore: z$1(params.gitignore).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.gitignore),
41739
- ignore: z$1(params.ignore).with(N.string, (v$1) => [v$1]).with(N.array(N.string), (v$1) => v$1).otherwise(() => defaults$4.ignore),
41740
- ignoreFiles: z$1(params.ignoreFiles).with(N.string, N.array(N.string), (v$1) => v$1).otherwise(() => defaults$4.ignoreFiles),
41741
- cwd: z$1(params.cwd).with(N.string, (v$1) => v$1).otherwise(() => defaults$4.cwd),
41742
- absolute: z$1(params.absolute).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.absolute),
41743
- baseNameMatch: z$1(params.baseNameMatch).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.baseNameMatch),
41744
- braceExpansion: z$1(params.braceExpansion).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.braceExpansion),
41745
- caseSensitiveMatch: z$1(params.caseSensitiveMatch).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.caseSensitiveMatch),
41746
- concurrency: z$1(params.concurrency).with(N.number, (v$1) => v$1).otherwise(() => defaults$4.concurrency),
41747
- deep: z$1(params.deep).with(N.number, (v$1) => v$1).otherwise(() => defaults$4.deep),
41748
- dot: z$1(params.dot).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.dot),
41749
- extglob: z$1(params.extglob).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.extglob),
41750
- followSymbolicLinks: z$1(params.followSymbolicLinks).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.followSymbolicLinks),
41751
- globstar: z$1(params.globstar).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.globstar),
41752
- markDirectories: z$1(params.markDirectories).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.markDirectories),
41753
- objectMode: z$1(params.objectMode).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.objectMode),
41754
- onlyDirectories: z$1(params.onlyDirectories).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.onlyDirectories),
41755
- onlyFiles: z$1(params.onlyFiles).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.onlyFiles),
41756
- stats: z$1(params.stats).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.stats),
41757
- suppressErrors: z$1(params.suppressErrors).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.suppressErrors),
41758
- throwErrorOnBrokenSymbolicLink: z$1(params.throwErrorOnBrokenSymbolicLink).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.throwErrorOnBrokenSymbolicLink),
41759
- unique: z$1(params.unique).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.unique)
41741
+ gitignore: z(params.gitignore).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.gitignore),
41742
+ ignore: z(params.ignore).with(N.string, (v$1) => [v$1]).with(N.array(N.string), (v$1) => v$1).otherwise(() => defaults$4.ignore),
41743
+ ignoreFiles: z(params.ignoreFiles).with(N.string, N.array(N.string), (v$1) => v$1).otherwise(() => defaults$4.ignoreFiles),
41744
+ cwd: z(params.cwd).with(N.string, (v$1) => v$1).otherwise(() => defaults$4.cwd),
41745
+ absolute: z(params.absolute).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.absolute),
41746
+ baseNameMatch: z(params.baseNameMatch).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.baseNameMatch),
41747
+ braceExpansion: z(params.braceExpansion).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.braceExpansion),
41748
+ caseSensitiveMatch: z(params.caseSensitiveMatch).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.caseSensitiveMatch),
41749
+ concurrency: z(params.concurrency).with(N.number, (v$1) => v$1).otherwise(() => defaults$4.concurrency),
41750
+ deep: z(params.deep).with(N.number, (v$1) => v$1).otherwise(() => defaults$4.deep),
41751
+ dot: z(params.dot).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.dot),
41752
+ extglob: z(params.extglob).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.extglob),
41753
+ followSymbolicLinks: z(params.followSymbolicLinks).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.followSymbolicLinks),
41754
+ globstar: z(params.globstar).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.globstar),
41755
+ markDirectories: z(params.markDirectories).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.markDirectories),
41756
+ objectMode: z(params.objectMode).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.objectMode),
41757
+ onlyDirectories: z(params.onlyDirectories).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.onlyDirectories),
41758
+ onlyFiles: z(params.onlyFiles).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.onlyFiles),
41759
+ stats: z(params.stats).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.stats),
41760
+ suppressErrors: z(params.suppressErrors).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.suppressErrors),
41761
+ throwErrorOnBrokenSymbolicLink: z(params.throwErrorOnBrokenSymbolicLink).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.throwErrorOnBrokenSymbolicLink),
41762
+ unique: z(params.unique).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.unique)
41760
41763
  };
41761
41764
  return structuredClone(opts);
41762
41765
  };
@@ -41771,12 +41774,12 @@ const GET_JIXO_PROMPT = func_remember(() => readJson(assetsResolver("prompt.json
41771
41774
  */
41772
41775
  function useFileOrInject$1(mode, filepath, filecontent, opts = {}) {
41773
41776
  const lines = [];
41774
- const prefixStr = z$1(opts.prefix).with(N.number, (len) => " ".repeat(len)).with(N.string, (str) => str).otherwise(() => "");
41777
+ const prefixStr = z(opts.prefix).with(N.number, (len) => " ".repeat(len)).with(N.string, (str) => str).otherwise(() => "");
41775
41778
  const contentLines = prefixStr.length ? filecontent.split("\n").map((line$2) => prefixStr + line$2) : [filecontent];
41776
41779
  if (mode === "FILE") {
41777
41780
  const split = filecontent.includes("```") ? "````" : "```";
41778
41781
  const ext = path.parse(filepath).ext.slice(1);
41779
- lines.push(`${prefixStr}\`${filepath}\``, "", prefixStr + split + z$1(opts.lang).with(N.string, (v$1) => v$1).otherwise(() => ext), ...contentLines, prefixStr + split, "");
41782
+ lines.push(`${prefixStr}\`${filepath}\``, "", prefixStr + split + z(opts.lang).with(N.string, (v$1) => v$1).otherwise(() => ext), ...contentLines, prefixStr + split, "");
41780
41783
  } else if (mode === "INJECT") lines.push(...contentLines);
41781
41784
  else lines.push(`<!-- unknown mode ${mode} -->`);
41782
41785
  return lines.join("\n");
@@ -42161,7 +42164,7 @@ async function gitWorkingDiffs(repoPath, options$1) {
42161
42164
  //#endregion
42162
42165
  //#region ../dev/dist/git-helper/types.js
42163
42166
  const humanfiyedGitFileStatus = (status) => {
42164
- return z$1(status).with("A", () => "Added").with("M", () => "Modified").with("D", () => "Deleted").with("R", () => "Renamed").with("U", () => "Unmerged").with("T", () => "Type Changed").otherwise((v$1) => v$1);
42167
+ return z(status).with("A", () => "Added").with("M", () => "Modified").with("D", () => "Deleted").with("R", () => "Renamed").with("U", () => "Unmerged").with("T", () => "Type Changed").otherwise((v$1) => v$1);
42165
42168
  };
42166
42169
 
42167
42170
  //#endregion
@@ -42169,13 +42172,13 @@ const humanfiyedGitFileStatus = (status) => {
42169
42172
  var import_micromatch = __toESM$1(require_micromatch$1(), 1);
42170
42173
  function useFileOrInject(mode, filepath, filecontent, opts = {}) {
42171
42174
  const lines = [];
42172
- const prefixStr = z$1(opts.prefix).with(N.number, (len) => " ".repeat(len)).with(N.string, (str) => str).otherwise(() => "");
42175
+ const prefixStr = z(opts.prefix).with(N.number, (len) => " ".repeat(len)).with(N.string, (str) => str).otherwise(() => "");
42173
42176
  const contentLines = (filecontent$1) => prefixStr.length ? filecontent$1.split("\n").map((line$2) => prefixStr + line$2) : [filecontent$1];
42174
42177
  if (mode === "FILE") {
42175
42178
  const split = filecontent?.includes("```") ? "````" : "```";
42176
42179
  const ext = path.parse(filepath).ext.slice(1);
42177
42180
  lines.push(`${prefixStr}\`${filepath}\``, "");
42178
- if (filecontent) lines.push(prefixStr + split + z$1(opts.lang).with(N.string, (v$1) => v$1).otherwise(() => ext), ...contentLines(filecontent), prefixStr + split, "");
42181
+ if (filecontent) lines.push(prefixStr + split + z(opts.lang).with(N.string, (v$1) => v$1).otherwise(() => ext), ...contentLines(filecontent), prefixStr + split, "");
42179
42182
  } else if (mode === "INJECT") {
42180
42183
  if (filecontent) lines.push(...contentLines(filecontent));
42181
42184
  } else lines.push(`<!-- unknown mode ${mode} -->`);
@@ -50694,7 +50697,7 @@ function initializeFlow(effects) {
50694
50697
  * } from 'micromark-util-types'
50695
50698
  */
50696
50699
  const resolver = { resolveAll: createResolver$1() };
50697
- const string$3 = initializeFactory("string");
50700
+ const string$4 = initializeFactory("string");
50698
50701
  const text = initializeFactory("text");
50699
50702
  /**
50700
50703
  * @param {'string' | 'text'} field
@@ -50870,7 +50873,7 @@ __export$4(constructs_exports, {
50870
50873
  flow: () => flow$1,
50871
50874
  flowInitial: () => flowInitial,
50872
50875
  insideSpan: () => insideSpan,
50873
- string: () => string$4,
50876
+ string: () => string$5,
50874
50877
  text: () => text$1
50875
50878
  });
50876
50879
  /** @satisfies {Extension['document']} */
@@ -50910,7 +50913,7 @@ const flow$1 = {
50910
50913
  [126]: codeFenced
50911
50914
  };
50912
50915
  /** @satisfies {Extension['string']} */
50913
- const string$4 = {
50916
+ const string$5 = {
50914
50917
  [38]: characterReference,
50915
50918
  [92]: characterEscape
50916
50919
  };
@@ -51407,7 +51410,7 @@ function parse$2(options$1) {
51407
51410
  document: create(document$1),
51408
51411
  flow: create(flow),
51409
51412
  lazy: {},
51410
- string: create(string$3),
51413
+ string: create(string$4),
51411
51414
  text: create(text)
51412
51415
  };
51413
51416
  return parser$2;
@@ -52285,10 +52288,10 @@ function compiler(options$1) {
52285
52288
  * @type {Handle}
52286
52289
  */
52287
52290
  function onexitlabeltext(token$1) {
52288
- const string$6 = this.sliceSerialize(token$1);
52291
+ const string$7 = this.sliceSerialize(token$1);
52289
52292
  const ancestor = this.stack[this.stack.length - 2];
52290
- ancestor.label = decodeString(string$6);
52291
- ancestor.identifier = normalizeIdentifier(string$6).toLowerCase();
52293
+ ancestor.label = decodeString(string$7);
52294
+ ancestor.identifier = normalizeIdentifier(string$7).toLowerCase();
52292
52295
  }
52293
52296
  /**
52294
52297
  * @this {CompileContext}
@@ -52986,8 +52989,8 @@ async function gen_prompt(input, once$1, _output, cwd) {
52986
52989
  const inputSource = getFileState(input, once$1).get();
52987
52990
  let { data: inputData, content: inputContent } = (0, import_gray_matter.default)(inputSource);
52988
52991
  inputContent = removeMarkdownComments(inputContent).trim();
52989
- const currentRootResolver = z$1(cwd).with(N.string, (c$2) => createResolver(c$2)).otherwise(() => z$1(inputData.cwd).with(N.when((p$1) => p$1 && path.isAbsolute(p$1)), (p$1) => createResolver(p$1)).with(N.string, (p$1) => createResolver(path.resolve(path.dirname(input), p$1))).otherwise(() => createResolverByRootFile(input, ".git", () => path.dirname(input))));
52990
- const output = currentRootResolver(_output ?? z$1(inputData.output).with(N.string, (v$1) => v$1).otherwise(() => input.replace(/\.md$/, ".gen.md")));
52992
+ const currentRootResolver = z(cwd).with(N.string, (c$2) => createResolver(c$2)).otherwise(() => z(inputData.cwd).with(N.when((p$1) => p$1 && path.isAbsolute(p$1)), (p$1) => createResolver(p$1)).with(N.string, (p$1) => createResolver(path.resolve(path.dirname(input), p$1))).otherwise(() => createResolverByRootFile(input, ".git", () => path.dirname(input))));
52993
+ const output = currentRootResolver(_output ?? z(inputData.output).with(N.string, (v$1) => v$1).otherwise(() => input.replace(/\.md$/, ".gen.md")));
52991
52994
  const regex$1 = /\[(.+?)\]\(@([\w-_:]+)(\?.+)?\)/g;
52992
52995
  const matches = [...inputContent.matchAll(regex$1)];
52993
52996
  const replacementPromises = matches.map((match) => {
@@ -53197,8 +53200,8 @@ function getEnumValues(entries) {
53197
53200
  const values = Object.entries(entries).filter(([k$1, _$1]) => numericValues.indexOf(+k$1) === -1).map(([_$1, v$1]) => v$1);
53198
53201
  return values;
53199
53202
  }
53200
- function joinValues(array$3, separator = "|") {
53201
- return array$3.map((val) => stringifyPrimitive(val)).join(separator);
53203
+ function joinValues(array$4, separator = "|") {
53204
+ return array$4.map((val) => stringifyPrimitive(val)).join(separator);
53202
53205
  }
53203
53206
  function jsonStringifyReplacer(_$1, value) {
53204
53207
  if (typeof value === "bigint") return value.toString();
@@ -53230,18 +53233,18 @@ function floatSafeRemainder(val, step) {
53230
53233
  const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
53231
53234
  return valInt % stepInt / 10 ** decCount;
53232
53235
  }
53233
- function defineLazy(object$1, key$1, getter) {
53236
+ function defineLazy(object$2, key$1, getter) {
53234
53237
  const set$1 = false;
53235
- Object.defineProperty(object$1, key$1, {
53238
+ Object.defineProperty(object$2, key$1, {
53236
53239
  get() {
53237
53240
  {
53238
53241
  const value = getter();
53239
- object$1[key$1] = value;
53242
+ object$2[key$1] = value;
53240
53243
  return value;
53241
53244
  }
53242
53245
  },
53243
53246
  set(v$1) {
53244
- Object.defineProperty(object$1, key$1, { value: v$1 });
53247
+ Object.defineProperty(object$2, key$1, { value: v$1 });
53245
53248
  },
53246
53249
  configurable: true
53247
53250
  });
@@ -53828,7 +53831,7 @@ __export$4(regexes_exports, {
53828
53831
  base64: () => base64$1,
53829
53832
  base64url: () => base64url$1,
53830
53833
  bigint: () => bigint$2,
53831
- boolean: () => boolean$2,
53834
+ boolean: () => boolean$3,
53832
53835
  browserEmail: () => browserEmail,
53833
53836
  cidrv4: () => cidrv4$1,
53834
53837
  cidrv6: () => cidrv6$1,
@@ -53852,9 +53855,9 @@ __export$4(regexes_exports, {
53852
53855
  lowercase: () => lowercase,
53853
53856
  nanoid: () => nanoid$1,
53854
53857
  null: () => _null$2,
53855
- number: () => number$2,
53858
+ number: () => number$3,
53856
53859
  rfc5322Email: () => rfc5322Email,
53857
- string: () => string$2,
53860
+ string: () => string$3,
53858
53861
  time: () => time$1,
53859
53862
  ulid: () => ulid$1,
53860
53863
  undefined: () => _undefined$2,
@@ -53928,14 +53931,14 @@ function datetime$1(args) {
53928
53931
  const timeRegex = `${time$2}(?:${opts.join("|")})`;
53929
53932
  return /* @__PURE__ */ new RegExp(`^${dateSource}T(?:${timeRegex})$`);
53930
53933
  }
53931
- const string$2 = (params) => {
53934
+ const string$3 = (params) => {
53932
53935
  const regex$1 = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
53933
53936
  return /* @__PURE__ */ new RegExp(`^${regex$1}$`);
53934
53937
  };
53935
53938
  const bigint$2 = /^\d+n?$/;
53936
53939
  const integer = /^\d+$/;
53937
- const number$2 = /^-?\d+(?:\.\d+)?/i;
53938
- const boolean$2 = /true|false/i;
53940
+ const number$3 = /^-?\d+(?:\.\d+)?/i;
53941
+ const boolean$3 = /true|false/i;
53939
53942
  const _null$2 = /null/i;
53940
53943
  const _undefined$2 = /undefined/i;
53941
53944
  const lowercase = /^[^A-Z]*$/;
@@ -54554,7 +54557,7 @@ const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
54554
54557
  });
54555
54558
  const $ZodString = /* @__PURE__ */ $constructor("$ZodString", (inst, def) => {
54556
54559
  $ZodType.init(inst, def);
54557
- inst._zod.pattern = [...inst?._zod.bag?.patterns ?? []].pop() ?? string$2(inst._zod.bag);
54560
+ inst._zod.pattern = [...inst?._zod.bag?.patterns ?? []].pop() ?? string$3(inst._zod.bag);
54558
54561
  inst._zod.parse = (payload, _$1) => {
54559
54562
  if (def.coerce) try {
54560
54563
  payload.value = String(payload.value);
@@ -54839,7 +54842,7 @@ const $ZodCustomStringFormat = /* @__PURE__ */ $constructor("$ZodCustomStringFor
54839
54842
  });
54840
54843
  const $ZodNumber = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def) => {
54841
54844
  $ZodType.init(inst, def);
54842
- inst._zod.pattern = inst._zod.bag.pattern ?? number$2;
54845
+ inst._zod.pattern = inst._zod.bag.pattern ?? number$3;
54843
54846
  inst._zod.parse = (payload, _ctx) => {
54844
54847
  if (def.coerce) try {
54845
54848
  payload.value = Number(payload.value);
@@ -54863,7 +54866,7 @@ const $ZodNumberFormat = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def)
54863
54866
  });
54864
54867
  const $ZodBoolean = /* @__PURE__ */ $constructor("$ZodBoolean", (inst, def) => {
54865
54868
  $ZodType.init(inst, def);
54866
- inst._zod.pattern = boolean$2;
54869
+ inst._zod.pattern = boolean$3;
54867
54870
  inst._zod.parse = (payload, _ctx) => {
54868
54871
  if (def.coerce) try {
54869
54872
  payload.value = Boolean(payload.value);
@@ -62234,6 +62237,259 @@ __export$4(core_exports, {
62234
62237
  version: () => version
62235
62238
  });
62236
62239
 
62240
+ //#endregion
62241
+ //#region ../../node_modules/.pnpm/zod@4.0.10/node_modules/zod/v4/mini/schemas.js
62242
+ const ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
62243
+ if (!inst._zod) throw new Error("Uninitialized schema in ZodMiniType.");
62244
+ $ZodType.init(inst, def);
62245
+ inst.def = def;
62246
+ inst.parse = (data, params) => parse$1(inst, data, params, { callee: inst.parse });
62247
+ inst.safeParse = (data, params) => safeParse$1(inst, data, params);
62248
+ inst.parseAsync = async (data, params) => parseAsync$1(inst, data, params, { callee: inst.parseAsync });
62249
+ inst.safeParseAsync = async (data, params) => safeParseAsync$1(inst, data, params);
62250
+ inst.check = (...checks) => {
62251
+ return inst.clone({
62252
+ ...def,
62253
+ checks: [...def.checks ?? [], ...checks.map((ch) => typeof ch === "function" ? { _zod: {
62254
+ check: ch,
62255
+ def: { check: "custom" },
62256
+ onattach: []
62257
+ } } : ch)]
62258
+ });
62259
+ };
62260
+ inst.clone = (_def, params) => clone(inst, _def, params);
62261
+ inst.brand = () => inst;
62262
+ inst.register = ((reg, meta) => {
62263
+ reg.add(inst, meta);
62264
+ return inst;
62265
+ });
62266
+ });
62267
+ const ZodMiniString = /* @__PURE__ */ $constructor("ZodMiniString", (inst, def) => {
62268
+ $ZodString.init(inst, def);
62269
+ ZodMiniType.init(inst, def);
62270
+ });
62271
+ function string$2(params) {
62272
+ return _string(ZodMiniString, params);
62273
+ }
62274
+ const ZodMiniNumber = /* @__PURE__ */ $constructor("ZodMiniNumber", (inst, def) => {
62275
+ $ZodNumber.init(inst, def);
62276
+ ZodMiniType.init(inst, def);
62277
+ });
62278
+ function number$2(params) {
62279
+ return _number(ZodMiniNumber, params);
62280
+ }
62281
+ const ZodMiniBoolean = /* @__PURE__ */ $constructor("ZodMiniBoolean", (inst, def) => {
62282
+ $ZodBoolean.init(inst, def);
62283
+ ZodMiniType.init(inst, def);
62284
+ });
62285
+ function boolean$2(params) {
62286
+ return _boolean(ZodMiniBoolean, params);
62287
+ }
62288
+ const ZodMiniUnknown = /* @__PURE__ */ $constructor("ZodMiniUnknown", (inst, def) => {
62289
+ $ZodUnknown.init(inst, def);
62290
+ ZodMiniType.init(inst, def);
62291
+ });
62292
+ function unknown$1() {
62293
+ return _unknown(ZodMiniUnknown);
62294
+ }
62295
+ const ZodMiniArray = /* @__PURE__ */ $constructor("ZodMiniArray", (inst, def) => {
62296
+ $ZodArray.init(inst, def);
62297
+ ZodMiniType.init(inst, def);
62298
+ });
62299
+ function array$1(element, params) {
62300
+ return new ZodMiniArray({
62301
+ type: "array",
62302
+ element,
62303
+ ...normalizeParams(params)
62304
+ });
62305
+ }
62306
+ const ZodMiniObject = /* @__PURE__ */ $constructor("ZodMiniObject", (inst, def) => {
62307
+ $ZodObject.init(inst, def);
62308
+ ZodMiniType.init(inst, def);
62309
+ defineLazy(inst, "shape", () => def.shape);
62310
+ });
62311
+ function object$1(shape, params) {
62312
+ const def = {
62313
+ type: "object",
62314
+ get shape() {
62315
+ assignProp(this, "shape", { ...shape });
62316
+ return this.shape;
62317
+ },
62318
+ ...normalizeParams(params)
62319
+ };
62320
+ return new ZodMiniObject(def);
62321
+ }
62322
+ function looseObject$1(shape, params) {
62323
+ return new ZodMiniObject({
62324
+ type: "object",
62325
+ get shape() {
62326
+ assignProp(this, "shape", { ...shape });
62327
+ return this.shape;
62328
+ },
62329
+ catchall: unknown$1(),
62330
+ ...normalizeParams(params)
62331
+ });
62332
+ }
62333
+ const ZodMiniUnion = /* @__PURE__ */ $constructor("ZodMiniUnion", (inst, def) => {
62334
+ $ZodUnion.init(inst, def);
62335
+ ZodMiniType.init(inst, def);
62336
+ });
62337
+ function union$1(options$1, params) {
62338
+ return new ZodMiniUnion({
62339
+ type: "union",
62340
+ options: options$1,
62341
+ ...normalizeParams(params)
62342
+ });
62343
+ }
62344
+ const ZodMiniOptional = /* @__PURE__ */ $constructor("ZodMiniOptional", (inst, def) => {
62345
+ $ZodOptional.init(inst, def);
62346
+ ZodMiniType.init(inst, def);
62347
+ });
62348
+ function optional$1(innerType) {
62349
+ return new ZodMiniOptional({
62350
+ type: "optional",
62351
+ innerType
62352
+ });
62353
+ }
62354
+
62355
+ //#endregion
62356
+ //#region ../dev/dist/google-aistudio/node/types.js
62357
+ const zContentSchema = looseObject$1({
62358
+ generationConfiguration: looseObject$1({
62359
+ includeCodeExecutionTypesImport: boolean$2(),
62360
+ includeSchemaTypesImport: boolean$2(),
62361
+ includesRetrievalImport: optional$1(boolean$2()),
62362
+ isAudioOutput: boolean$2(),
62363
+ isStreamingConfigEnabled: boolean$2(),
62364
+ isColab: boolean$2(),
62365
+ requiresParts: boolean$2(),
62366
+ requiresFunctionCalling: boolean$2(),
62367
+ requiresCodeExecution: boolean$2()
62368
+ }),
62369
+ generateContentParameters: object$1({
62370
+ model: string$2(),
62371
+ contents: array$1(object$1({
62372
+ role: string$2(),
62373
+ parts: array$1(union$1([
62374
+ object$1({ isLast: boolean$2() }),
62375
+ object$1({
62376
+ isLast: boolean$2(),
62377
+ text: string$2()
62378
+ }),
62379
+ object$1({
62380
+ isLast: boolean$2(),
62381
+ functionCall: object$1({
62382
+ name: string$2(),
62383
+ parameters: string$2()
62384
+ })
62385
+ }),
62386
+ object$1({
62387
+ isLast: boolean$2(),
62388
+ functionResponse: object$1({
62389
+ name: string$2(),
62390
+ response: string$2()
62391
+ })
62392
+ }),
62393
+ object$1({
62394
+ isLast: boolean$2(),
62395
+ inlineData: object$1({
62396
+ data: string$2(),
62397
+ splitData: array$1(string$2()),
62398
+ mimeType: string$2()
62399
+ }),
62400
+ fileData: object$1({
62401
+ mimeType: string$2(),
62402
+ fileIndex: number$2(),
62403
+ fileName: string$2()
62404
+ })
62405
+ })
62406
+ ])),
62407
+ isLast: optional$1(boolean$2())
62408
+ })),
62409
+ config: looseObject$1({
62410
+ thinkingConfig: object$1({ thinkingBudget: string$2() }),
62411
+ stopSequences: array$1(unknown$1()),
62412
+ responseMimeType: optional$1(string$2()),
62413
+ responseModalities: array$1(unknown$1()),
62414
+ safetySettings: array$1(unknown$1()),
62415
+ tools: array$1(union$1([
62416
+ object$1({ googleSearch: looseObject$1({}) }),
62417
+ object$1({ urlContext: looseObject$1({}) }),
62418
+ object$1({ functionDeclarations: array$1(object$1({
62419
+ name: string$2(),
62420
+ description: string$2(),
62421
+ parameters: string$2(),
62422
+ isLast: boolean$2()
62423
+ })) })
62424
+ ]))
62425
+ })
62426
+ })
62427
+ });
62428
+
62429
+ //#endregion
62430
+ //#region ../dev/dist/google-aistudio/node/index.js
62431
+ const doGoogleAiStudioAutomation = (dir = process.cwd()) => {
62432
+ const watcher$1 = fs.watch(dir);
62433
+ const handle = func_debounce(async () => {
62434
+ const names = fs.readdirSync(dir);
62435
+ const contentNames = names.filter((name$1) => name$1.endsWith(".contents.json"));
62436
+ for (const contentFilename of contentNames) {
62437
+ const contentFilepath = path.join(dir, contentFilename);
62438
+ const basename$1 = contentFilename.replace(".contents.json", "");
62439
+ await parseContent(basename$1, contentFilepath, names).catch(console.error);
62440
+ }
62441
+ }, 200);
62442
+ const parseContent = async (basename$1, contentFilepath, filenames) => {
62443
+ console.log(magenta("开始处理文件"), path.relative(process.cwd(), contentFilepath));
62444
+ const fileData = await zContentSchema.parse(JSON.parse(fs.readFileSync(contentFilepath, "utf-8")));
62445
+ const { contents } = fileData.generateContentParameters;
62446
+ const latestContent = contents.at(-1);
62447
+ if (!latestContent) return;
62448
+ if (latestContent.role !== "user") return;
62449
+ const functionResponsePart = latestContent.parts.find((p$1) => "functionResponse" in p$1);
62450
+ if (!functionResponsePart) return;
62451
+ if (functionResponsePart.functionResponse.response !== "") return;
62452
+ const modelContent = contents.findLast((content$2) => {
62453
+ return content$2.role === "model" && content$2.parts.find((p$1) => "functionCall" in p$1);
62454
+ });
62455
+ if (!modelContent) return;
62456
+ const functionCallPart = modelContent.parts.find((p$1) => "functionCall" in p$1)?.functionCall;
62457
+ if (!functionCallPart) return;
62458
+ const modelIndex = contents.indexOf(modelContent);
62459
+ const hash = createHash("sha256").update(`INDEX:${modelIndex}`).update(JSON.stringify(modelContent)).digest("hex").slice(0, 8);
62460
+ const taskFilename = `${basename$1}.${functionCallPart.name}.${modelIndex}-${hash}.function_call.json`;
62461
+ if (filenames.includes(taskFilename)) return;
62462
+ console.log(blue("收到 functionCallPart 任务请求"), functionCallPart);
62463
+ const scriptFilepath = iter_first_not_null(function* () {
62464
+ for (const scriptFilename of [`${functionCallPart.name}.function_call.js`, `${functionCallPart.name}.function_call.ts`]) yield path.join(dir, scriptFilename);
62465
+ }(), (scriptFilepath$1) => {
62466
+ if (fs.existsSync(scriptFilepath$1)) return scriptFilepath$1;
62467
+ });
62468
+ if (!scriptFilepath) console.warn("找不到任务处理工具");
62469
+ else {
62470
+ const { functionCall } = await import(pathToFileURL(scriptFilepath).href);
62471
+ const input = JSON.parse(functionCallPart.parameters);
62472
+ try {
62473
+ console.log(cyan("开始执行任务"));
62474
+ const output = await functionCall(input);
62475
+ console.log(green("生成任务结果:"), taskFilename);
62476
+ fs.writeFileSync(path.join(dir, taskFilename), JSON.stringify({
62477
+ input,
62478
+ output
62479
+ }, null, 2));
62480
+ } catch (e$1) {
62481
+ console.log(red("任务执行失败:"), e$1);
62482
+ }
62483
+ }
62484
+ };
62485
+ watcher$1.on("change", (eventType) => {
62486
+ if (eventType === "delete" || eventType === "unlink") return;
62487
+ handle();
62488
+ });
62489
+ handle();
62490
+ console.log(gray("\nWatching for file changes... Press Ctrl+C to exit."));
62491
+ };
62492
+
62237
62493
  //#endregion
62238
62494
  //#region ../../node_modules/.pnpm/zod@4.0.10/node_modules/zod/v4/classic/iso.js
62239
62495
  var iso_exports = {};
@@ -62425,7 +62681,7 @@ const ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
62425
62681
  inst.time = (params) => inst.check(time(params));
62426
62682
  inst.duration = (params) => inst.check(duration(params));
62427
62683
  });
62428
- function string(params) {
62684
+ function string$1(params) {
62429
62685
  return _string(ZodString, params);
62430
62686
  }
62431
62687
  const ZodStringFormat = /* @__PURE__ */ $constructor("ZodStringFormat", (inst, def) => {
@@ -62606,7 +62862,7 @@ const ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
62606
62862
  inst.isFinite = true;
62607
62863
  inst.format = bag.format ?? null;
62608
62864
  });
62609
- function number(params) {
62865
+ function number$1(params) {
62610
62866
  return _number(ZodNumber, params);
62611
62867
  }
62612
62868
  const ZodNumberFormat = /* @__PURE__ */ $constructor("ZodNumberFormat", (inst, def) => {
@@ -62632,7 +62888,7 @@ const ZodBoolean = /* @__PURE__ */ $constructor("ZodBoolean", (inst, def) => {
62632
62888
  $ZodBoolean.init(inst, def);
62633
62889
  ZodType.init(inst, def);
62634
62890
  });
62635
- function boolean(params) {
62891
+ function boolean$1(params) {
62636
62892
  return _boolean(ZodBoolean, params);
62637
62893
  }
62638
62894
  const ZodBigInt = /* @__PURE__ */ $constructor("ZodBigInt", (inst, def) => {
@@ -63235,12 +63491,12 @@ const stringbool = (...args) => _stringbool({
63235
63491
  function json(params) {
63236
63492
  const jsonSchema = lazy(() => {
63237
63493
  return union([
63238
- string(params),
63239
- number(),
63240
- boolean(),
63494
+ string$1(params),
63495
+ number$1(),
63496
+ boolean$1(),
63241
63497
  _null(),
63242
63498
  array(jsonSchema),
63243
- record(string(), jsonSchema)
63499
+ record(string$1(), jsonSchema)
63244
63500
  ]);
63245
63501
  });
63246
63502
  return jsonSchema;
@@ -63282,18 +63538,18 @@ var ZodFirstPartyTypeKind;
63282
63538
  var coerce_exports = {};
63283
63539
  __export$4(coerce_exports, {
63284
63540
  bigint: () => bigint,
63285
- boolean: () => boolean$1,
63541
+ boolean: () => boolean,
63286
63542
  date: () => date,
63287
- number: () => number$1,
63288
- string: () => string$1
63543
+ number: () => number,
63544
+ string: () => string
63289
63545
  });
63290
- function string$1(params) {
63546
+ function string(params) {
63291
63547
  return _coercedString(ZodString, params);
63292
63548
  }
63293
- function number$1(params) {
63549
+ function number(params) {
63294
63550
  return _coercedNumber(ZodNumber, params);
63295
63551
  }
63296
- function boolean$1(params) {
63552
+ function boolean(params) {
63297
63553
  return _coercedBoolean(ZodBoolean, params);
63298
63554
  }
63299
63555
  function bigint(params) {
@@ -63390,7 +63646,7 @@ __export$4(external_exports, {
63390
63646
  base64: () => base64,
63391
63647
  base64url: () => base64url,
63392
63648
  bigint: () => bigint$1,
63393
- boolean: () => boolean,
63649
+ boolean: () => boolean$1,
63394
63650
  catch: () => _catch,
63395
63651
  check: () => check,
63396
63652
  cidrv4: () => cidrv4,
@@ -63460,7 +63716,7 @@ __export$4(external_exports, {
63460
63716
  null: () => _null,
63461
63717
  nullable: () => nullable,
63462
63718
  nullish: () => nullish,
63463
- number: () => number,
63719
+ number: () => number$1,
63464
63720
  object: () => object,
63465
63721
  optional: () => optional,
63466
63722
  overwrite: () => _overwrite,
@@ -63487,7 +63743,7 @@ __export$4(external_exports, {
63487
63743
  size: () => _size,
63488
63744
  startsWith: () => _startsWith,
63489
63745
  strictObject: () => strictObject,
63490
- string: () => string,
63746
+ string: () => string$1,
63491
63747
  stringFormat: () => stringFormat,
63492
63748
  stringbool: () => stringbool,
63493
63749
  success: () => success,
@@ -63518,153 +63774,6 @@ __export$4(external_exports, {
63518
63774
  });
63519
63775
  config(en_default());
63520
63776
 
63521
- //#endregion
63522
- //#region ../dev/dist/google-aistudio/node/types.js
63523
- const z = {
63524
- object,
63525
- boolean,
63526
- string,
63527
- array,
63528
- union,
63529
- unknown,
63530
- number
63531
- };
63532
- const zContentSchema = z.object({
63533
- generationConfiguration: z.object({
63534
- includeCodeExecutionTypesImport: z.boolean(),
63535
- includeSchemaTypesImport: z.boolean(),
63536
- includesRetrievalImport: z.boolean().optional(),
63537
- isAudioOutput: z.boolean(),
63538
- isStreamingConfigEnabled: z.boolean(),
63539
- isColab: z.boolean(),
63540
- requiresParts: z.boolean(),
63541
- requiresFunctionCalling: z.boolean(),
63542
- requiresCodeExecution: z.boolean()
63543
- }).partial(),
63544
- generateContentParameters: z.object({
63545
- model: z.string(),
63546
- contents: z.array(z.object({
63547
- role: z.string(),
63548
- parts: z.array(z.union([
63549
- z.object({ isLast: z.boolean() }),
63550
- z.object({
63551
- isLast: z.boolean(),
63552
- text: z.string()
63553
- }),
63554
- z.object({
63555
- isLast: z.boolean(),
63556
- functionCall: z.object({
63557
- name: z.string(),
63558
- parameters: z.string()
63559
- })
63560
- }),
63561
- z.object({
63562
- isLast: z.boolean(),
63563
- functionResponse: z.object({
63564
- name: z.string(),
63565
- response: z.string()
63566
- })
63567
- }),
63568
- z.object({
63569
- isLast: z.boolean(),
63570
- inlineData: z.object({
63571
- data: z.string(),
63572
- splitData: z.array(z.string()),
63573
- mimeType: z.string()
63574
- }),
63575
- fileData: z.object({
63576
- mimeType: z.string(),
63577
- fileIndex: z.number(),
63578
- fileName: z.string()
63579
- })
63580
- })
63581
- ])),
63582
- isLast: z.boolean().optional()
63583
- })),
63584
- config: z.object({
63585
- thinkingConfig: z.object({ thinkingBudget: z.string() }),
63586
- stopSequences: z.array(z.unknown()),
63587
- responseMimeType: z.string().optional(),
63588
- responseModalities: z.array(z.unknown()),
63589
- safetySettings: z.array(z.unknown()),
63590
- tools: z.array(z.union([
63591
- z.object({ googleSearch: z.object({}) }),
63592
- z.object({ urlContext: z.object({}) }),
63593
- z.object({ functionDeclarations: z.array(z.object({
63594
- name: z.string(),
63595
- description: z.string(),
63596
- parameters: z.string(),
63597
- isLast: z.boolean()
63598
- })) })
63599
- ]))
63600
- })
63601
- })
63602
- }).loose();
63603
-
63604
- //#endregion
63605
- //#region ../dev/dist/google-aistudio/node/index.js
63606
- const doGoogleAiStudioAutomation = (dir = process.cwd()) => {
63607
- const watcher$1 = fs.watch(dir);
63608
- const handle = func_debounce(async () => {
63609
- const names = fs.readdirSync(dir);
63610
- const contentNames = names.filter((name$1) => name$1.endsWith(".contents.json"));
63611
- for (const contentFilename of contentNames) {
63612
- const contentFilepath = path.join(dir, contentFilename);
63613
- const basename$1 = contentFilename.replace(".contents.json", "");
63614
- await parseContent(basename$1, contentFilepath, names).catch(console.error);
63615
- }
63616
- }, 200);
63617
- const parseContent = async (basename$1, contentFilepath, filenames) => {
63618
- console.log(magenta("开始处理文件"), path.relative(process.cwd(), contentFilepath));
63619
- const fileData = await zContentSchema.parse(JSON.parse(fs.readFileSync(contentFilepath, "utf-8")));
63620
- const { contents } = fileData.generateContentParameters;
63621
- const latestContent = contents.at(-1);
63622
- if (!latestContent) return;
63623
- if (latestContent.role !== "user") return;
63624
- const functionResponsePart = latestContent.parts.find((p$1) => "functionResponse" in p$1);
63625
- if (!functionResponsePart) return;
63626
- if (functionResponsePart.functionResponse.response !== "") return;
63627
- const modelContent = contents.findLast((content$2) => {
63628
- return content$2.role === "model" && content$2.parts.find((p$1) => "functionCall" in p$1);
63629
- });
63630
- if (!modelContent) return;
63631
- const functionCallPart = modelContent.parts.find((p$1) => "functionCall" in p$1)?.functionCall;
63632
- if (!functionCallPart) return;
63633
- const modelIndex = contents.indexOf(modelContent);
63634
- const hash = createHash("sha256").update(`INDEX:${modelIndex}`).update(JSON.stringify(modelContent)).digest("hex").slice(0, 8);
63635
- const taskFilename = `${basename$1}.${functionCallPart.name}.${modelIndex}-${hash}.function_call.json`;
63636
- if (filenames.includes(taskFilename)) return;
63637
- console.log(blue("收到 functionCallPart 任务请求"), functionCallPart);
63638
- const scriptFilepath = iter_first_not_null(function* () {
63639
- for (const scriptFilename of [`${functionCallPart.name}.function_call.js`, `${functionCallPart.name}.function_call.ts`]) yield path.join(dir, scriptFilename);
63640
- }(), (scriptFilepath$1) => {
63641
- if (fs.existsSync(scriptFilepath$1)) return scriptFilepath$1;
63642
- });
63643
- if (!scriptFilepath) console.warn("找不到任务处理工具");
63644
- else {
63645
- const { functionCall } = await import(pathToFileURL(scriptFilepath).href);
63646
- const input = JSON.parse(functionCallPart.parameters);
63647
- try {
63648
- console.log(cyan("开始执行任务"));
63649
- const output = await functionCall(input);
63650
- console.log(green("生成任务结果:"), taskFilename);
63651
- fs.writeFileSync(path.join(dir, taskFilename), JSON.stringify({
63652
- input,
63653
- output
63654
- }, null, 2));
63655
- } catch (e$1) {
63656
- console.log(red("任务执行失败:"), e$1);
63657
- }
63658
- }
63659
- };
63660
- watcher$1.on("change", (eventType) => {
63661
- if (eventType === "delete" || eventType === "unlink") return;
63662
- handle();
63663
- });
63664
- handle();
63665
- console.log(gray("\nWatching for file changes... Press Ctrl+C to exit."));
63666
- };
63667
-
63668
63777
  //#endregion
63669
63778
  //#region ../../node_modules/.pnpm/zod@4.0.10/node_modules/zod/index.js
63670
63779
  var zod_default = external_exports;