specrails-hub 1.8.0 → 1.10.0
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/dist/specrails-hub.js +11 -6
- package/client/dist/assets/index-56jZgGNc.js +609 -0
- package/client/dist/assets/index-Dke9Xnwf.css +1 -0
- package/client/dist/index.html +2 -2
- package/package.json +3 -1
- package/server/dist/auth.js +77 -0
- package/server/dist/changes-reader.js +120 -0
- package/server/dist/chat-manager.js +1 -1
- package/server/dist/db.js +7 -4
- package/server/dist/hub-router.js +14 -0
- package/server/dist/index.js +66 -11
- package/server/dist/project-registry.js +3 -1
- package/server/dist/project-router.js +69 -0
- package/server/dist/queue-manager.js +71 -3
- package/server/dist/spec-launcher-manager.js +140 -0
- package/client/dist/assets/index-D0GRiEdB.js +0 -554
- package/client/dist/assets/index-D6VBN-Kx.css +0 -1
|
@@ -715,12 +715,17 @@ async function hubStart(port) {
|
|
|
715
715
|
catch { /* ignore */ }
|
|
716
716
|
}
|
|
717
717
|
child.unref();
|
|
718
|
-
//
|
|
719
|
-
|
|
720
|
-
const
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
718
|
+
// Poll until the server is ready (up to 15 seconds, checking every 300ms)
|
|
719
|
+
const pollTimeoutMs = 15000;
|
|
720
|
+
const pollIntervalMs = 300;
|
|
721
|
+
const startPoll = Date.now();
|
|
722
|
+
while (Date.now() - startPoll < pollTimeoutMs) {
|
|
723
|
+
await new Promise((resolve) => setTimeout(resolve, pollIntervalMs));
|
|
724
|
+
const detection = await detectWebManager(port);
|
|
725
|
+
if (detection.running) {
|
|
726
|
+
cliLog(`hub started on http://127.0.0.1:${port}`);
|
|
727
|
+
return 0;
|
|
728
|
+
}
|
|
724
729
|
}
|
|
725
730
|
cliError(`hub failed to start — logs: ${HUB_LOG_FILE}`);
|
|
726
731
|
return 1;
|