commit 8950f3ecf1755459eb7a51ff29f94bbbbfdfff59 Author: Zhongwei Li Date: Sat Nov 29 18:27:42 2025 +0800 Initial commit diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json new file mode 100644 index 0000000..f8a7cbb --- /dev/null +++ b/.claude-plugin/plugin.json @@ -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" + ] +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..0e3969f --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# tools-for-mac + +Useful tools and hooks for macOS users diff --git a/hooks/hooks.json b/hooks/hooks.json new file mode 100644 index 0000000..9719d7a --- /dev/null +++ b/hooks/hooks.json @@ -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" + } + ] + } + ] + } +} diff --git a/hooks/notification.sh b/hooks/notification.sh new file mode 100755 index 0000000..61f8bb0 --- /dev/null +++ b/hooks/notification.sh @@ -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 diff --git a/hooks/stop.sh b/hooks/stop.sh new file mode 100755 index 0000000..606d0d7 --- /dev/null +++ b/hooks/stop.sh @@ -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 diff --git a/plugin.lock.json b/plugin.lock.json new file mode 100644 index 0000000..2d19352 --- /dev/null +++ b/plugin.lock.json @@ -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": [] + } +} \ No newline at end of file