From 27b4d1e915005eb70d323ac9b43540607d2f79cc Mon Sep 17 00:00:00 2001 From: hasna Date: Mon, 27 Jul 2026 10:31:00 +0300 Subject: [PATCH] chore(release): @hasna/hooks 0.5.0 Ships the destructive-command guard for the pre-bash hook: filesystem-root wipes and empty-collapse expansions are now blocked instead of allowed. Behaviour change for agents: commands that resolve to a protected root (/, /usr, /etc, $HOME, ~/.hasna and its subtrees) are refused, including when an expansion collapses to empty (the 2026-07-24 incident shape, rm -rf "$(bun pm cache)"/*). Analysis bounds fail closed: an analysis that stops modelling a command is marked degraded, and a degraded analysis carrying a recursive delete is refused. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2f032e6..8fd796f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hasna/hooks", - "version": "0.4.1", + "version": "0.5.0", "description": "Open source hooks library for AI coding agents - Install safety, quality, and automation hooks with a single command", "type": "module", "bin": {