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

   _Claude Code on behalf of Claus Ibsen_
   
   ## What
   
   [CAMEL-25362](https://issues.apache.org/jira/browse/CAMEL-25362), the last 
two screens of its list: Shift+F8 with AI on the Kafka and CVE Audit tabs of 
the Camel TUI. It follows #30492 (Health, Circuit Breaker, Routes and SQL 
Trace).
   
   - **Kafka (fix with AI):** on a consumer with an error, or one that is not 
running or paused. `KafkaAiPrompt` puts in:
     - the consumer's state and last error
     - its endpoint and consumer group (instance, member, generation)
     - the topic, partition and offset it last read, or that it has read 
nothing yet
     - the line of its route in the source, and the last error of the route
   
     The AI fixes the cause in the routes or configuration (brokers, topic, 
group, deserializers, security) with `camel_edit_file`, or says how to fix it 
when it is outside the integration, such as a broker that is not running, and 
changes no file then. That is the same contract as Health. On a running 
consumer without errors, the key says to ask with F8.
   
     The tab has no lag figures (`KafkaConsumerInfo` carries none), so the 
trouble is an error or a state other than running or paused.
   - **CVE Audit (explain with AI):** on the selected vulnerability. 
`CveAiPrompt` puts in:
     - its severity and CVSS vector
     - the artifacts it affects and the dependency that brings each in (`via`)
     - the fixed versions, or that none is known
     - its aliases, published date and description (cut at 1,500 characters)
   
     The AI tells whether the integration uses the vulnerable part of the 
library, and how to fix it: a fixed version of a dependency the project 
declares (`//DEPS`, `camel.jbang.dependencies`, `--dep`), or whether a newer 
Camel version has the fix for one that comes with a component. A vulnerable 
library is not always reachable, and the fix may be a Camel upgrade, so it 
changes no file unless you agree, like Circuit Breaker.
   - Both tabs show the `Shift+F8` hint with the global F-keys when the 
selected row has something to ask about, as the other screens do.
   
   ## Tests and docs
   
   - `KafkaAiPromptTest` and `CveAiPromptTest` (new) check the question, when a 
row has trouble, and Shift+F8 on the tab (hint, question, notice). 
`CveAuditTab.showForTesting` sets the vulnerabilities without the render thread.
   - All 2,657 tests of camel-jbang-plugin-tui pass.
   - Docs: the help pages `kafka.md` and `cve-audit.md`, the list of screens 
with the key in `camel-jbang-tui-observe.adoc`, and 
`camel-jbang-tui-ai-ways.adoc`.
   
   Not tried in a live TUI: the Kafka tab needs a broker and the CVE Audit tab 
needs osv.dev, and the questions are fully covered by the tests.
   
   🤖 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