shell-mirror 1.5.90 → 1.5.91

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.
@@ -48,8 +48,8 @@ class TerminalMirrorHttpAgent {
48
48
  const os = require('os');
49
49
  const hostname = os.hostname();
50
50
  const username = os.userInfo().username;
51
- const timestamp = Date.now();
52
- return `mac-${username}-${hostname}-${timestamp}`.replace(/[^a-zA-Z0-9-]/g, '-');
51
+ // No timestamp - consistent ID per machine to avoid duplicate agent registrations
52
+ return `mac-${username}-${hostname}`.replace(/[^a-zA-Z0-9-]/g, '-');
53
53
  }
54
54
 
55
55
  showStartupInfo() {
@@ -118,8 +118,8 @@ function generateAgentId() {
118
118
  const os = require('os');
119
119
  const hostname = os.hostname();
120
120
  const username = os.userInfo().username;
121
- const timestamp = Date.now();
122
- return `mac-${username}-${hostname}-${timestamp}`.replace(/[^a-zA-Z0-9-]/g, '-');
121
+ // No timestamp - consistent ID per machine to avoid duplicate agent registrations
122
+ return `mac-${username}-${hostname}`.replace(/[^a-zA-Z0-9-]/g, '-');
123
123
  }
124
124
 
125
125
  function updateEnvFile(config) {
@@ -122,8 +122,8 @@ function generateAgentId() {
122
122
  const os = require('os');
123
123
  const hostname = os.hostname();
124
124
  const username = os.userInfo().username;
125
- const timestamp = Date.now();
126
- return `mac-${username}-${hostname}-${timestamp}`.replace(/[^a-zA-Z0-9-]/g, '-');
125
+ // No timestamp - consistent ID per machine to avoid duplicate agent registrations
126
+ return `mac-${username}-${hostname}`.replace(/[^a-zA-Z0-9-]/g, '-');
127
127
  }
128
128
 
129
129
  function updateEnvFile(config) {
@@ -127,8 +127,8 @@ function generateAgentId() {
127
127
  const os = require('os');
128
128
  const hostname = os.hostname();
129
129
  const username = os.userInfo().username;
130
- const timestamp = Date.now();
131
- return `mac-${username}-${hostname}-${timestamp}`.replace(/[^a-zA-Z0-9-]/g, '-');
130
+ // No timestamp - consistent ID per machine to avoid duplicate agent registrations
131
+ return `mac-${username}-${hostname}`.replace(/[^a-zA-Z0-9-]/g, '-');
132
132
  }
133
133
 
134
134
  function updateEnvFile(config) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shell-mirror",
3
- "version": "1.5.90",
3
+ "version": "1.5.91",
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": {