Prometheus Entity Management API
    Preparing search index...
    interface LocalFirstGraphRuntime {
        dispose: () => Promise<void>;
        getStatus: () => GraphSyncStatus;
        hydrate: () => Promise<
            | {
                entityCounts: {};
                error: string;
                hydratedAt: null;
                key: string;
                ok: false;
                pendingActions?: undefined;
            }
            | {
                entityCounts: { [k: string]: number };
                error?: undefined;
                hydratedAt: string;
                key: string;
                ok: true;
                pendingActions: GraphActionRecord[];
            },
        >;
        persistNow: () => Promise<void>;
        ready: Promise<void>;
        scope: RuntimeScope;
    }
    Index
    dispose: () => Promise<void>

    Tear down and drain. The returned promise resolves only once every in-flight persist has settled, so await dispose() guarantees no further write from this runtime lands (ADR-009 G2).

    Callers that do not await it get the old fire-and-forget behaviour, which is why the ASO session manager awaits it before opening a replacement.

    getStatus: () => GraphSyncStatus
    hydrate: () => Promise<
        | {
            entityCounts: {};
            error: string;
            hydratedAt: null;
            key: string;
            ok: false;
            pendingActions?: undefined;
        }
        | {
            entityCounts: { [k: string]: number };
            error?: undefined;
            hydratedAt: string;
            key: string;
            ok: true;
            pendingActions: GraphActionRecord[];
        },
    >
    persistNow: () => Promise<void>
    ready: Promise<void>

    This runtime's own state. Read scope.statusStore for status isolated from every other runtime in the process.