rterm-backend 2.8.1 → 2.8.2

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.js +14 -5
  2. package/package.json +1 -1
package/bin/gybackend.js CHANGED
@@ -269056,7 +269056,7 @@ var require_cross_spawn = __commonJS({
269056
269056
  var cp = require("child_process");
269057
269057
  var parse8 = require_parse2();
269058
269058
  var enoent = require_enoent();
269059
- function spawn4(command, args, options) {
269059
+ function spawn3(command, args, options) {
269060
269060
  const parsed = parse8(command, args, options);
269061
269061
  const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
269062
269062
  enoent.hookChildProcess(spawned, parsed);
@@ -269068,8 +269068,8 @@ var require_cross_spawn = __commonJS({
269068
269068
  result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
269069
269069
  return result;
269070
269070
  }
269071
- module2.exports = spawn4;
269072
- module2.exports.spawn = spawn4;
269071
+ module2.exports = spawn3;
269072
+ module2.exports.spawn = spawn3;
269073
269073
  module2.exports.sync = spawnSync;
269074
269074
  module2.exports._parse = parse8;
269075
269075
  module2.exports._enoent = enoent;
@@ -279627,7 +279627,6 @@ var isSshConnectionConfig = (config2) => config2.type === "ssh";
279627
279627
  var isTerminalFileSystemBackend = (backend) => typeof backend.readFile === "function" && typeof backend.writeFile === "function" && typeof backend.readFileChunk === "function" && typeof backend.writeFileChunk === "function" && typeof backend.statFile === "function" && typeof backend.listDirectory === "function" && typeof backend.createDirectory === "function" && typeof backend.createFile === "function" && typeof backend.deletePath === "function" && typeof backend.renamePath === "function" && typeof backend.writeFileBytes === "function";
279628
279628
 
279629
279629
  // ../../packages/backend/src/services/NodePtyBackend.ts
279630
- var pty = __toESM(require("node-pty"), 1);
279631
279630
  var os = __toESM(require("os"), 1);
279632
279631
  var fs = __toESM(require("fs"), 1);
279633
279632
  var path = __toESM(require("path"), 1);
@@ -279722,6 +279721,16 @@ var parseWindowsPromptMarkerLine = (line) => {
279722
279721
  };
279723
279722
 
279724
279723
  // ../../packages/backend/src/services/NodePtyBackend.ts
279724
+ var pty = null;
279725
+ function loadPty() {
279726
+ if (pty) return pty;
279727
+ try {
279728
+ pty = require("node-pty");
279729
+ return pty;
279730
+ } catch (e) {
279731
+ throw new Error(`node-pty is not available in this build (local PTY terminals are unavailable; SSH/WinRM/serial terminals still work): ${e instanceof Error ? e.message : String(e)}`);
279732
+ }
279733
+ }
279725
279734
  var execFileAsync = (0, import_util.promisify)(import_child_process.execFile);
279726
279735
  var GYSHELL_READY_MARKER = "__GYSHELL_READY__";
279727
279736
  var NodePtyBackend = class {
@@ -280057,7 +280066,7 @@ var NodePtyBackend = class {
280057
280066
  commandOutputPath
280058
280067
  } = this.buildShellIntegration(shell2);
280059
280068
  const mergedEnv = { ...env, ...localeEnv, ...envOverrides };
280060
- const ptyProcess = pty.spawn(shell2, args, {
280069
+ const ptyProcess = loadPty().spawn(shell2, args, {
280061
280070
  name: "xterm-256color",
280062
280071
  cols: config2.cols || 80,
280063
280072
  rows: config2.rows || 24,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rterm-backend",
3
- "version": "2.8.1",
3
+ "version": "2.8.2",
4
4
  "description": "RTerm headless backend — run RTerm-as-a-service (AI agent, SSH/WinRM/Serial/local terminals, fleet orchestration, advanced automation with event-driven triggers + NATS event mesh, scheduled automation, SRE observability, Netdata integration, AWS APerf performance deep-dive, plugin system) and drive it over a WebSocket JSON-RPC gateway. No desktop UI required.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",