bitfab 0.23.2 → 0.23.3
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-PP5K6RIU.js → chunk-CG6LVLBK.js} +21 -5
- package/dist/chunk-CG6LVLBK.js.map +1 -0
- package/dist/index.cjs +20 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +15 -3
- package/dist/index.d.ts +15 -3
- package/dist/index.js +1 -1
- package/dist/node.cjs +20 -4
- package/dist/node.cjs.map +1 -1
- package/dist/node.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-PP5K6RIU.js.map +0 -1
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk-EQI6ZJC3.js";
|
|
11
11
|
|
|
12
12
|
// src/version.generated.ts
|
|
13
|
-
var __version__ = "0.23.
|
|
13
|
+
var __version__ = "0.23.3";
|
|
14
14
|
|
|
15
15
|
// src/constants.ts
|
|
16
16
|
var DEFAULT_SERVICE_URL = "https://bitfab.ai";
|
|
@@ -946,6 +946,16 @@ var BitfabClaudeAgentHandler = class {
|
|
|
946
946
|
}
|
|
947
947
|
};
|
|
948
948
|
|
|
949
|
+
// src/optionalPeer.ts
|
|
950
|
+
function importOptionalPeer(specifierParts) {
|
|
951
|
+
const specifier = specifierParts.join("/");
|
|
952
|
+
return import(
|
|
953
|
+
/* webpackIgnore: true */
|
|
954
|
+
/* @vite-ignore */
|
|
955
|
+
specifier
|
|
956
|
+
);
|
|
957
|
+
}
|
|
958
|
+
|
|
949
959
|
// src/baml.ts
|
|
950
960
|
var cachedBaml = null;
|
|
951
961
|
async function loadBaml() {
|
|
@@ -953,7 +963,7 @@ async function loadBaml() {
|
|
|
953
963
|
return cachedBaml;
|
|
954
964
|
}
|
|
955
965
|
try {
|
|
956
|
-
cachedBaml = await
|
|
966
|
+
cachedBaml = await importOptionalPeer(["@boundaryml", "baml"]);
|
|
957
967
|
return cachedBaml;
|
|
958
968
|
} catch {
|
|
959
969
|
throw new Error(
|
|
@@ -1794,7 +1804,10 @@ var BitfabOpenAIAgentHandler = class {
|
|
|
1794
1804
|
this.getActiveSpanContext = config.getActiveSpanContext;
|
|
1795
1805
|
}
|
|
1796
1806
|
async wrapRun(agent, input, options) {
|
|
1797
|
-
const { run } = await
|
|
1807
|
+
const { run } = await importOptionalPeer([
|
|
1808
|
+
"@openai",
|
|
1809
|
+
"agents"
|
|
1810
|
+
]);
|
|
1798
1811
|
if (this.getActiveSpanContext?.() != null) {
|
|
1799
1812
|
return run(
|
|
1800
1813
|
agent,
|
|
@@ -2338,7 +2351,10 @@ async function loadCollectorClass() {
|
|
|
2338
2351
|
return cachedCollectorClass;
|
|
2339
2352
|
}
|
|
2340
2353
|
try {
|
|
2341
|
-
const baml = await
|
|
2354
|
+
const baml = await importOptionalPeer([
|
|
2355
|
+
"@boundaryml",
|
|
2356
|
+
"baml"
|
|
2357
|
+
]);
|
|
2342
2358
|
cachedCollectorClass = baml.Collector;
|
|
2343
2359
|
return cachedCollectorClass;
|
|
2344
2360
|
} catch {
|
|
@@ -3464,4 +3480,4 @@ export {
|
|
|
3464
3480
|
BitfabFunction,
|
|
3465
3481
|
finalizers
|
|
3466
3482
|
};
|
|
3467
|
-
//# sourceMappingURL=chunk-
|
|
3483
|
+
//# sourceMappingURL=chunk-CG6LVLBK.js.map
|