refactor: organize pilot modules and tests #16
Reference in New Issue
Block a user
Delete Branch "refactor/split-pilot-modules"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
pilot/review/tests/pilot/*_tests/Design notes
The public compatibility surface remains unchanged. New code belongs in the focused packages; shims are only for backwards compatibility. The review implementation is now isolated under
pilot/review/ai_review.pyfor a later responsibility-level extraction.Verification
python3 -m compileall -q pilot tests🤖 AI Review · pragent pilot · headroom/MiniMax-M2.7 ·
7a510a92· Merge confidence: 5/5 🟢Summary of Changes
pilot/ai_review.py(2376-line monolith) to a 7-line compatibility shim that redirects topilot/review/ai_review.pypilot/cost_model.py,pilot/diff_compress.py,pilot/gitea_client.py,pilot/model_client.py,pilot/review_config.pyto shims importing from their new package homespilot/entrypoints/gitea.py(HTTP transport adapter, previouslygitea_client.py) and updatepilot/entrypoints/webhook.pyto import from the new shimsdocs/architecture.mdandpilot/README.mdto document the new package hierarchyKey Risks & Concerns
from pilot.review.diff import compress_diffrather thanfrom pilot.diff_compress import compress_diff), this PR does not establish those as stable interfaces — the compatibility surface is only the top-level shimsentrypoints/__init__.pychange is minimal (docstring only); if the prior version contained re-exports or side-effects, they are now absenttests/pilot/*_tests/(referenced in PR description) are not listed as changed — their compatibility with the new package structure cannot be confirmed from the diff alone🔋 AI Usage & Run Details
headroom/MiniMax-M2.7· opencode · 19 steps · 236.9s🤖 AI Review · pragent pilot · headroom/MiniMax-M2.7 ·
c948f281· Merge confidence: 5/5 🟢Summary of Changes
Key Risks & Concerns
🔋 AI Usage & Run Details
headroom/MiniMax-M2.7· opencode · 27 steps · 206.7s