sbuilder-mcp 0.4.2 → 0.4.4

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,25 @@ 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.4.4] - 2026-09-08
10
+
11
+ ### Added
12
+ - sb_api_find's call sheet now returns body_shape for 158 of the platform's 212 write operations, read directly off the Go handler that decodes each body instead of the 46 swagger.json describes, and expands one level of a nested struct (such as a product's variants, where the price actually lives) rather than stopping at the type name.
13
+ - sb_store runs the four fixed-order writes a working checkout needs — create an order form, save it back whole with the cart as its source, fill in the store's real payment methods and delivery options, then create and publish a checkout-type page — since building them by hand and missing one step ships a Checkout button that answers 404. dry_run (the default) returns the ordered plan and the payment_methods/delivery_options the form will carry; executing returns form_id, page_id, slug and published.
14
+ - sb_undo restores what a PUT made through sb_api_call just replaced, since the platform has no page history, versions or restore for pages, forms or settings; sb_api_call now reads a PUT's target through the matching GET before writing so there is something to put back.
15
+
16
+ ### Fixed
17
+ - sb_review's checkoutPage gap now points to sb_store's checkout action instead of a fix that only creates a checkout-type page, which has no order form bound to the cart and takes no orders.
18
+ - Redacting a request preview (used by sb_api_call and sb_undo) now matches platform-sourced credential field names such as accessKey, apiKey, clientSecret, hashSecret, webhookSecret, orderToken and signature, not just an exact "secret", since a body sb_undo echoes back comes from the platform's own vocabulary rather than a caller's.
19
+
20
+ ## [0.4.3] - 2026-09-08
21
+
22
+ ### Changed
23
+ - sb_look and every other save no longer write an unchanged document back to the platform, since a vision loop looks far more often than it edits and a no-op save still costs a round trip and bumps the revision of every shared master the page carries; a save now returns early when the document's revision matches the one last stored.
24
+ - sb_look skips its lazy-image scroll walk on a page with nothing marked loading="lazy", instead of always paying the ~60ms scroll regardless of whether the page has anything below the fold to settle.
25
+ - The API catalog is regenerated: 481 operations (up from 456), recovering 25 merchant routes that were previously documented only in route-map comments and unreachable through sb_api_call, including article and blog-category detail routes, a course's sections/lessons/product-links/enrolments, an integration, and site templates.
26
+ - A handful of order-receipt trait labels (receipt_number_label, receipt_placed_label, receipt_status_label, receipt_items_label, receipt_total_label, receipt_due_label, receipt_unavailable_text) are shortened, e.g. "Order number label" to "Order number".
27
+
9
28
  ## [0.4.2] - 2026-09-08
10
29
 
11
30
  ### Changed
package/CHANGELOG.vi.md CHANGED
@@ -6,6 +6,25 @@ 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.4.4] - 2026-09-08
10
+
11
+ ### Added
12
+ - sb_api_find giờ trả về body_shape cho 158 trong tổng số 212 write operation của nền tảng, đọc trực tiếp từ handler Go giải mã từng body thay vì chỉ 46 operation mà swagger.json mô tả, và mở rộng thêm một cấp cho struct lồng nhau (như variants của một sản phẩm, nơi giá thực sự nằm ở đó) thay vì dừng lại ở tên kiểu.
13
+ - sb_store chạy bốn lượt ghi theo đúng thứ tự cố định mà một checkout hoạt động cần — tạo order form, lưu lại nguyên vẹn với giỏ hàng làm nguồn, điền các phương thức thanh toán và tùy chọn giao hàng thật của cửa hàng, rồi tạo và publish một trang kiểu checkout — vì tự dựng bằng tay mà bỏ sót một bước sẽ cho ra nút Checkout luôn trả về 404. dry_run (mặc định) trả về plan theo đúng thứ tự cùng payment_methods/delivery_options mà form sẽ mang; khi thực thi sẽ trả về form_id, page_id, slug và published.
14
+ - sb_undo khôi phục lại thứ mà một PUT qua sb_api_call vừa ghi đè, vì nền tảng không có lịch sử, phiên bản hay khôi phục cho trang, form hay settings; sb_api_call giờ đọc đối tượng của một PUT qua GET tương ứng trước khi ghi, để có thứ mà khôi phục lại.
15
+
16
+ ### Fixed
17
+ - Gap checkoutPage của sb_review giờ trỏ tới action checkout của sb_store thay vì một cách sửa chỉ tạo trang kiểu checkout, vốn không có order form gắn với giỏ hàng nên không nhận được đơn hàng nào.
18
+ - Việc redact một bản xem trước request (dùng bởi sb_api_call và sb_undo) giờ khớp với các tên trường credential có nguồn gốc từ nền tảng như accessKey, apiKey, clientSecret, hashSecret, webhookSecret, orderToken và signature, chứ không chỉ khớp chính xác "secret", vì body mà sb_undo phản chiếu lại đến từ vocabulary của nền tảng chứ không phải của caller.
19
+
20
+ ## [0.4.3] - 2026-09-08
21
+
22
+ ### Changed
23
+ - sb_look và mọi lần lưu khác giờ không còn ghi lại một document không đổi lên nền tảng, vì một vòng lặp thị giác thường "xem" nhiều hơn hẳn số lần "sửa", và một lần lưu không thay đổi gì vẫn tốn một round trip và làm tăng revision của mọi bản gốc dùng chung mà trang đó mang theo; lần lưu giờ sẽ dừng sớm khi revision của document khớp với revision đã lưu gần nhất.
24
+ - sb_look bỏ qua bước duyệt cuộn để chờ ảnh lazy khi trang không có phần tử nào mang loading="lazy", thay vì luôn tốn ~60ms cuộn dù trang không có gì bên dưới màn hình cần ổn định.
25
+ - Catalog API được tạo lại: 481 operation (tăng từ 456), khôi phục 25 route merchant trước đây chỉ được ghi trong comment route-map và không thể gọi qua sb_api_call, bao gồm các route chi tiết của article và blog-category, các phần section/lesson/product-link/lượt đăng ký của một khóa học, một integration, và các site template.
26
+ - Một số nhãn trait của order-receipt được rút gọn (receipt_number_label, receipt_placed_label, receipt_status_label, receipt_items_label, receipt_total_label, receipt_due_label, receipt_unavailable_text), ví dụ "Order number label" thành "Order number".
27
+
9
28
  ## [0.4.2] - 2026-09-08
