@digipair/skill-ollama 0.118.1 → 0.118.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/index.esm.js +198 -206
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -341,12 +341,12 @@ function _array_with_holes$u(arr) {
|
|
|
341
341
|
function _array_without_holes$M(arr) {
|
|
342
342
|
if (Array.isArray(arr)) return _array_like_to_array$$(arr);
|
|
343
343
|
}
|
|
344
|
-
function _class_call_check$
|
|
344
|
+
function _class_call_check$13(instance, Constructor) {
|
|
345
345
|
if (!(instance instanceof Constructor)) {
|
|
346
346
|
throw new TypeError("Cannot call a class as a function");
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
|
-
function _defineProperties$
|
|
349
|
+
function _defineProperties$Y(target, props) {
|
|
350
350
|
for(var i = 0; i < props.length; i++){
|
|
351
351
|
var descriptor = props[i];
|
|
352
352
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -355,9 +355,9 @@ function _defineProperties$X(target, props) {
|
|
|
355
355
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
|
-
function _create_class$
|
|
359
|
-
if (protoProps) _defineProperties$
|
|
360
|
-
if (staticProps) _defineProperties$
|
|
358
|
+
function _create_class$Y(Constructor, protoProps, staticProps) {
|
|
359
|
+
if (protoProps) _defineProperties$Y(Constructor.prototype, protoProps);
|
|
360
|
+
if (staticProps) _defineProperties$Y(Constructor, staticProps);
|
|
361
361
|
return Constructor;
|
|
362
362
|
}
|
|
363
363
|
function _define_property$1r(obj, key, value) {
|
|
@@ -531,7 +531,7 @@ var Serializable = /*#__PURE__*/ function() {
|
|
|
531
531
|
for(var _len = arguments.length, _args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
|
|
532
532
|
_args[_key - 1] = arguments[_key];
|
|
533
533
|
}
|
|
534
|
-
_class_call_check$
|
|
534
|
+
_class_call_check$13(this, Serializable);
|
|
535
535
|
_define_property$1r(this, "lc_serializable", false);
|
|
536
536
|
_define_property$1r(this, "lc_kwargs", void 0);
|
|
537
537
|
if (this.lc_serializable_keys !== void 0) this.lc_kwargs = Object.fromEntries(Object.entries(kwargs || {}).filter(function(param) {
|
|
@@ -541,7 +541,7 @@ var Serializable = /*#__PURE__*/ function() {
|
|
|
541
541
|
}));
|
|
542
542
|
else this.lc_kwargs = kwargs !== null && kwargs !== void 0 ? kwargs : {};
|
|
543
543
|
}
|
|
544
|
-
_create_class$
|
|
544
|
+
_create_class$Y(Serializable, [
|
|
545
545
|
{
|
|
546
546
|
key: "lc_id",
|
|
547
547
|
get: /**
|
|
@@ -3000,12 +3000,12 @@ function _assert_this_initialized$L(self) {
|
|
|
3000
3000
|
}
|
|
3001
3001
|
return self;
|
|
3002
3002
|
}
|
|
3003
|
-
function _class_call_check$
|
|
3003
|
+
function _class_call_check$12(instance, Constructor) {
|
|
3004
3004
|
if (!(instance instanceof Constructor)) {
|
|
3005
3005
|
throw new TypeError("Cannot call a class as a function");
|
|
3006
3006
|
}
|
|
3007
3007
|
}
|
|
3008
|
-
function _defineProperties$
|
|
3008
|
+
function _defineProperties$X(target, props) {
|
|
3009
3009
|
for(var i = 0; i < props.length; i++){
|
|
3010
3010
|
var descriptor = props[i];
|
|
3011
3011
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -3014,9 +3014,9 @@ function _defineProperties$W(target, props) {
|
|
|
3014
3014
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
3015
3015
|
}
|
|
3016
3016
|
}
|
|
3017
|
-
function _create_class$
|
|
3018
|
-
if (protoProps) _defineProperties$
|
|
3019
|
-
if (staticProps) _defineProperties$
|
|
3017
|
+
function _create_class$X(Constructor, protoProps, staticProps) {
|
|
3018
|
+
if (protoProps) _defineProperties$X(Constructor.prototype, protoProps);
|
|
3019
|
+
if (staticProps) _defineProperties$X(Constructor, staticProps);
|
|
3020
3020
|
return Constructor;
|
|
3021
3021
|
}
|
|
3022
3022
|
function _define_property$1o(obj, key, value) {
|
|
@@ -3272,7 +3272,7 @@ function stringifyWithDepthLimit(obj, depthLimit) {
|
|
|
3272
3272
|
_inherits$L(_class, Serializable);
|
|
3273
3273
|
var _super = _create_super$L(_class);
|
|
3274
3274
|
function _class(arg) {
|
|
3275
|
-
_class_call_check$
|
|
3275
|
+
_class_call_check$12(this, _class);
|
|
3276
3276
|
var _this;
|
|
3277
3277
|
var fields = typeof arg === "string" || Array.isArray(arg) ? {
|
|
3278
3278
|
content: arg
|
|
@@ -3309,7 +3309,7 @@ function stringifyWithDepthLimit(obj, depthLimit) {
|
|
|
3309
3309
|
_this.id = fields.id;
|
|
3310
3310
|
return _this;
|
|
3311
3311
|
}
|
|
3312
|
-
_create_class$
|
|
3312
|
+
_create_class$X(_class, [
|
|
3313
3313
|
{
|
|
3314
3314
|
key: "lc_aliases",
|
|
3315
3315
|
get: function get() {
|
|
@@ -3545,10 +3545,10 @@ function _mergeObj(left, right) {
|
|
|
3545
3545
|
_inherits$L(BaseMessageChunk, BaseMessage);
|
|
3546
3546
|
var _super = _create_super$L(BaseMessageChunk);
|
|
3547
3547
|
function BaseMessageChunk() {
|
|
3548
|
-
_class_call_check$
|
|
3548
|
+
_class_call_check$12(this, BaseMessageChunk);
|
|
3549
3549
|
return _super.apply(this, arguments);
|
|
3550
3550
|
}
|
|
3551
|
-
_create_class$
|
|
3551
|
+
_create_class$X(BaseMessageChunk, null, [
|
|
3552
3552
|
{
|
|
3553
3553
|
key: "isInstance",
|
|
3554
3554
|
value: function isInstance(obj) {
|
|
@@ -3650,12 +3650,12 @@ function _assert_this_initialized$K(self) {
|
|
|
3650
3650
|
}
|
|
3651
3651
|
return self;
|
|
3652
3652
|
}
|
|
3653
|
-
function _class_call_check$
|
|
3653
|
+
function _class_call_check$11(instance, Constructor) {
|
|
3654
3654
|
if (!(instance instanceof Constructor)) {
|
|
3655
3655
|
throw new TypeError("Cannot call a class as a function");
|
|
3656
3656
|
}
|
|
3657
3657
|
}
|
|
3658
|
-
function _defineProperties$
|
|
3658
|
+
function _defineProperties$W(target, props) {
|
|
3659
3659
|
for(var i = 0; i < props.length; i++){
|
|
3660
3660
|
var descriptor = props[i];
|
|
3661
3661
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -3664,9 +3664,9 @@ function _defineProperties$V(target, props) {
|
|
|
3664
3664
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
3665
3665
|
}
|
|
3666
3666
|
}
|
|
3667
|
-
function _create_class$
|
|
3668
|
-
if (protoProps) _defineProperties$
|
|
3669
|
-
if (staticProps) _defineProperties$
|
|
3667
|
+
function _create_class$W(Constructor, protoProps, staticProps) {
|
|
3668
|
+
if (protoProps) _defineProperties$W(Constructor.prototype, protoProps);
|
|
3669
|
+
if (staticProps) _defineProperties$W(Constructor, staticProps);
|
|
3670
3670
|
return Constructor;
|
|
3671
3671
|
}
|
|
3672
3672
|
function _define_property$1m(obj, key, value) {
|
|
@@ -3830,7 +3830,7 @@ function isDirectToolOutput(x) {
|
|
|
3830
3830
|
_inherits$K(ToolMessage, BaseMessage);
|
|
3831
3831
|
var _super = _create_super$K(ToolMessage);
|
|
3832
3832
|
function ToolMessage(fields, tool_call_id, name) {
|
|
3833
|
-
_class_call_check$
|
|
3833
|
+
_class_call_check$11(this, ToolMessage);
|
|
3834
3834
|
var _this;
|
|
3835
3835
|
var toolMessageFields = typeof fields === "string" || Array.isArray(fields) ? {
|
|
3836
3836
|
content: fields,
|
|
@@ -3859,7 +3859,7 @@ function isDirectToolOutput(x) {
|
|
|
3859
3859
|
_this.metadata = toolMessageFields.metadata;
|
|
3860
3860
|
return _this;
|
|
3861
3861
|
}
|
|
3862
|
-
_create_class$
|
|
3862
|
+
_create_class$W(ToolMessage, [
|
|
3863
3863
|
{
|
|
3864
3864
|
key: "lc_aliases",
|
|
3865
3865
|
get: function get() {
|
|
@@ -3900,7 +3900,7 @@ function isDirectToolOutput(x) {
|
|
|
3900
3900
|
_inherits$K(ToolMessageChunk, BaseMessageChunk);
|
|
3901
3901
|
var _super = _create_super$K(ToolMessageChunk);
|
|
3902
3902
|
function ToolMessageChunk(fields) {
|
|
3903
|
-
_class_call_check$
|
|
3903
|
+
_class_call_check$11(this, ToolMessageChunk);
|
|
3904
3904
|
var _this;
|
|
3905
3905
|
_this = _super.call(this, fields);
|
|
3906
3906
|
_define_property$1m(_assert_this_initialized$K(_this), "type", "tool");
|
|
@@ -3921,7 +3921,7 @@ function isDirectToolOutput(x) {
|
|
|
3921
3921
|
_this.status = fields.status;
|
|
3922
3922
|
return _this;
|
|
3923
3923
|
}
|
|
3924
|
-
_create_class$
|
|
3924
|
+
_create_class$W(ToolMessageChunk, [
|
|
3925
3925
|
{
|
|
3926
3926
|
key: "concat",
|
|
3927
3927
|
value: function concat(chunk) {
|
|
@@ -5328,12 +5328,12 @@ function _assert_this_initialized$J(self) {
|
|
|
5328
5328
|
}
|
|
5329
5329
|
return self;
|
|
5330
5330
|
}
|
|
5331
|
-
function _class_call_check
|
|
5331
|
+
function _class_call_check$10(instance, Constructor) {
|
|
5332
5332
|
if (!(instance instanceof Constructor)) {
|
|
5333
5333
|
throw new TypeError("Cannot call a class as a function");
|
|
5334
5334
|
}
|
|
5335
5335
|
}
|
|
5336
|
-
function _defineProperties$
|
|
5336
|
+
function _defineProperties$V(target, props) {
|
|
5337
5337
|
for(var i = 0; i < props.length; i++){
|
|
5338
5338
|
var descriptor = props[i];
|
|
5339
5339
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -5342,9 +5342,9 @@ function _defineProperties$U(target, props) {
|
|
|
5342
5342
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
5343
5343
|
}
|
|
5344
5344
|
}
|
|
5345
|
-
function _create_class$
|
|
5346
|
-
if (protoProps) _defineProperties$
|
|
5347
|
-
if (staticProps) _defineProperties$
|
|
5345
|
+
function _create_class$V(Constructor, protoProps, staticProps) {
|
|
5346
|
+
if (protoProps) _defineProperties$V(Constructor.prototype, protoProps);
|
|
5347
|
+
if (staticProps) _defineProperties$V(Constructor, staticProps);
|
|
5348
5348
|
return Constructor;
|
|
5349
5349
|
}
|
|
5350
5350
|
function _define_property$1k(obj, key, value) {
|
|
@@ -5529,7 +5529,7 @@ var AIMessage = /*#__PURE__*/ function(BaseMessage) {
|
|
|
5529
5529
|
_inherits$J(AIMessage, BaseMessage);
|
|
5530
5530
|
var _super = _create_super$J(AIMessage);
|
|
5531
5531
|
function AIMessage(fields) {
|
|
5532
|
-
_class_call_check
|
|
5532
|
+
_class_call_check$10(this, AIMessage);
|
|
5533
5533
|
var _this;
|
|
5534
5534
|
var initParams;
|
|
5535
5535
|
if (typeof fields === "string" || Array.isArray(fields)) initParams = {
|
|
@@ -5610,7 +5610,7 @@ var AIMessage = /*#__PURE__*/ function(BaseMessage) {
|
|
|
5610
5610
|
_this.usage_metadata = initParams.usage_metadata;
|
|
5611
5611
|
return _this;
|
|
5612
5612
|
}
|
|
5613
|
-
_create_class$
|
|
5613
|
+
_create_class$V(AIMessage, [
|
|
5614
5614
|
{
|
|
5615
5615
|
key: "lc_aliases",
|
|
5616
5616
|
get: function get() {
|
|
@@ -5691,7 +5691,7 @@ var AIMessage = /*#__PURE__*/ function(BaseMessage) {
|
|
|
5691
5691
|
_inherits$J(AIMessageChunk, BaseMessageChunk);
|
|
5692
5692
|
var _super = _create_super$J(AIMessageChunk);
|
|
5693
5693
|
function AIMessageChunk(fields) {
|
|
5694
|
-
_class_call_check
|
|
5694
|
+
_class_call_check$10(this, AIMessageChunk);
|
|
5695
5695
|
var _this;
|
|
5696
5696
|
var initParams;
|
|
5697
5697
|
var _fields_tool_calls;
|
|
@@ -5793,7 +5793,7 @@ var AIMessage = /*#__PURE__*/ function(BaseMessage) {
|
|
|
5793
5793
|
_this.usage_metadata = initParams.usage_metadata;
|
|
5794
5794
|
return _this;
|
|
5795
5795
|
}
|
|
5796
|
-
_create_class$
|
|
5796
|
+
_create_class$V(AIMessageChunk, [
|
|
5797
5797
|
{
|
|
5798
5798
|
key: "lc_aliases",
|
|
5799
5799
|
get: function get() {
|
|
@@ -5904,12 +5904,12 @@ function _assert_this_initialized$I(self) {
|
|
|
5904
5904
|
}
|
|
5905
5905
|
return self;
|
|
5906
5906
|
}
|
|
5907
|
-
function _class_call_check
|
|
5907
|
+
function _class_call_check$$(instance, Constructor) {
|
|
5908
5908
|
if (!(instance instanceof Constructor)) {
|
|
5909
5909
|
throw new TypeError("Cannot call a class as a function");
|
|
5910
5910
|
}
|
|
5911
5911
|
}
|
|
5912
|
-
function _defineProperties$
|
|
5912
|
+
function _defineProperties$U(target, props) {
|
|
5913
5913
|
for(var i = 0; i < props.length; i++){
|
|
5914
5914
|
var descriptor = props[i];
|
|
5915
5915
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -5918,9 +5918,9 @@ function _defineProperties$T(target, props) {
|
|
|
5918
5918
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
5919
5919
|
}
|
|
5920
5920
|
}
|
|
5921
|
-
function _create_class$
|
|
5922
|
-
if (protoProps) _defineProperties$
|
|
5923
|
-
if (staticProps) _defineProperties$
|
|
5921
|
+
function _create_class$U(Constructor, protoProps, staticProps) {
|
|
5922
|
+
if (protoProps) _defineProperties$U(Constructor.prototype, protoProps);
|
|
5923
|
+
if (staticProps) _defineProperties$U(Constructor, staticProps);
|
|
5924
5924
|
return Constructor;
|
|
5925
5925
|
}
|
|
5926
5926
|
function _define_property$1j(obj, key, value) {
|
|
@@ -6060,7 +6060,7 @@ function _create_super$I(Derived) {
|
|
|
6060
6060
|
_inherits$I(ChatMessage, BaseMessage);
|
|
6061
6061
|
var _super = _create_super$I(ChatMessage);
|
|
6062
6062
|
function ChatMessage(fields, role) {
|
|
6063
|
-
_class_call_check
|
|
6063
|
+
_class_call_check$$(this, ChatMessage);
|
|
6064
6064
|
var _this;
|
|
6065
6065
|
if (typeof fields === "string" || Array.isArray(fields)) fields = {
|
|
6066
6066
|
content: fields,
|
|
@@ -6072,7 +6072,7 @@ function _create_super$I(Derived) {
|
|
|
6072
6072
|
_this.role = fields.role;
|
|
6073
6073
|
return _this;
|
|
6074
6074
|
}
|
|
6075
|
-
_create_class$
|
|
6075
|
+
_create_class$U(ChatMessage, [
|
|
6076
6076
|
{
|
|
6077
6077
|
key: "_printableFields",
|
|
6078
6078
|
get: function get() {
|
|
@@ -6110,7 +6110,7 @@ function _create_super$I(Derived) {
|
|
|
6110
6110
|
_inherits$I(ChatMessageChunk, BaseMessageChunk);
|
|
6111
6111
|
var _super = _create_super$I(ChatMessageChunk);
|
|
6112
6112
|
function ChatMessageChunk(fields, role) {
|
|
6113
|
-
_class_call_check
|
|
6113
|
+
_class_call_check$$(this, ChatMessageChunk);
|
|
6114
6114
|
var _this;
|
|
6115
6115
|
if (typeof fields === "string" || Array.isArray(fields)) fields = {
|
|
6116
6116
|
content: fields,
|
|
@@ -6122,7 +6122,7 @@ function _create_super$I(Derived) {
|
|
|
6122
6122
|
_this.role = fields.role;
|
|
6123
6123
|
return _this;
|
|
6124
6124
|
}
|
|
6125
|
-
_create_class$
|
|
6125
|
+
_create_class$U(ChatMessageChunk, [
|
|
6126
6126
|
{
|
|
6127
6127
|
key: "concat",
|
|
6128
6128
|
value: function concat(chunk) {
|
|
@@ -6178,12 +6178,12 @@ function _assert_this_initialized$H(self) {
|
|
|
6178
6178
|
}
|
|
6179
6179
|
return self;
|
|
6180
6180
|
}
|
|
6181
|
-
function _class_call_check$
|
|
6181
|
+
function _class_call_check$_(instance, Constructor) {
|
|
6182
6182
|
if (!(instance instanceof Constructor)) {
|
|
6183
6183
|
throw new TypeError("Cannot call a class as a function");
|
|
6184
6184
|
}
|
|
6185
6185
|
}
|
|
6186
|
-
function _defineProperties$
|
|
6186
|
+
function _defineProperties$T(target, props) {
|
|
6187
6187
|
for(var i = 0; i < props.length; i++){
|
|
6188
6188
|
var descriptor = props[i];
|
|
6189
6189
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -6192,9 +6192,9 @@ function _defineProperties$S(target, props) {
|
|
|
6192
6192
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
6193
6193
|
}
|
|
6194
6194
|
}
|
|
6195
|
-
function _create_class$
|
|
6196
|
-
if (protoProps) _defineProperties$
|
|
6197
|
-
if (staticProps) _defineProperties$
|
|
6195
|
+
function _create_class$T(Constructor, protoProps, staticProps) {
|
|
6196
|
+
if (protoProps) _defineProperties$T(Constructor.prototype, protoProps);
|
|
6197
|
+
if (staticProps) _defineProperties$T(Constructor, staticProps);
|
|
6198
6198
|
return Constructor;
|
|
6199
6199
|
}
|
|
6200
6200
|
function _define_property$1i(obj, key, value) {
|
|
@@ -6277,7 +6277,7 @@ function _create_super$H(Derived) {
|
|
|
6277
6277
|
_inherits$H(FunctionMessage, BaseMessage);
|
|
6278
6278
|
var _super = _create_super$H(FunctionMessage);
|
|
6279
6279
|
function FunctionMessage(fields) {
|
|
6280
|
-
_class_call_check$
|
|
6280
|
+
_class_call_check$_(this, FunctionMessage);
|
|
6281
6281
|
var _this;
|
|
6282
6282
|
_this = _super.call(this, fields);
|
|
6283
6283
|
_define_property$1i(_assert_this_initialized$H(_this), "type", "function");
|
|
@@ -6285,7 +6285,7 @@ function _create_super$H(Derived) {
|
|
|
6285
6285
|
_this.name = fields.name;
|
|
6286
6286
|
return _this;
|
|
6287
6287
|
}
|
|
6288
|
-
_create_class$
|
|
6288
|
+
_create_class$T(FunctionMessage, null, [
|
|
6289
6289
|
{
|
|
6290
6290
|
key: "lc_name",
|
|
6291
6291
|
value: function lc_name() {
|
|
@@ -6302,13 +6302,13 @@ function _create_super$H(Derived) {
|
|
|
6302
6302
|
_inherits$H(FunctionMessageChunk, BaseMessageChunk);
|
|
6303
6303
|
var _super = _create_super$H(FunctionMessageChunk);
|
|
6304
6304
|
function FunctionMessageChunk() {
|
|
6305
|
-
_class_call_check$
|
|
6305
|
+
_class_call_check$_(this, FunctionMessageChunk);
|
|
6306
6306
|
var _this;
|
|
6307
6307
|
_this = _super.apply(this, arguments);
|
|
6308
6308
|
_define_property$1i(_assert_this_initialized$H(_this), "type", "function");
|
|
6309
6309
|
return _this;
|
|
6310
6310
|
}
|
|
6311
|
-
_create_class$
|
|
6311
|
+
_create_class$T(FunctionMessageChunk, [
|
|
6312
6312
|
{
|
|
6313
6313
|
key: "concat",
|
|
6314
6314
|
value: function concat(chunk) {
|
|
@@ -6346,12 +6346,12 @@ function _assert_this_initialized$G(self) {
|
|
|
6346
6346
|
}
|
|
6347
6347
|
return self;
|
|
6348
6348
|
}
|
|
6349
|
-
function _class_call_check$
|
|
6349
|
+
function _class_call_check$Z(instance, Constructor) {
|
|
6350
6350
|
if (!(instance instanceof Constructor)) {
|
|
6351
6351
|
throw new TypeError("Cannot call a class as a function");
|
|
6352
6352
|
}
|
|
6353
6353
|
}
|
|
6354
|
-
function _defineProperties$
|
|
6354
|
+
function _defineProperties$S(target, props) {
|
|
6355
6355
|
for(var i = 0; i < props.length; i++){
|
|
6356
6356
|
var descriptor = props[i];
|
|
6357
6357
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -6360,9 +6360,9 @@ function _defineProperties$R(target, props) {
|
|
|
6360
6360
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
6361
6361
|
}
|
|
6362
6362
|
}
|
|
6363
|
-
function _create_class$
|
|
6364
|
-
if (protoProps) _defineProperties$
|
|
6365
|
-
if (staticProps) _defineProperties$
|
|
6363
|
+
function _create_class$S(Constructor, protoProps, staticProps) {
|
|
6364
|
+
if (protoProps) _defineProperties$S(Constructor.prototype, protoProps);
|
|
6365
|
+
if (staticProps) _defineProperties$S(Constructor, staticProps);
|
|
6366
6366
|
return Constructor;
|
|
6367
6367
|
}
|
|
6368
6368
|
function _define_property$1h(obj, key, value) {
|
|
@@ -6468,13 +6468,13 @@ function _create_super$G(Derived) {
|
|
|
6468
6468
|
_inherits$G(HumanMessage, BaseMessage);
|
|
6469
6469
|
var _super = _create_super$G(HumanMessage);
|
|
6470
6470
|
function HumanMessage(fields) {
|
|
6471
|
-
_class_call_check$
|
|
6471
|
+
_class_call_check$Z(this, HumanMessage);
|
|
6472
6472
|
var _this;
|
|
6473
6473
|
_this = _super.call(this, fields);
|
|
6474
6474
|
_define_property$1h(_assert_this_initialized$G(_this), "type", "human");
|
|
6475
6475
|
return _this;
|
|
6476
6476
|
}
|
|
6477
|
-
_create_class$
|
|
6477
|
+
_create_class$S(HumanMessage, null, [
|
|
6478
6478
|
{
|
|
6479
6479
|
key: "lc_name",
|
|
6480
6480
|
value: function lc_name() {
|
|
@@ -6497,13 +6497,13 @@ function _create_super$G(Derived) {
|
|
|
6497
6497
|
_inherits$G(HumanMessageChunk, BaseMessageChunk);
|
|
6498
6498
|
var _super = _create_super$G(HumanMessageChunk);
|
|
6499
6499
|
function HumanMessageChunk(fields) {
|
|
6500
|
-
_class_call_check$
|
|
6500
|
+
_class_call_check$Z(this, HumanMessageChunk);
|
|
6501
6501
|
var _this;
|
|
6502
6502
|
_this = _super.call(this, fields);
|
|
6503
6503
|
_define_property$1h(_assert_this_initialized$G(_this), "type", "human");
|
|
6504
6504
|
return _this;
|
|
6505
6505
|
}
|
|
6506
|
-
_create_class$
|
|
6506
|
+
_create_class$S(HumanMessageChunk, [
|
|
6507
6507
|
{
|
|
6508
6508
|
key: "concat",
|
|
6509
6509
|
value: function concat(chunk) {
|
|
@@ -6550,12 +6550,12 @@ function _assert_this_initialized$F(self) {
|
|
|
6550
6550
|
}
|
|
6551
6551
|
return self;
|
|
6552
6552
|
}
|
|
6553
|
-
function _class_call_check$
|
|
6553
|
+
function _class_call_check$Y(instance, Constructor) {
|
|
6554
6554
|
if (!(instance instanceof Constructor)) {
|
|
6555
6555
|
throw new TypeError("Cannot call a class as a function");
|
|
6556
6556
|
}
|
|
6557
6557
|
}
|
|
6558
|
-
function _defineProperties$
|
|
6558
|
+
function _defineProperties$R(target, props) {
|
|
6559
6559
|
for(var i = 0; i < props.length; i++){
|
|
6560
6560
|
var descriptor = props[i];
|
|
6561
6561
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -6564,9 +6564,9 @@ function _defineProperties$Q(target, props) {
|
|
|
6564
6564
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
6565
6565
|
}
|
|
6566
6566
|
}
|
|
6567
|
-
function _create_class$
|
|
6568
|
-
if (protoProps) _defineProperties$
|
|
6569
|
-
if (staticProps) _defineProperties$
|
|
6567
|
+
function _create_class$R(Constructor, protoProps, staticProps) {
|
|
6568
|
+
if (protoProps) _defineProperties$R(Constructor.prototype, protoProps);
|
|
6569
|
+
if (staticProps) _defineProperties$R(Constructor, staticProps);
|
|
6570
6570
|
return Constructor;
|
|
6571
6571
|
}
|
|
6572
6572
|
function _define_property$1g(obj, key, value) {
|
|
@@ -6672,13 +6672,13 @@ function _create_super$F(Derived) {
|
|
|
6672
6672
|
_inherits$F(SystemMessage, BaseMessage);
|
|
6673
6673
|
var _super = _create_super$F(SystemMessage);
|
|
6674
6674
|
function SystemMessage(fields) {
|
|
6675
|
-
_class_call_check$
|
|
6675
|
+
_class_call_check$Y(this, SystemMessage);
|
|
6676
6676
|
var _this;
|
|
6677
6677
|
_this = _super.call(this, fields);
|
|
6678
6678
|
_define_property$1g(_assert_this_initialized$F(_this), "type", "system");
|
|
6679
6679
|
return _this;
|
|
6680
6680
|
}
|
|
6681
|
-
_create_class$
|
|
6681
|
+
_create_class$R(SystemMessage, null, [
|
|
6682
6682
|
{
|
|
6683
6683
|
key: "lc_name",
|
|
6684
6684
|
value: function lc_name() {
|
|
@@ -6701,13 +6701,13 @@ function _create_super$F(Derived) {
|
|
|
6701
6701
|
_inherits$F(SystemMessageChunk, BaseMessageChunk);
|
|
6702
6702
|
var _super = _create_super$F(SystemMessageChunk);
|
|
6703
6703
|
function SystemMessageChunk(fields) {
|
|
6704
|
-
_class_call_check$
|
|
6704
|
+
_class_call_check$Y(this, SystemMessageChunk);
|
|
6705
6705
|
var _this;
|
|
6706
6706
|
_this = _super.call(this, fields);
|
|
6707
6707
|
_define_property$1g(_assert_this_initialized$F(_this), "type", "system");
|
|
6708
6708
|
return _this;
|
|
6709
6709
|
}
|
|
6710
|
-
_create_class$
|
|
6710
|
+
_create_class$R(SystemMessageChunk, [
|
|
6711
6711
|
{
|
|
6712
6712
|
key: "concat",
|
|
6713
6713
|
value: function concat(chunk) {
|
|
@@ -6754,12 +6754,12 @@ function _assert_this_initialized$E(self) {
|
|
|
6754
6754
|
}
|
|
6755
6755
|
return self;
|
|
6756
6756
|
}
|
|
6757
|
-
function _class_call_check$
|
|
6757
|
+
function _class_call_check$X(instance, Constructor) {
|
|
6758
6758
|
if (!(instance instanceof Constructor)) {
|
|
6759
6759
|
throw new TypeError("Cannot call a class as a function");
|
|
6760
6760
|
}
|
|
6761
6761
|
}
|
|
6762
|
-
function _defineProperties$
|
|
6762
|
+
function _defineProperties$Q(target, props) {
|
|
6763
6763
|
for(var i = 0; i < props.length; i++){
|
|
6764
6764
|
var descriptor = props[i];
|
|
6765
6765
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -6768,9 +6768,9 @@ function _defineProperties$P(target, props) {
|
|
|
6768
6768
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
6769
6769
|
}
|
|
6770
6770
|
}
|
|
6771
|
-
function _create_class$
|
|
6772
|
-
if (protoProps) _defineProperties$
|
|
6773
|
-
if (staticProps) _defineProperties$
|
|
6771
|
+
function _create_class$Q(Constructor, protoProps, staticProps) {
|
|
6772
|
+
if (protoProps) _defineProperties$Q(Constructor.prototype, protoProps);
|
|
6773
|
+
if (staticProps) _defineProperties$Q(Constructor, staticProps);
|
|
6774
6774
|
return Constructor;
|
|
6775
6775
|
}
|
|
6776
6776
|
function _define_property$1f(obj, key, value) {
|
|
@@ -6910,7 +6910,7 @@ function _create_super$E(Derived) {
|
|
|
6910
6910
|
_inherits$E(RemoveMessage, BaseMessage);
|
|
6911
6911
|
var _super = _create_super$E(RemoveMessage);
|
|
6912
6912
|
function RemoveMessage(fields) {
|
|
6913
|
-
_class_call_check$
|
|
6913
|
+
_class_call_check$X(this, RemoveMessage);
|
|
6914
6914
|
var _this;
|
|
6915
6915
|
_this = _super.call(this, _object_spread_props$H(_object_spread$Y({}, fields), {
|
|
6916
6916
|
content: []
|
|
@@ -6922,7 +6922,7 @@ function _create_super$E(Derived) {
|
|
|
6922
6922
|
_this.id = fields.id;
|
|
6923
6923
|
return _this;
|
|
6924
6924
|
}
|
|
6925
|
-
_create_class$
|
|
6925
|
+
_create_class$Q(RemoveMessage, [
|
|
6926
6926
|
{
|
|
6927
6927
|
key: "_printableFields",
|
|
6928
6928
|
get: function get() {
|
|
@@ -6956,7 +6956,7 @@ function _assert_this_initialized$D(self) {
|
|
|
6956
6956
|
}
|
|
6957
6957
|
return self;
|
|
6958
6958
|
}
|
|
6959
|
-
function _class_call_check$
|
|
6959
|
+
function _class_call_check$W(instance, Constructor) {
|
|
6960
6960
|
if (!(instance instanceof Constructor)) {
|
|
6961
6961
|
throw new TypeError("Cannot call a class as a function");
|
|
6962
6962
|
}
|
|
@@ -7091,7 +7091,7 @@ function _isToolCall(toolCall) {
|
|
|
7091
7091
|
_inherits$D(ToolInputParsingException, Error1);
|
|
7092
7092
|
var _super = _create_super$D(ToolInputParsingException);
|
|
7093
7093
|
function ToolInputParsingException(message, output) {
|
|
7094
|
-
_class_call_check$
|
|
7094
|
+
_class_call_check$W(this, ToolInputParsingException);
|
|
7095
7095
|
var _this;
|
|
7096
7096
|
_this = _super.call(this, message);
|
|
7097
7097
|
_define_property$1e(_assert_this_initialized$D(_this), "output", void 0);
|
|
@@ -7785,12 +7785,12 @@ function _assert_this_initialized$C(self) {
|
|
|
7785
7785
|
}
|
|
7786
7786
|
return self;
|
|
7787
7787
|
}
|
|
7788
|
-
function _class_call_check$
|
|
7788
|
+
function _class_call_check$V(instance, Constructor) {
|
|
7789
7789
|
if (!(instance instanceof Constructor)) {
|
|
7790
7790
|
throw new TypeError("Cannot call a class as a function");
|
|
7791
7791
|
}
|
|
7792
7792
|
}
|
|
7793
|
-
function _defineProperties$
|
|
7793
|
+
function _defineProperties$P(target, props) {
|
|
7794
7794
|
for(var i = 0; i < props.length; i++){
|
|
7795
7795
|
var descriptor = props[i];
|
|
7796
7796
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -7799,9 +7799,9 @@ function _defineProperties$O(target, props) {
|
|
|
7799
7799
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
7800
7800
|
}
|
|
7801
7801
|
}
|
|
7802
|
-
function _create_class$
|
|
7803
|
-
if (protoProps) _defineProperties$
|
|
7804
|
-
if (staticProps) _defineProperties$
|
|
7802
|
+
function _create_class$P(Constructor, protoProps, staticProps) {
|
|
7803
|
+
if (protoProps) _defineProperties$P(Constructor.prototype, protoProps);
|
|
7804
|
+
if (staticProps) _defineProperties$P(Constructor, staticProps);
|
|
7805
7805
|
return Constructor;
|
|
7806
7806
|
}
|
|
7807
7807
|
function _define_property$1c(obj, key, value) {
|
|
@@ -7912,7 +7912,7 @@ __export(base_exports$3, {
|
|
|
7912
7912
|
* overridden in derived classes to handle various events during the
|
|
7913
7913
|
* execution of a LangChain application.
|
|
7914
7914
|
*/ var BaseCallbackHandlerMethodsClass = function BaseCallbackHandlerMethodsClass() {
|
|
7915
|
-
_class_call_check$
|
|
7915
|
+
_class_call_check$V(this, BaseCallbackHandlerMethodsClass);
|
|
7916
7916
|
};
|
|
7917
7917
|
function callbackHandlerPrefersStreaming(x) {
|
|
7918
7918
|
return "lc_prefer_streaming" in x && x.lc_prefer_streaming;
|
|
@@ -7926,7 +7926,7 @@ function callbackHandlerPrefersStreaming(x) {
|
|
|
7926
7926
|
_inherits$C(BaseCallbackHandler1, BaseCallbackHandlerMethodsClass);
|
|
7927
7927
|
var _super = _create_super$C(BaseCallbackHandler1);
|
|
7928
7928
|
function BaseCallbackHandler1(input) {
|
|
7929
|
-
_class_call_check$
|
|
7929
|
+
_class_call_check$V(this, BaseCallbackHandler1);
|
|
7930
7930
|
var _this;
|
|
7931
7931
|
_this = _super.call(this);
|
|
7932
7932
|
_define_property$1c(_assert_this_initialized$C(_this), "lc_serializable", false);
|
|
@@ -7957,7 +7957,7 @@ function callbackHandlerPrefersStreaming(x) {
|
|
|
7957
7957
|
}
|
|
7958
7958
|
return _this;
|
|
7959
7959
|
}
|
|
7960
|
-
_create_class$
|
|
7960
|
+
_create_class$P(BaseCallbackHandler1, [
|
|
7961
7961
|
{
|
|
7962
7962
|
key: "lc_namespace",
|
|
7963
7963
|
get: function get() {
|
|
@@ -8039,7 +8039,7 @@ function callbackHandlerPrefersStreaming(x) {
|
|
|
8039
8039
|
_inherits$C(Handler, BaseCallbackHandler);
|
|
8040
8040
|
var _super = _create_super$C(Handler);
|
|
8041
8041
|
function Handler() {
|
|
8042
|
-
_class_call_check$
|
|
8042
|
+
_class_call_check$V(this, Handler);
|
|
8043
8043
|
var _this;
|
|
8044
8044
|
_this = _super.call(this);
|
|
8045
8045
|
_define_property$1c(_assert_this_initialized$C(_this), "name", v4());
|
|
@@ -8639,12 +8639,12 @@ function getOtelEnabled() {
|
|
|
8639
8639
|
}
|
|
8640
8640
|
|
|
8641
8641
|
// Should not import any OTEL packages to avoid pulling in optional deps.
|
|
8642
|
-
function _class_call_check$
|
|
8642
|
+
function _class_call_check$U(instance, Constructor) {
|
|
8643
8643
|
if (!(instance instanceof Constructor)) {
|
|
8644
8644
|
throw new TypeError("Cannot call a class as a function");
|
|
8645
8645
|
}
|
|
8646
8646
|
}
|
|
8647
|
-
function _defineProperties$
|
|
8647
|
+
function _defineProperties$O(target, props) {
|
|
8648
8648
|
for(var i = 0; i < props.length; i++){
|
|
8649
8649
|
var descriptor = props[i];
|
|
8650
8650
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -8653,13 +8653,13 @@ function _defineProperties$N(target, props) {
|
|
|
8653
8653
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
8654
8654
|
}
|
|
8655
8655
|
}
|
|
8656
|
-
function _create_class$
|
|
8657
|
-
if (protoProps) _defineProperties$
|
|
8656
|
+
function _create_class$O(Constructor, protoProps, staticProps) {
|
|
8657
|
+
if (protoProps) _defineProperties$O(Constructor.prototype, protoProps);
|
|
8658
8658
|
return Constructor;
|
|
8659
8659
|
}
|
|
8660
8660
|
var MockTracer = /*#__PURE__*/ function() {
|
|
8661
8661
|
function MockTracer() {
|
|
8662
|
-
_class_call_check$
|
|
8662
|
+
_class_call_check$U(this, MockTracer);
|
|
8663
8663
|
Object.defineProperty(this, "hasWarned", {
|
|
8664
8664
|
enumerable: true,
|
|
8665
8665
|
configurable: true,
|
|
@@ -8667,7 +8667,7 @@ var MockTracer = /*#__PURE__*/ function() {
|
|
|
8667
8667
|
value: false
|
|
8668
8668
|
});
|
|
8669
8669
|
}
|
|
8670
|
-
_create_class$
|
|
8670
|
+
_create_class$O(MockTracer, [
|
|
8671
8671
|
{
|
|
8672
8672
|
key: "startActiveSpan",
|
|
8673
8673
|
value: function startActiveSpan(_name) {
|
|
@@ -8701,7 +8701,7 @@ var MockTracer = /*#__PURE__*/ function() {
|
|
|
8701
8701
|
}();
|
|
8702
8702
|
var MockOTELTrace = /*#__PURE__*/ function() {
|
|
8703
8703
|
function MockOTELTrace() {
|
|
8704
|
-
_class_call_check$
|
|
8704
|
+
_class_call_check$U(this, MockOTELTrace);
|
|
8705
8705
|
Object.defineProperty(this, "mockTracer", {
|
|
8706
8706
|
enumerable: true,
|
|
8707
8707
|
configurable: true,
|
|
@@ -8709,7 +8709,7 @@ var MockOTELTrace = /*#__PURE__*/ function() {
|
|
|
8709
8709
|
value: new MockTracer()
|
|
8710
8710
|
});
|
|
8711
8711
|
}
|
|
8712
|
-
_create_class$
|
|
8712
|
+
_create_class$O(MockOTELTrace, [
|
|
8713
8713
|
{
|
|
8714
8714
|
key: "getTracer",
|
|
8715
8715
|
value: function getTracer(_name, _version) {
|
|
@@ -8757,9 +8757,9 @@ var MockOTELTrace = /*#__PURE__*/ function() {
|
|
|
8757
8757
|
}();
|
|
8758
8758
|
var MockOTELContext = /*#__PURE__*/ function() {
|
|
8759
8759
|
function MockOTELContext() {
|
|
8760
|
-
_class_call_check$
|
|
8760
|
+
_class_call_check$U(this, MockOTELContext);
|
|
8761
8761
|
}
|
|
8762
|
-
_create_class$
|
|
8762
|
+
_create_class$O(MockOTELContext, [
|
|
8763
8763
|
{
|
|
8764
8764
|
key: "active",
|
|
8765
8765
|
value: function active() {
|
|
@@ -8782,9 +8782,9 @@ var mockOTELTrace = new MockOTELTrace();
|
|
|
8782
8782
|
var mockOTELContext = new MockOTELContext();
|
|
8783
8783
|
var OTELProvider = /*#__PURE__*/ function() {
|
|
8784
8784
|
function OTELProvider() {
|
|
8785
|
-
_class_call_check$
|
|
8785
|
+
_class_call_check$U(this, OTELProvider);
|
|
8786
8786
|
}
|
|
8787
|
-
_create_class$
|
|
8787
|
+
_create_class$O(OTELProvider, [
|
|
8788
8788
|
{
|
|
8789
8789
|
key: "getTraceInstance",
|
|
8790
8790
|
value: function getTraceInstance() {
|
|
@@ -8861,12 +8861,12 @@ function _array_like_to_array$R(arr, len) {
|
|
|
8861
8861
|
function _array_with_holes$n(arr) {
|
|
8862
8862
|
if (Array.isArray(arr)) return arr;
|
|
8863
8863
|
}
|
|
8864
|
-
function _class_call_check$
|
|
8864
|
+
function _class_call_check$T(instance, Constructor) {
|
|
8865
8865
|
if (!(instance instanceof Constructor)) {
|
|
8866
8866
|
throw new TypeError("Cannot call a class as a function");
|
|
8867
8867
|
}
|
|
8868
8868
|
}
|
|
8869
|
-
function _defineProperties$
|
|
8869
|
+
function _defineProperties$N(target, props) {
|
|
8870
8870
|
for(var i = 0; i < props.length; i++){
|
|
8871
8871
|
var descriptor = props[i];
|
|
8872
8872
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -8875,8 +8875,8 @@ function _defineProperties$M(target, props) {
|
|
|
8875
8875
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
8876
8876
|
}
|
|
8877
8877
|
}
|
|
8878
|
-
function _create_class$
|
|
8879
|
-
if (protoProps) _defineProperties$
|
|
8878
|
+
function _create_class$N(Constructor, protoProps, staticProps) {
|
|
8879
|
+
if (protoProps) _defineProperties$N(Constructor.prototype, protoProps);
|
|
8880
8880
|
return Constructor;
|
|
8881
8881
|
}
|
|
8882
8882
|
function _iterable_to_array_limit$m(arr, i) {
|
|
@@ -8933,7 +8933,7 @@ function getOperationName(runType) {
|
|
|
8933
8933
|
}
|
|
8934
8934
|
var LangSmithToOTELTranslator = /*#__PURE__*/ function() {
|
|
8935
8935
|
function LangSmithToOTELTranslator() {
|
|
8936
|
-
_class_call_check$
|
|
8936
|
+
_class_call_check$T(this, LangSmithToOTELTranslator);
|
|
8937
8937
|
Object.defineProperty(this, "spans", {
|
|
8938
8938
|
enumerable: true,
|
|
8939
8939
|
configurable: true,
|
|
@@ -8941,7 +8941,7 @@ var LangSmithToOTELTranslator = /*#__PURE__*/ function() {
|
|
|
8941
8941
|
value: new Map()
|
|
8942
8942
|
});
|
|
8943
8943
|
}
|
|
8944
|
-
_create_class$
|
|
8944
|
+
_create_class$N(LangSmithToOTELTranslator, [
|
|
8945
8945
|
{
|
|
8946
8946
|
key: "exportBatch",
|
|
8947
8947
|
value: function exportBatch(operations, otelContextMap) {
|
|
@@ -9680,7 +9680,7 @@ function _async_to_generator$G(fn) {
|
|
|
9680
9680
|
});
|
|
9681
9681
|
};
|
|
9682
9682
|
}
|
|
9683
|
-
function _class_call_check$
|
|
9683
|
+
function _class_call_check$S(instance, Constructor) {
|
|
9684
9684
|
if (!(instance instanceof Constructor)) {
|
|
9685
9685
|
throw new TypeError("Cannot call a class as a function");
|
|
9686
9686
|
}
|
|
@@ -9932,7 +9932,7 @@ var AbortError = /*#__PURE__*/ function(Error1) {
|
|
|
9932
9932
|
_inherits$B(AbortError, Error1);
|
|
9933
9933
|
var _super = _create_super$B(AbortError);
|
|
9934
9934
|
function AbortError(message) {
|
|
9935
|
-
_class_call_check$
|
|
9935
|
+
_class_call_check$S(this, AbortError);
|
|
9936
9936
|
var _this;
|
|
9937
9937
|
_this = _super.call(this);
|
|
9938
9938
|
if (_instanceof$n(message, Error)) {
|
|
@@ -10388,7 +10388,7 @@ function _assert_this_initialized$A(self) {
|
|
|
10388
10388
|
}
|
|
10389
10389
|
return self;
|
|
10390
10390
|
}
|
|
10391
|
-
function _class_call_check$
|
|
10391
|
+
function _class_call_check$R(instance, Constructor) {
|
|
10392
10392
|
if (!(instance instanceof Constructor)) {
|
|
10393
10393
|
throw new TypeError("Cannot call a class as a function");
|
|
10394
10394
|
}
|
|
@@ -10511,7 +10511,7 @@ var TimeoutError = /*#__PURE__*/ function(Error1) {
|
|
|
10511
10511
|
_inherits$A(TimeoutError, Error1);
|
|
10512
10512
|
var _super = _create_super$A(TimeoutError);
|
|
10513
10513
|
function TimeoutError(message) {
|
|
10514
|
-
_class_call_check$
|
|
10514
|
+
_class_call_check$R(this, TimeoutError);
|
|
10515
10515
|
var _this;
|
|
10516
10516
|
_this = _super.call(this, message);
|
|
10517
10517
|
_this.name = 'TimeoutError';
|
|
@@ -10584,12 +10584,12 @@ function lowerBound(array, value, comparator) {
|
|
|
10584
10584
|
}
|
|
10585
10585
|
lowerBound$1.default = lowerBound;
|
|
10586
10586
|
|
|
10587
|
-
function _class_call_check$
|
|
10587
|
+
function _class_call_check$Q(instance, Constructor) {
|
|
10588
10588
|
if (!(instance instanceof Constructor)) {
|
|
10589
10589
|
throw new TypeError("Cannot call a class as a function");
|
|
10590
10590
|
}
|
|
10591
10591
|
}
|
|
10592
|
-
function _defineProperties$
|
|
10592
|
+
function _defineProperties$M(target, props) {
|
|
10593
10593
|
for(var i = 0; i < props.length; i++){
|
|
10594
10594
|
var descriptor = props[i];
|
|
10595
10595
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -10598,8 +10598,8 @@ function _defineProperties$L(target, props) {
|
|
|
10598
10598
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
10599
10599
|
}
|
|
10600
10600
|
}
|
|
10601
|
-
function _create_class$
|
|
10602
|
-
if (protoProps) _defineProperties$
|
|
10601
|
+
function _create_class$M(Constructor, protoProps, staticProps) {
|
|
10602
|
+
if (protoProps) _defineProperties$M(Constructor.prototype, protoProps);
|
|
10603
10603
|
return Constructor;
|
|
10604
10604
|
}
|
|
10605
10605
|
Object.defineProperty(priorityQueue, "__esModule", {
|
|
@@ -10608,10 +10608,10 @@ Object.defineProperty(priorityQueue, "__esModule", {
|
|
|
10608
10608
|
var lower_bound_1 = lowerBound$1;
|
|
10609
10609
|
var PriorityQueue = /*#__PURE__*/ function() {
|
|
10610
10610
|
function PriorityQueue() {
|
|
10611
|
-
_class_call_check$
|
|
10611
|
+
_class_call_check$Q(this, PriorityQueue);
|
|
10612
10612
|
this._queue = [];
|
|
10613
10613
|
}
|
|
10614
|
-
_create_class$
|
|
10614
|
+
_create_class$M(PriorityQueue, [
|
|
10615
10615
|
{
|
|
10616
10616
|
key: "enqueue",
|
|
10617
10617
|
value: function enqueue(run, options) {
|
|
@@ -10695,12 +10695,12 @@ function _async_to_generator$F(fn) {
|
|
|
10695
10695
|
});
|
|
10696
10696
|
};
|
|
10697
10697
|
}
|
|
10698
|
-
function _class_call_check$
|
|
10698
|
+
function _class_call_check$P(instance, Constructor) {
|
|
10699
10699
|
if (!(instance instanceof Constructor)) {
|
|
10700
10700
|
throw new TypeError("Cannot call a class as a function");
|
|
10701
10701
|
}
|
|
10702
10702
|
}
|
|
10703
|
-
function _defineProperties$
|
|
10703
|
+
function _defineProperties$L(target, props) {
|
|
10704
10704
|
for(var i = 0; i < props.length; i++){
|
|
10705
10705
|
var descriptor = props[i];
|
|
10706
10706
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -10709,8 +10709,8 @@ function _defineProperties$K(target, props) {
|
|
|
10709
10709
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
10710
10710
|
}
|
|
10711
10711
|
}
|
|
10712
|
-
function _create_class$
|
|
10713
|
-
if (protoProps) _defineProperties$
|
|
10712
|
+
function _create_class$L(Constructor, protoProps, staticProps) {
|
|
10713
|
+
if (protoProps) _defineProperties$L(Constructor.prototype, protoProps);
|
|
10714
10714
|
return Constructor;
|
|
10715
10715
|
}
|
|
10716
10716
|
function _get_prototype_of$z(o) {
|
|
@@ -10883,7 +10883,7 @@ Promise queue with concurrency control.
|
|
|
10883
10883
|
_inherits$z(PQueue, EventEmitter);
|
|
10884
10884
|
var _super = _create_super$z(PQueue);
|
|
10885
10885
|
function PQueue(options) {
|
|
10886
|
-
_class_call_check$
|
|
10886
|
+
_class_call_check$P(this, PQueue);
|
|
10887
10887
|
var _this;
|
|
10888
10888
|
var _a, _b, _c, _d;
|
|
10889
10889
|
_this = _super.call(this);
|
|
@@ -10919,7 +10919,7 @@ Promise queue with concurrency control.
|
|
|
10919
10919
|
_this._isPaused = options.autoStart === false;
|
|
10920
10920
|
return _this;
|
|
10921
10921
|
}
|
|
10922
|
-
_create_class$
|
|
10922
|
+
_create_class$L(PQueue, [
|
|
10923
10923
|
{
|
|
10924
10924
|
key: "_doesIntervalAllowAnother",
|
|
10925
10925
|
get: function get() {
|
|
@@ -11342,12 +11342,12 @@ function _async_to_generator$E(fn) {
|
|
|
11342
11342
|
});
|
|
11343
11343
|
};
|
|
11344
11344
|
}
|
|
11345
|
-
function _class_call_check$
|
|
11345
|
+
function _class_call_check$O(instance, Constructor) {
|
|
11346
11346
|
if (!(instance instanceof Constructor)) {
|
|
11347
11347
|
throw new TypeError("Cannot call a class as a function");
|
|
11348
11348
|
}
|
|
11349
11349
|
}
|
|
11350
|
-
function _defineProperties$
|
|
11350
|
+
function _defineProperties$K(target, props) {
|
|
11351
11351
|
for(var i = 0; i < props.length; i++){
|
|
11352
11352
|
var descriptor = props[i];
|
|
11353
11353
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -11356,8 +11356,8 @@ function _defineProperties$J(target, props) {
|
|
|
11356
11356
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
11357
11357
|
}
|
|
11358
11358
|
}
|
|
11359
|
-
function _create_class$
|
|
11360
|
-
if (protoProps) _defineProperties$
|
|
11359
|
+
function _create_class$K(Constructor, protoProps, staticProps) {
|
|
11360
|
+
if (protoProps) _defineProperties$K(Constructor.prototype, protoProps);
|
|
11361
11361
|
return Constructor;
|
|
11362
11362
|
}
|
|
11363
11363
|
function _instanceof$l(left, right) {
|
|
@@ -11500,7 +11500,7 @@ var STATUS_RETRYABLE = [
|
|
|
11500
11500
|
* exponential backoff between each attempt.
|
|
11501
11501
|
*/ var AsyncCaller$1 = /*#__PURE__*/ function() {
|
|
11502
11502
|
function AsyncCaller(params) {
|
|
11503
|
-
_class_call_check$
|
|
11503
|
+
_class_call_check$O(this, AsyncCaller);
|
|
11504
11504
|
Object.defineProperty(this, "maxConcurrency", {
|
|
11505
11505
|
enumerable: true,
|
|
11506
11506
|
configurable: true,
|
|
@@ -11542,7 +11542,7 @@ var STATUS_RETRYABLE = [
|
|
|
11542
11542
|
}
|
|
11543
11543
|
this.onFailedResponseHook = params === null || params === void 0 ? void 0 : params.onFailedResponseHook;
|
|
11544
11544
|
}
|
|
11545
|
-
_create_class$
|
|
11545
|
+
_create_class$K(AsyncCaller, [
|
|
11546
11546
|
{
|
|
11547
11547
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
11548
11548
|
key: "call",
|
|
@@ -12037,12 +12037,12 @@ var identifiers$1 = {
|
|
|
12037
12037
|
rcompareIdentifiers: rcompareIdentifiers
|
|
12038
12038
|
};
|
|
12039
12039
|
|
|
12040
|
-
function _class_call_check$
|
|
12040
|
+
function _class_call_check$N(instance, Constructor) {
|
|
12041
12041
|
if (!(instance instanceof Constructor)) {
|
|
12042
12042
|
throw new TypeError("Cannot call a class as a function");
|
|
12043
12043
|
}
|
|
12044
12044
|
}
|
|
12045
|
-
function _defineProperties$
|
|
12045
|
+
function _defineProperties$J(target, props) {
|
|
12046
12046
|
for(var i = 0; i < props.length; i++){
|
|
12047
12047
|
var descriptor = props[i];
|
|
12048
12048
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -12051,8 +12051,8 @@ function _defineProperties$I(target, props) {
|
|
|
12051
12051
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
12052
12052
|
}
|
|
12053
12053
|
}
|
|
12054
|
-
function _create_class$
|
|
12055
|
-
if (protoProps) _defineProperties$
|
|
12054
|
+
function _create_class$J(Constructor, protoProps, staticProps) {
|
|
12055
|
+
if (protoProps) _defineProperties$J(Constructor.prototype, protoProps);
|
|
12056
12056
|
return Constructor;
|
|
12057
12057
|
}
|
|
12058
12058
|
function _instanceof$k(left, right) {
|
|
@@ -12073,7 +12073,7 @@ var parseOptions = parseOptions_1;
|
|
|
12073
12073
|
var compareIdentifiers = identifiers$1.compareIdentifiers;
|
|
12074
12074
|
var SemVer$1 = /*#__PURE__*/ function() {
|
|
12075
12075
|
function SemVer(version, options) {
|
|
12076
|
-
_class_call_check$
|
|
12076
|
+
_class_call_check$N(this, SemVer);
|
|
12077
12077
|
options = parseOptions(options);
|
|
12078
12078
|
if (_instanceof$k(version, SemVer)) {
|
|
12079
12079
|
if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) {
|
|
@@ -12128,7 +12128,7 @@ var SemVer$1 = /*#__PURE__*/ function() {
|
|
|
12128
12128
|
this.build = m[5] ? m[5].split('.') : [];
|
|
12129
12129
|
this.format();
|
|
12130
12130
|
}
|
|
12131
|
-
_create_class$
|
|
12131
|
+
_create_class$J(SemVer, [
|
|
12132
12132
|
{
|
|
12133
12133
|
key: "format",
|
|
12134
12134
|
value: function format() {
|
|
@@ -12486,78 +12486,70 @@ var cmp_1 = cmp;
|
|
|
12486
12486
|
|
|
12487
12487
|
var _require = reExports; _require.safeRe; _require.t;
|
|
12488
12488
|
|
|
12489
|
-
|
|
12490
|
-
|
|
12491
|
-
|
|
12492
|
-
|
|
12493
|
-
if (hasRequiredLrucache) return lrucache;
|
|
12494
|
-
hasRequiredLrucache = 1;
|
|
12495
|
-
function _class_call_check(instance, Constructor) {
|
|
12496
|
-
if (!(instance instanceof Constructor)) {
|
|
12497
|
-
throw new TypeError("Cannot call a class as a function");
|
|
12498
|
-
}
|
|
12499
|
-
}
|
|
12500
|
-
function _defineProperties(target, props) {
|
|
12501
|
-
for(var i = 0; i < props.length; i++){
|
|
12502
|
-
var descriptor = props[i];
|
|
12503
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
12504
|
-
descriptor.configurable = true;
|
|
12505
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
12506
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
12507
|
-
}
|
|
12508
|
-
}
|
|
12509
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
12510
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
12511
|
-
return Constructor;
|
|
12512
|
-
}
|
|
12513
|
-
var LRUCache = /*#__PURE__*/ function() {
|
|
12514
|
-
function LRUCache() {
|
|
12515
|
-
_class_call_check(this, LRUCache);
|
|
12516
|
-
this.max = 1000;
|
|
12517
|
-
this.map = new Map();
|
|
12518
|
-
}
|
|
12519
|
-
_create_class(LRUCache, [
|
|
12520
|
-
{
|
|
12521
|
-
key: "get",
|
|
12522
|
-
value: function get(key) {
|
|
12523
|
-
var value = this.map.get(key);
|
|
12524
|
-
if (value === undefined) {
|
|
12525
|
-
return undefined;
|
|
12526
|
-
} else {
|
|
12527
|
-
// Remove the key from the map and add it to the end
|
|
12528
|
-
this.map.delete(key);
|
|
12529
|
-
this.map.set(key, value);
|
|
12530
|
-
return value;
|
|
12531
|
-
}
|
|
12532
|
-
}
|
|
12533
|
-
},
|
|
12534
|
-
{
|
|
12535
|
-
key: "delete",
|
|
12536
|
-
value: function _delete(key) {
|
|
12537
|
-
return this.map.delete(key);
|
|
12538
|
-
}
|
|
12539
|
-
},
|
|
12540
|
-
{
|
|
12541
|
-
key: "set",
|
|
12542
|
-
value: function set(key, value) {
|
|
12543
|
-
var deleted = this.delete(key);
|
|
12544
|
-
if (!deleted && value !== undefined) {
|
|
12545
|
-
// If cache is full, delete the least recently used item
|
|
12546
|
-
if (this.map.size >= this.max) {
|
|
12547
|
-
var firstKey = this.map.keys().next().value;
|
|
12548
|
-
this.delete(firstKey);
|
|
12549
|
-
}
|
|
12550
|
-
this.map.set(key, value);
|
|
12551
|
-
}
|
|
12552
|
-
return this;
|
|
12553
|
-
}
|
|
12554
|
-
}
|
|
12555
|
-
]);
|
|
12556
|
-
return LRUCache;
|
|
12557
|
-
}();
|
|
12558
|
-
lrucache = LRUCache;
|
|
12559
|
-
return lrucache;
|
|
12489
|
+
function _class_call_check$M(instance, Constructor) {
|
|
12490
|
+
if (!(instance instanceof Constructor)) {
|
|
12491
|
+
throw new TypeError("Cannot call a class as a function");
|
|
12492
|
+
}
|
|
12560
12493
|
}
|
|
12494
|
+
function _defineProperties$I(target, props) {
|
|
12495
|
+
for(var i = 0; i < props.length; i++){
|
|
12496
|
+
var descriptor = props[i];
|
|
12497
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
12498
|
+
descriptor.configurable = true;
|
|
12499
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
12500
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
12501
|
+
}
|
|
12502
|
+
}
|
|
12503
|
+
function _create_class$I(Constructor, protoProps, staticProps) {
|
|
12504
|
+
if (protoProps) _defineProperties$I(Constructor.prototype, protoProps);
|
|
12505
|
+
return Constructor;
|
|
12506
|
+
}
|
|
12507
|
+
var LRUCache = /*#__PURE__*/ function() {
|
|
12508
|
+
function LRUCache() {
|
|
12509
|
+
_class_call_check$M(this, LRUCache);
|
|
12510
|
+
this.max = 1000;
|
|
12511
|
+
this.map = new Map();
|
|
12512
|
+
}
|
|
12513
|
+
_create_class$I(LRUCache, [
|
|
12514
|
+
{
|
|
12515
|
+
key: "get",
|
|
12516
|
+
value: function get(key) {
|
|
12517
|
+
var value = this.map.get(key);
|
|
12518
|
+
if (value === undefined) {
|
|
12519
|
+
return undefined;
|
|
12520
|
+
} else {
|
|
12521
|
+
// Remove the key from the map and add it to the end
|
|
12522
|
+
this.map.delete(key);
|
|
12523
|
+
this.map.set(key, value);
|
|
12524
|
+
return value;
|
|
12525
|
+
}
|
|
12526
|
+
}
|
|
12527
|
+
},
|
|
12528
|
+
{
|
|
12529
|
+
key: "delete",
|
|
12530
|
+
value: function _delete(key) {
|
|
12531
|
+
return this.map.delete(key);
|
|
12532
|
+
}
|
|
12533
|
+
},
|
|
12534
|
+
{
|
|
12535
|
+
key: "set",
|
|
12536
|
+
value: function set(key, value) {
|
|
12537
|
+
var deleted = this.delete(key);
|
|
12538
|
+
if (!deleted && value !== undefined) {
|
|
12539
|
+
// If cache is full, delete the least recently used item
|
|
12540
|
+
if (this.map.size >= this.max) {
|
|
12541
|
+
var firstKey = this.map.keys().next().value;
|
|
12542
|
+
this.delete(firstKey);
|
|
12543
|
+
}
|
|
12544
|
+
this.map.set(key, value);
|
|
12545
|
+
}
|
|
12546
|
+
return this;
|
|
12547
|
+
}
|
|
12548
|
+
}
|
|
12549
|
+
]);
|
|
12550
|
+
return LRUCache;
|
|
12551
|
+
}();
|
|
12552
|
+
var lrucache = LRUCache;
|
|
12561
12553
|
|
|
12562
12554
|
var range;
|
|
12563
12555
|
var hasRequiredRange;
|
|
@@ -12861,7 +12853,7 @@ function requireRange () {
|
|
|
12861
12853
|
return Range;
|
|
12862
12854
|
}();
|
|
12863
12855
|
range = Range;
|
|
12864
|
-
var LRU =
|
|
12856
|
+
var LRU = lrucache;
|
|
12865
12857
|
var cache = new LRU();
|
|
12866
12858
|
var parseOptions = parseOptions_1;
|
|
12867
12859
|
var Comparator = requireComparator();
|