Claus Ibsen created CAMEL-28023:
-----------------------------------

             Summary: camel-jbang - Upgrade to aesh 3.19.3
                 Key: CAMEL-28023
                 URL: https://issues.apache.org/jira/browse/CAMEL-28023
             Project: Camel
          Issue Type: Dependency upgrade
          Components: camel-jbang
            Reporter: Claus Ibsen
             Fix For: 4.25.0


Upgrade the Camel CLI from aesh 3.19.2 to 3.19.3 (released 2026-12-01, on Maven 
Central). Release notes: https://github.com/aeshell/aesh/releases/tag/v3.19.3

Most of the release is start-up and memory work (#789-#801: no 
lambdas/regex/EnumSet on the cold path, smaller 
ProcessedOption/ProcessedCommand, lazy forks), so the short commands ({{camel 
ps}}, {{camel --help}}) should get a bit faster with no change in Camel. It 
also has the fixes for the issues we filed from the Camel side (#785, #788).

h3. What to check or change in Camel

# *aesh-processor #785: stable registry name ({{-AaeshRegistryClass}}).* Our 
{{CommandMetadataRegistry}} looks up {{X_AeshMetadata}} by class name 
({{Class.forName}} + a reflective constructor per command), and 
camel-jbang-core deletes the generated {{META-INF/aesh/registry}} and service 
file with antrun, because the generated {{_AeshMetadataRegistry}} landed in a 
random package. With {{-AaeshRegistryClass=<fqcn>}} we can name it and create 
it with plain {{new}}. Evaluate whether {{CommandMetadataRegistry}} can 
delegate to the named registry (it must keep the excluded classes, Export 
extended by KubernetesExport, and the package filter), and whether the antrun 
step can go. Measure {{camel ps}} before/after.
# *aesh-processor #785: inaccessible sub classes are skipped, unreachable mixin 
fields go through reflection.* The {{<proc>none</proc>}} for 
{{default-testCompile}} in camel-jbang-core is no longer needed for 
correctness; keep it anyway (the tests need no metadata, and it keeps test 
compilation faster), only update the pom comment. The mixin option fields we 
made public/package-private stay as they are (direct access is faster than the 
new reflection fallback).
# *#788 help colors.* Sub-command names in {{--help}} are now bold instead of 
dark blue, and required options are really bold. Users can change the help 
colors with {{AESH_HELP_COLORS}} or the {{aesh.help.color.*}} system properties 
({{NO_COLOR}} still wins). Camel calls {{updateAnsiMode}} itself (CommandTree), 
so check the colors in a real terminal (dark and light), and document the 
variable in the Camel CLI docs.
# *#794 {{register()}} no longer scans the class path.* 
{{MetadataProviderRegistry.useOnly(...)}} in {{CamelJBangMain}} and 
{{register(new _AeshMetadataRegistry())}} in the test plugin both keep working; 
no change needed.
# *#787 class-registered commands run on per-execution forks.* Camel registers 
prebuilt containers with its own command instances (CommandTree), which keep 
their identity, so not affected.
# *#801 help rendering without regex.* Output should be byte-identical: 
{{CliHelpGoldenTest}} and the parse goldens must stay unchanged; regenerate 
only if aesh changed something on purpose.
# *Citrus 5.2.1* (test plugin) ships metadata generated by aesh-processor 
3.19.2. A static check of its 31 generated classes against the aesh 3.19.3 jar 
found every referenced method/field with the same descriptor, and the 
interfaces they implement only got additions ({{GeneratedOptionLookup.EMPTY}}, 
{{ParentCommandInjector.NO_OP}}). Still run the camel-jbang-plugin-test tests 
to confirm.
# aesh 3.19.3 brings aesh-readline 3.19.2 (emoji widths); check {{camel shell}} 
briefly.

Not relevant for Camel: aesh-charts (#802-#805), aesh-tamboui (#806; the TUI 
uses TamboUI's jline3 backend), aesh table cell widths (#786).

h3. Test

Run all camel-jbang modules (core with {{-Dmaven.test.failure.ignore=true}} so 
the serial-test execution also runs), the launcher dist smoke test, and compare 
start-up of {{camel ps}}, {{camel version}} and {{camel --help}} with 3.19.2.

_Claude Code on behalf of Claus Ibsen_




--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to