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.
Files changed (2) hide show
  1. package/bin/cli.mjs +3 -3
  2. package/package.json +1 -1
package/bin/cli.mjs CHANGED
@@ -463,9 +463,9 @@ function readOperatorToken() {
463
463
  }
464
464
  }
465
465
 
466
- function healthz(addr) {
466
+ function health(addr) {
467
467
  return new Promise((resolve) => {
468
- const req = http.get(`http://${addr}/healthz`, (res) => {
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 healthz(addr)) return true;
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.7",
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",