feat(gateway): MosaicPlugin lifecycle + ReloadService + hot reload (P8-013)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful

Implements gateway hot reload via MosaicPlugin interface, ReloadService orchestration,
/reload admin command, POST /api/admin/reload REST endpoint, SIGHUP handler, and
system:reload broadcast to all connected TUI clients via ChatGateway.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-15 21:50:43 -05:00
parent 8628f4f93a
commit bfbe9fff97
11 changed files with 308 additions and 10 deletions

View File

@@ -0,0 +1,14 @@
import { forwardRef, Module } from '@nestjs/common';
import { AdminGuard } from '../admin/admin.guard.js';
import { ChatModule } from '../chat/chat.module.js';
import { CommandsModule } from '../commands/commands.module.js';
import { ReloadController } from './reload.controller.js';
import { ReloadService } from './reload.service.js';
@Module({
imports: [forwardRef(() => CommandsModule), forwardRef(() => ChatModule)],
controllers: [ReloadController],
providers: [ReloadService, AdminGuard],
exports: [ReloadService],
})
export class ReloadModule {}