wicked-brain 0.3.2 → 0.3.3

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/install.mjs CHANGED
@@ -37,13 +37,33 @@ if (detected.length === 0) {
37
37
 
38
38
  console.log(`Detected CLIs: ${detected.map((d) => d.name).join(", ")}\n`);
39
39
 
40
- // Allow filtering via --cli flag
40
+ // Allow filtering via --cli flag or custom --path
41
41
  const args = argv.slice(2);
42
42
  const cliArg = args.find((a) => a.startsWith("--cli="));
43
- const cliFilter = cliArg ? cliArg.split("=")[1].split(",") : null;
44
- const targets = cliFilter
45
- ? detected.filter((d) => cliFilter.includes(d.name))
46
- : detected;
43
+ const pathArg = args.find((a) => a.startsWith("--path="));
44
+
45
+ let targets;
46
+
47
+ if (pathArg) {
48
+ const rawPath = pathArg.split("=")[1].replace(/^~/, home);
49
+ const customPath = resolve(rawPath);
50
+ const dirName = customPath.split(/[\\/]/).pop().replace(/^\./, ""); // e.g. ".claude" → "claude"
51
+ const knownPlatform = CLI_TARGETS.find((t) => t.name === dirName);
52
+ // Use platform's agent subdir name (e.g. antigravity uses "rules"), default to "agents"
53
+ const agentSubdirName = knownPlatform
54
+ ? knownPlatform.agentDir.split(/[\\/]/).pop()
55
+ : "agents";
56
+ targets = [{
57
+ name: dirName,
58
+ dir: join(customPath, "skills"),
59
+ agentDir: join(customPath, agentSubdirName),
60
+ platform: knownPlatform?.platform ?? dirName,
61
+ }];
62
+ console.log(`Custom path: ${customPath}\n`);
63
+ } else {
64
+ const cliFilter = cliArg ? cliArg.split("=")[1].split(",") : null;
65
+ targets = cliFilter ? detected.filter((d) => cliFilter.includes(d.name)) : detected;
66
+ }
47
67
 
48
68
  // Copy skills to each target CLI
49
69
  const skillDirs = readdirSync(skillsSource).filter((d) => !d.startsWith("."));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wicked-brain",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "type": "module",
5
5
  "description": "Digital brain as skills for AI coding CLIs — no vector DB, no embeddings, no infrastructure",
6
6
  "keywords": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wicked-brain-server",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "type": "module",
5
5
  "description": "SQLite FTS5 search server for wicked-brain digital knowledge bases",
6
6
  "keywords": [