omni-notify-mcp 1.3.419 → 1.3.420
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 @@ if (!(PROCESS_KEY in globalThis)) {
|
|
|
39
39
|
const PROCESS = globalThis[PROCESS_KEY];
|
|
40
40
|
// NULL-OK: field actToken is OPTIONAL and therefore it is ok to check for NULL
|
|
41
41
|
PROCESS.actToken ??= crypto.randomBytes(24).toString("hex");
|
|
42
|
+
PROCESS.hosts ??= new Set();
|
|
42
43
|
const ACT_PATH = "/__bullseye/act";
|
|
43
44
|
// GATE: an act body larger than this is answered 413 and never parsed.
|
|
44
45
|
const ACT_BODY_BYTES = 65_536;
|
|
@@ -731,6 +732,7 @@ class WebHost {
|
|
|
731
732
|
}
|
|
732
733
|
this.server = server;
|
|
733
734
|
this.port = server.address().port;
|
|
735
|
+
PROCESS.hosts.add(this);
|
|
734
736
|
this.publish();
|
|
735
737
|
},
|
|
736
738
|
// OWNER: the listen began in activate() and nothing awaits it — the refused bind becomes this window's web UI record, which the Bullseye dashboard draws on the extension's card, and the VS Code view runs on without its web page
|
|
@@ -749,6 +751,12 @@ class WebHost {
|
|
|
749
751
|
this.server.close();
|
|
750
752
|
this.server = undefined;
|
|
751
753
|
}
|
|
754
|
+
PROCESS.hosts.delete(this);
|
|
755
|
+
const survivor = [...PROCESS.hosts].find((host) => host.extension === this.extension);
|
|
756
|
+
if (survivor !== undefined) {
|
|
757
|
+
survivor.publish();
|
|
758
|
+
return;
|
|
759
|
+
}
|
|
752
760
|
PROCESS.records.delete(this.extension);
|
|
753
761
|
fs.rmSync(this.recordFile(), { force: true });
|
|
754
762
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omni-notify-mcp",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.420",
|
|
4
4
|
"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.",
|
|
5
5
|
"main": "dist/daemon.js",
|
|
6
6
|
"type": "module",
|