refactor: remove LINE, WhatsApp and Discord channels

Remove LINE, WhatsApp bridge/native and Discord adapters and configuration.
Drop unused SDKs, the Discord fork override and the native WhatsApp build target.
Clean up migration support and docs; preserve shared credential and voice coverage.
Validated with full Go tests, static checks, docs lint and a Linux amd64 build.
This commit is contained in:
loveuer committed 2026-11-12 09:51:39 +08:00
1 parent e7d4293052
commit 7b56867f8a
128 files changed
+289 -5875

No files matched your search

+1 -1
View File
@@ -16,7 +16,7 @@ PicoClaw uses a schema versioning system for `config.json` to ensure smooth upgr
- **Changes**:
- Added `enabled` field to `ModelConfig` — allows disabling individual model entries without removing them
- During V1→V2 migration, `enabled` is auto-inferred: models with API keys or the reserved `local-model` name are enabled; others default to disabled
- Migrated legacy channel fields: Discord `mention_only` → `group_trigger.mention_only`, OneBot `group_trigger_prefix` → `group_trigger.prefixes`
- Migrated legacy channel fields: Channel `mention_only` → `group_trigger.mention_only`, OneBot `group_trigger_prefix` → `group_trigger.prefixes`
- V0 configs now migrate directly to CurrentVersion (V2) instead of going through V1
- `makeBackup()` now uses date-only suffix (e.g., `config.json.20260330.bak`) and also backs up `.security.yml`