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