rterm-backend 2.9.7 → 2.9.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/bin/gybackend.cjs +22 -16
- package/package.json +2 -2
package/bin/gybackend.cjs
CHANGED
|
@@ -11834,16 +11834,16 @@ function openBetterSqlite3Database(filePath, options) {
|
|
|
11834
11834
|
);
|
|
11835
11835
|
}
|
|
11836
11836
|
}
|
|
11837
|
-
var import_node_fs, import_node_path3,
|
|
11837
|
+
var import_node_fs, import_node_path3, import_node_module3, import_meta5, require2, NODE_RUNTIME_PACKAGE_NAME, ELECTRON_RUNTIME_PACKAGE_NAME, cachedConstructor, cachedPackageName, nativeBindingIsConstructor;
|
|
11838
11838
|
var init_betterSqlite3Runtime = __esm({
|
|
11839
11839
|
"../../packages/backend/src/services/history/betterSqlite3Runtime.ts"() {
|
|
11840
11840
|
"use strict";
|
|
11841
11841
|
import_node_fs = __toESM(require("node:fs"), 1);
|
|
11842
11842
|
import_node_path3 = __toESM(require("node:path"), 1);
|
|
11843
|
-
|
|
11844
|
-
|
|
11845
|
-
require2 = (0,
|
|
11846
|
-
typeof __filename !== "undefined" ? __filename :
|
|
11843
|
+
import_node_module3 = require("node:module");
|
|
11844
|
+
import_meta5 = {};
|
|
11845
|
+
require2 = (0, import_node_module3.createRequire)(
|
|
11846
|
+
typeof __filename !== "undefined" ? __filename : import_meta5.url
|
|
11847
11847
|
);
|
|
11848
11848
|
NODE_RUNTIME_PACKAGE_NAME = "better-sqlite3";
|
|
11849
11849
|
ELECTRON_RUNTIME_PACKAGE_NAME = "better-sqlite3-electron";
|
|
@@ -280133,6 +280133,7 @@ var isSshConnectionConfig = (config2) => config2.type === "ssh";
|
|
|
280133
280133
|
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";
|
|
280134
280134
|
|
|
280135
280135
|
// ../../packages/backend/src/services/NodePtyBackend.ts
|
|
280136
|
+
var import_node_module = require("node:module");
|
|
280136
280137
|
var os = __toESM(require("os"), 1);
|
|
280137
280138
|
var fs = __toESM(require("fs"), 1);
|
|
280138
280139
|
var path = __toESM(require("path"), 1);
|
|
@@ -280227,11 +280228,13 @@ var parseWindowsPromptMarkerLine = (line) => {
|
|
|
280227
280228
|
};
|
|
280228
280229
|
|
|
280229
280230
|
// ../../packages/backend/src/services/NodePtyBackend.ts
|
|
280231
|
+
var import_meta = {};
|
|
280230
280232
|
var pty = null;
|
|
280231
280233
|
function loadPty() {
|
|
280232
280234
|
if (pty) return pty;
|
|
280233
280235
|
try {
|
|
280234
|
-
|
|
280236
|
+
const req = (0, import_node_module.createRequire)(typeof __filename !== "undefined" ? __filename : import_meta.url);
|
|
280237
|
+
pty = req("node-pty");
|
|
280235
280238
|
return pty;
|
|
280236
280239
|
} catch (e) {
|
|
280237
280240
|
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)}`);
|
|
@@ -281093,6 +281096,7 @@ add-zsh-hook precmd gyshell_precmd
|
|
|
281093
281096
|
};
|
|
281094
281097
|
|
|
281095
281098
|
// ../../packages/backend/src/services/SSHBackend.ts
|
|
281099
|
+
var import_node_module2 = require("node:module");
|
|
281096
281100
|
var fs2 = __toESM(require("fs"), 1);
|
|
281097
281101
|
var net = __toESM(require("net"), 1);
|
|
281098
281102
|
var import_node_path = require("node:path");
|
|
@@ -281229,12 +281233,14 @@ var DEFAULT_SFTP_TRANSFER_PROFILES = [
|
|
|
281229
281233
|
];
|
|
281230
281234
|
|
|
281231
281235
|
// ../../packages/backend/src/services/SSHBackend.ts
|
|
281232
|
-
var
|
|
281236
|
+
var import_meta2 = {};
|
|
281237
|
+
var ssh2Lib = null;
|
|
281233
281238
|
function loadSsh2() {
|
|
281234
|
-
if (
|
|
281239
|
+
if (ssh2Lib) return ssh2Lib;
|
|
281235
281240
|
try {
|
|
281236
|
-
|
|
281237
|
-
|
|
281241
|
+
const req = (0, import_node_module2.createRequire)(typeof __filename !== "undefined" ? __filename : import_meta2.url);
|
|
281242
|
+
ssh2Lib = req("ssh2");
|
|
281243
|
+
return ssh2Lib;
|
|
281238
281244
|
} catch (e) {
|
|
281239
281245
|
throw new Error(`ssh2 is not available in this build (SSH terminals are unavailable; WinRM/serial/local terminals still work): ${e instanceof Error ? e.message : String(e)}`);
|
|
281240
281246
|
}
|
|
@@ -378888,7 +378894,7 @@ function createTriggerRuntime(deps) {
|
|
|
378888
378894
|
}
|
|
378889
378895
|
|
|
378890
378896
|
// ../../packages/backend/src/services/observability.ts
|
|
378891
|
-
var
|
|
378897
|
+
var import_node_module4 = require("node:module");
|
|
378892
378898
|
var import_node_path27 = __toESM(require("node:path"), 1);
|
|
378893
378899
|
|
|
378894
378900
|
// ../../packages/backend/src/services/sre/metricsLedger.ts
|
|
@@ -385088,7 +385094,7 @@ var LiveDashboardHub = class {
|
|
|
385088
385094
|
};
|
|
385089
385095
|
|
|
385090
385096
|
// ../../packages/backend/src/services/observability.ts
|
|
385091
|
-
var
|
|
385097
|
+
var import_meta6 = {};
|
|
385092
385098
|
function makeLineReader(onChunk) {
|
|
385093
385099
|
let buffer = "";
|
|
385094
385100
|
const waiters = [];
|
|
@@ -385306,7 +385312,7 @@ function createObservability(deps) {
|
|
|
385306
385312
|
const monitorStatus = new MonitorStatusService(deps.resourceMonitorService, deps.terminalService);
|
|
385307
385313
|
const policyEngine = new AgtPolicyEngine({
|
|
385308
385314
|
loadPolicy: async () => {
|
|
385309
|
-
const req = (0,
|
|
385315
|
+
const req = (0, import_node_module4.createRequire)(typeof __filename !== "undefined" ? __filename : import_meta6.url);
|
|
385310
385316
|
const fs22 = req("node:fs");
|
|
385311
385317
|
const path32 = req("node:path");
|
|
385312
385318
|
const policyPath = path32.join(".", "policy.yaml");
|
|
@@ -385349,16 +385355,16 @@ function createObservability(deps) {
|
|
|
385349
385355
|
reviewMode: deps.reviewMode ?? "strict"
|
|
385350
385356
|
});
|
|
385351
385357
|
const pluginScanRoot = (process.env.GYBACKEND_DATA_DIR ?? "./.gybackend-data") + "/plugins";
|
|
385352
|
-
const bundlePluginRoot = typeof __filename !== "undefined" ? import_node_path27.default.join(import_node_path27.default.dirname(__filename), "..", "..", "plugins") : new URL("../../plugins/",
|
|
385358
|
+
const bundlePluginRoot = typeof __filename !== "undefined" ? import_node_path27.default.join(import_node_path27.default.dirname(__filename), "..", "..", "plugins") : new URL("../../plugins/", import_meta6.url).pathname;
|
|
385353
385359
|
const scanRoots = [pluginScanRoot, "./plugins"];
|
|
385354
385360
|
try {
|
|
385355
|
-
const req = (0,
|
|
385361
|
+
const req = (0, import_node_module4.createRequire)(typeof __filename !== "undefined" ? __filename : import_meta6.url);
|
|
385356
385362
|
const fs22 = req("node:fs");
|
|
385357
385363
|
if (fs22.existsSync(bundlePluginRoot)) scanRoots.push(bundlePluginRoot);
|
|
385358
385364
|
} catch {
|
|
385359
385365
|
}
|
|
385360
385366
|
try {
|
|
385361
|
-
const req = (0,
|
|
385367
|
+
const req = (0, import_node_module4.createRequire)(typeof __filename !== "undefined" ? __filename : import_meta6.url);
|
|
385362
385368
|
const fs22 = req("node:fs");
|
|
385363
385369
|
const path32 = req("node:path");
|
|
385364
385370
|
const resourcesPath = process.resourcesPath;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rterm-backend",
|
|
3
|
-
"version": "2.9.
|
|
4
|
-
"description": "rterm-backend \u2014 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). The RTerm desktop app stays RTerm; neuralOS is the standalone backend daemon. Dual-published as rterm-backend. v2.9.
|
|
3
|
+
"version": "2.9.8",
|
|
4
|
+
"description": "rterm-backend \u2014 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). The RTerm desktop app stays RTerm; neuralOS is the standalone backend daemon. Dual-published as rterm-backend. v2.9.8: backend typecheck fully green (ESM-safe native loaders for node-pty/ssh2) + release notes generated from CHANGELOG.",
|
|
5
5
|
"main": "bin/gybackend.cjs",
|
|
6
6
|
"bin": {
|
|
7
7
|
"gybackend": "bin/gybackend.cjs",
|