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/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.3";
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.3";
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-3MN4DLJH.js";
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-JLKB3VT3.js";
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-B7G7QH2S.js";
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.3";
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