harbor run -t openthoughts/tasktrove-exp-flat25-stackoverflow-v2-5k-stackoverflow-4774harbor download openthoughts/tasktrove-exp-flat25-stackoverflow-v2-5k-stackoverflow-4774Title: Implement a Napari NPE1 -> NPE2 manifest converter with a minimal Manifest class and repository updater
Body: I’m building a small conversion utility to translate Napari NPE1 plugin definitions into a Napari NPE2 manifest format and to apply repository changes to convert a plugin repository. I need a minimal, self-contained implementation that aligns with a given test suite and only uses the standard library.
What I need to implement (public API and behavior)
manifest_from_npe1(package=None, module=None) -> Manifest
get_top_module_path(plugin_name: str) -> Optional[Path]
convert_repository(repo_path: Union[str, Path], dry_run: bool = False) -> None
Acceptance criteria
Notes
If you’re looking for guidance on how to implement this, I’m mainly aiming for a clean, dependency-free (standard library only) solution that satisfies the described API, edge cases, and test expectations.