/** * pi-bus extension — inter-pi messaging primitive. * * Every pi process loading this extension auto-joins a per-repo "bus": * - Registers itself under .pi-mind/bus/sessions//meta.json * - Watches its own inbox/ for incoming messages * - Heartbeats every 30s; stale sessions (>90s) filtered out by others * * 3 LLM-facing tools: * - agent_list: who else is live in this repo's bus * - agent_send: drop a message into another session's inbox * - agent_inbox: read your own inbox (mostly redundant — incoming messages * auto-trigger your agent via pi.sendUserMessage) * * When a message lands in your inbox, pi-bus calls pi.sendUserMessage with * deliverAs:"followUp" — your agent treats it as if a user typed * `[from ] ` and starts a turn. This is how an idle pi gets * woken up by another pi. * * Pure deliver primitives (findByName / writeInboxMessage / readInbox / etc.) * live in `../../lib/deliver.ts` so non-extension callers (cron triggers, * other extensions, CLI scripts) can drop messages without booting a full pi. */ import type { ExtensionAPI } from "@earendil-works/pi-coding-agent"; export default function busExtension(pi: ExtensionAPI): void; //# sourceMappingURL=index.d.ts.map