@jixo/cli 0.23.0 → 0.23.2

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 (52) hide show
  1. package/README.md +170 -15
  2. package/bundle/index.js +673 -566
  3. package/dist/index.d.ts +1 -0
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.js +1 -0
  6. package/dist/index.js.map +1 -1
  7. package/dist/prompts.json +2 -14
  8. package/package.json +3 -3
  9. package/dist/cli.d.ts +0 -2
  10. package/dist/cli.d.ts.map +0 -1
  11. package/dist/cli.js +0 -83
  12. package/dist/cli.js.map +0 -1
  13. package/dist/commands/daemon.d.ts +0 -5
  14. package/dist/commands/daemon.d.ts.map +0 -1
  15. package/dist/commands/daemon.js +0 -20
  16. package/dist/commands/daemon.js.map +0 -1
  17. package/dist/commands/doctor/config.d.ts +0 -3
  18. package/dist/commands/doctor/config.d.ts.map +0 -1
  19. package/dist/commands/doctor/config.js +0 -17
  20. package/dist/commands/doctor/config.js.map +0 -1
  21. package/dist/commands/doctor/doctor.d.ts +0 -3
  22. package/dist/commands/doctor/doctor.d.ts.map +0 -1
  23. package/dist/commands/doctor/doctor.js +0 -158
  24. package/dist/commands/doctor/doctor.js.map +0 -1
  25. package/dist/commands/doctor/doctor.test.d.ts +0 -2
  26. package/dist/commands/doctor/doctor.test.d.ts.map +0 -1
  27. package/dist/commands/doctor/doctor.test.js +0 -14
  28. package/dist/commands/doctor/doctor.test.js.map +0 -1
  29. package/dist/commands/doctor/index.d.ts +0 -2
  30. package/dist/commands/doctor/index.d.ts.map +0 -1
  31. package/dist/commands/doctor/index.js +0 -8
  32. package/dist/commands/doctor/index.js.map +0 -1
  33. package/dist/commands/doctor/types.d.ts +0 -45
  34. package/dist/commands/doctor/types.d.ts.map +0 -1
  35. package/dist/commands/doctor/types.js +0 -3
  36. package/dist/commands/doctor/types.js.map +0 -1
  37. package/dist/commands/init.d.ts +0 -2
  38. package/dist/commands/init.d.ts.map +0 -1
  39. package/dist/commands/init.js +0 -40
  40. package/dist/commands/init.js.map +0 -1
  41. package/dist/commands/tasks/run.d.ts +0 -10
  42. package/dist/commands/tasks/run.d.ts.map +0 -1
  43. package/dist/commands/tasks/run.js +0 -44
  44. package/dist/commands/tasks/run.js.map +0 -1
  45. package/dist/config.d.ts +0 -15
  46. package/dist/config.d.ts.map +0 -1
  47. package/dist/config.js +0 -23
  48. package/dist/config.js.map +0 -1
  49. package/dist/env.d.ts +0 -6
  50. package/dist/env.d.ts.map +0 -1
  51. package/dist/env.js +0 -16
  52. 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";
