@dansyuqri/spark-joy 0.2.0 → 0.2.1
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/dist/app/index.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>spark-joy review</title>
|
|
7
7
|
<link rel="icon" href="./favicon.svg" type="image/svg+xml" />
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-_XxERk0m.js"></script>
|
|
9
9
|
<link rel="stylesheet" crossorigin href="/assets/index-ChCdW9F8.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
package/dist/cli.js
CHANGED
|
@@ -1387,8 +1387,11 @@ Commands:
|
|
|
1387
1387
|
--apply Create the branches (never pushes)
|
|
1388
1388
|
--prefix <name> Branch prefix (default <branch>-split)
|
|
1389
1389
|
--force Move branches that already exist
|
|
1390
|
-
install-skill Install the Claude Code
|
|
1391
|
-
|
|
1390
|
+
install-skill Install the agent skill for Claude Code (~/.claude/skills) and for
|
|
1391
|
+
Codex, Gemini CLI, Cursor, OpenCode and others (~/.agents/skills)
|
|
1392
|
+
--agent <name> Only one: claude or agents
|
|
1393
|
+
--project Install into the repo (./.claude/skills, ./.agents/skills)
|
|
1394
|
+
--print Print the skill instead, e.g. to paste into AGENTS.md
|
|
1392
1395
|
|
|
1393
1396
|
Common options:
|
|
1394
1397
|
--run <name> Run to use (default: the current branch's run)
|
|
@@ -1413,6 +1416,8 @@ async function main(argv, cwd = process.cwd()) {
|
|
|
1413
1416
|
prefix: { type: "string" },
|
|
1414
1417
|
force: { type: "boolean" },
|
|
1415
1418
|
check: { type: "string" },
|
|
1419
|
+
agent: { type: "string" },
|
|
1420
|
+
print: { type: "boolean" },
|
|
1416
1421
|
"split-at": { type: "string" },
|
|
1417
1422
|
file: { type: "string" },
|
|
1418
1423
|
json: { type: "boolean" },
|
|
@@ -1550,10 +1555,23 @@ nothing created; add --apply to create the branches`);
|
|
|
1550
1555
|
return 0;
|
|
1551
1556
|
}
|
|
1552
1557
|
case "install-skill": {
|
|
1553
|
-
const
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1558
|
+
const skill = join4(PKG_ROOT, "plugin", "skills", "spark-joy", "SKILL.md");
|
|
1559
|
+
if (values.print) {
|
|
1560
|
+
process.stdout.write(await readFile4(skill, "utf8"));
|
|
1561
|
+
return 0;
|
|
1562
|
+
}
|
|
1563
|
+
const homes = { claude: ".claude", agents: ".agents" };
|
|
1564
|
+
const agents = values.agent ? [values.agent] : Object.keys(homes);
|
|
1565
|
+
const bad = agents.find((a) => !homes[a]);
|
|
1566
|
+
if (bad) throw new Error(`unknown agent ${bad}; use claude or agents`);
|
|
1567
|
+
const root = values.project ? await repoRoot(cwd) : homedir();
|
|
1568
|
+
for (const a of agents) {
|
|
1569
|
+
const dir = join4(root, homes[a], "skills", "spark-joy");
|
|
1570
|
+
await mkdir3(dir, { recursive: true });
|
|
1571
|
+
await copyFile(skill, join4(dir, "SKILL.md"));
|
|
1572
|
+
console.log(`installed skill to ${dir}`);
|
|
1573
|
+
}
|
|
1574
|
+
console.log('ask your agent to "review this PR in chunks" or "split my changes into PRs"');
|
|
1557
1575
|
return 0;
|
|
1558
1576
|
}
|
|
1559
1577
|
default:
|