@ariestools/toolchain 10.0.5 → 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.
Files changed (74) hide show
  1. package/README.md +12 -0
  2. package/dist/actions/index.d.ts +1 -0
  3. package/dist/actions/index.d.ts.map +1 -1
  4. package/dist/actions/node-lint.d.ts +3 -1
  5. package/dist/actions/node-lint.d.ts.map +1 -1
  6. package/dist/actions/npm-org/fetchOrgPackages.d.ts +17 -0
  7. package/dist/actions/npm-org/fetchOrgPackages.d.ts.map +1 -0
  8. package/dist/actions/npm-org/index.d.ts +7 -0
  9. package/dist/actions/npm-org/index.d.ts.map +1 -0
  10. package/dist/actions/npm-org/lint.d.ts +3 -0
  11. package/dist/actions/npm-org/lint.d.ts.map +1 -0
  12. package/dist/actions/npm-org/org.d.ts +4 -0
  13. package/dist/actions/npm-org/org.d.ts.map +1 -0
  14. package/dist/actions/npm-org/rules.d.ts +4 -0
  15. package/dist/actions/npm-org/rules.d.ts.map +1 -0
  16. package/dist/actions/npm-org/scanStatus.d.ts +11 -0
  17. package/dist/actions/npm-org/scanStatus.d.ts.map +1 -0
  18. package/dist/actions/npm-org/snapshots.d.ts +12 -0
  19. package/dist/actions/npm-org/snapshots.d.ts.map +1 -0
  20. package/dist/actions/npm-org/types.d.ts +59 -0
  21. package/dist/actions/npm-org/types.d.ts.map +1 -0
  22. package/dist/actions/package/compile/XyConfig.d.ts +38 -0
  23. package/dist/actions/package/compile/XyConfig.d.ts.map +1 -1
  24. package/dist/actions/package-lint-engines.d.ts +5 -1
  25. package/dist/actions/package-lint-engines.d.ts.map +1 -1
  26. package/dist/actions/package-lint.d.ts +3 -0
  27. package/dist/actions/package-lint.d.ts.map +1 -1
  28. package/dist/actions/ruleCatalog.d.ts +1 -0
  29. package/dist/actions/ruleCatalog.d.ts.map +1 -1
  30. package/dist/bin/package/build.mjs +8 -2
  31. package/dist/bin/package/build.mjs.map +1 -1
  32. package/dist/bin/package/clean.mjs +8 -2
  33. package/dist/bin/package/clean.mjs.map +1 -1
  34. package/dist/bin/package/compile.mjs +2 -2
  35. package/dist/bin/package/compile.mjs.map +1 -1
  36. package/dist/bin/package/publint.mjs +8 -2
  37. package/dist/bin/package/publint.mjs.map +1 -1
  38. package/dist/bin/package/recompile.mjs +8 -2
  39. package/dist/bin/package/recompile.mjs.map +1 -1
  40. package/dist/bin/package/sync-layout.mjs +2 -2
  41. package/dist/bin/package/sync-layout.mjs.map +1 -1
  42. package/dist/bin/skills.mjs +404 -217
  43. package/dist/bin/skills.mjs.map +1 -1
  44. package/dist/bin/xy.mjs +874 -214
  45. package/dist/bin/xy.mjs.map +1 -1
  46. package/dist/bin/xyex.mjs +874 -214
  47. package/dist/bin/xyex.mjs.map +1 -1
  48. package/dist/lib/latestVersions.d.ts +6 -2
  49. package/dist/lib/latestVersions.d.ts.map +1 -1
  50. package/dist/lib/ruleCommandRegistry.d.ts +6 -0
  51. package/dist/lib/ruleCommandRegistry.d.ts.map +1 -1
  52. package/dist/lib/secure/downloadDiskCache.d.ts +15 -0
  53. package/dist/lib/secure/downloadDiskCache.d.ts.map +1 -0
  54. package/dist/lib/secure/downloadGate.d.ts +18 -0
  55. package/dist/lib/secure/downloadGate.d.ts.map +1 -0
  56. package/dist/lib/secure/fetchPackageSecurityMetadata.d.ts +31 -3
  57. package/dist/lib/secure/fetchPackageSecurityMetadata.d.ts.map +1 -1
  58. package/dist/lib/secure/index.d.ts +2 -0
  59. package/dist/lib/secure/index.d.ts.map +1 -1
  60. package/dist/lib/secure/interfaces.d.ts +2 -0
  61. package/dist/lib/secure/interfaces.d.ts.map +1 -1
  62. package/dist/lib/toolchainVersion.d.ts.map +1 -1
  63. package/dist/lib/updo/applyUpdates.d.ts.map +1 -1
  64. package/dist/lib/updo/isRegistryDependencySpec.d.ts +8 -0
  65. package/dist/lib/updo/isRegistryDependencySpec.d.ts.map +1 -0
  66. package/dist/lib/updo/runUpdo.d.ts.map +1 -1
  67. package/dist/xy/common/index.d.ts.map +1 -1
  68. package/dist/xy/common/npm-org/index.d.ts +5 -0
  69. package/dist/xy/common/npm-org/index.d.ts.map +1 -0
  70. package/dist/xy/common/npm-org/lintCommand.d.ts +3 -0
  71. package/dist/xy/common/npm-org/lintCommand.d.ts.map +1 -0
  72. package/dist/xy/stability.d.ts +2 -0
  73. package/dist/xy/stability.d.ts.map +1 -1
  74. package/package.json +15 -15
@@ -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.24/node_modules/skills/dist/_chunks/rolldown-runtime.mjs
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.24/node_modules/skills/dist/_chunks/libs/@clack/core.mjs
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.24/node_modules/skills/dist/_chunks/libs/@clack/prompts.mjs
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.24/node_modules/skills/dist/_chunks/libs/picocolors.mjs
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.24/node_modules/skills/dist/_chunks/libs/@kwsites/file-exists.mjs
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.24/node_modules/skills/dist/_chunks/libs/@simple-git/args-pathspec.mjs
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.24/node_modules/skills/dist/_chunks/libs/@kwsites/promise-deferred.mjs
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.24/node_modules/skills/dist/_chunks/libs/@simple-git/argv-parser.mjs
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.24/node_modules/skills/dist/_chunks/libs/simple-git.mjs
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.24/node_modules/skills/dist/_chunks/libs/xdg-basedir.mjs
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.24/node_modules/skills/dist/_chunks/libs/@vercel/detect-agent.mjs
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.0/node_modules/yaml/dist/nodes/identity.js
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.0/node_modules/yaml/dist/visit.js
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.0/node_modules/yaml/dist/doc/directives.js
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.0/node_modules/yaml/dist/doc/anchors.js
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.0/node_modules/yaml/dist/doc/applyReviver.js
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.0/node_modules/yaml/dist/nodes/toJS.js
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.0/node_modules/yaml/dist/nodes/Node.js
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.0/node_modules/yaml/dist/nodes/Alias.js
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 { anchors, doc, maxAliasCount } = ctx;
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
- let data = anchors.get(source);
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.0/node_modules/yaml/dist/nodes/Scalar.js
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.0/node_modules/yaml/dist/doc/createNode.js
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.0/node_modules/yaml/dist/nodes/Collection.js
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.0/node_modules/yaml/dist/stringify/stringifyComment.js
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.0/node_modules/yaml/dist/stringify/foldFlowLines.js
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.0/node_modules/yaml/dist/stringify/stringifyString.js
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.0/node_modules/yaml/dist/stringify/stringify.js
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.0/node_modules/yaml/dist/stringify/stringifyPair.js
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.0/node_modules/yaml/dist/log.js
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.0/node_modules/yaml/dist/schema/yaml-1.1/merge.js
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.0/node_modules/yaml/dist/nodes/addPairToJSMap.js
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.0/node_modules/yaml/dist/nodes/Pair.js
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.0/node_modules/yaml/dist/stringify/stringifyCollection.js
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.0/node_modules/yaml/dist/nodes/YAMLMap.js
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.0/node_modules/yaml/dist/schema/common/map.js
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.0/node_modules/yaml/dist/nodes/YAMLSeq.js
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.0/node_modules/yaml/dist/schema/common/seq.js
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.0/node_modules/yaml/dist/schema/common/string.js
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.0/node_modules/yaml/dist/schema/common/null.js
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.0/node_modules/yaml/dist/schema/core/bool.js
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.0/node_modules/yaml/dist/stringify/stringifyNumber.js
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.0/node_modules/yaml/dist/schema/core/float.js
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.0/node_modules/yaml/dist/schema/core/int.js
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.0/node_modules/yaml/dist/schema/core/schema.js
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.0/node_modules/yaml/dist/schema/json/schema.js
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.0/node_modules/yaml/dist/schema/yaml-1.1/binary.js
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.0/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
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.0/node_modules/yaml/dist/schema/yaml-1.1/omap.js
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.0/node_modules/yaml/dist/schema/yaml-1.1/bool.js
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.0/node_modules/yaml/dist/schema/yaml-1.1/float.js
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.0/node_modules/yaml/dist/schema/yaml-1.1/int.js
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.0/node_modules/yaml/dist/schema/yaml-1.1/set.js
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.0/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
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.0/node_modules/yaml/dist/schema/yaml-1.1/schema.js
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.0/node_modules/yaml/dist/schema/tags.js
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.0/node_modules/yaml/dist/schema/Schema.js
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.0/node_modules/yaml/dist/stringify/stringifyDocument.js
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.0/node_modules/yaml/dist/doc/Document.js
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.0/node_modules/yaml/dist/errors.js
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.0/node_modules/yaml/dist/compose/resolve-props.js
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.0/node_modules/yaml/dist/compose/util-contains-newline.js
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.0/node_modules/yaml/dist/compose/util-flow-indent-check.js
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.0/node_modules/yaml/dist/compose/util-map-includes.js
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.0/node_modules/yaml/dist/compose/resolve-block-map.js
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.0/node_modules/yaml/dist/compose/resolve-block-seq.js
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.0/node_modules/yaml/dist/compose/resolve-end.js
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.0/node_modules/yaml/dist/compose/resolve-flow-collection.js
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.0/node_modules/yaml/dist/compose/compose-collection.js
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.0/node_modules/yaml/dist/compose/resolve-block-scalar.js
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.0/node_modules/yaml/dist/compose/resolve-flow-scalar.js
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 foldLines(source);
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 foldLines(source.slice(1, -1)).replace(/''/g, "'");
10108
+ return unfoldLines(source.slice(1, -1)).replace(/''/g, "'");
10107
10109
  }
