@rigstate/cli 0.7.20 → 0.7.21
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/.rigstate/daemon.pid +1 -1
- package/.rigstate/daemon.state.json +4 -4
- package/.rigstate/rules-cache.json +1 -1
- package/dist/index.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/daemon/core.ts +6 -0
package/package.json
CHANGED
package/src/daemon/core.ts
CHANGED
|
@@ -19,6 +19,7 @@ import { createBridgeListener, type BridgeListenerEvents } from './bridge-listen
|
|
|
19
19
|
import { DaemonConfig, DaemonState } from './types.js';
|
|
20
20
|
import { trackSkillUsage } from './telemetry.js';
|
|
21
21
|
import { jitProvisionSkill } from '../utils/skills-provisioner.js';
|
|
22
|
+
import { syncProjectRules } from '../commands/sync-rules.js';
|
|
22
23
|
|
|
23
24
|
export class GuardianDaemon extends EventEmitter {
|
|
24
25
|
private config: DaemonConfig;
|
|
@@ -60,6 +61,11 @@ export class GuardianDaemon extends EventEmitter {
|
|
|
60
61
|
// 2. Load and Sync Rules
|
|
61
62
|
await this.guardianMonitor.loadRules();
|
|
62
63
|
console.log(chalk.green(` ✓ Loaded ${this.guardianMonitor.getRuleCount()} rules`));
|
|
64
|
+
|
|
65
|
+
// Auto-Sync Brain to IDE (The "Missing Link")
|
|
66
|
+
console.log(chalk.dim('🧠 Syncing Brain to IDE (.cursor/rules)...'));
|
|
67
|
+
await syncProjectRules(this.config.projectId, this.config.apiKey, this.config.apiUrl);
|
|
68
|
+
|
|
63
69
|
await this.syncHeuristics();
|
|
64
70
|
|
|
65
71
|
// 3. Setup File Watcher
|