MCPcopy Create free account
hub / github.com/Noumena-Network/code / createAttachmentMessage

Function createAttachmentMessage

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

Source from the content-addressed store, hash-verified

3206}
3207
3208export function createAttachmentMessage(
3209 attachment: Attachment,
3210): AttachmentMessage {
3211 return {
3212 attachment,
3213 type: 'attachment',
3214 uuid: randomUUID(),
3215 timestamp: new Date().toISOString(),
3216 }
3217}
3218
3219function getTodoReminderTurnCounts(messages: Message[]): {
3220 turnsSinceLastTodoWrite: number

Callers 15

getAttachmentMessagesFunction · 0.70
processHookJSONOutputFunction · 0.70
executeHooksFunction · 0.70
executeFunctionHookFunction · 0.70
processSessionStartHooksFunction · 0.70
processSetupHooksFunction · 0.70
queryLoopFunction · 0.50
runAgentFunction · 0.50
runPostToolUseHooksFunction · 0.50
runPreToolUseHooksFunction · 0.50

Calls 1

randomUUIDFunction · 0.90

Tested by

no test coverage detected