add-skill-kit 1.0.1 → 1.0.2

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.
@@ -297,6 +297,44 @@ export async function run(spec) {
297
297
  });
298
298
  }
299
299
 
300
+ // Install workflows if they exist
301
+ const workflowsDir = path.join(tmp, ".agent", "workflows");
302
+ const targetWorkflowsDir = path.join(WORKSPACE, "..", "workflows");
303
+ let workflowsInstalled = 0;
304
+
305
+ if (fs.existsSync(workflowsDir)) {
306
+ stepLine();
307
+ const ws = spinner();
308
+ ws.start("Installing workflows");
309
+
310
+ fs.mkdirSync(targetWorkflowsDir, { recursive: true });
311
+ const workflows = fs.readdirSync(workflowsDir).filter(f => f.endsWith(".md"));
312
+
313
+ for (const wf of workflows) {
314
+ const src = path.join(workflowsDir, wf);
315
+ const dest = path.join(targetWorkflowsDir, wf);
316
+
317
+ if (!fs.existsSync(dest)) {
318
+ fs.copyFileSync(src, dest);
319
+ workflowsInstalled++;
320
+ }
321
+ }
322
+
323
+ ws.stop(`Installed ${workflowsInstalled} workflows`);
324
+ }
325
+
326
+ // Install GEMINI.md if it exists
327
+ const geminiSrc = path.join(tmp, ".agent", "GEMINI.md");
328
+ const geminiDest = path.join(WORKSPACE, "..", "GEMINI.md");
329
+ let geminiInstalled = false;
330
+
331
+ if (fs.existsSync(geminiSrc) && !fs.existsSync(geminiDest)) {
332
+ stepLine();
333
+ fs.copyFileSync(geminiSrc, geminiDest);
334
+ step("Installed GEMINI.md (Agent Rules)");
335
+ geminiInstalled = true;
336
+ }
337
+
300
338
  // Installation complete step
301
339
  stepLine();
302
340
  step("Installation complete");
@@ -306,17 +344,33 @@ export async function run(spec) {
306
344
  console.log(`${c.gray(S.branch)}`); // Extra spacing line
307
345
 
308
346
  let successContent = "";
347
+
348
+ // Skills summary
309
349
  for (const sn of selectedSkills) {
310
- const mockPath = `~\\Desktop\\New Project\\.agents\\skills\\${sn}`;
311
- successContent += `${c.cyan("✓")} ${c.dim(mockPath)}\n`; // Keeping check inside box as per request, but let's make it Cyan to match theme
312
- successContent += ` ${c.dim("symlink")} ${c.gray("→")} ${c.dim(agentsString)}\n`;
350
+ const mockPath = `.agent/skills/${sn}`;
351
+ successContent += `${c.cyan("✓")} ${c.dim(mockPath)}\n`;
313
352
  }
314
353
 
354
+ // Workflows summary
355
+ if (workflowsInstalled > 0) {
356
+ successContent += `${c.cyan("✓")} ${c.dim(`.agent/workflows/ (${workflowsInstalled} files)`)}\n`;
357
+ }
358
+
359
+ // GEMINI.md summary
360
+ if (geminiInstalled) {
361
+ successContent += `${c.cyan("✓")} ${c.dim(".agent/GEMINI.md (Agent Rules)")}\n`;
362
+ }
363
+
364
+ // Build title
365
+ const parts = [`${selectedSkills.length} skills`];
366
+ if (workflowsInstalled > 0) parts.push(`${workflowsInstalled} workflows`);
367
+ if (geminiInstalled) parts.push("GEMINI.md");
368
+
315
369
  console.log(boxen(successContent.trim(), {
316
370
  padding: 1,
317
- borderColor: "cyan", // Changed to cyan to match 2-color rule
371
+ borderColor: "cyan",
318
372
  borderStyle: "round",
319
- title: c.cyan(`Installed ${selectedSkills.length} skills to ${selectedAgentsList.length} agents`),
373
+ title: c.cyan(`Installed ${parts.join(", ")}`),
320
374
  titleAlignment: "left"
321
375
  }).split("\n").map(l => `${c.gray(S.branch)} ${l}`).join("\n"));
322
376
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "add-skill-kit",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Enterprise-grade Agent Skill Manager with Antigravity Skills support, Progressive Disclosure detection, and semantic routing validation",
5
5
  "license": "MIT",
6
6
  "author": "agentskillkit <agentskillkit@gmail.com>",