Spaces:
Paused
Paused
Commit History
-
fix: inference.py reset
f594f81 -
fix: inference.py
f6b54cb
-
fix: satisfy openenv multi-mode validation
Add root pyproject.toml and uv.lock with server script + openenv-core dependency, and expose server.app:main entrypoint for validator checks. Also harden frontend health status handling to avoid false offline state when health responses vary by status text/content-type. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>715b529 -
fix: add OpenEnv environment manifest
Add root openenv.yaml required by OpenEnv validator and provide server.app:app entrypoint shim for importable app resolution from repo root. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>7d51cb2 -
fix: add OpenEnv root reset and step aliases
Expose OpenEnv-compatible root endpoints (/reset, /step, /state/{episode_id}) and API aliases (/api/reset, /api/step, /api/state/{episode_id}) to prevent 405 on evaluator probes. Add endpoint coercion for relaxed action payloads and tests for alias behavior. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>b4b210e -
docs: init proto
24f0bf0 -
feat: add OpenEnv-compliant root inference runner
- Added root inference.py using OpenAI client with API_BASE_URL and MODEL_NAME defaults\n- Enforced HF_TOKEN as mandatory without default\n- Implemented strict [START]/[STEP]/[END] stdout formatting and guaranteed [END] emission\n- Added runtime adapter auto-detect (OpenEnv SDK first, ScrapeRL episode API fallback)\n- Updated .env.example and README with inference configuration and usage\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>8341a89 -
feat: add dynamic registry-driven agent tool runtime
- Added AgentToolCaller with LLM-driven tool planning from plugin registry metadata\n- Added ToolExecutor with runtime namespace dispatch and non-hardcoded execution\n- Expanded plugin registry from 71 to 82 tools (parser/data/analysis/extraction/validation additions)\n- Integrated runtime tool decisions and tool observations into agentic scrape flow\n- Verified selected tools execute and vary by prompt for different scraping tasks\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>5b2dac6 -
test: comprehensive LLM extraction testing and report
- Tested Groq Llama 3.3 70B and Gemini 2.5 Flash models - VERIFIED: Simple HTML extraction works perfectly (example.com, httpbin.org) - IDENTIFIED: Complex site extraction needs better prompts (HN, Reddit) - Created comprehensive test report in docs/AI_EXTRACTION_TEST_REPORT.md - Added backend README.md for build system SUCCESS RATE: - Simple sites: 100% (perfect extraction) - Complex sites: ~30% (partial - wrong elements extracted) CONCLUSION: Core AI pipeline WORKING, needs prompt engineering for complex sitesd64a03c -
fix: improve LLM extraction prompts and column name parsing
- Added _parse_column_names() helper to properly extract column names from output_instructions - Fixed extraction prompt to guide LLM to extract actual content not empty strings - Updated requirements to emphasize extracting real data from HTML elements - Added backend/README.md for build compatibility - Created comprehensive LLM integration status report in docs/ VERIFIED: Streaming response DOES return output field with extracted data ISSUE IDENTIFIED: LLM extraction code quality needs improvement - often returns empty values NEXT: Test with improved prompts on diverse sites06af10e -
feat: identify working LLM models and improve debugging
- Tested Gemini API and discovered API key has access to gemini-2.5-flash and gemini-2.0-flash (NOT 1.5) - Verified Groq llama-3.3-70b-versatile works successfully for extraction - Confirmed LLM extraction pipeline IS working: example.com returns proper JSON with Groq - Added comprehensive debug logging to track model resolution through router and providers - Fixed GoogleProvider 404 error handler to extract actual model name from request URL - Clear Python cache before testing to ensure code changes are picked up VERIFIED: AI-driven extraction works with Groq on simple sites TODO: Debug why CSV/JSON output not appearing in final streaming response for complex sitesc2f6d26 -
fix: improve model router error handling and add debug logging
- Strip provider prefix from model names before passing to providers (google/gemini-1.5-flash -> gemini-1.5-flash) - Fix GoogleProvider 404 error to report actual model name instead of hardcoded 'unknown' - Add debug logging to router and provider to trace model name resolution - Handle both bare model names and provider/model format in router02cc090 -
fix: handle provider/model format in router (strip prefix before calling provider)
71cf583 -
feat: prioritize user-site extraction over external search, improve metric patterns for HN-style sites
fc5088a
-
feat: improve tool call display with emoji prefix in dashboard
922337a -
fix: improve complex link extraction for Twitch-style markdown
9c16219 -
feat: intelligent search-based navigation for trending/popular content
- Add _infer_navigation_paths() for generic path inference based on intent - Add _build_search_navigation_url() for search-based fallback - Prefer search URLs for top/trending/popular queries (work without auth) - Rewrite _extract_markdown_link_rows() with smarter content detection: - Skip image links (![Image]) in markdown - Extract metrics (views, likes, comments) from nearby lines - Filter boilerplate labels and URL tokens aggressively - Rank results by keyword relevance and engagement metrics - Expand boilerplate filtering in _fallback_extraction_code() - Fix alias matching in registry.py (boundary-aware matching) - Add regression tests for alias matching This enables generic extraction for JS-heavy sites like YouTube by using search URLs that return content without requiring authentication.0735175 -
test: verify strict output contracts on 200-case matrix
- add strict output-contract runner for 100 template + 100 non-template mixed cases - run with max_steps=999 to allow effectively unlimited agent steps - enforce exact requested CSV/JSON schema matching (no extra columns) - update docs/test-report.md with contract validation results - result: 200/200 completed, 0 contract mismatches Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>027ebd4 -
test: validate 35 non-template existing domains across output types
- add non-template matrix runner for existing domains (question/csv/json) - execute 105-case sweep (35 domains x 3 output modes) - analyze output-format and schema adherence for each case - update docs/test-report.md with additional run summary - result: 105/105 completed, 0 failures Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>9a34438 -
test: run 6100-case template and non-template stress matrix
- add deterministic stress runner covering all 56 site templates and 5 non-template targets - execute 100 iterations per target with question/csv/json modes - validate strict output-format and schema adherence for each run - generate docs/test-report.md and docs/reports/template-stress-summary.json - result: 6100/6100 completed, 0 partial, 0 failed Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>b28fad0 -
fix: enforce template-hint agentic flow and strict output schema
- keep templates as navigation/extraction hints instead of hard dependencies - remove site-specific fallback navigation branches in favor of plan target URL hints - include assets and output format explicitly in agent prompts - enforce requested output columns by projecting extracted rows to output instructions schema - preserve deterministic fallback behavior for offline/test execution without hardcoded scrapers - keep regression coverage green for scrape API suite Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>bfec523 -
refactor: remove hardcoded strategy scrapers
- delete legacy _scrape_github_trending/_scrape_reddit_trending/_scrape_single_page/_scrape_with_exploration flows - keep a single agentic scraper path via _scrape_with_agentic_llm - add deterministic fallback planning and extraction when live LLM calls are unavailable - emit validate.url, html.extract, extract.urls, and extract.emails tool calls in agentic flow - restore _fetch_reddit_communities compatibility helper for E2E monkeypatch fixtures - keep gold-data verifier as partial signal without forcing session-level partial failures - validate with scrape API regression tests (asset resolution + 100-case E2E suite) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>0a43df3 -
feat: Improve LLM extraction prompts for better data quality
- Increase HTML sample from 5000 to 15000 chars to include content - Add explicit example output format in extraction prompt - Clarify column name requirements matching output_instructions - Add temperature=0.3 for more deterministic code generation - Log generated code on execution failures for debugging - Test results: username/repo/stars now extracted correctly - Forks field empty (acceptable - LLM extracts what's visible in HTML)1421a1a -
fix: Kill stale backend process and verify agentic scraping works
- Identified two backend processes listening on port 8000 - Killed stale process (PID 32444) that was serving old hardcoded code - Verified agentic scraper now executes with LLM-driven decisions - LLM successfully decided navigation URL (github.com/trending?since=weekly) - LLM generated BeautifulSoup extraction code dynamically - Extraction partially working (stars/forks OK, username/repo need refinement) - System now operates without hardcoded scraping logic405f6a4 -
feat: Replace hardcoded scraping with truly agentic LLM-driven approach
- Add _scrape_with_agentic_llm() function that uses model router for all decisions - LLM now decides navigation URLs based on user instructions + template hints - LLM generates BeautifulSoup extraction code dynamically from HTML + instructions - Execute generated code in sandbox for flexible data extraction - Templates serve as reference hints only, not rigid execution scripts - Works even without templates (pure agentic mode) - Output columns now driven by user's output_instructions - Replace all hardcoded strategy routing (github_trending, reddit_trending, etc) with single agentic pathf946069 -
fix: GitHub trending CSV output returns correct columns
- Strategy detection now properly triggers github_trending for requests like 'Extract the top 5 repos of this week' - CSV output now returns exactly the requested columns (username, repo, stars, forks) - Extracted data structure includes pre-formatted csv_output for direct download - Fixed issue where Docker container was intercepting requests with stale code The fix ensures the scraper: 1. Detects GitHub trending signals ('top repos', 'this week', 'trending', etc.) 2. Navigates to github.com/trending instead of github.com homepage 3. Extracts repository data with correct column mapping 4. Formats output according to user's output_instructions4ece098 -
fix: resolve bare-domain assets to direct URLs
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>4b354aa
-
feat: add validate.url and html.parse tool calls for comprehensive visibility
b136a9f -
feat: add comprehensive plugin registry with 71 tools across 12 plugins
fa40af9 -
feat: add comprehensive tool call visibility in step accordion
48f04de -
feat: add tool call visibility in step accordion
- emit tool_call step events for browser.navigate, html.parse, html.select, csv.generate - show tool name, description, parameters, and result in frontend accordion - add Zap icon for tool_call action with yellow highlight - display tool call details section with structured parameter/result views This enables users to see exactly which tools agents invoke during scraping.64ae2f9 -
test: add runtime agent verification for 56 site templates
- run sequential /api/scrape/stream verification for each site template - validate planner, site_template, navigator, and sandbox agent template IDs - record per-site actions, rewards, and completion status in JSON report - rerun arxiv with extended timeout to confirm complete event Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1f42d7b -
fix: dedupe stream steps and exclude agent skills from plugins
- filter enabled plugins to non-agent plugin IDs before scrape requests - prevent duplicate stream events and repeated session init logs in dashboard - add start/stop locking to avoid accidental concurrent scrape starts - align plugin count/accordion display with non-agent plugin selection Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>0a2fd47 -
docs: document site template architecture and APIs
- add architecture notes for backend/app/sites layer - document agent template-awareness behavior - add /api/sites endpoint usage examples in API docs Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>bcd9d5d -
test: add full site template matrix coverage
- add registry tests that validate every template domain maps correctly - add API tests for /api/sites list/get/match endpoints - add site template matrix report under docs/test - validate 56 template catalog with comprehensive assertions Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>7f50e50 -
feat: add site template registry and agent integration
- add backend/app/sites template catalog with 56 templates - expose /api/sites list/get/match endpoints - wire scrape planner/navigator to resolve and reference templates - add per-url template-aware strategy selection for scraping Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>e13f862 -
test: expand test coverage to 15 tests, all passing
- Added 10 more diverse test cases (Reddit, MDN, DuckDuckGo, etc.) - All 15 tests pass with proper rewards - Memory system verified: 44 entries after tests - 100% success rate across all test scenarios6452b60 -
docs: add rewards and CSV output test report
- Documented reward structure for all step types - 5/5 tests passing with proper rewards - GitHub trending: 7.50 total reward - Clean CSV output verified - Memory system working (24 entries after tests)bcc23e6 -
fix: proper rewards for all steps and clean CSV output
- Added rewards to plugin, planner, planner_python, navigator, navigator_python steps - Navigation step now gets 0.5 reward on success - Extraction step calculates reward based on repo count (0.5 per repo + 1.0 bonus) - CSV output now returns clean data without nested structure - format_output() checks for csv_output key and returns it directly - Total rewards now accumulate correctly across all steps13402be -
feat: enhanced step accordion UI with Lucide icons and test report
- Added StepAccordionItem component with action-specific icons - Icon mapping for navigate, extract, plugins, planner, verify, etc. - Color-coded step statuses (running, completed, failed) - Expandable step details showing extracted data - Steps summary in completed view - Created comprehensive test report (10/10 tests passed) - GitHub trending scraper working with CSV outputdc6c23a -
fix: intelligent navigation scraper with GitHub trending support
a04acb3 -
feat: implement intelligent agentic web scraper
- Added intelligent navigation planning based on instructions - Created GitHub trending repository scraper strategy - Enhanced planner to understand goals like 'trending repos' - Added CSV output for repository data (username, repo_name, stars, forks) - Improved agent orchestration for goal-oriented scraping - Added intelligent exploration vs single-page strategies The scraper now understands instructions like 'Get me all trending repo' and navigates intelligently to GitHub trending pages instead of just doing basic field extraction from the homepage.82fb385 -
fix: resolve scraper functionality and plugin issues
- Fixed plugin registry missing web_scraper and python_sandbox - Removed locals() from sandbox BLOCKED_CALLS for analysis - Fixed frontend health check API response parsing - Added comprehensive test validation framework - Verified all agents (planner, navigator, extractor, verifier) working - Confirmed Python sandbox execution with numpy/pandas/bs4 - Validated real-world URL scraping capabilities - Added session artifact management and memory integration54ec9cb
-
test: comprehensive ScrapeRL system tests - 100% pass rate
- Test scraper environment at LOW/MID/HIGH complexity - Test reward function with ground truth accuracy - Test plugin system installation/uninstallation - Test Gemini embeddings with similarity search - Test vector search/memory manager - Test NVIDIA and Groq AI providers - Test API endpoints (tasks, plugins, episode lifecycle) Components tested: Scraper, Reward, Plugins, Embeddings, Memory, AI Providers, API Total: 21 tests, 21 passed (100%)e123ba8 -
chore: move AI test report to docs/test
852ba36 -
test: comprehensive AI provider testing with 90% success rate
da142bc -
docs: comprehensive README update with all new features and examples
9160ee4 -
test: add end-to-end scraper test script with successful validation
8512126 -
feat: add frontend WebSocket integration with episode progress tracking
fa81e4d -
feat: add WebSocket support for real-time scraper progress updates
4afa792