claude-notification-plugin 1.1.17 → 1.1.19
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/commit-sha +1 -1
- package/notifier/notifier.js +9 -6
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-notification-plugin",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.19",
|
|
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/commit-sha
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
e7db3bf6db082f1c98b8931d80a20bf91300fe0a
|
package/notifier/notifier.js
CHANGED
|
@@ -280,6 +280,7 @@ async function sendTelegram (config, state) {
|
|
|
280
280
|
body: JSON.stringify(body),
|
|
281
281
|
});
|
|
282
282
|
const data = await res.json();
|
|
283
|
+
if (!data.ok) console.error('[telegram] HTML send failed:', JSON.stringify(data));
|
|
283
284
|
if (data.ok && data.result?.message_id) {
|
|
284
285
|
if (!state.sentMessages) {
|
|
285
286
|
state.sentMessages = [];
|
|
@@ -688,18 +689,20 @@ process.stdin.on('end', async () => {
|
|
|
688
689
|
const desktopStatus = eventType === 'Notification' ? 'Waiting' : 'Finished';
|
|
689
690
|
|
|
690
691
|
const branch = getBranch(cwd);
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
692
|
+
let label = `/${project}`;
|
|
693
|
+
let labelHtml = `/${escapeHtml(project)}`;
|
|
694
|
+
if (branch) {
|
|
695
|
+
label += `/${branch}`;
|
|
696
|
+
labelHtml += `/${escapeHtml(branch)}`;
|
|
697
|
+
}
|
|
698
|
+
labelHtml = `<code>${labelHtml}</code>`
|
|
696
699
|
const triggerLine = config.debug ? `\nTrigger: ${eventType}` : '';
|
|
697
700
|
|
|
698
701
|
const desktopTitle = label;
|
|
699
702
|
const desktopMessage = desktopStatus;
|
|
700
703
|
|
|
701
704
|
let telegramMessage =
|
|
702
|
-
`${statusEmoji}
|
|
705
|
+
`${statusEmoji} ${labelHtml}\n(duration: ${duration}s)${triggerLine}`;
|
|
703
706
|
|
|
704
707
|
if (config.telegram.includeLastCcMessageInTelegram && event.last_assistant_message) {
|
|
705
708
|
const maxLen = 3500;
|
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.1.
|
|
4
|
+
"version": "1.1.19",
|
|
5
5
|
"description": "Claude Code task-completion notifications: Telegram, desktop notifications (Windows/macOS/Linux), sound, and voice",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"engines": {
|