@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rigstate/cli",
3
- "version": "0.7.20",
3
+ "version": "0.7.21",
4
4
  "description": "Rigstate CLI - Code audit, sync and supervision tool",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -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