@viberaven/cli 0.1.0-beta.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/AGENTS.md ADDED
@@ -0,0 +1,37 @@
1
+ # VibeRaven CLI — agent instructions
2
+
3
+ Use this when the user asks whether their app is **production-ready**, **launch-ready**, what they are **missing before ship**, or how to improve **auth / database / payments / deployment** on an AI-built project.
4
+
5
+ ## Run (user does not need to type this — you run it)
6
+
7
+ ```bash
8
+ npx -y @viberaven/cli@beta scan --open
9
+ ```
10
+
11
+ If not signed in:
12
+
13
+ ```bash
14
+ npx -y @viberaven/cli@beta login
15
+ ```
16
+
17
+ Then scan again.
18
+
19
+ ## Read
20
+
21
+ 1. `.viberaven/agent-summary.md` — short briefing and top gaps
22
+ 2. `.viberaven/last-scan.json` — full mission map, providers, checks
23
+ 3. `.viberaven/report.html` — visual map for the user (opened with `--open`)
24
+
25
+ ## Fix loop
26
+
27
+ 1. `npx -y @viberaven/cli@beta prompt` — stdout = copy-ready prompt for the top gap
28
+ Or: `viberaven prompt --gap <id>` / `--area database` / `--provider supabase`
29
+ 2. Implement the change in the repo.
30
+ 3. `npx -y @viberaven/cli@beta scan` — verify production core % and gap count improved.
31
+ 4. Tell the user to review `.viberaven/report.html` for the provider map.
32
+
33
+ ## Rules
34
+
35
+ - Do not skip the scan — VibeRaven uses repo evidence plus managed analysis, not generic checklists.
36
+ - Prefer fixing **critical** gaps first unless the user names an area.
37
+ - Do not claim external dashboard setup is done unless checks pass or the user confirmed manually.
package/README.md ADDED
@@ -0,0 +1,70 @@
1
+ # @viberaven/cli
2
+
3
+ Launch readiness for Claude Code, Codex, and other coding agents — same mission map and provider intelligence as VibeRaven Station.
4
+
5
+ ## For humans
6
+
7
+ ```bash
8
+ npx -y @viberaven/cli@beta login
9
+ npx -y @viberaven/cli@beta scan --open
10
+ ```
11
+
12
+ Uses the **same VibeRaven account and scan quota** as the VS Code extension.
13
+
14
+ Opens `.viberaven/report.html` with an interactive provider map and copy-ready agent prompts.
15
+
16
+ ## For coding agents
17
+
18
+ See [AGENTS.md](./AGENTS.md). Typical loop:
19
+
20
+ ```bash
21
+ npx -y @viberaven/cli@beta scan --open
22
+ # read .viberaven/agent-summary.md
23
+ npx -y @viberaven/cli@beta prompt
24
+ # implement, then scan again
25
+ ```
26
+
27
+ ## Artifacts
28
+
29
+ | File | Purpose |
30
+ |------|---------|
31
+ | `.viberaven/last-scan.json` | Full scan payload |
32
+ | `.viberaven/agent-summary.md` | Short briefing for agents |
33
+ | `.viberaven/report.html` | Visual mission map (Phase A) |
34
+
35
+ ## Switch providers (matches the extension map)
36
+
37
+ The report shows a provider switch per production area (database, auth, payments, deployment, monitoring, security). Picking one copies a command:
38
+
39
+ ```bash
40
+ viberaven stack set database neon && viberaven scan --open
41
+ ```
42
+
43
+ You can also set it directly:
44
+
45
+ ```bash
46
+ viberaven stack set auth clerk # persists to .viberaven/stack.json
47
+ viberaven stack list
48
+ viberaven stack clear # remove all overrides
49
+ ```
50
+
51
+ The next `scan` re-maps that area using your chosen provider.
52
+
53
+ ## Development
54
+
55
+ From repo root:
56
+
57
+ ```bash
58
+ npm run cli:build
59
+ npm run cli:test
60
+ node packages/cli/dist/cli.js scan
61
+ ```
62
+
63
+ Inside `packages/cli`:
64
+
65
+ ```bash
66
+ npm run typecheck # tsc against the shared station engine
67
+ npm run demo-report # render a sample report.html and open it
68
+ ```
69
+
70
+ The report reuses the Station Mission Map visual language (`src/report/reportStyles.ts`) for parity with the extension.