rterm-backend 3.0.6 → 3.0.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.
Files changed (2) hide show
  1. package/bin/gybackend.cjs +12 -2
  2. 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 = 2e4;
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 = {
@@ -281376,7 +281376,9 @@ var SSHBackend = class _SSHBackend {
281376
281376
  host: sshConfig.host,
281377
281377
  port: sshConfig.port,
281378
281378
  username: sshConfig.username,
281379
- readyTimeout: SSH_CONNECT_READY_TIMEOUT_MS,
281379
+ // Per-connection override (v3.0.6) wins over the 60s default — useful to
281380
+ // raise further for very slow legacy negotiation or lower for fast LAN.
281381
+ readyTimeout: typeof sshConfig.readyTimeout === "number" && sshConfig.readyTimeout > 0 ? sshConfig.readyTimeout : SSH_CONNECT_READY_TIMEOUT_MS,
281380
281382
  keepaliveInterval: SSH_KEEPALIVE_INTERVAL_MS,
281381
281383
  keepaliveCountMax: SSH_KEEPALIVE_COUNT_MAX,
281382
281384
  ...algorithms ? { algorithms } : {},
@@ -289526,6 +289528,14 @@ var normalizePersistedTerminalConfig = (raw) => {
289526
289528
  ...typeof raw.privateKey === "string" ? { privateKey: raw.privateKey } : {},
289527
289529
  ...typeof raw.privateKeyPath === "string" ? { privateKeyPath: raw.privateKeyPath } : {},
289528
289530
  ...typeof raw.passphrase === "string" ? { passphrase: raw.passphrase } : {},
289531
+ // v3.0.6: carry the algorithm preset through persistence/reconnect — dropping
289532
+ // it reverted Cisco/legacy tabs to 'modern' on reopen/reconnect, which broke
289533
+ // the handshake AND made SFTP init run on devices with no SFTP (the
289534
+ // "SFTP unavailable: Not connected" bug).
289535
+ ...raw.algorithmsPreset === "legacy" || raw.algorithmsPreset === "cisco" || raw.algorithmsPreset === "modern" ? { algorithmsPreset: raw.algorithmsPreset } : {},
289536
+ // v3.0.6: carry the SSH handshake ready-timeout override too (slow legacy
289537
+ // negotiation); without it a per-connection override was lost on reopen.
289538
+ ...typeof raw.readyTimeout === "number" && Number.isFinite(raw.readyTimeout) && raw.readyTimeout > 0 ? { readyTimeout: raw.readyTimeout } : {},
289529
289539
  ...isObject(raw.proxy) ? { proxy: raw.proxy } : {},
289530
289540
  ...Array.isArray(raw.tunnels) ? { tunnels: raw.tunnels } : {},
289531
289541
  ...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.6",
3
+ "version": "3.0.8",
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": {