@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/package.json
CHANGED
package/src/daemon/core.ts
CHANGED
|
@@ -69,7 +69,12 @@ export class GuardianDaemon extends EventEmitter {
|
|
|
69
69
|
|
|
70
70
|
// 4. Setup Bridge
|
|
71
71
|
if (this.config.bridgeEnabled) {
|
|
72
|
-
|
|
72
|
+
try {
|
|
73
|
+
await this.setupBridge();
|
|
74
|
+
} catch (e: any) {
|
|
75
|
+
console.error(chalk.yellow(` ⚠️ Agent Bridge connection failed: ${e.message}`));
|
|
76
|
+
console.log(chalk.dim(' (Daemon will continue with local monitoring only)'));
|
|
77
|
+
}
|
|
73
78
|
}
|
|
74
79
|
|
|
75
80
|
this.printActive();
|
package/src/utils/config.ts
CHANGED
|
@@ -124,8 +124,8 @@ export async function discoverApiUrl(): Promise<string> {
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
console.log(chalk.yellow(` ❌ No local Rigstate API found on scanned ports. Falling back to
|
|
128
|
-
return
|
|
127
|
+
console.log(chalk.yellow(` ❌ No local Rigstate API found on scanned ports. Falling back to Rigstate Cloud.`));
|
|
128
|
+
return 'https://app.rigstate.com';
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
/**
|