Initial commit
This commit is contained in:
12
hooks/greeting.sh
Executable file
12
hooks/greeting.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Demo hook: Display greeting message after conversation
|
||||
|
||||
cat <<EOF
|
||||
{
|
||||
"systemMessage": "Demo Plugin1: SessionStart hook triggered",
|
||||
"continue": true
|
||||
}
|
||||
EOF
|
||||
|
||||
exit 0
|
||||
24
hooks/hooks.json
Normal file
24
hooks/hooks.json
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"hooks": {
|
||||
"Stop": [
|
||||
{
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "osascript -e 'display notification \"✅ Demo Plugin1: Stop hook triggered\" with title \"Claude Code Hook\"'"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"SessionStart": [
|
||||
{
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/greeting.sh"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user