@decocms/parity 0.28.0 → 0.28.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 +11 -0
- package/dist/cli.js +6 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
7
7
|
|
|
8
|
+
## [0.28.1] — 2026-08-24
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
* **`PARITY_STUDIO_URL` accepts a full MCP endpoint.** Studio deployments are
|
|
13
|
+
org-scoped (`https://studio.decocms.com/api/<org>/mcp/self`), and the client
|
|
14
|
+
appended `/mcp/self` to whatever was set — hitting the root path instead, which
|
|
15
|
+
404s on a real deployment. It now uses the value as-is when it already points at
|
|
16
|
+
an `/mcp/` endpoint and only appends for a bare host. Note that on an org-scoped
|
|
17
|
+
URL the **organization comes from the URL**, not only from the token.
|
|
18
|
+
|
|
8
19
|
## [0.28.0] — 2026-08-24
|
|
9
20
|
|
|
10
21
|
The Studio board stops being a one-way report: the client can now see the fixes
|
package/dist/cli.js
CHANGED
|
@@ -65248,7 +65248,11 @@ function studioConfigFromEnv(env = process.env) {
|
|
|
65248
65248
|
const token = env.PARITY_STUDIO_TOKEN;
|
|
65249
65249
|
if (!url || !token)
|
|
65250
65250
|
return null;
|
|
65251
|
-
return { url: url
|
|
65251
|
+
return { url: mcpEndpoint(url), token };
|
|
65252
|
+
}
|
|
65253
|
+
function mcpEndpoint(url) {
|
|
65254
|
+
const trimmed = url.replace(/\/+$/, "");
|
|
65255
|
+
return /\/mcp(\/|$)/.test(trimmed) ? trimmed : `${trimmed}/mcp/self`;
|
|
65252
65256
|
}
|
|
65253
65257
|
function cardTitle(path) {
|
|
65254
65258
|
return path;
|
|
@@ -65277,7 +65281,7 @@ function parseRpcBody(body) {
|
|
|
65277
65281
|
return JSON.parse(last2);
|
|
65278
65282
|
}
|
|
65279
65283
|
var callTool2 = async (cfg, name, args) => {
|
|
65280
|
-
const res = await fetch(
|
|
65284
|
+
const res = await fetch(cfg.url, {
|
|
65281
65285
|
method: "POST",
|
|
65282
65286
|
headers: {
|
|
65283
65287
|
"content-type": "application/json",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@decocms/parity",
|
|
3
|
-
"version": "0.28.
|
|
3
|
+
"version": "0.28.1",
|
|
4
4
|
"description": "E2E parity validator for site migrations. Compares prod vs cand and reports UI, functional, SEO, visual, and Web Vitals deltas with an LLM-ranked HTML report.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|