Repository navigation
fix(core): mcp imports agent-context from source, not the built package - #669
Merged
Merged
Conversation
packages/core/src/mcp.ts imported @jimhoyd/urlcode/agent-context, which resolves to dist/, so every test loading the MCP server from source depended on the build output another test file can rebuild concurrently. On Node 22 in the release matrix test/manifest.test.ts failed to load with ERR_MODULE_NOT_FOUND for dist/shipped-skills.js, twice. scripts/package-smoke.ts already proves the public subpath sufficient from the packed package. 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.
The 0.6.0 release rerun (run 36039045455) failed again only in
verify (ubuntu-latest, 22, 2).test/manifest.test.tscould not load:ERR_MODULE_NOT_FOUNDfordist/shipped-skills.js, imported fromdist/agent-context.js. It failed the same way in the first release run.Cause.
packages/core/src/mcp.tsimported@jimhoyd/urlcode/agent-context, a self-reference that resolves to the builtdist/. So every test that loads the MCP server from source depended on the build output, which other test files can rebuild concurrently. #668 removed one such rebuild, intest/install.test.ts; this removes the dependency itself.Change.
mcp.tsnow imports./agent-context.tsdirectly.scripts/package-smoke.tsalready imports@jimhoyd/urlcode/agent-contextfrom the packed package, so the claim that the public subpath is sufficient is still proven.Evidence.
dist/removed entirely,test/manifest.test.tsandtest/mcp.test.tspass (24 tests).Nothing was published: the release stops in
ci. Merging this reruns the 0.6.0 release.🤖 Generated with Claude Code