@bitfab/sdk 0.57.4 → 0.57.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-4Z3VI3KK.js → chunk-36PIGPJ7.js} +12 -16
- package/dist/chunk-36PIGPJ7.js.map +1 -0
- package/dist/{chunk-TN4YJM7E.js → chunk-3ZKAW5PB.js} +2 -2
- package/dist/{chunk-7V4LTGW3.js → chunk-ATJLJEG4.js} +2 -2
- package/dist/{chunk-7V4LTGW3.js.map → chunk-ATJLJEG4.js.map} +1 -1
- package/dist/{chunk-Z7WSB7TF.js → chunk-EQ37ZZX5.js} +2 -2
- package/dist/{chunk-Z7WSB7TF.js.map → chunk-EQ37ZZX5.js.map} +1 -1
- package/dist/{chunk-TK5APEET.js → chunk-RGOXYCIT.js} +3 -3
- package/dist/{http-YGPWUBNY.js → http-3WXYZU2G.js} +2 -2
- package/dist/{http-TU5OTMRW.js → http-GRRJAMJR.js} +2 -2
- package/dist/index.cjs +7 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +121 -109
- package/dist/index.d.ts +121 -109
- package/dist/index.js +3 -3
- package/dist/node.cjs +7 -11
- package/dist/node.cjs.map +1 -1
- package/dist/node.d.cts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/node.js +3 -3
- package/dist/{replay-PKLSEPEN.js → replay-LZ2BS3CD.js} +3 -3
- package/dist/replayCli.js +2 -2
- package/dist/seedCli.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-4Z3VI3KK.js.map +0 -1
- /package/dist/{chunk-TN4YJM7E.js.map → chunk-3ZKAW5PB.js.map} +0 -0
- /package/dist/{chunk-TK5APEET.js.map → chunk-RGOXYCIT.js.map} +0 -0
- /package/dist/{http-TU5OTMRW.js.map → http-3WXYZU2G.js.map} +0 -0
- /package/dist/{http-YGPWUBNY.js.map → http-GRRJAMJR.js.map} +0 -0
- /package/dist/{replay-PKLSEPEN.js.map → replay-LZ2BS3CD.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BitfabError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-EQ37ZZX5.js";
|
|
4
4
|
|
|
5
5
|
// src/codeChange.ts
|
|
6
6
|
var NUL = String.fromCharCode(0);
|
|
@@ -234,7 +234,7 @@ async function seedFromRegistry(registry, pipeline, cases, options = {}) {
|
|
|
234
234
|
sessionId: seedCase.sessionId
|
|
235
235
|
})
|
|
236
236
|
);
|
|
237
|
-
const { flushTraces: flushTraces2 } = await import("./http-
|
|
237
|
+
const { flushTraces: flushTraces2 } = await import("./http-GRRJAMJR.js");
|
|
238
238
|
await flushTraces2(3e4);
|
|
239
239
|
return { pipeline, traceFunctionKey, traceIds };
|
|
240
240
|
}
|
|
@@ -782,4 +782,4 @@ export {
|
|
|
782
782
|
runRegistryMain,
|
|
783
783
|
runIfEntrypoint
|
|
784
784
|
};
|
|
785
|
-
//# sourceMappingURL=chunk-
|
|
785
|
+
//# sourceMappingURL=chunk-RGOXYCIT.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
flushTraces,
|
|
7
7
|
parseRetryAfterMs,
|
|
8
8
|
serializePayloadBody
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ATJLJEG4.js";
|
|
10
10
|
import "./chunk-VCRFFCLY.js";
|
|
11
11
|
export {
|
|
12
12
|
BitfabError,
|
|
@@ -17,4 +17,4 @@ export {
|
|
|
17
17
|
parseRetryAfterMs,
|
|
18
18
|
serializePayloadBody
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=http-
|
|
20
|
+
//# sourceMappingURL=http-3WXYZU2G.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
flushTraces,
|
|
7
7
|
parseRetryAfterMs,
|
|
8
8
|
serializePayloadBody
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EQ37ZZX5.js";
|
|
10
10
|
export {
|
|
11
11
|
BitfabError,
|
|
12
12
|
HttpClient,
|
|
@@ -16,4 +16,4 @@ export {
|
|
|
16
16
|
parseRetryAfterMs,
|
|
17
17
|
serializePayloadBody
|
|
18
18
|
};
|
|
19
|
-
//# sourceMappingURL=http-
|
|
19
|
+
//# sourceMappingURL=http-GRRJAMJR.js.map
|
package/dist/index.cjs
CHANGED
|
@@ -42,7 +42,7 @@ var __version__, __packageName__;
|
|
|
42
42
|
var init_version_generated = __esm({
|
|
43
43
|
"src/version.generated.ts"() {
|
|
44
44
|
"use strict";
|
|
45
|
-
__version__ = "0.57.
|
|
45
|
+
__version__ = "0.57.6";
|
|
46
46
|
__packageName__ = "@bitfab/sdk";
|
|
47
47
|
}
|
|
48
48
|
});
|
|
@@ -5978,7 +5978,9 @@ init_http();
|
|
|
5978
5978
|
// src/labels.ts
|
|
5979
5979
|
var LABELS_PATH = "/api/sdk/traces/labels";
|
|
5980
5980
|
var HUMAN_LABELS_PATH = "/api/sdk/traces/labels/human";
|
|
5981
|
-
|
|
5981
|
+
function labelEvidencePath(traceId, assertionId) {
|
|
5982
|
+
return `/api/sdk/traces/${encodeURIComponent(traceId)}/assertions/${encodeURIComponent(assertionId)}/evidence`;
|
|
5983
|
+
}
|
|
5982
5984
|
var LabelsClient = class {
|
|
5983
5985
|
constructor(httpClient) {
|
|
5984
5986
|
this.httpClient = httpClient;
|
|
@@ -6027,15 +6029,9 @@ var LabelsClient = class {
|
|
|
6027
6029
|
);
|
|
6028
6030
|
return response.labels;
|
|
6029
6031
|
}
|
|
6030
|
-
/**
|
|
6031
|
-
async
|
|
6032
|
-
const
|
|
6033
|
-
if (assertionId !== void 0) {
|
|
6034
|
-
query.set("assertionId", assertionId);
|
|
6035
|
-
}
|
|
6036
|
-
const response = await this.httpClient.get(
|
|
6037
|
-
`${LABEL_EVIDENCE_PATH}?${query.toString()}`
|
|
6038
|
-
);
|
|
6032
|
+
/** Generate suggested evidence for an assertion on an original or replay trace. */
|
|
6033
|
+
async generateLabelEvidence(traceId, assertionId) {
|
|
6034
|
+
const response = await this.httpClient.get(labelEvidencePath(traceId, assertionId));
|
|
6039
6035
|
return response.evidence;
|
|
6040
6036
|
}
|
|
6041
6037
|
};
|