Files
multica/server/internal/handler/attachment_text_preview.json
802f0894e0 refactor(attachments): generate text preview whitelist (MUL-8248) (#9527)
* refactor(attachments): generate text preview whitelist

Co-authored-by: Cursor <[email protected]>

* fix(attachments): gate text previews on shared whitelist (MUL-8248)

Co-authored-by: multica-agent <[email protected]>

---------

Co-authored-by: Cursor <[email protected]>
Co-authored-by: Multica Eve <[email protected]>
Co-authored-by: multica-agent <[email protected]>
2026-10-26 13:38:42 +08:00

76 lines
1.3 KiB
JSON

{
"$comment": "Source of truth for attachment types served by the authenticated text-preview endpoint. Edit this file only. The Go handler embeds it directly; packages/views/editor/utils/text-preview-whitelist.generated.ts is regenerated by `pnpm generate:attachment-text-preview`. CI fails when the generated TypeScript output is stale.",
"content_type_prefixes": [
"text/"
],
"content_types": [
"application/json",
"application/x-ndjson",
"application/javascript",
"application/xml",
"application/x-yaml",
"application/yaml",
"application/toml",
"application/x-sh",
"application/x-httpd-php"
],
"extensions": [
"md",
"markdown",
"txt",
"log",
"csv",
"tsv",
"html",
"htm",
"json",
"jsonl",
"ndjson",
"xml",
"yml",
"yaml",
"toml",
"ini",
"conf",
"dockerfile",
"makefile",
"gitignore",
"sh",
"bash",
"zsh",
"py",
"rb",
"go",
"rs",
"ts",
"tsx",
"js",
"jsx",
"mjs",
"cjs",
"css",
"scss",
"sass",
"less",
"sql",
"java",
"kt",
"swift",
"c",
"cc",
"cpp",
"h",
"hpp",
"cs",
"php",
"lua",
"vim"
],
"basenames": [
"dockerfile",
"makefile",
".env",
".gitignore"
]
}