MCPcopy Create free account
hub / github.com/experdot/pointer / resolveAttachmentPathForAI

Function resolveAttachmentPathForAI

src/main/attachmentStorage.ts:164–171  ·  view source on GitHub ↗
(localPath: string)

Source from the content-addressed store, hash-verified

162}
163
164export async function resolveAttachmentPathForAI(localPath: string): Promise<string> {
165 const targetPath = await resolveAttachmentPath(localPath)
166 if (!(await pathExists(targetPath))) {
167 throw new Error(`Attachment not found: ${localPath}`)
168 }
169
170 return targetPath
171}

Callers 1

prepareApiMessagesMethod · 0.90

Calls 2

resolveAttachmentPathFunction · 0.85
pathExistsFunction · 0.70

Tested by

no test coverage detected