Skip to content

Commit 8c06b4f

Browse files
committed
feat(core): add session metadata support
Persist session metadata in the session store and expose it across the session APIs and SDK so clients can round-trip metadata during create, get, update, list, and fork operations. Add a JSON metadata column to the session table, thread metadata through the session model/projectors, and normalize empty metadata responses to {}. Support full metadata replacement on session update, add copyMetadata to session forks with default copy behavior, regenerate the session SDK surface, and cover the behavior with server/session tests plus a migration for existing databases.
1 parent c57c531 commit 8c06b4f

11 files changed

Lines changed: 1684 additions & 3 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALTER TABLE `session` ADD `metadata` text;

0 commit comments

Comments
 (0)