( msg: unknown, content: string | Array<ContentBlockParam>, )
| 166 | * file_attachments field (fast path — no network, returns same reference). |
| 167 | */ |
| 168 | export async function resolveAndPrepend( |
| 169 | msg: unknown, |
| 170 | content: string | Array<ContentBlockParam>, |
| 171 | ): Promise<string | Array<ContentBlockParam>> { |
| 172 | const attachments = extractInboundAttachments(msg) |
| 173 | if (attachments.length === 0) return content |
| 174 | const prefix = await resolveInboundAttachments(attachments) |
| 175 | return prependPathRefs(content, prefix) |
| 176 | } |
no test coverage detected