anpord 0.1.12 → 0.1.13
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/bin.cjs +208 -125
- package/dist/bin.mjs +208 -125
- package/dist/cli-runtime.cjs +2 -2
- package/dist/cli-runtime.d.cts +1 -1
- package/dist/cli-runtime.d.mts +1 -1
- package/dist/cli-runtime.mjs +2 -2
- package/dist/{client-D22IiHGL.mjs → client-BfdjFtlV.mjs} +7 -6
- package/dist/{client-Byoa41pX.d.mts → client-BgRs8JvW.d.mts} +1891 -227
- package/dist/{client-CFTj9ad0.d.cts → client-BirFO3jz.d.cts} +1891 -227
- package/dist/{client-BnimnYiJ.cjs → client-C-P2I00z.cjs} +7 -6
- package/dist/{compiler-CBMPXIzV.mjs → compiler-D96wI7UP.mjs} +87 -82
- package/dist/{compiler-BFxukiJy.cjs → compiler-uwb1pkdK.cjs} +85 -80
- package/dist/config.cjs +1 -1
- package/dist/config.d.cts +1 -1
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +1 -1
- package/dist/eval-validations-BRdoZrTQ.mjs +113 -0
- package/dist/eval-validations-_MlnQ_uv.cjs +148 -0
- package/dist/eval.cjs +1 -1
- package/dist/eval.d.cts +33 -13
- package/dist/eval.d.mts +33 -13
- package/dist/eval.mjs +1 -1
- package/dist/evals-B6aT3xgH.d.cts +1364 -0
- package/dist/evals-B6aT3xgH.d.mts +1364 -0
- package/dist/{evals-CvOTyvCX.mjs → evals-Dcc_x6jW.mjs} +54 -11
- package/dist/{evals-B04M0apj.cjs → evals-DouMsrsM.cjs} +71 -16
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +128 -4
- package/dist/index.d.mts +128 -4
- package/dist/index.mjs +1 -1
- package/dist/source.d.cts +1 -1
- package/dist/source.d.mts +1 -1
- package/dist/{types-oXWOHA-X.d.mts → types-Codjaq-o.d.mts} +65 -19
- package/dist/{types-nr4-1c3W.d.cts → types-ISsteq95.d.cts} +65 -19
- package/dist/validator-runtime.cjs +238 -0
- package/dist/validator-runtime.d.cts +9 -0
- package/dist/validator-runtime.d.mts +9 -0
- package/dist/validator-runtime.mjs +237 -0
- package/package.json +1 -1
- package/dist/evals-BUBzpke_.d.cts +0 -647
- package/dist/evals-BUBzpke_.d.mts +0 -647
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { n as EvalJudgment } from "./eval-judges-CwTvTq7N.mjs";
|
|
2
|
+
import { Schema } from "effect";
|
|
3
|
+
//#region ../schema/src/domain/eval-validations.ts
|
|
4
|
+
const VALIDATION_TEXT_LIMIT = 16e3;
|
|
5
|
+
const VALIDATION_BUDGET = 64e3;
|
|
6
|
+
const VALIDATION_FRAME = "ANPORD_VALIDATION=";
|
|
7
|
+
const ValidationValue = Schema.Struct({
|
|
8
|
+
text: Schema.String.pipe(Schema.maxLength(VALIDATION_TEXT_LIMIT)),
|
|
9
|
+
format: Schema.Literal("text", "json"),
|
|
10
|
+
state: Schema.Literal("captured", "disabled", "unavailable"),
|
|
11
|
+
truncated: Schema.Boolean
|
|
12
|
+
}).annotations({ identifier: "ValidationValue" });
|
|
13
|
+
const ValidationCall = Schema.Struct({
|
|
14
|
+
index: Schema.NonNegativeInt,
|
|
15
|
+
method: Schema.Literal("answer", "transcript", "readText", "exists", "exec", "cli.calls", "mcp.calls"),
|
|
16
|
+
startedAt: Schema.Number,
|
|
17
|
+
durationMs: Schema.NullOr(Schema.NonNegativeInt),
|
|
18
|
+
input: ValidationValue,
|
|
19
|
+
output: ValidationValue,
|
|
20
|
+
error: Schema.NullOr(ValidationValue)
|
|
21
|
+
}).annotations({ identifier: "ValidationCall" });
|
|
22
|
+
const EvalValidation = Schema.Struct({
|
|
23
|
+
id: Schema.String.pipe(Schema.minLength(1), Schema.maxLength(200)),
|
|
24
|
+
index: Schema.NonNegativeInt,
|
|
25
|
+
name: Schema.String.pipe(Schema.maxLength(200)),
|
|
26
|
+
kind: Schema.Literal("code", "judge", "command"),
|
|
27
|
+
status: Schema.Literal("queued", "running", "passed", "failed", "error", "skipped"),
|
|
28
|
+
startedAt: Schema.NullOr(Schema.Number),
|
|
29
|
+
durationMs: Schema.NullOr(Schema.NonNegativeInt),
|
|
30
|
+
message: Schema.String.pipe(Schema.maxLength(2e3)),
|
|
31
|
+
exitCode: Schema.NullOr(Schema.Int),
|
|
32
|
+
truncated: Schema.Boolean,
|
|
33
|
+
judgment: Schema.optional(EvalJudgment),
|
|
34
|
+
input: ValidationValue,
|
|
35
|
+
output: ValidationValue,
|
|
36
|
+
error: Schema.NullOr(ValidationValue),
|
|
37
|
+
metadata: Schema.optional(ValidationValue),
|
|
38
|
+
calls: Schema.Array(ValidationCall).pipe(Schema.maxItems(64)),
|
|
39
|
+
logs: Schema.Array(Schema.Struct({
|
|
40
|
+
index: Schema.NonNegativeInt,
|
|
41
|
+
at: Schema.Number,
|
|
42
|
+
level: Schema.Literal("stdout", "stderr"),
|
|
43
|
+
value: ValidationValue
|
|
44
|
+
})).pipe(Schema.maxItems(64))
|
|
45
|
+
}).annotations({ identifier: "EvalValidation" });
|
|
46
|
+
const EvalValidations = Schema.Array(EvalValidation).pipe(Schema.maxItems(40)).annotations({ identifier: "EvalValidations" });
|
|
47
|
+
const validationSnapshot = (value) => ({
|
|
48
|
+
...value,
|
|
49
|
+
truncated: value.truncated || [
|
|
50
|
+
value.input,
|
|
51
|
+
value.output,
|
|
52
|
+
value.error,
|
|
53
|
+
value.metadata,
|
|
54
|
+
...value.calls.flatMap((call) => [
|
|
55
|
+
call.input,
|
|
56
|
+
call.output,
|
|
57
|
+
call.error
|
|
58
|
+
]),
|
|
59
|
+
...value.logs.map((log) => log.value)
|
|
60
|
+
].some((field) => field?.truncated)
|
|
61
|
+
});
|
|
62
|
+
const unavailableValue = {
|
|
63
|
+
text: "",
|
|
64
|
+
format: "text",
|
|
65
|
+
state: "unavailable",
|
|
66
|
+
truncated: false
|
|
67
|
+
};
|
|
68
|
+
const validationCapture = (enabled = true) => {
|
|
69
|
+
let remaining = VALIDATION_BUDGET;
|
|
70
|
+
return (value, format = "json") => {
|
|
71
|
+
if (!enabled) return {
|
|
72
|
+
...unavailableValue,
|
|
73
|
+
state: "disabled",
|
|
74
|
+
format
|
|
75
|
+
};
|
|
76
|
+
try {
|
|
77
|
+
const raw = format === "text" ? String(value) : JSON.stringify(value);
|
|
78
|
+
if (raw === void 0) return {
|
|
79
|
+
...unavailableValue,
|
|
80
|
+
format
|
|
81
|
+
};
|
|
82
|
+
const text = raw.slice(0, Math.min(remaining, VALIDATION_TEXT_LIMIT));
|
|
83
|
+
remaining -= text.length;
|
|
84
|
+
return {
|
|
85
|
+
text,
|
|
86
|
+
format,
|
|
87
|
+
state: "captured",
|
|
88
|
+
truncated: text.length < raw.length
|
|
89
|
+
};
|
|
90
|
+
} catch {
|
|
91
|
+
return {
|
|
92
|
+
...unavailableValue,
|
|
93
|
+
format
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
const validationExecution = (identity, startedAt) => ({
|
|
99
|
+
...identity,
|
|
100
|
+
startedAt,
|
|
101
|
+
status: startedAt === null ? "skipped" : "running",
|
|
102
|
+
durationMs: null,
|
|
103
|
+
exitCode: null,
|
|
104
|
+
message: "",
|
|
105
|
+
truncated: false,
|
|
106
|
+
input: unavailableValue,
|
|
107
|
+
output: unavailableValue,
|
|
108
|
+
error: null,
|
|
109
|
+
calls: [],
|
|
110
|
+
logs: []
|
|
111
|
+
});
|
|
112
|
+
//#endregion
|
|
113
|
+
export { validationExecution as a, validationCapture as i, VALIDATION_FRAME as n, validationSnapshot as o, unavailableValue as r, EvalValidations as t };
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
const require_eval_judges = require("./eval-judges-BkmiVLLq.cjs");
|
|
2
|
+
let effect = require("effect");
|
|
3
|
+
//#region ../schema/src/domain/eval-validations.ts
|
|
4
|
+
const VALIDATION_TEXT_LIMIT = 16e3;
|
|
5
|
+
const VALIDATION_BUDGET = 64e3;
|
|
6
|
+
const VALIDATION_FRAME = "ANPORD_VALIDATION=";
|
|
7
|
+
const ValidationValue = effect.Schema.Struct({
|
|
8
|
+
text: effect.Schema.String.pipe(effect.Schema.maxLength(VALIDATION_TEXT_LIMIT)),
|
|
9
|
+
format: effect.Schema.Literal("text", "json"),
|
|
10
|
+
state: effect.Schema.Literal("captured", "disabled", "unavailable"),
|
|
11
|
+
truncated: effect.Schema.Boolean
|
|
12
|
+
}).annotations({ identifier: "ValidationValue" });
|
|
13
|
+
const ValidationCall = effect.Schema.Struct({
|
|
14
|
+
index: effect.Schema.NonNegativeInt,
|
|
15
|
+
method: effect.Schema.Literal("answer", "transcript", "readText", "exists", "exec", "cli.calls", "mcp.calls"),
|
|
16
|
+
startedAt: effect.Schema.Number,
|
|
17
|
+
durationMs: effect.Schema.NullOr(effect.Schema.NonNegativeInt),
|
|
18
|
+
input: ValidationValue,
|
|
19
|
+
output: ValidationValue,
|
|
20
|
+
error: effect.Schema.NullOr(ValidationValue)
|
|
21
|
+
}).annotations({ identifier: "ValidationCall" });
|
|
22
|
+
const EvalValidation = effect.Schema.Struct({
|
|
23
|
+
id: effect.Schema.String.pipe(effect.Schema.minLength(1), effect.Schema.maxLength(200)),
|
|
24
|
+
index: effect.Schema.NonNegativeInt,
|
|
25
|
+
name: effect.Schema.String.pipe(effect.Schema.maxLength(200)),
|
|
26
|
+
kind: effect.Schema.Literal("code", "judge", "command"),
|
|
27
|
+
status: effect.Schema.Literal("queued", "running", "passed", "failed", "error", "skipped"),
|
|
28
|
+
startedAt: effect.Schema.NullOr(effect.Schema.Number),
|
|
29
|
+
durationMs: effect.Schema.NullOr(effect.Schema.NonNegativeInt),
|
|
30
|
+
message: effect.Schema.String.pipe(effect.Schema.maxLength(2e3)),
|
|
31
|
+
exitCode: effect.Schema.NullOr(effect.Schema.Int),
|
|
32
|
+
truncated: effect.Schema.Boolean,
|
|
33
|
+
judgment: effect.Schema.optional(require_eval_judges.EvalJudgment),
|
|
34
|
+
input: ValidationValue,
|
|
35
|
+
output: ValidationValue,
|
|
36
|
+
error: effect.Schema.NullOr(ValidationValue),
|
|
37
|
+
metadata: effect.Schema.optional(ValidationValue),
|
|
38
|
+
calls: effect.Schema.Array(ValidationCall).pipe(effect.Schema.maxItems(64)),
|
|
39
|
+
logs: effect.Schema.Array(effect.Schema.Struct({
|
|
40
|
+
index: effect.Schema.NonNegativeInt,
|
|
41
|
+
at: effect.Schema.Number,
|
|
42
|
+
level: effect.Schema.Literal("stdout", "stderr"),
|
|
43
|
+
value: ValidationValue
|
|
44
|
+
})).pipe(effect.Schema.maxItems(64))
|
|
45
|
+
}).annotations({ identifier: "EvalValidation" });
|
|
46
|
+
const EvalValidations = effect.Schema.Array(EvalValidation).pipe(effect.Schema.maxItems(40)).annotations({ identifier: "EvalValidations" });
|
|
47
|
+
const validationSnapshot = (value) => ({
|
|
48
|
+
...value,
|
|
49
|
+
truncated: value.truncated || [
|
|
50
|
+
value.input,
|
|
51
|
+
value.output,
|
|
52
|
+
value.error,
|
|
53
|
+
value.metadata,
|
|
54
|
+
...value.calls.flatMap((call) => [
|
|
55
|
+
call.input,
|
|
56
|
+
call.output,
|
|
57
|
+
call.error
|
|
58
|
+
]),
|
|
59
|
+
...value.logs.map((log) => log.value)
|
|
60
|
+
].some((field) => field?.truncated)
|
|
61
|
+
});
|
|
62
|
+
const unavailableValue = {
|
|
63
|
+
text: "",
|
|
64
|
+
format: "text",
|
|
65
|
+
state: "unavailable",
|
|
66
|
+
truncated: false
|
|
67
|
+
};
|
|
68
|
+
const validationCapture = (enabled = true) => {
|
|
69
|
+
let remaining = VALIDATION_BUDGET;
|
|
70
|
+
return (value, format = "json") => {
|
|
71
|
+
if (!enabled) return {
|
|
72
|
+
...unavailableValue,
|
|
73
|
+
state: "disabled",
|
|
74
|
+
format
|
|
75
|
+
};
|
|
76
|
+
try {
|
|
77
|
+
const raw = format === "text" ? String(value) : JSON.stringify(value);
|
|
78
|
+
if (raw === void 0) return {
|
|
79
|
+
...unavailableValue,
|
|
80
|
+
format
|
|
81
|
+
};
|
|
82
|
+
const text = raw.slice(0, Math.min(remaining, VALIDATION_TEXT_LIMIT));
|
|
83
|
+
remaining -= text.length;
|
|
84
|
+
return {
|
|
85
|
+
text,
|
|
86
|
+
format,
|
|
87
|
+
state: "captured",
|
|
88
|
+
truncated: text.length < raw.length
|
|
89
|
+
};
|
|
90
|
+
} catch {
|
|
91
|
+
return {
|
|
92
|
+
...unavailableValue,
|
|
93
|
+
format
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
const validationExecution = (identity, startedAt) => ({
|
|
99
|
+
...identity,
|
|
100
|
+
startedAt,
|
|
101
|
+
status: startedAt === null ? "skipped" : "running",
|
|
102
|
+
durationMs: null,
|
|
103
|
+
exitCode: null,
|
|
104
|
+
message: "",
|
|
105
|
+
truncated: false,
|
|
106
|
+
input: unavailableValue,
|
|
107
|
+
output: unavailableValue,
|
|
108
|
+
error: null,
|
|
109
|
+
calls: [],
|
|
110
|
+
logs: []
|
|
111
|
+
});
|
|
112
|
+
//#endregion
|
|
113
|
+
Object.defineProperty(exports, "EvalValidations", {
|
|
114
|
+
enumerable: true,
|
|
115
|
+
get: function() {
|
|
116
|
+
return EvalValidations;
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
Object.defineProperty(exports, "VALIDATION_FRAME", {
|
|
120
|
+
enumerable: true,
|
|
121
|
+
get: function() {
|
|
122
|
+
return VALIDATION_FRAME;
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
Object.defineProperty(exports, "unavailableValue", {
|
|
126
|
+
enumerable: true,
|
|
127
|
+
get: function() {
|
|
128
|
+
return unavailableValue;
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
Object.defineProperty(exports, "validationCapture", {
|
|
132
|
+
enumerable: true,
|
|
133
|
+
get: function() {
|
|
134
|
+
return validationCapture;
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
Object.defineProperty(exports, "validationExecution", {
|
|
138
|
+
enumerable: true,
|
|
139
|
+
get: function() {
|
|
140
|
+
return validationExecution;
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
Object.defineProperty(exports, "validationSnapshot", {
|
|
144
|
+
enumerable: true,
|
|
145
|
+
get: function() {
|
|
146
|
+
return validationSnapshot;
|
|
147
|
+
}
|
|
148
|
+
});
|
package/dist/eval.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_compiler = require("./compiler-
|
|
2
|
+
const require_compiler = require("./compiler-uwb1pkdK.cjs");
|
|
3
3
|
exports.compileEval = require_compiler.compileEval;
|
|
4
4
|
exports.compileEvalEffect = require_compiler.compileEvalEffect;
|
package/dist/eval.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as PublicStartEvalRequest, t as CaseCache } from "./types-
|
|
1
|
+
import { h as PublicStartEvalRequest, t as CaseCache } from "./types-ISsteq95.cjs";
|
|
2
2
|
import { Effect } from "effect";
|
|
3
3
|
//#region src/evals/profile-errors.d.ts
|
|
4
4
|
declare const ProfileDirectoryUnreadable_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
@@ -82,22 +82,42 @@ declare class ProfileStepNotSupported extends ProfileStepNotSupported_base<{
|
|
|
82
82
|
//#region src/evals/compiler.d.ts
|
|
83
83
|
declare const compileEvalEffect: (path: string) => Effect.Effect<{
|
|
84
84
|
cases: {
|
|
85
|
-
validator: {
|
|
85
|
+
validator: ({
|
|
86
86
|
readonly name: string;
|
|
87
87
|
readonly source: string;
|
|
88
|
-
|
|
89
|
-
readonly
|
|
88
|
+
readonly capture?: boolean | undefined;
|
|
89
|
+
readonly manifest?: readonly {
|
|
90
|
+
readonly name: string;
|
|
91
|
+
readonly index: number;
|
|
92
|
+
}[] | undefined;
|
|
93
|
+
} & {
|
|
94
|
+
readonly sourceFiles?: readonly {
|
|
95
|
+
readonly path: string;
|
|
96
|
+
readonly content: string;
|
|
97
|
+
}[] | undefined;
|
|
98
|
+
}) | {
|
|
90
99
|
readonly name: string;
|
|
100
|
+
readonly kind: "judged";
|
|
101
|
+
readonly capture?: boolean | undefined;
|
|
102
|
+
readonly sourceFiles?: readonly {
|
|
103
|
+
readonly path: string;
|
|
104
|
+
readonly content: string;
|
|
105
|
+
}[] | undefined;
|
|
91
106
|
readonly checks: readonly {
|
|
92
107
|
readonly name: string;
|
|
93
108
|
readonly source: string;
|
|
109
|
+
readonly capture?: boolean | undefined;
|
|
110
|
+
readonly manifest?: readonly {
|
|
111
|
+
readonly name: string;
|
|
112
|
+
readonly index: number;
|
|
113
|
+
}[] | undefined;
|
|
94
114
|
}[];
|
|
95
115
|
readonly judges: readonly ({
|
|
96
|
-
readonly provider: "openai";
|
|
97
|
-
readonly harness?: undefined;
|
|
98
|
-
readonly kind: "judge";
|
|
99
116
|
readonly name: string;
|
|
117
|
+
readonly kind: "judge";
|
|
118
|
+
readonly harness?: undefined;
|
|
100
119
|
readonly model: string;
|
|
120
|
+
readonly provider: "openai";
|
|
101
121
|
readonly rubric: string;
|
|
102
122
|
readonly expected?: string | undefined;
|
|
103
123
|
readonly choices: {
|
|
@@ -106,11 +126,11 @@ declare const compileEvalEffect: (path: string) => Effect.Effect<{
|
|
|
106
126
|
readonly threshold: number;
|
|
107
127
|
readonly timeoutMs: number;
|
|
108
128
|
} | {
|
|
109
|
-
readonly provider?: undefined;
|
|
110
|
-
readonly harness: "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen" | "cursor";
|
|
111
|
-
readonly kind: "judge";
|
|
112
129
|
readonly name: string;
|
|
130
|
+
readonly kind: "judge";
|
|
131
|
+
readonly harness: "cursor" | "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen";
|
|
113
132
|
readonly model: string;
|
|
133
|
+
readonly provider?: undefined;
|
|
114
134
|
readonly rubric: string;
|
|
115
135
|
readonly expected?: string | undefined;
|
|
116
136
|
readonly choices: {
|
|
@@ -132,8 +152,7 @@ declare const compileEvalEffect: (path: string) => Effect.Effect<{
|
|
|
132
152
|
name: string;
|
|
133
153
|
prompt: string;
|
|
134
154
|
tasks: {
|
|
135
|
-
readonly
|
|
136
|
-
readonly harness: "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen" | "cursor" | "command";
|
|
155
|
+
readonly harness: "cursor" | "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen" | "command";
|
|
137
156
|
readonly model: string;
|
|
138
157
|
readonly profile?: {
|
|
139
158
|
readonly name: string;
|
|
@@ -147,9 +166,10 @@ declare const compileEvalEffect: (path: string) => Effect.Effect<{
|
|
|
147
166
|
readonly run?: string | undefined;
|
|
148
167
|
readonly systemPrompt?: string | undefined;
|
|
149
168
|
} | undefined;
|
|
169
|
+
readonly sandbox?: "daytona" | "e2b" | "upstash" | "modal" | "cloudflare" | "vercel" | undefined;
|
|
150
170
|
}[];
|
|
151
171
|
trials: number;
|
|
152
|
-
}, Error | import("effect/ParseResult").ParseError | ProfileTooManyFiles | ProfileDirectoryUnreadable | ProfileTooLarge | ProfileFileTooLarge | ProfilePathInvalid | ProfileManifestInvalid | ProfileManifestOutside | CommandProfileNeedsRun | ProfileStepNotSupported, never>;
|
|
172
|
+
}, Error | import("effect/ConfigError").ConfigError | import("effect/ParseResult").ParseError | ProfileTooManyFiles | ProfileDirectoryUnreadable | ProfileTooLarge | ProfileFileTooLarge | ProfilePathInvalid | ProfileManifestInvalid | ProfileManifestOutside | CommandProfileNeedsRun | ProfileStepNotSupported, never>;
|
|
153
173
|
declare const compileEval: (path: string) => Promise<PublicStartEvalRequest>;
|
|
154
174
|
//#endregion
|
|
155
175
|
export { compileEval, compileEvalEffect };
|
package/dist/eval.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as PublicStartEvalRequest, t as CaseCache } from "./types-
|
|
1
|
+
import { h as PublicStartEvalRequest, t as CaseCache } from "./types-Codjaq-o.mjs";
|
|
2
2
|
import { Effect } from "effect";
|
|
3
3
|
//#region src/evals/profile-errors.d.ts
|
|
4
4
|
declare const ProfileDirectoryUnreadable_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
@@ -82,22 +82,42 @@ declare class ProfileStepNotSupported extends ProfileStepNotSupported_base<{
|
|
|
82
82
|
//#region src/evals/compiler.d.ts
|
|
83
83
|
declare const compileEvalEffect: (path: string) => Effect.Effect<{
|
|
84
84
|
cases: {
|
|
85
|
-
validator: {
|
|
85
|
+
validator: ({
|
|
86
86
|
readonly name: string;
|
|
87
87
|
readonly source: string;
|
|
88
|
-
|
|
89
|
-
readonly
|
|
88
|
+
readonly capture?: boolean | undefined;
|
|
89
|
+
readonly manifest?: readonly {
|
|
90
|
+
readonly name: string;
|
|
91
|
+
readonly index: number;
|
|
92
|
+
}[] | undefined;
|
|
93
|
+
} & {
|
|
94
|
+
readonly sourceFiles?: readonly {
|
|
95
|
+
readonly path: string;
|
|
96
|
+
readonly content: string;
|
|
97
|
+
}[] | undefined;
|
|
98
|
+
}) | {
|
|
90
99
|
readonly name: string;
|
|
100
|
+
readonly kind: "judged";
|
|
101
|
+
readonly capture?: boolean | undefined;
|
|
102
|
+
readonly sourceFiles?: readonly {
|
|
103
|
+
readonly path: string;
|
|
104
|
+
readonly content: string;
|
|
105
|
+
}[] | undefined;
|
|
91
106
|
readonly checks: readonly {
|
|
92
107
|
readonly name: string;
|
|
93
108
|
readonly source: string;
|
|
109
|
+
readonly capture?: boolean | undefined;
|
|
110
|
+
readonly manifest?: readonly {
|
|
111
|
+
readonly name: string;
|
|
112
|
+
readonly index: number;
|
|
113
|
+
}[] | undefined;
|
|
94
114
|
}[];
|
|
95
115
|
readonly judges: readonly ({
|
|
96
|
-
readonly provider: "openai";
|
|
97
|
-
readonly harness?: undefined;
|
|
98
|
-
readonly kind: "judge";
|
|
99
116
|
readonly name: string;
|
|
117
|
+
readonly kind: "judge";
|
|
118
|
+
readonly harness?: undefined;
|
|
100
119
|
readonly model: string;
|
|
120
|
+
readonly provider: "openai";
|
|
101
121
|
readonly rubric: string;
|
|
102
122
|
readonly expected?: string | undefined;
|
|
103
123
|
readonly choices: {
|
|
@@ -106,11 +126,11 @@ declare const compileEvalEffect: (path: string) => Effect.Effect<{
|
|
|
106
126
|
readonly threshold: number;
|
|
107
127
|
readonly timeoutMs: number;
|
|
108
128
|
} | {
|
|
109
|
-
readonly provider?: undefined;
|
|
110
|
-
readonly harness: "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen" | "cursor";
|
|
111
|
-
readonly kind: "judge";
|
|
112
129
|
readonly name: string;
|
|
130
|
+
readonly kind: "judge";
|
|
131
|
+
readonly harness: "cursor" | "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen";
|
|
113
132
|
readonly model: string;
|
|
133
|
+
readonly provider?: undefined;
|
|
114
134
|
readonly rubric: string;
|
|
115
135
|
readonly expected?: string | undefined;
|
|
116
136
|
readonly choices: {
|
|
@@ -132,8 +152,7 @@ declare const compileEvalEffect: (path: string) => Effect.Effect<{
|
|
|
132
152
|
name: string;
|
|
133
153
|
prompt: string;
|
|
134
154
|
tasks: {
|
|
135
|
-
readonly
|
|
136
|
-
readonly harness: "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen" | "cursor" | "command";
|
|
155
|
+
readonly harness: "cursor" | "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen" | "command";
|
|
137
156
|
readonly model: string;
|
|
138
157
|
readonly profile?: {
|
|
139
158
|
readonly name: string;
|
|
@@ -147,9 +166,10 @@ declare const compileEvalEffect: (path: string) => Effect.Effect<{
|
|
|
147
166
|
readonly run?: string | undefined;
|
|
148
167
|
readonly systemPrompt?: string | undefined;
|
|
149
168
|
} | undefined;
|
|
169
|
+
readonly sandbox?: "daytona" | "e2b" | "upstash" | "modal" | "cloudflare" | "vercel" | undefined;
|
|
150
170
|
}[];
|
|
151
171
|
trials: number;
|
|
152
|
-
}, Error | import("effect/ParseResult").ParseError | ProfileTooManyFiles | ProfileDirectoryUnreadable | ProfileTooLarge | ProfileFileTooLarge | ProfilePathInvalid | ProfileManifestInvalid | ProfileManifestOutside | CommandProfileNeedsRun | ProfileStepNotSupported, never>;
|
|
172
|
+
}, Error | import("effect/ConfigError").ConfigError | import("effect/ParseResult").ParseError | ProfileTooManyFiles | ProfileDirectoryUnreadable | ProfileTooLarge | ProfileFileTooLarge | ProfilePathInvalid | ProfileManifestInvalid | ProfileManifestOutside | CommandProfileNeedsRun | ProfileStepNotSupported, never>;
|
|
153
173
|
declare const compileEval: (path: string) => Promise<PublicStartEvalRequest>;
|
|
154
174
|
//#endregion
|
|
155
175
|
export { compileEval, compileEvalEffect };
|
package/dist/eval.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as compileEvalEffect, t as compileEval } from "./compiler-
|
|
1
|
+
import { n as compileEvalEffect, t as compileEval } from "./compiler-D96wI7UP.mjs";
|
|
2
2
|
export { compileEval, compileEvalEffect };
|