import { ArxivEngine } from "../../engines/arxiv.js";
import { SemanticScholarEngine } from "../../engines/semantic-scholar.js";
import { wrapWithRetryAndBreaker } from "../engine-base.js";
let cached = null;
function getPapersEngines() {
  if (cached) return cached;
  cached = [
    // arXiv's API doesn't accept a date range natively; the engine filters
    // client-side. We still flag supportsDateFilter: true so the orchestrator
    // can treat date-aware queries uniformly.
    { engine: wrapWithRetryAndBreaker(new ArxivEngine()), weight: 1.1, supportsDateFilter: true, quality: "medium" },
    { engine: wrapWithRetryAndBreaker(new SemanticScholarEngine()), weight: 1, supportsDateFilter: true, quality: "medium" }
  ];
  return cached;
}
function _resetPapersEnginesForTest() {
  cached = null;
}
export {
  _resetPapersEnginesForTest,
  getPapersEngines
};
//# sourceMappingURL=papers.js.map