feat(FN-1468): wire plugin backend into dashboard and serve startup

- Add plugin backend wiring to fn dashboard startup
- Add plugin backend wiring to fn serve (headless node) startup
- Document plugin wiring pattern in project memory
- Add comprehensive tests for plugin initialization in dashboard and serve commands
- Include changeset for @gsxdsm/fusion package
This commit is contained in:
gsxdsm
2026-04-09 21:22:46 -07:00
parent a8f4c3d447
commit 375f431f69
7 changed files with 333 additions and 3 deletions

View File

@@ -0,0 +1,7 @@
---
"@gsxdsm/fusion": patch
---
Fix plugin settings load failure in dashboard/serve runtime
The Settings → Plugins page in the dashboard was showing "Failed to load plugins" because the plugin REST API routes were not being wired into the server startup. This fix initializes PluginStore and PluginLoader in both `runDashboard` and `runServe`, and passes them to `createServer` so the `/api/plugins` endpoints become available in both full dashboard mode and headless node mode.