@vibecheckai/cli 3.1.2 → 3.1.4
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 +60 -33
- package/bin/registry.js +319 -34
- package/bin/runners/CLI_REFACTOR_SUMMARY.md +229 -0
- package/bin/runners/REPORT_AUDIT.md +64 -0
- package/bin/runners/lib/entitlements-v2.js +97 -28
- package/bin/runners/lib/entitlements.js +3 -6
- package/bin/runners/lib/init-wizard.js +1 -1
- package/bin/runners/lib/report-engine.js +459 -280
- package/bin/runners/lib/report-html.js +1154 -1423
- package/bin/runners/lib/report-output.js +187 -0
- package/bin/runners/lib/report-templates.js +848 -850
- package/bin/runners/lib/scan-output.js +545 -0
- package/bin/runners/lib/server-usage.js +0 -12
- package/bin/runners/lib/ship-output.js +641 -0
- package/bin/runners/lib/status-output.js +253 -0
- package/bin/runners/lib/terminal-ui.js +853 -0
- package/bin/runners/runCheckpoint.js +502 -0
- package/bin/runners/runContracts.js +105 -0
- package/bin/runners/runExport.js +93 -0
- package/bin/runners/runFix.js +31 -24
- package/bin/runners/runInit.js +377 -112
- package/bin/runners/runInstall.js +1 -5
- package/bin/runners/runLabs.js +3 -3
- package/bin/runners/runPolish.js +2452 -0
- package/bin/runners/runProve.js +2 -2
- package/bin/runners/runReport.js +251 -200
- package/bin/runners/runRuntime.js +110 -0
- package/bin/runners/runScan.js +477 -379
- package/bin/runners/runSecurity.js +92 -0
- package/bin/runners/runShip.js +137 -207
- package/bin/runners/runStatus.js +16 -68
- package/bin/runners/utils.js +5 -5
- package/bin/vibecheck.js +25 -11
- package/mcp-server/index.js +150 -18
- package/mcp-server/package.json +2 -2
- package/mcp-server/premium-tools.js +13 -13
- package/mcp-server/tier-auth.js +292 -27
- package/mcp-server/vibecheck-tools.js +9 -9
- package/package.json +1 -1
- package/bin/runners/runClaimVerifier.js +0 -483
- package/bin/runners/runContextCompiler.js +0 -385
- package/bin/runners/runGate.js +0 -17
- package/bin/runners/runInitGha.js +0 -164
- package/bin/runners/runInteractive.js +0 -388
- package/bin/runners/runMdc.js +0 -204
- package/bin/runners/runMissionGenerator.js +0 -282
- package/bin/runners/runTruthpack.js +0 -636
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* vibecheck runtime - Everything Playwright / Browser-Based
|
|
3
|
+
*
|
|
4
|
+
* Subcommands:
|
|
5
|
+
* runtime crawl --url ... = current reality
|
|
6
|
+
* runtime agent --url ... = current ai-test
|
|
7
|
+
* runtime record --url ... = current replay record
|
|
8
|
+
* runtime play <capsule> = current replay play
|
|
9
|
+
*
|
|
10
|
+
* Replaces: reality, ai-test, most of replay
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
"use strict";
|
|
14
|
+
|
|
15
|
+
const c = {
|
|
16
|
+
reset: '\x1b[0m',
|
|
17
|
+
bold: '\x1b[1m',
|
|
18
|
+
dim: '\x1b[2m',
|
|
19
|
+
cyan: '\x1b[36m',
|
|
20
|
+
yellow: '\x1b[33m',
|
|
21
|
+
red: '\x1b[31m',
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
function printHelp() {
|
|
25
|
+
console.log(`
|
|
26
|
+
${c.cyan}${c.bold}🌐 vibecheck runtime${c.reset} - Browser-Based Runtime Verification
|
|
27
|
+
|
|
28
|
+
Everything Playwright / browser-based testing and verification.
|
|
29
|
+
|
|
30
|
+
${c.bold}SUBCOMMANDS${c.reset}
|
|
31
|
+
${c.cyan}crawl${c.reset} <url> ${c.dim}Runtime UI verification (replaces 'reality')${c.reset}
|
|
32
|
+
${c.cyan}agent${c.reset} <url> ${c.dim}AI autonomous test generation (replaces 'ai-test')${c.reset}
|
|
33
|
+
${c.cyan}record${c.reset} <url> ${c.dim}Record user session (replaces 'replay record')${c.reset}
|
|
34
|
+
${c.cyan}play${c.reset} <capsule> ${c.dim}Replay recorded session (replaces 'replay play')${c.reset}
|
|
35
|
+
|
|
36
|
+
${c.bold}EXAMPLES${c.reset}
|
|
37
|
+
vibecheck runtime crawl --url http://localhost:3000
|
|
38
|
+
vibecheck runtime agent --url http://localhost:3000 --scenario login
|
|
39
|
+
vibecheck runtime record --url http://localhost:3000
|
|
40
|
+
vibecheck runtime play my-session
|
|
41
|
+
|
|
42
|
+
${c.dim}Note: Old commands still work as aliases:
|
|
43
|
+
vibecheck reality → vibecheck runtime crawl
|
|
44
|
+
vibecheck ai-test → vibecheck runtime agent
|
|
45
|
+
vibecheck replay record → vibecheck runtime record
|
|
46
|
+
vibecheck replay play → vibecheck runtime play${c.reset}
|
|
47
|
+
`);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
async function runRuntime(args) {
|
|
51
|
+
if (!args || args.length === 0 || args[0] === "--help" || args[0] === "-h") {
|
|
52
|
+
printHelp();
|
|
53
|
+
return 0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const subcommand = args[0];
|
|
57
|
+
const subArgs = args.slice(1);
|
|
58
|
+
|
|
59
|
+
switch (subcommand) {
|
|
60
|
+
case "crawl":
|
|
61
|
+
// Delegate to runReality
|
|
62
|
+
try {
|
|
63
|
+
const { runReality } = require("./runReality");
|
|
64
|
+
return await runReality(subArgs);
|
|
65
|
+
} catch (e) {
|
|
66
|
+
console.error(`${c.red}Error:${c.reset} Runtime crawl unavailable: ${e.message}`);
|
|
67
|
+
console.error(`${c.dim}Install playwright: npm install playwright${c.reset}`);
|
|
68
|
+
return 1;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
case "agent":
|
|
72
|
+
// Delegate to runAIAgent
|
|
73
|
+
try {
|
|
74
|
+
const { runAIAgent } = require("./runAIAgent");
|
|
75
|
+
return await runAIAgent(subArgs);
|
|
76
|
+
} catch (e) {
|
|
77
|
+
console.error(`${c.red}Error:${c.reset} Runtime agent unavailable: ${e.message}`);
|
|
78
|
+
return 1;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
case "record":
|
|
82
|
+
// Delegate to runReplay with "record" subcommand
|
|
83
|
+
try {
|
|
84
|
+
const { runReplay } = require("./runReplay");
|
|
85
|
+
return await runReplay(["record", ...subArgs]);
|
|
86
|
+
} catch (e) {
|
|
87
|
+
console.error(`${c.red}Error:${c.reset} Runtime record unavailable: ${e.message}`);
|
|
88
|
+
console.error(`${c.dim}Install dependencies: npm install chalk playwright${c.reset}`);
|
|
89
|
+
return 1;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
case "play":
|
|
93
|
+
// Delegate to runReplay with "play" subcommand
|
|
94
|
+
try {
|
|
95
|
+
const { runReplay } = require("./runReplay");
|
|
96
|
+
return await runReplay(["play", ...subArgs]);
|
|
97
|
+
} catch (e) {
|
|
98
|
+
console.error(`${c.red}Error:${c.reset} Runtime play unavailable: ${e.message}`);
|
|
99
|
+
console.error(`${c.dim}Install dependencies: npm install chalk playwright${c.reset}`);
|
|
100
|
+
return 1;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
default:
|
|
104
|
+
console.error(`${c.red}Unknown subcommand:${c.reset} ${subcommand}`);
|
|
105
|
+
console.log(`\n${c.dim}Run 'vibecheck runtime --help' for available subcommands.${c.reset}\n`);
|
|
106
|
+
return 1;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
module.exports = { runRuntime };
|