@conceptcraft/mindframes 0.1.7 → 0.1.9

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.
@@ -0,0 +1,52 @@
1
+ #!/usr/bin/env node
2
+
3
+ /**
4
+ * Post-install script for ConceptCraft CLI
5
+ * Installs the main skill and recommended external skills via npx skills
6
+ */
7
+
8
+ import { execSync } from "child_process";
9
+ import { fileURLToPath } from "url";
10
+ import { dirname, join } from "path";
11
+
12
+ const __filename = fileURLToPath(import.meta.url);
13
+ const __dirname = dirname(__filename);
14
+ const cliPath = join(__dirname, "cli.js");
15
+
16
+ /**
17
+ * External skills to install via npx skills add
18
+ */
19
+ const EXTERNAL_SKILLS = [
20
+ { repo: "https://github.com/remotion-dev/skills", skill: "remotion-best-practices" },
21
+ { repo: "https://github.com/cloudai-x/threejs-skills", skill: "threejs-fundamentals" },
22
+ { repo: "https://github.com/cloudai-x/threejs-skills", skill: "threejs-animation" },
23
+ { repo: "https://github.com/cloudai-x/threejs-skills", skill: "threejs-shaders" },
24
+ { repo: "https://github.com/cloudai-x/threejs-skills", skill: "threejs-interaction" },
25
+ { repo: "https://github.com/cloudai-x/threejs-skills", skill: "threejs-materials" },
26
+ { repo: "https://github.com/cloudai-x/threejs-skills", skill: "threejs-geometry" },
27
+ { repo: "https://github.com/cloudai-x/threejs-skills", skill: "threejs-textures" },
28
+ { repo: "https://github.com/cloudai-x/threejs-skills", skill: "threejs-lighting" },
29
+ { repo: "https://github.com/cloudai-x/threejs-skills", skill: "threejs-loaders" },
30
+ { repo: "https://github.com/cloudai-x/threejs-skills", skill: "threejs-postprocessing" },
31
+ ];
32
+
33
+ function silentRun(command) {
34
+ try {
35
+ execSync(command, { stdio: "pipe" });
36
+ return true;
37
+ } catch {
38
+ return false;
39
+ }
40
+ }
41
+
42
+ async function main() {
43
+ // Install main ConceptCraft skill
44
+ silentRun(`node "${cliPath}" skill install --force`);
45
+
46
+ // Install external skills via npx skills
47
+ for (const { repo, skill } of EXTERNAL_SKILLS) {
48
+ silentRun(`npx skills add ${repo} --skill ${skill} -y -g`);
49
+ }
50
+ }
51
+
52
+ main().catch(() => process.exit(0));