Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
// AUTO-GENERATED by scripts/generate-attachment-text-preview.mjs.
// Do not edit by hand — edit
// server/internal/handler/attachment_text_preview.json and run
// `pnpm generate:attachment-text-preview`.
export const TEXT_PREVIEW_CONTENT_TYPE_PREFIXES: ReadonlySet<string> = new Set([
"text/",
]);
export const TEXT_PREVIEW_CONTENT_TYPES: ReadonlySet<string> = new Set([
"application/json",
"application/x-ndjson",
"application/javascript",
"application/xml",
"application/x-yaml",
"application/yaml",
"application/toml",
"application/x-sh",
"application/x-httpd-php",
]);
export const TEXT_PREVIEW_EXTENSIONS: ReadonlySet<string> = new Set([
"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",
]);
export const TEXT_PREVIEW_BASENAMES: ReadonlySet<string> = new Set([
"dockerfile",
"makefile",
".env",
".gitignore",
]);