@nuvio/cli 0.5.5 → 1.0.0
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 +5 -3
- package/dist/cli-entry.js +1048 -605
- package/package.json +11 -6
- package/templates/AGENT.md.tpl +7 -4
- package/templates/START_HERE.md.tpl +5 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuvio/cli",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Nuvio CLI
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Nuvio CLI 1.0 — Vite + Tailwind onboarding and diagnostics (init, doctor, scan, stats).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -11,9 +11,12 @@
|
|
|
11
11
|
"keywords": [
|
|
12
12
|
"nuvio",
|
|
13
13
|
"vite",
|
|
14
|
+
"tailwind",
|
|
15
|
+
"tailwindcss",
|
|
16
|
+
"react",
|
|
14
17
|
"cli",
|
|
15
|
-
"
|
|
16
|
-
"
|
|
18
|
+
"devtools",
|
|
19
|
+
"visual-editor"
|
|
17
20
|
],
|
|
18
21
|
"publishConfig": {
|
|
19
22
|
"access": "public"
|
|
@@ -37,7 +40,9 @@
|
|
|
37
40
|
"@babel/traverse": "^7.26.9",
|
|
38
41
|
"@babel/types": "^7.26.9",
|
|
39
42
|
"fast-glob": "^3.3.3",
|
|
40
|
-
"posthog-node": "^5.36.2"
|
|
43
|
+
"posthog-node": "^5.36.2",
|
|
44
|
+
"@nuvio/shared": "1.0.0",
|
|
45
|
+
"@nuvio/vite-plugin": "1.0.0"
|
|
41
46
|
},
|
|
42
47
|
"devDependencies": {
|
|
43
48
|
"@types/babel__generator": "^7.6.8",
|
|
@@ -48,7 +53,7 @@
|
|
|
48
53
|
"vitest": "^3.0.6"
|
|
49
54
|
},
|
|
50
55
|
"scripts": {
|
|
51
|
-
"build": "tsup src/cli-entry.ts --format esm --clean --external @babel/parser --external @babel/traverse --external @babel/generator --external @babel/types --external fast-glob",
|
|
56
|
+
"build": "tsup src/cli-entry.ts --format esm --clean --external @babel/parser --external @babel/traverse --external @babel/generator --external @babel/types --external fast-glob --external @nuvio/vite-plugin --external @nuvio/shared --external @nuvio/ast-engine",
|
|
52
57
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
53
58
|
"test": "vitest run"
|
|
54
59
|
}
|
package/templates/AGENT.md.tpl
CHANGED
|
@@ -6,9 +6,10 @@ This project uses [nuvio](https://www.npmjs.com/org/nuvio) (dev-only visual edit
|
|
|
6
6
|
When the user asks to make UI editable or wire nuvio:
|
|
7
7
|
|
|
8
8
|
1. Do **not** change unrelated files.
|
|
9
|
-
2.
|
|
10
|
-
3.
|
|
11
|
-
4.
|
|
9
|
+
2. Prefer **Make Editable** in the browser for new hosts (click-to-tag) — no manual id required for basic flow.
|
|
10
|
+
3. When adding ids by hand: **string literal** `data-nuvio-id="region.name"` on the JSX host they should click.
|
|
11
|
+
4. `className` may be a string literal, `cn("a", "b")`, or `cn("base", cond && "token")` on supported hosts.
|
|
12
|
+
5. Never use `{condition ? "id" : undefined}` for `data-nuvio-id` — use a string literal on the branch they edit.
|
|
12
13
|
|
|
13
14
|
**Card pattern:**
|
|
14
15
|
- `metric.orders.card` (container)
|
|
@@ -20,8 +21,10 @@ When the user asks to make UI editable or wire nuvio:
|
|
|
20
21
|
- `orders.header.products` (column headers)
|
|
21
22
|
- `orders.row.${id}.nameText` (row text — template literal id is OK for rows)
|
|
22
23
|
|
|
24
|
+
**Libraries:** shadcn (`components/ui/`), TailAdmin, DaisyUI — see https://github.com/ehah/Nuvio/tree/main/docs/libraries
|
|
25
|
+
|
|
23
26
|
**After instrumentation:** user runs `{{PM_RUN}}`, Edit on, Preview Changes, Apply to Code.
|
|
24
27
|
|
|
25
|
-
If Vite or shell wiring is missing, see `nuvio/SETUP_TODO.md` or run `pnpm dlx @nuvio/cli
|
|
28
|
+
If Vite or shell wiring is missing, see `nuvio/SETUP_TODO.md` or run `pnpm dlx @nuvio/cli init`.
|
|
26
29
|
|
|
27
30
|
Human quick path: `nuvio/START_HERE.md`.
|
|
@@ -11,6 +11,10 @@ Installed with @nuvio/cli@{{NUVIO_VERSION}}.
|
|
|
11
11
|
3. Click the starter element (usually the page title — id `page.title`)
|
|
12
12
|
4. **Preview Changes** → **Apply to Code**
|
|
13
13
|
|
|
14
|
-
**More UI
|
|
14
|
+
**More UI without manual ids:** click any untagged element → **Make Editable** → confirm → edit → apply.
|
|
15
|
+
|
|
16
|
+
**Dashboards (cards, tables, buttons):** ask your AI agent to read `nuvio/AGENT.md` for id patterns.
|
|
17
|
+
|
|
18
|
+
**Diagnostics:** `nuvio doctor` · `nuvio scan` · `nuvio stats`
|
|
15
19
|
|
|
16
20
|
**Manual setup:** https://github.com/ehah/Nuvio/blob/v{{NUVIO_VERSION}}/docs/nuvioUser.md
|