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__.py Updated __init__ module
  • cli.py Updated cli module
  • console.py Updated console module
  • output.py Updated output module
  • Rewrote src/flavor/cli.py through multiple iterations with improved argument parsing decouple behavioral
    1 file
    • cli.py
  • Added src/flavor/console.py (74 lines) for console output handling instantiate behavioral
    2 files
    • console.py
    • output.py
  • Updated src/flavor/__init__.py with new module references instantiate architectural
    1 file
    • __init__.py

Command Module Improvements

9 files changed
  • extract.py Updated extract command
  • ingredients.py Updated ingredients command
  • inspect.py Updated inspect command
  • keygen.py Updated keygen command
  • package.py Updated package command
  • utils.py Updated utils command
  • verify.py Updated verify command
  • workenv.py Updated workenv command
  • workenv.py Updated PSP workenv
  • Improved all command modules: extract, ingredients, inspect, keygen, package, utils, verify, workenv decouple behavioral
    9 files
    • extract.py
    • ingredients.py
    • inspect.py
    • keygen.py
    • package.py
    • utils.py
    • verify.py
    • workenv.py
    • workenv.py
  • Net 290 insertions across 8 command files with better error handling remediate behavioral
    8 files
    • extract.py
    • ingredients.py
    • inspect.py
    • keygen.py
    • package.py
    • utils.py
    • verify.py
    • workenv.py

Packaging Simplification

12 files changed
  • keys.py Updated keys
  • orchestrator.py Updated orchestrator
  • orchestrator_ingredients.py Updated orchestrator_ingredients
  • dependency_resolver.py Updated dependency_resolver packager
  • dist_manager.py Updated dist_manager packager
  • environment_builder.py Updated environment_builder packager
  • packager.py Updated packager packager
  • pypapip_manager.py Updated pypapip_manager packager
  • slot_builder.py Updated slot_builder packager
  • uv_manager.py Updated uv_manager packager
  • progress.py Updated progress module
  • builder.py Updated PSP builder
  • Simplified src/flavor/packaging/orchestrator.py (removed 48 lines) decouple internal
    1 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 internal
    1 file
    • progress.py

Dead Code Removal

11 files changed
  • __init__.py Updated PSP __init__
  • backends.py Updated PSP backends
  • checksums.py Updated PSP checksums
  • assembly.py Updated PSP metadata assembly
  • reader.py Updated PSP reader
  • slots.py Updated PSP slots
  • writer.py Updated PSP writer
  • alignment.py Updated alignment utility
  • archive.py Updated archive utility
  • disk.py Updated disk utility
  • permissions.py Updated permissions utility
  • Removed src/flavor/psp/format_2025/checksums.py (148 lines) decouple internal
    1 file
    • checksums.py
  • Removed utility modules: alignment.py (86 lines), archive.py (10 lines), disk.py (67 lines), permissions.py (36 lines) decouple internal
    4 files
    • alignment.py
    • archive.py
    • disk.py
    • permissions.py
  • Then rewrote utilities with simplified implementations decouple internal
    4 files
    • alignment.py
    • archive.py
    • disk.py
    • permissions.py
  • Removed deprecated __init__.py exports and old test files qualify internal
    1 file
    • __init__.py

Handlers and Key Management

6 files changed
  • flavor-private.key Rotated key file
  • flavor-public.key Rotated key file
  • extraction.py Updated PSP extraction
  • handlers.py Updated PSP handlers
  • keys.py Updated PSP keys
  • launcher.py Updated PSP launcher
  • Improved src/flavor/psp/format_2025/handlers.py decouple internal
    1 file
    • handlers.py
  • Updated key management across extract, packaging keys, extraction, and launcher modules decouple internal
    2 files
    • extraction.py
    • launcher.py

Test Cleanup

12 files changed
  • test_launcher_execution.py Updated tests for launcher_execution
  • test_platform_environment.py Updated tests for platform_environment
  • test_pspf_2025_core.py Updated tests for pspf_2025_core
  • test_pspf_2025_security.py Updated tests for pspf_2025_security
  • test_pretaster_integration.py Updated tests for pretaster_integration
  • test_package_integrity.py Updated tests for package_integrity
  • flavor-private.key Rotated key file
  • flavor-public.key Rotated key file
  • flavor-private.key Rotated key file
  • flavor-public.key Rotated key file
  • test_utils_platform.py Updated tests for utils_platform
  • test_mock_accuracy.py Updated tests for mock_accuracy
  • Removed outdated mock accuracy and security integrity tests qualify internal
    2 files
    • test_mock_accuracy.py
    • test_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.toml
    • uv.lock

Version and Build Updates

8 files changed
  • run-tests.sh Updated CI script
  • CLAUDE.md Updated development guidelines
  • Makefile Updated build targets
  • VERSION Version bump
  • contributing.md Updated documentation
  • pyproject.toml Updated project configuration
  • binary_loader.py Updated binary_loader
  • uv.lock Updated dependency lock file
  • Version bump baseline internal
    1 file
    • VERSION
  • Updated pyproject.toml, CLAUDE.md, Makefile, and contributing docs specify internal
    4 files
    • CLAUDE.md
    • Makefile
    • contributing.md
    • pyproject.toml