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:
Codex
2026-10-08 17:59:49 +09:00
parent 23f9271d04
commit e22feb0215
5 changed files with 71 additions and 3 deletions

View File

@@ -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)

View File

@@ -40,7 +40,7 @@ MEDIA:/absolute/path/preview.mp4
- URLs and relative paths are ignored
- Do not repeat the same file path elsewhere in the visible text
- 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.
- 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.
- Use this for generated images, e2e screenshots, previews, audio samples, and documents; the Discord channel validates and uploads the file
## CI 감시 (watch_ci)

View File

@@ -31,7 +31,7 @@ MEDIA:/absolute/path/preview.mp4
- `MEDIA:` lines are hidden from the visible message and uploaded as native Discord attachments
- Use absolute local paths only, and do not repeat the same path elsewhere in the visible text
- Do not rely on generic markdown links or plain file paths for attachments
- 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.
- 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.
- The channel harness validates and uploads attachments from these media directives
## CI monitoring (watch_ci)