@vibecheckai/cli 2.5.7 → 2.7.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/LICENSE +1 -1
- package/dist/bundles/vibecheck-core.js +20 -20
- package/dist/commands/secrets-allowlist.js +4 -4
- package/dist/commands/secrets-allowlist.js.map +1 -1
- package/dist/commands/ship-consolidated.js +193 -193
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/init/ci-generator.d.ts +2 -2
- package/dist/init/hooks-installer.d.ts +2 -2
- package/dist/init/index.d.ts +1 -1
- package/dist/init/index.d.ts.map +1 -1
- package/dist/init/index.js +2 -2
- package/dist/init/index.js.map +1 -1
- package/dist/init/templates.d.ts +6 -285
- package/dist/init/templates.d.ts.map +1 -1
- package/dist/init/templates.js +2 -3
- package/dist/init/templates.js.map +1 -1
- package/dist/runtime/json-output.d.ts +2 -2
- package/package.json +11 -3
- package/dist/bundles/guardrail-core.js +0 -25799
- package/dist/bundles/guardrail-security.js +0 -208687
- package/dist/bundles/guardrail-ship.js +0 -2318
- package/dist/commands/autopilot-decision.d.ts +0 -24
- package/dist/commands/autopilot-decision.d.ts.map +0 -1
- package/dist/commands/autopilot-decision.js +0 -304
- package/dist/commands/autopilot-decision.js.map +0 -1
- package/dist/commands/autopilot.d.ts +0 -33
- package/dist/commands/autopilot.d.ts.map +0 -1
- package/dist/commands/autopilot.js +0 -1539
- package/dist/commands/autopilot.js.map +0 -1
- package/dist/commands/context.d.ts +0 -8
- package/dist/commands/context.d.ts.map +0 -1
- package/dist/commands/context.js +0 -340
- package/dist/commands/context.js.map +0 -1
- package/dist/commands/debug.d.ts +0 -78
- package/dist/commands/debug.d.ts.map +0 -1
- package/dist/commands/debug.js +0 -381
- package/dist/commands/debug.js.map +0 -1
- package/dist/commands/preview.d.ts +0 -54
- package/dist/commands/preview.d.ts.map +0 -1
- package/dist/commands/preview.js +0 -352
- package/dist/commands/preview.js.map +0 -1
- package/dist/commands/quality/check.d.ts +0 -31
- package/dist/commands/quality/check.d.ts.map +0 -1
- package/dist/commands/quality/check.js +0 -242
- package/dist/commands/quality/check.js.map +0 -1
- package/dist/commands/quality/index.d.ts +0 -8
- package/dist/commands/quality/index.d.ts.map +0 -1
- package/dist/commands/quality/index.js +0 -14
- package/dist/commands/quality/index.js.map +0 -1
- package/dist/commands/quality/setup-quality.d.ts +0 -23
- package/dist/commands/quality/setup-quality.d.ts.map +0 -1
- package/dist/commands/quality/setup-quality.js +0 -452
- package/dist/commands/quality/setup-quality.js.map +0 -1
- package/dist/commands/quality/tidy.d.ts +0 -41
- package/dist/commands/quality/tidy.d.ts.map +0 -1
- package/dist/commands/quality/tidy.js +0 -466
- package/dist/commands/quality/tidy.js.map +0 -1
- package/dist/commands/quality/utils.d.ts +0 -73
- package/dist/commands/quality/utils.d.ts.map +0 -1
- package/dist/commands/quality/utils.js +0 -158
- package/dist/commands/quality/utils.js.map +0 -1
- package/dist/fix/analytics.d.ts +0 -121
- package/dist/fix/analytics.d.ts.map +0 -1
- package/dist/fix/analytics.js +0 -289
- package/dist/fix/analytics.js.map +0 -1
- package/dist/fix/audit.d.ts +0 -61
- package/dist/fix/audit.d.ts.map +0 -1
- package/dist/fix/audit.js +0 -149
- package/dist/fix/audit.js.map +0 -1
- package/dist/fix/config.d.ts +0 -78
- package/dist/fix/config.d.ts.map +0 -1
- package/dist/fix/config.js +0 -200
- package/dist/fix/config.js.map +0 -1
- package/dist/fix/impact.d.ts +0 -74
- package/dist/fix/impact.d.ts.map +0 -1
- package/dist/fix/impact.js +0 -281
- package/dist/fix/impact.js.map +0 -1
- package/dist/fix/learning.d.ts +0 -109
- package/dist/fix/learning.d.ts.map +0 -1
- package/dist/fix/learning.js +0 -296
- package/dist/fix/learning.js.map +0 -1
- package/dist/fix/metrics.d.ts +0 -106
- package/dist/fix/metrics.d.ts.map +0 -1
- package/dist/fix/metrics.js +0 -138
- package/dist/fix/metrics.js.map +0 -1
- package/dist/fix/parallel.d.ts +0 -69
- package/dist/fix/parallel.d.ts.map +0 -1
- package/dist/fix/parallel.js +0 -203
- package/dist/fix/parallel.js.map +0 -1
- package/dist/fix/report.d.ts +0 -40
- package/dist/fix/report.d.ts.map +0 -1
- package/dist/fix/report.js +0 -212
- package/dist/fix/report.js.map +0 -1
- package/dist/fix/strategy.d.ts +0 -53
- package/dist/fix/strategy.d.ts.map +0 -1
- package/dist/fix/strategy.js +0 -143
- package/dist/fix/strategy.js.map +0 -1
- package/dist/fix/templates.d.ts +0 -58
- package/dist/fix/templates.d.ts.map +0 -1
- package/dist/fix/templates.js +0 -259
- package/dist/fix/templates.js.map +0 -1
- package/dist/fix/testing.d.ts +0 -68
- package/dist/fix/testing.d.ts.map +0 -1
- package/dist/fix/testing.js +0 -245
- package/dist/fix/testing.js.map +0 -1
- package/dist/fix/validation.d.ts +0 -71
- package/dist/fix/validation.d.ts.map +0 -1
- package/dist/fix/validation.js +0 -267
- package/dist/fix/validation.js.map +0 -1
- package/dist/fix/visualization.d.ts +0 -73
- package/dist/fix/visualization.d.ts.map +0 -1
- package/dist/fix/visualization.js +0 -243
- package/dist/fix/visualization.js.map +0 -1
- package/dist/runtime/cli-errors.d.ts +0 -38
- package/dist/runtime/cli-errors.d.ts.map +0 -1
- package/dist/runtime/cli-errors.js +0 -354
- package/dist/runtime/cli-errors.js.map +0 -1
- package/dist/runtime/owner-mode.d.ts +0 -48
- package/dist/runtime/owner-mode.d.ts.map +0 -1
- package/dist/runtime/owner-mode.js +0 -284
- package/dist/runtime/owner-mode.js.map +0 -1
- package/dist/scanner/index.d.ts +0 -8
- package/dist/scanner/index.d.ts.map +0 -1
- package/dist/scanner/index.js +0 -15
- package/dist/scanner/index.js.map +0 -1
- package/dist/scanner/placeholder-detector.d.ts +0 -56
- package/dist/scanner/placeholder-detector.d.ts.map +0 -1
- package/dist/scanner/placeholder-detector.js +0 -220
- package/dist/scanner/placeholder-detector.js.map +0 -1
- package/dist/scanner/route-detector.d.ts +0 -100
- package/dist/scanner/route-detector.d.ts.map +0 -1
- package/dist/scanner/route-detector.js +0 -455
- package/dist/scanner/route-detector.js.map +0 -1
- package/dist/scanner/scoring.d.ts +0 -67
- package/dist/scanner/scoring.d.ts.map +0 -1
- package/dist/scanner/scoring.js +0 -284
- package/dist/scanner/scoring.js.map +0 -1
- package/dist/ship-baseline.d.ts +0 -56
- package/dist/ship-baseline.d.ts.map +0 -1
- package/dist/ship-baseline.js +0 -194
- package/dist/ship-baseline.js.map +0 -1
- package/dist/ship-config.d.ts +0 -91
- package/dist/ship-config.d.ts.map +0 -1
- package/dist/ship-config.js +0 -133
- package/dist/ship-config.js.map +0 -1
- package/dist/ship-data-loader.d.ts +0 -70
- package/dist/ship-data-loader.d.ts.map +0 -1
- package/dist/ship-data-loader.js +0 -301
- package/dist/ship-data-loader.js.map +0 -1
- package/dist/utils/ai-helpers.d.ts +0 -72
- package/dist/utils/ai-helpers.d.ts.map +0 -1
- package/dist/utils/ai-helpers.js +0 -339
- package/dist/utils/ai-helpers.js.map +0 -1
- package/dist/utils/validation.d.ts +0 -34
- package/dist/utils/validation.d.ts.map +0 -1
- package/dist/utils/validation.js +0 -160
- package/dist/utils/validation.js.map +0 -1
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* CI Workflow Generator
|
|
3
3
|
* Generates working GitHub Actions workflows with SARIF upload support
|
|
4
4
|
*/
|
|
5
|
-
import type {
|
|
5
|
+
import type { VibecheckConfig } from './templates';
|
|
6
6
|
export interface CIGeneratorOptions {
|
|
7
7
|
projectPath: string;
|
|
8
|
-
config:
|
|
8
|
+
config: VibecheckConfig;
|
|
9
9
|
provider?: 'github' | 'gitlab' | 'azure' | 'bitbucket';
|
|
10
10
|
}
|
|
11
11
|
export interface CIGeneratorResult {
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* Git Hooks Installer
|
|
3
3
|
* Installs and configures husky or lefthook for pre-commit/pre-push hooks
|
|
4
4
|
*/
|
|
5
|
-
import type {
|
|
5
|
+
import type { VibecheckConfig } from './templates';
|
|
6
6
|
export type HookRunner = 'husky' | 'lefthook';
|
|
7
7
|
export interface HooksInstallerOptions {
|
|
8
8
|
projectPath: string;
|
|
9
|
-
config:
|
|
9
|
+
config: VibecheckConfig;
|
|
10
10
|
runner?: HookRunner;
|
|
11
11
|
preCommit?: boolean;
|
|
12
12
|
prePush?: boolean;
|
package/dist/init/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Init Module - Enterprise-grade project initialization
|
|
3
3
|
*/
|
|
4
4
|
export { detectFramework, formatFrameworkName, type DetectedFramework, type FrameworkDetectionResult } from './detect-framework';
|
|
5
|
-
export { getTemplate, validateConfig, mergeWithFrameworkDefaults, getTemplateChoices,
|
|
5
|
+
export { getTemplate, validateConfig, mergeWithFrameworkDefaults, getTemplateChoices, VibecheckConfigSchema, type VibecheckConfig, type GuardrailConfig, type TemplateType, type TemplateDefinition, } from './templates';
|
|
6
6
|
export { generateCIWorkflow, getCIProviderFromProject, type CIGeneratorOptions, type CIGeneratorResult } from './ci-generator';
|
|
7
7
|
export { installHooks, getRecommendedRunner, type HooksInstallerOptions, type HooksInstallerResult, type HookRunner } from './hooks-installer';
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/init/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/init/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,KAAK,iBAAiB,EAAE,KAAK,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AACjI,OAAO,EACL,WAAW,EACX,cAAc,EACd,0BAA0B,EAC1B,kBAAkB,EAClB,qBAAqB,EACrB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,kBAAkB,GACxB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,KAAK,kBAAkB,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC/H,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,KAAK,qBAAqB,EAAE,KAAK,oBAAoB,EAAE,KAAK,UAAU,EAAE,MAAM,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/init/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,KAAK,iBAAiB,EAAE,KAAK,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AACjI,OAAO,EACL,WAAW,EACX,cAAc,EACd,0BAA0B,EAC1B,kBAAkB,EAClB,qBAAqB,EACrB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,kBAAkB,GACxB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,KAAK,kBAAkB,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC/H,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,KAAK,qBAAqB,EAAE,KAAK,oBAAoB,EAAE,KAAK,UAAU,EAAE,MAAM,mBAAmB,CAAC"}
|
package/dist/init/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Init Module - Enterprise-grade project initialization
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.getRecommendedRunner = exports.installHooks = exports.getCIProviderFromProject = exports.generateCIWorkflow = exports.
|
|
6
|
+
exports.getRecommendedRunner = exports.installHooks = exports.getCIProviderFromProject = exports.generateCIWorkflow = exports.VibecheckConfigSchema = exports.getTemplateChoices = exports.mergeWithFrameworkDefaults = exports.validateConfig = exports.getTemplate = exports.formatFrameworkName = exports.detectFramework = void 0;
|
|
7
7
|
var detect_framework_1 = require("./detect-framework");
|
|
8
8
|
Object.defineProperty(exports, "detectFramework", { enumerable: true, get: function () { return detect_framework_1.detectFramework; } });
|
|
9
9
|
Object.defineProperty(exports, "formatFrameworkName", { enumerable: true, get: function () { return detect_framework_1.formatFrameworkName; } });
|
|
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "getTemplate", { enumerable: true, get: function
|
|
|
12
12
|
Object.defineProperty(exports, "validateConfig", { enumerable: true, get: function () { return templates_1.validateConfig; } });
|
|
13
13
|
Object.defineProperty(exports, "mergeWithFrameworkDefaults", { enumerable: true, get: function () { return templates_1.mergeWithFrameworkDefaults; } });
|
|
14
14
|
Object.defineProperty(exports, "getTemplateChoices", { enumerable: true, get: function () { return templates_1.getTemplateChoices; } });
|
|
15
|
-
Object.defineProperty(exports, "
|
|
15
|
+
Object.defineProperty(exports, "VibecheckConfigSchema", { enumerable: true, get: function () { return templates_1.VibecheckConfigSchema; } });
|
|
16
16
|
var ci_generator_1 = require("./ci-generator");
|
|
17
17
|
Object.defineProperty(exports, "generateCIWorkflow", { enumerable: true, get: function () { return ci_generator_1.generateCIWorkflow; } });
|
|
18
18
|
Object.defineProperty(exports, "getCIProviderFromProject", { enumerable: true, get: function () { return ci_generator_1.getCIProviderFromProject; } });
|
package/dist/init/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/init/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,uDAAiI;AAAxH,mHAAA,eAAe,OAAA;AAAE,uHAAA,mBAAmB,OAAA;AAC7C,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/init/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,uDAAiI;AAAxH,mHAAA,eAAe,OAAA;AAAE,uHAAA,mBAAmB,OAAA;AAC7C,yCAUqB;AATnB,wGAAA,WAAW,OAAA;AACX,2GAAA,cAAc,OAAA;AACd,uHAAA,0BAA0B,OAAA;AAC1B,+GAAA,kBAAkB,OAAA;AAClB,kHAAA,qBAAqB,OAAA;AAMvB,+CAA+H;AAAtH,kHAAA,kBAAkB,OAAA;AAAE,wHAAA,wBAAwB,OAAA;AACrD,qDAA+I;AAAtI,+GAAA,YAAY,OAAA;AAAE,uHAAA,oBAAoB,OAAA"}
|
package/dist/init/templates.d.ts
CHANGED
|
@@ -270,60 +270,11 @@ export declare const VibecheckConfigSchema: z.ZodObject<{
|
|
|
270
270
|
}>>;
|
|
271
271
|
}, "strip", z.ZodTypeAny, {
|
|
272
272
|
version?: string;
|
|
273
|
-
template?: "enterprise" | "startup" | "oss";
|
|
274
|
-
framework?: string;
|
|
275
|
-
scans?: {
|
|
276
|
-
vulnerabilities?: {
|
|
277
|
-
enabled?: boolean;
|
|
278
|
-
threshold?: "critical" | "high" | "medium" | "low";
|
|
279
|
-
excludePatterns?: string[];
|
|
280
|
-
};
|
|
281
|
-
secrets?: {
|
|
282
|
-
enabled?: boolean;
|
|
283
|
-
threshold?: "critical" | "high" | "medium" | "low";
|
|
284
|
-
excludePatterns?: string[];
|
|
285
|
-
};
|
|
286
|
-
compliance?: {
|
|
287
|
-
enabled?: boolean;
|
|
288
|
-
frameworks?: ("soc2" | "gdpr" | "hipaa" | "pci" | "iso27001" | "nist")[];
|
|
289
|
-
autoEvidence?: boolean;
|
|
290
|
-
};
|
|
291
|
-
sbom?: {
|
|
292
|
-
enabled?: boolean;
|
|
293
|
-
};
|
|
294
|
-
};
|
|
295
|
-
gating?: {
|
|
296
|
-
enabled?: boolean;
|
|
297
|
-
blockOnCritical?: boolean;
|
|
298
|
-
blockOnHigh?: boolean;
|
|
299
|
-
baselineEnabled?: boolean;
|
|
300
|
-
allowlistEnabled?: boolean;
|
|
301
|
-
};
|
|
302
273
|
output?: {
|
|
303
274
|
format?: "json" | "sarif" | "table" | "markdown";
|
|
304
275
|
sarifUpload?: boolean;
|
|
305
276
|
badgeGeneration?: boolean;
|
|
306
277
|
};
|
|
307
|
-
ci?: {
|
|
308
|
-
enabled?: boolean;
|
|
309
|
-
sarifUpload?: boolean;
|
|
310
|
-
provider?: "github" | "gitlab" | "azure" | "bitbucket";
|
|
311
|
-
runOnPush?: boolean;
|
|
312
|
-
runOnPR?: boolean;
|
|
313
|
-
};
|
|
314
|
-
hooks?: {
|
|
315
|
-
enabled?: boolean;
|
|
316
|
-
runner?: "husky" | "lefthook";
|
|
317
|
-
preCommit?: boolean;
|
|
318
|
-
prePush?: boolean;
|
|
319
|
-
};
|
|
320
|
-
noise?: {
|
|
321
|
-
suppressTestFiles?: boolean;
|
|
322
|
-
suppressLowConfidence?: boolean;
|
|
323
|
-
minEntropy?: number;
|
|
324
|
-
};
|
|
325
|
-
}, {
|
|
326
|
-
version?: string;
|
|
327
278
|
template?: "enterprise" | "startup" | "oss";
|
|
328
279
|
framework?: string;
|
|
329
280
|
scans?: {
|
|
@@ -353,11 +304,6 @@ export declare const VibecheckConfigSchema: z.ZodObject<{
|
|
|
353
304
|
baselineEnabled?: boolean;
|
|
354
305
|
allowlistEnabled?: boolean;
|
|
355
306
|
};
|
|
356
|
-
output?: {
|
|
357
|
-
format?: "json" | "sarif" | "table" | "markdown";
|
|
358
|
-
sarifUpload?: boolean;
|
|
359
|
-
badgeGeneration?: boolean;
|
|
360
|
-
};
|
|
361
307
|
ci?: {
|
|
362
308
|
enabled?: boolean;
|
|
363
309
|
sarifUpload?: boolean;
|
|
@@ -376,235 +322,13 @@ export declare const VibecheckConfigSchema: z.ZodObject<{
|
|
|
376
322
|
suppressLowConfidence?: boolean;
|
|
377
323
|
minEntropy?: number;
|
|
378
324
|
};
|
|
379
|
-
}
|
|
380
|
-
export type VibecheckConfig = z.infer<typeof VibecheckConfigSchema>;
|
|
381
|
-
export type GuardrailConfig = VibecheckConfig;
|
|
382
|
-
export declare const GuardrailConfigSchema: z.ZodObject<{
|
|
383
|
-
version: z.ZodString;
|
|
384
|
-
template: z.ZodOptional<z.ZodEnum<["startup", "enterprise", "oss"]>>;
|
|
385
|
-
framework: z.ZodOptional<z.ZodString>;
|
|
386
|
-
scans: z.ZodObject<{
|
|
387
|
-
secrets: z.ZodObject<{
|
|
388
|
-
enabled: z.ZodBoolean;
|
|
389
|
-
threshold: z.ZodOptional<z.ZodEnum<["critical", "high", "medium", "low"]>>;
|
|
390
|
-
excludePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
391
|
-
}, "strip", z.ZodTypeAny, {
|
|
392
|
-
enabled?: boolean;
|
|
393
|
-
threshold?: "critical" | "high" | "medium" | "low";
|
|
394
|
-
excludePatterns?: string[];
|
|
395
|
-
}, {
|
|
396
|
-
enabled?: boolean;
|
|
397
|
-
threshold?: "critical" | "high" | "medium" | "low";
|
|
398
|
-
excludePatterns?: string[];
|
|
399
|
-
}>;
|
|
400
|
-
vulnerabilities: z.ZodObject<{
|
|
401
|
-
enabled: z.ZodBoolean;
|
|
402
|
-
threshold: z.ZodOptional<z.ZodEnum<["critical", "high", "medium", "low"]>>;
|
|
403
|
-
excludePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
404
|
-
}, "strip", z.ZodTypeAny, {
|
|
405
|
-
enabled?: boolean;
|
|
406
|
-
threshold?: "critical" | "high" | "medium" | "low";
|
|
407
|
-
excludePatterns?: string[];
|
|
408
|
-
}, {
|
|
409
|
-
enabled?: boolean;
|
|
410
|
-
threshold?: "critical" | "high" | "medium" | "low";
|
|
411
|
-
excludePatterns?: string[];
|
|
412
|
-
}>;
|
|
413
|
-
compliance: z.ZodObject<{
|
|
414
|
-
enabled: z.ZodBoolean;
|
|
415
|
-
frameworks: z.ZodOptional<z.ZodArray<z.ZodEnum<["soc2", "gdpr", "hipaa", "pci", "iso27001", "nist"]>, "many">>;
|
|
416
|
-
autoEvidence: z.ZodOptional<z.ZodBoolean>;
|
|
417
|
-
}, "strip", z.ZodTypeAny, {
|
|
418
|
-
enabled?: boolean;
|
|
419
|
-
frameworks?: ("soc2" | "gdpr" | "hipaa" | "pci" | "iso27001" | "nist")[];
|
|
420
|
-
autoEvidence?: boolean;
|
|
421
|
-
}, {
|
|
422
|
-
enabled?: boolean;
|
|
423
|
-
frameworks?: ("soc2" | "gdpr" | "hipaa" | "pci" | "iso27001" | "nist")[];
|
|
424
|
-
autoEvidence?: boolean;
|
|
425
|
-
}>;
|
|
426
|
-
sbom: z.ZodOptional<z.ZodObject<{
|
|
427
|
-
enabled: z.ZodBoolean;
|
|
428
|
-
}, "strip", z.ZodTypeAny, {
|
|
429
|
-
enabled?: boolean;
|
|
430
|
-
}, {
|
|
431
|
-
enabled?: boolean;
|
|
432
|
-
}>>;
|
|
433
|
-
}, "strip", z.ZodTypeAny, {
|
|
434
|
-
vulnerabilities?: {
|
|
435
|
-
enabled?: boolean;
|
|
436
|
-
threshold?: "critical" | "high" | "medium" | "low";
|
|
437
|
-
excludePatterns?: string[];
|
|
438
|
-
};
|
|
439
|
-
secrets?: {
|
|
440
|
-
enabled?: boolean;
|
|
441
|
-
threshold?: "critical" | "high" | "medium" | "low";
|
|
442
|
-
excludePatterns?: string[];
|
|
443
|
-
};
|
|
444
|
-
compliance?: {
|
|
445
|
-
enabled?: boolean;
|
|
446
|
-
frameworks?: ("soc2" | "gdpr" | "hipaa" | "pci" | "iso27001" | "nist")[];
|
|
447
|
-
autoEvidence?: boolean;
|
|
448
|
-
};
|
|
449
|
-
sbom?: {
|
|
450
|
-
enabled?: boolean;
|
|
451
|
-
};
|
|
452
|
-
}, {
|
|
453
|
-
vulnerabilities?: {
|
|
454
|
-
enabled?: boolean;
|
|
455
|
-
threshold?: "critical" | "high" | "medium" | "low";
|
|
456
|
-
excludePatterns?: string[];
|
|
457
|
-
};
|
|
458
|
-
secrets?: {
|
|
459
|
-
enabled?: boolean;
|
|
460
|
-
threshold?: "critical" | "high" | "medium" | "low";
|
|
461
|
-
excludePatterns?: string[];
|
|
462
|
-
};
|
|
463
|
-
compliance?: {
|
|
464
|
-
enabled?: boolean;
|
|
465
|
-
frameworks?: ("soc2" | "gdpr" | "hipaa" | "pci" | "iso27001" | "nist")[];
|
|
466
|
-
autoEvidence?: boolean;
|
|
467
|
-
};
|
|
468
|
-
sbom?: {
|
|
469
|
-
enabled?: boolean;
|
|
470
|
-
};
|
|
471
|
-
}>;
|
|
472
|
-
gating: z.ZodObject<{
|
|
473
|
-
enabled: z.ZodBoolean;
|
|
474
|
-
blockOnCritical: z.ZodOptional<z.ZodBoolean>;
|
|
475
|
-
blockOnHigh: z.ZodOptional<z.ZodBoolean>;
|
|
476
|
-
baselineEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
477
|
-
allowlistEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
478
|
-
}, "strip", z.ZodTypeAny, {
|
|
479
|
-
enabled?: boolean;
|
|
480
|
-
blockOnCritical?: boolean;
|
|
481
|
-
blockOnHigh?: boolean;
|
|
482
|
-
baselineEnabled?: boolean;
|
|
483
|
-
allowlistEnabled?: boolean;
|
|
484
|
-
}, {
|
|
485
|
-
enabled?: boolean;
|
|
486
|
-
blockOnCritical?: boolean;
|
|
487
|
-
blockOnHigh?: boolean;
|
|
488
|
-
baselineEnabled?: boolean;
|
|
489
|
-
allowlistEnabled?: boolean;
|
|
490
|
-
}>;
|
|
491
|
-
output: z.ZodObject<{
|
|
492
|
-
format: z.ZodEnum<["table", "json", "sarif", "markdown"]>;
|
|
493
|
-
sarifUpload: z.ZodOptional<z.ZodBoolean>;
|
|
494
|
-
badgeGeneration: z.ZodOptional<z.ZodBoolean>;
|
|
495
|
-
}, "strip", z.ZodTypeAny, {
|
|
496
|
-
format?: "json" | "sarif" | "table" | "markdown";
|
|
497
|
-
sarifUpload?: boolean;
|
|
498
|
-
badgeGeneration?: boolean;
|
|
499
|
-
}, {
|
|
500
|
-
format?: "json" | "sarif" | "table" | "markdown";
|
|
501
|
-
sarifUpload?: boolean;
|
|
502
|
-
badgeGeneration?: boolean;
|
|
503
|
-
}>;
|
|
504
|
-
ci: z.ZodOptional<z.ZodObject<{
|
|
505
|
-
enabled: z.ZodBoolean;
|
|
506
|
-
provider: z.ZodOptional<z.ZodEnum<["github", "gitlab", "azure", "bitbucket"]>>;
|
|
507
|
-
runOnPush: z.ZodOptional<z.ZodBoolean>;
|
|
508
|
-
runOnPR: z.ZodOptional<z.ZodBoolean>;
|
|
509
|
-
sarifUpload: z.ZodOptional<z.ZodBoolean>;
|
|
510
|
-
}, "strip", z.ZodTypeAny, {
|
|
511
|
-
enabled?: boolean;
|
|
512
|
-
sarifUpload?: boolean;
|
|
513
|
-
provider?: "github" | "gitlab" | "azure" | "bitbucket";
|
|
514
|
-
runOnPush?: boolean;
|
|
515
|
-
runOnPR?: boolean;
|
|
516
|
-
}, {
|
|
517
|
-
enabled?: boolean;
|
|
518
|
-
sarifUpload?: boolean;
|
|
519
|
-
provider?: "github" | "gitlab" | "azure" | "bitbucket";
|
|
520
|
-
runOnPush?: boolean;
|
|
521
|
-
runOnPR?: boolean;
|
|
522
|
-
}>>;
|
|
523
|
-
hooks: z.ZodOptional<z.ZodObject<{
|
|
524
|
-
enabled: z.ZodBoolean;
|
|
525
|
-
runner: z.ZodOptional<z.ZodEnum<["husky", "lefthook"]>>;
|
|
526
|
-
preCommit: z.ZodOptional<z.ZodBoolean>;
|
|
527
|
-
prePush: z.ZodOptional<z.ZodBoolean>;
|
|
528
|
-
}, "strip", z.ZodTypeAny, {
|
|
529
|
-
enabled?: boolean;
|
|
530
|
-
runner?: "husky" | "lefthook";
|
|
531
|
-
preCommit?: boolean;
|
|
532
|
-
prePush?: boolean;
|
|
533
|
-
}, {
|
|
534
|
-
enabled?: boolean;
|
|
535
|
-
runner?: "husky" | "lefthook";
|
|
536
|
-
preCommit?: boolean;
|
|
537
|
-
prePush?: boolean;
|
|
538
|
-
}>>;
|
|
539
|
-
noise: z.ZodOptional<z.ZodObject<{
|
|
540
|
-
suppressTestFiles: z.ZodOptional<z.ZodBoolean>;
|
|
541
|
-
suppressLowConfidence: z.ZodOptional<z.ZodBoolean>;
|
|
542
|
-
minEntropy: z.ZodOptional<z.ZodNumber>;
|
|
543
|
-
}, "strip", z.ZodTypeAny, {
|
|
544
|
-
suppressTestFiles?: boolean;
|
|
545
|
-
suppressLowConfidence?: boolean;
|
|
546
|
-
minEntropy?: number;
|
|
547
|
-
}, {
|
|
548
|
-
suppressTestFiles?: boolean;
|
|
549
|
-
suppressLowConfidence?: boolean;
|
|
550
|
-
minEntropy?: number;
|
|
551
|
-
}>>;
|
|
552
|
-
}, "strip", z.ZodTypeAny, {
|
|
325
|
+
}, {
|
|
553
326
|
version?: string;
|
|
554
|
-
template?: "enterprise" | "startup" | "oss";
|
|
555
|
-
framework?: string;
|
|
556
|
-
scans?: {
|
|
557
|
-
vulnerabilities?: {
|
|
558
|
-
enabled?: boolean;
|
|
559
|
-
threshold?: "critical" | "high" | "medium" | "low";
|
|
560
|
-
excludePatterns?: string[];
|
|
561
|
-
};
|
|
562
|
-
secrets?: {
|
|
563
|
-
enabled?: boolean;
|
|
564
|
-
threshold?: "critical" | "high" | "medium" | "low";
|
|
565
|
-
excludePatterns?: string[];
|
|
566
|
-
};
|
|
567
|
-
compliance?: {
|
|
568
|
-
enabled?: boolean;
|
|
569
|
-
frameworks?: ("soc2" | "gdpr" | "hipaa" | "pci" | "iso27001" | "nist")[];
|
|
570
|
-
autoEvidence?: boolean;
|
|
571
|
-
};
|
|
572
|
-
sbom?: {
|
|
573
|
-
enabled?: boolean;
|
|
574
|
-
};
|
|
575
|
-
};
|
|
576
|
-
gating?: {
|
|
577
|
-
enabled?: boolean;
|
|
578
|
-
blockOnCritical?: boolean;
|
|
579
|
-
blockOnHigh?: boolean;
|
|
580
|
-
baselineEnabled?: boolean;
|
|
581
|
-
allowlistEnabled?: boolean;
|
|
582
|
-
};
|
|
583
327
|
output?: {
|
|
584
328
|
format?: "json" | "sarif" | "table" | "markdown";
|
|
585
329
|
sarifUpload?: boolean;
|
|
586
330
|
badgeGeneration?: boolean;
|
|
587
331
|
};
|
|
588
|
-
ci?: {
|
|
589
|
-
enabled?: boolean;
|
|
590
|
-
sarifUpload?: boolean;
|
|
591
|
-
provider?: "github" | "gitlab" | "azure" | "bitbucket";
|
|
592
|
-
runOnPush?: boolean;
|
|
593
|
-
runOnPR?: boolean;
|
|
594
|
-
};
|
|
595
|
-
hooks?: {
|
|
596
|
-
enabled?: boolean;
|
|
597
|
-
runner?: "husky" | "lefthook";
|
|
598
|
-
preCommit?: boolean;
|
|
599
|
-
prePush?: boolean;
|
|
600
|
-
};
|
|
601
|
-
noise?: {
|
|
602
|
-
suppressTestFiles?: boolean;
|
|
603
|
-
suppressLowConfidence?: boolean;
|
|
604
|
-
minEntropy?: number;
|
|
605
|
-
};
|
|
606
|
-
}, {
|
|
607
|
-
version?: string;
|
|
608
332
|
template?: "enterprise" | "startup" | "oss";
|
|
609
333
|
framework?: string;
|
|
610
334
|
scans?: {
|
|
@@ -634,11 +358,6 @@ export declare const GuardrailConfigSchema: z.ZodObject<{
|
|
|
634
358
|
baselineEnabled?: boolean;
|
|
635
359
|
allowlistEnabled?: boolean;
|
|
636
360
|
};
|
|
637
|
-
output?: {
|
|
638
|
-
format?: "json" | "sarif" | "table" | "markdown";
|
|
639
|
-
sarifUpload?: boolean;
|
|
640
|
-
badgeGeneration?: boolean;
|
|
641
|
-
};
|
|
642
361
|
ci?: {
|
|
643
362
|
enabled?: boolean;
|
|
644
363
|
sarifUpload?: boolean;
|
|
@@ -658,21 +377,23 @@ export declare const GuardrailConfigSchema: z.ZodObject<{
|
|
|
658
377
|
minEntropy?: number;
|
|
659
378
|
};
|
|
660
379
|
}>;
|
|
380
|
+
export type VibecheckConfig = z.infer<typeof VibecheckConfigSchema>;
|
|
381
|
+
export type GuardrailConfig = VibecheckConfig;
|
|
661
382
|
export interface TemplateDefinition {
|
|
662
383
|
name: string;
|
|
663
384
|
description: string;
|
|
664
|
-
config:
|
|
385
|
+
config: VibecheckConfig;
|
|
665
386
|
}
|
|
666
387
|
export declare const TEMPLATES: Record<TemplateType, TemplateDefinition>;
|
|
667
388
|
export declare function getTemplate(templateType: TemplateType): TemplateDefinition;
|
|
668
389
|
export declare function validateConfig(config: unknown): {
|
|
669
390
|
success: true;
|
|
670
|
-
data:
|
|
391
|
+
data: VibecheckConfig;
|
|
671
392
|
} | {
|
|
672
393
|
success: false;
|
|
673
394
|
error: z.ZodError;
|
|
674
395
|
};
|
|
675
|
-
export declare function mergeWithFrameworkDefaults(config:
|
|
396
|
+
export declare function mergeWithFrameworkDefaults(config: VibecheckConfig, framework: string, recommendedScans: string[]): VibecheckConfig;
|
|
676
397
|
export declare function getTemplateChoices(): Array<{
|
|
677
398
|
name: string;
|
|
678
399
|
value: TemplateType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../src/init/templates.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,YAAY,6CAA2C,CAAC;AACrE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;EAI3B,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;EAIjC,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;EAM7B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;EAI7B,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;EAMzB,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;EAK5B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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mBhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC;AAE9C,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,eAAe,CAAC;CACzB;AA8HD,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,YAAY,EAAE,kBAAkB,CAI9D,CAAC;AAEF,wBAAgB,WAAW,CAAC,YAAY,EAAE,YAAY,GAAG,kBAAkB,CAE1E;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,OAAO,GAAG;IAAE,OAAO,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,eAAe,CAAA;CAAE,GAAG;IAAE,OAAO,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAA;CAAE,CAMhI;AAED,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,eAAe,EACvB,SAAS,EAAE,MAAM,EACjB,gBAAgB,EAAE,MAAM,EAAE,GACzB,eAAe,CAkBjB;AAED,wBAAgB,kBAAkB,IAAI,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,YAAY,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAAC,CAkBtG"}
|
package/dist/init/templates.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Defines startup/enterprise/oss templates with Zod schema validation
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.TEMPLATES = exports.
|
|
7
|
+
exports.TEMPLATES = exports.VibecheckConfigSchema = exports.HooksConfigSchema = exports.CIConfigSchema = exports.OutputConfigSchema = exports.GatingConfigSchema = exports.ComplianceConfigSchema = exports.ScanConfigSchema = exports.TemplateType = void 0;
|
|
8
8
|
exports.getTemplate = getTemplate;
|
|
9
9
|
exports.validateConfig = validateConfig;
|
|
10
10
|
exports.mergeWithFrameworkDefaults = mergeWithFrameworkDefaults;
|
|
@@ -66,7 +66,6 @@ exports.VibecheckConfigSchema = zod_1.z.object({
|
|
|
66
66
|
minEntropy: zod_1.z.number().optional(),
|
|
67
67
|
}).optional(),
|
|
68
68
|
});
|
|
69
|
-
exports.GuardrailConfigSchema = exports.VibecheckConfigSchema;
|
|
70
69
|
const STARTUP_TEMPLATE = {
|
|
71
70
|
name: 'Startup',
|
|
72
71
|
description: 'Fast scans, minimal compliance, friendly noise thresholds - ideal for early-stage teams',
|
|
@@ -197,7 +196,7 @@ function getTemplate(templateType) {
|
|
|
197
196
|
return exports.TEMPLATES[templateType];
|
|
198
197
|
}
|
|
199
198
|
function validateConfig(config) {
|
|
200
|
-
const result = exports.
|
|
199
|
+
const result = exports.VibecheckConfigSchema.safeParse(config);
|
|
201
200
|
if (result.success) {
|
|
202
201
|
return { success: true, data: result.data };
|
|
203
202
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates.js","sourceRoot":"","sources":["../../src/init/templates.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;
|
|
1
|
+
{"version":3,"file":"templates.js","sourceRoot":"","sources":["../../src/init/templates.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAiNH,kCAEC;AAED,wCAMC;AAED,gEAsBC;AAED,gDAkBC;AArQD,6BAAwB;AAEX,QAAA,YAAY,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,YAAY,EAAE,KAAK,CAAC,CAAC,CAAC;AAGxD,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;IACpB,SAAS,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC,QAAQ,EAAE;IACnE,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IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAgB,kBAAkB;IAChC,OAAO;QACL;YACE,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,SAAS;YAChB,WAAW,EAAE,gBAAgB,CAAC,WAAW;SAC1C;QACD;YACE,IAAI,EAAE,YAAY;YAClB,KAAK,EAAE,YAAY;YACnB,WAAW,EAAE,mBAAmB,CAAC,WAAW;SAC7C;QACD;YACE,IAAI,EAAE,KAAK;YACX,KAAK,EAAE,KAAK;YACZ,WAAW,EAAE,YAAY,CAAC,WAAW;SACtC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* All CLI commands with --json flag use this unified schema
|
|
5
5
|
* Version: 1.0
|
|
6
6
|
*/
|
|
7
|
-
export interface
|
|
7
|
+
export interface VibecheckJsonOutput {
|
|
8
8
|
version: string;
|
|
9
9
|
schema: string;
|
|
10
10
|
timestamp: string;
|
|
@@ -30,7 +30,7 @@ export declare function createJsonOutput(command: string, success: boolean, exit
|
|
|
30
30
|
nextSteps?: string[];
|
|
31
31
|
}, metadata?: {
|
|
32
32
|
[key: string]: any;
|
|
33
|
-
}):
|
|
33
|
+
}): VibecheckJsonOutput;
|
|
34
34
|
/**
|
|
35
35
|
* Format scan results for JSON output
|
|
36
36
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibecheckai/cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"description": "Vibecheck CLI - Enterprise security scanning with interactive menu, arrow navigation, and auto-installation",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -25,6 +25,14 @@
|
|
|
25
25
|
"ora": "^8.0.0",
|
|
26
26
|
"zod": "^3.23.0"
|
|
27
27
|
},
|
|
28
|
+
"optionalDependencies": {
|
|
29
|
+
"@vibecheck/security": "workspace:*",
|
|
30
|
+
"@vibecheck/core": "workspace:*",
|
|
31
|
+
"@vibecheck/ship": "workspace:*",
|
|
32
|
+
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
33
|
+
"playwright": "^1.40.0",
|
|
34
|
+
"archiver": "^6.0.0"
|
|
35
|
+
},
|
|
28
36
|
"devDependencies": {
|
|
29
37
|
"@types/node": "^20.10.0",
|
|
30
38
|
"esbuild": ">=0.25.0",
|
|
@@ -50,10 +58,10 @@
|
|
|
50
58
|
"homepage": "https://vibecheckai.dev",
|
|
51
59
|
"repository": {
|
|
52
60
|
"type": "git",
|
|
53
|
-
"url": "git+https://github.com/
|
|
61
|
+
"url": "git+https://github.com/vibecheck-oss/vibecheck.git"
|
|
54
62
|
},
|
|
55
63
|
"bugs": {
|
|
56
|
-
"url": "https://github.com/
|
|
64
|
+
"url": "https://github.com/vibecheck-oss/vibecheck/issues"
|
|
57
65
|
},
|
|
58
66
|
"engines": {
|
|
59
67
|
"node": ">=18.0.0"
|