sbuilder-mcp 0.97.0 → 0.98.1

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,36 @@ 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.98.1] - 2026-10-28
10
+
11
+ ### Fixed
12
+ - `sb_set` can re-source an element whose stored `kind` is an empty string, because an empty `kind` now reads as the element's default kind instead of an unknown one.
13
+
14
+ ## [0.98.0] - 2026-10-28
15
+
16
+ ### Added
17
+ - `sb_theme` patches style `presets` and per-breakpoint `text_styles` (mobile, tablet, laptop), and reports `presets_pin_font` and `responsive_larger` when a change leaves presets or breakpoint overrides inconsistent.
18
+ - `sb_media_upload` accepts `paths` to upload many local files in one call, reporting failures per path while the batch continues.
19
+ - `sb_api_call` `pick` accepts dotted paths such as `variants.id` and `product.id`, and works on lists and single-object write answers alike.
20
+ - `sb_add` materializes a filter's option rows into `specials.filterValues`, and `sb_set` re-derives them when the filter is re-sourced.
21
+ - `sb_page_create` with `type` `account` opens with a heading, account-info, order-history and address-book.
22
+ - `sb_review` and `sb_add` report `text_markup` when HTML tags sit in plain `specials.text`, and `cascade_tail` per node when a narrow-breakpoint style key reaches desktop.
23
+
24
+ ### Changed
25
+ - `sb_publish` with `publish_drafts` includes never-published pages, listed as `first_publish`.
26
+ - `sb_bind` replaces an existing binding on the same field and keeps its id instead of adding a second one.
27
+ - `sb_set` reports a global section or overlay once per master per process, with the node count, instead of once per node.
28
+ - `sb_store` site chrome gives the header the site name linked to `/` and a search box, and answers `brand_missing` when an API key cannot read the site name.
29
+ - Category and product menu rows keep their whole names, and categories are ordered by position, then name.
30
+ - `sb_product_shelf` builds a pricing-dataset parent with price and compare-price leaves.
31
+ - Default bindings use every binding kind the platform factory defines, such as `tags`, and an unknown kind is refused with the list of known kinds.
32
+ - The API catalog is regenerated against the latest web_builder.
33
+
34
+ ### Fixed
35
+ - `sb_add` of a filter no longer renders empty, because its option rows are now written.
36
+ - `sb_set` no longer reports `textHtml` as `unknown_key`.
37
+ - `sb_review` no longer reports `empty_text` for text held in `<key>Html` or a form-link's `linkText`, no longer treats a form-link seed as `placeholder_content`, and no longer reports `no_h1` inside a form document.
38
+
9
39
  ## [0.97.0] - 2026-10-28
10
40
 
11
41
  ### Added
