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

Function activityRows

graph-ui/src/agents/activity-model.ts:6–12  ·  view source on GitHub ↗
(state: AgentsState, filter: ActivityFilter)

Source from the content-addressed store, hash-verified

4
5export interface ActivityFilter { agent: string; run: string; kind: WorkKind | '' }
6export function activityRows(state: AgentsState, filter: ActivityFilter): AgentEvent[] {
7 return state.actors.filter((actor) => !actor.you).flatMap((actor) => actor.events)
8 .filter((event) => (!filter.agent || event.agent === filter.agent)
9 && (!filter.run || event.run === filter.run)
10 && (!filter.kind || workKindOf(event.tool, event.detail) === filter.kind))
11 .sort((a, b) => b.ts - a.ts || b.seq - a.seq || a.agent.localeCompare(b.agent));
12}

Callers 2

ActivityPanelFunction · 0.90

Calls 1

workKindOfFunction · 0.90

Tested by

no test coverage detected