claude-notification-plugin 1.0.76 → 1.0.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/plugin.json +1 -1
- package/README.md +4 -0
- package/listener/task-runner.js +1 -0
- package/notifier/notifier.js +10 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-notification-plugin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.78",
|
|
4
4
|
"description": "Claude Code task-completion notifications: Telegram, desktop notifications (Windows/macOS/Linux), sound, and voice",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Viacheslav Makarov",
|
package/README.md
CHANGED
|
@@ -165,6 +165,10 @@ ENV: **CLAUDE_NOTIFY_DISABLE**
|
|
|
165
165
|
Set to `1` to disable all notifications for the current project.
|
|
166
166
|
Default: **0**
|
|
167
167
|
|
|
168
|
+
ENV: **CLAUDE_NOTIFY_AFTER_LISTENER**
|
|
169
|
+
When a task is started by the Telegram Listener, notifications are suppressed by default to avoid duplicates (the listener sends its own status messages). Set to `1` to enable notifier notifications for listener-spawned tasks.
|
|
170
|
+
Default: **0**
|
|
171
|
+
|
|
168
172
|
### Per-project configuration
|
|
169
173
|
|
|
170
174
|
Add to `.claude/settings.local.json` in the project root to control channels per project:
|
package/listener/task-runner.js
CHANGED
package/notifier/notifier.js
CHANGED
|
@@ -153,8 +153,16 @@ function loadConfig () {
|
|
|
153
153
|
// ----------------------
|
|
154
154
|
|
|
155
155
|
function isNotifierDisabled () {
|
|
156
|
-
|
|
157
|
-
|| process.env.CLAUDE_NOTIFY_DISABLE === 'true'
|
|
156
|
+
if (process.env.CLAUDE_NOTIFY_DISABLE === '1'
|
|
157
|
+
|| process.env.CLAUDE_NOTIFY_DISABLE === 'true') {
|
|
158
|
+
return true;
|
|
159
|
+
}
|
|
160
|
+
// Skip notifications for listener-spawned tasks unless explicitly enabled
|
|
161
|
+
if (process.env.CLAUDE_NOTIFY_FROM_LISTENER === '1'
|
|
162
|
+
&& process.env.CLAUDE_NOTIFY_AFTER_LISTENER !== '1') {
|
|
163
|
+
return true;
|
|
164
|
+
}
|
|
165
|
+
return false;
|
|
158
166
|
}
|
|
159
167
|
|
|
160
168
|
// ----------------------
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-notification-plugin",
|
|
3
3
|
"productName": "claude-notification-plugin",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.78",
|
|
5
5
|
"description": "Claude Code task-completion notifications: Telegram, desktop notifications (Windows/macOS/Linux), sound, and voice",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"engines": {
|