@bitfab/sdk 0.61.4 → 0.61.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -697,7 +697,7 @@ declare class HttpClient {
697
697
  * Start a replay session by fetching historical traces.
698
698
  * Blocking call - creates an experiment and returns lightweight item references.
699
699
  */
700
- 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, judgeAssertions?: boolean, experimentalSelectiveReplay?: SelectiveReplayOptions): Promise<StartReplayResponse>;
700
+ 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, judgeAssertions?: boolean, experimentalSelectiveReplay?: SelectiveReplayOptions, notes?: string): Promise<StartReplayResponse>;
701
701
  resumeReplay(experimentId: string, traceFunctionKey: string, codeChangeFiles?: CodeChangeFile[] | null, force?: boolean): Promise<ResumeReplayResponse>;
702
702
  /**
703
703
  * Fetch an external span by ID.
@@ -2028,8 +2028,17 @@ interface ReplayOptions {
2028
2028
  * it selects by ID with no dataset attribution.
2029
2029
  */
2030
2030
  traceIds?: string[];
2031
- /** Optional display name for the resulting experiment. */
2031
+ /**
2032
+ * What this run is testing, in a few words, such as 'baseline' or 'shorter
2033
+ * system prompt'. Bitfab records the commit, branch, tree state, datasets,
2034
+ * and who ran it with every experiment, so do not repeat them here.
2035
+ */
2032
2036
  name?: string;
2037
+ /**
2038
+ * Run conditions Bitfab cannot see on its own, such as an environment
2039
+ * override or a forced feature flag. Kept on the experiment next to its name.
2040
+ */
2041
+ notes?: string;
2033
2042
  /** Positive integer limiting parallel items. Set to 1 for sequential. Default 10. */
2034
2043
  maxConcurrency?: number;
2035
2044
  /**
@@ -3873,7 +3882,7 @@ interface CommitRef {
3873
3882
  /**
3874
3883
  * SDK version from package.json (injected at build time)
3875
3884
  */
3876
- declare const __version__ = "0.61.4";
3885
+ declare const __version__ = "0.61.6";
3877
3886
 
3878
3887
  /**
3879
3888
  * Constants for the Bitfab SDK.
package/dist/index.d.ts CHANGED
@@ -697,7 +697,7 @@ declare class HttpClient {
697
697
  * Start a replay session by fetching historical traces.
698
698
  * Blocking call - creates an experiment and returns lightweight item references.
699
699
  */
700
- 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, judgeAssertions?: boolean, experimentalSelectiveReplay?: SelectiveReplayOptions): Promise<StartReplayResponse>;
700
+ 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, judgeAssertions?: boolean, experimentalSelectiveReplay?: SelectiveReplayOptions, notes?: string): Promise<StartReplayResponse>;
701
701
  resumeReplay(experimentId: string, traceFunctionKey: string, codeChangeFiles?: CodeChangeFile[] | null, force?: boolean): Promise<ResumeReplayResponse>;
702
702
  /**
703
703
  * Fetch an external span by ID.
@@ -2028,8 +2028,17 @@ interface ReplayOptions {
2028
2028
  * it selects by ID with no dataset attribution.
2029
2029
  */
2030
2030
  traceIds?: string[];
2031
- /** Optional display name for the resulting experiment. */
2031
+ /**
2032
+ * What this run is testing, in a few words, such as 'baseline' or 'shorter
2033
+ * system prompt'. Bitfab records the commit, branch, tree state, datasets,
2034
+ * and who ran it with every experiment, so do not repeat them here.
2035
+ */
2032
2036
  name?: string;
2037
+ /**
2038
+ * Run conditions Bitfab cannot see on its own, such as an environment
2039
+ * override or a forced feature flag. Kept on the experiment next to its name.
2040
+ */
2041
+ notes?: string;
2033
2042
  /** Positive integer limiting parallel items. Set to 1 for sequential. Default 10. */
2034
2043
  maxConcurrency?: number;
2035
2044
  /**
@@ -3873,7 +3882,7 @@ interface CommitRef {
3873
3882
  /**
3874
3883
  * SDK version from package.json (injected at build time)
3875
3884
  */
3876
- declare const __version__ = "0.61.4";
3885
+ declare const __version__ = "0.61.6";
3877
3886
 
