5ea1d55e56
- 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.
29 lines
797 B
TypeScript
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);
|
|
}
|
|
}
|