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 CHANGED
@@ -1 +1 @@
1
- 0.17.12
1
+ 0.17.13
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-brain",
3
- "version": "0.17.12",
3
+ "version": "0.17.13",
4
4
  "description": "Local development assistant bridging Obsidian vaults with Claude Code via MCP",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -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