SurfSense/surfsense_backend/app/tasks/chat/streaming/handlers/tools
DESKTOP-RTLN3BA\$punk 80927a2872 feat(billing): meter platform scrapers per item; consolidate web scraping onto web.crawl
Add per-item, per-platform billing for the platform-native connectors (Reddit, Google Search, Google Maps places/reviews, YouTube videos/comments) through the capability gate/charge seam. Rates are config-driven with a shared wallet-credit module (wallet_credit) and a dedicated PlatformScrapeCreditService; agent and REST capability runs now record cost_micros. Google Maps scrape dual-meters places and attached reviews.

Remove the main-agent scrape_webpage tool now that the web.crawl capability covers single-page (maxCrawlDepth=0) and site crawling. The main agent now reaches crawling via task(web_crawler, ...). Update prompts, tool catalog, receipts, skills, proprietary docs, and tests; drop the obsolete chat-turn crawl fold path.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-05 17:08:01 -07:00
..
connector feat: improved document, folder mentions rendering 2026-05-09 22:15:51 -07:00
default Add chat tool streaming registry with shared, default, and connector tools. 2026-05-06 20:08:48 +02:00
deliverables chore: linting 2026-06-11 15:31:43 -07:00
filesystem feat: improved document, folder mentions rendering 2026-05-09 22:15:51 -07:00
shared Add chat tool streaming registry with shared, default, and connector tools. 2026-05-06 20:08:48 +02:00
web_discover feat(chat): add web_scrape/web_discover tool emission handlers 2026-07-02 00:17:10 +02:00
web_scrape feat(chat): add web_scrape/web_discover tool emission handlers 2026-07-02 00:17:10 +02:00
__init__.py Add chat tool streaming registry with shared, default, and connector tools. 2026-05-06 20:08:48 +02:00
emission_context.py Clear spans after task completion and pass span id on tool output. 2026-05-08 22:47:38 +02:00
registry.py feat: improved document, folder mentions rendering 2026-05-09 22:15:51 -07:00