raindrop-ai 0.6.0 → 0.7.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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  parsePortableEvalResult
3
- } from "./chunk-CFGEE5ID.mjs";
3
+ } from "./chunk-RMP6BZSY.mjs";
4
4
  import "./chunk-UJCSKKID.mjs";
5
5
 
6
6
  // src/evals/portable-runtime.ts
@@ -160,7 +160,7 @@ async function resolveJudge(evaluator, rawRequest, remainingMs, tracesById, case
160
160
  var _a2;
161
161
  return (_a2 = evaluator.judge) == null ? void 0 : _a2.call(evaluator, {
162
162
  trace,
163
- tracePair: casesByTraceId.get(request.traceId),
163
+ tracePair: rowTracePair(casesByTraceId.get(request.traceId)),
164
164
  rubric: request.rubric.slice(0, 4e4),
165
165
  signal: controller.signal
166
166
  });
@@ -188,6 +188,11 @@ async function resolveJudge(evaluator, rawRequest, remainingMs, tracesById, case
188
188
  function byteLength(value) {
189
189
  return new TextEncoder().encode(value).byteLength;
190
190
  }
191
+ function rowTracePair(pair) {
192
+ if (!pair) return void 0;
193
+ const { caseId, ...evidence } = pair;
194
+ return { ...evidence, rowId: caseId };
195
+ }
191
196
  export {
192
197
  runPortableEvaluator
193
198
  };
@@ -1,5 +1,5 @@
1
1
  import { Instrumentation } from '@opentelemetry/instrumentation';
2
- import { R as Raindrop, I as InitializeOptions, S as SpanProcessorOptions, a as RaindropSpanProcessor, P as PartialAiTrackEvent, b as Interaction, A as AiTrackUsage, C as CarrierHeaders, T as TraceCarrier, c as SubagentResumeOptions, d as SubagentRun, e as Tracer } from '../index-APN1jN-i.mjs';
2
+ import { R as Raindrop, I as InitializeOptions, S as SpanProcessorOptions, a as RaindropSpanProcessor, P as PartialAiTrackEvent, b as Interaction, A as AiTrackUsage, C as CarrierHeaders, T as TraceCarrier, c as SubagentResumeOptions, d as SubagentRun, e as Tracer } from '../index-n8AIAiRR.mjs';
3
3
  import '@opentelemetry/api';
4
4
  import 'zod';
5
5
  import '@opentelemetry/sdk-trace-base';
@@ -1,5 +1,5 @@
1
1
  import { Instrumentation } from '@opentelemetry/instrumentation';
2
- import { R as Raindrop, I as InitializeOptions, S as SpanProcessorOptions, a as RaindropSpanProcessor, P as PartialAiTrackEvent, b as Interaction, A as AiTrackUsage, C as CarrierHeaders, T as TraceCarrier, c as SubagentResumeOptions, d as SubagentRun, e as Tracer } from '../index-APN1jN-i.js';
2
+ import { R as Raindrop, I as InitializeOptions, S as SpanProcessorOptions, a as RaindropSpanProcessor, P as PartialAiTrackEvent, b as Interaction, A as AiTrackUsage, C as CarrierHeaders, T as TraceCarrier, c as SubagentResumeOptions, d as SubagentRun, e as Tracer } from '../index-n8AIAiRR.js';
3
3
  import '@opentelemetry/api';
4
4
  import 'zod';
5
5
  import '@opentelemetry/sdk-trace-base';
@@ -1384,10 +1384,13 @@ function base64ToHex2(base64) {
1384
1384
  // package.json
1385
1385
  var package_default = {
1386
1386
  name: "raindrop-ai",
1387
- version: "0.6.0",
1387
+ version: "0.7.0",
1388
1388
  main: "dist/index.js",
1389
1389
  module: "dist/index.mjs",
1390
1390
  types: "dist/index.d.ts",
1391
+ bin: {
1392
+ "raindrop-evals": "dist/evals/cli.js"
1393
+ },
1391
1394
  license: "MIT",
1392
1395
  homepage: "https://www.raindrop.ai/docs/sdk/typescript/",
1393
1396
  bugs: {
@@ -1484,6 +1487,7 @@ var package_default = {
1484
1487
  tsup: {
1485
1488
  entry: [
1486
1489
  "src/index.ts",
1490
+ "src/evals/cli.ts",
1487
1491
  "src/tracing/index.ts",
1488
1492
  "src/otel/index.ts"
1489
1493
  ],
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tracing
3
- } from "../chunk-ZVHQBBST.mjs";
3
+ } from "../chunk-OX6X4ZWQ.mjs";
4
4
  import "../chunk-UJCSKKID.mjs";
5
5
 
6
6
  // src/tracing/index.ts
package/package.json CHANGED
@@ -1,9 +1,12 @@
1
1
  {
2
2
  "name": "raindrop-ai",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
7
+ "bin": {
8
+ "raindrop-evals": "dist/evals/cli.js"
9
+ },
7
10
  "license": "MIT",
8
11
  "homepage": "https://www.raindrop.ai/docs/sdk/typescript/",
9
12
  "bugs": {
@@ -82,6 +85,7 @@
82
85
  "tsup": {
83
86
  "entry": [
84
87
  "src/index.ts",
88
+ "src/evals/cli.ts",
85
89
  "src/tracing/index.ts",
86
90
  "src/otel/index.ts"
87
91
  ],