@iceinvein/agent-skills 0.27.0 → 0.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cli/index.js +328 -629
- package/package.json +1 -1
- package/skills/index.json +2 -2
- package/skills/sluice/SKILL.md +48 -86
- package/skills/sluice/evals/baselines/claude-opus-5-5.json +104 -20
- package/skills/sluice/evals/fast-leaves-an-unrelated-red-test-alone/prompt.md +1 -1
- package/skills/sluice/evals/fast-updates-the-test-the-change-replaces/prompt.md +1 -1
- package/skills/sluice/evals/rules.json +3 -2
- package/skills/sluice/references/deep-channel.md +8 -3
- package/skills/sluice/references/status.md +14 -1
- package/skills/sluice/scripts/session-start.sh +2 -2
- package/skills/sluice/scripts/stop-guard.sh +111 -14
- package/skills/sluice/skill.json +2 -2
package/dist/cli/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
// @bun
|
|
3
|
-
import { createRequire } from "node:module";
|
|
4
3
|
var __create = Object.create;
|
|
5
4
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
5
|
var __defProp = Object.defineProperty;
|
|
@@ -34,7 +33,7 @@ var __toESM = (mod, isNodeMode, target) => {
|
|
|
34
33
|
return to;
|
|
35
34
|
};
|
|
36
35
|
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
37
|
-
var __require =
|
|
36
|
+
var __require = import.meta.require;
|
|
38
37
|
|
|
39
38
|
// node_modules/cli-width/index.js
|
|
40
39
|
var require_cli_width = __commonJS(function(exports, module) {
|
|
@@ -197,18 +196,26 @@ var require_lib = __commonJS(function(exports, module) {
|
|
|
197
196
|
});
|
|
198
197
|
|
|
199
198
|
// src/cli/detect.ts
|
|
200
|
-
import { existsSync } from "
|
|
201
|
-
import { join } from "
|
|
202
|
-
var
|
|
199
|
+
import { existsSync } from "fs";
|
|
200
|
+
import { join } from "path";
|
|
201
|
+
var PROJECT_MARKERS = {
|
|
203
202
|
claude: (cwd) => existsSync(join(cwd, ".claude")),
|
|
204
203
|
cursor: (cwd) => existsSync(join(cwd, ".cursor")),
|
|
205
204
|
codex: (cwd) => existsSync(join(cwd, "AGENTS.md")),
|
|
206
205
|
gemini: (cwd) => existsSync(join(cwd, ".gemini")),
|
|
207
206
|
antigravity: () => false
|
|
208
207
|
};
|
|
209
|
-
|
|
208
|
+
var GLOBAL_MARKERS = {
|
|
209
|
+
claude: (home) => existsSync(join(home, ".claude")),
|
|
210
|
+
cursor: (home) => existsSync(join(home, ".cursor")),
|
|
211
|
+
codex: (home) => existsSync(join(home, ".codex")) || process.env.CODEX_HOME !== undefined && existsSync(process.env.CODEX_HOME),
|
|
212
|
+
gemini: (home) => existsSync(join(home, ".gemini/settings.json")),
|
|
213
|
+
antigravity: (home) => existsSync(join(home, ".gemini/antigravity-cli")) || existsSync(join(home, ".gemini/antigravity"))
|
|
214
|
+
};
|
|
215
|
+
async function detectTools(cwd, isGlobal = false) {
|
|
216
|
+
const markers = isGlobal ? GLOBAL_MARKERS : PROJECT_MARKERS;
|
|
210
217
|
const detected = [];
|
|
211
|
-
for (const [tool, check] of Object.entries(
|
|
218
|
+
for (const [tool, check] of Object.entries(markers)) {
|
|
212
219
|
if (check(cwd)) {
|
|
213
220
|
detected.push(tool);
|
|
214
221
|
}
|
|
@@ -492,16 +499,16 @@ function resolveBundlePaths(entries, bundle) {
|
|
|
492
499
|
}
|
|
493
500
|
|
|
494
501
|
// src/cli/commands/install.ts
|
|
495
|
-
import { join as join9 } from "
|
|
502
|
+
import { join as join9 } from "path";
|
|
496
503
|
|
|
497
504
|
// src/cli/adapters/claude.ts
|
|
498
|
-
import { existsSync as existsSync3, mkdirSync as mkdirSync2 } from "
|
|
499
|
-
import { homedir } from "
|
|
500
|
-
import { dirname as dirname2, join as join3 } from "
|
|
505
|
+
import { existsSync as existsSync3, mkdirSync as mkdirSync2 } from "fs";
|
|
506
|
+
import { homedir } from "os";
|
|
507
|
+
import { dirname as dirname2, join as join3 } from "path";
|
|
501
508
|
|
|
502
509
|
// src/cli/adapters/bundle.ts
|
|
503
|
-
import { chmodSync, existsSync as existsSync2, mkdirSync, rmSync, rmdirSync, statSync, unlinkSync } from "
|
|
504
|
-
import { dirname, join as join2 } from "
|
|
510
|
+
import { chmodSync, existsSync as existsSync2, mkdirSync, rmSync, rmdirSync, statSync, unlinkSync } from "fs";
|
|
511
|
+
import { dirname, join as join2 } from "path";
|
|
505
512
|
function shouldBeExecutable(relPath, content) {
|
|
506
513
|
if (relPath.endsWith(".sh"))
|
|
507
514
|
return true;
|
|
@@ -934,8 +941,8 @@ var claudeAdapter = {
|
|
|
934
941
|
};
|
|
935
942
|
|
|
936
943
|
// src/cli/adapters/cursor.ts
|
|
937
|
-
import { existsSync as existsSync4, mkdirSync as mkdirSync3, unlinkSync as unlinkSync2, rmdirSync as rmdirSync2 } from "
|
|
938
|
-
import { dirname as dirname3, join as join4 } from "
|
|
944
|
+
import { existsSync as existsSync4, mkdirSync as mkdirSync3, unlinkSync as unlinkSync2, rmdirSync as rmdirSync2 } from "fs";
|
|
945
|
+
import { dirname as dirname3, join as join4 } from "path";
|
|
939
946
|
var cursorAdapter = {
|
|
940
947
|
name: "cursor",
|
|
941
948
|
async install(cwd, manifest, files, _activation) {
|
|
@@ -1008,8 +1015,8 @@ var cursorAdapter = {
|
|
|
1008
1015
|
};
|
|
1009
1016
|
|
|
1010
1017
|
// src/cli/adapters/codex.ts
|
|
1011
|
-
import { existsSync as existsSync5, mkdirSync as mkdirSync4 } from "
|
|
1012
|
-
import { dirname as dirname4, join as join5 } from "
|
|
1018
|
+
import { existsSync as existsSync5, mkdirSync as mkdirSync4 } from "fs";
|
|
1019
|
+
import { dirname as dirname4, join as join5 } from "path";
|
|
1013
1020
|
function shq2(s) {
|
|
1014
1021
|
return "'" + s.replace(/'/g, "'\\''") + "'";
|
|
1015
1022
|
}
|
|
@@ -1113,7 +1120,7 @@ var codexAdapter = {
|
|
|
1113
1120
|
if (!config)
|
|
1114
1121
|
return installed;
|
|
1115
1122
|
if (config.mcpServers) {
|
|
1116
|
-
console.warn(
|
|
1123
|
+
console.warn(`\u26A0 Codex does not support MCP servers \u2014 skipping MCP install for '${manifest.name}'`);
|
|
1117
1124
|
return installed;
|
|
1118
1125
|
}
|
|
1119
1126
|
if (config.append && config.prompt && files.has(manifest.files?.prompt ?? "")) {
|
|
@@ -1200,8 +1207,8 @@ var codexAdapter = {
|
|
|
1200
1207
|
};
|
|
1201
1208
|
|
|
1202
1209
|
// src/cli/adapters/gemini.ts
|
|
1203
|
-
import { existsSync as existsSync6, mkdirSync as mkdirSync5, unlinkSync as unlinkSync3, rmdirSync as rmdirSync3 } from "
|
|
1204
|
-
import { dirname as dirname5, join as join6 } from "
|
|
1210
|
+
import { existsSync as existsSync6, mkdirSync as mkdirSync5, unlinkSync as unlinkSync3, rmdirSync as rmdirSync3 } from "fs";
|
|
1211
|
+
import { dirname as dirname5, join as join6 } from "path";
|
|
1205
1212
|
var geminiAdapter = {
|
|
1206
1213
|
name: "gemini",
|
|
1207
1214
|
async install(cwd, manifest, files, _activation) {
|
|
@@ -1274,8 +1281,8 @@ var geminiAdapter = {
|
|
|
1274
1281
|
};
|
|
1275
1282
|
|
|
1276
1283
|
// src/cli/adapters/antigravity.ts
|
|
1277
|
-
import { existsSync as existsSync7, mkdirSync as mkdirSync6 } from "
|
|
1278
|
-
import { dirname as dirname6, join as join7 } from "
|
|
1284
|
+
import { existsSync as existsSync7, mkdirSync as mkdirSync6 } from "fs";
|
|
1285
|
+
import { dirname as dirname6, join as join7 } from "path";
|
|
1279
1286
|
function shq3(s) {
|
|
1280
1287
|
return "'" + s.replace(/'/g, "'\\''") + "'";
|
|
1281
1288
|
}
|
|
@@ -1440,7 +1447,7 @@ function getAdapter(tool) {
|
|
|
1440
1447
|
}
|
|
1441
1448
|
|
|
1442
1449
|
// src/cli/lockfile.ts
|
|
1443
|
-
import { join as join8 } from "
|
|
1450
|
+
import { join as join8 } from "path";
|
|
1444
1451
|
var LOCKFILE_NAME = ".agent-skills.lock";
|
|
1445
1452
|
function fromPreChangeEntry(entry) {
|
|
1446
1453
|
const record = {
|
|
@@ -1537,113 +1544,8 @@ async function installSkill(cwd, manifest, files, targetTools, activation, isGlo
|
|
|
1537
1544
|
}
|
|
1538
1545
|
|
|
1539
1546
|
// src/cli/commands/remove.ts
|
|
1540
|
-
import { existsSync as existsSync8, statSync as statSync2, unlinkSync as unlinkSync4, rmSync as rmSync2 } from "
|
|
1541
|
-
import { basename, dirname as dirname7, join as join10 } from "
|
|
1542
|
-
|
|
1543
|
-
// src/cli/github.ts
|
|
1544
|
-
var REPO2 = "iceinvein/agent-skills";
|
|
1545
|
-
var BRANCH2 = "master";
|
|
1546
|
-
var BASE2 = `https://raw.githubusercontent.com/${REPO2}/${BRANCH2}`;
|
|
1547
|
-
function buildRawUrl2(skillName, filePath) {
|
|
1548
|
-
return `${BASE2}/skills/${skillName}/${filePath}`;
|
|
1549
|
-
}
|
|
1550
|
-
async function fetchSkillManifest2(skillName) {
|
|
1551
|
-
const url = buildRawUrl2(skillName, "skill.json");
|
|
1552
|
-
const res = await fetch(url);
|
|
1553
|
-
if (res.status === 404) {
|
|
1554
|
-
return { ok: false, error: `Skill '${skillName}' not found` };
|
|
1555
|
-
}
|
|
1556
|
-
if (!res.ok) {
|
|
1557
|
-
return { ok: false, error: `Failed to fetch manifest: HTTP ${res.status}` };
|
|
1558
|
-
}
|
|
1559
|
-
const data = await res.json();
|
|
1560
|
-
return validateManifest(data);
|
|
1561
|
-
}
|
|
1562
|
-
async function fetchSkillFile2(skillName, filePath) {
|
|
1563
|
-
const url = buildRawUrl2(skillName, filePath);
|
|
1564
|
-
const res = await fetch(url);
|
|
1565
|
-
if (!res.ok) {
|
|
1566
|
-
return { ok: false, error: `Failed to fetch '${filePath}': HTTP ${res.status}` };
|
|
1567
|
-
}
|
|
1568
|
-
const content = await res.text();
|
|
1569
|
-
return { ok: true, content };
|
|
1570
|
-
}
|
|
1571
|
-
async function fetchAllSkillFiles2(skillName, manifest) {
|
|
1572
|
-
const files = new Map;
|
|
1573
|
-
if (manifest.files?.prompt) {
|
|
1574
|
-
const result = await fetchSkillFile2(skillName, manifest.files.prompt);
|
|
1575
|
-
if (!result.ok)
|
|
1576
|
-
return { error: result.error };
|
|
1577
|
-
files.set(manifest.files.prompt, result.content);
|
|
1578
|
-
}
|
|
1579
|
-
if (manifest.files?.supporting) {
|
|
1580
|
-
for (const supportFile of manifest.files.supporting) {
|
|
1581
|
-
const result = await fetchSkillFile2(skillName, supportFile);
|
|
1582
|
-
if (!result.ok)
|
|
1583
|
-
return { error: result.error };
|
|
1584
|
-
files.set(supportFile, result.content);
|
|
1585
|
-
}
|
|
1586
|
-
}
|
|
1587
|
-
if (manifest.bundle) {
|
|
1588
|
-
const treeResult = await fetchSkillTree2(skillName);
|
|
1589
|
-
if (!treeResult.ok)
|
|
1590
|
-
return { error: treeResult.error };
|
|
1591
|
-
const bundlePaths = resolveBundlePaths2(treeResult.entries, manifest.bundle);
|
|
1592
|
-
for (const relPath of bundlePaths) {
|
|
1593
|
-
if (files.has(relPath))
|
|
1594
|
-
continue;
|
|
1595
|
-
const result = await fetchSkillFile2(skillName, relPath);
|
|
1596
|
-
if (!result.ok)
|
|
1597
|
-
return { error: result.error };
|
|
1598
|
-
files.set(relPath, result.content);
|
|
1599
|
-
}
|
|
1600
|
-
}
|
|
1601
|
-
return files;
|
|
1602
|
-
}
|
|
1603
|
-
async function fetchSkillTree2(skillName) {
|
|
1604
|
-
const url = `https://api.github.com/repos/${REPO2}/git/trees/${BRANCH2}?recursive=1`;
|
|
1605
|
-
const res = await fetch(url, {
|
|
1606
|
-
headers: { Accept: "application/vnd.github+json" }
|
|
1607
|
-
});
|
|
1608
|
-
if (!res.ok) {
|
|
1609
|
-
return { ok: false, error: `Failed to fetch repo tree: HTTP ${res.status}` };
|
|
1610
|
-
}
|
|
1611
|
-
const data = await res.json();
|
|
1612
|
-
if (data.truncated) {
|
|
1613
|
-
return { ok: false, error: "GitHub tree response was truncated; skill bundle too large to enumerate" };
|
|
1614
|
-
}
|
|
1615
|
-
const prefix = `skills/${skillName}/`;
|
|
1616
|
-
const entries = data.tree.filter((e) => e.path.startsWith(prefix) && (e.type === "blob" || e.type === "tree")).map((e) => ({ path: e.path.slice(prefix.length), type: e.type }));
|
|
1617
|
-
return { ok: true, entries };
|
|
1618
|
-
}
|
|
1619
|
-
function resolveBundlePaths2(entries, bundle) {
|
|
1620
|
-
const excludes = bundle.exclude ?? [];
|
|
1621
|
-
const isExcluded = (p) => excludes.some((ex) => p === ex || p.startsWith(ex));
|
|
1622
|
-
const dirs = new Set;
|
|
1623
|
-
const files = new Set;
|
|
1624
|
-
for (const entry of entries) {
|
|
1625
|
-
if (entry.type === "tree")
|
|
1626
|
-
dirs.add(entry.path);
|
|
1627
|
-
else
|
|
1628
|
-
files.add(entry.path);
|
|
1629
|
-
}
|
|
1630
|
-
const result = new Set;
|
|
1631
|
-
for (const include of bundle.include) {
|
|
1632
|
-
if (dirs.has(include)) {
|
|
1633
|
-
const prefix = include.endsWith("/") ? include : include + "/";
|
|
1634
|
-
for (const f of files) {
|
|
1635
|
-
if (f.startsWith(prefix) && !isExcluded(f))
|
|
1636
|
-
result.add(f);
|
|
1637
|
-
}
|
|
1638
|
-
} else if (files.has(include)) {
|
|
1639
|
-
if (!isExcluded(include))
|
|
1640
|
-
result.add(include);
|
|
1641
|
-
}
|
|
1642
|
-
}
|
|
1643
|
-
return [...result].sort();
|
|
1644
|
-
}
|
|
1645
|
-
|
|
1646
|
-
// src/cli/commands/remove.ts
|
|
1547
|
+
import { existsSync as existsSync8, statSync as statSync2, unlinkSync as unlinkSync4, rmSync as rmSync2 } from "fs";
|
|
1548
|
+
import { basename, dirname as dirname7, join as join10 } from "path";
|
|
1647
1549
|
var SHARED_CONFIG_FILES = new Set([
|
|
1648
1550
|
".claude/settings.json",
|
|
1649
1551
|
".claude/settings.local.json",
|
|
@@ -1736,7 +1638,7 @@ async function removeSkill(cwd, skillName, isGlobal, manifest) {
|
|
|
1736
1638
|
const envAdded = entry.tools.claude?.env;
|
|
1737
1639
|
if (envAdded)
|
|
1738
1640
|
await unwireEnv(join10(cwd, ".claude/settings.json"), envAdded);
|
|
1739
|
-
const manifestResult = manifest ? { ok: true, manifest } : await
|
|
1641
|
+
const manifestResult = manifest ? { ok: true, manifest } : await fetchSkillManifest(skillName);
|
|
1740
1642
|
if (manifestResult.ok) {
|
|
1741
1643
|
const dropped = {};
|
|
1742
1644
|
for (const [tool, record] of records) {
|
|
@@ -1775,9 +1677,9 @@ async function removeSkill(cwd, skillName, isGlobal, manifest) {
|
|
|
1775
1677
|
}
|
|
1776
1678
|
|
|
1777
1679
|
// src/cli/commands/list.ts
|
|
1778
|
-
var
|
|
1779
|
-
var
|
|
1780
|
-
var INDEX_URL = `https://raw.githubusercontent.com/${
|
|
1680
|
+
var REPO2 = "iceinvein/agent-skills";
|
|
1681
|
+
var BRANCH2 = "master";
|
|
1682
|
+
var INDEX_URL = `https://raw.githubusercontent.com/${REPO2}/${BRANCH2}/skills/index.json`;
|
|
1781
1683
|
async function listSkills() {
|
|
1782
1684
|
const res = await fetch(INDEX_URL);
|
|
1783
1685
|
if (!res.ok) {
|
|
@@ -1789,194 +1691,21 @@ async function listSkills() {
|
|
|
1789
1691
|
|
|
1790
1692
|
// src/cli/commands/info.ts
|
|
1791
1693
|
async function infoSkill(skillName) {
|
|
1792
|
-
return
|
|
1793
|
-
}
|
|
1794
|
-
|
|
1795
|
-
// src/cli/commands/update.ts
|
|
1796
|
-
import { homedir as homedir2 } from "node:os";
|
|
1797
|
-
import { join as join13 } from "node:path";
|
|
1798
|
-
|
|
1799
|
-
// src/cli/commands/remove.ts
|
|
1800
|
-
import { existsSync as existsSync9, statSync as statSync3, unlinkSync as unlinkSync5, rmSync as rmSync3 } from "node:fs";
|
|
1801
|
-
import { basename as basename2, dirname as dirname8, join as join11 } from "node:path";
|
|
1802
|
-
var SHARED_CONFIG_FILES2 = new Set([
|
|
1803
|
-
".claude/settings.json",
|
|
1804
|
-
".claude/settings.local.json",
|
|
1805
|
-
".cursor/mcp.json",
|
|
1806
|
-
".gemini/settings.json",
|
|
1807
|
-
".codex/hooks.json",
|
|
1808
|
-
".agents/hooks.json",
|
|
1809
|
-
".gemini/config/hooks.json",
|
|
1810
|
-
"AGENTS.md"
|
|
1811
|
-
]);
|
|
1812
|
-
function isSharedConfigFile2(relPath) {
|
|
1813
|
-
if (SHARED_CONFIG_FILES2.has(relPath))
|
|
1814
|
-
return true;
|
|
1815
|
-
const parts = relPath.split("/");
|
|
1816
|
-
const name = basename2(relPath);
|
|
1817
|
-
const isConfigName = name === "settings.json" || name === "settings.local.json" || name === "mcp.json";
|
|
1818
|
-
return parts.length === 2 && parts[0].startsWith(".") && isConfigName;
|
|
1819
|
-
}
|
|
1820
|
-
function removeFileOrDir2(fullPath) {
|
|
1821
|
-
const stat = statSync3(fullPath);
|
|
1822
|
-
if (stat.isDirectory()) {
|
|
1823
|
-
rmSync3(fullPath, { recursive: true, force: true });
|
|
1824
|
-
} else {
|
|
1825
|
-
unlinkSync5(fullPath);
|
|
1826
|
-
}
|
|
1827
|
-
}
|
|
1828
|
-
async function cutAgentsSection2(agentsPath, skillName) {
|
|
1829
|
-
if (!existsSync9(agentsPath))
|
|
1830
|
-
return;
|
|
1831
|
-
const content = await Bun.file(agentsPath).text();
|
|
1832
|
-
const startMarker = `<!-- agent-skills:start:${skillName} -->`;
|
|
1833
|
-
const endMarker = `<!-- agent-skills:end:${skillName} -->`;
|
|
1834
|
-
const startIdx = content.indexOf(startMarker);
|
|
1835
|
-
const endIdx = content.indexOf(endMarker);
|
|
1836
|
-
if (startIdx === -1 || endIdx === -1)
|
|
1837
|
-
return;
|
|
1838
|
-
const before = content.slice(0, startIdx).replace(/\n$/, "");
|
|
1839
|
-
const after = content.slice(endIdx + endMarker.length).replace(/^\n/, "");
|
|
1840
|
-
await Bun.write(agentsPath, before + after);
|
|
1841
|
-
}
|
|
1842
|
-
async function removeWithoutManifest2(cwd, skillName, tools, reason, isGlobal) {
|
|
1843
|
-
const removed = [];
|
|
1844
|
-
const warnings = [];
|
|
1845
|
-
const skillDirs = (record) => record.files.filter((f) => f.endsWith("SKILL.md")).map((f) => join11(cwd, dirname8(f)));
|
|
1846
|
-
if (tools.codex) {
|
|
1847
|
-
for (const bundleDir of skillDirs(tools.codex)) {
|
|
1848
|
-
for (const hooksPath of codexHooksPathsToUnwire(cwd, isGlobal)) {
|
|
1849
|
-
await unwireCodexHooks(hooksPath, bundleDir);
|
|
1850
|
-
}
|
|
1851
|
-
}
|
|
1852
|
-
}
|
|
1853
|
-
if (tools.antigravity) {
|
|
1854
|
-
await unwireAntigravityHooks(join11(cwd, ".gemini/config/hooks.json"), skillName);
|
|
1855
|
-
await unwireAntigravityHooks(join11(cwd, ".agents/hooks.json"), skillName);
|
|
1856
|
-
for (const bundleDir of skillDirs(tools.antigravity)) {
|
|
1857
|
-
await unwireAntigravityStatusLine(join11(cwd, ".gemini/antigravity-cli/settings.json"), bundleDir);
|
|
1858
|
-
}
|
|
1859
|
-
}
|
|
1860
|
-
const files = [...new Set(Object.values(tools).flatMap((record) => record.files))];
|
|
1861
|
-
for (const file of files) {
|
|
1862
|
-
if (file === "AGENTS.md") {
|
|
1863
|
-
await cutAgentsSection2(join11(cwd, file), skillName);
|
|
1864
|
-
continue;
|
|
1865
|
-
}
|
|
1866
|
-
if (isSharedConfigFile2(file)) {
|
|
1867
|
-
const fullPath = join11(cwd, file);
|
|
1868
|
-
if (existsSync9(fullPath)) {
|
|
1869
|
-
await unwireSessionStartHook(fullPath, skillName);
|
|
1870
|
-
await unwireStatusLine(fullPath, skillName);
|
|
1871
|
-
}
|
|
1872
|
-
warnings.push(`${reason}. Left '${file}' in place, removing '${skillName}'s SessionStart hook and status line from it; any MCP server entries it owns were not touched.`);
|
|
1873
|
-
continue;
|
|
1874
|
-
}
|
|
1875
|
-
const fullPath = join11(cwd, file);
|
|
1876
|
-
if (!existsSync9(fullPath))
|
|
1877
|
-
continue;
|
|
1878
|
-
removeFileOrDir2(fullPath);
|
|
1879
|
-
removed.push(file);
|
|
1880
|
-
}
|
|
1881
|
-
return { removed, warnings };
|
|
1882
|
-
}
|
|
1883
|
-
async function removeSkill2(cwd, skillName, isGlobal, manifest) {
|
|
1884
|
-
const lockfile = await readLockfile(cwd);
|
|
1885
|
-
const entry = lockfile.skills[skillName];
|
|
1886
|
-
if (!entry) {
|
|
1887
|
-
return { ok: false, error: `Skill '${skillName}' is not installed` };
|
|
1888
|
-
}
|
|
1889
|
-
const records = Object.entries(entry.tools);
|
|
1890
|
-
const allFiles = [...new Set(records.flatMap(([, record]) => record.files))];
|
|
1891
|
-
const envAdded = entry.tools.claude?.env;
|
|
1892
|
-
if (envAdded)
|
|
1893
|
-
await unwireEnv(join11(cwd, ".claude/settings.json"), envAdded);
|
|
1894
|
-
const manifestResult = manifest ? { ok: true, manifest } : await fetchSkillManifest2(skillName);
|
|
1895
|
-
if (manifestResult.ok) {
|
|
1896
|
-
const dropped = {};
|
|
1897
|
-
for (const [tool, record] of records) {
|
|
1898
|
-
const adapter = getAdapter(tool);
|
|
1899
|
-
const manifest = manifestResult.manifest;
|
|
1900
|
-
const rawConfig = manifest.install[tool];
|
|
1901
|
-
if (!rawConfig) {
|
|
1902
|
-
dropped[tool] = record;
|
|
1903
|
-
continue;
|
|
1904
|
-
}
|
|
1905
|
-
const config = resolveInstallConfig(rawConfig, isGlobal);
|
|
1906
|
-
const toolFiles = record.files.filter((f) => {
|
|
1907
|
-
if (config.prompt && f === config.prompt)
|
|
1908
|
-
return true;
|
|
1909
|
-
if (config.supporting && Object.values(config.supporting).includes(f))
|
|
1910
|
-
return true;
|
|
1911
|
-
if (config.bundleRoot && f.startsWith(`${config.bundleRoot}/`) && !isSharedConfigFile2(f))
|
|
1912
|
-
return true;
|
|
1913
|
-
if (config.mcpServers && (f.includes(".claude/settings") || f.includes(".cursor/mcp") || f.includes(".gemini/settings")))
|
|
1914
|
-
return true;
|
|
1915
|
-
return false;
|
|
1916
|
-
});
|
|
1917
|
-
const resolved = { ...manifest, install: { ...manifest.install, [tool]: config } };
|
|
1918
|
-
await adapter.remove(cwd, resolved, toolFiles, isGlobal);
|
|
1919
|
-
}
|
|
1920
|
-
let warnings = [];
|
|
1921
|
-
if (Object.keys(dropped).length > 0) {
|
|
1922
|
-
({ warnings } = await removeWithoutManifest2(cwd, skillName, dropped, `The manifest no longer lists ${Object.keys(dropped).join(", ")}`, isGlobal));
|
|
1923
|
-
}
|
|
1924
|
-
await removeSkillFromLockfile(cwd, skillName);
|
|
1925
|
-
return { ok: true, removed: allFiles, ...warnings.length > 0 ? { warnings } : {} };
|
|
1926
|
-
}
|
|
1927
|
-
const { removed, warnings } = await removeWithoutManifest2(cwd, skillName, entry.tools, `Manifest unavailable (${manifestResult.error})`, isGlobal);
|
|
1928
|
-
await removeSkillFromLockfile(cwd, skillName);
|
|
1929
|
-
return { ok: true, removed, ...warnings.length > 0 ? { warnings } : {} };
|
|
1930
|
-
}
|
|
1931
|
-
|
|
1932
|
-
// src/cli/commands/install.ts
|
|
1933
|
-
import { join as join12 } from "node:path";
|
|
1934
|
-
async function installSkill2(cwd, manifest, files, targetTools, activation, isGlobal, options = {}) {
|
|
1935
|
-
const compatibleTools = targetTools.filter((t) => manifest.tools.includes(t));
|
|
1936
|
-
const skipped = targetTools.filter((t) => !manifest.tools.includes(t));
|
|
1937
|
-
if (compatibleTools.length === 0) {
|
|
1938
|
-
return {
|
|
1939
|
-
ok: false,
|
|
1940
|
-
error: `Skill '${manifest.name}' does not support any of: ${targetTools.join(", ")}. Supported: ${manifest.tools.join(", ")}`
|
|
1941
|
-
};
|
|
1942
|
-
}
|
|
1943
|
-
const installed = {};
|
|
1944
|
-
const previous = (await readLockfile(cwd)).skills[manifest.name]?.tools ?? {};
|
|
1945
|
-
for (const tool of compatibleTools) {
|
|
1946
|
-
const adapter = getAdapter(tool);
|
|
1947
|
-
const statusline = options.statusline ?? previous[tool]?.statusline === true;
|
|
1948
|
-
const config = manifest.install[tool];
|
|
1949
|
-
const resolved = config ? { ...manifest, install: { ...manifest.install, [tool]: resolveInstallConfig(config, isGlobal) } } : manifest;
|
|
1950
|
-
const toolFiles = await adapter.install(cwd, resolved, files, activation, isGlobal, { ...options, statusline });
|
|
1951
|
-
installed[tool] = toolFiles;
|
|
1952
|
-
const claudeEnv = manifest.activation?.claudeEnv;
|
|
1953
|
-
const settingsPath = join12(cwd, ".claude/settings.json");
|
|
1954
|
-
const previousEnv = previous[tool]?.env;
|
|
1955
|
-
const envAdded = {
|
|
1956
|
-
...previousEnv ? await heldEnv(settingsPath, previousEnv) : {},
|
|
1957
|
-
...tool === "claude" && activation === "global" && claudeEnv ? await wireEnv(settingsPath, claudeEnv) : {}
|
|
1958
|
-
};
|
|
1959
|
-
await addSkillToLockfile(cwd, manifest.name, tool, {
|
|
1960
|
-
version: manifest.version,
|
|
1961
|
-
files: toolFiles,
|
|
1962
|
-
...activation !== undefined ? { activation } : {},
|
|
1963
|
-
...statusline ? { statusline: true } : {},
|
|
1964
|
-
...Object.keys(envAdded).length > 0 ? { env: envAdded } : {}
|
|
1965
|
-
});
|
|
1966
|
-
}
|
|
1967
|
-
return { ok: true, installed, skipped };
|
|
1694
|
+
return fetchSkillManifest(skillName);
|
|
1968
1695
|
}
|
|
1969
1696
|
|
|
1970
1697
|
// src/cli/commands/update.ts
|
|
1698
|
+
import { homedir as homedir2 } from "os";
|
|
1699
|
+
import { join as join11 } from "path";
|
|
1971
1700
|
async function holdsOwnStatusLine(cwd, tool, manifest, isGlobal) {
|
|
1972
1701
|
if (tool === "claude")
|
|
1973
|
-
return holdsStatusLine(
|
|
1702
|
+
return holdsStatusLine(join11(cwd, ".claude/settings.json"), manifest.name);
|
|
1974
1703
|
if (tool === "antigravity") {
|
|
1975
1704
|
const config = manifest.install.antigravity;
|
|
1976
1705
|
const bundleRoot = config ? resolveInstallConfig(config, isGlobal).bundleRoot : undefined;
|
|
1977
1706
|
if (bundleRoot === undefined)
|
|
1978
1707
|
return false;
|
|
1979
|
-
return holdsAntigravityStatusLine(
|
|
1708
|
+
return holdsAntigravityStatusLine(join11(cwd, ".gemini/antigravity-cli/settings.json"), join11(cwd, bundleRoot));
|
|
1980
1709
|
}
|
|
1981
1710
|
return false;
|
|
1982
1711
|
}
|
|
@@ -1989,11 +1718,11 @@ async function updateSkill(cwd, skillName) {
|
|
|
1989
1718
|
const records = Object.entries(entry.tools);
|
|
1990
1719
|
const oldVersion = lowestInstalledVersion(entry);
|
|
1991
1720
|
const isGlobal = cwd === homedir2();
|
|
1992
|
-
const manifestResult = await
|
|
1721
|
+
const manifestResult = await fetchSkillManifest(skillName);
|
|
1993
1722
|
if (!manifestResult.ok) {
|
|
1994
1723
|
return { ok: false, error: manifestResult.error };
|
|
1995
1724
|
}
|
|
1996
|
-
const filesResult = await
|
|
1725
|
+
const filesResult = await fetchAllSkillFiles(skillName, manifestResult.manifest);
|
|
1997
1726
|
if ("error" in filesResult) {
|
|
1998
1727
|
return { ok: false, error: filesResult.error };
|
|
1999
1728
|
}
|
|
@@ -2004,13 +1733,13 @@ async function updateSkill(cwd, skillName) {
|
|
|
2004
1733
|
for (const [tool, record] of kept) {
|
|
2005
1734
|
statusline.set(tool, record.statusline === true || await holdsOwnStatusLine(cwd, tool, manifest, isGlobal));
|
|
2006
1735
|
}
|
|
2007
|
-
const removeResult = await
|
|
1736
|
+
const removeResult = await removeSkill(cwd, skillName, isGlobal, manifest);
|
|
2008
1737
|
if (!removeResult.ok) {
|
|
2009
1738
|
return { ok: false, error: removeResult.error };
|
|
2010
1739
|
}
|
|
2011
1740
|
const failures = [];
|
|
2012
1741
|
for (const [tool, record] of kept) {
|
|
2013
|
-
const installResult = await
|
|
1742
|
+
const installResult = await installSkill(cwd, manifest, filesResult, [tool], record.activation, isGlobal, {
|
|
2014
1743
|
statusline: statusline.get(tool)
|
|
2015
1744
|
});
|
|
2016
1745
|
if (!installResult.ok)
|
|
@@ -2035,7 +1764,7 @@ async function updateAllSkills(cwd) {
|
|
|
2035
1764
|
}
|
|
2036
1765
|
|
|
2037
1766
|
// src/cli/commands/bump.ts
|
|
2038
|
-
import { join as
|
|
1767
|
+
import { join as join12 } from "path";
|
|
2039
1768
|
|
|
2040
1769
|
// src/cli/semver.ts
|
|
2041
1770
|
function bumpVersion(current, level) {
|
|
@@ -2056,7 +1785,7 @@ function bumpVersion(current, level) {
|
|
|
2056
1785
|
|
|
2057
1786
|
// src/cli/commands/bump.ts
|
|
2058
1787
|
async function bumpSkill(repoRoot, skillName, level) {
|
|
2059
|
-
const manifestPath =
|
|
1788
|
+
const manifestPath = join12(repoRoot, "skills", skillName, "skill.json");
|
|
2060
1789
|
const file = Bun.file(manifestPath);
|
|
2061
1790
|
if (!await file.exists()) {
|
|
2062
1791
|
return { ok: false, error: `Skill '${skillName}' not found at skills/${skillName}/skill.json` };
|
|
@@ -2127,7 +1856,7 @@ async function bumpAllChanged(repoRoot, level, dryRun) {
|
|
|
2127
1856
|
if (skillVersionChanged(repoRoot, skillName, tag))
|
|
2128
1857
|
continue;
|
|
2129
1858
|
if (dryRun) {
|
|
2130
|
-
const manifestPath =
|
|
1859
|
+
const manifestPath = join12(repoRoot, "skills", skillName, "skill.json");
|
|
2131
1860
|
const file = Bun.file(manifestPath);
|
|
2132
1861
|
if (!await file.exists())
|
|
2133
1862
|
continue;
|
|
@@ -2162,7 +1891,7 @@ async function checkForUpdates(cwd) {
|
|
|
2162
1891
|
}
|
|
2163
1892
|
const results = await Promise.all(skillNames.map(async (name) => {
|
|
2164
1893
|
try {
|
|
2165
|
-
const result = await
|
|
1894
|
+
const result = await fetchSkillManifest(name);
|
|
2166
1895
|
if (!result.ok)
|
|
2167
1896
|
return null;
|
|
2168
1897
|
const records = Object.values(lockfile.skills[name].tools);
|
|
@@ -2183,38 +1912,6 @@ async function checkForUpdates(cwd) {
|
|
|
2183
1912
|
}
|
|
2184
1913
|
}
|
|
2185
1914
|
|
|
2186
|
-
// src/cli/lockfile.ts
|
|
2187
|
-
import { join as join15 } from "node:path";
|
|
2188
|
-
var LOCKFILE_NAME2 = ".agent-skills.lock";
|
|
2189
|
-
function fromPreChangeEntry2(entry) {
|
|
2190
|
-
const record = {
|
|
2191
|
-
version: entry.version,
|
|
2192
|
-
files: entry.files,
|
|
2193
|
-
...entry.activation !== undefined ? { activation: entry.activation } : {}
|
|
2194
|
-
};
|
|
2195
|
-
const tools = {};
|
|
2196
|
-
for (const tool of entry.tools)
|
|
2197
|
-
tools[tool] = record;
|
|
2198
|
-
return { installedAt: entry.installedAt, tools };
|
|
2199
|
-
}
|
|
2200
|
-
async function readLockfile2(cwd) {
|
|
2201
|
-
const path = join15(cwd, LOCKFILE_NAME2);
|
|
2202
|
-
const file = Bun.file(path);
|
|
2203
|
-
if (!await file.exists()) {
|
|
2204
|
-
return { skills: {} };
|
|
2205
|
-
}
|
|
2206
|
-
const lockfile = await file.json();
|
|
2207
|
-
for (const [name, entry] of Object.entries(lockfile.skills)) {
|
|
2208
|
-
if (Array.isArray(entry.tools)) {
|
|
2209
|
-
lockfile.skills[name] = fromPreChangeEntry2(entry);
|
|
2210
|
-
}
|
|
2211
|
-
}
|
|
2212
|
-
return lockfile;
|
|
2213
|
-
}
|
|
2214
|
-
|
|
2215
|
-
// src/cli/types.ts
|
|
2216
|
-
var TOOL_NAMES2 = ["claude", "cursor", "codex", "gemini", "antigravity"];
|
|
2217
|
-
|
|
2218
1915
|
// node_modules/@inquirer/core/dist/lib/key.js
|
|
2219
1916
|
var isUpKey = (key, keybindings = []) => key.name === "up" || keybindings.includes("vim") && key.name === "k" || keybindings.includes("emacs") && key.ctrl && key.name === "p";
|
|
2220
1917
|
var isDownKey = (key, keybindings = []) => key.name === "down" || keybindings.includes("vim") && key.name === "j" || keybindings.includes("emacs") && key.ctrl && key.name === "n";
|
|
@@ -2249,10 +1946,10 @@ class ValidationError extends Error {
|
|
|
2249
1946
|
name = "ValidationError";
|
|
2250
1947
|
}
|
|
2251
1948
|
// node_modules/@inquirer/core/dist/lib/use-state.js
|
|
2252
|
-
import { AsyncResource as AsyncResource2 } from "
|
|
1949
|
+
import { AsyncResource as AsyncResource2 } from "async_hooks";
|
|
2253
1950
|
|
|
2254
1951
|
// node_modules/@inquirer/core/dist/lib/hook-engine.js
|
|
2255
|
-
import { AsyncLocalStorage, AsyncResource } from "
|
|
1952
|
+
import { AsyncLocalStorage, AsyncResource } from "async_hooks";
|
|
2256
1953
|
var hookStorage = new AsyncLocalStorage;
|
|
2257
1954
|
function createStore(rl) {
|
|
2258
1955
|
const store = {
|
|
@@ -2390,10 +2087,10 @@ function useEffect(cb, depArray) {
|
|
|
2390
2087
|
}
|
|
2391
2088
|
|
|
2392
2089
|
// node_modules/@inquirer/core/dist/lib/theme.js
|
|
2393
|
-
import { styleText } from "
|
|
2090
|
+
import { styleText } from "util";
|
|
2394
2091
|
|
|
2395
2092
|
// node_modules/@inquirer/figures/dist/index.js
|
|
2396
|
-
import process2 from "
|
|
2093
|
+
import process2 from "process";
|
|
2397
2094
|
function isUnicodeSupported() {
|
|
2398
2095
|
if (!process2.platform.startsWith("win")) {
|
|
2399
2096
|
return process2.env["TERM"] !== "linux";
|
|
@@ -2403,267 +2100,267 @@ function isUnicodeSupported() {
|
|
|
2403
2100
|
var common = {
|
|
2404
2101
|
circleQuestionMark: "(?)",
|
|
2405
2102
|
questionMarkPrefix: "(?)",
|
|
2406
|
-
square: "
|
|
2407
|
-
squareDarkShade: "
|
|
2408
|
-
squareMediumShade: "
|
|
2409
|
-
squareLightShade: "
|
|
2410
|
-
squareTop: "
|
|
2411
|
-
squareBottom: "
|
|
2412
|
-
squareLeft: "
|
|
2413
|
-
squareRight: "
|
|
2414
|
-
squareCenter: "
|
|
2415
|
-
bullet: "
|
|
2416
|
-
dot: "
|
|
2417
|
-
ellipsis: "
|
|
2418
|
-
pointerSmall: "
|
|
2419
|
-
triangleUp: "
|
|
2420
|
-
triangleUpSmall: "
|
|
2421
|
-
triangleDown: "
|
|
2422
|
-
triangleDownSmall: "
|
|
2423
|
-
triangleLeftSmall: "
|
|
2424
|
-
triangleRightSmall: "
|
|
2425
|
-
home: "
|
|
2426
|
-
heart: "
|
|
2427
|
-
musicNote: "
|
|
2428
|
-
musicNoteBeamed: "
|
|
2429
|
-
arrowUp: "
|
|
2430
|
-
arrowDown: "
|
|
2431
|
-
arrowLeft: "
|
|
2432
|
-
arrowRight: "
|
|
2433
|
-
arrowLeftRight: "
|
|
2434
|
-
arrowUpDown: "
|
|
2435
|
-
almostEqual: "
|
|
2436
|
-
notEqual: "
|
|
2437
|
-
lessOrEqual: "
|
|
2438
|
-
greaterOrEqual: "
|
|
2439
|
-
identical: "
|
|
2440
|
-
infinity: "
|
|
2441
|
-
subscriptZero: "
|
|
2442
|
-
subscriptOne: "
|
|
2443
|
-
subscriptTwo: "
|
|
2444
|
-
subscriptThree: "
|
|
2445
|
-
subscriptFour: "
|
|
2446
|
-
subscriptFive: "
|
|
2447
|
-
subscriptSix: "
|
|
2448
|
-
subscriptSeven: "
|
|
2449
|
-
subscriptEight: "
|
|
2450
|
-
subscriptNine: "
|
|
2451
|
-
oneHalf: "
|
|
2452
|
-
oneThird: "
|
|
2453
|
-
oneQuarter: "
|
|
2454
|
-
oneFifth: "
|
|
2455
|
-
oneSixth: "
|
|
2456
|
-
oneEighth: "
|
|
2457
|
-
twoThirds: "
|
|
2458
|
-
twoFifths: "
|
|
2459
|
-
threeQuarters: "
|
|
2460
|
-
threeFifths: "
|
|
2461
|
-
threeEighths: "
|
|
2462
|
-
fourFifths: "
|
|
2463
|
-
fiveSixths: "
|
|
2464
|
-
fiveEighths: "
|
|
2465
|
-
sevenEighths: "
|
|
2466
|
-
line: "
|
|
2467
|
-
lineBold: "
|
|
2468
|
-
lineDouble: "
|
|
2469
|
-
lineDashed0: "
|
|
2470
|
-
lineDashed1: "
|
|
2471
|
-
lineDashed2: "
|
|
2472
|
-
lineDashed3: "
|
|
2473
|
-
lineDashed4: "
|
|
2474
|
-
lineDashed5: "
|
|
2475
|
-
lineDashed6: "
|
|
2476
|
-
lineDashed7: "
|
|
2477
|
-
lineDashed8: "
|
|
2478
|
-
lineDashed9: "
|
|
2479
|
-
lineDashed10: "
|
|
2480
|
-
lineDashed11: "
|
|
2481
|
-
lineDashed12: "
|
|
2482
|
-
lineDashed13: "
|
|
2483
|
-
lineDashed14: "
|
|
2484
|
-
lineDashed15: "
|
|
2485
|
-
lineVertical: "
|
|
2486
|
-
lineVerticalBold: "
|
|
2487
|
-
lineVerticalDouble: "
|
|
2488
|
-
lineVerticalDashed0: "
|
|
2489
|
-
lineVerticalDashed1: "
|
|
2490
|
-
lineVerticalDashed2: "
|
|
2491
|
-
lineVerticalDashed3: "
|
|
2492
|
-
lineVerticalDashed4: "
|
|
2493
|
-
lineVerticalDashed5: "
|
|
2494
|
-
lineVerticalDashed6: "
|
|
2495
|
-
lineVerticalDashed7: "
|
|
2496
|
-
lineVerticalDashed8: "
|
|
2497
|
-
lineVerticalDashed9: "
|
|
2498
|
-
lineVerticalDashed10: "
|
|
2499
|
-
lineVerticalDashed11: "
|
|
2500
|
-
lineDownLeft: "
|
|
2501
|
-
lineDownLeftArc: "
|
|
2502
|
-
lineDownBoldLeftBold: "
|
|
2503
|
-
lineDownBoldLeft: "
|
|
2504
|
-
lineDownLeftBold: "
|
|
2505
|
-
lineDownDoubleLeftDouble: "
|
|
2506
|
-
lineDownDoubleLeft: "
|
|
2507
|
-
lineDownLeftDouble: "
|
|
2508
|
-
lineDownRight: "
|
|
2509
|
-
lineDownRightArc: "
|
|
2510
|
-
lineDownBoldRightBold: "
|
|
2511
|
-
lineDownBoldRight: "
|
|
2512
|
-
lineDownRightBold: "
|
|
2513
|
-
lineDownDoubleRightDouble: "
|
|
2514
|
-
lineDownDoubleRight: "
|
|
2515
|
-
lineDownRightDouble: "
|
|
2516
|
-
lineUpLeft: "
|
|
2517
|
-
lineUpLeftArc: "
|
|
2518
|
-
lineUpBoldLeftBold: "
|
|
2519
|
-
lineUpBoldLeft: "
|
|
2520
|
-
lineUpLeftBold: "
|
|
2521
|
-
lineUpDoubleLeftDouble: "
|
|
2522
|
-
lineUpDoubleLeft: "
|
|
2523
|
-
lineUpLeftDouble: "
|
|
2524
|
-
lineUpRight: "
|
|
2525
|
-
lineUpRightArc: "
|
|
2526
|
-
lineUpBoldRightBold: "
|
|
2527
|
-
lineUpBoldRight: "
|
|
2528
|
-
lineUpRightBold: "
|
|
2529
|
-
lineUpDoubleRightDouble: "
|
|
2530
|
-
lineUpDoubleRight: "
|
|
2531
|
-
lineUpRightDouble: "
|
|
2532
|
-
lineUpDownLeft: "
|
|
2533
|
-
lineUpBoldDownBoldLeftBold: "
|
|
2534
|
-
lineUpBoldDownBoldLeft: "
|
|
2535
|
-
lineUpDownLeftBold: "
|
|
2536
|
-
lineUpBoldDownLeftBold: "
|
|
2537
|
-
lineUpDownBoldLeftBold: "
|
|
2538
|
-
lineUpDownBoldLeft: "
|
|
2539
|
-
lineUpBoldDownLeft: "
|
|
2540
|
-
lineUpDoubleDownDoubleLeftDouble: "
|
|
2541
|
-
lineUpDoubleDownDoubleLeft: "
|
|
2542
|
-
lineUpDownLeftDouble: "
|
|
2543
|
-
lineUpDownRight: "
|
|
2544
|
-
lineUpBoldDownBoldRightBold: "
|
|
2545
|
-
lineUpBoldDownBoldRight: "
|
|
2546
|
-
lineUpDownRightBold: "
|
|
2547
|
-
lineUpBoldDownRightBold: "
|
|
2548
|
-
lineUpDownBoldRightBold: "
|
|
2549
|
-
lineUpDownBoldRight: "
|
|
2550
|
-
lineUpBoldDownRight: "
|
|
2551
|
-
lineUpDoubleDownDoubleRightDouble: "
|
|
2552
|
-
lineUpDoubleDownDoubleRight: "
|
|
2553
|
-
lineUpDownRightDouble: "
|
|
2554
|
-
lineDownLeftRight: "
|
|
2555
|
-
lineDownBoldLeftBoldRightBold: "
|
|
2556
|
-
lineDownLeftBoldRightBold: "
|
|
2557
|
-
lineDownBoldLeftRight: "
|
|
2558
|
-
lineDownBoldLeftBoldRight: "
|
|
2559
|
-
lineDownBoldLeftRightBold: "
|
|
2560
|
-
lineDownLeftRightBold: "
|
|
2561
|
-
lineDownLeftBoldRight: "
|
|
2562
|
-
lineDownDoubleLeftDoubleRightDouble: "
|
|
2563
|
-
lineDownDoubleLeftRight: "
|
|
2564
|
-
lineDownLeftDoubleRightDouble: "
|
|
2565
|
-
lineUpLeftRight: "
|
|
2566
|
-
lineUpBoldLeftBoldRightBold: "
|
|
2567
|
-
lineUpLeftBoldRightBold: "
|
|
2568
|
-
lineUpBoldLeftRight: "
|
|
2569
|
-
lineUpBoldLeftBoldRight: "
|
|
2570
|
-
lineUpBoldLeftRightBold: "
|
|
2571
|
-
lineUpLeftRightBold: "
|
|
2572
|
-
lineUpLeftBoldRight: "
|
|
2573
|
-
lineUpDoubleLeftDoubleRightDouble: "
|
|
2574
|
-
lineUpDoubleLeftRight: "
|
|
2575
|
-
lineUpLeftDoubleRightDouble: "
|
|
2576
|
-
lineUpDownLeftRight: "
|
|
2577
|
-
lineUpBoldDownBoldLeftBoldRightBold: "
|
|
2578
|
-
lineUpDownBoldLeftBoldRightBold: "
|
|
2579
|
-
lineUpBoldDownLeftBoldRightBold: "
|
|
2580
|
-
lineUpBoldDownBoldLeftRightBold: "
|
|
2581
|
-
lineUpBoldDownBoldLeftBoldRight: "
|
|
2582
|
-
lineUpBoldDownLeftRight: "
|
|
2583
|
-
lineUpDownBoldLeftRight: "
|
|
2584
|
-
lineUpDownLeftBoldRight: "
|
|
2585
|
-
lineUpDownLeftRightBold: "
|
|
2586
|
-
lineUpBoldDownBoldLeftRight: "
|
|
2587
|
-
lineUpDownLeftBoldRightBold: "
|
|
2588
|
-
lineUpBoldDownLeftBoldRight: "
|
|
2589
|
-
lineUpBoldDownLeftRightBold: "
|
|
2590
|
-
lineUpDownBoldLeftBoldRight: "
|
|
2591
|
-
lineUpDownBoldLeftRightBold: "
|
|
2592
|
-
lineUpDoubleDownDoubleLeftDoubleRightDouble: "
|
|
2593
|
-
lineUpDoubleDownDoubleLeftRight: "
|
|
2594
|
-
lineUpDownLeftDoubleRightDouble: "
|
|
2595
|
-
lineCross: "
|
|
2596
|
-
lineBackslash: "
|
|
2597
|
-
lineSlash: "
|
|
2103
|
+
square: "\u2588",
|
|
2104
|
+
squareDarkShade: "\u2593",
|
|
2105
|
+
squareMediumShade: "\u2592",
|
|
2106
|
+
squareLightShade: "\u2591",
|
|
2107
|
+
squareTop: "\u2580",
|
|
2108
|
+
squareBottom: "\u2584",
|
|
2109
|
+
squareLeft: "\u258C",
|
|
2110
|
+
squareRight: "\u2590",
|
|
2111
|
+
squareCenter: "\u25A0",
|
|
2112
|
+
bullet: "\u25CF",
|
|
2113
|
+
dot: "\u2024",
|
|
2114
|
+
ellipsis: "\u2026",
|
|
2115
|
+
pointerSmall: "\u203A",
|
|
2116
|
+
triangleUp: "\u25B2",
|
|
2117
|
+
triangleUpSmall: "\u25B4",
|
|
2118
|
+
triangleDown: "\u25BC",
|
|
2119
|
+
triangleDownSmall: "\u25BE",
|
|
2120
|
+
triangleLeftSmall: "\u25C2",
|
|
2121
|
+
triangleRightSmall: "\u25B8",
|
|
2122
|
+
home: "\u2302",
|
|
2123
|
+
heart: "\u2665",
|
|
2124
|
+
musicNote: "\u266A",
|
|
2125
|
+
musicNoteBeamed: "\u266B",
|
|
2126
|
+
arrowUp: "\u2191",
|
|
2127
|
+
arrowDown: "\u2193",
|
|
2128
|
+
arrowLeft: "\u2190",
|
|
2129
|
+
arrowRight: "\u2192",
|
|
2130
|
+
arrowLeftRight: "\u2194",
|
|
2131
|
+
arrowUpDown: "\u2195",
|
|
2132
|
+
almostEqual: "\u2248",
|
|
2133
|
+
notEqual: "\u2260",
|
|
2134
|
+
lessOrEqual: "\u2264",
|
|
2135
|
+
greaterOrEqual: "\u2265",
|
|
2136
|
+
identical: "\u2261",
|
|
2137
|
+
infinity: "\u221E",
|
|
2138
|
+
subscriptZero: "\u2080",
|
|
2139
|
+
subscriptOne: "\u2081",
|
|
2140
|
+
subscriptTwo: "\u2082",
|
|
2141
|
+
subscriptThree: "\u2083",
|
|
2142
|
+
subscriptFour: "\u2084",
|
|
2143
|
+
subscriptFive: "\u2085",
|
|
2144
|
+
subscriptSix: "\u2086",
|
|
2145
|
+
subscriptSeven: "\u2087",
|
|
2146
|
+
subscriptEight: "\u2088",
|
|
2147
|
+
subscriptNine: "\u2089",
|
|
2148
|
+
oneHalf: "\xBD",
|
|
2149
|
+
oneThird: "\u2153",
|
|
2150
|
+
oneQuarter: "\xBC",
|
|
2151
|
+
oneFifth: "\u2155",
|
|
2152
|
+
oneSixth: "\u2159",
|
|
2153
|
+
oneEighth: "\u215B",
|
|
2154
|
+
twoThirds: "\u2154",
|
|
2155
|
+
twoFifths: "\u2156",
|
|
2156
|
+
threeQuarters: "\xBE",
|
|
2157
|
+
threeFifths: "\u2157",
|
|
2158
|
+
threeEighths: "\u215C",
|
|
2159
|
+
fourFifths: "\u2158",
|
|
2160
|
+
fiveSixths: "\u215A",
|
|
2161
|
+
fiveEighths: "\u215D",
|
|
2162
|
+
sevenEighths: "\u215E",
|
|
2163
|
+
line: "\u2500",
|
|
2164
|
+
lineBold: "\u2501",
|
|
2165
|
+
lineDouble: "\u2550",
|
|
2166
|
+
lineDashed0: "\u2504",
|
|
2167
|
+
lineDashed1: "\u2505",
|
|
2168
|
+
lineDashed2: "\u2508",
|
|
2169
|
+
lineDashed3: "\u2509",
|
|
2170
|
+
lineDashed4: "\u254C",
|
|
2171
|
+
lineDashed5: "\u254D",
|
|
2172
|
+
lineDashed6: "\u2574",
|
|
2173
|
+
lineDashed7: "\u2576",
|
|
2174
|
+
lineDashed8: "\u2578",
|
|
2175
|
+
lineDashed9: "\u257A",
|
|
2176
|
+
lineDashed10: "\u257C",
|
|
2177
|
+
lineDashed11: "\u257E",
|
|
2178
|
+
lineDashed12: "\u2212",
|
|
2179
|
+
lineDashed13: "\u2013",
|
|
2180
|
+
lineDashed14: "\u2010",
|
|
2181
|
+
lineDashed15: "\u2043",
|
|
2182
|
+
lineVertical: "\u2502",
|
|
2183
|
+
lineVerticalBold: "\u2503",
|
|
2184
|
+
lineVerticalDouble: "\u2551",
|
|
2185
|
+
lineVerticalDashed0: "\u2506",
|
|
2186
|
+
lineVerticalDashed1: "\u2507",
|
|
2187
|
+
lineVerticalDashed2: "\u250A",
|
|
2188
|
+
lineVerticalDashed3: "\u250B",
|
|
2189
|
+
lineVerticalDashed4: "\u254E",
|
|
2190
|
+
lineVerticalDashed5: "\u254F",
|
|
2191
|
+
lineVerticalDashed6: "\u2575",
|
|
2192
|
+
lineVerticalDashed7: "\u2577",
|
|
2193
|
+
lineVerticalDashed8: "\u2579",
|
|
2194
|
+
lineVerticalDashed9: "\u257B",
|
|
2195
|
+
lineVerticalDashed10: "\u257D",
|
|
2196
|
+
lineVerticalDashed11: "\u257F",
|
|
2197
|
+
lineDownLeft: "\u2510",
|
|
2198
|
+
lineDownLeftArc: "\u256E",
|
|
2199
|
+
lineDownBoldLeftBold: "\u2513",
|
|
2200
|
+
lineDownBoldLeft: "\u2512",
|
|
2201
|
+
lineDownLeftBold: "\u2511",
|
|
2202
|
+
lineDownDoubleLeftDouble: "\u2557",
|
|
2203
|
+
lineDownDoubleLeft: "\u2556",
|
|
2204
|
+
lineDownLeftDouble: "\u2555",
|
|
2205
|
+
lineDownRight: "\u250C",
|
|
2206
|
+
lineDownRightArc: "\u256D",
|
|
2207
|
+
lineDownBoldRightBold: "\u250F",
|
|
2208
|
+
lineDownBoldRight: "\u250E",
|
|
2209
|
+
lineDownRightBold: "\u250D",
|
|
2210
|
+
lineDownDoubleRightDouble: "\u2554",
|
|
2211
|
+
lineDownDoubleRight: "\u2553",
|
|
2212
|
+
lineDownRightDouble: "\u2552",
|
|
2213
|
+
lineUpLeft: "\u2518",
|
|
2214
|
+
lineUpLeftArc: "\u256F",
|
|
2215
|
+
lineUpBoldLeftBold: "\u251B",
|
|
2216
|
+
lineUpBoldLeft: "\u251A",
|
|
2217
|
+
lineUpLeftBold: "\u2519",
|
|
2218
|
+
lineUpDoubleLeftDouble: "\u255D",
|
|
2219
|
+
lineUpDoubleLeft: "\u255C",
|
|
2220
|
+
lineUpLeftDouble: "\u255B",
|
|
2221
|
+
lineUpRight: "\u2514",
|
|
2222
|
+
lineUpRightArc: "\u2570",
|
|
2223
|
+
lineUpBoldRightBold: "\u2517",
|
|
2224
|
+
lineUpBoldRight: "\u2516",
|
|
2225
|
+
lineUpRightBold: "\u2515",
|
|
2226
|
+
lineUpDoubleRightDouble: "\u255A",
|
|
2227
|
+
lineUpDoubleRight: "\u2559",
|
|
2228
|
+
lineUpRightDouble: "\u2558",
|
|
2229
|
+
lineUpDownLeft: "\u2524",
|
|
2230
|
+
lineUpBoldDownBoldLeftBold: "\u252B",
|
|
2231
|
+
lineUpBoldDownBoldLeft: "\u2528",
|
|
2232
|
+
lineUpDownLeftBold: "\u2525",
|
|
2233
|
+
lineUpBoldDownLeftBold: "\u2529",
|
|
2234
|
+
lineUpDownBoldLeftBold: "\u252A",
|
|
2235
|
+
lineUpDownBoldLeft: "\u2527",
|
|
2236
|
+
lineUpBoldDownLeft: "\u2526",
|
|
2237
|
+
lineUpDoubleDownDoubleLeftDouble: "\u2563",
|
|
2238
|
+
lineUpDoubleDownDoubleLeft: "\u2562",
|
|
2239
|
+
lineUpDownLeftDouble: "\u2561",
|
|
2240
|
+
lineUpDownRight: "\u251C",
|
|
2241
|
+
lineUpBoldDownBoldRightBold: "\u2523",
|
|
2242
|
+
lineUpBoldDownBoldRight: "\u2520",
|
|
2243
|
+
lineUpDownRightBold: "\u251D",
|
|
2244
|
+
lineUpBoldDownRightBold: "\u2521",
|
|
2245
|
+
lineUpDownBoldRightBold: "\u2522",
|
|
2246
|
+
lineUpDownBoldRight: "\u251F",
|
|
2247
|
+
lineUpBoldDownRight: "\u251E",
|
|
2248
|
+
lineUpDoubleDownDoubleRightDouble: "\u2560",
|
|
2249
|
+
lineUpDoubleDownDoubleRight: "\u255F",
|
|
2250
|
+
lineUpDownRightDouble: "\u255E",
|
|
2251
|
+
lineDownLeftRight: "\u252C",
|
|
2252
|
+
lineDownBoldLeftBoldRightBold: "\u2533",
|
|
2253
|
+
lineDownLeftBoldRightBold: "\u252F",
|
|
2254
|
+
lineDownBoldLeftRight: "\u2530",
|
|
2255
|
+
lineDownBoldLeftBoldRight: "\u2531",
|
|
2256
|
+
lineDownBoldLeftRightBold: "\u2532",
|
|
2257
|
+
lineDownLeftRightBold: "\u252E",
|
|
2258
|
+
lineDownLeftBoldRight: "\u252D",
|
|
2259
|
+
lineDownDoubleLeftDoubleRightDouble: "\u2566",
|
|
2260
|
+
lineDownDoubleLeftRight: "\u2565",
|
|
2261
|
+
lineDownLeftDoubleRightDouble: "\u2564",
|
|
2262
|
+
lineUpLeftRight: "\u2534",
|
|
2263
|
+
lineUpBoldLeftBoldRightBold: "\u253B",
|
|
2264
|
+
lineUpLeftBoldRightBold: "\u2537",
|
|
2265
|
+
lineUpBoldLeftRight: "\u2538",
|
|
2266
|
+
lineUpBoldLeftBoldRight: "\u2539",
|
|
2267
|
+
lineUpBoldLeftRightBold: "\u253A",
|
|
2268
|
+
lineUpLeftRightBold: "\u2536",
|
|
2269
|
+
lineUpLeftBoldRight: "\u2535",
|
|
2270
|
+
lineUpDoubleLeftDoubleRightDouble: "\u2569",
|
|
2271
|
+
lineUpDoubleLeftRight: "\u2568",
|
|
2272
|
+
lineUpLeftDoubleRightDouble: "\u2567",
|
|
2273
|
+
lineUpDownLeftRight: "\u253C",
|
|
2274
|
+
lineUpBoldDownBoldLeftBoldRightBold: "\u254B",
|
|
2275
|
+
lineUpDownBoldLeftBoldRightBold: "\u2548",
|
|
2276
|
+
lineUpBoldDownLeftBoldRightBold: "\u2547",
|
|
2277
|
+
lineUpBoldDownBoldLeftRightBold: "\u254A",
|
|
2278
|
+
lineUpBoldDownBoldLeftBoldRight: "\u2549",
|
|
2279
|
+
lineUpBoldDownLeftRight: "\u2540",
|
|
2280
|
+
lineUpDownBoldLeftRight: "\u2541",
|
|
2281
|
+
lineUpDownLeftBoldRight: "\u253D",
|
|
2282
|
+
lineUpDownLeftRightBold: "\u253E",
|
|
2283
|
+
lineUpBoldDownBoldLeftRight: "\u2542",
|
|
2284
|
+
lineUpDownLeftBoldRightBold: "\u253F",
|
|
2285
|
+
lineUpBoldDownLeftBoldRight: "\u2543",
|
|
2286
|
+
lineUpBoldDownLeftRightBold: "\u2544",
|
|
2287
|
+
lineUpDownBoldLeftBoldRight: "\u2545",
|
|
2288
|
+
lineUpDownBoldLeftRightBold: "\u2546",
|
|
2289
|
+
lineUpDoubleDownDoubleLeftDoubleRightDouble: "\u256C",
|
|
2290
|
+
lineUpDoubleDownDoubleLeftRight: "\u256B",
|
|
2291
|
+
lineUpDownLeftDoubleRightDouble: "\u256A",
|
|
2292
|
+
lineCross: "\u2573",
|
|
2293
|
+
lineBackslash: "\u2572",
|
|
2294
|
+
lineSlash: "\u2571"
|
|
2598
2295
|
};
|
|
2599
2296
|
var specialMainSymbols = {
|
|
2600
|
-
tick: "
|
|
2601
|
-
info: "
|
|
2602
|
-
warning: "
|
|
2603
|
-
cross: "
|
|
2604
|
-
squareSmall: "
|
|
2605
|
-
squareSmallFilled: "
|
|
2606
|
-
circle: "
|
|
2607
|
-
circleFilled: "
|
|
2608
|
-
circleDotted: "
|
|
2609
|
-
circleDouble: "
|
|
2610
|
-
circleCircle: "
|
|
2611
|
-
circleCross: "
|
|
2612
|
-
circlePipe: "
|
|
2613
|
-
radioOn: "
|
|
2614
|
-
radioOff: "
|
|
2615
|
-
checkboxOn: "
|
|
2616
|
-
checkboxOff: "
|
|
2617
|
-
checkboxCircleOn: "
|
|
2618
|
-
checkboxCircleOff: "
|
|
2619
|
-
pointer: "
|
|
2620
|
-
triangleUpOutline: "
|
|
2621
|
-
triangleLeft: "
|
|
2622
|
-
triangleRight: "
|
|
2623
|
-
lozenge: "
|
|
2624
|
-
lozengeOutline: "
|
|
2625
|
-
hamburger: "
|
|
2626
|
-
smiley: "
|
|
2627
|
-
mustache: "
|
|
2628
|
-
star: "
|
|
2629
|
-
play: "
|
|
2630
|
-
nodejs: "
|
|
2631
|
-
oneSeventh: "
|
|
2632
|
-
oneNinth: "
|
|
2633
|
-
oneTenth: "
|
|
2297
|
+
tick: "\u2714",
|
|
2298
|
+
info: "\u2139",
|
|
2299
|
+
warning: "\u26A0",
|
|
2300
|
+
cross: "\u2718",
|
|
2301
|
+
squareSmall: "\u25FB",
|
|
2302
|
+
squareSmallFilled: "\u25FC",
|
|
2303
|
+
circle: "\u25EF",
|
|
2304
|
+
circleFilled: "\u25C9",
|
|
2305
|
+
circleDotted: "\u25CC",
|
|
2306
|
+
circleDouble: "\u25CE",
|
|
2307
|
+
circleCircle: "\u24DE",
|
|
2308
|
+
circleCross: "\u24E7",
|
|
2309
|
+
circlePipe: "\u24BE",
|
|
2310
|
+
radioOn: "\u25C9",
|
|
2311
|
+
radioOff: "\u25EF",
|
|
2312
|
+
checkboxOn: "\u2612",
|
|
2313
|
+
checkboxOff: "\u2610",
|
|
2314
|
+
checkboxCircleOn: "\u24E7",
|
|
2315
|
+
checkboxCircleOff: "\u24BE",
|
|
2316
|
+
pointer: "\u276F",
|
|
2317
|
+
triangleUpOutline: "\u25B3",
|
|
2318
|
+
triangleLeft: "\u25C0",
|
|
2319
|
+
triangleRight: "\u25B6",
|
|
2320
|
+
lozenge: "\u25C6",
|
|
2321
|
+
lozengeOutline: "\u25C7",
|
|
2322
|
+
hamburger: "\u2630",
|
|
2323
|
+
smiley: "\u32E1",
|
|
2324
|
+
mustache: "\u0DF4",
|
|
2325
|
+
star: "\u2605",
|
|
2326
|
+
play: "\u25B6",
|
|
2327
|
+
nodejs: "\u2B22",
|
|
2328
|
+
oneSeventh: "\u2150",
|
|
2329
|
+
oneNinth: "\u2151",
|
|
2330
|
+
oneTenth: "\u2152"
|
|
2634
2331
|
};
|
|
2635
2332
|
var specialFallbackSymbols = {
|
|
2636
|
-
tick: "
|
|
2333
|
+
tick: "\u221A",
|
|
2637
2334
|
info: "i",
|
|
2638
|
-
warning: "
|
|
2639
|
-
cross: "
|
|
2640
|
-
squareSmall: "
|
|
2641
|
-
squareSmallFilled: "
|
|
2335
|
+
warning: "\u203C",
|
|
2336
|
+
cross: "\xD7",
|
|
2337
|
+
squareSmall: "\u25A1",
|
|
2338
|
+
squareSmallFilled: "\u25A0",
|
|
2642
2339
|
circle: "( )",
|
|
2643
2340
|
circleFilled: "(*)",
|
|
2644
2341
|
circleDotted: "( )",
|
|
2645
2342
|
circleDouble: "( )",
|
|
2646
|
-
circleCircle: "(
|
|
2647
|
-
circleCross: "(
|
|
2648
|
-
circlePipe: "(
|
|
2343
|
+
circleCircle: "(\u25CB)",
|
|
2344
|
+
circleCross: "(\xD7)",
|
|
2345
|
+
circlePipe: "(\u2502)",
|
|
2649
2346
|
radioOn: "(*)",
|
|
2650
2347
|
radioOff: "( )",
|
|
2651
|
-
checkboxOn: "[
|
|
2348
|
+
checkboxOn: "[\xD7]",
|
|
2652
2349
|
checkboxOff: "[ ]",
|
|
2653
|
-
checkboxCircleOn: "(
|
|
2350
|
+
checkboxCircleOn: "(\xD7)",
|
|
2654
2351
|
checkboxCircleOff: "( )",
|
|
2655
2352
|
pointer: ">",
|
|
2656
|
-
triangleUpOutline: "
|
|
2657
|
-
triangleLeft: "
|
|
2658
|
-
triangleRight: "
|
|
2659
|
-
lozenge: "
|
|
2660
|
-
lozengeOutline: "
|
|
2661
|
-
hamburger: "
|
|
2662
|
-
smiley: "
|
|
2663
|
-
mustache: "
|
|
2664
|
-
star: "
|
|
2665
|
-
play: "
|
|
2666
|
-
nodejs: "
|
|
2353
|
+
triangleUpOutline: "\u2206",
|
|
2354
|
+
triangleLeft: "\u25C4",
|
|
2355
|
+
triangleRight: "\u25BA",
|
|
2356
|
+
lozenge: "\u2666",
|
|
2357
|
+
lozengeOutline: "\u25CA",
|
|
2358
|
+
hamburger: "\u2261",
|
|
2359
|
+
smiley: "\u263A",
|
|
2360
|
+
mustache: "\u250C\u2500\u2510",
|
|
2361
|
+
star: "\u2736",
|
|
2362
|
+
play: "\u25BA",
|
|
2363
|
+
nodejs: "\u2666",
|
|
2667
2364
|
oneSeventh: "1/7",
|
|
2668
2365
|
oneNinth: "1/9",
|
|
2669
2366
|
oneTenth: "1/10"
|
|
@@ -2689,7 +2386,7 @@ var defaultTheme = {
|
|
|
2689
2386
|
},
|
|
2690
2387
|
spinner: {
|
|
2691
2388
|
interval: 80,
|
|
2692
|
-
frames: ["
|
|
2389
|
+
frames: ["\u280B", "\u2819", "\u2839", "\u2838", "\u283C", "\u2834", "\u2826", "\u2827", "\u2807", "\u280F"].map((frame) => styleText("yellow", frame))
|
|
2693
2390
|
},
|
|
2694
2391
|
style: {
|
|
2695
2392
|
answer: (text) => styleText("cyan", text),
|
|
@@ -2928,7 +2625,7 @@ var dist_default3 = fastStringWidth;
|
|
|
2928
2625
|
|
|
2929
2626
|
// node_modules/fast-wrap-ansi/lib/main.js
|
|
2930
2627
|
var ESC = "\x1B";
|
|
2931
|
-
var CSI = "
|
|
2628
|
+
var CSI = "\x9B";
|
|
2932
2629
|
var END_CODE = 39;
|
|
2933
2630
|
var ANSI_ESCAPE_BELL = "\x07";
|
|
2934
2631
|
var ANSI_CSI = "[";
|
|
@@ -3217,8 +2914,8 @@ function usePagination({ items, active, renderItem, pageSize, loop = true }) {
|
|
|
3217
2914
|
}
|
|
3218
2915
|
// node_modules/@inquirer/core/dist/lib/create-prompt.js
|
|
3219
2916
|
var import_mute_stream = __toESM(require_lib(), 1);
|
|
3220
|
-
import * as readline2 from "
|
|
3221
|
-
import { AsyncResource as AsyncResource3 } from "
|
|
2917
|
+
import * as readline2 from "readline";
|
|
2918
|
+
import { AsyncResource as AsyncResource3 } from "async_hooks";
|
|
3222
2919
|
|
|
3223
2920
|
// node_modules/signal-exit/dist/mjs/signals.js
|
|
3224
2921
|
var signals = [];
|
|
@@ -3429,7 +3126,7 @@ var {
|
|
|
3429
3126
|
} = signalExitWrap(processOk(process3) ? new SignalExit(process3) : new SignalExitFallback);
|
|
3430
3127
|
|
|
3431
3128
|
// node_modules/@inquirer/core/dist/lib/screen-manager.js
|
|
3432
|
-
import { stripVTControlCharacters } from "
|
|
3129
|
+
import { stripVTControlCharacters } from "util";
|
|
3433
3130
|
|
|
3434
3131
|
// node_modules/@inquirer/ansi/dist/index.js
|
|
3435
3132
|
var ESC2 = "\x1B[";
|
|
@@ -3526,7 +3223,7 @@ class PromisePolyfill extends Promise {
|
|
|
3526
3223
|
}
|
|
3527
3224
|
|
|
3528
3225
|
// node_modules/@inquirer/core/dist/lib/create-prompt.js
|
|
3529
|
-
import path from "
|
|
3226
|
+
import path from "path";
|
|
3530
3227
|
var nativeSetImmediate = globalThis.setImmediate;
|
|
3531
3228
|
function getCallSites() {
|
|
3532
3229
|
const _prepareStackTrace = Error.prepareStackTrace;
|
|
@@ -3637,7 +3334,7 @@ function createPrompt(view) {
|
|
|
3637
3334
|
return prompt;
|
|
3638
3335
|
}
|
|
3639
3336
|
// node_modules/@inquirer/core/dist/lib/Separator.js
|
|
3640
|
-
import { styleText as styleText2 } from "
|
|
3337
|
+
import { styleText as styleText2 } from "util";
|
|
3641
3338
|
class Separator {
|
|
3642
3339
|
separator = styleText2("dim", Array.from({ length: 15 }).join(dist_default.line));
|
|
3643
3340
|
type = "separator";
|
|
@@ -3651,7 +3348,7 @@ class Separator {
|
|
|
3651
3348
|
}
|
|
3652
3349
|
}
|
|
3653
3350
|
// node_modules/@inquirer/checkbox/dist/index.js
|
|
3654
|
-
import { styleText as styleText3 } from "
|
|
3351
|
+
import { styleText as styleText3 } from "util";
|
|
3655
3352
|
var checkboxTheme = {
|
|
3656
3353
|
icon: {
|
|
3657
3354
|
checked: styleText3("green", dist_default.circleFilled),
|
|
@@ -3664,7 +3361,7 @@ var checkboxTheme = {
|
|
|
3664
3361
|
disabled: (text) => styleText3("dim", text),
|
|
3665
3362
|
renderSelectedChoices: (selectedChoices) => selectedChoices.map((choice) => choice.short).join(", "),
|
|
3666
3363
|
description: (text) => styleText3("cyan", text),
|
|
3667
|
-
keysHelpTip: (keys) => keys.map(([key, action]) => `${styleText3("bold", key)} ${styleText3("dim", action)}`).join(styleText3("dim", "
|
|
3364
|
+
keysHelpTip: (keys) => keys.map(([key, action]) => `${styleText3("bold", key)} ${styleText3("dim", action)}`).join(styleText3("dim", " \u2022 "))
|
|
3668
3365
|
},
|
|
3669
3366
|
i18n: { disabledError: "This option is disabled and cannot be toggled." },
|
|
3670
3367
|
keybindings: []
|
|
@@ -3821,14 +3518,14 @@ var dist_default4 = createPrompt((config, done) => {
|
|
|
3821
3518
|
return [prefix, message, answer].filter(Boolean).join(" ");
|
|
3822
3519
|
}
|
|
3823
3520
|
const keys = [
|
|
3824
|
-
["
|
|
3521
|
+
["\u2191\u2193", "navigate"],
|
|
3825
3522
|
["space", "select"]
|
|
3826
3523
|
];
|
|
3827
3524
|
if (shortcuts.all)
|
|
3828
3525
|
keys.push([shortcuts.all, "all"]);
|
|
3829
3526
|
if (shortcuts.invert)
|
|
3830
3527
|
keys.push([shortcuts.invert, "invert"]);
|
|
3831
|
-
keys.push(["
|
|
3528
|
+
keys.push(["\u23CE", "submit"]);
|
|
3832
3529
|
const helpLine = theme.style.keysHelpTip(keys);
|
|
3833
3530
|
const lines = [
|
|
3834
3531
|
[prefix, message].filter(Boolean).join(" "),
|
|
@@ -3842,13 +3539,13 @@ var dist_default4 = createPrompt((config, done) => {
|
|
|
3842
3539
|
return `${lines}${cursorHide}`;
|
|
3843
3540
|
});
|
|
3844
3541
|
// node_modules/@inquirer/select/dist/index.js
|
|
3845
|
-
import { styleText as styleText4 } from "
|
|
3542
|
+
import { styleText as styleText4 } from "util";
|
|
3846
3543
|
var selectTheme = {
|
|
3847
3544
|
icon: { cursor: dist_default.pointer },
|
|
3848
3545
|
style: {
|
|
3849
3546
|
disabled: (text) => styleText4("dim", text),
|
|
3850
3547
|
description: (text) => styleText4("cyan", text),
|
|
3851
|
-
keysHelpTip: (keys) => keys.map(([key, action]) => `${styleText4("bold", key)} ${styleText4("dim", action)}`).join(styleText4("dim", "
|
|
3548
|
+
keysHelpTip: (keys) => keys.map(([key, action]) => `${styleText4("bold", key)} ${styleText4("dim", action)}`).join(styleText4("dim", " \u2022 "))
|
|
3852
3549
|
},
|
|
3853
3550
|
i18n: { disabledError: "This option is disabled and cannot be selected." },
|
|
3854
3551
|
indexMode: "hidden",
|
|
@@ -3974,8 +3671,8 @@ var dist_default5 = createPrompt((config, done) => {
|
|
|
3974
3671
|
}, []);
|
|
3975
3672
|
const message = theme.style.message(config.message, status);
|
|
3976
3673
|
const helpLine = theme.style.keysHelpTip([
|
|
3977
|
-
["
|
|
3978
|
-
["
|
|
3674
|
+
["\u2191\u2193", "navigate"],
|
|
3675
|
+
["\u23CE", "select"]
|
|
3979
3676
|
]);
|
|
3980
3677
|
let separatorCount = 0;
|
|
3981
3678
|
const page = usePagination({
|
|
@@ -4015,7 +3712,7 @@ var dist_default5 = createPrompt((config, done) => {
|
|
|
4015
3712
|
return `${lines}${cursorHide}`;
|
|
4016
3713
|
});
|
|
4017
3714
|
// src/cli/tui.ts
|
|
4018
|
-
import { emitKeypressEvents } from "
|
|
3715
|
+
import { emitKeypressEvents } from "readline";
|
|
4019
3716
|
var TYPE_TAGS = {
|
|
4020
3717
|
prompt: "[prompt]",
|
|
4021
3718
|
code: "[code] ",
|
|
@@ -4075,24 +3772,24 @@ async function pickTools(message, allowed) {
|
|
|
4075
3772
|
async function pickActivation(skillName, modes) {
|
|
4076
3773
|
const labels = {
|
|
4077
3774
|
session: `Per-session: invoke manually with /${skillName}`,
|
|
4078
|
-
global: "Global: auto-activate every session (adds
|
|
3775
|
+
global: "Global: auto-activate every session (adds session hooks)"
|
|
4079
3776
|
};
|
|
4080
3777
|
return withEscape(async (signal) => dist_default5({
|
|
4081
|
-
message: `How should ${skillName} activate
|
|
3778
|
+
message: `How should ${skillName} activate? (Esc to cancel)`,
|
|
4082
3779
|
choices: modes.map((m) => ({ name: labels[m], value: m }))
|
|
4083
3780
|
}, { signal }));
|
|
4084
3781
|
}
|
|
4085
3782
|
|
|
4086
3783
|
// src/cli/index.ts
|
|
4087
3784
|
import { mkdirSync as mkdirSync7 } from "fs";
|
|
4088
|
-
import { join as
|
|
3785
|
+
import { join as join13 } from "path";
|
|
4089
3786
|
import { homedir as homedir3 } from "os";
|
|
4090
3787
|
async function otherScopeSkillCount(currentDir) {
|
|
4091
3788
|
const home = homedir3();
|
|
4092
3789
|
const otherDir = currentDir === home ? process.cwd() : home;
|
|
4093
3790
|
if (otherDir === currentDir)
|
|
4094
3791
|
return { scope: "global", count: 0 };
|
|
4095
|
-
const lockfile = await
|
|
3792
|
+
const lockfile = await readLockfile(otherDir);
|
|
4096
3793
|
return {
|
|
4097
3794
|
scope: otherDir === home ? "global" : "local",
|
|
4098
3795
|
count: Object.keys(lockfile.skills).length
|
|
@@ -4146,7 +3843,7 @@ Usage:
|
|
|
4146
3843
|
agent-skills info <skill> Show skill details
|
|
4147
3844
|
|
|
4148
3845
|
Flags:
|
|
4149
|
-
--tool <tool> Install for a specific tool (${
|
|
3846
|
+
--tool <tool> Install for a specific tool (${TOOL_NAMES.join(", ")})
|
|
4150
3847
|
-g, --global Install to home directory (available in all projects)
|
|
4151
3848
|
--dry-run With bump --all: check without writing (exit 1 if unbumped)
|
|
4152
3849
|
--activation <mode> Set activation mode for skills that support it (session or global)
|
|
@@ -4173,13 +3870,13 @@ var TOOL_DIRS = {
|
|
|
4173
3870
|
};
|
|
4174
3871
|
async function resolveTargetTools(installDir, isGlobal, flags) {
|
|
4175
3872
|
if (flags.tool) {
|
|
4176
|
-
if (!
|
|
4177
|
-
console.error(`Error: unknown tool '${flags.tool}'. Must be one of: ${
|
|
3873
|
+
if (!TOOL_NAMES.includes(flags.tool)) {
|
|
3874
|
+
console.error(`Error: unknown tool '${flags.tool}'. Must be one of: ${TOOL_NAMES.join(", ")}`);
|
|
4178
3875
|
return null;
|
|
4179
3876
|
}
|
|
4180
3877
|
return [flags.tool];
|
|
4181
3878
|
}
|
|
4182
|
-
const detected = await detectTools(installDir);
|
|
3879
|
+
const detected = await detectTools(installDir, isGlobal);
|
|
4183
3880
|
if (detected.length > 0) {
|
|
4184
3881
|
console.log(`Detected tools: ${detected.join(", ")}`);
|
|
4185
3882
|
return detected;
|
|
@@ -4192,7 +3889,7 @@ async function resolveTargetTools(installDir, isGlobal, flags) {
|
|
|
4192
3889
|
for (const tool of picked) {
|
|
4193
3890
|
const dir = TOOL_DIRS[tool];
|
|
4194
3891
|
if (dir)
|
|
4195
|
-
mkdirSync7(
|
|
3892
|
+
mkdirSync7(join13(installDir, dir), { recursive: true });
|
|
4196
3893
|
}
|
|
4197
3894
|
return picked;
|
|
4198
3895
|
}
|
|
@@ -4210,7 +3907,9 @@ async function installOne(skillName, installDir, isGlobal, targetTools, flags) {
|
|
|
4210
3907
|
}
|
|
4211
3908
|
const manifest = manifestResult.manifest;
|
|
4212
3909
|
let activation;
|
|
4213
|
-
|
|
3910
|
+
const hookTools = ["claude", "codex", "antigravity"];
|
|
3911
|
+
const wiresHooks = targetTools.some((t) => hookTools.includes(t) && manifest.tools.includes(t));
|
|
3912
|
+
if (manifest.activation && wiresHooks) {
|
|
4214
3913
|
const validModes = manifest.activation.modes;
|
|
4215
3914
|
if (flags.activation) {
|
|
4216
3915
|
if (!validModes.includes(flags.activation)) {
|