Files
oh-my-pi/packages/coding-agent/src/tools/fs-cache-invalidation.ts
T
can1357 5ea1d55e56 feat: removed chunk-mode modules and read/edit entrypoints from pi-natives
- Removed `pi-natives` chunk language classifier modules and all core chunk subsystems (kind, state, render, edit, resolve).
- Removed chunk-mode CLI/read/edit entrypoints, including `read` command and chunk mode registration/prompt tooling.
- Removed chunk selectors from `read` and `grep` tools, switching behavior to raw/L-range handling.
- Fixed poll wait parsing to keep defaulting to `30s` when the provided value is empty.
2026-04-26 08:19:02 +02:00

29 lines
797 B
TypeScript

import { invalidateFsScanCache } from "@oh-my-pi/pi-natives";
/**
* Invalidate shared filesystem scan caches after a content write/update.
*/
export function invalidateFsScanAfterWrite(path: string): void {
invalidateFsScanCache(path);
}
/**
* Invalidate shared filesystem scan caches after deleting a file.
*/
export function invalidateFsScanAfterDelete(path: string): void {
invalidateFsScanCache(path);
}
/**
* Invalidate shared filesystem scan caches after a rename/move.
*
* Both source and destination paths must be invalidated because cached roots can
* include either side of the move.
*/
export function invalidateFsScanAfterRename(oldPath: string, newPath: string): void {
invalidateFsScanCache(oldPath);
if (newPath !== oldPath) {
invalidateFsScanCache(newPath);
}
}