claude-notification-plugin 1.0.33 → 1.0.34

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.33",
3
+ "version": "1.0.34",
4
4
  "description": "Telegram, Windows toast, sound, and voice notifications for Claude Code task completion",
5
5
  "author": {
6
6
  "name": "Viacheslav Makarov",
@@ -149,9 +149,7 @@ async function sendTelegram (config, state) {
149
149
  chat_id: config.telegram.chatId,
150
150
  text: state._telegramText,
151
151
  };
152
- if (config.debug) {
153
- body.parse_mode = 'Markdown';
154
- }
152
+ body.parse_mode = 'Markdown';
155
153
  const res = await fetch(`${baseUrl}/sendMessage`, {
156
154
  method: 'POST',
157
155
  headers: { 'Content-Type': 'application/json' },
@@ -453,15 +451,18 @@ process.stdin.on('end', async () => {
453
451
  let message =
454
452
  `${title}\n\nProject: ${project}\nDuration: ${duration}s\nTrigger: ${eventType}`;
455
453
 
454
+ let telegramMessage =
455
+ `${title}\n\nProject: *${project}*\nDuration: ${duration}s\nTrigger: ${eventType}`;
456
+
456
457
  if (config.debug) {
457
- message += '\n\n*Debug:*\n';
458
- if (config.voice.enabled) {
459
- message += `\nVoice: ${getVoicePhrase(duration)}`;
460
- }
461
- message += `\n\nHook input:\n\`\`\`json\n${JSON.stringify(event, null, 2)}\n\`\`\``;
458
+ const debugBlock = '\n\n*Debug:*\n'
459
+ + (config.voice.enabled ? `\nVoice: ${getVoicePhrase(duration)}` : '')
460
+ + `\n\nHook input:\n\`\`\`json\n${JSON.stringify(event, null, 2)}\n\`\`\``;
461
+ message += debugBlock;
462
+ telegramMessage += debugBlock;
462
463
  }
463
464
 
464
- state._telegramText = `\u{1F916} ${message}`;
465
+ state._telegramText = `\u{1F916} ${telegramMessage}`;
465
466
  await sendTelegram(config, state);
466
467
  delete state._telegramText;
467
468
  saveState(state);
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.33",
4
+ "version": "1.0.34",
5
5
  "description": "Telegram, Windows toast, sound, and voice notifications for Claude Code task completion",
6
6
  "type": "module",
7
7
  "engines": {