omni-notify-mcp 1.3.365 → 1.3.367
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/agentGateway.js
CHANGED
|
@@ -43,7 +43,7 @@ const COMMAND_RE = /^\/?(new|stop)(@\w+)?$/i;
|
|
|
43
43
|
const FINAL_KINDS = new Set(["answer", "failed", "stopped", "archived", "deleted"]);
|
|
44
44
|
function driverOptions() {
|
|
45
45
|
const guardDir = fileURLToPath(new URL("../scripts/shared/", import.meta.url));
|
|
46
|
-
// GATE: a stand-in CLI, a warm spare a test asks for, a smaller capacity and shorter idle, silent, stall and archive spells are read ONLY under NOTIFY_MCP_TEST_ENDPOINTS=1; without it the CLI is `claude`, the spare is kept, and the numbers are Meni's ten slots, his
|
|
46
|
+
// GATE: a stand-in CLI, a warm spare a test asks for, a smaller capacity and shorter idle, silent, stall and archive spells are read ONLY under NOTIFY_MCP_TEST_ENDPOINTS=1; without it the CLI is `claude`, the spare is kept, and the numbers are Meni's ten slots, his 8-hour idle spell, his 2- and 15-minute turn bounds and his 8-hour archive bound.
|
|
47
47
|
if (process.env.NOTIFY_MCP_TEST_ENDPOINTS !== "1")
|
|
48
48
|
return { guardDir };
|
|
49
49
|
const script = process.env.NOTIFY_AGENT_CLI_SCRIPT;
|
package/dist/gateway/mcpDoor.js
CHANGED
|
@@ -319,7 +319,7 @@ function buildServer(caller, base, offer) {
|
|
|
319
319
|
const frames = read.text === "" && !read.reset ? [] : [{ seq: read.after, ts: new Date().toISOString(), kind: "output", text: read.text, reset: read.reset }];
|
|
320
320
|
return { conversation: id, console: true, frames, seq: read.after, after: read.after };
|
|
321
321
|
}));
|
|
322
|
-
server.tool("agent_list", "Every agent conversation BN holds on this machine, newest first (conversations, not projects — agent_projects lists projects), each with its title, lifecycle (active, idle or completed) and beside as agent_status gives them. archived=true lists the archived ones instead; BN archives a conversation by itself once it has sat
|
|
322
|
+
server.tool("agent_list", "Every agent conversation BN holds on this machine, newest first (conversations, not projects — agent_projects lists projects), each with its title, lifecycle (active, idle or completed) and beside as agent_status gives them. archived=true lists the archived ones instead; BN archives a conversation by itself once it has sat 8 hours with no turn in flight, and a message to it brings it back.", { archived: z.boolean().default(false).describe("true lists the Archived conversations instead of the default list") }, ({ archived }) => act(() => ({ conversations: shelvedConversations(archived ? "archived" : "active", viewerNow()).map(describeConversation) })));
|
|
323
323
|
server.tool("agent_stop", "Stop a conversation and free its agent; a later message resumes it.", { id: z.string().min(1) }, ({ id }) => act(() => stopConversation(seen(id))));
|
|
324
324
|
server.tool("agent_archive", "Archive a conversation: it is stopped and moved off the default list to the Archived list with its transcript kept. agent_list archived=true shows it; a message to it (agent_send or agent_prompt) brings it back and resumes it.", { id: z.string().min(1), restore: z.boolean().default(false).describe("true moves an archived conversation back to the default list instead") }, ({ id, restore }) => act(() => (seen(id), restore ? unarchiveConversation(id) : archiveConversation(id))));
|
|
325
325
|
server.tool("agent_delete", "Delete a conversation for good: a running agent is stopped first, then the conversation and its transcript are removed from BN. It cannot be undone — agent_archive keeps the transcript instead.", { id: z.string().min(1) }, ({ id }) => act(() => deleteConversation(seen(id))));
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* provider and runs turns; it never builds a CLI's invocation or parses its answer itself.
|
|
11
11
|
*
|
|
12
12
|
* Full power with the project's rules (2A): bypass mode, run in the project folder. A conversation silent for
|
|
13
|
-
*
|
|
13
|
+
* 8 hours frees its process and its next message resumes the session (4A). Ten sessions hold processes at once;
|
|
14
14
|
* an idle one gives its slot up to a waiting message, and when all ten are mid-turn the message is queued with its
|
|
15
15
|
* place in line (5A). One start line, a status line after each 2 silent minutes, then the answer (6A); a turn whose CLI
|
|
16
16
|
* writes nothing for 15 minutes is failed and gives its slot up (Meni, #2729).
|
|
@@ -27,14 +27,14 @@ import { AgentTurnFailed } from "./provider.js";
|
|
|
27
27
|
import { PROVIDER_NAMES, providerFor } from "./providers.js";
|
|
28
28
|
import { consoleSession } from "./nativeTerminal.js";
|
|
29
29
|
import { GatewayError, agentDir, appendEvent, archiveConversation, conversationRefusal, eventsSize, listConversations, monotonicMs, purgeConversation, allowedFolder, isAllowedFolder, readConversation, readEvents, reopenConversation, resumeConversation, titleOf, turnInFlight, hasBoard, resumedInLog, shelfInLog, storeChanged, stopConversation, stoppedInLog, updateConversation, } from "./conversations.js";
|
|
30
|
-
// GATE:
|
|
31
|
-
export const IDLE_MS =
|
|
30
|
+
// GATE: a conversation silent this long (8 hours, the passkey sign-in's own span) frees its process; its next message resumes the session.
|
|
31
|
+
export const IDLE_MS = 8 * 60 * 60_000;
|
|
32
32
|
// GATE: Meni's ruling 6A — a turn that has said nothing for this long posts one status line, and another after each such spell.
|
|
33
33
|
export const SILENT_MS = 2 * 60_000;
|
|
34
34
|
// GATE: Meni's order for #2729 — a turn whose CLI has written nothing this long (anything a Claude CLI draws on its screen, a line on the stdout of any other) is failed and its slot given to the next message; each report starts the spell again, so a working turn is never cut however long it runs, and at the boundary the CLI's process tree is killed.
|
|
35
35
|
export const STALL_MS = 15 * 60_000;
|
|
36
|
-
// GATE:
|
|
37
|
-
export const ARCHIVE_IDLE_MS =
|
|
36
|
+
// GATE: an open conversation with no turn in flight and nothing written for this long (8 hours) is archived (stopped, transcript kept); its next message restores and resumes it.
|
|
37
|
+
export const ARCHIVE_IDLE_MS = 8 * 60 * 60_000;
|
|
38
38
|
// GATE: a turn has no bound on its whole length — the longest timer Node can arm, so a turn that keeps writing is never ended on time; what ends a turn is its silence, and that bound is STALL_MS.
|
|
39
39
|
const TURN_UNBOUNDED_MS = 2_147_483_647;
|
|
40
40
|
// GATE: a turn BN restarted under is taken up again this many times; one cut off again past it is failed, so a turn that keeps bringing BN down cannot loop for ever.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omni-notify-mcp",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.367",
|
|
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",
|