@bettercms-ai/mcp 0.68.0 → 0.68.2
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 +10 -4
- package/dist/index.js.map +1 -1
- package/dist/skills/bettercms/references/components.md +14 -0
- package/dist/skills/bettercms/references/frameworks.md +7 -0
- package/dist/skills/bettercms/references/next.md +3 -0
- package/dist/skills/bettercms/references/publishing.md +15 -1
- package/package.json +2 -2
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
|
|
@@ -7035,9 +7040,10 @@ Do not stop at the plan or at a partial receipt \u2014 finish the whole site, ne
|
|
|
7035
7040
|
10. \`get_next_steps\`: if it lists \`upgrade-section-roots\` (section spacing and style handles), in the repo run
|
|
7036
7041
|
\`npx @bettercms-ai/convert@latest --upgrade-sections --root . --dry-run\`, read the plan, then run it for real. For every
|
|
7037
7042
|
root its receipt lists as \`skipped\`, pass the block down by hand: \`{...sectionRootAttrs(block)}\` on the section root, or
|
|
7038
|
-
\`data-bcms-style=""\` plus \`style={...}\` from \`block.style\`.
|
|
7039
|
-
|
|
7040
|
-
|
|
7043
|
+
\`data-bcms-style=""\` plus \`style={...}\` from \`block.style\`. For \`upgrade-element-styles\` (field width, spacing, text handles)
|
|
7044
|
+
do the same with \`npx @bettercms-ai/convert@latest --upgrade-element-styles --root . --dry-run\`. Run \`--verify-styles\` again
|
|
7045
|
+
and restore what it lists (the marker, and the inline style from \`block.style\` or \`fieldAttrs\`, are allowed; changing a class
|
|
7046
|
+
or an existing style is not). Deploy, poll, call \`get_next_steps\` again, tell me what it still lists. Not listed: say so; invent no work.
|
|
7041
7047
|
11. Ask me whether to commit and push to my repository, commit only, or leave it uncommitted (unpushed, the
|
|
7042
7048
|
next rebuild from my repo drops it). Touch git only as I answer.`;
|
|
7043
7049
|
var FIELD_UI_PROMPT = {
|