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

Function workKindOf

graph-ui/src/agents/agent-event.ts:126–140  ·  view source on GitHub ↗
(tool: string, detail = '')

Source from the content-addressed store, hash-verified

124
125/** Die Art der Arbeit, abgelesen am Werkzeugnamen und (nur fuer Tests) am Befehl. */
126export function workKindOf(tool: string, detail = ''): WorkKind {
127 if (READ_TOOLS.includes(tool)) {
128 return 'read';
129 }
130 if (WRITE_TOOLS.includes(tool)) {
131 return 'write';
132 }
133 if (SEARCH_TOOLS.includes(tool)) {
134 return 'search';
135 }
136 if (looksLikeTestRun(detail)) {
137 return 'test';
138 }
139 return 'other';
140}
141
142function isRecord(value: unknown): value is Record<string, unknown> {
143 return typeof value === 'object' && value !== null && !Array.isArray(value);

Callers 9

GalaxyPanelFunction · 0.90
trailOfFunction · 0.90
burstsOfFunction · 0.90
buildAgentsViewFunction · 0.90
activityRowsFunction · 0.90
withEventFunction · 0.90
stateUntilFunction · 0.90
ActivityPanelFunction · 0.90

Calls 1

looksLikeTestRunFunction · 0.85

Tested by

no test coverage detected