Add 16 missing members to IWorkerClient (IsReconnecting, WorkerLogReceivedEvent, PrimeFired, LastApproveTarget, Refresh/RestoreDefaultAgents, UpdateAppSettings, prime schedule CRUD, UpdateList/UpdateListConfig, all worktree ops). Switch all production consumers off the concrete WorkerClient type; only Program.cs/App host still resolves the concrete registration. Update StubWorkerClient and FakeWorkerClient to satisfy the expanded interface. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
11 lines
499 B
C#
11 lines
499 B
C#
namespace ClaudeDo.Ui.Services;
|
|
|
|
public sealed class WorkerPrimeScheduleApi : IPrimeScheduleApi
|
|
{
|
|
private readonly IWorkerClient _client;
|
|
public WorkerPrimeScheduleApi(IWorkerClient client) => _client = client;
|
|
public Task<List<PrimeScheduleDto>> ListAsync() => _client.GetPrimeSchedulesAsync();
|
|
public Task<PrimeScheduleDto?> UpsertAsync(PrimeScheduleDto dto) => _client.UpsertPrimeScheduleAsync(dto);
|
|
public Task DeleteAsync(Guid id) => _client.DeletePrimeScheduleAsync(id);
|
|
}
|