Repository navigation
fix(registry): retain verified CommandCode image capabilities #2659
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -83,6 +83,39 @@ describe("Command Code provider", () => { | |
| }); | ||
| }); | ||
|
|
||
| test("OAuth and API-key presets share only verified image capabilities", () => { | ||
| const oauth = PROVIDER_REGISTRY.find(row => row.id === "command-code"); | ||
| const apiKey = PROVIDER_REGISTRY.find(row => row.id === "commandcode"); | ||
| const verifiedImageModels = [ | ||
| "stealth/ox-alpha", | ||
| "openai/ox-alpha", | ||
| "deepseek/deepseek-v4-flash-vision-exp", | ||
| "gpt-5.6-luna", | ||
| "gpt-5.6-sol", | ||
| "MiniMaxAI/MiniMax-M3", | ||
| "moonshotai/Kimi-K3", | ||
| "meta/muse-spark-1.2", | ||
| "meta/muse-spark-1.2-contributor", | ||
| ]; | ||
| const verifiedTextOnlyModels = [ | ||
| "deepseek/deepseek-v4-flash", | ||
| "deepseek/deepseek-v4-pro", | ||
| "zai-org/GLM-5.2", | ||
| "zai-org/GLM-5.3", | ||
| "xai/grok-4.6", | ||
| ]; | ||
|
|
||
| expect(apiKey?.modelInputModalities).toEqual(oauth?.modelInputModalities); | ||
| for (const preset of [oauth, apiKey]) { | ||
| for (const id of verifiedImageModels) { | ||
| expect(preset?.modelInputModalities?.[id]).toEqual(["text", "image"]); | ||
| } | ||
| for (const id of verifiedTextOnlyModels) { | ||
| expect(preset?.modelInputModalities?.[id]).toBeUndefined(); | ||
| } | ||
|
Comment on lines
+108
to
+115
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win Test the complete shared-table contract.
🤖 Prompt for AI Agents |
||
| } | ||
| }); | ||
|
|
||
| test("validates callback shape and state without exposing the key", () => { | ||
| const secret = "super-secret-callback-key"; | ||
| const parsedCallback = parseCommandCodeCallback({ apiKey: secret, state: "state", userId: "u", userName: "name", keyName: "cli" }, "state"); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: lidge-jun/opencodex
Length of output: 50375
🏁 Script executed:
Repository: lidge-jun/opencodex
Length of output: 50378
🏁 Script executed:
Repository: lidge-jun/opencodex
Length of output: 6983
🏁 Script executed:
Repository: lidge-jun/opencodex
Length of output: 12748
Remove
stealth/ox-alphaor document an end-to-end image probe.src/providers/registry.ts:508andtests/command-code-provider.test.ts:90advertise image input, but issue#2406anddevlog/_plan/260826_quota_window_and_backlog/030_phase3.mdlist only eight image-probed routes and omit this ID. The recorded probe indevlog/_plan/260821_260821-windows-picker-full-restart/010_phase1.md:39-40confirms only successful completions, not image delivery. Remove the ID, or add the image evidence and update the objective and test.🤖 Prompt for AI Agents