@jixo/cli 0.21.6 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/bundle/index.js +903 -1165
  2. package/dist/cli.d.ts +2 -0
  3. package/dist/cli.d.ts.map +1 -0
  4. package/dist/cli.js +83 -0
  5. package/dist/cli.js.map +1 -0
  6. package/dist/commands/daemon.d.ts +5 -0
  7. package/dist/commands/daemon.d.ts.map +1 -0
  8. package/dist/commands/daemon.js +20 -0
  9. package/dist/commands/daemon.js.map +1 -0
  10. package/dist/commands/doctor/config.d.ts +3 -0
  11. package/dist/commands/doctor/config.d.ts.map +1 -0
  12. package/dist/commands/doctor/config.js +17 -0
  13. package/dist/commands/doctor/config.js.map +1 -0
  14. package/dist/commands/doctor/doctor.d.ts +3 -0
  15. package/dist/commands/doctor/doctor.d.ts.map +1 -0
  16. package/dist/commands/doctor/doctor.js +158 -0
  17. package/dist/commands/doctor/doctor.js.map +1 -0
  18. package/dist/commands/doctor/doctor.test.d.ts +2 -0
  19. package/dist/commands/doctor/doctor.test.d.ts.map +1 -0
  20. package/dist/commands/doctor/doctor.test.js +14 -0
  21. package/dist/commands/doctor/doctor.test.js.map +1 -0
  22. package/dist/commands/doctor/index.d.ts +2 -0
  23. package/dist/commands/doctor/index.d.ts.map +1 -0
  24. package/dist/commands/doctor/index.js +8 -0
  25. package/dist/commands/doctor/index.js.map +1 -0
  26. package/dist/commands/doctor/types.d.ts +45 -0
  27. package/dist/commands/doctor/types.d.ts.map +1 -0
  28. package/dist/commands/doctor/types.js +3 -0
  29. package/dist/commands/doctor/types.js.map +1 -0
  30. package/dist/commands/google-aistudio.d.ts.map +1 -1
  31. package/dist/commands/google-aistudio.js +42 -4
  32. package/dist/commands/google-aistudio.js.map +1 -1
  33. package/dist/commands/init.d.ts +2 -0
  34. package/dist/commands/init.d.ts.map +1 -0
  35. package/dist/commands/init.js +40 -0
  36. package/dist/commands/init.js.map +1 -0
  37. package/dist/commands/tasks/run.d.ts +10 -0
  38. package/dist/commands/tasks/run.d.ts.map +1 -0
  39. package/dist/commands/tasks/run.js +44 -0
  40. package/dist/commands/tasks/run.js.map +1 -0
  41. package/dist/config.d.ts +15 -0
  42. package/dist/config.d.ts.map +1 -0
  43. package/dist/config.js +23 -0
  44. package/dist/config.js.map +1 -0
  45. package/dist/env.d.ts +6 -0
  46. package/dist/env.d.ts.map +1 -0
  47. package/dist/env.js +16 -0
  48. package/dist/env.js.map +1 -0
  49. package/dist/prompts.json +14 -2
  50. package/dist/runCli.d.ts +0 -4
  51. package/dist/runCli.d.ts.map +1 -1
  52. package/dist/runCli.js +0 -7
  53. package/dist/runCli.js.map +1 -1
  54. package/package.json +5 -4
package/bundle/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { createRequire } from "node:module";
2
2
  import { URL as URL$1, fileURLToPath, pathToFileURL } from "node:url";
3
3
  import path, { dirname, join } from "node:path";
4
- import fs, { mkdirSync, promises, readFileSync, readdirSync, realpathSync, statSync, watch, writeFileSync } from "node:fs";
4
+ import fs, { existsSync, mkdirSync, promises, readFileSync, readdirSync, realpathSync, statSync, watch, writeFileSync } from "node:fs";
5
5
  import assert3, { notStrictEqual, strictEqual } from "assert";
6
- import * as path$2 from "path";
6
+ import * as path$1 from "path";
7
7
  import path10, { basename, dirname as dirname$1, extname, join as join$1, normalize, relative, resolve } from "path";
8
8
  import fs3, { readFileSync as readFileSync$1, readdirSync as readdirSync$1, realpathSync as realpathSync$1, statSync as statSync$1, writeFile } from "fs";
9
9
  import { format, inspect } from "util";
@@ -22,10 +22,11 @@ import * as readline from "node:readline";
22
22
  import { promisify, stripVTControlCharacters } from "node:util";
23
23
  import { EventEmitter, on, once } from "node:events";
24
24
  import { finished } from "node:stream/promises";
25
- import fsPromises, { mkdir, rm, writeFile as writeFile$1 } from "node:fs/promises";
25
+ import fsPromises, { copyFile, mkdir, rm, writeFile as writeFile$1 } from "node:fs/promises";
26
26
  import { Buffer as Buffer$1 } from "node:buffer";
27
27
  import { builtinModules, createRequire as createRequire$1 } from "module";
28
28
  import v8 from "v8";
29
+ import parcelWatcher from "@parcel/watcher";
29
30
  import { createHash } from "node:crypto";
30
31
 
31
32
  //#region rolldown:runtime
