CAMEL-21975: Add route-diagram command to display Camel route diagrams in terminal#22227
Draft
gnodet wants to merge 7 commits intofix-jbang-metadata-mojofrom
Draft
CAMEL-21975: Add route-diagram command to display Camel route diagrams in terminal#22227gnodet wants to merge 7 commits intofix-jbang-metadata-mojofrom
gnodet wants to merge 7 commits intofix-jbang-metadata-mojofrom
Conversation
Contributor
Author
Preview — Dark ThemePreview — Light ThemeRoutes rendered (top to bottom):
Claude Code on behalf of Guillaume Nodet |
0b80621 to
b53baba
Compare
Contributor
|
this is very cool, love that its all just java and no magic extra tool or a headless web browser scraping or whatnot. Also TUIs are getting a lot more powerful today and have support for drawing images - kitty/ghosty and what else they |
Claude Code and OMC create worktree directories (.claude/worktrees/) inside the project root. The license-maven-plugin scans these and fails because files like KEYS, doap.rdf, and .sdkmanrc have no comment style mapping (failIfUnknown=true). Exclude both .claude/ and .omc/ from both the mycila license plugin and the Apache RAT plugin. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add Maveniverse Scalpel 0.1.0 permanently to .mvn/extensions.xml as a parallel POM dependency detection mechanism in incremental-build.sh. Scalpel compares effective POM models between base and PR branches, catching managed dependencies, plugin version changes, BOM imports, and transitive dependency impacts that the existing grep approach misses. Both detection methods run in parallel; results are merged (union) before testing. If Scalpel fails, the script falls back to grep-only. On developer machines, Scalpel is a no-op (no base branch env vars).
… resolve completion candidates
- Enhance PrepareCamelJBangCommandsMojo to scan for addCommand() calls and resolve
referenced command classes (e.g. wrapper, transform dataweave)
- Resolve picocli ${COMPLETION-CANDIDATES} placeholders by instantiating the
completionCandidates class and joining its values
- Process each glob pattern independently in docs gulpfile resilientSrc so an ENOENT
in one pattern doesn't abort other patterns
- Add missing import for picocli ITypeConverter
- Regenerate jbang command docs and metadata
…hronous executor Exchange.copy() does not preserve the transacted flag. When the aggregate uses SynchronousExecutorService, the completion runs on the caller thread and can legitimately be transactional. Propagate the flag so Pipeline.process() uses scheduleQueue instead of scheduleMain, avoiding a queue-swap deadlock in the reactive executor's executeFromQueue loop.
When stream caching converts a JAX-RS Response to StreamCache, the Content-Type and other response metadata headers were lost because only the HTTP status code was saved before the conversion. This fix preserves the Content-Type via Response.getMediaType() and other headers via the PROTOCOL_HEADERS map. It also removes the containsKey guard in populateViaResponse that prevented the explicit Content-Type from overriding CXF's default */* value.
…s in terminal Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Warning
Draft / POC — not ready for review. This is an early proof-of-concept exploring terminal-native route diagram rendering. The layout algorithm, text fallback, and terminal graphics integration still need work.
Summary
Add a lightweight
camel cmd route-diagramcommand that renders Camel route diagrams directly in the terminal using JLine 4's graphics protocol support (Kitty/Sixel/iTerm2 inline images). This is a lighter-weight alternative to the Playwright/Hawtio approach in #21534.Features
TerminalGraphicsManager(auto-detects Kitty/iTerm2/Sixel)--theme/--colorsoption orDIAGRAM_COLORSenv var, following JLine'sLS_COLORS/GREP_COLORSconventiondark,light,transparent--output diagram.pngUsage
Depends on
Preview
(see comment below for rendered diagram screenshots)
Test plan