chore(worker): wire GitService and WorkerConfig into PlanningSessionManager DI

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
mika kuns
2026-04-24 11:52:20 +02:00
parent 6800852ae4
commit 9beda55681

View File

@@ -59,6 +59,8 @@ var planningSessionsDir = Path.Combine(
builder.Services.AddSingleton(sp => builder.Services.AddSingleton(sp =>
new PlanningSessionManager( new PlanningSessionManager(
sp.GetRequiredService<IDbContextFactory<ClaudeDoDbContext>>(), sp.GetRequiredService<IDbContextFactory<ClaudeDoDbContext>>(),
sp.GetRequiredService<GitService>(),
cfg,
planningSessionsDir)); planningSessionsDir));
builder.Services.AddSingleton<IPlanningTerminalLauncher>(sp => builder.Services.AddSingleton<IPlanningTerminalLauncher>(sp =>
new WindowsTerminalPlanningLauncher("wt.exe", cfg.ClaudeBin)); new WindowsTerminalPlanningLauncher("wt.exe", cfg.ClaudeBin));