@delt/claude-alarm 1.2.0 → 1.3.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delt/claude-alarm",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "Monitor and get notifications from multiple Claude Code sessions via MCP Channels",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1285,6 +1285,17 @@
1285
1285
  el.classList.toggle('show', !!msg);
1286
1286
  }
1287
1287
 
1288
+ function showUploadRejected(msg) {
1289
+ state.waitingReply[msg.sessionId] = false;
1290
+ const label = msg.withText ? 'Image and message not delivered' : 'Image not delivered';
1291
+ if (state.selectedSession === msg.sessionId) {
1292
+ renderMessages();
1293
+ showMentionError(`${label}: ${msg.reason}`);
1294
+ }
1295
+ state.notifications.unshift({ sessionId: msg.sessionId, title: label, message: msg.reason, level: 'warning', time: Date.now() });
1296
+ renderNotifications();
1297
+ }
1298
+
1288
1299
  let mentionState = { open: false, items: [], index: 0, start: -1 };
1289
1300
 
1290
1301
  function currentMentionQuery(input) {
@@ -1448,6 +1459,9 @@
1448
1459
  state.notifications.unshift({ sessionId: msg.sessionId, title: 'Reply', message: msg.content.slice(0, 100), level: 'info', time: msg.timestamp });
1449
1460
  renderNotifications();
1450
1461
  break;
1462
+ case 'upload_rejected':
1463
+ showUploadRejected(msg);
1464
+ break;
1451
1465
  case 'notification':
1452
1466
  state.notifications.unshift({ sessionId: msg.sessionId, title: msg.title, message: msg.message, level: msg.level || 'info', time: msg.timestamp });
1453
1467
  renderNotifications();