- 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>
15 lines
508 B
C#
15 lines
508 B
C#
namespace Journal.Core.Repositories;
|
|
|
|
public interface IEntryFileRepository
|
|
{
|
|
IReadOnlyList<string> ListMarkdownFiles(string dataDirectory);
|
|
string ReadFile(string filePath);
|
|
void WriteFile(string filePath, string content);
|
|
void AppendFile(string filePath, string content);
|
|
bool FileExists(string filePath);
|
|
string GetFullPath(string filePath);
|
|
string GetFileName(string filePath);
|
|
string GetFileNameWithoutExtension(string filePath);
|
|
void EnsureDirectory(string path);
|
|
}
|