mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-30 04:44:28 +00:00
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:
@@ -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
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user