@voltagent/libsql 1.0.12 → 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.mjs
CHANGED
|
@@ -531,11 +531,15 @@ var LibSQLMemoryAdapter = class {
|
|
|
531
531
|
} else {
|
|
532
532
|
parts = [];
|
|
533
533
|
}
|
|
534
|
+
const metadata = row.metadata ? JSON.parse(row.metadata) : {};
|
|
534
535
|
return {
|
|
535
536
|
id: row.message_id,
|
|
536
537
|
role: row.role,
|
|
537
538
|
parts,
|
|
538
|
-
metadata:
|
|
539
|
+
metadata: {
|
|
540
|
+
...metadata,
|
|
541
|
+
createdAt: row.created_at ? new Date(row.created_at) : void 0
|
|
542
|
+
}
|
|
539
543
|
};
|
|
540
544
|
});
|
|
541
545
|
}
|