bitfab 0.13.8 → 0.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.
- package/dist/chunk-QT7HWOKU.js +131 -0
- package/dist/chunk-QT7HWOKU.js.map +1 -0
- package/dist/{chunk-4ANYHNQJ.js → chunk-YPG3XIG4.js} +372 -13
- package/dist/chunk-YPG3XIG4.js.map +1 -0
- package/dist/index.cjs +427 -391
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -13
- package/dist/index.d.ts +11 -13
- package/dist/index.js +6 -6
- package/dist/node.cjs +427 -391
- package/dist/node.cjs.map +1 -1
- package/dist/node.js +5 -5
- package/dist/{replay-F7K2JQCZ.js → replay-3MQS22GS.js} +62 -16
- package/dist/replay-3MQS22GS.js.map +1 -0
- package/package.json +1 -1
- package/dist/chunk-4ANYHNQJ.js.map +0 -1
- package/dist/chunk-VFGUZWAV.js +0 -467
- package/dist/chunk-VFGUZWAV.js.map +0 -1
- package/dist/replay-F7K2JQCZ.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -342,9 +342,13 @@ declare class ReplayEnvironment {
|
|
|
342
342
|
|
|
343
343
|
type MockStrategy = "none" | "all" | "marked";
|
|
344
344
|
interface ReplayOptions {
|
|
345
|
-
/**
|
|
345
|
+
/**
|
|
346
|
+
* Maximum number of traces to replay (1–100, default 5). Mutually
|
|
347
|
+
* exclusive with `traceIds` — an explicit ID list already determines how
|
|
348
|
+
* many traces replay, so passing both throws.
|
|
349
|
+
*/
|
|
346
350
|
limit?: number;
|
|
347
|
-
/** Optional list of specific trace IDs to replay. */
|
|
351
|
+
/** Optional list of specific trace IDs to replay (max 100). */
|
|
348
352
|
traceIds?: string[];
|
|
349
353
|
/** Maximum number of items to process in parallel. Set to 1 for sequential. Default 10. */
|
|
350
354
|
maxConcurrency?: number;
|
|
@@ -916,18 +920,12 @@ declare class Bitfab {
|
|
|
916
920
|
*
|
|
917
921
|
* @param traceFunctionKey - The trace function key to replay
|
|
918
922
|
* @param fn - The function to replay (must be the return value of `withSpan`)
|
|
919
|
-
* @param options - Optional replay options
|
|
923
|
+
* @param options - Optional replay options. `limit` and `traceIds` are
|
|
924
|
+
* mutually exclusive — an explicit ID list already determines how many
|
|
925
|
+
* traces replay, so passing both throws a BitfabError.
|
|
920
926
|
* @returns ReplayResult with items, testRunId, and testRunUrl
|
|
921
927
|
*/
|
|
922
|
-
replay<TReturn>(traceFunctionKey: string, fn: (...args: any[]) => TReturn | Promise<TReturn>, options?:
|
|
923
|
-
limit?: number;
|
|
924
|
-
traceIds?: string[];
|
|
925
|
-
maxConcurrency?: number;
|
|
926
|
-
codeChangeDescription?: string;
|
|
927
|
-
codeChangeFiles?: CodeChangeFile[];
|
|
928
|
-
mock?: "none" | "all" | "marked";
|
|
929
|
-
environment?: ReplayEnvironment;
|
|
930
|
-
}): Promise<ReplayResult<TReturn>>;
|
|
928
|
+
replay<TReturn>(traceFunctionKey: string, fn: (...args: any[]) => TReturn | Promise<TReturn>, options?: ReplayOptions): Promise<ReplayResult<TReturn>>;
|
|
931
929
|
}
|
|
932
930
|
/**
|
|
933
931
|
* Represents a Bitfab function that can wrap user functions for tracing.
|
|
@@ -990,7 +988,7 @@ declare class BitfabFunction {
|
|
|
990
988
|
/**
|
|
991
989
|
* SDK version from package.json (injected at build time)
|
|
992
990
|
*/
|
|
993
|
-
declare const __version__ = "0.
|
|
991
|
+
declare const __version__ = "0.15.0";
|
|
994
992
|
|
|
995
993
|
/**
|
|
996
994
|
* Constants for the Bitfab SDK.
|
package/dist/index.d.ts
CHANGED
|
@@ -342,9 +342,13 @@ declare class ReplayEnvironment {
|
|
|
342
342
|
|
|
343
343
|
type MockStrategy = "none" | "all" | "marked";
|
|
344
344
|
interface ReplayOptions {
|
|
345
|
-
/**
|
|
345
|
+
/**
|
|
346
|
+
* Maximum number of traces to replay (1–100, default 5). Mutually
|
|
347
|
+
* exclusive with `traceIds` — an explicit ID list already determines how
|
|
348
|
+
* many traces replay, so passing both throws.
|
|
349
|
+
*/
|
|
346
350
|
limit?: number;
|
|
347
|
-
/** Optional list of specific trace IDs to replay. */
|
|
351
|
+
/** Optional list of specific trace IDs to replay (max 100). */
|
|
348
352
|
traceIds?: string[];
|
|
349
353
|
/** Maximum number of items to process in parallel. Set to 1 for sequential. Default 10. */
|
|
350
354
|
maxConcurrency?: number;
|
|
@@ -916,18 +920,12 @@ declare class Bitfab {
|
|
|
916
920
|
*
|
|
917
921
|
* @param traceFunctionKey - The trace function key to replay
|
|
918
922
|
* @param fn - The function to replay (must be the return value of `withSpan`)
|
|
919
|
-
* @param options - Optional replay options
|
|
923
|
+
* @param options - Optional replay options. `limit` and `traceIds` are
|
|
924
|
+
* mutually exclusive — an explicit ID list already determines how many
|
|
925
|
+
* traces replay, so passing both throws a BitfabError.
|
|
920
926
|
* @returns ReplayResult with items, testRunId, and testRunUrl
|
|
921
927
|
*/
|
|
922
|
-
replay<TReturn>(traceFunctionKey: string, fn: (...args: any[]) => TReturn | Promise<TReturn>, options?:
|
|
923
|
-
limit?: number;
|
|
924
|
-
traceIds?: string[];
|
|
925
|
-
maxConcurrency?: number;
|
|
926
|
-
codeChangeDescription?: string;
|
|
927
|
-
codeChangeFiles?: CodeChangeFile[];
|
|
928
|
-
mock?: "none" | "all" | "marked";
|
|
929
|
-
environment?: ReplayEnvironment;
|
|
930
|
-
}): Promise<ReplayResult<TReturn>>;
|
|
928
|
+
replay<TReturn>(traceFunctionKey: string, fn: (...args: any[]) => TReturn | Promise<TReturn>, options?: ReplayOptions): Promise<ReplayResult<TReturn>>;
|
|
931
929
|
}
|
|
932
930
|
/**
|
|
933
931
|
* Represents a Bitfab function that can wrap user functions for tracing.
|
|
@@ -990,7 +988,7 @@ declare class BitfabFunction {
|
|
|
990
988
|
/**
|
|
991
989
|
* SDK version from package.json (injected at build time)
|
|
992
990
|
*/
|
|
993
|
-
declare const __version__ = "0.
|
|
991
|
+
declare const __version__ = "0.15.0";
|
|
994
992
|
|
|
995
993
|
/**
|
|
996
994
|
* Constants for the Bitfab SDK.
|
package/dist/index.js
CHANGED
|
@@ -13,17 +13,17 @@ import {
|
|
|
13
13
|
BitfabFunction,
|
|
14
14
|
BitfabLangGraphCallbackHandler,
|
|
15
15
|
BitfabOpenAITracingProcessor,
|
|
16
|
+
DEFAULT_SERVICE_URL,
|
|
16
17
|
ReplayEnvironment,
|
|
17
18
|
SUPPORTED_PROVIDERS,
|
|
19
|
+
__version__,
|
|
20
|
+
flushTraces,
|
|
18
21
|
getCurrentSpan,
|
|
19
22
|
getCurrentTrace
|
|
20
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-YPG3XIG4.js";
|
|
21
24
|
import {
|
|
22
|
-
BitfabError
|
|
23
|
-
|
|
24
|
-
__version__,
|
|
25
|
-
flushTraces
|
|
26
|
-
} from "./chunk-VFGUZWAV.js";
|
|
25
|
+
BitfabError
|
|
26
|
+
} from "./chunk-QT7HWOKU.js";
|
|
27
27
|
export {
|
|
28
28
|
Bitfab,
|
|
29
29
|
BitfabClaudeAgentHandler,
|