mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-15 17:30:13 +08:00
python-ripgrep 0.0.9 does not support Python 3.13 (requires <3.13,>=3.10). This change replaces the python-ripgrep library with direct subprocess calls to system ripgrep (rg) with fallback to grep. Changes: - Remove python-ripgrep import from local.py - Rewrite search_files() to use shutil.which() to detect rg/grep availability - Support ripgrep first, fallback to grep if not available - Handle proper exit codes (0=success, 1=no matches for grep) - Remove python-ripgrep from requirements.txt and pyproject.toml Fixes #7496