logicsrc/apps/logicsrc-web/contract
Anthony Ettinger 93af4770ac
Charge AI training crawlers for access (x402 gateway) (#141)
* Charge AI training crawlers for access (@profullstack/x402-gateway)

Training crawlers (GPTBot, ClaudeBot, CCBot, meta-externalagent, Bytespider,
Applebot-Extended) get 402 Payment Required with an x402 offer, or the sales
page at /crawl, and a paid pass opens the site for a day. People, search
engines and retrieval crawlers pass through untouched. robots.txt is now
generated from the same lists.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YafYxayh7Gqe5MWNNQMev2

* Type the middleware as returning Response | NextResponse

The crawl gateway answers with a plain Fetch Response.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YafYxayh7Gqe5MWNNQMev2

* Contract test awaits the now-async proxy

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YafYxayh7Gqe5MWNNQMev2

---------

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-05 14:49:39 -07:00
..
apex-rewrites.contract.test.ts
html-sanitizer.test.ts
install-command.contract.test.ts feat(web): put the one-line install in front of everyone 2026-07-30 12:55:30 -07:00
logicsrc-web.contract.test.ts Charge AI training crawlers for access (x402 gateway) (#141) 2026-09-05 14:49:39 -07:00
marketing-drift.contract.test.ts Add SSH keys and config to credential sharing (#139) 2026-08-13 17:03:00 -07:00
ontology-api.contract.test.ts fix(web): validate ontology pagination (#138) 2026-08-10 18:59:16 -07:00