#!/usr/bin/env bash
# Wave A producer shim: route python3 to the real Python 3.12, bypassing the
# WindowsApps Store stub that answers in non-interactive login shells.
# The pipeline's bash->python and python->python subprocess boundaries do not
# apply MSYS argv conversion (observed 2026-09-13), so every argument that IS
# an existing POSIX path on this drive is normalized to mixed Windows form,
# consistently at every call. Non-path strings (commands, field names, tokens)
# are untouched, keeping recorded-path binding checks stable.
args=()
for a in "$@"; do
    case "$a" in
        /[a-zA-Z]/*)
            if [ -e "$a" ]; then
                a="$(cygpath -m "$a" 2>/dev/null || printf '%s' "$a")"
            fi
            ;;
    esac
    args+=("$a")
done
exec "/c/Users/Krypt/AppData/Local/Programs/Python/Python312/python" "${args[@]}"
