sbuilder-mcp 0.111.2 → 0.111.3

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,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.111.3] - 2026-11-20
10
+
11
+ ### Added
12
+ - The element catalog adds `compareColor` for the struck compare price, which can be set per breakpoint on a price parent or on the `compare_price` child.
13
+ - The element catalog adds `valueColor` and `valueWeight` to style the chosen variant value apart from its label name.
14
+
15
+ ### Changed
16
+ - The element catalog is regenerated against web_builder v1.0.299, and cart-line variant labels now count as live binding sources.
17
+ - The icon guidance now describes `config.iconSize` as the per-breakpoint glyph size in px, and the `icon` element's `iconSize` is recognised as a live key.
18
+
9
19
  ## [0.111.2] - 2026-11-20
10
20
 
11
21
  ### Changed
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.111.3] - 2026-11-20
10
+
11
+ ### Added
12
+ - Danh mục phần tử có thêm `compareColor` để đổi màu giá so sánh bị gạch ngang, đặt được theo từng breakpoint trên phần tử cha của giá hoặc trên phần tử con `compare_price`.
13
+ - Danh mục phần tử có thêm `valueColor` và `valueWeight` để tạo kiểu cho giá trị biến thể đã chọn tách khỏi tên nhãn.
14
+
15
+ ### Changed
16
+ - Danh mục phần tử được tạo lại theo web_builder v1.0.299, và nhãn biến thể của dòng giỏ hàng giờ được tính là nguồn binding đang hoạt động.
17
+ - Hướng dẫn về icon giờ mô tả `config.iconSize` là kích thước glyph tính bằng px theo từng breakpoint, và `iconSize` của phần tử `icon` được nhận là key đang hoạt động.
18
+
9
19
  ## [0.111.2] - 2026-11-20
10
20
 
11
21
  ### Changed
package/README.md CHANGED
@@ -143,7 +143,7 @@ in this client: one would put the very key the platform exists to hold back into
143
143
  | `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 |
144
144
 
145
145
  Forty tools, **1011 API operations** (375 of the 466 writes carrying a body shape read
146
- off the handler), 125 elements, 97 binding sources. `sb_api_find`
146
+ off the handler), 125 elements, 98 binding sources. `sb_api_find`
147
147
  is an index rather than a tool per endpoint, so the tool list stays short while everything
148
148
  the platform can do stays reachable — and operations added to the platform arrive with the
149
149
  next `npm run codegen`.
package/README.vi.md CHANGED
@@ -139,7 +139,7 @@ nhét ngược lại vào mọi bản cài.
139
139
  | `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 |
140
140
 
141
141
  Bốn mươi tool, **1011 operation API** (375 trong 466 lệnh ghi có hình dạng body đọc thẳng
142
- từ handler), 125 element, 97 nguồn binding. `sb_api_find` là
142
+ từ handler), 125 element, 98 nguồn binding. `sb_api_find` là
143
143
  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
144
144
  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
145
145
  `npm run codegen` kế tiếp.
@@ -1,7 +1,7 @@
1
1
  export const DEAD_KEY_SOURCE = {
2
- "files": 7051,
3
- "identifiers": 120577,
4
- "seededKeys": 483,
2
+ "files": 6531,
3
+ "identifiers": 119322,
4
+ "seededKeys": 486,
5
5
  "dead": 0
6
6
  };
