Expand description
plugins run — bare-naked port of legacy dispatch_external.
Resolves the installed plugin’s exec command (the tools model:
the manifest’s per-OS argv plus the caller’s args, run with CWD =
the plugin’s cli/ folder), spawns it with piped
stdin/stdout/stderr, and yields each parsed line from the plugin’s
stdout as a ResponseItem as it arrives. The bidirectional
protocol — plugin emits a Command request, the host runs it and
streams the result back into the plugin’s stdin wrapped in a
PluginCommandResponse envelope, terminated by a
CommandComplete marker — stays internal to the leaf. Consumers
observe Command requests as stream items but the actual execution
and stdin write-back happens here.