Skip to content

refactor(content): delegate content-dir resolution to MCP contentDirPath (mcp 2.1.0)#162

Merged
ABB65 merged 1 commit into
mainfrom
chore/contentrain-2.1.0
Jul 17, 2026
Merged

refactor(content): delegate content-dir resolution to MCP contentDirPath (mcp 2.1.0)#162
ABB65 merged 1 commit into
mainfrom
chore/contentrain-2.1.0

Conversation

@ABB65

@ABB65 ABB65 commented Jul 17, 2026

Copy link
Copy Markdown
Member

Ne / neden

2.0.1 adaptasyonunda işaretlediğim upstream boşluğu kapandı: @contentrain/mcp 2.1.0 artık contentDirPath'i core/ops'tan export ediyor (senin upstream'de eklediğin). Bu PR mcp 2.0.1→2.1.0 (minor, additive) bump'layıp resolveContentDirForModel'i ona devrediyor — son yerel content-path parçası da MCP'nin write path'inden drift edemez. Studio yalnız content_path güvenlik guard'ını + content-root prefix'ini tutuyor (MCP bunları kapsamıyor). types 0.9.0 kalıyor — koordineli bump yok.

Değişiklik

  • package.json: @contentrain/mcp 2.0.1 → 2.1.0
  • content-paths.ts: resolveContentDirForModel içindeki tek yerel dir satırı (content_path ?? .contentrain/content/{domain}/{id}) → contentDirPath(model)

Doğrulama

typecheck ✅ · lint ✅ (0 hata) · test ✅ (1079/1079) · build

…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).
@ABB65
ABB65 merged commit ed6ac18 into main Jul 17, 2026
2 checks passed
@ABB65
ABB65 deleted the chore/contentrain-2.1.0 branch July 17, 2026 17:51
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.

1 participant