sbuilder-mcp 0.113.2 → 0.115.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 CHANGED
@@ -6,6 +6,22 @@ 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.115.0] - 2026-11-26
10
+
11
+ ### Added
12
+ - `sb_form` `action: "create"` accepts per-field limits and custom error messages: `requiredText` and `invalidText` (except on `form-timeslot`), `minChecked` and `maxChecked` for checkbox, `acceptedDates`, `minDate` and `maxDate` for date, and `maxFileMB` (1-25) for file, refusing wrong-type keys and bad values before any request.
13
+
14
+ ### Changed
15
+ - The bundled platform catalog is regenerated from web_builder v1.0.342.
16
+
17
+ ## [0.114.0] - 2026-11-25
18
+
19
+ ### Added
20
+ - `sb_form` lists a site's forms, creates a blank or custom form from a field list in one call, merges form settings with notify-address reporting, and reads submissions paged and filtered, with writes defaulting to `dry_run: true`.
21
+
22
+ ### Changed
23
+ - `sb_page_open`'s "no field document yet" error now also points at `sb_form` `action: "create"`.
24
+
9
25
  ## [0.113.2] - 2026-11-25
10
26
 
11
27
  ### Fixed
package/CHANGELOG.vi.md CHANGED
@@ -6,6 +6,22 @@ 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.115.0] - 2026-11-26
10
+
11
+ ### Added
12
+ - `sb_form` `action: "create"` nhận giới hạn theo từng trường và thông báo lỗi tùy chỉnh: `requiredText` và `invalidText` (trừ `form-timeslot`), `minChecked` và `maxChecked` cho checkbox, `acceptedDates`, `minDate` và `maxDate` cho date, và `maxFileMB` (1-25) cho file, đồng thời từ chối khóa sai kiểu và giá trị không hợp lệ trước khi gửi bất kỳ request nào.
13
+
14
+ ### Changed
15
+ - Catalog nền tảng đi kèm được tạo lại từ web_builder v1.0.342.
16
+
17
+ ## [0.114.0] - 2026-11-25
18
+
19
+ ### Added
20
+ - `sb_form` liệt kê các form của site, tạo form trống hoặc tùy chỉnh từ danh sách trường trong một lần gọi, gộp cài đặt form kèm báo cáo địa chỉ nhận thông báo, và đọc các submission có phân trang và lọc, trong đó các thao tác ghi mặc định `dry_run: true`.
21
+
22
+ ### Changed
23
+ - Lỗi "no field document yet" của `sb_page_open` giờ cũng chỉ tới `sb_form` `action: "create"`.
24
+
9
25
  ## [0.113.2] - 2026-11-25
10
26
 
11
27
  ### Fixed
package/README.md CHANGED
@@ -125,6 +125,7 @@ in this client: one would put the very key the platform exists to hold back into
125
125
  | `sb_code` | The site's custom code files (tracking pixels, analytics, chat widgets, site CSS; html/css/js/scss/ts injected, json/text served at `/_wb/code/<name>`) for every page or one — list, create, merge-update, remove; scss/ts compile on write and report `compile_error` |
126
126
  | `sb_function` | The site's backend functions — server-side TypeScript/JavaScript served at `/_wb/fn/<slug>` with the site's sealed secrets, collections and `fetch` (a `_` slug is an importable module) — list, read, create, merge-update, remove, test-run (counts toward the monthly quota), the run log, this month's usage, and write-only secrets; a failed build reports `compile_error` |
127
127
  | `sb_collection` | The site's data tables (collections) — create, rename, delete tables; add, edit, reorder and delete typed fields (text, number, integer, select, tags, reference, gallery…); list, read, add, merge-edit, delete, move and reorder records; CSV export and import; upsert by external id. An edit keeps the row's published flag and sends its `rev` |
128
+ | `sb_form` | The site's forms — list them; create a blank one or one from a field list (text, number, select, radio, checkbox, date, calendar, file, timeslot); merge settings (notify recipients, after-submit redirect, save into a data table), with a new recipient put on the verification ledger and reported as waiting; read responses with filters and paging |
128
129
  | `sb_publish` | Compile the draft into the live page (cascades to shared globals), report which revision went live, and with `verify` check the origin is serving it; lists other pages with unpublished drafts and never-published pages (`publish_drafts` publishes both) |
129
130
  | `sb_page_state` | Which of a page's three copies is which — the DRAFT the editor canvas shows, the PUBLISHED row the storefront serves, and this session's — plus whether the editor will render the canvas BLANK, and where the recovery points are |
130
131
  | `sb_page_repair` | Rename a page root that is not `ROOT` (left by older seeds) so every editor build draws it — one page or the whole site |
