()
| 156 | } |
| 157 | |
| 158 | export async function cleanupTempAttachmentFiles(): Promise<void> { |
| 159 | const targetDir = resolveDirectoryWithinAttachmentsRoot('temp') |
| 160 | await rm(targetDir, { recursive: true, force: true }) |
| 161 | await mkdir(targetDir, { recursive: true }) |
| 162 | } |
| 163 | |
| 164 | export async function resolveAttachmentPathForAI(localPath: string): Promise<string> { |
| 165 | const targetPath = await resolveAttachmentPath(localPath) |
no test coverage detected