feat(onebot): support private window shake messages

Encode poke message segments as private window shake messages while keeping the dedicated send_poke action unchanged.

Restrict window shakes to a single ordinary private-chat segment. Reject group, temporary-session, mixed-message, and forwarded usage before identity lookup, media upload, or packet transmission.

Add full outbound request coverage, OneBot action regressions, and live private-chat verification for issue #259.

Closes #259
This commit is contained in:
DrSmoothl committed 2026-07-21 19:28:17 +08:00
1 parent d8d556eb70
commit ff60221330
15 files changed
+529 -44

No files matched your search

+1 -1
View File
@@ -124,7 +124,7 @@ function renderSegment(type: string, data: Record<string, unknown>): string {
case 'xml': return '[XML]';
case 'markdown': return '[Markdown]';
case 'forward': return '[聊天记录]';
case 'poke': return '[戳一戳]';
case 'poke': return '[窗口抖动]';
case 'flash_file': {
const title = data.title ? String(data.title) : '';
return title ? `[闪传文件:${truncate(title, 20)}]` : '[闪传文件]';