bitfab 0.57.3 → 0.57.5
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-B7G7QH2S.js → chunk-255I4PN4.js} +2 -2
- package/dist/{chunk-B7G7QH2S.js.map → chunk-255I4PN4.js.map} +1 -1
- package/dist/{chunk-46O35VA7.js → chunk-I5EG523G.js} +3 -3
- package/dist/{chunk-JLKB3VT3.js → chunk-VPZ2LTU6.js} +2 -2
- package/dist/{chunk-2EFN2SVP.js → chunk-WYNN6NY2.js} +2 -2
- package/dist/{chunk-2EFN2SVP.js.map → chunk-WYNN6NY2.js.map} +1 -1
- package/dist/{chunk-3MN4DLJH.js → chunk-YO3HKQX6.js} +21 -6
- package/dist/{chunk-3MN4DLJH.js.map → chunk-YO3HKQX6.js.map} +1 -1
- package/dist/{http-JVWNLQ4C.js → http-CHXMOVLK.js} +2 -2
- package/dist/{http-UMQCF7G7.js → http-FQ76VRFF.js} +2 -2
- package/dist/index.cjs +17 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +25 -2
- package/dist/index.d.ts +25 -2
- package/dist/index.js +5 -3
- package/dist/node.cjs +17 -1
- 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 +5 -3
- package/dist/node.js.map +1 -1
- package/dist/{replay-OZCQPRSL.js → replay-CHM7OQ25.js} +3 -3
- package/dist/replayCli.js +2 -2
- package/dist/seedCli.js +2 -2
- package/package.json +1 -1
- /package/dist/{chunk-46O35VA7.js.map → chunk-I5EG523G.js.map} +0 -0
- /package/dist/{chunk-JLKB3VT3.js.map → chunk-VPZ2LTU6.js.map} +0 -0
- /package/dist/{http-JVWNLQ4C.js.map → http-CHXMOVLK.js.map} +0 -0
- /package/dist/{http-UMQCF7G7.js.map → http-FQ76VRFF.js.map} +0 -0
- /package/dist/{replay-OZCQPRSL.js.map → replay-CHM7OQ25.js.map} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -1322,6 +1322,7 @@ type LabelVerdict = {
|
|
|
1322
1322
|
label: boolean;
|
|
1323
1323
|
annotation: string;
|
|
1324
1324
|
confidence?: LabelConfidence;
|
|
1325
|
+
evidence?: Justification | null;
|
|
1325
1326
|
} | {
|
|
1326
1327
|
skip: true;
|
|
1327
1328
|
} | {
|
|
@@ -1339,6 +1340,7 @@ type HumanLabelUpdate = {
|
|
|
1339
1340
|
label: boolean;
|
|
1340
1341
|
annotation: string;
|
|
1341
1342
|
confidence?: LabelConfidence;
|
|
1343
|
+
evidence?: Justification | null;
|
|
1342
1344
|
};
|
|
1343
1345
|
type HumanLabelOutcome = {
|
|
1344
1346
|
traceId: string;
|
|
@@ -1352,6 +1354,7 @@ type AssertionVerdict = {
|
|
|
1352
1354
|
labelStatus: LabelStatus;
|
|
1353
1355
|
label: boolean | null;
|
|
1354
1356
|
annotation: string | null;
|
|
1357
|
+
evidence: Justification | null;
|
|
1355
1358
|
confidence: LabelConfidence | null;
|
|
1356
1359
|
labelSource: LabelSource;
|
|
1357
1360
|
approved: boolean;
|
|
@@ -1361,6 +1364,7 @@ type TraceLabels = {
|
|
|
1361
1364
|
labelStatus: LabelStatus;
|
|
1362
1365
|
label: boolean | null;
|
|
1363
1366
|
annotation: string | null;
|
|
1367
|
+
evidence: Justification | null;
|
|
1364
1368
|
approved: boolean;
|
|
1365
1369
|
passed: number;
|
|
1366
1370
|
failed: number;
|
|
@@ -2345,6 +2349,18 @@ type TraceAssertion = {
|
|
|
2345
2349
|
createdAt: string;
|
|
2346
2350
|
updatedAt: string;
|
|
2347
2351
|
} & ApprovalFields;
|
|
2352
|
+
type AssertionEvidenceParameter = {
|
|
2353
|
+
name: string;
|
|
2354
|
+
type: "string" | "number" | "boolean" | "object" | "array" | "null" | "unknown";
|
|
2355
|
+
};
|
|
2356
|
+
type PotentialAssertionEvidence = {
|
|
2357
|
+
spanId: string;
|
|
2358
|
+
text: string;
|
|
2359
|
+
spanName: string | null;
|
|
2360
|
+
parameters: AssertionEvidenceParameter[];
|
|
2361
|
+
spanType: "llm" | "agent" | "function" | "guardrail" | "handoff" | "custom";
|
|
2362
|
+
isMocked: boolean;
|
|
2363
|
+
};
|
|
2348
2364
|
type SaveAssertion = {
|
|
2349
2365
|
/** Omit to preserve the category, or pass null to clear it. */
|
|
2350
2366
|
category_assertion_id?: string | null;
|
|
@@ -2385,8 +2401,15 @@ type ArchiveAssertionsParams = {
|
|
|
2385
2401
|
traceId: string;
|
|
2386
2402
|
assertionIds: string[];
|
|
2387
2403
|
};
|
|
2404
|
+
declare class TraceAssertionsClient {
|
|
2405
|
+
private readonly httpClient;
|
|
2406
|
+
constructor(httpClient: HttpClient);
|
|
2407
|
+
/** Suggest evidence for an assertion, enriched with its span context. */
|
|
2408
|
+
getAssertionEvidence(assertionId: string): Promise<PotentialAssertionEvidence[]>;
|
|
2409
|
+
}
|
|
2388
2410
|
declare class TracesClient {
|
|
2389
2411
|
private readonly httpClient;
|
|
2412
|
+
readonly assertions: TraceAssertionsClient;
|
|
2390
2413
|
constructor(httpClient: HttpClient);
|
|
2391
2414
|
search(params: TraceSearchParams): Promise<TraceSearchResult>;
|
|
2392
2415
|
getAssertions(traceId: string): Promise<TraceAssertionsResult>;
|
|
@@ -3604,7 +3627,7 @@ interface CommitRef {
|
|
|
3604
3627
|
/**
|
|
3605
3628
|
* SDK version from package.json (injected at build time)
|
|
3606
3629
|
*/
|
|
3607
|
-
declare const __version__ = "0.57.
|
|
3630
|
+
declare const __version__ = "0.57.5";
|
|
3608
3631
|
|
|
3609
3632
|
/**
|
|
3610
3633
|
* Constants for the Bitfab SDK.
|
|
@@ -3743,4 +3766,4 @@ declare function seedFromRegistry(registry: ReplayRegistry, pipeline: string, ca
|
|
|
3743
3766
|
run?: boolean;
|
|
3744
3767
|
}): Promise<SeedResult>;
|
|
3745
3768
|
|
|
3746
|
-
export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ApprovalFields, type ApprovalState, type Approver, type ArchiveAssertionsParams, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionVerdict, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabRivetIntegration, BitfabVercelAiHandler, type CaptureSurface, type CaptureWhen, type CapturedSpan, type CodeChangeFile, type CommitRef, 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 GetGraderLabelsParams, type GraderLabel, type GraderLabelSource, type GraderRerun, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, GradersClient, HttpClient, type HumanLabelOutcome, type HumanLabelUpdate, type Justification, type JustificationSpan, type LabelAction, type LabelConfidence, type LabelOutcome, type LabelSource, type LabelStatus, type LabelTarget, 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, type ReseedOptions, type ReseedRegistryResult, type ReseedResult, type RivetContextLike, type RivetEffectType, type RivetIntegrationOptions, SUPPORTED_PROVIDERS, type SaveAssertion, type SaveAssertionCategoryParams, type SaveAssertionsAllParams, 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 TraceAssertionsUpdate, type TraceIngestionType, type TraceLabels, type TraceOutline, type TraceOutlineSpan, type TraceOutlineSpanError, type TraceResponse, type TraceSearchFilters, type TraceSearchParams, type TraceSearchResult, 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, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
|
|
3769
|
+
export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ApprovalFields, type ApprovalState, type Approver, type ArchiveAssertionsParams, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionEvidenceParameter, type AssertionVerdict, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabRivetIntegration, BitfabVercelAiHandler, type CaptureSurface, type CaptureWhen, type CapturedSpan, type CodeChangeFile, type CommitRef, 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 GetGraderLabelsParams, type GraderLabel, type GraderLabelSource, type GraderRerun, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, GradersClient, HttpClient, type HumanLabelOutcome, type HumanLabelUpdate, type Justification, type JustificationSpan, type LabelAction, type LabelConfidence, type LabelOutcome, type LabelSource, type LabelStatus, type LabelTarget, 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 PotentialAssertionEvidence, 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, type ReseedOptions, type ReseedRegistryResult, type ReseedResult, type RivetContextLike, type RivetEffectType, type RivetIntegrationOptions, SUPPORTED_PROVIDERS, type SaveAssertion, type SaveAssertionCategoryParams, type SaveAssertionsAllParams, 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, TraceAssertionsClient, type TraceAssertionsResult, type TraceAssertionsUpdate, type TraceIngestionType, type TraceLabels, type TraceOutline, type TraceOutlineSpan, type TraceOutlineSpanError, type TraceResponse, type TraceSearchFilters, type TraceSearchParams, type TraceSearchResult, 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, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
|
package/dist/index.d.ts
CHANGED
|
@@ -1322,6 +1322,7 @@ type LabelVerdict = {
|
|
|
1322
1322
|
label: boolean;
|
|
1323
1323
|
annotation: string;
|
|
1324
1324
|
confidence?: LabelConfidence;
|
|
1325
|
+
evidence?: Justification | null;
|
|
1325
1326
|
} | {
|
|
1326
1327
|
skip: true;
|
|
1327
1328
|
} | {
|
|
@@ -1339,6 +1340,7 @@ type HumanLabelUpdate = {
|
|
|
1339
1340
|
label: boolean;
|
|
1340
1341
|
annotation: string;
|
|
1341
1342
|
confidence?: LabelConfidence;
|
|
1343
|
+
evidence?: Justification | null;
|
|
1342
1344
|
};
|
|
1343
1345
|
type HumanLabelOutcome = {
|
|
1344
1346
|
traceId: string;
|
|
@@ -1352,6 +1354,7 @@ type AssertionVerdict = {
|
|
|
1352
1354
|
labelStatus: LabelStatus;
|
|
1353
1355
|
label: boolean | null;
|
|
1354
1356
|
annotation: string | null;
|
|
1357
|
+
evidence: Justification | null;
|
|
1355
1358
|
confidence: LabelConfidence | null;
|
|
1356
1359
|
labelSource: LabelSource;
|
|
1357
1360
|
approved: boolean;
|
|
@@ -1361,6 +1364,7 @@ type TraceLabels = {
|
|
|
1361
1364
|
labelStatus: LabelStatus;
|
|
1362
1365
|
label: boolean | null;
|
|
1363
1366
|
annotation: string | null;
|
|
1367
|
+
evidence: Justification | null;
|
|
1364
1368
|
approved: boolean;
|
|
1365
1369
|
passed: number;
|
|
1366
1370
|
failed: number;
|
|
@@ -2345,6 +2349,18 @@ type TraceAssertion = {
|
|
|
2345
2349
|
createdAt: string;
|
|
2346
2350
|
updatedAt: string;
|
|
2347
2351
|
} & ApprovalFields;
|
|
2352
|
+
type AssertionEvidenceParameter = {
|
|
2353
|
+
name: string;
|
|
2354
|
+
type: "string" | "number" | "boolean" | "object" | "array" | "null" | "unknown";
|
|
2355
|
+
};
|
|
2356
|
+
type PotentialAssertionEvidence = {
|
|
2357
|
+
spanId: string;
|
|
2358
|
+
text: string;
|
|
2359
|
+
spanName: string | null;
|
|
2360
|
+
parameters: AssertionEvidenceParameter[];
|
|
2361
|
+
spanType: "llm" | "agent" | "function" | "guardrail" | "handoff" | "custom";
|
|
2362
|
+
isMocked: boolean;
|
|
2363
|
+
};
|
|
2348
2364
|
type SaveAssertion = {
|
|
2349
2365
|
/** Omit to preserve the category, or pass null to clear it. */
|
|
2350
2366
|
category_assertion_id?: string | null;
|
|
@@ -2385,8 +2401,15 @@ type ArchiveAssertionsParams = {
|
|
|
2385
2401
|
traceId: string;
|
|
2386
2402
|
assertionIds: string[];
|
|
2387
2403
|
};
|
|
2404
|
+
declare class TraceAssertionsClient {
|
|
2405
|
+
private readonly httpClient;
|
|
2406
|
+
constructor(httpClient: HttpClient);
|
|
2407
|
+
/** Suggest evidence for an assertion, enriched with its span context. */
|
|
2408
|
+
getAssertionEvidence(assertionId: string): Promise<PotentialAssertionEvidence[]>;
|
|
2409
|
+
}
|
|
2388
2410
|
declare class TracesClient {
|
|
2389
2411
|
private readonly httpClient;
|
|
2412
|
+
readonly assertions: TraceAssertionsClient;
|
|
2390
2413
|
constructor(httpClient: HttpClient);
|
|
2391
2414
|
search(params: TraceSearchParams): Promise<TraceSearchResult>;
|
|
2392
2415
|
getAssertions(traceId: string): Promise<TraceAssertionsResult>;
|
|
@@ -3604,7 +3627,7 @@ interface CommitRef {
|
|
|
3604
3627
|
/**
|
|
3605
3628
|
* SDK version from package.json (injected at build time)
|
|
3606
3629
|
*/
|
|
3607
|
-
declare const __version__ = "0.57.
|
|
3630
|
+
declare const __version__ = "0.57.5";
|
|
3608
3631
|
|
|
3609
3632
|
/**
|
|
3610
3633
|
* Constants for the Bitfab SDK.
|
|
@@ -3743,4 +3766,4 @@ declare function seedFromRegistry(registry: ReplayRegistry, pipeline: string, ca
|
|
|
3743
3766
|
run?: boolean;
|
|
3744
3767
|
}): Promise<SeedResult>;
|
|
3745
3768
|
|
|
3746
|
-
export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ApprovalFields, type ApprovalState, type Approver, type ArchiveAssertionsParams, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionVerdict, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabRivetIntegration, BitfabVercelAiHandler, type CaptureSurface, type CaptureWhen, type CapturedSpan, type CodeChangeFile, type CommitRef, 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 GetGraderLabelsParams, type GraderLabel, type GraderLabelSource, type GraderRerun, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, GradersClient, HttpClient, type HumanLabelOutcome, type HumanLabelUpdate, type Justification, type JustificationSpan, type LabelAction, type LabelConfidence, type LabelOutcome, type LabelSource, type LabelStatus, type LabelTarget, 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, type ReseedOptions, type ReseedRegistryResult, type ReseedResult, type RivetContextLike, type RivetEffectType, type RivetIntegrationOptions, SUPPORTED_PROVIDERS, type SaveAssertion, type SaveAssertionCategoryParams, type SaveAssertionsAllParams, 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 TraceAssertionsUpdate, type TraceIngestionType, type TraceLabels, type TraceOutline, type TraceOutlineSpan, type TraceOutlineSpanError, type TraceResponse, type TraceSearchFilters, type TraceSearchParams, type TraceSearchResult, 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, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
|
|
3769
|
+
export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ApprovalFields, type ApprovalState, type Approver, type ArchiveAssertionsParams, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionEvidenceParameter, type AssertionVerdict, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabRivetIntegration, BitfabVercelAiHandler, type CaptureSurface, type CaptureWhen, type CapturedSpan, type CodeChangeFile, type CommitRef, 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 GetGraderLabelsParams, type GraderLabel, type GraderLabelSource, type GraderRerun, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, GradersClient, HttpClient, type HumanLabelOutcome, type HumanLabelUpdate, type Justification, type JustificationSpan, type LabelAction, type LabelConfidence, type LabelOutcome, type LabelSource, type LabelStatus, type LabelTarget, 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 PotentialAssertionEvidence, 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, type ReseedOptions, type ReseedRegistryResult, type ReseedResult, type RivetContextLike, type RivetEffectType, type RivetIntegrationOptions, SUPPORTED_PROVIDERS, type SaveAssertion, type SaveAssertionCategoryParams, type SaveAssertionsAllParams, 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, TraceAssertionsClient, type TraceAssertionsResult, type TraceAssertionsUpdate, type TraceIngestionType, type TraceLabels, type TraceOutline, type TraceOutlineSpan, type TraceOutlineSpanError, type TraceResponse, type TraceSearchFilters, type TraceSearchParams, type TraceSearchResult, 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, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
|
package/dist/index.js
CHANGED
|
@@ -22,6 +22,7 @@ import {
|
|
|
22
22
|
GradersClient,
|
|
23
23
|
LabelsClient,
|
|
24
24
|
SUPPORTED_PROVIDERS,
|
|
25
|
+
TraceAssertionsClient,
|
|
25
26
|
TracesClient,
|
|
26
27
|
defineReplayRegistry,
|
|
27
28
|
finalizers,
|
|
@@ -30,7 +31,7 @@ import {
|
|
|
30
31
|
getCurrentTrace,
|
|
31
32
|
reseedFromRegistry,
|
|
32
33
|
seedFromRegistry
|
|
33
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-YO3HKQX6.js";
|
|
34
35
|
import "./chunk-RCHSYWKI.js";
|
|
35
36
|
import {
|
|
36
37
|
BITFAB_PROGRESS_PREFIX,
|
|
@@ -39,7 +40,7 @@ import {
|
|
|
39
40
|
ReplayError,
|
|
40
41
|
reportReplayProgress,
|
|
41
42
|
serializeReplayResult
|
|
42
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-VPZ2LTU6.js";
|
|
43
44
|
import {
|
|
44
45
|
BitfabError,
|
|
45
46
|
DEFAULT_SERVICE_URL,
|
|
@@ -47,7 +48,7 @@ import {
|
|
|
47
48
|
MixedTracingError,
|
|
48
49
|
__version__,
|
|
49
50
|
flushTraces
|
|
50
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-255I4PN4.js";
|
|
51
52
|
import "./chunk-VCRFFCLY.js";
|
|
52
53
|
export {
|
|
53
54
|
AssertionCategoriesClient,
|
|
@@ -73,6 +74,7 @@ export {
|
|
|
73
74
|
NO_MOCK_OVERRIDE,
|
|
74
75
|
ReplayError,
|
|
75
76
|
SUPPORTED_PROVIDERS,
|
|
77
|
+
TraceAssertionsClient,
|
|
76
78
|
TracesClient,
|
|
77
79
|
__version__,
|
|
78
80
|
defineReplayRegistry,
|
package/dist/node.cjs
CHANGED
|
@@ -97,7 +97,7 @@ var __version__, __packageName__;
|
|
|
97
97
|
var init_version_generated = __esm({
|
|
98
98
|
"src/version.generated.ts"() {
|
|
99
99
|
"use strict";
|
|
100
|
-
__version__ = "0.57.
|
|
100
|
+
__version__ = "0.57.5";
|
|
101
101
|
__packageName__ = "bitfab";
|
|
102
102
|
}
|
|
103
103
|
});
|
|
@@ -4398,6 +4398,7 @@ __export(node_exports, {
|
|
|
4398
4398
|
NO_MOCK_OVERRIDE: () => NO_MOCK_OVERRIDE,
|
|
4399
4399
|
ReplayError: () => ReplayError,
|
|
4400
4400
|
SUPPORTED_PROVIDERS: () => SUPPORTED_PROVIDERS,
|
|
4401
|
+
TraceAssertionsClient: () => TraceAssertionsClient,
|
|
4401
4402
|
TracesClient: () => TracesClient,
|
|
4402
4403
|
__version__: () => __version__,
|
|
4403
4404
|
defineReplayRegistry: () => defineReplayRegistry,
|
|
@@ -7763,9 +7764,23 @@ var SEARCH_PATH = "/api/sdk/traces/search";
|
|
|
7763
7764
|
function traceAssertionsPath(traceId, suffix = "") {
|
|
7764
7765
|
return `/api/sdk/traces/${encodeURIComponent(traceId)}/assertions${suffix}`;
|
|
7765
7766
|
}
|
|
7767
|
+
function assertionEvidencePath(assertionId) {
|
|
7768
|
+
return `/api/sdk/traces/assertions/${encodeURIComponent(assertionId)}/evidence`;
|
|
7769
|
+
}
|
|
7770
|
+
var TraceAssertionsClient = class {
|
|
7771
|
+
constructor(httpClient) {
|
|
7772
|
+
this.httpClient = httpClient;
|
|
7773
|
+
}
|
|
7774
|
+
/** Suggest evidence for an assertion, enriched with its span context. */
|
|
7775
|
+
async getAssertionEvidence(assertionId) {
|
|
7776
|
+
const response = await this.httpClient.get(assertionEvidencePath(assertionId));
|
|
7777
|
+
return response.evidence;
|
|
7778
|
+
}
|
|
7779
|
+
};
|
|
7766
7780
|
var TracesClient = class {
|
|
7767
7781
|
constructor(httpClient) {
|
|
7768
7782
|
this.httpClient = httpClient;
|
|
7783
|
+
this.assertions = new TraceAssertionsClient(httpClient);
|
|
7769
7784
|
}
|
|
7770
7785
|
async search(params) {
|
|
7771
7786
|
return this.httpClient.request(SEARCH_PATH, params);
|
|
@@ -11023,6 +11038,7 @@ assertAsyncStorageRegistered();
|
|
|
11023
11038
|
NO_MOCK_OVERRIDE,
|
|
11024
11039
|
ReplayError,
|
|
11025
11040
|
SUPPORTED_PROVIDERS,
|
|
11041
|
+
TraceAssertionsClient,
|
|
11026
11042
|
TracesClient,
|
|
11027
11043
|
__version__,
|
|
11028
11044
|
defineReplayRegistry,
|