10
29
 
11
30
  ### Changed
package/README.md CHANGED
@@ -69,7 +69,7 @@ make, because those mean "this person's account".
69
69
  | --- | --- |
70
70
  | `sb_connect` | Log in, list the sites this account can operate, report which credentials are present |
71
71
  | `sb_site_list` | List the sites this account can operate |
72
- | `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 an explicit note when the platform's document fails to describe a request body |
72
+ | `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 |
73
73
  | `sb_api_call` | Execute one operation. Defaults to a dry run that sends nothing |
74
74
  | `sb_page_open` | Open a page for editing and return its outline |
75
75
  | `sb_outline` | The open page as a compressed tree — never a raw document dump |
@@ -93,8 +93,11 @@ make, because those mean "this person's account".
93
93
  | `sb_look` | Save, render, and return screenshots plus measured node boxes and layout defects measured on the render |
94
94
  | `sb_event` | Give a node a click action — open the cart, go to a page, open a pop-up |
95
95
  | `sb_bind` | Bind a node's content to real store data, or make a button add to the cart |
96
+ | `sb_store` | Run a store flow that must happen in a fixed order — today, the four writes that make a working checkout |
97
+ | `sb_undo` | Put back what a PUT replaced — the platform has no page history or restore, so this is the only way back |
96
98
 
97
- Twenty-five tools, **412 API operations**, 106 elements, 77 binding sources. `sb_api_find`
99
+ Twenty-eight tools, **484 API operations** (158 of the 212 writes carrying a body shape read
100
+ off the handler), 107 elements, 77 binding sources. `sb_api_find`
98
101
  is an index rather than a tool per endpoint, so the tool list stays short while everything
99
102
  the platform can do stays reachable — and operations added to the platform arrive with the
100
103
  next `npm run codegen`.
package/README.vi.md CHANGED
@@ -66,7 +66,7 @@ là "tài khoản của người này".
66
66
  | --- | --- |
67
67
  | `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 |
68
68
  | `sb_site_list` | Liệt kê site tài khoản vận hành được |
69
- | `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ảnh báo ràng khi tài liệu của nền tảng không tả request body |
69
+ | `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 |
70
70
  | `sb_api_call` | Chạy một operation. Mặc định chạy khô, không gửi gì |
71
71
  | `sb_page_open` | Mở một trang để sửa và trả về outline |
72
72
  | `sb_outline` | Trang đang mở dạng cây nén — không bao giờ dump tài liệu thô |
@@ -90,8 +90,11 @@ là "tài khoản của người này".
90
90
  | `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 |
91
91
  | `sb_event` | Gắn click action cho một node — mở giỏ, sang trang, mở pop-up |
92
92
  | `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ỏ |
93
+ | `sb_store` | Chạy một luồng cửa hàng bắt buộc đúng thứ tự — hiện là bốn lệnh ghi tạo nên một trang thanh toán hoạt động |
94
+ | `sb_undo` | Trả lại thứ mà một lệnh PUT đã ghi đè — nền tảng không có lịch sử trang hay restore, nên đây là đường về duy nhất |
93
95
 
94
- Hai mươi lăm tool, **412 operation API**, 106 element, 77 nguồn binding. `sb_api_find`
96
+ Hai mươi tám tool, **484 operation API** (158 trong 212 lệnh ghi hình dạng body đọc thẳng
97
+ từ handler), 107 element, 77 nguồn binding. `sb_api_find` là
95
98
  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
96
99
  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
97
100
  `npm run codegen` kế tiếp.