Files
PaperClipAI/server/src/services
DottaandPaperclip edae521920 Re-apply pending plugin migrations on hot-reload
When a local-path plugin's source files change, the dev watcher calls
pluginLifecycleManager.restartWorker. Previously it only bounced the
worker subprocess, so newly added migrations/*.sql files were never
applied — the worker bundle ran against an out-of-date schema until
someone manually triggered POST /api/plugins/{id}/upgrade.

restartWorker now does a full deactivate+reactivate cycle via the
plugin loader, which re-reads the manifest from disk and runs
applyMigrations (idempotently) before starting the new worker. Falls
back to handle.restart() when the loader has no runtime services
(state-only test harness).

Fixes PAP-9585.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-05-19 13:54:54 -05:00
..
2026-04-23 19:15:22 -07:00
2026-03-20 08:50:00 -05:00
2026-05-06 06:30:44 -05:00
2026-03-13 16:22:34 -05:00
2026-05-05 07:42:57 -05:00