@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.
- package/dist/checks/config.js +4 -9
- package/dist/checks/models.js +4 -0
- package/package.json +1 -1
package/dist/checks/config.js
CHANGED
|
@@ -160,18 +160,13 @@ export function checkConfig(cwd, ignore) {
|
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
if (analyses.length === 0) {
|
|
163
|
-
|
|
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:
|
|
166
|
+
score: 100,
|
|
172
167
|
maxScore: 100,
|
|
173
|
-
issues,
|
|
174
|
-
summary: 'no agent configs
|
|
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
|
package/dist/checks/models.js
CHANGED
|
@@ -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
|
}
|