Skip to content

fix(core,docs): installed strings and llms indexes link this release's docs (#938) - #950

Merged
jimhoyd merged 3 commits into
mainfrom
claude/installed-strings-938
Sep 29, 2026
Merged

jimhoyd merged 3 commits into
mainfrom
claude/installed-strings-938

Conversation

@jimhoyd

@jimhoyd jimhoyd commented Sep 29, 2026 •

Copy link
Copy Markdown
Collaborator

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 new packages/core/src/release.ts. They no longer name uninstalled docs/*.md paths:

  • capabilities.ts: the throttle reason, urlcode capabilities footer and function sandbox constraint. The throttle reason also drops a packages/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: the monitoring and agentLists references.
  • cli.ts: the build --target static help text.

docsUrl builds https://github.com/jimhoyd-com/urlcode/blob/v<CORE_VERSION>/docs/<page>. CORE_VERSION is now the only version literal in core's source. It replaces the CLI VERSION and MCP serverInfo literals, and both read it. release:bump rewrites it and --check fails if it differs from package.json. The module has no Node imports, so any target can load it.

llms indexes.

  • llms.txt: its 78 blob/main/tree/main targets become reference definitions pinned to the current version, inside a urlcode-current-version block, the same way fix(docs,store): installed docs link only what the package ships (#931) #937 handled Markdown. check-local-links now scans root llms.txt, so those paths and fragments are checked against the checkout.
  • llms-full.txt: build-llms-full.ts reads its link base from package.json (githubBlob(version) → blob/v<version>/). release:bump no longer treats the file as authored. It regenerates it after moving the sources, and --check compares it with a fresh build.
  • The starter README's three blob/main links 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).

  • packedStringProblems parses every packed .js/.mjs/.cjs with the TypeScript parser. It fails when a string or template literal names a docs/*.md page the package does not ship. Comments are ignored; type stripping keeps them in dist/. Pinned URLs pass because the match must not be preceded by a path.
  • packedLinkProblems now also reads llms-full.txt. It fails any mention of this repository's blob/main/tree/main outside a fence, whether a link or a bare Source: line.
  • test/docs-url.test.ts checks that every docsUrl('…') 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 --check on examples/cookbook is valid, and the export now shows blob/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.js and its .d.ts are 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 description text, YAML comments in shipped examples, and docs/… 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

…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
jimhoyd enabled auto-merge (squash) September 29, 2026 19:00
jimhoyd and others added 2 commits September 29, 2026 14:09
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
jimhoyd merged commit 94f1be2 into main Sep 29, 2026
25 checks passed
@jimhoyd
jimhoyd deleted the claude/installed-strings-938 branch September 29, 2026 19:24
jimhoyd added a commit that referenced this pull request Sep 29, 2026
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]>
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.

[Bug]: installed CLI/OpenAPI text and llms indexes still point at uninstalled docs or blob/main

1 participant