omni-notify-mcp 1.3.417 → 1.3.419
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/gateway/chatPage.js
CHANGED
|
@@ -2,6 +2,7 @@ import { PACKAGE_VERSION } from "../notify.js";
|
|
|
2
2
|
import { ICON_HEAD } from "./iconDoor.js";
|
|
3
3
|
import { PASSKEY_SCRIPT } from "./passkeyDoor.js";
|
|
4
4
|
import { PROOF_WAYS } from "./passkeyClient.js";
|
|
5
|
+
import { CONNECTION_SOURCE } from "../shared/webhost/webviewShim.js";
|
|
5
6
|
/** The ancestors allowed to frame this page, and nothing else. VS Code's own webview shell shows the one shared
|
|
6
7
|
* interface inside the extension panel (#2726); a scheme source admits any documentation of that scheme and no site.
|
|
7
8
|
* The same page is also framed in a browser (#3081): the Bullseye dashboard's web shell writes the panel's own HTML
|
|
@@ -216,8 +217,10 @@ async function signIn(notice) {
|
|
|
216
217
|
|
|
217
218
|
// GATE: how long the page waits before asking the gateway again about its sign-in after a failed check.
|
|
218
219
|
var RECHECK_MS = 3000;
|
|
220
|
+
var gatewayDown = false;
|
|
219
221
|
async function resumeSignIn() {
|
|
220
222
|
var response = await fetch("/passkey/session", {headers:{authorization:"Bearer " + token}});
|
|
223
|
+
if (response.ok || response.status === 401) { gatewayDown = false; window.bullseyeConnection.live(); }
|
|
221
224
|
if (response.status === 401) { signIn("Your sign-in expired or was revoked. Sign in again."); return; }
|
|
222
225
|
if (!response.ok) throw new Error("the gateway answered " + response.status);
|
|
223
226
|
var session = await response.json();
|
|
@@ -226,6 +229,8 @@ async function resumeSignIn() {
|
|
|
226
229
|
}
|
|
227
230
|
function recheckSignIn(err) {
|
|
228
231
|
show("signin", "Sign in");
|
|
232
|
+
gatewayDown = true;
|
|
233
|
+
window.bullseyeConnection.reconnecting("the connection to the Notify service", RECHECK_MS);
|
|
229
234
|
main.append(el("div", "system", "Could not reach the gateway (" + err.message + ") — your sign-in is kept; checking again…"));
|
|
230
235
|
setTimeout(startSignIn, RECHECK_MS);
|
|
231
236
|
}
|
|
@@ -767,7 +772,7 @@ export function serviceHtml({ name, host }) {
|
|
|
767
772
|
<header><h1 id="title">${safe(name)}</h1><button id="refresh" hidden>🔄 Refresh</button><button id="logout" hidden>🚪 Logout</button></header>
|
|
768
773
|
<div id="serving" class="idbar" data-be-tip="The process that answered this page — its process id, when it started and the sign-in build its code was loaded from — and when this page's sign-in expires"><span class="srv">${safe(host)} · pid ${me.pid} · started ${storedStamp(me.startedAt)} · sign-in BN ${safe(me.build)}</span><small id="expires" hidden></small></div>
|
|
769
774
|
<main id="main"></main>
|
|
770
|
-
<script>var FACTS = ${facts}, TITLE = FACTS.name;
|
|
775
|
+
<script>${CONNECTION_SOURCE}</script><script>var FACTS = ${facts}, TITLE = FACTS.name;
|
|
771
776
|
${PASSKEY_SCRIPT}
|
|
772
777
|
${SIGN_IN_SCRIPT}
|
|
773
778
|
${SERVICE_SCRIPT}
|
|
@@ -142,7 +142,7 @@ function tool(icon,label,cls){var b=el("button",cls,icon);b.append(" ",el("span"
|
|
|
142
142
|
|
|
143
143
|
function show(name,heading){
|
|
144
144
|
view++;
|
|
145
|
-
if(name!=="terminal"){socketDown=false;window.bullseyeConnection.live();clearTimeout(reconnect);if(socket){socket.onclose=null;socket.close();socket=null;}if(observer){observer.disconnect();observer=null;}document.getElementById("keybar").hidden=true;if(terminal){terminal.dispose();terminal=null;}main.style.display="";main.style.flexDirection="";}
|
|
145
|
+
if(name!=="terminal"){socketDown=false;if(!gatewayDown)window.bullseyeConnection.live();clearTimeout(reconnect);if(socket){socket.onclose=null;socket.close();socket=null;}if(observer){observer.disconnect();observer=null;}document.getElementById("keybar").hidden=true;if(terminal){terminal.dispose();terminal=null;}main.style.display="";main.style.flexDirection="";}
|
|
146
146
|
title.textContent=heading;
|
|
147
147
|
var inList=name==="list";
|
|
148
148
|
btnBack.hidden=inList||name==="signin";
|
|
@@ -7,7 +7,7 @@ const PICKER_SOURCE = String.raw `
|
|
|
7
7
|
" body { font-size: 14px; }",
|
|
8
8
|
" *, *::before, *::after { box-sizing: border-box; }",
|
|
9
9
|
" .filter-group, .be-seg { flex-wrap: wrap; max-width: 100%; }",
|
|
10
|
-
" table { display: block; max-width: 100%; overflow-x: auto; }",
|
|
10
|
+
" table:not(:has(> thead)) { display: block; max-width: 100%; overflow-x: auto; }",
|
|
11
11
|
" body { overflow-wrap: break-word; }",
|
|
12
12
|
" img, video, canvas { max-width: 100%; }",
|
|
13
13
|
" pre { max-width: 100%; overflow-x: auto; }",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omni-notify-mcp",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.419",
|
|
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",
|