refactor(registry): generate llms manifests via @vllnt/next-llms#446
Merged
Conversation
Replace the hand-rolled llms.txt / llms-full.txt string builders with the first-party @vllnt/next-llms generators (generateLlmsText / generateLlmsFullText). Add the package on the canary channel. Output stays spec-compliant: empty-notes links drop the trailing ": ", and llms-full follows the package's H1 -> H2 -> H3 hierarchy. Closes #445 Claude-Session: https://claude.ai/code/session_013XkApEoUJgkj8woUJtsQ7m
|
ntk preview
Built from |
The generated registry/default copy lagged the canonical optional-ref change in ce98eca, so registry:check (drift gate) failed on every PR off main. Regen via registry:build syncs the shim (ref: ...| undefined -> ref?: ...). Claude-Session: https://claude.ai/code/session_013XkApEoUJgkj8woUJtsQ7m
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Migrate the registry's
llms.txtandllms-full.txtroutes from hand-rolled string builders to the first-party @vllnt/next-llms generators (dogfood).app/llms.txt/route.ts→generateLlmsText({ title, summary, details, sections })app/llms-full.txt/route.ts→generateLlmsFullText({ title, summary, details, sections })(package H1→H2→H3 hierarchy)@vllnt/next-llmsadded on thecanarychannel (matches the existingshadcn: "canary"pattern); lockfile pins the resolved build for reproducible CI.Output deltas (intentional, no useful loss)
noteslinks drop the trailing": "(package omits it) — minor cleanup.rss.xml/atom.xmlfeeds stay discoverable via the layout<head>, the releases page, andllms.txt.Validation
tsc --noEmit✓ ·eslint(changed files) ✓ ·next build✓ (both routes prerender static).nextbodies verified: 309 components, all sections faithful & spec-compliantriskLevel: LOW)Scope
Surgical — only the migration files. Unrelated working-tree WIP (browserslist, layout/vs pages) deliberately excluded.
Closes #445