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.
@@ -5,11 +5,12 @@ import {
5
5
  publishEvalSuite,
6
6
  readEvaluator,
7
7
  runEvalSuite
8
- } from "../chunk-HEJQOFNN.mjs";
9
- import "../chunk-7HPYMPNJ.mjs";
8
+ } from "../chunk-PYMV6B3M.mjs";
9
+ import "../chunk-F5TJSGNA.mjs";
10
10
  import {
11
11
  isEvalSuiteDefinition
12
- } from "../chunk-6575YF3B.mjs";
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 uploads dataset rows and pins existing evaluators without running them.",
47
- "The module must default-export defineEvalSuite(...). Run uploads dataset rows first.",
48
- "Create hosted evaluators in Raindrop and reference their slugs. Evaluator source is not uploaded.",
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
- expectedCurrentDatasetVersionId: values["expected-dataset-version"],
96
+ repetitions: values.repetitions === void 0 ? void 0 : Number(values.repetitions),
97
97
  destination: {
98
98
  kind: "raindrop",
99
99
  ...options,