webcake-storefront-mcp 1.36.2 → 1.38.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/web-guide.js CHANGED
@@ -12,9 +12,12 @@
12
12
  * SoftwareApplication + WebSite + FAQPage so links unfurl nicely and the page
13
13
  * can be indexed. ogImageSvg() is served at /og.svg; /og.png if you rasterize it.
14
14
  *
15
- * Self-contained (inline CSS + JS, no external fonts/trackers) so it loads instantly.
15
+ * Inline CSS + JS, no fonts or trackers, so it loads instantly. The only extra download
16
+ * is three.js from jsDelivr for the 3D scene, fetched when that section nears the
17
+ * viewport (see web-guide-scene.ts).
16
18
  */
17
19
  import { readFileSync } from "node:fs";
20
+ import { GLASS_CSS, SCENE_JS, sceneHtml } from "./web-guide-scene.js";
18
21
  // The SPA page (on the builder app) that shows the user their personal remote
19
22
  // connector link with login already built in — see builderx_spa McpRemoteStore.vue
20
23
  // (/mcp-remote-store). The raw MCP endpoint itself is {ENDPOINT} = <origin>/mcp.
@@ -146,14 +149,7 @@ const T = {
146
149
  leadPost: ". Không kéo-thả, không học gì thêm — nhanh hơn thuê người làm web cả tuần.",
147
150
  ctaStart: "Bắt đầu ngay",
148
151
  ctaStar: "Tặng sao trên GitHub",
149
- flowH2: "Chỉ 4 bước đơn giản",
150
- flow: [
151
- { icon: "bulb", t: "Bạn nói", s: "mô tả trang bạn muốn" },
152
- { icon: "brain", t: "Trợ lý AI", s: "Claude · Cursor · Windsurf…" },
153
- { icon: "server", t: "WebCake", s: "lưu & kiểm tra trang" },
154
- { icon: "window", t: "Cửa hàng của bạn", s: "trang web thật, live" },
155
- ],
156
- flowCap: "① Bạn nói mong muốn → ② Trợ lý AI dựng trang → ③ Bạn xem trước, chỉnh nếu thích → ④ Đăng lên là xong. Không cần biết lập trình, không cần kéo-thả block.",
152
+ flowH2: "Từ một câu nói đến trang web thật",
157
153
  howH2: "Tại sao dùng được ngay, không lo hỏng",
158
154
  how: [
159
155
  {
@@ -226,10 +222,10 @@ const T = {
226
222
  m1Steps: [
227
223
  "<b>Cài Node.js 18+</b> (miễn phí) nếu máy chưa có — tải tại <b>nodejs.org</b>.",
228
224
  "<b>Mở Terminal</b> (hoặc Command Prompt), dán lệnh sau và nhấn Enter:<pre>" + INSTALL_CMD + "</pre>",
229
- "<b>Làm theo hướng dẫn hiện ra:</b> chọn ứng dụng bạn dùng (Claude, Cursor, Windsurf…) → đăng nhập tài khoản WebCake khi được hỏi.",
225
+ "<b>Bấm “Kết nối” trên trang vừa mở ra</b> trong trình duyệt (đăng nhập WebCake nếu được hỏi). Công cụ tự cài vào ứng dụng AI có trên máy bạn (Claude, Cursor, Windsurf…).",
230
226
  '<b>Mở lại ứng dụng AI.</b> Khi thấy <code class="inl">webcake-storefront</code> xuất hiện trong danh sách công cụ là bạn đã kết nối thành công — hãy thử nói "Tạo cho tôi trang sản phẩm…"',
231
227
  ],
232
- m1Note: "Muốn cài cho nhiều ứng dụng cùng lúc — dùng lệnh này:",
228
+ m1Note: "Cần cài cho mọi ứng dụng, kể cả ứng dụng chưa có trên máy, hoặc chạy bằng script? Dùng lệnh này:",
233
229
  m2Tag: "Cách ② · Dùng link — không cần cài gì",
234
230
  m2Sub: "Phù hợp khi bạn dùng Claude trên web (claude.ai), máy không cài được phần mềm, hoặc dùng theo nhóm.",
235
231
  m2Steps: [
@@ -308,14 +304,7 @@ const T = {
308
304
  leadPost: ". No dragging blocks, nothing to learn — faster than waiting weeks for a web agency.",
309
305
  ctaStart: "Get started",
310
306
  ctaStar: "Star on GitHub",
311
- flowH2: "Just 4 simple steps",
312
- flow: [
313
- { icon: "bulb", t: "You describe", s: "what you want the page to be" },
314
- { icon: "brain", t: "AI assistant", s: "Claude · Cursor · Windsurf…" },
315
- { icon: "server", t: "WebCake", s: "saves & checks the page" },
316
- { icon: "window", t: "Your store", s: "a real, live page" },
317
- ],
318
- flowCap: "① You say what you want → ② The AI builds the page → ③ You preview it, tweak if you like → ④ Publish and you're done. No coding, no drag-and-drop.",
307
+ flowH2: "From one sentence to a live page",
319
308
  howH2: "Why you can trust it straight away",
320
309
  how: [
321
310
  {
@@ -388,10 +377,10 @@ const T = {
388
377
  m1Steps: [
389
378
  "<b>Install Node.js 18+</b> (free) if you don't have it yet — get it at <b>nodejs.org</b>.",
390
379
  "<b>Open Terminal</b> (or Command Prompt), paste the command below and press Enter:<pre>" + INSTALL_CMD + "</pre>",
391
- "<b>Follow the prompts that appear:</b> pick your app (Claude, Cursor, Windsurf…) → sign in to your WebCake account when asked.",
380
+ "<b>Click “Connect” on the page that opens</b> in your browser (sign in to WebCake if asked). The tool sets itself up in the AI apps on your computer (Claude, Cursor, Windsurf…).",
392
381
  '<b>Reopen your AI app.</b> When you see <code class="inl">webcake-storefront</code> in the tools list, you\'re connected — try saying "Create a product page for…"',
393
382
  ],
394
- m1Note: "Want to set up multiple apps at once — use this command:",
383
+ m1Note: "Need every app configured, even ones not on this computer yet, or running from a script? Use this command:",
395
384
  m2Tag: "Way ② · Use a link — nothing to install",
396
385
  m2Sub: "Best if you use Claude on the web (claude.ai), can't install software, or work as a team.",
397
386
  m2Steps: [
@@ -675,26 +664,7 @@ export function guideHtml(origin, lang = "vi") {
675
664
  .feat li{display:flex;gap:13px;align-items:center;font-size:.97rem;padding:13px 16px}
676
665
  .feat li b{color:var(--ink)}
677
666
  .cta-row{display:flex;gap:12px;flex-wrap:wrap;margin:22px 0 6px}
678
- .flow{display:flex;align-items:flex-start;gap:0;padding:24px 18px 18px;overflow-x:auto}
679
- .flow .node{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;width:104px}
680
- .flow .node .ic{width:54px;height:54px;border-radius:16px}
681
- .flow .node .ic .i{width:27px;height:27px}
682
- .flow .node b{font-size:.93rem}
683
- .flow .node span{font-size:.75rem;color:var(--mut)}
684
- .flow .wire{flex:1 1 auto;min-width:30px;position:relative;height:2px;margin-top:27px;
685
- background:linear-gradient(90deg,var(--line),rgba(16,139,103,.45),var(--line))}
686
- .flow .wire .pkt{position:absolute;top:50%;left:0;width:9px;height:9px;margin:-5px 0 0 -4px;border-radius:50%;
687
- background:var(--g);box-shadow:0 0 9px 1px rgba(16,139,103,.7)}
688
- .flow .wire::after{content:"";position:absolute;right:-1px;top:50%;width:7px;height:7px;margin-top:-4px;
689
- border-top:2px solid var(--g7);border-right:2px solid var(--g7);transform:rotate(45deg)}
690
667
  .flow-cap{color:var(--mut);font-size:.9rem;margin:2px 2px 0;max-width:68ch}
691
- @media(prefers-reduced-motion:no-preference){
692
- .flow .wire .pkt{animation:pkt 2.4s ease-in-out infinite}
693
- @keyframes pkt{0%{left:0;opacity:0}12%{opacity:1}88%{opacity:1}100%{left:100%;opacity:0}}
694
- .flow .node .ic{animation:nodepop 2.4s ease-in-out infinite}
695
- }
696
- @media(prefers-reduced-motion:reduce){.flow .wire .pkt{display:none}}
697
- @keyframes nodepop{0%,100%{box-shadow:none}50%{box-shadow:0 0 0 4px rgba(16,139,103,.12)}}
698
668
  .btn{display:inline-flex;align-items:center;gap:9px;padding:11px 19px;border-radius:11px;cursor:pointer;
699
669
  background:var(--g);color:#fff;text-decoration:none;font-weight:700;font-size:.93rem;
700
670
  box-shadow:0 4px 12px -4px rgba(16,139,103,.5);transition:transform .15s ease,background .15s ease}
@@ -788,16 +758,6 @@ export function guideHtml(origin, lang = "vi") {
788
758
  .cl-wrap{padding:18px 16px 10px}
789
759
  .langsw{padding:6px 10px}
790
760
  .uses li,.feat li{padding:14px}
791
- .flow{flex-direction:column;align-items:stretch;overflow:visible;padding:16px}
792
- .flow .node{flex-direction:row;width:auto;align-items:center;gap:13px;text-align:left}
793
- .flow .node .ic{width:44px;height:44px;border-radius:13px}
794
- .flow .node .ic .i{width:22px;height:22px}
795
- .flow .node b{font-size:.95rem}
796
- .flow .node span{font-size:.8rem}
797
- .flow .wire{flex:0 0 auto;width:2px;height:20px;min-width:0;margin:3px 0 3px 21px;
798
- background:linear-gradient(var(--line),var(--g))}
799
- .flow .wire::after{content:none}
800
- .flow .wire .pkt{display:none}
801
761
  }
802
762
  @media(prefers-reduced-motion:no-preference){
803
763
  .js .reveal{opacity:0;transform:translateY(24px);
@@ -806,6 +766,7 @@ export function guideHtml(origin, lang = "vi") {
806
766
  .hero-in{animation:rise2 .8s cubic-bezier(.2,.7,.2,1) both}
807
767
  @keyframes rise2{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:none}}
808
768
  }
769
+ ${GLASS_CSS}
809
770
  </style></head>
810
771
  <body>
811
772
  <div class="blobs"><b></b><b></b><b></b></div>
@@ -837,15 +798,7 @@ export function guideHtml(origin, lang = "vi") {
837
798
  </nav>
838
799
 
839
800
  <h2 id="flow" class="reveal">${t.flowH2}</h2>
840
- <div class="glass flow reveal">
841
- ${t.flow
842
- .map((n, i) => `<div class="node"><span class="ic" style="animation-delay:${(i * 0.8).toFixed(1)}s">${icon(n.icon)}</span><b>${n.t}</b><span>${n.s}</span></div>` +
843
- (i < t.flow.length - 1
844
- ? `<div class="wire"><i class="pkt" style="animation-delay:${(i * 0.8).toFixed(1)}s"></i></div>`
845
- : ""))
846
- .join("\n ")}
847
- </div>
848
- <p class="flow-cap reveal">${t.flowCap}</p>
801
+ ${sceneHtml(L)}
849
802
 
850
803
  <h2 id="how" class="reveal">${t.howH2}</h2>
851
804
  <div class="grid">
@@ -987,6 +940,7 @@ export function guideHtml(origin, lang = "vi") {
987
940
  }
988
941
  })();
989
942
  </script>
943
+ <script>${SCENE_JS}</script>
990
944
  </body></html>`;
991
945
  }
992
946
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webcake-storefront-mcp",
3
- "version": "1.36.2",
3
+ "version": "1.38.0",
4
4
  "description": "MCP server for the WebCake/StoreCake storefront builder — page CRUD, page authoring, products, orders, and more",
5
5
  "mcpName": "io.github.vuluu2k/webcake-storefront-mcp",
6
6
  "license": "MIT",