Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

test(goldens): export surface gains keywordBoundedRead (lane X dedup bound)

garrytand406e03b3748
diff --git a/test/fixtures/goldens/exports/runtime.json b/test/fixtures/goldens/exports/runtime.json
index 5b18c3f3a8..71b5e9c355 100644
--- a/test/fixtures/goldens/exports/runtime.json
+++ b/test/fixtures/goldens/exports/runtime.json
@@ -105,6 +105,7 @@
"insertFacts",
"invalidateContentDriftEmbeddings",
"invalidateStaleSignatureEmbeddings",
+ "keywordBoundedRead",
"listActiveTakesForPages",
"listAllPageRefs",
"listAllSources",
@@ -310,6 +311,7 @@
"invalidateContentDriftEmbeddings",
"invalidateStaleSignatureEmbeddings",
"jitOffRead",
+ "keywordBoundedRead",
"keywordStatementTimeoutSetting",
"listActiveTakesForPages",
"listAllPageRefs",
diff --git a/test/fixtures/goldens/exports/types.json b/test/fixtures/goldens/exports/types.json
index ceb00ddf0e..4d4f1d3e29 100644
--- a/test/fixtures/goldens/exports/types.json
+++ b/test/fixtures/goldens/exports/types.json
@@ -141,6 +141,7 @@
"insertFacts: (rows: Array<NewFact & { row_num: number; source_markdown_slug: string; superseded_by_row?: number; }>, ctx: { source_id: string; }, opts?: { deleteForPageFirst?: { slug: string; excludeSourcePrefixes?: string[]; preserveExpiredLegacy?: boolean; }; }) => Promise<{ inserted: number; ids: number[]; warnings: string[]; deleted: number; }>",
"invalidateContentDriftEmbeddings: (opts?: { sourceId?: string; }) => Promise<number>",
"invalidateStaleSignatureEmbeddings: (opts: { signature: string; sourceId?: string; includeNullSignature?: boolean; }) => Promise<number>",
+ "keywordBoundedRead: <T>(read: (db: Pick<BrainEngine, \"executeRaw\">) => Promise<T>) => Promise<T>",
"listActiveTakesForPages: (pageIds: number[], opts?: { takesHoldersAllowList?: string[]; }) => Promise<Map<number, Take[]>>",
"listAllPageRefs: () => Promise<Array<{ slug: string; source_id: string; updated_at: Date; }>>",
"listAllSources: (opts?: { includeArchived?: boolean; localPathOnly?: boolean; }) => Promise<SourceRow[]>",
@@ -1141,6 +1142,7 @@
"insertFacts: (rows: Array<NewFact & { row_num: number; source_markdown_slug: string; superseded_by_row?: number; }>, ctx: { source_id: string; }, opts?: { deleteForPageFirst?: { slug: string; excludeSourcePrefixes?: string[]; preserveExpiredLegacy?: boolean; }; }) => Promise<{ inserted: number; ids: number[]; warnings: string[]; deleted: number; }>",
"invalidateContentDriftEmbeddings: (opts?: { sourceId?: string; }) => Promise<number>",
"invalidateStaleSignatureEmbeddings: (opts: { signature: string; sourceId?: string; includeNullSignature?: boolean; }) => Promise<number>",
+ "keywordBoundedRead: <T>(read: (db: Pick<BrainEngine, \"executeRaw\">) => Promise<T>) => Promise<T>",
"listActiveTakesForPages: (pageIds: number[], opts?: { takesHoldersAllowList?: string[]; }) => Promise<Map<number, Take[]>>",
"listAllPageRefs: () => Promise<Array<{ slug: string; source_id: string; updated_at: Date; }>>",
"listAllSources: (opts?: { includeArchived?: boolean; localPathOnly?: boolean; }) => Promise<SourceRow[]>",
@@ -3428,6 +3430,7 @@
"insertFacts: (rows: Array<NewFact & { row_num: number; source_markdown_slug: string; superseded_by_row?: number; }>, ctx: { source_id: string; }, opts?: { deleteForPageFirst?: { slug: string; excludeSourcePrefixes?: string[]; preserveExpiredLegacy?: boolean; }; }) => Promise<{ inserted: number; ids: number[]; warnings: string[]; deleted: number; }>",
"invalidateContentDriftEmbeddings: (opts?: { sourceId?: string; }) => Promise<number>",
"invalidateStaleSignatureEmbeddings: (opts: { signature: string; sourceId?: string; includeNullSignature?: boolean; }) => Promise<number>",
+ "keywordBoundedRead: <T>(read: (db: Pick<BrainEngine, \"executeRaw\">) => Promise<T>) => Promise<T>",
"listActiveTakesForPages: (pageIds: number[], opts?: { takesHoldersAllowList?: string[]; }) => Promise<Map<number, Take[]>>",
"listAllPageRefs: () => Promise<Array<{ slug: string; source_id: string; updated_at: Date; }>>",
"listAllSources: (opts?: { includeArchived?: boolean; localPathOnly?: boolean; }) => Promise<SourceRow[]>",
@@ -6685,6 +6688,7 @@
"insertFacts: (rows: Array<NewFact & { row_num: number; source_markdown_slug: string; superseded_by_row?: number; }>, ctx: { source_id: string; }, opts?: { deleteForPageFirst?: { slug: string; excludeSourcePrefixes?: string[]; preserveExpiredLegacy?: boolean; }; }) => Promise<{ inserted: number; ids: number[]; warnings: string[]; deleted: number; }>",
"invalidateContentDriftEmbeddings: (opts?: { sourceId?: string; }) => Promise<number>",
"invalidateStaleSignatureEmbeddings: (opts: { signature: string; sourceId?: string; includeNullSignature?: boolean; }) => Promise<number>",
+ "keywordBoundedRead: <T>(read: (db: Pick<BrainEngine, \"executeRaw\">) => Promise<T>) => Promise<T>",
"listActiveTakesForPages: (pageIds: number[], opts?: { takesHoldersAllowList?: string[]; }) => Promise<Map<number, Take[]>>",
"listAllPageRefs: () => Promise<Array<{ slug: string; source_id: string; updated_at: Date; }>>",
"listAllSources: (opts?: { includeArchived?: boolean; localPathOnly?: boolean; }) => Promise<SourceRow[]>",