refactor: remove Pico and MaixCAM channels

Remove pico, pico_client and maixcam adapters, configuration and migration support.
Drop Pico-specific agent publishing while preserving shared IM streaming and MQTT.
Clean up channel examples and localized documentation; move shared tests to Telegram.
Validated with full Go tests, vet, lint, docs checks and a Linux amd64 build.
This commit is contained in:
loveuer committed 2026-11-11 19:02:03 +08:00
1 parent 6159157e47
commit 996dfefffe
74 files changed
+243 -5862

No files matched your search

-6
View File
@@ -115,7 +115,6 @@ func TestSaveAndLoadSecurityConfig(t *testing.T) {
{"feishu", `{"enabled":true,"settings":{"app_id":"feishu_app_id","app_secret":"feishu_app_secret"}}`},
{"discord", `{"enabled":true,"settings":{"token":"discord_token"}}`},
{"qq", `{"enabled":true,"settings":{"app_secret":"qq_app_secret"}}`},
{"pico_client", `{"enabled":true,"settings":{"token":"pico_client_token"}}`},
} {
bc := &Channel{}
json.Unmarshal([]byte(d.raw), bc)
@@ -129,8 +128,6 @@ func TestSaveAndLoadSecurityConfig(t *testing.T) {
bc.Decode(&DiscordSettings{})
case "feishu":
bc.Decode(&FeishuSettings{})
case "pico_client":
bc.Decode(&PicoClientSettings{})
}
chs[d.name] = bc
}
@@ -185,7 +182,6 @@ func TestSaveAndLoadSecurityConfig(t *testing.T) {
assert.Contains(t, getSetting("feishu")["app_secret"], "feishu_app_secret")
assert.Contains(t, getSetting("discord")["token"], "discord_token")
assert.Contains(t, getSetting("qq")["app_secret"], "qq_app_secret")
assert.Contains(t, getSetting("pico_client")["token"], "pico_client_token")
// Rewrite file with deterministic content for load test (use channel_list)
yamlOutput := `channel_list:
@@ -197,8 +193,6 @@ func TestSaveAndLoadSecurityConfig(t *testing.T) {
token: discord_token
qq:
app_secret: qq_app_secret
pico_client:
token: pico_client_token
model_list:
model1:0:
api_keys: