Slim subagent runtime surface and remove legacy interfaces

This commit is contained in:
LPF
2026-03-17 13:41:12 +08:00
parent 341e578c9f
commit 0674d85ae1
76 changed files with 778 additions and 8782 deletions

View File

@@ -234,7 +234,7 @@ func TestAIStudioChannelIDPrefersHealthyAvailableRelay(t *testing.T) {
}
providerRuntimeRegistry.mu.Unlock()
got := aistudioChannelID("aistudio", nil)
got := aistudioChannelCandidates("aistudio", nil)[0]
if got != "aistudio-good" {
t.Fatalf("expected aistudio-good, got %q", got)
}
@@ -249,7 +249,7 @@ func TestAIStudioChannelIDExplicitOptionWins(t *testing.T) {
}
providerRuntimeRegistry.mu.Unlock()
got := aistudioChannelID("aistudio", map[string]interface{}{"aistudio_channel": "manual"})
got := aistudioChannelCandidates("aistudio", map[string]interface{}{"aistudio_channel": "manual"})[0]
if got != "manual" {
t.Fatalf("expected explicit channel manual, got %q", got)
}
@@ -273,7 +273,7 @@ func TestAIStudioChannelIDPrefersMostRecentSuccessfulRelay(t *testing.T) {
aistudioRelayRegistry.succeeded["aistudio-b"] = time.Now()
aistudioRelayRegistry.mu.Unlock()
got := aistudioChannelID("aistudio", nil)
got := aistudioChannelCandidates("aistudio", nil)[0]
if got != "aistudio-b" {
t.Fatalf("expected most recent successful relay aistudio-b, got %q", got)
}