MCPcopy
hub / github.com/claude-code-best/claude-code / createAttachmentMessage

Function createAttachmentMessage

src/utils/attachments.ts:3283–3292  ·  view source on GitHub ↗
(
  attachment: Attachment,
)

Source from the content-addressed store, hash-verified

3281}
3282
3283export function createAttachmentMessage(
3284 attachment: Attachment,
3285): AttachmentMessage<Attachment> {
3286 return {
3287 attachment,
3288 type: 'attachment',
3289 uuid: randomUUID(),
3290 timestamp: new Date().toISOString(),
3291 } as unknown as AttachmentMessage<Attachment>
3292}
3293
3294function getTodoReminderTurnCounts(messages: Message[]): {
3295 turnsSinceLastTodoWrite: number

Callers 15

runAgentFunction · 0.85
queryLoopFunction · 0.85
getAttachmentMessagesFunction · 0.85
processHookJSONOutputFunction · 0.85
executeHooksFunction · 0.85
executeFunctionHookFunction · 0.85
processSessionStartHooksFunction · 0.85
processSetupHooksFunction · 0.85
processUserInputFunction · 0.85
execPromptHookFunction · 0.85
execAgentHookFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected