bitfab 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-DAXBPYIY.js → chunk-255I4PN4.js} +2 -2
- package/dist/{chunk-DAXBPYIY.js.map → chunk-255I4PN4.js.map} +1 -1
- package/dist/{chunk-PIZHUBJD.js → chunk-I5EG523G.js} +3 -3
- package/dist/{chunk-FWTA2X72.js → chunk-VPZ2LTU6.js} +2 -2
- package/dist/{chunk-KYLLSZLE.js → chunk-WYNN6NY2.js} +2 -2
- package/dist/{chunk-KYLLSZLE.js.map → chunk-WYNN6NY2.js.map} +1 -1
- package/dist/{chunk-JRGN2HRU.js → chunk-YO3HKQX6.js} +21 -18
- package/dist/chunk-YO3HKQX6.js.map +1 -0
- package/dist/{http-K2YSJIIQ.js → http-CHXMOVLK.js} +2 -2
- package/dist/{http-OV5C6DVP.js → http-FQ76VRFF.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-XMOWRAMM.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-JRGN2HRU.js.map +0 -1
- /package/dist/{chunk-PIZHUBJD.js.map → chunk-I5EG523G.js.map} +0 -0
- /package/dist/{chunk-FWTA2X72.js.map → chunk-VPZ2LTU6.js.map} +0 -0
- /package/dist/{http-K2YSJIIQ.js.map → http-CHXMOVLK.js.map} +0 -0
- /package/dist/{http-OV5C6DVP.js.map → http-FQ76VRFF.js.map} +0 -0
- /package/dist/{replay-XMOWRAMM.js.map → replay-CHM7OQ25.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
|
@@ -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,
|
|
@@ -6001,7 +6002,6 @@ init_http();
|
|
|
6001
6002
|
// src/labels.ts
|
|
6002
6003
|
var LABELS_PATH = "/api/sdk/traces/labels";
|
|
6003
6004
|
var HUMAN_LABELS_PATH = "/api/sdk/traces/labels/human";
|
|
6004
|
-
var LABEL_EVIDENCE_PATH = "/api/sdk/traces/labels/label-evidence";
|
|
6005
6005
|
var LabelsClient = class {
|
|
6006
6006
|
constructor(httpClient) {
|
|
6007
6007
|
this.httpClient = httpClient;
|
|
@@ -6050,17 +6050,6 @@ var LabelsClient = class {
|
|
|
6050
6050
|
);
|
|
6051
6051
|
return response.labels;
|
|
6052
6052
|
}
|
|
6053
|
-
/** Suggest evidence for a whole-trace or assertion label. Currently returns an empty list. */
|
|
6054
|
-
async getLabelEvidence(traceId, assertionId) {
|
|
6055
|
-
const query = new URLSearchParams({ traceId });
|
|
6056
|
-
if (assertionId !== void 0) {
|
|
6057
|
-
query.set("assertionId", assertionId);
|
|
6058
|
-
}
|
|
6059
|
-
const response = await this.httpClient.get(
|
|
6060
|
-
`${LABEL_EVIDENCE_PATH}?${query.toString()}`
|
|
6061
|
-
);
|
|
6062
|
-
return response.evidence;
|
|
6063
|
-
}
|
|
6064
6053
|
};
|
|
6065
6054
|
|
|
6066
6055
|
// src/langgraph.ts
|
|
@@ -7775,9 +7764,23 @@ var SEARCH_PATH = "/api/sdk/traces/search";
|
|
|
7775
7764
|
function traceAssertionsPath(traceId, suffix = "") {
|
|
7776
7765
|
return `/api/sdk/traces/${encodeURIComponent(traceId)}/assertions${suffix}`;
|
|
7777
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
|
+
};
|
|
7778
7780
|
var TracesClient = class {
|
|
7779
7781
|
constructor(httpClient) {
|
|
7780
7782
|
this.httpClient = httpClient;
|
|
7783
|
+
this.assertions = new TraceAssertionsClient(httpClient);
|
|
7781
7784
|
}
|
|
7782
7785
|
async search(params) {
|
|
7783
7786
|
return this.httpClient.request(SEARCH_PATH, params);
|
|
@@ -11035,6 +11038,7 @@ assertAsyncStorageRegistered();
|
|
|
11035
11038
|
NO_MOCK_OVERRIDE,
|
|
11036
11039
|
ReplayError,
|
|
11037
11040
|
SUPPORTED_PROVIDERS,
|
|
11041
|
+
TraceAssertionsClient,
|
|
11038
11042
|
TracesClient,
|
|
11039
11043
|
__version__,
|
|
11040
11044
|
defineReplayRegistry,
|