@hahahhh/sshx 0.0.6-rc.0 → 0.0.6-rc.1
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 +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -161,7 +161,7 @@ The URL port is the remote port. sshx does not bind `127.0.0.1:<port>`; it binds
|
|
|
161
161
|
|
|
162
162
|
### 🏗️ Shared Server Architecture
|
|
163
163
|
|
|
164
|
-
- Compatible runtime daemons live under `~/.sshx_server/
|
|
164
|
+
- Compatible runtime daemons live under `~/.sshx_server/runtimes/<RuntimeHomeID>` and serve multiple application contexts and sessions. `RuntimeHomeID` is a stable digest of `TargetID` and `RuntimeID`, keeping Unix socket paths safely below platform limits.
|
|
165
165
|
- Client connects through one hidden multiplexed sidecar SSH channel.
|
|
166
166
|
- Server manages port sniffing, forwarding state, and command bridge routing centrally.
|
|
167
167
|
- Clients renew local and remote leases every 5 seconds. A daemon expires a client after 15 seconds without a heartbeat.
|
|
@@ -201,7 +201,7 @@ sshx integrate install cursor
|
|
|
201
201
|
|
|
202
202
|
The command locates OpenSSH, installs paired `ssh`/`scp` shims backed by the same sshx binary, patches JSONC `remote.SSH.path`, and verifies the complete invocation chain. It is idempotent and rolls back settings and shims on failure; run it again to repair the integration after moving the sshx executable. No restart, integration-specific configuration, or extra binary is required.
|
|
203
203
|
|
|
204
|
-
Remote-SSH remains the user-visible OpenSSH connection.
|
|
204
|
+
Remote-SSH remains the user-visible OpenSSH connection. Every real SSH session through an integration shim receives the same application context wrapper, while information probes remain exact passthrough. The wrapper exports a stable `SSHX_CONTEXT_ID` and context-launcher path before executing the original remote command; stdin is never inspected or buffered. Each live session owns a sidecar, and temporary ControlMaster sockets let concurrent SSH and scp calls reuse authentication without a resident integration daemon.
|
|
205
205
|
|
|
206
206
|
### Download Binary
|
|
207
207
|
|
|
@@ -341,7 +341,7 @@ commands:
|
|
|
341
341
|
└─────────────────────────────────┘ └─────────────────────────────────┘
|
|
342
342
|
```
|
|
343
343
|
|
|
344
|
-
1. **Connection**: `sshx remote` opens a normal SSH session and starts a compatible runtime under `~/.sshx_server/
|
|
344
|
+
1. **Connection**: `sshx remote` opens a normal SSH session and starts a compatible runtime under `~/.sshx_server/runtimes/<RuntimeHomeID>`.
|
|
345
345
|
2. **Sidecar channel**: One hidden SSH channel multiplexes command, port, heartbeat, and optional RemoteFS traffic. ContextID routes VS Code/Cursor terminals to a healthy live session.
|
|
346
346
|
3. **Port sniffing**: The server reads `/proc/net/tcp*` (Linux) to detect loopback (`127.0.0.1` / `::1`) and wildcard (`0.0.0.0` / `::`) listeners.
|
|
347
347
|
4. **Forwarding**: Detected ports are forwarded through a single shared local daemon using `ssh -W`.
|