UNPKG

mira-consciousness

Version:

Memory & Intelligence Retention Archive - Preserving The Spark

57 lines 1.79 kB
/** * Cross-Platform Path Utilities * ============================= * * Centralized utilities for handling paths in a cross-platform manner. * This module provides the single source of truth for all path operations * to ensure MIRA works correctly on Windows, macOS, Linux, and containers. * * Key Features: * - Intelligent Claude conversation path discovery * - Cross-platform temp directory handling * - Safe path joining and normalization * - Platform-specific path detection and conversion */ /** * Get Claude conversation paths to search in order of likelihood * This matches the Python claude_path_discovery.py logic */ export declare function getClaudeConversationSearchPaths(): string[]; /** * Validate that a path contains Claude conversation files */ export declare function validateClaudeConversationPath(searchPath: string): Promise<boolean>; /** * Get cross-platform temp directory * Handles Windows vs Unix differences */ export declare function getCrossPlatformTempDir(): string; /** * Convert Windows-style paths to cross-platform paths */ export declare function normalizePath(inputPath: string): string; /** * Check if a path is absolute in a cross-platform way */ export declare function isAbsolutePath(inputPath: string): boolean; /** * Join paths safely across platforms */ export declare function safejoin(...paths: string[]): string; /** * Get platform-specific null device */ export declare function getNullDevice(): string; /** * Get home directory with fallback */ export declare function getHomeDirectory(): string; /** * Check if running in WSL */ export declare function isWSL(): boolean; /** * Get platform name for logging */ export declare function getPlatformName(): string; //# sourceMappingURL=crossPlatformPaths.d.ts.map