MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / createPendingImage

Function createPendingImage

cli/src/utils/__tests__/image-processor.test.ts:22–28  ·  view source on GitHub ↗
(path: string, processedImage?: { base64: string; mediaType: string })

Source from the content-addressed store, hash-verified

20}
21
22const createPendingImage = (path: string, processedImage?: { base64: string; mediaType: string }): PendingImageAttachment => ({
23 kind: 'image',
24 path,
25 filename: path.split('/').pop() ?? 'image.png',
26 status: 'ready',
27 ...(processedImage && { processedImage }),
28})
29
30describe('processImagesForMessage', () => {
31 test('uses pre-processed image data from pendingImages without re-reading from disk', async () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected