mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-02-27 18:22:41 -08:00
Introduce runtime domain barrel exports and registry composition support, and document/check main runtime fan-in workflow with related backlog planning artifacts.
4.9 KiB
4.9 KiB
Agent: codex-review-refactor-cleanup-20260220T113818Z-i2ov
- alias: codex-review-refactor-cleanup
- mission: Review recent TASK-85 refactor commits; identify remaining cleanup work with concrete evidence
- status: handoff
- branch: main
- started_at: 2026-02-20T11:38:18Z
- heartbeat_minutes: 5
Current Work (newest first)
- [2026-02-21T02:04:12Z] handoff: completed writing-plans request; created 3 backlog tickets (
TASK-93,TASK-94,TASK-95) and saved end-to-end execution plan atdocs/plans/2026-02-20-task85-remaining-workstreams-plan.md. - [2026-02-20T12:06:40Z] intent: user requested writing-plans output only: create end-to-end plans + one ticket per remaining workstream (TASK-85 tracking sync, main.ts composition-root completion, oversized hotspot decomposition).
- [2026-02-20T12:05:35Z] handoff: completed plan + execution for main.ts fan-in reduction slice. Added runtime domain barrels (
src/main/runtime/domains/*), composed registry (src/main/runtime/registry.ts), migratedsrc/main.tsruntime imports to domain paths, and added fan-in guard (scripts/check-main-runtime-fanin.ts+ package scripts). - [2026-02-20T12:05:35Z] test:
bun run build,bun run test:config:dist,bun run test:core:dist,bun run check:main-fanin,bun run check:file-budgetspass; registry unit test now skips in environments lackingnode:sqlite. - [2026-02-20T11:57:58Z] intent: user requested end-to-end execution for main.ts fan-in reduction; using writing-plans then executing-plans flow to add domain barrels + registry composition and migrate
src/main.tsruntime imports/wiring. - [2026-02-20T11:48:28Z] progress: executed cleanup item #4 first: reconciled launcher generated-artifact policy by moving
build-launcheroutput todist/launcher/subminerand making install targets consume that path. - [2026-02-20T11:48:28Z] progress: added
scripts/verify-generated-launcher.shand documented canonical workflow indocs/development.md+docs/installation.md. - [2026-02-20T11:48:28Z] test:
make build-launcher && ls -la dist/launcher/subminer && bash scripts/verify-generated-launcher.shpasses (warns if stale./subminerexists locally). - [2026-02-20T11:40:15Z] test: full gate pass for current tree (
bun run build && bun run test:config:dist && bun run test:core:dist); cleanup debt remains structural/tracking, not immediate red tests. - [2026-02-20T11:39:33Z] handoff: review complete; TASK-85 refactor made strong
src/main/runtime/*progress but cleanup not complete. Remaining priorities: finish decomposing oversized hotspots (src/main.ts,src/anki-integration.ts,src/config/service.ts,src/core/services/immersion-tracker-service.ts), reducemain.tsimport/deps-builder fan-in, and close TASK-85 AC/DoD tracking gaps. - [2026-02-20T11:39:33Z] progress: ran maintainability guardrail (
bun run check:file-budgets) and confirmed 17 files still >500 LOC including primary TASK-85 targets. - [2026-02-20T11:38:18Z] intent: run requesting-code-review pass over latest refactor series, focus on remaining maintainability/quality gaps and missing tests.
- [2026-02-20T11:38:18Z] planned files:
src/main.ts,src/main/runtime/*,src/anki-integration.ts,src/config/service.ts,src/core/services/immersion-tracker-service.ts,backlog/tasks/task-85 - Refactor-large-files-for-maintainability-and-readability.md. - [2026-02-20T11:38:18Z] assumptions: backlog MCP resource says uninitialized; use existing local
backlog/tasks/task-85 - Refactor-large-files-for-maintainability-and-readability.mdfor ticket association/context.
Files Touched
docs/subagents/agents/codex-review-refactor-cleanup-20260220T113818Z-i2ov.mddocs/subagents/INDEX.mdMakefilescripts/verify-generated-launcher.shdocs/development.mddocs/installation.mddocs/plans/2026-02-20-main-runtime-fanin-registry-plan.mdsrc/main/runtime/domains/anilist.tssrc/main/runtime/domains/jellyfin.tssrc/main/runtime/domains/overlay.tssrc/main/runtime/domains/startup.tssrc/main/runtime/domains/mpv.tssrc/main/runtime/domains/shortcuts.tssrc/main/runtime/domains/ipc.tssrc/main/runtime/domains/mining.tssrc/main/runtime/domains/index.tssrc/main/runtime/registry.tssrc/main/runtime/registry.test.tsscripts/check-main-runtime-fanin.tssrc/main.tspackage.jsondocs/file-size-budgets.mdbacklog/tasks/task-71 - Split-main.ts-into-domain-runtime-modules-round-2.mdbacklog/tasks/task-85 - Refactor-large-files-for-maintainability-and-readability.md
Assumptions
- Review scope = recent TASK-85 refactor commits on
main(mostly 2026-02-20 series touchingsrc/main.tsandsrc/main/runtime/*).
Open Questions / Blockers
- none
Next Step
- Continue reducing
src/main.tsruntime import line count (currently 105) by collapsing repeated domain import blocks into central registry destructuring and/or domain-specific runtime composer modules.