@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.
- package/dist/cli.cjs +5 -3
- 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
|
|
1616
|
-
const
|
|
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
|
|
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
|
});
|