omni-notify-mcp 1.3.346 → 1.3.347
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.
|
@@ -24,7 +24,9 @@ function invocation(command, args) {
|
|
|
24
24
|
const script = /"%dp0%[\\/]([^"\r\n]+\.m?js)"/i.exec(shim);
|
|
25
25
|
if (script)
|
|
26
26
|
return { command: process.execPath, args: [resolve(dirname(executable), script[1]), ...args] };
|
|
27
|
-
|
|
27
|
+
const binary = /"%dp0%[\\/]([^"\r\n]+\.exe)"/i.exec(shim);
|
|
28
|
+
if (binary)
|
|
29
|
+
return { command: resolve(dirname(executable), binary[1]), args };
|
|
28
30
|
}
|
|
29
31
|
return { command: executable, args };
|
|
30
32
|
}
|
package/dist/notify.js
CHANGED
|
@@ -1024,7 +1024,7 @@ function ingestDropFolder() {
|
|
|
1024
1024
|
if (!existsSync(INBOX_DROP_IN_DIR))
|
|
1025
1025
|
return;
|
|
1026
1026
|
mkdirSync(INBOX_DROP_CLAIM_DIR, { recursive: true });
|
|
1027
|
-
const
|
|
1027
|
+
const taken = [];
|
|
1028
1028
|
const unread = [];
|
|
1029
1029
|
for (const name of readdirSync(INBOX_DROP_IN_DIR).filter((f) => f.endsWith(".json"))) {
|
|
1030
1030
|
const path = join(INBOX_DROP_IN_DIR, name);
|
|
@@ -1032,6 +1032,7 @@ function ingestDropFolder() {
|
|
|
1032
1032
|
try {
|
|
1033
1033
|
if (!claimDrop(marker))
|
|
1034
1034
|
continue;
|
|
1035
|
+
let queued = false;
|
|
1035
1036
|
try {
|
|
1036
1037
|
let raw;
|
|
1037
1038
|
try {
|
|
@@ -1061,11 +1062,12 @@ function ingestDropFolder() {
|
|
|
1061
1062
|
rejectDrop(path, name, err instanceof Error ? err.message : String(err));
|
|
1062
1063
|
continue;
|
|
1063
1064
|
}
|
|
1064
|
-
|
|
1065
|
-
|
|
1065
|
+
taken.push({ path, marker, entry });
|
|
1066
|
+
queued = true;
|
|
1066
1067
|
}
|
|
1067
1068
|
finally {
|
|
1068
|
-
|
|
1069
|
+
if (!queued)
|
|
1070
|
+
rmSync(marker, { force: true });
|
|
1069
1071
|
}
|
|
1070
1072
|
}
|
|
1071
1073
|
catch (err) {
|
|
@@ -1074,10 +1076,14 @@ function ingestDropFolder() {
|
|
|
1074
1076
|
}
|
|
1075
1077
|
}
|
|
1076
1078
|
retryUnreadDrops(unread);
|
|
1077
|
-
if (
|
|
1079
|
+
if (taken.length === 0)
|
|
1078
1080
|
return;
|
|
1079
|
-
persistInboxQueue(
|
|
1080
|
-
|
|
1081
|
+
persistInboxQueue(taken.map(({ entry }) => entry));
|
|
1082
|
+
for (const { path, marker } of taken) {
|
|
1083
|
+
unlinkSync(path);
|
|
1084
|
+
rmSync(marker, { force: true });
|
|
1085
|
+
}
|
|
1086
|
+
log("·", "inbox-drop", `queued ${taken.length} message${taken.length === 1 ? "" : "s"} from ${INBOX_DROP_IN_DIR}`);
|
|
1081
1087
|
syncInboxFromDisk();
|
|
1082
1088
|
}
|
|
1083
1089
|
function ingestInboxEntry(entry, source) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omni-notify-mcp",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.347",
|
|
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",
|