@bitfab/sdk 0.76.0 → 0.76.1
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/{http-DeWpv44r.js → http-DS1QjBvx.js} +2 -2
- package/dist/{http-DeWpv44r.js.map → http-DS1QjBvx.js.map} +1 -1
- package/dist/{http-CWOvmnGL.cjs → http-ykHGNcju.cjs} +2 -2
- package/dist/{http-CWOvmnGL.cjs.map → http-ykHGNcju.cjs.map} +1 -1
- package/dist/{index-Dx3MwCB4.d.cts → index-BYv4DSsY.d.cts} +24 -1
- package/dist/{index-Dx3MwCB4.d.ts → index-BYv4DSsY.d.ts} +24 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/node.cjs +2 -2
- package/dist/node.d.cts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/node.js +2 -2
- package/dist/registryCommand-D1VgfJjC.js.map +1 -1
- package/dist/{src-CFD_cP43.js → src-BJjbR3Nq.js} +12 -4
- package/dist/{src-CFD_cP43.js.map → src-BJjbR3Nq.js.map} +1 -1
- package/dist/{src-CxsswRYd.cjs → src-CLkegn-P.cjs} +12 -4
- package/dist/{src-CxsswRYd.cjs.map → src-CLkegn-P.cjs.map} +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { C as BitfabError, E as __version__, S as gitRunner, T as readEnv$1, _ 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-
|
|
2
|
+
import { C as BitfabError, E as __version__, S as gitRunner, T as readEnv$1, _ 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-DS1QjBvx.js";
|
|
3
3
|
import { A as recordWatchedClientCall, B as installLangChainRunScopes, C as OPENAI_RESPONSES, D as clientCallStreams, E as clientCallProvider, F as mapOpenAiAgentsTrace, G as isCaptureSuppressed, I as openAiAgentsParentSpanId, J as asyncStorageReady, K as runWithCaptureSuppressed, L as openAiAgentsSpanChain, M as watchClientCall, N as StreamFinalizationError, O as frameworkRecordsClientCall, P as endOpenAiAgentsSpan, R as unmapOpenAiAgentsTrace, S as OPENAI_EMBEDDINGS, T as OPENROUTER, U as warnOnce, V as markLangChainRunRecorded, W as writeOnce, X as isAsyncStorageInitDone, Y as createAsyncLocalStorage, _ as runWithAutoTraceNodeConfiguration, b as GEMINI, d as currentAutoTraceEntries, g as runWithAutoTraceFramesAt, h as runWithAutoTraceEntry, j as sharedClientCallStreamRecording, k as recordAutoTracedClientCall, m as runAsAutoTraceRootFunction, p as invokeThroughAutoTraceEntries, s as __bitfabAutoTraceActive, u as clearAutoTraceNodeConfiguration, v as runWithAutoTraceRootContext, w as OPENAI_TRANSCRIPTIONS, x as OPENAI_CHAT, y as ANTHROPIC, z as forgetLangChainRun } from "./autoTrace-BgN0zCQf.js";
|
|
4
4
|
import { t as importOptionalPeer } from "./optionalPeer-CczrzrXx.js";
|
|
5
5
|
import { t as loadBamlModule } from "./bamlPeer-Dyeb3e5o.js";
|
|
@@ -5863,10 +5863,12 @@ function isSpanType(value) {
|
|
|
5863
5863
|
const noOpSpan = {
|
|
5864
5864
|
id: "",
|
|
5865
5865
|
traceId: "",
|
|
5866
|
+
traceFunctionKeys: [],
|
|
5866
5867
|
addContext() {},
|
|
5867
5868
|
setPrompt() {}
|
|
5868
5869
|
};
|
|
5869
5870
|
const noOpTrace = {
|
|
5871
|
+
traceFunctionKey: "",
|
|
5870
5872
|
setSessionId() {},
|
|
5871
5873
|
setName() {},
|
|
5872
5874
|
setMetadata() {},
|
|
@@ -5881,6 +5883,9 @@ function currentTraceRootSpan() {
|
|
|
5881
5883
|
if (context?.isRoot && context.traceId === traceId) return context;
|
|
5882
5884
|
}
|
|
5883
5885
|
}
|
|
5886
|
+
function activeTraceFunctionKeys(stack) {
|
|
5887
|
+
return [.../* @__PURE__ */ new Set([...currentAutoTraceEntries().map((entry) => entry.context.traceFunctionKey), ...stack.map((context) => context.traceFunctionKey)])];
|
|
5888
|
+
}
|
|
5884
5889
|
function getCurrentSpan() {
|
|
5885
5890
|
const stack = getSpanStack();
|
|
5886
5891
|
const current = stack[stack.length - 1];
|
|
@@ -5888,6 +5893,7 @@ function getCurrentSpan() {
|
|
|
5888
5893
|
return {
|
|
5889
5894
|
id: current.spanId,
|
|
5890
5895
|
traceId: current.traceId,
|
|
5896
|
+
traceFunctionKeys: activeTraceFunctionKeys(stack),
|
|
5891
5897
|
addContext(context) {
|
|
5892
5898
|
try {
|
|
5893
5899
|
if (typeof context !== "object" || context === null) return;
|
|
@@ -5927,6 +5933,7 @@ function getCurrentTrace() {
|
|
|
5927
5933
|
return traceState;
|
|
5928
5934
|
};
|
|
5929
5935
|
return {
|
|
5936
|
+
traceFunctionKey: current.rootTraceFunctionKey,
|
|
5930
5937
|
setSessionId(sessionId) {
|
|
5931
5938
|
try {
|
|
5932
5939
|
const traceState = getOrCreateTraceState();
|
|
@@ -6663,6 +6670,7 @@ var Bitfab = class {
|
|
|
6663
6670
|
spanId,
|
|
6664
6671
|
details: options.spanDetails ?? { contexts: [] },
|
|
6665
6672
|
spanName: options.name ?? options.nameFor?.(this) ?? qualifiedSpanName(this, functionNameAtOpen) ?? traceFunctionKey,
|
|
6673
|
+
traceFunctionKey,
|
|
6666
6674
|
rootTraceFunctionKey: rootTraceFunctionKeyOfTrace(traceId, traceFunctionKey),
|
|
6667
6675
|
instrumentation: options.instrumentation ?? "span",
|
|
6668
6676
|
declaredNode: options.declaredNode === true,
|
|
@@ -7232,7 +7240,7 @@ var Bitfab = class {
|
|
|
7232
7240
|
await runWithSeedContext({ traceId }, async () => target(...args));
|
|
7233
7241
|
} finally {
|
|
7234
7242
|
try {
|
|
7235
|
-
const { flushTraces } = await import("./http-
|
|
7243
|
+
const { flushTraces } = await import("./http-DS1QjBvx.js").then((n) => n.a);
|
|
7236
7244
|
await flushTraces(3e4);
|
|
7237
7245
|
} finally {
|
|
7238
7246
|
unrecorded = activeTraceStates.delete(traceId);
|
|
@@ -7450,7 +7458,7 @@ async function seedFromRegistry(registry, pipeline, cases, options = {}) {
|
|
|
7450
7458
|
metadata: seedCase.metadata,
|
|
7451
7459
|
sessionId: seedCase.sessionId
|
|
7452
7460
|
}));
|
|
7453
|
-
const { flushTraces } = await import("./http-
|
|
7461
|
+
const { flushTraces } = await import("./http-DS1QjBvx.js").then((n) => n.a);
|
|
7454
7462
|
await flushTraces(3e4);
|
|
7455
7463
|
return {
|
|
7456
7464
|
pipeline,
|
|
@@ -7467,4 +7475,4 @@ function resolveTraceFunctionKey(registration) {
|
|
|
7467
7475
|
//#endregion
|
|
7468
7476
|
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 };
|
|
7469
7477
|
|
|
7470
|
-
//# sourceMappingURL=src-
|
|
7478
|
+
//# sourceMappingURL=src-BJjbR3Nq.js.map
|