Skip to content

Contentrain/ai

[email protected] scope: contentrain Breaking

This release includes 5 breaking changes for platform teams planning a safe upgrade.

✓ No known CVEs patched
Read the diff → Tool health → What is this tool? →

✓ No known CVEs patched in this version

Topics

ai-agents claude-code content-governance contentrain cursor developer-tools
+8 more
git i18n mcp mcp-server model-context-protocol sdk typescript windsurf

Affected surfaces

breaking_upgrade deps

Summary

AI summary

Rewrite git transaction system to use a dedicated contentrain branch with full worktree isolation.

Full changelog

Patch Changes

  • fe97f7b: Rewrite git transaction system with dedicated contentrain branch and full worktree isolation.

    @contentrain/mcp:

    • Eliminate stash/checkout/merge on developer's working tree during auto-merge
    • All git operations happen in temporary worktrees — developer's tree never mutated
    • Dedicated contentrain branch as content state single source of truth
    • Feature branches use cr/ prefix (avoids git ref namespace collision)
    • Auto-merge flow: feature → contentrain → update-ref baseBranch (fast-forward)
    • Selective sync: only changed files copied to working tree, dirty files skipped with warning
    • context.json committed with content (not separately)
    • Structured errors with code, message, agent_hint, developer_action
    • Automatic migration of old contentrain/* branches on first operation

    @contentrain/types:

    • Add SyncResult interface for selective file sync results
    • Add ContentrainError interface for structured error reporting
    • Add CONTENTRAIN_BRANCH constant

    contentrain (CLI):

    • Worktree merge pattern in diff, serve approve, normalize approve
    • Contentrain branch status display in contentrain status
    • Protected contentrain branch in branch listings

    @contentrain/rules & @contentrain/skills:

    • Updated workflow documentation for new git architecture
  • Updated dependencies [fe97f7b]

Breaking Changes

  • Eliminated stash/checkout/merge operations on developer's working tree; all Git actions now occur in temporary worktrees.
  • Dedicated `contentrain` branch becomes the single source of truth for content state.
  • Feature branches must use the `cr/` prefix to avoid namespace collisions with existing refs.
  • Auto-merge flow changed to feature → `contentrain` → fast‑forward update of base branch.
  • Selective sync copies only modified files; dirty files are skipped with a warning.

Weekly OSS security release digest.

The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.

No spam, unsubscribe anytime.

Share this release

Track Contentrain/ai

Get notified when new releases ship.

Sign up free

About Contentrain/ai

Local-first MCP server for AI content governance — 13 tools for model/content CRUD, validation, normalization, and i18n across any framework.

All releases →

Related context

Beta — feedback welcome: [email protected]