omni-notify-mcp 1.3.416 → 1.3.418
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";
|
|
@@ -2843,13 +2843,19 @@ function withdrawUntilAsked(board, e, now, why) {
|
|
|
2843
2843
|
export async function clearStoryQueue(board, since) {
|
|
2844
2844
|
return withQueueLock(board, Date.now(), async () => {
|
|
2845
2845
|
const store = readQueueStore(board);
|
|
2846
|
+
const his = new Set(store.entries.filter((e) => (e.state === "queued" || e.state === "retrying") && hisOwn(e)));
|
|
2847
|
+
const untaken = new Set(requestedStories(board).filter((id) => {
|
|
2848
|
+
const r = readableRequest(board, id);
|
|
2849
|
+
// NULL-OK: field pressedAt is OPTIONAL and therefore it is ok to check for NULL
|
|
2850
|
+
return r !== undefined && r.origin === "press" && r.eligible && r.pressedAt !== undefined && (r.forced ?? r.pressedAt) > priorAuthorityOf(store.entries.find((e) => e.storyId === id));
|
|
2851
|
+
}));
|
|
2846
2852
|
// NULL-OK: field worker/archivedSessions/handStop is OPTIONAL and therefore it is ok to check for NULL
|
|
2847
|
-
const kept = store.entries.filter((e) => e.worker !== undefined || e.archivedSessions !== undefined || e.handStop !== undefined || (e.forceEventAt ?? 0) >= since);
|
|
2848
|
-
const working = new Set(kept.filter((e) => e.state === "starting" || e.state === "running" || (e.forceEventAt ?? 0) >= since).map((e) => e.storyId));
|
|
2853
|
+
const kept = store.entries.filter((e) => e.worker !== undefined || e.archivedSessions !== undefined || e.handStop !== undefined || (e.forceEventAt ?? 0) >= since || his.has(e));
|
|
2854
|
+
const working = new Set([...kept.filter((e) => e.state === "starting" || e.state === "running" || (e.forceEventAt ?? 0) >= since || his.has(e)).map((e) => e.storyId), ...untaken]);
|
|
2849
2855
|
let removed = store.entries.length - kept.length;
|
|
2850
2856
|
const now = Date.now();
|
|
2851
2857
|
for (const e of kept) {
|
|
2852
|
-
if ((e.forceEventAt ?? 0) >= since)
|
|
2858
|
+
if ((e.forceEventAt ?? 0) >= since || his.has(e) || untaken.has(e.storyId))
|
|
2853
2859
|
continue;
|
|
2854
2860
|
e.landedAt = Math.max(e.landedAt ?? 0, since);
|
|
2855
2861
|
delete e.forced;
|
|
@@ -3007,6 +3013,7 @@ function refusalOf(r) {
|
|
|
3007
3013
|
return `provider "${r.provider}" is not started by this queue — choose Claude, Copilot, Codex, OpenCode or AUTO`;
|
|
3008
3014
|
return undefined;
|
|
3009
3015
|
}
|
|
3016
|
+
const priorAuthorityOf = (e) => Math.max(e?.startPressedAt ?? 0, e?.handStop?.at ?? 0, e?.worker?.startedAt ?? 0, e?.forceStartedAt ?? 0, e?.forceEventAt ?? 0);
|
|
3010
3017
|
/** One request applied to the store: an entry made, updated, withdrawn or put back in line; answers the refusal when it cannot be queued. */
|
|
3011
3018
|
function applyRequest(store, r, now) {
|
|
3012
3019
|
const refused = refusalOf(r);
|
|
@@ -3016,7 +3023,7 @@ function applyRequest(store, r, now) {
|
|
|
3016
3023
|
if (e?.requestId === r.requestId)
|
|
3017
3024
|
return undefined;
|
|
3018
3025
|
const intentAt = r.forced ?? r.pressedAt;
|
|
3019
|
-
const priorAuthority =
|
|
3026
|
+
const priorAuthority = priorAuthorityOf(e);
|
|
3020
3027
|
const freshForce = r.forced !== undefined && r.forced > priorAuthority;
|
|
3021
3028
|
const fields = { title: r.title, pri: r.pri, effort: r.effort, provider: r.provider, model: r.model, name: r.name, brief: r.brief, eligible: r.eligible, why: r.why };
|
|
3022
3029
|
// NULL-OK: field e is OPTIONAL and therefore it is ok to check for NULL
|
|
@@ -274,6 +274,7 @@ const CONNECTION_SOURCE = String.raw `(function () {
|
|
|
274
274
|
found = document.createElement("div");
|
|
275
275
|
found.id = COVER;
|
|
276
276
|
found.setAttribute("role", "alert");
|
|
277
|
+
found.setAttribute("data-be-notice", "own");
|
|
277
278
|
found.style.cssText = "position:fixed;inset:0;z-index:2147483647;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.6);cursor:not-allowed;padding:16px;box-sizing:border-box";
|
|
278
279
|
var word = document.createElement("div");
|
|
279
280
|
word.className = "__bullseye-notice-text";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omni-notify-mcp",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.418",
|
|
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",
|