braintrust 0.3.6 → 0.3.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "braintrust",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "description": "SDK for integrating Braintrust",
5
5
  "repository": {
6
6
  "type": "git",
@@ -38,26 +38,32 @@
38
38
  "import": "./dev/dist/index.mjs",
39
39
  "module": "./dev/dist/index.mjs",
40
40
  "require": "./dev/dist/index.js"
41
+ },
42
+ "./util": {
43
+ "types": "./util/dist/index.d.ts",
44
+ "import": "./util/dist/index.mjs",
45
+ "module": "./util/dist/index.mjs",
46
+ "require": "./util/dist/index.js"
41
47
  }
42
48
  },
43
49
  "files": [
44
50
  "dist/**/*",
45
- "dev/dist/**/*"
51
+ "dev/dist/**/*",
52
+ "util/dist/**/*"
46
53
  ],
47
54
  "scripts": {
48
55
  "build": "cross-env NODE_OPTIONS=\"--max-old-space-size=8192\" tsup",
49
56
  "watch": "tsup --watch",
50
57
  "clean": "rm -r dist/* && rm -r dev/dist/*",
51
58
  "docs": "npx typedoc --options typedoc.json src/index.ts",
52
- "prepublishOnly": "../../scripts/node_prepublish_sdk.py",
53
- "postpublish": "../../scripts/node_postpublish_sdk.py",
54
- "test": "vitest run --exclude src/wrappers/anthropic.test.ts --exclude src/wrappers/oai.test.ts --exclude src/otel.test.ts --exclude src/otel-no-deps.test.ts --exclude src/wrappers/ai-sdk-v1.test.ts --exclude src/wrappers/ai-sdk-v2.test.ts",
59
+ "test": "vitest run --exclude src/wrappers/anthropic.test.ts --exclude src/wrappers/oai.test.ts --exclude src/otel.test.ts --exclude src/otel-no-deps.test.ts --exclude src/wrappers/ai-sdk-v1.test.ts --exclude src/wrappers/ai-sdk-v2.test.ts --exclude src/wrappers/ai-sdk-v3.test.ts",
55
60
  "test:anthropic": "vitest run src/wrappers/anthropic.test.ts",
56
61
  "test:openai": "vitest run src/wrappers/oai.test.ts",
57
62
  "test:otel": "vitest run src/otel.test.ts",
58
63
  "test:otel-no-deps": "vitest run src/otel-no-deps.test.ts --reporter=verbose",
59
64
  "test:ai-sdk-v1": "vitest run src/wrappers/ai-sdk-v1.test.ts",
60
- "test:ai-sdk-v2": "vitest run src/wrappers/ai-sdk-v2.test.ts src/wrappers/ai-sdk-v1.test.ts"
65
+ "test:ai-sdk-v2": "vitest run src/wrappers/ai-sdk-v2.test.ts src/wrappers/ai-sdk-v1.test.ts",
66
+ "test:ai-sdk-v3": "vitest run src/wrappers/ai-sdk-v3.test.ts"
61
67
  },
62
68
  "author": "",
63
69
  "license": "MIT",
@@ -96,7 +102,6 @@
96
102
  },
97
103
  "dependencies": {
98
104
  "@ai-sdk/provider": "^1.1.3",
99
- "@braintrust/core": "0.0.95",
100
105
  "@next/env": "^14.2.3",
101
106
  "@vercel/functions": "^1.0.2",
102
107
  "argparse": "^2.0.1",
@@ -122,4 +127,4 @@
122
127
  "peerDependencies": {
123
128
  "zod": "^3.25.34"
124
129
  }
125
- }
130
+ }