raindrop-ai 1.1.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-BU322D7Q.mjs +1953 -0
- package/dist/{chunk-7HPYMPNJ.mjs → chunk-CSH7U5JZ.mjs} +72 -4140
- package/dist/chunk-F5TJSGNA.mjs +4204 -0
- package/dist/{chunk-6575YF3B.mjs → chunk-PYMV6B3M.mjs} +4326 -1246
- package/dist/evals/cli.js +25704 -25358
- package/dist/evals/cli.mjs +13 -13
- package/dist/{index-mM4Ls3Kv.d.ts → index-BJJ273dz.d.mts} +8434 -4087
- package/dist/{index-mM4Ls3Kv.d.mts → index-BJJ273dz.d.ts} +8434 -4087
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +26461 -26184
- package/dist/index.mjs +24 -21
- package/dist/{portable-runtime-M4PGODCX.mjs → portable-runtime-G27RYK6P.mjs} +7 -11
- package/dist/tracing/index.d.mts +2 -1
- package/dist/tracing/index.d.ts +2 -1
- package/dist/tracing/index.js +1 -1
- package/dist/tracing/index.mjs +2 -1
- package/package.json +1 -1
- package/dist/chunk-HEJQOFNN.mjs +0 -4799
package/dist/evals/cli.mjs
CHANGED
|
@@ -5,11 +5,12 @@ import {
|
|
|
5
5
|
publishEvalSuite,
|
|
6
6
|
readEvaluator,
|
|
7
7
|
runEvalSuite
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-PYMV6B3M.mjs";
|
|
9
|
+
import "../chunk-F5TJSGNA.mjs";
|
|
10
10
|
import {
|
|
11
11
|
isEvalSuiteDefinition
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-BU322D7Q.mjs";
|
|
13
|
+
import "../chunk-CSH7U5JZ.mjs";
|
|
13
14
|
|
|
14
15
|
// src/evals/cli.ts
|
|
15
16
|
import { resolve } from "path";
|
|
@@ -27,8 +28,8 @@ async function main() {
|
|
|
27
28
|
project: { type: "string" },
|
|
28
29
|
"query-url": { type: "string" },
|
|
29
30
|
"replay-ingest-url": { type: "string" },
|
|
30
|
-
"expected-dataset-version": { type: "string" },
|
|
31
31
|
"run-id": { type: "string" },
|
|
32
|
+
repetitions: { type: "string" },
|
|
32
33
|
evaluator: { type: "string" },
|
|
33
34
|
json: { type: "boolean" },
|
|
34
35
|
help: { type: "boolean" }
|
|
@@ -39,13 +40,15 @@ async function main() {
|
|
|
39
40
|
process.stdout.write(
|
|
40
41
|
[
|
|
41
42
|
"raindrop-evals publish <suite.mjs> [--project slug] [--json]",
|
|
42
|
-
"raindrop-evals run <suite.mjs> [--run-id queued-run-id] [--project slug] [--json]",
|
|
43
|
+
"raindrop-evals run <suite.mjs> [--run-id queued-run-id] [--repetitions n] [--project slug] [--json]",
|
|
43
44
|
"raindrop-evals read <evaluator-slug> [--json]",
|
|
44
45
|
"raindrop-evals compare <before-run-id> <after-run-id> [--evaluator slug] [--json]",
|
|
45
46
|
"",
|
|
46
|
-
"Publish
|
|
47
|
-
"The module must default-export defineEvalSuite(...)
|
|
48
|
-
"Create
|
|
47
|
+
"Publish resolves the dataset version and pins existing evaluators without running them.",
|
|
48
|
+
"The module must default-export defineEvalSuite(...) with a dataset UUID from list_datasets.",
|
|
49
|
+
"Create datasets with the Raindrop app or MCP upload_dataset, and hosted evaluators in Raindrop.",
|
|
50
|
+
"--repetitions runs every row n times (1 to 20) and adds average, pass@k and pass^k to the result.",
|
|
51
|
+
"A queued run (--run-id) already has its repetitions, so the two cannot be combined.",
|
|
49
52
|
"Hosted judges run on Raindrop; agent callbacks and local evaluators run locally.",
|
|
50
53
|
"Requires RAINDROP_QUERY_API_KEY. Project defaults to RAINDROP_PROJECT_ID or default.",
|
|
51
54
|
"Use --query-url and --replay-ingest-url for a full-local Raindrop stack.",
|
|
@@ -74,10 +77,7 @@ async function main() {
|
|
|
74
77
|
} else {
|
|
75
78
|
const module = SuiteModuleSchema.parse(await import(pathToFileURL(resolve(file)).href));
|
|
76
79
|
if (command === "publish") {
|
|
77
|
-
const suite = await publishEvalSuite(client, module.default,
|
|
78
|
-
...options,
|
|
79
|
-
expectedCurrentDatasetVersionId: values["expected-dataset-version"]
|
|
80
|
-
});
|
|
80
|
+
const suite = await publishEvalSuite(client, module.default, options);
|
|
81
81
|
print({
|
|
82
82
|
name: suite.name,
|
|
83
83
|
dataset: suite.dataset,
|
|
@@ -93,7 +93,7 @@ async function main() {
|
|
|
93
93
|
} else {
|
|
94
94
|
const result = await runEvalSuite(client, module.default, {
|
|
95
95
|
runId: values["run-id"],
|
|
96
|
-
|
|
96
|
+
repetitions: values.repetitions === void 0 ? void 0 : Number(values.repetitions),
|
|
97
97
|
destination: {
|
|
98
98
|
kind: "raindrop",
|
|
99
99
|
...options,
|