Skip to main content

Module daemon

Module daemon 

Source
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_path is 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: POST enqueues, GET returns the snapshot.
HEALTH_PATH
Daemon identity probe.
MODELS_LIST_PATH
Model list. gglib model list reaches 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/start body.
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_path is 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_id into BENCHMARK_TUNE_PATH.
remote_forget_path
Retire one device, interpolating device into REMOTE_DEVICES_PATH.