@voltagent/libsql 1.0.11 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -95,7 +95,9 @@ declare class LibSQLMemoryAdapter implements StorageAdapter {
|
|
|
95
95
|
/**
|
|
96
96
|
* Get messages with optional filtering
|
|
97
97
|
*/
|
|
98
|
-
getMessages(userId: string, conversationId: string, options?: GetMessagesOptions): Promise<UIMessage
|
|
98
|
+
getMessages(userId: string, conversationId: string, options?: GetMessagesOptions): Promise<UIMessage<{
|
|
99
|
+
createdAt: Date;
|
|
100
|
+
}>[]>;
|
|
99
101
|
getConversationSteps(userId: string, conversationId: string, options?: GetConversationStepsOptions): Promise<ConversationStepRecord[]>;
|
|
100
102
|
/**
|
|
101
103
|
* Clear messages for a user
|
package/dist/index.d.ts
CHANGED
|
@@ -95,7 +95,9 @@ declare class LibSQLMemoryAdapter implements StorageAdapter {
|
|
|
95
95
|
/**
|
|
96
96
|
* Get messages with optional filtering
|
|
97
97
|
*/
|
|
98
|
-
getMessages(userId: string, conversationId: string, options?: GetMessagesOptions): Promise<UIMessage
|
|
98
|
+
getMessages(userId: string, conversationId: string, options?: GetMessagesOptions): Promise<UIMessage<{
|
|
99
|
+
createdAt: Date;
|
|
100
|
+
}>[]>;
|
|
99
101
|
getConversationSteps(userId: string, conversationId: string, options?: GetConversationStepsOptions): Promise<ConversationStepRecord[]>;
|
|
100
102
|
/**
|
|
101
103
|
* Clear messages for a user
|
package/dist/index.js
CHANGED
|
@@ -563,11 +563,15 @@ var LibSQLMemoryAdapter = class {
|
|
|
563
563
|
} else {
|
|
564
564
|
parts = [];
|
|
565
565
|
}
|
|
566
|
+
const metadata = row.metadata ? JSON.parse(row.metadata) : {};
|
|
566
567
|
return {
|
|
567
568
|
id: row.message_id,
|
|
568
569
|
role: row.role,
|
|
569
570
|
parts,
|
|
570
|
-
metadata:
|
|
571
|
+
metadata: {
|
|
572
|
+
...metadata,
|
|
573
|
+
createdAt: row.created_at ? new Date(row.created_at) : void 0
|
|
574
|
+
}
|
|
571
575
|
};
|
|
572
576
|
});
|
|
573
577
|
}
|