Interface: UserWikiPagesPort
Defined in: packages/agentos/src/cognition/substrate/memory/wiki/UserWikiStore.ts:16
The slice of the Memory facade the store needs (injected for testability).
Extended by
Methods
deletePageRows()
deletePageRows(
scopeId,pageId?):Promise<{chunks:number;pages:number; }>
Defined in: packages/agentos/src/cognition/substrate/memory/wiki/UserWikiStore.ts:44
Parameters
scopeId
string
pageId?
string
Returns
Promise<{ chunks: number; pages: number; }>
listPageRows()
listPageRows(
scopeId):Promise<object[]>
Defined in: packages/agentos/src/cognition/substrate/memory/wiki/UserWikiStore.ts:21
Parameters
scopeId
string
Returns
Promise<object[]>
readPageRow()
readPageRow(
scopeId,pageId):Promise<{chunkIds:string[];content:string;contentHash:string; } |null>
Defined in: packages/agentos/src/cognition/substrate/memory/wiki/UserWikiStore.ts:17
Parameters
scopeId
string
pageId
string
Returns
Promise<{ chunkIds: string[]; content: string; contentHash: string; } | null>
reindexPageRow()
reindexPageRow(
scopeId,pageId,chunksOf):Promise<{chunkIds:string[];removed:string[]; } |null>
Defined in: packages/agentos/src/cognition/substrate/memory/wiki/UserWikiStore.ts:39
File a page's chunks again from the text its row holds when the write runs, keeping that text; null when the
scope holds no such page or chunksOf answers null.
Parameters
scopeId
string
pageId
string
chunksOf
(content) => readonly PageChunk[] | null
Returns
Promise<{ chunkIds: string[]; removed: string[]; } | null>
writePageRow()
writePageRow(
scopeId,page):Promise<{chunkIds:string[]; }>
Defined in: packages/agentos/src/cognition/substrate/memory/wiki/UserWikiStore.ts:24
Parameters
scopeId
string
page
chunks?
readonly PageChunk[]
content
string
contentHash
string
keepChunksIfUnchanged?
boolean
Keep the row's chunks when the stored body's hash is contentHash, compared at the write itself.
pageId
string
Returns
Promise<{ chunkIds: string[]; }>