braintrust 3.14.0 → 3.15.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.
Files changed (42) hide show
  1. package/dev/dist/index.js +616 -1026
  2. package/dev/dist/index.mjs +577 -987
  3. package/dist/apply-auto-instrumentation.js +176 -186
  4. package/dist/apply-auto-instrumentation.mjs +6 -16
  5. package/dist/auto-instrumentations/bundler/esbuild.cjs +5 -39
  6. package/dist/auto-instrumentations/bundler/esbuild.mjs +1 -1
  7. package/dist/auto-instrumentations/bundler/next.cjs +5 -39
  8. package/dist/auto-instrumentations/bundler/next.mjs +2 -2
  9. package/dist/auto-instrumentations/bundler/rollup.cjs +5 -39
  10. package/dist/auto-instrumentations/bundler/rollup.mjs +1 -1
  11. package/dist/auto-instrumentations/bundler/vite.cjs +5 -39
  12. package/dist/auto-instrumentations/bundler/vite.mjs +1 -1
  13. package/dist/auto-instrumentations/bundler/webpack-loader.cjs +5 -39
  14. package/dist/auto-instrumentations/bundler/webpack.cjs +5 -39
  15. package/dist/auto-instrumentations/bundler/webpack.mjs +2 -2
  16. package/dist/auto-instrumentations/{chunk-OTUQ7KH5.mjs → chunk-CNQ7BUKN.mjs} +1 -1
  17. package/dist/auto-instrumentations/{chunk-XKAAVWT6.mjs → chunk-VXJONZVX.mjs} +5 -39
  18. package/dist/auto-instrumentations/hook.mjs +5 -39
  19. package/dist/browser.d.mts +13 -17
  20. package/dist/browser.d.ts +13 -17
  21. package/dist/browser.js +581 -1015
  22. package/dist/browser.mjs +581 -1015
  23. package/dist/{chunk-NU2GSPHX.mjs → chunk-O4ZIWXO3.mjs} +0 -24
  24. package/dist/{chunk-NKD77KGB.js → chunk-VMBQETG3.js} +0 -24
  25. package/dist/cli.js +578 -988
  26. package/dist/edge-light.d.mts +1 -1
  27. package/dist/edge-light.d.ts +1 -1
  28. package/dist/edge-light.js +581 -1015
  29. package/dist/edge-light.mjs +581 -1015
  30. package/dist/index.d.mts +13 -17
  31. package/dist/index.d.ts +13 -17
  32. package/dist/index.js +967 -1377
  33. package/dist/index.mjs +582 -992
  34. package/dist/instrumentation/index.d.mts +11 -1
  35. package/dist/instrumentation/index.d.ts +11 -1
  36. package/dist/instrumentation/index.js +611 -1015
  37. package/dist/instrumentation/index.mjs +610 -1015
  38. package/dist/workerd.d.mts +1 -1
  39. package/dist/workerd.d.ts +1 -1
  40. package/dist/workerd.js +581 -1015
  41. package/dist/workerd.mjs +581 -1015
  42. package/package.json +1 -1
@@ -8165,6 +8165,16 @@ declare class OpenAIAgentsTraceProcessor {
8165
8165
  private omitKeys;
8166
8166
  }
8167
8167
 
8168
+ type FlueObserver = (event: unknown, ctx?: unknown) => void;
8169
+ /**
8170
+ * Braintrust's Flue observe subscriber.
8171
+ *
8172
+ * Pass this directly to @flue/runtime/app.observe:
8173
+ *
8174
+ * const unsubscribe = observe(braintrustFlueObserver);
8175
+ */
8176
+ declare const braintrustFlueObserver: FlueObserver;
8177
+
8168
8178
  /**
8169
8179
  * Plugin registry and configuration for auto-instrumentation.
8170
8180
  *
@@ -8201,4 +8211,4 @@ declare class OpenAIAgentsTraceProcessor {
8201
8211
  */
8202
8212
  declare function configureInstrumentation(config: InstrumentationConfig): void;
8203
8213
 
8204
- export { type AsyncEndEvent, type AsyncStartEvent, type BaseContext, BasePlugin, BraintrustPlugin, type BraintrustPluginConfig, type ChannelHandlers, type EndEvent, type ErrorEvent, type InstrumentationConfig, OpenAIAgentsTraceProcessor, type OpenAIAgentsTraceProcessorOptions, type StartEvent, configureInstrumentation, createChannelName, isValidChannelName, parseChannelName };
8214
+ export { type AsyncEndEvent, type AsyncStartEvent, type BaseContext, BasePlugin, BraintrustPlugin, type BraintrustPluginConfig, type ChannelHandlers, type EndEvent, type ErrorEvent, type InstrumentationConfig, OpenAIAgentsTraceProcessor, type OpenAIAgentsTraceProcessorOptions, type StartEvent, braintrustFlueObserver, configureInstrumentation, createChannelName, isValidChannelName, parseChannelName };
@@ -8165,6 +8165,16 @@ declare class OpenAIAgentsTraceProcessor {
8165
8165
  private omitKeys;
8166
8166
  }
8167
8167
 
8168
+ type FlueObserver = (event: unknown, ctx?: unknown) => void;
8169
+ /**
8170
+ * Braintrust's Flue observe subscriber.
8171
+ *
8172
+ * Pass this directly to @flue/runtime/app.observe:
8173
+ *
8174
+ * const unsubscribe = observe(braintrustFlueObserver);
8175
+ */
8176
+ declare const braintrustFlueObserver: FlueObserver;
8177
+
8168
8178
  /**
8169
8179
  * Plugin registry and configuration for auto-instrumentation.
8170
8180
  *
@@ -8201,4 +8211,4 @@ declare class OpenAIAgentsTraceProcessor {
8201
8211
  */
8202
8212
  declare function configureInstrumentation(config: InstrumentationConfig): void;
8203
8213
 
8204
- export { type AsyncEndEvent, type AsyncStartEvent, type BaseContext, BasePlugin, BraintrustPlugin, type BraintrustPluginConfig, type ChannelHandlers, type EndEvent, type ErrorEvent, type InstrumentationConfig, OpenAIAgentsTraceProcessor, type OpenAIAgentsTraceProcessorOptions, type StartEvent, configureInstrumentation, createChannelName, isValidChannelName, parseChannelName };
8214
+ export { type AsyncEndEvent, type AsyncStartEvent, type BaseContext, BasePlugin, BraintrustPlugin, type BraintrustPluginConfig, type ChannelHandlers, type EndEvent, type ErrorEvent, type InstrumentationConfig, OpenAIAgentsTraceProcessor, type OpenAIAgentsTraceProcessorOptions, type StartEvent, braintrustFlueObserver, configureInstrumentation, createChannelName, isValidChannelName, parseChannelName };