sbuilder-mcp 0.114.0 → 0.116.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 +17 -0
- package/CHANGELOG.vi.md +17 -0
- package/README.md +1 -1
- package/README.vi.md +1 -1
- package/dist/catalog/api.generated.js +96 -1
- package/dist/catalog/checkout.generated.js +8703 -2093
- package/dist/catalog/deadkeys.generated.js +3 -3
- package/dist/catalog/elements.generated.js +73 -16
- package/dist/catalog/shapes.generated.js +2 -2
- package/dist/catalog/source.generated.js +2 -2
- package/dist/catalog/translations.generated.js +115 -16
- package/dist/tools/form.js +52 -1
- package/dist/tools/page.js +1 -1
- package/dist/tools/store.js +8 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,23 @@ 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.116.0] - 2026-11-26
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- `sb_form` accepts `requiredText` on `form-timeslot` fields, while `invalidText` is still refused there.
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
- `sb_store` `action: "form"` and the checkout seed insert the English form template on an English site, while any other or unset locale keeps the existing text.
|
|
16
|
+
- The bundled platform catalog is regenerated from web_builder v1.0.344.
|
|
17
|
+
|
|
18
|
+
## [0.115.0] - 2026-11-26
|
|
19
|
+
|
|
20
|
+
### Added
|
|
21
|
+
- `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.
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
- The bundled platform catalog is regenerated from web_builder v1.0.342.
|
|
25
|
+
|
|
9
26
|
## [0.114.0] - 2026-11-25
|
|
10
27
|
|
|
11
28
|
### Added
|
package/CHANGELOG.vi.md
CHANGED
|
@@ -6,6 +6,23 @@ 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.116.0] - 2026-11-26
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- `sb_form` nhận `requiredText` trên các trường `form-timeslot`, còn `invalidText` vẫn bị từ chối ở đó.
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
- `sb_store` `action: "form"` và bản seed checkout chèn mẫu form tiếng Anh trên site tiếng Anh, còn các ngôn ngữ khác hoặc chưa đặt vẫn giữ văn bản hiện có.
|
|
16
|
+
- Catalog nền tảng đi kèm được tạo lại từ web_builder v1.0.344.
|
|
17
|
+
|
|
18
|
+
## [0.115.0] - 2026-11-26
|
|
19
|
+
|
|
20
|
+
### Added
|
|
21
|
+
- `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.
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
- Catalog nền tảng đi kèm được tạo lại từ web_builder v1.0.342.
|
|
25
|
+
|
|
9
26
|
## [0.114.0] - 2026-11-25
|
|
10
27
|
|
|
11
28
|
### Added
|
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_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) |
|
|
144
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 |
|
|
145
145
|
|
|
146
|
-
Forty-three tools, **
|
|
146
|
+
Forty-three tools, **1016 API operations** (376 of the 468 writes carrying a body shape read
|
|
147
147
|
off the handler), 125 elements, 99 binding sources. `sb_api_find`
|
|
148
148
|
is an index rather than a tool per endpoint, so the tool list stays short while everything
|
|
149
149
|
the platform can do stays reachable — and operations added to the platform arrive with the
|
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_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) |
|
|
140
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 |
|
|
141
141
|
|
|
142
|
-
Bốn mươi ba tool, **
|
|
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
|
|
143
143
|
từ handler), 125 element, 99 nguồn binding. `sb_api_find` là
|
|
144
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
|
|
145
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":
|
|
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
|
},
|