omni-notify-mcp 1.3.328 → 1.3.330
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 +7 -6
- 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);
|
|
@@ -2522,7 +2523,7 @@ function latestBeat() {
|
|
|
2522
2523
|
const [beat, old] = [DAEMON_BEAT_PATH, OLD_DAEMON_BEAT_PATH].map((file) => (existsSync(file) ? JSON.parse(readFileSync(file, "utf8")) : undefined));
|
|
2523
2524
|
return old !== undefined && (beat === undefined || old.at > beat.at) ? old : beat;
|
|
2524
2525
|
}
|
|
2525
|
-
/**
|
|
2526
|
+
/** A daemon is alive and beating — of the given build, when one is named. */
|
|
2526
2527
|
function daemonBeats(version) {
|
|
2527
2528
|
const beat = latestBeat();
|
|
2528
2529
|
if (beat === undefined)
|
|
@@ -2560,7 +2561,7 @@ export function yieldGateway() {
|
|
|
2560
2561
|
* Once the extension installs a newer build, this process is superseded and the gateway passes to the installed build:
|
|
2561
2562
|
* a superseded process never takes it while a daemon beats, and one that holds it steps aside once no
|
|
2562
2563
|
* answer is in flight — the daemon at once, since it starts the installed build in its place, and a
|
|
2563
|
-
* bridge once the installed build's
|
|
2564
|
+
* bridge once the installed build's daemon beats to take it over.
|
|
2564
2565
|
*/
|
|
2565
2566
|
function tryOwnGateway(polling, host) {
|
|
2566
2567
|
if (ownershipAttempting)
|
|
@@ -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.330",
|
|
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",
|