package/CHANGELOG.vi.md CHANGED
@@ -6,6 +6,36 @@ 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.98.1] - 2026-10-28
10
+
11
+ ### Fixed
12
+ - `sb_set` đổi được nguồn của element có `kind` lưu là chuỗi rỗng, vì `kind` rỗng giờ được đọc như kind mặc định của element thay vì kind lạ.
13
+
14
+ ## [0.98.0] - 2026-10-28
15
+
16
+ ### Added
17
+ - `sb_theme` vá được `presets` kiểu dáng và `text_styles` theo từng breakpoint (mobile, tablet, laptop), và báo `presets_pin_font` cùng `responsive_larger` khi thay đổi làm preset hoặc override breakpoint lệch nhau.
18
+ - `sb_media_upload` nhận `paths` để tải nhiều file cục bộ trong một lần gọi, báo lỗi theo từng đường dẫn và vẫn chạy tiếp cả lô.
19
+ - `pick` của `sb_api_call` nhận đường dẫn có dấu chấm như `variants.id` và `product.id`, dùng được cho cả danh sách lẫn câu trả lời ghi một đối tượng.
20
+ - `sb_add` tạo sẵn các dòng tuỳ chọn của filter vào `specials.filterValues`, và `sb_set` suy ra lại chúng khi filter đổi nguồn.
21
+ - `sb_page_create` với `type` là `account` mở trang với heading, account-info, order-history và address-book.
22
+ - `sb_review` và `sb_add` báo `text_markup` khi thẻ HTML nằm trong `specials.text` thường, và `cascade_tail` theo từng node khi key style ở breakpoint hẹp lên tới desktop.
23
+
24
+ ### Changed
25
+ - `sb_publish` với `publish_drafts` gồm cả trang chưa từng publish, được liệt kê ở `first_publish`.
26
+ - `sb_bind` thay binding sẵn có trên cùng field và giữ nguyên id thay vì thêm binding thứ hai.
27
+ - `sb_set` nói về global section hoặc overlay một lần cho mỗi master trong mỗi process, kèm số node, thay vì một lần cho mỗi node.
28
+ - Phần chrome của `sb_store` cho header tên site liên kết tới `/` cùng ô tìm kiếm, và trả `brand_missing` khi API key không đọc được tên site.
29
+ - Hàng menu danh mục và sản phẩm giữ nguyên tên đầy đủ, và danh mục được sắp theo vị trí rồi đến tên.
30
+ - `sb_product_shelf` dựng pricing-dataset cha cùng hai lá giá và giá so sánh.
31
+ - Binding mặc định dùng mọi kind mà factory của nền tảng định nghĩa, như `tags`, và kind lạ bị từ chối kèm danh sách kind đã biết.
32
+ - Catalog API được tạo lại theo web_builder mới nhất.
33
+
34
+ ### Fixed
35
+ - `sb_add` filter không còn render rỗng vì các dòng tuỳ chọn nay đã được ghi.
36
+ - `sb_set` không còn báo `textHtml` là `unknown_key`.
37
+ - `sb_review` không còn báo `empty_text` cho chữ nằm trong `<key>Html` hay `linkText` của form-link, không còn coi seed của form-link là `placeholder_content`, và không còn báo `no_h1` trong form document.
38
+
9
39
  ## [0.97.0] - 2026-10-28
10
40
 
11
41
  ### Added
package/README.md CHANGED
@@ -83,13 +83,13 @@ in this client: one would put the very key the platform exists to hold back into
83
83
  | `sb_connect` | Log in, list the sites this account can operate, report which credentials are present |
84
84
  | `sb_site_list` | List the sites this account can operate |
85
85
  | `sb_api_find` | Find API operations by intent — one line per match — then read one operation's call sheet by id: real parameter schemas, the credential it needs, and the body's fields read off the handler that decodes them, each carrying the trap its own doc comment records |
86
- | `sb_api_call` | Execute an operation, or any route by method+path; dry run by default. Field selection and local result pagination; `merge` for whole-record PUTs, `If-Match`, multipart `file` |
86
+ | `sb_api_call` | Execute an operation, or any route by method+path; dry run by default. Field selection (dotted paths, on lists and single-object write answers) and local result pagination; `merge` for whole-record PUTs, `If-Match`, multipart `file` |
87
87
  | `sb_page_open` | Open a page for editing and return its outline — or, with `form_id`, a form's field document (fields, defaults, dependent-field rules) |
88
88
  | `sb_outline` | The open page as a compressed tree — never a raw document dump |
89
89
  | `sb_node_read` | One node in full, with a warning if it is a shared global |
90
90
  | `sb_catalog_search` | Find an element by what it should do, using the platform's own AI hints |
91
91
  | `sb_traits_for` | An element's inspector — tabs, groups, controls and what each declared one writes — plus its AI hints, defaults and containment rules |
92
- | `sb_add` | Add an element — or a whole nested subtree — in one call |
92
+ | `sb_add` | Add an element — or a whole nested subtree — in one call; a filter arrives with its option rows read from the catalogue |
93
93
  | `sb_set` | Write style/config/specials. Per breakpoint by default |
94
94
  | `sb_move` | Move a node to another parent |
95
95
  | `sb_remove` | Remove a node and its subtree |
@@ -101,21 +101,21 @@ 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) injected into every page or one — list, create, merge-update, remove |
104
- | `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 (`publish_drafts` publishes them too) |
104
+ | `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
105
  | `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
106
  | `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 |
