evOo-local/apps/mobile/lib/artifact-file.ts
cynarAI 6c7eed7580 Initial clean evOo-local from f00577b
Fresh history cut from cynarAI/evoo antigravity-handoff/project-timeline
(Voice First + project timeline). Brand docs/titles as evOo; keep @rakazo/*
packages as tech debt. Excludes node_modules, caches, secrets, voice blobs.
2026-09-20 17:15:16 +02:00

7 lines
294 B
TypeScript

import { attachmentExtensionForMimeType } from "@rakazo/core";
export function artifactCacheFileName(artifactId: string, mimeType: string): string {
const safeId = artifactId.replace(/[^A-Za-z0-9_-]/g, "_") || "attachment";
return `${safeId}${attachmentExtensionForMimeType(mimeType)}`;
}