refactor: prebuild additional lifecycle and mpv runtime deps

This commit is contained in:
2026-02-20 01:52:17 -08:00
parent 65878e0d8a
commit 062677dcc5
3 changed files with 15 additions and 6 deletions

View File

@@ -6,7 +6,7 @@ Read first. Keep concise.
| ------------ | -------------- | ---------------------------------------------------- | --------- | ------------------------------------- | ---------------------- | | ------------ | -------------- | ---------------------------------------------------- | --------- | ------------------------------------- | ---------------------- |
| `codex-generate-minecard-image-20260220T112900Z-vsxr` | `codex-generate-minecard-image` | `Generate media fallbacks (GIF) from assets/minecard.webm and wire README/docs fallback markup` | `done` | `docs/subagents/agents/codex-generate-minecard-image-20260220T112900Z-vsxr.md` | `2026-02-20T11:35:30Z` | | `codex-generate-minecard-image-20260220T112900Z-vsxr` | `codex-generate-minecard-image` | `Generate media fallbacks (GIF) from assets/minecard.webm and wire README/docs fallback markup` | `done` | `docs/subagents/agents/codex-generate-minecard-image-20260220T112900Z-vsxr.md` | `2026-02-20T11:35:30Z` |
| `codex-main` | `planner-exec` | `Fix frequency/N+1 regression in plugin --start flow` | `in_progress` | `docs/subagents/agents/codex-main.md` | `2026-02-19T19:36:46Z` | | `codex-main` | `planner-exec` | `Fix frequency/N+1 regression in plugin --start flow` | `in_progress` | `docs/subagents/agents/codex-main.md` | `2026-02-19T19:36:46Z` |
| `codex-task85-20260219T233711Z-46hc` | `codex-task85` | `Resume TASK-85 maintainability refactor from latest handoff point` | `in_progress` | `docs/subagents/agents/codex-task85-20260219T233711Z-46hc.md` | `2026-02-20T09:51:02Z` | | `codex-task85-20260219T233711Z-46hc` | `codex-task85` | `Resume TASK-85 maintainability refactor from latest handoff point` | `in_progress` | `docs/subagents/agents/codex-task85-20260219T233711Z-46hc.md` | `2026-02-20T09:51:57Z` |
| `codex-config-validation-20260219T172015Z-iiyf` | `codex-config-validation` | `Find root cause of config validation error for ~/.config/SubMiner/config.jsonc` | `completed` | `docs/subagents/agents/codex-config-validation-20260219T172015Z-iiyf.md` | `2026-02-19T17:26:17Z` | | `codex-config-validation-20260219T172015Z-iiyf` | `codex-config-validation` | `Find root cause of config validation error for ~/.config/SubMiner/config.jsonc` | `completed` | `docs/subagents/agents/codex-config-validation-20260219T172015Z-iiyf.md` | `2026-02-19T17:26:17Z` |
| `codex-task85-20260219T233711Z-46hc` | `codex-task85` | `Resume TASK-85 maintainability refactor from latest handoff point` | `in_progress` | `docs/subagents/agents/codex-task85-20260219T233711Z-46hc.md` | `2026-02-20T02:56:34Z` | | `codex-task85-20260219T233711Z-46hc` | `codex-task85` | `Resume TASK-85 maintainability refactor from latest handoff point` | `in_progress` | `docs/subagents/agents/codex-task85-20260219T233711Z-46hc.md` | `2026-02-20T02:56:34Z` |
| `codex-anilist-deeplink-20260219T233926Z` | `anilist-deeplink` | `Fix external subminer:// AniList callback handling from browser` | `done` | `docs/subagents/agents/codex-anilist-deeplink-20260219T233926Z.md` | `2026-02-19T23:59:21Z` | | `codex-anilist-deeplink-20260219T233926Z` | `anilist-deeplink` | `Fix external subminer:// AniList callback handling from browser` | `done` | `docs/subagents/agents/codex-anilist-deeplink-20260219T233926Z.md` | `2026-02-19T23:59:21Z` |

View File

@@ -9,6 +9,9 @@
## Current Work (newest first) ## Current Work (newest first)
- [2026-02-20T09:51:57Z] progress: completed another 2-slice safe batch (10 normalized sites) by prebuilding finalized deps for stop/run Jellyfin command handlers, app lifecycle runner, initial-args handler, MPV event binding, and numeric/overlay-shortcut related setup.
- [2026-02-20T09:51:57Z] test: `bun run build` pass (expected macOS helper Swift cache fallback) + targeted suites pass for `jellyfin-command-dispatch*`, `jellyfin-remote-session-lifecycle`, `app-lifecycle-*`, `initial-args*`, `mpv-main-event-*`, `numeric-shortcut-*`, `overlay-shortcuts-lifecycle*`, and `anki-actions` (39/39).
- [2026-02-20T09:51:57Z] scope: committing only `src/main.ts` + subagent bookkeeping files; unrelated workspace noise still excluded.
- [2026-02-20T09:51:02Z] progress: completed 2 more safe slices (10 normalized sites) in `src/main.ts` by prebuilding finalized deps for numeric shortcut pending-session handlers and overlay-shortcuts/Anki action handler setup. - [2026-02-20T09:51:02Z] progress: completed 2 more safe slices (10 normalized sites) in `src/main.ts` by prebuilding finalized deps for numeric shortcut pending-session handlers and overlay-shortcuts/Anki action handler setup.
- [2026-02-20T09:51:02Z] test: `bun run build` pass (expected macOS helper Swift cache fallback) + targeted suites pass for `numeric-shortcut-*`, `overlay-shortcuts-lifecycle*`, and `anki-actions` (17/17). - [2026-02-20T09:51:02Z] test: `bun run build` pass (expected macOS helper Swift cache fallback) + targeted suites pass for `numeric-shortcut-*`, `overlay-shortcuts-lifecycle*`, and `anki-actions` (17/17).
- [2026-02-20T09:51:02Z] scope: commit includes only `src/main.ts` + subagent bookkeeping files; unrelated workspace deltas still excluded. - [2026-02-20T09:51:02Z] scope: commit includes only `src/main.ts` + subagent bookkeeping files; unrelated workspace deltas still excluded.

