- Slim Entry.cs from ~550 to ~330 lines (thin dispatcher only) - Extract HtmlSanitizer, CommandLogger, EntryFileService from Entry.cs - Extract PythonSidecarClient from duplicated sidecar plumbing - Add IEntryFileRepository + DiskEntryFileRepository (mirrors Fragment pattern) - Move payload records to Dtos/CommandDtos.cs - Move database result records to Dtos/DatabaseDtos.cs - Register new services and repository in DI - All 70/70 smoke tests pass, no behavior changes Co-Authored-By: Warp <agent@warp.dev>
11 lines
301 B
C#
11 lines
301 B
C#
using Journal.Core.Dtos;
|
|
|
|
namespace Journal.Core.Services;
|
|
|
|
public interface IEntryFileService
|
|
{
|
|
IReadOnlyList<EntryListItem> ListEntries(string dataDirectory);
|
|
EntryLoadResult LoadEntry(string filePath);
|
|
EntrySaveResult SaveEntry(EntrySavePayload payload, string defaultDataDirectory);
|
|
}
|