omni-notify-mcp 1.3.470 → 1.3.471

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.
@@ -90,12 +90,12 @@ const ONE = {
90
90
  // NULL-OK: field main is OPTIONAL and therefore it is ok to check for NULL
91
91
  return main !== undefined && busy(main) ? main.sessionId : undefined;
92
92
  },
93
- async renew(key, platform, end) {
93
+ async renew(key, platform, end, provider) {
94
94
  for (const c of ONE.allOf(key)) {
95
95
  end(c.id);
96
96
  archiveConversation(c.id);
97
97
  }
98
- const { notice } = await createdIn(rootFolder(), undefined, () => key, (on) => openConversation({ platform, chat: key, ...on }));
98
+ const { notice } = await createdIn(rootFolder(), provider, () => key, (on) => openConversation({ platform, chat: key, ...on }));
99
99
  // NULL-OK: field notice is OPTIONAL and therefore it is ok to check for NULL
100
100
  return `🆕 Fresh conversation — your next message starts it.${notice === undefined ? "" : `\n${notice.text}`}`;
101
101
  },
@@ -259,11 +259,18 @@ export class AgentGateway {
259
259
  return reply(carriage.stopped(stopped, carriage.allOf(key).filter((c) => !stopped.includes(c)).length));
260
260
  }
261
261
  if (act.kind === "new")
262
- return reply(await carriage.renew(key, platform, (id) => this.end(id)));
262
+ return reply(await carriage.renew(key, platform, (id) => this.end(id), act.provider));
263
263
  if (act.text === "")
264
264
  return reply("Send `! <your message>` to talk to the agent.");
265
- const target = carriage.routeOf(key, act.text);
266
- const forkOf = carriage.forkOf(key);
265
+ const replaced = open !== undefined && act.provider !== undefined && open.provider !== act.provider;
266
+ if (replaced) {
267
+ for (const c of carriage.allOf(key)) {
268
+ this.end(c.id);
269
+ archiveConversation(c.id);
270
+ }
271
+ }
272
+ const target = replaced ? undefined : carriage.routeOf(key, act.text);
273
+ const forkOf = replaced ? undefined : carriage.forkOf(key);
267
274
  // NULL-OK: field target is OPTIONAL and therefore it is ok to check for NULL
268
275
  if (target === undefined) {
269
276
  let project;
package/dist/notify.js CHANGED
@@ -1236,7 +1236,7 @@ function openAsksContext() {
1236
1236
  /** One said thing of the bound chat goes to its one conversation, its turn streamed back into the chat. */
1237
1237
  function toTelegramConversation(token, chat, act, thread) {
1238
1238
  // #4586 — a topic is its own conversation (the story's); the plain chat keeps its one.
1239
- const routed = act.kind === "say" ? { ...act, provider: TELEGRAM_PROVIDER } : act;
1239
+ const routed = act.kind === "stop" ? act : { ...act, provider: TELEGRAM_PROVIDER };
1240
1240
  toOneChat(thread === undefined ? `telegram:${chat}` : `telegram:${chat}:${thread}`, "telegram", routed, telegramMessenger(token, chat, thread));
1241
1241
  }
1242
1242
  /** One said thing of one of Meni's one chats — Telegram, or his Slack direct message — goes to its one conversation, its turn streamed back into that chat. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omni-notify-mcp",
3
- "version": "1.3.470",
3
+ "version": "1.3.471",
4
4
  "homepage": "https://www.npmjs.com/package/omni-notify-mcp",
5
5
  "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.",
6
6
  "main": "dist/daemon.js",