@@ -412,7 +412,16 @@ function projectViewElement(overrides: Partial<ComponentProps<typeof ProjectView
412412 project = { project ( ) }
413413 routeFileName = { null }
414414 config = { config }
415- agents = { [ { id : 'amr' , name : 'amr' , available : true } ] as unknown as AgentInfo [ ] }
415+ agents = { [ {
416+ id : 'amr' ,
417+ name : 'amr' ,
418+ available : true ,
419+ models : [ {
420+ id : 'deepseek-v4-flash' ,
421+ label : 'DeepSeek V4 Flash' ,
422+ default : true ,
423+ } ] ,
424+ } ] as unknown as AgentInfo [ ] }
416425 skills = { [ ] as SkillSummary [ ] }
417426 designTemplates = { [ ] as SkillSummary [ ] }
418427 designSystems = { [ ] as DesignSystemSummary [ ] }
@@ -502,7 +511,7 @@ describe('a Home auto-send identifies its caller before the project scope resolv
502511 workspaceType : 'team' ,
503512 workspaceId : TEAM_WORKSPACE ,
504513 workspaceMemberId : TEAM_MEMBER ,
505- } ) ;
514+ } , 'deepseek-v4-flash' ) ;
506515 const options = mockedStreamViaDaemon . mock . calls [ 0 ] ?. [ 0 ] ;
507516 expect (
508517 options ?. workspaceContext ,
@@ -997,7 +1006,7 @@ describe('a Home auto-send identifies its caller before the project scope resolv
9971006 workspaceType : 'team' ,
9981007 workspaceId : TEAM_WORKSPACE ,
9991008 workspaceMemberId : TEAM_MEMBER ,
1000- } ) ;
1009+ } , 'deepseek-v4-flash' ) ;
10011010 expect ( mockedStreamViaDaemon . mock . calls [ 0 ] ?. [ 0 ] . workspaceContext ) . toEqual (
10021011 CALLER_CONTEXT ,
10031012 ) ;
@@ -1018,7 +1027,16 @@ describe('a Home auto-send identifies its caller before the project scope resolv
10181027
10191028 const stableOverrides : Partial < ComponentProps < typeof ProjectView > > = {
10201029 project : project ( ) ,
1021- agents : [ { id : 'amr' , name : 'amr' , available : true } ] as unknown as AgentInfo [ ] ,
1030+ agents : [ {
1031+ id : 'amr' ,
1032+ name : 'amr' ,
1033+ available : true ,
1034+ models : [ {
1035+ id : 'deepseek-v4-flash' ,
1036+ label : 'DeepSeek V4 Flash' ,
1037+ default : true ,
1038+ } ] ,
1039+ } ] as unknown as AgentInfo [ ] ,
10221040 skills : [ ] as SkillSummary [ ] ,
10231041 designTemplates : [ ] as SkillSummary [ ] ,
10241042 designSystems : [ ] as DesignSystemSummary [ ] ,
@@ -1080,7 +1098,7 @@ describe('a Home auto-send identifies its caller before the project scope resolv
10801098 workspaceType : 'personal' ,
10811099 workspaceId : PERSONAL_CONTEXT . workspaceId ,
10821100 workspaceMemberId : PERSONAL_CONTEXT . workspaceMemberId ,
1083- } ) ;
1101+ } , 'deepseek-v4-flash' ) ;
10841102 } ) ;
10851103 await waitFor ( ( ) => expect ( mockedStreamViaDaemon ) . toHaveBeenCalled ( ) ) ;
10861104 } ) ;
@@ -1109,7 +1127,7 @@ describe('a Home auto-send identifies its caller before the project scope resolv
11091127 workspaceType : 'personal' ,
11101128 workspaceId : PERSONAL_CONTEXT . workspaceId ,
11111129 workspaceMemberId : PERSONAL_CONTEXT . workspaceMemberId ,
1112- } ) ;
1130+ } , 'deepseek-v4-flash' ) ;
11131131 } ) ;
11141132 await waitFor ( ( ) => expect ( mockedStreamViaDaemon ) . toHaveBeenCalled ( ) ) ;
11151133 expect ( mockedStreamViaDaemon . mock . calls [ 0 ] ?. [ 0 ] . workspaceContext ) . toEqual (
@@ -1205,7 +1223,16 @@ describe('a Home auto-send observes a project billing scope that settles after m
12051223 // only dependency allowed to change in this regression.
12061224 const stableOverrides : Partial < ComponentProps < typeof ProjectView > > = {
12071225 project : project ( ) ,
1208- agents : [ { id : 'amr' , name : 'amr' , available : true } ] as unknown as AgentInfo [ ] ,
1226+ agents : [ {
1227+ id : 'amr' ,
1228+ name : 'amr' ,
1229+ available : true ,
1230+ models : [ {
1231+ id : 'deepseek-v4-flash' ,
1232+ label : 'DeepSeek V4 Flash' ,
1233+ default : true ,
1234+ } ] ,
1235+ } ] as unknown as AgentInfo [ ] ,
12091236 skills : [ ] as SkillSummary [ ] ,
12101237 designTemplates : [ ] as SkillSummary [ ] ,
12111238 designSystems : [ ] as DesignSystemSummary [ ] ,
@@ -1249,7 +1276,7 @@ describe('a Home auto-send observes a project billing scope that settles after m
12491276 workspaceType : 'team' ,
12501277 workspaceId : TEAM_WORKSPACE ,
12511278 workspaceMemberId : TEAM_MEMBER ,
1252- } ) ;
1279+ } , 'deepseek-v4-flash' ) ;
12531280 } ) ;
12541281 await waitFor ( ( ) => expect ( mockedStreamViaDaemon ) . toHaveBeenCalled ( ) ) ;
12551282 } ) ;
0 commit comments