sbuilder-mcp 0.77.0 → 0.78.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 +15 -0
- package/CHANGELOG.vi.md +15 -0
- package/README.md +2 -2
- package/README.vi.md +2 -2
- package/dist/catalog/api.generated.js +17805 -5286
- package/dist/catalog/appscaffolds.generated.js +1 -1
- package/dist/catalog/deadkeys.generated.js +3 -3
- package/dist/catalog/element-search.js +80 -10
- package/dist/catalog/elements.generated.js +370 -91
- package/dist/catalog/shapes.generated.js +4483 -1593
- package/dist/catalog/source.generated.js +2 -2
- package/dist/catalog/translations.generated.js +11 -2
- package/dist/domains/site/builder.js +42 -3
- package/dist/domains/site/findings.js +13 -3
- package/dist/domains/site/formdoc.js +185 -0
- package/dist/domains/site/review.js +11 -5
- package/dist/domains/site/validate.js +3 -0
- package/dist/domains/site/writecheck.js +47 -0
- package/dist/tools/page.js +39 -9
- package/dist/tools/store.js +77 -16
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,21 @@ 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.78.0] - 2026-10-08
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- `sb_store` with `action:"form"` accepts `settings` (booking options such as `maxPerSlot` and `minStayNights`), validates them against the platform's `forms.Settings` shape, and reports `booking_app_required` when the booking app is missing.
|
|
13
|
+
- `sb_review` reports `form_options_empty`, `form_timeslot_dead` and `form_booking_dates` findings for booking-style forms, and `sb_add` and `sb_set` warn on a `form_field` problem.
|
|
14
|
+
- Catalog search treats `đ` as `d`, defaults to Vietnamese content, and ranks form templates (for example "đặt lịch" to booking) before title matches.
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
- The catalog is regenerated from the current platform, now covering 123 elements and 814 operations.
|
|
18
|
+
- `order_goes_nowhere` in `sb_review` respects the `afterSubmit` redirect of a form record.
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
- `sb_add` now adds fields to the root `form` of a form document, inserting new fields above the submit button or step bar as the editor does, and refuses fields on the root of a multi-step form.
|
|
22
|
+
- Duplicate `specials.name` and `mapTo` values on a form are refused before saving instead of failing with a platform 409.
|
|
23
|
+
|
|
9
24
|
## [0.77.0] - 2026-10-08
|
|
10
25
|
|
|
11
26
|
### Added
|
package/CHANGELOG.vi.md
CHANGED
|
@@ -6,6 +6,21 @@ 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.78.0] - 2026-10-08
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- `sb_store` với `action:"form"` nhận `settings` (tuỳ chọn đặt lịch như `maxPerSlot` và `minStayNights`), kiểm tra theo shape `forms.Settings` của nền tảng, và báo `booking_app_required` khi thiếu app booking.
|
|
13
|
+
- `sb_review` báo thêm các finding `form_options_empty`, `form_timeslot_dead` và `form_booking_dates` cho form dạng đặt lịch, còn `sb_add` và `sb_set` cảnh báo lỗi `form_field`.
|
|
14
|
+
- Tìm kiếm catalog coi `đ` là `d`, mặc định nội dung tiếng Việt, và xếp mẫu form (ví dụ "đặt lịch" ra booking) trước các kết quả khớp tiêu đề.
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
- Catalog được sinh lại từ nền tảng mới nhất, gồm 123 element và 814 operation.
|
|
18
|
+
- `order_goes_nowhere` trong `sb_review` tôn trọng `afterSubmit` redirect của bản ghi form.
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
- `sb_add` giờ thêm được field vào gốc `form` của form document, chèn field mới trên nút gửi hoặc thanh bước như editor, và từ chối field trên gốc của form chia bước.
|
|
22
|
+
- Trùng `specials.name` và `mapTo` trên form bị từ chối trước khi lưu thay vì lỗi 409 từ nền tảng.
|
|
23
|
+
|
|
9
24
|
## [0.77.0] - 2026-10-08
|
|
10
25
|
|
|
11
26
|
### Added
|
package/README.md
CHANGED
|
@@ -114,8 +114,8 @@ in this client: one would put the very key the platform exists to hold back into
|
|
|
114
114
|
| `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) |
|
|
115
115
|
| `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_api_find` "page versions") outlive this process |
|
|
116
116
|
|
|
117
|
-
Twenty-eight tools, **
|
|
118
|
-
off the handler),
|
|
117
|
+
Twenty-eight tools, **814 API operations** (298 of the 376 writes carrying a body shape read
|
|
118
|
+
off the handler), 123 elements, 79 binding sources. `sb_api_find`
|
|
119
119
|
is an index rather than a tool per endpoint, so the tool list stays short while everything
|
|
120
120
|
the platform can do stays reachable — and operations added to the platform arrive with the
|
|
121
121
|
next `npm run codegen`.
|
package/README.vi.md
CHANGED
|
@@ -111,8 +111,8 @@ nhét ngược lại vào mọi bản cài.
|
|
|
111
111
|
| `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) |
|
|
112
112
|
| `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_api_find` "page versions") sống lâu hơn process này |
|
|
113
113
|
|
|
114
|
-
Hai mươi tám tool, **
|
|
115
|
-
từ handler),
|
|
114
|
+
Hai mươi tám tool, **814 operation API** (298 trong 376 lệnh ghi có hình dạng body đọc thẳng
|
|
115
|
+
từ handler), 123 element, 79 nguồn binding. `sb_api_find` là
|
|
116
116
|
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
|
|
117
117
|
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
|
|
118
118
|
`npm run codegen` kế tiếp.
|