shell-mirror 1.5.9 → 1.5.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shell-mirror",
3
- "version": "1.5.9",
3
+ "version": "1.5.11",
4
4
  "description": "Access your Mac shell from any device securely. Perfect for mobile coding with Claude Code CLI, Gemini CLI, and any shell tool.",
5
5
  "main": "server.js",
6
6
  "bin": {
@@ -95,6 +95,7 @@ async function discoverAgents() {
95
95
  console.log('[DISCOVERY] 🔍 Starting agent discovery...');
96
96
  agentList.innerHTML = '<p style="color: #ccc;">Searching for Mac agents...</p>';
97
97
 
98
+ // WebSocket server on same domain as web app
98
99
  const signalingUrl = (window.location.protocol === 'https:' ? 'wss://' : 'ws://') + window.location.host;
99
100
  const discoveryWs = new WebSocket(`${signalingUrl}?role=discovery`);
100
101
 
@@ -191,6 +192,7 @@ function displayAvailableAgents(agents) {
191
192
 
192
193
  async function initialize() {
193
194
  console.log('[CLIENT] 🚀 Initializing WebRTC connection to agent:', AGENT_ID);
195
+ // WebSocket server on same domain as web app
194
196
  const signalingUrl = (window.location.protocol === 'https:' ? 'wss://' : 'ws://') + window.location.host;
195
197
  ws = new WebSocket(`${signalingUrl}?role=client`);
196
198