claude-notification-plugin 1.0.71 → 1.0.72

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-notification-plugin",
3
- "version": "1.0.71",
3
+ "version": "1.0.72",
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
@@ -73,7 +73,7 @@ Config file: `~/.claude/notifier.config.json`
73
73
  },
74
74
  "webhookUrl": "",
75
75
  "sendUserPromptToWebhook": false,
76
- "minSeconds": 15,
76
+ "notifyAfterSeconds": 15,
77
77
  "notifyOnWaiting": false,
78
78
  "debug": false
79
79
  }
@@ -149,9 +149,10 @@ Default: **false**
149
149
  ENV: `CLAUDE_NOTIFY_SEND_USER_PROMPT_TO_WEBHOOK`
150
150
 
151
151
 
152
- **minSeconds**
152
+ **notifyAfterSeconds**
153
153
  Skip notifications for tasks shorter than this (seconds).
154
154
  Default: **15**
155
+ ENV: `CLAUDE_NOTIFY_AFTER_SECONDS`
155
156
 
156
157
 
157
158
  **debug**
@@ -180,7 +181,8 @@ Add to `.claude/settings.local.json` in the project root to control channels per
180
181
  "CLAUDE_NOTIFY_DEBUG": 0,
181
182
  "CLAUDE_NOTIFY_INCLUDE_LAST_CC_MESSAGE_IN_TELEGRAM": 1,
182
183
  "CLAUDE_NOTIFY_WEBHOOK_URL": "",
183
- "CLAUDE_NOTIFY_SEND_USER_PROMPT_TO_WEBHOOK": 0
184
+ "CLAUDE_NOTIFY_SEND_USER_PROMPT_TO_WEBHOOK": 0,
185
+ "CLAUDE_NOTIFY_AFTER_SECONDS": 15
184
186
  }
185
187
  }
186
188
  ```
package/bin/install.js CHANGED
@@ -163,7 +163,7 @@ async function main () {
163
163
  },
164
164
  webhookUrl: '',
165
165
  sendUserPromptToWebhook: false,
166
- minSeconds: 15,
166
+ notifyAfterSeconds: 15,
167
167
  notifyOnWaiting: false,
168
168
  debug: false,
169
169
  };
package/commands/setup.md CHANGED
@@ -18,7 +18,7 @@ Help the user configure the notification plugin. The config file is `~/.claude/n
18
18
  - If auto-detection fails, ask the user to enter the Chat ID manually.
19
19
  - If Chat ID already exists, show it and ask if the user wants to keep it.
20
20
 
21
- 4. **Write the config** to `~/.claude/notifier.config.json`. Merge with existing config — do NOT overwrite settings that already exist (`minSeconds`, `notifyOnWaiting`, `debug`, channel `enabled` flags, etc.). Only update `telegram.token` and `telegram.chatId` with the values from this session.
21
+ 4. **Write the config** to `~/.claude/notifier.config.json`. Merge with existing config — do NOT overwrite settings that already exist (`notifyAfterSeconds`, `notifyOnWaiting`, `debug`, channel `enabled` flags, etc.). Only update `telegram.token` and `telegram.chatId` with the values from this session.
22
22
 
23
23
  Default config structure (for new installs):
24
24
  ```json
@@ -32,7 +32,7 @@ Help the user configure the notification plugin. The config file is `~/.claude/n
32
32
  "windowsNotification": { "enabled": true },
33
33
  "sound": { "enabled": true, "file": "C:/Windows/Media/notify.wav" },
34
34
  "voice": { "enabled": true },
35
- "minSeconds": 15,
35
+ "notifyAfterSeconds": 15,
36
36
  "notifyOnWaiting": false,
37
37
  "debug": false
38
38
  }
@@ -62,7 +62,7 @@ function loadConfig () {
62
62
  },
63
63
  webhookUrl: '',
64
64
  sendUserPromptToWebhook: false,
65
- minSeconds: 15,
65
+ notifyAfterSeconds: 15,
66
66
  notifyOnWaiting: false,
67
67
  debug: false,
68
68
  };
@@ -83,8 +83,8 @@ function loadConfig () {
83
83
  if (user.voice) {
84
84
  config.voice = { ...config.voice, ...user.voice };
85
85
  }
86
- if (typeof user.minSeconds === 'number') {
87
- config.minSeconds = user.minSeconds;
86
+ if (typeof user.notifyAfterSeconds === 'number') {
87
+ config.notifyAfterSeconds = user.notifyAfterSeconds;
88
88
  }
89
89
  if (typeof user.notifyOnWaiting === 'boolean') {
90
90
  config.notifyOnWaiting = user.notifyOnWaiting;
@@ -138,6 +138,12 @@ function loadConfig () {
138
138
  if (process.env.CLAUDE_NOTIFY_SEND_USER_PROMPT_TO_WEBHOOK !== undefined) {
139
139
  config.sendUserPromptToWebhook = process.env.CLAUDE_NOTIFY_SEND_USER_PROMPT_TO_WEBHOOK === '1';
140
140
  }
141
+ if (process.env.CLAUDE_NOTIFY_AFTER_SECONDS !== undefined) {
142
+ const val = Number(process.env.CLAUDE_NOTIFY_AFTER_SECONDS);
143
+ if (!Number.isNaN(val)) {
144
+ config.notifyAfterSeconds = val;
145
+ }
146
+ }
141
147
 
142
148
  return config;
143
149
  }
@@ -666,7 +672,7 @@ process.stdin.on('end', async () => {
666
672
  duration = Math.round((Date.now() - session.start) / 1000);
667
673
  }
668
674
 
669
- if (duration < config.minSeconds) {
675
+ if (duration < config.notifyAfterSeconds) {
670
676
  process.exit(0);
671
677
  }
672
678
 
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.71",
4
+ "version": "1.0.72",
5
5
  "description": "Claude Code task-completion notifications: Telegram, desktop notifications (Windows/macOS/Linux), sound, and voice",
6
6
  "type": "module",
7
7
  "engines": {