(self, agent: str)
| 329 | f"({msg_type}) {content[:50]}\033[0m") |
| 330 | |
| 331 | def read_inbox(self, agent: str) -> list[dict]: |
| 332 | inbox = MAILBOX_DIR / f"{agent}.jsonl" |
| 333 | if not inbox.exists(): |
| 334 | return [] |
| 335 | msgs = [json.loads(line) for line in inbox.read_text().splitlines() |
| 336 | if line.strip()] |
| 337 | inbox.unlink() |
| 338 | return msgs |
| 339 | |
| 340 | |
| 341 | BUS = MessageBus() |
no test coverage detected