MCPcopy Create free account
hub / github.com/SethGammon/Citadel / logAgentRunEvent

Function logAgentRunEvent

core/telemetry/log.js:41–54  ·  view source on GitHub ↗
(args, options = {})

Source from the content-addressed store, hash-verified

39}
40
41function logAgentRunEvent(args, options = {}) {
42 const projectRoot = options.projectRoot || process.env.CLAUDE_PROJECT_DIR || process.cwd();
43 const entry = createAgentRunEntry(args, options);
44 const validation = validateAgentRunEvent(entry);
45 const paths = resolveTelemetryPaths(projectRoot);
46
47 appendJsonl(paths.agentRuns, entry);
48
49 return {
50 entry,
51 validation,
52 file: paths.agentRuns,
53 };
54}
55
56module.exports = {
57 createAgentRunEntry,

Callers 3

mainFunction · 0.85

Calls 4

createAgentRunEntryFunction · 0.85
validateAgentRunEventFunction · 0.85
resolveTelemetryPathsFunction · 0.85
appendJsonlFunction · 0.70

Tested by

no test coverage detected