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

Function event

graph-ui/src/agents/activity-model.test.ts:6–9  ·  view source on GitHub ↗
(patch: Partial<AgentEvent>)

Source from the content-addressed store, hash-verified

4import type { AgentEvent } from './agent-event';
5
6const event = (patch: Partial<AgentEvent>): AgentEvent => ({
7 agent: 'Ada', run: 'one', seq: 1, ts: 1000, tool: 'Read', phase: 'end',
8 path: 'src/main.ts', detail: 'inspect', source: 'bridge', replay: false, ...patch,
9});
10const state = [event({}), event({ seq: 2, ts: 2000, tool: 'Edit', path: 'missing.ts' }),
11 event({ agent: 'Ben', run: 'two', ts: 3000, path: '' })]
12 .reduce(withEvent, emptyAgentsState());

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected