@bitfab/sdk 0.70.0 → 0.72.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.
@@ -130,6 +130,10 @@ declare class TraceCompletion {
130
130
  private drain;
131
131
  }
132
132
  //#endregion
133
+ //#region src/codeChange.d.ts
134
+ declare const CODE_CHANGE_TYPES: readonly ["working-tree", "last-branch", "default-branch", "ref", "skip", "manual"];
135
+ type CodeChangeType = (typeof CODE_CHANGE_TYPES)[number];
136
+ //#endregion
133
137
  //#region src/dbSnapshot.d.ts
134
138
  /**
135
139
  * Per-trace database snapshot ref capture.
@@ -774,7 +778,7 @@ declare class HttpClient {
774
778
  * Start a replay session by fetching historical traces.
775
779
  * Blocking call - creates an experiment and returns lightweight item references.
776
780
  */
777
- startReplay(traceFunctionKey: string, limit: number | undefined, traceIds?: string[], name?: string, codeChangeDescription?: string | null, codeChangeFiles?: CodeChangeFile[] | null, includeDbBranchLease?: boolean, experimentGroupId?: string, datasetIds?: string[], graderIds?: string[], dbBranchSettings?: DbBranchSettings, attempts?: number, includeOriginalMetadata?: boolean, onlyWithAssertions?: boolean, skipAssertionJudging?: boolean, experimentalSelectiveReplay?: SelectiveReplayOptions, notes?: string, metadata?: Record<string, string>, dryRun?: boolean, experimentGroupName?: string, invocation?: ReplayInvocation): Promise<StartReplayResponse>;
781
+ startReplay(traceFunctionKey: string, limit: number | undefined, traceIds?: string[], name?: string, codeChangeDescription?: string | null, codeChangeFiles?: CodeChangeFile[] | null, includeDbBranchLease?: boolean, experimentGroupId?: string, datasetIds?: string[], graderIds?: string[], dbBranchSettings?: DbBranchSettings, attempts?: number, includeOriginalMetadata?: boolean, onlyWithAssertions?: boolean, skipAssertionJudging?: boolean, experimentalSelectiveReplay?: SelectiveReplayOptions, notes?: string, metadata?: Record<string, string>, dryRun?: boolean, experimentGroupName?: string, invocation?: ReplayInvocation, codeChangeType?: CodeChangeType): Promise<StartReplayResponse>;
778
782
  resumeReplay(experimentId: string, traceFunctionKey: string, codeChangeFiles?: CodeChangeFile[] | null, force?: boolean): Promise<ResumeReplayResponse>;
779
783
  /**
780
784
  * Fetch an external span by ID.
@@ -1502,6 +1506,11 @@ type Experiment = {
1502
1506
  traceFunctionKey: string | null;
1503
1507
  createdAt: string;
1504
1508
  completedAt: string | null;
1509
+ /**
1510
+ * The code change choice the replay named, such as "default-branch" or
1511
+ * "skip". Null for runs started by an SDK that predates the field.
1512
+ */
1513
+ codeChangeType?: CodeChangeType | null;
1505
1514
  codeChangeDescription: string | null;
1506
1515
  codeChangeTotals: ExperimentCodeChangeTotals | null;
1507
1516
  experimentGroupId: string | null;
@@ -3006,10 +3015,6 @@ declare class BitfabPiIntegration {
3006
3015
  private wrapTool;
3007
3016
  }
3008
3017
  //#endregion
3009
- //#region src/codeChange.d.ts
3010
- declare const CODE_CHANGE_TYPES: readonly ["working-tree", "last-branch", "default-branch", "skip", "manual"];
3011
- type CodeChangeType = (typeof CODE_CHANGE_TYPES)[number];
3012
- //#endregion
3013
3018
  //#region src/replayInterrupt.d.ts
3014
3019
  type ReplayInterruptSignal = "SIGINT" | "SIGTERM";
