@bitfab/sdk 0.74.5 → 0.74.7

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