@bitfab/sdk 0.13.7 → 0.13.8

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
@@ -990,7 +990,7 @@ declare class BitfabFunction {
990
990
  /**
991
991
  * SDK version from package.json (injected at build time)
992
992
  */
993
- declare const __version__ = "0.13.7";
993
+ declare const __version__ = "0.13.8";
994
994
 
995
995
  /**
996
996
  * Constants for the Bitfab SDK.
package/dist/index.d.ts CHANGED
@@ -990,7 +990,7 @@ declare class BitfabFunction {
990
990
  /**
991
991
  * SDK version from package.json (injected at build time)
992
992
  */
993
- declare const __version__ = "0.13.7";
993
+ declare const __version__ = "0.13.8";
994
994
 
995
995
  /**
996
996
  * Constants for the Bitfab SDK.
package/dist/index.js CHANGED
@@ -8,13 +8,13 @@ import {
8
8
  SUPPORTED_PROVIDERS,
9
9
  getCurrentSpan,
10
10
  getCurrentTrace
11
- } from "./chunk-LUZVIGER.js";
11
+ } from "./chunk-4ANYHNQJ.js";
12
12
  import {
13
13
  BitfabError,
14
14
  DEFAULT_SERVICE_URL,
15
15
  __version__,
16
16
  flushTraces
17
- } from "./chunk-EGRWBJYR.js";
17
+ } from "./chunk-VFGUZWAV.js";
18
18
  export {
19
19
  Bitfab,
20
20
  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.13.7";
84
+ __version__ = "0.13.8";
85
85
  }
86
86
  });
87
87
 
@@ -188,7 +188,9 @@ var init_http = __esm({
188
188
  )
189
189
  ),
190
190
  rawSpan: {},
191
- errors: [{ step: "json_serialize", error: serializationError }]
191
+ errors: [
192
+ { source: "sdk", step: "json_serialize", error: serializationError }
193
+ ]
192
194
  });
193
195
  }
194
196
  try {
@@ -2182,6 +2184,7 @@ var BitfabOpenAITracingProcessor = class {
2182
2184
  const jsonResult = span.toJSON();
2183
2185
  if (typeof jsonResult !== "object" || jsonResult === null) {
2184
2186
  errors.push({
2187
+ source: "sdk",
2185
2188
  step: "span.toJSON()",
2186
2189
  error: `Returned unexpected type: ${typeof jsonResult}`
2187
2190
  });
@@ -2191,6 +2194,7 @@ var BitfabOpenAITracingProcessor = class {
2191
2194
  }
2192
2195
  } catch (error) {
2193
2196
  errors.push({
2197
+ source: "sdk",
2194
2198
  step: "span.toJSON()",
2195
2199
  error: error instanceof Error ? error.message : String(error)
2196
2200
  });
@@ -2210,6 +2214,7 @@ var BitfabOpenAITracingProcessor = class {
2210
2214
  spanData.input = span.spanData?._input || [];
2211
2215
  } catch (error) {
2212
2216
  errors.push({
2217
+ source: "sdk",
2213
2218
  step: "access_input",
2214
2219
  error: error instanceof Error ? error.message : String(error)
2215
2220
  });
@@ -2218,6 +2223,7 @@ var BitfabOpenAITracingProcessor = class {
2218
2223
  spanData.response = span.spanData?._response || null;
2219
2224
  } catch (error) {
2220
2225
  errors.push({
2226
+ source: "sdk",
2221
2227
  step: "access_response",
2222
2228
  error: error instanceof Error ? error.message : String(error)
2223
2229
  });
@@ -3146,7 +3152,10 @@ var Bitfab = class {
3146
3152
  ...params.functionName !== void 0 && {
3147
3153
  function_name: params.functionName
3148
3154
  },
3149
- ...params.error !== void 0 && { error: params.error },
3155
+ ...params.error !== void 0 && {
3156
+ error: params.error,
3157
+ error_source: "code"
3158
+ },
3150
3159
  ...params.contexts && params.contexts.length > 0 && {
3151
3160
  contexts: params.contexts
3152
3161
  },