Repository navigation
fix(docs,store): installed docs link only what the package ships (#931) - #937
Merged
Merged
Conversation
Core's shipped Markdown (README, SECURITY, docs/AI-AUTHORING, TOOLING, FUNCTION-SECURITY, YAML-REFERENCE, docs/README, examples and recipes) linked relatively to pages the tarball does not contain, such as READINESS.md. Each such link is now a reference link to this repository at the current version, defined in a urlcode-current-version block the release bump moves; check-local-links checks those targets and fragments against the checkout. The YAML reference generator emits its guide links the same way. The package audit now reads every packed Markdown file and llms.txt and fails on a relative link the archive cannot follow, for core and every add-on. It replaces test/llms-txt-links.test.ts, which checked llms.txt alone. urlcode extensions add store pointed at docs/STORE.md; its notes and the STORE_DURABILITY description now name the installed README and urlcode docs search. The store README gives Transfers and Intervals their own headings, so a docs search for either lands on it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
jimhoyd
enabled auto-merge (squash)
September 29, 2026 17:49
Co-Authored-By: Claude Opus 5.5 <[email protected]>
jimhoyd
added a commit
that referenced
this pull request
Sep 29, 2026
…-doc links, drop a duplicated store CHANGELOG entry Co-Authored-By: Claude Opus 5.5 <[email protected]>
jimhoyd
added a commit
that referenced
this pull request
Sep 29, 2026
…d store CHANGELOG entry Co-Authored-By: Claude Opus 5.5 <[email protected]>
jimhoyd
added a commit
that referenced
this pull request
Sep 29, 2026
…s docs (#938) (#950) CLI output, capability reasons, compliance references and exported OpenAPI descriptions named docs/*.md pages the package does not ship. They now link this release's copy through docsUrl() in packages/core/src/release.ts, which builds blob/v<version>/docs/... from CORE_VERSION. CORE_VERSION replaces the CLI VERSION and MCP serverInfo literals as the one version literal in core's source; release:bump rewrites it and --check compares it with package.json. llms.txt links become reference definitions pinned to the current version in a urlcode-current-version block, as #937 did for Markdown, and check-local-links now checks them. build-llms-full.ts derives its link base from package.json (blob/v<version>/), so llms-full.txt never links main; release:bump regenerates it and --check compares it with a fresh build. The starter README's three main-branch links are pinned the same way. The package audit parses every packed script and fails when a string or template literal (not a comment) names a docs page the package does not ship, and fails any packed document, llms-full.txt included, that names this repository's blob/main or tree/main. Remaining mentions in schema descriptions, example YAML comments and llms-full.txt code spans are filed as #948. Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
Fixes #931
What changed
Relative links in shipped docs now resolve. Core's shipped Markdown linked relatively to pages the tarball doesn't contain. The installed
docs/AI-AUTHORING.md→READINESS.mdwas one example; the new check found about 300 such links across README.md, SECURITY.md, the five shippeddocs/pages, and the examples and recipes READMEs. Each one is now a reference link toblob/v<current version>/...(ortree/for a directory). The definitions sit at the end of the file in aurlcode-current-versionblock, following the precedent #921 set for package READMEs.release:bumpmoves these links with each release, andcheck-local-linkschecks their paths and fragments against the checkout. Links between shipped pages stay relative.scripts/generate-yaml-reference.tsnow emits its guide links the same way.llms-full.txtis regenerated.The package audit guards against this.
scripts/package-audit.tsreads every packed.mdfile andllms.txtfor core and every add-on. It fails on any relative link whose target isn't innpm pack --dry-run's file list. It skips links in fences and code spans, and a link to a directory counts as resolved when anything under that directory ships. This replacestest/llms-txt-links.test.ts, which checked onlyllms.txtand packed the tarball a second time. There is a unit test intest/package-audit.test.ts, and the rule is documented in docs/DEVELOPMENT-PIPELINE.md.The
urlcode extensions add storeoutput now points at installed pages. The notes, the example note and theSTORE_DURABILITYdescription no longer mentiondocs/STORE.md. They point atnode_modules/@jimhoyd/urlcode-store/README.mdandurlcode docs search. There is a test inpackages/store/test/scaffold.test.ts.The store README gives Transfers and Intervals their own headings. They used to sit under Transitions. The
may/etagsparagraph stays with Transitions. A new test intest/docs-search.test.tschecks thaturlcode docs search "intervals"and"transfers"land on their sections. It fails against main's README, where the search lands on "Authoring surfaces and limits".Store CHANGELOG entry added. Core has no CHANGELOG file.
Budgets re-measured on Node 26 with
npm pack --dry-run --json --ignore-scripts:Each budget leaves room for CI's Node 24 packing about 800 bytes more, plus about 3 KiB.
Evidence
npm run verifyis green. The only failure along the way was a store test typecheck error, since fixed;verify:workspacesthen passed in full.npm run test:packageis green.Limitations
llms.txtonly.llms.txtandllms-full.txtstill linkblob/main, and some CLI and OpenAPI strings still namedocs/*.mdpages that aren't installed. These are filed as a follow-up issue.🤖 Generated with Claude Code