🤯 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
interface ResourceEventIdentity {
actorId?: string;
type?: string;
}
/** Events that must still refresh another window signed in as the same actor. */
const SAME_USER_FANOUT_EVENTS = new Set(['document.commentsChanged', 'document.likesChanged']);
export const shouldIgnoreResourceEvent = (
event: ResourceEventIdentity,
currentUserId?: string,
): boolean =>
!SAME_USER_FANOUT_EVENTS.has(event.type ?? '') &&
Boolean(event.actorId && currentUserId && event.actorId === currentUserId);