sbuilder-mcp 0.104.0 → 0.106.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,31 @@ 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.106.0] - 2026-11-18
10
+
11
+ ### Added
12
+ - `sb_store` `site_template` offers the whole site as its organization's template with a `name`, `description` and gallery `categories`, attaching the site to `org_id` first when it has no organization.
13
+ - `sb_store` `site_template` refuses categories for an organization other than the platform organization before writing anything, and refuses `dry_run: false` without a `name`.
14
+ - `sb_store` `site_template_remove` withdraws a site that was offered as a template.
15
+ - `sb_store` `template_share` sends a saved section template to the organization's review.
16
+ - `sb_store` `template_save` accepts `description` and `categories` (slugs or ids), and its dry run returns `categories_available` with a prompt to name, describe and file the template under one or two categories.
17
+
18
+ ### Changed
19
+ - `sb_store` `template_save` with `template_id` now updates the template's name, description and categories as well as its content, and reports that the content was saved when only the metadata update fails.
20
+ - `sb_templates` lists `share` and `shareNote` for each template.
21
+
22
+ ## [0.105.0] - 2026-11-13
23
+
24
+ ### Added
25
+ - `sb_collection` manages a site's data tables end to end: create, update and delete tables; list, add, update, delete and reorder typed fields; list, read, add, edit, delete, move and reorder records; CSV export and import; and upsert by external id. Writes, deletes and imports default to `dry_run`.
26
+ - `sb_collection` `edit` reads the record and sends it back whole with its `rev`, so an edit never unpublishes the row or drops values it did not name, and a row saved in between is reported rather than overwritten.
27
+ - `sb_collection` rejects field keys the platform would refuse before sending anything, and names the pages, forms or tables that still use a table or record it cannot delete.
28
+
29
+ ### Changed
30
+ - `sb_translate` refuses `write` and `auto` for a market locale (one that borrows another language's words at its own currency) and names the language to translate instead.
31
+ - `sb_function` says functions are switched on by a platform admin rather than by `WB_FUNCTIONS`, and describes runs as subject to the site's monthly allowance rather than a plan feature.
32
+ - The generated catalog is regenerated against web_builder v1.0.237 and now covers 969 operations; the page element lists the background video and 3D background settings.
33
+
9
34
  ## [0.104.0] - 2026-10-30
10
35
 
11
36
  ### Added
package/CHANGELOG.vi.md CHANGED
@@ -6,6 +6,31 @@ 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.106.0] - 2026-11-18
10
+
11
+ ### Added
12
+ - `sb_store` `site_template` đưa cả site làm mẫu của tổ chức với `name`, `description` và `categories` của thư viện, và gắn site vào `org_id` trước khi đánh dấu nếu site chưa thuộc tổ chức nào.
13
+ - `sb_store` `site_template` từ chối danh mục với tổ chức không phải tổ chức nền tảng trước khi ghi gì, và từ chối `dry_run: false` khi thiếu `name`.
14
+ - `sb_store` `site_template_remove` gỡ site đã được đưa làm mẫu.
15
+ - `sb_store` `template_share` gửi section template đã lưu lên hàng duyệt của tổ chức.
16
+ - `sb_store` `template_save` nhận `description` và `categories` (slug hoặc id), và bản chạy thử trả về `categories_available` kèm lời dặn đặt tên, mô tả và xếp mẫu vào một hoặc hai danh mục.
17
+
18
+ ### Changed
19
+ - `sb_store` `template_save` với `template_id` nay cập nhật cả tên, mô tả và danh mục chứ không chỉ nội dung, và báo rõ nội dung đã được lưu khi chỉ phần cập nhật metadata bị lỗi.
20
+ - `sb_templates` hiện `share` và `shareNote` cho từng mẫu.
21
+
22
+ ## [0.105.0] - 2026-11-13
23
+
24
+ ### Added
25
+ - `sb_collection` quản lý trọn vẹn các bảng dữ liệu của site: tạo, sửa và xoá bảng; liệt kê, thêm, sửa, xoá và sắp xếp trường có kiểu; liệt kê, đọc, thêm, sửa, xoá, di chuyển và sắp xếp bản ghi; xuất và nhập CSV; và upsert theo external id. Lệnh ghi, xoá và nhập mặc định `dry_run`.
26
+ - `sb_collection` `edit` đọc bản ghi rồi gửi lại nguyên bản kèm `rev`, nên lệnh sửa không bao giờ gỡ đăng bản ghi hay làm mất giá trị không được nhắc tới, và bản ghi bị lưu ở giữa được báo lại thay vì bị ghi đè.
27
+ - `sb_collection` từ chối key trường mà nền tảng sẽ từ chối trước khi gửi gì, và nêu tên trang, biểu mẫu hay bảng còn đang dùng một bảng hoặc bản ghi không xoá được.
28
+
29
+ ### Changed
30
+ - `sb_translate` từ chối `write` và `auto` với locale là market (mượn chữ của ngôn ngữ khác với tiền tệ riêng) và nêu ngôn ngữ cần dịch thay.
31
+ - `sb_function` nói function do platform admin bật chứ không phải do `WB_FUNCTIONS`, và mô tả lượt chạy là tùy theo hạn mức tháng của site chứ không phải tính năng của gói.
32
+ - Catalog sinh tự động được sinh lại theo web_builder v1.0.237 và nay gồm 969 operation; element trang liệt kê thêm phần nền video và nền 3D.
33
+
9
34
  ## [0.104.0] - 2026-10-30
10
35
 
11
36
  ### Added
package/README.md CHANGED
@@ -102,6 +102,7 @@ in this client: one would put the very key the platform exists to hold back into
102
102
  | `sb_page_version` | A page's platform recovery points — list named versions and autosave history, snapshot the draft, restore one |
103
103
  | `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` |
104
104
  | `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` |
105
+ | `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` |
105
106
  | `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) |
106
107
  | `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 |
107
108
  | `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 |
@@ -119,7 +120,7 @@ in this client: one would put the very key the platform exists to hold back into
119
120
  | `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) |
120
121
  | `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 |
121
122
 
122
- Thirty-eight tools, **949 API operations** (354 of the 441 writes carrying a body shape read
123
+ Thirty-nine tools, **969 API operations** (362 of the 451 writes carrying a body shape read
123
124
  off the handler), 124 elements, 96 binding sources. `sb_api_find`
124
125
  is an index rather than a tool per endpoint, so the tool list stays short while everything
125
126
  the platform can do stays reachable — and operations added to the platform arrive with the
package/README.vi.md CHANGED
@@ -99,6 +99,7 @@ nhét ngược lại vào mọi bản cài.
99
99
  | `sb_page_version` | Các điểm khôi phục của trang trên platform — liệt kê phiên bản có tên và lịch sử autosave, chụp draft, khôi phục |
100
100
  | `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` |
101
101
  | `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` |
102
+ | `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 |
102
103
  | `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) |
103
104
  | `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 |
104
105
  | `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 |
@@ -116,7 +117,7 @@ nhét ngược lại vào mọi bản cài.
116
117
  | `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) |
117
118
  | `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 |
118
119
 
119
- Ba mươi tám tool, **949 operation API** (354 trong 441 lệnh ghi có hình dạng body đọc thẳng
120
+ Ba mươi chín tool, **969 operation API** (362 trong 451 lệnh ghi có hình dạng body đọc thẳng
120
121
  từ handler), 124 element, 96 nguồn binding. `sb_api_find` là
121
122
  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
122
123
  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