@akms/mcp-ssh 0.1.6 → 0.1.8
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/CHANGELOG.md +242 -0
- package/README.md +299 -282
- package/lib/cli.cjs +726 -607
- package/lib/cli.cjs.map +1 -1
- package/lib/cli.js +729 -610
- package/lib/cli.js.map +1 -1
- package/lib/index.cjs +6 -2
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +2 -2
- package/lib/index.d.ts +2 -2
- package/lib/index.js +6 -2
- package/lib/index.js.map +1 -1
- package/package.json +3 -1
package/lib/index.cjs
CHANGED
|
@@ -34,7 +34,7 @@ var SESSION_SWEEP_INTERVAL_MS = 6e4;
|
|
|
34
34
|
var CWD_MARKER = "__AKMS_SSH_CWD__";
|
|
35
35
|
var MAX_DIRECTORY_ENTRIES = 1e3;
|
|
36
36
|
var SERVER_NAME = "akms-mcp-ssh";
|
|
37
|
-
var SERVER_VERSION = "0.1.
|
|
37
|
+
var SERVER_VERSION = "0.1.8";
|
|
38
38
|
|
|
39
39
|
// src/_defs/command-rules.ts
|
|
40
40
|
var CRITICAL_PATH_PATTERN = new RegExp(
|
|
@@ -1629,7 +1629,7 @@ var SshConnection = class {
|
|
|
1629
1629
|
* @throws {Error} If the connection was closed, authentication fails, the host is
|
|
1630
1630
|
* unreachable, the handshake times out, or the carrier cannot be opened.
|
|
1631
1631
|
*/
|
|
1632
|
-
async connect() {
|
|
1632
|
+
async connect(onProgress) {
|
|
1633
1633
|
if (this.disposed == true) {
|
|
1634
1634
|
throw new Error(`ssh connection for '${this.profile.name}' has been closed; open a new session`);
|
|
1635
1635
|
}
|
|
@@ -1651,6 +1651,9 @@ var SshConnection = class {
|
|
|
1651
1651
|
this.observedFingerprint = fingerprint;
|
|
1652
1652
|
});
|
|
1653
1653
|
this.connecting = (async () => {
|
|
1654
|
+
if (this.profile.jump != null || this.profile.proxyCommand != null) {
|
|
1655
|
+
onProgress?.("transport");
|
|
1656
|
+
}
|
|
1654
1657
|
const transport = await openTransport(this.profile, (fingerprint) => {
|
|
1655
1658
|
this.observedJumpFingerprint = fingerprint;
|
|
1656
1659
|
});
|
|
@@ -1661,6 +1664,7 @@ var SshConnection = class {
|
|
|
1661
1664
|
if (transport != null) {
|
|
1662
1665
|
connectConfig.sock = transport.sock;
|
|
1663
1666
|
}
|
|
1667
|
+
onProgress?.("host");
|
|
1664
1668
|
await new Promise((resolve, reject) => {
|
|
1665
1669
|
const client = new Client();
|
|
1666
1670
|
this.pendingClient = client;
|