Skip to main content

Module spawn

Module spawn 

Source
Expand description

daemon spawn — start (or confirm) the per-state plugin daemon.

Two modes, selected by dangerous_advanced.foreground:

  • launcher (unset/false): probe the per-state daemon lock; if a daemon already holds it, return readiness immediately, otherwise re-exec this binary as daemon spawn with foreground: true detached and return once it is up.
  • foreground (true): THIS process becomes the resident daemon — it acquires the lock, launches every daemon: true plugin as <exec> daemon begin (leashed), binds a per-plugin socket, emits one readiness item, then serves until any plugin exits.

Streaming leaf: the foreground daemon yields the readiness item as its first line (the launcher’s handshake) and keeps the stream open while it serves; the launcher yields exactly one readiness item.

Modules§

request_schema
response_schema

Structs§

Args
Command
Request
RequestDangerousAdvanced
ResponseItem
One daemon-spawn stream item. The foreground daemon emits this once it is ready (readiness handshake) and the launcher emits it once the daemon is confirmed up.

Enums§

Path
Schema

Functions§

execute
execute_transform