Skip to content

Commit ecf7c7a

Browse files
authored
Merge pull request #2 from warpdotdev/harry/app-3555-ensure-that-claude-code-plugin-works-for-all-claude
Warn warp plugin users when jq is not installed
2 parents 71c64d1 + 5369f3e commit ecf7c7a

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

plugins/warp/scripts/on-session-start.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22
# Hook script for Claude Code SessionStart event
33
# Shows welcome message, Warp detection status, and emits plugin version
44

5+
if ! command -v jq &>/dev/null; then
6+
cat << 'EOF'
7+
{
8+
"systemMessage": "⚠️ Warp notifications require jq — install it with your system package manager (e.g. brew install jq, apt install jq)"
9+
}
10+
EOF
11+
exit 0
12+
fi
13+
514
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
615
source "$SCRIPT_DIR/build-payload.sh"
716

0 commit comments

Comments
 (0)