@bitfab/sdk 0.76.8 → 0.77.0
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/{autoTrace-RWUOk1WF.js → autoTrace-CcKLJXBn.js} +25 -5
- package/dist/autoTrace-CcKLJXBn.js.map +1 -0
- package/dist/{autoTrace-BtiEpHTN.cjs → autoTrace-Yg2tW5p-.cjs} +25 -5
- package/dist/autoTrace-Yg2tW5p-.cjs.map +1 -0
- package/dist/autoTrace.cjs +1 -1
- package/dist/autoTrace.js +1 -1
- package/dist/{http-E8Qa7I4v.cjs → http-Bt8-MEJA.cjs} +3 -3
- package/dist/{http-E8Qa7I4v.cjs.map → http-Bt8-MEJA.cjs.map} +1 -1
- package/dist/{http-DHXjaX-W.js → http-D_HphyVw.js} +3 -3
- package/dist/{http-DHXjaX-W.js.map → http-D_HphyVw.js.map} +1 -1
- package/dist/{index-B8gVPP6Y.d.cts → index-We17b1Rc.d.cts} +58 -2
- package/dist/{index-B8gVPP6Y.d.ts → index-We17b1Rc.d.ts} +58 -2
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/node.cjs +3 -3
- package/dist/node.d.cts +2 -2
- package/dist/node.d.ts +2 -2
- package/dist/node.js +3 -3
- package/dist/registryCommand-D9EkYtKh.js.map +1 -1
- package/dist/{src-BnELQNAx.js → src-C8zuYl9-.js} +16 -5
- package/dist/src-C8zuYl9-.js.map +1 -0
- package/dist/{src-D3bpLZ98.cjs → src-D-3u3oXH.cjs} +16 -5
- package/dist/src-D-3u3oXH.cjs.map +1 -0
- package/package.json +1 -1
- package/dist/autoTrace-BtiEpHTN.cjs.map +0 -1
- package/dist/autoTrace-RWUOk1WF.js.map +0 -1
- package/dist/src-BnELQNAx.js.map +0 -1
- package/dist/src-D3bpLZ98.cjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { C as BitfabError, D as readEnv$1, E as serializeError, O as __version__, S as gitRunner, T as describeError, _ as MAX_SPAN_CARRIER_BYTES, b as replayContextReady, c as recordCallerTraceMetadata, f as ROOT_TRACE_FUNCTION_KEY_FIELD, g as MAX_COMPRESSIBLE_SPAN_CARRIER_BYTES, h as makeSpanOrigin, i as flushTraces, l as retireTraceMetadata, m as isFrameworkInstrumentation, n as SPAN_TYPES, o as unrefTimer, p as SimulationPlan, r as experimentIdWireFields, s as callerTraceMetadata, t as HttpClient, v as byteLength, w as MixedTracingError, x as runWithReplayContext, y as getReplayContext } from "./http-
|
|
3
|
-
import { $ as asyncStorageReady, A as frameworkRecordsClientCall, B as mapOpenAiAgentsTrace, C as OPENAI_EMBEDDINGS, D as clientCallProvider, E as OPENROUTER, F as sharedClientCallStreamRecording, G as installLangChainRunScopes, H as openAiAgentsSpanChain, I as watchClientCall, J as warnOnce, K as markLangChainRunRecorded, L as StreamFinalizationError, M as isOpenRouterBaseUrl, N as recordAutoTracedClientCall, O as clientCallProviderForUsage, P as recordWatchedClientCall, R as MODEL_CALL_SPAN_TYPES, S as OPENAI_CHAT, T as OPENAI_TRANSCRIPTIONS, U as unmapOpenAiAgentsTrace, V as openAiAgentsParentSpanId, W as forgetLangChainRun, X as isCaptureSuppressed, Y as writeOnce, Z as runWithCaptureSuppressed, _ as runWithAutoTraceNodeConfiguration, b as GEMINI, d as currentAutoTraceEntries, et as createAsyncLocalStorage, g as runWithAutoTraceFramesAt, h as runWithAutoTraceEntry, j as isAnthropicBaseUrl, k as clientCallStreams, m as runAsAutoTraceRootFunction, p as invokeThroughAutoTraceEntries, s as __bitfabAutoTraceActive, tt as isAsyncStorageInitDone, u as clearAutoTraceNodeConfiguration, v as runWithAutoTraceRootContext, w as OPENAI_RESPONSES, x as GEMINI_EMBEDDINGS, y as ANTHROPIC, z as endOpenAiAgentsSpan } from "./autoTrace-
|
|
2
|
+
import { C as BitfabError, D as readEnv$1, E as serializeError, O as __version__, S as gitRunner, T as describeError, _ as MAX_SPAN_CARRIER_BYTES, b as replayContextReady, c as recordCallerTraceMetadata, f as ROOT_TRACE_FUNCTION_KEY_FIELD, g as MAX_COMPRESSIBLE_SPAN_CARRIER_BYTES, h as makeSpanOrigin, i as flushTraces, l as retireTraceMetadata, m as isFrameworkInstrumentation, n as SPAN_TYPES, o as unrefTimer, p as SimulationPlan, r as experimentIdWireFields, s as callerTraceMetadata, t as HttpClient, v as byteLength, w as MixedTracingError, x as runWithReplayContext, y as getReplayContext } from "./http-D_HphyVw.js";
|
|
3
|
+
import { $ as asyncStorageReady, A as frameworkRecordsClientCall, B as mapOpenAiAgentsTrace, C as OPENAI_EMBEDDINGS, D as clientCallProvider, E as OPENROUTER, F as sharedClientCallStreamRecording, G as installLangChainRunScopes, H as openAiAgentsSpanChain, I as watchClientCall, J as warnOnce, K as markLangChainRunRecorded, L as StreamFinalizationError, M as isOpenRouterBaseUrl, N as recordAutoTracedClientCall, O as clientCallProviderForUsage, P as recordWatchedClientCall, R as MODEL_CALL_SPAN_TYPES, S as OPENAI_CHAT, T as OPENAI_TRANSCRIPTIONS, U as unmapOpenAiAgentsTrace, V as openAiAgentsParentSpanId, W as forgetLangChainRun, X as isCaptureSuppressed, Y as writeOnce, Z as runWithCaptureSuppressed, _ as runWithAutoTraceNodeConfiguration, b as GEMINI, d as currentAutoTraceEntries, et as createAsyncLocalStorage, g as runWithAutoTraceFramesAt, h as runWithAutoTraceEntry, j as isAnthropicBaseUrl, k as clientCallStreams, m as runAsAutoTraceRootFunction, p as invokeThroughAutoTraceEntries, s as __bitfabAutoTraceActive, tt as isAsyncStorageInitDone, u as clearAutoTraceNodeConfiguration, v as runWithAutoTraceRootContext, w as OPENAI_RESPONSES, x as GEMINI_EMBEDDINGS, y as ANTHROPIC, z as endOpenAiAgentsSpan } from "./autoTrace-CcKLJXBn.js";
|
|
4
4
|
import { t as importOptionalPeer } from "./optionalPeer-CczrzrXx.js";
|
|
5
5
|
import { n as loadBamlModule, t as isSharedBamlModule } from "./bamlPeer-CWPgBSlJ.js";
|
|
6
6
|
import superjson from "superjson";
|
|
@@ -1377,6 +1377,7 @@ var ExperimentsClient = class {
|
|
|
1377
1377
|
//#region src/verdicts.ts
|
|
1378
1378
|
const VERDICTS_PATH = "/api/sdk/traces/verdicts";
|
|
1379
1379
|
const HUMAN_VERDICTS_PATH = "/api/sdk/traces/verdicts/human";
|
|
1380
|
+
const EXTERNAL_VERDICTS_PATH = "/api/sdk/traces/verdicts/external";
|
|
1380
1381
|
function isSkipOrArchive(fields) {
|
|
1381
1382
|
return fields.skip === true || fields.archive === true;
|
|
1382
1383
|
}
|
|
@@ -1477,6 +1478,16 @@ var VerdictsClient = class {
|
|
|
1477
1478
|
label: outcome.verdict === "pass"
|
|
1478
1479
|
}));
|
|
1479
1480
|
}
|
|
1481
|
+
async saveExternal(update, experimentId) {
|
|
1482
|
+
const [outcome] = await this.saveExternalAll([update], experimentId);
|
|
1483
|
+
return outcome;
|
|
1484
|
+
}
|
|
1485
|
+
async saveExternalAll(updates, experimentId) {
|
|
1486
|
+
return (await this.httpClient.request(EXTERNAL_VERDICTS_PATH, {
|
|
1487
|
+
verdicts: updates,
|
|
1488
|
+
...experimentId === void 0 ? {} : { experimentId }
|
|
1489
|
+
})).verdicts;
|
|
1490
|
+
}
|
|
1480
1491
|
async get(traceId) {
|
|
1481
1492
|
const [verdicts] = await this.getAll([traceId]);
|
|
1482
1493
|
return verdicts ?? null;
|
|
@@ -7291,7 +7302,7 @@ var Bitfab = class {
|
|
|
7291
7302
|
await runWithSeedContext({ traceId }, async () => target(...args));
|
|
7292
7303
|
} finally {
|
|
7293
7304
|
try {
|
|
7294
|
-
const { flushTraces } = await import("./http-
|
|
7305
|
+
const { flushTraces } = await import("./http-D_HphyVw.js").then((n) => n.a);
|
|
7295
7306
|
await flushTraces(3e4);
|
|
7296
7307
|
} finally {
|
|
7297
7308
|
unrecorded = activeTraceStates.delete(traceId);
|
|
@@ -7512,7 +7523,7 @@ async function seedFromRegistry(registry, pipeline, cases, options = {}) {
|
|
|
7512
7523
|
metadata: seedCase.metadata,
|
|
7513
7524
|
sessionId: seedCase.sessionId
|
|
7514
7525
|
}));
|
|
7515
|
-
const { flushTraces } = await import("./http-
|
|
7526
|
+
const { flushTraces } = await import("./http-D_HphyVw.js").then((n) => n.a);
|
|
7516
7527
|
await flushTraces(3e4);
|
|
7517
7528
|
return {
|
|
7518
7529
|
pipeline,
|
|
@@ -7529,4 +7540,4 @@ function resolveTraceFunctionKey(registration) {
|
|
|
7529
7540
|
//#endregion
|
|
7530
7541
|
export { VerdictsClient as A, OrganizationMembersClient as C, BitfabLangGraphCallbackHandler as D, BitfabLangGraphIntegration as E, GraderRerunTimeoutError as F, BitfabClaudeAgentHandler as I, DEFAULT_SERVICE_URL as L, SUPPORTED_PROVIDERS as M, DatasetsClient as N, GradersClient as O, GraderRerunError as P, AssertionCategoriesClient as R, BitfabPiIntegration as S, NO_MOCK_OVERRIDE as T, BITFAB_PROGRESS_PREFIX as _, Bitfab as a, reportReplayProgress as b, getCurrentSpan as c, BitfabOpenAITracingProcessor as d, AssertionGenerationError as f, BitfabRivetIntegration as g, SpansClient as h, finalizers as i, ExperimentsClient as j, LabelsClient as k, getCurrentTrace as l, TracesClient as m, reseedFromRegistry as n, BitfabFunction as o, AssertionGenerationTimeoutError as p, seedFromRegistry as r, getCurrentReplayBranch as s, defineReplayRegistry as t, BitfabVercelAiHandler as u, DbBranchReplayError as v, BitfabOpenAIAgentHandler as w, serializeReplayResult as x, ReplayError as y, CategoriesClient as z };
|
|
7531
7542
|
|
|
7532
|
-
//# sourceMappingURL=src-
|
|
7543
|
+
//# sourceMappingURL=src-C8zuYl9-.js.map
|