Scrape
Path:
codemode-gateway/src/providers/scrape.tsRelative: src/providers/scrape.tsSubproject: codemode-gatewayCategory: codemode-gatewayLines: 178Bytes: 5,517Imports: 1Exports: 3
Content Preview
- import type { Env } from "../types";
- /**
- * `scrape` namespace tools — convenience persistence over the bound D1
- * database `env.DB` (table `scrape_pages`), composed with the existing
- * `browser` and `ai` namespaces. One sandbox code block can render a page
- * (`browser.markdown`), organize it (`ai.generate`), and persist it here
- * (`scrape.save`) — see the `scrape-and-store` snippet.
- *
- * Schema (`migrations/0001_scrape_store.sql`):
- * scrape_pages(id TEXT PK, url, title, markdown, summa