Skip to content

refactor(registry): generate llms manifests via @vllnt/next-llms#446

Merged
bntvllnt merged 2 commits into
mainfrom
refactor/registry-next-llms
Jun 26, 2026
Merged

refactor(registry): generate llms manifests via @vllnt/next-llms#446
bntvllnt merged 2 commits into
mainfrom
refactor/registry-next-llms

Conversation

@bntvllnt

Copy link
Copy Markdown
Collaborator

What

Migrate the registry's llms.txt and llms-full.txt routes from hand-rolled string builders to the first-party @vllnt/next-llms generators (dogfood).

  • app/llms.txt/route.tsgenerateLlmsText({ title, summary, details, sections })
  • app/llms-full.txt/route.tsgenerateLlmsFullText({ title, summary, details, sections }) (package H1→H2→H3 hierarchy)
  • @vllnt/next-llms added on the canary channel (matches the existing shadcn: "canary" pattern); lockfile pins the resolved build for reproducible CI.

Output deltas (intentional, no useful loss)

  • Empty-notes links drop the trailing ": " (package omits it) — minor cleanup.
  • llms-full's three redundant section-intro lines (releases / templates / components) drop out — the package's section model has no section-prose slot; rss.xml/atom.xml feeds stay discoverable via the layout <head>, the releases page, and llms.txt.

Validation

  • tsc --noEmit ✓ · eslint (changed files) ✓ · next build ✓ (both routes prerender static)
  • Generated .next bodies verified: 309 components, all sections faithful & spec-compliant
  • codebase-intelligence: blast radius 0 (leaf route handlers, riskLevel: LOW)
  • react-doctor: 0 diagnostics

Scope

Surgical — only the migration files. Unrelated working-tree WIP (browserslist, layout/vs pages) deliberately excluded.

Closes #445

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
@vllnt-pilot

vllnt-pilot Bot commented Jun 18, 2026

Copy link
Copy Markdown

ntk preview

App Status Preview
ui-registry Ready https://pr-446-ui-registry.preview.vllnt.ai
storybook Ready https://pr-446-storybook.preview.vllnt.ai

Built from 188917e3 · public + no-index (ADR-082) · torn down on close

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
@bntvllnt bntvllnt self-assigned this Jun 26, 2026
@bntvllnt bntvllnt merged commit f067625 into main Jun 26, 2026
8 checks passed
@bntvllnt bntvllnt deleted the refactor/registry-next-llms branch June 26, 2026 13:03
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.

refactor(registry): adopt @vllnt/next-llms for llms.txt / llms-full.txt

1 participant