@hahahhh/sshx 0.0.1-rc.2 → 0.0.1-rc.4

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/README.md CHANGED
@@ -65,7 +65,7 @@ sshx first tries to use the same local port as the remote listener. If that loca
65
65
 
66
66
  ### 🏗️ Shared Server Architecture
67
67
 
68
- - One **server daemon** per remote host per user, shared across all concurrent SSH sessions.
68
+ - One **server daemon** per client target alias, installed under `~/.sshx_server/<uuid>` on the remote and shared by that client's concurrent SSH sessions.
69
69
  - Client connects via a hidden `socket-proxy` SSH channel.
70
70
  - Server manages port sniffing, forwarding state, and command bridge routing centrally.
71
71
  - Server stays alive through brief disconnects, exiting after an idle timeout with no clients.
@@ -220,7 +220,7 @@ commands:
220
220
  └─────────────────────────────────┘ └─────────────────────────────────┘
221
221
  ```
222
222
 
223
- 1. **Connection**: `sshx remote` opens a normal SSH session and starts (or connects to) a shared `sshx server` on the remote.
223
+ 1. **Connection**: `sshx remote` opens a normal SSH session and starts (or connects to) the client-target `sshx server` under `~/.sshx_server/<uuid>`.
224
224
  2. **Bridge channel**: A hidden `socket-proxy` SSH channel links the local daemon to the remote server.
225
225
  3. **Port sniffing**: The server reads `/proc/net/tcp*` (Linux) to detect loopback listeners.
226
226
  4. **Forwarding**: Detected ports are forwarded through a single shared local daemon using `ssh -W`.
package/bin/sshx.js CHANGED
@@ -16,7 +16,6 @@ import { fileURLToPath } from "node:url";
16
16
  const platformByNode = new Map([
17
17
  ["darwin", "darwin"],
18
18
  ["linux", "linux"],
19
- ["win32", "windows"],
20
19
  ]);
21
20
 
22
21
  const archByNode = new Map([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hahahhh/sshx",
3
- "version": "0.0.1-rc.2",
3
+ "version": "0.0.1-rc.4",
4
4
  "type": "module",
5
5
  "description": "Transparent SSH enhancement wrapper for OpenSSH",
6
6
  "repository": {
@@ -21,7 +21,7 @@
21
21
  ],
22
22
  "scripts": {
23
23
  "build": "node scripts/build-native.js",
24
- "build:go": "go build -trimpath -o sshx ./cmd/sshx",
24
+ "build:go": "go build -trimpath -ldflags \"-X github.com/xiaot623/sshx/internal/version.Version=${npm_package_version}\" -o sshx ./cmd/sshx",
25
25
  "check": "go vet ./...",
26
26
  "test": "go test ./...",
27
27
  "pre_release": "npm version prerelease --preid=rc -m \"chore: pre-release v%s\" && git push origin HEAD --follow-tags",