@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.d.cts CHANGED
@@ -315,6 +315,7 @@ interface ServerConfig {
315
315
  emoji: string;
316
316
  }>;
317
317
  codexRoots?: string[];
318
+ scannerPersistent?: boolean;
318
319
  ptyGracePeriodMs?: number;
319
320
  cacheDir?: string;
320
321
  tailSize?: number;
package/dist/index.d.ts CHANGED
@@ -315,6 +315,7 @@ interface ServerConfig {
315
315
  emoji: string;
316
316
  }>;
317
317
  codexRoots?: string[];
318
+ scannerPersistent?: boolean;
318
319
  ptyGracePeriodMs?: number;
319
320
  cacheDir?: string;
320
321
  tailSize?: number;
package/dist/index.js CHANGED
@@ -4884,7 +4884,9 @@ var StreamerServer = class {
4884
4884
  pendingPermission = /* @__PURE__ */ new Map();
4885
4885
  scanner = null;
4886
4886
  // Set when better-sqlite3 is unusable (e.g. node ABI mismatch made
4887
- // ConversationCache.open throw). All scanners are then built with
4887
+ // ConversationCache.open throw), or when config.scannerPersistent is false
4888
+ // (test isolation — the scanner's default SQLite index is a single shared
4889
+ // file unscoped by scanProfiles). All scanners are then built with
4888
4890
  // persistent: false so requests serve from disk instead of 500ing on
4889
4891
  // every touch of the scanner's own SQLite index.
4890
4892
  scannerPersistenceDisabled = false;
@@ -4968,6 +4970,7 @@ var StreamerServer = class {
4968
4970
  }
4969
4971
  this.verbose = config.verbose ?? false;
4970
4972
  this.disableDb = config.disableDb ?? false;
4973
+ this.scannerPersistenceDisabled = config.scannerPersistent === false;
4971
4974
  this.scanProfiles = config.scanProfiles;
4972
4975
  this.codexRoots = config.codexRoots ?? [join12(homedir5(), ".codex", "sessions")];
4973
4976
  this.ptyGracePeriodMs = config.ptyGracePeriodMs ?? DEFAULT_PTY_GRACE_PERIOD_MS;