sbuilder-mcp 0.111.0 → 0.111.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 +13 -0
- package/CHANGELOG.vi.md +13 -0
- package/dist/catalog/api.generated.js +65 -13
- package/dist/catalog/deadkeys.generated.js +3 -3
- package/dist/catalog/elements.generated.js +15 -1
- package/dist/catalog/overlays.generated.js +4 -0
- package/dist/catalog/shapes.generated.js +13 -7
- package/dist/catalog/source.generated.js +2 -2
- package/dist/catalog/storepages.generated.js +4 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,19 @@ 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.2] - 2026-11-20
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
- The API catalog is regenerated against web_builder v1.0.293, so `sb_api_find` and `sb_api_call` now describe the body of POST and PUT `/api/sites/{siteId}/integrations`, including valid providers, `config.measurementId`, `containerId` and `pixelId`, pasted snippets, `?dryRun=true` validation, and the `invalid_tracking_id` error.
|
|
13
|
+
|
|
14
|
+
## [0.111.1] - 2026-11-20
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
- The `product-variants` element gains `maxVisible` to collapse extra colour or image values into a "+N" cell, `preselect` to choose a first value, and `pickAfter` with `pickAddedId` to show the added-to-cart pop-up instead of the cart drawer after a pick.
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
- The element catalog is regenerated against web_builder v1.0.292.
|
|
21
|
+
|
|
9
22
|
## [0.111.0] - 2026-11-20
|
|
10
23
|
|
|
11
24
|
### Added
|
package/CHANGELOG.vi.md
CHANGED
|
@@ -6,6 +6,19 @@ 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.2] - 2026-11-20
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
- Danh mục API được tạo lại theo web_builder v1.0.293, nên `sb_api_find` và `sb_api_call` giờ mô tả body của POST và PUT `/api/sites/{siteId}/integrations`, gồm provider hợp lệ, `config.measurementId`, `containerId` và `pixelId`, đoạn mã dán nguyên, kiểm tra bằng `?dryRun=true`, và lỗi `invalid_tracking_id`.
|
|
13
|
+
|
|
14
|
+
## [0.111.1] - 2026-11-20
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
- Phần tử `product-variants` có thêm `maxVisible` để gộp các giá trị màu hoặc ảnh dư thành ô "+N", `preselect` để chọn sẵn giá trị đầu tiên, và `pickAfter` cùng `pickAddedId` để hiện pop-up đã thêm vào giỏ thay cho ngăn kéo giỏ hàng sau khi chọn.
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
- Danh mục phần tử được tạo lại theo web_builder v1.0.292.
|
|
21
|
+
|
|
9
22
|
## [0.111.0] - 2026-11-20
|
|
10
23
|
|
|
11
24
|
### Added
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export const SWAGGER_SOURCE = {
|
|
2
2
|
"operations": 1011,
|
|
3
3
|
"definitions": 444,
|
|
4
|
-
"bodyCarrying":
|
|
4
|
+
"bodyCarrying": 492,
|
|
5
5
|
"bodyUndescribed": 122,
|
|
6
6
|
"generatedFrom": "server/docs/swagger.json"
|
|
7
7
|
};
|
|
@@ -14260,7 +14260,7 @@ export const API_OPERATIONS = [
|
|
|
14260
14260
|
"tags": [
|
|
14261
14261
|
"integrations"
|
|
14262
14262
|
],
|
|
14263
|
-
"summary": "List or connect site integrations",
|
|
14263
|
+
"summary": "List or connect site integrations (GA4, GTM, Meta Pixel, TikTok Pixel)",
|
|
14264
14264
|
"params": [
|
|
14265
14265
|
{
|
|
14266
14266
|
"name": "siteId",
|
|
@@ -14268,10 +14268,24 @@ export const API_OPERATIONS = [
|
|
|
14268
14268
|
"required": true,
|
|
14269
14269
|
"type": "string",
|
|
14270
14270
|
"description": "Site ID"
|
|
14271
|
+
},
|
|
14272
|
+
{
|
|
14273
|
+
"name": "dryRun",
|
|
14274
|
+
"in": "query",
|
|
14275
|
+
"required": false,
|
|
14276
|
+
"type": "boolean",
|
|
14277
|
+
"description": "true = validate and clean only, nothing saved (POST only)"
|
|
14278
|
+
},
|
|
14279
|
+
{
|
|
14280
|
+
"name": "integration",
|
|
14281
|
+
"in": "body",
|
|
14282
|
+
"required": false,
|
|
14283
|
+
"type": "object",
|
|
14284
|
+
"description": "Provider + config to connect (POST only); id/siteId/timestamps are server-owned"
|
|
14271
14285
|
}
|
|
14272
14286
|
],
|
|
14273
|
-
"bodyDescribed":
|
|
14274
|
-
"bodyRef":
|
|
14287
|
+
"bodyDescribed": true,
|
|
14288
|
+
"bodyRef": "github_com_webbuilder_server_internal_integrations.Integration",
|
|
14275
14289
|
"credential": "siteScoped"
|
|
14276
14290
|
},
|
|
14277
14291
|
{
|
|
@@ -14281,7 +14295,7 @@ export const API_OPERATIONS = [
|
|
|
14281
14295
|
"tags": [
|
|
14282
14296
|
"integrations"
|
|
14283
14297
|
],
|
|
14284
|
-
"summary": "List or connect site integrations",
|
|
14298
|
+
"summary": "List or connect site integrations (GA4, GTM, Meta Pixel, TikTok Pixel)",
|
|
14285
14299
|
"params": [
|
|
14286
14300
|
{
|
|
14287
14301
|
"name": "siteId",
|
|
@@ -14289,10 +14303,24 @@ export const API_OPERATIONS = [
|
|
|
14289
14303
|
"required": true,
|
|
14290
14304
|
"type": "string",
|
|
14291
14305
|
"description": "Site ID"
|
|
14306
|
+
},
|
|
14307
|
+
{
|
|
14308
|
+
"name": "dryRun",
|
|
14309
|
+
"in": "query",
|
|
14310
|
+
"required": false,
|
|
14311
|
+
"type": "boolean",
|
|
14312
|
+
"description": "true = validate and clean only, nothing saved (POST only)"
|
|
14313
|
+
},
|
|
14314
|
+
{
|
|
14315
|
+
"name": "integration",
|
|
14316
|
+
"in": "body",
|
|
14317
|
+
"required": false,
|
|
14318
|
+
"type": "object",
|
|
14319
|
+
"description": "Provider + config to connect (POST only); id/siteId/timestamps are server-owned"
|
|
14292
14320
|
}
|
|
14293
14321
|
],
|
|
14294
|
-
"bodyDescribed":
|
|
14295
|
-
"bodyRef":
|
|
14322
|
+
"bodyDescribed": true,
|
|
14323
|
+
"bodyRef": "github_com_webbuilder_server_internal_integrations.Integration",
|
|
14296
14324
|
"credential": "siteScoped"
|
|
14297
14325
|
},
|
|
14298
14326
|
{
|
|
@@ -14317,10 +14345,17 @@ export const API_OPERATIONS = [
|
|
|
14317
14345
|
"required": true,
|
|
14318
14346
|
"type": "string",
|
|
14319
14347
|
"description": "Integration ID"
|
|
14348
|
+
},
|
|
14349
|
+
{
|
|
14350
|
+
"name": "integration",
|
|
14351
|
+
"in": "body",
|
|
14352
|
+
"required": false,
|
|
14353
|
+
"type": "object",
|
|
14354
|
+
"description": "Provider, enabled, config (PUT only)"
|
|
14320
14355
|
}
|
|
14321
14356
|
],
|
|
14322
|
-
"bodyDescribed":
|
|
14323
|
-
"bodyRef":
|
|
14357
|
+
"bodyDescribed": true,
|
|
14358
|
+
"bodyRef": "github_com_webbuilder_server_internal_integrations.Integration",
|
|
14324
14359
|
"credential": "siteScoped"
|
|
14325
14360
|
},
|
|
14326
14361
|
{
|
|
@@ -14345,10 +14380,17 @@ export const API_OPERATIONS = [
|
|
|
14345
14380
|
"required": true,
|
|
14346
14381
|
"type": "string",
|
|
14347
14382
|
"description": "Integration ID"
|
|
14383
|
+
},
|
|
14384
|
+
{
|
|
14385
|
+
"name": "integration",
|
|
14386
|
+
"in": "body",
|
|
14387
|
+
"required": false,
|
|
14388
|
+
"type": "object",
|
|
14389
|
+
"description": "Provider, enabled, config (PUT only)"
|
|
14348
14390
|
}
|
|
14349
14391
|
],
|
|
14350
|
-
"bodyDescribed":
|
|
14351
|
-
"bodyRef":
|
|
14392
|
+
"bodyDescribed": true,
|
|
14393
|
+
"bodyRef": "github_com_webbuilder_server_internal_integrations.Integration",
|
|
14352
14394
|
"credential": "siteScoped"
|
|
14353
14395
|
},
|
|
14354
14396
|
{
|
|
@@ -14373,10 +14415,17 @@ export const API_OPERATIONS = [
|
|
|
14373
14415
|
"required": true,
|
|
14374
14416
|
"type": "string",
|
|
14375
14417
|
"description": "Integration ID"
|
|
14418
|
+
},
|
|
14419
|
+
{
|
|
14420
|
+
"name": "integration",
|
|
14421
|
+
"in": "body",
|
|
14422
|
+
"required": false,
|
|
14423
|
+
"type": "object",
|
|
14424
|
+
"description": "Provider, enabled, config (PUT only)"
|
|
14376
14425
|
}
|
|
14377
14426
|
],
|
|
14378
|
-
"bodyDescribed":
|
|
14379
|
-
"bodyRef":
|
|
14427
|
+
"bodyDescribed": true,
|
|
14428
|
+
"bodyRef": "github_com_webbuilder_server_internal_integrations.Integration",
|
|
14380
14429
|
"credential": "siteScoped"
|
|
14381
14430
|
},
|
|
14382
14431
|
{
|
|
@@ -33162,6 +33211,7 @@ export const API_DEFINITIONS = {
|
|
|
33162
33211
|
"type": "object",
|
|
33163
33212
|
"properties": {
|
|
33164
33213
|
"config": {
|
|
33214
|
+
"description": "Config holds the one id: measurementId (G-…), containerId (GTM-…) or pixelId (Meta: digits); a pasted snippet or URL is accepted and the id extracted.",
|
|
33165
33215
|
"type": "object",
|
|
33166
33216
|
"additionalProperties": {
|
|
33167
33217
|
"type": "string"
|
|
@@ -33171,12 +33221,14 @@ export const API_DEFINITIONS = {
|
|
|
33171
33221
|
"type": "string"
|
|
33172
33222
|
},
|
|
33173
33223
|
"enabled": {
|
|
33224
|
+
"description": "Enabled false keeps the id but puts no tag on the storefront.",
|
|
33174
33225
|
"type": "boolean"
|
|
33175
33226
|
},
|
|
33176
33227
|
"id": {
|
|
33177
33228
|
"type": "string"
|
|
33178
33229
|
},
|
|
33179
33230
|
"provider": {
|
|
33231
|
+
"description": "Provider is one of google_analytics, google_tag_manager, facebook_pixel, tiktok_pixel.",
|
|
33180
33232
|
"type": "string"
|
|
33181
33233
|
},
|
|
33182
33234
|
"siteId": {
|
|
@@ -17169,6 +17169,10 @@ export const ELEMENTS = {
|
|
|
17169
17169
|
"optionGap": "",
|
|
17170
17170
|
"showAttributes": [],
|
|
17171
17171
|
"pickAction": "select",
|
|
17172
|
+
"preselect": "none",
|
|
17173
|
+
"pickAfter": "open_cart",
|
|
17174
|
+
"pickAddedId": "",
|
|
17175
|
+
"maxVisible": 0,
|
|
17172
17176
|
"swatchWidth": 30,
|
|
17173
17177
|
"swatchHeight": 17,
|
|
17174
17178
|
"swatchRadius": 999,
|
|
@@ -17451,8 +17455,12 @@ export const ELEMENTS = {
|
|
|
17451
17455
|
"label": "Variant display",
|
|
17452
17456
|
"controls": [
|
|
17453
17457
|
"variant_display",
|
|
17458
|
+
"variant_max_visible",
|
|
17454
17459
|
"variant_show_attributes",
|
|
17455
|
-
"
|
|
17460
|
+
"variant_preselect",
|
|
17461
|
+
"variant_pick_action",
|
|
17462
|
+
"variant_pick_after",
|
|
17463
|
+
"pickAddedId"
|
|
17456
17464
|
]
|
|
17457
17465
|
},
|
|
17458
17466
|
{
|
|
@@ -17558,8 +17566,12 @@ export const ELEMENTS = {
|
|
|
17558
17566
|
"displayType",
|
|
17559
17567
|
"defaultVariant",
|
|
17560
17568
|
"variant_display",
|
|
17569
|
+
"variant_max_visible",
|
|
17561
17570
|
"variant_show_attributes",
|
|
17571
|
+
"variant_preselect",
|
|
17562
17572
|
"variant_pick_action",
|
|
17573
|
+
"variant_pick_after",
|
|
17574
|
+
"pickAddedId",
|
|
17563
17575
|
"variant_label",
|
|
17564
17576
|
"variant_option",
|
|
17565
17577
|
"variant_color_width",
|
|
@@ -17601,6 +17613,8 @@ export const ELEMENTS = {
|
|
|
17601
17613
|
"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)",
|
|
17602
17614
|
"config.showAttributes matches attribute names trimmed and case-insensitively, keeps the product order, and drops a name the product does not have",
|
|
17603
17615
|
"config.pickAction: \"add_to_cart\" turns every value into a quick-add button — clicking a size selects it AND adds that variant (quantity 1) to the cart, keeping any colour already picked elsewhere on the card. Use it for a product-CARD quick add (showAttributes [\"Size\"], specials.displayType \"image_label\"), usually inside a flex-block overlay with config.revealOnHover true; keep the default \"select\" on a product page buy box, where an Add to cart button does the adding",
|
|
17616
|
+
"After a pick-to-add the cart drawer opens (config.pickAfter \"open_cart\", the default). Set config.pickAfter: \"show_added\" with config.pickAddedId = the overlay id of the site's added-to-cart pop-up to show that small card instead; an empty or missing pop-up falls back to the drawer, so the add is never silent",
|
|
17617
|
+
"config.maxVisible (a count, PER BREAKPOINT; 0 = all) caps how many values a \"color\" / \"image\" / \"image_label\" row shows — the rest collapse into one \"+N\" cell (Coolmate cards: 4 colour pills then \"+1\"). Set it on base and override it in responsive.mobile for a phone. A pre-selected value past the limit stays visible (it takes the last slot). The \"+N\" text uses the product-variant-option satellite's typography. Ignored by \"select\"",
|
|
17604
17618
|
"Sold-out values are crossed out automatically on the published page (both modes); in \"add_to_cart\" mode they cannot be clicked. Do not hand-style or hide them",
|
|
17605
17619
|
"Style the attribute labels through the product-variant-label satellite and the options through the product-variant-option satellite",
|
|
17606
17620
|
"Do not add children — the blocks, labels and options are rendered internally"
|
|
@@ -1685,6 +1685,10 @@ export const OVERLAY_SEEDS = {
|
|
|
1685
1685
|
"optionGap": "",
|
|
1686
1686
|
"showAttributes": [],
|
|
1687
1687
|
"pickAction": "select",
|
|
1688
|
+
"preselect": "none",
|
|
1689
|
+
"pickAfter": "open_cart",
|
|
1690
|
+
"pickAddedId": "",
|
|
1691
|
+
"maxVisible": 0,
|
|
1688
1692
|
"swatchWidth": 30,
|
|
1689
1693
|
"swatchHeight": 17,
|
|
1690
1694
|
"swatchRadius": 999,
|
|
@@ -4,7 +4,7 @@ export const SHAPE_SOURCE = {
|
|
|
4
4
|
"fromHandlers": 363,
|
|
5
5
|
"fromSwaggerOnly": 12,
|
|
6
6
|
"withReadOnly": 29,
|
|
7
|
-
"structsRead":
|
|
7
|
+
"structsRead": 3873
|
|
8
8
|
};
|
|
9
9
|
export const REQUEST_SHAPES = {
|
|
10
10
|
"post:/api/ai/credits": {
|
|
@@ -5399,15 +5399,18 @@ export const REQUEST_SHAPES = {
|
|
|
5399
5399
|
},
|
|
5400
5400
|
{
|
|
5401
5401
|
"name": "provider",
|
|
5402
|
-
"type": "string"
|
|
5402
|
+
"type": "string",
|
|
5403
|
+
"note": "Provider is one of google_analytics, google_tag_manager, facebook_pixel, tiktok_pixel."
|
|
5403
5404
|
},
|
|
5404
5405
|
{
|
|
5405
5406
|
"name": "enabled",
|
|
5406
|
-
"type": "boolean"
|
|
5407
|
+
"type": "boolean",
|
|
5408
|
+
"note": "Enabled false keeps the id but puts no tag on the storefront."
|
|
5407
5409
|
},
|
|
5408
5410
|
{
|
|
5409
5411
|
"name": "config",
|
|
5410
|
-
"type": "{ [string]: string }"
|
|
5412
|
+
"type": "{ [string]: string }",
|
|
5413
|
+
"note": "Config holds the one id: measurementId (G-…), containerId (GTM-…) or pixelId (Meta: digits); a pasted snippet or URL is accepted and the id extracted."
|
|
5411
5414
|
},
|
|
5412
5415
|
{
|
|
5413
5416
|
"name": "createdAt",
|
|
@@ -5439,15 +5442,18 @@ export const REQUEST_SHAPES = {
|
|
|
5439
5442
|
},
|
|
5440
5443
|
{
|
|
5441
5444
|
"name": "provider",
|
|
5442
|
-
"type": "string"
|
|
5445
|
+
"type": "string",
|
|
5446
|
+
"note": "Provider is one of google_analytics, google_tag_manager, facebook_pixel, tiktok_pixel."
|
|
5443
5447
|
},
|
|
5444
5448
|
{
|
|
5445
5449
|
"name": "enabled",
|
|
5446
|
-
"type": "boolean"
|
|
5450
|
+
"type": "boolean",
|
|
5451
|
+
"note": "Enabled false keeps the id but puts no tag on the storefront."
|
|
5447
5452
|
},
|
|
5448
5453
|
{
|
|
5449
5454
|
"name": "config",
|
|
5450
|
-
"type": "{ [string]: string }"
|
|
5455
|
+
"type": "{ [string]: string }",
|
|
5456
|
+
"note": "Config holds the one id: measurementId (G-…), containerId (GTM-…) or pixelId (Meta: digits); a pasted snippet or URL is accepted and the id extracted."
|
|
5451
5457
|
},
|
|
5452
5458
|
{
|
|
5453
5459
|
"name": "createdAt",
|
|
@@ -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-11-
|
|
4
|
+
"commit": "828de7dd35d1b3fac8c7ff1d8504360cc683dfdd",
|
|
5
|
+
"committedAt": "2026-11-20T16:57:17+07:00",
|
|
6
6
|
"dirty": false
|
|
7
7
|
};
|
|
@@ -2351,6 +2351,10 @@ export const STORE_PAGE_SEEDS = {
|
|
|
2351
2351
|
"optionGap": "",
|
|
2352
2352
|
"showAttributes": [],
|
|
2353
2353
|
"pickAction": "select",
|
|
2354
|
+
"preselect": "none",
|
|
2355
|
+
"pickAfter": "open_cart",
|
|
2356
|
+
"pickAddedId": "",
|
|
2357
|
+
"maxVisible": 0,
|
|
2354
2358
|
"swatchWidth": 30,
|
|
2355
2359
|
"swatchHeight": 17,
|
|
2356
2360
|
"swatchRadius": 999,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sbuilder-mcp",
|
|
3
|
-
"version": "0.111.
|
|
3
|
+
"version": "0.111.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",
|