@@ -9,7 +9,7 @@ describe("createBuiltinAgents with model overrides", () => {
99 // #given - no overrides, using systemDefaultModel
1010
1111 // #when
12- const agents = await createBuiltinAgents ( [ ] , { } , undefined , TEST_DEFAULT_MODEL )
12+ const agents = await createBuiltinAgents ( [ ] , { } , undefined , TEST_DEFAULT_MODEL , undefined , undefined , [ ] , undefined , undefined )
1313
1414 // #then
1515 expect ( agents . sisyphus . model ) . toBe ( "anthropic/claude-opus-4-5" )
@@ -24,7 +24,7 @@ describe("createBuiltinAgents with model overrides", () => {
2424 }
2525
2626 // #when
27- const agents = await createBuiltinAgents ( [ ] , overrides , undefined , TEST_DEFAULT_MODEL )
27+ const agents = await createBuiltinAgents ( [ ] , overrides , undefined , TEST_DEFAULT_MODEL , undefined , undefined , [ ] , undefined , undefined )
2828
2929 // #then
3030 expect ( agents . sisyphus . model ) . toBe ( "github-copilot/gpt-5.2" )
@@ -37,7 +37,7 @@ describe("createBuiltinAgents with model overrides", () => {
3737 const systemDefaultModel = "anthropic/claude-opus-4-5"
3838
3939 // #when
40- const agents = await createBuiltinAgents ( [ ] , { } , undefined , systemDefaultModel )
40+ const agents = await createBuiltinAgents ( [ ] , { } , undefined , systemDefaultModel , undefined , undefined , [ ] , undefined , undefined )
4141
4242 // #then - falls back to system default when no availability match
4343 expect ( agents . sisyphus . model ) . toBe ( "anthropic/claude-opus-4-5" )
@@ -49,7 +49,7 @@ describe("createBuiltinAgents with model overrides", () => {
4949 // #given - no available models simulates CI without model cache
5050
5151 // #when
52- const agents = await createBuiltinAgents ( [ ] , { } , undefined , TEST_DEFAULT_MODEL )
52+ const agents = await createBuiltinAgents ( [ ] , { } , undefined , TEST_DEFAULT_MODEL , undefined , undefined , [ ] , undefined , undefined )
5353
5454 // #then - uses first fallback entry (openai/gpt-5.2) instead of system default
5555 expect ( agents . oracle . model ) . toBe ( "openai/gpt-5.2" )
@@ -65,7 +65,7 @@ describe("createBuiltinAgents with model overrides", () => {
6565 }
6666
6767 // #when
68- const agents = await createBuiltinAgents ( [ ] , overrides , undefined , TEST_DEFAULT_MODEL )
68+ const agents = await createBuiltinAgents ( [ ] , overrides , undefined , TEST_DEFAULT_MODEL , undefined , undefined , [ ] , undefined , undefined )
6969
7070 // #then
7171 expect ( agents . oracle . model ) . toBe ( "openai/gpt-5.2" )
@@ -81,7 +81,7 @@ describe("createBuiltinAgents with model overrides", () => {
8181 }
8282
8383 // #when
84- const agents = await createBuiltinAgents ( [ ] , overrides , undefined , TEST_DEFAULT_MODEL )
84+ const agents = await createBuiltinAgents ( [ ] , overrides , undefined , TEST_DEFAULT_MODEL , undefined , undefined , [ ] , undefined , undefined )
8585
8686 // #then
8787 expect ( agents . oracle . model ) . toBe ( "anthropic/claude-sonnet-4" )
@@ -97,12 +97,25 @@ describe("createBuiltinAgents with model overrides", () => {
9797 }
9898
9999 // #when
100- const agents = await createBuiltinAgents ( [ ] , overrides , undefined , TEST_DEFAULT_MODEL )
100+ const agents = await createBuiltinAgents ( [ ] , overrides , undefined , TEST_DEFAULT_MODEL , undefined , undefined , [ ] , undefined , undefined )
101101
102102 // #then
103103 expect ( agents . sisyphus . model ) . toBe ( "github-copilot/gpt-5.2" )
104104 expect ( agents . sisyphus . temperature ) . toBe ( 0.5 )
105105 } )
106+
107+ test ( "createBuiltinAgents excludes disabled skills from availableSkills" , async ( ) => {
108+ // #given
109+ const disabledSkills = new Set ( [ "playwright" ] )
110+
111+ // #when
112+ const agents = await createBuiltinAgents ( [ ] , { } , undefined , TEST_DEFAULT_MODEL , undefined , undefined , [ ] , undefined , disabledSkills )
113+
114+ // #then
115+ expect ( agents . sisyphus . prompt ) . not . toContain ( "playwright" )
116+ expect ( agents . sisyphus . prompt ) . toContain ( "frontend-ui-ux" )
117+ expect ( agents . sisyphus . prompt ) . toContain ( "git-master" )
118+ } )
106119} )
107120
108121describe ( "buildAgent with category and skills" , ( ) => {
0 commit comments