Saxonberg Server API
    Preparing search index...

    The public surface of BeliefStoreMixin. Dumb CRUD; O(1) point-get on the naming path (no Mongo read — that's the whole point of the in-memory working set).

    interface BeliefStore {
        allBeliefs(): readonly BeliefRecord[];
        clearBeliefs(): void;
        forget(realm: string, referent: string): void;
        forgetField(realm: string, referent: string, field: BeliefField): void;
        know(realm: string, referent: string, update?: BeliefUpdate): void;
        loadBelief(record: BeliefRecord): void;
        recall(realm: string, referent: string): BeliefRecord | null;
        recallRealm(realm: string): ReadonlyMap<string, BeliefRecord>;
    }
    Index

    Methods

    • Upsert what the viewer knows about referent in realm. A new record stamps firstSeen/lastSeen; an existing one advances lastSeen (preserving firstSeen) and coalesces: a non-null update.knownAs raises the name, an absent/null one leaves a learned name intact. Payload flags merge.

      Parameters

      Returns void