create-claude-code-visualizer 0.1.4 → 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.
- package/index.js +29 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -151,9 +151,7 @@ async function main() {
|
|
|
151
151
|
|
|
152
152
|
// Copy personal-assistant-app (the Next.js UI)
|
|
153
153
|
const appTemplate = path.join(TEMPLATES_DIR, "app");
|
|
154
|
-
|
|
155
|
-
warn("personal-assistant-app/ already exists — updating...");
|
|
156
|
-
}
|
|
154
|
+
fs.mkdirSync(appDir, { recursive: true });
|
|
157
155
|
copyDir(appTemplate, appDir);
|
|
158
156
|
log("personal-assistant-app/ installed");
|
|
159
157
|
|
|
@@ -318,10 +316,37 @@ PROJECT_ROOT=${projectRoot}
|
|
|
318
316
|
}
|
|
319
317
|
|
|
320
318
|
// Generate GWS skills (the CLI handles skill selection)
|
|
319
|
+
// gws writes to ./skills/ — we generate then move to .claude/skills/
|
|
321
320
|
console.log("");
|
|
322
321
|
info("Generating Google Workspace skills...");
|
|
323
322
|
run("npx gws generate-skills", { cwd: projectRoot });
|
|
324
|
-
|
|
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/");
|
|
325
350
|
|
|
326
351
|
// Add gws permission to settings
|
|
327
352
|
const settingsPath = path.join(dstClaude, "settings.local.json");
|