feat(attachments): allow Office documents as outbound attachments
Bots had to zip .pptx decks because the outbound allowlist only covered images, audio/video, pdf, zip and plain-text files. Add docx/xlsx/pptx (checked for the ZIP local-file-header signature) and legacy doc/xls/ppt (checked for the OLE2 compound-file signature). The 8MB cap and the allowed-directory rules are unchanged. Prompt format lists are updated so agents stop zipping these files. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -25,7 +25,7 @@ When a locally generated image, screenshot, video, audio, or document should app
|
||||
MEDIA:/absolute/path/preview.mp4
|
||||
```
|
||||
|
||||
`MEDIA:` lines are hidden from the visible message and uploaded as native Discord attachments. Use absolute local paths only, do not repeat the same path in the visible text, and do not use generic markdown links or plain file paths as attachment directives. Supported formats include PNG, JPEG, GIF, WebP, BMP, MP4, MOV, WebM, MP3, WAV, OGG, M4A, FLAC, PDF, ZIP, TXT, Markdown, CSV, and JSON. SVG is not accepted.
|
||||
`MEDIA:` lines are hidden from the visible message and uploaded as native Discord attachments. Use absolute local paths only, do not repeat the same path in the visible text, and do not use generic markdown links or plain file paths as attachment directives. Supported formats include PNG, JPEG, GIF, WebP, BMP, MP4, MOV, WebM, MP3, WAV, OGG, M4A, FLAC, PDF, ZIP, DOCX, XLSX, PPTX, DOC, XLS, PPT, TXT, Markdown, CSV, and JSON. SVG is not accepted.
|
||||
|
||||
## Making channel registration live (never fake a restart)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user