ai-warden 0.4.0 → 0.4.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/cli.js +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-warden",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "AI security scanner - Detect prompt injection attacks before they reach production",
5
5
  "main": "src/scanner.js",
6
6
  "bin": {
package/src/cli.js CHANGED
@@ -148,7 +148,9 @@ async function scanCommand(targetPath, options = {}) {
148
148
 
149
149
  if (options.verbose && activeFindings.length > 0) {
150
150
  activeFindings.slice(0, 3).forEach(f => {
151
- console.log(` - ${f.severity}: ${f.description}`);
151
+ const name = f.name || f.id || 'Unknown';
152
+ const match = f.match ? ` ("${f.match.substring(0, 40)}...")` : '';
153
+ console.log(` - ${f.severity}: ${name}${match}`);
152
154
  });
153
155
  }
154
156