sbuilder-mcp 0.111.3 → 0.111.5

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,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.5] - 2026-11-20
10
+
11
+ ### Changed
12
+ - The element catalog is regenerated against web_builder v1.0.302, and the collection list guidance now says `collectionListType` `page_collections` lists a leaf collection's siblings (the parent's children).
13
+
14
+ ## [0.111.4] - 2026-11-20
15
+
16
+ ### Added
17
+ - The API catalog adds `POST /api/sites/{siteId}/integrations/detect`, so `sb_api_find` and `sb_api_call` can recognise the trackers in a pasted snippet, URL or bare id through its `text` body field.
18
+
19
+ ### Changed
20
+ - The API catalog is regenerated against web_builder v1.0.301, and the integrations provider list now includes `openai_pixel` for ChatGPT Ads.
21
+
9
22
  ## [0.111.3] - 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.5] - 2026-11-20
10
+
11
+ ### Changed
12
+ - Danh mục phần tử được tạo lại theo web_builder v1.0.302, và hướng dẫn về danh sách bộ sưu tập giờ nêu rõ `collectionListType` `page_collections` liệt kê các bộ sưu tập cùng cấp (con của bộ sưu tập cha) khi trang là một bộ sưu tập lá.
13
+
14
+ ## [0.111.4] - 2026-11-20
15
+
16
+ ### Added
17
+ - Danh mục API có thêm `POST /api/sites/{siteId}/integrations/detect`, giúp `sb_api_find` và `sb_api_call` nhận diện mã theo dõi trong đoạn snippet, URL hoặc id trần được dán vào qua trường body `text`.
18
+
19
+ ### Changed
20
+ - Danh mục API được tạo lại theo web_builder v1.0.301, và danh sách provider của integrations giờ có thêm `openai_pixel` cho ChatGPT Ads.
21
+
9
22
  ## [0.111.3] - 2026-11-20
10
23
 
11
24
  ### Added
