Expand description
Socket, PID file, and log directory path resolution.
Sockets and PID files live under /tmp/agent-procs-<uid>/ to stay
within the macOS 103-byte Unix socket path limit. Persistent state
(logs, state files) goes to $XDG_STATE_HOME/agent-procs/sessions/<session>/.
Functionsยง
- log_dir
- pid_
path - socket_
base_ dir - Base directory for sockets and PID files: /tmp/agent-procs-
/ Short fixed path to avoid macOS 103-byte socket path limit. - socket_
path - state_
dir - State directory for persistent data (logs, state.json).
Uses $
XDG_STATE_HOME, defaults to ~/.local/state/. - state_
file