luigidemasi opened a new pull request, #215: URL: https://github.com/apache/camel-kit/pull/215
Fixes #110 and closes #159. ## Changes - Select the Camel CLI at init with `--camel-cli=launcher|jbang`. Save the choice per workspace, recognize the active plugin host or probe the selected executable, and report inconclusive detection. An explicit choice overrides a saved one. - Generate Launcher-mode MCP commands for all eight hosts. The JDK bootstrap resolves the same configured runner coordinates, verifies repository checksums, records provenance in a per-user cache, and keeps download output off protocol stdout. Existing tool restrictions and unrelated servers survive regeneration. - Use the selected executable for Main startup and check the Launcher's fixed version. Doctor checks the generated commands, installed assets, cache integrity, JDK, and runtime version. The Antora pages cover plugin installation, migration, proxies, offline data, and runtime compatibility. ## Citrus on Linux Citrus added its Launcher adapter in [#1602](https://github.com/citrusframework/citrus/issues/1602) and [#1608](https://github.com/citrusframework/citrus/pull/1608). I tested the published Citrus 5.0.1, 5.0.2, 5.1.0, and 5.2.1 artifacts with JDK 21, Camel Launcher 4.22.1, and no JBang on PATH. The same file-copy test that starts its route through `camel:jbang:run` failed on each version. With `CITRUS_CAMEL_CLI_TYPE=launcher` and the correct JAR path set, the process trace showed the shell received the JAR and route arguments, but the Java child received only `["java"]`. The implementation is in [CamelLauncherSupport at v5.2.1](https://github.com/citrusframework/citrus/blob/v5.2.1/endpoints/citrus-camel/src/main/java/org/citrusframework/camel/cli/CamelLauncherSupport.java). The supported path starts the route with the matching Launcher and runs the selected Citrus CLI with Java and the project Maven wrapper. The real route copied a unique input file. Citrus 5.0.1 and 5.2.1 each passed the expected-file test and failed the missing-file control. Existing tests using the affected embedded lifecycle are reported as unverified. ## Verification - Installed the packaged development plugin in a clean Launcher home, initialized Qwen, and exercised its generated stdio commands. Catalog reported Camel 4.22.1 and returned the Direct component. Knowledge returned documentation hits. Citrus returned the echo action schema. - Repeated all three calls with networking disabled at the OS level. Separately verified the default Knowledge server fetched its published index with no preseeded data, served a query, and reopened that index offline. - Exercised both CLI implementations, cache contention, interruption and retry, checksum failure, a configured HTTPS proxy, paths with spaces, and the passing and failing Main version checks. - The full Java 21 Maven reactor passed with 2,510 tests passing and 11 skipped. Source checks and all 19 Python tests passed. The local Antora render produced the changed pages with only existing external-component warnings. As on the base revision, Surefire terminated a Knowledge test JVM after its shutdown timeout. _AI-generated by Codex on behalf of @luigidemasi._ -- 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]
