@electric-agent/agent 1.4.0 → 1.4.2
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@electric-agent/agent",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"description": "CLI tool that turns natural-language app descriptions into running reactive Electric SQL + TanStack DB applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"commander": "^13.1.0",
|
|
27
27
|
"dotenv": "^17.3.1",
|
|
28
28
|
"zod": "^3.24.1",
|
|
29
|
-
"@electric-agent/
|
|
30
|
-
"@electric-agent/
|
|
29
|
+
"@electric-agent/studio": "1.13.0",
|
|
30
|
+
"@electric-agent/protocol": "1.8.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/node": "^22.15.0",
|
|
@@ -61,7 +61,8 @@ Write a `PLAN.md` file with this structure:
|
|
|
61
61
|
- [ ] Phase 4: Collections & API routes
|
|
62
62
|
- [ ] Phase 5: UI components
|
|
63
63
|
- [ ] Phase 6: Build, lint & test
|
|
64
|
-
- [ ] Phase 7:
|
|
64
|
+
- [ ] Phase 7: README.md & ARCHITECTURE.md
|
|
65
|
+
- [ ] Phase 8: Deploy & preview
|
|
65
66
|
|
|
66
67
|
## Design Conventions
|
|
67
68
|
- UUID primary keys with defaultRandom()
|
|
@@ -174,6 +175,11 @@ API routes use `createFileRoute` + `server.handlers` (NOT `createAPIFileRoute`).
|
|
|
174
175
|
**Before writing UI code**, read the ui-design skill:
|
|
175
176
|
- `.claude/skills/ui-design/SKILL.md` — design system, Radix UI Themes component patterns
|
|
176
177
|
|
|
178
|
+
The `__root.tsx` Theme wrapper MUST use the Electric brand defaults:
|
|
179
|
+
```tsx
|
|
180
|
+
<Theme accentColor="violet" grayColor="mauve" radius="medium" panelBackground="translucent">
|
|
181
|
+
```
|
|
182
|
+
|
|
177
183
|
Also read the `react-db` and `meta-framework` skills for hook usage and SSR patterns.
|
|
178
184
|
|
|
179
185
|
Key constraints:
|
|
@@ -211,12 +217,9 @@ pnpm dev:start
|
|
|
211
217
|
|
|
212
218
|
**IMPORTANT**: Always use `pnpm dev:start` from the project directory.
|
|
213
219
|
|
|
214
|
-
After the app is running, write
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
```
|
|
218
|
-
/ui-design
|
|
219
|
-
```
|
|
220
|
+
After the app is running, write:
|
|
221
|
+
1. `README.md` — overwrite the scaffold README with a project-specific one: app name, one-line description, screenshot placeholder, how to run (`pnpm install && pnpm dev:start`), tech stack (Electric SQL, TanStack DB, Drizzle, TanStack Start), and a brief feature list.
|
|
222
|
+
2. `ARCHITECTURE.md` — brief reference: entities, routes, components.
|
|
220
223
|
|
|
221
224
|
---
|
|
222
225
|
|
|
@@ -103,6 +103,17 @@ Before making changes, commit to a coherent aesthetic:
|
|
|
103
103
|
- Giant forms without structure — group related fields, use Dialog for create/edit
|
|
104
104
|
- Tables without visual anchoring — use `variant="surface"` or Card wrappers
|
|
105
105
|
|
|
106
|
+
### Design Thinking — Advanced
|
|
107
|
+
|
|
108
|
+
Beyond the baseline Radix patterns, aim for **distinctive, memorable interfaces**:
|
|
109
|
+
|
|
110
|
+
- **Typography with character**: Work the full typographic range. Use size, weight, and color to establish clear hierarchy. Heading `size="7"` or `size="8"` for page titles creates presence. Pair display-weight headings with lighter body text.
|
|
111
|
+
- **Color with conviction**: Dominant colors with sharp accents outperform timid palettes. The violet accent should feel intentional, not decorative. Use contrast to draw the eye.
|
|
112
|
+
- **Motion and micro-interactions**: Add subtle transitions for state changes. Focus on high-impact moments — a well-orchestrated page load with staggered reveals creates more delight than scattered animations. Use CSS transitions for hover states.
|
|
113
|
+
- **Spatial composition**: Break out of everything-centered layouts. Use asymmetry, `justify="between"` for headers, generous negative space, and visual weight through surfaces. Let content breathe.
|
|
114
|
+
- **Atmosphere and depth**: Create visual atmosphere through Card `variant="surface"`, translucent panel backgrounds, and subtle layering. The interface should feel crafted, not generated.
|
|
115
|
+
- **Contextual design**: Every app has a different purpose and audience. A task manager feels different from a data dashboard. Match the aesthetic to the domain — colors, density, and component choices should reflect the content.
|
|
116
|
+
|
|
106
117
|
### Import Rules
|
|
107
118
|
|
|
108
119
|
- Use `@radix-ui/themes` for all components (NOT `@radix-ui/react-*`)
|