bitfab 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/{chunk-XGRQMQ2R.js → chunk-2U3XAQZF.js} +6 -6
- package/dist/{chunk-XGRQMQ2R.js.map → chunk-2U3XAQZF.js.map} +1 -1
- package/dist/{chunk-WPYBJGTG.js → chunk-5S4PDHH5.js} +10 -4
- package/dist/chunk-5S4PDHH5.js.map +1 -0
- package/dist/{chunk-54EGXUZ3.js → chunk-6WNBR7CF.js} +6 -3
- package/dist/{chunk-54EGXUZ3.js.map → chunk-6WNBR7CF.js.map} +1 -1
- package/dist/{chunk-PSAEQ4OW.js → chunk-DNTAISCO.js} +5 -3
- package/dist/chunk-DNTAISCO.js.map +1 -0
- package/dist/{chunk-VWRCLZCA.js → chunk-SUZDXSQB.js} +6 -3
- package/dist/{chunk-VWRCLZCA.js.map → chunk-SUZDXSQB.js.map} +1 -1
- package/dist/{http-ONLJPP6W.js → http-V7JVDVND.js} +2 -2
- package/dist/{http-C2TCBBQV.js → http-WI7PHG2H.js} +2 -2
- package/dist/index.cjs +8 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -3
- package/dist/index.d.ts +12 -3
- package/dist/index.js +3 -3
- package/dist/node.cjs +8 -3
- package/dist/node.cjs.map +1 -1
- package/dist/node.js +3 -3
- package/dist/{replay-RM24QKEA.js → replay-63P2V2IT.js} +3 -3
- package/dist/replayCli.js +2 -2
- package/dist/seedCli.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-PSAEQ4OW.js.map +0 -1
- package/dist/chunk-WPYBJGTG.js.map +0 -1
- /package/dist/{http-C2TCBBQV.js.map → http-V7JVDVND.js.map} +0 -0
- /package/dist/{http-ONLJPP6W.js.map → http-WI7PHG2H.js.map} +0 -0
- /package/dist/{replay-RM24QKEA.js.map → replay-63P2V2IT.js.map} +0 -0
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
|
-
/**
|
|
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.
|
|
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
|
-
/**
|
|
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.
|
|
3885
|
+
declare const __version__ = "0.61.6";
|
|
3877
3886
|
|
|
3878
3887
|
/**
|
|
3879
3888
|
* Constants for the Bitfab SDK.
|
package/dist/index.js
CHANGED
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
getCurrentTrace,
|
|
36
36
|
reseedFromRegistry,
|
|
37
37
|
seedFromRegistry
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-2U3XAQZF.js";
|
|
39
39
|
import "./chunk-K4XCWQBC.js";
|
|
40
40
|
import {
|
|
41
41
|
BITFAB_PROGRESS_PREFIX,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
ReplayError,
|
|
45
45
|
reportReplayProgress,
|
|
46
46
|
serializeReplayResult
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-DNTAISCO.js";
|
|
48
48
|
import {
|
|
49
49
|
BitfabError,
|
|
50
50
|
DEFAULT_SERVICE_URL,
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
MixedTracingError,
|
|
53
53
|
__version__,
|
|
54
54
|
flushTraces
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-6WNBR7CF.js";
|
|
56
56
|
import "./chunk-BAOIRE5T.js";
|
|
57
57
|
export {
|
|
58
58
|
AssertionCategoriesClient,
|
package/dist/node.cjs
CHANGED
|
@@ -97,7 +97,7 @@ var __version__, __packageName__;
|
|
|
97
97
|
var init_version_generated = __esm({
|
|
98
98
|
"src/version.generated.ts"() {
|
|
99
99
|
"use strict";
|
|
100
|
-
__version__ = "0.61.
|
|
100
|
+
__version__ = "0.61.6";
|
|
101
101
|
__packageName__ = "bitfab";
|
|
102
102
|
}
|
|
103
103
|
});
|
|
@@ -2901,7 +2901,7 @@ var init_http = __esm({
|
|
|
2901
2901
|
* Start a replay session by fetching historical traces.
|
|
2902
2902
|
* Blocking call - creates an experiment and returns lightweight item references.
|
|
2903
2903
|
*/
|
|
2904
|
-
async startReplay(traceFunctionKey, limit, traceIds, name, codeChangeDescription, codeChangeFiles, includeDbBranchLease, experimentGroupId, datasetIds, graderIds, dbBranchSettings, attempts, includeOriginalMetadata, onlyWithAssertions, judgeAssertions, experimentalSelectiveReplay) {
|
|
2904
|
+
async startReplay(traceFunctionKey, limit, traceIds, name, codeChangeDescription, codeChangeFiles, includeDbBranchLease, experimentGroupId, datasetIds, graderIds, dbBranchSettings, attempts, includeOriginalMetadata, onlyWithAssertions, judgeAssertions, experimentalSelectiveReplay, notes) {
|
|
2905
2905
|
const payload = { traceFunctionKey };
|
|
2906
2906
|
if (experimentalSelectiveReplay !== void 0) {
|
|
2907
2907
|
payload.experimentalSelectiveReplay = experimentalSelectiveReplay;
|
|
@@ -2915,6 +2915,9 @@ var init_http = __esm({
|
|
|
2915
2915
|
if (name !== void 0) {
|
|
2916
2916
|
payload.name = name;
|
|
2917
2917
|
}
|
|
2918
|
+
if (notes !== void 0) {
|
|
2919
|
+
payload.notes = notes;
|
|
2920
|
+
}
|
|
2918
2921
|
if (codeChangeDescription !== void 0) {
|
|
2919
2922
|
payload.codeChangeDescription = codeChangeDescription;
|
|
2920
2923
|
}
|
|
@@ -4569,6 +4572,7 @@ async function waitForReplayPersistence(httpClient, experimentId, replayedTraceI
|
|
|
4569
4572
|
expectedSpanCounts
|
|
4570
4573
|
);
|
|
4571
4574
|
const ready = status.traceIds ?? {};
|
|
4575
|
+
Object.assign(readBackTraceIds, ready);
|
|
4572
4576
|
missing = Object.keys(expectedSpanCounts).filter(
|
|
4573
4577
|
(traceId) => ready[traceId] === void 0
|
|
4574
4578
|
).length;
|
|
@@ -4689,7 +4693,8 @@ async function replay(httpClient, serviceUrl, traceFunctionKey, fn, options, reg
|
|
|
4689
4693
|
options?.adaptInputs !== void 0,
|
|
4690
4694
|
options?.onlyWithAssertions,
|
|
4691
4695
|
options?.judgeAssertions,
|
|
4692
|
-
options?.experimentalSelectiveReplay
|
|
4696
|
+
options?.experimentalSelectiveReplay,
|
|
4697
|
+
options?.notes
|
|
4693
4698
|
);
|
|
4694
4699
|
if (started.items.length === 0) {
|
|
4695
4700
|
try {
|