harbor run -t openthoughts/tasktrove-exp-rpt-curriculum-easy-curriculum-easy-0300harbor download openthoughts/tasktrove-exp-rpt-curriculum-easy-curriculum-easy-0300Goal: Create a minimal Python package at /app/mesosphere with two submodules that can be imported as:
Complete only the essential features needed by the tests.
What to implement (simplified)
Notes:
Implementation details (simplified)
from typing import Dict
class Mesosphere:
def __init__(self, name: str = "Mesosphere", description: str = "A tiny demonstration library."):
self.name = name
self.description = description
def info(self) -> Dict[str, str]:
# TODO: return a dict describing the instance
return {"name": self.name, "description": self.description}
def get_welcome_message() -> str:
return "Welcome to Mesosphere!"
import json
import sys
from typing import Iterable, Optional
from .mesosphere import Mesosphere # noqa: F401
__version__ = "0.1.0"
def main(argv: Optional[Iterable[str]] = None) -> int:
if argv is None:
argv_list = list(sys.argv[1:])
else:
argv_list = list(argv)
# version check
if any(arg in {"--version", "version"} for arg in argv_list):
print(__version__)
return 0
# info command
if any(arg == "info" for arg in argv_list):
from .mesosphere import Mesosphere # local import to keep cli lightweight
m = Mesosphere()
info = m.info()
print(json.dumps(info))
return 0
# usage fallback
print("Usage: mesosphere [--version] [info]")
return 0
Acceptance criteria (simplified)
Note: The task is intentionally simplified to focus on the core API exposure and minimal CLI behavior, while ensuring importability and predictable outputs for tests. The solution should be placed under /app/.