@bitfab/sdk 0.76.4 → 0.76.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/{autoTrace-pZKu5Nk2.cjs → autoTrace-B0HsiBQB.cjs} +37 -2
- package/dist/autoTrace-B0HsiBQB.cjs.map +1 -0
- package/dist/{autoTrace-BgN0zCQf.js → autoTrace-g3y0sLPq.js} +32 -3
- package/dist/autoTrace-g3y0sLPq.js.map +1 -0
- package/dist/autoTrace.cjs +1 -1
- package/dist/autoTrace.js +1 -1
- package/dist/{babelPlugin-tupc_WZS.js → babelPlugin-398AO0eD.js} +6 -2
- package/dist/babelPlugin-398AO0eD.js.map +1 -0
- package/dist/{babelPlugin-C4ERQ8DW.cjs → babelPlugin-Btzkfl62.cjs} +6 -2
- package/dist/babelPlugin-Btzkfl62.cjs.map +1 -0
- package/dist/{http-Dw6XzN7P.cjs → http-C6oeysq-.cjs} +18 -4
- package/dist/http-C6oeysq-.cjs.map +1 -0
- package/dist/{http-CQFVgQ4S.js → http-DZlsxUgc.js} +18 -4
- package/dist/http-DZlsxUgc.js.map +1 -0
- package/dist/{index-DCLbAcum.d.cts → index-DjGNdF9p.d.cts} +58 -2
- package/dist/{index-DCLbAcum.d.ts → index-DjGNdF9p.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-M1u4H9PI.js → registryCommand-UEUDL6JV.js} +29 -1
- package/dist/registryCommand-UEUDL6JV.js.map +1 -0
- package/dist/replayCli.js +1 -1
- package/dist/seedCli.js +1 -1
- package/dist/{src-C9V1wPM_.cjs → src-CI_xliRE.cjs} +11 -5
- package/dist/src-CI_xliRE.cjs.map +1 -0
- package/dist/{src-CFUOdE8n.js → src-DIJP4CNn.js} +11 -5
- package/dist/{src-CFUOdE8n.js.map → src-DIJP4CNn.js.map} +1 -1
- package/dist/transform/babel.cjs +1 -1
- package/dist/transform/babel.js +1 -1
- package/dist/transform/loaderRuntime.cjs +2 -2
- package/dist/transform/loaderRuntime.js +2 -2
- package/dist/transform/nodeLoader.js +5 -1
- package/dist/transform/nodeLoader.js.map +1 -1
- package/dist/transform/swc.cjs +1 -1
- package/dist/transform/swc.js +1 -1
- package/dist/transform/unplugin.cjs +2 -2
- package/dist/transform/unplugin.js +2 -2
- package/dist/{transform-mb6EwHsJ.js → transform-BBlyY-tA.js} +2 -2
- package/dist/{transform-mb6EwHsJ.js.map → transform-BBlyY-tA.js.map} +1 -1
- package/dist/{transform-CcNCVr8A.cjs → transform-CclhVghC.cjs} +2 -2
- package/dist/{transform-CcNCVr8A.cjs.map → transform-CclhVghC.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/autoTrace-BgN0zCQf.js.map +0 -1
- package/dist/autoTrace-pZKu5Nk2.cjs.map +0 -1
- package/dist/babelPlugin-C4ERQ8DW.cjs.map +0 -1
- package/dist/babelPlugin-tupc_WZS.js.map +0 -1
- package/dist/http-CQFVgQ4S.js.map +0 -1
- package/dist/http-Dw6XzN7P.cjs.map +0 -1
- package/dist/registryCommand-M1u4H9PI.js.map +0 -1
- package/dist/src-C9V1wPM_.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 { A as
|
|
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-DZlsxUgc.js";
|
|
3
|
+
import { A as recordAutoTracedClientCall, B as forgetLangChainRun, C as OPENAI_EMBEDDINGS, D as clientCallProvider, E as OPENROUTER, F as endOpenAiAgentsSpan, G as writeOnce, H as markLangChainRunRecorded, I as mapOpenAiAgentsTrace, K as isCaptureSuppressed, L as openAiAgentsParentSpanId, M as sharedClientCallStreamRecording, N as watchClientCall, O as clientCallStreams, P as StreamFinalizationError, R as openAiAgentsSpanChain, S as OPENAI_CHAT, T as OPENAI_TRANSCRIPTIONS, V as installLangChainRunScopes, W as warnOnce, X as createAsyncLocalStorage, Y as asyncStorageReady, Z as isAsyncStorageInitDone, _ as runWithAutoTraceNodeConfiguration, b as GEMINI, d as currentAutoTraceEntries, g as runWithAutoTraceFramesAt, h as runWithAutoTraceEntry, j as recordWatchedClientCall, k as frameworkRecordsClientCall, m as runAsAutoTraceRootFunction, p as invokeThroughAutoTraceEntries, q as runWithCaptureSuppressed, s as __bitfabAutoTraceActive, u as clearAutoTraceNodeConfiguration, v as runWithAutoTraceRootContext, w as OPENAI_RESPONSES, x as GEMINI_EMBEDDINGS, y as ANTHROPIC, z as unmapOpenAiAgentsTrace } from "./autoTrace-g3y0sLPq.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";
|
|
@@ -6573,6 +6573,9 @@ var Bitfab = class {
|
|
|
6573
6573
|
wrapGemini(method, options) {
|
|
6574
6574
|
return this.wrapClientCall(GEMINI, method, options, unboundName(method) ?? "generateContent");
|
|
6575
6575
|
}
|
|
6576
|
+
wrapGeminiEmbeddings(method, options) {
|
|
6577
|
+
return this.wrapClientCall(GEMINI_EMBEDDINGS, method, options, unboundName(method) ?? "embedContent");
|
|
6578
|
+
}
|
|
6576
6579
|
wrapClientCall(provider, method, options, name) {
|
|
6577
6580
|
const wrappedFn = async (...args) => {
|
|
6578
6581
|
const span = getCurrentSpan();
|
|
@@ -7237,7 +7240,7 @@ var Bitfab = class {
|
|
|
7237
7240
|
await runWithSeedContext({ traceId }, async () => target(...args));
|
|
7238
7241
|
} finally {
|
|
7239
7242
|
try {
|
|
7240
|
-
const { flushTraces } = await import("./http-
|
|
7243
|
+
const { flushTraces } = await import("./http-DZlsxUgc.js").then((n) => n.a);
|
|
7241
7244
|
await flushTraces(3e4);
|
|
7242
7245
|
} finally {
|
|
7243
7246
|
unrecorded = activeTraceStates.delete(traceId);
|
|
@@ -7353,6 +7356,9 @@ var BitfabFunction = class {
|
|
|
7353
7356
|
wrapGemini(method, options) {
|
|
7354
7357
|
return this.client.wrapGemini(method, options);
|
|
7355
7358
|
}
|
|
7359
|
+
wrapGeminiEmbeddings(method, options) {
|
|
7360
|
+
return this.client.wrapGeminiEmbeddings(method, options);
|
|
7361
|
+
}
|
|
7356
7362
|
};
|
|
7357
7363
|
//#endregion
|
|
7358
7364
|
//#region src/finalizers.ts
|
|
@@ -7455,7 +7461,7 @@ async function seedFromRegistry(registry, pipeline, cases, options = {}) {
|
|
|
7455
7461
|
metadata: seedCase.metadata,
|
|
7456
7462
|
sessionId: seedCase.sessionId
|
|
7457
7463
|
}));
|
|
7458
|
-
const { flushTraces } = await import("./http-
|
|
7464
|
+
const { flushTraces } = await import("./http-DZlsxUgc.js").then((n) => n.a);
|
|
7459
7465
|
await flushTraces(3e4);
|
|
7460
7466
|
return {
|
|
7461
7467
|
pipeline,
|
|
@@ -7472,4 +7478,4 @@ function resolveTraceFunctionKey(registration) {
|
|
|
7472
7478
|
//#endregion
|
|
7473
7479
|
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 };
|
|
7474
7480
|
|
|
7475
|
-
//# sourceMappingURL=src-
|
|
7481
|
+
//# sourceMappingURL=src-DIJP4CNn.js.map
|