braintrust 2.2.1-rc.0 → 2.2.1

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.
@@ -360,7 +360,7 @@ declare class SpanComponentsV4 {
360
360
  private static fromJsonObj;
361
361
  }
362
362
 
363
- declare const spanTypeAttributeValues: readonly ["llm", "score", "function", "eval", "task", "tool", "automation", "facet", "preprocessor", "classifier"];
363
+ declare const spanTypeAttributeValues: readonly ["llm", "score", "function", "eval", "task", "tool", "automation", "facet", "preprocessor", "classifier", "review"];
364
364
  type SpanType = (typeof spanTypeAttributeValues)[number];
365
365
 
366
366
  declare const AnyModelParams: z.ZodObject<{
@@ -360,7 +360,7 @@ declare class SpanComponentsV4 {
360
360
  private static fromJsonObj;
361
361
  }
362
362
 
363
- declare const spanTypeAttributeValues: readonly ["llm", "score", "function", "eval", "task", "tool", "automation", "facet", "preprocessor", "classifier"];
363
+ declare const spanTypeAttributeValues: readonly ["llm", "score", "function", "eval", "task", "tool", "automation", "facet", "preprocessor", "classifier", "review"];
364
364
  type SpanType = (typeof spanTypeAttributeValues)[number];
365
365
 
366
366
  declare const AnyModelParams: z.ZodObject<{
package/dev/dist/index.js CHANGED
@@ -2159,7 +2159,8 @@ var SpanType = _v3.z.union([
2159
2159
  "automation",
2160
2160
  "facet",
2161
2161
  "preprocessor",
2162
- "classifier"
2162
+ "classifier",
2163
+ "review"
2163
2164
  ]),
2164
2165
  _v3.z.null()
2165
2166
  ]);
