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,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(
|
|
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
|