upgrade ai sdk to v5

This commit is contained in:
Avraham Sakal
2025-08-15 16:27:25 -04:00
parent 3aa252e248
commit 341cf5bff1
10 changed files with 157 additions and 86 deletions
+3 -2
View File
@@ -1,5 +1,6 @@
import { Low } from "lowdb";
import { JSONFile } from "lowdb/node";
import type { CommittedMessage } from "../types";
export type Conversation = {
id: string;
@@ -27,7 +28,7 @@ export type FactTrigger = {
type DB = {
conversations: Array<Conversation>;
messages: Array<{
messages: Array</*{
id: string;
conversationId: string;
content: string;
@@ -35,7 +36,7 @@ type DB = {
index: number;
createdAt: string;
runningSummary?: string;
}>;
}*/ CommittedMessage>;
facts: Array<Fact>;
factTriggers: Array<FactTrigger>;
};