harbor run -t openthoughts/tasktrove-mix-h11-single-skill-only-v2-mix-h11-single-skill-1772harbor download openthoughts/tasktrove-mix-h11-single-skill-only-v2-mix-h11-single-skill-1772Task: Implement a lightweight poetcli package with a minimal CLI test harness
Create a Python package at /app/poetcli (as a package, not a single file). The package should expose a module poetcli.main containing a class named PoetCLITest.
Implement the PoetCLITest class with the following public API and behavior to satisfy the tests:
Class signature and context manager lifecycle
class PoetCLITest: def init(self, argv=None): - argv: Optional list[str]; defaults to an empty list when not provided. - Initialize internal state to sensible defaults.
def enter(self) -> "PoetCLITest": - Return self to enable usage like: with PoetCLITest(argv=...) as app:
def exit(self, exc_type, exc, tb) -> None: - Allow normal context manager behavior; do not suppress exceptions unless you want to.
Core run method
Attributes that tests rely on
Test expectations aligned with the provided tests:
Implementation details and constraints
Deliverable