@saga-ai/cli 2.12.0 → 2.12.1

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.
Files changed (2) hide show
  1. package/dist/cli.cjs +5 -3
  2. package/package.json +1 -1
package/dist/cli.cjs CHANGED
@@ -1612,12 +1612,14 @@ function createDebouncer(delayMs) {
1612
1612
  async function createSagaWatcher(sagaRoot) {
1613
1613
  const emitter = new import_events.EventEmitter();
1614
1614
  const debouncer = createDebouncer(100);
1615
- const sagaDir = (0, import_path4.join)(sagaRoot, ".saga");
1616
- const watcher = import_chokidar.default.watch(sagaDir, {
1615
+ const epicsDir = (0, import_path4.join)(sagaRoot, ".saga", "epics");
1616
+ const archiveDir = (0, import_path4.join)(sagaRoot, ".saga", "archive");
1617
+ const watcher = import_chokidar.default.watch([epicsDir, archiveDir], {
1617
1618
  persistent: true,
1618
1619
  ignoreInitial: true,
1619
1620
  // Don't emit events for existing files
1620
- // Use polling for reliable cross-platform behavior (especially in temp directories)
1621
+ // Use polling for reliable cross-platform behavior in tests
1622
+ // This is fine since we only watch epics/archive (~20 files), not entire .saga/ (79K+ files)
1621
1623
  usePolling: true,
1622
1624
  interval: 100
1623
1625
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saga-ai/cli",
3
- "version": "2.12.0",
3
+ "version": "2.12.1",
4
4
  "description": "CLI for SAGA - Structured Autonomous Goal Achievement",
5
5
  "type": "module",
6
6
  "bin": {