Skip to content

Refactor plugin loading with reusable manifest catalog and safer entrypoint resolution#48

Merged
ChrisCoder9000 merged 1 commit intodevelopmentfrom
cursor/codebase-structural-improvements-763e
Apr 12, 2026
Merged

Refactor plugin loading with reusable manifest catalog and safer entrypoint resolution#48
ChrisCoder9000 merged 1 commit intodevelopmentfrom
cursor/codebase-structural-improvements-763e

Conversation

@cursor
Copy link
Copy Markdown

@cursor cursor Bot commented Apr 10, 2026

Summary

  • added PluginManifestCatalog to centralize plugin manifest discovery and validation behavior
  • refactored PluginManager and PluginLoader to reuse the shared catalog, removing duplicated traversal/parsing logic
  • introduced PluginEntryPointResolver and wired it into PluginLoader to safely resolve module names from plugin entry points
  • fixed a loader failure mode caused by rstrip(".py") truncating valid module names (for example mycopy.py)
  • exported new plugin architecture components from src/core/plugins/__init__.py

Testing

  • python3 -m unittest discover -s tests -p "test_*.py" (fails in this runner due pre-existing optional dependency gap: pymilvus)
  • python3 -m unittest tests.test_plugin_refactors tests.test_static_hardening_refactors (passes)
Open in Web View Automation 

Co-authored-by: Christian <ChrisCoder9000@users.noreply.github.com>
@ChrisCoder9000 ChrisCoder9000 marked this pull request as ready for review April 12, 2026 11:47
@ChrisCoder9000 ChrisCoder9000 merged commit 04aa7e2 into development Apr 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants