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

Function fold

graph-ui/src/agents/agent-store.test.ts:33–34  ·  view source on GitHub ↗
(events: readonly AgentEvent[])

Source from the content-addressed store, hash-verified

31}) as AgentEvent;
32
33const fold = (events: readonly AgentEvent[]) =>
34 events.reduce((state, entry) => withEvent(state, entry), emptyAgentsState());
35
36describe('der Zustand des Stroms', () => {
37 it('fuehrt einen Akteur je Anzeigename und nicht je Lauf', () => {

Callers 1

Calls 3

withEventFunction · 0.90
emptyAgentsStateFunction · 0.90
reduceMethod · 0.80

Tested by

no test coverage detected