import { Module } from "@nestjs/common";
import { HeraldService } from "./herald.service";
import { PrismaModule } from "../prisma/prisma.module";
import { BridgeModule } from "../bridge/bridge.module";

/**
 * Herald Module - Status broadcasting and notifications
 *
 * Responsibilities:
 * - Subscribe to job events
 * - Format status messages with PDA-friendly language
 * - Route to appropriate channels based on workspace config
 * - Broadcast to ALL active chat providers via CHAT_PROVIDERS token
 */
@Module({
  imports: [PrismaModule, BridgeModule],
  providers: [HeraldService],
  exports: [HeraldService],
})
export class HeraldModule {}
