@@ -910,8 +910,8 @@ export function createDreamScheduler({ onRun, thresholdCount = 10, thresholdChar
910910 maxTokens : config . dreamMaxTokens ?? 4096 ,
911911 ...( withEffort && effort ? { reasoningEffort : effort } : { } ) ,
912912 messages : [
913- { role : "system" , content : [ { type : "text" , text : consolidationPrompt } ] } ,
914- { role : "user" , content : [ { type : "text" , text : listText } ] }
913+ { role : "system" , content : [ { type : "text" , text : consolidationPrompt } ] , source : { kind : "plugin" , plugin : "dsh-mneme" } } ,
914+ { role : "user" , content : [ { type : "text" , text : listText } ] , source : { kind : "plugin" , plugin : "dsh-mneme" } }
915915 ]
916916 } , reportUsage , ( reason ) => { streamFailure = describeStreamFailure ( reason ) ; } ) ) ;
917917 } ;
@@ -1130,8 +1130,8 @@ export function createDreamScheduler({ onRun, thresholdCount = 10, thresholdChar
11301130 maxTokens : config . dreamMaxTokens ?? 2048 ,
11311131 ...( withEffort && effort ? { reasoningEffort : effort } : { } ) ,
11321132 messages : [
1133- { role : "system" , content : [ { type : "text" , text : STR . prompts . dreamSummary [ language ] } ] } ,
1134- { role : "user" , content : [ { type : "text" , text : service . all ( ) . filter ( ( m ) => ! m . archived && m . type !== "summary" ) . map ( ( m ) => `- ${ m . title } : ${ m . content } ` ) . join ( "\n" ) } ] }
1133+ { role : "system" , content : [ { type : "text" , text : STR . prompts . dreamSummary [ language ] } ] , source : { kind : "plugin" , plugin : "dsh-mneme" } } ,
1134+ { role : "user" , content : [ { type : "text" , text : service . all ( ) . filter ( ( m ) => ! m . archived && m . type !== "summary" ) . map ( ( m ) => `- ${ m . title } : ${ m . content } ` ) . join ( "\n" ) } ] , source : { kind : "plugin" , plugin : "dsh-mneme" } }
11351135 ]
11361136 } , reportUsage , ( reason ) => { summaryStreamFailure = describeStreamFailure ( reason ) ; } ) ) ;
11371137 } ;
0 commit comments