MCPcopy
hub / github.com/codeaashu/claude-code / resolveAndPrepend

Function resolveAndPrepend

src/bridge/inboundAttachments.ts:167–175  ·  view source on GitHub ↗
(
  msg: unknown,
  content: string | Array<ContentBlockParam>,
)

Source from the content-addressed store, hash-verified

165 * file_attachments field (fast path — no network, returns same reference).
166 */
167export 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

Callers 2

runHeadlessStreamingFunction · 0.85
handleInboundMessageFunction · 0.85

Calls 3

prependPathRefsFunction · 0.85

Tested by

no test coverage detected