davsclaus opened a new pull request, #30492:
URL: https://github.com/apache/camel/pull/30492

   Shift+F8 (fix or explain with AI) on four more screens, continuing 
CAMEL-25358 (source editor, Errors and Log tabs). Part of CAMEL-25362; the 
Kafka and CVE Audit screens are left for later.
   
   **Health** – fix with AI on a check that is not UP. The question carries the 
message, what DOWN means for the integration (readiness or liveness), the 
details of the check (`route.id`, `endpoint.uri`), the source line of its route 
and the shortened stack trace. `StatusParser` now keeps the stack trace and 
details of a check, which the health console already sends.
   
   **Circuit Breaker** – explain with AI on the selected breaker when it is 
open or half open, or calls failed, timed out or were rejected: its counters, 
its configuration (as the resilience4j console sends it), its source line and 
the last error of its route. It asks for no file change unless agreed.
   
   **Routes** – fix with AI on a route whose exchanges failed or whose error 
handler handled failures: the counts, the steps they fail at with their source 
lines, and the last error of the route. On a route without failures, explain 
with AI where the time goes: mean, max and percentile times and the slowest 
steps.
   
   **SQL Trace** – fix with AI on a statement that failed, with the SQL, its 
endpoint (masked), the route and source line, and the error of its exchange. On 
a slow statement (100 ms or more), explain with AI why, with its rows and how 
often the same SQL ran.
   
   The prompts are built in their own classes (`HealthAiPrompt`, 
`CircuitBreakerAiPrompt`, `RouteAiPrompt`, `SqlTraceAiPrompt`), and the tabs 
call them on Shift+F8.
   
   Tests: `HealthAiPromptTest`, `CircuitBreakerAiPromptTest`, 
`RouteAiPromptTest`, `SqlTraceAiPromptTest`; the render tests of the four tabs 
and `SourceSizeTest` pass. Docs: `camel-jbang-tui-observe.adoc`, 
`camel-jbang-tui-ai-ways.adoc` and the `?` help of the four screens.
   
   _Claude Code on behalf of Claus Ibsen_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to