omni-notify-mcp 1.3.498 → 1.3.499

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.
@@ -39,6 +39,7 @@ export function listenForever(platform, sinks, intervalMs, running) {
39
39
  export async function pollForever(source, route, log, intervalMs, running) {
40
40
  let idleReason = "";
41
41
  let errors = 0;
42
+ let failure = "";
42
43
  while (running()) {
43
44
  try {
44
45
  const why = source.idleReason();
@@ -58,14 +59,19 @@ export async function pollForever(source, route, log, intervalMs, running) {
58
59
  if (errors > 0) {
59
60
  log("·", source.name, `recovered after ${errors} attempt(s)`);
60
61
  errors = 0;
62
+ failure = "";
61
63
  }
62
64
  await new Promise((r) => setTimeout(r, intervalMs));
63
65
  }
64
66
  catch (err) {
65
67
  errors++;
66
68
  const delay = Math.min(60_000, 2000 * Math.pow(2, Math.min(5, errors - 1)));
67
- // OWNER: the poll loop is the workflow's trigger root; a failed read is classified by its message, reported, and retried with backoff.
68
- log("·", `${source.name}:error`, `poll attempt ${errors} failed: ${err instanceof Error ? err.message : String(err)} — retrying in ${delay}ms`);
69
+ const why = err instanceof Error ? err.message : String(err);
70
+ // OWNER: the poll loop is the workflow's trigger root; a failed read is classified by its message, retried with backoff, and reported once per DISTINCT failure — a source that stays down on the same reason is one line, never one per attempt.
71
+ if (why !== failure) {
72
+ failure = why;
73
+ log("·", `${source.name}:error`, `poll failed: ${why} — retrying with backoff until it recovers`);
74
+ }
69
75
  await new Promise((r) => setTimeout(r, delay));
70
76
  }
71
77
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omni-notify-mcp",
3
- "version": "1.3.498",
3
+ "version": "1.3.499",
4
4
  "homepage": "https://www.npmjs.com/package/omni-notify-mcp",
5
5
  "description": "Reach your AI agents from anywhere — and let them reach you. One resident process on 127.0.0.1:7475 serves the whole tool surface to Claude Code, GitHub Copilot Chat and Codex: desktop, Telegram, Slack, ntfy, Discord, Teams and SMS are configured in one file, and agents notify you when long work finishes or a decision is needed, ask you a question and wait for your answer, and receive and reply to the messages you send them — with Do Not Disturb and idle detection deciding what actually gets through.",
6
6
  "main": "dist/daemon.js",