UNPKG

ailock

Version:

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

46 lines 1.49 kB
/** * Get the ailock configuration directory */ export declare function getAilockConfigDir(): string; /** * Get the machine UUID file path */ export declare function getMachineUuidPath(): string; /** * Generate a stable machine identifier based on system characteristics * Falls back to crypto.randomUUID() if system info unavailable */ export declare function generateMachineId(): string; /** * Get or create machine UUID * Returns a persistent machine identifier for analytics and API calls */ export declare function getMachineUuid(): Promise<string>; /** * Clear the stored machine UUID (useful for testing) */ export declare function clearMachineUuid(): Promise<void>; /** * Sanitize string for safe logging/transmission * Removes potential sensitive information */ export declare function sanitizeForLogging(input: string): string; /** * Hash directory path for privacy-preserving analytics */ export declare function hashPathForAnalytics(path: string): string; /** * Validate that a string doesn't contain sensitive information * Returns true if safe to log/transmit */ export declare function isSafeForLogging(input: string): boolean; /** * Get machine fingerprint for security validation * Used to detect if configuration has been moved between machines */ export declare function getMachineFingerprint(): string; /** * Validate machine UUID format */ export declare function isValidMachineUuid(uuid: string): boolean; //# sourceMappingURL=machine-id.d.ts.map