omni-notify-mcp 1.3.328 → 1.3.329
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/dist/notify.js +5 -4
- package/package.json +1 -1
package/dist/notify.js
CHANGED
|
@@ -901,7 +901,7 @@ function reapInboxDrops() {
|
|
|
901
901
|
// renamed by the writer; each is claimed by rename (so exactly one host process takes it), queued UNTAGGED
|
|
902
902
|
// so every window sees it, and deleted. An unreadable file is kept as .rejected, never silently dropped.
|
|
903
903
|
const INBOX_DROP_IN_DIR = join(CONFIG_DIR, "inbox-drop");
|
|
904
|
-
function ingestDropFolder() {
|
|
904
|
+
function ingestDropFolder(host) {
|
|
905
905
|
if (!existsSync(INBOX_DROP_IN_DIR))
|
|
906
906
|
return;
|
|
907
907
|
const arrivals = [];
|
|
@@ -930,6 +930,7 @@ function ingestDropFolder() {
|
|
|
930
930
|
return;
|
|
931
931
|
persistInboxQueue(arrivals);
|
|
932
932
|
log("·", "inbox-drop", `queued ${arrivals.length} message${arrivals.length === 1 ? "" : "s"} from ${INBOX_DROP_IN_DIR}`);
|
|
933
|
+
syncInboxFromDisk(host);
|
|
933
934
|
}
|
|
934
935
|
function ingestInboxEntry(entry, source) {
|
|
935
936
|
const waiters = takeWaitersFor(entry.tag);
|
|
@@ -2707,20 +2708,20 @@ export function startNotifyServer(host) {
|
|
|
2707
2708
|
if (dropWatched || !existsSync(INBOX_DROP_IN_DIR))
|
|
2708
2709
|
return;
|
|
2709
2710
|
dropWatched = true;
|
|
2710
|
-
const drops = watch(INBOX_DROP_IN_DIR, { persistent: false }, () => ingestDropFolder());
|
|
2711
|
+
const drops = watch(INBOX_DROP_IN_DIR, { persistent: false }, () => ingestDropFolder(host));
|
|
2711
2712
|
// The drop folder was taken away: its watch is gone, and the folder's return is seen on the config folder's own watch.
|
|
2712
2713
|
drops.on("error", () => { dropWatched = false; });
|
|
2713
2714
|
};
|
|
2714
2715
|
watchNames(CONFIG_DIR, [basename(INBOX_QUEUE_PATH), basename(INBOX_DROP_IN_DIR)], (name) => {
|
|
2715
2716
|
if (name !== basename(INBOX_QUEUE_PATH)) {
|
|
2716
2717
|
watchDrops();
|
|
2717
|
-
ingestDropFolder();
|
|
2718
|
+
ingestDropFolder(host);
|
|
2718
2719
|
}
|
|
2719
2720
|
if (name !== basename(INBOX_DROP_IN_DIR) && !(existsSync(INBOX_QUEUE_PATH) && readFileSync(INBOX_QUEUE_PATH, "utf8") === queueWritten))
|
|
2720
2721
|
syncInboxFromDisk(host);
|
|
2721
2722
|
});
|
|
2722
2723
|
watchDrops();
|
|
2723
|
-
ingestDropFolder();
|
|
2724
|
+
ingestDropFolder(host);
|
|
2724
2725
|
syncInboxFromDisk(host);
|
|
2725
2726
|
const reapTimer = setInterval(reapInboxDrops, 60 * 60 * 1000);
|
|
2726
2727
|
ownershipTimer.unref();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omni-notify-mcp",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.329",
|
|
4
4
|
"description": "Reach your AI agents from anywhere — and let them reach you. One stdio process 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/index.js",
|
|
6
6
|
"type": "module",
|