feat(orchestrator): add MS23 per-agent message history and SSE stream endpoints
Some checks failed
ci/woodpecker/push/ci Pipeline failed

GET /agents/:id/messages - paginated message history
GET /agents/:id/messages/stream - SSE live stream with replay

Partial #693
This commit is contained in:
2026-03-06 22:31:51 -06:00
parent 977747599f
commit 786eaf9fe1
7 changed files with 344 additions and 5 deletions

View File

@@ -6,10 +6,12 @@ import { KillswitchModule } from "../../killswitch/killswitch.module";
import { ValkeyModule } from "../../valkey/valkey.module";
import { OrchestratorApiKeyGuard } from "../../common/guards/api-key.guard";
import { AgentEventsService } from "./agent-events.service";
import { PrismaModule } from "../../prisma/prisma.module";
import { AgentMessagesService } from "./agent-messages.service";
@Module({
imports: [QueueModule, SpawnerModule, KillswitchModule, ValkeyModule],
imports: [QueueModule, SpawnerModule, KillswitchModule, ValkeyModule, PrismaModule],
controllers: [AgentsController],
providers: [OrchestratorApiKeyGuard, AgentEventsService],
providers: [OrchestratorApiKeyGuard, AgentEventsService, AgentMessagesService],
})
export class AgentsModule {}