sbuilder-mcp 0.82.5 → 0.82.6

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.82.6] - 2026-10-10
10
+
11
+ ### Fixed
12
+ - `sb_store` with `action: "app"` reports a successful app install as a success, reading the `appKey` the platform returns instead of a nonexistent `key`, so installing an app such as courses now creates its pages.
13
+
9
14
  ## [0.82.5] - 2026-10-10
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.82.6] - 2026-10-10
10
+
11
+ ### Fixed
12
+ - `sb_store` với `action: "app"` báo đúng thành công khi cài app, đọc `appKey` mà platform trả về thay vì `key` không tồn tại, nên cài app như courses giờ tạo đủ các trang.
13
+
9
14
  ## [0.82.5] - 2026-10-10
10
15
 
11
16
  ### Fixed
package/dist/tools/app.js CHANGED
@@ -105,8 +105,11 @@ export async function installApp(ctx, _session, siteId, key, opts) {
105
105
  : `Nothing was sent. "${key}" has no page scaffold — installing it is the whole flow.`,
106
106
  };
107
107
  }
108
+ // The record is `builtinapps.Install` — `{siteId, appKey, installedAt}`. This read
109
+ // `.key`, which the platform never sends, so EVERY install reported failure after
110
+ // succeeding and courses never got its pages (measured on a live platform).
108
111
  const installed = await send('POST', `/api/sites/${site}/builtin-apps/${encodeURIComponent(key)}`);
109
- if (installed.builtinApp?.key !== key) {
112
+ if (installed.builtinApp?.appKey !== key) {
110
113
  throw new Error(`sbuilder: the platform accepted installing "${key}" and returned no matching app`);
111
114
  }
112
115
  const got = await send('GET', `/api/sites/${site}/pages`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbuilder-mcp",
3
- "version": "0.82.5",
3
+ "version": "0.82.6",
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",