sbuilder-mcp 0.102.1 → 0.104.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,29 @@ 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.104.0] - 2026-10-30
10
+
11
+ ### Added
12
+ - `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.
13
+ - `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.
14
+
15
+ ### Changed
16
+ - `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.
17
+ - The generated catalog is regenerated against web_builder v1.0.201 and now covers 949 operations.
18
+
19
+ ## [0.103.0] - 2026-10-30
20
+
21
+ ### Added
22
+ - `sb_code` accepts a `language` of html, css, javascript, scss, typescript, json or text, infers it from the file extension when omitted, and refuses unknown extensions until `language` is passed.
23
+ - `sb_code` accepts `placement` set to `none`, which is the only placement json and text files take.
24
+ - `sb_code` returns a `compile_error` when a scss or typescript build fails, stating whether the previous build is still served or nothing is served.
25
+ - `sb_code` returns a `url` of the form `/_wb/code/<name>` for site-wide, enabled files with `placement` set to `none`.
26
+
27
+ ### Changed
28
+ - `sb_code` sends `expectedUpdatedAt` on updates and deletes, and a `code_file_changed` conflict tells the caller to re-run.
29
+ - `sb_code` rejects scss and typescript sources that start with a wrapper tag, and re-validates css and javascript served verbatim when they move out of `none`.
30
+ - The generated catalog is regenerated against web_builder v1.0.199 and now covers 923 operations.
31
+
9
32
  ## [0.102.1] - 2026-10-30
10
33
 
11
34
  ### Fixed
package/CHANGELOG.vi.md CHANGED
@@ -6,6 +6,29 @@ 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.104.0] - 2026-10-30
10
+
11
+ ### Added
12
+ - `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ả.
13
+ - `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.
14
+
15
+ ### Changed
16
+ - `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.
17
+ - Catalog sinh tự động được sinh lại theo web_builder v1.0.201 và nay gồm 949 operation.
18
+
19
+ ## [0.103.0] - 2026-10-30
20
+
21
+ ### Added
22
+ - `sb_code` nhận `language` là html, css, javascript, scss, typescript, json hoặc text, tự suy từ đuôi tên file khi bỏ trống và từ chối đuôi lạ cho đến khi truyền `language`.
23
+ - `sb_code` nhận `placement` là `none`, đây là giá trị duy nhất mà file json và text chấp nhận.
24
+ - `sb_code` trả về `compile_error` khi bản build scss hoặc typescript hỏng, nêu rõ bản build cũ vẫn còn được phục vụ hay chưa có gì được phục vụ.
25
+ - `sb_code` trả về `url` dạng `/_wb/code/<name>` cho file site-wide đang bật có `placement` là `none`.
26
+
27
+ ### Changed
28
+ - `sb_code` gửi `expectedUpdatedAt` khi cập nhật và xóa, và xung đột `code_file_changed` yêu cầu người gọi chạy lại.
29
+ - `sb_code` từ chối nguồn scss và typescript mở đầu bằng thẻ bao, và kiểm tra lại css và javascript được phục vụ nguyên văn khi chuyển ra khỏi `none`.
30
+ - Catalog sinh tự động được sinh lại theo web_builder v1.0.199 và nay gồm 923 operation.
31
+
9
32
  ## [0.102.1] - 2026-10-30
10
33
 
11
34
  ### Fixed
package/README.md CHANGED
@@ -100,7 +100,8 @@ in this client: one would put the very key the platform exists to hold back into
100
100
  | `sb_page_create` | Create a page — a store type arrives with the editor's own starting document; `type` is the route for checkout, product, category, post, course |
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
- | `sb_code` | The site's custom code files (tracking pixels, analytics, chat widgets, site CSS) injected into every page or one — list, create, merge-update, remove |
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` |
104
105
  | `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
106
  | `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
107
  | `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 +119,7 @@ in this client: one would put the very key the platform exists to hold back into
118
119
  | `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
120
  | `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
121
 
121
- Twenty-eight tools, **919 API operations** (344 of the 429 writes carrying a body shape read
122
+ Thirty-eight tools, **949 API operations** (354 of the 441 writes carrying a body shape read
122
123
  off the handler), 124 elements, 96 binding sources. `sb_api_find`
123
124
  is an index rather than a tool per endpoint, so the tool list stays short while everything
124
125
  the platform can do stays reachable — and operations added to the platform arrive with the
package/README.vi.md CHANGED
@@ -97,7 +97,8 @@ nhét ngược lại vào mọi bản cài.
97
97
  | `sb_page_create` | Tạo một trang — trang cửa hàng sinh ra đã có sẵn tài liệu như trong editor; `type` là đường đi cho checkout, product, category, post, course |
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
- | `sb_code` | Các file mã tuỳ chỉnh của site (pixel theo dõi, analytics, widget chat, CSS toàn site) chèn vào mọi trang hoặc một trang — liệt kê, tạo, cập nhật gộp, xoá |
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` |
101
102
  | `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
103
  | `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
104
  | `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 +116,7 @@ nhét ngược lại vào mọi bản cài.
115
116
  | `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
117
  | `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
118
 
118
- Hai mươi tám tool, **919 operation API** (344 trong 429 lệnh ghi có hình dạng body đọc thẳng
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
119
120
  từ handler), 124 element, 96 nguồn binding. `sb_api_find` là
120
121
  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
122
  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