feat(worker): PlanningSessionManager.StartAsync

Add PlanningSessionFiles, PlanningSessionStartContext/ResumeContext DTOs,
PlanningSessionManager.StartAsync (file scaffolding + status transition),
and integration tests. Also fix migration discovery by adding [DbContext]
attribute to all migration classes and switch DbFixture to EnsureCreated.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
mika kuns
2026-04-23 20:33:21 +02:00
parent b32621a4e5
commit b6bec1e63c
10 changed files with 277 additions and 4 deletions

View File

@@ -10,9 +10,9 @@ public sealed class DbFixture : IDisposable
public DbFixture()
{
DbPath = Path.Combine(Path.GetTempPath(), $"claudedo_test_{Guid.NewGuid():N}.db");
// Apply migrations so the schema is created.
// EnsureCreated uses the current model directly — no Designer.cs needed.
using var ctx = CreateContext();
ctx.Database.Migrate();
ctx.Database.EnsureCreated();
}
public ClaudeDoDbContext CreateContext()