mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-02-27 18:22:41 -08:00
1.5 KiB
1.5 KiB
id, title, status, assignee, created_date, updated_date, labels, dependencies, priority
| id | title | status | assignee | created_date | updated_date | labels | dependencies | priority | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| TASK-71 | Split main.ts into domain runtime modules round 2 | To Do | 2026-02-18 11:35 | 2026-02-18 11:35 |
|
high |
Description
src/main.ts remains >3k LOC and still mixes composition, runtime state mutation, domain workflows (Jellyfin, AniList), tray/UI setup, and IPC wiring. This creates high cognitive load and broad change blast radius.
Action Steps
- Extract cohesive runtime modules:
- AniList runtime orchestration
- Jellyfin runtime orchestration
- tray runtime
- MPV event binding/runtime hooks
- Keep
main.tsas composition root only (state wiring + module registration). - Define narrow service/deps interfaces per module to reduce closure capture.
- Add/adjust unit tests for extracted modules.
- Preserve existing CLI/IPC behavior exactly.
- Update architecture docs with new ownership boundaries.
Acceptance Criteria
- #1
src/main.tsresponsibilities reduced to composition/wiring concerns - #2 Extracted runtime modules have focused interfaces and isolated tests
- #3 No CLI/IPC regressions in existing test suite
- #4 Docs reflect new module boundaries
Definition of Done
- #1
bun run test:fastpasses - #2 Architecture docs updated