Operação

Arquitetura

Componentes e fluxo de decisão.

Três camadas:

  1. CLI / HTTP client — agents e scripts
  2. Bridge (serve) — long polling Grammy + API local
  3. 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 }