@vibecheckai/cli 3.0.4 โ†’ 3.0.7

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 (108) hide show
  1. package/bin/dev/run-v2-torture.js +30 -0
  2. package/bin/runners/context/index.js +1 -1
  3. package/bin/runners/lib/analyzers.js +38 -0
  4. package/bin/runners/lib/assets/vibecheck-logo.png +0 -0
  5. package/bin/runners/lib/contracts/auth-contract.js +8 -0
  6. package/bin/runners/lib/contracts/env-contract.js +3 -0
  7. package/bin/runners/lib/contracts/external-contract.js +10 -2
  8. package/bin/runners/lib/contracts/route-contract.js +7 -0
  9. package/bin/runners/lib/contracts.js +804 -0
  10. package/bin/runners/lib/detectors-v2.js +703 -0
  11. package/bin/runners/lib/drift.js +425 -0
  12. package/bin/runners/lib/entitlements-v2.js +3 -1
  13. package/bin/runners/lib/entitlements.js +11 -3
  14. package/bin/runners/lib/env-resolver.js +417 -0
  15. package/bin/runners/lib/extractors/client-calls.js +990 -0
  16. package/bin/runners/lib/extractors/fastify-route-dump.js +573 -0
  17. package/bin/runners/lib/extractors/fastify-routes.js +426 -0
  18. package/bin/runners/lib/extractors/index.js +363 -0
  19. package/bin/runners/lib/extractors/next-routes.js +524 -0
  20. package/bin/runners/lib/extractors/proof-graph.js +431 -0
  21. package/bin/runners/lib/extractors/route-matcher.js +451 -0
  22. package/bin/runners/lib/extractors/truthpack-v2.js +377 -0
  23. package/bin/runners/lib/extractors/ui-bindings.js +547 -0
  24. package/bin/runners/lib/findings-schema.js +281 -0
  25. package/bin/runners/lib/html-report.js +650 -0
  26. package/bin/runners/lib/missions/templates.js +45 -0
  27. package/bin/runners/lib/policy.js +295 -0
  28. package/bin/runners/lib/reality/correlation-detectors.js +359 -0
  29. package/bin/runners/lib/reality/index.js +318 -0
  30. package/bin/runners/lib/reality/request-hashing.js +416 -0
  31. package/bin/runners/lib/reality/request-mapper.js +453 -0
  32. package/bin/runners/lib/reality/safety-rails.js +463 -0
  33. package/bin/runners/lib/reality/semantic-snapshot.js +408 -0
  34. package/bin/runners/lib/reality/toast-detector.js +393 -0
  35. package/bin/runners/lib/report-html.js +5 -0
  36. package/bin/runners/lib/report-templates.js +5 -0
  37. package/bin/runners/lib/report.js +135 -0
  38. package/bin/runners/lib/route-truth.js +10 -10
  39. package/bin/runners/lib/schema-validator.js +350 -0
  40. package/bin/runners/lib/schemas/contracts.schema.json +160 -0
  41. package/bin/runners/lib/schemas/finding.schema.json +100 -0
  42. package/bin/runners/lib/schemas/mission-pack.schema.json +206 -0
  43. package/bin/runners/lib/schemas/proof-graph.schema.json +176 -0
  44. package/bin/runners/lib/schemas/reality-report.schema.json +162 -0
  45. package/bin/runners/lib/schemas/share-pack.schema.json +180 -0
  46. package/bin/runners/lib/schemas/ship-report.schema.json +117 -0
  47. package/bin/runners/lib/schemas/truthpack-v2.schema.json +303 -0
  48. package/bin/runners/lib/schemas/validator.js +438 -0
  49. package/bin/runners/lib/ui.js +562 -0
  50. package/bin/runners/lib/verdict-engine.js +628 -0
  51. package/bin/runners/runAIAgent.js +228 -1
  52. package/bin/runners/runBadge.js +181 -1
  53. package/bin/runners/runCtx.js +7 -2
  54. package/bin/runners/runCtxDiff.js +301 -0
  55. package/bin/runners/runGuard.js +168 -0
  56. package/bin/runners/runInitGha.js +78 -15
  57. package/bin/runners/runLabs.js +341 -0
  58. package/bin/runners/runLaunch.js +180 -1
  59. package/bin/runners/runMdc.js +203 -1
  60. package/bin/runners/runProof.zip +0 -0
  61. package/bin/runners/runProve.js +23 -0
  62. package/bin/runners/runReplay.js +114 -84
  63. package/bin/runners/runScan.js +111 -32
  64. package/bin/runners/runShip.js +23 -2
  65. package/bin/runners/runTruthpack.js +9 -7
  66. package/bin/runners/runValidate.js +161 -1
  67. package/bin/vibecheck.js +416 -770
  68. package/mcp-server/.guardrail/audit/audit.log.jsonl +2 -0
  69. package/mcp-server/.specs/architecture.mdc +90 -0
  70. package/mcp-server/.specs/security.mdc +30 -0
  71. package/mcp-server/README.md +252 -0
  72. package/mcp-server/agent-checkpoint.js +364 -0
  73. package/mcp-server/architect-tools.js +707 -0
  74. package/mcp-server/audit-mcp.js +206 -0
  75. package/mcp-server/codebase-architect-tools.js +838 -0
  76. package/mcp-server/consolidated-tools.js +804 -0
  77. package/mcp-server/hygiene-tools.js +428 -0
  78. package/mcp-server/index-v1.js +698 -0
  79. package/mcp-server/index.js +2092 -0
  80. package/mcp-server/index.old.js +4137 -0
  81. package/mcp-server/intelligence-tools.js +664 -0
  82. package/mcp-server/intent-drift-tools.js +873 -0
  83. package/mcp-server/mdc-generator.js +298 -0
  84. package/mcp-server/package-lock.json +165 -0
  85. package/mcp-server/package.json +47 -0
  86. package/mcp-server/premium-tools.js +1275 -0
  87. package/mcp-server/test-mcp.js +108 -0
  88. package/mcp-server/test-tools.js +36 -0
  89. package/mcp-server/tier-auth.js +147 -0
  90. package/mcp-server/tools/index.js +72 -0
  91. package/mcp-server/tools-reorganized.ts +244 -0
  92. package/mcp-server/truth-context.js +581 -0
  93. package/mcp-server/truth-firewall-tools.js +1500 -0
  94. package/mcp-server/vibecheck-2.0-tools.js +748 -0
  95. package/mcp-server/vibecheck-tools.js +1075 -0
  96. package/package.json +10 -8
  97. package/bin/guardrail.js +0 -834
  98. package/bin/runners/runAudit.js +0 -2
  99. package/bin/runners/runAutopilot.js +0 -2
  100. package/bin/runners/runCertify.js +0 -2
  101. package/bin/runners/runDashboard.js +0 -10
  102. package/bin/runners/runEnhancedShip.js +0 -2
  103. package/bin/runners/runFixPacks.js +0 -2
  104. package/bin/runners/runNaturalLanguage.js +0 -3
  105. package/bin/runners/runProof.js +0 -2
  106. package/bin/runners/runRealitySniff.js +0 -2
  107. package/bin/runners/runUpgrade.js +0 -2
  108. package/bin/runners/runVerifyAgentOutput.js +0 -2