View File

@@ -1497,8 +1497,10 @@ const buildStopJellyfinRemoteSessionMainDepsHandler =
activeJellyfinRemotePlayback = null; activeJellyfinRemotePlayback = null;
}, },
}); });
const stopJellyfinRemoteSessionMainDeps =
buildStopJellyfinRemoteSessionMainDepsHandler();
const stopJellyfinRemoteSession = createStopJellyfinRemoteSessionHandler( const stopJellyfinRemoteSession = createStopJellyfinRemoteSessionHandler(
buildStopJellyfinRemoteSessionMainDepsHandler(), stopJellyfinRemoteSessionMainDeps,
); );
const buildRunJellyfinCommandMainDepsHandler = createBuildRunJellyfinCommandMainDepsHandler({ const buildRunJellyfinCommandMainDepsHandler = createBuildRunJellyfinCommandMainDepsHandler({
@@ -1510,8 +1512,9 @@ const buildRunJellyfinCommandMainDepsHandler = createBuildRunJellyfinCommandMain
handleListCommands: (params) => handleJellyfinListCommands(params), handleListCommands: (params) => handleJellyfinListCommands(params),
handlePlayCommand: (params) => handleJellyfinPlayCommand(params), handlePlayCommand: (params) => handleJellyfinPlayCommand(params),
}); });
const runJellyfinCommandMainDeps = buildRunJellyfinCommandMainDepsHandler();
const runJellyfinCommand = createRunJellyfinCommandHandler( const runJellyfinCommand = createRunJellyfinCommandHandler(
buildRunJellyfinCommandMainDepsHandler(), runJellyfinCommandMainDeps,
); );
const buildNotifyAnilistSetupMainDepsHandler = createBuildNotifyAnilistSetupMainDepsHandler({ const buildNotifyAnilistSetupMainDepsHandler = createBuildNotifyAnilistSetupMainDepsHandler({
@@ -2199,8 +2202,9 @@ const buildAppLifecycleRuntimeRunnerMainDepsHandler =
restoreWindowsOnActivate: () => restoreWindowsOnActivateHandler(), restoreWindowsOnActivate: () => restoreWindowsOnActivateHandler(),
shouldQuitOnWindowAllClosed: () => !appState.backgroundMode, shouldQuitOnWindowAllClosed: () => !appState.backgroundMode,
}); });
const appLifecycleRuntimeRunnerMainDeps = buildAppLifecycleRuntimeRunnerMainDepsHandler();
const appLifecycleRuntimeRunner = createAppLifecycleRuntimeRunner( const appLifecycleRuntimeRunner = createAppLifecycleRuntimeRunner(
buildAppLifecycleRuntimeRunnerMainDepsHandler(), appLifecycleRuntimeRunnerMainDeps,
); );
const buildStartupBootstrapMainDepsHandler = createBuildStartupBootstrapMainDepsHandler({ const buildStartupBootstrapMainDepsHandler = createBuildStartupBootstrapMainDepsHandler({
@@ -2276,8 +2280,9 @@ const buildHandleInitialArgsMainDepsHandler = createBuildHandleInitialArgsMainDe
logInfo: (message) => logger.info(message), logInfo: (message) => logger.info(message),
handleCliCommand: (args, source) => handleCliCommand(args, source), handleCliCommand: (args, source) => handleCliCommand(args, source),
}); });
const handleInitialArgsMainDeps = buildHandleInitialArgsMainDepsHandler();
const handleInitialArgsRuntimeHandler = createHandleInitialArgsHandler( const handleInitialArgsRuntimeHandler = createHandleInitialArgsHandler(
buildHandleInitialArgsMainDepsHandler(), handleInitialArgsMainDeps,
); );
function handleInitialArgs(): void { function handleInitialArgs(): void {
@@ -2332,8 +2337,9 @@ const buildBindMpvMainEventHandlersMainDepsHandler =
updateMpvSubtitleRenderMetrics(patch as Partial<MpvSubtitleRenderMetrics>); updateMpvSubtitleRenderMetrics(patch as Partial<MpvSubtitleRenderMetrics>);
}, },
}); });
const bindMpvMainEventHandlersMainDeps = buildBindMpvMainEventHandlersMainDepsHandler();
const bindMpvClientEventHandlers = createBindMpvMainEventHandlersHandler( const bindMpvClientEventHandlers = createBindMpvMainEventHandlersHandler(
buildBindMpvMainEventHandlersMainDepsHandler(), bindMpvMainEventHandlersMainDeps,
); );
const buildMpvClientRuntimeServiceFactoryMainDepsHandler = const buildMpvClientRuntimeServiceFactoryMainDepsHandler =