Repository navigation
fix(core,docs): packed schema, YAML and llms text names only pages that ship (#948) - #963
Merged
Merged
Conversation
…at ship (#948) Schema descriptions, example and starter YAML comments now link this release's blob/v<version>/docs/... copy, which release:bump rewrites in tracked non-Markdown text and --check holds to the current version. docs:reference turns those URLs into reference links defined in the YAML-REFERENCE.md marker block. The llms-full.txt build links bare docs/X.md mentions of unshipped pages to the release tag. The package audit reads every other packed text file (packedTextProblems) for unshipped docs pages and main-branch links. Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts: # scripts/package-audit.ts
jimhoyd
enabled auto-merge (squash)
September 29, 2026 20:06
# Conflicts: # scripts/package-audit.ts
…e references Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e references 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 #948
Packed non-Markdown text (schema descriptions, YAML comments in shipped examples and the starter, and
llms-full.txtprose) nameddocs/*.mdpages the package does not ship.Design: pinned release links, moved by the bump
schemas/urlcode.schema.json,schemas/requests.schema.json): descriptions now sayhttps://github.com/jimhoyd-com/urlcode/blob/v<version>/docs/X.md. That's what an editor hover shows, and it's the same document the schema URL serves at that tag. The build can't rewrite these because the schema is published by tag URL straight from the committed file, so the pin is committed.release:bumprewrites everygithub.com/jimhoyd-com/urlcode/(blob|tree)/v<version>/link in tracked non-Markdown text (json/yaml/yml/txt/toml/html/css). It skipspackage-lock.json, the llms indexes (which have their own mechanism), and this repository's tests, scripts and workflows.--checkfails when one of these links names a version other than the current one.docs/YAML-REFERENCE.md:docs:referenceturns each pinned URL in a description into a reference link labelled by its docs path ([docs/HTTP.md]). The link is defined in the page's existingurlcode-current-versionblock, so on GitHub the page reads as before with working links, and the version still appears only inside the marker block.examples/cookbook/urlcode.yaml,examples/cookbook/routes/middleware.yamlandexamples/monitoring/prometheus-{rules,scrape}.yamlare pinned. So isstarters/default/.github/workflows/urlcode.yml, which linkedblob/main/docs/CI.md.llms-full.txt:scripts/build-llms-full.ts(pinDocsMentions) links two kinds of mention of an unshipped page to the release tag: a baredocs/X.mdin prose, and a code span that holds only that path. "Shipped" means thedocs/entries in package.jsonfiles. It leaves alone links, reference labels, longer code spans and fenced code. On this tree it rewrites 5 prose mentions: SPIKE-DEFAULT-TRUST-MODEL, CAPACITY, SPECIFICATION and YAML-GUIDE.packedTextProblemsreads every packed file that is neither Markdown nor code (isPackedText), fenced or not. That covers JSON, YAML, TXT including the llms indexes, TOML, HTML, CSS, templates and Makefiles; binary files (NUL byte) are skipped. It fails on two things:docs/*.mdmention of an unshipped page that is not a link label;blob/mainortree/mainlink to this repository. Apackage.jsonis exempt from this one because a manifest'shomepagenames the project.docs/DEVELOPMENT-PIPELINE.mddescribes all of the above.Not in scope
dist/types/*.d.ts) still name unshipped pages in JSDoc, which editors show on hover. This is consistent with [Bug]: installed CLI/OpenAPI text and llms indexes still point at uninstalled docs or blob/main #938's decision that comments address maintainers, but it is a similar gap.Evidence
npm run verifygreen,npm run test:packagegreen (Node 26).packedTextProblems,pinDocsMentions, bump/check of pinned links in a schema and a YAML file (with a test fixture left alone), and a drift case for a stale pin.🤖 Generated with Claude Code