Skip to content

fix(docs,store): installed docs link only what the package ships (#931) - #937

Merged
jimhoyd merged 2 commits into
mainfrom
claude/installed-docs-931
Sep 29, 2026
Merged

jimhoyd merged 2 commits into
mainfrom
claude/installed-docs-931

Conversation

@jimhoyd

@jimhoyd jimhoyd commented Sep 29, 2026

Copy link
Copy Markdown
Collaborator

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.md was one example; the new check found about 300 such links across README.md, SECURITY.md, the five shipped docs/ pages, and the examples and recipes READMEs. Each one is now a reference link to blob/v<current version>/... (or tree/ for a directory). The definitions sit at the end of the file in a urlcode-current-version block, following the precedent #921 set for package READMEs. release:bump moves these links with each release, and check-local-links checks their paths and fragments against the checkout. Links between shipped pages stay relative. scripts/generate-yaml-reference.ts now emits its guide links the same way. llms-full.txt is regenerated.

The package audit guards against this. scripts/package-audit.ts reads every packed .md file and llms.txt for core and every add-on. It fails on any relative link whose target isn't in npm 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 replaces test/llms-txt-links.test.ts, which checked only llms.txt and packed the tarball a second time. There is a unit test in test/package-audit.test.ts, and the rule is documented in docs/DEVELOPMENT-PIPELINE.md.

The urlcode extensions add store output now points at installed pages. The notes, the example note and the STORE_DURABILITY description no longer mention docs/STORE.md. They point at node_modules/@jimhoyd/urlcode-store/README.md and urlcode docs search. There is a test in packages/store/test/scaffold.test.ts.

The store README gives Transfers and Intervals their own headings. They used to sit under Transitions. The may/etags paragraph stays with Transitions. A new test in test/docs-search.test.ts checks that urlcode 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:

Package Packed Unpacked Entries New budget
core 1013978 4010632 517 994 KiB packed / 3920 KiB unpacked
store 124734 487827 32 126 KiB packed

Each budget leaves room for CI's Node 24 packing about 800 bytes more, plus about 3 KiB.

Evidence

  • npm run verify is green. The only failure along the way was a store test typecheck error, since fixed; verify:workspaces then passed in full.
  • npm run test:package is green.

Limitations

🤖 Generated with Claude Code

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
jimhoyd merged commit 806b503 into main Sep 29, 2026
25 checks passed
@jimhoyd
jimhoyd deleted the claude/installed-docs-931 branch September 29, 2026 18:06
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]>
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.

Installed docs: pages linked but not installed; intervals and transfers lack their own README headings

1 participant