@jixo/cli 0.21.5 → 0.22.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.
- package/bundle/index.js +712 -1092
- package/dist/commands/google-aistudio.d.ts.map +1 -1
- package/dist/commands/google-aistudio.js +16 -3
- package/dist/commands/google-aistudio.js.map +1 -1
- package/dist/runCli.d.ts +0 -4
- package/dist/runCli.d.ts.map +1 -1
- package/dist/runCli.js +0 -7
- package/dist/runCli.js.map +1 -1
- package/package.json +11 -9
package/bundle/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { URL as URL$1, fileURLToPath, pathToFileURL } from "node:url";
|
|
|
3
3
|
import path, { dirname, join } from "node:path";
|
|
4
4
|
import fs, { mkdirSync, promises, readFileSync, readdirSync, realpathSync, statSync, watch, writeFileSync } from "node:fs";
|
|
5
5
|
import assert3, { notStrictEqual, strictEqual } from "assert";
|
|
6
|
-
import * as 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";
|
|
@@ -26,6 +26,7 @@ import fsPromises, { mkdir, rm, writeFile as writeFile$1 } from "node:fs/promise
|
|
|
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$
|
|
43
|
-
get: all$1[name$
|
|
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$
|
|
1556
|
-
if (typeof require$3 !== "undefined") return require$3(path$
|
|
1557
|
-
else if (path$
|
|
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
|
});
|
|
@@ -1883,7 +1884,7 @@ const positionName = [
|
|
|
1883
1884
|
"sixth"
|
|
1884
1885
|
];
|
|
1885
1886
|
function argsert(arg1, arg2, arg3) {
|
|
1886
|
-
function parseArgs
|
|
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
|
|
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$
|
|
2824
|
+
let version$2 = null;
|
|
2824
2825
|
self.version = (ver) => {
|
|
2825
|
-
version$
|
|
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$
|
|
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$
|
|
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$
|
|
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
|
}
|
|
@@ -4685,8 +4686,8 @@ var yargs_default = Yargs;
|
|
|
4685
4686
|
|
|
4686
4687
|
//#endregion
|
|
4687
4688
|
//#region package.json
|
|
4688
|
-
var name
|
|
4689
|
-
var version$
|
|
4689
|
+
var name = "@jixo/cli";
|
|
4690
|
+
var version$1 = "0.22.0";
|
|
4690
4691
|
var type = "module";
|
|
4691
4692
|
var bin = { "jixo": "./bundle/index.js" };
|
|
4692
4693
|
var files = ["bundle", "dist"];
|
|
@@ -4696,7 +4697,14 @@ var scripts = {
|
|
|
4696
4697
|
"b:bundle": "tsdown",
|
|
4697
4698
|
"gen-prompts": "node ./scripts/gen-prompts.ts"
|
|
4698
4699
|
};
|
|
4699
|
-
var exports$1 = {
|
|
4700
|
+
var exports$1 = {
|
|
4701
|
+
".": {
|
|
4702
|
+
"types": "./dist/index.d.ts",
|
|
4703
|
+
"default": "./bundle/index.js"
|
|
4704
|
+
},
|
|
4705
|
+
"./dev": "./dist/index.js"
|
|
4706
|
+
};
|
|
4707
|
+
var dependencies = { "@parcel/watcher": "^2.5.1" };
|
|
4700
4708
|
var peerDependencies = {
|
|
4701
4709
|
"@jixo/dev": "workspace:^",
|
|
4702
4710
|
"import-meta-ponyfill": "^3.2.2",
|
|
@@ -4715,27 +4723,27 @@ var peerDependenciesMeta = {
|
|
|
4715
4723
|
};
|
|
4716
4724
|
var devDependencies = {
|
|
4717
4725
|
"@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
4726
|
"@types/debug": "^4.1.12",
|
|
4725
4727
|
"@types/json-schema": "^7.0.15",
|
|
4726
4728
|
"@types/ms": "^2.1.0",
|
|
4727
4729
|
"@types/node": "^24.1.0",
|
|
4728
4730
|
"@types/semver": "^7.7.0",
|
|
4729
|
-
"@types/yargs": "^17.0.33"
|
|
4731
|
+
"@types/yargs": "^17.0.33",
|
|
4732
|
+
"import-meta-ponyfill": "^3.2.2",
|
|
4733
|
+
"ts-pattern": "^5.7.1",
|
|
4734
|
+
"tslib": "^2.8.1",
|
|
4735
|
+
"yargs": "^18.0.0",
|
|
4736
|
+
"zod": "^4.0.0"
|
|
4730
4737
|
};
|
|
4731
4738
|
var package_default = {
|
|
4732
|
-
name
|
|
4733
|
-
version: version$
|
|
4739
|
+
name,
|
|
4740
|
+
version: version$1,
|
|
4734
4741
|
type,
|
|
4735
4742
|
bin,
|
|
4736
4743
|
files,
|
|
4737
4744
|
scripts,
|
|
4738
4745
|
exports: exports$1,
|
|
4746
|
+
dependencies,
|
|
4739
4747
|
peerDependencies,
|
|
4740
4748
|
peerDependenciesMeta,
|
|
4741
4749
|
devDependencies
|
|
@@ -4958,6 +4966,38 @@ function magenta(str) {
|
|
|
4958
4966
|
function cyan(str) {
|
|
4959
4967
|
return run(str, code([36], 39));
|
|
4960
4968
|
}
|
|
4969
|
+
/**
|
|
4970
|
+
* Set text color to gray.
|
|
4971
|
+
*
|
|
4972
|
+
* @example Usage
|
|
4973
|
+
* ```ts no-assert
|
|
4974
|
+
* import { gray } from "@std/fmt/colors";
|
|
4975
|
+
*
|
|
4976
|
+
* console.log(gray("Hello, world!"));
|
|
4977
|
+
* ```
|
|
4978
|
+
*
|
|
4979
|
+
* @param str The text to make gray
|
|
4980
|
+
* @returns The gray text
|
|
4981
|
+
*/
|
|
4982
|
+
function gray(str) {
|
|
4983
|
+
return brightBlack(str);
|
|
4984
|
+
}
|
|
4985
|
+
/**
|
|
4986
|
+
* Set text color to bright black.
|
|
4987
|
+
*
|
|
4988
|
+
* @example Usage
|
|
4989
|
+
* ```ts no-assert
|
|
4990
|
+
* import { brightBlack } from "@std/fmt/colors";
|
|
4991
|
+
*
|
|
4992
|
+
* console.log(brightBlack("Hello, world!"));
|
|
4993
|
+
* ```
|
|
4994
|
+
*
|
|
4995
|
+
* @param str The text to make bright black
|
|
4996
|
+
* @returns The bright black text
|
|
4997
|
+
*/
|
|
4998
|
+
function brightBlack(str) {
|
|
4999
|
+
return run(str, code([90], 39));
|
|
5000
|
+
}
|
|
4961
5001
|
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
5002
|
|
|
4963
5003
|
//#endregion
|
|
@@ -5004,12 +5044,12 @@ const createAsyncContextStorage = () => {
|
|
|
5004
5044
|
|
|
5005
5045
|
//#endregion
|
|
5006
5046
|
//#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$
|
|
5047
|
+
const createAcontext = (name$1, default_fn) => {
|
|
5008
5048
|
const storage = createAsyncContextStorage();
|
|
5009
5049
|
const handle = {
|
|
5010
5050
|
storage,
|
|
5011
5051
|
default: default_fn,
|
|
5012
|
-
name: name$
|
|
5052
|
+
name: name$1,
|
|
5013
5053
|
getOrElse: (else_fn) => {
|
|
5014
5054
|
const item = storage.getStore();
|
|
5015
5055
|
if (item == null) return default_fn ? default_fn() : else_fn();
|
|
@@ -5017,7 +5057,7 @@ const createAcontext = (name$2, default_fn) => {
|
|
|
5017
5057
|
},
|
|
5018
5058
|
get: () => {
|
|
5019
5059
|
return handle.getOrElse(() => {
|
|
5020
|
-
throw new Error(`No factory registered for capability handle: ${name$
|
|
5060
|
+
throw new Error(`No factory registered for capability handle: ${name$1}`);
|
|
5021
5061
|
});
|
|
5022
5062
|
},
|
|
5023
5063
|
getOrNull: () => {
|
|
@@ -5593,6 +5633,49 @@ const func_parallel_limit = (funcs, limit) => {
|
|
|
5593
5633
|
|
|
5594
5634
|
//#endregion
|
|
5595
5635
|
//#region ../../node_modules/.pnpm/@gaubee+util@0.34.2/node_modules/@gaubee/util/esm/promise.js
|
|
5636
|
+
const timmers = {
|
|
5637
|
+
timeout: (ms) => {
|
|
5638
|
+
return (cb) => {
|
|
5639
|
+
const ti = setTimeout(cb, ms);
|
|
5640
|
+
return () => clearTimeout(ti);
|
|
5641
|
+
};
|
|
5642
|
+
},
|
|
5643
|
+
raf: ((cb) => {
|
|
5644
|
+
const ti = requestAnimationFrame(cb);
|
|
5645
|
+
return () => cancelAnimationFrame(ti);
|
|
5646
|
+
}),
|
|
5647
|
+
microtask: ((cb) => {
|
|
5648
|
+
let cancel = false;
|
|
5649
|
+
queueMicrotask(() => {
|
|
5650
|
+
if (cancel) return;
|
|
5651
|
+
cb();
|
|
5652
|
+
});
|
|
5653
|
+
return () => {
|
|
5654
|
+
cancel = true;
|
|
5655
|
+
};
|
|
5656
|
+
}),
|
|
5657
|
+
eventTarget: (target, eventType, filter$1) => {
|
|
5658
|
+
return (resolve$1) => {
|
|
5659
|
+
let cb;
|
|
5660
|
+
if (typeof filter$1 === "function") {
|
|
5661
|
+
cb = (event) => {
|
|
5662
|
+
if (filter$1(event)) {
|
|
5663
|
+
resolve$1(event);
|
|
5664
|
+
target.removeEventListener(eventType, cb);
|
|
5665
|
+
}
|
|
5666
|
+
};
|
|
5667
|
+
target.addEventListener(eventType, cb);
|
|
5668
|
+
} else {
|
|
5669
|
+
cb = resolve$1;
|
|
5670
|
+
target.addEventListener(eventType, cb, { once: true });
|
|
5671
|
+
}
|
|
5672
|
+
return () => target.removeEventListener(eventType, cb);
|
|
5673
|
+
};
|
|
5674
|
+
},
|
|
5675
|
+
from: (ms) => {
|
|
5676
|
+
return typeof ms === "number" ? ms <= 0 ? timmers.microtask : timmers.timeout(ms) : ms;
|
|
5677
|
+
}
|
|
5678
|
+
};
|
|
5596
5679
|
const promise_try = async (fn) => {
|
|
5597
5680
|
try {
|
|
5598
5681
|
const value = await fn();
|
|
@@ -5608,16 +5691,60 @@ const promise_try = async (fn) => {
|
|
|
5608
5691
|
}
|
|
5609
5692
|
};
|
|
5610
5693
|
|
|
5694
|
+
//#endregion
|
|
5695
|
+
//#region ../../node_modules/.pnpm/@gaubee+util@0.34.2/node_modules/@gaubee/util/esm/debounce.js
|
|
5696
|
+
const func_debounce = (fn, wait = 0, options$1 = {}) => {
|
|
5697
|
+
if (!Number.isFinite(wait)) throw new TypeError("Expected `wait` to be a finite number");
|
|
5698
|
+
const timmer = timmers.from(wait);
|
|
5699
|
+
let leadingValue;
|
|
5700
|
+
let clear;
|
|
5701
|
+
let jobList = [];
|
|
5702
|
+
let trigger;
|
|
5703
|
+
return obj_assign_props(function(...args) {
|
|
5704
|
+
const job = Promise.withResolvers();
|
|
5705
|
+
const shouldCallNow = options$1.before && null == clear;
|
|
5706
|
+
if (shouldCallNow) {
|
|
5707
|
+
leadingValue = fn.apply(this, args);
|
|
5708
|
+
job.resolve(leadingValue);
|
|
5709
|
+
} else jobList.push(job);
|
|
5710
|
+
clear?.();
|
|
5711
|
+
clear = timmer(trigger = () => {
|
|
5712
|
+
clear = void 0;
|
|
5713
|
+
trigger = void 0;
|
|
5714
|
+
const result = options$1.before ? leadingValue : fn.apply(this, args);
|
|
5715
|
+
for (const job$1 of jobList) job$1.resolve(result);
|
|
5716
|
+
jobList = [];
|
|
5717
|
+
}, (reason) => {
|
|
5718
|
+
for (const job$1 of jobList) job$1.reject(reason);
|
|
5719
|
+
});
|
|
5720
|
+
return job.promise;
|
|
5721
|
+
}, {
|
|
5722
|
+
get isPending() {
|
|
5723
|
+
return clear != null;
|
|
5724
|
+
},
|
|
5725
|
+
cancel() {
|
|
5726
|
+
clear?.();
|
|
5727
|
+
},
|
|
5728
|
+
source: fn,
|
|
5729
|
+
flush() {
|
|
5730
|
+
if (clear != null) {
|
|
5731
|
+
clear();
|
|
5732
|
+
trigger?.();
|
|
5733
|
+
}
|
|
5734
|
+
}
|
|
5735
|
+
});
|
|
5736
|
+
};
|
|
5737
|
+
|
|
5611
5738
|
//#endregion
|
|
5612
5739
|
//#region ../../node_modules/.pnpm/@gaubee+node@0.4.0_@gaubee+util@0.34.2/node_modules/@gaubee/node/esm/path.js
|
|
5613
5740
|
/**
|
|
5614
5741
|
* 将一个路径格式化成标准的 posix 格式
|
|
5615
5742
|
*/
|
|
5616
|
-
const normalizeFilePath = (path$
|
|
5617
|
-
if (typeof path$
|
|
5618
|
-
if (path$
|
|
5619
|
-
if (path$
|
|
5620
|
-
return path$
|
|
5743
|
+
const normalizeFilePath = (path$12) => {
|
|
5744
|
+
if (typeof path$12 !== "string") path$12 = String(path$12);
|
|
5745
|
+
if (path$12.startsWith("file://")) path$12 = fileURLToPath(path$12);
|
|
5746
|
+
if (path$12.includes("\\")) path$12 = path$12.replaceAll("\\", "/");
|
|
5747
|
+
return path$12;
|
|
5621
5748
|
};
|
|
5622
5749
|
/**
|
|
5623
5750
|
* 创建一个 path.resolve 柯里化函数
|
|
@@ -5880,9 +6007,9 @@ function buildErrorMessage({ type: type$1, sourceText, position: position$1 }) {
|
|
|
5880
6007
|
/**
|
|
5881
6008
|
* read json or jsonc file
|
|
5882
6009
|
*/
|
|
5883
|
-
const readJson = (path$
|
|
6010
|
+
const readJson = (path$12, defaultValue) => {
|
|
5884
6011
|
try {
|
|
5885
|
-
return parse$9(fs.readFileSync(normalizeFilePath(path$
|
|
6012
|
+
return parse$9(fs.readFileSync(normalizeFilePath(path$12), "utf8"));
|
|
5886
6013
|
} catch (e$1) {
|
|
5887
6014
|
if (defaultValue) return defaultValue();
|
|
5888
6015
|
throw e$1;
|
|
@@ -5954,8 +6081,8 @@ var require_kind_of = __commonJS$2({ "../../node_modules/.pnpm/kind-of@6.0.3/nod
|
|
|
5954
6081
|
if (val instanceof RegExp) return true;
|
|
5955
6082
|
return typeof val.flags === "string" && typeof val.ignoreCase === "boolean" && typeof val.multiline === "boolean" && typeof val.global === "boolean";
|
|
5956
6083
|
}
|
|
5957
|
-
function isGeneratorFn(name$
|
|
5958
|
-
return ctorName(name$
|
|
6084
|
+
function isGeneratorFn(name$1, val) {
|
|
6085
|
+
return ctorName(name$1) === "GeneratorFunction";
|
|
5959
6086
|
}
|
|
5960
6087
|
function isGeneratorObj(val) {
|
|
5961
6088
|
return typeof val.throw === "function" && typeof val.return === "function" && typeof val.next === "function";
|
|
@@ -6184,8 +6311,8 @@ var require_exception = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/
|
|
|
6184
6311
|
//#region ../../node_modules/.pnpm/js-yaml@3.14.1/node_modules/js-yaml/lib/js-yaml/mark.js
|
|
6185
6312
|
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
6313
|
var common$11 = require_common$4();
|
|
6187
|
-
function Mark$1(name$
|
|
6188
|
-
this.name = name$
|
|
6314
|
+
function Mark$1(name$1, buffer$1, position$1, line$2, column$1) {
|
|
6315
|
+
this.name = name$1;
|
|
6189
6316
|
this.buffer = buffer$1;
|
|
6190
6317
|
this.position = position$1;
|
|
6191
6318
|
this.line = line$2;
|
|
@@ -6262,8 +6389,8 @@ var require_type = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/node_
|
|
|
6262
6389
|
}
|
|
6263
6390
|
function Type$17(tag, options$1) {
|
|
6264
6391
|
options$1 = options$1 || {};
|
|
6265
|
-
Object.keys(options$1).forEach(function(name$
|
|
6266
|
-
if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name$
|
|
6392
|
+
Object.keys(options$1).forEach(function(name$1) {
|
|
6393
|
+
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
6394
|
});
|
|
6268
6395
|
this.tag = tag;
|
|
6269
6396
|
this.kind = options$1["kind"] || null;
|
|
@@ -6289,12 +6416,12 @@ var require_schema = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
|
|
|
6289
6416
|
var common$10 = require_common$4();
|
|
6290
6417
|
var YAMLException$2 = require_exception();
|
|
6291
6418
|
var Type$16 = require_type();
|
|
6292
|
-
function compileList(schema, name$
|
|
6419
|
+
function compileList(schema, name$1, result) {
|
|
6293
6420
|
var exclude = [];
|
|
6294
6421
|
schema.include.forEach(function(includedSchema) {
|
|
6295
|
-
result = compileList(includedSchema, name$
|
|
6422
|
+
result = compileList(includedSchema, name$1, result);
|
|
6296
6423
|
});
|
|
6297
|
-
schema[name$
|
|
6424
|
+
schema[name$1].forEach(function(currentType) {
|
|
6298
6425
|
result.forEach(function(previousType, previousIndex) {
|
|
6299
6426
|
if (previousType.tag === currentType.tag && previousType.kind === currentType.kind) exclude.push(previousIndex);
|
|
6300
6427
|
});
|
|
@@ -7167,7 +7294,7 @@ var require_loader = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
|
|
|
7167
7294
|
if (state.onWarning) state.onWarning.call(null, generateError(state, message));
|
|
7168
7295
|
}
|
|
7169
7296
|
var directiveHandlers = {
|
|
7170
|
-
YAML: function handleYamlDirective(state, name$
|
|
7297
|
+
YAML: function handleYamlDirective(state, name$1, args) {
|
|
7171
7298
|
var match, major, minor;
|
|
7172
7299
|
if (state.version !== null) throwError$1(state, "duplication of %YAML directive");
|
|
7173
7300
|
if (args.length !== 1) throwError$1(state, "YAML directive accepts exactly one argument");
|
|
@@ -7180,7 +7307,7 @@ var require_loader = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
|
|
|
7180
7307
|
state.checkLineBreaks = minor < 2;
|
|
7181
7308
|
if (minor !== 1 && minor !== 2) throwWarning(state, "unsupported YAML version of the document");
|
|
7182
7309
|
},
|
|
7183
|
-
TAG: function handleTagDirective(state, name$
|
|
7310
|
+
TAG: function handleTagDirective(state, name$1, args) {
|
|
7184
7311
|
var handle, prefix;
|
|
7185
7312
|
if (args.length !== 2) throwError$1(state, "TAG directive accepts exactly two arguments");
|
|
7186
7313
|
handle = args[0];
|
|
@@ -8328,9 +8455,9 @@ var require_dumper = __commonJS$2({ "../../node_modules/.pnpm/js-yaml@3.14.1/nod
|
|
|
8328
8455
|
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
8456
|
var loader = require_loader();
|
|
8330
8457
|
var dumper = require_dumper();
|
|
8331
|
-
function deprecated(name$
|
|
8458
|
+
function deprecated(name$1) {
|
|
8332
8459
|
return function() {
|
|
8333
|
-
throw new Error("Function " + name$
|
|
8460
|
+
throw new Error("Function " + name$1 + " is deprecated and cannot be used.");
|
|
8334
8461
|
};
|
|
8335
8462
|
}
|
|
8336
8463
|
module.exports.Type = require_type();
|
|
@@ -8491,14 +8618,14 @@ var require_defaults = __commonJS$2({ "../../node_modules/.pnpm/gray-matter@4.0.
|
|
|
8491
8618
|
//#endregion
|
|
8492
8619
|
//#region ../../node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/engine.js
|
|
8493
8620
|
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$
|
|
8495
|
-
let engine = options$1.engines[name$
|
|
8496
|
-
if (typeof engine === "undefined") throw new Error("gray-matter engine \"" + name$
|
|
8621
|
+
module.exports = function(name$1, options$1) {
|
|
8622
|
+
let engine = options$1.engines[name$1] || options$1.engines[aliase(name$1)];
|
|
8623
|
+
if (typeof engine === "undefined") throw new Error("gray-matter engine \"" + name$1 + "\" is not registered");
|
|
8497
8624
|
if (typeof engine === "function") engine = { parse: engine };
|
|
8498
8625
|
return engine;
|
|
8499
8626
|
};
|
|
8500
|
-
function aliase(name$
|
|
8501
|
-
switch (name$
|
|
8627
|
+
function aliase(name$1) {
|
|
8628
|
+
switch (name$1.toLowerCase()) {
|
|
8502
8629
|
case "js":
|
|
8503
8630
|
case "javascript": return "javascript";
|
|
8504
8631
|
case "coffee":
|
|
@@ -8506,7 +8633,7 @@ var require_engine = __commonJS$2({ "../../node_modules/.pnpm/gray-matter@4.0.3/
|
|
|
8506
8633
|
case "cson": return "coffee";
|
|
8507
8634
|
case "yaml":
|
|
8508
8635
|
case "yml": return "yaml";
|
|
8509
|
-
default: return name$
|
|
8636
|
+
default: return name$1;
|
|
8510
8637
|
}
|
|
8511
8638
|
}
|
|
8512
8639
|
} });
|
|
@@ -8918,14 +9045,14 @@ var require_ignore$1 = __commonJS$2({ "../../node_modules/.pnpm/ignore@7.0.5/nod
|
|
|
8918
9045
|
makeArray(isString$1(pattern$1) ? splitPattern(pattern$1) : pattern$1).forEach(this._add, this);
|
|
8919
9046
|
return this._added;
|
|
8920
9047
|
}
|
|
8921
|
-
test(path$
|
|
9048
|
+
test(path$12, checkUnignored, mode) {
|
|
8922
9049
|
let ignored = false;
|
|
8923
9050
|
let unignored = false;
|
|
8924
9051
|
let matchedRule;
|
|
8925
9052
|
this._rules.forEach((rule) => {
|
|
8926
9053
|
const { negative } = rule;
|
|
8927
9054
|
if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) return;
|
|
8928
|
-
const matched = rule[mode].test(path$
|
|
9055
|
+
const matched = rule[mode].test(path$12);
|
|
8929
9056
|
if (!matched) return;
|
|
8930
9057
|
ignored = !negative;
|
|
8931
9058
|
unignored = negative;
|
|
@@ -8942,16 +9069,16 @@ var require_ignore$1 = __commonJS$2({ "../../node_modules/.pnpm/ignore@7.0.5/nod
|
|
|
8942
9069
|
const throwError = (message, Ctor) => {
|
|
8943
9070
|
throw new Ctor(message);
|
|
8944
9071
|
};
|
|
8945
|
-
const checkPath = (path$
|
|
8946
|
-
if (!isString$1(path$
|
|
8947
|
-
if (!path$
|
|
8948
|
-
if (checkPath.isNotRelative(path$
|
|
9072
|
+
const checkPath = (path$12, originalPath, doThrow) => {
|
|
9073
|
+
if (!isString$1(path$12)) return doThrow(`path must be a string, but got \`${originalPath}\``, TypeError);
|
|
9074
|
+
if (!path$12) return doThrow(`path must not be empty`, TypeError);
|
|
9075
|
+
if (checkPath.isNotRelative(path$12)) {
|
|
8949
9076
|
const r$1 = "`path.relative()`d";
|
|
8950
9077
|
return doThrow(`path should be a ${r$1} string, but got "${originalPath}"`, RangeError);
|
|
8951
9078
|
}
|
|
8952
9079
|
return true;
|
|
8953
9080
|
};
|
|
8954
|
-
const isNotRelative = (path$
|
|
9081
|
+
const isNotRelative = (path$12) => REGEX_TEST_INVALID_PATH.test(path$12);
|
|
8955
9082
|
checkPath.isNotRelative = isNotRelative;
|
|
8956
9083
|
/* istanbul ignore next */
|
|
8957
9084
|
checkPath.convert = (p$1) => p$1;
|
|
@@ -8974,49 +9101,49 @@ var require_ignore$1 = __commonJS$2({ "../../node_modules/.pnpm/ignore@7.0.5/nod
|
|
|
8974
9101
|
return this.add(pattern$1);
|
|
8975
9102
|
}
|
|
8976
9103
|
_test(originalPath, cache$2, checkUnignored, slices) {
|
|
8977
|
-
const path$
|
|
8978
|
-
checkPath(path$
|
|
8979
|
-
return this._t(path$
|
|
9104
|
+
const path$12 = originalPath && checkPath.convert(originalPath);
|
|
9105
|
+
checkPath(path$12, originalPath, this._strictPathCheck ? throwError : RETURN_FALSE);
|
|
9106
|
+
return this._t(path$12, cache$2, checkUnignored, slices);
|
|
8980
9107
|
}
|
|
8981
|
-
checkIgnore(path$
|
|
8982
|
-
if (!REGEX_TEST_TRAILING_SLASH.test(path$
|
|
8983
|
-
const slices = path$
|
|
9108
|
+
checkIgnore(path$12) {
|
|
9109
|
+
if (!REGEX_TEST_TRAILING_SLASH.test(path$12)) return this.test(path$12);
|
|
9110
|
+
const slices = path$12.split(SLASH).filter(Boolean);
|
|
8984
9111
|
slices.pop();
|
|
8985
9112
|
if (slices.length) {
|
|
8986
9113
|
const parent = this._t(slices.join(SLASH) + SLASH, this._testCache, true, slices);
|
|
8987
9114
|
if (parent.ignored) return parent;
|
|
8988
9115
|
}
|
|
8989
|
-
return this._rules.test(path$
|
|
9116
|
+
return this._rules.test(path$12, false, MODE_CHECK_IGNORE);
|
|
8990
9117
|
}
|
|
8991
|
-
_t(path$
|
|
8992
|
-
if (path$
|
|
8993
|
-
if (!slices) slices = path$
|
|
9118
|
+
_t(path$12, cache$2, checkUnignored, slices) {
|
|
9119
|
+
if (path$12 in cache$2) return cache$2[path$12];
|
|
9120
|
+
if (!slices) slices = path$12.split(SLASH).filter(Boolean);
|
|
8994
9121
|
slices.pop();
|
|
8995
|
-
if (!slices.length) return cache$2[path$
|
|
9122
|
+
if (!slices.length) return cache$2[path$12] = this._rules.test(path$12, checkUnignored, MODE_IGNORE);
|
|
8996
9123
|
const parent = this._t(slices.join(SLASH) + SLASH, cache$2, checkUnignored, slices);
|
|
8997
|
-
return cache$2[path$
|
|
9124
|
+
return cache$2[path$12] = parent.ignored ? parent : this._rules.test(path$12, checkUnignored, MODE_IGNORE);
|
|
8998
9125
|
}
|
|
8999
|
-
ignores(path$
|
|
9000
|
-
return this._test(path$
|
|
9126
|
+
ignores(path$12) {
|
|
9127
|
+
return this._test(path$12, this._ignoreCache, false).ignored;
|
|
9001
9128
|
}
|
|
9002
9129
|
createFilter() {
|
|
9003
|
-
return (path$
|
|
9130
|
+
return (path$12) => !this.ignores(path$12);
|
|
9004
9131
|
}
|
|
9005
9132
|
filter(paths) {
|
|
9006
9133
|
return makeArray(paths).filter(this.createFilter());
|
|
9007
9134
|
}
|
|
9008
|
-
test(path$
|
|
9009
|
-
return this._test(path$
|
|
9135
|
+
test(path$12) {
|
|
9136
|
+
return this._test(path$12, this._testCache, true);
|
|
9010
9137
|
}
|
|
9011
9138
|
};
|
|
9012
9139
|
const factory = (options$1) => new Ignore(options$1);
|
|
9013
|
-
const isPathValid = (path$
|
|
9140
|
+
const isPathValid = (path$12) => checkPath(path$12 && checkPath.convert(path$12), path$12, RETURN_FALSE);
|
|
9014
9141
|
/* istanbul ignore next */
|
|
9015
9142
|
const setupWindows = () => {
|
|
9016
9143
|
const makePosix = (str) => /^\\\\\?\\/.test(str) || /["<>|\u0000-\u001F]+/u.test(str) ? str : str.replace(/\\/g, "/");
|
|
9017
9144
|
checkPath.convert = makePosix;
|
|
9018
9145
|
const REGEX_TEST_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i;
|
|
9019
|
-
checkPath.isNotRelative = (path$
|
|
9146
|
+
checkPath.isNotRelative = (path$12) => REGEX_TEST_WINDOWS_PATH_ABSOLUTE.test(path$12) || isNotRelative(path$12);
|
|
9020
9147
|
};
|
|
9021
9148
|
/* istanbul ignore next */
|
|
9022
9149
|
if (typeof process !== "undefined" && process.platform === "win32") setupWindows();
|
|
@@ -9626,14 +9753,14 @@ function usePrefix({ status = "idle", theme }) {
|
|
|
9626
9753
|
|
|
9627
9754
|
//#endregion
|
|
9628
9755
|
//#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) {
|
|
9756
|
+
function useMemo(fn, dependencies$1) {
|
|
9630
9757
|
return withPointer((pointer) => {
|
|
9631
9758
|
const prev = pointer.get();
|
|
9632
|
-
if (!prev || prev.dependencies.length !== dependencies.length || prev.dependencies.some((dep, i$2) => dep !== dependencies[i$2])) {
|
|
9759
|
+
if (!prev || prev.dependencies.length !== dependencies$1.length || prev.dependencies.some((dep, i$2) => dep !== dependencies$1[i$2])) {
|
|
9633
9760
|
const value = fn();
|
|
9634
9761
|
pointer.set({
|
|
9635
9762
|
value,
|
|
9636
|
-
dependencies
|
|
9763
|
+
dependencies: dependencies$1
|
|
9637
9764
|
});
|
|
9638
9765
|
return value;
|
|
9639
9766
|
}
|
|
@@ -11285,30 +11412,30 @@ var require_conversions = __commonJS$2({ "../../node_modules/.pnpm/color-convert
|
|
|
11285
11412
|
];
|
|
11286
11413
|
};
|
|
11287
11414
|
convert$2.gray.hsv = convert$2.gray.hsl;
|
|
11288
|
-
convert$2.gray.hwb = function(gray) {
|
|
11415
|
+
convert$2.gray.hwb = function(gray$1) {
|
|
11289
11416
|
return [
|
|
11290
11417
|
0,
|
|
11291
11418
|
100,
|
|
11292
|
-
gray[0]
|
|
11419
|
+
gray$1[0]
|
|
11293
11420
|
];
|
|
11294
11421
|
};
|
|
11295
|
-
convert$2.gray.cmyk = function(gray) {
|
|
11422
|
+
convert$2.gray.cmyk = function(gray$1) {
|
|
11296
11423
|
return [
|
|
11297
11424
|
0,
|
|
11298
11425
|
0,
|
|
11299
11426
|
0,
|
|
11300
|
-
gray[0]
|
|
11427
|
+
gray$1[0]
|
|
11301
11428
|
];
|
|
11302
11429
|
};
|
|
11303
|
-
convert$2.gray.lab = function(gray) {
|
|
11430
|
+
convert$2.gray.lab = function(gray$1) {
|
|
11304
11431
|
return [
|
|
11305
|
-
gray[0],
|
|
11432
|
+
gray$1[0],
|
|
11306
11433
|
0,
|
|
11307
11434
|
0
|
|
11308
11435
|
];
|
|
11309
11436
|
};
|
|
11310
|
-
convert$2.gray.hex = function(gray) {
|
|
11311
|
-
const val = Math.round(gray[0] / 100 * 255) & 255;
|
|
11437
|
+
convert$2.gray.hex = function(gray$1) {
|
|
11438
|
+
const val = Math.round(gray$1[0] / 100 * 255) & 255;
|
|
11312
11439
|
const integer$1 = (val << 16) + (val << 8) + val;
|
|
11313
11440
|
const string$6 = integer$1.toString(16).toUpperCase();
|
|
11314
11441
|
return "000000".substring(string$6.length) + string$6;
|
|
@@ -11357,15 +11484,15 @@ var require_route = __commonJS$2({ "../../node_modules/.pnpm/color-convert@2.0.1
|
|
|
11357
11484
|
};
|
|
11358
11485
|
}
|
|
11359
11486
|
function wrapConversion(toModel, graph) {
|
|
11360
|
-
const path$
|
|
11487
|
+
const path$12 = [graph[toModel].parent, toModel];
|
|
11361
11488
|
let fn = conversions$1[graph[toModel].parent][toModel];
|
|
11362
11489
|
let cur = graph[toModel].parent;
|
|
11363
11490
|
while (graph[cur].parent) {
|
|
11364
|
-
path$
|
|
11491
|
+
path$12.unshift(graph[cur].parent);
|
|
11365
11492
|
fn = link(conversions$1[graph[cur].parent][cur], fn);
|
|
11366
11493
|
cur = graph[cur].parent;
|
|
11367
11494
|
}
|
|
11368
|
-
fn.conversion = path$
|
|
11495
|
+
fn.conversion = path$12;
|
|
11369
11496
|
return fn;
|
|
11370
11497
|
}
|
|
11371
11498
|
module.exports = function(fromModel) {
|
|
@@ -11469,9 +11596,9 @@ var require_ansi_styles = __commonJS$2({ "../../node_modules/.pnpm/ansi-styles@4
|
|
|
11469
11596
|
const offset = isBackground ? 10 : 0;
|
|
11470
11597
|
const styles$1 = {};
|
|
11471
11598
|
for (const [sourceSpace, suite] of Object.entries(colorConvert)) {
|
|
11472
|
-
const name$
|
|
11473
|
-
if (sourceSpace === targetSpace) styles$1[name$
|
|
11474
|
-
else if (typeof suite === "object") styles$1[name$
|
|
11599
|
+
const name$1 = sourceSpace === "ansi16" ? "ansi" : sourceSpace;
|
|
11600
|
+
if (sourceSpace === targetSpace) styles$1[name$1] = wrap(identity$1, offset);
|
|
11601
|
+
else if (typeof suite === "object") styles$1[name$1] = wrap(suite[targetSpace], offset);
|
|
11475
11602
|
}
|
|
11476
11603
|
return styles$1;
|
|
11477
11604
|
};
|
|
@@ -11803,9 +11930,9 @@ var require_lib$1 = __commonJS$2({ "../../node_modules/.pnpm/mute-stream@2.0.0/n
|
|
|
11803
11930
|
if (this._src) return this._src[key$1];
|
|
11804
11931
|
return def;
|
|
11805
11932
|
}
|
|
11806
|
-
#proxy(method
|
|
11807
|
-
if (typeof this._dest?.[method
|
|
11808
|
-
if (typeof this._src?.[method
|
|
11933
|
+
#proxy(method, ...args) {
|
|
11934
|
+
if (typeof this._dest?.[method] === "function") this._dest[method](...args);
|
|
11935
|
+
if (typeof this._src?.[method] === "function") this._src[method](...args);
|
|
11809
11936
|
}
|
|
11810
11937
|
get isTTY() {
|
|
11811
11938
|
if (this.#isTTY !== null) return this.#isTTY;
|
|
@@ -12414,11 +12541,11 @@ function normalizeChoices(choices) {
|
|
|
12414
12541
|
disabled: false,
|
|
12415
12542
|
checked: false
|
|
12416
12543
|
};
|
|
12417
|
-
const name$
|
|
12544
|
+
const name$1 = choice.name ?? String(choice.value);
|
|
12418
12545
|
const normalizedChoice = {
|
|
12419
12546
|
value: choice.value,
|
|
12420
|
-
name: name$
|
|
12421
|
-
short: choice.short ?? name$
|
|
12547
|
+
name: name$1,
|
|
12548
|
+
short: choice.short ?? name$1,
|
|
12422
12549
|
disabled: choice.disabled ?? false,
|
|
12423
12550
|
checked: choice.checked ?? false
|
|
12424
12551
|
};
|
|
@@ -12732,8 +12859,8 @@ var require_fs$4 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3/node
|
|
|
12732
12859
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12733
12860
|
exports.createDirentFromStats = void 0;
|
|
12734
12861
|
var DirentFromStats$1 = class {
|
|
12735
|
-
constructor(name$
|
|
12736
|
-
this.name = name$
|
|
12862
|
+
constructor(name$1, stats) {
|
|
12863
|
+
this.name = name$1;
|
|
12737
12864
|
this.isBlockDevice = stats.isBlockDevice.bind(stats);
|
|
12738
12865
|
this.isCharacterDevice = stats.isCharacterDevice.bind(stats);
|
|
12739
12866
|
this.isDirectory = stats.isDirectory.bind(stats);
|
|
@@ -12743,8 +12870,8 @@ var require_fs$4 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3/node
|
|
|
12743
12870
|
this.isSymbolicLink = stats.isSymbolicLink.bind(stats);
|
|
12744
12871
|
}
|
|
12745
12872
|
};
|
|
12746
|
-
function createDirentFromStats$1(name$
|
|
12747
|
-
return new DirentFromStats$1(name$
|
|
12873
|
+
function createDirentFromStats$1(name$1, stats) {
|
|
12874
|
+
return new DirentFromStats$1(name$1, stats);
|
|
12748
12875
|
}
|
|
12749
12876
|
exports.createDirentFromStats = createDirentFromStats$1;
|
|
12750
12877
|
} });
|
|
@@ -12755,7 +12882,7 @@ var require_path$1 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3/no
|
|
|
12755
12882
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12756
12883
|
exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
|
|
12757
12884
|
const os$2 = __require$1("os");
|
|
12758
|
-
const path$
|
|
12885
|
+
const path$11 = __require$1("path");
|
|
12759
12886
|
const IS_WINDOWS_PLATFORM = os$2.platform() === "win32";
|
|
12760
12887
|
const LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2;
|
|
12761
12888
|
/**
|
|
@@ -12784,7 +12911,7 @@ var require_path$1 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3/no
|
|
|
12784
12911
|
}
|
|
12785
12912
|
exports.unixify = unixify;
|
|
12786
12913
|
function makeAbsolute(cwd, filepath) {
|
|
12787
|
-
return path$
|
|
12914
|
+
return path$11.resolve(cwd, filepath);
|
|
12788
12915
|
}
|
|
12789
12916
|
exports.makeAbsolute = makeAbsolute;
|
|
12790
12917
|
function removeLeadingDotSegment(entry) {
|
|
@@ -12924,7 +13051,7 @@ var require_is_glob$1 = __commonJS$2({ "../../node_modules/.pnpm/is-glob@4.0.3/n
|
|
|
12924
13051
|
}
|
|
12925
13052
|
return false;
|
|
12926
13053
|
};
|
|
12927
|
-
module.exports = function isGlob$
|
|
13054
|
+
module.exports = function isGlob$1(str, options$1) {
|
|
12928
13055
|
if (typeof str !== "string" || str === "") return false;
|
|
12929
13056
|
if (isExtglob(str)) return true;
|
|
12930
13057
|
var check$4 = strictCheck;
|
|
@@ -12936,7 +13063,7 @@ var require_is_glob$1 = __commonJS$2({ "../../node_modules/.pnpm/is-glob@4.0.3/n
|
|
|
12936
13063
|
//#endregion
|
|
12937
13064
|
//#region ../../node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.js
|
|
12938
13065
|
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
|
|
13066
|
+
var isGlob = require_is_glob$1();
|
|
12940
13067
|
var pathPosixDirname = __require$1("path").posix.dirname;
|
|
12941
13068
|
var isWin32 = __require$1("os").platform() === "win32";
|
|
12942
13069
|
var slash$2 = "/";
|
|
@@ -12957,7 +13084,7 @@ var require_glob_parent$1 = __commonJS$2({ "../../node_modules/.pnpm/glob-parent
|
|
|
12957
13084
|
str += "a";
|
|
12958
13085
|
do
|
|
12959
13086
|
str = pathPosixDirname(str);
|
|
12960
|
-
while (isGlob
|
|
13087
|
+
while (isGlob(str) || globby$1.test(str));
|
|
12961
13088
|
return str.replace(escaped, "$1");
|
|
12962
13089
|
};
|
|
12963
13090
|
} });
|
|
@@ -13092,11 +13219,11 @@ var require_is_number$1 = __commonJS$2({ "../../node_modules/.pnpm/is-number@7.0
|
|
|
13092
13219
|
//#endregion
|
|
13093
13220
|
//#region ../../node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.js
|
|
13094
13221
|
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$
|
|
13222
|
+
const isNumber$1 = require_is_number$1();
|
|
13096
13223
|
const toRegexRange$1 = (min, max, options$1) => {
|
|
13097
|
-
if (isNumber$
|
|
13224
|
+
if (isNumber$1(min) === false) throw new TypeError("toRegexRange: expected the first argument to be a number");
|
|
13098
13225
|
if (max === void 0 || min === max) return String(min);
|
|
13099
|
-
if (isNumber$
|
|
13226
|
+
if (isNumber$1(max) === false) throw new TypeError("toRegexRange: expected the second argument to be a number.");
|
|
13100
13227
|
let opts = {
|
|
13101
13228
|
relaxZeros: true,
|
|
13102
13229
|
...options$1
|
|
@@ -13227,8 +13354,8 @@ var require_to_regex_range$1 = __commonJS$2({ "../../node_modules/.pnpm/to-regex
|
|
|
13227
13354
|
let result = [];
|
|
13228
13355
|
for (let ele of arr) {
|
|
13229
13356
|
let { string: string$6 } = ele;
|
|
13230
|
-
if (!intersection$1 && !contains
|
|
13231
|
-
if (intersection$1 && contains
|
|
13357
|
+
if (!intersection$1 && !contains(comparison, "string", string$6)) result.push(prefix + string$6);
|
|
13358
|
+
if (intersection$1 && contains(comparison, "string", string$6)) result.push(prefix + string$6);
|
|
13232
13359
|
}
|
|
13233
13360
|
return result;
|
|
13234
13361
|
}
|
|
@@ -13243,7 +13370,7 @@ var require_to_regex_range$1 = __commonJS$2({ "../../node_modules/.pnpm/to-regex
|
|
|
13243
13370
|
function compare(a$1, b$1) {
|
|
13244
13371
|
return a$1 > b$1 ? 1 : b$1 > a$1 ? -1 : 0;
|
|
13245
13372
|
}
|
|
13246
|
-
function contains
|
|
13373
|
+
function contains(arr, key$1, val) {
|
|
13247
13374
|
return arr.some((ele) => ele[key$1] === val);
|
|
13248
13375
|
}
|
|
13249
13376
|
function countNines(min, len) {
|
|
@@ -13297,7 +13424,7 @@ var require_fill_range$1 = __commonJS$2({ "../../node_modules/.pnpm/fill-range@7
|
|
|
13297
13424
|
const isValidValue = (value) => {
|
|
13298
13425
|
return typeof value === "number" || typeof value === "string" && value !== "";
|
|
13299
13426
|
};
|
|
13300
|
-
const isNumber
|
|
13427
|
+
const isNumber = (num) => Number.isInteger(+num);
|
|
13301
13428
|
const zeros = (input) => {
|
|
13302
13429
|
let value = `${input}`;
|
|
13303
13430
|
let index$1 = -1;
|
|
@@ -13410,7 +13537,7 @@ var require_fill_range$1 = __commonJS$2({ "../../node_modules/.pnpm/fill-range@7
|
|
|
13410
13537
|
return range;
|
|
13411
13538
|
};
|
|
13412
13539
|
const fillLetters = (start, end, step = 1, options$1 = {}) => {
|
|
13413
|
-
if (!isNumber
|
|
13540
|
+
if (!isNumber(start) && start.length > 1 || !isNumber(end) && end.length > 1) return invalidRange(start, end, options$1);
|
|
13414
13541
|
let format$2 = options$1.transform || ((val) => String.fromCharCode(val));
|
|
13415
13542
|
let a$1 = `${start}`.charCodeAt(0);
|
|
13416
13543
|
let b$1 = `${end}`.charCodeAt(0);
|
|
@@ -13439,11 +13566,11 @@ var require_fill_range$1 = __commonJS$2({ "../../node_modules/.pnpm/fill-range@7
|
|
|
13439
13566
|
let opts = { ...options$1 };
|
|
13440
13567
|
if (opts.capture === true) opts.wrap = true;
|
|
13441
13568
|
step = step || opts.step || 1;
|
|
13442
|
-
if (!isNumber
|
|
13569
|
+
if (!isNumber(step)) {
|
|
13443
13570
|
if (step != null && !isObject$3(step)) return invalidStep(step, opts);
|
|
13444
13571
|
return fill$3(start, end, 1, step);
|
|
13445
13572
|
}
|
|
13446
|
-
if (isNumber
|
|
13573
|
+
if (isNumber(start) && isNumber(end)) return fillNumbers(start, end, step, opts);
|
|
13447
13574
|
return fillLetters(start, end, Math.max(Math.abs(step), 1), opts);
|
|
13448
13575
|
};
|
|
13449
13576
|
module.exports = fill$3;
|
|
@@ -14038,7 +14165,7 @@ var require_braces$1 = __commonJS$2({ "../../node_modules/.pnpm/braces@3.0.3/nod
|
|
|
14038
14165
|
//#endregion
|
|
14039
14166
|
//#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.js
|
|
14040
14167
|
var require_constants$2 = __commonJS$2({ "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.js"(exports, module) {
|
|
14041
|
-
const path$
|
|
14168
|
+
const path$10 = __require$1("path");
|
|
14042
14169
|
const WIN_SLASH = "\\\\/";
|
|
14043
14170
|
const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
14044
14171
|
/**
|
|
@@ -14169,7 +14296,7 @@ var require_constants$2 = __commonJS$2({ "../../node_modules/.pnpm/picomatch@2.3
|
|
|
14169
14296
|
CHAR_UNDERSCORE: 95,
|
|
14170
14297
|
CHAR_VERTICAL_LINE: 124,
|
|
14171
14298
|
CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
|
|
14172
|
-
SEP: path$
|
|
14299
|
+
SEP: path$10.sep,
|
|
14173
14300
|
extglobChars(chars$1) {
|
|
14174
14301
|
return {
|
|
14175
14302
|
"!": {
|
|
@@ -14208,7 +14335,7 @@ var require_constants$2 = __commonJS$2({ "../../node_modules/.pnpm/picomatch@2.3
|
|
|
14208
14335
|
//#endregion
|
|
14209
14336
|
//#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js
|
|
14210
14337
|
var require_utils$3 = __commonJS$2({ "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js"(exports) {
|
|
14211
|
-
const path$
|
|
14338
|
+
const path$9 = __require$1("path");
|
|
14212
14339
|
const win32 = process.platform === "win32";
|
|
14213
14340
|
const { REGEX_BACKSLASH, REGEX_REMOVE_BACKSLASH, REGEX_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_GLOBAL } = require_constants$2();
|
|
14214
14341
|
exports.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
|
|
@@ -14228,7 +14355,7 @@ var require_utils$3 = __commonJS$2({ "../../node_modules/.pnpm/picomatch@2.3.1/n
|
|
|
14228
14355
|
};
|
|
14229
14356
|
exports.isWindows = (options$1) => {
|
|
14230
14357
|
if (options$1 && typeof options$1.windows === "boolean") return options$1.windows;
|
|
14231
|
-
return win32 === true || path$
|
|
14358
|
+
return win32 === true || path$9.sep === "\\";
|
|
14232
14359
|
};
|
|
14233
14360
|
exports.escapeLast = (input, char, lastIdx) => {
|
|
14234
14361
|
const idx = input.lastIndexOf(char, lastIdx);
|
|
@@ -14293,7 +14420,7 @@ var require_scan$1 = __commonJS$2({ "../../node_modules/.pnpm/picomatch@2.3.1/no
|
|
|
14293
14420
|
let lastIndex = 0;
|
|
14294
14421
|
let isBrace = false;
|
|
14295
14422
|
let isBracket = false;
|
|
14296
|
-
let isGlob$
|
|
14423
|
+
let isGlob$1 = false;
|
|
14297
14424
|
let isExtglob$1 = false;
|
|
14298
14425
|
let isGlobstar = false;
|
|
14299
14426
|
let braceEscaped = false;
|
|
@@ -14338,14 +14465,14 @@ var require_scan$1 = __commonJS$2({ "../../node_modules/.pnpm/picomatch@2.3.1/no
|
|
|
14338
14465
|
}
|
|
14339
14466
|
if (braceEscaped !== true && code$1 === CHAR_DOT && (code$1 = advance()) === CHAR_DOT) {
|
|
14340
14467
|
isBrace = token$1.isBrace = true;
|
|
14341
|
-
isGlob$
|
|
14468
|
+
isGlob$1 = token$1.isGlob = true;
|
|
14342
14469
|
finished$1 = true;
|
|
14343
14470
|
if (scanToEnd === true) continue;
|
|
14344
14471
|
break;
|
|
14345
14472
|
}
|
|
14346
14473
|
if (braceEscaped !== true && code$1 === CHAR_COMMA) {
|
|
14347
14474
|
isBrace = token$1.isBrace = true;
|
|
14348
|
-
isGlob$
|
|
14475
|
+
isGlob$1 = token$1.isGlob = true;
|
|
14349
14476
|
finished$1 = true;
|
|
14350
14477
|
if (scanToEnd === true) continue;
|
|
14351
14478
|
break;
|
|
@@ -14382,7 +14509,7 @@ var require_scan$1 = __commonJS$2({ "../../node_modules/.pnpm/picomatch@2.3.1/no
|
|
|
14382
14509
|
if (opts.noext !== true) {
|
|
14383
14510
|
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
14511
|
if (isExtglobChar === true && peek$1() === CHAR_LEFT_PARENTHESES) {
|
|
14385
|
-
isGlob$
|
|
14512
|
+
isGlob$1 = token$1.isGlob = true;
|
|
14386
14513
|
isExtglob$1 = token$1.isExtglob = true;
|
|
14387
14514
|
finished$1 = true;
|
|
14388
14515
|
if (code$1 === CHAR_EXCLAMATION_MARK && index$1 === start) negatedExtglob = true;
|
|
@@ -14394,7 +14521,7 @@ var require_scan$1 = __commonJS$2({ "../../node_modules/.pnpm/picomatch@2.3.1/no
|
|
|
14394
14521
|
continue;
|
|
14395
14522
|
}
|
|
14396
14523
|
if (code$1 === CHAR_RIGHT_PARENTHESES) {
|
|
14397
|
-
isGlob$
|
|
14524
|
+
isGlob$1 = token$1.isGlob = true;
|
|
14398
14525
|
finished$1 = true;
|
|
14399
14526
|
break;
|
|
14400
14527
|
}
|
|
@@ -14406,13 +14533,13 @@ var require_scan$1 = __commonJS$2({ "../../node_modules/.pnpm/picomatch@2.3.1/no
|
|
|
14406
14533
|
}
|
|
14407
14534
|
if (code$1 === CHAR_ASTERISK) {
|
|
14408
14535
|
if (prev === CHAR_ASTERISK) isGlobstar = token$1.isGlobstar = true;
|
|
14409
|
-
isGlob$
|
|
14536
|
+
isGlob$1 = token$1.isGlob = true;
|
|
14410
14537
|
finished$1 = true;
|
|
14411
14538
|
if (scanToEnd === true) continue;
|
|
14412
14539
|
break;
|
|
14413
14540
|
}
|
|
14414
14541
|
if (code$1 === CHAR_QUESTION_MARK) {
|
|
14415
|
-
isGlob$
|
|
14542
|
+
isGlob$1 = token$1.isGlob = true;
|
|
14416
14543
|
finished$1 = true;
|
|
14417
14544
|
if (scanToEnd === true) continue;
|
|
14418
14545
|
break;
|
|
@@ -14426,7 +14553,7 @@ var require_scan$1 = __commonJS$2({ "../../node_modules/.pnpm/picomatch@2.3.1/no
|
|
|
14426
14553
|
}
|
|
14427
14554
|
if (next === CHAR_RIGHT_SQUARE_BRACKET) {
|
|
14428
14555
|
isBracket = token$1.isBracket = true;
|
|
14429
|
-
isGlob$
|
|
14556
|
+
isGlob$1 = token$1.isGlob = true;
|
|
14430
14557
|
finished$1 = true;
|
|
14431
14558
|
break;
|
|
14432
14559
|
}
|
|
@@ -14440,7 +14567,7 @@ var require_scan$1 = __commonJS$2({ "../../node_modules/.pnpm/picomatch@2.3.1/no
|
|
|
14440
14567
|
continue;
|
|
14441
14568
|
}
|
|
14442
14569
|
if (opts.noparen !== true && code$1 === CHAR_LEFT_PARENTHESES) {
|
|
14443
|
-
isGlob$
|
|
14570
|
+
isGlob$1 = token$1.isGlob = true;
|
|
14444
14571
|
if (scanToEnd === true) {
|
|
14445
14572
|
while (eos() !== true && (code$1 = advance())) {
|
|
14446
14573
|
if (code$1 === CHAR_LEFT_PARENTHESES) {
|
|
@@ -14457,7 +14584,7 @@ var require_scan$1 = __commonJS$2({ "../../node_modules/.pnpm/picomatch@2.3.1/no
|
|
|
14457
14584
|
}
|
|
14458
14585
|
break;
|
|
14459
14586
|
}
|
|
14460
|
-
if (isGlob$
|
|
14587
|
+
if (isGlob$1 === true) {
|
|
14461
14588
|
finished$1 = true;
|
|
14462
14589
|
if (scanToEnd === true) continue;
|
|
14463
14590
|
break;
|
|
@@ -14465,7 +14592,7 @@ var require_scan$1 = __commonJS$2({ "../../node_modules/.pnpm/picomatch@2.3.1/no
|
|
|
14465
14592
|
}
|
|
14466
14593
|
if (opts.noext === true) {
|
|
14467
14594
|
isExtglob$1 = false;
|
|
14468
|
-
isGlob$
|
|
14595
|
+
isGlob$1 = false;
|
|
14469
14596
|
}
|
|
14470
14597
|
let base = str;
|
|
14471
14598
|
let prefix = "";
|
|
@@ -14475,10 +14602,10 @@ var require_scan$1 = __commonJS$2({ "../../node_modules/.pnpm/picomatch@2.3.1/no
|
|
|
14475
14602
|
str = str.slice(start);
|
|
14476
14603
|
lastIndex -= start;
|
|
14477
14604
|
}
|
|
14478
|
-
if (base && isGlob$
|
|
14605
|
+
if (base && isGlob$1 === true && lastIndex > 0) {
|
|
14479
14606
|
base = str.slice(0, lastIndex);
|
|
14480
14607
|
glob = str.slice(lastIndex);
|
|
14481
|
-
} else if (isGlob$
|
|
14608
|
+
} else if (isGlob$1 === true) {
|
|
14482
14609
|
base = "";
|
|
14483
14610
|
glob = str;
|
|
14484
14611
|
} else base = str;
|
|
@@ -14497,7 +14624,7 @@ var require_scan$1 = __commonJS$2({ "../../node_modules/.pnpm/picomatch@2.3.1/no
|
|
|
14497
14624
|
glob,
|
|
14498
14625
|
isBrace,
|
|
14499
14626
|
isBracket,
|
|
14500
|
-
isGlob: isGlob$
|
|
14627
|
+
isGlob: isGlob$1,
|
|
14501
14628
|
isExtglob: isExtglob$1,
|
|
14502
14629
|
isGlobstar,
|
|
14503
14630
|
negated,
|
|
@@ -15413,7 +15540,7 @@ var require_parse$1 = __commonJS$2({ "../../node_modules/.pnpm/picomatch@2.3.1/n
|
|
|
15413
15540
|
//#endregion
|
|
15414
15541
|
//#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js
|
|
15415
15542
|
var require_picomatch$2 = __commonJS$2({ "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js"(exports, module) {
|
|
15416
|
-
const path$
|
|
15543
|
+
const path$8 = __require$1("path");
|
|
15417
15544
|
const scan = require_scan$1();
|
|
15418
15545
|
const parse$4 = require_parse$1();
|
|
15419
15546
|
const utils$12 = require_utils$3();
|
|
@@ -15553,7 +15680,7 @@ var require_picomatch$2 = __commonJS$2({ "../../node_modules/.pnpm/picomatch@2.3
|
|
|
15553
15680
|
*/
|
|
15554
15681
|
picomatch$1.matchBase = (input, glob, options$1, posix = utils$12.isWindows(options$1)) => {
|
|
15555
15682
|
const regex$1 = glob instanceof RegExp ? glob : picomatch$1.makeRe(glob, options$1);
|
|
15556
|
-
return regex$1.test(path$
|
|
15683
|
+
return regex$1.test(path$8.basename(input));
|
|
15557
15684
|
};
|
|
15558
15685
|
/**
|
|
15559
15686
|
* Returns true if **any** of the given glob `patterns` match the specified `string`.
|
|
@@ -15740,7 +15867,7 @@ var require_micromatch$1 = __commonJS$2({ "../../node_modules/.pnpm/micromatch@4
|
|
|
15740
15867
|
* @summary false
|
|
15741
15868
|
* @api public
|
|
15742
15869
|
*/
|
|
15743
|
-
const micromatch$
|
|
15870
|
+
const micromatch$2 = (list$1, patterns, options$1) => {
|
|
15744
15871
|
patterns = [].concat(patterns);
|
|
15745
15872
|
list$1 = [].concat(list$1);
|
|
15746
15873
|
let omit$2 = /* @__PURE__ */ new Set();
|
|
@@ -15780,7 +15907,7 @@ var require_micromatch$1 = __commonJS$2({ "../../node_modules/.pnpm/micromatch@4
|
|
|
15780
15907
|
/**
|
|
15781
15908
|
* Backwards compatibility
|
|
15782
15909
|
*/
|
|
15783
|
-
micromatch$
|
|
15910
|
+
micromatch$2.match = micromatch$2;
|
|
15784
15911
|
/**
|
|
15785
15912
|
* Returns a matcher function from the given glob `pattern` and `options`.
|
|
15786
15913
|
* The returned function takes a string to match as its only argument and returns
|
|
@@ -15799,7 +15926,7 @@ var require_micromatch$1 = __commonJS$2({ "../../node_modules/.pnpm/micromatch@4
|
|
|
15799
15926
|
* @return {Function} Returns a matcher function.
|
|
15800
15927
|
* @api public
|
|
15801
15928
|
*/
|
|
15802
|
-
micromatch$
|
|
15929
|
+
micromatch$2.matcher = (pattern$1, options$1) => picomatch(pattern$1, options$1);
|
|
15803
15930
|
/**
|
|
15804
15931
|
* Returns true if **any** of the given glob `patterns` match the specified `string`.
|
|
15805
15932
|
*
|
|
@@ -15816,11 +15943,11 @@ var require_micromatch$1 = __commonJS$2({ "../../node_modules/.pnpm/micromatch@4
|
|
|
15816
15943
|
* @return {Boolean} Returns true if any patterns match `str`
|
|
15817
15944
|
* @api public
|
|
15818
15945
|
*/
|
|
15819
|
-
micromatch$
|
|
15946
|
+
micromatch$2.isMatch = (str, patterns, options$1) => picomatch(patterns, options$1)(str);
|
|
15820
15947
|
/**
|
|
15821
15948
|
* Backwards compatibility
|
|
15822
15949
|
*/
|
|
15823
|
-
micromatch$
|
|
15950
|
+
micromatch$2.any = micromatch$2.isMatch;
|
|
15824
15951
|
/**
|
|
15825
15952
|
* Returns a list of strings that _**do not match any**_ of the given `patterns`.
|
|
15826
15953
|
*
|
|
@@ -15837,7 +15964,7 @@ var require_micromatch$1 = __commonJS$2({ "../../node_modules/.pnpm/micromatch@4
|
|
|
15837
15964
|
* @return {Array} Returns an array of strings that **do not match** the given patterns.
|
|
15838
15965
|
* @api public
|
|
15839
15966
|
*/
|
|
15840
|
-
micromatch$
|
|
15967
|
+
micromatch$2.not = (list$1, patterns, options$1 = {}) => {
|
|
15841
15968
|
patterns = [].concat(patterns).map(String);
|
|
15842
15969
|
let result = /* @__PURE__ */ new Set();
|
|
15843
15970
|
let items = [];
|
|
@@ -15845,7 +15972,7 @@ var require_micromatch$1 = __commonJS$2({ "../../node_modules/.pnpm/micromatch@4
|
|
|
15845
15972
|
if (options$1.onResult) options$1.onResult(state);
|
|
15846
15973
|
items.push(state.output);
|
|
15847
15974
|
};
|
|
15848
|
-
let matches = new Set(micromatch$
|
|
15975
|
+
let matches = new Set(micromatch$2(list$1, patterns, {
|
|
15849
15976
|
...options$1,
|
|
15850
15977
|
onResult
|
|
15851
15978
|
}));
|
|
@@ -15871,14 +15998,14 @@ var require_micromatch$1 = __commonJS$2({ "../../node_modules/.pnpm/micromatch@4
|
|
|
15871
15998
|
* @return {Boolean} Returns true if any of the patterns matches any part of `str`.
|
|
15872
15999
|
* @api public
|
|
15873
16000
|
*/
|
|
15874
|
-
micromatch$
|
|
16001
|
+
micromatch$2.contains = (str, pattern$1, options$1) => {
|
|
15875
16002
|
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$
|
|
16003
|
+
if (Array.isArray(pattern$1)) return pattern$1.some((p$1) => micromatch$2.contains(str, p$1, options$1));
|
|
15877
16004
|
if (typeof pattern$1 === "string") {
|
|
15878
16005
|
if (isEmptyString(str) || isEmptyString(pattern$1)) return false;
|
|
15879
16006
|
if (str.includes(pattern$1) || str.startsWith("./") && str.slice(2).includes(pattern$1)) return true;
|
|
15880
16007
|
}
|
|
15881
|
-
return micromatch$
|
|
16008
|
+
return micromatch$2.isMatch(str, pattern$1, {
|
|
15882
16009
|
...options$1,
|
|
15883
16010
|
contains: true
|
|
15884
16011
|
});
|
|
@@ -15902,9 +16029,9 @@ var require_micromatch$1 = __commonJS$2({ "../../node_modules/.pnpm/micromatch@4
|
|
|
15902
16029
|
* @return {Object} Returns an object with only keys that match the given patterns.
|
|
15903
16030
|
* @api public
|
|
15904
16031
|
*/
|
|
15905
|
-
micromatch$
|
|
16032
|
+
micromatch$2.matchKeys = (obj, patterns, options$1) => {
|
|
15906
16033
|
if (!utils$11.isObject(obj)) throw new TypeError("Expected the first argument to be an object");
|
|
15907
|
-
let keys = micromatch$
|
|
16034
|
+
let keys = micromatch$2(Object.keys(obj), patterns, options$1);
|
|
15908
16035
|
let res = {};
|
|
15909
16036
|
for (let key$1 of keys) res[key$1] = obj[key$1];
|
|
15910
16037
|
return res;
|
|
@@ -15927,7 +16054,7 @@ var require_micromatch$1 = __commonJS$2({ "../../node_modules/.pnpm/micromatch@4
|
|
|
15927
16054
|
* @return {Boolean} Returns true if any `patterns` matches any of the strings in `list`
|
|
15928
16055
|
* @api public
|
|
15929
16056
|
*/
|
|
15930
|
-
micromatch$
|
|
16057
|
+
micromatch$2.some = (list$1, patterns, options$1) => {
|
|
15931
16058
|
let items = [].concat(list$1);
|
|
15932
16059
|
for (let pattern$1 of [].concat(patterns)) {
|
|
15933
16060
|
let isMatch = picomatch(String(pattern$1), options$1);
|
|
@@ -15958,7 +16085,7 @@ var require_micromatch$1 = __commonJS$2({ "../../node_modules/.pnpm/micromatch@4
|
|
|
15958
16085
|
* @return {Boolean} Returns true if all `patterns` matches all of the strings in `list`
|
|
15959
16086
|
* @api public
|
|
15960
16087
|
*/
|
|
15961
|
-
micromatch$
|
|
16088
|
+
micromatch$2.every = (list$1, patterns, options$1) => {
|
|
15962
16089
|
let items = [].concat(list$1);
|
|
15963
16090
|
for (let pattern$1 of [].concat(patterns)) {
|
|
15964
16091
|
let isMatch = picomatch(String(pattern$1), options$1);
|
|
@@ -15992,7 +16119,7 @@ var require_micromatch$1 = __commonJS$2({ "../../node_modules/.pnpm/micromatch@4
|
|
|
15992
16119
|
* @return {Boolean} Returns true if any patterns match `str`
|
|
15993
16120
|
* @api public
|
|
15994
16121
|
*/
|
|
15995
|
-
micromatch$
|
|
16122
|
+
micromatch$2.all = (str, patterns, options$1) => {
|
|
15996
16123
|
if (typeof str !== "string") throw new TypeError(`Expected a string: "${util$2.inspect(str)}"`);
|
|
15997
16124
|
return [].concat(patterns).every((p$1) => picomatch(p$1, options$1)(str));
|
|
15998
16125
|
};
|
|
@@ -16014,7 +16141,7 @@ var require_micromatch$1 = __commonJS$2({ "../../node_modules/.pnpm/micromatch@4
|
|
|
16014
16141
|
* @return {Array|null} Returns an array of captures if the input matches the glob pattern, otherwise `null`.
|
|
16015
16142
|
* @api public
|
|
16016
16143
|
*/
|
|
16017
|
-
micromatch$
|
|
16144
|
+
micromatch$2.capture = (glob, input, options$1) => {
|
|
16018
16145
|
let posix = utils$11.isWindows(options$1);
|
|
16019
16146
|
let regex$1 = picomatch.makeRe(String(glob), {
|
|
16020
16147
|
...options$1,
|
|
@@ -16038,7 +16165,7 @@ var require_micromatch$1 = __commonJS$2({ "../../node_modules/.pnpm/micromatch@4
|
|
|
16038
16165
|
* @return {RegExp} Returns a regex created from the given pattern.
|
|
16039
16166
|
* @api public
|
|
16040
16167
|
*/
|
|
16041
|
-
micromatch$
|
|
16168
|
+
micromatch$2.makeRe = (...args) => picomatch.makeRe(...args);
|
|
16042
16169
|
/**
|
|
16043
16170
|
* Scan a glob pattern to separate the pattern into segments. Used
|
|
16044
16171
|
* by the [split](#split) method.
|
|
@@ -16052,7 +16179,7 @@ var require_micromatch$1 = __commonJS$2({ "../../node_modules/.pnpm/micromatch@4
|
|
|
16052
16179
|
* @return {Object} Returns an object with
|
|
16053
16180
|
* @api public
|
|
16054
16181
|
*/
|
|
16055
|
-
micromatch$
|
|
16182
|
+
micromatch$2.scan = (...args) => picomatch.scan(...args);
|
|
16056
16183
|
/**
|
|
16057
16184
|
* Parse a glob pattern to create the source string for a regular
|
|
16058
16185
|
* expression.
|
|
@@ -16066,7 +16193,7 @@ var require_micromatch$1 = __commonJS$2({ "../../node_modules/.pnpm/micromatch@4
|
|
|
16066
16193
|
* @return {Object} Returns an object with useful properties and output to be used as regex source string.
|
|
16067
16194
|
* @api public
|
|
16068
16195
|
*/
|
|
16069
|
-
micromatch$
|
|
16196
|
+
micromatch$2.parse = (patterns, options$1) => {
|
|
16070
16197
|
let res = [];
|
|
16071
16198
|
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
16199
|
return res;
|
|
@@ -16087,7 +16214,7 @@ var require_micromatch$1 = __commonJS$2({ "../../node_modules/.pnpm/micromatch@4
|
|
|
16087
16214
|
* @return {Array}
|
|
16088
16215
|
* @api public
|
|
16089
16216
|
*/
|
|
16090
|
-
micromatch$
|
|
16217
|
+
micromatch$2.braces = (pattern$1, options$1) => {
|
|
16091
16218
|
if (typeof pattern$1 !== "string") throw new TypeError("Expected a string");
|
|
16092
16219
|
if (options$1 && options$1.nobrace === true || !hasBraces(pattern$1)) return [pattern$1];
|
|
16093
16220
|
return braces(pattern$1, options$1);
|
|
@@ -16095,9 +16222,9 @@ var require_micromatch$1 = __commonJS$2({ "../../node_modules/.pnpm/micromatch@4
|
|
|
16095
16222
|
/**
|
|
16096
16223
|
* Expand braces
|
|
16097
16224
|
*/
|
|
16098
|
-
micromatch$
|
|
16225
|
+
micromatch$2.braceExpand = (pattern$1, options$1) => {
|
|
16099
16226
|
if (typeof pattern$1 !== "string") throw new TypeError("Expected a string");
|
|
16100
|
-
return micromatch$
|
|
16227
|
+
return micromatch$2.braces(pattern$1, {
|
|
16101
16228
|
...options$1,
|
|
16102
16229
|
expand: true
|
|
16103
16230
|
});
|
|
@@ -16105,8 +16232,8 @@ var require_micromatch$1 = __commonJS$2({ "../../node_modules/.pnpm/micromatch@4
|
|
|
16105
16232
|
/**
|
|
16106
16233
|
* Expose micromatch
|
|
16107
16234
|
*/
|
|
16108
|
-
micromatch$
|
|
16109
|
-
module.exports = micromatch$
|
|
16235
|
+
micromatch$2.hasBraces = hasBraces;
|
|
16236
|
+
module.exports = micromatch$2;
|
|
16110
16237
|
} });
|
|
16111
16238
|
|
|
16112
16239
|
//#endregion
|
|
@@ -16114,9 +16241,9 @@ var require_micromatch$1 = __commonJS$2({ "../../node_modules/.pnpm/micromatch@4
|
|
|
16114
16241
|
var require_pattern$1 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/pattern.js"(exports) {
|
|
16115
16242
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16116
16243
|
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$
|
|
16244
|
+
const path$7 = __require$1("path");
|
|
16118
16245
|
const globParent = require_glob_parent$1();
|
|
16119
|
-
const micromatch$
|
|
16246
|
+
const micromatch$1 = require_micromatch$1();
|
|
16120
16247
|
const GLOBSTAR = "**";
|
|
16121
16248
|
const ESCAPE_SYMBOL = "\\";
|
|
16122
16249
|
const COMMON_GLOB_SYMBOLS_RE = /[*?]|^!/;
|
|
@@ -16222,7 +16349,7 @@ var require_pattern$1 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3
|
|
|
16222
16349
|
}
|
|
16223
16350
|
exports.endsWithSlashGlobStar = endsWithSlashGlobStar;
|
|
16224
16351
|
function isAffectDepthOfReadingPattern(pattern$1) {
|
|
16225
|
-
const basename$1 = path$
|
|
16352
|
+
const basename$1 = path$7.basename(pattern$1);
|
|
16226
16353
|
return endsWithSlashGlobStar(pattern$1) || isStaticPattern(basename$1);
|
|
16227
16354
|
}
|
|
16228
16355
|
exports.isAffectDepthOfReadingPattern = isAffectDepthOfReadingPattern;
|
|
@@ -16233,7 +16360,7 @@ var require_pattern$1 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3
|
|
|
16233
16360
|
}
|
|
16234
16361
|
exports.expandPatternsWithBraceExpansion = expandPatternsWithBraceExpansion;
|
|
16235
16362
|
function expandBraceExpansion(pattern$1) {
|
|
16236
|
-
const patterns = micromatch$
|
|
16363
|
+
const patterns = micromatch$1.braces(pattern$1, {
|
|
16237
16364
|
expand: true,
|
|
16238
16365
|
nodupes: true,
|
|
16239
16366
|
keepEscaping: true
|
|
@@ -16250,7 +16377,7 @@ var require_pattern$1 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3
|
|
|
16250
16377
|
}
|
|
16251
16378
|
exports.expandBraceExpansion = expandBraceExpansion;
|
|
16252
16379
|
function getPatternParts(pattern$1, options$1) {
|
|
16253
|
-
let { parts } = micromatch$
|
|
16380
|
+
let { parts } = micromatch$1.scan(pattern$1, Object.assign(Object.assign({}, options$1), { parts: true }));
|
|
16254
16381
|
/**
|
|
16255
16382
|
* The scan method returns an empty array in some cases.
|
|
16256
16383
|
* See micromatch/picomatch#58 for more details.
|
|
@@ -16268,7 +16395,7 @@ var require_pattern$1 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3
|
|
|
16268
16395
|
}
|
|
16269
16396
|
exports.getPatternParts = getPatternParts;
|
|
16270
16397
|
function makeRe(pattern$1, options$1) {
|
|
16271
|
-
return micromatch$
|
|
16398
|
+
return micromatch$1.makeRe(pattern$1, options$1);
|
|
16272
16399
|
}
|
|
16273
16400
|
exports.makeRe = makeRe;
|
|
16274
16401
|
function convertPatternsToRe(patterns, options$1) {
|
|
@@ -16296,7 +16423,7 @@ var require_pattern$1 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3
|
|
|
16296
16423
|
}
|
|
16297
16424
|
exports.partitionAbsoluteAndRelative = partitionAbsoluteAndRelative;
|
|
16298
16425
|
function isAbsolute(pattern$1) {
|
|
16299
|
-
return path$
|
|
16426
|
+
return path$7.isAbsolute(pattern$1);
|
|
16300
16427
|
}
|
|
16301
16428
|
exports.isAbsolute = isAbsolute;
|
|
16302
16429
|
} });
|
|
@@ -16430,8 +16557,8 @@ var require_utils$2 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3/n
|
|
|
16430
16557
|
exports.errno = errno;
|
|
16431
16558
|
const fs$8 = require_fs$4();
|
|
16432
16559
|
exports.fs = fs$8;
|
|
16433
|
-
const path$
|
|
16434
|
-
exports.path = path$
|
|
16560
|
+
const path$6 = require_path$1();
|
|
16561
|
+
exports.path = path$6;
|
|
16435
16562
|
const pattern = require_pattern$1();
|
|
16436
16563
|
exports.pattern = pattern;
|
|
16437
16564
|
const stream = require_stream$4();
|
|
@@ -16543,8 +16670,8 @@ var require_tasks$1 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3/n
|
|
|
16543
16670
|
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
16671
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16545
16672
|
exports.read = void 0;
|
|
16546
|
-
function read$4(path$
|
|
16547
|
-
settings.fs.lstat(path$
|
|
16673
|
+
function read$4(path$12, settings, callback) {
|
|
16674
|
+
settings.fs.lstat(path$12, (lstatError, lstat) => {
|
|
16548
16675
|
if (lstatError !== null) {
|
|
16549
16676
|
callFailureCallback$2(callback, lstatError);
|
|
16550
16677
|
return;
|
|
@@ -16553,7 +16680,7 @@ var require_async$6 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.stat@
|
|
|
16553
16680
|
callSuccessCallback$2(callback, lstat);
|
|
16554
16681
|
return;
|
|
16555
16682
|
}
|
|
16556
|
-
settings.fs.stat(path$
|
|
16683
|
+
settings.fs.stat(path$12, (statError, stat$1) => {
|
|
16557
16684
|
if (statError !== null) {
|
|
16558
16685
|
if (settings.throwErrorOnBrokenSymbolicLink) {
|
|
16559
16686
|
callFailureCallback$2(callback, statError);
|
|
@@ -16581,11 +16708,11 @@ var require_async$6 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.stat@
|
|
|
16581
16708
|
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
16709
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16583
16710
|
exports.read = void 0;
|
|
16584
|
-
function read$3(path$
|
|
16585
|
-
const lstat = settings.fs.lstatSync(path$
|
|
16711
|
+
function read$3(path$12, settings) {
|
|
16712
|
+
const lstat = settings.fs.lstatSync(path$12);
|
|
16586
16713
|
if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) return lstat;
|
|
16587
16714
|
try {
|
|
16588
|
-
const stat$1 = settings.fs.statSync(path$
|
|
16715
|
+
const stat$1 = settings.fs.statSync(path$12);
|
|
16589
16716
|
if (settings.markSymbolicLink) stat$1.isSymbolicLink = () => true;
|
|
16590
16717
|
return stat$1;
|
|
16591
16718
|
} catch (error$41) {
|
|
@@ -16644,17 +16771,17 @@ var require_out$4 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.stat@2.
|
|
|
16644
16771
|
const sync$2 = require_sync$6();
|
|
16645
16772
|
const settings_1$3 = require_settings$4();
|
|
16646
16773
|
exports.Settings = settings_1$3.default;
|
|
16647
|
-
function stat(path$
|
|
16774
|
+
function stat(path$12, optionsOrSettingsOrCallback, callback) {
|
|
16648
16775
|
if (typeof optionsOrSettingsOrCallback === "function") {
|
|
16649
|
-
async$1.read(path$
|
|
16776
|
+
async$1.read(path$12, getSettings$2(), optionsOrSettingsOrCallback);
|
|
16650
16777
|
return;
|
|
16651
16778
|
}
|
|
16652
|
-
async$1.read(path$
|
|
16779
|
+
async$1.read(path$12, getSettings$2(optionsOrSettingsOrCallback), callback);
|
|
16653
16780
|
}
|
|
16654
16781
|
exports.stat = stat;
|
|
16655
|
-
function statSync$2(path$
|
|
16782
|
+
function statSync$2(path$12, optionsOrSettings) {
|
|
16656
16783
|
const settings = getSettings$2(optionsOrSettings);
|
|
16657
|
-
return sync$2.read(path$
|
|
16784
|
+
return sync$2.read(path$12, settings);
|
|
16658
16785
|
}
|
|
16659
16786
|
exports.statSync = statSync$2;
|
|
16660
16787
|
function getSettings$2(settingsOrOptions = {}) {
|
|
@@ -16742,8 +16869,8 @@ var require_fs$2 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.scandir@
|
|
|
16742
16869
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16743
16870
|
exports.createDirentFromStats = void 0;
|
|
16744
16871
|
var DirentFromStats = class {
|
|
16745
|
-
constructor(name$
|
|
16746
|
-
this.name = name$
|
|
16872
|
+
constructor(name$1, stats) {
|
|
16873
|
+
this.name = name$1;
|
|
16747
16874
|
this.isBlockDevice = stats.isBlockDevice.bind(stats);
|
|
16748
16875
|
this.isCharacterDevice = stats.isCharacterDevice.bind(stats);
|
|
16749
16876
|
this.isDirectory = stats.isDirectory.bind(stats);
|
|
@@ -16753,8 +16880,8 @@ var require_fs$2 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.scandir@
|
|
|
16753
16880
|
this.isSymbolicLink = stats.isSymbolicLink.bind(stats);
|
|
16754
16881
|
}
|
|
16755
16882
|
};
|
|
16756
|
-
function createDirentFromStats(name$
|
|
16757
|
-
return new DirentFromStats(name$
|
|
16883
|
+
function createDirentFromStats(name$1, stats) {
|
|
16884
|
+
return new DirentFromStats(name$1, stats);
|
|
16758
16885
|
}
|
|
16759
16886
|
exports.createDirentFromStats = createDirentFromStats;
|
|
16760
16887
|
} });
|
|
@@ -16853,18 +16980,18 @@ var require_async$5 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.scand
|
|
|
16853
16980
|
callFailureCallback$1(callback, readdirError);
|
|
16854
16981
|
return;
|
|
16855
16982
|
}
|
|
16856
|
-
const tasks = names.map((name$
|
|
16857
|
-
const path$
|
|
16983
|
+
const tasks = names.map((name$1) => {
|
|
16984
|
+
const path$12 = common$4.joinPathSegments(directory, name$1, settings.pathSegmentSeparator);
|
|
16858
16985
|
return (done) => {
|
|
16859
|
-
fsStat$5.stat(path$
|
|
16986
|
+
fsStat$5.stat(path$12, settings.fsStatSettings, (error$41, stats) => {
|
|
16860
16987
|
if (error$41 !== null) {
|
|
16861
16988
|
done(error$41);
|
|
16862
16989
|
return;
|
|
16863
16990
|
}
|
|
16864
16991
|
const entry = {
|
|
16865
|
-
name: name$
|
|
16866
|
-
path: path$
|
|
16867
|
-
dirent: utils$9.fs.createDirentFromStats(name$
|
|
16992
|
+
name: name$1,
|
|
16993
|
+
path: path$12,
|
|
16994
|
+
dirent: utils$9.fs.createDirentFromStats(name$1, stats)
|
|
16868
16995
|
};
|
|
16869
16996
|
if (settings.stats) entry.stats = stats;
|
|
16870
16997
|
done(null, entry);
|
|
@@ -16923,13 +17050,13 @@ var require_sync$5 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.scandi
|
|
|
16923
17050
|
exports.readdirWithFileTypes = readdirWithFileTypes;
|
|
16924
17051
|
function readdir(directory, settings) {
|
|
16925
17052
|
const names = settings.fs.readdirSync(directory);
|
|
16926
|
-
return names.map((name$
|
|
16927
|
-
const entryPath = common$3.joinPathSegments(directory, name$
|
|
17053
|
+
return names.map((name$1) => {
|
|
17054
|
+
const entryPath = common$3.joinPathSegments(directory, name$1, settings.pathSegmentSeparator);
|
|
16928
17055
|
const stats = fsStat$4.statSync(entryPath, settings.fsStatSettings);
|
|
16929
17056
|
const entry = {
|
|
16930
|
-
name: name$
|
|
17057
|
+
name: name$1,
|
|
16931
17058
|
path: entryPath,
|
|
16932
|
-
dirent: utils$8.fs.createDirentFromStats(name$
|
|
17059
|
+
dirent: utils$8.fs.createDirentFromStats(name$1, stats)
|
|
16933
17060
|
};
|
|
16934
17061
|
if (settings.stats) entry.stats = stats;
|
|
16935
17062
|
return entry;
|
|
@@ -16963,7 +17090,7 @@ var require_fs$1 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.scandir@
|
|
|
16963
17090
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.js
|
|
16964
17091
|
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
17092
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16966
|
-
const path$
|
|
17093
|
+
const path$5 = __require$1("path");
|
|
16967
17094
|
const fsStat$3 = require_out$4();
|
|
16968
17095
|
const fs$3 = require_fs$1();
|
|
16969
17096
|
var Settings$2 = class {
|
|
@@ -16971,7 +17098,7 @@ var require_settings$3 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.sc
|
|
|
16971
17098
|
this._options = _options;
|
|
16972
17099
|
this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
|
|
16973
17100
|
this.fs = fs$3.createFileSystemAdapter(this._options.fs);
|
|
16974
|
-
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$
|
|
17101
|
+
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$5.sep);
|
|
16975
17102
|
this.stats = this._getValue(this._options.stats, false);
|
|
16976
17103
|
this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
|
|
16977
17104
|
this.fsStatSettings = new fsStat$3.Settings({
|
|
@@ -16996,17 +17123,17 @@ var require_out$3 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.scandir
|
|
|
16996
17123
|
const sync$1 = require_sync$5();
|
|
16997
17124
|
const settings_1$2 = require_settings$3();
|
|
16998
17125
|
exports.Settings = settings_1$2.default;
|
|
16999
|
-
function scandir(path$
|
|
17126
|
+
function scandir(path$12, optionsOrSettingsOrCallback, callback) {
|
|
17000
17127
|
if (typeof optionsOrSettingsOrCallback === "function") {
|
|
17001
|
-
async.read(path$
|
|
17128
|
+
async.read(path$12, getSettings$1(), optionsOrSettingsOrCallback);
|
|
17002
17129
|
return;
|
|
17003
17130
|
}
|
|
17004
|
-
async.read(path$
|
|
17131
|
+
async.read(path$12, getSettings$1(optionsOrSettingsOrCallback), callback);
|
|
17005
17132
|
}
|
|
17006
17133
|
exports.scandir = scandir;
|
|
17007
|
-
function scandirSync(path$
|
|
17134
|
+
function scandirSync(path$12, optionsOrSettings) {
|
|
17008
17135
|
const settings = getSettings$1(optionsOrSettings);
|
|
17009
|
-
return sync$1.read(path$
|
|
17136
|
+
return sync$1.read(path$12, settings);
|
|
17010
17137
|
}
|
|
17011
17138
|
exports.scandirSync = scandirSync;
|
|
17012
17139
|
function getSettings$1(settingsOrOptions = {}) {
|
|
@@ -17556,7 +17683,7 @@ var require_sync$3 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.walk@1
|
|
|
17556
17683
|
//#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.js
|
|
17557
17684
|
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
17685
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17559
|
-
const path$
|
|
17686
|
+
const path$4 = __require$1("path");
|
|
17560
17687
|
const fsScandir = require_out$3();
|
|
17561
17688
|
var Settings$1 = class {
|
|
17562
17689
|
constructor(_options = {}) {
|
|
@@ -17566,7 +17693,7 @@ var require_settings$2 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.wa
|
|
|
17566
17693
|
this.deepFilter = this._getValue(this._options.deepFilter, null);
|
|
17567
17694
|
this.entryFilter = this._getValue(this._options.entryFilter, null);
|
|
17568
17695
|
this.errorFilter = this._getValue(this._options.errorFilter, null);
|
|
17569
|
-
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$
|
|
17696
|
+
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$4.sep);
|
|
17570
17697
|
this.fsScandirSettings = new fsScandir.Settings({
|
|
17571
17698
|
followSymbolicLinks: this._options.followSymbolicLinks,
|
|
17572
17699
|
fs: this._options.fs,
|
|
@@ -17622,7 +17749,7 @@ var require_out$2 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.walk@1.
|
|
|
17622
17749
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/reader.js
|
|
17623
17750
|
var require_reader$1 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/reader.js"(exports) {
|
|
17624
17751
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17625
|
-
const path$
|
|
17752
|
+
const path$3 = __require$1("path");
|
|
17626
17753
|
const fsStat$2 = require_out$4();
|
|
17627
17754
|
const utils$7 = require_utils$2();
|
|
17628
17755
|
var Reader = class {
|
|
@@ -17635,7 +17762,7 @@ var require_reader$1 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3/
|
|
|
17635
17762
|
});
|
|
17636
17763
|
}
|
|
17637
17764
|
_getFullEntryPath(filepath) {
|
|
17638
|
-
return path$
|
|
17765
|
+
return path$3.resolve(this._settings.cwd, filepath);
|
|
17639
17766
|
}
|
|
17640
17767
|
_makeEntry(stats, pattern$1) {
|
|
17641
17768
|
const entry = {
|
|
@@ -17986,7 +18113,7 @@ var require_entry$1 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3/n
|
|
|
17986
18113
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/provider.js
|
|
17987
18114
|
var require_provider$1 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/provider.js"(exports) {
|
|
17988
18115
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17989
|
-
const path$
|
|
18116
|
+
const path$2 = __require$1("path");
|
|
17990
18117
|
const deep_1 = require_deep$1();
|
|
17991
18118
|
const entry_1 = require_entry$2();
|
|
17992
18119
|
const error_1 = require_error$1();
|
|
@@ -18000,7 +18127,7 @@ var require_provider$1 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
|
18000
18127
|
this.entryTransformer = new entry_2.default(this._settings);
|
|
18001
18128
|
}
|
|
18002
18129
|
_getRootDirectory(task) {
|
|
18003
|
-
return path$
|
|
18130
|
+
return path$2.resolve(this._settings.cwd, task.base);
|
|
18004
18131
|
}
|
|
18005
18132
|
_getReaderOptions(task) {
|
|
18006
18133
|
const basePath = task.base === "." ? "" : task.base;
|
|
@@ -18356,10 +18483,10 @@ const TEN_MEGABYTES_IN_BYTES = 10 * 1024 * 1024;
|
|
|
18356
18483
|
|
|
18357
18484
|
//#endregion
|
|
18358
18485
|
//#region ../../node_modules/.pnpm/slash@5.1.0/node_modules/slash/index.js
|
|
18359
|
-
function slash$1(path$
|
|
18360
|
-
const isExtendedLengthPath = path$
|
|
18361
|
-
if (isExtendedLengthPath) return path$
|
|
18362
|
-
return path$
|
|
18486
|
+
function slash$1(path$12) {
|
|
18487
|
+
const isExtendedLengthPath = path$12.startsWith("\\\\?\\");
|
|
18488
|
+
if (isExtendedLengthPath) return path$12;
|
|
18489
|
+
return path$12.replace(/\\/g, "/");
|
|
18363
18490
|
}
|
|
18364
18491
|
|
|
18365
18492
|
//#endregion
|
|
@@ -18403,14 +18530,14 @@ const getIsIgnoredPredicate = (files$1, cwd) => {
|
|
|
18403
18530
|
return fileOrDirectory ? ignores.ignores(slash$1(fileOrDirectory)) : false;
|
|
18404
18531
|
};
|
|
18405
18532
|
};
|
|
18406
|
-
const normalizeOptions$
|
|
18533
|
+
const normalizeOptions$2 = (options$1 = {}) => ({
|
|
18407
18534
|
cwd: toPath$1(options$1.cwd) ?? process$1.cwd(),
|
|
18408
18535
|
suppressErrors: Boolean(options$1.suppressErrors),
|
|
18409
18536
|
deep: typeof options$1.deep === "number" ? options$1.deep : Number.POSITIVE_INFINITY,
|
|
18410
18537
|
ignore: [...options$1.ignore ?? [], ...defaultIgnoredDirectories]
|
|
18411
18538
|
});
|
|
18412
18539
|
const isIgnoredByIgnoreFiles = async (patterns, options$1) => {
|
|
18413
|
-
const { cwd, suppressErrors, deep, ignore } = normalizeOptions$
|
|
18540
|
+
const { cwd, suppressErrors, deep, ignore } = normalizeOptions$2(options$1);
|
|
18414
18541
|
const paths = await (0, import_out$1.default)(patterns, {
|
|
18415
18542
|
cwd,
|
|
18416
18543
|
suppressErrors,
|
|
@@ -18425,7 +18552,7 @@ const isIgnoredByIgnoreFiles = async (patterns, options$1) => {
|
|
|
18425
18552
|
return getIsIgnoredPredicate(files$1, cwd);
|
|
18426
18553
|
};
|
|
18427
18554
|
const isIgnoredByIgnoreFilesSync = (patterns, options$1) => {
|
|
18428
|
-
const { cwd, suppressErrors, deep, ignore } = normalizeOptions$
|
|
18555
|
+
const { cwd, suppressErrors, deep, ignore } = normalizeOptions$2(options$1);
|
|
18429
18556
|
const paths = import_out$1.default.sync(patterns, {
|
|
18430
18557
|
cwd,
|
|
18431
18558
|
suppressErrors,
|
|
@@ -18447,8 +18574,8 @@ const assertPatternsInput = (patterns) => {
|
|
|
18447
18574
|
if (patterns.some((pattern$1) => typeof pattern$1 !== "string")) throw new TypeError("Patterns must be a string or an array of strings");
|
|
18448
18575
|
};
|
|
18449
18576
|
const normalizePathForDirectoryGlob = (filePath, cwd) => {
|
|
18450
|
-
const path$
|
|
18451
|
-
return path.isAbsolute(path$
|
|
18577
|
+
const path$12 = isNegativePattern(filePath) ? filePath.slice(1) : filePath;
|
|
18578
|
+
return path.isAbsolute(path$12) ? path$12 : path.join(cwd, path$12);
|
|
18452
18579
|
};
|
|
18453
18580
|
const getDirectoryGlob = ({ directoryPath, files: files$1, extensions }) => {
|
|
18454
18581
|
const extensionGlob = extensions?.length > 0 ? `.${extensions.length > 1 ? `{${extensions.join(",")}}` : extensions[0]}` : "";
|
|
@@ -18482,7 +18609,7 @@ const checkCwdOption = (cwd) => {
|
|
|
18482
18609
|
}
|
|
18483
18610
|
if (!stat$1.isDirectory()) throw new Error("The `cwd` option must be a path to a directory");
|
|
18484
18611
|
};
|
|
18485
|
-
const normalizeOptions$
|
|
18612
|
+
const normalizeOptions$1 = (options$1 = {}) => {
|
|
18486
18613
|
options$1 = {
|
|
18487
18614
|
...options$1,
|
|
18488
18615
|
ignore: options$1.ignore ?? [],
|
|
@@ -18492,8 +18619,8 @@ const normalizeOptions$2 = (options$1 = {}) => {
|
|
|
18492
18619
|
checkCwdOption(options$1.cwd);
|
|
18493
18620
|
return options$1;
|
|
18494
18621
|
};
|
|
18495
|
-
const normalizeArguments = (function_) => async (patterns, options$1) => function_(toPatternsArray(patterns), normalizeOptions$
|
|
18496
|
-
const normalizeArgumentsSync = (function_) => (patterns, options$1) => function_(toPatternsArray(patterns), normalizeOptions$
|
|
18622
|
+
const normalizeArguments = (function_) => async (patterns, options$1) => function_(toPatternsArray(patterns), normalizeOptions$1(options$1));
|
|
18623
|
+
const normalizeArgumentsSync = (function_) => (patterns, options$1) => function_(toPatternsArray(patterns), normalizeOptions$1(options$1));
|
|
18497
18624
|
const getIgnoreFilesPatterns = (options$1) => {
|
|
18498
18625
|
const { ignoreFiles, gitignore } = options$1;
|
|
18499
18626
|
const patterns = ignoreFiles ? toPatternsArray(ignoreFiles) : [];
|
|
@@ -18712,9 +18839,9 @@ var require_ms = __commonJS$2({ "../../node_modules/.pnpm/ms@2.1.3/node_modules/
|
|
|
18712
18839
|
/**
|
|
18713
18840
|
* Pluralization helper.
|
|
18714
18841
|
*/
|
|
18715
|
-
function plural(ms, msAbs, n$1, name$
|
|
18842
|
+
function plural(ms, msAbs, n$1, name$1) {
|
|
18716
18843
|
var isPlural = msAbs >= n$1 * 1.5;
|
|
18717
|
-
return Math.round(ms / n$1) + " " + name$
|
|
18844
|
+
return Math.round(ms / n$1) + " " + name$1 + (isPlural ? "s" : "");
|
|
18718
18845
|
}
|
|
18719
18846
|
} });
|
|
18720
18847
|
|
|
@@ -18894,9 +19021,9 @@ var require_common$1 = __commonJS$2({ "../../node_modules/.pnpm/debug@4.4.1/node
|
|
|
18894
19021
|
* @return {Boolean}
|
|
18895
19022
|
* @api public
|
|
18896
19023
|
*/
|
|
18897
|
-
function enabled$1(name$
|
|
18898
|
-
for (const skip$1 of createDebug.skips) if (matchesTemplate(name$
|
|
18899
|
-
for (const ns of createDebug.names) if (matchesTemplate(name$
|
|
19024
|
+
function enabled$1(name$1) {
|
|
19025
|
+
for (const skip$1 of createDebug.skips) if (matchesTemplate(name$1, skip$1)) return false;
|
|
19026
|
+
for (const ns of createDebug.names) if (matchesTemplate(name$1, ns)) return true;
|
|
18900
19027
|
return false;
|
|
18901
19028
|
}
|
|
18902
19029
|
/**
|
|
@@ -19179,9 +19306,9 @@ var require_supports_color = __commonJS$2({ "../../node_modules/.pnpm/supports-c
|
|
|
19179
19306
|
if ("TEAMCITY_VERSION" in env) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
19180
19307
|
if (env.COLORTERM === "truecolor") return 3;
|
|
19181
19308
|
if ("TERM_PROGRAM" in env) {
|
|
19182
|
-
const version$
|
|
19309
|
+
const version$2 = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
19183
19310
|
switch (env.TERM_PROGRAM) {
|
|
19184
|
-
case "iTerm.app": return version$
|
|
19311
|
+
case "iTerm.app": return version$2 >= 3 ? 3 : 2;
|
|
19185
19312
|
case "Apple_Terminal": return 2;
|
|
19186
19313
|
}
|
|
19187
19314
|
}
|
|
@@ -19342,14 +19469,14 @@ var require_node = __commonJS$2({ "../../node_modules/.pnpm/debug@4.4.1/node_mod
|
|
|
19342
19469
|
* @api public
|
|
19343
19470
|
*/
|
|
19344
19471
|
function formatArgs(args) {
|
|
19345
|
-
const { namespace: name$
|
|
19472
|
+
const { namespace: name$1, useColors: useColors$2 } = this;
|
|
19346
19473
|
if (useColors$2) {
|
|
19347
19474
|
const c$2 = this.color;
|
|
19348
19475
|
const colorCode = "\x1B[3" + (c$2 < 8 ? c$2 : "8;5;" + c$2);
|
|
19349
|
-
const prefix = ` ${colorCode};1m${name$
|
|
19476
|
+
const prefix = ` ${colorCode};1m${name$1} \u001B[0m`;
|
|
19350
19477
|
args[0] = prefix + args[0].split("\n").join("\n" + prefix);
|
|
19351
19478
|
args.push(colorCode + "m+" + module.exports.humanize(this.diff) + "\x1B[0m");
|
|
19352
|
-
} else args[0] = getDate() + name$
|
|
19479
|
+
} else args[0] = getDate() + name$1 + " " + args[0];
|
|
19353
19480
|
}
|
|
19354
19481
|
function getDate() {
|
|
19355
19482
|
if (exports.inspectOpts.hideDate) return "";
|
|
@@ -19430,10 +19557,10 @@ var require_src$1 = __commonJS$2({ "../../node_modules/.pnpm/@kwsites+file-exist
|
|
|
19430
19557
|
const fs_1 = __require$1("fs");
|
|
19431
19558
|
const debug_1 = __importDefault(require_src$2());
|
|
19432
19559
|
const log = debug_1.default("@kwsites/file-exists");
|
|
19433
|
-
function check$2(path$
|
|
19434
|
-
log(`checking %s`, path$
|
|
19560
|
+
function check$2(path$12, isFile$2, isDirectory$2) {
|
|
19561
|
+
log(`checking %s`, path$12);
|
|
19435
19562
|
try {
|
|
19436
|
-
const stat$1 = fs_1.statSync(path$
|
|
19563
|
+
const stat$1 = fs_1.statSync(path$12);
|
|
19437
19564
|
if (stat$1.isFile() && isFile$2) {
|
|
19438
19565
|
log(`[OK] path represents a file`);
|
|
19439
19566
|
return true;
|
|
@@ -19459,8 +19586,8 @@ var require_src$1 = __commonJS$2({ "../../node_modules/.pnpm/@kwsites+file-exist
|
|
|
19459
19586
|
* @param {string} path The path to check
|
|
19460
19587
|
* @param {number} type One or both of the exported numeric constants
|
|
19461
19588
|
*/
|
|
19462
|
-
function exists$1(path$
|
|
19463
|
-
return check$2(path$
|
|
19589
|
+
function exists$1(path$12, type$1 = exports.READABLE) {
|
|
19590
|
+
return check$2(path$12, (type$1 & exports.FILE) > 0, (type$1 & exports.FOLDER) > 0);
|
|
19464
19591
|
}
|
|
19465
19592
|
exports.exists = exists$1;
|
|
19466
19593
|
/**
|
|
@@ -19566,8 +19693,8 @@ var __commonJS$1 = (cb, mod) => function __require$2() {
|
|
|
19566
19693
|
return mod || (0, cb[__getOwnPropNames$1(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
19567
19694
|
};
|
|
19568
19695
|
var __export$2 = (target, all$1) => {
|
|
19569
|
-
for (var name$
|
|
19570
|
-
get: all$1[name$
|
|
19696
|
+
for (var name$1 in all$1) __defProp$3(target, name$1, {
|
|
19697
|
+
get: all$1[name$1],
|
|
19571
19698
|
enumerable: true
|
|
19572
19699
|
});
|
|
19573
19700
|
};
|
|
@@ -19586,8 +19713,8 @@ function pathspec(...paths) {
|
|
|
19586
19713
|
cache$1.set(key$1, paths);
|
|
19587
19714
|
return key$1;
|
|
19588
19715
|
}
|
|
19589
|
-
function isPathSpec(path$
|
|
19590
|
-
return path$
|
|
19716
|
+
function isPathSpec(path$12) {
|
|
19717
|
+
return path$12 instanceof String && cache$1.has(path$12);
|
|
19591
19718
|
}
|
|
19592
19719
|
function toPaths(pathSpec) {
|
|
19593
19720
|
return cache$1.get(pathSpec) || [];
|
|
@@ -19660,8 +19787,8 @@ function toLinesWithContent(input = "", trimmed2 = true, separator = "\n") {
|
|
|
19660
19787
|
function forEachLineWithContent(input, callback) {
|
|
19661
19788
|
return toLinesWithContent(input, true).map((line$2) => callback(line$2));
|
|
19662
19789
|
}
|
|
19663
|
-
function folderExists(path$
|
|
19664
|
-
return (0, import_dist.exists)(path$
|
|
19790
|
+
function folderExists(path$12) {
|
|
19791
|
+
return (0, import_dist.exists)(path$12, import_dist.FOLDER);
|
|
19665
19792
|
}
|
|
19666
19793
|
function append(target, item) {
|
|
19667
19794
|
if (Array.isArray(target)) {
|
|
@@ -19981,8 +20108,8 @@ function checkIsRepoRootTask() {
|
|
|
19981
20108
|
commands,
|
|
19982
20109
|
format: "utf-8",
|
|
19983
20110
|
onError,
|
|
19984
|
-
parser(path$
|
|
19985
|
-
return /^\.(git)?$/.test(path$
|
|
20111
|
+
parser(path$12) {
|
|
20112
|
+
return /^\.(git)?$/.test(path$12.trim());
|
|
19986
20113
|
}
|
|
19987
20114
|
};
|
|
19988
20115
|
}
|
|
@@ -20361,11 +20488,11 @@ function parseGrep(grep) {
|
|
|
20361
20488
|
const paths = /* @__PURE__ */ new Set();
|
|
20362
20489
|
const results = {};
|
|
20363
20490
|
forEachLineWithContent(grep, (input) => {
|
|
20364
|
-
const [path$
|
|
20365
|
-
paths.add(path$
|
|
20366
|
-
(results[path$
|
|
20491
|
+
const [path$12, line$2, preview] = input.split(NULL);
|
|
20492
|
+
paths.add(path$12);
|
|
20493
|
+
(results[path$12] = results[path$12] || []).push({
|
|
20367
20494
|
line: asNumber(line$2),
|
|
20368
|
-
path: path$
|
|
20495
|
+
path: path$12,
|
|
20369
20496
|
preview
|
|
20370
20497
|
});
|
|
20371
20498
|
});
|
|
@@ -20471,8 +20598,8 @@ function prefixedLogger(to, prefix, forward) {
|
|
|
20471
20598
|
if (forward) forward(message, ...args);
|
|
20472
20599
|
};
|
|
20473
20600
|
}
|
|
20474
|
-
function childLoggerName(name$
|
|
20475
|
-
if (typeof name$
|
|
20601
|
+
function childLoggerName(name$1, childDebugger, { namespace: parentNamespace }) {
|
|
20602
|
+
if (typeof name$1 === "string") return name$1;
|
|
20476
20603
|
const childNamespace = childDebugger && childDebugger.namespace || "";
|
|
20477
20604
|
if (childNamespace.startsWith(parentNamespace)) return childNamespace.substr(parentNamespace.length + 1);
|
|
20478
20605
|
return childNamespace || parentNamespace;
|
|
@@ -20483,8 +20610,8 @@ function createLogger(label$1, verbose, initialStep, infoDebugger = createLog())
|
|
|
20483
20610
|
const debugDebugger = typeof verbose === "string" ? infoDebugger.extend(verbose) : verbose;
|
|
20484
20611
|
const key$1 = childLoggerName(filterType(verbose, filterString), debugDebugger, infoDebugger);
|
|
20485
20612
|
return step(initialStep);
|
|
20486
|
-
function sibling(name$
|
|
20487
|
-
return append(spawned, createLogger(label$1, key$1.replace(/^[^:]+/, name$
|
|
20613
|
+
function sibling(name$1, initial) {
|
|
20614
|
+
return append(spawned, createLogger(label$1, key$1.replace(/^[^:]+/, name$1), initial, infoDebugger));
|
|
20488
20615
|
}
|
|
20489
20616
|
function step(phase) {
|
|
20490
20617
|
const stepPrefix = phase && `[${phase}]` || "";
|
|
@@ -20521,12 +20648,12 @@ var init_tasks_pending_queue = __esm({ "src/lib/runners/tasks-pending-queue.ts"(
|
|
|
20521
20648
|
return this._queue.get(task);
|
|
20522
20649
|
}
|
|
20523
20650
|
createProgress(task) {
|
|
20524
|
-
const name$
|
|
20525
|
-
const logger$1 = createLogger(this.logLabel, name$
|
|
20651
|
+
const name$1 = _TasksPendingQueue.getName(task.commands[0]);
|
|
20652
|
+
const logger$1 = createLogger(this.logLabel, name$1);
|
|
20526
20653
|
return {
|
|
20527
20654
|
task,
|
|
20528
20655
|
logger: logger$1,
|
|
20529
|
-
name: name$
|
|
20656
|
+
name: name$1
|
|
20530
20657
|
};
|
|
20531
20658
|
}
|
|
20532
20659
|
push(task) {
|
|
@@ -20555,8 +20682,8 @@ var init_tasks_pending_queue = __esm({ "src/lib/runners/tasks-pending-queue.ts"(
|
|
|
20555
20682
|
progress.logger("Starting task");
|
|
20556
20683
|
return progress;
|
|
20557
20684
|
}
|
|
20558
|
-
static getName(name$
|
|
20559
|
-
return `task:${name$
|
|
20685
|
+
static getName(name$1 = "empty") {
|
|
20686
|
+
return `task:${name$1}:${++_TasksPendingQueue.counter}`;
|
|
20560
20687
|
}
|
|
20561
20688
|
static {
|
|
20562
20689
|
this.counter = 0;
|
|
@@ -20575,9 +20702,9 @@ function onErrorReceived(target, logger$1) {
|
|
|
20575
20702
|
target.push(Buffer.from(String(err.stack), "ascii"));
|
|
20576
20703
|
};
|
|
20577
20704
|
}
|
|
20578
|
-
function onDataReceived(target, name$
|
|
20705
|
+
function onDataReceived(target, name$1, logger$1, output) {
|
|
20579
20706
|
return (buffer$1) => {
|
|
20580
|
-
logger$1(`%s received %L bytes`, name$
|
|
20707
|
+
logger$1(`%s received %L bytes`, name$1, buffer$1);
|
|
20581
20708
|
output(`%B`, buffer$1);
|
|
20582
20709
|
target.push(buffer$1);
|
|
20583
20710
|
};
|
|
@@ -20674,7 +20801,7 @@ var init_git_executor_chain = __esm({ "src/lib/runners/git-executor-chain.ts"()
|
|
|
20674
20801
|
}
|
|
20675
20802
|
async gitResponse(task, command$1, args, outputHandler, logger$1) {
|
|
20676
20803
|
const outputLogger = logger$1.sibling("output");
|
|
20677
|
-
const spawnOptions
|
|
20804
|
+
const spawnOptions = this._plugins.exec("spawn.options", {
|
|
20678
20805
|
cwd: this.cwd,
|
|
20679
20806
|
env: this.env,
|
|
20680
20807
|
windowsHide: true
|
|
@@ -20683,7 +20810,7 @@ var init_git_executor_chain = __esm({ "src/lib/runners/git-executor-chain.ts"()
|
|
|
20683
20810
|
const stdOut = [];
|
|
20684
20811
|
const stdErr = [];
|
|
20685
20812
|
logger$1.info(`%s %o`, command$1, args);
|
|
20686
|
-
logger$1("%O", spawnOptions
|
|
20813
|
+
logger$1("%O", spawnOptions);
|
|
20687
20814
|
let rejection = this._beforeSpawn(task, args);
|
|
20688
20815
|
if (rejection) return done({
|
|
20689
20816
|
stdOut,
|
|
@@ -20697,7 +20824,7 @@ var init_git_executor_chain = __esm({ "src/lib/runners/git-executor-chain.ts"()
|
|
|
20697
20824
|
rejection = reason || rejection;
|
|
20698
20825
|
}
|
|
20699
20826
|
});
|
|
20700
|
-
const spawned = spawn$1(command$1, args, spawnOptions
|
|
20827
|
+
const spawned = spawn$1(command$1, args, spawnOptions);
|
|
20701
20828
|
spawned.stdout.on("data", onDataReceived(stdOut, "stdOut", logger$1, outputLogger.step("stdOut")));
|
|
20702
20829
|
spawned.stderr.on("data", onDataReceived(stdErr, "stdErr", logger$1, outputLogger.step("stdErr")));
|
|
20703
20830
|
spawned.on("error", onErrorReceived(stdErr, logger$1));
|
|
@@ -20767,19 +20894,19 @@ function taskCallback(task, response, callback = NOOP) {
|
|
|
20767
20894
|
response.then(onSuccess, onError2);
|
|
20768
20895
|
}
|
|
20769
20896
|
function addDeprecationNoticeToError(err) {
|
|
20770
|
-
let log$2 = (name$
|
|
20771
|
-
console.warn(`simple-git deprecation notice: accessing GitResponseError.${name$
|
|
20897
|
+
let log$2 = (name$1) => {
|
|
20898
|
+
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
20899
|
log$2 = NOOP;
|
|
20773
20900
|
};
|
|
20774
20901
|
return Object.create(err, Object.getOwnPropertyNames(err.git).reduce(descriptorReducer, {}));
|
|
20775
|
-
function descriptorReducer(all$1, name$
|
|
20776
|
-
if (name$
|
|
20777
|
-
all$1[name$
|
|
20902
|
+
function descriptorReducer(all$1, name$1) {
|
|
20903
|
+
if (name$1 in err) return all$1;
|
|
20904
|
+
all$1[name$1] = {
|
|
20778
20905
|
enumerable: false,
|
|
20779
20906
|
configurable: false,
|
|
20780
20907
|
get() {
|
|
20781
|
-
log$2(name$
|
|
20782
|
-
return err.git[name$
|
|
20908
|
+
log$2(name$1);
|
|
20909
|
+
return err.git[name$1];
|
|
20783
20910
|
}
|
|
20784
20911
|
};
|
|
20785
20912
|
return all$1;
|
|
@@ -20965,11 +21092,11 @@ var init_hash_object = __esm({ "src/lib/tasks/hash-object.ts"() {
|
|
|
20965
21092
|
"use strict";
|
|
20966
21093
|
init_task();
|
|
20967
21094
|
} });
|
|
20968
|
-
function parseInit(bare, path$
|
|
21095
|
+
function parseInit(bare, path$12, text$2) {
|
|
20969
21096
|
const response = String(text$2).trim();
|
|
20970
21097
|
let result;
|
|
20971
|
-
if (result = initResponseRegex.exec(response)) return new InitSummary(bare, path$
|
|
20972
|
-
if (result = reInitResponseRegex.exec(response)) return new InitSummary(bare, path$
|
|
21098
|
+
if (result = initResponseRegex.exec(response)) return new InitSummary(bare, path$12, false, result[1]);
|
|
21099
|
+
if (result = reInitResponseRegex.exec(response)) return new InitSummary(bare, path$12, true, result[1]);
|
|
20973
21100
|
let gitDir = "";
|
|
20974
21101
|
const tokens = response.split(" ");
|
|
20975
21102
|
while (tokens.length) {
|
|
@@ -20979,15 +21106,15 @@ function parseInit(bare, path$13, text$2) {
|
|
|
20979
21106
|
break;
|
|
20980
21107
|
}
|
|
20981
21108
|
}
|
|
20982
|
-
return new InitSummary(bare, path$
|
|
21109
|
+
return new InitSummary(bare, path$12, /^re/i.test(response), gitDir);
|
|
20983
21110
|
}
|
|
20984
21111
|
var InitSummary, initResponseRegex, reInitResponseRegex;
|
|
20985
21112
|
var init_InitSummary = __esm({ "src/lib/responses/InitSummary.ts"() {
|
|
20986
21113
|
"use strict";
|
|
20987
21114
|
InitSummary = class {
|
|
20988
|
-
constructor(bare, path$
|
|
21115
|
+
constructor(bare, path$12, existing, gitDir) {
|
|
20989
21116
|
this.bare = bare;
|
|
20990
|
-
this.path = path$
|
|
21117
|
+
this.path = path$12;
|
|
20991
21118
|
this.existing = existing;
|
|
20992
21119
|
this.gitDir = gitDir;
|
|
20993
21120
|
}
|
|
@@ -20998,14 +21125,14 @@ var init_InitSummary = __esm({ "src/lib/responses/InitSummary.ts"() {
|
|
|
20998
21125
|
function hasBareCommand(command$1) {
|
|
20999
21126
|
return command$1.includes(bareCommand);
|
|
21000
21127
|
}
|
|
21001
|
-
function initTask(bare = false, path$
|
|
21128
|
+
function initTask(bare = false, path$12, customArgs) {
|
|
21002
21129
|
const commands = ["init", ...customArgs];
|
|
21003
21130
|
if (bare && !hasBareCommand(commands)) commands.splice(1, 0, bareCommand);
|
|
21004
21131
|
return {
|
|
21005
21132
|
commands,
|
|
21006
21133
|
format: "utf-8",
|
|
21007
21134
|
parser(text$2) {
|
|
21008
|
-
return parseInit(commands.includes("--bare"), path$
|
|
21135
|
+
return parseInit(commands.includes("--bare"), path$12, text$2);
|
|
21009
21136
|
}
|
|
21010
21137
|
};
|
|
21011
21138
|
}
|
|
@@ -21651,15 +21778,15 @@ var init_FileStatusSummary = __esm({ "src/lib/responses/FileStatusSummary.ts"()
|
|
|
21651
21778
|
"use strict";
|
|
21652
21779
|
fromPathRegex = /^(.+)\0(.+)$/;
|
|
21653
21780
|
FileStatusSummary = class {
|
|
21654
|
-
constructor(path$
|
|
21655
|
-
this.path = path$
|
|
21781
|
+
constructor(path$12, index$1, working_dir) {
|
|
21782
|
+
this.path = path$12;
|
|
21656
21783
|
this.index = index$1;
|
|
21657
21784
|
this.working_dir = working_dir;
|
|
21658
21785
|
if (index$1 === "R" || working_dir === "R") {
|
|
21659
|
-
const detail = fromPathRegex.exec(path$
|
|
21786
|
+
const detail = fromPathRegex.exec(path$12) || [
|
|
21660
21787
|
null,
|
|
21661
|
-
path$
|
|
21662
|
-
path$
|
|
21788
|
+
path$12,
|
|
21789
|
+
path$12
|
|
21663
21790
|
];
|
|
21664
21791
|
this.from = detail[2] || "";
|
|
21665
21792
|
this.path = detail[1] || "";
|
|
@@ -21687,11 +21814,11 @@ function splitLine(result, lineStr) {
|
|
|
21687
21814
|
case trimmed2.charAt(1): return data(" ", trimmed2.charAt(0), trimmed2.substr(2));
|
|
21688
21815
|
default: return;
|
|
21689
21816
|
}
|
|
21690
|
-
function data(index$1, workingDir, path$
|
|
21817
|
+
function data(index$1, workingDir, path$12) {
|
|
21691
21818
|
const raw = `${index$1}${workingDir}`;
|
|
21692
21819
|
const handler = parsers6.get(raw);
|
|
21693
|
-
if (handler) handler(result, path$
|
|
21694
|
-
if (raw !== "##" && raw !== "!!") result.files.push(new FileStatusSummary(path$
|
|
21820
|
+
if (handler) handler(result, path$12);
|
|
21821
|
+
if (raw !== "##" && raw !== "!!") result.files.push(new FileStatusSummary(path$12, index$1, workingDir));
|
|
21695
21822
|
}
|
|
21696
21823
|
}
|
|
21697
21824
|
var StatusSummary, parsers6, parseStatusSummary;
|
|
@@ -21891,8 +22018,8 @@ var init_simple_git_api = __esm({ "src/lib/simple-git-api.ts"() {
|
|
|
21891
22018
|
if (typeof directory?.path === "string") return this._runTask(changeWorkingDirectoryTask(directory.path, directory.root && this._executor || void 0), next);
|
|
21892
22019
|
return this._runTask(configurationErrorTask("Git.cwd: workingDirectory must be supplied as a string"), next);
|
|
21893
22020
|
}
|
|
21894
|
-
hashObject(path$
|
|
21895
|
-
return this._runTask(hashObjectTask(path$
|
|
22021
|
+
hashObject(path$12, write) {
|
|
22022
|
+
return this._runTask(hashObjectTask(path$12, write === true), trailingFunctionArgument(arguments));
|
|
21896
22023
|
}
|
|
21897
22024
|
init(bare) {
|
|
21898
22025
|
return this._runTask(initTask(bare === true, this._executor.cwd, getTrailingOptions(arguments)), trailingFunctionArgument(arguments));
|
|
@@ -22051,16 +22178,16 @@ var init_BranchSummary = __esm({ "src/lib/responses/BranchSummary.ts"() {
|
|
|
22051
22178
|
this.current = "";
|
|
22052
22179
|
this.detached = false;
|
|
22053
22180
|
}
|
|
22054
|
-
push(status, detached, name$
|
|
22181
|
+
push(status, detached, name$1, commit, label$1) {
|
|
22055
22182
|
if (status === "*") {
|
|
22056
22183
|
this.detached = detached;
|
|
22057
|
-
this.current = name$
|
|
22184
|
+
this.current = name$1;
|
|
22058
22185
|
}
|
|
22059
|
-
this.all.push(name$
|
|
22060
|
-
this.branches[name$
|
|
22186
|
+
this.all.push(name$1);
|
|
22187
|
+
this.branches[name$1] = {
|
|
22061
22188
|
current: status === "*",
|
|
22062
22189
|
linkedWorkTree: status === "+",
|
|
22063
|
-
name: name$
|
|
22190
|
+
name: name$1,
|
|
22064
22191
|
commit,
|
|
22065
22192
|
label: label$1
|
|
22066
22193
|
};
|
|
@@ -22078,10 +22205,10 @@ var init_parse_branch = __esm({ "src/lib/parsers/parse-branch.ts"() {
|
|
|
22078
22205
|
"use strict";
|
|
22079
22206
|
init_BranchSummary();
|
|
22080
22207
|
init_utils();
|
|
22081
|
-
parsers9 = [new LineParser(/^([*+]\s)?\((?:HEAD )?detached (?:from|at) (\S+)\)\s+([a-z0-9]+)\s(.*)$/, (result, [current, name$
|
|
22082
|
-
result.push(branchStatus(current), true, name$
|
|
22083
|
-
}), new LineParser(/^([*+]\s)?(\S+)\s+([a-z0-9]+)\s?(.*)$/s, (result, [current, name$
|
|
22084
|
-
result.push(branchStatus(current), false, name$
|
|
22208
|
+
parsers9 = [new LineParser(/^([*+]\s)?\((?:HEAD )?detached (?:from|at) (\S+)\)\s+([a-z0-9]+)\s(.*)$/, (result, [current, name$1, commit, label$1]) => {
|
|
22209
|
+
result.push(branchStatus(current), true, name$1, commit, label$1);
|
|
22210
|
+
}), new LineParser(/^([*+]\s)?(\S+)\s+([a-z0-9]+)\s?(.*)$/s, (result, [current, name$1, commit, label$1]) => {
|
|
22211
|
+
result.push(branchStatus(current), false, name$1, commit, label$1);
|
|
22085
22212
|
})];
|
|
22086
22213
|
} });
|
|
22087
22214
|
var branch_exports = {};
|
|
@@ -22230,24 +22357,24 @@ var init_parse_fetch = __esm({ "src/lib/parsers/parse-fetch.ts"() {
|
|
|
22230
22357
|
new LineParser(/From (.+)$/, (result, [remote]) => {
|
|
22231
22358
|
result.remote = remote;
|
|
22232
22359
|
}),
|
|
22233
|
-
new LineParser(/\* \[new branch]\s+(\S+)\s*-> (.+)$/, (result, [name$
|
|
22360
|
+
new LineParser(/\* \[new branch]\s+(\S+)\s*-> (.+)$/, (result, [name$1, tracking]) => {
|
|
22234
22361
|
result.branches.push({
|
|
22235
|
-
name: name$
|
|
22362
|
+
name: name$1,
|
|
22236
22363
|
tracking
|
|
22237
22364
|
});
|
|
22238
22365
|
}),
|
|
22239
|
-
new LineParser(/\* \[new tag]\s+(\S+)\s*-> (.+)$/, (result, [name$
|
|
22366
|
+
new LineParser(/\* \[new tag]\s+(\S+)\s*-> (.+)$/, (result, [name$1, tracking]) => {
|
|
22240
22367
|
result.tags.push({
|
|
22241
|
-
name: name$
|
|
22368
|
+
name: name$1,
|
|
22242
22369
|
tracking
|
|
22243
22370
|
});
|
|
22244
22371
|
}),
|
|
22245
22372
|
new LineParser(/- \[deleted]\s+\S+\s*-> (.+)$/, (result, [tracking]) => {
|
|
22246
22373
|
result.deleted.push({ tracking });
|
|
22247
22374
|
}),
|
|
22248
|
-
new LineParser(/\s*([^.]+)\.\.(\S+)\s+(\S+)\s*-> (.+)$/, (result, [from, to, name$
|
|
22375
|
+
new LineParser(/\s*([^.]+)\.\.(\S+)\s+(\S+)\s*-> (.+)$/, (result, [from, to, name$1, tracking]) => {
|
|
22249
22376
|
result.updated.push({
|
|
22250
|
-
name: name$
|
|
22377
|
+
name: name$1,
|
|
22251
22378
|
tracking,
|
|
22252
22379
|
to,
|
|
22253
22380
|
from
|
|
@@ -22335,20 +22462,20 @@ var init_pull = __esm({ "src/lib/tasks/pull.ts"() {
|
|
|
22335
22462
|
} });
|
|
22336
22463
|
function parseGetRemotes(text$2) {
|
|
22337
22464
|
const remotes = {};
|
|
22338
|
-
forEach(text$2, ([name$
|
|
22465
|
+
forEach(text$2, ([name$1]) => remotes[name$1] = { name: name$1 });
|
|
22339
22466
|
return Object.values(remotes);
|
|
22340
22467
|
}
|
|
22341
22468
|
function parseGetRemotesVerbose(text$2) {
|
|
22342
22469
|
const remotes = {};
|
|
22343
|
-
forEach(text$2, ([name$
|
|
22344
|
-
if (!remotes.hasOwnProperty(name$
|
|
22345
|
-
name: name$
|
|
22470
|
+
forEach(text$2, ([name$1, url$2, purpose]) => {
|
|
22471
|
+
if (!remotes.hasOwnProperty(name$1)) remotes[name$1] = {
|
|
22472
|
+
name: name$1,
|
|
22346
22473
|
refs: {
|
|
22347
22474
|
fetch: "",
|
|
22348
22475
|
push: ""
|
|
22349
22476
|
}
|
|
22350
22477
|
};
|
|
22351
|
-
if (purpose && url$2) remotes[name$
|
|
22478
|
+
if (purpose && url$2) remotes[name$1].refs[purpose.replace(/[^a-z]/g, "")] = url$2;
|
|
22352
22479
|
});
|
|
22353
22480
|
return Object.values(remotes);
|
|
22354
22481
|
}
|
|
@@ -22438,11 +22565,11 @@ __export$2(sub_module_exports, {
|
|
|
22438
22565
|
subModuleTask: () => subModuleTask,
|
|
22439
22566
|
updateSubModuleTask: () => updateSubModuleTask
|
|
22440
22567
|
});
|
|
22441
|
-
function addSubModuleTask(repo, path$
|
|
22568
|
+
function addSubModuleTask(repo, path$12) {
|
|
22442
22569
|
return subModuleTask([
|
|
22443
22570
|
"add",
|
|
22444
22571
|
repo,
|
|
22445
|
-
path$
|
|
22572
|
+
path$12
|
|
22446
22573
|
]);
|
|
22447
22574
|
}
|
|
22448
22575
|
function initSubModuleTask(customArgs) {
|
|
@@ -22521,16 +22648,16 @@ function tagListTask(customArgs = []) {
|
|
|
22521
22648
|
}
|
|
22522
22649
|
};
|
|
22523
22650
|
}
|
|
22524
|
-
function addTagTask(name$
|
|
22651
|
+
function addTagTask(name$1) {
|
|
22525
22652
|
return {
|
|
22526
22653
|
format: "utf-8",
|
|
22527
|
-
commands: ["tag", name$
|
|
22654
|
+
commands: ["tag", name$1],
|
|
22528
22655
|
parser() {
|
|
22529
|
-
return { name: name$
|
|
22656
|
+
return { name: name$1 };
|
|
22530
22657
|
}
|
|
22531
22658
|
};
|
|
22532
22659
|
}
|
|
22533
|
-
function addAnnotatedTagTask(name$
|
|
22660
|
+
function addAnnotatedTagTask(name$1, tagMessage) {
|
|
22534
22661
|
return {
|
|
22535
22662
|
format: "utf-8",
|
|
22536
22663
|
commands: [
|
|
@@ -22538,10 +22665,10 @@ function addAnnotatedTagTask(name$2, tagMessage) {
|
|
|
22538
22665
|
"-a",
|
|
22539
22666
|
"-m",
|
|
22540
22667
|
tagMessage,
|
|
22541
|
-
name$
|
|
22668
|
+
name$1
|
|
22542
22669
|
],
|
|
22543
22670
|
parser() {
|
|
22544
|
-
return { name: name$
|
|
22671
|
+
return { name: name$1 };
|
|
22545
22672
|
}
|
|
22546
22673
|
};
|
|
22547
22674
|
}
|
|
@@ -22583,9 +22710,9 @@ var require_git = __commonJS$1({ "src/git.js"(exports$2, module$1) {
|
|
|
22583
22710
|
this._plugins.reconfigure("binary", command$1);
|
|
22584
22711
|
return this;
|
|
22585
22712
|
};
|
|
22586
|
-
Git2.prototype.env = function(name$
|
|
22587
|
-
if (arguments.length === 1 && typeof name$
|
|
22588
|
-
else (this._executor.env = this._executor.env || {})[name$
|
|
22713
|
+
Git2.prototype.env = function(name$1, value) {
|
|
22714
|
+
if (arguments.length === 1 && typeof name$1 === "object") this._executor.env = name$1;
|
|
22715
|
+
else (this._executor.env = this._executor.env || {})[name$1] = value;
|
|
22589
22716
|
return this;
|
|
22590
22717
|
};
|
|
22591
22718
|
Git2.prototype.stashList = function(options$1) {
|
|
@@ -22640,8 +22767,8 @@ var require_git = __commonJS$1({ "src/git.js"(exports$2, module$1) {
|
|
|
22640
22767
|
commit
|
|
22641
22768
|
]), next);
|
|
22642
22769
|
};
|
|
22643
|
-
Git2.prototype.addTag = function(name$
|
|
22644
|
-
const task = typeof name$
|
|
22770
|
+
Git2.prototype.addTag = function(name$1) {
|
|
22771
|
+
const task = typeof name$1 === "string" ? addTagTask2(name$1) : configurationErrorTask2("Git.addTag requires a tag name");
|
|
22645
22772
|
return this._runTask(task, trailingFunctionArgument2(arguments));
|
|
22646
22773
|
};
|
|
22647
22774
|
Git2.prototype.addAnnotatedTag = function(tagName, tagMessage) {
|
|
@@ -22671,8 +22798,8 @@ var require_git = __commonJS$1({ "src/git.js"(exports$2, module$1) {
|
|
|
22671
22798
|
if (!command$1.length) return this._runTask(configurationErrorTask2("Raw: must supply one or more command to execute"), next);
|
|
22672
22799
|
return this._runTask(straightThroughStringTask2(command$1, this._trimmed), next);
|
|
22673
22800
|
};
|
|
22674
|
-
Git2.prototype.submoduleAdd = function(repo, path$
|
|
22675
|
-
return this._runTask(addSubModuleTask2(repo, path$
|
|
22801
|
+
Git2.prototype.submoduleAdd = function(repo, path$12, then) {
|
|
22802
|
+
return this._runTask(addSubModuleTask2(repo, path$12), trailingFunctionArgument2(arguments));
|
|
22676
22803
|
};
|
|
22677
22804
|
Git2.prototype.submoduleUpdate = function(args, then) {
|
|
22678
22805
|
return this._runTask(updateSubModuleTask2(getTrailingOptions2(arguments, true)), trailingFunctionArgument2(arguments));
|
|
@@ -22835,10 +22962,10 @@ function preventProtocolOverride(arg, next) {
|
|
|
22835
22962
|
if (!/^\s*protocol(.[a-z]+)?.allow/.test(next)) return;
|
|
22836
22963
|
throw new GitPluginError(void 0, "unsafe", "Configuring protocol.allow is not permitted without enabling allowUnsafeExtProtocol");
|
|
22837
22964
|
}
|
|
22838
|
-
function preventUploadPack(arg, method
|
|
22965
|
+
function preventUploadPack(arg, method) {
|
|
22839
22966
|
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
|
|
22841
|
-
if (method
|
|
22967
|
+
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`);
|
|
22968
|
+
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
22969
|
}
|
|
22843
22970
|
function blockUnsafeOperationsPlugin({ allowUnsafeProtocolOverride = false, allowUnsafePack = false } = {}) {
|
|
22844
22971
|
return {
|
|
@@ -23046,8 +23173,8 @@ function progressEventStage(input) {
|
|
|
23046
23173
|
return String(input.toLowerCase().split(" ", 1)) || "unknown";
|
|
23047
23174
|
}
|
|
23048
23175
|
init_utils();
|
|
23049
|
-
function spawnOptionsPlugin(spawnOptions
|
|
23050
|
-
const options$1 = pick$1(spawnOptions
|
|
23176
|
+
function spawnOptionsPlugin(spawnOptions) {
|
|
23177
|
+
const options$1 = pick$1(spawnOptions, ["uid", "gid"]);
|
|
23051
23178
|
return {
|
|
23052
23179
|
type: "spawn.options",
|
|
23053
23180
|
action(data) {
|
|
@@ -23149,8 +23276,8 @@ __export$4(doc_exports, {
|
|
|
23149
23276
|
});
|
|
23150
23277
|
var __defProp$2 = Object.defineProperty;
|
|
23151
23278
|
var __export$1 = (target, all$1) => {
|
|
23152
|
-
for (var name$
|
|
23153
|
-
get: all$1[name$
|
|
23279
|
+
for (var name$1 in all$1) __defProp$2(target, name$1, {
|
|
23280
|
+
get: all$1[name$1],
|
|
23154
23281
|
enumerable: true
|
|
23155
23282
|
});
|
|
23156
23283
|
};
|
|
@@ -24172,8 +24299,8 @@ var __commonJS = (cb, mod) => function __require2() {
|
|
|
24172
24299
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
24173
24300
|
};
|
|
24174
24301
|
var __export = (target, all$1) => {
|
|
24175
|
-
for (var name$
|
|
24176
|
-
get: all$1[name$
|
|
24302
|
+
for (var name$1 in all$1) __defProp$1(target, name$1, {
|
|
24303
|
+
get: all$1[name$1],
|
|
24177
24304
|
enumerable: true
|
|
24178
24305
|
});
|
|
24179
24306
|
};
|
|
@@ -24195,7 +24322,7 @@ var __accessCheck$1 = (obj, member, msg) => member.has(obj) || __typeError("Cann
|
|
|
24195
24322
|
var __privateGet = (obj, member, getter) => (__accessCheck$1(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
24196
24323
|
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
24324
|
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
|
|
24325
|
+
var __privateMethod$1 = (obj, member, method) => (__accessCheck$1(obj, member, "access private method"), method);
|
|
24199
24326
|
var require_array = __commonJS({ "node_modules/fast-glob/out/utils/array.js"(exports$2) {
|
|
24200
24327
|
"use strict";
|
|
24201
24328
|
Object.defineProperty(exports$2, "__esModule", { value: true });
|
|
@@ -24229,8 +24356,8 @@ var require_fs = __commonJS({ "node_modules/fast-glob/out/utils/fs.js"(exports$2
|
|
|
24229
24356
|
Object.defineProperty(exports$2, "__esModule", { value: true });
|
|
24230
24357
|
exports$2.createDirentFromStats = void 0;
|
|
24231
24358
|
var DirentFromStats$2 = class {
|
|
24232
|
-
constructor(name$
|
|
24233
|
-
this.name = name$
|
|
24359
|
+
constructor(name$1, stats) {
|
|
24360
|
+
this.name = name$1;
|
|
24234
24361
|
this.isBlockDevice = stats.isBlockDevice.bind(stats);
|
|
24235
24362
|
this.isCharacterDevice = stats.isCharacterDevice.bind(stats);
|
|
24236
24363
|
this.isDirectory = stats.isDirectory.bind(stats);
|
|
@@ -24240,8 +24367,8 @@ var require_fs = __commonJS({ "node_modules/fast-glob/out/utils/fs.js"(exports$2
|
|
|
24240
24367
|
this.isSymbolicLink = stats.isSymbolicLink.bind(stats);
|
|
24241
24368
|
}
|
|
24242
24369
|
};
|
|
24243
|
-
function createDirentFromStats$2(name$
|
|
24244
|
-
return new DirentFromStats$2(name$
|
|
24370
|
+
function createDirentFromStats$2(name$1, stats) {
|
|
24371
|
+
return new DirentFromStats$2(name$1, stats);
|
|
24245
24372
|
}
|
|
24246
24373
|
exports$2.createDirentFromStats = createDirentFromStats$2;
|
|
24247
24374
|
} });
|
|
@@ -24384,7 +24511,7 @@ var require_is_glob = __commonJS({ "node_modules/is-glob/index.js"(exports$2, mo
|
|
|
24384
24511
|
}
|
|
24385
24512
|
return false;
|
|
24386
24513
|
};
|
|
24387
|
-
module$1.exports = function isGlob$
|
|
24514
|
+
module$1.exports = function isGlob$1(str, options8) {
|
|
24388
24515
|
if (typeof str !== "string" || str === "") return false;
|
|
24389
24516
|
if (isExtglob$1(str)) return true;
|
|
24390
24517
|
var check2 = strictCheck$1;
|
|
@@ -24394,7 +24521,7 @@ var require_is_glob = __commonJS({ "node_modules/is-glob/index.js"(exports$2, mo
|
|
|
24394
24521
|
} });
|
|
24395
24522
|
var require_glob_parent = __commonJS({ "node_modules/glob-parent/index.js"(exports$2, module$1) {
|
|
24396
24523
|
"use strict";
|
|
24397
|
-
var isGlob$
|
|
24524
|
+
var isGlob$1 = require_is_glob();
|
|
24398
24525
|
var pathPosixDirname$1 = __require("path").posix.dirname;
|
|
24399
24526
|
var isWin32$1 = __require("os").platform() === "win32";
|
|
24400
24527
|
var slash2 = "/";
|
|
@@ -24409,7 +24536,7 @@ var require_glob_parent = __commonJS({ "node_modules/glob-parent/index.js"(expor
|
|
|
24409
24536
|
str += "a";
|
|
24410
24537
|
do
|
|
24411
24538
|
str = pathPosixDirname$1(str);
|
|
24412
|
-
while (isGlob$
|
|
24539
|
+
while (isGlob$1(str) || globby$2.test(str));
|
|
24413
24540
|
return str.replace(escaped$1, "$1");
|
|
24414
24541
|
};
|
|
24415
24542
|
} });
|
|
@@ -24512,11 +24639,11 @@ var require_is_number = __commonJS({ "node_modules/is-number/index.js"(exports$2
|
|
|
24512
24639
|
} });
|
|
24513
24640
|
var require_to_regex_range = __commonJS({ "node_modules/to-regex-range/index.js"(exports$2, module$1) {
|
|
24514
24641
|
"use strict";
|
|
24515
|
-
var isNumber$
|
|
24642
|
+
var isNumber$2 = require_is_number();
|
|
24516
24643
|
var toRegexRange$2 = (min, max, options8) => {
|
|
24517
|
-
if (isNumber$
|
|
24644
|
+
if (isNumber$2(min) === false) throw new TypeError("toRegexRange: expected the first argument to be a number");
|
|
24518
24645
|
if (max === void 0 || min === max) return String(min);
|
|
24519
|
-
if (isNumber$
|
|
24646
|
+
if (isNumber$2(max) === false) throw new TypeError("toRegexRange: expected the second argument to be a number.");
|
|
24520
24647
|
let opts = {
|
|
24521
24648
|
relaxZeros: true,
|
|
24522
24649
|
...options8
|
|
@@ -24641,8 +24768,8 @@ var require_to_regex_range = __commonJS({ "node_modules/to-regex-range/index.js"
|
|
|
24641
24768
|
let result = [];
|
|
24642
24769
|
for (let ele of arr) {
|
|
24643
24770
|
let { string: string$6 } = ele;
|
|
24644
|
-
if (!intersection$1 && !contains$
|
|
24645
|
-
if (intersection$1 && contains$
|
|
24771
|
+
if (!intersection$1 && !contains$1(comparison, "string", string$6)) result.push(prefix + string$6);
|
|
24772
|
+
if (intersection$1 && contains$1(comparison, "string", string$6)) result.push(prefix + string$6);
|
|
24646
24773
|
}
|
|
24647
24774
|
return result;
|
|
24648
24775
|
}
|
|
@@ -24654,7 +24781,7 @@ var require_to_regex_range = __commonJS({ "node_modules/to-regex-range/index.js"
|
|
|
24654
24781
|
function compare$1(a$1, b$1) {
|
|
24655
24782
|
return a$1 > b$1 ? 1 : b$1 > a$1 ? -1 : 0;
|
|
24656
24783
|
}
|
|
24657
|
-
function contains$
|
|
24784
|
+
function contains$1(arr, key2, val) {
|
|
24658
24785
|
return arr.some((ele) => ele[key2] === val);
|
|
24659
24786
|
}
|
|
24660
24787
|
function countNines$1(min, len) {
|
|
@@ -24700,7 +24827,7 @@ var require_fill_range = __commonJS({ "node_modules/fill-range/index.js"(exports
|
|
|
24700
24827
|
var isValidValue$1 = (value) => {
|
|
24701
24828
|
return typeof value === "number" || typeof value === "string" && value !== "";
|
|
24702
24829
|
};
|
|
24703
|
-
var isNumber$
|
|
24830
|
+
var isNumber$2 = (num) => Number.isInteger(+num);
|
|
24704
24831
|
var zeros$1 = (input) => {
|
|
24705
24832
|
let value = `${input}`;
|
|
24706
24833
|
let index$1 = -1;
|
|
@@ -24813,7 +24940,7 @@ var require_fill_range = __commonJS({ "node_modules/fill-range/index.js"(exports
|
|
|
24813
24940
|
return range;
|
|
24814
24941
|
};
|
|
24815
24942
|
var fillLetters$1 = (start, end, step = 1, options8 = {}) => {
|
|
24816
|
-
if (!isNumber$
|
|
24943
|
+
if (!isNumber$2(start) && start.length > 1 || !isNumber$2(end) && end.length > 1) return invalidRange$1(start, end, options8);
|
|
24817
24944
|
let format3 = options8.transform || ((val) => String.fromCharCode(val));
|
|
24818
24945
|
let a$1 = `${start}`.charCodeAt(0);
|
|
24819
24946
|
let b$1 = `${end}`.charCodeAt(0);
|
|
@@ -24842,11 +24969,11 @@ var require_fill_range = __commonJS({ "node_modules/fill-range/index.js"(exports
|
|
|
24842
24969
|
let opts = { ...options8 };
|
|
24843
24970
|
if (opts.capture === true) opts.wrap = true;
|
|
24844
24971
|
step = step || opts.step || 1;
|
|
24845
|
-
if (!isNumber$
|
|
24972
|
+
if (!isNumber$2(step)) {
|
|
24846
24973
|
if (step != null && !isObject2(step)) return invalidStep$1(step, opts);
|
|
24847
24974
|
return fill$4(start, end, 1, step);
|
|
24848
24975
|
}
|
|
24849
|
-
if (isNumber$
|
|
24976
|
+
if (isNumber$2(start) && isNumber$2(end)) return fillNumbers$1(start, end, step, opts);
|
|
24850
24977
|
return fillLetters$1(start, end, Math.max(Math.abs(step), 1), opts);
|
|
24851
24978
|
};
|
|
24852
24979
|
module$1.exports = fill$4;
|
|
@@ -25526,7 +25653,7 @@ var require_scan = __commonJS({ "node_modules/micromatch/node_modules/picomatch/
|
|
|
25526
25653
|
let lastIndex = 0;
|
|
25527
25654
|
let isBrace = false;
|
|
25528
25655
|
let isBracket = false;
|
|
25529
|
-
let isGlob$
|
|
25656
|
+
let isGlob$1 = false;
|
|
25530
25657
|
let isExtglob$1 = false;
|
|
25531
25658
|
let isGlobstar = false;
|
|
25532
25659
|
let braceEscaped = false;
|
|
@@ -25571,14 +25698,14 @@ var require_scan = __commonJS({ "node_modules/micromatch/node_modules/picomatch/
|
|
|
25571
25698
|
}
|
|
25572
25699
|
if (braceEscaped !== true && code$1 === CHAR_DOT$2 && (code$1 = advance()) === CHAR_DOT$2) {
|
|
25573
25700
|
isBrace = token2.isBrace = true;
|
|
25574
|
-
isGlob$
|
|
25701
|
+
isGlob$1 = token2.isGlob = true;
|
|
25575
25702
|
finished$1 = true;
|
|
25576
25703
|
if (scanToEnd === true) continue;
|
|
25577
25704
|
break;
|
|
25578
25705
|
}
|
|
25579
25706
|
if (braceEscaped !== true && code$1 === CHAR_COMMA$3) {
|
|
25580
25707
|
isBrace = token2.isBrace = true;
|
|
25581
|
-
isGlob$
|
|
25708
|
+
isGlob$1 = token2.isGlob = true;
|
|
25582
25709
|
finished$1 = true;
|
|
25583
25710
|
if (scanToEnd === true) continue;
|
|
25584
25711
|
break;
|
|
@@ -25615,7 +25742,7 @@ var require_scan = __commonJS({ "node_modules/micromatch/node_modules/picomatch/
|
|
|
25615
25742
|
if (opts.noext !== true) {
|
|
25616
25743
|
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
25744
|
if (isExtglobChar === true && peek2() === CHAR_LEFT_PARENTHESES$2) {
|
|
25618
|
-
isGlob$
|
|
25745
|
+
isGlob$1 = token2.isGlob = true;
|
|
25619
25746
|
isExtglob$1 = token2.isExtglob = true;
|
|
25620
25747
|
finished$1 = true;
|
|
25621
25748
|
if (code$1 === CHAR_EXCLAMATION_MARK$1 && index$1 === start) negatedExtglob = true;
|
|
@@ -25627,7 +25754,7 @@ var require_scan = __commonJS({ "node_modules/micromatch/node_modules/picomatch/
|
|
|
25627
25754
|
continue;
|
|
25628
25755
|
}
|
|
25629
25756
|
if (code$1 === CHAR_RIGHT_PARENTHESES$2) {
|
|
25630
|
-
isGlob$
|
|
25757
|
+
isGlob$1 = token2.isGlob = true;
|
|
25631
25758
|
finished$1 = true;
|
|
25632
25759
|
break;
|
|
25633
25760
|
}
|
|
@@ -25639,13 +25766,13 @@ var require_scan = __commonJS({ "node_modules/micromatch/node_modules/picomatch/
|
|
|
25639
25766
|
}
|
|
25640
25767
|
if (code$1 === CHAR_ASTERISK$2) {
|
|
25641
25768
|
if (prev === CHAR_ASTERISK$2) isGlobstar = token2.isGlobstar = true;
|
|
25642
|
-
isGlob$
|
|
25769
|
+
isGlob$1 = token2.isGlob = true;
|
|
25643
25770
|
finished$1 = true;
|
|
25644
25771
|
if (scanToEnd === true) continue;
|
|
25645
25772
|
break;
|
|
25646
25773
|
}
|
|
25647
25774
|
if (code$1 === CHAR_QUESTION_MARK$1) {
|
|
25648
|
-
isGlob$
|
|
25775
|
+
isGlob$1 = token2.isGlob = true;
|
|
25649
25776
|
finished$1 = true;
|
|
25650
25777
|
if (scanToEnd === true) continue;
|
|
25651
25778
|
break;
|
|
@@ -25659,7 +25786,7 @@ var require_scan = __commonJS({ "node_modules/micromatch/node_modules/picomatch/
|
|
|
25659
25786
|
}
|
|
25660
25787
|
if (next === CHAR_RIGHT_SQUARE_BRACKET$3) {
|
|
25661
25788
|
isBracket = token2.isBracket = true;
|
|
25662
|
-
isGlob$
|
|
25789
|
+
isGlob$1 = token2.isGlob = true;
|
|
25663
25790
|
finished$1 = true;
|
|
25664
25791
|
break;
|
|
25665
25792
|
}
|
|
@@ -25673,7 +25800,7 @@ var require_scan = __commonJS({ "node_modules/micromatch/node_modules/picomatch/
|
|
|
25673
25800
|
continue;
|
|
25674
25801
|
}
|
|
25675
25802
|
if (opts.noparen !== true && code$1 === CHAR_LEFT_PARENTHESES$2) {
|
|
25676
|
-
isGlob$
|
|
25803
|
+
isGlob$1 = token2.isGlob = true;
|
|
25677
25804
|
if (scanToEnd === true) {
|
|
25678
25805
|
while (eos() !== true && (code$1 = advance())) {
|
|
25679
25806
|
if (code$1 === CHAR_LEFT_PARENTHESES$2) {
|
|
@@ -25690,7 +25817,7 @@ var require_scan = __commonJS({ "node_modules/micromatch/node_modules/picomatch/
|
|
|
25690
25817
|
}
|
|
25691
25818
|
break;
|
|
25692
25819
|
}
|
|
25693
|
-
if (isGlob$
|
|
25820
|
+
if (isGlob$1 === true) {
|
|
25694
25821
|
finished$1 = true;
|
|
25695
25822
|
if (scanToEnd === true) continue;
|
|
25696
25823
|
break;
|
|
@@ -25698,7 +25825,7 @@ var require_scan = __commonJS({ "node_modules/micromatch/node_modules/picomatch/
|
|
|
25698
25825
|
}
|
|
25699
25826
|
if (opts.noext === true) {
|
|
25700
25827
|
isExtglob$1 = false;
|
|
25701
|
-
isGlob$
|
|
25828
|
+
isGlob$1 = false;
|
|
25702
25829
|
}
|
|
25703
25830
|
let base = str;
|
|
25704
25831
|
let prefix = "";
|
|
@@ -25708,10 +25835,10 @@ var require_scan = __commonJS({ "node_modules/micromatch/node_modules/picomatch/
|
|
|
25708
25835
|
str = str.slice(start);
|
|
25709
25836
|
lastIndex -= start;
|
|
25710
25837
|
}
|
|
25711
|
-
if (base && isGlob$
|
|
25838
|
+
if (base && isGlob$1 === true && lastIndex > 0) {
|
|
25712
25839
|
base = str.slice(0, lastIndex);
|
|
25713
25840
|
glob = str.slice(lastIndex);
|
|
25714
|
-
} else if (isGlob$
|
|
25841
|
+
} else if (isGlob$1 === true) {
|
|
25715
25842
|
base = "";
|
|
25716
25843
|
glob = str;
|
|
25717
25844
|
} else base = str;
|
|
@@ -25730,7 +25857,7 @@ var require_scan = __commonJS({ "node_modules/micromatch/node_modules/picomatch/
|
|
|
25730
25857
|
glob,
|
|
25731
25858
|
isBrace,
|
|
25732
25859
|
isBracket,
|
|
25733
|
-
isGlob: isGlob$
|
|
25860
|
+
isGlob: isGlob$1,
|
|
25734
25861
|
isExtglob: isExtglob$1,
|
|
25735
25862
|
isGlobstar,
|
|
25736
25863
|
negated,
|
|
@@ -27355,8 +27482,8 @@ var require_fs3 = __commonJS({ "node_modules/@nodelib/fs.scandir/out/utils/fs.js
|
|
|
27355
27482
|
Object.defineProperty(exports$2, "__esModule", { value: true });
|
|
27356
27483
|
exports$2.createDirentFromStats = void 0;
|
|
27357
27484
|
var DirentFromStats$2 = class {
|
|
27358
|
-
constructor(name$
|
|
27359
|
-
this.name = name$
|
|
27485
|
+
constructor(name$1, stats) {
|
|
27486
|
+
this.name = name$1;
|
|
27360
27487
|
this.isBlockDevice = stats.isBlockDevice.bind(stats);
|
|
27361
27488
|
this.isCharacterDevice = stats.isCharacterDevice.bind(stats);
|
|
27362
27489
|
this.isDirectory = stats.isDirectory.bind(stats);
|
|
@@ -27366,8 +27493,8 @@ var require_fs3 = __commonJS({ "node_modules/@nodelib/fs.scandir/out/utils/fs.js
|
|
|
27366
27493
|
this.isSymbolicLink = stats.isSymbolicLink.bind(stats);
|
|
27367
27494
|
}
|
|
27368
27495
|
};
|
|
27369
|
-
function createDirentFromStats$2(name$
|
|
27370
|
-
return new DirentFromStats$2(name$
|
|
27496
|
+
function createDirentFromStats$2(name$1, stats) {
|
|
27497
|
+
return new DirentFromStats$2(name$1, stats);
|
|
27371
27498
|
}
|
|
27372
27499
|
exports$2.createDirentFromStats = createDirentFromStats$2;
|
|
27373
27500
|
} });
|
|
@@ -27457,8 +27584,8 @@ var require_async2 = __commonJS({ "node_modules/@nodelib/fs.scandir/out/provider
|
|
|
27457
27584
|
callFailureCallback$3(callback, readdirError);
|
|
27458
27585
|
return;
|
|
27459
27586
|
}
|
|
27460
|
-
const tasks = names.map((name$
|
|
27461
|
-
const path14 = common$12.joinPathSegments(directory, name$
|
|
27587
|
+
const tasks = names.map((name$1) => {
|
|
27588
|
+
const path14 = common$12.joinPathSegments(directory, name$1, settings.pathSegmentSeparator);
|
|
27462
27589
|
return (done) => {
|
|
27463
27590
|
fsStat$6.stat(path14, settings.fsStatSettings, (error$41, stats) => {
|
|
27464
27591
|
if (error$41 !== null) {
|
|
@@ -27466,9 +27593,9 @@ var require_async2 = __commonJS({ "node_modules/@nodelib/fs.scandir/out/provider
|
|
|
27466
27593
|
return;
|
|
27467
27594
|
}
|
|
27468
27595
|
const entry = {
|
|
27469
|
-
name: name$
|
|
27596
|
+
name: name$1,
|
|
27470
27597
|
path: path14,
|
|
27471
|
-
dirent: utils$21.fs.createDirentFromStats(name$
|
|
27598
|
+
dirent: utils$21.fs.createDirentFromStats(name$1, stats)
|
|
27472
27599
|
};
|
|
27473
27600
|
if (settings.stats) entry.stats = stats;
|
|
27474
27601
|
done(null, entry);
|
|
@@ -27525,13 +27652,13 @@ var require_sync2 = __commonJS({ "node_modules/@nodelib/fs.scandir/out/providers
|
|
|
27525
27652
|
exports$2.readdirWithFileTypes = readdirWithFileTypes$2;
|
|
27526
27653
|
function readdir$2(directory, settings) {
|
|
27527
27654
|
const names = settings.fs.readdirSync(directory);
|
|
27528
|
-
return names.map((name$
|
|
27529
|
-
const entryPath = common$12.joinPathSegments(directory, name$
|
|
27655
|
+
return names.map((name$1) => {
|
|
27656
|
+
const entryPath = common$12.joinPathSegments(directory, name$1, settings.pathSegmentSeparator);
|
|
27530
27657
|
const stats = fsStat$6.statSync(entryPath, settings.fsStatSettings);
|
|
27531
27658
|
const entry = {
|
|
27532
|
-
name: name$
|
|
27659
|
+
name: name$1,
|
|
27533
27660
|
path: entryPath,
|
|
27534
|
-
dirent: utils$21.fs.createDirentFromStats(name$
|
|
27661
|
+
dirent: utils$21.fs.createDirentFromStats(name$1, stats)
|
|
27535
27662
|
};
|
|
27536
27663
|
if (settings.stats) entry.stats = stats;
|
|
27537
27664
|
return entry;
|
|
@@ -28958,11 +29085,11 @@ var require_re = __commonJS({ "node_modules/semver/internal/re.js"(exports$2, mo
|
|
|
28958
29085
|
for (const [token2, max] of safeRegexReplacements) value = value.split(`${token2}*`).join(`${token2}{0,${max}}`).split(`${token2}+`).join(`${token2}{1,${max}}`);
|
|
28959
29086
|
return value;
|
|
28960
29087
|
};
|
|
28961
|
-
var createToken = (name$
|
|
29088
|
+
var createToken = (name$1, value, isGlobal) => {
|
|
28962
29089
|
const safe = makeSafeRegex(value);
|
|
28963
29090
|
const index$1 = R++;
|
|
28964
|
-
debug$2(name$
|
|
28965
|
-
t$1[name$
|
|
29091
|
+
debug$2(name$1, index$1, value);
|
|
29092
|
+
t$1[name$1] = index$1;
|
|
28966
29093
|
src[index$1] = value;
|
|
28967
29094
|
safeSrc[index$1] = safe;
|
|
28968
29095
|
re[index$1] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
@@ -29052,19 +29179,19 @@ var require_semver = __commonJS({ "node_modules/semver/classes/semver.js"(export
|
|
|
29052
29179
|
var parseOptions = require_parse_options();
|
|
29053
29180
|
var { compareIdentifiers } = require_identifiers();
|
|
29054
29181
|
var SemVer = class _SemVer {
|
|
29055
|
-
constructor(version$
|
|
29182
|
+
constructor(version$2, options8) {
|
|
29056
29183
|
options8 = parseOptions(options8);
|
|
29057
|
-
if (version$
|
|
29058
|
-
else version$
|
|
29059
|
-
else if (typeof version$
|
|
29060
|
-
if (version$
|
|
29061
|
-
debug$2("SemVer", version$
|
|
29184
|
+
if (version$2 instanceof _SemVer) if (version$2.loose === !!options8.loose && version$2.includePrerelease === !!options8.includePrerelease) return version$2;
|
|
29185
|
+
else version$2 = version$2.version;
|
|
29186
|
+
else if (typeof version$2 !== "string") throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version$2}".`);
|
|
29187
|
+
if (version$2.length > MAX_LENGTH$2) throw new TypeError(`version is longer than ${MAX_LENGTH$2} characters`);
|
|
29188
|
+
debug$2("SemVer", version$2, options8);
|
|
29062
29189
|
this.options = options8;
|
|
29063
29190
|
this.loose = !!options8.loose;
|
|
29064
29191
|
this.includePrerelease = !!options8.includePrerelease;
|
|
29065
|
-
const m$2 = version$
|
|
29066
|
-
if (!m$2) throw new TypeError(`Invalid Version: ${version$
|
|
29067
|
-
this.raw = version$
|
|
29192
|
+
const m$2 = version$2.trim().match(options8.loose ? re[t$1.LOOSE] : re[t$1.FULL]);
|
|
29193
|
+
if (!m$2) throw new TypeError(`Invalid Version: ${version$2}`);
|
|
29194
|
+
this.raw = version$2;
|
|
29068
29195
|
this.major = +m$2[1];
|
|
29069
29196
|
this.minor = +m$2[2];
|
|
29070
29197
|
this.patch = +m$2[3];
|
|
@@ -29886,7 +30013,7 @@ var require_sigmund = __commonJS({ "node_modules/sigmund/sigmund.js"(exports$2,
|
|
|
29886
30013
|
}
|
|
29887
30014
|
} });
|
|
29888
30015
|
var require_fnmatch = __commonJS({ "node_modules/editorconfig/src/lib/fnmatch.js"(exports$2, module$1) {
|
|
29889
|
-
var platform
|
|
30016
|
+
var platform = typeof process === "object" ? process.platform : "win32";
|
|
29890
30017
|
if (module$1) module$1.exports = minimatch;
|
|
29891
30018
|
else exports$2.minimatch = minimatch;
|
|
29892
30019
|
minimatch.Minimatch = Minimatch;
|
|
@@ -29962,7 +30089,7 @@ var require_fnmatch = __commonJS({ "node_modules/editorconfig/src/lib/fnmatch.js
|
|
|
29962
30089
|
if (!(this instanceof Minimatch)) return new Minimatch(pattern$1, options8, cache3);
|
|
29963
30090
|
if (typeof pattern$1 !== "string") throw new TypeError("glob pattern string required");
|
|
29964
30091
|
if (!options8) options8 = {};
|
|
29965
|
-
if (platform
|
|
30092
|
+
if (platform === "win32") pattern$1 = pattern$1.split("\\").join("/");
|
|
29966
30093
|
var cacheKey = pattern$1 + "\n" + sigmund(options8);
|
|
29967
30094
|
var cached$1 = minimatch.cache.get(cacheKey);
|
|
29968
30095
|
if (cached$1) return cached$1;
|
|
@@ -30297,7 +30424,7 @@ var require_fnmatch = __commonJS({ "node_modules/editorconfig/src/lib/fnmatch.js
|
|
|
30297
30424
|
if (this.empty) return f$1 === "";
|
|
30298
30425
|
if (f$1 === "/" && partial$1) return true;
|
|
30299
30426
|
var options8 = this.options;
|
|
30300
|
-
if (platform
|
|
30427
|
+
if (platform === "win32") f$1 = f$1.split("\\").join("/");
|
|
30301
30428
|
f$1 = f$1.split(slashSplit);
|
|
30302
30429
|
if (options8.debug) console.error(this.pattern, "split", f$1);
|
|
30303
30430
|
var set$1 = this.set;
|
|
@@ -30765,8 +30892,8 @@ var require_src = __commonJS({ "node_modules/editorconfig/src/index.js"(exports$
|
|
|
30765
30892
|
} while (filepath !== options8.root);
|
|
30766
30893
|
return paths;
|
|
30767
30894
|
}
|
|
30768
|
-
function processMatches(matches, version$
|
|
30769
|
-
if ("indent_style" in matches && matches.indent_style === "tab" && !("indent_size" in matches) && semver.gte(version$
|
|
30895
|
+
function processMatches(matches, version$2) {
|
|
30896
|
+
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
30897
|
if ("indent_size" in matches && !("tab_width" in matches) && matches.indent_size !== "tab") matches.tab_width = matches.indent_size;
|
|
30771
30898
|
if ("indent_size" in matches && "tab_width" in matches && matches.indent_size === "tab") matches.indent_size = matches.tab_width;
|
|
30772
30899
|
return matches;
|
|
@@ -30837,11 +30964,11 @@ var require_src = __commonJS({ "node_modules/editorconfig/src/index.js"(exports$
|
|
|
30837
30964
|
function readConfigFiles(filepaths) {
|
|
30838
30965
|
return __awaiter(this, void 0, void 0, function() {
|
|
30839
30966
|
return __generator(this, function(_a$2) {
|
|
30840
|
-
return [2, Promise.all(filepaths.map(function(name$
|
|
30967
|
+
return [2, Promise.all(filepaths.map(function(name$1) {
|
|
30841
30968
|
return new Promise(function(resolve3) {
|
|
30842
|
-
fs4.readFile(name$
|
|
30969
|
+
fs4.readFile(name$1, "utf8", function(err, data) {
|
|
30843
30970
|
resolve3({
|
|
30844
|
-
name: name$
|
|
30971
|
+
name: name$1,
|
|
30845
30972
|
contents: err ? "" : data
|
|
30846
30973
|
});
|
|
30847
30974
|
});
|
|
@@ -31892,12 +32019,12 @@ var require_identifier = __commonJS({ "node_modules/@babel/helper-validator-iden
|
|
|
31892
32019
|
if (code$1 <= 65535) return code$1 >= 170 && nonASCIIidentifier.test(String.fromCharCode(code$1));
|
|
31893
32020
|
return isInAstralSet(code$1, astralIdentifierStartCodes) || isInAstralSet(code$1, astralIdentifierCodes);
|
|
31894
32021
|
}
|
|
31895
|
-
function isIdentifierName(name$
|
|
32022
|
+
function isIdentifierName(name$1) {
|
|
31896
32023
|
let isFirst = true;
|
|
31897
|
-
for (let i$2 = 0; i$2 < name$
|
|
31898
|
-
let cp = name$
|
|
31899
|
-
if ((cp & 64512) === 55296 && i$2 + 1 < name$
|
|
31900
|
-
const trail = name$
|
|
32024
|
+
for (let i$2 = 0; i$2 < name$1.length; i$2++) {
|
|
32025
|
+
let cp = name$1.charCodeAt(i$2);
|
|
32026
|
+
if ((cp & 64512) === 55296 && i$2 + 1 < name$1.length) {
|
|
32027
|
+
const trail = name$1.charCodeAt(++i$2);
|
|
31901
32028
|
if ((trail & 64512) === 56320) cp = 65536 + ((cp & 1023) << 10) + (trail & 1023);
|
|
31902
32029
|
}
|
|
31903
32030
|
if (isFirst) {
|
|
@@ -33087,10 +33214,10 @@ var AnySchema = class extends Schema {
|
|
|
33087
33214
|
}
|
|
33088
33215
|
};
|
|
33089
33216
|
var ArraySchema = class extends Schema {
|
|
33090
|
-
constructor({ valueSchema, name: name$
|
|
33217
|
+
constructor({ valueSchema, name: name$1 = valueSchema.name,...handlers }) {
|
|
33091
33218
|
super({
|
|
33092
33219
|
...handlers,
|
|
33093
|
-
name: name$
|
|
33220
|
+
name: name$1
|
|
33094
33221
|
});
|
|
33095
33222
|
this._valueSchema = valueSchema;
|
|
33096
33223
|
}
|
|
@@ -33533,7 +33660,7 @@ var isUrlInstance = (value) => value instanceof URL;
|
|
|
33533
33660
|
var isUrlString = (value) => typeof value === "string" && value.startsWith(URL_STRING_PREFIX);
|
|
33534
33661
|
var isUrl = (urlOrPath) => isUrlInstance(urlOrPath) || isUrlString(urlOrPath);
|
|
33535
33662
|
var toPath = (urlOrPath) => isUrl(urlOrPath) ? url$1.fileURLToPath(urlOrPath) : urlOrPath;
|
|
33536
|
-
var toAbsolutePath = (urlOrPath) => urlOrPath ? path$
|
|
33663
|
+
var toAbsolutePath = (urlOrPath) => urlOrPath ? path$1.resolve(isUrl(urlOrPath) ? url$1.fileURLToPath(urlOrPath) : urlOrPath) : urlOrPath;
|
|
33537
33664
|
function partition2(array2, predicate) {
|
|
33538
33665
|
const result = [[], []];
|
|
33539
33666
|
for (const value of array2) result[predicate(value) ? 0 : 1].push(value);
|
|
@@ -33546,11 +33673,11 @@ var isDirectory = (stats) => stats == null ? void 0 : stats.isDirectory();
|
|
|
33546
33673
|
async function findInDirectory(nameOrNames, { typeCheck, cwd, allowSymlinks = true, filter: filter2 }) {
|
|
33547
33674
|
const directory = toAbsolutePath(cwd) ?? process2.cwd();
|
|
33548
33675
|
const names = Array.isArray(nameOrNames) ? nameOrNames : [nameOrNames];
|
|
33549
|
-
for (const name$
|
|
33550
|
-
const fileOrDirectory = path$
|
|
33676
|
+
for (const name$1 of names) {
|
|
33677
|
+
const fileOrDirectory = path$1.join(directory, name$1);
|
|
33551
33678
|
const stats = await safeStat(fileOrDirectory, allowSymlinks);
|
|
33552
33679
|
if (await typeCheck(stats) && (!filter2 || await filter2({
|
|
33553
|
-
name: name$
|
|
33680
|
+
name: name$1,
|
|
33554
33681
|
path: fileOrDirectory,
|
|
33555
33682
|
stats
|
|
33556
33683
|
}))) return fileOrDirectory;
|
|
@@ -33577,13 +33704,13 @@ function* iterateDirectoryUp(from, to) {
|
|
|
33577
33704
|
let directory = toAbsolutePath(from) ?? process2.cwd();
|
|
33578
33705
|
let stopDirectory = toAbsolutePath(to);
|
|
33579
33706
|
if (stopDirectory) {
|
|
33580
|
-
const relation = path$
|
|
33707
|
+
const relation = path$1.relative(stopDirectory, directory);
|
|
33581
33708
|
if (relation[0] === "." || relation === directory) return;
|
|
33582
33709
|
}
|
|
33583
|
-
stopDirectory = stopDirectory ? directory.slice(0, stopDirectory.length) : path$
|
|
33710
|
+
stopDirectory = stopDirectory ? directory.slice(0, stopDirectory.length) : path$1.parse(directory).root;
|
|
33584
33711
|
while (directory !== stopDirectory) {
|
|
33585
33712
|
yield directory;
|
|
33586
|
-
directory = path$
|
|
33713
|
+
directory = path$1.dirname(directory);
|
|
33587
33714
|
}
|
|
33588
33715
|
yield stopDirectory;
|
|
33589
33716
|
}
|
|
@@ -33658,7 +33785,7 @@ var searcher;
|
|
|
33658
33785
|
async function findProjectRoot(startDirectory, options8) {
|
|
33659
33786
|
searcher ?? (searcher = new DirectorySearcher(DIRECTORIES, { allowSymlinks: false }));
|
|
33660
33787
|
const directory = await searcher.search(startDirectory, { cache: options8.shouldCache });
|
|
33661
|
-
return directory ? path$
|
|
33788
|
+
return directory ? path$1.dirname(directory) : void 0;
|
|
33662
33789
|
}
|
|
33663
33790
|
function clearFindProjectRootCache() {
|
|
33664
33791
|
searcher == null || searcher.clearCache();
|
|
@@ -33763,8 +33890,8 @@ var parse2 = function parse3(text$2, reviver) {
|
|
|
33763
33890
|
if (typeof reviver === "function") return internalize({ "": root }, "", reviver);
|
|
33764
33891
|
return root;
|
|
33765
33892
|
};
|
|
33766
|
-
function internalize(holder, name$
|
|
33767
|
-
const value = holder[name$
|
|
33893
|
+
function internalize(holder, name$1, reviver) {
|
|
33894
|
+
const value = holder[name$1];
|
|
33768
33895
|
if (value != null && typeof value === "object") if (Array.isArray(value)) for (let i$2 = 0; i$2 < value.length; i$2++) {
|
|
33769
33896
|
const key2 = String(i$2);
|
|
33770
33897
|
const replacement = internalize(value, key2, reviver);
|
|
@@ -33786,7 +33913,7 @@ function internalize(holder, name$2, reviver) {
|
|
|
33786
33913
|
configurable: true
|
|
33787
33914
|
});
|
|
33788
33915
|
}
|
|
33789
|
-
return reviver.call(holder, name$
|
|
33916
|
+
return reviver.call(holder, name$1, value);
|
|
33790
33917
|
}
|
|
33791
33918
|
var lexState;
|
|
33792
33919
|
var buffer;
|
|
@@ -35285,13 +35412,13 @@ var CONFIG_FILE_NAMES = [
|
|
|
35285
35412
|
"prettier.config.cts",
|
|
35286
35413
|
".prettierrc.toml"
|
|
35287
35414
|
];
|
|
35288
|
-
async function filter({ name: name$
|
|
35289
|
-
if (name$
|
|
35415
|
+
async function filter({ name: name$1, path: file$1 }) {
|
|
35416
|
+
if (name$1 === "package.json") try {
|
|
35290
35417
|
return Boolean(await loadConfigFromPackageJson(file$1));
|
|
35291
35418
|
} catch {
|
|
35292
35419
|
return false;
|
|
35293
35420
|
}
|
|
35294
|
-
if (name$
|
|
35421
|
+
if (name$1 === "package.yaml") try {
|
|
35295
35422
|
return Boolean(await loadConfigFromPackageYaml(file$1));
|
|
35296
35423
|
} catch {
|
|
35297
35424
|
return false;
|
|
@@ -35332,14 +35459,14 @@ codes.ERR_INVALID_ARG_TYPE = createError(
|
|
|
35332
35459
|
* @param {Array<string> | string} expected
|
|
35333
35460
|
* @param {unknown} actual
|
|
35334
35461
|
*/
|
|
35335
|
-
(name$
|
|
35336
|
-
assert3(typeof name$
|
|
35462
|
+
(name$1, expected, actual) => {
|
|
35463
|
+
assert3(typeof name$1 === "string", "'name' must be a string");
|
|
35337
35464
|
if (!Array.isArray(expected)) expected = [expected];
|
|
35338
35465
|
let message = "The ";
|
|
35339
|
-
if (name$
|
|
35466
|
+
if (name$1.endsWith(" argument")) message += `${name$1} `;
|
|
35340
35467
|
else {
|
|
35341
|
-
const type$1 = name$
|
|
35342
|
-
message += `"${name$
|
|
35468
|
+
const type$1 = name$1.includes(".") ? "property" : "argument";
|
|
35469
|
+
message += `"${name$1}" ${type$1} `;
|
|
35343
35470
|
}
|
|
35344
35471
|
message += "must be ";
|
|
35345
35472
|
const types = [];
|
|
@@ -35479,11 +35606,11 @@ codes.ERR_INVALID_ARG_VALUE = createError(
|
|
|
35479
35606
|
* @param {unknown} value
|
|
35480
35607
|
* @param {string} [reason='is invalid']
|
|
35481
35608
|
*/
|
|
35482
|
-
(name$
|
|
35609
|
+
(name$1, value, reason = "is invalid") => {
|
|
35483
35610
|
let inspected = inspect(value);
|
|
35484
35611
|
if (inspected.length > 128) inspected = `${inspected.slice(0, 128)}...`;
|
|
35485
|
-
const type$1 = name$
|
|
35486
|
-
return `The ${type$1} '${name$
|
|
35612
|
+
const type$1 = name$1.includes(".") ? "property" : "argument";
|
|
35613
|
+
return `The ${type$1} '${name$1}' ${reason}. Received ${inspected}`;
|
|
35487
35614
|
},
|
|
35488
35615
|
TypeError
|
|
35489
35616
|
);
|
|
@@ -36007,18 +36134,18 @@ function patternKeyCompare(a$1, b$1) {
|
|
|
36007
36134
|
if (b$1.length > a$1.length) return 1;
|
|
36008
36135
|
return 0;
|
|
36009
36136
|
}
|
|
36010
|
-
function packageImportsResolve(name$
|
|
36011
|
-
if (name$
|
|
36137
|
+
function packageImportsResolve(name$1, base, conditions) {
|
|
36138
|
+
if (name$1 === "#" || name$1.startsWith("#/") || name$1.endsWith("/")) {
|
|
36012
36139
|
const reason = "is not a valid internal imports specifier name";
|
|
36013
|
-
throw new ERR_INVALID_MODULE_SPECIFIER(name$
|
|
36140
|
+
throw new ERR_INVALID_MODULE_SPECIFIER(name$1, reason, fileURLToPath$1(base));
|
|
36014
36141
|
}
|
|
36015
36142
|
let packageJsonUrl;
|
|
36016
36143
|
const packageConfig = getPackageScopeConfig(base);
|
|
36017
36144
|
if (packageConfig.exists) {
|
|
36018
36145
|
packageJsonUrl = pathToFileURL$1(packageConfig.pjsonPath);
|
|
36019
36146
|
const imports = packageConfig.imports;
|
|
36020
|
-
if (imports) if (own2.call(imports, name$
|
|
36021
|
-
const resolveResult = resolvePackageTarget(packageJsonUrl, imports[name$
|
|
36147
|
+
if (imports) if (own2.call(imports, name$1) && !name$1.includes("*")) {
|
|
36148
|
+
const resolveResult = resolvePackageTarget(packageJsonUrl, imports[name$1], "", name$1, base, false, true, false, conditions);
|
|
36022
36149
|
if (resolveResult !== null && resolveResult !== void 0) return resolveResult;
|
|
36023
36150
|
} else {
|
|
36024
36151
|
let bestMatch = "";
|
|
@@ -36028,11 +36155,11 @@ function packageImportsResolve(name$2, base, conditions) {
|
|
|
36028
36155
|
while (++i$2 < keys.length) {
|
|
36029
36156
|
const key2 = keys[i$2];
|
|
36030
36157
|
const patternIndex = key2.indexOf("*");
|
|
36031
|
-
if (patternIndex !== -1 && name$
|
|
36158
|
+
if (patternIndex !== -1 && name$1.startsWith(key2.slice(0, -1))) {
|
|
36032
36159
|
const patternTrailer = key2.slice(patternIndex + 1);
|
|
36033
|
-
if (name$
|
|
36160
|
+
if (name$1.length >= key2.length && name$1.endsWith(patternTrailer) && patternKeyCompare(bestMatch, key2) === 1 && key2.lastIndexOf("*") === patternIndex) {
|
|
36034
36161
|
bestMatch = key2;
|
|
36035
|
-
bestMatchSubpath = name$
|
|
36162
|
+
bestMatchSubpath = name$1.slice(patternIndex, name$1.length - patternTrailer.length);
|
|
36036
36163
|
}
|
|
36037
36164
|
}
|
|
36038
36165
|
}
|
|
@@ -36043,7 +36170,7 @@ function packageImportsResolve(name$2, base, conditions) {
|
|
|
36043
36170
|
}
|
|
36044
36171
|
}
|
|
36045
36172
|
}
|
|
36046
|
-
throw importNotDefined(name$
|
|
36173
|
+
throw importNotDefined(name$1, packageJsonUrl, base);
|
|
36047
36174
|
}
|
|
36048
36175
|
function parsePackageName(specifier, base) {
|
|
36049
36176
|
let separatorIndex = specifier.indexOf("/");
|
|
@@ -37365,9 +37492,9 @@ var AstPath = class {
|
|
|
37365
37492
|
const { stack: stack2 } = this;
|
|
37366
37493
|
const { length } = stack2;
|
|
37367
37494
|
let value = at_default(false, stack2, -1);
|
|
37368
|
-
for (const name$
|
|
37369
|
-
value = value[name$
|
|
37370
|
-
stack2.push(name$
|
|
37495
|
+
for (const name$1 of names) {
|
|
37496
|
+
value = value[name$1];
|
|
37497
|
+
stack2.push(name$1, value);
|
|
37371
37498
|
}
|
|
37372
37499
|
try {
|
|
37373
37500
|
return callback(this);
|
|
@@ -37394,9 +37521,9 @@ var AstPath = class {
|
|
|
37394
37521
|
const { stack: stack2 } = this;
|
|
37395
37522
|
const { length } = stack2;
|
|
37396
37523
|
let value = at_default(false, stack2, -1);
|
|
37397
|
-
for (const name$
|
|
37398
|
-
value = value[name$
|
|
37399
|
-
stack2.push(name$
|
|
37524
|
+
for (const name$1 of names) {
|
|
37525
|
+
value = value[name$1];
|
|
37526
|
+
stack2.push(name$1, value);
|
|
37400
37527
|
}
|
|
37401
37528
|
try {
|
|
37402
37529
|
for (let i$2 = 0; i$2 < value.length; ++i$2) {
|
|
@@ -37423,18 +37550,18 @@ var AstPath = class {
|
|
|
37423
37550
|
*/
|
|
37424
37551
|
match(...predicates) {
|
|
37425
37552
|
let stackPointer = this.stack.length - 1;
|
|
37426
|
-
let name$
|
|
37553
|
+
let name$1 = null;
|
|
37427
37554
|
let node$1 = this.stack[stackPointer--];
|
|
37428
37555
|
for (const predicate of predicates) {
|
|
37429
37556
|
if (node$1 === void 0) return false;
|
|
37430
37557
|
let number$3 = null;
|
|
37431
|
-
if (typeof name$
|
|
37432
|
-
number$3 = name$
|
|
37433
|
-
name$
|
|
37558
|
+
if (typeof name$1 === "number") {
|
|
37559
|
+
number$3 = name$1;
|
|
37560
|
+
name$1 = this.stack[stackPointer--];
|
|
37434
37561
|
node$1 = this.stack[stackPointer--];
|
|
37435
37562
|
}
|
|
37436
|
-
if (predicate && !predicate(node$1, name$
|
|
37437
|
-
name$
|
|
37563
|
+
if (predicate && !predicate(node$1, name$1, number$3)) return false;
|
|
37564
|
+
name$1 = this.stack[stackPointer--];
|
|
37438
37565
|
node$1 = this.stack[stackPointer--];
|
|
37439
37566
|
}
|
|
37440
37567
|
return true;
|
|
@@ -38144,9 +38271,9 @@ function* collectParsersFromLanguages(parserChoices, languages2, plugins) {
|
|
|
38144
38271
|
}
|
|
38145
38272
|
function normalizeOptionSettings(settings) {
|
|
38146
38273
|
const options8 = [];
|
|
38147
|
-
for (const [name$
|
|
38274
|
+
for (const [name$1, originalOption] of Object.entries(settings)) {
|
|
38148
38275
|
const option = {
|
|
38149
|
-
name: name$
|
|
38276
|
+
name: name$1,
|
|
38150
38277
|
...originalOption
|
|
38151
38278
|
};
|
|
38152
38279
|
if (Array.isArray(option.default)) option.default = at_default(false, option.default, -1).value;
|
|
@@ -38180,11 +38307,11 @@ var getFileBasename = (file$1) => String(file$1).split(/[/\\]/u).pop();
|
|
|
38180
38307
|
function getLanguageByFileName(languages2, file$1) {
|
|
38181
38308
|
if (!file$1) return;
|
|
38182
38309
|
const basename$1 = getFileBasename(file$1).toLowerCase();
|
|
38183
|
-
return languages2.find(({ filenames }) => filenames == null ? void 0 : filenames.some((name$
|
|
38310
|
+
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
38311
|
}
|
|
38185
38312
|
function getLanguageByLanguageName(languages2, languageName) {
|
|
38186
38313
|
if (!languageName) return;
|
|
38187
|
-
return languages2.find(({ name: name$
|
|
38314
|
+
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
38315
|
}
|
|
38189
38316
|
function getLanguageByInterpreter(languages2, file$1) {
|
|
38190
38317
|
if (!file$1 || getFileBasename(file$1).includes(".")) return;
|
|
@@ -38211,7 +38338,7 @@ function inferParser(options8, fileInfo) {
|
|
|
38211
38338
|
}
|
|
38212
38339
|
var infer_parser_default = inferParser;
|
|
38213
38340
|
var hasDeprecationWarned;
|
|
38214
|
-
function normalizeOptions
|
|
38341
|
+
function normalizeOptions(options8, optionInfos, { logger: logger$1 = false, isCLI = false, passThrough = false, FlagSchema, descriptor } = {}) {
|
|
38215
38342
|
if (isCLI) {
|
|
38216
38343
|
if (!FlagSchema) throw new Error("'FlagSchema' option is required.");
|
|
38217
38344
|
if (!descriptor) throw new Error("'descriptor' option is required.");
|
|
@@ -38255,8 +38382,8 @@ function optionInfosToSchemas(optionInfos, { isCLI, FlagSchema }) {
|
|
|
38255
38382
|
return schemas;
|
|
38256
38383
|
}
|
|
38257
38384
|
function optionInfoToSchema(optionInfo, { isCLI, optionInfos, FlagSchema }) {
|
|
38258
|
-
const { name: name$
|
|
38259
|
-
const parameters = { name: name$
|
|
38385
|
+
const { name: name$1 } = optionInfo;
|
|
38386
|
+
const parameters = { name: name$1 };
|
|
38260
38387
|
let SchemaConstructor;
|
|
38261
38388
|
const handlers = {};
|
|
38262
38389
|
switch (optionInfo.type) {
|
|
@@ -38313,7 +38440,7 @@ function optionInfoToSchema(optionInfo, { isCLI, optionInfos, FlagSchema }) {
|
|
|
38313
38440
|
...handlers
|
|
38314
38441
|
});
|
|
38315
38442
|
}
|
|
38316
|
-
var normalize_options_default = normalizeOptions
|
|
38443
|
+
var normalize_options_default = normalizeOptions;
|
|
38317
38444
|
var arrayFindLast = (isOptionalObject, array2, callback) => {
|
|
38318
38445
|
if (isOptionalObject && (array2 === void 0 || array2 === null)) return;
|
|
38319
38446
|
if (array2.findLast) return array2.findLast(callback);
|
|
@@ -39853,13 +39980,13 @@ function importFromDirectory(specifier, directory) {
|
|
|
39853
39980
|
return import_from_file_default(specifier, path10.join(directory, "noop.js"));
|
|
39854
39981
|
}
|
|
39855
39982
|
var import_from_directory_default = importFromDirectory;
|
|
39856
|
-
async function importPlugin(name$
|
|
39857
|
-
if (isUrl(name$
|
|
39858
|
-
if (path10.isAbsolute(name$
|
|
39983
|
+
async function importPlugin(name$1, cwd) {
|
|
39984
|
+
if (isUrl(name$1)) return import(name$1);
|
|
39985
|
+
if (path10.isAbsolute(name$1)) return import(pathToFileURL$1(name$1).href);
|
|
39859
39986
|
try {
|
|
39860
|
-
return await import(pathToFileURL$1(path10.resolve(name$
|
|
39987
|
+
return await import(pathToFileURL$1(path10.resolve(name$1)).href);
|
|
39861
39988
|
} catch {
|
|
39862
|
-
return import_from_directory_default(name$
|
|
39989
|
+
return import_from_directory_default(name$1, cwd);
|
|
39863
39990
|
}
|
|
39864
39991
|
}
|
|
39865
39992
|
async function loadPluginWithoutCache(plugin, cwd) {
|
|
@@ -40915,9 +41042,9 @@ var __privateAdd = (obj, member, value) => {
|
|
|
40915
41042
|
if (member.has(obj)) throw TypeError("Cannot add the same private member more than once");
|
|
40916
41043
|
member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
40917
41044
|
};
|
|
40918
|
-
var __privateMethod = (obj, member, method
|
|
41045
|
+
var __privateMethod = (obj, member, method) => {
|
|
40919
41046
|
__accessCheck(obj, member, "access private method");
|
|
40920
|
-
return method
|
|
41047
|
+
return method;
|
|
40921
41048
|
};
|
|
40922
41049
|
/**
|
|
40923
41050
|
* @license
|
|
@@ -41416,177 +41543,8 @@ function effect(cb) {
|
|
|
41416
41543
|
};
|
|
41417
41544
|
}
|
|
41418
41545
|
|
|
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
41546
|
//#endregion
|
|
41588
41547
|
//#region ../dev/dist/reactive-fs/reactive-fs.js
|
|
41589
|
-
var import_watcher = __toESM$1(require_watcher(), 1);
|
|
41590
41548
|
const ONCE_AC = createAcontext("ONCE", () => false);
|
|
41591
41549
|
const getFileState = (filepath, once$1 = ONCE_AC.get()) => {
|
|
41592
41550
|
const fileState = new Signal.State(readFileSync(filepath, "utf-8"));
|
|
@@ -41611,7 +41569,7 @@ const dirGlobState = (dirname$2, glob, once$1 = ONCE_AC.get()) => {
|
|
|
41611
41569
|
} });
|
|
41612
41570
|
if (!once$1) {
|
|
41613
41571
|
const off = effect(async () => {
|
|
41614
|
-
const sub = await
|
|
41572
|
+
const sub = await parcelWatcher.subscribe(dirname$2, (err, events) => {
|
|
41615
41573
|
if (events.some((event) => event.type === "create" || event.type === "delete")) try {
|
|
41616
41574
|
dirState.set(globbySync(glob, { cwd: dirname$2 }));
|
|
41617
41575
|
} catch {
|
|
@@ -41789,11 +41747,11 @@ const handleFileReplacement = async ({ globOrFilepath, mode, params, once: once$
|
|
|
41789
41747
|
lang: params[`mime_${urlRes.res.headers.get("content-type")?.split(";")}_lang`] ?? params.lang
|
|
41790
41748
|
});
|
|
41791
41749
|
}
|
|
41792
|
-
const isGlob$
|
|
41750
|
+
const isGlob$1 = isDynamicPattern(globOrFilepath);
|
|
41793
41751
|
const isInsideBaseDir = (targetPath) => normalizeFilePath(path.resolve(baseDir, targetPath)).startsWith(normalizeFilePath(baseDir) + "/");
|
|
41794
|
-
const isOutBaseDirFile = !isGlob$
|
|
41752
|
+
const isOutBaseDirFile = !isGlob$1 && !isInsideBaseDir(globOrFilepath);
|
|
41795
41753
|
const files$1 = isOutBaseDirFile ? [globOrFilepath] : globbySync(globOrFilepath, paramsToGlobbyOptions(params, {
|
|
41796
|
-
gitignore: isGlob$
|
|
41754
|
+
gitignore: isGlob$1 ? true : false,
|
|
41797
41755
|
cwd: baseDir
|
|
41798
41756
|
}));
|
|
41799
41757
|
if (files$1.length === 0) return `<!-- No files found for pattern: ${globOrFilepath} -->`;
|
|
@@ -41828,13 +41786,13 @@ const handleFileReplacement = async ({ globOrFilepath, mode, params, once: once$
|
|
|
41828
41786
|
async function gitCommitContents(repoPath, commitRef, filePaths) {
|
|
41829
41787
|
if (filePaths.length === 0) return [];
|
|
41830
41788
|
return new Promise((resolve$1, reject) => {
|
|
41831
|
-
const resultsMap = new Map(filePaths.map((path$
|
|
41832
|
-
path: path$
|
|
41789
|
+
const resultsMap = new Map(filePaths.map((path$12) => [path$12, {
|
|
41790
|
+
path: path$12,
|
|
41833
41791
|
content: void 0,
|
|
41834
41792
|
status: "M"
|
|
41835
41793
|
}]));
|
|
41836
41794
|
const gitProcess = spawn("git", ["cat-file", "--batch"], { cwd: repoPath });
|
|
41837
|
-
const requests = filePaths.map((path$
|
|
41795
|
+
const requests = filePaths.map((path$12) => `${commitRef}:${path$12}\n`).join("");
|
|
41838
41796
|
let stdoutBuffer = Buffer.alloc(0);
|
|
41839
41797
|
let stderrOutput = "";
|
|
41840
41798
|
gitProcess.stdout.on("data", (chunk) => {
|
|
@@ -41849,13 +41807,13 @@ async function gitCommitContents(repoPath, commitRef, filePaths) {
|
|
|
41849
41807
|
gitProcess.on("close", (code$1) => {
|
|
41850
41808
|
if (code$1 !== 0 && stdoutBuffer.length === 0) return reject(/* @__PURE__ */ new Error(`'git cat-file' process exited with code ${code$1}. Stderr: ${stderrOutput}`));
|
|
41851
41809
|
let offset = 0;
|
|
41852
|
-
for (const path$
|
|
41810
|
+
for (const path$12 of filePaths) {
|
|
41853
41811
|
if (offset >= stdoutBuffer.length) break;
|
|
41854
41812
|
const newlineIndex = stdoutBuffer.indexOf("\n", offset);
|
|
41855
41813
|
if (newlineIndex === -1) break;
|
|
41856
41814
|
const header = stdoutBuffer.toString("utf8", offset, newlineIndex);
|
|
41857
41815
|
offset = newlineIndex + 1;
|
|
41858
|
-
const result = resultsMap.get(path$
|
|
41816
|
+
const result = resultsMap.get(path$12);
|
|
41859
41817
|
if (header.endsWith(" missing")) result.status = "D";
|
|
41860
41818
|
else {
|
|
41861
41819
|
const [, type$1, sizeStr] = header.split(" ");
|
|
@@ -41984,10 +41942,10 @@ async function gitCommitDiffs(repoPath, commitRef, filePaths) {
|
|
|
41984
41942
|
const firstLine = fullDiff.substring(0, fullDiff.indexOf("\n"));
|
|
41985
41943
|
const pathMatch = firstLine.match(/ b\/(.*)$/s);
|
|
41986
41944
|
if (pathMatch) {
|
|
41987
|
-
const path$
|
|
41988
|
-
const status = changedFilesMap.get(path$
|
|
41945
|
+
const path$12 = pathMatch[1].trim();
|
|
41946
|
+
const status = changedFilesMap.get(path$12);
|
|
41989
41947
|
if (status) diffs.push({
|
|
41990
|
-
path: path$
|
|
41948
|
+
path: path$12,
|
|
41991
41949
|
status,
|
|
41992
41950
|
diff: simplifyDiffForAI(fullDiff)
|
|
41993
41951
|
});
|
|
@@ -42053,7 +42011,6 @@ async function gitWorkingContents(repoPath, options$1) {
|
|
|
42053
42011
|
content: status === "D" ? void 0 : await fsPromises.readFile(path.join(repoPath, filepath), "utf-8"),
|
|
42054
42012
|
status
|
|
42055
42013
|
});
|
|
42056
|
-
console.log("QAQ results.size", results.size);
|
|
42057
42014
|
};
|
|
42058
42015
|
}), 10);
|
|
42059
42016
|
return [...results.values()];
|
|
@@ -42106,10 +42063,10 @@ async function gitWorkingDiffs(repoPath, options$1) {
|
|
|
42106
42063
|
const firstLine = fullDiff.substring(0, fullDiff.indexOf("\n"));
|
|
42107
42064
|
const pathMatch = firstLine.match(/ b\/(.*)$/s);
|
|
42108
42065
|
if (pathMatch) {
|
|
42109
|
-
const path$
|
|
42110
|
-
const status = trackedChanges.get(path$
|
|
42066
|
+
const path$12 = pathMatch[1].trim();
|
|
42067
|
+
const status = trackedChanges.get(path$12);
|
|
42111
42068
|
if (status) diffs.push({
|
|
42112
|
-
path: path$
|
|
42069
|
+
path: path$12,
|
|
42113
42070
|
status,
|
|
42114
42071
|
diff: simplifyDiffForAI(fullDiff)
|
|
42115
42072
|
});
|
|
@@ -42119,15 +42076,15 @@ async function gitWorkingDiffs(repoPath, options$1) {
|
|
|
42119
42076
|
});
|
|
42120
42077
|
diffPromises.push(promise$2);
|
|
42121
42078
|
}
|
|
42122
|
-
untrackedFiles.forEach((path$
|
|
42123
|
-
const absolutePath = join(repoPath, path$
|
|
42079
|
+
untrackedFiles.forEach((path$12) => {
|
|
42080
|
+
const absolutePath = join(repoPath, path$12);
|
|
42124
42081
|
const promise$2 = promises.readFile(absolutePath, "utf-8").then((content$2) => {
|
|
42125
42082
|
const lines = content$2.split("\n");
|
|
42126
42083
|
const hunkHeader = `@@ -0,0 +1,${lines.length} @@`;
|
|
42127
42084
|
const diffBody = lines.map((line$2) => `+${line$2}`).join("\n");
|
|
42128
42085
|
const simplifiedDiff = `${hunkHeader}\n${diffBody}`;
|
|
42129
42086
|
return {
|
|
42130
|
-
path: path$
|
|
42087
|
+
path: path$12,
|
|
42131
42088
|
status: "A",
|
|
42132
42089
|
diff: simplifiedDiff
|
|
42133
42090
|
};
|
|
@@ -48460,8 +48417,8 @@ function tokenizeHtmlFlow(effects, ok$1, nok) {
|
|
|
48460
48417
|
function tagName(code$1) {
|
|
48461
48418
|
if (code$1 === null || code$1 === 47 || code$1 === 62 || markdownLineEndingOrSpace(code$1)) {
|
|
48462
48419
|
const slash$3 = code$1 === 47;
|
|
48463
|
-
const name$
|
|
48464
|
-
if (!slash$3 && !closingTag && htmlRawNames.includes(name$
|
|
48420
|
+
const name$1 = buffer$1.toLowerCase();
|
|
48421
|
+
if (!slash$3 && !closingTag && htmlRawNames.includes(name$1)) {
|
|
48465
48422
|
marker = 1;
|
|
48466
48423
|
return self.interrupt ? ok$1(code$1) : continuation(code$1);
|
|
48467
48424
|
}
|
|
@@ -48849,8 +48806,8 @@ function tokenizeHtmlFlow(effects, ok$1, nok) {
|
|
|
48849
48806
|
*/
|
|
48850
48807
|
function continuationRawEndTag(code$1) {
|
|
48851
48808
|
if (code$1 === 62) {
|
|
48852
|
-
const name$
|
|
48853
|
-
if (htmlRawNames.includes(name$
|
|
48809
|
+
const name$1 = buffer$1.toLowerCase();
|
|
48810
|
+
if (htmlRawNames.includes(name$1)) {
|
|
48854
48811
|
effects.consume(code$1);
|
|
48855
48812
|
return continuationClose;
|
|
48856
48813
|
}
|
|
@@ -52779,8 +52736,8 @@ function visitParents(tree, test, visitor, reverse) {
|
|
|
52779
52736
|
function factory$1(node$1, index$1, parents) {
|
|
52780
52737
|
const value = node$1 && typeof node$1 === "object" ? node$1 : {};
|
|
52781
52738
|
if (typeof value.type === "string") {
|
|
52782
|
-
const name$
|
|
52783
|
-
Object.defineProperty(visit$1, "name", { value: "node (" + color(node$1.type + (name$
|
|
52739
|
+
const name$1 = typeof value.tagName === "string" ? value.tagName : typeof value.name === "string" ? value.name : void 0;
|
|
52740
|
+
Object.defineProperty(visit$1, "name", { value: "node (" + color(node$1.type + (name$1 ? "<" + name$1 + ">" : "")) + ")" });
|
|
52784
52741
|
}
|
|
52785
52742
|
return visit$1;
|
|
52786
52743
|
function visit$1() {
|
|
@@ -53015,7 +52972,7 @@ const doGenPrompts = async (argv) => {
|
|
|
53015
52972
|
else console.error(`Error: Input '${input}' not found and did not match any files.`);
|
|
53016
52973
|
}
|
|
53017
52974
|
}
|
|
53018
|
-
if (argv.watch) console.log("\nWatching for file changes... Press Ctrl+C to exit.");
|
|
52975
|
+
if (argv.watch) console.log(gray("\nWatching for file changes... Press Ctrl+C to exit."));
|
|
53019
52976
|
};
|
|
53020
52977
|
|
|
53021
52978
|
//#endregion
|
|
@@ -53056,405 +53013,11 @@ const genCommand = {
|
|
|
53056
53013
|
}
|
|
53057
53014
|
};
|
|
53058
53015
|
|
|
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
53016
|
//#endregion
|
|
53454
53017
|
//#region ../../node_modules/.pnpm/zod@4.0.10/node_modules/zod/v4/core/core.js
|
|
53455
53018
|
/** A special constant with type `never` */
|
|
53456
53019
|
const NEVER = Object.freeze({ status: "aborted" });
|
|
53457
|
-
function $constructor(name$
|
|
53020
|
+
function $constructor(name$1, initializer$2, params) {
|
|
53458
53021
|
function init$1(inst, def) {
|
|
53459
53022
|
var _a$2;
|
|
53460
53023
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -53462,7 +53025,7 @@ function $constructor(name$2, initializer$2, params) {
|
|
|
53462
53025
|
enumerable: false
|
|
53463
53026
|
});
|
|
53464
53027
|
(_a$2 = inst._zod).traits ?? (_a$2.traits = /* @__PURE__ */ new Set());
|
|
53465
|
-
inst._zod.traits.add(name$
|
|
53028
|
+
inst._zod.traits.add(name$1);
|
|
53466
53029
|
initializer$2(inst, def);
|
|
53467
53030
|
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
53031
|
inst._zod.constr = _$1;
|
|
@@ -53470,7 +53033,7 @@ function $constructor(name$2, initializer$2, params) {
|
|
|
53470
53033
|
}
|
|
53471
53034
|
const Parent = params?.Parent ?? Object;
|
|
53472
53035
|
class Definition extends Parent {}
|
|
53473
|
-
Object.defineProperty(Definition, "name", { value: name$
|
|
53036
|
+
Object.defineProperty(Definition, "name", { value: name$1 });
|
|
53474
53037
|
function _$1(def) {
|
|
53475
53038
|
var _a$2;
|
|
53476
53039
|
const inst = params?.Parent ? new Definition() : this;
|
|
@@ -53482,9 +53045,9 @@ function $constructor(name$2, initializer$2, params) {
|
|
|
53482
53045
|
Object.defineProperty(_$1, "init", { value: init$1 });
|
|
53483
53046
|
Object.defineProperty(_$1, Symbol.hasInstance, { value: (inst) => {
|
|
53484
53047
|
if (params?.Parent && inst instanceof params.Parent) return true;
|
|
53485
|
-
return inst?._zod?.traits?.has(name$
|
|
53048
|
+
return inst?._zod?.traits?.has(name$1);
|
|
53486
53049
|
} });
|
|
53487
|
-
Object.defineProperty(_$1, "name", { value: name$
|
|
53050
|
+
Object.defineProperty(_$1, "name", { value: name$1 });
|
|
53488
53051
|
return _$1;
|
|
53489
53052
|
}
|
|
53490
53053
|
const $brand = Symbol("zod_brand");
|
|
@@ -53639,9 +53202,9 @@ function mergeDefs(...defs) {
|
|
|
53639
53202
|
function cloneDef(schema) {
|
|
53640
53203
|
return mergeDefs(schema._zod.def);
|
|
53641
53204
|
}
|
|
53642
|
-
function getElementAtPath(obj, path$
|
|
53643
|
-
if (!path$
|
|
53644
|
-
return path$
|
|
53205
|
+
function getElementAtPath(obj, path$12) {
|
|
53206
|
+
if (!path$12) return obj;
|
|
53207
|
+
return path$12.reduce((acc, key$1) => acc?.[key$1], obj);
|
|
53645
53208
|
}
|
|
53646
53209
|
function promiseAllObject(promisesObj) {
|
|
53647
53210
|
const keys = Object.keys(promisesObj);
|
|
@@ -53919,11 +53482,11 @@ function aborted(x$1, startIndex = 0) {
|
|
|
53919
53482
|
for (let i$2 = startIndex; i$2 < x$1.issues.length; i$2++) if (x$1.issues[i$2]?.continue !== true) return true;
|
|
53920
53483
|
return false;
|
|
53921
53484
|
}
|
|
53922
|
-
function prefixIssues(path$
|
|
53485
|
+
function prefixIssues(path$12, issues) {
|
|
53923
53486
|
return issues.map((iss) => {
|
|
53924
53487
|
var _a$2;
|
|
53925
53488
|
(_a$2 = iss).path ?? (_a$2.path = []);
|
|
53926
|
-
iss.path.unshift(path$
|
|
53489
|
+
iss.path.unshift(path$12);
|
|
53927
53490
|
return iss;
|
|
53928
53491
|
});
|
|
53929
53492
|
}
|
|
@@ -54040,13 +53603,13 @@ function treeifyError(error$41, _mapper) {
|
|
|
54040
53603
|
return issue$1.message;
|
|
54041
53604
|
};
|
|
54042
53605
|
const result = { errors: [] };
|
|
54043
|
-
const processError = (error$42, path$
|
|
53606
|
+
const processError = (error$42, path$12 = []) => {
|
|
54044
53607
|
var _a$2, _b$1;
|
|
54045
53608
|
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
53609
|
else if (issue$1.code === "invalid_key") processError({ issues: issue$1.issues }, issue$1.path);
|
|
54047
53610
|
else if (issue$1.code === "invalid_element") processError({ issues: issue$1.issues }, issue$1.path);
|
|
54048
53611
|
else {
|
|
54049
|
-
const fullpath = [...path$
|
|
53612
|
+
const fullpath = [...path$12, ...issue$1.path];
|
|
54050
53613
|
if (fullpath.length === 0) {
|
|
54051
53614
|
result.errors.push(mapper(issue$1));
|
|
54052
53615
|
continue;
|
|
@@ -54107,8 +53670,8 @@ function treeifyError(error$41, _mapper) {
|
|
|
54107
53670
|
*/
|
|
54108
53671
|
function toDotPath(_path) {
|
|
54109
53672
|
const segs = [];
|
|
54110
|
-
const path$
|
|
54111
|
-
for (const seg of path$
|
|
53673
|
+
const path$12 = _path.map((seg) => typeof seg === "object" ? seg.key : seg);
|
|
53674
|
+
for (const seg of path$12) if (typeof seg === "number") segs.push(`[${seg}]`);
|
|
54112
53675
|
else if (typeof seg === "symbol") segs.push(`[${JSON.stringify(String(seg))}]`);
|
|
54113
53676
|
else if (/[^\w$]/.test(seg)) segs.push(`[${JSON.stringify(seg)}]`);
|
|
54114
53677
|
else {
|
|
@@ -54255,9 +53818,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
53818
|
/** Returns a regex for validating an RFC 9562/4122 UUID.
|
|
54256
53819
|
*
|
|
54257
53820
|
* @param version Optionally specify a version 1-8. If no version is specified, all versions are supported. */
|
|
54258
|
-
const uuid$1 = (version$
|
|
54259
|
-
if (!version$
|
|
54260
|
-
return /* @__PURE__ */ new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${version$
|
|
53821
|
+
const uuid$1 = (version$2) => {
|
|
53822
|
+
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)$/;
|
|
53823
|
+
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
53824
|
};
|
|
54262
53825
|
const uuid4 = /* @__PURE__ */ uuid$1(4);
|
|
54263
53826
|
const uuid6 = /* @__PURE__ */ uuid$1(6);
|
|
@@ -64018,9 +63581,9 @@ const sync = async (basePath, outDir) => {
|
|
|
64018
63581
|
second_index = 0;
|
|
64019
63582
|
} else second_index += 1;
|
|
64020
63583
|
const hash = createHash("sha256").update(content$2).digest("hex").slice(0, 6);
|
|
64021
|
-
const name$
|
|
63584
|
+
const name$1 = `${first_index}`.padStart(name_len, "0") + "-" + `${second_index}`.padStart(name_len, "0") + `.${hash}.md`;
|
|
64022
63585
|
return {
|
|
64023
|
-
name: name$
|
|
63586
|
+
name: name$1,
|
|
64024
63587
|
content: content$2
|
|
64025
63588
|
};
|
|
64026
63589
|
});
|
|
@@ -64030,13 +63593,68 @@ const sync = async (basePath, outDir) => {
|
|
|
64030
63593
|
const newFileNames = new Set(model_files.map((file$1) => file$1.name));
|
|
64031
63594
|
const rmFileNameList = [...oldFileNames].filter((x$1) => !newFileNames.has(x$1));
|
|
64032
63595
|
const addFileNames = new Set([...newFileNames].filter((x$1) => !oldFileNames.has(x$1)));
|
|
64033
|
-
if (rmFileNameList.length) await Promise.all(rmFileNameList.map((name$
|
|
63596
|
+
if (rmFileNameList.length) await Promise.all(rmFileNameList.map((name$1) => rm(path.join(resolvedOutDir, name$1))));
|
|
64034
63597
|
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
63598
|
console.log(blue((/* @__PURE__ */ new Date()).toLocaleTimeString()), green("sync"), path.relative(process.cwd(), basePath));
|
|
64036
63599
|
};
|
|
64037
63600
|
|
|
64038
63601
|
//#endregion
|
|
64039
|
-
//#region ../dev/dist/google-aistudio/
|
|
63602
|
+
//#region ../dev/dist/google-aistudio/node/index.js
|
|
63603
|
+
const doGoogleAiStudioAutomation = (dir = process.cwd()) => {
|
|
63604
|
+
const watcher$1 = fs.watch(dir);
|
|
63605
|
+
const handle = func_debounce(async () => {
|
|
63606
|
+
const names = fs.readdirSync(dir);
|
|
63607
|
+
const contentNames = names.filter((name$1) => name$1.endsWith(".contents.json"));
|
|
63608
|
+
for (const contentFilename of contentNames) {
|
|
63609
|
+
const contentFilepath = path.join(dir, contentFilename);
|
|
63610
|
+
const basename$1 = contentFilename.replace(".contents.json", "");
|
|
63611
|
+
await parseContent(basename$1, contentFilepath, names).catch(console.error);
|
|
63612
|
+
}
|
|
63613
|
+
}, 200);
|
|
63614
|
+
const parseContent = async (basename$1, contentFilepath, filenames) => {
|
|
63615
|
+
const fileData = await zContentSchema.parse(JSON.parse(fs.readFileSync(contentFilepath, "utf-8")));
|
|
63616
|
+
const { contents } = fileData.generateContentParameters;
|
|
63617
|
+
const latestContent = contents.at(-1);
|
|
63618
|
+
if (!latestContent) return;
|
|
63619
|
+
if (latestContent.role !== "user") return;
|
|
63620
|
+
console.log("QAQ latestContent", latestContent);
|
|
63621
|
+
const functionResponsePart = latestContent.parts.find((p$1) => "functionResponse" in p$1);
|
|
63622
|
+
if (!functionResponsePart) return;
|
|
63623
|
+
if (functionResponsePart.functionResponse.response !== "") return;
|
|
63624
|
+
const modelContent = contents.findLast((content$2) => {
|
|
63625
|
+
return content$2.role === "model" && content$2.parts.find((p$1) => "functionCall" in p$1);
|
|
63626
|
+
});
|
|
63627
|
+
if (!modelContent) return;
|
|
63628
|
+
const functionCallPart = modelContent.parts.find((p$1) => "functionCall" in p$1)?.functionCall;
|
|
63629
|
+
if (!functionCallPart) return;
|
|
63630
|
+
const modelIndex = contents.indexOf(modelContent);
|
|
63631
|
+
const hash = createHash("sha256").update(`INDEX:${modelIndex}`).update(JSON.stringify(modelContent)).digest("hex").slice(0, 8);
|
|
63632
|
+
const taskFilename = `${basename$1}.${functionCallPart.name}.${modelIndex}-${hash}.function_call.json`;
|
|
63633
|
+
if (filenames.includes(taskFilename)) return;
|
|
63634
|
+
for (const scriptFilename of [`${functionCallPart.name}.function_call.js`, `${functionCallPart.name}.function_call.ts`]) {
|
|
63635
|
+
const scriptFilepath = path.join(dir, scriptFilename);
|
|
63636
|
+
if (fs.existsSync(scriptFilepath)) {
|
|
63637
|
+
const { functionCall } = await import(pathToFileURL(scriptFilepath).href);
|
|
63638
|
+
const input = JSON.parse(functionCallPart.parameters);
|
|
63639
|
+
const output = await functionCall(input);
|
|
63640
|
+
console.log("QAQ output", output);
|
|
63641
|
+
console.log("WRITE TASK FILE:", taskFilename);
|
|
63642
|
+
fs.writeFileSync(path.join(dir, taskFilename), JSON.stringify({
|
|
63643
|
+
input,
|
|
63644
|
+
output
|
|
63645
|
+
}, null, 2));
|
|
63646
|
+
}
|
|
63647
|
+
}
|
|
63648
|
+
};
|
|
63649
|
+
watcher$1.on("change", (eventType) => {
|
|
63650
|
+
if (eventType === "delete" || eventType === "unlink") return;
|
|
63651
|
+
handle();
|
|
63652
|
+
});
|
|
63653
|
+
handle();
|
|
63654
|
+
};
|
|
63655
|
+
|
|
63656
|
+
//#endregion
|
|
63657
|
+
//#region ../dev/dist/google-aistudio/jixo/index.js
|
|
64040
63658
|
/**
|
|
64041
63659
|
* 封装了 sync 命令的核心执行逻辑
|
|
64042
63660
|
* @param args - 命令行参数,符合 yargs 解析后的结构
|
|
@@ -64046,19 +63664,8 @@ const doSync = (args) => {
|
|
|
64046
63664
|
const targetPath = zod_default.string().safeParse(args._[0]).data ?? process.cwd();
|
|
64047
63665
|
await sync(targetPath, args.outDir);
|
|
64048
63666
|
}, { once: !args.watch });
|
|
64049
|
-
if (args.watch) console.log("\nWatching for file changes... Press Ctrl+C to exit.");
|
|
63667
|
+
if (args.watch) console.log(gray("\nWatching for file changes... Press Ctrl+C to exit."));
|
|
64050
63668
|
};
|
|
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"
|
|
64058
|
-
}
|
|
64059
|
-
});
|
|
64060
|
-
doSync(args);
|
|
64061
|
-
}
|
|
64062
63669
|
|
|
64063
63670
|
//#endregion
|
|
64064
63671
|
//#region src/commands/google-aistudio.ts
|
|
@@ -64088,6 +63695,19 @@ const syncCommand = {
|
|
|
64088
63695
|
doSync(optionsForDoSync);
|
|
64089
63696
|
}
|
|
64090
63697
|
};
|
|
63698
|
+
const browserCommand = {
|
|
63699
|
+
command: "browser [dir]",
|
|
63700
|
+
aliases: ["B"],
|
|
63701
|
+
describe: "browser-kit for aistudio.google.com",
|
|
63702
|
+
builder: (yargs) => yargs.positional("dir", {
|
|
63703
|
+
describe: "Directory for aistudio output contents",
|
|
63704
|
+
type: "string",
|
|
63705
|
+
default: process.cwd()
|
|
63706
|
+
}),
|
|
63707
|
+
handler: async (argv) => {
|
|
63708
|
+
doGoogleAiStudioAutomation(argv.dir);
|
|
63709
|
+
}
|
|
63710
|
+
};
|
|
64091
63711
|
/**
|
|
64092
63712
|
* @jixo/cli google-aistudio
|
|
64093
63713
|
*
|
|
@@ -64095,10 +63715,14 @@ const syncCommand = {
|
|
|
64095
63715
|
*/
|
|
64096
63716
|
const googleAistudioCommand = {
|
|
64097
63717
|
command: "google-aistudio <command>",
|
|
64098
|
-
aliases: [
|
|
63718
|
+
aliases: [
|
|
63719
|
+
"GO",
|
|
63720
|
+
"Go",
|
|
63721
|
+
"go"
|
|
63722
|
+
],
|
|
64099
63723
|
describe: "Commands for Google AI Studio integration",
|
|
64100
63724
|
builder: (yargs) => {
|
|
64101
|
-
return yargs.command(syncCommand).demandCommand(1, "You must provide a sub-command for 'google-aistudio'.");
|
|
63725
|
+
return yargs.command(syncCommand).command(browserCommand).demandCommand(1, "You must provide a sub-command for 'google-aistudio'.");
|
|
64102
63726
|
},
|
|
64103
63727
|
handler: () => {}
|
|
64104
63728
|
};
|
|
@@ -64114,10 +63738,6 @@ const runCli = async (args = process.argv) => {
|
|
|
64114
63738
|
console.log(" " + "─".repeat(Math.max(4, process.stdout.columns - 2)));
|
|
64115
63739
|
}
|
|
64116
63740
|
};
|
|
64117
|
-
const tryRunCli$1 = (importMeta, args) => {
|
|
64118
|
-
if (import_meta_ponyfill_esmodule(importMeta).main) runCli(args);
|
|
64119
|
-
};
|
|
64120
|
-
tryRunCli$1(import.meta);
|
|
64121
63741
|
|
|
64122
63742
|
//#endregion
|
|
64123
63743
|
//#region src/index.ts
|