33 *
44 * Drives the "Add Memory" wizard through the TUI to verify that when a user
55 * selects the EPISODIC strategy, it is correctly persisted in agentcore.json
6- * with both namespaces and reflectionNamespaces .
6+ * with both namespaceTemplates and reflectionNamespaceTemplates .
77 *
88 * Exercises:
99 * - Navigation from HelpScreen -> Add Resource -> Memory
1010 * - Memory name input
1111 * - Expiry selection (default 30 days)
1212 * - Strategy multi-select including EPISODIC
1313 * - Confirm review screen
14- * - Verification that agentcore.json contains EPISODIC with reflectionNamespaces
14+ * - Verification that agentcore.json contains EPISODIC with reflectionNamespaceTemplates
1515 */
1616import { TuiSession , WaitForTimeoutError } from '../../src/tui-harness/index.js' ;
1717import { createMinimalProjectDir } from './helpers.js' ;
@@ -176,14 +176,14 @@ describe('Add Memory with EPISODIC Strategy', () => {
176176 expect ( found ) . toBe ( true ) ;
177177 } ) ;
178178
179- it ( 'Step 9: agentcore.json contains EPISODIC with reflectionNamespaces ' , async ( ) => {
179+ it ( 'Step 9: agentcore.json contains EPISODIC with reflectionNamespaceTemplates ' , async ( ) => {
180180 const configPath = join ( projectDir . dir , 'agentcore' , 'agentcore.json' ) ;
181181 const raw = await readFileAsync ( configPath , 'utf-8' ) ;
182182 const config = JSON . parse ( raw ) ;
183183
184184 const memories = config . memories as {
185185 name : string ;
186- strategies : { type : string ; namespaces ?: string [ ] ; reflectionNamespaces ?: string [ ] } [ ] ;
186+ strategies : { type : string ; namespaceTemplates ?: string [ ] ; reflectionNamespaceTemplates ?: string [ ] } [ ] ;
187187 } [ ] ;
188188 expect ( memories . length ) . toBeGreaterThan ( 0 ) ;
189189
@@ -197,12 +197,12 @@ describe('Add Memory with EPISODIC Strategy', () => {
197197 expect ( types ) . toContain ( 'USER_PREFERENCE' ) ;
198198 expect ( types ) . toContain ( 'EPISODIC' ) ;
199199
200- // Verify EPISODIC has namespaces AND reflectionNamespaces
200+ // Verify EPISODIC has namespaceTemplates AND reflectionNamespaceTemplates
201201 const episodic = memory ! . strategies . find ( s => s . type === 'EPISODIC' ) ;
202202 expect ( episodic , 'EPISODIC strategy should exist' ) . toBeTruthy ( ) ;
203- expect ( episodic ! . namespaces , 'EPISODIC should have namespaces ' ) . toBeDefined ( ) ;
204- expect ( episodic ! . namespaces ! . length ) . toBeGreaterThan ( 0 ) ;
205- expect ( episodic ! . reflectionNamespaces , 'EPISODIC should have reflectionNamespaces ' ) . toBeDefined ( ) ;
206- expect ( episodic ! . reflectionNamespaces ! . length ) . toBeGreaterThan ( 0 ) ;
203+ expect ( episodic ! . namespaceTemplates , 'EPISODIC should have namespaceTemplates ' ) . toBeDefined ( ) ;
204+ expect ( episodic ! . namespaceTemplates ! . length ) . toBeGreaterThan ( 0 ) ;
205+ expect ( episodic ! . reflectionNamespaceTemplates , 'EPISODIC should have reflectionNamespaceTemplates ' ) . toBeDefined ( ) ;
206+ expect ( episodic ! . reflectionNamespaceTemplates ! . length ) . toBeGreaterThan ( 0 ) ;
207207 } ) ;
208208} ) ;
0 commit comments