refactor: split precheck_core and migrate commands to commands/
- Split 900-line precheck_core.py into 9 focused modules: precheck_constants, time_utils, data_utils, state_manager, market_data, candidate_scoring, snapshot_builder, adaptive_profile, trigger_analyzer - Remove dead auto_trader command and module - Migrate 7 root-level command modules into commands/: check_api, doctor, external_gate, init_user_state, market_probe, paths, rotate_external_gate_log - Keep thin backward-compatible facades in root package - Update cli.py MODULE_MAP to route through commands/ - Verified compileall and smoke tests for all key commands
This commit is contained in:
@@ -9,18 +9,17 @@ import sys
|
||||
from . import __version__
|
||||
|
||||
MODULE_MAP = {
|
||||
"check-api": "check_api",
|
||||
"doctor": "doctor",
|
||||
"external-gate": "external_gate",
|
||||
"init": "init_user_state",
|
||||
"market-probe": "market_probe",
|
||||
"paths": "paths",
|
||||
"check-api": "commands.check_api",
|
||||
"doctor": "commands.doctor",
|
||||
"external-gate": "commands.external_gate",
|
||||
"init": "commands.init_user_state",
|
||||
"market-probe": "commands.market_probe",
|
||||
"paths": "commands.paths",
|
||||
"precheck": "commands.precheck",
|
||||
"review-context": "review_context",
|
||||
"review-engine": "review_engine",
|
||||
"rotate-external-gate-log": "rotate_external_gate_log",
|
||||
"rotate-external-gate-log": "commands.rotate_external_gate_log",
|
||||
"smart-executor": "commands.smart_executor",
|
||||
"auto-trader": "auto_trader",
|
||||
}
|
||||
|
||||
ALIASES = {
|
||||
@@ -47,7 +46,6 @@ COMMAND_HELP = [
|
||||
("recap", "review-engine", "Generate review recap/engine output"),
|
||||
("rotate-gate-log, rotate-log", "rotate-external-gate-log", "Rotate external gate logs"),
|
||||
("exec", "smart-executor", "Trading and execution actions"),
|
||||
("auto-trader", None, "Auto trader entrypoint"),
|
||||
]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user