Referência

CLI

Comandos, flags e códigos de saída.

ComandoUso
teleagent setuptoken / chat_id / porta / allowlist
teleagent servelong polling + API local
teleagent alertalerta (não bloqueia)
teleagent askdecisão e espera
teleagent cancelcancela ask pendente
teleagent statushealth do bridge

Exemplos

teleagent alert --project meu-app --level error --message "Deploy falhou" --json

teleagent ask \
  --project meu-app \
  --question "Promovo o deploy para produção?" \
  --options "sim,não" \
  --default não \
  --timeout-ms 900000 \
  --json

teleagent cancel --id ask_xxx

Códigos de saída

  • 0 — ok
  • 1 — erro / bridge offline
  • 2 — ask timeout / expirado / cancelado (sem default usável)

ask bloqueia até resposta, timeout ou cancelamento. Com --default, no timeout usa essa resposta.