chore: 현재 작업 중간 커밋

This commit is contained in:
chungyeong
2026-03-05 11:00:45 +09:00
parent 02970df6af
commit be88b4fcec
43 changed files with 6837 additions and 466 deletions

View File

@@ -359,6 +359,20 @@ function createMultiSourceCrawler(options = {}) {
return {
async getQuotes(request) {
const explicitProvider = normalizeProviderName(request.searchParams?.provider);
if (explicitProvider) {
const target = sources.find((s) => s.provider === explicitProvider);
if (target) {
try {
return await target.crawler.getQuotes(request);
} catch (error) {
throw new Error(`Explicit provider failed (${target.provider}): ${error.message}`);
}
} else {
throw new Error(`Requested provider not available: ${explicitProvider}`);
}
}
if (routingStrategy === "primaryOnly") {
const primary = sources[0];
try {