@@ -12,7 +13,7 @@ import url2, { URL as URL$2, fileURLToPath as fileURLToPath$1, pathToFileURL as
12
13
  import { AsyncLocalStorage, AsyncResource } from "node:async_hooks";
13
14
  import process$1 from "node:process";
14
15
  import { execFile, spawn } from "node:child_process";
15
- import * as fs$1 from "fs/promises";
16
+ import * as fs$2 from "fs/promises";
16
17
  import fs2 from "fs/promises";
17
18
  import process2 from "process";
18
19
  import { spawn as spawn$1 } from "child_process";
@@ -22,7 +23,7 @@ import * as readline from "node:readline";
22
23
  import { promisify, stripVTControlCharacters } from "node:util";
23
24
  import { EventEmitter, on, once } from "node:events";
24
25
  import { finished } from "node:stream/promises";
25
- import fsPromises, { copyFile, mkdir, rm, writeFile as writeFile$1 } from "node:fs/promises";
26
+ import fs$1, { copyFile, mkdir, rm, writeFile as writeFile$1 } from "node:fs/promises";
26
27
  import { Buffer as Buffer$1 } from "node:buffer";
27
28
  import { builtinModules, createRequire as createRequire$1 } from "module";
28
29
  import v8 from "v8";
@@ -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.2";
4691
4692
  var type = "module";
4692
4693
  var bin = { "jixo": "./bundle/index.js" };
4693
4694
  var files = [
@@ -4754,7 +4755,7 @@ var package_default = {
4754
4755
  };
4755
4756
 
4756
4757
  //#endregion
4757
- //#region ../../node_modules/.pnpm/@gaubee+nodekit@0.12.0_@gau_ac796b2c5c73dab9bab91ba9e75b6834/node_modules/@gaubee/nodekit/esm/_dnt.shims.js
4758
+ //#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
4759
  const dntGlobals = {};
4759
4760
  const dntGlobalThis = createMergeProxy(globalThis, dntGlobals);
4760
4761
  function createMergeProxy(baseObj, extObj) {
@@ -4802,7 +4803,7 @@ function createMergeProxy(baseObj, extObj) {
4802
4803
  }
4803
4804
 
4804
4805
  //#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
4806
+ //#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
4807
  const { Deno } = dntGlobalThis;
4807
4808
  const noColor = typeof Deno?.noColor === "boolean" ? Deno.noColor : false;
4808
4809
  let enabled = !noColor;
@@ -5794,7 +5795,7 @@ const createResolverByRootFile = (fromPath = process$1.cwd(), rootFilename = "pa
5794
5795
  };
5795
5796
 
5796
5797
  //#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
5798
+ //#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
5799
  /**
5799
5800
  * Converts a JSON with Comments (JSONC) string into an object.
5800
5801
  *
@@ -6020,7 +6021,7 @@ function buildErrorMessage({ type: type$1, sourceText, position: position$1 }) {
6020
6021
  }
6021
6022
 
6022
6023
  //#endregion
6023
- //#region ../../node_modules/.pnpm/@gaubee+nodekit@0.12.0_@gau_ac796b2c5c73dab9bab91ba9e75b6834/node_modules/@gaubee/nodekit/esm/config_file.js
6024
+ //#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
6025
  /**
6025
6026
  * read json or jsonc file
6026
6027
  */
@@ -6285,13 +6286,13 @@ var require_common$4 = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/n
6285
6286
  }
6286
6287
  return target;
6287
6288
  }
6288
- function repeat(string$6, count) {
6289
+ function repeat(string$7, count) {
6289
6290
  var result = "", cycle;
6290
- for (cycle = 0; cycle < count; cycle += 1) result += string$6;
6291
+ for (cycle = 0; cycle < count; cycle += 1) result += string$7;
6291
6292
  return result;
6292
6293
  }
6293
- function isNegativeZero(number$3) {
6294
- return number$3 === 0 && Number.NEGATIVE_INFINITY === 1 / number$3;
6294
+ function isNegativeZero(number$4) {
6295
+ return number$4 === 0 && Number.NEGATIVE_INFINITY === 1 / number$4;
6295
6296
  }
6296
6297
  module.exports.isNothing = isNothing;
6297
6298
  module.exports.isObject = isObject$4;
@@ -6561,8 +6562,8 @@ var require_null = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/node_
6561
6562
  function constructYamlNull() {
6562
6563
  return null;
6563
6564
  }
6564
- function isNull(object$1) {
6565
- return object$1 === null;
6565
+ function isNull(object$2) {
6566
+ return object$2 === null;
6566
6567
  }
6567
6568
  module.exports = new Type$12("tag:yaml.org,2002:null", {
6568
6569
  kind: "scalar",
@@ -6599,8 +6600,8 @@ var require_bool = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/node_
6599
6600
  function constructYamlBoolean(data) {
6600
6601
  return data === "true" || data === "True" || data === "TRUE";
6601
6602
  }
6602
- function isBoolean(object$1) {
6603
- return Object.prototype.toString.call(object$1) === "[object Boolean]";
6603
+ function isBoolean(object$2) {
6604
+ return Object.prototype.toString.call(object$2) === "[object Boolean]";
6604
6605
  }
6605
6606
  module.exports = new Type$11("tag:yaml.org,2002:bool", {
6606
6607
  kind: "scalar",
@@ -6608,14 +6609,14 @@ var require_bool = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/node_
6608
6609
  construct: constructYamlBoolean,
6609
6610
  predicate: isBoolean,
6610
6611
  represent: {
6611
- lowercase: function(object$1) {
6612
- return object$1 ? "true" : "false";
6612
+ lowercase: function(object$2) {
6613
+ return object$2 ? "true" : "false";
6613
6614
  },
6614
- uppercase: function(object$1) {
6615
- return object$1 ? "TRUE" : "FALSE";
6615
+ uppercase: function(object$2) {
6616
+ return object$2 ? "TRUE" : "FALSE";
6616
6617
  },
6617
- camelcase: function(object$1) {
6618
- return object$1 ? "True" : "False";
6618
+ camelcase: function(object$2) {
6619
+ return object$2 ? "True" : "False";
6619
6620
  }
6620
6621
  },
6621
6622
  defaultStyle: "lowercase"
@@ -6714,8 +6715,8 @@ var require_int = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/node_m
6714
6715
  }
6715
6716
  return sign$1 * parseInt(value, 10);
6716
6717
  }
6717
- function isInteger(object$1) {
6718
- return Object.prototype.toString.call(object$1) === "[object Number]" && object$1 % 1 === 0 && !common$9.isNegativeZero(object$1);
6718
+ function isInteger(object$2) {
6719
+ return Object.prototype.toString.call(object$2) === "[object Number]" && object$2 % 1 === 0 && !common$9.isNegativeZero(object$2);
6719
6720
  }
6720
6721
  module.exports = new Type$10("tag:yaml.org,2002:int", {
6721
6722
  kind: "scalar",
@@ -6780,29 +6781,29 @@ var require_float = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/node
6780
6781
  return sign$1 * parseFloat(value, 10);
6781
6782
  }
6782
6783
  var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
6783
- function representYamlFloat(object$1, style) {
6784
+ function representYamlFloat(object$2, style) {
6784
6785
  var res;
6785
- if (isNaN(object$1)) switch (style) {
6786
+ if (isNaN(object$2)) switch (style) {
6786
6787
  case "lowercase": return ".nan";
6787
6788
  case "uppercase": return ".NAN";
6788
6789
  case "camelcase": return ".NaN";
6789
6790
  }
6790
- else if (Number.POSITIVE_INFINITY === object$1) switch (style) {
6791
+ else if (Number.POSITIVE_INFINITY === object$2) switch (style) {
6791
6792
  case "lowercase": return ".inf";
6792
6793
  case "uppercase": return ".INF";
6793
6794
  case "camelcase": return ".Inf";
6794
6795
  }
6795
- else if (Number.NEGATIVE_INFINITY === object$1) switch (style) {
6796
+ else if (Number.NEGATIVE_INFINITY === object$2) switch (style) {
6796
6797
  case "lowercase": return "-.inf";
6797
6798
  case "uppercase": return "-.INF";
6798
6799
  case "camelcase": return "-.Inf";
6799
6800
  }
6800
- else if (common$8.isNegativeZero(object$1)) return "-0.0";
6801
- res = object$1.toString(10);
6801
+ else if (common$8.isNegativeZero(object$2)) return "-0.0";
6802
+ res = object$2.toString(10);
6802
6803
  return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace("e", ".e") : res;
6803
6804
  }
6804
- function isFloat(object$1) {
6805
- return Object.prototype.toString.call(object$1) === "[object Number]" && (object$1 % 1 !== 0 || common$8.isNegativeZero(object$1));
6805
+ function isFloat(object$2) {
6806
+ return Object.prototype.toString.call(object$2) === "[object Number]" && (object$2 % 1 !== 0 || common$8.isNegativeZero(object$2));
6806
6807
  }
6807
6808
  module.exports = new Type$9("tag:yaml.org,2002:float", {
6808
6809
  kind: "scalar",
@@ -6875,8 +6876,8 @@ var require_timestamp = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/
6875
6876
  if (delta) date$4.setTime(date$4.getTime() - delta);
6876
6877
  return date$4;
6877
6878
  }
6878
- function representYamlTimestamp(object$1) {
6879
- return object$1.toISOString();
6879
+ function representYamlTimestamp(object$2) {
6880
+ return object$2.toISOString();
6880
6881
  }
6881
6882
  module.exports = new Type$8("tag:yaml.org,2002:timestamp", {
6882
6883
  kind: "scalar",
@@ -6943,8 +6944,8 @@ var require_binary = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
6943
6944
  if (NodeBuffer) return NodeBuffer.from ? NodeBuffer.from(result) : new NodeBuffer(result);
6944
6945
  return result;
6945
6946
  }
6946
- function representYamlBinary(object$1) {
6947
- var result = "", bits = 0, idx, tail, max = object$1.length, map$1 = BASE64_MAP;
6947
+ function representYamlBinary(object$2) {
6948
+ var result = "", bits = 0, idx, tail, max = object$2.length, map$1 = BASE64_MAP;
6948
6949
  for (idx = 0; idx < max; idx++) {
6949
6950
  if (idx % 3 === 0 && idx) {
6950
6951
  result += map$1[bits >> 18 & 63];
@@ -6952,7 +6953,7 @@ var require_binary = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
6952
6953
  result += map$1[bits >> 6 & 63];
6953
6954
  result += map$1[bits & 63];
6954
6955
  }
6955
- bits = (bits << 8) + object$1[idx];
6956
+ bits = (bits << 8) + object$2[idx];
6956
6957
  }
6957
6958
  tail = max % 3;
6958
6959
  if (tail === 0) {
@@ -6973,8 +6974,8 @@ var require_binary = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
6973
6974
  }
6974
6975
  return result;
6975
6976
  }
6976
- function isBinary(object$1) {
6977
- return NodeBuffer && NodeBuffer.isBuffer(object$1);
6977
+ function isBinary(object$2) {
6978
+ return NodeBuffer && NodeBuffer.isBuffer(object$2);
6978
6979
  }
6979
6980
  module.exports = new Type$6("tag:yaml.org,2002:binary", {
6980
6981
  kind: "scalar",
@@ -6993,9 +6994,9 @@ var require_omap = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/node_
6993
6994
  var _toString$2 = Object.prototype.toString;
6994
6995
  function resolveYamlOmap(data) {
6995
6996
  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];
6997
+ var objectKeys$1 = [], index$1, length, pair, pairKey, pairHasKey, object$2 = data;
6998
+ for (index$1 = 0, length = object$2.length; index$1 < length; index$1 += 1) {
6999
+ pair = object$2[index$1];
6999
7000
  pairHasKey = false;
7000
7001
  if (_toString$2.call(pair) !== "[object Object]") return false;
7001
7002
  for (pairKey in pair) if (_hasOwnProperty$3.call(pair, pairKey)) if (!pairHasKey) pairHasKey = true;
@@ -7023,10 +7024,10 @@ var require_pairs = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/node
7023
7024
  var _toString$1 = Object.prototype.toString;
7024
7025
  function resolveYamlPairs(data) {
7025
7026
  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];
7027
+ var index$1, length, pair, keys, result, object$2 = data;
7028
+ result = new Array(object$2.length);
7029
+ for (index$1 = 0, length = object$2.length; index$1 < length; index$1 += 1) {
7030
+ pair = object$2[index$1];
7030
7031
  if (_toString$1.call(pair) !== "[object Object]") return false;
7031
7032
  keys = Object.keys(pair);
7032
7033
  if (keys.length !== 1) return false;
@@ -7036,10 +7037,10 @@ var require_pairs = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/node
7036
7037
  }
7037
7038
  function constructYamlPairs(data) {
7038
7039
  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];
7040
+ var index$1, length, pair, keys, result, object$2 = data;
7041
+ result = new Array(object$2.length);
7042
+ for (index$1 = 0, length = object$2.length; index$1 < length; index$1 += 1) {
7043
+ pair = object$2[index$1];
7043
7044
  keys = Object.keys(pair);
7044
7045
  result[index$1] = [keys[0], pair[keys[0]]];
7045
7046
  }
@@ -7059,9 +7060,9 @@ var require_set = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/node_m
7059
7060
  var _hasOwnProperty$2 = Object.prototype.hasOwnProperty;
7060
7061
  function resolveYamlSet(data) {
7061
7062
  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;
7063
+ var key$1, object$2 = data;
7064
+ for (key$1 in object$2) if (_hasOwnProperty$2.call(object$2, key$1)) {
7065
+ if (object$2[key$1] !== null) return false;
7065
7066
  }
7066
7067
  return true;
7067
7068
  }
@@ -7104,8 +7105,8 @@ var require_undefined = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/
7104
7105
  function representJavascriptUndefined() {
7105
7106
  return "";
7106
7107
  }
7107
- function isUndefined(object$1) {
7108
- return typeof object$1 === "undefined";
7108
+ function isUndefined(object$2) {
7109
+ return typeof object$2 === "undefined";
7109
7110
  }
7110
7111
  module.exports = new Type$2("tag:yaml.org,2002:js/undefined", {
7111
7112
  kind: "scalar",
@@ -7139,15 +7140,15 @@ var require_regexp = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
7139
7140
  }
7140
7141
  return new RegExp(regexp, modifiers);
7141
7142
  }
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";
7143
+ function representJavascriptRegExp(object$2) {
7144
+ var result = "/" + object$2.source + "/";
7145
+ if (object$2.global) result += "g";
7146
+ if (object$2.multiline) result += "m";
7147
+ if (object$2.ignoreCase) result += "i";
7147
7148
  return result;
7148
7149
  }
7149
- function isRegExp(object$1) {
7150
- return Object.prototype.toString.call(object$1) === "[object RegExp]";
7150
+ function isRegExp(object$2) {
7151
+ return Object.prototype.toString.call(object$2) === "[object RegExp]";
7151
7152
  }
7152
7153
  module.exports = new Type$1("tag:yaml.org,2002:js/regexp", {
7153
7154
  kind: "scalar",
@@ -7189,11 +7190,11 @@ var require_function = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/n
7189
7190
  if (ast.body[0].expression.body.type === "BlockStatement") return new Function(params, source$1.slice(body[0] + 1, body[1] - 1));
7190
7191
  return new Function(params, "return " + source$1.slice(body[0], body[1]));
7191
7192
  }
7192
- function representJavascriptFunction(object$1) {
7193
- return object$1.toString();
7193
+ function representJavascriptFunction(object$2) {
7194
+ return object$2.toString();
7194
7195
  }
7195
- function isFunction(object$1) {
7196
- return Object.prototype.toString.call(object$1) === "[object Function]";
7196
+ function isFunction(object$2) {
7197
+ return Object.prototype.toString.call(object$2) === "[object Function]";
7197
7198
  }
7198
7199
  module.exports = new Type("tag:yaml.org,2002:js/function", {
7199
7200
  kind: "scalar",
@@ -8107,8 +8108,8 @@ var require_dumper = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
8107
8108
  return result;
8108
8109
  }
8109
8110
  function encodeHex(character) {
8110
- var string$6, handle, length;
8111
- string$6 = character.toString(16).toUpperCase();
8111
+ var string$7, handle, length;
8112
+ string$7 = character.toString(16).toUpperCase();
8112
8113
  if (character <= 255) {
8113
8114
  handle = "x";
8114
8115
  length = 2;
@@ -8119,7 +8120,7 @@ var require_dumper = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
8119
8120
  handle = "U";
8120
8121
  length = 8;
8121
8122
  } 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;
8123
+ return "\\" + handle + common$6.repeat("0", length - string$7.length) + string$7;
8123
8124
  }
8124
8125
  function State(options$1) {
8125
8126
  this.schema = options$1["schema"] || DEFAULT_FULL_SCHEMA;
@@ -8140,15 +8141,15 @@ var require_dumper = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
8140
8141
  this.duplicates = [];
8141
8142
  this.usedDuplicates = null;
8142
8143
  }
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;
8144
+ function indentString(string$7, spaces) {
8145
+ var ind = common$6.repeat(" ", spaces), position$1 = 0, next = -1, result = "", line$2, length = string$7.length;
8145
8146
  while (position$1 < length) {
8146
- next = string$6.indexOf("\n", position$1);
8147
+ next = string$7.indexOf("\n", position$1);
8147
8148
  if (next === -1) {
8148
- line$2 = string$6.slice(position$1);
8149
+ line$2 = string$7.slice(position$1);
8149
8150
  position$1 = length;
8150
8151
  } else {
8151
- line$2 = string$6.slice(position$1, next + 1);
8152
+ line$2 = string$7.slice(position$1, next + 1);
8152
8153
  position$1 = next + 1;
8153
8154
  }
8154
8155
  if (line$2.length && line$2 !== "\n") result += ind;
@@ -8182,86 +8183,86 @@ var require_dumper = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
8182
8183
  function isPlainSafeFirst(c$2) {
8183
8184
  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
8185
  }
8185
- function needIndentIndicator(string$6) {
8186
+ function needIndentIndicator(string$7) {
8186
8187
  var leadingSpaceRe = /^\n* /;
8187
- return leadingSpaceRe.test(string$6);
8188
+ return leadingSpaceRe.test(string$7);
8188
8189
  }
8189
8190
  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) {
8191
+ function chooseScalarStyle(string$7, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType) {
8191
8192
  var i$2;
8192
8193
  var char, prev_char;
8193
8194
  var hasLineBreak = false;
8194
8195
  var hasFoldableLine = false;
8195
8196
  var shouldTrackWidth = lineWidth !== -1;
8196
8197
  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);
8198
+ var plain = isPlainSafeFirst(string$7.charCodeAt(0)) && !isWhitespace(string$7.charCodeAt(string$7.length - 1));
8199
+ if (singleLineOnly) for (i$2 = 0; i$2 < string$7.length; i$2++) {
8200
+ char = string$7.charCodeAt(i$2);
8200
8201
  if (!isPrintable(char)) return STYLE_DOUBLE;
8201
- prev_char = i$2 > 0 ? string$6.charCodeAt(i$2 - 1) : null;
8202
+ prev_char = i$2 > 0 ? string$7.charCodeAt(i$2 - 1) : null;
8202
8203
  plain = plain && isPlainSafe(char, prev_char);
8203
8204
  }
8204
8205
  else {
8205
- for (i$2 = 0; i$2 < string$6.length; i$2++) {
8206
- char = string$6.charCodeAt(i$2);
8206
+ for (i$2 = 0; i$2 < string$7.length; i$2++) {
8207
+ char = string$7.charCodeAt(i$2);
8207
8208
  if (char === CHAR_LINE_FEED) {
8208
8209
  hasLineBreak = true;
8209
8210
  if (shouldTrackWidth) {
8210
- hasFoldableLine = hasFoldableLine || i$2 - previousLineBreak - 1 > lineWidth && string$6[previousLineBreak + 1] !== " ";
8211
+ hasFoldableLine = hasFoldableLine || i$2 - previousLineBreak - 1 > lineWidth && string$7[previousLineBreak + 1] !== " ";
8211
8212
  previousLineBreak = i$2;
8212
8213
  }
8213
8214
  } else if (!isPrintable(char)) return STYLE_DOUBLE;
8214
- prev_char = i$2 > 0 ? string$6.charCodeAt(i$2 - 1) : null;
8215
+ prev_char = i$2 > 0 ? string$7.charCodeAt(i$2 - 1) : null;
8215
8216
  plain = plain && isPlainSafe(char, prev_char);
8216
8217
  }
8217
- hasFoldableLine = hasFoldableLine || shouldTrackWidth && i$2 - previousLineBreak - 1 > lineWidth && string$6[previousLineBreak + 1] !== " ";
8218
+ hasFoldableLine = hasFoldableLine || shouldTrackWidth && i$2 - previousLineBreak - 1 > lineWidth && string$7[previousLineBreak + 1] !== " ";
8218
8219
  }
8219
- if (!hasLineBreak && !hasFoldableLine) return plain && !testAmbiguousType(string$6) ? STYLE_PLAIN : STYLE_SINGLE;
8220
- if (indentPerLevel > 9 && needIndentIndicator(string$6)) return STYLE_DOUBLE;
8220
+ if (!hasLineBreak && !hasFoldableLine) return plain && !testAmbiguousType(string$7) ? STYLE_PLAIN : STYLE_SINGLE;
8221
+ if (indentPerLevel > 9 && needIndentIndicator(string$7)) return STYLE_DOUBLE;
8221
8222
  return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;
8222
8223
  }
8223
- function writeScalar(state, string$6, level, iskey) {
8224
+ function writeScalar(state, string$7, level, iskey) {
8224
8225
  state.dump = function() {
8225
- if (string$6.length === 0) return "''";
8226
- if (!state.noCompatMode && DEPRECATED_BOOLEANS_SYNTAX.indexOf(string$6) !== -1) return "'" + string$6 + "'";
8226
+ if (string$7.length === 0) return "''";
8227
+ if (!state.noCompatMode && DEPRECATED_BOOLEANS_SYNTAX.indexOf(string$7) !== -1) return "'" + string$7 + "'";
8227
8228
  var indent$2 = state.indent * Math.max(1, level);
8228
8229
  var lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent$2);
8229
8230
  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) + "\"";
8231
+ function testAmbiguity(string$8) {
8232
+ return testImplicitResolving(state, string$8);
8233
+ }
8234
+ switch (chooseScalarStyle(string$7, singleLineOnly, state.indent, lineWidth, testAmbiguity)) {
8235
+ case STYLE_PLAIN: return string$7;
8236
+ case STYLE_SINGLE: return "'" + string$7.replace(/'/g, "''") + "'";
8237
+ case STYLE_LITERAL: return "|" + blockHeader(string$7, state.indent) + dropEndingNewline(indentString(string$7, indent$2));
8238
+ case STYLE_FOLDED: return ">" + blockHeader(string$7, state.indent) + dropEndingNewline(indentString(foldString(string$7, lineWidth), indent$2));
8239
+ case STYLE_DOUBLE: return "\"" + escapeString(string$7, lineWidth) + "\"";
8239
8240
  default: throw new YAMLException("impossible error: invalid scalar style");
8240
8241
  }
8241
8242
  }();
8242
8243
  }
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");
8244
+ function blockHeader(string$7, indentPerLevel) {
8245
+ var indentIndicator = needIndentIndicator(string$7) ? String(indentPerLevel) : "";
8246
+ var clip = string$7[string$7.length - 1] === "\n";
8247
+ var keep = clip && (string$7[string$7.length - 2] === "\n" || string$7 === "\n");
8247
8248
  var chomp = keep ? "+" : clip ? "" : "-";
8248
8249
  return indentIndicator + chomp + "\n";
8249
8250
  }
8250
- function dropEndingNewline(string$6) {
8251
- return string$6[string$6.length - 1] === "\n" ? string$6.slice(0, -1) : string$6;
8251
+ function dropEndingNewline(string$7) {
8252
+ return string$7[string$7.length - 1] === "\n" ? string$7.slice(0, -1) : string$7;
8252
8253
  }
8253
- function foldString(string$6, width) {
8254
+ function foldString(string$7, width) {
8254
8255
  var lineRe = /(\n+)([^\n]*)/g;
8255
8256
  var result = function() {
8256
- var nextLF = string$6.indexOf("\n");
8257
- nextLF = nextLF !== -1 ? nextLF : string$6.length;
8257
+ var nextLF = string$7.indexOf("\n");
8258
+ nextLF = nextLF !== -1 ? nextLF : string$7.length;
8258
8259
  lineRe.lastIndex = nextLF;
8259
- return foldLine(string$6.slice(0, nextLF), width);
8260
+ return foldLine(string$7.slice(0, nextLF), width);
8260
8261
  }();
8261
- var prevMoreIndented = string$6[0] === "\n" || string$6[0] === " ";
8262
+ var prevMoreIndented = string$7[0] === "\n" || string$7[0] === " ";
8262
8263
  var moreIndented;
8263
8264
  var match;
8264
- while (match = lineRe.exec(string$6)) {
8265
+ while (match = lineRe.exec(string$7)) {
8265
8266
  var prefix = match[1], line$2 = match[2];
8266
8267
  moreIndented = line$2[0] === " ";
8267
8268
  result += prefix + (!prevMoreIndented && !moreIndented && line$2 !== "" ? "\n" : "") + foldLine(line$2, width);
@@ -8289,14 +8290,14 @@ var require_dumper = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
8289
8290
  else result += line$2.slice(start);
8290
8291
  return result.slice(1);
8291
8292
  }
8292
- function escapeString(string$6) {
8293
+ function escapeString(string$7) {
8293
8294
  var result = "";
8294
8295
  var char, nextChar;
8295
8296
  var escapeSeq;
8296
- for (var i$2 = 0; i$2 < string$6.length; i$2++) {
8297
- char = string$6.charCodeAt(i$2);
8297
+ for (var i$2 = 0; i$2 < string$7.length; i$2++) {
8298
+ char = string$7.charCodeAt(i$2);
8298
8299
  if (char >= 55296 && char <= 56319) {
8299
- nextChar = string$6.charCodeAt(i$2 + 1);
8300
+ nextChar = string$7.charCodeAt(i$2 + 1);
8300
8301
  if (nextChar >= 56320 && nextChar <= 57343) {
8301
8302
  result += encodeHex((char - 55296) * 1024 + nextChar - 56320 + 65536);
8302
8303
  i$2++;
@@ -8304,22 +8305,22 @@ var require_dumper = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
8304
8305
  }
8305
8306
  }
8306
8307
  escapeSeq = ESCAPE_SEQUENCES[char];
8307
- result += !escapeSeq && isPrintable(char) ? string$6[i$2] : escapeSeq || encodeHex(char);
8308
+ result += !escapeSeq && isPrintable(char) ? string$7[i$2] : escapeSeq || encodeHex(char);
8308
8309
  }
8309
8310
  return result;
8310
8311
  }
8311
- function writeFlowSequence(state, level, object$1) {
8312
+ function writeFlowSequence(state, level, object$2) {
8312
8313
  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)) {
8314
+ 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
8315
  if (index$1 !== 0) _result += "," + (!state.condenseFlow ? " " : "");
8315
8316
  _result += state.dump;
8316
8317
  }
8317
8318
  state.tag = _tag;
8318
8319
  state.dump = "[" + _result + "]";
8319
8320
  }
8320
- function writeBlockSequence(state, level, object$1, compact) {
8321
+ function writeBlockSequence(state, level, object$2, compact) {
8321
8322
  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)) {
8323
+ 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
8324
  if (!compact || index$1 !== 0) _result += generateNextLine(state, level);
8324
8325
  if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) _result += "-";
8325
8326
  else _result += "- ";
@@ -8328,14 +8329,14 @@ var require_dumper = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
8328
8329
  state.tag = _tag;
8329
8330
  state.dump = _result || "[]";
8330
8331
  }
8331
- function writeFlowMapping(state, level, object$1) {
8332
- var _result = "", _tag = state.tag, objectKeyList = Object.keys(object$1), index$1, length, objectKey, objectValue, pairBuffer;
8332
+ function writeFlowMapping(state, level, object$2) {
8333
+ var _result = "", _tag = state.tag, objectKeyList = Object.keys(object$2), index$1, length, objectKey, objectValue, pairBuffer;
8333
8334
  for (index$1 = 0, length = objectKeyList.length; index$1 < length; index$1 += 1) {
8334
8335
  pairBuffer = "";
8335
8336
  if (index$1 !== 0) pairBuffer += ", ";
8336
8337
  if (state.condenseFlow) pairBuffer += "\"";
8337
8338
  objectKey = objectKeyList[index$1];
8338
- objectValue = object$1[objectKey];
8339
+ objectValue = object$2[objectKey];
8339
8340
  if (!writeNode(state, level, objectKey, false, false)) continue;
8340
8341
  if (state.dump.length > 1024) pairBuffer += "? ";
8341
8342
  pairBuffer += state.dump + (state.condenseFlow ? "\"" : "") + ":" + (state.condenseFlow ? "" : " ");
@@ -8346,8 +8347,8 @@ var require_dumper = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
8346
8347
  state.tag = _tag;
8347
8348
  state.dump = "{" + _result + "}";
8348
8349
  }
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;
8350
+ function writeBlockMapping(state, level, object$2, compact) {
8351
+ var _result = "", _tag = state.tag, objectKeyList = Object.keys(object$2), index$1, length, objectKey, objectValue, explicitPair, pairBuffer;
8351
8352
  if (state.sortKeys === true) objectKeyList.sort();
8352
8353
  else if (typeof state.sortKeys === "function") objectKeyList.sort(state.sortKeys);
8353
8354
  else if (state.sortKeys) throw new YAMLException("sortKeys must be a boolean or a function");
@@ -8355,7 +8356,7 @@ var require_dumper = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
8355
8356
  pairBuffer = "";
8356
8357
  if (!compact || index$1 !== 0) pairBuffer += generateNextLine(state, level);
8357
8358
  objectKey = objectKeyList[index$1];
8358
- objectValue = object$1[objectKey];
8359
+ objectValue = object$2[objectKey];
8359
8360
  if (!writeNode(state, level + 1, objectKey, true, true, true)) continue;
8360
8361
  explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
8361
8362
  if (explicitPair) if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) pairBuffer += "?";
@@ -8371,17 +8372,17 @@ var require_dumper = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
8371
8372
  state.tag = _tag;
8372
8373
  state.dump = _result || "{}";
8373
8374
  }
8374
- function detectType(state, object$1, explicit) {
8375
+ function detectType(state, object$2, explicit) {
8375
8376
  var _result, typeList, index$1, length, type$1, style;
8376
8377
  typeList = explicit ? state.explicitTypes : state.implicitTypes;
8377
8378
  for (index$1 = 0, length = typeList.length; index$1 < length; index$1 += 1) {
8378
8379
  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))) {
8380
+ 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
8381
  state.tag = explicit ? type$1.tag : "?";
8381
8382
  if (type$1.represent) {
8382
8383
  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);
8384
+ if (_toString.call(type$1.represent) === "[object Function]") _result = type$1.represent(object$2, style);
8385
+ else if (_hasOwnProperty.call(type$1.represent, style)) _result = type$1.represent[style](object$2, style);
8385
8386
  else throw new YAMLException("!<" + type$1.tag + "> tag resolver accepts not \"" + style + "\" style");
8386
8387
  state.dump = _result;
8387
8388
  }
@@ -8390,15 +8391,15 @@ var require_dumper = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
8390
8391
  }
8391
8392
  return false;
8392
8393
  }
8393
- function writeNode(state, level, object$1, block, compact, iskey) {
8394
+ function writeNode(state, level, object$2, block, compact, iskey) {
8394
8395
  state.tag = null;
8395
- state.dump = object$1;
8396
- if (!detectType(state, object$1, false)) detectType(state, object$1, true);
8396
+ state.dump = object$2;
8397
+ if (!detectType(state, object$2, false)) detectType(state, object$2, true);
8397
8398
  var type$1 = _toString.call(state.dump);
8398
8399
  if (block) block = state.flowLevel < 0 || state.flowLevel > level;
8399
8400
  var objectOrArray = type$1 === "[object Object]" || type$1 === "[object Array]", duplicateIndex, duplicate;
8400
8401
  if (objectOrArray) {
8401
- duplicateIndex = state.duplicates.indexOf(object$1);
8402
+ duplicateIndex = state.duplicates.indexOf(object$2);
8402
8403
  duplicate = duplicateIndex !== -1;
8403
8404
  }
8404
8405
  if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0) compact = false;
@@ -8431,24 +8432,24 @@ var require_dumper = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
8431
8432
  }
8432
8433
  return true;
8433
8434
  }
8434
- function getDuplicateReferences(object$1, state) {
8435
+ function getDuplicateReferences(object$2, state) {
8435
8436
  var objects = [], duplicatesIndexes = [], index$1, length;
8436
- inspectNode(object$1, objects, duplicatesIndexes);
8437
+ inspectNode(object$2, objects, duplicatesIndexes);
8437
8438
  for (index$1 = 0, length = duplicatesIndexes.length; index$1 < length; index$1 += 1) state.duplicates.push(objects[duplicatesIndexes[index$1]]);
8438
8439
  state.usedDuplicates = new Array(length);
8439
8440
  }
8440
- function inspectNode(object$1, objects, duplicatesIndexes) {
8441
+ function inspectNode(object$2, objects, duplicatesIndexes) {
8441
8442
  var objectKeyList, index$1, length;
8442
- if (object$1 !== null && typeof object$1 === "object") {
8443
- index$1 = objects.indexOf(object$1);
8443
+ if (object$2 !== null && typeof object$2 === "object") {
8444
+ index$1 = objects.indexOf(object$2);
8444
8445
  if (index$1 !== -1) {
8445
8446
  if (duplicatesIndexes.indexOf(index$1) === -1) duplicatesIndexes.push(index$1);
8446
8447
  } 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);
8448
+ objects.push(object$2);
8449
+ 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
8450
  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);
8451
+ objectKeyList = Object.keys(object$2);
8452
+ for (index$1 = 0, length = objectKeyList.length; index$1 < length; index$1 += 1) inspectNode(object$2[objectKeyList[index$1]], objects, duplicatesIndexes);
8452
8453
  }
8453
8454
  }
8454
8455
  }
@@ -8756,7 +8757,7 @@ var require_parse$3 = __commonJS$2({ "../../node_modules/.pnpm/gray-matter@4.0.3
8756
8757
  //#endregion
8757
8758
  //#region ../../node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/index.js
8758
8759
  var require_gray_matter = __commonJS$2({ "../../node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/index.js"(exports, module) {
8759
- const fs$9 = __require$1("fs");
8760
+ const fs$10 = __require$1("fs");
8760
8761
  const sections = require_section_matter();
8761
8762
  const defaults = require_defaults();
8762
8763
  const stringify$4 = require_stringify$2();
@@ -8881,7 +8882,7 @@ var require_gray_matter = __commonJS$2({ "../../node_modules/.pnpm/gray-matter@4
8881
8882
  * @api public
8882
8883
  */
8883
8884
  matter$2.read = function(filepath, options$1) {
8884
- const str = fs$9.readFileSync(filepath, "utf8");
8885
+ const str = fs$10.readFileSync(filepath, "utf8");
8885
8886
  const file$1 = matter$2(str, options$1);
8886
8887
  file$1.path = filepath;
8887
8888
  return file$1;
@@ -8924,7 +8925,7 @@ var require_gray_matter = __commonJS$2({ "../../node_modules/.pnpm/gray-matter@4
8924
8925
  } });
8925
8926
 
8926
8927
  //#endregion
8927
- //#region ../../node_modules/.pnpm/@gaubee+nodekit@0.12.0_@gau_ac796b2c5c73dab9bab91ba9e75b6834/node_modules/@gaubee/nodekit/esm/markdown_file.js
8928
+ //#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
8929
  var import_gray_matter = __toESM$1(require_gray_matter(), 1);
8929
8930
 
8930
8931
  //#endregion
@@ -8949,8 +8950,8 @@ var require_ignore$1 = __commonJS$2({ "../../node_modules/.pnpm/ignore@7.0.5/nod
8949
8950
  /* istanbul ignore else */
8950
8951
  if (typeof Symbol !== "undefined") TMP_KEY_IGNORE = Symbol.for("node-ignore");
8951
8952
  const KEY_IGNORE = TMP_KEY_IGNORE;
8952
- const define = (object$1, key$1, value) => {
8953
- Object.defineProperty(object$1, key$1, { value });
8953
+ const define = (object$2, key$1, value) => {
8954
+ Object.defineProperty(object$2, key$1, { value });
8954
8955
  return value;
8955
8956
  };
8956
8957
  const REGEX_REGEXP_RANGE = /([0-z])-([0-z])/g;
@@ -9339,17 +9340,17 @@ var require_yoctocolors_cjs = __commonJS$2({ "../../node_modules/.pnpm/yoctocolo
9339
9340
  const openCode = `\u001B[${open}m`;
9340
9341
  const closeCode = `\u001B[${close}m`;
9341
9342
  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;
9343
+ const string$7 = input + "";
9344
+ let index$1 = string$7.indexOf(closeCode);
9345
+ if (index$1 === -1) return openCode + string$7 + closeCode;
9345
9346
  let result = openCode;
9346
9347
  let lastIndex = 0;
9347
9348
  while (index$1 !== -1) {
9348
- result += string$6.slice(lastIndex, index$1) + openCode;
9349
+ result += string$7.slice(lastIndex, index$1) + openCode;
9349
9350
  lastIndex = index$1 + closeCode.length;
9350
- index$1 = string$6.indexOf(closeCode, lastIndex);
9351
+ index$1 = string$7.indexOf(closeCode, lastIndex);
9351
9352
  }
9352
- result += string$6.slice(lastIndex) + closeCode;
9353
+ result += string$7.slice(lastIndex) + closeCode;
9353
9354
  return result;
9354
9355
  };
9355
9356
  };
@@ -9852,7 +9853,7 @@ var require_ansi_regex = __commonJS$2({ "../../node_modules/.pnpm/ansi-regex@5.0
9852
9853
  //#region ../../node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js
9853
9854
  var require_strip_ansi = __commonJS$2({ "../../node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js"(exports, module) {
9854
9855
  const ansiRegex = require_ansi_regex();
9855
- module.exports = (string$6) => typeof string$6 === "string" ? string$6.replace(ansiRegex(), "") : string$6;
9856
+ module.exports = (string$7) => typeof string$7 === "string" ? string$7.replace(ansiRegex(), "") : string$7;
9856
9857
  } });
9857
9858
 
9858
9859
  //#endregion
@@ -9881,14 +9882,14 @@ var require_string_width = __commonJS$2({ "../../node_modules/.pnpm/string-width
9881
9882
  const stripAnsi$1 = require_strip_ansi();
9882
9883
  const isFullwidthCodePoint = require_is_fullwidth_code_point();
9883
9884
  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(), " ");
9885
+ const stringWidth$1 = (string$7) => {
9886
+ if (typeof string$7 !== "string" || string$7.length === 0) return 0;
9887
+ string$7 = stripAnsi$1(string$7);
9888
+ if (string$7.length === 0) return 0;
9889
+ string$7 = string$7.replace(emojiRegex(), " ");
9889
9890
  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);
9891
+ for (let i$2 = 0; i$2 < string$7.length; i$2++) {
9892
+ const code$1 = string$7.codePointAt(i$2);
9892
9893
  if (code$1 <= 31 || code$1 >= 127 && code$1 <= 159) continue;
9893
9894
  if (code$1 >= 768 && code$1 <= 879) continue;
9894
9895
  if (code$1 > 65535) i$2++;
@@ -10851,27 +10852,27 @@ var require_conversions = __commonJS$2({ "../../node_modules/.pnpm/color-convert
10851
10852
  b$1 = b$1 > .04045 ? ((b$1 + .055) / 1.055) ** 2.4 : b$1 / 12.92;
10852
10853
  const x$1 = r$1 * .4124 + g$1 * .3576 + b$1 * .1805;
10853
10854
  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;
10855
+ const z$1 = r$1 * .0193 + g$1 * .1192 + b$1 * .9505;
10855
10856
  return [
10856
10857
  x$1 * 100,
10857
10858
  y$2 * 100,
10858
- z$2 * 100
10859
+ z$1 * 100
10859
10860
  ];
10860
10861
  };
10861
10862
  convert$2.rgb.lab = function(rgb) {
10862
10863
  const xyz = convert$2.rgb.xyz(rgb);
10863
10864
  let x$1 = xyz[0];
10864
10865
  let y$2 = xyz[1];
10865
- let z$2 = xyz[2];
10866
+ let z$1 = xyz[2];
10866
10867
  x$1 /= 95.047;
10867
10868
  y$2 /= 100;
10868
- z$2 /= 108.883;
10869
+ z$1 /= 108.883;
10869
10870
  x$1 = x$1 > .008856 ? x$1 ** (1 / 3) : 7.787 * x$1 + 16 / 116;
10870
10871
  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;
10872
+ z$1 = z$1 > .008856 ? z$1 ** (1 / 3) : 7.787 * z$1 + 16 / 116;
10872
10873
  const l$1 = 116 * y$2 - 16;
10873
10874
  const a$1 = 500 * (x$1 - y$2);
10874
- const b$1 = 200 * (y$2 - z$2);
10875
+ const b$1 = 200 * (y$2 - z$1);
10875
10876
  return [
10876
10877
  l$1,
10877
10878
  a$1,
@@ -11067,13 +11068,13 @@ var require_conversions = __commonJS$2({ "../../node_modules/.pnpm/color-convert
11067
11068
  convert$2.xyz.rgb = function(xyz) {
11068
11069
  const x$1 = xyz[0] / 100;
11069
11070
  const y$2 = xyz[1] / 100;
11070
- const z$2 = xyz[2] / 100;
11071
+ const z$1 = xyz[2] / 100;
11071
11072
  let r$1;
11072
11073
  let g$1;
11073
11074
  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;
11075
+ r$1 = x$1 * 3.2406 + y$2 * -1.5372 + z$1 * -.4986;
11076
+ g$1 = x$1 * -.9689 + y$2 * 1.8758 + z$1 * .0415;
11077
+ b$1 = x$1 * .0557 + y$2 * -.204 + z$1 * 1.057;
11077
11078
  r$1 = r$1 > .0031308 ? 1.055 * r$1 ** (1 / 2.4) - .055 : r$1 * 12.92;
11078
11079
  g$1 = g$1 > .0031308 ? 1.055 * g$1 ** (1 / 2.4) - .055 : g$1 * 12.92;
11079
11080
  b$1 = b$1 > .0031308 ? 1.055 * b$1 ** (1 / 2.4) - .055 : b$1 * 12.92;
@@ -11089,16 +11090,16 @@ var require_conversions = __commonJS$2({ "../../node_modules/.pnpm/color-convert
11089
11090
  convert$2.xyz.lab = function(xyz) {
11090
11091
  let x$1 = xyz[0];
11091
11092
  let y$2 = xyz[1];
11092
- let z$2 = xyz[2];
11093
+ let z$1 = xyz[2];
11093
11094
  x$1 /= 95.047;
11094
11095
  y$2 /= 100;
11095
- z$2 /= 108.883;
11096
+ z$1 /= 108.883;
11096
11097
  x$1 = x$1 > .008856 ? x$1 ** (1 / 3) : 7.787 * x$1 + 16 / 116;
11097
11098
  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;
11099
+ z$1 = z$1 > .008856 ? z$1 ** (1 / 3) : 7.787 * z$1 + 16 / 116;
11099
11100
  const l$1 = 116 * y$2 - 16;
11100
11101
  const a$1 = 500 * (x$1 - y$2);
11101
- const b$1 = 200 * (y$2 - z$2);
11102
+ const b$1 = 200 * (y$2 - z$1);
11102
11103
  return [
11103
11104
  l$1,
11104
11105
  a$1,
@@ -11111,23 +11112,23 @@ var require_conversions = __commonJS$2({ "../../node_modules/.pnpm/color-convert
11111
11112
  const b$1 = lab[2];
11112
11113
  let x$1;
11113
11114
  let y$2;
11114
- let z$2;
11115
+ let z$1;
11115
11116
  y$2 = (l$1 + 16) / 116;
11116
11117
  x$1 = a$1 / 500 + y$2;
11117
- z$2 = y$2 - b$1 / 200;
11118
+ z$1 = y$2 - b$1 / 200;
11118
11119
  const y2 = y$2 ** 3;
11119
11120
  const x2 = x$1 ** 3;
11120
- const z2 = z$2 ** 3;
11121
+ const z2 = z$1 ** 3;
11121
11122
  y$2 = y2 > .008856 ? y2 : (y$2 - 16 / 116) / 7.787;
11122
11123
  x$1 = x2 > .008856 ? x2 : (x$1 - 16 / 116) / 7.787;
11123
- z$2 = z2 > .008856 ? z2 : (z$2 - 16 / 116) / 7.787;
11124
+ z$1 = z2 > .008856 ? z2 : (z$1 - 16 / 116) / 7.787;
11124
11125
  x$1 *= 95.047;
11125
11126
  y$2 *= 100;
11126
- z$2 *= 108.883;
11127
+ z$1 *= 108.883;
11127
11128
  return [
11128
11129
  x$1,
11129
11130
  y$2,
11130
- z$2
11131
+ z$1
11131
11132
  ];
11132
11133
  };
11133
11134
  convert$2.lab.lch = function(lab) {
@@ -11225,8 +11226,8 @@ var require_conversions = __commonJS$2({ "../../node_modules/.pnpm/color-convert
11225
11226
  };
11226
11227
  convert$2.rgb.hex = function(args) {
11227
11228
  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;
11229
+ const string$7 = integer$1.toString(16).toUpperCase();
11230
+ return "000000".substring(string$7.length) + string$7;
11230
11231
  };
11231
11232
  convert$2.hex.rgb = function(args) {
11232
11233
  const match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
@@ -11454,8 +11455,8 @@ var require_conversions = __commonJS$2({ "../../node_modules/.pnpm/color-convert
11454
11455
  convert$2.gray.hex = function(gray$1) {
11455
11456
  const val = Math.round(gray$1[0] / 100 * 255) & 255;
11456
11457
  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;
11458
+ const string$7 = integer$1.toString(16).toUpperCase();
11459
+ return "000000".substring(string$7.length) + string$7;
11459
11460
  };
11460
11461
  convert$2.rgb.gray = function(rgb) {
11461
11462
  const val = (rgb[0] + rgb[1] + rgb[2]) / 3;
@@ -11591,11 +11592,11 @@ var require_ansi_styles = __commonJS$2({ "../../node_modules/.pnpm/ansi-styles@4
11591
11592
  g$1,
11592
11593
  b$1
11593
11594
  ];
11594
- const setLazyProperty = (object$1, property, get) => {
11595
- Object.defineProperty(object$1, property, {
11595
+ const setLazyProperty = (object$2, property, get) => {
11596
+ Object.defineProperty(object$2, property, {
11596
11597
  get: () => {
11597
11598
  const value = get();
11598
- Object.defineProperty(object$1, property, {
11599
+ Object.defineProperty(object$2, property, {
11599
11600
  value,
11600
11601
  enumerable: true,
11601
11602
  configurable: true
@@ -11716,7 +11717,7 @@ var require_wrap_ansi = __commonJS$2({ "../../node_modules/.pnpm/wrap-ansi@6.2.0
11716
11717
  const ESCAPES = new Set(["\x1B", "›"]);
11717
11718
  const END_CODE = 39;
11718
11719
  const wrapAnsi$1 = (code$1) => `${ESCAPES.values().next().value}[${code$1}m`;
11719
- const wordLengths = (string$6) => string$6.split(" ").map((character) => stringWidth(character));
11720
+ const wordLengths = (string$7) => string$7.split(" ").map((character) => stringWidth(character));
11720
11721
  const wrapWord = (rows, word, columns) => {
11721
11722
  const characters = [...word];
11722
11723
  let isInsideEscape = false;
@@ -11752,14 +11753,14 @@ var require_wrap_ansi = __commonJS$2({ "../../node_modules/.pnpm/wrap-ansi@6.2.0
11752
11753
  if (last$1 === words.length) return str;
11753
11754
  return words.slice(0, last$1).join(" ") + words.slice(last$1).join("");
11754
11755
  };
11755
- const exec = (string$6, columns, options$1 = {}) => {
11756
- if (options$1.trim !== false && string$6.trim() === "") return "";
11756
+ const exec = (string$7, columns, options$1 = {}) => {
11757
+ if (options$1.trim !== false && string$7.trim() === "") return "";
11757
11758
  let pre = "";
11758
11759
  let ret = "";
11759
11760
  let escapeCode;
11760
- const lengths = wordLengths(string$6);
11761
+ const lengths = wordLengths(string$7);
11761
11762
  let rows = [""];
11762
- for (const [index$1, word] of string$6.split(" ").entries()) {
11763
+ for (const [index$1, word] of string$7.split(" ").entries()) {
11763
11764
  if (options$1.trim !== false) rows[rows.length - 1] = rows[rows.length - 1].trimLeft();
11764
11765
  let rowLength = stringWidth(rows[rows.length - 1]);
11765
11766
  if (index$1 !== 0) {
@@ -11809,8 +11810,8 @@ var require_wrap_ansi = __commonJS$2({ "../../node_modules/.pnpm/wrap-ansi@6.2.0
11809
11810
  }
11810
11811
  return ret;
11811
11812
  };
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");
11813
+ module.exports = (string$7, columns, options$1) => {
11814
+ return String(string$7).normalize().replace(/\r\n/g, "\n").split("\n").map((line$2) => exec(line$2, columns, options$1)).join("\n");
11814
11815
  };
11815
11816
  } });
11816
11817
 
@@ -13411,9 +13412,9 @@ var require_to_regex_range$1 = __commonJS$2({ "../../node_modules/.pnpm/to-regex
13411
13412
  function filterPatterns(arr, comparison, prefix, intersection$1, options$1) {
13412
13413
  let result = [];
13413
13414
  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);
13415
+ let { string: string$7 } = ele;
13416
+ if (!intersection$1 && !contains(comparison, "string", string$7)) result.push(prefix + string$7);
13417
+ if (intersection$1 && contains(comparison, "string", string$7)) result.push(prefix + string$7);
13417
13418
  }
13418
13419
  return result;
13419
13420
  }
@@ -16609,20 +16610,20 @@ var require_string$1 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3/
16609
16610
  var require_utils$2 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.js"(exports) {
16610
16611
  Object.defineProperty(exports, "__esModule", { value: true });
16611
16612
  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;
16613
+ const array$3 = require_array$1();
16614
+ exports.array = array$3;
16614
16615
  const errno = require_errno$1();
16615
16616
  exports.errno = errno;
16616
- const fs$8 = require_fs$4();
16617
- exports.fs = fs$8;
16617
+ const fs$9 = require_fs$4();
16618
+ exports.fs = fs$9;
16618
16619
  const path$6 = require_path$1();
16619
16620
  exports.path = path$6;
16620
16621
  const pattern = require_pattern$1();
16621
16622
  exports.pattern = pattern;
16622
16623
  const stream = require_stream$4();
16623
16624
  exports.stream = stream;
16624
- const string$5 = require_string$1();
16625
- exports.string = string$5;
16625
+ const string$6 = require_string$1();
16626
+ exports.string = string$6;
16626
16627
  } });
16627
16628
 
16628
16629
  //#endregion
@@ -16786,12 +16787,12 @@ var require_sync$6 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.stat@2
16786
16787
  var require_fs$3 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/adapters/fs.js"(exports) {
16787
16788
  Object.defineProperty(exports, "__esModule", { value: true });
16788
16789
  exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
16789
- const fs$7 = __require$1("fs");
16790
+ const fs$8 = __require$1("fs");
16790
16791
  exports.FILE_SYSTEM_ADAPTER = {
16791
- lstat: fs$7.lstat,
16792
- stat: fs$7.stat,
16793
- lstatSync: fs$7.lstatSync,
16794
- statSync: fs$7.statSync
16792
+ lstat: fs$8.lstat,
16793
+ stat: fs$8.stat,
16794
+ lstatSync: fs$8.lstatSync,
16795
+ statSync: fs$8.statSync
16795
16796
  };
16796
16797
  function createFileSystemAdapter$1(fsMethods) {
16797
16798
  if (fsMethods === void 0) return exports.FILE_SYSTEM_ADAPTER;
@@ -16804,12 +16805,12 @@ var require_fs$3 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.stat@2.0
16804
16805
  //#region ../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.js
16805
16806
  var require_settings$4 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.js"(exports) {
16806
16807
  Object.defineProperty(exports, "__esModule", { value: true });
16807
- const fs$6 = require_fs$3();
16808
+ const fs$7 = require_fs$3();
16808
16809
  var Settings$3 = class {
16809
16810
  constructor(_options = {}) {
16810
16811
  this._options = _options;
16811
16812
  this.followSymbolicLink = this._getValue(this._options.followSymbolicLink, true);
16812
- this.fs = fs$6.createFileSystemAdapter(this._options.fs);
16813
+ this.fs = fs$7.createFileSystemAdapter(this._options.fs);
16813
16814
  this.markSymbolicLink = this._getValue(this._options.markSymbolicLink, false);
16814
16815
  this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
16815
16816
  }
@@ -16949,8 +16950,8 @@ var require_fs$2 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.scandir@
16949
16950
  var require_utils$1 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.js"(exports) {
16950
16951
  Object.defineProperty(exports, "__esModule", { value: true });
16951
16952
  exports.fs = void 0;
16952
- const fs$5 = require_fs$2();
16953
- exports.fs = fs$5;
16953
+ const fs$6 = require_fs$2();
16954
+ exports.fs = fs$6;
16954
16955
  } });
16955
16956
 
16956
16957
  //#endregion
@@ -17128,14 +17129,14 @@ var require_sync$5 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.scandi
17128
17129
  var require_fs$1 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/adapters/fs.js"(exports) {
17129
17130
  Object.defineProperty(exports, "__esModule", { value: true });
17130
17131
  exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
17131
- const fs$4 = __require$1("fs");
17132
+ const fs$5 = __require$1("fs");
17132
17133
  exports.FILE_SYSTEM_ADAPTER = {
17133
- lstat: fs$4.lstat,
17134
- stat: fs$4.stat,
17135
- lstatSync: fs$4.lstatSync,
17136
- statSync: fs$4.statSync,
17137
- readdir: fs$4.readdir,
17138
- readdirSync: fs$4.readdirSync
17134
+ lstat: fs$5.lstat,
17135
+ stat: fs$5.stat,
17136
+ lstatSync: fs$5.lstatSync,
17137
+ statSync: fs$5.statSync,
17138
+ readdir: fs$5.readdir,
17139
+ readdirSync: fs$5.readdirSync
17139
17140
  };
17140
17141
  function createFileSystemAdapter(fsMethods) {
17141
17142
  if (fsMethods === void 0) return exports.FILE_SYSTEM_ADAPTER;
@@ -17150,12 +17151,12 @@ var require_settings$3 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.sc
17150
17151
  Object.defineProperty(exports, "__esModule", { value: true });
17151
17152
  const path$5 = __require$1("path");
17152
17153
  const fsStat$3 = require_out$4();
17153
- const fs$3 = require_fs$1();
17154
+ const fs$4 = require_fs$1();
17154
17155
  var Settings$2 = class {
17155
17156
  constructor(_options = {}) {
17156
17157
  this._options = _options;
17157
17158
  this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
17158
- this.fs = fs$3.createFileSystemAdapter(this._options.fs);
17159
+ this.fs = fs$4.createFileSystemAdapter(this._options.fs);
17159
17160
  this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$5.sep);
17160
17161
  this.stats = this._getValue(this._options.stats, false);
17161
17162
  this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
@@ -18348,7 +18349,7 @@ var require_sync$1 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3/no
18348
18349
  var require_settings$1 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/settings.js"(exports) {
18349
18350
  Object.defineProperty(exports, "__esModule", { value: true });
18350
18351
  exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
18351
- const fs$2 = __require$1("fs");
18352
+ const fs$3 = __require$1("fs");
18352
18353
  const os$1 = __require$1("os");
18353
18354
  /**
18354
18355
  * The `os.cpus` method can return zero. We expect the number of cores to be greater than zero.
@@ -18356,12 +18357,12 @@ var require_settings$1 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.
18356
18357
  */
18357
18358
  const CPU_COUNT = Math.max(os$1.cpus().length, 1);
18358
18359
  exports.DEFAULT_FILE_SYSTEM_ADAPTER = {
18359
- lstat: fs$2.lstat,
18360
- lstatSync: fs$2.lstatSync,
18361
- stat: fs$2.stat,
18362
- statSync: fs$2.statSync,
18363
- readdir: fs$2.readdir,
18364
- readdirSync: fs$2.readdirSync
18360
+ lstat: fs$3.lstat,
18361
+ lstatSync: fs$3.lstatSync,
18362
+ stat: fs$3.stat,
18363
+ statSync: fs$3.statSync,
18364
+ readdir: fs$3.readdir,
18365
+ readdirSync: fs$3.readdirSync
18365
18366
  };
18366
18367
  var Settings = class {
18367
18368
  constructor(_options = {}) {
@@ -18508,7 +18509,7 @@ var require_out$1 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3/nod
18508
18509
  async function isType(fsStatType, statsMethodName, filePath) {
18509
18510
  if (typeof filePath !== "string") throw new TypeError(`Expected a string, got ${typeof filePath}`);
18510
18511
  try {
18511
- const stats = await fsPromises[fsStatType](filePath);
18512
+ const stats = await fs$1[fsStatType](filePath);
18512
18513
  return stats[statsMethodName]();
18513
18514
  } catch (error$41) {
18514
18515
  if (error$41.code === "ENOENT") return false;
@@ -18605,7 +18606,7 @@ const isIgnoredByIgnoreFiles = async (patterns, options$1) => {
18605
18606
  });
18606
18607
  const files$1 = await Promise.all(paths.map(async (filePath) => ({
18607
18608
  filePath,
18608
- content: await fsPromises.readFile(filePath, "utf8")
18609
+ content: await fs$1.readFile(filePath, "utf8")
18609
18610
  })));
18610
18611
  return getIsIgnoredPredicate(files$1, cwd);
18611
18612
  };
@@ -23375,16 +23376,16 @@ var VALID_OBJECT_DOC_TYPES$1 = /* @__PURE__ */ new Set([
23375
23376
  DOC_TYPE_LABEL$1,
23376
23377
  DOC_TYPE_BREAK_PARENT$1
23377
23378
  ]);
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);
23379
+ var at$1 = (isOptionalObject, object$2, index$1) => {
23380
+ if (isOptionalObject && (object$2 === void 0 || object$2 === null)) return;
23381
+ if (Array.isArray(object$2) || typeof object$2 === "string") return object$2[index$1 < 0 ? object$2.length + index$1 : index$1];
23382
+ return object$2.at(index$1);
23382
23383
  };
23383
23384
  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;
23385
+ function trimNewlinesEnd$1(string$7) {
23386
+ let end = string$7.length;
23387
+ while (end > 0 && (string$7[end - 1] === "\r" || string$7[end - 1] === "\n")) end--;
23388
+ return end < string$7.length ? string$7.slice(0, end) : string$7;
23388
23389
  }
23389
23390
  function getDocType$1(doc) {
23390
23391
  if (typeof doc === "string") return DOC_TYPE_STRING$1;
@@ -24825,9 +24826,9 @@ var require_to_regex_range = __commonJS({ "node_modules/to-regex-range/index.js"
24825
24826
  function filterPatterns$1(arr, comparison, prefix, intersection$1, options8) {
24826
24827
  let result = [];
24827
24828
  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);
24829
+ let { string: string$7 } = ele;
24830
+ if (!intersection$1 && !contains$1(comparison, "string", string$7)) result.push(prefix + string$7);
24831
+ if (intersection$1 && contains$1(comparison, "string", string$7)) result.push(prefix + string$7);
24831
24832
  }
24832
24833
  return result;
24833
24834
  }
@@ -27285,8 +27286,8 @@ var require_utils3 = __commonJS({ "node_modules/fast-glob/out/utils/index.js"(ex
27285
27286
  exports$2.pattern = pattern$1;
27286
27287
  var stream$1 = require_stream();
27287
27288
  exports$2.stream = stream$1;
27288
- var string$6 = require_string();
27289
- exports$2.string = string$6;
27289
+ var string$7 = require_string();
27290
+ exports$2.string = string$7;
27290
27291
  } });
27291
27292
  var require_tasks = __commonJS({ "node_modules/fast-glob/out/managers/tasks.js"(exports$2) {
27292
27293
  "use strict";
@@ -29028,17 +29029,17 @@ var require_picocolors = __commonJS({ "node_modules/picocolors/picocolors.js"(ex
29028
29029
  var env$2 = p$1.env || {};
29029
29030
  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
29031
  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;
29032
+ let string$7 = "" + input, index$1 = string$7.indexOf(close, open.length);
29033
+ return ~index$1 ? open + replaceClose(string$7, close, replace, index$1) + close : open + string$7 + close;
29033
29034
  };
29034
- var replaceClose = (string$6, close, replace, index$1) => {
29035
+ var replaceClose = (string$7, close, replace, index$1) => {
29035
29036
  let result = "", cursor2 = 0;
29036
29037
  do {
29037
- result += string$6.substring(cursor2, index$1) + replace;
29038
+ result += string$7.substring(cursor2, index$1) + replace;
29038
29039
  cursor2 = index$1 + close.length;
29039
- index$1 = string$6.indexOf(close, cursor2);
29040
+ index$1 = string$7.indexOf(close, cursor2);
29040
29041
  } while (~index$1);
29041
- return result + string$6.substring(cursor2);
29042
+ return result + string$7.substring(cursor2);
29042
29043
  };
29043
29044
  var createColors = (enabled$1 = isColorSupported) => {
29044
29045
  let f$1 = enabled$1 ? formatter : () => String;
@@ -32348,11 +32349,11 @@ var require_lib2 = __commonJS({ "node_modules/@babel/code-frame/lib/index.js"(ex
32348
32349
  const numberMaxWidth = String(end).length;
32349
32350
  const highlightedLines = shouldHighlight ? highlight(rawLines) : rawLines;
32350
32351
  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);
32352
+ const number$4 = start + 1 + index2;
32353
+ const paddedNumber = ` ${number$4}`.slice(-numberMaxWidth);
32353
32354
  const gutter = ` ${paddedNumber} |`;
32354
- const hasMarker = markerLines[number$3];
32355
- const lastMarkerLine = !markerLines[number$3 + 1];
32355
+ const hasMarker = markerLines[number$4];
32356
+ const lastMarkerLine = !markerLines[number$4 + 1];
32356
32357
  if (hasMarker) {
32357
32358
  let markerLine = "";
32358
32359
  if (Array.isArray(hasMarker)) {
@@ -32516,8 +32517,8 @@ var require_ignore = __commonJS({ "node_modules/ignore/index.js"(exports$2, modu
32516
32517
  var TMP_KEY_IGNORE$1 = "node-ignore";
32517
32518
  if (typeof Symbol !== "undefined") TMP_KEY_IGNORE$1 = Symbol.for("node-ignore");
32518
32519
  var KEY_IGNORE$1 = TMP_KEY_IGNORE$1;
32519
- var define$1 = (object$1, key2, value) => {
32520
- Object.defineProperty(object$1, key2, { value });
32520
+ var define$1 = (object$2, key2, value) => {
32521
+ Object.defineProperty(object$2, key2, { value });
32521
32522
  return value;
32522
32523
  };
32523
32524
  var REGEX_REGEXP_RANGE$1 = /([0-z])-([0-z])/g;
@@ -33090,7 +33091,7 @@ function splitLines(text$2) {
33090
33091
  return result;
33091
33092
  }
33092
33093
  var import_fast_glob = __toESM(require_out4(), 1);
33093
- var array$1 = [];
33094
+ var array$2 = [];
33094
33095
  var characterCodeCache = [];
33095
33096
  function leven(first$1, second) {
33096
33097
  if (first$1 === second) return 0;
@@ -33118,7 +33119,7 @@ function leven(first$1, second) {
33118
33119
  let index2 = 0;
33119
33120
  while (index$1 < firstLength) {
33120
33121
  characterCodeCache[index$1] = first$1.charCodeAt(start + index$1);
33121
- array$1[index$1] = ++index$1;
33122
+ array$2[index$1] = ++index$1;
33122
33123
  }
33123
33124
  while (index2 < secondLength) {
33124
33125
  bCharacterCode = second.charCodeAt(start + index2);
@@ -33126,8 +33127,8 @@ function leven(first$1, second) {
33126
33127
  result = index2;
33127
33128
  for (index$1 = 0; index$1 < firstLength; index$1++) {
33128
33129
  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;
33130
+ temporary = array$2[index$1];
33131
+ result = array$2[index$1] = temporary > result ? temporary2 > result ? result + 1 : temporary2 : temporary2 > temporary ? temporary + 1 : temporary2;
33131
33132
  }
33132
33133
  }
33133
33134
  return result;
@@ -33517,7 +33518,7 @@ var defaultInvalidHandler = commonInvalidHandler;
33517
33518
  var defaultDeprecatedHandler = commonDeprecatedHandler;
33518
33519
  var Normalizer = class {
33519
33520
  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 || {};
33521
+ 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
33522
  this._utils = {
33522
33523
  descriptor,
33523
33524
  logger: logger$1 || { warn: () => {} },
@@ -33530,7 +33531,7 @@ var Normalizer = class {
33530
33531
  normalizeRedirectResult,
33531
33532
  normalizeValidateResult
33532
33533
  };
33533
- this._unknownHandler = unknown$1;
33534
+ this._unknownHandler = unknown$2;
33534
33535
  this._invalidHandler = normalizeInvalidHandler(invalid);
33535
33536
  this._deprecatedHandler = deprecated$1;
33536
33537
  this._identifyMissing = (k$1, o$1) => !(k$1 in o$1) || missing(k$1, o$1);
@@ -33743,7 +33744,7 @@ async function findInDirectory(nameOrNames, { typeCheck, cwd, allowSymlinks = tr
33743
33744
  }
33744
33745
  async function safeStat(path14, allowSymlinks = true) {
33745
33746
  try {
33746
- return await (allowSymlinks ? fs$1.stat : fs$1.lstat)(path14);
33747
+ return await (allowSymlinks ? fs$2.stat : fs$2.lstat)(path14);
33747
33748
  } catch {}
33748
33749
  }
33749
33750
  function findFile(nameOrNames, options8) {
@@ -34748,7 +34749,7 @@ getCodeFrame_fn = function(highlightCode) {
34748
34749
  return (0, import_code_frame.codeFrameColumns)(input, { start: location }, { highlightCode });
34749
34750
  };
34750
34751
  var JSONError = _JSONError;
34751
- var getErrorLocation = (string$6, message) => {
34752
+ var getErrorLocation = (string$7, message) => {
34752
34753
  const match = message.match(/in JSON at position (?<index>\d+)(?: \(line (?<line>\d+) column (?<column>\d+)\))?$/);
34753
34754
  if (!match) return;
34754
34755
  const { index: index$1, line: line3, column: column2 } = match.groups;
@@ -34756,30 +34757,30 @@ var getErrorLocation = (string$6, message) => {
34756
34757
  line: Number(line3),
34757
34758
  column: Number(column2)
34758
34759
  };
34759
- return indexToPosition(string$6, Number(index$1), { oneBased: true });
34760
+ return indexToPosition(string$7, Number(index$1), { oneBased: true });
34760
34761
  };
34761
34762
  var addCodePointToUnexpectedToken = (message) => message.replace(/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/, (_$1, _quote, token2) => `"${token2}"(${getCodePoint(token2)})`);
34762
- function parseJson(string$6, reviver, fileName) {
34763
+ function parseJson(string$7, reviver, fileName) {
34763
34764
  if (typeof reviver === "string") {
34764
34765
  fileName = reviver;
34765
34766
  reviver = void 0;
34766
34767
  }
34767
34768
  try {
34768
- return JSON.parse(string$6, reviver);
34769
+ return JSON.parse(string$7, reviver);
34769
34770
  } catch (error$41) {
34770
34771
  throw new JSONError({
34771
34772
  jsonParseError: error$41,
34772
34773
  fileName,
34773
- input: string$6
34774
+ input: string$7
34774
34775
  });
34775
34776
  }
34776
34777
  }
34777
- function getLineColFromPtr(string$6, ptr) {
34778
- let lines = string$6.slice(0, ptr).split(/\r\n|\n|\r/g);
34778
+ function getLineColFromPtr(string$7, ptr) {
34779
+ let lines = string$7.slice(0, ptr).split(/\r\n|\n|\r/g);
34779
34780
  return [lines.length, lines.pop().length + 1];
34780
34781
  }
34781
- function makeCodeBlock(string$6, line3, column2) {
34782
- let lines = string$6.split(/\r\n|\n|\r/g);
34782
+ function makeCodeBlock(string$7, line3, column2) {
34783
+ let lines = string$7.split(/\r\n|\n|\r/g);
34783
34784
  let codeblock = "";
34784
34785
  let numberLen = (Math.log10(line3 + 1) | 0) + 1;
34785
34786
  for (let i$2 = line3 - 1; i$2 <= line3 + 1; i$2++) {
@@ -35766,9 +35767,9 @@ var cache = /* @__PURE__ */ new Map();
35766
35767
  function read2(jsonPath, { base, specifier }) {
35767
35768
  const existing = cache.get(jsonPath);
35768
35769
  if (existing) return existing;
35769
- let string$6;
35770
+ let string$7;
35770
35771
  try {
35771
- string$6 = fs3.readFileSync(path10.toNamespacedPath(jsonPath), "utf8");
35772
+ string$7 = fs3.readFileSync(path10.toNamespacedPath(jsonPath), "utf8");
35772
35773
  } catch (error$41) {
35773
35774
  const exception = error$41;
35774
35775
  if (exception.code !== "ENOENT") throw exception;
@@ -35782,10 +35783,10 @@ function read2(jsonPath, { base, specifier }) {
35782
35783
  exports: void 0,
35783
35784
  imports: void 0
35784
35785
  };
35785
- if (string$6 !== void 0) {
35786
+ if (string$7 !== void 0) {
35786
35787
  let parsed;
35787
35788
  try {
35788
- parsed = JSON.parse(string$6);
35789
+ parsed = JSON.parse(string$7);
35789
35790
  } catch (error_) {
35790
35791
  const cause = error_;
35791
35792
  const error$41 = new ERR_INVALID_PACKAGE_CONFIG(jsonPath, (base ? `"${specifier}" from ` : "") + fileURLToPath$1(base || specifier), cause.message);
@@ -36579,16 +36580,16 @@ var VALID_OBJECT_DOC_TYPES = /* @__PURE__ */ new Set([
36579
36580
  DOC_TYPE_LABEL,
36580
36581
  DOC_TYPE_BREAK_PARENT
36581
36582
  ]);
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);
36583
+ var at = (isOptionalObject, object$2, index$1) => {
36584
+ if (isOptionalObject && (object$2 === void 0 || object$2 === null)) return;
36585
+ if (Array.isArray(object$2) || typeof object$2 === "string") return object$2[index$1 < 0 ? object$2.length + index$1 : index$1];
36586
+ return object$2.at(index$1);
36586
36587
  };
36587
36588
  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;
36589
+ function trimNewlinesEnd(string$7) {
36590
+ let end = string$7.length;
36591
+ while (end > 0 && (string$7[end - 1] === "\r" || string$7[end - 1] === "\n")) end--;
36592
+ return end < string$7.length ? string$7.slice(0, end) : string$7;
36592
36593
  }
36593
36594
  function getDocType(doc2) {
36594
36595
  if (typeof doc2 === "string") return DOC_TYPE_STRING;
@@ -37612,13 +37613,13 @@ var AstPath = class {
37612
37613
  let node$1 = this.stack[stackPointer--];
37613
37614
  for (const predicate of predicates) {
37614
37615
  if (node$1 === void 0) return false;
37615
- let number$3 = null;
37616
+ let number$4 = null;
37616
37617
  if (typeof name$1 === "number") {
37617
- number$3 = name$1;
37618
+ number$4 = name$1;
37618
37619
  name$1 = this.stack[stackPointer--];
37619
37620
  node$1 = this.stack[stackPointer--];
37620
37621
  }
37621
- if (predicate && !predicate(node$1, name$1, number$3)) return false;
37622
+ if (predicate && !predicate(node$1, name$1, number$4)) return false;
37622
37623
  name$1 = this.stack[stackPointer--];
37623
37624
  node$1 = this.stack[stackPointer--];
37624
37625
  }
@@ -37661,8 +37662,8 @@ getAncestors_fn = function* () {
37661
37662
  }
37662
37663
  };
37663
37664
  var ast_path_default = AstPath;
37664
- function isObject$1(object$1) {
37665
- return object$1 !== null && typeof object$1 === "object";
37665
+ function isObject$1(object$2) {
37666
+ return object$2 !== null && typeof object$2 === "object";
37666
37667
  }
37667
37668
  var is_object_default = isObject$1;
37668
37669
  function* getChildren(node$1, options8) {
@@ -37729,8 +37730,8 @@ function hasNewline(text$2, startIndex, options8 = {}) {
37729
37730
  return idx !== idx2;
37730
37731
  }
37731
37732
  var has_newline_default = hasNewline;
37732
- function isNonEmptyArray(object$1) {
37733
- return Array.isArray(object$1) && object$1.length > 0;
37733
+ function isNonEmptyArray(object$2) {
37734
+ return Array.isArray(object$2) && object$2.length > 0;
37734
37735
  }
37735
37736
  var is_non_empty_array_default = isNonEmptyArray;
37736
37737
  var nonTraversableKeys = /* @__PURE__ */ new Set([
@@ -38401,7 +38402,7 @@ function normalizeOptions(options8, optionInfos, { logger: logger$1 = false, isC
38401
38402
  if (!FlagSchema) throw new Error("'FlagSchema' option is required.");
38402
38403
  if (!descriptor) throw new Error("'descriptor' option is required.");
38403
38404
  } else descriptor = apiDescriptor;
38404
- const unknown$1 = !passThrough ? (key2, value, options9) => {
38405
+ const unknown$2 = !passThrough ? (key2, value, options9) => {
38405
38406
  const { _: _$1,...schemas2 } = options9.schemas;
38406
38407
  return levenUnknownHandler(key2, value, {
38407
38408
  ...options9,
@@ -38414,7 +38415,7 @@ function normalizeOptions(options8, optionInfos, { logger: logger$1 = false, isC
38414
38415
  });
38415
38416
  const normalizer = new Normalizer(schemas, {
38416
38417
  logger: logger$1,
38417
- unknown: unknown$1,
38418
+ unknown: unknown$2,
38418
38419
  descriptor
38419
38420
  });
38420
38421
  const shouldSuppressDuplicateDeprecationWarnings = logger$1 !== false;
@@ -40097,9 +40098,9 @@ async function isIgnored(file$1, options8) {
40097
40098
  const isIgnored2 = await createIsIgnoredFunction(ignoreFiles, withNodeModules);
40098
40099
  return isIgnored2(file$1);
40099
40100
  }
40100
- function omit$1(object$1, keys) {
40101
+ function omit$1(object$2, keys) {
40101
40102
  keys = new Set(keys);
40102
- return Object.fromEntries(Object.entries(object$1).filter(([key2]) => !keys.has(key2)));
40103
+ return Object.fromEntries(Object.entries(object$2).filter(([key2]) => !keys.has(key2)));
40103
40104
  }
40104
40105
  var object_omit_default = omit$1;
40105
40106
  async function getFileInfo(file$1, options8 = {}) {
@@ -40202,9 +40203,9 @@ function getIndentSize(value, tabWidth) {
40202
40203
  return get_alignment_size_default(value.slice(lastNewlineIndex + 1).match(/^[\t ]*/u)[0], tabWidth);
40203
40204
  }
40204
40205
  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");
40206
+ function escapeStringRegexp(string$7) {
40207
+ if (typeof string$7 !== "string") throw new TypeError("Expected a string");
40208
+ return string$7.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
40208
40209
  }
40209
40210
  function getMaxContinuousCount(text$2, searchString) {
40210
40211
  const results = text$2.match(new RegExp(`(${escapeStringRegexp(searchString)})+`, "gu"));
@@ -40656,7 +40657,7 @@ const $ = {
40656
40657
  matched: !1,
40657
40658
  value: void 0
40658
40659
  };
40659
- function z$1(t$1) {
40660
+ function z(t$1) {
40660
40661
  return new I(t$1, $);
40661
40662
  }
40662
40663
  var I = class I {
@@ -40710,7 +40711,7 @@ const logger = {
40710
40711
  warn: (message) => console.log(yellow("[WARN]"), message),
40711
40712
  error: (message) => console.error(red("[ERROR]"), message),
40712
40713
  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(),
40714
+ mode: (mode) => z(mode).with("add", () => green("❇️")).with("modify", () => yellow("✏️")).with("delete", () => red("❌")).with("rename", () => red("🔄")).with("rename+modify", () => red("🔀")).exhaustive(),
40714
40715
  commitMessage: (title, detail) => {
40715
40716
  return [
40716
40717
  underline(bold(title)),
@@ -40761,7 +40762,7 @@ async function applyChanges(files$1, format$2) {
40761
40762
  await fsp$1.writeFile(filepath, contentToWrite, "utf-8");
40762
40763
  };
40763
40764
  try {
40764
- await z$1(file$1.mode).with("add", "modify", async () => {
40765
+ await z(file$1.mode).with("add", "modify", async () => {
40765
40766
  const dirName = path.dirname(file$1.fullSourcePath);
40766
40767
  await fsp$1.mkdir(dirName, { recursive: true });
40767
40768
  await writeFile$2();
@@ -41731,32 +41732,32 @@ function generateFileTree(files$1, expandDirectories = true) {
41731
41732
  //#region ../dev/dist/gen-prompt/replacers/params-to-globby-options.js
41732
41733
  const paramsToGlobbyOptions = (params, defaults$4 = {}) => {
41733
41734
  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({
41735
+ expandDirectories: z(params.expandDirectories).with(N.boolean, (v$1) => v$1).with(N.array(N.string), (v$1) => v$1).with({
41735
41736
  files: N.array(N.string).optional(),
41736
41737
  extensions: N.array(N.string).optional()
41737
41738
  }, (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)
41739
+ gitignore: z(params.gitignore).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.gitignore),
41740
+ ignore: z(params.ignore).with(N.string, (v$1) => [v$1]).with(N.array(N.string), (v$1) => v$1).otherwise(() => defaults$4.ignore),
41741
+ ignoreFiles: z(params.ignoreFiles).with(N.string, N.array(N.string), (v$1) => v$1).otherwise(() => defaults$4.ignoreFiles),
41742
+ cwd: z(params.cwd).with(N.string, (v$1) => v$1).otherwise(() => defaults$4.cwd),
41743
+ absolute: z(params.absolute).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.absolute),
41744
+ baseNameMatch: z(params.baseNameMatch).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.baseNameMatch),
41745
+ braceExpansion: z(params.braceExpansion).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.braceExpansion),
41746
+ caseSensitiveMatch: z(params.caseSensitiveMatch).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.caseSensitiveMatch),
41747
+ concurrency: z(params.concurrency).with(N.number, (v$1) => v$1).otherwise(() => defaults$4.concurrency),
41748
+ deep: z(params.deep).with(N.number, (v$1) => v$1).otherwise(() => defaults$4.deep),
41749
+ dot: z(params.dot).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.dot),
41750
+ extglob: z(params.extglob).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.extglob),
41751
+ followSymbolicLinks: z(params.followSymbolicLinks).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.followSymbolicLinks),
41752
+ globstar: z(params.globstar).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.globstar),
41753
+ markDirectories: z(params.markDirectories).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.markDirectories),
41754
+ objectMode: z(params.objectMode).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.objectMode),
41755
+ onlyDirectories: z(params.onlyDirectories).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.onlyDirectories),
41756
+ onlyFiles: z(params.onlyFiles).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.onlyFiles),
41757
+ stats: z(params.stats).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.stats),
41758
+ suppressErrors: z(params.suppressErrors).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.suppressErrors),
41759
+ throwErrorOnBrokenSymbolicLink: z(params.throwErrorOnBrokenSymbolicLink).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.throwErrorOnBrokenSymbolicLink),
41760
+ unique: z(params.unique).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.unique)
41760
41761
  };
41761
41762
  return structuredClone(opts);
41762
41763
  };
@@ -41771,12 +41772,12 @@ const GET_JIXO_PROMPT = func_remember(() => readJson(assetsResolver("prompt.json
41771
41772
  */
41772
41773
  function useFileOrInject$1(mode, filepath, filecontent, opts = {}) {
41773
41774
  const lines = [];
41774
- const prefixStr = z$1(opts.prefix).with(N.number, (len) => " ".repeat(len)).with(N.string, (str) => str).otherwise(() => "");
41775
+ const prefixStr = z(opts.prefix).with(N.number, (len) => " ".repeat(len)).with(N.string, (str) => str).otherwise(() => "");
41775
41776
  const contentLines = prefixStr.length ? filecontent.split("\n").map((line$2) => prefixStr + line$2) : [filecontent];
41776
41777
  if (mode === "FILE") {
41777
41778
  const split = filecontent.includes("```") ? "````" : "```";
41778
41779
  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, "");
41780
+ lines.push(`${prefixStr}\`${filepath}\``, "", prefixStr + split + z(opts.lang).with(N.string, (v$1) => v$1).otherwise(() => ext), ...contentLines, prefixStr + split, "");
41780
41781
  } else if (mode === "INJECT") lines.push(...contentLines);
41781
41782
  else lines.push(`<!-- unknown mode ${mode} -->`);
41782
41783
  return lines.join("\n");
@@ -42071,7 +42072,7 @@ async function gitWorkingContents(repoPath, options$1) {
42071
42072
  return async () => {
42072
42073
  results.set(filepath, {
42073
42074
  path: filepath,
42074
- content: status === "D" ? void 0 : await fsPromises.readFile(path.join(repoPath, filepath), "utf-8"),
42075
+ content: status === "D" ? void 0 : await fs$1.readFile(path.join(repoPath, filepath), "utf-8"),
42075
42076
  status
42076
42077
  });
42077
42078
  };
@@ -42161,7 +42162,7 @@ async function gitWorkingDiffs(repoPath, options$1) {
42161
42162
  //#endregion
42162
42163
  //#region ../dev/dist/git-helper/types.js
42163
42164
  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);
42165
+ 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
42166
  };
42166
42167
 
42167
42168
  //#endregion
@@ -42169,13 +42170,13 @@ const humanfiyedGitFileStatus = (status) => {
42169
42170
  var import_micromatch = __toESM$1(require_micromatch$1(), 1);
42170
42171
  function useFileOrInject(mode, filepath, filecontent, opts = {}) {
42171
42172
  const lines = [];
42172
- const prefixStr = z$1(opts.prefix).with(N.number, (len) => " ".repeat(len)).with(N.string, (str) => str).otherwise(() => "");
42173
+ const prefixStr = z(opts.prefix).with(N.number, (len) => " ".repeat(len)).with(N.string, (str) => str).otherwise(() => "");
42173
42174
  const contentLines = (filecontent$1) => prefixStr.length ? filecontent$1.split("\n").map((line$2) => prefixStr + line$2) : [filecontent$1];
42174
42175
  if (mode === "FILE") {
42175
42176
  const split = filecontent?.includes("```") ? "````" : "```";
42176
42177
  const ext = path.parse(filepath).ext.slice(1);
42177
42178
  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, "");
42179
+ if (filecontent) lines.push(prefixStr + split + z(opts.lang).with(N.string, (v$1) => v$1).otherwise(() => ext), ...contentLines(filecontent), prefixStr + split, "");
42179
42180
  } else if (mode === "INJECT") {
42180
42181
  if (filecontent) lines.push(...contentLines(filecontent));
42181
42182
  } else lines.push(`<!-- unknown mode ${mode} -->`);
@@ -50694,7 +50695,7 @@ function initializeFlow(effects) {
50694
50695
  * } from 'micromark-util-types'
50695
50696
  */
50696
50697
  const resolver = { resolveAll: createResolver$1() };
50697
- const string$3 = initializeFactory("string");
50698
+ const string$4 = initializeFactory("string");
50698
50699
  const text = initializeFactory("text");
50699
50700
  /**
50700
50701
  * @param {'string' | 'text'} field
@@ -50870,7 +50871,7 @@ __export$4(constructs_exports, {
50870
50871
  flow: () => flow$1,
50871
50872
  flowInitial: () => flowInitial,
50872
50873
  insideSpan: () => insideSpan,
50873
- string: () => string$4,
50874
+ string: () => string$5,
50874
50875
  text: () => text$1
50875
50876
  });
50876
50877
  /** @satisfies {Extension['document']} */
@@ -50910,7 +50911,7 @@ const flow$1 = {
50910
50911
  [126]: codeFenced
50911
50912
  };
50912
50913
  /** @satisfies {Extension['string']} */
50913
- const string$4 = {
50914
+ const string$5 = {
50914
50915
  [38]: characterReference,
50915
50916
  [92]: characterEscape
50916
50917
  };
@@ -51407,7 +51408,7 @@ function parse$2(options$1) {
51407
51408
  document: create(document$1),
51408
51409
  flow: create(flow),
51409
51410
  lazy: {},
51410
- string: create(string$3),
51411
+ string: create(string$4),
51411
51412
  text: create(text)
51412
51413
  };
51413
51414
  return parser$2;
@@ -52285,10 +52286,10 @@ function compiler(options$1) {
52285
52286
  * @type {Handle}
52286
52287
  */
52287
52288
  function onexitlabeltext(token$1) {
52288
- const string$6 = this.sliceSerialize(token$1);
52289
+ const string$7 = this.sliceSerialize(token$1);
52289
52290
  const ancestor = this.stack[this.stack.length - 2];
52290
- ancestor.label = decodeString(string$6);
52291
- ancestor.identifier = normalizeIdentifier(string$6).toLowerCase();
52291
+ ancestor.label = decodeString(string$7);
52292
+ ancestor.identifier = normalizeIdentifier(string$7).toLowerCase();
52292
52293
  }
52293
52294
  /**
52294
52295
  * @this {CompileContext}
@@ -52986,8 +52987,8 @@ async function gen_prompt(input, once$1, _output, cwd) {
52986
52987
  const inputSource = getFileState(input, once$1).get();
52987
52988
  let { data: inputData, content: inputContent } = (0, import_gray_matter.default)(inputSource);
52988
52989
  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")));
52990
+ 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))));
52991
+ const output = currentRootResolver(_output ?? z(inputData.output).with(N.string, (v$1) => v$1).otherwise(() => input.replace(/\.md$/, ".gen.md")));
52991
52992
  const regex$1 = /\[(.+?)\]\(@([\w-_:]+)(\?.+)?\)/g;
52992
52993
  const matches = [...inputContent.matchAll(regex$1)];
52993
52994
  const replacementPromises = matches.map((match) => {
@@ -53197,8 +53198,8 @@ function getEnumValues(entries) {
53197
53198
  const values = Object.entries(entries).filter(([k$1, _$1]) => numericValues.indexOf(+k$1) === -1).map(([_$1, v$1]) => v$1);
53198
53199
  return values;
53199
53200
  }
53200
- function joinValues(array$3, separator = "|") {
53201
- return array$3.map((val) => stringifyPrimitive(val)).join(separator);
53201
+ function joinValues(array$4, separator = "|") {
53202
+ return array$4.map((val) => stringifyPrimitive(val)).join(separator);
53202
53203
  }
53203
53204
  function jsonStringifyReplacer(_$1, value) {
53204
53205
  if (typeof value === "bigint") return value.toString();
@@ -53230,18 +53231,18 @@ function floatSafeRemainder(val, step) {
53230
53231
  const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
53231
53232
  return valInt % stepInt / 10 ** decCount;
53232
53233
  }
53233
- function defineLazy(object$1, key$1, getter) {
53234
+ function defineLazy(object$2, key$1, getter) {
53234
53235
  const set$1 = false;
53235
- Object.defineProperty(object$1, key$1, {
53236
+ Object.defineProperty(object$2, key$1, {
53236
53237
  get() {
53237
53238
  {
53238
53239
  const value = getter();
53239
- object$1[key$1] = value;
53240
+ object$2[key$1] = value;
53240
53241
  return value;
53241
53242
  }
53242
53243
  },
53243
53244
  set(v$1) {
53244
- Object.defineProperty(object$1, key$1, { value: v$1 });
53245
+ Object.defineProperty(object$2, key$1, { value: v$1 });
53245
53246
  },
53246
53247
  configurable: true
53247
53248
  });
@@ -53828,7 +53829,7 @@ __export$4(regexes_exports, {
53828
53829
  base64: () => base64$1,
53829
53830
  base64url: () => base64url$1,
53830
53831
  bigint: () => bigint$2,
53831
- boolean: () => boolean$2,
53832
+ boolean: () => boolean$3,
53832
53833
  browserEmail: () => browserEmail,
53833
53834
  cidrv4: () => cidrv4$1,
53834
53835
  cidrv6: () => cidrv6$1,
@@ -53852,9 +53853,9 @@ __export$4(regexes_exports, {
53852
53853
  lowercase: () => lowercase,
53853
53854
  nanoid: () => nanoid$1,
53854
53855
  null: () => _null$2,
53855
- number: () => number$2,
53856
+ number: () => number$3,
53856
53857
  rfc5322Email: () => rfc5322Email,
53857
- string: () => string$2,
53858
+ string: () => string$3,
53858
53859
  time: () => time$1,
53859
53860
  ulid: () => ulid$1,
53860
53861
  undefined: () => _undefined$2,
@@ -53928,14 +53929,14 @@ function datetime$1(args) {
53928
53929
  const timeRegex = `${time$2}(?:${opts.join("|")})`;
53929
53930
  return /* @__PURE__ */ new RegExp(`^${dateSource}T(?:${timeRegex})$`);
53930
53931
  }
53931
- const string$2 = (params) => {
53932
+ const string$3 = (params) => {
53932
53933
  const regex$1 = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
53933
53934
  return /* @__PURE__ */ new RegExp(`^${regex$1}$`);
53934
53935
  };
53935
53936
  const bigint$2 = /^\d+n?$/;
53936
53937
  const integer = /^\d+$/;
53937
- const number$2 = /^-?\d+(?:\.\d+)?/i;
53938
- const boolean$2 = /true|false/i;
53938
+ const number$3 = /^-?\d+(?:\.\d+)?/i;
53939
+ const boolean$3 = /true|false/i;
53939
53940
  const _null$2 = /null/i;
53940
53941
  const _undefined$2 = /undefined/i;
53941
53942
  const lowercase = /^[^A-Z]*$/;
@@ -54554,7 +54555,7 @@ const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
54554
54555
  });
54555
54556
  const $ZodString = /* @__PURE__ */ $constructor("$ZodString", (inst, def) => {
54556
54557
  $ZodType.init(inst, def);
54557
- inst._zod.pattern = [...inst?._zod.bag?.patterns ?? []].pop() ?? string$2(inst._zod.bag);
54558
+ inst._zod.pattern = [...inst?._zod.bag?.patterns ?? []].pop() ?? string$3(inst._zod.bag);
54558
54559
  inst._zod.parse = (payload, _$1) => {
54559
54560
  if (def.coerce) try {
54560
54561
  payload.value = String(payload.value);
@@ -54839,7 +54840,7 @@ const $ZodCustomStringFormat = /* @__PURE__ */ $constructor("$ZodCustomStringFor
54839
54840
  });
54840
54841
  const $ZodNumber = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def) => {
54841
54842
  $ZodType.init(inst, def);
54842
- inst._zod.pattern = inst._zod.bag.pattern ?? number$2;
54843
+ inst._zod.pattern = inst._zod.bag.pattern ?? number$3;
54843
54844
  inst._zod.parse = (payload, _ctx) => {
54844
54845
  if (def.coerce) try {
54845
54846
  payload.value = Number(payload.value);
@@ -54863,7 +54864,7 @@ const $ZodNumberFormat = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def)
54863
54864
  });
54864
54865
  const $ZodBoolean = /* @__PURE__ */ $constructor("$ZodBoolean", (inst, def) => {
54865
54866
  $ZodType.init(inst, def);
54866
- inst._zod.pattern = boolean$2;
54867
+ inst._zod.pattern = boolean$3;
54867
54868
  inst._zod.parse = (payload, _ctx) => {
54868
54869
  if (def.coerce) try {
54869
54870
  payload.value = Boolean(payload.value);
@@ -62234,6 +62235,259 @@ __export$4(core_exports, {
62234
62235
  version: () => version
62235
62236
  });
62236
62237
 
62238
+ //#endregion
62239
+ //#region ../../node_modules/.pnpm/zod@4.0.10/node_modules/zod/v4/mini/schemas.js
62240
+ const ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
62241
+ if (!inst._zod) throw new Error("Uninitialized schema in ZodMiniType.");
62242
+ $ZodType.init(inst, def);
62243
+ inst.def = def;
62244
+ inst.parse = (data, params) => parse$1(inst, data, params, { callee: inst.parse });
62245
+ inst.safeParse = (data, params) => safeParse$1(inst, data, params);
62246
+ inst.parseAsync = async (data, params) => parseAsync$1(inst, data, params, { callee: inst.parseAsync });
62247
+ inst.safeParseAsync = async (data, params) => safeParseAsync$1(inst, data, params);
62248
+ inst.check = (...checks) => {
62249
+ return inst.clone({
62250
+ ...def,
62251
+ checks: [...def.checks ?? [], ...checks.map((ch) => typeof ch === "function" ? { _zod: {
62252
+ check: ch,
62253
+ def: { check: "custom" },
62254
+ onattach: []
62255
+ } } : ch)]
62256
+ });
62257
+ };
62258
+ inst.clone = (_def, params) => clone(inst, _def, params);
62259
+ inst.brand = () => inst;
62260
+ inst.register = ((reg, meta) => {
62261
+ reg.add(inst, meta);
62262
+ return inst;
62263
+ });
62264
+ });
62265
+ const ZodMiniString = /* @__PURE__ */ $constructor("ZodMiniString", (inst, def) => {
62266
+ $ZodString.init(inst, def);
62267
+ ZodMiniType.init(inst, def);
62268
+ });
62269
+ function string$2(params) {
62270
+ return _string(ZodMiniString, params);
62271
+ }
62272
+ const ZodMiniNumber = /* @__PURE__ */ $constructor("ZodMiniNumber", (inst, def) => {
62273
+ $ZodNumber.init(inst, def);
62274
+ ZodMiniType.init(inst, def);
62275
+ });
62276
+ function number$2(params) {
62277
+ return _number(ZodMiniNumber, params);
62278
+ }
62279
+ const ZodMiniBoolean = /* @__PURE__ */ $constructor("ZodMiniBoolean", (inst, def) => {
62280
+ $ZodBoolean.init(inst, def);
62281
+ ZodMiniType.init(inst, def);
62282
+ });
62283
+ function boolean$2(params) {
62284
+ return _boolean(ZodMiniBoolean, params);
62285
+ }
62286
+ const ZodMiniUnknown = /* @__PURE__ */ $constructor("ZodMiniUnknown", (inst, def) => {
62287
+ $ZodUnknown.init(inst, def);
62288
+ ZodMiniType.init(inst, def);
62289
+ });
62290
+ function unknown$1() {
62291
+ return _unknown(ZodMiniUnknown);
62292
+ }
62293
+ const ZodMiniArray = /* @__PURE__ */ $constructor("ZodMiniArray", (inst, def) => {
62294
+ $ZodArray.init(inst, def);
62295
+ ZodMiniType.init(inst, def);
62296
+ });
62297
+ function array$1(element, params) {
62298
+ return new ZodMiniArray({
62299
+ type: "array",
62300
+ element,
62301
+ ...normalizeParams(params)
62302
+ });
62303
+ }
62304
+ const ZodMiniObject = /* @__PURE__ */ $constructor("ZodMiniObject", (inst, def) => {
62305
+ $ZodObject.init(inst, def);
62306
+ ZodMiniType.init(inst, def);
62307
+ defineLazy(inst, "shape", () => def.shape);
62308
+ });
62309
+ function object$1(shape, params) {
62310
+ const def = {
62311
+ type: "object",
62312
+ get shape() {
62313
+ assignProp(this, "shape", { ...shape });
62314
+ return this.shape;
62315
+ },
62316
+ ...normalizeParams(params)
62317
+ };
62318
+ return new ZodMiniObject(def);
62319
+ }
62320
+ function looseObject$1(shape, params) {
62321
+ return new ZodMiniObject({
62322
+ type: "object",
62323
+ get shape() {
62324
+ assignProp(this, "shape", { ...shape });
62325
+ return this.shape;
62326
+ },
62327
+ catchall: unknown$1(),
62328
+ ...normalizeParams(params)
62329
+ });
62330
+ }
62331
+ const ZodMiniUnion = /* @__PURE__ */ $constructor("ZodMiniUnion", (inst, def) => {
62332
+ $ZodUnion.init(inst, def);
62333
+ ZodMiniType.init(inst, def);
62334
+ });
62335
+ function union$1(options$1, params) {
62336
+ return new ZodMiniUnion({
62337
+ type: "union",
62338
+ options: options$1,
62339
+ ...normalizeParams(params)
62340
+ });
62341
+ }
62342
+ const ZodMiniOptional = /* @__PURE__ */ $constructor("ZodMiniOptional", (inst, def) => {
62343
+ $ZodOptional.init(inst, def);
62344
+ ZodMiniType.init(inst, def);
62345
+ });
62346
+ function optional$1(innerType) {
62347
+ return new ZodMiniOptional({
62348
+ type: "optional",
62349
+ innerType
62350
+ });
62351
+ }
62352
+
62353
+ //#endregion
62354
+ //#region ../dev/dist/google-aistudio/node/types.js
62355
+ const zContentSchema = looseObject$1({
62356
+ generationConfiguration: looseObject$1({
62357
+ includeCodeExecutionTypesImport: boolean$2(),
62358
+ includeSchemaTypesImport: boolean$2(),
62359
+ includesRetrievalImport: optional$1(boolean$2()),
62360
+ isAudioOutput: boolean$2(),
62361
+ isStreamingConfigEnabled: boolean$2(),
62362
+ isColab: boolean$2(),
62363
+ requiresParts: boolean$2(),
62364
+ requiresFunctionCalling: boolean$2(),
62365
+ requiresCodeExecution: boolean$2()
62366
+ }),
62367
+ generateContentParameters: object$1({
62368
+ model: string$2(),
62369
+ contents: array$1(object$1({
62370
+ role: string$2(),
62371
+ parts: array$1(union$1([
62372
+ object$1({ isLast: boolean$2() }),
62373
+ object$1({
62374
+ isLast: boolean$2(),
62375
+ text: string$2()
62376
+ }),
62377
+ object$1({
62378
+ isLast: boolean$2(),
62379
+ functionCall: object$1({
62380
+ name: string$2(),
62381
+ parameters: string$2()
62382
+ })
62383
+ }),
62384
+ object$1({
62385
+ isLast: boolean$2(),
62386
+ functionResponse: object$1({
62387
+ name: string$2(),
62388
+ response: string$2()
62389
+ })
62390
+ }),
62391
+ object$1({
62392
+ isLast: boolean$2(),
62393
+ inlineData: object$1({
62394
+ data: string$2(),
62395
+ splitData: array$1(string$2()),
62396
+ mimeType: string$2()
62397
+ }),
62398
+ fileData: object$1({
62399
+ mimeType: string$2(),
62400
+ fileIndex: number$2(),
62401
+ fileName: string$2()
62402
+ })
62403
+ })
62404
+ ])),
62405
+ isLast: optional$1(boolean$2())
62406
+ })),
62407
+ config: looseObject$1({
62408
+ thinkingConfig: object$1({ thinkingBudget: string$2() }),
62409
+ stopSequences: array$1(unknown$1()),
62410
+ responseMimeType: optional$1(string$2()),
62411
+ responseModalities: array$1(unknown$1()),
62412
+ safetySettings: array$1(unknown$1()),
62413
+ tools: array$1(union$1([
62414
+ object$1({ googleSearch: looseObject$1({}) }),
62415
+ object$1({ urlContext: looseObject$1({}) }),
62416
+ object$1({ functionDeclarations: array$1(object$1({
62417
+ name: string$2(),
62418
+ description: string$2(),
62419
+ parameters: string$2(),
62420
+ isLast: boolean$2()
62421
+ })) })
62422
+ ]))
62423
+ })
62424
+ })
62425
+ });
62426
+
62427
+ //#endregion
62428
+ //#region ../dev/dist/google-aistudio/node/index.js
62429
+ const doGoogleAiStudioAutomation = (dir = process.cwd()) => {
62430
+ const watcher$1 = fs.watch(dir);
62431
+ const handle = func_debounce(async () => {
62432
+ const names = fs.readdirSync(dir);
62433
+ const contentNames = names.filter((name$1) => name$1.endsWith(".contents.json"));
62434
+ for (const contentFilename of contentNames) {
62435
+ const contentFilepath = path.join(dir, contentFilename);
62436
+ const basename$1 = contentFilename.replace(".contents.json", "");
62437
+ await parseContent(basename$1, contentFilepath, names).catch(console.error);
62438
+ }
62439
+ }, 200);
62440
+ const parseContent = async (basename$1, contentFilepath, filenames) => {
62441
+ console.log(magenta("开始处理文件"), path.relative(process.cwd(), contentFilepath));
62442
+ const fileData = await zContentSchema.parse(JSON.parse(fs.readFileSync(contentFilepath, "utf-8")));
62443
+ const { contents } = fileData.generateContentParameters;
62444
+ const latestContent = contents.at(-1);
62445
+ if (!latestContent) return;
62446
+ if (latestContent.role !== "user") return;
62447
+ const functionResponsePart = latestContent.parts.find((p$1) => "functionResponse" in p$1);
62448
+ if (!functionResponsePart) return;
62449
+ if (functionResponsePart.functionResponse.response !== "") return;
62450
+ const modelContent = contents.findLast((content$2) => {
62451
+ return content$2.role === "model" && content$2.parts.find((p$1) => "functionCall" in p$1);
62452
+ });
62453
+ if (!modelContent) return;
62454
+ const functionCallPart = modelContent.parts.find((p$1) => "functionCall" in p$1)?.functionCall;
62455
+ if (!functionCallPart) return;
62456
+ const modelIndex = contents.indexOf(modelContent);
62457
+ const hash = createHash("sha256").update(`INDEX:${modelIndex}`).update(JSON.stringify(modelContent)).digest("hex").slice(0, 8);
62458
+ const taskFilename = `${basename$1}.${functionCallPart.name}.${modelIndex}-${hash}.function_call.json`;
62459
+ if (filenames.includes(taskFilename)) return;
62460
+ console.log(blue("收到 functionCallPart 任务请求"), functionCallPart);
62461
+ const scriptFilepath = iter_first_not_null(function* () {
62462
+ for (const scriptFilename of [`${functionCallPart.name}.function_call.js`, `${functionCallPart.name}.function_call.ts`]) yield path.join(dir, scriptFilename);
62463
+ }(), (scriptFilepath$1) => {
62464
+ if (fs.existsSync(scriptFilepath$1)) return scriptFilepath$1;
62465
+ });
62466
+ if (!scriptFilepath) console.warn("找不到任务处理工具");
62467
+ else {
62468
+ const { functionCall } = await import(pathToFileURL(scriptFilepath).href);
62469
+ const input = JSON.parse(functionCallPart.parameters);
62470
+ try {
62471
+ console.log(cyan("开始执行任务"));
62472
+ const output = await functionCall(input);
62473
+ console.log(green("生成任务结果:"), taskFilename);
62474
+ fs.writeFileSync(path.join(dir, taskFilename), JSON.stringify({
62475
+ input,
62476
+ output
62477
+ }, null, 2));
62478
+ } catch (e$1) {
62479
+ console.log(red("任务执行失败:"), e$1);
62480
+ }
62481
+ }
62482
+ };
62483
+ watcher$1.on("change", (eventType) => {
62484
+ if (eventType === "delete" || eventType === "unlink") return;
62485
+ handle();
62486
+ });
62487
+ handle();
62488
+ console.log(gray("\nWatching for file changes... Press Ctrl+C to exit."));
62489
+ };
62490
+
62237
62491
  //#endregion
62238
62492
  //#region ../../node_modules/.pnpm/zod@4.0.10/node_modules/zod/v4/classic/iso.js
62239
62493
  var iso_exports = {};
@@ -62425,7 +62679,7 @@ const ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
62425
62679
  inst.time = (params) => inst.check(time(params));
62426
62680
  inst.duration = (params) => inst.check(duration(params));
62427
62681
  });
62428
- function string(params) {
62682
+ function string$1(params) {
62429
62683
  return _string(ZodString, params);
62430
62684
  }
62431
62685
  const ZodStringFormat = /* @__PURE__ */ $constructor("ZodStringFormat", (inst, def) => {
@@ -62606,7 +62860,7 @@ const ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
62606
62860
  inst.isFinite = true;
62607
62861
  inst.format = bag.format ?? null;
62608
62862
  });
62609
- function number(params) {
62863
+ function number$1(params) {
62610
62864
  return _number(ZodNumber, params);
62611
62865
  }
62612
62866
  const ZodNumberFormat = /* @__PURE__ */ $constructor("ZodNumberFormat", (inst, def) => {
@@ -62632,7 +62886,7 @@ const ZodBoolean = /* @__PURE__ */ $constructor("ZodBoolean", (inst, def) => {
62632
62886
  $ZodBoolean.init(inst, def);
62633
62887
  ZodType.init(inst, def);
62634
62888
  });
62635
- function boolean(params) {
62889
+ function boolean$1(params) {
62636
62890
  return _boolean(ZodBoolean, params);
62637
62891
  }
62638
62892
  const ZodBigInt = /* @__PURE__ */ $constructor("ZodBigInt", (inst, def) => {
@@ -63235,12 +63489,12 @@ const stringbool = (...args) => _stringbool({
63235
63489
  function json(params) {
63236
63490
  const jsonSchema = lazy(() => {
63237
63491
  return union([
63238
- string(params),
63239
- number(),
63240
- boolean(),
63492
+ string$1(params),
63493
+ number$1(),
63494
+ boolean$1(),
63241
63495
  _null(),
63242
63496
  array(jsonSchema),
63243
- record(string(), jsonSchema)
63497
+ record(string$1(), jsonSchema)
63244
63498
  ]);
63245
63499
  });
63246
63500
  return jsonSchema;
@@ -63282,18 +63536,18 @@ var ZodFirstPartyTypeKind;
63282
63536
  var coerce_exports = {};
63283
63537
  __export$4(coerce_exports, {
63284
63538
  bigint: () => bigint,
63285
- boolean: () => boolean$1,
63539
+ boolean: () => boolean,
63286
63540
  date: () => date,
63287
- number: () => number$1,
63288
- string: () => string$1
63541
+ number: () => number,
63542
+ string: () => string
63289
63543
  });
63290
- function string$1(params) {
63544
+ function string(params) {
63291
63545
  return _coercedString(ZodString, params);
63292
63546
  }
63293
- function number$1(params) {
63547
+ function number(params) {
63294
63548
  return _coercedNumber(ZodNumber, params);
63295
63549
  }
63296
- function boolean$1(params) {
63550
+ function boolean(params) {
63297
63551
  return _coercedBoolean(ZodBoolean, params);
63298
63552
  }
63299
63553
  function bigint(params) {
@@ -63390,7 +63644,7 @@ __export$4(external_exports, {
63390
63644
  base64: () => base64,
63391
63645
  base64url: () => base64url,
63392
63646
  bigint: () => bigint$1,
63393
- boolean: () => boolean,
63647
+ boolean: () => boolean$1,
63394
63648
  catch: () => _catch,
63395
63649
  check: () => check,
63396
63650
  cidrv4: () => cidrv4,
@@ -63460,7 +63714,7 @@ __export$4(external_exports, {
63460
63714
  null: () => _null,
63461
63715
  nullable: () => nullable,
63462
63716
  nullish: () => nullish,
63463
- number: () => number,
63717
+ number: () => number$1,
63464
63718
  object: () => object,
63465
63719
  optional: () => optional,
63466
63720
  overwrite: () => _overwrite,
@@ -63487,7 +63741,7 @@ __export$4(external_exports, {
63487
63741
  size: () => _size,
63488
63742
  startsWith: () => _startsWith,
63489
63743
  strictObject: () => strictObject,
63490
- string: () => string,
63744
+ string: () => string$1,
63491
63745
  stringFormat: () => stringFormat,
63492
63746
  stringbool: () => stringbool,
63493
63747
  success: () => success,
@@ -63518,153 +63772,6 @@ __export$4(external_exports, {
63518
63772
  });
63519
63773
  config(en_default());
63520
63774
 
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
63775
  //#endregion
63669
63776
  //#region ../../node_modules/.pnpm/zod@4.0.10/node_modules/zod/index.js
63670
63777
  var zod_default = external_exports;