feat: promote opfs v2 as default local store

This commit is contained in:
Youzini-afk
2026-04-14 19:34:31 +08:00
parent e792680092
commit c12956f674
10 changed files with 2397 additions and 143 deletions

View File

@@ -332,6 +332,12 @@ function buildCommittedBatchPersistSnapshot(
}
return {
persistDelta:
typeof runtime.buildPersistDelta === "function"
? runtime.buildPersistDelta(beforeSnapshot, committedGraphSnapshot, {
useNativeDelta: false,
})
: null,
persistGraphSnapshot: committedGraphSnapshot,
committedBatchJournalEntry,
afterSnapshot,
@@ -633,6 +639,7 @@ export async function executeExtractionBatchController(
reason: "extraction-batch-complete",
lastProcessedAssistantFloor: endIdx,
graphSnapshot: committedPersistState.persistGraphSnapshot,
persistDelta: committedPersistState.persistDelta,
});
const persistence = normalizePersistenceStateRecord(persistResult);
batchStatusRef.persistence = persistence;