@safetnsr/vet 1.8.4 → 1.8.6

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.
@@ -160,18 +160,13 @@ export function checkConfig(cwd, ignore) {
160
160
  }
161
161
  }
162
162
  if (analyses.length === 0) {
163
- issues.push({
164
- severity: 'error',
165
- message: 'no AI agent config found — add CLAUDE.md, .cursorrules, or similar',
166
- fixable: true,
167
- fixHint: 'run vet init to generate agent config',
168
- });
163
+ // No agent config = not applicable, not a penalty
169
164
  return {
170
165
  name: 'config',
171
- score: 10,
166
+ score: 100,
172
167
  maxScore: 100,
173
- issues,
174
- summary: 'no agent configs — critically under-configured',
168
+ issues: [{ severity: 'info', message: 'no AI agent config found — run vet init to generate one', fixable: true, fixHint: 'run vet init' }],
169
+ summary: 'no agent configs (n/a)',
175
170
  };
176
171
  }
177
172
  // Aggregate scores from best config
@@ -16,6 +16,10 @@ function isAiFramework(cwd) {
16
16
  return true;
17
17
  if (Array.isArray(pkg.keywords) && pkg.keywords.some((k) => AI_PKG_KEYWORDS.has(k.toLowerCase())))
18
18
  return true;
19
+ // Check if any AI SDK is in dependencies
20
+ const allDeps = { ...pkg.dependencies, ...pkg.devDependencies };
21
+ if (aiDeps.some(d => allDeps[d]))
22
+ return true;
19
23
  }
20
24
  catch { /* skip */ }
21
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@safetnsr/vet",
3
- "version": "1.8.4",
3
+ "version": "1.8.6",
4
4
  "description": "vet your AI-generated code — one command, one score card, one letter grade",
5
5
  "type": "module",
6
6
  "bin": {