Initial commit

This commit is contained in:
Zhongwei Li
2025-11-30 08:31:03 +08:00
commit 08c5fb0da5
8 changed files with 148 additions and 0 deletions

12
hooks/greeting.sh Executable file
View 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
View 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"
}
]
}
]
}
}