Class AiAgentLogParser

java.lang.Object
io.jenkins.plugins.aiagentjob.AiAgentLogParser

public final class AiAgentLogParser extends Object
Parses JSONL output from AI agents into classified AiAgentLogParser.EventView objects.

Each AiAgentTypeHandler may supply its own AiAgentLogFormat via AiAgentTypeHandler.getLogFormat(). When a format is provided, the parser first delegates to it; if the format returns null (unrecognised line), the parser falls through to the shared format and the generic fallback.

Built-in formats:

  • Claude Code log format — Claude Code / Gemini CLI stream-json
  • Codex log format — Codex CLI JSONL
  • Cursor log format — Cursor Agent stream-json
  • OpenCode log format — OpenCode JSONL
Shared helpers live in LogFormatUtils.