@ariestools/toolchain 8.7.15 → 8.7.16

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.
@@ -12,12 +12,12 @@ import path, { basename, dirname, extname, isAbsolute, join, normalize as normal
12
12
  import os, { homedir, platform, tmpdir } from "os";
13
13
  import { existsSync, mkdirSync, readFileSync, readdirSync, writeFileSync } from "fs";
14
14
  import { fileURLToPath } from "url";
15
- import { createHash } from "node:crypto";
16
15
  import * as readline from "readline";
17
16
  import { Writable } from "stream";
18
17
  import { promisify } from "util";
19
18
  import { access, chmod, cp, lstat, mkdir, mkdtemp, readFile, readdir, readlink, realpath, rm, stat, symlink, writeFile } from "fs/promises";
20
- import { createHash as createHash$1 } from "crypto";
19
+ import { createHash } from "crypto";
20
+ import { createHash as createHash$1 } from "node:crypto";
21
21
  import { gunzipSync, inflateRawSync } from "node:zlib";
22
22
  //#region \0rolldown/runtime.js
23
23
  var __defProp$2 = Object.defineProperty;
@@ -41,7 +41,7 @@ var __exportAll = (all, no_symbols) => {
41
41
  };
42
42
  var __require$1 = /* #__PURE__ */ (() => createRequire(import.meta.url))();
43
43
  //#endregion
44
- //#region ../../node_modules/.pnpm/skills@1.5.17/node_modules/skills/dist/_chunks/rolldown-runtime.mjs
44
+ //#region ../../node_modules/.pnpm/skills@1.5.19/node_modules/skills/dist/_chunks/rolldown-runtime.mjs
45
45
  var __create, __defProp$1, __getOwnPropDesc$1, __getOwnPropNames$1, __getProtoOf, __hasOwnProp$1, __commonJSMin, __copyProps$1, __toESM, __require;
46
46
  var init_rolldown_runtime = __esmMin((() => {
47
47
  __create = Object.create;
@@ -68,7 +68,7 @@ var init_rolldown_runtime = __esmMin((() => {
68
68
  __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
69
69
  }));
70
70
  //#endregion
71
- //#region ../../node_modules/.pnpm/skills@1.5.17/node_modules/skills/dist/_chunks/libs/@clack/core.mjs
71
+ //#region ../../node_modules/.pnpm/skills@1.5.19/node_modules/skills/dist/_chunks/libs/@clack/core.mjs
72
72
  function wrapAnsi(string, columns, options) {
73
73
  return String(string).normalize().split(CRLF_OR_LF).map((line) => exec(line, columns, options)).join("\n");
74
74
  }
@@ -150,7 +150,7 @@ function runValidation(e, n) {
150
150
  }
151
151
  return e(n);
152
152
  }
153
- var getCodePointsLength, isFullWidth, isWideNotCJKTNotEmoji, ANSI_RE, CONTROL_RE$1, CJKT_WIDE_RE, TAB_RE, EMOJI_RE, LATIN_RE, MODIFIER_RE, NO_TRUNCATION$1, getStringTruncatedWidth, NO_TRUNCATION, fastStringWidth, ESC, CSI, END_CODE, ANSI_ESCAPE_BELL, ANSI_CSI, ANSI_OSC, ANSI_SGR_TERMINATOR, ANSI_ESCAPE_LINK, GROUP_REGEX, getClosingCode, wrapAnsiCode, wrapAnsiHyperlink, wrapWord, stringVisibleTrimSpacesRight, exec, CRLF_OR_LF, require_src$2, import_src$2, settings, R$1, CANCEL_SYMBOL, getColumns, getRows, V$1, r$1, u$2, a, n$1;
153
+ var getCodePointsLength, isFullWidth, isWideNotCJKTNotEmoji, ANSI_RE, CONTROL_RE$1, CJKT_WIDE_RE, TAB_RE, EMOJI_RE, LATIN_RE, MODIFIER_RE, NO_TRUNCATION$1, getStringTruncatedWidth, NO_TRUNCATION, fastStringWidth, ESC, CSI, END_CODE, ANSI_ESCAPE_BELL, ANSI_CSI, ANSI_OSC, ANSI_SGR_TERMINATOR, ANSI_ESCAPE_LINK, GROUP_REGEX, getClosingCode, wrapAnsiCode, wrapAnsiHyperlink, wrapWord, stringVisibleTrimSpacesRight, exec, CRLF_OR_LF, require_src$2, import_src$2, settings, R$1, CANCEL_SYMBOL, getColumns, getRows, V$1, r$1, a, n$1;
154
154
  var init_core = __esmMin((() => {
155
155
  init_rolldown_runtime();
156
156
  getCodePointsLength = (() => {
@@ -695,60 +695,6 @@ var init_core = __esmMin((() => {
695
695
  });
696
696
  }
697
697
  };
698
- u$2 = class u extends V$1 {
699
- options;
700
- cursor = 0;
701
- #t;
702
- getGroupItems(t) {
703
- return this.options.filter((r) => r.group === t);
704
- }
705
- isGroupSelected(t) {
706
- const r = this.getGroupItems(t), e = this.value;
707
- return e === void 0 ? false : r.every((s) => e.includes(s.value));
708
- }
709
- toggleValue() {
710
- const t = this.options[this.cursor];
711
- if (t !== void 0) if (this.value === void 0 && (this.value = []), t.group === true) {
712
- const r = t.value, e = this.getGroupItems(r);
713
- this.isGroupSelected(r) ? this.value = this.value.filter((s) => e.findIndex((i) => i.value === s) === -1) : this.value = [...this.value, ...e.map((s) => s.value)], this.value = Array.from(new Set(this.value));
714
- } else {
715
- const r = this.value.includes(t.value);
716
- this.value = r ? this.value.filter((e) => e !== t.value) : [...this.value, t.value];
717
- }
718
- }
719
- constructor(t) {
720
- super(t, false);
721
- const { options: r } = t;
722
- this.#t = t.selectableGroups !== false, this.options = Object.entries(r).flatMap(([e, s]) => [{
723
- value: e,
724
- group: true,
725
- label: e
726
- }, ...s.map((i) => ({
727
- ...i,
728
- group: e
729
- }))]), this.value = [...t.initialValues ?? []], this.cursor = Math.max(this.options.findIndex(({ value: e }) => e === t.cursorAt), this.#t ? 0 : 1), this.on("cursor", (e) => {
730
- switch (e) {
731
- case "left":
732
- case "up": {
733
- this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1;
734
- const s = this.options[this.cursor]?.group === true;
735
- !this.#t && s && (this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1);
736
- break;
737
- }
738
- case "down":
739
- case "right": {
740
- this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;
741
- const s = this.options[this.cursor]?.group === true;
742
- !this.#t && s && (this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1);
743
- break;
744
- }
745
- case "space":
746
- this.toggleValue();
747
- break;
748
- }
749
- });
750
- }
751
- };
752
698
  a = class extends V$1 {
753
699
  options;
754
700
  cursor = 0;
@@ -825,7 +771,7 @@ var init_core = __esmMin((() => {
825
771
  };
826
772
  }));
827
773
  //#endregion
828
- //#region ../../node_modules/.pnpm/skills@1.5.17/node_modules/skills/dist/_chunks/libs/@clack/prompts.mjs
774
+ //#region ../../node_modules/.pnpm/skills@1.5.19/node_modules/skills/dist/_chunks/libs/@clack/prompts.mjs
829
775
  function isUnicodeSupported() {
830
776
  if (process$1.platform !== "win32") return process$1.env.TERM !== "linux";
831
777
  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";
@@ -834,7 +780,7 @@ function formatInstructionFooter(o, e) {
834
780
  const r = [`${e ? `${styleText("cyan", S_BAR$1)} ` : ""}${o.join(" • ")}`];
835
781
  return e && r.push(styleText("cyan", S_BAR_END)), r;
836
782
  }
837
- var import_src$1, unicode, isCI$1, unicodeOr, S_STEP_ACTIVE$1, S_STEP_CANCEL$1, S_STEP_ERROR, S_STEP_SUBMIT$1, S_BAR_START, S_BAR$1, S_BAR_END, S_RADIO_ACTIVE$1, S_RADIO_INACTIVE$1, S_CHECKBOX_ACTIVE, S_CHECKBOX_SELECTED, S_CHECKBOX_INACTIVE, S_BAR_H$1, S_CORNER_TOP_RIGHT, S_CONNECT_LEFT, S_CORNER_BOTTOM_RIGHT, S_CORNER_BOTTOM_LEFT, S_INFO, S_SUCCESS, S_WARN, S_ERROR, symbol, symbolBar, I$1, limitOptions, confirm, MULTISELECT_INSTRUCTIONS, m, multiselect$1, groupMultiselect, log, cancel, intro, outro, W$1, C$1, note, W$2, spinner, SELECT_INSTRUCTIONS, c$2, select;
783
+ var import_src$1, unicode, isCI$1, unicodeOr, S_STEP_ACTIVE$1, S_STEP_CANCEL$1, S_STEP_ERROR, S_STEP_SUBMIT$1, S_BAR_START, S_BAR$1, S_BAR_END, S_RADIO_ACTIVE$1, S_RADIO_INACTIVE$1, S_CHECKBOX_ACTIVE, S_CHECKBOX_SELECTED, S_CHECKBOX_INACTIVE, S_BAR_H$1, S_CORNER_TOP_RIGHT, S_CONNECT_LEFT, S_CORNER_BOTTOM_RIGHT, S_CORNER_BOTTOM_LEFT, S_INFO, S_SUCCESS, S_WARN, S_ERROR, symbol, symbolBar, I$1, limitOptions, confirm, MULTISELECT_INSTRUCTIONS, m, multiselect$1, log, cancel, intro, outro, W$1, C$1, note, W$2, spinner, SELECT_INSTRUCTIONS, c$2, select;
838
784
  var init_prompts = __esmMin((() => {
839
785
  init_core();
840
786
  import_src$1 = require_src$2();
@@ -1035,100 +981,6 @@ ${l}
1035
981
  }).join(`
1036
982
  ${n}`)}
1037
983
  ${h}
1038
- `;
1039
- }
1040
- }
1041
- }
1042
- }).prompt();
1043
- };
1044
- groupMultiselect = (o) => {
1045
- const { selectableGroups: h = true, groupSpacing: x = 0 } = o, m = (n, l, g = []) => {
1046
- const a = n.label ?? String(n.value), t = typeof n.group == "string", s = t && (g[g.indexOf(n) + 1] ?? { group: true }), u = t && s && s.group === true;
1047
- let r = "", c = "";
1048
- t && (h ? (r = u ? `${S_BAR_END} ` : `${S_BAR$1} `, c = u ? " " : `${S_BAR$1} `) : r = " ");
1049
- let i = "";
1050
- if (x > 0 && !t && (i = `
1051
- `.repeat(x)), l === "active") return wrapTextWithPrefix(o.output, `${a}${n.hint ? ` ${styleText("dim", `(${n.hint})`)}` : ""}`, `${i}${styleText("dim", r)} `, `${i}${styleText("dim", r)}${styleText("cyan", S_CHECKBOX_ACTIVE)} `, `${i}${styleText("dim", c)} `);
1052
- if (l === "group-active") return wrapTextWithPrefix(o.output, a, `${i}${r} `, `${i}${r}${styleText("cyan", S_CHECKBOX_ACTIVE)} `, `${i}${c} `, (d) => styleText("dim", d));
1053
- if (l === "group-active-selected") return wrapTextWithPrefix(o.output, a, `${i}${r} `, `${i}${r}${styleText("green", S_CHECKBOX_SELECTED)} `, `${i}${c} `, (d) => styleText("dim", d));
1054
- if (l === "selected") {
1055
- const d = t || h ? styleText("green", S_CHECKBOX_SELECTED) : "";
1056
- return wrapTextWithPrefix(o.output, `${a}${n.hint ? ` (${n.hint})` : ""}`, `${i}${styleText("dim", r)} `, `${i}${styleText("dim", r)}${d} `, `${i}${styleText("dim", c)} `, (S) => styleText("dim", S));
1057
- }
1058
- if (l === "cancelled") return `${styleText(["strikethrough", "dim"], a)}`;
1059
- if (l === "active-selected") return wrapTextWithPrefix(o.output, `${a}${n.hint ? ` ${styleText("dim", `(${n.hint})`)}` : ""}`, `${i}${styleText("dim", r)} `, `${i}${styleText("dim", r)}${styleText("green", S_CHECKBOX_SELECTED)} `, `${i}${styleText("dim", c)} `);
1060
- if (l === "submitted") return `${styleText("dim", a)}`;
1061
- const f = t || h ? styleText("dim", S_CHECKBOX_INACTIVE) : "";
1062
- return wrapTextWithPrefix(o.output, a, `${i}${styleText("dim", r)} `, `${i}${styleText("dim", r)}${f} `, `${i}${styleText("dim", c)} `, (d) => styleText("dim", d));
1063
- }, y = o.required ?? true, I = o.showInstructions ?? true;
1064
- return new u$2({
1065
- options: o.options,
1066
- signal: o.signal,
1067
- input: o.input,
1068
- output: o.output,
1069
- initialValues: o.initialValues,
1070
- required: y,
1071
- cursorAt: o.cursorAt,
1072
- selectableGroups: h,
1073
- validate(n) {
1074
- if (y && (n === void 0 || n.length === 0)) return `Please select at least one option.
1075
- ${styleText("reset", styleText("dim", `Press ${styleText([
1076
- "gray",
1077
- "bgWhite",
1078
- "inverse"
1079
- ], " space ")} to select, ${styleText("gray", styleText(["bgWhite", "inverse"], " enter "))} to submit`))}`;
1080
- },
1081
- render() {
1082
- const n = o.withGuide ?? settings.withGuide, l = `${n ? `${styleText("gray", S_BAR$1)}
1083
- ` : ""}${symbol(this.state)} ${o.message}
1084
- `, g = this.value ?? [], a = (t, s) => {
1085
- const u = this.options, r = g.includes(t.value) || t.group === true && this.isGroupSelected(`${t.value}`);
1086
- return !s && typeof t.group == "string" && this.options[this.cursor]?.value === t.group ? m(t, r ? "group-active-selected" : "group-active", u) : s && r ? m(t, "active-selected", u) : r ? m(t, "selected", u) : m(t, s ? "active" : "inactive", u);
1087
- };
1088
- switch (this.state) {
1089
- case "submit": {
1090
- const t = this.options.filter(({ value: u }) => g.includes(u)).map((u) => m(u, "submitted")), s = t.length === 0 ? "" : ` ${t.join(styleText("dim", ", "))}`;
1091
- return `${l}${n ? styleText("gray", S_BAR$1) : ""}${s}`;
1092
- }
1093
- case "cancel": {
1094
- const t = this.options.filter(({ value: s }) => g.includes(s)).map((s) => m(s, "cancelled")).join(styleText("dim", ", "));
1095
- return `${l}${n ? `${styleText("gray", S_BAR$1)} ` : ""}${t.trim() ? `${t}${n ? `
1096
- ${styleText("gray", S_BAR$1)}` : ""}` : ""}`;
1097
- }
1098
- case "error": {
1099
- const t = n ? `${styleText("yellow", S_BAR$1)} ` : "", s = this.error.split(`
1100
- `).map((i, f) => f === 0 ? `${n ? `${styleText("yellow", S_BAR_END)} ` : ""}${styleText("yellow", i)}` : ` ${i}`).join(`
1101
- `), u = l.split(`
1102
- `).length, r = s.split(`
1103
- `).length + 1;
1104
- return `${l}${t}${limitOptions({
1105
- output: o.output,
1106
- options: this.options,
1107
- cursor: this.cursor,
1108
- maxItems: o.maxItems,
1109
- columnPadding: t.length,
1110
- rowPadding: u + r,
1111
- style: a
1112
- }).join(`
1113
- ${t}`)}
1114
- ${s}
1115
- `;
1116
- }
1117
- default: {
1118
- const t = n ? `${styleText("cyan", S_BAR$1)} ` : "", s = l.split(`
1119
- `).length, u = I ? formatInstructionFooter(MULTISELECT_INSTRUCTIONS, n) : n ? [styleText("cyan", S_BAR_END)] : [], r = u.join(`
1120
- `), c = u.length + 1;
1121
- return `${l}${t}${limitOptions({
1122
- output: o.output,
1123
- options: this.options,
1124
- cursor: this.cursor,
1125
- maxItems: o.maxItems,
1126
- columnPadding: t.length,
1127
- rowPadding: s + c,
1128
- style: a
1129
- }).join(`
1130
- ${t}`)}
1131
- ${r}
1132
984
  `;
1133
985
  }
1134
986
  }
@@ -1366,7 +1218,7 @@ ${b}
1366
1218
  `${styleText("gray", S_BAR$1)}`;
1367
1219
  }));
1368
1220
  //#endregion
1369
- //#region ../../node_modules/.pnpm/skills@1.5.17/node_modules/skills/dist/_chunks/libs/picocolors.mjs
1221
+ //#region ../../node_modules/.pnpm/skills@1.5.19/node_modules/skills/dist/_chunks/libs/picocolors.mjs
1370
1222
  var require_picocolors;
1371
1223
  var init_picocolors = __esmMin((() => {
1372
1224
  init_rolldown_runtime();
@@ -1440,7 +1292,7 @@ var init_picocolors = __esmMin((() => {
1440
1292
  }));
1441
1293
  }));
1442
1294
  //#endregion
1443
- //#region ../../node_modules/.pnpm/skills@1.5.17/node_modules/skills/dist/_chunks/libs/@kwsites/file-exists.mjs
1295
+ //#region ../../node_modules/.pnpm/skills@1.5.19/node_modules/skills/dist/_chunks/libs/@kwsites/file-exists.mjs
1444
1296
  var require_ms, require_common, require_browser, require_node, require_src$1, require_src, require_dist$3;
1445
1297
  var init_file_exists = __esmMin((() => {
1446
1298
  init_rolldown_runtime();
@@ -2006,7 +1858,7 @@ var init_file_exists = __esmMin((() => {
2006
1858
  }));
2007
1859
  }));
2008
1860
  //#endregion
2009
- //#region ../../node_modules/.pnpm/skills@1.5.17/node_modules/skills/dist/_chunks/libs/@simple-git/args-pathspec.mjs
1861
+ //#region ../../node_modules/.pnpm/skills@1.5.19/node_modules/skills/dist/_chunks/libs/@simple-git/args-pathspec.mjs
2010
1862
  function c$1(...n) {
2011
1863
  const e = new String(n);
2012
1864
  return t.set(e, n), e;
@@ -2022,7 +1874,7 @@ var init_args_pathspec = __esmMin((() => {
2022
1874
  t = /* @__PURE__ */ new WeakMap();
2023
1875
  }));
2024
1876
  //#endregion
2025
- //#region ../../node_modules/.pnpm/skills@1.5.17/node_modules/skills/dist/_chunks/libs/@kwsites/promise-deferred.mjs
1877
+ //#region ../../node_modules/.pnpm/skills@1.5.19/node_modules/skills/dist/_chunks/libs/@kwsites/promise-deferred.mjs
2026
1878
  var require_dist$2;
2027
1879
  var init_promise_deferred = __esmMin((() => {
2028
1880
  init_rolldown_runtime();
@@ -2063,7 +1915,7 @@ var init_promise_deferred = __esmMin((() => {
2063
1915
  }));
2064
1916
  }));
2065
1917
  //#endregion
2066
- //#region ../../node_modules/.pnpm/skills@1.5.17/node_modules/skills/dist/_chunks/libs/@simple-git/argv-parser.mjs
1918
+ //#region ../../node_modules/.pnpm/skills@1.5.19/node_modules/skills/dist/_chunks/libs/@simple-git/argv-parser.mjs
2067
1919
  function* U(e, t) {
2068
1920
  const n = t === "global";
2069
1921
  for (const o of e) o.isGlobal === n && (yield o);
@@ -2538,7 +2390,7 @@ var init_argv_parser = __esmMin((() => {
2538
2390
  };
2539
2391
  }));
2540
2392
  //#endregion
2541
- //#region ../../node_modules/.pnpm/skills@1.5.17/node_modules/skills/dist/_chunks/libs/simple-git.mjs
2393
+ //#region ../../node_modules/.pnpm/skills@1.5.19/node_modules/skills/dist/_chunks/libs/simple-git.mjs
2542
2394
  function asFunction(source) {
2543
2395
  if (typeof source !== "function") return NOOP;
2544
2396
  return source;
@@ -6048,7 +5900,7 @@ var init_simple_git = __esmMin((() => {
6048
5900
  esm_default = gitInstanceFactory;
6049
5901
  }));
6050
5902
  //#endregion
6051
- //#region ../../node_modules/.pnpm/skills@1.5.17/node_modules/skills/dist/_chunks/libs/xdg-basedir.mjs
5903
+ //#region ../../node_modules/.pnpm/skills@1.5.19/node_modules/skills/dist/_chunks/libs/xdg-basedir.mjs
6052
5904
  var homeDirectory, env, xdgData, xdgConfig, xdgDataDirectories, xdgConfigDirectories;
6053
5905
  var init_xdg_basedir = __esmMin((() => {
6054
5906
  homeDirectory = os.homedir();
@@ -6064,7 +5916,7 @@ var init_xdg_basedir = __esmMin((() => {
6064
5916
  if (xdgConfig) xdgConfigDirectories.unshift(xdgConfig);
6065
5917
  }));
6066
5918
  //#endregion
6067
- //#region ../../node_modules/.pnpm/skills@1.5.17/node_modules/skills/dist/_chunks/libs/@vercel/detect-agent.mjs
5919
+ //#region ../../node_modules/.pnpm/skills@1.5.19/node_modules/skills/dist/_chunks/libs/@vercel/detect-agent.mjs
6068
5920
  var require_dist$1;
6069
5921
  var init_detect_agent = __esmMin((() => {
6070
5922
  init_rolldown_runtime();
@@ -12823,7 +12675,7 @@ var require_dist = /* @__PURE__ */ __commonJSMin$1(((exports) => {
12823
12675
  exports.visitAsync = visit.visitAsync;
12824
12676
  }));
12825
12677
  //#endregion
12826
- //#region ../../node_modules/.pnpm/skills@1.5.17/node_modules/skills/dist/cli.mjs
12678
+ //#region ../../node_modules/.pnpm/skills@1.5.19/node_modules/skills/dist/cli.mjs
12827
12679
  var cli_exports = /* @__PURE__ */ __exportAll({});
12828
12680
  function getOwnerRepo(parsed) {
12829
12681
  if (parsed.type === "local") return null;
@@ -13061,8 +12913,88 @@ function countVisualRowsForLines(lines, columns) {
13061
12913
  const cols = columns !== void 0 && columns > 0 ? columns : process.stdout.columns && process.stdout.columns > 0 ? process.stdout.columns : 80;
13062
12914
  return lines.reduce((sum, line) => sum + visualRowsForLine(line, cols), 0);
13063
12915
  }
12916
+ function truncateToWidth(text, width) {
12917
+ let truncated = "";
12918
+ for (const char of text) {
12919
+ if (approxStringWidth(truncated + char) > width) break;
12920
+ truncated += char;
12921
+ }
12922
+ return truncated;
12923
+ }
12924
+ function formatDetailLines(detail, width, maxLines) {
12925
+ const safeWidth = Math.max(1, width);
12926
+ const normalized = detail?.replace(/\s+/g, " ").trim() ?? "";
12927
+ const lines = [];
12928
+ let remaining = normalized;
12929
+ while (remaining && lines.length < maxLines) {
12930
+ if (approxStringWidth(remaining) <= safeWidth) {
12931
+ lines.push(remaining);
12932
+ remaining = "";
12933
+ break;
12934
+ }
12935
+ const candidate = truncateToWidth(remaining, safeWidth);
12936
+ const breakAt = candidate.lastIndexOf(" ");
12937
+ if (breakAt > 0) {
12938
+ lines.push(candidate.slice(0, breakAt).trimEnd());
12939
+ remaining = remaining.slice(breakAt).trimStart();
12940
+ } else {
12941
+ lines.push(candidate);
12942
+ remaining = remaining.slice(candidate.length).trimStart();
12943
+ }
12944
+ }
12945
+ if (remaining && lines.length > 0) {
12946
+ const last = lines.length - 1;
12947
+ lines[last] = `${truncateToWidth(lines[last], Math.max(0, safeWidth - 1)).trimEnd()}…`;
12948
+ }
12949
+ while (lines.length < maxLines) lines.push("");
12950
+ return lines;
12951
+ }
12952
+ function buildSearchEntries(items, selectGroups, collapsedGroups = /* @__PURE__ */ new Set()) {
12953
+ if (!selectGroups) return items.map((item) => ({
12954
+ type: "item",
12955
+ item
12956
+ }));
12957
+ const entries = [];
12958
+ let index = 0;
12959
+ while (index < items.length) {
12960
+ const item = items[index];
12961
+ if (!item.group) {
12962
+ entries.push({
12963
+ type: "item",
12964
+ item
12965
+ });
12966
+ index += 1;
12967
+ continue;
12968
+ }
12969
+ const groupItems = [];
12970
+ while (index < items.length && items[index].group === item.group) {
12971
+ groupItems.push(items[index]);
12972
+ index += 1;
12973
+ }
12974
+ const collapsed = collapsedGroups.has(item.group);
12975
+ entries.push({
12976
+ type: "group",
12977
+ group: item.group,
12978
+ items: groupItems,
12979
+ collapsed
12980
+ });
12981
+ if (!collapsed) entries.push(...groupItems.map((groupItem) => ({
12982
+ type: "item",
12983
+ item: groupItem
12984
+ })));
12985
+ }
12986
+ return entries;
12987
+ }
12988
+ function toggleSearchEntry(selected, entry) {
12989
+ if (entry?.type === "group") {
12990
+ const allSelected = entry.items.every((item) => selected.has(item.value));
12991
+ for (const item of entry.items) if (allSelected) selected.delete(item.value);
12992
+ else selected.add(item.value);
12993
+ } else if (entry?.type === "item") if (selected.has(entry.item.value)) selected.delete(entry.item.value);
12994
+ else selected.add(entry.item.value);
12995
+ }
13064
12996
  async function searchMultiselect(options) {
13065
- const { message, items, maxVisible = 8, initialSelected = [], required = false, lockedSection } = options;
12997
+ const { message, items, maxVisible = 8, initialSelected = [], required = false, lockedSection, searchable = true, showDetail = false, detailLines = 2, showSelectedSummary = true, selectGroups = false } = options;
13066
12998
  return new Promise((resolve) => {
13067
12999
  const rl = readline.createInterface({
13068
13000
  input: process.stdin,
@@ -13074,6 +13006,7 @@ async function searchMultiselect(options) {
13074
13006
  let query = "";
13075
13007
  let cursor = 0;
13076
13008
  const selected = new Set(initialSelected);
13009
+ const collapsedGroups = /* @__PURE__ */ new Set();
13077
13010
  let lastRenderHeight = 0;
13078
13011
  const lockedValues = lockedSection ? lockedSection.items.map((i) => i.value) : [];
13079
13012
  const filter = (item, q) => {
@@ -13084,17 +13017,10 @@ async function searchMultiselect(options) {
13084
13017
  const getFiltered = () => {
13085
13018
  return items.filter((item) => filter(item, query));
13086
13019
  };
13087
- const clearRender = () => {
13088
- if (lastRenderHeight > 0) {
13089
- process.stdout.write(`\x1b[${lastRenderHeight}A`);
13090
- for (let i = 0; i < lastRenderHeight; i++) process.stdout.write("\x1B[2K\x1B[1B");
13091
- process.stdout.write(`\x1b[${lastRenderHeight}A`);
13092
- }
13093
- };
13094
13020
  const render = (state = "active") => {
13095
- clearRender();
13096
13021
  const lines = [];
13097
13022
  const filtered = getFiltered();
13023
+ const entries = buildSearchEntries(filtered, selectGroups, collapsedGroups);
13098
13024
  const icon = state === "active" ? S_STEP_ACTIVE : state === "cancel" ? S_STEP_CANCEL : S_STEP_SUBMIT;
13099
13025
  lines.push(`${icon} ${import_picocolors.default.bold(message)}`);
13100
13026
  if (state === "active") {
@@ -13103,32 +13029,45 @@ async function searchMultiselect(options) {
13103
13029
  const lockedTitle = `${import_picocolors.default.bold(lockedSection.title)} ${import_picocolors.default.dim("── always included")}`;
13104
13030
  lines.push(`${S_BAR} ${S_BAR_H}${S_BAR_H} ${lockedTitle} ${S_BAR_H.repeat(12)}`);
13105
13031
  for (const item of lockedSection.items) lines.push(`${S_BAR} ${S_BULLET} ${import_picocolors.default.bold(item.label)}`);
13106
- if (lockedSection.hiddenCount && lockedSection.hiddenCount > 0) lines.push(`${S_BAR} ${import_picocolors.default.dim(`...and ${lockedSection.hiddenCount} more`)}`);
13032
+ if (lockedSection.hiddenCount && lockedSection.hiddenCount > 0) lines.push(`${S_BAR} ${import_picocolors.default.dim(`…and ${lockedSection.hiddenCount} more`)}`);
13107
13033
  lines.push(`${S_BAR}`);
13108
13034
  lines.push(`${S_BAR} ${S_BAR_H}${S_BAR_H} ${import_picocolors.default.bold("Additional agents")} ${S_BAR_H.repeat(29)}`);
13109
13035
  }
13110
- const searchLine = `${S_BAR} ${import_picocolors.default.dim("Search:")} ${query}${import_picocolors.default.inverse(" ")}`;
13111
- lines.push(searchLine);
13112
- lines.push(`${S_BAR} ${import_picocolors.default.dim("↑↓ move, space select, enter confirm")}`);
13113
- lines.push(`${S_BAR}`);
13114
- const visibleStart = Math.max(0, Math.min(cursor - Math.floor(maxVisible / 2), filtered.length - maxVisible));
13115
- const visibleEnd = Math.min(filtered.length, visibleStart + maxVisible);
13116
- const visibleItems = filtered.slice(visibleStart, visibleEnd);
13036
+ if (searchable) {
13037
+ const searchLine = `${S_BAR} ${import_picocolors.default.dim("Search:")} ${query}${import_picocolors.default.inverse(" ")}`;
13038
+ lines.push(searchLine);
13039
+ lines.push(`${S_BAR} ${import_picocolors.default.dim("↑↓ move, space select, enter confirm")}`);
13040
+ lines.push(`${S_BAR}`);
13041
+ }
13042
+ const visibleStart = Math.max(0, Math.min(cursor - Math.floor(maxVisible / 2), entries.length - maxVisible));
13043
+ const visibleEnd = Math.min(entries.length, visibleStart + maxVisible);
13044
+ const visibleEntries = entries.slice(visibleStart, visibleEnd);
13117
13045
  if (filtered.length === 0) lines.push(`${S_BAR} ${import_picocolors.default.dim("No matches found")}`);
13118
13046
  else {
13119
- for (let i = 0; i < visibleItems.length; i++) {
13120
- const item = visibleItems[i];
13121
- const actualIndex = visibleStart + i;
13122
- const isSelected = selected.has(item.value);
13123
- const isCursor = actualIndex === cursor;
13124
- const radio = isSelected ? S_RADIO_ACTIVE : S_RADIO_INACTIVE;
13047
+ for (let i = 0; i < visibleEntries.length; i++) {
13048
+ const entry = visibleEntries[i];
13049
+ const isCursor = visibleStart + i === cursor;
13050
+ if (entry.type === "group") {
13051
+ const selectedCount = entry.items.filter((item) => selected.has(item.value)).length;
13052
+ const radio = selectedCount === entry.items.length ? S_RADIO_ACTIVE : selectedCount > 0 ? import_picocolors.default.yellow("◐") : S_RADIO_INACTIVE;
13053
+ const label = isCursor ? import_picocolors.default.underline(import_picocolors.default.bold(entry.group)) : import_picocolors.default.bold(entry.group);
13054
+ const prefix = isCursor ? import_picocolors.default.cyan("❯") : " ";
13055
+ const disclosure = import_picocolors.default.dim(entry.collapsed ? "▸" : "▾");
13056
+ lines.push(`${S_BAR} ${prefix} ${disclosure} ${radio} ${label}`);
13057
+ continue;
13058
+ }
13059
+ const item = entry.item;
13060
+ const radio = selected.has(item.value) ? S_RADIO_ACTIVE : S_RADIO_INACTIVE;
13125
13061
  const label = isCursor ? import_picocolors.default.underline(item.label) : item.label;
13126
13062
  const hint = item.hint ? import_picocolors.default.dim(` (${item.hint})`) : "";
13127
13063
  const prefix = isCursor ? import_picocolors.default.cyan("❯") : " ";
13128
- lines.push(`${S_BAR} ${prefix} ${radio} ${label}${hint}`);
13064
+ const groupItems = selectGroups && item.group ? filtered.filter((i) => i.group === item.group) : [];
13065
+ const isLastInGroup = groupItems.at(-1) === item;
13066
+ const tree = groupItems.length > 0 ? `${import_picocolors.default.dim(isLastInGroup ? "└─" : "├─")} ` : "";
13067
+ lines.push(`${S_BAR} ${prefix} ${tree}${radio} ${label}${hint}`);
13129
13068
  }
13130
13069
  const hiddenBefore = visibleStart;
13131
- const hiddenAfter = filtered.length - visibleEnd;
13070
+ const hiddenAfter = entries.length - visibleEnd;
13132
13071
  if (hiddenBefore > 0 || hiddenAfter > 0) {
13133
13072
  const parts = [];
13134
13073
  if (hiddenBefore > 0) parts.push(`↑ ${hiddenBefore} more`);
@@ -13136,19 +13075,35 @@ async function searchMultiselect(options) {
13136
13075
  lines.push(`${S_BAR} ${import_picocolors.default.dim(parts.join(" "))}`);
13137
13076
  }
13138
13077
  }
13139
- lines.push(`${S_BAR}`);
13140
- const allSelectedLabels = [...lockedSection ? lockedSection.items.map((i) => i.label) : [], ...items.filter((item) => selected.has(item.value)).map((item) => item.label)];
13141
- if (allSelectedLabels.length === 0) lines.push(`${S_BAR} ${import_picocolors.default.dim("Selected: (none)")}`);
13142
- else {
13143
- const summary = allSelectedLabels.length <= 3 ? allSelectedLabels.join(", ") : `${allSelectedLabels.slice(0, 3).join(", ")} +${allSelectedLabels.length - 3} more`;
13144
- lines.push(`${S_BAR} ${import_picocolors.default.green("Selected:")} ${summary}`);
13078
+ if (showDetail) {
13079
+ const entry = entries[cursor];
13080
+ const detail = entry?.type === "group" ? `Select all ${entry.items.length} skills in ${entry.group}.` : entry?.item.detail;
13081
+ const columns = process.stdout.columns && process.stdout.columns > 0 ? process.stdout.columns : 80;
13082
+ const detailWidth = Math.max(1, columns - 5);
13083
+ lines.push(`${S_BAR}`);
13084
+ lines.push(`${S_BAR} ${import_picocolors.default.dim("Description")}`);
13085
+ for (const line of formatDetailLines(detail, detailWidth, detailLines)) lines.push(`${S_BAR} ${import_picocolors.default.dim(line)}`);
13086
+ }
13087
+ if (showSelectedSummary) {
13088
+ lines.push(`${S_BAR}`);
13089
+ const allSelectedLabels = [...lockedSection ? lockedSection.items.map((i) => i.label) : [], ...items.filter((item) => selected.has(item.value)).map((item) => item.label)];
13090
+ if (allSelectedLabels.length === 0) lines.push(`${S_BAR} ${import_picocolors.default.dim("Selected: (none)")}`);
13091
+ else {
13092
+ const summary = allSelectedLabels.length <= 3 ? allSelectedLabels.join(", ") : `${allSelectedLabels.slice(0, 3).join(", ")} +${allSelectedLabels.length - 3} more`;
13093
+ lines.push(`${S_BAR} ${import_picocolors.default.green("Selected:")} ${summary}`);
13094
+ }
13095
+ }
13096
+ if (!searchable) {
13097
+ lines.push(`${S_BAR}`);
13098
+ lines.push(`${S_BAR} ${import_picocolors.default.dim("↑↓ move, ←→ collapse/expand, space select, enter confirm")}`);
13145
13099
  }
13146
13100
  lines.push(`${import_picocolors.default.dim("└")}`);
13147
13101
  } else if (state === "submit") {
13148
13102
  const allSelectedLabels = [...lockedSection ? lockedSection.items.map((i) => i.label) : [], ...items.filter((item) => selected.has(item.value)).map((item) => item.label)];
13149
13103
  lines.push(`${S_BAR} ${import_picocolors.default.dim(allSelectedLabels.join(", "))}`);
13150
13104
  } else if (state === "cancel") lines.push(`${S_BAR} ${import_picocolors.default.strikethrough(import_picocolors.default.dim("Cancelled"))}`);
13151
- process.stdout.write(lines.join("\n") + "\n");
13105
+ const clearPreviousFrame = lastRenderHeight > 0 ? `\x1b[${lastRenderHeight}A\x1b[J` : "";
13106
+ process.stdout.write(clearPreviousFrame + lines.join("\n") + "\n");
13152
13107
  lastRenderHeight = countVisualRowsForLines(lines, process.stdout.columns);
13153
13108
  };
13154
13109
  const cleanup = () => {
@@ -13169,7 +13124,7 @@ async function searchMultiselect(options) {
13169
13124
  };
13170
13125
  const keypressHandler = (_str, key) => {
13171
13126
  if (!key) return;
13172
- const filtered = getFiltered();
13127
+ const entries = buildSearchEntries(getFiltered(), selectGroups, collapsedGroups);
13173
13128
  if (key.name === "return") {
13174
13129
  submit();
13175
13130
  return;
@@ -13184,14 +13139,31 @@ async function searchMultiselect(options) {
13184
13139
  return;
13185
13140
  }
13186
13141
  if (key.name === "down") {
13187
- cursor = Math.min(filtered.length - 1, cursor + 1);
13142
+ cursor = Math.min(entries.length - 1, cursor + 1);
13188
13143
  render();
13189
13144
  return;
13190
13145
  }
13146
+ if (selectGroups && key.name === "right") {
13147
+ const entry = entries[cursor];
13148
+ if (entry?.type === "group" && entry.collapsed) {
13149
+ collapsedGroups.delete(entry.group);
13150
+ render();
13151
+ }
13152
+ return;
13153
+ }
13154
+ if (selectGroups && key.name === "left") {
13155
+ const entry = entries[cursor];
13156
+ const group = entry?.type === "group" ? entry.group : entry?.item.group;
13157
+ if (group) {
13158
+ collapsedGroups.add(group);
13159
+ cursor = buildSearchEntries(getFiltered(), selectGroups, collapsedGroups).findIndex((collapsedEntry) => collapsedEntry.type === "group" && collapsedEntry.group === group);
13160
+ render();
13161
+ }
13162
+ return;
13163
+ }
13191
13164
  if (key.name === "space") {
13192
- const item = filtered[cursor];
13193
- if (item) if (selected.has(item.value)) selected.delete(item.value);
13194
- else selected.add(item.value);
13165
+ const entry = entries[cursor];
13166
+ toggleSearchEntry(selected, entry);
13195
13167
  render();
13196
13168
  return;
13197
13169
  }
@@ -13201,7 +13173,7 @@ async function searchMultiselect(options) {
13201
13173
  render();
13202
13174
  return;
13203
13175
  }
13204
- if (key.sequence && !key.ctrl && !key.meta && key.sequence.length === 1) {
13176
+ if (searchable && key.sequence && !key.ctrl && !key.meta && key.sequence.length === 1) {
13205
13177
  query += key.sequence;
13206
13178
  cursor = 0;
13207
13179
  render();
@@ -13256,23 +13228,45 @@ function isGitHubSsoAuthError(message) {
13256
13228
  function isAuthFailure(message) {
13257
13229
  return message.includes("Authentication failed") || message.includes("could not read Username") || message.includes("Permission denied") || message.includes("Repository not found") || message.includes("requested URL returned error: 403") || isGitHubSsoAuthError(message);
13258
13230
  }
13259
- function createGitClient(extraEnv) {
13260
- return esm_default({
13231
+ function createGitClient(sshCommand) {
13232
+ const git = esm_default({
13261
13233
  timeout: { block: CLONE_TIMEOUT_MS },
13262
- env: {
13263
- ...process.env,
13264
- GIT_TERMINAL_PROMPT: "0",
13265
- GIT_LFS_SKIP_SMUDGE: "1",
13266
- ...extraEnv
13267
- },
13268
13234
  config: [
13269
13235
  "filter.lfs.required=false",
13270
13236
  "filter.lfs.smudge=",
13271
13237
  "filter.lfs.clean=",
13272
13238
  "filter.lfs.process="
13273
13239
  ],
13274
- unsafe: { allowUnsafeFilter: true }
13240
+ unsafe: {
13241
+ allowUnsafeAlias: true,
13242
+ allowUnsafeAskPass: true,
13243
+ allowUnsafeConfigEnvCount: true,
13244
+ allowUnsafeConfigPaths: true,
13245
+ allowUnsafeCredentialHelper: true,
13246
+ allowUnsafeDiffExternal: true,
13247
+ allowUnsafeDiffTextConv: true,
13248
+ allowUnsafeEditor: true,
13249
+ allowUnsafeFilter: true,
13250
+ allowUnsafeFsMonitor: true,
13251
+ allowUnsafeGpgProgram: true,
13252
+ allowUnsafeGitProxy: true,
13253
+ allowUnsafeHooksPath: true,
13254
+ allowUnsafeMergeDriver: true,
13255
+ allowUnsafePack: true,
13256
+ allowUnsafePager: true,
13257
+ allowUnsafeProtocolOverride: true,
13258
+ allowUnsafeSshCommand: true,
13259
+ allowUnsafeTemplateDir: true
13260
+ }
13261
+ });
13262
+ git.env({
13263
+ ...process.env,
13264
+ GIT_TERMINAL_PROMPT: "0",
13265
+ GIT_ALLOW_PROTOCOL: ALLOWED_GIT_PROTOCOLS,
13266
+ GIT_LFS_SKIP_SMUDGE: "1",
13267
+ ...sshCommand ? { GIT_SSH_COMMAND: sshCommand } : {}
13275
13268
  });
13269
+ return git;
13276
13270
  }
13277
13271
  async function resetTempDir(dir) {
13278
13272
  await rm(dir, {
@@ -13316,7 +13310,8 @@ async function tryGhClone(repo, tempDir, ref) {
13316
13310
  timeout: CLONE_TIMEOUT_MS,
13317
13311
  env: {
13318
13312
  ...process.env,
13319
- GIT_TERMINAL_PROMPT: "0"
13313
+ GIT_TERMINAL_PROMPT: "0",
13314
+ GIT_ALLOW_PROTOCOL: ALLOWED_GIT_PROTOCOLS
13320
13315
  }
13321
13316
  });
13322
13317
  return true;
@@ -13357,7 +13352,7 @@ async function cloneRepo(url, ref) {
13357
13352
  } catch {}
13358
13353
  try {
13359
13354
  await resetTempDir(tempDir);
13360
- await createGitClient({ GIT_SSH_COMMAND: process.env.GIT_SSH_COMMAND ?? "ssh -o BatchMode=yes" }).clone(repo.sshUrl, tempDir, cloneOptions);
13355
+ await createGitClient(process.env.GIT_SSH_COMMAND ?? "ssh -o BatchMode=yes").clone(repo.sshUrl, tempDir, cloneOptions);
13361
13356
  return tempDir;
13362
13357
  } catch {}
13363
13358
  }
@@ -13483,7 +13478,7 @@ async function computeSkillFolderHash(skillDir) {
13483
13478
  const files = [];
13484
13479
  await collectFiles(skillDir, skillDir, files);
13485
13480
  files.sort((a, b) => a.relativePath.localeCompare(b.relativePath));
13486
- const hash = createHash$1("sha256");
13481
+ const hash = createHash("sha256");
13487
13482
  for (const file of files) {
13488
13483
  hash.update(file.relativePath);
13489
13484
  hash.update(file.content);
@@ -13524,6 +13519,9 @@ function normalizeSkillName(name) {
13524
13519
  function normalizeRelativePath(path) {
13525
13520
  return path.split(sep).join("/").replace(/\/+/g, "/");
13526
13521
  }
13522
+ function isRecord(value) {
13523
+ return typeof value === "object" && value !== null && !Array.isArray(value);
13524
+ }
13527
13525
  function shouldInstallInternalSkills() {
13528
13526
  const envValue = process.env.INSTALL_INTERNAL_SKILLS;
13529
13527
  return envValue === "1" || envValue === "true";
@@ -13541,13 +13539,14 @@ async function parseSkillMd(skillMdPath, options) {
13541
13539
  const { data } = parseFrontmatter(content);
13542
13540
  if (!data.name || !data.description) return null;
13543
13541
  if (typeof data.name !== "string" || typeof data.description !== "string") return null;
13544
- if (data.metadata?.internal === true && !shouldInstallInternalSkills() && !options?.includeInternal) return null;
13542
+ const metadata = isRecord(data.metadata) ? data.metadata : void 0;
13543
+ if (metadata?.internal === true && !shouldInstallInternalSkills() && !options?.includeInternal) return null;
13545
13544
  return {
13546
13545
  name: sanitizeMetadata(data.name),
13547
13546
  description: sanitizeMetadata(data.description),
13548
13547
  path: dirname(skillMdPath),
13549
13548
  rawContent: content,
13550
- metadata: data.metadata
13549
+ metadata
13551
13550
  };
13552
13551
  } catch {
13553
13552
  return null;
@@ -14401,7 +14400,7 @@ function getGitHubToken() {
14401
14400
  if (process.env.GITHUB_TOKEN) return process.env.GITHUB_TOKEN;
14402
14401
  if (process.env.GH_TOKEN) return process.env.GH_TOKEN;
14403
14402
  if (!_ghWarningShown) {
14404
- process.stderr.write(`${import_picocolors.default.yellow("│")} ${import_picocolors.default.yellow("GitHub rate limit reached")} — using your ${import_picocolors.default.cyan("gh")} login to continue.\n${import_picocolors.default.yellow("│")} ${import_picocolors.default.dim(`Tip: set ${import_picocolors.default.cyan("GITHUB_TOKEN")} to avoid this prompt, or use ${import_picocolors.default.cyan("--full-depth")} to clone instead.\n`)}`);
14403
+ process.stderr.write(`${import_picocolors.default.dim("│ GitHub API request limit reached; checking existing ")}${import_picocolors.default.cyan("gh")}${import_picocolors.default.dim(" authentication…\n")}`);
14405
14404
  _ghWarningShown = true;
14406
14405
  }
14407
14406
  try {
@@ -14620,7 +14619,7 @@ async function fetchSkillDownload(source, slug) {
14620
14619
  }
14621
14620
  }
14622
14621
  function computeSnapshotHash(files) {
14623
- const hash = createHash("sha256");
14622
+ const hash = createHash$1("sha256");
14624
14623
  for (const file of [...files].sort((a, b) => a.path.localeCompare(b.path))) {
14625
14624
  hash.update(file.path);
14626
14625
  hash.update(file.contents);
@@ -14768,12 +14767,6 @@ function shortenPath$2(fullPath, cwd) {
14768
14767
  if (fullPath === cwd || fullPath.startsWith(cwd + sep)) return "." + fullPath.slice(cwd.length);
14769
14768
  return fullPath;
14770
14769
  }
14771
- function computeSingleFileSkillHash(contents) {
14772
- const hash = createHash("sha256");
14773
- hash.update("SKILL.md");
14774
- hash.update(contents);
14775
- return hash.digest("hex");
14776
- }
14777
14770
  function formatList$1(items, maxShow = 5) {
14778
14771
  if (items.length <= maxShow) return items.join(", ");
14779
14772
  const shown = items.slice(0, maxShow);
@@ -14922,7 +14915,7 @@ async function selectAgentsInteractive(options) {
14922
14915
  return selected;
14923
14916
  }
14924
14917
  async function handleWellKnownSkills(source, url, options, spinner) {
14925
- spinner.start("Discovering skills from well-known endpoint...");
14918
+ spinner.start("Discovering skills from well-known endpoint…");
14926
14919
  const skills = await wellKnownProvider.fetchAllSkills(url);
14927
14920
  if (skills.length === 0) {
14928
14921
  spinner.stop(import_picocolors.default.red("No skills found"));
@@ -14972,7 +14965,7 @@ async function handleWellKnownSkills(source, url, options, spinner) {
14972
14965
  options: skills.map((s) => ({
14973
14966
  value: s,
14974
14967
  label: s.installName,
14975
- hint: s.description.length > 60 ? s.description.slice(0, 57) + "..." : s.description
14968
+ hint: s.description.length > 60 ? s.description.slice(0, 57) + "…" : s.description
14976
14969
  })),
14977
14970
  required: true
14978
14971
  });
@@ -14996,7 +14989,7 @@ async function handleWellKnownSkills(source, url, options, spinner) {
14996
14989
  }
14997
14990
  targetAgents = options.agent;
14998
14991
  } else {
14999
- spinner.start("Loading agents...");
14992
+ spinner.start("Loading agents…");
15000
14993
  const installedAgents = await detectInstalledAgents();
15001
14994
  const totalAgents = Object.keys(agents).length;
15002
14995
  spinner.stop(`${totalAgents} agents`);
@@ -15106,7 +15099,7 @@ async function handleWellKnownSkills(source, url, options, spinner) {
15106
15099
  }
15107
15100
  const sourceIdentifier = wellKnownProvider.getSourceIdentifier(url);
15108
15101
  const wellKnownPrivacyPromise = isSourcePrivate(sourceIdentifier).catch(() => null);
15109
- spinner.start("Installing skills...");
15102
+ spinner.start("Installing skills…");
15110
15103
  const results = [];
15111
15104
  for (const skill of selectedSkills) for (const agent of targetAgents) {
15112
15105
  const result = await installWellKnownSkillForAgent(skill, agent, {
@@ -15248,7 +15241,7 @@ async function runAdd(args, options = {}) {
15248
15241
  let tempDir = null;
15249
15242
  try {
15250
15243
  const spinner$3 = spinner();
15251
- spinner$3.start("Parsing source...");
15244
+ spinner$3.start("Parsing source…");
15252
15245
  const parsed = parseSource(source);
15253
15246
  spinner$3.stop(`Source: ${parsed.type === "local" ? parsed.localPath : parsed.url}${parsed.ref ? ` @ ${import_picocolors.default.yellow(parsed.ref)}` : ""}${parsed.subpath ? ` (${parsed.subpath})` : ""}${parsed.skillFilter ? ` ${import_picocolors.default.dim("@")}${import_picocolors.default.cyan(parsed.skillFilter)}` : ""}`);
15254
15247
  const ownerRepoRaw = getOwnerRepo(parsed);
@@ -15270,14 +15263,14 @@ async function runAdd(args, options = {}) {
15270
15263
  let skills;
15271
15264
  let blobResult = null;
15272
15265
  if (parsed.type === "local") {
15273
- spinner$3.start("Validating local path...");
15266
+ spinner$3.start("Validating local path…");
15274
15267
  if (!existsSync(parsed.localPath)) {
15275
15268
  spinner$3.stop(import_picocolors.default.red("Path not found"));
15276
15269
  outro(import_picocolors.default.red(`Local path does not exist: ${parsed.localPath}`));
15277
15270
  process.exit(1);
15278
15271
  }
15279
15272
  spinner$3.stop("Local path validated");
15280
- spinner$3.start("Discovering skills...");
15273
+ spinner$3.start("Discovering skills…");
15281
15274
  skills = await discoverSkills(parsed.localPath, parsed.subpath, {
15282
15275
  includeInternal,
15283
15276
  fullDepth: options.fullDepth
@@ -15292,7 +15285,7 @@ async function runAdd(args, options = {}) {
15292
15285
  const owner = ownerRepo?.split("/")[0]?.toLowerCase();
15293
15286
  const isSelfHostedRepo = !!ownerRepo && Object.hasOwn(BLOB_ALLOWED_REPOS, ownerRepo.toLowerCase());
15294
15287
  if (ownerRepo && owner && (isSelfHostedRepo || BLOB_ALLOWED_OWNERS.includes(owner))) {
15295
- spinner$3.start("Fetching skills...");
15288
+ spinner$3.start("Fetching skills…");
15296
15289
  blobResult = await tryBlobInstall(ownerRepo, {
15297
15290
  subpath: parsed.subpath,
15298
15291
  skillFilter: parsed.skillFilter,
@@ -15300,26 +15293,26 @@ async function runAdd(args, options = {}) {
15300
15293
  getToken: getGitHubToken,
15301
15294
  includeInternal
15302
15295
  });
15303
- if (!blobResult) spinner$3.stop(import_picocolors.default.dim("Falling back to clone..."));
15296
+ if (!blobResult) spinner$3.stop(import_picocolors.default.dim("Falling back to clone…"));
15304
15297
  }
15305
15298
  if (blobResult) {
15306
15299
  skills = blobResult.skills;
15307
15300
  spinner$3.stop(`Found ${import_picocolors.default.green(skills.length)} skill${skills.length > 1 ? "s" : ""}`);
15308
15301
  } else {
15309
- spinner$3.start("Cloning repository...");
15302
+ spinner$3.start("Cloning repository…");
15310
15303
  tempDir = await cloneRepo(parsed.url, parsed.ref);
15311
15304
  spinner$3.stop("Repository cloned");
15312
- spinner$3.start("Discovering skills...");
15305
+ spinner$3.start("Discovering skills…");
15313
15306
  skills = await discoverSkills(tempDir, parsed.subpath, {
15314
15307
  includeInternal,
15315
15308
  fullDepth: options.fullDepth
15316
15309
  });
15317
15310
  }
15318
15311
  } else {
15319
- spinner$3.start("Cloning repository...");
15312
+ spinner$3.start("Cloning repository…");
15320
15313
  tempDir = await cloneRepo(parsed.url, parsed.ref);
15321
15314
  spinner$3.stop("Repository cloned");
15322
- spinner$3.start("Discovering skills...");
15315
+ spinner$3.start("Discovering skills…");
15323
15316
  skills = await discoverSkills(tempDir, parsed.subpath, {
15324
15317
  includeInternal,
15325
15318
  fullDepth: options.fullDepth
@@ -15394,34 +15387,24 @@ async function runAdd(args, options = {}) {
15394
15387
  return getSkillDisplayName(a).localeCompare(getSkillDisplayName(b));
15395
15388
  });
15396
15389
  const hasGroups = sortedSkills.some((s) => s.pluginName);
15397
- let selected;
15398
- if (hasGroups) {
15399
- const kebabToTitle = (s) => s.split("-").map((w) => w.charAt(0).toUpperCase() + w.slice(1)).join(" ");
15400
- const grouped = {};
15401
- for (const s of sortedSkills) {
15402
- const groupName = s.pluginName ? kebabToTitle(s.pluginName) : "Other";
15403
- if (!grouped[groupName]) grouped[groupName] = [];
15404
- grouped[groupName].push({
15405
- value: s,
15406
- label: getSkillDisplayName(s),
15407
- hint: s.description.length > 60 ? s.description.slice(0, 57) + "..." : s.description
15408
- });
15409
- }
15410
- selected = await groupMultiselect({
15411
- message: `Select skills to install ${import_picocolors.default.dim("(space to toggle)")}`,
15412
- options: grouped,
15413
- required: true
15414
- });
15415
- } else selected = await multiselect({
15416
- message: "Select skills to install",
15417
- options: sortedSkills.map((s) => ({
15418
- value: s,
15419
- label: getSkillDisplayName(s),
15420
- hint: s.description.length > 60 ? s.description.slice(0, 57) + "..." : s.description
15421
- })),
15422
- required: true
15390
+ const kebabToTitle = (s) => s.split("-").map((w) => w.charAt(0).toUpperCase() + w.slice(1)).join(" ");
15391
+ const skillChoices = sortedSkills.map((s) => ({
15392
+ value: s,
15393
+ label: getSkillDisplayName(s),
15394
+ group: hasGroups ? s.pluginName ? kebabToTitle(s.pluginName) : "Other" : void 0,
15395
+ detail: s.description
15396
+ }));
15397
+ const selected = await searchMultiselect({
15398
+ message: hasGroups ? `Select skills to install ${import_picocolors.default.dim("(space to toggle)")}` : "Select skills to install",
15399
+ items: skillChoices,
15400
+ required: true,
15401
+ maxVisible: 20,
15402
+ searchable: !hasGroups,
15403
+ showDetail: true,
15404
+ showSelectedSummary: false,
15405
+ selectGroups: hasGroups
15423
15406
  });
15424
- if (isCancel(selected)) {
15407
+ if (isCancelled$1(selected)) {
15425
15408
  cancel("Installation cancelled");
15426
15409
  await cleanup(tempDir);
15427
15410
  process.exit(0);
@@ -15445,7 +15428,7 @@ async function runAdd(args, options = {}) {
15445
15428
  }
15446
15429
  targetAgents = options.agent;
15447
15430
  } else {
15448
- spinner$3.start("Loading agents...");
15431
+ spinner$3.start("Loading agents…");
15449
15432
  const installedAgents = await detectInstalledAgents();
15450
15433
  const totalAgents = Object.keys(agents).length;
15451
15434
  spinner$3.stop(`${totalAgents} agents`);
@@ -15648,7 +15631,7 @@ async function runAdd(args, options = {}) {
15648
15631
  process.exit(0);
15649
15632
  }
15650
15633
  }
15651
- spinner$3.start("Installing skills...");
15634
+ spinner$3.start("Installing skills…");
15652
15635
  const results = [];
15653
15636
  for (const skill of selectedSkills) for (const target of installTargets) {
15654
15637
  const { agent, subagent } = target;
@@ -15663,17 +15646,7 @@ async function runAdd(args, options = {}) {
15663
15646
  mode: installMode,
15664
15647
  eveSubagent: subagent
15665
15648
  });
15666
- } else if (tempDir && skill.path === tempDir && skill.rawContent) result = await installBlobSkillForAgent({
15667
- installName: skill.name,
15668
- files: [{
15669
- path: "SKILL.md",
15670
- contents: skill.rawContent
15671
- }]
15672
- }, agent, {
15673
- global: installGlobally,
15674
- mode: installMode
15675
- });
15676
- else result = await installSkillForAgent(skill, agent, {
15649
+ } else result = await installSkillForAgent(skill, agent, {
15677
15650
  global: installGlobally,
15678
15651
  mode: installMode,
15679
15652
  eveSubagent: subagent
@@ -15754,7 +15727,7 @@ async function runAdd(args, options = {}) {
15754
15727
  for (const skill of selectedSkills) {
15755
15728
  const skillDisplayName = getSkillDisplayName(skill);
15756
15729
  if (successfulSkillNames.has(skillDisplayName)) try {
15757
- const computedHash = blobResult && "snapshotHash" in skill ? skill.snapshotHash : tempDir && skill.path === tempDir && skill.rawContent ? computeSingleFileSkillHash(skill.rawContent) : await computeSkillFolderHash(skill.path);
15730
+ const computedHash = blobResult && "snapshotHash" in skill ? skill.snapshotHash : await computeSkillFolderHash(skill.path);
15758
15731
  const skillPathValue = skillFiles[skill.name];
15759
15732
  await addSkillToLocalLock(skill.name, {
15760
15733
  source: lockSource || parsed.url,
@@ -15876,7 +15849,7 @@ async function promptForFindSkills(options, targetAgents) {
15876
15849
  const findSkillsAgents = targetAgents?.filter((a) => a !== "replit");
15877
15850
  if (!findSkillsAgents || findSkillsAgents.length === 0) return;
15878
15851
  console.log();
15879
- log.step("Installing find-skills skill...");
15852
+ log.step("Installing find-skills skill…");
15880
15853
  try {
15881
15854
  await runAdd(["vercel-labs/skills"], {
15882
15855
  skill: ["find-skills"],
@@ -16037,7 +16010,7 @@ async function runSearchPrompt(initialQuery = "", owner) {
16037
16010
  lines.push(`${TEXT$2}Search skills:${RESET$3} ${query}${cursor}`);
16038
16011
  lines.push("");
16039
16012
  if (!query || query.length < 2) lines.push(`${DIM$3}Start typing to search (min 2 chars)${RESET$3}`);
16040
- else if (results.length === 0 && loading) lines.push(`${DIM$3}Searching...${RESET$3}`);
16013
+ else if (results.length === 0 && loading) lines.push(`${DIM$3}Searching…${RESET$3}`);
16041
16014
  else if (results.length === 0) lines.push(`${DIM$3}No skills found${RESET$3}`);
16042
16015
  else {
16043
16016
  const visible = results.slice(0, 8);
@@ -16049,7 +16022,7 @@ async function runSearchPrompt(initialQuery = "", owner) {
16049
16022
  const source = skill.source ? ` ${DIM$3}${skill.source}${RESET$3}` : "";
16050
16023
  const installs = formatInstalls(skill.installs);
16051
16024
  const installsBadge = installs ? ` ${CYAN$1}${installs}${RESET$3}` : "";
16052
- const loadingIndicator = loading && i === 0 ? ` ${DIM$3}...${RESET$3}` : "";
16025
+ const loadingIndicator = loading && i === 0 ? ` ${DIM$3}…${RESET$3}` : "";
16053
16026
  lines.push(` ${arrow} ${name}${source}${installsBadge}${loadingIndicator}`);
16054
16027
  }
16055
16028
  }
@@ -16203,7 +16176,7 @@ ${DIM$3} 2) npx skills add <owner/repo@skill>${RESET$3}`;
16203
16176
  const pkg = selected.source || selected.slug;
16204
16177
  const skillName = selected.name;
16205
16178
  console.log();
16206
- console.log(`${TEXT$2}Installing ${BOLD$3}${skillName}${RESET$3} from ${DIM$3}${pkg}${RESET$3}...`);
16179
+ console.log(`${TEXT$2}Installing ${BOLD$3}${skillName}${RESET$3} from ${DIM$3}${pkg}${RESET$3}…`);
16207
16180
  console.log();
16208
16181
  const { source, options: addOptions } = parseAddOptions([
16209
16182
  pkg,
@@ -16305,7 +16278,7 @@ async function runSync(args, options = {}) {
16305
16278
  if (!agentResult.isAgent) intro(import_picocolors.default.bgCyan(import_picocolors.default.black(" skills experimental_sync ")));
16306
16279
  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");
16307
16280
  const spinner$2 = spinner();
16308
- spinner$2.start("Scanning node_modules for skills...");
16281
+ spinner$2.start("Scanning node_modules for skills…");
16309
16282
  const discoveredSkills = await discoverNodeModuleSkills(cwd);
16310
16283
  if (discoveredSkills.length === 0) {
16311
16284
  spinner$2.stop(import_picocolors.default.yellow("No skills found"));
@@ -16358,7 +16331,7 @@ async function runSync(args, options = {}) {
16358
16331
  }
16359
16332
  targetAgents = options.agent;
16360
16333
  } else {
16361
- spinner$2.start("Loading agents...");
16334
+ spinner$2.start("Loading agents…");
16362
16335
  const installedAgents = await detectInstalledAgents();
16363
16336
  const totalAgents = Object.keys(agents).length;
16364
16337
  spinner$2.stop(`${totalAgents} agents`);
@@ -16432,7 +16405,7 @@ async function runSync(args, options = {}) {
16432
16405
  process.exit(0);
16433
16406
  }
16434
16407
  }
16435
- spinner$2.start("Syncing skills...");
16408
+ spinner$2.start("Syncing skills…");
16436
16409
  const results = [];
16437
16410
  for (const skill of toInstall) for (const agent of targetAgents) {
16438
16411
  const result = await installSkillForAgent(skill, agent, {
@@ -16764,7 +16737,7 @@ async function removeCommand(skillNames, options) {
16764
16737
  const isGlobal = options.global ?? false;
16765
16738
  const cwd = process.cwd();
16766
16739
  const spinner$1 = spinner();
16767
- spinner$1.start("Scanning for installed skills...");
16740
+ spinner$1.start("Scanning for installed skills…");
16768
16741
  const skillNamesSet = /* @__PURE__ */ new Set();
16769
16742
  const scanDir = async (dir) => {
16770
16743
  try {
@@ -16838,7 +16811,7 @@ async function removeCommand(skillNames, options) {
16838
16811
  process.exit(0);
16839
16812
  }
16840
16813
  }
16841
- spinner$1.start("Removing skills...");
16814
+ spinner$1.start("Removing skills…");
16842
16815
  const results = [];
16843
16816
  for (const skillName of selectedSkills) try {
16844
16817
  const canonicalPath = getCanonicalPath(skillName, {
@@ -17084,7 +17057,7 @@ async function checkAndPromptForDeletions(source, allLockedForSource, lockSkills
17084
17057
  else {
17085
17058
  const confirmed = await confirm({ message: `Would you like to remove the local copies of these deleted skills?` });
17086
17059
  if (confirmed && !isCancel(confirmed)) for (const s of deletedSkills) {
17087
- console.log(`${DIM$1}Removing${RESET$1} ${s}...`);
17060
+ console.log(`${DIM$1}Removing${RESET$1} ${s}…`);
17088
17061
  await removeCommand([s], {
17089
17062
  yes: true,
17090
17063
  global: isGlobal
@@ -17218,7 +17191,7 @@ async function updateGlobalSkills(options = {}) {
17218
17191
  console.log();
17219
17192
  for (const update of updates) {
17220
17193
  const safeName = sanitizeMetadata(update.name);
17221
- console.log(`${TEXT$1}Updating ${safeName}...${RESET$1}`);
17194
+ console.log(`${TEXT$1}Updating ${safeName}…${RESET$1}`);
17222
17195
  const installUrl = buildUpdateInstallSource(update.entry);
17223
17196
  if (!installUrl) {
17224
17197
  failCount++;
@@ -17299,7 +17272,7 @@ async function updateProjectSkills(options = {}) {
17299
17272
  if (hasUniversal) targetParts.push("Universal");
17300
17273
  targetParts.push(...targetAgentNames);
17301
17274
  if (targetParts.length > 0) console.log(`${TEXT$1}Updating for: ${targetParts.join(", ")}${RESET$1}`);
17302
- console.log(`${TEXT$1}Refreshing ${updatable.length} skill(s)...${RESET$1}`);
17275
+ console.log(`${TEXT$1}Refreshing ${updatable.length} skill(s)…${RESET$1}`);
17303
17276
  console.log();
17304
17277
  const bySource = /* @__PURE__ */ new Map();
17305
17278
  for (const skill of updatable) {
@@ -17344,7 +17317,7 @@ async function updateProjectSkills(options = {}) {
17344
17317
  const remainingSkills = skillsForSource.filter((s) => !deletedSkills.includes(s.name));
17345
17318
  for (const skill of remainingSkills) {
17346
17319
  const safeName = sanitizeMetadata(skill.name);
17347
- console.log(`${TEXT$1}Updating ${safeName}...${RESET$1}`);
17320
+ console.log(`${TEXT$1}Updating ${safeName}…${RESET$1}`);
17348
17321
  const installUrl = buildLocalUpdateSource(skill.entry);
17349
17322
  if (!installUrl) {
17350
17323
  failCount++;
@@ -17398,8 +17371,8 @@ function printLegacyProjectSkills(legacy) {
17398
17371
  async function runUpdate(args = []) {
17399
17372
  const options = parseUpdateOptions(args);
17400
17373
  const scope = await resolveUpdateScope(options);
17401
- if (options.skills) console.log(`${TEXT$1}Updating ${options.skills.join(", ")}...${RESET$1}`);
17402
- else console.log(`${TEXT$1}Checking for skill updates...${RESET$1}`);
17374
+ if (options.skills) console.log(`${TEXT$1}Updating ${options.skills.join(", ")}…${RESET$1}`);
17375
+ else console.log(`${TEXT$1}Checking for skill updates…${RESET$1}`);
17403
17376
  console.log();
17404
17377
  let totalSuccess = 0;
17405
17378
  let totalFail = 0;
@@ -18068,7 +18041,7 @@ async function main() {
18068
18041
  console.log(`Run ${BOLD}skills --help${RESET} for usage.`);
18069
18042
  }
18070
18043
  }
18071
- var import_dist, import_picocolors, 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, CLONE_TIMEOUT_MS, execFileAsync, GitCloneError, LOCAL_LOCK_FILE, CURRENT_VERSION$1, SKIP_DIRS, AGENT_PROJECT_SKILL_DIRS, home, configHome, codexHome, claudeHome, vibeHome, hermesHome, autohandHome, zedAppDataHome, zedFlatpakConfigHome, agents, EVE_SUBAGENTS_DIR, AGENTS_DIR$1, SKILLS_SUBDIR, EXCLUDE_FILES$1, EXCLUDE_DIRS$1, isExcluded$1, TELEMETRY_URL, AUDIT_URL, cliVersion, detectedAgentName, pendingTelemetry, import_dist$1, cachedResult, agentNameToType, ProviderRegistryImpl, DISCOVERY_SCHEMA_V2, MAX_ARCHIVE_UNPACKED_BYTES, MAX_ARCHIVE_FILES, WellKnownProvider, wellKnownProvider, AGENTS_DIR, LOCK_FILE, CURRENT_VERSION, _ghWarningShown, DOWNLOAD_BASE_URL, BLOB_ALLOWED_REPOS, FETCH_TIMEOUT, _rateLimitedThisSession, PRIORITY_PREFIXES, version$1, isCancelled$1, EVE_AGENT_LABEL, RESET$3, BOLD$3, DIM$3, TEXT$2, CYAN$1, SEARCH_API_BASE, 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;
18044
+ var import_dist, import_picocolors, 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, SKIP_DIRS, AGENT_PROJECT_SKILL_DIRS, home, configHome, codexHome, claudeHome, vibeHome, hermesHome, autohandHome, zedAppDataHome, zedFlatpakConfigHome, agents, EVE_SUBAGENTS_DIR, AGENTS_DIR$1, SKILLS_SUBDIR, EXCLUDE_FILES$1, EXCLUDE_DIRS$1, isExcluded$1, TELEMETRY_URL, AUDIT_URL, cliVersion, detectedAgentName, pendingTelemetry, import_dist$1, cachedResult, agentNameToType, ProviderRegistryImpl, DISCOVERY_SCHEMA_V2, MAX_ARCHIVE_UNPACKED_BYTES, MAX_ARCHIVE_FILES, WellKnownProvider, wellKnownProvider, AGENTS_DIR, LOCK_FILE, CURRENT_VERSION, _ghWarningShown, DOWNLOAD_BASE_URL, BLOB_ALLOWED_REPOS, FETCH_TIMEOUT, _rateLimitedThisSession, PRIORITY_PREFIXES, version$1, isCancelled$1, EVE_AGENT_LABEL, RESET$3, BOLD$3, DIM$3, TEXT$2, CYAN$1, SEARCH_API_BASE, 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;
18072
18045
  var init_cli = __esmMin((() => {
18073
18046
  init_rolldown_runtime();
18074
18047
  init_core();
@@ -18079,7 +18052,10 @@ var init_cli = __esmMin((() => {
18079
18052
  init_detect_agent();
18080
18053
  import_dist = require_dist();
18081
18054
  import_picocolors = /* @__PURE__ */ __toESM(require_picocolors(), 1);
18082
- SOURCE_ALIASES = { "coinbase/agentWallet": "coinbase/agentic-wallet-skills" };
18055
+ SOURCE_ALIASES = {
18056
+ "coinbase/agentWallet": "coinbase/agentic-wallet-skills",
18057
+ "vercel-labs/vercel-skills": "vercel-labs/agent-skills"
18058
+ };
18083
18059
  CSI_RE = /\x1b\[[\x30-\x3f]*[\x20-\x2f]*[\x40-\x7e]/g;
18084
18060
  OSC_RE = /\x1b\][\s\S]*?(?:\x07|\x1b\\)/g;
18085
18061
  DCS_PM_APC_RE = /\x1b[P^_][\s\S]*?(?:\x1b\\)/g;
@@ -18100,6 +18076,7 @@ var init_cli = __esmMin((() => {
18100
18076
  S_BAR_H = import_picocolors.default.dim("─");
18101
18077
  cancelSymbol = Symbol("cancel");
18102
18078
  DEFAULT_CLONE_TIMEOUT_MS = 3e5;
18079
+ ALLOWED_GIT_PROTOCOLS = "https:http:ssh:git:file";
18103
18080
  CLONE_TIMEOUT_MS = (() => {
18104
18081
  const raw = process.env.SKILLS_CLONE_TIMEOUT_MS;
18105
18082
  if (!raw) return DEFAULT_CLONE_TIMEOUT_MS;
@@ -19188,7 +19165,7 @@ var init_cli = __esmMin((() => {
19188
19165
  }
19189
19166
  }
19190
19167
  computeDigest(bytes) {
19191
- return `sha256:${createHash("sha256").update(bytes).digest("hex")}`;
19168
+ return `sha256:${createHash$1("sha256").update(bytes).digest("hex")}`;
19192
19169
  }
19193
19170
  extractArchive(bytes, artifactUrl, contentType) {
19194
19171
  if (this.isZipArchive(bytes, artifactUrl, contentType)) return this.extractZip(bytes);
@@ -19366,7 +19343,7 @@ var init_cli = __esmMin((() => {
19366
19343
  ".zcode/skills/",
19367
19344
  ".zencoder/skills/"
19368
19345
  ];
19369
- version$1 = "1.5.17";
19346
+ version$1 = "1.5.19";
19370
19347
  isCancelled$1 = (value) => typeof value === "symbol";
19371
19348
  EVE_AGENT_LABEL = "eve agent";
19372
19349
  setVersion(version$1);
@@ -19442,7 +19419,7 @@ var init_cli = __esmMin((() => {
19442
19419
  main().finally(() => flushTelemetry().then(() => process.exit(process.exitCode ?? 0)));
19443
19420
  }));
19444
19421
  //#endregion
19445
- //#region ../../node_modules/.pnpm/skills@1.5.17/node_modules/skills/bin/cli.mjs
19422
+ //#region ../../node_modules/.pnpm/skills@1.5.19/node_modules/skills/bin/cli.mjs
19446
19423
  if (module.enableCompileCache && !process.env.NODE_DISABLE_COMPILE_CACHE) try {
19447
19424
  module.enableCompileCache();
19448
19425
  } catch {}