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

Function getImagePasteIds

src/types/textInputTypes.ts:372–382  ·  view source on GitHub ↗
(
  pastedContents: Record<number, PastedContent> | undefined,
)

Source from the content-addressed store, hash-verified

370
371/** Extract image paste IDs from a QueuedCommand's pastedContents. */
372export function getImagePasteIds(
373 pastedContents: Record<number, PastedContent> | undefined,
374): number[] | undefined {
375 if (!pastedContents) {
376 return undefined
377 }
378 const ids = Object.values(pastedContents)
379 .filter(isValidImagePaste)
380 .map(c => c.id)
381 return ids.length > 0 ? ids : undefined
382}
383
384export type OrphanedPermission = {
385 permissionResult: PermissionResult

Callers 1

Calls 1

valuesMethod · 0.80

Tested by

no test coverage detected