Commit Graph

89 Commits

Author SHA1 Message Date
01a48f4714 Add vendor dict fallback logic 2026-02-15 22:45:03 -08:00
dae1f817e0 refactor: extract main runtime helper groups
- Extract remaining runtime helper clusters from main.ts into dedicated modules for readability:\n  - src/main/jlpt-runtime.ts\n  - src/main/media-runtime.ts\n  - src/main/overlay-visibility-runtime.ts\n- Wire main.ts to use the new runtime services and remove duplicated in-file helpers.\n- Preserve existing behavior via full typecheck + test:fast verification.\n- Finalize and archive TASK-56 backlog entry; update TASK-54 with completion metadata and summary.
2026-02-15 21:18:20 -08:00
bec69d1b71 Refactor startup/logging service wiring and related test/config updates 2026-02-15 21:02:54 -08:00
667bde944c Add configurable minimum sentence length for N+1 targets 2026-02-15 18:34:10 -08:00
20f5de1cf7 update docs and config 2026-02-15 17:29:27 -08:00
2a2eee825c Fix tokenizer and jlpt issues 2026-02-15 17:06:27 -08:00
f492622a8b Add opt-in JLPT tagging flow 2026-02-15 16:28:00 -08:00
3a27c026b6 feat: integrate n+1 target highlighting
- Merge feature branch changes for n+1 target-only highlight flow

- Extend merged token model and token-merger to mark exactly-one unknown targets

- Thread n+1 candidate metadata through tokenizer and config systems

- Update subtitle renderer/state to route configured colors and new token class

- Resolve merge conflicts in core service tests, including subtitle and subsync behavior
2026-02-15 02:36:48 -08:00
a1f196ee52 feat: add manual known-word cache refresh path
- Add CLI command flag  with non-GUI dispatch flow and OSD error handling.

- Add runtime integration call and IPC hook so manual refresh works from command runner without app startup.

- Add public AnkiIntegration manual refresh API with force refresh semantics and guard reuse.

- Preserve default n+1 behavior by fixing config validation for malformed  values and adding tests.
2026-02-15 00:03:38 -08:00
162223943d refactor: split startup lifecycle and Anki service architecture 2026-02-14 22:31:53 -08:00
f9ef8b31b1 refactor(main): move IPC runtime deps build to shared dependency mapper 2026-02-14 16:43:17 -08:00
824443d93b refactor: extract overlay shortcuts runtime for task 27.2 2026-02-14 15:58:50 -08:00
5a610d9d02 refactor state and overlay runtime helpers 2026-02-14 15:06:20 -08:00
585fea972c refactor(main): extract IPC registration wiring into main/ipc-runtime module 2026-02-14 13:48:05 -08:00
84c2bbcc0d refactor(main): move mpv IPC command composition into helper module 2026-02-14 13:46:17 -08:00
910cf2dca4 Track mpv overlays by configured socket window only 2026-02-14 13:44:10 -08:00
61cf0a2570 refactor(main): extract runtime options and subsync ipc deps 2026-02-14 01:29:56 -08:00
d8859ec918 refactor(main): type annotate subsync runtime deps helper 2026-02-14 01:28:29 -08:00
ca916d2ef5 refactor(main): extract app-ready runtime dependencies helper 2026-02-14 01:28:01 -08:00
0bd58f72ea fix(main): type annotate dependency factories and jimaku fetch generic 2026-02-14 01:20:06 -08:00
603cafff20 refactor(main): extract startup bootstrap dependency factory 2026-02-14 01:17:52 -08:00
c5f4ffebe5 refactor(main): extract app lifecycle dependency wiring helper 2026-02-14 01:17:39 -08:00
94c1b131ef refactor(main): extract IPC runtime deps factories 2026-02-14 01:17:19 -08:00
0bd1a18cd7 refactor(main): extract mpv IPC command deps into factory 2026-02-14 01:16:32 -08:00
c8b286ad66 refactor(main): extract CLI runtime deps into factory 2026-02-14 01:16:25 -08:00
fcfd98843c refactor(main): extract mpv client deps factory into helper 2026-02-14 01:15:46 -08:00
656d686208 refactor(mpv): emit media/path/title events for app-level handlers 2026-02-14 01:13:21 -08:00
cb9a599b23 Fix overlay modal dispatch and restore behavior 2026-02-14 00:35:30 -08:00
978a859cc2 Fix secondary subtitle style parity and MPV visibility restore lifecycle 2026-02-13 00:03:55 -08:00
f345547963 Update TASK-20.2 status to done 2026-02-12 02:49:54 -08:00
dfb54630df refactor(overlay): split bounds ownership by layer for TASK-20.1 2026-02-12 02:17:30 -08:00
8a82a1b5f9 Fix renderer overlay loading and modularize renderer 2026-02-11 18:30:55 -08:00
kyasuda
f868fdbbb3 refactor(core): consolidate services and remove runtime wrappers 2026-02-11 09:33:47 -08:00
8343b42b8e refactor: inline runtime adapters in main wiring 2026-02-11 09:33:47 -08:00
579661fbef refactor runtime deps wiring and docs/config updates 2026-02-11 09:33:47 -08:00
f2e9c37f61 Fix startup TDZ and suppress subtitles during settings modals 2026-02-10 01:58:44 -08:00
2d3bb19458 refactor: extract startup lifecycle hooks orchestration 2026-02-10 01:44:20 -08:00
31f76ad476 refactor: extract startup bootstrap runtime orchestration 2026-02-10 01:40:57 -08:00
cb93601e16 refactor: extract shortcut ui runtime deps 2026-02-10 01:36:27 -08:00
a17c2296d5 refactor: extract shortcut and mining runtime deps 2026-02-10 01:32:03 -08:00
b177be0831 refactor: extract startup lifecycle runtime deps 2026-02-10 01:29:22 -08:00
528cf0a57e refactor: extract overlay runtime deps bundle 2026-02-10 01:25:25 -08:00
7bad8ac65e refactor: extract ipc mpv and tokenizer runtime deps 2026-02-10 01:22:13 -08:00
444873c803 refactor: extract overlay visibility facade deps runtime service 2026-02-10 01:17:34 -08:00
f1cf13b59c refactor: extract numeric shortcut runtime service 2026-02-10 01:14:26 -08:00
073f84b03e refactor: extract subsync deps runtime service 2026-02-10 01:12:28 -08:00
119f0da7a6 refactor: extract field grouping overlay runtime service 2026-02-10 01:09:56 -08:00
adcae2ee01 refactor: extract anki jimaku ipc deps runtime service 2026-02-10 01:05:05 -08:00
e95728b4d1 refactor: extract ipc deps runtime service 2026-02-10 01:03:10 -08:00
3686788a72 refactor: extract cli command deps runtime service 2026-02-10 00:58:57 -08:00