@bettercms-ai/mcp 0.83.5 → 0.83.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -39,7 +39,8 @@ that reads them.
|
|
|
39
39
|
the served pages show (the same shape `update_page` returns on a publish, below).
|
|
40
40
|
- **Throw away a draft**: `discard_draft` with `entryId` or `pageId` returns it to exactly what is
|
|
41
41
|
live; a page also drops its unpublished Layout overrides (`no_published_version` if it never
|
|
42
|
-
went live: delete it instead).
|
|
42
|
+
went live: delete it instead). A page's field values are its entry's own draft: `get_page`
|
|
43
|
+
`entryDraft` names that entry when it has edits, and `discard_draft { entryId }` clears them.
|
|
43
44
|
- **Edit a page safely**: read `get_page` and send its `optimisticVersion` as `ifMatch` on
|
|
44
45
|
`update_page`; a 409 means someone changed it since, so read again. `blockJson` replaces the
|
|
45
46
|
whole composition, so an unguarded write can erase a concurrent edit.
|
package/package.json
CHANGED