2026-10-24 11:15:35 +02:00
|
|
|
// Package api defines the daemon's HTTP surface on 127.0.0.1: POST /speak
|
|
|
|
|
// (enqueue, 202 {id}; 202 {muted:true} when muted; 202
|
|
|
|
|
// {discarded:"rate_limit"|"quiet_hours"} when a law discards), GET /status
|
|
|
|
|
// (including law state, mcp/cors), POST /cancel, POST /mute, POST /unmute.
|
|
|
|
|
// It also provides the CORS door for POST /speak (OPTIONS preflight + ACAO
|
|
|
|
|
// from server.allowed_origins, see cors.go) and the MCP endpoint POST /mcp
|
|
|
|
|
// as a lean JSON-RPC subset of its own (initialize,
|
|
|
|
|
// notifications/initialized, tools/list, tools/call with the speak tool;
|
|
|
|
|
// see mcp.go). The client part is the CLI side of the same contract.
|
2026-10-18 15:14:18 +02:00
|
|
|
package api
|