feat(gateway): MosaicPlugin lifecycle + ReloadService + hot reload (P8-013) #182
Reference in New Issue
Block a user
Delete Branch "feat/p8-013-hot-reload"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
MosaicPlugininterface withisMosaicPlugintype guard inapps/gateway/src/reload/ReloadServicethat orchestrates plugin unload/reload, rebuilds command manifest, handles SIGHUPPOST /api/admin/reloadREST endpoint (admin-guarded) viaReloadController/reloadadmin command toCommandRegistryServiceandCommandExecutorServicebroadcastReload()toChatGatewayto emitsystem:reloadto all connected Socket.IO clientsReloadModuleintoAppModule; usesforwardRef()to resolve circular depsTest plan
pnpm typecheck— passespnpm lint— passespnpm format:check— passespnpm test— 65 tests pass (8 test files)Closes #166
bfbe9fff97to3fcc03379a