bwrap_path#

Run commands and agent-written programs inside an operating-system boundary. See the guide.

zett_agent.sandbox.binaries.bwrap_path(explicit=None)[source]#

Return the bubblewrap program to launch, or None when nothing can serve as one.

Parameters:

explicit (str | None) – A path or command the caller pinned; returned as given when set.

Return type:

str | None

The order is: the pinned value, then bwrap on PATH, then the bundled static build. A caller that receives None reports that bubblewrap is missing and names both ways to provide it.