77 MAX_ASSEMBLE_RECALL_CHARS ,
88} from "./basic-memory-context-engine.ts"
99
10- function makeConfig (
11- overrides ?: Partial < BasicMemoryConfig > ,
12- ) : BasicMemoryConfig {
10+ function makeConfig ( overrides ?: Partial < BasicMemoryConfig > ) : BasicMemoryConfig {
1311 return {
1412 project : "test-project" ,
1513 bmPath : "bm" ,
@@ -26,7 +24,9 @@ function makeConfig(
2624 }
2725}
2826
29- function makeMessages ( messages : Array < Record < string , unknown > > ) : AgentMessage [ ] {
27+ function makeMessages (
28+ messages : Array < Record < string , unknown > > ,
29+ ) : AgentMessage [ ] {
3030 return messages as AgentMessage [ ]
3131}
3232
@@ -61,21 +61,24 @@ describe("BasicMemoryContextEngine", () => {
6161 indexConversation : jest . fn ( ) . mockResolvedValue ( undefined ) ,
6262 writeNote : jest . fn ( ) . mockResolvedValue ( {
6363 title : "subagent-handoff-agent-test-subagent-child-1" ,
64- permalink : "agent/subagents/subagent-handoff-agent-test-subagent-child-1" ,
64+ permalink :
65+ "agent/subagents/subagent-handoff-agent-test-subagent-child-1" ,
6566 file_path :
6667 "memory/agent/subagents/subagent-handoff-agent-test-subagent-child-1.md" ,
6768 content : "" ,
6869 } ) ,
6970 editNote : jest . fn ( ) . mockResolvedValue ( {
7071 title : "subagent-handoff-agent-test-subagent-child-1" ,
71- permalink : "agent/subagents/subagent-handoff-agent-test-subagent-child-1" ,
72+ permalink :
73+ "agent/subagents/subagent-handoff-agent-test-subagent-child-1" ,
7274 file_path :
7375 "memory/agent/subagents/subagent-handoff-agent-test-subagent-child-1.md" ,
7476 operation : "append" ,
7577 } ) ,
7678 deleteNote : jest . fn ( ) . mockResolvedValue ( {
7779 title : "subagent-handoff-agent-test-subagent-child-1" ,
78- permalink : "agent/subagents/subagent-handoff-agent-test-subagent-child-1" ,
80+ permalink :
81+ "agent/subagents/subagent-handoff-agent-test-subagent-child-1" ,
7982 file_path :
8083 "memory/agent/subagents/subagent-handoff-agent-test-subagent-child-1.md" ,
8184 } ) ,
@@ -226,7 +229,9 @@ describe("BasicMemoryContextEngine", () => {
226229 expect ( first . systemPromptAddition ?. length ) . toBeLessThanOrEqual (
227230 MAX_ASSEMBLE_RECALL_CHARS ,
228231 )
229- expect ( first . systemPromptAddition ) . toContain ( "[Basic Memory recall truncated]" )
232+ expect ( first . systemPromptAddition ) . toContain (
233+ "[Basic Memory recall truncated]" ,
234+ )
230235 expect ( second . systemPromptAddition ) . toBe ( first . systemPromptAddition )
231236 } )
232237
@@ -297,7 +302,9 @@ describe("BasicMemoryContextEngine", () => {
297302 expect ( mockClient . editNote ) . toHaveBeenCalledWith (
298303 "agent/subagents/subagent-handoff-agent-test-subagent-child-1" ,
299304 "append" ,
300- expect . stringContaining ( "Durable conversation capture continues through the normal afterTurn path." ) ,
305+ expect . stringContaining (
306+ "Durable conversation capture continues through the normal afterTurn path." ,
307+ ) ,
301308 )
302309 } )
303310
0 commit comments