Referência
API local
Endpoints HTTP em 127.0.0.1.
Base: http://127.0.0.1:3847
| Método | Path | Uso |
|---|---|---|
| GET | /health | Status |
| POST | /v1/alert | Alerta |
| POST | /v1/ask | Pedido de decisão |
| GET | /v1/decisions/:id | Consultar |
| POST | /v1/decisions/:id/cancel | Cancelar |
| POST | /v1/decisions/:id/expire | Expirar / default |
| GET | /v1/pending | Listar pendentes |
meta opcional: { "cwd", "gitBranch", "prUrl", "agent" }.
Exemplo ask
curl -s http://127.0.0.1:3847/v1/ask \
-H "content-type: application/json" \
-d '{
"project": "meu-app",
"question": "Merge o PR?",
"options": ["sim", "não"],
"timeoutMs": 900000
}'