omni-notify-mcp 1.3.403 → 1.3.404
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 -1
- package/package.json +1 -1
package/dist/notify.js
CHANGED
|
@@ -1111,6 +1111,8 @@ function logTelegramError(msg) {
|
|
|
1111
1111
|
}
|
|
1112
1112
|
}
|
|
1113
1113
|
async function telegramSendTo(token, chatId, text, replyTo) {
|
|
1114
|
+
if (loadConfig().telegram?.enabled !== true)
|
|
1115
|
+
throw new Error("Telegram is switched off in BN settings, so nothing is sent to it");
|
|
1114
1116
|
const r = await fetch(tgApi(token, "sendMessage"), {
|
|
1115
1117
|
method: "POST", headers: { "Content-Type": "application/json" },
|
|
1116
1118
|
body: JSON.stringify({ chat_id: chatId, text, reply_to_message_id: replyTo }),
|
|
@@ -1124,7 +1126,7 @@ async function startTelegramListener() {
|
|
|
1124
1126
|
try {
|
|
1125
1127
|
const cfg = loadConfig();
|
|
1126
1128
|
const { token, chatIds } = cfg.telegram ?? {};
|
|
1127
|
-
if (!token || !Array.isArray(chatIds) || chatIds.length === 0) {
|
|
1129
|
+
if (cfg.telegram?.enabled !== true || !token || !Array.isArray(chatIds) || chatIds.length === 0) {
|
|
1128
1130
|
await new Promise(r => setTimeout(r, 5000));
|
|
1129
1131
|
continue;
|
|
1130
1132
|
}
|
|
@@ -1723,6 +1725,8 @@ async function slackPost(text) {
|
|
|
1723
1725
|
}
|
|
1724
1726
|
}
|
|
1725
1727
|
async function slackPostInThread(token, channel, threadTs, text) {
|
|
1728
|
+
if (loadConfig().slack?.enabled !== true)
|
|
1729
|
+
throw new Error("Slack is switched off in BN settings, so nothing is sent to it");
|
|
1726
1730
|
const r = await fetch(`${SLACK_API_BASE}/chat.postMessage`, {
|
|
1727
1731
|
method: "POST",
|
|
1728
1732
|
headers: { "Content-Type": "application/json; charset=utf-8", Authorization: `Bearer ${token}` },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omni-notify-mcp",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.404",
|
|
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",
|