MCPcopy Create free account
hub / github.com/claude-code-best/claude-code / readMailboxFile

Function readMailboxFile

src/utils/teammateMailbox.ts:134–142  ·  view source on GitHub ↗
(inboxPath: string)

Source from the content-addressed store, hash-verified

132}
133
134async function readMailboxFile(inboxPath: string): Promise<string> {
135 const info = await stat(inboxPath)
136 if (info.size > MAX_MAILBOX_FILE_BYTES) {
137 throw new Error(
138 `Mailbox file exceeds ${MAX_MAILBOX_FILE_BYTES} bytes: ${inboxPath}`,
139 )
140 }
141 return readFile(inboxPath, 'utf-8')
142}
143
144async function readMailboxForMutation(
145 agentName: string,

Callers 2

readMailboxForMutationFunction · 0.85
readMailboxFunction · 0.85

Calls 2

statFunction · 0.85
readFileFunction · 0.85

Tested by

no test coverage detected