@bettercms-ai/mcp 0.64.0 → 0.64.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 +5 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5119,9 +5119,8 @@ ${notes.join("\n")}` : summary, created);
|
|
|
5119
5119
|
}
|
|
5120
5120
|
const nextFields = [...existingFields];
|
|
5121
5121
|
nextFields.splice(at, 0, toField(args));
|
|
5122
|
-
const
|
|
5123
|
-
|
|
5124
|
-
});
|
|
5122
|
+
const input = { fields: nextFields };
|
|
5123
|
+
const updated = model.optimisticVersion !== void 0 ? await client.updateModel(modelId, input, { ifMatch: model.optimisticVersion }) : await client.updateModel(modelId, input);
|
|
5125
5124
|
return ok(
|
|
5126
5125
|
`Added field '${args.key}' to '${updated.name}'${args.after ? ` after '${args.after}'` : ""}. Model now has ${updated.fields.length} field(s).`,
|
|
5127
5126
|
updated
|
|
@@ -6780,6 +6779,9 @@ Importance orders a screen: required fields first, then array order.
|
|
|
6780
6779
|
fieldset its fields still name.
|
|
6781
6780
|
- \`row_member_type\`, \`row_member_count\`, \`row_member_control\` \u2014 the row rule.
|
|
6782
6781
|
- \`pair_split\` \u2014 a button's label and href in different fieldsets.
|
|
6782
|
+
- \`cta_pair\` \u2014 a NEW text field beside a link keyed like it plus \`-href\` (\`hero-span-go\` + \`hero-a-go-href\`): one
|
|
6783
|
+
call to action. Add ONE \`type: "button"\` field (value \`{ label, href }\`); on a component, point both props
|
|
6784
|
+
at one button block.
|
|
6783
6785
|
- \`ui.icon\` or \`ui.itemLabel\` on a leaf; an icon name not in \`bettercms://icons/dock\`.
|
|
6784
6786
|
- \`layout_grid\` \u2014 a grid with no image or file child. \`layout_table\` \u2014 more than 3 columns, or a
|
|
6785
6787
|
column that is not a scalar.
|