Skip to main content

Module srv_info

Module srv_info 

Source
Expand description

What srv tells a UI about the machine it runs on: sent as the srvinfo event on every WebSocket connect (server/websocket.rs). A UI shows these names and builds paths from the home directory, and the paths have to be srv’s, which is only the same machine as the UI’s when the UI is the desktop app.

Structs§

SrvInfo
The srvinfo event: srv’s version, and the machine it runs on.

Statics§

HOME_DIR 🔒
The account-wide AgentMux root (~/.agentmux, or its override) as it was when srv started. Read before startup sets AGENTMUX_DATA_HOME to the data directory (bootstrap/stores.rs), after which the same resolver answers with the data directory instead.

Functions§

agentmux_home
The account-wide AgentMux root captured at startup (capture_home_dir).
capture_home_dir
Record the AgentMux root. Call first thing in main, before anything changes the environment.
srv_info
The data of the srvinfo event.