build_seatbelt_profile#
Run commands and agent-written programs inside an operating-system boundary. See the guide.
- zett_agent.sandbox.seatbelt.build_seatbelt_profile(resolved, *, temp_directories=())[源代码]#
Render a resolved policy as a Seatbelt profile and its parameters.
Paths never appear in the profile text. Each is a
(param "KEY")thatsandbox-exec -D KEY=valuefills in, so a path holding a quote, a parenthesis or a newline cannot change what the profile means.Rules are ordered so that the last match wins: permissions first, then the denials that override them.
- 返回:
The profile text and the
KEY -> valueparameters it refers to.- 参数:
resolved (ResolvedPolicy)
temp_directories (tuple[Path, ...])
- 返回类型:
tuple[str, dict[str, str]]