sbuilder-mcp 0.89.0 → 0.91.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.91.0] - 2026-10-23
10
+
11
+ ### Added
12
+ - `sb_bind` accepts `record.money.<fid>` for number and integer Collections fields, showing the stored whole-unit value as money in the site's base currency (1850000 renders as 1.850.000 ₫).
13
+ - `sb_review` reports `record_filter_invalid` for filter and sort controls aimed at a record list whose axis is not an ID field, whose target is not a collection record list or is a relation list, whose behaviour is not `filter`, or whose sort value is not `<fieldId>_asc|desc`.
14
+ - Filter controls accept `filterSource: "record"` to filter and sort record lists through the `?f.record.<fld>~<list>=…&s.<list>=<fld>_desc&p.<list>=2` URL contract.
15
+
16
+ ### Changed
17
+ - `sb_set` re-derives a text record tile's binding when `recordFormat`, `recordField` or `recordFieldType` changes, so choosing `recordFormat: "money"` switches it to `record.money.<fid>`.
18
+ - The API catalog is synced with web_builder v1.0.171, and `recordFormat` is now a base-only config key.
19
+
20
+ ## [0.90.0] - 2026-10-22
21
+
22
+ ### Added
23
+ - `sb_review` reports `record_relation_unset`, `record_relation_orphan` and `record_relation_no_empty` for relation lists, and `hardcoded_dataset` for custom-code scripts that embed a data table.
24
+ - `sb_page_state` returns `data.record_lists`, so editing a record changes no draft and the page needs no publish.
25
+ - The Collections call sheet documents `rev` and `stale_record`, whole-unit integer money (unlike `priceCents`), upsert by `externalId`, `in_use`, pagination and the 60-second cache.
26
+ - The API catalog is refreshed to 919 operations, and `/api/plans` and `/api/locales` are now part of it.
27
+
28
+ ### Changed
29
+ - `sb_bind` accepts `record.id` and builds relation lists.
30
+ - `sb_bind` reads the real fields of every collection visible to the row, including the parent row of a relation list, before writing, and refuses a field ID that does not exist, a gallery field, a wrong richtext form, or a node outside every record row.
31
+ - `sb_bind` reports 401, 403 and 404 responses from the field lookup verbatim, and `force` overrides its refusals like any other soft guard.
32
+ - Request shapes show Go string types that have a validator as a union of their allowed values, such as `"text" | … | "gallery"`, instead of the type name.
33
+
9
34
  ## [0.89.0] - 2026-10-14
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.91.0] - 2026-10-23
10
+
11
+ ### Added
12
+ - `sb_bind` nhận `record.money.<fid>` cho field number và integer của Collections, hiển thị giá trị đã lưu (đơn vị nguyên) thành tiền theo tiền tệ gốc của site (1850000 hiện là 1.850.000 ₫).
13
+ - `sb_review` báo `record_filter_invalid` cho control lọc và sắp xếp nhắm vào danh sách record mà axis không phải ID field, target không phải danh sách record của collection hoặc là relation list, behaviour khác `filter`, hay giá trị sort không theo `<fieldId>_asc|desc`.
14
+ - Các control lọc nhận `filterSource: "record"` để lọc và sắp xếp danh sách record qua hợp đồng URL `?f.record.<fld>~<list>=…&s.<list>=<fld>_desc&p.<list>=2`.
15
+
16
+ ### Changed
17
+ - `sb_set` suy lại binding của tile text record khi `recordFormat`, `recordField` hoặc `recordFieldType` đổi, nên chọn `recordFormat: "money"` chuyển binding sang `record.money.<fid>`.
18
+ - Catalog API được đồng bộ với web_builder v1.0.171, và `recordFormat` nay là khoá config base-only.
19
+
20
+ ## [0.90.0] - 2026-10-22
21
+
22
+ ### Added
23
+ - `sb_review` báo `record_relation_unset`, `record_relation_orphan` và `record_relation_no_empty` cho danh sách quan hệ (relation list), và `hardcoded_dataset` cho script custom-code nhúng bảng dữ liệu.
24
+ - `sb_page_state` trả `data.record_lists`, nên sửa một bản ghi không đổi bản nháp và trang không cần publish.
25
+ - Call sheet của Collections ghi rõ `rev` và `stale_record`, tiền dạng số nguyên theo đơn vị nguyên (khác `priceCents`), upsert theo `externalId`, `in_use`, phân trang và cache 60 giây.
26
+ - Catalog API được làm mới lên 919 operation, và `/api/plans`, `/api/locales` nay nằm trong catalog.
27
+
28
+ ### Changed
29
+ - `sb_bind` nhận `record.id` và dựng được danh sách quan hệ (relation list).
30
+ - `sb_bind` đọc field thật của mọi collection mà dòng đó thấy, kể cả dòng cha của relation list, trước khi ghi, và từ chối ID field không tồn tại, field gallery, sai dạng richtext, hoặc node nằm ngoài mọi dòng bản ghi.
31
+ - `sb_bind` báo nguyên văn phản hồi 401, 403 và 404 khi tra field, và `force` vượt được các lần từ chối như mọi soft guard khác.
32
+ - Request shape hiển thị kiểu chuỗi Go có validator dưới dạng union các giá trị cho phép, như `"text" | … | "gallery"`, thay vì tên kiểu.
33
+
9
34
  ## [0.89.0] - 2026-10-14
10
35
 
11
36
  ### Added
package/README.md CHANGED
@@ -118,7 +118,7 @@ in this client: one would put the very key the platform exists to hold back into
118
118
  | `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 — desktop menu, mobile drawer, 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
119
  | `sb_undo` | Undo / redo this session's writes — page and form edits and `sb_api_call` PUTs; a page is refused if someone else saved it since. The platform's versions and history (`sb_page_version`) outlive this process |
120
120
 
121
- Twenty-eight tools, **892 API operations** (330 of the 416 writes carrying a body shape read
121
+ Twenty-eight tools, **919 API operations** (344 of the 429 writes carrying a body shape read
122
122
  off the handler), 123 elements, 94 binding sources. `sb_api_find`
123
123
  is an index rather than a tool per endpoint, so the tool list stays short while everything
124
124
  the platform can do stays reachable — and operations added to the platform arrive with the
package/README.vi.md CHANGED
@@ -115,7 +115,7 @@ nhét ngược lại vào mọi bản cài.
115
115
  | `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 — menu desktop, drawer mobile, 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
116
  | `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`; 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
117
 
118
- Hai mươi tám tool, **892 operation API** (330 trong 416 lệnh ghi có hình dạng body đọc thẳng
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
119
  từ handler), 123 element, 94 nguồn binding. `sb_api_find` là
120
120
  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
121
  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