@@ -8461,7 +8462,7 @@ function configureNode() {
8461
8462
  var _express = require('express'); var _express2 = _interopRequireDefault(_express);
8462
8463
  var _cors = require('cors'); var _cors2 = _interopRequireDefault(_cors);
8463
8464
 
8464
- // ../node_modules/.pnpm/async@3.2.5/node_modules/async/dist/async.mjs
8465
+ // ../node_modules/async/dist/async.mjs
8465
8466
  function initialParams(fn) {
8466
8467
  return function(...args) {
8467
8468
  var callback = args.pop();
@@ -8586,7 +8587,6 @@ function isArrayLike(value) {
8586
8587
  return value && typeof value.length === "number" && value.length >= 0 && value.length % 1 === 0;
8587
8588
  }
8588
8589
  var breakLoop = {};
8589
- var breakLoop$1 = breakLoop;
8590
8590
  function once(fn) {
8591
8591
  function wrapper(...args) {
8592
8592
  if (fn === null) return;
@@ -8678,7 +8678,7 @@ function asyncEachOfLimit(generator, limit, iteratee, callback) {
8678
8678
  canceled = true;
8679
8679
  return;
8680
8680
  }
8681
- if (result === breakLoop$1 || done && running <= 0) {
8681
+ if (result === breakLoop || done && running <= 0) {
8682
8682
  done = true;
8683
8683
  return callback(null);
8684
8684
  }
@@ -8721,7 +8721,7 @@ var eachOfLimit$2 = (limit) => {
8721
8721
  } else if (err === false) {
8722
8722
  done = true;
8723
8723
  canceled = true;
8724
- } else if (value === breakLoop$1 || done && running <= 0) {
8724
+ } else if (value === breakLoop || done && running <= 0) {
8725
8725
  done = true;
8726
8726
  return callback(null);
8727
8727
  } else if (!looping) {
@@ -8764,7 +8764,7 @@ function eachOfArrayLike(coll, iteratee, callback) {
8764
8764
  if (canceled === true) return;
8765
8765
  if (err) {
8766
8766
  callback(err);
8767
- } else if (++completed === length || value === breakLoop$1) {
8767
+ } else if (++completed === length || value === breakLoop) {
8768
8768
  callback(null);
8769
8769
  }
8770
8770
  }
@@ -9160,7 +9160,7 @@ function _createTester(check, getResult) {
9160
9160
  if (check(result) && !testResult) {
9161
9161
  testPassed = true;
9162
9162
  testResult = getResult(true, value);
9163
- return callback(null, breakLoop$1);
9163
+ return callback(null, breakLoop);
9164
9164
  }
9165
9165
  callback();
9166
9166
  });
@@ -1,10 +1,10 @@
1
1
  // src/node.ts
2
- import { AsyncLocalStorage } from "async_hooks";
3
- import * as path from "path";
4
- import * as fs from "fs/promises";
5
- import * as os from "os";
6
- import * as fsSync from "fs";
7
- import * as crypto from "crypto";
2
+ import { AsyncLocalStorage } from "node:async_hooks";
3
+ import * as path from "node:path";
4
+ import * as fs from "node:fs/promises";
5
+ import * as os from "node:os";
6
+ import * as fsSync from "node:fs";
7
+ import * as crypto from "node:crypto";
8
8
 
9
9
  // src/isomorph.ts
10
10
  var DefaultAsyncLocalStorage = class {
@@ -2159,7 +2159,8 @@ var SpanType = z6.union([
2159
2159
  "automation",
2160
2160
  "facet",
2161
2161
  "preprocessor",
2162
- "classifier"
2162
+ "classifier",
2163
+ "review"
2163
2164
  ]),
2164
2165
  z6.null()
2165
2166
  ]);
@@ -8461,7 +8462,7 @@ function configureNode() {
8461
8462
  import express from "express";
8462
8463
  import cors from "cors";
8463
8464
 
8464
- // ../node_modules/.pnpm/async@3.2.5/node_modules/async/dist/async.mjs
8465
+ // ../node_modules/async/dist/async.mjs
8465
8466
  function initialParams(fn) {
8466
8467
  return function(...args) {
8467
8468
  var callback = args.pop();
@@ -8586,7 +8587,6 @@ function isArrayLike(value) {
8586
8587
  return value && typeof value.length === "number" && value.length >= 0 && value.length % 1 === 0;
8587
8588
  }
8588
8589
  var breakLoop = {};
8589
- var breakLoop$1 = breakLoop;
8590
8590
  function once(fn) {
8591
8591
  function wrapper(...args) {
8592
8592
  if (fn === null) return;
@@ -8678,7 +8678,7 @@ function asyncEachOfLimit(generator, limit, iteratee, callback) {
8678
8678
  canceled = true;
8679
8679
  return;
8680
8680
  }
8681
- if (result === breakLoop$1 || done && running <= 0) {
8681
+ if (result === breakLoop || done && running <= 0) {
8682
8682
  done = true;
8683
8683
  return callback(null);
8684
8684
  }
@@ -8721,7 +8721,7 @@ var eachOfLimit$2 = (limit) => {
8721
8721
  } else if (err === false) {
8722
8722
  done = true;
8723
8723
  canceled = true;
8724
- } else if (value === breakLoop$1 || done && running <= 0) {
8724
+ } else if (value === breakLoop || done && running <= 0) {
8725
8725
  done = true;
8726
8726
  return callback(null);
8727
8727
  } else if (!looping) {
@@ -8764,7 +8764,7 @@ function eachOfArrayLike(coll, iteratee, callback) {
8764
8764
  if (canceled === true) return;
8765
8765
  if (err) {
8766
8766
  callback(err);
8767
- } else if (++completed === length || value === breakLoop$1) {
8767
+ } else if (++completed === length || value === breakLoop) {
8768
8768
  callback(null);
8769
8769
  }
8770
8770
  }
@@ -9160,7 +9160,7 @@ function _createTester(check, getResult) {
9160
9160
  if (check(result) && !testResult) {
9161
9161
  testPassed = true;
9162
9162
  testResult = getResult(true, value);
9163
- return callback(null, breakLoop$1);
9163
+ return callback(null, breakLoop);
9164
9164
  }
9165
9165
  callback();
9166
9166
  });