@@ -87,6 +87,7 @@ type OpenRouterManifest = {
8787 groupLabel ?: string ;
8888 groupHint ?: string ;
8989 onboardingScopes ?: string [ ] ;
90+ onboardingFeatured ?: boolean ;
9091 } > ;
9192} ;
9293
@@ -137,6 +138,7 @@ describe("openrouter provider hooks", () => {
137138 groupLabel : choice . groupLabel ,
138139 groupHint : choice . groupHint ,
139140 onboardingScopes : choice . onboardingScopes ,
141+ onboardingFeatured : choice . onboardingFeatured ,
140142 } ) ) ;
141143
142144 expect (
@@ -160,6 +162,7 @@ describe("openrouter provider hooks", () => {
160162 groupLabel : method . wizard ?. groupLabel ,
161163 groupHint : method . wizard ?. groupHint ,
162164 onboardingScopes : method . wizard ?. onboardingScopes ,
165+ onboardingFeatured : method . wizard ?. onboardingFeatured ,
163166 } ) ) ,
164167 ) . toEqual ( manifestChoices ) ;
165168
@@ -176,6 +179,20 @@ describe("openrouter provider hooks", () => {
176179 expect ( oauthChoice ?. method . id ) . toBe ( "oauth" ) ;
177180 } ) ;
178181
182+ it ( "features OpenRouter OAuth in the top-level onboarding picker" , ( ) => {
183+ const oauthChoice = readManifest ( ) . providerAuthChoices ?. find (
184+ ( choice ) => choice . choiceId === "openrouter-oauth" ,
185+ ) ;
186+
187+ expect ( oauthChoice ) . toMatchObject ( {
188+ provider : "openrouter" ,
189+ method : "oauth" ,
190+ groupId : "openrouter" ,
191+ groupLabel : "OpenRouter" ,
192+ onboardingFeatured : true ,
193+ } ) ;
194+ } ) ;
195+
179196 it ( "includes current Kimi models in the bundled catalog" , ( ) => {
180197 const modelIds = buildOpenrouterProvider ( ) . models ?. map ( ( model ) => model . id ) ?? [ ] ;
181198 expect ( modelIds ) . toContain ( "moonshotai/kimi-k2.6" ) ;
0 commit comments