sbuilder-mcp 0.103.0 → 0.105.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,28 @@ 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.105.0] - 2026-11-13
10
+
11
+ ### Added
12
+ - `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`.
13
+ - `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.
14
+ - `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.
15
+
16
+ ### Changed
17
+ - `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.
18
+ - `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.
19
+ - 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.
20
+
21
+ ## [0.104.0] - 2026-10-30
22
+
23
+ ### Added
24
+ - `sb_function` creates, test-runs, lists, reads, removes and reads logs and usage of backend functions, and manages their secrets, with writes defaulting to `dry_run` and secret values never shown in previews or results.
25
+ - `sb_function` rejects invalid slugs and keys locally, puts `compile_error` first when a build fails, and says so plainly when the platform has functions disabled or the plan has no runs.
26
+
27
+ ### Changed
28
+ - `sb_api_call` redacts secret values on function secret routes, vendor admin keys and customer password fields, and redacts the whole body when it normalises an error.
29
+ - The generated catalog is regenerated against web_builder v1.0.201 and now covers 949 operations.
30
+
9
31
  ## [0.103.0] - 2026-10-30
10
32
 
11
33
  ### Added
package/CHANGELOG.vi.md CHANGED
@@ -6,6 +6,28 @@ 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.105.0] - 2026-11-13
10
+
11
+ ### Added
12
+ - `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`.
13
+ - `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 đè.
14
+ - `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.
15
+
16
+ ### Changed
17
+ - `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.
18
+ - `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.
19
+ - 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.
20
+
21
+ ## [0.104.0] - 2026-10-30
22
+
23
+ ### Added
24
+ - `sb_function` tạo, chạy thử, liệt kê, đọc, xóa, xem nhật ký và lượt dùng của backend functions, đồng thời quản lý secret của chúng, với thao tác ghi mặc định `dry_run` và giá trị secret không bao giờ hiện trong bản xem trước hay kết quả.
25
+ - `sb_function` từ chối tại chỗ slug và key không hợp lệ, đặt `compile_error` lên đầu khi bản build hỏng, và nói thẳng khi nền tảng tắt functions hoặc gói không có lượt chạy.
26
+
27
+ ### Changed
28
+ - `sb_api_call` che giá trị secret trên các route secret của function, khóa vendor admin và trường mật khẩu của khách, và che toàn bộ nội dung khi chuẩn hóa lỗi.
29
+ - Catalog sinh tự động được sinh lại theo web_builder v1.0.201 và nay gồm 949 operation.
30
+
9
31
  ## [0.103.0] - 2026-10-30
10
32
 
11
33
  ### Added
package/README.md CHANGED
@@ -101,6 +101,8 @@ in this client: one would put the very key the platform exists to hold back into
101
101
  | `sb_page_update` | Edit a page's name, slug, home flag, order, SEO (title, description, Open Graph, robots, meta tags, JSON-LD) and members-only flag — merged into `settings`, so the keys it does not name survive. On a template page: make it the type's default, or choose which products/categories/posts render through it |
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
+ | `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` |
104
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) |
105
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 |
106
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 |
@@ -118,7 +120,7 @@ in this client: one would put the very key the platform exists to hold back into
118
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) |
119
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 |
120
122
 
121
- Twenty-eight tools, **923 API operations** (346 of the 431 writes carrying a body shape read
123
+ Thirty-nine tools, **969 API operations** (362 of the 451 writes carrying a body shape read
122
124
  off the handler), 124 elements, 96 binding sources. `sb_api_find`
123
125
  is an index rather than a tool per endpoint, so the tool list stays short while everything
124
126
  the platform can do stays reachable — and operations added to the platform arrive with the
package/README.vi.md CHANGED
@@ -98,6 +98,8 @@ nhét ngược lại vào mọi bản cài.
98
98
  | `sb_page_update` | Sửa tên, slug, cờ trang chủ, thứ tự, SEO (title, description, Open Graph, robots, meta tag, JSON-LD) và cờ chỉ-thành-viên của một trang — merge vào `settings`, nên các khoá không nhắc tới vẫn còn nguyên. Với trang template: đặt làm mặc định của loại, hoặc chọn sản phẩm/danh mục/bài viết nào hiển thị qua nó |
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
+ | `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 |
101
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) |
102
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 |
103
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 |
@@ -115,7 +117,7 @@ nhét ngược lại vào mọi bản cài.
115
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) |
116
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 |
117
119
 
118
- Hai mươi tám tool, **923 operation API** (346 trong 431 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
119
121
  từ handler), 124 element, 96 nguồn binding. `sb_api_find` là
120
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
121
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