@bitfab/sdk 0.76.3 → 0.76.4

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.
@@ -1739,15 +1739,8 @@ type TraceTarget = {
1739
1739
  };
1740
1740
  type TraceAssertionSource = "human" | "agent";
1741
1741
  /**
1742
- * Who decides an assertion on a replay. `"judge"`: the LLM judge reads the
1743
- * run. `"code"`: the assertion's code decides every replay. `"hybrid"`: the
1744
- * code decides what a program can read and returns `"defer"` to hand the rest
1745
- * to the LLM judge.
1746
- */
1747
- type AssertionKind = "judge" | "code" | "hybrid";
1748
- /**
1749
- * Code that decides an assertion's verdict from a run's spans instead of the
1750
- * LLM judge.
1742
+ * Code that decides an assertion's verdict from a run's spans, or hands the
1743
+ * decision to the LLM judge.
1751
1744
  */
1752
1745
  type AssertionCode = {
1753
1746
  /**
@@ -1756,9 +1749,13 @@ type AssertionCode = {
1756
1749
  * without its data), `input`, and `output`. It reads span data with
1757
1750
  * `await named("span name")`, which returns `{ name, index, input, output,
1758
1751
  * metadata }` for each span with that name, or `await span.data()`. It
1759
- * returns `"pass"`, `"fail"`, or `"defer"` (hybrid assertions only: hand the
1760
- * rest to the LLM judge), or `{ result, reason }`. It gets one second of
1761
- * compute and may load the data of at most 50 spans within ten seconds.
1752
+ * returns `"pass"`, `"fail"`, or `"defer"`, or `{ result, reason }`.
1753
+ * `"pass"` and `"fail"` decide the verdict with no LLM judge call. `"defer"`
1754
+ * hands the decision to the LLM judge, and may carry what the code found as
1755
+ * `{ result: "defer", reason?, data? }` (for example the sent email's
1756
+ * subject and body), which the judge reads alongside the run. Code that
1757
+ * throws counts as `"defer"` with no data. It gets one second of compute
1758
+ * and may load the data of at most 50 spans within ten seconds.
1762
1759
  */
1763
1760
  source: string;
1764
1761
  /**
@@ -1818,9 +1815,10 @@ type TraceAssertion = {
1818
1815
  passCriteria: string | null;
1819
1816
  failCriteria: string | null;
1820
1817
  targetOnEvaluatedTrace: TraceTarget | null;
1821
- /** Who decides this assertion on a replay. */
1822
- kind: AssertionKind;
1823
- /** The code of a code or hybrid assertion, or null for a judge assertion. */
1818
+ /**
1819
+ * Code that decides this assertion on a replay or hands it to the LLM
1820
+ * judge, or null when the LLM judge decides every replay.
1821
+ */
1824
1822
  code: AssertionCode | null;
1825
1823
  /** Why the code could not run on a replay, or null while it runs. */
1826
1824
  codeBrokenReason: string | null;
@@ -1862,21 +1860,10 @@ type SaveAssertion = {
1862
1860
  failCriteria?: string | null;
1863
1861
  targetOnEvaluatedTrace?: TraceTarget | null;
1864
1862
  /**
1865
- * Who decides this assertion. Send `"code"` or `"hybrid"` with `code` to set
1866
- * the code yourself, or without `code` on an assertion that has none yet to
1867
- * have Bitfab write it: the text is checked by the guided rewrite (unless
1868
- * skipped), code of that kind is written and run on this trace, and the save
1869
- * waits for both. The returned `codeDraft` says whether working code was
1870
- * written. At most 10 assertions per save may ask for code this way, and a
1871
- * save that asks for any waits up to five minutes. Omit on an edit to keep
1872
- * it, pass `"judge"` to remove the code.
1873
- */
1874
- kind?: AssertionKind;
1875
- /**
1876
- * Code that decides the verdict instead of the LLM judge. It is run on this
1877
- * trace before saving and refused when it throws, returns anything other
1878
- * than a result, or returns `"defer"` for a `"code"` assertion. Omit on an
1879
- * edit to keep it.
1863
+ * Code that decides the verdict or hands it to the LLM judge. Pass code to
1864
+ * set it, null to remove it, or omit it to keep the current code. It is run
1865
+ * on this trace before saving and refused when it throws, runs out of time,
1866
+ * or returns anything other than a result.
1880
1867
  */
1881
1868
  code?: AssertionCode | null;
1882
1869
  /**
@@ -2177,9 +2164,7 @@ type SaveAssertionsParams = {
2177
2164
  * assertion, usually within a minute. The save does not wait for the
2178
2165
  * check: each checked assertion comes back with `rewrite.status` set to
2179
2166
  * `pending`. Read the result later with `getAssertions`, whose rows carry
2180
- * `rewrite`. An entry that asks Bitfab to write its code (kind `"code"` or
2181
- * `"hybrid"` with no `code`) is checked before the save returns instead, so
2182
- * its `rewrite` is already final.
2167
+ * `rewrite`.
2183
2168
  */
2184
2169
  skipGuidedRewrite?: boolean;
2185
2170
  };
@@ -2196,9 +2181,7 @@ type SaveAssertionsAllParams = {
2196
2181
  * assertion, usually within a minute. The save does not wait for the
2197
2182
  * check: each checked assertion comes back with `rewrite.status` set to
2198
2183
  * `pending`. Read the result later with `getAssertions`, whose rows carry
2199
- * `rewrite`. An entry that asks Bitfab to write its code (kind `"code"` or
2200
- * `"hybrid"` with no `code`) is checked before the save returns instead, so
2201
- * its `rewrite` is already final.
2184
+ * `rewrite`.
2202
2185
  */
2203
2186
  skipGuidedRewrite?: boolean;
2204
2187
  };
@@ -2236,24 +2219,6 @@ type AssertionRewrite = {
2236
2219
  */
2237
2220
  type SavedTraceAssertion = TraceAssertion & {
2238
2221
  rewrite: AssertionRewrite;
2239
- /**
2240
- * What happened to an entry that sent kind `"code"` or `"hybrid"` with no
2241
- * code for Bitfab to write, or null for every other entry.
2242
- */
2243
- codeDraft: AssertionCodeDraft | null;
2244
- };
2245
- /**
2246
- * Whether Bitfab wrote code for an assertion that asked for it. `written`: the
2247
- * code was saved with `requestedKind` and ran on the trace. `not_written`: no
2248
- * working code could be written, so the assertion was saved as a `"judge"`
2249
- * assertion without code, and `reason` says why. Reword the assertion and ask
2250
- * again, or send the code yourself.
2251
- */
2252
- type AssertionCodeDraft = {
2253
- requestedKind: Exclude<AssertionKind, "judge">;
2254
- status: "written" | "not_written";
2255
- /** Why no code was written, or null when it was. */
2256
- reason: string | null;
2257
2222
  };
2258
2223
  type ArchiveAssertionsParams = {
2259
2224
  traceId: string;
@@ -2309,9 +2274,10 @@ declare class TracesClient {
2309
2274
  * breaks the writing rules in place in the background, usually within a
2310
2275
  * minute. Read the result later with `getAssertions`: each row's `rewrite`
2311
2276
  * says what changed and lists in `separateAssertions` any other claim to
2312
- * save as its own assertion. Entries that ask Bitfab to write their code
2313
- * are checked and given code before the call returns, so their `rewrite`
2314
- * and `codeDraft` are final.
2277
+ * save as its own assertion. Each entry's `code` is run on its trace
2278
+ * before saving, and the save is refused when it throws, runs out of time,
2279
+ * or returns anything other than a result. When an assertion is saved
2280
+ * without code, Bitfab may write code for it in the background.
2315
2281
  */
2316
2282
  saveAssertions(params: SaveAssertionsParams): Promise<SavedTraceAssertion[]>;
2317
2283
  /**
@@ -2322,9 +2288,11 @@ declare class TracesClient {
2322
2288
  * usually within a minute. Read the result later with `getAssertions`: each
2323
2289
  * row's `rewrite` says what changed and lists in `separateAssertions` any
2324
2290
  * other claim to save as its own assertion. A check that has not finished
2325
- * 15 minutes after the save reads as `check_failed`. Entries that ask Bitfab
2326
- * to write their code are checked and given code before the call returns,
2327
- * so their `rewrite` and `codeDraft` are final.
2291
+ * 15 minutes after the save reads as `check_failed`. Each entry's `code` is
2292
+ * run on its trace before saving, and the save is refused when it throws,
2293
+ * runs out of time, or returns anything other than a result. When an
2294
+ * assertion is saved without code, Bitfab may write code for it in the
2295
+ * background.
2328
2296
  */
2329
2297
  saveAssertionsAll(params: SaveAssertionsAllParams): Promise<SavedTraceAssertion[]>;
2330
2298
  generateAssertions(traceId: string, options?: GenerateAssertionsOptions): Promise<TraceAssertion[]>;
@@ -5694,7 +5662,7 @@ interface CommitRef {
5694
5662
  /**
5695
5663
  * SDK version from package.json (injected at build time)
5696
5664
  */
5697
- declare const __version__ = "0.76.3";
5665
+ declare const __version__ = "0.76.4";
5698
5666
  //#endregion
5699
5667
  //#region src/constants.d.ts
5700
5668
  /**
@@ -5836,4 +5804,4 @@ declare function seedFromRegistry(registry: ReplayRegistry, pipeline: string, ca
5836
5804
  run?: boolean;
5837
5805
  }): Promise<SeedResult>;
5838
5806
  //#endregion
5839
- export { SpanListResult as $, ScenarioGeneration as $n, BitfabLanguageModelMiddleware as $r, HumanVerdictUpdate as $t, SpanMethodDecoratorContext as A, BitfabError as Ai, AssertionKind as An, ExperimentTotals as Ar, BitfabOpenAIAgentHandler as At, WrapOpenRouterOptions as B, AllowedEnvVars as Bi, SaveScenarioActualOutcome as Bn, GraderRerunError as Br, GraderLabelSource as Bt, NodeMethodDecorator as C, MockOverrideCtx as Ci, AssertionCode as Cn, ExperimentStatus as Cr, serializeReplayResult as Ct, SeedCaseOptions as D, NO_MOCK_OVERRIDE as Di, AssertionGenerationError as Dn, ExperimentSummaryFacts as Dr, PiIntegrationOptions as Dt, ReseedResult as E, MockValue as Ei, AssertionGeneration as En, ExperimentSummaryExampleTrace as Er, BitfabPiIntegration as Et, WrapJevOptions as F, SUPPORTED_PROVIDERS as Fi, GenerateAssertionsOptions as Fn, Dataset as Fr, BitfabLangGraphCallbackHandler as Ft, CaptureSurface as G, Approver as Gi, Scenario as Gn, ListDatasetsParams as Gr, GraderVerdictUpdate as Gt, getCurrentReplayBranch as H, ProviderDefinition as Hi, SaveScenarioHistoryEntry as Hn, GraderRerunResult as Hr, GraderVerdict as Ht, WrapOpenAIChatOptions as I, ReplayNodeIdentity as Ii, GenerateScenarioOptions as In, DatasetGraderRef as Ir, GetGraderLabelsParams as It, TraceResponse as J, JustificationSpan as Ji, ScenarioCreationStatus as Jn, RerunGradersOptions as Jr, ArchiveVerdictTarget as Jt, ActiveSpanContext as K, Assignee as Ki, ScenarioAction as Kn, RemoveDatasetGradersResult as Kr, GradersClient as Kt, WrapOpenAIEmbeddingsOptions as L, SelectiveReplayDecision as Li, SaveAssertion as Ln, DatasetTraceIds as Lr, GetGraderVerdictsParams as Lt, WrapAnthropicOptions as M, DbSnapshotConfig as Mi, AssertionRewrite as Mn, ListExperimentsParams as Mr, BitfabLangGraphAgent as Mt, WrapBAMLOptions as N, DbSnapshotProvider as Ni, AssertionRewriteStatus as Nn, AddDatasetGradersResult as Nr, BitfabLangGraphIntegration as Nt, SeedRunOptions as O, NodeMatcher as Oi, AssertionGenerationStatus as On, ExperimentSummaryResult as Or, OrganizationMember as Ot, WrapGeminiOptions as P, DbSnapshotRef as Pi, AssertionVerdictEvidence as Pn, AddDatasetTracesResult as Pr, LangGraphIntegrationOptions as Pt, SpanListParams as Q, ScenarioDataSources as Qn, UpdateDatasetParams as Qr, HumanVerdictOutcome as Qt, WrapOpenAIResponsesOptions as R, SelectiveReplayOptions as Ri, SaveAssertionsAllParams as Rn, DatasetsClient as Rr, GraderLabel as Rt, DetachedTrace as S, MockOverride as Si, ArchiveAssertionsParams as Sn, ExperimentRunBy as Sr, reportReplayProgress as St, ReseedOptions as T, MockOverrideResolver as Ti, AssertionEvidenceParameter as Tn, ExperimentSummaryBeforeAfter as Tr, ReplayInterruptSignal as Tt, getCurrentSpan as U, ApprovalFields as Ui, SaveScenarioParams as Un, GraderRerunStatus as Ur, GraderVerdictOutcome as Ut, WrappedBamlFn as V, BamlExecutionResult as Vi, SaveScenarioData as Vn, GraderRerunProgress as Vr, GraderLabelUpdate as Vt, getCurrentTrace as W, ApprovalState as Wi, SavedTraceAssertion as Wn, GraderRerunTimeoutError as Wr, GraderVerdictSource as Wt, ListedSpan as X, ScenarioDataAppend as Xn, SaveDatasetParams as Xr, HumanLabelOutcome as Xt, TracingProcessor as Y, ScenarioData as Yn, RerunGradersResult as Yr, AssertionVerdict as Yt, SpanListField as Z, ScenarioDataOrigin as Zn, SaveDatasetResult as Zr, HumanLabelUpdate as Zt, BitfabConfig as _, SpanOccurrence as _i, VerdictSource as _n, ExperimentCodeChangeTotals as _r, ReplayOptions as _t, ReplayRegistryOptions as a, AssertionCategoriesClient as ai, LabelTarget as an, TraceAssertion as ar, ReplayBranch as at, CurrentSpan as b, flushTraces as bi, VerdictUpdate as bn, ExperimentRollup as br, ReplayResult as bt, SeedResult as c, CategoriesClient as ci, PassFailVerdict as cn, TraceAssertionsUpdate as cr, BITFAB_PROGRESS_PREFIX as ct, seedFromRegistry as d, SaveAssertionCategoryParams as di, Verdict as dn, TraceSearchResult as dr, MockStrategy as dt, BitfabVercelAiHandler as ei, LabelAction as en, ScenarioHistoryEntry as er, SpansClient as et, finalizers as f, SaveCategoryParams as fi, VerdictAction as fn, TraceTarget as fr, ReplayError as ft, Bitfab as g, SpanLookup as gi, VerdictOutcome as gn, ExperimentCategoryTally as gr, ReplayItemStartProgress as gt, CommitRef as h, HttpClient as hi, VerdictEvidenceItem as hn, Experiment as hr, ReplayItemFinishProgress as ht, ReplayRegistryContext as i, BitfabClaudeAgentHandler as ii, LabelStatus as in, ScenarioTrigger as ir, RivetIntegrationOptions as it, SpanOptions as j, MixedTracingError as ji, AssertionLabelEvidence as jn, ExperimentsClient as jr, BitfabAgentMiddleware as jt, SpanMethodDecorator as k, SpanNodeMeta as ki, AssertionGenerationTimeoutError as kn, ExperimentTally as kr, OrganizationMembersClient as kt, defineReplayRegistry as l, Category as li, TraceLabels as ln, TraceSearchFilters as lr, DbBranchOptions as lt, __version__ as m, CodeChangeFile as mi, VerdictEvidence as mn, TracesClient as mr, ReplayItem as mt, ReplayRegistration as n, VercelGenerateResult as ni, LabelOutcome as nn, ScenarioRecordInput as nr, RivetContextLike as nt, ReseedRegistryResult as o, AssertionCategory as oi, LabelUpdate as on, TraceAssertionSource as or, AdaptContext as ot, DEFAULT_SERVICE_URL as p, CapturedSpan as pi, VerdictConfidence as pn, TraceTargetOccurrence as pr, ReplayExperiment as pt, BitfabOpenAITracingProcessor as q, Justification as qi, ScenarioActualOutcome as qn, RemoveDatasetTracesResult as qr, ArchiveLabelTarget as qt, ReplayRegistry as r, VercelStreamResult as ri, LabelSource as rn, ScenarioSource as rr, RivetEffectType as rt, SeedCase as s, AssertionCategorySummary as si, LabelsClient as sn, TraceAssertionsResult as sr, AdaptInputsFn as st, ReplayOptionsFactory as t, VercelCallParams as ti, LabelConfidence as tn, ScenarioRecord as tr, BitfabRivetIntegration as tt, reseedFromRegistry as u, CategorySummary as ui, TraceVerdicts as un, TraceSearchParams as ur, DbBranchReplayError as ut, BitfabFunction as v, SpanType as vi, VerdictStatus as vn, ExperimentJitter as vr, ReplayProgress as vt, NodeOptions as w, MockOverrideInput as wi, AssertionCodeDraft as wn, ExperimentSummary as wr, ReplayInterrupt as wt, CurrentTrace as x, DbBranchTimings as xi, VerdictsClient as xn, ExperimentRollupResult as xr, TraceIngestionType as xt, CaptureWhen as y, TokenUsage as yi, VerdictTarget as yn, ExperimentPage as yr, ReplayProgressItem as yt, WrapOpenAITranscriptionsOptions as z, SelectiveReplayReport as zi, SaveAssertionsParams as zn, GraderRerun as zr, GraderLabelOutcome as zt };
5807
+ export { SpanListResult as $, ScenarioRecord as $n, VercelCallParams as $r, HumanVerdictUpdate as $t, SpanMethodDecoratorContext as A, DbSnapshotConfig as Ai, AssertionRewrite as An, ListExperimentsParams as Ar, BitfabOpenAIAgentHandler as At, WrapOpenRouterOptions as B, ProviderDefinition as Bi, SaveScenarioHistoryEntry as Bn, GraderRerunResult as Br, GraderLabelSource as Bt, NodeMethodDecorator as C, MockOverrideResolver as Ci, AssertionCode as Cn, ExperimentSummaryBeforeAfter as Cr, serializeReplayResult as Ct, SeedCaseOptions as D, SpanNodeMeta as Di, AssertionGenerationStatus as Dn, ExperimentTally as Dr, PiIntegrationOptions as Dt, ReseedResult as E, NodeMatcher as Ei, AssertionGenerationError as En, ExperimentSummaryResult as Er, BitfabPiIntegration as Et, WrapJevOptions as F, SelectiveReplayDecision as Fi, SaveAssertion as Fn, DatasetTraceIds as Fr, BitfabLangGraphCallbackHandler as Ft, CaptureSurface as G, Justification as Gi, ScenarioActualOutcome as Gn, RemoveDatasetTracesResult as Gr, GraderVerdictUpdate as Gt, getCurrentReplayBranch as H, ApprovalState as Hi, SavedTraceAssertion as Hn, GraderRerunTimeoutError as Hr, GraderVerdict as Ht, WrapOpenAIChatOptions as I, SelectiveReplayOptions as Ii, SaveAssertionsAllParams as In, DatasetsClient as Ir, GetGraderLabelsParams as It, TraceResponse as J, ScenarioDataAppend as Jn, SaveDatasetParams as Jr, ArchiveVerdictTarget as Jt, ActiveSpanContext as K, JustificationSpan as Ki, ScenarioCreationStatus as Kn, RerunGradersOptions as Kr, GradersClient as Kt, WrapOpenAIEmbeddingsOptions as L, SelectiveReplayReport as Li, SaveAssertionsParams as Ln, GraderRerun as Lr, GetGraderVerdictsParams as Lt, WrapAnthropicOptions as M, DbSnapshotRef as Mi, AssertionVerdictEvidence as Mn, AddDatasetTracesResult as Mr, BitfabLangGraphAgent as Mt, WrapBAMLOptions as N, SUPPORTED_PROVIDERS as Ni, GenerateAssertionsOptions as Nn, Dataset as Nr, BitfabLangGraphIntegration as Nt, SeedRunOptions as O, BitfabError as Oi, AssertionGenerationTimeoutError as On, ExperimentTotals as Or, OrganizationMember as Ot, WrapGeminiOptions as P, ReplayNodeIdentity as Pi, GenerateScenarioOptions as Pn, DatasetGraderRef as Pr, LangGraphIntegrationOptions as Pt, SpanListParams as Q, ScenarioHistoryEntry as Qn, BitfabVercelAiHandler as Qr, HumanVerdictOutcome as Qt, WrapOpenAIResponsesOptions as R, AllowedEnvVars as Ri, SaveScenarioActualOutcome as Rn, GraderRerunError as Rr, GraderLabel as Rt, DetachedTrace as S, MockOverrideInput as Si, ArchiveAssertionsParams as Sn, ExperimentSummary as Sr, reportReplayProgress as St, ReseedOptions as T, NO_MOCK_OVERRIDE as Ti, AssertionGeneration as Tn, ExperimentSummaryFacts as Tr, ReplayInterruptSignal as Tt, getCurrentSpan as U, Approver as Ui, Scenario as Un, ListDatasetsParams as Ur, GraderVerdictOutcome as Ut, WrappedBamlFn as V, ApprovalFields as Vi, SaveScenarioParams as Vn, GraderRerunStatus as Vr, GraderLabelUpdate as Vt, getCurrentTrace as W, Assignee as Wi, ScenarioAction as Wn, RemoveDatasetGradersResult as Wr, GraderVerdictSource as Wt, ListedSpan as X, ScenarioDataSources as Xn, UpdateDatasetParams as Xr, HumanLabelOutcome as Xt, TracingProcessor as Y, ScenarioDataOrigin as Yn, SaveDatasetResult as Yr, AssertionVerdict as Yt, SpanListField as Z, ScenarioGeneration as Zn, BitfabLanguageModelMiddleware as Zr, HumanLabelUpdate as Zt, BitfabConfig as _, TokenUsage as _i, VerdictSource as _n, ExperimentPage as _r, ReplayOptions as _t, ReplayRegistryOptions as a, AssertionCategorySummary as ai, LabelTarget as an, TraceAssertionsResult as ar, ReplayBranch as at, CurrentSpan as b, MockOverride as bi, VerdictUpdate as bn, ExperimentRunBy as br, ReplayResult as bt, SeedResult as c, CategorySummary as ci, PassFailVerdict as cn, TraceSearchParams as cr, BITFAB_PROGRESS_PREFIX as ct, seedFromRegistry as d, CapturedSpan as di, Verdict as dn, TraceTargetOccurrence as dr, MockStrategy as dt, VercelGenerateResult as ei, LabelAction as en, ScenarioRecordInput as er, SpansClient as et, finalizers as f, CodeChangeFile as fi, VerdictAction as fn, TracesClient as fr, ReplayError as ft, Bitfab as g, SpanType as gi, VerdictOutcome as gn, ExperimentJitter as gr, ReplayItemStartProgress as gt, CommitRef as h, SpanOccurrence as hi, VerdictEvidenceItem as hn, ExperimentCodeChangeTotals as hr, ReplayItemFinishProgress as ht, ReplayRegistryContext as i, AssertionCategory as ii, LabelStatus as in, TraceAssertionSource as ir, RivetIntegrationOptions as it, SpanOptions as j, DbSnapshotProvider as ji, AssertionRewriteStatus as jn, AddDatasetGradersResult as jr, BitfabAgentMiddleware as jt, SpanMethodDecorator as k, MixedTracingError as ki, AssertionLabelEvidence as kn, ExperimentsClient as kr, OrganizationMembersClient as kt, defineReplayRegistry as l, SaveAssertionCategoryParams as li, TraceLabels as ln, TraceSearchResult as lr, DbBranchOptions as lt, __version__ as m, SpanLookup as mi, VerdictEvidence as mn, ExperimentCategoryTally as mr, ReplayItem as mt, ReplayRegistration as n, BitfabClaudeAgentHandler as ni, LabelOutcome as nn, ScenarioTrigger as nr, RivetContextLike as nt, ReseedRegistryResult as o, CategoriesClient as oi, LabelUpdate as on, TraceAssertionsUpdate as or, AdaptContext as ot, DEFAULT_SERVICE_URL as p, HttpClient as pi, VerdictConfidence as pn, Experiment as pr, ReplayExperiment as pt, BitfabOpenAITracingProcessor as q, ScenarioData as qn, RerunGradersResult as qr, ArchiveLabelTarget as qt, ReplayRegistry as r, AssertionCategoriesClient as ri, LabelSource as rn, TraceAssertion as rr, RivetEffectType as rt, SeedCase as s, Category as si, LabelsClient as sn, TraceSearchFilters as sr, AdaptInputsFn as st, ReplayOptionsFactory as t, VercelStreamResult as ti, LabelConfidence as tn, ScenarioSource as tr, BitfabRivetIntegration as tt, reseedFromRegistry as u, SaveCategoryParams as ui, TraceVerdicts as un, TraceTarget as ur, DbBranchReplayError as ut, BitfabFunction as v, flushTraces as vi, VerdictStatus as vn, ExperimentRollup as vr, ReplayProgress as vt, NodeOptions as w, MockValue as wi, AssertionEvidenceParameter as wn, ExperimentSummaryExampleTrace as wr, ReplayInterrupt as wt, CurrentTrace as x, MockOverrideCtx as xi, VerdictsClient as xn, ExperimentStatus as xr, TraceIngestionType as xt, CaptureWhen as y, DbBranchTimings as yi, VerdictTarget as yn, ExperimentRollupResult as yr, ReplayProgressItem as yt, WrapOpenAITranscriptionsOptions as z, BamlExecutionResult as zi, SaveScenarioData as zn, GraderRerunProgress as zr, GraderLabelOutcome as zt };
@@ -1739,15 +1739,8 @@ type TraceTarget = {
1739
1739
  };
1740
1740
  type TraceAssertionSource = "human" | "agent";
1741
1741
  /**
1742
- * Who decides an assertion on a replay. `"judge"`: the LLM judge reads the
1743
- * run. `"code"`: the assertion's code decides every replay. `"hybrid"`: the
1744
- * code decides what a program can read and returns `"defer"` to hand the rest
1745
- * to the LLM judge.
1746
- */
1747
- type AssertionKind = "judge" | "code" | "hybrid";
1748
- /**
1749
- * Code that decides an assertion's verdict from a run's spans instead of the
1750
- * LLM judge.
1742
+ * Code that decides an assertion's verdict from a run's spans, or hands the
1743
+ * decision to the LLM judge.
1751
1744
  */
1752
1745
  type AssertionCode = {
1753
1746
  /**
@@ -1756,9 +1749,13 @@ type AssertionCode = {
1756
1749
  * without its data), `input`, and `output`. It reads span data with
1757
1750
  * `await named("span name")`, which returns `{ name, index, input, output,
1758
1751
  * metadata }` for each span with that name, or `await span.data()`. It
1759
- * returns `"pass"`, `"fail"`, or `"defer"` (hybrid assertions only: hand the
1760
- * rest to the LLM judge), or `{ result, reason }`. It gets one second of
1761
- * compute and may load the data of at most 50 spans within ten seconds.
1752
+ * returns `"pass"`, `"fail"`, or `"defer"`, or `{ result, reason }`.
1753
+ * `"pass"` and `"fail"` decide the verdict with no LLM judge call. `"defer"`
1754
+ * hands the decision to the LLM judge, and may carry what the code found as
1755
+ * `{ result: "defer", reason?, data? }` (for example the sent email's
1756
+ * subject and body), which the judge reads alongside the run. Code that
1757
+ * throws counts as `"defer"` with no data. It gets one second of compute
1758
+ * and may load the data of at most 50 spans within ten seconds.
1762
1759
  */
1763
1760
  source: string;
1764
1761
  /**
@@ -1818,9 +1815,10 @@ type TraceAssertion = {
1818
1815
  passCriteria: string | null;
1819
1816
  failCriteria: string | null;
1820
1817
  targetOnEvaluatedTrace: TraceTarget | null;
1821
- /** Who decides this assertion on a replay. */
1822
- kind: AssertionKind;
1823
- /** The code of a code or hybrid assertion, or null for a judge assertion. */
1818
+ /**
1819
+ * Code that decides this assertion on a replay or hands it to the LLM
1820
+ * judge, or null when the LLM judge decides every replay.
1821
+ */
1824
1822
  code: AssertionCode | null;
1825
1823
  /** Why the code could not run on a replay, or null while it runs. */
1826
1824
  codeBrokenReason: string | null;
@@ -1862,21 +1860,10 @@ type SaveAssertion = {
1862
1860
  failCriteria?: string | null;
1863
1861
  targetOnEvaluatedTrace?: TraceTarget | null;
1864
1862
  /**
1865
- * Who decides this assertion. Send `"code"` or `"hybrid"` with `code` to set
1866
- * the code yourself, or without `code` on an assertion that has none yet to
1867
- * have Bitfab write it: the text is checked by the guided rewrite (unless
1868
- * skipped), code of that kind is written and run on this trace, and the save
1869
- * waits for both. The returned `codeDraft` says whether working code was
1870
- * written. At most 10 assertions per save may ask for code this way, and a
1871
- * save that asks for any waits up to five minutes. Omit on an edit to keep
1872
- * it, pass `"judge"` to remove the code.
1873
- */
1874
- kind?: AssertionKind;
1875
- /**
1876
- * Code that decides the verdict instead of the LLM judge. It is run on this
1877
- * trace before saving and refused when it throws, returns anything other
1878
- * than a result, or returns `"defer"` for a `"code"` assertion. Omit on an
1879
- * edit to keep it.
1863
+ * Code that decides the verdict or hands it to the LLM judge. Pass code to
1864
+ * set it, null to remove it, or omit it to keep the current code. It is run
1865
+ * on this trace before saving and refused when it throws, runs out of time,
1866
+ * or returns anything other than a result.
1880
1867
  */
1881
1868
  code?: AssertionCode | null;
1882
1869
  /**
@@ -2177,9 +2164,7 @@ type SaveAssertionsParams = {
2177
2164
  * assertion, usually within a minute. The save does not wait for the
2178
2165
  * check: each checked assertion comes back with `rewrite.status` set to
2179
2166
  * `pending`. Read the result later with `getAssertions`, whose rows carry
2180
- * `rewrite`. An entry that asks Bitfab to write its code (kind `"code"` or
2181
- * `"hybrid"` with no `code`) is checked before the save returns instead, so
2182
- * its `rewrite` is already final.
2167
+ * `rewrite`.
2183
2168
  */
2184
2169
  skipGuidedRewrite?: boolean;
2185
2170
  };
@@ -2196,9 +2181,7 @@ type SaveAssertionsAllParams = {
2196
2181
  * assertion, usually within a minute. The save does not wait for the
2197
2182
  * check: each checked assertion comes back with `rewrite.status` set to
2198
2183
  * `pending`. Read the result later with `getAssertions`, whose rows carry
2199
- * `rewrite`. An entry that asks Bitfab to write its code (kind `"code"` or
2200
- * `"hybrid"` with no `code`) is checked before the save returns instead, so
2201
- * its `rewrite` is already final.
2184
+ * `rewrite`.
2202
2185
  */
2203
2186
  skipGuidedRewrite?: boolean;
2204
2187
  };
@@ -2236,24 +2219,6 @@ type AssertionRewrite = {
2236
2219
  */
2237
2220
  type SavedTraceAssertion = TraceAssertion & {
2238
2221
  rewrite: AssertionRewrite;
2239
- /**
2240
- * What happened to an entry that sent kind `"code"` or `"hybrid"` with no
2241
- * code for Bitfab to write, or null for every other entry.
2242
- */
2243
- codeDraft: AssertionCodeDraft | null;
2244
- };
2245
- /**
2246
- * Whether Bitfab wrote code for an assertion that asked for it. `written`: the
2247
- * code was saved with `requestedKind` and ran on the trace. `not_written`: no
2248
- * working code could be written, so the assertion was saved as a `"judge"`
2249
- * assertion without code, and `reason` says why. Reword the assertion and ask
2250
- * again, or send the code yourself.
2251
- */
2252
- type AssertionCodeDraft = {
2253
- requestedKind: Exclude<AssertionKind, "judge">;
2254
- status: "written" | "not_written";
2255
- /** Why no code was written, or null when it was. */
2256
- reason: string | null;
2257
2222
  };
2258
2223
  type ArchiveAssertionsParams = {
2259
2224
  traceId: string;
@@ -2309,9 +2274,10 @@ declare class TracesClient {
2309
2274
  * breaks the writing rules in place in the background, usually within a
2310
2275
  * minute. Read the result later with `getAssertions`: each row's `rewrite`
2311
2276
  * says what changed and lists in `separateAssertions` any other claim to
2312
- * save as its own assertion. Entries that ask Bitfab to write their code
2313
- * are checked and given code before the call returns, so their `rewrite`
2314
- * and `codeDraft` are final.
2277
+ * save as its own assertion. Each entry's `code` is run on its trace
2278
+ * before saving, and the save is refused when it throws, runs out of time,
2279
+ * or returns anything other than a result. When an assertion is saved
2280
+ * without code, Bitfab may write code for it in the background.
2315
2281
  */
2316
2282
  saveAssertions(params: SaveAssertionsParams): Promise<SavedTraceAssertion[]>;
2317
2283
  /**
@@ -2322,9 +2288,11 @@ declare class TracesClient {
2322
2288
  * usually within a minute. Read the result later with `getAssertions`: each
2323
2289
  * row's `rewrite` says what changed and lists in `separateAssertions` any
2324
2290
  * other claim to save as its own assertion. A check that has not finished
2325
- * 15 minutes after the save reads as `check_failed`. Entries that ask Bitfab
2326
- * to write their code are checked and given code before the call returns,
2327
- * so their `rewrite` and `codeDraft` are final.
2291
+ * 15 minutes after the save reads as `check_failed`. Each entry's `code` is
2292
+ * run on its trace before saving, and the save is refused when it throws,
2293
+ * runs out of time, or returns anything other than a result. When an
2294
+ * assertion is saved without code, Bitfab may write code for it in the
2295
+ * background.
2328
2296
  */
2329
2297
  saveAssertionsAll(params: SaveAssertionsAllParams): Promise<SavedTraceAssertion[]>;
2330
2298
  generateAssertions(traceId: string, options?: GenerateAssertionsOptions): Promise<TraceAssertion[]>;
@@ -5694,7 +5662,7 @@ interface CommitRef {
5694
5662
  /**
5695
5663
  * SDK version from package.json (injected at build time)
5696
5664
  */
5697
- declare const __version__ = "0.76.3";
5665
+ declare const __version__ = "0.76.4";
5698
5666
  //#endregion
5699
5667
  //#region src/constants.d.ts
5700
5668
  /**
@@ -5836,4 +5804,4 @@ declare function seedFromRegistry(registry: ReplayRegistry, pipeline: string, ca
5836
5804
  run?: boolean;
5837
5805
  }): Promise<SeedResult>;
5838
5806
  //#endregion
5839
- export { SpanListResult as $, ScenarioGeneration as $n, BitfabLanguageModelMiddleware as $r, HumanVerdictUpdate as $t, SpanMethodDecoratorContext as A, BitfabError as Ai, AssertionKind as An, ExperimentTotals as Ar, BitfabOpenAIAgentHandler as At, WrapOpenRouterOptions as B, AllowedEnvVars as Bi, SaveScenarioActualOutcome as Bn, GraderRerunError as Br, GraderLabelSource as Bt, NodeMethodDecorator as C, MockOverrideCtx as Ci, AssertionCode as Cn, ExperimentStatus as Cr, serializeReplayResult as Ct, SeedCaseOptions as D, NO_MOCK_OVERRIDE as Di, AssertionGenerationError as Dn, ExperimentSummaryFacts as Dr, PiIntegrationOptions as Dt, ReseedResult as E, MockValue as Ei, AssertionGeneration as En, ExperimentSummaryExampleTrace as Er, BitfabPiIntegration as Et, WrapJevOptions as F, SUPPORTED_PROVIDERS as Fi, GenerateAssertionsOptions as Fn, Dataset as Fr, BitfabLangGraphCallbackHandler as Ft, CaptureSurface as G, Approver as Gi, Scenario as Gn, ListDatasetsParams as Gr, GraderVerdictUpdate as Gt, getCurrentReplayBranch as H, ProviderDefinition as Hi, SaveScenarioHistoryEntry as Hn, GraderRerunResult as Hr, GraderVerdict as Ht, WrapOpenAIChatOptions as I, ReplayNodeIdentity as Ii, GenerateScenarioOptions as In, DatasetGraderRef as Ir, GetGraderLabelsParams as It, TraceResponse as J, JustificationSpan as Ji, ScenarioCreationStatus as Jn, RerunGradersOptions as Jr, ArchiveVerdictTarget as Jt, ActiveSpanContext as K, Assignee as Ki, ScenarioAction as Kn, RemoveDatasetGradersResult as Kr, GradersClient as Kt, WrapOpenAIEmbeddingsOptions as L, SelectiveReplayDecision as Li, SaveAssertion as Ln, DatasetTraceIds as Lr, GetGraderVerdictsParams as Lt, WrapAnthropicOptions as M, DbSnapshotConfig as Mi, AssertionRewrite as Mn, ListExperimentsParams as Mr, BitfabLangGraphAgent as Mt, WrapBAMLOptions as N, DbSnapshotProvider as Ni, AssertionRewriteStatus as Nn, AddDatasetGradersResult as Nr, BitfabLangGraphIntegration as Nt, SeedRunOptions as O, NodeMatcher as Oi, AssertionGenerationStatus as On, ExperimentSummaryResult as Or, OrganizationMember as Ot, WrapGeminiOptions as P, DbSnapshotRef as Pi, AssertionVerdictEvidence as Pn, AddDatasetTracesResult as Pr, LangGraphIntegrationOptions as Pt, SpanListParams as Q, ScenarioDataSources as Qn, UpdateDatasetParams as Qr, HumanVerdictOutcome as Qt, WrapOpenAIResponsesOptions as R, SelectiveReplayOptions as Ri, SaveAssertionsAllParams as Rn, DatasetsClient as Rr, GraderLabel as Rt, DetachedTrace as S, MockOverride as Si, ArchiveAssertionsParams as Sn, ExperimentRunBy as Sr, reportReplayProgress as St, ReseedOptions as T, MockOverrideResolver as Ti, AssertionEvidenceParameter as Tn, ExperimentSummaryBeforeAfter as Tr, ReplayInterruptSignal as Tt, getCurrentSpan as U, ApprovalFields as Ui, SaveScenarioParams as Un, GraderRerunStatus as Ur, GraderVerdictOutcome as Ut, WrappedBamlFn as V, BamlExecutionResult as Vi, SaveScenarioData as Vn, GraderRerunProgress as Vr, GraderLabelUpdate as Vt, getCurrentTrace as W, ApprovalState as Wi, SavedTraceAssertion as Wn, GraderRerunTimeoutError as Wr, GraderVerdictSource as Wt, ListedSpan as X, ScenarioDataAppend as Xn, SaveDatasetParams as Xr, HumanLabelOutcome as Xt, TracingProcessor as Y, ScenarioData as Yn, RerunGradersResult as Yr, AssertionVerdict as Yt, SpanListField as Z, ScenarioDataOrigin as Zn, SaveDatasetResult as Zr, HumanLabelUpdate as Zt, BitfabConfig as _, SpanOccurrence as _i, VerdictSource as _n, ExperimentCodeChangeTotals as _r, ReplayOptions as _t, ReplayRegistryOptions as a, AssertionCategoriesClient as ai, LabelTarget as an, TraceAssertion as ar, ReplayBranch as at, CurrentSpan as b, flushTraces as bi, VerdictUpdate as bn, ExperimentRollup as br, ReplayResult as bt, SeedResult as c, CategoriesClient as ci, PassFailVerdict as cn, TraceAssertionsUpdate as cr, BITFAB_PROGRESS_PREFIX as ct, seedFromRegistry as d, SaveAssertionCategoryParams as di, Verdict as dn, TraceSearchResult as dr, MockStrategy as dt, BitfabVercelAiHandler as ei, LabelAction as en, ScenarioHistoryEntry as er, SpansClient as et, finalizers as f, SaveCategoryParams as fi, VerdictAction as fn, TraceTarget as fr, ReplayError as ft, Bitfab as g, SpanLookup as gi, VerdictOutcome as gn, ExperimentCategoryTally as gr, ReplayItemStartProgress as gt, CommitRef as h, HttpClient as hi, VerdictEvidenceItem as hn, Experiment as hr, ReplayItemFinishProgress as ht, ReplayRegistryContext as i, BitfabClaudeAgentHandler as ii, LabelStatus as in, ScenarioTrigger as ir, RivetIntegrationOptions as it, SpanOptions as j, MixedTracingError as ji, AssertionLabelEvidence as jn, ExperimentsClient as jr, BitfabAgentMiddleware as jt, SpanMethodDecorator as k, SpanNodeMeta as ki, AssertionGenerationTimeoutError as kn, ExperimentTally as kr, OrganizationMembersClient as kt, defineReplayRegistry as l, Category as li, TraceLabels as ln, TraceSearchFilters as lr, DbBranchOptions as lt, __version__ as m, CodeChangeFile as mi, VerdictEvidence as mn, TracesClient as mr, ReplayItem as mt, ReplayRegistration as n, VercelGenerateResult as ni, LabelOutcome as nn, ScenarioRecordInput as nr, RivetContextLike as nt, ReseedRegistryResult as o, AssertionCategory as oi, LabelUpdate as on, TraceAssertionSource as or, AdaptContext as ot, DEFAULT_SERVICE_URL as p, CapturedSpan as pi, VerdictConfidence as pn, TraceTargetOccurrence as pr, ReplayExperiment as pt, BitfabOpenAITracingProcessor as q, Justification as qi, ScenarioActualOutcome as qn, RemoveDatasetTracesResult as qr, ArchiveLabelTarget as qt, ReplayRegistry as r, VercelStreamResult as ri, LabelSource as rn, ScenarioSource as rr, RivetEffectType as rt, SeedCase as s, AssertionCategorySummary as si, LabelsClient as sn, TraceAssertionsResult as sr, AdaptInputsFn as st, ReplayOptionsFactory as t, VercelCallParams as ti, LabelConfidence as tn, ScenarioRecord as tr, BitfabRivetIntegration as tt, reseedFromRegistry as u, CategorySummary as ui, TraceVerdicts as un, TraceSearchParams as ur, DbBranchReplayError as ut, BitfabFunction as v, SpanType as vi, VerdictStatus as vn, ExperimentJitter as vr, ReplayProgress as vt, NodeOptions as w, MockOverrideInput as wi, AssertionCodeDraft as wn, ExperimentSummary as wr, ReplayInterrupt as wt, CurrentTrace as x, DbBranchTimings as xi, VerdictsClient as xn, ExperimentRollupResult as xr, TraceIngestionType as xt, CaptureWhen as y, TokenUsage as yi, VerdictTarget as yn, ExperimentPage as yr, ReplayProgressItem as yt, WrapOpenAITranscriptionsOptions as z, SelectiveReplayReport as zi, SaveAssertionsParams as zn, GraderRerun as zr, GraderLabelOutcome as zt };
5807
+ export { SpanListResult as $, ScenarioRecord as $n, VercelCallParams as $r, HumanVerdictUpdate as $t, SpanMethodDecoratorContext as A, DbSnapshotConfig as Ai, AssertionRewrite as An, ListExperimentsParams as Ar, BitfabOpenAIAgentHandler as At, WrapOpenRouterOptions as B, ProviderDefinition as Bi, SaveScenarioHistoryEntry as Bn, GraderRerunResult as Br, GraderLabelSource as Bt, NodeMethodDecorator as C, MockOverrideResolver as Ci, AssertionCode as Cn, ExperimentSummaryBeforeAfter as Cr, serializeReplayResult as Ct, SeedCaseOptions as D, SpanNodeMeta as Di, AssertionGenerationStatus as Dn, ExperimentTally as Dr, PiIntegrationOptions as Dt, ReseedResult as E, NodeMatcher as Ei, AssertionGenerationError as En, ExperimentSummaryResult as Er, BitfabPiIntegration as Et, WrapJevOptions as F, SelectiveReplayDecision as Fi, SaveAssertion as Fn, DatasetTraceIds as Fr, BitfabLangGraphCallbackHandler as Ft, CaptureSurface as G, Justification as Gi, ScenarioActualOutcome as Gn, RemoveDatasetTracesResult as Gr, GraderVerdictUpdate as Gt, getCurrentReplayBranch as H, ApprovalState as Hi, SavedTraceAssertion as Hn, GraderRerunTimeoutError as Hr, GraderVerdict as Ht, WrapOpenAIChatOptions as I, SelectiveReplayOptions as Ii, SaveAssertionsAllParams as In, DatasetsClient as Ir, GetGraderLabelsParams as It, TraceResponse as J, ScenarioDataAppend as Jn, SaveDatasetParams as Jr, ArchiveVerdictTarget as Jt, ActiveSpanContext as K, JustificationSpan as Ki, ScenarioCreationStatus as Kn, RerunGradersOptions as Kr, GradersClient as Kt, WrapOpenAIEmbeddingsOptions as L, SelectiveReplayReport as Li, SaveAssertionsParams as Ln, GraderRerun as Lr, GetGraderVerdictsParams as Lt, WrapAnthropicOptions as M, DbSnapshotRef as Mi, AssertionVerdictEvidence as Mn, AddDatasetTracesResult as Mr, BitfabLangGraphAgent as Mt, WrapBAMLOptions as N, SUPPORTED_PROVIDERS as Ni, GenerateAssertionsOptions as Nn, Dataset as Nr, BitfabLangGraphIntegration as Nt, SeedRunOptions as O, BitfabError as Oi, AssertionGenerationTimeoutError as On, ExperimentTotals as Or, OrganizationMember as Ot, WrapGeminiOptions as P, ReplayNodeIdentity as Pi, GenerateScenarioOptions as Pn, DatasetGraderRef as Pr, LangGraphIntegrationOptions as Pt, SpanListParams as Q, ScenarioHistoryEntry as Qn, BitfabVercelAiHandler as Qr, HumanVerdictOutcome as Qt, WrapOpenAIResponsesOptions as R, AllowedEnvVars as Ri, SaveScenarioActualOutcome as Rn, GraderRerunError as Rr, GraderLabel as Rt, DetachedTrace as S, MockOverrideInput as Si, ArchiveAssertionsParams as Sn, ExperimentSummary as Sr, reportReplayProgress as St, ReseedOptions as T, NO_MOCK_OVERRIDE as Ti, AssertionGeneration as Tn, ExperimentSummaryFacts as Tr, ReplayInterruptSignal as Tt, getCurrentSpan as U, Approver as Ui, Scenario as Un, ListDatasetsParams as Ur, GraderVerdictOutcome as Ut, WrappedBamlFn as V, ApprovalFields as Vi, SaveScenarioParams as Vn, GraderRerunStatus as Vr, GraderLabelUpdate as Vt, getCurrentTrace as W, Assignee as Wi, ScenarioAction as Wn, RemoveDatasetGradersResult as Wr, GraderVerdictSource as Wt, ListedSpan as X, ScenarioDataSources as Xn, UpdateDatasetParams as Xr, HumanLabelOutcome as Xt, TracingProcessor as Y, ScenarioDataOrigin as Yn, SaveDatasetResult as Yr, AssertionVerdict as Yt, SpanListField as Z, ScenarioGeneration as Zn, BitfabLanguageModelMiddleware as Zr, HumanLabelUpdate as Zt, BitfabConfig as _, TokenUsage as _i, VerdictSource as _n, ExperimentPage as _r, ReplayOptions as _t, ReplayRegistryOptions as a, AssertionCategorySummary as ai, LabelTarget as an, TraceAssertionsResult as ar, ReplayBranch as at, CurrentSpan as b, MockOverride as bi, VerdictUpdate as bn, ExperimentRunBy as br, ReplayResult as bt, SeedResult as c, CategorySummary as ci, PassFailVerdict as cn, TraceSearchParams as cr, BITFAB_PROGRESS_PREFIX as ct, seedFromRegistry as d, CapturedSpan as di, Verdict as dn, TraceTargetOccurrence as dr, MockStrategy as dt, VercelGenerateResult as ei, LabelAction as en, ScenarioRecordInput as er, SpansClient as et, finalizers as f, CodeChangeFile as fi, VerdictAction as fn, TracesClient as fr, ReplayError as ft, Bitfab as g, SpanType as gi, VerdictOutcome as gn, ExperimentJitter as gr, ReplayItemStartProgress as gt, CommitRef as h, SpanOccurrence as hi, VerdictEvidenceItem as hn, ExperimentCodeChangeTotals as hr, ReplayItemFinishProgress as ht, ReplayRegistryContext as i, AssertionCategory as ii, LabelStatus as in, TraceAssertionSource as ir, RivetIntegrationOptions as it, SpanOptions as j, DbSnapshotProvider as ji, AssertionRewriteStatus as jn, AddDatasetGradersResult as jr, BitfabAgentMiddleware as jt, SpanMethodDecorator as k, MixedTracingError as ki, AssertionLabelEvidence as kn, ExperimentsClient as kr, OrganizationMembersClient as kt, defineReplayRegistry as l, SaveAssertionCategoryParams as li, TraceLabels as ln, TraceSearchResult as lr, DbBranchOptions as lt, __version__ as m, SpanLookup as mi, VerdictEvidence as mn, ExperimentCategoryTally as mr, ReplayItem as mt, ReplayRegistration as n, BitfabClaudeAgentHandler as ni, LabelOutcome as nn, ScenarioTrigger as nr, RivetContextLike as nt, ReseedRegistryResult as o, CategoriesClient as oi, LabelUpdate as on, TraceAssertionsUpdate as or, AdaptContext as ot, DEFAULT_SERVICE_URL as p, HttpClient as pi, VerdictConfidence as pn, Experiment as pr, ReplayExperiment as pt, BitfabOpenAITracingProcessor as q, ScenarioData as qn, RerunGradersResult as qr, ArchiveLabelTarget as qt, ReplayRegistry as r, AssertionCategoriesClient as ri, LabelSource as rn, TraceAssertion as rr, RivetEffectType as rt, SeedCase as s, Category as si, LabelsClient as sn, TraceSearchFilters as sr, AdaptInputsFn as st, ReplayOptionsFactory as t, VercelStreamResult as ti, LabelConfidence as tn, ScenarioSource as tr, BitfabRivetIntegration as tt, reseedFromRegistry as u, SaveCategoryParams as ui, TraceVerdicts as un, TraceTarget as ur, DbBranchReplayError as ut, BitfabFunction as v, flushTraces as vi, VerdictStatus as vn, ExperimentRollup as vr, ReplayProgress as vt, NodeOptions as w, MockValue as wi, AssertionEvidenceParameter as wn, ExperimentSummaryExampleTrace as wr, ReplayInterrupt as wt, CurrentTrace as x, MockOverrideCtx as xi, VerdictsClient as xn, ExperimentStatus as xr, TraceIngestionType as xt, CaptureWhen as y, DbBranchTimings as yi, VerdictTarget as yn, ExperimentRollupResult as yr, ReplayProgressItem as yt, WrapOpenAITranscriptionsOptions as z, BamlExecutionResult as zi, SaveScenarioData as zn, GraderRerunProgress as zr, GraderLabelOutcome 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-BMMKf1sR.cjs");
6
- const require_http = require("./http-7exfDbAK.cjs");
5
+ const require_src = require("./src-C9V1wPM_.cjs");
6
+ const require_http = require("./http-Dw6XzN7P.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 SpanListResult, $n as ScenarioGeneration, $r as BitfabLanguageModelMiddleware, $t as HumanVerdictUpdate, A as SpanMethodDecoratorContext, Ai as BitfabError, An as AssertionKind, Ar as ExperimentTotals, At as BitfabOpenAIAgentHandler, B as WrapOpenRouterOptions, Bi as AllowedEnvVars, Bn as SaveScenarioActualOutcome, Br as GraderRerunError, Bt as GraderLabelSource, C as NodeMethodDecorator, Ci as MockOverrideCtx, Cn as AssertionCode, Cr as ExperimentStatus, Ct as serializeReplayResult, D as SeedCaseOptions, Di as NO_MOCK_OVERRIDE, Dn as AssertionGenerationError, Dr as ExperimentSummaryFacts, Dt as PiIntegrationOptions, E as ReseedResult, Ei as MockValue, En as AssertionGeneration, Er as ExperimentSummaryExampleTrace, Et as BitfabPiIntegration, F as WrapJevOptions, Fi as SUPPORTED_PROVIDERS, Fn as GenerateAssertionsOptions, Fr as Dataset, Ft as BitfabLangGraphCallbackHandler, G as CaptureSurface, Gi as Approver, Gn as Scenario, Gr as ListDatasetsParams, Gt as GraderVerdictUpdate, H as getCurrentReplayBranch, Hi as ProviderDefinition, Hn as SaveScenarioHistoryEntry, Hr as GraderRerunResult, Ht as GraderVerdict, I as WrapOpenAIChatOptions, Ii as ReplayNodeIdentity, In as GenerateScenarioOptions, Ir as DatasetGraderRef, It as GetGraderLabelsParams, J as TraceResponse, Ji as JustificationSpan, Jn as ScenarioCreationStatus, Jr as RerunGradersOptions, Jt as ArchiveVerdictTarget, K as ActiveSpanContext, Ki as Assignee, Kn as ScenarioAction, Kr as RemoveDatasetGradersResult, Kt as GradersClient, L as WrapOpenAIEmbeddingsOptions, Li as SelectiveReplayDecision, Ln as SaveAssertion, Lr as DatasetTraceIds, Lt as GetGraderVerdictsParams, M as WrapAnthropicOptions, Mi as DbSnapshotConfig, Mn as AssertionRewrite, Mr as ListExperimentsParams, Mt as BitfabLangGraphAgent, N as WrapBAMLOptions, Ni as DbSnapshotProvider, Nn as AssertionRewriteStatus, Nr as AddDatasetGradersResult, Nt as BitfabLangGraphIntegration, O as SeedRunOptions, Oi as NodeMatcher, On as AssertionGenerationStatus, Or as ExperimentSummaryResult, Ot as OrganizationMember, P as WrapGeminiOptions, Pi as DbSnapshotRef, Pn as AssertionVerdictEvidence, Pr as AddDatasetTracesResult, Pt as LangGraphIntegrationOptions, Q as SpanListParams, Qn as ScenarioDataSources, Qr as UpdateDatasetParams, Qt as HumanVerdictOutcome, R as WrapOpenAIResponsesOptions, Ri as SelectiveReplayOptions, Rn as SaveAssertionsAllParams, Rr as DatasetsClient, Rt as GraderLabel, S as DetachedTrace, Si as MockOverride, Sn as ArchiveAssertionsParams, Sr as ExperimentRunBy, St as reportReplayProgress, T as ReseedOptions, Ti as MockOverrideResolver, Tn as AssertionEvidenceParameter, Tr as ExperimentSummaryBeforeAfter, Tt as ReplayInterruptSignal, U as getCurrentSpan, Ui as ApprovalFields, Un as SaveScenarioParams, Ur as GraderRerunStatus, Ut as GraderVerdictOutcome, V as WrappedBamlFn, Vi as BamlExecutionResult, Vn as SaveScenarioData, Vr as GraderRerunProgress, Vt as GraderLabelUpdate, W as getCurrentTrace, Wi as ApprovalState, Wn as SavedTraceAssertion, Wr as GraderRerunTimeoutError, Wt as GraderVerdictSource, X as ListedSpan, Xn as ScenarioDataAppend, Xr as SaveDatasetParams, Xt as HumanLabelOutcome, Y as TracingProcessor, Yn as ScenarioData, Yr as RerunGradersResult, Yt as AssertionVerdict, Z as SpanListField, Zn as ScenarioDataOrigin, Zr as SaveDatasetResult, Zt as HumanLabelUpdate, _ as BitfabConfig, _i as SpanOccurrence, _n as VerdictSource, _r as ExperimentCodeChangeTotals, _t as ReplayOptions, a as ReplayRegistryOptions, ai as AssertionCategoriesClient, an as LabelTarget, ar as TraceAssertion, at as ReplayBranch, b as CurrentSpan, bi as flushTraces, bn as VerdictUpdate, br as ExperimentRollup, bt as ReplayResult, c as SeedResult, ci as CategoriesClient, cn as PassFailVerdict, cr as TraceAssertionsUpdate, ct as BITFAB_PROGRESS_PREFIX, d as seedFromRegistry, di as SaveAssertionCategoryParams, dn as Verdict, dr as TraceSearchResult, dt as MockStrategy, ei as BitfabVercelAiHandler, en as LabelAction, er as ScenarioHistoryEntry, et as SpansClient, f as finalizers, fi as SaveCategoryParams, fn as VerdictAction, fr as TraceTarget, ft as ReplayError, g as Bitfab, gi as SpanLookup, gn as VerdictOutcome, gr as ExperimentCategoryTally, gt as ReplayItemStartProgress, h as CommitRef, hi as HttpClient, hn as VerdictEvidenceItem, hr as Experiment, ht as ReplayItemFinishProgress, i as ReplayRegistryContext, ii as BitfabClaudeAgentHandler, in as LabelStatus, ir as ScenarioTrigger, it as RivetIntegrationOptions, j as SpanOptions, ji as MixedTracingError, jn as AssertionLabelEvidence, jr as ExperimentsClient, jt as BitfabAgentMiddleware, k as SpanMethodDecorator, ki as SpanNodeMeta, kn as AssertionGenerationTimeoutError, kr as ExperimentTally, kt as OrganizationMembersClient, l as defineReplayRegistry, li as Category, ln as TraceLabels, lr as TraceSearchFilters, lt as DbBranchOptions, m as __version__, mi as CodeChangeFile, mn as VerdictEvidence, mr as TracesClient, mt as ReplayItem, n as ReplayRegistration, ni as VercelGenerateResult, nn as LabelOutcome, nr as ScenarioRecordInput, nt as RivetContextLike, o as ReseedRegistryResult, oi as AssertionCategory, on as LabelUpdate, or as TraceAssertionSource, ot as AdaptContext, p as DEFAULT_SERVICE_URL, pi as CapturedSpan, pn as VerdictConfidence, pr as TraceTargetOccurrence, pt as ReplayExperiment, q as BitfabOpenAITracingProcessor, qi as Justification, qn as ScenarioActualOutcome, qr as RemoveDatasetTracesResult, qt as ArchiveLabelTarget, r as ReplayRegistry, ri as VercelStreamResult, rn as LabelSource, rr as ScenarioSource, rt as RivetEffectType, s as SeedCase, si as AssertionCategorySummary, sn as LabelsClient, sr as TraceAssertionsResult, st as AdaptInputsFn, t as ReplayOptionsFactory, ti as VercelCallParams, tn as LabelConfidence, tr as ScenarioRecord, tt as BitfabRivetIntegration, u as reseedFromRegistry, ui as CategorySummary, un as TraceVerdicts, ur as TraceSearchParams, ut as DbBranchReplayError, v as BitfabFunction, vi as SpanType, vn as VerdictStatus, vr as ExperimentJitter, vt as ReplayProgress, w as NodeOptions, wi as MockOverrideInput, wn as AssertionCodeDraft, wr as ExperimentSummary, wt as ReplayInterrupt, x as CurrentTrace, xi as DbBranchTimings, xn as VerdictsClient, xr as ExperimentRollupResult, xt as TraceIngestionType, y as CaptureWhen, yi as TokenUsage, yn as VerdictTarget, yr as ExperimentPage, yt as ReplayProgressItem, z as WrapOpenAITranscriptionsOptions, zi as SelectiveReplayReport, zn as SaveAssertionsParams, zr as GraderRerun, zt as GraderLabelOutcome } from "./index-CmO7Xmwl.cjs";
2
- export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ApprovalFields, type ApprovalState, type Approver, type ArchiveAssertionsParams, type ArchiveLabelTarget, type ArchiveVerdictTarget, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionCode, type AssertionCodeDraft, type AssertionEvidenceParameter, type AssertionGeneration, AssertionGenerationError, type AssertionGenerationStatus, AssertionGenerationTimeoutError, type AssertionKind, 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 GenerateScenarioOptions, 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 ScenarioCreationStatus, 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 VerdictEvidence, type VerdictEvidenceItem, type VerdictOutcome, type VerdictSource, type VerdictStatus, type VerdictTarget, type VerdictUpdate, VerdictsClient, type WrapAnthropicOptions, type WrapBAMLOptions, type WrapGeminiOptions, type WrapJevOptions, type WrapOpenAIChatOptions, type WrapOpenAIEmbeddingsOptions, type WrapOpenAIResponsesOptions, type WrapOpenAITranscriptionsOptions, type WrapOpenRouterOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
1
+ import { $ as SpanListResult, $n as ScenarioRecord, $r as VercelCallParams, $t as HumanVerdictUpdate, A as SpanMethodDecoratorContext, Ai as DbSnapshotConfig, An as AssertionRewrite, Ar as ListExperimentsParams, At as BitfabOpenAIAgentHandler, B as WrapOpenRouterOptions, Bi as ProviderDefinition, Bn as SaveScenarioHistoryEntry, Br as GraderRerunResult, Bt as GraderLabelSource, C as NodeMethodDecorator, Ci as MockOverrideResolver, Cn as AssertionCode, Cr as ExperimentSummaryBeforeAfter, Ct as serializeReplayResult, D as SeedCaseOptions, Di as SpanNodeMeta, Dn as AssertionGenerationStatus, Dr as ExperimentTally, Dt as PiIntegrationOptions, E as ReseedResult, Ei as NodeMatcher, En as AssertionGenerationError, Er as ExperimentSummaryResult, Et as BitfabPiIntegration, F as WrapJevOptions, Fi as SelectiveReplayDecision, Fn as SaveAssertion, Fr as DatasetTraceIds, Ft as BitfabLangGraphCallbackHandler, G as CaptureSurface, Gi as Justification, Gn as ScenarioActualOutcome, Gr as RemoveDatasetTracesResult, Gt as GraderVerdictUpdate, H as getCurrentReplayBranch, Hi as ApprovalState, Hn as SavedTraceAssertion, Hr as GraderRerunTimeoutError, Ht as GraderVerdict, I as WrapOpenAIChatOptions, Ii as SelectiveReplayOptions, In as SaveAssertionsAllParams, Ir as DatasetsClient, It as GetGraderLabelsParams, J as TraceResponse, Jn as ScenarioDataAppend, Jr as SaveDatasetParams, Jt as ArchiveVerdictTarget, K as ActiveSpanContext, Ki as JustificationSpan, Kn as ScenarioCreationStatus, Kr as RerunGradersOptions, Kt as GradersClient, L as WrapOpenAIEmbeddingsOptions, Li as SelectiveReplayReport, Ln as SaveAssertionsParams, Lr as GraderRerun, Lt as GetGraderVerdictsParams, M as WrapAnthropicOptions, Mi as DbSnapshotRef, Mn as AssertionVerdictEvidence, Mr as AddDatasetTracesResult, Mt as BitfabLangGraphAgent, N as WrapBAMLOptions, Ni as SUPPORTED_PROVIDERS, Nn as GenerateAssertionsOptions, Nr as Dataset, Nt as BitfabLangGraphIntegration, O as SeedRunOptions, Oi as BitfabError, On as AssertionGenerationTimeoutError, Or as ExperimentTotals, Ot as OrganizationMember, P as WrapGeminiOptions, Pi as ReplayNodeIdentity, Pn as GenerateScenarioOptions, Pr as DatasetGraderRef, Pt as LangGraphIntegrationOptions, Q as SpanListParams, Qn as ScenarioHistoryEntry, Qr as BitfabVercelAiHandler, Qt as HumanVerdictOutcome, R as WrapOpenAIResponsesOptions, Ri as AllowedEnvVars, Rn as SaveScenarioActualOutcome, Rr as GraderRerunError, Rt as GraderLabel, S as DetachedTrace, Si as MockOverrideInput, Sn as ArchiveAssertionsParams, Sr as ExperimentSummary, St as reportReplayProgress, T as ReseedOptions, Ti as NO_MOCK_OVERRIDE, Tn as AssertionGeneration, Tr as ExperimentSummaryFacts, Tt as ReplayInterruptSignal, U as getCurrentSpan, Ui as Approver, Un as Scenario, Ur as ListDatasetsParams, Ut as GraderVerdictOutcome, V as WrappedBamlFn, Vi as ApprovalFields, Vn as SaveScenarioParams, Vr as GraderRerunStatus, Vt as GraderLabelUpdate, W as getCurrentTrace, Wi as Assignee, Wn as ScenarioAction, Wr as RemoveDatasetGradersResult, Wt as GraderVerdictSource, X as ListedSpan, Xn as ScenarioDataSources, Xr as UpdateDatasetParams, Xt as HumanLabelOutcome, Y as TracingProcessor, Yn as ScenarioDataOrigin, Yr as SaveDatasetResult, Yt as AssertionVerdict, Z as SpanListField, Zn as ScenarioGeneration, Zr as BitfabLanguageModelMiddleware, Zt as HumanLabelUpdate, _ as BitfabConfig, _i as TokenUsage, _n as VerdictSource, _r as ExperimentPage, _t as ReplayOptions, a as ReplayRegistryOptions, ai as AssertionCategorySummary, an as LabelTarget, ar as TraceAssertionsResult, at as ReplayBranch, b as CurrentSpan, bi as MockOverride, bn as VerdictUpdate, br as ExperimentRunBy, bt as ReplayResult, c as SeedResult, ci as CategorySummary, cn as PassFailVerdict, cr as TraceSearchParams, ct as BITFAB_PROGRESS_PREFIX, d as seedFromRegistry, di as CapturedSpan, dn as Verdict, dr as TraceTargetOccurrence, dt as MockStrategy, ei as VercelGenerateResult, en as LabelAction, er as ScenarioRecordInput, et as SpansClient, f as finalizers, fi as CodeChangeFile, fn as VerdictAction, fr as TracesClient, ft as ReplayError, g as Bitfab, gi as SpanType, gn as VerdictOutcome, gr as ExperimentJitter, gt as ReplayItemStartProgress, h as CommitRef, hi as SpanOccurrence, hn as VerdictEvidenceItem, hr as ExperimentCodeChangeTotals, ht as ReplayItemFinishProgress, i as ReplayRegistryContext, ii as AssertionCategory, in as LabelStatus, ir as TraceAssertionSource, it as RivetIntegrationOptions, j as SpanOptions, ji as DbSnapshotProvider, jn as AssertionRewriteStatus, jr as AddDatasetGradersResult, jt as BitfabAgentMiddleware, k as SpanMethodDecorator, ki as MixedTracingError, kn as AssertionLabelEvidence, kr as ExperimentsClient, kt as OrganizationMembersClient, l as defineReplayRegistry, li as SaveAssertionCategoryParams, ln as TraceLabels, lr as TraceSearchResult, lt as DbBranchOptions, m as __version__, mi as SpanLookup, mn as VerdictEvidence, mr as ExperimentCategoryTally, mt as ReplayItem, n as ReplayRegistration, ni as BitfabClaudeAgentHandler, nn as LabelOutcome, nr as ScenarioTrigger, nt as RivetContextLike, o as ReseedRegistryResult, oi as CategoriesClient, on as LabelUpdate, or as TraceAssertionsUpdate, ot as AdaptContext, p as DEFAULT_SERVICE_URL, pi as HttpClient, pn as VerdictConfidence, pr as Experiment, pt as ReplayExperiment, q as BitfabOpenAITracingProcessor, qn as ScenarioData, qr as RerunGradersResult, qt as ArchiveLabelTarget, r as ReplayRegistry, ri as AssertionCategoriesClient, rn as LabelSource, rr as TraceAssertion, rt as RivetEffectType, s as SeedCase, si as Category, sn as LabelsClient, sr as TraceSearchFilters, st as AdaptInputsFn, t as ReplayOptionsFactory, ti as VercelStreamResult, tn as LabelConfidence, tr as ScenarioSource, tt as BitfabRivetIntegration, u as reseedFromRegistry, ui as SaveCategoryParams, un as TraceVerdicts, ur as TraceTarget, ut as DbBranchReplayError, v as BitfabFunction, vi as flushTraces, vn as VerdictStatus, vr as ExperimentRollup, vt as ReplayProgress, w as NodeOptions, wi as MockValue, wn as AssertionEvidenceParameter, wr as ExperimentSummaryExampleTrace, wt as ReplayInterrupt, x as CurrentTrace, xi as MockOverrideCtx, xn as VerdictsClient, xr as ExperimentStatus, xt as TraceIngestionType, y as CaptureWhen, yi as DbBranchTimings, yn as VerdictTarget, yr as ExperimentRollupResult, yt as ReplayProgressItem, z as WrapOpenAITranscriptionsOptions, zi as BamlExecutionResult, zn as SaveScenarioData, zr as GraderRerunProgress, zt as GraderLabelOutcome } from "./index-DCLbAcum.cjs";
2
+ export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ApprovalFields, type ApprovalState, type Approver, type ArchiveAssertionsParams, type ArchiveLabelTarget, type ArchiveVerdictTarget, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionCode, 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 GenerateScenarioOptions, 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 ScenarioCreationStatus, 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 VerdictEvidence, type VerdictEvidenceItem, type VerdictOutcome, type VerdictSource, type VerdictStatus, type VerdictTarget, type VerdictUpdate, VerdictsClient, type WrapAnthropicOptions, type WrapBAMLOptions, type WrapGeminiOptions, type WrapJevOptions, type WrapOpenAIChatOptions, type WrapOpenAIEmbeddingsOptions, type WrapOpenAIResponsesOptions, type WrapOpenAITranscriptionsOptions, 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 SpanListResult, $n as ScenarioGeneration, $r as BitfabLanguageModelMiddleware, $t as HumanVerdictUpdate, A as SpanMethodDecoratorContext, Ai as BitfabError, An as AssertionKind, Ar as ExperimentTotals, At as BitfabOpenAIAgentHandler, B as WrapOpenRouterOptions, Bi as AllowedEnvVars, Bn as SaveScenarioActualOutcome, Br as GraderRerunError, Bt as GraderLabelSource, C as NodeMethodDecorator, Ci as MockOverrideCtx, Cn as AssertionCode, Cr as ExperimentStatus, Ct as serializeReplayResult, D as SeedCaseOptions, Di as NO_MOCK_OVERRIDE, Dn as AssertionGenerationError, Dr as ExperimentSummaryFacts, Dt as PiIntegrationOptions, E as ReseedResult, Ei as MockValue, En as AssertionGeneration, Er as ExperimentSummaryExampleTrace, Et as BitfabPiIntegration, F as WrapJevOptions, Fi as SUPPORTED_PROVIDERS, Fn as GenerateAssertionsOptions, Fr as Dataset, Ft as BitfabLangGraphCallbackHandler, G as CaptureSurface, Gi as Approver, Gn as Scenario, Gr as ListDatasetsParams, Gt as GraderVerdictUpdate, H as getCurrentReplayBranch, Hi as ProviderDefinition, Hn as SaveScenarioHistoryEntry, Hr as GraderRerunResult, Ht as GraderVerdict, I as WrapOpenAIChatOptions, Ii as ReplayNodeIdentity, In as GenerateScenarioOptions, Ir as DatasetGraderRef, It as GetGraderLabelsParams, J as TraceResponse, Ji as JustificationSpan, Jn as ScenarioCreationStatus, Jr as RerunGradersOptions, Jt as ArchiveVerdictTarget, K as ActiveSpanContext, Ki as Assignee, Kn as ScenarioAction, Kr as RemoveDatasetGradersResult, Kt as GradersClient, L as WrapOpenAIEmbeddingsOptions, Li as SelectiveReplayDecision, Ln as SaveAssertion, Lr as DatasetTraceIds, Lt as GetGraderVerdictsParams, M as WrapAnthropicOptions, Mi as DbSnapshotConfig, Mn as AssertionRewrite, Mr as ListExperimentsParams, Mt as BitfabLangGraphAgent, N as WrapBAMLOptions, Ni as DbSnapshotProvider, Nn as AssertionRewriteStatus, Nr as AddDatasetGradersResult, Nt as BitfabLangGraphIntegration, O as SeedRunOptions, Oi as NodeMatcher, On as AssertionGenerationStatus, Or as ExperimentSummaryResult, Ot as OrganizationMember, P as WrapGeminiOptions, Pi as DbSnapshotRef, Pn as AssertionVerdictEvidence, Pr as AddDatasetTracesResult, Pt as LangGraphIntegrationOptions, Q as SpanListParams, Qn as ScenarioDataSources, Qr as UpdateDatasetParams, Qt as HumanVerdictOutcome, R as WrapOpenAIResponsesOptions, Ri as SelectiveReplayOptions, Rn as SaveAssertionsAllParams, Rr as DatasetsClient, Rt as GraderLabel, S as DetachedTrace, Si as MockOverride, Sn as ArchiveAssertionsParams, Sr as ExperimentRunBy, St as reportReplayProgress, T as ReseedOptions, Ti as MockOverrideResolver, Tn as AssertionEvidenceParameter, Tr as ExperimentSummaryBeforeAfter, Tt as ReplayInterruptSignal, U as getCurrentSpan, Ui as ApprovalFields, Un as SaveScenarioParams, Ur as GraderRerunStatus, Ut as GraderVerdictOutcome, V as WrappedBamlFn, Vi as BamlExecutionResult, Vn as SaveScenarioData, Vr as GraderRerunProgress, Vt as GraderLabelUpdate, W as getCurrentTrace, Wi as ApprovalState, Wn as SavedTraceAssertion, Wr as GraderRerunTimeoutError, Wt as GraderVerdictSource, X as ListedSpan, Xn as ScenarioDataAppend, Xr as SaveDatasetParams, Xt as HumanLabelOutcome, Y as TracingProcessor, Yn as ScenarioData, Yr as RerunGradersResult, Yt as AssertionVerdict, Z as SpanListField, Zn as ScenarioDataOrigin, Zr as SaveDatasetResult, Zt as HumanLabelUpdate, _ as BitfabConfig, _i as SpanOccurrence, _n as VerdictSource, _r as ExperimentCodeChangeTotals, _t as ReplayOptions, a as ReplayRegistryOptions, ai as AssertionCategoriesClient, an as LabelTarget, ar as TraceAssertion, at as ReplayBranch, b as CurrentSpan, bi as flushTraces, bn as VerdictUpdate, br as ExperimentRollup, bt as ReplayResult, c as SeedResult, ci as CategoriesClient, cn as PassFailVerdict, cr as TraceAssertionsUpdate, ct as BITFAB_PROGRESS_PREFIX, d as seedFromRegistry, di as SaveAssertionCategoryParams, dn as Verdict, dr as TraceSearchResult, dt as MockStrategy, ei as BitfabVercelAiHandler, en as LabelAction, er as ScenarioHistoryEntry, et as SpansClient, f as finalizers, fi as SaveCategoryParams, fn as VerdictAction, fr as TraceTarget, ft as ReplayError, g as Bitfab, gi as SpanLookup, gn as VerdictOutcome, gr as ExperimentCategoryTally, gt as ReplayItemStartProgress, h as CommitRef, hi as HttpClient, hn as VerdictEvidenceItem, hr as Experiment, ht as ReplayItemFinishProgress, i as ReplayRegistryContext, ii as BitfabClaudeAgentHandler, in as LabelStatus, ir as ScenarioTrigger, it as RivetIntegrationOptions, j as SpanOptions, ji as MixedTracingError, jn as AssertionLabelEvidence, jr as ExperimentsClient, jt as BitfabAgentMiddleware, k as SpanMethodDecorator, ki as SpanNodeMeta, kn as AssertionGenerationTimeoutError, kr as ExperimentTally, kt as OrganizationMembersClient, l as defineReplayRegistry, li as Category, ln as TraceLabels, lr as TraceSearchFilters, lt as DbBranchOptions, m as __version__, mi as CodeChangeFile, mn as VerdictEvidence, mr as TracesClient, mt as ReplayItem, n as ReplayRegistration, ni as VercelGenerateResult, nn as LabelOutcome, nr as ScenarioRecordInput, nt as RivetContextLike, o as ReseedRegistryResult, oi as AssertionCategory, on as LabelUpdate, or as TraceAssertionSource, ot as AdaptContext, p as DEFAULT_SERVICE_URL, pi as CapturedSpan, pn as VerdictConfidence, pr as TraceTargetOccurrence, pt as ReplayExperiment, q as BitfabOpenAITracingProcessor, qi as Justification, qn as ScenarioActualOutcome, qr as RemoveDatasetTracesResult, qt as ArchiveLabelTarget, r as ReplayRegistry, ri as VercelStreamResult, rn as LabelSource, rr as ScenarioSource, rt as RivetEffectType, s as SeedCase, si as AssertionCategorySummary, sn as LabelsClient, sr as TraceAssertionsResult, st as AdaptInputsFn, t as ReplayOptionsFactory, ti as VercelCallParams, tn as LabelConfidence, tr as ScenarioRecord, tt as BitfabRivetIntegration, u as reseedFromRegistry, ui as CategorySummary, un as TraceVerdicts, ur as TraceSearchParams, ut as DbBranchReplayError, v as BitfabFunction, vi as SpanType, vn as VerdictStatus, vr as ExperimentJitter, vt as ReplayProgress, w as NodeOptions, wi as MockOverrideInput, wn as AssertionCodeDraft, wr as ExperimentSummary, wt as ReplayInterrupt, x as CurrentTrace, xi as DbBranchTimings, xn as VerdictsClient, xr as ExperimentRollupResult, xt as TraceIngestionType, y as CaptureWhen, yi as TokenUsage, yn as VerdictTarget, yr as ExperimentPage, yt as ReplayProgressItem, z as WrapOpenAITranscriptionsOptions, zi as SelectiveReplayReport, zn as SaveAssertionsParams, zr as GraderRerun, zt as GraderLabelOutcome } from "./index-CmO7Xmwl.js";
2
- export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ApprovalFields, type ApprovalState, type Approver, type ArchiveAssertionsParams, type ArchiveLabelTarget, type ArchiveVerdictTarget, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionCode, type AssertionCodeDraft, type AssertionEvidenceParameter, type AssertionGeneration, AssertionGenerationError, type AssertionGenerationStatus, AssertionGenerationTimeoutError, type AssertionKind, 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 GenerateScenarioOptions, 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 ScenarioCreationStatus, 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 VerdictEvidence, type VerdictEvidenceItem, type VerdictOutcome, type VerdictSource, type VerdictStatus, type VerdictTarget, type VerdictUpdate, VerdictsClient, type WrapAnthropicOptions, type WrapBAMLOptions, type WrapGeminiOptions, type WrapJevOptions, type WrapOpenAIChatOptions, type WrapOpenAIEmbeddingsOptions, type WrapOpenAIResponsesOptions, type WrapOpenAITranscriptionsOptions, type WrapOpenRouterOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
1
+ import { $ as SpanListResult, $n as ScenarioRecord, $r as VercelCallParams, $t as HumanVerdictUpdate, A as SpanMethodDecoratorContext, Ai as DbSnapshotConfig, An as AssertionRewrite, Ar as ListExperimentsParams, At as BitfabOpenAIAgentHandler, B as WrapOpenRouterOptions, Bi as ProviderDefinition, Bn as SaveScenarioHistoryEntry, Br as GraderRerunResult, Bt as GraderLabelSource, C as NodeMethodDecorator, Ci as MockOverrideResolver, Cn as AssertionCode, Cr as ExperimentSummaryBeforeAfter, Ct as serializeReplayResult, D as SeedCaseOptions, Di as SpanNodeMeta, Dn as AssertionGenerationStatus, Dr as ExperimentTally, Dt as PiIntegrationOptions, E as ReseedResult, Ei as NodeMatcher, En as AssertionGenerationError, Er as ExperimentSummaryResult, Et as BitfabPiIntegration, F as WrapJevOptions, Fi as SelectiveReplayDecision, Fn as SaveAssertion, Fr as DatasetTraceIds, Ft as BitfabLangGraphCallbackHandler, G as CaptureSurface, Gi as Justification, Gn as ScenarioActualOutcome, Gr as RemoveDatasetTracesResult, Gt as GraderVerdictUpdate, H as getCurrentReplayBranch, Hi as ApprovalState, Hn as SavedTraceAssertion, Hr as GraderRerunTimeoutError, Ht as GraderVerdict, I as WrapOpenAIChatOptions, Ii as SelectiveReplayOptions, In as SaveAssertionsAllParams, Ir as DatasetsClient, It as GetGraderLabelsParams, J as TraceResponse, Jn as ScenarioDataAppend, Jr as SaveDatasetParams, Jt as ArchiveVerdictTarget, K as ActiveSpanContext, Ki as JustificationSpan, Kn as ScenarioCreationStatus, Kr as RerunGradersOptions, Kt as GradersClient, L as WrapOpenAIEmbeddingsOptions, Li as SelectiveReplayReport, Ln as SaveAssertionsParams, Lr as GraderRerun, Lt as GetGraderVerdictsParams, M as WrapAnthropicOptions, Mi as DbSnapshotRef, Mn as AssertionVerdictEvidence, Mr as AddDatasetTracesResult, Mt as BitfabLangGraphAgent, N as WrapBAMLOptions, Ni as SUPPORTED_PROVIDERS, Nn as GenerateAssertionsOptions, Nr as Dataset, Nt as BitfabLangGraphIntegration, O as SeedRunOptions, Oi as BitfabError, On as AssertionGenerationTimeoutError, Or as ExperimentTotals, Ot as OrganizationMember, P as WrapGeminiOptions, Pi as ReplayNodeIdentity, Pn as GenerateScenarioOptions, Pr as DatasetGraderRef, Pt as LangGraphIntegrationOptions, Q as SpanListParams, Qn as ScenarioHistoryEntry, Qr as BitfabVercelAiHandler, Qt as HumanVerdictOutcome, R as WrapOpenAIResponsesOptions, Ri as AllowedEnvVars, Rn as SaveScenarioActualOutcome, Rr as GraderRerunError, Rt as GraderLabel, S as DetachedTrace, Si as MockOverrideInput, Sn as ArchiveAssertionsParams, Sr as ExperimentSummary, St as reportReplayProgress, T as ReseedOptions, Ti as NO_MOCK_OVERRIDE, Tn as AssertionGeneration, Tr as ExperimentSummaryFacts, Tt as ReplayInterruptSignal, U as getCurrentSpan, Ui as Approver, Un as Scenario, Ur as ListDatasetsParams, Ut as GraderVerdictOutcome, V as WrappedBamlFn, Vi as ApprovalFields, Vn as SaveScenarioParams, Vr as GraderRerunStatus, Vt as GraderLabelUpdate, W as getCurrentTrace, Wi as Assignee, Wn as ScenarioAction, Wr as RemoveDatasetGradersResult, Wt as GraderVerdictSource, X as ListedSpan, Xn as ScenarioDataSources, Xr as UpdateDatasetParams, Xt as HumanLabelOutcome, Y as TracingProcessor, Yn as ScenarioDataOrigin, Yr as SaveDatasetResult, Yt as AssertionVerdict, Z as SpanListField, Zn as ScenarioGeneration, Zr as BitfabLanguageModelMiddleware, Zt as HumanLabelUpdate, _ as BitfabConfig, _i as TokenUsage, _n as VerdictSource, _r as ExperimentPage, _t as ReplayOptions, a as ReplayRegistryOptions, ai as AssertionCategorySummary, an as LabelTarget, ar as TraceAssertionsResult, at as ReplayBranch, b as CurrentSpan, bi as MockOverride, bn as VerdictUpdate, br as ExperimentRunBy, bt as ReplayResult, c as SeedResult, ci as CategorySummary, cn as PassFailVerdict, cr as TraceSearchParams, ct as BITFAB_PROGRESS_PREFIX, d as seedFromRegistry, di as CapturedSpan, dn as Verdict, dr as TraceTargetOccurrence, dt as MockStrategy, ei as VercelGenerateResult, en as LabelAction, er as ScenarioRecordInput, et as SpansClient, f as finalizers, fi as CodeChangeFile, fn as VerdictAction, fr as TracesClient, ft as ReplayError, g as Bitfab, gi as SpanType, gn as VerdictOutcome, gr as ExperimentJitter, gt as ReplayItemStartProgress, h as CommitRef, hi as SpanOccurrence, hn as VerdictEvidenceItem, hr as ExperimentCodeChangeTotals, ht as ReplayItemFinishProgress, i as ReplayRegistryContext, ii as AssertionCategory, in as LabelStatus, ir as TraceAssertionSource, it as RivetIntegrationOptions, j as SpanOptions, ji as DbSnapshotProvider, jn as AssertionRewriteStatus, jr as AddDatasetGradersResult, jt as BitfabAgentMiddleware, k as SpanMethodDecorator, ki as MixedTracingError, kn as AssertionLabelEvidence, kr as ExperimentsClient, kt as OrganizationMembersClient, l as defineReplayRegistry, li as SaveAssertionCategoryParams, ln as TraceLabels, lr as TraceSearchResult, lt as DbBranchOptions, m as __version__, mi as SpanLookup, mn as VerdictEvidence, mr as ExperimentCategoryTally, mt as ReplayItem, n as ReplayRegistration, ni as BitfabClaudeAgentHandler, nn as LabelOutcome, nr as ScenarioTrigger, nt as RivetContextLike, o as ReseedRegistryResult, oi as CategoriesClient, on as LabelUpdate, or as TraceAssertionsUpdate, ot as AdaptContext, p as DEFAULT_SERVICE_URL, pi as HttpClient, pn as VerdictConfidence, pr as Experiment, pt as ReplayExperiment, q as BitfabOpenAITracingProcessor, qn as ScenarioData, qr as RerunGradersResult, qt as ArchiveLabelTarget, r as ReplayRegistry, ri as AssertionCategoriesClient, rn as LabelSource, rr as TraceAssertion, rt as RivetEffectType, s as SeedCase, si as Category, sn as LabelsClient, sr as TraceSearchFilters, st as AdaptInputsFn, t as ReplayOptionsFactory, ti as VercelStreamResult, tn as LabelConfidence, tr as ScenarioSource, tt as BitfabRivetIntegration, u as reseedFromRegistry, ui as SaveCategoryParams, un as TraceVerdicts, ur as TraceTarget, ut as DbBranchReplayError, v as BitfabFunction, vi as flushTraces, vn as VerdictStatus, vr as ExperimentRollup, vt as ReplayProgress, w as NodeOptions, wi as MockValue, wn as AssertionEvidenceParameter, wr as ExperimentSummaryExampleTrace, wt as ReplayInterrupt, x as CurrentTrace, xi as MockOverrideCtx, xn as VerdictsClient, xr as ExperimentStatus, xt as TraceIngestionType, y as CaptureWhen, yi as DbBranchTimings, yn as VerdictTarget, yr as ExperimentRollupResult, yt as ReplayProgressItem, z as WrapOpenAITranscriptionsOptions, zi as BamlExecutionResult, zn as SaveScenarioData, zr as GraderRerunProgress, zt as GraderLabelOutcome } from "./index-DCLbAcum.js";
2
+ export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ApprovalFields, type ApprovalState, type Approver, type ArchiveAssertionsParams, type ArchiveLabelTarget, type ArchiveVerdictTarget, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionCode, 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 GenerateScenarioOptions, 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 ScenarioCreationStatus, 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 VerdictEvidence, type VerdictEvidenceItem, type VerdictOutcome, type VerdictSource, type VerdictStatus, type VerdictTarget, type VerdictUpdate, VerdictsClient, type WrapAnthropicOptions, type WrapBAMLOptions, type WrapGeminiOptions, type WrapJevOptions, type WrapOpenAIChatOptions, type WrapOpenAIEmbeddingsOptions, type WrapOpenAIResponsesOptions, type WrapOpenAITranscriptionsOptions, 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-CYs1uXoX.js";
2
- import { C as BitfabError, O as __version__, i as flushTraces, t as HttpClient, w as MixedTracingError } from "./http-BA7vmvuC.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-CFUOdE8n.js";
2
+ import { C as BitfabError, O as __version__, i as flushTraces, t as HttpClient, w as MixedTracingError } from "./http-CQFVgQ4S.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-BMMKf1sR.cjs");
6
- const require_http = require("./http-7exfDbAK.cjs");
5
+ const require_src = require("./src-C9V1wPM_.cjs");
6
+ const require_http = require("./http-Dw6XzN7P.cjs");
7
7
  const require_autoTrace = require("./autoTrace-pZKu5Nk2.cjs");
8
8
  let async_hooks = require("async_hooks");
9
9
  //#region src/asyncStorageNode.ts