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/index.mjs CHANGED
@@ -4,8 +4,6 @@ import {
4
4
  DEFAULT_QUERY_URL,
5
5
  DEFAULT_TRACE_WAIT_MS,
6
6
  EVAL_CORRELATION_ID_ATTRIBUTE,
7
- EvalDatasetPublishConflictError,
8
- EvalDatasetRowInputSchema,
9
7
  EvalParameterError,
10
8
  EvalPublishError,
11
9
  LocalBooleanVerdictSchema,
@@ -28,16 +26,12 @@ import {
28
26
  createEvalSuiteRun,
29
27
  createReplay,
30
28
  currentEvalScope,
29
+ defaultAgentInput,
31
30
  defineAgent,
32
31
  evaluateEvalRun,
33
32
  evaluateReplay,
34
33
  index_default,
35
- loadEvalSnapshot,
36
- publishEvalDataset,
37
34
  publishEvalSuite,
38
- pullEval,
39
- readEvalDataset,
40
- readEvalManifest,
41
35
  readEvalRun,
42
36
  readEvaluator,
43
37
  readReplay,
@@ -47,39 +41,47 @@ import {
47
41
  runReplay,
48
42
  traceTools,
49
43
  withEvalScope
50
- } from "./chunk-HEJQOFNN.mjs";
51
- import "./chunk-7HPYMPNJ.mjs";
44
+ } from "./chunk-PYMV6B3M.mjs";
45
+ import "./chunk-F5TJSGNA.mjs";
52
46
  import {
53
47
  BooleanThresholdSchema,
48
+ DatasetColumnSchema,
49
+ DatasetIdSchema,
54
50
  EvalContextSchema,
55
51
  EvalSuiteManifestSchema,
56
52
  NumericThresholdSchema,
53
+ ReferenceOutputSchema,
54
+ ReferenceOutputSourceSchema,
55
+ ReplayMessageContentPartSchema,
56
+ ReplayMessageSchema,
57
+ ReplayMessageToolCallSchema,
57
58
  TraceSchema,
58
- defineDataset,
59
59
  defineEvalSuite,
60
60
  defineEvaluatorProgram,
61
61
  defineLocalEvaluator,
62
62
  evaluatePortableEvaluator,
63
63
  formatTrace,
64
64
  importPortableEvaluator,
65
- isEvalDataset,
66
65
  isEvalSuiteDefinition,
67
66
  isPublishedEvalSuite,
67
+ parseDatasetId,
68
68
  projectWorkshopTrace,
69
+ readDataset,
69
70
  traceOutput,
70
71
  traceToolCalls,
71
72
  verifyPortableEvalArtifact
72
- } from "./chunk-6575YF3B.mjs";
73
+ } from "./chunk-BU322D7Q.mjs";
74
+ import "./chunk-CSH7U5JZ.mjs";
73
75
  export {
74
76
  BooleanThresholdSchema,
75
77
  DEFAULT_EVAL_POLL_INTERVAL_MS,
76
78
  DEFAULT_EVAL_WAIT_MS,
77
79
  DEFAULT_QUERY_URL,
78
80
  DEFAULT_TRACE_WAIT_MS,
81
+ DatasetColumnSchema,
82
+ DatasetIdSchema,
79
83
  EVAL_CORRELATION_ID_ATTRIBUTE,
80
84
  EvalContextSchema,
81
- EvalDatasetPublishConflictError,
82
- EvalDatasetRowInputSchema,
83
85
  EvalParameterError,
84
86
  EvalPublishError,
85
87
  EvalSuiteManifestSchema,
@@ -92,10 +94,15 @@ export {
92
94
  MAX_INGEST_SIZE_BYTES,
93
95
  NumericThresholdSchema,
94
96
  Raindrop,
97
+ ReferenceOutputSchema,
98
+ ReferenceOutputSourceSchema,
95
99
  ReplayCountsSchema,
96
100
  ReplayEvaluatorCountsSchema,
97
101
  ReplayEvaluatorStatsSchema,
98
102
  ReplayEvaluatorSummarySchema,
103
+ ReplayMessageContentPartSchema,
104
+ ReplayMessageSchema,
105
+ ReplayMessageToolCallSchema,
99
106
  ReplayResultRowSchema,
100
107
  ReplayVerdictSchema,
101
108
  TraceSchema,
@@ -106,8 +113,8 @@ export {
106
113
  createReplay,
107
114
  currentEvalScope,
108
115
  index_default as default,
116
+ defaultAgentInput,
109
117
  defineAgent,
110
- defineDataset,
111
118
  defineEvalSuite,
112
119
  defineEvaluatorProgram,
113
120
  defineLocalEvaluator,
@@ -116,16 +123,12 @@ export {
116
123
  evaluateReplay,
117
124
  formatTrace,
118
125
  importPortableEvaluator,
119
- isEvalDataset,
120
126
  isEvalSuiteDefinition,
121
127
  isPublishedEvalSuite,
122
- loadEvalSnapshot,
128
+ parseDatasetId,
123
129
  projectWorkshopTrace,
124
- publishEvalDataset,
125
130
  publishEvalSuite,
126
- pullEval,
127
- readEvalDataset,
128
- readEvalManifest,
131
+ readDataset,
129
132
  readEvalRun,
130
133
  readEvaluator,
131
134
  readReplay,
@@ -1,7 +1,8 @@
1
1
  import {
2
2
  PortableEvalLimitsSchema,
3
3
  parsePortableEvalResult
4
- } from "./chunk-6575YF3B.mjs";
4
+ } from "./chunk-BU322D7Q.mjs";
5
+ import "./chunk-CSH7U5JZ.mjs";
5
6
 
6
7
  // src/evals/portable-runtime.ts
7
8
  import variant from "@jitl/quickjs-singlefile-cjs-release-sync";
@@ -49,8 +50,8 @@ async function runPortableEvaluator(evaluator, input) {
49
50
  const deferreds = [];
50
51
  const hostCalls = /* @__PURE__ */ new Set();
51
52
  const tracesById = new Map(input.traces.map((trace) => [trace.event.id, trace]));
52
- const casesByTraceId = new Map(
53
- input.cases.map((entry) => [entry.candidate.trace.event.id, entry])
53
+ const rowsByTraceId = new Map(
54
+ input.rows.map((entry) => [entry.candidate.trace.event.id, entry])
54
55
  );
55
56
  let activeJudgeCalls = 0;
56
57
  const judgeWaiters = [];
@@ -78,7 +79,7 @@ async function runPortableEvaluator(evaluator, input) {
78
79
  requestJson,
79
80
  deadline,
80
81
  tracesById,
81
- casesByTraceId,
82
+ rowsByTraceId,
82
83
  cancellation.signal,
83
84
  async () => {
84
85
  await acquire();
@@ -163,7 +164,7 @@ async function drivePromise(runtime, context, promise, deadline) {
163
164
  if (Date.now() >= deadline) throw new Error("interrupted");
164
165
  }
165
166
  }
166
- async function resolveJudge(evaluator, rawRequest, deadline, tracesById, casesByTraceId, signal, acquire) {
167
+ async function resolveJudge(evaluator, rawRequest, deadline, tracesById, rowsByTraceId, signal, acquire) {
167
168
  var _a, _b;
168
169
  let requestId = "unknown";
169
170
  try {
@@ -189,7 +190,7 @@ async function resolveJudge(evaluator, rawRequest, deadline, tracesById, casesBy
189
190
  trace,
190
191
  text: request.text,
191
192
  outputType: request.outputType,
192
- tracePair: rowTracePair(casesByTraceId.get(request.traceId)),
193
+ tracePair: rowsByTraceId.get(request.traceId),
193
194
  rubric: request.rubric.slice(0, 4e4),
194
195
  signal: controller.signal
195
196
  });
@@ -220,11 +221,6 @@ async function resolveJudge(evaluator, rawRequest, deadline, tracesById, casesBy
220
221
  function byteLength(value) {
221
222
  return new TextEncoder().encode(value).byteLength;
222
223
  }
223
- function rowTracePair(pair) {
224
- if (!pair) return void 0;
225
- const { caseId, ...evidence } = pair;
226
- return { ...evidence, rowId: caseId };
227
- }
228
224
  export {
229
225
  runPortableEvaluator
230
226
  };
@@ -1,10 +1,11 @@
1
1
  import { Instrumentation } from '@opentelemetry/instrumentation';
2
- import { I as InitializeOptions, P as PiiFieldMap, S as SpanProcessorOptions, B as BeginParams, C as CarrierHeaders, T as TraceCarrier, F as FlushResultCompat, g as FlushResult } from '../index-mM4Ls3Kv.mjs';
2
+ import { I as InitializeOptions, P as PiiFieldMap, S as SpanProcessorOptions, B as BeginParams, C as CarrierHeaders, T as TraceCarrier, F as FlushResultCompat, g as FlushResult } from '../index-BJJ273dz.mjs';
3
3
  import { Raindrop, MaskFunction, RaindropSpanProcessor, Interaction, AiTrackUsage, AppGitSnapshot, SubagentResumeOptions, SubagentRun, Tracer } from '../index.mjs';
4
4
  import '@opentelemetry/api';
5
5
  import 'zod/v4';
6
6
  import '@opentelemetry/sdk-trace-base';
7
7
  import 'zod/v3';
8
+ import 'zod';
8
9
 
9
10
  interface TracingOptions extends InitializeOptions {
10
11
  /**
@@ -1,10 +1,11 @@
1
1
  import { Instrumentation } from '@opentelemetry/instrumentation';
2
- import { I as InitializeOptions, P as PiiFieldMap, S as SpanProcessorOptions, B as BeginParams, C as CarrierHeaders, T as TraceCarrier, F as FlushResultCompat, g as FlushResult } from '../index-mM4Ls3Kv.js';
2
+ import { I as InitializeOptions, P as PiiFieldMap, S as SpanProcessorOptions, B as BeginParams, C as CarrierHeaders, T as TraceCarrier, F as FlushResultCompat, g as FlushResult } from '../index-BJJ273dz.js';
3
3
  import { Raindrop, MaskFunction, RaindropSpanProcessor, Interaction, AiTrackUsage, AppGitSnapshot, SubagentResumeOptions, SubagentRun, Tracer } from '../index.js';
4
4
  import '@opentelemetry/api';
5
5
  import 'zod/v4';
6
6
  import '@opentelemetry/sdk-trace-base';
7
7
  import 'zod/v3';
8
+ import 'zod';
8
9
 
9
10
  interface TracingOptions extends InitializeOptions {
10
11
  /**
@@ -3152,7 +3152,7 @@ function formatEndpoint2(endpoint) {
3152
3152
  // package.json
3153
3153
  var package_default = {
3154
3154
  name: "raindrop-ai",
3155
- version: "1.1.1",
3155
+ version: "2.0.0",
3156
3156
  main: "dist/index.js",
3157
3157
  module: "dist/index.mjs",
3158
3158
  types: "dist/index.d.ts",
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  tracing
3
- } from "../chunk-7HPYMPNJ.mjs";
3
+ } from "../chunk-F5TJSGNA.mjs";
4
+ import "../chunk-CSH7U5JZ.mjs";
4
5
 
5
6
  // src/tracing/index.ts
6
7
  function initTracing() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "raindrop-ai",
3
- "version": "1.1.1",
3
+ "version": "2.0.0",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",