@jixo/cli 0.22.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.
package/bundle/index.js CHANGED
@@ -1,7 +1,8 @@
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";
4
- import fs, { mkdirSync, promises, readFileSync, readdirSync, realpathSync, statSync, watch, writeFileSync } from "node:fs";
5
+ import fs, { existsSync, mkdirSync, promises, readFileSync, readdirSync, realpathSync, statSync, watch, writeFileSync } from "node:fs";
5
6
  import assert3, { notStrictEqual, strictEqual } from "assert";
6
7
  import * as path$1 from "path";
7
8
  import path10, { basename, dirname as dirname$1, extname, join as join$1, normalize, relative, resolve } from "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, { 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
@@ -1769,7 +1770,7 @@ var import_get_caller_file = __toESM$1(require_get_caller_file(), 1);
1769
1770
  const __dirname$1 = fileURLToPath$1(import.meta.url);
1770
1771
  const mainFilename = __dirname$1.substring(0, __dirname$1.lastIndexOf("node_modules"));
1771
1772
  const require$2 = createRequire(import.meta.url);
1772
- var esm_default$2 = {
1773
+ var esm_default$3 = {
1773
1774
  assert: {
1774
1775
  notStrictEqual,
1775
1776
  strictEqual
@@ -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
  };
@@ -4681,18 +4682,22 @@ function isYargsInstance(y$2) {
4681
4682
 
4682
4683
  //#endregion
4683
4684
  //#region ../../node_modules/.pnpm/yargs@18.0.0/node_modules/yargs/index.mjs
4684
- const Yargs = YargsFactory(esm_default$2);
4685
+ const Yargs = YargsFactory(esm_default$3);
4685
4686
  var yargs_default = Yargs;
4686
4687
 
4687
4688
  //#endregion
4688
4689
  //#region package.json
4689
4690
  var name = "@jixo/cli";
4690
- var version$1 = "0.22.0";
4691
+ var version$1 = "0.23.2";
4691
4692
  var type = "module";
4692
4693
  var bin = { "jixo": "./bundle/index.js" };
4693
- var files = ["bundle", "dist"];
4694
+ var files = [
4695
+ "assets",
4696
+ "bundle",
4697
+ "dist"
4698
+ ];
4694
4699
  var scripts = {
4695
- "build": "pnpm run '/^b\\:.*/'",
4700
+ "build": "pnpm run \"/^b\\:.*/\"",
4696
4701
  "b:ts": "tsc --build",
4697
4702
  "b:bundle": "tsdown",
4698
4703
  "gen-prompts": "node ./scripts/gen-prompts.ts"
@@ -5235,6 +5240,19 @@ const iter_map_not_null = (values, callbackfn) => {
5235
5240
  else for (const value of values) if (value != null) result.push(value);
5236
5241
  return result;
5237
5242
  };
5243
+ /**
5244
+ * 类似与 map not null,但只取第一个
5245
+ *
5246
+ * 支持任何可迭代的对象
5247
+ */
5248
+ const iter_first_not_null = (values, callbackfn) => {
5249
+ let index$1 = 0;
5250
+ if (callbackfn) for (const value of values) {
5251
+ const r$1 = callbackfn(value, index$1++, values);
5252
+ if (r$1 != null) return r$1;
5253
+ }
5254
+ else for (const value of values) if (value != null) return value;
5255
+ };
5238
5256
 
5239
5257
  //#endregion
5240
5258
  //#region ../../node_modules/.pnpm/@gaubee+util@0.34.2/node_modules/@gaubee/util/esm/pure_event.js
@@ -6268,13 +6286,13 @@ var require_common$4 = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/n
6268
6286
  }
6269
6287
  return target;
6270
6288
  }
6271
- function repeat(string$6, count) {
6289
+ function repeat(string$7, count) {
6272
6290
  var result = "", cycle;
6273
- for (cycle = 0; cycle < count; cycle += 1) result += string$6;
6291
+ for (cycle = 0; cycle < count; cycle += 1) result += string$7;
6274
6292
  return result;
6275
6293
  }
6276
- function isNegativeZero(number$3) {
6277
- 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;
6278
6296
  }
6279
6297
  module.exports.isNothing = isNothing;
6280
6298
  module.exports.isObject = isObject$4;
@@ -6544,8 +6562,8 @@ var require_null = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/node_
6544
6562
  function constructYamlNull() {
6545
6563
  return null;
6546
6564
  }
6547
- function isNull(object$1) {
6548
- return object$1 === null;
6565
+ function isNull(object$2) {
6566
+ return object$2 === null;
6549
6567
  }
6550
6568
  module.exports = new Type$12("tag:yaml.org,2002:null", {
6551
6569
  kind: "scalar",
@@ -6582,8 +6600,8 @@ var require_bool = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/node_
6582
6600
  function constructYamlBoolean(data) {
6583
6601
  return data === "true" || data === "True" || data === "TRUE";
6584
6602
  }
6585
- function isBoolean(object$1) {
6586
- return Object.prototype.toString.call(object$1) === "[object Boolean]";
6603
+ function isBoolean(object$2) {
6604
+ return Object.prototype.toString.call(object$2) === "[object Boolean]";
6587
6605
  }
6588
6606
  module.exports = new Type$11("tag:yaml.org,2002:bool", {
6589
6607
  kind: "scalar",
@@ -6591,14 +6609,14 @@ var require_bool = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/node_
6591
6609
  construct: constructYamlBoolean,
6592
6610
  predicate: isBoolean,
6593
6611
  represent: {
6594
- lowercase: function(object$1) {
6595
- return object$1 ? "true" : "false";
6612
+ lowercase: function(object$2) {
6613
+ return object$2 ? "true" : "false";
6596
6614
  },
6597
- uppercase: function(object$1) {
6598
- return object$1 ? "TRUE" : "FALSE";
6615
+ uppercase: function(object$2) {
6616
+ return object$2 ? "TRUE" : "FALSE";
6599
6617
  },
6600
- camelcase: function(object$1) {
6601
- return object$1 ? "True" : "False";
6618
+ camelcase: function(object$2) {
6619
+ return object$2 ? "True" : "False";
6602
6620
  }
6603
6621
  },
6604
6622
  defaultStyle: "lowercase"
@@ -6697,8 +6715,8 @@ var require_int = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/node_m
6697
6715
  }
6698
6716
  return sign$1 * parseInt(value, 10);
6699
6717
  }
6700
- function isInteger(object$1) {
6701
- 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);
6702
6720
  }
6703
6721
  module.exports = new Type$10("tag:yaml.org,2002:int", {
6704
6722
  kind: "scalar",
@@ -6763,29 +6781,29 @@ var require_float = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/node
6763
6781
  return sign$1 * parseFloat(value, 10);
6764
6782
  }
6765
6783
  var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
6766
- function representYamlFloat(object$1, style) {
6784
+ function representYamlFloat(object$2, style) {
6767
6785
  var res;
6768
- if (isNaN(object$1)) switch (style) {
6786
+ if (isNaN(object$2)) switch (style) {
6769
6787
  case "lowercase": return ".nan";
6770
6788
  case "uppercase": return ".NAN";
6771
6789
  case "camelcase": return ".NaN";
6772
6790
  }
6773
- else if (Number.POSITIVE_INFINITY === object$1) switch (style) {
6791
+ else if (Number.POSITIVE_INFINITY === object$2) switch (style) {
6774
6792
  case "lowercase": return ".inf";
6775
6793
  case "uppercase": return ".INF";
6776
6794
  case "camelcase": return ".Inf";
6777
6795
  }
6778
- else if (Number.NEGATIVE_INFINITY === object$1) switch (style) {
6796
+ else if (Number.NEGATIVE_INFINITY === object$2) switch (style) {
6779
6797
  case "lowercase": return "-.inf";
6780
6798
  case "uppercase": return "-.INF";
6781
6799
  case "camelcase": return "-.Inf";
6782
6800
  }
6783
- else if (common$8.isNegativeZero(object$1)) return "-0.0";
6784
- res = object$1.toString(10);
6801
+ else if (common$8.isNegativeZero(object$2)) return "-0.0";
6802
+ res = object$2.toString(10);
6785
6803
  return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace("e", ".e") : res;
6786
6804
  }
6787
- function isFloat(object$1) {
6788
- 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));
6789
6807
  }
6790
6808
  module.exports = new Type$9("tag:yaml.org,2002:float", {
6791
6809
  kind: "scalar",
@@ -6858,8 +6876,8 @@ var require_timestamp = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/
6858
6876
  if (delta) date$4.setTime(date$4.getTime() - delta);
6859
6877
  return date$4;
6860
6878
  }
6861
- function representYamlTimestamp(object$1) {
6862
- return object$1.toISOString();
6879
+ function representYamlTimestamp(object$2) {
6880
+ return object$2.toISOString();
6863
6881
  }
6864
6882
  module.exports = new Type$8("tag:yaml.org,2002:timestamp", {
6865
6883
  kind: "scalar",
@@ -6926,8 +6944,8 @@ var require_binary = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
6926
6944
  if (NodeBuffer) return NodeBuffer.from ? NodeBuffer.from(result) : new NodeBuffer(result);
6927
6945
  return result;
6928
6946
  }
6929
- function representYamlBinary(object$1) {
6930
- 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;
6931
6949
  for (idx = 0; idx < max; idx++) {
6932
6950
  if (idx % 3 === 0 && idx) {
6933
6951
  result += map$1[bits >> 18 & 63];
@@ -6935,7 +6953,7 @@ var require_binary = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
6935
6953
  result += map$1[bits >> 6 & 63];
6936
6954
  result += map$1[bits & 63];
6937
6955
  }
6938
- bits = (bits << 8) + object$1[idx];
6956
+ bits = (bits << 8) + object$2[idx];
6939
6957
  }
6940
6958
  tail = max % 3;
6941
6959
  if (tail === 0) {
@@ -6956,8 +6974,8 @@ var require_binary = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
6956
6974
  }
6957
6975
  return result;
6958
6976
  }
6959
- function isBinary(object$1) {
6960
- return NodeBuffer && NodeBuffer.isBuffer(object$1);
6977
+ function isBinary(object$2) {
6978
+ return NodeBuffer && NodeBuffer.isBuffer(object$2);
6961
6979
  }
6962
6980
  module.exports = new Type$6("tag:yaml.org,2002:binary", {
6963
6981
  kind: "scalar",
@@ -6976,9 +6994,9 @@ var require_omap = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/node_
6976
6994
  var _toString$2 = Object.prototype.toString;
6977
6995
  function resolveYamlOmap(data) {
6978
6996
  if (data === null) return true;
6979
- var objectKeys$1 = [], index$1, length, pair, pairKey, pairHasKey, object$1 = data;
6980
- for (index$1 = 0, length = object$1.length; index$1 < length; index$1 += 1) {
6981
- 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];
6982
7000
  pairHasKey = false;
6983
7001
  if (_toString$2.call(pair) !== "[object Object]") return false;
6984
7002
  for (pairKey in pair) if (_hasOwnProperty$3.call(pair, pairKey)) if (!pairHasKey) pairHasKey = true;
@@ -7006,10 +7024,10 @@ var require_pairs = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/node
7006
7024
  var _toString$1 = Object.prototype.toString;
7007
7025
  function resolveYamlPairs(data) {
7008
7026
  if (data === null) return true;
7009
- var index$1, length, pair, keys, result, object$1 = data;
7010
- result = new Array(object$1.length);
7011
- for (index$1 = 0, length = object$1.length; index$1 < length; index$1 += 1) {
7012
- 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];
7013
7031
  if (_toString$1.call(pair) !== "[object Object]") return false;
7014
7032
  keys = Object.keys(pair);
7015
7033
  if (keys.length !== 1) return false;
@@ -7019,10 +7037,10 @@ var require_pairs = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/node
7019
7037
  }
7020
7038
  function constructYamlPairs(data) {
7021
7039
  if (data === null) return [];
7022
- var index$1, length, pair, keys, result, object$1 = data;
7023
- result = new Array(object$1.length);
7024
- for (index$1 = 0, length = object$1.length; index$1 < length; index$1 += 1) {
7025
- 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];
7026
7044
  keys = Object.keys(pair);
7027
7045
  result[index$1] = [keys[0], pair[keys[0]]];
7028
7046
  }
@@ -7042,9 +7060,9 @@ var require_set = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/node_m
7042
7060
  var _hasOwnProperty$2 = Object.prototype.hasOwnProperty;
7043
7061
  function resolveYamlSet(data) {
7044
7062
  if (data === null) return true;
7045
- var key$1, object$1 = data;
7046
- for (key$1 in object$1) if (_hasOwnProperty$2.call(object$1, key$1)) {
7047
- 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;
7048
7066
  }
7049
7067
  return true;
7050
7068
  }
@@ -7087,8 +7105,8 @@ var require_undefined = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/
7087
7105
  function representJavascriptUndefined() {
7088
7106
  return "";
7089
7107
  }
7090
- function isUndefined(object$1) {
7091
- return typeof object$1 === "undefined";
7108
+ function isUndefined(object$2) {
7109
+ return typeof object$2 === "undefined";
7092
7110
  }
7093
7111
  module.exports = new Type$2("tag:yaml.org,2002:js/undefined", {
7094
7112
  kind: "scalar",
@@ -7122,15 +7140,15 @@ var require_regexp = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
7122
7140
  }
7123
7141
  return new RegExp(regexp, modifiers);
7124
7142
  }
7125
- function representJavascriptRegExp(object$1) {
7126
- var result = "/" + object$1.source + "/";
7127
- if (object$1.global) result += "g";
7128
- if (object$1.multiline) result += "m";
7129
- 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";
7130
7148
  return result;
7131
7149
  }
7132
- function isRegExp(object$1) {
7133
- return Object.prototype.toString.call(object$1) === "[object RegExp]";
7150
+ function isRegExp(object$2) {
7151
+ return Object.prototype.toString.call(object$2) === "[object RegExp]";
7134
7152
  }
7135
7153
  module.exports = new Type$1("tag:yaml.org,2002:js/regexp", {
7136
7154
  kind: "scalar",
@@ -7172,11 +7190,11 @@ var require_function = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/n
7172
7190
  if (ast.body[0].expression.body.type === "BlockStatement") return new Function(params, source$1.slice(body[0] + 1, body[1] - 1));
7173
7191
  return new Function(params, "return " + source$1.slice(body[0], body[1]));
7174
7192
  }
7175
- function representJavascriptFunction(object$1) {
7176
- return object$1.toString();
7193
+ function representJavascriptFunction(object$2) {
7194
+ return object$2.toString();
7177
7195
  }
7178
- function isFunction(object$1) {
7179
- return Object.prototype.toString.call(object$1) === "[object Function]";
7196
+ function isFunction(object$2) {
7197
+ return Object.prototype.toString.call(object$2) === "[object Function]";
7180
7198
  }
7181
7199
  module.exports = new Type("tag:yaml.org,2002:js/function", {
7182
7200
  kind: "scalar",
@@ -8090,8 +8108,8 @@ var require_dumper = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
8090
8108
  return result;
8091
8109
  }
8092
8110
  function encodeHex(character) {
8093
- var string$6, handle, length;
8094
- string$6 = character.toString(16).toUpperCase();
8111
+ var string$7, handle, length;
8112
+ string$7 = character.toString(16).toUpperCase();
8095
8113
  if (character <= 255) {
8096
8114
  handle = "x";
8097
8115
  length = 2;
@@ -8102,7 +8120,7 @@ var require_dumper = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
8102
8120
  handle = "U";
8103
8121
  length = 8;
8104
8122
  } else throw new YAMLException("code point within a string may not be greater than 0xFFFFFFFF");
8105
- 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;
8106
8124
  }
8107
8125
  function State(options$1) {
8108
8126
  this.schema = options$1["schema"] || DEFAULT_FULL_SCHEMA;
@@ -8123,15 +8141,15 @@ var require_dumper = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
8123
8141
  this.duplicates = [];
8124
8142
  this.usedDuplicates = null;
8125
8143
  }
8126
- function indentString(string$6, spaces) {
8127
- 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;
8128
8146
  while (position$1 < length) {
8129
- next = string$6.indexOf("\n", position$1);
8147
+ next = string$7.indexOf("\n", position$1);
8130
8148
  if (next === -1) {
8131
- line$2 = string$6.slice(position$1);
8149
+ line$2 = string$7.slice(position$1);
8132
8150
  position$1 = length;
8133
8151
  } else {
8134
- line$2 = string$6.slice(position$1, next + 1);
8152
+ line$2 = string$7.slice(position$1, next + 1);
8135
8153
  position$1 = next + 1;
8136
8154
  }
8137
8155
  if (line$2.length && line$2 !== "\n") result += ind;
@@ -8165,86 +8183,86 @@ var require_dumper = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
8165
8183
  function isPlainSafeFirst(c$2) {
8166
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;
8167
8185
  }
8168
- function needIndentIndicator(string$6) {
8186
+ function needIndentIndicator(string$7) {
8169
8187
  var leadingSpaceRe = /^\n* /;
8170
- return leadingSpaceRe.test(string$6);
8188
+ return leadingSpaceRe.test(string$7);
8171
8189
  }
8172
8190
  var STYLE_PLAIN = 1, STYLE_SINGLE = 2, STYLE_LITERAL = 3, STYLE_FOLDED = 4, STYLE_DOUBLE = 5;
8173
- function chooseScalarStyle(string$6, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType) {
8191
+ function chooseScalarStyle(string$7, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType) {
8174
8192
  var i$2;
8175
8193
  var char, prev_char;
8176
8194
  var hasLineBreak = false;
8177
8195
  var hasFoldableLine = false;
8178
8196
  var shouldTrackWidth = lineWidth !== -1;
8179
8197
  var previousLineBreak = -1;
8180
- var plain = isPlainSafeFirst(string$6.charCodeAt(0)) && !isWhitespace(string$6.charCodeAt(string$6.length - 1));
8181
- if (singleLineOnly) for (i$2 = 0; i$2 < string$6.length; i$2++) {
8182
- 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);
8183
8201
  if (!isPrintable(char)) return STYLE_DOUBLE;
8184
- 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;
8185
8203
  plain = plain && isPlainSafe(char, prev_char);
8186
8204
  }
8187
8205
  else {
8188
- for (i$2 = 0; i$2 < string$6.length; i$2++) {
8189
- 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);
8190
8208
  if (char === CHAR_LINE_FEED) {
8191
8209
  hasLineBreak = true;
8192
8210
  if (shouldTrackWidth) {
8193
- hasFoldableLine = hasFoldableLine || i$2 - previousLineBreak - 1 > lineWidth && string$6[previousLineBreak + 1] !== " ";
8211
+ hasFoldableLine = hasFoldableLine || i$2 - previousLineBreak - 1 > lineWidth && string$7[previousLineBreak + 1] !== " ";
8194
8212
  previousLineBreak = i$2;
8195
8213
  }
8196
8214
  } else if (!isPrintable(char)) return STYLE_DOUBLE;
8197
- 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;
8198
8216
  plain = plain && isPlainSafe(char, prev_char);
8199
8217
  }
8200
- 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] !== " ";
8201
8219
  }
8202
- if (!hasLineBreak && !hasFoldableLine) return plain && !testAmbiguousType(string$6) ? STYLE_PLAIN : STYLE_SINGLE;
8203
- 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;
8204
8222
  return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;
8205
8223
  }
8206
- function writeScalar(state, string$6, level, iskey) {
8224
+ function writeScalar(state, string$7, level, iskey) {
8207
8225
  state.dump = function() {
8208
- if (string$6.length === 0) return "''";
8209
- 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 + "'";
8210
8228
  var indent$2 = state.indent * Math.max(1, level);
8211
8229
  var lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent$2);
8212
8230
  var singleLineOnly = iskey || state.flowLevel > -1 && level >= state.flowLevel;
8213
- function testAmbiguity(string$7) {
8214
- return testImplicitResolving(state, string$7);
8215
- }
8216
- switch (chooseScalarStyle(string$6, singleLineOnly, state.indent, lineWidth, testAmbiguity)) {
8217
- case STYLE_PLAIN: return string$6;
8218
- case STYLE_SINGLE: return "'" + string$6.replace(/'/g, "''") + "'";
8219
- case STYLE_LITERAL: return "|" + blockHeader(string$6, state.indent) + dropEndingNewline(indentString(string$6, indent$2));
8220
- case STYLE_FOLDED: return ">" + blockHeader(string$6, state.indent) + dropEndingNewline(indentString(foldString(string$6, lineWidth), indent$2));
8221
- 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) + "\"";
8222
8240
  default: throw new YAMLException("impossible error: invalid scalar style");
8223
8241
  }
8224
8242
  }();
8225
8243
  }
8226
- function blockHeader(string$6, indentPerLevel) {
8227
- var indentIndicator = needIndentIndicator(string$6) ? String(indentPerLevel) : "";
8228
- var clip = string$6[string$6.length - 1] === "\n";
8229
- 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");
8230
8248
  var chomp = keep ? "+" : clip ? "" : "-";
8231
8249
  return indentIndicator + chomp + "\n";
8232
8250
  }
8233
- function dropEndingNewline(string$6) {
8234
- 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;
8235
8253
  }
8236
- function foldString(string$6, width) {
8254
+ function foldString(string$7, width) {
8237
8255
  var lineRe = /(\n+)([^\n]*)/g;
8238
8256
  var result = function() {
8239
- var nextLF = string$6.indexOf("\n");
8240
- nextLF = nextLF !== -1 ? nextLF : string$6.length;
8257
+ var nextLF = string$7.indexOf("\n");
8258
+ nextLF = nextLF !== -1 ? nextLF : string$7.length;
8241
8259
  lineRe.lastIndex = nextLF;
8242
- return foldLine(string$6.slice(0, nextLF), width);
8260
+ return foldLine(string$7.slice(0, nextLF), width);
8243
8261
  }();
8244
- var prevMoreIndented = string$6[0] === "\n" || string$6[0] === " ";
8262
+ var prevMoreIndented = string$7[0] === "\n" || string$7[0] === " ";
8245
8263
  var moreIndented;
8246
8264
  var match;
8247
- while (match = lineRe.exec(string$6)) {
8265
+ while (match = lineRe.exec(string$7)) {
8248
8266
  var prefix = match[1], line$2 = match[2];
8249
8267
  moreIndented = line$2[0] === " ";
8250
8268
  result += prefix + (!prevMoreIndented && !moreIndented && line$2 !== "" ? "\n" : "") + foldLine(line$2, width);
@@ -8272,14 +8290,14 @@ var require_dumper = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
8272
8290
  else result += line$2.slice(start);
8273
8291
  return result.slice(1);
8274
8292
  }
8275
- function escapeString(string$6) {
8293
+ function escapeString(string$7) {
8276
8294
  var result = "";
8277
8295
  var char, nextChar;
8278
8296
  var escapeSeq;
8279
- for (var i$2 = 0; i$2 < string$6.length; i$2++) {
8280
- 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);
8281
8299
  if (char >= 55296 && char <= 56319) {
8282
- nextChar = string$6.charCodeAt(i$2 + 1);
8300
+ nextChar = string$7.charCodeAt(i$2 + 1);
8283
8301
  if (nextChar >= 56320 && nextChar <= 57343) {
8284
8302
  result += encodeHex((char - 55296) * 1024 + nextChar - 56320 + 65536);
8285
8303
  i$2++;
@@ -8287,22 +8305,22 @@ var require_dumper = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
8287
8305
  }
8288
8306
  }
8289
8307
  escapeSeq = ESCAPE_SEQUENCES[char];
8290
- result += !escapeSeq && isPrintable(char) ? string$6[i$2] : escapeSeq || encodeHex(char);
8308
+ result += !escapeSeq && isPrintable(char) ? string$7[i$2] : escapeSeq || encodeHex(char);
8291
8309
  }
8292
8310
  return result;
8293
8311
  }
8294
- function writeFlowSequence(state, level, object$1) {
8312
+ function writeFlowSequence(state, level, object$2) {
8295
8313
  var _result = "", _tag = state.tag, index$1, length;
8296
- 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)) {
8297
8315
  if (index$1 !== 0) _result += "," + (!state.condenseFlow ? " " : "");
8298
8316
  _result += state.dump;
8299
8317
  }
8300
8318
  state.tag = _tag;
8301
8319
  state.dump = "[" + _result + "]";
8302
8320
  }
8303
- function writeBlockSequence(state, level, object$1, compact) {
8321
+ function writeBlockSequence(state, level, object$2, compact) {
8304
8322
  var _result = "", _tag = state.tag, index$1, length;
8305
- 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)) {
8306
8324
  if (!compact || index$1 !== 0) _result += generateNextLine(state, level);
8307
8325
  if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) _result += "-";
8308
8326
  else _result += "- ";
@@ -8311,14 +8329,14 @@ var require_dumper = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
8311
8329
  state.tag = _tag;
8312
8330
  state.dump = _result || "[]";
8313
8331
  }
8314
- function writeFlowMapping(state, level, object$1) {
8315
- 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;
8316
8334
  for (index$1 = 0, length = objectKeyList.length; index$1 < length; index$1 += 1) {
8317
8335
  pairBuffer = "";
8318
8336
  if (index$1 !== 0) pairBuffer += ", ";
8319
8337
  if (state.condenseFlow) pairBuffer += "\"";
8320
8338
  objectKey = objectKeyList[index$1];
8321
- objectValue = object$1[objectKey];
8339
+ objectValue = object$2[objectKey];
8322
8340
  if (!writeNode(state, level, objectKey, false, false)) continue;
8323
8341
  if (state.dump.length > 1024) pairBuffer += "? ";
8324
8342
  pairBuffer += state.dump + (state.condenseFlow ? "\"" : "") + ":" + (state.condenseFlow ? "" : " ");
@@ -8329,8 +8347,8 @@ var require_dumper = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
8329
8347
  state.tag = _tag;
8330
8348
  state.dump = "{" + _result + "}";
8331
8349
  }
8332
- function writeBlockMapping(state, level, object$1, compact) {
8333
- 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;
8334
8352
  if (state.sortKeys === true) objectKeyList.sort();
8335
8353
  else if (typeof state.sortKeys === "function") objectKeyList.sort(state.sortKeys);
8336
8354
  else if (state.sortKeys) throw new YAMLException("sortKeys must be a boolean or a function");
@@ -8338,7 +8356,7 @@ var require_dumper = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
8338
8356
  pairBuffer = "";
8339
8357
  if (!compact || index$1 !== 0) pairBuffer += generateNextLine(state, level);
8340
8358
  objectKey = objectKeyList[index$1];
8341
- objectValue = object$1[objectKey];
8359
+ objectValue = object$2[objectKey];
8342
8360
  if (!writeNode(state, level + 1, objectKey, true, true, true)) continue;
8343
8361
  explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
8344
8362
  if (explicitPair) if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) pairBuffer += "?";
@@ -8354,17 +8372,17 @@ var require_dumper = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
8354
8372
  state.tag = _tag;
8355
8373
  state.dump = _result || "{}";
8356
8374
  }
8357
- function detectType(state, object$1, explicit) {
8375
+ function detectType(state, object$2, explicit) {
8358
8376
  var _result, typeList, index$1, length, type$1, style;
8359
8377
  typeList = explicit ? state.explicitTypes : state.implicitTypes;
8360
8378
  for (index$1 = 0, length = typeList.length; index$1 < length; index$1 += 1) {
8361
8379
  type$1 = typeList[index$1];
8362
- 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))) {
8363
8381
  state.tag = explicit ? type$1.tag : "?";
8364
8382
  if (type$1.represent) {
8365
8383
  style = state.styleMap[type$1.tag] || type$1.defaultStyle;
8366
- if (_toString.call(type$1.represent) === "[object Function]") _result = type$1.represent(object$1, style);
8367
- 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);
8368
8386
  else throw new YAMLException("!<" + type$1.tag + "> tag resolver accepts not \"" + style + "\" style");
8369
8387
  state.dump = _result;
8370
8388
  }
@@ -8373,15 +8391,15 @@ var require_dumper = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
8373
8391
  }
8374
8392
  return false;
8375
8393
  }
8376
- function writeNode(state, level, object$1, block, compact, iskey) {
8394
+ function writeNode(state, level, object$2, block, compact, iskey) {
8377
8395
  state.tag = null;
8378
- state.dump = object$1;
8379
- 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);
8380
8398
  var type$1 = _toString.call(state.dump);
8381
8399
  if (block) block = state.flowLevel < 0 || state.flowLevel > level;
8382
8400
  var objectOrArray = type$1 === "[object Object]" || type$1 === "[object Array]", duplicateIndex, duplicate;
8383
8401
  if (objectOrArray) {
8384
- duplicateIndex = state.duplicates.indexOf(object$1);
8402
+ duplicateIndex = state.duplicates.indexOf(object$2);
8385
8403
  duplicate = duplicateIndex !== -1;
8386
8404
  }
8387
8405
  if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0) compact = false;
@@ -8414,24 +8432,24 @@ var require_dumper = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
8414
8432
  }
8415
8433
  return true;
8416
8434
  }
8417
- function getDuplicateReferences(object$1, state) {
8435
+ function getDuplicateReferences(object$2, state) {
8418
8436
  var objects = [], duplicatesIndexes = [], index$1, length;
8419
- inspectNode(object$1, objects, duplicatesIndexes);
8437
+ inspectNode(object$2, objects, duplicatesIndexes);
8420
8438
  for (index$1 = 0, length = duplicatesIndexes.length; index$1 < length; index$1 += 1) state.duplicates.push(objects[duplicatesIndexes[index$1]]);
8421
8439
  state.usedDuplicates = new Array(length);
8422
8440
  }
8423
- function inspectNode(object$1, objects, duplicatesIndexes) {
8441
+ function inspectNode(object$2, objects, duplicatesIndexes) {
8424
8442
  var objectKeyList, index$1, length;
8425
- if (object$1 !== null && typeof object$1 === "object") {
8426
- index$1 = objects.indexOf(object$1);
8443
+ if (object$2 !== null && typeof object$2 === "object") {
8444
+ index$1 = objects.indexOf(object$2);
8427
8445
  if (index$1 !== -1) {
8428
8446
  if (duplicatesIndexes.indexOf(index$1) === -1) duplicatesIndexes.push(index$1);
8429
8447
  } else {
8430
- objects.push(object$1);
8431
- 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);
8432
8450
  else {
8433
- objectKeyList = Object.keys(object$1);
8434
- 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);
8435
8453
  }
8436
8454
  }
8437
8455
  }
@@ -8739,7 +8757,7 @@ var require_parse$3 = __commonJS$2({ "../../node_modules/.pnpm/gray-matter@4.0.3
8739
8757
  //#endregion
8740
8758
  //#region ../../node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/index.js
8741
8759
  var require_gray_matter = __commonJS$2({ "../../node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/index.js"(exports, module) {
8742
- const fs$9 = __require$1("fs");
8760
+ const fs$10 = __require$1("fs");
8743
8761
  const sections = require_section_matter();
8744
8762
  const defaults = require_defaults();
8745
8763
  const stringify$4 = require_stringify$2();
@@ -8864,7 +8882,7 @@ var require_gray_matter = __commonJS$2({ "../../node_modules/.pnpm/gray-matter@4
8864
8882
  * @api public
8865
8883
  */
8866
8884
  matter$2.read = function(filepath, options$1) {
8867
- const str = fs$9.readFileSync(filepath, "utf8");
8885
+ const str = fs$10.readFileSync(filepath, "utf8");
8868
8886
  const file$1 = matter$2(str, options$1);
8869
8887
  file$1.path = filepath;
8870
8888
  return file$1;
@@ -8932,8 +8950,8 @@ var require_ignore$1 = __commonJS$2({ "../../node_modules/.pnpm/ignore@7.0.5/nod
8932
8950
  /* istanbul ignore else */
8933
8951
  if (typeof Symbol !== "undefined") TMP_KEY_IGNORE = Symbol.for("node-ignore");
8934
8952
  const KEY_IGNORE = TMP_KEY_IGNORE;
8935
- const define = (object$1, key$1, value) => {
8936
- Object.defineProperty(object$1, key$1, { value });
8953
+ const define = (object$2, key$1, value) => {
8954
+ Object.defineProperty(object$2, key$1, { value });
8937
8955
  return value;
8938
8956
  };
8939
8957
  const REGEX_REGEXP_RANGE = /([0-z])-([0-z])/g;
@@ -9322,17 +9340,17 @@ var require_yoctocolors_cjs = __commonJS$2({ "../../node_modules/.pnpm/yoctocolo
9322
9340
  const openCode = `\u001B[${open}m`;
9323
9341
  const closeCode = `\u001B[${close}m`;
9324
9342
  return (input) => {
9325
- const string$6 = input + "";
9326
- let index$1 = string$6.indexOf(closeCode);
9327
- 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;
9328
9346
  let result = openCode;
9329
9347
  let lastIndex = 0;
9330
9348
  while (index$1 !== -1) {
9331
- result += string$6.slice(lastIndex, index$1) + openCode;
9349
+ result += string$7.slice(lastIndex, index$1) + openCode;
9332
9350
  lastIndex = index$1 + closeCode.length;
9333
- index$1 = string$6.indexOf(closeCode, lastIndex);
9351
+ index$1 = string$7.indexOf(closeCode, lastIndex);
9334
9352
  }
9335
- result += string$6.slice(lastIndex) + closeCode;
9353
+ result += string$7.slice(lastIndex) + closeCode;
9336
9354
  return result;
9337
9355
  };
9338
9356
  };
@@ -9665,7 +9683,7 @@ const fallbackSymbols = {
9665
9683
  };
9666
9684
  const shouldUseMain = isUnicodeSupported();
9667
9685
  const figures = shouldUseMain ? mainSymbols : fallbackSymbols;
9668
- var esm_default = figures;
9686
+ var esm_default$1 = figures;
9669
9687
  const replacements = Object.entries(specialMainSymbols);
9670
9688
 
9671
9689
  //#endregion
@@ -9674,7 +9692,7 @@ var import_yoctocolors_cjs$2 = __toESM$1(require_yoctocolors_cjs(), 1);
9674
9692
  const defaultTheme = {
9675
9693
  prefix: {
9676
9694
  idle: import_yoctocolors_cjs$2.default.blue("?"),
9677
- done: import_yoctocolors_cjs$2.default.green(esm_default.tick)
9695
+ done: import_yoctocolors_cjs$2.default.green(esm_default$1.tick)
9678
9696
  },
9679
9697
  spinner: {
9680
9698
  interval: 80,
@@ -9835,7 +9853,7 @@ var require_ansi_regex = __commonJS$2({ "../../node_modules/.pnpm/ansi-regex@5.0
9835
9853
  //#region ../../node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js
9836
9854
  var require_strip_ansi = __commonJS$2({ "../../node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js"(exports, module) {
9837
9855
  const ansiRegex = require_ansi_regex();
9838
- 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;
9839
9857
  } });
9840
9858
 
9841
9859
  //#endregion
@@ -9864,14 +9882,14 @@ var require_string_width = __commonJS$2({ "../../node_modules/.pnpm/string-width
9864
9882
  const stripAnsi$1 = require_strip_ansi();
9865
9883
  const isFullwidthCodePoint = require_is_fullwidth_code_point();
9866
9884
  const emojiRegex = require_emoji_regex();
9867
- const stringWidth$1 = (string$6) => {
9868
- if (typeof string$6 !== "string" || string$6.length === 0) return 0;
9869
- string$6 = stripAnsi$1(string$6);
9870
- if (string$6.length === 0) return 0;
9871
- 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(), " ");
9872
9890
  let width = 0;
9873
- for (let i$2 = 0; i$2 < string$6.length; i$2++) {
9874
- 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);
9875
9893
  if (code$1 <= 31 || code$1 >= 127 && code$1 <= 159) continue;
9876
9894
  if (code$1 >= 768 && code$1 <= 879) continue;
9877
9895
  if (code$1 > 65535) i$2++;
@@ -10834,27 +10852,27 @@ var require_conversions = __commonJS$2({ "../../node_modules/.pnpm/color-convert
10834
10852
  b$1 = b$1 > .04045 ? ((b$1 + .055) / 1.055) ** 2.4 : b$1 / 12.92;
10835
10853
  const x$1 = r$1 * .4124 + g$1 * .3576 + b$1 * .1805;
10836
10854
  const y$2 = r$1 * .2126 + g$1 * .7152 + b$1 * .0722;
10837
- 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;
10838
10856
  return [
10839
10857
  x$1 * 100,
10840
10858
  y$2 * 100,
10841
- z$2 * 100
10859
+ z$1 * 100
10842
10860
  ];
10843
10861
  };
10844
10862
  convert$2.rgb.lab = function(rgb) {
10845
10863
  const xyz = convert$2.rgb.xyz(rgb);
10846
10864
  let x$1 = xyz[0];
10847
10865
  let y$2 = xyz[1];
10848
- let z$2 = xyz[2];
10866
+ let z$1 = xyz[2];
10849
10867
  x$1 /= 95.047;
10850
10868
  y$2 /= 100;
10851
- z$2 /= 108.883;
10869
+ z$1 /= 108.883;
10852
10870
  x$1 = x$1 > .008856 ? x$1 ** (1 / 3) : 7.787 * x$1 + 16 / 116;
10853
10871
  y$2 = y$2 > .008856 ? y$2 ** (1 / 3) : 7.787 * y$2 + 16 / 116;
10854
- 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;
10855
10873
  const l$1 = 116 * y$2 - 16;
10856
10874
  const a$1 = 500 * (x$1 - y$2);
10857
- const b$1 = 200 * (y$2 - z$2);
10875
+ const b$1 = 200 * (y$2 - z$1);
10858
10876
  return [
10859
10877
  l$1,
10860
10878
  a$1,
@@ -11050,13 +11068,13 @@ var require_conversions = __commonJS$2({ "../../node_modules/.pnpm/color-convert
11050
11068
  convert$2.xyz.rgb = function(xyz) {
11051
11069
  const x$1 = xyz[0] / 100;
11052
11070
  const y$2 = xyz[1] / 100;
11053
- const z$2 = xyz[2] / 100;
11071
+ const z$1 = xyz[2] / 100;
11054
11072
  let r$1;
11055
11073
  let g$1;
11056
11074
  let b$1;
11057
- r$1 = x$1 * 3.2406 + y$2 * -1.5372 + z$2 * -.4986;
11058
- g$1 = x$1 * -.9689 + y$2 * 1.8758 + z$2 * .0415;
11059
- 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;
11060
11078
  r$1 = r$1 > .0031308 ? 1.055 * r$1 ** (1 / 2.4) - .055 : r$1 * 12.92;
11061
11079
  g$1 = g$1 > .0031308 ? 1.055 * g$1 ** (1 / 2.4) - .055 : g$1 * 12.92;
11062
11080
  b$1 = b$1 > .0031308 ? 1.055 * b$1 ** (1 / 2.4) - .055 : b$1 * 12.92;
@@ -11072,16 +11090,16 @@ var require_conversions = __commonJS$2({ "../../node_modules/.pnpm/color-convert
11072
11090
  convert$2.xyz.lab = function(xyz) {
11073
11091
  let x$1 = xyz[0];
11074
11092
  let y$2 = xyz[1];
11075
- let z$2 = xyz[2];
11093
+ let z$1 = xyz[2];
11076
11094
  x$1 /= 95.047;
11077
11095
  y$2 /= 100;
11078
- z$2 /= 108.883;
11096
+ z$1 /= 108.883;
11079
11097
  x$1 = x$1 > .008856 ? x$1 ** (1 / 3) : 7.787 * x$1 + 16 / 116;
11080
11098
  y$2 = y$2 > .008856 ? y$2 ** (1 / 3) : 7.787 * y$2 + 16 / 116;
11081
- 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;
11082
11100
  const l$1 = 116 * y$2 - 16;
11083
11101
  const a$1 = 500 * (x$1 - y$2);
11084
- const b$1 = 200 * (y$2 - z$2);
11102
+ const b$1 = 200 * (y$2 - z$1);
11085
11103
  return [
11086
11104
  l$1,
11087
11105
  a$1,
@@ -11094,23 +11112,23 @@ var require_conversions = __commonJS$2({ "../../node_modules/.pnpm/color-convert
11094
11112
  const b$1 = lab[2];
11095
11113
  let x$1;
11096
11114
  let y$2;
11097
- let z$2;
11115
+ let z$1;
11098
11116
  y$2 = (l$1 + 16) / 116;
11099
11117
  x$1 = a$1 / 500 + y$2;
11100
- z$2 = y$2 - b$1 / 200;
11118
+ z$1 = y$2 - b$1 / 200;
11101
11119
  const y2 = y$2 ** 3;
11102
11120
  const x2 = x$1 ** 3;
11103
- const z2 = z$2 ** 3;
11121
+ const z2 = z$1 ** 3;
11104
11122
  y$2 = y2 > .008856 ? y2 : (y$2 - 16 / 116) / 7.787;
11105
11123
  x$1 = x2 > .008856 ? x2 : (x$1 - 16 / 116) / 7.787;
11106
- z$2 = z2 > .008856 ? z2 : (z$2 - 16 / 116) / 7.787;
11124
+ z$1 = z2 > .008856 ? z2 : (z$1 - 16 / 116) / 7.787;
11107
11125
  x$1 *= 95.047;
11108
11126
  y$2 *= 100;
11109
- z$2 *= 108.883;
11127
+ z$1 *= 108.883;
11110
11128
  return [
11111
11129
  x$1,
11112
11130
  y$2,
11113
- z$2
11131
+ z$1
11114
11132
  ];
11115
11133
  };
11116
11134
  convert$2.lab.lch = function(lab) {
@@ -11208,8 +11226,8 @@ var require_conversions = __commonJS$2({ "../../node_modules/.pnpm/color-convert
11208
11226
  };
11209
11227
  convert$2.rgb.hex = function(args) {
11210
11228
  const integer$1 = ((Math.round(args[0]) & 255) << 16) + ((Math.round(args[1]) & 255) << 8) + (Math.round(args[2]) & 255);
11211
- const string$6 = integer$1.toString(16).toUpperCase();
11212
- 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;
11213
11231
  };
11214
11232
  convert$2.hex.rgb = function(args) {
11215
11233
  const match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
@@ -11437,8 +11455,8 @@ var require_conversions = __commonJS$2({ "../../node_modules/.pnpm/color-convert
11437
11455
  convert$2.gray.hex = function(gray$1) {
11438
11456
  const val = Math.round(gray$1[0] / 100 * 255) & 255;
11439
11457
  const integer$1 = (val << 16) + (val << 8) + val;
11440
- const string$6 = integer$1.toString(16).toUpperCase();
11441
- 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;
11442
11460
  };
11443
11461
  convert$2.rgb.gray = function(rgb) {
11444
11462
  const val = (rgb[0] + rgb[1] + rgb[2]) / 3;
@@ -11574,11 +11592,11 @@ var require_ansi_styles = __commonJS$2({ "../../node_modules/.pnpm/ansi-styles@4
11574
11592
  g$1,
11575
11593
  b$1
11576
11594
  ];
11577
- const setLazyProperty = (object$1, property, get) => {
11578
- Object.defineProperty(object$1, property, {
11595
+ const setLazyProperty = (object$2, property, get) => {
11596
+ Object.defineProperty(object$2, property, {
11579
11597
  get: () => {
11580
11598
  const value = get();
11581
- Object.defineProperty(object$1, property, {
11599
+ Object.defineProperty(object$2, property, {
11582
11600
  value,
11583
11601
  enumerable: true,
11584
11602
  configurable: true
@@ -11699,7 +11717,7 @@ var require_wrap_ansi = __commonJS$2({ "../../node_modules/.pnpm/wrap-ansi@6.2.0
11699
11717
  const ESCAPES = new Set(["\x1B", "›"]);
11700
11718
  const END_CODE = 39;
11701
11719
  const wrapAnsi$1 = (code$1) => `${ESCAPES.values().next().value}[${code$1}m`;
11702
- const wordLengths = (string$6) => string$6.split(" ").map((character) => stringWidth(character));
11720
+ const wordLengths = (string$7) => string$7.split(" ").map((character) => stringWidth(character));
11703
11721
  const wrapWord = (rows, word, columns) => {
11704
11722
  const characters = [...word];
11705
11723
  let isInsideEscape = false;
@@ -11735,14 +11753,14 @@ var require_wrap_ansi = __commonJS$2({ "../../node_modules/.pnpm/wrap-ansi@6.2.0
11735
11753
  if (last$1 === words.length) return str;
11736
11754
  return words.slice(0, last$1).join(" ") + words.slice(last$1).join("");
11737
11755
  };
11738
- const exec = (string$6, columns, options$1 = {}) => {
11739
- 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 "";
11740
11758
  let pre = "";
11741
11759
  let ret = "";
11742
11760
  let escapeCode;
11743
- const lengths = wordLengths(string$6);
11761
+ const lengths = wordLengths(string$7);
11744
11762
  let rows = [""];
11745
- for (const [index$1, word] of string$6.split(" ").entries()) {
11763
+ for (const [index$1, word] of string$7.split(" ").entries()) {
11746
11764
  if (options$1.trim !== false) rows[rows.length - 1] = rows[rows.length - 1].trimLeft();
11747
11765
  let rowLength = stringWidth(rows[rows.length - 1]);
11748
11766
  if (index$1 !== 0) {
@@ -11792,8 +11810,8 @@ var require_wrap_ansi = __commonJS$2({ "../../node_modules/.pnpm/wrap-ansi@6.2.0
11792
11810
  }
11793
11811
  return ret;
11794
11812
  };
11795
- module.exports = (string$6, columns, options$1) => {
11796
- 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");
11797
11815
  };
11798
11816
  } });
11799
11817
 
@@ -12484,7 +12502,7 @@ var import_yoctocolors_cjs$1 = __toESM$1(require_yoctocolors_cjs(), 1);
12484
12502
  * Used to space/separate choices group
12485
12503
  */
12486
12504
  var Separator = class {
12487
- separator = import_yoctocolors_cjs$1.default.dim(Array.from({ length: 15 }).join(esm_default.line));
12505
+ separator = import_yoctocolors_cjs$1.default.dim(Array.from({ length: 15 }).join(esm_default$1.line));
12488
12506
  type = "separator";
12489
12507
  constructor(separator) {
12490
12508
  if (separator) this.separator = separator;
@@ -12500,9 +12518,9 @@ var import_yoctocolors_cjs = __toESM$1(require_yoctocolors_cjs(), 1);
12500
12518
  var import_ansi_escapes = __toESM$1(require_ansi_escapes(), 1);
12501
12519
  const checkboxTheme = {
12502
12520
  icon: {
12503
- checked: import_yoctocolors_cjs.default.green(esm_default.circleFilled),
12504
- unchecked: esm_default.circle,
12505
- cursor: esm_default.pointer
12521
+ checked: import_yoctocolors_cjs.default.green(esm_default$1.circleFilled),
12522
+ unchecked: esm_default$1.circle,
12523
+ cursor: esm_default$1.pointer
12506
12524
  },
12507
12525
  style: {
12508
12526
  disabledChoice: (text$2) => import_yoctocolors_cjs.default.dim(`- ${text$2}`),
@@ -12553,7 +12571,7 @@ function normalizeChoices(choices) {
12553
12571
  return normalizedChoice;
12554
12572
  });
12555
12573
  }
12556
- var esm_default$1 = createPrompt((config$1, done) => {
12574
+ var esm_default$2 = createPrompt((config$1, done) => {
12557
12575
  const { instructions, pageSize = 7, loop = true, required: required$1, validate: validate$1 = () => true } = config$1;
12558
12576
  const shortcuts = {
12559
12577
  all: "a",
@@ -12670,6 +12688,47 @@ var esm_default$1 = createPrompt((config$1, done) => {
12670
12688
  return `${prefix} ${message}${helpTipTop}\n${page}${helpTipBottom}${choiceDescription}${error$41}${import_ansi_escapes.default.cursorHide}`;
12671
12689
  });
12672
12690
 
12691
+ //#endregion
12692
+ //#region ../../node_modules/.pnpm/@inquirer+confirm@5.1.14_@types+node@24.1.0/node_modules/@inquirer/confirm/dist/esm/index.js
12693
+ function getBooleanValue(value, defaultValue) {
12694
+ let answer = defaultValue !== false;
12695
+ if (/^(y|yes)/i.test(value)) answer = true;
12696
+ else if (/^(n|no)/i.test(value)) answer = false;
12697
+ return answer;
12698
+ }
12699
+ function boolToString(value) {
12700
+ return value ? "Yes" : "No";
12701
+ }
12702
+ var esm_default = createPrompt((config$1, done) => {
12703
+ const { transformer = boolToString } = config$1;
12704
+ const [status, setStatus] = useState("idle");
12705
+ const [value, setValue] = useState("");
12706
+ const theme = makeTheme(config$1.theme);
12707
+ const prefix = usePrefix({
12708
+ status,
12709
+ theme
12710
+ });
12711
+ useKeypress((key$1, rl) => {
12712
+ if (isEnterKey(key$1)) {
12713
+ const answer = getBooleanValue(value, config$1.default);
12714
+ setValue(transformer(answer));
12715
+ setStatus("done");
12716
+ done(answer);
12717
+ } else if (key$1.name === "tab") {
12718
+ const answer = boolToString(!getBooleanValue(value, config$1.default));
12719
+ rl.clearLine(0);
12720
+ rl.write(answer);
12721
+ setValue(answer);
12722
+ } else setValue(rl.line);
12723
+ });
12724
+ let formattedValue = value;
12725
+ let defaultValue = "";
12726
+ if (status === "done") formattedValue = theme.style.answer(value);
12727
+ else defaultValue = ` ${theme.style.defaultAnswer(config$1.default === false ? "y/N" : "Y/n")}`;
12728
+ const message = theme.style.message(config$1.message, status);
12729
+ return `${prefix} ${message}${defaultValue} ${formattedValue}`;
12730
+ });
12731
+
12673
12732
  //#endregion
12674
12733
  //#region ../../node_modules/.pnpm/@sindresorhus+merge-streams@2.3.0/node_modules/@sindresorhus/merge-streams/index.js
12675
12734
  function mergeStreams(streams) {
@@ -13353,9 +13412,9 @@ var require_to_regex_range$1 = __commonJS$2({ "../../node_modules/.pnpm/to-regex
13353
13412
  function filterPatterns(arr, comparison, prefix, intersection$1, options$1) {
13354
13413
  let result = [];
13355
13414
  for (let ele of arr) {
13356
- let { string: string$6 } = ele;
13357
- if (!intersection$1 && !contains(comparison, "string", string$6)) result.push(prefix + string$6);
13358
- 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);
13359
13418
  }
13360
13419
  return result;
13361
13420
  }
@@ -16551,20 +16610,20 @@ var require_string$1 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3/
16551
16610
  var require_utils$2 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.js"(exports) {
16552
16611
  Object.defineProperty(exports, "__esModule", { value: true });
16553
16612
  exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = void 0;
16554
- const array$2 = require_array$1();
16555
- exports.array = array$2;
16613
+ const array$3 = require_array$1();
16614
+ exports.array = array$3;
16556
16615
  const errno = require_errno$1();
16557
16616
  exports.errno = errno;
16558
- const fs$8 = require_fs$4();
16559
- exports.fs = fs$8;
16617
+ const fs$9 = require_fs$4();
16618
+ exports.fs = fs$9;
16560
16619
  const path$6 = require_path$1();
16561
16620
  exports.path = path$6;
16562
16621
  const pattern = require_pattern$1();
16563
16622
  exports.pattern = pattern;
16564
16623
  const stream = require_stream$4();
16565
16624
  exports.stream = stream;
16566
- const string$5 = require_string$1();
16567
- exports.string = string$5;
16625
+ const string$6 = require_string$1();
16626
+ exports.string = string$6;
16568
16627
  } });
16569
16628
 
16570
16629
  //#endregion
@@ -16728,12 +16787,12 @@ var require_sync$6 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.stat@2
16728
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) {
16729
16788
  Object.defineProperty(exports, "__esModule", { value: true });
16730
16789
  exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
16731
- const fs$7 = __require$1("fs");
16790
+ const fs$8 = __require$1("fs");
16732
16791
  exports.FILE_SYSTEM_ADAPTER = {
16733
- lstat: fs$7.lstat,
16734
- stat: fs$7.stat,
16735
- lstatSync: fs$7.lstatSync,
16736
- statSync: fs$7.statSync
16792
+ lstat: fs$8.lstat,
16793
+ stat: fs$8.stat,
16794
+ lstatSync: fs$8.lstatSync,
16795
+ statSync: fs$8.statSync
16737
16796
  };
16738
16797
  function createFileSystemAdapter$1(fsMethods) {
16739
16798
  if (fsMethods === void 0) return exports.FILE_SYSTEM_ADAPTER;
@@ -16746,12 +16805,12 @@ var require_fs$3 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.stat@2.0
16746
16805
  //#region ../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.js
16747
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) {
16748
16807
  Object.defineProperty(exports, "__esModule", { value: true });
16749
- const fs$6 = require_fs$3();
16808
+ const fs$7 = require_fs$3();
16750
16809
  var Settings$3 = class {
16751
16810
  constructor(_options = {}) {
16752
16811
  this._options = _options;
16753
16812
  this.followSymbolicLink = this._getValue(this._options.followSymbolicLink, true);
16754
- this.fs = fs$6.createFileSystemAdapter(this._options.fs);
16813
+ this.fs = fs$7.createFileSystemAdapter(this._options.fs);
16755
16814
  this.markSymbolicLink = this._getValue(this._options.markSymbolicLink, false);
16756
16815
  this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
16757
16816
  }
@@ -16891,8 +16950,8 @@ var require_fs$2 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.scandir@
16891
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) {
16892
16951
  Object.defineProperty(exports, "__esModule", { value: true });
16893
16952
  exports.fs = void 0;
16894
- const fs$5 = require_fs$2();
16895
- exports.fs = fs$5;
16953
+ const fs$6 = require_fs$2();
16954
+ exports.fs = fs$6;
16896
16955
  } });
16897
16956
 
16898
16957
  //#endregion
@@ -17070,14 +17129,14 @@ var require_sync$5 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.scandi
17070
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) {
17071
17130
  Object.defineProperty(exports, "__esModule", { value: true });
17072
17131
  exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
17073
- const fs$4 = __require$1("fs");
17132
+ const fs$5 = __require$1("fs");
17074
17133
  exports.FILE_SYSTEM_ADAPTER = {
17075
- lstat: fs$4.lstat,
17076
- stat: fs$4.stat,
17077
- lstatSync: fs$4.lstatSync,
17078
- statSync: fs$4.statSync,
17079
- readdir: fs$4.readdir,
17080
- 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
17081
17140
  };
17082
17141
  function createFileSystemAdapter(fsMethods) {
17083
17142
  if (fsMethods === void 0) return exports.FILE_SYSTEM_ADAPTER;
@@ -17092,12 +17151,12 @@ var require_settings$3 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.sc
17092
17151
  Object.defineProperty(exports, "__esModule", { value: true });
17093
17152
  const path$5 = __require$1("path");
17094
17153
  const fsStat$3 = require_out$4();
17095
- const fs$3 = require_fs$1();
17154
+ const fs$4 = require_fs$1();
17096
17155
  var Settings$2 = class {
17097
17156
  constructor(_options = {}) {
17098
17157
  this._options = _options;
17099
17158
  this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
17100
- this.fs = fs$3.createFileSystemAdapter(this._options.fs);
17159
+ this.fs = fs$4.createFileSystemAdapter(this._options.fs);
17101
17160
  this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$5.sep);
17102
17161
  this.stats = this._getValue(this._options.stats, false);
17103
17162
  this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
@@ -18290,7 +18349,7 @@ var require_sync$1 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3/no
18290
18349
  var require_settings$1 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/settings.js"(exports) {
18291
18350
  Object.defineProperty(exports, "__esModule", { value: true });
18292
18351
  exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
18293
- const fs$2 = __require$1("fs");
18352
+ const fs$3 = __require$1("fs");
18294
18353
  const os$1 = __require$1("os");
18295
18354
  /**
18296
18355
  * The `os.cpus` method can return zero. We expect the number of cores to be greater than zero.
@@ -18298,12 +18357,12 @@ var require_settings$1 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.
18298
18357
  */
18299
18358
  const CPU_COUNT = Math.max(os$1.cpus().length, 1);
18300
18359
  exports.DEFAULT_FILE_SYSTEM_ADAPTER = {
18301
- lstat: fs$2.lstat,
18302
- lstatSync: fs$2.lstatSync,
18303
- stat: fs$2.stat,
18304
- statSync: fs$2.statSync,
18305
- readdir: fs$2.readdir,
18306
- 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
18307
18366
  };
18308
18367
  var Settings = class {
18309
18368
  constructor(_options = {}) {
@@ -18450,7 +18509,7 @@ var require_out$1 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3/nod
18450
18509
  async function isType(fsStatType, statsMethodName, filePath) {
18451
18510
  if (typeof filePath !== "string") throw new TypeError(`Expected a string, got ${typeof filePath}`);
18452
18511
  try {
18453
- const stats = await fsPromises[fsStatType](filePath);
18512
+ const stats = await fs$1[fsStatType](filePath);
18454
18513
  return stats[statsMethodName]();
18455
18514
  } catch (error$41) {
18456
18515
  if (error$41.code === "ENOENT") return false;
@@ -18547,7 +18606,7 @@ const isIgnoredByIgnoreFiles = async (patterns, options$1) => {
18547
18606
  });
18548
18607
  const files$1 = await Promise.all(paths.map(async (filePath) => ({
18549
18608
  filePath,
18550
- content: await fsPromises.readFile(filePath, "utf8")
18609
+ content: await fs$1.readFile(filePath, "utf8")
18551
18610
  })));
18552
18611
  return getIsIgnoredPredicate(files$1, cwd);
18553
18612
  };
@@ -23317,16 +23376,16 @@ var VALID_OBJECT_DOC_TYPES$1 = /* @__PURE__ */ new Set([
23317
23376
  DOC_TYPE_LABEL$1,
23318
23377
  DOC_TYPE_BREAK_PARENT$1
23319
23378
  ]);
23320
- var at$1 = (isOptionalObject, object$1, index$1) => {
23321
- if (isOptionalObject && (object$1 === void 0 || object$1 === null)) return;
23322
- if (Array.isArray(object$1) || typeof object$1 === "string") return object$1[index$1 < 0 ? object$1.length + index$1 : index$1];
23323
- 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);
23324
23383
  };
23325
23384
  var at_default$1 = at$1;
23326
- function trimNewlinesEnd$1(string$6) {
23327
- let end = string$6.length;
23328
- while (end > 0 && (string$6[end - 1] === "\r" || string$6[end - 1] === "\n")) end--;
23329
- 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;
23330
23389
  }
23331
23390
  function getDocType$1(doc) {
23332
23391
  if (typeof doc === "string") return DOC_TYPE_STRING$1;
@@ -24767,9 +24826,9 @@ var require_to_regex_range = __commonJS({ "node_modules/to-regex-range/index.js"
24767
24826
  function filterPatterns$1(arr, comparison, prefix, intersection$1, options8) {
24768
24827
  let result = [];
24769
24828
  for (let ele of arr) {
24770
- let { string: string$6 } = ele;
24771
- if (!intersection$1 && !contains$1(comparison, "string", string$6)) result.push(prefix + string$6);
24772
- 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);
24773
24832
  }
24774
24833
  return result;
24775
24834
  }
@@ -27227,8 +27286,8 @@ var require_utils3 = __commonJS({ "node_modules/fast-glob/out/utils/index.js"(ex
27227
27286
  exports$2.pattern = pattern$1;
27228
27287
  var stream$1 = require_stream();
27229
27288
  exports$2.stream = stream$1;
27230
- var string$6 = require_string();
27231
- exports$2.string = string$6;
27289
+ var string$7 = require_string();
27290
+ exports$2.string = string$7;
27232
27291
  } });
27233
27292
  var require_tasks = __commonJS({ "node_modules/fast-glob/out/managers/tasks.js"(exports$2) {
27234
27293
  "use strict";
@@ -28970,17 +29029,17 @@ var require_picocolors = __commonJS({ "node_modules/picocolors/picocolors.js"(ex
28970
29029
  var env$2 = p$1.env || {};
28971
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);
28972
29031
  var formatter = (open, close, replace = open) => (input) => {
28973
- let string$6 = "" + input, index$1 = string$6.indexOf(close, open.length);
28974
- 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;
28975
29034
  };
28976
- var replaceClose = (string$6, close, replace, index$1) => {
29035
+ var replaceClose = (string$7, close, replace, index$1) => {
28977
29036
  let result = "", cursor2 = 0;
28978
29037
  do {
28979
- result += string$6.substring(cursor2, index$1) + replace;
29038
+ result += string$7.substring(cursor2, index$1) + replace;
28980
29039
  cursor2 = index$1 + close.length;
28981
- index$1 = string$6.indexOf(close, cursor2);
29040
+ index$1 = string$7.indexOf(close, cursor2);
28982
29041
  } while (~index$1);
28983
- return result + string$6.substring(cursor2);
29042
+ return result + string$7.substring(cursor2);
28984
29043
  };
28985
29044
  var createColors = (enabled$1 = isColorSupported) => {
28986
29045
  let f$1 = enabled$1 ? formatter : () => String;
@@ -32290,11 +32349,11 @@ var require_lib2 = __commonJS({ "node_modules/@babel/code-frame/lib/index.js"(ex
32290
32349
  const numberMaxWidth = String(end).length;
32291
32350
  const highlightedLines = shouldHighlight ? highlight(rawLines) : rawLines;
32292
32351
  let frame = highlightedLines.split(NEWLINE, end).slice(start, end).map((line3, index2) => {
32293
- const number$3 = start + 1 + index2;
32294
- const paddedNumber = ` ${number$3}`.slice(-numberMaxWidth);
32352
+ const number$4 = start + 1 + index2;
32353
+ const paddedNumber = ` ${number$4}`.slice(-numberMaxWidth);
32295
32354
  const gutter = ` ${paddedNumber} |`;
32296
- const hasMarker = markerLines[number$3];
32297
- const lastMarkerLine = !markerLines[number$3 + 1];
32355
+ const hasMarker = markerLines[number$4];
32356
+ const lastMarkerLine = !markerLines[number$4 + 1];
32298
32357
  if (hasMarker) {
32299
32358
  let markerLine = "";
32300
32359
  if (Array.isArray(hasMarker)) {
@@ -32458,8 +32517,8 @@ var require_ignore = __commonJS({ "node_modules/ignore/index.js"(exports$2, modu
32458
32517
  var TMP_KEY_IGNORE$1 = "node-ignore";
32459
32518
  if (typeof Symbol !== "undefined") TMP_KEY_IGNORE$1 = Symbol.for("node-ignore");
32460
32519
  var KEY_IGNORE$1 = TMP_KEY_IGNORE$1;
32461
- var define$1 = (object$1, key2, value) => {
32462
- Object.defineProperty(object$1, key2, { value });
32520
+ var define$1 = (object$2, key2, value) => {
32521
+ Object.defineProperty(object$2, key2, { value });
32463
32522
  return value;
32464
32523
  };
32465
32524
  var REGEX_REGEXP_RANGE$1 = /([0-z])-([0-z])/g;
@@ -33032,7 +33091,7 @@ function splitLines(text$2) {
33032
33091
  return result;
33033
33092
  }
33034
33093
  var import_fast_glob = __toESM(require_out4(), 1);
33035
- var array$1 = [];
33094
+ var array$2 = [];
33036
33095
  var characterCodeCache = [];
33037
33096
  function leven(first$1, second) {
33038
33097
  if (first$1 === second) return 0;
@@ -33060,7 +33119,7 @@ function leven(first$1, second) {
33060
33119
  let index2 = 0;
33061
33120
  while (index$1 < firstLength) {
33062
33121
  characterCodeCache[index$1] = first$1.charCodeAt(start + index$1);
33063
- array$1[index$1] = ++index$1;
33122
+ array$2[index$1] = ++index$1;
33064
33123
  }
33065
33124
  while (index2 < secondLength) {
33066
33125
  bCharacterCode = second.charCodeAt(start + index2);
@@ -33068,8 +33127,8 @@ function leven(first$1, second) {
33068
33127
  result = index2;
33069
33128
  for (index$1 = 0; index$1 < firstLength; index$1++) {
33070
33129
  temporary2 = bCharacterCode === characterCodeCache[index$1] ? temporary : temporary + 1;
33071
- temporary = array$1[index$1];
33072
- 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;
33073
33132
  }
33074
33133
  }
33075
33134
  return result;
@@ -33459,7 +33518,7 @@ var defaultInvalidHandler = commonInvalidHandler;
33459
33518
  var defaultDeprecatedHandler = commonDeprecatedHandler;
33460
33519
  var Normalizer = class {
33461
33520
  constructor(schemas, opts) {
33462
- 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 || {};
33463
33522
  this._utils = {
33464
33523
  descriptor,
33465
33524
  logger: logger$1 || { warn: () => {} },
@@ -33472,7 +33531,7 @@ var Normalizer = class {
33472
33531
  normalizeRedirectResult,
33473
33532
  normalizeValidateResult
33474
33533
  };
33475
- this._unknownHandler = unknown$1;
33534
+ this._unknownHandler = unknown$2;
33476
33535
  this._invalidHandler = normalizeInvalidHandler(invalid);
33477
33536
  this._deprecatedHandler = deprecated$1;
33478
33537
  this._identifyMissing = (k$1, o$1) => !(k$1 in o$1) || missing(k$1, o$1);
@@ -33685,7 +33744,7 @@ async function findInDirectory(nameOrNames, { typeCheck, cwd, allowSymlinks = tr
33685
33744
  }
33686
33745
  async function safeStat(path14, allowSymlinks = true) {
33687
33746
  try {
33688
- return await (allowSymlinks ? fs$1.stat : fs$1.lstat)(path14);
33747
+ return await (allowSymlinks ? fs$2.stat : fs$2.lstat)(path14);
33689
33748
  } catch {}
33690
33749
  }
33691
33750
  function findFile(nameOrNames, options8) {
@@ -34690,7 +34749,7 @@ getCodeFrame_fn = function(highlightCode) {
34690
34749
  return (0, import_code_frame.codeFrameColumns)(input, { start: location }, { highlightCode });
34691
34750
  };
34692
34751
  var JSONError = _JSONError;
34693
- var getErrorLocation = (string$6, message) => {
34752
+ var getErrorLocation = (string$7, message) => {
34694
34753
  const match = message.match(/in JSON at position (?<index>\d+)(?: \(line (?<line>\d+) column (?<column>\d+)\))?$/);
34695
34754
  if (!match) return;
34696
34755
  const { index: index$1, line: line3, column: column2 } = match.groups;
@@ -34698,30 +34757,30 @@ var getErrorLocation = (string$6, message) => {
34698
34757
  line: Number(line3),
34699
34758
  column: Number(column2)
34700
34759
  };
34701
- return indexToPosition(string$6, Number(index$1), { oneBased: true });
34760
+ return indexToPosition(string$7, Number(index$1), { oneBased: true });
34702
34761
  };
34703
34762
  var addCodePointToUnexpectedToken = (message) => message.replace(/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/, (_$1, _quote, token2) => `"${token2}"(${getCodePoint(token2)})`);
34704
- function parseJson(string$6, reviver, fileName) {
34763
+ function parseJson(string$7, reviver, fileName) {
34705
34764
  if (typeof reviver === "string") {
34706
34765
  fileName = reviver;
34707
34766
  reviver = void 0;
34708
34767
  }
34709
34768
  try {
34710
- return JSON.parse(string$6, reviver);
34769
+ return JSON.parse(string$7, reviver);
34711
34770
  } catch (error$41) {
34712
34771
  throw new JSONError({
34713
34772
  jsonParseError: error$41,
34714
34773
  fileName,
34715
- input: string$6
34774
+ input: string$7
34716
34775
  });
34717
34776
  }
34718
34777
  }
34719
- function getLineColFromPtr(string$6, ptr) {
34720
- 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);
34721
34780
  return [lines.length, lines.pop().length + 1];
34722
34781
  }
34723
- function makeCodeBlock(string$6, line3, column2) {
34724
- 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);
34725
34784
  let codeblock = "";
34726
34785
  let numberLen = (Math.log10(line3 + 1) | 0) + 1;
34727
34786
  for (let i$2 = line3 - 1; i$2 <= line3 + 1; i$2++) {
@@ -35708,9 +35767,9 @@ var cache = /* @__PURE__ */ new Map();
35708
35767
  function read2(jsonPath, { base, specifier }) {
35709
35768
  const existing = cache.get(jsonPath);
35710
35769
  if (existing) return existing;
35711
- let string$6;
35770
+ let string$7;
35712
35771
  try {
35713
- string$6 = fs3.readFileSync(path10.toNamespacedPath(jsonPath), "utf8");
35772
+ string$7 = fs3.readFileSync(path10.toNamespacedPath(jsonPath), "utf8");
35714
35773
  } catch (error$41) {
35715
35774
  const exception = error$41;
35716
35775
  if (exception.code !== "ENOENT") throw exception;
@@ -35724,10 +35783,10 @@ function read2(jsonPath, { base, specifier }) {
35724
35783
  exports: void 0,
35725
35784
  imports: void 0
35726
35785
  };
35727
- if (string$6 !== void 0) {
35786
+ if (string$7 !== void 0) {
35728
35787
  let parsed;
35729
35788
  try {
35730
- parsed = JSON.parse(string$6);
35789
+ parsed = JSON.parse(string$7);
35731
35790
  } catch (error_) {
35732
35791
  const cause = error_;
35733
35792
  const error$41 = new ERR_INVALID_PACKAGE_CONFIG(jsonPath, (base ? `"${specifier}" from ` : "") + fileURLToPath$1(base || specifier), cause.message);
@@ -36521,16 +36580,16 @@ var VALID_OBJECT_DOC_TYPES = /* @__PURE__ */ new Set([
36521
36580
  DOC_TYPE_LABEL,
36522
36581
  DOC_TYPE_BREAK_PARENT
36523
36582
  ]);
36524
- var at = (isOptionalObject, object$1, index$1) => {
36525
- if (isOptionalObject && (object$1 === void 0 || object$1 === null)) return;
36526
- if (Array.isArray(object$1) || typeof object$1 === "string") return object$1[index$1 < 0 ? object$1.length + index$1 : index$1];
36527
- 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);
36528
36587
  };
36529
36588
  var at_default = at;
36530
- function trimNewlinesEnd(string$6) {
36531
- let end = string$6.length;
36532
- while (end > 0 && (string$6[end - 1] === "\r" || string$6[end - 1] === "\n")) end--;
36533
- 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;
36534
36593
  }
36535
36594
  function getDocType(doc2) {
36536
36595
  if (typeof doc2 === "string") return DOC_TYPE_STRING;
@@ -37554,13 +37613,13 @@ var AstPath = class {
37554
37613
  let node$1 = this.stack[stackPointer--];
37555
37614
  for (const predicate of predicates) {
37556
37615
  if (node$1 === void 0) return false;
37557
- let number$3 = null;
37616
+ let number$4 = null;
37558
37617
  if (typeof name$1 === "number") {
37559
- number$3 = name$1;
37618
+ number$4 = name$1;
37560
37619
  name$1 = this.stack[stackPointer--];
37561
37620
  node$1 = this.stack[stackPointer--];
37562
37621
  }
37563
- if (predicate && !predicate(node$1, name$1, number$3)) return false;
37622
+ if (predicate && !predicate(node$1, name$1, number$4)) return false;
37564
37623
  name$1 = this.stack[stackPointer--];
37565
37624
  node$1 = this.stack[stackPointer--];
37566
37625
  }
@@ -37603,8 +37662,8 @@ getAncestors_fn = function* () {
37603
37662
  }
37604
37663
  };
37605
37664
  var ast_path_default = AstPath;
37606
- function isObject$1(object$1) {
37607
- return object$1 !== null && typeof object$1 === "object";
37665
+ function isObject$1(object$2) {
37666
+ return object$2 !== null && typeof object$2 === "object";
37608
37667
  }
37609
37668
  var is_object_default = isObject$1;
37610
37669
  function* getChildren(node$1, options8) {
@@ -37671,8 +37730,8 @@ function hasNewline(text$2, startIndex, options8 = {}) {
37671
37730
  return idx !== idx2;
37672
37731
  }
37673
37732
  var has_newline_default = hasNewline;
37674
- function isNonEmptyArray(object$1) {
37675
- return Array.isArray(object$1) && object$1.length > 0;
37733
+ function isNonEmptyArray(object$2) {
37734
+ return Array.isArray(object$2) && object$2.length > 0;
37676
37735
  }
37677
37736
  var is_non_empty_array_default = isNonEmptyArray;
37678
37737
  var nonTraversableKeys = /* @__PURE__ */ new Set([
@@ -38343,7 +38402,7 @@ function normalizeOptions(options8, optionInfos, { logger: logger$1 = false, isC
38343
38402
  if (!FlagSchema) throw new Error("'FlagSchema' option is required.");
38344
38403
  if (!descriptor) throw new Error("'descriptor' option is required.");
38345
38404
  } else descriptor = apiDescriptor;
38346
- const unknown$1 = !passThrough ? (key2, value, options9) => {
38405
+ const unknown$2 = !passThrough ? (key2, value, options9) => {
38347
38406
  const { _: _$1,...schemas2 } = options9.schemas;
38348
38407
  return levenUnknownHandler(key2, value, {
38349
38408
  ...options9,
@@ -38356,7 +38415,7 @@ function normalizeOptions(options8, optionInfos, { logger: logger$1 = false, isC
38356
38415
  });
38357
38416
  const normalizer = new Normalizer(schemas, {
38358
38417
  logger: logger$1,
38359
- unknown: unknown$1,
38418
+ unknown: unknown$2,
38360
38419
  descriptor
38361
38420
  });
38362
38421
  const shouldSuppressDuplicateDeprecationWarnings = logger$1 !== false;
@@ -40039,9 +40098,9 @@ async function isIgnored(file$1, options8) {
40039
40098
  const isIgnored2 = await createIsIgnoredFunction(ignoreFiles, withNodeModules);
40040
40099
  return isIgnored2(file$1);
40041
40100
  }
40042
- function omit$1(object$1, keys) {
40101
+ function omit$1(object$2, keys) {
40043
40102
  keys = new Set(keys);
40044
- 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)));
40045
40104
  }
40046
40105
  var object_omit_default = omit$1;
40047
40106
  async function getFileInfo(file$1, options8 = {}) {
@@ -40144,9 +40203,9 @@ function getIndentSize(value, tabWidth) {
40144
40203
  return get_alignment_size_default(value.slice(lastNewlineIndex + 1).match(/^[\t ]*/u)[0], tabWidth);
40145
40204
  }
40146
40205
  var get_indent_size_default = getIndentSize;
40147
- function escapeStringRegexp(string$6) {
40148
- if (typeof string$6 !== "string") throw new TypeError("Expected a string");
40149
- 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");
40150
40209
  }
40151
40210
  function getMaxContinuousCount(text$2, searchString) {
40152
40211
  const results = text$2.match(new RegExp(`(${escapeStringRegexp(searchString)})+`, "gu"));
@@ -40598,7 +40657,7 @@ const $ = {
40598
40657
  matched: !1,
40599
40658
  value: void 0
40600
40659
  };
40601
- function z$1(t$1) {
40660
+ function z(t$1) {
40602
40661
  return new I(t$1, $);
40603
40662
  }
40604
40663
  var I = class I {
@@ -40652,7 +40711,7 @@ const logger = {
40652
40711
  warn: (message) => console.log(yellow("[WARN]"), message),
40653
40712
  error: (message) => console.error(red("[ERROR]"), message),
40654
40713
  file: (filePath) => magenta(filePath),
40655
- 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(),
40656
40715
  commitMessage: (title, detail) => {
40657
40716
  return [
40658
40717
  underline(bold(title)),
@@ -40703,7 +40762,7 @@ async function applyChanges(files$1, format$2) {
40703
40762
  await fsp$1.writeFile(filepath, contentToWrite, "utf-8");
40704
40763
  };
40705
40764
  try {
40706
- await z$1(file$1.mode).with("add", "modify", async () => {
40765
+ await z(file$1.mode).with("add", "modify", async () => {
40707
40766
  const dirName = path.dirname(file$1.fullSourcePath);
40708
40767
  await fsp$1.mkdir(dirName, { recursive: true });
40709
40768
  await writeFile$2();
@@ -40747,7 +40806,7 @@ async function confirmAction(filesToUpdate, options$1) {
40747
40806
  checked: file$1.safe || !!options$1.allowUnsafe
40748
40807
  });
40749
40808
  }
40750
- const selectedFiles = await esm_default$1({
40809
+ const selectedFiles = await esm_default$2({
40751
40810
  message: [options$1.topMessage, "The following files will be overwritten:\n"].filter(Boolean).join("\n"),
40752
40811
  choices,
40753
40812
  pageSize: process.stdout.rows > 0 ? process.stdout.rows - 4 : filesToUpdate.length
@@ -41598,6 +41657,12 @@ const reactiveFs = {
41598
41657
  use: useReactiveFs
41599
41658
  };
41600
41659
 
41660
+ //#endregion
41661
+ //#region ../dev/dist/utils/resolver.js
41662
+ const projectResolver = createResolverByRootFile(import.meta.url, "package.json");
41663
+ const defaultAssetsResolver = createResolver(projectResolver("assets"));
41664
+ let assetsResolver = defaultAssetsResolver;
41665
+
41601
41666
  //#endregion
41602
41667
  //#region ../dev/dist/gen-prompt/file-tree.js
41603
41668
  function buildTree(node$1, indentation, outputLines, expandDirectories) {
@@ -41667,32 +41732,32 @@ function generateFileTree(files$1, expandDirectories = true) {
41667
41732
  //#region ../dev/dist/gen-prompt/replacers/params-to-globby-options.js
41668
41733
  const paramsToGlobbyOptions = (params, defaults$4 = {}) => {
41669
41734
  const opts = {
41670
- 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({
41671
41736
  files: N.array(N.string).optional(),
41672
41737
  extensions: N.array(N.string).optional()
41673
41738
  }, (v$1) => v$1).otherwise(() => defaults$4.expandDirectories),
41674
- gitignore: z$1(params.gitignore).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.gitignore),
41675
- 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),
41676
- ignoreFiles: z$1(params.ignoreFiles).with(N.string, N.array(N.string), (v$1) => v$1).otherwise(() => defaults$4.ignoreFiles),
41677
- cwd: z$1(params.cwd).with(N.string, (v$1) => v$1).otherwise(() => defaults$4.cwd),
41678
- absolute: z$1(params.absolute).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.absolute),
41679
- baseNameMatch: z$1(params.baseNameMatch).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.baseNameMatch),
41680
- braceExpansion: z$1(params.braceExpansion).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.braceExpansion),
41681
- caseSensitiveMatch: z$1(params.caseSensitiveMatch).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.caseSensitiveMatch),
41682
- concurrency: z$1(params.concurrency).with(N.number, (v$1) => v$1).otherwise(() => defaults$4.concurrency),
41683
- deep: z$1(params.deep).with(N.number, (v$1) => v$1).otherwise(() => defaults$4.deep),
41684
- dot: z$1(params.dot).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.dot),
41685
- extglob: z$1(params.extglob).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.extglob),
41686
- followSymbolicLinks: z$1(params.followSymbolicLinks).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.followSymbolicLinks),
41687
- globstar: z$1(params.globstar).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.globstar),
41688
- markDirectories: z$1(params.markDirectories).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.markDirectories),
41689
- objectMode: z$1(params.objectMode).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.objectMode),
41690
- onlyDirectories: z$1(params.onlyDirectories).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.onlyDirectories),
41691
- onlyFiles: z$1(params.onlyFiles).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.onlyFiles),
41692
- stats: z$1(params.stats).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.stats),
41693
- suppressErrors: z$1(params.suppressErrors).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.suppressErrors),
41694
- throwErrorOnBrokenSymbolicLink: z$1(params.throwErrorOnBrokenSymbolicLink).with(N.boolean, (v$1) => v$1).otherwise(() => defaults$4.throwErrorOnBrokenSymbolicLink),
41695
- 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)
41696
41761
  };
41697
41762
  return structuredClone(opts);
41698
41763
  };
@@ -41700,20 +41765,19 @@ const paramsToGlobbyOptions = (params, defaults$4 = {}) => {
41700
41765
  //#endregion
41701
41766
  //#region ../dev/dist/gen-prompt/replacers/file-replacer.js
41702
41767
  const fetchCache = /* @__PURE__ */ new Map();
41703
- const projectResolver = createResolverByRootFile(import.meta.url, "package.json");
41704
- const GET_JIXO_PROMPT = func_remember(() => readJson(projectResolver("./assets/prompt.json")));
41768
+ const GET_JIXO_PROMPT = func_remember(() => readJson(assetsResolver("prompt.json")));
41705
41769
  /**
41706
41770
  * A utility function to format the file content output in a standardized way.
41707
41771
  * It handles markdown code blocks and optional prefixes.
41708
41772
  */
41709
41773
  function useFileOrInject$1(mode, filepath, filecontent, opts = {}) {
41710
41774
  const lines = [];
41711
- 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(() => "");
41712
41776
  const contentLines = prefixStr.length ? filecontent.split("\n").map((line$2) => prefixStr + line$2) : [filecontent];
41713
41777
  if (mode === "FILE") {
41714
41778
  const split = filecontent.includes("```") ? "````" : "```";
41715
41779
  const ext = path.parse(filepath).ext.slice(1);
41716
- 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, "");
41717
41781
  } else if (mode === "INJECT") lines.push(...contentLines);
41718
41782
  else lines.push(`<!-- unknown mode ${mode} -->`);
41719
41783
  return lines.join("\n");
@@ -42008,7 +42072,7 @@ async function gitWorkingContents(repoPath, options$1) {
42008
42072
  return async () => {
42009
42073
  results.set(filepath, {
42010
42074
  path: filepath,
42011
- 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"),
42012
42076
  status
42013
42077
  });
42014
42078
  };
@@ -42098,7 +42162,7 @@ async function gitWorkingDiffs(repoPath, options$1) {
42098
42162
  //#endregion
42099
42163
  //#region ../dev/dist/git-helper/types.js
42100
42164
  const humanfiyedGitFileStatus = (status) => {
42101
- 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);
42102
42166
  };
42103
42167
 
42104
42168
  //#endregion
@@ -42106,13 +42170,13 @@ const humanfiyedGitFileStatus = (status) => {
42106
42170
  var import_micromatch = __toESM$1(require_micromatch$1(), 1);
42107
42171
  function useFileOrInject(mode, filepath, filecontent, opts = {}) {
42108
42172
  const lines = [];
42109
- 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(() => "");
42110
42174
  const contentLines = (filecontent$1) => prefixStr.length ? filecontent$1.split("\n").map((line$2) => prefixStr + line$2) : [filecontent$1];
42111
42175
  if (mode === "FILE") {
42112
42176
  const split = filecontent?.includes("```") ? "````" : "```";
42113
42177
  const ext = path.parse(filepath).ext.slice(1);
42114
42178
  lines.push(`${prefixStr}\`${filepath}\``, "");
42115
- 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, "");
42116
42180
  } else if (mode === "INJECT") {
42117
42181
  if (filecontent) lines.push(...contentLines(filecontent));
42118
42182
  } else lines.push(`<!-- unknown mode ${mode} -->`);
@@ -50631,7 +50695,7 @@ function initializeFlow(effects) {
50631
50695
  * } from 'micromark-util-types'
50632
50696
  */
50633
50697
  const resolver = { resolveAll: createResolver$1() };
50634
- const string$3 = initializeFactory("string");
50698
+ const string$4 = initializeFactory("string");
50635
50699
  const text = initializeFactory("text");
50636
50700
  /**
50637
50701
  * @param {'string' | 'text'} field
@@ -50807,7 +50871,7 @@ __export$4(constructs_exports, {
50807
50871
  flow: () => flow$1,
50808
50872
  flowInitial: () => flowInitial,
50809
50873
  insideSpan: () => insideSpan,
50810
- string: () => string$4,
50874
+ string: () => string$5,
50811
50875
  text: () => text$1
50812
50876
  });
50813
50877
  /** @satisfies {Extension['document']} */
@@ -50847,7 +50911,7 @@ const flow$1 = {
50847
50911
  [126]: codeFenced
50848
50912
  };
50849
50913
  /** @satisfies {Extension['string']} */
50850
- const string$4 = {
50914
+ const string$5 = {
50851
50915
  [38]: characterReference,
50852
50916
  [92]: characterEscape
50853
50917
  };
@@ -51344,7 +51408,7 @@ function parse$2(options$1) {
51344
51408
  document: create(document$1),
51345
51409
  flow: create(flow),
51346
51410
  lazy: {},
51347
- string: create(string$3),
51411
+ string: create(string$4),
51348
51412
  text: create(text)
51349
51413
  };
51350
51414
  return parser$2;
@@ -52222,10 +52286,10 @@ function compiler(options$1) {
52222
52286
  * @type {Handle}
52223
52287
  */
52224
52288
  function onexitlabeltext(token$1) {
52225
- const string$6 = this.sliceSerialize(token$1);
52289
+ const string$7 = this.sliceSerialize(token$1);
52226
52290
  const ancestor = this.stack[this.stack.length - 2];
52227
- ancestor.label = decodeString(string$6);
52228
- ancestor.identifier = normalizeIdentifier(string$6).toLowerCase();
52291
+ ancestor.label = decodeString(string$7);
52292
+ ancestor.identifier = normalizeIdentifier(string$7).toLowerCase();
52229
52293
  }
52230
52294
  /**
52231
52295
  * @this {CompileContext}
@@ -52923,8 +52987,8 @@ async function gen_prompt(input, once$1, _output, cwd) {
52923
52987
  const inputSource = getFileState(input, once$1).get();
52924
52988
  let { data: inputData, content: inputContent } = (0, import_gray_matter.default)(inputSource);
52925
52989
  inputContent = removeMarkdownComments(inputContent).trim();
52926
- 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))));
52927
- 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")));
52928
52992
  const regex$1 = /\[(.+?)\]\(@([\w-_:]+)(\?.+)?\)/g;
52929
52993
  const matches = [...inputContent.matchAll(regex$1)];
52930
52994
  const replacementPromises = matches.map((match) => {
@@ -53134,8 +53198,8 @@ function getEnumValues(entries) {
53134
53198
  const values = Object.entries(entries).filter(([k$1, _$1]) => numericValues.indexOf(+k$1) === -1).map(([_$1, v$1]) => v$1);
53135
53199
  return values;
53136
53200
  }
53137
- function joinValues(array$3, separator = "|") {
53138
- 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);
53139
53203
  }
53140
53204
  function jsonStringifyReplacer(_$1, value) {
53141
53205
  if (typeof value === "bigint") return value.toString();
@@ -53167,18 +53231,18 @@ function floatSafeRemainder(val, step) {
53167
53231
  const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
53168
53232
  return valInt % stepInt / 10 ** decCount;
53169
53233
  }
53170
- function defineLazy(object$1, key$1, getter) {
53234
+ function defineLazy(object$2, key$1, getter) {
53171
53235
  const set$1 = false;
53172
- Object.defineProperty(object$1, key$1, {
53236
+ Object.defineProperty(object$2, key$1, {
53173
53237
  get() {
53174
53238
  {
53175
53239
  const value = getter();
53176
- object$1[key$1] = value;
53240
+ object$2[key$1] = value;
53177
53241
  return value;
53178
53242
  }
53179
53243
  },
53180
53244
  set(v$1) {
53181
- Object.defineProperty(object$1, key$1, { value: v$1 });
53245
+ Object.defineProperty(object$2, key$1, { value: v$1 });
53182
53246
  },
53183
53247
  configurable: true
53184
53248
  });
@@ -53765,7 +53829,7 @@ __export$4(regexes_exports, {
53765
53829
  base64: () => base64$1,
53766
53830
  base64url: () => base64url$1,
53767
53831
  bigint: () => bigint$2,
53768
- boolean: () => boolean$2,
53832
+ boolean: () => boolean$3,
53769
53833
  browserEmail: () => browserEmail,
53770
53834
  cidrv4: () => cidrv4$1,
53771
53835
  cidrv6: () => cidrv6$1,
@@ -53789,9 +53853,9 @@ __export$4(regexes_exports, {
53789
53853
  lowercase: () => lowercase,
53790
53854
  nanoid: () => nanoid$1,
53791
53855
  null: () => _null$2,
53792
- number: () => number$2,
53856
+ number: () => number$3,
53793
53857
  rfc5322Email: () => rfc5322Email,
53794
- string: () => string$2,
53858
+ string: () => string$3,
53795
53859
  time: () => time$1,
53796
53860
  ulid: () => ulid$1,
53797
53861
  undefined: () => _undefined$2,
@@ -53865,14 +53929,14 @@ function datetime$1(args) {
53865
53929
  const timeRegex = `${time$2}(?:${opts.join("|")})`;
53866
53930
  return /* @__PURE__ */ new RegExp(`^${dateSource}T(?:${timeRegex})$`);
53867
53931
  }
53868
- const string$2 = (params) => {
53932
+ const string$3 = (params) => {
53869
53933
  const regex$1 = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
53870
53934
  return /* @__PURE__ */ new RegExp(`^${regex$1}$`);
53871
53935
  };
53872
53936
  const bigint$2 = /^\d+n?$/;
53873
53937
  const integer = /^\d+$/;
53874
- const number$2 = /^-?\d+(?:\.\d+)?/i;
53875
- const boolean$2 = /true|false/i;
53938
+ const number$3 = /^-?\d+(?:\.\d+)?/i;
53939
+ const boolean$3 = /true|false/i;
53876
53940
  const _null$2 = /null/i;
53877
53941
  const _undefined$2 = /undefined/i;
53878
53942
  const lowercase = /^[^A-Z]*$/;
@@ -54491,7 +54555,7 @@ const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
54491
54555
  });
54492
54556
  const $ZodString = /* @__PURE__ */ $constructor("$ZodString", (inst, def) => {
54493
54557
  $ZodType.init(inst, def);
54494
- 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);
54495
54559
  inst._zod.parse = (payload, _$1) => {
54496
54560
  if (def.coerce) try {
54497
54561
  payload.value = String(payload.value);
@@ -54776,7 +54840,7 @@ const $ZodCustomStringFormat = /* @__PURE__ */ $constructor("$ZodCustomStringFor
54776
54840
  });
54777
54841
  const $ZodNumber = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def) => {
54778
54842
  $ZodType.init(inst, def);
54779
- inst._zod.pattern = inst._zod.bag.pattern ?? number$2;
54843
+ inst._zod.pattern = inst._zod.bag.pattern ?? number$3;
54780
54844
  inst._zod.parse = (payload, _ctx) => {
54781
54845
  if (def.coerce) try {
54782
54846
  payload.value = Number(payload.value);
@@ -54800,7 +54864,7 @@ const $ZodNumberFormat = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def)
54800
54864
  });
54801
54865
  const $ZodBoolean = /* @__PURE__ */ $constructor("$ZodBoolean", (inst, def) => {
54802
54866
  $ZodType.init(inst, def);
54803
- inst._zod.pattern = boolean$2;
54867
+ inst._zod.pattern = boolean$3;
54804
54868
  inst._zod.parse = (payload, _ctx) => {
54805
54869
  if (def.coerce) try {
54806
54870
  payload.value = Boolean(payload.value);
@@ -62171,6 +62235,259 @@ __export$4(core_exports, {
62171
62235
  version: () => version
62172
62236
  });
62173
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
+
62174
62491
  //#endregion
62175
62492
  //#region ../../node_modules/.pnpm/zod@4.0.10/node_modules/zod/v4/classic/iso.js
62176
62493
  var iso_exports = {};
@@ -62362,7 +62679,7 @@ const ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
62362
62679
  inst.time = (params) => inst.check(time(params));
62363
62680
  inst.duration = (params) => inst.check(duration(params));
62364
62681
  });
62365
- function string(params) {
62682
+ function string$1(params) {
62366
62683
  return _string(ZodString, params);
62367
62684
  }
62368
62685
  const ZodStringFormat = /* @__PURE__ */ $constructor("ZodStringFormat", (inst, def) => {
@@ -62569,7 +62886,7 @@ const ZodBoolean = /* @__PURE__ */ $constructor("ZodBoolean", (inst, def) => {
62569
62886
  $ZodBoolean.init(inst, def);
62570
62887
  ZodType.init(inst, def);
62571
62888
  });
62572
- function boolean(params) {
62889
+ function boolean$1(params) {
62573
62890
  return _boolean(ZodBoolean, params);
62574
62891
  }
62575
62892
  const ZodBigInt = /* @__PURE__ */ $constructor("ZodBigInt", (inst, def) => {
@@ -63172,12 +63489,12 @@ const stringbool = (...args) => _stringbool({
63172
63489
  function json(params) {
63173
63490
  const jsonSchema = lazy(() => {
63174
63491
  return union([
63175
- string(params),
63492
+ string$1(params),
63176
63493
  number$1(),
63177
- boolean(),
63494
+ boolean$1(),
63178
63495
  _null(),
63179
63496
  array(jsonSchema),
63180
- record(string(), jsonSchema)
63497
+ record(string$1(), jsonSchema)
63181
63498
  ]);
63182
63499
  });
63183
63500
  return jsonSchema;
@@ -63219,18 +63536,18 @@ var ZodFirstPartyTypeKind;
63219
63536
  var coerce_exports = {};
63220
63537
  __export$4(coerce_exports, {
63221
63538
  bigint: () => bigint,
63222
- boolean: () => boolean$1,
63539
+ boolean: () => boolean,
63223
63540
  date: () => date,
63224
63541
  number: () => number,
63225
- string: () => string$1
63542
+ string: () => string
63226
63543
  });
63227
- function string$1(params) {
63544
+ function string(params) {
63228
63545
  return _coercedString(ZodString, params);
63229
63546
  }
63230
63547
  function number(params) {
63231
63548
  return _coercedNumber(ZodNumber, params);
63232
63549
  }
63233
- function boolean$1(params) {
63550
+ function boolean(params) {
63234
63551
  return _coercedBoolean(ZodBoolean, params);
63235
63552
  }
63236
63553
  function bigint(params) {
@@ -63327,7 +63644,7 @@ __export$4(external_exports, {
63327
63644
  base64: () => base64,
63328
63645
  base64url: () => base64url,
63329
63646
  bigint: () => bigint$1,
63330
- boolean: () => boolean,
63647
+ boolean: () => boolean$1,
63331
63648
  catch: () => _catch,
63332
63649
  check: () => check,
63333
63650
  cidrv4: () => cidrv4,
@@ -63424,7 +63741,7 @@ __export$4(external_exports, {
63424
63741
  size: () => _size,
63425
63742
  startsWith: () => _startsWith,
63426
63743
  strictObject: () => strictObject,
63427
- string: () => string,
63744
+ string: () => string$1,
63428
63745
  stringFormat: () => stringFormat,
63429
63746
  stringbool: () => stringbool,
63430
63747
  success: () => success,
@@ -63459,92 +63776,6 @@ config(en_default());
63459
63776
  //#region ../../node_modules/.pnpm/zod@4.0.10/node_modules/zod/index.js
63460
63777
  var zod_default = external_exports;
63461
63778
 
63462
- //#endregion
63463
- //#region ../dev/dist/google-aistudio/node/types.js
63464
- const z = {
63465
- object,
63466
- boolean,
63467
- string,
63468
- array,
63469
- union,
63470
- unknown
63471
- };
63472
- const zContentSchema = z.object({
63473
- generationConfiguration: z.object({
63474
- includeCodeExecutionTypesImport: z.boolean(),
63475
- includeSchemaTypesImport: z.boolean(),
63476
- includesRetrievalImport: z.boolean().optional(),
63477
- isAudioOutput: z.boolean(),
63478
- isStreamingConfigEnabled: z.boolean(),
63479
- isColab: z.boolean(),
63480
- requiresParts: z.boolean(),
63481
- requiresFunctionCalling: z.boolean(),
63482
- requiresCodeExecution: z.boolean()
63483
- }),
63484
- generateContentParameters: z.object({
63485
- model: z.string(),
63486
- contents: z.array(z.union([
63487
- z.object({
63488
- role: z.string(),
63489
- parts: z.array(z.object({
63490
- isLast: z.boolean(),
63491
- text: z.string()
63492
- }))
63493
- }),
63494
- z.object({
63495
- role: z.string(),
63496
- parts: z.array(z.union([z.object({
63497
- isLast: z.boolean(),
63498
- text: z.string()
63499
- }), z.object({
63500
- isLast: z.boolean(),
63501
- functionCall: z.object({
63502
- name: z.string(),
63503
- parameters: z.string()
63504
- })
63505
- })]))
63506
- }),
63507
- z.object({
63508
- role: z.string(),
63509
- parts: z.array(z.object({
63510
- isLast: z.boolean(),
63511
- functionResponse: z.object({
63512
- name: z.string(),
63513
- response: z.string()
63514
- })
63515
- }))
63516
- }),
63517
- z.object({
63518
- role: z.string(),
63519
- parts: z.array(z.union([z.object({
63520
- isLast: z.boolean(),
63521
- functionResponse: z.object({
63522
- name: z.string(),
63523
- response: z.string()
63524
- })
63525
- }), z.object({
63526
- text: z.string(),
63527
- isLast: z.boolean()
63528
- })])),
63529
- isLast: z.boolean()
63530
- })
63531
- ])),
63532
- config: z.object({
63533
- thinkingConfig: z.object({ thinkingBudget: z.string() }),
63534
- stopSequences: z.array(z.unknown()),
63535
- responseMimeType: z.string(),
63536
- responseModalities: z.array(z.unknown()),
63537
- safetySettings: z.array(z.unknown()),
63538
- tools: z.array(z.union([z.object({ googleSearch: z.object({}) }), z.object({ functionDeclarations: z.array(z.object({
63539
- name: z.string(),
63540
- description: z.string(),
63541
- parameters: z.string(),
63542
- isLast: z.boolean()
63543
- })) })]))
63544
- })
63545
- })
63546
- }).loose();
63547
-
63548
63779
  //#endregion
63549
63780
  //#region ../dev/dist/google-aistudio/jixo/sync.js
63550
63781
  const sync = async (basePath, outDir) => {
@@ -63597,64 +63828,6 @@ const sync = async (basePath, outDir) => {
63597
63828
  await Promise.all(model_files.filter((file$1) => addFileNames.has(file$1.name)).map((file$1) => writeFile$1(path.join(resolvedOutDir, file$1.name), file$1.content)));
63598
63829
  console.log(blue((/* @__PURE__ */ new Date()).toLocaleTimeString()), green("sync"), path.relative(process.cwd(), basePath));
63599
63830
  };
63600
-
63601
- //#endregion
63602
- //#region ../dev/dist/google-aistudio/node/index.js
63603
- const doGoogleAiStudioAutomation = (dir = process.cwd()) => {
63604
- const watcher$1 = fs.watch(dir);
63605
- const handle = func_debounce(async () => {
63606
- const names = fs.readdirSync(dir);
63607
- const contentNames = names.filter((name$1) => name$1.endsWith(".contents.json"));
63608
- for (const contentFilename of contentNames) {
63609
- const contentFilepath = path.join(dir, contentFilename);
63610
- const basename$1 = contentFilename.replace(".contents.json", "");
63611
- await parseContent(basename$1, contentFilepath, names).catch(console.error);
63612
- }
63613
- }, 200);
63614
- const parseContent = async (basename$1, contentFilepath, filenames) => {
63615
- const fileData = await zContentSchema.parse(JSON.parse(fs.readFileSync(contentFilepath, "utf-8")));
63616
- const { contents } = fileData.generateContentParameters;
63617
- const latestContent = contents.at(-1);
63618
- if (!latestContent) return;
63619
- if (latestContent.role !== "user") return;
63620
- console.log("QAQ latestContent", latestContent);
63621
- const functionResponsePart = latestContent.parts.find((p$1) => "functionResponse" in p$1);
63622
- if (!functionResponsePart) return;
63623
- if (functionResponsePart.functionResponse.response !== "") return;
63624
- const modelContent = contents.findLast((content$2) => {
63625
- return content$2.role === "model" && content$2.parts.find((p$1) => "functionCall" in p$1);
63626
- });
63627
- if (!modelContent) return;
63628
- const functionCallPart = modelContent.parts.find((p$1) => "functionCall" in p$1)?.functionCall;
63629
- if (!functionCallPart) return;
63630
- const modelIndex = contents.indexOf(modelContent);
63631
- const hash = createHash("sha256").update(`INDEX:${modelIndex}`).update(JSON.stringify(modelContent)).digest("hex").slice(0, 8);
63632
- const taskFilename = `${basename$1}.${functionCallPart.name}.${modelIndex}-${hash}.function_call.json`;
63633
- if (filenames.includes(taskFilename)) return;
63634
- for (const scriptFilename of [`${functionCallPart.name}.function_call.js`, `${functionCallPart.name}.function_call.ts`]) {
63635
- const scriptFilepath = path.join(dir, scriptFilename);
63636
- if (fs.existsSync(scriptFilepath)) {
63637
- const { functionCall } = await import(pathToFileURL(scriptFilepath).href);
63638
- const input = JSON.parse(functionCallPart.parameters);
63639
- const output = await functionCall(input);
63640
- console.log("QAQ output", output);
63641
- console.log("WRITE TASK FILE:", taskFilename);
63642
- fs.writeFileSync(path.join(dir, taskFilename), JSON.stringify({
63643
- input,
63644
- output
63645
- }, null, 2));
63646
- }
63647
- }
63648
- };
63649
- watcher$1.on("change", (eventType) => {
63650
- if (eventType === "delete" || eventType === "unlink") return;
63651
- handle();
63652
- });
63653
- handle();
63654
- };
63655
-
63656
- //#endregion
63657
- //#region ../dev/dist/google-aistudio/jixo/index.js
63658
63831
  /**
63659
63832
  * 封装了 sync 命令的核心执行逻辑
63660
63833
  * @param args - 命令行参数,符合 yargs 解析后的结构
@@ -63667,11 +63840,46 @@ const doSync = (args) => {
63667
63840
  if (args.watch) console.log(gray("\nWatching for file changes... Press Ctrl+C to exit."));
63668
63841
  };
63669
63842
 
63843
+ //#endregion
63844
+ //#region ../dev/dist/google-aistudio/jixo/init.js
63845
+ const doInit = async ({ dir, force }) => {
63846
+ const cpAssets = ["google-aistudio.browser.js"];
63847
+ const sourceEntries = cpAssets.map((entrypath) => ({
63848
+ relativepath: entrypath,
63849
+ fullpath: assetsResolver(`bundle`, entrypath)
63850
+ }));
63851
+ const targetEntries = cpAssets.map((entrypath) => ({
63852
+ relativepath: entrypath,
63853
+ fullpath: path.resolve(dir, entrypath)
63854
+ }));
63855
+ const existEntries = targetEntries.filter((targetEntry) => existsSync(targetEntry.fullpath));
63856
+ if (existEntries.length) {
63857
+ const logPaths = () => existEntries.map((entry) => `${gray("-")} ${blue(entry.relativepath)}`);
63858
+ if (force === false) {
63859
+ console.warn([yellow(`the same file(s) name already exists.`), ...logPaths()].join("\n"));
63860
+ return;
63861
+ }
63862
+ if (force == null) {
63863
+ const overwrite = await esm_default({
63864
+ message: [`the same file(s) name already exists. Are you sure you want to overwrite?`, ...logPaths()].join("\n"),
63865
+ default: false
63866
+ });
63867
+ if (!overwrite) return;
63868
+ }
63869
+ await Promise.all(existEntries.map((entry) => rm(entry.fullpath, { recursive: true })));
63870
+ }
63871
+ await mkdir(dir, { recursive: true });
63872
+ for (const [index$1, sourceEntry] of sourceEntries.entries()) await copyFile(sourceEntry.fullpath, targetEntries[index$1].fullpath);
63873
+ await Promise.all(sourceEntries.map((sourceEntry, index$1) => {
63874
+ return copyFile(sourceEntry.fullpath, targetEntries[index$1].fullpath);
63875
+ }));
63876
+ };
63877
+
63670
63878
  //#endregion
63671
63879
  //#region src/commands/google-aistudio.ts
63672
63880
  const syncCommand = {
63673
63881
  command: "sync [path]",
63674
- aliases: ["S"],
63882
+ aliases: ["S", "s"],
63675
63883
  describe: "Sync with aistudio.google.com contents",
63676
63884
  builder: (yargs) => yargs.positional("path", {
63677
63885
  describe: "Directory or file path to sync",
@@ -63697,7 +63905,7 @@ const syncCommand = {
63697
63905
  };
63698
63906
  const browserCommand = {
63699
63907
  command: "browser [dir]",
63700
- aliases: ["B"],
63908
+ aliases: ["B", "b"],
63701
63909
  describe: "browser-kit for aistudio.google.com",
63702
63910
  builder: (yargs) => yargs.positional("dir", {
63703
63911
  describe: "Directory for aistudio output contents",
@@ -63708,6 +63916,23 @@ const browserCommand = {
63708
63916
  doGoogleAiStudioAutomation(argv.dir);
63709
63917
  }
63710
63918
  };
63919
+ const initCommand = {
63920
+ command: "init [dir]",
63921
+ aliases: ["i", "I"],
63922
+ describe: "init an browser-kit directory for aistudio.google.com",
63923
+ builder: (yargs) => yargs.positional("dir", {
63924
+ describe: "Directory for aistudio input/output contents",
63925
+ type: "string",
63926
+ default: path.resolve(process.cwd(), ".ai")
63927
+ }).option("force", {
63928
+ alias: "F",
63929
+ type: "boolean",
63930
+ describe: "override exits files"
63931
+ }),
63932
+ handler: async (argv) => {
63933
+ doInit(argv);
63934
+ }
63935
+ };
63711
63936
  /**
63712
63937
  * @jixo/cli google-aistudio
63713
63938
  *
@@ -63722,7 +63947,7 @@ const googleAistudioCommand = {
63722
63947
  ],
63723
63948
  describe: "Commands for Google AI Studio integration",
63724
63949
  builder: (yargs) => {
63725
- return yargs.command(syncCommand).command(browserCommand).demandCommand(1, "You must provide a sub-command for 'google-aistudio'.");
63950
+ return yargs.command(syncCommand).command(browserCommand).command(initCommand).demandCommand(1, "You must provide a sub-command for 'google-aistudio'.");
63726
63951
  },
63727
63952
  handler: () => {}
63728
63953
  };