bitfab 0.57.5 → 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-WYNN6NY2.js → chunk-EC7EZXDV.js} +2 -2
- package/dist/{chunk-WYNN6NY2.js.map → chunk-EC7EZXDV.js.map} +1 -1
- package/dist/{chunk-VPZ2LTU6.js → chunk-GT4IDECP.js} +2 -2
- package/dist/{chunk-YO3HKQX6.js → chunk-ICL6RSND.js} +14 -21
- package/dist/chunk-ICL6RSND.js.map +1 -0
- package/dist/{chunk-I5EG523G.js → chunk-IF7GVAWV.js} +3 -3
- package/dist/{chunk-255I4PN4.js → chunk-UTBA3ASY.js} +2 -2
- package/dist/{chunk-255I4PN4.js.map → chunk-UTBA3ASY.js.map} +1 -1
- package/dist/{http-CHXMOVLK.js → http-EYKH2EPD.js} +2 -2
- package/dist/{http-FQ76VRFF.js → http-U3V6WNLO.js} +2 -2
- package/dist/index.cjs +9 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +121 -126
- package/dist/index.d.ts +121 -126
- package/dist/index.js +3 -5
- package/dist/node.cjs +9 -17
- 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 -5
- package/dist/node.js.map +1 -1
- package/dist/{replay-CHM7OQ25.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-YO3HKQX6.js.map +0 -1
- /package/dist/{chunk-VPZ2LTU6.js.map → chunk-GT4IDECP.js.map} +0 -0
- /package/dist/{chunk-I5EG523G.js.map → chunk-IF7GVAWV.js.map} +0 -0
- /package/dist/{http-CHXMOVLK.js.map → http-EYKH2EPD.js.map} +0 -0
- /package/dist/{http-FQ76VRFF.js.map → http-U3V6WNLO.js.map} +0 -0
- /package/dist/{replay-CHM7OQ25.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,6 +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
|
+
function labelEvidencePath(traceId, assertionId) {
|
|
1457
|
+
return `/api/sdk/traces/${encodeURIComponent(traceId)}/assertions/${encodeURIComponent(assertionId)}/evidence`;
|
|
1458
|
+
}
|
|
1456
1459
|
var LabelsClient = class {
|
|
1457
1460
|
constructor(httpClient) {
|
|
1458
1461
|
this.httpClient = httpClient;
|
|
@@ -1501,6 +1504,11 @@ var LabelsClient = class {
|
|
|
1501
1504
|
);
|
|
1502
1505
|
return response.labels;
|
|
1503
1506
|
}
|
|
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));
|
|
1510
|
+
return response.evidence;
|
|
1511
|
+
}
|
|
1504
1512
|
};
|
|
1505
1513
|
|
|
1506
1514
|
// src/langgraph.ts
|
|
@@ -3185,23 +3193,9 @@ var SEARCH_PATH = "/api/sdk/traces/search";
|
|
|
3185
3193
|
function traceAssertionsPath(traceId, suffix = "") {
|
|
3186
3194
|
return `/api/sdk/traces/${encodeURIComponent(traceId)}/assertions${suffix}`;
|
|
3187
3195
|
}
|
|
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
|
-
};
|
|
3201
3196
|
var TracesClient = class {
|
|
3202
3197
|
constructor(httpClient) {
|
|
3203
3198
|
this.httpClient = httpClient;
|
|
3204
|
-
this.assertions = new TraceAssertionsClient(httpClient);
|
|
3205
3199
|
}
|
|
3206
3200
|
async search(params) {
|
|
3207
3201
|
return this.httpClient.request(SEARCH_PATH, params);
|
|
@@ -6022,7 +6016,7 @@ var Bitfab = class {
|
|
|
6022
6016
|
await runWithSeedContext({ traceId }, async () => target(...args));
|
|
6023
6017
|
} finally {
|
|
6024
6018
|
try {
|
|
6025
|
-
const { flushTraces: flushTraces2 } = await import("./http-
|
|
6019
|
+
const { flushTraces: flushTraces2 } = await import("./http-EYKH2EPD.js");
|
|
6026
6020
|
await flushTraces2(3e4);
|
|
6027
6021
|
} finally {
|
|
6028
6022
|
unrecorded = activeTraceStates.delete(traceId);
|
|
@@ -6081,7 +6075,7 @@ var Bitfab = class {
|
|
|
6081
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.`
|
|
6082
6076
|
);
|
|
6083
6077
|
}
|
|
6084
|
-
const { replay: doReplay } = await import("./replay-
|
|
6078
|
+
const { replay: doReplay } = await import("./replay-W2KNVMMJ.js");
|
|
6085
6079
|
return doReplay(
|
|
6086
6080
|
this.httpClient,
|
|
6087
6081
|
this.serviceUrl,
|
|
@@ -6401,7 +6395,7 @@ async function seedFromRegistry(registry, pipeline, cases, options = {}) {
|
|
|
6401
6395
|
sessionId: seedCase.sessionId
|
|
6402
6396
|
})
|
|
6403
6397
|
);
|
|
6404
|
-
const { flushTraces: flushTraces2 } = await import("./http-
|
|
6398
|
+
const { flushTraces: flushTraces2 } = await import("./http-EYKH2EPD.js");
|
|
6405
6399
|
await flushTraces2(3e4);
|
|
6406
6400
|
return { pipeline, traceFunctionKey, traceIds };
|
|
6407
6401
|
}
|
|
@@ -6427,7 +6421,6 @@ export {
|
|
|
6427
6421
|
BitfabLangGraphIntegration,
|
|
6428
6422
|
BitfabOpenAIAgentHandler,
|
|
6429
6423
|
BitfabRivetIntegration,
|
|
6430
|
-
TraceAssertionsClient,
|
|
6431
6424
|
TracesClient,
|
|
6432
6425
|
BitfabOpenAITracingProcessor,
|
|
6433
6426
|
BitfabVercelAiHandler,
|
|
@@ -6441,4 +6434,4 @@ export {
|
|
|
6441
6434
|
reseedFromRegistry,
|
|
6442
6435
|
seedFromRegistry
|
|
6443
6436
|
};
|
|
6444
|
-
//# sourceMappingURL=chunk-
|
|
6437
|
+
//# sourceMappingURL=chunk-ICL6RSND.js.map
|