sbuilder-mcp 0.99.0 → 0.100.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 +10 -0
- package/CHANGELOG.vi.md +10 -0
- package/README.md +1 -1
- package/README.vi.md +1 -1
- package/dist/catalog/deadkeys.generated.js +2 -2
- package/dist/catalog/elements.generated.js +7 -4
- package/dist/catalog/source.generated.js +2 -2
- package/dist/catalog/translations.generated.js +3 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,16 @@ 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.100.0] - 2026-10-29
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- Buttons and icons accept the `clear_cart` click action, which empties the whole cart, and `sb_event` offers it on buttons.
|
|
13
|
+
- `product` gains a translatable `summary` field.
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
- `sb_add` and `sb_set` seed a text dataset with `kind: "summary"` bound to `product.summary` instead of `product.title`.
|
|
17
|
+
- The catalog now lists `product.summary` among the binding sources.
|
|
18
|
+
|
|
9
19
|
## [0.99.0] - 2026-10-29
|
|
10
20
|
|
|
11
21
|
### Added
|
package/CHANGELOG.vi.md
CHANGED
|
@@ -6,6 +6,16 @@ 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.100.0] - 2026-10-29
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- Button và icon nhận click action `clear_cart` để xoá toàn bộ giỏ hàng, và `sb_event` đưa action này cho button.
|
|
13
|
+
- `product` có thêm trường dịch `summary`.
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
- `sb_add` và `sb_set` seed text dataset có `kind: "summary"` bind vào `product.summary` thay vì `product.title`.
|
|
17
|
+
- Catalog liệt kê thêm `product.summary` trong các nguồn binding.
|
|
18
|
+
|
|
9
19
|
## [0.99.0] - 2026-10-29
|
|
10
20
|
|
|
11
21
|
### Added
|
package/README.md
CHANGED
|
@@ -119,7 +119,7 @@ in this client: one would put the very key the platform exists to hold back into
|
|
|
119
119
|
| `sb_undo` | Undo / redo this session's writes — page and form edits and `sb_api_call` PUTs, each named by tool and target, the open page's by default (`all: true` for every page); a page is refused if someone else saved it since. The platform's versions and history (`sb_page_version`) outlive this process |
|
|
120
120
|
|
|
121
121
|
Twenty-eight tools, **919 API operations** (344 of the 429 writes carrying a body shape read
|
|
122
|
-
off the handler), 124 elements,
|
|
122
|
+
off the handler), 124 elements, 96 binding sources. `sb_api_find`
|
|
123
123
|
is an index rather than a tool per endpoint, so the tool list stays short while everything
|
|
124
124
|
the platform can do stays reachable — and operations added to the platform arrive with the
|
|
125
125
|
next `npm run codegen`.
|
package/README.vi.md
CHANGED
|
@@ -116,7 +116,7 @@ nhét ngược lại vào mọi bản cài.
|
|
|
116
116
|
| `sb_undo` | Hoàn tác / làm lại các thao tác ghi trong phiên — chỉnh sửa trang, form và PUT qua `sb_api_call`, mỗi mục ghi tên tool và đối tượng, mặc định của trang đang mở (`all: true` cho mọi trang); trang bị từ chối nếu người khác đã lưu sau đó. Version và history của nền tảng (`sb_page_version`) sống lâu hơn process này |
|
|
117
117
|
|
|
118
118
|
Hai mươi tám tool, **919 operation API** (344 trong 429 lệnh ghi có hình dạng body đọc thẳng
|
|
119
|
-
từ handler), 124 element,
|
|
119
|
+
từ handler), 124 element, 96 nguồn binding. `sb_api_find` là
|
|
120
120
|
một chỉ mục chứ không phải mỗi endpoint một tool, nên danh sách tool vẫn ngắn trong khi mọi
|
|
121
121
|
thứ nền tảng làm được vẫn với tới — và operation mới thêm bên nền tảng sẽ tự có sau lần
|
|
122
122
|
`npm run codegen` kế tiếp.
|
|
@@ -826,6 +826,7 @@ export const ELEMENTS = {
|
|
|
826
826
|
"cart_remove",
|
|
827
827
|
"cart_increment",
|
|
828
828
|
"cart_decrement",
|
|
829
|
+
"clear_cart",
|
|
829
830
|
"change_tab",
|
|
830
831
|
"open_dropdown",
|
|
831
832
|
"close_dropdown",
|
|
@@ -1461,6 +1462,7 @@ export const ELEMENTS = {
|
|
|
1461
1462
|
"cart_remove",
|
|
1462
1463
|
"cart_increment",
|
|
1463
1464
|
"cart_decrement",
|
|
1465
|
+
"clear_cart",
|
|
1464
1466
|
"change_tab",
|
|
1465
1467
|
"open_dropdown",
|
|
1466
1468
|
"close_dropdown",
|
|
@@ -29199,7 +29201,7 @@ export const ELEMENTS = {
|
|
|
29199
29201
|
"product|summary": [
|
|
29200
29202
|
{
|
|
29201
29203
|
"id": "bind-text",
|
|
29202
|
-
"source": "product.
|
|
29204
|
+
"source": "product.summary",
|
|
29203
29205
|
"field": "specials.boundText",
|
|
29204
29206
|
"target": {
|
|
29205
29207
|
"type": "product",
|
|
@@ -32597,9 +32599,9 @@ export const ELEMENTS = {
|
|
|
32597
32599
|
"animation",
|
|
32598
32600
|
"class_css"
|
|
32599
32601
|
],
|
|
32600
|
-
"description": "A store-bound text display for a product title, vendor, or description (config.kind). Renders escaped plain text for title/vendor, or the product's sanitized rich-text HTML for the description kind. For the description kind, a Compact display type clamps the text to config.descriptionLines with an optional \"show more / show less\" toggle. Owns no children; when placed under a product it binds to that product's live field, falling back to the seeded config text when unbound. Supports default / hover / active interaction states.",
|
|
32602
|
+
"description": "A store-bound text display for a product title, vendor, summary (the short description), or description (config.kind). Renders escaped plain text for title/vendor/summary, or the product's sanitized rich-text HTML for the description kind. For the description kind, a Compact display type clamps the text to config.descriptionLines with an optional \"show more / show less\" toggle. Owns no children; when placed under a product it binds to that product's live field, falling back to the seeded config text when unbound. Supports default / hover / active interaction states.",
|
|
32601
32603
|
"useWhen": [
|
|
32602
|
-
"Product title, vendor, or description text in a product layout",
|
|
32604
|
+
"Product title, vendor, short summary, or description text in a product layout",
|
|
32603
32605
|
"A long product description that should collapse to a few lines with a \"show more\" toggle",
|
|
32604
32606
|
"Product text that needs hover/active styling"
|
|
32605
32607
|
],
|
|
@@ -32609,7 +32611,7 @@ export const ELEMENTS = {
|
|
|
32609
32611
|
"Free-form author HTML/markup — the description kind renders only the product's own sanitized rich text, not arbitrary content"
|
|
32610
32612
|
],
|
|
32611
32613
|
"contentTips": [
|
|
32612
|
-
"Set config.kind to \"title\", \"vendor\", or \"description\"",
|
|
32614
|
+
"Set config.kind to \"title\", \"vendor\", \"summary\" (the product's one-line short description, plain text — the card line), or \"description\"",
|
|
32613
32615
|
"For a description, set config.descriptionDisplayType to \"Compact\" and config.descriptionLines to clamp it; enable specials.moreButtonEnabled for the toggle",
|
|
32614
32616
|
"Customise config.moreText / config.lessText and config.icon (the chevron) for the toggle",
|
|
32615
32617
|
"Style per state (default / hover / active) via the state switcher",
|
|
@@ -36363,6 +36365,7 @@ export const BINDING_SOURCES = [
|
|
|
36363
36365
|
"product.priceCents",
|
|
36364
36366
|
"product.ratingAverage",
|
|
36365
36367
|
"product.ratingCount",
|
|
36368
|
+
"product.summary",
|
|
36366
36369
|
"product.tags",
|
|
36367
36370
|
"product.title",
|
|
36368
36371
|
"product.url",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// GENERATED by scripts/gen-catalog.ts — do not edit by hand.
|
|
2
2
|
// The platform commit every other generated file here describes.
|
|
3
3
|
export const PLATFORM_SOURCE = {
|
|
4
|
-
"commit": "
|
|
5
|
-
"committedAt": "2026-10-
|
|
4
|
+
"commit": "69a6becbb8e36b80028b3b8c4ca1f92a4cc6d5bc",
|
|
5
|
+
"committedAt": "2026-10-29T15:59:30+07:00",
|
|
6
6
|
"dirty": false
|
|
7
7
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sbuilder-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.100.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",
|