flavorpack
2025-10-11
CLI rewrite with console module, dead code removal, and test cleanup
62 files · 1,259+ · 1,518-
CLI Module Rewrite
4 files changed
__init__.pyUpdated __init__ modulecli.pyUpdated cli moduleconsole.pyUpdated console moduleoutput.pyUpdated output module
- Rewrote
src/flavor/cli.pythrough multiple iterations with improved argument parsing decouple behavioral1 file
cli.py
- Added
src/flavor/console.py(74 lines) for console output handling instantiate behavioral2 files
console.pyoutput.py
- Updated
src/flavor/__init__.pywith new module references instantiate architectural1 file
__init__.py
Command Module Improvements
9 files changed
extract.pyUpdated extract commandingredients.pyUpdated ingredients commandinspect.pyUpdated inspect commandkeygen.pyUpdated keygen commandpackage.pyUpdated package commandutils.pyUpdated utils commandverify.pyUpdated verify commandworkenv.pyUpdated workenv commandworkenv.pyUpdated PSP workenv
- Improved all command modules: extract, ingredients, inspect, keygen, package, utils, verify, workenv
decouple
behavioral
9 files
extract.pyingredients.pyinspect.pykeygen.pypackage.pyutils.pyverify.pyworkenv.pyworkenv.py
- Net 290 insertions across 8 command files with better error handling
remediate
behavioral
8 files
extract.pyingredients.pyinspect.pykeygen.pypackage.pyutils.pyverify.pyworkenv.py
Packaging Simplification
12 files changed
keys.pyUpdated keysorchestrator.pyUpdated orchestratororchestrator_ingredients.pyUpdated orchestrator_ingredientsdependency_resolver.pyUpdated dependency_resolver packagerdist_manager.pyUpdated dist_manager packagerenvironment_builder.pyUpdated environment_builder packagerpackager.pyUpdated packager packagerpypapip_manager.pyUpdated pypapip_manager packagerslot_builder.pyUpdated slot_builder packageruv_manager.pyUpdated uv_manager packagerprogress.pyUpdated progress modulebuilder.pyUpdated PSP builder
- Simplified
src/flavor/packaging/orchestrator.py(removed 48 lines) decouple internal1 file
orchestrator.py
- Improved dependency resolver, environment builder, pypapip manager, and uv manager
baseline
internal
1 file
builder.py
- Simplified orchestrator_ingredients module
decouple
internal
1 file
orchestrator_ingredients.py
- Removed
src/flavor/progress.py(217 lines of dead code) deprecate internal1 file
progress.py
Dead Code Removal
11 files changed
__init__.pyUpdated PSP __init__backends.pyUpdated PSP backendschecksums.pyUpdated PSP checksumsassembly.pyUpdated PSP metadata assemblyreader.pyUpdated PSP readerslots.pyUpdated PSP slotswriter.pyUpdated PSP writeralignment.pyUpdated alignment utilityarchive.pyUpdated archive utilitydisk.pyUpdated disk utilitypermissions.pyUpdated permissions utility
- Removed
src/flavor/psp/format_2025/checksums.py(148 lines) decouple internal1 file
checksums.py
- Removed utility modules:
alignment.py(86 lines),archive.py(10 lines),disk.py(67 lines),permissions.py(36 lines) decouple internal4 files
alignment.pyarchive.pydisk.pypermissions.py
- Then rewrote utilities with simplified implementations
decouple
internal
4 files
alignment.pyarchive.pydisk.pypermissions.py
- Removed deprecated
__init__.pyexports and old test files qualify internal1 file
__init__.py
Handlers and Key Management
6 files changed
flavor-private.keyRotated key fileflavor-public.keyRotated key fileextraction.pyUpdated PSP extractionhandlers.pyUpdated PSP handlerskeys.pyUpdated PSP keyslauncher.pyUpdated PSP launcher
Test Cleanup
12 files changed
test_launcher_execution.pyUpdated tests for launcher_executiontest_platform_environment.pyUpdated tests for platform_environmenttest_pspf_2025_core.pyUpdated tests for pspf_2025_coretest_pspf_2025_security.pyUpdated tests for pspf_2025_securitytest_pretaster_integration.pyUpdated tests for pretaster_integrationtest_package_integrity.pyUpdated tests for package_integrityflavor-private.keyRotated key fileflavor-public.keyRotated key fileflavor-private.keyRotated key fileflavor-public.keyRotated key filetest_utils_platform.pyUpdated tests for utils_platformtest_mock_accuracy.pyUpdated tests for mock_accuracy
- Removed outdated mock accuracy and security integrity tests
qualify
internal
2 files
test_mock_accuracy.pytest_package_integrity.py
- Added pretaster integration tests
qualify
internal
1 file
test_pretaster_integration.py
- Updated PSPF core tests and launcher execution tests qualify internal
- Updated pyproject.toml and uv.lock
baseline
internal
2 files
pyproject.tomluv.lock
Version and Build Updates
8 files changed
run-tests.shUpdated CI scriptCLAUDE.mdUpdated development guidelinesMakefileUpdated build targetsVERSIONVersion bumpcontributing.mdUpdated documentationpyproject.tomlUpdated project configurationbinary_loader.pyUpdated binary_loaderuv.lockUpdated dependency lock file