MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / writeCompactedMailbox

Function writeCompactedMailbox

src/utils/teammateMailbox.ts:267–275  ·  view source on GitHub ↗
(
  inboxPath: string,
  messages: TeammateMessage[],
  context: string,
)

Source from the content-addressed store, hash-verified

265}
266
267async function writeCompactedMailbox(
268 inboxPath: string,
269 messages: TeammateMessage[],
270 context: string,
271): Promise<void> {
272 const compacted = compactMailboxMessages(messages)
273 logUnreadMailboxEvictions(messages, compacted, context)
274 await writeMailboxAtomic(inboxPath, jsonStringify(compacted, null, 2))
275}
276
277/**
278 * Get the path to a teammate's inbox file

Callers 5

writeToMailboxFunction · 0.85
markMessageAsReadByIndexFunction · 0.85
markMessagesAsReadFunction · 0.85

Calls 4

compactMailboxMessagesFunction · 0.85
writeMailboxAtomicFunction · 0.85
jsonStringifyFunction · 0.85

Tested by

no test coverage detected