Skip to content

Plugin Stuff Round 8#662

Merged
lbedner merged 1 commit intomainfrom
plugin-stuff-round8
May 2, 2026
Merged

Plugin Stuff Round 8#662
lbedner merged 1 commit intomainfrom
plugin-stuff-round8

Conversation

@lbedner
Copy link
Copy Markdown
Owner

@lbedner lbedner commented May 1, 2026

No description provided.

Copilot AI review requested due to automatic review settings May 1, 2026 22:43
@lbedner lbedner force-pushed the plugin-stuff-round8 branch from 5d49002 to 53a7dc7 Compare May 1, 2026 22:43
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends the plugin system to support plugin-shipped template trees and expands “_plugins”-driven wiring/parity across core project templates (deps, dashboard widgets, settings mixins, pyproject deps, docker-compose services). It also updates service specs/templates to support a per-service deps.py refactor and adds test fixtures + parity/integration tests to lock behavior.

Changes:

  • Add plugin template discovery (plugin_template_resolver) and end-to-end install/render support in ManualUpdater.
  • Expand shared templates to emit plugin-provided wiring (deps providers, dashboard cards/modals, settings mixins), plus plugin packaging metadata (pyproject deps, docker-compose services).
  • Add/extend tests and fixtures to validate template resolution, plugin tree installation, and legacy-vs-plugin render parity.

Reviewed changes

Copilot reviewed 23 out of 23 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
aegis/core/plugin_template_resolver.py New resolver to locate <plugin>/templates/ for plugin-shipped template trees.
aegis/core/manual_updater.py Add install_plugin_template_tree() to render a plugin’s .jinja files into a project.
aegis/core/plugin_composer.py Serialize plugin pyproject_deps and docker_services into _plugins answers.
aegis/core/services.py Extend service wiring (deps providers, modal/card ids) and align auth deps with bcrypt + pyproject deps parity.
aegis/templates/.../app/components/backend/api/deps.py.jinja Move per-service FastAPI dependency providers into per-service app/services/<svc>/deps.py and import providers; add plugin deps-provider loop.
aegis/templates/.../app/services/auth/deps.py.jinja Add per-service dependency providers for auth (and org-scoped providers).
aegis/templates/.../app/services/insights/deps.py.jinja Add per-service dependency providers for insights.
aegis/templates/.../app/services/payment/deps.py.jinja Add per-service dependency provider for payment.
aegis/templates/.../app/core/config.py.jinja Support plugin settings mixins via _plugins[].wiring.settings_mixins.
aegis/templates/.../pyproject.toml.jinja Emit plugin-provided dependencies from _plugins[].pyproject_deps.
aegis/templates/.../docker-compose.yml.jinja Emit plugin-provided docker services from _plugins[].docker_services.
aegis/templates/.../app/components/backend/startup/component_health.py.jinja Register plugin-provided health checks from _plugins[].wiring.health_checks.
aegis/templates/.../app/components/frontend/main.py.jinja Import and render plugin dashboard cards; extend service-card handling.
aegis/templates/.../app/components/frontend/dashboard/cards/init.py.jinja Add plugin card imports and align in-tree imports to absolute paths for parity.
aegis/templates/.../app/components/frontend/dashboard/modals/init.py.jinja Add plugin modal imports and align in-tree imports to absolute paths for parity.
aegis/templates/.../app/components/frontend/dashboard/cards/card_utils.py.jinja Switch modal imports to absolute paths and add plugin modal map entries.
tests/core/test_plugin_template_resolver.py New tests for resolving plugin template roots.
tests/core/test_manual_updater_plugins.py New integration test for installing/rendering plugin template trees into a project.
tests/core/test_plugin_render_parity.py Add parity tests for deps.py, dashboard init modules, pyproject deps, and card_utils wiring.
tests/core/test_services.py Update auth deps assertion to expect bcrypt instead of passlib.
tests/fixtures/aegis_plugin_test/** Add a fake plugin package with a minimal templates/{{ project_slug }} tree for round-8 tests.

Comment thread aegis/core/plugin_template_resolver.py Outdated
Comment thread aegis/core/manual_updater.py
Comment thread aegis/templates/copier-aegis-project/{{ project_slug }}/docker-compose.yml.jinja Outdated
@lbedner lbedner force-pushed the plugin-stuff-round8 branch 2 times, most recently from 57219b4 to 16c3c35 Compare May 2, 2026 01:01
@lbedner lbedner force-pushed the plugin-stuff-round8 branch from 16c3c35 to 97f1bdb Compare May 2, 2026 01:14
@lbedner lbedner merged commit 2bd90fb into main May 2, 2026
8 checks passed
@lbedner lbedner deleted the plugin-stuff-round8 branch May 2, 2026 01:24
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