@bettercms-ai/mcp 0.38.0 → 0.38.1

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.
package/dist/index.js CHANGED
@@ -4254,7 +4254,12 @@ component placement, and the page keeps its fields, its values and its bindings.
4254
4254
  1. set_authoring_preference { preference: "components" }
4255
4255
  2. get_componentize_plan one component per section, computed live; creates nothing. It
4256
4256
  reads this project's PUBLISHED pages, so no deploy is needed
4257
- to reach it \u2014 the deploy is the last step, not the first
4257
+ to reach it \u2014 the deploy is the last step, not the first.
4258
+ On a site DERIVED at import the release hook has already run
4259
+ this plan in bind mode and PUBLISHED what it created, so
4260
+ expect ALREADY_COMPONENTIZED and skip to step 6 (publish the
4261
+ pages) \u2014 the lane publishes the COMPONENTS, not the placements,
4262
+ which are still draft blocks on the pages
4258
4263
  3. show the user the plan and CONFIRM \u2014 it says how many components and which pages
4259
4264
  4. componentize_sections \`dryRun: true\` first, then for real; components land as DRAFTS
4260
4265
  and each placement carries \`props.bind\` to the page's field
@@ -4437,7 +4442,10 @@ still gets its own component: its own family, plus \`allowedOn: ["slug:<page>"]\
4437
4442
  with NO \`sectionType\` never appears in the editor's "Add a section" picker. Start from the
4438
4443
  builtin blueprints \`list_components\` returns (\`builtin:*\`) instead of hand-writing block JSON.
4439
4444
  On a DERIVED site run \`get_componentize_plan\` \u2192 \`componentize_sections\` FIRST \u2014 it does most
4440
- of this in one call.
4445
+ of this in one call, and on a site derived at IMPORT the release hook has already run it in bind
4446
+ mode and published the components, so expect ALREADY_COMPONENTIZED \u2014 the placements it wrote are
4447
+ still DRAFT blocks on the pages, so publish the pages, then \`npx @bettercms-ai/convert
4448
+ --componentize\`.
4441
4449
 
4442
4450
  **3. The hierarchy editors see is the GROUP.** \`create_component\` and \`update_component\` take
4443
4451
  \`group\`: a NAME, resolved against the project's component groups and created when missing. That