@bitfab/sdk 0.76.3 → 0.76.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/{http-BA7vmvuC.js → http-BLyaXOOY.js} +17 -3
- package/dist/http-BLyaXOOY.js.map +1 -0
- package/dist/{http-7exfDbAK.cjs → http-BXQZC6_Y.cjs} +17 -3
- package/dist/http-BXQZC6_Y.cjs.map +1 -0
- package/dist/{index-CmO7Xmwl.d.cts → index-QVRAlE4o.d.cts} +30 -62
- package/dist/{index-CmO7Xmwl.d.ts → index-QVRAlE4o.d.ts} +30 -62
- 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 +2 -2
- package/dist/node.d.cts +2 -2
- package/dist/node.d.ts +2 -2
- package/dist/node.js +2 -2
- package/dist/registryCommand-M1u4H9PI.js.map +1 -1
- package/dist/{src-CYs1uXoX.js → src-B_e7xNzm.js} +5 -9
- package/dist/src-B_e7xNzm.js.map +1 -0
- package/dist/{src-BMMKf1sR.cjs → src-CWmTGb52.cjs} +5 -9
- package/dist/src-CWmTGb52.cjs.map +1 -0
- package/package.json +1 -1
- package/dist/http-7exfDbAK.cjs.map +0 -1
- package/dist/http-BA7vmvuC.js.map +0 -1
- package/dist/src-BMMKf1sR.cjs.map +0 -1
- package/dist/src-CYs1uXoX.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
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-BLyaXOOY.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 { n as loadBamlModule, t as isSharedBamlModule } from "./bamlPeer-CWPgBSlJ.js";
|
|
@@ -5067,7 +5067,6 @@ var SpansClient = class {
|
|
|
5067
5067
|
//#region src/traces.ts
|
|
5068
5068
|
const ASSERTIONS_PATH = "/api/sdk/traces/assertions";
|
|
5069
5069
|
const SEARCH_PATH = "/api/sdk/traces/search";
|
|
5070
|
-
const CODE_DRAFT_SAVE_TIMEOUT_MS = 3e5;
|
|
5071
5070
|
const DEFAULT_GENERATION_TIMEOUT_MS = 6e5;
|
|
5072
5071
|
const GENERATION_POLL_INTERVAL_MS = 2e3;
|
|
5073
5072
|
var AssertionGenerationError = class extends Error {
|
|
@@ -5117,9 +5116,6 @@ function toWireAssertion({ category_assertion_id, ...assertion }) {
|
|
|
5117
5116
|
category_id: categoryId
|
|
5118
5117
|
};
|
|
5119
5118
|
}
|
|
5120
|
-
function asksBitfabToWriteCode(assertion) {
|
|
5121
|
-
return (assertion.kind === "code" || assertion.kind === "hybrid") && assertion.code === void 0;
|
|
5122
|
-
}
|
|
5123
5119
|
function traceAssertionsPath(traceId, suffix = "") {
|
|
5124
5120
|
return `/api/sdk/traces/${encodeURIComponent(traceId)}/assertions${suffix}`;
|
|
5125
5121
|
}
|
|
@@ -5160,7 +5156,7 @@ var TracesClient = class {
|
|
|
5160
5156
|
source: params.source ?? "agent",
|
|
5161
5157
|
guidedRewrite: params.skipGuidedRewrite !== true
|
|
5162
5158
|
};
|
|
5163
|
-
return withCategoryIds((
|
|
5159
|
+
return withCategoryIds((await this.httpClient.request(ASSERTIONS_PATH, body)).assertions);
|
|
5164
5160
|
}
|
|
5165
5161
|
async generateAssertions(traceId, options = {}) {
|
|
5166
5162
|
const started = await this.httpClient.request(traceAssertionsPath(traceId, "/generate"), {
|
|
@@ -7241,7 +7237,7 @@ var Bitfab = class {
|
|
|
7241
7237
|
await runWithSeedContext({ traceId }, async () => target(...args));
|
|
7242
7238
|
} finally {
|
|
7243
7239
|
try {
|
|
7244
|
-
const { flushTraces } = await import("./http-
|
|
7240
|
+
const { flushTraces } = await import("./http-BLyaXOOY.js").then((n) => n.a);
|
|
7245
7241
|
await flushTraces(3e4);
|
|
7246
7242
|
} finally {
|
|
7247
7243
|
unrecorded = activeTraceStates.delete(traceId);
|
|
@@ -7459,7 +7455,7 @@ async function seedFromRegistry(registry, pipeline, cases, options = {}) {
|
|
|
7459
7455
|
metadata: seedCase.metadata,
|
|
7460
7456
|
sessionId: seedCase.sessionId
|
|
7461
7457
|
}));
|
|
7462
|
-
const { flushTraces } = await import("./http-
|
|
7458
|
+
const { flushTraces } = await import("./http-BLyaXOOY.js").then((n) => n.a);
|
|
7463
7459
|
await flushTraces(3e4);
|
|
7464
7460
|
return {
|
|
7465
7461
|
pipeline,
|
|
@@ -7476,4 +7472,4 @@ function resolveTraceFunctionKey(registration) {
|
|
|
7476
7472
|
//#endregion
|
|
7477
7473
|
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 };
|
|
7478
7474
|
|
|
7479
|
-
//# sourceMappingURL=src-
|
|
7475
|
+
//# sourceMappingURL=src-B_e7xNzm.js.map
|