bitfab 0.54.6 → 0.54.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/README.md CHANGED
@@ -259,7 +259,8 @@ When `executeLocally: false`, the SDK:
259
259
 
260
260
  ## Environment Variables
261
261
 
262
- - `BITFAB_URL`: The base URL for the Bitfab API (used if `serviceUrl` is not provided)
262
+ - `BITFAB_API_KEY`: the API key used when `apiKey` is omitted or resolves empty, read at first use
263
+ - `BITFAB_CAPTURE_ENABLED`: the capture switch for a client that does not pass `captureEnabled`. `1`, `true`, or `yes` captures; `0`, `false`, or `no` does not. Unset captures, and `captureEnabled` in code always wins
263
264
  - `OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, etc.: LLM provider API keys (required for local execution)
264
265
  - `BITFAB_OTEL_MAX_REQUEST_BYTES`: request-size target for exports (positive integer up to `3000000`)
265
266
  - `BITFAB_OTEL_EXPORT_CONCURRENCY`: concurrent direct requests per export window (`1`-`64`, default `32`)
@@ -187,7 +187,7 @@ function encodeRequestBody(body) {
187
187
  }
188
188
 
189
189
  // src/version.generated.ts
190
- var __version__ = "0.54.6";
190
+ var __version__ = "0.54.8";
191
191
  var __packageName__ = "bitfab";
192
192
 
193
193
  // src/constants.ts
@@ -2060,6 +2060,15 @@ var HttpClient = class {
2060
2060
  resolveApiKey() {
2061
2061
  return typeof this.apiKey === "function" ? this.apiKey() : this.apiKey;
2062
2062
  }
2063
+ /** @internal Whether this client currently has credentials for trace delivery. */
2064
+ hasApiKey() {
2065
+ try {
2066
+ const apiKey = this.resolveApiKey();
2067
+ return apiKey !== void 0 && apiKey.trim() !== "";
2068
+ } catch {
2069
+ return false;
2070
+ }
2071
+ }
2063
2072
  /**
2064
2073
  * This client's span transport, built on first use.
2065
2074
  *
@@ -2807,4 +2816,4 @@ export {
2807
2816
  parseRetryAfterMs,
2808
2817
  HttpClient
2809
2818
  };
2810
- //# sourceMappingURL=chunk-5FRFNRFA.js.map
2819
+ //# sourceMappingURL=chunk-5H3D7J4K.js.map