From 3dde57ba8d25f70028a966b61d346ee70518c898 Mon Sep 17 00:00:00 2001 From: Asen Lekov Date: Sat, 14 Nov 2026 14:51:23 +0200 Subject: [PATCH] chore(repo): bump the dira bootstrap pin to v0.14.0 and guard hook commands (#238) Signed-off-by: Asen Lekov Co-authored-by: Claude Opus 5.5 --- .claude/settings.json | 16 ++++++++-------- .dira/bootstrap.sh | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.claude/settings.json b/.claude/settings.json index 96302ed1..c1b63ce8 100644 --- a/.claude/settings.json +++ b/.claude/settings.json @@ -4,7 +4,7 @@ { "hooks": [ { - "command": "sh \"${CLAUDE_PROJECT_DIR:-.}\"/.dira/hook.sh claude", + "command": "[ ! -f \"${CLAUDE_PROJECT_DIR:-.}\"/.dira/hook.sh ] || sh \"${CLAUDE_PROJECT_DIR:-.}\"/.dira/hook.sh claude", "type": "command" } ] @@ -14,7 +14,7 @@ { "hooks": [ { - "command": "sh \"${CLAUDE_PROJECT_DIR:-.}\"/.dira/hook.sh claude", + "command": "[ ! -f \"${CLAUDE_PROJECT_DIR:-.}\"/.dira/hook.sh ] || sh \"${CLAUDE_PROJECT_DIR:-.}\"/.dira/hook.sh claude", "type": "command" } ], @@ -25,7 +25,7 @@ { "hooks": [ { - "command": "sh \"${CLAUDE_PROJECT_DIR:-.}\"/.dira/hook.sh claude", + "command": "[ ! -f \"${CLAUDE_PROJECT_DIR:-.}\"/.dira/hook.sh ] || sh \"${CLAUDE_PROJECT_DIR:-.}\"/.dira/hook.sh claude", "type": "command" } ], @@ -36,7 +36,7 @@ { "hooks": [ { - "command": "sh \"${CLAUDE_PROJECT_DIR:-.}\"/.dira/hook.sh claude", + "command": "[ ! -f \"${CLAUDE_PROJECT_DIR:-.}\"/.dira/hook.sh ] || sh \"${CLAUDE_PROJECT_DIR:-.}\"/.dira/hook.sh claude", "type": "command" } ] @@ -46,7 +46,7 @@ { "hooks": [ { - "command": "sh \"${CLAUDE_PROJECT_DIR:-.}\"/.dira/bootstrap.sh claude", + "command": "[ ! -f \"${CLAUDE_PROJECT_DIR:-.}\"/.dira/bootstrap.sh ] || sh \"${CLAUDE_PROJECT_DIR:-.}\"/.dira/bootstrap.sh claude", "timeout": 300, "type": "command" } @@ -57,7 +57,7 @@ { "hooks": [ { - "command": "sh \"${CLAUDE_PROJECT_DIR:-.}\"/.dira/hook.sh claude", + "command": "[ ! -f \"${CLAUDE_PROJECT_DIR:-.}\"/.dira/hook.sh ] || sh \"${CLAUDE_PROJECT_DIR:-.}\"/.dira/hook.sh claude", "type": "command" } ] @@ -67,7 +67,7 @@ { "hooks": [ { - "command": "sh \"${CLAUDE_PROJECT_DIR:-.}\"/.dira/hook.sh claude", + "command": "[ ! -f \"${CLAUDE_PROJECT_DIR:-.}\"/.dira/hook.sh ] || sh \"${CLAUDE_PROJECT_DIR:-.}\"/.dira/hook.sh claude", "type": "command" } ] @@ -77,7 +77,7 @@ { "hooks": [ { - "command": "sh \"${CLAUDE_PROJECT_DIR:-.}\"/.dira/hook.sh claude", + "command": "[ ! -f \"${CLAUDE_PROJECT_DIR:-.}\"/.dira/hook.sh ] || sh \"${CLAUDE_PROJECT_DIR:-.}\"/.dira/hook.sh claude", "type": "command" } ] diff --git a/.dira/bootstrap.sh b/.dira/bootstrap.sh index 3757f876..5d23b4b8 100755 --- a/.dira/bootstrap.sh +++ b/.dira/bootstrap.sh @@ -48,15 +48,15 @@ harness="${1:-claude}" dir="$(CDPATH='' cd -- "$(dirname -- "$0")" && pwd)" # Pinned at generation time; override with DIRA_VERSION for a one-off. -version="${DIRA_VERSION:-0.6.0}" +version="${DIRA_VERSION:-0.14.0}" # The literal pin, unaffected by a DIRA_VERSION override — used below to # decide whether the embedded release digests still apply to what we're # about to download. -pinned_version="0.6.0" +pinned_version="0.14.0" # Release digests embedded at generation time (empty when unpinned — the # bootstrap then falls back to the release's own .sha256 asset). -expected_x86_64="" -expected_aarch64="" +expected_x86_64="79ea84cca74ca01966826cf053d0509497bde5cf1335c1ec87e04a9f986cc382" +expected_aarch64="65b879ab1221bde758dd0c53bdaa572d3cdde9d0719fd91f9b82cdcf2a983678" repo="dodi-smart/dirahq-cli" log() {