refactor: centralize common strings, paths, and default values into a new Constants class.
This commit is contained in:
@@ -10,12 +10,11 @@ namespace Toak.Core;
|
||||
|
||||
public class HistoryManager : IHistoryManager
|
||||
{
|
||||
private readonly string HistoryDir = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "toak");
|
||||
private readonly string HistoryFile;
|
||||
private readonly string HistoryDir = Constants.Paths.AppDataDir;
|
||||
private readonly string HistoryFile = Constants.Paths.HistoryFile;
|
||||
|
||||
public HistoryManager()
|
||||
{
|
||||
HistoryFile = Path.Combine(HistoryDir, "history.jsonl");
|
||||
}
|
||||
|
||||
public void SaveEntry(string rawTranscript, string refinedText, string? skillName, long durationMs)
|
||||
|
||||
Reference in New Issue
Block a user