@rigstate/cli 0.7.11 → 0.7.13
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.cjs +8 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/daemon/core.ts +6 -1
- package/src/utils/config.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -126,8 +126,8 @@ async function discoverApiUrl() {
|
|
|
126
126
|
continue;
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
|
-
console.log(chalk34.yellow(` \u274C No local Rigstate API found on scanned ports. Falling back to
|
|
130
|
-
return
|
|
129
|
+
console.log(chalk34.yellow(` \u274C No local Rigstate API found on scanned ports. Falling back to Rigstate Cloud.`));
|
|
130
|
+
return "https://app.rigstate.com";
|
|
131
131
|
}
|
|
132
132
|
function setApiUrl(url) {
|
|
133
133
|
config.set("apiUrl", url);
|
|
@@ -3799,7 +3799,12 @@ var GuardianDaemon = class extends EventEmitter3 {
|
|
|
3799
3799
|
this.setupFileWatcher();
|
|
3800
3800
|
}
|
|
3801
3801
|
if (this.config.bridgeEnabled) {
|
|
3802
|
-
|
|
3802
|
+
try {
|
|
3803
|
+
await this.setupBridge();
|
|
3804
|
+
} catch (e) {
|
|
3805
|
+
console.error(chalk18.yellow(` \u26A0\uFE0F Agent Bridge connection failed: ${e.message}`));
|
|
3806
|
+
console.log(chalk18.dim(" (Daemon will continue with local monitoring only)"));
|
|
3807
|
+
}
|
|
3803
3808
|
}
|
|
3804
3809
|
this.printActive();
|
|
3805
3810
|
this.emit("started", this.state);
|