7
7
  /**
@@ -1629,7 +1629,7 @@ export const ELEMENTS = {
1629
1629
  "controls": [
1630
1630
  "icon",
1631
1631
  "icon_color",
1632
- "icon_size"
1632
+ "icon_size_bp"
1633
1633
  ]
1634
1634
  },
1635
1635
  {
@@ -1708,7 +1708,7 @@ export const ELEMENTS = {
1708
1708
  "size_bounds",
1709
1709
  "icon",
1710
1710
  "icon_color",
1711
- "icon_size",
1711
+ "icon_size_bp",
1712
1712
  "action",
1713
1713
  "icon_cart_badge",
1714
1714
  "padding",
@@ -1734,7 +1734,8 @@ export const ELEMENTS = {
1734
1734
  "As a clickable action — use a button with an icon instead"
1735
1735
  ],
1736
1736
  "contentTips": [
1737
- "Use a PascalCase RemixIcon name (e.g. \"StarFill\", \"CheckFill\", \"ArrowRightFill\") in specials.name"
1737
+ "Use a PascalCase RemixIcon name (e.g. \"StarFill\", \"CheckFill\", \"ArrowRightFill\") in specials.name",
1738
+ "config.iconSize is the GLYPH size in px (default 24) and is responsive: set it per breakpoint (e.g. 34 at desktop, 24 at mobile) to resize the glyph inside a box whose width/height also differ per breakpoint"
1738
1739
  ],
1739
1740
  "semantics": [
1740
1741
  "icon",
@@ -17609,6 +17610,7 @@ export const ELEMENTS = {
17609
17610
  "Use specials.displayType \"color\" for fashion-style colour pills (~30×17px, rounded, ringed when selected). The colours come from ONE site-level map, Settings → Variant colours (site settings `variantColors`: { \"<value>\": \"#hex\" }, matched trimmed and case-insensitively) — never put hex codes on the node. A value the map has no colour for renders as a label chip, so an unmapped value is still pickable",
17610
17611
  "In \"color\" mode size the pills per breakpoint with config.swatchWidth / swatchHeight / swatchRadius (px numbers; defaults 30 / 17 / 999) and the selected ring with config.swatchRing (a colour)",
17611
17612
  "Set config.variantLabel.showValue: true to show the chosen value beside the attribute name (\"Màu sắc: Trắng\"); the published page updates it as the shopper picks. Most useful with \"color\" / \"image\" swatches, whose values have no visible text",
17613
+ "The chosen value inherits the label's look. To style it apart (e.g. a grey #525252 name with a black value at weight 500), set config.valueColor / config.valueWeight (\"400\", \"500\", \"700\" or \"inherit\" — the values the inspector offers) on the LABEL satellite (the node config.variantLabelId points at), per breakpoint; \"inherit\" = same as the name",
17612
17614
  "Use specials.defaultVariant.enabled + values to pre-select a value per attribute",
17613
17615
  "A product CARD in a list (product-list / dataset card) should usually show only the colour axis: set config.showAttributes to that one attribute name (e.g. [\"Color\"] or [\"Màu sắc\"]) and leave Size for the product page buy box, which keeps showAttributes empty (= every attribute)",
17614
17616
  "config.showAttributes matches attribute names trimmed and case-insensitively, keeps the product order, and drops a name the product does not have",
@@ -17648,7 +17650,9 @@ export const ELEMENTS = {
17648
17650
  "textAlign": "left"
17649
17651
  },
17650
17652
  "config": {
17651
- "textGlobalStyle": "heading-6"
17653
+ "textGlobalStyle": "heading-6",
17654
+ "valueColor": "inherit",
17655
+ "valueWeight": "inherit"
17652
17656
  }
17653
17657
  },
17654
17658
  "inspector": [
@@ -17735,6 +17739,7 @@ export const ELEMENTS = {
17735
17739
  "Anywhere in a page tree — it is a style-holder, not a rendered element"
17736
17740
  ],
17737
17741
  "contentTips": [
17742
+ "config.valueColor / config.valueWeight style the chosen VALUE inside the label (\"Màu sắc: Trắng\", shown when the owner sets config.variantLabel.showValue) apart from the name, per breakpoint; the default \"inherit\" keeps it the same as the name",
17738
17743
  "Style the attribute labels by editing this node: its base style is the label look"
17739
17744
  ],
17740
17745
  "semantics": [
@@ -17969,7 +17974,8 @@ export const ELEMENTS = {
17969
17974
  "priceValue": "$0.00",
17970
17975
  "compareValue": "$0.00",
17971
17976
  "displayPriceId": "both",
17972
- "textGlobalStyle": "text-1"
17977
+ "textGlobalStyle": "text-1",
17978
+ "compareColor": "#7b7b7b"
17973
17979
  },
17974
17980
  "specials": {
17975
17981
  "htmlTag": "p"
@@ -27807,7 +27813,8 @@ export const ELEMENTS = {
27807
27813
  "label": "Price display",
27808
27814
  "controls": [
27809
27815
  "price_display",
27810
- "price_position"
27816
+ "price_position",
27817
+ "price_compare_color"
27811
27818
  ]
27812
27819
  },
27813
27820
  {
@@ -27836,6 +27843,7 @@ export const ELEMENTS = {
27836
27843
  "controls": [
27837
27844
  "text_global_style",
27838
27845
  "text_color",
27846
+ "price_compare_color",
27839
27847
  "text_style",
27840
27848
  "font_family",
27841
27849
  "font_size",
@@ -27922,6 +27930,7 @@ export const ELEMENTS = {
27922
27930
  "htmlTag",
27923
27931
  "price_display",
27924
27932
  "price_position",
27933
+ "price_compare_color",
27925
27934
  "width_select",
27926
27935
  "height_select",
27927
27936
  "size_bounds",
@@ -27964,7 +27973,8 @@ export const ELEMENTS = {
27964
27973
  "Set config.kind to \"prices\" to show one or both values, or \"price\" / \"compare_price\" for a single value",
27965
27974
  "When kind is \"prices\", use config.displayPriceId (\"price\" | \"compare_price\" | \"both\") to pick which values show",
27966
27975
  "Seed config.priceValue and config.compareValue with the formatted strings (\"$0.00\")",
27967
- "Style the price text on each CHILD through its Typography group; the parent styles the box only. The compare price is rendered struck-through and seeded muted (#7f7f7f)",
27976
+ "Style the price text on each CHILD through its Typography group; the parent styles the box only. The compare price is rendered struck-through and muted (#7b7b7b)",
27977
+ "The struck compare price ignores text color (its span carries its own grey) — recolour it with config.compareColor (per breakpoint, e.g. \"#e00000\" for a red sale). Set it on the parent to colour every child's compare value, or on the compare_price child alone",
27968
27978
  "config.position on the parent sets the axis (\"top\"/\"bottom\" stack vertically) and puts the compare value first for \"right\"/\"bottom\"",
27969
27979
  "Inside a cart-item row, displayPriceId \"both\" shows each line's price and its struck-through compare-at; the compare value hides itself on a line that saves nothing, so \"both\" is safe for a cart whose products mostly have no compare price"
27970
27980
  ],
@@ -36793,6 +36803,7 @@ export const BINDING_SOURCES = [
36793
36803
  "cartLine.lineTotalCents",
36794
36804
  "cartLine.quantity",
36795
36805
  "cartLine.variant",
36806
+ "cartLine.variantLabel",
36796
36807
  "category.description",
36797
36808
  "category.image",
36798
36809
  "category.title",
@@ -40629,7 +40640,8 @@ export const STATIC_SIZING = {
40629
40640
  ],
40630
40641
  "heading": [],
40631
40642
  "icon": [
40632
- "height"
40643
+ "height",
40644
+ "width"
40633
40645
  ],
40634
40646
  "image": [],
40635
40647
  "image-comparison": [
@@ -42214,7 +42226,8 @@ export const BASE_ONLY_CONFIG = [
42214
42226
  * breakpoint by the satellite CSS compiler as the --icon-size var.
42215
42227
  */
