feat: expose llms.txt#865
Conversation
ovflowd
left a comment
There was a problem hiding this comment.
I don't think our Makefile on upstream Node.js is using the llms.txt generator?
flakey5
left a comment
There was a problem hiding this comment.
lgtm, I wanna wait on nodejs/node#62027 to get merged first though in case there's any blockers/whatever
PR SummaryLow Risk Overview Routing: Release symlink: Reviewed by Cursor Bugbot for commit cf8a68f. Bugbot is set up for automated code reviews on this repo. Configure here. |
There was a problem hiding this comment.
Pull request overview
Exposes the llms.txt file (generated by doc-kit) via the Cloudflare Worker by routing requests to R2 and adding a versioned symlink that tracks the latest Node release.
Changes:
- Adds
/llms.txtGET/HEAD routes handled byR2Middleware. - Maps
/llms.txtto an R2 object viafileSymlinks.jsonandgetR2Path()handling. - Updates the symlink-cache generation script to treat
llms.txtlike other root-level dynamic symlinks.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| src/routes/index.ts | Adds GET/HEAD routes for /llms.txt so the worker serves it from R2. |
| src/middleware/r2Middleware.ts | Extends R2 path mapping logic to allow /llms.txt to resolve to the symlink key. |
| src/constants/fileSymlinks.json | Adds a root symlink entry for llms.txt pointing at the latest release docs path. |
| scripts/utils/addSymlinksToDirectoryCache.mjs | Ensures llms.txt is treated as a dynamic root-level file symlink and rewritten to the latest release during cache generation. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Aviv Keller <me@aviv.sh>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit cf8a68f. Configure here.

Expose the llms.txt file generated by doc-kit