omni-notify-mcp 1.3.398 → 1.3.399

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.
@@ -203,25 +203,32 @@ async function newAgentView(){
203
203
  // Neither select forces a pick (#4157): no workspace runs the agent at the workspace root, where the rules of every project route each prompt, and no CLI runs the one whose subscription has room.
204
204
  var cliPlaceholder=el("option","","CLI with room (subscription first)"),folderPlaceholder=el("option","","Workspace root (any project)");
205
205
  cliPlaceholder.value="";folderPlaceholder.value="";provider.append(cliPlaceholder);project.append(folderPlaceholder);
206
- setup.append(provider,project,model,open);main.append(setup);
207
- var folders=[],catalog=[];
206
+ var problem=el("div","err");problem.hidden=true;problem.setAttribute("role","alert");
207
+ setup.append(provider,project,model,open);main.append(setup,problem);
208
+ var folders=[],catalog=[],unread=null;
209
+ function refuse(text){problem.textContent="❌ "+text;problem.hidden=false;}
210
+ function cliName(){var chosen=catalog.filter(function(entry){return entry.name===provider.value;})[0];return chosen?(chosen.label||chosen.name):"the CLI whose subscription has room";}
208
211
  function sync(){
209
212
  var chosen=catalog.filter(function(entry){return entry.name===provider.value;})[0];
210
213
  model.hidden=!(chosen&&chosen.model);if(model.hidden)model.value="";
211
- open.disabled=catalog.length===0;
212
- note.textContent=catalog.length===0
214
+ open.disabled=unread===null&&catalog.length===0;
215
+ note.textContent=unread!==null
216
+ ?"The CLIs and workspaces could not be read. Press ▶ New Agent to read them again."
217
+ :catalog.length===0
213
218
  ?"This gateway lists no CLI to run."
214
- :"Starts a session with "+(chosen?(chosen.label||chosen.name):"the CLI whose subscription has room")+" "+(project.value===""?"at the workspace root, where each prompt is routed to its project":"in "+project.value)+". Its conversation then opens in the same view.";
219
+ :"Starts a session with "+cliName()+" "+(project.value===""?"at the workspace root, where each prompt is routed to its project":"in "+project.value)+". Its conversation then opens in the same view.";
215
220
  }
216
221
  try{var listed=await api("GET","/v1/projects");if(mine!==view)return;folders=listed.projects.filter(function(p){return p.board;});folders.forEach(function(p){var option=el("option","",p.name);option.value=p.name;project.append(option);});
217
222
  var sessions=await api("GET","/v1/terminals");if(mine!==view)return;
218
223
  catalog=sessions.providers||[];
219
224
  catalog.forEach(function(entry){var option=el("option","",entry.label||entry.name);option.value=entry.name;provider.append(option);});
220
- }catch(error){fail(error);}
225
+ }catch(error){if(mine!==view)return;unread=error.message;refuse("The CLIs and workspaces could not be read: "+error.message);}
221
226
  provider.onchange=sync;project.onchange=sync;sync();
222
227
  open.onclick=async function(){
223
- open.disabled=true;
224
- try{var s=await api("POST","/v1/terminals",{provider:provider.value||undefined,project:project.value||undefined,model:model.hidden?"":model.value,cols:100,rows:30});if(mine===view)swap("term",s.id);}catch(error){fail(error);open.disabled=false;}
228
+ if(unread!==null){swap("new");return;}
229
+ open.disabled=true;problem.hidden=true;note.textContent="Starting "+cliName()+"…";
230
+ try{var s=await api("POST","/v1/terminals",{provider:provider.value||undefined,project:project.value||undefined,model:model.hidden?"":model.value,cols:100,rows:30});if(mine===view)swap("term",s.id);}
231
+ catch(error){if(mine!==view)return;refuse("Not started: "+error.message);note.textContent="Not started — the reason is below.";open.disabled=false;}
225
232
  };
226
233
  }
227
234
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omni-notify-mcp",
3
- "version": "1.3.398",
3
+ "version": "1.3.399",
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",