Fix/llms txt root counts#50
Merged
Merged
Conversation
18 categories / ~274 functions -> 20 / ~312, matching the now-fixed typescript/llms-full.txt (generated) and current npm reality. This file is hand-authored (not generated, unlike llms-full.txt), so it will drift again after future releases unless updated manually or the generator is extended to also touch it.
Extends the existing syncHelperCount() pattern (already used to patch intro.md and comparisons/alternatives.md) to also patch the hand-authored root public/llms.txt's '~N functions across M categories' / 'browse all M categories' lines under its '## TypeScript' section — scoped to that section only and to the 'latest' role only, since the file always describes the current stable product (never a prerelease slot, never an archived vN one). Also stages public/llms.txt in the commit step (it wasn't, same class of bug as the previous llms-full.txt fix). Without this, the counts fixed manually in the previous commit would have drifted stale again at the very next release. Verified end-to-end in a scratch worktree: ran the real generator against the real v3.0.4 build artifact, confirmed the exact same surgical two-line diff as the manual fix, confirmed a typescript/next (prerelease) run correctly leaves the file untouched, and confirmed the file is now staged where it silently wasn't before.
✅ PR Validation Passed
📋 Pipeline Status
🤖 Generated by @helpers4 CI • 2026-07-21 |
Deploying helpers4 with
|
| Latest commit: |
8282fd3
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://901ab4a6.helpers4.pages.dev |
| Branch Preview URL: | https://fix-llms-txt-root-counts.helpers4.pages.dev |
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.
Description
Please include a summary of what this PR does and why it's needed.
Type of Change
Related Issues
Closes #(issue number)
How Has This Been Tested?
Describe the tests you ran and how to reproduce them:
Checklist
Screenshots (if applicable)
Add screenshots for UI changes.
Additional Context
Add any other context about the PR here.