claude-phone-local 2.0.7 → 2.0.8

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.
@@ -382,8 +382,19 @@ async function setupVoiceServer(config) {
382
382
  // Step 5: Server Configuration (IP only, no API port)
383
383
  console.log(chalk.bold('\n⚙️ Server Configuration'));
384
384
  const localIp = getLocalIP();
385
- const serverAnswers = await inquirer.prompt([
385
+ const { ipMode } = await inquirer.prompt([
386
386
  {
387
+ type: 'confirm',
388
+ name: 'ipMode',
389
+ message: `Auto-detect the LAN IP on every "claude-phone start" (currently ${localIp})? ` +
390
+ 'Recommended if this machine moves networks (laptop, DHCP) - answering ' +
391
+ 'no locks in a fixed IP that goes stale the next time it changes.',
392
+ default: config.server.externalIp === 'auto' || config.server.externalIp === undefined
393
+ }
394
+ ]);
395
+
396
+ const serverAnswers = await inquirer.prompt([
397
+ ...(ipMode ? [] : [{
387
398
  type: 'input',
388
399
  name: 'externalIp',
389
400
  message: 'Server LAN IP (for RTP audio):',
@@ -397,7 +408,7 @@ async function setupVoiceServer(config) {
397
408
  }
398
409
  return true;
399
410
  }
400
- },
411
+ }]),
401
412
  {
402
413
  type: 'input',
403
414
  name: 'httpPort',
@@ -413,7 +424,7 @@ async function setupVoiceServer(config) {
413
424
  }
414
425
  ]);
415
426
 
416
- config.server.externalIp = serverAnswers.externalIp;
427
+ config.server.externalIp = ipMode ? 'auto' : serverAnswers.externalIp;
417
428
  config.server.httpPort = parseInt(serverAnswers.httpPort, 10);
418
429
 
419
430
  return config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-phone-local",
3
- "version": "2.0.7",
3
+ "version": "2.0.8",
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": {