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' ;
@@ -177,14 +177,14 @@ describe('Add Memory with EPISODIC Strategy', () => {
177177 expect ( found ) . toBe ( true ) ;
178178 } ) ;
179179
180- it ( 'Step 9: agentcore.json contains EPISODIC with reflectionNamespaces ' , async ( ) => {
180+ it ( 'Step 9: agentcore.json contains EPISODIC with reflectionNamespaceTemplates ' , async ( ) => {
181181 const configPath = join ( projectDir . dir , 'agentcore' , 'agentcore.json' ) ;
182182 const raw = await readFileAsync ( configPath , 'utf-8' ) ;
183183 const config = JSON . parse ( raw ) ;
184184
185185 const memories = config . memories as {
186186 name : string ;
187- strategies : { type : string ; namespaces ?: string [ ] ; reflectionNamespaces ?: string [ ] } [ ] ;
187+ strategies : { type : string ; namespaceTemplates ?: string [ ] ; reflectionNamespaceTemplates ?: string [ ] } [ ] ;
188188 } [ ] ;
189189 expect ( memories . length ) . toBeGreaterThan ( 0 ) ;
190190
@@ -198,12 +198,12 @@ describe('Add Memory with EPISODIC Strategy', () => {
198198 expect ( types ) . toContain ( 'USER_PREFERENCE' ) ;
199199 expect ( types ) . toContain ( 'EPISODIC' ) ;
200200
201- // Verify EPISODIC has namespaces AND reflectionNamespaces
201+ // Verify EPISODIC has namespaceTemplates AND reflectionNamespaceTemplates
202202 const episodic = memory ! . strategies . find ( s => s . type === 'EPISODIC' ) ;
203203 expect ( episodic , 'EPISODIC strategy should exist' ) . toBeTruthy ( ) ;
204- expect ( episodic ! . namespaces , 'EPISODIC should have namespaces ' ) . toBeDefined ( ) ;
205- expect ( episodic ! . namespaces ! . length ) . toBeGreaterThan ( 0 ) ;
206- expect ( episodic ! . reflectionNamespaces , 'EPISODIC should have reflectionNamespaces ' ) . toBeDefined ( ) ;
207- expect ( episodic ! . reflectionNamespaces ! . length ) . toBeGreaterThan ( 0 ) ;
204+ expect ( episodic ! . namespaceTemplates , 'EPISODIC should have namespaceTemplates ' ) . toBeDefined ( ) ;
205+ expect ( episodic ! . namespaceTemplates ! . length ) . toBeGreaterThan ( 0 ) ;
206+ expect ( episodic ! . reflectionNamespaceTemplates , 'EPISODIC should have reflectionNamespaceTemplates ' ) . toBeDefined ( ) ;
207+ expect ( episodic ! . reflectionNamespaceTemplates ! . length ) . toBeGreaterThan ( 0 ) ;
208208 } ) ;
209209} ) ;
0 commit comments