davsclaus opened a new pull request, #31243: URL: https://github.com/apache/camel/pull/31243
Upgrades the Camel CLI to aesh 3.19.3 ([release notes](https://github.com/aeshell/aesh/releases/tag/v3.19.3)). JIRA: [CAMEL-28023](https://issues.apache.org/jira/browse/CAMEL-28023) ## Changes - `aesh-version` 3.19.2 → 3.19.3. Brings aesh-readline 3.19.2. - **Named generated registry** (aeshell/aesh#785). The aesh processor now generates its metadata registry with a fixed name: `-AaeshRegistryClass=org.apache.camel.dsl.jbang.core.commands.GeneratedCommandMetadataRegistry`. `CommandMetadataRegistry` asks it directly. This replaces the `Class.forName` plus reflective constructor per command, and the list of command packages that had to be kept up to date. A command that is not in the registry (a plugin command) no longer costs a class path search. The exclusion of Export, ExportBaseCommand and CamelCommand stays (KubernetesExport extends Export). The antrun step that removes the processor's `META-INF` registry files stays, so aesh's class path discovery never finds the unfiltered registry; its comment is updated. - pom comment for `<proc>none</proc>` on test compilation: aesh 3.19.3 no longer fails on private nested test classes. The test compile still runs without the processor, because the tests' sub classes stand for plugin commands without metadata (`GeneratedCommandMetadataTest`). - Docs (Camel CLI getting started): the help colors, `NO_COLOR`, and the new `AESH_HELP_COLORS` variable (aeshell/aesh#788). ## What changes for users - `--help` shows sub-command names in bold instead of dark blue, and required options really are bold (aeshell/aesh#788). Users can set their own colors with `AESH_HELP_COLORS`. Checked through Camel's own ANSI path: `FORCE_COLOR`/TTY, `AESH_HELP_COLORS` and `NO_COLOR` behave as described. - Help text is unchanged: `CliHelpGoldenTest` and the parse goldens pass without regeneration. - Faster: median of 15 cold JVM runs, from `target/classes` with the runtime classpath (269 JARs), JDK 25, `-XX:TieredStopAtLevel=1`: | command | aesh 3.19.2 | aesh 3.19.3 | 3.19.3 + named registry | |---|---|---|---| | `camel --help` | 401 ms | 375 ms | 373 ms | | `camel version` | 111 ms | 105 ms | 104 ms | | `camel ps` | 112 ms | 112 ms | 111 ms | The named registry itself saves only 1-2 ms here, within the noise; it is mainly a simplification. ## Not affected - aeshell/aesh#787 (class-registered commands run on per-execution forks): Camel registers prebuilt containers with its own instances. - aeshell/aesh#794 (`register()` no longer scans the class path): `useOnly` in `CamelJBangMain` and `register` in the test plugin keep working. - Citrus 5.2.1 (test plugin) ships metadata generated by aesh-processor 3.19.2. Its 31 generated classes were checked against the aesh 3.19.3 JAR: every referenced method and field is there with the same signature, and the implemented interfaces only gained constants. Citrus was asked to upgrade and to pin its registry name in citrusframework/citrus#2183. ## Tests All on JDK 25, offline against a scratch local repository with the changed modules: - camel-jbang-core: 3471 + 50 (serial-test), 0 failures, the help and parse goldens unchanged - camel-jbang-run 404, camel-jbang-mcp 494, plugin-kubernetes 195 (incl. `KubernetesExportMetadataTest`), plugin-test 18, plugin-tui 2692, plugin-validate 24, plugin-generate 44, plugin-edit 4, plugin-mcp 1, camel-launcher 426: all green - launcher distribution: `camel version`, `ps`, `get --help`, `test --help`, `test run --help`, `test agent run --help` (Citrus metadata from aesh-processor 3.19.2 on the 3.19.3 runtime), `kubernetes export --help` (own options) and a usage error _Claude Code on behalf of Claus Ibsen_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_016Y4dDhew8iuyqNH37V5FiU -- 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]
