This commit is contained in:
zhu
2026-05-07 09:29:56 +08:00
parent a22f1a42e4
commit d6dc8a0db4
3 changed files with 662 additions and 14 deletions

View File

@@ -1,12 +1,11 @@
import { getPlatformById } from '@/config/platforms';
import type { CrawlPauseInfo, CrawlProgressStep, CrawlTaskState, PlatformConfig, PlatformStepConfig } from '@/types';
import type { DomScrapeResult } from '../domScraper';
import type { CrawlStateResponse } from '../types';
import { getCrawlTaskState, setCrawlTaskState, updateCrawlTaskState } from './taskState';
interface PageRunnerResponse {
ok: boolean;
data?: DomScrapeResult | null;
data?: any | null;
interrupt?: CrawlPauseInfo;
error?: string;
}