voicecc 1.1.4 → 1.1.6

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/bin/voicecc.js CHANGED
@@ -119,6 +119,23 @@ async function runSetupWizard() {
119
119
  await ask(rl, "Have you saved the password? Press Enter to continue. ");
120
120
  }
121
121
 
122
+ // Tunnel
123
+ console.log("");
124
+ console.log("Would you like to enable a public tunnel (via Cloudflare)?");
125
+ console.log("This is required if you want to access VoiceCC on a remote");
126
+ console.log("server, and/or want to make use of phone calling.");
127
+ console.log("");
128
+ console.log(" 1) Yes, enable tunnel (recommended)");
129
+ console.log(" 2) No, local only");
130
+ console.log("");
131
+ const tunnelChoice = await ask(rl, "Choose [1/2]: ");
132
+ const tunnelEnabled = tunnelChoice !== "2";
133
+ if (tunnelEnabled) {
134
+ console.log("Tunnel will start automatically on boot.");
135
+ } else {
136
+ console.log("Tunnel disabled. You can enable it later from Settings.");
137
+ }
138
+
122
139
  // Claude CLI
123
140
  if (!commandExists("claude")) {
124
141
  console.log("");
@@ -144,6 +161,7 @@ async function runSetupWizard() {
144
161
  const lines = [];
145
162
  if (apiKey) lines.push(`ELEVENLABS_API_KEY=${apiKey}`);
146
163
  if (password) lines.push(`DASHBOARD_PASSWORD=${password}`);
164
+ lines.push(`TUNNEL_ENABLED=${tunnelEnabled}`);
147
165
  await writeFile(ENV_PATH, lines.join("\n") + "\n", "utf-8");
148
166
 
149
167
  console.log("All done! Starting VoiceCC...");