- Extract types → history-types.ts, DB layer → history-db.ts, navigation → history-navigation.ts
- history.ts becomes a re-export barrel
- Fix findNextEpisode: deleted-file fallback now advances to next season
- Add isReadonlyWalRetryError (WAL-mode guard before read-write retry)
- Strengthen bun-sqlite.d.ts with generics on Statement/query/prepare
- New `subminer -H` flag opens an fzf/rofi menu of watched series from the immersion tracker DB
- Actions: replay last episode, play next episode (cross-season), or browse episodes
- Adds `history.ts` with DB query, series grouping, season dir listing, and next-episode logic
- Adds `bun-sqlite.d.ts` ambient types for tsc compat
- Includes full test coverage in `history.test.ts`