3878
3887
  /**
3879
3888
  * Constants for the Bitfab SDK.
package/dist/index.js CHANGED
@@ -26,7 +26,7 @@ import {
26
26
  getCurrentTrace,
27
27
  reseedFromRegistry,
28
28
  seedFromRegistry
29
- } from "./chunk-2ZZBNQVA.js";
29
+ } from "./chunk-2FX6Q72M.js";
30
30
  import "./chunk-K4XCWQBC.js";
31
31
  import {
32
32
  BITFAB_PROGRESS_PREFIX,
@@ -35,7 +35,7 @@ import {
35
35
  ReplayError,
36
36
  reportReplayProgress,
37
37
  serializeReplayResult
38
- } from "./chunk-FL6BNPSO.js";
38
+ } from "./chunk-WMVXFHWY.js";
39
39
  import {
40
40
  BitfabError,
41
41
  DEFAULT_SERVICE_URL,
@@ -43,7 +43,7 @@ import {
43
43
  MixedTracingError,
44
44
  __version__,
45
45
  flushTraces
46
- } from "./chunk-THGHTVB6.js";
46
+ } from "./chunk-6SGSL4DI.js";
47
47
  import "./chunk-BAOIRE5T.js";
48
48
  export {
49
49
  AssertionCategoriesClient,
package/dist/node.cjs CHANGED
@@ -88,7 +88,7 @@ var __version__, __packageName__;
88
88
  var init_version_generated = __esm({
89
89
  "src/version.generated.ts"() {
90
90
  "use strict";
91
- __version__ = "0.61.4";
91
+ __version__ = "0.61.6";
92
92
  __packageName__ = "@bitfab/sdk";
93
93
  }
94
94
  });
@@ -2892,7 +2892,7 @@ var init_http = __esm({
2892
2892
  * Start a replay session by fetching historical traces.
2893
2893
  * Blocking call - creates an experiment and returns lightweight item references.
2894
2894
  */
2895
- async startReplay(traceFunctionKey, limit, traceIds, name, codeChangeDescription, codeChangeFiles, includeDbBranchLease, experimentGroupId, datasetIds, graderIds, dbBranchSettings, attempts, includeOriginalMetadata, onlyWithAssertions, judgeAssertions, experimentalSelectiveReplay) {
2895
+ async startReplay(traceFunctionKey, limit, traceIds, name, codeChangeDescription, codeChangeFiles, includeDbBranchLease, experimentGroupId, datasetIds, graderIds, dbBranchSettings, attempts, includeOriginalMetadata, onlyWithAssertions, judgeAssertions, experimentalSelectiveReplay, notes) {
2896
2896
  const payload = { traceFunctionKey };
2897
2897
  if (experimentalSelectiveReplay !== void 0) {
2898
2898
  payload.experimentalSelectiveReplay = experimentalSelectiveReplay;
@@ -2906,6 +2906,9 @@ var init_http = __esm({
2906
2906
  if (name !== void 0) {
2907
2907
  payload.name = name;
2908
2908
  }
2909
+ if (notes !== void 0) {
2910
+ payload.notes = notes;
2911
+ }
2909
2912
  if (codeChangeDescription !== void 0) {
2910
2913
  payload.codeChangeDescription = codeChangeDescription;
2911
2914
  }
@@ -4560,6 +4563,7 @@ async function waitForReplayPersistence(httpClient, experimentId, replayedTraceI
4560
4563
  expectedSpanCounts
4561
4564
  );
4562
4565
  const ready = status.traceIds ?? {};
4566
+ Object.assign(readBackTraceIds, ready);
4563
4567
  missing = Object.keys(expectedSpanCounts).filter(
4564
4568
  (traceId) => ready[traceId] === void 0
4565
4569
  ).length;
@@ -4680,7 +4684,8 @@ async function replay(httpClient, serviceUrl, traceFunctionKey, fn, options, reg
4680
4684
  options?.adaptInputs !== void 0,
4681
4685
  options?.onlyWithAssertions,
4682
4686
  options?.judgeAssertions,
4683
- options?.experimentalSelectiveReplay
4687
+ options?.experimentalSelectiveReplay,
4688
+ options?.notes
4684
4689
  );
4685
4690
  if (started.items.length === 0) {
4686
4691
  try {