@bitfab/sdk 0.45.0 → 0.46.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-TCOD5O2B.js → chunk-HSLKCBA3.js} +2 -2
- package/dist/{chunk-TCOD5O2B.js.map → chunk-HSLKCBA3.js.map} +1 -1
- package/dist/{chunk-GN6E2IBU.js → chunk-OS62EZ6Y.js} +13 -13
- package/dist/chunk-OS62EZ6Y.js.map +1 -0
- package/dist/{chunk-SILI6DDS.js → chunk-RIMNDJP3.js} +2 -2
- package/dist/{chunk-SILI6DDS.js.map → chunk-RIMNDJP3.js.map} +1 -1
- package/dist/{chunk-H4WJUUZH.js → chunk-WVGPOCCT.js} +2 -2
- package/dist/{http-E7RYN3BX.js → http-LVSVWTKO.js} +2 -2
- package/dist/{http-QGTV3X7R.js → http-RKVEWOUX.js} +2 -2
- package/dist/index.cjs +8 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -8
- package/dist/index.d.ts +4 -8
- 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-Q2YYL5HB.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-WVGPOCCT.js.map} +0 -0
- /package/dist/{http-E7RYN3BX.js.map → http-LVSVWTKO.js.map} +0 -0
- /package/dist/{http-QGTV3X7R.js.map → http-RKVEWOUX.js.map} +0 -0
- /package/dist/{replay-PQSTJRPU.js.map → replay-Q2YYL5HB.js.map} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -1283,15 +1283,11 @@ type LabelOutcome = {
|
|
|
1283
1283
|
traceId: string;
|
|
1284
1284
|
action: LabelAction;
|
|
1285
1285
|
};
|
|
1286
|
-
type SaveLabelsParams = {
|
|
1287
|
-
labels: LabelUpdate[];
|
|
1288
|
-
testRunId?: string;
|
|
1289
|
-
};
|
|
1290
1286
|
declare class LabelsClient {
|
|
1291
1287
|
private readonly httpClient;
|
|
1292
1288
|
constructor(httpClient: HttpClient);
|
|
1293
|
-
save(
|
|
1294
|
-
|
|
1289
|
+
save(update: LabelUpdate, testRunId?: string): Promise<LabelOutcome>;
|
|
1290
|
+
saveAll(updates: LabelUpdate[], testRunId?: string): Promise<LabelOutcome[]>;
|
|
1295
1291
|
}
|
|
1296
1292
|
|
|
1297
1293
|
/**
|
|
@@ -3201,7 +3197,7 @@ declare class BitfabFunction {
|
|
|
3201
3197
|
/**
|
|
3202
3198
|
* SDK version from package.json (injected at build time)
|
|
3203
3199
|
*/
|
|
3204
|
-
declare const __version__ = "0.
|
|
3200
|
+
declare const __version__ = "0.46.0";
|
|
3205
3201
|
|
|
3206
3202
|
/**
|
|
3207
3203
|
* Constants for the Bitfab SDK.
|
|
@@ -3331,4 +3327,4 @@ declare function seedFromRegistry(registry: ReplayRegistry, pipeline: string, ca
|
|
|
3331
3327
|
run?: boolean;
|
|
3332
3328
|
}): Promise<SeedResult>;
|
|
3333
3329
|
|
|
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
|
|
3330
|
+
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
|
@@ -1283,15 +1283,11 @@ type LabelOutcome = {
|
|
|
1283
1283
|
traceId: string;
|
|
1284
1284
|
action: LabelAction;
|
|
1285
1285
|
};
|
|
1286
|
-
type SaveLabelsParams = {
|
|
1287
|
-
labels: LabelUpdate[];
|
|
1288
|
-
testRunId?: string;
|
|
1289
|
-
};
|
|
1290
1286
|
declare class LabelsClient {
|
|
1291
1287
|
private readonly httpClient;
|
|
1292
1288
|
constructor(httpClient: HttpClient);
|
|
1293
|
-
save(
|
|
1294
|
-
|
|
1289
|
+
save(update: LabelUpdate, testRunId?: string): Promise<LabelOutcome>;
|
|
1290
|
+
saveAll(updates: LabelUpdate[], testRunId?: string): Promise<LabelOutcome[]>;
|
|
1295
1291
|
}
|
|
1296
1292
|
|
|
1297
1293
|
/**
|
|
@@ -3201,7 +3197,7 @@ declare class BitfabFunction {
|
|
|
3201
3197
|
/**
|
|
3202
3198
|
* SDK version from package.json (injected at build time)
|
|
3203
3199
|
*/
|
|
3204
|
-
declare const __version__ = "0.
|
|
3200
|
+
declare const __version__ = "0.46.0";
|
|
3205
3201
|
|
|
3206
3202
|
/**
|
|
3207
3203
|
* Constants for the Bitfab SDK.
|
|
@@ -3331,4 +3327,4 @@ declare function seedFromRegistry(registry: ReplayRegistry, pipeline: string, ca
|
|
|
3331
3327
|
run?: boolean;
|
|
3332
3328
|
}): Promise<SeedResult>;
|
|
3333
3329
|
|
|
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
|
|
3330
|
+
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-OS62EZ6Y.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-WVGPOCCT.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-HSLKCBA3.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.46.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
|