Releases: Contentrain/ai
contentrain@0.3.4
Patch Changes
- Updated dependencies [1d25752]
- @contentrain/types@0.4.1
- @contentrain/mcp@1.1.2
- @contentrain/query@5.1.3
contentrain@0.3.3
@contentrain/types@0.4.1
Patch Changes
- 1d25752: Fix declaration file path in package.json — point to
index.d.mtsinstead of non-existentindex.d.ts
@contentrain/types@0.4.0
Minor Changes
-
131c752: Add pure, dependency-free validate and serialize functions for shared use across MCP (Node.js) and Studio (web).
Validate:
validateSlug,validateEntryId,validateLocale,detectSecrets,validateFieldValue(type, required, min/max, pattern, select options).Serialize:
sortKeys,canonicalStringify,generateEntryId,parseMarkdownFrontmatter,serializeMarkdownFrontmatter.All functions are browser-compatible with zero runtime dependencies.
@contentrain/query@5.1.3
Patch Changes
- Updated dependencies [1d25752]
- @contentrain/types@0.4.1
@contentrain/query@5.1.2
Patch Changes
- Updated dependencies [131c752]
- @contentrain/types@0.4.0
@contentrain/mcp@1.1.2
Patch Changes
- Updated dependencies [1d25752]
- @contentrain/types@0.4.1
@contentrain/mcp@1.1.1
Patch Changes
- 131c752: Refactor validation and serialization to use shared functions from
@contentrain/typesinstead of local duplicates. Removes ~530 lines of duplicated code (pattern constants, field type matching, secret detection, frontmatter parsing, canonical JSON). No public API changes — all existing exports remain backward-compatible via re-exports. - Updated dependencies [131c752]
- @contentrain/types@0.4.0
contentrain@0.3.2
Patch Changes
-
fe97f7b: Rewrite git transaction system with dedicated
contentrainbranch 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
contentrainbranch 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
SyncResultinterface for selective file sync results - Add
ContentrainErrorinterface for structured error reporting - Add
CONTENTRAIN_BRANCHconstant
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]
- @contentrain/mcp@1.1.0
- @contentrain/types@0.3.0
- @contentrain/rules@0.3.1
- @contentrain/query@5.1.1
@contentrain/types@0.3.0
Minor Changes
-
fe97f7b: Rewrite git transaction system with dedicated
contentrainbranch 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
contentrainbranch 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
SyncResultinterface for selective file sync results - Add
ContentrainErrorinterface for structured error reporting - Add
CONTENTRAIN_BRANCHconstant
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