feat(core): add session metadata support (#23068)

Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
This commit is contained in:
Shantur Rathore 2026-05-30 22:58:11 +01:00 committed by GitHub
commit ddc30cd151
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 1707 additions and 1 deletions

View file

@ -33,6 +33,7 @@ export const SessionTable = sqliteTable(
summary_deletions: integer(),
summary_files: integer(),
summary_diffs: text({ mode: "json" }).$type<Snapshot.FileDiff[]>(),
metadata: text({ mode: "json" }).$type<Record<string, unknown>>(),
cost: real().notNull().default(0),
tokens_input: integer().notNull().default(0),
tokens_output: integer().notNull().default(0),