@ariestools/toolchain 10.0.5 → 10.0.6

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.
@@ -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.25/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.25/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.25/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.25/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.25/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.25/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.25/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.25/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.25/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.25/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.25/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();
@@ -16024,7 +16024,7 @@ while (this[Zs](this[st].shift()));
16024
16024
  };
16025
16025
  }));
16026
16026
  //#endregion
16027
- //#region ../../node_modules/.pnpm/skills@1.5.24/node_modules/skills/dist/cli.mjs
16027
+ //#region ../../node_modules/.pnpm/skills@1.5.25/node_modules/skills/dist/cli.mjs
16028
16028
  var cli_exports = /* @__PURE__ */ __exportAll({});
16029
16029
  function getGitHubHost() {
16030
16030
  const configuredHost = process.env.GH_HOST?.trim();
@@ -16572,21 +16572,30 @@ async function searchMultiselect(options) {
16572
16572
  lastRenderHeight = countVisualRowsForLines(lines, process.stdout.columns);
16573
16573
  };
16574
16574
  const cleanup = () => {
16575
+ rl.removeListener("close", closeHandler);
16575
16576
  process.stdin.removeListener("keypress", keypressHandler);
16576
16577
  if (process.stdin.isTTY) process.stdin.setRawMode(false);
16577
16578
  rl.close();
16578
16579
  };
16580
+ let settled = false;
16579
16581
  const submit = () => {
16582
+ if (settled) return;
16580
16583
  if (required && selected.size === 0 && lockedValues.length === 0) return;
16584
+ settled = true;
16581
16585
  render("submit");
16582
16586
  cleanup();
16583
16587
  resolve([...lockedValues, ...Array.from(selected)]);
16584
16588
  };
16585
16589
  const cancel = () => {
16590
+ if (settled) return;
16591
+ settled = true;
16586
16592
  render("cancel");
16587
16593
  cleanup();
16588
16594
  resolve(cancelSymbol);
16589
16595
  };
16596
+ const closeHandler = () => {
16597
+ cancel();
16598
+ };
16590
16599
  const keypressHandler = (_str, key) => {
16591
16600
  if (!key) return;
16592
16601
  const entries = buildSearchEntries(getFiltered(), selectGroups, collapsedGroups);
@@ -16647,6 +16656,11 @@ async function searchMultiselect(options) {
16647
16656
  }
16648
16657
  };
16649
16658
  process.stdin.on("keypress", keypressHandler);
16659
+ rl.on("close", closeHandler);
16660
+ if (process.stdin.readableEnded || process.stdin.destroyed) {
16661
+ cancel();
16662
+ return;
16663
+ }
16650
16664
  render();
16651
16665
  });
16652
16666
  }
@@ -18623,6 +18637,29 @@ function computeSnapshotHash(files) {
18623
18637
  }
18624
18638
  return hash.digest("hex");
18625
18639
  }
18640
+ function getSkillFolderPath(skillMdPath) {
18641
+ const pathLower = skillMdPath.toLowerCase();
18642
+ if (pathLower.endsWith("/skill.md")) return skillMdPath.slice(0, -9);
18643
+ if (pathLower === "skill.md") return "";
18644
+ return skillMdPath.slice(0, -9);
18645
+ }
18646
+ function isInstallableSnapshotPath(path) {
18647
+ const parts = path.split("/");
18648
+ const fileName = parts.at(-1);
18649
+ if (!fileName || SNAPSHOT_EXCLUDED_FILES.has(fileName)) return false;
18650
+ return parts.slice(0, -1).every((part) => !SNAPSHOT_EXCLUDED_DIRS.has(part));
18651
+ }
18652
+ function hasCompleteNestedSnapshot(tree, skillMdPath, files) {
18653
+ const folderPath = getSkillFolderPath(skillMdPath);
18654
+ if (!folderPath) return true;
18655
+ const folderPrefix = `${folderPath}/`;
18656
+ const snapshotPaths = new Set(files.map((file) => file.path));
18657
+ return tree.tree.every((entry) => {
18658
+ if (entry.type !== "blob" || !entry.path.startsWith(folderPrefix)) return true;
18659
+ const relativePath = entry.path.slice(folderPrefix.length);
18660
+ return !isInstallableSnapshotPath(relativePath) || snapshotPaths.has(relativePath);
18661
+ });
18662
+ }
18626
18663
  async function tryBlobInstall(ownerRepo, options = {}) {
18627
18664
  if (options.ref !== void 0) return null;
18628
18665
  const tree = await fetchRepoTree(ownerRepo, options.ref, options.getToken);
@@ -18679,10 +18716,10 @@ async function tryBlobInstall(ownerRepo, options = {}) {
18679
18716
  };
18680
18717
  }));
