feat: Add support for per-project sandbox overlays (#294)

* feat: Add support for per-project sandbox overlays

* chore: Maintain consistency with TUI experience

* fix: Code review fixes
This commit is contained in:
Abhisek Datta
2026-05-26 21:06:57 +05:30
committed by GitHub
parent 321896996f
commit b03e82e3f2
25 changed files with 1837 additions and 1 deletions
+7
View File
@@ -35,6 +35,13 @@ func parseSandboxAllowOverrides(raw []string) ([]SandboxAllowOverride, error) {
return overrides, nil
}
// ParseSingleOverride is the exported entry point for callers outside this
// package (e.g. cmd handlers persisting overlay entries). It mirrors the
// validation used for --sandbox-allow flag values.
func ParseSingleOverride(raw string) (SandboxAllowOverride, error) {
return parseSingleOverride(raw)
}
// parseSingleOverride parses and validates a single "type=value" string.
func parseSingleOverride(raw string) (SandboxAllowOverride, error) {
// Split on first '=' only to handle values containing '='