/** * urlVerifier.ts — URL safety & reachability checker for the CareerVivid Job Agent. * * Harness Engineering Mindset: * The agent must think like a real user clicking a link. A 98%-match job means * nothing if the URL is broken, hallucinated, or redirects to a homepage. * Every URL we return to the user must pass this verification harness BEFORE * we present it. * * The harness performs layered checks: * 1. Structural validity — is this even a parseable URL? * 2. Domain plausibility — does this look like a real company domain? * 3. HTTP reachability — does it respond with 200/301/302? * 4. Content sanity — does the final page look like a real job listing? * 5. ATS legitimacy — is it on a known ATS (Ashby, Greenhouse, Lever, etc.)? */ import { Tool } from "../Tool.js"; export interface UrlVerificationResult { url: string; ok: boolean; status?: number; finalUrl?: string; isTrustedAts: boolean; redirected: boolean; reason: string; warning?: string; } /** * Verify a single URL is reachable and looks like a legitimate job posting. * Uses harness-engineering thinking: emulate a real user clicking the link. */ export declare function verifyUrl(url: string): Promise; /** * Verify a batch of URLs in parallel (max 5 concurrent). * Returns results in the same order as input. */ export declare function verifyUrlBatch(urls: string[]): Promise; export declare const VerifyUrlTool: Tool; export declare const VerifySearchResultsTool: Tool; export declare const ALL_URL_VERIFIER_TOOLS: Tool[]; //# sourceMappingURL=urlVerifier.d.ts.map