Skip to main content

Module client

Module client 

Source
Expand description

Client-side helpers for talking to the shared-world daemon: building a spawn request from local inputs and exchanging it over the control socket. Shared by lev run (and reusable by other clients). The socket-path resolution + connect live in the binary; these cores are unit-testable against a fake socket server.

Functions§

resolve_spawn_args
Resolve the local inputs of a spawn request: find the manifest, mint a run id from the agent’s directory name, record the working directory, and resolve any dynamic --<region> flags (raw values, @path or literal) against the blueprint’s declared caller-input regions.
send_spawn
Send a resolved spawn request to the daemon and report the outcome, printing the new run id on success.