@velum-labs/routekit-eval-setup 1.0.23 → 1.0.24
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.
|
@@ -30,16 +30,8 @@ for (const model of manifest.candidateModels) {
|
|
|
30
30
|
? testCase.prompt
|
|
31
31
|
: [testCase.prompt, "", "Reference material:", "-----", testCase.context, "-----"].join("\\n");
|
|
32
32
|
const run = await candidate.run({ prompt, caseId: testCase.id });
|
|
33
|
-
let candidateCompletionError: unknown;
|
|
34
|
-
try {
|
|
35
|
-
run.toComplete();
|
|
36
|
-
} catch (error) {
|
|
37
|
-
candidateCompletionError = error;
|
|
38
|
-
}
|
|
39
33
|
await judge.autoEvals({ criteria: testCase.rubric, prompt, run });
|
|
40
|
-
|
|
41
|
-
throw candidateCompletionError;
|
|
42
|
-
}
|
|
34
|
+
run.toComplete();
|
|
43
35
|
});
|
|
44
36
|
}
|
|
45
37
|
}
|
|
@@ -310,10 +310,9 @@ test("reviewed artifacts are digest-bound and produce an immutable exact-call pl
|
|
|
310
310
|
const generatedSuite = await readFile(path.join(root, ".routekit", "evals", "plans", result.plan.planId, "dimensions", firstDimension.id, `${firstDimension.id}.eval.ts`), "utf8");
|
|
311
311
|
const completionAssertion = generatedSuite.indexOf("run.toComplete();");
|
|
312
312
|
const judgeCall = generatedSuite.indexOf("await judge.autoEvals");
|
|
313
|
-
|
|
313
|
+
assert.ok(judgeCall >= 0);
|
|
314
314
|
assert.ok(completionAssertion >= 0);
|
|
315
|
-
assert.ok(
|
|
316
|
-
assert.ok(completionRethrow > judgeCall);
|
|
315
|
+
assert.ok(completionAssertion > judgeCall);
|
|
317
316
|
for (const dimension of reviewedDimensions) {
|
|
318
317
|
assert.equal((await stat(path.join(root, ".routekit", "evals", "dimensions", dimension.id, "suite.json")))
|
|
319
318
|
.mode & 0o777, 0o600);
|
|
@@ -657,11 +656,10 @@ await judge.autoEvals({ criteria: testCase.rubric, prompt, run });
|
|
|
657
656
|
for (const suite of [dimensionSuite, compositionSuite]) {
|
|
658
657
|
const completionAssertion = suite.indexOf("run.toComplete();");
|
|
659
658
|
const judgeCall = suite.indexOf("await judge.autoEvals");
|
|
660
|
-
const completionRethrow = suite.indexOf("throw candidateCompletionError;");
|
|
661
659
|
assert.doesNotMatch(suite, /generated by RouteKit 1\.0\.21/u);
|
|
660
|
+
assert.ok(judgeCall >= 0);
|
|
662
661
|
assert.ok(completionAssertion >= 0);
|
|
663
|
-
assert.ok(
|
|
664
|
-
assert.ok(completionRethrow > judgeCall);
|
|
662
|
+
assert.ok(completionAssertion > judgeCall);
|
|
665
663
|
}
|
|
666
664
|
assert.equal(dimensionManifestAfter, dimensionManifestBefore);
|
|
667
665
|
assert.equal(compositionManifestAfter, compositionManifestBefore);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@velum-labs/routekit-eval-setup",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.24",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/velum-labs/routekit.git",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"effect": "4.0.0-rc.108",
|
|
35
|
-
"@velum-labs/routekit-eval-contracts": "1.0.
|
|
36
|
-
"@velum-labs/routekit-runtime": "1.0.
|
|
35
|
+
"@velum-labs/routekit-eval-contracts": "1.0.24",
|
|
36
|
+
"@velum-labs/routekit-runtime": "1.0.24"
|
|
37
37
|
},
|
|
38
38
|
"keywords": [
|
|
39
39
|
"routekit",
|