feat: complete eba adapter acceptance path

This commit is contained in:
Junyan Qin
2026-05-10 18:58:18 +08:00
committed by huanghuoguoguo
parent bba87cf728
commit f105343efe
10 changed files with 305 additions and 164 deletions
@@ -37,6 +37,7 @@ Real platform / simulator UI
The test plugin must record JSONL evidence containing:
- event class and `event.type`
- `bot_uuid` and `adapter_name` as received by the plugin
- adapter name
- chat type and chat ID
- sender/user/group IDs with secrets redacted
@@ -141,6 +142,14 @@ The plugin must call every common API declared in `manifest.yaml -> spec.support
Destructive APIs must be opt-in and documented with the exact target used.
The SDK must expose a plugin-side platform API escape hatch for adapter-specific actions. The acceptance plugin should call it from the same EBA event handler that received the real platform event, so the evidence proves both directions of the path:
```text
plugin -> SDK call_platform_api -> LangBot core -> adapter call_platform_api -> platform SDK/API
```
The result must be serialized into JSON-safe values before it is returned to the plugin runtime.
## Platform-Specific API Tests
Every action listed in `manifest.yaml -> spec.platform_specific_apis` must have one acceptance entry: