@bitfab/sdk 0.57.4 → 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-Z7WSB7TF.js → chunk-2ZPZUOD6.js} +2 -2
- package/dist/{chunk-Z7WSB7TF.js.map → chunk-2ZPZUOD6.js.map} +1 -1
- package/dist/{chunk-4Z3VI3KK.js → chunk-4R5G55MG.js} +21 -18
- package/dist/chunk-4R5G55MG.js.map +1 -0
- package/dist/{chunk-TK5APEET.js → chunk-7KY75E3I.js} +3 -3
- package/dist/{chunk-TN4YJM7E.js → chunk-AMILC6CQ.js} +2 -2
- package/dist/{chunk-7V4LTGW3.js → chunk-NK25R6UX.js} +2 -2
- package/dist/{chunk-7V4LTGW3.js.map → chunk-NK25R6UX.js.map} +1 -1
- package/dist/{http-TU5OTMRW.js → http-MKYC373Q.js} +2 -2
- package/dist/{http-YGPWUBNY.js → http-N62YN7QQ.js} +2 -2
- package/dist/index.cjs +17 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +21 -4
- package/dist/index.d.ts +21 -4
- package/dist/index.js +5 -3
- package/dist/node.cjs +17 -13
- 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-PKLSEPEN.js → replay-4IVG6F7L.js} +3 -3
- package/dist/replayCli.js +2 -2
- package/dist/seedCli.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-4Z3VI3KK.js.map +0 -1
- /package/dist/{chunk-TK5APEET.js.map → chunk-7KY75E3I.js.map} +0 -0
- /package/dist/{chunk-TN4YJM7E.js.map → chunk-AMILC6CQ.js.map} +0 -0
- /package/dist/{http-TU5OTMRW.js.map → http-MKYC373Q.js.map} +0 -0
- /package/dist/{http-YGPWUBNY.js.map → http-N62YN7QQ.js.map} +0 -0
- /package/dist/{replay-PKLSEPEN.js.map → replay-4IVG6F7L.js.map} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -1383,8 +1383,6 @@ declare class LabelsClient {
|
|
|
1383
1383
|
saveHumanAll(updates: HumanLabelUpdate[]): Promise<HumanLabelOutcome[]>;
|
|
1384
1384
|
get(traceId: string): Promise<TraceLabels | null>;
|
|
1385
1385
|
getAll(traceIds: string[]): Promise<TraceLabels[]>;
|
|
1386
|
-
/** Suggest evidence for a whole-trace or assertion label. Currently returns an empty list. */
|
|
1387
|
-
getLabelEvidence(traceId: string, assertionId?: string): Promise<Justification>;
|
|
1388
1386
|
}
|
|
1389
1387
|
|
|
1390
1388
|
type GraderLabelSource = "human" | "live_grader";
|
|
@@ -2351,6 +2349,18 @@ type TraceAssertion = {
|
|
|
2351
2349
|
createdAt: string;
|
|
2352
2350
|
updatedAt: string;
|
|
2353
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
|
+
};
|
|
2354
2364
|
type SaveAssertion = {
|
|
2355
2365
|
/** Omit to preserve the category, or pass null to clear it. */
|
|
2356
2366
|
category_assertion_id?: string | null;
|
|
@@ -2391,8 +2401,15 @@ type ArchiveAssertionsParams = {
|
|
|
2391
2401
|
traceId: string;
|
|
2392
2402
|
assertionIds: string[];
|
|
2393
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
|
+
}
|
|
2394
2410
|
declare class TracesClient {
|
|
2395
2411
|
private readonly httpClient;
|
|
2412
|
+
readonly assertions: TraceAssertionsClient;
|
|
2396
2413
|
constructor(httpClient: HttpClient);
|
|
2397
2414
|
search(params: TraceSearchParams): Promise<TraceSearchResult>;
|
|
2398
2415
|
getAssertions(traceId: string): Promise<TraceAssertionsResult>;
|
|
@@ -3610,7 +3627,7 @@ interface CommitRef {
|
|
|
3610
3627
|
/**
|
|
3611
3628
|
* SDK version from package.json (injected at build time)
|
|
3612
3629
|
*/
|
|
3613
|
-
declare const __version__ = "0.57.
|
|
3630
|
+
declare const __version__ = "0.57.5";
|
|
3614
3631
|
|
|
3615
3632
|
/**
|
|
3616
3633
|
* Constants for the Bitfab SDK.
|
|
@@ -3749,4 +3766,4 @@ declare function seedFromRegistry(registry: ReplayRegistry, pipeline: string, ca
|
|
|
3749
3766
|
run?: boolean;
|
|
3750
3767
|
}): Promise<SeedResult>;
|
|
3751
3768
|
|
|
3752
|
-
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
|
@@ -1383,8 +1383,6 @@ declare class LabelsClient {
|
|
|
1383
1383
|
saveHumanAll(updates: HumanLabelUpdate[]): Promise<HumanLabelOutcome[]>;
|
|
1384
1384
|
get(traceId: string): Promise<TraceLabels | null>;
|
|
1385
1385
|
getAll(traceIds: string[]): Promise<TraceLabels[]>;
|
|
1386
|
-
/** Suggest evidence for a whole-trace or assertion label. Currently returns an empty list. */
|
|
1387
|
-
getLabelEvidence(traceId: string, assertionId?: string): Promise<Justification>;
|
|
1388
1386
|
}
|
|
1389
1387
|
|
|
1390
1388
|
type GraderLabelSource = "human" | "live_grader";
|
|
@@ -2351,6 +2349,18 @@ type TraceAssertion = {
|
|
|
2351
2349
|
createdAt: string;
|
|
2352
2350
|
updatedAt: string;
|
|
2353
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
|
+
};
|
|
2354
2364
|
type SaveAssertion = {
|
|
2355
2365
|
/** Omit to preserve the category, or pass null to clear it. */
|
|
2356
2366
|
category_assertion_id?: string | null;
|
|
@@ -2391,8 +2401,15 @@ type ArchiveAssertionsParams = {
|
|
|
2391
2401
|
traceId: string;
|
|
2392
2402
|
assertionIds: string[];
|
|
2393
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
|
+
}
|
|
2394
2410
|
declare class TracesClient {
|
|
2395
2411
|
private readonly httpClient;
|
|
2412
|
+
readonly assertions: TraceAssertionsClient;
|
|
2396
2413
|
constructor(httpClient: HttpClient);
|
|
2397
2414
|
search(params: TraceSearchParams): Promise<TraceSearchResult>;
|
|
2398
2415
|
getAssertions(traceId: string): Promise<TraceAssertionsResult>;
|
|
@@ -3610,7 +3627,7 @@ interface CommitRef {
|
|
|
3610
3627
|
/**
|
|
3611
3628
|
* SDK version from package.json (injected at build time)
|
|
3612
3629
|
*/
|
|
3613
|
-
declare const __version__ = "0.57.
|
|
3630
|
+
declare const __version__ = "0.57.5";
|
|
3614
3631
|
|
|
3615
3632
|
/**
|
|
3616
3633
|
* Constants for the Bitfab SDK.
|
|
@@ -3749,4 +3766,4 @@ declare function seedFromRegistry(registry: ReplayRegistry, pipeline: string, ca
|
|
|
3749
3766
|
run?: boolean;
|
|
3750
3767
|
}): Promise<SeedResult>;
|
|
3751
3768
|
|
|
3752
|
-
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
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
GradersClient,
|
|
14
14
|
LabelsClient,
|
|
15
15
|
SUPPORTED_PROVIDERS,
|
|
16
|
+
TraceAssertionsClient,
|
|
16
17
|
TracesClient,
|
|
17
18
|
defineReplayRegistry,
|
|
18
19
|
finalizers,
|
|
@@ -21,7 +22,7 @@ import {
|
|
|
21
22
|
getCurrentTrace,
|
|
22
23
|
reseedFromRegistry,
|
|
23
24
|
seedFromRegistry
|
|
24
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-4R5G55MG.js";
|
|
25
26
|
import "./chunk-RCHSYWKI.js";
|
|
26
27
|
import {
|
|
27
28
|
BITFAB_PROGRESS_PREFIX,
|
|
@@ -30,7 +31,7 @@ import {
|
|
|
30
31
|
ReplayError,
|
|
31
32
|
reportReplayProgress,
|
|
32
33
|
serializeReplayResult
|
|
33
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-AMILC6CQ.js";
|
|
34
35
|
import {
|
|
35
36
|
BitfabError,
|
|
36
37
|
DEFAULT_SERVICE_URL,
|
|
@@ -38,7 +39,7 @@ import {
|
|
|
38
39
|
MixedTracingError,
|
|
39
40
|
__version__,
|
|
40
41
|
flushTraces
|
|
41
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-NK25R6UX.js";
|
|
42
43
|
import "./chunk-VCRFFCLY.js";
|
|
43
44
|
export {
|
|
44
45
|
AssertionCategoriesClient,
|
|
@@ -64,6 +65,7 @@ export {
|
|
|
64
65
|
NO_MOCK_OVERRIDE,
|
|
65
66
|
ReplayError,
|
|
66
67
|
SUPPORTED_PROVIDERS,
|
|
68
|
+
TraceAssertionsClient,
|
|
67
69
|
TracesClient,
|
|
68
70
|
__version__,
|
|
69
71
|
defineReplayRegistry,
|
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.57.
|
|
91
|
+
__version__ = "0.57.5";
|
|
92
92
|
__packageName__ = "@bitfab/sdk";
|
|
93
93
|
}
|
|
94
94
|
});
|
|
@@ -4389,6 +4389,7 @@ __export(node_exports, {
|
|
|
4389
4389
|
NO_MOCK_OVERRIDE: () => NO_MOCK_OVERRIDE,
|
|
4390
4390
|
ReplayError: () => ReplayError,
|
|
4391
4391
|
SUPPORTED_PROVIDERS: () => SUPPORTED_PROVIDERS,
|
|
4392
|
+
TraceAssertionsClient: () => TraceAssertionsClient,
|
|
4392
4393
|
TracesClient: () => TracesClient,
|
|
4393
4394
|
__version__: () => __version__,
|
|
4394
4395
|
defineReplayRegistry: () => defineReplayRegistry,
|
|
@@ -5992,7 +5993,6 @@ init_http();
|
|
|
5992
5993
|
// src/labels.ts
|
|
5993
5994
|
var LABELS_PATH = "/api/sdk/traces/labels";
|
|
5994
5995
|
var HUMAN_LABELS_PATH = "/api/sdk/traces/labels/human";
|
|
5995
|
-
var LABEL_EVIDENCE_PATH = "/api/sdk/traces/labels/label-evidence";
|
|
5996
5996
|
var LabelsClient = class {
|
|
5997
5997
|
constructor(httpClient) {
|
|
5998
5998
|
this.httpClient = httpClient;
|
|
@@ -6041,17 +6041,6 @@ var LabelsClient = class {
|
|
|
6041
6041
|
);
|
|
6042
6042
|
return response.labels;
|
|
6043
6043
|
}
|
|
6044
|
-
/** Suggest evidence for a whole-trace or assertion label. Currently returns an empty list. */
|
|
6045
|
-
async getLabelEvidence(traceId, assertionId) {
|
|
6046
|
-
const query = new URLSearchParams({ traceId });
|
|
6047
|
-
if (assertionId !== void 0) {
|
|
6048
|
-
query.set("assertionId", assertionId);
|
|
6049
|
-
}
|
|
6050
|
-
const response = await this.httpClient.get(
|
|
6051
|
-
`${LABEL_EVIDENCE_PATH}?${query.toString()}`
|
|
6052
|
-
);
|
|
6053
|
-
return response.evidence;
|
|
6054
|
-
}
|
|
6055
6044
|
};
|
|
6056
6045
|
|
|
6057
6046
|
// src/langgraph.ts
|
|
@@ -7766,9 +7755,23 @@ var SEARCH_PATH = "/api/sdk/traces/search";
|
|
|
7766
7755
|
function traceAssertionsPath(traceId, suffix = "") {
|
|
7767
7756
|
return `/api/sdk/traces/${encodeURIComponent(traceId)}/assertions${suffix}`;
|
|
7768
7757
|
}
|
|
7758
|
+
function assertionEvidencePath(assertionId) {
|
|
7759
|
+
return `/api/sdk/traces/assertions/${encodeURIComponent(assertionId)}/evidence`;
|
|
7760
|
+
}
|
|
7761
|
+
var TraceAssertionsClient = class {
|
|
7762
|
+
constructor(httpClient) {
|
|
7763
|
+
this.httpClient = httpClient;
|
|
7764
|
+
}
|
|
7765
|
+
/** Suggest evidence for an assertion, enriched with its span context. */
|
|
7766
|
+
async getAssertionEvidence(assertionId) {
|
|
7767
|
+
const response = await this.httpClient.get(assertionEvidencePath(assertionId));
|
|
7768
|
+
return response.evidence;
|
|
7769
|
+
}
|
|
7770
|
+
};
|
|
7769
7771
|
var TracesClient = class {
|
|
7770
7772
|
constructor(httpClient) {
|
|
7771
7773
|
this.httpClient = httpClient;
|
|
7774
|
+
this.assertions = new TraceAssertionsClient(httpClient);
|
|
7772
7775
|
}
|
|
7773
7776
|
async search(params) {
|
|
7774
7777
|
return this.httpClient.request(SEARCH_PATH, params);
|
|
@@ -11026,6 +11029,7 @@ assertAsyncStorageRegistered();
|
|
|
11026
11029
|
NO_MOCK_OVERRIDE,
|
|
11027
11030
|
ReplayError,
|
|
11028
11031
|
SUPPORTED_PROVIDERS,
|
|
11032
|
+
TraceAssertionsClient,
|
|
11029
11033
|
TracesClient,
|
|
11030
11034
|
__version__,
|
|
11031
11035
|
defineReplayRegistry,
|