Conversation
There was a problem hiding this comment.
Pull request overview
This PR introduces runtime plugin discovery via Python entry points and wires plugin-provided Typer sub-apps into the main aegis CLI, enabling third-party plugins to extend both the plugin-spec layer and CLI surface.
Changes:
- Added
aegis/core/plugin_discovery.pyto discoverPluginSpecand plugin CLItyper.Typerapps via theaegis.plugins/aegis.plugins.clientry-point groups (with caching and error tolerance). - Mounted discovered plugin Typer sub-apps into the main CLI in
aegis/__main__.py. - Added tests to pin discovery behavior and documented the entry-point groups in
pyproject.toml.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
aegis/core/plugin_discovery.py |
Implements entry-point based discovery for plugin specs and CLI sub-apps, including caching and stderr warnings. |
aegis/__main__.py |
Mounts discovered plugin Typer apps under aegis <plugin> ... at CLI initialization time. |
tests/core/test_plugin_discovery.py |
Adds unit tests covering discovery happy paths, error tolerance, collisions, and caching behavior. |
pyproject.toml |
Documents the plugin entry-point group contract via empty entry-point group tables. |
5b980cd to
906eb29
Compare
906eb29 to
f54d2ea
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.