refactor: migrate from bun to node types and fix discrepancies

This commit is contained in:
mitchell 2026-06-08 20:17:22 -04:00
parent a03e6e94a9
commit 21dac683a2
7 changed files with 18 additions and 31 deletions

View file

@ -17,8 +17,8 @@ export class Conversation implements IConversation {
async load() {
try {
const text = await fs.readFile(convoPath);
const convo: IConversation = JSON.parse(text.toString("utf8"));
const text = await fs.readFile(convoPath, "utf8");
const convo: IConversation = JSON.parse(text);
this.model = convo.model;
this.messages = convo.messages;
} catch {