KoalaTrapLord
554b166787
Phase 2d/2e/2f: Extract forge_runner, precon_service, import_service/helpers into services/
2026-03-17 15:22:19 -04:00
KoalaTrapLord
874561f423
Phase 2c: Extract card analysis to services/card_analysis.py ( #12 )
2026-03-17 05:14:35 -04:00
KoalaTrapLord
c7309d1ace
Phase 2b: Extract deck service to services/deck_service.py ( #11 )
2026-03-17 05:05:52 -04:00
KoalaTrapLord
5aee93dfae
Phase 1c: Extract datPhase 2a: Extract Scryfall client to services/scryfall.py ( #10 )abase service to services/database.py ( #9 )
2026-03-17 04:54:36 -04:00
KoalaTrapLord
e14a6f9500
Phase 1c: Extract database service to services/database.py ( #9 )
2026-03-17 04:40:44 -04:00
KoalaTrapLord
7baae153ae
Phase 1b: Extract Config, BatchState, AI_PROFILES into models/state.py ( #8 )
2026-03-17 01:57:22 -04:00
KoalaTrapLord
eadf54c670
Phase 1a: Extract Pydantic models into models/requests.py + models/responses.py ( #7 )
2026-03-17 01:45:57 -04:00
KoalaTrapLord
8a6fbfaa8a
fix: 3 post-refactor bugs (COMMANDER_META, PRECON_INDEX, startup)
...
Task 1: Move BUILTIN_COMMANDERS + load_commander_meta() to shared.py
Fix import_routes.py to use _shared.COMMANDER_META (module ref)
Task 2: Rewrite precon.py to use _shared.PRECON_INDEX (module ref)
Task 3: Add @app.on_event('startup') safety net for uvicorn --reload
2026-03-14 19:08:21 +00:00
KoalaTrapLord
36077c94ab
refactor: extract 49 endpoints into 5 route modules
...
- Extract collection (10), deckbuilder (18), precon (4), import (5), lab (12) routes
- All share helpers/models/state from routes/shared.py
- Gut lab_api.py from 8872 to 4487 lines (57 remaining endpoints)
- Delete routes/_wire.py and routes/_autoload.py (replaced by include_router)
- Add _scryfall_fuzzy_lookup to shared.py
- 106 total endpoints verified: 49 extracted + 57 remaining
2026-03-14 18:55:32 +00:00
KoalaTrapLord
c52eb1c3ef
refactor: extract all shared state, helpers, models into routes/shared.py
2026-03-14 03:15:12 -04:00
KoalaTrapLord
4b1d2f71f5
refactor: Batch 1 — add routes/ package with shared state, config, and models
2026-03-14 01:44:37 -04:00