omni-notify-mcp 1.3.506 → 1.3.507
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/servedDev.js +13 -10
- package/package.json +1 -1
|
@@ -12,15 +12,18 @@
|
|
|
12
12
|
* button's face, its entries and the notice's wording all come from the shared module, so the served page and a window's
|
|
13
13
|
* panel can never drift.
|
|
14
14
|
*/
|
|
15
|
-
import { createRequire } from "module";
|
|
16
15
|
import * as fs from "node:fs";
|
|
17
16
|
import * as os from "node:os";
|
|
18
17
|
import * as path from "node:path";
|
|
19
18
|
import * as http from "node:http";
|
|
20
19
|
import { GatewayError } from "../gatewaySettings.js";
|
|
21
20
|
import { actWindows } from "../shared/webhost/bullseyeWebHost.js";
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
// #5087 — the shared DEV module is BUNDLED, never required at runtime. This file also runs INSIDE the packaged
|
|
22
|
+
// `dist/daemon.mjs`, where `createRequire(import.meta.url)("../shared/dev/devControls.js")` resolves one directory above
|
|
23
|
+
// `dist/` (no such file ships there) and the require's own throw aborts this module's init, taking the gateway bind with
|
|
24
|
+
// it. A static import makes esbuild inline the module — exactly as panelPage.ts already does for the shared renderers, and
|
|
25
|
+
// as restDoor.ts does for the shared web host — so the shipped daemon resolves nothing off the disk at runtime.
|
|
26
|
+
import { DevControls, DevStepError, GROUPS, buildStamp, devCheckout } from "../shared/dev/devControls.js";
|
|
24
27
|
/** BN's extension id, used only when no manifest on disk names one — every real lookup reads the manifest. */
|
|
25
28
|
const FALLBACK_ID = "menihillel.bullseye-notify";
|
|
26
29
|
const EXTENSION_NAME = "BullseyeNotify";
|
|
@@ -90,15 +93,15 @@ function locate() {
|
|
|
90
93
|
return {
|
|
91
94
|
id,
|
|
92
95
|
runningVersion: String(runningManifest.version ?? ""),
|
|
93
|
-
runningStamp: () =>
|
|
96
|
+
runningStamp: () => buildStamp(runningManifest),
|
|
94
97
|
installedVersion: () => (installedManifest === undefined ? null : String(installedManifest.version ?? "")),
|
|
95
|
-
installedStamp: () => (installedManifest === undefined ? null :
|
|
98
|
+
installedStamp: () => (installedManifest === undefined ? null : buildStamp(installedManifest)),
|
|
96
99
|
checkout: () => {
|
|
97
100
|
if (!walked) {
|
|
98
101
|
walked = true;
|
|
99
102
|
// OWNER: a page draw is this search's trigger root — a search that cannot run costs the button its draw, never the page.
|
|
100
103
|
try {
|
|
101
|
-
cached =
|
|
104
|
+
cached = devCheckout(id, [root, path.join(os.homedir(), "Desktop", "BullseyeVSC")], io);
|
|
102
105
|
}
|
|
103
106
|
catch {
|
|
104
107
|
cached = undefined;
|
|
@@ -118,7 +121,7 @@ function sources() {
|
|
|
118
121
|
}
|
|
119
122
|
/** The served page's own DEV view, groups and build notice, driven off one set of sources — the seam a test fixtures. */
|
|
120
123
|
export function devSectionFor(found) {
|
|
121
|
-
const control = new
|
|
124
|
+
const control = new DevControls({
|
|
122
125
|
label: `${EXTENSION_NAME} DEV`,
|
|
123
126
|
runningVersion: found.runningVersion,
|
|
124
127
|
runningStamp: found.runningStamp,
|
|
@@ -142,16 +145,16 @@ export function devSectionFor(found) {
|
|
|
142
145
|
notice = control.notice();
|
|
143
146
|
}
|
|
144
147
|
catch (cause) {
|
|
145
|
-
if (!(cause instanceof
|
|
148
|
+
if (!(cause instanceof DevStepError))
|
|
146
149
|
throw cause;
|
|
147
150
|
notice = null;
|
|
148
151
|
}
|
|
149
|
-
return dev === undefined ? { devGroups:
|
|
152
|
+
return dev === undefined ? { devGroups: GROUPS, build: { notice } } : { dev, devGroups: GROUPS, build: { notice } };
|
|
150
153
|
}
|
|
151
154
|
/** The one source of the served page's DEV view, its groups and its build notice — the shared module's own answers, driven headlessly off the disk. */
|
|
152
155
|
export function devSection() {
|
|
153
156
|
const found = sources();
|
|
154
|
-
return found === undefined ? { devGroups:
|
|
157
|
+
return found === undefined ? { devGroups: GROUPS, build: { notice: null } } : devSectionFor(found);
|
|
155
158
|
}
|
|
156
159
|
/** One POST to a running BN window's act door, answered as `{ status, body }`; a window that will not answer THROWS in words. */
|
|
157
160
|
function askWindow(port, actToken, body) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omni-notify-mcp",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.507",
|
|
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",
|