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 +2 -1
- package/dist/{chunk-5FRFNRFA.js → chunk-5H3D7J4K.js} +11 -2
- package/dist/{chunk-5FRFNRFA.js.map → chunk-5H3D7J4K.js.map} +1 -1
- package/dist/{chunk-WWE3W6HF.js → chunk-5LXZGUKW.js} +3 -3
- package/dist/{chunk-IKNIY7JV.js → chunk-RC3HOMLJ.js} +11 -2
- package/dist/{chunk-IKNIY7JV.js.map → chunk-RC3HOMLJ.js.map} +1 -1
- package/dist/{chunk-EBDVWYCV.js → chunk-RUCVJQBI.js} +2 -2
- package/dist/{chunk-FCJHKGEE.js → chunk-XPCVDQDS.js} +90 -24
- package/dist/chunk-XPCVDQDS.js.map +1 -0
- package/dist/{http-DRPXLTJS.js → http-4JG3XW5X.js} +2 -2
- package/dist/{http-EMAHQQ4A.js → http-7PL32JLX.js} +2 -2
- package/dist/index.cjs +94 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -2
- package/dist/index.d.ts +13 -2
- package/dist/index.js +3 -3
- package/dist/node.cjs +94 -19
- package/dist/node.cjs.map +1 -1
- package/dist/node.js +3 -3
- package/dist/{replay-XG6LNUN4.js → replay-KWBZ2JQV.js} +3 -3
- package/dist/replayCli.js +2 -2
- package/dist/seedCli.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-FCJHKGEE.js.map +0 -1
- /package/dist/{chunk-WWE3W6HF.js.map → chunk-5LXZGUKW.js.map} +0 -0
- /package/dist/{chunk-EBDVWYCV.js.map → chunk-RUCVJQBI.js.map} +0 -0
- /package/dist/{http-DRPXLTJS.js.map → http-4JG3XW5X.js.map} +0 -0
- /package/dist/{http-EMAHQQ4A.js.map → http-7PL32JLX.js.map} +0 -0
- /package/dist/{replay-XG6LNUN4.js.map → replay-KWBZ2JQV.js.map} +0 -0
package/README.md
CHANGED
|
@@ -259,7 +259,8 @@ When `executeLocally: false`, the SDK:
|
|
|
259
259
|
|
|
260
260
|
## Environment Variables
|
|
261
261
|
|
|
262
|
-
- `
|
|
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.
|
|
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-
|
|
2819
|
+
//# sourceMappingURL=chunk-5H3D7J4K.js.map
|