@bitfab/sdk 0.74.6 → 0.75.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.
@@ -338,13 +338,13 @@ declare class SelectiveReplayRuntime {
338
338
  * Under the eager path (`mock: "all"`) `output`/`outputMeta` are populated
339
339
  * inline, even when overrides are present. Under a non-`all` path that needs a
340
340
  * tree (`marked`, or `none` with overrides), they are absent and the recorded
341
- * output is fetched on demand via `externalSpanId` - see
341
+ * output is fetched on demand via `spanId`, see
342
342
  * {@link ReplayContext.fetchSpanOutput}.
343
343
  */
344
344
  interface MockSpan {
345
345
  sourceSpanId: string;
346
- /** Row id accepted by `getExternalSpan`, for the lazy per-span output fetch. */
347
- externalSpanId?: string;
346
+ /** Bitfab span row id accepted by `getSpanRaw`, for the lazy output fetch. */
347
+ spanId?: string;
348
348
  output?: unknown;
349
349
  outputMeta?: unknown;
350
350
  }
@@ -434,9 +434,10 @@ interface ReplayContext {
434
434
  traceId?: string;
435
435
  inputSourceSpanId?: string;
436
436
  /**
437
- * External trace ID from `external_traces.id`. Used for span-chain
438
- * lookup against the source platform's trace tree (Braintrust, etc.).
439
- * NOT the same as the Bitfab `traceId` - see `sourceBitfabTraceId`.
437
+ * Source trace id of the span that produced this replay item's input.
438
+ * Used for span-chain lookup against the source platform's trace tree
439
+ * (Braintrust, etc.). NOT the same as the Bitfab `traceId`, see
440
+ * `sourceBitfabTraceId`.
440
441
  */
441
442
  inputSourceTraceId?: string;
442
443
  /**
@@ -457,12 +458,12 @@ interface ReplayContext {
457
458
  mockOverrides?: MockOverride[];
458
459
  /**
459
460
  * Memoized lazy fetch of a span's recorded output (deserialized), keyed by
460
- * `externalSpanId`. Present ONLY on a non-`all` path that needs a tree
461
+ * `spanId`. Present ONLY on a non-`all` path that needs a tree
461
462
  * (`marked`, or `none` with overrides); absent under `mock: "all"`, where
462
463
  * outputs are inline even when overrides are present. Its presence is the
463
464
  * signal that outputs must be fetched rather than read inline.
464
465
  */
465
- fetchSpanOutput?: (externalSpanId: string) => Promise<unknown>;
466
+ fetchSpanOutput?: (spanId: string) => Promise<unknown>;
466
467
  /** Internal framework state captured on the historical root span. */
467
468
  integrationFixtures?: Map<string, unknown>;
468
469
  /**
@@ -607,6 +608,9 @@ interface DeliveryReport {
607
608
  */
608
609
  serverTraceId?: string;
609
610
  }
611
+ type SpanPayloadTransform = (payload: Record<string, unknown>, submit: SimulationPlanSubmit, drop: () => void) => void;
612
+ type TracePayloadTransform = (payload: Record<string, unknown>, submit: SimulationPlanSubmit) => void;
613
+ type ReleaseHeldSpans = (timeoutMs: number) => Promise<boolean> | Promise<void>;
610
614
  declare class HttpClient {
611
615
  private readonly apiKey;
612
616
  private readonly serviceUrl;
@@ -617,10 +621,19 @@ declare class HttpClient {
617
621
  readonly traceCompletion: TraceCompletion;
618
622
  private closed;
619
623
  private closing;
620
- externalSpanTransform: ((payload: Record<string, unknown>, submit: SimulationPlanSubmit, drop: () => void) => void) | undefined;
621
- externalTraceTransform: ((payload: Record<string, unknown>, submit: SimulationPlanSubmit) => void) | undefined;
622
- releaseHeldExternalSpans: ((timeoutMs: number) => Promise<boolean> | Promise<void>) | undefined;
624
+ spanPayloadTransform: SpanPayloadTransform | undefined;
625
+ tracePayloadTransform: TracePayloadTransform | undefined;
626
+ releaseHeldSpans: ReleaseHeldSpans | undefined;
623
627
  stopSimulationPlan: (() => void) | undefined;
628
+ /** @deprecated Use `spanPayloadTransform`. */
629
+ get externalSpanTransform(): SpanPayloadTransform | undefined;
630
+ set externalSpanTransform(transform: SpanPayloadTransform | undefined);
631
+ /** @deprecated Use `tracePayloadTransform`. */
632
+ get externalTraceTransform(): TracePayloadTransform | undefined;
633
+ set externalTraceTransform(transform: TracePayloadTransform | undefined);
634
+ /** @deprecated Use `releaseHeldSpans`. */
635
+ get releaseHeldExternalSpans(): ReleaseHeldSpans | undefined;
636
+ set releaseHeldExternalSpans(release: ReleaseHeldSpans | undefined);
624
637
  constructor(config: HttpClientConfig);
625
638
  /**
626
639
  * Resolve the API key at the moment it is needed (request time), invoking
@@ -748,16 +761,23 @@ declare class HttpClient {
748
761
  * the OTLP carrier has no path to carry it.
749
762
  */
750
763
  sendInternalTrace(functionId: string, payload: Record<string, unknown>): void;
751
- sendExternalSpan(payload: Record<string, unknown>): void;
752
- submitExternalSpan(payload: Record<string, unknown>): void;
764
+ sendSpanPayload(payload: Record<string, unknown>): void;
765
+ submitSpanPayload(payload: Record<string, unknown>): void;
753
766
  /**
754
- * Queue an external trace completion (from OpenAI tracing) onto this
755
- * client's batching transport. Fire-and-forget for the same reason as
756
- * {@link HttpClient.sendExternalSpan}; replay confirms persistence with the
767
+ * Queue a trace start or completion onto this client's batching transport. Fire-and-forget for the same reason as
768
+ * {@link HttpClient.sendSpanPayload}; replay confirms persistence with the
757
769
  * server-authoritative barrier in `replay.ts`, not by awaiting this call.
758
770
  */
771
+ sendTracePayload(rawPayload: Record<string, unknown>): void;
772
+ private sendCountedTracePayload;
773
+ submitTracePayload(payload: Record<string, unknown>): void;
774
+ /** @deprecated Use {@link HttpClient.sendSpanPayload}. */
775
+ sendExternalSpan(payload: Record<string, unknown>): void;
776
+ /** @deprecated Use {@link HttpClient.submitSpanPayload}. */
777
+ submitExternalSpan(payload: Record<string, unknown>): void;
778
+ /** @deprecated Use {@link HttpClient.sendTracePayload}. */
759
779
  sendExternalTrace(rawPayload: Record<string, unknown>): void;
760
- private sendCountedExternalTrace;
780
+ /** @deprecated Use {@link HttpClient.submitTracePayload}. */
761
781
  submitExternalTrace(payload: Record<string, unknown>): void;
762
782
  /**
763
783
  * Partial update of an existing trace identified by its Bitfab trace ID.
@@ -781,23 +801,27 @@ declare class HttpClient {
781
801
  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, categoryIds?: string[]): Promise<StartReplayResponse>;
782
802
  resumeReplay(experimentId: string, traceFunctionKey: string, codeChangeFiles?: CodeChangeFile[] | null, force?: boolean): Promise<ResumeReplayResponse>;
783
803
  /**
784
- * Fetch an external span by ID.
804
+ * Fetch one span by its Bitfab span row id.
785
805
  * Blocking GET request.
786
806
  * The replay view limits rawData to input/output serialization fields.
787
807
  */
808
+ getSpanRaw(spanId: string, options?: {
809
+ view?: "full" | "replay";
810
+ }): Promise<SpanRawResponse>;
811
+ /** @deprecated Use {@link HttpClient.getSpanRaw}. */
788
812
  getExternalSpan(spanId: string, options?: {
789
813
  view?: "full" | "replay";
790
- }): Promise<ExternalSpanResponse>;
814
+ }): Promise<SpanRawResponse>;
791
815
  /**
792
816
  * Fetch the span tree for a root span.
793
817
  * Blocking GET request.
794
818
  *
795
819
  * Pass `includeOutputs: false` for a payload-free tree (structure +
796
- * `externalSpanId` only), so recorded outputs are fetched lazily per mocked
820
+ * `spanId` only), so recorded outputs are fetched lazily per mocked
797
821
  * span instead of all up front. Omit it (default eager) for `mock: "all"`.
798
822
  * Pass `includeRootOutput: false` when the root was already fetched.
799
823
  */
800
- getSpanTree(externalSpanId: string, options?: {
824
+ getSpanTree(spanId: string, options?: {
801
825
  includeOutputs?: boolean;
802
826
  includeRootOutput?: boolean;
803
827
  }): Promise<SpanTreeResponse>;
@@ -925,9 +949,12 @@ interface ResumeReplayResponse {
925
949
  includeDbBranchLease: boolean;
926
950
  dbBranchSettings: DbBranchSettings | null;
927
951
  }
928
- interface ExternalSpanResponse {
952
+ interface SpanRawResponse {
929
953
  id: string;
930
- externalTraceId: string;
954
+ /** The source trace id of the trace this span belongs to. */
955
+ traceId?: string;
956
+ /** @deprecated Older servers send the trace id here. Use `traceId`. */
957
+ externalTraceId?: string;
931
958
  rawData: {
932
959
  span_data: {
933
960
  input: unknown;
@@ -991,11 +1018,13 @@ interface SpanTreeNode {
991
1018
  /** Upstream platform span id. Stable structural identity; NOT the row id. */
992
1019
  sourceSpanId: string;
993
1020
  /**
994
- * The `externalSpans` row id, accepted by {@link HttpClient.getExternalSpan}.
1021
+ * The Bitfab span row id, accepted by {@link HttpClient.getSpanRaw}.
995
1022
  * Distinct from `sourceSpanId`; used to lazily fetch this node's output when
996
1023
  * the tree was fetched with `includeOutputs: false`. Optional so trees from
997
1024
  * older servers (which omit it) still deserialize.
998
1025
  */
1026
+ spanId?: string;
1027
+ /** @deprecated Older servers send the span row id here. Use `spanId`. */
999
1028
  externalSpanId?: string;
1000
1029
  traceFunctionKey: string;
1001
1030
  spanName: string;
@@ -2429,6 +2458,40 @@ type HumanVerdictOutcome = {
2429
2458
  label: boolean;
2430
2459
  action: "set";
2431
2460
  };
2461
+ /**
2462
+ * One span a saved verdict cites. `spanId` and `text` are always present.
2463
+ * Evidence written by Bitfab's assertion judge also carries `field`, `ranges`,
2464
+ * and `spanChanged`, which point at the exact passages the judge read.
2465
+ */
2466
+ type VerdictEvidenceItem = {
2467
+ spanId: string;
2468
+ /**
2469
+ * What the span shows. For a judge item whose span is unchanged, the full
2470
+ * text of `ranges` read from the span, joined by a newline, an ellipsis, and
2471
+ * a newline. When `spanChanged` is true, only a short preview saved with the
2472
+ * verdict.
2473
+ */
2474
+ text: string;
2475
+ /**
2476
+ * The span field the judge read: `summary`, `input`, `output`, `reasoning`,
2477
+ * `content`, `metadata`, `errors`, `contexts`, or `llm_usage`.
2478
+ */
2479
+ field?: string;
2480
+ /**
2481
+ * Character ranges `[start, end)` into the field's text as the judge saw it:
2482
+ * a string field as is, any other value as JSON indented by two spaces.
2483
+ * Indexes are JavaScript string indexes (UTF-16 code units). Use them to
2484
+ * highlight only when `spanChanged` is `false`.
2485
+ */
2486
+ ranges?: Array<[number, number]>;
2487
+ /**
2488
+ * True when the span no longer matches what was judged: `text` is then only
2489
+ * a preview and `ranges` must not be used to highlight anything.
2490
+ */
2491
+ spanChanged?: boolean;
2492
+ };
2493
+ /** The evidence on a saved verdict: one item per span cited. */
2494
+ type VerdictEvidence = VerdictEvidenceItem[];
2432
2495
  /** One assertion's verdict on a trace. */
2433
2496
  type AssertionVerdict = {
2434
2497
  assertionId: string;
@@ -2438,7 +2501,7 @@ type AssertionVerdict = {
2438
2501
  verdictStatus: VerdictStatus;
2439
2502
  source: VerdictSource;
2440
2503
  annotation: string | null;
2441
- evidence: Justification | null;
2504
+ evidence: VerdictEvidence | null;
2442
2505
  confidence: VerdictConfidence | null;
2443
2506
  approved: boolean;
2444
2507
  /** @deprecated Use {@link AssertionVerdict.verdictStatus}. */
@@ -2454,7 +2517,7 @@ type TraceVerdicts = {
2454
2517
  verdict: Verdict | null;
2455
2518
  verdictStatus: VerdictStatus;
2456
2519
  annotation: string | null;
2457
- evidence: Justification | null;
2520
+ evidence: VerdictEvidence | null;
2458
2521
  approved: boolean;
2459
2522
  passed: number;
2460
2523
  failed: number;
@@ -3976,7 +4039,7 @@ declare class BitfabOpenAITracingProcessor implements TracingProcessor {
3976
4039
  /**
3977
4040
  * Called when a trace is started.
3978
4041
  * If there's an active withSpan context, the trace ID is remapped to the
3979
- * outer trace and sent to pre-create the external_traces row on the server.
4042
+ * outer trace and sent to pre-create the trace row on the server.
3980
4043
  */
3981
4044
  onTraceStart(trace: Trace): Promise<void>;
3982
4045
  /**
@@ -5362,7 +5425,7 @@ interface CommitRef {
5362
5425
  /**
5363
5426
  * SDK version from package.json (injected at build time)
5364
5427
  */
5365
- declare const __version__ = "0.74.6";
5428
+ declare const __version__ = "0.75.0";
5366
5429
  //#endregion
5367
5430
  //#region src/constants.d.ts
5368
5431
  /**
@@ -5504,4 +5567,4 @@ declare function seedFromRegistry(registry: ReplayRegistry, pipeline: string, ca
5504
5567
  run?: boolean;
5505
5568
  }): Promise<SeedResult>;
5506
5569
  //#endregion
5507
- export { RivetEffectType as $, TraceAssertion as $n, AssertionCategoriesClient as $r, LabelSource as $t, SpanMethodDecoratorContext as A, ReplayNodeIdentity as Ai, GenerateScenarioOptions as An, DatasetGraderRef as Ar, LangGraphIntegrationOptions as At, getCurrentTrace as B, Assignee as Bi, ScenarioAction as Bn, RemoveDatasetGradersResult as Br, GraderVerdictSource as Bt, NodeMethodDecorator as C, SpanNodeMeta as Ci, AssertionGenerationTimeoutError as Cn, ExperimentTally as Cr, PiIntegrationOptions as Ct, SeedCaseOptions as D, DbSnapshotProvider as Di, AssertionRewriteStatus as Dn, AddDatasetGradersResult as Dr, BitfabAgentMiddleware as Dt, ReseedResult as E, DbSnapshotConfig as Ei, AssertionRewrite as En, ListExperimentsParams as Er, BitfabOpenAIAgentHandler as Et, WrapOpenAIResponsesOptions as F, BamlExecutionResult as Fi, SaveScenarioData as Fn, GraderRerunProgress as Fr, GraderLabelOutcome as Ft, TracingProcessor as G, ScenarioDataOrigin as Gn, SaveDatasetResult as Gr, AssertionVerdict as Gt, ActiveSpanContext as H, JustificationSpan as Hi, ScenarioCreationStatus as Hn, RerunGradersOptions as Hr, GradersClient as Ht, WrapOpenRouterOptions as I, ProviderDefinition as Ii, SaveScenarioHistoryEntry as In, GraderRerunResult as Ir, GraderLabelSource as It, SpanListParams as J, ScenarioHistoryEntry as Jn, BitfabVercelAiHandler as Jr, HumanVerdictOutcome as Jt, ListedSpan as K, ScenarioDataSources as Kn, UpdateDatasetParams as Kr, HumanLabelOutcome as Kt, WrappedBamlFn as L, ApprovalFields as Li, SaveScenarioParams as Ln, GraderRerunStatus as Lr, GraderLabelUpdate as Lt, WrapAnthropicOptions as M, SelectiveReplayOptions as Mi, SaveAssertionsAllParams as Mn, DatasetsClient as Mr, GetGraderLabelsParams as Mt, WrapBAMLOptions as N, SelectiveReplayReport as Ni, SaveAssertionsParams as Nn, GraderRerun as Nr, GetGraderVerdictsParams as Nt, SeedRunOptions as O, DbSnapshotRef as Oi, AssertionVerdictEvidence as On, AddDatasetTracesResult as Or, BitfabLangGraphAgent as Ot, WrapJevOptions as P, AllowedEnvVars as Pi, SaveScenarioActualOutcome as Pn, GraderRerunError as Pr, GraderLabel as Pt, RivetContextLike as Q, ScenarioTrigger as Qn, BitfabClaudeAgentHandler as Qr, LabelOutcome as Qt, getCurrentReplayBranch as R, ApprovalState as Ri, SavedTraceAssertion as Rn, GraderRerunTimeoutError as Rr, GraderVerdict as Rt, DetachedTrace as S, NodeMatcher as Si, AssertionGenerationStatus as Sn, ExperimentSummaryResult as Sr, BitfabPiIntegration as St, ReseedOptions as T, MixedTracingError as Ti, AssertionLabelEvidence as Tn, ExperimentsClient as Tr, OrganizationMembersClient as Tt, BitfabOpenAITracingProcessor as U, ScenarioData as Un, RerunGradersResult as Ur, ArchiveLabelTarget as Ut, CaptureSurface as V, Justification as Vi, ScenarioActualOutcome as Vn, RemoveDatasetTracesResult as Vr, GraderVerdictUpdate as Vt, TraceResponse as W, ScenarioDataAppend as Wn, SaveDatasetParams as Wr, ArchiveVerdictTarget as Wt, SpansClient as X, ScenarioRecordInput as Xn, VercelGenerateResult as Xr, LabelAction as Xt, SpanListResult as Y, ScenarioRecord as Yn, VercelCallParams as Yr, HumanVerdictUpdate as Yt, BitfabRivetIntegration as Z, ScenarioSource as Zn, VercelStreamResult as Zr, LabelConfidence as Zt, BitfabConfig as _, MockOverrideCtx as _i, AssertionCode as _n, ExperimentStatus as _r, TraceIngestionType as _t, ReplayRegistryOptions as a, SaveAssertionCategoryParams as ai, TraceLabels as an, TraceSearchResult as ar, DbBranchOptions as at, CurrentSpan as b, MockValue as bi, AssertionGeneration as bn, ExperimentSummaryExampleTrace as br, ReplayInterrupt as bt, SeedResult as c, CodeChangeFile as ci, VerdictAction as cn, TracesClient as cr, ReplayError as ct, seedFromRegistry as d, SpanOccurrence as di, VerdictSource as dn, ExperimentCodeChangeTotals as dr, ReplayItemFinishProgress as dt, AssertionCategory as ei, LabelStatus as en, TraceAssertionSource as er, RivetIntegrationOptions as et, finalizers as f, SpanType as fi, VerdictStatus as fn, ExperimentJitter as fr, ReplayItemStartProgress as ft, Bitfab as g, MockOverride as gi, ArchiveAssertionsParams as gn, ExperimentRunBy as gr, ReplayResult as gt, CommitRef as h, DbBranchTimings as hi, VerdictsClient as hn, ExperimentRollupResult as hr, ReplayProgressItem as ht, ReplayRegistryContext as i, CategorySummary as ii, PassFailVerdict as in, TraceSearchParams as ir, BITFAB_PROGRESS_PREFIX as it, SpanOptions as j, SelectiveReplayDecision as ji, SaveAssertion as jn, DatasetTraceIds as jr, BitfabLangGraphCallbackHandler as jt, SpanMethodDecorator as k, SUPPORTED_PROVIDERS as ki, GenerateAssertionsOptions as kn, Dataset as kr, BitfabLangGraphIntegration as kt, defineReplayRegistry as l, HttpClient as li, VerdictConfidence as ln, Experiment as lr, ReplayExperiment as lt, __version__ as m, flushTraces as mi, VerdictUpdate as mn, ExperimentRollup as mr, ReplayProgress as mt, ReplayRegistration as n, CategoriesClient as ni, LabelUpdate as nn, TraceAssertionsUpdate as nr, AdaptContext as nt, ReseedRegistryResult as o, SaveCategoryParams as oi, TraceVerdicts as on, TraceTarget as or, DbBranchReplayError as ot, DEFAULT_SERVICE_URL as p, TokenUsage as pi, VerdictTarget as pn, ExperimentPage as pr, ReplayOptions as pt, SpanListField as q, ScenarioGeneration as qn, BitfabLanguageModelMiddleware as qr, HumanLabelUpdate as qt, ReplayRegistry as r, Category as ri, LabelsClient as rn, TraceSearchFilters as rr, AdaptInputsFn as rt, SeedCase as s, CapturedSpan as si, Verdict as sn, TraceTargetOccurrence as sr, MockStrategy as st, ReplayOptionsFactory as t, AssertionCategorySummary as ti, LabelTarget as tn, TraceAssertionsResult as tr, ReplayBranch as tt, reseedFromRegistry as u, SpanLookup as ui, VerdictOutcome as un, ExperimentCategoryTally as ur, ReplayItem as ut, BitfabFunction as v, MockOverrideInput as vi, AssertionCodeDraft as vn, ExperimentSummary as vr, reportReplayProgress as vt, NodeOptions as w, BitfabError as wi, AssertionKind as wn, ExperimentTotals as wr, OrganizationMember as wt, CurrentTrace as x, NO_MOCK_OVERRIDE as xi, AssertionGenerationError as xn, ExperimentSummaryFacts as xr, ReplayInterruptSignal as xt, CaptureWhen as y, MockOverrideResolver as yi, AssertionEvidenceParameter as yn, ExperimentSummaryBeforeAfter as yr, serializeReplayResult as yt, getCurrentSpan as z, Approver as zi, Scenario as zn, ListDatasetsParams as zr, GraderVerdictOutcome as zt };
5570
+ export { RivetEffectType as $, ScenarioSource as $n, VercelStreamResult as $r, LabelSource as $t, SpanMethodDecoratorContext as A, DbSnapshotRef as Ai, AssertionVerdictEvidence as An, AddDatasetTracesResult as Ar, LangGraphIntegrationOptions as At, getCurrentTrace as B, ApprovalState as Bi, SavedTraceAssertion as Bn, GraderRerunTimeoutError as Br, GraderVerdictSource as Bt, NodeMethodDecorator as C, NO_MOCK_OVERRIDE as Ci, AssertionGenerationError as Cn, ExperimentSummaryFacts as Cr, PiIntegrationOptions as Ct, SeedCaseOptions as D, MixedTracingError as Di, AssertionLabelEvidence as Dn, ExperimentsClient as Dr, BitfabAgentMiddleware as Dt, ReseedResult as E, BitfabError as Ei, AssertionKind as En, ExperimentTotals as Er, BitfabOpenAIAgentHandler as Et, WrapOpenAIResponsesOptions as F, SelectiveReplayReport as Fi, SaveAssertionsParams as Fn, GraderRerun as Fr, GraderLabelOutcome as Ft, TracingProcessor as G, ScenarioData as Gn, RerunGradersResult as Gr, AssertionVerdict as Gt, ActiveSpanContext as H, Assignee as Hi, ScenarioAction as Hn, RemoveDatasetGradersResult as Hr, GradersClient as Ht, WrapOpenRouterOptions as I, AllowedEnvVars as Ii, SaveScenarioActualOutcome as In, GraderRerunError as Ir, GraderLabelSource as It, SpanListParams as J, ScenarioDataSources as Jn, UpdateDatasetParams as Jr, HumanVerdictOutcome as Jt, ListedSpan as K, ScenarioDataAppend as Kn, SaveDatasetParams as Kr, HumanLabelOutcome as Kt, WrappedBamlFn as L, BamlExecutionResult as Li, SaveScenarioData as Ln, GraderRerunProgress as Lr, GraderLabelUpdate as Lt, WrapAnthropicOptions as M, ReplayNodeIdentity as Mi, GenerateScenarioOptions as Mn, DatasetGraderRef as Mr, GetGraderLabelsParams as Mt, WrapBAMLOptions as N, SelectiveReplayDecision as Ni, SaveAssertion as Nn, DatasetTraceIds as Nr, GetGraderVerdictsParams as Nt, SeedRunOptions as O, DbSnapshotConfig as Oi, AssertionRewrite as On, ListExperimentsParams as Or, BitfabLangGraphAgent as Ot, WrapJevOptions as P, SelectiveReplayOptions as Pi, SaveAssertionsAllParams as Pn, DatasetsClient as Pr, GraderLabel as Pt, RivetContextLike as Q, ScenarioRecordInput as Qn, VercelGenerateResult as Qr, LabelOutcome as Qt, getCurrentReplayBranch as R, ProviderDefinition as Ri, SaveScenarioHistoryEntry as Rn, GraderRerunResult as Rr, GraderVerdict as Rt, DetachedTrace as S, MockValue as Si, AssertionGeneration as Sn, ExperimentSummaryExampleTrace as Sr, BitfabPiIntegration as St, ReseedOptions as T, SpanNodeMeta as Ti, AssertionGenerationTimeoutError as Tn, ExperimentTally as Tr, OrganizationMembersClient as Tt, BitfabOpenAITracingProcessor as U, Justification as Ui, ScenarioActualOutcome as Un, RemoveDatasetTracesResult as Ur, ArchiveLabelTarget as Ut, CaptureSurface as V, Approver as Vi, Scenario as Vn, ListDatasetsParams as Vr, GraderVerdictUpdate as Vt, TraceResponse as W, JustificationSpan as Wi, ScenarioCreationStatus as Wn, RerunGradersOptions as Wr, ArchiveVerdictTarget as Wt, SpansClient as X, ScenarioHistoryEntry as Xn, BitfabVercelAiHandler as Xr, LabelAction as Xt, SpanListResult as Y, ScenarioGeneration as Yn, BitfabLanguageModelMiddleware as Yr, HumanVerdictUpdate as Yt, BitfabRivetIntegration as Z, ScenarioRecord as Zn, VercelCallParams as Zr, LabelConfidence as Zt, BitfabConfig as _, DbBranchTimings as _i, VerdictsClient as _n, ExperimentRollupResult as _r, TraceIngestionType as _t, ReplayRegistryOptions as a, Category as ai, TraceLabels as an, TraceSearchFilters as ar, DbBranchOptions as at, CurrentSpan as b, MockOverrideInput as bi, AssertionCodeDraft as bn, ExperimentSummary as br, ReplayInterrupt as bt, SeedResult as c, SaveCategoryParams as ci, VerdictAction as cn, TraceTarget as cr, ReplayError as ct, seedFromRegistry as d, HttpClient as di, VerdictEvidenceItem as dn, Experiment as dr, ReplayItemFinishProgress as dt, BitfabClaudeAgentHandler as ei, LabelStatus as en, ScenarioTrigger as er, RivetIntegrationOptions as et, finalizers as f, SpanLookup as fi, VerdictOutcome as fn, ExperimentCategoryTally as fr, ReplayItemStartProgress as ft, Bitfab as g, flushTraces as gi, VerdictUpdate as gn, ExperimentRollup as gr, ReplayResult as gt, CommitRef as h, TokenUsage as hi, VerdictTarget as hn, ExperimentPage as hr, ReplayProgressItem as ht, ReplayRegistryContext as i, CategoriesClient as ii, PassFailVerdict as in, TraceAssertionsUpdate as ir, BITFAB_PROGRESS_PREFIX as it, SpanOptions as j, SUPPORTED_PROVIDERS as ji, GenerateAssertionsOptions as jn, Dataset as jr, BitfabLangGraphCallbackHandler as jt, SpanMethodDecorator as k, DbSnapshotProvider as ki, AssertionRewriteStatus as kn, AddDatasetGradersResult as kr, BitfabLangGraphIntegration as kt, defineReplayRegistry as l, CapturedSpan as li, VerdictConfidence as ln, TraceTargetOccurrence as lr, ReplayExperiment as lt, __version__ as m, SpanType as mi, VerdictStatus as mn, ExperimentJitter as mr, ReplayProgress as mt, ReplayRegistration as n, AssertionCategory as ni, LabelUpdate as nn, TraceAssertionSource as nr, AdaptContext as nt, ReseedRegistryResult as o, CategorySummary as oi, TraceVerdicts as on, TraceSearchParams as or, DbBranchReplayError as ot, DEFAULT_SERVICE_URL as p, SpanOccurrence as pi, VerdictSource as pn, ExperimentCodeChangeTotals as pr, ReplayOptions as pt, SpanListField as q, ScenarioDataOrigin as qn, SaveDatasetResult as qr, HumanLabelUpdate as qt, ReplayRegistry as r, AssertionCategorySummary as ri, LabelsClient as rn, TraceAssertionsResult as rr, AdaptInputsFn as rt, SeedCase as s, SaveAssertionCategoryParams as si, Verdict as sn, TraceSearchResult as sr, MockStrategy as st, ReplayOptionsFactory as t, AssertionCategoriesClient as ti, LabelTarget as tn, TraceAssertion as tr, ReplayBranch as tt, reseedFromRegistry as u, CodeChangeFile as ui, VerdictEvidence as un, TracesClient as ur, ReplayItem as ut, BitfabFunction as v, MockOverride as vi, ArchiveAssertionsParams as vn, ExperimentRunBy as vr, reportReplayProgress as vt, NodeOptions as w, NodeMatcher as wi, AssertionGenerationStatus as wn, ExperimentSummaryResult as wr, OrganizationMember as wt, CurrentTrace as x, MockOverrideResolver as xi, AssertionEvidenceParameter as xn, ExperimentSummaryBeforeAfter as xr, ReplayInterruptSignal as xt, CaptureWhen as y, MockOverrideCtx as yi, AssertionCode as yn, ExperimentStatus as yr, serializeReplayResult as yt, getCurrentSpan as z, ApprovalFields as zi, SaveScenarioParams as zn, GraderRerunStatus as zr, GraderVerdictOutcome as zt };
@@ -338,13 +338,13 @@ declare class SelectiveReplayRuntime {
338
338
  * Under the eager path (`mock: "all"`) `output`/`outputMeta` are populated
339
339
  * inline, even when overrides are present. Under a non-`all` path that needs a
340
340
  * tree (`marked`, or `none` with overrides), they are absent and the recorded
341
- * output is fetched on demand via `externalSpanId` - see
341
+ * output is fetched on demand via `spanId`, see
342
342
  * {@link ReplayContext.fetchSpanOutput}.
343
343
  */
344
344
  interface MockSpan {
345
345
  sourceSpanId: string;
346
- /** Row id accepted by `getExternalSpan`, for the lazy per-span output fetch. */
347
- externalSpanId?: string;
346
+ /** Bitfab span row id accepted by `getSpanRaw`, for the lazy output fetch. */
347
+ spanId?: string;
348
348
  output?: unknown;
349
349
  outputMeta?: unknown;
350
350
  }
@@ -434,9 +434,10 @@ interface ReplayContext {
434
434
  traceId?: string;
435
435
  inputSourceSpanId?: string;
436
436
  /**
437
- * External trace ID from `external_traces.id`. Used for span-chain
438
- * lookup against the source platform's trace tree (Braintrust, etc.).
439
- * NOT the same as the Bitfab `traceId` - see `sourceBitfabTraceId`.
437
+ * Source trace id of the span that produced this replay item's input.
438
+ * Used for span-chain lookup against the source platform's trace tree
439
+ * (Braintrust, etc.). NOT the same as the Bitfab `traceId`, see
440
+ * `sourceBitfabTraceId`.
440
441
  */
441
442
  inputSourceTraceId?: string;
442
443
  /**
@@ -457,12 +458,12 @@ interface ReplayContext {
457
458
  mockOverrides?: MockOverride[];
458
459
  /**
459
460
  * Memoized lazy fetch of a span's recorded output (deserialized), keyed by
460
- * `externalSpanId`. Present ONLY on a non-`all` path that needs a tree
461
+ * `spanId`. Present ONLY on a non-`all` path that needs a tree
461
462
  * (`marked`, or `none` with overrides); absent under `mock: "all"`, where
462
463
  * outputs are inline even when overrides are present. Its presence is the
463
464
  * signal that outputs must be fetched rather than read inline.
464
465
  */
465
- fetchSpanOutput?: (externalSpanId: string) => Promise<unknown>;
466
+ fetchSpanOutput?: (spanId: string) => Promise<unknown>;
466
467
  /** Internal framework state captured on the historical root span. */
467
468
  integrationFixtures?: Map<string, unknown>;
468
469
  /**
@@ -607,6 +608,9 @@ interface DeliveryReport {
607
608
  */
608
609
  serverTraceId?: string;
609
610
  }
611
+ type SpanPayloadTransform = (payload: Record<string, unknown>, submit: SimulationPlanSubmit, drop: () => void) => void;
612
+ type TracePayloadTransform = (payload: Record<string, unknown>, submit: SimulationPlanSubmit) => void;
613
+ type ReleaseHeldSpans = (timeoutMs: number) => Promise<boolean> | Promise<void>;
610
614
  declare class HttpClient {
611
615
  private readonly apiKey;
612
616
  private readonly serviceUrl;
@@ -617,10 +621,19 @@ declare class HttpClient {
617
621
  readonly traceCompletion: TraceCompletion;
618
622
  private closed;
619
623
  private closing;
620
- externalSpanTransform: ((payload: Record<string, unknown>, submit: SimulationPlanSubmit, drop: () => void) => void) | undefined;
621
- externalTraceTransform: ((payload: Record<string, unknown>, submit: SimulationPlanSubmit) => void) | undefined;
622
- releaseHeldExternalSpans: ((timeoutMs: number) => Promise<boolean> | Promise<void>) | undefined;
624
+ spanPayloadTransform: SpanPayloadTransform | undefined;
625
+ tracePayloadTransform: TracePayloadTransform | undefined;
626
+ releaseHeldSpans: ReleaseHeldSpans | undefined;
623
627
  stopSimulationPlan: (() => void) | undefined;
628
+ /** @deprecated Use `spanPayloadTransform`. */
629
+ get externalSpanTransform(): SpanPayloadTransform | undefined;
630
+ set externalSpanTransform(transform: SpanPayloadTransform | undefined);
631
+ /** @deprecated Use `tracePayloadTransform`. */
632
+ get externalTraceTransform(): TracePayloadTransform | undefined;
633
+ set externalTraceTransform(transform: TracePayloadTransform | undefined);
634
+ /** @deprecated Use `releaseHeldSpans`. */
635
+ get releaseHeldExternalSpans(): ReleaseHeldSpans | undefined;
636
+ set releaseHeldExternalSpans(release: ReleaseHeldSpans | undefined);
624
637
  constructor(config: HttpClientConfig);
625
638
  /**
626
639
  * Resolve the API key at the moment it is needed (request time), invoking
@@ -748,16 +761,23 @@ declare class HttpClient {
748
761
  * the OTLP carrier has no path to carry it.
749
762
  */
750
763
  sendInternalTrace(functionId: string, payload: Record<string, unknown>): void;
751
- sendExternalSpan(payload: Record<string, unknown>): void;
752
- submitExternalSpan(payload: Record<string, unknown>): void;
764
+ sendSpanPayload(payload: Record<string, unknown>): void;
765
+ submitSpanPayload(payload: Record<string, unknown>): void;
753
766
  /**
754
- * Queue an external trace completion (from OpenAI tracing) onto this
755
- * client's batching transport. Fire-and-forget for the same reason as
756
- * {@link HttpClient.sendExternalSpan}; replay confirms persistence with the
767
+ * Queue a trace start or completion onto this client's batching transport. Fire-and-forget for the same reason as
768
+ * {@link HttpClient.sendSpanPayload}; replay confirms persistence with the
757
769
  * server-authoritative barrier in `replay.ts`, not by awaiting this call.
758
770
  */
771
+ sendTracePayload(rawPayload: Record<string, unknown>): void;
772
+ private sendCountedTracePayload;
773
+ submitTracePayload(payload: Record<string, unknown>): void;
774
+ /** @deprecated Use {@link HttpClient.sendSpanPayload}. */
775
+ sendExternalSpan(payload: Record<string, unknown>): void;
776
+ /** @deprecated Use {@link HttpClient.submitSpanPayload}. */
777
+ submitExternalSpan(payload: Record<string, unknown>): void;
778
+ /** @deprecated Use {@link HttpClient.sendTracePayload}. */
759
779
  sendExternalTrace(rawPayload: Record<string, unknown>): void;
760
- private sendCountedExternalTrace;
780
+ /** @deprecated Use {@link HttpClient.submitTracePayload}. */
761
781
  submitExternalTrace(payload: Record<string, unknown>): void;
762
782
  /**
763
783
  * Partial update of an existing trace identified by its Bitfab trace ID.
@@ -781,23 +801,27 @@ declare class HttpClient {
781
801
  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, categoryIds?: string[]): Promise<StartReplayResponse>;
782
802
  resumeReplay(experimentId: string, traceFunctionKey: string, codeChangeFiles?: CodeChangeFile[] | null, force?: boolean): Promise<ResumeReplayResponse>;
783
803
  /**
784
- * Fetch an external span by ID.
804
+ * Fetch one span by its Bitfab span row id.
785
805
  * Blocking GET request.
786
806
  * The replay view limits rawData to input/output serialization fields.
787
807
  */
808
+ getSpanRaw(spanId: string, options?: {
809
+ view?: "full" | "replay";
810
+ }): Promise<SpanRawResponse>;
811
+ /** @deprecated Use {@link HttpClient.getSpanRaw}. */
788
812
  getExternalSpan(spanId: string, options?: {
789
813
  view?: "full" | "replay";
790
- }): Promise<ExternalSpanResponse>;
814
+ }): Promise<SpanRawResponse>;
791
815
  /**
792
816
  * Fetch the span tree for a root span.
793
817
  * Blocking GET request.
794
818
  *
795
819
  * Pass `includeOutputs: false` for a payload-free tree (structure +
796
- * `externalSpanId` only), so recorded outputs are fetched lazily per mocked
820
+ * `spanId` only), so recorded outputs are fetched lazily per mocked
797
821
  * span instead of all up front. Omit it (default eager) for `mock: "all"`.
798
822
  * Pass `includeRootOutput: false` when the root was already fetched.
799
823
  */
800
- getSpanTree(externalSpanId: string, options?: {
824
+ getSpanTree(spanId: string, options?: {
801
825
  includeOutputs?: boolean;
802
826
  includeRootOutput?: boolean;
803
827
  }): Promise<SpanTreeResponse>;
@@ -925,9 +949,12 @@ interface ResumeReplayResponse {
925
949
  includeDbBranchLease: boolean;
926
950
  dbBranchSettings: DbBranchSettings | null;
927
951
  }
928
- interface ExternalSpanResponse {
952
+ interface SpanRawResponse {
929
953
  id: string;
930
- externalTraceId: string;
954
+ /** The source trace id of the trace this span belongs to. */
955
+ traceId?: string;
956
+ /** @deprecated Older servers send the trace id here. Use `traceId`. */
957
+ externalTraceId?: string;
931
958
  rawData: {
932
959
  span_data: {
933
960
  input: unknown;
@@ -991,11 +1018,13 @@ interface SpanTreeNode {
991
1018
  /** Upstream platform span id. Stable structural identity; NOT the row id. */
992
1019
  sourceSpanId: string;
993
1020
  /**
994
- * The `externalSpans` row id, accepted by {@link HttpClient.getExternalSpan}.
1021
+ * The Bitfab span row id, accepted by {@link HttpClient.getSpanRaw}.
995
1022
  * Distinct from `sourceSpanId`; used to lazily fetch this node's output when
996
1023
  * the tree was fetched with `includeOutputs: false`. Optional so trees from
997
1024
  * older servers (which omit it) still deserialize.
998
1025
  */
1026
+ spanId?: string;
1027
+ /** @deprecated Older servers send the span row id here. Use `spanId`. */
999
1028
  externalSpanId?: string;
1000
1029
  traceFunctionKey: string;
1001
1030
  spanName: string;
@@ -2429,6 +2458,40 @@ type HumanVerdictOutcome = {
2429
2458
  label: boolean;
2430
2459
  action: "set";
2431
2460
  };
2461
+ /**
2462
+ * One span a saved verdict cites. `spanId` and `text` are always present.
2463
+ * Evidence written by Bitfab's assertion judge also carries `field`, `ranges`,
2464
+ * and `spanChanged`, which point at the exact passages the judge read.
2465
+ */
2466
+ type VerdictEvidenceItem = {
2467
+ spanId: string;
2468
+ /**
2469
+ * What the span shows. For a judge item whose span is unchanged, the full
2470
+ * text of `ranges` read from the span, joined by a newline, an ellipsis, and
2471
+ * a newline. When `spanChanged` is true, only a short preview saved with the
2472
+ * verdict.
2473
+ */
2474
+ text: string;
2475
+ /**
2476
+ * The span field the judge read: `summary`, `input`, `output`, `reasoning`,
2477
+ * `content`, `metadata`, `errors`, `contexts`, or `llm_usage`.
2478
+ */
2479
+ field?: string;
2480
+ /**
2481
+ * Character ranges `[start, end)` into the field's text as the judge saw it:
2482
+ * a string field as is, any other value as JSON indented by two spaces.
2483
+ * Indexes are JavaScript string indexes (UTF-16 code units). Use them to
2484
+ * highlight only when `spanChanged` is `false`.
2485
+ */
2486
+ ranges?: Array<[number, number]>;
2487
+ /**
2488
+ * True when the span no longer matches what was judged: `text` is then only
2489
+ * a preview and `ranges` must not be used to highlight anything.
2490
+ */
2491
+ spanChanged?: boolean;
2492
+ };
2493
+ /** The evidence on a saved verdict: one item per span cited. */
2494
+ type VerdictEvidence = VerdictEvidenceItem[];
2432
2495
  /** One assertion's verdict on a trace. */
2433
2496
  type AssertionVerdict = {
2434
2497
  assertionId: string;
@@ -2438,7 +2501,7 @@ type AssertionVerdict = {
2438
2501
  verdictStatus: VerdictStatus;
2439
2502
  source: VerdictSource;
2440
2503
  annotation: string | null;
2441
- evidence: Justification | null;
2504
+ evidence: VerdictEvidence | null;
2442
2505
  confidence: VerdictConfidence | null;
2443
2506
  approved: boolean;
2444
2507
  /** @deprecated Use {@link AssertionVerdict.verdictStatus}. */
@@ -2454,7 +2517,7 @@ type TraceVerdicts = {
2454
2517
  verdict: Verdict | null;
2455
2518
  verdictStatus: VerdictStatus;
2456
2519
  annotation: string | null;
2457
- evidence: Justification | null;
2520
+ evidence: VerdictEvidence | null;
2458
2521
  approved: boolean;
2459
2522
  passed: number;
2460
2523
  failed: number;
@@ -3976,7 +4039,7 @@ declare class BitfabOpenAITracingProcessor implements TracingProcessor {
3976
4039
  /**
3977
4040
  * Called when a trace is started.
3978
4041
  * If there's an active withSpan context, the trace ID is remapped to the
3979
- * outer trace and sent to pre-create the external_traces row on the server.
4042
+ * outer trace and sent to pre-create the trace row on the server.
3980
4043
  */
3981
4044
  onTraceStart(trace: Trace): Promise<void>;
3982
4045
  /**
@@ -5362,7 +5425,7 @@ interface CommitRef {
5362
5425
  /**
5363
5426
  * SDK version from package.json (injected at build time)
5364
5427
  */
5365
- declare const __version__ = "0.74.6";
5428
+ declare const __version__ = "0.75.0";
5366
5429
  //#endregion
5367
5430
  //#region src/constants.d.ts
5368
5431
  /**
@@ -5504,4 +5567,4 @@ declare function seedFromRegistry(registry: ReplayRegistry, pipeline: string, ca
5504
5567
  run?: boolean;
5505
5568
  }): Promise<SeedResult>;
5506
5569
  //#endregion
5507
- export { RivetEffectType as $, TraceAssertion as $n, AssertionCategoriesClient as $r, LabelSource as $t, SpanMethodDecoratorContext as A, ReplayNodeIdentity as Ai, GenerateScenarioOptions as An, DatasetGraderRef as Ar, LangGraphIntegrationOptions as At, getCurrentTrace as B, Assignee as Bi, ScenarioAction as Bn, RemoveDatasetGradersResult as Br, GraderVerdictSource as Bt, NodeMethodDecorator as C, SpanNodeMeta as Ci, AssertionGenerationTimeoutError as Cn, ExperimentTally as Cr, PiIntegrationOptions as Ct, SeedCaseOptions as D, DbSnapshotProvider as Di, AssertionRewriteStatus as Dn, AddDatasetGradersResult as Dr, BitfabAgentMiddleware as Dt, ReseedResult as E, DbSnapshotConfig as Ei, AssertionRewrite as En, ListExperimentsParams as Er, BitfabOpenAIAgentHandler as Et, WrapOpenAIResponsesOptions as F, BamlExecutionResult as Fi, SaveScenarioData as Fn, GraderRerunProgress as Fr, GraderLabelOutcome as Ft, TracingProcessor as G, ScenarioDataOrigin as Gn, SaveDatasetResult as Gr, AssertionVerdict as Gt, ActiveSpanContext as H, JustificationSpan as Hi, ScenarioCreationStatus as Hn, RerunGradersOptions as Hr, GradersClient as Ht, WrapOpenRouterOptions as I, ProviderDefinition as Ii, SaveScenarioHistoryEntry as In, GraderRerunResult as Ir, GraderLabelSource as It, SpanListParams as J, ScenarioHistoryEntry as Jn, BitfabVercelAiHandler as Jr, HumanVerdictOutcome as Jt, ListedSpan as K, ScenarioDataSources as Kn, UpdateDatasetParams as Kr, HumanLabelOutcome as Kt, WrappedBamlFn as L, ApprovalFields as Li, SaveScenarioParams as Ln, GraderRerunStatus as Lr, GraderLabelUpdate as Lt, WrapAnthropicOptions as M, SelectiveReplayOptions as Mi, SaveAssertionsAllParams as Mn, DatasetsClient as Mr, GetGraderLabelsParams as Mt, WrapBAMLOptions as N, SelectiveReplayReport as Ni, SaveAssertionsParams as Nn, GraderRerun as Nr, GetGraderVerdictsParams as Nt, SeedRunOptions as O, DbSnapshotRef as Oi, AssertionVerdictEvidence as On, AddDatasetTracesResult as Or, BitfabLangGraphAgent as Ot, WrapJevOptions as P, AllowedEnvVars as Pi, SaveScenarioActualOutcome as Pn, GraderRerunError as Pr, GraderLabel as Pt, RivetContextLike as Q, ScenarioTrigger as Qn, BitfabClaudeAgentHandler as Qr, LabelOutcome as Qt, getCurrentReplayBranch as R, ApprovalState as Ri, SavedTraceAssertion as Rn, GraderRerunTimeoutError as Rr, GraderVerdict as Rt, DetachedTrace as S, NodeMatcher as Si, AssertionGenerationStatus as Sn, ExperimentSummaryResult as Sr, BitfabPiIntegration as St, ReseedOptions as T, MixedTracingError as Ti, AssertionLabelEvidence as Tn, ExperimentsClient as Tr, OrganizationMembersClient as Tt, BitfabOpenAITracingProcessor as U, ScenarioData as Un, RerunGradersResult as Ur, ArchiveLabelTarget as Ut, CaptureSurface as V, Justification as Vi, ScenarioActualOutcome as Vn, RemoveDatasetTracesResult as Vr, GraderVerdictUpdate as Vt, TraceResponse as W, ScenarioDataAppend as Wn, SaveDatasetParams as Wr, ArchiveVerdictTarget as Wt, SpansClient as X, ScenarioRecordInput as Xn, VercelGenerateResult as Xr, LabelAction as Xt, SpanListResult as Y, ScenarioRecord as Yn, VercelCallParams as Yr, HumanVerdictUpdate as Yt, BitfabRivetIntegration as Z, ScenarioSource as Zn, VercelStreamResult as Zr, LabelConfidence as Zt, BitfabConfig as _, MockOverrideCtx as _i, AssertionCode as _n, ExperimentStatus as _r, TraceIngestionType as _t, ReplayRegistryOptions as a, SaveAssertionCategoryParams as ai, TraceLabels as an, TraceSearchResult as ar, DbBranchOptions as at, CurrentSpan as b, MockValue as bi, AssertionGeneration as bn, ExperimentSummaryExampleTrace as br, ReplayInterrupt as bt, SeedResult as c, CodeChangeFile as ci, VerdictAction as cn, TracesClient as cr, ReplayError as ct, seedFromRegistry as d, SpanOccurrence as di, VerdictSource as dn, ExperimentCodeChangeTotals as dr, ReplayItemFinishProgress as dt, AssertionCategory as ei, LabelStatus as en, TraceAssertionSource as er, RivetIntegrationOptions as et, finalizers as f, SpanType as fi, VerdictStatus as fn, ExperimentJitter as fr, ReplayItemStartProgress as ft, Bitfab as g, MockOverride as gi, ArchiveAssertionsParams as gn, ExperimentRunBy as gr, ReplayResult as gt, CommitRef as h, DbBranchTimings as hi, VerdictsClient as hn, ExperimentRollupResult as hr, ReplayProgressItem as ht, ReplayRegistryContext as i, CategorySummary as ii, PassFailVerdict as in, TraceSearchParams as ir, BITFAB_PROGRESS_PREFIX as it, SpanOptions as j, SelectiveReplayDecision as ji, SaveAssertion as jn, DatasetTraceIds as jr, BitfabLangGraphCallbackHandler as jt, SpanMethodDecorator as k, SUPPORTED_PROVIDERS as ki, GenerateAssertionsOptions as kn, Dataset as kr, BitfabLangGraphIntegration as kt, defineReplayRegistry as l, HttpClient as li, VerdictConfidence as ln, Experiment as lr, ReplayExperiment as lt, __version__ as m, flushTraces as mi, VerdictUpdate as mn, ExperimentRollup as mr, ReplayProgress as mt, ReplayRegistration as n, CategoriesClient as ni, LabelUpdate as nn, TraceAssertionsUpdate as nr, AdaptContext as nt, ReseedRegistryResult as o, SaveCategoryParams as oi, TraceVerdicts as on, TraceTarget as or, DbBranchReplayError as ot, DEFAULT_SERVICE_URL as p, TokenUsage as pi, VerdictTarget as pn, ExperimentPage as pr, ReplayOptions as pt, SpanListField as q, ScenarioGeneration as qn, BitfabLanguageModelMiddleware as qr, HumanLabelUpdate as qt, ReplayRegistry as r, Category as ri, LabelsClient as rn, TraceSearchFilters as rr, AdaptInputsFn as rt, SeedCase as s, CapturedSpan as si, Verdict as sn, TraceTargetOccurrence as sr, MockStrategy as st, ReplayOptionsFactory as t, AssertionCategorySummary as ti, LabelTarget as tn, TraceAssertionsResult as tr, ReplayBranch as tt, reseedFromRegistry as u, SpanLookup as ui, VerdictOutcome as un, ExperimentCategoryTally as ur, ReplayItem as ut, BitfabFunction as v, MockOverrideInput as vi, AssertionCodeDraft as vn, ExperimentSummary as vr, reportReplayProgress as vt, NodeOptions as w, BitfabError as wi, AssertionKind as wn, ExperimentTotals as wr, OrganizationMember as wt, CurrentTrace as x, NO_MOCK_OVERRIDE as xi, AssertionGenerationError as xn, ExperimentSummaryFacts as xr, ReplayInterruptSignal as xt, CaptureWhen as y, MockOverrideResolver as yi, AssertionEvidenceParameter as yn, ExperimentSummaryBeforeAfter as yr, serializeReplayResult as yt, getCurrentSpan as z, Approver as zi, Scenario as zn, ListDatasetsParams as zr, GraderVerdictOutcome as zt };
5570
+ export { RivetEffectType as $, ScenarioSource as $n, VercelStreamResult as $r, LabelSource as $t, SpanMethodDecoratorContext as A, DbSnapshotRef as Ai, AssertionVerdictEvidence as An, AddDatasetTracesResult as Ar, LangGraphIntegrationOptions as At, getCurrentTrace as B, ApprovalState as Bi, SavedTraceAssertion as Bn, GraderRerunTimeoutError as Br, GraderVerdictSource as Bt, NodeMethodDecorator as C, NO_MOCK_OVERRIDE as Ci, AssertionGenerationError as Cn, ExperimentSummaryFacts as Cr, PiIntegrationOptions as Ct, SeedCaseOptions as D, MixedTracingError as Di, AssertionLabelEvidence as Dn, ExperimentsClient as Dr, BitfabAgentMiddleware as Dt, ReseedResult as E, BitfabError as Ei, AssertionKind as En, ExperimentTotals as Er, BitfabOpenAIAgentHandler as Et, WrapOpenAIResponsesOptions as F, SelectiveReplayReport as Fi, SaveAssertionsParams as Fn, GraderRerun as Fr, GraderLabelOutcome as Ft, TracingProcessor as G, ScenarioData as Gn, RerunGradersResult as Gr, AssertionVerdict as Gt, ActiveSpanContext as H, Assignee as Hi, ScenarioAction as Hn, RemoveDatasetGradersResult as Hr, GradersClient as Ht, WrapOpenRouterOptions as I, AllowedEnvVars as Ii, SaveScenarioActualOutcome as In, GraderRerunError as Ir, GraderLabelSource as It, SpanListParams as J, ScenarioDataSources as Jn, UpdateDatasetParams as Jr, HumanVerdictOutcome as Jt, ListedSpan as K, ScenarioDataAppend as Kn, SaveDatasetParams as Kr, HumanLabelOutcome as Kt, WrappedBamlFn as L, BamlExecutionResult as Li, SaveScenarioData as Ln, GraderRerunProgress as Lr, GraderLabelUpdate as Lt, WrapAnthropicOptions as M, ReplayNodeIdentity as Mi, GenerateScenarioOptions as Mn, DatasetGraderRef as Mr, GetGraderLabelsParams as Mt, WrapBAMLOptions as N, SelectiveReplayDecision as Ni, SaveAssertion as Nn, DatasetTraceIds as Nr, GetGraderVerdictsParams as Nt, SeedRunOptions as O, DbSnapshotConfig as Oi, AssertionRewrite as On, ListExperimentsParams as Or, BitfabLangGraphAgent as Ot, WrapJevOptions as P, SelectiveReplayOptions as Pi, SaveAssertionsAllParams as Pn, DatasetsClient as Pr, GraderLabel as Pt, RivetContextLike as Q, ScenarioRecordInput as Qn, VercelGenerateResult as Qr, LabelOutcome as Qt, getCurrentReplayBranch as R, ProviderDefinition as Ri, SaveScenarioHistoryEntry as Rn, GraderRerunResult as Rr, GraderVerdict as Rt, DetachedTrace as S, MockValue as Si, AssertionGeneration as Sn, ExperimentSummaryExampleTrace as Sr, BitfabPiIntegration as St, ReseedOptions as T, SpanNodeMeta as Ti, AssertionGenerationTimeoutError as Tn, ExperimentTally as Tr, OrganizationMembersClient as Tt, BitfabOpenAITracingProcessor as U, Justification as Ui, ScenarioActualOutcome as Un, RemoveDatasetTracesResult as Ur, ArchiveLabelTarget as Ut, CaptureSurface as V, Approver as Vi, Scenario as Vn, ListDatasetsParams as Vr, GraderVerdictUpdate as Vt, TraceResponse as W, JustificationSpan as Wi, ScenarioCreationStatus as Wn, RerunGradersOptions as Wr, ArchiveVerdictTarget as Wt, SpansClient as X, ScenarioHistoryEntry as Xn, BitfabVercelAiHandler as Xr, LabelAction as Xt, SpanListResult as Y, ScenarioGeneration as Yn, BitfabLanguageModelMiddleware as Yr, HumanVerdictUpdate as Yt, BitfabRivetIntegration as Z, ScenarioRecord as Zn, VercelCallParams as Zr, LabelConfidence as Zt, BitfabConfig as _, DbBranchTimings as _i, VerdictsClient as _n, ExperimentRollupResult as _r, TraceIngestionType as _t, ReplayRegistryOptions as a, Category as ai, TraceLabels as an, TraceSearchFilters as ar, DbBranchOptions as at, CurrentSpan as b, MockOverrideInput as bi, AssertionCodeDraft as bn, ExperimentSummary as br, ReplayInterrupt as bt, SeedResult as c, SaveCategoryParams as ci, VerdictAction as cn, TraceTarget as cr, ReplayError as ct, seedFromRegistry as d, HttpClient as di, VerdictEvidenceItem as dn, Experiment as dr, ReplayItemFinishProgress as dt, BitfabClaudeAgentHandler as ei, LabelStatus as en, ScenarioTrigger as er, RivetIntegrationOptions as et, finalizers as f, SpanLookup as fi, VerdictOutcome as fn, ExperimentCategoryTally as fr, ReplayItemStartProgress as ft, Bitfab as g, flushTraces as gi, VerdictUpdate as gn, ExperimentRollup as gr, ReplayResult as gt, CommitRef as h, TokenUsage as hi, VerdictTarget as hn, ExperimentPage as hr, ReplayProgressItem as ht, ReplayRegistryContext as i, CategoriesClient as ii, PassFailVerdict as in, TraceAssertionsUpdate as ir, BITFAB_PROGRESS_PREFIX as it, SpanOptions as j, SUPPORTED_PROVIDERS as ji, GenerateAssertionsOptions as jn, Dataset as jr, BitfabLangGraphCallbackHandler as jt, SpanMethodDecorator as k, DbSnapshotProvider as ki, AssertionRewriteStatus as kn, AddDatasetGradersResult as kr, BitfabLangGraphIntegration as kt, defineReplayRegistry as l, CapturedSpan as li, VerdictConfidence as ln, TraceTargetOccurrence as lr, ReplayExperiment as lt, __version__ as m, SpanType as mi, VerdictStatus as mn, ExperimentJitter as mr, ReplayProgress as mt, ReplayRegistration as n, AssertionCategory as ni, LabelUpdate as nn, TraceAssertionSource as nr, AdaptContext as nt, ReseedRegistryResult as o, CategorySummary as oi, TraceVerdicts as on, TraceSearchParams as or, DbBranchReplayError as ot, DEFAULT_SERVICE_URL as p, SpanOccurrence as pi, VerdictSource as pn, ExperimentCodeChangeTotals as pr, ReplayOptions as pt, SpanListField as q, ScenarioDataOrigin as qn, SaveDatasetResult as qr, HumanLabelUpdate as qt, ReplayRegistry as r, AssertionCategorySummary as ri, LabelsClient as rn, TraceAssertionsResult as rr, AdaptInputsFn as rt, SeedCase as s, SaveAssertionCategoryParams as si, Verdict as sn, TraceSearchResult as sr, MockStrategy as st, ReplayOptionsFactory as t, AssertionCategoriesClient as ti, LabelTarget as tn, TraceAssertion as tr, ReplayBranch as tt, reseedFromRegistry as u, CodeChangeFile as ui, VerdictEvidence as un, TracesClient as ur, ReplayItem as ut, BitfabFunction as v, MockOverride as vi, ArchiveAssertionsParams as vn, ExperimentRunBy as vr, reportReplayProgress as vt, NodeOptions as w, NodeMatcher as wi, AssertionGenerationStatus as wn, ExperimentSummaryResult as wr, OrganizationMember as wt, CurrentTrace as x, MockOverrideResolver as xi, AssertionEvidenceParameter as xn, ExperimentSummaryBeforeAfter as xr, ReplayInterruptSignal as xt, CaptureWhen as y, MockOverrideCtx as yi, AssertionCode as yn, ExperimentStatus as yr, serializeReplayResult as yt, getCurrentSpan as z, ApprovalFields as zi, SaveScenarioParams as zn, GraderRerunStatus as zr, GraderVerdictOutcome as zt };
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-atyS216N.cjs");
6
- const require_http = require("./http-C_f9vk_C.cjs");
5
+ const require_src = require("./src-BJ5a-chk.cjs");
6
+ const require_http = require("./http-BkL24D7v.cjs");
7
7
  exports.AssertionCategoriesClient = require_src.AssertionCategoriesClient;
8
8
  exports.AssertionGenerationError = require_src.AssertionGenerationError;
9
9
  exports.AssertionGenerationTimeoutError = require_src.AssertionGenerationTimeoutError;