sbuilder-mcp 0.38.1 → 0.38.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/CHANGELOG.md +5 -0
- package/CHANGELOG.vi.md +5 -0
- package/dist/catalog/elements.generated.js +2 -1
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,11 @@ 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.38.2] - 2026-09-11
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- sb_traits_for's config_values for list-dataset now lists a sixth config.collectionType value, page_collection, which renders the collection the page itself resolves to (the one a /collections/{slug} URL names), so one collection template can serve every collection explicitly instead of relying on all_products to narrow itself.
|
|
13
|
+
|
|
9
14
|
## [0.38.1] - 2026-09-11
|
|
10
15
|
|
|
11
16
|
### Fixed
|
package/CHANGELOG.vi.md
CHANGED
|
@@ -6,6 +6,11 @@ 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.38.2] - 2026-09-11
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- config_values của sb_traits_for dành cho list-dataset giờ liệt kê thêm giá trị thứ sáu của config.collectionType, page_collection, giá trị này render đúng collection mà trang tự phân giải tới (collection được đặt tên bởi một URL /collections/{slug}), nhờ đó một collection template có thể phục vụ mọi collection một cách tường minh thay vì dựa vào all_products tự thu hẹp phạm vi.
|
|
13
|
+
|
|
9
14
|
## [0.38.1] - 2026-09-11
|
|
10
15
|
|
|
11
16
|
### Fixed
|
|
@@ -32993,7 +32993,7 @@ export const ELEMENTS = {
|
|
|
32993
32993
|
"Always add exactly one dataset-block child as the repeated item template; every row clones that exact structure and styling",
|
|
32994
32994
|
"The dataset-block template — and every dataset node inside it — must carry the SAME config.datasetSource as this repeater. Each node reads its OWN key, so a collection list whose card omits it leaves that card on the product default: it binds product.url, no product context reaches a collection row, and the card publishes with no link, so clicking it does nothing",
|
|
32995
32995
|
"config.datasetSource picks the ENTITY: \"product\" for a product list, \"category\" for a collection list. It is what derives the node's binding target (product::product_list / category::collection_list)",
|
|
32996
|
-
"Product lists: config.collectionType \"all_products\" renders the whole catalog, \"collection\" renders the one named by config.collectionId, \"related\" renders the PAGE PRODUCT's neighbours — the products sharing one of its collections, minus itself",
|
|
32996
|
+
"Product lists: config.collectionType \"page_collection\" renders THE COLLECTION THE PAGE IS (the one /collections/{slug} named) so a single collection template serves every collection, \"all_products\" renders the whole catalog and narrows to the page collection on a collection template, \"collection\" renders the one named by config.collectionId, \"related\" renders the PAGE PRODUCT's neighbours — the products sharing one of its collections, minus itself",
|
|
32997
32997
|
"Use \"related\" for a cross-sell shelf on a product page (\"Sản phẩm liên quan\" / \"You may also like\"). It reads no collectionId — its axis is whatever collections the page product is filed under — and it renders nothing on a page that names no product, so pair it with an emptyStateId if the section must never be blank",
|
|
32998
32998
|
"Collection lists: config.collectionListType \"all_collections\" renders every collection; \"custom_collections\" renders specials.collectionIds, in that order",
|
|
32999
32999
|
"config.quantity caps how many records render; config.itemsPerRow is the row size (grid columns / slide page size) and style.gap is the space between cards — both are per-breakpoint",
|
|
@@ -36284,6 +36284,7 @@ export const CONFIG_VALUES = {
|
|
|
36284
36284
|
"all_products",
|
|
36285
36285
|
"collection",
|
|
36286
36286
|
"featured",
|
|
36287
|
+
"page_collection",
|
|
36287
36288
|
"related",
|
|
36288
36289
|
"slot"
|
|
36289
36290
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sbuilder-mcp",
|
|
3
|
-
"version": "0.38.
|
|
3
|
+
"version": "0.38.2",
|
|
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",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"start": "node dist/index.js",
|
|
29
29
|
"smoke": "node dist/smoke.js",
|
|
30
30
|
"test": "vitest run",
|
|
31
|
+
"test:browser": "SB_BROWSER_TEST=1 vitest run",
|
|
31
32
|
"codegen": "tsx scripts/gen-catalog.ts",
|
|
32
33
|
"prepublishOnly": "npm run build && npm run smoke",
|
|
33
34
|
"release": "node scripts/release.mjs",
|