MCPcopy Create free account
hub / github.com/tiann/hapi / getStoredMetadata

Function getStoredMetadata

hub/src/sync/syncEngineAutoMigrate.test.ts:214–219  ·  view source on GitHub ↗
(sessionId: string)

Source from the content-addressed store, hash-verified

212 return persisted
213 }
214 function getStoredMetadata(sessionId: string): Record<string, unknown> | undefined {
215 const store = (engine as unknown as { store: Store }).store
216 const row = store.sessions.getSession(sessionId)
217 if (!row) return undefined
218 return row.metadata as unknown as Record<string, unknown>
219 }
220
221 it('sets cursorMigrationState=in_progress before the migrator runs and clears it on failure', async () => {
222 const session = insertLegacy('session-flag-fail')

Callers 1

Calls 1

getSessionMethod · 0.45

Tested by

no test coverage detected