#!/bin/sh # Built-in fixes source: a small, curated, read-only fixes list shipped # inside the image itself (contrib/fx/builtin-fixes.txt) -- zero network, # zero API key, zero secrets, works on a completely offline boot. Same # "cmd=fix" line format as the learned p file and 90-team-shared.sh, exact # match on the full attempted command line (not fuzzy -- these are curated, # not guesses, so they should either match precisely or stay out of the way). # # Numbered 15: after the user's own learned-prefix fixes (10-known.sh), # since something the user already solved themselves should always win # over our shipped default. Before history/self-diag/pathfuzzy (20-40), # since a verified curated fix beats a blind guess. BUILTIN_FIXES="${FX_BUILTIN_FIXES:-/root/shell-project/contrib/fx/builtin-fixes.txt}" [ -f "$BUILTIN_FIXES" ] || exit 0 cmd="$1" [ -n "$cmd" ] || exit 0 grep -F "${cmd}=" "$BUILTIN_FIXES" 2>/dev/null | cut -d= -f2- | awk '!seen[$0]++'