Improve Dependency Handling
Objective
Implement dependency pre-caching mechanism via CLI to improve code execution performance by avoiding runtime dependency downloads.
Dependencies
None (independent enhancement)
Requirements
- Design cache strategy (Maven local repo, custom cache, or container images)
- Implement CLI commands for dependency pre-caching
- Support specifying dependencies via configuration or manifest
- Handle dependency resolution and download
- Integrate cache with Camel code execution runtime
- Verify cached dependencies are used during code execution
- Document CLI usage for dependency management
Affected Files/Modules
/backend/router/src/main/java/ai/wanaku/router/cli/ (CLI commands - may need new classes)
/backend/router/src/main/java/ai/wanaku/router/bridge/CodeExecutionBridge.java (potential integration point - needs investigation)
Notes
Consider security implications of caching dependencies. Evaluate options: (1) Maven local repository reuse, (2) custom cache directory, (3) pre-built container images with dependencies. Performance vs. flexibility tradeoff. CLI should support bulk operations and individual dependency caching.
Improve Dependency Handling
Objective
Implement dependency pre-caching mechanism via CLI to improve code execution performance by avoiding runtime dependency downloads.
Dependencies
None (independent enhancement)
Requirements
Affected Files/Modules
/backend/router/src/main/java/ai/wanaku/router/cli/(CLI commands - may need new classes)/backend/router/src/main/java/ai/wanaku/router/bridge/CodeExecutionBridge.java(potential integration point - needs investigation)Notes
Consider security implications of caching dependencies. Evaluate options: (1) Maven local repository reuse, (2) custom cache directory, (3) pre-built container images with dependencies. Performance vs. flexibility tradeoff. CLI should support bulk operations and individual dependency caching.