permaura 1.3.7 → 1.3.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/cli.mjs +3 -3
- package/package.json +1 -1
package/bin/cli.mjs
CHANGED
|
@@ -463,9 +463,9 @@ function readOperatorToken() {
|
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
465
|
|
|
466
|
-
function
|
|
466
|
+
function health(addr) {
|
|
467
467
|
return new Promise((resolve) => {
|
|
468
|
-
const req = http.get(`http://${addr}/
|
|
468
|
+
const req = http.get(`http://${addr}/health`, (res) => {
|
|
469
469
|
res.resume();
|
|
470
470
|
resolve(res.statusCode === 200);
|
|
471
471
|
});
|
|
@@ -479,7 +479,7 @@ function healthz(addr) {
|
|
|
479
479
|
|
|
480
480
|
async function waitHealthz(addr, tries = 20) {
|
|
481
481
|
for (let i = 0; i < tries; i++) {
|
|
482
|
-
if (await
|
|
482
|
+
if (await health(addr)) return true;
|
|
483
483
|
await new Promise((r) => setTimeout(r, 1000));
|
|
484
484
|
}
|
|
485
485
|
return false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "permaura",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.9",
|
|
4
4
|
"description": "Run the Permaura gateway with one command. Give your AI agents permission, not keys. `npm i -g permaura` then `permaura start --pair <code>` installs the gateway, starts it, and connects it to your permaura.com account.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|