@@ -142,7 +143,7 @@ in this client: one would put the very key the platform exists to hold back into
142
143
  | `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
144
  | `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
145
 
145
- Forty tools, **1013 API operations** (376 of the 467 writes carrying a body shape read
146
+ Forty-three tools, **1016 API operations** (376 of the 468 writes carrying a body shape read
146
147
  off the handler), 125 elements, 99 binding sources. `sb_api_find`
147
148
  is an index rather than a tool per endpoint, so the tool list stays short while everything
148
149
  the platform can do stays reachable — and operations added to the platform arrive with the
package/README.vi.md CHANGED
@@ -121,6 +121,7 @@ nhét ngược lại vào mọi bản cài.
121
121
  | `sb_code` | Các file mã tuỳ chỉnh của site (pixel theo dõi, analytics, widget chat, CSS toàn site; html/css/js/scss/ts được chèn, json/text phục vụ tại `/_wb/code/<name>`) cho mọi trang hoặc một trang — liệt kê, tạo, cập nhật gộp, xoá; scss/ts biên dịch lúc ghi và báo `compile_error` |
122
122
  | `sb_function` | Các backend function của site — TypeScript/JavaScript chạy phía server tại `/_wb/fn/<slug>` với secret đã niêm phong, collection và `fetch` của site (slug bắt đầu bằng `_` là module để import) — liệt kê, đọc, tạo, cập nhật gộp, xoá, chạy thử (tính vào hạn mức tháng), nhật ký chạy, lượng dùng tháng này, và secret chỉ-ghi; build lỗi thì báo `compile_error` |
123
123
  | `sb_collection` | Các bảng dữ liệu (collection) của site — tạo, đổi tên, xoá bảng; thêm, sửa, sắp xếp và xoá trường có kiểu (text, number, integer, select, tags, reference, gallery…); liệt kê, đọc, thêm, sửa gộp, xoá, di chuyển và sắp xếp bản ghi; xuất và nhập CSV; upsert theo external id. Lệnh sửa giữ nguyên trạng thái đăng và gửi kèm `rev` của bản ghi |
124
+ | `sb_form` | Các biểu mẫu của site — liệt kê; tạo biểu mẫu trống hoặc từ danh sách trường (text, number, select, radio, checkbox, date, calendar, file, timeslot); gộp cài đặt (người nhận thông báo, chuyển trang sau khi gửi, lưu vào bảng dữ liệu), người nhận mới được đưa vào danh sách xác minh và báo là đang chờ; đọc lượt gửi có lọc và phân trang |
124
125
  | `sb_publish` | Biên dịch bản nháp thành trang live (lan sang global dùng chung), báo bản nào đã lên live, và với `verify` kiểm origin đã phục vụ đúng bản đó chưa; liệt kê các trang khác còn nháp chưa publish và các trang chưa từng publish (`publish_drafts` publish luôn cả hai) |
125
126
  | `sb_page_state` | Ba bản sao của một trang, bản nào là bản nào — bản NHÁP canvas editor hiển thị, dòng PUBLISHED storefront phục vụ, và bản phiên này giữ — kèm dự báo editor có render canvas TRẮNG không, và các điểm phục hồi nằm ở đâu |
126
127
  | `sb_page_repair` | Đổi gốc trang khác `ROOT` (do seed cũ để lại) về `ROOT` để mọi bản editor vẽ được — một trang hoặc cả site |
@@ -138,7 +139,7 @@ nhét ngược lại vào mọi bản cài.
138
139
  | `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
140
  | `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
141
 
141
- Bốn mươi tool, **1013 operation API** (376 trong 467 lệnh ghi có hình dạng body đọc thẳng
142
+ Bốn mươi ba tool, **1016 operation API** (376 trong 468 lệnh ghi có hình dạng body đọc thẳng
142
143
  từ handler), 125 element, 99 nguồn binding. `sb_api_find` là
143
144
  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
145
  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,5 +1,5 @@
1
1
  export const SWAGGER_SOURCE = {
2
- "operations": 1013,
2
+ "operations": 1016,
3
3
  "definitions": 445,
4
4
  "bodyCarrying": 493,
5
5
  "bodyUndescribed": 122,
@@ -14393,6 +14393,27 @@ export const API_OPERATIONS = [
14393
14393
  "bodyRef": "internal_integrations_rest.detectRequest",
14394
14394
  "credential": "siteScoped"
14395
14395
  },
14396
+ {
14397
+ "id": "get:/api/sites/{siteId}/integrations/health",
14398
+ "method": "GET",
14399
+ "path": "/api/sites/{siteId}/integrations/health",
14400
+ "tags": [
14401
+ "integrations"
14402
+ ],
14403
+ "summary": "Is this store's measurement complete?",
14404
+ "params": [
14405
+ {
14406
+ "name": "siteId",
14407
+ "in": "path",
14408
+ "required": true,
14409
+ "type": "string",
14410
+ "description": "Site ID"
14411
+ }
14412
+ ],
14413
+ "bodyDescribed": false,
14414
+ "bodyRef": null,
14415
+ "credential": "siteScoped"
14416
+ },
14396
14417
  {
14397
14418
  "id": "get:/api/sites/{siteId}/integrations/{id}",
14398
14419
  "method": "GET",
@@ -14498,6 +14519,34 @@ export const API_OPERATIONS = [
14498
14519
  "bodyRef": "github_com_webbuilder_server_internal_integrations.Integration",
14499
14520
  "credential": "siteScoped"
14500
14521
  },
14522
+ {
14523
+ "id": "post:/api/sites/{siteId}/integrations/{id}/test",
14524
+ "method": "POST",
14525
+ "path": "/api/sites/{siteId}/integrations/{id}/test",
14526
+ "tags": [
14527
+ "integrations"
14528
+ ],
14529
+ "summary": "Send one test server event for one integration (\"Gửi thử\")",
14530
+ "params": [
14531
+ {
14532
+ "name": "siteId",
14533
+ "in": "path",
14534
+ "required": true,
14535
+ "type": "string",
14536
+ "description": "Site ID"
14537
+ },
14538
+ {
14539
+ "name": "id",
14540
+ "in": "path",
14541
+ "required": true,
14542
+ "type": "string",
14543
+ "description": "Integration ID"
14544
+ }
14545
+ ],
14546
+ "bodyDescribed": false,
14547
+ "bodyRef": null,
14548
+ "credential": "siteScoped"
14549
+ },
14501
14550
  {
14502
14551
  "id": "get:/api/sites/{siteId}/inventory",
14503
14552
  "method": "GET",
@@ -14834,6 +14883,41 @@ export const API_OPERATIONS = [
14834
14883
  "bodyRef": null,
14835
14884
  "credential": "siteScoped"
14836
14885
  },
14886
+ {
14887
+ "id": "get:/api/sites/{siteId}/loyalty/members",
14888
+ "method": "GET",
14889
+ "path": "/api/sites/{siteId}/loyalty/members",
14890
+ "tags": [
14891
+ "loyalty"
14892
+ ],
14893
+ "summary": "The program's members, highest balance first",
14894
+ "params": [
14895
+ {
14896
+ "name": "siteId",
14897
+ "in": "path",
14898
+ "required": true,
14899
+ "type": "string",
14900
+ "description": "Site ID"
14901
+ },
14902
+ {
14903
+ "name": "limit",
14904
+ "in": "query",
14905
+ "required": false,
14906
+ "type": "integer",
14907
+ "description": "Page size (1-100, default 50)"
14908
+ },
14909
+ {
14910
+ "name": "offset",
14911
+ "in": "query",
14912
+ "required": false,
14913
+ "type": "integer",
14914
+ "description": "Rows to skip"
14915
+ }
14916
+ ],
14917
+ "bodyDescribed": false,
14918
+ "bodyRef": null,
14919
+ "credential": "siteScoped"
14920
+ },
14837
14921
  {
14838
14922
  "id": "get:/api/sites/{siteId}/loyalty/{customerId}",
14839
14923
  "method": "GET",
@@ -20016,6 +20100,13 @@ export const API_OPERATIONS = [
20016
20100
  "type": "boolean",
20017
20101
  "description": "Only sales still waiting: not cancelled and not fulfilled"
20018
20102
  },
20103
+ {
20104
+ "name": "number",
20105
+ "in": "query",
20106
+ "required": false,
20107
+ "type": "string",
20108
+ "description": "One sale by its number, exact: 1001 or #1001 (the receipt barcode)"
20109
+ },
20019
20110
  {
20020
20111
  "name": "limit",
20021
20112
  "in": "query",
@@ -43241,6 +43332,10 @@ export const API_DEFINITIONS = {
43241
43332
  "priceCents": {
43242
43333
  "type": "integer"
43243
43334
  },
43335
+ "sku": {
43336
+ "description": "SKU is the product's own code (products.Product.SKU) → the PRESENT-ONLY\n`product.sku` key (render.ProductSKUContext). Empty = no key.",
43337
+ "type": "string"
43338
+ },
43244
43339
  "slug": {
43245
43340
  "type": "string"
43246
43341
  },