@ariestools/toolchain 10.0.6 → 10.0.7
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/README.md +12 -0
- package/dist/actions/index.d.ts +1 -0
- package/dist/actions/index.d.ts.map +1 -1
- package/dist/actions/node-lint.d.ts +3 -1
- package/dist/actions/node-lint.d.ts.map +1 -1
- package/dist/actions/npm-org/fetchOrgPackages.d.ts +17 -0
- package/dist/actions/npm-org/fetchOrgPackages.d.ts.map +1 -0
- package/dist/actions/npm-org/index.d.ts +7 -0
- package/dist/actions/npm-org/index.d.ts.map +1 -0
- package/dist/actions/npm-org/lint.d.ts +3 -0
- package/dist/actions/npm-org/lint.d.ts.map +1 -0
- package/dist/actions/npm-org/org.d.ts +4 -0
- package/dist/actions/npm-org/org.d.ts.map +1 -0
- package/dist/actions/npm-org/rules.d.ts +4 -0
- package/dist/actions/npm-org/rules.d.ts.map +1 -0
- package/dist/actions/npm-org/scanStatus.d.ts +11 -0
- package/dist/actions/npm-org/scanStatus.d.ts.map +1 -0
- package/dist/actions/npm-org/snapshots.d.ts +12 -0
- package/dist/actions/npm-org/snapshots.d.ts.map +1 -0
- package/dist/actions/npm-org/types.d.ts +59 -0
- package/dist/actions/npm-org/types.d.ts.map +1 -0
- package/dist/actions/package/compile/XyConfig.d.ts +38 -0
- package/dist/actions/package/compile/XyConfig.d.ts.map +1 -1
- package/dist/actions/package-lint-engines.d.ts +5 -1
- package/dist/actions/package-lint-engines.d.ts.map +1 -1
- package/dist/actions/package-lint.d.ts +3 -0
- package/dist/actions/package-lint.d.ts.map +1 -1
- package/dist/actions/ruleCatalog.d.ts +1 -0
- package/dist/actions/ruleCatalog.d.ts.map +1 -1
- package/dist/bin/package/build.mjs +8 -2
- package/dist/bin/package/build.mjs.map +1 -1
- package/dist/bin/package/clean.mjs +8 -2
- package/dist/bin/package/clean.mjs.map +1 -1
- package/dist/bin/package/compile.mjs +2 -2
- package/dist/bin/package/compile.mjs.map +1 -1
- package/dist/bin/package/publint.mjs +8 -2
- package/dist/bin/package/publint.mjs.map +1 -1
- package/dist/bin/package/recompile.mjs +8 -2
- package/dist/bin/package/recompile.mjs.map +1 -1
- package/dist/bin/package/sync-layout.mjs +2 -2
- package/dist/bin/package/sync-layout.mjs.map +1 -1
- package/dist/bin/skills.mjs +292 -164
- package/dist/bin/skills.mjs.map +1 -1
- package/dist/bin/xy.mjs +807 -170
- package/dist/bin/xy.mjs.map +1 -1
- package/dist/bin/xyex.mjs +807 -170
- package/dist/bin/xyex.mjs.map +1 -1
- package/dist/lib/latestVersions.d.ts +6 -2
- package/dist/lib/latestVersions.d.ts.map +1 -1
- package/dist/lib/ruleCommandRegistry.d.ts +6 -0
- package/dist/lib/ruleCommandRegistry.d.ts.map +1 -1
- package/dist/lib/secure/downloadDiskCache.d.ts +15 -0
- package/dist/lib/secure/downloadDiskCache.d.ts.map +1 -0
- package/dist/lib/secure/downloadGate.d.ts +18 -0
- package/dist/lib/secure/downloadGate.d.ts.map +1 -0
- package/dist/lib/secure/fetchPackageSecurityMetadata.d.ts +31 -3
- package/dist/lib/secure/fetchPackageSecurityMetadata.d.ts.map +1 -1
- package/dist/lib/secure/index.d.ts +2 -0
- package/dist/lib/secure/index.d.ts.map +1 -1
- package/dist/lib/secure/interfaces.d.ts +2 -0
- package/dist/lib/secure/interfaces.d.ts.map +1 -1
- package/dist/xy/common/index.d.ts.map +1 -1
- package/dist/xy/common/npm-org/index.d.ts +5 -0
- package/dist/xy/common/npm-org/index.d.ts.map +1 -0
- package/dist/xy/common/npm-org/lintCommand.d.ts +3 -0
- package/dist/xy/common/npm-org/lintCommand.d.ts.map +1 -0
- package/dist/xy/stability.d.ts +2 -0
- package/dist/xy/stability.d.ts.map +1 -1
- package/package.json +12 -12
package/dist/bin/skills.mjs
CHANGED
|
@@ -54,7 +54,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
54
54
|
};
|
|
55
55
|
var __require$1 = /* #__PURE__ */ (() => createRequire(import.meta.url))();
|
|
56
56
|
//#endregion
|
|
57
|
-
//#region ../../node_modules/.pnpm/skills@1.5.
|
|
57
|
+
//#region ../../node_modules/.pnpm/skills@1.5.26/node_modules/skills/dist/_chunks/rolldown-runtime.mjs
|
|
58
58
|
var __create, __defProp$1, __getOwnPropDesc$1, __getOwnPropNames$1, __getProtoOf, __hasOwnProp$1, __commonJSMin, __copyProps$1, __toESM, __require;
|
|
59
59
|
var init_rolldown_runtime = __esmMin((() => {
|
|
60
60
|
__create = Object.create;
|
|
@@ -81,7 +81,7 @@ var init_rolldown_runtime = __esmMin((() => {
|
|
|
81
81
|
__require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
|
|
82
82
|
}));
|
|
83
83
|
//#endregion
|
|
84
|
-
//#region ../../node_modules/.pnpm/skills@1.5.
|
|
84
|
+
//#region ../../node_modules/.pnpm/skills@1.5.26/node_modules/skills/dist/_chunks/libs/@clack/core.mjs
|
|
85
85
|
function wrapAnsi(string, columns, options) {
|
|
86
86
|
return String(string).normalize().split(CRLF_OR_LF).map((line) => exec(line, columns, options)).join("\n");
|
|
87
87
|
}
|
|
@@ -780,7 +780,7 @@ var init_core = __esmMin((() => {
|
|
|
780
780
|
};
|
|
781
781
|
}));
|
|
782
782
|
//#endregion
|
|
783
|
-
//#region ../../node_modules/.pnpm/skills@1.5.
|
|
783
|
+
//#region ../../node_modules/.pnpm/skills@1.5.26/node_modules/skills/dist/_chunks/libs/@clack/prompts.mjs
|
|
784
784
|
function isUnicodeSupported() {
|
|
785
785
|
if (process$1.platform !== "win32") return process$1.env.TERM !== "linux";
|
|
786
786
|
return Boolean(process$1.env.CI) || Boolean(process$1.env.WT_SESSION) || Boolean(process$1.env.TERMINUS_SUBLIME) || process$1.env.ConEmuTask === "{cmd::Cmder}" || process$1.env.TERM_PROGRAM === "Terminus-Sublime" || process$1.env.TERM_PROGRAM === "vscode" || process$1.env.TERM === "xterm-256color" || process$1.env.TERM === "alacritty" || process$1.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
@@ -1227,7 +1227,7 @@ ${b}
|
|
|
1227
1227
|
`${styleText("gray", S_BAR$1)}`;
|
|
1228
1228
|
}));
|
|
1229
1229
|
//#endregion
|
|
1230
|
-
//#region ../../node_modules/.pnpm/skills@1.5.
|
|
1230
|
+
//#region ../../node_modules/.pnpm/skills@1.5.26/node_modules/skills/dist/_chunks/libs/picocolors.mjs
|
|
1231
1231
|
var require_picocolors;
|
|
1232
1232
|
var init_picocolors = __esmMin((() => {
|
|
1233
1233
|
init_rolldown_runtime();
|
|
@@ -1301,7 +1301,7 @@ var init_picocolors = __esmMin((() => {
|
|
|
1301
1301
|
}));
|
|
1302
1302
|
}));
|
|
1303
1303
|
//#endregion
|
|
1304
|
-
//#region ../../node_modules/.pnpm/skills@1.5.
|
|
1304
|
+
//#region ../../node_modules/.pnpm/skills@1.5.26/node_modules/skills/dist/_chunks/libs/@kwsites/file-exists.mjs
|
|
1305
1305
|
var require_ms, require_common, require_browser, require_node, require_src$1, require_src, require_dist$3;
|
|
1306
1306
|
var init_file_exists = __esmMin((() => {
|
|
1307
1307
|
init_rolldown_runtime();
|
|
@@ -1867,7 +1867,7 @@ var init_file_exists = __esmMin((() => {
|
|
|
1867
1867
|
}));
|
|
1868
1868
|
}));
|
|
1869
1869
|
//#endregion
|
|
1870
|
-
//#region ../../node_modules/.pnpm/skills@1.5.
|
|
1870
|
+
//#region ../../node_modules/.pnpm/skills@1.5.26/node_modules/skills/dist/_chunks/libs/@simple-git/args-pathspec.mjs
|
|
1871
1871
|
function c$1(...n) {
|
|
1872
1872
|
const e = new String(n);
|
|
1873
1873
|
return t.set(e, n), e;
|
|
@@ -1883,7 +1883,7 @@ var init_args_pathspec = __esmMin((() => {
|
|
|
1883
1883
|
t = /* @__PURE__ */ new WeakMap();
|
|
1884
1884
|
}));
|
|
1885
1885
|
//#endregion
|
|
1886
|
-
//#region ../../node_modules/.pnpm/skills@1.5.
|
|
1886
|
+
//#region ../../node_modules/.pnpm/skills@1.5.26/node_modules/skills/dist/_chunks/libs/@kwsites/promise-deferred.mjs
|
|
1887
1887
|
var require_dist$2;
|
|
1888
1888
|
var init_promise_deferred = __esmMin((() => {
|
|
1889
1889
|
init_rolldown_runtime();
|
|
@@ -1924,7 +1924,7 @@ var init_promise_deferred = __esmMin((() => {
|
|
|
1924
1924
|
}));
|
|
1925
1925
|
}));
|
|
1926
1926
|
//#endregion
|
|
1927
|
-
//#region ../../node_modules/.pnpm/skills@1.5.
|
|
1927
|
+
//#region ../../node_modules/.pnpm/skills@1.5.26/node_modules/skills/dist/_chunks/libs/@simple-git/argv-parser.mjs
|
|
1928
1928
|
function* U$1(e, t) {
|
|
1929
1929
|
const n = t === "global";
|
|
1930
1930
|
for (const o of e) o.isGlobal === n && (yield o);
|
|
@@ -2399,7 +2399,7 @@ var init_argv_parser = __esmMin((() => {
|
|
|
2399
2399
|
};
|
|
2400
2400
|
}));
|
|
2401
2401
|
//#endregion
|
|
2402
|
-
//#region ../../node_modules/.pnpm/skills@1.5.
|
|
2402
|
+
//#region ../../node_modules/.pnpm/skills@1.5.26/node_modules/skills/dist/_chunks/libs/simple-git.mjs
|
|
2403
2403
|
function asFunction(source) {
|
|
2404
2404
|
if (typeof source !== "function") return NOOP;
|
|
2405
2405
|
return source;
|
|
@@ -5909,7 +5909,7 @@ var init_simple_git = __esmMin((() => {
|
|
|
5909
5909
|
esm_default = gitInstanceFactory;
|
|
5910
5910
|
}));
|
|
5911
5911
|
//#endregion
|
|
5912
|
-
//#region ../../node_modules/.pnpm/skills@1.5.
|
|
5912
|
+
//#region ../../node_modules/.pnpm/skills@1.5.26/node_modules/skills/dist/_chunks/libs/xdg-basedir.mjs
|
|
5913
5913
|
var homeDirectory, env, xdgData, xdgConfig, xdgDataDirectories, xdgConfigDirectories;
|
|
5914
5914
|
var init_xdg_basedir = __esmMin((() => {
|
|
5915
5915
|
homeDirectory = os.homedir();
|
|
@@ -5925,7 +5925,7 @@ var init_xdg_basedir = __esmMin((() => {
|
|
|
5925
5925
|
if (xdgConfig) xdgConfigDirectories.unshift(xdgConfig);
|
|
5926
5926
|
}));
|
|
5927
5927
|
//#endregion
|
|
5928
|
-
//#region ../../node_modules/.pnpm/skills@1.5.
|
|
5928
|
+
//#region ../../node_modules/.pnpm/skills@1.5.26/node_modules/skills/dist/_chunks/libs/@vercel/detect-agent.mjs
|
|
5929
5929
|
var require_dist$1;
|
|
5930
5930
|
var init_detect_agent = __esmMin((() => {
|
|
5931
5931
|
init_rolldown_runtime();
|
|
@@ -6071,7 +6071,7 @@ var init_detect_agent = __esmMin((() => {
|
|
|
6071
6071
|
}));
|
|
6072
6072
|
}));
|
|
6073
6073
|
//#endregion
|
|
6074
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
6074
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/identity.js
|
|
6075
6075
|
var require_identity = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
6076
6076
|
const ALIAS = Symbol.for("yaml.alias");
|
|
6077
6077
|
const DOC = Symbol.for("yaml.document");
|
|
@@ -6121,7 +6121,7 @@ var require_identity = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
6121
6121
|
exports.isSeq = isSeq;
|
|
6122
6122
|
}));
|
|
6123
6123
|
//#endregion
|
|
6124
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
6124
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/visit.js
|
|
6125
6125
|
var require_visit = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
6126
6126
|
var identity = require_identity();
|
|
6127
6127
|
const BREAK = Symbol("break visit");
|
|
@@ -6312,7 +6312,7 @@ var require_visit = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
6312
6312
|
exports.visitAsync = visitAsync;
|
|
6313
6313
|
}));
|
|
6314
6314
|
//#endregion
|
|
6315
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
6315
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/directives.js
|
|
6316
6316
|
var require_directives = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
6317
6317
|
var identity = require_identity();
|
|
6318
6318
|
var visit = require_visit();
|
|
@@ -6476,7 +6476,7 @@ var require_directives = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
6476
6476
|
exports.Directives = Directives;
|
|
6477
6477
|
}));
|
|
6478
6478
|
//#endregion
|
|
6479
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
6479
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/anchors.js
|
|
6480
6480
|
var require_anchors = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
6481
6481
|
var identity = require_identity();
|
|
6482
6482
|
var visit = require_visit();
|
|
@@ -6543,7 +6543,7 @@ var require_anchors = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
6543
6543
|
exports.findNewAnchor = findNewAnchor;
|
|
6544
6544
|
}));
|
|
6545
6545
|
//#endregion
|
|
6546
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
6546
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/applyReviver.js
|
|
6547
6547
|
var require_applyReviver = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
6548
6548
|
/**
|
|
6549
6549
|
* Applies the JSON.parse reviver algorithm as defined in the ECMA-262 spec,
|
|
@@ -6585,7 +6585,7 @@ var require_applyReviver = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
6585
6585
|
exports.applyReviver = applyReviver;
|
|
6586
6586
|
}));
|
|
6587
6587
|
//#endregion
|
|
6588
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
6588
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/toJS.js
|
|
6589
6589
|
var require_toJS = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
6590
6590
|
var identity = require_identity();
|
|
6591
6591
|
/**
|
|
@@ -6622,7 +6622,7 @@ var require_toJS = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
6622
6622
|
exports.toJS = toJS;
|
|
6623
6623
|
}));
|
|
6624
6624
|
//#endregion
|
|
6625
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
6625
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Node.js
|
|
6626
6626
|
var require_Node = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
6627
6627
|
var applyReviver = require_applyReviver();
|
|
6628
6628
|
var identity = require_identity();
|
|
@@ -6656,7 +6656,7 @@ var require_Node = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
6656
6656
|
exports.NodeBase = NodeBase;
|
|
6657
6657
|
}));
|
|
6658
6658
|
//#endregion
|
|
6659
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
6659
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Alias.js
|
|
6660
6660
|
var require_Alias = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
6661
6661
|
var anchors = require_anchors();
|
|
6662
6662
|
var visit = require_visit();
|
|
@@ -6691,29 +6691,31 @@ var require_Alias = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
6691
6691
|
if (node === this) break;
|
|
6692
6692
|
if (node.anchor === this.source) found = node;
|
|
6693
6693
|
}
|
|
6694
|
+
if (found && ctx) {
|
|
6695
|
+
const { anchors, doc, maxAliasCount } = ctx;
|
|
6696
|
+
let data = anchors.get(found);
|
|
6697
|
+
if (!data) {
|
|
6698
|
+
toJS.toJS(found, null, ctx);
|
|
6699
|
+
data = anchors.get(found);
|
|
6700
|
+
}
|
|
6701
|
+
/* istanbul ignore if */
|
|
6702
|
+
if (data?.res === void 0) throw new ReferenceError("This should not happen: Alias anchor was not resolved?");
|
|
6703
|
+
if (maxAliasCount >= 0) {
|
|
6704
|
+
data.count += 1;
|
|
6705
|
+
if (data.aliasCount === 0) data.aliasCount = getAliasCount(doc, found, anchors);
|
|
6706
|
+
if (data.count * data.aliasCount > maxAliasCount) throw new ReferenceError("Excessive alias count indicates a resource exhaustion attack");
|
|
6707
|
+
}
|
|
6708
|
+
}
|
|
6694
6709
|
return found;
|
|
6695
6710
|
}
|
|
6696
6711
|
toJSON(_arg, ctx) {
|
|
6697
6712
|
if (!ctx) return { source: this.source };
|
|
6698
|
-
const
|
|
6699
|
-
const source = this.resolve(doc, ctx);
|
|
6713
|
+
const source = this.resolve(ctx.doc, ctx);
|
|
6700
6714
|
if (!source) {
|
|
6701
6715
|
const msg = `Unresolved alias (the anchor must be set before the alias): ${this.source}`;
|
|
6702
6716
|
throw new ReferenceError(msg);
|
|
6703
6717
|
}
|
|
6704
|
-
|
|
6705
|
-
if (!data) {
|
|
6706
|
-
toJS.toJS(source, null, ctx);
|
|
6707
|
-
data = anchors.get(source);
|
|
6708
|
-
}
|
|
6709
|
-
/* istanbul ignore if */
|
|
6710
|
-
if (data?.res === void 0) throw new ReferenceError("This should not happen: Alias anchor was not resolved?");
|
|
6711
|
-
if (maxAliasCount >= 0) {
|
|
6712
|
-
data.count += 1;
|
|
6713
|
-
if (data.aliasCount === 0) data.aliasCount = getAliasCount(doc, source, anchors);
|
|
6714
|
-
if (data.count * data.aliasCount > maxAliasCount) throw new ReferenceError("Excessive alias count indicates a resource exhaustion attack");
|
|
6715
|
-
}
|
|
6716
|
-
return data.res;
|
|
6718
|
+
return ctx.anchors.get(source).res;
|
|
6717
6719
|
}
|
|
6718
6720
|
toString(ctx, _onComment, _onChompKeep) {
|
|
6719
6721
|
const src = `*${this.source}`;
|
|
@@ -6750,7 +6752,7 @@ var require_Alias = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
6750
6752
|
exports.Alias = Alias;
|
|
6751
6753
|
}));
|
|
6752
6754
|
//#endregion
|
|
6753
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
6755
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Scalar.js
|
|
6754
6756
|
var require_Scalar = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
6755
6757
|
var identity = require_identity();
|
|
6756
6758
|
var Node = require_Node();
|
|
@@ -6777,7 +6779,7 @@ var require_Scalar = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
6777
6779
|
exports.isScalarValue = isScalarValue;
|
|
6778
6780
|
}));
|
|
6779
6781
|
//#endregion
|
|
6780
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
6782
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/createNode.js
|
|
6781
6783
|
var require_createNode = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
6782
6784
|
var Alias = require_Alias();
|
|
6783
6785
|
var identity = require_identity();
|
|
@@ -6840,7 +6842,7 @@ var require_createNode = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
6840
6842
|
exports.createNode = createNode;
|
|
6841
6843
|
}));
|
|
6842
6844
|
//#endregion
|
|
6843
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
6845
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Collection.js
|
|
6844
6846
|
var require_Collection = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
6845
6847
|
var createNode = require_createNode();
|
|
6846
6848
|
var identity = require_identity();
|
|
@@ -6961,7 +6963,7 @@ var require_Collection = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
6961
6963
|
exports.isEmptyPath = isEmptyPath;
|
|
6962
6964
|
}));
|
|
6963
6965
|
//#endregion
|
|
6964
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
6966
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyComment.js
|
|
6965
6967
|
var require_stringifyComment = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
6966
6968
|
/**
|
|
6967
6969
|
* Stringifies a comment.
|
|
@@ -6981,7 +6983,7 @@ var require_stringifyComment = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
6981
6983
|
exports.stringifyComment = stringifyComment;
|
|
6982
6984
|
}));
|
|
6983
6985
|
//#endregion
|
|
6984
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
6986
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/foldFlowLines.js
|
|
6985
6987
|
var require_foldFlowLines = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
6986
6988
|
const FOLD_FLOW = "flow";
|
|
6987
6989
|
const FOLD_BLOCK = "block";
|
|
@@ -7101,7 +7103,7 @@ var require_foldFlowLines = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
7101
7103
|
exports.foldFlowLines = foldFlowLines;
|
|
7102
7104
|
}));
|
|
7103
7105
|
//#endregion
|
|
7104
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
7106
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyString.js
|
|
7105
7107
|
var require_stringifyString = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
7106
7108
|
var Scalar = require_Scalar();
|
|
7107
7109
|
var foldFlowLines = require_foldFlowLines();
|
|
@@ -7325,7 +7327,7 @@ var require_stringifyString = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
7325
7327
|
exports.stringifyString = stringifyString;
|
|
7326
7328
|
}));
|
|
7327
7329
|
//#endregion
|
|
7328
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
7330
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringify.js
|
|
7329
7331
|
var require_stringify = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
7330
7332
|
var anchors = require_anchors();
|
|
7331
7333
|
var identity = require_identity();
|
|
@@ -7433,7 +7435,7 @@ var require_stringify = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
7433
7435
|
exports.stringify = stringify;
|
|
7434
7436
|
}));
|
|
7435
7437
|
//#endregion
|
|
7436
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
7438
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyPair.js
|
|
7437
7439
|
var require_stringifyPair = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
7438
7440
|
var identity = require_identity();
|
|
7439
7441
|
var Scalar = require_Scalar();
|
|
@@ -7530,7 +7532,7 @@ var require_stringifyPair = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
7530
7532
|
exports.stringifyPair = stringifyPair;
|
|
7531
7533
|
}));
|
|
7532
7534
|
//#endregion
|
|
7533
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
7535
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/log.js
|
|
7534
7536
|
var require_log = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
7535
7537
|
var node_process$2 = __require$1("process");
|
|
7536
7538
|
function debug(logLevel, ...messages) {
|
|
@@ -7546,7 +7548,7 @@ var require_log = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
7546
7548
|
exports.warn = warn;
|
|
7547
7549
|
}));
|
|
7548
7550
|
//#endregion
|
|
7549
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
7551
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/merge.js
|
|
7550
7552
|
var require_merge = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
7551
7553
|
var identity = require_identity();
|
|
7552
7554
|
var Scalar = require_Scalar();
|
|
@@ -7589,7 +7591,7 @@ var require_merge = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
7589
7591
|
exports.merge = merge;
|
|
7590
7592
|
}));
|
|
7591
7593
|
//#endregion
|
|
7592
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
7594
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/addPairToJSMap.js
|
|
7593
7595
|
var require_addPairToJSMap = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
7594
7596
|
var log = require_log();
|
|
7595
7597
|
var merge = require_merge();
|
|
@@ -7640,7 +7642,7 @@ var require_addPairToJSMap = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
7640
7642
|
exports.addPairToJSMap = addPairToJSMap;
|
|
7641
7643
|
}));
|
|
7642
7644
|
//#endregion
|
|
7643
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
7645
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Pair.js
|
|
7644
7646
|
var require_Pair = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
7645
7647
|
var createNode = require_createNode();
|
|
7646
7648
|
var stringifyPair = require_stringifyPair();
|
|
@@ -7673,7 +7675,7 @@ var require_Pair = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
7673
7675
|
exports.createPair = createPair;
|
|
7674
7676
|
}));
|
|
7675
7677
|
//#endregion
|
|
7676
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
7678
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyCollection.js
|
|
7677
7679
|
var require_stringifyCollection = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
7678
7680
|
var identity = require_identity();
|
|
7679
7681
|
var stringify = require_stringify();
|
|
@@ -7791,7 +7793,7 @@ var require_stringifyCollection = /* @__PURE__ */ __commonJSMin$1(((exports) =>
|
|
|
7791
7793
|
exports.stringifyCollection = stringifyCollection;
|
|
7792
7794
|
}));
|
|
7793
7795
|
//#endregion
|
|
7794
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
7796
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/YAMLMap.js
|
|
7795
7797
|
var require_YAMLMap = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
7796
7798
|
var stringifyCollection = require_stringifyCollection();
|
|
7797
7799
|
var addPairToJSMap = require_addPairToJSMap();
|
|
@@ -7900,7 +7902,7 @@ var require_YAMLMap = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
7900
7902
|
exports.findPair = findPair;
|
|
7901
7903
|
}));
|
|
7902
7904
|
//#endregion
|
|
7903
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
7905
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/map.js
|
|
7904
7906
|
var require_map = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
7905
7907
|
var identity = require_identity();
|
|
7906
7908
|
var YAMLMap = require_YAMLMap();
|
|
@@ -7917,7 +7919,7 @@ var require_map = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
7917
7919
|
};
|
|
7918
7920
|
}));
|
|
7919
7921
|
//#endregion
|
|
7920
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
7922
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/YAMLSeq.js
|
|
7921
7923
|
var require_YAMLSeq = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
7922
7924
|
var createNode = require_createNode();
|
|
7923
7925
|
var stringifyCollection = require_stringifyCollection();
|
|
@@ -8023,7 +8025,7 @@ var require_YAMLSeq = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
8023
8025
|
exports.YAMLSeq = YAMLSeq;
|
|
8024
8026
|
}));
|
|
8025
8027
|
//#endregion
|
|
8026
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
8028
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/seq.js
|
|
8027
8029
|
var require_seq = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
8028
8030
|
var identity = require_identity();
|
|
8029
8031
|
var YAMLSeq = require_YAMLSeq();
|
|
@@ -8040,7 +8042,7 @@ var require_seq = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
8040
8042
|
};
|
|
8041
8043
|
}));
|
|
8042
8044
|
//#endregion
|
|
8043
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
8045
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/string.js
|
|
8044
8046
|
var require_string = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
8045
8047
|
var stringifyString = require_stringifyString();
|
|
8046
8048
|
exports.string = {
|
|
@@ -8055,7 +8057,7 @@ var require_string = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
8055
8057
|
};
|
|
8056
8058
|
}));
|
|
8057
8059
|
//#endregion
|
|
8058
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
8060
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/null.js
|
|
8059
8061
|
var require_null = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
8060
8062
|
var Scalar = require_Scalar();
|
|
8061
8063
|
const nullTag = {
|
|
@@ -8070,7 +8072,7 @@ var require_null = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
8070
8072
|
exports.nullTag = nullTag;
|
|
8071
8073
|
}));
|
|
8072
8074
|
//#endregion
|
|
8073
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
8075
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/bool.js
|
|
8074
8076
|
var require_bool$1 = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
8075
8077
|
var Scalar = require_Scalar();
|
|
8076
8078
|
const boolTag = {
|
|
@@ -8089,7 +8091,7 @@ var require_bool$1 = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
8089
8091
|
exports.boolTag = boolTag;
|
|
8090
8092
|
}));
|
|
8091
8093
|
//#endregion
|
|
8092
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
8094
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyNumber.js
|
|
8093
8095
|
var require_stringifyNumber = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
8094
8096
|
function stringifyNumber({ format, minFractionDigits, tag, value }) {
|
|
8095
8097
|
if (typeof value === "bigint") return String(value);
|
|
@@ -8110,7 +8112,7 @@ var require_stringifyNumber = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
8110
8112
|
exports.stringifyNumber = stringifyNumber;
|
|
8111
8113
|
}));
|
|
8112
8114
|
//#endregion
|
|
8113
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
8115
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/float.js
|
|
8114
8116
|
var require_float$1 = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
8115
8117
|
var Scalar = require_Scalar();
|
|
8116
8118
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -8151,7 +8153,7 @@ var require_float$1 = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
8151
8153
|
exports.floatNaN = floatNaN;
|
|
8152
8154
|
}));
|
|
8153
8155
|
//#endregion
|
|
8154
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
8156
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/int.js
|
|
8155
8157
|
var require_int$1 = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
8156
8158
|
var stringifyNumber = require_stringifyNumber();
|
|
8157
8159
|
const intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -8192,7 +8194,7 @@ var require_int$1 = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
8192
8194
|
exports.intOct = intOct;
|
|
8193
8195
|
}));
|
|
8194
8196
|
//#endregion
|
|
8195
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
8197
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/schema.js
|
|
8196
8198
|
var require_schema$2 = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
8197
8199
|
var map = require_map();
|
|
8198
8200
|
var _null = require_null();
|
|
@@ -8216,7 +8218,7 @@ var require_schema$2 = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
8216
8218
|
];
|
|
8217
8219
|
}));
|
|
8218
8220
|
//#endregion
|
|
8219
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
8221
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/json/schema.js
|
|
8220
8222
|
var require_schema$1 = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
8221
8223
|
var Scalar = require_Scalar();
|
|
8222
8224
|
var map = require_map();
|
|
@@ -8278,7 +8280,7 @@ var require_schema$1 = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
8278
8280
|
});
|
|
8279
8281
|
}));
|
|
8280
8282
|
//#endregion
|
|
8281
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
8283
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/binary.js
|
|
8282
8284
|
var require_binary = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
8283
8285
|
var node_buffer = __require$1("buffer");
|
|
8284
8286
|
var Scalar = require_Scalar();
|
|
@@ -8334,7 +8336,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
8334
8336
|
};
|
|
8335
8337
|
}));
|
|
8336
8338
|
//#endregion
|
|
8337
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
8339
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
|
|
8338
8340
|
var require_pairs = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
8339
8341
|
var identity = require_identity();
|
|
8340
8342
|
var Pair = require_Pair();
|
|
@@ -8395,7 +8397,7 @@ var require_pairs = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
8395
8397
|
exports.resolvePairs = resolvePairs;
|
|
8396
8398
|
}));
|
|
8397
8399
|
//#endregion
|
|
8398
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
8400
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/omap.js
|
|
8399
8401
|
var require_omap = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
8400
8402
|
var identity = require_identity();
|
|
8401
8403
|
var toJS = require_toJS();
|
|
@@ -8460,7 +8462,7 @@ var require_omap = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
8460
8462
|
exports.omap = omap;
|
|
8461
8463
|
}));
|
|
8462
8464
|
//#endregion
|
|
8463
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
8465
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/bool.js
|
|
8464
8466
|
var require_bool = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
8465
8467
|
var Scalar = require_Scalar();
|
|
8466
8468
|
function boolStringify({ value, source }, ctx) {
|
|
@@ -8487,7 +8489,7 @@ var require_bool = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
8487
8489
|
exports.trueTag = trueTag;
|
|
8488
8490
|
}));
|
|
8489
8491
|
//#endregion
|
|
8490
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
8492
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/float.js
|
|
8491
8493
|
var require_float = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
8492
8494
|
var Scalar = require_Scalar();
|
|
8493
8495
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -8531,7 +8533,7 @@ var require_float = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
8531
8533
|
exports.floatNaN = floatNaN;
|
|
8532
8534
|
}));
|
|
8533
8535
|
//#endregion
|
|
8534
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
8536
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/int.js
|
|
8535
8537
|
var require_int = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
8536
8538
|
var stringifyNumber = require_stringifyNumber();
|
|
8537
8539
|
const intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -8604,7 +8606,7 @@ var require_int = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
8604
8606
|
exports.intOct = intOct;
|
|
8605
8607
|
}));
|
|
8606
8608
|
//#endregion
|
|
8607
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
8609
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/set.js
|
|
8608
8610
|
var require_set = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
8609
8611
|
var identity = require_identity();
|
|
8610
8612
|
var Pair = require_Pair();
|
|
@@ -8673,7 +8675,7 @@ var require_set = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
8673
8675
|
exports.set = set;
|
|
8674
8676
|
}));
|
|
8675
8677
|
//#endregion
|
|
8676
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
8678
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
|
|
8677
8679
|
var require_timestamp = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
8678
8680
|
var stringifyNumber = require_stringifyNumber();
|
|
8679
8681
|
/** Internal types handle bigint as number, because TS can't figure it out. */
|
|
@@ -8756,7 +8758,7 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
8756
8758
|
exports.timestamp = timestamp;
|
|
8757
8759
|
}));
|
|
8758
8760
|
//#endregion
|
|
8759
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
8761
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/schema.js
|
|
8760
8762
|
var require_schema = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
8761
8763
|
var map = require_map();
|
|
8762
8764
|
var _null = require_null();
|
|
@@ -8796,7 +8798,7 @@ var require_schema = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
8796
8798
|
];
|
|
8797
8799
|
}));
|
|
8798
8800
|
//#endregion
|
|
8799
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
8801
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/tags.js
|
|
8800
8802
|
var require_tags = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
8801
8803
|
var map = require_map();
|
|
8802
8804
|
var _null = require_null();
|
|
@@ -8882,7 +8884,7 @@ var require_tags = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
8882
8884
|
exports.getTags = getTags;
|
|
8883
8885
|
}));
|
|
8884
8886
|
//#endregion
|
|
8885
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
8887
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/Schema.js
|
|
8886
8888
|
var require_Schema = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
8887
8889
|
var identity = require_identity();
|
|
8888
8890
|
var map = require_map();
|
|
@@ -8910,7 +8912,7 @@ var require_Schema = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
8910
8912
|
};
|
|
8911
8913
|
}));
|
|
8912
8914
|
//#endregion
|
|
8913
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
8915
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyDocument.js
|
|
8914
8916
|
var require_stringifyDocument = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
8915
8917
|
var identity = require_identity();
|
|
8916
8918
|
var stringify = require_stringify();
|
|
@@ -8972,7 +8974,7 @@ var require_stringifyDocument = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
8972
8974
|
exports.stringifyDocument = stringifyDocument;
|
|
8973
8975
|
}));
|
|
8974
8976
|
//#endregion
|
|
8975
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
8977
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/Document.js
|
|
8976
8978
|
var require_Document = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
8977
8979
|
var Alias = require_Alias();
|
|
8978
8980
|
var Collection = require_Collection();
|
|
@@ -9253,7 +9255,7 @@ var require_Document = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
9253
9255
|
exports.Document = Document;
|
|
9254
9256
|
}));
|
|
9255
9257
|
//#endregion
|
|
9256
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
9258
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/errors.js
|
|
9257
9259
|
var require_errors = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
9258
9260
|
var YAMLError = class extends Error {
|
|
9259
9261
|
constructor(name, pos, code, message) {
|
|
@@ -9306,7 +9308,7 @@ var require_errors = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
9306
9308
|
exports.prettifyError = prettifyError;
|
|
9307
9309
|
}));
|
|
9308
9310
|
//#endregion
|
|
9309
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
9311
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-props.js
|
|
9310
9312
|
var require_resolve_props = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
9311
9313
|
function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
|
|
9312
9314
|
let spaceBefore = false;
|
|
@@ -9413,7 +9415,7 @@ var require_resolve_props = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
9413
9415
|
exports.resolveProps = resolveProps;
|
|
9414
9416
|
}));
|
|
9415
9417
|
//#endregion
|
|
9416
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
9418
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-contains-newline.js
|
|
9417
9419
|
var require_util_contains_newline = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
9418
9420
|
function containsNewline(key) {
|
|
9419
9421
|
if (!key) return null;
|
|
@@ -9442,7 +9444,7 @@ var require_util_contains_newline = /* @__PURE__ */ __commonJSMin$1(((exports) =
|
|
|
9442
9444
|
exports.containsNewline = containsNewline;
|
|
9443
9445
|
}));
|
|
9444
9446
|
//#endregion
|
|
9445
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
9447
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-flow-indent-check.js
|
|
9446
9448
|
var require_util_flow_indent_check = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
9447
9449
|
var utilContainsNewline = require_util_contains_newline();
|
|
9448
9450
|
function flowIndentCheck(indent, fc, onError) {
|
|
@@ -9454,7 +9456,7 @@ var require_util_flow_indent_check = /* @__PURE__ */ __commonJSMin$1(((exports)
|
|
|
9454
9456
|
exports.flowIndentCheck = flowIndentCheck;
|
|
9455
9457
|
}));
|
|
9456
9458
|
//#endregion
|
|
9457
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
9459
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-map-includes.js
|
|
9458
9460
|
var require_util_map_includes = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
9459
9461
|
var identity = require_identity();
|
|
9460
9462
|
function mapIncludes(ctx, items, search) {
|
|
@@ -9466,7 +9468,7 @@ var require_util_map_includes = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
9466
9468
|
exports.mapIncludes = mapIncludes;
|
|
9467
9469
|
}));
|
|
9468
9470
|
//#endregion
|
|
9469
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
9471
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-map.js
|
|
9470
9472
|
var require_resolve_block_map = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
9471
9473
|
var Pair = require_Pair();
|
|
9472
9474
|
var YAMLMap = require_YAMLMap();
|
|
@@ -9554,7 +9556,7 @@ var require_resolve_block_map = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
9554
9556
|
exports.resolveBlockMap = resolveBlockMap;
|
|
9555
9557
|
}));
|
|
9556
9558
|
//#endregion
|
|
9557
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
9559
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-seq.js
|
|
9558
9560
|
var require_resolve_block_seq = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
9559
9561
|
var YAMLSeq = require_YAMLSeq();
|
|
9560
9562
|
var resolveProps = require_resolve_props();
|
|
@@ -9599,7 +9601,7 @@ var require_resolve_block_seq = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
9599
9601
|
exports.resolveBlockSeq = resolveBlockSeq;
|
|
9600
9602
|
}));
|
|
9601
9603
|
//#endregion
|
|
9602
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
9604
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-end.js
|
|
9603
9605
|
var require_resolve_end = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
9604
9606
|
function resolveEnd(end, offset, reqSpace, onError) {
|
|
9605
9607
|
let comment = "";
|
|
@@ -9637,7 +9639,7 @@ var require_resolve_end = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
9637
9639
|
exports.resolveEnd = resolveEnd;
|
|
9638
9640
|
}));
|
|
9639
9641
|
//#endregion
|
|
9640
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
9642
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-flow-collection.js
|
|
9641
9643
|
var require_resolve_flow_collection = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
9642
9644
|
var identity = require_identity();
|
|
9643
9645
|
var Pair = require_Pair();
|
|
@@ -9800,7 +9802,7 @@ var require_resolve_flow_collection = /* @__PURE__ */ __commonJSMin$1(((exports)
|
|
|
9800
9802
|
exports.resolveFlowCollection = resolveFlowCollection;
|
|
9801
9803
|
}));
|
|
9802
9804
|
//#endregion
|
|
9803
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
9805
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-collection.js
|
|
9804
9806
|
var require_compose_collection = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
9805
9807
|
var identity = require_identity();
|
|
9806
9808
|
var Scalar = require_Scalar();
|
|
@@ -9852,7 +9854,7 @@ var require_compose_collection = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
9852
9854
|
exports.composeCollection = composeCollection;
|
|
9853
9855
|
}));
|
|
9854
9856
|
//#endregion
|
|
9855
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
9857
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-scalar.js
|
|
9856
9858
|
var require_resolve_block_scalar = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
9857
9859
|
var Scalar = require_Scalar();
|
|
9858
9860
|
function resolveBlockScalar(ctx, scalar, onError) {
|
|
@@ -10029,7 +10031,7 @@ var require_resolve_block_scalar = /* @__PURE__ */ __commonJSMin$1(((exports) =>
|
|
|
10029
10031
|
exports.resolveBlockScalar = resolveBlockScalar;
|
|
10030
10032
|
}));
|
|
10031
10033
|
//#endregion
|
|
10032
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
10034
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-flow-scalar.js
|
|
10033
10035
|
var require_resolve_flow_scalar = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
10034
10036
|
var Scalar = require_Scalar();
|
|
10035
10037
|
var resolveEnd = require_resolve_end();
|
|
@@ -10099,40 +10101,41 @@ var require_resolve_flow_scalar = /* @__PURE__ */ __commonJSMin$1(((exports) =>
|
|
|
10099
10101
|
case "`": badChar = `reserved character ${source[0]}`;
|
|
10100
10102
|
}
|
|
10101
10103
|
if (badChar) onError(0, "BAD_SCALAR_START", `Plain value cannot start with ${badChar}`);
|
|
10102
|
-
return
|
|
10104
|
+
return unfoldLines(source);
|
|
10103
10105
|
}
|
|
10104
10106
|
function singleQuotedValue(source, onError) {
|
|
10105
10107
|
if (source[source.length - 1] !== "'" || source.length === 1) onError(source.length, "MISSING_CHAR", "Missing closing 'quote");
|
|
10106
|
-
return
|
|
10108
|
+
return unfoldLines(source.slice(1, -1)).replace(/''/g, "'");
|
|
10107
10109
|
}
|
|
10108
|
-
function
|
|
10110
|
+
function unfoldLines(source) {
|
|
10111
|
+
const line = /(.*?)\r?\n/sy;
|
|
10112
|
+
let match = line.exec(source);
|
|
10113
|
+
if (!match) return source;
|
|
10109
10114
|
/**
|
|
10110
|
-
* The negative
|
|
10115
|
+
* The negative lookbehinds in these RegExps are to
|
|
10111
10116
|
* prevent causing a polynomial search time in certain cases.
|
|
10112
10117
|
*
|
|
10113
|
-
* The try-catch is for Safari
|
|
10118
|
+
* The try-catch is for Safari < 16.4 and other old browsers:
|
|
10114
10119
|
* https://caniuse.com/js-regexp-lookbehind
|
|
10115
10120
|
*/
|
|
10116
|
-
let
|
|
10121
|
+
let trimEnd, trimBoth;
|
|
10117
10122
|
try {
|
|
10118
|
-
|
|
10119
|
-
|
|
10123
|
+
trimEnd = new RegExp("(?<![ ])[ ]+$");
|
|
10124
|
+
trimBoth = new RegExp("^[ ]+|(?<![ ])[ ]+$", "g");
|
|
10120
10125
|
} catch {
|
|
10121
|
-
|
|
10122
|
-
|
|
10126
|
+
trimEnd = /[ \t]+$/;
|
|
10127
|
+
trimBoth = /^[ \t]+|[ \t]+$/g;
|
|
10123
10128
|
}
|
|
10124
|
-
let
|
|
10125
|
-
if (!match) return source;
|
|
10126
|
-
let res = match[1];
|
|
10129
|
+
let res = match[1].replace(trimEnd, "");
|
|
10127
10130
|
let sep = " ";
|
|
10128
|
-
let pos =
|
|
10129
|
-
line.lastIndex = pos;
|
|
10131
|
+
let pos = line.lastIndex;
|
|
10130
10132
|
while (match = line.exec(source)) {
|
|
10131
|
-
|
|
10133
|
+
const lm = match[1].replace(trimBoth, "");
|
|
10134
|
+
if (lm === "") {
|
|
10132
10135
|
if (sep === "\n") res += sep;
|
|
10133
10136
|
else sep = "\n";
|
|
10134
10137
|
} else {
|
|
10135
|
-
res += sep +
|
|
10138
|
+
res += sep + lm;
|
|
10136
10139
|
sep = " ";
|
|
10137
10140
|
}
|
|
10138
10141
|
pos = line.lastIndex;
|
|
@@ -10233,7 +10236,7 @@ var require_resolve_flow_scalar = /* @__PURE__ */ __commonJSMin$1(((exports) =>
|
|
|
10233
10236
|
exports.resolveFlowScalar = resolveFlowScalar;
|
|
10234
10237
|
}));
|
|
10235
10238
|
//#endregion
|
|
10236
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
10239
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-scalar.js
|
|
10237
10240
|
var require_compose_scalar = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
10238
10241
|
var identity = require_identity();
|
|
10239
10242
|
var Scalar = require_Scalar();
|
|
@@ -10294,7 +10297,7 @@ var require_compose_scalar = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
10294
10297
|
exports.composeScalar = composeScalar;
|
|
10295
10298
|
}));
|
|
10296
10299
|
//#endregion
|
|
10297
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
10300
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-empty-scalar-position.js
|
|
10298
10301
|
var require_util_empty_scalar_position = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
10299
10302
|
function emptyScalarPosition(offset, before, pos) {
|
|
10300
10303
|
if (before) {
|
|
@@ -10321,7 +10324,7 @@ var require_util_empty_scalar_position = /* @__PURE__ */ __commonJSMin$1(((expor
|
|
|
10321
10324
|
exports.emptyScalarPosition = emptyScalarPosition;
|
|
10322
10325
|
}));
|
|
10323
10326
|
//#endregion
|
|
10324
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
10327
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-node.js
|
|
10325
10328
|
var require_compose_node = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
10326
10329
|
var Alias = require_Alias();
|
|
10327
10330
|
var identity = require_identity();
|
|
@@ -10412,7 +10415,7 @@ var require_compose_node = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
10412
10415
|
exports.composeNode = composeNode;
|
|
10413
10416
|
}));
|
|
10414
10417
|
//#endregion
|
|
10415
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
10418
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-doc.js
|
|
10416
10419
|
var require_compose_doc = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
10417
10420
|
var Document = require_Document();
|
|
10418
10421
|
var composeNode = require_compose_node();
|
|
@@ -10454,7 +10457,7 @@ var require_compose_doc = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
10454
10457
|
exports.composeDoc = composeDoc;
|
|
10455
10458
|
}));
|
|
10456
10459
|
//#endregion
|
|
10457
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
10460
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/composer.js
|
|
10458
10461
|
var require_composer = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
10459
10462
|
var node_process$1 = __require$1("process");
|
|
10460
10463
|
var directives = require_directives();
|
|
@@ -10652,7 +10655,7 @@ var require_composer = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
10652
10655
|
exports.Composer = Composer;
|
|
10653
10656
|
}));
|
|
10654
10657
|
//#endregion
|
|
10655
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
10658
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst-scalar.js
|
|
10656
10659
|
var require_cst_scalar = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
10657
10660
|
var resolveBlockScalar = require_resolve_block_scalar();
|
|
10658
10661
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
|
@@ -10919,7 +10922,7 @@ var require_cst_scalar = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
10919
10922
|
exports.setScalarValue = setScalarValue;
|
|
10920
10923
|
}));
|
|
10921
10924
|
//#endregion
|
|
10922
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
10925
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst-stringify.js
|
|
10923
10926
|
var require_cst_stringify = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
10924
10927
|
/**
|
|
10925
10928
|
* Stringify a CST document, token, or collection item
|
|
@@ -10970,7 +10973,7 @@ var require_cst_stringify = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
10970
10973
|
exports.stringify = stringify;
|
|
10971
10974
|
}));
|
|
10972
10975
|
//#endregion
|
|
10973
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
10976
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst-visit.js
|
|
10974
10977
|
var require_cst_visit = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
10975
10978
|
const BREAK = Symbol("break visit");
|
|
10976
10979
|
const SKIP = Symbol("skip children");
|
|
@@ -11061,7 +11064,7 @@ var require_cst_visit = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
11061
11064
|
exports.visit = visit;
|
|
11062
11065
|
}));
|
|
11063
11066
|
//#endregion
|
|
11064
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
11067
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst.js
|
|
11065
11068
|
var require_cst = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
11066
11069
|
var cstScalar = require_cst_scalar();
|
|
11067
11070
|
var cstStringify = require_cst_stringify();
|
|
@@ -11140,7 +11143,7 @@ var require_cst = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
11140
11143
|
exports.tokenType = tokenType;
|
|
11141
11144
|
}));
|
|
11142
11145
|
//#endregion
|
|
11143
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
11146
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/lexer.js
|
|
11144
11147
|
var require_lexer = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
11145
11148
|
var cst = require_cst();
|
|
11146
11149
|
function isEmpty(ch) {
|
|
@@ -11673,7 +11676,7 @@ var require_lexer = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
11673
11676
|
exports.Lexer = Lexer;
|
|
11674
11677
|
}));
|
|
11675
11678
|
//#endregion
|
|
11676
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
11679
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/line-counter.js
|
|
11677
11680
|
var require_line_counter = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
11678
11681
|
/**
|
|
11679
11682
|
* Tracks newlines during parsing in order to provide an efficient API for
|
|
@@ -11720,7 +11723,7 @@ var require_line_counter = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
11720
11723
|
exports.LineCounter = LineCounter;
|
|
11721
11724
|
}));
|
|
11722
11725
|
//#endregion
|
|
11723
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
11726
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/parser.js
|
|
11724
11727
|
var require_parser = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
11725
11728
|
var node_process = __require$1("process");
|
|
11726
11729
|
var cst = require_cst();
|
|
@@ -12586,7 +12589,7 @@ var require_parser = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
12586
12589
|
exports.Parser = Parser;
|
|
12587
12590
|
}));
|
|
12588
12591
|
//#endregion
|
|
12589
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
12592
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/public-api.js
|
|
12590
12593
|
var require_public_api = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
12591
12594
|
var composer = require_composer();
|
|
12592
12595
|
var Document = require_Document();
|
|
@@ -12675,7 +12678,7 @@ var require_public_api = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
12675
12678
|
exports.stringify = stringify;
|
|
12676
12679
|
}));
|
|
12677
12680
|
//#endregion
|
|
12678
|
-
//#region ../../node_modules/.pnpm/yaml@2.9.
|
|
12681
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/index.js
|
|
12679
12682
|
var require_dist = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
12680
12683
|
var composer = require_composer();
|
|
12681
12684
|
var Document = require_Document();
|
|
@@ -16024,7 +16027,7 @@ while (this[Zs](this[st].shift()));
|
|
|
16024
16027
|
};
|
|
16025
16028
|
}));
|
|
16026
16029
|
//#endregion
|
|
16027
|
-
//#region ../../node_modules/.pnpm/skills@1.5.
|
|
16030
|
+
//#region ../../node_modules/.pnpm/skills@1.5.26/node_modules/skills/dist/cli.mjs
|
|
16028
16031
|
var cli_exports = /* @__PURE__ */ __exportAll({});
|
|
16029
16032
|
function getGitHubHost() {
|
|
16030
16033
|
const configuredHost = process.env.GH_HOST?.trim();
|
|
@@ -17321,6 +17324,11 @@ function isPathSafe$2(basePath, targetPath) {
|
|
|
17321
17324
|
function pathsOverlap(pathA, pathB) {
|
|
17322
17325
|
return isPathSafe$2(pathA, pathB) || isPathSafe$2(pathB, pathA);
|
|
17323
17326
|
}
|
|
17327
|
+
function shouldSkipProjectAgentSymlink(agentType, isGlobal, cwd, createMissingAgentRoot) {
|
|
17328
|
+
if (isGlobal || isUniversalAgent(agentType) || createMissingAgentRoot || agents[agentType].createProjectSkillsDirByDefault) return false;
|
|
17329
|
+
const agentRoot = agents[agentType].skillsDir.split("/")[0];
|
|
17330
|
+
return !existsSync(join$1(cwd, agentRoot));
|
|
17331
|
+
}
|
|
17324
17332
|
async function isDirEntryOrSymlinkToDir(entry, entryPath) {
|
|
17325
17333
|
if (entry.isDirectory()) return true;
|
|
17326
17334
|
if (!entry.isSymbolicLink()) return false;
|
|
@@ -17456,15 +17464,14 @@ async function installSkillForAgent(skill, agentType, options = {}) {
|
|
|
17456
17464
|
canonicalPath: canonicalDir,
|
|
17457
17465
|
mode: "symlink"
|
|
17458
17466
|
};
|
|
17459
|
-
if (
|
|
17460
|
-
|
|
17461
|
-
|
|
17462
|
-
|
|
17463
|
-
|
|
17464
|
-
|
|
17465
|
-
|
|
17466
|
-
|
|
17467
|
-
}
|
|
17467
|
+
if (shouldSkipProjectAgentSymlink(agentType, isGlobal, cwd, options.createMissingAgentRoot ?? false)) return {
|
|
17468
|
+
success: true,
|
|
17469
|
+
path: canonicalDir,
|
|
17470
|
+
canonicalPath: canonicalDir,
|
|
17471
|
+
mode: "symlink",
|
|
17472
|
+
skipped: true,
|
|
17473
|
+
skipReason: "missing-agent-project-directory"
|
|
17474
|
+
};
|
|
17468
17475
|
if (!await createSymlink(canonicalDir, agentDir)) {
|
|
17469
17476
|
await cleanAndCreateDirectory(agentDir);
|
|
17470
17477
|
await copyDirectory(skill.path, agentDir, agentType);
|
|
@@ -17494,15 +17501,14 @@ async function installSkillForAgent(skill, agentType, options = {}) {
|
|
|
17494
17501
|
function stripIgnoredEveFrontmatter(raw) {
|
|
17495
17502
|
const { data, content } = parseFrontmatter(raw);
|
|
17496
17503
|
const eveData = {};
|
|
17504
|
+
if (typeof data.name === "string") eveData.name = data.name;
|
|
17497
17505
|
if (typeof data.description === "string") eveData.description = data.description;
|
|
17498
17506
|
if (typeof data.license === "string") eveData.license = data.license;
|
|
17499
|
-
if (data.
|
|
17500
|
-
|
|
17501
|
-
|
|
17502
|
-
|
|
17503
|
-
|
|
17504
|
-
if (keys.length === 0) return content.replace(/^\r?\n/u, "");
|
|
17505
|
-
return `---\n${keys.map((key) => `${key}: ${JSON.stringify(eveData[key])}`).join("\n")}\n---\n${content.replace(/^\r?\n/u, "")}`;
|
|
17507
|
+
if (data.compatibility !== void 0) eveData.compatibility = data.compatibility;
|
|
17508
|
+
if (typeof data.version === "string" || typeof data.version === "number") eveData.version = data.version;
|
|
17509
|
+
if (data.metadata && typeof data.metadata === "object" && !Array.isArray(data.metadata)) eveData.metadata = data.metadata;
|
|
17510
|
+
if (Object.keys(eveData).length === 0) return content.replace(/^\r?\n/u, "");
|
|
17511
|
+
return `---\n${(0, import_dist.stringify)(eveData).trimEnd()}\n---\n${content.replace(/^\r?\n/u, "")}`;
|
|
17506
17512
|
}
|
|
17507
17513
|
async function copyDirectory(src, dest, agentType) {
|
|
17508
17514
|
await mkdir(dest, { recursive: true });
|
|
@@ -17736,15 +17742,14 @@ async function installBlobSkillForAgent(skill, agentType, options = {}) {
|
|
|
17736
17742
|
canonicalPath: canonicalDir,
|
|
17737
17743
|
mode: "symlink"
|
|
17738
17744
|
};
|
|
17739
|
-
if (
|
|
17740
|
-
|
|
17741
|
-
|
|
17742
|
-
|
|
17743
|
-
|
|
17744
|
-
|
|
17745
|
-
|
|
17746
|
-
|
|
17747
|
-
}
|
|
17745
|
+
if (shouldSkipProjectAgentSymlink(agentType, isGlobal, cwd, options.createMissingAgentRoot ?? false)) return {
|
|
17746
|
+
success: true,
|
|
17747
|
+
path: canonicalDir,
|
|
17748
|
+
canonicalPath: canonicalDir,
|
|
17749
|
+
mode: "symlink",
|
|
17750
|
+
skipped: true,
|
|
17751
|
+
skipReason: "missing-agent-project-directory"
|
|
17752
|
+
};
|
|
17748
17753
|
if (!await createSymlink(canonicalDir, agentDir)) {
|
|
17749
17754
|
await cleanAndCreateDirectory(agentDir);
|
|
17750
17755
|
await writeSkillFiles(agentDir);
|
|
@@ -18879,9 +18884,11 @@ function buildResultLines(results, targetAgents) {
|
|
|
18879
18884
|
const { universal, symlinked: symlinkAgents } = splitAgentsByType(targetAgents);
|
|
18880
18885
|
const successfulSymlinks = results.filter((r) => !r.symlinkFailed && !r.skipped && !universal.includes(r.agent)).map((r) => r.agent);
|
|
18881
18886
|
const failedSymlinks = results.filter((r) => r.symlinkFailed && !r.skipped).map((r) => r.agent);
|
|
18887
|
+
const skippedSymlinks = results.filter((r) => r.skipped && r.skipReason === "missing-agent-project-directory" && symlinkAgents.includes(r.agent)).map((r) => r.agent);
|
|
18882
18888
|
if (universal.length > 0) lines.push(` ${import_picocolors.default.green("universal:")} ${formatList$1(universal)}`);
|
|
18883
18889
|
if (successfulSymlinks.length > 0) lines.push(` ${import_picocolors.default.dim("symlinked:")} ${formatList$1(successfulSymlinks)}`);
|
|
18884
18890
|
if (failedSymlinks.length > 0) lines.push(` ${import_picocolors.default.yellow("copied:")} ${formatList$1(failedSymlinks)}`);
|
|
18891
|
+
if (skippedSymlinks.length > 0) lines.push(` ${import_picocolors.default.yellow("skipped:")} ${formatList$1(skippedSymlinks)} ${import_picocolors.default.dim("(project directory not found)")}`);
|
|
18885
18892
|
return lines;
|
|
18886
18893
|
}
|
|
18887
18894
|
function exitInstallationCancelled() {
|
|
@@ -18950,6 +18957,17 @@ async function selectAgentsInteractive(options) {
|
|
|
18950
18957
|
} catch {}
|
|
18951
18958
|
return selected;
|
|
18952
18959
|
}
|
|
18960
|
+
function buildJsonSecurity(auditData, skillName, source) {
|
|
18961
|
+
const data = auditData?.[skillName];
|
|
18962
|
+
if (!data || Object.keys(data).length === 0) return null;
|
|
18963
|
+
const socketAlerts = data.socket?.alerts ?? 0;
|
|
18964
|
+
return {
|
|
18965
|
+
...data.ath && { gen: data.ath.risk },
|
|
18966
|
+
...data.socket && { socket: `${socketAlerts} alert${socketAlerts !== 1 ? "s" : ""}` },
|
|
18967
|
+
...data.snyk && { snyk: data.snyk.risk },
|
|
18968
|
+
...source && { details: `https://skills.sh/${source}` }
|
|
18969
|
+
};
|
|
18970
|
+
}
|
|
18953
18971
|
function isSkillsShPackUrl(url) {
|
|
18954
18972
|
try {
|
|
18955
18973
|
const parsed = new URL(url);
|
|
@@ -19153,6 +19171,7 @@ async function handleWellKnownSkills(source, url, options, spinner) {
|
|
|
19153
19171
|
console.log();
|
|
19154
19172
|
const successful = results.filter((r) => r.success);
|
|
19155
19173
|
const failed = results.filter((r) => !r.success);
|
|
19174
|
+
const successfulSkillNames = new Set(successful.map((r) => r.skill));
|
|
19156
19175
|
const skillFiles = {};
|
|
19157
19176
|
for (const skill of selectedSkills) skillFiles[skill.installName] = skill.sourceUrl;
|
|
19158
19177
|
if (await wellKnownPrivacyPromise !== true) track({
|
|
@@ -19167,7 +19186,6 @@ async function handleWellKnownSkills(source, url, options, spinner) {
|
|
|
19167
19186
|
sourceType: "well-known"
|
|
19168
19187
|
});
|
|
19169
19188
|
if (successful.length > 0 && installGlobally) {
|
|
19170
|
-
const successfulSkillNames = new Set(successful.map((r) => r.skill));
|
|
19171
19189
|
for (const skill of selectedSkills) if (successfulSkillNames.has(skill.installName)) try {
|
|
19172
19190
|
await addSkillToLock(skill.installName, {
|
|
19173
19191
|
source: sourceIdentifier,
|
|
@@ -19180,7 +19198,6 @@ async function handleWellKnownSkills(source, url, options, spinner) {
|
|
|
19180
19198
|
} catch {}
|
|
19181
19199
|
}
|
|
19182
19200
|
if (successful.length > 0 && !installGlobally) {
|
|
19183
|
-
const successfulSkillNames = new Set(successful.map((r) => r.skill));
|
|
19184
19201
|
for (const skill of selectedSkills) if (successfulSkillNames.has(skill.installName)) try {
|
|
19185
19202
|
const matchingResult = successful.find((r) => r.skill === skill.installName);
|
|
19186
19203
|
const installDir = matchingResult?.canonicalPath || matchingResult?.path;
|
|
@@ -19247,6 +19264,40 @@ async function handleWellKnownSkills(source, url, options, spinner) {
|
|
|
19247
19264
|
async function runAdd(args, options = {}) {
|
|
19248
19265
|
const source = args[0];
|
|
19249
19266
|
let installTipShown = false;
|
|
19267
|
+
const jsonMode = options.json === true;
|
|
19268
|
+
const jsonResults = [];
|
|
19269
|
+
const originalStdoutWrite = process.stdout.write;
|
|
19270
|
+
let stdoutSuppressed = false;
|
|
19271
|
+
if (jsonMode) {
|
|
19272
|
+
process.stdout.write = process.stderr.write.bind(process.stderr);
|
|
19273
|
+
stdoutSuppressed = true;
|
|
19274
|
+
}
|
|
19275
|
+
const restoreStdout = () => {
|
|
19276
|
+
if (stdoutSuppressed) {
|
|
19277
|
+
process.stdout.write = originalStdoutWrite;
|
|
19278
|
+
stdoutSuppressed = false;
|
|
19279
|
+
}
|
|
19280
|
+
};
|
|
19281
|
+
let jsonEmitted = false;
|
|
19282
|
+
const emitJson = () => {
|
|
19283
|
+
if (!jsonMode || jsonEmitted) return;
|
|
19284
|
+
jsonEmitted = true;
|
|
19285
|
+
restoreStdout();
|
|
19286
|
+
console.log(JSON.stringify(jsonResults, null, 2));
|
|
19287
|
+
};
|
|
19288
|
+
const emitJsonAndExit = (code, errorMessage) => {
|
|
19289
|
+
if (jsonMode) {
|
|
19290
|
+
if (errorMessage !== void 0) console.error(errorMessage);
|
|
19291
|
+
if (code !== 0 && jsonResults.length === 0) jsonResults.push({
|
|
19292
|
+
status: "failed",
|
|
19293
|
+
error: errorMessage ?? "Installation failed"
|
|
19294
|
+
});
|
|
19295
|
+
emitJson();
|
|
19296
|
+
}
|
|
19297
|
+
process.exit(code);
|
|
19298
|
+
};
|
|
19299
|
+
const emitJsonOnExit = () => emitJson();
|
|
19300
|
+
if (jsonMode) process.once("exit", emitJsonOnExit);
|
|
19250
19301
|
const showInstallTip = () => {
|
|
19251
19302
|
if (installTipShown) return;
|
|
19252
19303
|
log.message(import_picocolors.default.dim("Tip: use the --yes (-y) and --global (-g) flags to install without prompts."));
|
|
@@ -19262,8 +19313,9 @@ async function runAdd(args, options = {}) {
|
|
|
19262
19313
|
console.log(import_picocolors.default.dim(" Example:"));
|
|
19263
19314
|
console.log(` ${import_picocolors.default.cyan("npx skills add")} ${import_picocolors.default.yellow("vercel-labs/agent-skills")}`);
|
|
19264
19315
|
console.log();
|
|
19265
|
-
|
|
19316
|
+
emitJsonAndExit(1, "Missing required argument: source");
|
|
19266
19317
|
}
|
|
19318
|
+
const explicitlySelectedAgents = new Set(options.agent?.includes("*") ? [] : options.agent ?? []);
|
|
19267
19319
|
if (options.all) {
|
|
19268
19320
|
options.skill = ["*"];
|
|
19269
19321
|
options.agent = ["*"];
|
|
@@ -19277,13 +19329,19 @@ async function runAdd(args, options = {}) {
|
|
|
19277
19329
|
if (mappedAgent) options.agent = ensureUniversalAgents([mappedAgent]);
|
|
19278
19330
|
}
|
|
19279
19331
|
}
|
|
19332
|
+
if (jsonMode && !options.yes) emitJsonAndExit(1, "The --json flag requires --yes (or --all) to run non-interactively.");
|
|
19333
|
+
if (jsonMode && options.list) emitJsonAndExit(1, "The --json flag cannot be combined with --list.");
|
|
19280
19334
|
console.log();
|
|
19281
19335
|
if (!agentResult.isAgent) intro(import_picocolors.default.bgCyan(import_picocolors.default.black(" skills ")));
|
|
19282
19336
|
if (agentResult.isAgent) log.info(import_picocolors.default.bgCyan(import_picocolors.default.black(import_picocolors.default.bold(` ${agentResult.agent.name} `))) + " Agent detected — installing non-interactively");
|
|
19283
19337
|
else if (!process.stdin.isTTY) showInstallTip();
|
|
19284
19338
|
let tempDir = null;
|
|
19285
19339
|
try {
|
|
19286
|
-
const spinner$3 =
|
|
19340
|
+
const spinner$3 = jsonMode ? {
|
|
19341
|
+
start: () => {},
|
|
19342
|
+
stop: () => {},
|
|
19343
|
+
message: () => {}
|
|
19344
|
+
} : spinner();
|
|
19287
19345
|
spinner$3.start("Parsing source…");
|
|
19288
19346
|
const parsed = parseSource(source);
|
|
19289
19347
|
let directDownload = parsed.type === "download";
|
|
@@ -19297,6 +19355,7 @@ async function runAdd(args, options = {}) {
|
|
|
19297
19355
|
return isRepoPrivate(ownerRepo.owner, ownerRepo.repo).catch(() => null);
|
|
19298
19356
|
})();
|
|
19299
19357
|
if (parsed.type === "well-known") {
|
|
19358
|
+
if (jsonMode) emitJsonAndExit(1, "--json is not yet supported for well-known skill sources.");
|
|
19300
19359
|
if (await handleWellKnownSkills(source, parsed.url, options, spinner$3)) return;
|
|
19301
19360
|
directDownload = true;
|
|
19302
19361
|
}
|
|
@@ -19312,7 +19371,7 @@ async function runAdd(args, options = {}) {
|
|
|
19312
19371
|
if (!existsSync(parsed.localPath)) {
|
|
19313
19372
|
spinner$3.stop(import_picocolors.default.red("Path not found"));
|
|
19314
19373
|
outro(import_picocolors.default.red(`Local path does not exist: ${parsed.localPath}`));
|
|
19315
|
-
|
|
19374
|
+
emitJsonAndExit(1, `Local path does not exist: ${parsed.localPath}`);
|
|
19316
19375
|
}
|
|
19317
19376
|
spinner$3.stop("Local path validated");
|
|
19318
19377
|
spinner$3.start("Discovering skills…");
|
|
@@ -19331,15 +19390,18 @@ async function runAdd(args, options = {}) {
|
|
|
19331
19390
|
fullDepth: options.fullDepth
|
|
19332
19391
|
});
|
|
19333
19392
|
} else if (parsed.type === "github" && !options.fullDepth) {
|
|
19393
|
+
let attemptedBlobInstall = false;
|
|
19334
19394
|
const BLOB_ALLOWED_OWNERS = [
|
|
19335
19395
|
"vercel",
|
|
19336
19396
|
"vercel-labs",
|
|
19337
|
-
"heygen-com"
|
|
19397
|
+
"heygen-com",
|
|
19398
|
+
"remotion-dev"
|
|
19338
19399
|
];
|
|
19339
19400
|
const ownerRepo = getOwnerRepo(parsed);
|
|
19340
19401
|
const owner = ownerRepo?.split("/")[0]?.toLowerCase();
|
|
19341
19402
|
const isSelfHostedRepo = !!ownerRepo && Object.hasOwn(BLOB_ALLOWED_REPOS, ownerRepo.toLowerCase());
|
|
19342
19403
|
if (ownerRepo && owner && (isSelfHostedRepo || BLOB_ALLOWED_OWNERS.includes(owner))) {
|
|
19404
|
+
attemptedBlobInstall = true;
|
|
19343
19405
|
spinner$3.start("Fetching skills…");
|
|
19344
19406
|
blobResult = await tryBlobInstall(ownerRepo, {
|
|
19345
19407
|
subpath: parsed.subpath,
|
|
@@ -19348,13 +19410,13 @@ async function runAdd(args, options = {}) {
|
|
|
19348
19410
|
getToken: getGitHubToken,
|
|
19349
19411
|
includeInternal
|
|
19350
19412
|
});
|
|
19351
|
-
if (!blobResult) spinner$3.stop(import_picocolors.default.dim("Falling back to clone…"));
|
|
19352
19413
|
}
|
|
19353
19414
|
if (blobResult) {
|
|
19354
19415
|
skills = blobResult.skills;
|
|
19355
19416
|
spinner$3.stop(`Found ${import_picocolors.default.green(skills.length)} skill${skills.length > 1 ? "s" : ""}`);
|
|
19356
19417
|
} else {
|
|
19357
|
-
spinner$3.
|
|
19418
|
+
if (attemptedBlobInstall) spinner$3.message("Cloning repository…");
|
|
19419
|
+
else spinner$3.start("Cloning repository…");
|
|
19358
19420
|
tempDir = await cloneRepo(parsed.url, parsed.ref);
|
|
19359
19421
|
spinner$3.stop("Repository cloned");
|
|
19360
19422
|
spinner$3.start("Discovering skills…");
|
|
@@ -19377,7 +19439,7 @@ async function runAdd(args, options = {}) {
|
|
|
19377
19439
|
spinner$3.stop(import_picocolors.default.red("No skills found"));
|
|
19378
19440
|
outro(import_picocolors.default.red("No valid skills found. Skills require a SKILL.md with name and description."));
|
|
19379
19441
|
await cleanup(tempDir);
|
|
19380
|
-
|
|
19442
|
+
emitJsonAndExit(1, "No valid skills found. Skills require a SKILL.md with name and description.");
|
|
19381
19443
|
}
|
|
19382
19444
|
if (!blobResult) spinner$3.stop(`Found ${import_picocolors.default.green(skills.length)} skill${skills.length > 1 ? "s" : ""}`);
|
|
19383
19445
|
if (options.list) {
|
|
@@ -19410,7 +19472,7 @@ async function runAdd(args, options = {}) {
|
|
|
19410
19472
|
console.log();
|
|
19411
19473
|
outro("Use --skill <name> to install specific skills");
|
|
19412
19474
|
await cleanup(tempDir);
|
|
19413
|
-
|
|
19475
|
+
emitJsonAndExit(0);
|
|
19414
19476
|
}
|
|
19415
19477
|
let selectedSkills;
|
|
19416
19478
|
if (options.skill?.includes("*")) {
|
|
@@ -19418,12 +19480,19 @@ async function runAdd(args, options = {}) {
|
|
|
19418
19480
|
log.info(`Installing all ${skills.length} skills`);
|
|
19419
19481
|
} else if (options.skill && options.skill.length > 0) {
|
|
19420
19482
|
selectedSkills = filterSkills(skills, options.skill);
|
|
19483
|
+
if (jsonMode) {
|
|
19484
|
+
for (const requested of options.skill) if (filterSkills(skills, [requested]).length === 0) jsonResults.push({
|
|
19485
|
+
name: requested,
|
|
19486
|
+
status: "skipped",
|
|
19487
|
+
reason: "No matching skill found in source"
|
|
19488
|
+
});
|
|
19489
|
+
}
|
|
19421
19490
|
if (selectedSkills.length === 0) {
|
|
19422
19491
|
log.error(`No matching skills found for: ${options.skill.join(", ")}`);
|
|
19423
19492
|
log.info("Available skills:");
|
|
19424
19493
|
for (const s of skills) log.message(` - ${getSkillDisplayName(s)}`);
|
|
19425
19494
|
await cleanup(tempDir);
|
|
19426
|
-
|
|
19495
|
+
emitJsonAndExit(1, `No matching skills found for: ${options.skill.join(", ")}`);
|
|
19427
19496
|
}
|
|
19428
19497
|
log.info(`Selected ${selectedSkills.length} skill${selectedSkills.length !== 1 ? "s" : ""}: ${selectedSkills.map((s) => import_picocolors.default.cyan(getSkillDisplayName(s))).join(", ")}`);
|
|
19429
19498
|
} else if (skills.length === 1) {
|
|
@@ -19479,7 +19548,7 @@ async function runAdd(args, options = {}) {
|
|
|
19479
19548
|
log.error(`Invalid agents: ${invalidAgents.join(", ")}`);
|
|
19480
19549
|
log.info(`Valid agents: ${validAgents.join(", ")}`);
|
|
19481
19550
|
await cleanup(tempDir);
|
|
19482
|
-
|
|
19551
|
+
emitJsonAndExit(1, `Invalid agents: ${invalidAgents.join(", ")}`);
|
|
19483
19552
|
}
|
|
19484
19553
|
targetAgents = options.agent;
|
|
19485
19554
|
} else {
|
|
@@ -19498,6 +19567,7 @@ async function runAdd(args, options = {}) {
|
|
|
19498
19567
|
}
|
|
19499
19568
|
if (useEve) {
|
|
19500
19569
|
targetAgents = ["eve"];
|
|
19570
|
+
if (!options.yes) explicitlySelectedAgents.add("eve");
|
|
19501
19571
|
log.info(`Installing to: ${import_picocolors.default.cyan(EVE_AGENT_LABEL)}`);
|
|
19502
19572
|
} else {
|
|
19503
19573
|
const selected = await selectAgentsInteractive({ global: options.global });
|
|
@@ -19506,6 +19576,7 @@ async function runAdd(args, options = {}) {
|
|
|
19506
19576
|
exitInstallationCancelled();
|
|
19507
19577
|
}
|
|
19508
19578
|
targetAgents = selected;
|
|
19579
|
+
for (const agent of targetAgents) explicitlySelectedAgents.add(agent);
|
|
19509
19580
|
}
|
|
19510
19581
|
} else if (installedAgents.length === 0) if (options.yes) {
|
|
19511
19582
|
targetAgents = validAgents;
|
|
@@ -19521,6 +19592,7 @@ async function runAdd(args, options = {}) {
|
|
|
19521
19592
|
exitInstallationCancelled();
|
|
19522
19593
|
}
|
|
19523
19594
|
targetAgents = selected;
|
|
19595
|
+
for (const agent of targetAgents) explicitlySelectedAgents.add(agent);
|
|
19524
19596
|
}
|
|
19525
19597
|
else if (installedAgents.length === 1 || options.yes) {
|
|
19526
19598
|
targetAgents = ensureUniversalAgents(installedAgents);
|
|
@@ -19535,9 +19607,13 @@ async function runAdd(args, options = {}) {
|
|
|
19535
19607
|
exitInstallationCancelled();
|
|
19536
19608
|
}
|
|
19537
19609
|
targetAgents = selected;
|
|
19610
|
+
for (const agent of targetAgents) explicitlySelectedAgents.add(agent);
|
|
19538
19611
|
}
|
|
19539
19612
|
}
|
|
19540
|
-
if (options.subagent && options.subagent.length > 0
|
|
19613
|
+
if (options.subagent && options.subagent.length > 0) {
|
|
19614
|
+
explicitlySelectedAgents.add("eve");
|
|
19615
|
+
if (!targetAgents.includes("eve")) targetAgents = [...targetAgents, "eve"];
|
|
19616
|
+
}
|
|
19541
19617
|
let eveSubagentTargets = [void 0];
|
|
19542
19618
|
if (targetAgents.includes("eve")) {
|
|
19543
19619
|
const availableSubagents = getEveSubagents(process.cwd());
|
|
@@ -19661,8 +19737,10 @@ async function runAdd(args, options = {}) {
|
|
|
19661
19737
|
}
|
|
19662
19738
|
console.log();
|
|
19663
19739
|
note(summaryLines.join("\n"), "Installation Summary");
|
|
19740
|
+
let auditDataForJson = null;
|
|
19664
19741
|
try {
|
|
19665
19742
|
const auditData = await auditPromise;
|
|
19743
|
+
auditDataForJson = auditData;
|
|
19666
19744
|
if (auditData && ownerRepoForAudit) {
|
|
19667
19745
|
const securityLines = buildSecurityLines(auditData, selectedSkills.map((s) => ({
|
|
19668
19746
|
slug: getSkillDisplayName(s),
|
|
@@ -19691,12 +19769,14 @@ async function runAdd(args, options = {}) {
|
|
|
19691
19769
|
}, agent, {
|
|
19692
19770
|
global: installGlobally,
|
|
19693
19771
|
mode: installMode,
|
|
19694
|
-
eveSubagent: subagent
|
|
19772
|
+
eveSubagent: subagent,
|
|
19773
|
+
createMissingAgentRoot: explicitlySelectedAgents.has(agent)
|
|
19695
19774
|
});
|
|
19696
19775
|
} else result = await installSkillForAgent(skill, agent, {
|
|
19697
19776
|
global: installGlobally,
|
|
19698
19777
|
mode: installMode,
|
|
19699
|
-
eveSubagent: subagent
|
|
19778
|
+
eveSubagent: subagent,
|
|
19779
|
+
createMissingAgentRoot: explicitlySelectedAgents.has(agent)
|
|
19700
19780
|
});
|
|
19701
19781
|
results.push({
|
|
19702
19782
|
skill: getSkillDisplayName(skill),
|
|
@@ -19709,6 +19789,7 @@ async function runAdd(args, options = {}) {
|
|
|
19709
19789
|
console.log();
|
|
19710
19790
|
const successful = results.filter((r) => r.success);
|
|
19711
19791
|
const failed = results.filter((r) => !r.success);
|
|
19792
|
+
const successfulSkillNames = new Set(successful.map((r) => r.skill));
|
|
19712
19793
|
const skillFiles = {};
|
|
19713
19794
|
for (const skill of selectedSkills) if (blobResult && "repoPath" in skill) skillFiles[skill.name] = skill.repoPath;
|
|
19714
19795
|
else if (tempDir && skill.path === tempDir) skillFiles[skill.name] = "SKILL.md";
|
|
@@ -19736,8 +19817,16 @@ async function runAdd(args, options = {}) {
|
|
|
19736
19817
|
skillFiles: JSON.stringify(skillFiles),
|
|
19737
19818
|
metadata: options.metadata
|
|
19738
19819
|
});
|
|
19820
|
+
const installedSkillHashes = /* @__PURE__ */ new Map();
|
|
19821
|
+
if (successful.length > 0 && (jsonMode || !installGlobally)) for (const skill of selectedSkills) {
|
|
19822
|
+
const skillDisplayName = getSkillDisplayName(skill);
|
|
19823
|
+
if (!successfulSkillNames.has(skillDisplayName)) continue;
|
|
19824
|
+
try {
|
|
19825
|
+
const computedHash = blobResult && "snapshotHash" in skill ? skill.snapshotHash : await computeSkillFolderHash(skill.path);
|
|
19826
|
+
installedSkillHashes.set(skillDisplayName, computedHash);
|
|
19827
|
+
} catch {}
|
|
19828
|
+
}
|
|
19739
19829
|
if (successful.length > 0 && installGlobally && normalizedSource) {
|
|
19740
|
-
const successfulSkillNames = new Set(successful.map((r) => r.skill));
|
|
19741
19830
|
let cachedTree;
|
|
19742
19831
|
if (parsed.type === "github" && !blobResult) cachedTree = await fetchRepoTree(normalizedSource, parsed.ref, getGitHubToken);
|
|
19743
19832
|
for (const skill of selectedSkills) {
|
|
@@ -19768,13 +19857,13 @@ async function runAdd(args, options = {}) {
|
|
|
19768
19857
|
}
|
|
19769
19858
|
}
|
|
19770
19859
|
if (successful.length > 0 && !installGlobally && !directDownload) {
|
|
19771
|
-
const successfulSkillNames = new Set(successful.map((r) => r.skill));
|
|
19772
19860
|
const eveSubagents = targetAgents.includes("eve") ? eveSubagentTargets.map((s) => s ?? "") : void 0;
|
|
19773
19861
|
const recordSubagents = eveSubagents && (eveSubagents.length > 1 || eveSubagents.some((s) => s !== ""));
|
|
19774
19862
|
for (const skill of selectedSkills) {
|
|
19775
19863
|
const skillDisplayName = getSkillDisplayName(skill);
|
|
19776
19864
|
if (successfulSkillNames.has(skillDisplayName)) try {
|
|
19777
|
-
const computedHash =
|
|
19865
|
+
const computedHash = installedSkillHashes.get(skillDisplayName);
|
|
19866
|
+
if (computedHash === void 0) continue;
|
|
19778
19867
|
const skillPathValue = skillFiles[skill.name];
|
|
19779
19868
|
await addSkillToLocalLock(skill.name, {
|
|
19780
19869
|
source: lockSource || parsed.url,
|
|
@@ -19788,6 +19877,37 @@ async function runAdd(args, options = {}) {
|
|
|
19788
19877
|
} catch {}
|
|
19789
19878
|
}
|
|
19790
19879
|
}
|
|
19880
|
+
if (jsonMode) {
|
|
19881
|
+
const jsonSource = normalizedSource ?? (parsed.type === "local" ? parsed.localPath : parsed.url);
|
|
19882
|
+
for (const skill of selectedSkills) {
|
|
19883
|
+
const name = getSkillDisplayName(skill);
|
|
19884
|
+
const skillResults = results.filter((r) => r.skill === name);
|
|
19885
|
+
const failures = skillResults.filter((r) => !r.success);
|
|
19886
|
+
if (failures.length > 0) {
|
|
19887
|
+
jsonResults.push({
|
|
19888
|
+
name,
|
|
19889
|
+
status: "failed",
|
|
19890
|
+
error: failures[0].error ?? "Installation failed"
|
|
19891
|
+
});
|
|
19892
|
+
continue;
|
|
19893
|
+
}
|
|
19894
|
+
jsonResults.push({
|
|
19895
|
+
name,
|
|
19896
|
+
status: "installed",
|
|
19897
|
+
source: jsonSource,
|
|
19898
|
+
ref: parsed.ref ?? null,
|
|
19899
|
+
hash: installedSkillHashes.get(name) ?? null,
|
|
19900
|
+
path: skillResults[0]?.canonicalPath ?? skillResults[0]?.path,
|
|
19901
|
+
scope: installGlobally ? "global" : "project",
|
|
19902
|
+
agents: skillResults.filter((r) => !r.skipped).map((r) => r.agent),
|
|
19903
|
+
mode: skillResults[0]?.mode ?? installMode,
|
|
19904
|
+
security: buildJsonSecurity(auditDataForJson, name, ownerRepoForAudit)
|
|
19905
|
+
});
|
|
19906
|
+
}
|
|
19907
|
+
emitJson();
|
|
19908
|
+
if (failed.length > 0 || jsonResults.some((result) => result.status === "skipped")) process.exitCode = 1;
|
|
19909
|
+
return;
|
|
19910
|
+
}
|
|
19791
19911
|
if (successful.length > 0) {
|
|
19792
19912
|
const bySkill = /* @__PURE__ */ new Map();
|
|
19793
19913
|
const groupedResults = {};
|
|
@@ -19865,8 +19985,10 @@ async function runAdd(args, options = {}) {
|
|
|
19865
19985
|
} else log.error(error instanceof Error ? error.message : "Unknown error occurred");
|
|
19866
19986
|
showInstallTip();
|
|
19867
19987
|
outro(import_picocolors.default.red("Installation failed"));
|
|
19868
|
-
|
|
19988
|
+
emitJsonAndExit(1, error instanceof GitCloneError ? `Failed to clone repository\n${error.message}` : error instanceof Error ? error.message : "Unknown error occurred");
|
|
19869
19989
|
} finally {
|
|
19990
|
+
if (jsonMode) process.removeListener("exit", emitJsonOnExit);
|
|
19991
|
+
restoreStdout();
|
|
19870
19992
|
await cleanup(tempDir);
|
|
19871
19993
|
}
|
|
19872
19994
|
}
|
|
@@ -19954,6 +20076,7 @@ function parseAddOptions(args) {
|
|
|
19954
20076
|
errors.push("--metadata must be valid JSON");
|
|
19955
20077
|
}
|
|
19956
20078
|
} else if (arg === "--full-depth") options.fullDepth = true;
|
|
20079
|
+
else if (arg === "--json") options.json = true;
|
|
19957
20080
|
else if (arg === "--copy") options.copy = true;
|
|
19958
20081
|
else if (arg === "--subagent") {
|
|
19959
20082
|
options.subagent = options.subagent || [];
|
|
@@ -22196,6 +22319,7 @@ ${BOLD}Add Options:${RESET}
|
|
|
22196
22319
|
--subagent <names> Install to Eve subagents (use 'root' for the root agent)
|
|
22197
22320
|
--all Shorthand for --skill '*' --agent '*' -y
|
|
22198
22321
|
--full-depth Search all subdirectories even when a root SKILL.md exists
|
|
22322
|
+
--json Output results as JSON (machine-readable, no ANSI codes)
|
|
22199
22323
|
|
|
22200
22324
|
${BOLD}Use Options:${RESET}
|
|
22201
22325
|
-s, --skill <skill> Specify the skill to use
|
|
@@ -22229,6 +22353,7 @@ ${BOLD}Examples:${RESET}
|
|
|
22229
22353
|
${DIM}$${RESET} skills add vercel-labs/agent-skills -g
|
|
22230
22354
|
${DIM}$${RESET} skills add vercel-labs/agent-skills --agent claude-code cursor
|
|
22231
22355
|
${DIM}$${RESET} skills add vercel-labs/agent-skills --skill pr-review commit
|
|
22356
|
+
${DIM}$${RESET} skills add vercel-labs/agent-skills --json -y ${DIM}# JSON output${RESET}
|
|
22232
22357
|
${DIM}$${RESET} skills remove ${DIM}# interactive remove${RESET}
|
|
22233
22358
|
${DIM}$${RESET} skills remove web-design ${DIM}# remove by name${RESET}
|
|
22234
22359
|
${DIM}$${RESET} skills rm --global frontend-design
|
|
@@ -22363,10 +22488,11 @@ async function main() {
|
|
|
22363
22488
|
case "install":
|
|
22364
22489
|
case "a":
|
|
22365
22490
|
case "add": {
|
|
22366
|
-
if (!inAgent) showLogo();
|
|
22367
22491
|
const { source: addSource, options: addOpts, errors } = parseAddOptions(restArgs);
|
|
22492
|
+
if (!inAgent && !addOpts.json) showLogo();
|
|
22368
22493
|
if (errors.length > 0) {
|
|
22369
22494
|
for (const error of errors) console.error(`Error: ${error}`);
|
|
22495
|
+
if (addOpts.json) console.log("[]");
|
|
22370
22496
|
process.exitCode = 1;
|
|
22371
22497
|
break;
|
|
22372
22498
|
}
|
|
@@ -22605,6 +22731,7 @@ var init_cli = __esmMin((() => {
|
|
|
22605
22731
|
displayName: "Claude Code",
|
|
22606
22732
|
skillsDir: ".claude/skills",
|
|
22607
22733
|
globalSkillsDir: join$1(claudeHome, "skills"),
|
|
22734
|
+
createProjectSkillsDirByDefault: true,
|
|
22608
22735
|
detectInstalled: async () => {
|
|
22609
22736
|
return existsSync(claudeHome);
|
|
22610
22737
|
}
|
|
@@ -23811,7 +23938,7 @@ var init_cli = __esmMin((() => {
|
|
|
23811
23938
|
"__pycache__",
|
|
23812
23939
|
"__pypackages__"
|
|
23813
23940
|
]);
|
|
23814
|
-
version$1 = "1.5.
|
|
23941
|
+
version$1 = "1.5.26";
|
|
23815
23942
|
isCancelled$1 = (value) => typeof value === "symbol";
|
|
23816
23943
|
EVE_AGENT_LABEL = "eve agent";
|
|
23817
23944
|
setVersion(version$1);
|
|
@@ -23842,7 +23969,8 @@ var init_cli = __esmMin((() => {
|
|
|
23842
23969
|
BLOB_ALLOWED_OWNERS = [
|
|
23843
23970
|
"vercel",
|
|
23844
23971
|
"vercel-labs",
|
|
23845
|
-
"heygen-com"
|
|
23972
|
+
"heygen-com",
|
|
23973
|
+
"remotion-dev"
|
|
23846
23974
|
];
|
|
23847
23975
|
EXCLUDE_FILES = /* @__PURE__ */ new Set(["metadata.json"]);
|
|
23848
23976
|
EXCLUDE_DIRS = /* @__PURE__ */ new Set([
|
|
@@ -23892,7 +24020,7 @@ var init_cli = __esmMin((() => {
|
|
|
23892
24020
|
main().finally(() => flushTelemetry().then(() => process.exit(process.exitCode ?? 0)));
|
|
23893
24021
|
}));
|
|
23894
24022
|
//#endregion
|
|
23895
|
-
//#region ../../node_modules/.pnpm/skills@1.5.
|
|
24023
|
+
//#region ../../node_modules/.pnpm/skills@1.5.26/node_modules/skills/bin/cli.mjs
|
|
23896
24024
|
if (module.enableCompileCache && !process.env.NODE_DISABLE_COMPILE_CACHE) try {
|
|
23897
24025
|
module.enableCompileCache();
|
|
23898
24026
|
} catch {}
|