bitfab 0.61.6 → 0.62.1
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-2U3XAQZF.js → chunk-5JMVH2V4.js} +6 -6
- package/dist/{chunk-2U3XAQZF.js.map → chunk-5JMVH2V4.js.map} +1 -1
- package/dist/{chunk-DNTAISCO.js → chunk-6R5CAYBA.js} +15 -20
- package/dist/chunk-6R5CAYBA.js.map +1 -0
- package/dist/{chunk-6WNBR7CF.js → chunk-CNGWMZ4B.js} +2 -2
- package/dist/{chunk-6WNBR7CF.js.map → chunk-CNGWMZ4B.js.map} +1 -1
- package/dist/{chunk-SUZDXSQB.js → chunk-TCWLKTWY.js} +2 -2
- package/dist/{chunk-SUZDXSQB.js.map → chunk-TCWLKTWY.js.map} +1 -1
- package/dist/{chunk-5S4PDHH5.js → chunk-ZVP2UTGB.js} +19 -7
- package/dist/chunk-ZVP2UTGB.js.map +1 -0
- package/dist/{http-V7JVDVND.js → http-4Q64Q6YS.js} +2 -2
- package/dist/{http-WI7PHG2H.js → http-V7BFJTGX.js} +2 -2
- package/dist/index.cjs +15 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -34
- package/dist/index.d.ts +2 -34
- package/dist/index.js +3 -3
- package/dist/node.cjs +15 -20
- 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-63P2V2IT.js → replay-SE722WH5.js} +3 -3
- package/dist/replayCli.js +2 -2
- package/dist/seedCli.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-5S4PDHH5.js.map +0 -1
- package/dist/chunk-DNTAISCO.js.map +0 -1
- /package/dist/{http-V7JVDVND.js.map → http-4Q64Q6YS.js.map} +0 -0
- /package/dist/{http-WI7PHG2H.js.map → http-V7BFJTGX.js.map} +0 -0
- /package/dist/{replay-63P2V2IT.js.map → replay-SE722WH5.js.map} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -761,32 +761,6 @@ interface TokenUsage {
|
|
|
761
761
|
cached: number | null;
|
|
762
762
|
total: number | null;
|
|
763
763
|
}
|
|
764
|
-
interface TraceOutlineSpanError {
|
|
765
|
-
source: string;
|
|
766
|
-
error: string;
|
|
767
|
-
step?: string;
|
|
768
|
-
}
|
|
769
|
-
interface TraceOutlineSpan {
|
|
770
|
-
spanId: string;
|
|
771
|
-
name: string | null;
|
|
772
|
-
type: string;
|
|
773
|
-
traceFunctionKey: string | null;
|
|
774
|
-
durationMs: number | null;
|
|
775
|
-
tokens: TokenUsage | null;
|
|
776
|
-
model: string | null;
|
|
777
|
-
errors: TraceOutlineSpanError[] | null;
|
|
778
|
-
mocked: boolean;
|
|
779
|
-
children: TraceOutlineSpan[];
|
|
780
|
-
}
|
|
781
|
-
interface TraceOutline {
|
|
782
|
-
traceId: string;
|
|
783
|
-
name: string | null;
|
|
784
|
-
status: string;
|
|
785
|
-
traceFunctionKey: string | null;
|
|
786
|
-
durationMs: number | null;
|
|
787
|
-
spanCount: number;
|
|
788
|
-
spans: TraceOutlineSpan[];
|
|
789
|
-
}
|
|
790
764
|
/**
|
|
791
765
|
* Describes a single file edited as part of a code change.
|
|
792
766
|
*
|
|
@@ -909,8 +883,6 @@ interface CompleteReplayResponse {
|
|
|
909
883
|
* `ReplayItem.tokens`. Absent on servers that predate this field.
|
|
910
884
|
*/
|
|
911
885
|
tokens?: Record<string, TokenUsage | null>;
|
|
912
|
-
traceOutlines?: Record<string, TraceOutline>;
|
|
913
|
-
originalTraceOutlines?: Record<string, TraceOutline>;
|
|
914
886
|
/**
|
|
915
887
|
* Number of traces the server has persisted for this experiment at
|
|
916
888
|
* completion time. Lets the SDK distinguish "uploads failed" from
|
|
@@ -2298,8 +2270,6 @@ interface ReplayProgressItem {
|
|
|
2298
2270
|
model?: string | null;
|
|
2299
2271
|
dbSnapshotRef?: DbSnapshotRef | null;
|
|
2300
2272
|
dbBranchTimings?: DbBranchTimings | null;
|
|
2301
|
-
traceOutline?: TraceOutline | null;
|
|
2302
|
-
originalTraceOutline?: TraceOutline | null;
|
|
2303
2273
|
}
|
|
2304
2274
|
/**
|
|
2305
2275
|
* @deprecated Use {@link ReplayItemFinishProgress}. This legacy shape also
|
|
@@ -2455,8 +2425,6 @@ interface ReplayItem<T> {
|
|
|
2455
2425
|
* no snapshot ref, or against a server that predates timings.
|
|
2456
2426
|
*/
|
|
2457
2427
|
dbBranchTimings: DbBranchTimings | null;
|
|
2458
|
-
traceOutline: TraceOutline | null;
|
|
2459
|
-
originalTraceOutline: TraceOutline | null;
|
|
2460
2428
|
carriedOver?: boolean;
|
|
2461
2429
|
}
|
|
2462
2430
|
|
|
@@ -3882,7 +3850,7 @@ interface CommitRef {
|
|
|
3882
3850
|
/**
|
|
3883
3851
|
* SDK version from package.json (injected at build time)
|
|
3884
3852
|
*/
|
|
3885
|
-
declare const __version__ = "0.
|
|
3853
|
+
declare const __version__ = "0.62.1";
|
|
3886
3854
|
|
|
3887
3855
|
/**
|
|
3888
3856
|
* Constants for the Bitfab SDK.
|
|
@@ -4021,4 +3989,4 @@ declare function seedFromRegistry(registry: ReplayRegistry, pipeline: string, ca
|
|
|
4021
3989
|
run?: boolean;
|
|
4022
3990
|
}): Promise<SeedResult>;
|
|
4023
3991
|
|
|
4024
|
-
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 AssertionGeneration, AssertionGenerationError, type AssertionGenerationStatus, AssertionGenerationTimeoutError, type AssertionLabelEvidence, type AssertionVerdict, type Assignee, 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 GenerateAssertionsOptions, type GetGraderLabelsParams, type GraderLabel, type GraderLabelSource, type GraderRerun, GraderRerunError, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, GraderRerunTimeoutError, 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 OrganizationMember, OrganizationMembersClient, type ProviderDefinition, type RemoveDatasetGradersResult, type RemoveDatasetTracesResult, ReplayBranch, ReplayError, type ReplayExperiment, type ReplayInterrupt, type ReplayInterruptSignal, type ReplayItem, type ReplayItemFinishProgress, type ReplayItemStartProgress, type ReplayNodeIdentity, 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 SelectiveReplayDecision, type SelectiveReplayOptions, type SelectiveReplayReport, 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
|
|
3992
|
+
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 AssertionGeneration, AssertionGenerationError, type AssertionGenerationStatus, AssertionGenerationTimeoutError, type AssertionLabelEvidence, type AssertionVerdict, type Assignee, 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 GenerateAssertionsOptions, type GetGraderLabelsParams, type GraderLabel, type GraderLabelSource, type GraderRerun, GraderRerunError, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, GraderRerunTimeoutError, 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 OrganizationMember, OrganizationMembersClient, type ProviderDefinition, type RemoveDatasetGradersResult, type RemoveDatasetTracesResult, ReplayBranch, ReplayError, type ReplayExperiment, type ReplayInterrupt, type ReplayInterruptSignal, type ReplayItem, type ReplayItemFinishProgress, type ReplayItemStartProgress, type ReplayNodeIdentity, 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 SelectiveReplayDecision, type SelectiveReplayOptions, type SelectiveReplayReport, 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 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
|
@@ -761,32 +761,6 @@ interface TokenUsage {
|
|
|
761
761
|
cached: number | null;
|
|
762
762
|
total: number | null;
|
|
763
763
|
}
|
|
764
|
-
interface TraceOutlineSpanError {
|
|
765
|
-
source: string;
|
|
766
|
-
error: string;
|
|
767
|
-
step?: string;
|
|
768
|
-
}
|
|
769
|
-
interface TraceOutlineSpan {
|
|
770
|
-
spanId: string;
|
|
771
|
-
name: string | null;
|
|
772
|
-
type: string;
|
|
773
|
-
traceFunctionKey: string | null;
|
|
774
|
-
durationMs: number | null;
|
|
775
|
-
tokens: TokenUsage | null;
|
|
776
|
-
model: string | null;
|
|
777
|
-
errors: TraceOutlineSpanError[] | null;
|
|
778
|
-
mocked: boolean;
|
|
779
|
-
children: TraceOutlineSpan[];
|
|
780
|
-
}
|
|
781
|
-
interface TraceOutline {
|
|
782
|
-
traceId: string;
|
|
783
|
-
name: string | null;
|
|
784
|
-
status: string;
|
|
785
|
-
traceFunctionKey: string | null;
|
|
786
|
-
durationMs: number | null;
|
|
787
|
-
spanCount: number;
|
|
788
|
-
spans: TraceOutlineSpan[];
|
|
789
|
-
}
|
|
790
764
|
/**
|
|
791
765
|
* Describes a single file edited as part of a code change.
|
|
792
766
|
*
|
|
@@ -909,8 +883,6 @@ interface CompleteReplayResponse {
|
|
|
909
883
|
* `ReplayItem.tokens`. Absent on servers that predate this field.
|
|
910
884
|
*/
|
|
911
885
|
tokens?: Record<string, TokenUsage | null>;
|
|
912
|
-
traceOutlines?: Record<string, TraceOutline>;
|
|
913
|
-
originalTraceOutlines?: Record<string, TraceOutline>;
|
|
914
886
|
/**
|
|
915
887
|
* Number of traces the server has persisted for this experiment at
|
|
916
888
|
* completion time. Lets the SDK distinguish "uploads failed" from
|
|
@@ -2298,8 +2270,6 @@ interface ReplayProgressItem {
|
|
|
2298
2270
|
model?: string | null;
|
|
2299
2271
|
dbSnapshotRef?: DbSnapshotRef | null;
|
|
2300
2272
|
dbBranchTimings?: DbBranchTimings | null;
|
|
2301
|
-
traceOutline?: TraceOutline | null;
|
|
2302
|
-
originalTraceOutline?: TraceOutline | null;
|
|
2303
2273
|
}
|
|
2304
2274
|
/**
|
|
2305
2275
|
* @deprecated Use {@link ReplayItemFinishProgress}. This legacy shape also
|
|
@@ -2455,8 +2425,6 @@ interface ReplayItem<T> {
|
|
|
2455
2425
|
* no snapshot ref, or against a server that predates timings.
|
|
2456
2426
|
*/
|
|
2457
2427
|
dbBranchTimings: DbBranchTimings | null;
|
|
2458
|
-
traceOutline: TraceOutline | null;
|
|
2459
|
-
originalTraceOutline: TraceOutline | null;
|
|
2460
2428
|
carriedOver?: boolean;
|
|
2461
2429
|
}
|
|
2462
2430
|
|
|
@@ -3882,7 +3850,7 @@ interface CommitRef {
|
|
|
3882
3850
|
/**
|
|
3883
3851
|
* SDK version from package.json (injected at build time)
|
|
3884
3852
|
*/
|
|
3885
|
-
declare const __version__ = "0.
|
|
3853
|
+
declare const __version__ = "0.62.1";
|
|
3886
3854
|
|
|
3887
3855
|
/**
|
|
3888
3856
|
* Constants for the Bitfab SDK.
|
|
@@ -4021,4 +3989,4 @@ declare function seedFromRegistry(registry: ReplayRegistry, pipeline: string, ca
|
|
|
4021
3989
|
run?: boolean;
|
|
4022
3990
|
}): Promise<SeedResult>;
|
|
4023
3991
|
|
|
4024
|
-
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 AssertionGeneration, AssertionGenerationError, type AssertionGenerationStatus, AssertionGenerationTimeoutError, type AssertionLabelEvidence, type AssertionVerdict, type Assignee, 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 GenerateAssertionsOptions, type GetGraderLabelsParams, type GraderLabel, type GraderLabelSource, type GraderRerun, GraderRerunError, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, GraderRerunTimeoutError, 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 OrganizationMember, OrganizationMembersClient, type ProviderDefinition, type RemoveDatasetGradersResult, type RemoveDatasetTracesResult, ReplayBranch, ReplayError, type ReplayExperiment, type ReplayInterrupt, type ReplayInterruptSignal, type ReplayItem, type ReplayItemFinishProgress, type ReplayItemStartProgress, type ReplayNodeIdentity, 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 SelectiveReplayDecision, type SelectiveReplayOptions, type SelectiveReplayReport, 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
|
|
3992
|
+
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 AssertionGeneration, AssertionGenerationError, type AssertionGenerationStatus, AssertionGenerationTimeoutError, type AssertionLabelEvidence, type AssertionVerdict, type Assignee, 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 GenerateAssertionsOptions, type GetGraderLabelsParams, type GraderLabel, type GraderLabelSource, type GraderRerun, GraderRerunError, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, GraderRerunTimeoutError, 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 OrganizationMember, OrganizationMembersClient, type ProviderDefinition, type RemoveDatasetGradersResult, type RemoveDatasetTracesResult, ReplayBranch, ReplayError, type ReplayExperiment, type ReplayInterrupt, type ReplayInterruptSignal, type ReplayItem, type ReplayItemFinishProgress, type ReplayItemStartProgress, type ReplayNodeIdentity, 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 SelectiveReplayDecision, type SelectiveReplayOptions, type SelectiveReplayReport, 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 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
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
getCurrentTrace,
|
|
36
36
|
reseedFromRegistry,
|
|
37
37
|
seedFromRegistry
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-5JMVH2V4.js";
|
|
39
39
|
import "./chunk-K4XCWQBC.js";
|
|
40
40
|
import {
|
|
41
41
|
BITFAB_PROGRESS_PREFIX,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
ReplayError,
|
|
45
45
|
reportReplayProgress,
|
|
46
46
|
serializeReplayResult
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-6R5CAYBA.js";
|
|
48
48
|
import {
|
|
49
49
|
BitfabError,
|
|
50
50
|
DEFAULT_SERVICE_URL,
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
MixedTracingError,
|
|
53
53
|
__version__,
|
|
54
54
|
flushTraces
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-CNGWMZ4B.js";
|
|
56
56
|
import "./chunk-BAOIRE5T.js";
|
|
57
57
|
export {
|
|
58
58
|
AssertionCategoriesClient,
|
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.
|
|
100
|
+
__version__ = "0.62.1";
|
|
101
101
|
__packageName__ = "bitfab";
|
|
102
102
|
}
|
|
103
103
|
});
|
|
@@ -3713,12 +3713,13 @@ function installReplayInterruptHandlers(target) {
|
|
|
3713
3713
|
const removeHandlers = () => {
|
|
3714
3714
|
for (const [signal, handler] of handlers) {
|
|
3715
3715
|
host.removeListener(signal, handler);
|
|
3716
|
+
replayListeners.delete(handler);
|
|
3716
3717
|
}
|
|
3717
3718
|
handlers.clear();
|
|
3718
3719
|
};
|
|
3719
3720
|
let interrupting = false;
|
|
3720
3721
|
const handleSignal = async (signal) => {
|
|
3721
|
-
const hostHandlesSignal = host.
|
|
3722
|
+
const hostHandlesSignal = host.listeners(signal).some((listener) => !replayListeners.has(listener));
|
|
3722
3723
|
const markedInterrupted = await target.interrupt();
|
|
3723
3724
|
removeHandlers();
|
|
3724
3725
|
if (target.onInterrupt !== void 0) {
|
|
@@ -3747,11 +3748,12 @@ function installReplayInterruptHandlers(target) {
|
|
|
3747
3748
|
void handleSignal(signal);
|
|
3748
3749
|
};
|
|
3749
3750
|
handlers.set(signal, handler);
|
|
3751
|
+
replayListeners.add(handler);
|
|
3750
3752
|
host.on(signal, handler);
|
|
3751
3753
|
}
|
|
3752
3754
|
return { remove: removeHandlers, interrupted: () => interrupting };
|
|
3753
3755
|
}
|
|
3754
|
-
var REPLAY_INTERRUPT_SIGNALS;
|
|
3756
|
+
var REPLAY_INTERRUPT_SIGNALS, replayListeners;
|
|
3755
3757
|
var init_replayInterrupt = __esm({
|
|
3756
3758
|
"src/replayInterrupt.ts"() {
|
|
3757
3759
|
"use strict";
|
|
@@ -3759,6 +3761,7 @@ var init_replayInterrupt = __esm({
|
|
|
3759
3761
|
"SIGINT",
|
|
3760
3762
|
"SIGTERM"
|
|
3761
3763
|
];
|
|
3764
|
+
replayListeners = /* @__PURE__ */ new Set();
|
|
3762
3765
|
}
|
|
3763
3766
|
});
|
|
3764
3767
|
|
|
@@ -4143,8 +4146,6 @@ function carriedOverReplayItem(finished) {
|
|
|
4143
4146
|
model: null,
|
|
4144
4147
|
dbSnapshotRef: null,
|
|
4145
4148
|
dbBranchTimings: null,
|
|
4146
|
-
traceOutline: null,
|
|
4147
|
-
originalTraceOutline: null,
|
|
4148
4149
|
carriedOver: true
|
|
4149
4150
|
};
|
|
4150
4151
|
}
|
|
@@ -4437,9 +4438,7 @@ async function processItem(httpClient, serverItem, fn, experimentId, mockStrateg
|
|
|
4437
4438
|
tokens: null,
|
|
4438
4439
|
model: serverItem.originalModel ?? serverItem.model ?? null,
|
|
4439
4440
|
dbSnapshotRef: dbSnapshotRef ?? null,
|
|
4440
|
-
dbBranchTimings: dbBranchTimings ?? null
|
|
4441
|
-
traceOutline: null,
|
|
4442
|
-
originalTraceOutline: null
|
|
4441
|
+
dbBranchTimings: dbBranchTimings ?? null
|
|
4443
4442
|
};
|
|
4444
4443
|
}
|
|
4445
4444
|
try {
|
|
@@ -4527,9 +4526,7 @@ async function processItem(httpClient, serverItem, fn, experimentId, mockStrateg
|
|
|
4527
4526
|
tokens: null,
|
|
4528
4527
|
model: originalModel,
|
|
4529
4528
|
dbSnapshotRef: dbSnapshotRef ?? null,
|
|
4530
|
-
dbBranchTimings: dbBranchTimings ?? null
|
|
4531
|
-
traceOutline: null,
|
|
4532
|
-
originalTraceOutline: null
|
|
4529
|
+
dbBranchTimings: dbBranchTimings ?? null
|
|
4533
4530
|
};
|
|
4534
4531
|
}
|
|
4535
4532
|
async function waitForReplayPersistence(httpClient, experimentId, replayedTraceIds) {
|
|
@@ -4596,11 +4593,11 @@ function sleepForReplayPersistence(ms) {
|
|
|
4596
4593
|
setTimeout(resolve, ms);
|
|
4597
4594
|
});
|
|
4598
4595
|
}
|
|
4599
|
-
async function mapWithConcurrency2(tasks, maxConcurrency, onSettled, onStarted) {
|
|
4596
|
+
async function mapWithConcurrency2(tasks, maxConcurrency, onSettled, onStarted, shouldStop) {
|
|
4600
4597
|
const results = new Array(tasks.length);
|
|
4601
4598
|
let nextIndex = 0;
|
|
4602
4599
|
async function worker() {
|
|
4603
|
-
while (nextIndex < tasks.length) {
|
|
4600
|
+
while (nextIndex < tasks.length && shouldStop?.() !== true) {
|
|
4604
4601
|
const index = nextIndex++;
|
|
4605
4602
|
onStarted?.(index);
|
|
4606
4603
|
const result = await tasks[index]();
|
|
@@ -4613,7 +4610,7 @@ async function mapWithConcurrency2(tasks, maxConcurrency, onSettled, onStarted)
|
|
|
4613
4610
|
() => worker()
|
|
4614
4611
|
);
|
|
4615
4612
|
await Promise.all(workers);
|
|
4616
|
-
return results;
|
|
4613
|
+
return results.slice(0, nextIndex);
|
|
4617
4614
|
}
|
|
4618
4615
|
async function replay(httpClient, serviceUrl, traceFunctionKey, fn, options, registeredOverrides = []) {
|
|
4619
4616
|
if (options?.resume !== void 0) {
|
|
@@ -4897,9 +4894,7 @@ async function runReplaySession(httpClient, fn, session, fullExperimentUrl, maxC
|
|
|
4897
4894
|
tokens: item.tokens,
|
|
4898
4895
|
model: item.model,
|
|
4899
4896
|
dbSnapshotRef: item.dbSnapshotRef,
|
|
4900
|
-
dbBranchTimings: item.dbBranchTimings
|
|
4901
|
-
traceOutline: item.traceOutline,
|
|
4902
|
-
originalTraceOutline: item.originalTraceOutline
|
|
4897
|
+
dbBranchTimings: item.dbBranchTimings
|
|
4903
4898
|
}
|
|
4904
4899
|
});
|
|
4905
4900
|
} catch {
|
|
@@ -4930,9 +4925,11 @@ async function runReplaySession(httpClient, fn, session, fullExperimentUrl, maxC
|
|
|
4930
4925
|
});
|
|
4931
4926
|
} catch {
|
|
4932
4927
|
}
|
|
4933
|
-
} : void 0
|
|
4928
|
+
} : void 0,
|
|
4929
|
+
interrupted
|
|
4934
4930
|
);
|
|
4935
4931
|
const resultItems = [...carriedOverItems, ...ranItems];
|
|
4932
|
+
throwIfInterrupted(interrupted, resultItems, experimentId, fullExperimentUrl);
|
|
4936
4933
|
if (options?.dryRun === true) {
|
|
4937
4934
|
throwIfInterrupted(
|
|
4938
4935
|
interrupted,
|
|
@@ -4994,9 +4991,7 @@ async function runReplaySession(httpClient, fn, session, fullExperimentUrl, maxC
|
|
|
4994
4991
|
}
|
|
4995
4992
|
if (mapped !== void 0) {
|
|
4996
4993
|
item.tokens = replayTokens?.[mapped] ?? null;
|
|
4997
|
-
item.traceOutline = completeResult.traceOutlines?.[mapped] ?? null;
|
|
4998
4994
|
}
|
|
4999
|
-
item.originalTraceOutline = completeResult.originalTraceOutlines?.[item.originalTraceId] ?? null;
|
|
5000
4995
|
}
|
|
5001
4996
|
if (completedCount > 0 && missing.length === completedCount) {
|
|
5002
4997
|
const serverCount = completeResult.traceCount !== void 0 ? ` The server persisted ${completeResult.traceCount} trace(s) for this run.` : "";
|