@@ -39,8 +40,8 @@ var __commonJS$2 = (cb, mod) => function() {
39
40
  return mod || (0, cb[__getOwnPropNames$2(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
40
41
  };
41
42
  var __export$4 = (target, all$1) => {
42
- for (var name$2 in all$1) __defProp$4(target, name$2, {
43
- get: all$1[name$2],
43
+ for (var name$1 in all$1) __defProp$4(target, name$1, {
44
+ get: all$1[name$1],
44
45
  enumerable: true
45
46
  });
46
47
  };
@@ -1552,9 +1553,9 @@ const parser$1 = new YargsParser({
1552
1553
  format,
1553
1554
  normalize,
1554
1555
  resolve,
1555
- require: (path$13) => {
1556
- if (typeof require$3 !== "undefined") return require$3(path$13);
1557
- else if (path$13.match(/\.json$/)) return JSON.parse(readFileSync$1(path$13, "utf8"));
1556
+ require: (path$12) => {
1557
+ if (typeof require$3 !== "undefined") return require$3(path$12);
1558
+ else if (path$12.match(/\.json$/)) return JSON.parse(readFileSync$1(path$12, "utf8"));
1558
1559
  else throw Error("only .json config files are supported in ESM");
1559
1560
  }
1560
1561
  });
@@ -1768,7 +1769,7 @@ var import_get_caller_file = __toESM$1(require_get_caller_file(), 1);
1768
1769
  const __dirname$1 = fileURLToPath$1(import.meta.url);
1769
1770
  const mainFilename = __dirname$1.substring(0, __dirname$1.lastIndexOf("node_modules"));
1770
1771
  const require$2 = createRequire(import.meta.url);
1771
- var esm_default$2 = {
1772
+ var esm_default$3 = {
1772
1773
  assert: {
1773
1774
  notStrictEqual,
1774
1775
  strictEqual
@@ -1883,7 +1884,7 @@ const positionName = [
1883
1884
  "sixth"
1884
1885
  ];
1885
1886
  function argsert(arg1, arg2, arg3) {
1886
- function parseArgs$1() {
1887
+ function parseArgs() {
1887
1888
  return typeof arg1 === "object" ? [
1888
1889
  {
1889
1890
  demanded: [],
@@ -1899,7 +1900,7 @@ function argsert(arg1, arg2, arg3) {
1899
1900
  }
1900
1901
  try {
1901
1902
  let position$1 = 0;
1902
- const [parsed, callerArguments, _length$1] = parseArgs$1();
1903
+ const [parsed, callerArguments, _length$1] = parseArgs();
1903
1904
  const args = [].slice.call(callerArguments);
1904
1905
  while (args.length && args[args.length - 1] === void 0) args.pop();
1905
1906
  const length = _length$1 || args.length;
@@ -2820,15 +2821,15 @@ function usage(yargs, shim$2) {
2820
2821
  if (shim$2.process.stdColumns) return Math.min(maxWidth$1, shim$2.process.stdColumns);
2821
2822
  else return maxWidth$1;
2822
2823
  }
2823
- let version$3 = null;
2824
+ let version$2 = null;
2824
2825
  self.version = (ver) => {
2825
- version$3 = ver;
2826
+ version$2 = ver;
2826
2827
  };
2827
2828
  self.showVersion = (level) => {
2828
2829
  const logger$1 = yargs.getInternalMethods().getLoggerInstance();
2829
2830
  if (!level) level = "error";
2830
2831
  const emit = typeof level === "function" ? level : logger$1[level];
2831
- emit(version$3);
2832
+ emit(version$2);
2832
2833
  };
2833
2834
  self.reset = function reset(localLookup) {
2834
2835
  failMessage = null;
@@ -3099,9 +3100,9 @@ var Completion = class {
3099
3100
  }
3100
3101
  generateCompletionScript($0, cmd) {
3101
3102
  let script = this.zshShell ? completionZshTemplate : completionShTemplate;
3102
- const name$2 = this.shim.path.basename($0);
3103
+ const name$1 = this.shim.path.basename($0);
3103
3104
  if ($0.match(/\.js$/)) $0 = `./${$0}`;
3104
- script = script.replace(/{{app_name}}/g, name$2);
3105
+ script = script.replace(/{{app_name}}/g, name$1);
3105
3106
  script = script.replace(/{{completion_command}}/g, cmd);
3106
3107
  return script.replace(/{{app_path}}/g, $0);
3107
3108
  }
@@ -4680,23 +4681,34 @@ function isYargsInstance(y$2) {
4680
4681
 
4681
4682
  //#endregion
4682
4683
  //#region ../../node_modules/.pnpm/yargs@18.0.0/node_modules/yargs/index.mjs
4683
- const Yargs = YargsFactory(esm_default$2);
4684
+ const Yargs = YargsFactory(esm_default$3);
4684
4685
  var yargs_default = Yargs;
4685
4686
 
4686
4687
  //#endregion
4687
4688
  //#region package.json
4688
- var name$1 = "@jixo/cli";
4689
- var version$2 = "0.21.2";
4689
+ var name = "@jixo/cli";
4690
+ var version$1 = "0.23.0";
4690
4691
  var type = "module";
4691
4692
  var bin = { "jixo": "./bundle/index.js" };
4692
- var files = ["bundle", "dist"];
4693
+ var files = [
4694
+ "assets",
4695
+ "bundle",
4696
+ "dist"
4697
+ ];
4693
4698
  var scripts = {
4694
- "build": "pnpm run '/^b\\:.*/'",
4699
+ "build": "pnpm run \"/^b\\:.*/\"",
4695
4700
  "b:ts": "tsc --build",
4696
4701
  "b:bundle": "tsdown",
4697
4702
  "gen-prompts": "node ./scripts/gen-prompts.ts"
4698
4703
  };
4699
- var exports$1 = { ".": "./dist/index.js" };
4704
+ var exports$1 = {
4705
+ ".": {
4706
+ "types": "./dist/index.d.ts",
4707
+ "default": "./bundle/index.js"
4708
+ },
4709
+ "./dev": "./dist/index.js"
4710
+ };
4711
+ var dependencies = { "@parcel/watcher": "^2.5.1" };
4700
4712
  var peerDependencies = {
4701
4713
  "@jixo/dev": "workspace:^",
4702
4714
  "import-meta-ponyfill": "^3.2.2",
@@ -4715,34 +4727,34 @@ var peerDependenciesMeta = {
4715
4727
  };
4716
4728
  var devDependencies = {
4717
4729
  "@jixo/dev": "workspace:^",
4718
- "import-meta-ponyfill": "^3.2.2",
4719
- "ts-pattern": "^5.7.1",
4720
- "tslib": "^2.8.1",
4721
- "yargs": "^18.0.0",
4722
- "zod": "^4.0.0",
4723
- "@parcel/watcher": "^2.5.1",
4724
4730
  "@types/debug": "^4.1.12",
4725
4731
  "@types/json-schema": "^7.0.15",
4726
4732
  "@types/ms": "^2.1.0",
4727
4733
  "@types/node": "^24.1.0",
4728
4734
  "@types/semver": "^7.7.0",
4729
- "@types/yargs": "^17.0.33"
4735
+ "@types/yargs": "^17.0.33",
4736
+ "import-meta-ponyfill": "^3.2.2",
4737
+ "ts-pattern": "^5.7.1",
4738
+ "tslib": "^2.8.1",
4739
+ "yargs": "^18.0.0",
4740
+ "zod": "^4.0.0"
4730
4741
  };
4731
4742
  var package_default = {
4732
- name: name$1,
4733
- version: version$2,
4743
+ name,
4744
+ version: version$1,
4734
4745
  type,
4735
4746
  bin,
4736
4747
  files,
4737
4748
  scripts,
4738
4749
  exports: exports$1,
4750
+ dependencies,
4739
4751
  peerDependencies,
4740
4752
  peerDependenciesMeta,
4741
4753
  devDependencies
4742
4754
  };
4743
4755
 
4744
4756
  //#endregion
4745
- //#region ../../node_modules/.pnpm/@gaubee+nodekit@0.12.0_@gaubee+node@0.4.0_@gaubee+util@0.34.2__@gaubee+util@0.34.2_@types+node@24.1.0/node_modules/@gaubee/nodekit/esm/_dnt.shims.js
4757
+ //#region ../../node_modules/.pnpm/@gaubee+nodekit@0.12.0_@gau_ac796b2c5c73dab9bab91ba9e75b6834/node_modules/@gaubee/nodekit/esm/_dnt.shims.js
4746
4758
  const dntGlobals = {};
4747
4759
  const dntGlobalThis = createMergeProxy(globalThis, dntGlobals);
4748
4760
  function createMergeProxy(baseObj, extObj) {
@@ -4790,7 +4802,7 @@ function createMergeProxy(baseObj, extObj) {
4790
4802
  }
4791
4803
 
4792
4804
  //#endregion
4793
- //#region ../../node_modules/.pnpm/@gaubee+nodekit@0.12.0_@gaubee+node@0.4.0_@gaubee+util@0.34.2__@gaubee+util@0.34.2_@types+node@24.1.0/node_modules/@gaubee/nodekit/esm/deps/jsr.io/@std/fmt/1.0.8/colors.js
4805
+ //#region ../../node_modules/.pnpm/@gaubee+nodekit@0.12.0_@gau_ac796b2c5c73dab9bab91ba9e75b6834/node_modules/@gaubee/nodekit/esm/deps/jsr.io/@std/fmt/1.0.8/colors.js
4794
4806
  const { Deno } = dntGlobalThis;
4795
4807
  const noColor = typeof Deno?.noColor === "boolean" ? Deno.noColor : false;
4796
4808
  let enabled = !noColor;
@@ -4958,6 +4970,38 @@ function magenta(str) {
4958
4970
  function cyan(str) {
4959
4971
  return run(str, code([36], 39));
4960
4972
  }
4973
+ /**
4974
+ * Set text color to gray.
4975
+ *
4976
+ * @example Usage
4977
+ * ```ts no-assert
4978
+ * import { gray } from "@std/fmt/colors";
4979
+ *
4980
+ * console.log(gray("Hello, world!"));
4981
+ * ```
4982
+ *
4983
+ * @param str The text to make gray
4984
+ * @returns The gray text
4985
+ */
4986
+ function gray(str) {
4987
+ return brightBlack(str);
4988
+ }
4989
+ /**
4990
+ * Set text color to bright black.
4991
+ *
4992
+ * @example Usage
4993
+ * ```ts no-assert
4994
+ * import { brightBlack } from "@std/fmt/colors";
4995
+ *
4996
+ * console.log(brightBlack("Hello, world!"));
4997
+ * ```
4998
+ *
4999
+ * @param str The text to make bright black
5000
+ * @returns The bright black text
5001
+ */
5002
+ function brightBlack(str) {
5003
+ return run(str, code([90], 39));
5004
+ }
4961
5005
  const ANSI_PATTERN = new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TXZcf-nq-uy=><~]))"].join("|"), "g");
4962
5006
 
4963
5007
  //#endregion
@@ -5004,12 +5048,12 @@ const createAsyncContextStorage = () => {
5004
5048
 
5005
5049
  //#endregion
5006
5050
  //#region ../../node_modules/.pnpm/@gaubee+node@0.4.0_@gaubee+util@0.34.2/node_modules/@gaubee/node/esm/acontext/acontext.js
5007
- const createAcontext = (name$2, default_fn) => {
5051
+ const createAcontext = (name$1, default_fn) => {
5008
5052
  const storage = createAsyncContextStorage();
5009
5053
  const handle = {
5010
5054
  storage,
5011
5055
  default: default_fn,
5012
- name: name$2,
5056
+ name: name$1,
5013
5057
  getOrElse: (else_fn) => {
5014
5058
  const item = storage.getStore();
5015
5059
  if (item == null) return default_fn ? default_fn() : else_fn();
@@ -5017,7 +5061,7 @@ const createAcontext = (name$2, default_fn) => {
5017
5061
  },
5018
5062
  get: () => {
5019
5063
  return handle.getOrElse(() => {
5020
- throw new Error(`No factory registered for capability handle: ${name$2}`);
5064
+ throw new Error(`No factory registered for capability handle: ${name$1}`);
5021
5065
  });
5022
5066
  },
5023
5067
  getOrNull: () => {
@@ -5195,6 +5239,19 @@ const iter_map_not_null = (values, callbackfn) => {
5195
5239
  else for (const value of values) if (value != null) result.push(value);
5196
5240
  return result;
5197
5241
  };
5242
+ /**
5243
+ * 类似与 map not null,但只取第一个
5244
+ *
5245
+ * 支持任何可迭代的对象
5246
+ */
5247
+ const iter_first_not_null = (values, callbackfn) => {
5248
+ let index$1 = 0;
5249
+ if (callbackfn) for (const value of values) {
5250
+ const r$1 = callbackfn(value, index$1++, values);
5251
+ if (r$1 != null) return r$1;
5252
+ }
5253
+ else for (const value of values) if (value != null) return value;
5254
+ };
5198
5255
 
5199
5256
  //#endregion
5200
5257
  //#region ../../node_modules/.pnpm/@gaubee+util@0.34.2/node_modules/@gaubee/util/esm/pure_event.js
@@ -5593,6 +5650,49 @@ const func_parallel_limit = (funcs, limit) => {
5593
5650
 
5594
5651
  //#endregion
5595
5652
  //#region ../../node_modules/.pnpm/@gaubee+util@0.34.2/node_modules/@gaubee/util/esm/promise.js
5653
+ const timmers = {
5654
+ timeout: (ms) => {
5655
+ return (cb) => {
5656
+ const ti = setTimeout(cb, ms);
5657
+ return () => clearTimeout(ti);
5658
+ };
5659
+ },
5660
+ raf: ((cb) => {
5661
+ const ti = requestAnimationFrame(cb);
5662
+ return () => cancelAnimationFrame(ti);
5663
+ }),
5664
+ microtask: ((cb) => {
5665
+ let cancel = false;
5666
+ queueMicrotask(() => {
5667
+ if (cancel) return;
5668
+ cb();
5669
+ });
5670
+ return () => {
5671
+ cancel = true;
5672
+ };
5673
+ }),
5674
+ eventTarget: (target, eventType, filter$1) => {
5675
+ return (resolve$1) => {
5676
+ let cb;
5677
+ if (typeof filter$1 === "function") {
5678
+ cb = (event) => {
5679
+ if (filter$1(event)) {
5680
+ resolve$1(event);
5681
+ target.removeEventListener(eventType, cb);
5682
+ }
5683
+ };
5684
+ target.addEventListener(eventType, cb);
5685
+ } else {
5686
+ cb = resolve$1;
5687
+ target.addEventListener(eventType, cb, { once: true });
5688
+ }
5689
+ return () => target.removeEventListener(eventType, cb);
5690
+ };
5691
+ },
5692
+ from: (ms) => {
5693
+ return typeof ms === "number" ? ms <= 0 ? timmers.microtask : timmers.timeout(ms) : ms;
5694
+ }
5695
+ };
5596
5696
  const promise_try = async (fn) => {
5597
5697
  try {
5598
5698
  const value = await fn();
@@ -5608,16 +5708,60 @@ const promise_try = async (fn) => {
5608
5708
  }
5609
5709
  };
5610
5710
 
5711
+ //#endregion
5712
+ //#region ../../node_modules/.pnpm/@gaubee+util@0.34.2/node_modules/@gaubee/util/esm/debounce.js
5713
+ const func_debounce = (fn, wait = 0, options$1 = {}) => {
5714
+ if (!Number.isFinite(wait)) throw new TypeError("Expected `wait` to be a finite number");
5715
+ const timmer = timmers.from(wait);
5716
+ let leadingValue;
5717
+ let clear;
5718
+ let jobList = [];
5719
+ let trigger;
5720
+ return obj_assign_props(function(...args) {
5721
+ const job = Promise.withResolvers();
5722
+ const shouldCallNow = options$1.before && null == clear;
5723
+ if (shouldCallNow) {
5724
+ leadingValue = fn.apply(this, args);
5725
+ job.resolve(leadingValue);
5726
+ } else jobList.push(job);
5727
+ clear?.();
5728
+ clear = timmer(trigger = () => {
5729
+ clear = void 0;
5730
+ trigger = void 0;
5731
+ const result = options$1.before ? leadingValue : fn.apply(this, args);
5732
+ for (const job$1 of jobList) job$1.resolve(result);
5733
+ jobList = [];
5734
+ }, (reason) => {
5735
+ for (const job$1 of jobList) job$1.reject(reason);
5736
+ });
5737
+ return job.promise;
5738
+ }, {
5739
+ get isPending() {
5740
+ return clear != null;
5741
+ },
5742
+ cancel() {
5743
+ clear?.();
5744
+ },
5745
+ source: fn,
5746
+ flush() {
5747
+ if (clear != null) {
5748
+ clear();
5749
+ trigger?.();
5750
+ }
5751
+ }
5752
+ });
5753
+ };
5754
+
5611
5755
  //#endregion
5612
5756
  //#region ../../node_modules/.pnpm/@gaubee+node@0.4.0_@gaubee+util@0.34.2/node_modules/@gaubee/node/esm/path.js
5613
5757
  /**
5614
5758
  * 将一个路径格式化成标准的 posix 格式
5615
5759
  */
5616
- const normalizeFilePath = (path$13) => {
5617
- if (typeof path$13 !== "string") path$13 = String(path$13);
5618
- if (path$13.startsWith("file://")) path$13 = fileURLToPath(path$13);
5619
- if (path$13.includes("\\")) path$13 = path$13.replaceAll("\\", "/");
5620
- return path$13;
5760
+ const normalizeFilePath = (path$12) => {
5761
+ if (typeof path$12 !== "string") path$12 = String(path$12);
5762
+ if (path$12.startsWith("file://")) path$12 = fileURLToPath(path$12);
5763
+ if (path$12.includes("\\")) path$12 = path$12.replaceAll("\\", "/");
5764
+ return path$12;
5621
5765
  };
5622
5766
  /**
5623
5767
  * 创建一个 path.resolve 柯里化函数
@@ -5650,7 +5794,7 @@ const createResolverByRootFile = (fromPath = process$1.cwd(), rootFilename = "pa
5650
5794
  };
5651
5795
 
5652
5796
  //#endregion
5653
- //#region ../../node_modules/.pnpm/@gaubee+nodekit@0.12.0_@gaubee+node@0.4.0_@gaubee+util@0.34.2__@gaubee+util@0.34.2_@types+node@24.1.0/node_modules/@gaubee/nodekit/esm/deps/jsr.io/@std/jsonc/1.0.2/parse.js
5797
+ //#region ../../node_modules/.pnpm/@gaubee+nodekit@0.12.0_@gau_ac796b2c5c73dab9bab91ba9e75b6834/node_modules/@gaubee/nodekit/esm/deps/jsr.io/@std/jsonc/1.0.2/parse.js
5654
5798
  /**
5655
5799
  * Converts a JSON with Comments (JSONC) string into an object.
5656
5800
  *
@@ -5876,13 +6020,13 @@ function buildErrorMessage({ type: type$1, sourceText, position: position$1 }) {
5876
6020
  }
5877
6021
 
5878
6022
  //#endregion
5879
- //#region ../../node_modules/.pnpm/@gaubee+nodekit@0.12.0_@gaubee+node@0.4.0_@gaubee+util@0.34.2__@gaubee+util@0.34.2_@types+node@24.1.0/node_modules/@gaubee/nodekit/esm/config_file.js
6023
+ //#region ../../node_modules/.pnpm/@gaubee+nodekit@0.12.0_@gau_ac796b2c5c73dab9bab91ba9e75b6834/node_modules/@gaubee/nodekit/esm/config_file.js
5880
6024
  /**
5881
6025
  * read json or jsonc file
5882
6026
  */
5883
- const readJson = (path$13, defaultValue) => {
6027
+ const readJson = (path$12, defaultValue) => {
5884
6028
  try {
5885
- return parse$9(fs.readFileSync(normalizeFilePath(path$13), "utf8"));
6029
+ return parse$9(fs.readFileSync(normalizeFilePath(path$12), "utf8"));
5886
6030
  } catch (e$1) {
5887
6031
  if (defaultValue) return defaultValue();
5888
6032
  throw e$1;
@@ -5954,8 +6098,8 @@ var require_kind_of = __commonJS$2({ "../../node_modules/.pnpm/kind-of@6.0.3/nod
5954
6098
  if (val instanceof RegExp) return true;
5955
6099
  return typeof val.flags === "string" && typeof val.ignoreCase === "boolean" && typeof val.multiline === "boolean" && typeof val.global === "boolean";
5956
6100
  }
5957
- function isGeneratorFn(name$2, val) {
5958
- return ctorName(name$2) === "GeneratorFunction";
6101
+ function isGeneratorFn(name$1, val) {
6102
+ return ctorName(name$1) === "GeneratorFunction";
5959
6103
  }
5960
6104
  function isGeneratorObj(val) {
5961
6105
  return typeof val.throw === "function" && typeof val.return === "function" && typeof val.next === "function";
@@ -6184,8 +6328,8 @@ var require_exception = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/
6184
6328
  //#region ../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/mark.js
6185
6329
  var require_mark = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/mark.js"(exports, module) {
6186
6330
  var common$11 = require_common$4();
6187
- function Mark$1(name$2, buffer$1, position$1, line$2, column$1) {
6188
- this.name = name$2;
6331
+ function Mark$1(name$1, buffer$1, position$1, line$2, column$1) {
6332
+ this.name = name$1;
6189
6333
  this.buffer = buffer$1;
6190
6334
  this.position = position$1;
6191
6335
  this.line = line$2;
@@ -6262,8 +6406,8 @@ var require_type = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/node_
6262
6406
  }
6263
6407
  function Type$17(tag, options$1) {
6264
6408
  options$1 = options$1 || {};
6265
- Object.keys(options$1).forEach(function(name$2) {
6266
- if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name$2) === -1) throw new YAMLException$3("Unknown option \"" + name$2 + "\" is met in definition of \"" + tag + "\" YAML type.");
6409
+ Object.keys(options$1).forEach(function(name$1) {
6410
+ if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name$1) === -1) throw new YAMLException$3("Unknown option \"" + name$1 + "\" is met in definition of \"" + tag + "\" YAML type.");
6267
6411
  });
6268
6412
  this.tag = tag;
6269
6413
  this.kind = options$1["kind"] || null;
@@ -6289,12 +6433,12 @@ var require_schema = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
6289
6433
  var common$10 = require_common$4();
6290
6434
  var YAMLException$2 = require_exception();
6291
6435
  var Type$16 = require_type();
6292
- function compileList(schema, name$2, result) {
6436
+ function compileList(schema, name$1, result) {
6293
6437
  var exclude = [];
6294
6438
  schema.include.forEach(function(includedSchema) {
6295
- result = compileList(includedSchema, name$2, result);
6439
+ result = compileList(includedSchema, name$1, result);
6296
6440
  });
6297
- schema[name$2].forEach(function(currentType) {
6441
+ schema[name$1].forEach(function(currentType) {
6298
6442
  result.forEach(function(previousType, previousIndex) {
6299
6443
  if (previousType.tag === currentType.tag && previousType.kind === currentType.kind) exclude.push(previousIndex);
6300
6444
  });
@@ -7167,7 +7311,7 @@ var require_loader = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
7167
7311
  if (state.onWarning) state.onWarning.call(null, generateError(state, message));
7168
7312
  }
7169
7313
  var directiveHandlers = {
7170
- YAML: function handleYamlDirective(state, name$2, args) {
7314
+ YAML: function handleYamlDirective(state, name$1, args) {
7171
7315
  var match, major, minor;
7172
7316
  if (state.version !== null) throwError$1(state, "duplication of %YAML directive");
7173
7317
  if (args.length !== 1) throwError$1(state, "YAML directive accepts exactly one argument");
@@ -7180,7 +7324,7 @@ var require_loader = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
7180
7324
  state.checkLineBreaks = minor < 2;
7181
7325
  if (minor !== 1 && minor !== 2) throwWarning(state, "unsupported YAML version of the document");
7182
7326
  },
7183
- TAG: function handleTagDirective(state, name$2, args) {
7327
+ TAG: function handleTagDirective(state, name$1, args) {
7184
7328
  var handle, prefix;
7185
7329
  if (args.length !== 2) throwError$1(state, "TAG directive accepts exactly two arguments");
7186
7330
  handle = args[0];
@@ -8328,9 +8472,9 @@ var require_dumper = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
8328
8472
  var require_js_yaml$1 = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml.js"(exports, module) {
8329
8473
  var loader = require_loader();
8330
8474
  var dumper = require_dumper();
8331
- function deprecated(name$2) {
8475
+ function deprecated(name$1) {
8332
8476
  return function() {
8333
- throw new Error("Function " + name$2 + " is deprecated and cannot be used.");
8477
+ throw new Error("Function " + name$1 + " is deprecated and cannot be used.");
8334
8478
  };
8335
8479
  }
8336
8480
  module.exports.Type = require_type();
@@ -8491,14 +8635,14 @@ var require_defaults = __commonJS$2({ "../../node_modules/.pnpm/gray-matter@4.0.
8491
8635
  //#endregion
8492
8636
  //#region ../../node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/engine.js
8493
8637
  var require_engine = __commonJS$2({ "../../node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/engine.js"(exports, module) {
8494
- module.exports = function(name$2, options$1) {
8495
- let engine = options$1.engines[name$2] || options$1.engines[aliase(name$2)];
8496
- if (typeof engine === "undefined") throw new Error("gray-matter engine \"" + name$2 + "\" is not registered");
8638
+ module.exports = function(name$1, options$1) {
8639
+ let engine = options$1.engines[name$1] || options$1.engines[aliase(name$1)];
8640
+ if (typeof engine === "undefined") throw new Error("gray-matter engine \"" + name$1 + "\" is not registered");
8497
8641
  if (typeof engine === "function") engine = { parse: engine };
8498
8642
  return engine;
8499
8643
  };
8500
- function aliase(name$2) {
8501
- switch (name$2.toLowerCase()) {
8644
+ function aliase(name$1) {
8645
+ switch (name$1.toLowerCase()) {
8502
8646
  case "js":
8503
8647
  case "javascript": return "javascript";
8504
8648
  case "coffee":
@@ -8506,7 +8650,7 @@ var require_engine = __commonJS$2({ "../../node_modules/.pnpm/gray-matter@4.0.3/
8506
8650
  case "cson": return "coffee";
8507
8651
  case "yaml":
8508
8652
  case "yml": return "yaml";
8509
- default: return name$2;
8653
+ default: return name$1;
8510
8654
  }
8511
8655
  }
8512
8656
  } });
@@ -8780,7 +8924,7 @@ var require_gray_matter = __commonJS$2({ "../../node_modules/.pnpm/gray-matter@4
8780
8924
  } });
8781
8925
 
8782
8926
  //#endregion
8783
- //#region ../../node_modules/.pnpm/@gaubee+nodekit@0.12.0_@gaubee+node@0.4.0_@gaubee+util@0.34.2__@gaubee+util@0.34.2_@types+node@24.1.0/node_modules/@gaubee/nodekit/esm/markdown_file.js
8927
+ //#region ../../node_modules/.pnpm/@gaubee+nodekit@0.12.0_@gau_ac796b2c5c73dab9bab91ba9e75b6834/node_modules/@gaubee/nodekit/esm/markdown_file.js
8784
8928
  var import_gray_matter = __toESM$1(require_gray_matter(), 1);
8785
8929
 
8786
8930
  //#endregion
@@ -8918,14 +9062,14 @@ var require_ignore$1 = __commonJS$2({ "../../node_modules/.pnpm/ignore@7.0.5/nod
8918
9062
  makeArray(isString$1(pattern$1) ? splitPattern(pattern$1) : pattern$1).forEach(this._add, this);
8919
9063
  return this._added;
8920
9064
  }
8921
- test(path$13, checkUnignored, mode) {
9065
+ test(path$12, checkUnignored, mode) {
8922
9066
  let ignored = false;
8923
9067
  let unignored = false;
8924
9068
  let matchedRule;
8925
9069
  this._rules.forEach((rule) => {
8926
9070
  const { negative } = rule;
8927
9071
  if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) return;
8928
- const matched = rule[mode].test(path$13);
9072
+ const matched = rule[mode].test(path$12);
8929
9073
  if (!matched) return;
8930
9074
  ignored = !negative;
8931
9075
  unignored = negative;
@@ -8942,16 +9086,16 @@ var require_ignore$1 = __commonJS$2({ "../../node_modules/.pnpm/ignore@7.0.5/nod
8942
9086
  const throwError = (message, Ctor) => {
8943
9087
  throw new Ctor(message);
8944
9088
  };
8945
- const checkPath = (path$13, originalPath, doThrow) => {
8946
- if (!isString$1(path$13)) return doThrow(`path must be a string, but got \`${originalPath}\``, TypeError);
8947
- if (!path$13) return doThrow(`path must not be empty`, TypeError);
8948
- if (checkPath.isNotRelative(path$13)) {
9089
+ const checkPath = (path$12, originalPath, doThrow) => {
9090
+ if (!isString$1(path$12)) return doThrow(`path must be a string, but got \`${originalPath}\``, TypeError);
9091
+ if (!path$12) return doThrow(`path must not be empty`, TypeError);
9092
+ if (checkPath.isNotRelative(path$12)) {
8949
9093
  const r$1 = "`path.relative()`d";
8950
9094
  return doThrow(`path should be a ${r$1} string, but got "${originalPath}"`, RangeError);
8951
9095
  }
8952
9096
  return true;
8953
9097
  };
8954
- const isNotRelative = (path$13) => REGEX_TEST_INVALID_PATH.test(path$13);
9098
+ const isNotRelative = (path$12) => REGEX_TEST_INVALID_PATH.test(path$12);
8955
9099
  checkPath.isNotRelative = isNotRelative;
8956
9100
  /* istanbul ignore next */
8957
9101
  checkPath.convert = (p$1) => p$1;
@@ -8974,49 +9118,49 @@ var require_ignore$1 = __commonJS$2({ "../../node_modules/.pnpm/ignore@7.0.5/nod
8974
9118
  return this.add(pattern$1);
8975
9119
  }
8976
9120
  _test(originalPath, cache$2, checkUnignored, slices) {
8977
- const path$13 = originalPath && checkPath.convert(originalPath);
8978
- checkPath(path$13, originalPath, this._strictPathCheck ? throwError : RETURN_FALSE);
8979
- return this._t(path$13, cache$2, checkUnignored, slices);
9121
+ const path$12 = originalPath && checkPath.convert(originalPath);
9122
+ checkPath(path$12, originalPath, this._strictPathCheck ? throwError : RETURN_FALSE);
9123
+ return this._t(path$12, cache$2, checkUnignored, slices);
8980
9124
  }
8981
- checkIgnore(path$13) {
8982
- if (!REGEX_TEST_TRAILING_SLASH.test(path$13)) return this.test(path$13);
8983
- const slices = path$13.split(SLASH).filter(Boolean);
9125
+ checkIgnore(path$12) {
9126
+ if (!REGEX_TEST_TRAILING_SLASH.test(path$12)) return this.test(path$12);
9127
+ const slices = path$12.split(SLASH).filter(Boolean);
8984
9128
  slices.pop();
8985
9129
  if (slices.length) {
8986
9130
  const parent = this._t(slices.join(SLASH) + SLASH, this._testCache, true, slices);
8987
9131
  if (parent.ignored) return parent;
8988
9132
  }
8989
- return this._rules.test(path$13, false, MODE_CHECK_IGNORE);
9133
+ return this._rules.test(path$12, false, MODE_CHECK_IGNORE);
8990
9134
  }
8991
- _t(path$13, cache$2, checkUnignored, slices) {
8992
- if (path$13 in cache$2) return cache$2[path$13];
8993
- if (!slices) slices = path$13.split(SLASH).filter(Boolean);
9135
+ _t(path$12, cache$2, checkUnignored, slices) {
9136
+ if (path$12 in cache$2) return cache$2[path$12];
9137
+ if (!slices) slices = path$12.split(SLASH).filter(Boolean);
8994
9138
  slices.pop();
8995
- if (!slices.length) return cache$2[path$13] = this._rules.test(path$13, checkUnignored, MODE_IGNORE);
9139
+ if (!slices.length) return cache$2[path$12] = this._rules.test(path$12, checkUnignored, MODE_IGNORE);
8996
9140
  const parent = this._t(slices.join(SLASH) + SLASH, cache$2, checkUnignored, slices);
8997
- return cache$2[path$13] = parent.ignored ? parent : this._rules.test(path$13, checkUnignored, MODE_IGNORE);
9141
+ return cache$2[path$12] = parent.ignored ? parent : this._rules.test(path$12, checkUnignored, MODE_IGNORE);
8998
9142
  }
8999
- ignores(path$13) {
9000
- return this._test(path$13, this._ignoreCache, false).ignored;
9143
+ ignores(path$12) {
9144
+ return this._test(path$12, this._ignoreCache, false).ignored;
9001
9145
  }
9002
9146
  createFilter() {
9003
- return (path$13) => !this.ignores(path$13);
9147
+ return (path$12) => !this.ignores(path$12);
9004
9148
  }
9005
9149
  filter(paths) {
9006
9150
  return makeArray(paths).filter(this.createFilter());
9007
9151
  }
9008
- test(path$13) {
9009
- return this._test(path$13, this._testCache, true);
9152
+ test(path$12) {
9153
+ return this._test(path$12, this._testCache, true);
9010
9154
  }
9011
9155
  };
9012
9156
  const factory = (options$1) => new Ignore(options$1);
9013
- const isPathValid = (path$13) => checkPath(path$13 && checkPath.convert(path$13), path$13, RETURN_FALSE);
9157
+ const isPathValid = (path$12) => checkPath(path$12 && checkPath.convert(path$12), path$12, RETURN_FALSE);
9014
9158
  /* istanbul ignore next */
9015
9159
  const setupWindows = () => {
9016
9160
  const makePosix = (str) => /^\\\\\?\\/.test(str) || /["<>|\u0000-\u001F]+/u.test(str) ? str : str.replace(/\\/g, "/");
9017
9161
  checkPath.convert = makePosix;
9018
9162
  const REGEX_TEST_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i;
9019
- checkPath.isNotRelative = (path$13) => REGEX_TEST_WINDOWS_PATH_ABSOLUTE.test(path$13) || isNotRelative(path$13);
9163
+ checkPath.isNotRelative = (path$12) => REGEX_TEST_WINDOWS_PATH_ABSOLUTE.test(path$12) || isNotRelative(path$12);
9020
9164
  };
9021
9165
  /* istanbul ignore next */
9022
9166
  if (typeof process !== "undefined" && process.platform === "win32") setupWindows();
@@ -9538,7 +9682,7 @@ const fallbackSymbols = {
9538
9682
  };
9539
9683
  const shouldUseMain = isUnicodeSupported();
9540
9684
  const figures = shouldUseMain ? mainSymbols : fallbackSymbols;
9541
- var esm_default = figures;
9685
+ var esm_default$1 = figures;
9542
9686
  const replacements = Object.entries(specialMainSymbols);
9543
9687
 
9544
9688
  //#endregion
@@ -9547,7 +9691,7 @@ var import_yoctocolors_cjs$2 = __toESM$1(require_yoctocolors_cjs(), 1);
9547
9691
  const defaultTheme = {
9548
9692
  prefix: {
9549
9693
  idle: import_yoctocolors_cjs$2.default.blue("?"),
9550
- done: import_yoctocolors_cjs$2.default.green(esm_default.tick)
9694
+ done: import_yoctocolors_cjs$2.default.green(esm_default$1.tick)
9551
9695
  },
9552
9696
  spinner: {
9553
9697
  interval: 80,
@@ -9626,14 +9770,14 @@ function usePrefix({ status = "idle", theme }) {
9626
9770
 
9627
9771
  //#endregion
9628
9772
  //#region ../../node_modules/.pnpm/@inquirer+core@10.1.15_@types+node@24.1.0/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
9629
- function useMemo(fn, dependencies) {
9773
+ function useMemo(fn, dependencies$1) {
9630
9774
  return withPointer((pointer) => {
9631
9775
  const prev = pointer.get();
9632
- if (!prev || prev.dependencies.length !== dependencies.length || prev.dependencies.some((dep, i$2) => dep !== dependencies[i$2])) {
9776
+ if (!prev || prev.dependencies.length !== dependencies$1.length || prev.dependencies.some((dep, i$2) => dep !== dependencies$1[i$2])) {
9633
9777
  const value = fn();
9634
9778
  pointer.set({
9635
9779
  value,
9636
- dependencies
9780
+ dependencies: dependencies$1
9637
9781
  });
9638
9782
  return value;
9639
9783
  }
@@ -11285,30 +11429,30 @@ var require_conversions = __commonJS$2({ "../../node_modules/.pnpm/color-convert
11285
11429
  ];
11286
11430
  };
11287
11431
  convert$2.gray.hsv = convert$2.gray.hsl;
11288
- convert$2.gray.hwb = function(gray) {
11432
+ convert$2.gray.hwb = function(gray$1) {
11289
11433
  return [
11290
11434
  0,
11291
11435
  100,
11292
- gray[0]
11436
+ gray$1[0]
11293
11437
  ];
11294
11438
  };
11295
- convert$2.gray.cmyk = function(gray) {
11439
+ convert$2.gray.cmyk = function(gray$1) {
11296
11440
  return [
11297
11441
  0,
11298
11442
  0,
11299
11443
  0,
11300
- gray[0]
11444
+ gray$1[0]
11301
11445
  ];
11302
11446
  };
11303
- convert$2.gray.lab = function(gray) {
11447
+ convert$2.gray.lab = function(gray$1) {
11304
11448
  return [
11305
- gray[0],
11449
+ gray$1[0],
11306
11450
  0,
11307
11451
  0
11308
11452
  ];
11309
11453
  };
11310
- convert$2.gray.hex = function(gray) {
11311
- const val = Math.round(gray[0] / 100 * 255) & 255;
11454
+ convert$2.gray.hex = function(gray$1) {
11455
+ const val = Math.round(gray$1[0] / 100 * 255) & 255;
11312
11456
  const integer$1 = (val << 16) + (val << 8) + val;
11313
11457
  const string$6 = integer$1.toString(16).toUpperCase();
11314
11458
  return "000000".substring(string$6.length) + string$6;
@@ -11357,15 +11501,15 @@ var require_route = __commonJS$2({ "../../node_modules/.pnpm/color-convert@2.0.1
11357
11501
  };
11358
11502
  }
11359
11503
  function wrapConversion(toModel, graph) {
11360
- const path$13 = [graph[toModel].parent, toModel];
11504
+ const path$12 = [graph[toModel].parent, toModel];
11361
11505
  let fn = conversions$1[graph[toModel].parent][toModel];
11362
11506
  let cur = graph[toModel].parent;
11363
11507
  while (graph[cur].parent) {
11364
- path$13.unshift(graph[cur].parent);
11508
+ path$12.unshift(graph[cur].parent);
11365
11509
  fn = link(conversions$1[graph[cur].parent][cur], fn);
11366
11510
  cur = graph[cur].parent;
11367
11511
  }
11368
- fn.conversion = path$13;
11512
+ fn.conversion = path$12;
11369
11513
  return fn;
11370
11514
  }
11371
11515
  module.exports = function(fromModel) {
@@ -11469,9 +11613,9 @@ var require_ansi_styles = __commonJS$2({ "../../node_modules/.pnpm/ansi-styles@4
11469
11613
  const offset = isBackground ? 10 : 0;
11470
11614
  const styles$1 = {};
11471
11615
  for (const [sourceSpace, suite] of Object.entries(colorConvert)) {
11472
- const name$2 = sourceSpace === "ansi16" ? "ansi" : sourceSpace;
11473
- if (sourceSpace === targetSpace) styles$1[name$2] = wrap(identity$1, offset);
11474
- else if (typeof suite === "object") styles$1[name$2] = wrap(suite[targetSpace], offset);
11616
+ const name$1 = sourceSpace === "ansi16" ? "ansi" : sourceSpace;
11617
+ if (sourceSpace === targetSpace) styles$1[name$1] = wrap(identity$1, offset);
11618
+ else if (typeof suite === "object") styles$1[name$1] = wrap(suite[targetSpace], offset);
11475
11619
  }
11476
11620
  return styles$1;
11477
11621
  };
@@ -11803,9 +11947,9 @@ var require_lib$1 = __commonJS$2({ "../../node_modules/.pnpm/mute-stream@2.0.0/n
11803
11947
  if (this._src) return this._src[key$1];
11804
11948
  return def;
11805
11949
  }
11806
- #proxy(method$1, ...args) {
11807
- if (typeof this._dest?.[method$1] === "function") this._dest[method$1](...args);
11808
- if (typeof this._src?.[method$1] === "function") this._src[method$1](...args);
11950
+ #proxy(method, ...args) {
11951
+ if (typeof this._dest?.[method] === "function") this._dest[method](...args);
11952
+ if (typeof this._src?.[method] === "function") this._src[method](...args);
11809
11953
  }
11810
11954
  get isTTY() {
11811
11955
  if (this.#isTTY !== null) return this.#isTTY;
@@ -12357,7 +12501,7 @@ var import_yoctocolors_cjs$1 = __toESM$1(require_yoctocolors_cjs(), 1);
12357
12501
  * Used to space/separate choices group
12358
12502
  */
12359
12503
  var Separator = class {
12360
- separator = import_yoctocolors_cjs$1.default.dim(Array.from({ length: 15 }).join(esm_default.line));
12504
+ separator = import_yoctocolors_cjs$1.default.dim(Array.from({ length: 15 }).join(esm_default$1.line));
12361
12505
  type = "separator";
12362
12506
  constructor(separator) {
12363
12507
  if (separator) this.separator = separator;
@@ -12373,9 +12517,9 @@ var import_yoctocolors_cjs = __toESM$1(require_yoctocolors_cjs(), 1);
12373
12517
  var import_ansi_escapes = __toESM$1(require_ansi_escapes(), 1);
12374
12518
  const checkboxTheme = {
12375
12519
  icon: {
12376
- checked: import_yoctocolors_cjs.default.green(esm_default.circleFilled),
12377
- unchecked: esm_default.circle,
12378
- cursor: esm_default.pointer
12520
+ checked: import_yoctocolors_cjs.default.green(esm_default$1.circleFilled),
12521
+ unchecked: esm_default$1.circle,
12522
+ cursor: esm_default$1.pointer
12379
12523
  },
12380
12524
  style: {
12381
12525
  disabledChoice: (text$2) => import_yoctocolors_cjs.default.dim(`- ${text$2}`),
@@ -12414,11 +12558,11 @@ function normalizeChoices(choices) {
12414
12558
  disabled: false,
12415
12559
  checked: false
12416
12560
  };
12417
- const name$2 = choice.name ?? String(choice.value);
12561
+ const name$1 = choice.name ?? String(choice.value);
12418
12562
  const normalizedChoice = {
12419
12563
  value: choice.value,
12420
- name: name$2,
12421
- short: choice.short ?? name$2,
12564
+ name: name$1,
12565
+ short: choice.short ?? name$1,
12422
12566
  disabled: choice.disabled ?? false,
12423
12567
  checked: choice.checked ?? false
12424
12568
  };
@@ -12426,7 +12570,7 @@ function normalizeChoices(choices) {
12426
12570
  return normalizedChoice;
12427
12571
  });
12428
12572
  }
12429
- var esm_default$1 = createPrompt((config$1, done) => {
12573
+ var esm_default$2 = createPrompt((config$1, done) => {
12430
12574
  const { instructions, pageSize = 7, loop = true, required: required$1, validate: validate$1 = () => true } = config$1;
12431
12575
  const shortcuts = {
12432
12576
  all: "a",
@@ -12543,6 +12687,47 @@ var esm_default$1 = createPrompt((config$1, done) => {
12543
12687
  return `${prefix} ${message}${helpTipTop}\n${page}${helpTipBottom}${choiceDescription}${error$41}${import_ansi_escapes.default.cursorHide}`;
12544
12688
  });
12545
12689
 
12690
+ //#endregion
12691
+ //#region ../../node_modules/.pnpm/@inquirer+confirm@5.1.14_@types+node@24.1.0/node_modules/@inquirer/confirm/dist/esm/index.js
12692
+ function getBooleanValue(value, defaultValue) {
12693
+ let answer = defaultValue !== false;
12694
+ if (/^(y|yes)/i.test(value)) answer = true;
12695
+ else if (/^(n|no)/i.test(value)) answer = false;
12696
+ return answer;
12697
+ }
12698
+ function boolToString(value) {
12699
+ return value ? "Yes" : "No";
12700
+ }
12701
+ var esm_default = createPrompt((config$1, done) => {
12702
+ const { transformer = boolToString } = config$1;
12703
+ const [status, setStatus] = useState("idle");
12704
+ const [value, setValue] = useState("");
12705
+ const theme = makeTheme(config$1.theme);
12706
+ const prefix = usePrefix({
12707
+ status,
12708
+ theme
12709
+ });
12710
+ useKeypress((key$1, rl) => {
12711
+ if (isEnterKey(key$1)) {
12712
+ const answer = getBooleanValue(value, config$1.default);
12713
+ setValue(transformer(answer));
12714
+ setStatus("done");
12715
+ done(answer);
12716
+ } else if (key$1.name === "tab") {
12717
+ const answer = boolToString(!getBooleanValue(value, config$1.default));
12718
+ rl.clearLine(0);
12719
+ rl.write(answer);
12720
+ setValue(answer);
12721
+ } else setValue(rl.line);
12722
+ });
12723
+ let formattedValue = value;
12724
+ let defaultValue = "";
12725
+ if (status === "done") formattedValue = theme.style.answer(value);
12726
+ else defaultValue = ` ${theme.style.defaultAnswer(config$1.default === false ? "y/N" : "Y/n")}`;
12727
+ const message = theme.style.message(config$1.message, status);
12728
+ return `${prefix} ${message}${defaultValue} ${formattedValue}`;
12729
+ });
12730
+
12546
12731
  //#endregion
12547
12732
  //#region ../../node_modules/.pnpm/@sindresorhus+merge-streams@2.3.0/node_modules/@sindresorhus/merge-streams/index.js
12548
12733
  function mergeStreams(streams) {
@@ -12732,8 +12917,8 @@ var require_fs$4 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3/node
12732
12917
  Object.defineProperty(exports, "__esModule", { value: true });
12733
12918
  exports.createDirentFromStats = void 0;
12734
12919
  var DirentFromStats$1 = class {
12735
- constructor(name$2, stats) {
12736
- this.name = name$2;
12920
+ constructor(name$1, stats) {
12921
+ this.name = name$1;
12737
12922
  this.isBlockDevice = stats.isBlockDevice.bind(stats);
12738
12923
  this.isCharacterDevice = stats.isCharacterDevice.bind(stats);
12739
12924
  this.isDirectory = stats.isDirectory.bind(stats);
@@ -12743,8 +12928,8 @@ var require_fs$4 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3/node
12743
12928
  this.isSymbolicLink = stats.isSymbolicLink.bind(stats);
12744
12929
  }
12745
12930
  };
12746
- function createDirentFromStats$1(name$2, stats) {
12747
- return new DirentFromStats$1(name$2, stats);
12931
+ function createDirentFromStats$1(name$1, stats) {
12932
+ return new DirentFromStats$1(name$1, stats);
12748
12933
  }
12749
12934
  exports.createDirentFromStats = createDirentFromStats$1;
12750
12935
  } });
@@ -12755,7 +12940,7 @@ var require_path$1 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3/no
12755
12940
  Object.defineProperty(exports, "__esModule", { value: true });
12756
12941
  exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
12757
12942
  const os$2 = __require$1("os");
12758
- const path$12 = __require$1("path");
12943
+ const path$11 = __require$1("path");
12759
12944
  const IS_WINDOWS_PLATFORM = os$2.platform() === "win32";
12760
12945
  const LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2;
12761
12946
  /**
@@ -12784,7 +12969,7 @@ var require_path$1 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3/no
12784
12969
  }
12785
12970
  exports.unixify = unixify;
12786
12971
  function makeAbsolute(cwd, filepath) {
12787
- return path$12.resolve(cwd, filepath);
12972
+ return path$11.resolve(cwd, filepath);
12788
12973
  }
12789
12974
  exports.makeAbsolute = makeAbsolute;
12790
12975
  function removeLeadingDotSegment(entry) {
@@ -12924,7 +13109,7 @@ var require_is_glob$1 = __commonJS$2({ "../../node_modules/.pnpm/is-glob@4.0.3/n
12924
13109
  }
12925
13110
  return false;
12926
13111
  };
12927
- module.exports = function isGlob$2(str, options$1) {
13112
+ module.exports = function isGlob$1(str, options$1) {
12928
13113
  if (typeof str !== "string" || str === "") return false;
12929
13114
  if (isExtglob(str)) return true;
12930
13115
  var check$4 = strictCheck;
@@ -12936,7 +13121,7 @@ var require_is_glob$1 = __commonJS$2({ "../../node_modules/.pnpm/is-glob@4.0.3/n
12936
13121
  //#endregion
12937
13122
  //#region ../../node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.js
12938
13123
  var require_glob_parent$1 = __commonJS$2({ "../../node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.js"(exports, module) {
12939
- var isGlob$1 = require_is_glob$1();
13124
+ var isGlob = require_is_glob$1();
12940
13125
  var pathPosixDirname = __require$1("path").posix.dirname;
12941
13126
  var isWin32 = __require$1("os").platform() === "win32";
12942
13127
  var slash$2 = "/";
@@ -12957,7 +13142,7 @@ var require_glob_parent$1 = __commonJS$2({ "../../node_modules/.pnpm/glob-parent
12957
13142
  str += "a";
12958
13143
  do
12959
13144
  str = pathPosixDirname(str);
12960
- while (isGlob$1(str) || globby$1.test(str));
13145
+ while (isGlob(str) || globby$1.test(str));
12961
13146
  return str.replace(escaped, "$1");
12962
13147
  };
12963
13148
  } });
@@ -13092,11 +13277,11 @@ var require_is_number$1 = __commonJS$2({ "../../node_modules/.pnpm/is-number@7.0
13092
13277
  //#endregion
13093
13278
  //#region ../../node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.js
13094
13279
  var require_to_regex_range$1 = __commonJS$2({ "../../node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.js"(exports, module) {
13095
- const isNumber$2 = require_is_number$1();
13280
+ const isNumber$1 = require_is_number$1();
13096
13281
  const toRegexRange$1 = (min, max, options$1) => {
13097
- if (isNumber$2(min) === false) throw new TypeError("toRegexRange: expected the first argument to be a number");
13282
+ if (isNumber$1(min) === false) throw new TypeError("toRegexRange: expected the first argument to be a number");
13098
13283
  if (max === void 0 || min === max) return String(min);
13099
- if (isNumber$2(max) === false) throw new TypeError("toRegexRange: expected the second argument to be a number.");
13284
+ if (isNumber$1(max) === false) throw new TypeError("toRegexRange: expected the second argument to be a number.");
13100
13285
  let opts = {
13101
13286
  relaxZeros: true,
13102
13287
  ...options$1
@@ -13227,8 +13412,8 @@ var require_to_regex_range$1 = __commonJS$2({ "../../node_modules/.pnpm/to-regex
13227
13412
  let result = [];
13228
13413
  for (let ele of arr) {
13229
13414
  let { string: string$6 } = ele;
13230
- if (!intersection$1 && !contains$1(comparison, "string", string$6)) result.push(prefix + string$6);
13231
- if (intersection$1 && contains$1(comparison, "string", string$6)) result.push(prefix + string$6);
13415
+ if (!intersection$1 && !contains(comparison, "string", string$6)) result.push(prefix + string$6);
13416
+ if (intersection$1 && contains(comparison, "string", string$6)) result.push(prefix + string$6);
13232
13417
  }
13233
13418
  return result;
13234
13419
  }
@@ -13243,7 +13428,7 @@ var require_to_regex_range$1 = __commonJS$2({ "../../node_modules/.pnpm/to-regex
13243
13428
  function compare(a$1, b$1) {
13244
13429
  return a$1 > b$1 ? 1 : b$1 > a$1 ? -1 : 0;
13245
13430
  }
13246
- function contains$1(arr, key$1, val) {
13431
+ function contains(arr, key$1, val) {
13247
13432
  return arr.some((ele) => ele[key$1] === val);
13248
13433
  }
13249
13434
  function countNines(min, len) {
@@ -13297,7 +13482,7 @@ var require_fill_range$1 = __commonJS$2({ "../../node_modules/.pnpm/fill-range@7
13297
13482
  const isValidValue = (value) => {
13298
13483
  return typeof value === "number" || typeof value === "string" && value !== "";
13299
13484
  };
13300
- const isNumber$1 = (num) => Number.isInteger(+num);
13485
+ const isNumber = (num) => Number.isInteger(+num);
13301
13486
  const zeros = (input) => {
13302
13487
  let value = `${input}`;
13303
13488
  let index$1 = -1;
@@ -13410,7 +13595,7 @@ var require_fill_range$1 = __commonJS$2({ "../../node_modules/.pnpm/fill-range@7
13410
13595
  return range;
13411
13596
  };
13412
13597
  const fillLetters = (start, end, step = 1, options$1 = {}) => {
13413
- if (!isNumber$1(start) && start.length > 1 || !isNumber$1(end) && end.length > 1) return invalidRange(start, end, options$1);
13598
+ if (!isNumber(start) && start.length > 1 || !isNumber(end) && end.length > 1) return invalidRange(start, end, options$1);
13414
13599
  let format$2 = options$1.transform || ((val) => String.fromCharCode(val));
13415
13600
  let a$1 = `${start}`.charCodeAt(0);
13416
13601
  let b$1 = `${end}`.charCodeAt(0);
@@ -13439,11 +13624,11 @@ var require_fill_range$1 = __commonJS$2({ "../../node_modules/.pnpm/fill-range@7
13439
13624
  let opts = { ...options$1 };
13440
13625
  if (opts.capture === true) opts.wrap = true;
13441
13626
  step = step || opts.step || 1;
13442
- if (!isNumber$1(step)) {
13627
+ if (!isNumber(step)) {
13443
13628
  if (step != null && !isObject$3(step)) return invalidStep(step, opts);
13444
13629
  return fill$3(start, end, 1, step);
13445
13630
  }
13446
- if (isNumber$1(start) && isNumber$1(end)) return fillNumbers(start, end, step, opts);
13631
+ if (isNumber(start) && isNumber(end)) return fillNumbers(start, end, step, opts);
13447
13632
  return fillLetters(start, end, Math.max(Math.abs(step), 1), opts);
13448
13633
  };
13449
13634
  module.exports = fill$3;
@@ -14038,7 +14223,7 @@ var require_braces$1 = __commonJS$2({ "../../node_modules/.pnpm/braces@3.0.3/nod
14038
14223
  //#endregion
14039
14224
  //#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.js
14040
14225
  var require_constants$2 = __commonJS$2({ "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.js"(exports, module) {
14041
- const path$11 = __require$1("path");
14226
+ const path$10 = __require$1("path");
14042
14227
  const WIN_SLASH = "\\\\/";
14043
14228
  const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
14044
14229
  /**
@@ -14169,7 +14354,7 @@ var require_constants$2 = __commonJS$2({ "../../node_modules/.pnpm/picomatch@2.3
14169
14354
  CHAR_UNDERSCORE: 95,
14170
14355
  CHAR_VERTICAL_LINE: 124,
14171
14356
  CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
14172
- SEP: path$11.sep,
14357
+ SEP: path$10.sep,
14173
14358
  extglobChars(chars$1) {
14174
14359
  return {
14175
14360
  "!": {
@@ -14208,7 +14393,7 @@ var require_constants$2 = __commonJS$2({ "../../node_modules/.pnpm/picomatch@2.3
14208
14393
  //#endregion
14209
14394
  //#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js
14210
14395
  var require_utils$3 = __commonJS$2({ "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js"(exports) {
14211
- const path$10 = __require$1("path");
14396
+ const path$9 = __require$1("path");
14212
14397
  const win32 = process.platform === "win32";
14213
14398
  const { REGEX_BACKSLASH, REGEX_REMOVE_BACKSLASH, REGEX_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_GLOBAL } = require_constants$2();
14214
14399
  exports.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
@@ -14228,7 +14413,7 @@ var require_utils$3 = __commonJS$2({ "../../node_modules/.pnpm/picomatch@2.3.1/n
14228
14413
  };
14229
14414
  exports.isWindows = (options$1) => {
14230
14415
  if (options$1 && typeof options$1.windows === "boolean") return options$1.windows;
14231
- return win32 === true || path$10.sep === "\\";
14416
+ return win32 === true || path$9.sep === "\\";
14232
14417
  };
14233
14418
  exports.escapeLast = (input, char, lastIdx) => {
14234
14419
  const idx = input.lastIndexOf(char, lastIdx);
@@ -14293,7 +14478,7 @@ var require_scan$1 = __commonJS$2({ "../../node_modules/.pnpm/picomatch@2.3.1/no
14293
14478
  let lastIndex = 0;
14294
14479
  let isBrace = false;
14295
14480
  let isBracket = false;
14296
- let isGlob$2 = false;
14481
+ let isGlob$1 = false;
14297
14482
  let isExtglob$1 = false;
14298
14483
  let isGlobstar = false;
14299
14484
  let braceEscaped = false;
@@ -14338,14 +14523,14 @@ var require_scan$1 = __commonJS$2({ "../../node_modules/.pnpm/picomatch@2.3.1/no
14338
14523
  }
14339
14524
  if (braceEscaped !== true && code$1 === CHAR_DOT && (code$1 = advance()) === CHAR_DOT) {
14340
14525
  isBrace = token$1.isBrace = true;
14341
- isGlob$2 = token$1.isGlob = true;
14526
+ isGlob$1 = token$1.isGlob = true;
14342
14527
  finished$1 = true;
14343
14528
  if (scanToEnd === true) continue;
14344
14529
  break;
14345
14530
  }
14346
14531
  if (braceEscaped !== true && code$1 === CHAR_COMMA) {
14347
14532
  isBrace = token$1.isBrace = true;
14348
- isGlob$2 = token$1.isGlob = true;
14533
+ isGlob$1 = token$1.isGlob = true;
14349
14534
  finished$1 = true;
14350
14535
  if (scanToEnd === true) continue;
14351
14536
  break;
@@ -14382,7 +14567,7 @@ var require_scan$1 = __commonJS$2({ "../../node_modules/.pnpm/picomatch@2.3.1/no
14382
14567
  if (opts.noext !== true) {
14383
14568
  const isExtglobChar = code$1 === CHAR_PLUS || code$1 === CHAR_AT || code$1 === CHAR_ASTERISK || code$1 === CHAR_QUESTION_MARK || code$1 === CHAR_EXCLAMATION_MARK;
14384
14569
  if (isExtglobChar === true && peek$1() === CHAR_LEFT_PARENTHESES) {
14385
- isGlob$2 = token$1.isGlob = true;
14570
+ isGlob$1 = token$1.isGlob = true;
14386
14571
  isExtglob$1 = token$1.isExtglob = true;
14387
14572
  finished$1 = true;
14388
14573
  if (code$1 === CHAR_EXCLAMATION_MARK && index$1 === start) negatedExtglob = true;
@@ -14394,7 +14579,7 @@ var require_scan$1 = __commonJS$2({ "../../node_modules/.pnpm/picomatch@2.3.1/no
14394
14579
  continue;
14395
14580
  }
14396
14581
  if (code$1 === CHAR_RIGHT_PARENTHESES) {
14397
- isGlob$2 = token$1.isGlob = true;
14582
+ isGlob$1 = token$1.isGlob = true;
14398
14583
  finished$1 = true;
14399
14584
  break;
14400
14585
  }
@@ -14406,13 +14591,13 @@ var require_scan$1 = __commonJS$2({ "../../node_modules/.pnpm/picomatch@2.3.1/no
14406
14591
  }
14407
14592
  if (code$1 === CHAR_ASTERISK) {
14408
14593
  if (prev === CHAR_ASTERISK) isGlobstar = token$1.isGlobstar = true;
14409
- isGlob$2 = token$1.isGlob = true;
14594
+ isGlob$1 = token$1.isGlob = true;
14410
14595
  finished$1 = true;
14411
14596
  if (scanToEnd === true) continue;
14412
14597
  break;
14413
14598
  }
14414
14599
  if (code$1 === CHAR_QUESTION_MARK) {
14415
- isGlob$2 = token$1.isGlob = true;
14600
+ isGlob$1 = token$1.isGlob = true;
14416
14601
  finished$1 = true;
14417
14602
  if (scanToEnd === true) continue;
14418
14603
  break;
@@ -14426,7 +14611,7 @@ var require_scan$1 = __commonJS$2({ "../../node_modules/.pnpm/picomatch@2.3.1/no
14426
14611
  }
14427
14612
  if (next === CHAR_RIGHT_SQUARE_BRACKET) {
14428
14613
  isBracket = token$1.isBracket = true;
14429
- isGlob$2 = token$1.isGlob = true;
14614
+ isGlob$1 = token$1.isGlob = true;
14430
14615
  finished$1 = true;
14431
14616
  break;
14432
14617
  }
@@ -14440,7 +14625,7 @@ var require_scan$1 = __commonJS$2({ "../../node_modules/.pnpm/picomatch@2.3.1/no
14440
14625
  continue;
14441
14626
  }
14442
14627
  if (opts.noparen !== true && code$1 === CHAR_LEFT_PARENTHESES) {
14443
- isGlob$2 = token$1.isGlob = true;
14628
+ isGlob$1 = token$1.isGlob = true;
14444
14629
  if (scanToEnd === true) {
14445
14630
  while (eos() !== true && (code$1 = advance())) {
14446
14631
  if (code$1 === CHAR_LEFT_PARENTHESES) {
@@ -14457,7 +14642,7 @@ var require_scan$1 = __commonJS$2({ "../../node_modules/.pnpm/picomatch@2.3.1/no
14457
14642
  }
14458
14643
  break;
14459
14644
  }
14460
- if (isGlob$2 === true) {
14645
+ if (isGlob$1 === true) {
14461
14646
  finished$1 = true;
14462
14647
  if (scanToEnd === true) continue;
14463
14648
  break;
@@ -14465,7 +14650,7 @@ var require_scan$1 = __commonJS$2({ "../../node_modules/.pnpm/picomatch@2.3.1/no
14465
14650
  }
14466
14651
  if (opts.noext === true) {
14467
14652
  isExtglob$1 = false;
14468
- isGlob$2 = false;
14653
+ isGlob$1 = false;
14469
14654
  }
14470
14655
  let base = str;
14471
14656
  let prefix = "";
@@ -14475,10 +14660,10 @@ var require_scan$1 = __commonJS$2({ "../../node_modules/.pnpm/picomatch@2.3.1/no
14475
14660
  str = str.slice(start);
14476
14661
  lastIndex -= start;
14477
14662
  }
14478
- if (base && isGlob$2 === true && lastIndex > 0) {
14663
+ if (base && isGlob$1 === true && lastIndex > 0) {
14479
14664
  base = str.slice(0, lastIndex);
14480
14665
  glob = str.slice(lastIndex);
14481
- } else if (isGlob$2 === true) {
14666
+ } else if (isGlob$1 === true) {
14482
14667
  base = "";
14483
14668
  glob = str;
14484
14669
  } else base = str;
@@ -14497,7 +14682,7 @@ var require_scan$1 = __commonJS$2({ "../../node_modules/.pnpm/picomatch@2.3.1/no
14497
14682
  glob,
14498
14683
  isBrace,
14499
14684
  isBracket,
14500
- isGlob: isGlob$2,
14685
+ isGlob: isGlob$1,
14501
14686
  isExtglob: isExtglob$1,
14502
14687
  isGlobstar,
14503
14688
  negated,
@@ -15413,7 +15598,7 @@ var require_parse$1 = __commonJS$2({ "../../node_modules/.pnpm/picomatch@2.3.1/n
15413
15598
  //#endregion
15414
15599
  //#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js
15415
15600
  var require_picomatch$2 = __commonJS$2({ "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js"(exports, module) {
15416
- const path$9 = __require$1("path");
15601
+ const path$8 = __require$1("path");
15417
15602
  const scan = require_scan$1();
15418
15603
  const parse$4 = require_parse$1();
15419
15604
  const utils$12 = require_utils$3();
@@ -15553,7 +15738,7 @@ var require_picomatch$2 = __commonJS$2({ "../../node_modules/.pnpm/picomatch@2.3
15553
15738
  */
15554
15739
  picomatch$1.matchBase = (input, glob, options$1, posix = utils$12.isWindows(options$1)) => {
15555
15740
  const regex$1 = glob instanceof RegExp ? glob : picomatch$1.makeRe(glob, options$1);
15556
- return regex$1.test(path$9.basename(input));
15741
+ return regex$1.test(path$8.basename(input));
15557
15742
  };
15558
15743
  /**
15559
15744
  * Returns true if **any** of the given glob `patterns` match the specified `string`.
@@ -15740,7 +15925,7 @@ var require_micromatch$1 = __commonJS$2({ "../../node_modules/.pnpm/micromatch@4
15740
15925
  * @summary false
15741
15926
  * @api public
15742
15927
  */
15743
- const micromatch$3 = (list$1, patterns, options$1) => {
15928
+ const micromatch$2 = (list$1, patterns, options$1) => {
15744
15929
  patterns = [].concat(patterns);
15745
15930
  list$1 = [].concat(list$1);
15746
15931
  let omit$2 = /* @__PURE__ */ new Set();
@@ -15780,7 +15965,7 @@ var require_micromatch$1 = __commonJS$2({ "../../node_modules/.pnpm/micromatch@4
15780
15965
  /**
15781
15966
  * Backwards compatibility
15782
15967
  */
15783
- micromatch$3.match = micromatch$3;
15968
+ micromatch$2.match = micromatch$2;
15784
15969
  /**
15785
15970
  * Returns a matcher function from the given glob `pattern` and `options`.
15786
15971
  * The returned function takes a string to match as its only argument and returns
@@ -15799,7 +15984,7 @@ var require_micromatch$1 = __commonJS$2({ "../../node_modules/.pnpm/micromatch@4
15799
15984
  * @return {Function} Returns a matcher function.
15800
15985
  * @api public
15801
15986
  */
15802
- micromatch$3.matcher = (pattern$1, options$1) => picomatch(pattern$1, options$1);
15987
+ micromatch$2.matcher = (pattern$1, options$1) => picomatch(pattern$1, options$1);
15803
15988
  /**
15804
15989
  * Returns true if **any** of the given glob `patterns` match the specified `string`.
15805
15990
  *
@@ -15816,11 +16001,11 @@ var require_micromatch$1 = __commonJS$2({ "../../node_modules/.pnpm/micromatch@4
15816
16001
  * @return {Boolean} Returns true if any patterns match `str`
15817
16002
  * @api public
15818
16003
  */
15819
- micromatch$3.isMatch = (str, patterns, options$1) => picomatch(patterns, options$1)(str);
16004
+ micromatch$2.isMatch = (str, patterns, options$1) => picomatch(patterns, options$1)(str);
15820
16005
  /**
15821
16006
  * Backwards compatibility
15822
16007
  */
15823
- micromatch$3.any = micromatch$3.isMatch;
16008
+ micromatch$2.any = micromatch$2.isMatch;
15824
16009
  /**
15825
16010
  * Returns a list of strings that _**do not match any**_ of the given `patterns`.
15826
16011
  *
@@ -15837,7 +16022,7 @@ var require_micromatch$1 = __commonJS$2({ "../../node_modules/.pnpm/micromatch@4
15837
16022
  * @return {Array} Returns an array of strings that **do not match** the given patterns.
15838
16023
  * @api public
15839
16024
  */
15840
- micromatch$3.not = (list$1, patterns, options$1 = {}) => {
16025
+ micromatch$2.not = (list$1, patterns, options$1 = {}) => {
15841
16026
  patterns = [].concat(patterns).map(String);
15842
16027
  let result = /* @__PURE__ */ new Set();
15843
16028
  let items = [];
@@ -15845,7 +16030,7 @@ var require_micromatch$1 = __commonJS$2({ "../../node_modules/.pnpm/micromatch@4
15845
16030
  if (options$1.onResult) options$1.onResult(state);
15846
16031
  items.push(state.output);
15847
16032
  };
15848
- let matches = new Set(micromatch$3(list$1, patterns, {
16033
+ let matches = new Set(micromatch$2(list$1, patterns, {
15849
16034
  ...options$1,
15850
16035
  onResult
15851
16036
  }));
@@ -15871,14 +16056,14 @@ var require_micromatch$1 = __commonJS$2({ "../../node_modules/.pnpm/micromatch@4
15871
16056
  * @return {Boolean} Returns true if any of the patterns matches any part of `str`.
15872
16057
  * @api public
15873
16058
  */
15874
- micromatch$3.contains = (str, pattern$1, options$1) => {
16059
+ micromatch$2.contains = (str, pattern$1, options$1) => {
15875
16060
  if (typeof str !== "string") throw new TypeError(`Expected a string: "${util$2.inspect(str)}"`);
15876
- if (Array.isArray(pattern$1)) return pattern$1.some((p$1) => micromatch$3.contains(str, p$1, options$1));
16061
+ if (Array.isArray(pattern$1)) return pattern$1.some((p$1) => micromatch$2.contains(str, p$1, options$1));
15877
16062
  if (typeof pattern$1 === "string") {
15878
16063
  if (isEmptyString(str) || isEmptyString(pattern$1)) return false;
15879
16064
  if (str.includes(pattern$1) || str.startsWith("./") && str.slice(2).includes(pattern$1)) return true;
15880
16065
  }
15881
- return micromatch$3.isMatch(str, pattern$1, {
16066
+ return micromatch$2.isMatch(str, pattern$1, {
15882
16067
  ...options$1,
15883
16068
  contains: true
15884
16069
  });
@@ -15902,9 +16087,9 @@ var require_micromatch$1 = __commonJS$2({ "../../node_modules/.pnpm/micromatch@4
15902
16087
  * @return {Object} Returns an object with only keys that match the given patterns.
15903
16088
  * @api public
15904
16089
  */
15905
- micromatch$3.matchKeys = (obj, patterns, options$1) => {
16090
+ micromatch$2.matchKeys = (obj, patterns, options$1) => {
15906
16091
  if (!utils$11.isObject(obj)) throw new TypeError("Expected the first argument to be an object");
15907
- let keys = micromatch$3(Object.keys(obj), patterns, options$1);
16092
+ let keys = micromatch$2(Object.keys(obj), patterns, options$1);
15908
16093
  let res = {};
15909
16094
  for (let key$1 of keys) res[key$1] = obj[key$1];
15910
16095
  return res;
@@ -15927,7 +16112,7 @@ var require_micromatch$1 = __commonJS$2({ "../../node_modules/.pnpm/micromatch@4
15927
16112
  * @return {Boolean} Returns true if any `patterns` matches any of the strings in `list`
15928
16113
  * @api public
15929
16114
  */
15930
- micromatch$3.some = (list$1, patterns, options$1) => {
16115
+ micromatch$2.some = (list$1, patterns, options$1) => {
15931
16116
  let items = [].concat(list$1);
15932
16117
  for (let pattern$1 of [].concat(patterns)) {
15933
16118
  let isMatch = picomatch(String(pattern$1), options$1);
@@ -15958,7 +16143,7 @@ var require_micromatch$1 = __commonJS$2({ "../../node_modules/.pnpm/micromatch@4
15958
16143
  * @return {Boolean} Returns true if all `patterns` matches all of the strings in `list`
15959
16144
  * @api public
15960
16145
  */
15961
- micromatch$3.every = (list$1, patterns, options$1) => {
16146
+ micromatch$2.every = (list$1, patterns, options$1) => {
15962
16147
  let items = [].concat(list$1);
15963
16148
  for (let pattern$1 of [].concat(patterns)) {
15964
16149
  let isMatch = picomatch(String(pattern$1), options$1);
@@ -15992,7 +16177,7 @@ var require_micromatch$1 = __commonJS$2({ "../../node_modules/.pnpm/micromatch@4
15992
16177
  * @return {Boolean} Returns true if any patterns match `str`
15993
16178
  * @api public
15994
16179
  */
15995
- micromatch$3.all = (str, patterns, options$1) => {
16180
+ micromatch$2.all = (str, patterns, options$1) => {
15996
16181
  if (typeof str !== "string") throw new TypeError(`Expected a string: "${util$2.inspect(str)}"`);
15997
16182
  return [].concat(patterns).every((p$1) => picomatch(p$1, options$1)(str));
15998
16183
  };
@@ -16014,7 +16199,7 @@ var require_micromatch$1 = __commonJS$2({ "../../node_modules/.pnpm/micromatch@4
16014
16199
  * @return {Array|null} Returns an array of captures if the input matches the glob pattern, otherwise `null`.
16015
16200
  * @api public
16016
16201
  */
16017
- micromatch$3.capture = (glob, input, options$1) => {
16202
+ micromatch$2.capture = (glob, input, options$1) => {
16018
16203
  let posix = utils$11.isWindows(options$1);
16019
16204
  let regex$1 = picomatch.makeRe(String(glob), {
16020
16205
  ...options$1,
@@ -16038,7 +16223,7 @@ var require_micromatch$1 = __commonJS$2({ "../../node_modules/.pnpm/micromatch@4
16038
16223
  * @return {RegExp} Returns a regex created from the given pattern.
16039
16224
  * @api public
16040
16225
  */
16041
- micromatch$3.makeRe = (...args) => picomatch.makeRe(...args);
16226
+ micromatch$2.makeRe = (...args) => picomatch.makeRe(...args);
16042
16227
  /**
16043
16228
  * Scan a glob pattern to separate the pattern into segments. Used
16044
16229
  * by the [split](#split) method.
@@ -16052,7 +16237,7 @@ var require_micromatch$1 = __commonJS$2({ "../../node_modules/.pnpm/micromatch@4
16052
16237
  * @return {Object} Returns an object with
16053
16238
  * @api public
16054
16239
  */
16055
- micromatch$3.scan = (...args) => picomatch.scan(...args);
16240
+ micromatch$2.scan = (...args) => picomatch.scan(...args);
16056
16241
  /**
16057
16242
  * Parse a glob pattern to create the source string for a regular
16058
16243
  * expression.
@@ -16066,7 +16251,7 @@ var require_micromatch$1 = __commonJS$2({ "../../node_modules/.pnpm/micromatch@4
16066
16251
  * @return {Object} Returns an object with useful properties and output to be used as regex source string.
16067
16252
  * @api public
16068
16253
  */
16069
- micromatch$3.parse = (patterns, options$1) => {
16254
+ micromatch$2.parse = (patterns, options$1) => {
16070
16255
  let res = [];
16071
16256
  for (let pattern$1 of [].concat(patterns || [])) for (let str of braces(String(pattern$1), options$1)) res.push(picomatch.parse(str, options$1));
16072
16257
  return res;
@@ -16087,7 +16272,7 @@ var require_micromatch$1 = __commonJS$2({ "../../node_modules/.pnpm/micromatch@4
16087
16272
  * @return {Array}
16088
16273
  * @api public
16089
16274
  */
16090
- micromatch$3.braces = (pattern$1, options$1) => {
16275
+ micromatch$2.braces = (pattern$1, options$1) => {
16091
16276
  if (typeof pattern$1 !== "string") throw new TypeError("Expected a string");
16092
16277
  if (options$1 && options$1.nobrace === true || !hasBraces(pattern$1)) return [pattern$1];
16093
16278
  return braces(pattern$1, options$1);
@@ -16095,9 +16280,9 @@ var require_micromatch$1 = __commonJS$2({ "../../node_modules/.pnpm/micromatch@4
16095
16280
  /**
16096
16281
  * Expand braces
16097
16282
  */
16098
- micromatch$3.braceExpand = (pattern$1, options$1) => {
16283
+ micromatch$2.braceExpand = (pattern$1, options$1) => {
16099
16284
  if (typeof pattern$1 !== "string") throw new TypeError("Expected a string");
16100
- return micromatch$3.braces(pattern$1, {
16285
+ return micromatch$2.braces(pattern$1, {
16101
16286
  ...options$1,
16102
16287
  expand: true
16103
16288
  });
@@ -16105,8 +16290,8 @@ var require_micromatch$1 = __commonJS$2({ "../../node_modules/.pnpm/micromatch@4
16105
16290
  /**
16106
16291
  * Expose micromatch
16107
16292
  */
16108
- micromatch$3.hasBraces = hasBraces;
16109
- module.exports = micromatch$3;
16293
+ micromatch$2.hasBraces = hasBraces;
16294
+ module.exports = micromatch$2;
16110
16295
  } });
16111
16296
 
16112
16297
  //#endregion
@@ -16114,9 +16299,9 @@ var require_micromatch$1 = __commonJS$2({ "../../node_modules/.pnpm/micromatch@4
16114
16299
  var require_pattern$1 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/pattern.js"(exports) {
16115
16300
  Object.defineProperty(exports, "__esModule", { value: true });
16116
16301
  exports.isAbsolute = exports.partitionAbsoluteAndRelative = exports.removeDuplicateSlashes = exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0;
16117
- const path$8 = __require$1("path");
16302
+ const path$7 = __require$1("path");
16118
16303
  const globParent = require_glob_parent$1();
16119
- const micromatch$2 = require_micromatch$1();
16304
+ const micromatch$1 = require_micromatch$1();
16120
16305
  const GLOBSTAR = "**";
16121
16306
  const ESCAPE_SYMBOL = "\\";
16122
16307
  const COMMON_GLOB_SYMBOLS_RE = /[*?]|^!/;
@@ -16222,7 +16407,7 @@ var require_pattern$1 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3
16222
16407
  }
16223
16408
  exports.endsWithSlashGlobStar = endsWithSlashGlobStar;
16224
16409
  function isAffectDepthOfReadingPattern(pattern$1) {
16225
- const basename$1 = path$8.basename(pattern$1);
16410
+ const basename$1 = path$7.basename(pattern$1);
16226
16411
  return endsWithSlashGlobStar(pattern$1) || isStaticPattern(basename$1);
16227
16412
  }
16228
16413
  exports.isAffectDepthOfReadingPattern = isAffectDepthOfReadingPattern;
@@ -16233,7 +16418,7 @@ var require_pattern$1 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3
16233
16418
  }
16234
16419
  exports.expandPatternsWithBraceExpansion = expandPatternsWithBraceExpansion;
16235
16420
  function expandBraceExpansion(pattern$1) {
16236
- const patterns = micromatch$2.braces(pattern$1, {
16421
+ const patterns = micromatch$1.braces(pattern$1, {
16237
16422
  expand: true,
16238
16423
  nodupes: true,
16239
16424
  keepEscaping: true
@@ -16250,7 +16435,7 @@ var require_pattern$1 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3
16250
16435
  }
16251
16436
  exports.expandBraceExpansion = expandBraceExpansion;
16252
16437
  function getPatternParts(pattern$1, options$1) {
16253
- let { parts } = micromatch$2.scan(pattern$1, Object.assign(Object.assign({}, options$1), { parts: true }));
16438
+ let { parts } = micromatch$1.scan(pattern$1, Object.assign(Object.assign({}, options$1), { parts: true }));
16254
16439
  /**
16255
16440
  * The scan method returns an empty array in some cases.
16256
16441
  * See micromatch/picomatch#58 for more details.
@@ -16268,7 +16453,7 @@ var require_pattern$1 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3
16268
16453
  }
16269
16454
  exports.getPatternParts = getPatternParts;
16270
16455
  function makeRe(pattern$1, options$1) {
16271
- return micromatch$2.makeRe(pattern$1, options$1);
16456
+ return micromatch$1.makeRe(pattern$1, options$1);
16272
16457
  }
16273
16458
  exports.makeRe = makeRe;
16274
16459
  function convertPatternsToRe(patterns, options$1) {
@@ -16296,7 +16481,7 @@ var require_pattern$1 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3
16296
16481
  }
16297
16482
  exports.partitionAbsoluteAndRelative = partitionAbsoluteAndRelative;
16298
16483
  function isAbsolute(pattern$1) {
16299
- return path$8.isAbsolute(pattern$1);
16484
+ return path$7.isAbsolute(pattern$1);
16300
16485
  }
16301
16486
  exports.isAbsolute = isAbsolute;
16302
16487
  } });
@@ -16430,8 +16615,8 @@ var require_utils$2 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3/n
16430
16615
  exports.errno = errno;
16431
16616
  const fs$8 = require_fs$4();
16432
16617
  exports.fs = fs$8;
16433
- const path$7 = require_path$1();
16434
- exports.path = path$7;
16618
+ const path$6 = require_path$1();
16619
+ exports.path = path$6;
16435
16620
  const pattern = require_pattern$1();
16436
16621
  exports.pattern = pattern;
16437
16622
  const stream = require_stream$4();
@@ -16543,8 +16728,8 @@ var require_tasks$1 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3/n
16543
16728
  var require_async$6 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.js"(exports) {
16544
16729
  Object.defineProperty(exports, "__esModule", { value: true });
16545
16730
  exports.read = void 0;
16546
- function read$4(path$13, settings, callback) {
16547
- settings.fs.lstat(path$13, (lstatError, lstat) => {
16731
+ function read$4(path$12, settings, callback) {
16732
+ settings.fs.lstat(path$12, (lstatError, lstat) => {
16548
16733
  if (lstatError !== null) {
16549
16734
  callFailureCallback$2(callback, lstatError);
16550
16735
  return;
@@ -16553,7 +16738,7 @@ var require_async$6 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.stat@
16553
16738
  callSuccessCallback$2(callback, lstat);
16554
16739
  return;
16555
16740
  }
16556
- settings.fs.stat(path$13, (statError, stat$1) => {
16741
+ settings.fs.stat(path$12, (statError, stat$1) => {
16557
16742
  if (statError !== null) {
16558
16743
  if (settings.throwErrorOnBrokenSymbolicLink) {
16559
16744
  callFailureCallback$2(callback, statError);
@@ -16581,11 +16766,11 @@ var require_async$6 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.stat@
16581
16766
  var require_sync$6 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.js"(exports) {
16582
16767
  Object.defineProperty(exports, "__esModule", { value: true });
16583
16768
  exports.read = void 0;
16584
- function read$3(path$13, settings) {
16585
- const lstat = settings.fs.lstatSync(path$13);
16769
+ function read$3(path$12, settings) {
16770
+ const lstat = settings.fs.lstatSync(path$12);
16586
16771
  if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) return lstat;
16587
16772
  try {
16588
- const stat$1 = settings.fs.statSync(path$13);
16773
+ const stat$1 = settings.fs.statSync(path$12);
16589
16774
  if (settings.markSymbolicLink) stat$1.isSymbolicLink = () => true;
16590
16775
  return stat$1;
16591
16776
  } catch (error$41) {
@@ -16644,17 +16829,17 @@ var require_out$4 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.stat@2.
16644
16829
  const sync$2 = require_sync$6();
16645
16830
  const settings_1$3 = require_settings$4();
16646
16831
  exports.Settings = settings_1$3.default;
16647
- function stat(path$13, optionsOrSettingsOrCallback, callback) {
16832
+ function stat(path$12, optionsOrSettingsOrCallback, callback) {
16648
16833
  if (typeof optionsOrSettingsOrCallback === "function") {
16649
- async$1.read(path$13, getSettings$2(), optionsOrSettingsOrCallback);
16834
+ async$1.read(path$12, getSettings$2(), optionsOrSettingsOrCallback);
16650
16835
  return;
16651
16836
  }
16652
- async$1.read(path$13, getSettings$2(optionsOrSettingsOrCallback), callback);
16837
+ async$1.read(path$12, getSettings$2(optionsOrSettingsOrCallback), callback);
16653
16838
  }
16654
16839
  exports.stat = stat;
16655
- function statSync$2(path$13, optionsOrSettings) {
16840
+ function statSync$2(path$12, optionsOrSettings) {
16656
16841
  const settings = getSettings$2(optionsOrSettings);
16657
- return sync$2.read(path$13, settings);
16842
+ return sync$2.read(path$12, settings);
16658
16843
  }
16659
16844
  exports.statSync = statSync$2;
16660
16845
  function getSettings$2(settingsOrOptions = {}) {
@@ -16742,8 +16927,8 @@ var require_fs$2 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.scandir@
16742
16927
  Object.defineProperty(exports, "__esModule", { value: true });
16743
16928
  exports.createDirentFromStats = void 0;
16744
16929
  var DirentFromStats = class {
16745
- constructor(name$2, stats) {
16746
- this.name = name$2;
16930
+ constructor(name$1, stats) {
16931
+ this.name = name$1;
16747
16932
  this.isBlockDevice = stats.isBlockDevice.bind(stats);
16748
16933
  this.isCharacterDevice = stats.isCharacterDevice.bind(stats);
16749
16934
  this.isDirectory = stats.isDirectory.bind(stats);
@@ -16753,8 +16938,8 @@ var require_fs$2 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.scandir@
16753
16938
  this.isSymbolicLink = stats.isSymbolicLink.bind(stats);
16754
16939
  }
16755
16940
  };
16756
- function createDirentFromStats(name$2, stats) {
16757
- return new DirentFromStats(name$2, stats);
16941
+ function createDirentFromStats(name$1, stats) {
16942
+ return new DirentFromStats(name$1, stats);
16758
16943
  }
16759
16944
  exports.createDirentFromStats = createDirentFromStats;
16760
16945
  } });
@@ -16853,18 +17038,18 @@ var require_async$5 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.scand
16853
17038
  callFailureCallback$1(callback, readdirError);
16854
17039
  return;
16855
17040
  }
16856
- const tasks = names.map((name$2) => {
16857
- const path$13 = common$4.joinPathSegments(directory, name$2, settings.pathSegmentSeparator);
17041
+ const tasks = names.map((name$1) => {
17042
+ const path$12 = common$4.joinPathSegments(directory, name$1, settings.pathSegmentSeparator);
16858
17043
  return (done) => {
16859
- fsStat$5.stat(path$13, settings.fsStatSettings, (error$41, stats) => {
17044
+ fsStat$5.stat(path$12, settings.fsStatSettings, (error$41, stats) => {
16860
17045
  if (error$41 !== null) {
16861
17046
  done(error$41);
16862
17047
  return;
16863
17048
  }
16864
17049
  const entry = {
16865
- name: name$2,
16866
- path: path$13,
16867
- dirent: utils$9.fs.createDirentFromStats(name$2, stats)
17050
+ name: name$1,
17051
+ path: path$12,
17052
+ dirent: utils$9.fs.createDirentFromStats(name$1, stats)
16868
17053
  };
16869
17054
  if (settings.stats) entry.stats = stats;
16870
17055
  done(null, entry);
@@ -16923,13 +17108,13 @@ var require_sync$5 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.scandi
16923
17108
  exports.readdirWithFileTypes = readdirWithFileTypes;
16924
17109
  function readdir(directory, settings) {
16925
17110
  const names = settings.fs.readdirSync(directory);
16926
- return names.map((name$2) => {
16927
- const entryPath = common$3.joinPathSegments(directory, name$2, settings.pathSegmentSeparator);
17111
+ return names.map((name$1) => {
17112
+ const entryPath = common$3.joinPathSegments(directory, name$1, settings.pathSegmentSeparator);
16928
17113
  const stats = fsStat$4.statSync(entryPath, settings.fsStatSettings);
16929
17114
  const entry = {
16930
- name: name$2,
17115
+ name: name$1,
16931
17116
  path: entryPath,
16932
- dirent: utils$8.fs.createDirentFromStats(name$2, stats)
17117
+ dirent: utils$8.fs.createDirentFromStats(name$1, stats)
16933
17118
  };
16934
17119
  if (settings.stats) entry.stats = stats;
16935
17120
  return entry;
@@ -16963,7 +17148,7 @@ var require_fs$1 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.scandir@
16963
17148
  //#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.js
16964
17149
  var require_settings$3 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.js"(exports) {
16965
17150
  Object.defineProperty(exports, "__esModule", { value: true });
16966
- const path$6 = __require$1("path");
17151
+ const path$5 = __require$1("path");
16967
17152
  const fsStat$3 = require_out$4();
16968
17153
  const fs$3 = require_fs$1();
16969
17154
  var Settings$2 = class {
@@ -16971,7 +17156,7 @@ var require_settings$3 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.sc
16971
17156
  this._options = _options;
16972
17157
  this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
16973
17158
  this.fs = fs$3.createFileSystemAdapter(this._options.fs);
16974
- this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$6.sep);
17159
+ this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$5.sep);
16975
17160
  this.stats = this._getValue(this._options.stats, false);
16976
17161
  this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
16977
17162
  this.fsStatSettings = new fsStat$3.Settings({
@@ -16996,17 +17181,17 @@ var require_out$3 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.scandir
16996
17181
  const sync$1 = require_sync$5();
16997
17182
  const settings_1$2 = require_settings$3();
16998
17183
  exports.Settings = settings_1$2.default;
16999
- function scandir(path$13, optionsOrSettingsOrCallback, callback) {
17184
+ function scandir(path$12, optionsOrSettingsOrCallback, callback) {
17000
17185
  if (typeof optionsOrSettingsOrCallback === "function") {
17001
- async.read(path$13, getSettings$1(), optionsOrSettingsOrCallback);
17186
+ async.read(path$12, getSettings$1(), optionsOrSettingsOrCallback);
17002
17187
  return;
17003
17188
  }
17004
- async.read(path$13, getSettings$1(optionsOrSettingsOrCallback), callback);
17189
+ async.read(path$12, getSettings$1(optionsOrSettingsOrCallback), callback);
17005
17190
  }
17006
17191
  exports.scandir = scandir;
17007
- function scandirSync(path$13, optionsOrSettings) {
17192
+ function scandirSync(path$12, optionsOrSettings) {
17008
17193
  const settings = getSettings$1(optionsOrSettings);
17009
- return sync$1.read(path$13, settings);
17194
+ return sync$1.read(path$12, settings);
17010
17195
  }
17011
17196
  exports.scandirSync = scandirSync;
17012
17197
  function getSettings$1(settingsOrOptions = {}) {
@@ -17556,7 +17741,7 @@ var require_sync$3 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.walk@1
17556
17741
  //#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.js
17557
17742
  var require_settings$2 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.js"(exports) {
17558
17743
  Object.defineProperty(exports, "__esModule", { value: true });
17559
- const path$5 = __require$1("path");
17744
+ const path$4 = __require$1("path");
17560
17745
  const fsScandir = require_out$3();
17561
17746
  var Settings$1 = class {
17562
17747
  constructor(_options = {}) {
@@ -17566,7 +17751,7 @@ var require_settings$2 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.wa
17566
17751
  this.deepFilter = this._getValue(this._options.deepFilter, null);
17567
17752
  this.entryFilter = this._getValue(this._options.entryFilter, null);
17568
17753
  this.errorFilter = this._getValue(this._options.errorFilter, null);
17569
- this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$5.sep);
17754
+ this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$4.sep);
17570
17755
  this.fsScandirSettings = new fsScandir.Settings({
17571
17756
  followSymbolicLinks: this._options.followSymbolicLinks,
17572
17757
  fs: this._options.fs,
@@ -17622,7 +17807,7 @@ var require_out$2 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.walk@1.
17622
17807
  //#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/reader.js
17623
17808
  var require_reader$1 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/reader.js"(exports) {
17624
17809
  Object.defineProperty(exports, "__esModule", { value: true });
17625
- const path$4 = __require$1("path");
17810
+ const path$3 = __require$1("path");
17626
17811
  const fsStat$2 = require_out$4();
17627
17812
  const utils$7 = require_utils$2();
17628
17813
  var Reader = class {
@@ -17635,7 +17820,7 @@ var require_reader$1 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3/
17635
17820
  });
17636
17821
  }
17637
17822
  _getFullEntryPath(filepath) {
17638
- return path$4.resolve(this._settings.cwd, filepath);
17823
+ return path$3.resolve(this._settings.cwd, filepath);
17639
17824
  }
17640
17825
  _makeEntry(stats, pattern$1) {
17641
17826
  const entry = {
@@ -17986,7 +18171,7 @@ var require_entry$1 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3/n
17986
18171
  //#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/provider.js
17987
18172
  var require_provider$1 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/provider.js"(exports) {
17988
18173
  Object.defineProperty(exports, "__esModule", { value: true });
17989
- const path$3 = __require$1("path");
18174
+ const path$2 = __require$1("path");
17990
18175
  const deep_1 = require_deep$1();
17991
18176
  const entry_1 = require_entry$2();
17992
18177
  const error_1 = require_error$1();
@@ -18000,7 +18185,7 @@ var require_provider$1 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.
18000
18185
  this.entryTransformer = new entry_2.default(this._settings);
18001
18186
  }
18002
18187
  _getRootDirectory(task) {
18003
- return path$3.resolve(this._settings.cwd, task.base);
18188
+ return path$2.resolve(this._settings.cwd, task.base);
18004
18189
  }
18005
18190
  _getReaderOptions(task) {
18006
18191
  const basePath = task.base === "." ? "" : task.base;
@@ -18356,10 +18541,10 @@ const TEN_MEGABYTES_IN_BYTES = 10 * 1024 * 1024;
18356
18541
 
18357
18542
  //#endregion
18358
18543
  //#region ../../node_modules/.pnpm/slash@5.1.0/node_modules/slash/index.js
18359
- function slash$1(path$13) {
18360
- const isExtendedLengthPath = path$13.startsWith("\\\\?\\");
18361
- if (isExtendedLengthPath) return path$13;
18362
- return path$13.replace(/\\/g, "/");
18544
+ function slash$1(path$12) {
18545
+ const isExtendedLengthPath = path$12.startsWith("\\\\?\\");
18546
+ if (isExtendedLengthPath) return path$12;
18547
+ return path$12.replace(/\\/g, "/");
18363
18548
  }
18364
18549
 
18365
18550
  //#endregion
@@ -18403,14 +18588,14 @@ const getIsIgnoredPredicate = (files$1, cwd) => {
18403
18588
  return fileOrDirectory ? ignores.ignores(slash$1(fileOrDirectory)) : false;
18404
18589
  };
18405
18590
  };
18406
- const normalizeOptions$3 = (options$1 = {}) => ({
18591
+ const normalizeOptions$2 = (options$1 = {}) => ({
18407
18592
  cwd: toPath$1(options$1.cwd) ?? process$1.cwd(),
18408
18593
  suppressErrors: Boolean(options$1.suppressErrors),
18409
18594
  deep: typeof options$1.deep === "number" ? options$1.deep : Number.POSITIVE_INFINITY,
18410
18595
  ignore: [...options$1.ignore ?? [], ...defaultIgnoredDirectories]
18411
18596
  });
18412
18597
  const isIgnoredByIgnoreFiles = async (patterns, options$1) => {
18413
- const { cwd, suppressErrors, deep, ignore } = normalizeOptions$3(options$1);
18598
+ const { cwd, suppressErrors, deep, ignore } = normalizeOptions$2(options$1);
18414
18599
  const paths = await (0, import_out$1.default)(patterns, {
18415
18600
  cwd,
18416
18601
  suppressErrors,
@@ -18425,7 +18610,7 @@ const isIgnoredByIgnoreFiles = async (patterns, options$1) => {
18425
18610
  return getIsIgnoredPredicate(files$1, cwd);
18426
18611
  };
18427
18612
  const isIgnoredByIgnoreFilesSync = (patterns, options$1) => {
18428
- const { cwd, suppressErrors, deep, ignore } = normalizeOptions$3(options$1);
18613
+ const { cwd, suppressErrors, deep, ignore } = normalizeOptions$2(options$1);
18429
18614
  const paths = import_out$1.default.sync(patterns, {
18430
18615
  cwd,
18431
18616
  suppressErrors,
@@ -18447,8 +18632,8 @@ const assertPatternsInput = (patterns) => {
18447
18632
  if (patterns.some((pattern$1) => typeof pattern$1 !== "string")) throw new TypeError("Patterns must be a string or an array of strings");
18448
18633
  };
18449
18634
  const normalizePathForDirectoryGlob = (filePath, cwd) => {
18450
- const path$13 = isNegativePattern(filePath) ? filePath.slice(1) : filePath;
18451
- return path.isAbsolute(path$13) ? path$13 : path.join(cwd, path$13);
18635
+ const path$12 = isNegativePattern(filePath) ? filePath.slice(1) : filePath;
18636
+ return path.isAbsolute(path$12) ? path$12 : path.join(cwd, path$12);
18452
18637
  };
18453
18638
  const getDirectoryGlob = ({ directoryPath, files: files$1, extensions }) => {
18454
18639
  const extensionGlob = extensions?.length > 0 ? `.${extensions.length > 1 ? `{${extensions.join(",")}}` : extensions[0]}` : "";
@@ -18482,7 +18667,7 @@ const checkCwdOption = (cwd) => {
18482
18667
  }
18483
18668
  if (!stat$1.isDirectory()) throw new Error("The `cwd` option must be a path to a directory");
18484
18669
  };
18485
- const normalizeOptions$2 = (options$1 = {}) => {
18670
+ const normalizeOptions$1 = (options$1 = {}) => {
18486
18671
  options$1 = {
18487
18672
  ...options$1,
18488
18673
  ignore: options$1.ignore ?? [],
@@ -18492,8 +18677,8 @@ const normalizeOptions$2 = (options$1 = {}) => {
18492
18677
  checkCwdOption(options$1.cwd);
18493
18678
  return options$1;
18494
18679
  };
18495
- const normalizeArguments = (function_) => async (patterns, options$1) => function_(toPatternsArray(patterns), normalizeOptions$2(options$1));
18496
- const normalizeArgumentsSync = (function_) => (patterns, options$1) => function_(toPatternsArray(patterns), normalizeOptions$2(options$1));
18680
+ const normalizeArguments = (function_) => async (patterns, options$1) => function_(toPatternsArray(patterns), normalizeOptions$1(options$1));
18681
+ const normalizeArgumentsSync = (function_) => (patterns, options$1) => function_(toPatternsArray(patterns), normalizeOptions$1(options$1));
18497
18682
  const getIgnoreFilesPatterns = (options$1) => {
18498
18683
  const { ignoreFiles, gitignore } = options$1;
18499
18684
  const patterns = ignoreFiles ? toPatternsArray(ignoreFiles) : [];
@@ -18712,9 +18897,9 @@ var require_ms = __commonJS$2({ "../../node_modules/.pnpm/ms@2.1.3/node_modules/
18712
18897
  /**
18713
18898
  * Pluralization helper.
18714
18899
  */
18715
- function plural(ms, msAbs, n$1, name$2) {
18900
+ function plural(ms, msAbs, n$1, name$1) {
18716
18901
  var isPlural = msAbs >= n$1 * 1.5;
18717
- return Math.round(ms / n$1) + " " + name$2 + (isPlural ? "s" : "");
18902
+ return Math.round(ms / n$1) + " " + name$1 + (isPlural ? "s" : "");
18718
18903
  }
18719
18904
  } });
18720
18905
 
@@ -18894,9 +19079,9 @@ var require_common$1 = __commonJS$2({ "../../node_modules/.pnpm/debug@4.4.1/node
18894
19079
  * @return {Boolean}
18895
19080
  * @api public
18896
19081
  */
18897
- function enabled$1(name$2) {
18898
- for (const skip$1 of createDebug.skips) if (matchesTemplate(name$2, skip$1)) return false;
18899
- for (const ns of createDebug.names) if (matchesTemplate(name$2, ns)) return true;
19082
+ function enabled$1(name$1) {
19083
+ for (const skip$1 of createDebug.skips) if (matchesTemplate(name$1, skip$1)) return false;
19084
+ for (const ns of createDebug.names) if (matchesTemplate(name$1, ns)) return true;
18900
19085
  return false;
18901
19086
  }
18902
19087
  /**
@@ -19179,9 +19364,9 @@ var require_supports_color = __commonJS$2({ "../../node_modules/.pnpm/supports-c
19179
19364
  if ("TEAMCITY_VERSION" in env) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
19180
19365
  if (env.COLORTERM === "truecolor") return 3;
19181
19366
  if ("TERM_PROGRAM" in env) {
19182
- const version$3 = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
19367
+ const version$2 = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
19183
19368
  switch (env.TERM_PROGRAM) {
19184
- case "iTerm.app": return version$3 >= 3 ? 3 : 2;
19369
+ case "iTerm.app": return version$2 >= 3 ? 3 : 2;
19185
19370
  case "Apple_Terminal": return 2;
19186
19371
  }
19187
19372
  }
@@ -19342,14 +19527,14 @@ var require_node = __commonJS$2({ "../../node_modules/.pnpm/debug@4.4.1/node_mod
19342
19527
  * @api public
19343
19528
  */
19344
19529
  function formatArgs(args) {
19345
- const { namespace: name$2, useColors: useColors$2 } = this;
19530
+ const { namespace: name$1, useColors: useColors$2 } = this;
19346
19531
  if (useColors$2) {
19347
19532
  const c$2 = this.color;
19348
19533
  const colorCode = "\x1B[3" + (c$2 < 8 ? c$2 : "8;5;" + c$2);
19349
- const prefix = ` ${colorCode};1m${name$2} \u001B[0m`;
19534
+ const prefix = ` ${colorCode};1m${name$1} \u001B[0m`;
19350
19535
  args[0] = prefix + args[0].split("\n").join("\n" + prefix);
19351
19536
  args.push(colorCode + "m+" + module.exports.humanize(this.diff) + "\x1B[0m");
19352
- } else args[0] = getDate() + name$2 + " " + args[0];
19537
+ } else args[0] = getDate() + name$1 + " " + args[0];
19353
19538
  }
19354
19539
  function getDate() {
19355
19540
  if (exports.inspectOpts.hideDate) return "";
@@ -19430,10 +19615,10 @@ var require_src$1 = __commonJS$2({ "../../node_modules/.pnpm/@kwsites+file-exist
19430
19615
  const fs_1 = __require$1("fs");
19431
19616
  const debug_1 = __importDefault(require_src$2());
19432
19617
  const log = debug_1.default("@kwsites/file-exists");
19433
- function check$2(path$13, isFile$2, isDirectory$2) {
19434
- log(`checking %s`, path$13);
19618
+ function check$2(path$12, isFile$2, isDirectory$2) {
19619
+ log(`checking %s`, path$12);
19435
19620
  try {
19436
- const stat$1 = fs_1.statSync(path$13);
19621
+ const stat$1 = fs_1.statSync(path$12);
19437
19622
  if (stat$1.isFile() && isFile$2) {
19438
19623
  log(`[OK] path represents a file`);
19439
19624
  return true;
@@ -19459,8 +19644,8 @@ var require_src$1 = __commonJS$2({ "../../node_modules/.pnpm/@kwsites+file-exist
19459
19644
  * @param {string} path The path to check
19460
19645
  * @param {number} type One or both of the exported numeric constants
19461
19646
  */
19462
- function exists$1(path$13, type$1 = exports.READABLE) {
19463
- return check$2(path$13, (type$1 & exports.FILE) > 0, (type$1 & exports.FOLDER) > 0);
19647
+ function exists$1(path$12, type$1 = exports.READABLE) {
19648
+ return check$2(path$12, (type$1 & exports.FILE) > 0, (type$1 & exports.FOLDER) > 0);
19464
19649
  }
19465
19650
  exports.exists = exists$1;
19466
19651
  /**
@@ -19566,8 +19751,8 @@ var __commonJS$1 = (cb, mod) => function __require$2() {
19566
19751
  return mod || (0, cb[__getOwnPropNames$1(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
19567
19752
  };
19568
19753
  var __export$2 = (target, all$1) => {
19569
- for (var name$2 in all$1) __defProp$3(target, name$2, {
19570
- get: all$1[name$2],
19754
+ for (var name$1 in all$1) __defProp$3(target, name$1, {
19755
+ get: all$1[name$1],
19571
19756
  enumerable: true
19572
19757
  });
19573
19758
  };
@@ -19586,8 +19771,8 @@ function pathspec(...paths) {
19586
19771
  cache$1.set(key$1, paths);
19587
19772
  return key$1;
19588
19773
  }
19589
- function isPathSpec(path$13) {
19590
- return path$13 instanceof String && cache$1.has(path$13);
19774
+ function isPathSpec(path$12) {
19775
+ return path$12 instanceof String && cache$1.has(path$12);
19591
19776
  }
19592
19777
  function toPaths(pathSpec) {
19593
19778
  return cache$1.get(pathSpec) || [];
@@ -19660,8 +19845,8 @@ function toLinesWithContent(input = "", trimmed2 = true, separator = "\n") {
19660
19845
  function forEachLineWithContent(input, callback) {
19661
19846
  return toLinesWithContent(input, true).map((line$2) => callback(line$2));
19662
19847
  }
19663
- function folderExists(path$13) {
19664
- return (0, import_dist.exists)(path$13, import_dist.FOLDER);
19848
+ function folderExists(path$12) {
19849
+ return (0, import_dist.exists)(path$12, import_dist.FOLDER);
19665
19850
  }
19666
19851
  function append(target, item) {
19667
19852
  if (Array.isArray(target)) {
@@ -19981,8 +20166,8 @@ function checkIsRepoRootTask() {
19981
20166
  commands,
19982
20167
  format: "utf-8",
19983
20168
  onError,
19984
- parser(path$13) {
19985
- return /^\.(git)?$/.test(path$13.trim());
20169
+ parser(path$12) {
20170
+ return /^\.(git)?$/.test(path$12.trim());
19986
20171
  }
19987
20172
  };
19988
20173
  }
@@ -20361,11 +20546,11 @@ function parseGrep(grep) {
20361
20546
  const paths = /* @__PURE__ */ new Set();
20362
20547
  const results = {};
20363
20548
  forEachLineWithContent(grep, (input) => {
20364
- const [path$13, line$2, preview] = input.split(NULL);
20365
- paths.add(path$13);
20366
- (results[path$13] = results[path$13] || []).push({
20549
+ const [path$12, line$2, preview] = input.split(NULL);
20550
+ paths.add(path$12);
20551
+ (results[path$12] = results[path$12] || []).push({
20367
20552
  line: asNumber(line$2),
20368
- path: path$13,
20553
+ path: path$12,
20369
20554
  preview
20370
20555
  });
20371
20556
  });
@@ -20471,8 +20656,8 @@ function prefixedLogger(to, prefix, forward) {
20471
20656
  if (forward) forward(message, ...args);
20472
20657
  };
20473
20658
  }
20474
- function childLoggerName(name$2, childDebugger, { namespace: parentNamespace }) {
20475
- if (typeof name$2 === "string") return name$2;
20659
+ function childLoggerName(name$1, childDebugger, { namespace: parentNamespace }) {
20660
+ if (typeof name$1 === "string") return name$1;
20476
20661
  const childNamespace = childDebugger && childDebugger.namespace || "";
20477
20662
  if (childNamespace.startsWith(parentNamespace)) return childNamespace.substr(parentNamespace.length + 1);
20478
20663
  return childNamespace || parentNamespace;
@@ -20483,8 +20668,8 @@ function createLogger(label$1, verbose, initialStep, infoDebugger = createLog())
20483
20668
  const debugDebugger = typeof verbose === "string" ? infoDebugger.extend(verbose) : verbose;
20484
20669
  const key$1 = childLoggerName(filterType(verbose, filterString), debugDebugger, infoDebugger);
20485
20670
  return step(initialStep);
20486
- function sibling(name$2, initial) {
20487
- return append(spawned, createLogger(label$1, key$1.replace(/^[^:]+/, name$2), initial, infoDebugger));
20671
+ function sibling(name$1, initial) {
20672
+ return append(spawned, createLogger(label$1, key$1.replace(/^[^:]+/, name$1), initial, infoDebugger));
20488
20673
  }
20489
20674
  function step(phase) {
20490
20675
  const stepPrefix = phase && `[${phase}]` || "";
@@ -20521,12 +20706,12 @@ var init_tasks_pending_queue = __esm({ "src/lib/runners/tasks-pending-queue.ts"(
20521
20706
  return this._queue.get(task);
20522
20707
  }
20523
20708
  createProgress(task) {
20524
- const name$2 = _TasksPendingQueue.getName(task.commands[0]);
20525
- const logger$1 = createLogger(this.logLabel, name$2);
20709
+ const name$1 = _TasksPendingQueue.getName(task.commands[0]);
20710
+ const logger$1 = createLogger(this.logLabel, name$1);
20526
20711
  return {
20527
20712
  task,
20528
20713
  logger: logger$1,
20529
- name: name$2
20714
+ name: name$1
20530
20715
  };
20531
20716
  }
20532
20717
  push(task) {
@@ -20555,8 +20740,8 @@ var init_tasks_pending_queue = __esm({ "src/lib/runners/tasks-pending-queue.ts"(
20555
20740
  progress.logger("Starting task");
20556
20741
  return progress;
20557
20742
  }
20558
- static getName(name$2 = "empty") {
20559
- return `task:${name$2}:${++_TasksPendingQueue.counter}`;
20743
+ static getName(name$1 = "empty") {
20744
+ return `task:${name$1}:${++_TasksPendingQueue.counter}`;
20560
20745
  }
20561
20746
  static {
20562
20747
  this.counter = 0;
@@ -20575,9 +20760,9 @@ function onErrorReceived(target, logger$1) {
20575
20760
  target.push(Buffer.from(String(err.stack), "ascii"));
20576
20761
  };
20577
20762
  }
20578
- function onDataReceived(target, name$2, logger$1, output) {
20763
+ function onDataReceived(target, name$1, logger$1, output) {
20579
20764
  return (buffer$1) => {
20580
- logger$1(`%s received %L bytes`, name$2, buffer$1);
20765
+ logger$1(`%s received %L bytes`, name$1, buffer$1);
20581
20766
  output(`%B`, buffer$1);
20582
20767
  target.push(buffer$1);
20583
20768
  };
@@ -20674,7 +20859,7 @@ var init_git_executor_chain = __esm({ "src/lib/runners/git-executor-chain.ts"()
20674
20859
  }
20675
20860
  async gitResponse(task, command$1, args, outputHandler, logger$1) {
20676
20861
  const outputLogger = logger$1.sibling("output");
20677
- const spawnOptions$1 = this._plugins.exec("spawn.options", {
20862
+ const spawnOptions = this._plugins.exec("spawn.options", {
20678
20863
  cwd: this.cwd,
20679
20864
  env: this.env,
20680
20865
  windowsHide: true
@@ -20683,7 +20868,7 @@ var init_git_executor_chain = __esm({ "src/lib/runners/git-executor-chain.ts"()
20683
20868
  const stdOut = [];
20684
20869
  const stdErr = [];
20685
20870
  logger$1.info(`%s %o`, command$1, args);
20686
- logger$1("%O", spawnOptions$1);
20871
+ logger$1("%O", spawnOptions);
20687
20872
  let rejection = this._beforeSpawn(task, args);
20688
20873
  if (rejection) return done({
20689
20874
  stdOut,
@@ -20697,7 +20882,7 @@ var init_git_executor_chain = __esm({ "src/lib/runners/git-executor-chain.ts"()
20697
20882
  rejection = reason || rejection;
20698
20883
  }
20699
20884
  });
20700
- const spawned = spawn$1(command$1, args, spawnOptions$1);
20885
+ const spawned = spawn$1(command$1, args, spawnOptions);
20701
20886
  spawned.stdout.on("data", onDataReceived(stdOut, "stdOut", logger$1, outputLogger.step("stdOut")));
20702
20887
  spawned.stderr.on("data", onDataReceived(stdErr, "stdErr", logger$1, outputLogger.step("stdErr")));
20703
20888
  spawned.on("error", onErrorReceived(stdErr, logger$1));
@@ -20767,19 +20952,19 @@ function taskCallback(task, response, callback = NOOP) {
20767
20952
  response.then(onSuccess, onError2);
20768
20953
  }
20769
20954
  function addDeprecationNoticeToError(err) {
20770
- let log$2 = (name$2) => {
20771
- console.warn(`simple-git deprecation notice: accessing GitResponseError.${name$2} should be GitResponseError.git.${name$2}, this will no longer be available in version 3`);
20955
+ let log$2 = (name$1) => {
20956
+ console.warn(`simple-git deprecation notice: accessing GitResponseError.${name$1} should be GitResponseError.git.${name$1}, this will no longer be available in version 3`);
20772
20957
  log$2 = NOOP;
20773
20958
  };
20774
20959
  return Object.create(err, Object.getOwnPropertyNames(err.git).reduce(descriptorReducer, {}));
20775
- function descriptorReducer(all$1, name$2) {
20776
- if (name$2 in err) return all$1;
20777
- all$1[name$2] = {
20960
+ function descriptorReducer(all$1, name$1) {
20961
+ if (name$1 in err) return all$1;
20962
+ all$1[name$1] = {
20778
20963
  enumerable: false,
20779
20964
  configurable: false,
20780
20965
  get() {
20781
- log$2(name$2);
20782
- return err.git[name$2];
20966
+ log$2(name$1);
20967
+ return err.git[name$1];
20783
20968
  }
20784
20969
  };
20785
20970
  return all$1;
@@ -20965,11 +21150,11 @@ var init_hash_object = __esm({ "src/lib/tasks/hash-object.ts"() {
20965
21150
  "use strict";
20966
21151
  init_task();
20967
21152
  } });
20968
- function parseInit(bare, path$13, text$2) {
21153
+ function parseInit(bare, path$12, text$2) {
20969
21154
  const response = String(text$2).trim();
20970
21155
  let result;
20971
- if (result = initResponseRegex.exec(response)) return new InitSummary(bare, path$13, false, result[1]);
20972
- if (result = reInitResponseRegex.exec(response)) return new InitSummary(bare, path$13, true, result[1]);
21156
+ if (result = initResponseRegex.exec(response)) return new InitSummary(bare, path$12, false, result[1]);
21157
+ if (result = reInitResponseRegex.exec(response)) return new InitSummary(bare, path$12, true, result[1]);
20973
21158
  let gitDir = "";
20974
21159
  const tokens = response.split(" ");
20975
21160
  while (tokens.length) {
@@ -20979,15 +21164,15 @@ function parseInit(bare, path$13, text$2) {
20979
21164
  break;
20980
21165
  }
20981
21166
  }
20982
- return new InitSummary(bare, path$13, /^re/i.test(response), gitDir);
21167
+ return new InitSummary(bare, path$12, /^re/i.test(response), gitDir);
20983
21168
  }
20984
21169
  var InitSummary, initResponseRegex, reInitResponseRegex;
20985
21170
  var init_InitSummary = __esm({ "src/lib/responses/InitSummary.ts"() {
20986
21171
  "use strict";
20987
21172
  InitSummary = class {
20988
- constructor(bare, path$13, existing, gitDir) {
21173
+ constructor(bare, path$12, existing, gitDir) {
20989
21174
  this.bare = bare;
20990
- this.path = path$13;
21175
+ this.path = path$12;
20991
21176
  this.existing = existing;
20992
21177
  this.gitDir = gitDir;
20993
21178
  }
@@ -20998,14 +21183,14 @@ var init_InitSummary = __esm({ "src/lib/responses/InitSummary.ts"() {
20998
21183
  function hasBareCommand(command$1) {
20999
21184
  return command$1.includes(bareCommand);
21000
21185
  }
21001
- function initTask(bare = false, path$13, customArgs) {
21186
+ function initTask(bare = false, path$12, customArgs) {
21002
21187
  const commands = ["init", ...customArgs];
21003
21188
  if (bare && !hasBareCommand(commands)) commands.splice(1, 0, bareCommand);
21004
21189
  return {
21005
21190
  commands,
21006
21191
  format: "utf-8",
21007
21192
  parser(text$2) {
21008
- return parseInit(commands.includes("--bare"), path$13, text$2);
21193
+ return parseInit(commands.includes("--bare"), path$12, text$2);
21009
21194
  }
21010
21195
  };
21011
21196
  }
@@ -21651,15 +21836,15 @@ var init_FileStatusSummary = __esm({ "src/lib/responses/FileStatusSummary.ts"()
21651
21836
  "use strict";
21652
21837
  fromPathRegex = /^(.+)\0(.+)$/;
21653
21838
  FileStatusSummary = class {
21654
- constructor(path$13, index$1, working_dir) {
21655
- this.path = path$13;
21839
+ constructor(path$12, index$1, working_dir) {
21840
+ this.path = path$12;
21656
21841
  this.index = index$1;
21657
21842
  this.working_dir = working_dir;
21658
21843
  if (index$1 === "R" || working_dir === "R") {
21659
- const detail = fromPathRegex.exec(path$13) || [
21844
+ const detail = fromPathRegex.exec(path$12) || [
21660
21845
  null,
21661
- path$13,
21662
- path$13
21846
+ path$12,
21847
+ path$12
21663
21848
  ];
21664
21849
  this.from = detail[2] || "";
21665
21850
  this.path = detail[1] || "";
@@ -21687,11 +21872,11 @@ function splitLine(result, lineStr) {
21687
21872
  case trimmed2.charAt(1): return data(" ", trimmed2.charAt(0), trimmed2.substr(2));
21688
21873
  default: return;
21689
21874
  }
21690
- function data(index$1, workingDir, path$13) {
21875
+ function data(index$1, workingDir, path$12) {
21691
21876
  const raw = `${index$1}${workingDir}`;
21692
21877
  const handler = parsers6.get(raw);
21693
- if (handler) handler(result, path$13);
21694
- if (raw !== "##" && raw !== "!!") result.files.push(new FileStatusSummary(path$13, index$1, workingDir));
21878
+ if (handler) handler(result, path$12);
21879
+ if (raw !== "##" && raw !== "!!") result.files.push(new FileStatusSummary(path$12, index$1, workingDir));
21695
21880
  }
21696
21881
  }
21697
21882
  var StatusSummary, parsers6, parseStatusSummary;
@@ -21891,8 +22076,8 @@ var init_simple_git_api = __esm({ "src/lib/simple-git-api.ts"() {
21891
22076
  if (typeof directory?.path === "string") return this._runTask(changeWorkingDirectoryTask(directory.path, directory.root && this._executor || void 0), next);
21892
22077
  return this._runTask(configurationErrorTask("Git.cwd: workingDirectory must be supplied as a string"), next);
21893
22078
  }
21894
- hashObject(path$13, write) {
21895
- return this._runTask(hashObjectTask(path$13, write === true), trailingFunctionArgument(arguments));
22079
+ hashObject(path$12, write) {
22080
+ return this._runTask(hashObjectTask(path$12, write === true), trailingFunctionArgument(arguments));
21896
22081
  }
21897
22082
  init(bare) {
21898
22083
  return this._runTask(initTask(bare === true, this._executor.cwd, getTrailingOptions(arguments)), trailingFunctionArgument(arguments));
@@ -22051,16 +22236,16 @@ var init_BranchSummary = __esm({ "src/lib/responses/BranchSummary.ts"() {
22051
22236
  this.current = "";
22052
22237
  this.detached = false;
22053
22238
  }
22054
- push(status, detached, name$2, commit, label$1) {
22239
+ push(status, detached, name$1, commit, label$1) {
22055
22240
  if (status === "*") {
22056
22241
  this.detached = detached;
22057
- this.current = name$2;
22242
+ this.current = name$1;
22058
22243
  }
22059
- this.all.push(name$2);
22060
- this.branches[name$2] = {
22244
+ this.all.push(name$1);
22245
+ this.branches[name$1] = {
22061
22246
  current: status === "*",
22062
22247
  linkedWorkTree: status === "+",
22063
- name: name$2,
22248
+ name: name$1,
22064
22249
  commit,
22065
22250
  label: label$1
22066
22251
  };
@@ -22078,10 +22263,10 @@ var init_parse_branch = __esm({ "src/lib/parsers/parse-branch.ts"() {
22078
22263
  "use strict";
22079
22264
  init_BranchSummary();
22080
22265
  init_utils();
22081
- parsers9 = [new LineParser(/^([*+]\s)?\((?:HEAD )?detached (?:from|at) (\S+)\)\s+([a-z0-9]+)\s(.*)$/, (result, [current, name$2, commit, label$1]) => {
22082
- result.push(branchStatus(current), true, name$2, commit, label$1);
22083
- }), new LineParser(/^([*+]\s)?(\S+)\s+([a-z0-9]+)\s?(.*)$/s, (result, [current, name$2, commit, label$1]) => {
22084
- result.push(branchStatus(current), false, name$2, commit, label$1);
22266
+ parsers9 = [new LineParser(/^([*+]\s)?\((?:HEAD )?detached (?:from|at) (\S+)\)\s+([a-z0-9]+)\s(.*)$/, (result, [current, name$1, commit, label$1]) => {
22267
+ result.push(branchStatus(current), true, name$1, commit, label$1);
22268
+ }), new LineParser(/^([*+]\s)?(\S+)\s+([a-z0-9]+)\s?(.*)$/s, (result, [current, name$1, commit, label$1]) => {
22269
+ result.push(branchStatus(current), false, name$1, commit, label$1);
22085
22270
  })];
22086
22271
  } });
22087
22272
  var branch_exports = {};
@@ -22230,24 +22415,24 @@ var init_parse_fetch = __esm({ "src/lib/parsers/parse-fetch.ts"() {
22230
22415
  new LineParser(/From (.+)$/, (result, [remote]) => {
22231
22416
  result.remote = remote;
22232
22417
  }),
22233
- new LineParser(/\* \[new branch]\s+(\S+)\s*-> (.+)$/, (result, [name$2, tracking]) => {
22418
+ new LineParser(/\* \[new branch]\s+(\S+)\s*-> (.+)$/, (result, [name$1, tracking]) => {
22234
22419
  result.branches.push({
22235
- name: name$2,
22420
+ name: name$1,
22236
22421
  tracking
22237
22422
  });
22238
22423
  }),
22239
- new LineParser(/\* \[new tag]\s+(\S+)\s*-> (.+)$/, (result, [name$2, tracking]) => {
22424
+ new LineParser(/\* \[new tag]\s+(\S+)\s*-> (.+)$/, (result, [name$1, tracking]) => {
22240
22425
  result.tags.push({
22241
- name: name$2,
22426
+ name: name$1,
22242
22427
  tracking
22243
22428
  });
22244
22429
  }),
22245
22430
  new LineParser(/- \[deleted]\s+\S+\s*-> (.+)$/, (result, [tracking]) => {
22246
22431
  result.deleted.push({ tracking });
22247
22432
  }),
22248
- new LineParser(/\s*([^.]+)\.\.(\S+)\s+(\S+)\s*-> (.+)$/, (result, [from, to, name$2, tracking]) => {
22433
+ new LineParser(/\s*([^.]+)\.\.(\S+)\s+(\S+)\s*-> (.+)$/, (result, [from, to, name$1, tracking]) => {
22249
22434
  result.updated.push({
22250
- name: name$2,
22435
+ name: name$1,
22251
22436
  tracking,
22252
22437
  to,
22253
22438
  from
@@ -22335,20 +22520,20 @@ var init_pull = __esm({ "src/lib/tasks/pull.ts"() {
22335
22520
  } });
22336
22521
  function parseGetRemotes(text$2) {
22337
22522
  const remotes = {};
22338
- forEach(text$2, ([name$2]) => remotes[name$2] = { name: name$2 });
22523
+ forEach(text$2, ([name$1]) => remotes[name$1] = { name: name$1 });
22339
22524
  return Object.values(remotes);
22340
22525
  }
22341
22526
  function parseGetRemotesVerbose(text$2) {
22342
22527
  const remotes = {};
22343
- forEach(text$2, ([name$2, url$2, purpose]) => {
22344
- if (!remotes.hasOwnProperty(name$2)) remotes[name$2] = {
22345
- name: name$2,
22528
+ forEach(text$2, ([name$1, url$2, purpose]) => {
22529
+ if (!remotes.hasOwnProperty(name$1)) remotes[name$1] = {
22530
+ name: name$1,
22346
22531
  refs: {
22347
22532
  fetch: "",
22348
22533
  push: ""
22349
22534
  }
22350
22535
  };
22351
- if (purpose && url$2) remotes[name$2].refs[purpose.replace(/[^a-z]/g, "")] = url$2;
22536
+ if (purpose && url$2) remotes[name$1].refs[purpose.replace(/[^a-z]/g, "")] = url$2;
22352
22537
  });
22353
22538
  return Object.values(remotes);
22354
22539
  }
@@ -22438,11 +22623,11 @@ __export$2(sub_module_exports, {
22438
22623
  subModuleTask: () => subModuleTask,
22439
22624
  updateSubModuleTask: () => updateSubModuleTask
22440
22625
  });
22441
- function addSubModuleTask(repo, path$13) {
22626
+ function addSubModuleTask(repo, path$12) {
22442
22627
  return subModuleTask([
22443
22628
  "add",
22444
22629
  repo,
22445
- path$13
22630
+ path$12
22446
22631
  ]);
22447
22632
  }
22448
22633
  function initSubModuleTask(customArgs) {
@@ -22521,16 +22706,16 @@ function tagListTask(customArgs = []) {
22521
22706
  }
22522
22707
  };
22523
22708
  }
22524
- function addTagTask(name$2) {
22709
+ function addTagTask(name$1) {
22525
22710
  return {
22526
22711
  format: "utf-8",
22527
- commands: ["tag", name$2],
22712
+ commands: ["tag", name$1],
22528
22713
  parser() {
22529
- return { name: name$2 };
22714
+ return { name: name$1 };
22530
22715
  }
22531
22716
  };
22532
22717
  }
22533
- function addAnnotatedTagTask(name$2, tagMessage) {
22718
+ function addAnnotatedTagTask(name$1, tagMessage) {
22534
22719
  return {
22535
22720
  format: "utf-8",
22536
22721
  commands: [
@@ -22538,10 +22723,10 @@ function addAnnotatedTagTask(name$2, tagMessage) {
22538
22723
  "-a",
22539
22724
  "-m",
22540
22725
  tagMessage,
22541
- name$2
22726
+ name$1
22542
22727
  ],
22543
22728
  parser() {
22544
- return { name: name$2 };
22729
+ return { name: name$1 };
22545
22730
  }
22546
22731
  };
22547
22732
  }
@@ -22583,9 +22768,9 @@ var require_git = __commonJS$1({ "src/git.js"(exports$2, module$1) {
22583
22768
  this._plugins.reconfigure("binary", command$1);
22584
22769
  return this;
22585
22770
  };
22586
- Git2.prototype.env = function(name$2, value) {
22587
- if (arguments.length === 1 && typeof name$2 === "object") this._executor.env = name$2;
22588
- else (this._executor.env = this._executor.env || {})[name$2] = value;
22771
+ Git2.prototype.env = function(name$1, value) {
22772
+ if (arguments.length === 1 && typeof name$1 === "object") this._executor.env = name$1;
22773
+ else (this._executor.env = this._executor.env || {})[name$1] = value;
22589
22774
  return this;
22590
22775
  };
22591
22776
  Git2.prototype.stashList = function(options$1) {
@@ -22640,8 +22825,8 @@ var require_git = __commonJS$1({ "src/git.js"(exports$2, module$1) {
22640
22825
  commit
22641
22826
  ]), next);
22642
22827
  };
22643
- Git2.prototype.addTag = function(name$2) {
22644
- const task = typeof name$2 === "string" ? addTagTask2(name$2) : configurationErrorTask2("Git.addTag requires a tag name");
22828
+ Git2.prototype.addTag = function(name$1) {
22829
+ const task = typeof name$1 === "string" ? addTagTask2(name$1) : configurationErrorTask2("Git.addTag requires a tag name");
22645
22830
  return this._runTask(task, trailingFunctionArgument2(arguments));
22646
22831
  };
22647
22832
  Git2.prototype.addAnnotatedTag = function(tagName, tagMessage) {
@@ -22671,8 +22856,8 @@ var require_git = __commonJS$1({ "src/git.js"(exports$2, module$1) {
22671
22856
  if (!command$1.length) return this._runTask(configurationErrorTask2("Raw: must supply one or more command to execute"), next);
22672
22857
  return this._runTask(straightThroughStringTask2(command$1, this._trimmed), next);
22673
22858
  };
22674
- Git2.prototype.submoduleAdd = function(repo, path$13, then) {
22675
- return this._runTask(addSubModuleTask2(repo, path$13), trailingFunctionArgument2(arguments));
22859
+ Git2.prototype.submoduleAdd = function(repo, path$12, then) {
22860
+ return this._runTask(addSubModuleTask2(repo, path$12), trailingFunctionArgument2(arguments));
22676
22861
  };
22677
22862
  Git2.prototype.submoduleUpdate = function(args, then) {
22678
22863
  return this._runTask(updateSubModuleTask2(getTrailingOptions2(arguments, true)), trailingFunctionArgument2(arguments));
@@ -22835,10 +23020,10 @@ function preventProtocolOverride(arg, next) {
22835
23020
  if (!/^\s*protocol(.[a-z]+)?.allow/.test(next)) return;
22836
23021
  throw new GitPluginError(void 0, "unsafe", "Configuring protocol.allow is not permitted without enabling allowUnsafeExtProtocol");
22837
23022
  }
22838
- function preventUploadPack(arg, method$1) {
23023
+ function preventUploadPack(arg, method) {
22839
23024
  if (/^\s*--(upload|receive)-pack/.test(arg)) throw new GitPluginError(void 0, "unsafe", `Use of --upload-pack or --receive-pack is not permitted without enabling allowUnsafePack`);
22840
- if (method$1 === "clone" && /^\s*-u\b/.test(arg)) throw new GitPluginError(void 0, "unsafe", `Use of clone with option -u is not permitted without enabling allowUnsafePack`);
22841
- if (method$1 === "push" && /^\s*--exec\b/.test(arg)) throw new GitPluginError(void 0, "unsafe", `Use of push with option --exec is not permitted without enabling allowUnsafePack`);
23025
+ if (method === "clone" && /^\s*-u\b/.test(arg)) throw new GitPluginError(void 0, "unsafe", `Use of clone with option -u is not permitted without enabling allowUnsafePack`);
23026
+ if (method === "push" && /^\s*--exec\b/.test(arg)) throw new GitPluginError(void 0, "unsafe", `Use of push with option --exec is not permitted without enabling allowUnsafePack`);
22842
23027
  }
22843
23028
  function blockUnsafeOperationsPlugin({ allowUnsafeProtocolOverride = false, allowUnsafePack = false } = {}) {
22844
23029
  return {
@@ -23046,8 +23231,8 @@ function progressEventStage(input) {
23046
23231
  return String(input.toLowerCase().split(" ", 1)) || "unknown";
23047
23232
  }
23048
23233
  init_utils();
23049
- function spawnOptionsPlugin(spawnOptions$1) {
23050
- const options$1 = pick$1(spawnOptions$1, ["uid", "gid"]);
23234
+ function spawnOptionsPlugin(spawnOptions) {
23235
+ const options$1 = pick$1(spawnOptions, ["uid", "gid"]);
23051
23236
  return {
23052
23237
  type: "spawn.options",
23053
23238
  action(data) {
@@ -23149,8 +23334,8 @@ __export$4(doc_exports, {
23149
23334
  });
23150
23335
  var __defProp$2 = Object.defineProperty;
23151
23336
  var __export$1 = (target, all$1) => {
23152
- for (var name$2 in all$1) __defProp$2(target, name$2, {
23153
- get: all$1[name$2],
23337
+ for (var name$1 in all$1) __defProp$2(target, name$1, {
23338
+ get: all$1[name$1],
23154
23339
  enumerable: true
23155
23340
  });
23156
23341
  };
@@ -24172,8 +24357,8 @@ var __commonJS = (cb, mod) => function __require2() {
24172
24357
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
24173
24358
  };
24174
24359
  var __export = (target, all$1) => {
24175
- for (var name$2 in all$1) __defProp$1(target, name$2, {
24176
- get: all$1[name$2],
24360
+ for (var name$1 in all$1) __defProp$1(target, name$1, {
24361
+ get: all$1[name$1],
24177
24362
  enumerable: true
24178
24363
  });
24179
24364
  };
@@ -24195,7 +24380,7 @@ var __accessCheck$1 = (obj, member, msg) => member.has(obj) || __typeError("Cann
24195
24380
  var __privateGet = (obj, member, getter) => (__accessCheck$1(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
24196
24381
  var __privateAdd$1 = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
24197
24382
  var __privateSet = (obj, member, value, setter) => (__accessCheck$1(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
24198
- var __privateMethod$1 = (obj, member, method$1) => (__accessCheck$1(obj, member, "access private method"), method$1);
24383
+ var __privateMethod$1 = (obj, member, method) => (__accessCheck$1(obj, member, "access private method"), method);
24199
24384
  var require_array = __commonJS({ "node_modules/fast-glob/out/utils/array.js"(exports$2) {
24200
24385
  "use strict";
24201
24386
  Object.defineProperty(exports$2, "__esModule", { value: true });
@@ -24229,8 +24414,8 @@ var require_fs = __commonJS({ "node_modules/fast-glob/out/utils/fs.js"(exports$2
24229
24414
  Object.defineProperty(exports$2, "__esModule", { value: true });
24230
24415
  exports$2.createDirentFromStats = void 0;
24231
24416
  var DirentFromStats$2 = class {
24232
- constructor(name$2, stats) {
24233
- this.name = name$2;
24417
+ constructor(name$1, stats) {
24418
+ this.name = name$1;
24234
24419
  this.isBlockDevice = stats.isBlockDevice.bind(stats);
24235
24420
  this.isCharacterDevice = stats.isCharacterDevice.bind(stats);
24236
24421
  this.isDirectory = stats.isDirectory.bind(stats);
@@ -24240,8 +24425,8 @@ var require_fs = __commonJS({ "node_modules/fast-glob/out/utils/fs.js"(exports$2
24240
24425
  this.isSymbolicLink = stats.isSymbolicLink.bind(stats);
24241
24426
  }
24242
24427
  };
24243
- function createDirentFromStats$2(name$2, stats) {
24244
- return new DirentFromStats$2(name$2, stats);
24428
+ function createDirentFromStats$2(name$1, stats) {
24429
+ return new DirentFromStats$2(name$1, stats);
24245
24430
  }
24246
24431
  exports$2.createDirentFromStats = createDirentFromStats$2;
24247
24432
  } });
@@ -24384,7 +24569,7 @@ var require_is_glob = __commonJS({ "node_modules/is-glob/index.js"(exports$2, mo
24384
24569
  }
24385
24570
  return false;
24386
24571
  };
24387
- module$1.exports = function isGlob$2(str, options8) {
24572
+ module$1.exports = function isGlob$1(str, options8) {
24388
24573
  if (typeof str !== "string" || str === "") return false;
24389
24574
  if (isExtglob$1(str)) return true;
24390
24575
  var check2 = strictCheck$1;
@@ -24394,7 +24579,7 @@ var require_is_glob = __commonJS({ "node_modules/is-glob/index.js"(exports$2, mo
24394
24579
  } });
24395
24580
  var require_glob_parent = __commonJS({ "node_modules/glob-parent/index.js"(exports$2, module$1) {
24396
24581
  "use strict";
24397
- var isGlob$2 = require_is_glob();
24582
+ var isGlob$1 = require_is_glob();
24398
24583
  var pathPosixDirname$1 = __require("path").posix.dirname;
24399
24584
  var isWin32$1 = __require("os").platform() === "win32";
24400
24585
  var slash2 = "/";
@@ -24409,7 +24594,7 @@ var require_glob_parent = __commonJS({ "node_modules/glob-parent/index.js"(expor
24409
24594
  str += "a";
24410
24595
  do
24411
24596
  str = pathPosixDirname$1(str);
24412
- while (isGlob$2(str) || globby$2.test(str));
24597
+ while (isGlob$1(str) || globby$2.test(str));
24413
24598
  return str.replace(escaped$1, "$1");
24414
24599
  };
24415
24600
  } });
@@ -24512,11 +24697,11 @@ var require_is_number = __commonJS({ "node_modules/is-number/index.js"(exports$2
24512
24697
  } });
24513
24698
  var require_to_regex_range = __commonJS({ "node_modules/to-regex-range/index.js"(exports$2, module$1) {
24514
24699
  "use strict";
24515
- var isNumber$3 = require_is_number();
24700
+ var isNumber$2 = require_is_number();
24516
24701
  var toRegexRange$2 = (min, max, options8) => {
24517
- if (isNumber$3(min) === false) throw new TypeError("toRegexRange: expected the first argument to be a number");
24702
+ if (isNumber$2(min) === false) throw new TypeError("toRegexRange: expected the first argument to be a number");
24518
24703
  if (max === void 0 || min === max) return String(min);
24519
- if (isNumber$3(max) === false) throw new TypeError("toRegexRange: expected the second argument to be a number.");
24704
+ if (isNumber$2(max) === false) throw new TypeError("toRegexRange: expected the second argument to be a number.");
24520
24705
  let opts = {
24521
24706
  relaxZeros: true,
24522
24707
  ...options8
@@ -24641,8 +24826,8 @@ var require_to_regex_range = __commonJS({ "node_modules/to-regex-range/index.js"
24641
24826
  let result = [];
24642
24827
  for (let ele of arr) {
24643
24828
  let { string: string$6 } = ele;
24644
- if (!intersection$1 && !contains$2(comparison, "string", string$6)) result.push(prefix + string$6);
24645
- if (intersection$1 && contains$2(comparison, "string", string$6)) result.push(prefix + string$6);
24829
+ if (!intersection$1 && !contains$1(comparison, "string", string$6)) result.push(prefix + string$6);
24830
+ if (intersection$1 && contains$1(comparison, "string", string$6)) result.push(prefix + string$6);
24646
24831
  }
24647
24832
  return result;
24648
24833
  }
@@ -24654,7 +24839,7 @@ var require_to_regex_range = __commonJS({ "node_modules/to-regex-range/index.js"
24654
24839
  function compare$1(a$1, b$1) {
24655
24840
  return a$1 > b$1 ? 1 : b$1 > a$1 ? -1 : 0;
24656
24841
  }
24657
- function contains$2(arr, key2, val) {
24842
+ function contains$1(arr, key2, val) {
24658
24843
  return arr.some((ele) => ele[key2] === val);
24659
24844
  }
24660
24845
  function countNines$1(min, len) {
@@ -24700,7 +24885,7 @@ var require_fill_range = __commonJS({ "node_modules/fill-range/index.js"(exports
24700
24885
  var isValidValue$1 = (value) => {
24701
24886
  return typeof value === "number" || typeof value === "string" && value !== "";
24702
24887
  };
24703
- var isNumber$3 = (num) => Number.isInteger(+num);
24888
+ var isNumber$2 = (num) => Number.isInteger(+num);
24704
24889
  var zeros$1 = (input) => {
24705
24890
  let value = `${input}`;
24706
24891
  let index$1 = -1;
@@ -24813,7 +24998,7 @@ var require_fill_range = __commonJS({ "node_modules/fill-range/index.js"(exports
24813
24998
  return range;
24814
24999
  };
24815
25000
  var fillLetters$1 = (start, end, step = 1, options8 = {}) => {
24816
- if (!isNumber$3(start) && start.length > 1 || !isNumber$3(end) && end.length > 1) return invalidRange$1(start, end, options8);
25001
+ if (!isNumber$2(start) && start.length > 1 || !isNumber$2(end) && end.length > 1) return invalidRange$1(start, end, options8);
24817
25002
  let format3 = options8.transform || ((val) => String.fromCharCode(val));
24818
25003
  let a$1 = `${start}`.charCodeAt(0);
24819
25004
  let b$1 = `${end}`.charCodeAt(0);
@@ -24842,11 +25027,11 @@ var require_fill_range = __commonJS({ "node_modules/fill-range/index.js"(exports
24842
25027
  let opts = { ...options8 };
24843
25028
  if (opts.capture === true) opts.wrap = true;
24844
25029
  step = step || opts.step || 1;
24845
- if (!isNumber$3(step)) {
25030
+ if (!isNumber$2(step)) {
24846
25031
  if (step != null && !isObject2(step)) return invalidStep$1(step, opts);
24847
25032
  return fill$4(start, end, 1, step);
24848
25033
  }
24849
- if (isNumber$3(start) && isNumber$3(end)) return fillNumbers$1(start, end, step, opts);
25034
+ if (isNumber$2(start) && isNumber$2(end)) return fillNumbers$1(start, end, step, opts);
24850
25035
  return fillLetters$1(start, end, Math.max(Math.abs(step), 1), opts);
24851
25036
  };
24852
25037
  module$1.exports = fill$4;
@@ -25526,7 +25711,7 @@ var require_scan = __commonJS({ "node_modules/micromatch/node_modules/picomatch/
25526
25711
  let lastIndex = 0;
25527
25712
  let isBrace = false;
25528
25713
  let isBracket = false;
25529
- let isGlob$2 = false;
25714
+ let isGlob$1 = false;
25530
25715
  let isExtglob$1 = false;
25531
25716
  let isGlobstar = false;
25532
25717
  let braceEscaped = false;
@@ -25571,14 +25756,14 @@ var require_scan = __commonJS({ "node_modules/micromatch/node_modules/picomatch/
25571
25756
  }
25572
25757
  if (braceEscaped !== true && code$1 === CHAR_DOT$2 && (code$1 = advance()) === CHAR_DOT$2) {
25573
25758
  isBrace = token2.isBrace = true;
25574
- isGlob$2 = token2.isGlob = true;
25759
+ isGlob$1 = token2.isGlob = true;
25575
25760
  finished$1 = true;
25576
25761
  if (scanToEnd === true) continue;
25577
25762
  break;
25578
25763
  }
25579
25764
  if (braceEscaped !== true && code$1 === CHAR_COMMA$3) {
25580
25765
  isBrace = token2.isBrace = true;
25581
- isGlob$2 = token2.isGlob = true;
25766
+ isGlob$1 = token2.isGlob = true;
25582
25767
  finished$1 = true;
25583
25768
  if (scanToEnd === true) continue;
25584
25769
  break;
@@ -25615,7 +25800,7 @@ var require_scan = __commonJS({ "node_modules/micromatch/node_modules/picomatch/
25615
25800
  if (opts.noext !== true) {
25616
25801
  const isExtglobChar = code$1 === CHAR_PLUS$1 || code$1 === CHAR_AT$1 || code$1 === CHAR_ASTERISK$2 || code$1 === CHAR_QUESTION_MARK$1 || code$1 === CHAR_EXCLAMATION_MARK$1;
25617
25802
  if (isExtglobChar === true && peek2() === CHAR_LEFT_PARENTHESES$2) {
25618
- isGlob$2 = token2.isGlob = true;
25803
+ isGlob$1 = token2.isGlob = true;
25619
25804
  isExtglob$1 = token2.isExtglob = true;
25620
25805
  finished$1 = true;
25621
25806
  if (code$1 === CHAR_EXCLAMATION_MARK$1 && index$1 === start) negatedExtglob = true;
@@ -25627,7 +25812,7 @@ var require_scan = __commonJS({ "node_modules/micromatch/node_modules/picomatch/
25627
25812
  continue;
25628
25813
  }
25629
25814
  if (code$1 === CHAR_RIGHT_PARENTHESES$2) {
25630
- isGlob$2 = token2.isGlob = true;
25815
+ isGlob$1 = token2.isGlob = true;
25631
25816
  finished$1 = true;
25632
25817
  break;
25633
25818
  }
@@ -25639,13 +25824,13 @@ var require_scan = __commonJS({ "node_modules/micromatch/node_modules/picomatch/
25639
25824
  }
25640
25825
  if (code$1 === CHAR_ASTERISK$2) {
25641
25826
  if (prev === CHAR_ASTERISK$2) isGlobstar = token2.isGlobstar = true;
25642
- isGlob$2 = token2.isGlob = true;
25827
+ isGlob$1 = token2.isGlob = true;
25643
25828
  finished$1 = true;
25644
25829
  if (scanToEnd === true) continue;
25645
25830
  break;
25646
25831
  }
25647
25832
  if (code$1 === CHAR_QUESTION_MARK$1) {
25648
- isGlob$2 = token2.isGlob = true;
25833
+ isGlob$1 = token2.isGlob = true;
25649
25834
  finished$1 = true;
25650
25835
  if (scanToEnd === true) continue;
25651
25836
  break;
@@ -25659,7 +25844,7 @@ var require_scan = __commonJS({ "node_modules/micromatch/node_modules/picomatch/
25659
25844
  }
25660
25845
  if (next === CHAR_RIGHT_SQUARE_BRACKET$3) {
25661
25846
  isBracket = token2.isBracket = true;
25662
- isGlob$2 = token2.isGlob = true;
25847
+ isGlob$1 = token2.isGlob = true;
25663
25848
  finished$1 = true;
25664
25849
  break;
25665
25850
  }
@@ -25673,7 +25858,7 @@ var require_scan = __commonJS({ "node_modules/micromatch/node_modules/picomatch/
25673
25858
  continue;
25674
25859
  }
25675
25860
  if (opts.noparen !== true && code$1 === CHAR_LEFT_PARENTHESES$2) {
25676
- isGlob$2 = token2.isGlob = true;
25861
+ isGlob$1 = token2.isGlob = true;
25677
25862
  if (scanToEnd === true) {
25678
25863
  while (eos() !== true && (code$1 = advance())) {
25679
25864
  if (code$1 === CHAR_LEFT_PARENTHESES$2) {
@@ -25690,7 +25875,7 @@ var require_scan = __commonJS({ "node_modules/micromatch/node_modules/picomatch/
25690
25875
  }
25691
25876
  break;
25692
25877
  }
25693
- if (isGlob$2 === true) {
25878
+ if (isGlob$1 === true) {
25694
25879
  finished$1 = true;
25695
25880
  if (scanToEnd === true) continue;
25696
25881
  break;
@@ -25698,7 +25883,7 @@ var require_scan = __commonJS({ "node_modules/micromatch/node_modules/picomatch/
25698
25883
  }
25699
25884
  if (opts.noext === true) {
25700
25885
  isExtglob$1 = false;
25701
- isGlob$2 = false;
25886
+ isGlob$1 = false;
25702
25887
  }
25703
25888
  let base = str;
25704
25889
  let prefix = "";
@@ -25708,10 +25893,10 @@ var require_scan = __commonJS({ "node_modules/micromatch/node_modules/picomatch/
25708
25893
  str = str.slice(start);
25709
25894
  lastIndex -= start;
25710
25895
  }
25711
- if (base && isGlob$2 === true && lastIndex > 0) {
25896
+ if (base && isGlob$1 === true && lastIndex > 0) {
25712
25897
  base = str.slice(0, lastIndex);
25713
25898
  glob = str.slice(lastIndex);
25714
- } else if (isGlob$2 === true) {
25899
+ } else if (isGlob$1 === true) {
25715
25900
  base = "";
25716
25901
  glob = str;
25717
25902
  } else base = str;
@@ -25730,7 +25915,7 @@ var require_scan = __commonJS({ "node_modules/micromatch/node_modules/picomatch/
25730
25915
  glob,
25731
25916
  isBrace,
25732
25917
  isBracket,
25733
- isGlob: isGlob$2,
25918
+ isGlob: isGlob$1,
25734
25919
  isExtglob: isExtglob$1,
25735
25920
  isGlobstar,
25736
25921
  negated,
@@ -27355,8 +27540,8 @@ var require_fs3 = __commonJS({ "node_modules/@nodelib/fs.scandir/out/utils/fs.js
27355
27540
  Object.defineProperty(exports$2, "__esModule", { value: true });
27356
27541
  exports$2.createDirentFromStats = void 0;
27357
27542
  var DirentFromStats$2 = class {
27358
- constructor(name$2, stats) {
27359
- this.name = name$2;
27543
+ constructor(name$1, stats) {
27544
+ this.name = name$1;
27360
27545
  this.isBlockDevice = stats.isBlockDevice.bind(stats);
27361
27546
  this.isCharacterDevice = stats.isCharacterDevice.bind(stats);
27362
27547
  this.isDirectory = stats.isDirectory.bind(stats);
@@ -27366,8 +27551,8 @@ var require_fs3 = __commonJS({ "node_modules/@nodelib/fs.scandir/out/utils/fs.js
27366
27551
  this.isSymbolicLink = stats.isSymbolicLink.bind(stats);
27367
27552
  }
27368
27553
  };
27369
- function createDirentFromStats$2(name$2, stats) {
27370
- return new DirentFromStats$2(name$2, stats);
27554
+ function createDirentFromStats$2(name$1, stats) {
27555
+ return new DirentFromStats$2(name$1, stats);
27371
27556
  }
27372
27557
  exports$2.createDirentFromStats = createDirentFromStats$2;
27373
27558
  } });
@@ -27457,8 +27642,8 @@ var require_async2 = __commonJS({ "node_modules/@nodelib/fs.scandir/out/provider
27457
27642
  callFailureCallback$3(callback, readdirError);
27458
27643
  return;
27459
27644
  }
27460
- const tasks = names.map((name$2) => {
27461
- const path14 = common$12.joinPathSegments(directory, name$2, settings.pathSegmentSeparator);
27645
+ const tasks = names.map((name$1) => {
27646
+ const path14 = common$12.joinPathSegments(directory, name$1, settings.pathSegmentSeparator);
27462
27647
  return (done) => {
27463
27648
  fsStat$6.stat(path14, settings.fsStatSettings, (error$41, stats) => {
27464
27649
  if (error$41 !== null) {
@@ -27466,9 +27651,9 @@ var require_async2 = __commonJS({ "node_modules/@nodelib/fs.scandir/out/provider
27466
27651
  return;
27467
27652
  }
27468
27653
  const entry = {
27469
- name: name$2,
27654
+ name: name$1,
27470
27655
  path: path14,
27471
- dirent: utils$21.fs.createDirentFromStats(name$2, stats)
27656
+ dirent: utils$21.fs.createDirentFromStats(name$1, stats)
27472
27657
  };
27473
27658
  if (settings.stats) entry.stats = stats;
27474
27659
  done(null, entry);
@@ -27525,13 +27710,13 @@ var require_sync2 = __commonJS({ "node_modules/@nodelib/fs.scandir/out/providers
27525
27710
  exports$2.readdirWithFileTypes = readdirWithFileTypes$2;
27526
27711
  function readdir$2(directory, settings) {
27527
27712
  const names = settings.fs.readdirSync(directory);
27528
- return names.map((name$2) => {
27529
- const entryPath = common$12.joinPathSegments(directory, name$2, settings.pathSegmentSeparator);
27713
+ return names.map((name$1) => {
27714
+ const entryPath = common$12.joinPathSegments(directory, name$1, settings.pathSegmentSeparator);
27530
27715
  const stats = fsStat$6.statSync(entryPath, settings.fsStatSettings);
27531
27716
  const entry = {
27532
- name: name$2,
27717
+ name: name$1,
27533
27718
  path: entryPath,
27534
- dirent: utils$21.fs.createDirentFromStats(name$2, stats)
27719
+ dirent: utils$21.fs.createDirentFromStats(name$1, stats)
27535
27720
  };
27536
27721
  if (settings.stats) entry.stats = stats;
27537
27722
  return entry;
@@ -28958,11 +29143,11 @@ var require_re = __commonJS({ "node_modules/semver/internal/re.js"(exports$2, mo
28958
29143
  for (const [token2, max] of safeRegexReplacements) value = value.split(`${token2}*`).join(`${token2}{0,${max}}`).split(`${token2}+`).join(`${token2}{1,${max}}`);
28959
29144
  return value;
28960
29145
  };
28961
- var createToken = (name$2, value, isGlobal) => {
29146
+ var createToken = (name$1, value, isGlobal) => {
28962
29147
  const safe = makeSafeRegex(value);
28963
29148
  const index$1 = R++;
28964
- debug$2(name$2, index$1, value);
28965
- t$1[name$2] = index$1;
29149
+ debug$2(name$1, index$1, value);
29150
+ t$1[name$1] = index$1;
28966
29151
  src[index$1] = value;
28967
29152
  safeSrc[index$1] = safe;
28968
29153
  re[index$1] = new RegExp(value, isGlobal ? "g" : void 0);
@@ -29052,19 +29237,19 @@ var require_semver = __commonJS({ "node_modules/semver/classes/semver.js"(export
29052
29237
  var parseOptions = require_parse_options();
29053
29238
  var { compareIdentifiers } = require_identifiers();
29054
29239
  var SemVer = class _SemVer {
29055
- constructor(version$3, options8) {
29240
+ constructor(version$2, options8) {
29056
29241
  options8 = parseOptions(options8);
29057
- if (version$3 instanceof _SemVer) if (version$3.loose === !!options8.loose && version$3.includePrerelease === !!options8.includePrerelease) return version$3;
29058
- else version$3 = version$3.version;
29059
- else if (typeof version$3 !== "string") throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version$3}".`);
29060
- if (version$3.length > MAX_LENGTH$2) throw new TypeError(`version is longer than ${MAX_LENGTH$2} characters`);
29061
- debug$2("SemVer", version$3, options8);
29242
+ if (version$2 instanceof _SemVer) if (version$2.loose === !!options8.loose && version$2.includePrerelease === !!options8.includePrerelease) return version$2;
29243
+ else version$2 = version$2.version;
29244
+ else if (typeof version$2 !== "string") throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version$2}".`);
29245
+ if (version$2.length > MAX_LENGTH$2) throw new TypeError(`version is longer than ${MAX_LENGTH$2} characters`);
29246
+ debug$2("SemVer", version$2, options8);
29062
29247
  this.options = options8;
29063
29248
  this.loose = !!options8.loose;
29064
29249
  this.includePrerelease = !!options8.includePrerelease;
29065
- const m$2 = version$3.trim().match(options8.loose ? re[t$1.LOOSE] : re[t$1.FULL]);
29066
- if (!m$2) throw new TypeError(`Invalid Version: ${version$3}`);
29067
- this.raw = version$3;
29250
+ const m$2 = version$2.trim().match(options8.loose ? re[t$1.LOOSE] : re[t$1.FULL]);
29251
+ if (!m$2) throw new TypeError(`Invalid Version: ${version$2}`);
29252
+ this.raw = version$2;
29068
29253
  this.major = +m$2[1];
29069
29254
  this.minor = +m$2[2];
29070
29255
  this.patch = +m$2[3];
@@ -29886,7 +30071,7 @@ var require_sigmund = __commonJS({ "node_modules/sigmund/sigmund.js"(exports$2,
29886
30071
  }
29887
30072
  } });
29888
30073
  var require_fnmatch = __commonJS({ "node_modules/editorconfig/src/lib/fnmatch.js"(exports$2, module$1) {
29889
- var platform$1 = typeof process === "object" ? process.platform : "win32";
30074
+ var platform = typeof process === "object" ? process.platform : "win32";
29890
30075
  if (module$1) module$1.exports = minimatch;
29891
30076
  else exports$2.minimatch = minimatch;
29892
30077
  minimatch.Minimatch = Minimatch;
@@ -29962,7 +30147,7 @@ var require_fnmatch = __commonJS({ "node_modules/editorconfig/src/lib/fnmatch.js
29962
30147
  if (!(this instanceof Minimatch)) return new Minimatch(pattern$1, options8, cache3);
29963
30148
  if (typeof pattern$1 !== "string") throw new TypeError("glob pattern string required");
29964
30149
  if (!options8) options8 = {};
29965
- if (platform$1 === "win32") pattern$1 = pattern$1.split("\\").join("/");
30150
+ if (platform === "win32") pattern$1 = pattern$1.split("\\").join("/");
29966
30151
  var cacheKey = pattern$1 + "\n" + sigmund(options8);
29967
30152
  var cached$1 = minimatch.cache.get(cacheKey);
29968
30153
  if (cached$1) return cached$1;
@@ -30297,7 +30482,7 @@ var require_fnmatch = __commonJS({ "node_modules/editorconfig/src/lib/fnmatch.js
30297
30482
  if (this.empty) return f$1 === "";
30298
30483
  if (f$1 === "/" && partial$1) return true;
30299
30484
  var options8 = this.options;
30300
- if (platform$1 === "win32") f$1 = f$1.split("\\").join("/");
30485
+ if (platform === "win32") f$1 = f$1.split("\\").join("/");
30301
30486
  f$1 = f$1.split(slashSplit);
30302
30487
  if (options8.debug) console.error(this.pattern, "split", f$1);
30303
30488
  var set$1 = this.set;
@@ -30765,8 +30950,8 @@ var require_src = __commonJS({ "node_modules/editorconfig/src/index.js"(exports$
30765
30950
  } while (filepath !== options8.root);
30766
30951
  return paths;
30767
30952
  }
30768
- function processMatches(matches, version$3) {
30769
- if ("indent_style" in matches && matches.indent_style === "tab" && !("indent_size" in matches) && semver.gte(version$3, "0.10.0")) matches.indent_size = "tab";
30953
+ function processMatches(matches, version$2) {
30954
+ if ("indent_style" in matches && matches.indent_style === "tab" && !("indent_size" in matches) && semver.gte(version$2, "0.10.0")) matches.indent_size = "tab";
30770
30955
  if ("indent_size" in matches && !("tab_width" in matches) && matches.indent_size !== "tab") matches.tab_width = matches.indent_size;
30771
30956
  if ("indent_size" in matches && "tab_width" in matches && matches.indent_size === "tab") matches.indent_size = matches.tab_width;
30772
30957
  return matches;
@@ -30837,11 +31022,11 @@ var require_src = __commonJS({ "node_modules/editorconfig/src/index.js"(exports$
30837
31022
  function readConfigFiles(filepaths) {
30838
31023
  return __awaiter(this, void 0, void 0, function() {
30839
31024
  return __generator(this, function(_a$2) {
30840
- return [2, Promise.all(filepaths.map(function(name$2) {
31025
+ return [2, Promise.all(filepaths.map(function(name$1) {
30841
31026
  return new Promise(function(resolve3) {
30842
- fs4.readFile(name$2, "utf8", function(err, data) {
31027
+ fs4.readFile(name$1, "utf8", function(err, data) {
30843
31028
  resolve3({
30844
- name: name$2,
31029
+ name: name$1,
30845
31030
  contents: err ? "" : data
30846
31031
  });
30847
31032
  });
@@ -31892,12 +32077,12 @@ var require_identifier = __commonJS({ "node_modules/@babel/helper-validator-iden
31892
32077
  if (code$1 <= 65535) return code$1 >= 170 && nonASCIIidentifier.test(String.fromCharCode(code$1));
31893
32078
  return isInAstralSet(code$1, astralIdentifierStartCodes) || isInAstralSet(code$1, astralIdentifierCodes);
31894
32079
  }
31895
- function isIdentifierName(name$2) {
32080
+ function isIdentifierName(name$1) {
31896
32081
  let isFirst = true;
31897
- for (let i$2 = 0; i$2 < name$2.length; i$2++) {
31898
- let cp = name$2.charCodeAt(i$2);
31899
- if ((cp & 64512) === 55296 && i$2 + 1 < name$2.length) {
31900
- const trail = name$2.charCodeAt(++i$2);
32082
+ for (let i$2 = 0; i$2 < name$1.length; i$2++) {
32083
+ let cp = name$1.charCodeAt(i$2);
32084
+ if ((cp & 64512) === 55296 && i$2 + 1 < name$1.length) {
32085
+ const trail = name$1.charCodeAt(++i$2);
31901
32086
  if ((trail & 64512) === 56320) cp = 65536 + ((cp & 1023) << 10) + (trail & 1023);
31902
32087
  }
31903
32088
  if (isFirst) {
@@ -33087,10 +33272,10 @@ var AnySchema = class extends Schema {
33087
33272
  }
33088
33273
  };
33089
33274
  var ArraySchema = class extends Schema {
33090
- constructor({ valueSchema, name: name$2 = valueSchema.name,...handlers }) {
33275
+ constructor({ valueSchema, name: name$1 = valueSchema.name,...handlers }) {
33091
33276
  super({
33092
33277
  ...handlers,
33093
- name: name$2
33278
+ name: name$1
33094
33279
  });
33095
33280
  this._valueSchema = valueSchema;
33096
33281
  }
@@ -33533,7 +33718,7 @@ var isUrlInstance = (value) => value instanceof URL;
33533
33718
  var isUrlString = (value) => typeof value === "string" && value.startsWith(URL_STRING_PREFIX);
33534
33719
  var isUrl = (urlOrPath) => isUrlInstance(urlOrPath) || isUrlString(urlOrPath);
33535
33720
  var toPath = (urlOrPath) => isUrl(urlOrPath) ? url$1.fileURLToPath(urlOrPath) : urlOrPath;
33536
- var toAbsolutePath = (urlOrPath) => urlOrPath ? path$2.resolve(isUrl(urlOrPath) ? url$1.fileURLToPath(urlOrPath) : urlOrPath) : urlOrPath;
33721
+ var toAbsolutePath = (urlOrPath) => urlOrPath ? path$1.resolve(isUrl(urlOrPath) ? url$1.fileURLToPath(urlOrPath) : urlOrPath) : urlOrPath;
33537
33722
  function partition2(array2, predicate) {
33538
33723
  const result = [[], []];
33539
33724
  for (const value of array2) result[predicate(value) ? 0 : 1].push(value);
@@ -33546,11 +33731,11 @@ var isDirectory = (stats) => stats == null ? void 0 : stats.isDirectory();
33546
33731
  async function findInDirectory(nameOrNames, { typeCheck, cwd, allowSymlinks = true, filter: filter2 }) {
33547
33732
  const directory = toAbsolutePath(cwd) ?? process2.cwd();
33548
33733
  const names = Array.isArray(nameOrNames) ? nameOrNames : [nameOrNames];
33549
- for (const name$2 of names) {
33550
- const fileOrDirectory = path$2.join(directory, name$2);
33734
+ for (const name$1 of names) {
33735
+ const fileOrDirectory = path$1.join(directory, name$1);
33551
33736
  const stats = await safeStat(fileOrDirectory, allowSymlinks);
33552
33737
  if (await typeCheck(stats) && (!filter2 || await filter2({
33553
- name: name$2,
33738
+ name: name$1,
33554
33739
  path: fileOrDirectory,
33555
33740
  stats
33556
33741
  }))) return fileOrDirectory;
@@ -33577,13 +33762,13 @@ function* iterateDirectoryUp(from, to) {
33577
33762
  let directory = toAbsolutePath(from) ?? process2.cwd();
33578
33763
  let stopDirectory = toAbsolutePath(to);
33579
33764
  if (stopDirectory) {
33580
- const relation = path$2.relative(stopDirectory, directory);
33765
+ const relation = path$1.relative(stopDirectory, directory);
33581
33766
  if (relation[0] === "." || relation === directory) return;
33582
33767
  }
33583
- stopDirectory = stopDirectory ? directory.slice(0, stopDirectory.length) : path$2.parse(directory).root;
33768
+ stopDirectory = stopDirectory ? directory.slice(0, stopDirectory.length) : path$1.parse(directory).root;
33584
33769
  while (directory !== stopDirectory) {
33585
33770
  yield directory;
33586
- directory = path$2.dirname(directory);
33771
+ directory = path$1.dirname(directory);
33587
33772
  }
33588
33773
  yield stopDirectory;
33589
33774
  }
@@ -33658,7 +33843,7 @@ var searcher;
33658
33843
  async function findProjectRoot(startDirectory, options8) {
33659
33844
  searcher ?? (searcher = new DirectorySearcher(DIRECTORIES, { allowSymlinks: false }));
33660
33845
  const directory = await searcher.search(startDirectory, { cache: options8.shouldCache });
33661
- return directory ? path$2.dirname(directory) : void 0;
33846
+ return directory ? path$1.dirname(directory) : void 0;
33662
33847
  }
33663
33848
  function clearFindProjectRootCache() {
33664
33849
  searcher == null || searcher.clearCache();
@@ -33763,8 +33948,8 @@ var parse2 = function parse3(text$2, reviver) {
33763
33948
  if (typeof reviver === "function") return internalize({ "": root }, "", reviver);
33764
33949
  return root;
33765
33950
  };
33766
- function internalize(holder, name$2, reviver) {
33767
- const value = holder[name$2];
33951
+ function internalize(holder, name$1, reviver) {
33952
+ const value = holder[name$1];
33768
33953
  if (value != null && typeof value === "object") if (Array.isArray(value)) for (let i$2 = 0; i$2 < value.length; i$2++) {
33769
33954
  const key2 = String(i$2);
33770
33955
  const replacement = internalize(value, key2, reviver);
@@ -33786,7 +33971,7 @@ function internalize(holder, name$2, reviver) {
33786
33971
  configurable: true
33787
33972
  });
33788
33973
  }
33789
- return reviver.call(holder, name$2, value);
33974
+ return reviver.call(holder, name$1, value);
33790
33975
  }
33791
33976
  var lexState;
33792
33977
  var buffer;
@@ -35285,13 +35470,13 @@ var CONFIG_FILE_NAMES = [
35285
35470
  "prettier.config.cts",
35286
35471
  ".prettierrc.toml"
35287
35472
  ];
35288
- async function filter({ name: name$2, path: file$1 }) {
35289
- if (name$2 === "package.json") try {
35473
+ async function filter({ name: name$1, path: file$1 }) {
35474
+ if (name$1 === "package.json") try {
35290
35475
  return Boolean(await loadConfigFromPackageJson(file$1));
35291
35476
  } catch {
35292
35477
  return false;
35293
35478
  }
35294
- if (name$2 === "package.yaml") try {
35479
+ if (name$1 === "package.yaml") try {
35295
35480
  return Boolean(await loadConfigFromPackageYaml(file$1));
35296
35481
  } catch {
35297
35482
  return false;
@@ -35332,14 +35517,14 @@ codes.ERR_INVALID_ARG_TYPE = createError(
35332
35517
  * @param {Array<string> | string} expected
35333
35518
  * @param {unknown} actual
35334
35519
  */
35335
- (name$2, expected, actual) => {
35336
- assert3(typeof name$2 === "string", "'name' must be a string");
35520
+ (name$1, expected, actual) => {
35521
+ assert3(typeof name$1 === "string", "'name' must be a string");
35337
35522
  if (!Array.isArray(expected)) expected = [expected];
35338
35523
  let message = "The ";
35339
- if (name$2.endsWith(" argument")) message += `${name$2} `;
35524
+ if (name$1.endsWith(" argument")) message += `${name$1} `;
35340
35525
  else {
35341
- const type$1 = name$2.includes(".") ? "property" : "argument";
35342
- message += `"${name$2}" ${type$1} `;
35526
+ const type$1 = name$1.includes(".") ? "property" : "argument";
35527
+ message += `"${name$1}" ${type$1} `;
35343
35528
  }
35344
35529
  message += "must be ";
35345
35530
  const types = [];
@@ -35479,11 +35664,11 @@ codes.ERR_INVALID_ARG_VALUE = createError(
35479
35664
  * @param {unknown} value
35480
35665
  * @param {string} [reason='is invalid']
35481
35666
  */
35482
- (name$2, value, reason = "is invalid") => {
35667
+ (name$1, value, reason = "is invalid") => {
35483
35668
  let inspected = inspect(value);
35484
35669
  if (inspected.length > 128) inspected = `${inspected.slice(0, 128)}...`;
35485
- const type$1 = name$2.includes(".") ? "property" : "argument";
35486
- return `The ${type$1} '${name$2}' ${reason}. Received ${inspected}`;
35670
+ const type$1 = name$1.includes(".") ? "property" : "argument";
35671
+ return `The ${type$1} '${name$1}' ${reason}. Received ${inspected}`;
35487
35672
  },
35488
35673
  TypeError
35489
35674
  );
@@ -36007,18 +36192,18 @@ function patternKeyCompare(a$1, b$1) {
36007
36192
  if (b$1.length > a$1.length) return 1;
36008
36193
  return 0;
36009
36194
  }
36010
- function packageImportsResolve(name$2, base, conditions) {
36011
- if (name$2 === "#" || name$2.startsWith("#/") || name$2.endsWith("/")) {
36195
+ function packageImportsResolve(name$1, base, conditions) {
36196
+ if (name$1 === "#" || name$1.startsWith("#/") || name$1.endsWith("/")) {
36012
36197
  const reason = "is not a valid internal imports specifier name";
36013
- throw new ERR_INVALID_MODULE_SPECIFIER(name$2, reason, fileURLToPath$1(base));
36198
+ throw new ERR_INVALID_MODULE_SPECIFIER(name$1, reason, fileURLToPath$1(base));
36014
36199
  }
36015
36200
  let packageJsonUrl;
36016
36201
  const packageConfig = getPackageScopeConfig(base);
36017
36202
  if (packageConfig.exists) {
36018
36203
  packageJsonUrl = pathToFileURL$1(packageConfig.pjsonPath);
36019
36204
  const imports = packageConfig.imports;
36020
- if (imports) if (own2.call(imports, name$2) && !name$2.includes("*")) {
36021
- const resolveResult = resolvePackageTarget(packageJsonUrl, imports[name$2], "", name$2, base, false, true, false, conditions);
36205
+ if (imports) if (own2.call(imports, name$1) && !name$1.includes("*")) {
36206
+ const resolveResult = resolvePackageTarget(packageJsonUrl, imports[name$1], "", name$1, base, false, true, false, conditions);
36022
36207
  if (resolveResult !== null && resolveResult !== void 0) return resolveResult;
36023
36208
  } else {
36024
36209
  let bestMatch = "";
@@ -36028,11 +36213,11 @@ function packageImportsResolve(name$2, base, conditions) {
36028
36213
  while (++i$2 < keys.length) {
36029
36214
  const key2 = keys[i$2];
36030
36215
  const patternIndex = key2.indexOf("*");
36031
- if (patternIndex !== -1 && name$2.startsWith(key2.slice(0, -1))) {
36216
+ if (patternIndex !== -1 && name$1.startsWith(key2.slice(0, -1))) {
36032
36217
  const patternTrailer = key2.slice(patternIndex + 1);
36033
- if (name$2.length >= key2.length && name$2.endsWith(patternTrailer) && patternKeyCompare(bestMatch, key2) === 1 && key2.lastIndexOf("*") === patternIndex) {
36218
+ if (name$1.length >= key2.length && name$1.endsWith(patternTrailer) && patternKeyCompare(bestMatch, key2) === 1 && key2.lastIndexOf("*") === patternIndex) {
36034
36219
  bestMatch = key2;
36035
- bestMatchSubpath = name$2.slice(patternIndex, name$2.length - patternTrailer.length);
36220
+ bestMatchSubpath = name$1.slice(patternIndex, name$1.length - patternTrailer.length);
36036
36221
  }
36037
36222
  }
36038
36223
  }
@@ -36043,7 +36228,7 @@ function packageImportsResolve(name$2, base, conditions) {
36043
36228
  }
36044
36229
  }
36045
36230
  }
36046
- throw importNotDefined(name$2, packageJsonUrl, base);
36231
+ throw importNotDefined(name$1, packageJsonUrl, base);
36047
36232
  }
36048
36233
  function parsePackageName(specifier, base) {
36049
36234
  let separatorIndex = specifier.indexOf("/");
@@ -37365,9 +37550,9 @@ var AstPath = class {
37365
37550
  const { stack: stack2 } = this;
37366
37551
  const { length } = stack2;
37367
37552
  let value = at_default(false, stack2, -1);
37368
- for (const name$2 of names) {
37369
- value = value[name$2];
37370
- stack2.push(name$2, value);
37553
+ for (const name$1 of names) {
37554
+ value = value[name$1];
37555
+ stack2.push(name$1, value);
37371
37556
  }
37372
37557
  try {
37373
37558
  return callback(this);
@@ -37394,9 +37579,9 @@ var AstPath = class {
37394
37579
  const { stack: stack2 } = this;
37395
37580
  const { length } = stack2;
37396
37581
  let value = at_default(false, stack2, -1);
37397
- for (const name$2 of names) {
37398
- value = value[name$2];
37399
- stack2.push(name$2, value);
37582
+ for (const name$1 of names) {
37583
+ value = value[name$1];
37584
+ stack2.push(name$1, value);
37400
37585
  }
37401
37586
  try {
37402
37587
  for (let i$2 = 0; i$2 < value.length; ++i$2) {
@@ -37423,18 +37608,18 @@ var AstPath = class {
37423
37608
  */
37424
37609
  match(...predicates) {
37425
37610
  let stackPointer = this.stack.length - 1;
37426
- let name$2 = null;
37611
+ let name$1 = null;
37427
37612
  let node$1 = this.stack[stackPointer--];
37428
37613
  for (const predicate of predicates) {
37429
37614
  if (node$1 === void 0) return false;
37430
37615
  let number$3 = null;
37431
- if (typeof name$2 === "number") {
37432
- number$3 = name$2;
37433
- name$2 = this.stack[stackPointer--];
37616
+ if (typeof name$1 === "number") {
37617
+ number$3 = name$1;
37618
+ name$1 = this.stack[stackPointer--];
37434
37619
  node$1 = this.stack[stackPointer--];
37435
37620
  }
37436
- if (predicate && !predicate(node$1, name$2, number$3)) return false;
37437
- name$2 = this.stack[stackPointer--];
37621
+ if (predicate && !predicate(node$1, name$1, number$3)) return false;
37622
+ name$1 = this.stack[stackPointer--];
37438
37623
  node$1 = this.stack[stackPointer--];
37439
37624
  }
37440
37625
  return true;
@@ -38144,9 +38329,9 @@ function* collectParsersFromLanguages(parserChoices, languages2, plugins) {
38144
38329
  }
38145
38330
  function normalizeOptionSettings(settings) {
38146
38331
  const options8 = [];
38147
- for (const [name$2, originalOption] of Object.entries(settings)) {
38332
+ for (const [name$1, originalOption] of Object.entries(settings)) {
38148
38333
  const option = {
38149
- name: name$2,
38334
+ name: name$1,
38150
38335
  ...originalOption
38151
38336
  };
38152
38337
  if (Array.isArray(option.default)) option.default = at_default(false, option.default, -1).value;
@@ -38180,11 +38365,11 @@ var getFileBasename = (file$1) => String(file$1).split(/[/\\]/u).pop();
38180
38365
  function getLanguageByFileName(languages2, file$1) {
38181
38366
  if (!file$1) return;
38182
38367
  const basename$1 = getFileBasename(file$1).toLowerCase();
38183
- return languages2.find(({ filenames }) => filenames == null ? void 0 : filenames.some((name$2) => name$2.toLowerCase() === basename$1)) ?? languages2.find(({ extensions }) => extensions == null ? void 0 : extensions.some((extension$1) => basename$1.endsWith(extension$1)));
38368
+ return languages2.find(({ filenames }) => filenames == null ? void 0 : filenames.some((name$1) => name$1.toLowerCase() === basename$1)) ?? languages2.find(({ extensions }) => extensions == null ? void 0 : extensions.some((extension$1) => basename$1.endsWith(extension$1)));
38184
38369
  }
38185
38370
  function getLanguageByLanguageName(languages2, languageName) {
38186
38371
  if (!languageName) return;
38187
- return languages2.find(({ name: name$2 }) => name$2.toLowerCase() === languageName) ?? languages2.find(({ aliases }) => aliases == null ? void 0 : aliases.includes(languageName)) ?? languages2.find(({ extensions }) => extensions == null ? void 0 : extensions.includes(`.${languageName}`));
38372
+ return languages2.find(({ name: name$1 }) => name$1.toLowerCase() === languageName) ?? languages2.find(({ aliases }) => aliases == null ? void 0 : aliases.includes(languageName)) ?? languages2.find(({ extensions }) => extensions == null ? void 0 : extensions.includes(`.${languageName}`));
38188
38373
  }
38189
38374
  function getLanguageByInterpreter(languages2, file$1) {
38190
38375
  if (!file$1 || getFileBasename(file$1).includes(".")) return;
@@ -38211,7 +38396,7 @@ function inferParser(options8, fileInfo) {
38211
38396
  }
38212
38397
  var infer_parser_default = inferParser;
38213
38398
  var hasDeprecationWarned;
38214
- function normalizeOptions$1(options8, optionInfos, { logger: logger$1 = false, isCLI = false, passThrough = false, FlagSchema, descriptor } = {}) {
38399
+ function normalizeOptions(options8, optionInfos, { logger: logger$1 = false, isCLI = false, passThrough = false, FlagSchema, descriptor } = {}) {
38215
38400
  if (isCLI) {
38216
38401
  if (!FlagSchema) throw new Error("'FlagSchema' option is required.");
38217
38402
  if (!descriptor) throw new Error("'descriptor' option is required.");
@@ -38255,8 +38440,8 @@ function optionInfosToSchemas(optionInfos, { isCLI, FlagSchema }) {
38255
38440
  return schemas;
38256
38441
  }
38257
38442
  function optionInfoToSchema(optionInfo, { isCLI, optionInfos, FlagSchema }) {
38258
- const { name: name$2 } = optionInfo;
38259
- const parameters = { name: name$2 };
38443
+ const { name: name$1 } = optionInfo;
38444
+ const parameters = { name: name$1 };
38260
38445
  let SchemaConstructor;
38261
38446
  const handlers = {};
38262
38447
  switch (optionInfo.type) {
@@ -38313,7 +38498,7 @@ function optionInfoToSchema(optionInfo, { isCLI, optionInfos, FlagSchema }) {
38313
38498
  ...handlers
38314
38499
  });
38315
38500
  }
38316
- var normalize_options_default = normalizeOptions$1;
38501
+ var normalize_options_default = normalizeOptions;
38317
38502
  var arrayFindLast = (isOptionalObject, array2, callback) => {
38318
38503
  if (isOptionalObject && (array2 === void 0 || array2 === null)) return;
38319
38504
  if (array2.findLast) return array2.findLast(callback);
@@ -39853,13 +40038,13 @@ function importFromDirectory(specifier, directory) {
39853
40038
  return import_from_file_default(specifier, path10.join(directory, "noop.js"));
39854
40039
  }
39855
40040
  var import_from_directory_default = importFromDirectory;
39856
- async function importPlugin(name$2, cwd) {
39857
- if (isUrl(name$2)) return import(name$2);
39858
- if (path10.isAbsolute(name$2)) return import(pathToFileURL$1(name$2).href);
40041
+ async function importPlugin(name$1, cwd) {
40042
+ if (isUrl(name$1)) return import(name$1);
40043
+ if (path10.isAbsolute(name$1)) return import(pathToFileURL$1(name$1).href);
39859
40044
  try {
39860
- return await import(pathToFileURL$1(path10.resolve(name$2)).href);
40045
+ return await import(pathToFileURL$1(path10.resolve(name$1)).href);
39861
40046
  } catch {
39862
- return import_from_directory_default(name$2, cwd);
40047
+ return import_from_directory_default(name$1, cwd);
39863
40048
  }
39864
40049
  }
39865
40050
  async function loadPluginWithoutCache(plugin, cwd) {
@@ -40620,7 +40805,7 @@ async function confirmAction(filesToUpdate, options$1) {
40620
40805
  checked: file$1.safe || !!options$1.allowUnsafe
40621
40806
  });
40622
40807
  }
40623
- const selectedFiles = await esm_default$1({
40808
+ const selectedFiles = await esm_default$2({
40624
40809
  message: [options$1.topMessage, "The following files will be overwritten:\n"].filter(Boolean).join("\n"),
40625
40810
  choices,
40626
40811
  pageSize: process.stdout.rows > 0 ? process.stdout.rows - 4 : filesToUpdate.length
@@ -40915,9 +41100,9 @@ var __privateAdd = (obj, member, value) => {
40915
41100
  if (member.has(obj)) throw TypeError("Cannot add the same private member more than once");
40916
41101
  member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
40917
41102
  };
40918
- var __privateMethod = (obj, member, method$1) => {
41103
+ var __privateMethod = (obj, member, method) => {
40919
41104
  __accessCheck(obj, member, "access private method");
40920
- return method$1;
41105
+ return method;
40921
41106
  };
40922
41107
  /**
40923
41108
  * @license
@@ -41416,177 +41601,8 @@ function effect(cb) {
41416
41601
  };
41417
41602
  }
41418
41603
 
41419
- //#endregion
41420
- //#region ../../node_modules/.pnpm/@parcel+watcher@2.5.1/node_modules/@parcel/watcher/wrapper.js
41421
- var require_wrapper = __commonJS$2({ "../../node_modules/.pnpm/@parcel+watcher@2.5.1/node_modules/@parcel/watcher/wrapper.js"(exports) {
41422
- const path$1 = __require$1("path");
41423
- const micromatch$1 = require_micromatch$1();
41424
- const isGlob = require_is_glob$1();
41425
- function normalizeOptions(dir, opts = {}) {
41426
- const { ignore,...rest } = opts;
41427
- if (Array.isArray(ignore)) {
41428
- opts = { ...rest };
41429
- for (const value of ignore) if (isGlob(value)) {
41430
- if (!opts.ignoreGlobs) opts.ignoreGlobs = [];
41431
- const regex$1 = micromatch$1.makeRe(value, {
41432
- dot: true,
41433
- lookbehinds: false
41434
- });
41435
- opts.ignoreGlobs.push(regex$1.source);
41436
- } else {
41437
- if (!opts.ignorePaths) opts.ignorePaths = [];
41438
- opts.ignorePaths.push(path$1.resolve(dir, value));
41439
- }
41440
- }
41441
- return opts;
41442
- }
41443
- exports.createWrapper = (binding$1) => {
41444
- return {
41445
- writeSnapshot(dir, snapshot, opts) {
41446
- return binding$1.writeSnapshot(path$1.resolve(dir), path$1.resolve(snapshot), normalizeOptions(dir, opts));
41447
- },
41448
- getEventsSince(dir, snapshot, opts) {
41449
- return binding$1.getEventsSince(path$1.resolve(dir), path$1.resolve(snapshot), normalizeOptions(dir, opts));
41450
- },
41451
- async subscribe(dir, fn, opts) {
41452
- dir = path$1.resolve(dir);
41453
- opts = normalizeOptions(dir, opts);
41454
- await binding$1.subscribe(dir, fn, opts);
41455
- return { unsubscribe() {
41456
- return binding$1.unsubscribe(dir, fn, opts);
41457
- } };
41458
- },
41459
- unsubscribe(dir, fn, opts) {
41460
- return binding$1.unsubscribe(path$1.resolve(dir), fn, normalizeOptions(dir, opts));
41461
- }
41462
- };
41463
- };
41464
- } });
41465
-
41466
- //#endregion
41467
- //#region ../../node_modules/.pnpm/detect-libc@1.0.3/node_modules/detect-libc/lib/detect-libc.js
41468
- var require_detect_libc = __commonJS$2({ "../../node_modules/.pnpm/detect-libc@1.0.3/node_modules/detect-libc/lib/detect-libc.js"(exports, module) {
41469
- var platform = __require$1("os").platform();
41470
- var spawnSync = __require$1("child_process").spawnSync;
41471
- var readdirSync$2 = __require$1("fs").readdirSync;
41472
- var GLIBC = "glibc";
41473
- var MUSL = "musl";
41474
- var spawnOptions = {
41475
- encoding: "utf8",
41476
- env: process.env
41477
- };
41478
- if (!spawnSync) spawnSync = function() {
41479
- return {
41480
- status: 126,
41481
- stdout: "",
41482
- stderr: ""
41483
- };
41484
- };
41485
- function contains(needle) {
41486
- return function(haystack) {
41487
- return haystack.indexOf(needle) !== -1;
41488
- };
41489
- }
41490
- function versionFromMuslLdd(out) {
41491
- return out.split(/[\r\n]+/)[1].trim().split(/\s/)[1];
41492
- }
41493
- function safeReaddirSync(path$13) {
41494
- try {
41495
- return readdirSync$2(path$13);
41496
- } catch (e$1) {}
41497
- return [];
41498
- }
41499
- var family = "";
41500
- var version$1 = "";
41501
- var method = "";
41502
- if (platform === "linux") {
41503
- var glibc = spawnSync("getconf", ["GNU_LIBC_VERSION"], spawnOptions);
41504
- if (glibc.status === 0) {
41505
- family = GLIBC;
41506
- version$1 = glibc.stdout.trim().split(" ")[1];
41507
- method = "getconf";
41508
- } else {
41509
- var ldd = spawnSync("ldd", ["--version"], spawnOptions);
41510
- if (ldd.status === 0 && ldd.stdout.indexOf(MUSL) !== -1) {
41511
- family = MUSL;
41512
- version$1 = versionFromMuslLdd(ldd.stdout);
41513
- method = "ldd";
41514
- } else if (ldd.status === 1 && ldd.stderr.indexOf(MUSL) !== -1) {
41515
- family = MUSL;
41516
- version$1 = versionFromMuslLdd(ldd.stderr);
41517
- method = "ldd";
41518
- } else {
41519
- var lib = safeReaddirSync("/lib");
41520
- if (lib.some(contains("-linux-gnu"))) {
41521
- family = GLIBC;
41522
- method = "filesystem";
41523
- } else if (lib.some(contains("libc.musl-"))) {
41524
- family = MUSL;
41525
- method = "filesystem";
41526
- } else if (lib.some(contains("ld-musl-"))) {
41527
- family = MUSL;
41528
- method = "filesystem";
41529
- } else {
41530
- var usrSbin = safeReaddirSync("/usr/sbin");
41531
- if (usrSbin.some(contains("glibc"))) {
41532
- family = GLIBC;
41533
- method = "filesystem";
41534
- }
41535
- }
41536
- }
41537
- }
41538
- }
41539
- var isNonGlibcLinux = family !== "" && family !== GLIBC;
41540
- module.exports = {
41541
- GLIBC,
41542
- MUSL,
41543
- family,
41544
- version: version$1,
41545
- method,
41546
- isNonGlibcLinux
41547
- };
41548
- } });
41549
-
41550
- //#endregion
41551
- //#region ../../node_modules/.pnpm/@parcel+watcher@2.5.1/node_modules/@parcel/watcher/index.js
41552
- var require_watcher = __commonJS$2({ "../../node_modules/.pnpm/@parcel+watcher@2.5.1/node_modules/@parcel/watcher/index.js"(exports) {
41553
- const { createWrapper } = require_wrapper();
41554
- let name = `@parcel/watcher-${process.platform}-${process.arch}`;
41555
- if (process.platform === "linux") {
41556
- const { MUSL: MUSL$1, family: family$1 } = require_detect_libc();
41557
- if (family$1 === MUSL$1) name += "-musl";
41558
- else name += "-glibc";
41559
- }
41560
- let binding;
41561
- try {
41562
- binding = __require$1(name);
41563
- } catch (err) {
41564
- handleError(err);
41565
- try {
41566
- binding = __require$1("./build/Release/watcher.node");
41567
- } catch (err$1) {
41568
- handleError(err$1);
41569
- try {
41570
- binding = __require$1("./build/Debug/watcher.node");
41571
- } catch (err$2) {
41572
- handleError(err$2);
41573
- throw new Error(`No prebuild or local build of @parcel/watcher found. Tried ${name}. Please ensure it is installed (don't use --no-optional when installing with npm). Otherwise it is possible we don't support your platform yet. If this is the case, please report an issue to https://github.com/parcel-bundler/watcher.`);
41574
- }
41575
- }
41576
- }
41577
- function handleError(err) {
41578
- if (err?.code !== "MODULE_NOT_FOUND") throw err;
41579
- }
41580
- const wrapper = createWrapper(binding);
41581
- exports.writeSnapshot = wrapper.writeSnapshot;
41582
- exports.getEventsSince = wrapper.getEventsSince;
41583
- exports.subscribe = wrapper.subscribe;
41584
- exports.unsubscribe = wrapper.unsubscribe;
41585
- } });
41586
-
41587
41604
  //#endregion
41588
41605
  //#region ../dev/dist/reactive-fs/reactive-fs.js
41589
- var import_watcher = __toESM$1(require_watcher(), 1);
41590
41606
  const ONCE_AC = createAcontext("ONCE", () => false);
41591
41607
  const getFileState = (filepath, once$1 = ONCE_AC.get()) => {
41592
41608
  const fileState = new Signal.State(readFileSync(filepath, "utf-8"));
@@ -41611,7 +41627,7 @@ const dirGlobState = (dirname$2, glob, once$1 = ONCE_AC.get()) => {
41611
41627
  } });
41612
41628
  if (!once$1) {
41613
41629
  const off = effect(async () => {
41614
- const sub = await import_watcher.subscribe(dirname$2, (err, events) => {
41630
+ const sub = await parcelWatcher.subscribe(dirname$2, (err, events) => {
41615
41631
  if (events.some((event) => event.type === "create" || event.type === "delete")) try {
41616
41632
  dirState.set(globbySync(glob, { cwd: dirname$2 }));
41617
41633
  } catch {
@@ -41640,6 +41656,12 @@ const reactiveFs = {
41640
41656
  use: useReactiveFs
41641
41657
  };
41642
41658
 
41659
+ //#endregion
41660
+ //#region ../dev/dist/utils/resolver.js
41661
+ const projectResolver = createResolverByRootFile(import.meta.url, "package.json");
41662
+ const defaultAssetsResolver = createResolver(projectResolver("assets"));
41663
+ let assetsResolver = defaultAssetsResolver;
41664
+
41643
41665
  //#endregion
41644
41666
  //#region ../dev/dist/gen-prompt/file-tree.js
41645
41667
  function buildTree(node$1, indentation, outputLines, expandDirectories) {
@@ -41742,8 +41764,7 @@ const paramsToGlobbyOptions = (params, defaults$4 = {}) => {
41742
41764
  //#endregion
41743
41765
  //#region ../dev/dist/gen-prompt/replacers/file-replacer.js
41744
41766
  const fetchCache = /* @__PURE__ */ new Map();
41745
- const projectResolver = createResolverByRootFile(import.meta.url, "package.json");
41746
- const GET_JIXO_PROMPT = func_remember(() => readJson(projectResolver("./assets/prompt.json")));
41767
+ const GET_JIXO_PROMPT = func_remember(() => readJson(assetsResolver("prompt.json")));
41747
41768
  /**
41748
41769
  * A utility function to format the file content output in a standardized way.
41749
41770
  * It handles markdown code blocks and optional prefixes.
@@ -41789,11 +41810,11 @@ const handleFileReplacement = async ({ globOrFilepath, mode, params, once: once$
41789
41810
  lang: params[`mime_${urlRes.res.headers.get("content-type")?.split(";")}_lang`] ?? params.lang
41790
41811
  });
41791
41812
  }
41792
- const isGlob$2 = isDynamicPattern(globOrFilepath);
41813
+ const isGlob$1 = isDynamicPattern(globOrFilepath);
41793
41814
  const isInsideBaseDir = (targetPath) => normalizeFilePath(path.resolve(baseDir, targetPath)).startsWith(normalizeFilePath(baseDir) + "/");
41794
- const isOutBaseDirFile = !isGlob$2 && !isInsideBaseDir(globOrFilepath);
41815
+ const isOutBaseDirFile = !isGlob$1 && !isInsideBaseDir(globOrFilepath);
41795
41816
  const files$1 = isOutBaseDirFile ? [globOrFilepath] : globbySync(globOrFilepath, paramsToGlobbyOptions(params, {
41796
- gitignore: isGlob$2 ? true : false,
41817
+ gitignore: isGlob$1 ? true : false,
41797
41818
  cwd: baseDir
41798
41819
  }));
41799
41820
  if (files$1.length === 0) return `<!-- No files found for pattern: ${globOrFilepath} -->`;
@@ -41828,13 +41849,13 @@ const handleFileReplacement = async ({ globOrFilepath, mode, params, once: once$
41828
41849
  async function gitCommitContents(repoPath, commitRef, filePaths) {
41829
41850
  if (filePaths.length === 0) return [];
41830
41851
  return new Promise((resolve$1, reject) => {
41831
- const resultsMap = new Map(filePaths.map((path$13) => [path$13, {
41832
- path: path$13,
41852
+ const resultsMap = new Map(filePaths.map((path$12) => [path$12, {
41853
+ path: path$12,
41833
41854
  content: void 0,
41834
41855
  status: "M"
41835
41856
  }]));
41836
41857
  const gitProcess = spawn("git", ["cat-file", "--batch"], { cwd: repoPath });
41837
- const requests = filePaths.map((path$13) => `${commitRef}:${path$13}\n`).join("");
41858
+ const requests = filePaths.map((path$12) => `${commitRef}:${path$12}\n`).join("");
41838
41859
  let stdoutBuffer = Buffer.alloc(0);
41839
41860
  let stderrOutput = "";
41840
41861
  gitProcess.stdout.on("data", (chunk) => {
@@ -41849,13 +41870,13 @@ async function gitCommitContents(repoPath, commitRef, filePaths) {
41849
41870
  gitProcess.on("close", (code$1) => {
41850
41871
  if (code$1 !== 0 && stdoutBuffer.length === 0) return reject(/* @__PURE__ */ new Error(`'git cat-file' process exited with code ${code$1}. Stderr: ${stderrOutput}`));
41851
41872
  let offset = 0;
41852
- for (const path$13 of filePaths) {
41873
+ for (const path$12 of filePaths) {
41853
41874
  if (offset >= stdoutBuffer.length) break;
41854
41875
  const newlineIndex = stdoutBuffer.indexOf("\n", offset);
41855
41876
  if (newlineIndex === -1) break;
41856
41877
  const header = stdoutBuffer.toString("utf8", offset, newlineIndex);
41857
41878
  offset = newlineIndex + 1;
41858
- const result = resultsMap.get(path$13);
41879
+ const result = resultsMap.get(path$12);
41859
41880
  if (header.endsWith(" missing")) result.status = "D";
41860
41881
  else {
41861
41882
  const [, type$1, sizeStr] = header.split(" ");
@@ -41984,10 +42005,10 @@ async function gitCommitDiffs(repoPath, commitRef, filePaths) {
41984
42005
  const firstLine = fullDiff.substring(0, fullDiff.indexOf("\n"));
41985
42006
  const pathMatch = firstLine.match(/ b\/(.*)$/s);
41986
42007
  if (pathMatch) {
41987
- const path$13 = pathMatch[1].trim();
41988
- const status = changedFilesMap.get(path$13);
42008
+ const path$12 = pathMatch[1].trim();
42009
+ const status = changedFilesMap.get(path$12);
41989
42010
  if (status) diffs.push({
41990
- path: path$13,
42011
+ path: path$12,
41991
42012
  status,
41992
42013
  diff: simplifyDiffForAI(fullDiff)
41993
42014
  });
@@ -42053,7 +42074,6 @@ async function gitWorkingContents(repoPath, options$1) {
42053
42074
  content: status === "D" ? void 0 : await fsPromises.readFile(path.join(repoPath, filepath), "utf-8"),
42054
42075
  status
42055
42076
  });
42056
- console.log("QAQ results.size", results.size);
42057
42077
  };
42058
42078
  }), 10);
42059
42079
  return [...results.values()];
@@ -42106,10 +42126,10 @@ async function gitWorkingDiffs(repoPath, options$1) {
42106
42126
  const firstLine = fullDiff.substring(0, fullDiff.indexOf("\n"));
42107
42127
  const pathMatch = firstLine.match(/ b\/(.*)$/s);
42108
42128
  if (pathMatch) {
42109
- const path$13 = pathMatch[1].trim();
42110
- const status = trackedChanges.get(path$13);
42129
+ const path$12 = pathMatch[1].trim();
42130
+ const status = trackedChanges.get(path$12);
42111
42131
  if (status) diffs.push({
42112
- path: path$13,
42132
+ path: path$12,
42113
42133
  status,
42114
42134
  diff: simplifyDiffForAI(fullDiff)
42115
42135
  });
@@ -42119,15 +42139,15 @@ async function gitWorkingDiffs(repoPath, options$1) {
42119
42139
  });
42120
42140
  diffPromises.push(promise$2);
42121
42141
  }
42122
- untrackedFiles.forEach((path$13) => {
42123
- const absolutePath = join(repoPath, path$13);
42142
+ untrackedFiles.forEach((path$12) => {
42143
+ const absolutePath = join(repoPath, path$12);
42124
42144
  const promise$2 = promises.readFile(absolutePath, "utf-8").then((content$2) => {
42125
42145
  const lines = content$2.split("\n");
42126
42146
  const hunkHeader = `@@ -0,0 +1,${lines.length} @@`;
42127
42147
  const diffBody = lines.map((line$2) => `+${line$2}`).join("\n");
42128
42148
  const simplifiedDiff = `${hunkHeader}\n${diffBody}`;
42129
42149
  return {
42130
- path: path$13,
42150
+ path: path$12,
42131
42151
  status: "A",
42132
42152
  diff: simplifiedDiff
42133
42153
  };
@@ -48460,8 +48480,8 @@ function tokenizeHtmlFlow(effects, ok$1, nok) {
48460
48480
  function tagName(code$1) {
48461
48481
  if (code$1 === null || code$1 === 47 || code$1 === 62 || markdownLineEndingOrSpace(code$1)) {
48462
48482
  const slash$3 = code$1 === 47;
48463
- const name$2 = buffer$1.toLowerCase();
48464
- if (!slash$3 && !closingTag && htmlRawNames.includes(name$2)) {
48483
+ const name$1 = buffer$1.toLowerCase();
48484
+ if (!slash$3 && !closingTag && htmlRawNames.includes(name$1)) {
48465
48485
  marker = 1;
48466
48486
  return self.interrupt ? ok$1(code$1) : continuation(code$1);
48467
48487
  }
@@ -48849,8 +48869,8 @@ function tokenizeHtmlFlow(effects, ok$1, nok) {
48849
48869
  */
48850
48870
  function continuationRawEndTag(code$1) {
48851
48871
  if (code$1 === 62) {
48852
- const name$2 = buffer$1.toLowerCase();
48853
- if (htmlRawNames.includes(name$2)) {
48872
+ const name$1 = buffer$1.toLowerCase();
48873
+ if (htmlRawNames.includes(name$1)) {
48854
48874
  effects.consume(code$1);
48855
48875
  return continuationClose;
48856
48876
  }
@@ -52779,8 +52799,8 @@ function visitParents(tree, test, visitor, reverse) {
52779
52799
  function factory$1(node$1, index$1, parents) {
52780
52800
  const value = node$1 && typeof node$1 === "object" ? node$1 : {};
52781
52801
  if (typeof value.type === "string") {
52782
- const name$2 = typeof value.tagName === "string" ? value.tagName : typeof value.name === "string" ? value.name : void 0;
52783
- Object.defineProperty(visit$1, "name", { value: "node (" + color(node$1.type + (name$2 ? "<" + name$2 + ">" : "")) + ")" });
52802
+ const name$1 = typeof value.tagName === "string" ? value.tagName : typeof value.name === "string" ? value.name : void 0;
52803
+ Object.defineProperty(visit$1, "name", { value: "node (" + color(node$1.type + (name$1 ? "<" + name$1 + ">" : "")) + ")" });
52784
52804
  }
52785
52805
  return visit$1;
52786
52806
  function visit$1() {
@@ -53015,7 +53035,7 @@ const doGenPrompts = async (argv) => {
53015
53035
  else console.error(`Error: Input '${input}' not found and did not match any files.`);
53016
53036
  }
53017
53037
  }
53018
- if (argv.watch) console.log("\nWatching for file changes... Press Ctrl+C to exit.");
53038
+ if (argv.watch) console.log(gray("\nWatching for file changes... Press Ctrl+C to exit."));
53019
53039
  };
53020
53040
 
53021
53041
  //#endregion
@@ -53056,405 +53076,11 @@ const genCommand = {
53056
53076
  }
53057
53077
  };
53058
53078
 
53059
- //#endregion
53060
- //#region ../../node_modules/.pnpm/@jsr+std__cli@1.0.20/node_modules/@jsr/std__cli/parse_args.js
53061
- /**
53062
- * Command line arguments parser based on
53063
- * {@link https://github.com/minimistjs/minimist | minimist}.
53064
- *
53065
- * See {@linkcode parseArgs} for more information.
53066
- *
53067
- * @example Usage
53068
- * ```ts
53069
- * import { parseArgs } from "@std/cli/parse-args";
53070
- * import { assertEquals } from "@std/assert/equals";
53071
- *
53072
- * // For proper use, one should use `parseArgs(Deno.args)`
53073
- * assertEquals(parseArgs(["--foo", "--bar=baz", "./quux.txt"]), {
53074
- * foo: true,
53075
- * bar: "baz",
53076
- * _: ["./quux.txt"],
53077
- * });
53078
- * ```
53079
- *
53080
- * @example `string` and `boolean` options
53081
- *
53082
- * Use `string` and `boolean` options to specify the type of the argument.
53083
- *
53084
- * ```ts
53085
- * import { parseArgs } from "@std/cli/parse-args";
53086
- * import { assertEquals } from "@std/assert/equals";
53087
- *
53088
- * const args = parseArgs(["--foo", "--bar", "baz"], {
53089
- * boolean: ["foo"],
53090
- * string: ["bar"],
53091
- * });
53092
- *
53093
- * assertEquals(args, { foo: true, bar: "baz", _: [] });
53094
- * ```
53095
- *
53096
- * @example `collect` option
53097
- *
53098
- * `collect` option tells the parser to treat the option as an array. All
53099
- * values will be collected into one array. If a non-collectable option is used
53100
- * multiple times, the last value is used.
53101
- *
53102
- * ```ts
53103
- * import { parseArgs } from "@std/cli/parse-args";
53104
- * import { assertEquals } from "@std/assert/equals";
53105
- *
53106
- * const args = parseArgs(["--foo", "bar", "--foo", "baz"], {
53107
- * collect: ["foo"],
53108
- * });
53109
- *
53110
- * assertEquals(args, { foo: ["bar", "baz"], _: [] });
53111
- * ```
53112
- *
53113
- * @example `negatable` option
53114
- *
53115
- * `negatable` option tells the parser to treat the option can be negated by
53116
- * prefixing them with `--no-`, like `--no-config`.
53117
- *
53118
- * ```ts
53119
- * import { parseArgs } from "@std/cli/parse-args";
53120
- * import { assertEquals } from "@std/assert/equals";
53121
- *
53122
- * const args = parseArgs(["--no-foo"], {
53123
- * boolean: ["foo"],
53124
- * negatable: ["foo"],
53125
- * });
53126
- *
53127
- * assertEquals(args, { foo: false, _: [] });
53128
- * ```
53129
- *
53130
- * @module
53131
- */
53132
- /** Combines recursively all intersection types and returns a new single type.
53133
- * @internal
53134
- */ const FLAG_REGEXP = /^(?:-(?:(?<doubleDash>-)(?<negated>no-)?)?)(?<key>.+?)(?:=(?<value>.+?))?$/s;
53135
- const LETTER_REGEXP = /[A-Za-z]/;
53136
- const NUMBER_REGEXP = /-?\d+(\.\d*)?(e-?\d+)?$/;
53137
- const HYPHEN_REGEXP = /^(-|--)[^-]/;
53138
- const VALUE_REGEXP = /=(?<value>.+)/;
53139
- const FLAG_NAME_REGEXP = /^--[^=]+$/;
53140
- const SPECIAL_CHAR_REGEXP = /\W/;
53141
- const NON_WHITESPACE_REGEXP = /\S/;
53142
- function isNumber(string$6) {
53143
- return NON_WHITESPACE_REGEXP.test(string$6) && Number.isFinite(Number(string$6));
53144
- }
53145
- function setNested(object$1, keys, value, collect = false) {
53146
- keys = [...keys];
53147
- const key$1 = keys.pop();
53148
- keys.forEach((key$2) => object$1 = object$1[key$2] ??= {});
53149
- if (collect) {
53150
- const v$1 = object$1[key$1];
53151
- if (Array.isArray(v$1)) {
53152
- v$1.push(value);
53153
- return;
53154
- }
53155
- value = v$1 ? [v$1, value] : [value];
53156
- }
53157
- object$1[key$1] = value;
53158
- }
53159
- function hasNested(object$1, keys) {
53160
- for (const key$1 of keys) {
53161
- const value = object$1[key$1];
53162
- if (!Object.hasOwn(object$1, key$1)) return false;
53163
- object$1 = value;
53164
- }
53165
- return true;
53166
- }
53167
- function aliasIsBoolean(aliasMap, booleanSet, key$1) {
53168
- const set$1 = aliasMap.get(key$1);
53169
- if (set$1 === void 0) return false;
53170
- for (const alias of set$1) if (booleanSet.has(alias)) return true;
53171
- return false;
53172
- }
53173
- function isBooleanString(value) {
53174
- return value === "true" || value === "false";
53175
- }
53176
- function parseBooleanString(value) {
53177
- return value !== "false";
53178
- }
53179
- /**
53180
- * Take a set of command line arguments, optionally with a set of options, and
53181
- * return an object representing the flags found in the passed arguments.
53182
- *
53183
- * By default, any arguments starting with `-` or `--` are considered boolean
53184
- * flags. If the argument name is followed by an equal sign (`=`) it is
53185
- * considered a key-value pair. Any arguments which could not be parsed are
53186
- * available in the `_` property of the returned object.
53187
- *
53188
- * By default, this module tries to determine the type of all arguments
53189
- * automatically and the return type of this function will have an index
53190
- * signature with `any` as value (`{ [x: string]: any }`).
53191
- *
53192
- * If the `string`, `boolean` or `collect` option is set, the return value of
53193
- * this function will be fully typed and the index signature of the return
53194
- * type will change to `{ [x: string]: unknown }`.
53195
- *
53196
- * Any arguments after `'--'` will not be parsed and will end up in `parsedArgs._`.
53197
- *
53198
- * Numeric-looking arguments will be returned as numbers unless `options.string`
53199
- * or `options.boolean` is set for that argument name.
53200
- *
53201
- * See {@linkcode ParseOptions} for more information.
53202
- *
53203
- * @param args An array of command line arguments.
53204
- * @param options Options for the parse function.
53205
- *
53206
- * @typeParam TArgs Type of result.
53207
- * @typeParam TDoubleDash Used by `TArgs` for the result.
53208
- * @typeParam TBooleans Used by `TArgs` for the result.
53209
- * @typeParam TStrings Used by `TArgs` for the result.
53210
- * @typeParam TCollectable Used by `TArgs` for the result.
53211
- * @typeParam TNegatable Used by `TArgs` for the result.
53212
- * @typeParam TDefaults Used by `TArgs` for the result.
53213
- * @typeParam TAliases Used by `TArgs` for the result.
53214
- * @typeParam TAliasArgNames Used by `TArgs` for the result.
53215
- * @typeParam TAliasNames Used by `TArgs` for the result.
53216
- *
53217
- * @return The parsed arguments.
53218
- *
53219
- * @example Usage
53220
- * ```ts
53221
- * import { parseArgs } from "@std/cli/parse-args";
53222
- * import { assertEquals } from "@std/assert/equals";
53223
- *
53224
- * // For proper use, one should use `parseArgs(Deno.args)`
53225
- * assertEquals(parseArgs(["--foo", "--bar=baz", "./quux.txt"]), {
53226
- * foo: true,
53227
- * bar: "baz",
53228
- * _: ["./quux.txt"],
53229
- * });
53230
- * ```
53231
- *
53232
- * @example `string` and `boolean` options
53233
- *
53234
- * Use `string` and `boolean` options to specify the type of the argument.
53235
- *
53236
- * ```ts
53237
- * import { parseArgs } from "@std/cli/parse-args";
53238
- * import { assertEquals } from "@std/assert/equals";
53239
- *
53240
- * const args = parseArgs(["--foo", "--bar", "baz"], {
53241
- * boolean: ["foo"],
53242
- * string: ["bar"],
53243
- * });
53244
- *
53245
- * assertEquals(args, { foo: true, bar: "baz", _: [] });
53246
- * ```
53247
- *
53248
- * @example `collect` option
53249
- *
53250
- * `collect` option tells the parser to treat the option as an array. All
53251
- * values will be collected into one array. If a non-collectable option is used
53252
- * multiple times, the last value is used.
53253
- *
53254
- * ```ts
53255
- * import { parseArgs } from "@std/cli/parse-args";
53256
- * import { assertEquals } from "@std/assert/equals";
53257
- *
53258
- * const args = parseArgs(["--foo", "bar", "--foo", "baz"], {
53259
- * collect: ["foo"],
53260
- * });
53261
- *
53262
- * assertEquals(args, { foo: ["bar", "baz"], _: [] });
53263
- * ```
53264
- *
53265
- * @example `negatable` option
53266
- *
53267
- * `negatable` option tells the parser to treat the option can be negated by
53268
- * prefixing them with `--no-`, like `--no-config`.
53269
- *
53270
- * ```ts
53271
- * import { parseArgs } from "@std/cli/parse-args";
53272
- * import { assertEquals } from "@std/assert/equals";
53273
- *
53274
- * const args = parseArgs(["--no-foo"], {
53275
- * boolean: ["foo"],
53276
- * negatable: ["foo"],
53277
- * });
53278
- *
53279
- * assertEquals(args, { foo: false, _: [] });
53280
- * ```
53281
- */ function parseArgs(args, options$1) {
53282
- const { "--": doubleDash = false, alias = {}, boolean: boolean$3 = false, default: defaults$4 = {}, stopEarly = false, string: string$6 = [], collect = [], negatable = [], unknown: unknownFn = (i$2) => i$2 } = options$1 ?? {};
53283
- const aliasMap = /* @__PURE__ */ new Map();
53284
- const booleanSet = /* @__PURE__ */ new Set();
53285
- const stringSet = /* @__PURE__ */ new Set();
53286
- const collectSet = /* @__PURE__ */ new Set();
53287
- const negatableSet = /* @__PURE__ */ new Set();
53288
- let allBools = false;
53289
- if (alias) for (const [key$1, value] of Object.entries(alias)) {
53290
- if (value === void 0) throw new TypeError("Alias value must be defined");
53291
- const aliases = Array.isArray(value) ? value : [value];
53292
- aliasMap.set(key$1, new Set(aliases));
53293
- aliases.forEach((alias$1) => aliasMap.set(alias$1, new Set([key$1, ...aliases.filter((it) => it !== alias$1)])));
53294
- }
53295
- if (boolean$3) if (typeof boolean$3 === "boolean") allBools = boolean$3;
53296
- else {
53297
- const booleanArgs = Array.isArray(boolean$3) ? boolean$3 : [boolean$3];
53298
- for (const key$1 of booleanArgs.filter(Boolean)) {
53299
- booleanSet.add(key$1);
53300
- aliasMap.get(key$1)?.forEach((al) => {
53301
- booleanSet.add(al);
53302
- });
53303
- }
53304
- }
53305
- if (string$6) {
53306
- const stringArgs = Array.isArray(string$6) ? string$6 : [string$6];
53307
- for (const key$1 of stringArgs.filter(Boolean)) {
53308
- stringSet.add(key$1);
53309
- aliasMap.get(key$1)?.forEach((al) => stringSet.add(al));
53310
- }
53311
- }
53312
- if (collect) {
53313
- const collectArgs = Array.isArray(collect) ? collect : [collect];
53314
- for (const key$1 of collectArgs.filter(Boolean)) {
53315
- collectSet.add(key$1);
53316
- aliasMap.get(key$1)?.forEach((al) => collectSet.add(al));
53317
- }
53318
- }
53319
- if (negatable) {
53320
- const negatableArgs = Array.isArray(negatable) ? negatable : [negatable];
53321
- for (const key$1 of negatableArgs.filter(Boolean)) {
53322
- negatableSet.add(key$1);
53323
- aliasMap.get(key$1)?.forEach((alias$1) => negatableSet.add(alias$1));
53324
- }
53325
- }
53326
- const argv = { _: [] };
53327
- function setArgument(key$1, value, arg, collect$1) {
53328
- if (!booleanSet.has(key$1) && !stringSet.has(key$1) && !aliasMap.has(key$1) && !(allBools && FLAG_NAME_REGEXP.test(arg)) && unknownFn?.(arg, key$1, value) === false) return;
53329
- if (typeof value === "string" && !stringSet.has(key$1)) value = isNumber(value) ? Number(value) : value;
53330
- const collectable = collect$1 && collectSet.has(key$1);
53331
- setNested(argv, key$1.split("."), value, collectable);
53332
- aliasMap.get(key$1)?.forEach((key$2) => {
53333
- setNested(argv, key$2.split("."), value, collectable);
53334
- });
53335
- }
53336
- let notFlags = [];
53337
- const index$1 = args.indexOf("--");
53338
- if (index$1 !== -1) {
53339
- notFlags = args.slice(index$1 + 1);
53340
- args = args.slice(0, index$1);
53341
- }
53342
- argsLoop: for (let i$2 = 0; i$2 < args.length; i$2++) {
53343
- const arg = args[i$2];
53344
- const groups = arg.match(FLAG_REGEXP)?.groups;
53345
- if (groups) {
53346
- const { doubleDash: doubleDash$1, negated } = groups;
53347
- let key$1 = groups.key;
53348
- let value = groups.value;
53349
- if (doubleDash$1) {
53350
- if (value) {
53351
- if (booleanSet.has(key$1)) value = parseBooleanString(value);
53352
- setArgument(key$1, value, arg, true);
53353
- continue;
53354
- }
53355
- if (negated) {
53356
- if (negatableSet.has(key$1)) {
53357
- setArgument(key$1, false, arg, false);
53358
- continue;
53359
- }
53360
- key$1 = `no-${key$1}`;
53361
- }
53362
- const next = args[i$2 + 1];
53363
- if (next) {
53364
- if (!booleanSet.has(key$1) && !allBools && !next.startsWith("-") && (!aliasMap.has(key$1) || !aliasIsBoolean(aliasMap, booleanSet, key$1))) {
53365
- value = next;
53366
- i$2++;
53367
- setArgument(key$1, value, arg, true);
53368
- continue;
53369
- }
53370
- if (isBooleanString(next)) {
53371
- value = parseBooleanString(next);
53372
- i$2++;
53373
- setArgument(key$1, value, arg, true);
53374
- continue;
53375
- }
53376
- }
53377
- value = stringSet.has(key$1) ? "" : true;
53378
- setArgument(key$1, value, arg, true);
53379
- continue;
53380
- }
53381
- const letters = arg.slice(1, -1).split("");
53382
- for (const [j$1, letter] of letters.entries()) {
53383
- const next = arg.slice(j$1 + 2);
53384
- if (next === "-") {
53385
- setArgument(letter, next, arg, true);
53386
- continue;
53387
- }
53388
- if (LETTER_REGEXP.test(letter)) {
53389
- const groups$1 = VALUE_REGEXP.exec(next)?.groups;
53390
- if (groups$1) {
53391
- setArgument(letter, groups$1.value, arg, true);
53392
- continue argsLoop;
53393
- }
53394
- if (NUMBER_REGEXP.test(next)) {
53395
- setArgument(letter, next, arg, true);
53396
- continue argsLoop;
53397
- }
53398
- }
53399
- if (letters[j$1 + 1]?.match(SPECIAL_CHAR_REGEXP)) {
53400
- setArgument(letter, arg.slice(j$1 + 2), arg, true);
53401
- continue argsLoop;
53402
- }
53403
- setArgument(letter, stringSet.has(letter) ? "" : true, arg, true);
53404
- }
53405
- key$1 = arg.slice(-1);
53406
- if (key$1 === "-") continue;
53407
- const nextArg = args[i$2 + 1];
53408
- if (nextArg) {
53409
- if (!HYPHEN_REGEXP.test(nextArg) && !booleanSet.has(key$1) && (!aliasMap.has(key$1) || !aliasIsBoolean(aliasMap, booleanSet, key$1))) {
53410
- setArgument(key$1, nextArg, arg, true);
53411
- i$2++;
53412
- continue;
53413
- }
53414
- if (isBooleanString(nextArg)) {
53415
- const value$1 = parseBooleanString(nextArg);
53416
- setArgument(key$1, value$1, arg, true);
53417
- i$2++;
53418
- continue;
53419
- }
53420
- }
53421
- setArgument(key$1, stringSet.has(key$1) ? "" : true, arg, true);
53422
- continue;
53423
- }
53424
- if (unknownFn?.(arg) !== false) argv._.push(stringSet.has("_") || !isNumber(arg) ? arg : Number(arg));
53425
- if (stopEarly) {
53426
- argv._.push(...args.slice(i$2 + 1));
53427
- break;
53428
- }
53429
- }
53430
- for (const [key$1, value] of Object.entries(defaults$4)) {
53431
- const keys = key$1.split(".");
53432
- if (!hasNested(argv, keys)) {
53433
- setNested(argv, keys, value);
53434
- aliasMap.get(key$1)?.forEach((key$2) => setNested(argv, key$2.split("."), value));
53435
- }
53436
- }
53437
- for (const key$1 of booleanSet.keys()) {
53438
- const keys = key$1.split(".");
53439
- if (!hasNested(argv, keys)) {
53440
- const value = collectSet.has(key$1) ? [] : false;
53441
- setNested(argv, keys, value);
53442
- }
53443
- }
53444
- for (const key$1 of stringSet.keys()) {
53445
- const keys = key$1.split(".");
53446
- if (!hasNested(argv, keys) && collectSet.has(key$1)) setNested(argv, keys, []);
53447
- }
53448
- if (doubleDash) argv["--"] = notFlags;
53449
- else argv._.push(...notFlags);
53450
- return argv;
53451
- }
53452
-
53453
53079
  //#endregion
53454
53080
  //#region ../../node_modules/.pnpm/zod@4.0.10/node_modules/zod/v4/core/core.js
53455
53081
  /** A special constant with type `never` */
53456
53082
  const NEVER = Object.freeze({ status: "aborted" });
53457
- function $constructor(name$2, initializer$2, params) {
53083
+ function $constructor(name$1, initializer$2, params) {
53458
53084
  function init$1(inst, def) {
53459
53085
  var _a$2;
53460
53086
  Object.defineProperty(inst, "_zod", {
@@ -53462,7 +53088,7 @@ function $constructor(name$2, initializer$2, params) {
53462
53088
  enumerable: false
53463
53089
  });
53464
53090
  (_a$2 = inst._zod).traits ?? (_a$2.traits = /* @__PURE__ */ new Set());
53465
- inst._zod.traits.add(name$2);
53091
+ inst._zod.traits.add(name$1);
53466
53092
  initializer$2(inst, def);
53467
53093
  for (const k$1 in _$1.prototype) if (!(k$1 in inst)) Object.defineProperty(inst, k$1, { value: _$1.prototype[k$1].bind(inst) });
53468
53094
  inst._zod.constr = _$1;
@@ -53470,7 +53096,7 @@ function $constructor(name$2, initializer$2, params) {
53470
53096
  }
53471
53097
  const Parent = params?.Parent ?? Object;
53472
53098
  class Definition extends Parent {}
53473
- Object.defineProperty(Definition, "name", { value: name$2 });
53099
+ Object.defineProperty(Definition, "name", { value: name$1 });
53474
53100
  function _$1(def) {
53475
53101
  var _a$2;
53476
53102
  const inst = params?.Parent ? new Definition() : this;
@@ -53482,9 +53108,9 @@ function $constructor(name$2, initializer$2, params) {
53482
53108
  Object.defineProperty(_$1, "init", { value: init$1 });
53483
53109
  Object.defineProperty(_$1, Symbol.hasInstance, { value: (inst) => {
53484
53110
  if (params?.Parent && inst instanceof params.Parent) return true;
53485
- return inst?._zod?.traits?.has(name$2);
53111
+ return inst?._zod?.traits?.has(name$1);
53486
53112
  } });
53487
- Object.defineProperty(_$1, "name", { value: name$2 });
53113
+ Object.defineProperty(_$1, "name", { value: name$1 });
53488
53114
  return _$1;
53489
53115
  }
53490
53116
  const $brand = Symbol("zod_brand");
@@ -53639,9 +53265,9 @@ function mergeDefs(...defs) {
53639
53265
  function cloneDef(schema) {
53640
53266
  return mergeDefs(schema._zod.def);
53641
53267
  }
53642
- function getElementAtPath(obj, path$13) {
53643
- if (!path$13) return obj;
53644
- return path$13.reduce((acc, key$1) => acc?.[key$1], obj);
53268
+ function getElementAtPath(obj, path$12) {
53269
+ if (!path$12) return obj;
53270
+ return path$12.reduce((acc, key$1) => acc?.[key$1], obj);
53645
53271
  }
53646
53272
  function promiseAllObject(promisesObj) {
53647
53273
  const keys = Object.keys(promisesObj);
@@ -53919,11 +53545,11 @@ function aborted(x$1, startIndex = 0) {
53919
53545
  for (let i$2 = startIndex; i$2 < x$1.issues.length; i$2++) if (x$1.issues[i$2]?.continue !== true) return true;
53920
53546
  return false;
53921
53547
  }
53922
- function prefixIssues(path$13, issues) {
53548
+ function prefixIssues(path$12, issues) {
53923
53549
  return issues.map((iss) => {
53924
53550
  var _a$2;
53925
53551
  (_a$2 = iss).path ?? (_a$2.path = []);
53926
- iss.path.unshift(path$13);
53552
+ iss.path.unshift(path$12);
53927
53553
  return iss;
53928
53554
  });
53929
53555
  }
@@ -54040,13 +53666,13 @@ function treeifyError(error$41, _mapper) {
54040
53666
  return issue$1.message;
54041
53667
  };
54042
53668
  const result = { errors: [] };
54043
- const processError = (error$42, path$13 = []) => {
53669
+ const processError = (error$42, path$12 = []) => {
54044
53670
  var _a$2, _b$1;
54045
53671
  for (const issue$1 of error$42.issues) if (issue$1.code === "invalid_union" && issue$1.errors.length) issue$1.errors.map((issues) => processError({ issues }, issue$1.path));
54046
53672
  else if (issue$1.code === "invalid_key") processError({ issues: issue$1.issues }, issue$1.path);
54047
53673
  else if (issue$1.code === "invalid_element") processError({ issues: issue$1.issues }, issue$1.path);
54048
53674
  else {
54049
- const fullpath = [...path$13, ...issue$1.path];
53675
+ const fullpath = [...path$12, ...issue$1.path];
54050
53676
  if (fullpath.length === 0) {
54051
53677
  result.errors.push(mapper(issue$1));
54052
53678
  continue;
@@ -54107,8 +53733,8 @@ function treeifyError(error$41, _mapper) {
54107
53733
  */
54108
53734
  function toDotPath(_path) {
54109
53735
  const segs = [];
54110
- const path$13 = _path.map((seg) => typeof seg === "object" ? seg.key : seg);
54111
- for (const seg of path$13) if (typeof seg === "number") segs.push(`[${seg}]`);
53736
+ const path$12 = _path.map((seg) => typeof seg === "object" ? seg.key : seg);
53737
+ for (const seg of path$12) if (typeof seg === "number") segs.push(`[${seg}]`);
54112
53738
  else if (typeof seg === "symbol") segs.push(`[${JSON.stringify(String(seg))}]`);
54113
53739
  else if (/[^\w$]/.test(seg)) segs.push(`[${JSON.stringify(seg)}]`);
54114
53740
  else {
@@ -54255,9 +53881,9 @@ const guid$1 = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0
54255
53881
  /** Returns a regex for validating an RFC 9562/4122 UUID.
54256
53882
  *
54257
53883
  * @param version Optionally specify a version 1-8. If no version is specified, all versions are supported. */
54258
- const uuid$1 = (version$3) => {
54259
- if (!version$3) return /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/;
54260
- return /* @__PURE__ */ new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${version$3}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`);
53884
+ const uuid$1 = (version$2) => {
53885
+ if (!version$2) return /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/;
53886
+ return /* @__PURE__ */ new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${version$2}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`);
54261
53887
  };
54262
53888
  const uuid4 = /* @__PURE__ */ uuid$1(4);
54263
53889
  const uuid6 = /* @__PURE__ */ uuid$1(6);
@@ -62980,7 +62606,7 @@ const ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
62980
62606
  inst.isFinite = true;
62981
62607
  inst.format = bag.format ?? null;
62982
62608
  });
62983
- function number$1(params) {
62609
+ function number(params) {
62984
62610
  return _number(ZodNumber, params);
62985
62611
  }
62986
62612
  const ZodNumberFormat = /* @__PURE__ */ $constructor("ZodNumberFormat", (inst, def) => {
@@ -63610,7 +63236,7 @@ function json(params) {
63610
63236
  const jsonSchema = lazy(() => {
63611
63237
  return union([
63612
63238
  string(params),
63613
- number$1(),
63239
+ number(),
63614
63240
  boolean(),
63615
63241
  _null(),
63616
63242
  array(jsonSchema),
@@ -63658,13 +63284,13 @@ __export$4(coerce_exports, {
63658
63284
  bigint: () => bigint,
63659
63285
  boolean: () => boolean$1,
63660
63286
  date: () => date,
63661
- number: () => number,
63287
+ number: () => number$1,
63662
63288
  string: () => string$1
63663
63289
  });
63664
63290
  function string$1(params) {
63665
63291
  return _coercedString(ZodString, params);
63666
63292
  }
63667
- function number(params) {
63293
+ function number$1(params) {
63668
63294
  return _coercedNumber(ZodNumber, params);
63669
63295
  }
63670
63296
  function boolean$1(params) {
@@ -63834,7 +63460,7 @@ __export$4(external_exports, {
63834
63460
  null: () => _null,
63835
63461
  nullable: () => nullable,
63836
63462
  nullish: () => nullish,
63837
- number: () => number$1,
63463
+ number: () => number,
63838
63464
  object: () => object,
63839
63465
  optional: () => optional,
63840
63466
  overwrite: () => _overwrite,
@@ -63892,10 +63518,6 @@ __export$4(external_exports, {
63892
63518
  });
63893
63519
  config(en_default());
63894
63520
 
63895
- //#endregion
63896
- //#region ../../node_modules/.pnpm/zod@4.0.10/node_modules/zod/index.js
63897
- var zod_default = external_exports;
63898
-
63899
63521
  //#endregion
63900
63522
  //#region ../dev/dist/google-aistudio/node/types.js
63901
63523
  const z = {
@@ -63904,7 +63526,8 @@ const z = {
63904
63526
  string,
63905
63527
  array,
63906
63528
  union,
63907
- unknown
63529
+ unknown,
63530
+ number
63908
63531
  };
63909
63532
  const zContentSchema = z.object({
63910
63533
  generationConfiguration: z.object({
@@ -63917,71 +63540,135 @@ const zContentSchema = z.object({
63917
63540
  requiresParts: z.boolean(),
63918
63541
  requiresFunctionCalling: z.boolean(),
63919
63542
  requiresCodeExecution: z.boolean()
63920
- }),
63543
+ }).partial(),
63921
63544
  generateContentParameters: z.object({
63922
63545
  model: z.string(),
63923
- contents: z.array(z.union([
63924
- z.object({
63925
- role: z.string(),
63926
- parts: z.array(z.object({
63546
+ contents: z.array(z.object({
63547
+ role: z.string(),
63548
+ parts: z.array(z.union([
63549
+ z.object({ isLast: z.boolean() }),
63550
+ z.object({
63927
63551
  isLast: z.boolean(),
63928
63552
  text: z.string()
63929
- }))
63930
- }),
63931
- z.object({
63932
- role: z.string(),
63933
- parts: z.array(z.union([z.object({
63934
- isLast: z.boolean(),
63935
- text: z.string()
63936
- }), z.object({
63553
+ }),
63554
+ z.object({
63937
63555
  isLast: z.boolean(),
63938
63556
  functionCall: z.object({
63939
63557
  name: z.string(),
63940
63558
  parameters: z.string()
63941
63559
  })
63942
- })]))
63943
- }),
63944
- z.object({
63945
- role: z.string(),
63946
- parts: z.array(z.object({
63560
+ }),
63561
+ z.object({
63947
63562
  isLast: z.boolean(),
63948
63563
  functionResponse: z.object({
63949
63564
  name: z.string(),
63950
63565
  response: z.string()
63951
63566
  })
63952
- }))
63953
- }),
63954
- z.object({
63955
- role: z.string(),
63956
- parts: z.array(z.union([z.object({
63567
+ }),
63568
+ z.object({
63957
63569
  isLast: z.boolean(),
63958
- functionResponse: z.object({
63959
- name: z.string(),
63960
- response: z.string()
63570
+ inlineData: z.object({
63571
+ data: z.string(),
63572
+ splitData: z.array(z.string()),
63573
+ mimeType: z.string()
63574
+ }),
63575
+ fileData: z.object({
63576
+ mimeType: z.string(),
63577
+ fileIndex: z.number(),
63578
+ fileName: z.string()
63961
63579
  })
63962
- }), z.object({
63963
- text: z.string(),
63964
- isLast: z.boolean()
63965
- })])),
63966
- isLast: z.boolean()
63967
- })
63968
- ])),
63580
+ })
63581
+ ])),
63582
+ isLast: z.boolean().optional()
63583
+ })),
63969
63584
  config: z.object({
63970
63585
  thinkingConfig: z.object({ thinkingBudget: z.string() }),
63971
63586
  stopSequences: z.array(z.unknown()),
63972
- responseMimeType: z.string(),
63587
+ responseMimeType: z.string().optional(),
63973
63588
  responseModalities: z.array(z.unknown()),
63974
63589
  safetySettings: z.array(z.unknown()),
63975
- tools: z.array(z.union([z.object({ googleSearch: z.object({}) }), z.object({ functionDeclarations: z.array(z.object({
63976
- name: z.string(),
63977
- description: z.string(),
63978
- parameters: z.string(),
63979
- isLast: z.boolean()
63980
- })) })]))
63590
+ tools: z.array(z.union([
63591
+ z.object({ googleSearch: z.object({}) }),
63592
+ z.object({ urlContext: z.object({}) }),
63593
+ z.object({ functionDeclarations: z.array(z.object({
63594
+ name: z.string(),
63595
+ description: z.string(),
63596
+ parameters: z.string(),
63597
+ isLast: z.boolean()
63598
+ })) })
63599
+ ]))
63981
63600
  })
63982
63601
  })
63983
63602
  }).loose();
63984
63603
 
63604
+ //#endregion
63605
+ //#region ../dev/dist/google-aistudio/node/index.js
63606
+ const doGoogleAiStudioAutomation = (dir = process.cwd()) => {
63607
+ const watcher$1 = fs.watch(dir);
63608
+ const handle = func_debounce(async () => {
63609
+ const names = fs.readdirSync(dir);
63610
+ const contentNames = names.filter((name$1) => name$1.endsWith(".contents.json"));
63611
+ for (const contentFilename of contentNames) {
63612
+ const contentFilepath = path.join(dir, contentFilename);
63613
+ const basename$1 = contentFilename.replace(".contents.json", "");
63614
+ await parseContent(basename$1, contentFilepath, names).catch(console.error);
63615
+ }
63616
+ }, 200);
63617
+ const parseContent = async (basename$1, contentFilepath, filenames) => {
63618
+ console.log(magenta("开始处理文件"), path.relative(process.cwd(), contentFilepath));
63619
+ const fileData = await zContentSchema.parse(JSON.parse(fs.readFileSync(contentFilepath, "utf-8")));
63620
+ const { contents } = fileData.generateContentParameters;
63621
+ const latestContent = contents.at(-1);
63622
+ if (!latestContent) return;
63623
+ if (latestContent.role !== "user") return;
63624
+ const functionResponsePart = latestContent.parts.find((p$1) => "functionResponse" in p$1);
63625
+ if (!functionResponsePart) return;
63626
+ if (functionResponsePart.functionResponse.response !== "") return;
63627
+ const modelContent = contents.findLast((content$2) => {
63628
+ return content$2.role === "model" && content$2.parts.find((p$1) => "functionCall" in p$1);
63629
+ });
63630
+ if (!modelContent) return;
63631
+ const functionCallPart = modelContent.parts.find((p$1) => "functionCall" in p$1)?.functionCall;
63632
+ if (!functionCallPart) return;
63633
+ const modelIndex = contents.indexOf(modelContent);
63634
+ const hash = createHash("sha256").update(`INDEX:${modelIndex}`).update(JSON.stringify(modelContent)).digest("hex").slice(0, 8);
63635
+ const taskFilename = `${basename$1}.${functionCallPart.name}.${modelIndex}-${hash}.function_call.json`;
63636
+ if (filenames.includes(taskFilename)) return;
63637
+ console.log(blue("收到 functionCallPart 任务请求"), functionCallPart);
63638
+ const scriptFilepath = iter_first_not_null(function* () {
63639
+ for (const scriptFilename of [`${functionCallPart.name}.function_call.js`, `${functionCallPart.name}.function_call.ts`]) yield path.join(dir, scriptFilename);
63640
+ }(), (scriptFilepath$1) => {
63641
+ if (fs.existsSync(scriptFilepath$1)) return scriptFilepath$1;
63642
+ });
63643
+ if (!scriptFilepath) console.warn("找不到任务处理工具");
63644
+ else {
63645
+ const { functionCall } = await import(pathToFileURL(scriptFilepath).href);
63646
+ const input = JSON.parse(functionCallPart.parameters);
63647
+ try {
63648
+ console.log(cyan("开始执行任务"));
63649
+ const output = await functionCall(input);
63650
+ console.log(green("生成任务结果:"), taskFilename);
63651
+ fs.writeFileSync(path.join(dir, taskFilename), JSON.stringify({
63652
+ input,
63653
+ output
63654
+ }, null, 2));
63655
+ } catch (e$1) {
63656
+ console.log(red("任务执行失败:"), e$1);
63657
+ }
63658
+ }
63659
+ };
63660
+ watcher$1.on("change", (eventType) => {
63661
+ if (eventType === "delete" || eventType === "unlink") return;
63662
+ handle();
63663
+ });
63664
+ handle();
63665
+ console.log(gray("\nWatching for file changes... Press Ctrl+C to exit."));
63666
+ };
63667
+
63668
+ //#endregion
63669
+ //#region ../../node_modules/.pnpm/zod@4.0.10/node_modules/zod/index.js
63670
+ var zod_default = external_exports;
63671
+
63985
63672
  //#endregion
63986
63673
  //#region ../dev/dist/google-aistudio/jixo/sync.js
63987
63674
  const sync = async (basePath, outDir) => {
@@ -64018,9 +63705,9 @@ const sync = async (basePath, outDir) => {
64018
63705
  second_index = 0;
64019
63706
  } else second_index += 1;
64020
63707
  const hash = createHash("sha256").update(content$2).digest("hex").slice(0, 6);
64021
- const name$2 = `${first_index}`.padStart(name_len, "0") + "-" + `${second_index}`.padStart(name_len, "0") + `.${hash}.md`;
63708
+ const name$1 = `${first_index}`.padStart(name_len, "0") + "-" + `${second_index}`.padStart(name_len, "0") + `.${hash}.md`;
64022
63709
  return {
64023
- name: name$2,
63710
+ name: name$1,
64024
63711
  content: content$2
64025
63712
  };
64026
63713
  });
@@ -64030,13 +63717,10 @@ const sync = async (basePath, outDir) => {
64030
63717
  const newFileNames = new Set(model_files.map((file$1) => file$1.name));
64031
63718
  const rmFileNameList = [...oldFileNames].filter((x$1) => !newFileNames.has(x$1));
64032
63719
  const addFileNames = new Set([...newFileNames].filter((x$1) => !oldFileNames.has(x$1)));
64033
- if (rmFileNameList.length) await Promise.all(rmFileNameList.map((name$2) => rm(path.join(resolvedOutDir, name$2))));
63720
+ if (rmFileNameList.length) await Promise.all(rmFileNameList.map((name$1) => rm(path.join(resolvedOutDir, name$1))));
64034
63721
  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)));
64035
63722
  console.log(blue((/* @__PURE__ */ new Date()).toLocaleTimeString()), green("sync"), path.relative(process.cwd(), basePath));
64036
63723
  };
64037
-
64038
- //#endregion
64039
- //#region ../dev/dist/google-aistudio/jixo/cli.js
64040
63724
  /**
64041
63725
  * 封装了 sync 命令的核心执行逻辑
64042
63726
  * @param args - 命令行参数,符合 yargs 解析后的结构
@@ -64046,25 +63730,49 @@ const doSync = (args) => {
64046
63730
  const targetPath = zod_default.string().safeParse(args._[0]).data ?? process.cwd();
64047
63731
  await sync(targetPath, args.outDir);
64048
63732
  }, { once: !args.watch });
64049
- if (args.watch) console.log("\nWatching for file changes... Press Ctrl+C to exit.");
63733
+ if (args.watch) console.log(gray("\nWatching for file changes... Press Ctrl+C to exit."));
64050
63734
  };
64051
- if (import_meta_ponyfill_esmodule(import.meta).main) {
64052
- const args = parseArgs(process.argv.slice(2), {
64053
- string: ["outDir"],
64054
- boolean: ["watch"],
64055
- alias: {
64056
- O: "outDir",
64057
- W: "watch"
63735
+
63736
+ //#endregion
63737
+ //#region ../dev/dist/google-aistudio/jixo/init.js
63738
+ const doInit = async ({ dir, force }) => {
63739
+ const cpAssets = ["google-aistudio.browser.js"];
63740
+ const sourceEntries = cpAssets.map((entrypath) => ({
63741
+ relativepath: entrypath,
63742
+ fullpath: assetsResolver(`bundle`, entrypath)
63743
+ }));
63744
+ const targetEntries = cpAssets.map((entrypath) => ({
63745
+ relativepath: entrypath,
63746
+ fullpath: path.resolve(dir, entrypath)
63747
+ }));
63748
+ const existEntries = targetEntries.filter((targetEntry) => existsSync(targetEntry.fullpath));
63749
+ if (existEntries.length) {
63750
+ const logPaths = () => existEntries.map((entry) => `${gray("-")} ${blue(entry.relativepath)}`);
63751
+ if (force === false) {
63752
+ console.warn([yellow(`the same file(s) name already exists.`), ...logPaths()].join("\n"));
63753
+ return;
64058
63754
  }
64059
- });
64060
- doSync(args);
64061
- }
63755
+ if (force == null) {
63756
+ const overwrite = await esm_default({
63757
+ message: [`the same file(s) name already exists. Are you sure you want to overwrite?`, ...logPaths()].join("\n"),
63758
+ default: false
63759
+ });
63760
+ if (!overwrite) return;
63761
+ }
63762
+ await Promise.all(existEntries.map((entry) => rm(entry.fullpath, { recursive: true })));
63763
+ }
63764
+ await mkdir(dir, { recursive: true });
63765
+ for (const [index$1, sourceEntry] of sourceEntries.entries()) await copyFile(sourceEntry.fullpath, targetEntries[index$1].fullpath);
63766
+ await Promise.all(sourceEntries.map((sourceEntry, index$1) => {
63767
+ return copyFile(sourceEntry.fullpath, targetEntries[index$1].fullpath);
63768
+ }));
63769
+ };
64062
63770
 
64063
63771
  //#endregion
64064
63772
  //#region src/commands/google-aistudio.ts
64065
63773
  const syncCommand = {
64066
63774
  command: "sync [path]",
64067
- aliases: ["S"],
63775
+ aliases: ["S", "s"],
64068
63776
  describe: "Sync with aistudio.google.com contents",
64069
63777
  builder: (yargs) => yargs.positional("path", {
64070
63778
  describe: "Directory or file path to sync",
@@ -64088,6 +63796,36 @@ const syncCommand = {
64088
63796
  doSync(optionsForDoSync);
64089
63797
  }
64090
63798
  };
63799
+ const browserCommand = {
63800
+ command: "browser [dir]",
63801
+ aliases: ["B", "b"],
63802
+ describe: "browser-kit for aistudio.google.com",
63803
+ builder: (yargs) => yargs.positional("dir", {
63804
+ describe: "Directory for aistudio output contents",
63805
+ type: "string",
63806
+ default: process.cwd()
63807
+ }),
63808
+ handler: async (argv) => {
63809
+ doGoogleAiStudioAutomation(argv.dir);
63810
+ }
63811
+ };
63812
+ const initCommand = {
63813
+ command: "init [dir]",
63814
+ aliases: ["i", "I"],
63815
+ describe: "init an browser-kit directory for aistudio.google.com",
63816
+ builder: (yargs) => yargs.positional("dir", {
63817
+ describe: "Directory for aistudio input/output contents",
63818
+ type: "string",
63819
+ default: path.resolve(process.cwd(), ".ai")
63820
+ }).option("force", {
63821
+ alias: "F",
63822
+ type: "boolean",
63823
+ describe: "override exits files"
63824
+ }),
63825
+ handler: async (argv) => {
63826
+ doInit(argv);
63827
+ }
63828
+ };
64091
63829
  /**
64092
63830
  * @jixo/cli google-aistudio
64093
63831
  *
@@ -64095,10 +63833,14 @@ const syncCommand = {
64095
63833
  */
64096
63834
  const googleAistudioCommand = {
64097
63835
  command: "google-aistudio <command>",
64098
- aliases: ["GO"],
63836
+ aliases: [
63837
+ "GO",
63838
+ "Go",
63839
+ "go"
63840
+ ],
64099
63841
  describe: "Commands for Google AI Studio integration",
64100
63842
  builder: (yargs) => {
64101
- return yargs.command(syncCommand).demandCommand(1, "You must provide a sub-command for 'google-aistudio'.");
63843
+ return yargs.command(syncCommand).command(browserCommand).command(initCommand).demandCommand(1, "You must provide a sub-command for 'google-aistudio'.");
64102
63844
  },
64103
63845
  handler: () => {}
64104
63846
  };
@@ -64114,10 +63856,6 @@ const runCli = async (args = process.argv) => {
64114
63856
  console.log(" " + "─".repeat(Math.max(4, process.stdout.columns - 2)));
64115
63857
  }
64116
63858
  };
64117
- const tryRunCli$1 = (importMeta, args) => {
64118
- if (import_meta_ponyfill_esmodule(importMeta).main) runCli(args);
64119
- };
64120
- tryRunCli$1(import.meta);
64121
63859
 
64122
63860
  //#endregion
64123
63861
  //#region src/index.ts