safe-chains 0.215.0

Auto-allow safe bash commands in agentic coding tools
Documentation
[[command]]
name = "iconutil"
description = "macOS utility for converting between `.iconset` directories and `.icns` icon files, and for extracting icons from compiled `.car` asset catalogs. Always a write operation: emits a converted icon file to disk (-o overrides the default location). The --convert {icns|iconset} flag is required to choose direction. Entirely local; no network access. Surface is small and frozen (man page last updated in 2012)."
url = "https://keith.github.io/xcode-man-pages/iconutil.1.html"
researched_version = "macOS 14 (man page dated 2012-04-10; surface unchanged)"
level = "SafeWrite"
bare = false
standalone = ["--help", "-h"]
valued = ["--convert", "--output", "-c", "-o"]
examples_safe = ["iconutil -c iconset -o ./out.iconset app.icns"]
examples_denied = [
  "iconutil -c icns -o /etc/cron.d/job x.iconset",
  "iconutil -c iconset -o ./out ~/.ssh/id_rsa",
]

# -o/--output writes the converted icon; the positional is the .iconset/.car source (a read).
[command.path_gate]
positional = "read"
flags = { "-o" = "write", "--output" = "write" }