feat(worker): report activity models and reader interface

This commit is contained in:
mika kuns
2026-06-03 09:35:49 +02:00
parent 992fbf0763
commit 4cb7ad8dfa
2 changed files with 24 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
namespace ClaudeDo.Worker.Report.Interfaces;
public interface IClaudeHistoryReader
{
Task<IReadOnlyList<RepoActivity>> ReadAsync(
DateOnly start,
DateOnly end,
IReadOnlyList<string> excludedPrefixes,
CancellationToken ct = default);
}

View File

@@ -0,0 +1,14 @@
namespace ClaudeDo.Worker.Report;
public sealed class DayActivity
{
public DateOnly Date { get; init; }
public List<string> Prompts { get; } = new();
public List<string> Summaries { get; } = new();
}
public sealed class RepoActivity
{
public required string RepoPath { get; init; }
public List<DayActivity> Days { get; } = new();
}