shell-mirror 1.5.73 → 1.5.74

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.73",
3
+ "version": "1.5.74",
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": {
@@ -191,7 +191,11 @@
191
191
  showSolution(`
192
192
  <strong>No Mac Agents:</strong><br>
193
193
  No Mac agents are registered for your account.<br><br>
194
- <strong>Solution:</strong> On your Mac, run: <code>npm install -g shell-mirror && shell-mirror</code>
194
+ <strong>Solution:</strong> On your Mac, run:<br><br>
195
+ <div style="background: #f8f9fa; border: 1px solid #e1e4e8; border-radius: 8px; padding: 12px 14px; display: inline-flex; align-items: center; gap: 12px; max-width: 100%;">
196
+ <code style="font-family: 'Monaco', 'Menlo', 'Courier New', monospace; font-size: 0.9rem; color: #1a1a1a;">npm install -g shell-mirror && shell-mirror</code>
197
+ <button onclick="copyToClipboard('npm install -g shell-mirror && shell-mirror', this)" style="background: #667eea; color: white; border: none; border-radius: 6px; padding: 6px 12px; font-size: 0.85rem; cursor: pointer; transition: all 0.2s ease; white-space: nowrap;">Copy</button>
198
+ </div>
195
199
  `);
196
200
  }
197
201
 
@@ -204,6 +208,22 @@
204
208
  document.getElementById('solution').style.display = 'none';
205
209
  }
206
210
 
211
+ function copyToClipboard(text, button) {
212
+ navigator.clipboard.writeText(text).then(() => {
213
+ const originalText = button.textContent;
214
+ button.textContent = 'Copied!';
215
+ setTimeout(() => {
216
+ button.textContent = originalText;
217
+ }, 2000);
218
+ }).catch(err => {
219
+ console.error('Failed to copy:', err);
220
+ button.textContent = 'Failed';
221
+ setTimeout(() => {
222
+ button.textContent = 'Copy';
223
+ }, 2000);
224
+ });
225
+ }
226
+
207
227
  function loginWithGoogle() {
208
228
  window.location.href = '/php-backend/api/auth-login.php';
209
229
  }