@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.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: row.metadata ? JSON.parse(row.metadata) : void 0
539
+ metadata: {
540
+ ...metadata,
541
+ createdAt: row.created_at ? new Date(row.created_at) : void 0
542
+ }
539
543
  };
540
544
  });
541
545
  }