@rigstate/cli 0.7.19 → 0.7.20

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.js CHANGED
@@ -1757,7 +1757,7 @@ var require_package = __commonJS({
1757
1757
  "package.json"(exports, module) {
1758
1758
  module.exports = {
1759
1759
  name: "@rigstate/cli",
1760
- version: "0.7.19",
1760
+ version: "0.7.20",
1761
1761
  description: "Rigstate CLI - Code audit, sync and supervision tool",
1762
1762
  type: "module",
1763
1763
  main: "./dist/index.js",
@@ -3268,7 +3268,8 @@ function createFileWatcher(watchPath) {
3268
3268
  const absolutePath = path16.resolve(process.cwd(), watchPath);
3269
3269
  watcher = chokidar.watch(absolutePath, {
3270
3270
  ignored: (pathStr) => {
3271
- const segments = pathStr.split(path16.sep);
3271
+ const relativePath = path16.relative(process.cwd(), pathStr);
3272
+ const segments = relativePath.split(path16.sep);
3272
3273
  const ignoreDirs = [
3273
3274
  "node_modules",
3274
3275
  ".git",
@@ -3286,7 +3287,16 @@ function createFileWatcher(watchPath) {
3286
3287
  "artifacts",
3287
3288
  "out",
3288
3289
  ".vercel",
3289
- ".npm"
3290
+ ".npm",
3291
+ ".agent",
3292
+ ".cursor",
3293
+ ".npm-cache",
3294
+ "backups",
3295
+ "docs",
3296
+ "tests",
3297
+ "tools",
3298
+ "scripts",
3299
+ "supabase"
3290
3300
  ];
3291
3301
  if (segments.some((segment) => ignoreDirs.includes(segment))) {
3292
3302
  return true;
@@ -3300,13 +3310,16 @@ function createFileWatcher(watchPath) {
3300
3310
  persistent: true,
3301
3311
  ignoreInitial: true,
3302
3312
  ignorePermissionErrors: true,
3303
- depth: 10,
3304
- // Reduced from 20 for large monorepos
3313
+ depth: 5,
3314
+ // Strongly reduced for major monorepos
3305
3315
  awaitWriteFinish: {
3306
- stabilityThreshold: 300,
3307
- pollInterval: 100
3316
+ stabilityThreshold: 500,
3317
+ // Increased for stability
3318
+ pollInterval: 200
3308
3319
  },
3309
3320
  usePolling: false,
3321
+ followSymlinks: false,
3322
+ // Prevent symlink loops and extra handles
3310
3323
  atomic: true
3311
3324
  });
3312
3325
  watcher.on("change", (filePath) => {