pinata-security-cli 0.1.3 → 0.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/dist/cli/index.js +3 -3
- package/dist/cli/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -3190,7 +3190,7 @@ function createScanner(categoryStore) {
|
|
|
3190
3190
|
}
|
|
3191
3191
|
|
|
3192
3192
|
// src/core/index.ts
|
|
3193
|
-
var VERSION = "0.1.
|
|
3193
|
+
var VERSION = "0.1.4";
|
|
3194
3194
|
|
|
3195
3195
|
// src/lib/index.ts
|
|
3196
3196
|
init_errors();
|
|
@@ -5502,7 +5502,7 @@ function getDefinitionsPath() {
|
|
|
5502
5502
|
}
|
|
5503
5503
|
var program = new Command();
|
|
5504
5504
|
program.name("pinata").description("AI-powered test coverage analysis and generation").version(VERSION);
|
|
5505
|
-
program.command("analyze [path]").description("Analyze codebase for test coverage gaps").option("-o, --output <format>", "Output format: terminal, json, markdown, sarif, html, junit-xml", "terminal").option("-d, --domains <domains>", "Filter to specific domains (comma-separated)").option("-s, --severity <level>", "Minimum severity: critical, high, medium, low", "low").option("-c, --confidence <level>", "Minimum confidence: high, medium, low", "
|
|
5505
|
+
program.command("analyze [path]").description("Analyze codebase for test coverage gaps").option("-o, --output <format>", "Output format: terminal, json, markdown, sarif, html, junit-xml", "terminal").option("-d, --domains <domains>", "Filter to specific domains (comma-separated)").option("-s, --severity <level>", "Minimum severity: critical, high, medium, low", "low").option("-c, --confidence <level>", "Minimum confidence: high, medium, low", "high").option("--fail-on <level>", "Exit non-zero if gaps at level: critical, high, medium").option("--exclude <dirs>", "Directories to exclude (comma-separated)").option("-v, --verbose", "Verbose output").option("-q, --quiet", "Quiet mode (errors only)").action(async (targetPath, options) => {
|
|
5506
5506
|
const isQuiet = Boolean(options["quiet"]);
|
|
5507
5507
|
const isVerbose = Boolean(options["verbose"]);
|
|
5508
5508
|
if (isQuiet) {
|
|
@@ -5527,7 +5527,7 @@ program.command("analyze [path]").description("Analyze codebase for test coverag
|
|
|
5527
5527
|
process.exit(1);
|
|
5528
5528
|
}
|
|
5529
5529
|
const validConfidences = ["high", "medium", "low"];
|
|
5530
|
-
const minConfidence = String(options["confidence"] ?? "
|
|
5530
|
+
const minConfidence = String(options["confidence"] ?? "high");
|
|
5531
5531
|
if (!validConfidences.includes(minConfidence)) {
|
|
5532
5532
|
console.error(formatError(new Error(`Invalid confidence: ${minConfidence}. Use: high, medium, low`)));
|
|
5533
5533
|
process.exit(1);
|