Skip to content

v0.33.0

Choose a tag to compare

@agentfirstkit agentfirstkit released this 11 Aug 15:56
· 3 commits to main since this release
  • Add an afdata guard subcommand that validates a value against a destructive-verb operand type (path, tmp_path, cwd_path) and prints its normalized absolute path as raw bytes, failing closed to empty stdout so a rejection cannot become a wrong target
  • Derive tmp_path's containment root from platform-fixed structure or a system API rather than TMPDIR/TMP/TEMP, so a redirected environment cannot make the guard structurally trust the wrong directory
  • Add --under ROOT, an additional containment root that intersects with the operand type, for a target anchored to a directory the type vocabulary cannot name
  • Decide containment on a final symlink's target while still printing the link itself, and canonicalize $HOME in the reject set so a home reached through a symlink is no longer silently dropped
  • Add afdata_remove and afdata_trash to the Bash kit (API version 2), which put the guard's exit status in a command position where set -e acts on it, unlike the inline substitution that rm -f silently swallows
  • Give afdata_trash a Windows entry point that drives IFileOperation and refuses up front every condition under which Windows would delete permanently while reporting success, never falling back to deletion
  • Print the drive-form path on Windows instead of canonicalization's \?\ verbatim spelling, which the shell's own item API and .NET refuse
  • Extend the Bash skill reference with the rules the dogfood rounds produced: the containment root belongs to the call site, and the guard goes ahead of the first command that touches the filesystem