@csszyx/mcp-server 0.10.4 → 0.10.5
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/llms-full.txt +15 -0
- package/package.json +4 -4
package/llms-full.txt
CHANGED
|
@@ -3768,10 +3768,25 @@ npx @csszyx/cli migrate src/ # migrate all JSX/TSX/HTML under src/
|
|
|
3768
3768
|
npx @csszyx/cli migrate --dry-run # preview changes without writing files
|
|
3769
3769
|
npx @csszyx/cli migrate --ignore "**/*.test.tsx,**/fixtures/**"
|
|
3770
3770
|
npx @csszyx/cli migrate --pattern "src/components/**/*.tsx"
|
|
3771
|
+
npx @csszyx/cli migrate --keys-only # upgrade existing csszyx code: normalize sz KEYS only, leave className untouched
|
|
3771
3772
|
```
|
|
3772
3773
|
|
|
3773
3774
|
Migration logs are written to `.csszyx/logs/`. Add `.csszyx/` to `.gitignore`.
|
|
3774
3775
|
|
|
3776
|
+
### `--keys-only` — upgrade existing csszyx code (not a Tailwind→sz migration)
|
|
3777
|
+
|
|
3778
|
+
Plain `migrate` converts Tailwind `className` strings into `sz` props — for
|
|
3779
|
+
adopting csszyx. If you ALREADY use csszyx and are bumping a version that renamed
|
|
3780
|
+
sz-prop keys to their canonical form (e.g. the 0.9.10 → 0.10.0 key normalization),
|
|
3781
|
+
use `--keys-only`: it rewrites legacy sz-prop keys to canonical inside `sz={...}`
|
|
3782
|
+
and leaves `className` (and everything else) completely untouched. It only edits
|
|
3783
|
+
JSX/TSX (HTML has no sz objects). This is the safe, surgical upgrade path — it
|
|
3784
|
+
won't touch your hand-written classes.
|
|
3785
|
+
|
|
3786
|
+
```bash
|
|
3787
|
+
npx @csszyx/cli migrate --keys-only --dry-run # preview the key rewrites first
|
|
3788
|
+
```
|
|
3789
|
+
|
|
3775
3790
|
### Audit — discover unrecognized classes
|
|
3776
3791
|
|
|
3777
3792
|
```bash
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@csszyx/mcp-server",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.5",
|
|
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/cli": "0.10.
|
|
34
|
-
"@csszyx/unplugin": "0.10.
|
|
35
|
-
"@csszyx/compiler": "0.10.
|
|
33
|
+
"@csszyx/cli": "0.10.5",
|
|
34
|
+
"@csszyx/unplugin": "0.10.5",
|
|
35
|
+
"@csszyx/compiler": "0.10.5"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"typescript": "^6.0.3",
|