@bitfab/sdk 0.45.0 → 0.47.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-H4WJUUZH.js → chunk-G52ZQTWU.js} +2 -2
- package/dist/{chunk-GN6E2IBU.js → chunk-LP2CN7SZ.js} +13 -13
- package/dist/chunk-LP2CN7SZ.js.map +1 -0
- package/dist/{chunk-SILI6DDS.js → chunk-RQEYVHGV.js} +2 -2
- package/dist/{chunk-SILI6DDS.js.map → chunk-RQEYVHGV.js.map} +1 -1
- package/dist/{chunk-TCOD5O2B.js → chunk-YKHZGYAC.js} +2 -2
- package/dist/{chunk-TCOD5O2B.js.map → chunk-YKHZGYAC.js.map} +1 -1
- package/dist/{http-QGTV3X7R.js → http-224ASOWH.js} +2 -2
- package/dist/{http-E7RYN3BX.js → http-BUAOWCLI.js} +2 -2
- package/dist/index.cjs +8 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -9
- package/dist/index.d.ts +7 -9
- package/dist/index.js +3 -3
- package/dist/node.cjs +8 -8
- package/dist/node.cjs.map +1 -1
- package/dist/node.d.cts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/node.js +3 -3
- package/dist/{replay-PQSTJRPU.js → replay-OONSKTLR.js} +3 -3
- package/dist/replayCli.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-GN6E2IBU.js.map +0 -1
- /package/dist/{chunk-H4WJUUZH.js.map → chunk-G52ZQTWU.js.map} +0 -0
- /package/dist/{http-E7RYN3BX.js.map → http-224ASOWH.js.map} +0 -0
- /package/dist/{http-QGTV3X7R.js.map → http-BUAOWCLI.js.map} +0 -0
- /package/dist/{replay-PQSTJRPU.js.map → replay-OONSKTLR.js.map} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -1259,7 +1259,7 @@ declare class DatasetsClient {
|
|
|
1259
1259
|
|
|
1260
1260
|
type LabelConfidence = "VeryLow" | "Low" | "Medium" | "High" | "VeryHigh";
|
|
1261
1261
|
type LabelAction = "set" | "archived" | "no-active-label" | "skipped";
|
|
1262
|
-
type LabelTarget = {
|
|
1262
|
+
type LabelTarget = ({
|
|
1263
1263
|
traceId: string;
|
|
1264
1264
|
originalTraceId?: never;
|
|
1265
1265
|
attempt?: never;
|
|
@@ -1267,6 +1267,8 @@ type LabelTarget = {
|
|
|
1267
1267
|
originalTraceId: string;
|
|
1268
1268
|
attempt?: number;
|
|
1269
1269
|
traceId?: never;
|
|
1270
|
+
}) & {
|
|
1271
|
+
assertionId?: string;
|
|
1270
1272
|
};
|
|
1271
1273
|
type LabelVerdict = {
|
|
1272
1274
|
label: boolean;
|
|
@@ -1283,15 +1285,11 @@ type LabelOutcome = {
|
|
|
1283
1285
|
traceId: string;
|
|
1284
1286
|
action: LabelAction;
|
|
1285
1287
|
};
|
|
1286
|
-
type SaveLabelsParams = {
|
|
1287
|
-
labels: LabelUpdate[];
|
|
1288
|
-
testRunId?: string;
|
|
1289
|
-
};
|
|
1290
1288
|
declare class LabelsClient {
|
|
1291
1289
|
private readonly httpClient;
|
|
1292
1290
|
constructor(httpClient: HttpClient);
|
|
1293
|
-
save(
|
|
1294
|
-
|
|
1291
|
+
save(update: LabelUpdate, testRunId?: string): Promise<LabelOutcome>;
|
|
1292
|
+
saveAll(updates: LabelUpdate[], testRunId?: string): Promise<LabelOutcome[]>;
|
|
1295
1293
|
}
|
|
1296
1294
|
|
|
1297
1295
|
/**
|
|
@@ -3201,7 +3199,7 @@ declare class BitfabFunction {
|
|
|
3201
3199
|
/**
|
|
3202
3200
|
* SDK version from package.json (injected at build time)
|
|
3203
3201
|
*/
|
|
3204
|
-
declare const __version__ = "0.
|
|
3202
|
+
declare const __version__ = "0.47.0";
|
|
3205
3203
|
|
|
3206
3204
|
/**
|
|
3207
3205
|
* Constants for the Bitfab SDK.
|
|
@@ -3331,4 +3329,4 @@ declare function seedFromRegistry(registry: ReplayRegistry, pipeline: string, ca
|
|
|
3331
3329
|
run?: boolean;
|
|
3332
3330
|
}): Promise<SeedResult>;
|
|
3333
3331
|
|
|
3334
|
-
export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ArchiveAssertionsParams, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabVercelAiHandler, type CaptureSurface, type CaptureWhen, type CapturedSpan, type CodeChangeFile, type CurrentSpan, type CurrentTrace, DEFAULT_SERVICE_URL, type Dataset, type DatasetGraderRef, type DatasetTraceIds, DatasetsClient, type DbBranchOptions, DbBranchReplayError, type DbBranchTimings, type DbSnapshotConfig, type DbSnapshotProvider, type DbSnapshotRef, type DetachedTrace, type GraderRerun, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, HttpClient, type LabelAction, type LabelConfidence, type LabelOutcome, type LabelUpdate, LabelsClient, type LangGraphIntegrationOptions, type ListDatasetsParams, MixedTracingError, type MockOverride, type MockOverrideCtx, type MockOverrideInput, type MockOverrideResolver, type MockStrategy, type MockValue, NO_MOCK_OVERRIDE, type NodeMatcher, type NodeMethodDecorator, type NodeOptions, type ProviderDefinition, type RemoveDatasetGradersResult, type RemoveDatasetTracesResult, 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, type RerunGradersOptions, type RerunGradersResult, SUPPORTED_PROVIDERS, type SaveAssertion, type SaveAssertionsParams, type SaveDatasetParams, type SaveDatasetResult, type
|
|
3332
|
+
export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ArchiveAssertionsParams, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabVercelAiHandler, type CaptureSurface, type CaptureWhen, type CapturedSpan, type CodeChangeFile, type CurrentSpan, type CurrentTrace, DEFAULT_SERVICE_URL, type Dataset, type DatasetGraderRef, type DatasetTraceIds, DatasetsClient, type DbBranchOptions, DbBranchReplayError, type DbBranchTimings, type DbSnapshotConfig, type DbSnapshotProvider, type DbSnapshotRef, type DetachedTrace, type GraderRerun, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, HttpClient, type LabelAction, type LabelConfidence, type LabelOutcome, type LabelUpdate, LabelsClient, type LangGraphIntegrationOptions, type ListDatasetsParams, MixedTracingError, type MockOverride, type MockOverrideCtx, type MockOverrideInput, type MockOverrideResolver, type MockStrategy, type MockValue, NO_MOCK_OVERRIDE, type NodeMatcher, type NodeMethodDecorator, type NodeOptions, type ProviderDefinition, type RemoveDatasetGradersResult, type RemoveDatasetTracesResult, 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, type RerunGradersOptions, type RerunGradersResult, SUPPORTED_PROVIDERS, type SaveAssertion, type SaveAssertionsParams, type SaveDatasetParams, type SaveDatasetResult, type SeedCase, type SeedCaseOptions, type SeedResult, type SeedRunOptions, type SpanLookup, type SpanMethodDecorator, type SpanMethodDecoratorContext, type SpanNodeMeta, type SpanOccurrence, type SpanOptions, type SpanType, type TokenUsage, type TraceAssertion, type TraceAssertionSource, type TraceAssertionsResult, type TraceIngestionType, type TraceOutline, type TraceOutlineSpan, type TraceOutlineSpanError, type TraceResponse, type TraceTarget, type TraceTargetOccurrence, TracesClient, type TracingProcessor, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type WrapBAMLOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, seedFromRegistry, serializeReplayResult };
|
package/dist/index.d.ts
CHANGED
|
@@ -1259,7 +1259,7 @@ declare class DatasetsClient {
|
|
|
1259
1259
|
|
|
1260
1260
|
type LabelConfidence = "VeryLow" | "Low" | "Medium" | "High" | "VeryHigh";
|
|
1261
1261
|
type LabelAction = "set" | "archived" | "no-active-label" | "skipped";
|
|
1262
|
-
type LabelTarget = {
|
|
1262
|
+
type LabelTarget = ({
|
|
1263
1263
|
traceId: string;
|
|
1264
1264
|
originalTraceId?: never;
|
|
1265
1265
|
attempt?: never;
|
|
@@ -1267,6 +1267,8 @@ type LabelTarget = {
|
|
|
1267
1267
|
originalTraceId: string;
|
|
1268
1268
|
attempt?: number;
|
|
1269
1269
|
traceId?: never;
|
|
1270
|
+
}) & {
|
|
1271
|
+
assertionId?: string;
|
|
1270
1272
|
};
|
|
1271
1273
|
type LabelVerdict = {
|
|
1272
1274
|
label: boolean;
|
|
@@ -1283,15 +1285,11 @@ type LabelOutcome = {
|
|
|
1283
1285
|
traceId: string;
|
|
1284
1286
|
action: LabelAction;
|
|
1285
1287
|
};
|
|
1286
|
-
type SaveLabelsParams = {
|
|
1287
|
-
labels: LabelUpdate[];
|
|
1288
|
-
testRunId?: string;
|
|
1289
|
-
};
|
|
1290
1288
|
declare class LabelsClient {
|
|
1291
1289
|
private readonly httpClient;
|
|
1292
1290
|
constructor(httpClient: HttpClient);
|
|
1293
|
-
save(
|
|
1294
|
-
|
|
1291
|
+
save(update: LabelUpdate, testRunId?: string): Promise<LabelOutcome>;
|
|
1292
|
+
saveAll(updates: LabelUpdate[], testRunId?: string): Promise<LabelOutcome[]>;
|
|
1295
1293
|
}
|
|
1296
1294
|
|
|
1297
1295
|
/**
|
|
@@ -3201,7 +3199,7 @@ declare class BitfabFunction {
|
|
|
3201
3199
|
/**
|
|
3202
3200
|
* SDK version from package.json (injected at build time)
|
|
3203
3201
|
*/
|
|
3204
|
-
declare const __version__ = "0.
|
|
3202
|
+
declare const __version__ = "0.47.0";
|
|
3205
3203
|
|
|
3206
3204
|
/**
|
|
3207
3205
|
* Constants for the Bitfab SDK.
|
|
@@ -3331,4 +3329,4 @@ declare function seedFromRegistry(registry: ReplayRegistry, pipeline: string, ca
|
|
|
3331
3329
|
run?: boolean;
|
|
3332
3330
|
}): Promise<SeedResult>;
|
|
3333
3331
|
|
|
3334
|
-
export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ArchiveAssertionsParams, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabVercelAiHandler, type CaptureSurface, type CaptureWhen, type CapturedSpan, type CodeChangeFile, type CurrentSpan, type CurrentTrace, DEFAULT_SERVICE_URL, type Dataset, type DatasetGraderRef, type DatasetTraceIds, DatasetsClient, type DbBranchOptions, DbBranchReplayError, type DbBranchTimings, type DbSnapshotConfig, type DbSnapshotProvider, type DbSnapshotRef, type DetachedTrace, type GraderRerun, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, HttpClient, type LabelAction, type LabelConfidence, type LabelOutcome, type LabelUpdate, LabelsClient, type LangGraphIntegrationOptions, type ListDatasetsParams, MixedTracingError, type MockOverride, type MockOverrideCtx, type MockOverrideInput, type MockOverrideResolver, type MockStrategy, type MockValue, NO_MOCK_OVERRIDE, type NodeMatcher, type NodeMethodDecorator, type NodeOptions, type ProviderDefinition, type RemoveDatasetGradersResult, type RemoveDatasetTracesResult, 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, type RerunGradersOptions, type RerunGradersResult, SUPPORTED_PROVIDERS, type SaveAssertion, type SaveAssertionsParams, type SaveDatasetParams, type SaveDatasetResult, type
|
|
3332
|
+
export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ArchiveAssertionsParams, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabVercelAiHandler, type CaptureSurface, type CaptureWhen, type CapturedSpan, type CodeChangeFile, type CurrentSpan, type CurrentTrace, DEFAULT_SERVICE_URL, type Dataset, type DatasetGraderRef, type DatasetTraceIds, DatasetsClient, type DbBranchOptions, DbBranchReplayError, type DbBranchTimings, type DbSnapshotConfig, type DbSnapshotProvider, type DbSnapshotRef, type DetachedTrace, type GraderRerun, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, HttpClient, type LabelAction, type LabelConfidence, type LabelOutcome, type LabelUpdate, LabelsClient, type LangGraphIntegrationOptions, type ListDatasetsParams, MixedTracingError, type MockOverride, type MockOverrideCtx, type MockOverrideInput, type MockOverrideResolver, type MockStrategy, type MockValue, NO_MOCK_OVERRIDE, type NodeMatcher, type NodeMethodDecorator, type NodeOptions, type ProviderDefinition, type RemoveDatasetGradersResult, type RemoveDatasetTracesResult, 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, type RerunGradersOptions, type RerunGradersResult, SUPPORTED_PROVIDERS, type SaveAssertion, type SaveAssertionsParams, type SaveDatasetParams, type SaveDatasetResult, type SeedCase, type SeedCaseOptions, type SeedResult, type SeedRunOptions, type SpanLookup, type SpanMethodDecorator, type SpanMethodDecoratorContext, type SpanNodeMeta, type SpanOccurrence, type SpanOptions, type SpanType, type TokenUsage, type TraceAssertion, type TraceAssertionSource, type TraceAssertionsResult, type TraceIngestionType, type TraceOutline, type TraceOutlineSpan, type TraceOutlineSpanError, type TraceResponse, type TraceTarget, type TraceTargetOccurrence, TracesClient, type TracingProcessor, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type WrapBAMLOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, seedFromRegistry, serializeReplayResult };
|
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
getCurrentSpan,
|
|
18
18
|
getCurrentTrace,
|
|
19
19
|
seedFromRegistry
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-LP2CN7SZ.js";
|
|
21
21
|
import "./chunk-ZUD7OFYB.js";
|
|
22
22
|
import {
|
|
23
23
|
BITFAB_PROGRESS_PREFIX,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
ReplayError,
|
|
27
27
|
reportReplayProgress,
|
|
28
28
|
serializeReplayResult
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-G52ZQTWU.js";
|
|
30
30
|
import {
|
|
31
31
|
BitfabError,
|
|
32
32
|
DEFAULT_SERVICE_URL,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
MixedTracingError,
|
|
35
35
|
__version__,
|
|
36
36
|
flushTraces
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-YKHZGYAC.js";
|
|
38
38
|
import "./chunk-H6LZRFMN.js";
|
|
39
39
|
export {
|
|
40
40
|
BITFAB_PROGRESS_PREFIX,
|
package/dist/node.cjs
CHANGED
|
@@ -88,7 +88,7 @@ var __version__, __packageName__;
|
|
|
88
88
|
var init_version_generated = __esm({
|
|
89
89
|
"src/version.generated.ts"() {
|
|
90
90
|
"use strict";
|
|
91
|
-
__version__ = "0.
|
|
91
|
+
__version__ = "0.47.0";
|
|
92
92
|
__packageName__ = "@bitfab/sdk";
|
|
93
93
|
}
|
|
94
94
|
});
|
|
@@ -4585,20 +4585,20 @@ var LabelsClient = class {
|
|
|
4585
4585
|
constructor(httpClient) {
|
|
4586
4586
|
this.httpClient = httpClient;
|
|
4587
4587
|
}
|
|
4588
|
-
async save(
|
|
4588
|
+
async save(update, testRunId) {
|
|
4589
|
+
const [outcome] = await this.saveAll([update], testRunId);
|
|
4590
|
+
return outcome;
|
|
4591
|
+
}
|
|
4592
|
+
async saveAll(updates, testRunId) {
|
|
4589
4593
|
const response = await this.httpClient.request(
|
|
4590
4594
|
LABELS_PATH,
|
|
4591
4595
|
{
|
|
4592
|
-
labels:
|
|
4593
|
-
...
|
|
4596
|
+
labels: updates,
|
|
4597
|
+
...testRunId === void 0 ? {} : { testRunId }
|
|
4594
4598
|
}
|
|
4595
4599
|
);
|
|
4596
4600
|
return response.labels;
|
|
4597
4601
|
}
|
|
4598
|
-
async saveOne(update, testRunId) {
|
|
4599
|
-
const [outcome] = await this.save({ labels: [update], testRunId });
|
|
4600
|
-
return outcome;
|
|
4601
|
-
}
|
|
4602
4602
|
};
|
|
4603
4603
|
|
|
4604
4604
|
// src/langgraph.ts
|