(args, options = {})
| 39 | } |
| 40 | |
| 41 | function 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 | |
| 56 | module.exports = { |
| 57 | createAgentRunEntry, |
no test coverage detected