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 +10 -3
- package/hooks/hooks.json +1 -1
- package/package.json +1 -1
- package/scripts/install.js +2 -3
package/README.md
CHANGED
|
@@ -45,14 +45,15 @@ npm install -g cc-brain
|
|
|
45
45
|
cc-brain install
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
-
### npx (
|
|
48
|
+
### npx (one-liner)
|
|
49
49
|
```bash
|
|
50
50
|
npx cc-brain install
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
-
###
|
|
53
|
+
### bun
|
|
54
54
|
```bash
|
|
55
|
-
|
|
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
package/package.json
CHANGED
package/scripts/install.js
CHANGED
|
@@ -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
|
-
//
|
|
70
|
-
|
|
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) {
|