feat(agent): refactor message context into unified shumai_message (#365)

* feat(agent): refactor message context into unified shumai_message

* fix(agent): persist custom_message entry type in DatabaseSessionStorage and handle message mapping defensively

* fix(agent): pass clean prompt to harness and replace optimistic messages on shumai_message stream

* fix(agent): align asset context DTO contract, sync comment attachments, and fix session stats
This commit is contained in:
Yiling-J
2026-08-30 15:25:13 +08:00
committed by GitHub
parent b2ec012e10
commit 86032539ed
27 changed files with 1437 additions and 594 deletions
+3
View File
@@ -8,6 +8,8 @@ declare global {
'id' | 'type' | 'parentId' | 'timestamp'
>
export type ShumaiMessageContext = import('@shumai/dtos').ShumaiMessageContext
// ----------------------------------------------------------------------
// User Agent Settings
// ----------------------------------------------------------------------
@@ -303,6 +305,7 @@ declare global {
assetIds?: string[]
isNewChat?: boolean
hasAssetChanged?: boolean
context?: import('@shumai/dtos').ShumaiMessageContext
}
// ----------------------------------------------------------------------