Skip to content

Reuse SDK classes instead of duplicating them#35

Merged
orpiske merged 2 commits intowanaku-ai:mainfrom
orpiske:cliff-crocus
Apr 10, 2026
Merged

Reuse SDK classes instead of duplicating them#35
orpiske merged 2 commits intowanaku-ai:mainfrom
orpiske:cliff-crocus

Conversation

@orpiske
Copy link
Copy Markdown
Collaborator

@orpiske orpiske commented Apr 10, 2026

Summary

  • Replace 16 duplicated classes with imports from capabilities-runtimes-camel-common SDK module (+34 lines, -865 lines)
  • Refactor TarBz2Downloader to a standalone class with downloadAndExtract(URI) API, eliminating the CODEGEN_PACKAGE type incompatibility with the SDK's ResourceType enum
  • Add route-loading validation in WanakuCamelManager to account for the SDK's WanakuRoutesLoader silently catching exceptions

Test plan

  • mvn clean compile passes
  • mvn verify passes (54 tests, 0 failures)
  • Verify end-to-end code execution with a Camel YAML route
  • Verify code generation package download from datastore

orpiske added 2 commits April 10, 2026 12:26
Replace 16 classes duplicated from wanaku-capabilities-java-sdk with
imports from the new capabilities-runtimes-camel-common module. Refactor
TarBz2Downloader to a standalone class and simplify CodeGenDiscoveryCallback
to use it directly, eliminating the CODEGEN_PACKAGE type incompatibility.
The 0.1.0 release uses capabilities-runtime-camel-common (singular),
managed by the BOM, so no explicit version needed.
@orpiske orpiske merged commit fb7a898 into wanaku-ai:main Apr 10, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant