import { CommandChecker } from "./cmd";
import { DbChecker } from "./db";
import { HttpChecker } from "./http";
import { IcmpChecker } from "./icmp";
import { LlmChecker } from "./llm";
import { CheckerRegistry } from "./registry";
import { TcpChecker } from "./tcp";
import { UdpChecker } from "./udp";

const checkers = [
  new HttpChecker(),
  new CommandChecker(),
  new DbChecker(),
  new TcpChecker(),
  new IcmpChecker(),
  new UdpChecker(),
  new LlmChecker(),
];

export function createDefaultCheckerRegistry(): CheckerRegistry {
  const registry = new CheckerRegistry();
  for (const checker of checkers) {
    registry.register(checker);
  }
  return registry;
}

export const checkerRegistry = createDefaultCheckerRegistry();
