/**
 * Path translation between Windows and WSL2 mount paths.
 *
 * Only used at config-resolution time (not per-command).
 */
/**
 * Convert a Windows absolute path to its WSL2 /mnt/ equivalent.
 *
 * Example: C:\Users\peter\Documents → /mnt/c/Users/peter/Documents
 *
 * Returns the input unchanged if it doesn't look like a Windows absolute path.
 */
export function toLinuxPath(winPath) {
    const match = winPath.match(/^([A-Za-z]):[/\\](.*)/);
    if (!match)
        return winPath;
    const drive = match[1].toLowerCase();
    const rest = match[2].replace(/\\/g, '/');
    return `/mnt/${drive}/${rest}`;
}
//# sourceMappingURL=paths.js.map