Skip to main content

Module spawn

Module spawn 

Source
Expand description

daemon spawn — launcher + resident foreground daemon.

Launcher (foreground unset/false): the exact lock flow api spawn / viewer spawn use — try_read the lock, re-exec this cli as the foreground daemon if it isn’t held, re-check on child exit.

Foreground (foreground:true): the resident daemon. Under a blocking init gate it acquires the singleton lock, then launches every daemon: true plugin via the SHARED plugin executor (plugins::run::execute) as <exec> daemon begin — so each resident plugin gets the full bidirectional protocol (it can execute nested commands, exactly like plugins run and the conduit’s mcp begin). The plugins are leashed to this process; if any exits, the whole daemon exits (and the OS releases the lock).

Modules§

request_schema
response_schema

Functions§

execute
spawn
Ensure the resident daemon is up, returning its published lock content. Mirrors crate::command::viewer::spawn::spawn: re-execs THIS cli as the foreground daemon via the shared spawn_until_lock_published helper.