@digipair/skill-vespa 0.121.13 → 0.121.15
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.esm.js +156 -164
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -10,7 +10,7 @@ var __export = function(target, all) {
|
|
|
10
10
|
//#region src/documents/document.ts
|
|
11
11
|
/**
|
|
12
12
|
* Interface for interacting with a document.
|
|
13
|
-
*/ function _class_call_check$
|
|
13
|
+
*/ function _class_call_check$1h(instance, Constructor) {
|
|
14
14
|
if (!(instance instanceof Constructor)) {
|
|
15
15
|
throw new TypeError("Cannot call a class as a function");
|
|
16
16
|
}
|
|
@@ -29,7 +29,7 @@ function _define_property$17(obj, key, value) {
|
|
|
29
29
|
return obj;
|
|
30
30
|
}
|
|
31
31
|
var Document = function Document(fields) {
|
|
32
|
-
_class_call_check$
|
|
32
|
+
_class_call_check$1h(this, Document);
|
|
33
33
|
_define_property$17(this, "pageContent", void 0);
|
|
34
34
|
_define_property$17(this, "metadata", void 0);
|
|
35
35
|
/**
|
|
@@ -211,12 +211,12 @@ function _array_with_holes$r(arr) {
|
|
|
211
211
|
function _array_without_holes$N(arr) {
|
|
212
212
|
if (Array.isArray(arr)) return _array_like_to_array$X(arr);
|
|
213
213
|
}
|
|
214
|
-
function _class_call_check$
|
|
214
|
+
function _class_call_check$1g(instance, Constructor) {
|
|
215
215
|
if (!(instance instanceof Constructor)) {
|
|
216
216
|
throw new TypeError("Cannot call a class as a function");
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
|
-
function _defineProperties$
|
|
219
|
+
function _defineProperties$15(target, props) {
|
|
220
220
|
for(var i = 0; i < props.length; i++){
|
|
221
221
|
var descriptor = props[i];
|
|
222
222
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -225,9 +225,9 @@ function _defineProperties$14(target, props) {
|
|
|
225
225
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
|
-
function _create_class$
|
|
229
|
-
if (protoProps) _defineProperties$
|
|
230
|
-
if (staticProps) _defineProperties$
|
|
228
|
+
function _create_class$15(Constructor, protoProps, staticProps) {
|
|
229
|
+
if (protoProps) _defineProperties$15(Constructor.prototype, protoProps);
|
|
230
|
+
if (staticProps) _defineProperties$15(Constructor, staticProps);
|
|
231
231
|
return Constructor;
|
|
232
232
|
}
|
|
233
233
|
function _define_property$15(obj, key, value) {
|
|
@@ -401,7 +401,7 @@ var Serializable = /*#__PURE__*/ function() {
|
|
|
401
401
|
for(var _len = arguments.length, _args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
|
|
402
402
|
_args[_key - 1] = arguments[_key];
|
|
403
403
|
}
|
|
404
|
-
_class_call_check$
|
|
404
|
+
_class_call_check$1g(this, Serializable);
|
|
405
405
|
_define_property$15(this, "lc_serializable", false);
|
|
406
406
|
_define_property$15(this, "lc_kwargs", void 0);
|
|
407
407
|
if (this.lc_serializable_keys !== void 0) this.lc_kwargs = Object.fromEntries(Object.entries(kwargs || {}).filter(function(param) {
|
|
@@ -411,7 +411,7 @@ var Serializable = /*#__PURE__*/ function() {
|
|
|
411
411
|
}));
|
|
412
412
|
else this.lc_kwargs = kwargs !== null && kwargs !== void 0 ? kwargs : {};
|
|
413
413
|
}
|
|
414
|
-
_create_class$
|
|
414
|
+
_create_class$15(Serializable, [
|
|
415
415
|
{
|
|
416
416
|
key: "lc_id",
|
|
417
417
|
get: /**
|
|
@@ -553,7 +553,7 @@ function _assert_this_initialized$J(self) {
|
|
|
553
553
|
}
|
|
554
554
|
return self;
|
|
555
555
|
}
|
|
556
|
-
function _class_call_check$
|
|
556
|
+
function _class_call_check$1f(instance, Constructor) {
|
|
557
557
|
if (!(instance instanceof Constructor)) {
|
|
558
558
|
throw new TypeError("Cannot call a class as a function");
|
|
559
559
|
}
|
|
@@ -688,7 +688,7 @@ function _isToolCall(toolCall) {
|
|
|
688
688
|
_inherits$J(ToolInputParsingException, Error1);
|
|
689
689
|
var _super = _create_super$J(ToolInputParsingException);
|
|
690
690
|
function ToolInputParsingException(message, output) {
|
|
691
|
-
_class_call_check$
|
|
691
|
+
_class_call_check$1f(this, ToolInputParsingException);
|
|
692
692
|
var _this;
|
|
693
693
|
_this = _super.call(this, message);
|
|
694
694
|
_define_property$14(_assert_this_initialized$J(_this), "output", void 0);
|
|
@@ -3096,12 +3096,12 @@ function _assert_this_initialized$I(self) {
|
|
|
3096
3096
|
}
|
|
3097
3097
|
return self;
|
|
3098
3098
|
}
|
|
3099
|
-
function _class_call_check$
|
|
3099
|
+
function _class_call_check$1e(instance, Constructor) {
|
|
3100
3100
|
if (!(instance instanceof Constructor)) {
|
|
3101
3101
|
throw new TypeError("Cannot call a class as a function");
|
|
3102
3102
|
}
|
|
3103
3103
|
}
|
|
3104
|
-
function _defineProperties$
|
|
3104
|
+
function _defineProperties$14(target, props) {
|
|
3105
3105
|
for(var i = 0; i < props.length; i++){
|
|
3106
3106
|
var descriptor = props[i];
|
|
3107
3107
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -3110,9 +3110,9 @@ function _defineProperties$13(target, props) {
|
|
|
3110
3110
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
3111
3111
|
}
|
|
3112
3112
|
}
|
|
3113
|
-
function _create_class$
|
|
3114
|
-
if (protoProps) _defineProperties$
|
|
3115
|
-
if (staticProps) _defineProperties$
|
|
3113
|
+
function _create_class$14(Constructor, protoProps, staticProps) {
|
|
3114
|
+
if (protoProps) _defineProperties$14(Constructor.prototype, protoProps);
|
|
3115
|
+
if (staticProps) _defineProperties$14(Constructor, staticProps);
|
|
3116
3116
|
return Constructor;
|
|
3117
3117
|
}
|
|
3118
3118
|
function _define_property$11(obj, key, value) {
|
|
@@ -3368,7 +3368,7 @@ function stringifyWithDepthLimit(obj, depthLimit) {
|
|
|
3368
3368
|
_inherits$I(_class, Serializable);
|
|
3369
3369
|
var _super = _create_super$I(_class);
|
|
3370
3370
|
function _class(arg) {
|
|
3371
|
-
_class_call_check$
|
|
3371
|
+
_class_call_check$1e(this, _class);
|
|
3372
3372
|
var _this;
|
|
3373
3373
|
var fields = typeof arg === "string" || Array.isArray(arg) ? {
|
|
3374
3374
|
content: arg
|
|
@@ -3405,7 +3405,7 @@ function stringifyWithDepthLimit(obj, depthLimit) {
|
|
|
3405
3405
|
_this.id = fields.id;
|
|
3406
3406
|
return _this;
|
|
3407
3407
|
}
|
|
3408
|
-
_create_class$
|
|
3408
|
+
_create_class$14(_class, [
|
|
3409
3409
|
{
|
|
3410
3410
|
key: "lc_aliases",
|
|
3411
3411
|
get: function get() {
|
|
@@ -3636,10 +3636,10 @@ function _mergeObj(left, right) {
|
|
|
3636
3636
|
_inherits$I(BaseMessageChunk, BaseMessage);
|
|
3637
3637
|
var _super = _create_super$I(BaseMessageChunk);
|
|
3638
3638
|
function BaseMessageChunk() {
|
|
3639
|
-
_class_call_check$
|
|
3639
|
+
_class_call_check$1e(this, BaseMessageChunk);
|
|
3640
3640
|
return _super.apply(this, arguments);
|
|
3641
3641
|
}
|
|
3642
|
-
_create_class$
|
|
3642
|
+
_create_class$14(BaseMessageChunk, null, [
|
|
3643
3643
|
{
|
|
3644
3644
|
key: "isInstance",
|
|
3645
3645
|
value: function isInstance(obj) {
|
|
@@ -3656,12 +3656,12 @@ function _assert_this_initialized$H(self) {
|
|
|
3656
3656
|
}
|
|
3657
3657
|
return self;
|
|
3658
3658
|
}
|
|
3659
|
-
function _class_call_check$
|
|
3659
|
+
function _class_call_check$1d(instance, Constructor) {
|
|
3660
3660
|
if (!(instance instanceof Constructor)) {
|
|
3661
3661
|
throw new TypeError("Cannot call a class as a function");
|
|
3662
3662
|
}
|
|
3663
3663
|
}
|
|
3664
|
-
function _defineProperties$
|
|
3664
|
+
function _defineProperties$13(target, props) {
|
|
3665
3665
|
for(var i = 0; i < props.length; i++){
|
|
3666
3666
|
var descriptor = props[i];
|
|
3667
3667
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -3670,9 +3670,9 @@ function _defineProperties$12(target, props) {
|
|
|
3670
3670
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
3671
3671
|
}
|
|
3672
3672
|
}
|
|
3673
|
-
function _create_class$
|
|
3674
|
-
if (protoProps) _defineProperties$
|
|
3675
|
-
if (staticProps) _defineProperties$
|
|
3673
|
+
function _create_class$13(Constructor, protoProps, staticProps) {
|
|
3674
|
+
if (protoProps) _defineProperties$13(Constructor.prototype, protoProps);
|
|
3675
|
+
if (staticProps) _defineProperties$13(Constructor, staticProps);
|
|
3676
3676
|
return Constructor;
|
|
3677
3677
|
}
|
|
3678
3678
|
function _define_property$10(obj, key, value) {
|
|
@@ -3836,7 +3836,7 @@ function isDirectToolOutput(x) {
|
|
|
3836
3836
|
_inherits$H(ToolMessage, BaseMessage);
|
|
3837
3837
|
var _super = _create_super$H(ToolMessage);
|
|
3838
3838
|
function ToolMessage(fields, tool_call_id, name) {
|
|
3839
|
-
_class_call_check$
|
|
3839
|
+
_class_call_check$1d(this, ToolMessage);
|
|
3840
3840
|
var _this;
|
|
3841
3841
|
var toolMessageFields = typeof fields === "string" || Array.isArray(fields) ? {
|
|
3842
3842
|
content: fields,
|
|
@@ -3865,7 +3865,7 @@ function isDirectToolOutput(x) {
|
|
|
3865
3865
|
_this.metadata = toolMessageFields.metadata;
|
|
3866
3866
|
return _this;
|
|
3867
3867
|
}
|
|
3868
|
-
_create_class$
|
|
3868
|
+
_create_class$13(ToolMessage, [
|
|
3869
3869
|
{
|
|
3870
3870
|
key: "lc_aliases",
|
|
3871
3871
|
get: function get() {
|
|
@@ -3906,7 +3906,7 @@ function isDirectToolOutput(x) {
|
|
|
3906
3906
|
_inherits$H(ToolMessageChunk, BaseMessageChunk);
|
|
3907
3907
|
var _super = _create_super$H(ToolMessageChunk);
|
|
3908
3908
|
function ToolMessageChunk(fields) {
|
|
3909
|
-
_class_call_check$
|
|
3909
|
+
_class_call_check$1d(this, ToolMessageChunk);
|
|
3910
3910
|
var _this;
|
|
3911
3911
|
_this = _super.call(this, fields);
|
|
3912
3912
|
_define_property$10(_assert_this_initialized$H(_this), "type", "tool");
|
|
@@ -3927,7 +3927,7 @@ function isDirectToolOutput(x) {
|
|
|
3927
3927
|
_this.status = fields.status;
|
|
3928
3928
|
return _this;
|
|
3929
3929
|
}
|
|
3930
|
-
_create_class$
|
|
3930
|
+
_create_class$13(ToolMessageChunk, [
|
|
3931
3931
|
{
|
|
3932
3932
|
key: "concat",
|
|
3933
3933
|
value: function concat(chunk) {
|
|
@@ -5389,12 +5389,12 @@ function _assert_this_initialized$G(self) {
|
|
|
5389
5389
|
}
|
|
5390
5390
|
return self;
|
|
5391
5391
|
}
|
|
5392
|
-
function _class_call_check$
|
|
5392
|
+
function _class_call_check$1c(instance, Constructor) {
|
|
5393
5393
|
if (!(instance instanceof Constructor)) {
|
|
5394
5394
|
throw new TypeError("Cannot call a class as a function");
|
|
5395
5395
|
}
|
|
5396
5396
|
}
|
|
5397
|
-
function _defineProperties$
|
|
5397
|
+
function _defineProperties$12(target, props) {
|
|
5398
5398
|
for(var i = 0; i < props.length; i++){
|
|
5399
5399
|
var descriptor = props[i];
|
|
5400
5400
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -5403,9 +5403,9 @@ function _defineProperties$11(target, props) {
|
|
|
5403
5403
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
5404
5404
|
}
|
|
5405
5405
|
}
|
|
5406
|
-
function _create_class$
|
|
5407
|
-
if (protoProps) _defineProperties$
|
|
5408
|
-
if (staticProps) _defineProperties$
|
|
5406
|
+
function _create_class$12(Constructor, protoProps, staticProps) {
|
|
5407
|
+
if (protoProps) _defineProperties$12(Constructor.prototype, protoProps);
|
|
5408
|
+
if (staticProps) _defineProperties$12(Constructor, staticProps);
|
|
5409
5409
|
return Constructor;
|
|
5410
5410
|
}
|
|
5411
5411
|
function _define_property$Z(obj, key, value) {
|
|
@@ -5583,7 +5583,7 @@ function _create_super$G(Derived) {
|
|
|
5583
5583
|
_inherits$G(AIMessageChunk, BaseMessageChunk);
|
|
5584
5584
|
var _super = _create_super$G(AIMessageChunk);
|
|
5585
5585
|
function AIMessageChunk(fields) {
|
|
5586
|
-
_class_call_check$
|
|
5586
|
+
_class_call_check$1c(this, AIMessageChunk);
|
|
5587
5587
|
var _this;
|
|
5588
5588
|
var initParams;
|
|
5589
5589
|
var _fields_tool_calls;
|
|
@@ -5685,7 +5685,7 @@ function _create_super$G(Derived) {
|
|
|
5685
5685
|
_this.usage_metadata = initParams.usage_metadata;
|
|
5686
5686
|
return _this;
|
|
5687
5687
|
}
|
|
5688
|
-
_create_class$
|
|
5688
|
+
_create_class$12(AIMessageChunk, [
|
|
5689
5689
|
{
|
|
5690
5690
|
key: "lc_aliases",
|
|
5691
5691
|
get: function get() {
|
|
@@ -6168,12 +6168,12 @@ function _assert_this_initialized$F(self) {
|
|
|
6168
6168
|
}
|
|
6169
6169
|
return self;
|
|
6170
6170
|
}
|
|
6171
|
-
function _class_call_check$
|
|
6171
|
+
function _class_call_check$1b(instance, Constructor) {
|
|
6172
6172
|
if (!(instance instanceof Constructor)) {
|
|
6173
6173
|
throw new TypeError("Cannot call a class as a function");
|
|
6174
6174
|
}
|
|
6175
6175
|
}
|
|
6176
|
-
function _defineProperties$
|
|
6176
|
+
function _defineProperties$11(target, props) {
|
|
6177
6177
|
for(var i = 0; i < props.length; i++){
|
|
6178
6178
|
var descriptor = props[i];
|
|
6179
6179
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -6182,9 +6182,9 @@ function _defineProperties$10(target, props) {
|
|
|
6182
6182
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
6183
6183
|
}
|
|
6184
6184
|
}
|
|
6185
|
-
function _create_class$
|
|
6186
|
-
if (protoProps) _defineProperties$
|
|
6187
|
-
if (staticProps) _defineProperties$
|
|
6185
|
+
function _create_class$11(Constructor, protoProps, staticProps) {
|
|
6186
|
+
if (protoProps) _defineProperties$11(Constructor.prototype, protoProps);
|
|
6187
|
+
if (staticProps) _defineProperties$11(Constructor, staticProps);
|
|
6188
6188
|
return Constructor;
|
|
6189
6189
|
}
|
|
6190
6190
|
function _define_property$Y(obj, key, value) {
|
|
@@ -6295,7 +6295,7 @@ __export(base_exports$1, {
|
|
|
6295
6295
|
* overridden in derived classes to handle various events during the
|
|
6296
6296
|
* execution of a LangChain application.
|
|
6297
6297
|
*/ var BaseCallbackHandlerMethodsClass = function BaseCallbackHandlerMethodsClass() {
|
|
6298
|
-
_class_call_check$
|
|
6298
|
+
_class_call_check$1b(this, BaseCallbackHandlerMethodsClass);
|
|
6299
6299
|
};
|
|
6300
6300
|
function callbackHandlerPrefersStreaming(x) {
|
|
6301
6301
|
return "lc_prefer_streaming" in x && x.lc_prefer_streaming;
|
|
@@ -6309,7 +6309,7 @@ function callbackHandlerPrefersStreaming(x) {
|
|
|
6309
6309
|
_inherits$F(BaseCallbackHandler1, BaseCallbackHandlerMethodsClass);
|
|
6310
6310
|
var _super = _create_super$F(BaseCallbackHandler1);
|
|
6311
6311
|
function BaseCallbackHandler1(input) {
|
|
6312
|
-
_class_call_check$
|
|
6312
|
+
_class_call_check$1b(this, BaseCallbackHandler1);
|
|
6313
6313
|
var _this;
|
|
6314
6314
|
_this = _super.call(this);
|
|
6315
6315
|
_define_property$Y(_assert_this_initialized$F(_this), "lc_serializable", false);
|
|
@@ -6340,7 +6340,7 @@ function callbackHandlerPrefersStreaming(x) {
|
|
|
6340
6340
|
}
|
|
6341
6341
|
return _this;
|
|
6342
6342
|
}
|
|
6343
|
-
_create_class$
|
|
6343
|
+
_create_class$11(BaseCallbackHandler1, [
|
|
6344
6344
|
{
|
|
6345
6345
|
key: "lc_namespace",
|
|
6346
6346
|
get: function get() {
|
|
@@ -6422,7 +6422,7 @@ function callbackHandlerPrefersStreaming(x) {
|
|
|
6422
6422
|
_inherits$F(Handler, BaseCallbackHandler);
|
|
6423
6423
|
var _super = _create_super$F(Handler);
|
|
6424
6424
|
function Handler() {
|
|
6425
|
-
_class_call_check$
|
|
6425
|
+
_class_call_check$1b(this, Handler);
|
|
6426
6426
|
var _this;
|
|
6427
6427
|
_this = _super.call(this);
|
|
6428
6428
|
_define_property$Y(_assert_this_initialized$F(_this), "name", v4());
|
|
@@ -7022,12 +7022,12 @@ function getOtelEnabled() {
|
|
|
7022
7022
|
}
|
|
7023
7023
|
|
|
7024
7024
|
// Should not import any OTEL packages to avoid pulling in optional deps.
|
|
7025
|
-
function _class_call_check$
|
|
7025
|
+
function _class_call_check$1a(instance, Constructor) {
|
|
7026
7026
|
if (!(instance instanceof Constructor)) {
|
|
7027
7027
|
throw new TypeError("Cannot call a class as a function");
|
|
7028
7028
|
}
|
|
7029
7029
|
}
|
|
7030
|
-
function _defineProperties
|
|
7030
|
+
function _defineProperties$10(target, props) {
|
|
7031
7031
|
for(var i = 0; i < props.length; i++){
|
|
7032
7032
|
var descriptor = props[i];
|
|
7033
7033
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -7036,13 +7036,13 @@ function _defineProperties$$(target, props) {
|
|
|
7036
7036
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
7037
7037
|
}
|
|
7038
7038
|
}
|
|
7039
|
-
function _create_class
|
|
7040
|
-
if (protoProps) _defineProperties
|
|
7039
|
+
function _create_class$10(Constructor, protoProps, staticProps) {
|
|
7040
|
+
if (protoProps) _defineProperties$10(Constructor.prototype, protoProps);
|
|
7041
7041
|
return Constructor;
|
|
7042
7042
|
}
|
|
7043
7043
|
var MockTracer = /*#__PURE__*/ function() {
|
|
7044
7044
|
function MockTracer() {
|
|
7045
|
-
_class_call_check$
|
|
7045
|
+
_class_call_check$1a(this, MockTracer);
|
|
7046
7046
|
Object.defineProperty(this, "hasWarned", {
|
|
7047
7047
|
enumerable: true,
|
|
7048
7048
|
configurable: true,
|
|
@@ -7050,7 +7050,7 @@ var MockTracer = /*#__PURE__*/ function() {
|
|
|
7050
7050
|
value: false
|
|
7051
7051
|
});
|
|
7052
7052
|
}
|
|
7053
|
-
_create_class
|
|
7053
|
+
_create_class$10(MockTracer, [
|
|
7054
7054
|
{
|
|
7055
7055
|
key: "startActiveSpan",
|
|
7056
7056
|
value: function startActiveSpan(_name) {
|
|
@@ -7084,7 +7084,7 @@ var MockTracer = /*#__PURE__*/ function() {
|
|
|
7084
7084
|
}();
|
|
7085
7085
|
var MockOTELTrace = /*#__PURE__*/ function() {
|
|
7086
7086
|
function MockOTELTrace() {
|
|
7087
|
-
_class_call_check$
|
|
7087
|
+
_class_call_check$1a(this, MockOTELTrace);
|
|
7088
7088
|
Object.defineProperty(this, "mockTracer", {
|
|
7089
7089
|
enumerable: true,
|
|
7090
7090
|
configurable: true,
|
|
@@ -7092,7 +7092,7 @@ var MockOTELTrace = /*#__PURE__*/ function() {
|
|
|
7092
7092
|
value: new MockTracer()
|
|
7093
7093
|
});
|
|
7094
7094
|
}
|
|
7095
|
-
_create_class
|
|
7095
|
+
_create_class$10(MockOTELTrace, [
|
|
7096
7096
|
{
|
|
7097
7097
|
key: "getTracer",
|
|
7098
7098
|
value: function getTracer(_name, _version) {
|
|
@@ -7140,9 +7140,9 @@ var MockOTELTrace = /*#__PURE__*/ function() {
|
|
|
7140
7140
|
}();
|
|
7141
7141
|
var MockOTELContext = /*#__PURE__*/ function() {
|
|
7142
7142
|
function MockOTELContext() {
|
|
7143
|
-
_class_call_check$
|
|
7143
|
+
_class_call_check$1a(this, MockOTELContext);
|
|
7144
7144
|
}
|
|
7145
|
-
_create_class
|
|
7145
|
+
_create_class$10(MockOTELContext, [
|
|
7146
7146
|
{
|
|
7147
7147
|
key: "active",
|
|
7148
7148
|
value: function active() {
|
|
@@ -7165,9 +7165,9 @@ var mockOTELTrace = new MockOTELTrace();
|
|
|
7165
7165
|
var mockOTELContext = new MockOTELContext();
|
|
7166
7166
|
var OTELProvider = /*#__PURE__*/ function() {
|
|
7167
7167
|
function OTELProvider() {
|
|
7168
|
-
_class_call_check$
|
|
7168
|
+
_class_call_check$1a(this, OTELProvider);
|
|
7169
7169
|
}
|
|
7170
|
-
_create_class
|
|
7170
|
+
_create_class$10(OTELProvider, [
|
|
7171
7171
|
{
|
|
7172
7172
|
key: "getTraceInstance",
|
|
7173
7173
|
value: function getTraceInstance() {
|
|
@@ -7244,12 +7244,12 @@ function _array_like_to_array$O(arr, len) {
|
|
|
7244
7244
|
function _array_with_holes$l(arr) {
|
|
7245
7245
|
if (Array.isArray(arr)) return arr;
|
|
7246
7246
|
}
|
|
7247
|
-
function _class_call_check$
|
|
7247
|
+
function _class_call_check$19(instance, Constructor) {
|
|
7248
7248
|
if (!(instance instanceof Constructor)) {
|
|
7249
7249
|
throw new TypeError("Cannot call a class as a function");
|
|
7250
7250
|
}
|
|
7251
7251
|
}
|
|
7252
|
-
function _defineProperties
|
|
7252
|
+
function _defineProperties$$(target, props) {
|
|
7253
7253
|
for(var i = 0; i < props.length; i++){
|
|
7254
7254
|
var descriptor = props[i];
|
|
7255
7255
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -7258,8 +7258,8 @@ function _defineProperties$_(target, props) {
|
|
|
7258
7258
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
7259
7259
|
}
|
|
7260
7260
|
}
|
|
7261
|
-
function _create_class
|
|
7262
|
-
if (protoProps) _defineProperties
|
|
7261
|
+
function _create_class$$(Constructor, protoProps, staticProps) {
|
|
7262
|
+
if (protoProps) _defineProperties$$(Constructor.prototype, protoProps);
|
|
7263
7263
|
return Constructor;
|
|
7264
7264
|
}
|
|
7265
7265
|
function _iterable_to_array_limit$k(arr, i) {
|
|
@@ -7316,7 +7316,7 @@ function getOperationName(runType) {
|
|
|
7316
7316
|
}
|
|
7317
7317
|
var LangSmithToOTELTranslator = /*#__PURE__*/ function() {
|
|
7318
7318
|
function LangSmithToOTELTranslator() {
|
|
7319
|
-
_class_call_check$
|
|
7319
|
+
_class_call_check$19(this, LangSmithToOTELTranslator);
|
|
7320
7320
|
Object.defineProperty(this, "spans", {
|
|
7321
7321
|
enumerable: true,
|
|
7322
7322
|
configurable: true,
|
|
@@ -7324,7 +7324,7 @@ var LangSmithToOTELTranslator = /*#__PURE__*/ function() {
|
|
|
7324
7324
|
value: new Map()
|
|
7325
7325
|
});
|
|
7326
7326
|
}
|
|
7327
|
-
_create_class
|
|
7327
|
+
_create_class$$(LangSmithToOTELTranslator, [
|
|
7328
7328
|
{
|
|
7329
7329
|
key: "exportBatch",
|
|
7330
7330
|
value: function exportBatch(operations, otelContextMap) {
|
|
@@ -8063,7 +8063,7 @@ function _async_to_generator$r(fn) {
|
|
|
8063
8063
|
});
|
|
8064
8064
|
};
|
|
8065
8065
|
}
|
|
8066
|
-
function _class_call_check$
|
|
8066
|
+
function _class_call_check$18(instance, Constructor) {
|
|
8067
8067
|
if (!(instance instanceof Constructor)) {
|
|
8068
8068
|
throw new TypeError("Cannot call a class as a function");
|
|
8069
8069
|
}
|
|
@@ -8315,7 +8315,7 @@ var AbortError = /*#__PURE__*/ function(Error1) {
|
|
|
8315
8315
|
_inherits$E(AbortError, Error1);
|
|
8316
8316
|
var _super = _create_super$E(AbortError);
|
|
8317
8317
|
function AbortError(message) {
|
|
8318
|
-
_class_call_check$
|
|
8318
|
+
_class_call_check$18(this, AbortError);
|
|
8319
8319
|
var _this;
|
|
8320
8320
|
_this = _super.call(this);
|
|
8321
8321
|
if (_instanceof$E(message, Error)) {
|
|
@@ -8771,7 +8771,7 @@ function _assert_this_initialized$D(self) {
|
|
|
8771
8771
|
}
|
|
8772
8772
|
return self;
|
|
8773
8773
|
}
|
|
8774
|
-
function _class_call_check$
|
|
8774
|
+
function _class_call_check$17(instance, Constructor) {
|
|
8775
8775
|
if (!(instance instanceof Constructor)) {
|
|
8776
8776
|
throw new TypeError("Cannot call a class as a function");
|
|
8777
8777
|
}
|
|
@@ -8894,7 +8894,7 @@ var TimeoutError = /*#__PURE__*/ function(Error1) {
|
|
|
8894
8894
|
_inherits$D(TimeoutError, Error1);
|
|
8895
8895
|
var _super = _create_super$D(TimeoutError);
|
|
8896
8896
|
function TimeoutError(message) {
|
|
8897
|
-
_class_call_check$
|
|
8897
|
+
_class_call_check$17(this, TimeoutError);
|
|
8898
8898
|
var _this;
|
|
8899
8899
|
_this = _super.call(this, message);
|
|
8900
8900
|
_this.name = 'TimeoutError';
|
|
@@ -8967,12 +8967,12 @@ function lowerBound(array, value, comparator) {
|
|
|
8967
8967
|
}
|
|
8968
8968
|
lowerBound$1.default = lowerBound;
|
|
8969
8969
|
|
|
8970
|
-
function _class_call_check$
|
|
8970
|
+
function _class_call_check$16(instance, Constructor) {
|
|
8971
8971
|
if (!(instance instanceof Constructor)) {
|
|
8972
8972
|
throw new TypeError("Cannot call a class as a function");
|
|
8973
8973
|
}
|
|
8974
8974
|
}
|
|
8975
|
-
function _defineProperties$
|
|
8975
|
+
function _defineProperties$_(target, props) {
|
|
8976
8976
|
for(var i = 0; i < props.length; i++){
|
|
8977
8977
|
var descriptor = props[i];
|
|
8978
8978
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -8981,8 +8981,8 @@ function _defineProperties$Z(target, props) {
|
|
|
8981
8981
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
8982
8982
|
}
|
|
8983
8983
|
}
|
|
8984
|
-
function _create_class$
|
|
8985
|
-
if (protoProps) _defineProperties$
|
|
8984
|
+
function _create_class$_(Constructor, protoProps, staticProps) {
|
|
8985
|
+
if (protoProps) _defineProperties$_(Constructor.prototype, protoProps);
|
|
8986
8986
|
return Constructor;
|
|
8987
8987
|
}
|
|
8988
8988
|
Object.defineProperty(priorityQueue, "__esModule", {
|
|
@@ -8991,10 +8991,10 @@ Object.defineProperty(priorityQueue, "__esModule", {
|
|
|
8991
8991
|
var lower_bound_1 = lowerBound$1;
|
|
8992
8992
|
var PriorityQueue = /*#__PURE__*/ function() {
|
|
8993
8993
|
function PriorityQueue() {
|
|
8994
|
-
_class_call_check$
|
|
8994
|
+
_class_call_check$16(this, PriorityQueue);
|
|
8995
8995
|
this._queue = [];
|
|
8996
8996
|
}
|
|
8997
|
-
_create_class$
|
|
8997
|
+
_create_class$_(PriorityQueue, [
|
|
8998
8998
|
{
|
|
8999
8999
|
key: "enqueue",
|
|
9000
9000
|
value: function enqueue(run, options) {
|
|
@@ -9078,12 +9078,12 @@ function _async_to_generator$q(fn) {
|
|
|
9078
9078
|
});
|
|
9079
9079
|
};
|
|
9080
9080
|
}
|
|
9081
|
-
function _class_call_check$
|
|
9081
|
+
function _class_call_check$15(instance, Constructor) {
|
|
9082
9082
|
if (!(instance instanceof Constructor)) {
|
|
9083
9083
|
throw new TypeError("Cannot call a class as a function");
|
|
9084
9084
|
}
|
|
9085
9085
|
}
|
|
9086
|
-
function _defineProperties$
|
|
9086
|
+
function _defineProperties$Z(target, props) {
|
|
9087
9087
|
for(var i = 0; i < props.length; i++){
|
|
9088
9088
|
var descriptor = props[i];
|
|
9089
9089
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -9092,8 +9092,8 @@ function _defineProperties$Y(target, props) {
|
|
|
9092
9092
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
9093
9093
|
}
|
|
9094
9094
|
}
|
|
9095
|
-
function _create_class$
|
|
9096
|
-
if (protoProps) _defineProperties$
|
|
9095
|
+
function _create_class$Z(Constructor, protoProps, staticProps) {
|
|
9096
|
+
if (protoProps) _defineProperties$Z(Constructor.prototype, protoProps);
|
|
9097
9097
|
return Constructor;
|
|
9098
9098
|
}
|
|
9099
9099
|
function _get_prototype_of$C(o) {
|
|
@@ -9266,7 +9266,7 @@ Promise queue with concurrency control.
|
|
|
9266
9266
|
_inherits$C(PQueue, EventEmitter);
|
|
9267
9267
|
var _super = _create_super$C(PQueue);
|
|
9268
9268
|
function PQueue(options) {
|
|
9269
|
-
_class_call_check$
|
|
9269
|
+
_class_call_check$15(this, PQueue);
|
|
9270
9270
|
var _this;
|
|
9271
9271
|
var _a, _b, _c, _d;
|
|
9272
9272
|
_this = _super.call(this);
|
|
@@ -9302,7 +9302,7 @@ Promise queue with concurrency control.
|
|
|
9302
9302
|
_this._isPaused = options.autoStart === false;
|
|
9303
9303
|
return _this;
|
|
9304
9304
|
}
|
|
9305
|
-
_create_class$
|
|
9305
|
+
_create_class$Z(PQueue, [
|
|
9306
9306
|
{
|
|
9307
9307
|
key: "_doesIntervalAllowAnother",
|
|
9308
9308
|
get: function get() {
|
|
@@ -9725,12 +9725,12 @@ function _async_to_generator$p(fn) {
|
|
|
9725
9725
|
});
|
|
9726
9726
|
};
|
|
9727
9727
|
}
|
|
9728
|
-
function _class_call_check$
|
|
9728
|
+
function _class_call_check$14(instance, Constructor) {
|
|
9729
9729
|
if (!(instance instanceof Constructor)) {
|
|
9730
9730
|
throw new TypeError("Cannot call a class as a function");
|
|
9731
9731
|
}
|
|
9732
9732
|
}
|
|
9733
|
-
function _defineProperties$
|
|
9733
|
+
function _defineProperties$Y(target, props) {
|
|
9734
9734
|
for(var i = 0; i < props.length; i++){
|
|
9735
9735
|
var descriptor = props[i];
|
|
9736
9736
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -9739,8 +9739,8 @@ function _defineProperties$X(target, props) {
|
|
|
9739
9739
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
9740
9740
|
}
|
|
9741
9741
|
}
|
|
9742
|
-
function _create_class$
|
|
9743
|
-
if (protoProps) _defineProperties$
|
|
9742
|
+
function _create_class$Y(Constructor, protoProps, staticProps) {
|
|
9743
|
+
if (protoProps) _defineProperties$Y(Constructor.prototype, protoProps);
|
|
9744
9744
|
return Constructor;
|
|
9745
9745
|
}
|
|
9746
9746
|
function _instanceof$C(left, right) {
|
|
@@ -9883,7 +9883,7 @@ var STATUS_RETRYABLE = [
|
|
|
9883
9883
|
* exponential backoff between each attempt.
|
|
9884
9884
|
*/ var AsyncCaller$1 = /*#__PURE__*/ function() {
|
|
9885
9885
|
function AsyncCaller(params) {
|
|
9886
|
-
_class_call_check$
|
|
9886
|
+
_class_call_check$14(this, AsyncCaller);
|
|
9887
9887
|
Object.defineProperty(this, "maxConcurrency", {
|
|
9888
9888
|
enumerable: true,
|
|
9889
9889
|
configurable: true,
|
|
@@ -9925,7 +9925,7 @@ var STATUS_RETRYABLE = [
|
|
|
9925
9925
|
}
|
|
9926
9926
|
this.onFailedResponseHook = params === null || params === void 0 ? void 0 : params.onFailedResponseHook;
|
|
9927
9927
|
}
|
|
9928
|
-
_create_class$
|
|
9928
|
+
_create_class$Y(AsyncCaller, [
|
|
9929
9929
|
{
|
|
9930
9930
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9931
9931
|
key: "call",
|
|
@@ -10420,12 +10420,12 @@ var identifiers$2 = {
|
|
|
10420
10420
|
rcompareIdentifiers: rcompareIdentifiers
|
|
10421
10421
|
};
|
|
10422
10422
|
|
|
10423
|
-
function _class_call_check$
|
|
10423
|
+
function _class_call_check$13(instance, Constructor) {
|
|
10424
10424
|
if (!(instance instanceof Constructor)) {
|
|
10425
10425
|
throw new TypeError("Cannot call a class as a function");
|
|
10426
10426
|
}
|
|
10427
10427
|
}
|
|
10428
|
-
function _defineProperties$
|
|
10428
|
+
function _defineProperties$X(target, props) {
|
|
10429
10429
|
for(var i = 0; i < props.length; i++){
|
|
10430
10430
|
var descriptor = props[i];
|
|
10431
10431
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -10434,8 +10434,8 @@ function _defineProperties$W(target, props) {
|
|
|
10434
10434
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
10435
10435
|
}
|
|
10436
10436
|
}
|
|
10437
|
-
function _create_class$
|
|
10438
|
-
if (protoProps) _defineProperties$
|
|
10437
|
+
function _create_class$X(Constructor, protoProps, staticProps) {
|
|
10438
|
+
if (protoProps) _defineProperties$X(Constructor.prototype, protoProps);
|
|
10439
10439
|
return Constructor;
|
|
10440
10440
|
}
|
|
10441
10441
|
function _instanceof$B(left, right) {
|
|
@@ -10456,7 +10456,7 @@ var parseOptions = parseOptions_1;
|
|
|
10456
10456
|
var compareIdentifiers = identifiers$2.compareIdentifiers;
|
|
10457
10457
|
var SemVer$1 = /*#__PURE__*/ function() {
|
|
10458
10458
|
function SemVer(version, options) {
|
|
10459
|
-
_class_call_check$
|
|
10459
|
+
_class_call_check$13(this, SemVer);
|
|
10460
10460
|
options = parseOptions(options);
|
|
10461
10461
|
if (_instanceof$B(version, SemVer)) {
|
|
10462
10462
|
if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) {
|
|
@@ -10511,7 +10511,7 @@ var SemVer$1 = /*#__PURE__*/ function() {
|
|
|
10511
10511
|
this.build = m[5] ? m[5].split('.') : [];
|
|
10512
10512
|
this.format();
|
|
10513
10513
|
}
|
|
10514
|
-
_create_class$
|
|
10514
|
+
_create_class$X(SemVer, [
|
|
10515
10515
|
{
|
|
10516
10516
|
key: "format",
|
|
10517
10517
|
value: function format() {
|
|
@@ -10869,78 +10869,70 @@ var cmp_1 = cmp;
|
|
|
10869
10869
|
|
|
10870
10870
|
var _require = reExports; _require.safeRe; _require.t;
|
|
10871
10871
|
|
|
10872
|
-
|
|
10873
|
-
|
|
10874
|
-
|
|
10875
|
-
|
|
10876
|
-
|
|
10877
|
-
|
|
10878
|
-
|
|
10879
|
-
|
|
10880
|
-
|
|
10881
|
-
|
|
10882
|
-
|
|
10883
|
-
|
|
10884
|
-
|
|
10885
|
-
var descriptor = props[i];
|
|
10886
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
10887
|
-
descriptor.configurable = true;
|
|
10888
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
10889
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
10890
|
-
}
|
|
10891
|
-
}
|
|
10892
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
10893
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
10894
|
-
return Constructor;
|
|
10895
|
-
}
|
|
10896
|
-
var LRUCache = /*#__PURE__*/ function() {
|
|
10897
|
-
function LRUCache() {
|
|
10898
|
-
_class_call_check(this, LRUCache);
|
|
10899
|
-
this.max = 1000;
|
|
10900
|
-
this.map = new Map();
|
|
10901
|
-
}
|
|
10902
|
-
_create_class(LRUCache, [
|
|
10903
|
-
{
|
|
10904
|
-
key: "get",
|
|
10905
|
-
value: function get(key) {
|
|
10906
|
-
var value = this.map.get(key);
|
|
10907
|
-
if (value === undefined) {
|
|
10908
|
-
return undefined;
|
|
10909
|
-
} else {
|
|
10910
|
-
// Remove the key from the map and add it to the end
|
|
10911
|
-
this.map.delete(key);
|
|
10912
|
-
this.map.set(key, value);
|
|
10913
|
-
return value;
|
|
10914
|
-
}
|
|
10915
|
-
}
|
|
10916
|
-
},
|
|
10917
|
-
{
|
|
10918
|
-
key: "delete",
|
|
10919
|
-
value: function _delete(key) {
|
|
10920
|
-
return this.map.delete(key);
|
|
10921
|
-
}
|
|
10922
|
-
},
|
|
10923
|
-
{
|
|
10924
|
-
key: "set",
|
|
10925
|
-
value: function set(key, value) {
|
|
10926
|
-
var deleted = this.delete(key);
|
|
10927
|
-
if (!deleted && value !== undefined) {
|
|
10928
|
-
// If cache is full, delete the least recently used item
|
|
10929
|
-
if (this.map.size >= this.max) {
|
|
10930
|
-
var firstKey = this.map.keys().next().value;
|
|
10931
|
-
this.delete(firstKey);
|
|
10932
|
-
}
|
|
10933
|
-
this.map.set(key, value);
|
|
10934
|
-
}
|
|
10935
|
-
return this;
|
|
10936
|
-
}
|
|
10937
|
-
}
|
|
10938
|
-
]);
|
|
10939
|
-
return LRUCache;
|
|
10940
|
-
}();
|
|
10941
|
-
lrucache = LRUCache;
|
|
10942
|
-
return lrucache;
|
|
10872
|
+
function _class_call_check$12(instance, Constructor) {
|
|
10873
|
+
if (!(instance instanceof Constructor)) {
|
|
10874
|
+
throw new TypeError("Cannot call a class as a function");
|
|
10875
|
+
}
|
|
10876
|
+
}
|
|
10877
|
+
function _defineProperties$W(target, props) {
|
|
10878
|
+
for(var i = 0; i < props.length; i++){
|
|
10879
|
+
var descriptor = props[i];
|
|
10880
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
10881
|
+
descriptor.configurable = true;
|
|
10882
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
10883
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
10884
|
+
}
|
|
10943
10885
|
}
|
|
10886
|
+
function _create_class$W(Constructor, protoProps, staticProps) {
|
|
10887
|
+
if (protoProps) _defineProperties$W(Constructor.prototype, protoProps);
|
|
10888
|
+
return Constructor;
|
|
10889
|
+
}
|
|
10890
|
+
var LRUCache = /*#__PURE__*/ function() {
|
|
10891
|
+
function LRUCache() {
|
|
10892
|
+
_class_call_check$12(this, LRUCache);
|
|
10893
|
+
this.max = 1000;
|
|
10894
|
+
this.map = new Map();
|
|
10895
|
+
}
|
|
10896
|
+
_create_class$W(LRUCache, [
|
|
10897
|
+
{
|
|
10898
|
+
key: "get",
|
|
10899
|
+
value: function get(key) {
|
|
10900
|
+
var value = this.map.get(key);
|
|
10901
|
+
if (value === undefined) {
|
|
10902
|
+
return undefined;
|
|
10903
|
+
} else {
|
|
10904
|
+
// Remove the key from the map and add it to the end
|
|
10905
|
+
this.map.delete(key);
|
|
10906
|
+
this.map.set(key, value);
|
|
10907
|
+
return value;
|
|
10908
|
+
}
|
|
10909
|
+
}
|
|
10910
|
+
},
|
|
10911
|
+
{
|
|
10912
|
+
key: "delete",
|
|
10913
|
+
value: function _delete(key) {
|
|
10914
|
+
return this.map.delete(key);
|
|
10915
|
+
}
|
|
10916
|
+
},
|
|
10917
|
+
{
|
|
10918
|
+
key: "set",
|
|
10919
|
+
value: function set(key, value) {
|
|
10920
|
+
var deleted = this.delete(key);
|
|
10921
|
+
if (!deleted && value !== undefined) {
|
|
10922
|
+
// If cache is full, delete the least recently used item
|
|
10923
|
+
if (this.map.size >= this.max) {
|
|
10924
|
+
var firstKey = this.map.keys().next().value;
|
|
10925
|
+
this.delete(firstKey);
|
|
10926
|
+
}
|
|
10927
|
+
this.map.set(key, value);
|
|
10928
|
+
}
|
|
10929
|
+
return this;
|
|
10930
|
+
}
|
|
10931
|
+
}
|
|
10932
|
+
]);
|
|
10933
|
+
return LRUCache;
|
|
10934
|
+
}();
|
|
10935
|
+
var lrucache = LRUCache;
|
|
10944
10936
|
|
|
10945
10937
|
var range;
|
|
10946
10938
|
var hasRequiredRange;
|
|
@@ -11244,7 +11236,7 @@ function requireRange () {
|
|
|
11244
11236
|
return Range;
|
|
11245
11237
|
}();
|
|
11246
11238
|
range = Range;
|
|
11247
|
-
var LRU =
|
|
11239
|
+
var LRU = lrucache;
|
|
11248
11240
|
var cache = new LRU();
|
|
11249
11241
|
var parseOptions = parseOptions_1;
|
|
11250
11242
|
var Comparator = requireComparator();
|
|
@@ -102048,7 +102040,7 @@ const executePins = async (settingsOrigin, context = {})=>{
|
|
|
102048
102040
|
if (!pins) {
|
|
102049
102041
|
throw new Error(`Element ${settings.element} not found in library ${settings.library}`);
|
|
102050
102042
|
}
|
|
102051
|
-
const result = await pins(settings.properties, settings.pins, context);
|
|
102043
|
+
const result = await pins(settings._properties ?? settings.properties, settings.pins, context);
|
|
102052
102044
|
_config.LOGGER('INFO', context.__PATH__, `execute:${settings.library}:${settings.element}:end`, context, result);
|
|
102053
102045
|
return result;
|
|
102054
102046
|
};
|