(content: string, useSpoiler: boolean)
| 651 | function wrapWithSpoiler(content: string, useSpoiler: boolean): string { |
| 652 | if (!useSpoiler) { |
| 653 | return content; |
| 654 | } |
| 655 | |
| 656 | // 检查内容是否已经包含折叠标签 |
| 657 | if (content.includes('<blockquote expandable>')) { |
| 658 | return content; |
| 659 | } |
| 660 | |
| 661 | // 用折叠标签包裹整个内容 |
| 662 | return `<blockquote expandable>${content}</blockquote>`; |
| 663 | } |
| 664 | |
| 665 | // AI 总结消息 |
| 666 | async function summarizeMessages( |
| 667 | task: SummaryTask, |
| 668 | messageData: MessageData[] |
no outgoing calls
no test coverage detected