@bitfab/sdk 0.76.2 → 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.
- package/dist/{babelPlugin-BpEeVvk4.cjs → babelPlugin-C4ERQ8DW.cjs} +118 -69
- package/dist/babelPlugin-C4ERQ8DW.cjs.map +1 -0
- package/dist/{babelPlugin-PgjdBuQe.js → babelPlugin-tupc_WZS.js} +50 -1
- package/dist/babelPlugin-tupc_WZS.js.map +1 -0
- package/dist/baml.cjs +1 -1
- package/dist/baml.js +1 -1
- package/dist/bamlPeer-BxJO7-pm.cjs +169 -0
- package/dist/bamlPeer-BxJO7-pm.cjs.map +1 -0
- package/dist/bamlPeer-CWPgBSlJ.js +109 -0
- package/dist/bamlPeer-CWPgBSlJ.js.map +1 -0
- package/dist/{http-wadCG_ec.js → http-CQFVgQ4S.js} +2 -2
- package/dist/{http-wadCG_ec.js.map → http-CQFVgQ4S.js.map} +1 -1
- package/dist/{http-DscPFMlr.cjs → http-Dw6XzN7P.cjs} +3 -3
- package/dist/{http-DscPFMlr.cjs.map → http-Dw6XzN7P.cjs.map} +1 -1
- package/dist/{index-D5NpBqF3.d.cts → index-DCLbAcum.d.cts} +30 -62
- package/dist/{index-D5NpBqF3.d.ts → index-DCLbAcum.d.ts} +30 -62
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/{loaderRuntime-0huddOOP.d.ts → loaderRuntime-AETv8Pt4.d.ts} +1 -1
- package/dist/{loaderRuntime-CslfDFO7.d.cts → loaderRuntime-BGUu666e.d.cts} +1 -1
- package/dist/node.cjs +2 -2
- package/dist/node.d.cts +2 -2
- package/dist/node.d.ts +2 -2
- package/dist/node.js +2 -2
- package/dist/registryCommand-M1u4H9PI.js.map +1 -1
- package/dist/{src-B6zSnPpb.cjs → src-C9V1wPM_.cjs} +30 -21
- package/dist/src-C9V1wPM_.cjs.map +1 -0
- package/dist/{src-CcYVtNMw.js → src-CFUOdE8n.js} +30 -21
- package/dist/{src-CcYVtNMw.js.map → src-CFUOdE8n.js.map} +1 -1
- package/dist/transform/babel.cjs +1 -1
- package/dist/transform/babel.d.cts +1 -1
- package/dist/transform/babel.d.ts +1 -1
- package/dist/transform/babel.js +1 -1
- package/dist/transform/bun.d.cts +1 -1
- package/dist/transform/bun.d.ts +1 -1
- package/dist/transform/esbuild.d.cts +1 -1
- package/dist/transform/esbuild.d.ts +1 -1
- package/dist/transform/loaderRuntime.cjs +3 -3
- package/dist/transform/loaderRuntime.d.cts +1 -1
- package/dist/transform/loaderRuntime.d.ts +1 -1
- package/dist/transform/loaderRuntime.js +3 -3
- package/dist/transform/nest.d.cts +1 -1
- package/dist/transform/nest.d.ts +1 -1
- package/dist/transform/next.d.cts +1 -1
- package/dist/transform/next.d.ts +1 -1
- package/dist/transform/nodeLoader.js +56 -2
- package/dist/transform/nodeLoader.js.map +1 -1
- package/dist/transform/rolldown.d.cts +1 -1
- package/dist/transform/rolldown.d.ts +1 -1
- package/dist/transform/rollup.d.cts +1 -1
- package/dist/transform/rollup.d.ts +1 -1
- package/dist/transform/rsbuild.d.cts +1 -1
- package/dist/transform/rsbuild.d.ts +1 -1
- package/dist/transform/rspack.d.cts +1 -1
- package/dist/transform/rspack.d.ts +1 -1
- package/dist/transform/swc.cjs +1 -1
- package/dist/transform/swc.d.cts +1 -1
- package/dist/transform/swc.d.ts +1 -1
- package/dist/transform/swc.js +1 -1
- package/dist/transform/unplugin.cjs +2 -2
- package/dist/transform/unplugin.d.cts +1 -1
- package/dist/transform/unplugin.d.ts +1 -1
- package/dist/transform/unplugin.js +2 -2
- package/dist/transform/vite.d.cts +1 -1
- package/dist/transform/vite.d.ts +1 -1
- package/dist/transform/webpack.d.cts +1 -1
- package/dist/transform/webpack.d.ts +1 -1
- package/dist/{transform-Cdg7CSbP.cjs → transform-CcNCVr8A.cjs} +2 -2
- package/dist/{transform-Cdg7CSbP.cjs.map → transform-CcNCVr8A.cjs.map} +1 -1
- package/dist/{transform-BhazCKOg.js → transform-mb6EwHsJ.js} +2 -2
- package/dist/{transform-BhazCKOg.js.map → transform-mb6EwHsJ.js.map} +1 -1
- package/dist/{transformOptions-BsjCELkh.d.cts → transformOptions-uNuIpBAA.d.cts} +2 -0
- package/dist/{transformOptions-BsjCELkh.d.ts → transformOptions-uNuIpBAA.d.ts} +2 -0
- package/package.json +1 -1
- package/dist/babelPlugin-BpEeVvk4.cjs.map +0 -1
- package/dist/babelPlugin-PgjdBuQe.js.map +0 -1
- package/dist/bamlPeer-5Ohpq8q9.cjs +0 -74
- package/dist/bamlPeer-5Ohpq8q9.cjs.map +0 -1
- package/dist/bamlPeer-Dyeb3e5o.js +0 -20
- package/dist/bamlPeer-Dyeb3e5o.js.map +0 -1
- package/dist/src-B6zSnPpb.cjs.map +0 -1
|
@@ -1739,15 +1739,8 @@ type TraceTarget = {
|
|
|
1739
1739
|
};
|
|
1740
1740
|
type TraceAssertionSource = "human" | "agent";
|
|
1741
1741
|
/**
|
|
1742
|
-
*
|
|
1743
|
-
*
|
|
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"
|
|
1760
|
-
*
|
|
1761
|
-
*
|
|
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
|
-
/**
|
|
1822
|
-
|
|
1823
|
-
|
|
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
|
-
*
|
|
1866
|
-
*
|
|
1867
|
-
*
|
|
1868
|
-
*
|
|
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`.
|
|
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`.
|
|
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.
|
|
2313
|
-
*
|
|
2314
|
-
*
|
|
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`.
|
|
2326
|
-
*
|
|
2327
|
-
*
|
|
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.
|
|
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 $,
|
|
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
|
-
*
|
|
1743
|
-
*
|
|
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"
|
|
1760
|
-
*
|
|
1761
|
-
*
|
|
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
|
-
/**
|
|
1822
|
-
|
|
1823
|
-
|
|
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
|
-
*
|
|
1866
|
-
*
|
|
1867
|
-
*
|
|
1868
|
-
*
|
|
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`.
|
|
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`.
|
|
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.
|
|
2313
|
-
*
|
|
2314
|
-
*
|
|
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`.
|
|
2326
|
-
*
|
|
2327
|
-
*
|
|
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.
|
|
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 $,
|
|
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-
|
|
6
|
-
const require_http = require("./http-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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-
|
|
2
|
-
import { C as BitfabError, O as __version__, i as flushTraces, t as HttpClient, w as MixedTracingError } from "./http-
|
|
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 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as BitfabTransformOptions } from "./transformOptions-
|
|
1
|
+
import { t as BitfabTransformOptions } from "./transformOptions-uNuIpBAA.js";
|
|
2
2
|
//#region ../bitfab-typescript-transform/src/loaderRuntime.d.ts
|
|
3
3
|
interface BitfabLoaderOptions extends Omit<BitfabTransformOptions, "include"> {
|
|
4
4
|
tsconfig?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as BitfabTransformOptions } from "./transformOptions-
|
|
1
|
+
import { t as BitfabTransformOptions } from "./transformOptions-uNuIpBAA.cjs";
|
|
2
2
|
//#region ../bitfab-typescript-transform/src/loaderRuntime.d.ts
|
|
3
3
|
interface BitfabLoaderOptions extends Omit<BitfabTransformOptions, "include"> {
|
|
4
4
|
tsconfig?: string;
|
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-
|
|
6
|
-
const require_http = require("./http-
|
|
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
|