cc-brain 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.
package/README.md CHANGED
@@ -45,14 +45,15 @@ npm install -g cc-brain
45
45
  cc-brain install
46
46
  ```
47
47
 
48
- ### npx (no install)
48
+ ### npx (one-liner)
49
49
  ```bash
50
50
  npx cc-brain install
51
51
  ```
52
52
 
53
- ### bunx
53
+ ### bun
54
54
  ```bash
55
- bunx cc-brain install
55
+ bun install -g cc-brain
56
+ cc-brain install
56
57
  ```
57
58
 
58
59
  ### GitHub Packages
@@ -61,6 +62,12 @@ npm install -g @tripzcodes/cc-brain --registry=https://npm.pkg.github.com
61
62
  cc-brain install
62
63
  ```
63
64
 
65
+ ### Upgrade
66
+ ```bash
67
+ npm install -g cc-brain@latest
68
+ cc-brain install
69
+ ```
70
+
64
71
  ---
65
72
 
66
73
  ## How It Works
package/hooks/hooks.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "hooks": [
6
6
  {
7
7
  "type": "command",
8
- "command": "bun \"$CLAUDE_PROJECT_DIR/src/loader.js\"",
8
+ "command": "npx cc-brain load",
9
9
  "timeout": 5,
10
10
  "statusMessage": "Loading brain..."
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-brain",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Persistent memory system for Claude Code - remembers context across sessions",
5
5
  "type": "module",
6
6
  "bin": {
@@ -66,9 +66,8 @@ if (existsSync(settingsPath)) {
66
66
  // Read our hooks config
67
67
  const hooks = JSON.parse(readFileSync(join(PROJECT_ROOT, 'hooks', 'hooks.json'), 'utf-8'));
68
68
 
69
- // Update loader path to absolute (forward slashes for cross-platform)
70
- const loaderPath = join(PROJECT_ROOT, 'src', 'loader.js').replace(/\\/g, '/');
71
- hooks.SessionStart[0].hooks[0].command = `bun "${loaderPath}"`;
69
+ // Use npx to resolve package at runtime (works regardless of install location)
70
+ hooks.SessionStart[0].hooks[0].command = 'npx cc-brain load';
72
71
 
73
72
  // Merge hooks — preserve user's other hooks, replace/append ours
74
73
  function isCcBrainHook(entry) {