rafters 0.0.56 → 0.0.57
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/README.md +9 -6
- package/dist/index.js +0 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,6 +4,10 @@ Design Intelligence CLI. Encodes a designer's judgment into queryable data so AI
|
|
|
4
4
|
|
|
5
5
|
→ [rafters.studio](https://rafters.studio)
|
|
6
6
|
|
|
7
|
+
**60+ components across React, Astro, and Web Components.** Triple-target parity from one design system — the same Button, Card, Dialog, Combobox, Editor, etc. as a React component, an Astro component, AND a Web Component element class. Component code is installed into your project via `rafters add` (shadcn-style copy), not imported as a dependency, so you own and can fork what ships.
|
|
8
|
+
|
|
9
|
+
**Composite manifests sit above components.** A composite is a designer-authored JSON manifest that bundles components into reusable patterns (login-form, copy-button, heading, paragraph) with designer intent baked in: `solves`, `appliesWhen`, do/never rules, cognitive load rating, I/O contracts, and a typed block tree. Agents query the composite registry via MCP and assemble pre-made decisions instead of inventing new ones.
|
|
10
|
+
|
|
7
11
|
## Quick Start
|
|
8
12
|
|
|
9
13
|
```bash
|
|
@@ -130,13 +134,12 @@ Full intelligence for a specific component: cognitive load, accessibility level,
|
|
|
130
134
|
|
|
131
135
|
## Architecture
|
|
132
136
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
- **What (Components)** — React components with embedded intelligence metadata
|
|
136
|
-
- **Where (Tokens)** — token dependency graph with human override tracking
|
|
137
|
-
- **Why (Decisions)** — composite manifests, do/never patterns, cognitive load scores, trust-building patterns
|
|
137
|
+
Four layers, stacked:
|
|
138
138
|
|
|
139
|
-
|
|
139
|
+
- **Tokens** — primitive design values (color OKLCH, spacing scale, radius, typography, motion, focus, shadow, depth, elevation, breakpoints). 13 namespaces; dependency graph with human override tracking. Override a base (`spacing-base`, `radius-base`, `font-size-base`) and dependents recompute. Override a leaf and the override anchors the subtree.
|
|
140
|
+
- **Primitives** — 62 framework-agnostic building blocks (clipboard, focus-trap, portal, roving-focus, selection, serializer, slot, token-sheet, typeahead, etc.). Headless behaviors components compose against.
|
|
141
|
+
- **Components** — 60+ React + 71 Astro + 32 Web Component element classes. Triple-target parity. Each component carries embedded intelligence metadata: cognitive load rating, accessibility level, do/never, variant semantics, attention economics. Installed into your project via `rafters add` — you own the code.
|
|
142
|
+
- **Composites** — designer-authored JSON manifests that bundle components into reusable patterns (login-form, copy-button, heading, paragraph, etc.). Each manifest carries `solves`, `appliesWhen`, `usagePatterns` (do/never), `cognitiveLoad`, I/O contracts, and a typed block tree. The composite owns the variant/size decisions — agents render blocks verbatim instead of choosing aesthetics.
|
|
140
143
|
|
|
141
144
|
When a designer overrides a computed value, the system records the reason. Agents read the why before they read the what.
|
|
142
145
|
|
package/dist/index.js
CHANGED
|
@@ -28494,7 +28494,6 @@ function firstFamilyFromStack(value) {
|
|
|
28494
28494
|
for (const raw of parts) {
|
|
28495
28495
|
const stripped = stripQuotes(raw.trim());
|
|
28496
28496
|
if (stripped === "" || GENERIC_KEYWORDS.has(stripped.toLowerCase())) continue;
|
|
28497
|
-
if (stripped.startsWith("var(") || stripped.includes("var(--")) continue;
|
|
28498
28497
|
return stripped;
|
|
28499
28498
|
}
|
|
28500
28499
|
return null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rafters",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.57",
|
|
4
4
|
"description": "Design Intelligence CLI. Scaffold tokens, import existing shadcn/Tailwind v4 sources, add components, and serve an MCP server so AI agents read decisions instead of guessing.",
|
|
5
5
|
"homepage": "https://rafters.studio",
|
|
6
6
|
"license": "MIT",
|