# RoadTripper CLI Aliases
# Add this to your ~/.zshrc:
# source ~/Documents/MyRoadTrip/scripts/rt-aliases.sh

# Main CLI
alias rt='~/Documents/MyRoadTrip/scripts/rt-cli.sh'

# Agent API (optimized for AI agents)
alias rta='~/Documents/MyRoadTrip/scripts/rt-agent.sh'

# Quick aliases
alias ff='rg --type-add "vue:*.vue" --type ts --type vue --type js --ignore-case --color=always --line-number | fzf'
alias fo='fd --type f -e ts -e vue -e js -e tsx | fzf --preview "bat --style=numbers --color=always {}"'
alias codeq='fd --type f -e ts -e vue -e js | fzf --preview "bat --style=numbers --color=always {}" | xargs code'
alias scanjs='fd -e js -e ts -e vue --exec wc -l | sort -rn | head -20'
alias aginfo='echo "TODO count:" && rg "TODO|FIXME|XXX" --count-matches'
alias preload='fd --type f -e ts -e vue -e js --changed-within 7d --exec cat > /dev/null'

# Agent shortcuts (JSON output)
alias rtstats='rta project/stats | jq .'
alias rttech='rta quick/tech-stack | jq .'
alias rtmods='rta project/modules | jq .'
alias rtfind='rta files/find'
alias rtcount='rta search/count'

# Deep analysis shortcuts (NEW - ultra-fast)
alias rtd='~/Documents/MyRoadTrip/scripts/rt-deep.sh'
alias rtanalyze='rtd deep-analyze'
alias rtrelated='rtd find-related'
alias rtimpact='rtd impact'
alias rtmodule='rtd analyze-module'
alias rthealth='rtd health'

# Project shortcuts
alias cdapi='cd ~/Documents/MyRoadTrip/apps/api'
alias cdweb='cd ~/Documents/MyRoadTrip/apps/web'
alias cdpkg='cd ~/Documents/MyRoadTrip/packages'
alias cdrt='cd ~/Documents/MyRoadTrip'

# Dev shortcuts
alias devapi='cdapi && pnpm dev'
alias devweb='cdweb && pnpm dev'
alias devall='cdrt && pnpm dev'

# Build shortcuts
alias buildfast='pnpm type-check && pnpm build'
alias checkall='pnpm lint && pnpm type-check'

echo "✅ RoadTripper CLI aliases loaded (includes Agent API shortcuts)"
