echoclaw-relay-agent 0.3.2 → 0.3.3
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/main.js +3 -2
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -2734,7 +2734,8 @@ var GatewayConnection = class extends import_events.EventEmitter {
|
|
|
2734
2734
|
const message = error?.message || "unknown error";
|
|
2735
2735
|
console.error(`[gateway] \u274C Connect failed: ${code} \u2014 ${message}`);
|
|
2736
2736
|
this.authFailures++;
|
|
2737
|
-
|
|
2737
|
+
const tokenRetryErrors = ["INVALID_TOKEN", "auth_failed", "DEVICE_AUTH_SIGNATURE_INVALID", "DEVICE_AUTH_FAILED"];
|
|
2738
|
+
if (this.cachedDeviceToken && tokenRetryErrors.includes(code)) {
|
|
2738
2739
|
console.log("[gateway] deviceToken rejected \u2014 clearing cache, will retry with gateway token");
|
|
2739
2740
|
this.cachedDeviceToken = null;
|
|
2740
2741
|
this.clearSession();
|
|
@@ -3865,7 +3866,7 @@ async function discoverGatewayToken() {
|
|
|
3865
3866
|
}
|
|
3866
3867
|
|
|
3867
3868
|
// src/main.ts
|
|
3868
|
-
var VERSION = "0.3.
|
|
3869
|
+
var VERSION = "0.3.3";
|
|
3869
3870
|
function parseArgs() {
|
|
3870
3871
|
const args = process.argv.slice(2);
|
|
3871
3872
|
const opts = {
|