@plitzi/sdk-mcp 0.36.1 → 0.36.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @plitzi/sdk-mcp
|
|
2
2
|
|
|
3
|
+
## 0.36.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- v0.36.2
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @plitzi/plitzi-sdk@0.36.2
|
|
10
|
+
- @plitzi/sdk-elements@0.36.2
|
|
11
|
+
- @plitzi/sdk-interactions@0.36.2
|
|
12
|
+
- @plitzi/sdk-schema@0.36.2
|
|
13
|
+
- @plitzi/sdk-server@0.36.2
|
|
14
|
+
- @plitzi/sdk-shared@0.36.2
|
|
15
|
+
- @plitzi/sdk-style@0.36.2
|
|
16
|
+
|
|
3
17
|
## 0.36.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -382,7 +382,9 @@ The widget runs the live SDK, so beyond static layout it can fetch data and resp
|
|
|
382
382
|
### Fetch data — a provider + a binding
|
|
383
383
|
An \`apiContainer\` fetches at runtime and exposes the result as the source **\`apiContainer_<id>.data\`**, visible
|
|
384
384
|
to its **DESCENDANTS only** — the bound element must live inside the container's subtree. \`upsertBinding\` then
|
|
385
|
-
connects that source to a descendant's field.
|
|
385
|
+
connects that source to a descendant's field. With no \`subType\` (its default) the provider renders **no element of
|
|
386
|
+
its own** — its children lay out in its parent, and a class on it styles nothing; give it \`"subType": "div"\` when the
|
|
387
|
+
provider itself is the box.
|
|
386
388
|
|
|
387
389
|
\`\`\`json
|
|
388
390
|
{
|
|
@@ -61,7 +61,7 @@ var createMcpServer = async ({ adapters, getGrant, preview, screenshot, logger,
|
|
|
61
61
|
const getSpace = () => spacePromise ??= loadSpace();
|
|
62
62
|
const server = new McpServer({
|
|
63
63
|
name: "plitzi-mcp",
|
|
64
|
-
version: "0.36.
|
|
64
|
+
version: "0.36.2"
|
|
65
65
|
}, { instructions: hasSpace ? serverInstructions : widgetsOnlyInstructions });
|
|
66
66
|
registerResources(server, getSpace, MCP_ENV, log, hasSpace);
|
|
67
67
|
registerApps(server, {
|
|
@@ -5,6 +5,7 @@ import { checkSlotCss } from "./css.js";
|
|
|
5
5
|
import { checkVariantApplication } from "./elements.js";
|
|
6
6
|
import { checkInteractionNode } from "./interactions.js";
|
|
7
7
|
import { buildValidationCtx } from "./index.js";
|
|
8
|
+
import { styleWithoutTag } from "@plitzi/sdk-schema/helpers/styleWithoutTag";
|
|
8
9
|
//#region src/modules/mcp/tools/shared/validator/audit.ts
|
|
9
10
|
var harvest = (ctx, into, label, run) => {
|
|
10
11
|
const sub = {
|
|
@@ -104,6 +105,8 @@ var auditResources = (space, ops) => {
|
|
|
104
105
|
if (!el || seenElements.has(el.id)) continue;
|
|
105
106
|
seenElements.add(el.id);
|
|
106
107
|
harvest(ctx, result, `element "${el.id}"`, (sub) => auditElement(space, sub, el));
|
|
108
|
+
const tagless = styleWithoutTag(el, space.style);
|
|
109
|
+
if (tagless) result.warnings.push(`element "${el.id}" ${tagless}`);
|
|
107
110
|
}
|
|
108
111
|
for (const ref of touched.definitions) {
|
|
109
112
|
const def = definitionToAI(space.style, ref);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plitzi/sdk-mcp",
|
|
3
|
-
"version": "0.36.
|
|
3
|
+
"version": "0.36.2",
|
|
4
4
|
"license": "AGPL-3.0",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -30,16 +30,16 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@modelcontextprotocol/ext-apps": "^1.7.5",
|
|
32
32
|
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
33
|
-
"@plitzi/plitzi-sdk": "0.36.
|
|
34
|
-
"@plitzi/sdk-elements": "0.36.
|
|
35
|
-
"@plitzi/sdk-interactions": "0.36.
|
|
36
|
-
"@plitzi/sdk-schema": "0.36.
|
|
37
|
-
"@plitzi/sdk-server": "0.36.
|
|
38
|
-
"@plitzi/sdk-shared": "0.36.
|
|
39
|
-
"@plitzi/sdk-style": "0.36.
|
|
33
|
+
"@plitzi/plitzi-sdk": "0.36.2",
|
|
34
|
+
"@plitzi/sdk-elements": "0.36.2",
|
|
35
|
+
"@plitzi/sdk-interactions": "0.36.2",
|
|
36
|
+
"@plitzi/sdk-schema": "0.36.2",
|
|
37
|
+
"@plitzi/sdk-server": "0.36.2",
|
|
38
|
+
"@plitzi/sdk-shared": "0.36.2",
|
|
39
|
+
"@plitzi/sdk-style": "0.36.2",
|
|
40
40
|
"ejs": "^6.0.1",
|
|
41
41
|
"esbuild": "^0.28.2",
|
|
42
|
-
"zod": "^4.6.
|
|
42
|
+
"zod": "^4.6.5"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": "^19",
|
|
@@ -48,20 +48,20 @@
|
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/ejs": "^3.1.5",
|
|
50
50
|
"@types/jsdom": "^30.0.0",
|
|
51
|
-
"@types/node": "^26.
|
|
51
|
+
"@types/node": "^26.6.1",
|
|
52
52
|
"@types/react": "^19.3.0",
|
|
53
53
|
"@vitejs/plugin-react": "^6.1.1",
|
|
54
|
-
"@vitest/coverage-v8": "^5.0.
|
|
54
|
+
"@vitest/coverage-v8": "^5.0.1",
|
|
55
55
|
"eslint": "^9.39.5",
|
|
56
56
|
"eslint-plugin-import": "^2.32.0",
|
|
57
|
-
"jsdom": "^30.0
|
|
57
|
+
"jsdom": "^30.1.0",
|
|
58
58
|
"react": "^19.3.0",
|
|
59
59
|
"react-dom": "^19.3.0",
|
|
60
60
|
"tsx": "^4.23.13",
|
|
61
61
|
"typescript": "^6.0.3",
|
|
62
62
|
"vite": "^8.3.0",
|
|
63
63
|
"vite-plugin-dts": "^5.1.0",
|
|
64
|
-
"vitest": "^5.0.
|
|
64
|
+
"vitest": "^5.0.1"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"start": "TSX_TSCONFIG_PATH=tsconfig.app.json node --import tsx dev/main.ts",
|