From 49ecdca8cb6cfa0c0f78c09292b9b57679eb0689 Mon Sep 17 00:00:00 2001 From: Lakshman Patel Date: Sun, 14 Jun 2026 11:29:00 +0530 Subject: [PATCH 1/3] chore: update .gitignore with timestamped cache dirs --- .gitignore | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.gitignore b/.gitignore index fccaf9d4..71806478 100644 --- a/.gitignore +++ b/.gitignore @@ -10,9 +10,16 @@ hawk .commandcode/ .hawk/ .yaad/ +.openclaude/ +.grok/ +.hermes/ +.qoder/ # Cache / local data .gocache/ +.gocache-*/ +.gomodcache/ +.gomodcache-*/ *.codegraph.db .DS_Store From 8aa42fd67e8be185bc7d0054b9e0267eeacddea8 Mon Sep 17 00:00:00 2001 From: Lakshman Patel Date: Mon, 15 Jun 2026 02:52:59 +0530 Subject: [PATCH 2/3] feat: sync eyrie submodule + config updates for Xiaomi/MiniMax per-plan naming --- external/eyrie | 2 +- internal/config/catalog_api.go | 2 +- internal/config/catalog_gateways_test.go | 10 +++++----- internal/config/settings.go | 2 +- internal/config/xiaomi_setup.go | 12 ++++++------ 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/external/eyrie b/external/eyrie index dce29ff9..9a362bde 160000 --- a/external/eyrie +++ b/external/eyrie @@ -1 +1 @@ -Subproject commit dce29ff995f63b9a84dae6750d438636f1de1a3f +Subproject commit 9a362bde5ca5623c9773754fa20602dcd54a1a6a diff --git a/internal/config/catalog_api.go b/internal/config/catalog_api.go index 95c43025..0a0a2928 100644 --- a/internal/config/catalog_api.go +++ b/internal/config/catalog_api.go @@ -86,7 +86,7 @@ func setupGatewayRegistryID(provider string) string { } } -// SetupGatewayCredentialEnv returns the registry env var for a setup gateway (e.g. XIAOMI_MIMO_API_KEY). +// SetupGatewayCredentialEnv returns the registry env var for a setup gateway (e.g. XIAOMI_MIMO_PAYG_API_KEY). func SetupGatewayCredentialEnv(providerID string) string { spec, ok := registry.DefaultRegistry.Get(setupGatewayRegistryID(providerID)) if !ok || !spec.RequiresKey { diff --git a/internal/config/catalog_gateways_test.go b/internal/config/catalog_gateways_test.go index 052d458e..e025cff5 100644 --- a/internal/config/catalog_gateways_test.go +++ b/internal/config/catalog_gateways_test.go @@ -11,15 +11,15 @@ import ( func TestAllSetupGateways_RegistryOnly(t *testing.T) { gws := AllSetupGateways() - if len(gws) != 16 { - t.Fatalf("expected 16 setup gateways, got %d: %v", len(gws), gws) + if len(gws) != 18 { + t.Fatalf("expected 18 setup gateways, got %d: %v", len(gws), gws) } for _, id := range gws { if id == "ai21" || id == "alibaba" { t.Fatalf("owner slug %q should not be a gateway", id) } } - want := map[string]bool{"azure": true, "bedrock": true, "gemini": true, "grok": true, "openrouter": true, "kimi": true, "vertex": true, "xiaomi_mimo_payg": true, "xiaomi_mimo_token_plan": true, "deepseek": true} + want := map[string]bool{"azure": true, "bedrock": true, "gemini": true, "grok": true, "openrouter": true, "kimi": true, "vertex": true, "xiaomi_mimo_payg": true, "xiaomi_mimo_token_plan": true, "deepseek": true, "minimax_token_plan": true, "minimax_payg": true} for id := range want { found := false for _, gw := range gws { @@ -100,10 +100,10 @@ func TestGatewayDisplayName(t *testing.T) { if got := GatewayDisplayName("openrouter"); got != "OpenRouter" { t.Fatalf("display name = %q", got) } - if got := GatewayDisplayName("google"); got != "Google Gemini" { + if got := GatewayDisplayName("google"); got != "Gemini API" { t.Fatalf("google alias display = %q", got) } - if got := GatewayDisplayName("gemini"); got != "Google Gemini" { + if got := GatewayDisplayName("gemini"); got != "Gemini API" { t.Fatalf("gemini display = %q", got) } } diff --git a/internal/config/settings.go b/internal/config/settings.go index 45b2e03a..c9cc0108 100644 --- a/internal/config/settings.go +++ b/internal/config/settings.go @@ -614,7 +614,7 @@ func providerCredentialEnvAliases(provider string) []string { case "grok", "xai": return nil case "xiaomi_mimo", "xiaomi_mimo_payg": - return []string{"XIAOMI_MIMO_API_KEY"} + return []string{"XIAOMI_MIMO_PAYG_API_KEY"} default: return nil } diff --git a/internal/config/xiaomi_setup.go b/internal/config/xiaomi_setup.go index 3819c0b4..e3aa269a 100644 --- a/internal/config/xiaomi_setup.go +++ b/internal/config/xiaomi_setup.go @@ -38,10 +38,10 @@ func SetXiaomiTokenPlanRegion(region string) error { if saveErr := eyriecfg.SaveProviderConfig(cfg, ""); saveErr != nil { return saveErr } - _ = os.Setenv(eyriecfg.EnvXiaomiTokenPlanRegion, string(normalized)) - base, err := eyriecfg.ResolveXiaomiOpenAIBase(ProviderXiaomiTokenPlan, cfg) + _ = os.Setenv(eyriecfg.EnvXiaomiMimoTokenPlanRegion, string(normalized)) + base, err := eyriecfg.ResolveXiaomiMimoOpenAIBase(ProviderXiaomiTokenPlan, cfg) if err == nil && base != "" { - _ = os.Setenv(eyriecfg.EnvXiaomiTokenPlanBaseURL, base) + _ = os.Setenv(eyriecfg.EnvXiaomiMimoTokenPlanBaseURL, base) cfg.XiaomiMimoTokenPlanBaseURL = base _ = eyriecfg.SaveProviderConfig(cfg, "") } @@ -69,9 +69,9 @@ func ApplyXiaomiTokenPlanRegionEnv(ctx context.Context) { return } if r := strings.TrimSpace(cfg.XiaomiMimoTokenPlanRegion); r != "" { - _ = os.Setenv(eyriecfg.EnvXiaomiTokenPlanRegion, r) + _ = os.Setenv(eyriecfg.EnvXiaomiMimoTokenPlanRegion, r) } - if base, err := eyriecfg.ResolveXiaomiOpenAIBase(ProviderXiaomiTokenPlan, cfg); err == nil && base != "" { - _ = os.Setenv(eyriecfg.EnvXiaomiTokenPlanBaseURL, base) + if base, err := eyriecfg.ResolveXiaomiMimoOpenAIBase(ProviderXiaomiTokenPlan, cfg); err == nil && base != "" { + _ = os.Setenv(eyriecfg.EnvXiaomiMimoTokenPlanBaseURL, base) } } From 97ac48e82403e3854258b22b963986f3afb34fa0 Mon Sep 17 00:00:00 2001 From: Lakshman Patel Date: Mon, 15 Jun 2026 03:10:57 +0530 Subject: [PATCH 3/3] chore(submodule): update eyrie to d9dba7d (OpenCodeGo pricing, Xiaomi/MiniMax per-plan) --- external/eyrie | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/external/eyrie b/external/eyrie index 9a362bde..d9dba7d3 160000 --- a/external/eyrie +++ b/external/eyrie @@ -1 +1 @@ -Subproject commit 9a362bde5ca5623c9773754fa20602dcd54a1a6a +Subproject commit d9dba7d3007096dcc3251398cf9dc914709b473a