UNPKG

ailock

Version:

AI-Proof File Guard - Protect sensitive files from accidental AI modifications

40 lines 1.15 kB
import { Platform } from '../platform.js'; import { UnixAdapter } from './UnixAdapter.js'; /** * Windows Subsystem for Linux (WSL) adapter for file locking * Extends UnixAdapter but with WSL-specific considerations */ export declare class WSLAdapter extends UnixAdapter { protected platformType: Platform; /** * Lock a file in WSL environment */ lockFile(filePath: string): Promise<void>; /** * Unlock a file in WSL environment */ unlockFile(filePath: string): Promise<void>; /** * Check if a file is locked in WSL environment */ isLocked(filePath: string): Promise<boolean>; /** * WSL supports limited immutable attributes * Depends on the underlying filesystem */ supportsImmutable(): boolean; /** * Convert WSL paths if needed * Handles /mnt/c/ style paths and Windows paths */ private convertPath; /** * Sync file attributes with Windows side if on Windows filesystem */ private syncWithWindows; /** * Check if running in WSL1 or WSL2 */ private getWSLVersion; } //# sourceMappingURL=WSLAdapter.d.ts.map