bitfab 0.62.8 → 0.63.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cloudReplay.py +889 -707
- package/dist/autoTrace.cjs.map +1 -1
- package/dist/autoTrace.js +2 -2
- package/dist/{chunk-P7IHEJZW.js → chunk-5RHWKAAZ.js} +19 -5
- package/dist/chunk-5RHWKAAZ.js.map +1 -0
- package/dist/{chunk-IZ5ORW4E.js → chunk-KARCQKAW.js} +15 -4
- package/dist/chunk-KARCQKAW.js.map +1 -0
- package/dist/{chunk-BAOIRE5T.js → chunk-MT36GJMW.js} +13 -2
- package/dist/{chunk-BAOIRE5T.js.map → chunk-MT36GJMW.js.map} +1 -1
- package/dist/{chunk-3SYFXHKU.js → chunk-Q74D6UQA.js} +5 -5
- package/dist/{chunk-3SYFXHKU.js.map → chunk-Q74D6UQA.js.map} +1 -1
- package/dist/{chunk-SKJXMGZE.js → chunk-RW26DE5W.js} +24 -7
- package/dist/chunk-RW26DE5W.js.map +1 -0
- package/dist/{chunk-K4XCWQBC.js → chunk-YWXQM6J3.js} +2 -2
- package/dist/{chunk-WBEHKLZK.js → chunk-ZVEIZZAN.js} +8 -8
- package/dist/{chunk-WBEHKLZK.js.map → chunk-ZVEIZZAN.js.map} +1 -1
- package/dist/{http-IAQKHQIW.js → http-Q62IVATC.js} +2 -2
- package/dist/{http-USSXBYGY.js → http-TO3MKZLO.js} +3 -3
- package/dist/index.cjs +30 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -7
- package/dist/index.d.ts +3 -7
- package/dist/index.js +5 -5
- package/dist/node.cjs +30 -6
- package/dist/node.cjs.map +1 -1
- package/dist/node.js +5 -5
- package/dist/{replay-NATYJQWY.js → replay-RJJAPO6Q.js} +10 -6
- package/dist/replayCli.js +21 -10
- package/dist/replayCli.js.map +1 -1
- package/dist/seedCli.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-IZ5ORW4E.js.map +0 -1
- package/dist/chunk-P7IHEJZW.js.map +0 -1
- package/dist/chunk-SKJXMGZE.js.map +0 -1
- /package/dist/{chunk-K4XCWQBC.js.map → chunk-YWXQM6J3.js.map} +0 -0
- /package/dist/{http-IAQKHQIW.js.map → http-Q62IVATC.js.map} +0 -0
- /package/dist/{http-USSXBYGY.js.map → http-TO3MKZLO.js.map} +0 -0
- /package/dist/{replay-NATYJQWY.js.map → replay-RJJAPO6Q.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,
|
|
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, skipAssertionJudging?: boolean, experimentalSelectiveReplay?: SelectiveReplayOptions, notes?: string, metadata?: Record<string, 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.
|
|
@@ -2223,11 +2223,7 @@ interface ReplayOptions {
|
|
|
2223
2223
|
* replays nothing.
|
|
2224
2224
|
*/
|
|
2225
2225
|
onlyWithAssertions?: boolean;
|
|
2226
|
-
|
|
2227
|
-
* Judge every approved assertion on each replay as it finishes and save the
|
|
2228
|
-
* verdict as that assertion's agent label. Off unless asked: each judgement
|
|
2229
|
-
* costs model calls.
|
|
2230
|
-
*/
|
|
2226
|
+
skipAssertionJudging?: boolean;
|
|
2231
2227
|
judgeAssertions?: boolean;
|
|
2232
2228
|
/**
|
|
2233
2229
|
* Reshape recorded inputs before they are spread into `fn`.
|
|
@@ -3977,7 +3973,7 @@ interface CommitRef {
|
|
|
3977
3973
|
/**
|
|
3978
3974
|
* SDK version from package.json (injected at build time)
|
|
3979
3975
|
*/
|
|
3980
|
-
declare const __version__ = "0.
|
|
3976
|
+
declare const __version__ = "0.63.1";
|
|
3981
3977
|
|
|
3982
3978
|
/**
|
|
3983
3979
|
* 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,
|
|
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, skipAssertionJudging?: boolean, experimentalSelectiveReplay?: SelectiveReplayOptions, notes?: string, metadata?: Record<string, 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.
|
|
@@ -2223,11 +2223,7 @@ interface ReplayOptions {
|
|
|
2223
2223
|
* replays nothing.
|
|
2224
2224
|
*/
|
|
2225
2225
|
onlyWithAssertions?: boolean;
|
|
2226
|
-
|
|
2227
|
-
* Judge every approved assertion on each replay as it finishes and save the
|
|
2228
|
-
* verdict as that assertion's agent label. Off unless asked: each judgement
|
|
2229
|
-
* costs model calls.
|
|
2230
|
-
*/
|
|
2226
|
+
skipAssertionJudging?: boolean;
|
|
2231
2227
|
judgeAssertions?: boolean;
|
|
2232
2228
|
/**
|
|
2233
2229
|
* Reshape recorded inputs before they are spread into `fn`.
|
|
@@ -3977,7 +3973,7 @@ interface CommitRef {
|
|
|
3977
3973
|
/**
|
|
3978
3974
|
* SDK version from package.json (injected at build time)
|
|
3979
3975
|
*/
|
|
3980
|
-
declare const __version__ = "0.
|
|
3976
|
+
declare const __version__ = "0.63.1";
|
|
3981
3977
|
|
|
3982
3978
|
/**
|
|
3983
3979
|
* Constants for the Bitfab SDK.
|
package/dist/index.js
CHANGED
|
@@ -36,8 +36,8 @@ import {
|
|
|
36
36
|
getCurrentTrace,
|
|
37
37
|
reseedFromRegistry,
|
|
38
38
|
seedFromRegistry
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import "./chunk-
|
|
39
|
+
} from "./chunk-ZVEIZZAN.js";
|
|
40
|
+
import "./chunk-YWXQM6J3.js";
|
|
41
41
|
import {
|
|
42
42
|
BITFAB_PROGRESS_PREFIX,
|
|
43
43
|
DbBranchReplayError,
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
ReplayError,
|
|
46
46
|
reportReplayProgress,
|
|
47
47
|
serializeReplayResult
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-5RHWKAAZ.js";
|
|
49
49
|
import {
|
|
50
50
|
BitfabError,
|
|
51
51
|
DEFAULT_SERVICE_URL,
|
|
@@ -53,8 +53,8 @@ import {
|
|
|
53
53
|
MixedTracingError,
|
|
54
54
|
__version__,
|
|
55
55
|
flushTraces
|
|
56
|
-
} from "./chunk-
|
|
57
|
-
import "./chunk-
|
|
56
|
+
} from "./chunk-Q74D6UQA.js";
|
|
57
|
+
import "./chunk-MT36GJMW.js";
|
|
58
58
|
export {
|
|
59
59
|
AssertionCategoriesClient,
|
|
60
60
|
AssertionGenerationError,
|
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.
|
|
100
|
+
__version__ = "0.63.1";
|
|
101
101
|
__packageName__ = "bitfab";
|
|
102
102
|
}
|
|
103
103
|
});
|
|
@@ -729,6 +729,16 @@ function warnOnce(key, message) {
|
|
|
729
729
|
warned.add(key);
|
|
730
730
|
warn(message);
|
|
731
731
|
}
|
|
732
|
+
function writeOnce(key, line, write = console.warn) {
|
|
733
|
+
if (warned.has(key)) {
|
|
734
|
+
return;
|
|
735
|
+
}
|
|
736
|
+
warned.add(key);
|
|
737
|
+
try {
|
|
738
|
+
write(line);
|
|
739
|
+
} catch {
|
|
740
|
+
}
|
|
741
|
+
}
|
|
732
742
|
var warned;
|
|
733
743
|
var init_warnOnce = __esm({
|
|
734
744
|
"src/warnOnce.ts"() {
|
|
@@ -2901,7 +2911,7 @@ var init_http = __esm({
|
|
|
2901
2911
|
* Start a replay session by fetching historical traces.
|
|
2902
2912
|
* Blocking call - creates an experiment and returns lightweight item references.
|
|
2903
2913
|
*/
|
|
2904
|
-
async startReplay(traceFunctionKey, limit, traceIds, name, codeChangeDescription, codeChangeFiles, includeDbBranchLease, experimentGroupId, datasetIds, graderIds, dbBranchSettings, attempts, includeOriginalMetadata, onlyWithAssertions,
|
|
2914
|
+
async startReplay(traceFunctionKey, limit, traceIds, name, codeChangeDescription, codeChangeFiles, includeDbBranchLease, experimentGroupId, datasetIds, graderIds, dbBranchSettings, attempts, includeOriginalMetadata, onlyWithAssertions, skipAssertionJudging, experimentalSelectiveReplay, notes, metadata) {
|
|
2905
2915
|
const payload = { traceFunctionKey };
|
|
2906
2916
|
if (experimentalSelectiveReplay !== void 0) {
|
|
2907
2917
|
payload.experimentalSelectiveReplay = experimentalSelectiveReplay;
|
|
@@ -2956,7 +2966,7 @@ var init_http = __esm({
|
|
|
2956
2966
|
if (onlyWithAssertions) {
|
|
2957
2967
|
payload.onlyWithAssertions = true;
|
|
2958
2968
|
}
|
|
2959
|
-
if (
|
|
2969
|
+
if (skipAssertionJudging !== true) {
|
|
2960
2970
|
payload.judgeAssertions = true;
|
|
2961
2971
|
}
|
|
2962
2972
|
const git = await resolvedGitState();
|
|
@@ -4041,13 +4051,15 @@ var replay_exports = {};
|
|
|
4041
4051
|
__export(replay_exports, {
|
|
4042
4052
|
BITFAB_PROGRESS_PREFIX: () => BITFAB_PROGRESS_PREFIX,
|
|
4043
4053
|
DbBranchReplayError: () => DbBranchReplayError,
|
|
4054
|
+
JUDGE_ASSERTIONS_DEPRECATION_WARNING: () => JUDGE_ASSERTIONS_DEPRECATION_WARNING,
|
|
4044
4055
|
ReplayError: () => ReplayError,
|
|
4045
4056
|
deserializeInputs: () => deserializeInputs,
|
|
4046
4057
|
replay: () => replay,
|
|
4047
4058
|
reportReplayProgress: () => reportReplayProgress,
|
|
4048
4059
|
serializeReplayResult: () => serializeReplayResult,
|
|
4049
4060
|
sleepForReplayPersistence: () => sleepForReplayPersistence,
|
|
4050
|
-
waitForReplayPersistence: () => waitForReplayPersistence
|
|
4061
|
+
waitForReplayPersistence: () => waitForReplayPersistence,
|
|
4062
|
+
warnJudgeAssertionsDeprecated: () => warnJudgeAssertionsDeprecated
|
|
4051
4063
|
});
|
|
4052
4064
|
function expandReplayWork(serverItems, attempts) {
|
|
4053
4065
|
return Array.from(
|
|
@@ -4598,7 +4610,17 @@ async function mapWithConcurrency2(tasks, maxConcurrency, onSettled, onStarted,
|
|
|
4598
4610
|
await Promise.all(workers);
|
|
4599
4611
|
return results.slice(0, nextIndex);
|
|
4600
4612
|
}
|
|
4613
|
+
function warnJudgeAssertionsDeprecated(write = console.warn) {
|
|
4614
|
+
writeOnce(
|
|
4615
|
+
"judgeAssertions-deprecated",
|
|
4616
|
+
JUDGE_ASSERTIONS_DEPRECATION_WARNING,
|
|
4617
|
+
write
|
|
4618
|
+
);
|
|
4619
|
+
}
|
|
4601
4620
|
async function replay(httpClient, serviceUrl, traceFunctionKey, fn, options, registeredOverrides = []) {
|
|
4621
|
+
if (options?.judgeAssertions !== void 0) {
|
|
4622
|
+
warnJudgeAssertionsDeprecated();
|
|
4623
|
+
}
|
|
4602
4624
|
if (options?.resume !== void 0) {
|
|
4603
4625
|
validateResume(options.resume, options);
|
|
4604
4626
|
} else if (options?.force === true) {
|
|
@@ -4675,7 +4697,7 @@ async function replay(httpClient, serviceUrl, traceFunctionKey, fn, options, reg
|
|
|
4675
4697
|
requestedAttempts,
|
|
4676
4698
|
options?.adaptInputs !== void 0,
|
|
4677
4699
|
options?.onlyWithAssertions,
|
|
4678
|
-
options?.judgeAssertions,
|
|
4700
|
+
options?.skipAssertionJudging === true || options?.judgeAssertions === false,
|
|
4679
4701
|
options?.experimentalSelectiveReplay,
|
|
4680
4702
|
options?.notes,
|
|
4681
4703
|
options?.metadata
|
|
@@ -5050,7 +5072,7 @@ async function writeReplayResultFile(result) {
|
|
|
5050
5072
|
}
|
|
5051
5073
|
}
|
|
5052
5074
|
}
|
|
5053
|
-
var REPLAY_PERSISTENCE_TIMEOUT_MS, MAX_REPLAY_ATTEMPTS, RESUME_CONFLICTING_OPTIONS, CARRIED_OVER_ERROR, BITFAB_PROGRESS_PREFIX, ReplayError, DbBranchReplayError;
|
|
5075
|
+
var REPLAY_PERSISTENCE_TIMEOUT_MS, MAX_REPLAY_ATTEMPTS, RESUME_CONFLICTING_OPTIONS, CARRIED_OVER_ERROR, BITFAB_PROGRESS_PREFIX, ReplayError, DbBranchReplayError, JUDGE_ASSERTIONS_DEPRECATION_WARNING;
|
|
5054
5076
|
var init_replay = __esm({
|
|
5055
5077
|
"src/replay.ts"() {
|
|
5056
5078
|
"use strict";
|
|
@@ -5065,6 +5087,7 @@ var init_replay = __esm({
|
|
|
5065
5087
|
init_replayInterrupt();
|
|
5066
5088
|
init_selectiveReplayRuntime();
|
|
5067
5089
|
init_serialize();
|
|
5090
|
+
init_warnOnce();
|
|
5068
5091
|
REPLAY_PERSISTENCE_TIMEOUT_MS = 3e4;
|
|
5069
5092
|
MAX_REPLAY_ATTEMPTS = 100;
|
|
5070
5093
|
RESUME_CONFLICTING_OPTIONS = [
|
|
@@ -5101,6 +5124,7 @@ var init_replay = __esm({
|
|
|
5101
5124
|
this.name = "DbBranchReplayError";
|
|
5102
5125
|
}
|
|
5103
5126
|
};
|
|
5127
|
+
JUDGE_ASSERTIONS_DEPRECATION_WARNING = "Bitfab: judgeAssertions is deprecated. Assertion judging is on by default; pass skipAssertionJudging: true (--skip-assertion-judging) to turn it off.";
|
|
5104
5128
|
}
|
|
5105
5129
|
});
|
|
5106
5130
|
|