refactor(content): delegate content-dir resolution to MCP contentDirPath (mcp 2.1.0)#162
Merged
Conversation
…ath (mcp 2.1.0) @contentrain/mcp 2.1.0 exports contentDirPath from core/ops — the upstream gap flagged during the 2.0.1 adoption. Bump 2.0.1 -> 2.1.0 and route resolveContentDirForModel through it, so the last piece of local content-path logic can no longer drift from planContentSave's write path. Studio keeps only the content_path security guard and the content-root prefix, which MCP's helper deliberately doesn't cover. types stays 0.9.0 (no coordinated bump).
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.
Ne / neden
2.0.1 adaptasyonunda işaretlediğim upstream boşluğu kapandı: @contentrain/mcp 2.1.0 artık
contentDirPath'icore/ops'tan export ediyor (senin upstream'de eklediğin). Bu PR mcp 2.0.1→2.1.0 (minor, additive) bump'layıpresolveContentDirForModel'i ona devrediyor — son yerel content-path parçası da MCP'nin write path'inden drift edemez. Studio yalnızcontent_pathgüvenlik guard'ını + content-root prefix'ini tutuyor (MCP bunları kapsamıyor).types0.9.0 kalıyor — koordineli bump yok.Değişiklik
package.json: @contentrain/mcp 2.0.1 → 2.1.0content-paths.ts:resolveContentDirForModeliçindeki tek yerel dir satırı (content_path ?? .contentrain/content/{domain}/{id}) →contentDirPath(model)Doğrulama
typecheck✅ ·lint✅ (0 hata) ·test✅ (1079/1079) ·build✅