@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.
- package/dist/index.js +4 -0
- 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(() => {
|