Skip to content

🤯 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.

597 B
Raw Blame
import { createReplicaState, type ReplicaState } from '@/libs/replica';

import type { AgentSignalReceiptView } from './projection';

export interface AgentSignalState {
  /** Receipts per agent topic (`agentSignalReceiptsMap[agentSignalReceiptsKey(params)]`). */
  agentSignalReceiptsMap: Record<string, AgentSignalReceiptView[]>;
  /** Replica bookkeeping for `agentSignalReceiptsMap`. */
  agentSignalReceiptsReplica: ReplicaState<AgentSignalReceiptView[]>;
}

export const initialState: AgentSignalState = {
  agentSignalReceiptsMap: {},
  agentSignalReceiptsReplica: createReplicaState(),
};