@@ -25,7 +25,11 @@ test("removes hidden capabilities from every generated Agent", () => {
2525 ) ;
2626 const sanitizer = normalizeSource . slice ( start ) ;
2727
28- assert . match ( sanitizer , / G E N E R A T E D _ T O O L _ I D S \. h a s \( t o o l I d \) / ) ;
28+ assert . match (
29+ sanitizer ,
30+ / c r e a t e B u i l t i n T o o l s F o r P r o v i d e r \( c l o u d P r o v i d e r \) \. m a p \( \( t o o l \) = > t o o l \. i d \) / ,
31+ ) ;
32+ assert . match ( sanitizer , / g e n e r a t e d T o o l I d s \. h a s \( t o o l I d \) / ) ;
2933 assert . match ( sanitizer , / t r a c i n g : f a l s e / ) ;
3034 assert . match ( sanitizer , / t r a c i n g E x p o r t e r s : \[ \] / ) ;
3135 assert . match ( sanitizer , / m e m o r y : \{ s h o r t T e r m : f a l s e , l o n g T e r m : f a l s e \} / ) ;
@@ -37,7 +41,7 @@ test("removes hidden capabilities from every generated Agent", () => {
3741 assert . match ( sanitizer , / k n o w l e d g e b a s e I n d e x : " " / ) ;
3842 assert . match (
3943 sanitizer ,
40- / s u b A g e n t s : d r a f t \. s u b A g e n t s \. m a p \( s a n i t i z e G e n e r a t e d D r a f t C a p a b i l i t i e s \) / ,
44+ / s u b A g e n t s : d r a f t \. s u b A g e n t s \. m a p \( \( c h i l d \) = > [ \s \S ] * ? s a n i t i z e G e n e r a t e d D r a f t C a p a b i l i t i e s \( c h i l d , c l o u d P r o v i d e r \) / ,
4145 ) ;
4246 assert . match (
4347 createSource ,
@@ -49,8 +53,14 @@ test("keeps OpenViking long-term memory when normalizing imported drafts", () =>
4953 assert . match ( normalizeSource , / " o p e n v i k i n g " / ) ;
5054} ) ;
5155
52- test ( "feeds supported generated tool ids into the checklist selection" , ( ) => {
53- assert . match ( createSource , / i t e m s = \{ C R E A T E _ B U I L T I N _ T O O L S \} / ) ;
56+ test ( "feeds provider-supported generated tool ids into the checklist selection" , ( ) => {
57+ assert . match (
58+ createSource ,
59+ / c r e a t e B u i l t i n T o o l s F o r P r o v i d e r \( c l o u d P r o v i d e r \) / ,
60+ ) ;
61+ assert . match ( createSource , / n e w S e t \( c r e a t e B u i l t i n T o o l s \. m a p \( \( t o o l \) = > t o o l \. i d \) \) / ) ;
62+ assert . match ( createSource , / i f \( ! c r e a t e B u i l t i n T o o l I d s \. h a s \( i d \) \) r e t u r n / ) ;
63+ assert . match ( createSource , / i t e m s = \{ c r e a t e B u i l t i n T o o l s \} / ) ;
5464 assert . match ( createSource , / s e l e c t e d = \{ b u i l t i n T o o l s \} / ) ;
5565} ) ;
5666
0 commit comments