@bettercms-ai/mcp 0.68.0 → 0.68.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
@@ -6712,6 +6712,11 @@ conversion is yours to write.
6712
6712
  5. Codemod the templates. Read each value from the CMS (\`@bettercms-ai/astro\` /
6713
6713
  \`@bettercms-ai/next\` client, or the \`bcms-content.json\` build snapshot), KEEP the in-code
6714
6714
  copy as the fallback, and declare the binding on the element that already renders it.
6715
+ Read the snapshot ONLY through a supported reader: the helper \`npx @bettercms-ai/convert\`
6716
+ writes (\`bcms\`, \`bcmsRows\`, \`bcmsImage\`) or \`publishedEntry(slug)\` from
6717
+ \`@bettercms-ai/sdk\`. Never hand-write a parser of the file: a row holds its values under
6718
+ \`data\`, so \`row.title\` is undefined and the page renders its fallback on every publish. An
6719
+ editable image is \`bcmsImage(page, path, importedImage)\`, never the bare import with a stamp.
6715
6720
  Prefer schema-derived bindings \u2014 the TypeGen analogue:
6716
6721
  \`npx @bettercms-ai/codegen --bindings-out src/bettercms.bindings.generated.ts\`, then spread
6717
6722
  \`{...bcms.home.hero.title}\` / \`{...bcms.blog.features.$(i)}\`. The hand form is
@@ -6746,7 +6751,7 @@ conversion is yours to write.
6746
6751
  \`bcms-content.json\` into the repo root before \`build\`, with a key it mints per build: no
6747
6752
  repo secret feeds it. (The secret a connect sets, \`BCMS_API_KEY_<RUNG>\` such as
6748
6753
  \`BCMS_API_KEY_PROD\`, is the validation workflows' key; they fall back to the shared
6749
- \`BCMS_API_KEY\` only for a repo whose last connect predates it.) Read that file, with in-code
6754
+ \`BCMS_API_KEY\` only for a repo whose last connect predates it.) Read that file (step 5's readers), with in-code
6750
6755
  fallbacks so a local or CI build without it still renders.
6751
6756
  - ARCHIVE (\`deploy_project\`, inline or by \`uploadKey\`): the sandbox build runs with no env
6752
6757
  and no network content step, by design. So the archive MUST SHIP its own