File size: 471 Bytes
765fe0a | 1 2 3 4 5 6 7 8 9 10 11 12 | #!/bin/sh
# Claude Code PostToolUse hook for the Bash tool (managed-settings.json):
# `uv tool install` / `pipx install` make virtualenvs, which cannot live on the
# Storage Bucket; the install is recorded and redone at every start
# (agentweb-install). Commands without those words never start node.
input=$(cat)
case "$input" in
*"tool install"* | *"pipx install"*) ;;
*) exit 0 ;;
esac
printf '%s' "$input" | exec node /app/scripts/agentweb-install.js record-hook
|