@threadbase-sh/streamer 1.24.6 → 1.24.7

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/dist/index.cjs CHANGED
@@ -4923,7 +4923,9 @@ var StreamerServer = class {
4923
4923
  pendingPermission = /* @__PURE__ */ new Map();
4924
4924
  scanner = null;
4925
4925
  // Set when better-sqlite3 is unusable (e.g. node ABI mismatch made
4926
- // ConversationCache.open throw). All scanners are then built with
4926
+ // ConversationCache.open throw), or when config.scannerPersistent is false
4927
+ // (test isolation — the scanner's default SQLite index is a single shared
4928
+ // file unscoped by scanProfiles). All scanners are then built with
4927
4929
  // persistent: false so requests serve from disk instead of 500ing on
4928
4930
  // every touch of the scanner's own SQLite index.
4929
4931
  scannerPersistenceDisabled = false;
@@ -5007,6 +5009,7 @@ var StreamerServer = class {
5007
5009
  }
5008
5010
  this.verbose = config.verbose ?? false;
5009
5011
  this.disableDb = config.disableDb ?? false;
5012
+ this.scannerPersistenceDisabled = config.scannerPersistent === false;
5010
5013
  this.scanProfiles = config.scanProfiles;
5011
5014
  this.codexRoots = config.codexRoots ?? [(0, import_path13.join)((0, import_os6.homedir)(), ".codex", "sessions")];
5012
5015
  this.ptyGracePeriodMs = config.ptyGracePeriodMs ?? DEFAULT_PTY_GRACE_PERIOD_MS;