UNPKG

ailock

Version:

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

36 lines 1.28 kB
/** * Platform abstraction layer for cross-platform file locking * * This module provides a unified interface for file locking operations * across different operating systems (Unix/Linux/macOS, Windows, WSL). */ // Re-export types and enums export var Platform; (function (Platform) { Platform["UNIX"] = "unix"; Platform["WINDOWS"] = "windows"; Platform["WSL"] = "wsl"; })(Platform || (Platform = {})); // Re-export factory and adapters export { PlatformFactory } from './platform/PlatformFactory.js'; export { BasePlatformAdapter } from './platform/BasePlatformAdapter.js'; export { UnixAdapter } from './platform/UnixAdapter.js'; export { WindowsAdapter } from './platform/WindowsAdapter.js'; export { WSLAdapter } from './platform/WSLAdapter.js'; // Import factory for convenience functions import { PlatformFactory } from './platform/PlatformFactory.js'; /** * Detect the current platform * @deprecated Use PlatformFactory.detectPlatform() instead */ export function detectPlatform() { return PlatformFactory.detectPlatform(); } /** * Get the appropriate platform adapter * @deprecated Use PlatformFactory.createAdapter() instead */ export function getPlatformAdapter() { return PlatformFactory.createAdapter(); } //# sourceMappingURL=platform.js.map