harbor run -t openthoughts/tasktrove-exp-rpt-stack-pytest-v2-stack-pytest-0055harbor download openthoughts/tasktrove-exp-rpt-stack-pytest-v2-stack-pytest-0055Task: Implement a minimal TextX-like package to satisfy the provided pytest tests
Goal Create a Python package (preferred) or module that exposes a small subset of TextX functionality required by the tests. The implementation must enable:
Where to implement Place the implementation in /app/textx/. The tests import from textx.cli, textx.registration, and textx.exceptions, so a package layout is expected. If you instead implement a single module at /app/textx.py, ensure it provides equivalent exports, but the preferred setup is a package under /app/textx/.
Required modules, classes, and signatures (self-contained and actionable)
Implement a minimal metamodel registry and a factory function used by tests to obtain a metamodel instance.
Implement a lightweight Metamodel class with the following:
Optional lightweight Model class (only to satisfy return type if needed by callers in tests). It can be a simple placeholder:
Implement a CLI group and a check command that tests can invoke via Click's CliRunner:
CLI structure:
Behavior mapping to satisfy tests:
Notes on test alignment
Files and structure you should create (summary)
Implementation notes
Acceptance criteria