bitfab 0.57.3 → 0.57.4
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-B7G7QH2S.js → chunk-DAXBPYIY.js} +2 -2
- package/dist/{chunk-B7G7QH2S.js.map → chunk-DAXBPYIY.js.map} +1 -1
- package/dist/{chunk-JLKB3VT3.js → chunk-FWTA2X72.js} +2 -2
- package/dist/{chunk-3MN4DLJH.js → chunk-JRGN2HRU.js} +18 -6
- package/dist/chunk-JRGN2HRU.js.map +1 -0
- package/dist/{chunk-2EFN2SVP.js → chunk-KYLLSZLE.js} +2 -2
- package/dist/{chunk-2EFN2SVP.js.map → chunk-KYLLSZLE.js.map} +1 -1
- package/dist/{chunk-46O35VA7.js → chunk-PIZHUBJD.js} +3 -3
- package/dist/{http-JVWNLQ4C.js → http-K2YSJIIQ.js} +2 -2
- package/dist/{http-UMQCF7G7.js → http-OV5C6DVP.js} +2 -2
- package/dist/index.cjs +13 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +3 -3
- package/dist/node.cjs +13 -1
- package/dist/node.cjs.map +1 -1
- package/dist/node.js +3 -3
- package/dist/{replay-OZCQPRSL.js → replay-XMOWRAMM.js} +3 -3
- package/dist/replayCli.js +2 -2
- package/dist/seedCli.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-3MN4DLJH.js.map +0 -1
- /package/dist/{chunk-JLKB3VT3.js.map → chunk-FWTA2X72.js.map} +0 -0
- /package/dist/{chunk-46O35VA7.js.map → chunk-PIZHUBJD.js.map} +0 -0
- /package/dist/{http-JVWNLQ4C.js.map → http-K2YSJIIQ.js.map} +0 -0
- /package/dist/{http-UMQCF7G7.js.map → http-OV5C6DVP.js.map} +0 -0
- /package/dist/{replay-OZCQPRSL.js.map → replay-XMOWRAMM.js.map} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -1322,6 +1322,7 @@ type LabelVerdict = {
|
|
|
1322
1322
|
label: boolean;
|
|
1323
1323
|
annotation: string;
|
|
1324
1324
|
confidence?: LabelConfidence;
|
|
1325
|
+
evidence?: Justification | null;
|
|
1325
1326
|
} | {
|
|
1326
1327
|
skip: true;
|
|
1327
1328
|
} | {
|
|
@@ -1339,6 +1340,7 @@ type HumanLabelUpdate = {
|
|
|
1339
1340
|
label: boolean;
|
|
1340
1341
|
annotation: string;
|
|
1341
1342
|
confidence?: LabelConfidence;
|
|
1343
|
+
evidence?: Justification | null;
|
|
1342
1344
|
};
|
|
1343
1345
|
type HumanLabelOutcome = {
|
|
1344
1346
|
traceId: string;
|
|
@@ -1352,6 +1354,7 @@ type AssertionVerdict = {
|
|
|
1352
1354
|
labelStatus: LabelStatus;
|
|
1353
1355
|
label: boolean | null;
|
|
1354
1356
|
annotation: string | null;
|
|
1357
|
+
evidence: Justification | null;
|
|
1355
1358
|
confidence: LabelConfidence | null;
|
|
1356
1359
|
labelSource: LabelSource;
|
|
1357
1360
|
approved: boolean;
|
|
@@ -1361,6 +1364,7 @@ type TraceLabels = {
|
|
|
1361
1364
|
labelStatus: LabelStatus;
|
|
1362
1365
|
label: boolean | null;
|
|
1363
1366
|
annotation: string | null;
|
|
1367
|
+
evidence: Justification | null;
|
|
1364
1368
|
approved: boolean;
|
|
1365
1369
|
passed: number;
|
|
1366
1370
|
failed: number;
|
|
@@ -1379,6 +1383,8 @@ declare class LabelsClient {
|
|
|
1379
1383
|
saveHumanAll(updates: HumanLabelUpdate[]): Promise<HumanLabelOutcome[]>;
|
|
1380
1384
|
get(traceId: string): Promise<TraceLabels | null>;
|
|
1381
1385
|
getAll(traceIds: string[]): Promise<TraceLabels[]>;
|
|
1386
|
+
/** Suggest evidence for a whole-trace or assertion label. Currently returns an empty list. */
|
|
1387
|
+
getLabelEvidence(traceId: string, assertionId?: string): Promise<Justification>;
|
|
1382
1388
|
}
|
|
1383
1389
|
|
|
1384
1390
|
type GraderLabelSource = "human" | "live_grader";
|
|
@@ -3604,7 +3610,7 @@ interface CommitRef {
|
|
|
3604
3610
|
/**
|
|
3605
3611
|
* SDK version from package.json (injected at build time)
|
|
3606
3612
|
*/
|
|
3607
|
-
declare const __version__ = "0.57.
|
|
3613
|
+
declare const __version__ = "0.57.4";
|
|
3608
3614
|
|
|
3609
3615
|
/**
|
|
3610
3616
|
* Constants for the Bitfab SDK.
|
package/dist/index.d.ts
CHANGED
|
@@ -1322,6 +1322,7 @@ type LabelVerdict = {
|
|
|
1322
1322
|
label: boolean;
|
|
1323
1323
|
annotation: string;
|
|
1324
1324
|
confidence?: LabelConfidence;
|
|
1325
|
+
evidence?: Justification | null;
|
|
1325
1326
|
} | {
|
|
1326
1327
|
skip: true;
|
|
1327
1328
|
} | {
|
|
@@ -1339,6 +1340,7 @@ type HumanLabelUpdate = {
|
|
|
1339
1340
|
label: boolean;
|
|
1340
1341
|
annotation: string;
|
|
1341
1342
|
confidence?: LabelConfidence;
|
|
1343
|
+
evidence?: Justification | null;
|
|
1342
1344
|
};
|
|
1343
1345
|
type HumanLabelOutcome = {
|
|
1344
1346
|
traceId: string;
|
|
@@ -1352,6 +1354,7 @@ type AssertionVerdict = {
|
|
|
1352
1354
|
labelStatus: LabelStatus;
|
|
1353
1355
|
label: boolean | null;
|
|
1354
1356
|
annotation: string | null;
|
|
1357
|
+
evidence: Justification | null;
|
|
1355
1358
|
confidence: LabelConfidence | null;
|
|
1356
1359
|
labelSource: LabelSource;
|
|
1357
1360
|
approved: boolean;
|
|
@@ -1361,6 +1364,7 @@ type TraceLabels = {
|
|
|
1361
1364
|
labelStatus: LabelStatus;
|
|
1362
1365
|
label: boolean | null;
|
|
1363
1366
|
annotation: string | null;
|
|
1367
|
+
evidence: Justification | null;
|
|
1364
1368
|
approved: boolean;
|
|
1365
1369
|
passed: number;
|
|
1366
1370
|
failed: number;
|
|
@@ -1379,6 +1383,8 @@ declare class LabelsClient {
|
|
|
1379
1383
|
saveHumanAll(updates: HumanLabelUpdate[]): Promise<HumanLabelOutcome[]>;
|
|
1380
1384
|
get(traceId: string): Promise<TraceLabels | null>;
|
|
1381
1385
|
getAll(traceIds: string[]): Promise<TraceLabels[]>;
|
|
1386
|
+
/** Suggest evidence for a whole-trace or assertion label. Currently returns an empty list. */
|
|
1387
|
+
getLabelEvidence(traceId: string, assertionId?: string): Promise<Justification>;
|
|
1382
1388
|
}
|
|
1383
1389
|
|
|
1384
1390
|
type GraderLabelSource = "human" | "live_grader";
|
|
@@ -3604,7 +3610,7 @@ interface CommitRef {
|
|
|
3604
3610
|
/**
|
|
3605
3611
|
* SDK version from package.json (injected at build time)
|
|
3606
3612
|
*/
|
|
3607
|
-
declare const __version__ = "0.57.
|
|
3613
|
+
declare const __version__ = "0.57.4";
|
|
3608
3614
|
|
|
3609
3615
|
/**
|
|
3610
3616
|
* Constants for the Bitfab SDK.
|
package/dist/index.js
CHANGED
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
getCurrentTrace,
|
|
31
31
|
reseedFromRegistry,
|
|
32
32
|
seedFromRegistry
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-JRGN2HRU.js";
|
|
34
34
|
import "./chunk-RCHSYWKI.js";
|
|
35
35
|
import {
|
|
36
36
|
BITFAB_PROGRESS_PREFIX,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
ReplayError,
|
|
40
40
|
reportReplayProgress,
|
|
41
41
|
serializeReplayResult
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-FWTA2X72.js";
|
|
43
43
|
import {
|
|
44
44
|
BitfabError,
|
|
45
45
|
DEFAULT_SERVICE_URL,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
MixedTracingError,
|
|
48
48
|
__version__,
|
|
49
49
|
flushTraces
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-DAXBPYIY.js";
|
|
51
51
|
import "./chunk-VCRFFCLY.js";
|
|
52
52
|
export {
|
|
53
53
|
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.57.
|
|
100
|
+
__version__ = "0.57.4";
|
|
101
101
|
__packageName__ = "bitfab";
|
|
102
102
|
}
|
|
103
103
|
});
|
|
@@ -6001,6 +6001,7 @@ init_http();
|
|
|
6001
6001
|
// src/labels.ts
|
|
6002
6002
|
var LABELS_PATH = "/api/sdk/traces/labels";
|
|
6003
6003
|
var HUMAN_LABELS_PATH = "/api/sdk/traces/labels/human";
|
|
6004
|
+
var LABEL_EVIDENCE_PATH = "/api/sdk/traces/labels/label-evidence";
|
|
6004
6005
|
var LabelsClient = class {
|
|
6005
6006
|
constructor(httpClient) {
|
|
6006
6007
|
this.httpClient = httpClient;
|
|
@@ -6049,6 +6050,17 @@ var LabelsClient = class {
|
|
|
6049
6050
|
);
|
|
6050
6051
|
return response.labels;
|
|
6051
6052
|
}
|
|
6053
|
+
/** Suggest evidence for a whole-trace or assertion label. Currently returns an empty list. */
|
|
6054
|
+
async getLabelEvidence(traceId, assertionId) {
|
|
6055
|
+
const query = new URLSearchParams({ traceId });
|
|
6056
|
+
if (assertionId !== void 0) {
|
|
6057
|
+
query.set("assertionId", assertionId);
|
|
6058
|
+
}
|
|
6059
|
+
const response = await this.httpClient.get(
|
|
6060
|
+
`${LABEL_EVIDENCE_PATH}?${query.toString()}`
|
|
6061
|
+
);
|
|
6062
|
+
return response.evidence;
|
|
6063
|
+
}
|
|
6052
6064
|
};
|
|
6053
6065
|
|
|
6054
6066
|
// src/langgraph.ts
|