anpord 0.1.2 → 0.1.4
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 +69 -4
- package/dist/cli.cjs +274 -19
- package/dist/cli.mjs +275 -20
- package/dist/client-BCZEcfVE.cjs +759 -0
- package/dist/client-BfhmGRQl.mjs +718 -0
- package/dist/compiler-CKiewwUc.mjs +188 -0
- package/dist/compiler-CZoX4jkx.cjs +198 -0
- package/dist/config.cjs +1 -1
- package/dist/config.mjs +1 -1
- package/dist/{errors-C0E5A8fN.cjs → errors-Boum34f5.cjs} +30 -0
- package/dist/{errors-DEfS6oaQ.mjs → errors-C9bQUcA3.mjs} +25 -1
- package/dist/eval.cjs +4 -0
- package/dist/eval.d.cts +25 -0
- package/dist/eval.d.mts +25 -0
- package/dist/eval.mjs +2 -0
- package/dist/evals-api-DUNVUGUy.d.mts +93 -0
- package/dist/evals-api-sqVNeWet.d.cts +93 -0
- package/dist/index.cjs +428 -8
- package/dist/index.d.cts +2372 -195
- package/dist/index.d.mts +2372 -195
- package/dist/index.mjs +424 -10
- package/dist/source-DQ8HChlm.d.cts +478 -0
- package/dist/source-DQ8HChlm.d.mts +478 -0
- package/dist/source-DvlGawEw.cjs +76 -0
- package/dist/source-Fg1h2VNn.mjs +47 -0
- package/dist/source.cjs +5 -0
- package/dist/source.d.cts +2 -0
- package/dist/source.d.mts +2 -0
- package/dist/source.mjs +2 -0
- package/package.json +18 -4
- package/dist/client-Cno4LwRq.cjs +0 -277
- package/dist/client-bJBNwTKq.mjs +0 -236
package/dist/index.d.mts
CHANGED
|
@@ -1,31 +1,7 @@
|
|
|
1
|
+
import { a as NotFound, i as Forbidden, n as BadRequest, o as Unauthorized, r as Conflict, t as PublicStartEvalRequest } from "./evals-api-DUNVUGUy.mjs";
|
|
2
|
+
import { C as StartedEval, S as RerunCellRequest, _ as EvalTrial, a as EvalCell, b as EvalVerdict, c as EvalDistribution, d as EvalProvider, f as EvalRun, g as EvalTask, h as EvalSource, i as CatalogueModel, l as EvalHarness, m as EvalRunSummary, n as files, o as EvalCellHistoryEntry, p as EvalRunStatus, r as repo, s as EvalComparison, t as empty, u as EvalJournalEntry, v as EvalTrialStatus, x as ModelCatalogue, y as EvalUsage } from "./source-DQ8HChlm.mjs";
|
|
1
3
|
import { HttpClient, HttpClientResponse } from "@effect/platform";
|
|
2
4
|
import { Brand, Effect, Layer, Redacted, Schema } from "effect";
|
|
3
|
-
//#region ../schema/src/domain/errors.d.ts
|
|
4
|
-
declare const NotFound_base: Schema.TaggedErrorClass<NotFound, "NotFound", {
|
|
5
|
-
readonly _tag: Schema.tag<"NotFound">;
|
|
6
|
-
} & {
|
|
7
|
-
message: typeof Schema.String;
|
|
8
|
-
}>;
|
|
9
|
-
declare class NotFound extends NotFound_base {}
|
|
10
|
-
declare const Conflict_base: Schema.TaggedErrorClass<Conflict, "Conflict", {
|
|
11
|
-
readonly _tag: Schema.tag<"Conflict">;
|
|
12
|
-
} & {
|
|
13
|
-
message: typeof Schema.String;
|
|
14
|
-
}>;
|
|
15
|
-
declare class Conflict extends Conflict_base {}
|
|
16
|
-
declare const BadRequest_base: Schema.TaggedErrorClass<BadRequest, "BadRequest", {
|
|
17
|
-
readonly _tag: Schema.tag<"BadRequest">;
|
|
18
|
-
} & {
|
|
19
|
-
message: typeof Schema.String;
|
|
20
|
-
}>;
|
|
21
|
-
declare class BadRequest extends BadRequest_base {}
|
|
22
|
-
declare const Unauthorized_base: Schema.TaggedErrorClass<Unauthorized, "Unauthorized", {
|
|
23
|
-
readonly _tag: Schema.tag<"Unauthorized">;
|
|
24
|
-
} & {
|
|
25
|
-
message: typeof Schema.String;
|
|
26
|
-
}>;
|
|
27
|
-
declare class Unauthorized extends Unauthorized_base {}
|
|
28
|
-
//#endregion
|
|
29
5
|
//#region ../schema/src/public/client.d.ts
|
|
30
6
|
declare const DEFAULT_BASE_URL = "https://api.anpord.com";
|
|
31
7
|
interface ClientOptions {
|
|
@@ -33,26 +9,537 @@ interface ClientOptions {
|
|
|
33
9
|
readonly baseUrl?: string;
|
|
34
10
|
}
|
|
35
11
|
declare const make: ({ apiKey, baseUrl }: ClientOptions) => Effect.Effect<{
|
|
12
|
+
readonly evals: {
|
|
13
|
+
readonly list: <WithResponse extends boolean = false>(request: {
|
|
14
|
+
readonly payload: {
|
|
15
|
+
readonly cursor?: {
|
|
16
|
+
readonly id: string;
|
|
17
|
+
readonly startedAtMillis: number;
|
|
18
|
+
} | null | undefined;
|
|
19
|
+
readonly limit?: number | undefined;
|
|
20
|
+
};
|
|
21
|
+
readonly withResponse?: WithResponse | undefined;
|
|
22
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
23
|
+
readonly next: {
|
|
24
|
+
readonly id: string;
|
|
25
|
+
readonly startedAtMillis: number;
|
|
26
|
+
} | null;
|
|
27
|
+
readonly runs: readonly {
|
|
28
|
+
readonly id: string;
|
|
29
|
+
readonly caseCount: number;
|
|
30
|
+
readonly columns: readonly {
|
|
31
|
+
readonly harness: "cursor" | "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen";
|
|
32
|
+
readonly harnessVersion: string;
|
|
33
|
+
readonly model: string;
|
|
34
|
+
readonly provider: "daytona" | "e2b" | "upstash" | "modal" | "cloudflare" | "vercel";
|
|
35
|
+
}[];
|
|
36
|
+
readonly commandMax: number | null;
|
|
37
|
+
readonly commandMin: number | null;
|
|
38
|
+
readonly failure: string | null;
|
|
39
|
+
readonly finishedAt: import("effect/DateTime").Utc | null;
|
|
40
|
+
readonly name: string | null;
|
|
41
|
+
readonly passed: number;
|
|
42
|
+
readonly scored: number;
|
|
43
|
+
readonly startedAt: import("effect/DateTime").Utc;
|
|
44
|
+
readonly status: "running" | "finished" | "failed";
|
|
45
|
+
readonly taskCount: number;
|
|
46
|
+
readonly voided: number;
|
|
47
|
+
}[];
|
|
48
|
+
readonly total: number;
|
|
49
|
+
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
50
|
+
readonly next: {
|
|
51
|
+
readonly id: string;
|
|
52
|
+
readonly startedAtMillis: number;
|
|
53
|
+
} | null;
|
|
54
|
+
readonly runs: readonly {
|
|
55
|
+
readonly id: string;
|
|
56
|
+
readonly caseCount: number;
|
|
57
|
+
readonly columns: readonly {
|
|
58
|
+
readonly harness: "cursor" | "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen";
|
|
59
|
+
readonly harnessVersion: string;
|
|
60
|
+
readonly model: string;
|
|
61
|
+
readonly provider: "daytona" | "e2b" | "upstash" | "modal" | "cloudflare" | "vercel";
|
|
62
|
+
}[];
|
|
63
|
+
readonly commandMax: number | null;
|
|
64
|
+
readonly commandMin: number | null;
|
|
65
|
+
readonly failure: string | null;
|
|
66
|
+
readonly finishedAt: import("effect/DateTime").Utc | null;
|
|
67
|
+
readonly name: string | null;
|
|
68
|
+
readonly passed: number;
|
|
69
|
+
readonly scored: number;
|
|
70
|
+
readonly startedAt: import("effect/DateTime").Utc;
|
|
71
|
+
readonly status: "running" | "finished" | "failed";
|
|
72
|
+
readonly taskCount: number;
|
|
73
|
+
readonly voided: number;
|
|
74
|
+
}[];
|
|
75
|
+
readonly total: number;
|
|
76
|
+
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | Forbidden | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
77
|
+
readonly start: <WithResponse extends boolean = false>(request: {
|
|
78
|
+
readonly payload: {
|
|
79
|
+
readonly cases: readonly {
|
|
80
|
+
readonly name: string;
|
|
81
|
+
readonly setup?: string | null | undefined;
|
|
82
|
+
readonly source?: {
|
|
83
|
+
readonly kind: "empty";
|
|
84
|
+
} | {
|
|
85
|
+
readonly kind: "repo";
|
|
86
|
+
readonly ref: string | null;
|
|
87
|
+
readonly url: string;
|
|
88
|
+
} | {
|
|
89
|
+
readonly kind: "files";
|
|
90
|
+
readonly files: {
|
|
91
|
+
readonly [x: string]: string;
|
|
92
|
+
};
|
|
93
|
+
} | undefined;
|
|
94
|
+
readonly validator?: {
|
|
95
|
+
readonly name: string;
|
|
96
|
+
readonly source: string;
|
|
97
|
+
} | null | undefined;
|
|
98
|
+
readonly variables?: {
|
|
99
|
+
readonly [x: string]: string;
|
|
100
|
+
} | undefined;
|
|
101
|
+
readonly verify: string | null;
|
|
102
|
+
}[];
|
|
103
|
+
readonly prompt: string;
|
|
104
|
+
readonly tasks: readonly {
|
|
105
|
+
readonly harness: "cursor" | "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen";
|
|
106
|
+
readonly model: string;
|
|
107
|
+
readonly provider: "daytona" | "e2b" | "upstash" | "modal" | "cloudflare" | "vercel";
|
|
108
|
+
}[];
|
|
109
|
+
readonly trials: number;
|
|
110
|
+
};
|
|
111
|
+
readonly withResponse?: WithResponse | undefined;
|
|
112
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
113
|
+
readonly id: string;
|
|
114
|
+
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
115
|
+
readonly id: string;
|
|
116
|
+
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | Forbidden | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
117
|
+
readonly get: <WithResponse extends boolean = false>(request: {
|
|
118
|
+
readonly payload: {
|
|
119
|
+
readonly id: string;
|
|
120
|
+
};
|
|
121
|
+
readonly withResponse?: WithResponse | undefined;
|
|
122
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
123
|
+
readonly id: string;
|
|
124
|
+
readonly failure: string | null;
|
|
125
|
+
readonly finishedAt: import("effect/DateTime").Utc | null;
|
|
126
|
+
readonly startedAt: import("effect/DateTime").Utc;
|
|
127
|
+
readonly status: "running" | "finished" | "failed";
|
|
128
|
+
readonly cases: readonly string[];
|
|
129
|
+
readonly tasks: readonly {
|
|
130
|
+
readonly harness: "cursor" | "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen";
|
|
131
|
+
readonly harnessVersion: string;
|
|
132
|
+
readonly model: string;
|
|
133
|
+
readonly provider: "daytona" | "e2b" | "upstash" | "modal" | "cloudflare" | "vercel";
|
|
134
|
+
}[];
|
|
135
|
+
readonly cells: readonly {
|
|
136
|
+
readonly status: "running" | "finished" | "failed";
|
|
137
|
+
readonly setup: {
|
|
138
|
+
readonly prompt: string;
|
|
139
|
+
readonly repoRef: string | null;
|
|
140
|
+
readonly repoUrl: string | null;
|
|
141
|
+
readonly setupCommand: string | null;
|
|
142
|
+
readonly validatorName: string | null;
|
|
143
|
+
readonly verifyCommand: string | null;
|
|
144
|
+
readonly workspace: string;
|
|
145
|
+
} | null;
|
|
146
|
+
readonly trials: readonly {
|
|
147
|
+
readonly passed: boolean;
|
|
148
|
+
readonly status: "passed" | "running" | "failed" | "queued" | "void" | "exceeded";
|
|
149
|
+
readonly commands: number;
|
|
150
|
+
readonly exitCode: number;
|
|
151
|
+
readonly failedCommands: number;
|
|
152
|
+
readonly filesChanged: readonly string[];
|
|
153
|
+
readonly modelMs: number;
|
|
154
|
+
readonly ordinal: number;
|
|
155
|
+
readonly sandboxId: string | null;
|
|
156
|
+
readonly sandboxMs: number;
|
|
157
|
+
readonly timed: boolean;
|
|
158
|
+
readonly trajectory: readonly ({
|
|
159
|
+
readonly startedAtMillis: number | null;
|
|
160
|
+
readonly exitCode: number | null;
|
|
161
|
+
readonly _tag: "command";
|
|
162
|
+
readonly command: string;
|
|
163
|
+
readonly finishedAtMillis: number | null;
|
|
164
|
+
readonly output: string;
|
|
165
|
+
} | {
|
|
166
|
+
readonly _tag: "message";
|
|
167
|
+
readonly finishedAtMillis: number | null;
|
|
168
|
+
readonly text: string;
|
|
169
|
+
readonly usage?: {
|
|
170
|
+
readonly cacheReadTokens: number;
|
|
171
|
+
readonly cacheWriteTokens: number;
|
|
172
|
+
readonly costUsd?: number | null | undefined;
|
|
173
|
+
readonly inputTokens: number;
|
|
174
|
+
readonly outputTokens: number;
|
|
175
|
+
readonly totalTokens: number;
|
|
176
|
+
} | null | undefined;
|
|
177
|
+
} | {
|
|
178
|
+
readonly startedAtMillis?: number | null | undefined;
|
|
179
|
+
readonly name: string;
|
|
180
|
+
readonly status: string | null;
|
|
181
|
+
readonly _tag: "toolCall";
|
|
182
|
+
readonly finishedAtMillis: number | null;
|
|
183
|
+
} | {
|
|
184
|
+
readonly _tag: "fileChange";
|
|
185
|
+
readonly finishedAtMillis: number | null;
|
|
186
|
+
readonly paths: readonly string[];
|
|
187
|
+
})[];
|
|
188
|
+
readonly usage: {
|
|
189
|
+
readonly cacheReadTokens: number;
|
|
190
|
+
readonly cacheWriteTokens: number;
|
|
191
|
+
readonly costUsd?: number | null | undefined;
|
|
192
|
+
readonly inputTokens: number;
|
|
193
|
+
readonly outputTokens: number;
|
|
194
|
+
readonly totalTokens: number;
|
|
195
|
+
} | null;
|
|
196
|
+
readonly verifySteps: readonly {
|
|
197
|
+
readonly exitCode: number;
|
|
198
|
+
readonly command: string;
|
|
199
|
+
}[];
|
|
200
|
+
readonly voidFields: readonly string[];
|
|
201
|
+
}[];
|
|
202
|
+
readonly caseName: string;
|
|
203
|
+
readonly cellKey: string | null;
|
|
204
|
+
readonly comparison: {
|
|
205
|
+
readonly baselinePassRate: number;
|
|
206
|
+
readonly candidatePassRate: number;
|
|
207
|
+
readonly delta: number;
|
|
208
|
+
readonly determinismLost: boolean;
|
|
209
|
+
readonly reason: string | null;
|
|
210
|
+
readonly verdict: "improved" | "incomparable" | "regressed" | "unchanged";
|
|
211
|
+
} | null;
|
|
212
|
+
readonly distribution: {
|
|
213
|
+
readonly commandMax: number;
|
|
214
|
+
readonly commandMin: number;
|
|
215
|
+
readonly passed: number;
|
|
216
|
+
readonly scored: number;
|
|
217
|
+
readonly failed: number;
|
|
218
|
+
readonly voided: number;
|
|
219
|
+
readonly trials: number;
|
|
220
|
+
readonly commandMedian: number;
|
|
221
|
+
readonly deterministic: boolean;
|
|
222
|
+
readonly passRate: number;
|
|
223
|
+
} | null;
|
|
224
|
+
readonly internalId: string | null;
|
|
225
|
+
readonly taskIndex: number;
|
|
226
|
+
}[];
|
|
227
|
+
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
228
|
+
readonly id: string;
|
|
229
|
+
readonly failure: string | null;
|
|
230
|
+
readonly finishedAt: import("effect/DateTime").Utc | null;
|
|
231
|
+
readonly startedAt: import("effect/DateTime").Utc;
|
|
232
|
+
readonly status: "running" | "finished" | "failed";
|
|
233
|
+
readonly cases: readonly string[];
|
|
234
|
+
readonly tasks: readonly {
|
|
235
|
+
readonly harness: "cursor" | "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen";
|
|
236
|
+
readonly harnessVersion: string;
|
|
237
|
+
readonly model: string;
|
|
238
|
+
readonly provider: "daytona" | "e2b" | "upstash" | "modal" | "cloudflare" | "vercel";
|
|
239
|
+
}[];
|
|
240
|
+
readonly cells: readonly {
|
|
241
|
+
readonly status: "running" | "finished" | "failed";
|
|
242
|
+
readonly setup: {
|
|
243
|
+
readonly prompt: string;
|
|
244
|
+
readonly repoRef: string | null;
|
|
245
|
+
readonly repoUrl: string | null;
|
|
246
|
+
readonly setupCommand: string | null;
|
|
247
|
+
readonly validatorName: string | null;
|
|
248
|
+
readonly verifyCommand: string | null;
|
|
249
|
+
readonly workspace: string;
|
|
250
|
+
} | null;
|
|
251
|
+
readonly trials: readonly {
|
|
252
|
+
readonly passed: boolean;
|
|
253
|
+
readonly status: "passed" | "running" | "failed" | "queued" | "void" | "exceeded";
|
|
254
|
+
readonly commands: number;
|
|
255
|
+
readonly exitCode: number;
|
|
256
|
+
readonly failedCommands: number;
|
|
257
|
+
readonly filesChanged: readonly string[];
|
|
258
|
+
readonly modelMs: number;
|
|
259
|
+
readonly ordinal: number;
|
|
260
|
+
readonly sandboxId: string | null;
|
|
261
|
+
readonly sandboxMs: number;
|
|
262
|
+
readonly timed: boolean;
|
|
263
|
+
readonly trajectory: readonly ({
|
|
264
|
+
readonly startedAtMillis: number | null;
|
|
265
|
+
readonly exitCode: number | null;
|
|
266
|
+
readonly _tag: "command";
|
|
267
|
+
readonly command: string;
|
|
268
|
+
readonly finishedAtMillis: number | null;
|
|
269
|
+
readonly output: string;
|
|
270
|
+
} | {
|
|
271
|
+
readonly _tag: "message";
|
|
272
|
+
readonly finishedAtMillis: number | null;
|
|
273
|
+
readonly text: string;
|
|
274
|
+
readonly usage?: {
|
|
275
|
+
readonly cacheReadTokens: number;
|
|
276
|
+
readonly cacheWriteTokens: number;
|
|
277
|
+
readonly costUsd?: number | null | undefined;
|
|
278
|
+
readonly inputTokens: number;
|
|
279
|
+
readonly outputTokens: number;
|
|
280
|
+
readonly totalTokens: number;
|
|
281
|
+
} | null | undefined;
|
|
282
|
+
} | {
|
|
283
|
+
readonly startedAtMillis?: number | null | undefined;
|
|
284
|
+
readonly name: string;
|
|
285
|
+
readonly status: string | null;
|
|
286
|
+
readonly _tag: "toolCall";
|
|
287
|
+
readonly finishedAtMillis: number | null;
|
|
288
|
+
} | {
|
|
289
|
+
readonly _tag: "fileChange";
|
|
290
|
+
readonly finishedAtMillis: number | null;
|
|
291
|
+
readonly paths: readonly string[];
|
|
292
|
+
})[];
|
|
293
|
+
readonly usage: {
|
|
294
|
+
readonly cacheReadTokens: number;
|
|
295
|
+
readonly cacheWriteTokens: number;
|
|
296
|
+
readonly costUsd?: number | null | undefined;
|
|
297
|
+
readonly inputTokens: number;
|
|
298
|
+
readonly outputTokens: number;
|
|
299
|
+
readonly totalTokens: number;
|
|
300
|
+
} | null;
|
|
301
|
+
readonly verifySteps: readonly {
|
|
302
|
+
readonly exitCode: number;
|
|
303
|
+
readonly command: string;
|
|
304
|
+
}[];
|
|
305
|
+
readonly voidFields: readonly string[];
|
|
306
|
+
}[];
|
|
307
|
+
readonly caseName: string;
|
|
308
|
+
readonly cellKey: string | null;
|
|
309
|
+
readonly comparison: {
|
|
310
|
+
readonly baselinePassRate: number;
|
|
311
|
+
readonly candidatePassRate: number;
|
|
312
|
+
readonly delta: number;
|
|
313
|
+
readonly determinismLost: boolean;
|
|
314
|
+
readonly reason: string | null;
|
|
315
|
+
readonly verdict: "improved" | "incomparable" | "regressed" | "unchanged";
|
|
316
|
+
} | null;
|
|
317
|
+
readonly distribution: {
|
|
318
|
+
readonly commandMax: number;
|
|
319
|
+
readonly commandMin: number;
|
|
320
|
+
readonly passed: number;
|
|
321
|
+
readonly scored: number;
|
|
322
|
+
readonly failed: number;
|
|
323
|
+
readonly voided: number;
|
|
324
|
+
readonly trials: number;
|
|
325
|
+
readonly commandMedian: number;
|
|
326
|
+
readonly deterministic: boolean;
|
|
327
|
+
readonly passRate: number;
|
|
328
|
+
} | null;
|
|
329
|
+
readonly internalId: string | null;
|
|
330
|
+
readonly taskIndex: number;
|
|
331
|
+
}[];
|
|
332
|
+
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | Forbidden | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
333
|
+
readonly cellHistory: <WithResponse extends boolean = false>(request: {
|
|
334
|
+
readonly payload: {
|
|
335
|
+
readonly cellKey: string;
|
|
336
|
+
};
|
|
337
|
+
readonly withResponse?: WithResponse | undefined;
|
|
338
|
+
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
339
|
+
readonly finishedAt: import("effect/DateTime").Utc | null;
|
|
340
|
+
readonly trials: readonly {
|
|
341
|
+
readonly passed: boolean;
|
|
342
|
+
readonly status: "passed" | "running" | "failed" | "queued" | "void" | "exceeded";
|
|
343
|
+
readonly commands: number;
|
|
344
|
+
readonly exitCode: number;
|
|
345
|
+
readonly failedCommands: number;
|
|
346
|
+
readonly filesChanged: readonly string[];
|
|
347
|
+
readonly modelMs: number;
|
|
348
|
+
readonly ordinal: number;
|
|
349
|
+
readonly sandboxId: string | null;
|
|
350
|
+
readonly sandboxMs: number;
|
|
351
|
+
readonly timed: boolean;
|
|
352
|
+
readonly trajectory: readonly ({
|
|
353
|
+
readonly startedAtMillis: number | null;
|
|
354
|
+
readonly exitCode: number | null;
|
|
355
|
+
readonly _tag: "command";
|
|
356
|
+
readonly command: string;
|
|
357
|
+
readonly finishedAtMillis: number | null;
|
|
358
|
+
readonly output: string;
|
|
359
|
+
} | {
|
|
360
|
+
readonly _tag: "message";
|
|
361
|
+
readonly finishedAtMillis: number | null;
|
|
362
|
+
readonly text: string;
|
|
363
|
+
readonly usage?: {
|
|
364
|
+
readonly cacheReadTokens: number;
|
|
365
|
+
readonly cacheWriteTokens: number;
|
|
366
|
+
readonly costUsd?: number | null | undefined;
|
|
367
|
+
readonly inputTokens: number;
|
|
368
|
+
readonly outputTokens: number;
|
|
369
|
+
readonly totalTokens: number;
|
|
370
|
+
} | null | undefined;
|
|
371
|
+
} | {
|
|
372
|
+
readonly startedAtMillis?: number | null | undefined;
|
|
373
|
+
readonly name: string;
|
|
374
|
+
readonly status: string | null;
|
|
375
|
+
readonly _tag: "toolCall";
|
|
376
|
+
readonly finishedAtMillis: number | null;
|
|
377
|
+
} | {
|
|
378
|
+
readonly _tag: "fileChange";
|
|
379
|
+
readonly finishedAtMillis: number | null;
|
|
380
|
+
readonly paths: readonly string[];
|
|
381
|
+
})[];
|
|
382
|
+
readonly usage: {
|
|
383
|
+
readonly cacheReadTokens: number;
|
|
384
|
+
readonly cacheWriteTokens: number;
|
|
385
|
+
readonly costUsd?: number | null | undefined;
|
|
386
|
+
readonly inputTokens: number;
|
|
387
|
+
readonly outputTokens: number;
|
|
388
|
+
readonly totalTokens: number;
|
|
389
|
+
} | null;
|
|
390
|
+
readonly verifySteps: readonly {
|
|
391
|
+
readonly exitCode: number;
|
|
392
|
+
readonly command: string;
|
|
393
|
+
}[];
|
|
394
|
+
readonly voidFields: readonly string[];
|
|
395
|
+
}[];
|
|
396
|
+
readonly distribution: {
|
|
397
|
+
readonly commandMax: number;
|
|
398
|
+
readonly commandMin: number;
|
|
399
|
+
readonly passed: number;
|
|
400
|
+
readonly scored: number;
|
|
401
|
+
readonly failed: number;
|
|
402
|
+
readonly voided: number;
|
|
403
|
+
readonly trials: number;
|
|
404
|
+
readonly commandMedian: number;
|
|
405
|
+
readonly deterministic: boolean;
|
|
406
|
+
readonly passRate: number;
|
|
407
|
+
};
|
|
408
|
+
readonly internalId: string;
|
|
409
|
+
readonly runId: string;
|
|
410
|
+
}[], import("@effect/platform/HttpClientResponse").HttpClientResponse] : readonly {
|
|
411
|
+
readonly finishedAt: import("effect/DateTime").Utc | null;
|
|
412
|
+
readonly trials: readonly {
|
|
413
|
+
readonly passed: boolean;
|
|
414
|
+
readonly status: "passed" | "running" | "failed" | "queued" | "void" | "exceeded";
|
|
415
|
+
readonly commands: number;
|
|
416
|
+
readonly exitCode: number;
|
|
417
|
+
readonly failedCommands: number;
|
|
418
|
+
readonly filesChanged: readonly string[];
|
|
419
|
+
readonly modelMs: number;
|
|
420
|
+
readonly ordinal: number;
|
|
421
|
+
readonly sandboxId: string | null;
|
|
422
|
+
readonly sandboxMs: number;
|
|
423
|
+
readonly timed: boolean;
|
|
424
|
+
readonly trajectory: readonly ({
|
|
425
|
+
readonly startedAtMillis: number | null;
|
|
426
|
+
readonly exitCode: number | null;
|
|
427
|
+
readonly _tag: "command";
|
|
428
|
+
readonly command: string;
|
|
429
|
+
readonly finishedAtMillis: number | null;
|
|
430
|
+
readonly output: string;
|
|
431
|
+
} | {
|
|
432
|
+
readonly _tag: "message";
|
|
433
|
+
readonly finishedAtMillis: number | null;
|
|
434
|
+
readonly text: string;
|
|
435
|
+
readonly usage?: {
|
|
436
|
+
readonly cacheReadTokens: number;
|
|
437
|
+
readonly cacheWriteTokens: number;
|
|
438
|
+
readonly costUsd?: number | null | undefined;
|
|
439
|
+
readonly inputTokens: number;
|
|
440
|
+
readonly outputTokens: number;
|
|
441
|
+
readonly totalTokens: number;
|
|
442
|
+
} | null | undefined;
|
|
443
|
+
} | {
|
|
444
|
+
readonly startedAtMillis?: number | null | undefined;
|
|
445
|
+
readonly name: string;
|
|
446
|
+
readonly status: string | null;
|
|
447
|
+
readonly _tag: "toolCall";
|
|
448
|
+
readonly finishedAtMillis: number | null;
|
|
449
|
+
} | {
|
|
450
|
+
readonly _tag: "fileChange";
|
|
451
|
+
readonly finishedAtMillis: number | null;
|
|
452
|
+
readonly paths: readonly string[];
|
|
453
|
+
})[];
|
|
454
|
+
readonly usage: {
|
|
455
|
+
readonly cacheReadTokens: number;
|
|
456
|
+
readonly cacheWriteTokens: number;
|
|
457
|
+
readonly costUsd?: number | null | undefined;
|
|
458
|
+
readonly inputTokens: number;
|
|
459
|
+
readonly outputTokens: number;
|
|
460
|
+
readonly totalTokens: number;
|
|
461
|
+
} | null;
|
|
462
|
+
readonly verifySteps: readonly {
|
|
463
|
+
readonly exitCode: number;
|
|
464
|
+
readonly command: string;
|
|
465
|
+
}[];
|
|
466
|
+
readonly voidFields: readonly string[];
|
|
467
|
+
}[];
|
|
468
|
+
readonly distribution: {
|
|
469
|
+
readonly commandMax: number;
|
|
470
|
+
readonly commandMin: number;
|
|
471
|
+
readonly passed: number;
|
|
472
|
+
readonly scored: number;
|
|
473
|
+
readonly failed: number;
|
|
474
|
+
readonly voided: number;
|
|
475
|
+
readonly trials: number;
|
|
476
|
+
readonly commandMedian: number;
|
|
477
|
+
readonly deterministic: boolean;
|
|
478
|
+
readonly passRate: number;
|
|
479
|
+
};
|
|
480
|
+
readonly internalId: string;
|
|
481
|
+
readonly runId: string;
|
|
482
|
+
}[], import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | Forbidden | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
483
|
+
readonly rerunCell: <WithResponse extends boolean = false>(request: {
|
|
484
|
+
readonly payload: {
|
|
485
|
+
readonly id: string;
|
|
486
|
+
} & {
|
|
487
|
+
readonly cellKey: string;
|
|
488
|
+
} & {
|
|
489
|
+
readonly trials: number;
|
|
490
|
+
};
|
|
491
|
+
readonly withResponse?: WithResponse | undefined;
|
|
492
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
493
|
+
readonly id: string;
|
|
494
|
+
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
495
|
+
readonly id: string;
|
|
496
|
+
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | Forbidden | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
497
|
+
readonly models: <WithResponse extends boolean = false>(request: {
|
|
498
|
+
readonly payload: {
|
|
499
|
+
readonly harness: "cursor" | "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen";
|
|
500
|
+
readonly q?: string | undefined;
|
|
501
|
+
};
|
|
502
|
+
readonly withResponse?: WithResponse | undefined;
|
|
503
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
504
|
+
readonly harness: "cursor" | "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen";
|
|
505
|
+
readonly total: number;
|
|
506
|
+
readonly models: readonly {
|
|
507
|
+
readonly id: string;
|
|
508
|
+
readonly displayName: string;
|
|
509
|
+
readonly summary: string | null;
|
|
510
|
+
readonly vendor: string | null;
|
|
511
|
+
}[];
|
|
512
|
+
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
513
|
+
readonly harness: "cursor" | "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen";
|
|
514
|
+
readonly total: number;
|
|
515
|
+
readonly models: readonly {
|
|
516
|
+
readonly id: string;
|
|
517
|
+
readonly displayName: string;
|
|
518
|
+
readonly summary: string | null;
|
|
519
|
+
readonly vendor: string | null;
|
|
520
|
+
}[];
|
|
521
|
+
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | Forbidden | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
522
|
+
};
|
|
36
523
|
readonly prompts: {
|
|
37
524
|
readonly get: <WithResponse extends boolean = false>(request: {
|
|
38
525
|
readonly payload: {
|
|
39
|
-
readonly channel?: (string & import("effect/Brand").Brand<"ChannelName">) | undefined;
|
|
40
526
|
readonly id: string & import("effect/Brand").Brand<"PromptId">;
|
|
527
|
+
readonly channel?: (string & import("effect/Brand").Brand<"ChannelName">) | undefined;
|
|
41
528
|
readonly includeVersions?: boolean | undefined;
|
|
42
529
|
readonly version?: (number & import("effect/Brand").Brand<"VersionNumber">) | undefined;
|
|
43
530
|
};
|
|
44
531
|
readonly withResponse?: WithResponse | undefined;
|
|
45
532
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
46
|
-
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
47
|
-
readonly message: string | null;
|
|
48
533
|
readonly id: string & import("effect/Brand").Brand<"PromptId">;
|
|
534
|
+
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
535
|
+
readonly message: string | null;
|
|
536
|
+
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
49
537
|
readonly version: number & import("effect/Brand").Brand<"VersionNumber">;
|
|
50
538
|
readonly config: {
|
|
51
539
|
readonly [x: string]: unknown;
|
|
52
540
|
};
|
|
53
541
|
readonly content: string;
|
|
54
542
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
55
|
-
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
56
543
|
} & {
|
|
57
544
|
readonly versions?: readonly {
|
|
58
545
|
readonly message: string | null;
|
|
@@ -60,25 +547,27 @@ declare const make: ({ apiKey, baseUrl }: ClientOptions) => Effect.Effect<{
|
|
|
60
547
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
61
548
|
}[] | undefined;
|
|
62
549
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
63
|
-
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
64
|
-
readonly message: string | null;
|
|
65
550
|
readonly id: string & import("effect/Brand").Brand<"PromptId">;
|
|
551
|
+
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
552
|
+
readonly message: string | null;
|
|
553
|
+
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
66
554
|
readonly version: number & import("effect/Brand").Brand<"VersionNumber">;
|
|
67
555
|
readonly config: {
|
|
68
556
|
readonly [x: string]: unknown;
|
|
69
557
|
};
|
|
70
558
|
readonly content: string;
|
|
71
559
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
72
|
-
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
73
560
|
} & {
|
|
74
561
|
readonly versions?: readonly {
|
|
75
562
|
readonly message: string | null;
|
|
76
563
|
readonly version: number & import("effect/Brand").Brand<"VersionNumber">;
|
|
77
564
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
78
565
|
}[] | undefined;
|
|
79
|
-
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
566
|
+
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | Forbidden | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
80
567
|
readonly list: <WithResponse extends boolean = false>(request: {
|
|
81
|
-
readonly payload: {
|
|
568
|
+
readonly payload: {
|
|
569
|
+
readonly [x: string]: never;
|
|
570
|
+
};
|
|
82
571
|
readonly withResponse?: WithResponse | undefined;
|
|
83
572
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
84
573
|
readonly data: readonly {
|
|
@@ -96,30 +585,30 @@ declare const make: ({ apiKey, baseUrl }: ClientOptions) => Effect.Effect<{
|
|
|
96
585
|
readonly productionVersion: (number & import("effect/Brand").Brand<"VersionNumber">) | null;
|
|
97
586
|
readonly updatedAt: import("effect/DateTime").Utc;
|
|
98
587
|
}[];
|
|
99
|
-
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
588
|
+
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | Forbidden | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
100
589
|
readonly create: <WithResponse extends boolean = false>(request: {
|
|
101
590
|
readonly payload: {
|
|
102
|
-
readonly message?: string | undefined;
|
|
103
591
|
readonly id: string & import("effect/Brand").Brand<"PromptId">;
|
|
592
|
+
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
593
|
+
readonly message?: string | undefined;
|
|
104
594
|
readonly config?: {
|
|
105
595
|
readonly [x: string]: unknown;
|
|
106
596
|
} | undefined;
|
|
107
597
|
readonly content: string;
|
|
108
|
-
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
109
598
|
readonly description?: string | undefined;
|
|
110
599
|
};
|
|
111
600
|
readonly withResponse?: WithResponse | undefined;
|
|
112
601
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
113
|
-
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
114
|
-
readonly message: string | null;
|
|
115
602
|
readonly id: string & import("effect/Brand").Brand<"PromptId">;
|
|
603
|
+
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
604
|
+
readonly message: string | null;
|
|
605
|
+
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
116
606
|
readonly version: number & import("effect/Brand").Brand<"VersionNumber">;
|
|
117
607
|
readonly config: {
|
|
118
608
|
readonly [x: string]: unknown;
|
|
119
609
|
};
|
|
120
610
|
readonly content: string;
|
|
121
611
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
122
|
-
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
123
612
|
} & {
|
|
124
613
|
readonly versions?: readonly {
|
|
125
614
|
readonly message: string | null;
|
|
@@ -127,27 +616,27 @@ declare const make: ({ apiKey, baseUrl }: ClientOptions) => Effect.Effect<{
|
|
|
127
616
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
128
617
|
}[] | undefined;
|
|
129
618
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
130
|
-
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
131
|
-
readonly message: string | null;
|
|
132
619
|
readonly id: string & import("effect/Brand").Brand<"PromptId">;
|
|
620
|
+
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
621
|
+
readonly message: string | null;
|
|
622
|
+
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
133
623
|
readonly version: number & import("effect/Brand").Brand<"VersionNumber">;
|
|
134
624
|
readonly config: {
|
|
135
625
|
readonly [x: string]: unknown;
|
|
136
626
|
};
|
|
137
627
|
readonly content: string;
|
|
138
628
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
139
|
-
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
140
629
|
} & {
|
|
141
630
|
readonly versions?: readonly {
|
|
142
631
|
readonly message: string | null;
|
|
143
632
|
readonly version: number & import("effect/Brand").Brand<"VersionNumber">;
|
|
144
633
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
145
634
|
}[] | undefined;
|
|
146
|
-
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
635
|
+
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | Forbidden | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
147
636
|
readonly update: <WithResponse extends boolean = false>(request: {
|
|
148
637
|
readonly payload: {
|
|
149
|
-
readonly message?: string | undefined;
|
|
150
638
|
readonly id: string & import("effect/Brand").Brand<"PromptId">;
|
|
639
|
+
readonly message?: string | undefined;
|
|
151
640
|
readonly config?: {
|
|
152
641
|
readonly [x: string]: unknown;
|
|
153
642
|
} | undefined;
|
|
@@ -155,16 +644,16 @@ declare const make: ({ apiKey, baseUrl }: ClientOptions) => Effect.Effect<{
|
|
|
155
644
|
};
|
|
156
645
|
readonly withResponse?: WithResponse | undefined;
|
|
157
646
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
158
|
-
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
159
|
-
readonly message: string | null;
|
|
160
647
|
readonly id: string & import("effect/Brand").Brand<"PromptId">;
|
|
648
|
+
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
649
|
+
readonly message: string | null;
|
|
650
|
+
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
161
651
|
readonly version: number & import("effect/Brand").Brand<"VersionNumber">;
|
|
162
652
|
readonly config: {
|
|
163
653
|
readonly [x: string]: unknown;
|
|
164
654
|
};
|
|
165
655
|
readonly content: string;
|
|
166
656
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
167
|
-
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
168
657
|
} & {
|
|
169
658
|
readonly versions?: readonly {
|
|
170
659
|
readonly message: string | null;
|
|
@@ -172,27 +661,27 @@ declare const make: ({ apiKey, baseUrl }: ClientOptions) => Effect.Effect<{
|
|
|
172
661
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
173
662
|
}[] | undefined;
|
|
174
663
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
175
|
-
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
176
|
-
readonly message: string | null;
|
|
177
664
|
readonly id: string & import("effect/Brand").Brand<"PromptId">;
|
|
665
|
+
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
666
|
+
readonly message: string | null;
|
|
667
|
+
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
178
668
|
readonly version: number & import("effect/Brand").Brand<"VersionNumber">;
|
|
179
669
|
readonly config: {
|
|
180
670
|
readonly [x: string]: unknown;
|
|
181
671
|
};
|
|
182
672
|
readonly content: string;
|
|
183
673
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
184
|
-
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
185
674
|
} & {
|
|
186
675
|
readonly versions?: readonly {
|
|
187
676
|
readonly message: string | null;
|
|
188
677
|
readonly version: number & import("effect/Brand").Brand<"VersionNumber">;
|
|
189
678
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
190
679
|
}[] | undefined;
|
|
191
|
-
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
680
|
+
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | Forbidden | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
192
681
|
readonly promote: <WithResponse extends boolean = false>(request: {
|
|
193
682
|
readonly payload: {
|
|
194
|
-
readonly channel: string & import("effect/Brand").Brand<"ChannelName">;
|
|
195
683
|
readonly id: string & import("effect/Brand").Brand<"PromptId">;
|
|
684
|
+
readonly channel: string & import("effect/Brand").Brand<"ChannelName">;
|
|
196
685
|
readonly version: number & import("effect/Brand").Brand<"VersionNumber">;
|
|
197
686
|
};
|
|
198
687
|
readonly withResponse?: WithResponse | undefined;
|
|
@@ -200,41 +689,542 @@ declare const make: ({ apiKey, baseUrl }: ClientOptions) => Effect.Effect<{
|
|
|
200
689
|
readonly ok: true;
|
|
201
690
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
202
691
|
readonly ok: true;
|
|
203
|
-
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
204
|
-
|
|
692
|
+
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | Forbidden | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
693
|
+
};
|
|
694
|
+
}, never, HttpClient.HttpClient>;
|
|
695
|
+
type AnpordClient = Effect.Effect.Success<ReturnType<typeof make>>;
|
|
696
|
+
declare const AnpordApi_base: import("effect/Context").TagClass<AnpordApi, "@anpord/sdk/AnpordApi", {
|
|
697
|
+
readonly evals: {
|
|
698
|
+
readonly list: <WithResponse extends boolean = false>(request: {
|
|
205
699
|
readonly payload: {
|
|
206
|
-
readonly
|
|
700
|
+
readonly cursor?: {
|
|
701
|
+
readonly id: string;
|
|
702
|
+
readonly startedAtMillis: number;
|
|
703
|
+
} | null | undefined;
|
|
704
|
+
readonly limit?: number | undefined;
|
|
207
705
|
};
|
|
208
706
|
readonly withResponse?: WithResponse | undefined;
|
|
209
707
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
210
|
-
readonly
|
|
708
|
+
readonly next: {
|
|
709
|
+
readonly id: string;
|
|
710
|
+
readonly startedAtMillis: number;
|
|
711
|
+
} | null;
|
|
712
|
+
readonly runs: readonly {
|
|
713
|
+
readonly id: string;
|
|
714
|
+
readonly caseCount: number;
|
|
715
|
+
readonly columns: readonly {
|
|
716
|
+
readonly harness: "cursor" | "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen";
|
|
717
|
+
readonly harnessVersion: string;
|
|
718
|
+
readonly model: string;
|
|
719
|
+
readonly provider: "daytona" | "e2b" | "upstash" | "modal" | "cloudflare" | "vercel";
|
|
720
|
+
}[];
|
|
721
|
+
readonly commandMax: number | null;
|
|
722
|
+
readonly commandMin: number | null;
|
|
723
|
+
readonly failure: string | null;
|
|
724
|
+
readonly finishedAt: import("effect/DateTime").Utc | null;
|
|
725
|
+
readonly name: string | null;
|
|
726
|
+
readonly passed: number;
|
|
727
|
+
readonly scored: number;
|
|
728
|
+
readonly startedAt: import("effect/DateTime").Utc;
|
|
729
|
+
readonly status: "running" | "finished" | "failed";
|
|
730
|
+
readonly taskCount: number;
|
|
731
|
+
readonly voided: number;
|
|
732
|
+
}[];
|
|
733
|
+
readonly total: number;
|
|
211
734
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
212
|
-
readonly
|
|
213
|
-
|
|
735
|
+
readonly next: {
|
|
736
|
+
readonly id: string;
|
|
737
|
+
readonly startedAtMillis: number;
|
|
738
|
+
} | null;
|
|
739
|
+
readonly runs: readonly {
|
|
740
|
+
readonly id: string;
|
|
741
|
+
readonly caseCount: number;
|
|
742
|
+
readonly columns: readonly {
|
|
743
|
+
readonly harness: "cursor" | "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen";
|
|
744
|
+
readonly harnessVersion: string;
|
|
745
|
+
readonly model: string;
|
|
746
|
+
readonly provider: "daytona" | "e2b" | "upstash" | "modal" | "cloudflare" | "vercel";
|
|
747
|
+
}[];
|
|
748
|
+
readonly commandMax: number | null;
|
|
749
|
+
readonly commandMin: number | null;
|
|
750
|
+
readonly failure: string | null;
|
|
751
|
+
readonly finishedAt: import("effect/DateTime").Utc | null;
|
|
752
|
+
readonly name: string | null;
|
|
753
|
+
readonly passed: number;
|
|
754
|
+
readonly scored: number;
|
|
755
|
+
readonly startedAt: import("effect/DateTime").Utc;
|
|
756
|
+
readonly status: "running" | "finished" | "failed";
|
|
757
|
+
readonly taskCount: number;
|
|
758
|
+
readonly voided: number;
|
|
759
|
+
}[];
|
|
760
|
+
readonly total: number;
|
|
761
|
+
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | Forbidden | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
762
|
+
readonly start: <WithResponse extends boolean = false>(request: {
|
|
763
|
+
readonly payload: {
|
|
764
|
+
readonly cases: readonly {
|
|
765
|
+
readonly name: string;
|
|
766
|
+
readonly setup?: string | null | undefined;
|
|
767
|
+
readonly source?: {
|
|
768
|
+
readonly kind: "empty";
|
|
769
|
+
} | {
|
|
770
|
+
readonly kind: "repo";
|
|
771
|
+
readonly ref: string | null;
|
|
772
|
+
readonly url: string;
|
|
773
|
+
} | {
|
|
774
|
+
readonly kind: "files";
|
|
775
|
+
readonly files: {
|
|
776
|
+
readonly [x: string]: string;
|
|
777
|
+
};
|
|
778
|
+
} | undefined;
|
|
779
|
+
readonly validator?: {
|
|
780
|
+
readonly name: string;
|
|
781
|
+
readonly source: string;
|
|
782
|
+
} | null | undefined;
|
|
783
|
+
readonly variables?: {
|
|
784
|
+
readonly [x: string]: string;
|
|
785
|
+
} | undefined;
|
|
786
|
+
readonly verify: string | null;
|
|
787
|
+
}[];
|
|
788
|
+
readonly prompt: string;
|
|
789
|
+
readonly tasks: readonly {
|
|
790
|
+
readonly harness: "cursor" | "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen";
|
|
791
|
+
readonly model: string;
|
|
792
|
+
readonly provider: "daytona" | "e2b" | "upstash" | "modal" | "cloudflare" | "vercel";
|
|
793
|
+
}[];
|
|
794
|
+
readonly trials: number;
|
|
795
|
+
};
|
|
796
|
+
readonly withResponse?: WithResponse | undefined;
|
|
797
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
798
|
+
readonly id: string;
|
|
799
|
+
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
800
|
+
readonly id: string;
|
|
801
|
+
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | Forbidden | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
802
|
+
readonly get: <WithResponse extends boolean = false>(request: {
|
|
803
|
+
readonly payload: {
|
|
804
|
+
readonly id: string;
|
|
805
|
+
};
|
|
806
|
+
readonly withResponse?: WithResponse | undefined;
|
|
807
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
808
|
+
readonly id: string;
|
|
809
|
+
readonly failure: string | null;
|
|
810
|
+
readonly finishedAt: import("effect/DateTime").Utc | null;
|
|
811
|
+
readonly startedAt: import("effect/DateTime").Utc;
|
|
812
|
+
readonly status: "running" | "finished" | "failed";
|
|
813
|
+
readonly cases: readonly string[];
|
|
814
|
+
readonly tasks: readonly {
|
|
815
|
+
readonly harness: "cursor" | "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen";
|
|
816
|
+
readonly harnessVersion: string;
|
|
817
|
+
readonly model: string;
|
|
818
|
+
readonly provider: "daytona" | "e2b" | "upstash" | "modal" | "cloudflare" | "vercel";
|
|
819
|
+
}[];
|
|
820
|
+
readonly cells: readonly {
|
|
821
|
+
readonly status: "running" | "finished" | "failed";
|
|
822
|
+
readonly setup: {
|
|
823
|
+
readonly prompt: string;
|
|
824
|
+
readonly repoRef: string | null;
|
|
825
|
+
readonly repoUrl: string | null;
|
|
826
|
+
readonly setupCommand: string | null;
|
|
827
|
+
readonly validatorName: string | null;
|
|
828
|
+
readonly verifyCommand: string | null;
|
|
829
|
+
readonly workspace: string;
|
|
830
|
+
} | null;
|
|
831
|
+
readonly trials: readonly {
|
|
832
|
+
readonly passed: boolean;
|
|
833
|
+
readonly status: "passed" | "running" | "failed" | "queued" | "void" | "exceeded";
|
|
834
|
+
readonly commands: number;
|
|
835
|
+
readonly exitCode: number;
|
|
836
|
+
readonly failedCommands: number;
|
|
837
|
+
readonly filesChanged: readonly string[];
|
|
838
|
+
readonly modelMs: number;
|
|
839
|
+
readonly ordinal: number;
|
|
840
|
+
readonly sandboxId: string | null;
|
|
841
|
+
readonly sandboxMs: number;
|
|
842
|
+
readonly timed: boolean;
|
|
843
|
+
readonly trajectory: readonly ({
|
|
844
|
+
readonly startedAtMillis: number | null;
|
|
845
|
+
readonly exitCode: number | null;
|
|
846
|
+
readonly _tag: "command";
|
|
847
|
+
readonly command: string;
|
|
848
|
+
readonly finishedAtMillis: number | null;
|
|
849
|
+
readonly output: string;
|
|
850
|
+
} | {
|
|
851
|
+
readonly _tag: "message";
|
|
852
|
+
readonly finishedAtMillis: number | null;
|
|
853
|
+
readonly text: string;
|
|
854
|
+
readonly usage?: {
|
|
855
|
+
readonly cacheReadTokens: number;
|
|
856
|
+
readonly cacheWriteTokens: number;
|
|
857
|
+
readonly costUsd?: number | null | undefined;
|
|
858
|
+
readonly inputTokens: number;
|
|
859
|
+
readonly outputTokens: number;
|
|
860
|
+
readonly totalTokens: number;
|
|
861
|
+
} | null | undefined;
|
|
862
|
+
} | {
|
|
863
|
+
readonly startedAtMillis?: number | null | undefined;
|
|
864
|
+
readonly name: string;
|
|
865
|
+
readonly status: string | null;
|
|
866
|
+
readonly _tag: "toolCall";
|
|
867
|
+
readonly finishedAtMillis: number | null;
|
|
868
|
+
} | {
|
|
869
|
+
readonly _tag: "fileChange";
|
|
870
|
+
readonly finishedAtMillis: number | null;
|
|
871
|
+
readonly paths: readonly string[];
|
|
872
|
+
})[];
|
|
873
|
+
readonly usage: {
|
|
874
|
+
readonly cacheReadTokens: number;
|
|
875
|
+
readonly cacheWriteTokens: number;
|
|
876
|
+
readonly costUsd?: number | null | undefined;
|
|
877
|
+
readonly inputTokens: number;
|
|
878
|
+
readonly outputTokens: number;
|
|
879
|
+
readonly totalTokens: number;
|
|
880
|
+
} | null;
|
|
881
|
+
readonly verifySteps: readonly {
|
|
882
|
+
readonly exitCode: number;
|
|
883
|
+
readonly command: string;
|
|
884
|
+
}[];
|
|
885
|
+
readonly voidFields: readonly string[];
|
|
886
|
+
}[];
|
|
887
|
+
readonly caseName: string;
|
|
888
|
+
readonly cellKey: string | null;
|
|
889
|
+
readonly comparison: {
|
|
890
|
+
readonly baselinePassRate: number;
|
|
891
|
+
readonly candidatePassRate: number;
|
|
892
|
+
readonly delta: number;
|
|
893
|
+
readonly determinismLost: boolean;
|
|
894
|
+
readonly reason: string | null;
|
|
895
|
+
readonly verdict: "improved" | "incomparable" | "regressed" | "unchanged";
|
|
896
|
+
} | null;
|
|
897
|
+
readonly distribution: {
|
|
898
|
+
readonly commandMax: number;
|
|
899
|
+
readonly commandMin: number;
|
|
900
|
+
readonly passed: number;
|
|
901
|
+
readonly scored: number;
|
|
902
|
+
readonly failed: number;
|
|
903
|
+
readonly voided: number;
|
|
904
|
+
readonly trials: number;
|
|
905
|
+
readonly commandMedian: number;
|
|
906
|
+
readonly deterministic: boolean;
|
|
907
|
+
readonly passRate: number;
|
|
908
|
+
} | null;
|
|
909
|
+
readonly internalId: string | null;
|
|
910
|
+
readonly taskIndex: number;
|
|
911
|
+
}[];
|
|
912
|
+
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
913
|
+
readonly id: string;
|
|
914
|
+
readonly failure: string | null;
|
|
915
|
+
readonly finishedAt: import("effect/DateTime").Utc | null;
|
|
916
|
+
readonly startedAt: import("effect/DateTime").Utc;
|
|
917
|
+
readonly status: "running" | "finished" | "failed";
|
|
918
|
+
readonly cases: readonly string[];
|
|
919
|
+
readonly tasks: readonly {
|
|
920
|
+
readonly harness: "cursor" | "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen";
|
|
921
|
+
readonly harnessVersion: string;
|
|
922
|
+
readonly model: string;
|
|
923
|
+
readonly provider: "daytona" | "e2b" | "upstash" | "modal" | "cloudflare" | "vercel";
|
|
924
|
+
}[];
|
|
925
|
+
readonly cells: readonly {
|
|
926
|
+
readonly status: "running" | "finished" | "failed";
|
|
927
|
+
readonly setup: {
|
|
928
|
+
readonly prompt: string;
|
|
929
|
+
readonly repoRef: string | null;
|
|
930
|
+
readonly repoUrl: string | null;
|
|
931
|
+
readonly setupCommand: string | null;
|
|
932
|
+
readonly validatorName: string | null;
|
|
933
|
+
readonly verifyCommand: string | null;
|
|
934
|
+
readonly workspace: string;
|
|
935
|
+
} | null;
|
|
936
|
+
readonly trials: readonly {
|
|
937
|
+
readonly passed: boolean;
|
|
938
|
+
readonly status: "passed" | "running" | "failed" | "queued" | "void" | "exceeded";
|
|
939
|
+
readonly commands: number;
|
|
940
|
+
readonly exitCode: number;
|
|
941
|
+
readonly failedCommands: number;
|
|
942
|
+
readonly filesChanged: readonly string[];
|
|
943
|
+
readonly modelMs: number;
|
|
944
|
+
readonly ordinal: number;
|
|
945
|
+
readonly sandboxId: string | null;
|
|
946
|
+
readonly sandboxMs: number;
|
|
947
|
+
readonly timed: boolean;
|
|
948
|
+
readonly trajectory: readonly ({
|
|
949
|
+
readonly startedAtMillis: number | null;
|
|
950
|
+
readonly exitCode: number | null;
|
|
951
|
+
readonly _tag: "command";
|
|
952
|
+
readonly command: string;
|
|
953
|
+
readonly finishedAtMillis: number | null;
|
|
954
|
+
readonly output: string;
|
|
955
|
+
} | {
|
|
956
|
+
readonly _tag: "message";
|
|
957
|
+
readonly finishedAtMillis: number | null;
|
|
958
|
+
readonly text: string;
|
|
959
|
+
readonly usage?: {
|
|
960
|
+
readonly cacheReadTokens: number;
|
|
961
|
+
readonly cacheWriteTokens: number;
|
|
962
|
+
readonly costUsd?: number | null | undefined;
|
|
963
|
+
readonly inputTokens: number;
|
|
964
|
+
readonly outputTokens: number;
|
|
965
|
+
readonly totalTokens: number;
|
|
966
|
+
} | null | undefined;
|
|
967
|
+
} | {
|
|
968
|
+
readonly startedAtMillis?: number | null | undefined;
|
|
969
|
+
readonly name: string;
|
|
970
|
+
readonly status: string | null;
|
|
971
|
+
readonly _tag: "toolCall";
|
|
972
|
+
readonly finishedAtMillis: number | null;
|
|
973
|
+
} | {
|
|
974
|
+
readonly _tag: "fileChange";
|
|
975
|
+
readonly finishedAtMillis: number | null;
|
|
976
|
+
readonly paths: readonly string[];
|
|
977
|
+
})[];
|
|
978
|
+
readonly usage: {
|
|
979
|
+
readonly cacheReadTokens: number;
|
|
980
|
+
readonly cacheWriteTokens: number;
|
|
981
|
+
readonly costUsd?: number | null | undefined;
|
|
982
|
+
readonly inputTokens: number;
|
|
983
|
+
readonly outputTokens: number;
|
|
984
|
+
readonly totalTokens: number;
|
|
985
|
+
} | null;
|
|
986
|
+
readonly verifySteps: readonly {
|
|
987
|
+
readonly exitCode: number;
|
|
988
|
+
readonly command: string;
|
|
989
|
+
}[];
|
|
990
|
+
readonly voidFields: readonly string[];
|
|
991
|
+
}[];
|
|
992
|
+
readonly caseName: string;
|
|
993
|
+
readonly cellKey: string | null;
|
|
994
|
+
readonly comparison: {
|
|
995
|
+
readonly baselinePassRate: number;
|
|
996
|
+
readonly candidatePassRate: number;
|
|
997
|
+
readonly delta: number;
|
|
998
|
+
readonly determinismLost: boolean;
|
|
999
|
+
readonly reason: string | null;
|
|
1000
|
+
readonly verdict: "improved" | "incomparable" | "regressed" | "unchanged";
|
|
1001
|
+
} | null;
|
|
1002
|
+
readonly distribution: {
|
|
1003
|
+
readonly commandMax: number;
|
|
1004
|
+
readonly commandMin: number;
|
|
1005
|
+
readonly passed: number;
|
|
1006
|
+
readonly scored: number;
|
|
1007
|
+
readonly failed: number;
|
|
1008
|
+
readonly voided: number;
|
|
1009
|
+
readonly trials: number;
|
|
1010
|
+
readonly commandMedian: number;
|
|
1011
|
+
readonly deterministic: boolean;
|
|
1012
|
+
readonly passRate: number;
|
|
1013
|
+
} | null;
|
|
1014
|
+
readonly internalId: string | null;
|
|
1015
|
+
readonly taskIndex: number;
|
|
1016
|
+
}[];
|
|
1017
|
+
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | Forbidden | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
1018
|
+
readonly cellHistory: <WithResponse extends boolean = false>(request: {
|
|
1019
|
+
readonly payload: {
|
|
1020
|
+
readonly cellKey: string;
|
|
1021
|
+
};
|
|
1022
|
+
readonly withResponse?: WithResponse | undefined;
|
|
1023
|
+
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
1024
|
+
readonly finishedAt: import("effect/DateTime").Utc | null;
|
|
1025
|
+
readonly trials: readonly {
|
|
1026
|
+
readonly passed: boolean;
|
|
1027
|
+
readonly status: "passed" | "running" | "failed" | "queued" | "void" | "exceeded";
|
|
1028
|
+
readonly commands: number;
|
|
1029
|
+
readonly exitCode: number;
|
|
1030
|
+
readonly failedCommands: number;
|
|
1031
|
+
readonly filesChanged: readonly string[];
|
|
1032
|
+
readonly modelMs: number;
|
|
1033
|
+
readonly ordinal: number;
|
|
1034
|
+
readonly sandboxId: string | null;
|
|
1035
|
+
readonly sandboxMs: number;
|
|
1036
|
+
readonly timed: boolean;
|
|
1037
|
+
readonly trajectory: readonly ({
|
|
1038
|
+
readonly startedAtMillis: number | null;
|
|
1039
|
+
readonly exitCode: number | null;
|
|
1040
|
+
readonly _tag: "command";
|
|
1041
|
+
readonly command: string;
|
|
1042
|
+
readonly finishedAtMillis: number | null;
|
|
1043
|
+
readonly output: string;
|
|
1044
|
+
} | {
|
|
1045
|
+
readonly _tag: "message";
|
|
1046
|
+
readonly finishedAtMillis: number | null;
|
|
1047
|
+
readonly text: string;
|
|
1048
|
+
readonly usage?: {
|
|
1049
|
+
readonly cacheReadTokens: number;
|
|
1050
|
+
readonly cacheWriteTokens: number;
|
|
1051
|
+
readonly costUsd?: number | null | undefined;
|
|
1052
|
+
readonly inputTokens: number;
|
|
1053
|
+
readonly outputTokens: number;
|
|
1054
|
+
readonly totalTokens: number;
|
|
1055
|
+
} | null | undefined;
|
|
1056
|
+
} | {
|
|
1057
|
+
readonly startedAtMillis?: number | null | undefined;
|
|
1058
|
+
readonly name: string;
|
|
1059
|
+
readonly status: string | null;
|
|
1060
|
+
readonly _tag: "toolCall";
|
|
1061
|
+
readonly finishedAtMillis: number | null;
|
|
1062
|
+
} | {
|
|
1063
|
+
readonly _tag: "fileChange";
|
|
1064
|
+
readonly finishedAtMillis: number | null;
|
|
1065
|
+
readonly paths: readonly string[];
|
|
1066
|
+
})[];
|
|
1067
|
+
readonly usage: {
|
|
1068
|
+
readonly cacheReadTokens: number;
|
|
1069
|
+
readonly cacheWriteTokens: number;
|
|
1070
|
+
readonly costUsd?: number | null | undefined;
|
|
1071
|
+
readonly inputTokens: number;
|
|
1072
|
+
readonly outputTokens: number;
|
|
1073
|
+
readonly totalTokens: number;
|
|
1074
|
+
} | null;
|
|
1075
|
+
readonly verifySteps: readonly {
|
|
1076
|
+
readonly exitCode: number;
|
|
1077
|
+
readonly command: string;
|
|
1078
|
+
}[];
|
|
1079
|
+
readonly voidFields: readonly string[];
|
|
1080
|
+
}[];
|
|
1081
|
+
readonly distribution: {
|
|
1082
|
+
readonly commandMax: number;
|
|
1083
|
+
readonly commandMin: number;
|
|
1084
|
+
readonly passed: number;
|
|
1085
|
+
readonly scored: number;
|
|
1086
|
+
readonly failed: number;
|
|
1087
|
+
readonly voided: number;
|
|
1088
|
+
readonly trials: number;
|
|
1089
|
+
readonly commandMedian: number;
|
|
1090
|
+
readonly deterministic: boolean;
|
|
1091
|
+
readonly passRate: number;
|
|
1092
|
+
};
|
|
1093
|
+
readonly internalId: string;
|
|
1094
|
+
readonly runId: string;
|
|
1095
|
+
}[], import("@effect/platform/HttpClientResponse").HttpClientResponse] : readonly {
|
|
1096
|
+
readonly finishedAt: import("effect/DateTime").Utc | null;
|
|
1097
|
+
readonly trials: readonly {
|
|
1098
|
+
readonly passed: boolean;
|
|
1099
|
+
readonly status: "passed" | "running" | "failed" | "queued" | "void" | "exceeded";
|
|
1100
|
+
readonly commands: number;
|
|
1101
|
+
readonly exitCode: number;
|
|
1102
|
+
readonly failedCommands: number;
|
|
1103
|
+
readonly filesChanged: readonly string[];
|
|
1104
|
+
readonly modelMs: number;
|
|
1105
|
+
readonly ordinal: number;
|
|
1106
|
+
readonly sandboxId: string | null;
|
|
1107
|
+
readonly sandboxMs: number;
|
|
1108
|
+
readonly timed: boolean;
|
|
1109
|
+
readonly trajectory: readonly ({
|
|
1110
|
+
readonly startedAtMillis: number | null;
|
|
1111
|
+
readonly exitCode: number | null;
|
|
1112
|
+
readonly _tag: "command";
|
|
1113
|
+
readonly command: string;
|
|
1114
|
+
readonly finishedAtMillis: number | null;
|
|
1115
|
+
readonly output: string;
|
|
1116
|
+
} | {
|
|
1117
|
+
readonly _tag: "message";
|
|
1118
|
+
readonly finishedAtMillis: number | null;
|
|
1119
|
+
readonly text: string;
|
|
1120
|
+
readonly usage?: {
|
|
1121
|
+
readonly cacheReadTokens: number;
|
|
1122
|
+
readonly cacheWriteTokens: number;
|
|
1123
|
+
readonly costUsd?: number | null | undefined;
|
|
1124
|
+
readonly inputTokens: number;
|
|
1125
|
+
readonly outputTokens: number;
|
|
1126
|
+
readonly totalTokens: number;
|
|
1127
|
+
} | null | undefined;
|
|
1128
|
+
} | {
|
|
1129
|
+
readonly startedAtMillis?: number | null | undefined;
|
|
1130
|
+
readonly name: string;
|
|
1131
|
+
readonly status: string | null;
|
|
1132
|
+
readonly _tag: "toolCall";
|
|
1133
|
+
readonly finishedAtMillis: number | null;
|
|
1134
|
+
} | {
|
|
1135
|
+
readonly _tag: "fileChange";
|
|
1136
|
+
readonly finishedAtMillis: number | null;
|
|
1137
|
+
readonly paths: readonly string[];
|
|
1138
|
+
})[];
|
|
1139
|
+
readonly usage: {
|
|
1140
|
+
readonly cacheReadTokens: number;
|
|
1141
|
+
readonly cacheWriteTokens: number;
|
|
1142
|
+
readonly costUsd?: number | null | undefined;
|
|
1143
|
+
readonly inputTokens: number;
|
|
1144
|
+
readonly outputTokens: number;
|
|
1145
|
+
readonly totalTokens: number;
|
|
1146
|
+
} | null;
|
|
1147
|
+
readonly verifySteps: readonly {
|
|
1148
|
+
readonly exitCode: number;
|
|
1149
|
+
readonly command: string;
|
|
1150
|
+
}[];
|
|
1151
|
+
readonly voidFields: readonly string[];
|
|
1152
|
+
}[];
|
|
1153
|
+
readonly distribution: {
|
|
1154
|
+
readonly commandMax: number;
|
|
1155
|
+
readonly commandMin: number;
|
|
1156
|
+
readonly passed: number;
|
|
1157
|
+
readonly scored: number;
|
|
1158
|
+
readonly failed: number;
|
|
1159
|
+
readonly voided: number;
|
|
1160
|
+
readonly trials: number;
|
|
1161
|
+
readonly commandMedian: number;
|
|
1162
|
+
readonly deterministic: boolean;
|
|
1163
|
+
readonly passRate: number;
|
|
1164
|
+
};
|
|
1165
|
+
readonly internalId: string;
|
|
1166
|
+
readonly runId: string;
|
|
1167
|
+
}[], import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | Forbidden | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
1168
|
+
readonly rerunCell: <WithResponse extends boolean = false>(request: {
|
|
1169
|
+
readonly payload: {
|
|
1170
|
+
readonly id: string;
|
|
1171
|
+
} & {
|
|
1172
|
+
readonly cellKey: string;
|
|
1173
|
+
} & {
|
|
1174
|
+
readonly trials: number;
|
|
1175
|
+
};
|
|
1176
|
+
readonly withResponse?: WithResponse | undefined;
|
|
1177
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1178
|
+
readonly id: string;
|
|
1179
|
+
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
1180
|
+
readonly id: string;
|
|
1181
|
+
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | Forbidden | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
1182
|
+
readonly models: <WithResponse extends boolean = false>(request: {
|
|
1183
|
+
readonly payload: {
|
|
1184
|
+
readonly harness: "cursor" | "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen";
|
|
1185
|
+
readonly q?: string | undefined;
|
|
1186
|
+
};
|
|
1187
|
+
readonly withResponse?: WithResponse | undefined;
|
|
1188
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1189
|
+
readonly harness: "cursor" | "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen";
|
|
1190
|
+
readonly total: number;
|
|
1191
|
+
readonly models: readonly {
|
|
1192
|
+
readonly id: string;
|
|
1193
|
+
readonly displayName: string;
|
|
1194
|
+
readonly summary: string | null;
|
|
1195
|
+
readonly vendor: string | null;
|
|
1196
|
+
}[];
|
|
1197
|
+
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
1198
|
+
readonly harness: "cursor" | "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen";
|
|
1199
|
+
readonly total: number;
|
|
1200
|
+
readonly models: readonly {
|
|
1201
|
+
readonly id: string;
|
|
1202
|
+
readonly displayName: string;
|
|
1203
|
+
readonly summary: string | null;
|
|
1204
|
+
readonly vendor: string | null;
|
|
1205
|
+
}[];
|
|
1206
|
+
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | Forbidden | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
214
1207
|
};
|
|
215
|
-
}, never, HttpClient.HttpClient>;
|
|
216
|
-
type AnpordClient = Effect.Effect.Success<ReturnType<typeof make>>;
|
|
217
|
-
declare const AnpordApi_base: import("effect/Context").TagClass<AnpordApi, "@anpord/sdk/AnpordApi", {
|
|
218
1208
|
readonly prompts: {
|
|
219
1209
|
readonly get: <WithResponse extends boolean = false>(request: {
|
|
220
1210
|
readonly payload: {
|
|
221
|
-
readonly channel?: (string & import("effect/Brand").Brand<"ChannelName">) | undefined;
|
|
222
1211
|
readonly id: string & import("effect/Brand").Brand<"PromptId">;
|
|
1212
|
+
readonly channel?: (string & import("effect/Brand").Brand<"ChannelName">) | undefined;
|
|
223
1213
|
readonly includeVersions?: boolean | undefined;
|
|
224
1214
|
readonly version?: (number & import("effect/Brand").Brand<"VersionNumber">) | undefined;
|
|
225
1215
|
};
|
|
226
1216
|
readonly withResponse?: WithResponse | undefined;
|
|
227
1217
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
228
|
-
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
229
|
-
readonly message: string | null;
|
|
230
1218
|
readonly id: string & import("effect/Brand").Brand<"PromptId">;
|
|
1219
|
+
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
1220
|
+
readonly message: string | null;
|
|
1221
|
+
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
231
1222
|
readonly version: number & import("effect/Brand").Brand<"VersionNumber">;
|
|
232
1223
|
readonly config: {
|
|
233
1224
|
readonly [x: string]: unknown;
|
|
234
1225
|
};
|
|
235
1226
|
readonly content: string;
|
|
236
1227
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
237
|
-
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
238
1228
|
} & {
|
|
239
1229
|
readonly versions?: readonly {
|
|
240
1230
|
readonly message: string | null;
|
|
@@ -242,25 +1232,27 @@ declare const AnpordApi_base: import("effect/Context").TagClass<AnpordApi, "@anp
|
|
|
242
1232
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
243
1233
|
}[] | undefined;
|
|
244
1234
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
245
|
-
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
246
|
-
readonly message: string | null;
|
|
247
1235
|
readonly id: string & import("effect/Brand").Brand<"PromptId">;
|
|
1236
|
+
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
1237
|
+
readonly message: string | null;
|
|
1238
|
+
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
248
1239
|
readonly version: number & import("effect/Brand").Brand<"VersionNumber">;
|
|
249
1240
|
readonly config: {
|
|
250
1241
|
readonly [x: string]: unknown;
|
|
251
1242
|
};
|
|
252
1243
|
readonly content: string;
|
|
253
1244
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
254
|
-
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
255
1245
|
} & {
|
|
256
1246
|
readonly versions?: readonly {
|
|
257
1247
|
readonly message: string | null;
|
|
258
1248
|
readonly version: number & import("effect/Brand").Brand<"VersionNumber">;
|
|
259
1249
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
260
1250
|
}[] | undefined;
|
|
261
|
-
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
1251
|
+
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | Forbidden | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
262
1252
|
readonly list: <WithResponse extends boolean = false>(request: {
|
|
263
|
-
readonly payload: {
|
|
1253
|
+
readonly payload: {
|
|
1254
|
+
readonly [x: string]: never;
|
|
1255
|
+
};
|
|
264
1256
|
readonly withResponse?: WithResponse | undefined;
|
|
265
1257
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
266
1258
|
readonly data: readonly {
|
|
@@ -278,30 +1270,30 @@ declare const AnpordApi_base: import("effect/Context").TagClass<AnpordApi, "@anp
|
|
|
278
1270
|
readonly productionVersion: (number & import("effect/Brand").Brand<"VersionNumber">) | null;
|
|
279
1271
|
readonly updatedAt: import("effect/DateTime").Utc;
|
|
280
1272
|
}[];
|
|
281
|
-
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
1273
|
+
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | Forbidden | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
282
1274
|
readonly create: <WithResponse extends boolean = false>(request: {
|
|
283
1275
|
readonly payload: {
|
|
284
|
-
readonly message?: string | undefined;
|
|
285
1276
|
readonly id: string & import("effect/Brand").Brand<"PromptId">;
|
|
1277
|
+
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
1278
|
+
readonly message?: string | undefined;
|
|
286
1279
|
readonly config?: {
|
|
287
1280
|
readonly [x: string]: unknown;
|
|
288
1281
|
} | undefined;
|
|
289
1282
|
readonly content: string;
|
|
290
|
-
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
291
1283
|
readonly description?: string | undefined;
|
|
292
1284
|
};
|
|
293
1285
|
readonly withResponse?: WithResponse | undefined;
|
|
294
1286
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
295
|
-
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
296
|
-
readonly message: string | null;
|
|
297
1287
|
readonly id: string & import("effect/Brand").Brand<"PromptId">;
|
|
1288
|
+
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
1289
|
+
readonly message: string | null;
|
|
1290
|
+
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
298
1291
|
readonly version: number & import("effect/Brand").Brand<"VersionNumber">;
|
|
299
1292
|
readonly config: {
|
|
300
1293
|
readonly [x: string]: unknown;
|
|
301
1294
|
};
|
|
302
1295
|
readonly content: string;
|
|
303
1296
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
304
|
-
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
305
1297
|
} & {
|
|
306
1298
|
readonly versions?: readonly {
|
|
307
1299
|
readonly message: string | null;
|
|
@@ -309,27 +1301,27 @@ declare const AnpordApi_base: import("effect/Context").TagClass<AnpordApi, "@anp
|
|
|
309
1301
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
310
1302
|
}[] | undefined;
|
|
311
1303
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
312
|
-
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
313
|
-
readonly message: string | null;
|
|
314
1304
|
readonly id: string & import("effect/Brand").Brand<"PromptId">;
|
|
1305
|
+
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
1306
|
+
readonly message: string | null;
|
|
1307
|
+
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
315
1308
|
readonly version: number & import("effect/Brand").Brand<"VersionNumber">;
|
|
316
1309
|
readonly config: {
|
|
317
1310
|
readonly [x: string]: unknown;
|
|
318
1311
|
};
|
|
319
1312
|
readonly content: string;
|
|
320
1313
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
321
|
-
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
322
1314
|
} & {
|
|
323
1315
|
readonly versions?: readonly {
|
|
324
1316
|
readonly message: string | null;
|
|
325
1317
|
readonly version: number & import("effect/Brand").Brand<"VersionNumber">;
|
|
326
1318
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
327
1319
|
}[] | undefined;
|
|
328
|
-
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
1320
|
+
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | Forbidden | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
329
1321
|
readonly update: <WithResponse extends boolean = false>(request: {
|
|
330
1322
|
readonly payload: {
|
|
331
|
-
readonly message?: string | undefined;
|
|
332
1323
|
readonly id: string & import("effect/Brand").Brand<"PromptId">;
|
|
1324
|
+
readonly message?: string | undefined;
|
|
333
1325
|
readonly config?: {
|
|
334
1326
|
readonly [x: string]: unknown;
|
|
335
1327
|
} | undefined;
|
|
@@ -337,16 +1329,16 @@ declare const AnpordApi_base: import("effect/Context").TagClass<AnpordApi, "@anp
|
|
|
337
1329
|
};
|
|
338
1330
|
readonly withResponse?: WithResponse | undefined;
|
|
339
1331
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
340
|
-
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
341
|
-
readonly message: string | null;
|
|
342
1332
|
readonly id: string & import("effect/Brand").Brand<"PromptId">;
|
|
1333
|
+
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
1334
|
+
readonly message: string | null;
|
|
1335
|
+
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
343
1336
|
readonly version: number & import("effect/Brand").Brand<"VersionNumber">;
|
|
344
1337
|
readonly config: {
|
|
345
1338
|
readonly [x: string]: unknown;
|
|
346
1339
|
};
|
|
347
1340
|
readonly content: string;
|
|
348
1341
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
349
|
-
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
350
1342
|
} & {
|
|
351
1343
|
readonly versions?: readonly {
|
|
352
1344
|
readonly message: string | null;
|
|
@@ -354,27 +1346,27 @@ declare const AnpordApi_base: import("effect/Context").TagClass<AnpordApi, "@anp
|
|
|
354
1346
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
355
1347
|
}[] | undefined;
|
|
356
1348
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
357
|
-
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
358
|
-
readonly message: string | null;
|
|
359
1349
|
readonly id: string & import("effect/Brand").Brand<"PromptId">;
|
|
1350
|
+
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
1351
|
+
readonly message: string | null;
|
|
1352
|
+
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
360
1353
|
readonly version: number & import("effect/Brand").Brand<"VersionNumber">;
|
|
361
1354
|
readonly config: {
|
|
362
1355
|
readonly [x: string]: unknown;
|
|
363
1356
|
};
|
|
364
1357
|
readonly content: string;
|
|
365
1358
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
366
|
-
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
367
1359
|
} & {
|
|
368
1360
|
readonly versions?: readonly {
|
|
369
1361
|
readonly message: string | null;
|
|
370
1362
|
readonly version: number & import("effect/Brand").Brand<"VersionNumber">;
|
|
371
1363
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
372
1364
|
}[] | undefined;
|
|
373
|
-
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
1365
|
+
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | Forbidden | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
374
1366
|
readonly promote: <WithResponse extends boolean = false>(request: {
|
|
375
1367
|
readonly payload: {
|
|
376
|
-
readonly channel: string & import("effect/Brand").Brand<"ChannelName">;
|
|
377
1368
|
readonly id: string & import("effect/Brand").Brand<"PromptId">;
|
|
1369
|
+
readonly channel: string & import("effect/Brand").Brand<"ChannelName">;
|
|
378
1370
|
readonly version: number & import("effect/Brand").Brand<"VersionNumber">;
|
|
379
1371
|
};
|
|
380
1372
|
readonly withResponse?: WithResponse | undefined;
|
|
@@ -382,39 +1374,540 @@ declare const AnpordApi_base: import("effect/Context").TagClass<AnpordApi, "@anp
|
|
|
382
1374
|
readonly ok: true;
|
|
383
1375
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
384
1376
|
readonly ok: true;
|
|
385
|
-
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
386
|
-
|
|
1377
|
+
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | Forbidden | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
1378
|
+
};
|
|
1379
|
+
}> & Effect.Tag.Proxy<AnpordApi, {
|
|
1380
|
+
readonly evals: {
|
|
1381
|
+
readonly list: <WithResponse extends boolean = false>(request: {
|
|
387
1382
|
readonly payload: {
|
|
388
|
-
readonly
|
|
1383
|
+
readonly cursor?: {
|
|
1384
|
+
readonly id: string;
|
|
1385
|
+
readonly startedAtMillis: number;
|
|
1386
|
+
} | null | undefined;
|
|
1387
|
+
readonly limit?: number | undefined;
|
|
389
1388
|
};
|
|
390
1389
|
readonly withResponse?: WithResponse | undefined;
|
|
391
1390
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
392
|
-
readonly
|
|
1391
|
+
readonly next: {
|
|
1392
|
+
readonly id: string;
|
|
1393
|
+
readonly startedAtMillis: number;
|
|
1394
|
+
} | null;
|
|
1395
|
+
readonly runs: readonly {
|
|
1396
|
+
readonly id: string;
|
|
1397
|
+
readonly caseCount: number;
|
|
1398
|
+
readonly columns: readonly {
|
|
1399
|
+
readonly harness: "cursor" | "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen";
|
|
1400
|
+
readonly harnessVersion: string;
|
|
1401
|
+
readonly model: string;
|
|
1402
|
+
readonly provider: "daytona" | "e2b" | "upstash" | "modal" | "cloudflare" | "vercel";
|
|
1403
|
+
}[];
|
|
1404
|
+
readonly commandMax: number | null;
|
|
1405
|
+
readonly commandMin: number | null;
|
|
1406
|
+
readonly failure: string | null;
|
|
1407
|
+
readonly finishedAt: import("effect/DateTime").Utc | null;
|
|
1408
|
+
readonly name: string | null;
|
|
1409
|
+
readonly passed: number;
|
|
1410
|
+
readonly scored: number;
|
|
1411
|
+
readonly startedAt: import("effect/DateTime").Utc;
|
|
1412
|
+
readonly status: "running" | "finished" | "failed";
|
|
1413
|
+
readonly taskCount: number;
|
|
1414
|
+
readonly voided: number;
|
|
1415
|
+
}[];
|
|
1416
|
+
readonly total: number;
|
|
393
1417
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
394
|
-
readonly
|
|
395
|
-
|
|
1418
|
+
readonly next: {
|
|
1419
|
+
readonly id: string;
|
|
1420
|
+
readonly startedAtMillis: number;
|
|
1421
|
+
} | null;
|
|
1422
|
+
readonly runs: readonly {
|
|
1423
|
+
readonly id: string;
|
|
1424
|
+
readonly caseCount: number;
|
|
1425
|
+
readonly columns: readonly {
|
|
1426
|
+
readonly harness: "cursor" | "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen";
|
|
1427
|
+
readonly harnessVersion: string;
|
|
1428
|
+
readonly model: string;
|
|
1429
|
+
readonly provider: "daytona" | "e2b" | "upstash" | "modal" | "cloudflare" | "vercel";
|
|
1430
|
+
}[];
|
|
1431
|
+
readonly commandMax: number | null;
|
|
1432
|
+
readonly commandMin: number | null;
|
|
1433
|
+
readonly failure: string | null;
|
|
1434
|
+
readonly finishedAt: import("effect/DateTime").Utc | null;
|
|
1435
|
+
readonly name: string | null;
|
|
1436
|
+
readonly passed: number;
|
|
1437
|
+
readonly scored: number;
|
|
1438
|
+
readonly startedAt: import("effect/DateTime").Utc;
|
|
1439
|
+
readonly status: "running" | "finished" | "failed";
|
|
1440
|
+
readonly taskCount: number;
|
|
1441
|
+
readonly voided: number;
|
|
1442
|
+
}[];
|
|
1443
|
+
readonly total: number;
|
|
1444
|
+
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | Forbidden | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
1445
|
+
readonly start: <WithResponse extends boolean = false>(request: {
|
|
1446
|
+
readonly payload: {
|
|
1447
|
+
readonly cases: readonly {
|
|
1448
|
+
readonly name: string;
|
|
1449
|
+
readonly setup?: string | null | undefined;
|
|
1450
|
+
readonly source?: {
|
|
1451
|
+
readonly kind: "empty";
|
|
1452
|
+
} | {
|
|
1453
|
+
readonly kind: "repo";
|
|
1454
|
+
readonly ref: string | null;
|
|
1455
|
+
readonly url: string;
|
|
1456
|
+
} | {
|
|
1457
|
+
readonly kind: "files";
|
|
1458
|
+
readonly files: {
|
|
1459
|
+
readonly [x: string]: string;
|
|
1460
|
+
};
|
|
1461
|
+
} | undefined;
|
|
1462
|
+
readonly validator?: {
|
|
1463
|
+
readonly name: string;
|
|
1464
|
+
readonly source: string;
|
|
1465
|
+
} | null | undefined;
|
|
1466
|
+
readonly variables?: {
|
|
1467
|
+
readonly [x: string]: string;
|
|
1468
|
+
} | undefined;
|
|
1469
|
+
readonly verify: string | null;
|
|
1470
|
+
}[];
|
|
1471
|
+
readonly prompt: string;
|
|
1472
|
+
readonly tasks: readonly {
|
|
1473
|
+
readonly harness: "cursor" | "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen";
|
|
1474
|
+
readonly model: string;
|
|
1475
|
+
readonly provider: "daytona" | "e2b" | "upstash" | "modal" | "cloudflare" | "vercel";
|
|
1476
|
+
}[];
|
|
1477
|
+
readonly trials: number;
|
|
1478
|
+
};
|
|
1479
|
+
readonly withResponse?: WithResponse | undefined;
|
|
1480
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1481
|
+
readonly id: string;
|
|
1482
|
+
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
1483
|
+
readonly id: string;
|
|
1484
|
+
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | Forbidden | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
1485
|
+
readonly get: <WithResponse extends boolean = false>(request: {
|
|
1486
|
+
readonly payload: {
|
|
1487
|
+
readonly id: string;
|
|
1488
|
+
};
|
|
1489
|
+
readonly withResponse?: WithResponse | undefined;
|
|
1490
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1491
|
+
readonly id: string;
|
|
1492
|
+
readonly failure: string | null;
|
|
1493
|
+
readonly finishedAt: import("effect/DateTime").Utc | null;
|
|
1494
|
+
readonly startedAt: import("effect/DateTime").Utc;
|
|
1495
|
+
readonly status: "running" | "finished" | "failed";
|
|
1496
|
+
readonly cases: readonly string[];
|
|
1497
|
+
readonly tasks: readonly {
|
|
1498
|
+
readonly harness: "cursor" | "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen";
|
|
1499
|
+
readonly harnessVersion: string;
|
|
1500
|
+
readonly model: string;
|
|
1501
|
+
readonly provider: "daytona" | "e2b" | "upstash" | "modal" | "cloudflare" | "vercel";
|
|
1502
|
+
}[];
|
|
1503
|
+
readonly cells: readonly {
|
|
1504
|
+
readonly status: "running" | "finished" | "failed";
|
|
1505
|
+
readonly setup: {
|
|
1506
|
+
readonly prompt: string;
|
|
1507
|
+
readonly repoRef: string | null;
|
|
1508
|
+
readonly repoUrl: string | null;
|
|
1509
|
+
readonly setupCommand: string | null;
|
|
1510
|
+
readonly validatorName: string | null;
|
|
1511
|
+
readonly verifyCommand: string | null;
|
|
1512
|
+
readonly workspace: string;
|
|
1513
|
+
} | null;
|
|
1514
|
+
readonly trials: readonly {
|
|
1515
|
+
readonly passed: boolean;
|
|
1516
|
+
readonly status: "passed" | "running" | "failed" | "queued" | "void" | "exceeded";
|
|
1517
|
+
readonly commands: number;
|
|
1518
|
+
readonly exitCode: number;
|
|
1519
|
+
readonly failedCommands: number;
|
|
1520
|
+
readonly filesChanged: readonly string[];
|
|
1521
|
+
readonly modelMs: number;
|
|
1522
|
+
readonly ordinal: number;
|
|
1523
|
+
readonly sandboxId: string | null;
|
|
1524
|
+
readonly sandboxMs: number;
|
|
1525
|
+
readonly timed: boolean;
|
|
1526
|
+
readonly trajectory: readonly ({
|
|
1527
|
+
readonly startedAtMillis: number | null;
|
|
1528
|
+
readonly exitCode: number | null;
|
|
1529
|
+
readonly _tag: "command";
|
|
1530
|
+
readonly command: string;
|
|
1531
|
+
readonly finishedAtMillis: number | null;
|
|
1532
|
+
readonly output: string;
|
|
1533
|
+
} | {
|
|
1534
|
+
readonly _tag: "message";
|
|
1535
|
+
readonly finishedAtMillis: number | null;
|
|
1536
|
+
readonly text: string;
|
|
1537
|
+
readonly usage?: {
|
|
1538
|
+
readonly cacheReadTokens: number;
|
|
1539
|
+
readonly cacheWriteTokens: number;
|
|
1540
|
+
readonly costUsd?: number | null | undefined;
|
|
1541
|
+
readonly inputTokens: number;
|
|
1542
|
+
readonly outputTokens: number;
|
|
1543
|
+
readonly totalTokens: number;
|
|
1544
|
+
} | null | undefined;
|
|
1545
|
+
} | {
|
|
1546
|
+
readonly startedAtMillis?: number | null | undefined;
|
|
1547
|
+
readonly name: string;
|
|
1548
|
+
readonly status: string | null;
|
|
1549
|
+
readonly _tag: "toolCall";
|
|
1550
|
+
readonly finishedAtMillis: number | null;
|
|
1551
|
+
} | {
|
|
1552
|
+
readonly _tag: "fileChange";
|
|
1553
|
+
readonly finishedAtMillis: number | null;
|
|
1554
|
+
readonly paths: readonly string[];
|
|
1555
|
+
})[];
|
|
1556
|
+
readonly usage: {
|
|
1557
|
+
readonly cacheReadTokens: number;
|
|
1558
|
+
readonly cacheWriteTokens: number;
|
|
1559
|
+
readonly costUsd?: number | null | undefined;
|
|
1560
|
+
readonly inputTokens: number;
|
|
1561
|
+
readonly outputTokens: number;
|
|
1562
|
+
readonly totalTokens: number;
|
|
1563
|
+
} | null;
|
|
1564
|
+
readonly verifySteps: readonly {
|
|
1565
|
+
readonly exitCode: number;
|
|
1566
|
+
readonly command: string;
|
|
1567
|
+
}[];
|
|
1568
|
+
readonly voidFields: readonly string[];
|
|
1569
|
+
}[];
|
|
1570
|
+
readonly caseName: string;
|
|
1571
|
+
readonly cellKey: string | null;
|
|
1572
|
+
readonly comparison: {
|
|
1573
|
+
readonly baselinePassRate: number;
|
|
1574
|
+
readonly candidatePassRate: number;
|
|
1575
|
+
readonly delta: number;
|
|
1576
|
+
readonly determinismLost: boolean;
|
|
1577
|
+
readonly reason: string | null;
|
|
1578
|
+
readonly verdict: "improved" | "incomparable" | "regressed" | "unchanged";
|
|
1579
|
+
} | null;
|
|
1580
|
+
readonly distribution: {
|
|
1581
|
+
readonly commandMax: number;
|
|
1582
|
+
readonly commandMin: number;
|
|
1583
|
+
readonly passed: number;
|
|
1584
|
+
readonly scored: number;
|
|
1585
|
+
readonly failed: number;
|
|
1586
|
+
readonly voided: number;
|
|
1587
|
+
readonly trials: number;
|
|
1588
|
+
readonly commandMedian: number;
|
|
1589
|
+
readonly deterministic: boolean;
|
|
1590
|
+
readonly passRate: number;
|
|
1591
|
+
} | null;
|
|
1592
|
+
readonly internalId: string | null;
|
|
1593
|
+
readonly taskIndex: number;
|
|
1594
|
+
}[];
|
|
1595
|
+
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
1596
|
+
readonly id: string;
|
|
1597
|
+
readonly failure: string | null;
|
|
1598
|
+
readonly finishedAt: import("effect/DateTime").Utc | null;
|
|
1599
|
+
readonly startedAt: import("effect/DateTime").Utc;
|
|
1600
|
+
readonly status: "running" | "finished" | "failed";
|
|
1601
|
+
readonly cases: readonly string[];
|
|
1602
|
+
readonly tasks: readonly {
|
|
1603
|
+
readonly harness: "cursor" | "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen";
|
|
1604
|
+
readonly harnessVersion: string;
|
|
1605
|
+
readonly model: string;
|
|
1606
|
+
readonly provider: "daytona" | "e2b" | "upstash" | "modal" | "cloudflare" | "vercel";
|
|
1607
|
+
}[];
|
|
1608
|
+
readonly cells: readonly {
|
|
1609
|
+
readonly status: "running" | "finished" | "failed";
|
|
1610
|
+
readonly setup: {
|
|
1611
|
+
readonly prompt: string;
|
|
1612
|
+
readonly repoRef: string | null;
|
|
1613
|
+
readonly repoUrl: string | null;
|
|
1614
|
+
readonly setupCommand: string | null;
|
|
1615
|
+
readonly validatorName: string | null;
|
|
1616
|
+
readonly verifyCommand: string | null;
|
|
1617
|
+
readonly workspace: string;
|
|
1618
|
+
} | null;
|
|
1619
|
+
readonly trials: readonly {
|
|
1620
|
+
readonly passed: boolean;
|
|
1621
|
+
readonly status: "passed" | "running" | "failed" | "queued" | "void" | "exceeded";
|
|
1622
|
+
readonly commands: number;
|
|
1623
|
+
readonly exitCode: number;
|
|
1624
|
+
readonly failedCommands: number;
|
|
1625
|
+
readonly filesChanged: readonly string[];
|
|
1626
|
+
readonly modelMs: number;
|
|
1627
|
+
readonly ordinal: number;
|
|
1628
|
+
readonly sandboxId: string | null;
|
|
1629
|
+
readonly sandboxMs: number;
|
|
1630
|
+
readonly timed: boolean;
|
|
1631
|
+
readonly trajectory: readonly ({
|
|
1632
|
+
readonly startedAtMillis: number | null;
|
|
1633
|
+
readonly exitCode: number | null;
|
|
1634
|
+
readonly _tag: "command";
|
|
1635
|
+
readonly command: string;
|
|
1636
|
+
readonly finishedAtMillis: number | null;
|
|
1637
|
+
readonly output: string;
|
|
1638
|
+
} | {
|
|
1639
|
+
readonly _tag: "message";
|
|
1640
|
+
readonly finishedAtMillis: number | null;
|
|
1641
|
+
readonly text: string;
|
|
1642
|
+
readonly usage?: {
|
|
1643
|
+
readonly cacheReadTokens: number;
|
|
1644
|
+
readonly cacheWriteTokens: number;
|
|
1645
|
+
readonly costUsd?: number | null | undefined;
|
|
1646
|
+
readonly inputTokens: number;
|
|
1647
|
+
readonly outputTokens: number;
|
|
1648
|
+
readonly totalTokens: number;
|
|
1649
|
+
} | null | undefined;
|
|
1650
|
+
} | {
|
|
1651
|
+
readonly startedAtMillis?: number | null | undefined;
|
|
1652
|
+
readonly name: string;
|
|
1653
|
+
readonly status: string | null;
|
|
1654
|
+
readonly _tag: "toolCall";
|
|
1655
|
+
readonly finishedAtMillis: number | null;
|
|
1656
|
+
} | {
|
|
1657
|
+
readonly _tag: "fileChange";
|
|
1658
|
+
readonly finishedAtMillis: number | null;
|
|
1659
|
+
readonly paths: readonly string[];
|
|
1660
|
+
})[];
|
|
1661
|
+
readonly usage: {
|
|
1662
|
+
readonly cacheReadTokens: number;
|
|
1663
|
+
readonly cacheWriteTokens: number;
|
|
1664
|
+
readonly costUsd?: number | null | undefined;
|
|
1665
|
+
readonly inputTokens: number;
|
|
1666
|
+
readonly outputTokens: number;
|
|
1667
|
+
readonly totalTokens: number;
|
|
1668
|
+
} | null;
|
|
1669
|
+
readonly verifySteps: readonly {
|
|
1670
|
+
readonly exitCode: number;
|
|
1671
|
+
readonly command: string;
|
|
1672
|
+
}[];
|
|
1673
|
+
readonly voidFields: readonly string[];
|
|
1674
|
+
}[];
|
|
1675
|
+
readonly caseName: string;
|
|
1676
|
+
readonly cellKey: string | null;
|
|
1677
|
+
readonly comparison: {
|
|
1678
|
+
readonly baselinePassRate: number;
|
|
1679
|
+
readonly candidatePassRate: number;
|
|
1680
|
+
readonly delta: number;
|
|
1681
|
+
readonly determinismLost: boolean;
|
|
1682
|
+
readonly reason: string | null;
|
|
1683
|
+
readonly verdict: "improved" | "incomparable" | "regressed" | "unchanged";
|
|
1684
|
+
} | null;
|
|
1685
|
+
readonly distribution: {
|
|
1686
|
+
readonly commandMax: number;
|
|
1687
|
+
readonly commandMin: number;
|
|
1688
|
+
readonly passed: number;
|
|
1689
|
+
readonly scored: number;
|
|
1690
|
+
readonly failed: number;
|
|
1691
|
+
readonly voided: number;
|
|
1692
|
+
readonly trials: number;
|
|
1693
|
+
readonly commandMedian: number;
|
|
1694
|
+
readonly deterministic: boolean;
|
|
1695
|
+
readonly passRate: number;
|
|
1696
|
+
} | null;
|
|
1697
|
+
readonly internalId: string | null;
|
|
1698
|
+
readonly taskIndex: number;
|
|
1699
|
+
}[];
|
|
1700
|
+
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | Forbidden | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
1701
|
+
readonly cellHistory: <WithResponse extends boolean = false>(request: {
|
|
1702
|
+
readonly payload: {
|
|
1703
|
+
readonly cellKey: string;
|
|
1704
|
+
};
|
|
1705
|
+
readonly withResponse?: WithResponse | undefined;
|
|
1706
|
+
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
1707
|
+
readonly finishedAt: import("effect/DateTime").Utc | null;
|
|
1708
|
+
readonly trials: readonly {
|
|
1709
|
+
readonly passed: boolean;
|
|
1710
|
+
readonly status: "passed" | "running" | "failed" | "queued" | "void" | "exceeded";
|
|
1711
|
+
readonly commands: number;
|
|
1712
|
+
readonly exitCode: number;
|
|
1713
|
+
readonly failedCommands: number;
|
|
1714
|
+
readonly filesChanged: readonly string[];
|
|
1715
|
+
readonly modelMs: number;
|
|
1716
|
+
readonly ordinal: number;
|
|
1717
|
+
readonly sandboxId: string | null;
|
|
1718
|
+
readonly sandboxMs: number;
|
|
1719
|
+
readonly timed: boolean;
|
|
1720
|
+
readonly trajectory: readonly ({
|
|
1721
|
+
readonly startedAtMillis: number | null;
|
|
1722
|
+
readonly exitCode: number | null;
|
|
1723
|
+
readonly _tag: "command";
|
|
1724
|
+
readonly command: string;
|
|
1725
|
+
readonly finishedAtMillis: number | null;
|
|
1726
|
+
readonly output: string;
|
|
1727
|
+
} | {
|
|
1728
|
+
readonly _tag: "message";
|
|
1729
|
+
readonly finishedAtMillis: number | null;
|
|
1730
|
+
readonly text: string;
|
|
1731
|
+
readonly usage?: {
|
|
1732
|
+
readonly cacheReadTokens: number;
|
|
1733
|
+
readonly cacheWriteTokens: number;
|
|
1734
|
+
readonly costUsd?: number | null | undefined;
|
|
1735
|
+
readonly inputTokens: number;
|
|
1736
|
+
readonly outputTokens: number;
|
|
1737
|
+
readonly totalTokens: number;
|
|
1738
|
+
} | null | undefined;
|
|
1739
|
+
} | {
|
|
1740
|
+
readonly startedAtMillis?: number | null | undefined;
|
|
1741
|
+
readonly name: string;
|
|
1742
|
+
readonly status: string | null;
|
|
1743
|
+
readonly _tag: "toolCall";
|
|
1744
|
+
readonly finishedAtMillis: number | null;
|
|
1745
|
+
} | {
|
|
1746
|
+
readonly _tag: "fileChange";
|
|
1747
|
+
readonly finishedAtMillis: number | null;
|
|
1748
|
+
readonly paths: readonly string[];
|
|
1749
|
+
})[];
|
|
1750
|
+
readonly usage: {
|
|
1751
|
+
readonly cacheReadTokens: number;
|
|
1752
|
+
readonly cacheWriteTokens: number;
|
|
1753
|
+
readonly costUsd?: number | null | undefined;
|
|
1754
|
+
readonly inputTokens: number;
|
|
1755
|
+
readonly outputTokens: number;
|
|
1756
|
+
readonly totalTokens: number;
|
|
1757
|
+
} | null;
|
|
1758
|
+
readonly verifySteps: readonly {
|
|
1759
|
+
readonly exitCode: number;
|
|
1760
|
+
readonly command: string;
|
|
1761
|
+
}[];
|
|
1762
|
+
readonly voidFields: readonly string[];
|
|
1763
|
+
}[];
|
|
1764
|
+
readonly distribution: {
|
|
1765
|
+
readonly commandMax: number;
|
|
1766
|
+
readonly commandMin: number;
|
|
1767
|
+
readonly passed: number;
|
|
1768
|
+
readonly scored: number;
|
|
1769
|
+
readonly failed: number;
|
|
1770
|
+
readonly voided: number;
|
|
1771
|
+
readonly trials: number;
|
|
1772
|
+
readonly commandMedian: number;
|
|
1773
|
+
readonly deterministic: boolean;
|
|
1774
|
+
readonly passRate: number;
|
|
1775
|
+
};
|
|
1776
|
+
readonly internalId: string;
|
|
1777
|
+
readonly runId: string;
|
|
1778
|
+
}[], import("@effect/platform/HttpClientResponse").HttpClientResponse] : readonly {
|
|
1779
|
+
readonly finishedAt: import("effect/DateTime").Utc | null;
|
|
1780
|
+
readonly trials: readonly {
|
|
1781
|
+
readonly passed: boolean;
|
|
1782
|
+
readonly status: "passed" | "running" | "failed" | "queued" | "void" | "exceeded";
|
|
1783
|
+
readonly commands: number;
|
|
1784
|
+
readonly exitCode: number;
|
|
1785
|
+
readonly failedCommands: number;
|
|
1786
|
+
readonly filesChanged: readonly string[];
|
|
1787
|
+
readonly modelMs: number;
|
|
1788
|
+
readonly ordinal: number;
|
|
1789
|
+
readonly sandboxId: string | null;
|
|
1790
|
+
readonly sandboxMs: number;
|
|
1791
|
+
readonly timed: boolean;
|
|
1792
|
+
readonly trajectory: readonly ({
|
|
1793
|
+
readonly startedAtMillis: number | null;
|
|
1794
|
+
readonly exitCode: number | null;
|
|
1795
|
+
readonly _tag: "command";
|
|
1796
|
+
readonly command: string;
|
|
1797
|
+
readonly finishedAtMillis: number | null;
|
|
1798
|
+
readonly output: string;
|
|
1799
|
+
} | {
|
|
1800
|
+
readonly _tag: "message";
|
|
1801
|
+
readonly finishedAtMillis: number | null;
|
|
1802
|
+
readonly text: string;
|
|
1803
|
+
readonly usage?: {
|
|
1804
|
+
readonly cacheReadTokens: number;
|
|
1805
|
+
readonly cacheWriteTokens: number;
|
|
1806
|
+
readonly costUsd?: number | null | undefined;
|
|
1807
|
+
readonly inputTokens: number;
|
|
1808
|
+
readonly outputTokens: number;
|
|
1809
|
+
readonly totalTokens: number;
|
|
1810
|
+
} | null | undefined;
|
|
1811
|
+
} | {
|
|
1812
|
+
readonly startedAtMillis?: number | null | undefined;
|
|
1813
|
+
readonly name: string;
|
|
1814
|
+
readonly status: string | null;
|
|
1815
|
+
readonly _tag: "toolCall";
|
|
1816
|
+
readonly finishedAtMillis: number | null;
|
|
1817
|
+
} | {
|
|
1818
|
+
readonly _tag: "fileChange";
|
|
1819
|
+
readonly finishedAtMillis: number | null;
|
|
1820
|
+
readonly paths: readonly string[];
|
|
1821
|
+
})[];
|
|
1822
|
+
readonly usage: {
|
|
1823
|
+
readonly cacheReadTokens: number;
|
|
1824
|
+
readonly cacheWriteTokens: number;
|
|
1825
|
+
readonly costUsd?: number | null | undefined;
|
|
1826
|
+
readonly inputTokens: number;
|
|
1827
|
+
readonly outputTokens: number;
|
|
1828
|
+
readonly totalTokens: number;
|
|
1829
|
+
} | null;
|
|
1830
|
+
readonly verifySteps: readonly {
|
|
1831
|
+
readonly exitCode: number;
|
|
1832
|
+
readonly command: string;
|
|
1833
|
+
}[];
|
|
1834
|
+
readonly voidFields: readonly string[];
|
|
1835
|
+
}[];
|
|
1836
|
+
readonly distribution: {
|
|
1837
|
+
readonly commandMax: number;
|
|
1838
|
+
readonly commandMin: number;
|
|
1839
|
+
readonly passed: number;
|
|
1840
|
+
readonly scored: number;
|
|
1841
|
+
readonly failed: number;
|
|
1842
|
+
readonly voided: number;
|
|
1843
|
+
readonly trials: number;
|
|
1844
|
+
readonly commandMedian: number;
|
|
1845
|
+
readonly deterministic: boolean;
|
|
1846
|
+
readonly passRate: number;
|
|
1847
|
+
};
|
|
1848
|
+
readonly internalId: string;
|
|
1849
|
+
readonly runId: string;
|
|
1850
|
+
}[], import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | Forbidden | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
1851
|
+
readonly rerunCell: <WithResponse extends boolean = false>(request: {
|
|
1852
|
+
readonly payload: {
|
|
1853
|
+
readonly id: string;
|
|
1854
|
+
} & {
|
|
1855
|
+
readonly cellKey: string;
|
|
1856
|
+
} & {
|
|
1857
|
+
readonly trials: number;
|
|
1858
|
+
};
|
|
1859
|
+
readonly withResponse?: WithResponse | undefined;
|
|
1860
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1861
|
+
readonly id: string;
|
|
1862
|
+
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
1863
|
+
readonly id: string;
|
|
1864
|
+
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | Forbidden | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
1865
|
+
readonly models: <WithResponse extends boolean = false>(request: {
|
|
1866
|
+
readonly payload: {
|
|
1867
|
+
readonly harness: "cursor" | "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen";
|
|
1868
|
+
readonly q?: string | undefined;
|
|
1869
|
+
};
|
|
1870
|
+
readonly withResponse?: WithResponse | undefined;
|
|
1871
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1872
|
+
readonly harness: "cursor" | "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen";
|
|
1873
|
+
readonly total: number;
|
|
1874
|
+
readonly models: readonly {
|
|
1875
|
+
readonly id: string;
|
|
1876
|
+
readonly displayName: string;
|
|
1877
|
+
readonly summary: string | null;
|
|
1878
|
+
readonly vendor: string | null;
|
|
1879
|
+
}[];
|
|
1880
|
+
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
1881
|
+
readonly harness: "cursor" | "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen";
|
|
1882
|
+
readonly total: number;
|
|
1883
|
+
readonly models: readonly {
|
|
1884
|
+
readonly id: string;
|
|
1885
|
+
readonly displayName: string;
|
|
1886
|
+
readonly summary: string | null;
|
|
1887
|
+
readonly vendor: string | null;
|
|
1888
|
+
}[];
|
|
1889
|
+
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | Forbidden | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
396
1890
|
};
|
|
397
|
-
}> & Effect.Tag.Proxy<AnpordApi, {
|
|
398
1891
|
readonly prompts: {
|
|
399
1892
|
readonly get: <WithResponse extends boolean = false>(request: {
|
|
400
1893
|
readonly payload: {
|
|
401
|
-
readonly channel?: (string & import("effect/Brand").Brand<"ChannelName">) | undefined;
|
|
402
1894
|
readonly id: string & import("effect/Brand").Brand<"PromptId">;
|
|
1895
|
+
readonly channel?: (string & import("effect/Brand").Brand<"ChannelName">) | undefined;
|
|
403
1896
|
readonly includeVersions?: boolean | undefined;
|
|
404
1897
|
readonly version?: (number & import("effect/Brand").Brand<"VersionNumber">) | undefined;
|
|
405
1898
|
};
|
|
406
1899
|
readonly withResponse?: WithResponse | undefined;
|
|
407
1900
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
408
|
-
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
409
|
-
readonly message: string | null;
|
|
410
1901
|
readonly id: string & import("effect/Brand").Brand<"PromptId">;
|
|
1902
|
+
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
1903
|
+
readonly message: string | null;
|
|
1904
|
+
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
411
1905
|
readonly version: number & import("effect/Brand").Brand<"VersionNumber">;
|
|
412
1906
|
readonly config: {
|
|
413
1907
|
readonly [x: string]: unknown;
|
|
414
1908
|
};
|
|
415
1909
|
readonly content: string;
|
|
416
1910
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
417
|
-
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
418
1911
|
} & {
|
|
419
1912
|
readonly versions?: readonly {
|
|
420
1913
|
readonly message: string | null;
|
|
@@ -422,25 +1915,27 @@ declare const AnpordApi_base: import("effect/Context").TagClass<AnpordApi, "@anp
|
|
|
422
1915
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
423
1916
|
}[] | undefined;
|
|
424
1917
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
425
|
-
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
426
|
-
readonly message: string | null;
|
|
427
1918
|
readonly id: string & import("effect/Brand").Brand<"PromptId">;
|
|
1919
|
+
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
1920
|
+
readonly message: string | null;
|
|
1921
|
+
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
428
1922
|
readonly version: number & import("effect/Brand").Brand<"VersionNumber">;
|
|
429
1923
|
readonly config: {
|
|
430
1924
|
readonly [x: string]: unknown;
|
|
431
1925
|
};
|
|
432
1926
|
readonly content: string;
|
|
433
1927
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
434
|
-
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
435
1928
|
} & {
|
|
436
1929
|
readonly versions?: readonly {
|
|
437
1930
|
readonly message: string | null;
|
|
438
1931
|
readonly version: number & import("effect/Brand").Brand<"VersionNumber">;
|
|
439
1932
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
440
1933
|
}[] | undefined;
|
|
441
|
-
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
1934
|
+
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | Forbidden | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
442
1935
|
readonly list: <WithResponse extends boolean = false>(request: {
|
|
443
|
-
readonly payload: {
|
|
1936
|
+
readonly payload: {
|
|
1937
|
+
readonly [x: string]: never;
|
|
1938
|
+
};
|
|
444
1939
|
readonly withResponse?: WithResponse | undefined;
|
|
445
1940
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
446
1941
|
readonly data: readonly {
|
|
@@ -458,30 +1953,30 @@ declare const AnpordApi_base: import("effect/Context").TagClass<AnpordApi, "@anp
|
|
|
458
1953
|
readonly productionVersion: (number & import("effect/Brand").Brand<"VersionNumber">) | null;
|
|
459
1954
|
readonly updatedAt: import("effect/DateTime").Utc;
|
|
460
1955
|
}[];
|
|
461
|
-
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
1956
|
+
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | Forbidden | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
462
1957
|
readonly create: <WithResponse extends boolean = false>(request: {
|
|
463
1958
|
readonly payload: {
|
|
464
|
-
readonly message?: string | undefined;
|
|
465
1959
|
readonly id: string & import("effect/Brand").Brand<"PromptId">;
|
|
1960
|
+
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
1961
|
+
readonly message?: string | undefined;
|
|
466
1962
|
readonly config?: {
|
|
467
1963
|
readonly [x: string]: unknown;
|
|
468
1964
|
} | undefined;
|
|
469
1965
|
readonly content: string;
|
|
470
|
-
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
471
1966
|
readonly description?: string | undefined;
|
|
472
1967
|
};
|
|
473
1968
|
readonly withResponse?: WithResponse | undefined;
|
|
474
1969
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
475
|
-
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
476
|
-
readonly message: string | null;
|
|
477
1970
|
readonly id: string & import("effect/Brand").Brand<"PromptId">;
|
|
1971
|
+
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
1972
|
+
readonly message: string | null;
|
|
1973
|
+
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
478
1974
|
readonly version: number & import("effect/Brand").Brand<"VersionNumber">;
|
|
479
1975
|
readonly config: {
|
|
480
1976
|
readonly [x: string]: unknown;
|
|
481
1977
|
};
|
|
482
1978
|
readonly content: string;
|
|
483
1979
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
484
|
-
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
485
1980
|
} & {
|
|
486
1981
|
readonly versions?: readonly {
|
|
487
1982
|
readonly message: string | null;
|
|
@@ -489,27 +1984,27 @@ declare const AnpordApi_base: import("effect/Context").TagClass<AnpordApi, "@anp
|
|
|
489
1984
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
490
1985
|
}[] | undefined;
|
|
491
1986
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
492
|
-
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
493
|
-
readonly message: string | null;
|
|
494
1987
|
readonly id: string & import("effect/Brand").Brand<"PromptId">;
|
|
1988
|
+
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
1989
|
+
readonly message: string | null;
|
|
1990
|
+
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
495
1991
|
readonly version: number & import("effect/Brand").Brand<"VersionNumber">;
|
|
496
1992
|
readonly config: {
|
|
497
1993
|
readonly [x: string]: unknown;
|
|
498
1994
|
};
|
|
499
1995
|
readonly content: string;
|
|
500
1996
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
501
|
-
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
502
1997
|
} & {
|
|
503
1998
|
readonly versions?: readonly {
|
|
504
1999
|
readonly message: string | null;
|
|
505
2000
|
readonly version: number & import("effect/Brand").Brand<"VersionNumber">;
|
|
506
2001
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
507
2002
|
}[] | undefined;
|
|
508
|
-
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
2003
|
+
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | Forbidden | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
509
2004
|
readonly update: <WithResponse extends boolean = false>(request: {
|
|
510
2005
|
readonly payload: {
|
|
511
|
-
readonly message?: string | undefined;
|
|
512
2006
|
readonly id: string & import("effect/Brand").Brand<"PromptId">;
|
|
2007
|
+
readonly message?: string | undefined;
|
|
513
2008
|
readonly config?: {
|
|
514
2009
|
readonly [x: string]: unknown;
|
|
515
2010
|
} | undefined;
|
|
@@ -517,16 +2012,16 @@ declare const AnpordApi_base: import("effect/Context").TagClass<AnpordApi, "@anp
|
|
|
517
2012
|
};
|
|
518
2013
|
readonly withResponse?: WithResponse | undefined;
|
|
519
2014
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
520
|
-
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
521
|
-
readonly message: string | null;
|
|
522
2015
|
readonly id: string & import("effect/Brand").Brand<"PromptId">;
|
|
2016
|
+
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
2017
|
+
readonly message: string | null;
|
|
2018
|
+
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
523
2019
|
readonly version: number & import("effect/Brand").Brand<"VersionNumber">;
|
|
524
2020
|
readonly config: {
|
|
525
2021
|
readonly [x: string]: unknown;
|
|
526
2022
|
};
|
|
527
2023
|
readonly content: string;
|
|
528
2024
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
529
|
-
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
530
2025
|
} & {
|
|
531
2026
|
readonly versions?: readonly {
|
|
532
2027
|
readonly message: string | null;
|
|
@@ -534,27 +2029,27 @@ declare const AnpordApi_base: import("effect/Context").TagClass<AnpordApi, "@anp
|
|
|
534
2029
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
535
2030
|
}[] | undefined;
|
|
536
2031
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
537
|
-
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
538
|
-
readonly message: string | null;
|
|
539
2032
|
readonly id: string & import("effect/Brand").Brand<"PromptId">;
|
|
2033
|
+
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
2034
|
+
readonly message: string | null;
|
|
2035
|
+
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
540
2036
|
readonly version: number & import("effect/Brand").Brand<"VersionNumber">;
|
|
541
2037
|
readonly config: {
|
|
542
2038
|
readonly [x: string]: unknown;
|
|
543
2039
|
};
|
|
544
2040
|
readonly content: string;
|
|
545
2041
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
546
|
-
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
547
2042
|
} & {
|
|
548
2043
|
readonly versions?: readonly {
|
|
549
2044
|
readonly message: string | null;
|
|
550
2045
|
readonly version: number & import("effect/Brand").Brand<"VersionNumber">;
|
|
551
2046
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
552
2047
|
}[] | undefined;
|
|
553
|
-
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
2048
|
+
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | Forbidden | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
554
2049
|
readonly promote: <WithResponse extends boolean = false>(request: {
|
|
555
2050
|
readonly payload: {
|
|
556
|
-
readonly channel: string & import("effect/Brand").Brand<"ChannelName">;
|
|
557
2051
|
readonly id: string & import("effect/Brand").Brand<"PromptId">;
|
|
2052
|
+
readonly channel: string & import("effect/Brand").Brand<"ChannelName">;
|
|
558
2053
|
readonly version: number & import("effect/Brand").Brand<"VersionNumber">;
|
|
559
2054
|
};
|
|
560
2055
|
readonly withResponse?: WithResponse | undefined;
|
|
@@ -562,40 +2057,541 @@ declare const AnpordApi_base: import("effect/Context").TagClass<AnpordApi, "@anp
|
|
|
562
2057
|
readonly ok: true;
|
|
563
2058
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
564
2059
|
readonly ok: true;
|
|
565
|
-
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
566
|
-
readonly archive: <WithResponse extends boolean = false>(request: {
|
|
567
|
-
readonly payload: {
|
|
568
|
-
readonly id: string & import("effect/Brand").Brand<"PromptId">;
|
|
569
|
-
};
|
|
570
|
-
readonly withResponse?: WithResponse | undefined;
|
|
571
|
-
}) => Effect.Effect<WithResponse extends true ? [{
|
|
572
|
-
readonly ok: true;
|
|
573
|
-
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
574
|
-
readonly ok: true;
|
|
575
|
-
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
2060
|
+
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | Forbidden | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
576
2061
|
};
|
|
577
2062
|
}> & {
|
|
578
2063
|
use: <X>(body: (_: {
|
|
2064
|
+
readonly evals: {
|
|
2065
|
+
readonly list: <WithResponse extends boolean = false>(request: {
|
|
2066
|
+
readonly payload: {
|
|
2067
|
+
readonly cursor?: {
|
|
2068
|
+
readonly id: string;
|
|
2069
|
+
readonly startedAtMillis: number;
|
|
2070
|
+
} | null | undefined;
|
|
2071
|
+
readonly limit?: number | undefined;
|
|
2072
|
+
};
|
|
2073
|
+
readonly withResponse?: WithResponse | undefined;
|
|
2074
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
2075
|
+
readonly next: {
|
|
2076
|
+
readonly id: string;
|
|
2077
|
+
readonly startedAtMillis: number;
|
|
2078
|
+
} | null;
|
|
2079
|
+
readonly runs: readonly {
|
|
2080
|
+
readonly id: string;
|
|
2081
|
+
readonly caseCount: number;
|
|
2082
|
+
readonly columns: readonly {
|
|
2083
|
+
readonly harness: "cursor" | "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen";
|
|
2084
|
+
readonly harnessVersion: string;
|
|
2085
|
+
readonly model: string;
|
|
2086
|
+
readonly provider: "daytona" | "e2b" | "upstash" | "modal" | "cloudflare" | "vercel";
|
|
2087
|
+
}[];
|
|
2088
|
+
readonly commandMax: number | null;
|
|
2089
|
+
readonly commandMin: number | null;
|
|
2090
|
+
readonly failure: string | null;
|
|
2091
|
+
readonly finishedAt: import("effect/DateTime").Utc | null;
|
|
2092
|
+
readonly name: string | null;
|
|
2093
|
+
readonly passed: number;
|
|
2094
|
+
readonly scored: number;
|
|
2095
|
+
readonly startedAt: import("effect/DateTime").Utc;
|
|
2096
|
+
readonly status: "running" | "finished" | "failed";
|
|
2097
|
+
readonly taskCount: number;
|
|
2098
|
+
readonly voided: number;
|
|
2099
|
+
}[];
|
|
2100
|
+
readonly total: number;
|
|
2101
|
+
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
2102
|
+
readonly next: {
|
|
2103
|
+
readonly id: string;
|
|
2104
|
+
readonly startedAtMillis: number;
|
|
2105
|
+
} | null;
|
|
2106
|
+
readonly runs: readonly {
|
|
2107
|
+
readonly id: string;
|
|
2108
|
+
readonly caseCount: number;
|
|
2109
|
+
readonly columns: readonly {
|
|
2110
|
+
readonly harness: "cursor" | "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen";
|
|
2111
|
+
readonly harnessVersion: string;
|
|
2112
|
+
readonly model: string;
|
|
2113
|
+
readonly provider: "daytona" | "e2b" | "upstash" | "modal" | "cloudflare" | "vercel";
|
|
2114
|
+
}[];
|
|
2115
|
+
readonly commandMax: number | null;
|
|
2116
|
+
readonly commandMin: number | null;
|
|
2117
|
+
readonly failure: string | null;
|
|
2118
|
+
readonly finishedAt: import("effect/DateTime").Utc | null;
|
|
2119
|
+
readonly name: string | null;
|
|
2120
|
+
readonly passed: number;
|
|
2121
|
+
readonly scored: number;
|
|
2122
|
+
readonly startedAt: import("effect/DateTime").Utc;
|
|
2123
|
+
readonly status: "running" | "finished" | "failed";
|
|
2124
|
+
readonly taskCount: number;
|
|
2125
|
+
readonly voided: number;
|
|
2126
|
+
}[];
|
|
2127
|
+
readonly total: number;
|
|
2128
|
+
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | Forbidden | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
2129
|
+
readonly start: <WithResponse extends boolean = false>(request: {
|
|
2130
|
+
readonly payload: {
|
|
2131
|
+
readonly cases: readonly {
|
|
2132
|
+
readonly name: string;
|
|
2133
|
+
readonly setup?: string | null | undefined;
|
|
2134
|
+
readonly source?: {
|
|
2135
|
+
readonly kind: "empty";
|
|
2136
|
+
} | {
|
|
2137
|
+
readonly kind: "repo";
|
|
2138
|
+
readonly ref: string | null;
|
|
2139
|
+
readonly url: string;
|
|
2140
|
+
} | {
|
|
2141
|
+
readonly kind: "files";
|
|
2142
|
+
readonly files: {
|
|
2143
|
+
readonly [x: string]: string;
|
|
2144
|
+
};
|
|
2145
|
+
} | undefined;
|
|
2146
|
+
readonly validator?: {
|
|
2147
|
+
readonly name: string;
|
|
2148
|
+
readonly source: string;
|
|
2149
|
+
} | null | undefined;
|
|
2150
|
+
readonly variables?: {
|
|
2151
|
+
readonly [x: string]: string;
|
|
2152
|
+
} | undefined;
|
|
2153
|
+
readonly verify: string | null;
|
|
2154
|
+
}[];
|
|
2155
|
+
readonly prompt: string;
|
|
2156
|
+
readonly tasks: readonly {
|
|
2157
|
+
readonly harness: "cursor" | "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen";
|
|
2158
|
+
readonly model: string;
|
|
2159
|
+
readonly provider: "daytona" | "e2b" | "upstash" | "modal" | "cloudflare" | "vercel";
|
|
2160
|
+
}[];
|
|
2161
|
+
readonly trials: number;
|
|
2162
|
+
};
|
|
2163
|
+
readonly withResponse?: WithResponse | undefined;
|
|
2164
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
2165
|
+
readonly id: string;
|
|
2166
|
+
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
2167
|
+
readonly id: string;
|
|
2168
|
+
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | Forbidden | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
2169
|
+
readonly get: <WithResponse extends boolean = false>(request: {
|
|
2170
|
+
readonly payload: {
|
|
2171
|
+
readonly id: string;
|
|
2172
|
+
};
|
|
2173
|
+
readonly withResponse?: WithResponse | undefined;
|
|
2174
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
2175
|
+
readonly id: string;
|
|
2176
|
+
readonly failure: string | null;
|
|
2177
|
+
readonly finishedAt: import("effect/DateTime").Utc | null;
|
|
2178
|
+
readonly startedAt: import("effect/DateTime").Utc;
|
|
2179
|
+
readonly status: "running" | "finished" | "failed";
|
|
2180
|
+
readonly cases: readonly string[];
|
|
2181
|
+
readonly tasks: readonly {
|
|
2182
|
+
readonly harness: "cursor" | "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen";
|
|
2183
|
+
readonly harnessVersion: string;
|
|
2184
|
+
readonly model: string;
|
|
2185
|
+
readonly provider: "daytona" | "e2b" | "upstash" | "modal" | "cloudflare" | "vercel";
|
|
2186
|
+
}[];
|
|
2187
|
+
readonly cells: readonly {
|
|
2188
|
+
readonly status: "running" | "finished" | "failed";
|
|
2189
|
+
readonly setup: {
|
|
2190
|
+
readonly prompt: string;
|
|
2191
|
+
readonly repoRef: string | null;
|
|
2192
|
+
readonly repoUrl: string | null;
|
|
2193
|
+
readonly setupCommand: string | null;
|
|
2194
|
+
readonly validatorName: string | null;
|
|
2195
|
+
readonly verifyCommand: string | null;
|
|
2196
|
+
readonly workspace: string;
|
|
2197
|
+
} | null;
|
|
2198
|
+
readonly trials: readonly {
|
|
2199
|
+
readonly passed: boolean;
|
|
2200
|
+
readonly status: "passed" | "running" | "failed" | "queued" | "void" | "exceeded";
|
|
2201
|
+
readonly commands: number;
|
|
2202
|
+
readonly exitCode: number;
|
|
2203
|
+
readonly failedCommands: number;
|
|
2204
|
+
readonly filesChanged: readonly string[];
|
|
2205
|
+
readonly modelMs: number;
|
|
2206
|
+
readonly ordinal: number;
|
|
2207
|
+
readonly sandboxId: string | null;
|
|
2208
|
+
readonly sandboxMs: number;
|
|
2209
|
+
readonly timed: boolean;
|
|
2210
|
+
readonly trajectory: readonly ({
|
|
2211
|
+
readonly startedAtMillis: number | null;
|
|
2212
|
+
readonly exitCode: number | null;
|
|
2213
|
+
readonly _tag: "command";
|
|
2214
|
+
readonly command: string;
|
|
2215
|
+
readonly finishedAtMillis: number | null;
|
|
2216
|
+
readonly output: string;
|
|
2217
|
+
} | {
|
|
2218
|
+
readonly _tag: "message";
|
|
2219
|
+
readonly finishedAtMillis: number | null;
|
|
2220
|
+
readonly text: string;
|
|
2221
|
+
readonly usage?: {
|
|
2222
|
+
readonly cacheReadTokens: number;
|
|
2223
|
+
readonly cacheWriteTokens: number;
|
|
2224
|
+
readonly costUsd?: number | null | undefined;
|
|
2225
|
+
readonly inputTokens: number;
|
|
2226
|
+
readonly outputTokens: number;
|
|
2227
|
+
readonly totalTokens: number;
|
|
2228
|
+
} | null | undefined;
|
|
2229
|
+
} | {
|
|
2230
|
+
readonly startedAtMillis?: number | null | undefined;
|
|
2231
|
+
readonly name: string;
|
|
2232
|
+
readonly status: string | null;
|
|
2233
|
+
readonly _tag: "toolCall";
|
|
2234
|
+
readonly finishedAtMillis: number | null;
|
|
2235
|
+
} | {
|
|
2236
|
+
readonly _tag: "fileChange";
|
|
2237
|
+
readonly finishedAtMillis: number | null;
|
|
2238
|
+
readonly paths: readonly string[];
|
|
2239
|
+
})[];
|
|
2240
|
+
readonly usage: {
|
|
2241
|
+
readonly cacheReadTokens: number;
|
|
2242
|
+
readonly cacheWriteTokens: number;
|
|
2243
|
+
readonly costUsd?: number | null | undefined;
|
|
2244
|
+
readonly inputTokens: number;
|
|
2245
|
+
readonly outputTokens: number;
|
|
2246
|
+
readonly totalTokens: number;
|
|
2247
|
+
} | null;
|
|
2248
|
+
readonly verifySteps: readonly {
|
|
2249
|
+
readonly exitCode: number;
|
|
2250
|
+
readonly command: string;
|
|
2251
|
+
}[];
|
|
2252
|
+
readonly voidFields: readonly string[];
|
|
2253
|
+
}[];
|
|
2254
|
+
readonly caseName: string;
|
|
2255
|
+
readonly cellKey: string | null;
|
|
2256
|
+
readonly comparison: {
|
|
2257
|
+
readonly baselinePassRate: number;
|
|
2258
|
+
readonly candidatePassRate: number;
|
|
2259
|
+
readonly delta: number;
|
|
2260
|
+
readonly determinismLost: boolean;
|
|
2261
|
+
readonly reason: string | null;
|
|
2262
|
+
readonly verdict: "improved" | "incomparable" | "regressed" | "unchanged";
|
|
2263
|
+
} | null;
|
|
2264
|
+
readonly distribution: {
|
|
2265
|
+
readonly commandMax: number;
|
|
2266
|
+
readonly commandMin: number;
|
|
2267
|
+
readonly passed: number;
|
|
2268
|
+
readonly scored: number;
|
|
2269
|
+
readonly failed: number;
|
|
2270
|
+
readonly voided: number;
|
|
2271
|
+
readonly trials: number;
|
|
2272
|
+
readonly commandMedian: number;
|
|
2273
|
+
readonly deterministic: boolean;
|
|
2274
|
+
readonly passRate: number;
|
|
2275
|
+
} | null;
|
|
2276
|
+
readonly internalId: string | null;
|
|
2277
|
+
readonly taskIndex: number;
|
|
2278
|
+
}[];
|
|
2279
|
+
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
2280
|
+
readonly id: string;
|
|
2281
|
+
readonly failure: string | null;
|
|
2282
|
+
readonly finishedAt: import("effect/DateTime").Utc | null;
|
|
2283
|
+
readonly startedAt: import("effect/DateTime").Utc;
|
|
2284
|
+
readonly status: "running" | "finished" | "failed";
|
|
2285
|
+
readonly cases: readonly string[];
|
|
2286
|
+
readonly tasks: readonly {
|
|
2287
|
+
readonly harness: "cursor" | "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen";
|
|
2288
|
+
readonly harnessVersion: string;
|
|
2289
|
+
readonly model: string;
|
|
2290
|
+
readonly provider: "daytona" | "e2b" | "upstash" | "modal" | "cloudflare" | "vercel";
|
|
2291
|
+
}[];
|
|
2292
|
+
readonly cells: readonly {
|
|
2293
|
+
readonly status: "running" | "finished" | "failed";
|
|
2294
|
+
readonly setup: {
|
|
2295
|
+
readonly prompt: string;
|
|
2296
|
+
readonly repoRef: string | null;
|
|
2297
|
+
readonly repoUrl: string | null;
|
|
2298
|
+
readonly setupCommand: string | null;
|
|
2299
|
+
readonly validatorName: string | null;
|
|
2300
|
+
readonly verifyCommand: string | null;
|
|
2301
|
+
readonly workspace: string;
|
|
2302
|
+
} | null;
|
|
2303
|
+
readonly trials: readonly {
|
|
2304
|
+
readonly passed: boolean;
|
|
2305
|
+
readonly status: "passed" | "running" | "failed" | "queued" | "void" | "exceeded";
|
|
2306
|
+
readonly commands: number;
|
|
2307
|
+
readonly exitCode: number;
|
|
2308
|
+
readonly failedCommands: number;
|
|
2309
|
+
readonly filesChanged: readonly string[];
|
|
2310
|
+
readonly modelMs: number;
|
|
2311
|
+
readonly ordinal: number;
|
|
2312
|
+
readonly sandboxId: string | null;
|
|
2313
|
+
readonly sandboxMs: number;
|
|
2314
|
+
readonly timed: boolean;
|
|
2315
|
+
readonly trajectory: readonly ({
|
|
2316
|
+
readonly startedAtMillis: number | null;
|
|
2317
|
+
readonly exitCode: number | null;
|
|
2318
|
+
readonly _tag: "command";
|
|
2319
|
+
readonly command: string;
|
|
2320
|
+
readonly finishedAtMillis: number | null;
|
|
2321
|
+
readonly output: string;
|
|
2322
|
+
} | {
|
|
2323
|
+
readonly _tag: "message";
|
|
2324
|
+
readonly finishedAtMillis: number | null;
|
|
2325
|
+
readonly text: string;
|
|
2326
|
+
readonly usage?: {
|
|
2327
|
+
readonly cacheReadTokens: number;
|
|
2328
|
+
readonly cacheWriteTokens: number;
|
|
2329
|
+
readonly costUsd?: number | null | undefined;
|
|
2330
|
+
readonly inputTokens: number;
|
|
2331
|
+
readonly outputTokens: number;
|
|
2332
|
+
readonly totalTokens: number;
|
|
2333
|
+
} | null | undefined;
|
|
2334
|
+
} | {
|
|
2335
|
+
readonly startedAtMillis?: number | null | undefined;
|
|
2336
|
+
readonly name: string;
|
|
2337
|
+
readonly status: string | null;
|
|
2338
|
+
readonly _tag: "toolCall";
|
|
2339
|
+
readonly finishedAtMillis: number | null;
|
|
2340
|
+
} | {
|
|
2341
|
+
readonly _tag: "fileChange";
|
|
2342
|
+
readonly finishedAtMillis: number | null;
|
|
2343
|
+
readonly paths: readonly string[];
|
|
2344
|
+
})[];
|
|
2345
|
+
readonly usage: {
|
|
2346
|
+
readonly cacheReadTokens: number;
|
|
2347
|
+
readonly cacheWriteTokens: number;
|
|
2348
|
+
readonly costUsd?: number | null | undefined;
|
|
2349
|
+
readonly inputTokens: number;
|
|
2350
|
+
readonly outputTokens: number;
|
|
2351
|
+
readonly totalTokens: number;
|
|
2352
|
+
} | null;
|
|
2353
|
+
readonly verifySteps: readonly {
|
|
2354
|
+
readonly exitCode: number;
|
|
2355
|
+
readonly command: string;
|
|
2356
|
+
}[];
|
|
2357
|
+
readonly voidFields: readonly string[];
|
|
2358
|
+
}[];
|
|
2359
|
+
readonly caseName: string;
|
|
2360
|
+
readonly cellKey: string | null;
|
|
2361
|
+
readonly comparison: {
|
|
2362
|
+
readonly baselinePassRate: number;
|
|
2363
|
+
readonly candidatePassRate: number;
|
|
2364
|
+
readonly delta: number;
|
|
2365
|
+
readonly determinismLost: boolean;
|
|
2366
|
+
readonly reason: string | null;
|
|
2367
|
+
readonly verdict: "improved" | "incomparable" | "regressed" | "unchanged";
|
|
2368
|
+
} | null;
|
|
2369
|
+
readonly distribution: {
|
|
2370
|
+
readonly commandMax: number;
|
|
2371
|
+
readonly commandMin: number;
|
|
2372
|
+
readonly passed: number;
|
|
2373
|
+
readonly scored: number;
|
|
2374
|
+
readonly failed: number;
|
|
2375
|
+
readonly voided: number;
|
|
2376
|
+
readonly trials: number;
|
|
2377
|
+
readonly commandMedian: number;
|
|
2378
|
+
readonly deterministic: boolean;
|
|
2379
|
+
readonly passRate: number;
|
|
2380
|
+
} | null;
|
|
2381
|
+
readonly internalId: string | null;
|
|
2382
|
+
readonly taskIndex: number;
|
|
2383
|
+
}[];
|
|
2384
|
+
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | Forbidden | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
2385
|
+
readonly cellHistory: <WithResponse extends boolean = false>(request: {
|
|
2386
|
+
readonly payload: {
|
|
2387
|
+
readonly cellKey: string;
|
|
2388
|
+
};
|
|
2389
|
+
readonly withResponse?: WithResponse | undefined;
|
|
2390
|
+
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
2391
|
+
readonly finishedAt: import("effect/DateTime").Utc | null;
|
|
2392
|
+
readonly trials: readonly {
|
|
2393
|
+
readonly passed: boolean;
|
|
2394
|
+
readonly status: "passed" | "running" | "failed" | "queued" | "void" | "exceeded";
|
|
2395
|
+
readonly commands: number;
|
|
2396
|
+
readonly exitCode: number;
|
|
2397
|
+
readonly failedCommands: number;
|
|
2398
|
+
readonly filesChanged: readonly string[];
|
|
2399
|
+
readonly modelMs: number;
|
|
2400
|
+
readonly ordinal: number;
|
|
2401
|
+
readonly sandboxId: string | null;
|
|
2402
|
+
readonly sandboxMs: number;
|
|
2403
|
+
readonly timed: boolean;
|
|
2404
|
+
readonly trajectory: readonly ({
|
|
2405
|
+
readonly startedAtMillis: number | null;
|
|
2406
|
+
readonly exitCode: number | null;
|
|
2407
|
+
readonly _tag: "command";
|
|
2408
|
+
readonly command: string;
|
|
2409
|
+
readonly finishedAtMillis: number | null;
|
|
2410
|
+
readonly output: string;
|
|
2411
|
+
} | {
|
|
2412
|
+
readonly _tag: "message";
|
|
2413
|
+
readonly finishedAtMillis: number | null;
|
|
2414
|
+
readonly text: string;
|
|
2415
|
+
readonly usage?: {
|
|
2416
|
+
readonly cacheReadTokens: number;
|
|
2417
|
+
readonly cacheWriteTokens: number;
|
|
2418
|
+
readonly costUsd?: number | null | undefined;
|
|
2419
|
+
readonly inputTokens: number;
|
|
2420
|
+
readonly outputTokens: number;
|
|
2421
|
+
readonly totalTokens: number;
|
|
2422
|
+
} | null | undefined;
|
|
2423
|
+
} | {
|
|
2424
|
+
readonly startedAtMillis?: number | null | undefined;
|
|
2425
|
+
readonly name: string;
|
|
2426
|
+
readonly status: string | null;
|
|
2427
|
+
readonly _tag: "toolCall";
|
|
2428
|
+
readonly finishedAtMillis: number | null;
|
|
2429
|
+
} | {
|
|
2430
|
+
readonly _tag: "fileChange";
|
|
2431
|
+
readonly finishedAtMillis: number | null;
|
|
2432
|
+
readonly paths: readonly string[];
|
|
2433
|
+
})[];
|
|
2434
|
+
readonly usage: {
|
|
2435
|
+
readonly cacheReadTokens: number;
|
|
2436
|
+
readonly cacheWriteTokens: number;
|
|
2437
|
+
readonly costUsd?: number | null | undefined;
|
|
2438
|
+
readonly inputTokens: number;
|
|
2439
|
+
readonly outputTokens: number;
|
|
2440
|
+
readonly totalTokens: number;
|
|
2441
|
+
} | null;
|
|
2442
|
+
readonly verifySteps: readonly {
|
|
2443
|
+
readonly exitCode: number;
|
|
2444
|
+
readonly command: string;
|
|
2445
|
+
}[];
|
|
2446
|
+
readonly voidFields: readonly string[];
|
|
2447
|
+
}[];
|
|
2448
|
+
readonly distribution: {
|
|
2449
|
+
readonly commandMax: number;
|
|
2450
|
+
readonly commandMin: number;
|
|
2451
|
+
readonly passed: number;
|
|
2452
|
+
readonly scored: number;
|
|
2453
|
+
readonly failed: number;
|
|
2454
|
+
readonly voided: number;
|
|
2455
|
+
readonly trials: number;
|
|
2456
|
+
readonly commandMedian: number;
|
|
2457
|
+
readonly deterministic: boolean;
|
|
2458
|
+
readonly passRate: number;
|
|
2459
|
+
};
|
|
2460
|
+
readonly internalId: string;
|
|
2461
|
+
readonly runId: string;
|
|
2462
|
+
}[], import("@effect/platform/HttpClientResponse").HttpClientResponse] : readonly {
|
|
2463
|
+
readonly finishedAt: import("effect/DateTime").Utc | null;
|
|
2464
|
+
readonly trials: readonly {
|
|
2465
|
+
readonly passed: boolean;
|
|
2466
|
+
readonly status: "passed" | "running" | "failed" | "queued" | "void" | "exceeded";
|
|
2467
|
+
readonly commands: number;
|
|
2468
|
+
readonly exitCode: number;
|
|
2469
|
+
readonly failedCommands: number;
|
|
2470
|
+
readonly filesChanged: readonly string[];
|
|
2471
|
+
readonly modelMs: number;
|
|
2472
|
+
readonly ordinal: number;
|
|
2473
|
+
readonly sandboxId: string | null;
|
|
2474
|
+
readonly sandboxMs: number;
|
|
2475
|
+
readonly timed: boolean;
|
|
2476
|
+
readonly trajectory: readonly ({
|
|
2477
|
+
readonly startedAtMillis: number | null;
|
|
2478
|
+
readonly exitCode: number | null;
|
|
2479
|
+
readonly _tag: "command";
|
|
2480
|
+
readonly command: string;
|
|
2481
|
+
readonly finishedAtMillis: number | null;
|
|
2482
|
+
readonly output: string;
|
|
2483
|
+
} | {
|
|
2484
|
+
readonly _tag: "message";
|
|
2485
|
+
readonly finishedAtMillis: number | null;
|
|
2486
|
+
readonly text: string;
|
|
2487
|
+
readonly usage?: {
|
|
2488
|
+
readonly cacheReadTokens: number;
|
|
2489
|
+
readonly cacheWriteTokens: number;
|
|
2490
|
+
readonly costUsd?: number | null | undefined;
|
|
2491
|
+
readonly inputTokens: number;
|
|
2492
|
+
readonly outputTokens: number;
|
|
2493
|
+
readonly totalTokens: number;
|
|
2494
|
+
} | null | undefined;
|
|
2495
|
+
} | {
|
|
2496
|
+
readonly startedAtMillis?: number | null | undefined;
|
|
2497
|
+
readonly name: string;
|
|
2498
|
+
readonly status: string | null;
|
|
2499
|
+
readonly _tag: "toolCall";
|
|
2500
|
+
readonly finishedAtMillis: number | null;
|
|
2501
|
+
} | {
|
|
2502
|
+
readonly _tag: "fileChange";
|
|
2503
|
+
readonly finishedAtMillis: number | null;
|
|
2504
|
+
readonly paths: readonly string[];
|
|
2505
|
+
})[];
|
|
2506
|
+
readonly usage: {
|
|
2507
|
+
readonly cacheReadTokens: number;
|
|
2508
|
+
readonly cacheWriteTokens: number;
|
|
2509
|
+
readonly costUsd?: number | null | undefined;
|
|
2510
|
+
readonly inputTokens: number;
|
|
2511
|
+
readonly outputTokens: number;
|
|
2512
|
+
readonly totalTokens: number;
|
|
2513
|
+
} | null;
|
|
2514
|
+
readonly verifySteps: readonly {
|
|
2515
|
+
readonly exitCode: number;
|
|
2516
|
+
readonly command: string;
|
|
2517
|
+
}[];
|
|
2518
|
+
readonly voidFields: readonly string[];
|
|
2519
|
+
}[];
|
|
2520
|
+
readonly distribution: {
|
|
2521
|
+
readonly commandMax: number;
|
|
2522
|
+
readonly commandMin: number;
|
|
2523
|
+
readonly passed: number;
|
|
2524
|
+
readonly scored: number;
|
|
2525
|
+
readonly failed: number;
|
|
2526
|
+
readonly voided: number;
|
|
2527
|
+
readonly trials: number;
|
|
2528
|
+
readonly commandMedian: number;
|
|
2529
|
+
readonly deterministic: boolean;
|
|
2530
|
+
readonly passRate: number;
|
|
2531
|
+
};
|
|
2532
|
+
readonly internalId: string;
|
|
2533
|
+
readonly runId: string;
|
|
2534
|
+
}[], import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | Forbidden | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
2535
|
+
readonly rerunCell: <WithResponse extends boolean = false>(request: {
|
|
2536
|
+
readonly payload: {
|
|
2537
|
+
readonly id: string;
|
|
2538
|
+
} & {
|
|
2539
|
+
readonly cellKey: string;
|
|
2540
|
+
} & {
|
|
2541
|
+
readonly trials: number;
|
|
2542
|
+
};
|
|
2543
|
+
readonly withResponse?: WithResponse | undefined;
|
|
2544
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
2545
|
+
readonly id: string;
|
|
2546
|
+
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
2547
|
+
readonly id: string;
|
|
2548
|
+
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | Forbidden | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
2549
|
+
readonly models: <WithResponse extends boolean = false>(request: {
|
|
2550
|
+
readonly payload: {
|
|
2551
|
+
readonly harness: "cursor" | "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen";
|
|
2552
|
+
readonly q?: string | undefined;
|
|
2553
|
+
};
|
|
2554
|
+
readonly withResponse?: WithResponse | undefined;
|
|
2555
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
2556
|
+
readonly harness: "cursor" | "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen";
|
|
2557
|
+
readonly total: number;
|
|
2558
|
+
readonly models: readonly {
|
|
2559
|
+
readonly id: string;
|
|
2560
|
+
readonly displayName: string;
|
|
2561
|
+
readonly summary: string | null;
|
|
2562
|
+
readonly vendor: string | null;
|
|
2563
|
+
}[];
|
|
2564
|
+
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
2565
|
+
readonly harness: "cursor" | "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen";
|
|
2566
|
+
readonly total: number;
|
|
2567
|
+
readonly models: readonly {
|
|
2568
|
+
readonly id: string;
|
|
2569
|
+
readonly displayName: string;
|
|
2570
|
+
readonly summary: string | null;
|
|
2571
|
+
readonly vendor: string | null;
|
|
2572
|
+
}[];
|
|
2573
|
+
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | Forbidden | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
2574
|
+
};
|
|
579
2575
|
readonly prompts: {
|
|
580
2576
|
readonly get: <WithResponse extends boolean = false>(request: {
|
|
581
2577
|
readonly payload: {
|
|
582
|
-
readonly channel?: (string & import("effect/Brand").Brand<"ChannelName">) | undefined;
|
|
583
2578
|
readonly id: string & import("effect/Brand").Brand<"PromptId">;
|
|
2579
|
+
readonly channel?: (string & import("effect/Brand").Brand<"ChannelName">) | undefined;
|
|
584
2580
|
readonly includeVersions?: boolean | undefined;
|
|
585
2581
|
readonly version?: (number & import("effect/Brand").Brand<"VersionNumber">) | undefined;
|
|
586
2582
|
};
|
|
587
2583
|
readonly withResponse?: WithResponse | undefined;
|
|
588
2584
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
589
|
-
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
590
|
-
readonly message: string | null;
|
|
591
2585
|
readonly id: string & import("effect/Brand").Brand<"PromptId">;
|
|
2586
|
+
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
2587
|
+
readonly message: string | null;
|
|
2588
|
+
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
592
2589
|
readonly version: number & import("effect/Brand").Brand<"VersionNumber">;
|
|
593
2590
|
readonly config: {
|
|
594
2591
|
readonly [x: string]: unknown;
|
|
595
2592
|
};
|
|
596
2593
|
readonly content: string;
|
|
597
2594
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
598
|
-
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
599
2595
|
} & {
|
|
600
2596
|
readonly versions?: readonly {
|
|
601
2597
|
readonly message: string | null;
|
|
@@ -603,25 +2599,27 @@ declare const AnpordApi_base: import("effect/Context").TagClass<AnpordApi, "@anp
|
|
|
603
2599
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
604
2600
|
}[] | undefined;
|
|
605
2601
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
606
|
-
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
607
|
-
readonly message: string | null;
|
|
608
2602
|
readonly id: string & import("effect/Brand").Brand<"PromptId">;
|
|
2603
|
+
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
2604
|
+
readonly message: string | null;
|
|
2605
|
+
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
609
2606
|
readonly version: number & import("effect/Brand").Brand<"VersionNumber">;
|
|
610
2607
|
readonly config: {
|
|
611
2608
|
readonly [x: string]: unknown;
|
|
612
2609
|
};
|
|
613
2610
|
readonly content: string;
|
|
614
2611
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
615
|
-
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
616
2612
|
} & {
|
|
617
2613
|
readonly versions?: readonly {
|
|
618
2614
|
readonly message: string | null;
|
|
619
2615
|
readonly version: number & import("effect/Brand").Brand<"VersionNumber">;
|
|
620
2616
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
621
2617
|
}[] | undefined;
|
|
622
|
-
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
2618
|
+
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | Forbidden | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
623
2619
|
readonly list: <WithResponse extends boolean = false>(request: {
|
|
624
|
-
readonly payload: {
|
|
2620
|
+
readonly payload: {
|
|
2621
|
+
readonly [x: string]: never;
|
|
2622
|
+
};
|
|
625
2623
|
readonly withResponse?: WithResponse | undefined;
|
|
626
2624
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
627
2625
|
readonly data: readonly {
|
|
@@ -639,30 +2637,30 @@ declare const AnpordApi_base: import("effect/Context").TagClass<AnpordApi, "@anp
|
|
|
639
2637
|
readonly productionVersion: (number & import("effect/Brand").Brand<"VersionNumber">) | null;
|
|
640
2638
|
readonly updatedAt: import("effect/DateTime").Utc;
|
|
641
2639
|
}[];
|
|
642
|
-
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
2640
|
+
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | Forbidden | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
643
2641
|
readonly create: <WithResponse extends boolean = false>(request: {
|
|
644
2642
|
readonly payload: {
|
|
645
|
-
readonly message?: string | undefined;
|
|
646
2643
|
readonly id: string & import("effect/Brand").Brand<"PromptId">;
|
|
2644
|
+
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
2645
|
+
readonly message?: string | undefined;
|
|
647
2646
|
readonly config?: {
|
|
648
2647
|
readonly [x: string]: unknown;
|
|
649
2648
|
} | undefined;
|
|
650
2649
|
readonly content: string;
|
|
651
|
-
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
652
2650
|
readonly description?: string | undefined;
|
|
653
2651
|
};
|
|
654
2652
|
readonly withResponse?: WithResponse | undefined;
|
|
655
2653
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
656
|
-
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
657
|
-
readonly message: string | null;
|
|
658
2654
|
readonly id: string & import("effect/Brand").Brand<"PromptId">;
|
|
2655
|
+
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
2656
|
+
readonly message: string | null;
|
|
2657
|
+
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
659
2658
|
readonly version: number & import("effect/Brand").Brand<"VersionNumber">;
|
|
660
2659
|
readonly config: {
|
|
661
2660
|
readonly [x: string]: unknown;
|
|
662
2661
|
};
|
|
663
2662
|
readonly content: string;
|
|
664
2663
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
665
|
-
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
666
2664
|
} & {
|
|
667
2665
|
readonly versions?: readonly {
|
|
668
2666
|
readonly message: string | null;
|
|
@@ -670,27 +2668,27 @@ declare const AnpordApi_base: import("effect/Context").TagClass<AnpordApi, "@anp
|
|
|
670
2668
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
671
2669
|
}[] | undefined;
|
|
672
2670
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
673
|
-
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
674
|
-
readonly message: string | null;
|
|
675
2671
|
readonly id: string & import("effect/Brand").Brand<"PromptId">;
|
|
2672
|
+
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
2673
|
+
readonly message: string | null;
|
|
2674
|
+
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
676
2675
|
readonly version: number & import("effect/Brand").Brand<"VersionNumber">;
|
|
677
2676
|
readonly config: {
|
|
678
2677
|
readonly [x: string]: unknown;
|
|
679
2678
|
};
|
|
680
2679
|
readonly content: string;
|
|
681
2680
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
682
|
-
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
683
2681
|
} & {
|
|
684
2682
|
readonly versions?: readonly {
|
|
685
2683
|
readonly message: string | null;
|
|
686
2684
|
readonly version: number & import("effect/Brand").Brand<"VersionNumber">;
|
|
687
2685
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
688
2686
|
}[] | undefined;
|
|
689
|
-
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
2687
|
+
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | Forbidden | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
690
2688
|
readonly update: <WithResponse extends boolean = false>(request: {
|
|
691
2689
|
readonly payload: {
|
|
692
|
-
readonly message?: string | undefined;
|
|
693
2690
|
readonly id: string & import("effect/Brand").Brand<"PromptId">;
|
|
2691
|
+
readonly message?: string | undefined;
|
|
694
2692
|
readonly config?: {
|
|
695
2693
|
readonly [x: string]: unknown;
|
|
696
2694
|
} | undefined;
|
|
@@ -698,16 +2696,16 @@ declare const AnpordApi_base: import("effect/Context").TagClass<AnpordApi, "@anp
|
|
|
698
2696
|
};
|
|
699
2697
|
readonly withResponse?: WithResponse | undefined;
|
|
700
2698
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
701
|
-
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
702
|
-
readonly message: string | null;
|
|
703
2699
|
readonly id: string & import("effect/Brand").Brand<"PromptId">;
|
|
2700
|
+
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
2701
|
+
readonly message: string | null;
|
|
2702
|
+
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
704
2703
|
readonly version: number & import("effect/Brand").Brand<"VersionNumber">;
|
|
705
2704
|
readonly config: {
|
|
706
2705
|
readonly [x: string]: unknown;
|
|
707
2706
|
};
|
|
708
2707
|
readonly content: string;
|
|
709
2708
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
710
|
-
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
711
2709
|
} & {
|
|
712
2710
|
readonly versions?: readonly {
|
|
713
2711
|
readonly message: string | null;
|
|
@@ -715,27 +2713,27 @@ declare const AnpordApi_base: import("effect/Context").TagClass<AnpordApi, "@anp
|
|
|
715
2713
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
716
2714
|
}[] | undefined;
|
|
717
2715
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
718
|
-
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
719
|
-
readonly message: string | null;
|
|
720
2716
|
readonly id: string & import("effect/Brand").Brand<"PromptId">;
|
|
2717
|
+
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
2718
|
+
readonly message: string | null;
|
|
2719
|
+
readonly channel: (string & import("effect/Brand").Brand<"ChannelName">) | null;
|
|
721
2720
|
readonly version: number & import("effect/Brand").Brand<"VersionNumber">;
|
|
722
2721
|
readonly config: {
|
|
723
2722
|
readonly [x: string]: unknown;
|
|
724
2723
|
};
|
|
725
2724
|
readonly content: string;
|
|
726
2725
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
727
|
-
readonly name: string & import("effect/Brand").Brand<"PromptName">;
|
|
728
2726
|
} & {
|
|
729
2727
|
readonly versions?: readonly {
|
|
730
2728
|
readonly message: string | null;
|
|
731
2729
|
readonly version: number & import("effect/Brand").Brand<"VersionNumber">;
|
|
732
2730
|
readonly createdAt: import("effect/DateTime").Utc;
|
|
733
2731
|
}[] | undefined;
|
|
734
|
-
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
2732
|
+
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | Forbidden | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
735
2733
|
readonly promote: <WithResponse extends boolean = false>(request: {
|
|
736
2734
|
readonly payload: {
|
|
737
|
-
readonly channel: string & import("effect/Brand").Brand<"ChannelName">;
|
|
738
2735
|
readonly id: string & import("effect/Brand").Brand<"PromptId">;
|
|
2736
|
+
readonly channel: string & import("effect/Brand").Brand<"ChannelName">;
|
|
739
2737
|
readonly version: number & import("effect/Brand").Brand<"VersionNumber">;
|
|
740
2738
|
};
|
|
741
2739
|
readonly withResponse?: WithResponse | undefined;
|
|
@@ -743,23 +2741,155 @@ declare const AnpordApi_base: import("effect/Context").TagClass<AnpordApi, "@anp
|
|
|
743
2741
|
readonly ok: true;
|
|
744
2742
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
745
2743
|
readonly ok: true;
|
|
746
|
-
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
747
|
-
readonly archive: <WithResponse extends boolean = false>(request: {
|
|
748
|
-
readonly payload: {
|
|
749
|
-
readonly id: string & import("effect/Brand").Brand<"PromptId">;
|
|
750
|
-
};
|
|
751
|
-
readonly withResponse?: WithResponse | undefined;
|
|
752
|
-
}) => Effect.Effect<WithResponse extends true ? [{
|
|
753
|
-
readonly ok: true;
|
|
754
|
-
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
755
|
-
readonly ok: true;
|
|
756
|
-
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
2744
|
+
}, import("@effect/platform/HttpApiError").HttpApiDecodeError | BadRequest | Conflict | Forbidden | NotFound | Unauthorized | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError, never>;
|
|
757
2745
|
};
|
|
758
2746
|
}) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, AnpordApi | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1, import("effect/Cause").UnknownException, AnpordApi> : Effect.Effect<X, never, AnpordApi>;
|
|
759
2747
|
};
|
|
760
2748
|
declare class AnpordApi extends AnpordApi_base {}
|
|
761
2749
|
declare const layer: (options: ClientOptions) => Layer.Layer<AnpordApi, never, never>;
|
|
762
2750
|
//#endregion
|
|
2751
|
+
//#region ../template/src/render.d.ts
|
|
2752
|
+
/** Objects are rejected on purpose: `[object Object]` is a bug and
|
|
2753
|
+
* `JSON.stringify` is a guess, so the caller decides which they meant. */
|
|
2754
|
+
type VariableValue = string | number | boolean | null | undefined;
|
|
2755
|
+
type Variables = Readonly<Record<string, VariableValue>>;
|
|
2756
|
+
//#endregion
|
|
2757
|
+
//#region src/client/cache/settings.d.ts
|
|
2758
|
+
interface CacheOptions {
|
|
2759
|
+
readonly capacity?: number;
|
|
2760
|
+
readonly maxConcurrentRefresh?: number;
|
|
2761
|
+
readonly maxStaleMs?: number;
|
|
2762
|
+
readonly ttlMs?: number;
|
|
2763
|
+
}
|
|
2764
|
+
//#endregion
|
|
2765
|
+
//#region src/client/cache/types.d.ts
|
|
2766
|
+
interface PromptSelector {
|
|
2767
|
+
readonly channel?: string;
|
|
2768
|
+
readonly id: string;
|
|
2769
|
+
readonly includeVersions?: boolean;
|
|
2770
|
+
readonly version?: number;
|
|
2771
|
+
}
|
|
2772
|
+
/** A string for the common case, an object when there is config to fall back
|
|
2773
|
+
* on too. Never a whole prompt: inventing a version and a timestamp for a
|
|
2774
|
+
* hardcoded string is work the caller should not have to do. */
|
|
2775
|
+
type PromptFallback = string | {
|
|
2776
|
+
readonly config?: Record<string, unknown>;
|
|
2777
|
+
readonly content: string;
|
|
2778
|
+
};
|
|
2779
|
+
interface GetPromptOptions extends PromptSelector {
|
|
2780
|
+
readonly fallback?: PromptFallback;
|
|
2781
|
+
readonly variables?: Variables;
|
|
2782
|
+
}
|
|
2783
|
+
interface PromptMetadata {
|
|
2784
|
+
readonly ageMs: number;
|
|
2785
|
+
/** Why the caller received the value they received. */
|
|
2786
|
+
readonly freshness: "fresh" | "cached" | "stale" | "fallback";
|
|
2787
|
+
readonly key: string;
|
|
2788
|
+
/** Present when the answer is stale or a fallback, naming what went wrong. */
|
|
2789
|
+
readonly reason?: string;
|
|
2790
|
+
}
|
|
2791
|
+
//#endregion
|
|
2792
|
+
//#region src/client/promised.d.ts
|
|
2793
|
+
type Payload<Method> = Method extends ((request: {
|
|
2794
|
+
readonly payload: infer P;
|
|
2795
|
+
}) => unknown) ? P : never;
|
|
2796
|
+
/** Brands are the server's business. A caller passes the string they have
|
|
2797
|
+
* rather than one the schema has blessed. */
|
|
2798
|
+
type Unbranded<A> = A extends string & Brand.Brand<string> ? string : A extends number & Brand.Brand<string> ? number : A extends readonly (infer Item)[] ? readonly Unbranded<Item>[] : A extends Date ? A : A extends object ? { readonly [K in keyof A]: Unbranded<A[K]>; } : A;
|
|
2799
|
+
type WithoutResponse<A> = A extends readonly [unknown, HttpClientResponse.HttpClientResponse] ? never : A;
|
|
2800
|
+
type Result<Method> = Method extends ((request: never) => Effect.Effect<infer A, unknown, never>) ? WithoutResponse<A> : never;
|
|
2801
|
+
type Request<Method> = Unbranded<Payload<Method>>;
|
|
2802
|
+
/** The Effect client as promises, so a caller who does not use Effect never
|
|
2803
|
+
* meets it. A group with no payload takes no argument. */
|
|
2804
|
+
type Promised<Group> = { readonly [Method in keyof Group]: Payload<Group[Method]> extends Record<string, never> ? (request?: Request<Group[Method]>) => Promise<Result<Group[Method]>> : (request: Request<Group[Method]>) => Promise<Result<Group[Method]>>; };
|
|
2805
|
+
//#endregion
|
|
2806
|
+
//#region src/client/variables.d.ts
|
|
2807
|
+
/**
|
|
2808
|
+
* What each prompt's variables are, filled in by `anpord generate`.
|
|
2809
|
+
*
|
|
2810
|
+
* Empty here on purpose. A caller who never generates passes whatever they
|
|
2811
|
+
* like and everything works; a caller who does gets their own prompts named,
|
|
2812
|
+
* and a misspelling becomes a compile error rather than a brace reaching a
|
|
2813
|
+
* model.
|
|
2814
|
+
*/
|
|
2815
|
+
interface AnpordPromptVariables {}
|
|
2816
|
+
type Known = keyof AnpordPromptVariables & string;
|
|
2817
|
+
/** A widened id cannot be looked up, so a caller building one at runtime keeps
|
|
2818
|
+
* the loose shape rather than being refused. */
|
|
2819
|
+
type IsLiteral<Id extends string> = string extends Id ? false : true;
|
|
2820
|
+
type Declared<Id extends string> = Id extends Known ? AnpordPromptVariables[Id] : never;
|
|
2821
|
+
/**
|
|
2822
|
+
* Whether the declarations name any variable for this prompt.
|
|
2823
|
+
*
|
|
2824
|
+
* A prompt that had none when the file was written is not a prompt that can
|
|
2825
|
+
* never have any: somebody adds one in the dashboard and a build that never
|
|
2826
|
+
* touched it stops compiling. Declaring none is read as not knowing rather
|
|
2827
|
+
* than as knowing there are none, so only a prompt with named variables holds
|
|
2828
|
+
* a caller to a shape.
|
|
2829
|
+
*/
|
|
2830
|
+
type Names<Id extends string> = Id extends Known ? Declared<Id> extends Record<string, never> ? false : true : false;
|
|
2831
|
+
/** Names the template does not use, so passing one is a compile error that
|
|
2832
|
+
* says which. */
|
|
2833
|
+
type Unexpected<Id extends string, Given> = Exclude<keyof Given, keyof Declared<Id>>;
|
|
2834
|
+
type VariablesFor<Id extends string, Given> = IsLiteral<Id> extends true ? Names<Id> extends true ? [Unexpected<Id, Given>] extends [never] ? Declared<Id> : Declared<Id> & Record<Unexpected<Id, Given>, never> : Variables : Variables;
|
|
2835
|
+
//#endregion
|
|
2836
|
+
//#region src/client/wait.d.ts
|
|
2837
|
+
interface WaitOptions {
|
|
2838
|
+
readonly maxIntervalMs?: number;
|
|
2839
|
+
readonly onProgress?: (run: EvalRun) => void;
|
|
2840
|
+
readonly pollIntervalMs?: number;
|
|
2841
|
+
readonly signal?: AbortSignal;
|
|
2842
|
+
readonly timeoutMs?: number;
|
|
2843
|
+
}
|
|
2844
|
+
declare class EvalTimeout extends Error {
|
|
2845
|
+
readonly name = "EvalTimeout";
|
|
2846
|
+
readonly runId: string;
|
|
2847
|
+
constructor(runId: string, elapsedMs: number);
|
|
2848
|
+
}
|
|
2849
|
+
declare class EvalAborted extends Error {
|
|
2850
|
+
readonly name = "EvalAborted";
|
|
2851
|
+
readonly runId: string;
|
|
2852
|
+
constructor(runId: string);
|
|
2853
|
+
}
|
|
2854
|
+
//#endregion
|
|
2855
|
+
//#region src/client/anpord.d.ts
|
|
2856
|
+
interface AnpordOptions {
|
|
2857
|
+
readonly apiKey?: string;
|
|
2858
|
+
readonly baseUrl?: string;
|
|
2859
|
+
readonly cache?: boolean | CacheOptions;
|
|
2860
|
+
}
|
|
2861
|
+
type Prompts = Promised<AnpordClient["prompts"]>;
|
|
2862
|
+
type Prompt = Awaited<ReturnType<Prompts["get"]>>;
|
|
2863
|
+
type Evals = Promised<AnpordClient["evals"]>;
|
|
2864
|
+
type StartOptions = Parameters<Evals["start"]>[0];
|
|
2865
|
+
type Run = Awaited<ReturnType<Evals["get"]>>;
|
|
2866
|
+
interface EvalsSurface extends Evals {
|
|
2867
|
+
/** Starts a run and resolves once it finishes. */
|
|
2868
|
+
readonly startAndWait: (options: StartOptions & WaitOptions) => Promise<Run>;
|
|
2869
|
+
/** Polls an already-started run until it finishes. */
|
|
2870
|
+
readonly wait: (options: {
|
|
2871
|
+
readonly id: string;
|
|
2872
|
+
} & WaitOptions) => Promise<Run>;
|
|
2873
|
+
}
|
|
2874
|
+
type PromptResult = Prompt & {
|
|
2875
|
+
readonly anpord: PromptMetadata;
|
|
2876
|
+
};
|
|
2877
|
+
interface PromptsSurface extends Omit<Prompts, "get"> {
|
|
2878
|
+
readonly get: <const Id extends string, const Given extends Variables>(options: GetPromptOptions & {
|
|
2879
|
+
readonly id: Id;
|
|
2880
|
+
readonly variables?: VariablesFor<Id, Given> & Given;
|
|
2881
|
+
}) => Promise<PromptResult>;
|
|
2882
|
+
}
|
|
2883
|
+
declare class Anpord {
|
|
2884
|
+
readonly evals: EvalsSurface;
|
|
2885
|
+
readonly prompts: PromptsSurface;
|
|
2886
|
+
private readonly runtime;
|
|
2887
|
+
constructor(options?: AnpordOptions);
|
|
2888
|
+
dispose(): Promise<void>;
|
|
2889
|
+
[Symbol.asyncDispose](): Promise<void>;
|
|
2890
|
+
private resolve;
|
|
2891
|
+
}
|
|
2892
|
+
//#endregion
|
|
763
2893
|
//#region ../schema/src/public/shapes.d.ts
|
|
764
2894
|
declare const PublicPrompt: Schema.Struct<{
|
|
765
2895
|
channel: Schema.NullOr<Schema.brand<Schema.filter<Schema.filter<Schema.filter<typeof Schema.String>>>, "ChannelName">>;
|
|
@@ -778,6 +2908,23 @@ declare const PublicVersion: Schema.Struct<{
|
|
|
778
2908
|
version: Schema.brand<Schema.filter<typeof Schema.Int>, "VersionNumber">;
|
|
779
2909
|
}>;
|
|
780
2910
|
type PublicVersion = typeof PublicVersion.Type;
|
|
2911
|
+
declare const PublicPromptWithVersions: Schema.extend<Schema.Struct<{
|
|
2912
|
+
channel: Schema.NullOr<Schema.brand<Schema.filter<Schema.filter<Schema.filter<typeof Schema.String>>>, "ChannelName">>;
|
|
2913
|
+
config: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
|
|
2914
|
+
content: typeof Schema.String;
|
|
2915
|
+
createdAt: Schema.transformOrFail<Schema.SchemaClass<string, string, never>, typeof Schema.DateTimeUtcFromSelf, never>;
|
|
2916
|
+
id: Schema.brand<Schema.filter<Schema.filter<Schema.filter<typeof Schema.String>>>, "PromptId">;
|
|
2917
|
+
message: Schema.NullOr<Schema.filter<typeof Schema.String>>;
|
|
2918
|
+
name: Schema.brand<Schema.filter<Schema.filter<typeof Schema.String>>, "PromptName">;
|
|
2919
|
+
version: Schema.brand<Schema.filter<typeof Schema.Int>, "VersionNumber">;
|
|
2920
|
+
}>, Schema.Struct<{
|
|
2921
|
+
versions: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
2922
|
+
createdAt: Schema.transformOrFail<Schema.SchemaClass<string, string, never>, typeof Schema.DateTimeUtcFromSelf, never>;
|
|
2923
|
+
message: Schema.NullOr<Schema.filter<typeof Schema.String>>;
|
|
2924
|
+
version: Schema.brand<Schema.filter<typeof Schema.Int>, "VersionNumber">;
|
|
2925
|
+
}>>>;
|
|
2926
|
+
}>>;
|
|
2927
|
+
type PublicPromptWithVersions = typeof PublicPromptWithVersions.Type;
|
|
781
2928
|
declare const PublicPromptSummary: Schema.Struct<{
|
|
782
2929
|
id: Schema.brand<Schema.filter<Schema.filter<Schema.filter<typeof Schema.String>>>, "PromptId">;
|
|
783
2930
|
latestVersion: Schema.NullOr<Schema.brand<Schema.filter<typeof Schema.Int>, "VersionNumber">>;
|
|
@@ -787,24 +2934,6 @@ declare const PublicPromptSummary: Schema.Struct<{
|
|
|
787
2934
|
}>;
|
|
788
2935
|
type PublicPromptSummary = typeof PublicPromptSummary.Type;
|
|
789
2936
|
//#endregion
|
|
790
|
-
//#region src/client/anpord.d.ts
|
|
791
|
-
interface AnpordOptions {
|
|
792
|
-
readonly apiKey?: string;
|
|
793
|
-
readonly baseUrl?: string;
|
|
794
|
-
}
|
|
795
|
-
type Payload<Method> = Method extends ((request: {
|
|
796
|
-
readonly payload: infer P;
|
|
797
|
-
}) => unknown) ? P : never;
|
|
798
|
-
type Unbranded<A> = A extends string & Brand.Brand<string> ? string : A extends number & Brand.Brand<string> ? number : A extends readonly (infer Item)[] ? readonly Unbranded<Item>[] : A extends Date ? A : A extends object ? { readonly [K in keyof A]: Unbranded<A[K]>; } : A;
|
|
799
|
-
type WithoutResponse<A> = A extends readonly [unknown, HttpClientResponse.HttpClientResponse] ? never : A;
|
|
800
|
-
type Result<Method> = Method extends ((request: never) => Effect.Effect<infer A, unknown, never>) ? WithoutResponse<A> : never;
|
|
801
|
-
type Request<Method> = Unbranded<Payload<Method>>;
|
|
802
|
-
type Promised<Group> = { readonly [Method in keyof Group]: Payload<Group[Method]> extends Record<string, never> ? (request?: Request<Group[Method]>) => Promise<Result<Group[Method]>> : (request: Request<Group[Method]>) => Promise<Result<Group[Method]>>; };
|
|
803
|
-
declare class Anpord {
|
|
804
|
-
readonly prompts: Promised<AnpordClient["prompts"]>;
|
|
805
|
-
constructor(options?: AnpordOptions);
|
|
806
|
-
}
|
|
807
|
-
//#endregion
|
|
808
2937
|
//#region src/client/errors.d.ts
|
|
809
2938
|
declare class MissingApiKey extends Error {
|
|
810
2939
|
readonly name = "MissingApiKey";
|
|
@@ -820,4 +2949,52 @@ declare class AnpordError extends Error {
|
|
|
820
2949
|
});
|
|
821
2950
|
}
|
|
822
2951
|
//#endregion
|
|
823
|
-
|
|
2952
|
+
//#region src/evals/types.d.ts
|
|
2953
|
+
type EvalTaskRequest$1 = PublicStartEvalRequest["tasks"][number];
|
|
2954
|
+
interface ValidatorCommandResult {
|
|
2955
|
+
readonly exitCode: number;
|
|
2956
|
+
readonly stderr: string;
|
|
2957
|
+
readonly stdout: string;
|
|
2958
|
+
}
|
|
2959
|
+
interface ValidatorContext {
|
|
2960
|
+
readonly exec: (command: string) => Promise<ValidatorCommandResult>;
|
|
2961
|
+
readonly exists: (path: string) => Promise<boolean>;
|
|
2962
|
+
readonly readText: (path: string) => Promise<string>;
|
|
2963
|
+
}
|
|
2964
|
+
interface ValidatorResult {
|
|
2965
|
+
readonly message?: string;
|
|
2966
|
+
readonly passed: boolean;
|
|
2967
|
+
}
|
|
2968
|
+
type Validator = (context: ValidatorContext) => boolean | ValidatorResult | Promise<boolean | ValidatorResult>;
|
|
2969
|
+
type DeclaredSource = EvalSource | string;
|
|
2970
|
+
interface EvalCaseBase {
|
|
2971
|
+
readonly name: string;
|
|
2972
|
+
readonly setup?: string | null;
|
|
2973
|
+
readonly source?: DeclaredSource;
|
|
2974
|
+
readonly variables?: Readonly<Record<string, string>>;
|
|
2975
|
+
}
|
|
2976
|
+
type EvalCaseDefinition = EvalCaseBase & ({
|
|
2977
|
+
readonly validate: Validator;
|
|
2978
|
+
readonly verify?: never;
|
|
2979
|
+
} | {
|
|
2980
|
+
readonly validate?: never;
|
|
2981
|
+
readonly verify: string;
|
|
2982
|
+
});
|
|
2983
|
+
interface EvalDefinition {
|
|
2984
|
+
readonly cases: readonly EvalCaseDefinition[];
|
|
2985
|
+
readonly name: string;
|
|
2986
|
+
readonly prompt: string;
|
|
2987
|
+
readonly source?: DeclaredSource;
|
|
2988
|
+
readonly tasks: readonly EvalTaskRequest$1[];
|
|
2989
|
+
readonly trials: number;
|
|
2990
|
+
}
|
|
2991
|
+
//#endregion
|
|
2992
|
+
//#region src/evals/define.d.ts
|
|
2993
|
+
declare const defineEval: <const Definition extends EvalDefinition>(definition: Definition) => Definition;
|
|
2994
|
+
//#endregion
|
|
2995
|
+
//#region src/index.d.ts
|
|
2996
|
+
type StartEvalRequest = Parameters<EvalsSurface["start"]>[0];
|
|
2997
|
+
type EvalCase = StartEvalRequest["cases"][number];
|
|
2998
|
+
type EvalTaskRequest = StartEvalRequest["tasks"][number];
|
|
2999
|
+
//#endregion
|
|
3000
|
+
export { Anpord, AnpordApi, type AnpordClient, AnpordError, type AnpordOptions, type AnpordPromptVariables, type CacheOptions, type CatalogueModel, type ClientOptions, DEFAULT_BASE_URL, EvalAborted, EvalCase, type EvalCaseDefinition, type EvalCell, type EvalCellHistoryEntry, type EvalComparison, type EvalDefinition, type EvalDistribution, type EvalHarness, type EvalJournalEntry, type EvalProvider, type EvalRun, type EvalRunStatus, type EvalRunSummary, type EvalSource, type EvalTask, EvalTaskRequest, EvalTimeout, type EvalTrial, type EvalTrialStatus, type EvalUsage, type EvalVerdict, type EvalsSurface, type GetPromptOptions, MissingApiKey, type ModelCatalogue, type PromptFallback, type PromptMetadata, type PromptResult, type PromptsSurface, type PublicPrompt, type PublicPromptSummary, type PublicPromptWithVersions, type PublicVersion, type RerunCellRequest, StartEvalRequest, type StartedEval, type Validator, type ValidatorCommandResult, type ValidatorContext, type ValidatorResult, type WaitOptions, defineEval, empty, files, layer, make, repo };
|