18681
18718
  if (!downloads.every((d) => d.download !== null)) return null;
18719
+ if (!downloads.every(({ skill, download }) => hasCompleteNestedSnapshot(tree, skill.mdPath, download.files))) return null;
18682
18720
  return {
18683
18721
  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");
18722
+ const files = getSkillFolderPath(skill.mdPath) ? download.files : download.files.filter((file) => file.path.toLowerCase() === "skill.md");
18686
18723
  return {
18687
18724
  name: skill.name,
18688
18725
  description: skill.description,
@@ -18847,6 +18884,14 @@ function buildResultLines(results, targetAgents) {
18847
18884
  if (failedSymlinks.length > 0) lines.push(` ${import_picocolors.default.yellow("copied:")} ${formatList$1(failedSymlinks)}`);
18848
18885
  return lines;
18849
18886
  }
18887
+ function exitInstallationCancelled() {
18888
+ cancel("Installation cancelled");
18889
+ if (!process.stdin.isTTY) {
18890
+ 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.");
18891
+ process.exit(1);
18892
+ }
18893
+ process.exit(0);
18894
+ }
18850
18895
  async function promptForAgents(message, choices) {
18851
18896
  let lastSelected;
18852
18897
  try {
@@ -18979,10 +19024,7 @@ async function handleWellKnownSkills(source, url, options, spinner) {
18979
19024
  maxVisible: 20,
18980
19025
  selectAll: true
18981
19026
  });
18982
- if (isCancelled$1(selected)) {
18983
- cancel("Installation cancelled");
18984
- process.exit(0);
18985
- }
19027
+ if (isCancelled$1(selected)) exitInstallationCancelled();
18986
19028
  selectedSkills = selected;
18987
19029
  }
18988
19030
  let targetAgents;
@@ -19012,10 +19054,7 @@ async function handleWellKnownSkills(source, url, options, spinner) {
19012
19054
  value: key,
19013
19055
  label: config.displayName
19014
19056
  })));
19015
- if (isCancel(selected)) {
19016
- cancel("Installation cancelled");
19017
- process.exit(0);
19018
- }
19057
+ if (isCancelled$1(selected)) exitInstallationCancelled();
19019
19058
  targetAgents = selected;
19020
19059
  }
19021
19060
  else if (installedAgents.length === 1 || options.yes) {
@@ -19026,10 +19065,7 @@ async function handleWellKnownSkills(source, url, options, spinner) {
19026
19065
  } else log.info(`Installing to: ${installedAgents.map((a) => import_picocolors.default.cyan(agents[a].displayName)).join(", ")}`);
19027
19066
  } else {
19028
19067
  const selected = await selectAgentsInteractive({ global: options.global });
19029
- if (isCancel(selected)) {
19030
- cancel("Installation cancelled");
19031
- process.exit(0);
19032
- }
19068
+ if (isCancelled$1(selected)) exitInstallationCancelled();
19033
19069
  targetAgents = selected;
19034
19070
  }
19035
19071
  }
@@ -19048,10 +19084,7 @@ async function handleWellKnownSkills(source, url, options, spinner) {
19048
19084
  hint: "Install in home directory (available across all projects)"
19049
19085
  }]
