claude-brain 0.3.0 → 0.3.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-brain",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Local development assistant bridging Obsidian vaults with Claude Code via MCP",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -1,8 +1,9 @@
1
1
  import { execSync } from 'node:child_process'
2
2
 
3
3
  function isGloballyInstalled(): boolean {
4
+ const cmd = process.platform === 'win32' ? 'where claude-brain' : 'which claude-brain'
4
5
  try {
5
- const result = execSync('which claude-brain', { encoding: 'utf-8', stdio: ['pipe', 'pipe', 'pipe'] })
6
+ const result = execSync(cmd, { encoding: 'utf-8', stdio: ['pipe', 'pipe', 'pipe'] })
6
7
  return result.trim().length > 0
7
8
  } catch {
8
9
  return false