Skip to content

Replace local ai-agent-detection with @vercel/agent-readability#12528

Merged
anthonyshew merged 5 commits intomainfrom
replace-agent-detection-with-package
Apr 2, 2026
Merged

Replace local ai-agent-detection with @vercel/agent-readability#12528
anthonyshew merged 5 commits intomainfrom
replace-agent-detection-with-package

Conversation

@molebox
Copy link
Copy Markdown
Contributor

@molebox molebox commented Apr 1, 2026

Summary

  • Replaces local ai-agent-detection.ts with the shared @vercel/agent-readability package
  • UA pattern updates now propagate from one place via version bumps
  • Adds generateNotFoundMarkdown response for agents hitting non-existent docs URLs

Same approach as vercel/front#65649 and vercel/geistdocs#58.

Test plan

  • AI agent hitting a valid docs URL gets markdown rewrite
  • AI agent hitting a non-existent docs URL gets helpful not-found markdown
  • Accept header content negotiation still works
  • Build passes

🤖 Generated with Claude Code

@molebox molebox requested a review from a team as a code owner April 1, 2026 13:23
@molebox molebox requested review from tknickman and removed request for a team April 1, 2026 13:23
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Apr 1, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
examples-basic-web Ready Ready Preview, Comment, Open in v0 Apr 2, 2026 9:33am
examples-designsystem-docs Building Building Preview, Comment, Open in v0 Apr 2, 2026 9:33am
examples-gatsby-web Ready Ready Preview, Comment, Open in v0 Apr 2, 2026 9:33am
examples-kitchensink-blog Ready Ready Preview, Comment, Open in v0 Apr 2, 2026 9:33am
examples-nonmonorepo Ready Ready Preview, Comment, Open in v0 Apr 2, 2026 9:33am
examples-svelte-web Ready Ready Preview, Comment, Open in v0 Apr 2, 2026 9:33am
examples-tailwind-web Ready Ready Preview, Comment, Open in v0 Apr 2, 2026 9:33am
examples-vite-web Ready Ready Preview, Comment, Open in v0 Apr 2, 2026 9:33am
turbo-site Ready Ready Preview, Comment, Open in v0 Apr 2, 2026 9:33am
turborepo-agents Ready Ready Preview, Comment, Open in v0 Apr 2, 2026 9:33am

Comment thread apps/docs/proxy.ts
@anthonyshew anthonyshew enabled auto-merge (squash) April 2, 2026 09:32
@anthonyshew anthonyshew merged commit 86d34cc into main Apr 2, 2026
46 of 47 checks passed
@anthonyshew anthonyshew deleted the replace-agent-detection-with-package branch April 2, 2026 09:40
github-actions Bot added a commit that referenced this pull request Apr 2, 2026
## Release v2.9.4-canary.3

Versioned docs: https://v2-9-4-canary-3.turborepo.dev

### Changes

- release(turborepo): 2.9.4-canary.2 (#12533) (`d2944c4`)
- docs: Send siteId as label on feedback GitHub issues (#12527)
(`6644f34`)
- Replace local ai-agent-detection with @vercel/agent-readability
(#12528) (`86d34cc`)
- fix: Prevent `filterUsingTasks` `--filter` from pulling dependents
into Task Graph (#12535) (`d3aca27`)

Co-authored-by: Turbobot <turbobot@vercel.com>
github-actions Bot added a commit that referenced this pull request Apr 5, 2026
## Release v2.9.4

Versioned docs: https://v2-9-4.turborepo.dev

### Changes

- release(turborepo): 2.9.3 (#12524) (`0b48404`)
- fix: Always update $schema URL to versioned format during migration
(#12529) (`389cd5e`)
- release(turborepo): 2.9.4-canary.1 (#12530) (`7f8cb9a`)
- fix: Support `turbo.jsonc` in codemod transforms (#12532) (`e570d29`)
- feat: Add incremental task caching (#12531) (`39c4934`)
- release(turborepo): 2.9.4-canary.2 (#12533) (`d2944c4`)
- docs: Send siteId as label on feedback GitHub issues (#12527)
(`6644f34`)
- Replace local ai-agent-detection with @vercel/agent-readability
(#12528) (`86d34cc`)
- fix: Prevent `filterUsingTasks` `--filter` from pulling dependents
into Task Graph (#12535) (`d3aca27`)
- release(turborepo): 2.9.4-canary.3 (#12536) (`074a0ef`)
- build(deps): Bump @xmldom/xmldom from 0.8.11 to 0.8.12 in
/examples/with-react-native-web (#12537) (`295a89b`)
- fix: Only enforce signature key length for keys that exist (#12538)
(`27ac52f`)
- release(turborepo): 2.9.4-canary.4 (#12539) (`f745fc7`)
- fix: Validate engine concurrency after task-level filtering (#12540)
(`a38658a`)
- release(turborepo): 2.9.4-canary.5 (#12541) (`ac99fac`)
- fix: Preserve prerelease info in schema URL during codemod migration
(#12542) (`81b39a5`)
- feat: Allow `--affected` and `--filter` to be combined (#12543)
(`98ab3b6`)
- fix(config): Deep-merge nested OTEL config across priority sources
(#12513) (`f214dc8`)
- release(turborepo): 2.9.4-canary.6 (#12544) (`0e763f8`)
- fix: Retain microfrontend proxy tasks when using `filterUsingTasks`
(#12545) (`a4b943e`)
- release(turborepo): 2.9.4-canary.7 (#12546) (`b7d89a4`)
- fix: Bun workspace lockfile pruning producing invalid output (#12548)
(`0346076`)
- fix: Respect dirty .gitignore patterns during task input hashing
(#12557) (`1254916`)
- release(turborepo): 2.9.4-canary.8 (#12558) (`01802b4`)

---------

Co-authored-by: Turbobot <turbobot@vercel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants