@proagentstore/cli 0.4.16 → 0.4.17

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/dist/index.js +4 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -854,6 +854,10 @@ function openRelaySocket(instanceId, wsBase, mintToken, localUrl, runnerToken, f
854
854
  relayToken = await mintToken();
855
855
  } catch (e) {
856
856
  const msg = e instanceof Error ? e.message : String(e);
857
+ if (/^402\b/.test(msg)) {
858
+ writeLine(`Runner unavailable for ${instanceId.slice(0, 8)}\u2026: ${msg.replace(/^402\s*/, "")}`);
859
+ return;
860
+ }
857
861
  const hint = /401|token|sign/i.test(msg) ? " (run `pags login`)" : "";
858
862
  writeLine(`Relay token mint failed: ${instanceId.slice(0, 8)}\u2026${hint} \u2014 retrying in ${Math.round(backoffMs / 1e3)}s`);
859
863
  setTimeout(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proagentstore/cli",
3
- "version": "0.4.16",
3
+ "version": "0.4.17",
4
4
  "description": "CLI for creating, publishing, and running ProAgentStore agents",
5
5
  "license": "MIT",
6
6
  "type": "module",