Kind: Class
Source: atloria-monorepo/libs/agent-core/src/tools/watch-mode.ts
Methods
| Method | Signature | Returns |
|---|---|---|
start | start() | MarkerResult[] |
stop | stop() | void |
scanFile | scanFile(filePath: string) | MarkerResult[] |
scanDirectory | scanDirectory(dirPath: string) | MarkerResult[] |
Where it refuses work
WatchModestops the work with an early return when!filename.WatchModestops the work with an early return whenparts.some((p) => this.excludeDirs.includes(p)).WatchModestops the work with an early return when!this.matchesIncludePatterns(filename).WatchModestops the work with an early return when!ext.
When something fails
WatchModehandles failure in 3 places: it turns it into a return value in 2, and discards it silently in 1. A failure discarded silently leaves no trace for whoever debugs this later.
Was this page helpful?