xkat-cli 2.0.15 → 2.0.16

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.
@@ -1,7 +1,7 @@
1
1
  {
2
- "xkat-agent-macos-aarch64": "e1b15cbea556bf1b7f1ec56e05a089eb5b1239a482eb195bef247fa65d233649",
3
- "xkat-agent-macos-x64": "0c8041d95b3d7911ad9572cba9cc68ce86d5621d0040d516bbce40a23cf80544",
4
- "xkat-agent-linux-x64": "581d35363debeff79b71b73d2d7d55c8273d8a0dadb5929c05532fa6d2004f8c",
5
- "xkat-agent-linux-aarch64": "05aaff56d74dd66c50b9ddd848123c918660bee761da42973c22fd6bdc8000ca",
6
- "xkat-agent-win-x64.exe": "ee568b3796c21558e1f483e43dfa810c0bca5354046b03a5b259ede0980df027"
2
+ "xkat-agent-macos-aarch64": "25c4d1d21981960f54a903f03bacfac4541ec6c0488299f21408e1be4d9d0cba",
3
+ "xkat-agent-macos-x64": "12e129862a0a3db9f1f3ab3a9053fdaa50f48683e2118c8197cca92a159fb353",
4
+ "xkat-agent-linux-x64": "2371ac2540cf1f996e436846b6cc5fb592d9034f3d0cf2c4c525f41f719d83f7",
5
+ "xkat-agent-linux-aarch64": "1c65926c101ede43154abaec99a0614664806bf7f3a8dcd359a2f73a4b65203b",
6
+ "xkat-agent-win-x64.exe": "67071b9cb027ca1c589110c1c1dbab23ebdf5530a8f04c14f2a2ccbea14ae3c9"
7
7
  }
package/bin/xkat-cli.js CHANGED
@@ -51,20 +51,20 @@ const binaryPath = candidatePaths.find((p) => fs.existsSync(p));
51
51
  const args = process.argv.slice(2);
52
52
  const subCmd = args.join(' ').trim();
53
53
 
54
- // ── 1. Zero-Touch Port 10022 Cleanup Command ──
54
+ // ── 1. Zero-Touch Port 38000..38050 & 10022 Cleanup Command ──
55
55
  if (subCmd === 'down' || subCmd === 'stop' || subCmd === 'kill' || subCmd === 'clean') {
56
- console.log('🛑 Cleaning up port 10022 and stopping existing xkat agent instances...');
56
+ console.log('🛑 Cleaning up agent ports (38000..38050, 10022) and stopping existing xkat agent instances...');
57
57
  if (os.platform() === 'win32') {
58
58
  spawnSync('powershell', [
59
59
  '-NoProfile',
60
60
  '-NonInteractive',
61
61
  '-Command',
62
- 'Get-NetTCPConnection -LocalPort 10022 -ErrorAction SilentlyContinue | Select-Object -ExpandProperty OwningProcess -Unique | Where-Object { $_ -gt 0 } | ForEach-Object { Stop-Process -Id $_ -Force -ErrorAction SilentlyContinue }; Get-Process -Name xkat-agent*, xkat* -ErrorAction SilentlyContinue | Stop-Process -Force -ErrorAction SilentlyContinue'
62
+ '38000..38050 + @(10022) | ForEach-Object { Get-NetTCPConnection -LocalPort $_ -ErrorAction SilentlyContinue | Select-Object -ExpandProperty OwningProcess -Unique | Where-Object { $_ -gt 0 } | ForEach-Object { Stop-Process -Id $_ -Force -ErrorAction SilentlyContinue } }; Get-Process -Name xkat-agent*, xkat* -ErrorAction SilentlyContinue | Stop-Process -Force -ErrorAction SilentlyContinue'
63
63
  ], { stdio: 'inherit' });
64
64
  } else {
65
- spawnSync('sh', ['-c', 'fuser -k 10022/tcp 2>/dev/null || true; pgrep -f "xkat-agent" | xargs -r kill -9 2>/dev/null || true'], { stdio: 'inherit' });
65
+ spawnSync('sh', ['-c', 'fuser -k 38000-38050/tcp 2>/dev/null || true; fuser -k 10022/tcp 2>/dev/null || true; pgrep -f "xkat-agent" | xargs -r kill -9 2>/dev/null || true'], { stdio: 'inherit' });
66
66
  }
67
- console.log('✅ Port 10022 is now completely free.');
67
+ console.log('✅ Agent ports are now completely free.');
68
68
  process.exit(0);
69
69
  }
70
70
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xkat-cli",
3
- "version": "2.0.15",
3
+ "version": "2.0.16",
4
4
  "description": "xkat Agent - an AI agent that securely connects your browser to your machine",
5
5
  "main": "bin/xkat-cli.js",
6
6
  "bin": {