Class KiroLogFormat
java.lang.Object
io.jenkins.plugins.aiagentjob.kiro.KiroLogFormat
- All Implemented Interfaces:
AiAgentLogFormat
Classifies Kiro CLI output: session JSONL, ACP JSON-RPC, and plain-text headless lines.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionclassify(long lineNumber, net.sf.json.JSONObject json) Attempt to classify a single JSON object into a parsed event.classifyAll(long lineNumber, net.sf.json.JSONObject json) Attempt to classify a JSON object that may contain multiple displayable events.classifyRaw(long lineNumber, String line) Attempt to classify a non-JSON log line (raw text) into a parsed event.
-
Field Details
-
INSTANCE
-
-
Method Details
-
classify
Description copied from interface:AiAgentLogFormatAttempt to classify a single JSON object into a parsed event.- Specified by:
classifyin interfaceAiAgentLogFormat- Parameters:
lineNumber- 1-based line number in the raw log filejson- the parsed JSON object for this line- Returns:
- a classified
AiAgentLogParser.ParsedLine, ornullif this format does not handle the given JSON structure
-
classifyAll
Description copied from interface:AiAgentLogFormatAttempt to classify a JSON object that may contain multiple displayable events.Implementations that emit at most one event can rely on this default. Returning
nullstill means the format did not recognize the input; an empty list means it recognized the input but intentionally produced no visible events.- Specified by:
classifyAllin interfaceAiAgentLogFormat
-
classifyRaw
Description copied from interface:AiAgentLogFormatAttempt to classify a non-JSON log line (raw text) into a parsed event.Implementations that handle non-JSON text lines (e.g. ANSI-colored
>prefixed headless output) should override this method. The default returnsnull, meaning the line should be kept as-is.- Specified by:
classifyRawin interfaceAiAgentLogFormat- Parameters:
lineNumber- 1-based line number in the raw log fileline- the raw (non-JSON) text line- Returns:
- a list of classified lines, or
nullif this format does not handle raw text
-