Function findBuiltInDetector

  • Asynchronously retrieves a built-in detector by its name. If the detector is found in the BuiltInDetectors registry, it is loaded and returned; otherwise, a warning is logged and undefined is returned.

    Parameters

    • ctx: MistiContext

      Misti context.

    • name: string

      The name of the detector to retrieve. This name must match a key in the BuiltInDetectors object.

    Returns Promise<Detector | undefined>

    A Promise that resolves to a Detector instance or undefined if the detector cannot be found or fails to load.