🤯 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 type { FavoriteItem } from '@lobechat/types';
import { defineReplica } from '@/libs/replica';
/** One list per cache scope: the replica scope already carries user and workspace. */
export const FAVORITE_LIST_KEY = 'list';
/**
* The member's sidebar favorites. The persisted copy paints the section on a
* cold start instead of popping it in after the request answers.
*/
export const favoriteListResource = defineReplica<Record<string, never>, FavoriteItem[]>({
key: () => FAVORITE_LIST_KEY,
name: 'favoriteList',
storage: 'indexedDB',
version: 1,
});