@kevinrabun/judges 3.119.0 → 3.121.0
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/README.md +1 -1
- package/dist/api.d.ts +2 -1
- package/dist/api.js +3 -1
- package/dist/cli-dispatch.d.ts +7 -0
- package/dist/cli-dispatch.js +654 -0
- package/dist/cli-formatters.d.ts +6 -0
- package/dist/cli-formatters.js +186 -0
- package/dist/cli.js +69 -4159
- package/dist/commands/baseline.js +2 -42
- package/dist/commands/coverage.js +3 -39
- package/dist/commands/diff.js +2 -38
- package/dist/commands/fix-pr.js +2 -23
- package/dist/commands/fix.js +3 -27
- package/dist/commands/llm-benchmark.d.ts +7 -0
- package/dist/commands/llm-benchmark.js +27 -1
- package/dist/commands/quality-gate.js +1 -12
- package/dist/commands/review-parallel.js +1 -19
- package/dist/commands/review.js +2 -33
- package/dist/commands/rule-test.js +1 -15
- package/dist/commands/tune.js +2 -29
- package/dist/commands/watch.js +3 -42
- package/dist/evaluators/hallucination-detection.js +343 -0
- package/dist/evaluators/index.d.ts +2 -11
- package/dist/evaluators/index.js +3 -181
- package/dist/evaluators/security.js +226 -2
- package/dist/evaluators/suppressions.d.ts +49 -0
- package/dist/evaluators/suppressions.js +185 -0
- package/dist/ext-to-lang.d.ts +16 -0
- package/dist/ext-to-lang.js +60 -0
- package/dist/github-app.d.ts +1 -3
- package/dist/github-app.js +2 -34
- package/dist/parallel.js +2 -14
- package/dist/tools/register-evaluation.js +2 -29
- package/package.json +1 -1
- package/server.json +2 -2
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
// ──────────────────────────────────────────────────────────────────────────────
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { readFileSync, existsSync } from "fs";
|
|
6
|
-
import { extname } from "path";
|
|
7
6
|
import { JUDGES, getJudge, getJudgeSummaries } from "../judges/index.js";
|
|
8
7
|
import { evaluateWithJudge, evaluateWithTribunal, evaluateWithTribunalStreaming, formatVerdictAsMarkdown, formatEvaluationAsMarkdown, } from "../evaluators/index.js";
|
|
9
8
|
import { evaluateCodeV2, evaluateProjectV2, getSupportedPolicyProfiles } from "../evaluators/v2.js";
|
|
@@ -408,35 +407,9 @@ function registerEvaluateV2(server) {
|
|
|
408
407
|
});
|
|
409
408
|
}
|
|
410
409
|
// ─── evaluate_file ───────────────────────────────────────────────────────────
|
|
411
|
-
|
|
412
|
-
".ts": "typescript",
|
|
413
|
-
".tsx": "typescript",
|
|
414
|
-
".js": "javascript",
|
|
415
|
-
".jsx": "javascript",
|
|
416
|
-
".mjs": "javascript",
|
|
417
|
-
".cjs": "javascript",
|
|
418
|
-
".py": "python",
|
|
419
|
-
".rs": "rust",
|
|
420
|
-
".go": "go",
|
|
421
|
-
".java": "java",
|
|
422
|
-
".cs": "csharp",
|
|
423
|
-
".cpp": "cpp",
|
|
424
|
-
".cc": "cpp",
|
|
425
|
-
".h": "c",
|
|
426
|
-
".hpp": "cpp",
|
|
427
|
-
".ps1": "powershell",
|
|
428
|
-
".psm1": "powershell",
|
|
429
|
-
".bicep": "bicep",
|
|
430
|
-
".tf": "terraform",
|
|
431
|
-
".yaml": "yaml",
|
|
432
|
-
".yml": "yaml",
|
|
433
|
-
};
|
|
410
|
+
import { detectLanguageFromPath as _detectLangShared } from "../ext-to-lang.js";
|
|
434
411
|
function detectLanguageFromPath(filePath) {
|
|
435
|
-
|
|
436
|
-
if (lower.endsWith("dockerfile") || lower.includes("dockerfile."))
|
|
437
|
-
return "dockerfile";
|
|
438
|
-
const ext = extname(lower);
|
|
439
|
-
return EXT_TO_LANG[ext] || "typescript";
|
|
412
|
+
return _detectLangShared(filePath) ?? "typescript";
|
|
440
413
|
}
|
|
441
414
|
function registerEvaluateFile(server) {
|
|
442
415
|
server.tool("evaluate_file", `Read a file from disk and submit it to the full Judges Panel for evaluation. Automatically detects the programming language from the file extension. All ${JUDGES.length} judges review the code with pattern detection and deep contextual analysis.`, {
|
package/package.json
CHANGED
package/server.json
CHANGED
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
"url": "https://github.com/kevinrabun/judges",
|
|
8
8
|
"source": "github"
|
|
9
9
|
},
|
|
10
|
-
"version": "3.
|
|
10
|
+
"version": "3.121.0",
|
|
11
11
|
"packages": [
|
|
12
12
|
{
|
|
13
13
|
"registryType": "npm",
|
|
14
14
|
"identifier": "@kevinrabun/judges",
|
|
15
|
-
"version": "3.
|
|
15
|
+
"version": "3.121.0",
|
|
16
16
|
"transport": {
|
|
17
17
|
"type": "stdio"
|
|
18
18
|
}
|