pub fn run(args: &InitArgs, socket: Option<&str>) -> Result<()>Expand description
Run basil init: build the scaffolding, refuse to clobber unless --force,
write the files, and print the next-steps summary.
socket is the resolved global --socket <path> flag. The socket written
into basil-agent.toml follows this precedence (highest first): explicit
--socket <path> > BASIL_SOCKET env var > <dir>/basil.sock. The clap
global flag already folds BASIL_SOCKET into socket; the direct env read
here keeps the precedence correct for non-clap callers too.