@nuvio/cli 0.5.5 → 1.1.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuvio/cli",
3
- "version": "0.5.5",
4
- "description": "Nuvio CLI: one-command Vite + React onboarding (nuvio init).",
3
+ "version": "1.1.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
- "onboarding",
16
- "devtools"
18
+ "devtools",
19
+ "visual-editor"
17
20
  ],
18
21
  "publishConfig": {
19
22
  "access": "public"
@@ -37,7 +40,10 @@
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.1.0",
45
+ "@nuvio/ast-engine": "1.1.0",
46
+ "@nuvio/vite-plugin": "1.1.0"
41
47
  },
42
48
  "devDependencies": {
43
49
  "@types/babel__generator": "^7.6.8",
@@ -48,7 +54,7 @@
48
54
  "vitest": "^3.0.6"
49
55
  },
50
56
  "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",
57
+ "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
58
  "typecheck": "tsc -p tsconfig.json --noEmit",
53
59
  "test": "vitest run"
54
60
  }
@@ -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. Add **string literal** `data-nuvio-id="region.name"` on JSX elements they should click in the browser.
10
- 3. Keep `className="..."` as a **string literal** on that same tag when they need Tailwind class patches (avoid `cn(...)` on the patch target).
11
- 4. Never use `{condition ? "id" : undefined}` for `data-nuvio-id` use a string literal on the branch they edit.
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@{{NUVIO_VERSION}} init`.
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 (cards, tables, nav):** ask your AI agent to read `nuvio/AGENT.md` and add `data-nuvio-id` attributes.
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