@vibecheckai/cli 3.1.8 → 3.2.1
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/bin/registry.js +106 -116
- package/bin/runners/context/generators/mcp.js +18 -0
- package/bin/runners/context/index.js +72 -4
- package/bin/runners/context/proof-context.js +293 -1
- package/bin/runners/context/security-scanner.js +311 -73
- package/bin/runners/lib/agent-firewall/change-packet/builder.js +214 -0
- package/bin/runners/lib/agent-firewall/change-packet/schema.json +228 -0
- package/bin/runners/lib/agent-firewall/change-packet/store.js +200 -0
- package/bin/runners/lib/agent-firewall/claims/claim-types.js +21 -0
- package/bin/runners/lib/agent-firewall/claims/extractor.js +214 -0
- package/bin/runners/lib/agent-firewall/claims/patterns.js +24 -0
- package/bin/runners/lib/agent-firewall/evidence/auth-evidence.js +88 -0
- package/bin/runners/lib/agent-firewall/evidence/contract-evidence.js +75 -0
- package/bin/runners/lib/agent-firewall/evidence/env-evidence.js +118 -0
- package/bin/runners/lib/agent-firewall/evidence/resolver.js +102 -0
- package/bin/runners/lib/agent-firewall/evidence/route-evidence.js +142 -0
- package/bin/runners/lib/agent-firewall/evidence/side-effect-evidence.js +145 -0
- package/bin/runners/lib/agent-firewall/fs-hook/daemon.js +19 -0
- package/bin/runners/lib/agent-firewall/fs-hook/installer.js +87 -0
- package/bin/runners/lib/agent-firewall/fs-hook/watcher.js +184 -0
- package/bin/runners/lib/agent-firewall/git-hook/pre-commit.js +163 -0
- package/bin/runners/lib/agent-firewall/ide-extension/cursor.js +107 -0
- package/bin/runners/lib/agent-firewall/ide-extension/vscode.js +68 -0
- package/bin/runners/lib/agent-firewall/ide-extension/windsurf.js +66 -0
- package/bin/runners/lib/agent-firewall/interceptor/base.js +304 -0
- package/bin/runners/lib/agent-firewall/interceptor/cursor.js +35 -0
- package/bin/runners/lib/agent-firewall/interceptor/vscode.js +35 -0
- package/bin/runners/lib/agent-firewall/interceptor/windsurf.js +34 -0
- package/bin/runners/lib/agent-firewall/policy/default-policy.json +84 -0
- package/bin/runners/lib/agent-firewall/policy/engine.js +72 -0
- package/bin/runners/lib/agent-firewall/policy/loader.js +143 -0
- package/bin/runners/lib/agent-firewall/policy/rules/auth-drift.js +50 -0
- package/bin/runners/lib/agent-firewall/policy/rules/contract-drift.js +50 -0
- package/bin/runners/lib/agent-firewall/policy/rules/fake-success.js +61 -0
- package/bin/runners/lib/agent-firewall/policy/rules/ghost-env.js +50 -0
- package/bin/runners/lib/agent-firewall/policy/rules/ghost-route.js +50 -0
- package/bin/runners/lib/agent-firewall/policy/rules/scope.js +93 -0
- package/bin/runners/lib/agent-firewall/policy/rules/unsafe-side-effect.js +57 -0
- package/bin/runners/lib/agent-firewall/policy/schema.json +183 -0
- package/bin/runners/lib/agent-firewall/policy/verdict.js +54 -0
- package/bin/runners/lib/agent-firewall/truthpack/index.js +67 -0
- package/bin/runners/lib/agent-firewall/truthpack/loader.js +116 -0
- package/bin/runners/lib/agent-firewall/unblock/planner.js +337 -0
- package/bin/runners/lib/analysis-core.js +198 -180
- package/bin/runners/lib/analyzers.js +1394 -224
- package/bin/runners/lib/detectors-v2.js +560 -641
- package/bin/runners/lib/entitlements-v2.js +48 -1
- package/bin/runners/lib/evidence-pack.js +678 -0
- package/bin/runners/lib/fingerprint.js +377 -0
- package/bin/runners/lib/html-proof-report.js +913 -0
- package/bin/runners/lib/missions/plan.js +231 -41
- package/bin/runners/lib/missions/templates.js +125 -0
- package/bin/runners/lib/route-truth.js +1167 -322
- package/bin/runners/lib/scan-output.js +558 -235
- package/bin/runners/lib/ship-output.js +901 -641
- package/bin/runners/lib/truth.js +1004 -321
- package/bin/runners/runAgent.js +161 -0
- package/bin/runners/runCheckpoint.js +44 -3
- package/bin/runners/runContext.d.ts +4 -0
- package/bin/runners/runDoctor.js +10 -2
- package/bin/runners/runFirewall.js +134 -0
- package/bin/runners/runFirewallHook.js +56 -0
- package/bin/runners/runFix.js +51 -341
- package/bin/runners/runInit.js +11 -0
- package/bin/runners/runPolish.d.ts +4 -0
- package/bin/runners/runPolish.js +608 -29
- package/bin/runners/runProve.js +210 -25
- package/bin/runners/runReality.js +846 -101
- package/bin/runners/runScan.js +351 -14
- package/bin/runners/runShip.js +19 -3
- package/bin/runners/runTruth.js +89 -0
- package/bin/runners/runWatch.js +14 -1
- package/bin/vibecheck.js +32 -2
- package/mcp-server/agent-firewall-interceptor.js +164 -0
- package/mcp-server/consolidated-tools.js +408 -42
- package/mcp-server/index.js +498 -327
- package/mcp-server/proof-tools.js +571 -0
- package/mcp-server/tier-auth.js +22 -19
- package/mcp-server/tools-v3.js +744 -0
- package/mcp-server/truth-context.js +131 -90
- package/mcp-server/truth-firewall-tools.js +1494 -941
- package/package.json +3 -1
- package/bin/runners/runInstall.js +0 -281
- package/bin/runners/runLabs.js +0 -341
|
@@ -141,6 +141,50 @@ const ENTITLEMENTS = {
|
|
|
141
141
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
142
142
|
"security": { minTier: "pro" },
|
|
143
143
|
|
|
144
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
145
|
+
// AI FEATURES - Token/Cost Controls
|
|
146
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
147
|
+
"ai": { minTier: "starter", downgrade: "ai.none" },
|
|
148
|
+
"ai.none": { minTier: "free", caps: { free: "No AI features - upgrade for AI" } },
|
|
149
|
+
"ai.starter": {
|
|
150
|
+
minTier: "starter",
|
|
151
|
+
caps: {
|
|
152
|
+
starter: {
|
|
153
|
+
model: "gpt-3.5-turbo", // Cheaper model for Starter
|
|
154
|
+
maxCallsPerMonth: 10, // 10 AI calls/month
|
|
155
|
+
maxInputTokensPerRequest: 2000, // ~$0.002 max input cost
|
|
156
|
+
maxOutputTokensPerRequest: 1000, // ~$0.002 max output cost
|
|
157
|
+
maxCostPerMonth: 0.50, // $0.50 max AI spend/month
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"ai.pro": {
|
|
162
|
+
minTier: "pro",
|
|
163
|
+
caps: {
|
|
164
|
+
pro: {
|
|
165
|
+
model: "gpt-4-turbo-preview", // Premium model for Pro
|
|
166
|
+
alternateModel: "claude-3-5-sonnet-20241022", // Fallback
|
|
167
|
+
maxCallsPerMonth: 50, // 50 AI calls/month
|
|
168
|
+
maxInputTokensPerRequest: 4000, // ~$0.04 max input cost
|
|
169
|
+
maxOutputTokensPerRequest: 2000, // ~$0.06 max output cost
|
|
170
|
+
maxCostPerMonth: 5.00, // $5.00 max AI spend/month
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"ai.compliance": {
|
|
175
|
+
minTier: "compliance",
|
|
176
|
+
caps: {
|
|
177
|
+
compliance: {
|
|
178
|
+
model: "gpt-4-turbo-preview",
|
|
179
|
+
alternateModel: "claude-3-5-sonnet-20241022",
|
|
180
|
+
maxCallsPerMonth: 500, // 500 AI calls/month
|
|
181
|
+
maxInputTokensPerRequest: 8000,
|
|
182
|
+
maxOutputTokensPerRequest: 4000,
|
|
183
|
+
maxCostPerMonth: 50.00, // $50 max AI spend/month
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
|
|
144
188
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
145
189
|
// PRO ONLY
|
|
146
190
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
@@ -155,7 +199,10 @@ const ENTITLEMENTS = {
|
|
|
155
199
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
156
200
|
"gate": { minTier: "starter" },
|
|
157
201
|
"pr": { minTier: "starter" },
|
|
158
|
-
"badge": { minTier: "starter" },
|
|
202
|
+
"badge": { minTier: "starter", downgrade: "badge.basic" },
|
|
203
|
+
"badge.basic": { minTier: "starter" }, // Basic badge (STARTER)
|
|
204
|
+
"badge.verified": { minTier: "pro" }, // Verified badge with seal (PRO)
|
|
205
|
+
"fix_hints": { minTier: "starter" }, // Fix hints/missions in output
|
|
159
206
|
"launch": { minTier: "starter" },
|
|
160
207
|
"dashboard_sync": { minTier: "starter" },
|
|
161
208
|
|