Repository navigation
fix: ship docs files that searchDocs reads at runtime - #445
Merged
Merged
Conversation
agent-context.ts's searchDocs (used by `urlcode docs search` and the MCP search_docs tool) reads docs/AI-AUTHORING.md, docs/YAML-REFERENCE.md, docs/TOOLING.md and docs/FUNCTION-SECURITY.md from the package root, but package.json's "files" field never listed docs/, so every installed copy of @jimhoyd/urlcode threw "Required file or directory not found" instead of returning results. Ship just those four files (not the rest of docs/, which would nearly triple the package size and blow scripts/package-audit.ts's release budgets) and raise the packed/unpacked/entry budgets to cover the real measured growth, including docs/README.md, which npm always includes once anything under docs/ is packed. Added test/docs-search-package.test.ts, which packs and installs the real tarball and runs `urlcode docs search` against it, following the pattern test/llms-txt-links.test.ts used for the adjacent #439 fix. Co-Authored-By: Claude Sonnet 5 <[email protected]>
jimhoyd
force-pushed
the
claude/beautiful-matsumoto-936528
branch
from
September 22, 2026 13:40
850fe8b to
9f6178a
Compare
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.
Summary
agent-context.ts'ssearchDocs(used byurlcode docs searchand the MCPsearch_docstool) readsdocs/AI-AUTHORING.md,docs/YAML-REFERENCE.md,docs/TOOLING.mdanddocs/FUNCTION-SECURITY.mdfrom the package root, butpackage.json'sfilesfield never listeddocs/, so every installed copy of@jimhoyd/urlcodethrew "Required file or directory not found" instead of returning results.docs/, which would nearly triple the package size and blowscripts/package-audit.ts's release budgets), and raise the packed/unpacked/entry budgets to cover the real measured growth, includingdocs/README.md, which npm always includes once anything underdocs/is packed.test/docs-search-package.test.ts, which packs and installs the real tarball and runsurlcode docs searchagainst it, following the patterntest/llms-txt-links.test.tsused for the adjacent [Bug]: Packaged llms.txt contradicts store short-link support and links unshipped docs #439 fix.Test plan
npm run typechecknpm run lintnpm run check(docs + code checks)npm test(724 tests, all passing)npm run test:package(package-audit + package-smoke, both passing)🤖 Generated with Claude Code