rterm-backend 3.0.5 → 3.0.7
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/bin/gybackend.cjs +32 -7
- package/package.json +1 -1
package/bin/gybackend.cjs
CHANGED
|
@@ -281246,7 +281246,7 @@ function loadSsh2() {
|
|
|
281246
281246
|
}
|
|
281247
281247
|
}
|
|
281248
281248
|
var GYSHELL_READY_MARKER2 = "__GYSHELL_READY__";
|
|
281249
|
-
var SSH_CONNECT_READY_TIMEOUT_MS =
|
|
281249
|
+
var SSH_CONNECT_READY_TIMEOUT_MS = 6e4;
|
|
281250
281250
|
var SSH_KEEPALIVE_INTERVAL_MS = 3e4;
|
|
281251
281251
|
var SSH_KEEPALIVE_COUNT_MAX = 3;
|
|
281252
281252
|
var LEGACY_ALGORITHMS = {
|
|
@@ -281264,7 +281264,9 @@ var LEGACY_ALGORITHMS = {
|
|
|
281264
281264
|
"diffie-hellman-group14-sha1",
|
|
281265
281265
|
"diffie-hellman-group-exchange-sha256",
|
|
281266
281266
|
"diffie-hellman-group-exchange-sha1",
|
|
281267
|
-
"diffie-hellman-group1-sha1"
|
|
281267
|
+
"diffie-hellman-group1-sha1",
|
|
281268
|
+
// v3.0.6: group-exchange with SHA-256/512 used by some mid-age daemons.
|
|
281269
|
+
"diffie-hellman-group-exchange-sha512"
|
|
281268
281270
|
],
|
|
281269
281271
|
serverHostKey: [
|
|
281270
281272
|
"rsa-sha2-512",
|
|
@@ -281274,7 +281276,12 @@ var LEGACY_ALGORITHMS = {
|
|
|
281274
281276
|
"ecdsa-sha2-nistp256",
|
|
281275
281277
|
"ecdsa-sha2-nistp384",
|
|
281276
281278
|
"ecdsa-sha2-nistp521",
|
|
281277
|
-
"ssh-dss"
|
|
281279
|
+
"ssh-dss",
|
|
281280
|
+
// v3.0.6: additional legacy host-key algos some very old daemons offer.
|
|
281281
|
+
"ssh-rsa1",
|
|
281282
|
+
"x509v3-sign-rsa",
|
|
281283
|
+
"x509v3-ssh-rsa",
|
|
281284
|
+
"x509v3-sign-dss"
|
|
281278
281285
|
],
|
|
281279
281286
|
cipher: [
|
|
281280
281287
|
"aes128-ctr",
|
|
@@ -281288,7 +281295,12 @@ var LEGACY_ALGORITHMS = {
|
|
|
281288
281295
|
"aes128-cbc",
|
|
281289
281296
|
"aes192-cbc",
|
|
281290
281297
|
"aes256-cbc",
|
|
281291
|
-
"3des-cbc"
|
|
281298
|
+
"3des-cbc",
|
|
281299
|
+
// v3.0.6: rijndael/serpent/twofish variants a few ancient servers still use.
|
|
281300
|
+
"rijndael128-cbc",
|
|
281301
|
+
"rijndael192-cbc",
|
|
281302
|
+
"rijndael256-cbc",
|
|
281303
|
+
"rijndael-cbc@lysator.liu.se"
|
|
281292
281304
|
],
|
|
281293
281305
|
hmac: [
|
|
281294
281306
|
"hmac-sha2-256",
|
|
@@ -281318,7 +281330,7 @@ var CISCO_ALGORITHMS = {
|
|
|
281318
281330
|
"ecdh-sha2-nistp384",
|
|
281319
281331
|
"ecdh-sha2-nistp521"
|
|
281320
281332
|
],
|
|
281321
|
-
serverHostKey: ["ssh-rsa", "rsa-sha2-256", "rsa-sha2-512", "ssh-ed25519", "ssh-dss"],
|
|
281333
|
+
serverHostKey: ["ssh-rsa", "rsa-sha2-256", "rsa-sha2-512", "ssh-ed25519", "ssh-dss", "x509v3-ssh-rsa", "x509v3-sign-rsa"],
|
|
281322
281334
|
cipher: [
|
|
281323
281335
|
"aes128-cbc",
|
|
281324
281336
|
"aes192-cbc",
|
|
@@ -281326,7 +281338,10 @@ var CISCO_ALGORITHMS = {
|
|
|
281326
281338
|
"3des-cbc",
|
|
281327
281339
|
"aes128-ctr",
|
|
281328
281340
|
"aes192-ctr",
|
|
281329
|
-
"aes256-ctr"
|
|
281341
|
+
"aes256-ctr",
|
|
281342
|
+
"rijndael128-cbc",
|
|
281343
|
+
"rijndael192-cbc",
|
|
281344
|
+
"rijndael256-cbc"
|
|
281330
281345
|
],
|
|
281331
281346
|
hmac: [
|
|
281332
281347
|
"hmac-sha1",
|
|
@@ -281376,7 +281391,9 @@ var SSHBackend = class _SSHBackend {
|
|
|
281376
281391
|
host: sshConfig.host,
|
|
281377
281392
|
port: sshConfig.port,
|
|
281378
281393
|
username: sshConfig.username,
|
|
281379
|
-
|
|
281394
|
+
// Per-connection override (v3.0.6) wins over the 60s default — useful to
|
|
281395
|
+
// raise further for very slow legacy negotiation or lower for fast LAN.
|
|
281396
|
+
readyTimeout: typeof sshConfig.readyTimeout === "number" && sshConfig.readyTimeout > 0 ? sshConfig.readyTimeout : SSH_CONNECT_READY_TIMEOUT_MS,
|
|
281380
281397
|
keepaliveInterval: SSH_KEEPALIVE_INTERVAL_MS,
|
|
281381
281398
|
keepaliveCountMax: SSH_KEEPALIVE_COUNT_MAX,
|
|
281382
281399
|
...algorithms ? { algorithms } : {},
|
|
@@ -289526,6 +289543,14 @@ var normalizePersistedTerminalConfig = (raw) => {
|
|
|
289526
289543
|
...typeof raw.privateKey === "string" ? { privateKey: raw.privateKey } : {},
|
|
289527
289544
|
...typeof raw.privateKeyPath === "string" ? { privateKeyPath: raw.privateKeyPath } : {},
|
|
289528
289545
|
...typeof raw.passphrase === "string" ? { passphrase: raw.passphrase } : {},
|
|
289546
|
+
// v3.0.6: carry the algorithm preset through persistence/reconnect — dropping
|
|
289547
|
+
// it reverted Cisco/legacy tabs to 'modern' on reopen/reconnect, which broke
|
|
289548
|
+
// the handshake AND made SFTP init run on devices with no SFTP (the
|
|
289549
|
+
// "SFTP unavailable: Not connected" bug).
|
|
289550
|
+
...raw.algorithmsPreset === "legacy" || raw.algorithmsPreset === "cisco" || raw.algorithmsPreset === "modern" ? { algorithmsPreset: raw.algorithmsPreset } : {},
|
|
289551
|
+
// v3.0.6: carry the SSH handshake ready-timeout override too (slow legacy
|
|
289552
|
+
// negotiation); without it a per-connection override was lost on reopen.
|
|
289553
|
+
...typeof raw.readyTimeout === "number" && Number.isFinite(raw.readyTimeout) && raw.readyTimeout > 0 ? { readyTimeout: raw.readyTimeout } : {},
|
|
289529
289554
|
...isObject(raw.proxy) ? { proxy: raw.proxy } : {},
|
|
289530
289555
|
...Array.isArray(raw.tunnels) ? { tunnels: raw.tunnels } : {},
|
|
289531
289556
|
...isObject(raw.jumpHost) ? { jumpHost: raw.jumpHost } : {}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rterm-backend",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.7",
|
|
4
4
|
"description": "rterm-backend — the headless AI-native backend for RTerm (dual-published as neuralOS). run RTerm-as-a-service (AI agent, SSH/WinRM/Serial/local terminals, fleet orchestration, advanced automation, SRE observability, Netdata, AWS APerf, plugin system, governance/audit, Prometheus/OTel metrics export, secrets vault, on-call paging, AI cost budgets, GitOps, cloud inventory, APM/DEM/Infra/ETW ingestion, AgentSpan durable-agent bridge). The RTerm desktop app stays RTerm; neuralOS is the standalone backend daemon. Dual-published as rterm-backend. v3.0.5: terminal core (SSH auto-reconnect, WinRM persistent+streaming, serial break), chat user-message nav, reconnecting indicator, memory search/cap.",
|
|
5
5
|
"main": "bin/gybackend.cjs",
|
|
6
6
|
"bin": {
|