claude-phone-local 2.0.4 → 2.0.5
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/cli/lib/utils.js +8 -1
- package/package.json +1 -1
package/cli/lib/utils.js
CHANGED
|
@@ -51,11 +51,18 @@ export function getLocalIP() {
|
|
|
51
51
|
* @returns {Promise<boolean>}
|
|
52
52
|
*/
|
|
53
53
|
export async function isClaudeInstalled() {
|
|
54
|
+
// `which` doesn't exist on Windows (it's `where`), and a spawn ENOENT with
|
|
55
|
+
// no 'error' handler crashes the whole process rather than resolving false.
|
|
56
|
+
const lookupCmd = process.platform === 'win32' ? 'where' : 'which';
|
|
57
|
+
|
|
54
58
|
return new Promise((resolve) => {
|
|
55
|
-
const check = spawn(
|
|
59
|
+
const check = spawn(lookupCmd, ['claude']);
|
|
56
60
|
check.on('close', (code) => {
|
|
57
61
|
resolve(code === 0);
|
|
58
62
|
});
|
|
63
|
+
check.on('error', () => {
|
|
64
|
+
resolve(false);
|
|
65
|
+
});
|
|
59
66
|
});
|
|
60
67
|
}
|
|
61
68
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-phone-local",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"description": "Local/offline fork of NetworkChuck's claude-phone: talk to Claude Code over 3CX/SIP with faster-whisper STT + Piper TTS in one Docker container.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|