Repository navigation
fix(core,docs): installed strings and llms indexes link this release's docs (#938) - #950
Merged
Merged
Conversation
…s docs (#938) 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]>
jimhoyd
enabled auto-merge (squash)
September 29, 2026 19:00
Resolve the core budget conflict on top of main's #932 growth, and pin the new local-review-loop link main added to llms.txt. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Pin the llms.txt links main added (#929) and re-measure the core budget. Co-Authored-By: Claude Opus 5.5 <[email protected]>
jimhoyd
added a commit
that referenced
this pull request
Sep 29, 2026
Co-Authored-By: Claude Opus 5.5 <[email protected]>
jimhoyd
added a commit
that referenced
this pull request
Sep 29, 2026
…se and hermetic seeding compose 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 #938
What changes
Installed runtime strings. CLI output, capability reasons, compliance references and exported OpenAPI descriptions link this release's docs through
docsUrl('HTTP.md#error-format')from the newpackages/core/src/release.ts. They no longer name uninstalleddocs/*.mdpaths:capabilities.ts: the throttle reason,urlcode capabilitiesfooter and function sandbox constraint. The throttle reason also drops apackages/core/src/...source path.capability-query.ts: the provider-deployments line.openapi.ts: the error envelope, body-validation, request-id header and 206 descriptions.compliance-rules/shared.ts: themonitoringandagentListsreferences.cli.ts: thebuild --target statichelp text.docsUrlbuildshttps://github.com/jimhoyd-com/urlcode/blob/v<CORE_VERSION>/docs/<page>.CORE_VERSIONis now the only version literal in core's source. It replaces the CLIVERSIONand MCPserverInfoliterals, and both read it.release:bumprewrites it and--checkfails if it differs from package.json. The module has no Node imports, so any target can load it.llms indexes.
llms.txt: its 78blob/main/tree/maintargets become reference definitions pinned to the current version, inside aurlcode-current-versionblock, the same way fix(docs,store): installed docs link only what the package ships (#931) #937 handled Markdown.check-local-linksnow scans rootllms.txt, so those paths and fragments are checked against the checkout.llms-full.txt:build-llms-full.tsreads its link base from package.json (githubBlob(version)→blob/v<version>/).release:bumpno longer treats the file as authored. It regenerates it after moving the sources, and--checkcompares it with a fresh build.blob/mainlinks are pinned the same way.Why one link base, with no separate main-branch copy for a website. The llms.txt in this repository is the file the package ships. Nothing in this repository publishes another copy. The hosted guide at urlcode.ai/llms.txt is a separate file in another repo. Someone reading a checkout has the
docs/pages locally. Someone reading an installed copy needs the docs for the version they installed. The trade-off, the same one #937 accepted: a page that exists on main but not yet at the last tag returns 404 on github.com until the next release. The tarball is always packed at the tag, so the installed copy is consistent.Checks against regression (
scripts/package-audit.ts).packedStringProblemsparses every packed.js/.mjs/.cjswith the TypeScript parser. It fails when a string or template literal names adocs/*.mdpage the package does not ship. Comments are ignored; type stripping keeps them indist/. Pinned URLs pass because the match must not be preceded by a path.packedLinkProblemsnow also readsllms-full.txt. It fails any mention of this repository'sblob/main/tree/mainoutside a fence, whether a link or a bareSource:line.test/docs-url.test.tschecks that everydocsUrl('…')page in core's source exists, with its heading anchor.OpenAPI. No checked-in OpenAPI snapshots exist. The export already carries the core version (
x-urlcode).openapi --checkonexamples/cookbookis valid, and the export now showsblob/v<version>/docs/...URLs.Budgets. After merging main (#932, #929), core measured on Node 26 at 1025624 packed / 4061375 unpacked bytes and 527 entries;
dist/release.jsand its.d.tsare new. The budgets are now 1006 KiB packed / 3970 KiB unpacked: Node 24 adds ~800 bytes, plus ~3 KiB of headroom.Evidence
npm run verify: green locally, including after each merge of main.npm run test:package: green locally.Not done here
Schema
descriptiontext, YAML comments in shipped examples, anddocs/…mentions in code spans inside llms-full.txt prose still name pages the package does not ship. These are filed as #948, with the file list.🤖 Generated with Claude Code