@bitfab/sdk 0.36.5 → 0.36.7
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-FLP6CNRE.js → chunk-CFECTUDU.js} +177 -62
- package/dist/chunk-CFECTUDU.js.map +1 -0
- package/dist/{chunk-IYHBVIPJ.js → chunk-EDOZ3DP3.js} +3 -3
- package/dist/index.cjs +179 -63
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +72 -27
- package/dist/index.d.ts +72 -27
- package/dist/index.js +2 -2
- package/dist/node.cjs +179 -63
- 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 +2 -2
- package/dist/{replay-JGMOJEW2.js → replay-RAKYO5UI.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-FLP6CNRE.js.map +0 -1
- /package/dist/{chunk-IYHBVIPJ.js.map → chunk-EDOZ3DP3.js.map} +0 -0
- /package/dist/{replay-JGMOJEW2.js.map → replay-RAKYO5UI.js.map} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -408,6 +408,7 @@ declare class HttpClient {
|
|
|
408
408
|
timeout?: number;
|
|
409
409
|
method?: "POST" | "PATCH" | "PUT";
|
|
410
410
|
}): Promise<T>;
|
|
411
|
+
private sendPrepared;
|
|
411
412
|
/**
|
|
412
413
|
* Look up a function by name.
|
|
413
414
|
* Blocks until complete - needed for function execution.
|
|
@@ -1213,31 +1214,56 @@ interface ReplayOptions {
|
|
|
1213
1214
|
* distinguish items whose function ran (`succeeded`) from items that threw
|
|
1214
1215
|
* (`errored`).
|
|
1215
1216
|
*
|
|
1216
|
-
* Invoked synchronously right after each item
|
|
1217
|
+
* Invoked synchronously right after each item finishes, so keep it cheap. A
|
|
1217
1218
|
* throwing callback never crashes the run: the error is swallowed so progress
|
|
1218
1219
|
* UI can't break replay.
|
|
1219
1220
|
*/
|
|
1220
|
-
|
|
1221
|
-
}
|
|
1222
|
-
/** Running totals reported to {@link ReplayOptions.onProgress} as replay proceeds. */
|
|
1223
|
-
interface ReplayProgress {
|
|
1221
|
+
onItemFinish?: (progress: ReplayItemFinishProgress) => void;
|
|
1224
1222
|
/**
|
|
1225
|
-
*
|
|
1226
|
-
*
|
|
1227
|
-
*
|
|
1228
|
-
* {@link ReplayProgress.result} and has no `item`. The Bitfab plugin reads
|
|
1229
|
-
* that terminal event to build the run's final result without parsing stdout.
|
|
1223
|
+
* @deprecated Use {@link onItemFinish}. This compatibility callback receives
|
|
1224
|
+
* the same per-item finish events plus the legacy whole-run `"complete"`
|
|
1225
|
+
* event. It is ignored when `onItemFinish` is also provided.
|
|
1230
1226
|
*/
|
|
1231
|
-
|
|
1227
|
+
onProgress?: (progress: ReplayProgress) => void;
|
|
1232
1228
|
/**
|
|
1233
|
-
*
|
|
1234
|
-
*
|
|
1235
|
-
*
|
|
1236
|
-
*
|
|
1229
|
+
* Called once when each replay item begins processing, before input loading,
|
|
1230
|
+
* mock preparation, database branching, or the customer function runs. Use
|
|
1231
|
+
* it with {@link onItemFinish} to distinguish queued items from items that
|
|
1232
|
+
* are still in flight. A throwing callback never crashes the run.
|
|
1237
1233
|
*/
|
|
1238
|
-
|
|
1234
|
+
onItemStart?: (progress: ReplayItemStartProgress) => void;
|
|
1235
|
+
}
|
|
1236
|
+
/** Emitted through {@link ReplayOptions.onItemStart} when a worker starts an item. */
|
|
1237
|
+
interface ReplayItemStartProgress {
|
|
1238
|
+
type: "started";
|
|
1239
1239
|
/** Test run ID created for this replay. */
|
|
1240
|
-
testRunId
|
|
1240
|
+
testRunId: string;
|
|
1241
|
+
/** Items whose processing has started so far. */
|
|
1242
|
+
started: number;
|
|
1243
|
+
/** Items that have finished so far, whether they succeeded or errored. */
|
|
1244
|
+
completed: number;
|
|
1245
|
+
/** Total number of items in this replay run. */
|
|
1246
|
+
total: number;
|
|
1247
|
+
/** Of the completed items, how many finished without a code or replay error. */
|
|
1248
|
+
succeeded: number;
|
|
1249
|
+
/** Of the completed items, how many finished with an error. */
|
|
1250
|
+
errored: number;
|
|
1251
|
+
/** The historical trace and span whose replay processing just started. */
|
|
1252
|
+
item: {
|
|
1253
|
+
originalTraceId: string;
|
|
1254
|
+
originalSpanId: string;
|
|
1255
|
+
/** @deprecated alias for `originalTraceId`. */
|
|
1256
|
+
sourceTraceId: string;
|
|
1257
|
+
/** @deprecated alias for `originalSpanId`. */
|
|
1258
|
+
sourceSpanId: string;
|
|
1259
|
+
};
|
|
1260
|
+
}
|
|
1261
|
+
/** Running totals reported to {@link ReplayOptions.onItemFinish} as replay proceeds. */
|
|
1262
|
+
interface ReplayItemFinishProgress {
|
|
1263
|
+
/** Event kind, omitted for backward-compatible per-item events. */
|
|
1264
|
+
type?: "item";
|
|
1265
|
+
/** Test run ID created for this replay. */
|
|
1266
|
+
testRunId: string;
|
|
1241
1267
|
/** Items that have finished so far, whether they succeeded or errored. */
|
|
1242
1268
|
completed: number;
|
|
1243
1269
|
/** Total number of items in this replay run. */
|
|
@@ -1247,7 +1273,7 @@ interface ReplayProgress {
|
|
|
1247
1273
|
/** Of the completed items, how many have `item.error` set. */
|
|
1248
1274
|
errored: number;
|
|
1249
1275
|
/**
|
|
1250
|
-
* The single item that just
|
|
1276
|
+
* The single item that just finished to produce this event. `traceId` is null
|
|
1251
1277
|
* at this stage (the server replay id isn't known until the run completes);
|
|
1252
1278
|
* `originalTraceId` is the original (historical) trace that was replayed (so
|
|
1253
1279
|
* a UI can identify or link it); `error` is its replay error, or null when it
|
|
@@ -1255,7 +1281,7 @@ interface ReplayProgress {
|
|
|
1255
1281
|
* progress UI show per-trace pass/fail and timing as the run streams, without
|
|
1256
1282
|
* waiting for the full {@link ReplayResult}.
|
|
1257
1283
|
*/
|
|
1258
|
-
item
|
|
1284
|
+
item: {
|
|
1259
1285
|
/** Trace ID of the new replay trace (null during the run; the server id arrives at completion). */
|
|
1260
1286
|
traceId?: string | null;
|
|
1261
1287
|
/** Bitfab trace ID of the original (historical) trace being replayed. */
|
|
@@ -1284,30 +1310,49 @@ interface ReplayProgress {
|
|
|
1284
1310
|
dbSnapshotRef?: DbSnapshotRef | null;
|
|
1285
1311
|
};
|
|
1286
1312
|
}
|
|
1313
|
+
/**
|
|
1314
|
+
* @deprecated Use {@link ReplayItemFinishProgress}. This legacy shape also
|
|
1315
|
+
* represents the item-less terminal `"complete"` event emitted by
|
|
1316
|
+
* {@link ReplayOptions.onProgress}.
|
|
1317
|
+
*/
|
|
1318
|
+
interface ReplayProgress {
|
|
1319
|
+
type?: "item" | "complete";
|
|
1320
|
+
result?: ReplayResult<unknown>;
|
|
1321
|
+
testRunId?: string;
|
|
1322
|
+
completed: number;
|
|
1323
|
+
total: number;
|
|
1324
|
+
succeeded: number;
|
|
1325
|
+
errored: number;
|
|
1326
|
+
item?: ReplayItemFinishProgress["item"];
|
|
1327
|
+
}
|
|
1287
1328
|
/**
|
|
1288
1329
|
* Wire prefix the Bitfab plugin scans for. Each line {@link reportReplayProgress}
|
|
1289
1330
|
* writes is this prefix followed by the JSON of the running totals (plus the
|
|
1290
|
-
*
|
|
1331
|
+
* finished `item`). The plugin polls these lines to report live progress while a
|
|
1291
1332
|
* replay runs in the background; keep the SDK emitter and the plugin parser in
|
|
1292
1333
|
* sync.
|
|
1293
1334
|
*/
|
|
1294
1335
|
declare const BITFAB_PROGRESS_PREFIX = "@@bitfab:progress ";
|
|
1295
1336
|
/**
|
|
1296
|
-
* A ready-made
|
|
1337
|
+
* A ready-made replay lifecycle callback for replay scripts.
|
|
1297
1338
|
* Pass it straight in:
|
|
1298
1339
|
*
|
|
1299
1340
|
* ```ts
|
|
1300
|
-
* await bitfab.replay("my-fn", fn, {
|
|
1341
|
+
* await bitfab.replay("my-fn", fn, {
|
|
1342
|
+
* limit,
|
|
1343
|
+
* onItemStart: reportReplayProgress,
|
|
1344
|
+
* onItemFinish: reportReplayProgress,
|
|
1345
|
+
* })
|
|
1301
1346
|
* ```
|
|
1302
1347
|
*
|
|
1303
|
-
* It writes
|
|
1304
|
-
*
|
|
1348
|
+
* It writes `@@bitfab:progress` lines to stderr, which the Bitfab plugin polls
|
|
1349
|
+
* to report in-flight and finished items while replay runs in the background,
|
|
1305
1350
|
* so scripts never hand-format the wire protocol.
|
|
1306
1351
|
* stdout is left untouched for direct-run ReplayResult JSON. Outside Node (no
|
|
1307
1352
|
* `process.stderr`, e.g. a browser) it is a no-op, and a write failure is
|
|
1308
1353
|
* swallowed so progress can never crash a run.
|
|
1309
1354
|
*/
|
|
1310
|
-
declare function reportReplayProgress(progress: ReplayProgress): void;
|
|
1355
|
+
declare function reportReplayProgress(progress: ReplayItemFinishProgress | ReplayItemStartProgress | ReplayProgress): void;
|
|
1311
1356
|
/** Per-trace context passed to {@link ReplayOptions.adaptInputs}. */
|
|
1312
1357
|
interface AdaptContext {
|
|
1313
1358
|
/** Bitfab trace ID of the original (historical) trace being replayed. */
|
|
@@ -2464,7 +2509,7 @@ declare class BitfabFunction {
|
|
|
2464
2509
|
/**
|
|
2465
2510
|
* SDK version from package.json (injected at build time)
|
|
2466
2511
|
*/
|
|
2467
|
-
declare const __version__ = "0.36.
|
|
2512
|
+
declare const __version__ = "0.36.7";
|
|
2468
2513
|
|
|
2469
2514
|
/**
|
|
2470
2515
|
* Constants for the Bitfab SDK.
|
|
@@ -2532,4 +2577,4 @@ declare const finalizers: {
|
|
|
2532
2577
|
readableStream: typeof readableStream;
|
|
2533
2578
|
};
|
|
2534
2579
|
|
|
2535
|
-
export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AllowedEnvVars, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabVercelAiHandler, type CaptureWhen, type CapturedSpan, type CodeChangeFile, type CurrentSpan, type CurrentTrace, DEFAULT_SERVICE_URL, type DbBranchOptions, DbBranchReplayError, type DbSnapshotConfig, type DbSnapshotProvider, type DbSnapshotRef, type DetachedTrace, HttpClient, type MockOverride, type MockOverrideCtx, type MockStrategy, type MockValue, type NodeMatcher, type ProviderDefinition, ReplayBranch, ReplayError, type ReplayItem, type ReplayOptions, type ReplayProgress, type ReplayResult, SUPPORTED_PROVIDERS, type SpanLookup, type SpanMethodDecorator, type SpanMethodDecoratorContext, type SpanNodeMeta, type SpanOccurrence, type SpanOptions, type SpanType, type TokenUsage, type TraceResponse, type TracingProcessor, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type WrapBAMLOptions, type WrappedBamlFn, __version__, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, serializeReplayResult };
|
|
2580
|
+
export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AllowedEnvVars, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabVercelAiHandler, type CaptureWhen, type CapturedSpan, type CodeChangeFile, type CurrentSpan, type CurrentTrace, DEFAULT_SERVICE_URL, type DbBranchOptions, DbBranchReplayError, type DbSnapshotConfig, type DbSnapshotProvider, type DbSnapshotRef, type DetachedTrace, HttpClient, type MockOverride, type MockOverrideCtx, type MockStrategy, type MockValue, type NodeMatcher, type ProviderDefinition, ReplayBranch, ReplayError, type ReplayItem, type ReplayItemFinishProgress, type ReplayItemStartProgress, type ReplayOptions, type ReplayProgress, type ReplayResult, SUPPORTED_PROVIDERS, type SpanLookup, type SpanMethodDecorator, type SpanMethodDecoratorContext, type SpanNodeMeta, type SpanOccurrence, type SpanOptions, type SpanType, type TokenUsage, type TraceResponse, type TracingProcessor, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type WrapBAMLOptions, type WrappedBamlFn, __version__, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, serializeReplayResult };
|
package/dist/index.d.ts
CHANGED
|
@@ -408,6 +408,7 @@ declare class HttpClient {
|
|
|
408
408
|
timeout?: number;
|
|
409
409
|
method?: "POST" | "PATCH" | "PUT";
|
|
410
410
|
}): Promise<T>;
|
|
411
|
+
private sendPrepared;
|
|
411
412
|
/**
|
|
412
413
|
* Look up a function by name.
|
|
413
414
|
* Blocks until complete - needed for function execution.
|
|
@@ -1213,31 +1214,56 @@ interface ReplayOptions {
|
|
|
1213
1214
|
* distinguish items whose function ran (`succeeded`) from items that threw
|
|
1214
1215
|
* (`errored`).
|
|
1215
1216
|
*
|
|
1216
|
-
* Invoked synchronously right after each item
|
|
1217
|
+
* Invoked synchronously right after each item finishes, so keep it cheap. A
|
|
1217
1218
|
* throwing callback never crashes the run: the error is swallowed so progress
|
|
1218
1219
|
* UI can't break replay.
|
|
1219
1220
|
*/
|
|
1220
|
-
|
|
1221
|
-
}
|
|
1222
|
-
/** Running totals reported to {@link ReplayOptions.onProgress} as replay proceeds. */
|
|
1223
|
-
interface ReplayProgress {
|
|
1221
|
+
onItemFinish?: (progress: ReplayItemFinishProgress) => void;
|
|
1224
1222
|
/**
|
|
1225
|
-
*
|
|
1226
|
-
*
|
|
1227
|
-
*
|
|
1228
|
-
* {@link ReplayProgress.result} and has no `item`. The Bitfab plugin reads
|
|
1229
|
-
* that terminal event to build the run's final result without parsing stdout.
|
|
1223
|
+
* @deprecated Use {@link onItemFinish}. This compatibility callback receives
|
|
1224
|
+
* the same per-item finish events plus the legacy whole-run `"complete"`
|
|
1225
|
+
* event. It is ignored when `onItemFinish` is also provided.
|
|
1230
1226
|
*/
|
|
1231
|
-
|
|
1227
|
+
onProgress?: (progress: ReplayProgress) => void;
|
|
1232
1228
|
/**
|
|
1233
|
-
*
|
|
1234
|
-
*
|
|
1235
|
-
*
|
|
1236
|
-
*
|
|
1229
|
+
* Called once when each replay item begins processing, before input loading,
|
|
1230
|
+
* mock preparation, database branching, or the customer function runs. Use
|
|
1231
|
+
* it with {@link onItemFinish} to distinguish queued items from items that
|
|
1232
|
+
* are still in flight. A throwing callback never crashes the run.
|
|
1237
1233
|
*/
|
|
1238
|
-
|
|
1234
|
+
onItemStart?: (progress: ReplayItemStartProgress) => void;
|
|
1235
|
+
}
|
|
1236
|
+
/** Emitted through {@link ReplayOptions.onItemStart} when a worker starts an item. */
|
|
1237
|
+
interface ReplayItemStartProgress {
|
|
1238
|
+
type: "started";
|
|
1239
1239
|
/** Test run ID created for this replay. */
|
|
1240
|
-
testRunId
|
|
1240
|
+
testRunId: string;
|
|
1241
|
+
/** Items whose processing has started so far. */
|
|
1242
|
+
started: number;
|
|
1243
|
+
/** Items that have finished so far, whether they succeeded or errored. */
|
|
1244
|
+
completed: number;
|
|
1245
|
+
/** Total number of items in this replay run. */
|
|
1246
|
+
total: number;
|
|
1247
|
+
/** Of the completed items, how many finished without a code or replay error. */
|
|
1248
|
+
succeeded: number;
|
|
1249
|
+
/** Of the completed items, how many finished with an error. */
|
|
1250
|
+
errored: number;
|
|
1251
|
+
/** The historical trace and span whose replay processing just started. */
|
|
1252
|
+
item: {
|
|
1253
|
+
originalTraceId: string;
|
|
1254
|
+
originalSpanId: string;
|
|
1255
|
+
/** @deprecated alias for `originalTraceId`. */
|
|
1256
|
+
sourceTraceId: string;
|
|
1257
|
+
/** @deprecated alias for `originalSpanId`. */
|
|
1258
|
+
sourceSpanId: string;
|
|
1259
|
+
};
|
|
1260
|
+
}
|
|
1261
|
+
/** Running totals reported to {@link ReplayOptions.onItemFinish} as replay proceeds. */
|
|
1262
|
+
interface ReplayItemFinishProgress {
|
|
1263
|
+
/** Event kind, omitted for backward-compatible per-item events. */
|
|
1264
|
+
type?: "item";
|
|
1265
|
+
/** Test run ID created for this replay. */
|
|
1266
|
+
testRunId: string;
|
|
1241
1267
|
/** Items that have finished so far, whether they succeeded or errored. */
|
|
1242
1268
|
completed: number;
|
|
1243
1269
|
/** Total number of items in this replay run. */
|
|
@@ -1247,7 +1273,7 @@ interface ReplayProgress {
|
|
|
1247
1273
|
/** Of the completed items, how many have `item.error` set. */
|
|
1248
1274
|
errored: number;
|
|
1249
1275
|
/**
|
|
1250
|
-
* The single item that just
|
|
1276
|
+
* The single item that just finished to produce this event. `traceId` is null
|
|
1251
1277
|
* at this stage (the server replay id isn't known until the run completes);
|
|
1252
1278
|
* `originalTraceId` is the original (historical) trace that was replayed (so
|
|
1253
1279
|
* a UI can identify or link it); `error` is its replay error, or null when it
|
|
@@ -1255,7 +1281,7 @@ interface ReplayProgress {
|
|
|
1255
1281
|
* progress UI show per-trace pass/fail and timing as the run streams, without
|
|
1256
1282
|
* waiting for the full {@link ReplayResult}.
|
|
1257
1283
|
*/
|
|
1258
|
-
item
|
|
1284
|
+
item: {
|
|
1259
1285
|
/** Trace ID of the new replay trace (null during the run; the server id arrives at completion). */
|
|
1260
1286
|
traceId?: string | null;
|
|
1261
1287
|
/** Bitfab trace ID of the original (historical) trace being replayed. */
|
|
@@ -1284,30 +1310,49 @@ interface ReplayProgress {
|
|
|
1284
1310
|
dbSnapshotRef?: DbSnapshotRef | null;
|
|
1285
1311
|
};
|
|
1286
1312
|
}
|
|
1313
|
+
/**
|
|
1314
|
+
* @deprecated Use {@link ReplayItemFinishProgress}. This legacy shape also
|
|
1315
|
+
* represents the item-less terminal `"complete"` event emitted by
|
|
1316
|
+
* {@link ReplayOptions.onProgress}.
|
|
1317
|
+
*/
|
|
1318
|
+
interface ReplayProgress {
|
|
1319
|
+
type?: "item" | "complete";
|
|
1320
|
+
result?: ReplayResult<unknown>;
|
|
1321
|
+
testRunId?: string;
|
|
1322
|
+
completed: number;
|
|
1323
|
+
total: number;
|
|
1324
|
+
succeeded: number;
|
|
1325
|
+
errored: number;
|
|
1326
|
+
item?: ReplayItemFinishProgress["item"];
|
|
1327
|
+
}
|
|
1287
1328
|
/**
|
|
1288
1329
|
* Wire prefix the Bitfab plugin scans for. Each line {@link reportReplayProgress}
|
|
1289
1330
|
* writes is this prefix followed by the JSON of the running totals (plus the
|
|
1290
|
-
*
|
|
1331
|
+
* finished `item`). The plugin polls these lines to report live progress while a
|
|
1291
1332
|
* replay runs in the background; keep the SDK emitter and the plugin parser in
|
|
1292
1333
|
* sync.
|
|
1293
1334
|
*/
|
|
1294
1335
|
declare const BITFAB_PROGRESS_PREFIX = "@@bitfab:progress ";
|
|
1295
1336
|
/**
|
|
1296
|
-
* A ready-made
|
|
1337
|
+
* A ready-made replay lifecycle callback for replay scripts.
|
|
1297
1338
|
* Pass it straight in:
|
|
1298
1339
|
*
|
|
1299
1340
|
* ```ts
|
|
1300
|
-
* await bitfab.replay("my-fn", fn, {
|
|
1341
|
+
* await bitfab.replay("my-fn", fn, {
|
|
1342
|
+
* limit,
|
|
1343
|
+
* onItemStart: reportReplayProgress,
|
|
1344
|
+
* onItemFinish: reportReplayProgress,
|
|
1345
|
+
* })
|
|
1301
1346
|
* ```
|
|
1302
1347
|
*
|
|
1303
|
-
* It writes
|
|
1304
|
-
*
|
|
1348
|
+
* It writes `@@bitfab:progress` lines to stderr, which the Bitfab plugin polls
|
|
1349
|
+
* to report in-flight and finished items while replay runs in the background,
|
|
1305
1350
|
* so scripts never hand-format the wire protocol.
|
|
1306
1351
|
* stdout is left untouched for direct-run ReplayResult JSON. Outside Node (no
|
|
1307
1352
|
* `process.stderr`, e.g. a browser) it is a no-op, and a write failure is
|
|
1308
1353
|
* swallowed so progress can never crash a run.
|
|
1309
1354
|
*/
|
|
1310
|
-
declare function reportReplayProgress(progress: ReplayProgress): void;
|
|
1355
|
+
declare function reportReplayProgress(progress: ReplayItemFinishProgress | ReplayItemStartProgress | ReplayProgress): void;
|
|
1311
1356
|
/** Per-trace context passed to {@link ReplayOptions.adaptInputs}. */
|
|
1312
1357
|
interface AdaptContext {
|
|
1313
1358
|
/** Bitfab trace ID of the original (historical) trace being replayed. */
|
|
@@ -2464,7 +2509,7 @@ declare class BitfabFunction {
|
|
|
2464
2509
|
/**
|
|
2465
2510
|
* SDK version from package.json (injected at build time)
|
|
2466
2511
|
*/
|
|
2467
|
-
declare const __version__ = "0.36.
|
|
2512
|
+
declare const __version__ = "0.36.7";
|
|
2468
2513
|
|
|
2469
2514
|
/**
|
|
2470
2515
|
* Constants for the Bitfab SDK.
|
|
@@ -2532,4 +2577,4 @@ declare const finalizers: {
|
|
|
2532
2577
|
readableStream: typeof readableStream;
|
|
2533
2578
|
};
|
|
2534
2579
|
|
|
2535
|
-
export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AllowedEnvVars, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabVercelAiHandler, type CaptureWhen, type CapturedSpan, type CodeChangeFile, type CurrentSpan, type CurrentTrace, DEFAULT_SERVICE_URL, type DbBranchOptions, DbBranchReplayError, type DbSnapshotConfig, type DbSnapshotProvider, type DbSnapshotRef, type DetachedTrace, HttpClient, type MockOverride, type MockOverrideCtx, type MockStrategy, type MockValue, type NodeMatcher, type ProviderDefinition, ReplayBranch, ReplayError, type ReplayItem, type ReplayOptions, type ReplayProgress, type ReplayResult, SUPPORTED_PROVIDERS, type SpanLookup, type SpanMethodDecorator, type SpanMethodDecoratorContext, type SpanNodeMeta, type SpanOccurrence, type SpanOptions, type SpanType, type TokenUsage, type TraceResponse, type TracingProcessor, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type WrapBAMLOptions, type WrappedBamlFn, __version__, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, serializeReplayResult };
|
|
2580
|
+
export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AllowedEnvVars, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabVercelAiHandler, type CaptureWhen, type CapturedSpan, type CodeChangeFile, type CurrentSpan, type CurrentTrace, DEFAULT_SERVICE_URL, type DbBranchOptions, DbBranchReplayError, type DbSnapshotConfig, type DbSnapshotProvider, type DbSnapshotRef, type DetachedTrace, HttpClient, type MockOverride, type MockOverrideCtx, type MockStrategy, type MockValue, type NodeMatcher, type ProviderDefinition, ReplayBranch, ReplayError, type ReplayItem, type ReplayItemFinishProgress, type ReplayItemStartProgress, type ReplayOptions, type ReplayProgress, type ReplayResult, SUPPORTED_PROVIDERS, type SpanLookup, type SpanMethodDecorator, type SpanMethodDecoratorContext, type SpanNodeMeta, type SpanOccurrence, type SpanOptions, type SpanType, type TokenUsage, type TraceResponse, type TracingProcessor, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type WrapBAMLOptions, type WrappedBamlFn, __version__, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, serializeReplayResult };
|
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
getCurrentReplayBranch,
|
|
12
12
|
getCurrentSpan,
|
|
13
13
|
getCurrentTrace
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-EDOZ3DP3.js";
|
|
15
15
|
import {
|
|
16
16
|
BITFAB_PROGRESS_PREFIX,
|
|
17
17
|
BitfabError,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
flushTraces,
|
|
24
24
|
reportReplayProgress,
|
|
25
25
|
serializeReplayResult
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-CFECTUDU.js";
|
|
27
27
|
export {
|
|
28
28
|
BITFAB_PROGRESS_PREFIX,
|
|
29
29
|
Bitfab,
|