omni-notify-mcp 1.3.439 → 1.3.440
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.
|
@@ -26,6 +26,7 @@ export const KEY_BAR = [
|
|
|
26
26
|
{ id: "home", label: "Home", title: "Home", seq: ["\x1b[H", "\x1bOH"] },
|
|
27
27
|
{ id: "end", label: "End", title: "End", seq: ["\x1b[F", "\x1bOF"] },
|
|
28
28
|
];
|
|
29
|
+
export const NEW_LINE = { id: "newline", label: "⏎ Line", title: "New line", seq: ["\x1b[200~\n\x1b[201~", "\x1b[200~\n\x1b[201~"] };
|
|
29
30
|
export function ctrlByte(data) {
|
|
30
31
|
if (data.length !== 1)
|
|
31
32
|
return data;
|
|
@@ -120,7 +121,7 @@ var btnNew=document.getElementById("newagent"),btnConvs=document.getElementById(
|
|
|
120
121
|
// A phone is a touch screen no wider than 600px on its short side. Its normal mode lays the page out at the screen's own width; its desktop-site mode lays it out wider and shrinks it to the glass, so everything the page draws outside the terminal is scaled up by that ratio and the terminal's font with it.
|
|
121
122
|
var ctrlByte=${ctrlByte.toString()};
|
|
122
123
|
var ctrlBarSeq=${ctrlBarSeq.toString()};
|
|
123
|
-
var KEY_BAR=${JSON.stringify(KEY_BAR)};
|
|
124
|
+
var KEY_BAR=${JSON.stringify(KEY_BAR)},NEW_LINE=${JSON.stringify(NEW_LINE)};
|
|
124
125
|
var phone,phoneScale,refit=function(){};
|
|
125
126
|
function sizePhone(){
|
|
126
127
|
phone=matchMedia("(pointer:coarse)").matches&&Math.min(screen.width,screen.height)<=600;phoneScale=phone?Math.min(3,Math.max(1,innerWidth/screen.width)):1;
|
|
@@ -436,7 +437,7 @@ async function cliAttach(id,origin){
|
|
|
436
437
|
var unacked=[],inputs=0,from=sender+"."+mine;function typed(body){inputs+=1;var sent={id:inputs,frame:JSON.stringify(Object.assign({kind:"input",from:from,id:inputs},body))};unacked.push(sent);if(socket!==null&&socket.readyState===WebSocket.OPEN)socket.send(sent.frame);}
|
|
437
438
|
function sendKey(data){if(ctrlHeld){disarm();data=ctrlBarSeq(data);}typed({data:data});}
|
|
438
439
|
keybar.replaceChildren();keybar.hidden=false;
|
|
439
|
-
KEY_BAR.slice(0,7)
|
|
440
|
+
[NEW_LINE].concat(KEY_BAR.slice(0,7),[{id:"ctrl",label:"Ctrl",title:"Ctrl (sticky)"}],KEY_BAR.slice(7)).forEach(function(key){
|
|
440
441
|
var b=el("button","",key.label);b.setAttribute("aria-label",key.title);b.type="button";
|
|
441
442
|
var keep=function(event){event.preventDefault();};b.addEventListener("pointerdown",keep);b.addEventListener("mousedown",keep);
|
|
442
443
|
if(key.id==="ctrl"){ctrlKey=b;b.onclick=function(){ctrlHeld=!ctrlHeld;b.classList.toggle("armed",ctrlHeld);term.focus();};}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omni-notify-mcp",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.440",
|
|
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",
|