rterm-backend 2.8.3 → 2.8.5
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 +14 -3
- package/bin/gybackend.js +26 -3
- package/package.json +1 -1
package/bin/gybackend.cjs
CHANGED
|
@@ -11727,9 +11727,20 @@ function loadBetterSqlite3() {
|
|
|
11727
11727
|
if (cachedConstructor && cachedPackageName === packageName2) {
|
|
11728
11728
|
return cachedConstructor;
|
|
11729
11729
|
}
|
|
11730
|
-
|
|
11731
|
-
|
|
11732
|
-
|
|
11730
|
+
try {
|
|
11731
|
+
cachedConstructor = require2(packageName2);
|
|
11732
|
+
cachedPackageName = packageName2;
|
|
11733
|
+
return cachedConstructor;
|
|
11734
|
+
} catch (e) {
|
|
11735
|
+
try {
|
|
11736
|
+
const binaryName = packageName2 === ELECTRON_RUNTIME_PACKAGE_NAME ? "better_sqlite3.node" : "better_sqlite3.node";
|
|
11737
|
+
cachedConstructor = require2(binaryName);
|
|
11738
|
+
cachedPackageName = packageName2;
|
|
11739
|
+
return cachedConstructor;
|
|
11740
|
+
} catch (e2) {
|
|
11741
|
+
throw new Error(`better-sqlite3 is not available (tried npm package '${packageName2}' and embedded binary): ${e instanceof Error ? e.message : String(e)} / ${e2 instanceof Error ? e2.message : String(e2)}`);
|
|
11742
|
+
}
|
|
11743
|
+
}
|
|
11733
11744
|
}
|
|
11734
11745
|
function normalizePotentialAsarPath(filePath) {
|
|
11735
11746
|
return filePath.replace(`${import_node_path3.default.sep}app.asar${import_node_path3.default.sep}`, `${import_node_path3.default.sep}app.asar.unpacked${import_node_path3.default.sep}`).replace(
|
package/bin/gybackend.js
CHANGED
|
@@ -11727,9 +11727,32 @@ function loadBetterSqlite3() {
|
|
|
11727
11727
|
if (cachedConstructor && cachedPackageName === packageName2) {
|
|
11728
11728
|
return cachedConstructor;
|
|
11729
11729
|
}
|
|
11730
|
-
|
|
11731
|
-
|
|
11732
|
-
|
|
11730
|
+
try {
|
|
11731
|
+
cachedConstructor = require2(packageName2);
|
|
11732
|
+
cachedPackageName = packageName2;
|
|
11733
|
+
return cachedConstructor;
|
|
11734
|
+
} catch (e) {
|
|
11735
|
+
const candidates = [
|
|
11736
|
+
"better_sqlite3.node",
|
|
11737
|
+
// root of the embedded fs
|
|
11738
|
+
"native/win32-x64/better_sqlite3.node",
|
|
11739
|
+
// the staged path from the SEA config
|
|
11740
|
+
"native/darwin-arm64/better_sqlite3.node",
|
|
11741
|
+
"native/linux-x64/better_sqlite3.node",
|
|
11742
|
+
"native/linux-arm64/better_sqlite3.node"
|
|
11743
|
+
];
|
|
11744
|
+
let lastErr = e;
|
|
11745
|
+
for (const candidate of candidates) {
|
|
11746
|
+
try {
|
|
11747
|
+
cachedConstructor = require2(candidate);
|
|
11748
|
+
cachedPackageName = packageName2;
|
|
11749
|
+
return cachedConstructor;
|
|
11750
|
+
} catch (e2) {
|
|
11751
|
+
lastErr = e2;
|
|
11752
|
+
}
|
|
11753
|
+
}
|
|
11754
|
+
throw new Error(`better-sqlite3 is not available (tried npm package '${packageName2}' and embedded binary): ${e instanceof Error ? e.message : String(e)} / ${lastErr instanceof Error ? lastErr.message : String(lastErr)}`);
|
|
11755
|
+
}
|
|
11733
11756
|
}
|
|
11734
11757
|
function normalizePotentialAsarPath(filePath) {
|
|
11735
11758
|
return filePath.replace(`${import_node_path3.default.sep}app.asar${import_node_path3.default.sep}`, `${import_node_path3.default.sep}app.asar.unpacked${import_node_path3.default.sep}`).replace(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rterm-backend",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.5",
|
|
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",
|