bitfab 0.57.4 → 0.57.5
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-DAXBPYIY.js → chunk-255I4PN4.js} +2 -2
- package/dist/{chunk-DAXBPYIY.js.map → chunk-255I4PN4.js.map} +1 -1
- package/dist/{chunk-PIZHUBJD.js → chunk-I5EG523G.js} +3 -3
- package/dist/{chunk-FWTA2X72.js → chunk-VPZ2LTU6.js} +2 -2
- package/dist/{chunk-KYLLSZLE.js → chunk-WYNN6NY2.js} +2 -2
- package/dist/{chunk-KYLLSZLE.js.map → chunk-WYNN6NY2.js.map} +1 -1
- package/dist/{chunk-JRGN2HRU.js → chunk-YO3HKQX6.js} +21 -18
- package/dist/chunk-YO3HKQX6.js.map +1 -0
- package/dist/{http-K2YSJIIQ.js → http-CHXMOVLK.js} +2 -2
- package/dist/{http-OV5C6DVP.js → http-FQ76VRFF.js} +2 -2
- package/dist/index.cjs +17 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +21 -4
- package/dist/index.d.ts +21 -4
- package/dist/index.js +5 -3
- package/dist/node.cjs +17 -13
- 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 +5 -3
- package/dist/node.js.map +1 -1
- package/dist/{replay-XMOWRAMM.js → replay-CHM7OQ25.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-PIZHUBJD.js.map → chunk-I5EG523G.js.map} +0 -0
- /package/dist/{chunk-FWTA2X72.js.map → chunk-VPZ2LTU6.js.map} +0 -0
- /package/dist/{http-K2YSJIIQ.js.map → http-CHXMOVLK.js.map} +0 -0
- /package/dist/{http-OV5C6DVP.js.map → http-FQ76VRFF.js.map} +0 -0
- /package/dist/{replay-XMOWRAMM.js.map → replay-CHM7OQ25.js.map} +0 -0
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
serializeValue,
|
|
18
18
|
toJsonSafe,
|
|
19
19
|
toJsonSafeReport
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-VPZ2LTU6.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-255I4PN4.js";
|
|
41
41
|
import {
|
|
42
42
|
__privateAdd,
|
|
43
43
|
__privateGet,
|
|
@@ -1453,7 +1453,6 @@ 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
|
-
var LABEL_EVIDENCE_PATH = "/api/sdk/traces/labels/label-evidence";
|
|
1457
1456
|
var LabelsClient = class {
|
|
1458
1457
|
constructor(httpClient) {
|
|
1459
1458
|
this.httpClient = httpClient;
|
|
@@ -1502,17 +1501,6 @@ var LabelsClient = class {
|
|
|
1502
1501
|
);
|
|
1503
1502
|
return response.labels;
|
|
1504
1503
|
}
|
|
1505
|
-
/** Suggest evidence for a whole-trace or assertion label. Currently returns an empty list. */
|
|
1506
|
-
async getLabelEvidence(traceId, assertionId) {
|
|
1507
|
-
const query = new URLSearchParams({ traceId });
|
|
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
|
-
);
|
|
1514
|
-
return response.evidence;
|
|
1515
|
-
}
|
|
1516
1504
|
};
|
|
1517
1505
|
|
|
1518
1506
|
// src/langgraph.ts
|
|
@@ -3197,9 +3185,23 @@ var SEARCH_PATH = "/api/sdk/traces/search";
|
|
|
3197
3185
|
function traceAssertionsPath(traceId, suffix = "") {
|
|
3198
3186
|
return `/api/sdk/traces/${encodeURIComponent(traceId)}/assertions${suffix}`;
|
|
3199
3187
|
}
|
|
3188
|
+
function assertionEvidencePath(assertionId) {
|
|
3189
|
+
return `/api/sdk/traces/assertions/${encodeURIComponent(assertionId)}/evidence`;
|
|
3190
|
+
}
|
|
3191
|
+
var TraceAssertionsClient = class {
|
|
3192
|
+
constructor(httpClient) {
|
|
3193
|
+
this.httpClient = httpClient;
|
|
3194
|
+
}
|
|
3195
|
+
/** Suggest evidence for an assertion, enriched with its span context. */
|
|
3196
|
+
async getAssertionEvidence(assertionId) {
|
|
3197
|
+
const response = await this.httpClient.get(assertionEvidencePath(assertionId));
|
|
3198
|
+
return response.evidence;
|
|
3199
|
+
}
|
|
3200
|
+
};
|
|
3200
3201
|
var TracesClient = class {
|
|
3201
3202
|
constructor(httpClient) {
|
|
3202
3203
|
this.httpClient = httpClient;
|
|
3204
|
+
this.assertions = new TraceAssertionsClient(httpClient);
|
|
3203
3205
|
}
|
|
3204
3206
|
async search(params) {
|
|
3205
3207
|
return this.httpClient.request(SEARCH_PATH, params);
|
|
@@ -6020,7 +6022,7 @@ var Bitfab = class {
|
|
|
6020
6022
|
await runWithSeedContext({ traceId }, async () => target(...args));
|
|
6021
6023
|
} finally {
|
|
6022
6024
|
try {
|
|
6023
|
-
const { flushTraces: flushTraces2 } = await import("./http-
|
|
6025
|
+
const { flushTraces: flushTraces2 } = await import("./http-CHXMOVLK.js");
|
|
6024
6026
|
await flushTraces2(3e4);
|
|
6025
6027
|
} finally {
|
|
6026
6028
|
unrecorded = activeTraceStates.delete(traceId);
|
|
@@ -6079,7 +6081,7 @@ var Bitfab = class {
|
|
|
6079
6081
|
`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
6082
|
);
|
|
6081
6083
|
}
|
|
6082
|
-
const { replay: doReplay } = await import("./replay-
|
|
6084
|
+
const { replay: doReplay } = await import("./replay-CHM7OQ25.js");
|
|
6083
6085
|
return doReplay(
|
|
6084
6086
|
this.httpClient,
|
|
6085
6087
|
this.serviceUrl,
|
|
@@ -6399,7 +6401,7 @@ async function seedFromRegistry(registry, pipeline, cases, options = {}) {
|
|
|
6399
6401
|
sessionId: seedCase.sessionId
|
|
6400
6402
|
})
|
|
6401
6403
|
);
|
|
6402
|
-
const { flushTraces: flushTraces2 } = await import("./http-
|
|
6404
|
+
const { flushTraces: flushTraces2 } = await import("./http-CHXMOVLK.js");
|
|
6403
6405
|
await flushTraces2(3e4);
|
|
6404
6406
|
return { pipeline, traceFunctionKey, traceIds };
|
|
6405
6407
|
}
|
|
@@ -6425,6 +6427,7 @@ export {
|
|
|
6425
6427
|
BitfabLangGraphIntegration,
|
|
6426
6428
|
BitfabOpenAIAgentHandler,
|
|
6427
6429
|
BitfabRivetIntegration,
|
|
6430
|
+
TraceAssertionsClient,
|
|
6428
6431
|
TracesClient,
|
|
6429
6432
|
BitfabOpenAITracingProcessor,
|
|
6430
6433
|
BitfabVercelAiHandler,
|
|
@@ -6438,4 +6441,4 @@ export {
|
|
|
6438
6441
|
reseedFromRegistry,
|
|
6439
6442
|
seedFromRegistry
|
|
6440
6443
|
};
|
|
6441
|
-
//# sourceMappingURL=chunk-
|
|
6444
|
+
//# sourceMappingURL=chunk-YO3HKQX6.js.map
|