@maverick006/vibeguard 1.0.10 → 1.0.11
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/formatter.js +2 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/src/formatter.ts +2 -1
- package/src/index.ts +3 -3
package/dist/formatter.js
CHANGED
|
@@ -36,7 +36,8 @@ function padVisible(str, targetWidth) {
|
|
|
36
36
|
return str + ' '.repeat(diff);
|
|
37
37
|
}
|
|
38
38
|
function getGitInfo(cwd = process.cwd()) {
|
|
39
|
-
|
|
39
|
+
const resolvedCwd = path_1.default.resolve(cwd);
|
|
40
|
+
let name = path_1.default.basename(resolvedCwd);
|
|
40
41
|
let branch = 'main';
|
|
41
42
|
let commit = '4f2c1ab';
|
|
42
43
|
let remoteUrl = '';
|
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@ const program = new commander_1.Command();
|
|
|
17
17
|
program
|
|
18
18
|
.name('vibeguard')
|
|
19
19
|
.description('AI-Powered DevSecOps Orchestrator CLI')
|
|
20
|
-
.version('1.0.
|
|
20
|
+
.version('1.0.11');
|
|
21
21
|
program
|
|
22
22
|
.command('scan [path]')
|
|
23
23
|
.description('Run a security scan on the current directory or target path')
|
|
@@ -25,7 +25,7 @@ program
|
|
|
25
25
|
.option('--fix', 'Automatically generate AI remediation fixes and interactive diff')
|
|
26
26
|
.option('--ci', 'Run in non-interactive CI mode and exit with policy status code')
|
|
27
27
|
.action(async (targetPath, options) => {
|
|
28
|
-
const scanDir = targetPath || options.dir || process.cwd();
|
|
28
|
+
const scanDir = (0, path_1.resolve)(targetPath || options.dir || process.cwd());
|
|
29
29
|
const startTime = Date.now();
|
|
30
30
|
let hasSystemError = false;
|
|
31
31
|
// Use a minimal spinner if in CI mode, or bypass ora entirely if preferred.
|
package/package.json
CHANGED
package/src/formatter.ts
CHANGED
|
@@ -40,7 +40,8 @@ function padVisible(str: string, targetWidth: number): string {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
export function getGitInfo(cwd: string = process.cwd()) {
|
|
43
|
-
|
|
43
|
+
const resolvedCwd = path.resolve(cwd);
|
|
44
|
+
let name = path.basename(resolvedCwd);
|
|
44
45
|
let branch = 'main';
|
|
45
46
|
let commit = '4f2c1ab';
|
|
46
47
|
let remoteUrl = '';
|
package/src/index.ts
CHANGED
|
@@ -6,7 +6,7 @@ import ora from 'ora';
|
|
|
6
6
|
import { ContextualExplainer } from '@maverick006/ai-engine';
|
|
7
7
|
import { NormalizedFinding, Severity } from '@maverick006/types';
|
|
8
8
|
import { readFileSync, existsSync } from 'fs';
|
|
9
|
-
import { join } from 'path';
|
|
9
|
+
import { join, resolve } from 'path';
|
|
10
10
|
import { renderDashboard, calculateScore, getGitInfo } from './formatter';
|
|
11
11
|
|
|
12
12
|
const program = new Command();
|
|
@@ -14,7 +14,7 @@ const program = new Command();
|
|
|
14
14
|
program
|
|
15
15
|
.name('vibeguard')
|
|
16
16
|
.description('AI-Powered DevSecOps Orchestrator CLI')
|
|
17
|
-
.version('1.0.
|
|
17
|
+
.version('1.0.11');
|
|
18
18
|
|
|
19
19
|
program
|
|
20
20
|
.command('scan [path]')
|
|
@@ -23,7 +23,7 @@ program
|
|
|
23
23
|
.option('--fix', 'Automatically generate AI remediation fixes and interactive diff')
|
|
24
24
|
.option('--ci', 'Run in non-interactive CI mode and exit with policy status code')
|
|
25
25
|
.action(async (targetPath, options) => {
|
|
26
|
-
const scanDir = targetPath || options.dir || process.cwd();
|
|
26
|
+
const scanDir = resolve(targetPath || options.dir || process.cwd());
|
|
27
27
|
const startTime = Date.now();
|
|
28
28
|
let hasSystemError = false;
|
|
29
29
|
|