package/README.md CHANGED
@@ -142,7 +142,7 @@ in this client: one would put the very key the platform exists to hold back into
142
142
  | `sb_store` | Run a store flow that must happen in a fixed order — `checkout` (the four writes that make a working one), `checkout_sync` (the store's current payment and delivery methods into every existing order form, checkout page republished), `form` (any of the platform's 17 templates with its own field document), `chrome` (one shared header or footer on a real site menu — site name linked home, desktop menu, mobile drawer, search, cart and account icons), `menu` (a menu node bound to the site's menu, its links resolved), `overlay_attach` (a pop-up or quick view on the open page), `cart` (the site's cart drawer, when it has none; `relocalize` puts an existing one in the site's language) and `app` (a built-in app plus the pages it needs), `global_attach` / `global_detach` (put an EXISTING shared section on the open page, or take it off), `global_promote` (make a section on the page a NEW shared section) and `template_save` (save a section as a reusable template) |
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
- Forty tools, **1011 API operations** (375 of the 466 writes carrying a body shape read
145
+ Forty tools, **1012 API operations** (376 of the 467 writes carrying a body shape read
146
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
package/README.vi.md CHANGED
@@ -138,7 +138,7 @@ nhét ngược lại vào mọi bản cài.
138
138
  | `sb_store` | Chạy một luồng cửa hàng bắt buộc đúng thứ tự — `checkout` (bốn lệnh ghi tạo nên trang thanh toán), `checkout_sync` (đưa phương thức thanh toán và giao hàng hiện tại vào mọi form đặt hàng đã có, publish lại trang thanh toán), `form` (một trong 17 template của nền tảng kèm field document của nó), `chrome` (một header hoặc footer dùng chung trên menu thật của site — tên site dẫn về trang chủ, menu desktop, drawer mobile, ô tìm kiếm, icon giỏ hàng và tài khoản), `menu` (một node menu bind vào menu của site, link đã phân giải), `overlay_attach` (một pop-up hay quick view trên trang đang mở), `cart` (ngăn giỏ hàng của site, khi chưa có; `relocalize` đưa ngăn giỏ đã có về ngôn ngữ của site), `app` (một app dựng sẵn kèm những trang nó cần), và `global_attach` / `global_detach` (đặt một section dùng chung ĐÃ CÓ lên trang đang mở, hoặc gỡ ra), `global_promote` (biến một section trên trang thành section dùng chung MỚI) và `template_save` (lưu một section làm mẫu dùng lạ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
- Bốn mươi tool, **1011 operation API** (375 trong 466 lệnh ghi có hình dạng body đọc thẳng
141
+ Bốn mươi tool, **1012 operation API** (376 trong 467 lệnh ghi có hình dạng body đọc thẳng
142
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
@@ -1,7 +1,7 @@
1
1
  export const SWAGGER_SOURCE = {
2
- "operations": 1011,
3
- "definitions": 444,
4
- "bodyCarrying": 492,
2
+ "operations": 1012,
3
+ "definitions": 445,
4
+ "bodyCarrying": 493,
5
5
  "bodyUndescribed": 122,
6
6
  "generatedFrom": "server/docs/swagger.json"
7
7
  };
@@ -14323,6 +14323,34 @@ export const API_OPERATIONS = [
14323
14323
  "bodyRef": "github_com_webbuilder_server_internal_integrations.Integration",
14324
14324
  "credential": "siteScoped"
14325
14325
  },
14326
+ {
14327
+ "id": "post:/api/sites/{siteId}/integrations/detect",
14328
+ "method": "POST",
14329
+ "path": "/api/sites/{siteId}/integrations/detect",
14330
+ "tags": [
14331
+ "integrations"
14332
+ ],
14333
+ "summary": "Recognise the trackers in a pasted snippet",
14334
+ "params": [
14335
+ {
14336
+ "name": "siteId",
14337
+ "in": "path",
14338
+ "required": true,
14339
+ "type": "string",
14340
+ "description": "Site ID"
14341
+ },
14342
+ {
14343
+ "name": "body",
14344
+ "in": "body",
14345
+ "required": true,
14346
+ "type": "object",
14347
+ "description": "The pasted text"
14348
+ }
14349
+ ],
14350
+ "bodyDescribed": true,
14351
+ "bodyRef": "internal_integrations_rest.detectRequest",
14352
+ "credential": "siteScoped"
14353
+ },
14326
14354
  {
14327
14355
  "id": "get:/api/sites/{siteId}/integrations/{id}",
14328
14356
  "method": "GET",
@@ -33228,7 +33256,7 @@ export const API_DEFINITIONS = {
33228
33256
  "type": "string"
33229
33257
  },
33230
33258
  "provider": {
33231
- "description": "Provider is one of google_analytics, google_tag_manager, facebook_pixel, tiktok_pixel.",
33259
+ "description": "Provider is one of google_analytics, google_tag_manager, facebook_pixel, tiktok_pixel, openai_pixel.",
33232
33260
  "type": "string"
33233
33261
  },
33234
33262
  "siteId": {
@@ -39966,6 +39994,15 @@ export const API_DEFINITIONS = {
39966
39994
  }
39967
39995
  }
39968
39996
  },
39997
+ "internal_integrations_rest.detectRequest": {
39998
+ "type": "object",
39999
+ "properties": {
40000
+ "text": {
40001
+ "description": "Text is whatever the merchant pasted: one or several vendor snippets, a URL or a bare id.",
40002
+ "type": "string"
40003
+ }
40004
+ }
40005
+ },
39969
40006
  "internal_orders_public.quoteRequest": {
39970
40007
  "type": "object",
39971
40008
  "properties": {
@@ -1,6 +1,6 @@
1
1
  export const DEAD_KEY_SOURCE = {
2
- "files": 6531,
3
- "identifiers": 119322,
2
+ "files": 6536,
3
+ "identifiers": 119403,
4
4
  "seededKeys": 486,
5
5
  "dead": 0
6
6
  };
@@ -35802,7 +35802,7 @@ export const ELEMENTS = {
35802
35802
  "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",
35803
35803
  "Article lists: config.articleSourceType \"page_category\" renders THE BLOG CATEGORY THE PAGE IS (the one /blog-categories/{slug} named) so a single blog template serves every category — off a blog template it shows every article; \"category\" filters by config.articleCategoryId (the \"all_articles\" sentinel means no filter, and on a blog template it narrows to the page category anyway); \"slot\" renders a curated shelf, the rows filed by hand under config.relationSlotKey",
35804
35804
  "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",
35805
- "Collection lists: config.collectionListType \"page_collections\" renders THE SUB-COLLECTIONS OF THE COLLECTION THE PAGE IS (the one /collections/{slug} named), so a single collection template draws every collection's browse grid — off a collection template it shows every collection instead; \"all_collections\" renders every collection; \"custom_collections\" renders specials.collectionIds, in that order",
35805
+ "Collection lists: config.collectionListType \"page_collections\" renders THE SUB-COLLECTIONS OF THE COLLECTION THE PAGE IS (the one /collections/{slug} named), so a single collection template draws every collection's browse grid; on a LEAF collection it lists its siblings (the parent's children) — off a collection template it shows every collection instead; \"all_collections\" renders every collection; \"custom_collections\" renders specials.collectionIds, in that order",
35806
35806
  "config.quantity caps how many records render and, under a loadingMode, is the PAGE SIZE; it is BASE-only — one value for every breakpoint, never per-breakpoint. A Data list (datasetSource \"record\") pages at most 50 records per page. config.itemsPerRow is the row size (grid columns / slide page size) and style.gap is the space between cards — both are per-breakpoint",
35807
35807
  "A Data list (datasetSource \"record\") nested inside another Data list's row can show ONLY the child records pointing at that row: set config.recordRelationField to the field id (fld_<16hex>) of a \"reference\" field in the nested list's own collection (e.g. RoomType.hotel inside a Hotels list). BASE-only. Such a list is never paged (loadingMode is ignored), its card may also bind the enclosing row's fields, and outside a record-list row it shows its empty state, never all records",
35808
35808
  "A Data list can carry config.recordAggregates (BASE-only, ≤4): [{key, recordCollectionId (child collection), recordRelationField (child reference field → this collection), op \"min\"|\"max\"|\"count\", recordField (child number/integer field, \"\" for count), where: [{recordField, op:\"gte\", param, per?}], whenNone \"hide\"|\"show\"}]. Each row then binds record.agg.<key> / record.money.agg.<key> (e.g. a hotel's cheapest room that fits: min nightly price where capacity × rooms ≥ guests). Visitors send params as f.record.param.<name>=<int>, filter as f.record.agg.<key>=..3000000, sort as s.<node>=agg.<key>_asc. Not availability",
@@ -1,10 +1,10 @@
1
1
  export const SHAPE_SOURCE = {
2
- "writeOperations": 466,
3
- "shaped": 375,
4
- "fromHandlers": 363,
2
+ "writeOperations": 467,
3
+ "shaped": 376,
4
+ "fromHandlers": 364,
5
5
  "fromSwaggerOnly": 12,
6
6
  "withReadOnly": 29,
7
- "structsRead": 3873
7
+ "structsRead": 3874
8
8
  };
9
9
  export const REQUEST_SHAPES = {
10
10
  "post:/api/ai/credits": {
@@ -5400,7 +5400,7 @@ export const REQUEST_SHAPES = {
5400
5400
  {
5401
5401
  "name": "provider",
5402
5402
  "type": "string",
5403
- "note": "Provider is one of google_analytics, google_tag_manager, facebook_pixel, tiktok_pixel."
5403
+ "note": "Provider is one of google_analytics, google_tag_manager, facebook_pixel, tiktok_pixel, openai_pixel."
5404
5404
  },
5405
5405
  {
5406
5406
  "name": "enabled",
@@ -5443,7 +5443,7 @@ export const REQUEST_SHAPES = {
5443
5443
  {
5444
5444
  "name": "provider",
5445
5445
  "type": "string",
5446
- "note": "Provider is one of google_analytics, google_tag_manager, facebook_pixel, tiktok_pixel."
5446
+ "note": "Provider is one of google_analytics, google_tag_manager, facebook_pixel, tiktok_pixel, openai_pixel."
5447
5447
  },
5448
5448
  {
5449
5449
  "name": "enabled",
@@ -5473,6 +5473,17 @@ export const REQUEST_SHAPES = {
5473
5473
  "updatedAt"
5474
5474
  ]
5475
5475
  },
5476
+ "post:/api/sites/{siteId}/integrations/detect": {
5477
+ "fields": [
5478
+ {
5479
+ "name": "text",
5480
+ "type": "string",
5481
+ "note": "Text is whatever the merchant pasted: one or several vendor snippets, a URL or a bare id."
5482
+ }
5483
+ ],
5484
+ "source": "go",
5485
+ "goType": "detectRequest"
5486
+ },
5476
5487
  "post:/api/sites/{siteId}/locations": {
5477
5488
  "fields": [
5478
5489
  {
@@ -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": "2cc5436b7058e00ca944707093d93e1f29cd5a20",
5
- "committedAt": "2026-11-20T19:03:54+07:00",
4
+ "commit": "ae8d9595a401c8b0eb3d774bea3a459d43871342",
5
+ "committedAt": "2026-11-20T23:23:01+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.111.3",
3
+ "version": "0.111.5",
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",