@cascivo/react 0.6.2 → 0.6.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.
package/README.md CHANGED
@@ -116,6 +116,48 @@ aliases are documented in
116
116
  All components are client components (`'use client'` is preserved in the
117
117
  bundle), so the package works in Next.js App Router projects out of the box.
118
118
 
119
+ ## Using with AI tools (v0, Cursor, Claude Code, Gemini)
120
+
121
+ cascivo is AI-first, but a model can only build with it if the knowledge reaches
122
+ the tool. cascivo has no training-data footprint yet, so **don't rely on a tool
123
+ fetching cascivo.com** — that channel is the least reliable one. Use the channels
124
+ that travel with the package instead:
125
+
126
+ - **One file, one fetch — paste or link this into any chat/agent:**
127
+ [`https://cascivo.com/llms-full.txt`](https://cascivo.com/llms-full.txt). It is
128
+ the entire library — setup, the signals/CSS-layer rules, and every component's
129
+ props/examples/a11y — inlined, so a single successful fetch is enough. The
130
+ shorter index is [`llms.txt`](https://cascivo.com/llms.txt).
131
+ - **v0 / shadcn CLI** — components install straight from the
132
+ [shadcn-compatible registry](https://cascivo.com/r/shadcn/registry.json):
133
+
134
+ ```sh
135
+ npx shadcn@latest add https://cascivo.com/r/shadcn/button.json
136
+ ```
137
+
138
+ Each item inlines its own source and points its dependencies at absolute
139
+ `https://cascivo.com/r/shadcn/<name>.json` URLs, so the CLI resolves them
140
+ transitively. Register the whole namespace in `components.json` to use short
141
+ names (`npx shadcn add @cascivo/button`):
142
+
143
+ ```json
144
+ { "registries": { "@cascivo": "https://cascivo.com/r/shadcn/{name}.json" } }
145
+ ```
146
+
147
+ - **MCP-capable agents** (Claude Code, Cursor, Gemini CLI, Windsurf) — point the
148
+ client at the [`@cascivo/mcp`](https://www.npmjs.com/package/@cascivo/mcp)
149
+ server so it can query components with no web fetch at all:
150
+
151
+ ```json
152
+ { "mcpServers": { "cascivo": { "command": "npx", "args": ["-y", "@cascivo/mcp"] } } }
153
+ ```
154
+
155
+ **One rule to give the model:** cascivo is signal-driven — use `useSignal` /
156
+ `useComputed` / `useSignalEffect` from `@cascivo/core`, never `useState` /
157
+ `useEffect`, and in any app without the Babel signals transform a component that
158
+ reads `signal.value` in render must call `useSignals()` first or it won't
159
+ re-render. `llms-full.txt` carries the full contract.
160
+
119
161
  ## Guides
120
162
 
121
163
  - [Theming & branding](https://github.com/cascivo/cascivo/blob/main/docs/THEMING.md) — match a brand by overriding tokens (layer cascade, the `data-theme` specificity footgun, per-role radius/control-height tokens, a starter theme).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cascivo/react",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "private": false,
5
5
  "description": "Prebuilt cascivo design system components — use without copying source",
6
6
  "keywords": [
package/readme.body.md CHANGED
@@ -98,6 +98,48 @@ aliases are documented in
98
98
  All components are client components (`'use client'` is preserved in the
99
99
  bundle), so the package works in Next.js App Router projects out of the box.
100
100
 
101
+ ## Using with AI tools (v0, Cursor, Claude Code, Gemini)
102
+
103
+ cascivo is AI-first, but a model can only build with it if the knowledge reaches
104
+ the tool. cascivo has no training-data footprint yet, so **don't rely on a tool
105
+ fetching cascivo.com** — that channel is the least reliable one. Use the channels
106
+ that travel with the package instead:
107
+
108
+ - **One file, one fetch — paste or link this into any chat/agent:**
109
+ [`https://cascivo.com/llms-full.txt`](https://cascivo.com/llms-full.txt). It is
110
+ the entire library — setup, the signals/CSS-layer rules, and every component's
111
+ props/examples/a11y — inlined, so a single successful fetch is enough. The
112
+ shorter index is [`llms.txt`](https://cascivo.com/llms.txt).
113
+ - **v0 / shadcn CLI** — components install straight from the
114
+ [shadcn-compatible registry](https://cascivo.com/r/shadcn/registry.json):
115
+
116
+ ```sh
117
+ npx shadcn@latest add https://cascivo.com/r/shadcn/button.json
118
+ ```
119
+
120
+ Each item inlines its own source and points its dependencies at absolute
121
+ `https://cascivo.com/r/shadcn/<name>.json` URLs, so the CLI resolves them
122
+ transitively. Register the whole namespace in `components.json` to use short
123
+ names (`npx shadcn add @cascivo/button`):
124
+
125
+ ```json
126
+ { "registries": { "@cascivo": "https://cascivo.com/r/shadcn/{name}.json" } }
127
+ ```
128
+
129
+ - **MCP-capable agents** (Claude Code, Cursor, Gemini CLI, Windsurf) — point the
130
+ client at the [`@cascivo/mcp`](https://www.npmjs.com/package/@cascivo/mcp)
131
+ server so it can query components with no web fetch at all:
132
+
133
+ ```json
134
+ { "mcpServers": { "cascivo": { "command": "npx", "args": ["-y", "@cascivo/mcp"] } } }
135
+ ```
136
+
137
+ **One rule to give the model:** cascivo is signal-driven — use `useSignal` /
138
+ `useComputed` / `useSignalEffect` from `@cascivo/core`, never `useState` /
139
+ `useEffect`, and in any app without the Babel signals transform a component that
140
+ reads `signal.value` in render must call `useSignals()` first or it won't
141
+ re-render. `llms-full.txt` carries the full contract.
142
+
101
143
  ## Guides
102
144
 
103
145
  - [Theming & branding](https://github.com/cascivo/cascivo/blob/main/docs/THEMING.md) — match a brand by overriding tokens (layer cascade, the `data-theme` specificity footgun, per-role radius/control-height tokens, a starter theme).