bitfab 0.11.5 → 0.11.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/index.d.cts CHANGED
@@ -803,7 +803,7 @@ declare class BitfabFunction {
803
803
  /**
804
804
  * SDK version from package.json (injected at build time)
805
805
  */
806
- declare const __version__ = "0.11.5";
806
+ declare const __version__ = "0.11.6";
807
807
 
808
808
  /**
809
809
  * Constants for the Bitfab SDK.
package/dist/index.d.ts CHANGED
@@ -803,7 +803,7 @@ declare class BitfabFunction {
803
803
  /**
804
804
  * SDK version from package.json (injected at build time)
805
805
  */
806
- declare const __version__ = "0.11.5";
806
+ declare const __version__ = "0.11.6";
807
807
 
808
808
  /**
809
809
  * Constants for the Bitfab SDK.
package/dist/index.js CHANGED
@@ -6,13 +6,13 @@ import {
6
6
  BitfabOpenAITracingProcessor,
7
7
  getCurrentSpan,
8
8
  getCurrentTrace
9
- } from "./chunk-GWHHP5PL.js";
9
+ } from "./chunk-MTHBHBOD.js";
10
10
  import {
11
11
  BitfabError,
12
12
  DEFAULT_SERVICE_URL,
13
13
  __version__,
14
14
  flushTraces
15
- } from "./chunk-KSUI74KL.js";
15
+ } from "./chunk-VOSASRED.js";
16
16
  export {
17
17
  Bitfab,
18
18
  BitfabClaudeAgentHandler,
package/dist/node.cjs CHANGED
@@ -81,7 +81,7 @@ var __version__;
81
81
  var init_version_generated = __esm({
82
82
  "src/version.generated.ts"() {
83
83
  "use strict";
84
- __version__ = "0.11.5";
84
+ __version__ = "0.11.6";
85
85
  }
86
86
  });
87
87
 
@@ -440,7 +440,11 @@ async function processItem(httpClient, serverItem, fn, testRunId) {
440
440
  let error = null;
441
441
  try {
442
442
  const maybePromise = runWithReplayContext(
443
- { testRunId, inputSourceSpanId: span.id },
443
+ {
444
+ testRunId,
445
+ inputSourceSpanId: span.id,
446
+ inputSourceTraceId: span.externalTraceId
447
+ },
444
448
  () => fn(...inputs)
445
449
  );
446
450
  result = maybePromise instanceof Promise ? await maybePromise : maybePromise;
@@ -2569,6 +2573,9 @@ var Bitfab = class {
2569
2573
  contexts: [],
2570
2574
  ...replayCtxAtRoot?.testRunId && {
2571
2575
  testRunId: replayCtxAtRoot.testRunId
2576
+ },
2577
+ ...replayCtxAtRoot?.inputSourceTraceId && {
2578
+ inputSourceTraceId: replayCtxAtRoot.inputSourceTraceId
2572
2579
  }
2573
2580
  });
2574
2581
  pendingSpanPromises.set(traceId, []);
@@ -2617,7 +2624,8 @@ var Bitfab = class {
2617
2624
  sessionId: traceState?.sessionId,
2618
2625
  metadata: traceState?.metadata,
2619
2626
  contexts: traceState?.contexts ?? [],
2620
- testRunId: traceState?.testRunId
2627
+ testRunId: traceState?.testRunId,
2628
+ inputSourceTraceId: traceState?.inputSourceTraceId
2621
2629
  });
2622
2630
  activeTraceStates.delete(traceId);
2623
2631
  } else {
@@ -2694,6 +2702,9 @@ var Bitfab = class {
2694
2702
  if (params.contexts && params.contexts.length > 0) {
2695
2703
  rawTrace.contexts = params.contexts;
2696
2704
  }
2705
+ if (params.inputSourceTraceId) {
2706
+ rawTrace.input_source_trace_id = params.inputSourceTraceId;
2707
+ }
2697
2708
  this.httpClient.sendExternalTrace({
2698
2709
  type: "sdk-function",
2699
2710
  source: "typescript-sdk-function",