refactor(db): strictly type PiSessionEntryData in prisma-json-types and clean up casts

This commit is contained in:
yiling
2026-07-28 12:55:38 +08:00
parent 56421cd562
commit ff113906d7
4 changed files with 14 additions and 14 deletions
+4 -4
View File
@@ -3,10 +3,10 @@ export {}
declare global {
// eslint-disable-next-line @typescript-eslint/no-namespace
namespace PrismaJson {
// ----------------------------------------------------------------------
// Agent Session Entry
// ----------------------------------------------------------------------
export type PiSessionEntryData = Record<string, unknown>
export type PiSessionEntryData = Omit<
import('@earendil-works/pi-agent-core').SessionTreeEntry,
'id' | 'type' | 'parentId' | 'timestamp'
>
// ----------------------------------------------------------------------
// User Agent Settings