Operação
Arquitetura
Componentes e fluxo de decisão.
Três camadas:
- CLI / HTTP client — agents e scripts
- Bridge (serve) — long polling Grammy + API local
- Desktop — Electron tray/hub, spawn do bridge, updater
Fluxo ask
agent → POST /v1/ask → store (pending)
→ Telegram (botões)
user → callback → store (answered)
agent (wait) → JSON { status, answer }