TODO.md - wrknv Development Tasks¶
This document tracks prioritized development tasks.
High Priority - Reliability & Correctness¶
- Increase Test Coverage on Critical Infrastructure
containermodule (0% coverage): Add comprehensive tests for Dockerfile generation, container lifecycle (build, start, stop), and command execution.operations.download(11% coverage): Add tests for various download scenarios, error handling (404s, timeouts), and checksum verification.operations.install(14% coverage): Test archive extraction for different formats and executable permission handling across platforms.env.managers(18-24% coverage): Add tests for tool-specific installation logic foribmtf,tofu,go, anduv.
Medium Priority - Feature Completeness & Architecture¶
- Implement Ecosystem Test Matrix Command
- Add
wrknv test-matrixcommand to run tests across all sibling packages - Generate comprehensive test report in markdown format
- Include pass/fail rates, coverage metrics, and identified issues
- Support parallel test execution for faster results
-
Integrate with CI/CD for automated ecosystem health checks
-
Fix Test Environment Integration
- Tests should use wrknv-managed
workenv/directories (e.g.,workenv/wrknv_darwin_arm64) - Currently tests are creating
.venvinstead of using wrknv's workenv pattern - Update test runners to properly activate and use wrknv environments
-
Ensure consistent environment usage across all packages
-
Implement Type-Safe Configuration
- Define a validation schema for the
wrknv.tomlstructure. -
Refactor
env.configto validate loaded configuration against this schema, providing clear errors on invalid input. This will improve reliability and user experience. -
Complete
packageCommand Implementation - Implement the actual logic for
sign_packageandpublish_packageby integrating with theflavorAPI. - Remove mock data and
NotImplementedErrorplaceholders. -
Mark commands as experimental in the CLI help text until fully functional.
-
Make Container Configuration Dynamic
-
Refactor
ContainerManager._generate_dockerfileto source its base image and packages fromwrknv.tomlinstead of using hardcoded values. -
Refactor Data Classes to Use
attrs - Systematically replace standard classes and dataclasses used for configuration and data modeling with
attrsclasses for improved validation and robustness.
Low Priority - Future Enhancements¶
- Implement Generic Bundler System
- Design and implement the extensible framework for managing directory-based bundles as proposed in
BUNDLER_PROPOSAL.md. -
This would provide a foundation for managing
.agents,.garnish, andbfilesoutputs. -
Finalize
bfilesIntegration - Implement
bfilesas a managed tool and a bundle type within the new bundler system.