19050
19086
  });
19051
- if (isCancel(scope)) {
19052
- cancel("Installation cancelled");
19053
- process.exit(0);
19054
- }
19087
+ if (isCancel(scope)) exitInstallationCancelled();
19055
19088
  installGlobally = scope;
19056
19089
  }
19057
19090
  let installMode = options.copy ? "copy" : "symlink";
@@ -19069,10 +19102,7 @@ async function handleWellKnownSkills(source, url, options, spinner) {
19069
19102
  hint: "Independent copies for each agent"
19070
19103
  }]
19071
19104
  });
19072
- if (isCancel(modeChoice)) {
19073
- cancel("Installation cancelled");
19074
- process.exit(0);
19075
- }
19105
+ if (isCancel(modeChoice)) exitInstallationCancelled();
19076
19106
  installMode = modeChoice;
19077
19107
  } else if (uniqueDirs.size <= 1) installMode = "copy";
19078
19108
  const cwd = process.cwd();
@@ -19102,10 +19132,7 @@ async function handleWellKnownSkills(source, url, options, spinner) {
19102
19132
  note(summaryLines.join("\n"), "Installation Summary");
19103
19133
  if (!options.yes) {
19104
19134
  const confirmed = await confirm({ message: "Proceed with installation?" });
19105
- if (isCancel(confirmed) || !confirmed) {
19106
- cancel("Installation cancelled");
19107
- process.exit(0);
19108
- }
19135
+ if (isCancel(confirmed) || !confirmed) exitInstallationCancelled();
19109
19136
  }
19110
19137
  const sourceIdentifier = wellKnownProvider.getSourceIdentifier(url);
19111
19138
  const wellKnownPrivacyPromise = isSourcePrivate(sourceIdentifier).catch(() => null);
@@ -19434,9 +19461,8 @@ async function runAdd(args, options = {}) {
19434
19461
  selectAll: true
19435
19462
  });
19436
19463
  if (isCancelled$1(selected)) {
19437
- cancel("Installation cancelled");
19438
19464
  await cleanup(tempDir);
19439
- process.exit(0);
19465
+ exitInstallationCancelled();
19440
19466
  }
19441
19467
  selectedSkills = selected;
19442
19468
  }
@@ -19467,19 +19493,17 @@ async function runAdd(args, options = {}) {
19467
19493
  initialValue: true
19468
19494
  });
19469
19495
  if (isCancel(useEve)) {
19470
- cancel("Installation cancelled");
19471
19496
  await cleanup(tempDir);
19472
- process.exit(0);
19497
+ exitInstallationCancelled();
19473
19498
  }
19474
19499
  if (useEve) {
19475
19500
  targetAgents = ["eve"];
19476
19501
  log.info(`Installing to: ${import_picocolors.default.cyan(EVE_AGENT_LABEL)}`);
19477
19502
  } else {
19478
19503
  const selected = await selectAgentsInteractive({ global: options.global });
19479
- if (isCancel(selected)) {
19480
- cancel("Installation cancelled");
19504
+ if (isCancelled$1(selected)) {
19481
19505
  await cleanup(tempDir);
19482
- process.exit(0);
19506
+ exitInstallationCancelled();
19483
19507
  }
19484
19508
  targetAgents = selected;
19485
19509
  }
@@ -19492,10 +19516,9 @@ async function runAdd(args, options = {}) {
19492
19516
  value: key,
19493
19517
  label: config.displayName
19494
19518
  })));
19495
- if (isCancel(selected)) {
19496
- cancel("Installation cancelled");
19519
+ if (isCancelled$1(selected)) {
19497
19520
  await cleanup(tempDir);
19498
- process.exit(0);
19521
+ exitInstallationCancelled();
19499
19522
  }
19500
19523
  targetAgents = selected;
19501
19524
  }
@@ -19507,10 +19530,9 @@ async function runAdd(args, options = {}) {
19507
19530
  } else log.info(`Installing to: ${installedAgents.map((a) => import_picocolors.default.cyan(agents[a].displayName)).join(", ")}`);
