🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
import { createReplicaState, type ReplicaState } from '@/libs/replica';
import { type BriefItem } from '@/store/brief/types';
import { type NewsDay } from './projection';
export interface BriefListState {
/** The unresolved feed — the view of the `briefList` replica (`briefListMap[BRIEF_LIST_KEY]`). */
briefListMap: Record<string, BriefItem[]>;
/** Replica bookkeeping for `briefListMap`. */
briefListReplica: ReplicaState<BriefItem[]>;
/** The day-scoped news digest — the view of the `briefNews` replica, keyed by local day. */
briefNewsMap: Record<string, NewsDay>;
/** Replica bookkeeping for `briefNewsMap`. */
briefNewsReplica: ReplicaState<NewsDay>;
}
export const initialBriefListState: BriefListState = {
briefListMap: {},
briefListReplica: createReplicaState(),
briefNewsMap: {},
briefNewsReplica: createReplicaState(),
};