10108
- function foldLines(source) {
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 lookbehind here and in the `re` RegExp is to
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, which doesn't support this yet:
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 first, line;
10121
+ let trimEnd, trimBoth;
10117
10122
  try {
10118
- first = new RegExp("(.*?)(?<![ ])[ ]*\r?\n", "sy");
10119
- line = new RegExp("[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?\n", "sy");
10123
+ trimEnd = new RegExp("(?<![ ])[ ]+$");
10124
+ trimBoth = new RegExp("^[ ]+|(?<![ ])[ ]+$", "g");
10120
10125
  } catch {
10121
- first = /(.*?)[ \t]*\r?\n/sy;
10122
- line = /[ \t]*(.*?)[ \t]*\r?\n/sy;
10126
+ trimEnd = /[ \t]+$/;
10127
+ trimBoth = /^[ \t]+|[ \t]+$/g;
10123
10128
  }
10124
- let match = first.exec(source);
10125
- if (!match) return source;
10126
- let res = match[1];
10129
+ let res = match[1].replace(trimEnd, "");
10127
10130
  let sep = " ";
10128
- let pos = first.lastIndex;
10129
- line.lastIndex = pos;
10131
+ let pos = line.lastIndex;
10130
10132
  while (match = line.exec(source)) {
10131
- if (match[1] === "") {
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 + match[1];
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.0/node_modules/yaml/dist/compose/compose-scalar.js
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.0/node_modules/yaml/dist/compose/util-empty-scalar-position.js
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.0/node_modules/yaml/dist/compose/compose-node.js
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.0/node_modules/yaml/dist/compose/compose-doc.js
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.0/node_modules/yaml/dist/compose/composer.js
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.0/node_modules/yaml/dist/parse/cst-scalar.js
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.0/node_modules/yaml/dist/parse/cst-stringify.js
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.0/node_modules/yaml/dist/parse/cst-visit.js
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.0/node_modules/yaml/dist/parse/cst.js
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.0/node_modules/yaml/dist/parse/lexer.js
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.0/node_modules/yaml/dist/parse/line-counter.js
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.0/node_modules/yaml/dist/parse/parser.js
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.0/node_modules/yaml/dist/public-api.js
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.0/node_modules/yaml/dist/index.js
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.24/node_modules/skills/dist/cli.mjs
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();
@@ -16572,21 +16575,30 @@ async function searchMultiselect(options) {
16572
16575
  lastRenderHeight = countVisualRowsForLines(lines, process.stdout.columns);
16573
16576
  };
16574
16577
  const cleanup = () => {
16578
+ rl.removeListener("close", closeHandler);
16575
16579
  process.stdin.removeListener("keypress", keypressHandler);
16576
16580
  if (process.stdin.isTTY) process.stdin.setRawMode(false);
16577
16581
  rl.close();
16578
16582
  };
16583
+ let settled = false;
16579
16584
  const submit = () => {
16585
+ if (settled) return;
16580
16586
  if (required && selected.size === 0 && lockedValues.length === 0) return;
16587
+ settled = true;
16581
16588
  render("submit");
16582
16589
  cleanup();
16583
16590
  resolve([...lockedValues, ...Array.from(selected)]);
16584
16591
  };
16585
16592
  const cancel = () => {
16593
+ if (settled) return;
16594
+ settled = true;
16586
16595
  render("cancel");
16587
16596
  cleanup();
16588
16597
  resolve(cancelSymbol);
16589
16598
  };
16599
+ const closeHandler = () => {
16600
+ cancel();
16601
+ };
16590
16602
  const keypressHandler = (_str, key) => {
16591
16603
  if (!key) return;
16592
16604
  const entries = buildSearchEntries(getFiltered(), selectGroups, collapsedGroups);
@@ -16647,6 +16659,11 @@ async function searchMultiselect(options) {
16647
16659
  }
16648
16660
  };
16649
16661
  process.stdin.on("keypress", keypressHandler);
16662
+ rl.on("close", closeHandler);
16663
+ if (process.stdin.readableEnded || process.stdin.destroyed) {
16664
+ cancel();
16665
+ return;
16666
+ }
16650
16667
  render();
16651
16668
  });
16652
16669
  }