107
107
  | `sb_review` | Every defect a visitor would see, each with its fix, plus the five gaps between this store and a paid order |
108
108
  | `sb_media_list` | The site's media library |
109
- | `sb_media_upload` | Add an image and get its URL — a local path, a URL the platform fetches, or a SEARCH for real photographs you read and pick from, one or several at a time |
109
+ | `sb_media_upload` | Add an image and get its URL — a local path, a URL the platform fetches, or a SEARCH for real photographs you read and pick from, one or several at a time; `paths` uploads many local files in one call |
110
110
  | `sb_live_join` | Join the editor's live-edit room as a visible peer — edits then appear live |
111
111
  | `sb_look` | Save, render, and return screenshots plus measured node boxes and layout defects measured on the render |
112
112
  | `sb_event` | Give a node a click action — open the cart, go to a page, open a pop-up |
113
113
  | `sb_bind` | Bind a node's content to real store data, or make a button add to the cart |
114
114
  | `sb_import` | Read a page from any public URL and add its structure and content to the open page as real elements, styled with THIS page's own tokens — a translation, not a clone |
115
115
  | `sb_import_site` | Read a WHOLE site from one URL — its sitemap, or the links on that page — and give each page found its own draft page here, built from this site's tokens; the entry page's own colours and type scale also patch into this SITE'S theme, so it stops being purely a read |
116
- | `sb_theme` | Read or patch the site's palette and type scale — the layer every style preset resolves from, so one token repaints every page; `locale` sets the site's language |
116
+ | `sb_theme` | Read or patch the site's palette and type scale — the layer every style preset resolves from, so one token repaints every page; per-breakpoint text-style overrides and element style `presets`; `locale` sets the site's language |
117
117
  | `sb_translate` | Translate a site the way the editor's Multilingual panel does — enable languages, list a page's strings as missing / done / outdated, write or machine-fill them, approve machine rows |
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) |
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 — 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
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
121
  Twenty-eight tools, **919 API operations** (344 of the 429 writes carrying a body shape read
package/README.vi.md CHANGED
@@ -80,13 +80,13 @@ nhét ngược lại vào mọi bản cài.
80
80
  | `sb_connect` | Đăng nhập, liệt kê site tài khoản vận hành được, báo đang có credential nào |
81
81
  | `sb_site_list` | Liệt kê site tài khoản vận hành được |
82
82
  | `sb_api_find` | Tìm operation theo ý định — mỗi kết quả một dòng — rồi đọc call sheet của một operation theo id: schema tham số thật, credential cần dùng, và các trường body đọc thẳng từ handler decode chúng, mỗi trường mang theo cái bẫy doc comment của chính nó ghi lại |
83
- | `sb_api_call` | Chạy operation, hoặc bất kỳ route nào bằng method+path; mặc định chạy khô. Chọn field và phân trang kết quả phía MCP; `merge` cho PUT thay cả bản ghi, `If-Match`, `file` multipart |
83
+ | `sb_api_call` | Chạy operation, hoặc bất kỳ route nào bằng method+path; mặc định chạy khô. Chọn field (đường dẫn có dấu chấm, trên danh sách lẫn câu trả lời ghi một object) và phân trang kết quả phía MCP; `merge` cho PUT thay cả bản ghi, `If-Match`, `file` multipart |
84
84
  | `sb_page_open` | Mở một trang để sửa và trả về outline — hoặc, với `form_id`, tài liệu trường của biểu mẫu (trường, giá trị mặc định, quy tắc trường phụ thuộc) |
85
85
  | `sb_outline` | Trang đang mở dạng cây nén — không bao giờ dump tài liệu thô |
86
86
  | `sb_node_read` | Một node đầy đủ, kèm cảnh báo nếu nó là global dùng chung |
87
87
  | `sb_catalog_search` | Tìm element theo việc nó cần làm, dùng chính AI hints của nền tảng |
88
88
  | `sb_traits_for` | Inspector của element — tab, nhóm, control và mỗi control khai báo sẵn ghi vào đâu — kèm AI hints, default và luật chứa con |
89
- | `sb_add` | Thêm một element — hoặc cả cây con lồng nhau — trong một lần gọi |
89
+ | `sb_add` | Thêm một element — hoặc cả cây con lồng nhau — trong một lần gọi; filter được tạo kèm sẵn các dòng lấy từ catalogue |
90
90
  | `sb_set` | Ghi style/config/specials. Mặc định theo breakpoint |
91
91
  | `sb_move` | Chuyển node sang cha khác |
92
92
  | `sb_remove` | Xoá node và cả cây con |
@@ -98,21 +98,21 @@ 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) chèn vào mọi trang hoặc một trang — liệt kê, tạo, cập nhật gộp, xoá |
101
- | `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 (`publish_drafts` publish luôn) |
101
+ | `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
102
  | `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
103
  | `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 |
