Repository navigation
feat(ai): fetch page text with the Crawl4AI service - #3943
Conversation
|
Evidence for PR 3943 (issue 3887). Premise. The reply shape of Page URL guard. The client uses Tests. Checks that I ran.
Known failures. The Runner Image and Service Image checks fail on CVE-2026-78661 until the Trivy ignore of issue 3881 (PR 3926) merges. That is not from this change. I will not mark the pull request ready while only those two checks fail. Overlap. Issue 3882 plans the same credential Pending a person: review the diff in tuicr (tuicr -r origin/main..HEAD). |
Add fetch_page_text, a typed client for POST /md of the Crawl4AI service. It checks the page URL, caps the reply and the text, counts each fetch, and reads crawl4ai.url and the crawl4ai.api_token credential.
0c358a3 to
20c3aed
Compare
🤖 I have created a release *beep* *boop* --- ## [0.79.0](v0.78.0...v0.79.0) (2026-11-07) ### Features * **ai:** fetch page text with the Crawl4AI service ([#3943](#3943)) ([038e71c](038e71c)), closes [#3887](#3887) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Adds the Crawl4AI page-text service to the devops stack: Deployment, Service and NetworkPolicies in k8s/devops/crawl4ai/, on the pinned release 0.9.5. Only the roadmap-service pods may call it, and its egress reaches public ports 80 and 443 only. A new bearer token restarts the pod. A CI job reports vulnerabilities of the pinned image without failing the pull request. The service answers the client of #3943 and the token row of #3937. No Ingress or route names it. Closes #3884 Change: `openspec/changes/archive/2026-11-07-3884-crawl4ai-manifests/`
Add fetch_page_text, a typed client for POST /md of the Crawl4AI service. It checks the page URL (http or https, no private, loopback or metadata host), caps the reply in bytes and the text in characters, counts each fetch in devops_cli_crawl4ai_fetches_total, and logs no token or page query. New setting crawl4ai.url and credential crawl4ai.api_token. No tool uses it yet.
Closes #3887
Change:
openspec/changes/archive/2026-11-07-3887-crawl4ai-page-text/