Skip to content

chore(deps): bump @contentrain/mcp 3.1.8, types 1.9.1, query 7.0.14 - #228

Merged
ABB65 merged 1 commit into
mainfrom
chore/contentrain-3.1.8-upgrade
Sep 2, 2026
Merged

chore(deps): bump @contentrain/mcp 3.1.8, types 1.9.1, query 7.0.14#228
ABB65 merged 1 commit into
mainfrom
chore/contentrain-3.1.8-upgrade

Conversation

@ABB65

@ABB65 ABB65 commented Sep 2, 2026

Copy link
Copy Markdown
Member

Summary

Studio pinned @contentrain/types 1.2.0 / mcp 3.1.0 / query ^7.0.6 — seven releases behind npm. Verified against the Contentrain/ai checkout:

What reaches Studio with this bump:

  • Secret rule false positive fixed. Studio's validateContent is the MCP validator and calls detectSecrets, so api_key = your_project_api_key_here in ordinary content was refused by every Studio write path. New test in content-validation.test.ts pins both directions (placeholders pass, an issued key is still refused).
  • Available for follow-up PRs (not wired here): ContentEntry.publish_at / expire_at (meta only, null clears), legacyFieldNames / collectFieldPaths from @contentrain/mcp/core/model-manager, title inference parity.

Write-path check per the bump rule: the only engine-facing change is mergeEntryMeta(prior, entry) reading scheduling from the entry instead of entry.data; Studio's entries carry neither, so planned meta is unchanged. planModelSave and GitHubProvider are identical.

Test plan

  • contentrain-query generate, pnpm lint (0 errors), nuxt typecheck, full pnpm test (160 files / 1446 tests)
  • New content-validation.test.ts cases for the secret rule
  • Staging after merge: one real content save + merge on a project (per the MCP-bump rule), and save an entry whose text contains api_key = your_key_here

🤖 Generated with Claude Code

https://claude.ai/code/session_01Chid3TnLdPHjsKip4n63Ky

Studio pinned types 1.2.0 / mcp 3.1.0 / query 7.0.6, seven releases
behind. The gap is narrower than it looks: between mcp 3.1.0 and 3.1.7
the package source did not change (types bumps only), and types 1.3
through 1.9 added the WordPress migration contracts without touching
FieldDef, ModelDefinition, PATH_PATTERNS or any symbol Studio imports.

The substantive change is 3.1.8 / 1.9.1: the generic `api_key = …`
secret rule now checks what it captured before it fires. Studio's
validateContent comes from the MCP validator and calls detectSecrets,
so until now a setup guide that said `api_key = your_project_api_key_here`
was refused by every Studio write path — UI, agent, Conversation API.
The new test pins that the fix reaches Studio, and that an issued key
is still refused.

Also in 3.1.8, for the next PRs: publish_at/expire_at ride on
ContentEntry (meta only, null clears), legacy field names are
grandfathered by the MCP validator, and title_field inference matches
Studio's resolver.
@ABB65
ABB65 merged commit fc5fceb into main Sep 2, 2026
2 checks passed
@ABB65
ABB65 deleted the chore/contentrain-3.1.8-upgrade branch September 2, 2026 16:31
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