commit 77f979faf8491cc183f73bd78993e72f34ce9616 Author: Zhongwei Li Date: Sat Nov 29 18:22:54 2025 +0800 Initial commit diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json new file mode 100644 index 0000000..5d8d3dc --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,11 @@ +{ + "name": "macos-notifications", + "description": "Native macOS notification hooks using osascript - zero dependencies", + "version": "1.0.0", + "author": { + "name": "David Lopes" + }, + "hooks": [ + "./hooks" + ] +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..cdc5e7d --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# macos-notifications + +Native macOS notification hooks using osascript - zero dependencies diff --git a/hooks/hooks.json b/hooks/hooks.json new file mode 100644 index 0000000..cf41469 --- /dev/null +++ b/hooks/hooks.json @@ -0,0 +1,26 @@ +{ + "hooks": { + "Notification": [ + { + "matcher": "", + "hooks": [ + { + "type": "command", + "command": "osascript -e 'display notification \"Your attention needed\" with title \"Claude Code\" sound name \"Glass\"'" + } + ] + } + ], + "Stop": [ + { + "matcher": "", + "hooks": [ + { + "type": "command", + "command": "osascript -e 'display notification \"Task complete\" with title \"Claude Code\" sound name \"Purr\"'" + } + ] + } + ] + } +} diff --git a/plugin.lock.json b/plugin.lock.json new file mode 100644 index 0000000..f8e0f54 --- /dev/null +++ b/plugin.lock.json @@ -0,0 +1,45 @@ +{ + "$schema": "internal://schemas/plugin.lock.v1.json", + "pluginId": "gh:dnlopes/claude-code-plugins:macos-notifications", + "normalized": { + "repo": null, + "ref": "refs/tags/v20251128.0", + "commit": "e1b40846a19ea8f546f2434701818099a426db69", + "treeHash": "adba7d9ffea9ea530994bbe164d27e200db1ae0292d28012a30386047f5c48f6", + "generatedAt": "2025-11-28T10:16:32.487415Z", + "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": "macos-notifications", + "description": "Native macOS notification hooks using osascript - zero dependencies", + "version": "1.0.0" + }, + "content": { + "files": [ + { + "path": "README.md", + "sha256": "40dbe933c3c22b379795cb2545beded295ac29da7f4623bfe437925e4a6f59fa" + }, + { + "path": "hooks/hooks.json", + "sha256": "8b11bd4246184f5214fe68f72a60ef774458956210e0710032ed7cc85f28d050" + }, + { + "path": ".claude-plugin/plugin.json", + "sha256": "f269d3ece97f06cef519dd510d4ffbf2a3da7257b4f1c34f3ad1f0b16e703fc0" + } + ], + "dirSha256": "adba7d9ffea9ea530994bbe164d27e200db1ae0292d28012a30386047f5c48f6" + }, + "security": { + "scannedAt": null, + "scannerVersion": null, + "flags": [] + } +} \ No newline at end of file