feat(presets): restore SudoCode.us to coexist with SudoCode.chat sponsor

The legacy sudocode.us provider was replaced in place by the sudocode.chat
sponsor (618723b4) because the two unrelated companies share the SudoCode
name. Bring the legacy provider back and distinguish the two by their
domain suffix.

- Rename the sponsor preset to "SudoCode.chat" across its six clients;
  partner status, promotion copy (key "sudocode"), and icon unchanged
- Re-add "SudoCode.us" across all seven clients (including the previously
  removed Gemini entry) with its pre-replacement config: gpt-5.5,
  sudocode.us endpoints, sudocode.run fallback candidates
- Mark SudoCode.us as partner (isPartner) without a partnerPromotionKey:
  promo copy is pending, and the promo box only renders when a key exists
- Give the SudoCode.us Hermes entry a distinct slug (sudocode_us) so both
  providers can coexist in the additive ~/.hermes/config.yaml
- Restore the legacy logo from git history as sudocode-us.png and register
  it in the hand-maintained icon index and metadata
This commit is contained in:
Jason
2026-07-15 12:48:25 +08:00
parent 3bc828aecc
commit 7f028632b5
10 changed files with 180 additions and 8 deletions
+29 -2
View File
@@ -1619,13 +1619,13 @@ export const opencodeProviderPresets: OpenCodeProviderPreset[] = [
},
},
{
name: "SudoCode",
name: "SudoCode.chat",
websiteUrl: "https://sudocode.chat",
apiKeyUrl:
"https://sudocode.chat/register?utm_source=ccswitch&utm_medium=partner",
settingsConfig: {
npm: "@ai-sdk/openai",
name: "SudoCode",
name: "SudoCode.chat",
options: {
baseURL: "https://api.sudocode.chat/v1",
apiKey: "",
@@ -1647,6 +1647,33 @@ export const opencodeProviderPresets: OpenCodeProviderPreset[] = [
},
},
},
{
name: "SudoCode.us",
websiteUrl: "https://sudocode.us",
apiKeyUrl: "https://sudocode.us",
settingsConfig: {
npm: "@ai-sdk/openai",
name: "SudoCode.us",
options: {
baseURL: "https://sudocode.us/v1",
apiKey: "",
setCacheKey: true,
},
models: {
"gpt-5.5": { name: "GPT-5.5" },
},
},
category: "third_party",
isPartner: true,
icon: "sudocode-us",
templateValues: {
apiKey: {
label: "API Key",
placeholder: "",
editorValue: "",
},
},
},
{
name: "Cubence",
websiteUrl: "https://cubence.com",