@@ -17307,6 +17324,11 @@ function isPathSafe$2(basePath, targetPath) {
17307
17324
  function pathsOverlap(pathA, pathB) {
17308
17325
  return isPathSafe$2(pathA, pathB) || isPathSafe$2(pathB, pathA);
17309
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
+ }
17310
17332
  async function isDirEntryOrSymlinkToDir(entry, entryPath) {
17311
17333
  if (entry.isDirectory()) return true;
17312
17334
  if (!entry.isSymbolicLink()) return false;
@@ -17442,15 +17464,14 @@ async function installSkillForAgent(skill, agentType, options = {}) {
17442
17464
  canonicalPath: canonicalDir,
17443
17465
  mode: "symlink"
17444
17466
  };
17445
- if (!isGlobal && !isUniversalAgent(agentType)) {
17446
- if (!existsSync(join$1(cwd, agents[agentType].skillsDir.split("/")[0])) && agentType !== "claude-code") return {
17447
- success: true,
17448
- path: canonicalDir,
17449
- canonicalPath: canonicalDir,
17450
- mode: "symlink",
17451
- skipped: true
17452
- };
17453
- }
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
+ };
17454
17475
  if (!await createSymlink(canonicalDir, agentDir)) {
17455
17476
  await cleanAndCreateDirectory(agentDir);
17456
17477
  await copyDirectory(skill.path, agentDir, agentType);
@@ -17480,15 +17501,14 @@ async function installSkillForAgent(skill, agentType, options = {}) {
17480
17501
  function stripIgnoredEveFrontmatter(raw) {
17481
17502
  const { data, content } = parseFrontmatter(raw);
17482
17503
  const eveData = {};
17504
+ if (typeof data.name === "string") eveData.name = data.name;
17483
17505
  if (typeof data.description === "string") eveData.description = data.description;
17484
17506
  if (typeof data.license === "string") eveData.license = data.license;
17485
- if (data.metadata && typeof data.metadata === "object" && !Array.isArray(data.metadata)) {
17486
- const metadata = Object.fromEntries(Object.entries(data.metadata).filter((entry) => typeof entry[1] === "string"));
17487
- if (Object.keys(metadata).length > 0) eveData.metadata = metadata;
17488
- }
17489
- const keys = Object.keys(eveData);
17490
- if (keys.length === 0) return content.replace(/^\r?\n/u, "");
17491
- 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, "")}`;
17492
17512
  }
17493
17513
  async function copyDirectory(src, dest, agentType) {
17494
17514
  await mkdir(dest, { recursive: true });
@@ -17722,15 +17742,14 @@ async function installBlobSkillForAgent(skill, agentType, options = {}) {
17722
17742
  canonicalPath: canonicalDir,
17723
17743
  mode: "symlink"
17724
17744
  };
17725
- if (!isGlobal && !isUniversalAgent(agentType)) {
17726
- if (!existsSync(join$1(cwd, agents[agentType].skillsDir.split("/")[0])) && agentType !== "claude-code") return {
17727
- success: true,
17728
- path: canonicalDir,
17729
- canonicalPath: canonicalDir,
17730
- mode: "symlink",
17731
- skipped: true
17732
- };
17733
- }
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
+ };
17734
17753
  if (!await createSymlink(canonicalDir, agentDir)) {
17735
17754
  await cleanAndCreateDirectory(agentDir);
17736
17755
  await writeSkillFiles(agentDir);
@@ -18623,6 +18642,29 @@ function computeSnapshotHash(files) {
18623
18642
  }
18624
18643
  return hash.digest("hex");
18625
18644
  }
18645
+ function getSkillFolderPath(skillMdPath) {
18646
+ const pathLower = skillMdPath.toLowerCase();
18647
+ if (pathLower.endsWith("/skill.md")) return skillMdPath.slice(0, -9);
18648
+ if (pathLower === "skill.md") return "";
18649
+ return skillMdPath.slice(0, -9);
18650
+ }
18651
+ function isInstallableSnapshotPath(path) {
18652
+ const parts = path.split("/");
18653
+ const fileName = parts.at(-1);
18654
+ if (!fileName || SNAPSHOT_EXCLUDED_FILES.has(fileName)) return false;
18655
+ return parts.slice(0, -1).every((part) => !SNAPSHOT_EXCLUDED_DIRS.has(part));
18656
+ }
18657
+ function hasCompleteNestedSnapshot(tree, skillMdPath, files) {
18658
+ const folderPath = getSkillFolderPath(skillMdPath);
18659
+ if (!folderPath) return true;
18660
+ const folderPrefix = `${folderPath}/`;
18661
+ const snapshotPaths = new Set(files.map((file) => file.path));
18662
+ return tree.tree.every((entry) => {
18663
+ if (entry.type !== "blob" || !entry.path.startsWith(folderPrefix)) return true;
18664
+ const relativePath = entry.path.slice(folderPrefix.length);
18665
+ return !isInstallableSnapshotPath(relativePath) || snapshotPaths.has(relativePath);
18666
+ });
18667
+ }
18626
18668
  async function tryBlobInstall(ownerRepo, options = {}) {
18627
18669
  if (options.ref !== void 0) return null;
18628
18670
  const tree = await fetchRepoTree(ownerRepo, options.ref, options.getToken);
@@ -18679,10 +18721,10 @@ async function tryBlobInstall(ownerRepo, options = {}) {
18679
18721
  };
18680
18722
  }));
18681
18723
  if (!downloads.every((d) => d.download !== null)) return null;
18724
+ if (!downloads.every(({ skill, download }) => hasCompleteNestedSnapshot(tree, skill.mdPath, download.files))) return null;
18682
18725
  return {
18683
18726
  skills: downloads.map(({ skill, download }) => {
18684
- const mdPathLower = skill.mdPath.toLowerCase();
18685
- const files = (mdPathLower.endsWith("/skill.md") ? skill.mdPath.slice(0, -9) : mdPathLower === "skill.md" ? "" : skill.mdPath.slice(0, -9)) ? download.files : download.files.filter((file) => file.path.toLowerCase() === "skill.md");
18727
+ const files = getSkillFolderPath(skill.mdPath) ? download.files : download.files.filter((file) => file.path.toLowerCase() === "skill.md");
18686
18728
  return {
18687
18729
  name: skill.name,
18688
18730
  description: skill.description,
@@ -18842,11 +18884,21 @@ function buildResultLines(results, targetAgents) {
18842
18884
  const { universal, symlinked: symlinkAgents } = splitAgentsByType(targetAgents);
18843
18885
  const successfulSymlinks = results.filter((r) => !r.symlinkFailed && !r.skipped && !universal.includes(r.agent)).map((r) => r.agent);
18844
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);
18845
18888
  if (universal.length > 0) lines.push(` ${import_picocolors.default.green("universal:")} ${formatList$1(universal)}`);
18846
18889
  if (successfulSymlinks.length > 0) lines.push(` ${import_picocolors.default.dim("symlinked:")} ${formatList$1(successfulSymlinks)}`);
18847
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)")}`);
18848
18892
  return lines;
18849
18893
  }
18894
+ function exitInstallationCancelled() {
18895
+ cancel("Installation cancelled");
18896
+ if (!process.stdin.isTTY) {
18897
+ console.error("Interactive prompt required but stdin is not a TTY. Nothing was installed. Use --agent <name> (or --agent '*') and -y to run non-interactively.");
18898
+ process.exit(1);
18899
+ }
18900
+ process.exit(0);
18901
+ }
18850
18902
  async function promptForAgents(message, choices) {
18851
18903
  let lastSelected;
18852
18904
  try {
@@ -18905,6 +18957,17 @@ async function selectAgentsInteractive(options) {
18905
18957
  } catch {}
18906
18958
  return selected;
18907
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
+ }
18908
18971
  function isSkillsShPackUrl(url) {
18909
18972
  try {
18910
18973
  const parsed = new URL(url);
@@ -18979,10 +19042,7 @@ async function handleWellKnownSkills(source, url, options, spinner) {
18979
19042
  maxVisible: 20,
18980
19043
  selectAll: true
18981
19044
  });
18982
- if (isCancelled$1(selected)) {
18983
- cancel("Installation cancelled");
18984
- process.exit(0);
18985
- }
19045
+ if (isCancelled$1(selected)) exitInstallationCancelled();
18986
19046
  selectedSkills = selected;
18987
19047
  }
18988
19048
  let targetAgents;
@@ -19012,10 +19072,7 @@ async function handleWellKnownSkills(source, url, options, spinner) {
19012
19072
  value: key,
19013
19073
  label: config.displayName
19014
19074
  })));
19015
- if (isCancel(selected)) {
19016
- cancel("Installation cancelled");
19017
- process.exit(0);
19018
- }
19075
+ if (isCancelled$1(selected)) exitInstallationCancelled();
19019
19076
  targetAgents = selected;
19020
19077
  }
19021
19078
  else if (installedAgents.length === 1 || options.yes) {
@@ -19026,10 +19083,7 @@ async function handleWellKnownSkills(source, url, options, spinner) {
19026
19083
  } else log.info(`Installing to: ${installedAgents.map((a) => import_picocolors.default.cyan(agents[a].displayName)).join(", ")}`);
19027
19084
  } else {
19028
19085
  const selected = await selectAgentsInteractive({ global: options.global });
19029
- if (isCancel(selected)) {
19030
- cancel("Installation cancelled");
19031
- process.exit(0);
19032
- }
19086
+ if (isCancelled$1(selected)) exitInstallationCancelled();
19033
19087
  targetAgents = selected;
19034
19088
  }
19035
19089
  }
@@ -19048,10 +19102,7 @@ async function handleWellKnownSkills(source, url, options, spinner) {
19048
19102
  hint: "Install in home directory (available across all projects)"
19049
19103
  }]
19050
19104
  });
19051
- if (isCancel(scope)) {
19052
- cancel("Installation cancelled");
19053
- process.exit(0);
19054
- }
19105
+ if (isCancel(scope)) exitInstallationCancelled();
19055
19106
  installGlobally = scope;
19056
19107
  }
19057
19108
  let installMode = options.copy ? "copy" : "symlink";
