Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
test: pin readPageSnapshotsBatch in the engine surface, export and checkout-gauge goldens
time-attack3a2987375ddb
diff --git a/test/engine-surface-coverage.test.ts b/test/engine-surface-coverage.test.tsindex f7fed2a10b..281ffeb274 100644--- a/test/engine-surface-coverage.test.ts+++ b/test/engine-surface-coverage.test.ts@@ -50,7 +50,7 @@ const INTERFACE_METHODS: readonly string[] = [// Lifecycle'connect', 'disconnect', 'reconnect', 'initSchema', 'transaction', 'transactionDirect', 'registerBeforeDisconnect', 'withReservedConnection',// Pages CRUD- 'getPage', 'readPageSnapshot', 'lockPageKeys', 'putPage', 'findDuplicatePage', 'deletePage', 'deletePages', 'resolveSlugsByPaths',+ 'getPage', 'readPageSnapshot', 'readPageSnapshotsBatch', 'lockPageKeys', 'putPage', 'findDuplicatePage', 'deletePage', 'deletePages', 'resolveSlugsByPaths','softDeletePage', 'softDeletePages', 'restorePage', 'purgeDeletedPages', 'listPages', 'resolveSlugs', 'getAllSlugs','listAllPageRefs', 'listAllSources', 'updateSourceConfig', 'listPrefixSampledPages', 'listCorpusSample',// Searchdiff --git a/test/fixtures/goldens/exports/runtime.json b/test/fixtures/goldens/exports/runtime.jsonindex 099f3ab2f9..5c56277bd9 100644--- a/test/fixtures/goldens/exports/runtime.json+++ b/test/fixtures/goldens/exports/runtime.json@@ -135,6 +135,7 @@"putPage","putRawData","readPageSnapshot",+ "readPageSnapshotsBatch","reconnect","refreshPageBody","registerBeforeDisconnect",@@ -320,6 +321,7 @@"putPage","putRawData","readPageSnapshot",+ "readPageSnapshotsBatch","reconnect","refreshPageBody","registerBeforeDisconnect",diff --git a/test/fixtures/goldens/exports/types.json b/test/fixtures/goldens/exports/types.jsonindex 804ee23111..5dad30153b 100644--- a/test/fixtures/goldens/exports/types.json+++ b/test/fixtures/goldens/exports/types.json@@ -171,6 +171,7 @@"putPage: (slug: string, page: PageInput, opts?: PageWriteOptions) => Promise<Page>","putRawData: (slug: string, source: string, data: object, opts?: { sourceId?: string; }) => Promise<void>","readPageSnapshot: (slug: string, opts?: PageSnapshotOptions) => Promise<PageSnapshot | null>",+ "readPageSnapshotsBatch: (refs: ReadonlyArray<{ slug: string; sourceId: string; }>, opts?: { maxBytes?: number; }) => Promise<PageSnapshotBatch>","readonly kind: \"postgres\" | \"pglite\"","reconnect: (ctx?: { error?: unknown; }) => Promise<void>","refreshPageBody: (slug: string, sourceId: string, compiledTruth: string, timeline: string, contentHash: string) => Promise<void>",@@ -1169,6 +1170,7 @@"putPage: (slug: string, page: PageInput, opts?: PageWriteOptions) => Promise<Page>","putRawData: (slug: string, source: string, data: object, opts?: { sourceId?: string; }) => Promise<void>","readPageSnapshot: (slug: string, opts?: PageSnapshotOptions) => Promise<PageSnapshot | null>",+ "readPageSnapshotsBatch: (refs: ReadonlyArray<{ slug: string; sourceId: string; }>, opts?: { maxBytes?: number; }) => Promise<PageSnapshotBatch>","readonly kind: \"postgres\"","reconnect: (ctx?: { error?: unknown; }) => Promise<void>","refreshPageBody: (slug: string, sourceId: string, compiledTruth: string, timeline: string, contentHash: string) => Promise<void>",@@ -3347,6 +3349,7 @@"putPage: (slug: string, page: PageInput, opts?: PageWriteOptions) => Promise<Page>","putRawData: (slug: string, source: string, data: object, opts?: { sourceId?: string; }) => Promise<void>","readPageSnapshot: (slug: string, opts?: PageSnapshotOptions) => Promise<PageSnapshot | null>",+ "readPageSnapshotsBatch: (refs: ReadonlyArray<{ slug: string; sourceId: string; }>, opts?: { maxBytes?: number; }) => Promise<PageSnapshotBatch>","readonly kind: \"postgres\" | \"pglite\"","reconnect: (ctx?: { error?: unknown; }) => Promise<void>","refreshPageBody: (slug: string, sourceId: string, compiledTruth: string, timeline: string, contentHash: string) => Promise<void>",@@ -6363,6 +6366,7 @@"putPage: (slug: string, page: PageInput, opts?: PageWriteOptions) => Promise<Page>","putRawData: (slug: string, source: string, data: object, opts?: { sourceId?: string; }) => Promise<void>","readPageSnapshot: (slug: string, opts?: PageSnapshotOptions) => Promise<PageSnapshot | null>",+ "readPageSnapshotsBatch: (refs: ReadonlyArray<{ slug: string; sourceId: string; }>, opts?: { maxBytes?: number; }) => Promise<PageSnapshotBatch>","readonly kind: \"pglite\"","reconnect: (_ctx?: { error?: unknown; }) => Promise<void>","refreshPageBody: (slug: string, sourceId: string, compiledTruth: string, timeline: string, contentHash: string) => Promise<void>",diff --git a/test/fixtures/goldens/postgres-engine-gauge/acquires-by-case.json b/test/fixtures/goldens/postgres-engine-gauge/acquires-by-case.jsonindex d3ac9b0626..7d50efe6a5 100644--- a/test/fixtures/goldens/postgres-engine-gauge/acquires-by-case.json+++ b/test/fixtures/goldens/postgres-engine-gauge/acquires-by-case.json@@ -274,6 +274,7 @@},"readPageSnapshot#default": {},"readPageSnapshot#sourceId": {},+ "readPageSnapshotsBatch#default": {},"refreshPageBody#default": {},"removeLink#default": {},"removeLink#linkSource": {},@@ -291,7 +292,7 @@"tx": 1},"replaceDerivedLinksBatch#default": {- "raw": 13,+ "raw": 12,"tx": 1},"resolveSlugWithAlias#default": {},