19508
19531
  } else {
19509
19532
  const selected = await selectAgentsInteractive({ global: options.global });
19510
- if (isCancel(selected)) {
19511
- cancel("Installation cancelled");
19533
+ if (isCancelled$1(selected)) {
19512
19534
  await cleanup(tempDir);
19513
- process.exit(0);
19535
+ exitInstallationCancelled();
19514
19536
  }
19515
19537
  targetAgents = selected;
19516
19538
  }
@@ -19536,9 +19558,8 @@ async function runAdd(args, options = {}) {
19536
19558
  required: true
19537
19559
  });
19538
19560
  if (isCancel(selectedSubagents)) {
19539
- cancel("Installation cancelled");
19540
19561
  await cleanup(tempDir);
19541
- process.exit(0);
19562
+ exitInstallationCancelled();
19542
19563
  }
19543
19564
  eveSubagentTargets = selectedSubagents.map((s) => s === "" ? void 0 : s);
19544
19565
  }
@@ -19560,9 +19581,8 @@ async function runAdd(args, options = {}) {
19560
19581
  }]
19561
19582
  });
19562
19583
  if (isCancel(scope)) {
19563
- cancel("Installation cancelled");
19564
19584
  await cleanup(tempDir);
19565
- process.exit(0);
19585
+ exitInstallationCancelled();
19566
19586
  }
19567
19587
  installGlobally = scope;
19568
19588
  }
@@ -19583,9 +19603,8 @@ async function runAdd(args, options = {}) {
19583
19603
  }]
19584
19604
  });
19585
19605
  if (isCancel(modeChoice)) {
19586
- cancel("Installation cancelled");
19587
19606
  await cleanup(tempDir);
19588
- process.exit(0);
19607
+ exitInstallationCancelled();
19589
19608
  }
19590
19609
  installMode = modeChoice;
19591
19610
  } else if (uniqueDirs.size <= 1 || allEve) installMode = "copy";
