Expand description
Daemon API route constants — the paths the CLI sends to gglib daemon.
These live here, in shared vocabulary, rather than inside the CLI, so the
daemon’s own test suite can walk them and fail when it stops serving one.
#834 deleted a route the CLI’s download poller was calling and the whole
suite stayed green, because nothing tied the client’s paths to the router’s.
gglib-axum/tests/daemon_route_contract.rs is what ties them now.
Constants§
- BENCHMARK_
AGENTIC_ PATH - Agentic evaluation run (SSE).
- BENCHMARK_
COMPARE_ PATH - Benchmark comparison run (SSE).
- BENCHMARK_
PERF_ PATH - Benchmark performance run (SSE).
- BENCHMARK_
TUNE_ APPLY_ METHODS - The verbs
benchmark_tune_apply_pathis called with. - BENCHMARK_
TUNE_ PATH - Benchmark tuning run (SSE).
- CLI_
ROUTE_ CONTRACT - Every fixed path above, paired with the verbs the CLI sends to it.
- DAEMON_
SHUTDOWN_ PATH - Ask the daemon to shut down.
- DOWNLOADS_
QUEUE_ PATH - Download queue:
POSTenqueues,GETreturns the snapshot. - HEALTH_
PATH - Daemon identity probe.
- MODELS_
LIST_ PATH - Model list.
gglib model listreaches this on the detected daemon port rather than the compile-time one, so it builds its own base — the path is still the daemon’s. - PROXY_
LOOP_ GUARD_ TRIPS_ PATH - The loop guard’s log, a day per row (#1052).
- PROXY_
START_ CLI_ FIELDS - Every key the CLI puts in a
POST /api/proxy/startbody. - PROXY_
START_ DAEMON_ ONLY_ FIELDS - Keys the daemon accepts on that body which the CLI never sends.
- PROXY_
START_ PATH - Start the proxy.
- PROXY_
STATUS_ PATH - Current proxy status.
- PROXY_
STOP_ PATH - Stop the proxy.
- REMOTE_
CONNECT_ PATH - Reach another machine’s proxy over the tunnel: bind a loopback port here.
- REMOTE_
DEVICES_ PATH - Every device this machine has issued a key to.
- REMOTE_
DISABLE_ PATH - Take the remote tunnel down.
- REMOTE_
DISCONNECT_ PATH - Close that loopback port.
- REMOTE_
ENABLE_ PATH - Bring the remote tunnel up and arm a pairing (ADR 0012).
- REMOTE_
FORGET_ METHODS - The verbs
remote_forget_pathis called with. - REMOTE_
INVITE_ PATH - Mint a key for one new device and offer a code that hands it over.
- REMOTE_
KILL_ PATH - Stop the far daemon through the tunnel, then disconnect.
- REMOTE_
STATUS_ PATH - The remote tunnel’s status.
- SERVERS_
START_ PATH - Start (or reuse) a llama-server for a model.
- SETUP_
STATUS_ PATH - Setup status, used for the hardware snapshot on benchmark reports.
- VERSION_
PATH - Which build of gglib the daemon is running.
Functions§
- benchmark_
tune_ apply_ path - Apply a gated tune run, interpolating
run_idintoBENCHMARK_TUNE_PATH. - remote_
forget_ path - Retire one device, interpolating
deviceintoREMOTE_DEVICES_PATH.