Pixir.Delegate.DaemonServer (pixir v0.1.8)

Copy Markdown View Source

Manual foreground Delegate daemon with bounded local IPC.

This GenServer is the first cross-invocation residency boundary for Delegate service mode. A human or supervising caller starts one foreground Pixir process for a workspace; short-lived CLI clients then use loopback IPC to ask that process to run delegate start/status/attach/cancel against live OTP owners.

The daemon is intentionally not a production service manager. It does not auto-start, install launchd state, create a second durable store, or spawn one OS process per child. The endpoint file is only live capability metadata. The Session Log remains durable truth.

Summary

Functions

Block until the daemon process exits.

Returns a specification to start this module under a supervisor.

Start a Delegate daemon server for a workspace.

Return daemon startup metadata safe for stdout.

Functions

await_stop(pid)

@spec await_stop(pid()) :: {:ok, :stopped}

Block until the daemon process exits.

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts)

@spec start_link(keyword()) :: GenServer.on_start()

Start a Delegate daemon server for a workspace.

started_payload(pid)

@spec started_payload(pid()) :: {:ok, map()} | {:error, map()}

Return daemon startup metadata safe for stdout.