Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
chore: keep postgres-engine.ts under its module-size ceiling
time-attackcfa40c077fe5
diff --git a/src/core/postgres-engine.ts b/src/core/postgres-engine.tsindex 31a012de77..6f89eab003 100644--- a/src/core/postgres-engine.ts+++ b/src/core/postgres-engine.ts@@ -179,6 +179,7 @@ export function getPostgresSchema(export class PostgresEngine implements BrainEngine {private vectorIterativeScan?: Promise<boolean>;+ private readonly vectorScopeShare = vectorScopeShareLoader(() => this.executeRaw<PageSourceStats>(PAGE_SOURCE_STATS_SQL));/** Transaction clones keep chunk invalidation and replacement atomic. */private _chunkWritesInTransaction = false;readonly kind = 'postgres' as const;@@ -1361,8 +1362,6 @@ export class PostgresEngine implements BrainEngine {return (Array.isArray(plan) ? plan[0] : plan) as Record<string, unknown>;}- private readonly vectorScopeShare = vectorScopeShareLoader(() => this.executeRaw<PageSourceStats>(PAGE_SOURCE_STATS_SQL));-private async vectorIterativeScanSupported(): Promise<boolean> {this.vectorIterativeScan ??= this.executeRaw<{ extversion: string }>(VECTOR_EXTENSION_VERSION_SQL).then(rows => supportsHnswIterativeScan(rows[0]?.extversion));