@electric-agent/agent 1.1.0 → 1.1.4
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.1.
|
|
3
|
+
"version": "1.1.4",
|
|
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": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"dotenv": "^17.3.1",
|
|
29
29
|
"zod": "^3.24.1",
|
|
30
30
|
"@electric-agent/protocol": "1.2.0",
|
|
31
|
-
"@electric-agent/studio": "1.3.
|
|
31
|
+
"@electric-agent/studio": "1.3.4"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/node": "^22.15.0",
|
|
@@ -240,6 +240,18 @@ _Last updated: [ISO date]_
|
|
|
240
240
|
## State & Context
|
|
241
241
|
```
|
|
242
242
|
|
|
243
|
+
## Phase 8: Deploy & Preview
|
|
244
|
+
|
|
245
|
+
Start the dev server so the user can preview the app:
|
|
246
|
+
|
|
247
|
+
```bash
|
|
248
|
+
pnpm dev:start
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
**IMPORTANT**: Always use `pnpm dev:start` from the project directory. Do NOT use `sprite-env services create` or launch Vite manually — the project's `vite.config.ts` contains required settings (`allowedHosts`, `port`, `proxy`) that will not be applied if Vite is started from a different directory.
|
|
252
|
+
|
|
253
|
+
After starting, the app is accessible at the preview URL (shown in the UI).
|
|
254
|
+
|
|
243
255
|
## Critical Rules (from electric-app-guardrails)
|
|
244
256
|
|
|
245
257
|
- `z` from `"zod/v4"` — NEVER from `"zod"`
|
|
@@ -273,7 +285,9 @@ When the app runs inside a cloud sandbox (Fly.io Sprite), the following constrai
|
|
|
273
285
|
- **The preview URL** follows the pattern: `https://<sprite-name>.sprites.app`
|
|
274
286
|
- **`vite.config.ts` is pre-configured** with `port`, `host: true`, `allowedHosts: true`, and the Electric proxy — **DO NOT MODIFY it**. Changing it WILL break the preview.
|
|
275
287
|
|
|
276
|
-
|
|
288
|
+
**ALWAYS use `pnpm dev:start`** to start the dev server. This script runs Vite from the project directory where `vite.config.ts` is located. **DO NOT use `sprite-env services create`** or launch Vite manually — doing so will start Vite from the wrong directory, causing it to miss the config and reject Sprite hostnames with `allowedHosts` errors.
|
|
289
|
+
|
|
290
|
+
After finishing all code generation, always run migrations then `pnpm dev:start` so the user can preview.
|
|
277
291
|
|
|
278
292
|
## Scaffold Files (DO NOT MODIFY)
|
|
279
293
|
|