Initial commit

This commit is contained in:
Zhongwei Li
2025-11-29 18:27:42 +08:00
commit 8950f3ecf1
6 changed files with 104 additions and 0 deletions

24
hooks/hooks.json Normal file
View File

@@ -0,0 +1,24 @@
{
"hooks": {
"Notification": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/notification.sh"
}
]
}
],
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/stop.sh"
}
]
}
]
}
}

6
hooks/notification.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
osascript -e 'display notification "Claude Codeが許可を求めています" with title "Claude Code" subtitle "確認待ち" sound name "Glass"'
# Exit successfully (don't block the action)
exit 0

7
hooks/stop.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
# Display macOS notification using osascript
osascript -e 'display notification "タスクが完了しました" with title "Claude Code" subtitle "処理終了" sound name "Hero"'
# Exit successfully (don't block the stop)
exit 0