shell-mirror 1.5.10 → 1.5.12

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.10",
3
+ "version": "1.5.12",
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,15 +95,8 @@ 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
- // Production WebSocket server configuration
99
- let signalingUrl;
100
- if (window.location.hostname === 'shellmirror.app') {
101
- // Production: Use separate WebSocket server (to be deployed)
102
- signalingUrl = 'wss://ws.shellmirror.app';
103
- } else {
104
- // Development: Use local server
105
- signalingUrl = (window.location.protocol === 'https:' ? 'wss://' : 'ws://') + window.location.host;
106
- }
98
+ // WebSocket server on same domain as web app
99
+ const signalingUrl = (window.location.protocol === 'https:' ? 'wss://' : 'ws://') + window.location.host;
107
100
  const discoveryWs = new WebSocket(`${signalingUrl}?role=discovery`);
108
101
 
109
102
  discoveryWs.onopen = () => {
@@ -199,15 +192,8 @@ function displayAvailableAgents(agents) {
199
192
 
200
193
  async function initialize() {
201
194
  console.log('[CLIENT] 🚀 Initializing WebRTC connection to agent:', AGENT_ID);
202
- // Production WebSocket server configuration
203
- let signalingUrl;
204
- if (window.location.hostname === 'shellmirror.app') {
205
- // Production: Use separate WebSocket server (to be deployed)
206
- signalingUrl = 'wss://ws.shellmirror.app';
207
- } else {
208
- // Development: Use local server
209
- signalingUrl = (window.location.protocol === 'https:' ? 'wss://' : 'ws://') + window.location.host;
210
- }
195
+ // WebSocket server on same domain as web app
196
+ const signalingUrl = (window.location.protocol === 'https:' ? 'wss://' : 'ws://') + window.location.host;
211
197
  ws = new WebSocket(`${signalingUrl}?role=client`);
212
198
 
213
199
  ws.onopen = () => {
package/public/index.html CHANGED
@@ -653,9 +653,9 @@
653
653
  </section>
654
654
 
655
655
  <!-- Version Footer -->
656
- <footer style="background: #1a1a1a; color: #666; text-align: center; padding: 20px 0; font-size: 0.8rem;">
656
+ <footer style="background: #ff6b35; color: white; text-align: center; padding: 20px 0; font-size: 0.8rem;">
657
657
  <div class="container">
658
- <p id="version-info">Shell Mirror v1.5.2 • Loading build info...</p>
658
+ <p id="version-info">Shell Mirror v1.5.11 • Loading build info...</p>
659
659
  </div>
660
660
  </footer>
661
661
  </main>