chore: version packages#94
Merged
Merged
Conversation
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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@stainless-code/codemap@0.7.4
Patch Changes
#93
d92b917Thanks @SutuSebastian! - Fix: project recipes (<root>/.codemap/recipes/<id>.sql) are now visible via the CLI.parseQueryRestvalidates--recipe <id>/--recipes-json/--print-sql <id>BEFORErunQueryCmdcallsbootstrapCodemap, so the recipe registry hitgetProjectRoot()pre-init, the throw was silently caught, and the loader fell back to bundled-only. The MCP and HTTP transports always bootstrap before reaching the loader, so project recipes worked there throughout — only the CLI path was affected.Fix is surgical:
setQueryRecipesProjectRoot(root)API inapplication/query-recipes.ts— caller-supplied root takes precedence over the runtime config (which isn't initialised yet during argv parse).cli/main.tscalls it once right afterparseBootstrapArgsreturnsroot, so every subsequent verb (parser-side and post-bootstrap) sees the same value.Single source of truth: the override is the same root
bootstrapCodemapresolves to — no parallel walk-up heuristic, no new env var, no second resolution path. The registry cache invalidates when the override changes.Adds regression tests (
query-recipes.pre-bootstrap.test.ts) exercising the override-only path (noinitCodemap) plus a dogfood project recipe (.codemap/recipes/src-deprecated.sql) that scopes the bundleddeprecated-symbolsaudit tosrc/only — useful for codemap's own deprecation lifecycle, and a permanent regression case against this bug recurring.Consumers with project recipes authored on 0.6.x–0.7.2 didn't need to wait — recipes worked via MCP / HTTP throughout. After upgrading, the CLI auto-picks them up.