create-claude-code-visualizer 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +28 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -316,10 +316,37 @@ PROJECT_ROOT=${projectRoot}
316
316
  }
317
317
 
318
318
  // Generate GWS skills (the CLI handles skill selection)
319
+ // gws writes to ./skills/ — we generate then move to .claude/skills/
319
320
  console.log("");
320
321
  info("Generating Google Workspace skills...");
321
322
  run("npx gws generate-skills", { cwd: projectRoot });
322
- log("GWS skills installed");
323
+
324
+ // Move generated skills into .claude/skills/
325
+ const gwsOut = path.join(projectRoot, "skills");
326
+ if (fs.existsSync(gwsOut)) {
327
+ const gwsSkillsDst = path.join(dstClaude, "skills");
328
+ fs.mkdirSync(gwsSkillsDst, { recursive: true });
329
+ for (const entry of fs.readdirSync(gwsOut, { withFileTypes: true })) {
330
+ const src = path.join(gwsOut, entry.name);
331
+ const dest = path.join(gwsSkillsDst, entry.name);
332
+ if (!fs.existsSync(dest)) {
333
+ if (entry.isDirectory()) {
334
+ copyDir(src, dest);
335
+ } else {
336
+ fs.copyFileSync(src, dest);
337
+ }
338
+ }
339
+ }
340
+ // Clean up the top-level skills/ directory
341
+ fs.rmSync(gwsOut, { recursive: true, force: true });
342
+ }
343
+ // Clean up docs/skills.md if generated
344
+ const gwsDocs = path.join(projectRoot, "docs");
345
+ if (fs.existsSync(path.join(gwsDocs, "skills.md"))) {
346
+ fs.rmSync(path.join(gwsDocs, "skills.md"), { force: true });
347
+ try { fs.rmdirSync(gwsDocs); } catch {} // remove if empty
348
+ }
349
+ log("GWS skills installed to .claude/skills/");
323
350
 
324
351
  // Add gws permission to settings
325
352
  const settingsPath = path.join(dstClaude, "settings.local.json");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-claude-code-visualizer",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Run and manage Claude Code agents through a web UI",
5
5
  "license": "MIT",
6
6
  "bin": {