sbuilder-mcp 0.47.2 → 0.48.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,11 @@ 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.48.0] - 2026-09-14
10
+
11
+ ### Added
12
+ - `sb_review` now reports an `errorPage` gap on any site with two or more pages that has no published page of type `error`, since the platform's own fallback for a mistyped URL is a bare, unstyled "404 page not found" carrying none of the site's header, footer, or way back to the shop; the gap names whether an unpublished draft already exists.
13
+
9
14
  ## [0.47.2] - 2026-09-14
10
15
 
11
16
  ### Fixed
package/CHANGELOG.vi.md CHANGED
@@ -6,6 +6,11 @@ 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.48.0] - 2026-09-14
10
+
11
+ ### Added
12
+ - `sb_review` giờ báo lỗi thiếu `errorPage` trên mọi site có từ hai trang trở lên mà chưa có trang loại `error` được publish, vì cách nền tảng tự xử lý khi gặp URL gõ sai chỉ là một trang "404 page not found" trần trụi, không kiểu dáng, không mang theo header, footer hay đường quay lại cửa hàng của site; lỗi này nêu rõ liệu đã có sẵn một bản nháp chưa publish hay chưa.
13
+
9
14
  ## [0.47.2] - 2026-09-14
10
15
 
11
16
  ### Fixed
@@ -96,6 +96,42 @@ export function readinessGaps(input) {
96
96
  'globalRef instead of a copy, and one edit reaches every page.',
97
97
  });
98
98
  }
99
+ // A MISTYPED URL ANSWERS IN GO, NOT IN THE SHOP'S VOICE.
100
+ //
101
+ // storefront/errorpage.go: with no PUBLISHED page of type `error`, notFound
102
+ // falls through to http.NotFound — the bare "404 page not found" in plain
103
+ // text. No header, no footer, no way back to the shop, and nothing that looks
104
+ // like the site the shopper was just in.
105
+ //
106
+ // Unlike the completion page, which backstops itself with a built-in receipt
107
+ // (measured 200 on a live store that had none), this fallback carries none of
108
+ // the site. And unlike a dead link, nothing reports it: the only person who
109
+ // sees it is a visitor who already took a wrong turn and now has no way back.
110
+ //
111
+ // Asked of EVERY site, not only a store, and so placed here with siteChrome
112
+ // rather than below the gate — a mistyped URL is not a commerce question.
113
+ //
114
+ // TWO PAGES IS THE THRESHOLD, the same one siteChrome uses and for a related
115
+ // reason: a one-page site has no second address to mistype, no menu to follow
116
+ // a stale link out of, and nothing to put in a header that would make a 404
117
+ // look like the site. Below it this would be a nag at a brochure — which the
118
+ // silence contract in readiness.test.ts names outright.
119
+ if (pages && pages.length >= 2 && !published(pages, 'error')) {
120
+ const draft = drafted(pages, 'error');
121
+ gaps.push({
122
+ id: 'errorPage',
123
+ draft,
124
+ problem: 'A URL that does not exist answers with the platform\'s own bare "404 page not found" ' +
125
+ 'in plain text — no header, no footer, no way back to the shop. A shopper who follows ' +
126
+ 'a stale link or mistypes an address lands on a blank page that does not look like ' +
127
+ 'this site at all.',
128
+ fix: draft
129
+ ? 'Publish the error page that already exists.'
130
+ : 'Create a page of type "error" and publish it. It has no address of its own — the ' +
131
+ 'storefront serves it as the BODY of a 404 — so give it the site\'s header and ' +
132
+ 'footer and a link back to the home page.',
133
+ });
134
+ }
99
135
  if (!isStore(input))
100
136
  return gaps;
101
137
  if (pages && !published(pages, 'checkout')) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbuilder-mcp",
3
- "version": "0.47.2",
3
+ "version": "0.48.0",
4
4
  "description": "MCP server that designs and operates a Store Builder site — pages, data, theme and publish — through the platform's own API and live-edit protocol.",
5
5
  "mcpName": "io.github.vuluu2k/sbuilder-mcp",
6
6
  "type": "module",