claude-brain 0.17.12 → 0.17.13
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/VERSION +1 -1
- package/package.json +1 -1
- package/src/hooks/installer.ts +6 -0
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.17.
|
|
1
|
+
0.17.13
|
package/package.json
CHANGED
package/src/hooks/installer.ts
CHANGED
|
@@ -48,6 +48,12 @@ function writeSettings(settings: Record<string, any>): void {
|
|
|
48
48
|
function buildHookCommand(event: string, script: 'brain-hook' | 'context-hook' = 'brain-hook'): string {
|
|
49
49
|
const scriptPath = script === 'context-hook' ? getContextHookScriptPath() : getHookScriptPath()
|
|
50
50
|
const port = process.env.PORT || process.env.CLAUDE_BRAIN_PORT || '3000'
|
|
51
|
+
|
|
52
|
+
// Claude Code runs hooks via cmd.exe on Windows, which can't parse VAR=value syntax
|
|
53
|
+
if (process.platform === 'win32') {
|
|
54
|
+
return `set CLAUDE_BRAIN_PORT=${port}&& bun "${scriptPath}" --event ${event} # ${HOOK_MARKER}`
|
|
55
|
+
}
|
|
56
|
+
|
|
51
57
|
return `CLAUDE_BRAIN_PORT=${port} bun "${scriptPath}" --event ${event} # ${HOOK_MARKER}`
|
|
52
58
|
}
|
|
53
59
|
|