rterm-backend 2.8.8 → 2.8.9

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 +6 -5
  2. package/package.json +1 -1
package/bin/gybackend.js CHANGED
@@ -11734,6 +11734,7 @@ function loadBetterSqlite3() {
11734
11734
  const m = require2(candidate);
11735
11735
  cachedConstructor = typeof m === "function" ? m : m.Database;
11736
11736
  cachedPackageName = packageName2;
11737
+ nativeBindingIsConstructor = true;
11737
11738
  return cachedConstructor;
11738
11739
  }
11739
11740
  } catch {
@@ -11741,6 +11742,7 @@ function loadBetterSqlite3() {
11741
11742
  try {
11742
11743
  cachedConstructor = require2(packageName2);
11743
11744
  cachedPackageName = packageName2;
11745
+ nativeBindingIsConstructor = false;
11744
11746
  return cachedConstructor;
11745
11747
  } catch (e) {
11746
11748
  const exeDir = import_node_path3.default.dirname(process.execPath);
@@ -11755,6 +11757,7 @@ function loadBetterSqlite3() {
11755
11757
  const m = require2(candidate);
11756
11758
  cachedConstructor = typeof m === "function" ? m : m.Database;
11757
11759
  cachedPackageName = packageName2;
11760
+ nativeBindingIsConstructor = true;
11758
11761
  return cachedConstructor;
11759
11762
  } catch (e2) {
11760
11763
  lastErr = e2;
@@ -11807,10 +11810,7 @@ function openBetterSqlite3Database(filePath, options) {
11807
11810
  }
11808
11811
  try {
11809
11812
  const addon = require2(candidatePath);
11810
- return new BetterSqlite3(filePath, {
11811
- ...options || {},
11812
- nativeBinding: addon
11813
- });
11813
+ return new BetterSqlite3(filePath, nativeBindingIsConstructor ? options || {} : { ...options || {}, nativeBinding: addon });
11814
11814
  } catch (error40) {
11815
11815
  if (!isNativeBindingLoadError(error40)) {
11816
11816
  throw error40;
@@ -11834,7 +11834,7 @@ function openBetterSqlite3Database(filePath, options) {
11834
11834
  );
11835
11835
  }
11836
11836
  }
11837
- var import_node_fs, import_node_path3, import_node_module, import_meta3, require2, NODE_RUNTIME_PACKAGE_NAME, ELECTRON_RUNTIME_PACKAGE_NAME, cachedConstructor, cachedPackageName;
11837
+ var import_node_fs, import_node_path3, import_node_module, import_meta3, 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";
@@ -11849,6 +11849,7 @@ var init_betterSqlite3Runtime = __esm({
11849
11849
  ELECTRON_RUNTIME_PACKAGE_NAME = "better-sqlite3-electron";
11850
11850
  cachedConstructor = null;
11851
11851
  cachedPackageName = null;
11852
+ nativeBindingIsConstructor = false;
11852
11853
  }
11853
11854
  });
11854
11855
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rterm-backend",
3
- "version": "2.8.8",
3
+ "version": "2.8.9",
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",