bwrap_path#

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

zett_agent.sandbox.binaries.bwrap_path(explicit=None)[源代码]#

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

参数:

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

返回类型:

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.