voicecc 1.1.8 → 1.1.9
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 +12 -2
- package/dashboard/dist/assets/index-DaJBlNm0.js +11 -0
- package/dashboard/dist/index.html +1 -1
- package/dashboard/routes/agents.ts +48 -1
- package/dashboard/routes/auth.ts +150 -68
- package/init/defaults/system.md +5 -1
- package/package.json +1 -1
- package/server/services/agent-store.ts +71 -0
- package/dashboard/dist/assets/index-BSLjaEDe.js +0 -11
package/bin/voicecc.js
CHANGED
|
@@ -543,6 +543,16 @@ if (isRunning()) {
|
|
|
543
543
|
// Start the daemon
|
|
544
544
|
startDaemon();
|
|
545
545
|
|
|
546
|
-
//
|
|
547
|
-
|
|
546
|
+
// Poll for status.json until the server is ready
|
|
547
|
+
const tunnelEnabled = readFileSync(ENV_PATH, "utf-8").includes("TUNNEL_ENABLED=true");
|
|
548
|
+
const MAX_WAIT_MS = tunnelEnabled ? 30000 : 10000;
|
|
549
|
+
const POLL_INTERVAL_MS = 500;
|
|
550
|
+
const startTime = Date.now();
|
|
551
|
+
|
|
552
|
+
while (Date.now() - startTime < MAX_WAIT_MS) {
|
|
553
|
+
await new Promise((resolve) => setTimeout(resolve, POLL_INTERVAL_MS));
|
|
554
|
+
const status = readStatus();
|
|
555
|
+
if (status && (!tunnelEnabled || status.tunnelUrl)) break;
|
|
556
|
+
}
|
|
557
|
+
|
|
548
558
|
showInfo();
|