ExtractionCursorStore
Defined in: src/lib/memory/autoExtractWorker.ts:132
Durable per-conversation extraction cursor. Synchronous by contract (both
SDK platform stores — web localStorage, mobile MMKV — are sync), so the
worker can hydrate the watermark inline without changing its fire-and-forget
control flow. Implementations should be best-effort; the worker guards every
call, so a throwing store degrades to in-memory-only rather than breaking
extraction.
Methods
get()
get(
conversationId:string):string|undefined
Defined in: src/lib/memory/autoExtractWorker.ts:134
Last message id extracted through for conversationId, or undefined.
Parameters
| Parameter | Type |
|---|---|
|
|
|
Returns
string | undefined
set()
set(
conversationId:string,messageId:string):void
Defined in: src/lib/memory/autoExtractWorker.ts:136
Persist the last-extracted message id for conversationId.
Parameters
| Parameter | Type |
|---|---|
|
|
|
|
|
|
Returns
void