@vibecodiq/cli 0.2.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.
Files changed (3) hide show
  1. package/README.md +85 -0
  2. package/dist/index.js +4327 -0
  3. package/package.json +31 -0
package/README.md ADDED
@@ -0,0 +1,85 @@
1
+ # @vibecodiq/cli
2
+
3
+ Production safety scanner & architecture guard for AI-built apps.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npx @vibecodiq/cli scan # Zero-install (recommended)
9
+ npm install -g @vibecodiq/cli # Or global install
10
+ ```
11
+
12
+ ## Commands
13
+
14
+ ### Scan — check what you already have
15
+
16
+ ```bash
17
+ npx @vibecodiq/cli scan # Run 71 safety checks (Free)
18
+ npx @vibecodiq/cli scan ./my-app # Scan specific directory
19
+ npx @vibecodiq/cli scan --json # JSON output for CI
20
+ npx @vibecodiq/cli scan --fix # AI fix prompts (Pro)
21
+ npx @vibecodiq/cli scan --full # Full audit + Trust Score (Pro)
22
+ ```
23
+
24
+ ### Guard — build safely from day one
25
+
26
+ ```bash
27
+ npx @vibecodiq/cli guard init # Install ASA rules + CI (Free)
28
+ npx @vibecodiq/cli guard check # Run 5 architecture checks (Free)
29
+ npx @vibecodiq/cli guard check --pro # Full checks via remote API (Pro)
30
+ npx @vibecodiq/cli guard upgrade # Upgrade rules to latest version
31
+ ```
32
+
33
+ ### Utility
34
+
35
+ ```bash
36
+ npx @vibecodiq/cli --version
37
+ npx @vibecodiq/cli --help
38
+ npx @vibecodiq/cli login # Authenticate for Pro features
39
+ npx @vibecodiq/cli logout
40
+ ```
41
+
42
+ ## Scan Checks (73 total)
43
+
44
+ | Module | Checks | Coverage |
45
+ |---|---|---|
46
+ | Auth | AUTH-01 – AUTH-28 | 28 checks |
47
+ | Billing | BIL-01 – BIL-24 | 24 checks |
48
+ | Admin | ADM-01 – ADM-21 | 21 checks (19 unique + 2 aliases) |
49
+
50
+ 71 unique check implementations. Exit code 1 on any FAIL (CI-ready).
51
+
52
+ ## Guard Checks (5)
53
+
54
+ 1. Business logic in `src/domains/` (no Supabase calls in pages/components)
55
+ 2. `src/domains/` directory exists (after first feature)
56
+ 3. No cross-domain imports
57
+ 4. Pages are thin wrappers (< 80 lines)
58
+ 5. `src/shared/` has no business logic
59
+
60
+ ## Free vs Pro
61
+
62
+ | Feature | Free | Pro |
63
+ |---|---|---|
64
+ | `scan` (71 checks) | ✅ | ✅ |
65
+ | `scan --json` | ✅ | ✅ |
66
+ | `guard init` | ✅ | ✅ |
67
+ | `guard check` (5 arch) | ✅ | ✅ |
68
+ | `scan --fix` (AI prompts) | — | ✅ |
69
+ | `scan --full` (Trust Score) | — | ✅ |
70
+ | `guard check --pro` | — | ✅ |
71
+
72
+ ## Development
73
+
74
+ ```bash
75
+ npm install
76
+ npm run build # Build with tsup
77
+ npm run dev # Watch mode
78
+ npm run scan # Run scan on current dir
79
+ ```
80
+
81
+ ## Learn More
82
+
83
+ - [Safety Checks](https://asastandard.org/checks) — detailed explanation of each check
84
+ - [ASA Standard](https://asastandard.org) — open architecture standard
85
+ - [Vibecodiq](https://vibecodiq.com) — production safety for AI-built apps