@csszyx/mcp-server 0.15.1 → 0.15.3

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.
Files changed (2) hide show
  1. package/llms-full.txt +15 -10
  2. package/package.json +8 -8
package/llms-full.txt CHANGED
@@ -769,11 +769,12 @@ a template like `` `gap-${n}` ``) leaves the merge in mangled form, matching
769
769
  the mangled CSS. The lookup is single-pass and idempotent — already-mangled
770
770
  tokens, authored literals, and external (non-csszyx) class names pass through
771
771
  unchanged — and it is an identity in dev or on unmangled builds. Code that
772
- INSPECTS a className for a utility by its original spelling must decode first:
773
- `szDecode(token)` (from `@csszyx/runtime`) maps a mangled token back to its
774
- original name and is identity everywhere else, so
775
- `className.split(/\s+/).some(t => szDecode(t).startsWith('w-'))` is safe on
776
- every build shape.
772
+ INSPECTS a className for a utility must not read the spelling: `has(className,
773
+ 'w')` (from `@csszyx/runtime`) decodes each token through the registry and
774
+ strips its variant before matching, so it answers the same on every build
775
+ shape. `szDecode(token)` maps one mangled token back to its original name — and
776
+ returns the whole original, variant prefix included, so a hand-rolled
777
+ `startsWith('w-')` on it is false for `md:w-full`.
777
778
 
778
779
  ## `szs` — slot map for a component's internal parts
779
780
 
@@ -3902,8 +3903,8 @@ import {
3902
3903
  stripSzProps,
3903
3904
  } from "@csszyx/runtime";
3904
3905
 
3905
- // Partition: outer = border-outward (margin/position/border/sizing/bg/shadow/transform/visibility),
3906
- // inner = border-inward (padding/overflow/display/layout/gap/text/paint-inside/interactivity)
3906
+ // Partition: outer = border-outward (margin/position/border/ring/sizing/bg/shadow/transform/visibility),
3907
+ // inner = border-inward (padding/overflow/display/flex/grid/gap/text/interaction)
3907
3908
  const { outer, inner } = splitBox("m-4 px-2 md:flex");
3908
3909
  // outer: "m-4" inner: "px-2 md:flex"
3909
3910
 
@@ -4086,9 +4087,13 @@ the built HTML carries no executable inline script and a strict CSP
4086
4087
  If an `sz`-generated utility also appears as a static string or template quasi in a
4087
4088
  source-level `class` or `className` attribute/property (including a `clsx(...)`
4088
4089
  expression), csszyx keeps that class unmangled. This ensures raw and `sz` consumers
4089
- continue to reference the same emitted rule. Use `mangleExclude` when the class is
4090
- only visible through an imported constant, DOM selector/class API, ignored
4091
- dependency, downstream macro, or another value unavailable to the source scan.
4090
+ continue to reference the same emitted rule. When something else depends on the
4091
+ class NAME a stylesheet matching by attribute (`[class*="bg-tag"]`), a DOM
4092
+ query, a class assembled outside any visible `className` list it in
4093
+ `production.manglePreserve` (exact name, or a prefix ending in `*`); the
4094
+ hybrid-hazard warning prints a paste-ready value. `production.mangleExclude` is
4095
+ the other switch: it keeps the allocator from producing a token equal to a short
4096
+ class in third-party CSS, and never keeps a csszyx class from being renamed.
4092
4097
 
4093
4098
  Final-output class mangling is available in Vite, Webpack, and Rollup. The esbuild
4094
4099
  adapter keeps class names readable (and warns when `production.mangle: true` is
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@csszyx/mcp-server",
3
- "version": "0.15.1",
3
+ "version": "0.15.3",
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",
@@ -28,18 +28,18 @@
28
28
  "node": "^22.18.0 || >=24.11.0"
29
29
  },
30
30
  "dependencies": {
31
- "@modelcontextprotocol/sdk": "^1.29.0",
32
- "zod": "^4.4.3",
33
- "@csszyx/cli": "0.15.1",
34
- "@csszyx/compiler": "0.15.1",
35
- "@csszyx/unplugin": "0.15.1"
31
+ "@csszyx/cli": "0.15.3",
32
+ "@csszyx/compiler": "0.15.3",
33
+ "@csszyx/unplugin": "0.15.3",
34
+ "@modelcontextprotocol/sdk": "^1.30.0",
35
+ "zod": "^4.4.3"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/node": "^22.20.1",
39
- "tsx": "^4.23.11",
39
+ "tsx": "^4.23.12",
40
40
  "typescript": "^6.0.3",
41
41
  "unbuild": "^3.6.1",
42
- "vitest": "^4.1.10"
42
+ "vitest": "^4.1.11"
43
43
  },
44
44
  "keywords": [
45
45
  "csszyx",