42216
42228
  export const BASE_ONLY_EXCEPTIONS = [
42217
- "quantity-button:iconSize"
42229
+ "quantity-button:iconSize",
42230
+ "icon:iconSize"
42218
42231
  ];
42219
42232
  /**
42220
42233
  * The ENTRANCE ANIMATION's vocabulary — config.animation, offered by most of
@@ -459,7 +459,8 @@ export const OVERLAY_SEEDS = {
459
459
  "priceValue": "$0.00",
460
460
  "compareValue": "0.00",
461
461
  "displayPriceId": "both",
462
- "textGlobalStyle": "text-1"
462
+ "textGlobalStyle": "text-1",
463
+ "compareColor": "#7b7b7b"
463
464
  },
464
465
  "specials": {
465
466
  "htmlTag": "p"
@@ -1461,7 +1462,8 @@ export const OVERLAY_SEEDS = {
1461
1462
  "priceValue": "$0.00",
1462
1463
  "compareValue": "$0.00",
1463
1464
  "displayPriceId": "both",
1464
- "textGlobalStyle": "text-1"
1465
+ "textGlobalStyle": "text-1",
1466
+ "compareColor": "#7b7b7b"
1465
1467
  },
1466
1468
  "specials": {
1467
1469
  "htmlTag": "p"
@@ -1529,7 +1531,8 @@ export const OVERLAY_SEEDS = {
1529
1531
  "priceValue": "$0.00",
1530
1532
  "compareValue": "$0.00",
1531
1533
  "displayPriceId": "both",
1532
- "textGlobalStyle": "text-1"
1534
+ "textGlobalStyle": "text-1",
1535
+ "compareColor": "#7b7b7b"
1533
1536
  },
1534
1537
  "specials": {
1535
1538
  "htmlTag": "p"
@@ -1597,7 +1600,8 @@ export const OVERLAY_SEEDS = {
1597
1600
  "priceValue": "$0.00",
1598
1601
  "compareValue": "$0.00",
1599
1602
  "displayPriceId": "both",
1600
- "textGlobalStyle": "text-1"
1603
+ "textGlobalStyle": "text-1",
1604
+ "compareColor": "#7b7b7b"
1601
1605
  },
1602
1606
  "specials": {
1603
1607
  "htmlTag": "p"
@@ -1757,7 +1761,9 @@ export const OVERLAY_SEEDS = {
1757
1761
  "textAlign": "left"
1758
1762
  },
1759
1763
  "config": {
1760
- "textGlobalStyle": "heading-6"
1764
+ "textGlobalStyle": "heading-6",
1765
+ "valueColor": "inherit",
1766
+ "valueWeight": "inherit"
1761
1767
  },
1762
1768
  "specials": {},
1763
1769
  "responsive": {},
@@ -2579,7 +2585,8 @@ export const CART_SEEDS = {
2579
2585
  "priceValue": "$0.00",
2580
2586
  "compareValue": "0.00",
2581
2587
  "displayPriceId": "both",
2582
- "textGlobalStyle": "text-1"
2588
+ "textGlobalStyle": "text-1",
2589
+ "compareColor": "#7b7b7b"
2583
2590
  },
2584
2591
  "specials": {
2585
2592
  "htmlTag": "p"
@@ -3466,7 +3473,8 @@ export const CART_SEEDS = {
3466
3473
  "priceValue": "$0.00",
3467
3474
  "compareValue": "0.00",
3468
3475
  "displayPriceId": "both",
3469
- "textGlobalStyle": "text-1"
3476
+ "textGlobalStyle": "text-1",
3477
+ "compareColor": "#7b7b7b"
3470
3478
  },
3471
3479
  "specials": {
3472
3480
  "htmlTag": "p"
@@ -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": "828de7dd35d1b3fac8c7ff1d8504360cc683dfdd",
5
- "committedAt": "2026-11-20T16:57:17+07:00",
4
+ "commit": "2cc5436b7058e00ca944707093d93e1f29cd5a20",
5
+ "committedAt": "2026-11-20T19:03:54+07:00",
6
6
  "dirty": false
7
7
  };
@@ -2127,7 +2127,8 @@ export const STORE_PAGE_SEEDS = {
2127
2127
  "priceValue": "$0.00",
2128
2128
  "compareValue": "$0.00",
2129
2129
  "displayPriceId": "both",
2130
- "textGlobalStyle": "text-1"
2130
+ "textGlobalStyle": "text-1",
2131
+ "compareColor": "#7b7b7b"
2131
2132
  },
2132
2133
  "specials": {
2133
2134
  "htmlTag": "p"
@@ -2195,7 +2196,8 @@ export const STORE_PAGE_SEEDS = {
2195
2196
  "priceValue": "$0.00",
2196
2197
  "compareValue": "$0.00",
2197
2198
  "displayPriceId": "both",
2198
- "textGlobalStyle": "text-1"
2199
+ "textGlobalStyle": "text-1",
2200
+ "compareColor": "#7b7b7b"
2199
2201
  },
2200
2202
  "specials": {
2201
2203
  "htmlTag": "p"
@@ -2263,7 +2265,8 @@ export const STORE_PAGE_SEEDS = {
2263
2265
  "priceValue": "$0.00",
2264
2266
  "compareValue": "$0.00",
2265
2267
  "displayPriceId": "both",
2266
- "textGlobalStyle": "text-1"
2268
+ "textGlobalStyle": "text-1",
2269
+ "compareColor": "#7b7b7b"
2267
2270
  },
2268
2271
  "specials": {
2269
2272
  "htmlTag": "p"
@@ -2423,7 +2426,9 @@ export const STORE_PAGE_SEEDS = {
2423
2426
  "textAlign": "left"
2424
2427
  },
2425
2428
  "config": {
2426
- "textGlobalStyle": "heading-6"
2429
+ "textGlobalStyle": "heading-6",
2430
+ "valueColor": "inherit",
2431
+ "valueWeight": "inherit"
2427
2432
  },
2428
2433
  "specials": {},
2429
2434
  "responsive": {},
@@ -3424,7 +3429,8 @@ export const STORE_PAGE_SEEDS = {
3424
3429
  "priceValue": "$0.00",
3425
3430
  "compareValue": "$0.00",
3426
3431
  "displayPriceId": "both",
3427
- "textGlobalStyle": "text-1"
3432
+ "textGlobalStyle": "text-1",
3433
+ "compareColor": "#7b7b7b"
3428
3434
  },
3429
3435
  "specials": {
3430
3436
  "htmlTag": "p"
@@ -4147,7 +4153,8 @@ export const STORE_PAGE_SEEDS = {
4147
4153
  "priceValue": "$0.00",
4148
4154
  "compareValue": "$0.00",
4149
4155
  "displayPriceId": "both",
4150
- "textGlobalStyle": "text-1"
4156
+ "textGlobalStyle": "text-1",
4157
+ "compareColor": "#7b7b7b"
4151
4158
  },
4152
4159
  "specials": {
4153
4160
  "htmlTag": "p"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbuilder-mcp",
3
- "version": "0.111.2",
3
+ "version": "0.111.3",
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",