@@ -19069,10 +19120,7 @@ async function handleWellKnownSkills(source, url, options, spinner) {
19069
19120
  hint: "Independent copies for each agent"
19070
19121
  }]
19071
19122
  });
19072
- if (isCancel(modeChoice)) {
19073
- cancel("Installation cancelled");
19074
- process.exit(0);
19075
- }
19123
+ if (isCancel(modeChoice)) exitInstallationCancelled();
19076
19124
  installMode = modeChoice;
19077
19125
  } else if (uniqueDirs.size <= 1) installMode = "copy";
19078
19126
  const cwd = process.cwd();
@@ -19102,10 +19150,7 @@ async function handleWellKnownSkills(source, url, options, spinner) {
19102
19150
  note(summaryLines.join("\n"), "Installation Summary");
19103
19151
  if (!options.yes) {
19104
19152
  const confirmed = await confirm({ message: "Proceed with installation?" });
19105
- if (isCancel(confirmed) || !confirmed) {
19106
- cancel("Installation cancelled");
19107
- process.exit(0);
19108
- }
19153
+ if (isCancel(confirmed) || !confirmed) exitInstallationCancelled();
19109
19154
  }
19110
19155
  const sourceIdentifier = wellKnownProvider.getSourceIdentifier(url);
19111
19156
  const wellKnownPrivacyPromise = isSourcePrivate(sourceIdentifier).catch(() => null);
@@ -19126,6 +19171,7 @@ async function handleWellKnownSkills(source, url, options, spinner) {
19126
19171
  console.log();
19127
19172
  const successful = results.filter((r) => r.success);
19128
19173
  const failed = results.filter((r) => !r.success);
19174
+ const successfulSkillNames = new Set(successful.map((r) => r.skill));
19129
19175
  const skillFiles = {};
19130
19176
  for (const skill of selectedSkills) skillFiles[skill.installName] = skill.sourceUrl;
19131
19177
  if (await wellKnownPrivacyPromise !== true) track({
@@ -19140,7 +19186,6 @@ async function handleWellKnownSkills(source, url, options, spinner) {
19140
19186
  sourceType: "well-known"
19141
19187
  });
19142
19188
  if (successful.length > 0 && installGlobally) {
19143
- const successfulSkillNames = new Set(successful.map((r) => r.skill));
19144
19189
  for (const skill of selectedSkills) if (successfulSkillNames.has(skill.installName)) try {
19145
19190
  await addSkillToLock(skill.installName, {
19146
19191
  source: sourceIdentifier,
@@ -19153,7 +19198,6 @@ async function handleWellKnownSkills(source, url, options, spinner) {
19153
19198
  } catch {}
19154
19199
  }
19155
19200
  if (successful.length > 0 && !installGlobally) {
19156
- const successfulSkillNames = new Set(successful.map((r) => r.skill));
19157
19201
  for (const skill of selectedSkills) if (successfulSkillNames.has(skill.installName)) try {
19158
19202
  const matchingResult = successful.find((r) => r.skill === skill.installName);
19159
19203
  const installDir = matchingResult?.canonicalPath || matchingResult?.path;
@@ -19220,6 +19264,40 @@ async function handleWellKnownSkills(source, url, options, spinner) {
19220
19264
  async function runAdd(args, options = {}) {
19221
19265
  const source = args[0];
19222
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);
19223
19301
  const showInstallTip = () => {
19224
19302
  if (installTipShown) return;
19225
19303
  log.message(import_picocolors.default.dim("Tip: use the --yes (-y) and --global (-g) flags to install without prompts."));
@@ -19235,8 +19313,9 @@ async function runAdd(args, options = {}) {
19235
19313
  console.log(import_picocolors.default.dim(" Example:"));
19236
19314
  console.log(` ${import_picocolors.default.cyan("npx skills add")} ${import_picocolors.default.yellow("vercel-labs/agent-skills")}`);
19237
19315
  console.log();
19238
- process.exit(1);
19316
+ emitJsonAndExit(1, "Missing required argument: source");
19239
19317
  }
19318
+ const explicitlySelectedAgents = new Set(options.agent?.includes("*") ? [] : options.agent ?? []);
19240
19319
  if (options.all) {
19241
19320
  options.skill = ["*"];
19242
19321
  options.agent = ["*"];
@@ -19250,13 +19329,19 @@ async function runAdd(args, options = {}) {
19250
19329
  if (mappedAgent) options.agent = ensureUniversalAgents([mappedAgent]);
19251
19330
  }
19252
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.");
19253
19334
  console.log();
19254
19335
  if (!agentResult.isAgent) intro(import_picocolors.default.bgCyan(import_picocolors.default.black(" skills ")));
19255
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");
19256
19337
  else if (!process.stdin.isTTY) showInstallTip();
19257
19338
  let tempDir = null;
19258
19339
  try {
19259
- const spinner$3 = spinner();
19340
+ const spinner$3 = jsonMode ? {
19341
+ start: () => {},
19342
+ stop: () => {},
19343
+ message: () => {}
19344
+ } : spinner();
19260
19345
  spinner$3.start("Parsing source…");
19261
19346
  const parsed = parseSource(source);
19262
19347
  let directDownload = parsed.type === "download";
@@ -19270,6 +19355,7 @@ async function runAdd(args, options = {}) {
19270
19355
  return isRepoPrivate(ownerRepo.owner, ownerRepo.repo).catch(() => null);
19271
19356
  })();
19272
19357
  if (parsed.type === "well-known") {
19358
+ if (jsonMode) emitJsonAndExit(1, "--json is not yet supported for well-known skill sources.");
19273
19359
  if (await handleWellKnownSkills(source, parsed.url, options, spinner$3)) return;
19274
19360
  directDownload = true;
19275
19361
  }
@@ -19285,7 +19371,7 @@ async function runAdd(args, options = {}) {
19285
19371
  if (!existsSync(parsed.localPath)) {
19286
19372
  spinner$3.stop(import_picocolors.default.red("Path not found"));
19287
19373
  outro(import_picocolors.default.red(`Local path does not exist: ${parsed.localPath}`));
19288
- process.exit(1);
19374
+ emitJsonAndExit(1, `Local path does not exist: ${parsed.localPath}`);
19289
19375
  }
19290
19376
  spinner$3.stop("Local path validated");
19291
19377
  spinner$3.start("Discovering skills…");
@@ -19304,15 +19390,18 @@ async function runAdd(args, options = {}) {
19304
19390
  fullDepth: options.fullDepth
19305
19391
  });
19306
19392
  } else if (parsed.type === "github" && !options.fullDepth) {
19393
+ let attemptedBlobInstall = false;
19307
19394
  const BLOB_ALLOWED_OWNERS = [
19308
19395
  "vercel",
19309
19396
  "vercel-labs",
19310
- "heygen-com"
19397
+ "heygen-com",
19398
+ "remotion-dev"
19311
19399
  ];
19312
19400
  const ownerRepo = getOwnerRepo(parsed);
19313
19401
  const owner = ownerRepo?.split("/")[0]?.toLowerCase();
19314
19402
  const isSelfHostedRepo = !!ownerRepo && Object.hasOwn(BLOB_ALLOWED_REPOS, ownerRepo.toLowerCase());
19315
19403
  if (ownerRepo && owner && (isSelfHostedRepo || BLOB_ALLOWED_OWNERS.includes(owner))) {
19404
+ attemptedBlobInstall = true;
19316
19405
  spinner$3.start("Fetching skills…");
19317
19406
  blobResult = await tryBlobInstall(ownerRepo, {
19318
19407
  subpath: parsed.subpath,
@@ -19321,13 +19410,13 @@ async function runAdd(args, options = {}) {
19321
19410
  getToken: getGitHubToken,
19322
19411
  includeInternal
19323
19412
  });
19324
- if (!blobResult) spinner$3.stop(import_picocolors.default.dim("Falling back to clone…"));
19325
19413
  }
19326
19414
  if (blobResult) {
19327
19415
  skills = blobResult.skills;
19328
19416
  spinner$3.stop(`Found ${import_picocolors.default.green(skills.length)} skill${skills.length > 1 ? "s" : ""}`);
19329
19417
  } else {
19330
- spinner$3.start("Cloning repository…");
19418
+ if (attemptedBlobInstall) spinner$3.message("Cloning repository…");
19419
+ else spinner$3.start("Cloning repository…");
19331
19420
  tempDir = await cloneRepo(parsed.url, parsed.ref);
19332
19421
  spinner$3.stop("Repository cloned");
19333
19422
  spinner$3.start("Discovering skills…");
@@ -19350,7 +19439,7 @@ async function runAdd(args, options = {}) {
19350
19439
  spinner$3.stop(import_picocolors.default.red("No skills found"));
19351
19440
  outro(import_picocolors.default.red("No valid skills found. Skills require a SKILL.md with name and description."));
19352
19441
  await cleanup(tempDir);
19353
- process.exit(1);
19442
+ emitJsonAndExit(1, "No valid skills found. Skills require a SKILL.md with name and description.");
19354
19443
  }
19355
19444
  if (!blobResult) spinner$3.stop(`Found ${import_picocolors.default.green(skills.length)} skill${skills.length > 1 ? "s" : ""}`);
19356
19445
  if (options.list) {
@@ -19383,7 +19472,7 @@ async function runAdd(args, options = {}) {
19383
19472
  console.log();
19384
19473
  outro("Use --skill <name> to install specific skills");
19385
19474
  await cleanup(tempDir);
19386
- process.exit(0);
19475
+ emitJsonAndExit(0);
19387
19476
  }
19388
19477
  let selectedSkills;
19389
19478
  if (options.skill?.includes("*")) {
@@ -19391,12 +19480,19 @@ async function runAdd(args, options = {}) {
19391
19480
  log.info(`Installing all ${skills.length} skills`);
19392
19481
  } else if (options.skill && options.skill.length > 0) {
19393
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
+ }
19394
19490
  if (selectedSkills.length === 0) {
19395
19491
  log.error(`No matching skills found for: ${options.skill.join(", ")}`);
19396
19492
  log.info("Available skills:");
19397
19493
  for (const s of skills) log.message(` - ${getSkillDisplayName(s)}`);
19398
19494
  await cleanup(tempDir);
19399
- process.exit(1);
19495
+ emitJsonAndExit(1, `No matching skills found for: ${options.skill.join(", ")}`);
19400
19496
  }
19401
19497
  log.info(`Selected ${selectedSkills.length} skill${selectedSkills.length !== 1 ? "s" : ""}: ${selectedSkills.map((s) => import_picocolors.default.cyan(getSkillDisplayName(s))).join(", ")}`);
19402
19498
  } else if (skills.length === 1) {
@@ -19434,9 +19530,8 @@ async function runAdd(args, options = {}) {
19434
19530
  selectAll: true
19435
19531
  });
19436
19532
  if (isCancelled$1(selected)) {
19437
- cancel("Installation cancelled");
19438
19533
  await cleanup(tempDir);
19439
- process.exit(0);
19534
+ exitInstallationCancelled();
19440
19535
  }
19441
19536
  selectedSkills = selected;
19442
19537
  }
@@ -19453,7 +19548,7 @@ async function runAdd(args, options = {}) {
19453
19548
  log.error(`Invalid agents: ${invalidAgents.join(", ")}`);
19454
19549
  log.info(`Valid agents: ${validAgents.join(", ")}`);
19455
19550
  await cleanup(tempDir);
19456
- process.exit(1);
19551
+ emitJsonAndExit(1, `Invalid agents: ${invalidAgents.join(", ")}`);
19457
19552
  }
19458
19553
  targetAgents = options.agent;
19459
19554
  } else {
@@ -19467,21 +19562,21 @@ async function runAdd(args, options = {}) {
19467
19562
  initialValue: true
19468
19563
  });
19469
19564
  if (isCancel(useEve)) {
19470
- cancel("Installation cancelled");
19471
19565
  await cleanup(tempDir);
19472
- process.exit(0);
19566
+ exitInstallationCancelled();
19473
19567
  }
19474
19568
  if (useEve) {
19475
19569
  targetAgents = ["eve"];
19570
+ if (!options.yes) explicitlySelectedAgents.add("eve");
19476
19571
  log.info(`Installing to: ${import_picocolors.default.cyan(EVE_AGENT_LABEL)}`);
19477
19572
  } else {
19478
19573
  const selected = await selectAgentsInteractive({ global: options.global });
19479
- if (isCancel(selected)) {
19480
- cancel("Installation cancelled");
19574
+ if (isCancelled$1(selected)) {
19481
19575
  await cleanup(tempDir);
19482
- process.exit(0);
19576
+ exitInstallationCancelled();
19483
19577
  }
19484
19578
  targetAgents = selected;
19579
+ for (const agent of targetAgents) explicitlySelectedAgents.add(agent);
19485
19580
  }
19486
19581
  } else if (installedAgents.length === 0) if (options.yes) {
19487
19582
  targetAgents = validAgents;
@@ -19492,12 +19587,12 @@ async function runAdd(args, options = {}) {
19492
19587
  value: key,
19493
19588
  label: config.displayName
19494
19589
  })));
19495
- if (isCancel(selected)) {
19496
- cancel("Installation cancelled");
19590
+ if (isCancelled$1(selected)) {
19497
19591
  await cleanup(tempDir);
19498
- process.exit(0);
19592
+ exitInstallationCancelled();
19499
19593
  }
19500
19594
  targetAgents = selected;
19595
+ for (const agent of targetAgents) explicitlySelectedAgents.add(agent);
19501
19596
  }
19502
19597
  else if (installedAgents.length === 1 || options.yes) {
19503
19598
  targetAgents = ensureUniversalAgents(installedAgents);
@@ -19507,15 +19602,18 @@ async function runAdd(args, options = {}) {
19507
19602
  } else log.info(`Installing to: ${installedAgents.map((a) => import_picocolors.default.cyan(agents[a].displayName)).join(", ")}`);
19508
19603
  } else {
19509
19604
  const selected = await selectAgentsInteractive({ global: options.global });
19510
- if (isCancel(selected)) {
19511
- cancel("Installation cancelled");
19605
+ if (isCancelled$1(selected)) {
19512
19606
  await cleanup(tempDir);
19513
- process.exit(0);
19607
+ exitInstallationCancelled();
19514
19608
  }
19515
19609
  targetAgents = selected;
19610
+ for (const agent of targetAgents) explicitlySelectedAgents.add(agent);
19516
19611
  }
19517
19612
  }
19518
- if (options.subagent && options.subagent.length > 0 && !targetAgents.includes("eve")) targetAgents = [...targetAgents, "eve"];
19613
+ if (options.subagent && options.subagent.length > 0) {
19614
+ explicitlySelectedAgents.add("eve");
19615
+ if (!targetAgents.includes("eve")) targetAgents = [...targetAgents, "eve"];
19616
+ }
19519
19617
  let eveSubagentTargets = [void 0];
19520
19618
  if (targetAgents.includes("eve")) {
19521
19619
  const availableSubagents = getEveSubagents(process.cwd());
@@ -19536,9 +19634,8 @@ async function runAdd(args, options = {}) {
19536
19634
  required: true
19537
19635
  });
19538
19636
  if (isCancel(selectedSubagents)) {
19539
- cancel("Installation cancelled");
19540
19637
  await cleanup(tempDir);
19541
- process.exit(0);
19638
+ exitInstallationCancelled();
19542
19639
  }
19543
19640
  eveSubagentTargets = selectedSubagents.map((s) => s === "" ? void 0 : s);
19544
19641
  }
@@ -19560,9 +19657,8 @@ async function runAdd(args, options = {}) {
19560
19657
  }]
19561
19658
  });
19562
19659
  if (isCancel(scope)) {
19563
- cancel("Installation cancelled");
19564
19660
  await cleanup(tempDir);
19565
- process.exit(0);
19661
+ exitInstallationCancelled();
19566
19662
  }
19567
19663
  installGlobally = scope;
19568
19664
  }
@@ -19583,9 +19679,8 @@ async function runAdd(args, options = {}) {
19583
19679
  }]
19584
19680
  });
19585
19681
  if (isCancel(modeChoice)) {
19586
- cancel("Installation cancelled");
19587
19682
  await cleanup(tempDir);
19588
- process.exit(0);
19683
+ exitInstallationCancelled();
19589
19684
  }
19590
19685
  installMode = modeChoice;
19591
19686
  } else if (uniqueDirs.size <= 1 || allEve) installMode = "copy";
@@ -19642,8 +19737,10 @@ async function runAdd(args, options = {}) {
19642
19737
  }
19643
19738
  console.log();
19644
19739
  note(summaryLines.join("\n"), "Installation Summary");
19740
+ let auditDataForJson = null;
19645
19741
  try {
19646
19742
  const auditData = await auditPromise;
19743
+ auditDataForJson = auditData;
19647
19744
  if (auditData && ownerRepoForAudit) {
19648
19745
  const securityLines = buildSecurityLines(auditData, selectedSkills.map((s) => ({
19649
19746
  slug: getSkillDisplayName(s),
@@ -19655,9 +19752,8 @@ async function runAdd(args, options = {}) {
19655
19752
  if (!options.yes) {
19656
19753
  const confirmed = await confirm({ message: "Proceed with installation?" });
19657
19754
  if (isCancel(confirmed) || !confirmed) {
19658
- cancel("Installation cancelled");
19659
19755
  await cleanup(tempDir);
19660
- process.exit(0);
19756
+ exitInstallationCancelled();
19661
19757
  }
19662
19758
  }
19663
19759
  spinner$3.start("Installing skills…");
@@ -19673,12 +19769,14 @@ async function runAdd(args, options = {}) {
19673
19769
  }, agent, {
19674
19770
  global: installGlobally,
19675
19771
  mode: installMode,
19676
- eveSubagent: subagent
19772
+ eveSubagent: subagent,
19773
+ createMissingAgentRoot: explicitlySelectedAgents.has(agent)
19677
19774
  });
19678
19775
  } else result = await installSkillForAgent(skill, agent, {
19679
19776
  global: installGlobally,
19680
19777
  mode: installMode,
19681
- eveSubagent: subagent
19778
+ eveSubagent: subagent,
19779
+ createMissingAgentRoot: explicitlySelectedAgents.has(agent)
19682
19780
  });
19683
19781
  results.push({
19684
19782
  skill: getSkillDisplayName(skill),
@@ -19691,6 +19789,7 @@ async function runAdd(args, options = {}) {
19691
19789
  console.log();
19692
19790
  const successful = results.filter((r) => r.success);
19693
19791
  const failed = results.filter((r) => !r.success);
19792
+ const successfulSkillNames = new Set(successful.map((r) => r.skill));
19694
19793
  const skillFiles = {};
19695
19794
  for (const skill of selectedSkills) if (blobResult && "repoPath" in skill) skillFiles[skill.name] = skill.repoPath;
19696
19795
  else if (tempDir && skill.path === tempDir) skillFiles[skill.name] = "SKILL.md";
@@ -19718,8 +19817,16 @@ async function runAdd(args, options = {}) {
19718
19817
  skillFiles: JSON.stringify(skillFiles),
19719
19818
  metadata: options.metadata
19720
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
+ }
19721
19829
  if (successful.length > 0 && installGlobally && normalizedSource) {
19722
- const successfulSkillNames = new Set(successful.map((r) => r.skill));
19723
19830
  let cachedTree;
19724
19831
  if (parsed.type === "github" && !blobResult) cachedTree = await fetchRepoTree(normalizedSource, parsed.ref, getGitHubToken);
19725
19832
  for (const skill of selectedSkills) {
@@ -19750,13 +19857,13 @@ async function runAdd(args, options = {}) {
19750
19857
  }
19751
19858
  }
19752
19859
  if (successful.length > 0 && !installGlobally && !directDownload) {
19753
- const successfulSkillNames = new Set(successful.map((r) => r.skill));
19754
19860
  const eveSubagents = targetAgents.includes("eve") ? eveSubagentTargets.map((s) => s ?? "") : void 0;
19755
19861
  const recordSubagents = eveSubagents && (eveSubagents.length > 1 || eveSubagents.some((s) => s !== ""));
19756
19862
  for (const skill of selectedSkills) {
19757
19863
  const skillDisplayName = getSkillDisplayName(skill);
19758
19864
  if (successfulSkillNames.has(skillDisplayName)) try {
19759
- const computedHash = blobResult && "snapshotHash" in skill ? skill.snapshotHash : await computeSkillFolderHash(skill.path);
19865
+ const computedHash = installedSkillHashes.get(skillDisplayName);
19866
+ if (computedHash === void 0) continue;
19760
19867
  const skillPathValue = skillFiles[skill.name];
19761
19868
  await addSkillToLocalLock(skill.name, {
19762
19869
  source: lockSource || parsed.url,
@@ -19770,6 +19877,37 @@ async function runAdd(args, options = {}) {
19770
19877
  } catch {}
19771
19878
  }
19772
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
+ }
19773
19911
  if (successful.length > 0) {
19774
19912
  const bySkill = /* @__PURE__ */ new Map();
19775
19913
  const groupedResults = {};
@@ -19847,8 +19985,10 @@ async function runAdd(args, options = {}) {
19847
19985
  } else log.error(error instanceof Error ? error.message : "Unknown error occurred");
19848
19986
  showInstallTip();
19849
19987
  outro(import_picocolors.default.red("Installation failed"));
19850
- process.exit(1);
19988
+ emitJsonAndExit(1, error instanceof GitCloneError ? `Failed to clone repository\n${error.message}` : error instanceof Error ? error.message : "Unknown error occurred");
19851
19989
  } finally {
19990
+ if (jsonMode) process.removeListener("exit", emitJsonOnExit);
19991
+ restoreStdout();
19852
19992
  await cleanup(tempDir);
19853
19993
  }
19854
19994
  }
@@ -19936,6 +20076,7 @@ function parseAddOptions(args) {
19936
20076
  errors.push("--metadata must be valid JSON");
19937
20077
  }
19938
20078
  } else if (arg === "--full-depth") options.fullDepth = true;
20079
+ else if (arg === "--json") options.json = true;
19939
20080
  else if (arg === "--copy") options.copy = true;
19940
20081
  else if (arg === "--subagent") {
19941
20082
  options.subagent = options.subagent || [];
@@ -20815,7 +20956,11 @@ async function removeCommand(skillNames, options) {
20815
20956
  const scanDir = async (dir) => {
20816
20957
  try {
20817
20958
  const entries = await readdir(dir, { withFileTypes: true });
20818
- for (const entry of entries) if (entry.isDirectory()) skillNamesSet.add(entry.name);
20959
+ for (const entry of entries) {
20960
+ if (!entry.isDirectory() || entry.name.startsWith(".")) continue;
20961
+ if (!await hasSkillMd(join$1(dir, entry.name))) continue;
20962
+ skillNamesSet.add(entry.name);
20963
+ }
20819
20964
  } catch (err) {
20820
20965
  if (err instanceof Error && err.code !== "ENOENT") log.warn(`Could not scan directory ${dir}: ${err.message}`);
20821
20966
  }
@@ -22174,6 +22319,7 @@ ${BOLD}Add Options:${RESET}
22174
22319
  --subagent <names> Install to Eve subagents (use 'root' for the root agent)
22175
22320
  --all Shorthand for --skill '*' --agent '*' -y
22176
22321
  --full-depth Search all subdirectories even when a root SKILL.md exists
22322
+ --json Output results as JSON (machine-readable, no ANSI codes)
22177
22323
 
22178
22324
  ${BOLD}Use Options:${RESET}
22179
22325
  -s, --skill <skill> Specify the skill to use
@@ -22207,6 +22353,7 @@ ${BOLD}Examples:${RESET}
22207
22353
  ${DIM}$${RESET} skills add vercel-labs/agent-skills -g
22208
22354
  ${DIM}$${RESET} skills add vercel-labs/agent-skills --agent claude-code cursor
22209
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}
22210
22357
  ${DIM}$${RESET} skills remove ${DIM}# interactive remove${RESET}
22211
22358
  ${DIM}$${RESET} skills remove web-design ${DIM}# remove by name${RESET}
22212
22359
  ${DIM}$${RESET} skills rm --global frontend-design
@@ -22341,10 +22488,11 @@ async function main() {
22341
22488
  case "install":
22342
22489
  case "a":
22343
22490
  case "add": {
22344
- if (!inAgent) showLogo();
22345
22491
  const { source: addSource, options: addOpts, errors } = parseAddOptions(restArgs);
22492
+ if (!inAgent && !addOpts.json) showLogo();
22346
22493
  if (errors.length > 0) {
22347
22494
  for (const error of errors) console.error(`Error: ${error}`);
22495
+ if (addOpts.json) console.log("[]");
22348
22496
  process.exitCode = 1;
22349
22497
  break;
22350
22498
  }
@@ -22392,7 +22540,7 @@ async function main() {
22392
22540
  process.exitCode = 1;
22393
22541
  }
22394
22542
  }
22395
- var import_dist, import_picocolors, DEFAULT_GITHUB_HOST, SOURCE_ALIASES, CSI_RE, OSC_RE, DCS_PM_APC_RE, SIMPLE_ESC_RE, C1_RE, CONTROL_RE, silentOutput, S_STEP_ACTIVE, S_STEP_CANCEL, S_STEP_SUBMIT, S_RADIO_ACTIVE, S_RADIO_INACTIVE, S_BULLET, S_BAR, S_BAR_H, cancelSymbol, DEFAULT_CLONE_TIMEOUT_MS, ALLOWED_GIT_PROTOCOLS, CLONE_TIMEOUT_MS, execFileAsync, GitCloneError, LOCAL_LOCK_FILE, CURRENT_VERSION$1, AGENTS_DIR$1, SKILLS_SUBDIR, SKIP_DIRS, AGENT_PROJECT_SKILL_DIRS, home, configHome, codexHome, claudeHome, vibeHome, hermesHome, autohandHome, grokHome, zedAppDataHome, zedFlatpakConfigHome, agents, EVE_SUBAGENTS_DIR, EXCLUDE_FILES$1, EXCLUDE_DIRS$1, isExcluded$1, TELEMETRY_URL, AUDIT_URL, cliVersion, detectedAgentName, pendingTelemetry, import_dist$1, cachedResult, agentNameToType, ProviderRegistryImpl, ZIP_LOCAL_FILE_HEADER, ZIP_CENTRAL_DIRECTORY_HEADER, ZIP_END_OF_CENTRAL_DIRECTORY, ZIP64_END_OF_CENTRAL_DIRECTORY, ZIP64_END_OF_CENTRAL_DIRECTORY_LOCATOR, ZIP_END_MIN_SIZE, ZIP_MAX_COMMENT_SIZE, CP437_HIGH_BYTES, ArchiveValidationError, DISCOVERY_SCHEMA_V2, MAX_ARCHIVE_UNPACKED_BYTES, MAX_ARCHIVE_FILES, DISCOVERY_TIMEOUT_MS, WellKnownScopeNotFoundError, WellKnownProvider, wellKnownProvider, DEFAULT_DOWNLOAD_MAX_BYTES, DEFAULT_EXTRACT_MAX_BYTES, DEFAULT_EXTRACT_MAX_FILES, FETCH_TIMEOUT_MS, AGENTS_DIR, LOCK_FILE, CURRENT_VERSION, DOWNLOAD_BASE_URL, BLOB_ALLOWED_REPOS, FETCH_TIMEOUT, GH_API_MAX_BUFFER, _rateLimitedThisSession, PRIORITY_PREFIXES, version$1, isCancelled$1, EVE_AGENT_LABEL, RESET$3, BOLD$3, DIM$3, TEXT$2, CYAN$1, SEARCH_API_BASE, SEARCH_RESULT_LIMIT, GITHUB_OWNER_PATTERN, HIDE_CURSOR, SHOW_CURSOR, CLEAR_DOWN, MOVE_UP, MOVE_TO_COL, isCancelled, RESET$2, BOLD$2, DIM$2, CYAN, YELLOW, __dirname$1, RESET$1, BOLD$1, DIM$1, TEXT$1, BLOB_ALLOWED_OWNERS, EXCLUDE_FILES, EXCLUDE_DIRS, USE_AGENT_CONFIGS, SUPPORTED_USE_AGENTS, UseCommandError, __dirname, VERSION, RESET, BOLD, DIM, TEXT, LOGO_LINES, GRAYS;
22543
+ var import_dist, import_picocolors, DEFAULT_GITHUB_HOST, SOURCE_ALIASES, CSI_RE, OSC_RE, DCS_PM_APC_RE, SIMPLE_ESC_RE, C1_RE, CONTROL_RE, silentOutput, S_STEP_ACTIVE, S_STEP_CANCEL, S_STEP_SUBMIT, S_RADIO_ACTIVE, S_RADIO_INACTIVE, S_BULLET, S_BAR, S_BAR_H, cancelSymbol, DEFAULT_CLONE_TIMEOUT_MS, ALLOWED_GIT_PROTOCOLS, CLONE_TIMEOUT_MS, execFileAsync, GitCloneError, LOCAL_LOCK_FILE, CURRENT_VERSION$1, AGENTS_DIR$1, SKILLS_SUBDIR, SKIP_DIRS, AGENT_PROJECT_SKILL_DIRS, home, configHome, codexHome, claudeHome, vibeHome, hermesHome, autohandHome, grokHome, sarvamHome, zedAppDataHome, zedFlatpakConfigHome, agents, EVE_SUBAGENTS_DIR, EXCLUDE_FILES$1, EXCLUDE_DIRS$1, isExcluded$1, TELEMETRY_URL, AUDIT_URL, cliVersion, detectedAgentName, pendingTelemetry, import_dist$1, cachedResult, agentNameToType, ProviderRegistryImpl, ZIP_LOCAL_FILE_HEADER, ZIP_CENTRAL_DIRECTORY_HEADER, ZIP_END_OF_CENTRAL_DIRECTORY, ZIP64_END_OF_CENTRAL_DIRECTORY, ZIP64_END_OF_CENTRAL_DIRECTORY_LOCATOR, ZIP_END_MIN_SIZE, ZIP_MAX_COMMENT_SIZE, CP437_HIGH_BYTES, ArchiveValidationError, DISCOVERY_SCHEMA_V2, MAX_ARCHIVE_UNPACKED_BYTES, MAX_ARCHIVE_FILES, DISCOVERY_TIMEOUT_MS, WellKnownScopeNotFoundError, WellKnownProvider, wellKnownProvider, DEFAULT_DOWNLOAD_MAX_BYTES, DEFAULT_EXTRACT_MAX_BYTES, DEFAULT_EXTRACT_MAX_FILES, FETCH_TIMEOUT_MS, AGENTS_DIR, LOCK_FILE, CURRENT_VERSION, DOWNLOAD_BASE_URL, BLOB_ALLOWED_REPOS, FETCH_TIMEOUT, GH_API_MAX_BUFFER, _rateLimitedThisSession, PRIORITY_PREFIXES, SNAPSHOT_EXCLUDED_FILES, SNAPSHOT_EXCLUDED_DIRS, version$1, isCancelled$1, EVE_AGENT_LABEL, RESET$3, BOLD$3, DIM$3, TEXT$2, CYAN$1, SEARCH_API_BASE, SEARCH_RESULT_LIMIT, GITHUB_OWNER_PATTERN, HIDE_CURSOR, SHOW_CURSOR, CLEAR_DOWN, MOVE_UP, MOVE_TO_COL, isCancelled, RESET$2, BOLD$2, DIM$2, CYAN, YELLOW, __dirname$1, RESET$1, BOLD$1, DIM$1, TEXT$1, BLOB_ALLOWED_OWNERS, EXCLUDE_FILES, EXCLUDE_DIRS, USE_AGENT_CONFIGS, SUPPORTED_USE_AGENTS, UseCommandError, __dirname, VERSION, RESET, BOLD, DIM, TEXT, LOGO_LINES, GRAYS;
22396
22544
  var init_cli = __esmMin((() => {
22397
22545
  init_rolldown_runtime();
22398
22546
  init_core();
@@ -22468,11 +22616,13 @@ var init_cli = __esmMin((() => {
22468
22616
  ".codex/skills",
22469
22617
  ".commandcode/skills",
22470
22618
  ".continue/skills",
22619
+ ".factory/skills",
22471
22620
  ".github/skills",
22472
22621
  ".goose/skills",
22473
22622
  ".grok/skills",
22474
22623
  ".iflow/skills",
22475
22624
  ".junie/skills",
22625
+ ".kilo/skills",
22476
22626
  ".kilocode/skills",
22477
22627
  ".kimchi/skills",
22478
22628
  ".kiro/skills",
@@ -22498,6 +22648,7 @@ var init_cli = __esmMin((() => {
22498
22648
  hermesHome = process.env.HERMES_HOME?.trim() || join$1(home, ".hermes");
22499
22649
  autohandHome = process.env.AUTOHAND_HOME?.trim() || join$1(home, ".autohand");
22500
22650
  grokHome = process.env.GROK_HOME?.trim() || join$1(home, ".grok");
22651
+ sarvamHome = process.env.SARVAM_HOME?.trim() || join$1(home, ".sarvam");
22501
22652
  zedAppDataHome = process.env.APPDATA?.trim();
22502
22653
  zedFlatpakConfigHome = process.env.FLATPAK_XDG_CONFIG_HOME?.trim();
22503
22654
  agents = {
@@ -22524,6 +22675,7 @@ var init_cli = __esmMin((() => {
22524
22675
  displayName: "Antigravity",
22525
22676
  skillsDir: ".agents/skills",
22526
22677
  globalSkillsDir: join$1(home, ".gemini/antigravity/skills"),
22678
+ showInUniversalPrompt: false,
22527
22679
  detectInstalled: async () => {
22528
22680
  return existsSync(join$1(home, ".gemini/antigravity"));
22529
22681
  }
@@ -22533,6 +22685,7 @@ var init_cli = __esmMin((() => {
22533
22685
  displayName: "Antigravity CLI",
22534
22686
  skillsDir: ".agents/skills",
22535
22687
  globalSkillsDir: join$1(home, ".gemini/antigravity-cli/skills"),
22688
+ showInUniversalPrompt: false,
22536
22689
  detectInstalled: async () => {
22537
22690
  return existsSync(join$1(home, ".gemini/antigravity-cli"));
22538
22691
  }
@@ -22578,6 +22731,7 @@ var init_cli = __esmMin((() => {
22578
22731
  displayName: "Claude Code",
22579
22732
  skillsDir: ".claude/skills",
22580
22733
  globalSkillsDir: join$1(claudeHome, "skills"),
22734
+ createProjectSkillsDirByDefault: true,
22581
22735
  detectInstalled: async () => {
22582
22736
  return existsSync(claudeHome);
22583
22737
  }
@@ -22695,6 +22849,7 @@ var init_cli = __esmMin((() => {
22695
22849
  displayName: "Deep Agents",
22696
22850
  skillsDir: ".agents/skills",
22697
22851
  globalSkillsDir: join$1(home, ".deepagents/agent/skills"),
22852
+ showInUniversalPrompt: false,
22698
22853
  detectInstalled: async () => {
22699
22854
  return existsSync(join$1(home, ".deepagents"));
22700
22855
  }
@@ -22721,7 +22876,7 @@ var init_cli = __esmMin((() => {
22721
22876
  droid: {
22722
22877
  name: "droid",
22723
22878
  displayName: "Droid",
22724
- skillsDir: ".factory/skills",
22879
+ skillsDir: ".agents/skills",
22725
22880
  globalSkillsDir: join$1(home, ".factory/skills"),
22726
22881
  detectInstalled: async () => {
22727
22882
  return existsSync(join$1(home, ".factory"));
@@ -22756,6 +22911,15 @@ var init_cli = __esmMin((() => {
22756
22911
  return existsSync(join$1(home, ".forge"));
22757
22912
  }
22758
22913
  },
22914
+ fx: {
22915
+ name: "fx",
22916
+ displayName: "fx",
22917
+ skillsDir: ".fx/skills",
22918
+ globalSkillsDir: join$1(home, ".fx/skills"),
22919
+ detectInstalled: async () => {
22920
+ return existsSync(join$1(home, ".fx"));
22921
+ }
22922
+ },
22759
22923
  "gemini-cli": {
22760
22924
  name: "gemini-cli",
22761
22925
  displayName: "Gemini CLI",
@@ -22840,10 +23004,10 @@ var init_cli = __esmMin((() => {
22840
23004
  kilo: {
22841
23005
  name: "kilo",
22842
23006
  displayName: "Kilo Code",
22843
- skillsDir: ".kilocode/skills",
22844
- globalSkillsDir: join$1(home, ".kilocode/skills"),
23007
+ skillsDir: ".agents/skills",
23008
+ globalSkillsDir: join$1(home, ".kilo/skills"),
22845
23009
  detectInstalled: async () => {
22846
- return existsSync(join$1(home, ".kilocode"));
23010
+ return existsSync(join$1(home, ".kilo")) || existsSync(join$1(home, ".kilocode"));
22847
23011
  }
22848
23012
  },
22849
23013
  kimchi: {
@@ -23055,6 +23219,16 @@ var init_cli = __esmMin((() => {
23055
23219
  return existsSync(join$1(home, ".roo"));
23056
23220
  }
23057
23221
  },
23222
+ "sarvam-code": {
23223
+ name: "sarvam-code",
23224
+ displayName: "Sarvam Code",
23225
+ skillsDir: ".agents/skills",
23226
+ globalSkillsDir: join$1(home, ".agents/skills"),
23227
+ showInUniversalPrompt: false,
23228
+ detectInstalled: async () => {
23229
+ return existsSync(sarvamHome);
23230
+ }
23231
+ },
23058
23232
  "tabnine-cli": {
23059
23233
  name: "tabnine-cli",
23060
23234
  displayName: "Tabnine CLI",
@@ -23734,11 +23908,13 @@ var init_cli = __esmMin((() => {
23734
23908
  ".codex/skills/",
23735
23909
  ".commandcode/skills/",
23736
23910
  ".continue/skills/",
23911
+ ".factory/skills/",
23737
23912
  ".github/skills/",
23738
23913
  ".goose/skills/",
23739
23914
  ".grok/skills/",
23740
23915
  ".iflow/skills/",
23741
23916
  ".junie/skills/",
23917
+ ".kilo/skills/",
23742
23918
  ".kilocode/skills/",
23743
23919
  ".kimchi/skills/",
23744
23920
  ".kiro/skills/",
@@ -23756,7 +23932,13 @@ var init_cli = __esmMin((() => {
23756
23932
  ".zcode/skills/",
23757
23933
  ".zencoder/skills/"
23758
23934
  ];
23759
- version$1 = "1.5.24";
23935
+ SNAPSHOT_EXCLUDED_FILES = /* @__PURE__ */ new Set(["metadata.json"]);
23936
+ SNAPSHOT_EXCLUDED_DIRS = /* @__PURE__ */ new Set([
23937
+ ".git",
23938
+ "__pycache__",
23939
+ "__pypackages__"
23940
+ ]);
23941
+ version$1 = "1.5.26";
23760
23942
  isCancelled$1 = (value) => typeof value === "symbol";
23761
23943
  EVE_AGENT_LABEL = "eve agent";
23762
23944
  setVersion(version$1);
@@ -23787,7 +23969,8 @@ var init_cli = __esmMin((() => {
23787
23969
  BLOB_ALLOWED_OWNERS = [
23788
23970
  "vercel",
23789
23971
  "vercel-labs",
23790
- "heygen-com"
23972
+ "heygen-com",
23973
+ "remotion-dev"
23791
23974
  ];
23792
23975
  EXCLUDE_FILES = /* @__PURE__ */ new Set(["metadata.json"]);
23793
23976
  EXCLUDE_DIRS = /* @__PURE__ */ new Set([
@@ -23803,6 +23986,10 @@ var init_cli = __esmMin((() => {
23803
23986
  codex: {
23804
23987
  command: "codex",
23805
23988
  args: []
23989
+ },
23990
+ "sarvam-code": {
23991
+ command: "sarvam-code",
23992
+ args: []
23806
23993
  }
23807
23994
  };
23808
23995
  SUPPORTED_USE_AGENTS = Object.keys(USE_AGENT_CONFIGS);
@@ -23833,7 +24020,7 @@ var init_cli = __esmMin((() => {
23833
24020
  main().finally(() => flushTelemetry().then(() => process.exit(process.exitCode ?? 0)));
23834
24021
  }));
23835
24022
  //#endregion
23836
- //#region ../../node_modules/.pnpm/skills@1.5.24/node_modules/skills/bin/cli.mjs
24023
+ //#region ../../node_modules/.pnpm/skills@1.5.26/node_modules/skills/bin/cli.mjs
23837
24024
  if (module.enableCompileCache && !process.env.NODE_DISABLE_COMPILE_CACHE) try {
23838
24025
  module.enableCompileCache();
23839
24026
  } catch {}