2026-02-08 15:01:42 +09:00
|
|
|
/**
|
|
|
|
|
* Cross-platform check if a path is inside .sisyphus/ directory.
|
|
|
|
|
* Handles both forward slashes (Unix) and backslashes (Windows).
|
2026-02-10 21:58:26 +09:00
|
|
|
* Uses path segment matching (not substring) to avoid false positives like "not-sisyphus/file.txt"
|
2026-02-08 15:01:42 +09:00
|
|
|
*/
|
|
|
|
|
export function isSisyphusPath(filePath: string): boolean {
|
|
|
|
|
return /\.sisyphus[/\\]/.test(filePath)
|
|
|
|
|
}
|