Expand description
Loopback HTTP client for packsetd.
Reads PACKSET_URL or INSIDE_MEMORY_URL. search/get against packsetd; no SQLite.
Does not open LMDB.
Structs§
Enums§
Constants§
- DEFAULT_
PORT - The port a writer listens on when nothing names one. The command line, the server and this client agree on it, so a seat needs no variable set.
- TOKEN_
FILE - The name of the token file in a pack home.
Functions§
- authorize
requestwith this seat’s token as a bearer header. A caller that speaks to the writer outsidePacksetClientwraps its request in this.- default_
port PACKSET_PORT(GROK_MEM_PORTis an alias), elseDEFAULT_PORT.- load_
seat_ env - Load
~/.config/ljos/env(KEY=VALUE) when the process has not set those keys.ljos,packset, andpackset-mcpthen share one pack. - resolved_
workspace - The workspace the seat’s memory lives in:
PACKSET_WORKSPACEafter loading the seat env file, elseseat. Notdefault, and not the working directory’s git remote: those two are how one harness’s remember missed the other’s sitting. - token
- The token this seat shows the writer:
PACKSET_TOKEN, else the first line oftoken_path.Nonewhen there is neither, and the writer then answers 401 to everything but/health. - token_
path - The token file a writer leaves in its pack home:
PACKSET_TOKEN_FILE, elsetokenunderPACKSET_HOME(GROKINSIDE_HOME,GROK_INSIDE_MEMORY_HOME), else under the default home (packset_core::home::resolve). packsetd resolves its home the same way.