harbor run -t openthoughts/tasktrove-exp-rpt-pr-pr-2819harbor download openthoughts/tasktrove-exp-rpt-pr-pr-2819This task introduces a self-contained, offline simulation of a container-image mirroring workflow. It mirrors declared images from a bundle manifest into a local, on-disk "registry" without any network access. The implementation should be self-contained, deterministic, and suitable for local testing.
Replace or extend the existing placeholder in the repository with a new offline bundle mirroring module that:
Provide a simple CLI to exercise the functionality, including helpful options such as dry-run, logging level, and path inputs.
Design considerations:
Ensure the solution is Python 3-compatible and does not rely on external network operations or libraries beyond the standard library.
Include the current placeholder that exists before the change, so the agent knows the starting state:
# Placeholder — original code before the change
pass
Replace/augment the existing placeholder with a new module structure under /app:
Implement the following components (at a high level):
Ensure the CLI is importable as a module (i.e., if name == "main": ...) and provides a straightforward entry point for easy reuse in tests.
Given:
Run:
Expected outcome:
If you want, I can provide a concrete outline of the Python APIs (data classes, function signatures) to guide implementation details, but the above keeps the description behavior-focused and testable without exposing exact patch content.