@@ -0,0 +1,2 @@
1
+ {"id":"36b46d34-86fb-43cc-844c-7df3b8155019","timestamp":"2026-01-11T21:25:55.725Z","actor":{"id":"mevla","type":"system","name":"mevla"},"surface":"mcp","action":"tool.invoke","category":"tool","target":{"type":"tool","name":"vibecheck.health"},"tier":"free","result":"success","metadata":{},"prevHash":"0000000000000000000000000000000000000000000000000000000000000000","version":1,"hash":"bf2bf569bee90629dcff3b9c0cb4db77f2078d0539a4cb0c15d5227b9dec61cb"}
2
+ {"id":"a26d38e9-a10c-478b-bce5-021e2788a339","timestamp":"2026-01-11T21:25:55.735Z","actor":{"id":"mevla","type":"system","name":"mevla"},"surface":"mcp","action":"tool.complete","category":"tool","target":{"type":"tool","name":"vibecheck.health"},"tier":"free","result":"success","metadata":{},"prevHash":"bf2bf569bee90629dcff3b9c0cb4db77f2078d0539a4cb0c15d5227b9dec61cb","version":1,"hash":"b15c8295a18bc5f1c3fb5f105a6edaab81e8cef38754c30379f8fe9557632cff"}
@@ -0,0 +1,90 @@
1
+ ---
2
+ description: Architecture Overview documentation
3
+ category: architecture
4
+ generatedAt: 2026-01-13T13:47:09.402Z
5
+ ---
6
+
7
+ # Architecture Overview
8
+
9
+ ## Components
10
+
11
+ ### getRulesForLevel
12
+ - **Type:** function
13
+ - **Path:** `agent-checkpoint.js`
14
+
15
+ ### validateContent
16
+ - **Type:** function
17
+ - **Path:** `agent-checkpoint.js`
18
+
19
+ ### formatViolations
20
+ - **Type:** function
21
+ - **Path:** `agent-checkpoint.js`
22
+
23
+ ### handleCheckpointTool
24
+ - **Type:** function
25
+ - **Path:** `agent-checkpoint.js`
26
+
27
+ ### ServiceName
28
+ - **Type:** class
29
+ - **Path:** `architect-tools.js`
30
+
31
+ ### name
32
+ - **Type:** function
33
+ - **Path:** `architect-tools.js`
34
+
35
+ ### detectFileType
36
+ - **Type:** function
37
+ - **Path:** `architect-tools.js`
38
+
39
+ ### detectFramework
40
+ - **Type:** function
41
+ - **Path:** `architect-tools.js`
42
+
43
+ ### reviewCode
44
+ - **Type:** function
45
+ - **Path:** `architect-tools.js`
46
+
47
+ ### getSuggestions
48
+ - **Type:** function
49
+ - **Path:** `architect-tools.js`
50
+
51
+ ### ComponentName
52
+ - **Type:** function
53
+ - **Path:** `architect-tools.js`
54
+
55
+ ### useHookName
56
+ - **Type:** function
57
+ - **Path:** `architect-tools.js`
58
+
59
+ ### handler
60
+ - **Type:** function
61
+ - **Path:** `architect-tools.js`
62
+
63
+ ### handleArchitectTool
64
+ - **Type:** function
65
+ - **Path:** `architect-tools.js`
66
+
67
+ ### getCurrentTier
68
+ - **Type:** function
69
+ - **Path:** `audit-mcp.js`
70
+
71
+ ### getCurrentActor
72
+ - **Type:** function
73
+ - **Path:** `audit-mcp.js`
74
+
75
+ ### redactSensitive
76
+ - **Type:** function
77
+ - **Path:** `audit-mcp.js`
78
+
79
+ ### redactMetadata
80
+ - **Type:** function
81
+ - **Path:** `audit-mcp.js`
82
+
83
+ ### redactObject
84
+ - **Type:** function
85
+ - **Path:** `audit-mcp.js`
86
+
87
+ ### computeHash
88
+ - **Type:** function
89
+ - **Path:** `audit-mcp.js`
90
+
@@ -0,0 +1,30 @@
1
+ ---
2
+ description: Security Architecture documentation
3
+ category: security
4
+ generatedAt: 2026-01-13T13:47:09.403Z
5
+ ---
6
+
7
+ # Security Architecture
8
+
9
+ ## Components
10
+
11
+ ### loadUserConfig
12
+ - **Type:** function
13
+ - **Path:** `tier-auth.js`
14
+
15
+ ### getTierFromApiKey
16
+ - **Type:** function
17
+ - **Path:** `tier-auth.js`
18
+
19
+ ### checkFeatureAccess
20
+ - **Type:** function
21
+ - **Path:** `tier-auth.js`
22
+
23
+ ### withTierCheck
24
+ - **Type:** function
25
+ - **Path:** `tier-auth.js`
26
+
27
+ ### getUserInfo
28
+ - **Type:** function
29
+ - **Path:** `tier-auth.js`
30
+
@@ -0,0 +1,252 @@
1
+ # vibecheck MCP Server
2
+
3
+ Professional Model Context Protocol server for vibecheck AI.
4
+
5
+ > "Stop shipping pretend features."
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ npm install -g vibecheck-mcp-server
11
+ ```
12
+
13
+ ## Configuration
14
+
15
+ See [MCP-INSTALLATION-GUIDE.md](../docs/MCP-INSTALLATION-GUIDE.md) for editor-specific setup.
16
+
17
+ ## Development
18
+
19
+ ```bash
20
+ cd mcp-server
21
+ npm install
22
+ npm start
23
+ ```
24
+
25
+ ## Premium Command Palette Tools
26
+
27
+ These tools provide a top-notch, zero-friction UX:
28
+
29
+ ### Ship Check Commands
30
+ - `run_ship` - vibecheck: Ship Check (GO/NO-GO)
31
+ - `run_reality` - vibecheck: Run Reality Mode
32
+ - `run_mockproof` - vibecheck: Run MockProof Gate
33
+ - `run_airlock` - vibecheck: Run Airlock (SupplyChain)
34
+
35
+ ### Report & Artifact Commands
36
+ - `get_last_run` - vibecheck: Open Last Run Report
37
+ - `open_artifact` - Open Report/Replay/Trace/SARIF/Badge
38
+ - `rerun_last_check` - vibecheck: Re-run Last Check
39
+ - `export_sarif` - Export findings as SARIF
40
+
41
+ ### Setup & Policy Commands
42
+ - `run_doctor` - vibecheck: Doctor (Fix my setup)
43
+ - `edit_policies` - vibecheck: Policies (Quick Edit)
44
+ - `get_status` - Get server status and workspace info
45
+ - `policy_patch` - Apply atomic policy changes
46
+
47
+ ### Fix Mode Commands
48
+ - `enter_fix_mode` - Enter Fix Mode for blocker resolution
49
+ - `fix_mode_status` - Get Fix Mode checklist status
50
+ - `mark_fix_complete` - Mark blocker as fixed
51
+ - `exit_fix_mode` - Exit and re-run ship check
52
+
53
+ ### Evidence & Diagnostics
54
+ - `explain_finding` - Get detailed finding explanation
55
+
56
+ ## AI vibecheck Tools (Prompt Firewall + Output Verification)
57
+
58
+ These tools provide AI safety and verification capabilities:
59
+
60
+ | Tool | Description |
61
+ |------|-------------|
62
+ | `vibecheck.verify` | ๐Ÿ›ก๏ธ Verify AI agent output before applying - checks secrets, dangerous commands, path traversal |
63
+ | `vibecheck.quality` | ๐Ÿ“Š Code quality analysis - complexity, maintainability, technical debt metrics |
64
+ | `vibecheck.smells` | ๐Ÿ‘ƒ Code smell detection - anti-patterns, naming issues, structural problems |
65
+ | `vibecheck.hallucination` | ๐Ÿ” Hallucination check - verify claims against actual source code |
66
+ | `vibecheck.breaking` | โš ๏ธ Breaking change detection - API changes, removed methods, type changes |
67
+ | `vibecheck.mdc` | ๐Ÿ“ MDC Generator - source-anchored documentation generation |
68
+ | `vibecheck.coverage` | ๐Ÿงช Test coverage mapping - identify untested components |
69
+
70
+ ### Example Usage
71
+
72
+ ```json
73
+ // Verify AI-generated code before applying
74
+ {
75
+ "tool": "vibecheck.verify",
76
+ "arguments": {
77
+ "input": "{\"format\":\"vibecheck-v1\",\"diff\":\"...\",\"commands\":[]}",
78
+ "mode": "build"
79
+ }
80
+ }
81
+
82
+ // Check code quality
83
+ {
84
+ "tool": "vibecheck.quality",
85
+ "arguments": {
86
+ "projectPath": ".",
87
+ "threshold": 70
88
+ }
89
+ }
90
+
91
+ // Detect code smells
92
+ {
93
+ "tool": "vibecheck.smells",
94
+ "arguments": {
95
+ "projectPath": ".",
96
+ "severity": "high"
97
+ }
98
+ }
99
+ ```
100
+
101
+ ## Agent Checkpoint Tools
102
+
103
+ Pre-write validation that blocks AI agents until issues are fixed:
104
+
105
+ | Tool | Description |
106
+ |------|-------------|
107
+ | `vibecheck_checkpoint` | ๐Ÿ›ก๏ธ Validate code before writing - blocks on TODOs, mocks, console.log, etc. |
108
+ | `vibecheck_set_strictness` | โš™๏ธ Set checkpoint strictness: chill, standard, strict, paranoid |
109
+ | `vibecheck_checkpoint_status` | ๐Ÿ“Š Get current checkpoint status and blocking violations |
110
+
111
+ ## Architect Tools
112
+
113
+ AI agents consult the Architect before writing code:
114
+
115
+ | Tool | Description |
116
+ |------|-------------|
117
+ | `vibecheck_architect_review` | ๐Ÿ›๏ธ Review code against architecture patterns |
118
+ | `vibecheck_architect_suggest` | ๐Ÿ’ก Get architectural guidance before writing code |
119
+ | `vibecheck_architect_patterns` | ๐Ÿ“‹ List all active architecture patterns |
120
+ | `vibecheck_architect_set_strictness` | โš™๏ธ Set architect strictness level |
121
+
122
+ ## Codebase Architect Tools
123
+
124
+ Deep codebase knowledge for AI agents:
125
+
126
+ | Tool | Description |
127
+ |------|-------------|
128
+ | `vibecheck_architect_context` | ๐Ÿง  Load full codebase context (tech stack, conventions, patterns) |
129
+ | `vibecheck_architect_guide` | ๐Ÿ›๏ธ Get guidance for creating/modifying code |
130
+ | `vibecheck_architect_validate` | โœ… Validate code against codebase patterns |
131
+ | `vibecheck_architect_dependencies` | ๐Ÿ”— Understand file relationships and impact |
132
+
133
+ ## vibecheck 2.0 Tools (Consolidated)
134
+
135
+ Six core tools for the complete workflow:
136
+
137
+ | Tool | Description |
138
+ |------|-------------|
139
+ | `checkpoint` | ๐Ÿ›ก๏ธ Block AI agents until issues are fixed (pre/post write) |
140
+ | `check` | ๐Ÿ” Verify code is real, wired, honest |
141
+ | `ship` | ๐Ÿš€ Go/No-Go decision (GO / WARN / NO-GO) |
142
+ | `fix` | ๐Ÿ”ง Fix blocking issues safely |
143
+ | `status` | ๐Ÿ“Š Health + version info |
144
+ | `set_strictness` | โš™๏ธ Set checkpoint strictness level |
145
+
146
+ ## Intent Drift Guard Tools
147
+
148
+ Capture intent before writing code, monitor for drift:
149
+
150
+ | Tool | Description |
151
+ |------|-------------|
152
+ | `vibecheck_intent_start` | ๐ŸŽฏ Start a new step with explicit intent |
153
+ | `vibecheck_intent_check` | โœ… Check if code changes align with stated intent |
154
+ | `vibecheck_intent_validate_prompt` | ๐Ÿ”’ Validate new prompts against locked intent |
155
+ | `vibecheck_intent_status` | ๐Ÿ“Š Get current Intent Drift Guard status |
156
+ | `vibecheck_intent_complete` | โœ… Complete step and generate proof artifact |
157
+ | `vibecheck_intent_lock` | ๐Ÿ”’ Lock intent to prevent scope expansion |
158
+ | `vibecheck_intent_unlock` | ๐Ÿ”“ Unlock intent, allow scope changes |
159
+
160
+ ## Fix Missions v1 + Reality v2 Tools
161
+
162
+ Production-ready AI fix loop and runtime verification:
163
+
164
+ | Tool | Description |
165
+ |------|-------------|
166
+ | `vibecheck.fix` | ๐Ÿ›  Fix Missions v1 โ€” AI-powered surgical fixes with verification loop |
167
+ | `vibecheck.reality` | ๐Ÿงช Reality Mode v2 โ€” Two-pass auth verification (anon + auth), Dead UI detection |
168
+ | `vibecheck.prove` | ๐Ÿ”ฌ One Command Reality Proof โ€” orchestrates ctx โ†’ reality โ†’ ship โ†’ fix loop |
169
+ | `vibecheck.share` | ๐Ÿ“ฆ Share Bundle โ€” generate PR comment / review bundle from fix missions |
170
+
171
+ ### vibecheck.reality Options
172
+
173
+ ```json
174
+ {
175
+ "tool": "vibecheck.reality",
176
+ "arguments": {
177
+ "url": "http://localhost:3000",
178
+ "verifyAuth": true,
179
+ "auth": "user@example.com:password",
180
+ "storageState": ".vibecheck/reality/storageState.json",
181
+ "truthpack": ".vibecheck/truth/truthpack.json",
182
+ "headed": false,
183
+ "maxPages": 18,
184
+ "maxDepth": 2,
185
+ "danger": false
186
+ }
187
+ }
188
+ ```
189
+
190
+ ### vibecheck.fix Options
191
+
192
+ ```json
193
+ {
194
+ "tool": "vibecheck.fix",
195
+ "arguments": {
196
+ "promptOnly": false,
197
+ "apply": true,
198
+ "autopilot": true,
199
+ "share": true,
200
+ "maxMissions": 8,
201
+ "maxSteps": 10
202
+ }
203
+ }
204
+ ```
205
+
206
+ ### vibecheck.prove Options
207
+
208
+ ```json
209
+ {
210
+ "tool": "vibecheck.prove",
211
+ "arguments": {
212
+ "url": "http://localhost:3000",
213
+ "auth": "user@example.com:password",
214
+ "maxFixRounds": 3,
215
+ "skipReality": false,
216
+ "skipFix": false
217
+ }
218
+ }
219
+ ```
220
+
221
+ ## Core Analysis Tools
222
+
223
+ - `validate_project` - Validate project structure and API endpoints
224
+ - `check_design_system` - Validate design system consistency
225
+ - `check_project_drift` - Check for architecture drift
226
+ - `setup_design_system` - Set up and lock design system
227
+ - `register_api_endpoint` - Register API endpoint
228
+ - `get_project_health` - Get project health score
229
+ - `get_vibechecks_rules` - Get vibechecks rules
230
+ - `architect_analyze` - Intelligent project analysis
231
+ - `build_knowledge_base` - Build codebase knowledge
232
+ - `semantic_search` - Search code by meaning
233
+ - `security_scan` - Full security scan
234
+ - `ship_check` - Ship readiness check
235
+ - `get_deploy_verdict` - Get deploy GO/NO-GO decision
236
+
237
+ ## Resources
238
+
239
+ - `vibechecks://rules` - Vibechecks rules document
240
+ - `vibechecks://templates` - Available templates
241
+ - `vibechecks://design-tokens` - Design system tokens
242
+
243
+ ## Documentation
244
+
245
+ See [MCP-PREMIUM-TOOLS.md](../docs/MCP-PREMIUM-TOOLS.md) for detailed tool documentation.
246
+
247
+ ## Privacy & Trust
248
+
249
+ - Runs locally
250
+ - Artifacts saved to `.vibecheck/`
251
+ - No upload unless you export/share
252
+