From ce17f93f10f65a0ddc42eb9374cde92dbe6bb412 Mon Sep 17 00:00:00 2001 From: Zhongwei Li Date: Sun, 30 Nov 2025 08:29:54 +0800 Subject: [PATCH] Initial commit --- .claude-plugin/plugin.json | 12 ++++++++++ README.md | 3 +++ hooks/hooks.json | 27 +++++++++++++++++++++++ plugin.lock.json | 45 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 87 insertions(+) create mode 100644 .claude-plugin/plugin.json create mode 100644 README.md create mode 100644 hooks/hooks.json create mode 100644 plugin.lock.json diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json new file mode 100644 index 0000000..113b034 --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,12 @@ +{ + "name": "ccode-notify", + "description": "在需要用户交互或会话停止时发送系统桌面通知(Notification/Stop hooks,基于 notify-send/libnotify;思路参考 explanatory-output-style 的 hooks 注入模式)", + "version": "1.0.0", + "author": { + "name": "junjiangao", + "email": "junjiangao@gmail.com" + }, + "hooks": [ + "./hooks" + ] +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..adb503b --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# ccode-notify + +在需要用户交互或会话停止时发送系统桌面通知(Notification/Stop hooks,基于 notify-send/libnotify;思路参考 explanatory-output-style 的 hooks 注入模式) diff --git a/hooks/hooks.json b/hooks/hooks.json new file mode 100644 index 0000000..5b13abb --- /dev/null +++ b/hooks/hooks.json @@ -0,0 +1,27 @@ +{ + "description": "在需要用户交互或会话停止时发送系统桌面通知(Notification 与 Stop hooks,基于 notify-send/libnotify)", + "hooks": { + "Notification": [ + { + "hooks": [ + { + "type": "command", + "command": "${CLAUDE_PLUGIN_ROOT}/hooks-handlers/notify-interaction.py", + "timeout": 5 + } + ] + } + ], + "Stop": [ + { + "hooks": [ + { + "type": "command", + "command": "${CLAUDE_PLUGIN_ROOT}/hooks-handlers/notify-stop.py", + "timeout": 5 + } + ] + } + ] + } +} diff --git a/plugin.lock.json b/plugin.lock.json new file mode 100644 index 0000000..f7f4980 --- /dev/null +++ b/plugin.lock.json @@ -0,0 +1,45 @@ +{ + "$schema": "internal://schemas/plugin.lock.v1.json", + "pluginId": "gh:junjiangao/ccode:plugins/ccode-notify", + "normalized": { + "repo": null, + "ref": "refs/tags/v20251128.0", + "commit": "fea7da9da3a66c403551b66f6f708b00e5bd8c7c", + "treeHash": "9fc6f47aaab0a79fcd2adf5a3885bc162bd97741284984272007604fe3e9cf33", + "generatedAt": "2025-11-28T10:19:22.285516Z", + "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": "ccode-notify", + "description": "在需要用户交互或会话停止时发送系统桌面通知(Notification/Stop hooks,基于 notify-send/libnotify;思路参考 explanatory-output-style 的 hooks 注入模式)", + "version": "1.0.0" + }, + "content": { + "files": [ + { + "path": "README.md", + "sha256": "199a4f6ced983a49a924d51b29f694999459e4673e3cf5b143d62978ad7640c0" + }, + { + "path": "hooks/hooks.json", + "sha256": "0b6bbb6bb7c0b774e6323223df94ba0492edcf52f0bb89bb72ec5f74c5896d5f" + }, + { + "path": ".claude-plugin/plugin.json", + "sha256": "5d4f0123104e1db686ac3b69d80acc285d0169711c55dbb6919f2cae4779f996" + } + ], + "dirSha256": "9fc6f47aaab0a79fcd2adf5a3885bc162bd97741284984272007604fe3e9cf33" + }, + "security": { + "scannedAt": null, + "scannerVersion": null, + "flags": [] + } +} \ No newline at end of file