webcake-landing-mcp 1.7.0 → 1.8.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/dist/auth/oauth-server.js +18 -1
- package/dist/auth/renew.js +48 -0
- package/dist/changelog.json +7 -7
- package/dist/http.js +15 -11
- package/dist/persistence/config.js +14 -1
- package/dist/server.js +2 -0
- package/dist/smoke.js +26 -1
- package/dist/web-guide-scene.js +10 -4
- package/package.json +1 -1
|
@@ -29,6 +29,20 @@
|
|
|
29
29
|
*/
|
|
30
30
|
import { randomBytes, createHash } from "node:crypto";
|
|
31
31
|
import { getPg, ensureOAuthSchema } from "../persistence/postgres.js";
|
|
32
|
+
import { jwtExpired } from "../persistence/config.js";
|
|
33
|
+
// ---- Dead Webcake sessions -------------------------------------------------
|
|
34
|
+
// The OAuth tokens outlive the Webcake JWT they wrap. Once that JWT is expired (or the
|
|
35
|
+
// backend rejected it), refreshing would just re-issue the dead JWT; refusing it makes the
|
|
36
|
+
// client restart the full flow, i.e. open the Connect page again.
|
|
37
|
+
// ponytail: in-memory set, per process; move to Postgres/Redis if the server is scaled out.
|
|
38
|
+
const deadJwts = new Set();
|
|
39
|
+
export function markJwtDead(jwt) {
|
|
40
|
+
if (jwt)
|
|
41
|
+
deadJwts.add(jwt);
|
|
42
|
+
}
|
|
43
|
+
export function isDeadJwt(jwt) {
|
|
44
|
+
return !!jwt && (deadJwts.has(jwt) || jwtExpired(jwt));
|
|
45
|
+
}
|
|
32
46
|
// ---- TTLs (override via env where useful) ---------------------------------
|
|
33
47
|
const TEN_MIN = 10 * 60 * 1000;
|
|
34
48
|
const ACCESS_TTL = Number(process.env.WEBCAKE_OAUTH_ACCESS_TTL_MS) || 60 * 60 * 1000; // 1h
|
|
@@ -373,6 +387,9 @@ export async function exchangeToken(p) {
|
|
|
373
387
|
if (!r) {
|
|
374
388
|
return { ok: false, status: 400, error: "invalid_grant", error_description: "Unknown or expired refresh token." };
|
|
375
389
|
}
|
|
390
|
+
if (isDeadJwt(r.ljwt)) {
|
|
391
|
+
return { ok: false, status: 400, error: "invalid_grant", error_description: "Webcake session expired — sign in again (Connect)." };
|
|
392
|
+
}
|
|
376
393
|
return { ok: true, body: await issueTokens(store, r.ljwt, r.client_id, r.scope) };
|
|
377
394
|
}
|
|
378
395
|
return { ok: false, status: 400, error: "unsupported_grant_type", error_description: "grant_type must be authorization_code or refresh_token." };
|
|
@@ -383,7 +400,7 @@ export async function resolveAccessToken(accessToken) {
|
|
|
383
400
|
if (!accessToken)
|
|
384
401
|
return undefined;
|
|
385
402
|
const a = await (await getStore()).getAccess(accessToken);
|
|
386
|
-
return a
|
|
403
|
+
return a && !isDeadJwt(a.ljwt) ? a.ljwt : undefined;
|
|
387
404
|
}
|
|
388
405
|
/** Revoke an access or refresh token (best-effort; for /revoke). */
|
|
389
406
|
export async function revokeToken(t) {
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { configFromHeaders, jwtExpired, readConfig } from "../persistence/config.js";
|
|
2
|
+
import { markJwtDead } from "./oauth-server.js";
|
|
3
|
+
import { runLogin } from "./login.js";
|
|
4
|
+
// One browser Connect at a time; after a failed/abandoned one, wait before reopening so a
|
|
5
|
+
// looping agent doesn't spam tabs. ponytail: process-wide, fine for one stdio user.
|
|
6
|
+
let renewing = null;
|
|
7
|
+
let lastFail = 0;
|
|
8
|
+
export function renewInBrowser() {
|
|
9
|
+
if (!renewing && Date.now() - lastFail > 120_000) {
|
|
10
|
+
console.error("[webcake-landing] Token hết hạn — mở trình duyệt để Kết nối lại…");
|
|
11
|
+
renewing = runLogin([])
|
|
12
|
+
.then(() => true)
|
|
13
|
+
.catch((e) => {
|
|
14
|
+
lastFail = Date.now();
|
|
15
|
+
console.error("[webcake-landing] gia hạn token thất bại:", e?.message || e);
|
|
16
|
+
return false;
|
|
17
|
+
})
|
|
18
|
+
.finally(() => {
|
|
19
|
+
renewing = null;
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
return renewing ?? Promise.resolve(false);
|
|
23
|
+
}
|
|
24
|
+
/** Every backend call reports auth failures as "Backend returned 401…" in the tool result. */
|
|
25
|
+
export function isUnauthorized(result) {
|
|
26
|
+
return !!result?.content?.some((c) => typeof c?.text === "string" && /Backend returned 401\b/.test(c.text));
|
|
27
|
+
}
|
|
28
|
+
const jwtOf = (extra) => readConfig(configFromHeaders(extra?.requestInfo?.headers)).config?.jwt;
|
|
29
|
+
export function renewAuthOnExpiry(server, stdio) {
|
|
30
|
+
const tool = server.tool.bind(server);
|
|
31
|
+
server.tool = (...args) => {
|
|
32
|
+
const handler = args[args.length - 1];
|
|
33
|
+
args[args.length - 1] = async (...call) => {
|
|
34
|
+
const extra = call[call.length - 1];
|
|
35
|
+
if (stdio && jwtExpired(jwtOf(extra)))
|
|
36
|
+
await renewInBrowser();
|
|
37
|
+
const result = await handler(...call);
|
|
38
|
+
if (!isUnauthorized(result))
|
|
39
|
+
return result;
|
|
40
|
+
if (!stdio) {
|
|
41
|
+
markJwtDead(jwtOf(extra));
|
|
42
|
+
return result;
|
|
43
|
+
}
|
|
44
|
+
return (await renewInBrowser()) ? handler(...call) : result;
|
|
45
|
+
};
|
|
46
|
+
return tool(...args);
|
|
47
|
+
};
|
|
48
|
+
}
|
package/dist/changelog.json
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "1.8.0",
|
|
4
|
+
"d": "19/11/2026",
|
|
5
|
+
"type": "Added",
|
|
6
|
+
"en": "The stdio server now detects an expired or backend-rejected WEBCAKE_JWT and automatically reopens the browser Connect page, then retries the failing…",
|
|
7
|
+
"vi": "Server stdio nay tự phát hiện WEBCAKE_JWT đã hết hạn hoặc bị backend từ chối, tự mở lại trang Connect trên trình duyệt, rồi thử lại tool bị lỗi một…"
|
|
8
|
+
},
|
|
2
9
|
{
|
|
3
10
|
"v": "1.7.0",
|
|
4
11
|
"d": "05/11/2026",
|
|
@@ -33,12 +40,5 @@
|
|
|
33
40
|
"type": "Fixed",
|
|
34
41
|
"en": "The HTTP server now answers HEAD requests the same way it answers GET on every public read-only route (/privacy, /privacy-policy, /terms, /tos,…",
|
|
35
42
|
"vi": "HTTP server nay trả lời request HEAD giống như GET trên mọi route công khai chỉ-đọc (/privacy, /privacy-policy, /terms, /tos, /favicon.ico,…"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"v": "1.5.10",
|
|
39
|
-
"d": "13/10/2026",
|
|
40
|
-
"type": "Changed",
|
|
41
|
-
"en": "Rewrote every tool and parameter description (new_element, new_page_skeleton, validate_page, layout, ingest_html, ingest_url, search_images,…",
|
|
42
|
-
"vi": "Viết lại toàn bộ mô tả tool và tham số (new_element, new_page_skeleton, validate_page, layout, ingest_html, ingest_url, search_images, get_icon_svg,…"
|
|
43
43
|
}
|
|
44
44
|
]
|
package/dist/http.js
CHANGED
|
@@ -24,7 +24,7 @@ import { searchPexels, resolvePexelsKey } from "./persistence/pexels-client.js";
|
|
|
24
24
|
import { captureWithPlaywright, captureTilesWithPlaywright, isAllowedScreenshotUrl } from "./persistence/screenshot-playwright.js";
|
|
25
25
|
import { resolveEnv, ENVIRONMENTS, stripTrailingSlash } from "./persistence/config.js";
|
|
26
26
|
import { buildConnectUrl } from "./auth/login.js";
|
|
27
|
-
import { registerClient, startAuthorize, completeAuthorize, exchangeToken, resolveAccessToken, revokeToken, authServerMetadata, protectedResourceMetadata, } from "./auth/oauth-server.js";
|
|
27
|
+
import { registerClient, startAuthorize, completeAuthorize, exchangeToken, resolveAccessToken, isDeadJwt, revokeToken, authServerMetadata, protectedResourceMetadata, } from "./auth/oauth-server.js";
|
|
28
28
|
const MCP_PATH = "/mcp";
|
|
29
29
|
const IMAGES_PATH = "/api/images/search";
|
|
30
30
|
const RENDER_SCREENSHOT_PATH = "/api/render/screenshot";
|
|
@@ -474,24 +474,28 @@ export async function startHttpServer(port) {
|
|
|
474
474
|
// Accept credentials via ?jwt=/?api_base=/... (for clients that can't set headers).
|
|
475
475
|
applyQueryAuth(req);
|
|
476
476
|
// OAuth access token → resolve to the user's landing JWT and inject it as the
|
|
477
|
-
// normal x-webcake-jwt header, so persistence/config.ts is unchanged.
|
|
478
|
-
//
|
|
477
|
+
// normal x-webcake-jwt header, so persistence/config.ts is unchanged. It WINS over a
|
|
478
|
+
// ?jwt= / x-webcake-jwt: a Bearer from our OAuth flow is what the last Connect issued,
|
|
479
|
+
// so it's the renewed credential when the URL still carries an old, expired JWT.
|
|
479
480
|
const bearer = bearerFrom(req);
|
|
480
481
|
const oauthLjwt = await resolveAccessToken(bearer);
|
|
481
|
-
if (oauthLjwt
|
|
482
|
+
if (oauthLjwt) {
|
|
482
483
|
req.headers["x-webcake-jwt"] = oauthLjwt;
|
|
483
484
|
req.rawHeaders.push("x-webcake-jwt", oauthLjwt);
|
|
484
485
|
}
|
|
485
|
-
// Enforcement
|
|
486
|
-
//
|
|
487
|
-
//
|
|
488
|
-
//
|
|
489
|
-
|
|
486
|
+
// Enforcement: no credential, or an expired/rejected Webcake JWT, gets a 401 +
|
|
487
|
+
// WWW-Authenticate so Claude/ChatGPT (re)open the Connect page by themselves. In
|
|
488
|
+
// enforced mode a raw JWT must use x-webcake-jwt / ?jwt=, since Bearer is reserved
|
|
489
|
+
// for OAuth access tokens.
|
|
490
|
+
const given = req.headers["x-webcake-jwt"];
|
|
491
|
+
const dead = isDeadJwt(Array.isArray(given) ? given[0] : given);
|
|
492
|
+
if (OAUTH_ENFORCED && (given == null || dead)) {
|
|
490
493
|
res.writeHead(401, {
|
|
491
|
-
"www-authenticate": `Bearer resource_metadata="${publicBase(req)}${WELL_KNOWN_PR}"`,
|
|
494
|
+
"www-authenticate": `Bearer error="invalid_token", resource_metadata="${publicBase(req)}${WELL_KNOWN_PR}"`,
|
|
492
495
|
"content-type": "application/json",
|
|
493
496
|
});
|
|
494
|
-
|
|
497
|
+
const why = dead ? "Webcake session expired — reconnect (Connect) to renew it." : "Authentication required — connect via OAuth.";
|
|
498
|
+
return res.end(JSON.stringify({ error: "invalid_token", error_description: why }));
|
|
495
499
|
}
|
|
496
500
|
const sidHeader = req.headers["mcp-session-id"];
|
|
497
501
|
const sessionId = Array.isArray(sidHeader) ? sidHeader[0] : sidHeader;
|
|
@@ -43,6 +43,16 @@ export const ENVIRONMENTS = {
|
|
|
43
43
|
staging: { apiBase: "https://api.staging.webcake.io", appBase: "https://staging.webcake.io", builderBase: "https://builder.staging.webcake.io", previewBase: "https://staging.webcake.me", buildBase: undefined },
|
|
44
44
|
prod: { apiBase: "https://api.webcake.io", appBase: "https://webcake.io", builderBase: "https://builder.webcake.io", previewBase: "https://www.webcake.me", buildBase: "https://build.webcake.io" },
|
|
45
45
|
};
|
|
46
|
+
/** True when `token` is a JWT whose `exp` is past (with `skewSec` margin). Non-JWTs never count as expired. */
|
|
47
|
+
export function jwtExpired(token, skewSec = 30) {
|
|
48
|
+
try {
|
|
49
|
+
const exp = JSON.parse(Buffer.from(String(token).split(".")[1], "base64url").toString()).exp;
|
|
50
|
+
return typeof exp === "number" && exp * 1000 < Date.now() + skewSec * 1000;
|
|
51
|
+
}
|
|
52
|
+
catch {
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
46
56
|
export function stripTrailingSlash(s) {
|
|
47
57
|
return s?.replace(/\/+$/, "");
|
|
48
58
|
}
|
|
@@ -77,7 +87,10 @@ export function readConfig(overrides = {}) {
|
|
|
77
87
|
// A named environment supplies default base URLs; explicit values still win.
|
|
78
88
|
const preset = resolveEnv(overrides.env ?? process.env.WEBCAKE_ENV);
|
|
79
89
|
const base = overrides.base ?? process.env.WEBCAKE_API_BASE ?? preset?.apiBase ?? saved.base;
|
|
80
|
-
|
|
90
|
+
// An expired env JWT (pinned in the IDE config) loses to a fresher one saved by a re-login.
|
|
91
|
+
const envJwt = process.env.WEBCAKE_JWT;
|
|
92
|
+
const renewed = !!envJwt && jwtExpired(envJwt) && !!saved.jwt && !jwtExpired(saved.jwt);
|
|
93
|
+
const jwt = overrides.jwt ?? (renewed ? saved.jwt : envJwt) ?? saved.jwt;
|
|
81
94
|
const missing = [];
|
|
82
95
|
if (!base)
|
|
83
96
|
missing.push("WEBCAKE_API_BASE");
|
package/dist/server.js
CHANGED
|
@@ -10,6 +10,7 @@ import { readFileSync } from "node:fs";
|
|
|
10
10
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
11
11
|
import { landingDomain } from "./domains/landing/index.js";
|
|
12
12
|
import { registerTools } from "./tools/index.js";
|
|
13
|
+
import { renewAuthOnExpiry } from "./auth/renew.js";
|
|
13
14
|
import { ICON_DATA_URI, ICON_MIME, BRAND } from "./branding.js";
|
|
14
15
|
/**
|
|
15
16
|
* The published package version, read at runtime from package.json so the MCP
|
|
@@ -45,6 +46,7 @@ export function createServer({ allowLocalFiles = true } = {}) {
|
|
|
45
46
|
websiteUrl: BRAND.websiteUrl,
|
|
46
47
|
icons: [{ src: ICON_DATA_URI, mimeType: ICON_MIME, sizes: ["any"] }],
|
|
47
48
|
}, { instructions: landingDomain.instructions });
|
|
49
|
+
renewAuthOnExpiry(server, allowLocalFiles); // allowLocalFiles ⇔ stdio (the user's own machine)
|
|
48
50
|
registerTools(server, landingDomain, { allowLocalFiles });
|
|
49
51
|
return server;
|
|
50
52
|
}
|
package/dist/smoke.js
CHANGED
|
@@ -19,7 +19,9 @@ import { matchAccountDomain, normalizeDomain } from "./persistence/domain-match.
|
|
|
19
19
|
import { normalizePhoto, resolvePexelsKey, pexelsKeyFromHeaders, resolvePexelsProxyBase, buildSearchQuery, PEXELS_PROXY_DEFAULT, variantPixels, annotateVariantSizes } from "./persistence/pexels-client.js";
|
|
20
20
|
import { putDraft, getDraft, updateDraft, deleteDraft } from "./persistence/draft-cache.js";
|
|
21
21
|
import { buildConnectUrl, parseCallback } from "./auth/login.js";
|
|
22
|
-
import { redirectMatches } from "./auth/oauth-server.js";
|
|
22
|
+
import { redirectMatches, isDeadJwt, markJwtDead } from "./auth/oauth-server.js";
|
|
23
|
+
import { isUnauthorized, renewAuthOnExpiry } from "./auth/renew.js";
|
|
24
|
+
import { jwtExpired } from "./persistence/config.js";
|
|
23
25
|
import { isLocalPath, resolveLocalPath, sniffMime, localContentType } from "./tools/media.js";
|
|
24
26
|
import { buildMicrolinkUrl } from "./persistence/screenshot-client.js";
|
|
25
27
|
import { isPrivateHost, isAllowedScreenshotUrl, acquireSlot, releaseSlot, slotStats } from "./persistence/screenshot-playwright.js";
|
|
@@ -2549,6 +2551,29 @@ console.log("== publish_page: custom_domain matches the account's stored domain
|
|
|
2549
2551
|
check("domain: empty account list → no match", !matchAccountDomain("shop.vn", []).ok);
|
|
2550
2552
|
check("domain: normalizeDomain drops port + trailing dot", normalizeDomain(" Shop.VN.:8080/a ") === "shop.vn", normalizeDomain(" Shop.VN.:8080/a "));
|
|
2551
2553
|
}
|
|
2554
|
+
console.log("== auth: expired token → Connect again ==");
|
|
2555
|
+
{
|
|
2556
|
+
const jwt = (dSec) => `h.${Buffer.from(JSON.stringify({ exp: Math.floor(Date.now() / 1000) + dSec })).toString("base64url")}.s`;
|
|
2557
|
+
const OLD = jwt(-3600), NEW = jwt(3600);
|
|
2558
|
+
check("auth: jwtExpired reads exp; opaque tokens never expire", jwtExpired(OLD) && !jwtExpired(NEW) && !jwtExpired("opaque"));
|
|
2559
|
+
check("auth: expired JWT is dead (OAuth refresh + resolve refuse it)", isDeadJwt(OLD) && !isDeadJwt(NEW));
|
|
2560
|
+
markJwtDead("rejected-by-backend");
|
|
2561
|
+
check("auth: backend-rejected JWT is dead", isDeadJwt("rejected-by-backend"));
|
|
2562
|
+
check("auth: isUnauthorized spots a backend 401 in a tool result", isUnauthorized({ content: [{ type: "text", text: '{"ok":false,"error":"Backend returned 401: Unauthorized"}' }] }) && !isUnauthorized({ content: [{ type: "text", text: '{"error":"Backend returned 403"}' }] }));
|
|
2563
|
+
const saveEnv = process.env.WEBCAKE_JWT;
|
|
2564
|
+
process.env.WEBCAKE_JWT = OLD;
|
|
2565
|
+
check("auth: expired env JWT loses to a fresh override", readConfig({ env: "prod", jwt: NEW }).config?.jwt === NEW);
|
|
2566
|
+
if (saveEnv === undefined)
|
|
2567
|
+
delete process.env.WEBCAKE_JWT;
|
|
2568
|
+
else
|
|
2569
|
+
process.env.WEBCAKE_JWT = saveEnv;
|
|
2570
|
+
// Remote wrapper: a 401 result marks the request's JWT dead so the next /mcp call 401s into Connect.
|
|
2571
|
+
const fake = { tool: (...a) => (fake.h = a[a.length - 1]) };
|
|
2572
|
+
renewAuthOnExpiry(fake, false);
|
|
2573
|
+
fake.tool("t", async () => ({ content: [{ type: "text", text: "Backend returned 401: Unauthorized" }] }));
|
|
2574
|
+
await fake.h({}, { requestInfo: { headers: { "x-webcake-jwt": "remote-rejected", "x-webcake-env": "prod" } } });
|
|
2575
|
+
check("auth: remote 401 marks the session JWT dead", isDeadJwt("remote-rejected"));
|
|
2576
|
+
}
|
|
2552
2577
|
console.log("== server: MCP serverInfo.version follows package.json (no hardcoded constant) ==");
|
|
2553
2578
|
{
|
|
2554
2579
|
const pkg = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8"));
|
package/dist/web-guide-scene.js
CHANGED
|
@@ -121,7 +121,7 @@ export function sceneHtml(lang) {
|
|
|
121
121
|
.map((s, i) => `<li${i === 0 ? ' class="cur"' : ""}><button type="button" class="sc-step"><span class="sc-n">${i + 1}</span><span>${s.t}</span></button><div class="sc-dw"><p>${s.d}</p></div></li>`)
|
|
122
122
|
.join("\n ")}
|
|
123
123
|
</ol>
|
|
124
|
-
<button type="button" class="sc-ctl" hidden
|
|
124
|
+
<button type="button" class="sc-ctl" hidden>${c.pause}</button>
|
|
125
125
|
</div>
|
|
126
126
|
</section>`;
|
|
127
127
|
}
|
|
@@ -171,10 +171,13 @@ export const GLASS_CSS = `
|
|
|
171
171
|
.sc{position:relative;width:min(1180px,calc(100vw - 32px));margin-left:calc(50% - min(590px,calc(50vw - 16px)))}
|
|
172
172
|
.sc-stage{display:none;position:relative;overflow:hidden;height:clamp(440px,46vw,600px)}
|
|
173
173
|
.js .sc.on .sc-stage{display:block}
|
|
174
|
-
.sc-stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
|
|
174
|
+
.sc-stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:0;transition:opacity .45s ease}
|
|
175
|
+
/* Canvas + labels wait for the first drawn frame, so the labels never flash stacked at 0,0. */
|
|
176
|
+
.sc-tag{opacity:0}
|
|
177
|
+
.sc.ready .sc-stage canvas,.sc.ready .sc-tag{opacity:1}
|
|
175
178
|
.sc-tag{position:absolute;left:0;top:0;padding:5px 13px 6px;border-radius:14px;text-align:center;white-space:nowrap;line-height:1.25;
|
|
176
179
|
color:var(--ink);background:var(--glass-strong);box-shadow:inset 0 1px 0 var(--rim),0 8px 18px -12px rgba(0,0,0,.5);
|
|
177
|
-
-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);pointer-events:none;will-change:transform;transition:color .25s ease}
|
|
180
|
+
-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);pointer-events:none;will-change:transform;transition:color .25s ease,opacity .45s ease}
|
|
178
181
|
.sc-tag b{display:block;font-size:.84rem}
|
|
179
182
|
.sc-tag small{display:block;font-size:.72rem;font-weight:500;color:var(--mut)}
|
|
180
183
|
.sc-tag.on b{color:var(--g7)}
|
|
@@ -199,8 +202,10 @@ export const GLASS_CSS = `
|
|
|
199
202
|
color:var(--g7);font:inherit;font-size:.84rem;font-weight:700}
|
|
200
203
|
.sc-ctl:hover{background:rgba(127,160,140,.14)}
|
|
201
204
|
.sc-ctl[hidden]{display:none}
|
|
205
|
+
/* Reserve the play/pause row before three.js arrives so the panel doesn't grow. */
|
|
206
|
+
@media(prefers-reduced-motion:no-preference){.js .sc.on .sc-ctl[hidden]{display:block;visibility:hidden}}
|
|
202
207
|
@media(max-width:639px){.sc-stage{height:520px}.sc-tag small{font-size:.68rem}.nav{margin-left:0;margin-right:0}}
|
|
203
|
-
@media(prefers-reduced-motion:reduce){.sc-dw,.sc-step,.sc-n,.sc-tag{transition:none}}
|
|
208
|
+
@media(prefers-reduced-motion:reduce){.sc-dw,.sc-step,.sc-n,.sc-tag,.sc-stage canvas{transition:none}}
|
|
204
209
|
@media(prefers-reduced-transparency:reduce){
|
|
205
210
|
.glass,.iconbtn,.langsw,.btn.ghost,.btn.ghost:hover,.nav,.tip,.sc-tag{background-color:var(--card);background-image:none;
|
|
206
211
|
-webkit-backdrop-filter:none;backdrop-filter:none}
|
|
@@ -545,6 +550,7 @@ export const SCENE_JS = String.raw `
|
|
|
545
550
|
}
|
|
546
551
|
syncCtl();
|
|
547
552
|
renderer.render(scene,camera);
|
|
553
|
+
root.classList.add('ready');
|
|
548
554
|
}
|
|
549
555
|
function syncCtl(){
|
|
550
556
|
if(reduced)return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webcake-landing-mcp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "MCP server exposing Webcake landing-page element schemas + AI usage hints, and persisting LLM-generated page sources to a Webcake backend.",
|
|
5
5
|
"mcpName": "io.github.vuluu2k/webcake-landing-mcp",
|
|
6
6
|
"type": "module",
|