104
104
  | `sb_review` | Mọi khiếm khuyết người xem sẽ thấy, kèm lệnh sửa từng cái, và năm khoảng trống chắn giữa cửa hàng với một đơn đã thanh toán |
105
105
  | `sb_media_list` | Thư viện ảnh của site |
106
- | `sb_media_upload` | Thêm ảnh và lấy URL — file trên máy, một URL để nền tảng tự tải, hoặc TÌM ảnh chụp thật để đọc mô tả rồi chọn, một hoặc nhiều tấm một lượt |
106
+ | `sb_media_upload` | Thêm ảnh và lấy URL — file trên máy, một URL để nền tảng tự tải, hoặc TÌM ảnh chụp thật để đọc mô tả rồi chọn, một hoặc nhiều tấm một lượt; `paths` upload nhiều file trên máy trong một lần gọi |
107
107
  | `sb_live_join` | Vào phòng live-edit của editor như một peer nhìn thấy được — sửa gì hiện ngay |
108
108
  | `sb_look` | Lưu, render, trả về ảnh chụp kèm box đo được của node và lỗi bố cục đo trên bản render |
109
109
  | `sb_event` | Gắn click action cho một node — mở giỏ, sang trang, mở pop-up |
110
110
  | `sb_bind` | Gắn nội dung một node vào dữ liệu cửa hàng thật, hoặc biến một nút thành nút thêm vào giỏ |
111
111
  | `sb_import` | Đọc một trang từ URL công khai bất kỳ và thêm cấu trúc + nội dung của nó vào trang đang mở dưới dạng element thật, mang token của CHÍNH trang này — là dịch lại, không phải sao chép |
112
112
  | `sb_import_site` | Đọc CẢ website từ một URL — sitemap của nó, hoặc các link trên trang đó — và tạo cho mỗi trang tìm được một trang nháp riêng ở đây, dựng bằng token của site này; màu và thang chữ của trang gốc cũng được vá vào THEME của site này, nên đây không còn thuần là đọc |
113
- | `sb_theme` | Đọc hoặc vá bảng màu và thang chữ của site — tầng mà mọi style preset phân giải từ đó, nên một token thay áo cho mọi trang; `locale` đặt ngôn ngữ của site |
113
+ | `sb_theme` | Đọc hoặc vá bảng màu và thang chữ của site — tầng mà mọi style preset phân giải từ đó, nên một token thay áo cho mọi trang; ghi đè text style theo breakpoint và vá `presets` của element; `locale` đặt ngôn ngữ của site |
114
114
  | `sb_translate` | Dịch site như bảng Đa ngôn ngữ của editor — bật ngôn ngữ, liệt kê chuỗi của một trang theo missing / done / outdated, ghi hoặc dịch máy, duyệt dòng do máy dịch |
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) |
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 — 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
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
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
@@ -1,6 +1,6 @@
1
1
  export const DEAD_KEY_SOURCE = {
2
- "files": 6021,
3
- "identifiers": 110689,
2
+ "files": 6029,
3
+ "identifiers": 110826,
4
4
  "seededKeys": 460,
5
5
  "dead": 0
6
6
  };