From 83a214a01f740c1ccb4ae2dcfc41bce8aeb245b6 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Fri, 27 Nov 2026 21:35:33 +0000 Subject: [PATCH 1/3] chore(mcp-server): upgrade xmcp from 0.6.4 to 1.13.0 1.13.0 is the newest 1.x release the workspace's seven-day maturity gate will install, and the first line that serves src/skills. The build now depends on the matching @xmcp-dev/compiler. The bundler hook merges xmcp's rspack 2 aliases instead of replacing them, points Zod at the hoisted workspace copy, and keeps the stdio entry silent on stderr. --- core-web/apps/mcp-server/README.md | 2 +- core-web/apps/mcp-server/package.json | 2 +- .../mcp-server/scripts/check-tools-dir.mjs | 14 +- core-web/apps/mcp-server/xmcp.config.ts | 89 +++- core-web/package.json | 3 +- core-web/pnpm-lock.yaml | 450 +++++++++++++++--- core-web/pnpm-workspace.yaml | 6 +- 7 files changed, 468 insertions(+), 98 deletions(-) diff --git a/core-web/apps/mcp-server/README.md b/core-web/apps/mcp-server/README.md index bd87ffd2489c..9cb2184ccedc 100644 --- a/core-web/apps/mcp-server/README.md +++ b/core-web/apps/mcp-server/README.md @@ -97,7 +97,7 @@ Before setting up the MCP server, you need these environment variables to connec Get up and running with the dotCMS MCP Server in minutes. -The server runs on both **Node.js** (≥20) and **Bun** — the correct sandbox implementation is selected automatically at runtime. +The server runs on both **Node.js** (≥22.12, the version xmcp 1.10.2 and later require) and **Bun** — the correct sandbox implementation is selected automatically at runtime. ### The short way diff --git a/core-web/apps/mcp-server/package.json b/core-web/apps/mcp-server/package.json index c77505f02e49..c330145e85d7 100644 --- a/core-web/apps/mcp-server/package.json +++ b/core-web/apps/mcp-server/package.json @@ -42,7 +42,7 @@ }, "homepage": "https://github.com/dotCMS/core/tree/main/core-web/apps/mcp-server", "engines": { - "node": ">=20.0.0" + "node": ">=22.12.0" }, "dependencies": {}, "publishConfig": { diff --git a/core-web/apps/mcp-server/scripts/check-tools-dir.mjs b/core-web/apps/mcp-server/scripts/check-tools-dir.mjs index 6e0870285c8c..f68b7e20740a 100644 --- a/core-web/apps/mcp-server/scripts/check-tools-dir.mjs +++ b/core-web/apps/mcp-server/scripts/check-tools-dir.mjs @@ -2,12 +2,14 @@ * Fails the build when `src/tools/` holds anything that is not a tool. * * xmcp loads EVERY module under the configured tools path (see `paths.tools` in - * xmcp.config.ts) and awaits them all at startup — its discovery glob is hard-coded to - * `/**\/*.{ts,tsx}` and offers no exclude option, so a colocated test file is - * bundled into the published artifact and executed as a tool. `describe` does not exist at - * runtime, so the server dies with `ReferenceError: describe is not defined` before it reads - * any configuration, for every user. That is exactly what shipped as @dotcms/mcp-server@0.1.0 - * (issue #37337). + * xmcp.config.ts) and awaits them all at startup. Confirmed against the 1.13 compiler + * (`packages/compiler/src/compiler/index.ts`): the discovery glob is still hard-coded to + * `/**\/*.{ts,tsx}` and still has no exclude option. A file with no default + * export is skipped only after that module has been evaluated, so a colocated test file + * is bundled into the published artifact and executed as a tool. `describe` does not exist + * at runtime, so the server dies with `ReferenceError: describe is not defined` before it + * reads any configuration, for every user. That is exactly what shipped as + * @dotcms/mcp-server@0.1.0 (issue #37337). * * The rule this enforces: tests for tool code live next to the logic they cover — in * `libs/sdk/ai/src/tools/` (`@dotcms/ai/tools`), where the tools are defined — never in diff --git a/core-web/apps/mcp-server/xmcp.config.ts b/core-web/apps/mcp-server/xmcp.config.ts index 32433c2fefb9..11e17c8b7e40 100644 --- a/core-web/apps/mcp-server/xmcp.config.ts +++ b/core-web/apps/mcp-server/xmcp.config.ts @@ -1,25 +1,94 @@ +import { BannerPlugin } from 'rspack'; import { type XmcpConfig } from 'xmcp'; +/** + * xmcp 1.x aliases are either a map or a list of `{ name, alias }` pairs. + * Replacing the map drops the aliases the compiler adds for `zod`, `node:` + * builtins and its `.xmcp` runtime shims, and the bundle then fails to resolve + * them. Append ours on top of whichever shape arrived. + * + * This file is compiled by xmcp in a sandbox that can import nothing but + * `rspack`, so the paths below are plain strings. + */ +function withAliases( + existing: unknown, + extra: Record +): Record | Array> { + if (Array.isArray(existing)) { + return [ + ...existing, + ...Object.entries(extra).map(([name, alias]) => ({ name, alias })) + ]; + } + + const record = + existing && typeof existing === 'object' + ? { ...(existing as Record) } + : {}; + + return { ...record, ...extra }; +} + +// `xmcp build` runs with this app as the working directory (see project.json). +const WORKSPACE_ROOT = process.cwd() + '/../..'; +const AI = WORKSPACE_ROOT + '/libs/sdk/ai/src'; +// Zod is hoisted to the workspace root. xmcp only aliases it when +// `/node_modules/zod` exists, which pnpm does not create for this app, +// so the bundle and the runtime would otherwise each get their own copy. +const ZOD = WORKSPACE_ROOT + '/node_modules/zod'; + const config: XmcpConfig = { stdio: true, paths: { tools: './src/tools', prompts: false, - resources: false + // Resource modules stay off. Skill files, added later, are resources + // the skills extension registers on its own. + resources: false, + // 1.10+ serves `src/skills/` by default. Keep that off until a skill + // directory is actually part of this server. + skills: false }, bundler: (rspackConfig) => { + // The published entry stays `dist/apps/mcp-server/stdio.js`. xmcp 1.x + // still names the stdio entry `stdio` and emits `[name].js`, with the + // shebang added by its BannerPlugin, so only the directory moves. if (rspackConfig.output) { - rspackConfig.output.path = process.cwd() + '/../../dist/apps/mcp-server'; + rspackConfig.output.path = WORKSPACE_ROOT + '/dist/apps/mcp-server'; } - rspackConfig.resolve = rspackConfig.resolve || {}; - rspackConfig.resolve.alias = { + rspackConfig.resolve = rspackConfig.resolve ?? {}; + // xmcp 1.x runs dotenv on startup and logs "injected env … from .env" to + // stderr even when the file is absent. On a stdio server that line is + // protocol noise: the previous runtime was silent, and the smoke test + // requires stderr to stay empty. Quiet is the default; DOTENV_CONFIG_QUIET + // still wins when a caller sets it. The shebang has to stay the first + // line, so it and the assignment share one banner. A second BannerPlugin + // is prepended and pushes the shebang off line 1, which rspack then + // refuses to parse. + rspackConfig.plugins = (rspackConfig.plugins ?? []).filter( + (plugin) => plugin?.constructor?.name !== 'BannerPlugin' + ); + rspackConfig.plugins.push( + new BannerPlugin({ + banner: + '#!/usr/bin/env node\nif(process.env.DOTENV_CONFIG_QUIET==null)process.env.DOTENV_CONFIG_QUIET="true";', + raw: true, + include: /^stdio\.js$/ + }) + ); + rspackConfig.resolve.alias = withAliases(rspackConfig.resolve.alias, { + zod: ZOD, + 'zod/v3': ZOD + '/v3', + 'zod/v4-mini': ZOD + '/v4-mini', // The front door lives at the /runtime subpath; @dotcms/ai is a pure namespace. - '@dotcms/ai/runtime': process.cwd() + '/../../libs/sdk/ai/src/runtime.ts', - '@dotcms/ai/sandbox': process.cwd() + '/../../libs/sdk/ai/src/sandbox/index.ts', - '@dotcms/ai/adapter': process.cwd() + '/../../libs/sdk/ai/src/adapter/index.ts', - '@dotcms/ai/spec': process.cwd() + '/../../libs/sdk/ai/src/spec/index.ts', - '@dotcms/ai/tools': process.cwd() + '/../../libs/sdk/ai/src/tools/index.ts' - }; + // xmcp reads paths only from this app's tsconfig, which extends the base + // config and does not repeat them, so the aliases have to be set here. + '@dotcms/ai/runtime': AI + '/runtime.ts', + '@dotcms/ai/sandbox': AI + '/sandbox/index.ts', + '@dotcms/ai/adapter': AI + '/adapter/index.ts', + '@dotcms/ai/spec': AI + '/spec/index.ts', + '@dotcms/ai/tools': AI + '/tools/index.ts' + }); return rspackConfig; } }; diff --git a/core-web/package.json b/core-web/package.json index 82af3154ab77..df000ced4ea2 100644 --- a/core-web/package.json +++ b/core-web/package.json @@ -185,7 +185,7 @@ "turndown": "7.2.0", "uuid": "9.0.0", "vue": "^3.5.13", - "xmcp": "0.6.4", + "xmcp": "1.13.0", "yaml": "^2.8.3", "zod": "4.6.6", "zone.js": "0.15.1" @@ -259,6 +259,7 @@ "@vue/eslint-config-prettier": "^10.2.0", "@vue/eslint-config-typescript": "^14.6.0", "@vue/test-utils": "^2.4.6", + "@xmcp-dev/compiler": "1.13.0", "analytics": "0.8.14", "angular-eslint": "22.1.0", "babel-loader": "10.0.0", diff --git a/core-web/pnpm-lock.yaml b/core-web/pnpm-lock.yaml index 495f4119c608..caab9afa0009 100644 --- a/core-web/pnpm-lock.yaml +++ b/core-web/pnpm-lock.yaml @@ -283,7 +283,7 @@ importers: version: 21.1.1(@angular/core@22.2.4(@angular/compiler@22.2.4)(rxjs@7.8.2)(zone.js@0.15.1))(rxjs@7.8.2) '@nx/angular': specifier: 23.3.1 - version: 23.3.1(4ec0773ccfb21022cd48e21d3be67d76) + version: 23.3.1(3f2df04d14d32fd8e9449ce599bd10fb) '@nx/playwright': specifier: 23.3.1 version: 23.3.1(@babel/traverse@7.29.7(supports-color@8.1.1))(@nx/jest@23.3.1(fda597c08b4ee672857cc79a5c8780c6))(@playwright/test@1.36.0)(@swc-node/register@1.11.1(@swc/core@1.15.8(@swc/helpers@0.5.23))(@swc/types@0.1.27)(supports-color@8.1.1)(typescript@6.0.3))(@swc/core@1.15.8(@swc/helpers@0.5.23))(@zkochan/js-yaml@0.0.7)(eslint@9.39.4(jiti@2.4.2)(supports-color@8.1.1))(nx@23.3.1(@swc-node/register@1.11.1(@swc/core@1.15.8(@swc/helpers@0.5.23))(@swc/types@0.1.27)(supports-color@8.1.1)(typescript@6.0.3))(@swc/core@1.15.8(@swc/helpers@0.5.23)))(supports-color@8.1.1) @@ -585,8 +585,8 @@ importers: specifier: ^3.5.13 version: 3.5.42(typescript@6.0.3) xmcp: - specifier: 0.6.4 - version: 0.6.4(@swc/helpers@0.5.23)(postcss@8.5.23)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(supports-color@8.1.1)(tslib@2.3.0)(webpack@5.109.2(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(postcss@8.5.23)(uglify-js@3.19.3))(zod@4.6.6) + specifier: 1.13.0 + version: 1.13.0(@modelcontextprotocol/server@2.3.1)(jose@6.2.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(zod@4.6.6) yaml: specifier: ^2.8.3 version: 2.9.0 @@ -599,10 +599,10 @@ importers: devDependencies: '@analogjs/vite-plugin-angular': specifier: 2.9.5 - version: 2.9.5(@angular-devkit/build-angular@22.2.5(7a06e00806313c3dc5ec1004bc966938))(@angular/build@22.2.5(1cf28a74d8d726795d0e6af3a2e94218))(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.3)(vite@7.3.7(@types/node@20.19.9)(jiti@2.4.2)(less@4.9.1(supports-color@8.1.1))(lightningcss@1.33.0)(sass-embedded@1.100.0)(sass@1.56.2)(terser@5.28.1)(tsx@4.19.0)(yaml@2.9.0)) + version: 2.9.5(@angular-devkit/build-angular@22.2.5(c2af50e6c58327b9cb3be8110a559476))(@angular/build@22.2.5(1cf28a74d8d726795d0e6af3a2e94218))(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.3)(vite@7.3.7(@types/node@20.19.9)(jiti@2.4.2)(less@4.9.1(supports-color@8.1.1))(lightningcss@1.33.0)(sass-embedded@1.100.0)(sass@1.56.2)(terser@5.28.1)(tsx@4.19.0)(yaml@2.9.0)) '@analogjs/vitest-angular': specifier: 2.9.5 - version: 2.9.5(@analogjs/vite-plugin-angular@2.9.5(@angular-devkit/build-angular@22.2.5(7a06e00806313c3dc5ec1004bc966938))(@angular/build@22.2.5(1cf28a74d8d726795d0e6af3a2e94218))(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.3)(vite@7.3.7(@types/node@20.19.9)(jiti@2.4.2)(less@4.9.1(supports-color@8.1.1))(lightningcss@1.33.0)(sass-embedded@1.100.0)(sass@1.56.2)(terser@5.28.1)(tsx@4.19.0)(yaml@2.9.0)))(@angular-devkit/architect@0.2202.5(chokidar@5.0.0))(@angular-devkit/schematics@22.2.5(chokidar@5.0.0))(vitest@4.1.12)(zone.js@0.15.1) + version: 2.9.5(@analogjs/vite-plugin-angular@2.9.5(@angular-devkit/build-angular@22.2.5(c2af50e6c58327b9cb3be8110a559476))(@angular/build@22.2.5(1cf28a74d8d726795d0e6af3a2e94218))(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.3)(vite@7.3.7(@types/node@20.19.9)(jiti@2.4.2)(less@4.9.1(supports-color@8.1.1))(lightningcss@1.33.0)(sass-embedded@1.100.0)(sass@1.56.2)(terser@5.28.1)(tsx@4.19.0)(yaml@2.9.0)))(@angular-devkit/architect@0.2202.5(chokidar@5.0.0))(@angular-devkit/schematics@22.2.5(chokidar@5.0.0))(vitest@4.1.12)(zone.js@0.15.1) '@analytics/queue-utils': specifier: 0.1.3 version: 0.1.3 @@ -611,7 +611,7 @@ importers: version: 0.1.1 '@angular-devkit/build-angular': specifier: 22.2.5 - version: 22.2.5(7a06e00806313c3dc5ec1004bc966938) + version: 22.2.5(c2af50e6c58327b9cb3be8110a559476) '@angular-devkit/core': specifier: 22.2.5 version: 22.2.5(chokidar@5.0.0) @@ -710,7 +710,7 @@ importers: version: 23.3.1(@swc-node/register@1.11.1(@swc/core@1.15.8(@swc/helpers@0.5.23))(@swc/types@0.1.27)(supports-color@8.1.1)(typescript@6.0.3))(@swc/core@1.15.8(@swc/helpers@0.5.23)) '@nxext/stencil': specifier: 21.0.0 - version: 21.0.0(72565d7ec82dcba346c51baa7b7ef578) + version: 21.0.0(cd80088c2e8c62730cc5f7f3f514a088) '@openng/spectator': specifier: 1.0.1 version: 1.0.1(@angular/animations@22.2.4(@angular/core@22.2.4(@angular/compiler@22.2.4)(rxjs@7.8.2)(zone.js@0.15.1)))(@angular/common@22.2.4(@angular/core@22.2.4(@angular/compiler@22.2.4)(rxjs@7.8.2)(zone.js@0.15.1))(rxjs@7.8.2))(@angular/router@22.2.4(@angular/common@22.2.4(@angular/core@22.2.4(@angular/compiler@22.2.4)(rxjs@7.8.2)(zone.js@0.15.1))(rxjs@7.8.2))(@angular/core@22.2.4(@angular/compiler@22.2.4)(rxjs@7.8.2)(zone.js@0.15.1))(@angular/platform-browser@22.2.4(@angular/animations@22.2.4(@angular/core@22.2.4(@angular/compiler@22.2.4)(rxjs@7.8.2)(zone.js@0.15.1)))(@angular/common@22.2.4(@angular/core@22.2.4(@angular/compiler@22.2.4)(rxjs@7.8.2)(zone.js@0.15.1))(rxjs@7.8.2))(@angular/core@22.2.4(@angular/compiler@22.2.4)(rxjs@7.8.2)(zone.js@0.15.1)))(rxjs@7.8.2)) @@ -801,6 +801,9 @@ importers: '@vue/test-utils': specifier: ^2.4.6 version: 2.4.11(@vue/compiler-dom@3.5.42)(@vue/server-renderer@3.5.42)(vue@3.5.42(typescript@6.0.3)) + '@xmcp-dev/compiler': + specifier: 1.13.0 + version: 1.13.0(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23)(postcss@8.5.23)(webpack@5.109.2(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(postcss@8.5.23)(uglify-js@3.19.3))(xmcp@1.13.0(@modelcontextprotocol/server@2.3.1)(jose@6.2.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(zod@4.6.6))(zod@4.6.6) analytics: specifier: 0.8.14 version: 0.8.14(@types/dlv@1.1.5) @@ -2738,6 +2741,9 @@ packages: '@emnapi/core@2.0.0-alpha.3': resolution: {integrity: sha512-AZypUeJ/yByuxyS7BlSNRDOMLMlROYtjYdIAuBmJssVz1UJDSeYxLrdizhXCFYhedC5bqd/ASy8EuNXbVVXp9g==, tarball: https://registry.npmjs.org/@emnapi/core/-/core-2.0.0-alpha.3.tgz} + '@emnapi/core@2.0.0-beta.3': + resolution: {integrity: sha512-KA+gOBtbifRATmUa/Gpf5C2B2EJ0r4brHUT3XSgACeHREcuiObXH56xd+B3fFsEFbUT04VBEe6MuZiCtMp0tQg==, tarball: https://registry.npmjs.org/@emnapi/core/-/core-2.0.0-beta.3.tgz} + '@emnapi/runtime@1.10.0': resolution: {integrity: sha512-ewvYlk86xUoGI0zQRNq/mC+16R1QeDlKQy21Ki3oSYXNgLb45GV1P6A0M+/s6nyCuNDqe5VpaY84BzXGwVbwFA==, tarball: https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.10.0.tgz} @@ -2753,6 +2759,9 @@ packages: '@emnapi/runtime@2.0.0-alpha.3': resolution: {integrity: sha512-hFPAhMUjJD9BSyCANEISPOogeXC9Zo9ZQl7L6vKnaVsMkCtzznaW/naYypeyl0Gv5rYfWYsZbpixTMpjDJzQeA==, tarball: https://registry.npmjs.org/@emnapi/runtime/-/runtime-2.0.0-alpha.3.tgz} + '@emnapi/runtime@2.0.0-beta.3': + resolution: {integrity: sha512-ayb/PyyLzpwRyFVxeC0uoEHu59QlB1iWGcGsOpXQcaB/Dc+uGfBmNmpCHp3HmTT0t8lSsMmg3j7+tdJW/TlHjQ==, tarball: https://registry.npmjs.org/@emnapi/runtime/-/runtime-2.0.0-beta.3.tgz} + '@emnapi/wasi-threads@1.0.4': resolution: {integrity: sha512-PJR+bOmMOPH8AtcTGAyYNiuJ3/Fcoj2XN/gBEWzDIKh254XO+mM9XoXHk5GNEhodxeMznbg7BlRojVbKN+gC6g==, tarball: https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.0.4.tgz} @@ -2765,6 +2774,9 @@ packages: '@emnapi/wasi-threads@2.0.1': resolution: {integrity: sha512-9DsSk+o5NBX0CCJT8s0EROGSGxjR/tKu6aBTaVyq+SjAEQH4XcdcRxPBRzsBLizTTJ49MJjF+jgu3qnO9GLQcQ==, tarball: https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-2.0.1.tgz} + '@emnapi/wasi-threads@2.2.0': + resolution: {integrity: sha512-JP7OYH38Q7+pyTAe14raZHLQIK7BDKbdwji+Xi3pcd/6QkJYQH3SX4wu6EplGrGJWRepoNzedfm0G3B9Z4e9Rw==, tarball: https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-2.2.0.tgz} + '@emoji-mart/data@1.2.1': resolution: {integrity: sha512-no2pQMWiBy6gpBEiqGeU77/bFejDqUTRY7KX+0+iur13op3bqUsXdnwoZs6Xb1zbv0gAj5VvS1PWoUUckSr5Dw==, tarball: https://registry.npmjs.org/@emoji-mart/data/-/data-1.2.1.tgz} @@ -6786,57 +6798,137 @@ packages: cpu: [arm64] os: [darwin] + '@rspack/binding-darwin-arm64@2.3.3': + resolution: {integrity: sha512-G9WcBOP/6ZWeqTM/G0/rkJRY4DWmYQvk2untzcpj92uO12tqjZ9BSMgtBFvwElwagfQBkX8PPutkAZgtnlAoWA==, tarball: https://registry.npmjs.org/@rspack/binding-darwin-arm64/-/binding-darwin-arm64-2.3.3.tgz} + cpu: [arm64] + os: [darwin] + '@rspack/binding-darwin-x64@1.7.12': resolution: {integrity: sha512-jnOp+/UXOJa9xqUb8KXH03sysoO2e4Ij6tw6MqDdmdj8n/A8PQENRPUbW9AwXpPtVDJPus9r4fi7b3+6e4B8Hg==, tarball: https://registry.npmjs.org/@rspack/binding-darwin-x64/-/binding-darwin-x64-1.7.12.tgz} cpu: [x64] os: [darwin] + '@rspack/binding-darwin-x64@2.3.3': + resolution: {integrity: sha512-6agI5XDoihay+84vzZgIwwpQQ3xBWbe2HTWBRc0n42LzynIj9h7Qv8CJzf1gSDV1Ts0jzDgAJCYUFJ6Ya5F6MA==, tarball: https://registry.npmjs.org/@rspack/binding-darwin-x64/-/binding-darwin-x64-2.3.3.tgz} + cpu: [x64] + os: [darwin] + '@rspack/binding-linux-arm64-gnu@1.7.12': resolution: {integrity: sha512-C8owWG+yvo7X0oVLIXetkoJhIFBP1LYNcAQqtgLmJnQLQDklGuP83dKC+zISGQWpjawHfZ1ER96vLgoTrxKZdw==, tarball: https://registry.npmjs.org/@rspack/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.7.12.tgz} cpu: [arm64] os: [linux] libc: [glibc] + '@rspack/binding-linux-arm64-gnu@2.3.3': + resolution: {integrity: sha512-VdjK1mDq+GBexd041lmWBFmAvcWIZy7kepTJbJgxLeHYYOnI3KmBG15kemhlK0pBySa+bePX7p2w8uYtl1HsCA==, tarball: https://registry.npmjs.org/@rspack/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-2.3.3.tgz} + cpu: [arm64] + os: [linux] + libc: [glibc] + '@rspack/binding-linux-arm64-musl@1.7.12': resolution: {integrity: sha512-i51WWI64aRpsfSki6rN0aepPqXkVfS+vZM7+4bWDcmnhUmdMvhIPcYg0QRk3DtyJnu33jqNLM0WHY78k00NyfA==, tarball: https://registry.npmjs.org/@rspack/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.7.12.tgz} cpu: [arm64] os: [linux] libc: [musl] + '@rspack/binding-linux-arm64-musl@2.3.3': + resolution: {integrity: sha512-xF4Wy4XwGjC3m13tFm1q9p9Qpm31qrk6f5zEMPZC31UVabb+2jrgTI1pfZ8IRuo9x/Qw9s+Zq3hyDbtJvvD8Pg==, tarball: https://registry.npmjs.org/@rspack/binding-linux-arm64-musl/-/binding-linux-arm64-musl-2.3.3.tgz} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@rspack/binding-linux-ppc64-gnu@2.3.3': + resolution: {integrity: sha512-jVmn+LpF44D4FdZyT91rlT/tPMdHIfPfQTgVzwPB5nDICp4b57SFjVBApuAPIxnLT1pKLkv/LIcdvGSdAeX12w==, tarball: https://registry.npmjs.org/@rspack/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-2.3.3.tgz} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@rspack/binding-linux-riscv64-gnu@2.3.3': + resolution: {integrity: sha512-JcQJm8M634jkbG6zJ3TfziKYsCINEAh3FwKuxLljvBgGDEupBxPuB0n2bXBIUeI8P9C33B45IYX6BwWYXll/zw==, tarball: https://registry.npmjs.org/@rspack/binding-linux-riscv64-gnu/-/binding-linux-riscv64-gnu-2.3.3.tgz} + cpu: [riscv64] + os: [linux] + libc: [glibc] + + '@rspack/binding-linux-riscv64-musl@2.3.3': + resolution: {integrity: sha512-YMIOS7rFvCDnpeyxoVEVbM7U/TwcC2VDtN3Oiq9BenRsNTEvk0imINhuVRFanh15+wkiQHk9h0b+pzcggYLAsA==, tarball: https://registry.npmjs.org/@rspack/binding-linux-riscv64-musl/-/binding-linux-riscv64-musl-2.3.3.tgz} + cpu: [riscv64] + os: [linux] + libc: [musl] + + '@rspack/binding-linux-s390x-gnu@2.3.3': + resolution: {integrity: sha512-tHGtIG6GGHsk2KvSleQp/BrVqiGdjDsLJuMKR7hE7W1uJW6WDJ+a+Z23Rk5kHXh5BjeFLjXxcufGuokvmLmTag==, tarball: https://registry.npmjs.org/@rspack/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-2.3.3.tgz} + cpu: [s390x] + os: [linux] + libc: [glibc] + '@rspack/binding-linux-x64-gnu@1.7.12': resolution: {integrity: sha512-MSos0FuPEefqo9V92ULd5hggKG29EkSNg1zDcypy0OkpsKh5pfjVxTLYFXgTcVyFoUQQbdG8zFBzYbwmJ8V4ew==, tarball: https://registry.npmjs.org/@rspack/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.7.12.tgz} cpu: [x64] os: [linux] libc: [glibc] + '@rspack/binding-linux-x64-gnu@2.3.3': + resolution: {integrity: sha512-spe8SjywfO+dD7Sk+vIpPaOXf56wstrgeuztfJdiI9zTeQmf/lhdaNUUSUAXlGIaLjrN/PhV8i5kbQ7VaAkenw==, tarball: https://registry.npmjs.org/@rspack/binding-linux-x64-gnu/-/binding-linux-x64-gnu-2.3.3.tgz} + cpu: [x64] + os: [linux] + libc: [glibc] + '@rspack/binding-linux-x64-musl@1.7.12': resolution: {integrity: sha512-JcAMVKXOnjfpC3coWjCFPWD3Yl8RBw6a+IXQQ8mfRlHaHMIiOv8IfZqx15XRxMUn49CtP7Z0Na8iiAg2aKrcfw==, tarball: https://registry.npmjs.org/@rspack/binding-linux-x64-musl/-/binding-linux-x64-musl-1.7.12.tgz} cpu: [x64] os: [linux] libc: [musl] + '@rspack/binding-linux-x64-musl@2.3.3': + resolution: {integrity: sha512-4E4OJodrmsS52zkSAWShG/F07etr0OG4oSrIN+/2BBgc0qR2wwu2T+rAs308IL3lbywlS+J+cynrRcsSFMD+Kg==, tarball: https://registry.npmjs.org/@rspack/binding-linux-x64-musl/-/binding-linux-x64-musl-2.3.3.tgz} + cpu: [x64] + os: [linux] + libc: [musl] + '@rspack/binding-wasm32-wasi@1.7.12': resolution: {integrity: sha512-n+ZqP6ZMc0nhOgvadg5VhEs9ojtbES80AcWeFnmGkbzIszvGSO63GKNiRkXtjJ9KFuRzytbbmsCqkUVH+Tywxg==, tarball: https://registry.npmjs.org/@rspack/binding-wasm32-wasi/-/binding-wasm32-wasi-1.7.12.tgz} cpu: [wasm32] + '@rspack/binding-wasm32-wasi@2.3.3': + resolution: {integrity: sha512-AhlsPjW31TGP8N+J7OmbCPaamARUl+OQNiT3xo0PL5Dz5oMm+bEfYLostpehKyy8MNDrmJcY97M9pDb5MDMA0w==, tarball: https://registry.npmjs.org/@rspack/binding-wasm32-wasi/-/binding-wasm32-wasi-2.3.3.tgz} + cpu: [wasm32] + '@rspack/binding-win32-arm64-msvc@1.7.12': resolution: {integrity: sha512-8+h5fYDXYdmugbdfZ+D1y8IQ3rv2EhSfyGP7vBe+bjNyaMa4jWrpucmZbtxojUL1AzaeuHbvMdj9UO/gelk/+g==, tarball: https://registry.npmjs.org/@rspack/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.7.12.tgz} cpu: [arm64] os: [win32] + '@rspack/binding-win32-arm64-msvc@2.3.3': + resolution: {integrity: sha512-Zqbj7GBPtkJ8GlUKAjFgvmOxKkQwjfS3XfjwGBcmoIAUb4IxUsmMqvi+gfKrvI45SjYVFZaJnTpOJw6GL79K+Q==, tarball: https://registry.npmjs.org/@rspack/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-2.3.3.tgz} + cpu: [arm64] + os: [win32] + '@rspack/binding-win32-ia32-msvc@1.7.12': resolution: {integrity: sha512-cDMGwTRSa2p9fNBVe1wTRkF2AEXZ9ARWW36QeC5CkLaI0Ezz8lvhF2+CSOPnhaQ1O1qtn0L0SF+lFnrY+I7xGQ==, tarball: https://registry.npmjs.org/@rspack/binding-win32-ia32-msvc/-/binding-win32-ia32-msvc-1.7.12.tgz} cpu: [ia32] os: [win32] + '@rspack/binding-win32-ia32-msvc@2.3.3': + resolution: {integrity: sha512-sJJmbrdzH6kI48mCsUu5a2+BzEktLmHrHUmWGkAPAi0zhi4anA7sOdS1+uERbkkd/XAzs0bdn3JXyT2djY+3IA==, tarball: https://registry.npmjs.org/@rspack/binding-win32-ia32-msvc/-/binding-win32-ia32-msvc-2.3.3.tgz} + cpu: [ia32] + os: [win32] + '@rspack/binding-win32-x64-msvc@1.7.12': resolution: {integrity: sha512-wIqFvlgFqrgUyj/6S/FJcvShnkZOmIeXTfqvheLY67MGq8qd8jb1YimQVKAIrmWB3yuJKUFACI3Ag1UBtEedEA==, tarball: https://registry.npmjs.org/@rspack/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.7.12.tgz} cpu: [x64] os: [win32] + '@rspack/binding-win32-x64-msvc@2.3.3': + resolution: {integrity: sha512-1r3wxV1pBNykqpbEbZWqcrZd13PKLq0e7Ku6qv8IGKKeftuf3RUxTkeM5AzppGMGEIA9sw8mRdN7NvEXxqLLxw==, tarball: https://registry.npmjs.org/@rspack/binding-win32-x64-msvc/-/binding-win32-x64-msvc-2.3.3.tgz} + cpu: [x64] + os: [win32] + '@rspack/binding@1.7.12': resolution: {integrity: sha512-f4HHuLbvuld8Ba4iB/4ibse5XrKxFrgmM3S4P2AOKnPlekAFlBjmltCuaTL/W2ggYvILaVY+YcFXrEH1rrKeQA==, tarball: https://registry.npmjs.org/@rspack/binding/-/binding-1.7.12.tgz} + '@rspack/binding@2.3.3': + resolution: {integrity: sha512-wwF++36a3rqYi0G9zj+rUavn/GIMzbzXehelGS1jkYeKPHyPXrVYwRHqwEKNKMD9z+FdW4YJKQcfFkPlHEiwUg==, tarball: https://registry.npmjs.org/@rspack/binding/-/binding-2.3.3.tgz} + '@rspack/core@1.7.12': resolution: {integrity: sha512-6CwFIHlhRmXfZoMj3v9MZ1SMTPBn+cHVXeMIeaGp5sufqinKsISbsqHu6ZMJu2wDSmZLdmQJX6zLxkhcAUlhkQ==, tarball: https://registry.npmjs.org/@rspack/core/-/core-1.7.12.tgz} engines: {node: '>=18.12.0'} @@ -6846,6 +6938,18 @@ packages: '@swc/helpers': optional: true + '@rspack/core@2.3.3': + resolution: {integrity: sha512-stAYr0SXf+ZFXFsWTv+Ljxoj/nQs2p7gX9V1kBwlO2IXlRAAhabLONYibT3ZeEGybx3kowrs7uJkcOQsuHgghw==, tarball: https://registry.npmjs.org/@rspack/core/-/core-2.3.3.tgz} + engines: {node: ^20.19.0 || >=22.12.0} + peerDependencies: + '@module-federation/runtime-tools': ^0.24.1 || ^2.0.0 + '@swc/helpers': ^0.5.23 + peerDependenciesMeta: + '@module-federation/runtime-tools': + optional: true + '@swc/helpers': + optional: true + '@rspack/dev-server@1.2.1': resolution: {integrity: sha512-e/ARvskYn2Qdd02qLvc0i6H9BnOmzP0xGHS2XCr7GZ3t2k5uC5ZlLkeN1iEebU0FkAW+6ot89NahFo3nupKuww==, tarball: https://registry.npmjs.org/@rspack/dev-server/-/dev-server-1.2.1.tgz} engines: {node: '>= 18.12.0'} @@ -6858,6 +6962,9 @@ packages: '@rspack/lite-tapable@1.1.2': resolution: {integrity: sha512-1OnyWChLGE46YzWyjlmYJssOu/Y0STAnnr2ueKPqDCYTf63GJMs0mxNnCul4dNiVqHYPKv3/fxrTY3IpqoVwZQ==, tarball: https://registry.npmjs.org/@rspack/lite-tapable/-/lite-tapable-1.1.2.tgz} + '@rspack/lite-tapable@1.3.0': + resolution: {integrity: sha512-YQLaGRltBp5wzh9ee7PMmh1pErbx0E3zDlfO4K3iQpsEcJcBcgj3+9gq6/wqB/zbXbluoWoRCvL+odkft/Qt3A==, tarball: https://registry.npmjs.org/@rspack/lite-tapable/-/lite-tapable-1.3.0.tgz} + '@rspack/plugin-react-refresh@1.6.2': resolution: {integrity: sha512-k+/VrfTNgo+KirjI6V+8CWRj6y+DH9jOUWv8JorYY4vKf/9xfnZ8xHzuB4iqCwTtoZl9YnxOaOuoyjJipc2tiQ==, tarball: https://registry.npmjs.org/@rspack/plugin-react-refresh/-/plugin-react-refresh-1.6.2.tgz} peerDependencies: @@ -8334,6 +8441,14 @@ packages: '@webassemblyjs/wast-printer@1.14.1': resolution: {integrity: sha512-kPSSXE6De1XOR820C90RIo2ogvZG+c3KiHzqUoO/F34Y2shGzesfqv7o57xrxovZJH/MetF5UjroJ/R/3isoiw==, tarball: https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.14.1.tgz} + '@xmcp-dev/compiler@1.13.0': + resolution: {integrity: sha512-t7eTx6UZ8i1oZS2D9L9qWkoox35pqslBgjG1YeM6FoZpLKtD+wtqVD89lepEf4Utf0y76LmKNLx1vshXdW+JUA==, tarball: https://registry.npmjs.org/@xmcp-dev/compiler/-/compiler-1.13.0.tgz} + engines: {node: '>=22.12'} + hasBin: true + peerDependencies: + xmcp: '>=1.0.0' + zod: ^3.25.76 || ^4.0.0 + '@xtuc/ieee754@1.2.0': resolution: {integrity: sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==, tarball: https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz} @@ -9069,6 +9184,10 @@ packages: resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==, tarball: https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz} engines: {node: '>= 8.10.0'} + chokidar@4.0.3: + resolution: {integrity: sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==, tarball: https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz} + engines: {node: '>= 14.16.0'} + chokidar@5.0.0: resolution: {integrity: sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==, tarball: https://registry.npmjs.org/chokidar/-/chokidar-5.0.0.tgz} engines: {node: '>= 20.19.0'} @@ -14314,6 +14433,10 @@ packages: resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==, tarball: https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz} engines: {node: '>=8.10.0'} + readdirp@4.1.2: + resolution: {integrity: sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==, tarball: https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz} + engines: {node: '>= 14.18.0'} + readdirp@5.0.0: resolution: {integrity: sha512-9u/XQ1pvrQtYyMpZe7DXKv2p5CNvyVwzUB6uhLAnQwHMSgKMBR62lc7AHljaeteeHXn11XTAaLLUVZYVZyuRBQ==, tarball: https://registry.npmjs.org/readdirp/-/readdirp-5.0.0.tgz} engines: {node: '>= 20.19.0'} @@ -15701,6 +15824,18 @@ packages: '@typescript/native-preview': optional: true + ts-checker-rspack-plugin@1.8.0: + resolution: {integrity: sha512-Vd/i6zi1X8p/LQyfKvh2gQLbvlUyHDAjA4hPOAAo0kC1XaqKdcr4WxBaVWQpQz1kJHCUo+dnIQYOAc4hIZCbrg==, tarball: https://registry.npmjs.org/ts-checker-rspack-plugin/-/ts-checker-rspack-plugin-1.8.0.tgz} + peerDependencies: + '@rspack/core': ^1.0.0 || ^2.0.0 + '@typescript/native-preview': ^7.0.0-0 + typescript: '>=3.8.0' + peerDependenciesMeta: + '@rspack/core': + optional: true + '@typescript/native-preview': + optional: true + ts-dedent@2.3.0: resolution: {integrity: sha512-JfJeIHke7y2egdGGgRAvpCwYFUsHlM2gPcrVOxFkznt/4uzQ7HFmvE63iFHVLBJNDuyDOQgijDK/tXH/f6Msjg==, tarball: https://registry.npmjs.org/ts-dedent/-/ts-dedent-2.3.0.tgz} engines: {node: '>=6.10'} @@ -16516,14 +16651,24 @@ packages: resolution: {integrity: sha512-c16PKLIRxBYpR3jSWsdS7SFp0COm5SOQdiFjY818dYFHJbMGuLBszpF07LBWmOS1uzrHa9VGdynsEgoeKy0oOQ==, tarball: https://registry.npmjs.org/wsl-utils/-/wsl-utils-1.0.1.tgz} engines: {node: '>=20'} - xmcp@0.6.4: - resolution: {integrity: sha512-aigY10YfKfG7BZ2MCq+Lbudgp25F28at8IzXt/rDYAD+iBfUeMsTkzCAO4s81L0miVCtJUB3arY8s4/hY3FsSA==, tarball: https://registry.npmjs.org/xmcp/-/xmcp-0.6.4.tgz} + xmcp@1.13.0: + resolution: {integrity: sha512-+jP2FoxtmISA+50TeIBI5fOqiuzv8KafR2AGgyAB8zf5KsH8KEjfsv344h563L4+DZ3+q5+trYtoJd+OG5n28g==, tarball: https://registry.npmjs.org/xmcp/-/xmcp-1.13.0.tgz} + engines: {node: '>=22.12'} hasBin: true peerDependencies: + '@modelcontextprotocol/client': ^2.2.0 + '@modelcontextprotocol/server': ^2.3.0 + jose: ^6.1.3 react: '>=19.0.0' react-dom: '>=19.0.0' zod: ^3.25.76 || ^4.0.0 peerDependenciesMeta: + '@modelcontextprotocol/client': + optional: true + '@modelcontextprotocol/server': + optional: true + jose: + optional: true react: optional: true react-dom: @@ -16682,23 +16827,23 @@ snapshots: '@jridgewell/gen-mapping': 0.3.13 '@jridgewell/trace-mapping': 0.3.31 - '@analogjs/vite-plugin-angular@2.9.5(@angular-devkit/build-angular@22.2.5(7a06e00806313c3dc5ec1004bc966938))(@angular/build@22.2.5(1cf28a74d8d726795d0e6af3a2e94218))(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.3)(vite@7.3.7(@types/node@20.19.9)(jiti@2.4.2)(less@4.9.1(supports-color@8.1.1))(lightningcss@1.33.0)(sass-embedded@1.100.0)(sass@1.56.2)(terser@5.28.1)(tsx@4.19.0)(yaml@2.9.0))': + '@analogjs/vite-plugin-angular@2.9.5(@angular-devkit/build-angular@22.2.5(c2af50e6c58327b9cb3be8110a559476))(@angular/build@22.2.5(1cf28a74d8d726795d0e6af3a2e94218))(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.3)(vite@7.3.7(@types/node@20.19.9)(jiti@2.4.2)(less@4.9.1(supports-color@8.1.1))(lightningcss@1.33.0)(sass-embedded@1.100.0)(sass@1.56.2)(terser@5.28.1)(tsx@4.19.0)(yaml@2.9.0))': dependencies: magic-string: 0.30.21 obug: 2.1.3 oxc-parser: 0.121.0(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.3) tinyglobby: 0.2.17 optionalDependencies: - '@angular-devkit/build-angular': 22.2.5(7a06e00806313c3dc5ec1004bc966938) + '@angular-devkit/build-angular': 22.2.5(c2af50e6c58327b9cb3be8110a559476) '@angular/build': 22.2.5(1cf28a74d8d726795d0e6af3a2e94218) vite: 7.3.7(@types/node@20.19.9)(jiti@2.4.2)(less@4.9.1(supports-color@8.1.1))(lightningcss@1.33.0)(sass-embedded@1.100.0)(sass@1.56.2)(terser@5.28.1)(tsx@4.19.0)(yaml@2.9.0) transitivePeerDependencies: - '@emnapi/core' - '@emnapi/runtime' - '@analogjs/vitest-angular@2.9.5(@analogjs/vite-plugin-angular@2.9.5(@angular-devkit/build-angular@22.2.5(7a06e00806313c3dc5ec1004bc966938))(@angular/build@22.2.5(1cf28a74d8d726795d0e6af3a2e94218))(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.3)(vite@7.3.7(@types/node@20.19.9)(jiti@2.4.2)(less@4.9.1(supports-color@8.1.1))(lightningcss@1.33.0)(sass-embedded@1.100.0)(sass@1.56.2)(terser@5.28.1)(tsx@4.19.0)(yaml@2.9.0)))(@angular-devkit/architect@0.2202.5(chokidar@5.0.0))(@angular-devkit/schematics@22.2.5(chokidar@5.0.0))(vitest@4.1.12)(zone.js@0.15.1)': + '@analogjs/vitest-angular@2.9.5(@analogjs/vite-plugin-angular@2.9.5(@angular-devkit/build-angular@22.2.5(c2af50e6c58327b9cb3be8110a559476))(@angular/build@22.2.5(1cf28a74d8d726795d0e6af3a2e94218))(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.3)(vite@7.3.7(@types/node@20.19.9)(jiti@2.4.2)(less@4.9.1(supports-color@8.1.1))(lightningcss@1.33.0)(sass-embedded@1.100.0)(sass@1.56.2)(terser@5.28.1)(tsx@4.19.0)(yaml@2.9.0)))(@angular-devkit/architect@0.2202.5(chokidar@5.0.0))(@angular-devkit/schematics@22.2.5(chokidar@5.0.0))(vitest@4.1.12)(zone.js@0.15.1)': dependencies: - '@analogjs/vite-plugin-angular': 2.9.5(@angular-devkit/build-angular@22.2.5(7a06e00806313c3dc5ec1004bc966938))(@angular/build@22.2.5(1cf28a74d8d726795d0e6af3a2e94218))(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.3)(vite@7.3.7(@types/node@20.19.9)(jiti@2.4.2)(less@4.9.1(supports-color@8.1.1))(lightningcss@1.33.0)(sass-embedded@1.100.0)(sass@1.56.2)(terser@5.28.1)(tsx@4.19.0)(yaml@2.9.0)) + '@analogjs/vite-plugin-angular': 2.9.5(@angular-devkit/build-angular@22.2.5(c2af50e6c58327b9cb3be8110a559476))(@angular/build@22.2.5(1cf28a74d8d726795d0e6af3a2e94218))(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.3)(vite@7.3.7(@types/node@20.19.9)(jiti@2.4.2)(less@4.9.1(supports-color@8.1.1))(lightningcss@1.33.0)(sass-embedded@1.100.0)(sass@1.56.2)(terser@5.28.1)(tsx@4.19.0)(yaml@2.9.0)) '@angular-devkit/architect': 0.2202.5(chokidar@5.0.0) '@angular-devkit/schematics': 22.2.5(chokidar@5.0.0) vitest: 4.1.12(@opentelemetry/api@1.9.1)(@types/node@20.19.9)(@vitest/coverage-v8@4.1.12)(@vitest/ui@4.1.12)(happy-dom@20.14.6)(jsdom@28.1.0(supports-color@8.1.1))(vite@7.3.7(@types/node@20.19.9)(jiti@2.4.2)(less@4.9.1(supports-color@8.1.1))(lightningcss@1.33.0)(sass-embedded@1.100.0)(sass@1.56.2)(terser@5.28.1)(tsx@4.19.0)(yaml@2.9.0)) @@ -16757,7 +16902,7 @@ snapshots: transitivePeerDependencies: - chokidar - '@angular-devkit/build-angular@22.2.5(7a06e00806313c3dc5ec1004bc966938)': + '@angular-devkit/build-angular@22.2.5(c2af50e6c58327b9cb3be8110a559476)': dependencies: '@ampproject/remapping': 2.3.0 '@angular-devkit/architect': 0.2202.5(chokidar@5.0.0) @@ -16778,18 +16923,18 @@ snapshots: '@ngtools/webpack': 22.2.5(@angular/compiler-cli@22.2.4(@angular/compiler@22.2.4)(typescript@6.0.3))(typescript@6.0.3)(webpack@5.112.0(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.28.2)(lightningcss@1.33.0)(postcss@8.5.28)(sharp@0.35.5(@types/node@20.19.9))(svgo@4.1.0)(uglify-js@3.19.3)) ansi-colors: 4.1.3 autoprefixer: 10.6.0(postcss@8.5.28) - babel-loader: 10.1.1(@babel/core@8.0.5)(@rspack/core@1.7.12(@swc/helpers@0.5.23))(webpack@5.112.0(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.28.2)(lightningcss@1.33.0)(postcss@8.5.28)(sharp@0.35.5(@types/node@20.19.9))(svgo@4.1.0)(uglify-js@3.19.3)) + babel-loader: 10.1.1(@babel/core@8.0.5)(@rspack/core@2.3.3(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23))(webpack@5.112.0(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.28.2)(lightningcss@1.33.0)(postcss@8.5.28)(sharp@0.35.5(@types/node@20.19.9))(svgo@4.1.0)(uglify-js@3.19.3)) beasties: 0.5.4 browserslist: 4.28.7 copy-webpack-plugin: 14.0.0(webpack@5.112.0(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.28.2)(lightningcss@1.33.0)(postcss@8.5.28)(sharp@0.35.5(@types/node@20.19.9))(svgo@4.1.0)(uglify-js@3.19.3)) - css-loader: 7.1.5(@rspack/core@1.7.12(@swc/helpers@0.5.23))(webpack@5.112.0(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.28.2)(lightningcss@1.33.0)(postcss@8.5.28)(sharp@0.35.5(@types/node@20.19.9))(svgo@4.1.0)(uglify-js@3.19.3)) + css-loader: 7.1.5(@rspack/core@2.3.3(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23))(webpack@5.112.0(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.28.2)(lightningcss@1.33.0)(postcss@8.5.28)(sharp@0.35.5(@types/node@20.19.9))(svgo@4.1.0)(uglify-js@3.19.3)) esbuild-wasm: 0.28.2 http-proxy-middleware: 4.2.0(supports-color@8.1.1) istanbul-lib-instrument: 6.0.3(supports-color@8.1.1) jsonc-parser: 3.3.1 karma-source-map-support: 1.4.0 less: 4.9.1(supports-color@8.1.1) - less-loader: 13.0.0(@rspack/core@1.7.12(@swc/helpers@0.5.23))(less@4.9.1(supports-color@8.1.1))(webpack@5.112.0(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.28.2)(lightningcss@1.33.0)(postcss@8.5.28)(sharp@0.35.5(@types/node@20.19.9))(svgo@4.1.0)(uglify-js@3.19.3)) + less-loader: 13.0.0(@rspack/core@2.3.3(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23))(less@4.9.1(supports-color@8.1.1))(webpack@5.112.0(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.28.2)(lightningcss@1.33.0)(postcss@8.5.28)(sharp@0.35.5(@types/node@20.19.9))(svgo@4.1.0)(uglify-js@3.19.3)) license-webpack-plugin: 4.0.2(webpack@5.112.0(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.28.2)(lightningcss@1.33.0)(postcss@8.5.28)(sharp@0.35.5(@types/node@20.19.9))(svgo@4.1.0)(uglify-js@3.19.3)) loader-utils: 3.3.1 mini-css-extract-plugin: 2.10.2(webpack@5.112.0(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.28.2)(lightningcss@1.33.0)(postcss@8.5.28)(sharp@0.35.5(@types/node@20.19.9))(svgo@4.1.0)(uglify-js@3.19.3)) @@ -16798,10 +16943,10 @@ snapshots: picomatch: 4.0.7 piscina: 5.3.2 postcss: 8.5.28 - postcss-loader: 8.2.1(@rspack/core@1.7.12(@swc/helpers@0.5.23))(postcss@8.5.28)(typescript@6.0.3)(webpack@5.112.0(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.28.2)(lightningcss@1.33.0)(postcss@8.5.28)(sharp@0.35.5(@types/node@20.19.9))(svgo@4.1.0)(uglify-js@3.19.3)) + postcss-loader: 8.2.1(@rspack/core@2.3.3(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23))(postcss@8.5.28)(typescript@6.0.3)(webpack@5.112.0(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.28.2)(lightningcss@1.33.0)(postcss@8.5.28)(sharp@0.35.5(@types/node@20.19.9))(svgo@4.1.0)(uglify-js@3.19.3)) resolve-url-loader: 5.0.0 rxjs: 7.8.2 - sass-loader: 17.0.1(@rspack/core@1.7.12(@swc/helpers@0.5.23))(sass-embedded@1.100.0)(sass@1.56.2)(webpack@5.112.0(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.28.2)(lightningcss@1.33.0)(postcss@8.5.28)(sharp@0.35.5(@types/node@20.19.9))(svgo@4.1.0)(uglify-js@3.19.3)) + sass-loader: 17.0.1(@rspack/core@2.3.3(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23))(sass-embedded@1.100.0)(sass@1.56.2)(webpack@5.112.0(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.28.2)(lightningcss@1.33.0)(postcss@8.5.28)(sharp@0.35.5(@types/node@20.19.9))(svgo@4.1.0)(uglify-js@3.19.3)) semver: 7.8.5 source-map-loader: 5.0.0(webpack@5.112.0(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.28.2)(lightningcss@1.33.0)(postcss@8.5.28)(sharp@0.35.5(@types/node@20.19.9))(svgo@4.1.0)(uglify-js@3.19.3)) source-map-support: 0.5.21 @@ -18875,6 +19020,12 @@ snapshots: tslib: 2.8.1 optional: true + '@emnapi/core@2.0.0-beta.3': + dependencies: + '@emnapi/wasi-threads': 2.2.0 + tslib: 2.8.1 + optional: true + '@emnapi/runtime@1.10.0': dependencies: tslib: 2.8.1 @@ -18898,6 +19049,11 @@ snapshots: tslib: 2.8.1 optional: true + '@emnapi/runtime@2.0.0-beta.3': + dependencies: + tslib: 2.8.1 + optional: true + '@emnapi/wasi-threads@1.0.4': dependencies: tslib: 2.8.1 @@ -18916,6 +19072,11 @@ snapshots: tslib: 2.8.1 optional: true + '@emnapi/wasi-threads@2.2.0': + dependencies: + tslib: 2.8.1 + optional: true + '@emoji-mart/data@1.2.1': {} '@esbuild/aix-ppc64@0.23.1': @@ -20985,7 +21146,7 @@ snapshots: - supports-color - utf-8-validate - '@module-federation/enhanced@0.18.4(@rspack/core@1.7.12(@swc/helpers@0.5.23))(debug@4.4.3(supports-color@8.1.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(supports-color@8.1.1)(typescript@6.0.3)(vue-tsc@2.2.12(typescript@6.0.3))(webpack@5.109.2(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(postcss@8.5.23)(uglify-js@3.19.3))': + '@module-federation/enhanced@0.18.4(@rspack/core@2.3.3(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23))(debug@4.4.3(supports-color@8.1.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(supports-color@8.1.1)(typescript@6.0.3)(vue-tsc@2.2.12(typescript@6.0.3))(webpack@5.109.2(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(postcss@8.5.23)(uglify-js@3.19.3))': dependencies: '@module-federation/bridge-react-webpack-plugin': 0.18.4 '@module-federation/cli': 0.18.4(debug@4.4.3(supports-color@8.1.1))(supports-color@8.1.1)(typescript@6.0.3)(vue-tsc@2.2.12(typescript@6.0.3)) @@ -20995,7 +21156,7 @@ snapshots: '@module-federation/inject-external-runtime-core-plugin': 0.18.4(@module-federation/runtime-tools@0.18.4) '@module-federation/managers': 0.18.4 '@module-federation/manifest': 0.18.4(debug@4.4.3(supports-color@8.1.1))(supports-color@8.1.1)(typescript@6.0.3)(vue-tsc@2.2.12(typescript@6.0.3)) - '@module-federation/rspack': 0.18.4(@rspack/core@1.7.12(@swc/helpers@0.5.23))(debug@4.4.3(supports-color@8.1.1))(supports-color@8.1.1)(typescript@6.0.3)(vue-tsc@2.2.12(typescript@6.0.3)) + '@module-federation/rspack': 0.18.4(@rspack/core@2.3.3(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23))(debug@4.4.3(supports-color@8.1.1))(supports-color@8.1.1)(typescript@6.0.3)(vue-tsc@2.2.12(typescript@6.0.3)) '@module-federation/runtime-tools': 0.18.4 '@module-federation/sdk': 0.18.4 btoa: 1.2.1 @@ -21039,7 +21200,7 @@ snapshots: - bufferutil - utf-8-validate - '@module-federation/enhanced@2.7.0(@rspack/core@1.7.12(@swc/helpers@0.5.23))(typescript@6.0.3)(vue-tsc@2.2.12(typescript@6.0.3))(webpack@5.109.2(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(postcss@8.5.23)(uglify-js@3.19.3))': + '@module-federation/enhanced@2.7.0(@rspack/core@2.3.3(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23))(typescript@6.0.3)(vue-tsc@2.2.12(typescript@6.0.3))(webpack@5.109.2(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(postcss@8.5.23)(uglify-js@3.19.3))': dependencies: '@module-federation/bridge-react-webpack-plugin': 2.7.0 '@module-federation/cli': 2.7.0(typescript@6.0.3)(vue-tsc@2.2.12(typescript@6.0.3)) @@ -21048,7 +21209,7 @@ snapshots: '@module-federation/inject-external-runtime-core-plugin': 2.7.0(@module-federation/runtime-tools@2.7.0) '@module-federation/managers': 2.7.0 '@module-federation/manifest': 2.7.0(typescript@6.0.3)(vue-tsc@2.2.12(typescript@6.0.3)) - '@module-federation/rspack': 2.7.0(@rspack/core@1.7.12(@swc/helpers@0.5.23))(typescript@6.0.3)(vue-tsc@2.2.12(typescript@6.0.3)) + '@module-federation/rspack': 2.7.0(@rspack/core@2.3.3(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23))(typescript@6.0.3)(vue-tsc@2.2.12(typescript@6.0.3)) '@module-federation/runtime-tools': 2.7.0 '@module-federation/sdk': 2.7.0 '@module-federation/webpack-bundler-runtime': 2.7.0 @@ -21158,9 +21319,9 @@ snapshots: - utf-8-validate - vue-tsc - '@module-federation/node@2.7.46(@rspack/core@1.7.12(@swc/helpers@0.5.23))(typescript@6.0.3)(vue-tsc@2.2.12(typescript@6.0.3))(webpack@5.109.2(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(postcss@8.5.23)(uglify-js@3.19.3))': + '@module-federation/node@2.7.46(@rspack/core@2.3.3(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23))(typescript@6.0.3)(vue-tsc@2.2.12(typescript@6.0.3))(webpack@5.109.2(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(postcss@8.5.23)(uglify-js@3.19.3))': dependencies: - '@module-federation/enhanced': 2.7.0(@rspack/core@1.7.12(@swc/helpers@0.5.23))(typescript@6.0.3)(vue-tsc@2.2.12(typescript@6.0.3))(webpack@5.109.2(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(postcss@8.5.23)(uglify-js@3.19.3)) + '@module-federation/enhanced': 2.7.0(@rspack/core@2.3.3(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23))(typescript@6.0.3)(vue-tsc@2.2.12(typescript@6.0.3))(webpack@5.109.2(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(postcss@8.5.23)(uglify-js@3.19.3)) '@module-federation/runtime': 2.7.0 '@module-federation/sdk': 2.7.0 encoding: 0.1.13 @@ -21195,7 +21356,7 @@ snapshots: - supports-color - utf-8-validate - '@module-federation/rspack@0.18.4(@rspack/core@1.7.12(@swc/helpers@0.5.23))(debug@4.4.3(supports-color@8.1.1))(supports-color@8.1.1)(typescript@6.0.3)(vue-tsc@2.2.12(typescript@6.0.3))': + '@module-federation/rspack@0.18.4(@rspack/core@2.3.3(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23))(debug@4.4.3(supports-color@8.1.1))(supports-color@8.1.1)(typescript@6.0.3)(vue-tsc@2.2.12(typescript@6.0.3))': dependencies: '@module-federation/bridge-react-webpack-plugin': 0.18.4 '@module-federation/dts-plugin': 0.18.4(debug@4.4.3(supports-color@8.1.1))(supports-color@8.1.1)(typescript@6.0.3)(vue-tsc@2.2.12(typescript@6.0.3)) @@ -21204,7 +21365,7 @@ snapshots: '@module-federation/manifest': 0.18.4(debug@4.4.3(supports-color@8.1.1))(supports-color@8.1.1)(typescript@6.0.3)(vue-tsc@2.2.12(typescript@6.0.3)) '@module-federation/runtime-tools': 0.18.4 '@module-federation/sdk': 0.18.4 - '@rspack/core': 1.7.12(@swc/helpers@0.5.23) + '@rspack/core': 2.3.3(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23) btoa: 1.2.1 optionalDependencies: typescript: 6.0.3 @@ -21232,7 +21393,7 @@ snapshots: - bufferutil - utf-8-validate - '@module-federation/rspack@2.7.0(@rspack/core@1.7.12(@swc/helpers@0.5.23))(typescript@6.0.3)(vue-tsc@2.2.12(typescript@6.0.3))': + '@module-federation/rspack@2.7.0(@rspack/core@2.3.3(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23))(typescript@6.0.3)(vue-tsc@2.2.12(typescript@6.0.3))': dependencies: '@module-federation/bridge-react-webpack-plugin': 2.7.0 '@module-federation/dts-plugin': 2.7.0(typescript@6.0.3)(vue-tsc@2.2.12(typescript@6.0.3)) @@ -21241,7 +21402,7 @@ snapshots: '@module-federation/manifest': 2.7.0(typescript@6.0.3)(vue-tsc@2.2.12(typescript@6.0.3)) '@module-federation/runtime-tools': 2.7.0 '@module-federation/sdk': 2.7.0 - '@rspack/core': 1.7.12(@swc/helpers@0.5.23) + '@rspack/core': 2.3.3(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23) optionalDependencies: typescript: 6.0.3 vue-tsc: 2.2.12(typescript@6.0.3) @@ -21461,6 +21622,13 @@ snapshots: '@tybys/wasm-util': 0.10.3 optional: true + '@napi-rs/wasm-runtime@1.2.7(@emnapi/core@2.0.0-beta.3)(@emnapi/runtime@2.0.0-beta.3)': + dependencies: + '@emnapi/core': 2.0.0-beta.3 + '@emnapi/runtime': 2.0.0-beta.3 + '@tybys/wasm-util': 0.10.3 + optional: true + '@next/env@16.4.3': {} '@next/swc-darwin-arm64@16.4.3': @@ -21525,7 +21693,7 @@ snapshots: '@nodelib/fs.scandir': 2.1.5 fastq: 1.20.1 - '@nx/angular@21.6.11(4015f6e1d10050c554a22eae79ad480c)': + '@nx/angular@21.6.11(eea919009d10e5d53b62aaf3fe3ae7d9)': dependencies: '@angular-devkit/core': 22.2.5(chokidar@5.0.0) '@angular-devkit/schematics': 22.2.5(chokidar@5.0.0) @@ -21533,9 +21701,9 @@ snapshots: '@nx/eslint': 21.6.11(@babel/traverse@7.29.7(supports-color@8.1.1))(@swc-node/register@1.11.1(@swc/core@1.15.8(@swc/helpers@0.5.23))(@swc/types@0.1.27)(supports-color@8.1.1)(typescript@6.0.3))(@swc/core@1.15.8(@swc/helpers@0.5.23))(@zkochan/js-yaml@0.0.7)(debug@4.4.3(supports-color@8.1.1))(eslint@9.39.4(jiti@2.4.2)(supports-color@8.1.1))(nx@21.6.11(@swc-node/register@1.11.1(@swc/core@1.15.8(@swc/helpers@0.5.23))(@swc/types@0.1.27)(supports-color@8.1.1)(typescript@6.0.3))(@swc/core@1.15.8(@swc/helpers@0.5.23))(debug@4.4.3(supports-color@8.1.1))(supports-color@8.1.1))(supports-color@8.1.1) '@nx/js': 21.6.11(@babel/traverse@7.29.7(supports-color@8.1.1))(@swc-node/register@1.11.1(@swc/core@1.15.8(@swc/helpers@0.5.23))(@swc/types@0.1.27)(supports-color@8.1.1)(typescript@6.0.3))(@swc/core@1.15.8(@swc/helpers@0.5.23))(debug@4.4.3(supports-color@8.1.1))(nx@21.6.11(@swc-node/register@1.11.1(@swc/core@1.15.8(@swc/helpers@0.5.23))(@swc/types@0.1.27)(supports-color@8.1.1)(typescript@6.0.3))(@swc/core@1.15.8(@swc/helpers@0.5.23))(debug@4.4.3(supports-color@8.1.1))(supports-color@8.1.1))(supports-color@8.1.1) '@nx/module-federation': 21.6.11(@babel/traverse@7.29.7(supports-color@8.1.1))(@swc-node/register@1.11.1(@swc/core@1.15.8(@swc/helpers@0.5.23))(@swc/types@0.1.27)(supports-color@8.1.1)(typescript@6.0.3))(@swc/core@1.15.8(@swc/helpers@0.5.23))(@swc/helpers@0.5.23)(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(debug@4.4.3(supports-color@8.1.1))(esbuild@0.19.2)(lightningcss@1.33.0)(nx@21.6.11(@swc-node/register@1.11.1(@swc/core@1.15.8(@swc/helpers@0.5.23))(@swc/types@0.1.27)(supports-color@8.1.1)(typescript@6.0.3))(@swc/core@1.15.8(@swc/helpers@0.5.23))(debug@4.4.3(supports-color@8.1.1))(supports-color@8.1.1))(postcss@8.5.23)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(supports-color@8.1.1)(typescript@5.9.3)(uglify-js@3.19.3)(vue-tsc@2.2.12(typescript@6.0.3)) - '@nx/rspack': 21.6.11(951a53e209bcc8d89945ab25c8c8204e) + '@nx/rspack': 21.6.11(b399e71a547f736d7235068c615f6718) '@nx/web': 21.6.11(@babel/traverse@7.29.7(supports-color@8.1.1))(@swc-node/register@1.11.1(@swc/core@1.15.8(@swc/helpers@0.5.23))(@swc/types@0.1.27)(supports-color@8.1.1)(typescript@6.0.3))(@swc/core@1.15.8(@swc/helpers@0.5.23))(debug@4.4.3(supports-color@8.1.1))(nx@21.6.11(@swc-node/register@1.11.1(@swc/core@1.15.8(@swc/helpers@0.5.23))(@swc/types@0.1.27)(supports-color@8.1.1)(typescript@6.0.3))(@swc/core@1.15.8(@swc/helpers@0.5.23))(debug@4.4.3(supports-color@8.1.1))(supports-color@8.1.1))(supports-color@8.1.1) - '@nx/webpack': 21.6.11(@babel/traverse@7.29.7(supports-color@8.1.1))(@rspack/core@1.7.12(@swc/helpers@0.5.23))(@swc-node/register@1.11.1(@swc/core@1.15.8(@swc/helpers@0.5.23))(@swc/types@0.1.27)(supports-color@8.1.1)(typescript@6.0.3))(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(debug@4.4.3(supports-color@8.1.1))(esbuild@0.19.2)(lightningcss@1.33.0)(nx@21.6.11(@swc-node/register@1.11.1(@swc/core@1.15.8(@swc/helpers@0.5.23))(@swc/types@0.1.27)(supports-color@8.1.1)(typescript@6.0.3))(@swc/core@1.15.8(@swc/helpers@0.5.23))(debug@4.4.3(supports-color@8.1.1))(supports-color@8.1.1))(supports-color@8.1.1)(typescript@5.9.3)(uglify-js@3.19.3) + '@nx/webpack': 21.6.11(@babel/traverse@7.29.7(supports-color@8.1.1))(@rspack/core@2.3.3(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23))(@swc-node/register@1.11.1(@swc/core@1.15.8(@swc/helpers@0.5.23))(@swc/types@0.1.27)(supports-color@8.1.1)(typescript@6.0.3))(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(debug@4.4.3(supports-color@8.1.1))(esbuild@0.19.2)(lightningcss@1.33.0)(nx@21.6.11(@swc-node/register@1.11.1(@swc/core@1.15.8(@swc/helpers@0.5.23))(@swc/types@0.1.27)(supports-color@8.1.1)(typescript@6.0.3))(@swc/core@1.15.8(@swc/helpers@0.5.23))(debug@4.4.3(supports-color@8.1.1))(supports-color@8.1.1))(supports-color@8.1.1)(typescript@5.9.3)(uglify-js@3.19.3) '@nx/workspace': 21.6.11(@swc-node/register@1.11.1(@swc/core@1.15.8(@swc/helpers@0.5.23))(@swc/types@0.1.27)(supports-color@8.1.1)(typescript@6.0.3))(@swc/core@1.15.8(@swc/helpers@0.5.23))(debug@4.4.3(supports-color@8.1.1))(supports-color@8.1.1) '@phenomnomnominal/tsquery': 5.0.1(typescript@5.9.3) '@schematics/angular': 22.2.5(chokidar@5.0.0) @@ -21549,7 +21717,7 @@ snapshots: tslib: 2.3.0 webpack-merge: 5.10.0 optionalDependencies: - '@angular-devkit/build-angular': 22.2.5(7a06e00806313c3dc5ec1004bc966938) + '@angular-devkit/build-angular': 22.2.5(c2af50e6c58327b9cb3be8110a559476) '@angular/build': 22.2.5(1cf28a74d8d726795d0e6af3a2e94218) ng-packagr: 22.2.5(@angular/compiler-cli@22.2.4(@angular/compiler@22.2.4)(typescript@6.0.3))(@volar/typescript@2.4.28(typescript@6.0.3))(oxc-resolver@11.24.2)(tailwindcss@4.1.17)(tslib@2.3.0)(typescript@6.0.3)(vue-tsc@2.2.12(typescript@6.0.3)) transitivePeerDependencies: @@ -21593,7 +21761,7 @@ snapshots: - webpack-cli - webpack-hot-middleware - '@nx/angular@23.3.1(4ec0773ccfb21022cd48e21d3be67d76)': + '@nx/angular@23.3.1(3f2df04d14d32fd8e9449ce599bd10fb)': dependencies: '@angular-devkit/core': 22.2.5(chokidar@5.0.0) '@angular-devkit/schematics': 22.2.5(chokidar@5.0.0) @@ -21612,7 +21780,7 @@ snapshots: semver: 7.8.5 tslib: 2.3.0 optionalDependencies: - '@angular-devkit/build-angular': 22.2.5(7a06e00806313c3dc5ec1004bc966938) + '@angular-devkit/build-angular': 22.2.5(c2af50e6c58327b9cb3be8110a559476) '@angular/build': 22.2.5(1cf28a74d8d726795d0e6af3a2e94218) '@nx/playwright': 23.3.1(@babel/traverse@7.29.7(supports-color@8.1.1))(@nx/jest@23.3.1(fda597c08b4ee672857cc79a5c8780c6))(@playwright/test@1.36.0)(@swc-node/register@1.11.1(@swc/core@1.15.8(@swc/helpers@0.5.23))(@swc/types@0.1.27)(supports-color@8.1.1)(typescript@6.0.3))(@swc/core@1.15.8(@swc/helpers@0.5.23))(@zkochan/js-yaml@0.0.7)(eslint@9.39.4(jiti@2.4.2)(supports-color@8.1.1))(nx@23.3.1(@swc-node/register@1.11.1(@swc/core@1.15.8(@swc/helpers@0.5.23))(@swc/types@0.1.27)(supports-color@8.1.1)(typescript@6.0.3))(@swc/core@1.15.8(@swc/helpers@0.5.23)))(supports-color@8.1.1) ng-packagr: 22.2.5(@angular/compiler-cli@22.2.4(@angular/compiler@22.2.4)(typescript@6.0.3))(@volar/typescript@2.4.28(typescript@6.0.3))(oxc-resolver@11.24.2)(tailwindcss@4.1.17)(tslib@2.3.0)(typescript@6.0.3)(vue-tsc@2.2.12(typescript@6.0.3)) @@ -22224,10 +22392,10 @@ snapshots: - typescript - verdaccio - '@nx/rspack@21.6.11(951a53e209bcc8d89945ab25c8c8204e)': + '@nx/rspack@21.6.11(b399e71a547f736d7235068c615f6718)': dependencies: - '@module-federation/enhanced': 0.18.4(@rspack/core@1.7.12(@swc/helpers@0.5.23))(debug@4.4.3(supports-color@8.1.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(supports-color@8.1.1)(typescript@6.0.3)(vue-tsc@2.2.12(typescript@6.0.3))(webpack@5.109.2(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(postcss@8.5.23)(uglify-js@3.19.3)) - '@module-federation/node': 2.7.46(@rspack/core@1.7.12(@swc/helpers@0.5.23))(typescript@6.0.3)(vue-tsc@2.2.12(typescript@6.0.3))(webpack@5.109.2(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(postcss@8.5.23)(uglify-js@3.19.3)) + '@module-federation/enhanced': 0.18.4(@rspack/core@2.3.3(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23))(debug@4.4.3(supports-color@8.1.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(supports-color@8.1.1)(typescript@6.0.3)(vue-tsc@2.2.12(typescript@6.0.3))(webpack@5.109.2(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(postcss@8.5.23)(uglify-js@3.19.3)) + '@module-federation/node': 2.7.46(@rspack/core@2.3.3(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23))(typescript@6.0.3)(vue-tsc@2.2.12(typescript@6.0.3))(webpack@5.109.2(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(postcss@8.5.23)(uglify-js@3.19.3)) '@nx/devkit': 21.6.11(nx@21.6.11(@swc-node/register@1.11.1(@swc/core@1.15.8(@swc/helpers@0.5.23))(@swc/types@0.1.27)(supports-color@8.1.1)(typescript@6.0.3))(@swc/core@1.15.8(@swc/helpers@0.5.23))(debug@4.4.3(supports-color@8.1.1))(supports-color@8.1.1)) '@nx/js': 21.6.11(@babel/traverse@7.29.7(supports-color@8.1.1))(@swc-node/register@1.11.1(@swc/core@1.15.8(@swc/helpers@0.5.23))(@swc/types@0.1.27)(supports-color@8.1.1)(typescript@6.0.3))(@swc/core@1.15.8(@swc/helpers@0.5.23))(debug@4.4.3(supports-color@8.1.1))(nx@21.6.11(@swc-node/register@1.11.1(@swc/core@1.15.8(@swc/helpers@0.5.23))(@swc/types@0.1.27)(supports-color@8.1.1)(typescript@6.0.3))(@swc/core@1.15.8(@swc/helpers@0.5.23))(debug@4.4.3(supports-color@8.1.1))(supports-color@8.1.1))(supports-color@8.1.1) '@nx/module-federation': 21.6.11(@babel/traverse@7.29.7(supports-color@8.1.1))(@swc-node/register@1.11.1(@swc/core@1.15.8(@swc/helpers@0.5.23))(@swc/types@0.1.27)(supports-color@8.1.1)(typescript@6.0.3))(@swc/core@1.15.8(@swc/helpers@0.5.23))(@swc/helpers@0.5.23)(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(debug@4.4.3(supports-color@8.1.1))(esbuild@0.19.2)(lightningcss@1.33.0)(nx@21.6.11(@swc-node/register@1.11.1(@swc/core@1.15.8(@swc/helpers@0.5.23))(@swc/types@0.1.27)(supports-color@8.1.1)(typescript@6.0.3))(@swc/core@1.15.8(@swc/helpers@0.5.23))(debug@4.4.3(supports-color@8.1.1))(supports-color@8.1.1))(postcss@8.5.23)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(supports-color@8.1.1)(typescript@5.9.3)(uglify-js@3.19.3)(vue-tsc@2.2.12(typescript@6.0.3)) @@ -22477,7 +22645,7 @@ snapshots: - supports-color - verdaccio - '@nx/webpack@21.6.11(@babel/traverse@7.29.7(supports-color@8.1.1))(@rspack/core@1.7.12(@swc/helpers@0.5.23))(@swc-node/register@1.11.1(@swc/core@1.15.8(@swc/helpers@0.5.23))(@swc/types@0.1.27)(supports-color@8.1.1)(typescript@6.0.3))(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(debug@4.4.3(supports-color@8.1.1))(esbuild@0.19.2)(lightningcss@1.33.0)(nx@21.6.11(@swc-node/register@1.11.1(@swc/core@1.15.8(@swc/helpers@0.5.23))(@swc/types@0.1.27)(supports-color@8.1.1)(typescript@6.0.3))(@swc/core@1.15.8(@swc/helpers@0.5.23))(debug@4.4.3(supports-color@8.1.1))(supports-color@8.1.1))(supports-color@8.1.1)(typescript@5.9.3)(uglify-js@3.19.3)': + '@nx/webpack@21.6.11(@babel/traverse@7.29.7(supports-color@8.1.1))(@rspack/core@2.3.3(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23))(@swc-node/register@1.11.1(@swc/core@1.15.8(@swc/helpers@0.5.23))(@swc/types@0.1.27)(supports-color@8.1.1)(typescript@6.0.3))(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(debug@4.4.3(supports-color@8.1.1))(esbuild@0.19.2)(lightningcss@1.33.0)(nx@21.6.11(@swc-node/register@1.11.1(@swc/core@1.15.8(@swc/helpers@0.5.23))(@swc/types@0.1.27)(supports-color@8.1.1)(typescript@6.0.3))(@swc/core@1.15.8(@swc/helpers@0.5.23))(debug@4.4.3(supports-color@8.1.1))(supports-color@8.1.1))(supports-color@8.1.1)(typescript@5.9.3)(uglify-js@3.19.3)': dependencies: '@babel/core': 7.29.7(supports-color@8.1.1) '@nx/devkit': 21.6.11(nx@21.6.11(@swc-node/register@1.11.1(@swc/core@1.15.8(@swc/helpers@0.5.23))(@swc/types@0.1.27)(supports-color@8.1.1)(typescript@6.0.3))(@swc/core@1.15.8(@swc/helpers@0.5.23))(debug@4.4.3(supports-color@8.1.1))(supports-color@8.1.1)) @@ -22488,7 +22656,7 @@ snapshots: babel-loader: 9.2.1(@babel/core@7.29.7(supports-color@8.1.1))(webpack@5.109.2(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(postcss@8.5.23)(uglify-js@3.19.3)) browserslist: 4.28.7 copy-webpack-plugin: 10.2.4(webpack@5.109.2(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(postcss@8.5.23)(uglify-js@3.19.3)) - css-loader: 6.11.0(@rspack/core@1.7.12(@swc/helpers@0.5.23))(webpack@5.109.2(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(postcss@8.5.23)(uglify-js@3.19.3)) + css-loader: 6.11.0(@rspack/core@2.3.3(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23))(webpack@5.109.2(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(postcss@8.5.23)(uglify-js@3.19.3)) css-minimizer-webpack-plugin: 5.0.1(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(webpack@5.109.2(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(postcss@8.5.23)(uglify-js@3.19.3)) fork-ts-checker-webpack-plugin: 7.2.13(typescript@5.9.3)(webpack@5.109.2(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(postcss@8.5.23)(uglify-js@3.19.3)) less: 4.6.7 @@ -22504,7 +22672,7 @@ snapshots: rxjs: 7.8.2 sass: 1.101.0 sass-embedded: 1.100.0 - sass-loader: 16.0.8(@rspack/core@1.7.12(@swc/helpers@0.5.23))(sass-embedded@1.100.0)(sass@1.101.0)(webpack@5.109.2(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(postcss@8.5.23)(uglify-js@3.19.3)) + sass-loader: 16.0.8(@rspack/core@2.3.3(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23))(sass-embedded@1.100.0)(sass@1.101.0)(webpack@5.109.2(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(postcss@8.5.23)(uglify-js@3.19.3)) source-map-loader: 5.0.0(webpack@5.109.2(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(postcss@8.5.23)(uglify-js@3.19.3)) style-loader: 3.3.4(webpack@5.109.2(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(postcss@8.5.23)(uglify-js@3.19.3)) terser-webpack-plugin: 5.6.1(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(postcss@8.5.23)(uglify-js@3.19.3)(webpack@5.109.2(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(postcss@8.5.23)(uglify-js@3.19.3)) @@ -22589,9 +22757,9 @@ snapshots: - supports-color - verdaccio - '@nxext/stencil@21.0.0(72565d7ec82dcba346c51baa7b7ef578)': + '@nxext/stencil@21.0.0(cd80088c2e8c62730cc5f7f3f514a088)': dependencies: - '@nx/angular': 21.6.11(4015f6e1d10050c554a22eae79ad480c) + '@nx/angular': 21.6.11(eea919009d10e5d53b62aaf3fe3ae7d9) '@nx/cypress': 21.6.11(@babel/traverse@7.29.7(supports-color@8.1.1))(@swc-node/register@1.11.1(@swc/core@1.15.8(@swc/helpers@0.5.23))(@swc/types@0.1.27)(supports-color@8.1.1)(typescript@6.0.3))(@swc/core@1.15.8(@swc/helpers@0.5.23))(@zkochan/js-yaml@0.0.7)(debug@4.4.3(supports-color@8.1.1))(eslint@9.39.4(jiti@2.4.2)(supports-color@8.1.1))(nx@21.6.11(@swc-node/register@1.11.1(@swc/core@1.15.8(@swc/helpers@0.5.23))(@swc/types@0.1.27)(supports-color@8.1.1)(typescript@6.0.3))(@swc/core@1.15.8(@swc/helpers@0.5.23))(debug@4.4.3(supports-color@8.1.1))(supports-color@8.1.1))(supports-color@8.1.1)(typescript@5.9.3) '@nx/devkit': 21.6.11(nx@21.6.11(@swc-node/register@1.11.1(@swc/core@1.15.8(@swc/helpers@0.5.23))(@swc/types@0.1.27)(supports-color@8.1.1)(typescript@6.0.3))(@swc/core@1.15.8(@swc/helpers@0.5.23))(debug@4.4.3(supports-color@8.1.1))(supports-color@8.1.1)) '@nx/eslint': 21.6.11(@babel/traverse@7.29.7(supports-color@8.1.1))(@swc-node/register@1.11.1(@swc/core@1.15.8(@swc/helpers@0.5.23))(@swc/types@0.1.27)(supports-color@8.1.1)(typescript@6.0.3))(@swc/core@1.15.8(@swc/helpers@0.5.23))(@zkochan/js-yaml@0.0.7)(debug@4.4.3(supports-color@8.1.1))(eslint@9.39.4(jiti@2.4.2)(supports-color@8.1.1))(nx@21.6.11(@swc-node/register@1.11.1(@swc/core@1.15.8(@swc/helpers@0.5.23))(@swc/types@0.1.27)(supports-color@8.1.1)(typescript@6.0.3))(@swc/core@1.15.8(@swc/helpers@0.5.23))(debug@4.4.3(supports-color@8.1.1))(supports-color@8.1.1))(supports-color@8.1.1) @@ -23497,35 +23665,81 @@ snapshots: '@rspack/binding-darwin-arm64@1.7.12': optional: true + '@rspack/binding-darwin-arm64@2.3.3': + optional: true + '@rspack/binding-darwin-x64@1.7.12': optional: true + '@rspack/binding-darwin-x64@2.3.3': + optional: true + '@rspack/binding-linux-arm64-gnu@1.7.12': optional: true + '@rspack/binding-linux-arm64-gnu@2.3.3': + optional: true + '@rspack/binding-linux-arm64-musl@1.7.12': optional: true + '@rspack/binding-linux-arm64-musl@2.3.3': + optional: true + + '@rspack/binding-linux-ppc64-gnu@2.3.3': + optional: true + + '@rspack/binding-linux-riscv64-gnu@2.3.3': + optional: true + + '@rspack/binding-linux-riscv64-musl@2.3.3': + optional: true + + '@rspack/binding-linux-s390x-gnu@2.3.3': + optional: true + '@rspack/binding-linux-x64-gnu@1.7.12': optional: true + '@rspack/binding-linux-x64-gnu@2.3.3': + optional: true + '@rspack/binding-linux-x64-musl@1.7.12': optional: true + '@rspack/binding-linux-x64-musl@2.3.3': + optional: true + '@rspack/binding-wasm32-wasi@1.7.12': dependencies: '@napi-rs/wasm-runtime': 1.0.7 optional: true + '@rspack/binding-wasm32-wasi@2.3.3': + dependencies: + '@emnapi/core': 2.0.0-beta.3 + '@emnapi/runtime': 2.0.0-beta.3 + '@napi-rs/wasm-runtime': 1.2.7(@emnapi/core@2.0.0-beta.3)(@emnapi/runtime@2.0.0-beta.3) + optional: true + '@rspack/binding-win32-arm64-msvc@1.7.12': optional: true + '@rspack/binding-win32-arm64-msvc@2.3.3': + optional: true + '@rspack/binding-win32-ia32-msvc@1.7.12': optional: true + '@rspack/binding-win32-ia32-msvc@2.3.3': + optional: true + '@rspack/binding-win32-x64-msvc@1.7.12': optional: true + '@rspack/binding-win32-x64-msvc@2.3.3': + optional: true + '@rspack/binding@1.7.12': optionalDependencies: '@rspack/binding-darwin-arm64': 1.7.12 @@ -23539,6 +23753,23 @@ snapshots: '@rspack/binding-win32-ia32-msvc': 1.7.12 '@rspack/binding-win32-x64-msvc': 1.7.12 + '@rspack/binding@2.3.3': + optionalDependencies: + '@rspack/binding-darwin-arm64': 2.3.3 + '@rspack/binding-darwin-x64': 2.3.3 + '@rspack/binding-linux-arm64-gnu': 2.3.3 + '@rspack/binding-linux-arm64-musl': 2.3.3 + '@rspack/binding-linux-ppc64-gnu': 2.3.3 + '@rspack/binding-linux-riscv64-gnu': 2.3.3 + '@rspack/binding-linux-riscv64-musl': 2.3.3 + '@rspack/binding-linux-s390x-gnu': 2.3.3 + '@rspack/binding-linux-x64-gnu': 2.3.3 + '@rspack/binding-linux-x64-musl': 2.3.3 + '@rspack/binding-wasm32-wasi': 2.3.3 + '@rspack/binding-win32-arm64-msvc': 2.3.3 + '@rspack/binding-win32-ia32-msvc': 2.3.3 + '@rspack/binding-win32-x64-msvc': 2.3.3 + '@rspack/core@1.7.12(@swc/helpers@0.5.23)': dependencies: '@module-federation/runtime-tools': 0.22.0 @@ -23547,6 +23778,13 @@ snapshots: optionalDependencies: '@swc/helpers': 0.5.23 + '@rspack/core@2.3.3(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23)': + dependencies: + '@rspack/binding': 2.3.3 + optionalDependencies: + '@module-federation/runtime-tools': 2.7.0 + '@swc/helpers': 0.5.23 + '@rspack/dev-server@1.2.1(@rspack/core@1.7.12(@swc/helpers@0.5.23))(debug@4.4.3(supports-color@8.1.1))(supports-color@8.1.1)(tslib@2.3.0)(webpack@5.109.2(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(postcss@8.5.23)(uglify-js@3.19.3))': dependencies: '@rspack/core': 1.7.12(@swc/helpers@0.5.23) @@ -23590,6 +23828,8 @@ snapshots: '@rspack/lite-tapable@1.1.2': {} + '@rspack/lite-tapable@1.3.0': {} + '@rspack/plugin-react-refresh@1.6.2(react-refresh@0.18.0)': dependencies: error-stack-parser: 2.1.4 @@ -25307,6 +25547,21 @@ snapshots: '@webassemblyjs/ast': 1.14.1 '@xtuc/long': 4.2.2 + '@xmcp-dev/compiler@1.13.0(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23)(postcss@8.5.23)(webpack@5.109.2(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(postcss@8.5.23)(uglify-js@3.19.3))(xmcp@1.13.0(@modelcontextprotocol/server@2.3.1)(jose@6.2.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(zod@4.6.6))(zod@4.6.6)': + dependencies: + '@rspack/core': 2.3.3(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23) + postcss-loader: 8.2.1(@rspack/core@2.3.3(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23))(postcss@8.5.23)(typescript@5.9.3)(webpack@5.109.2(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(postcss@8.5.23)(uglify-js@3.19.3)) + ts-checker-rspack-plugin: 1.8.0(@rspack/core@2.3.3(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23))(typescript@5.9.3) + typescript: 5.9.3 + xmcp: 1.13.0(@modelcontextprotocol/server@2.3.1)(jose@6.2.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(zod@4.6.6) + zod: 4.6.6 + transitivePeerDependencies: + - '@module-federation/runtime-tools' + - '@swc/helpers' + - '@typescript/native-preview' + - postcss + - webpack + '@xtuc/ieee754@1.2.0': {} '@xtuc/long@4.2.2': {} @@ -25738,12 +25993,12 @@ snapshots: find-up: 5.0.0 webpack: 5.109.2(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(postcss@8.5.23)(uglify-js@3.19.3) - babel-loader@10.1.1(@babel/core@8.0.5)(@rspack/core@1.7.12(@swc/helpers@0.5.23))(webpack@5.112.0(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.28.2)(lightningcss@1.33.0)(postcss@8.5.28)(sharp@0.35.5(@types/node@20.19.9))(svgo@4.1.0)(uglify-js@3.19.3)): + babel-loader@10.1.1(@babel/core@8.0.5)(@rspack/core@2.3.3(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23))(webpack@5.112.0(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.28.2)(lightningcss@1.33.0)(postcss@8.5.28)(sharp@0.35.5(@types/node@20.19.9))(svgo@4.1.0)(uglify-js@3.19.3)): dependencies: '@babel/core': 8.0.5 find-up: 5.0.0 optionalDependencies: - '@rspack/core': 1.7.12(@swc/helpers@0.5.23) + '@rspack/core': 2.3.3(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23) webpack: 5.112.0(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.28.2)(lightningcss@1.33.0)(postcss@8.5.28)(sharp@0.35.5(@types/node@20.19.9))(svgo@4.1.0)(uglify-js@3.19.3) babel-loader@9.2.1(@babel/core@7.29.7(supports-color@8.1.1))(webpack@5.109.2(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(postcss@8.5.23)(uglify-js@3.19.3)): @@ -26106,6 +26361,10 @@ snapshots: optionalDependencies: fsevents: 2.3.3 + chokidar@4.0.3: + dependencies: + readdirp: 4.1.2 + chokidar@5.0.0: dependencies: readdirp: 5.0.0 @@ -26429,7 +26688,7 @@ snapshots: '@rspack/core': 1.7.12(@swc/helpers@0.5.23) webpack: 5.109.2(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(postcss@8.5.23)(uglify-js@3.19.3) - css-loader@7.1.5(@rspack/core@1.7.12(@swc/helpers@0.5.23))(webpack@5.112.0(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.28.2)(lightningcss@1.33.0)(postcss@8.5.28)(sharp@0.35.5(@types/node@20.19.9))(svgo@4.1.0)(uglify-js@3.19.3)): + css-loader@6.11.0(@rspack/core@2.3.3(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23))(webpack@5.109.2(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(postcss@8.5.23)(uglify-js@3.19.3)): dependencies: icss-utils: 5.1.0(postcss@8.5.23) postcss: 8.5.23 @@ -26440,7 +26699,21 @@ snapshots: postcss-value-parser: 4.2.0 semver: 7.8.5 optionalDependencies: - '@rspack/core': 1.7.12(@swc/helpers@0.5.23) + '@rspack/core': 2.3.3(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23) + webpack: 5.109.2(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(postcss@8.5.23)(uglify-js@3.19.3) + + css-loader@7.1.5(@rspack/core@2.3.3(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23))(webpack@5.112.0(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.28.2)(lightningcss@1.33.0)(postcss@8.5.28)(sharp@0.35.5(@types/node@20.19.9))(svgo@4.1.0)(uglify-js@3.19.3)): + dependencies: + icss-utils: 5.1.0(postcss@8.5.23) + postcss: 8.5.23 + postcss-modules-extract-imports: 3.1.0(postcss@8.5.23) + postcss-modules-local-by-default: 4.2.0(postcss@8.5.23) + postcss-modules-scope: 3.2.1(postcss@8.5.23) + postcss-modules-values: 4.0.0(postcss@8.5.23) + postcss-value-parser: 4.2.0 + semver: 7.8.5 + optionalDependencies: + '@rspack/core': 2.3.3(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23) webpack: 5.112.0(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.28.2)(lightningcss@1.33.0)(postcss@8.5.28)(sharp@0.35.5(@types/node@20.19.9))(svgo@4.1.0)(uglify-js@3.19.3) css-minimizer-webpack-plugin@5.0.1(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(webpack@5.109.2(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(postcss@8.5.23)(uglify-js@3.19.3)): @@ -26590,7 +26863,7 @@ snapshots: cssnano-preset-default@7.0.17(postcss@8.5.23): dependencies: - browserslist: 4.28.7 + browserslist: 4.29.5 css-declaration-sorter: 7.4.0(postcss@8.5.23) cssnano-utils: 5.0.3(postcss@8.5.23) postcss: 8.5.23 @@ -29600,7 +29873,7 @@ snapshots: chalk: 4.1.2 ci-info: 4.4.0 graceful-fs: 4.2.11 - picomatch: 4.0.5 + picomatch: 4.0.7 optional: true jest-util@30.4.1: @@ -29917,12 +30190,12 @@ snapshots: less: 4.9.1(supports-color@8.1.1) webpack: 5.109.2(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(postcss@8.5.23)(uglify-js@3.19.3) - less-loader@13.0.0(@rspack/core@1.7.12(@swc/helpers@0.5.23))(less@4.9.1(supports-color@8.1.1))(webpack@5.112.0(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.28.2)(lightningcss@1.33.0)(postcss@8.5.28)(sharp@0.35.5(@types/node@20.19.9))(svgo@4.1.0)(uglify-js@3.19.3)): + less-loader@13.0.0(@rspack/core@2.3.3(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23))(less@4.9.1(supports-color@8.1.1))(webpack@5.112.0(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.28.2)(lightningcss@1.33.0)(postcss@8.5.28)(sharp@0.35.5(@types/node@20.19.9))(svgo@4.1.0)(uglify-js@3.19.3)): dependencies: '@types/less': 3.0.8 less: 4.9.1(supports-color@8.1.1) optionalDependencies: - '@rspack/core': 1.7.12(@swc/helpers@0.5.23) + '@rspack/core': 2.3.3(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23) webpack: 5.112.0(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.28.2)(lightningcss@1.33.0)(postcss@8.5.28)(sharp@0.35.5(@types/node@20.19.9))(svgo@4.1.0)(uglify-js@3.19.3) less@4.6.7: @@ -31449,7 +31722,7 @@ snapshots: postcss-colormin@7.0.10(postcss@8.5.23): dependencies: '@colordx/core': 5.5.0 - browserslist: 4.28.7 + browserslist: 4.29.5 caniuse-api: 3.0.0 postcss: 8.5.23 postcss-value-parser: 4.2.0 @@ -31469,7 +31742,7 @@ snapshots: postcss-convert-values@7.0.12(postcss@8.5.23): dependencies: - browserslist: 4.28.7 + browserslist: 4.29.5 postcss: 8.5.23 postcss-value-parser: 4.2.0 optional: true @@ -31562,14 +31835,26 @@ snapshots: transitivePeerDependencies: - typescript - postcss-loader@8.2.1(@rspack/core@1.7.12(@swc/helpers@0.5.23))(postcss@8.5.28)(typescript@6.0.3)(webpack@5.112.0(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.28.2)(lightningcss@1.33.0)(postcss@8.5.28)(sharp@0.35.5(@types/node@20.19.9))(svgo@4.1.0)(uglify-js@3.19.3)): + postcss-loader@8.2.1(@rspack/core@2.3.3(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23))(postcss@8.5.23)(typescript@5.9.3)(webpack@5.109.2(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(postcss@8.5.23)(uglify-js@3.19.3)): + dependencies: + cosmiconfig: 9.0.2(typescript@5.9.3) + jiti: 2.7.0 + postcss: 8.5.23 + semver: 7.8.5 + optionalDependencies: + '@rspack/core': 2.3.3(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23) + webpack: 5.109.2(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(postcss@8.5.23)(uglify-js@3.19.3) + transitivePeerDependencies: + - typescript + + postcss-loader@8.2.1(@rspack/core@2.3.3(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23))(postcss@8.5.28)(typescript@6.0.3)(webpack@5.112.0(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.28.2)(lightningcss@1.33.0)(postcss@8.5.28)(sharp@0.35.5(@types/node@20.19.9))(svgo@4.1.0)(uglify-js@3.19.3)): dependencies: cosmiconfig: 9.0.2(typescript@6.0.3) jiti: 2.7.0 postcss: 8.5.28 semver: 7.8.5 optionalDependencies: - '@rspack/core': 1.7.12(@swc/helpers@0.5.23) + '@rspack/core': 2.3.3(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23) webpack: 5.112.0(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.28.2)(lightningcss@1.33.0)(postcss@8.5.28)(sharp@0.35.5(@types/node@20.19.9))(svgo@4.1.0)(uglify-js@3.19.3) transitivePeerDependencies: - typescript @@ -31613,7 +31898,7 @@ snapshots: postcss-merge-rules@7.0.11(postcss@8.5.23): dependencies: - browserslist: 4.28.7 + browserslist: 4.29.5 caniuse-api: 3.0.0 cssnano-utils: 5.0.3(postcss@8.5.23) postcss: 8.5.23 @@ -31674,7 +31959,7 @@ snapshots: postcss-minify-params@7.0.9(postcss@8.5.23): dependencies: - browserslist: 4.28.7 + browserslist: 4.29.5 cssnano-utils: 5.0.3(postcss@8.5.23) postcss: 8.5.23 postcss-value-parser: 4.2.0 @@ -31692,7 +31977,7 @@ snapshots: postcss-minify-selectors@7.1.2(postcss@8.5.23): dependencies: - browserslist: 4.28.7 + browserslist: 4.29.5 caniuse-api: 3.0.0 cssesc: 3.0.0 postcss: 8.5.23 @@ -31851,7 +32136,7 @@ snapshots: postcss-normalize-unicode@7.0.9(postcss@8.5.23): dependencies: - browserslist: 4.28.7 + browserslist: 4.29.5 postcss: 8.5.23 postcss-value-parser: 4.2.0 optional: true @@ -31922,7 +32207,7 @@ snapshots: postcss-reduce-initial@7.0.9(postcss@8.5.23): dependencies: - browserslist: 4.28.7 + browserslist: 4.29.5 caniuse-api: 3.0.0 postcss: 8.5.23 optional: true @@ -32297,6 +32582,8 @@ snapshots: dependencies: picomatch: 2.3.2 + readdirp@4.1.2: {} + readdirp@5.0.0: {} recast@0.23.12: @@ -32933,9 +33220,18 @@ snapshots: sass-embedded: 1.100.0 webpack: 5.109.2(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(postcss@8.5.23)(uglify-js@3.19.3) - sass-loader@17.0.1(@rspack/core@1.7.12(@swc/helpers@0.5.23))(sass-embedded@1.100.0)(sass@1.56.2)(webpack@5.112.0(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.28.2)(lightningcss@1.33.0)(postcss@8.5.28)(sharp@0.35.5(@types/node@20.19.9))(svgo@4.1.0)(uglify-js@3.19.3)): + sass-loader@16.0.8(@rspack/core@2.3.3(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23))(sass-embedded@1.100.0)(sass@1.101.0)(webpack@5.109.2(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(postcss@8.5.23)(uglify-js@3.19.3)): + dependencies: + neo-async: 2.6.2 + optionalDependencies: + '@rspack/core': 2.3.3(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23) + sass: 1.101.0 + sass-embedded: 1.100.0 + webpack: 5.109.2(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(postcss@8.5.23)(uglify-js@3.19.3) + + sass-loader@17.0.1(@rspack/core@2.3.3(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23))(sass-embedded@1.100.0)(sass@1.56.2)(webpack@5.112.0(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.28.2)(lightningcss@1.33.0)(postcss@8.5.28)(sharp@0.35.5(@types/node@20.19.9))(svgo@4.1.0)(uglify-js@3.19.3)): optionalDependencies: - '@rspack/core': 1.7.12(@swc/helpers@0.5.23) + '@rspack/core': 2.3.3(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23) sass: 1.56.2 sass-embedded: 1.100.0 webpack: 5.112.0(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.28.2)(lightningcss@1.33.0)(postcss@8.5.28)(sharp@0.35.5(@types/node@20.19.9))(svgo@4.1.0)(uglify-js@3.19.3) @@ -33550,7 +33846,7 @@ snapshots: stylehacks@7.0.11(postcss@8.5.23): dependencies: - browserslist: 4.28.7 + browserslist: 4.29.5 postcss: 8.5.23 postcss-selector-parser: 7.1.6 optional: true @@ -33785,6 +34081,16 @@ snapshots: transitivePeerDependencies: - tslib + ts-checker-rspack-plugin@1.8.0(@rspack/core@2.3.3(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23))(typescript@5.9.3): + dependencies: + '@rspack/lite-tapable': 1.3.0 + chokidar: 4.0.3 + memfs: 4.80.0 + picocolors: 1.1.1 + typescript: 5.9.3 + optionalDependencies: + '@rspack/core': 2.3.3(@module-federation/runtime-tools@2.7.0)(@swc/helpers@0.5.23) + ts-dedent@2.3.0: optional: true @@ -34701,26 +35007,14 @@ snapshots: is-wsl: 3.1.1 powershell-utils: 0.2.1 - xmcp@0.6.4(@swc/helpers@0.5.23)(postcss@8.5.23)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(supports-color@8.1.1)(tslib@2.3.0)(webpack@5.109.2(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(postcss@8.5.23)(uglify-js@3.19.3))(zod@4.6.6): + xmcp@1.13.0(@modelcontextprotocol/server@2.3.1)(jose@6.2.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(zod@4.6.6): dependencies: - '@modelcontextprotocol/sdk': 1.32.0(supports-color@8.1.1)(zod@4.6.6) - '@rspack/core': 1.7.12(@swc/helpers@0.5.23) - jose: 6.2.3 - postcss-loader: 8.2.1(@rspack/core@1.7.12(@swc/helpers@0.5.23))(postcss@8.5.23)(typescript@5.9.3)(webpack@5.109.2(@swc/core@1.15.8(@swc/helpers@0.5.23))(cssnano@7.1.9(postcss@8.5.23))(csso@5.0.5)(esbuild@0.19.2)(lightningcss@1.33.0)(postcss@8.5.23)(uglify-js@3.19.3)) - ts-checker-rspack-plugin: 1.5.2(@rspack/core@1.7.12(@swc/helpers@0.5.23))(tslib@2.3.0)(typescript@5.9.3) - typescript: 5.9.3 zod: 4.6.6 optionalDependencies: + '@modelcontextprotocol/server': 2.3.1 + jose: 6.2.3 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) - transitivePeerDependencies: - - '@cfworker/json-schema' - - '@swc/helpers' - - '@typescript/native-preview' - - postcss - - supports-color - - tslib - - webpack xml-name-validator@4.0.0: {} diff --git a/core-web/pnpm-workspace.yaml b/core-web/pnpm-workspace.yaml index a354d4f118ea..d8ef78986da0 100644 --- a/core-web/pnpm-workspace.yaml +++ b/core-web/pnpm-workspace.yaml @@ -87,7 +87,7 @@ allowBuilds: # the intent is being declared rather than inherited. trustPolicy: no-downgrade -# Eight lockfile entries fail no-downgrade today. None is a takeover: each is an older +# Lockfile entries that fail no-downgrade today. None is a takeover: each is an older # release of a package whose other releases carry provenance, and the check compares a # version against the package's whole history regardless of semver line. Publish dates # verified against registry.npmjs.org. Listed one by one rather than waved through with @@ -99,6 +99,10 @@ trustPolicyExclude: # a provenance gap in one release of an otherwise attested line - 'undici-types@6.21.0' # 2024-11-13; 6.13.0 through 6.16.x (Apr-May 2024) were attested - 'detect-port@1.6.1' # 2024-05-08; 1.6.0 was attested the same day + # last 4.x release has no attestation; 4.0.0 and 4.0.1 do, and 5.0.0 does. + # ts-checker-rspack-plugin@1.8.0 (@xmcp-dev/compiler) requires ^4.0.3, and + # 4.0.3 is the only release that satisfies that range. + - 'chokidar@4.0.3' # 2024-12-18; 4.0.0 attested 2024-09-13, 5.0.0 attested 2025-11-25 - 'storybook@9.1.21' # 2026-10-12; 10.x attested since 2026-06-02 (10.4.2), same GitHub Actions trusted-publisher config (oidcConfigId 79413afc...) but no attestation # strongest signal here: over a thousand earlier versions attested, these two are not - '@modern-js/node-bundle-require@2.68.2' # 2025-07-11 From b1d0b5b1f51edd83fc0b02e6ae19e062c6654840 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Fri, 27 Nov 2026 21:38:43 +0000 Subject: [PATCH 2/3] feat(mcp-server): serve the dot-ui-vtl-migration skill Vendors the MCP-driven skill from dotCMS/agent-toolkit and publishes it through the MCP Skills extension. A drift check pins that commit. The smoke test checks the skills capability, the manifest, and that every resources/read matches the published SHA-256 and size. --- core-web/apps/mcp-server/CLAUDE.md | 2 +- core-web/apps/mcp-server/README.md | 2 + core-web/apps/mcp-server/project.json | 1 + .../mcp-server/scripts/check-skill-drift.mjs | 117 ++ .../mcp-server/scripts/skill-upstream.json | 49 + .../src/skills/dot-ui-vtl-migration/SKILL.md | 393 +++++ .../reference/instance-migration.md | 265 +++ .../reference/migration-guide.md | 1561 +++++++++++++++++ .../scripts/vtl_migration.py | 980 +++++++++++ .../mcp-server/src/smoke/server-boot.spec.ts | 153 +- core-web/apps/mcp-server/xmcp.config.ts | 16 +- 11 files changed, 3526 insertions(+), 13 deletions(-) create mode 100644 core-web/apps/mcp-server/scripts/check-skill-drift.mjs create mode 100644 core-web/apps/mcp-server/scripts/skill-upstream.json create mode 100644 core-web/apps/mcp-server/src/skills/dot-ui-vtl-migration/SKILL.md create mode 100644 core-web/apps/mcp-server/src/skills/dot-ui-vtl-migration/reference/instance-migration.md create mode 100644 core-web/apps/mcp-server/src/skills/dot-ui-vtl-migration/reference/migration-guide.md create mode 100644 core-web/apps/mcp-server/src/skills/dot-ui-vtl-migration/scripts/vtl_migration.py diff --git a/core-web/apps/mcp-server/CLAUDE.md b/core-web/apps/mcp-server/CLAUDE.md index b672995817f1..dfbd839dd55e 100644 --- a/core-web/apps/mcp-server/CLAUDE.md +++ b/core-web/apps/mcp-server/CLAUDE.md @@ -55,7 +55,7 @@ This is a **Model Context Protocol (MCP) server** for dotCMS, built with [xmcp]( ### Core Architecture -**Framework**: xmcp auto-discovers tools from `src/tools/`. Each tool exports `schema`, `metadata`, and a default handler function. +**Framework**: xmcp auto-discovers tools from `src/tools/`. Each tool exports `schema`, `metadata`, and a default handler function. `src/skills/` is served through the MCP Skills extension (`io.modelcontextprotocol/skills`): the files are embedded at build time and read back as `skill://` resources. The one skill today is `dot-ui-vtl-migration`, vendored from `dotCMS/agent-toolkit` (see `scripts/skill-upstream.json`). `scripts/check-skill-drift.mjs` fails the build when that copy drifts. **Entry Point**: xmcp generates the entry point at build time (`dist/stdio.js`). diff --git a/core-web/apps/mcp-server/README.md b/core-web/apps/mcp-server/README.md index 9cb2184ccedc..c2abdf563d93 100644 --- a/core-web/apps/mcp-server/README.md +++ b/core-web/apps/mcp-server/README.md @@ -439,6 +439,8 @@ The built server works with both `node` and `bun` — the correct sandbox is sel ``` apps/mcp-server/ # MCP server (thin xmcp host) ├── src/ +│ ├── skills/ # Agent skills served over the MCP Skills extension +│ │ └── dot-ui-vtl-migration/ # Vendored from dotCMS/agent-toolkit; see scripts/skill-upstream.json │ ├── tools/ # One 3-line file per tool — xmcp loads every module here │ │ ├── search.ts │ │ ├── execute.ts diff --git a/core-web/apps/mcp-server/project.json b/core-web/apps/mcp-server/project.json index dece41e5c4d1..678f0e766f54 100644 --- a/core-web/apps/mcp-server/project.json +++ b/core-web/apps/mcp-server/project.json @@ -17,6 +17,7 @@ "options": { "commands": [ "node scripts/check-tools-dir.mjs", + "node scripts/check-skill-drift.mjs", "xmcp build", "cp package.json ../../dist/apps/mcp-server/", "cp README.md ../../dist/apps/mcp-server/" diff --git a/core-web/apps/mcp-server/scripts/check-skill-drift.mjs b/core-web/apps/mcp-server/scripts/check-skill-drift.mjs new file mode 100644 index 000000000000..5ac3513c7022 --- /dev/null +++ b/core-web/apps/mcp-server/scripts/check-skill-drift.mjs @@ -0,0 +1,117 @@ +/** + * The VTL skill served by this app is a vendored copy of + * `dotCMS/agent-toolkit` at the commit in `skill-upstream.json`. + * + * That repository is the source of truth. This check downloads those files and + * fails when the copy here differs from them. The JSON lists the only edits + * this server is allowed to make (frontmatter the MCP Skills extension rejects, + * and two phrases that cite a dotCMS checkout). Each edit must match the + * upstream bytes exactly once. Anything else is drift. + * + * The build runs this before `xmcp build`, so a stale skill never ships. + */ +import { createHash } from 'node:crypto'; +import { readFileSync } from 'node:fs'; +import { dirname, join } from 'node:path'; +import { fileURLToPath } from 'node:url'; + +const APP_ROOT = join(dirname(fileURLToPath(import.meta.url)), '..'); +const PIN = JSON.parse(readFileSync(join(APP_ROOT, 'scripts/skill-upstream.json'), 'utf8')); + +const sha256 = (bytes) => createHash('sha256').update(bytes).digest('hex'); + +/** + * @param {string} repository `owner/name` + * @param {string} commit + * @param {string} upstreamPath + * @returns {Promise} + */ +async function fetchUpstream(repository, commit, upstreamPath) { + const url = `https://raw.githubusercontent.com/${repository}/${commit}/${upstreamPath}`; + const response = await fetch(url, { signal: AbortSignal.timeout(30_000) }); + if (!response.ok) { + throw new Error(`${url} returned HTTP ${response.status}`); + } + return Buffer.from(await response.arrayBuffer()); +} + +/** + * @param {Buffer} bytes + * @param {{ from: string, to: string, reason: string }[]} replacements + * @param {string} label + */ +function applyReplacements(bytes, replacements, label) { + let text = bytes.toString('utf8'); + for (const replacement of replacements) { + const found = text.split(replacement.from).length - 1; + if (found !== 1) { + throw new Error( + `${label}: expected the allowed edit to match once, found ${found}.\n` + + ` reason: ${replacement.reason}\n` + + ` looking for: ${JSON.stringify(replacement.from).slice(0, 180)}` + ); + } + text = text.replace(replacement.from, replacement.to); + } + return Buffer.from(text, 'utf8'); +} + +const failures = []; + +for (const file of PIN.files) { + const localPath = join(APP_ROOT, file.served); + let upstream; + try { + upstream = await fetchUpstream(PIN.repository, PIN.commit, file.upstream); + } catch (error) { + failures.push( + `${file.upstream}: ${(error instanceof Error ? error : new Error(String(error))).message}` + ); + continue; + } + + let expected; + try { + expected = applyReplacements(upstream, file.replacements ?? [], file.upstream); + } catch (error) { + failures.push(error instanceof Error ? error.message : String(error)); + continue; + } + + let local; + try { + local = readFileSync(localPath); + } catch (error) { + failures.push(`${file.served}: ${error instanceof Error ? error.message : String(error)}`); + continue; + } + + if (!local.equals(expected)) { + failures.push( + [ + `${file.served} does not match ${PIN.repository}@${PIN.commit.slice(0, 12)}:${file.upstream}`, + ` after the ${file.replacements?.length ?? 0} allowed edit(s).`, + ` upstream+edits sha256 ${sha256(expected)} (${expected.byteLength} bytes)`, + ` served sha256 ${sha256(local)} (${local.byteLength} bytes)` + ].join('\n') + ); + } +} + +if (failures.length > 0) { + console.error( + [ + '', + `Skill drift: served files must match ${PIN.repository}@${PIN.commit}`, + 'except the edits listed in scripts/skill-upstream.json.', + '', + ...failures.map((failure) => failure), + '' + ].join('\n') + ); + process.exit(1); +} + +console.log( + `skill drift: ${PIN.files.length} file(s) match ${PIN.repository}@${PIN.commit.slice(0, 12)}` +); diff --git a/core-web/apps/mcp-server/scripts/skill-upstream.json b/core-web/apps/mcp-server/scripts/skill-upstream.json new file mode 100644 index 000000000000..08d17a4f8bfe --- /dev/null +++ b/core-web/apps/mcp-server/scripts/skill-upstream.json @@ -0,0 +1,49 @@ +{ + "repository": "dotCMS/agent-toolkit", + "commit": "895ba10e8d639276099e674eb59d7a7f25b0c4d8", + "files": [ + { + "upstream": "skills/dot-ui-vtl-migration/SKILL.md", + "served": "src/skills/dot-ui-vtl-migration/SKILL.md", + "replacements": [ + { + "from": "name: dotcms-custom-field-migration", + "to": "name: dot-ui-vtl-migration", + "reason": "xmcp and the Agent Skills spec require the frontmatter name to equal the directory name. Upstream calls the skill dotcms-custom-field-migration while the directory, and the URI this server must publish, is dot-ui-vtl-migration." + }, + { + "from": " Also trigger when the user pastes a VTL snippet and asks \"what needs to change\" or \"can you update this\", asks for an inline, single-file or one-file migration (\"un solo archivo\"), wants to paste the result into the content type editor, or wants to collapse a _new/_old/router migration into one file or split an inline one. Also trigger when the user asks to migrate ALL custom fields, every legacy field, or \"the whole instance\": the skill finds, downloads, and safely republishes every legacy custom field on a live dotCMS instance through the dotCMS MCP server (see \"Migrate a whole instance\" below). If in doubt, use this skill.", + "to": " Also use it for a pasted snippet, an inline single-file migration (\"un solo archivo\"), or migrating every legacy field on an instance through the dotCMS MCP server.", + "reason": "xmcp rejects a description longer than 1024 characters (upstream is 1476). The served description keeps the opening sentences and a shorter form of the remaining triggers. The whole-instance procedure itself stays in the skill body." + } + ] + }, + { + "upstream": "skills/dot-ui-vtl-migration/reference/instance-migration.md", + "served": "src/skills/dot-ui-vtl-migration/reference/instance-migration.md", + "replacements": [] + }, + { + "upstream": "skills/dot-ui-vtl-migration/reference/migration-guide.md", + "served": "src/skills/dot-ui-vtl-migration/reference/migration-guide.md", + "replacements": [ + { + "from": "core-web/apps/dotcms-ui/src/daisyui-theme.css", + "to": "the admin UI theme stylesheet (daisyui-theme.css)", + "reason": "The served skill must not cite a path inside the dotCMS checkout. The stylesheet name stays so the advice is still findable." + } + ] + }, + { + "upstream": "skills/dot-ui-vtl-migration/scripts/vtl_migration.py", + "served": "src/skills/dot-ui-vtl-migration/scripts/vtl_migration.py", + "replacements": [ + { + "from": "copied from dotCMS/core's migrate_custom_fields.py", + "to": "copied from the original custom-field migration script", + "reason": "The comment cited the core repository script. The logic is unchanged." + } + ] + } + ] +} diff --git a/core-web/apps/mcp-server/src/skills/dot-ui-vtl-migration/SKILL.md b/core-web/apps/mcp-server/src/skills/dot-ui-vtl-migration/SKILL.md new file mode 100644 index 000000000000..f2aac412927f --- /dev/null +++ b/core-web/apps/mcp-server/src/skills/dot-ui-vtl-migration/SKILL.md @@ -0,0 +1,393 @@ +--- +name: dot-ui-vtl-migration +description: > + Migrates VTL (Velocity Template Language) custom field templates from the legacy dotCMS Dojo/Dijit API to the modern DotCustomFieldApi. By default it returns a single inline file ready to paste into the Custom Field: the migrated code inside #if( $structures.isNewEditModeEnabled() ) and the original legacy code, untouched, inside #else, with no #parse and no extra files. On request it produces three files instead (_old.vtl, _new.vtl and a #parse router), and it converts existing migrations between the two shapes. Use this skill whenever a user asks to migrate, update, or convert a VTL file, custom field template, or dotCMS field that uses any of: DotCustomFieldApi.get(), DotCustomFieldApi.set(), DotCustomFieldApi.onChangeField(), dojo.ready(), dojo.byId(), dijit.byId(), dijit.form.*, dojoType attributes, or any Dojo/Dijit pattern. Also use it for a pasted snippet, an inline single-file migration ("un solo archivo"), or migrating every legacy field on an instance through the dotCMS MCP server. +--- + +# VTL Migration: Legacy API → DotCustomFieldApi + +You are migrating DotCMS VTL custom field templates from Dojo/Dijit-era APIs to the modern `DotCustomFieldApi`. The goal is **identical functionality with modern, clean code** and **semantic styling with DaisyUI**. + +For the full migration rules, all code examples, the DaisyUI styling section, and the step-by-step checklist, read `reference/migration-guide.md`. + +## Migrate a whole instance + +When the user asks to migrate **all** custom fields, every legacy field, or "the whole instance", not a single pasted VTL file, follow [reference/instance-migration.md](reference/instance-migration.md). The `dotcms` MCP server reads and writes the instance, `scripts/vtl_migration.py` (local, no network, plain `python3`) classifies the fields and runs the safety gates, and this skill migrates each file in the default inline mode. Work in batches the customer picks, and never write to the instance without their explicit confirmation. + +## The Core API Swap (Quick Reference) + +| Old (deprecated) | New | +|---|---| +| `DotCustomFieldApi.get('id')` | `DotCustomFieldApi.getField('id').getValue()` | +| `DotCustomFieldApi.set('id', val)` | `DotCustomFieldApi.getField('id').setValue(val)` | +| `DotCustomFieldApi.onChangeField('id', cb)` | `DotCustomFieldApi.getField('id').onChange(cb)` | +| Manual DOM show/hide of a field | `DotCustomFieldApi.getField('id').show()` / `.hide()` | +| Manual DOM enable/disable of a field | `DotCustomFieldApi.getField('id').enable()` / `.disable()` | +| Manual checks against dijit validation state | `DotCustomFieldApi.getField('id').getValidationState()` | +| No legacy equivalent | `DotCustomFieldApi.getField('id').onValidationChange(cb)` | +| `dojo.ready(fn)` | `DotCustomFieldApi.ready(fn)` | +| `dojo.byId('el')` | `document.getElementById('el')` | +| `dijit.byId('id')` | `DotCustomFieldApi.getField('id')` | +| `dijit.form.*` widgets | Native HTML + **DaisyUI** classes (`input`, `btn`, `select`, etc.) | +| `dojoType="..."` attribute | Remove; use semantic HTML + DaisyUI components | +| `class="dijit*"` classes | Remove; use **DaisyUI** component classes instead | +| Inline styles / ad-hoc CSS | **DaisyUI** component classes + Tailwind utilities (see guide) | +| `onclick="fn()"` inline handlers | `addEventListener('click', fn)` | + +## Process + +1. **Read the entire file** to understand all functionality before touching anything. +2. **Identify deprecated patterns** — scan for the patterns in the table above. +3. **Wrap everything in `DotCustomFieldApi.ready()`** — all field access must live inside this callback. +4. **Store field references once** — call `getField()` once per field at the top of `ready()`, then reuse the reference. +5. **Migrate each pattern** — follow the migration rules in `reference/migration-guide.md`. +6. **Apply DaisyUI for styling** — use DaisyUI component classes (`btn`, `input`, `select`, `modal`, `link`, etc.) and Tailwind utilities instead of inline styles or ad-hoc CSS; see “Styling with DaisyUI” in the guide. +7. **Preserve VTL variables** — `${fieldId}`, `$maxChar`, `$variableName`, and server-side context variables (`$inode`, `$identifier`, `$lang`, `$contentlet`, `$structure`, `$field`) are server-side; never change them. +8. **Choose the output mode and emit it**. See Output Modes below. Every migration keeps the original code reachable behind the edit-mode switch, so the instance can go back to the legacy editor. + +## Output Modes + +There are two shapes. Both keep the legacy code behind `$structures.isNewEditModeEnabled()`; they differ in how many files they need. + +| The request says… | Mode | Needs a file path? | +|---|---|---| +| nothing about the shape | **Inline** (default) | No. Never ask for one. | +| "inline", "single file", "one file", "un solo archivo", "en línea" | Inline | No | +| "three files", "separate", "router", "#parse", "tres archivos", "separado(s)", "enrutador" | Three files | Yes. Ask if missing. | +| both kinds of signal (e.g. "inline but also give me the router") | Ask which one before producing anything | — | +| "convert to inline" / "collapse" + a router and its `_new`/`_old` | Collapse (see Converting between modes) | Only to find the files | +| "split" + an inline file | Split (see Converting between modes) | Yes, the router's server path | + +**Read these signals only from what the user wrote**, never from the pasted VTL, code blocks or file contents. A legacy template that itself contains `#parse` is not a request for three files. + +Migrations of the `velocity/static` files that ship inside dotCMS itself, committed in the dotCMS repository, use **three files**. Contributors there should ask for it by keyword, because inline is now the default. + +**Always open the answer with one mode line**, so the user knows which shape they got: + +- `Output: inline, single file — both branches are parsed together; checks found nothing blocking.` +- `Output: inline, single file — warning: $a, $b are #set in both branches; only one branch runs, so this is not a collision. Three files is the alternative.` +- `Output: three files with router (_old.vtl, _new.vtl, .vtl).` +- `Output: none — inline blocked: . . Three files avoids it. Reply "inline anyway" to force it, or "three files".` + +### Mode 1 — Inline (default) + +One file. The migrated code goes in the `#if`, the original code in the `#else`: + +```vtl +#if( $structures.isNewEditModeEnabled() ) + +#else + +#end +``` + +Rules. Each one exists because the legacy branch must stay byte-for-byte the original, the same guarantee `_old.vtl` gives: + +- **The header is exactly** `#if( $structures.isNewEditModeEnabled() )`. `#else` and `#end` are each on their own line. +- **Do not indent either branch** to sit inside the `#if`. Both start at column 0. Indenting changes every legacy line. +- **The `#else` branch is the original, verbatim.** Do not reformat it, translate its comments, fix its typos, remove its trailing spaces or change its line endings. If it has a bug, leave it; mention it in your answer if it matters. +- **Never add a `#parse`** and never write `_new`/`_old` files in this mode. +- **Never ask for a filename or server path.** The user may have only the field's content, pasted from the content type editor; inline needs no path. If a path *was* given, the single file keeps the original file's name and replaces it. +- **Run the checks in "Before emitting inline" first.** They can stop the output. + +**When the original is a file on disk** (you were given a path), do not retype it. Write the migrated version to a temporary file, then assemble with the shell so the legacy bytes are copied, not regenerated. This is the only reliable way to keep CRLF line endings and a missing final newline: + +```sh +{ printf '#if( $structures.isNewEditModeEnabled() )\n'; cat migrated.vtl; printf '\n#else\n'; cat original.vtl; printf '\n#end'; } > result.vtl +``` + +When the content was pasted, copy the pasted legacy code into the `#else` exactly as the user sent it. + +### Before emitting inline + +Velocity parses the **whole file** before it renders either branch. With the router, the branch not taken is never even parsed; inline, both are. So some problems that only affected the legacy editor in the three-file shape would break the new editor too. Before emitting inline, read both branches and check: + +| Finding | Severity | What to do | +|---|---|---| +| A `#macro` with the same name in both branches | **Blocking** | Macros are registered at parse time, and the first definition wins. That is the migrated one, so the legacy editor would silently run the new macro. Emit nothing; name the macro; offer three files. | +| The legacy branch would not parse on its own: a `#if`/`#foreach`/`#macro`/`#define` without its `#end`, a stray `#end`, an `#else` outside an `#if` | **Blocking** | Inline would carry that parse error into the new edit mode. Emit nothing; give the line; offer three files. | +| The migrated branch would not parse on its own | **Blocking** | If you migrated it, that is a bug in your migration: fix it before emitting anything. If it came from the user (collapse or split), report the line like the legacy case and write nothing. | +| The same variable `#set` in both branches | Warning | `#set` runs at render time and only one branch renders, so this is not a collision. Emit, but list the names in the mode line. | + +Count directives the way Velocity does. Text inside `##`, `#* *#` and `#[[ ]]#` is not code, and `\#end` is escaped. A directive name also ends at the first character that is not a letter, digit, `_` or `@`, so `$('#end-date')` in a script **is** an `#end`, while `#endDate` is not. The full rules and examples are in `reference/migration-guide.md` → "Output Modes". + +After a blocking finding, emit inline only if the user explicitly insists ("inline anyway"), and restate the finding in the mode line when you do. + +### Mode 2 — Three files with a router + +Use this mode when the request asks for it (see the table above). Given an original file at `/static/personas/keytag_custom_field.vtl`, the three outputs are: + +--- + +#### File 1 — `keytag_custom_field_old.vtl` +The **original file content, completely unchanged**. Copy it verbatim — every deprecated API call, every dijit class, every dojo.ready. This is the fallback for the legacy editor. + +--- + +#### File 2 — `keytag_custom_field_new.vtl` +The **fully migrated file** with all deprecated patterns replaced per the migration rules. + +--- + +#### File 3 — `keytag_custom_field.vtl` (replaces the original) +The **conditional router** — this file takes the name of the original and delegates to `_new` or `_old` based on which edit mode is active: + +```vtl +#if( $structures.isNewEditModeEnabled() ) + #parse('/static/personas/keytag_custom_field_new.vtl') +#else + #parse('/static/personas/keytag_custom_field_old.vtl') +#end +``` + +The `#parse` paths must use the **full server path** of the file, not just the filename. Use the same directory as the original file. Indent the `#parse` lines with a tab and end the file right after `#end`, with no final newline, as the routers already in the repository do. On disk, write it with `printf` so no newline is added. + +--- + +This pattern lets both legacy and new edit modes coexist safely — old editor users continue using the deprecated code, new editor users get the modernized version. + +**When the user gives you a file path**, derive all three filenames automatically. In three-file mode only, if you receive file contents without a path, ask for the filename and its server path before outputting, because `#parse` cannot work without it. + +### Converting between modes + +Conversion only moves content. **Never apply a migration rule to either branch while converting.** It is a re-shaping, not a re-migration. + +**Collapse (router + `_new` + `_old` → one inline file).** Read the router's two `#parse` paths and find the `_new` and `_old` files. The `_new` content goes in the `#if` and the `_old` content in the `#else`, using the Mode 1 layout. Run "Before emitting inline" first; the same findings apply. If the router's paths do not match the files you were given (different names or directories), say so and stop. Do not guess. + +**Split (one inline file → router + `_new` + `_old`).** You need the router's full server path; ask for it if you do not have it. + +1. Find where the branches end. Line 1 is the header. The legacy branch starts after the **top-level** `#else`: the first `#else` line reached while no block opened after line 1 is still open. Count block openers (`#if`, `#foreach`, `#macro`, `#define`, `#literal`, `#@name`) and `#end`s from line 2 on. **Never just take the first `#else`**, because branches often contain their own `#if … #else … #end`. The file ends with the matching `#end`. +2. `_new.vtl` is everything between the header and the top-level `#else`. `_old.vtl` is everything between that `#else` and the final `#end`. In both cases, drop the one newline the inline layout added before the `#else` and before the `#end`. +3. Write the router in Mode 2's shape: tab-indented `#parse` lines with full server paths. + +If the file does not start with `#if( $structures.isNewEditModeEnabled() )`, or has no top-level `#else`, it is not an inline migration. Say so; do not guess. + +**On disk, use the shell for both directions** so bytes are copied, never retyped. Collapse is the Mode 1 command, with `_new` in place of `migrated.vtl` and `_old` in place of `original.vtl`. Split takes line ranges, where `E` is the line number of the top-level `#else` and `L` is the line number of the final `#end`: + +```sh +sed -n "2,$((E-1))p" inline.vtl | perl -pe 'chomp if eof' > name_new.vtl +sed -n "$((E+1)),$((L-1))p" inline.vtl | perl -pe 'chomp if eof' > name_old.vtl +``` + +## Non-Negotiables + +- All `getField()` calls must be inside `DotCustomFieldApi.ready()` +- Never use `DotCustomFieldApi.get()` or `DotCustomFieldApi.set()` (the old short forms) +- VTL variables stay exactly as-is +- Business logic stays exactly as-is — only the API calls and styling approach change +- Dijit CSS classes (any `class="dijit*"`) must be removed +- **Styling:** Prefer DaisyUI component classes + Tailwind utilities; keep custom CSS only when the guide says so +- Translate non-English comments to English **in the migrated code only** +- The legacy code (`#else` branch or `_old.vtl`) is never edited, not even its comments or whitespace +- Server-side VTL variables (`$inode`, `$identifier`, `$lang`, `$contentlet`, `$structure`, `$field`) are resolved at render time — do not confuse them with `DotCustomFieldApi` JavaScript APIs + +## Key Patterns to Know + +**Field reference lifecycle:** +```js +DotCustomFieldApi.ready(() => { + // Get once, reuse everywhere + const titleField = DotCustomFieldApi.getField('title'); + const urlField = DotCustomFieldApi.getField('url'); + + // Read + const current = titleField.getValue() || ''; + + // Write + urlField.setValue(slugify(current)); + + // Watch + titleField.onChange((value) => { + urlField.setValue(slugify(value)); + }); +}); +``` + +**Field visibility and state control:** +```js +DotCustomFieldApi.ready(() => { + const mediaField = DotCustomFieldApi.getField('media'); + const mediaFileField = DotCustomFieldApi.getField('mediafile'); + + // Show/hide based on current value + if (mediaField.getValue() === 'upload') { + mediaFileField.show(); + } else { + mediaFileField.hide(); + } + + // React to changes + mediaField.onChange((value) => { + if (value === 'upload') { + mediaFileField.show(); + } else { + mediaFileField.hide(); + } + }); + + // Enable/disable a field + mediaFileField.disable(); // blocks editing, applies disabled styling + mediaFileField.enable(); // restores interactivity +}); +``` + +**Reacting to validation state (required, errors, touched):** +```html + + + +``` + +> Use a self-contained `is-invalid` class with inline ` + + + + +``` + +**Important gotchas:** + +- **Always gate on `state.touched`.** A required + empty field is `invalid: true` from the moment it mounts. If you toggle only on `invalid`, the input flashes red on first render before the user has done anything. +- **Don't rely on DaisyUI's `input-error` modifier inside legacy iframe templates.** The legacy iframe page (`legacy-custom-field.jsp`) does NOT load DaisyUI or Tailwind. Ship your error styles inline in the template (the example above does that with a small ` + +
+
+ $maxChar characters +
+
Recommended Max $maxChar characters
+
+ + +``` + +**New (text-count.vtl):** Prefer DaisyUI/Tailwind for styling when replacing or adding styles. Example using semantic classes for the wrapper: +```html + +
+
+ $maxChar characters +
+
Recommended Max $maxChar characters
+
+ + +``` + +--- + +### Example 2: Title Field with Auto-generated URL and Friendly Name + +**Old (title_custom_field.vtl — using dijit.form API):** +```html + + + + + +``` + +> **Note:** In the old pattern, `dojo.byId("title")` refers to a hidden input element that dotCMS generates for each field (its `id` matches the field's variable name). The visible `` is the Dijit widget overlay. In the new pattern, `DotCustomFieldApi.getField("title")` replaces both — there is no need to manage hidden inputs directly. + +**New (title_custom_field.vtl):** Use DaisyUI `input` for semantic styling: +```html + + +``` + +--- + +### Example 3: Slug Generator with Suggestions + +**Old (slug-generator.vtl):** +```html + + + + +``` + +**New (slug-generator.vtl):** +```html + + + + +``` + +--- + +### Example 4: Conditional Field Visibility (show/hide) + +This example shows a "Media" form where the "Media File" field is shown or hidden based on the "Media Location" radio selection. The custom field stores the selection in one field and toggles visibility of another. + +**New (show_hide.vtl):** +```html + + +
+ Media Location +
+ + +
+
+``` + +Key points: +- `mediaFileField.show()` and `mediaFileField.hide()` control the visibility of the entire "mediafile" field (input + label) — no manual DOM manipulation needed. +- The radio buttons use DaisyUI classes (`radio radio-primary`) and are wrapped in a `fieldset` with `fieldset-legend`. +- The initial visibility is set based on `mediaField.getValue()` before attaching the change listener. + +--- + +### Example 5: Conditional Field Enable/Disable + +This example disables an "Expiration Date" field until the user checks an "Enable Expiration" checkbox. + +**New (expiration_toggle.vtl):** +```html + +``` + +Key points: +- `expirationDateField.disable()` prevents editing and applies disabled styling; `enable()` restores interactivity. +- No manual DOM attribute manipulation (`setAttribute("disabled", ...)`) is needed. +- The pattern is the same as show/hide: set initial state, then react to changes via `onChange`. diff --git a/core-web/apps/mcp-server/src/skills/dot-ui-vtl-migration/scripts/vtl_migration.py b/core-web/apps/mcp-server/src/skills/dot-ui-vtl-migration/scripts/vtl_migration.py new file mode 100644 index 000000000000..800c0b8ea1c7 --- /dev/null +++ b/core-web/apps/mcp-server/src/skills/dot-ui-vtl-migration/scripts/vtl_migration.py @@ -0,0 +1,980 @@ +#!/usr/bin/env python3 +""" +Local helper for the dot-ui-vtl-migration skill's "migrate a whole instance" workflow. + +It never talks to dotCMS. The dotCMS MCP server does all the I/O (reading content types, +downloading and publishing files, updating fields); this script does the parts that must be +exact and are easy to get wrong by hand, with no network and no credentials: + + classify Sort every custom field into one of the migration categories. + assets-plan Decide which /dA/ files to download, from the metadata the agent fetched. + build-manifest Build manifest.json from the downloaded files. + status List the manifest entries (what is pending, what is done). + check Run the safety gates on the migrated files and say what is ready to publish. + payload Print what the agent needs to publish one asset. + field-body Build the PUT body for a field update or a render-mode switch. + record Persist one entry's outcome in the manifest, right after the write. + +Working directory layout (default ./vtl-migration, standard library only, Python 3.9+): + + scan/*.json input: arrays of custom fields written by the agent (see `classify`) + assets/.json input: metadata of each /dA/ reference (see `assets-plan`) + original/assets/__ downloaded files + original/fields/.vtl in-field VTL that still uses legacy patterns + migrated/... the migrated result, same relative path as original/ + manifest.json the handoff state; written by build-manifest and record + +Every command prints one JSON document on stdout. Exit codes: 0 success, 2 invalid +arguments or missing/corrupt input. +""" + +from __future__ import annotations + +import argparse +import base64 +import copy +import json +import os +import re +import sys +from datetime import datetime +from pathlib import Path + +MANIFEST_STATUSES = {"pending", "published", "skipped", "failed"} +TERMINAL_STATUSES = {"published", "skipped", "failed"} + +CUSTOM_FIELD_CLAZZ = "com.dotcms.contenttype.model.field.ImmutableCustomField" +MIGRATED_MARKER = "isNewEditModeEnabled" +DOTPARSE_RE = re.compile(r"""#dotParse\(\s*["']([^"']+)["']\s*\)""") +DA_RE = re.compile(r"^/dA/([A-Za-z0-9-]+)(?:/.*)?$") +# $velutil.mergeTemplate('/static/...') / #parse('static/...'): files shipped inside dotCMS itself +CORE_FILE_RE = re.compile(r"""(?:mergeTemplate|#parse)\s*\(\s*["']([^"']+)["']""") +LEGACY_RE = re.compile(r"dojo\.|dijit|dojoType|DotCustomFieldApi\.(?:get|set|onChangeField)\s*\(") +_PATH_SEPARATORS_RE = re.compile(r"[\\/]") + + +class InputError(Exception): + """Missing, corrupt or invalid input. Maps to exit code 2.""" + + +# ─── files ─────────────────────────────────────────────────────────────── + + +def sanitize_path_component(value: str, *, fallback: str) -> str: + """Neutralizes a server-controlled string (a content-type/field `variable`, or an + asset's `fileName`) before it becomes part of a path under the working directory. + Strips path separators and rejects a bare "." or "..". Never raises.""" + cleaned = _PATH_SEPARATORS_RE.sub("_", value.strip()) + return cleaned if cleaned not in ("", ".", "..") else fallback + + +def write_inside(root: Path, relative: str, data) -> None: + """Writes `data` to `root / relative`; refuses a path that resolves outside `root`.""" + target = (root / relative).resolve() + if not target.is_relative_to(root.resolve()): + raise InputError(f"refusing to write outside {root}: {relative!r} resolved to {target}") + target.parent.mkdir(parents=True, exist_ok=True) + if isinstance(data, bytes): + target.write_bytes(data) + else: + write_text_verbatim(target, data) + + +def read_text_verbatim(path: Path) -> str: + """Reads text without newline translation, so CRLF survives a comparison or a PUT body.""" + with open(path, encoding="utf-8", newline="") as f: + return f.read() + + +def write_text_verbatim(path: Path, data: str) -> None: + with open(path, "w", encoding="utf-8", newline="") as f: + f.write(data) + + +def read_json(path: Path): + if not path.exists(): + raise InputError(f"missing {path}") + try: + return json.loads(read_text_verbatim(path)) + except (ValueError, OSError) as e: # ValueError covers JSONDecodeError and UnicodeDecodeError + raise InputError(f"{path} is unreadable or corrupt: {e}") from e + + +def write_json(path: Path, data) -> None: + """Writes atomically: a crash between the temp write and the rename leaves the previous + file intact, never a truncated one.""" + path.parent.mkdir(parents=True, exist_ok=True) + tmp = path.with_suffix(path.suffix + ".tmp") + write_text_verbatim(tmp, json.dumps(data, indent=2)) + os.replace(tmp, path) + + +def manifest_path(workdir: Path) -> Path: + return workdir / "manifest.json" + + +def read_manifest(workdir: Path) -> dict: + path = manifest_path(workdir) + if not path.exists(): + raise InputError(f"No manifest at {path}; run classify, assets-plan and build-manifest first.") + return read_json(path) + + +def try_read_previous_manifest(workdir: Path) -> dict: + """Best-effort read of an earlier manifest, used only to skip re-downloading what an + earlier run already confirmed migrated. A missing or unreadable file is always safe.""" + try: + return read_json(manifest_path(workdir)) + except InputError: + return {} + + +# ─── classify ──────────────────────────────────────────────────────────── + + +class Scan: + """Classification of every custom field on the instance.""" + + def __init__(self) -> None: + self.asset_refs: dict[str, list[str]] = {} # dA id -> [Type.field, ...] + self.inline_fields: list[dict] = [] # inline VTL with legacy patterns (values kept apart) + self.core_files: list[str] = [] + self.inline_clean: list[str] = [] + self.inline_migrated: list[str] = [] + self.other_paths: list[str] = [] + self.other_path_owners: list[str] = [] + # Type.field -> {"typeId", "fieldId", "component"}: every custom field seen + self.field_refs: dict[str, dict] = {} + + def add_field(self, field: dict) -> str | None: + """Classifies one field record. Returns the inline VTL to write when it is legacy.""" + owner = f"{field['type']}.{field['field']}" + values = field.get("values") or "" + self.field_refs[owner] = { + "typeId": field["typeId"], + "fieldId": field["fieldId"], + "component": bool(field.get("component")), + } + + paths = DOTPARSE_RE.findall(values) + for path in paths: + if match := DA_RE.match(path): + self.asset_refs.setdefault(match.group(1), []).append(owner) + else: + self.other_paths.append(f"{owner} -> {path}") + if owner not in self.other_path_owners: + self.other_path_owners.append(owner) + if paths: + return None + + if match := CORE_FILE_RE.search(values): + self.core_files.append(f"{owner} -> {match.group(1)}") + elif is_inline_migrated(values.encode("utf-8")): + self.inline_migrated.append(owner) + elif LEGACY_RE.search(values): + safe_owner = sanitize_path_component(owner, fallback=f"field-{field['fieldId']}") + self.inline_fields.append( + { + "kind": "field", + "key": owner, + "typeId": field["typeId"], + "fieldId": field["fieldId"], + "file": f"fields/{safe_owner}.vtl", + } + ) + return values + else: + self.inline_clean.append(owner) + return None + + def to_json(self) -> dict: + return { + "assetRefs": self.asset_refs, + "inlineFields": self.inline_fields, + "coreFiles": self.core_files, + "inlineClean": self.inline_clean, + "inlineMigrated": self.inline_migrated, + "otherPaths": self.other_paths, + "otherPathOwners": self.other_path_owners, + "fieldRefs": self.field_refs, + } + + @classmethod + def from_json(cls, data: dict) -> "Scan": + scan = cls() + scan.asset_refs = data["assetRefs"] + scan.inline_fields = data["inlineFields"] + scan.core_files = data["coreFiles"] + scan.inline_clean = data["inlineClean"] + scan.inline_migrated = data["inlineMigrated"] + scan.other_paths = data["otherPaths"] + scan.other_path_owners = data["otherPathOwners"] + scan.field_refs = data["fieldRefs"] + return scan + + +def cmd_classify(workdir: Path) -> dict: + """Reads scan/*.json: arrays of {type, typeId, field, fieldId, values, component}, one + record per custom field, where `type`/`field` are the variables and `component` says the + field already has newRenderMode=component. Writes each legacy inline field to + original/fields/ and the classification to scan-result.json.""" + parts = sorted((workdir / "scan").glob("*.json")) + if not parts: + raise InputError(f"no scan/*.json files in {workdir}: write the custom fields there first") + + scan = Scan() + seen: set[str] = set() + original_dir = workdir / "original" + for part in parts: + records = read_json(part) + if not isinstance(records, list): + raise InputError(f"{part} must hold a JSON array of custom fields") + for record in records: + missing = [k for k in ("type", "typeId", "field", "fieldId") if not record.get(k)] + if missing: + raise InputError(f"{part}: a record is missing {', '.join(missing)}") + owner = f"{record['type']}.{record['field']}" + if owner in seen: + continue # the same field sent twice (overlapping batches) + seen.add(owner) + code = scan.add_field(record) + if code is not None: + file = next(f["file"] for f in scan.inline_fields if f["key"] == owner) + write_inside(original_dir, file, code) + + write_json(workdir / "scan-result.json", scan.to_json()) + return { + "command": "classify", + "scanParts": len(parts), + "counts": { + "customFields": len(seen), + "assetReferences": len(scan.asset_refs), + "inlineLegacy": len(scan.inline_fields), + "alreadyMigratedInline": len(scan.inline_migrated), + "coreFiles": len(scan.core_files), + "inlineClean": len(scan.inline_clean), + "otherPaths": len(scan.other_paths), + }, + "assetsToResolve": sorted(scan.asset_refs), + "report": { + "coreFiles": scan.core_files, + "otherPaths": scan.other_paths, + "alreadyMigratedInline": scan.inline_migrated, + }, + } + + +# ─── assets-plan ───────────────────────────────────────────────────────── + + +def known_migrated_inodes(previous_manifest: dict) -> dict[str, str]: + """da_id -> inode already confirmed migrated by an earlier run in this workdir.""" + known = dict(previous_manifest.get("knownMigrated") or {}) + for entry in previous_manifest.get("entries", []): + if entry.get("kind") == "asset" and entry.get("status") == "published": + known[entry["key"]] = entry["inode"] + return known + + +def asset_file_name(meta: dict) -> str | None: + return meta.get("fileName") or meta.get("name") or meta.get("title") + + +def cmd_assets_plan(workdir: Path) -> dict: + """Reads scan-result.json and assets/.json, one per /dA/ reference, each holding the + fields of `GET /api/v1/content/` that matter: identifier, inode, languageId, + contentType, live, fileName (or name/title), binaryField (the variable of the binary + field), plus path/hostName if the download needs them. Decides what to download.""" + scan = Scan.from_json(read_json(workdir / "scan-result.json")) + known = known_migrated_inodes(try_read_previous_manifest(workdir)) + + to_download, unresolved, pinned, already_migrated = [], [], [], [] + already_migrated_ids: dict[str, str] = {} + for da_id, owners in scan.asset_refs.items(): + used_by = ", ".join(owners) + meta_path = workdir / "assets" / f"{da_id}.json" + try: + meta = read_json(meta_path) if meta_path.exists() else None + except InputError as e: + unresolved.append(f"{da_id} ({e}, used by {used_by})") + continue + if not meta or not meta.get("binaryField") or not meta.get("identifier") or not meta.get("inode"): + unresolved.append(f"{da_id} (no usable content metadata, used by {used_by})") + continue + if meta["identifier"] != da_id: + # The field pins one version (an inode), not the identifier. PUBLISH always lands + # on the latest version, so this can never be migrated safely. + pinned.append( + f"{da_id} -> identifier {meta['identifier']} (used by {used_by}); " + "edit the field to reference the identifier if it needs migrating" + ) + continue + file_name = asset_file_name(meta) + if known.get(da_id) == meta["inode"]: + already_migrated.append(f"{meta.get('contentType')} {file_name or da_id} ({da_id})") + already_migrated_ids[da_id] = meta["inode"] + continue + if not file_name: + unresolved.append(f"{da_id} (no fileName/name/title on this content item, used by {used_by})") + continue + safe = sanitize_path_component(file_name, fallback=f"asset-{da_id}") + to_download.append( + { + "id": da_id, + "file": f"assets/{da_id}__{safe}", + "destination": str(workdir / "original" / f"assets/{da_id}__{safe}"), + "fileName": file_name, + "path": meta.get("path"), + "hostName": meta.get("hostName"), + "usedBy": owners, + } + ) + + plan = { + "toDownload": to_download, + "unresolved": unresolved, + "pinned": pinned, + "alreadyMigrated": already_migrated, + # id -> inode, established by this run's metadata; build-manifest trusts only these + "alreadyMigratedIds": already_migrated_ids, + } + write_json(workdir / "assets-plan.json", plan) + return {"command": "assets-plan", **plan} + + +# ─── build-manifest ────────────────────────────────────────────────────── + + +def render_mode_entries(scan: Scan, queued_assets: set[str], migrated_assets: set[str]) -> list[dict]: + """One "renderMode" entry per custom field that still needs newRenderMode=component + and whose code is (or, once published, will be) migrated: + - owners of a /dA/ asset, depending on every asset of theirs that still has to be + published (`requires`); skipped if any of their assets was unresolved or pinned; + - fields whose inline code already carries the edit-mode switch. + Inline legacy fields need no entry: the flag is set in the same update as their code. + Fields that also #dotParse a non-/dA/ path are left alone: part of their code is out of + scope, so flagging them could switch unmigrated code to the new editor.""" + owner_assets: dict[str, set[str]] = {} + for da_id, owners in scan.asset_refs.items(): + for owner in owners: + owner_assets.setdefault(owner, set()).add(da_id) + + candidates: list[tuple[str, list[str]]] = [] + for owner, assets in owner_assets.items(): + if owner in scan.other_path_owners or not assets <= (queued_assets | migrated_assets): + continue + candidates.append((owner, sorted(assets & queued_assets))) + candidates.extend((owner, []) for owner in scan.inline_migrated) + + entries = [] + for owner, requires in candidates: + ref = scan.field_refs[owner] + if ref["component"]: + continue + entries.append( + { + "kind": "renderMode", + "key": owner, + "typeId": ref["typeId"], + "fieldId": ref["fieldId"], + "requires": requires, + "label": f"{owner} (enable component render mode)", + "usedBy": [owner], + "status": "pending", + "statusReason": None, + } + ) + return entries + + +def carry_over_progress(entries: list[dict], previous: dict) -> None: + """A rebuild must not undo work: copy status, reason and previousInode from the previous + manifest's entry with the same key and kind, unless an asset's inode changed since. + An entry that no longer shows up (a field already published is now classified as + migrated) is simply dropped.""" + earlier = {(e["kind"], e["key"]): e for e in previous.get("entries", [])} + for entry in entries: + old = earlier.get((entry["kind"], entry["key"])) + if not old: + continue + if entry["kind"] == "asset" and old.get("inode") != entry["inode"]: + continue # a newer version of the asset: earlier progress belongs to another file + entry["status"] = old.get("status", entry["status"]) + entry["statusReason"] = old.get("statusReason") + if old.get("previousInode"): + entry["previousInode"] = old["previousInode"] + + +def cmd_build_manifest(workdir: Path, instance: str | None) -> dict: + """Reads scan-result.json, assets-plan.json and the downloaded files, writes manifest.json.""" + scan = Scan.from_json(read_json(workdir / "scan-result.json")) + plan = read_json(workdir / "assets-plan.json") + previous = try_read_previous_manifest(workdir) + original_dir = workdir / "original" + + entries: list[dict] = [] + unresolved = list(plan["unresolved"]) + already_migrated = list(plan["alreadyMigrated"]) + unpublished: list[str] = [] + confirmed_migrated = dict(plan.get("alreadyMigratedIds") or {}) + + for item in plan["toDownload"]: + da_id = item["id"] + try: + meta = read_json(workdir / "assets" / f"{da_id}.json") + except InputError as e: + unresolved.append(f"{da_id} ({e}, used by {', '.join(item['usedBy'])})") + continue + downloaded = original_dir / item["file"] + label = f"{meta.get('contentType')} {item['fileName']} ({da_id})" + if not downloaded.is_file(): + unresolved.append(f"{da_id} (download failed, used by {', '.join(item['usedBy'])})") + continue + if is_inline_migrated(downloaded.read_bytes()): + already_migrated.append(label) + confirmed_migrated[da_id] = meta["inode"] + continue + if not meta.get("live"): + unpublished.append(label) + entries.append( + { + "kind": "asset", + "key": da_id, + "identifier": meta["identifier"], + "inode": meta["inode"], + "languageId": meta.get("languageId", 1), + "contentType": meta.get("contentType"), + "binaryField": meta["binaryField"], + "fileName": item["fileName"], + "label": label, + "usedBy": item["usedBy"], + "file": item["file"], + "status": "pending", + "statusReason": None, + } + ) + + for field in scan.inline_fields: + entries.append( + {**field, "label": field["key"], "usedBy": [field["key"]], "status": "pending", "statusReason": None} + ) + + queued_assets = {e["key"] for e in entries if e["kind"] == "asset"} + flags = render_mode_entries(scan, queued_assets, set(confirmed_migrated)) + migration_entries = list(entries) + entries.extend(flags) # after the assets they may depend on: check processes in order + + carry_over_progress(entries, previous) + manifest = { + "instance": instance, + "builtAt": datetime.now().isoformat(), + "knownMigrated": confirmed_migrated, + "entries": entries, + } + write_json(manifest_path(workdir), manifest) + + return { + "command": "build-manifest", + "counts": { + "pending": len(migration_entries), + "renderMode": len(flags), + "alreadyMigrated": len(already_migrated) + len(scan.inline_migrated), + "coreFiles": len(scan.core_files), + "inlineClean": len(scan.inline_clean), + "otherPaths": len(scan.other_paths), + "pinnedVersions": len(plan["pinned"]), + "unresolved": len(unresolved), + }, + "entries": [{k: e[k] for k in ("kind", "key", "label", "usedBy", "file", "requires") if k in e} for e in entries], + "report": { + "alreadyMigrated": already_migrated + scan.inline_migrated, + "notLive": unpublished, + "unresolved": unresolved, + "coreFiles": scan.core_files, + "inlineClean": scan.inline_clean, + "otherPaths": scan.other_paths, + "pinnedVersions": plan["pinned"], + }, + } + + +# ─── inline validity ───────────────────────────────────────────────────── + +_INLINE_HEADER_RE = re.compile(rb"^#if\(\s*\$structures\.isNewEditModeEnabled\(\)\s*\)") +_DIRECTIVE_NAME_RE = re.compile(rb"[A-Za-z0-9_@]+") +_BLOCK_OPENERS = {b"if", b"foreach", b"macro", b"define", b"literal"} + + +# The inline-validity logic below (_iter_directives, locate_top_level_else, inline_problem) is +# copied from the original custom-field migration script and mirrors the "Before emitting inline" and +# "Converting between modes" rules in SKILL.md and reference/migration-guide.md. Change them together. + + +def _iter_directives(data: bytes): + """Yields (name, start, end) for every real Velocity directive in `data` relevant to + block nesting/branching (`if`/`foreach`/`macro`/`define`/`literal`/`@name` as block + openers, plus `elseif`/`else`/`end`), in source order, following the rules SKILL.md's + "Split" algorithm specifies: `##` line comments, `#* *#` block comments and `#[[ ]]#` + unparsed blocks are skipped; `\\#end` is an escaped literal, not a directive; a + directive name ends at the first character that is not a letter/digit/`_`/`@` (so + `#end-date` IS a real `#end`, while `#endDate` is not one of the names tracked here).""" + i, n = 0, len(data) + while i < n: + b = data[i : i + 1] + if b == b"\\": + if data[i + 1 : i + 2] in (b"\\", b"#"): + i += 2 + continue + i += 1 + continue + if b == b"#": + two = data[i : i + 2] + if two == b"##": + nl = data.find(b"\n", i) + i = n if nl == -1 else nl + continue + if two == b"#*": + end = data.find(b"*#", i + 2) + i = n if end == -1 else end + 2 + continue + if data[i : i + 3] == b"#[[": + end = data.find(b"]]#", i + 3) + i = n if end == -1 else end + 3 + continue + j = i + 1 + brace = data[j : j + 1] == b"{" + if brace: + j += 1 + m = _DIRECTIVE_NAME_RE.match(data, j) + if not m: + i += 1 + continue + name, end_j = m.group(0), m.end() + if brace: + if data[end_j : end_j + 1] == b"}": + end_j += 1 + else: + i += 1 + continue + lname = name.lower() + if lname in (b"elseif", b"else", b"end") or lname in _BLOCK_OPENERS: + yield (lname, i, end_j) + elif name.startswith(b"@"): + yield (b"@", i, end_j) + i = end_j + continue + i += 1 + + +def locate_top_level_else(migrated: bytes) -> tuple[int, int] | str: + """Locates the legacy (`#else`) branch's body in an inline file: line 1 is the fixed + header; counting block openers and `#end`s from there, the top-level `#else` is the first + one reached while nothing opened after the header is still open, and the matching final + `#end` closes the header's own `#if`. Returns (start, end) byte offsets spanning the + legacy body (exclusive of the `#else`/`#end` directives), or a diagnostic string, never + raising, for a malformed shape. Every directive after the outer `#end` is checked too: the + whole file must parse, so a second top-level `#else` or an unmatched `#end` is rejected.""" + header = _INLINE_HEADER_RE.match(migrated) + if not header: + return "migrated file does not start with #if( $structures.isNewEditModeEnabled() ) on line 1" + + depth = 0 + else_body_start = None + end_start = None + for name, start, end in _iter_directives(migrated): + if start < header.end(): + continue # the header's own #if is not itself counted + if end_start is not None: + # trailing content: only balanced blocks may follow the outer #end + if name in _BLOCK_OPENERS or name == b"@": + depth += 1 + elif name == b"end": + if depth == 0: + return "unmatched #end after the end of the inline block" + depth -= 1 + elif name in (b"else", b"elseif") and depth == 0: + return f"#{name.decode()} after the end of the inline block" + continue + if name == b"end": + if depth == 0: + end_start = start + continue + depth -= 1 + elif name == b"else": + if depth == 0: + if else_body_start is not None: + return "more than one top-level #else in the inline block" + else_body_start = end + elif name == b"elseif": + if depth == 0 and else_body_start is not None: + return "#elseif after the top-level #else" + elif name in _BLOCK_OPENERS or name == b"@": + depth += 1 + + if else_body_start is None: + return "no top-level #else branch found in migrated content (legacy code not located)" + if end_start is None: + return ( + "no matching top-level #end found in migrated content " + "(unbalanced #if/#foreach/#macro/#define/#literal/#@ block)" + ) + if depth != 0: + return "unbalanced #if/#foreach/#macro/#define/#literal/#@ block after the inline block" + if end_start <= else_body_start: + return "malformed structure: #end appears before the top-level #else" + return (else_body_start, end_start) + + +_MACRO_NAME_RE = re.compile(rb"\(\s*([A-Za-z_][A-Za-z0-9_\-]*)") + + +def macro_names(data: bytes, lo: int, hi: int) -> set[bytes]: + """Names of the `#macro( name ...)` definitions that start between `lo` and `hi`.""" + names = set() + for name, start, end in _iter_directives(data): + if name == b"macro" and lo <= start < hi and (m := _MACRO_NAME_RE.match(data, end)): + names.add(m.group(1)) + return names + + +def _strip_layout_newline(body: bytes) -> bytes: + """Drops the one newline the inline layout adds after `#else` and before `#end`.""" + for nl in (b"\r\n", b"\n"): + if body.startswith(nl): + body = body[len(nl):] + break + for nl in (b"\r\n", b"\n"): + if body.endswith(nl): + return body[: -len(nl)] + return body + + +def is_inline_migrated(data: bytes) -> bool: + """True when `data` is an inline migration: the edit-mode wrapper opens line 1 and closes + around a top-level `#else`. A legacy file that merely mentions `isNewEditModeEnabled` in a + comment, a string or unrelated JavaScript is not one.""" + return not isinstance(locate_top_level_else(data.lstrip()), str) + + +def inline_problem(original: bytes, migrated: bytes) -> str | None: + """The inline output keeps the legacy code verbatim under #else, next to the new code + under #if( $structures.isNewEditModeEnabled() ). Returns why `migrated` is not a valid + inline migration of `original`, or None. The #else branch must equal the original + (minus the layout newlines), the #if branch must not carry legacy patterns, and the two + branches must not define the same #macro.""" + if MIGRATED_MARKER.encode() not in migrated: + return f"no {MIGRATED_MARKER}() branch (three-file output or blocked migration?)" + + located = locate_top_level_else(migrated) + if isinstance(located, str): + return located + + start, end = located + if _strip_layout_newline(migrated[start:end]) != original: + return "the #else branch is not the original code verbatim" + + header_end = _INLINE_HEADER_RE.match(migrated).end() + new_branch = migrated[header_end:start].decode("utf-8", errors="replace") + if match := LEGACY_RE.search(new_branch): + return f"the #if branch still has legacy code ({match.group(0).strip()!r}); migrate it or offer three files" + + shared = macro_names(migrated, header_end, start) & macro_names(migrated, start, end) + if shared: + names = ", ".join(sorted(n.decode("utf-8", errors="replace") for n in shared)) + return f"#macro defined in both branches ({names}): the first definition wins, so the legacy editor would run the new macro" + return None + + +# ─── field-body ────────────────────────────────────────────────────────── + +RENDER_MODE_KEY = "newRenderMode" +RENDER_MODE_COMPONENT = "component" +FIELD_VARIABLE_CLAZZ = "com.dotcms.contenttype.model.field.ImmutableFieldVariable" + + +def has_component_render_mode(field: dict) -> bool: + return any( + v.get("key") == RENDER_MODE_KEY and v.get("value") == RENDER_MODE_COMPONENT + for v in field.get("fieldVariables") or [] + ) + + +def with_component_render_mode(field: dict) -> dict: + """A copy of `field` whose `newRenderMode` variable is "component". Every other field + variable is kept as-is: the v3 field PUT replaces the variables list wholesale, so any + variable left out would be deleted. An existing `newRenderMode` keeps its id.""" + updated = copy.deepcopy(field) + variables = updated.get("fieldVariables") or [] + existing = next((v for v in variables if v.get("key") == RENDER_MODE_KEY), {}) + flag = { + **existing, + "clazz": FIELD_VARIABLE_CLAZZ, + "key": RENDER_MODE_KEY, + "value": RENDER_MODE_COMPONENT, + "fieldId": field.get("id"), + } + updated["fieldVariables"] = [v for v in variables if v.get("key") != RENDER_MODE_KEY] + [flag] + return updated + + +def cmd_field_body(workdir: Path, key: str, field_file: Path) -> dict: + """Builds the body of `PUT /api/v3/contenttype/{typeId}/fields/{fieldId}` from the field + as the agent just fetched it (`field_file`). For a `field` entry it first checks the field + still holds the original text, then sets the migrated code; for a `renderMode` entry it + only switches the render mode. Either way `newRenderMode` ends as "component" and every + other field variable is kept. Returns a verdict: ok (with `body`) or skipped (with `reason`).""" + manifest = read_manifest(workdir) + entry = find_entry(manifest, key) + if entry["kind"] == "asset": + raise InputError(f"{entry['key']} is an asset; field-body is for fields and render-mode switches") + field = read_json(field_file) + if not isinstance(field, dict) or not field.get("id"): + raise InputError(f"{field_file} must hold the field object as fetched (with its id)") + + if entry["kind"] == "field": + migrated = workdir / "migrated" / entry["file"] + original = workdir / "original" / entry["file"] + if not migrated.exists() or not original.exists(): + raise InputError(f"missing the original or migrated file for {entry['key']}") + if (field.get("values") or "") != read_text_verbatim(original): + return {"command": "field-body", "key": entry["key"], "verdict": "skipped", + "reason": "changed on the server since download"} + updated = with_component_render_mode(field) + updated["values"] = read_text_verbatim(migrated) + else: + if has_component_render_mode(field): + return {"command": "field-body", "key": entry["key"], "verdict": "skipped", + "reason": "already in component render mode"} + updated = with_component_render_mode(field) + return {"command": "field-body", "key": entry["key"], "verdict": "ok", "body": {"field": updated}} + + +# ─── check / payload / record / status ─────────────────────────────────── + + +def entry_matches_only(entry: dict, only: list[str]) -> bool: + if not only: + return True + return entry["key"] in only or entry.get("identifier") in only + + +def select_entries(manifest: dict, only: list[str]) -> list[dict]: + """Without --only: every entry that is not finished. With --only: the named entries, plus + the render-mode switches of any named asset (selecting an asset also switches the fields + that load it, in the same run).""" + named_assets = { + e["key"] for e in manifest["entries"] if e["kind"] == "asset" and only and entry_matches_only(e, only) + } + selected = [] + for entry in manifest["entries"]: + if entry_matches_only(entry, only): + if only or entry.get("status") not in TERMINAL_STATUSES: + selected.append(entry) + elif ( + entry["kind"] == "renderMode" + and set(entry.get("requires") or []) & named_assets + and entry.get("status") not in TERMINAL_STATUSES + ): + selected.append(entry) + return selected + + +def gate_file_entry(workdir: Path, entry: dict) -> tuple[str, str | None]: + """The safety gates for one asset/field entry: (verdict, reason).""" + migrated_file = workdir / "migrated" / entry["file"] + original_file = workdir / "original" / entry["file"] + if not migrated_file.exists(): + return "waiting", "no migrated file yet" + if not original_file.exists(): + raise InputError(f"missing {original_file}: re-run classify and build-manifest") + migrated, original = migrated_file.read_bytes(), original_file.read_bytes() + if migrated == original: + return "skipped", "migrated file is identical to original" + problem = inline_problem(original, migrated) + if problem: + return "skipped", problem + return "ready", None + + +def action_for(entry: dict) -> dict: + if entry["kind"] == "asset": + return { + "type": "publish-asset", + "identifier": entry["identifier"], + "expectedInode": entry["inode"], + "contentType": entry["contentType"], + "binaryField": entry["binaryField"], + "languageId": entry["languageId"], + "fileName": entry["fileName"], + } + if entry["kind"] == "field": + return {"type": "update-field", "typeId": entry["typeId"], "fieldId": entry["fieldId"]} + return {"type": "set-render-mode", "typeId": entry["typeId"], "fieldId": entry["fieldId"]} + + +def cmd_check(workdir: Path, only: list[str], dry_run: bool, retry: bool) -> dict: + """Runs the gates on the selected entries and reports a verdict per entry: + ready safe to publish now; `action` says what to do + skipped a gate failed; recorded in the manifest as skipped unless --dry-run + waiting no migrated file yet, or a /dA/ asset it depends on is not published yet; + stays pending + done already finished (published/skipped/failed); named again only with --retry + Read-only apart from recording `skipped` outcomes.""" + manifest = read_manifest(workdir) + statuses = {e["key"]: e.get("status") for e in manifest["entries"]} + results = [] + run_verdicts: dict[str, str] = {} + + for entry in select_entries(manifest, only): + if entry.get("status") in TERMINAL_STATUSES and not retry: + verdict, reason = "done", f"already {entry['status']}" + elif entry["kind"] == "renderMode": + unmet = [ + a + for a in entry.get("requires") or [] + if statuses.get(a) != "published" and not (dry_run and run_verdicts.get(a) == "ready") + ] + verdict, reason = ("waiting", f"{', '.join(unmet)} not published yet") if unmet else ("ready", None) + else: + verdict, reason = gate_file_entry(workdir, entry) + run_verdicts[entry["key"]] = verdict + + result = {"key": entry["key"], "label": entry["label"], "kind": entry["kind"], "verdict": verdict} + if reason: + result["reason"] = reason + if verdict == "ready": + result["action"] = action_for(entry) + results.append(result) + + if verdict == "skipped" and not dry_run: + record_status(workdir, manifest, entry["key"], "skipped", reason) + + counts: dict[str, int] = {} + for r in results: + counts[r["verdict"]] = counts.get(r["verdict"], 0) + 1 + out = {"command": "check", "dryRun": dry_run, "counts": counts, "entries": results} + if only and not results: + out["warning"] = f"--only {only} matched none of the {len(manifest['entries'])} manifest entries" + return out + + +def find_entry(manifest: dict, key: str) -> dict: + entry = next((e for e in manifest["entries"] if entry_matches_only(e, [key])), None) + if not entry: + raise InputError(f"no manifest entry with key {key!r}") + return entry + + +def cmd_payload(workdir: Path, key: str) -> dict: + """What the agent needs to publish one entry. For an asset: the migrated file as base64 + (small VTL files). A field or render-mode entry needs only its ids: use `field-body`.""" + manifest = read_manifest(workdir) + entry = find_entry(manifest, key) + out = {"command": "payload", "key": entry["key"], "kind": entry["kind"], **action_for(entry)} + if entry["kind"] == "renderMode": + return out + migrated = workdir / "migrated" / entry["file"] + original = workdir / "original" / entry["file"] + if not migrated.exists(): + raise InputError(f"no migrated file at {migrated}") + if entry["kind"] == "asset": + out["contentBase64"] = base64.b64encode(migrated.read_bytes()).decode("ascii") + return out + + +def record_status(workdir: Path, manifest: dict, key: str, status: str, reason: str | None) -> None: + """Updates one entry and immediately persists the whole manifest, so an interrupted batch + still leaves an accurate record of what happened to each entry attempted so far.""" + if status not in MANIFEST_STATUSES: + raise InputError(f"unknown status {status!r}") + for entry in manifest["entries"]: + if entry["key"] == key: + entry["status"] = status + entry["statusReason"] = reason + break + write_json(manifest_path(workdir), manifest) + + +def cmd_record(workdir: Path, key: str, status: str, reason: str | None, inode: str | None) -> dict: + """Persists the outcome of one write. For a published asset, pass the new inode from the + publish response: it is what a later run compares against to skip re-downloading.""" + if status not in MANIFEST_STATUSES: + raise InputError(f"status must be one of {sorted(MANIFEST_STATUSES)}") + manifest = read_manifest(workdir) + entry = find_entry(manifest, key) + if status == "published" and entry["kind"] == "asset": + if not inode: + raise InputError("recording a published asset needs --inode (the new inode from the publish response)") + entry["previousInode"] = entry["inode"] + entry["inode"] = inode + record_status(workdir, manifest, entry["key"], status, reason) + return {"command": "record", "key": entry["key"], "status": status} + + +def cmd_status(workdir: Path) -> dict: + manifest = read_manifest(workdir) + counts: dict[str, int] = {} + for e in manifest["entries"]: + counts[e["status"]] = counts.get(e["status"], 0) + 1 + entries = [ + {k: e.get(k) for k in ("kind", "key", "label", "usedBy", "file", "requires", "status", "statusReason")} + for e in manifest["entries"] + ] + return {"command": "status", "counts": counts, "entries": entries} + + +# ─── cli ───────────────────────────────────────────────────────────────── + + +def main(argv: list[str] | None = None) -> int: + parser = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter) + parser.add_argument("--workdir", type=Path, default=Path("vtl-migration"), help="default: %(default)s") + sub = parser.add_subparsers(dest="command", required=True) + + sub.add_parser("classify", help="classify the custom fields in scan/*.json") + sub.add_parser("assets-plan", help="decide which /dA/ files to download") + build = sub.add_parser("build-manifest", help="build manifest.json from the downloaded files") + build.add_argument("--instance", help="host of the instance, recorded in the manifest") + sub.add_parser("status", help="list the manifest entries") + check = sub.add_parser("check", help="run the safety gates on migrated files") + check.add_argument("--only", nargs="+", default=[], metavar="KEY", help="dA ids, identifiers or Type.field") + check.add_argument("--dry-run", action="store_true", help="do not record skipped entries") + check.add_argument("--retry", action="store_true", help="re-check entries that already finished") + body = sub.add_parser("field-body", help="build the PUT body for a field or render-mode switch") + body.add_argument("key") + body.add_argument("--field-file", required=True, type=Path, help="the field as just fetched, as JSON") + payload = sub.add_parser("payload", help="print what is needed to publish one entry") + payload.add_argument("key") + record = sub.add_parser("record", help="persist the outcome of one write") + record.add_argument("key") + record.add_argument("--status", required=True, choices=sorted(MANIFEST_STATUSES)) + record.add_argument("--reason") + record.add_argument("--inode", help="new inode of a published asset") + args = parser.parse_args(argv) + + try: + if args.command == "classify": + result = cmd_classify(args.workdir) + elif args.command == "assets-plan": + result = cmd_assets_plan(args.workdir) + elif args.command == "build-manifest": + result = cmd_build_manifest(args.workdir, args.instance) + elif args.command == "status": + result = cmd_status(args.workdir) + elif args.command == "check": + result = cmd_check(args.workdir, args.only, args.dry_run, args.retry) + elif args.command == "field-body": + result = cmd_field_body(args.workdir, args.key, args.field_file) + elif args.command == "payload": + result = cmd_payload(args.workdir, args.key) + else: + result = cmd_record(args.workdir, args.key, args.status, args.reason, args.inode) + except InputError as e: + print(json.dumps({"error": str(e)}), file=sys.stderr) + return 2 + print(json.dumps(result)) + return 0 + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/core-web/apps/mcp-server/src/smoke/server-boot.spec.ts b/core-web/apps/mcp-server/src/smoke/server-boot.spec.ts index 72dbb2e1907d..3008ea4d7581 100644 --- a/core-web/apps/mcp-server/src/smoke/server-boot.spec.ts +++ b/core-web/apps/mcp-server/src/smoke/server-boot.spec.ts @@ -1,7 +1,9 @@ import { vi } from 'vitest'; +import { parse as parseYaml } from 'yaml'; import { execSync, spawn } from 'node:child_process'; -import { existsSync, readdirSync } from 'node:fs'; +import { createHash } from 'node:crypto'; +import { existsSync, readFileSync, readdirSync } from 'node:fs'; import { basename, join, sep } from 'node:path'; /** @@ -241,4 +243,153 @@ describe('mcp-server boot smoke test', () => { expect(packed).toContain('package.json'); expect(packed).toContain('README.md'); }); + + it('serves the VTL migration skill and nothing that belongs to the core checkout', async () => { + const skillFile = join(__dirname, '..', 'skills', 'dot-ui-vtl-migration', 'SKILL.md'); + const frontmatter = parseYaml( + readFileSync(skillFile, 'utf8').match(/^---\r?\n([\s\S]*?)\r?\n---/)?.[1] ?? '' + ) as { name: string; description: string }; + + const listed = await speak( + [ + { + jsonrpc: '2.0', + id: 1, + method: 'initialize', + params: { + protocolVersion: '2025-06-18', + capabilities: { + extensions: { 'io.modelcontextprotocol/skills': {} } + }, + clientInfo: { name: 'boot-smoke-test', version: '0' } + } + }, + { jsonrpc: '2.0', method: 'notifications/initialized' }, + { jsonrpc: '2.0', id: 2, method: 'skills/list' } + ], + 2 + ); + expect({ exitCode: listed.exitCode, stderr: listed.stderr }).toEqual({ + exitCode: null, + stderr: '' + }); + + const initialize = listed.responses.find((response) => response.id === 1); + expect(initialize?.error).toBeUndefined(); + const capabilities = initialize?.result?.capabilities as + | { + resources?: unknown; + extensions?: Record; + } + | undefined; + expect(capabilities?.extensions?.['io.modelcontextprotocol/skills']).toBeDefined(); + expect(capabilities?.resources).toBeDefined(); + + const skills = ( + listed.responses.find((response) => response.id === 2)?.result as + | { skills?: SkillEntry[]; nextCursor?: string } + | undefined + )?.skills; + expect(listed.responses.find((response) => response.id === 2)?.error).toBeUndefined(); + // One skill, so a cursor would mean the test did not see the whole catalog. + expect( + ( + listed.responses.find((response) => response.id === 2)?.result as { + nextCursor?: string; + } + )?.nextCursor + ).toBeUndefined(); + + const skill = skills?.find( + (entry) => entry.uri === 'skill://dot-ui-vtl-migration/SKILL.md' + ); + expect(skill?.frontmatter.name).toBe(frontmatter.name); + expect(skill?.frontmatter.description).toBe(frontmatter.description); + expect(skill?.frontmatter.name).toBe('dot-ui-vtl-migration'); + + const manifest = skill?.resources; + expect(Array.isArray(manifest)).toBe(true); + const uris = (manifest ?? []).map((entry) => entry.uri).sort(); + expect(uris).toEqual([ + 'skill://dot-ui-vtl-migration/SKILL.md', + 'skill://dot-ui-vtl-migration/reference/instance-migration.md', + 'skill://dot-ui-vtl-migration/reference/migration-guide.md', + 'skill://dot-ui-vtl-migration/scripts/vtl_migration.py' + ]); + + const reads = await speak( + [ + { + jsonrpc: '2.0', + id: 1, + method: 'initialize', + params: { + protocolVersion: '2025-06-18', + capabilities: {}, + clientInfo: { name: 'boot-smoke-test', version: '0' } + } + }, + { jsonrpc: '2.0', method: 'notifications/initialized' }, + ...(manifest ?? []).map((entry, index) => ({ + jsonrpc: '2.0', + id: index + 2, + method: 'resources/read', + params: { uri: entry.uri } + })) + ], + 1 + (manifest ?? []).length + ); + expect({ exitCode: reads.exitCode, stderr: reads.stderr }).toEqual({ + exitCode: null, + stderr: '' + }); + + for (const [index, entry] of (manifest ?? []).entries()) { + const response = reads.responses.find((item) => item.id === index + 2); + expect(response?.error, entry.uri).toBeUndefined(); + const content = ( + response?.result as + | { contents?: Array<{ text?: string; blob?: string }> } + | undefined + )?.contents?.[0]; + const bytes = + typeof content?.text === 'string' + ? Buffer.from(content.text, 'utf8') + : Buffer.from(content?.blob ?? '', 'base64'); + expect(`sha256:${createHash('sha256').update(bytes).digest('hex')}`, entry.uri).toBe( + entry.digest + ); + expect(bytes.byteLength, entry.uri).toBe(entry.size); + + const text = bytes.toString('utf8'); + for (const forbidden of FORBIDDEN_IN_SERVED_SKILL) { + expect(text, `${entry.uri} references ${forbidden.label}`).not.toMatch( + forbidden.pattern + ); + } + } + }); }); + +interface SkillEntry { + uri: string; + frontmatter: { name: string; description: string }; + resources: Array<{ uri: string; digest: string; size: number }>; +} + +/** + * Markers of the core-checkout skill (uv, a token, REST, a path into this repo). + * The MCP-driven copy must not carry them. `uv` is a whole word so it does not + * match inside an identifier. + */ +const FORBIDDEN_IN_SERVED_SKILL: Array<{ label: string; pattern: RegExp }> = [ + { label: 'uv', pattern: /(? ): Record | Array> { if (Array.isArray(existing)) { - return [ - ...existing, - ...Object.entries(extra).map(([name, alias]) => ({ name, alias })) - ]; + return [...existing, ...Object.entries(extra).map(([name, alias]) => ({ name, alias }))]; } const record = @@ -42,12 +39,10 @@ const config: XmcpConfig = { paths: { tools: './src/tools', prompts: false, - // Resource modules stay off. Skill files, added later, are resources - // the skills extension registers on its own. + // Resource modules stay off. Skill files are resources the skills + // extension registers on its own, which is what declares `resources`. resources: false, - // 1.10+ serves `src/skills/` by default. Keep that off until a skill - // directory is actually part of this server. - skills: false + skills: './src/skills' }, bundler: (rspackConfig) => { // The published entry stays `dist/apps/mcp-server/stdio.js`. xmcp 1.x @@ -70,8 +65,7 @@ const config: XmcpConfig = { ); rspackConfig.plugins.push( new BannerPlugin({ - banner: - '#!/usr/bin/env node\nif(process.env.DOTENV_CONFIG_QUIET==null)process.env.DOTENV_CONFIG_QUIET="true";', + banner: '#!/usr/bin/env node\nif(process.env.DOTENV_CONFIG_QUIET==null)process.env.DOTENV_CONFIG_QUIET="true";', raw: true, include: /^stdio\.js$/ }) From 26e656385205ffe537f7237aaa89c514a0ba9159 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Fri, 27 Nov 2026 22:09:40 +0000 Subject: [PATCH 3/3] fix(mcp-server): read initialize capabilities with bracket access The diff-scoped strict gate rejects capabilities as a dotted property because the JSON-RPC result type carries an index signature. Co-authored-by: Nicolas Molina Monroy --- core-web/apps/mcp-server/src/smoke/server-boot.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core-web/apps/mcp-server/src/smoke/server-boot.spec.ts b/core-web/apps/mcp-server/src/smoke/server-boot.spec.ts index 3008ea4d7581..ae845801dbac 100644 --- a/core-web/apps/mcp-server/src/smoke/server-boot.spec.ts +++ b/core-web/apps/mcp-server/src/smoke/server-boot.spec.ts @@ -276,7 +276,7 @@ describe('mcp-server boot smoke test', () => { const initialize = listed.responses.find((response) => response.id === 1); expect(initialize?.error).toBeUndefined(); - const capabilities = initialize?.result?.capabilities as + const capabilities = initialize?.result?.['capabilities'] as | { resources?: unknown; extensions?: Record;