@@ -22,6 +22,7 @@ const manifest = JSON.parse(
2222 choiceHint ?: string ;
2323 choiceId ?: string ;
2424 deprecatedChoiceIds ?: string [ ] ;
25+ assistantVisibility ?: string ;
2526 groupId ?: string ;
2627 groupLabel ?: string ;
2728 groupHint ?: string ;
@@ -38,6 +39,7 @@ function manifestComparableWizardFields(choice: {
3839 choiceId ?: string ;
3940 choiceLabel ?: string ;
4041 choiceHint ?: string ;
42+ assistantVisibility ?: string ;
4143 groupId ?: string ;
4244 groupLabel ?: string ;
4345 groupHint ?: string ;
@@ -47,6 +49,7 @@ function manifestComparableWizardFields(choice: {
4749 choiceId : choice . choiceId ,
4850 choiceLabel : choice . choiceLabel ,
4951 choiceHint : choice . choiceHint ,
52+ assistantVisibility : choice . assistantVisibility ,
5053 groupId : choice . groupId ,
5154 groupLabel : choice . groupLabel ,
5255 groupHint : choice . groupHint ,
@@ -90,7 +93,7 @@ function expectWizardFields(
9093describe ( "OpenAI plugin manifest" , ( ) => {
9194 it ( "keeps runtime dependencies in the package manifest" , ( ) => {
9295 expect ( packageJson . dependencies ?. [ "@earendil-works/pi-ai" ] ) . toBe ( "0.74.0" ) ;
93- expect ( packageJson . dependencies ?. ws ) . toBe ( "8.20.0 " ) ;
96+ expect ( packageJson . dependencies ?. ws ) . toBe ( "8.20.1 " ) ;
9497 } ) ;
9598
9699 it ( "keeps removed Codex CLI import auth choice as a deprecated browser-login alias" , ( ) => {
@@ -125,38 +128,40 @@ describe("OpenAI plugin manifest", () => {
125128
126129 expect ( openAiLogin ?. choiceLabel ) . toBe ( "ChatGPT Login" ) ;
127130 expect ( openAiLogin ?. choiceHint ) . toBe ( "Sign in with your ChatGPT or Codex subscription" ) ;
131+ expect ( openAiLogin ?. assistantVisibility ) . toBe ( "manual-only" ) ;
128132 expect ( openAiLogin ?. groupId ) . toBe ( "openai" ) ;
129133 expect ( openAiLogin ?. groupLabel ) . toBe ( "OpenAI" ) ;
130- expect ( openAiLogin ?. groupHint ) . toBe ( "ChatGPT subscription or API key" ) ;
134+ expect ( openAiLogin ?. groupHint ) . toBe ( "ChatGPT/Codex sign-in or API key" ) ;
131135 expect ( openAiDeviceCode ?. choiceLabel ) . toBe ( "ChatGPT Device Pairing" ) ;
132136 expect ( openAiDeviceCode ?. choiceHint ) . toBe (
133137 "Pair your ChatGPT account in browser with a device code" ,
134138 ) ;
139+ expect ( openAiDeviceCode ?. assistantVisibility ) . toBe ( "manual-only" ) ;
135140 expect ( openAiDeviceCode ?. groupId ) . toBe ( "openai" ) ;
136141 expect ( openAiDeviceCode ?. groupLabel ) . toBe ( "OpenAI" ) ;
137- expect ( openAiDeviceCode ?. groupHint ) . toBe ( "ChatGPT subscription or API key" ) ;
138- expect ( codexBrowserLogin ?. choiceLabel ) . toBe ( "OpenAI Codex Browser Login" ) ;
142+ expect ( openAiDeviceCode ?. groupHint ) . toBe ( "ChatGPT/Codex sign-in or API key" ) ;
143+ expect ( codexBrowserLogin ?. choiceLabel ) . toBe ( "ChatGPT/ Codex Browser Login" ) ;
139144 expect ( codexBrowserLogin ?. choiceHint ) . toBe ( "Sign in with OpenAI in your browser" ) ;
140- expect ( codexBrowserLogin ?. groupId ) . toBe ( "openai-codex " ) ;
141- expect ( codexBrowserLogin ?. groupLabel ) . toBe ( "OpenAI Codex " ) ;
142- expect ( codexBrowserLogin ?. groupHint ) . toBe ( "ChatGPT/Codex sign-in" ) ;
143- expect ( codexDeviceCode ?. choiceLabel ) . toBe ( "OpenAI Codex Device Pairing" ) ;
145+ expect ( codexBrowserLogin ?. groupId ) . toBe ( "openai" ) ;
146+ expect ( codexBrowserLogin ?. groupLabel ) . toBe ( "OpenAI" ) ;
147+ expect ( codexBrowserLogin ?. groupHint ) . toBe ( "ChatGPT/Codex sign-in or API key " ) ;
148+ expect ( codexDeviceCode ?. choiceLabel ) . toBe ( "ChatGPT/ Codex Device Pairing" ) ;
144149 expect ( codexDeviceCode ?. choiceHint ) . toBe ( "Pair in browser with a device code" ) ;
145- expect ( codexDeviceCode ?. groupId ) . toBe ( "openai-codex " ) ;
146- expect ( codexDeviceCode ?. groupLabel ) . toBe ( "OpenAI Codex " ) ;
147- expect ( codexDeviceCode ?. groupHint ) . toBe ( "ChatGPT/Codex sign-in" ) ;
150+ expect ( codexDeviceCode ?. groupId ) . toBe ( "openai" ) ;
151+ expect ( codexDeviceCode ?. groupLabel ) . toBe ( "OpenAI" ) ;
152+ expect ( codexDeviceCode ?. groupHint ) . toBe ( "ChatGPT/Codex sign-in or API key " ) ;
148153 expect ( apiKey ?. choiceLabel ) . toBe ( "OpenAI API Key" ) ;
149154 expect ( apiKey ?. choiceHint ) . toBe ( "Use your OpenAI API key directly" ) ;
150155 expect ( apiKey ?. groupId ) . toBe ( "openai" ) ;
151156 expect ( apiKey ?. groupLabel ) . toBe ( "OpenAI" ) ;
152- expect ( apiKey ?. groupHint ) . toBe ( "ChatGPT subscription or API key" ) ;
157+ expect ( apiKey ?. groupHint ) . toBe ( "ChatGPT/Codex sign-in or API key" ) ;
153158 expect ( codexApiKey ?. choiceLabel ) . toBe ( "OpenAI API Key Backup" ) ;
154159 expect ( codexApiKey ?. choiceHint ) . toBe (
155160 "Use an OpenAI API key when your Codex subscription is unavailable" ,
156161 ) ;
157- expect ( codexApiKey ?. groupId ) . toBe ( "openai-codex " ) ;
158- expect ( codexApiKey ?. groupLabel ) . toBe ( "OpenAI Codex " ) ;
159- expect ( codexApiKey ?. groupHint ) . toBe ( "ChatGPT/Codex sign-in" ) ;
162+ expect ( codexApiKey ?. groupId ) . toBe ( "openai" ) ;
163+ expect ( codexApiKey ?. groupLabel ) . toBe ( "OpenAI" ) ;
164+ expect ( codexApiKey ?. groupHint ) . toBe ( "ChatGPT/Codex sign-in or API key " ) ;
160165 expect ( choices . map ( ( choice ) => choice . choiceLabel ) ) . not . toContain (
161166 "OpenAI Codex (ChatGPT OAuth)" ,
162167 ) ;
0 commit comments