nextclaw 0.5.1 → 0.5.2
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/dist/cli/index.js +12 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -2360,7 +2360,18 @@ ${this.logo} ${APP_NAME} is ready! (${source})`);
|
|
|
2360
2360
|
}
|
|
2361
2361
|
try {
|
|
2362
2362
|
const response = await fetch(params.healthUrl, { method: "GET" });
|
|
2363
|
-
if (response.ok) {
|
|
2363
|
+
if (!response.ok) {
|
|
2364
|
+
await new Promise((resolve5) => setTimeout(resolve5, 200));
|
|
2365
|
+
continue;
|
|
2366
|
+
}
|
|
2367
|
+
const payload = await response.json();
|
|
2368
|
+
const healthy = payload?.ok === true && payload?.data?.status === "ok";
|
|
2369
|
+
if (!healthy) {
|
|
2370
|
+
await new Promise((resolve5) => setTimeout(resolve5, 200));
|
|
2371
|
+
continue;
|
|
2372
|
+
}
|
|
2373
|
+
await new Promise((resolve5) => setTimeout(resolve5, 300));
|
|
2374
|
+
if (isProcessRunning(params.pid)) {
|
|
2364
2375
|
return true;
|
|
2365
2376
|
}
|
|
2366
2377
|
} catch {
|