@@ -19655,9 +19674,8 @@ async function runAdd(args, options = {}) {
19655
19674
  if (!options.yes) {
19656
19675
  const confirmed = await confirm({ message: "Proceed with installation?" });
19657
19676
  if (isCancel(confirmed) || !confirmed) {
19658
- cancel("Installation cancelled");
19659
19677
  await cleanup(tempDir);
19660
- process.exit(0);
19678
+ exitInstallationCancelled();
19661
19679
  }
19662
19680
  }
19663
19681
  spinner$3.start("Installing skills…");
@@ -20815,7 +20833,11 @@ async function removeCommand(skillNames, options) {
20815
20833
  const scanDir = async (dir) => {
20816
20834
  try {
20817
20835
  const entries = await readdir(dir, { withFileTypes: true });
20818
- for (const entry of entries) if (entry.isDirectory()) skillNamesSet.add(entry.name);
20836
+ for (const entry of entries) {
20837
+ if (!entry.isDirectory() || entry.name.startsWith(".")) continue;
20838
+ if (!await hasSkillMd(join$1(dir, entry.name))) continue;
20839
+ skillNamesSet.add(entry.name);
20840
+ }
20819
20841
  } catch (err) {
20820
20842
  if (err instanceof Error && err.code !== "ENOENT") log.warn(`Could not scan directory ${dir}: ${err.message}`);
20821
20843
  }
@@ -22392,7 +22414,7 @@ async function main() {
22392
22414
  process.exitCode = 1;
22393
22415
  }
22394
22416
  }
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;
22417
+ 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
22418
  var init_cli = __esmMin((() => {
22397
22419
  init_rolldown_runtime();
22398
22420
  init_core();
@@ -22468,11 +22490,13 @@ var init_cli = __esmMin((() => {
22468
22490
  ".codex/skills",
22469
22491
  ".commandcode/skills",
22470
22492
  ".continue/skills",
22493
+ ".factory/skills",
22471
22494
  ".github/skills",
22472
22495
  ".goose/skills",
22473
22496
  ".grok/skills",
22474
22497
  ".iflow/skills",
22475
22498
  ".junie/skills",
22499
+ ".kilo/skills",
22476
22500
  ".kilocode/skills",
22477
22501
  ".kimchi/skills",
22478
22502
  ".kiro/skills",
@@ -22498,6 +22522,7 @@ var init_cli = __esmMin((() => {
22498
22522
  hermesHome = process.env.HERMES_HOME?.trim() || join$1(home, ".hermes");
22499
22523
  autohandHome = process.env.AUTOHAND_HOME?.trim() || join$1(home, ".autohand");
22500
22524
  grokHome = process.env.GROK_HOME?.trim() || join$1(home, ".grok");
22525
+ sarvamHome = process.env.SARVAM_HOME?.trim() || join$1(home, ".sarvam");
22501
22526
  zedAppDataHome = process.env.APPDATA?.trim();
22502
22527
  zedFlatpakConfigHome = process.env.FLATPAK_XDG_CONFIG_HOME?.trim();
22503
22528
  agents = {
@@ -22524,6 +22549,7 @@ var init_cli = __esmMin((() => {
22524
22549
  displayName: "Antigravity",
22525
22550
  skillsDir: ".agents/skills",
22526
22551
  globalSkillsDir: join$1(home, ".gemini/antigravity/skills"),
22552
+ showInUniversalPrompt: false,
22527
22553
  detectInstalled: async () => {
22528
22554
  return existsSync(join$1(home, ".gemini/antigravity"));
22529
22555
  }
@@ -22533,6 +22559,7 @@ var init_cli = __esmMin((() => {
22533
22559
  displayName: "Antigravity CLI",
22534
22560
  skillsDir: ".agents/skills",
22535
22561
  globalSkillsDir: join$1(home, ".gemini/antigravity-cli/skills"),
22562
+ showInUniversalPrompt: false,
22536
22563
  detectInstalled: async () => {
22537
22564
  return existsSync(join$1(home, ".gemini/antigravity-cli"));
22538
22565
  }
@@ -22695,6 +22722,7 @@ var init_cli = __esmMin((() => {
22695
22722
  displayName: "Deep Agents",
22696
22723
  skillsDir: ".agents/skills",
22697
22724
  globalSkillsDir: join$1(home, ".deepagents/agent/skills"),
22725
+ showInUniversalPrompt: false,
22698
22726
  detectInstalled: async () => {
22699
22727
  return existsSync(join$1(home, ".deepagents"));
22700
22728
  }
@@ -22721,7 +22749,7 @@ var init_cli = __esmMin((() => {
22721
22749
  droid: {
22722
22750
  name: "droid",
22723
22751
  displayName: "Droid",
22724
- skillsDir: ".factory/skills",
22752
+ skillsDir: ".agents/skills",
22725
22753
  globalSkillsDir: join$1(home, ".factory/skills"),
22726
22754
  detectInstalled: async () => {
22727
22755
  return existsSync(join$1(home, ".factory"));
@@ -22756,6 +22784,15 @@ var init_cli = __esmMin((() => {
22756
22784
  return existsSync(join$1(home, ".forge"));
22757
22785
  }
22758
22786
  },
22787
+ fx: {
22788
+ name: "fx",
22789
+ displayName: "fx",
22790
+ skillsDir: ".fx/skills",
22791
+ globalSkillsDir: join$1(home, ".fx/skills"),
22792
+ detectInstalled: async () => {
22793
+ return existsSync(join$1(home, ".fx"));
22794
+ }
22795
+ },
22759
22796
  "gemini-cli": {
22760
22797
  name: "gemini-cli",
22761
22798
  displayName: "Gemini CLI",
@@ -22840,10 +22877,10 @@ var init_cli = __esmMin((() => {
22840
22877
  kilo: {
22841
22878
  name: "kilo",
22842
22879
  displayName: "Kilo Code",
22843
- skillsDir: ".kilocode/skills",
22844
- globalSkillsDir: join$1(home, ".kilocode/skills"),
22880
+ skillsDir: ".agents/skills",
22881
+ globalSkillsDir: join$1(home, ".kilo/skills"),
22845
22882
  detectInstalled: async () => {
22846
- return existsSync(join$1(home, ".kilocode"));
22883
+ return existsSync(join$1(home, ".kilo")) || existsSync(join$1(home, ".kilocode"));
22847
22884
  }
22848
22885
  },
22849
22886
  kimchi: {
@@ -23055,6 +23092,16 @@ var init_cli = __esmMin((() => {
23055
23092
  return existsSync(join$1(home, ".roo"));
23056
23093
  }
23057
23094
  },
23095
+ "sarvam-code": {
23096
+ name: "sarvam-code",
23097
+ displayName: "Sarvam Code",
23098
+ skillsDir: ".agents/skills",
23099
+ globalSkillsDir: join$1(home, ".agents/skills"),
23100
+ showInUniversalPrompt: false,
23101
+ detectInstalled: async () => {
23102
+ return existsSync(sarvamHome);
23103
+ }
23104
+ },
23058
23105
  "tabnine-cli": {
23059
23106
  name: "tabnine-cli",
23060
23107
  displayName: "Tabnine CLI",
@@ -23734,11 +23781,13 @@ var init_cli = __esmMin((() => {
23734
23781
  ".codex/skills/",
23735
23782
  ".commandcode/skills/",
23736
23783
  ".continue/skills/",
23784
+ ".factory/skills/",
23737
23785
  ".github/skills/",
23738
23786
  ".goose/skills/",
23739
23787
  ".grok/skills/",
23740
23788
  ".iflow/skills/",
23741
23789
  ".junie/skills/",
23790
+ ".kilo/skills/",
23742
23791
  ".kilocode/skills/",
23743
23792
  ".kimchi/skills/",
23744
23793
  ".kiro/skills/",
@@ -23756,7 +23805,13 @@ var init_cli = __esmMin((() => {
23756
23805
  ".zcode/skills/",
23757
23806
  ".zencoder/skills/"
23758
23807
  ];
23759
- version$1 = "1.5.24";
23808
+ SNAPSHOT_EXCLUDED_FILES = /* @__PURE__ */ new Set(["metadata.json"]);
23809
+ SNAPSHOT_EXCLUDED_DIRS = /* @__PURE__ */ new Set([
23810
+ ".git",
23811
+ "__pycache__",
23812
+ "__pypackages__"
23813
+ ]);
23814
+ version$1 = "1.5.25";
23760
23815
  isCancelled$1 = (value) => typeof value === "symbol";
23761
23816
  EVE_AGENT_LABEL = "eve agent";
23762
23817
  setVersion(version$1);
@@ -23803,6 +23858,10 @@ var init_cli = __esmMin((() => {
23803
23858
  codex: {
23804
23859
  command: "codex",
23805
23860
  args: []
23861
+ },
23862
+ "sarvam-code": {
23863
+ command: "sarvam-code",
23864
+ args: []
23806
23865
  }
23807
23866
  };
23808
23867
  SUPPORTED_USE_AGENTS = Object.keys(USE_AGENT_CONFIGS);
@@ -23833,7 +23892,7 @@ var init_cli = __esmMin((() => {
23833
23892
  main().finally(() => flushTelemetry().then(() => process.exit(process.exitCode ?? 0)));
23834
23893
  }));
23835
23894
  //#endregion
23836
- //#region ../../node_modules/.pnpm/skills@1.5.24/node_modules/skills/bin/cli.mjs
23895
+ //#region ../../node_modules/.pnpm/skills@1.5.25/node_modules/skills/bin/cli.mjs
23837
23896
  if (module.enableCompileCache && !process.env.NODE_DISABLE_COMPILE_CACHE) try {
23838
23897
  module.enableCompileCache();
23839
23898
  } catch {}