(inboxPath: string)
| 132 | } |
| 133 | |
| 134 | async 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 | |
| 144 | async function readMailboxForMutation( |
| 145 | agentName: string, |
no test coverage detected