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

View File

@@ -0,0 +1,11 @@
{
"name": "tools-for-mac",
"description": "Useful tools and hooks for macOS users",
"version": "0.0.1",
"author": {
"name": "fussy113"
},
"hooks": [
"./hooks"
]
}

3
README.md Normal file
View File

@@ -0,0 +1,3 @@
# tools-for-mac
Useful tools and hooks for macOS users

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

53
plugin.lock.json Normal file
View File

@@ -0,0 +1,53 @@
{
"$schema": "internal://schemas/plugin.lock.v1.json",
"pluginId": "gh:fussy113/claude-code-marketplace:plugins/tools-for-mac",
"normalized": {
"repo": null,
"ref": "refs/tags/v20251128.0",
"commit": "d84b7cec68533bdbe4dbf715634a6909100d0a45",
"treeHash": "1921dfce1bcb004030c5ee9a7d2332629ce015d00a9e72b3bf6ff6bf76a37352",
"generatedAt": "2025-11-28T10:16:56.151065Z",
"toolVersion": "publish_plugins.py@0.2.0"
},
"origin": {
"remote": "git@github.com:zhongweili/42plugin-data.git",
"branch": "master",
"commit": "aa1497ed0949fd50e99e70d6324a29c5b34f9390",
"repoRoot": "/Users/zhongweili/projects/openmind/42plugin-data"
},
"manifest": {
"name": "tools-for-mac",
"description": "Useful tools and hooks for macOS users",
"version": "0.0.1"
},
"content": {
"files": [
{
"path": "README.md",
"sha256": "3859b9eac4f786ddf00b8261c7f41c34804bc881207373458c0ce637aec2d0b2"
},
{
"path": "hooks/hooks.json",
"sha256": "5e533f829f4f64e3d54c9f4bb8b41dd397f54821e734f70b02b2a9ca772b02c1"
},
{
"path": "hooks/stop.sh",
"sha256": "3979c828b1b08e69c6bc1beb8b1b528e4da0ef96bcb208c895dc422aa26fc58e"
},
{
"path": "hooks/notification.sh",
"sha256": "b7b44c59aa92da0c78950618207352c08e26fdeef39cd78ecae8dc3dd7595bad"
},
{
"path": ".claude-plugin/plugin.json",
"sha256": "3ba4cbc04254ec377825555eda563d6540c645dade3ec98c18e9062fae4068e2"
}
],
"dirSha256": "1921dfce1bcb004030c5ee9a7d2332629ce015d00a9e72b3bf6ff6bf76a37352"
},
"security": {
"scannedAt": null,
"scannerVersion": null,
"flags": []
}
}