refactor(sync): extract IndexedDB graph persistence io cluster (Phase 5a)

This commit is contained in:
youzini
2026-05-31 12:43:33 +00:00
parent 38e0f67d98
commit df9e78bdf9
4 changed files with 2783 additions and 2004 deletions

View File

@@ -170,6 +170,13 @@ import { createGenerationRecallTransactions } from "../runtime/generation-recall
import { createFinalRecallInjection } from "../runtime/final-recall-injection.js";
import { createAutoExtractionDefer } from "../runtime/auto-extraction-defer.js";
import { runPlannerRecallForEnaController } from "../runtime/planner-recall-controller.js";
import {
loadGraphFromIndexedDbImpl,
maybeFlushQueuedGraphPersistImpl,
queueGraphPersistToIndexedDbImpl,
retryPendingGraphPersistImpl,
saveGraphToIndexedDbImpl,
} from "../sync/graph-persistence-io.js";
import {
consumeRerollRecallReuseMarker,
createRerollRecallReuseMarker,
@@ -801,6 +808,11 @@ async function createGraphPersistenceHarness({
createFinalRecallInjection,
createAutoExtractionDefer,
runPlannerRecallForEnaController,
loadGraphFromIndexedDbImpl,
maybeFlushQueuedGraphPersistImpl,
queueGraphPersistToIndexedDbImpl,
retryPendingGraphPersistImpl,
saveGraphToIndexedDbImpl,
consumeRerollRecallReuseMarker,
createRerollRecallReuseMarker,
createRecallMessageUiController() {