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

   # Description
   
   Adds local slash commands to the Camel TUI AI panel so operators can control 
the panel and invoke Camel CLI actions without sending prompts to the 
configured AI provider.
   
   **How it works**
   
   - Input starting with `/` is routed through `AiSlashCommandRegistry` instead 
of the LLM chat path.
   - Built-in panel commands: `/help`, `/provider`, `/model`, `/clear`, 
`/close`, `/quit` (with `/exit`, `/q`, `/x` aliases).
   - CLI bridge commands: `/run`, `/infra`, and `/send` execute `camel run`, 
`camel infra`, and `camel cmd send` via a TUI-safe `AiCliCommandExecutor` that 
preserves the dashboard process, captures output, and supports cancellation.
   - `/provider` and `Ctrl+P` open a new `AiProviderSwitchPopup` for switching 
AI providers.
   - Live command hints and dimmed parameter placeholders appear while typing 
slash commands; `/help` renders aligned descriptions in the panel.
   - Provider/model changes are deferred while the AI panel is busy; unknown 
commands suggest `/help`.
   - `/quit` and aliases exit the TUI through `CamelMonitor`.
   
   **Documentation**
   
   - User manual updated with the supported slash commands and their behavior.
   
   **Tests**
   
   - `AiSlashCommandRegistryTest`, `AiCliCommandExecutorTest`, `AiPanelTest`, 
`AiProviderSwitchPopupTest`, and updated `CamelMonitorTest` / 
`AiCliCommandExecutorTest` coverage.
   
   # Target
   
   - [x] I checked that the commit is targeting the correct branch (Camel 4 
uses the `main` branch)
   
   # Tracking
   - [x] If this is a large change, bug fix, or code improvement, I checked 
there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for 
the change (usually before you start working on it).
   
   https://issues.apache.org/jira/browse/CAMEL-23978
   
   # Apache Camel coding standards and style
   
   - [x] I checked that each commit in the pull request has a meaningful 
subject line and body.
   
   - [ ] I have run `mvn clean install -DskipTests` locally from root folder 
and I have committed all auto-generated changes.
   
   # AI-assisted contributions
   
   - [x] If this PR includes AI-generated code, commits have proper 
co-authorship attribution (e.g., `Co-authored-by` trailers) and the PR 
description identifies the AI tool used.
   
   _AI-generated on behalf of ammachado using Cursor and Codex. Commits include 
`Co-authored-by: Cursor <[email protected]>` and `Co-authored-by: Codex 
<[email protected]>` trailers where applicable._
   
   
   Made with [Cursor](https://cursor.com)


-- 
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