claude-notification-plugin 1.0.55 → 1.0.59
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 +3 -3
- package/bin/install.js +1 -1
- package/notifier/notifier.js +6 -6
- 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.59",
|
|
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
|
@@ -105,7 +105,7 @@ Each channel has an `enabled` flag (`true`/`false`) for global control.
|
|
|
105
105
|
|
|
106
106
|
`debug` — include extra info in notifications: voice phrase text, full hook event JSON (formatted as code block in Telegram). Default: `false`.
|
|
107
107
|
|
|
108
|
-
Environment variables `
|
|
108
|
+
Environment variables `CLAUDE_NOTIFY_TELEGRAM_TOKEN` and `CLAUDE_NOTIFY_TELEGRAM_CHAT_ID` override config file values.
|
|
109
109
|
|
|
110
110
|
### Per-channel environment variables
|
|
111
111
|
|
|
@@ -130,7 +130,7 @@ Add to `.claude/settings.local.json` in the project root to control channels per
|
|
|
130
130
|
```json
|
|
131
131
|
{
|
|
132
132
|
"env": {
|
|
133
|
-
"
|
|
133
|
+
"CLAUDE_NOTIFY_DISABLE": 0,
|
|
134
134
|
"CLAUDE_NOTIFY_TELEGRAM": 1,
|
|
135
135
|
"CLAUDE_NOTIFY_DESKTOP": 1,
|
|
136
136
|
"CLAUDE_NOTIFY_SOUND": 1,
|
|
@@ -149,7 +149,7 @@ To disable all notifications for a project:
|
|
|
149
149
|
```json
|
|
150
150
|
{
|
|
151
151
|
"env": {
|
|
152
|
-
"
|
|
152
|
+
"CLAUDE_NOTIFY_DISABLE": "1"
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
```
|
package/bin/install.js
CHANGED
|
@@ -237,7 +237,7 @@ async function main () {
|
|
|
237
237
|
|
|
238
238
|
console.log('');
|
|
239
239
|
console.log('To disable per project, add to .claude/settings.local.json:');
|
|
240
|
-
console.log(' { "env": { "
|
|
240
|
+
console.log(' { "env": { "CLAUDE_NOTIFY_DISABLE": "1" } }');
|
|
241
241
|
console.log('');
|
|
242
242
|
}
|
|
243
243
|
|
package/notifier/notifier.js
CHANGED
|
@@ -103,11 +103,11 @@ function loadConfig () {
|
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
if (process.env.
|
|
107
|
-
config.telegram.token = process.env.
|
|
106
|
+
if (process.env.CLAUDE_NOTIFY_TELEGRAM_TOKEN) {
|
|
107
|
+
config.telegram.token = process.env.CLAUDE_NOTIFY_TELEGRAM_TOKEN;
|
|
108
108
|
}
|
|
109
|
-
if (process.env.
|
|
110
|
-
config.telegram.chatId = process.env.
|
|
109
|
+
if (process.env.CLAUDE_NOTIFY_TELEGRAM_CHAT_ID) {
|
|
110
|
+
config.telegram.chatId = process.env.CLAUDE_NOTIFY_TELEGRAM_CHAT_ID;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
// Per-channel env overrides (0 = off, 1 = on)
|
|
@@ -147,8 +147,8 @@ function loadConfig () {
|
|
|
147
147
|
// ----------------------
|
|
148
148
|
|
|
149
149
|
function isNotifierDisabled () {
|
|
150
|
-
return process.env.
|
|
151
|
-
|| process.env.
|
|
150
|
+
return process.env.CLAUDE_NOTIFY_DISABLE === '1'
|
|
151
|
+
|| process.env.CLAUDE_NOTIFY_DISABLE === 'true';
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
// ----------------------
|
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.59",
|
|
5
5
|
"description": "Claude Code task-completion notifications: Telegram, desktop notifications (Windows/macOS/Linux), sound, and voice",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"engines": {
|