pub async fn run_stdio(binding: ProjectBinding) -> Result<()>Expand description
Run tcode serve --stdio to completion.
Why: the top-level entry point main.rs calls for the serve --stdio
subcommand.
What: builds the router, logs start/stop to stderr, and enters
transport::run_stdio_loop, returning when it returns (stdin EOF or
SIGTERM/SIGINT). On return, calls SessionRegistry::shutdown_executions
(bounded by [SHUTDOWN_GRACE]) so an in-flight task.run gets a chance
to unwind before the process exits.
Test: run_stdio_router_recognises_proof_of_life_methods covers the
router assembly; the transport loop itself is covered by
transport::tests.