omni-notify-mcp 1.3.448 → 1.3.449
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.
|
@@ -28,7 +28,10 @@ export const KEY_BAR = [
|
|
|
28
28
|
];
|
|
29
29
|
export const NEW_LINE = { id: "newline", label: "⏎ Line", title: "New line", seq: ["\x1b[200~\n\x1b[201~", "\x1b[200~\n\x1b[201~"] };
|
|
30
30
|
const TERMINAL_REPLY = /^(?:\x1b\[[IO]|\x1b\[\??\d+;\d+R|\x1b\[[?>][0-9;]*c|\x1b\[\??[0-9;]*\$y)+$/;
|
|
31
|
+
export const NEW_LINE_IN_BOX = "\x1b\r";
|
|
31
32
|
export function ctrlByte(data) {
|
|
33
|
+
if (data === "\r")
|
|
34
|
+
return "\x1b\r";
|
|
32
35
|
if (data.length !== 1)
|
|
33
36
|
return data;
|
|
34
37
|
const code = data.charCodeAt(0);
|
|
@@ -124,7 +127,7 @@ var btnNew=document.getElementById("newagent"),btnConvs=document.getElementById(
|
|
|
124
127
|
// 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.
|
|
125
128
|
var ctrlByte=${ctrlByte.toString()};
|
|
126
129
|
var ctrlBarSeq=${ctrlBarSeq.toString()};
|
|
127
|
-
var TERMINAL_REPLY=${TERMINAL_REPLY.toString()};
|
|
130
|
+
var TERMINAL_REPLY=${TERMINAL_REPLY.toString()},NEW_LINE_IN_BOX=${JSON.stringify(NEW_LINE_IN_BOX)};
|
|
128
131
|
var KEY_BAR=${JSON.stringify(KEY_BAR)},NEW_LINE=${JSON.stringify(NEW_LINE)};
|
|
129
132
|
var phone,phoneScale,refit=function(){};
|
|
130
133
|
function sizePhone(){
|
|
@@ -433,6 +436,7 @@ async function cliAttach(id,origin){
|
|
|
433
436
|
// Returning false hands that one key back to the browser: Ctrl+C copies the selected text and does not interrupt
|
|
434
437
|
// the CLI unless nothing is selected, and Ctrl+V pastes the clipboard into the CLI.
|
|
435
438
|
term.attachCustomKeyEventHandler(function(e){
|
|
439
|
+
if(e.key==="Enter"&&(e.ctrlKey||e.shiftKey)&&!e.altKey&&!e.metaKey){if(e.type==="keydown"){e.preventDefault();typed({data:NEW_LINE_IN_BOX},withhold);}return false;}
|
|
436
440
|
if(e.type!=="keydown"||e.altKey)return true;
|
|
437
441
|
var key=e.key.toLowerCase(),held=e.ctrlKey||e.metaKey;
|
|
438
442
|
if((held&&key==="c")||(e.ctrlKey&&key==="insert"))return term.hasSelection()?false:true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omni-notify-mcp",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.449",
|
|
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",
|