@vibecheckai/cli 3.7.0 → 3.8.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 +135 -63
- package/bin/_deprecations.js +447 -19
- package/bin/_router.js +1 -1
- package/bin/registry.js +347 -280
- package/bin/runners/context/generators/cursor-enhanced.js +2439 -0
- package/bin/runners/lib/agent-firewall/enforcement/gateway.js +1059 -0
- package/bin/runners/lib/agent-firewall/enforcement/index.js +98 -0
- package/bin/runners/lib/agent-firewall/enforcement/mode.js +318 -0
- package/bin/runners/lib/agent-firewall/enforcement/orchestrator.js +484 -0
- package/bin/runners/lib/agent-firewall/enforcement/proof-artifact.js +418 -0
- package/bin/runners/lib/agent-firewall/enforcement/schemas/change-event.schema.json +173 -0
- package/bin/runners/lib/agent-firewall/enforcement/schemas/intent.schema.json +181 -0
- package/bin/runners/lib/agent-firewall/enforcement/schemas/verdict.schema.json +222 -0
- package/bin/runners/lib/agent-firewall/enforcement/verdict-v2.js +333 -0
- package/bin/runners/lib/agent-firewall/index.js +200 -0
- package/bin/runners/lib/agent-firewall/integration/index.js +20 -0
- package/bin/runners/lib/agent-firewall/integration/ship-gate.js +437 -0
- package/bin/runners/lib/agent-firewall/intent/alignment-engine.js +622 -0
- package/bin/runners/lib/agent-firewall/intent/auto-detect.js +426 -0
- package/bin/runners/lib/agent-firewall/intent/index.js +102 -0
- package/bin/runners/lib/agent-firewall/intent/schema.js +352 -0
- package/bin/runners/lib/agent-firewall/intent/store.js +283 -0
- package/bin/runners/lib/agent-firewall/interception/fs-interceptor.js +502 -0
- package/bin/runners/lib/agent-firewall/interception/index.js +23 -0
- package/bin/runners/lib/agent-firewall/session/collector.js +451 -0
- package/bin/runners/lib/agent-firewall/session/index.js +26 -0
- package/bin/runners/lib/artifact-envelope.js +540 -0
- package/bin/runners/lib/auth-shared.js +977 -0
- package/bin/runners/lib/checkpoint.js +941 -0
- package/bin/runners/lib/cleanup/engine.js +571 -0
- package/bin/runners/lib/cleanup/index.js +53 -0
- package/bin/runners/lib/cleanup/output.js +375 -0
- package/bin/runners/lib/cleanup/rules.js +1060 -0
- package/bin/runners/lib/doctor/diagnosis-receipt.js +454 -0
- package/bin/runners/lib/doctor/failure-signatures.js +526 -0
- package/bin/runners/lib/doctor/fix-script.js +336 -0
- package/bin/runners/lib/doctor/modules/build-tools.js +453 -0
- package/bin/runners/lib/doctor/modules/index.js +62 -3
- package/bin/runners/lib/doctor/modules/os-quirks.js +706 -0
- package/bin/runners/lib/doctor/modules/repo-integrity.js +485 -0
- package/bin/runners/lib/doctor/safe-repair.js +384 -0
- package/bin/runners/lib/engines/attack-detector.js +1192 -0
- package/bin/runners/lib/entitlements-v2.js +2 -2
- package/bin/runners/lib/missions/briefing.js +427 -0
- package/bin/runners/lib/missions/checkpoint.js +753 -0
- package/bin/runners/lib/missions/hardening.js +851 -0
- package/bin/runners/lib/missions/plan.js +421 -32
- package/bin/runners/lib/missions/safety-gates.js +645 -0
- package/bin/runners/lib/missions/schema.js +478 -0
- package/bin/runners/lib/packs/bundle.js +675 -0
- package/bin/runners/lib/packs/evidence-pack.js +671 -0
- package/bin/runners/lib/packs/pack-factory.js +837 -0
- package/bin/runners/lib/packs/permissions-pack.js +686 -0
- package/bin/runners/lib/packs/proof-graph-pack.js +779 -0
- package/bin/runners/lib/safelist/index.js +96 -0
- package/bin/runners/lib/safelist/integration.js +334 -0
- package/bin/runners/lib/safelist/matcher.js +696 -0
- package/bin/runners/lib/safelist/schema.js +948 -0
- package/bin/runners/lib/safelist/store.js +438 -0
- package/bin/runners/lib/schemas/ship-manifest.schema.json +251 -0
- package/bin/runners/lib/ship-gate.js +832 -0
- package/bin/runners/lib/ship-manifest.js +1153 -0
- package/bin/runners/lib/ship-output.js +1 -1
- package/bin/runners/lib/unified-cli-output.js +710 -383
- package/bin/runners/lib/upsell.js +3 -3
- package/bin/runners/lib/why-tree.js +650 -0
- package/bin/runners/runAllowlist.js +33 -4
- package/bin/runners/runApprove.js +240 -1122
- package/bin/runners/runAudit.js +692 -0
- package/bin/runners/runAuth.js +325 -29
- package/bin/runners/runCheckpoint.js +442 -494
- package/bin/runners/runCleanup.js +343 -0
- package/bin/runners/runDoctor.js +269 -19
- package/bin/runners/runFix.js +411 -32
- package/bin/runners/runForge.js +411 -0
- package/bin/runners/runIntent.js +906 -0
- package/bin/runners/runKickoff.js +878 -0
- package/bin/runners/runLaunch.js +2000 -0
- package/bin/runners/runLink.js +785 -0
- package/bin/runners/runMcp.js +1741 -837
- package/bin/runners/runPacks.js +2089 -0
- package/bin/runners/runPolish.js +41 -0
- package/bin/runners/runSafelist.js +1190 -0
- package/bin/runners/runScan.js +21 -9
- package/bin/runners/runShield.js +1282 -0
- package/bin/runners/runShip.js +395 -16
- package/bin/vibecheck.js +34 -6
- package/mcp-server/README.md +117 -158
- package/mcp-server/handlers/tool-handler.ts +3 -3
- package/mcp-server/index.js +16 -0
- package/mcp-server/intent-firewall-interceptor.js +529 -0
- package/mcp-server/manifest.json +473 -0
- package/mcp-server/package.json +1 -1
- package/mcp-server/registry/tool-registry.js +315 -523
- package/mcp-server/registry/tools.json +442 -428
- package/mcp-server/tier-auth.js +68 -11
- package/mcp-server/tools-v3.js +70 -16
- package/package.json +1 -1
- package/bin/runners/runProof.zip +0 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# vibecheck CLI
|
|
1
|
+
# vibecheck CLI v4.0
|
|
2
2
|
|
|
3
3
|
**Ship with confidence. One verdict: SHIP | WARN | BLOCK**
|
|
4
4
|
|
|
@@ -9,97 +9,127 @@ The CLI that catches AI hallucinations before they ship. Dead routes, fake data,
|
|
|
9
9
|
```bash
|
|
10
10
|
npm install -g @vibecheckai/cli
|
|
11
11
|
# or
|
|
12
|
-
npx @vibecheckai/cli
|
|
12
|
+
npx @vibecheckai/cli --help
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Quick Start
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
|
-
# 1. Setup your project
|
|
19
|
-
vibecheck
|
|
18
|
+
# 1. Setup your project (one-time)
|
|
19
|
+
vibecheck link
|
|
20
20
|
|
|
21
|
-
# 2.
|
|
22
|
-
vibecheck
|
|
21
|
+
# 2. 60-second onboarding (recommended)
|
|
22
|
+
vibecheck kickoff
|
|
23
23
|
|
|
24
|
-
# 3.
|
|
24
|
+
# 3. Run analysis
|
|
25
|
+
vibecheck audit
|
|
26
|
+
|
|
27
|
+
# 4. Get ship verdict (PRO)
|
|
25
28
|
vibecheck ship
|
|
26
29
|
|
|
27
|
-
#
|
|
30
|
+
# 5. Full proof loop (PRO)
|
|
28
31
|
vibecheck prove
|
|
29
|
-
|
|
30
|
-
# 5. Runtime verification
|
|
31
|
-
vibecheck reality --url http://localhost:3000
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
-
##
|
|
34
|
+
## Command Reference
|
|
35
35
|
|
|
36
|
-
###
|
|
36
|
+
### Tiers
|
|
37
37
|
|
|
38
|
-
|
|
|
39
|
-
|
|
40
|
-
|
|
|
41
|
-
|
|
|
42
|
-
| `vibecheck watch` | FREE | Continuous mode - re-runs on changes |
|
|
38
|
+
| Tier | Price | Description |
|
|
39
|
+
|------|-------|-------------|
|
|
40
|
+
| **FREE** | $0 | Inspect & Observe |
|
|
41
|
+
| **PRO** | $49/mo | Fix, Prove & Enforce |
|
|
43
42
|
|
|
44
|
-
|
|
43
|
+
---
|
|
45
44
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
|
49
|
-
|
|
50
|
-
| `
|
|
51
|
-
| `
|
|
52
|
-
| `
|
|
53
|
-
| `
|
|
45
|
+
### FREE Tier Commands
|
|
46
|
+
|
|
47
|
+
| Command | Aliases | Description |
|
|
48
|
+
|---------|---------|-------------|
|
|
49
|
+
| `link` | `init`, `setup`, `configure` | Instant project binding (<10s, zero questions) |
|
|
50
|
+
| `kickoff` | `quickstart`, `qs`, `start`, `onboard` | 60-second dopamine: link → forge → audit → ship |
|
|
51
|
+
| `doctor` | `health`, `diag` | Environment + dependency + config health check |
|
|
52
|
+
| `watch` | `w`, `dev` | Continuous mode - re-runs on changes |
|
|
53
|
+
| `forge` | `context`, `ctx`, `rules`, `ai-rules`, `mdc`, `brain` | AI Brain Generator - minimal but lethal rules |
|
|
54
|
+
| `audit` | `scan`, `s`, `check` | Convincing wrongness detector |
|
|
55
|
+
| `auth` | `login`, `logout`, `whoami` | Authentication management |
|
|
56
|
+
| `safelist` | `allowlist`, `al`, `suppress` | Responsible finding suppression with justification & expiry |
|
|
57
|
+
| `labs` | — | Experimental & beta features |
|
|
58
|
+
| `packs` | `report`, `html`, `artifact`, `evidence-pack` | Unified artifact generation (evidence, reports, graphs) |
|
|
59
|
+
| `ci` | — | One-command enterprise CI wiring (GitHub Actions) |
|
|
54
60
|
|
|
55
|
-
|
|
61
|
+
---
|
|
56
62
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
|
60
|
-
|
|
63
|
+
### PRO Tier Commands
|
|
64
|
+
|
|
65
|
+
| Command | Aliases | Description |
|
|
66
|
+
|---------|---------|-------------|
|
|
67
|
+
| `intent` | — | Declare intent for Agent Firewall enforcement |
|
|
68
|
+
| `approve` | — | Review and approve session changes |
|
|
69
|
+
| `shield` | `guard`, `ai-guard`, `firewall`, `validate` | Agent Firewall - intercept, validate, and enforce AI actions |
|
|
70
|
+
| `launch` | `gate`, `ci-gate`, `enforce` | Pre-release validation wizard |
|
|
71
|
+
| `reality` | `browser`, `e2e` | Browser-based runtime verification |
|
|
72
|
+
| `prove` | `p`, `verify` | Full proof loop with runtime verification |
|
|
73
|
+
| `ship` | — | Verdict engine - SHIP / WARN / BLOCK |
|
|
74
|
+
| `seal` | `badge`, `attest` | Generate ship badge and attestation |
|
|
75
|
+
| `fix` | `f`, `repair`, `missions` | Mission-based auto-fix with safety gates |
|
|
76
|
+
| `checkpoint` | `cp`, `snap`, `snapshot`, `timemachine` | Time machine - snapshot & restore |
|
|
77
|
+
| `polish` | `prod`, `final` | Production polish - final cleanup before deploy |
|
|
78
|
+
| `mcp` | — | Start MCP server for AI IDEs |
|
|
61
79
|
|
|
62
|
-
|
|
80
|
+
---
|
|
63
81
|
|
|
64
|
-
|
|
65
|
-
|---------|------|-------------|
|
|
66
|
-
| `vibecheck context` | FREE | Generate .cursorrules, .windsurf/rules, MDC |
|
|
67
|
-
| `vibecheck guard` | FREE | Validate AI claims against truth |
|
|
82
|
+
### Shield Subcommands (Agent Firewall)
|
|
68
83
|
|
|
69
|
-
|
|
84
|
+
```bash
|
|
85
|
+
vibecheck shield status # Show firewall status
|
|
86
|
+
vibecheck shield enforce # Enable enforcement mode
|
|
87
|
+
vibecheck shield observe # Enable observe-only mode
|
|
88
|
+
vibecheck shield lock # Hard lockdown (all rules)
|
|
89
|
+
vibecheck shield unlock # Release lock
|
|
90
|
+
vibecheck shield verify # Verify claims/prompts
|
|
91
|
+
vibecheck shield install # Install IDE hooks
|
|
92
|
+
vibecheck shield stats # Show statistics
|
|
93
|
+
```
|
|
70
94
|
|
|
71
|
-
|
|
72
|
-
|---------|------|-------------|
|
|
73
|
-
| `vibecheck mcp` | STARTER | Start MCP server for AI IDEs |
|
|
74
|
-
| `vibecheck ai-test` | PRO | AI autonomous test |
|
|
95
|
+
---
|
|
75
96
|
|
|
76
|
-
###
|
|
97
|
+
### Packs Subcommands (Artifacts)
|
|
77
98
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
99
|
+
```bash
|
|
100
|
+
vibecheck packs evidence # Bundle videos, traces, screenshots
|
|
101
|
+
vibecheck packs report # Generate HTML/MD/SARIF reports
|
|
102
|
+
vibecheck packs graph # Proof graph visualization
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
---
|
|
83
106
|
|
|
84
|
-
|
|
107
|
+
### Auth Subcommands
|
|
85
108
|
|
|
86
|
-
|
|
109
|
+
```bash
|
|
110
|
+
vibecheck auth login # Authenticate with API key
|
|
111
|
+
vibecheck auth logout # Remove stored credentials
|
|
112
|
+
vibecheck auth whoami # Show current user and plan
|
|
113
|
+
vibecheck auth --check # Verify authentication status
|
|
114
|
+
vibecheck auth --refresh # Refresh credentials
|
|
115
|
+
```
|
|
87
116
|
|
|
88
|
-
|
|
89
|
-
|------|-------|----------|
|
|
90
|
-
| FREE | $0 | init --local, scan, ship (static), doctor, polish, report (HTML/MD), context, guard, checkpoint (basic) |
|
|
91
|
-
| STARTER | $39/mo | + init --connect, scan --autofix, report (SARIF/CSV), mcp, reality (basic) |
|
|
92
|
-
| PRO | $49/mo | + prove, fix --apply, checkpoint (hallucination), reality (advanced), ai-test |
|
|
117
|
+
---
|
|
93
118
|
|
|
94
119
|
## What It Catches
|
|
95
120
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
121
|
+
| Issue | Severity | Description |
|
|
122
|
+
|-------|----------|-------------|
|
|
123
|
+
| Dead Routes | BLOCK | Client calls API that doesn't exist |
|
|
124
|
+
| Ghost Auth | BLOCK | Sensitive endpoint without auth |
|
|
125
|
+
| Exposed Secrets | BLOCK | API keys in code |
|
|
126
|
+
| Fake Success | BLOCK | Success UI without API confirmation |
|
|
127
|
+
| Env Gaps | WARN | Used env vars not in .env.example |
|
|
128
|
+
| Stripe Violations | BLOCK | Unverified webhooks |
|
|
129
|
+
| Owner Mode Bypass | BLOCK | Debug flags in production |
|
|
130
|
+
| Mock Data | BLOCK | Fake/fixture data in production |
|
|
131
|
+
|
|
132
|
+
---
|
|
103
133
|
|
|
104
134
|
## Ship Verdict
|
|
105
135
|
|
|
@@ -109,7 +139,16 @@ vibecheck reality --url http://localhost:3000
|
|
|
109
139
|
╚═════════════════════════════════════════════════════════════════╝
|
|
110
140
|
```
|
|
111
141
|
|
|
112
|
-
Exit
|
|
142
|
+
### Exit Codes
|
|
143
|
+
|
|
144
|
+
| Code | Status | Meaning |
|
|
145
|
+
|------|--------|---------|
|
|
146
|
+
| `0` | ✅ SHIP | All checks passed |
|
|
147
|
+
| `2` | 🚫 BLOCK | Violations found (CI failure) |
|
|
148
|
+
| `3` | ⚠️ UPGRADE | Feature requires higher tier |
|
|
149
|
+
| `4` | ❌ ERROR | Misconfiguration / env error |
|
|
150
|
+
|
|
151
|
+
---
|
|
113
152
|
|
|
114
153
|
## MCP Server
|
|
115
154
|
|
|
@@ -126,6 +165,20 @@ Connect vibecheck to AI coding agents (Cursor, Windsurf, Claude):
|
|
|
126
165
|
}
|
|
127
166
|
```
|
|
128
167
|
|
|
168
|
+
### Available MCP Tools
|
|
169
|
+
|
|
170
|
+
| Tool | Description |
|
|
171
|
+
|------|-------------|
|
|
172
|
+
| `vibecheck_audit` | Run static analysis |
|
|
173
|
+
| `vibecheck_ship` | Get ship verdict |
|
|
174
|
+
| `vibecheck_fix` | Apply AI-powered fixes |
|
|
175
|
+
| `vibecheck_prove` | Full proof loop |
|
|
176
|
+
| `vibecheck_shield` | Agent Firewall controls |
|
|
177
|
+
| `vibecheck_forge` | Generate IDE rules |
|
|
178
|
+
| `vibecheck_reality` | Runtime verification |
|
|
179
|
+
|
|
180
|
+
---
|
|
181
|
+
|
|
129
182
|
## Configuration
|
|
130
183
|
|
|
131
184
|
Create `.vibecheck/config.json`:
|
|
@@ -138,6 +191,25 @@ Create `.vibecheck/config.json`:
|
|
|
138
191
|
}
|
|
139
192
|
```
|
|
140
193
|
|
|
194
|
+
Or `vibecheck.config.json` in project root:
|
|
195
|
+
|
|
196
|
+
```json
|
|
197
|
+
{
|
|
198
|
+
"version": "4.0.0",
|
|
199
|
+
"checks": ["integrity", "security", "hygiene"],
|
|
200
|
+
"output": ".vibecheck",
|
|
201
|
+
"policy": {
|
|
202
|
+
"failOn": ["critical", "high"],
|
|
203
|
+
"allowlist": {
|
|
204
|
+
"domains": ["api.stripe.com"],
|
|
205
|
+
"paths": ["src/testing/*"]
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
---
|
|
212
|
+
|
|
141
213
|
## License
|
|
142
214
|
|
|
143
215
|
MIT © Vibecheck AI
|