3015
3020
  interface ReplayInterrupt {
@@ -3101,10 +3106,12 @@ interface ReplayOptions {
3101
3106
  * as the branch below it in a stack, else the default branch
3102
3107
  * - "default-branch": the diff against where HEAD split from the default
3103
3108
  * branch (`origin/HEAD`, else `origin/main`, `origin/master`, `main`, `master`)
3109
+ * - "ref": the diff against where HEAD split from the branch or commit in
3110
+ * `codeChangeBase`
3104
3111
  * - "skip": no code change, such as for a baseline run
3105
3112
  * - "manual": the files passed in `codeChangeFiles`
3106
3113
  *
3107
- * The three git choices include uncommitted edits and untracked files, and
3114
+ * The four git choices include uncommitted edits and untracked files, and
3108
3115
  * warn and attach nothing when they find no changed files.
3109
3116
  */
3110
3117
  codeChange: CodeChangeType;
@@ -3119,6 +3126,13 @@ interface ReplayOptions {
3119
3126
  * newly created files (`before`) or deleted files (`after`).
3120
3127
  */
3121
3128
  codeChangeFiles?: CodeChangeFile[];
3129
+ /**
3130
+ * The branch or commit to diff against when `codeChange` is "ref", and only
3131
+ * then, such as `"dev"`, `"release/2.3"`, or a commit SHA. A branch that
3132
+ * exists only on the remote is read as `origin/<name>`. A name git cannot
3133
+ * resolve is refused.
3134
+ */
3135
+ codeChangeBase?: string;
3122
3136
  /**
3123
3137
  * Mock strategy for child spans during replay.
3124
3138
  * - "marked": only spans tagged with { mockOnReplay: true } in SpanOptions are mocked (default)
@@ -5220,7 +5234,7 @@ interface CommitRef {
5220
5234
  /**
5221
5235
  * SDK version from package.json (injected at build time)
5222
5236
  */
5223
- declare const __version__ = "0.70.0";
5237
+ declare const __version__ = "0.72.0";
5224
5238
  //#endregion
5225
5239
  //#region src/constants.d.ts
5226
5240
  /**
@@ -5292,7 +5306,7 @@ declare const finalizers: {
5292
5306
  //#endregion
5293
5307
  //#region src/replayRegistry.d.ts
5294
5308
  type ReplayFunction = (...args: any[]) => unknown | Promise<unknown>;
5295
- type ReplayRegistryOptions = Omit<ReplayOptions, "onItemStart" | "onItemFinish" | "onProgress" | "onExperimentStart" | "codeChange" | "codeChangeDescription" | "codeChangeFiles">;
5309
+ type ReplayRegistryOptions = Omit<ReplayOptions, "onItemStart" | "onItemFinish" | "onProgress" | "onExperimentStart" | "codeChange" | "codeChangeDescription" | "codeChangeFiles" | "codeChangeBase">;
5296
5310
  interface ReplayRegistryContext {
5297
5311
  /** Values supplied through `--params` and repeated `--param name=value`. */
5298
5312
  params: Readonly<Record<string, unknown>>;
package/dist/index.cjs CHANGED
@@ -2,8 +2,8 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_src = require("./src-Cwzg-mER.cjs");
6
- const require_http = require("./http-C6NC-zwf.cjs");
5
+ const require_src = require("./src-DRC6OVjp.cjs");
6
+ const require_http = require("./http-C07Y93Ss.cjs");
7
7
  exports.AssertionCategoriesClient = require_src.AssertionCategoriesClient;
8
8
  exports.AssertionGenerationError = require_src.AssertionGenerationError;
9
9
  exports.AssertionGenerationTimeoutError = require_src.AssertionGenerationTimeoutError;
package/dist/index.d.cts CHANGED
@@ -1,2 +1,2 @@
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";
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-DaZqdSDK.cjs";
2
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/index.d.ts CHANGED
@@ -1,2 +1,2 @@
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";
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-DaZqdSDK.js";
2
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/index.js CHANGED
@@ -1,3 +1,3 @@
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";
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-B9m0zAy1.js";
2
+ import { C as BitfabError, E as __version__, i as flushTraces, t as HttpClient, w as MixedTracingError } from "./http-7rcRBbK-.js";
3
3
  export { AssertionCategoriesClient, AssertionGenerationError, AssertionGenerationTimeoutError, BITFAB_PROGRESS_PREFIX, Bitfab, BitfabClaudeAgentHandler, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, BitfabLangGraphIntegration, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabPiIntegration, BitfabRivetIntegration, BitfabVercelAiHandler, CategoriesClient, DEFAULT_SERVICE_URL, DatasetsClient, DbBranchReplayError, ExperimentsClient, GraderRerunError, GraderRerunTimeoutError, GradersClient, HttpClient, LabelsClient, MixedTracingError, NO_MOCK_OVERRIDE, OrganizationMembersClient, ReplayError, SUPPORTED_PROVIDERS, SpansClient, TracesClient, VerdictsClient, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
package/dist/node.cjs CHANGED
@@ -2,8 +2,8 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_src = require("./src-Cwzg-mER.cjs");
6
- const require_http = require("./http-C6NC-zwf.cjs");
5
+ const require_src = require("./src-DRC6OVjp.cjs");
6
+ const require_http = require("./http-C07Y93Ss.cjs");
7
7
  const require_autoTrace = require("./autoTrace-DPWV1Xzr.cjs");
8
8
  let async_hooks = require("async_hooks");
9
9
  //#region src/asyncStorageNode.ts
package/dist/node.d.cts CHANGED
@@ -1,2 +1,2 @@
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";
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-DaZqdSDK.cjs";
2
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 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";
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-DaZqdSDK.js";
2
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-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";
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-B9m0zAy1.js";
2
+ import { C as BitfabError, E as __version__, i as flushTraces, t as HttpClient, w as MixedTracingError } from "./http-7rcRBbK-.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
@@ -32,10 +32,11 @@ const CODE_CHANGE_TYPES = [
32
32
  "working-tree",
33
33
  "last-branch",
34
34
  "default-branch",
35
+ "ref",
35
36
  "skip",
36
37
  "manual"
37
38
  ];
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
+ 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), \"ref\" (the diff against a branch or commit you name), \"skip\" (no code change), or \"manual\" (pass the files yourself)";
39
40
  function isCodeChangeType(value) {
40
41
  return CODE_CHANGE_TYPES.includes(value);
41
42
  }
@@ -637,6 +638,7 @@ const VALUE_FLAGS = /* @__PURE__ */ new Set([
637
638
  "--max-concurrency",
638
639
  "--code-change",
639
640
  "--code-change-file",
641
+ "--code-change-base",
640
642
  "--experiment-group-id",
641
643
  "--experiment-group-name",
642
644
  "--dataset-id",
@@ -727,7 +729,7 @@ async function pinnedDatasetMembers(client, datasetIds, limit, onlyWithAssertion
727
729
  return boundTraceIds(client, ordered, limit, onlyWithAssertions);
728
730
  }
729
731
  function usage(registry) {
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`;
732
+ 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|ref|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, ref the diff against --code-change-base, skip none, manual the edits in --code-change-file)\n --code-change-base BRANCH|COMMIT (with --code-change ref: the branch or commit to diff against)\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`;
731
733
  }
732
734
  var ReplayCliHelp = class extends Error {};
733
735
  async function reseedFromRegistry(registry, pipeline, traceIds) {
@@ -831,8 +833,9 @@ function checkReplayCliArgs(argv) {
831
833
  requireCodeChange(parseReplayCliArgs(void 0, argv));
832
834
  }
833
835
  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.`);
836
+ if (parsed.codeChange === void 0) throw new BitfabError(`--code-change is required: ${CODE_CHANGE_CHOICES}. "ref" takes the branch or commit from --code-change-base, and "manual" takes the edits from --code-change-file PATH.`);
835
837
  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.");
838
+ if (parsed.codeChange === "ref" !== (parsed.codeChangeBase !== void 0)) throw new BitfabError("--code-change-base goes with --code-change ref, and --code-change ref needs --code-change-base BRANCH|COMMIT.");
836
839
  return {
837
840
  ...parsed,
838
841
  codeChange: parsed.codeChange
@@ -920,6 +923,9 @@ function parseReplayCliArgs(registry, argv) {
920
923
  case "--code-change-file":
921
924
  parsed.codeChangePath = raw;
922
925
  break;
926
+ case "--code-change-base":
927
+ parsed.codeChangeBase = raw;
928
+ break;
923
929
  case "--experiment-group-id":
924
930
  parsed.experimentGroupId = raw;
925
931
  break;
@@ -1093,6 +1099,7 @@ function resumeCommand(registryPath, args, experimentId) {
1093
1099
  "--code-change",
1094
1100
  args.codeChange,
1095
1101
  ...args.codeChangePath === void 0 ? [] : ["--code-change-file", args.codeChangePath],
1102
+ ...args.codeChangeBase === void 0 ? [] : ["--code-change-base", args.codeChangeBase],
1096
1103
  ...args.mock === void 0 ? [] : ["--mock", args.mock],
1097
1104
  ...args.paramsPath === void 0 ? [] : ["--params", args.paramsPath],
1098
1105
  ...args.params.flatMap((param) => ["--param", param])
@@ -1161,6 +1168,7 @@ async function runReplayCli(registry, argv = typeof process === "undefined" ? []
1161
1168
  ...args.mock === void 0 ? {} : { mock: args.mock },
1162
1169
  ...args.dbBranch === void 0 ? {} : { dbBranch: args.dbBranch && registrationOptions.dbBranch !== void 0 && registrationOptions.dbBranch !== false ? registrationOptions.dbBranch : args.dbBranch },
1163
1170
  codeChange: args.codeChange,
1171
+ ...args.codeChangeBase === void 0 ? {} : { codeChangeBase: args.codeChangeBase },
1164
1172
  ...args.dryRun === true ? { dryRun: true } : {},
1165
1173
  ...codeChange === void 0 ? {} : {
1166
1174
  codeChangeDescription: codeChange.description,
@@ -1315,4 +1323,4 @@ function runIfEntrypoint(moduleUrl, main) {
1315
1323
  //#endregion
1316
1324
  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 };
1317
1325
 
1318
- //# sourceMappingURL=registryCommand-jPTSRgL9.js.map
1326
+ //# sourceMappingURL=registryCommand-BQcyBmhN.js.map