feat(worker): resolve and seed session skills before each run

This commit is contained in:
Mika Kuns
2026-07-23 16:47:14 +02:00
committed by mika kuns
parent dea2b7db8b
commit 4626481359
17 changed files with 546 additions and 13 deletions
@@ -0,0 +1,18 @@
using System.Collections.Concurrent;
using ClaudeDo.Worker.Skills;
namespace ClaudeDo.Worker.Tests.Infrastructure;
public sealed class FakeSessionSkillSeeder : ISessionSkillSeeder
{
public int CallCount;
public readonly record struct Call(string WorkingDir, IReadOnlyList<string> SkillNames, bool IsWorktree);
public readonly ConcurrentQueue<Call> Calls = new();
public Task SeedAsync(string workingDir, IReadOnlyList<string> skillNames, bool isWorktree, CancellationToken ct)
{
Interlocked.Increment(ref CallCount);
Calls.Enqueue(new Call(workingDir, skillNames, isWorktree));
return Task.CompletedTask;
}
}