import type { DiscoveryEngine, IDiscoveryCandidate, IDiscoveryContext } from '../core/index.js';

export const commandDiscover = async (
  discoveryEngineArg: DiscoveryEngine,
  contextArg: IDiscoveryContext = {}
): Promise<IDiscoveryCandidate[]> => {
  return discoveryEngineArg.runActiveDiscovery(contextArg);
};
