bitfab 0.57.3 → 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-B7G7QH2S.js → chunk-255I4PN4.js} +2 -2
- package/dist/{chunk-B7G7QH2S.js.map → chunk-255I4PN4.js.map} +1 -1
- package/dist/{chunk-46O35VA7.js → chunk-I5EG523G.js} +3 -3
- package/dist/{chunk-JLKB3VT3.js → chunk-VPZ2LTU6.js} +2 -2
- package/dist/{chunk-2EFN2SVP.js → chunk-WYNN6NY2.js} +2 -2
- package/dist/{chunk-2EFN2SVP.js.map → chunk-WYNN6NY2.js.map} +1 -1
- package/dist/{chunk-3MN4DLJH.js → chunk-YO3HKQX6.js} +21 -6
- package/dist/{chunk-3MN4DLJH.js.map → chunk-YO3HKQX6.js.map} +1 -1
- package/dist/{http-JVWNLQ4C.js → http-CHXMOVLK.js} +2 -2
- package/dist/{http-UMQCF7G7.js → http-FQ76VRFF.js} +2 -2
- package/dist/index.cjs +17 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +25 -2
- package/dist/index.d.ts +25 -2
- package/dist/index.js +5 -3
- package/dist/node.cjs +17 -1
- 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-OZCQPRSL.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-46O35VA7.js.map → chunk-I5EG523G.js.map} +0 -0
- /package/dist/{chunk-JLKB3VT3.js.map → chunk-VPZ2LTU6.js.map} +0 -0
- /package/dist/{http-JVWNLQ4C.js.map → http-CHXMOVLK.js.map} +0 -0
- /package/dist/{http-UMQCF7G7.js.map → http-FQ76VRFF.js.map} +0 -0
- /package/dist/{replay-OZCQPRSL.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,
|
|
@@ -3185,9 +3185,23 @@ var SEARCH_PATH = "/api/sdk/traces/search";
|
|
|
3185
3185
|
function traceAssertionsPath(traceId, suffix = "") {
|
|
3186
3186
|
return `/api/sdk/traces/${encodeURIComponent(traceId)}/assertions${suffix}`;
|
|
3187
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
|
+
};
|
|
3188
3201
|
var TracesClient = class {
|
|
3189
3202
|
constructor(httpClient) {
|
|
3190
3203
|
this.httpClient = httpClient;
|
|
3204
|
+
this.assertions = new TraceAssertionsClient(httpClient);
|
|
3191
3205
|
}
|
|
3192
3206
|
async search(params) {
|
|
3193
3207
|
return this.httpClient.request(SEARCH_PATH, params);
|
|
@@ -6008,7 +6022,7 @@ var Bitfab = class {
|
|
|
6008
6022
|
await runWithSeedContext({ traceId }, async () => target(...args));
|
|
6009
6023
|
} finally {
|
|
6010
6024
|
try {
|
|
6011
|
-
const { flushTraces: flushTraces2 } = await import("./http-
|
|
6025
|
+
const { flushTraces: flushTraces2 } = await import("./http-CHXMOVLK.js");
|
|
6012
6026
|
await flushTraces2(3e4);
|
|
6013
6027
|
} finally {
|
|
6014
6028
|
unrecorded = activeTraceStates.delete(traceId);
|
|
@@ -6067,7 +6081,7 @@ var Bitfab = class {
|
|
|
6067
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.`
|
|
6068
6082
|
);
|
|
6069
6083
|
}
|
|
6070
|
-
const { replay: doReplay } = await import("./replay-
|
|
6084
|
+
const { replay: doReplay } = await import("./replay-CHM7OQ25.js");
|
|
6071
6085
|
return doReplay(
|
|
6072
6086
|
this.httpClient,
|
|
6073
6087
|
this.serviceUrl,
|
|
@@ -6387,7 +6401,7 @@ async function seedFromRegistry(registry, pipeline, cases, options = {}) {
|
|
|
6387
6401
|
sessionId: seedCase.sessionId
|
|
6388
6402
|
})
|
|
6389
6403
|
);
|
|
6390
|
-
const { flushTraces: flushTraces2 } = await import("./http-
|
|
6404
|
+
const { flushTraces: flushTraces2 } = await import("./http-CHXMOVLK.js");
|
|
6391
6405
|
await flushTraces2(3e4);
|
|
6392
6406
|
return { pipeline, traceFunctionKey, traceIds };
|
|
6393
6407
|
}
|
|
@@ -6413,6 +6427,7 @@ export {
|
|
|
6413
6427
|
BitfabLangGraphIntegration,
|
|
6414
6428
|
BitfabOpenAIAgentHandler,
|
|
6415
6429
|
BitfabRivetIntegration,
|
|
6430
|
+
TraceAssertionsClient,
|
|
6416
6431
|
TracesClient,
|
|
6417
6432
|
BitfabOpenAITracingProcessor,
|
|
6418
6433
|
BitfabVercelAiHandler,
|
|
@@ -6426,4 +6441,4 @@ export {
|
|
|
6426
6441
|
reseedFromRegistry,
|
|
6427
6442
|
seedFromRegistry
|
|
6428
6443
|
};
|
|
6429
|
-
//# sourceMappingURL=chunk-
|
|
6444
|
+
//# sourceMappingURL=chunk-YO3HKQX6.js.map
|