sbuilder-mcp 0.56.0 → 0.57.0
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/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,12 @@ All notable changes to this project are documented in this file.
|
|
|
6
6
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
7
7
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
8
8
|
|
|
9
|
+
## [0.57.0] - 2026-09-15
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- `sb_review` now reports a `categoryPage` readiness gap when a store has product categories but no published page of the `category` type, since `/collections/{slug}` falls back to that template and every collection link, including the ones in the site's own menu, 404s without it.
|
|
13
|
+
- `sb_review` now reports an `articleTemplate` readiness gap when a site has written blog articles but no published page of the `post` type, since `/blog/{slug}` falls back to that template and every article link, including the ones a listing page carries, 404s without it.
|
|
14
|
+
|
|
9
15
|
## [0.56.0] - 2026-09-15
|
|
10
16
|
|
|
11
17
|
### Added
|
package/CHANGELOG.vi.md
CHANGED
|
@@ -6,6 +6,12 @@ Mọi thay đổi đáng chú ý của dự án được ghi lại trong file n
|
|
|
6
6
|
Định dạng dựa trên [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
7
7
|
và dự án tuân theo [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
8
8
|
|
|
9
|
+
## [0.57.0] - 2026-09-15
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- `sb_review` giờ báo lỗi sẵn sàng `categoryPage` khi store có danh mục sản phẩm nhưng chưa có trang loại `category` nào được publish, vì `/collections/{slug}` sẽ dùng template đó, và mọi liên kết danh mục — kể cả những liên kết trong menu của chính site — sẽ trả về 404 nếu thiếu.
|
|
13
|
+
- `sb_review` giờ báo lỗi sẵn sàng `articleTemplate` khi site đã viết bài blog nhưng chưa có trang loại `post` nào được publish, vì `/blog/{slug}` sẽ dùng template đó, và mọi liên kết bài viết — kể cả những liên kết trong trang danh sách bài viết — sẽ trả về 404 nếu thiếu.
|
|
14
|
+
|
|
9
15
|
## [0.56.0] - 2026-09-15
|
|
10
16
|
|
|
11
17
|
### Added
|
|
@@ -24,7 +24,7 @@ export async function gatherReadiness(ctx, siteId, pageNodes) {
|
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
const site = encodeURIComponent(siteId);
|
|
27
|
-
const [pageList, gateways, shipping, globals, productList, categoryList, pageLinks, formList] = await Promise.all([
|
|
27
|
+
const [pageList, gateways, shipping, globals, productList, categoryList, pageLinks, formList, articleList] = await Promise.all([
|
|
28
28
|
get(`/api/sites/${site}/pages`),
|
|
29
29
|
get(`/api/sites/${site}/payment-gateways`),
|
|
30
30
|
get(`/api/sites/${site}/shipping-methods`),
|
|
@@ -48,6 +48,10 @@ export async function gatherReadiness(ctx, siteId, pageNodes) {
|
|
|
48
48
|
// blindness is what let one page quietly become the site's whole account
|
|
49
49
|
// area, which is the shape `mergedAuthPage` reports.
|
|
50
50
|
get(`/api/sites/${site}/forms`),
|
|
51
|
+
// THE ARTICLES, for the same reason the products are read: /blog/{slug}
|
|
52
|
+
// resolves to the site's `post` template, so a site that has written
|
|
53
|
+
// articles and has no template 404s every one of them.
|
|
54
|
+
get(`/api/sites/${site}/articles?limit=1`),
|
|
51
55
|
]);
|
|
52
56
|
// A gateway counts only when it is BOTH enabled and configured — the editor's
|
|
53
57
|
// `live` getter also filters by the store's currency, which is a narrowing:
|
|
@@ -94,5 +98,8 @@ export async function gatherReadiness(ctx, siteId, pageNodes) {
|
|
|
94
98
|
categories,
|
|
95
99
|
categoryPageLinks,
|
|
96
100
|
forms: formList?.forms ?? null,
|
|
101
|
+
articles: Array.isArray(articleList?.articles)
|
|
102
|
+
? (articleList?.total ?? articleList.articles.length)
|
|
103
|
+
: null,
|
|
97
104
|
};
|
|
98
105
|
}
|
|
@@ -178,6 +178,31 @@ export function readinessGaps(input) {
|
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
|
+
// ARTICLES WRITTEN AND NOTHING TO RENDER THEM IN.
|
|
182
|
+
//
|
|
183
|
+
// `post` is the ARTICLE template: /blog/{slug} resolves to the site's
|
|
184
|
+
// published page of that type, so a site that has written articles and has
|
|
185
|
+
// none 404s every single one — including the links its own listing page
|
|
186
|
+
// carries, which is the page that makes the articles findable in the first
|
|
187
|
+
// place.
|
|
188
|
+
//
|
|
189
|
+
// ASKED OF EVERY SITE, above the store gate: a blog is not a commerce
|
|
190
|
+
// feature, and a brochure site with a news section has exactly this problem.
|
|
191
|
+
// Gated on having WRITTEN something, so a site with no blog hears nothing.
|
|
192
|
+
if (pages && (input.articles ?? 0) > 0 && !published(pages, 'post')) {
|
|
193
|
+
const draft = drafted(pages, 'post');
|
|
194
|
+
gaps.push({
|
|
195
|
+
id: 'articleTemplate',
|
|
196
|
+
draft,
|
|
197
|
+
problem: `This site has ${input.articles} article${input.articles === 1 ? '' : 's'} and no ` +
|
|
198
|
+
'published page of the "post" type. /blog/{slug} needs one, so every article 404s — ' +
|
|
199
|
+
'including the links a listing page carries.',
|
|
200
|
+
fix: draft
|
|
201
|
+
? 'Publish the article template page that already exists.'
|
|
202
|
+
: 'Create a page of type "post" and publish it. It opens seeded with the cover, ' +
|
|
203
|
+
'headline, date and body an article cannot be read without.',
|
|
204
|
+
});
|
|
205
|
+
}
|
|
181
206
|
if (!isStore(input))
|
|
182
207
|
return gaps;
|
|
183
208
|
if (pages && !published(pages, 'checkout')) {
|
|
@@ -219,6 +244,36 @@ export function readinessGaps(input) {
|
|
|
219
244
|
: 'Create a page of type "product" and publish it.',
|
|
220
245
|
});
|
|
221
246
|
}
|
|
247
|
+
// AND THE SAME HOLE ON THE OTHER SIDE OF THE CATALOGUE.
|
|
248
|
+
//
|
|
249
|
+
// `/collections/{slug}` resolves the same way /products/{slug} does — through
|
|
250
|
+
// PublishedForEntity, to the category's own page or to the DEFAULT TEMPLATE
|
|
251
|
+
// for the `category` type — so a store with categories and no published one
|
|
252
|
+
// 404s every collection link, including the ones its own menu carries.
|
|
253
|
+
//
|
|
254
|
+
// `categoryScope` below is a different defect and assumes this page EXISTS:
|
|
255
|
+
// it reports a template SHARED across categories, which is the complaint you
|
|
256
|
+
// can only make once there is a template to share. With none, every URL fails
|
|
257
|
+
// outright and the scope question does not arise.
|
|
258
|
+
//
|
|
259
|
+
// GATED ON HAVING CATEGORIES, unlike productPage. A store can genuinely sell
|
|
260
|
+
// without collections — one shop, one flat catalogue — and telling it to build
|
|
261
|
+
// a template for a thing it does not use is the nag this file keeps warning
|
|
262
|
+
// about. Silent when the count could not be read, like everything else here.
|
|
263
|
+
if (pages && (input.categories ?? 0) > 0 && !published(pages, 'category')) {
|
|
264
|
+
const draft = drafted(pages, 'category');
|
|
265
|
+
gaps.push({
|
|
266
|
+
id: 'categoryPage',
|
|
267
|
+
draft,
|
|
268
|
+
problem: `This store has ${input.categories} categor${input.categories === 1 ? 'y' : 'ies'} and no ` +
|
|
269
|
+
'published page of the "category" type. /collections/{slug} needs one, so every ' +
|
|
270
|
+
'collection link 404s — including the ones in the site\'s own menu.',
|
|
271
|
+
fix: draft
|
|
272
|
+
? 'Publish the category template page that already exists.'
|
|
273
|
+
: 'Create a page of type "category" and publish it. It opens seeded with the collection ' +
|
|
274
|
+
'title and a product repeater.',
|
|
275
|
+
});
|
|
276
|
+
}
|
|
222
277
|
// NOTHING TO SELL. Checked before the delivery option, because a shipping
|
|
223
278
|
// method for an empty catalogue is furniture.
|
|
224
279
|
if (input.products) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sbuilder-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.57.0",
|
|
4
4
|
"description": "MCP server that designs and operates a Store Builder site — pages, data, theme and publish — through the platform's own API and live-edit protocol.",
|
|
5
5
|
"mcpName": "io.github.vuluu2k/sbuilder-mcp",
|
|
6
6
|
"type": "module",
|