Class CursorLogFormat

java.lang.Object
io.jenkins.plugins.aiagentjob.cursor.CursorLogFormat
All Implemented Interfaces:
AiAgentLogFormat

public final class CursorLogFormat extends Object implements AiAgentLogFormat
Format-specific log classification for Cursor Agent stream-json output. Handles tool_call events with started/completed subtypes and various tool call shapes (shell, read, write, etc.).
  • Field Details

  • Method Details

    • classify

      public AiAgentLogParser.ParsedLine classify(long lineNumber, net.sf.json.JSONObject json)
      Description copied from interface: AiAgentLogFormat
      Attempt to classify a single JSON object into a parsed event.
      Specified by:
      classify in interface AiAgentLogFormat
      Parameters:
      lineNumber - 1-based line number in the raw log file
      json - the parsed JSON object for this line
      Returns:
      a classified AiAgentLogParser.ParsedLine, or null if this format does not handle the given JSON structure