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