🤯 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 { HomeDailyBriefResponse } from '@/services/home';
import type { TopicListItem } from '@/services/topic';
export interface HomeInboxState {
/** Daily brief, the view of the `homeDailyBrief` replica. */
homeDailyBriefMap: Record<string, HomeDailyBriefResponse>;
homeDailyBriefReplica: ReplicaState<HomeDailyBriefResponse>;
/** Inbox topics (running + unread), the view of the `homeInboxTopics` replica. */
homeInboxTopicsMap: Record<string, TopicListItem[]>;
homeInboxTopicsReplica: ReplicaState<TopicListItem[]>;
}
export const initialHomeInboxState: HomeInboxState = {
homeDailyBriefMap: {},
homeDailyBriefReplica: createReplicaState(),
homeInboxTopicsMap: {},
homeInboxTopicsReplica: createReplicaState(),
};