UNPKG

claude-flow

Version:

Ruflo - Enterprise AI agent orchestration for Claude Code. Deploy 60+ specialized agents in coordinated swarms with self-learning, fault-tolerant consensus, vector memory, and MCP integration

25 lines 1.06 kB
/** * Smoke tests for visit_webpage — iter-57 * * Tests the upgraded visit_webpage implementation WITHOUT making live HTTP calls. * All fixtures use visitWebpageTestHooks.fetchHtml to inject canned HTML. * * Test fixtures: * 1. Plain HTML article — expects >500 chars, non-empty title * 2. Wikipedia-style page — expects infobox text extracted, links present * 3. JS-heavy minimal shell — falls back to regex, still returns something * 4. max_chars truncation — capped at 500 chars via parameter * 5. PDF URL (rejection) — graceful error message, not a throw to agent * 6. Invalid URL — validation rejects before fetch * 7. Link extraction — up to 30 links extracted from anchor tags * 8. extractTextFromHtml — direct test of the regex fallback path * * Run (after build): * node dist/src/benchmarks/gaia-visit-webpage.smoke.js * * Exit 0 on all pass, 1 on any failure. * * Refs: ADR-138, iter-57, #2156 */ export {}; //# sourceMappingURL=gaia-visit-webpage.smoke.d.ts.map