@bitfab/sdk 0.38.1 → 0.38.3

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.d.cts CHANGED
@@ -523,6 +523,7 @@ declare class HttpClient {
523
523
  * Blocks until complete - needed for function execution.
524
524
  */
525
525
  lookupFunction<T>(name: string): Promise<T>;
526
+ getAutoTracePolicy<T>(traceFunctionKey: string, protocol: string): Promise<T>;
526
527
  getTraceSpan(traceId: string, lookup: SpanLookup): Promise<CapturedSpan | null>;
527
528
  private get;
528
529
  /**
@@ -1233,7 +1234,7 @@ interface ReplayOptions {
1233
1234
  * because either source already determines how many traces replay.
1234
1235
  */
1235
1236
  limit?: number;
1236
- /** Optional list of specific trace IDs to replay (max 100). */
1237
+ /** Optional list of specific trace IDs to replay (max 100). Mutually exclusive with `datasetId`. */
1237
1238
  traceIds?: string[];
1238
1239
  /** Optional display name for the resulting experiment/test run. */
1239
1240
  name?: string;
@@ -1290,7 +1291,8 @@ interface ReplayOptions {
1290
1291
  /** Group ID to associate this replay with an experiment group for live streaming in Studio. */
1291
1292
  experimentGroupId?: string;
1292
1293
  /**
1293
- * Dataset this replay runs against. When set, the resulting experiment is
1294
+ * Dataset this replay runs against. Mutually exclusive with `traceIds`. When
1295
+ * set, the resulting experiment is
1294
1296
  * durably attributed to the dataset (stored on the test run), so it appears
1295
1297
  * under the dataset's experiments even if the trace lineage can't be
1296
1298
  * reconstructed. Validated server-side against the org.
@@ -2098,6 +2100,27 @@ interface SpanMethodDecoratorContext<TThis, TValue> {
2098
2100
  }
2099
2101
  /** A standard ECMAScript method decorator produced by {@link Bitfab.span}. */
2100
2102
  type SpanMethodDecorator = <TThis, TArgs extends unknown[], TReturn>(originalMethod: (this: TThis, ...args: TArgs) => TReturn, context: SpanMethodDecoratorContext<TThis, (this: TThis, ...args: TArgs) => TReturn>) => (this: TThis, ...args: TArgs) => TReturn;
2103
+ /** Options for experimental automatic subtree tracing. */
2104
+ interface TraceOptions {
2105
+ /** Root span name. Defaults to the decorated or wrapped function name. */
2106
+ name?: string;
2107
+ /** Root span type. Descendants are always `function` spans. */
2108
+ type?: SpanType;
2109
+ /** Maximum number of recorded descendant levels. Defaults to 30. */
2110
+ maxDepth?: number;
2111
+ /** Maximum descendant spans recorded per root invocation. Defaults to 500. */
2112
+ maxSpans?: number;
2113
+ /** Qualified or simple function names to leave out of the subtree. */
2114
+ exclude?: readonly string[] | ReadonlySet<string>;
2115
+ /** Record rest-argument wrapper functions. Defaults to false. */
2116
+ includeWrappers?: boolean;
2117
+ }
2118
+ type StandardTraceMethodDecorator = <This, TArgs extends unknown[], TReturn>(method: (this: This, ...args: TArgs) => TReturn, context: {
2119
+ kind: "method";
2120
+ name: string | symbol;
2121
+ }) => (this: This, ...args: TArgs) => TReturn;
2122
+ type LegacyTraceMethodDecorator = <This, TArgs extends unknown[], TReturn>(target: object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<(this: This, ...args: TArgs) => TReturn>) => void;
2123
+ type TraceMethodDecorator = StandardTraceMethodDecorator & LegacyTraceMethodDecorator;
2101
2124
 
2102
2125
  /**
2103
2126
  * Client for making provider-based API calls via BAML.
@@ -2117,6 +2140,7 @@ declare class Bitfab {
2117
2140
  private readonly httpClient;
2118
2141
  private readonly bamlClient;
2119
2142
  private readonly dbSnapshot;
2143
+ private readonly autoTracePolicyRefreshes;
2120
2144
  /**
2121
2145
  * Mock overrides registered via {@link Bitfab.registerMockOverride}, applied
2122
2146
  * to every `replay` on this client (after any per-call `mockOverride`). In
@@ -2129,6 +2153,37 @@ declare class Bitfab {
2129
2153
  * @param config - Configuration options for the client
2130
2154
  */
2131
2155
  constructor(config: BitfabConfig);
2156
+ /**
2157
+ * Decorate a class method as an automatically expanded trace root.
2158
+ *
2159
+ * Build instrumentation turns repository functions called beneath this
2160
+ * method into nested spans. Every generated span preserves structure; only
2161
+ * function IDs selected by the capture policy include inputs and output.
2162
+ * Without a compatible build transform, this still records the decorated
2163
+ * method as a normal rich root span but cannot discover child calls.
2164
+ *
2165
+ * @param traceFunctionKey - Groups traces and their capture policy.
2166
+ * @param options - Root presentation, subtree bounds, and exclusions.
2167
+ * @experimental Automatic child-call instrumentation is experimental.
2168
+ */
2169
+ trace(traceFunctionKey: string, options?: TraceOptions): TraceMethodDecorator;
2170
+ /**
2171
+ * Wrap a function as an automatically expanded trace root.
2172
+ *
2173
+ * This is the function-oriented equivalent of {@link Bitfab.trace}. Build
2174
+ * instrumentation turns repository functions called beneath the wrapped
2175
+ * function into nested spans. Without a compatible transform, this still
2176
+ * records one normal rich root span and runs the function unchanged.
2177
+ *
2178
+ * @param traceFunctionKey - Groups traces and their capture policy.
2179
+ * @param optionsOrFn - Options or the workflow entrypoint to wrap.
2180
+ * @param maybeFn - Workflow entrypoint when options are provided.
2181
+ * @experimental Automatic child-call instrumentation is experimental.
2182
+ */
2183
+ withTrace<This, TArgs extends unknown[], TReturn>(traceFunctionKey: string, fn: (this: This, ...args: TArgs) => TReturn): (this: This, ...args: TArgs) => TReturn;
2184
+ withTrace<This, TArgs extends unknown[], TReturn>(traceFunctionKey: string, options: TraceOptions, fn: (this: This, ...args: TArgs) => TReturn): (this: This, ...args: TArgs) => TReturn;
2185
+ private createAutoTraceRoot;
2186
+ private refreshAutoTraceCapturePolicy;
2132
2187
  /**
2133
2188
  * Flush and permanently close this client's tracing resources: its pending
2134
2189
  * requests and the single span-transport worker shared by its decorators and
@@ -2663,7 +2718,7 @@ declare class BitfabFunction {
2663
2718
  /**
2664
2719
  * SDK version from package.json (injected at build time)
2665
2720
  */
2666
- declare const __version__ = "0.38.1";
2721
+ declare const __version__ = "0.38.3";
2667
2722
 
2668
2723
  /**
2669
2724
  * Constants for the Bitfab SDK.
@@ -2731,4 +2786,39 @@ declare const finalizers: {
2731
2786
  readableStream: typeof readableStream;
2732
2787
  };
2733
2788
 
2734
- export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AllowedEnvVars, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabVercelAiHandler, type CaptureWhen, type CapturedSpan, type CodeChangeFile, type CurrentSpan, type CurrentTrace, DEFAULT_SERVICE_URL, type DbBranchOptions, DbBranchReplayError, type DbBranchTimings, type DbSnapshotConfig, type DbSnapshotProvider, type DbSnapshotRef, type DetachedTrace, HttpClient, type MockOverride, type MockOverrideCtx, type MockStrategy, type MockValue, type NodeMatcher, type ProviderDefinition, ReplayBranch, ReplayError, type ReplayItem, type ReplayItemFinishProgress, type ReplayItemStartProgress, type ReplayOptions, type ReplayProgress, type ReplayProgressItem, type ReplayResult, SUPPORTED_PROVIDERS, type SpanLookup, type SpanMethodDecorator, type SpanMethodDecoratorContext, type SpanNodeMeta, type SpanOccurrence, type SpanOptions, type SpanType, type TokenUsage, type TraceResponse, type TracingProcessor, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type WrapBAMLOptions, type WrappedBamlFn, __version__, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, serializeReplayResult };
2789
+ type ReplayFunction = (...args: any[]) => unknown | Promise<unknown>;
2790
+ type ReplayRegistryOptions = Omit<ReplayOptions, "onItemStart" | "onItemFinish" | "onProgress">;
2791
+ interface ReplayRegistryContext {
2792
+ /** Values supplied through `--params` and repeated `--param name=value`. */
2793
+ params: Readonly<Record<string, unknown>>;
2794
+ }
2795
+ type ReplayOptionsFactory = (context: ReplayRegistryContext) => ReplayRegistryOptions | Promise<ReplayRegistryOptions>;
2796
+ interface ReplayRegistration {
2797
+ /** Client instance used by the production traced function. */
2798
+ client: Bitfab;
2799
+ /** The exact traced function production calls. */
2800
+ fn: ReplayFunction;
2801
+ /**
2802
+ * Required for handler-instrumented or otherwise plain callables. Omit for a
2803
+ * `withSpan`-wrapped function and the registry reads the wrapper's key.
2804
+ */
2805
+ traceFunctionKey?: string;
2806
+ /**
2807
+ * Per-function replay behavior and defaults. Put executable configuration
2808
+ * such as `mockOverride` and `adaptInputs` here; command-line values override
2809
+ * overlapping scalar defaults such as `mock` and `maxConcurrency`.
2810
+ */
2811
+ options?: ReplayRegistryOptions;
2812
+ /** Build executable replay behavior from caller-supplied CLI parameters. */
2813
+ optionsFactory?: ReplayOptionsFactory;
2814
+ }
2815
+ type ReplayRegistry = Record<string, ReplayRegistration>;
2816
+ /**
2817
+ * Define the project-owned list of replayable functions.
2818
+ *
2819
+ * The registry is deliberately data-only: the SDK owns the replay CLI, so an
2820
+ * SDK upgrade can add replay features without regenerating the project file.
2821
+ */
2822
+ declare function defineReplayRegistry<TRegistry extends ReplayRegistry>(registry: TRegistry): TRegistry;
2823
+
2824
+ export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AllowedEnvVars, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabVercelAiHandler, type CaptureWhen, type CapturedSpan, type CodeChangeFile, type CurrentSpan, type CurrentTrace, DEFAULT_SERVICE_URL, type DbBranchOptions, DbBranchReplayError, type DbBranchTimings, type DbSnapshotConfig, type DbSnapshotProvider, type DbSnapshotRef, type DetachedTrace, HttpClient, type MockOverride, type MockOverrideCtx, type MockStrategy, type MockValue, type NodeMatcher, type ProviderDefinition, ReplayBranch, ReplayError, type ReplayItem, type ReplayItemFinishProgress, type ReplayItemStartProgress, type ReplayOptions, type ReplayOptionsFactory, type ReplayProgress, type ReplayProgressItem, type ReplayRegistration, type ReplayRegistry, type ReplayRegistryContext, type ReplayRegistryOptions, type ReplayResult, SUPPORTED_PROVIDERS, type SpanLookup, type SpanMethodDecorator, type SpanMethodDecoratorContext, type SpanNodeMeta, type SpanOccurrence, type SpanOptions, type SpanType, type TokenUsage, type TraceResponse, type TracingProcessor, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type WrapBAMLOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, serializeReplayResult };
package/dist/index.d.ts CHANGED
@@ -523,6 +523,7 @@ declare class HttpClient {
523
523
  * Blocks until complete - needed for function execution.
524
524
  */
525
525
  lookupFunction<T>(name: string): Promise<T>;
526
+ getAutoTracePolicy<T>(traceFunctionKey: string, protocol: string): Promise<T>;
526
527
  getTraceSpan(traceId: string, lookup: SpanLookup): Promise<CapturedSpan | null>;
527
528
  private get;
528
529
  /**
@@ -1233,7 +1234,7 @@ interface ReplayOptions {
1233
1234
  * because either source already determines how many traces replay.
1234
1235
  */
1235
1236
  limit?: number;
1236
- /** Optional list of specific trace IDs to replay (max 100). */
1237
+ /** Optional list of specific trace IDs to replay (max 100). Mutually exclusive with `datasetId`. */
1237
1238
  traceIds?: string[];
1238
1239
  /** Optional display name for the resulting experiment/test run. */
1239
1240
  name?: string;
@@ -1290,7 +1291,8 @@ interface ReplayOptions {
1290
1291
  /** Group ID to associate this replay with an experiment group for live streaming in Studio. */
1291
1292
  experimentGroupId?: string;
1292
1293
  /**
1293
- * Dataset this replay runs against. When set, the resulting experiment is
1294
+ * Dataset this replay runs against. Mutually exclusive with `traceIds`. When
1295
+ * set, the resulting experiment is
1294
1296
  * durably attributed to the dataset (stored on the test run), so it appears
1295
1297
  * under the dataset's experiments even if the trace lineage can't be
1296
1298
  * reconstructed. Validated server-side against the org.
@@ -2098,6 +2100,27 @@ interface SpanMethodDecoratorContext<TThis, TValue> {
2098
2100
  }
2099
2101
  /** A standard ECMAScript method decorator produced by {@link Bitfab.span}. */
2100
2102
  type SpanMethodDecorator = <TThis, TArgs extends unknown[], TReturn>(originalMethod: (this: TThis, ...args: TArgs) => TReturn, context: SpanMethodDecoratorContext<TThis, (this: TThis, ...args: TArgs) => TReturn>) => (this: TThis, ...args: TArgs) => TReturn;
2103
+ /** Options for experimental automatic subtree tracing. */
2104
+ interface TraceOptions {
2105
+ /** Root span name. Defaults to the decorated or wrapped function name. */
2106
+ name?: string;
2107
+ /** Root span type. Descendants are always `function` spans. */
2108
+ type?: SpanType;
2109
+ /** Maximum number of recorded descendant levels. Defaults to 30. */
2110
+ maxDepth?: number;
2111
+ /** Maximum descendant spans recorded per root invocation. Defaults to 500. */
2112
+ maxSpans?: number;
2113
+ /** Qualified or simple function names to leave out of the subtree. */
2114
+ exclude?: readonly string[] | ReadonlySet<string>;
2115
+ /** Record rest-argument wrapper functions. Defaults to false. */
2116
+ includeWrappers?: boolean;
2117
+ }
2118
+ type StandardTraceMethodDecorator = <This, TArgs extends unknown[], TReturn>(method: (this: This, ...args: TArgs) => TReturn, context: {
2119
+ kind: "method";
2120
+ name: string | symbol;
2121
+ }) => (this: This, ...args: TArgs) => TReturn;
2122
+ type LegacyTraceMethodDecorator = <This, TArgs extends unknown[], TReturn>(target: object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<(this: This, ...args: TArgs) => TReturn>) => void;
2123
+ type TraceMethodDecorator = StandardTraceMethodDecorator & LegacyTraceMethodDecorator;
2101
2124
 
2102
2125
  /**
2103
2126
  * Client for making provider-based API calls via BAML.
@@ -2117,6 +2140,7 @@ declare class Bitfab {
2117
2140
  private readonly httpClient;
2118
2141
  private readonly bamlClient;
2119
2142
  private readonly dbSnapshot;
2143
+ private readonly autoTracePolicyRefreshes;
2120
2144
  /**
2121
2145
  * Mock overrides registered via {@link Bitfab.registerMockOverride}, applied
2122
2146
  * to every `replay` on this client (after any per-call `mockOverride`). In
@@ -2129,6 +2153,37 @@ declare class Bitfab {
2129
2153
  * @param config - Configuration options for the client
2130
2154
  */
2131
2155
  constructor(config: BitfabConfig);
2156
+ /**
2157
+ * Decorate a class method as an automatically expanded trace root.
2158
+ *
2159
+ * Build instrumentation turns repository functions called beneath this
2160
+ * method into nested spans. Every generated span preserves structure; only
2161
+ * function IDs selected by the capture policy include inputs and output.
2162
+ * Without a compatible build transform, this still records the decorated
2163
+ * method as a normal rich root span but cannot discover child calls.
2164
+ *
2165
+ * @param traceFunctionKey - Groups traces and their capture policy.
2166
+ * @param options - Root presentation, subtree bounds, and exclusions.
2167
+ * @experimental Automatic child-call instrumentation is experimental.
2168
+ */
2169
+ trace(traceFunctionKey: string, options?: TraceOptions): TraceMethodDecorator;
2170
+ /**
2171
+ * Wrap a function as an automatically expanded trace root.
2172
+ *
2173
+ * This is the function-oriented equivalent of {@link Bitfab.trace}. Build
2174
+ * instrumentation turns repository functions called beneath the wrapped
2175
+ * function into nested spans. Without a compatible transform, this still
2176
+ * records one normal rich root span and runs the function unchanged.
2177
+ *
2178
+ * @param traceFunctionKey - Groups traces and their capture policy.
2179
+ * @param optionsOrFn - Options or the workflow entrypoint to wrap.
2180
+ * @param maybeFn - Workflow entrypoint when options are provided.
2181
+ * @experimental Automatic child-call instrumentation is experimental.
2182
+ */
2183
+ withTrace<This, TArgs extends unknown[], TReturn>(traceFunctionKey: string, fn: (this: This, ...args: TArgs) => TReturn): (this: This, ...args: TArgs) => TReturn;
2184
+ withTrace<This, TArgs extends unknown[], TReturn>(traceFunctionKey: string, options: TraceOptions, fn: (this: This, ...args: TArgs) => TReturn): (this: This, ...args: TArgs) => TReturn;
2185
+ private createAutoTraceRoot;
2186
+ private refreshAutoTraceCapturePolicy;
2132
2187
  /**
2133
2188
  * Flush and permanently close this client's tracing resources: its pending
2134
2189
  * requests and the single span-transport worker shared by its decorators and
@@ -2663,7 +2718,7 @@ declare class BitfabFunction {
2663
2718
  /**
2664
2719
  * SDK version from package.json (injected at build time)
2665
2720
  */
2666
- declare const __version__ = "0.38.1";
2721
+ declare const __version__ = "0.38.3";
2667
2722
 
2668
2723
  /**
2669
2724
  * Constants for the Bitfab SDK.
@@ -2731,4 +2786,39 @@ declare const finalizers: {
2731
2786
  readableStream: typeof readableStream;
2732
2787
  };
2733
2788
 
2734
- export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AllowedEnvVars, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabVercelAiHandler, type CaptureWhen, type CapturedSpan, type CodeChangeFile, type CurrentSpan, type CurrentTrace, DEFAULT_SERVICE_URL, type DbBranchOptions, DbBranchReplayError, type DbBranchTimings, type DbSnapshotConfig, type DbSnapshotProvider, type DbSnapshotRef, type DetachedTrace, HttpClient, type MockOverride, type MockOverrideCtx, type MockStrategy, type MockValue, type NodeMatcher, type ProviderDefinition, ReplayBranch, ReplayError, type ReplayItem, type ReplayItemFinishProgress, type ReplayItemStartProgress, type ReplayOptions, type ReplayProgress, type ReplayProgressItem, type ReplayResult, SUPPORTED_PROVIDERS, type SpanLookup, type SpanMethodDecorator, type SpanMethodDecoratorContext, type SpanNodeMeta, type SpanOccurrence, type SpanOptions, type SpanType, type TokenUsage, type TraceResponse, type TracingProcessor, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type WrapBAMLOptions, type WrappedBamlFn, __version__, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, serializeReplayResult };
2789
+ type ReplayFunction = (...args: any[]) => unknown | Promise<unknown>;
2790
+ type ReplayRegistryOptions = Omit<ReplayOptions, "onItemStart" | "onItemFinish" | "onProgress">;
2791
+ interface ReplayRegistryContext {
2792
+ /** Values supplied through `--params` and repeated `--param name=value`. */
2793
+ params: Readonly<Record<string, unknown>>;
2794
+ }
2795
+ type ReplayOptionsFactory = (context: ReplayRegistryContext) => ReplayRegistryOptions | Promise<ReplayRegistryOptions>;
2796
+ interface ReplayRegistration {
2797
+ /** Client instance used by the production traced function. */
2798
+ client: Bitfab;
2799
+ /** The exact traced function production calls. */
2800
+ fn: ReplayFunction;
2801
+ /**
2802
+ * Required for handler-instrumented or otherwise plain callables. Omit for a
2803
+ * `withSpan`-wrapped function and the registry reads the wrapper's key.
2804
+ */
2805
+ traceFunctionKey?: string;
2806
+ /**
2807
+ * Per-function replay behavior and defaults. Put executable configuration
2808
+ * such as `mockOverride` and `adaptInputs` here; command-line values override
2809
+ * overlapping scalar defaults such as `mock` and `maxConcurrency`.
2810
+ */
2811
+ options?: ReplayRegistryOptions;
2812
+ /** Build executable replay behavior from caller-supplied CLI parameters. */
2813
+ optionsFactory?: ReplayOptionsFactory;
2814
+ }
2815
+ type ReplayRegistry = Record<string, ReplayRegistration>;
2816
+ /**
2817
+ * Define the project-owned list of replayable functions.
2818
+ *
2819
+ * The registry is deliberately data-only: the SDK owns the replay CLI, so an
2820
+ * SDK upgrade can add replay features without regenerating the project file.
2821
+ */
2822
+ declare function defineReplayRegistry<TRegistry extends ReplayRegistry>(registry: TRegistry): TRegistry;
2823
+
2824
+ export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AllowedEnvVars, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabVercelAiHandler, type CaptureWhen, type CapturedSpan, type CodeChangeFile, type CurrentSpan, type CurrentTrace, DEFAULT_SERVICE_URL, type DbBranchOptions, DbBranchReplayError, type DbBranchTimings, type DbSnapshotConfig, type DbSnapshotProvider, type DbSnapshotRef, type DetachedTrace, HttpClient, type MockOverride, type MockOverrideCtx, type MockStrategy, type MockValue, type NodeMatcher, type ProviderDefinition, ReplayBranch, ReplayError, type ReplayItem, type ReplayItemFinishProgress, type ReplayItemStartProgress, type ReplayOptions, type ReplayOptionsFactory, type ReplayProgress, type ReplayProgressItem, type ReplayRegistration, type ReplayRegistry, type ReplayRegistryContext, type ReplayRegistryOptions, type ReplayResult, SUPPORTED_PROVIDERS, type SpanLookup, type SpanMethodDecorator, type SpanMethodDecoratorContext, type SpanNodeMeta, type SpanOccurrence, type SpanOptions, type SpanType, type TokenUsage, type TraceResponse, type TracingProcessor, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type WrapBAMLOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, serializeReplayResult };
package/dist/index.js CHANGED
@@ -7,11 +7,13 @@ import {
7
7
  BitfabOpenAITracingProcessor,
8
8
  BitfabVercelAiHandler,
9
9
  SUPPORTED_PROVIDERS,
10
+ defineReplayRegistry,
10
11
  finalizers,
11
12
  getCurrentReplayBranch,
12
13
  getCurrentSpan,
13
14
  getCurrentTrace
14
- } from "./chunk-WD4AO3BK.js";
15
+ } from "./chunk-RJPHMJWO.js";
16
+ import "./chunk-GFBQ2AMO.js";
15
17
  import {
16
18
  BITFAB_PROGRESS_PREFIX,
17
19
  BitfabError,
@@ -23,7 +25,8 @@ import {
23
25
  flushTraces,
24
26
  reportReplayProgress,
25
27
  serializeReplayResult
26
- } from "./chunk-MGA7ROIK.js";
28
+ } from "./chunk-WX6AEFCP.js";
29
+ import "./chunk-H6LZRFMN.js";
27
30
  export {
28
31
  BITFAB_PROGRESS_PREFIX,
29
32
  Bitfab,
@@ -41,6 +44,7 @@ export {
41
44
  ReplayError,
42
45
  SUPPORTED_PROVIDERS,
43
46
  __version__,
47
+ defineReplayRegistry,
44
48
  finalizers,
45
49
  flushTraces,
46
50
  getCurrentReplayBranch,