@bitfab/sdk 0.68.11 → 0.70.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/node.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as RivetEffectType, $n as TraceSearchParams, $r as HttpClient, $t as LabelSource, A as SpanMethodDecoratorContext, Ai as Assignee, An as SaveScenarioActualOutcome, Ar as RemoveDatasetGradersResult, At as LangGraphIntegrationOptions, B as getCurrentTrace, Bn as ScenarioDataOrigin, Br as VercelGenerateResult, Bt as GraderVerdictSource, C as NodeMethodDecorator, Ci as SelectiveReplayReport, Cn as AssertionRewrite, Cr as GraderRerun, Ct as PiIntegrationOptions, D as SeedCaseOptions, Di as ApprovalFields, Dn as SaveAssertion, Dr as GraderRerunStatus, Dt as BitfabAgentMiddleware, E as ReseedResult, Ei as ProviderDefinition, En as GenerateAssertionsOptions, Er as GraderRerunResult, Et as BitfabOpenAIAgentHandler, F as WrapOpenAIResponsesOptions, Fn as Scenario, Fr as SaveDatasetResult, Ft as GraderLabelOutcome, G as TracingProcessor, Gn as ScenarioRecordInput, Gr as AssertionCategorySummary, Gt as AssertionVerdict, H as ActiveSpanContext, Hn as ScenarioGeneration, Hr as BitfabClaudeAgentHandler, Ht as GradersClient, I as WrapOpenRouterOptions, In as ScenarioAction, Ir as UpdateDatasetParams, It as GraderLabelSource, J as SpanListParams, Jn as TraceAssertion, Jr as CategorySummary, Jt as HumanVerdictOutcome, K as ListedSpan, Kn as ScenarioSource, Kr as CategoriesClient, Kt as HumanLabelOutcome, L as WrappedBamlFn, Ln as ScenarioActualOutcome, Lr as BitfabLanguageModelMiddleware, Lt as GraderLabelUpdate, M as WrapAnthropicOptions, Mi as JustificationSpan, Mn as SaveScenarioHistoryEntry, Mr as RerunGradersOptions, Mt as GetGraderLabelsParams, N as WrapBAMLOptions, Nn as SaveScenarioParams, Nr as RerunGradersResult, Nt as GetGraderVerdictsParams, O as SeedRunOptions, Oi as ApprovalState, On as SaveAssertionsAllParams, Or as GraderRerunTimeoutError, Ot as BitfabLangGraphAgent, P as WrapJevOptions, Pn as SavedTraceAssertion, Pr as SaveDatasetParams, Pt as GraderLabel, Q as RivetContextLike, Qn as TraceSearchFilters, Qr as CodeChangeFile, Qt as LabelOutcome, R as getCurrentReplayBranch, Rn as ScenarioData, Rr as BitfabVercelAiHandler, Rt as GraderVerdict, S as DetachedTrace, Si as SelectiveReplayOptions, Sn as AssertionLabelEvidence, Sr as DatasetsClient, St as BitfabPiIntegration, T as ReseedOptions, Ti as BamlExecutionResult, Tn as AssertionVerdictEvidence, Tr as GraderRerunProgress, Tt as OrganizationMembersClient, U as BitfabOpenAITracingProcessor, Un as ScenarioHistoryEntry, Ur as AssertionCategoriesClient, Ut as ArchiveLabelTarget, V as CaptureSurface, Vn as ScenarioDataSources, Vr as VercelStreamResult, Vt as GraderVerdictUpdate, W as TraceResponse, Wn as ScenarioRecord, Wr as AssertionCategory, Wt as ArchiveVerdictTarget, X as SpansClient, Xn as TraceAssertionsResult, Xr as SaveCategoryParams, Xt as LabelAction, Y as SpanListResult, Yn as TraceAssertionSource, Yr as SaveAssertionCategoryParams, Yt as HumanVerdictUpdate, Z as BitfabRivetIntegration, Zn as TraceAssertionsUpdate, Zr as CapturedSpan, Zt as LabelConfidence, _ as BitfabConfig, _i as DbSnapshotProvider, _n as AssertionEvidenceParameter, _r as AddDatasetGradersResult, _t as TraceIngestionType, a as ReplayRegistryOptions, ai as DbBranchTimings, an as TraceLabels, ar as ExperimentCategoryTally, at as DbBranchOptions, b as CurrentSpan, bi as ReplayNodeIdentity, bn as AssertionGenerationStatus, br as DatasetGraderRef, bt as ReplayInterrupt, c as SeedResult, ci as MockOverrideInput, cn as VerdictAction, cr as ExperimentPage, ct as ReplayError, d as seedFromRegistry, di as NO_MOCK_OVERRIDE, dn as VerdictSource, dr as ExperimentRunBy, dt as ReplayItemFinishProgress, ei as SpanLookup, en as LabelStatus, er as TraceSearchResult, et as RivetIntegrationOptions, f as finalizers, fi as NodeMatcher, fn as VerdictStatus, fr as ExperimentStatus, ft as ReplayItemStartProgress, g as Bitfab, gi as DbSnapshotConfig, gn as ArchiveAssertionsParams, gr as ListExperimentsParams, gt as ReplayResult, h as CommitRef, hi as MixedTracingError, hn as VerdictsClient, hr as ExperimentsClient, ht as ReplayProgressItem, i as ReplayRegistryContext, ii as flushTraces, in as PassFailVerdict, ir as Experiment, it as BITFAB_PROGRESS_PREFIX, j as SpanOptions, ji as Justification, jn as SaveScenarioData, jr as RemoveDatasetTracesResult, jt as BitfabLangGraphCallbackHandler, k as SpanMethodDecorator, ki as Approver, kn as SaveAssertionsParams, kr as ListDatasetsParams, kt as BitfabLangGraphIntegration, l as defineReplayRegistry, li as MockOverrideResolver, ln as VerdictConfidence, lr as ExperimentRollup, lt as ReplayExperiment, m as __version__, mi as BitfabError, mn as VerdictUpdate, mr as ExperimentTotals, mt as ReplayProgress, n as ReplayRegistration, ni as SpanType, nn as LabelUpdate, nr as TraceTargetOccurrence, nt as AdaptContext, o as ReseedRegistryResult, oi as MockOverride, on as TraceVerdicts, or as ExperimentCodeChangeTotals, ot as DbBranchReplayError, p as DEFAULT_SERVICE_URL, pi as SpanNodeMeta, pn as VerdictTarget, pr as ExperimentTally, pt as ReplayOptions, q as SpanListField, qn as ScenarioTrigger, qr as Category, qt as HumanLabelUpdate, r as ReplayRegistry, ri as TokenUsage, rn as LabelsClient, rr as TracesClient, rt as AdaptInputsFn, s as SeedCase, si as MockOverrideCtx, sn as Verdict, sr as ExperimentJitter, st as MockStrategy, t as ReplayOptionsFactory, ti as SpanOccurrence, tn as LabelTarget, tr as TraceTarget, tt as ReplayBranch, u as reseedFromRegistry, ui as MockValue, un as VerdictOutcome, ur as ExperimentRollupResult, ut as ReplayItem, v as BitfabFunction, vi as DbSnapshotRef, vn as AssertionGeneration, vr as AddDatasetTracesResult, vt as reportReplayProgress, w as NodeOptions, wi as AllowedEnvVars, wn as AssertionRewriteStatus, wr as GraderRerunError, wt as OrganizationMember, x as CurrentTrace, xi as SelectiveReplayDecision, xn as AssertionGenerationTimeoutError, xr as DatasetTraceIds, xt as ReplayInterruptSignal, y as CaptureWhen, yi as SUPPORTED_PROVIDERS, yn as AssertionGenerationError, yr as Dataset, yt as serializeReplayResult, z as getCurrentSpan, zn as ScenarioDataAppend, zr as VercelCallParams, zt as GraderVerdictOutcome } from "./index-Bg-oKbVP.cjs";
2
- export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ApprovalFields, type ApprovalState, type Approver, type ArchiveAssertionsParams, type ArchiveLabelTarget, type ArchiveVerdictTarget, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionEvidenceParameter, type AssertionGeneration, AssertionGenerationError, type AssertionGenerationStatus, AssertionGenerationTimeoutError, type AssertionLabelEvidence, type AssertionRewrite, type AssertionRewriteStatus, type AssertionVerdict, type AssertionVerdictEvidence, type Assignee, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, type BitfabAgentMiddleware, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, type BitfabLangGraphAgent, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabPiIntegration, BitfabRivetIntegration, BitfabVercelAiHandler, type CaptureSurface, type CaptureWhen, type CapturedSpan, CategoriesClient, type Category, type CategorySummary, 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 Experiment, type ExperimentCategoryTally, type ExperimentCodeChangeTotals, type ExperimentJitter, type ExperimentPage, type ExperimentRollup, type ExperimentRollupResult, type ExperimentRunBy, type ExperimentStatus, type ExperimentTally, type ExperimentTotals, ExperimentsClient, type GenerateAssertionsOptions, type GetGraderLabelsParams, type GetGraderVerdictsParams, type GraderLabel, type GraderLabelOutcome, type GraderLabelSource, type GraderLabelUpdate, type GraderRerun, GraderRerunError, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, GraderRerunTimeoutError, type GraderVerdict, type GraderVerdictOutcome, type GraderVerdictSource, type GraderVerdictUpdate, GradersClient, HttpClient, type HumanLabelOutcome, type HumanLabelUpdate, type HumanVerdictOutcome, type HumanVerdictUpdate, type Justification, type JustificationSpan, type LabelAction, type LabelConfidence, type LabelOutcome, type LabelSource, type LabelStatus, type LabelTarget, type LabelUpdate, LabelsClient, type LangGraphIntegrationOptions, type ListDatasetsParams, type ListExperimentsParams, type ListedSpan, 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 PassFailVerdict, type PiIntegrationOptions, type ProviderDefinition, type RemoveDatasetGradersResult, type RemoveDatasetTracesResult, type 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 SaveCategoryParams, type SaveDatasetParams, type SaveDatasetResult, type SaveScenarioActualOutcome, type SaveScenarioData, type SaveScenarioHistoryEntry, type SaveScenarioParams, type SavedTraceAssertion, type Scenario, type ScenarioAction, type ScenarioActualOutcome, type ScenarioData, type ScenarioDataAppend, type ScenarioDataOrigin, type ScenarioDataSources, type ScenarioGeneration, type ScenarioHistoryEntry, type ScenarioRecord, type ScenarioRecordInput, type ScenarioSource, type ScenarioTrigger, type SeedCase, type SeedCaseOptions, type SeedResult, type SeedRunOptions, type SelectiveReplayDecision, type SelectiveReplayOptions, type SelectiveReplayReport, type SpanListField, type SpanListParams, type SpanListResult, type SpanLookup, type SpanMethodDecorator, type SpanMethodDecoratorContext, type SpanNodeMeta, type SpanOccurrence, type SpanOptions, type SpanType, SpansClient, 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, type TraceVerdicts, TracesClient, type TracingProcessor, type UpdateDatasetParams, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type Verdict, type VerdictAction, type VerdictConfidence, type VerdictOutcome, type VerdictSource, type VerdictStatus, type VerdictTarget, type VerdictUpdate, VerdictsClient, type WrapAnthropicOptions, type WrapBAMLOptions, type WrapJevOptions, type WrapOpenAIResponsesOptions, type WrapOpenRouterOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
1
+ import { $ as RivetEffectType, $n as TraceSearchParams, $r as CategorySummary, $t as LabelSource, A as SpanMethodDecoratorContext, Ai as BamlExecutionResult, An as SaveScenarioActualOutcome, Ar as GraderRerunProgress, At as LangGraphIntegrationOptions, B as getCurrentTrace, Bn as ScenarioDataOrigin, Br as SaveDatasetResult, Bt as GraderVerdictSource, C as NodeMethodDecorator, Ci as DbSnapshotRef, Cn as AssertionRewrite, Cr as AddDatasetTracesResult, Ct as PiIntegrationOptions, D as SeedCaseOptions, Di as SelectiveReplayOptions, Dn as SaveAssertion, Dr as DatasetsClient, Dt as BitfabAgentMiddleware, E as ReseedResult, Ei as SelectiveReplayDecision, En as GenerateAssertionsOptions, Er as DatasetTraceIds, Et as BitfabOpenAIAgentHandler, F as WrapOpenAIResponsesOptions, Fi as Assignee, Fn as Scenario, Fr as RemoveDatasetGradersResult, Ft as GraderLabelOutcome, G as TracingProcessor, Gn as ScenarioRecordInput, Gr as VercelGenerateResult, Gt as AssertionVerdict, H as ActiveSpanContext, Hn as ScenarioGeneration, Hr as BitfabLanguageModelMiddleware, Ht as GradersClient, I as WrapOpenRouterOptions, Ii as Justification, In as ScenarioAction, Ir as RemoveDatasetTracesResult, It as GraderLabelSource, J as SpanListParams, Jn as TraceAssertion, Jr as AssertionCategoriesClient, Jt as HumanVerdictOutcome, K as ListedSpan, Kn as ScenarioSource, Kr as VercelStreamResult, Kt as HumanLabelOutcome, L as WrappedBamlFn, Li as JustificationSpan, Ln as ScenarioActualOutcome, Lr as RerunGradersOptions, Lt as GraderLabelUpdate, M as WrapAnthropicOptions, Mi as ApprovalFields, Mn as SaveScenarioHistoryEntry, Mr as GraderRerunStatus, Mt as GetGraderLabelsParams, N as WrapBAMLOptions, Ni as ApprovalState, Nn as SaveScenarioParams, Nr as GraderRerunTimeoutError, Nt as GetGraderVerdictsParams, O as SeedRunOptions, Oi as SelectiveReplayReport, On as SaveAssertionsAllParams, Or as GraderRerun, Ot as BitfabLangGraphAgent, P as WrapJevOptions, Pi as Approver, Pn as SavedTraceAssertion, Pr as ListDatasetsParams, Pt as GraderLabel, Q as RivetContextLike, Qn as TraceSearchFilters, Qr as Category, Qt as LabelOutcome, R as getCurrentReplayBranch, Rn as ScenarioData, Rr as RerunGradersResult, Rt as GraderVerdict, S as DetachedTrace, Si as DbSnapshotProvider, Sn as AssertionLabelEvidence, Sr as AddDatasetGradersResult, St as BitfabPiIntegration, T as ReseedOptions, Ti as ReplayNodeIdentity, Tn as AssertionVerdictEvidence, Tr as DatasetGraderRef, Tt as OrganizationMembersClient, U as BitfabOpenAITracingProcessor, Un as ScenarioHistoryEntry, Ur as BitfabVercelAiHandler, Ut as ArchiveLabelTarget, V as CaptureSurface, Vn as ScenarioDataSources, Vr as UpdateDatasetParams, Vt as GraderVerdictUpdate, W as TraceResponse, Wn as ScenarioRecord, Wr as VercelCallParams, Wt as ArchiveVerdictTarget, X as SpansClient, Xn as TraceAssertionsResult, Xr as AssertionCategorySummary, Xt as LabelAction, Y as SpanListResult, Yn as TraceAssertionSource, Yr as AssertionCategory, Yt as HumanVerdictUpdate, Z as BitfabRivetIntegration, Zn as TraceAssertionsUpdate, Zr as CategoriesClient, Zt as LabelConfidence, _ as BitfabConfig, _i as NodeMatcher, _n as AssertionEvidenceParameter, _r as ExperimentSummaryResult, _t as TraceIngestionType, a as ReplayRegistryOptions, ai as SpanLookup, an as TraceLabels, ar as ExperimentCategoryTally, at as DbBranchOptions, b as CurrentSpan, bi as MixedTracingError, bn as AssertionGenerationStatus, br as ExperimentsClient, bt as ReplayInterrupt, c as SeedResult, ci as TokenUsage, cn as VerdictAction, cr as ExperimentPage, ct as ReplayError, d as seedFromRegistry, di as MockOverride, dn as VerdictSource, dr as ExperimentRunBy, dt as ReplayItemFinishProgress, ei as SaveAssertionCategoryParams, en as LabelStatus, er as TraceSearchResult, et as RivetIntegrationOptions, f as finalizers, fi as MockOverrideCtx, fn as VerdictStatus, fr as ExperimentStatus, ft as ReplayItemStartProgress, g as Bitfab, gi as NO_MOCK_OVERRIDE, gn as ArchiveAssertionsParams, gr as ExperimentSummaryFacts, gt as ReplayResult, h as CommitRef, hi as MockValue, hn as VerdictsClient, hr as ExperimentSummaryExampleTrace, ht as ReplayProgressItem, i as ReplayRegistryContext, ii as HttpClient, in as PassFailVerdict, ir as Experiment, it as BITFAB_PROGRESS_PREFIX, j as SpanOptions, ji as ProviderDefinition, jn as SaveScenarioData, jr as GraderRerunResult, jt as BitfabLangGraphCallbackHandler, k as SpanMethodDecorator, ki as AllowedEnvVars, kn as SaveAssertionsParams, kr as GraderRerunError, kt as BitfabLangGraphIntegration, l as defineReplayRegistry, li as flushTraces, ln as VerdictConfidence, lr as ExperimentRollup, lt as ReplayExperiment, m as __version__, mi as MockOverrideResolver, mn as VerdictUpdate, mr as ExperimentSummaryBeforeAfter, mt as ReplayProgress, n as ReplayRegistration, ni as CapturedSpan, nn as LabelUpdate, nr as TraceTargetOccurrence, nt as AdaptContext, o as ReseedRegistryResult, oi as SpanOccurrence, on as TraceVerdicts, or as ExperimentCodeChangeTotals, ot as DbBranchReplayError, p as DEFAULT_SERVICE_URL, pi as MockOverrideInput, pn as VerdictTarget, pr as ExperimentSummary, pt as ReplayOptions, q as SpanListField, qn as ScenarioTrigger, qr as BitfabClaudeAgentHandler, qt as HumanLabelUpdate, r as ReplayRegistry, ri as CodeChangeFile, rn as LabelsClient, rr as TracesClient, rt as AdaptInputsFn, s as SeedCase, si as SpanType, sn as Verdict, sr as ExperimentJitter, st as MockStrategy, t as ReplayOptionsFactory, ti as SaveCategoryParams, tn as LabelTarget, tr as TraceTarget, tt as ReplayBranch, u as reseedFromRegistry, ui as DbBranchTimings, un as VerdictOutcome, ur as ExperimentRollupResult, ut as ReplayItem, v as BitfabFunction, vi as SpanNodeMeta, vn as AssertionGeneration, vr as ExperimentTally, vt as reportReplayProgress, w as NodeOptions, wi as SUPPORTED_PROVIDERS, wn as AssertionRewriteStatus, wr as Dataset, wt as OrganizationMember, x as CurrentTrace, xi as DbSnapshotConfig, xn as AssertionGenerationTimeoutError, xr as ListExperimentsParams, xt as ReplayInterruptSignal, y as CaptureWhen, yi as BitfabError, yn as AssertionGenerationError, yr as ExperimentTotals, yt as serializeReplayResult, z as getCurrentSpan, zn as ScenarioDataAppend, zr as SaveDatasetParams, zt as GraderVerdictOutcome } from "./index-C9WPpeEU.cjs";
2
+ export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ApprovalFields, type ApprovalState, type Approver, type ArchiveAssertionsParams, type ArchiveLabelTarget, type ArchiveVerdictTarget, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionEvidenceParameter, type AssertionGeneration, AssertionGenerationError, type AssertionGenerationStatus, AssertionGenerationTimeoutError, type AssertionLabelEvidence, type AssertionRewrite, type AssertionRewriteStatus, type AssertionVerdict, type AssertionVerdictEvidence, type Assignee, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, type BitfabAgentMiddleware, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, type BitfabLangGraphAgent, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabPiIntegration, BitfabRivetIntegration, BitfabVercelAiHandler, type CaptureSurface, type CaptureWhen, type CapturedSpan, CategoriesClient, type Category, type CategorySummary, 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 Experiment, type ExperimentCategoryTally, type ExperimentCodeChangeTotals, type ExperimentJitter, type ExperimentPage, type ExperimentRollup, type ExperimentRollupResult, type ExperimentRunBy, type ExperimentStatus, type ExperimentSummary, type ExperimentSummaryBeforeAfter, type ExperimentSummaryExampleTrace, type ExperimentSummaryFacts, type ExperimentSummaryResult, type ExperimentTally, type ExperimentTotals, ExperimentsClient, type GenerateAssertionsOptions, type GetGraderLabelsParams, type GetGraderVerdictsParams, type GraderLabel, type GraderLabelOutcome, type GraderLabelSource, type GraderLabelUpdate, type GraderRerun, GraderRerunError, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, GraderRerunTimeoutError, type GraderVerdict, type GraderVerdictOutcome, type GraderVerdictSource, type GraderVerdictUpdate, GradersClient, HttpClient, type HumanLabelOutcome, type HumanLabelUpdate, type HumanVerdictOutcome, type HumanVerdictUpdate, type Justification, type JustificationSpan, type LabelAction, type LabelConfidence, type LabelOutcome, type LabelSource, type LabelStatus, type LabelTarget, type LabelUpdate, LabelsClient, type LangGraphIntegrationOptions, type ListDatasetsParams, type ListExperimentsParams, type ListedSpan, 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 PassFailVerdict, type PiIntegrationOptions, type ProviderDefinition, type RemoveDatasetGradersResult, type RemoveDatasetTracesResult, type 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 SaveCategoryParams, type SaveDatasetParams, type SaveDatasetResult, type SaveScenarioActualOutcome, type SaveScenarioData, type SaveScenarioHistoryEntry, type SaveScenarioParams, type SavedTraceAssertion, type Scenario, type ScenarioAction, type ScenarioActualOutcome, type ScenarioData, type ScenarioDataAppend, type ScenarioDataOrigin, type ScenarioDataSources, type ScenarioGeneration, type ScenarioHistoryEntry, type ScenarioRecord, type ScenarioRecordInput, type ScenarioSource, type ScenarioTrigger, type SeedCase, type SeedCaseOptions, type SeedResult, type SeedRunOptions, type SelectiveReplayDecision, type SelectiveReplayOptions, type SelectiveReplayReport, type SpanListField, type SpanListParams, type SpanListResult, type SpanLookup, type SpanMethodDecorator, type SpanMethodDecoratorContext, type SpanNodeMeta, type SpanOccurrence, type SpanOptions, type SpanType, SpansClient, 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, type TraceVerdicts, TracesClient, type TracingProcessor, type UpdateDatasetParams, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type Verdict, type VerdictAction, type VerdictConfidence, type VerdictOutcome, type VerdictSource, type VerdictStatus, type VerdictTarget, type VerdictUpdate, VerdictsClient, type WrapAnthropicOptions, type WrapBAMLOptions, type WrapJevOptions, type WrapOpenAIResponsesOptions, type WrapOpenRouterOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
package/dist/node.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as RivetEffectType, $n as TraceSearchParams, $r as HttpClient, $t as LabelSource, A as SpanMethodDecoratorContext, Ai as Assignee, An as SaveScenarioActualOutcome, Ar as RemoveDatasetGradersResult, At as LangGraphIntegrationOptions, B as getCurrentTrace, Bn as ScenarioDataOrigin, Br as VercelGenerateResult, Bt as GraderVerdictSource, C as NodeMethodDecorator, Ci as SelectiveReplayReport, Cn as AssertionRewrite, Cr as GraderRerun, Ct as PiIntegrationOptions, D as SeedCaseOptions, Di as ApprovalFields, Dn as SaveAssertion, Dr as GraderRerunStatus, Dt as BitfabAgentMiddleware, E as ReseedResult, Ei as ProviderDefinition, En as GenerateAssertionsOptions, Er as GraderRerunResult, Et as BitfabOpenAIAgentHandler, F as WrapOpenAIResponsesOptions, Fn as Scenario, Fr as SaveDatasetResult, Ft as GraderLabelOutcome, G as TracingProcessor, Gn as ScenarioRecordInput, Gr as AssertionCategorySummary, Gt as AssertionVerdict, H as ActiveSpanContext, Hn as ScenarioGeneration, Hr as BitfabClaudeAgentHandler, Ht as GradersClient, I as WrapOpenRouterOptions, In as ScenarioAction, Ir as UpdateDatasetParams, It as GraderLabelSource, J as SpanListParams, Jn as TraceAssertion, Jr as CategorySummary, Jt as HumanVerdictOutcome, K as ListedSpan, Kn as ScenarioSource, Kr as CategoriesClient, Kt as HumanLabelOutcome, L as WrappedBamlFn, Ln as ScenarioActualOutcome, Lr as BitfabLanguageModelMiddleware, Lt as GraderLabelUpdate, M as WrapAnthropicOptions, Mi as JustificationSpan, Mn as SaveScenarioHistoryEntry, Mr as RerunGradersOptions, Mt as GetGraderLabelsParams, N as WrapBAMLOptions, Nn as SaveScenarioParams, Nr as RerunGradersResult, Nt as GetGraderVerdictsParams, O as SeedRunOptions, Oi as ApprovalState, On as SaveAssertionsAllParams, Or as GraderRerunTimeoutError, Ot as BitfabLangGraphAgent, P as WrapJevOptions, Pn as SavedTraceAssertion, Pr as SaveDatasetParams, Pt as GraderLabel, Q as RivetContextLike, Qn as TraceSearchFilters, Qr as CodeChangeFile, Qt as LabelOutcome, R as getCurrentReplayBranch, Rn as ScenarioData, Rr as BitfabVercelAiHandler, Rt as GraderVerdict, S as DetachedTrace, Si as SelectiveReplayOptions, Sn as AssertionLabelEvidence, Sr as DatasetsClient, St as BitfabPiIntegration, T as ReseedOptions, Ti as BamlExecutionResult, Tn as AssertionVerdictEvidence, Tr as GraderRerunProgress, Tt as OrganizationMembersClient, U as BitfabOpenAITracingProcessor, Un as ScenarioHistoryEntry, Ur as AssertionCategoriesClient, Ut as ArchiveLabelTarget, V as CaptureSurface, Vn as ScenarioDataSources, Vr as VercelStreamResult, Vt as GraderVerdictUpdate, W as TraceResponse, Wn as ScenarioRecord, Wr as AssertionCategory, Wt as ArchiveVerdictTarget, X as SpansClient, Xn as TraceAssertionsResult, Xr as SaveCategoryParams, Xt as LabelAction, Y as SpanListResult, Yn as TraceAssertionSource, Yr as SaveAssertionCategoryParams, Yt as HumanVerdictUpdate, Z as BitfabRivetIntegration, Zn as TraceAssertionsUpdate, Zr as CapturedSpan, Zt as LabelConfidence, _ as BitfabConfig, _i as DbSnapshotProvider, _n as AssertionEvidenceParameter, _r as AddDatasetGradersResult, _t as TraceIngestionType, a as ReplayRegistryOptions, ai as DbBranchTimings, an as TraceLabels, ar as ExperimentCategoryTally, at as DbBranchOptions, b as CurrentSpan, bi as ReplayNodeIdentity, bn as AssertionGenerationStatus, br as DatasetGraderRef, bt as ReplayInterrupt, c as SeedResult, ci as MockOverrideInput, cn as VerdictAction, cr as ExperimentPage, ct as ReplayError, d as seedFromRegistry, di as NO_MOCK_OVERRIDE, dn as VerdictSource, dr as ExperimentRunBy, dt as ReplayItemFinishProgress, ei as SpanLookup, en as LabelStatus, er as TraceSearchResult, et as RivetIntegrationOptions, f as finalizers, fi as NodeMatcher, fn as VerdictStatus, fr as ExperimentStatus, ft as ReplayItemStartProgress, g as Bitfab, gi as DbSnapshotConfig, gn as ArchiveAssertionsParams, gr as ListExperimentsParams, gt as ReplayResult, h as CommitRef, hi as MixedTracingError, hn as VerdictsClient, hr as ExperimentsClient, ht as ReplayProgressItem, i as ReplayRegistryContext, ii as flushTraces, in as PassFailVerdict, ir as Experiment, it as BITFAB_PROGRESS_PREFIX, j as SpanOptions, ji as Justification, jn as SaveScenarioData, jr as RemoveDatasetTracesResult, jt as BitfabLangGraphCallbackHandler, k as SpanMethodDecorator, ki as Approver, kn as SaveAssertionsParams, kr as ListDatasetsParams, kt as BitfabLangGraphIntegration, l as defineReplayRegistry, li as MockOverrideResolver, ln as VerdictConfidence, lr as ExperimentRollup, lt as ReplayExperiment, m as __version__, mi as BitfabError, mn as VerdictUpdate, mr as ExperimentTotals, mt as ReplayProgress, n as ReplayRegistration, ni as SpanType, nn as LabelUpdate, nr as TraceTargetOccurrence, nt as AdaptContext, o as ReseedRegistryResult, oi as MockOverride, on as TraceVerdicts, or as ExperimentCodeChangeTotals, ot as DbBranchReplayError, p as DEFAULT_SERVICE_URL, pi as SpanNodeMeta, pn as VerdictTarget, pr as ExperimentTally, pt as ReplayOptions, q as SpanListField, qn as ScenarioTrigger, qr as Category, qt as HumanLabelUpdate, r as ReplayRegistry, ri as TokenUsage, rn as LabelsClient, rr as TracesClient, rt as AdaptInputsFn, s as SeedCase, si as MockOverrideCtx, sn as Verdict, sr as ExperimentJitter, st as MockStrategy, t as ReplayOptionsFactory, ti as SpanOccurrence, tn as LabelTarget, tr as TraceTarget, tt as ReplayBranch, u as reseedFromRegistry, ui as MockValue, un as VerdictOutcome, ur as ExperimentRollupResult, ut as ReplayItem, v as BitfabFunction, vi as DbSnapshotRef, vn as AssertionGeneration, vr as AddDatasetTracesResult, vt as reportReplayProgress, w as NodeOptions, wi as AllowedEnvVars, wn as AssertionRewriteStatus, wr as GraderRerunError, wt as OrganizationMember, x as CurrentTrace, xi as SelectiveReplayDecision, xn as AssertionGenerationTimeoutError, xr as DatasetTraceIds, xt as ReplayInterruptSignal, y as CaptureWhen, yi as SUPPORTED_PROVIDERS, yn as AssertionGenerationError, yr as Dataset, yt as serializeReplayResult, z as getCurrentSpan, zn as ScenarioDataAppend, zr as VercelCallParams, zt as GraderVerdictOutcome } from "./index-Bg-oKbVP.js";
2
- export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ApprovalFields, type ApprovalState, type Approver, type ArchiveAssertionsParams, type ArchiveLabelTarget, type ArchiveVerdictTarget, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionEvidenceParameter, type AssertionGeneration, AssertionGenerationError, type AssertionGenerationStatus, AssertionGenerationTimeoutError, type AssertionLabelEvidence, type AssertionRewrite, type AssertionRewriteStatus, type AssertionVerdict, type AssertionVerdictEvidence, type Assignee, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, type BitfabAgentMiddleware, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, type BitfabLangGraphAgent, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabPiIntegration, BitfabRivetIntegration, BitfabVercelAiHandler, type CaptureSurface, type CaptureWhen, type CapturedSpan, CategoriesClient, type Category, type CategorySummary, 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 Experiment, type ExperimentCategoryTally, type ExperimentCodeChangeTotals, type ExperimentJitter, type ExperimentPage, type ExperimentRollup, type ExperimentRollupResult, type ExperimentRunBy, type ExperimentStatus, type ExperimentTally, type ExperimentTotals, ExperimentsClient, type GenerateAssertionsOptions, type GetGraderLabelsParams, type GetGraderVerdictsParams, type GraderLabel, type GraderLabelOutcome, type GraderLabelSource, type GraderLabelUpdate, type GraderRerun, GraderRerunError, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, GraderRerunTimeoutError, type GraderVerdict, type GraderVerdictOutcome, type GraderVerdictSource, type GraderVerdictUpdate, GradersClient, HttpClient, type HumanLabelOutcome, type HumanLabelUpdate, type HumanVerdictOutcome, type HumanVerdictUpdate, type Justification, type JustificationSpan, type LabelAction, type LabelConfidence, type LabelOutcome, type LabelSource, type LabelStatus, type LabelTarget, type LabelUpdate, LabelsClient, type LangGraphIntegrationOptions, type ListDatasetsParams, type ListExperimentsParams, type ListedSpan, 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 PassFailVerdict, type PiIntegrationOptions, type ProviderDefinition, type RemoveDatasetGradersResult, type RemoveDatasetTracesResult, type 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 SaveCategoryParams, type SaveDatasetParams, type SaveDatasetResult, type SaveScenarioActualOutcome, type SaveScenarioData, type SaveScenarioHistoryEntry, type SaveScenarioParams, type SavedTraceAssertion, type Scenario, type ScenarioAction, type ScenarioActualOutcome, type ScenarioData, type ScenarioDataAppend, type ScenarioDataOrigin, type ScenarioDataSources, type ScenarioGeneration, type ScenarioHistoryEntry, type ScenarioRecord, type ScenarioRecordInput, type ScenarioSource, type ScenarioTrigger, type SeedCase, type SeedCaseOptions, type SeedResult, type SeedRunOptions, type SelectiveReplayDecision, type SelectiveReplayOptions, type SelectiveReplayReport, type SpanListField, type SpanListParams, type SpanListResult, type SpanLookup, type SpanMethodDecorator, type SpanMethodDecoratorContext, type SpanNodeMeta, type SpanOccurrence, type SpanOptions, type SpanType, SpansClient, 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, type TraceVerdicts, TracesClient, type TracingProcessor, type UpdateDatasetParams, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type Verdict, type VerdictAction, type VerdictConfidence, type VerdictOutcome, type VerdictSource, type VerdictStatus, type VerdictTarget, type VerdictUpdate, VerdictsClient, type WrapAnthropicOptions, type WrapBAMLOptions, type WrapJevOptions, type WrapOpenAIResponsesOptions, type WrapOpenRouterOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
1
+ import { $ as RivetEffectType, $n as TraceSearchParams, $r as CategorySummary, $t as LabelSource, A as SpanMethodDecoratorContext, Ai as BamlExecutionResult, An as SaveScenarioActualOutcome, Ar as GraderRerunProgress, At as LangGraphIntegrationOptions, B as getCurrentTrace, Bn as ScenarioDataOrigin, Br as SaveDatasetResult, Bt as GraderVerdictSource, C as NodeMethodDecorator, Ci as DbSnapshotRef, Cn as AssertionRewrite, Cr as AddDatasetTracesResult, Ct as PiIntegrationOptions, D as SeedCaseOptions, Di as SelectiveReplayOptions, Dn as SaveAssertion, Dr as DatasetsClient, Dt as BitfabAgentMiddleware, E as ReseedResult, Ei as SelectiveReplayDecision, En as GenerateAssertionsOptions, Er as DatasetTraceIds, Et as BitfabOpenAIAgentHandler, F as WrapOpenAIResponsesOptions, Fi as Assignee, Fn as Scenario, Fr as RemoveDatasetGradersResult, Ft as GraderLabelOutcome, G as TracingProcessor, Gn as ScenarioRecordInput, Gr as VercelGenerateResult, Gt as AssertionVerdict, H as ActiveSpanContext, Hn as ScenarioGeneration, Hr as BitfabLanguageModelMiddleware, Ht as GradersClient, I as WrapOpenRouterOptions, Ii as Justification, In as ScenarioAction, Ir as RemoveDatasetTracesResult, It as GraderLabelSource, J as SpanListParams, Jn as TraceAssertion, Jr as AssertionCategoriesClient, Jt as HumanVerdictOutcome, K as ListedSpan, Kn as ScenarioSource, Kr as VercelStreamResult, Kt as HumanLabelOutcome, L as WrappedBamlFn, Li as JustificationSpan, Ln as ScenarioActualOutcome, Lr as RerunGradersOptions, Lt as GraderLabelUpdate, M as WrapAnthropicOptions, Mi as ApprovalFields, Mn as SaveScenarioHistoryEntry, Mr as GraderRerunStatus, Mt as GetGraderLabelsParams, N as WrapBAMLOptions, Ni as ApprovalState, Nn as SaveScenarioParams, Nr as GraderRerunTimeoutError, Nt as GetGraderVerdictsParams, O as SeedRunOptions, Oi as SelectiveReplayReport, On as SaveAssertionsAllParams, Or as GraderRerun, Ot as BitfabLangGraphAgent, P as WrapJevOptions, Pi as Approver, Pn as SavedTraceAssertion, Pr as ListDatasetsParams, Pt as GraderLabel, Q as RivetContextLike, Qn as TraceSearchFilters, Qr as Category, Qt as LabelOutcome, R as getCurrentReplayBranch, Rn as ScenarioData, Rr as RerunGradersResult, Rt as GraderVerdict, S as DetachedTrace, Si as DbSnapshotProvider, Sn as AssertionLabelEvidence, Sr as AddDatasetGradersResult, St as BitfabPiIntegration, T as ReseedOptions, Ti as ReplayNodeIdentity, Tn as AssertionVerdictEvidence, Tr as DatasetGraderRef, Tt as OrganizationMembersClient, U as BitfabOpenAITracingProcessor, Un as ScenarioHistoryEntry, Ur as BitfabVercelAiHandler, Ut as ArchiveLabelTarget, V as CaptureSurface, Vn as ScenarioDataSources, Vr as UpdateDatasetParams, Vt as GraderVerdictUpdate, W as TraceResponse, Wn as ScenarioRecord, Wr as VercelCallParams, Wt as ArchiveVerdictTarget, X as SpansClient, Xn as TraceAssertionsResult, Xr as AssertionCategorySummary, Xt as LabelAction, Y as SpanListResult, Yn as TraceAssertionSource, Yr as AssertionCategory, Yt as HumanVerdictUpdate, Z as BitfabRivetIntegration, Zn as TraceAssertionsUpdate, Zr as CategoriesClient, Zt as LabelConfidence, _ as BitfabConfig, _i as NodeMatcher, _n as AssertionEvidenceParameter, _r as ExperimentSummaryResult, _t as TraceIngestionType, a as ReplayRegistryOptions, ai as SpanLookup, an as TraceLabels, ar as ExperimentCategoryTally, at as DbBranchOptions, b as CurrentSpan, bi as MixedTracingError, bn as AssertionGenerationStatus, br as ExperimentsClient, bt as ReplayInterrupt, c as SeedResult, ci as TokenUsage, cn as VerdictAction, cr as ExperimentPage, ct as ReplayError, d as seedFromRegistry, di as MockOverride, dn as VerdictSource, dr as ExperimentRunBy, dt as ReplayItemFinishProgress, ei as SaveAssertionCategoryParams, en as LabelStatus, er as TraceSearchResult, et as RivetIntegrationOptions, f as finalizers, fi as MockOverrideCtx, fn as VerdictStatus, fr as ExperimentStatus, ft as ReplayItemStartProgress, g as Bitfab, gi as NO_MOCK_OVERRIDE, gn as ArchiveAssertionsParams, gr as ExperimentSummaryFacts, gt as ReplayResult, h as CommitRef, hi as MockValue, hn as VerdictsClient, hr as ExperimentSummaryExampleTrace, ht as ReplayProgressItem, i as ReplayRegistryContext, ii as HttpClient, in as PassFailVerdict, ir as Experiment, it as BITFAB_PROGRESS_PREFIX, j as SpanOptions, ji as ProviderDefinition, jn as SaveScenarioData, jr as GraderRerunResult, jt as BitfabLangGraphCallbackHandler, k as SpanMethodDecorator, ki as AllowedEnvVars, kn as SaveAssertionsParams, kr as GraderRerunError, kt as BitfabLangGraphIntegration, l as defineReplayRegistry, li as flushTraces, ln as VerdictConfidence, lr as ExperimentRollup, lt as ReplayExperiment, m as __version__, mi as MockOverrideResolver, mn as VerdictUpdate, mr as ExperimentSummaryBeforeAfter, mt as ReplayProgress, n as ReplayRegistration, ni as CapturedSpan, nn as LabelUpdate, nr as TraceTargetOccurrence, nt as AdaptContext, o as ReseedRegistryResult, oi as SpanOccurrence, on as TraceVerdicts, or as ExperimentCodeChangeTotals, ot as DbBranchReplayError, p as DEFAULT_SERVICE_URL, pi as MockOverrideInput, pn as VerdictTarget, pr as ExperimentSummary, pt as ReplayOptions, q as SpanListField, qn as ScenarioTrigger, qr as BitfabClaudeAgentHandler, qt as HumanLabelUpdate, r as ReplayRegistry, ri as CodeChangeFile, rn as LabelsClient, rr as TracesClient, rt as AdaptInputsFn, s as SeedCase, si as SpanType, sn as Verdict, sr as ExperimentJitter, st as MockStrategy, t as ReplayOptionsFactory, ti as SaveCategoryParams, tn as LabelTarget, tr as TraceTarget, tt as ReplayBranch, u as reseedFromRegistry, ui as DbBranchTimings, un as VerdictOutcome, ur as ExperimentRollupResult, ut as ReplayItem, v as BitfabFunction, vi as SpanNodeMeta, vn as AssertionGeneration, vr as ExperimentTally, vt as reportReplayProgress, w as NodeOptions, wi as SUPPORTED_PROVIDERS, wn as AssertionRewriteStatus, wr as Dataset, wt as OrganizationMember, x as CurrentTrace, xi as DbSnapshotConfig, xn as AssertionGenerationTimeoutError, xr as ListExperimentsParams, xt as ReplayInterruptSignal, y as CaptureWhen, yi as BitfabError, yn as AssertionGenerationError, yr as ExperimentTotals, yt as serializeReplayResult, z as getCurrentSpan, zn as ScenarioDataAppend, zr as SaveDatasetParams, zt as GraderVerdictOutcome } from "./index-C9WPpeEU.js";
2
+ export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ApprovalFields, type ApprovalState, type Approver, type ArchiveAssertionsParams, type ArchiveLabelTarget, type ArchiveVerdictTarget, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionEvidenceParameter, type AssertionGeneration, AssertionGenerationError, type AssertionGenerationStatus, AssertionGenerationTimeoutError, type AssertionLabelEvidence, type AssertionRewrite, type AssertionRewriteStatus, type AssertionVerdict, type AssertionVerdictEvidence, type Assignee, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, type BitfabAgentMiddleware, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, type BitfabLangGraphAgent, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabPiIntegration, BitfabRivetIntegration, BitfabVercelAiHandler, type CaptureSurface, type CaptureWhen, type CapturedSpan, CategoriesClient, type Category, type CategorySummary, 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 Experiment, type ExperimentCategoryTally, type ExperimentCodeChangeTotals, type ExperimentJitter, type ExperimentPage, type ExperimentRollup, type ExperimentRollupResult, type ExperimentRunBy, type ExperimentStatus, type ExperimentSummary, type ExperimentSummaryBeforeAfter, type ExperimentSummaryExampleTrace, type ExperimentSummaryFacts, type ExperimentSummaryResult, type ExperimentTally, type ExperimentTotals, ExperimentsClient, type GenerateAssertionsOptions, type GetGraderLabelsParams, type GetGraderVerdictsParams, type GraderLabel, type GraderLabelOutcome, type GraderLabelSource, type GraderLabelUpdate, type GraderRerun, GraderRerunError, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, GraderRerunTimeoutError, type GraderVerdict, type GraderVerdictOutcome, type GraderVerdictSource, type GraderVerdictUpdate, GradersClient, HttpClient, type HumanLabelOutcome, type HumanLabelUpdate, type HumanVerdictOutcome, type HumanVerdictUpdate, type Justification, type JustificationSpan, type LabelAction, type LabelConfidence, type LabelOutcome, type LabelSource, type LabelStatus, type LabelTarget, type LabelUpdate, LabelsClient, type LangGraphIntegrationOptions, type ListDatasetsParams, type ListExperimentsParams, type ListedSpan, 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 PassFailVerdict, type PiIntegrationOptions, type ProviderDefinition, type RemoveDatasetGradersResult, type RemoveDatasetTracesResult, type 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 SaveCategoryParams, type SaveDatasetParams, type SaveDatasetResult, type SaveScenarioActualOutcome, type SaveScenarioData, type SaveScenarioHistoryEntry, type SaveScenarioParams, type SavedTraceAssertion, type Scenario, type ScenarioAction, type ScenarioActualOutcome, type ScenarioData, type ScenarioDataAppend, type ScenarioDataOrigin, type ScenarioDataSources, type ScenarioGeneration, type ScenarioHistoryEntry, type ScenarioRecord, type ScenarioRecordInput, type ScenarioSource, type ScenarioTrigger, type SeedCase, type SeedCaseOptions, type SeedResult, type SeedRunOptions, type SelectiveReplayDecision, type SelectiveReplayOptions, type SelectiveReplayReport, type SpanListField, type SpanListParams, type SpanListResult, type SpanLookup, type SpanMethodDecorator, type SpanMethodDecoratorContext, type SpanNodeMeta, type SpanOccurrence, type SpanOptions, type SpanType, SpansClient, 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, type TraceVerdicts, TracesClient, type TracingProcessor, type UpdateDatasetParams, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type Verdict, type VerdictAction, type VerdictConfidence, type VerdictOutcome, type VerdictSource, type VerdictStatus, type VerdictTarget, type VerdictUpdate, VerdictsClient, type WrapAnthropicOptions, type WrapBAMLOptions, type WrapJevOptions, type WrapOpenAIResponsesOptions, type WrapOpenRouterOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
package/dist/node.js CHANGED
@@ -1,5 +1,5 @@
1
- import { A as VerdictsClient, C as OrganizationMembersClient, D as BitfabLangGraphCallbackHandler, E as BitfabLangGraphIntegration, F as GraderRerunTimeoutError, I as BitfabClaudeAgentHandler, L as DEFAULT_SERVICE_URL, M as SUPPORTED_PROVIDERS, N as DatasetsClient, O as GradersClient, P as GraderRerunError, R as AssertionCategoriesClient, S as BitfabPiIntegration, T as NO_MOCK_OVERRIDE, _ as BITFAB_PROGRESS_PREFIX, a as Bitfab, b as reportReplayProgress, c as getCurrentSpan, d as BitfabOpenAITracingProcessor, f as AssertionGenerationError, g as BitfabRivetIntegration, h as SpansClient, i as finalizers, j as ExperimentsClient, k as LabelsClient, l as getCurrentTrace, m as TracesClient, n as reseedFromRegistry, o as BitfabFunction, p as AssertionGenerationTimeoutError, r as seedFromRegistry, s as getCurrentReplayBranch, t as defineReplayRegistry, u as BitfabVercelAiHandler, v as DbBranchReplayError, w as BitfabOpenAIAgentHandler, x as serializeReplayResult, y as ReplayError, z as CategoriesClient } from "./src-B3hT_cMM.js";
2
- import { C as BitfabError, E as __version__, i as flushTraces, t as HttpClient, w as MixedTracingError } from "./http-BiyOTH78.js";
1
+ import { A as VerdictsClient, C as OrganizationMembersClient, D as BitfabLangGraphCallbackHandler, E as BitfabLangGraphIntegration, F as GraderRerunTimeoutError, I as BitfabClaudeAgentHandler, L as DEFAULT_SERVICE_URL, M as SUPPORTED_PROVIDERS, N as DatasetsClient, O as GradersClient, P as GraderRerunError, R as AssertionCategoriesClient, S as BitfabPiIntegration, T as NO_MOCK_OVERRIDE, _ as BITFAB_PROGRESS_PREFIX, a as Bitfab, b as reportReplayProgress, c as getCurrentSpan, d as BitfabOpenAITracingProcessor, f as AssertionGenerationError, g as BitfabRivetIntegration, h as SpansClient, i as finalizers, j as ExperimentsClient, k as LabelsClient, l as getCurrentTrace, m as TracesClient, n as reseedFromRegistry, o as BitfabFunction, p as AssertionGenerationTimeoutError, r as seedFromRegistry, s as getCurrentReplayBranch, t as defineReplayRegistry, u as BitfabVercelAiHandler, v as DbBranchReplayError, w as BitfabOpenAIAgentHandler, x as serializeReplayResult, y as ReplayError, z as CategoriesClient } from "./src-D-21-G6z.js";
2
+ import { C as BitfabError, E as __version__, i as flushTraces, t as HttpClient, w as MixedTracingError } from "./http-DcEhqOUu.js";
3
3
  import { U as registerAsyncLocalStorageClass, z as assertAsyncStorageRegistered } from "./autoTrace-kHOBg49M.js";
