MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / withYouEvent

Function withYouEvent

graph-ui/src/agents/agent-store.ts:205–212  ·  view source on GitHub ↗
(state: AgentsState, event: AgentEvent)

Source from the content-addressed store, hash-verified

203 * damit der Umschalter ihn von den Agenten trennen kann.
204 */
205export function withYouEvent(state: AgentsState, event: AgentEvent): AgentsState {
206 const next = withEvent(state, event);
207 return {
208 ...next,
209 actors: next.actors.map((actor) =>
210 (actor.id === event.agent ? { ...actor, you: true } : actor)),
211 };
212}
213
214/** Ob dieser Akteur gerade im Bild steht. */
215export function isActive(actor: ActorState, now: number): boolean {

Callers 2

agent-view.test.tsFile · 0.90

Calls 1

withEventFunction · 0.85

Tested by

no test coverage detected