bitfab 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-KYLLSZLE.js → chunk-EC7EZXDV.js} +2 -2
- package/dist/{chunk-KYLLSZLE.js.map → chunk-EC7EZXDV.js.map} +1 -1
- package/dist/{chunk-FWTA2X72.js → chunk-GT4IDECP.js} +2 -2
- package/dist/{chunk-JRGN2HRU.js → chunk-ICL6RSND.js} +12 -16
- package/dist/chunk-ICL6RSND.js.map +1 -0
- package/dist/{chunk-PIZHUBJD.js → chunk-IF7GVAWV.js} +3 -3
- package/dist/{chunk-DAXBPYIY.js → chunk-UTBA3ASY.js} +2 -2
- package/dist/{chunk-DAXBPYIY.js.map → chunk-UTBA3ASY.js.map} +1 -1
- package/dist/{http-K2YSJIIQ.js → http-EYKH2EPD.js} +2 -2
- package/dist/{http-OV5C6DVP.js → http-U3V6WNLO.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-XMOWRAMM.js → replay-W2KNVMMJ.js} +3 -3
- package/dist/replayCli.js +2 -2
- package/dist/seedCli.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-JRGN2HRU.js.map +0 -1
- /package/dist/{chunk-FWTA2X72.js.map → chunk-GT4IDECP.js.map} +0 -0
- /package/dist/{chunk-PIZHUBJD.js.map → chunk-IF7GVAWV.js.map} +0 -0
- /package/dist/{http-K2YSJIIQ.js.map → http-EYKH2EPD.js.map} +0 -0
- /package/dist/{http-OV5C6DVP.js.map → http-U3V6WNLO.js.map} +0 -0
- /package/dist/{replay-XMOWRAMM.js.map → replay-W2KNVMMJ.js.map} +0 -0
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
replayContextReady,
|
|
7
7
|
runWithReplayContext,
|
|
8
8
|
warnOnce
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UTBA3ASY.js";
|
|
10
10
|
import {
|
|
11
11
|
runWithCaptureSuppressed
|
|
12
12
|
} from "./chunk-VCRFFCLY.js";
|
|
@@ -1263,4 +1263,4 @@ export {
|
|
|
1263
1263
|
sleepForReplayPersistence,
|
|
1264
1264
|
replay
|
|
1265
1265
|
};
|
|
1266
|
-
//# sourceMappingURL=chunk-
|
|
1266
|
+
//# sourceMappingURL=chunk-GT4IDECP.js.map
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
serializeValue,
|
|
18
18
|
toJsonSafe,
|
|
19
19
|
toJsonSafeReport
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-GT4IDECP.js";
|
|
21
21
|
import {
|
|
22
22
|
BitfabError,
|
|
23
23
|
CONTENT_OFF_KEY,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
retireTraceMetadata,
|
|
38
38
|
traceIdOf,
|
|
39
39
|
warnOnce
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-UTBA3ASY.js";
|
|
41
41
|
import {
|
|
42
42
|
__privateAdd,
|
|
43
43
|
__privateGet,
|
|
@@ -1453,7 +1453,9 @@ var GradersClient = class {
|
|
|
1453
1453
|
// src/labels.ts
|
|
1454
1454
|
var LABELS_PATH = "/api/sdk/traces/labels";
|
|
1455
1455
|
var HUMAN_LABELS_PATH = "/api/sdk/traces/labels/human";
|
|
1456
|
-
|
|
1456
|
+
function labelEvidencePath(traceId, assertionId) {
|
|
1457
|
+
return `/api/sdk/traces/${encodeURIComponent(traceId)}/assertions/${encodeURIComponent(assertionId)}/evidence`;
|
|
1458
|
+
}
|
|
1457
1459
|
var LabelsClient = class {
|
|
1458
1460
|
constructor(httpClient) {
|
|
1459
1461
|
this.httpClient = httpClient;
|
|
@@ -1502,15 +1504,9 @@ var LabelsClient = class {
|
|
|
1502
1504
|
);
|
|
1503
1505
|
return response.labels;
|
|
1504
1506
|
}
|
|
1505
|
-
/**
|
|
1506
|
-
async
|
|
1507
|
-
const
|
|
1508
|
-
if (assertionId !== void 0) {
|
|
1509
|
-
query.set("assertionId", assertionId);
|
|
1510
|
-
}
|
|
1511
|
-
const response = await this.httpClient.get(
|
|
1512
|
-
`${LABEL_EVIDENCE_PATH}?${query.toString()}`
|
|
1513
|
-
);
|
|
1507
|
+
/** Generate suggested evidence for an assertion on an original or replay trace. */
|
|
1508
|
+
async generateLabelEvidence(traceId, assertionId) {
|
|
1509
|
+
const response = await this.httpClient.get(labelEvidencePath(traceId, assertionId));
|
|
1514
1510
|
return response.evidence;
|
|
1515
1511
|
}
|
|
1516
1512
|
};
|
|
@@ -6020,7 +6016,7 @@ var Bitfab = class {
|
|
|
6020
6016
|
await runWithSeedContext({ traceId }, async () => target(...args));
|
|
6021
6017
|
} finally {
|
|
6022
6018
|
try {
|
|
6023
|
-
const { flushTraces: flushTraces2 } = await import("./http-
|
|
6019
|
+
const { flushTraces: flushTraces2 } = await import("./http-EYKH2EPD.js");
|
|
6024
6020
|
await flushTraces2(3e4);
|
|
6025
6021
|
} finally {
|
|
6026
6022
|
unrecorded = activeTraceStates.delete(traceId);
|
|
@@ -6079,7 +6075,7 @@ var Bitfab = class {
|
|
|
6079
6075
|
`Function is wrapped with trace function key '${wrappedKey}' but replay was called with '${traceFunctionKey}'. Pass matching keys, or pass the unwrapped function to replay it under the explicit key.`
|
|
6080
6076
|
);
|
|
6081
6077
|
}
|
|
6082
|
-
const { replay: doReplay } = await import("./replay-
|
|
6078
|
+
const { replay: doReplay } = await import("./replay-W2KNVMMJ.js");
|
|
6083
6079
|
return doReplay(
|
|
6084
6080
|
this.httpClient,
|
|
6085
6081
|
this.serviceUrl,
|
|
@@ -6399,7 +6395,7 @@ async function seedFromRegistry(registry, pipeline, cases, options = {}) {
|
|
|
6399
6395
|
sessionId: seedCase.sessionId
|
|
6400
6396
|
})
|
|
6401
6397
|
);
|
|
6402
|
-
const { flushTraces: flushTraces2 } = await import("./http-
|
|
6398
|
+
const { flushTraces: flushTraces2 } = await import("./http-EYKH2EPD.js");
|
|
6403
6399
|
await flushTraces2(3e4);
|
|
6404
6400
|
return { pipeline, traceFunctionKey, traceIds };
|
|
6405
6401
|
}
|
|
@@ -6438,4 +6434,4 @@ export {
|
|
|
6438
6434
|
reseedFromRegistry,
|
|
6439
6435
|
seedFromRegistry
|
|
6440
6436
|
};
|
|
6441
|
-
//# sourceMappingURL=chunk-
|
|
6437
|
+
//# sourceMappingURL=chunk-ICL6RSND.js.map
|