4
4
  import { AsyncLocalStorage } from "async_hooks";
5
5
  //#region src/asyncStorageNode.ts
@@ -26,6 +26,19 @@ var BitfabError = class extends Error {
26
26
  this.name = "BitfabError";
27
27
  }
28
28
  };
29
+ //#endregion
30
+ //#region src/codeChange.ts
31
+ const CODE_CHANGE_TYPES = [
32
+ "working-tree",
33
+ "last-branch",
34
+ "default-branch",
35
+ "skip",
36
+ "manual"
37
+ ];
38
+ const CODE_CHANGE_CHOICES = "\"working-tree\" (uncommitted changes vs HEAD), \"last-branch\" (the diff against the branch this one was cut from), \"default-branch\" (the diff against the default branch), \"skip\" (no code change), or \"manual\" (pass the files yourself)";
39
+ function isCodeChangeType(value) {
40
+ return CODE_CHANGE_TYPES.includes(value);
41
+ }
29
42
  (typeof process !== "undefined" && process.versions?.node ? import(
30
43
  /* webpackIgnore: true */
31
44
  ["node", "zlib"].join(":")
@@ -623,6 +636,7 @@ const VALUE_FLAGS = /* @__PURE__ */ new Set([
623
636
  "--concurrency",
624
637
  "--max-concurrency",
625
638
  "--code-change",
639
+ "--code-change-file",
626
640
  "--experiment-group-id",
627
641
  "--experiment-group-name",
628
642
  "--dataset-id",
@@ -639,7 +653,6 @@ const BOOLEAN_FLAGS = /* @__PURE__ */ new Set([
639
653
  "--judge-assertions",
640
654
  "--db-branch",
641
655
  "--no-db-branch",
642
- "--no-code-change",
643
656
  "--dry-run",
644
657
  "--fail-on-error",
645
658
  "--force"
@@ -714,7 +727,7 @@ async function pinnedDatasetMembers(client, datasetIds, limit, onlyWithAssertion
714
727
  return boundTraceIds(client, ordered, limit, onlyWithAssertions);
715
728
  }
716
729
  function usage(registry) {
717
- return `Usage: bitfab-replay --registry <path> <${registry === void 0 ? "pipeline" : Object.keys(registry).join("|")}> [options]\n\nOptions:\n --limit N (bounds a trace ID or dataset selection instead of replacing it)\n --attempts N (replay each trace N times in this run, max ${MAX_ATTEMPTS})\n --trace-ids id1,id2\n --name NAME (what this run is testing, such as "baseline"; Bitfab already records the commit, branch, and datasets)\n --notes TEXT (run conditions Bitfab cannot see, such as a forced feature flag)\n --metadata key=value (repeatable; tags kept on the experiment, such as which schedule launched it, and filterable through client.experiments.list)\n --concurrency N, --max-concurrency N\n --code-change PATH, --no-code-change\n --experiment-group-id UUID (join this experiment group; a new UUID creates the group)\n --experiment-group-name NAME (name the group when this run creates it or it has no name yet; requires --experiment-group-id)\n --dataset-ids uuid1,uuid2 (--dataset-id is the same flag)\n --grader-ids id1,id2\n --only-with-assertions (replay only traces carrying an approved assertion)\n --skip-assertion-judging (don't judge approved assertions on each replay; judging is on by default and costs model calls)\n --judge-assertions (deprecated: judging is on by default)\n --mock none|all|marked\n --db-branch, --no-db-branch\n --dry-run (resolve inputs, run nothing)\n --fail-on-error (exit 1 after printing the result when any replayed item errored; under --dry-run, items whose inputs failed to resolve count)\n --resume EXPERIMENT_ID (finish an experiment that stopped partway, running only the items it did not finish, with the traces, attempts, and graders it started with)\n --force (with --resume, resume even when the experiment may still be running or the code changed since it started)\n --params PATH\n --param name=value (repeatable)\n -h, --help`;
730
+ return `Usage: bitfab-replay --registry <path> <${registry === void 0 ? "pipeline" : Object.keys(registry).join("|")}> [options]\n\nOptions:\n --limit N (bounds a trace ID or dataset selection instead of replacing it)\n --attempts N (replay each trace N times in this run, max ${MAX_ATTEMPTS})\n --trace-ids id1,id2\n --name NAME (what this run is testing, such as "baseline"; Bitfab already records the commit, branch, and datasets)\n --notes TEXT (run conditions Bitfab cannot see, such as a forced feature flag)\n --metadata key=value (repeatable; tags kept on the experiment, such as which schedule launched it, and filterable through client.experiments.list)\n --concurrency N, --max-concurrency N\n --code-change working-tree|last-branch|default-branch|skip|manual (required: the code change this run tests; working-tree is the uncommitted changes vs HEAD, last-branch the diff against the branch this one was cut from, default-branch the diff against the default branch, skip none, manual the edits in --code-change-file)\n --code-change-file PATH (with --code-change manual: a JSON file of { description, files })\n --experiment-group-id UUID (join this experiment group; a new UUID creates the group)\n --experiment-group-name NAME (name the group when this run creates it or it has no name yet; requires --experiment-group-id)\n --dataset-ids uuid1,uuid2 (--dataset-id is the same flag)\n --grader-ids id1,id2\n --only-with-assertions (replay only traces carrying an approved assertion)\n --skip-assertion-judging (don't judge approved assertions on each replay; judging is on by default and costs model calls)\n --judge-assertions (deprecated: judging is on by default)\n --mock none|all|marked\n --db-branch, --no-db-branch\n --dry-run (resolve inputs, run nothing)\n --fail-on-error (exit 1 after printing the result when any replayed item errored; under --dry-run, items whose inputs failed to resolve count)\n --resume EXPERIMENT_ID (finish an experiment that stopped partway, running only the items it did not finish, with the traces, attempts, and graders it started with)\n --force (with --resume, resume even when the experiment may still be running or the code changed since it started)\n --params PATH\n --param name=value (repeatable)\n -h, --help`;
718
731
  }
719
732
  var ReplayCliHelp = class extends Error {};
720
733
  async function reseedFromRegistry(registry, pipeline, traceIds) {
@@ -815,7 +828,15 @@ function commaSeparated(flag, raw) {
815
828
  return values;
816
829
  }
817
830
  function checkReplayCliArgs(argv) {
818
- parseReplayCliArgs(void 0, argv);
831
+ requireCodeChange(parseReplayCliArgs(void 0, argv));
832
+ }
833
+ function requireCodeChange(parsed) {
834
+ if (parsed.codeChange === void 0) throw new BitfabError(`--code-change is required: ${CODE_CHANGE_CHOICES}. "manual" takes the edits from --code-change-file PATH.`);
835
+ if (parsed.codeChange === "manual" !== (parsed.codeChangePath !== void 0)) throw new BitfabError("--code-change-file goes with --code-change manual, and --code-change manual needs --code-change-file PATH.");
836
+ return {
837
+ ...parsed,
838
+ codeChange: parsed.codeChange
839
+ };
819
840
  }
820
841
  function parseReplayCliArgs(registry, argv) {
821
842
  if (argv.some((value) => HELP_FLAGS.has(value))) throw new ReplayCliHelp(usage(registry));
@@ -848,9 +869,6 @@ function parseReplayCliArgs(registry, argv) {
848
869
  case "--judge-assertions":
849
870
  parsed.judgeAssertionsFlag = true;
850
871
  break;
851
- case "--no-code-change":
852
- parsed.noCodeChange = true;
853
- break;
854
872
  case "--dry-run":
855
873
  parsed.dryRun = true;
856
874
  break;
@@ -861,6 +879,7 @@ function parseReplayCliArgs(registry, argv) {
861
879
  }
862
880
  continue;
863
881
  }
882
+ if (flag === "--no-code-change") throw new BitfabError("--no-code-change was replaced by --code-change skip.");
864
883
  if (!VALUE_FLAGS.has(flag)) throw new BitfabError(`Unknown replay option '${flag}'.\n${usage(registry)}`);
865
884
  const raw = argv[index + 1];
866
885
  if (raw === void 0 || raw.startsWith("--")) throw new BitfabError(`${flag} requires a value.`);
@@ -895,6 +914,10 @@ function parseReplayCliArgs(registry, argv) {
895
914
  parsed.maxConcurrency = requirePositiveInteger(flag, raw);
896
915
  break;
897
916
  case "--code-change":
917
+ if (!isCodeChangeType(raw)) throw new BitfabError(`Unknown --code-change '${raw}'. Pass ${CODE_CHANGE_CHOICES}. A file of edits goes in --code-change manual --code-change-file PATH.`);
918
+ parsed.codeChange = raw;
919
+ break;
920
+ case "--code-change-file":
898
921
  parsed.codeChangePath = raw;
899
922
  break;
900
923
  case "--experiment-group-id":
@@ -929,7 +952,6 @@ function parseReplayCliArgs(registry, argv) {
929
952
  if (conflicting.length > 0) throw new BitfabError(`--resume reuses the traces, attempts, and graders experiment ${parsed.resume} started with, so it cannot be combined with ${conflicting.join(", ")}.`);
930
953
  }
931
954
  if (parsed.traceIds !== void 0 && parsed.datasetIds !== void 0) throw new BitfabError("--trace-ids and --dataset-ids select different replay sources and cannot be used together.");
932
- if (parsed.codeChangePath !== void 0 && parsed.noCodeChange === true) throw new BitfabError("--code-change and --no-code-change cannot be used together.");
933
955
  return parsed;
934
956
  }
935
957
  function resolveRegistrationDatasetIds(options) {
@@ -951,13 +973,13 @@ function resolveTraceFunctionKey(registration) {
951
973
  }
952
974
  async function defaultReadFile(path) {
953
975
  const fs = await import("fs/promises").catch(() => null);
954
- if (fs === null) throw new BitfabError("--code-change requires a runtime that can read local files.");
976
+ if (fs === null) throw new BitfabError("--code-change-file requires a runtime that can read local files.");
955
977
  return fs.readFile(path, "utf8");
956
978
  }
957
979
  async function loadCodeChange(path, readFile) {
958
980
  if (path === void 0) return;
959
981
  const value = JSON.parse(await readFile(path));
960
- if (typeof value.description !== "string" || !Array.isArray(value.files)) throw new BitfabError(`Invalid --code-change file '${path}': expected { description, files }.`);
982
+ if (typeof value.description !== "string" || !Array.isArray(value.files)) throw new BitfabError(`Invalid --code-change-file '${path}': expected { description, files }.`);
961
983
  return {
962
984
  description: value.description,
963
985
  files: value.files
@@ -1068,6 +1090,9 @@ function shellQuote(value) {
1068
1090
  }
1069
1091
  function resumeCommand(registryPath, args, experimentId) {
1070
1092
  const carried = [
1093
+ "--code-change",
1094
+ args.codeChange,
1095
+ ...args.codeChangePath === void 0 ? [] : ["--code-change-file", args.codeChangePath],
1071
1096
  ...args.mock === void 0 ? [] : ["--mock", args.mock],
1072
1097
  ...args.paramsPath === void 0 ? [] : ["--params", args.paramsPath],
1073
1098
  ...args.params.flatMap((param) => ["--param", param])
@@ -1092,9 +1117,9 @@ async function runReplayCli(registry, argv = typeof process === "undefined" ? []
1092
1117
  const stdout = io.stdout ?? console.log;
1093
1118
  const stderr = io.stderr ?? console.error;
1094
1119
  const printApiKey = argv.includes(PRINT_API_KEY_FLAG);
1095
- const args = parseReplayCliArgs(registry, argv.filter((arg) => arg !== PRINT_API_KEY_FLAG));
1120
+ const parsedArgs = parseReplayCliArgs(registry, argv.filter((arg) => arg !== PRINT_API_KEY_FLAG));
1096
1121
  if (printApiKey) {
1097
- const client = registry[args.pipeline].client;
1122
+ const client = registry[parsedArgs.pipeline].client;
1098
1123
  const apiKey = _resolvedApiKey(client);
1099
1124
  const serviceUrl = _serviceUrl(client);
1100
1125
  stdout(`${API_KEY_LINE_PREFIX}${JSON.stringify({
@@ -1103,6 +1128,7 @@ async function runReplayCli(registry, argv = typeof process === "undefined" ? []
1103
1128
  })}`);
1104
1129
  return null;
1105
1130
  }
1131
+ const args = requireCodeChange(parsedArgs);
1106
1132
  if (args.judgeAssertionsFlag) warnJudgeAssertionsDeprecated(stderr);
1107
1133
  const registration = registry[args.pipeline];
1108
1134
  const traceFunctionKey = resolveTraceFunctionKey(registration);
@@ -1134,10 +1160,7 @@ async function runReplayCli(registry, argv = typeof process === "undefined" ? []
1134
1160
  ...args.skipAssertionJudging === void 0 ? {} : { skipAssertionJudging: args.skipAssertionJudging },
1135
1161
  ...args.mock === void 0 ? {} : { mock: args.mock },
1136
1162
  ...args.dbBranch === void 0 ? {} : { dbBranch: args.dbBranch && registrationOptions.dbBranch !== void 0 && registrationOptions.dbBranch !== false ? registrationOptions.dbBranch : args.dbBranch },
1137
- ...args.noCodeChange === true ? {
1138
- codeChangeDescription: null,
1139
- codeChangeFiles: null
1140
- } : {},
1163
+ codeChange: args.codeChange,
1141
1164
  ...args.dryRun === true ? { dryRun: true } : {},
1142
1165
  ...codeChange === void 0 ? {} : {
1143
1166
  codeChangeDescription: codeChange.description,
@@ -1292,4 +1315,4 @@ function runIfEntrypoint(moduleUrl, main) {
1292
1315
  //#endregion
1293
1316
  export { runRegistryMain as a, runSeedCli as c, runIfEntrypoint as i, parseRegistryCommandArgs as n, checkReplayCliArgs as o, resolveRegistry as r, runReplayCli as s, importRegistry as t };
1294
1317
 
1295
- //# sourceMappingURL=registryCommand-CWxt6kPp.js.map
1318
+ //# sourceMappingURL=registryCommand-jPTSRgL9.js.map