@csszyx/mcp-server 0.11.5 → 0.11.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +9 -3
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -306,8 +306,7 @@ function handleBatch(input) {
|
|
|
306
306
|
const result = transform(sz);
|
|
307
307
|
return {
|
|
308
308
|
index,
|
|
309
|
-
className: result.className
|
|
310
|
-
attributes: Object.keys(result.attributes).length > 0 ? result.attributes : void 0
|
|
309
|
+
className: result.className
|
|
311
310
|
};
|
|
312
311
|
} catch (err) {
|
|
313
312
|
return {
|
|
@@ -348,7 +347,6 @@ function handleExpand(input) {
|
|
|
348
347
|
text: JSON.stringify(
|
|
349
348
|
{
|
|
350
349
|
className: result.className,
|
|
351
|
-
attributes: result.attributes,
|
|
352
350
|
classCount: result.className.split(/\s+/).filter(Boolean).length
|
|
353
351
|
},
|
|
354
352
|
null,
|
|
@@ -613,10 +611,18 @@ function handleValidate(input) {
|
|
|
613
611
|
}
|
|
614
612
|
let transformResult = null;
|
|
615
613
|
let transformError = null;
|
|
614
|
+
const originalWarn = console.warn;
|
|
615
|
+
console.warn = (...args) => {
|
|
616
|
+
warnings.push(
|
|
617
|
+
args.map((arg) => typeof arg === "string" ? arg : JSON.stringify(arg)).join(" ")
|
|
618
|
+
);
|
|
619
|
+
};
|
|
616
620
|
try {
|
|
617
621
|
transformResult = transform(input.sz);
|
|
618
622
|
} catch (err) {
|
|
619
623
|
transformError = err instanceof Error ? err.message : String(err);
|
|
624
|
+
} finally {
|
|
625
|
+
console.warn = originalWarn;
|
|
620
626
|
}
|
|
621
627
|
return {
|
|
622
628
|
content: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@csszyx/mcp-server",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.6",
|
|
4
4
|
"description": "Model Context Protocol (MCP) server for csszyx — enables AI agents to understand and generate sz props",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
32
32
|
"zod": "^3.23.8",
|
|
33
|
-
"@csszyx/compiler": "0.11.
|
|
34
|
-
"@csszyx/
|
|
35
|
-
"@csszyx/
|
|
33
|
+
"@csszyx/compiler": "0.11.6",
|
|
34
|
+
"@csszyx/cli": "0.11.6",
|
|
35
|
+
"@csszyx/unplugin": "0.11.6"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"typescript": "^6.0.3",
|