@3lineas/grooveskills 1.0.3 → 1.1.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/dist/chunk-5Q6O3BRA.js +737 -0
- package/dist/chunk-5Q6O3BRA.js.map +1 -0
- package/dist/cli.js +4 -3
- package/dist/cli.js.map +1 -1
- package/dist/main.d.ts +1 -0
- package/dist/main.js +1 -1
- package/package.json +1 -1
- package/skills/groove-harness/SKILL.md +50 -0
- package/dist/chunk-6FZFZCBX.js +0 -473
- package/dist/chunk-6FZFZCBX.js.map +0 -1
package/dist/chunk-6FZFZCBX.js
DELETED
|
@@ -1,473 +0,0 @@
|
|
|
1
|
-
// src/domains/detector/detect-agents.ts
|
|
2
|
-
import { readdirSync } from "fs";
|
|
3
|
-
function detectAgents(targetPath) {
|
|
4
|
-
const detected = [];
|
|
5
|
-
try {
|
|
6
|
-
const entries = new Set(readdirSync(targetPath));
|
|
7
|
-
if (entries.has(".agents")) {
|
|
8
|
-
detected.push("antigravity");
|
|
9
|
-
}
|
|
10
|
-
if (entries.has(".claude")) {
|
|
11
|
-
detected.push("claude");
|
|
12
|
-
}
|
|
13
|
-
if (entries.has(".cursor")) {
|
|
14
|
-
detected.push("cursor");
|
|
15
|
-
}
|
|
16
|
-
if (entries.has(".gemini")) {
|
|
17
|
-
detected.push("gemini");
|
|
18
|
-
}
|
|
19
|
-
} catch {
|
|
20
|
-
}
|
|
21
|
-
return detected;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// src/domains/detector/detect-dependencies.ts
|
|
25
|
-
import { readFileSync, existsSync } from "fs";
|
|
26
|
-
import { join } from "path";
|
|
27
|
-
function detectDependencies(targetPath) {
|
|
28
|
-
const packageJsonPath = join(targetPath, "package.json");
|
|
29
|
-
if (!existsSync(packageJsonPath)) {
|
|
30
|
-
return { dependencies: [], exists: false };
|
|
31
|
-
}
|
|
32
|
-
try {
|
|
33
|
-
const raw = readFileSync(packageJsonPath, "utf-8");
|
|
34
|
-
const parsed = JSON.parse(raw);
|
|
35
|
-
const direct = Object.keys(parsed.dependencies ?? {});
|
|
36
|
-
const dev = Object.keys(parsed.devDependencies ?? {});
|
|
37
|
-
const all = Array.from(/* @__PURE__ */ new Set([...direct, ...dev]));
|
|
38
|
-
return { dependencies: all, exists: true };
|
|
39
|
-
} catch {
|
|
40
|
-
return { dependencies: [], exists: true };
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
// src/domains/registry/skill-catalog.ts
|
|
45
|
-
var SKILL_CATALOG = [
|
|
46
|
-
{
|
|
47
|
-
id: "best-practices",
|
|
48
|
-
name: "Universal Best Practices",
|
|
49
|
-
description: "Multi-language clean code standards, early returns, no barrel files, strict typing, <200 lines",
|
|
50
|
-
dependencies: [],
|
|
51
|
-
directoryName: "best-practices"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
id: "hono",
|
|
55
|
-
name: "Hono Architecture (Valibot)",
|
|
56
|
-
description: "Enterprise Hono API standard with Valibot validation, isolated Actions layer, and RPC bindings",
|
|
57
|
-
dependencies: ["hono", "@hono/valibot-validator", "@hono/standard-validator"],
|
|
58
|
-
directoryName: "hono"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
id: "react-core",
|
|
62
|
-
name: "React Core Fundamentals",
|
|
63
|
-
description: "Opinionated React fundamentals: function components, JSX, immutable state, core hooks, lists, and controlled inputs",
|
|
64
|
-
dependencies: ["react", "react-dom"],
|
|
65
|
-
directoryName: "react-core"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
id: "react-advanced",
|
|
69
|
-
name: "React 19 Advanced & Compiler Architecture",
|
|
70
|
-
description: "Modern React 19 platform features: React Compiler auto-memoization, concurrent rendering, use(), Actions, virtualization, and RSC boundaries",
|
|
71
|
-
dependencies: ["react", "react-dom"],
|
|
72
|
-
directoryName: "react-advanced"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
id: "react-create-page",
|
|
76
|
-
name: "React Page & View Architecture",
|
|
77
|
-
description: "Clean architecture for React pages: declarative page coordinators, domain hooks, isolated API actions, Valibot + Formisch forms, and atomic co-location",
|
|
78
|
-
dependencies: ["react", "react-dom"],
|
|
79
|
-
directoryName: "react-create-page"
|
|
80
|
-
}
|
|
81
|
-
];
|
|
82
|
-
|
|
83
|
-
// src/domains/detector/project-detector.ts
|
|
84
|
-
function detectProjectContext(targetPath) {
|
|
85
|
-
const detectedAgents = detectAgents(targetPath);
|
|
86
|
-
const { dependencies, exists } = detectDependencies(targetPath);
|
|
87
|
-
const suggestedSkillIds = ["best-practices"];
|
|
88
|
-
for (const skill of SKILL_CATALOG) {
|
|
89
|
-
if (skill.dependencies.length === 0) {
|
|
90
|
-
continue;
|
|
91
|
-
}
|
|
92
|
-
const hasMatch = skill.dependencies.some((dep) => dependencies.includes(dep));
|
|
93
|
-
if (hasMatch && !suggestedSkillIds.includes(skill.id)) {
|
|
94
|
-
suggestedSkillIds.push(skill.id);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
return {
|
|
98
|
-
targetPath,
|
|
99
|
-
detectedDependencies: dependencies,
|
|
100
|
-
suggestedSkillIds,
|
|
101
|
-
detectedAgents,
|
|
102
|
-
packageJsonExists: exists
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
// src/domains/ui/ui-orchestrator.ts
|
|
107
|
-
import * as p4 from "@clack/prompts";
|
|
108
|
-
import pc2 from "picocolors";
|
|
109
|
-
|
|
110
|
-
// src/domains/ui/banners.ts
|
|
111
|
-
import pc from "picocolors";
|
|
112
|
-
function renderBanner() {
|
|
113
|
-
const title = pc.bold(pc.white(" GROOVE SKILLS "));
|
|
114
|
-
const badge = pc.bgMagenta(pc.black(title));
|
|
115
|
-
const subtitle = pc.dim("Multi-Agent AI Skills & Architectural Standards");
|
|
116
|
-
return `${badge} ${subtitle}
|
|
117
|
-
`;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
// src/domains/ui/prompt-skills.ts
|
|
121
|
-
import * as p from "@clack/prompts";
|
|
122
|
-
async function promptSkills(suggestedSkillIds) {
|
|
123
|
-
const options = SKILL_CATALOG.map((skill) => {
|
|
124
|
-
const isSuggested = suggestedSkillIds.includes(skill.id);
|
|
125
|
-
return {
|
|
126
|
-
value: skill.id,
|
|
127
|
-
label: skill.name,
|
|
128
|
-
hint: isSuggested ? "Suggested based on your project stack" : skill.description
|
|
129
|
-
};
|
|
130
|
-
});
|
|
131
|
-
const selected = await p.multiselect({
|
|
132
|
-
message: "Which skills would you like to install in this project?",
|
|
133
|
-
options,
|
|
134
|
-
initialValues: suggestedSkillIds,
|
|
135
|
-
required: true
|
|
136
|
-
});
|
|
137
|
-
return selected;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
// src/domains/ui/prompt-agents.ts
|
|
141
|
-
import * as p2 from "@clack/prompts";
|
|
142
|
-
async function promptAgents(detectedAgents) {
|
|
143
|
-
const options = [
|
|
144
|
-
{ value: "antigravity", label: "Antigravity", hint: ".agents/skills (Google Agentic IDE)" },
|
|
145
|
-
{ value: "claude", label: "Claude Code", hint: ".claude/skills (Anthropic Claude Code)" },
|
|
146
|
-
{ value: "cursor", label: "Cursor", hint: ".cursor/rules/*.mdc (Cursor IDE Rules)" },
|
|
147
|
-
{ value: "gemini", label: "Gemini Code Assist", hint: ".gemini/skills (Google Gemini)" }
|
|
148
|
-
];
|
|
149
|
-
const initialValues = detectedAgents.length > 0 ? detectedAgents : ["antigravity"];
|
|
150
|
-
const selected = await p2.multiselect({
|
|
151
|
-
message: "Which AI agents should be configured?",
|
|
152
|
-
options,
|
|
153
|
-
initialValues,
|
|
154
|
-
required: true
|
|
155
|
-
});
|
|
156
|
-
return selected;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
// src/domains/ui/prompt-confirm-overwrite.ts
|
|
160
|
-
import * as p3 from "@clack/prompts";
|
|
161
|
-
async function promptConfirmOverwrite() {
|
|
162
|
-
return await p3.confirm({
|
|
163
|
-
message: "Some skills already exist in this project. Would you like to overwrite them with the latest version?",
|
|
164
|
-
initialValue: true
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
// src/domains/installer/verify-skill-exists.ts
|
|
169
|
-
import { lstatSync } from "fs";
|
|
170
|
-
import { join as join2 } from "path";
|
|
171
|
-
var AGENT_DESTINATION_MAP = {
|
|
172
|
-
antigravity: (dir) => join2(".agents", "skills", dir),
|
|
173
|
-
claude: (dir) => join2(".claude", "skills", dir),
|
|
174
|
-
cursor: (dir) => join2(".cursor", "rules", `${dir}.mdc`),
|
|
175
|
-
gemini: (dir) => join2(".gemini", "skills", dir)
|
|
176
|
-
};
|
|
177
|
-
function verifySkillExists(targetPath, skillDirectoryName, agents) {
|
|
178
|
-
for (const agent of agents) {
|
|
179
|
-
const relativePathResolver = AGENT_DESTINATION_MAP[agent];
|
|
180
|
-
const destination = join2(targetPath, relativePathResolver(skillDirectoryName));
|
|
181
|
-
try {
|
|
182
|
-
lstatSync(destination);
|
|
183
|
-
return true;
|
|
184
|
-
} catch {
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
return false;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
// src/domains/installer/install-orchestrator.ts
|
|
191
|
-
import { join as join10 } from "path";
|
|
192
|
-
|
|
193
|
-
// src/domains/adapters/antigravity.adapter.ts
|
|
194
|
-
import { mkdirSync, existsSync as existsSync2 } from "fs";
|
|
195
|
-
import { join as join4 } from "path";
|
|
196
|
-
|
|
197
|
-
// src/domains/global-store/global-paths.ts
|
|
198
|
-
import { homedir } from "os";
|
|
199
|
-
import { join as join3 } from "path";
|
|
200
|
-
function getGlobalStoreDir() {
|
|
201
|
-
return join3(homedir(), ".grooveskills");
|
|
202
|
-
}
|
|
203
|
-
function getGlobalSkillsDir() {
|
|
204
|
-
return join3(getGlobalStoreDir(), "skills");
|
|
205
|
-
}
|
|
206
|
-
function getGlobalCursorRulesDir() {
|
|
207
|
-
return join3(getGlobalStoreDir(), "cursor-rules");
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
// src/domains/adapters/link-helper.ts
|
|
211
|
-
import { lstatSync as lstatSync2, unlinkSync, rmSync, symlinkSync } from "fs";
|
|
212
|
-
function removeExistingLinkPath(path) {
|
|
213
|
-
try {
|
|
214
|
-
const lstat = lstatSync2(path);
|
|
215
|
-
if (lstat.isDirectory() && !lstat.isSymbolicLink()) {
|
|
216
|
-
rmSync(path, { recursive: true, force: true });
|
|
217
|
-
return;
|
|
218
|
-
}
|
|
219
|
-
unlinkSync(path);
|
|
220
|
-
} catch {
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
function createOrReplaceSymlink(target, linkPath, type) {
|
|
224
|
-
removeExistingLinkPath(linkPath);
|
|
225
|
-
symlinkSync(target, linkPath, type);
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
// src/domains/adapters/antigravity.adapter.ts
|
|
229
|
-
var AntigravityAdapter = class {
|
|
230
|
-
id = "antigravity";
|
|
231
|
-
name = "Antigravity";
|
|
232
|
-
targetRelativeDir = ".agents/skills";
|
|
233
|
-
async installSkill(targetPath, skill, _skillSourceDir) {
|
|
234
|
-
const parentDir = join4(targetPath, this.targetRelativeDir);
|
|
235
|
-
if (!existsSync2(parentDir)) {
|
|
236
|
-
mkdirSync(parentDir, { recursive: true });
|
|
237
|
-
}
|
|
238
|
-
const destination = join4(parentDir, skill.directoryName);
|
|
239
|
-
const globalSkillDir = join4(getGlobalSkillsDir(), skill.directoryName);
|
|
240
|
-
createOrReplaceSymlink(globalSkillDir, destination, "dir");
|
|
241
|
-
return [destination];
|
|
242
|
-
}
|
|
243
|
-
};
|
|
244
|
-
|
|
245
|
-
// src/domains/adapters/claude.adapter.ts
|
|
246
|
-
import { mkdirSync as mkdirSync2, existsSync as existsSync3 } from "fs";
|
|
247
|
-
import { join as join5 } from "path";
|
|
248
|
-
var ClaudeAdapter = class {
|
|
249
|
-
id = "claude";
|
|
250
|
-
name = "Claude Code";
|
|
251
|
-
targetRelativeDir = ".claude/skills";
|
|
252
|
-
async installSkill(targetPath, skill, _skillSourceDir) {
|
|
253
|
-
const parentDir = join5(targetPath, this.targetRelativeDir);
|
|
254
|
-
if (!existsSync3(parentDir)) {
|
|
255
|
-
mkdirSync2(parentDir, { recursive: true });
|
|
256
|
-
}
|
|
257
|
-
const destination = join5(parentDir, skill.directoryName);
|
|
258
|
-
const globalSkillDir = join5(getGlobalSkillsDir(), skill.directoryName);
|
|
259
|
-
createOrReplaceSymlink(globalSkillDir, destination, "dir");
|
|
260
|
-
return [destination];
|
|
261
|
-
}
|
|
262
|
-
};
|
|
263
|
-
|
|
264
|
-
// src/domains/adapters/cursor.adapter.ts
|
|
265
|
-
import { mkdirSync as mkdirSync3, existsSync as existsSync4 } from "fs";
|
|
266
|
-
import { join as join6 } from "path";
|
|
267
|
-
var CursorAdapter = class {
|
|
268
|
-
id = "cursor";
|
|
269
|
-
name = "Cursor";
|
|
270
|
-
targetRelativeDir = ".cursor/rules";
|
|
271
|
-
async installSkill(targetPath, skill, _skillSourceDir) {
|
|
272
|
-
const rulesDir = join6(targetPath, this.targetRelativeDir);
|
|
273
|
-
if (!existsSync4(rulesDir)) {
|
|
274
|
-
mkdirSync3(rulesDir, { recursive: true });
|
|
275
|
-
}
|
|
276
|
-
const filename = `${skill.id}.mdc`;
|
|
277
|
-
const destination = join6(rulesDir, filename);
|
|
278
|
-
const globalRuleFile = join6(getGlobalCursorRulesDir(), filename);
|
|
279
|
-
createOrReplaceSymlink(globalRuleFile, destination, "file");
|
|
280
|
-
return [destination];
|
|
281
|
-
}
|
|
282
|
-
};
|
|
283
|
-
|
|
284
|
-
// src/domains/adapters/gemini.adapter.ts
|
|
285
|
-
import { mkdirSync as mkdirSync4, existsSync as existsSync5 } from "fs";
|
|
286
|
-
import { join as join7 } from "path";
|
|
287
|
-
var GeminiAdapter = class {
|
|
288
|
-
id = "gemini";
|
|
289
|
-
name = "Gemini Code Assist";
|
|
290
|
-
targetRelativeDir = ".gemini/skills";
|
|
291
|
-
async installSkill(targetPath, skill, _skillSourceDir) {
|
|
292
|
-
const parentDir = join7(targetPath, this.targetRelativeDir);
|
|
293
|
-
if (!existsSync5(parentDir)) {
|
|
294
|
-
mkdirSync4(parentDir, { recursive: true });
|
|
295
|
-
}
|
|
296
|
-
const destination = join7(parentDir, skill.directoryName);
|
|
297
|
-
const globalSkillDir = join7(getGlobalSkillsDir(), skill.directoryName);
|
|
298
|
-
createOrReplaceSymlink(globalSkillDir, destination, "dir");
|
|
299
|
-
return [destination];
|
|
300
|
-
}
|
|
301
|
-
};
|
|
302
|
-
|
|
303
|
-
// src/domains/global-store/sync-global-store.ts
|
|
304
|
-
import { cpSync, mkdirSync as mkdirSync5, existsSync as existsSync7, writeFileSync, readFileSync as readFileSync2 } from "fs";
|
|
305
|
-
import { join as join9 } from "path";
|
|
306
|
-
|
|
307
|
-
// src/domains/installer/resolve-skills-source.ts
|
|
308
|
-
import { fileURLToPath } from "url";
|
|
309
|
-
import { dirname, resolve, join as join8 } from "path";
|
|
310
|
-
import { existsSync as existsSync6 } from "fs";
|
|
311
|
-
function resolveSkillsSourceRoot() {
|
|
312
|
-
const currentFilePath = fileURLToPath(import.meta.url);
|
|
313
|
-
const currentDir = dirname(currentFilePath);
|
|
314
|
-
const candidateFromDist = resolve(currentDir, "../skills");
|
|
315
|
-
if (existsSync6(candidateFromDist)) {
|
|
316
|
-
return candidateFromDist;
|
|
317
|
-
}
|
|
318
|
-
const candidateFromSrc = resolve(currentDir, "../../../skills");
|
|
319
|
-
if (existsSync6(candidateFromSrc)) {
|
|
320
|
-
return candidateFromSrc;
|
|
321
|
-
}
|
|
322
|
-
let searchDir = currentDir;
|
|
323
|
-
for (let i = 0; i < 5; i++) {
|
|
324
|
-
const candidate = join8(searchDir, "skills");
|
|
325
|
-
if (existsSync6(candidate)) {
|
|
326
|
-
return candidate;
|
|
327
|
-
}
|
|
328
|
-
const parent = dirname(searchDir);
|
|
329
|
-
if (parent === searchDir) {
|
|
330
|
-
break;
|
|
331
|
-
}
|
|
332
|
-
searchDir = parent;
|
|
333
|
-
}
|
|
334
|
-
throw new Error(
|
|
335
|
-
`GrooveSkills internal error: Unable to locate bundled skills directory from ${currentDir}`
|
|
336
|
-
);
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
// src/domains/global-store/sync-global-store.ts
|
|
340
|
-
function syncGlobalStore() {
|
|
341
|
-
const bundledSkillsDir = resolveSkillsSourceRoot();
|
|
342
|
-
const globalSkillsDir = getGlobalSkillsDir();
|
|
343
|
-
const globalCursorRulesDir = getGlobalCursorRulesDir();
|
|
344
|
-
if (!existsSync7(globalSkillsDir)) {
|
|
345
|
-
mkdirSync5(globalSkillsDir, { recursive: true });
|
|
346
|
-
}
|
|
347
|
-
if (!existsSync7(globalCursorRulesDir)) {
|
|
348
|
-
mkdirSync5(globalCursorRulesDir, { recursive: true });
|
|
349
|
-
}
|
|
350
|
-
cpSync(bundledSkillsDir, globalSkillsDir, { recursive: true });
|
|
351
|
-
for (const skill of SKILL_CATALOG) {
|
|
352
|
-
const skillMdPath = join9(globalSkillsDir, skill.directoryName, "SKILL.md");
|
|
353
|
-
if (!existsSync7(skillMdPath)) {
|
|
354
|
-
continue;
|
|
355
|
-
}
|
|
356
|
-
const content = readFileSync2(skillMdPath, "utf-8");
|
|
357
|
-
const mdcHeader = `---
|
|
358
|
-
description: ${skill.description}
|
|
359
|
-
globs: ["**/*"]
|
|
360
|
-
alwaysApply: false
|
|
361
|
-
---
|
|
362
|
-
|
|
363
|
-
`;
|
|
364
|
-
const cleanedBody = content.replace(/^---[\s\S]*?---\s*/, "");
|
|
365
|
-
const targetMdc = join9(globalCursorRulesDir, `${skill.id}.mdc`);
|
|
366
|
-
writeFileSync(targetMdc, `${mdcHeader}${cleanedBody}`, "utf-8");
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
// src/domains/installer/install-orchestrator.ts
|
|
371
|
-
var ADAPTER_REGISTRY = {
|
|
372
|
-
antigravity: new AntigravityAdapter(),
|
|
373
|
-
claude: new ClaudeAdapter(),
|
|
374
|
-
cursor: new CursorAdapter(),
|
|
375
|
-
gemini: new GeminiAdapter()
|
|
376
|
-
};
|
|
377
|
-
async function installSkills(options) {
|
|
378
|
-
syncGlobalStore();
|
|
379
|
-
const globalSkillsDir = getGlobalSkillsDir();
|
|
380
|
-
const createdFiles = [];
|
|
381
|
-
for (const skillId of options.selectedSkillIds) {
|
|
382
|
-
const skill = SKILL_CATALOG.find((item) => item.id === skillId);
|
|
383
|
-
if (!skill) {
|
|
384
|
-
continue;
|
|
385
|
-
}
|
|
386
|
-
const skillSourceDir = join10(globalSkillsDir, skill.directoryName);
|
|
387
|
-
for (const agentId of options.selectedAgents) {
|
|
388
|
-
const adapter = ADAPTER_REGISTRY[agentId];
|
|
389
|
-
if (!adapter) {
|
|
390
|
-
continue;
|
|
391
|
-
}
|
|
392
|
-
const files = await adapter.installSkill(options.targetPath, skill, skillSourceDir);
|
|
393
|
-
createdFiles.push(...files);
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
return {
|
|
397
|
-
installedSkills: options.selectedSkillIds,
|
|
398
|
-
configuredAgents: options.selectedAgents,
|
|
399
|
-
createdFiles
|
|
400
|
-
};
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
// src/domains/ui/ui-orchestrator.ts
|
|
404
|
-
async function runInteractiveUi(context) {
|
|
405
|
-
console.log(renderBanner());
|
|
406
|
-
p4.intro(pc2.magenta("Welcome to GrooveSkills! Let's tailor your AI agents with clean architectural standards."));
|
|
407
|
-
if (context.detectedDependencies.length > 0) {
|
|
408
|
-
p4.note(
|
|
409
|
-
`Detected dependencies: ${context.detectedDependencies.map((d) => pc2.bold(d)).join(", ")}
|
|
410
|
-
Active AI folders: ${context.detectedAgents.map((a) => pc2.green(a)).join(", ") || "None (will be created)"}`,
|
|
411
|
-
"Project Environment"
|
|
412
|
-
);
|
|
413
|
-
}
|
|
414
|
-
const selectedSkills = await promptSkills(context.suggestedSkillIds);
|
|
415
|
-
if (p4.isCancel(selectedSkills)) {
|
|
416
|
-
p4.cancel("Installation cancelled. Have a wonderful day!");
|
|
417
|
-
process.exit(0);
|
|
418
|
-
}
|
|
419
|
-
const selectedAgents = await promptAgents(context.detectedAgents);
|
|
420
|
-
if (p4.isCancel(selectedAgents)) {
|
|
421
|
-
p4.cancel("Installation cancelled. Have a wonderful day!");
|
|
422
|
-
process.exit(0);
|
|
423
|
-
}
|
|
424
|
-
let forceOverwrite = true;
|
|
425
|
-
const anyExists = selectedSkills.some((skillId) => {
|
|
426
|
-
const meta = SKILL_CATALOG.find((s2) => s2.id === skillId);
|
|
427
|
-
return meta ? verifySkillExists(context.targetPath, meta.directoryName, selectedAgents) : false;
|
|
428
|
-
});
|
|
429
|
-
if (anyExists) {
|
|
430
|
-
const confirm2 = await promptConfirmOverwrite();
|
|
431
|
-
if (p4.isCancel(confirm2) || !confirm2) {
|
|
432
|
-
p4.cancel("Installation stopped to protect existing skills.");
|
|
433
|
-
process.exit(0);
|
|
434
|
-
}
|
|
435
|
-
forceOverwrite = Boolean(confirm2);
|
|
436
|
-
}
|
|
437
|
-
const s = p4.spinner();
|
|
438
|
-
s.start("Installing and adapting skills across your configured AI agents...");
|
|
439
|
-
const result = await installSkills({
|
|
440
|
-
targetPath: context.targetPath,
|
|
441
|
-
selectedSkillIds: selectedSkills,
|
|
442
|
-
selectedAgents,
|
|
443
|
-
forceOverwrite
|
|
444
|
-
});
|
|
445
|
-
s.stop(pc2.green("All skills have been successfully installed and configured!"));
|
|
446
|
-
p4.note(
|
|
447
|
-
`Configured skills: ${result.installedSkills.map((s2) => pc2.bold(s2)).join(", ")}
|
|
448
|
-
Target agents: ${result.configuredAgents.map((a) => pc2.cyan(a)).join(", ")}`,
|
|
449
|
-
"Installation Summary"
|
|
450
|
-
);
|
|
451
|
-
p4.outro(pc2.green("Your AI programming pair is now empowered with your team's architectural habits! \u{1F680}"));
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
// src/main.ts
|
|
455
|
-
async function runGrooveSkills(options = {}) {
|
|
456
|
-
const targetPath = process.cwd();
|
|
457
|
-
const context = detectProjectContext(targetPath);
|
|
458
|
-
if (options.skills && options.skills.length > 0 && options.agents && options.agents.length > 0) {
|
|
459
|
-
await installSkills({
|
|
460
|
-
targetPath,
|
|
461
|
-
selectedSkillIds: options.skills,
|
|
462
|
-
selectedAgents: options.agents,
|
|
463
|
-
forceOverwrite: Boolean(options.yes)
|
|
464
|
-
});
|
|
465
|
-
return;
|
|
466
|
-
}
|
|
467
|
-
await runInteractiveUi(context);
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
export {
|
|
471
|
-
runGrooveSkills
|
|
472
|
-
};
|
|
473
|
-
//# sourceMappingURL=chunk-6FZFZCBX.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/domains/detector/detect-agents.ts","../src/domains/detector/detect-dependencies.ts","../src/domains/registry/skill-catalog.ts","../src/domains/detector/project-detector.ts","../src/domains/ui/ui-orchestrator.ts","../src/domains/ui/banners.ts","../src/domains/ui/prompt-skills.ts","../src/domains/ui/prompt-agents.ts","../src/domains/ui/prompt-confirm-overwrite.ts","../src/domains/installer/verify-skill-exists.ts","../src/domains/installer/install-orchestrator.ts","../src/domains/adapters/antigravity.adapter.ts","../src/domains/global-store/global-paths.ts","../src/domains/adapters/link-helper.ts","../src/domains/adapters/claude.adapter.ts","../src/domains/adapters/cursor.adapter.ts","../src/domains/adapters/gemini.adapter.ts","../src/domains/global-store/sync-global-store.ts","../src/domains/installer/resolve-skills-source.ts","../src/main.ts"],"sourcesContent":["import { readdirSync } from \"node:fs\";\nimport type { AgentId } from \"@/types/agent.types\";\n\nexport function detectAgents(targetPath: string): AgentId[] {\n const detected: AgentId[] = [];\n\n try {\n const entries = new Set(readdirSync(targetPath));\n\n if (entries.has(\".agents\")) {\n detected.push(\"antigravity\");\n }\n if (entries.has(\".claude\")) {\n detected.push(\"claude\");\n }\n if (entries.has(\".cursor\")) {\n detected.push(\"cursor\");\n }\n if (entries.has(\".gemini\")) {\n detected.push(\"gemini\");\n }\n } catch {\n // If directory cannot be read, return empty list gracefully\n }\n\n return detected;\n}\n","import { readFileSync, existsSync } from \"node:fs\";\nimport { join } from \"node:path\";\n\nexport interface PackageJsonDetection {\n dependencies: string[];\n exists: boolean;\n}\n\nexport function detectDependencies(targetPath: string): PackageJsonDetection {\n const packageJsonPath = join(targetPath, \"package.json\");\n\n if (!existsSync(packageJsonPath)) {\n return { dependencies: [], exists: false };\n }\n\n try {\n const raw = readFileSync(packageJsonPath, \"utf-8\");\n const parsed = JSON.parse(raw) as {\n dependencies?: Record<string, string>;\n devDependencies?: Record<string, string>;\n };\n\n const direct = Object.keys(parsed.dependencies ?? {});\n const dev = Object.keys(parsed.devDependencies ?? {});\n const all = Array.from(new Set([...direct, ...dev]));\n\n return { dependencies: all, exists: true };\n } catch {\n return { dependencies: [], exists: true };\n }\n}\n","import type { SkillMetadata } from \"@/types/skill.types\";\n\nexport const SKILL_CATALOG: SkillMetadata[] = [\n {\n id: \"best-practices\",\n name: \"Universal Best Practices\",\n description: \"Multi-language clean code standards, early returns, no barrel files, strict typing, <200 lines\",\n dependencies: [],\n directoryName: \"best-practices\",\n },\n {\n id: \"hono\",\n name: \"Hono Architecture (Valibot)\",\n description: \"Enterprise Hono API standard with Valibot validation, isolated Actions layer, and RPC bindings\",\n dependencies: [\"hono\", \"@hono/valibot-validator\", \"@hono/standard-validator\"],\n directoryName: \"hono\",\n },\n {\n id: \"react-core\",\n name: \"React Core Fundamentals\",\n description: \"Opinionated React fundamentals: function components, JSX, immutable state, core hooks, lists, and controlled inputs\",\n dependencies: [\"react\", \"react-dom\"],\n directoryName: \"react-core\",\n },\n {\n id: \"react-advanced\",\n name: \"React 19 Advanced & Compiler Architecture\",\n description: \"Modern React 19 platform features: React Compiler auto-memoization, concurrent rendering, use(), Actions, virtualization, and RSC boundaries\",\n dependencies: [\"react\", \"react-dom\"],\n directoryName: \"react-advanced\",\n },\n {\n id: \"react-create-page\",\n name: \"React Page & View Architecture\",\n description: \"Clean architecture for React pages: declarative page coordinators, domain hooks, isolated API actions, Valibot + Formisch forms, and atomic co-location\",\n dependencies: [\"react\", \"react-dom\"],\n directoryName: \"react-create-page\",\n },\n];\n","import { detectAgents } from \"@/domains/detector/detect-agents\";\nimport { detectDependencies } from \"@/domains/detector/detect-dependencies\";\nimport { SKILL_CATALOG } from \"@/domains/registry/skill-catalog\";\nimport type { ProjectContext } from \"@/types/context.types\";\n\nexport function detectProjectContext(targetPath: string): ProjectContext {\n const detectedAgents = detectAgents(targetPath);\n const { dependencies, exists } = detectDependencies(targetPath);\n\n const suggestedSkillIds: string[] = [\"best-practices\"];\n\n for (const skill of SKILL_CATALOG) {\n if (skill.dependencies.length === 0) {\n continue;\n }\n const hasMatch = skill.dependencies.some((dep) => dependencies.includes(dep));\n if (hasMatch && !suggestedSkillIds.includes(skill.id)) {\n suggestedSkillIds.push(skill.id);\n }\n }\n\n return {\n targetPath,\n detectedDependencies: dependencies,\n suggestedSkillIds,\n detectedAgents,\n packageJsonExists: exists,\n };\n}\n","import * as p from \"@clack/prompts\";\nimport pc from \"picocolors\";\nimport { renderBanner } from \"@/domains/ui/banners\";\nimport { promptSkills } from \"@/domains/ui/prompt-skills\";\nimport { promptAgents } from \"@/domains/ui/prompt-agents\";\nimport { promptConfirmOverwrite } from \"@/domains/ui/prompt-confirm-overwrite\";\nimport { verifySkillExists } from \"@/domains/installer/verify-skill-exists\";\nimport { installSkills } from \"@/domains/installer/install-orchestrator\";\nimport { SKILL_CATALOG } from \"@/domains/registry/skill-catalog\";\nimport type { ProjectContext } from \"@/types/context.types\";\nimport type { AgentId } from \"@/types/agent.types\";\n\nexport async function runInteractiveUi(context: ProjectContext): Promise<void> {\n console.log(renderBanner());\n p.intro(pc.magenta(\"Welcome to GrooveSkills! Let's tailor your AI agents with clean architectural standards.\"));\n\n if (context.detectedDependencies.length > 0) {\n p.note(\n `Detected dependencies: ${context.detectedDependencies.map((d) => pc.bold(d)).join(\", \")}\\n` +\n `Active AI folders: ${context.detectedAgents.map((a) => pc.green(a)).join(\", \") || \"None (will be created)\"}`,\n \"Project Environment\"\n );\n }\n\n const selectedSkills = await promptSkills(context.suggestedSkillIds);\n if (p.isCancel(selectedSkills)) {\n p.cancel(\"Installation cancelled. Have a wonderful day!\");\n process.exit(0);\n }\n\n const selectedAgents = await promptAgents(context.detectedAgents);\n if (p.isCancel(selectedAgents)) {\n p.cancel(\"Installation cancelled. Have a wonderful day!\");\n process.exit(0);\n }\n\n let forceOverwrite = true;\n const anyExists = (selectedSkills as string[]).some((skillId) => {\n const meta = SKILL_CATALOG.find((s) => s.id === skillId);\n return meta ? verifySkillExists(context.targetPath, meta.directoryName, selectedAgents as AgentId[]) : false;\n });\n\n if (anyExists) {\n const confirm = await promptConfirmOverwrite();\n if (p.isCancel(confirm) || !confirm) {\n p.cancel(\"Installation stopped to protect existing skills.\");\n process.exit(0);\n }\n forceOverwrite = Boolean(confirm);\n }\n\n const s = p.spinner();\n s.start(\"Installing and adapting skills across your configured AI agents...\");\n\n const result = await installSkills({\n targetPath: context.targetPath,\n selectedSkillIds: selectedSkills as string[],\n selectedAgents: selectedAgents as AgentId[],\n forceOverwrite,\n });\n\n s.stop(pc.green(\"All skills have been successfully installed and configured!\"));\n\n p.note(\n `Configured skills: ${result.installedSkills.map((s) => pc.bold(s)).join(\", \")}\\n` +\n `Target agents: ${result.configuredAgents.map((a) => pc.cyan(a)).join(\", \")}`,\n \"Installation Summary\"\n );\n\n p.outro(pc.green(\"Your AI programming pair is now empowered with your team's architectural habits! 🚀\"));\n}\n","import pc from \"picocolors\";\n\nexport function renderBanner(): string {\n const title = pc.bold(pc.white(\" GROOVE SKILLS \"));\n const badge = pc.bgMagenta(pc.black(title));\n const subtitle = pc.dim(\"Multi-Agent AI Skills & Architectural Standards\");\n\n return `${badge} ${subtitle}\\n`;\n}\n","import * as p from \"@clack/prompts\";\nimport { SKILL_CATALOG } from \"@/domains/registry/skill-catalog\";\n\nexport async function promptSkills(suggestedSkillIds: string[]): Promise<string[] | symbol> {\n const options = SKILL_CATALOG.map((skill) => {\n const isSuggested = suggestedSkillIds.includes(skill.id);\n return {\n value: skill.id,\n label: skill.name,\n hint: isSuggested ? \"Suggested based on your project stack\" : skill.description,\n };\n });\n\n const selected = await p.multiselect({\n message: \"Which skills would you like to install in this project?\",\n options,\n initialValues: suggestedSkillIds,\n required: true,\n });\n\n return selected;\n}\n","import * as p from \"@clack/prompts\";\nimport type { AgentId } from \"@/types/agent.types\";\n\nexport async function promptAgents(detectedAgents: AgentId[]): Promise<AgentId[] | symbol> {\n const options: Array<{ value: AgentId; label: string; hint: string }> = [\n { value: \"antigravity\", label: \"Antigravity\", hint: \".agents/skills (Google Agentic IDE)\" },\n { value: \"claude\", label: \"Claude Code\", hint: \".claude/skills (Anthropic Claude Code)\" },\n { value: \"cursor\", label: \"Cursor\", hint: \".cursor/rules/*.mdc (Cursor IDE Rules)\" },\n { value: \"gemini\", label: \"Gemini Code Assist\", hint: \".gemini/skills (Google Gemini)\" },\n ];\n\n const initialValues: AgentId[] = detectedAgents.length > 0 ? detectedAgents : [\"antigravity\"];\n\n const selected = await p.multiselect({\n message: \"Which AI agents should be configured?\",\n options,\n initialValues,\n required: true,\n });\n\n return selected as AgentId[] | symbol;\n}\n","import * as p from \"@clack/prompts\";\n\nexport async function promptConfirmOverwrite(): Promise<boolean | symbol> {\n return await p.confirm({\n message: \"Some skills already exist in this project. Would you like to overwrite them with the latest version?\",\n initialValue: true,\n });\n}\n","import { lstatSync } from \"node:fs\";\nimport { join } from \"node:path\";\nimport type { AgentId } from \"@/types/agent.types\";\n\nconst AGENT_DESTINATION_MAP: Record<AgentId, (dir: string) => string> = {\n antigravity: (dir) => join(\".agents\", \"skills\", dir),\n claude: (dir) => join(\".claude\", \"skills\", dir),\n cursor: (dir) => join(\".cursor\", \"rules\", `${dir}.mdc`),\n gemini: (dir) => join(\".gemini\", \"skills\", dir),\n};\n\nexport function verifySkillExists(\n targetPath: string,\n skillDirectoryName: string,\n agents: AgentId[]\n): boolean {\n for (const agent of agents) {\n const relativePathResolver = AGENT_DESTINATION_MAP[agent];\n const destination = join(targetPath, relativePathResolver(skillDirectoryName));\n\n try {\n lstatSync(destination);\n return true;\n } catch {\n // Path does not exist\n }\n }\n\n return false;\n}\n","import { join } from \"node:path\";\nimport { AntigravityAdapter } from \"@/domains/adapters/antigravity.adapter\";\nimport { ClaudeAdapter } from \"@/domains/adapters/claude.adapter\";\nimport { CursorAdapter } from \"@/domains/adapters/cursor.adapter\";\nimport { GeminiAdapter } from \"@/domains/adapters/gemini.adapter\";\nimport { syncGlobalStore } from \"@/domains/global-store/sync-global-store\";\nimport { getGlobalSkillsDir } from \"@/domains/global-store/global-paths\";\nimport { SKILL_CATALOG } from \"@/domains/registry/skill-catalog\";\nimport type { AgentAdapter } from \"@/domains/adapters/adapter.interface\";\nimport type { InstallOptions, InstallResult } from \"@/types/installer.types\";\nimport type { AgentId } from \"@/types/agent.types\";\n\nconst ADAPTER_REGISTRY: Record<AgentId, AgentAdapter> = {\n antigravity: new AntigravityAdapter(),\n claude: new ClaudeAdapter(),\n cursor: new CursorAdapter(),\n gemini: new GeminiAdapter(),\n};\n\nexport async function installSkills(options: InstallOptions): Promise<InstallResult> {\n syncGlobalStore();\n\n const globalSkillsDir = getGlobalSkillsDir();\n const createdFiles: string[] = [];\n\n for (const skillId of options.selectedSkillIds) {\n const skill = SKILL_CATALOG.find((item) => item.id === skillId);\n if (!skill) {\n continue;\n }\n\n const skillSourceDir = join(globalSkillsDir, skill.directoryName);\n\n for (const agentId of options.selectedAgents) {\n const adapter = ADAPTER_REGISTRY[agentId];\n if (!adapter) {\n continue;\n }\n\n const files = await adapter.installSkill(options.targetPath, skill, skillSourceDir);\n createdFiles.push(...files);\n }\n }\n\n return {\n installedSkills: options.selectedSkillIds,\n configuredAgents: options.selectedAgents,\n createdFiles,\n };\n}\n","import { mkdirSync, existsSync } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { getGlobalSkillsDir } from \"@/domains/global-store/global-paths\";\nimport { createOrReplaceSymlink } from \"@/domains/adapters/link-helper\";\nimport type { AgentAdapter } from \"@/domains/adapters/adapter.interface\";\nimport type { SkillMetadata } from \"@/types/skill.types\";\n\nexport class AntigravityAdapter implements AgentAdapter {\n readonly id = \"antigravity\" as const;\n readonly name = \"Antigravity\";\n readonly targetRelativeDir = \".agents/skills\";\n\n async installSkill(\n targetPath: string,\n skill: SkillMetadata,\n _skillSourceDir: string\n ): Promise<string[]> {\n const parentDir = join(targetPath, this.targetRelativeDir);\n if (!existsSync(parentDir)) {\n mkdirSync(parentDir, { recursive: true });\n }\n\n const destination = join(parentDir, skill.directoryName);\n const globalSkillDir = join(getGlobalSkillsDir(), skill.directoryName);\n\n createOrReplaceSymlink(globalSkillDir, destination, \"dir\");\n\n return [destination];\n }\n}\n","import { homedir } from \"node:os\";\nimport { join } from \"node:path\";\n\nexport function getGlobalStoreDir(): string {\n return join(homedir(), \".grooveskills\");\n}\n\nexport function getGlobalSkillsDir(): string {\n return join(getGlobalStoreDir(), \"skills\");\n}\n\nexport function getGlobalCursorRulesDir(): string {\n return join(getGlobalStoreDir(), \"cursor-rules\");\n}\n","import { lstatSync, unlinkSync, rmSync, symlinkSync } from \"node:fs\";\n\nfunction removeExistingLinkPath(path: string): void {\n try {\n const lstat = lstatSync(path);\n\n if (lstat.isDirectory() && !lstat.isSymbolicLink()) {\n rmSync(path, { recursive: true, force: true });\n return;\n }\n\n unlinkSync(path);\n } catch {\n // If path does not exist, exit early\n }\n}\n\nexport function createOrReplaceSymlink(\n target: string,\n linkPath: string,\n type: \"dir\" | \"file\"\n): void {\n removeExistingLinkPath(linkPath);\n symlinkSync(target, linkPath, type);\n}\n\n","import { mkdirSync, existsSync } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { getGlobalSkillsDir } from \"@/domains/global-store/global-paths\";\nimport { createOrReplaceSymlink } from \"@/domains/adapters/link-helper\";\nimport type { AgentAdapter } from \"@/domains/adapters/adapter.interface\";\nimport type { SkillMetadata } from \"@/types/skill.types\";\n\nexport class ClaudeAdapter implements AgentAdapter {\n readonly id = \"claude\" as const;\n readonly name = \"Claude Code\";\n readonly targetRelativeDir = \".claude/skills\";\n\n async installSkill(\n targetPath: string,\n skill: SkillMetadata,\n _skillSourceDir: string\n ): Promise<string[]> {\n const parentDir = join(targetPath, this.targetRelativeDir);\n if (!existsSync(parentDir)) {\n mkdirSync(parentDir, { recursive: true });\n }\n\n const destination = join(parentDir, skill.directoryName);\n const globalSkillDir = join(getGlobalSkillsDir(), skill.directoryName);\n\n createOrReplaceSymlink(globalSkillDir, destination, \"dir\");\n\n return [destination];\n }\n}\n","import { mkdirSync, existsSync } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { getGlobalCursorRulesDir } from \"@/domains/global-store/global-paths\";\nimport { createOrReplaceSymlink } from \"@/domains/adapters/link-helper\";\nimport type { AgentAdapter } from \"@/domains/adapters/adapter.interface\";\nimport type { SkillMetadata } from \"@/types/skill.types\";\n\nexport class CursorAdapter implements AgentAdapter {\n readonly id = \"cursor\" as const;\n readonly name = \"Cursor\";\n readonly targetRelativeDir = \".cursor/rules\";\n\n async installSkill(\n targetPath: string,\n skill: SkillMetadata,\n _skillSourceDir: string\n ): Promise<string[]> {\n const rulesDir = join(targetPath, this.targetRelativeDir);\n if (!existsSync(rulesDir)) {\n mkdirSync(rulesDir, { recursive: true });\n }\n\n const filename = `${skill.id}.mdc`;\n const destination = join(rulesDir, filename);\n const globalRuleFile = join(getGlobalCursorRulesDir(), filename);\n\n createOrReplaceSymlink(globalRuleFile, destination, \"file\");\n\n return [destination];\n }\n}\n","import { mkdirSync, existsSync } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { getGlobalSkillsDir } from \"@/domains/global-store/global-paths\";\nimport { createOrReplaceSymlink } from \"@/domains/adapters/link-helper\";\nimport type { AgentAdapter } from \"@/domains/adapters/adapter.interface\";\nimport type { SkillMetadata } from \"@/types/skill.types\";\n\nexport class GeminiAdapter implements AgentAdapter {\n readonly id = \"gemini\" as const;\n readonly name = \"Gemini Code Assist\";\n readonly targetRelativeDir = \".gemini/skills\";\n\n async installSkill(\n targetPath: string,\n skill: SkillMetadata,\n _skillSourceDir: string\n ): Promise<string[]> {\n const parentDir = join(targetPath, this.targetRelativeDir);\n if (!existsSync(parentDir)) {\n mkdirSync(parentDir, { recursive: true });\n }\n\n const destination = join(parentDir, skill.directoryName);\n const globalSkillDir = join(getGlobalSkillsDir(), skill.directoryName);\n\n createOrReplaceSymlink(globalSkillDir, destination, \"dir\");\n\n return [destination];\n }\n}\n","import { cpSync, mkdirSync, existsSync, writeFileSync, readFileSync } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { getGlobalSkillsDir, getGlobalCursorRulesDir } from \"@/domains/global-store/global-paths\";\nimport { resolveSkillsSourceRoot } from \"@/domains/installer/resolve-skills-source\";\nimport { SKILL_CATALOG } from \"@/domains/registry/skill-catalog\";\n\nexport function syncGlobalStore(): void {\n const bundledSkillsDir = resolveSkillsSourceRoot();\n const globalSkillsDir = getGlobalSkillsDir();\n const globalCursorRulesDir = getGlobalCursorRulesDir();\n\n if (!existsSync(globalSkillsDir)) {\n mkdirSync(globalSkillsDir, { recursive: true });\n }\n if (!existsSync(globalCursorRulesDir)) {\n mkdirSync(globalCursorRulesDir, { recursive: true });\n }\n\n cpSync(bundledSkillsDir, globalSkillsDir, { recursive: true });\n\n for (const skill of SKILL_CATALOG) {\n const skillMdPath = join(globalSkillsDir, skill.directoryName, \"SKILL.md\");\n if (!existsSync(skillMdPath)) {\n continue;\n }\n\n const content = readFileSync(skillMdPath, \"utf-8\");\n const mdcHeader = `---\ndescription: ${skill.description}\nglobs: [\"**/*\"]\nalwaysApply: false\n---\n\n`;\n const cleanedBody = content.replace(/^---[\\s\\S]*?---\\s*/, \"\");\n const targetMdc = join(globalCursorRulesDir, `${skill.id}.mdc`);\n writeFileSync(targetMdc, `${mdcHeader}${cleanedBody}`, \"utf-8\");\n }\n}\n","import { fileURLToPath } from \"node:url\";\nimport { dirname, resolve, join } from \"node:path\";\nimport { existsSync } from \"node:fs\";\n\nexport function resolveSkillsSourceRoot(): string {\n const currentFilePath = fileURLToPath(import.meta.url);\n const currentDir = dirname(currentFilePath);\n\n // 1. From dist/ in published npm package or local build: dist/../skills\n const candidateFromDist = resolve(currentDir, \"../skills\");\n if (existsSync(candidateFromDist)) {\n return candidateFromDist;\n }\n\n // 2. From src/domains/installer/ during development: ../../../skills\n const candidateFromSrc = resolve(currentDir, \"../../../skills\");\n if (existsSync(candidateFromSrc)) {\n return candidateFromSrc;\n }\n\n // 3. Search upward for the package root containing a skills directory\n let searchDir = currentDir;\n for (let i = 0; i < 5; i++) {\n const candidate = join(searchDir, \"skills\");\n if (existsSync(candidate)) {\n return candidate;\n }\n const parent = dirname(searchDir);\n if (parent === searchDir) {\n break;\n }\n searchDir = parent;\n }\n\n throw new Error(\n `GrooveSkills internal error: Unable to locate bundled skills directory from ${currentDir}`\n );\n}\n","import { detectProjectContext } from \"@/domains/detector/project-detector\";\nimport { runInteractiveUi } from \"@/domains/ui/ui-orchestrator\";\nimport { installSkills } from \"@/domains/installer/install-orchestrator\";\nimport type { AgentId } from \"@/types/agent.types\";\n\nexport interface CliOptions {\n skills?: string[];\n agents?: AgentId[];\n yes?: boolean;\n}\n\nexport async function runGrooveSkills(options: CliOptions = {}): Promise<void> {\n const targetPath = process.cwd();\n const context = detectProjectContext(targetPath);\n\n if (options.skills && options.skills.length > 0 && options.agents && options.agents.length > 0) {\n await installSkills({\n targetPath,\n selectedSkillIds: options.skills,\n selectedAgents: options.agents,\n forceOverwrite: Boolean(options.yes),\n });\n return;\n }\n\n await runInteractiveUi(context);\n}\n"],"mappings":";AAAA,SAAS,mBAAmB;AAGrB,SAAS,aAAa,YAA+B;AAC1D,QAAM,WAAsB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,QAAQ,GAAG;AAAA,IACrC,CAAC;AACD;AAAA,EACF;AAEA,QAAM,iBAAiB,OAAO;AAChC;","names":["p","pc","p","p","join","join","existsSync","join","join","lstatSync","join","existsSync","mkdirSync","existsSync","join","join","existsSync","mkdirSync","mkdirSync","existsSync","join","join","existsSync","mkdirSync","mkdirSync","existsSync","join","join","existsSync","mkdirSync","mkdirSync","existsSync","readFileSync","join","join","existsSync","existsSync","mkdirSync","join","readFileSync","join","pc","s","confirm"]}
|