@digipair/skill-openai 0.119.8 → 0.120.0
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$O(arr) {
|
|
|
341
341
|
function _array_without_holes$1j(arr) {
|
|
342
342
|
if (Array.isArray(arr)) return _array_like_to_array$1H(arr);
|
|
343
343
|
}
|
|
344
|
-
function _class_call_check$
|
|
344
|
+
function _class_call_check$2p(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$23(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$22(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$23(Constructor, protoProps, staticProps) {
|
|
359
|
+
if (protoProps) _defineProperties$23(Constructor.prototype, protoProps);
|
|
360
|
+
if (staticProps) _defineProperties$23(Constructor, staticProps);
|
|
361
361
|
return Constructor;
|
|
362
362
|
}
|
|
363
363
|
function _define_property$2X(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$2p(this, Serializable);
|
|
535
535
|
_define_property$2X(this, "lc_serializable", false);
|
|
536
536
|
_define_property$2X(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$23(Serializable, [
|
|
545
545
|
{
|
|
546
546
|
key: "lc_id",
|
|
547
547
|
get: /**
|
|
@@ -3000,12 +3000,12 @@ function _assert_this_initialized$1_(self) {
|
|
|
3000
3000
|
}
|
|
3001
3001
|
return self;
|
|
3002
3002
|
}
|
|
3003
|
-
function _class_call_check$
|
|
3003
|
+
function _class_call_check$2o(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$22(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$21(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$22(Constructor, protoProps, staticProps) {
|
|
3018
|
+
if (protoProps) _defineProperties$22(Constructor.prototype, protoProps);
|
|
3019
|
+
if (staticProps) _defineProperties$22(Constructor, staticProps);
|
|
3020
3020
|
return Constructor;
|
|
3021
3021
|
}
|
|
3022
3022
|
function _define_property$2U(obj, key, value) {
|
|
@@ -3272,7 +3272,7 @@ function stringifyWithDepthLimit(obj, depthLimit) {
|
|
|
3272
3272
|
_inherits$1_(_class, Serializable);
|
|
3273
3273
|
var _super = _create_super$1_(_class);
|
|
3274
3274
|
function _class(arg) {
|
|
3275
|
-
_class_call_check$
|
|
3275
|
+
_class_call_check$2o(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$22(_class, [
|
|
3313
3313
|
{
|
|
3314
3314
|
key: "lc_aliases",
|
|
3315
3315
|
get: function get() {
|
|
@@ -3545,10 +3545,10 @@ function _mergeObj(left, right) {
|
|
|
3545
3545
|
_inherits$1_(BaseMessageChunk, BaseMessage);
|
|
3546
3546
|
var _super = _create_super$1_(BaseMessageChunk);
|
|
3547
3547
|
function BaseMessageChunk() {
|
|
3548
|
-
_class_call_check$
|
|
3548
|
+
_class_call_check$2o(this, BaseMessageChunk);
|
|
3549
3549
|
return _super.apply(this, arguments);
|
|
3550
3550
|
}
|
|
3551
|
-
_create_class$
|
|
3551
|
+
_create_class$22(BaseMessageChunk, null, [
|
|
3552
3552
|
{
|
|
3553
3553
|
key: "isInstance",
|
|
3554
3554
|
value: function isInstance(obj) {
|
|
@@ -3650,12 +3650,12 @@ function _assert_this_initialized$1Z(self) {
|
|
|
3650
3650
|
}
|
|
3651
3651
|
return self;
|
|
3652
3652
|
}
|
|
3653
|
-
function _class_call_check$
|
|
3653
|
+
function _class_call_check$2n(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$21(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$20(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$21(Constructor, protoProps, staticProps) {
|
|
3668
|
+
if (protoProps) _defineProperties$21(Constructor.prototype, protoProps);
|
|
3669
|
+
if (staticProps) _defineProperties$21(Constructor, staticProps);
|
|
3670
3670
|
return Constructor;
|
|
3671
3671
|
}
|
|
3672
3672
|
function _define_property$2S(obj, key, value) {
|
|
@@ -3830,7 +3830,7 @@ function isDirectToolOutput(x) {
|
|
|
3830
3830
|
_inherits$1Z(ToolMessage, BaseMessage);
|
|
3831
3831
|
var _super = _create_super$1Z(ToolMessage);
|
|
3832
3832
|
function ToolMessage(fields, tool_call_id, name) {
|
|
3833
|
-
_class_call_check$
|
|
3833
|
+
_class_call_check$2n(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$21(ToolMessage, [
|
|
3863
3863
|
{
|
|
3864
3864
|
key: "lc_aliases",
|
|
3865
3865
|
get: function get() {
|
|
@@ -3900,7 +3900,7 @@ function isDirectToolOutput(x) {
|
|
|
3900
3900
|
_inherits$1Z(ToolMessageChunk, BaseMessageChunk);
|
|
3901
3901
|
var _super = _create_super$1Z(ToolMessageChunk);
|
|
3902
3902
|
function ToolMessageChunk(fields) {
|
|
3903
|
-
_class_call_check$
|
|
3903
|
+
_class_call_check$2n(this, ToolMessageChunk);
|
|
3904
3904
|
var _this;
|
|
3905
3905
|
_this = _super.call(this, fields);
|
|
3906
3906
|
_define_property$2S(_assert_this_initialized$1Z(_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$21(ToolMessageChunk, [
|
|
3925
3925
|
{
|
|
3926
3926
|
key: "concat",
|
|
3927
3927
|
value: function concat(chunk) {
|
|
@@ -5328,12 +5328,12 @@ function _assert_this_initialized$1Y(self) {
|
|
|
5328
5328
|
}
|
|
5329
5329
|
return self;
|
|
5330
5330
|
}
|
|
5331
|
-
function _class_call_check$
|
|
5331
|
+
function _class_call_check$2m(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$20(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$1$(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$20(Constructor, protoProps, staticProps) {
|
|
5346
|
+
if (protoProps) _defineProperties$20(Constructor.prototype, protoProps);
|
|
5347
|
+
if (staticProps) _defineProperties$20(Constructor, staticProps);
|
|
5348
5348
|
return Constructor;
|
|
5349
5349
|
}
|
|
5350
5350
|
function _define_property$2Q(obj, key, value) {
|
|
@@ -5529,7 +5529,7 @@ var AIMessage = /*#__PURE__*/ function(BaseMessage) {
|
|
|
5529
5529
|
_inherits$1Y(AIMessage, BaseMessage);
|
|
5530
5530
|
var _super = _create_super$1Y(AIMessage);
|
|
5531
5531
|
function AIMessage(fields) {
|
|
5532
|
-
_class_call_check$
|
|
5532
|
+
_class_call_check$2m(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$20(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$1Y(AIMessageChunk, BaseMessageChunk);
|
|
5692
5692
|
var _super = _create_super$1Y(AIMessageChunk);
|
|
5693
5693
|
function AIMessageChunk(fields) {
|
|
5694
|
-
_class_call_check$
|
|
5694
|
+
_class_call_check$2m(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$20(AIMessageChunk, [
|
|
5797
5797
|
{
|
|
5798
5798
|
key: "lc_aliases",
|
|
5799
5799
|
get: function get() {
|
|
@@ -5904,12 +5904,12 @@ function _assert_this_initialized$1X(self) {
|
|
|
5904
5904
|
}
|
|
5905
5905
|
return self;
|
|
5906
5906
|
}
|
|
5907
|
-
function _class_call_check$
|
|
5907
|
+
function _class_call_check$2l(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$1$(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$1_(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$1$(Constructor, protoProps, staticProps) {
|
|
5922
|
+
if (protoProps) _defineProperties$1$(Constructor.prototype, protoProps);
|
|
5923
|
+
if (staticProps) _defineProperties$1$(Constructor, staticProps);
|
|
5924
5924
|
return Constructor;
|
|
5925
5925
|
}
|
|
5926
5926
|
function _define_property$2P(obj, key, value) {
|
|
@@ -6060,7 +6060,7 @@ function _create_super$1X(Derived) {
|
|
|
6060
6060
|
_inherits$1X(ChatMessage, BaseMessage);
|
|
6061
6061
|
var _super = _create_super$1X(ChatMessage);
|
|
6062
6062
|
function ChatMessage(fields, role) {
|
|
6063
|
-
_class_call_check$
|
|
6063
|
+
_class_call_check$2l(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$1X(Derived) {
|
|
|
6072
6072
|
_this.role = fields.role;
|
|
6073
6073
|
return _this;
|
|
6074
6074
|
}
|
|
6075
|
-
_create_class$
|
|
6075
|
+
_create_class$1$(ChatMessage, [
|
|
6076
6076
|
{
|
|
6077
6077
|
key: "_printableFields",
|
|
6078
6078
|
get: function get() {
|
|
@@ -6110,7 +6110,7 @@ function _create_super$1X(Derived) {
|
|
|
6110
6110
|
_inherits$1X(ChatMessageChunk, BaseMessageChunk);
|
|
6111
6111
|
var _super = _create_super$1X(ChatMessageChunk);
|
|
6112
6112
|
function ChatMessageChunk(fields, role) {
|
|
6113
|
-
_class_call_check$
|
|
6113
|
+
_class_call_check$2l(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$1X(Derived) {
|
|
|
6122
6122
|
_this.role = fields.role;
|
|
6123
6123
|
return _this;
|
|
6124
6124
|
}
|
|
6125
|
-
_create_class$
|
|
6125
|
+
_create_class$1$(ChatMessageChunk, [
|
|
6126
6126
|
{
|
|
6127
6127
|
key: "concat",
|
|
6128
6128
|
value: function concat(chunk) {
|
|
@@ -6178,12 +6178,12 @@ function _assert_this_initialized$1W(self) {
|
|
|
6178
6178
|
}
|
|
6179
6179
|
return self;
|
|
6180
6180
|
}
|
|
6181
|
-
function _class_call_check$
|
|
6181
|
+
function _class_call_check$2k(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$1_(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$1Z(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$1_(Constructor, protoProps, staticProps) {
|
|
6196
|
+
if (protoProps) _defineProperties$1_(Constructor.prototype, protoProps);
|
|
6197
|
+
if (staticProps) _defineProperties$1_(Constructor, staticProps);
|
|
6198
6198
|
return Constructor;
|
|
6199
6199
|
}
|
|
6200
6200
|
function _define_property$2O(obj, key, value) {
|
|
@@ -6277,7 +6277,7 @@ function _create_super$1W(Derived) {
|
|
|
6277
6277
|
_inherits$1W(FunctionMessage, BaseMessage);
|
|
6278
6278
|
var _super = _create_super$1W(FunctionMessage);
|
|
6279
6279
|
function FunctionMessage(fields) {
|
|
6280
|
-
_class_call_check$
|
|
6280
|
+
_class_call_check$2k(this, FunctionMessage);
|
|
6281
6281
|
var _this;
|
|
6282
6282
|
_this = _super.call(this, fields);
|
|
6283
6283
|
_define_property$2O(_assert_this_initialized$1W(_this), "type", "function");
|
|
@@ -6285,7 +6285,7 @@ function _create_super$1W(Derived) {
|
|
|
6285
6285
|
_this.name = fields.name;
|
|
6286
6286
|
return _this;
|
|
6287
6287
|
}
|
|
6288
|
-
_create_class$
|
|
6288
|
+
_create_class$1_(FunctionMessage, null, [
|
|
6289
6289
|
{
|
|
6290
6290
|
key: "lc_name",
|
|
6291
6291
|
value: function lc_name() {
|
|
@@ -6302,13 +6302,13 @@ function _create_super$1W(Derived) {
|
|
|
6302
6302
|
_inherits$1W(FunctionMessageChunk, BaseMessageChunk);
|
|
6303
6303
|
var _super = _create_super$1W(FunctionMessageChunk);
|
|
6304
6304
|
function FunctionMessageChunk() {
|
|
6305
|
-
_class_call_check$
|
|
6305
|
+
_class_call_check$2k(this, FunctionMessageChunk);
|
|
6306
6306
|
var _this;
|
|
6307
6307
|
_this = _super.apply(this, arguments);
|
|
6308
6308
|
_define_property$2O(_assert_this_initialized$1W(_this), "type", "function");
|
|
6309
6309
|
return _this;
|
|
6310
6310
|
}
|
|
6311
|
-
_create_class$
|
|
6311
|
+
_create_class$1_(FunctionMessageChunk, [
|
|
6312
6312
|
{
|
|
6313
6313
|
key: "concat",
|
|
6314
6314
|
value: function concat(chunk) {
|
|
@@ -6346,12 +6346,12 @@ function _assert_this_initialized$1V(self) {
|
|
|
6346
6346
|
}
|
|
6347
6347
|
return self;
|
|
6348
6348
|
}
|
|
6349
|
-
function _class_call_check$
|
|
6349
|
+
function _class_call_check$2j(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$1Z(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$1Y(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$1Z(Constructor, protoProps, staticProps) {
|
|
6364
|
+
if (protoProps) _defineProperties$1Z(Constructor.prototype, protoProps);
|
|
6365
|
+
if (staticProps) _defineProperties$1Z(Constructor, staticProps);
|
|
6366
6366
|
return Constructor;
|
|
6367
6367
|
}
|
|
6368
6368
|
function _define_property$2N(obj, key, value) {
|
|
@@ -6468,13 +6468,13 @@ function _create_super$1V(Derived) {
|
|
|
6468
6468
|
_inherits$1V(HumanMessage, BaseMessage);
|
|
6469
6469
|
var _super = _create_super$1V(HumanMessage);
|
|
6470
6470
|
function HumanMessage(fields) {
|
|
6471
|
-
_class_call_check$
|
|
6471
|
+
_class_call_check$2j(this, HumanMessage);
|
|
6472
6472
|
var _this;
|
|
6473
6473
|
_this = _super.call(this, fields);
|
|
6474
6474
|
_define_property$2N(_assert_this_initialized$1V(_this), "type", "human");
|
|
6475
6475
|
return _this;
|
|
6476
6476
|
}
|
|
6477
|
-
_create_class$
|
|
6477
|
+
_create_class$1Z(HumanMessage, null, [
|
|
6478
6478
|
{
|
|
6479
6479
|
key: "lc_name",
|
|
6480
6480
|
value: function lc_name() {
|
|
@@ -6497,13 +6497,13 @@ function _create_super$1V(Derived) {
|
|
|
6497
6497
|
_inherits$1V(HumanMessageChunk, BaseMessageChunk);
|
|
6498
6498
|
var _super = _create_super$1V(HumanMessageChunk);
|
|
6499
6499
|
function HumanMessageChunk(fields) {
|
|
6500
|
-
_class_call_check$
|
|
6500
|
+
_class_call_check$2j(this, HumanMessageChunk);
|
|
6501
6501
|
var _this;
|
|
6502
6502
|
_this = _super.call(this, fields);
|
|
6503
6503
|
_define_property$2N(_assert_this_initialized$1V(_this), "type", "human");
|
|
6504
6504
|
return _this;
|
|
6505
6505
|
}
|
|
6506
|
-
_create_class$
|
|
6506
|
+
_create_class$1Z(HumanMessageChunk, [
|
|
6507
6507
|
{
|
|
6508
6508
|
key: "concat",
|
|
6509
6509
|
value: function concat(chunk) {
|
|
@@ -6550,12 +6550,12 @@ function _assert_this_initialized$1U(self) {
|
|
|
6550
6550
|
}
|
|
6551
6551
|
return self;
|
|
6552
6552
|
}
|
|
6553
|
-
function _class_call_check$
|
|
6553
|
+
function _class_call_check$2i(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$1Y(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$1X(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$1Y(Constructor, protoProps, staticProps) {
|
|
6568
|
+
if (protoProps) _defineProperties$1Y(Constructor.prototype, protoProps);
|
|
6569
|
+
if (staticProps) _defineProperties$1Y(Constructor, staticProps);
|
|
6570
6570
|
return Constructor;
|
|
6571
6571
|
}
|
|
6572
6572
|
function _define_property$2M(obj, key, value) {
|
|
@@ -6672,13 +6672,13 @@ function _create_super$1U(Derived) {
|
|
|
6672
6672
|
_inherits$1U(SystemMessage, BaseMessage);
|
|
6673
6673
|
var _super = _create_super$1U(SystemMessage);
|
|
6674
6674
|
function SystemMessage(fields) {
|
|
6675
|
-
_class_call_check$
|
|
6675
|
+
_class_call_check$2i(this, SystemMessage);
|
|
6676
6676
|
var _this;
|
|
6677
6677
|
_this = _super.call(this, fields);
|
|
6678
6678
|
_define_property$2M(_assert_this_initialized$1U(_this), "type", "system");
|
|
6679
6679
|
return _this;
|
|
6680
6680
|
}
|
|
6681
|
-
_create_class$
|
|
6681
|
+
_create_class$1Y(SystemMessage, null, [
|
|
6682
6682
|
{
|
|
6683
6683
|
key: "lc_name",
|
|
6684
6684
|
value: function lc_name() {
|
|
@@ -6701,13 +6701,13 @@ function _create_super$1U(Derived) {
|
|
|
6701
6701
|
_inherits$1U(SystemMessageChunk, BaseMessageChunk);
|
|
6702
6702
|
var _super = _create_super$1U(SystemMessageChunk);
|
|
6703
6703
|
function SystemMessageChunk(fields) {
|
|
6704
|
-
_class_call_check$
|
|
6704
|
+
_class_call_check$2i(this, SystemMessageChunk);
|
|
6705
6705
|
var _this;
|
|
6706
6706
|
_this = _super.call(this, fields);
|
|
6707
6707
|
_define_property$2M(_assert_this_initialized$1U(_this), "type", "system");
|
|
6708
6708
|
return _this;
|
|
6709
6709
|
}
|
|
6710
|
-
_create_class$
|
|
6710
|
+
_create_class$1Y(SystemMessageChunk, [
|
|
6711
6711
|
{
|
|
6712
6712
|
key: "concat",
|
|
6713
6713
|
value: function concat(chunk) {
|
|
@@ -6754,12 +6754,12 @@ function _assert_this_initialized$1T(self) {
|
|
|
6754
6754
|
}
|
|
6755
6755
|
return self;
|
|
6756
6756
|
}
|
|
6757
|
-
function _class_call_check$
|
|
6757
|
+
function _class_call_check$2h(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$1X(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$1W(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$1X(Constructor, protoProps, staticProps) {
|
|
6772
|
+
if (protoProps) _defineProperties$1X(Constructor.prototype, protoProps);
|
|
6773
|
+
if (staticProps) _defineProperties$1X(Constructor, staticProps);
|
|
6774
6774
|
return Constructor;
|
|
6775
6775
|
}
|
|
6776
6776
|
function _define_property$2L(obj, key, value) {
|
|
@@ -6910,7 +6910,7 @@ function _create_super$1T(Derived) {
|
|
|
6910
6910
|
_inherits$1T(RemoveMessage, BaseMessage);
|
|
6911
6911
|
var _super = _create_super$1T(RemoveMessage);
|
|
6912
6912
|
function RemoveMessage(fields) {
|
|
6913
|
-
_class_call_check$
|
|
6913
|
+
_class_call_check$2h(this, RemoveMessage);
|
|
6914
6914
|
var _this;
|
|
6915
6915
|
_this = _super.call(this, _object_spread_props$1K(_object_spread$2p({}, fields), {
|
|
6916
6916
|
content: []
|
|
@@ -6922,7 +6922,7 @@ function _create_super$1T(Derived) {
|
|
|
6922
6922
|
_this.id = fields.id;
|
|
6923
6923
|
return _this;
|
|
6924
6924
|
}
|
|
6925
|
-
_create_class$
|
|
6925
|
+
_create_class$1X(RemoveMessage, [
|
|
6926
6926
|
{
|
|
6927
6927
|
key: "_printableFields",
|
|
6928
6928
|
get: function get() {
|
|
@@ -6956,7 +6956,7 @@ function _assert_this_initialized$1S(self) {
|
|
|
6956
6956
|
}
|
|
6957
6957
|
return self;
|
|
6958
6958
|
}
|
|
6959
|
-
function _class_call_check$
|
|
6959
|
+
function _class_call_check$2g(instance, Constructor) {
|
|
6960
6960
|
if (!(instance instanceof Constructor)) {
|
|
6961
6961
|
throw new TypeError("Cannot call a class as a function");
|
|
6962
6962
|
}
|
|
@@ -7094,7 +7094,7 @@ function _configHasToolCallId(config) {
|
|
|
7094
7094
|
_inherits$1S(ToolInputParsingException, Error1);
|
|
7095
7095
|
var _super = _create_super$1S(ToolInputParsingException);
|
|
7096
7096
|
function ToolInputParsingException(message, output) {
|
|
7097
|
-
_class_call_check$
|
|
7097
|
+
_class_call_check$2g(this, ToolInputParsingException);
|
|
7098
7098
|
var _this;
|
|
7099
7099
|
_this = _super.call(this, message);
|
|
7100
7100
|
_define_property$2K(_assert_this_initialized$1S(_this), "output", void 0);
|
|
@@ -7788,12 +7788,12 @@ function _assert_this_initialized$1R(self) {
|
|
|
7788
7788
|
}
|
|
7789
7789
|
return self;
|
|
7790
7790
|
}
|
|
7791
|
-
function _class_call_check$
|
|
7791
|
+
function _class_call_check$2f(instance, Constructor) {
|
|
7792
7792
|
if (!(instance instanceof Constructor)) {
|
|
7793
7793
|
throw new TypeError("Cannot call a class as a function");
|
|
7794
7794
|
}
|
|
7795
7795
|
}
|
|
7796
|
-
function _defineProperties$
|
|
7796
|
+
function _defineProperties$1W(target, props) {
|
|
7797
7797
|
for(var i = 0; i < props.length; i++){
|
|
7798
7798
|
var descriptor = props[i];
|
|
7799
7799
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -7802,9 +7802,9 @@ function _defineProperties$1V(target, props) {
|
|
|
7802
7802
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
7803
7803
|
}
|
|
7804
7804
|
}
|
|
7805
|
-
function _create_class$
|
|
7806
|
-
if (protoProps) _defineProperties$
|
|
7807
|
-
if (staticProps) _defineProperties$
|
|
7805
|
+
function _create_class$1W(Constructor, protoProps, staticProps) {
|
|
7806
|
+
if (protoProps) _defineProperties$1W(Constructor.prototype, protoProps);
|
|
7807
|
+
if (staticProps) _defineProperties$1W(Constructor, staticProps);
|
|
7808
7808
|
return Constructor;
|
|
7809
7809
|
}
|
|
7810
7810
|
function _define_property$2I(obj, key, value) {
|
|
@@ -7915,7 +7915,7 @@ __export(base_exports$3, {
|
|
|
7915
7915
|
* overridden in derived classes to handle various events during the
|
|
7916
7916
|
* execution of a LangChain application.
|
|
7917
7917
|
*/ var BaseCallbackHandlerMethodsClass = function BaseCallbackHandlerMethodsClass() {
|
|
7918
|
-
_class_call_check$
|
|
7918
|
+
_class_call_check$2f(this, BaseCallbackHandlerMethodsClass);
|
|
7919
7919
|
};
|
|
7920
7920
|
function callbackHandlerPrefersStreaming(x) {
|
|
7921
7921
|
return "lc_prefer_streaming" in x && x.lc_prefer_streaming;
|
|
@@ -7929,7 +7929,7 @@ function callbackHandlerPrefersStreaming(x) {
|
|
|
7929
7929
|
_inherits$1R(BaseCallbackHandler1, BaseCallbackHandlerMethodsClass);
|
|
7930
7930
|
var _super = _create_super$1R(BaseCallbackHandler1);
|
|
7931
7931
|
function BaseCallbackHandler1(input) {
|
|
7932
|
-
_class_call_check$
|
|
7932
|
+
_class_call_check$2f(this, BaseCallbackHandler1);
|
|
7933
7933
|
var _this;
|
|
7934
7934
|
_this = _super.call(this);
|
|
7935
7935
|
_define_property$2I(_assert_this_initialized$1R(_this), "lc_serializable", false);
|
|
@@ -7960,7 +7960,7 @@ function callbackHandlerPrefersStreaming(x) {
|
|
|
7960
7960
|
}
|
|
7961
7961
|
return _this;
|
|
7962
7962
|
}
|
|
7963
|
-
_create_class$
|
|
7963
|
+
_create_class$1W(BaseCallbackHandler1, [
|
|
7964
7964
|
{
|
|
7965
7965
|
key: "lc_namespace",
|
|
7966
7966
|
get: function get() {
|
|
@@ -8042,7 +8042,7 @@ function callbackHandlerPrefersStreaming(x) {
|
|
|
8042
8042
|
_inherits$1R(Handler, BaseCallbackHandler);
|
|
8043
8043
|
var _super = _create_super$1R(Handler);
|
|
8044
8044
|
function Handler() {
|
|
8045
|
-
_class_call_check$
|
|
8045
|
+
_class_call_check$2f(this, Handler);
|
|
8046
8046
|
var _this;
|
|
8047
8047
|
_this = _super.call(this);
|
|
8048
8048
|
_define_property$2I(_assert_this_initialized$1R(_this), "name", v4());
|
|
@@ -8642,12 +8642,12 @@ function getOtelEnabled() {
|
|
|
8642
8642
|
}
|
|
8643
8643
|
|
|
8644
8644
|
// Should not import any OTEL packages to avoid pulling in optional deps.
|
|
8645
|
-
function _class_call_check$
|
|
8645
|
+
function _class_call_check$2e(instance, Constructor) {
|
|
8646
8646
|
if (!(instance instanceof Constructor)) {
|
|
8647
8647
|
throw new TypeError("Cannot call a class as a function");
|
|
8648
8648
|
}
|
|
8649
8649
|
}
|
|
8650
|
-
function _defineProperties$
|
|
8650
|
+
function _defineProperties$1V(target, props) {
|
|
8651
8651
|
for(var i = 0; i < props.length; i++){
|
|
8652
8652
|
var descriptor = props[i];
|
|
8653
8653
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -8656,13 +8656,13 @@ function _defineProperties$1U(target, props) {
|
|
|
8656
8656
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
8657
8657
|
}
|
|
8658
8658
|
}
|
|
8659
|
-
function _create_class$
|
|
8660
|
-
if (protoProps) _defineProperties$
|
|
8659
|
+
function _create_class$1V(Constructor, protoProps, staticProps) {
|
|
8660
|
+
if (protoProps) _defineProperties$1V(Constructor.prototype, protoProps);
|
|
8661
8661
|
return Constructor;
|
|
8662
8662
|
}
|
|
8663
8663
|
var MockTracer = /*#__PURE__*/ function() {
|
|
8664
8664
|
function MockTracer() {
|
|
8665
|
-
_class_call_check$
|
|
8665
|
+
_class_call_check$2e(this, MockTracer);
|
|
8666
8666
|
Object.defineProperty(this, "hasWarned", {
|
|
8667
8667
|
enumerable: true,
|
|
8668
8668
|
configurable: true,
|
|
@@ -8670,7 +8670,7 @@ var MockTracer = /*#__PURE__*/ function() {
|
|
|
8670
8670
|
value: false
|
|
8671
8671
|
});
|
|
8672
8672
|
}
|
|
8673
|
-
_create_class$
|
|
8673
|
+
_create_class$1V(MockTracer, [
|
|
8674
8674
|
{
|
|
8675
8675
|
key: "startActiveSpan",
|
|
8676
8676
|
value: function startActiveSpan(_name) {
|
|
@@ -8704,7 +8704,7 @@ var MockTracer = /*#__PURE__*/ function() {
|
|
|
8704
8704
|
}();
|
|
8705
8705
|
var MockOTELTrace = /*#__PURE__*/ function() {
|
|
8706
8706
|
function MockOTELTrace() {
|
|
8707
|
-
_class_call_check$
|
|
8707
|
+
_class_call_check$2e(this, MockOTELTrace);
|
|
8708
8708
|
Object.defineProperty(this, "mockTracer", {
|
|
8709
8709
|
enumerable: true,
|
|
8710
8710
|
configurable: true,
|
|
@@ -8712,7 +8712,7 @@ var MockOTELTrace = /*#__PURE__*/ function() {
|
|
|
8712
8712
|
value: new MockTracer()
|
|
8713
8713
|
});
|
|
8714
8714
|
}
|
|
8715
|
-
_create_class$
|
|
8715
|
+
_create_class$1V(MockOTELTrace, [
|
|
8716
8716
|
{
|
|
8717
8717
|
key: "getTracer",
|
|
8718
8718
|
value: function getTracer(_name, _version) {
|
|
@@ -8760,9 +8760,9 @@ var MockOTELTrace = /*#__PURE__*/ function() {
|
|
|
8760
8760
|
}();
|
|
8761
8761
|
var MockOTELContext = /*#__PURE__*/ function() {
|
|
8762
8762
|
function MockOTELContext() {
|
|
8763
|
-
_class_call_check$
|
|
8763
|
+
_class_call_check$2e(this, MockOTELContext);
|
|
8764
8764
|
}
|
|
8765
|
-
_create_class$
|
|
8765
|
+
_create_class$1V(MockOTELContext, [
|
|
8766
8766
|
{
|
|
8767
8767
|
key: "active",
|
|
8768
8768
|
value: function active() {
|
|
@@ -8785,9 +8785,9 @@ var mockOTELTrace = new MockOTELTrace();
|
|
|
8785
8785
|
var mockOTELContext = new MockOTELContext();
|
|
8786
8786
|
var OTELProvider = /*#__PURE__*/ function() {
|
|
8787
8787
|
function OTELProvider() {
|
|
8788
|
-
_class_call_check$
|
|
8788
|
+
_class_call_check$2e(this, OTELProvider);
|
|
8789
8789
|
}
|
|
8790
|
-
_create_class$
|
|
8790
|
+
_create_class$1V(OTELProvider, [
|
|
8791
8791
|
{
|
|
8792
8792
|
key: "getTraceInstance",
|
|
8793
8793
|
value: function getTraceInstance() {
|
|
@@ -8864,12 +8864,12 @@ function _array_like_to_array$1x(arr, len) {
|
|
|
8864
8864
|
function _array_with_holes$H(arr) {
|
|
8865
8865
|
if (Array.isArray(arr)) return arr;
|
|
8866
8866
|
}
|
|
8867
|
-
function _class_call_check$
|
|
8867
|
+
function _class_call_check$2d(instance, Constructor) {
|
|
8868
8868
|
if (!(instance instanceof Constructor)) {
|
|
8869
8869
|
throw new TypeError("Cannot call a class as a function");
|
|
8870
8870
|
}
|
|
8871
8871
|
}
|
|
8872
|
-
function _defineProperties$
|
|
8872
|
+
function _defineProperties$1U(target, props) {
|
|
8873
8873
|
for(var i = 0; i < props.length; i++){
|
|
8874
8874
|
var descriptor = props[i];
|
|
8875
8875
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -8878,8 +8878,8 @@ function _defineProperties$1T(target, props) {
|
|
|
8878
8878
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
8879
8879
|
}
|
|
8880
8880
|
}
|
|
8881
|
-
function _create_class$
|
|
8882
|
-
if (protoProps) _defineProperties$
|
|
8881
|
+
function _create_class$1U(Constructor, protoProps, staticProps) {
|
|
8882
|
+
if (protoProps) _defineProperties$1U(Constructor.prototype, protoProps);
|
|
8883
8883
|
return Constructor;
|
|
8884
8884
|
}
|
|
8885
8885
|
function _iterable_to_array_limit$G(arr, i) {
|
|
@@ -8936,7 +8936,7 @@ function getOperationName(runType) {
|
|
|
8936
8936
|
}
|
|
8937
8937
|
var LangSmithToOTELTranslator = /*#__PURE__*/ function() {
|
|
8938
8938
|
function LangSmithToOTELTranslator() {
|
|
8939
|
-
_class_call_check$
|
|
8939
|
+
_class_call_check$2d(this, LangSmithToOTELTranslator);
|
|
8940
8940
|
Object.defineProperty(this, "spans", {
|
|
8941
8941
|
enumerable: true,
|
|
8942
8942
|
configurable: true,
|
|
@@ -8944,7 +8944,7 @@ var LangSmithToOTELTranslator = /*#__PURE__*/ function() {
|
|
|
8944
8944
|
value: new Map()
|
|
8945
8945
|
});
|
|
8946
8946
|
}
|
|
8947
|
-
_create_class$
|
|
8947
|
+
_create_class$1U(LangSmithToOTELTranslator, [
|
|
8948
8948
|
{
|
|
8949
8949
|
key: "exportBatch",
|
|
8950
8950
|
value: function exportBatch(operations, otelContextMap) {
|
|
@@ -9683,7 +9683,7 @@ function _async_to_generator$15(fn) {
|
|
|
9683
9683
|
});
|
|
9684
9684
|
};
|
|
9685
9685
|
}
|
|
9686
|
-
function _class_call_check$
|
|
9686
|
+
function _class_call_check$2c(instance, Constructor) {
|
|
9687
9687
|
if (!(instance instanceof Constructor)) {
|
|
9688
9688
|
throw new TypeError("Cannot call a class as a function");
|
|
9689
9689
|
}
|
|
@@ -9935,7 +9935,7 @@ var AbortError = /*#__PURE__*/ function(Error1) {
|
|
|
9935
9935
|
_inherits$1Q(AbortError, Error1);
|
|
9936
9936
|
var _super = _create_super$1Q(AbortError);
|
|
9937
9937
|
function AbortError(message) {
|
|
9938
|
-
_class_call_check$
|
|
9938
|
+
_class_call_check$2c(this, AbortError);
|
|
9939
9939
|
var _this;
|
|
9940
9940
|
_this = _super.call(this);
|
|
9941
9941
|
if (_instanceof$C(message, Error)) {
|
|
@@ -10391,7 +10391,7 @@ function _assert_this_initialized$1P(self) {
|
|
|
10391
10391
|
}
|
|
10392
10392
|
return self;
|
|
10393
10393
|
}
|
|
10394
|
-
function _class_call_check$
|
|
10394
|
+
function _class_call_check$2b(instance, Constructor) {
|
|
10395
10395
|
if (!(instance instanceof Constructor)) {
|
|
10396
10396
|
throw new TypeError("Cannot call a class as a function");
|
|
10397
10397
|
}
|
|
@@ -10514,7 +10514,7 @@ var TimeoutError = /*#__PURE__*/ function(Error1) {
|
|
|
10514
10514
|
_inherits$1P(TimeoutError, Error1);
|
|
10515
10515
|
var _super = _create_super$1P(TimeoutError);
|
|
10516
10516
|
function TimeoutError(message) {
|
|
10517
|
-
_class_call_check$
|
|
10517
|
+
_class_call_check$2b(this, TimeoutError);
|
|
10518
10518
|
var _this;
|
|
10519
10519
|
_this = _super.call(this, message);
|
|
10520
10520
|
_this.name = 'TimeoutError';
|
|
@@ -10587,12 +10587,12 @@ function lowerBound(array, value, comparator) {
|
|
|
10587
10587
|
}
|
|
10588
10588
|
lowerBound$1.default = lowerBound;
|
|
10589
10589
|
|
|
10590
|
-
function _class_call_check$
|
|
10590
|
+
function _class_call_check$2a(instance, Constructor) {
|
|
10591
10591
|
if (!(instance instanceof Constructor)) {
|
|
10592
10592
|
throw new TypeError("Cannot call a class as a function");
|
|
10593
10593
|
}
|
|
10594
10594
|
}
|
|
10595
|
-
function _defineProperties$
|
|
10595
|
+
function _defineProperties$1T(target, props) {
|
|
10596
10596
|
for(var i = 0; i < props.length; i++){
|
|
10597
10597
|
var descriptor = props[i];
|
|
10598
10598
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -10601,8 +10601,8 @@ function _defineProperties$1S(target, props) {
|
|
|
10601
10601
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
10602
10602
|
}
|
|
10603
10603
|
}
|
|
10604
|
-
function _create_class$
|
|
10605
|
-
if (protoProps) _defineProperties$
|
|
10604
|
+
function _create_class$1T(Constructor, protoProps, staticProps) {
|
|
10605
|
+
if (protoProps) _defineProperties$1T(Constructor.prototype, protoProps);
|
|
10606
10606
|
return Constructor;
|
|
10607
10607
|
}
|
|
10608
10608
|
Object.defineProperty(priorityQueue, "__esModule", {
|
|
@@ -10611,10 +10611,10 @@ Object.defineProperty(priorityQueue, "__esModule", {
|
|
|
10611
10611
|
var lower_bound_1 = lowerBound$1;
|
|
10612
10612
|
var PriorityQueue = /*#__PURE__*/ function() {
|
|
10613
10613
|
function PriorityQueue() {
|
|
10614
|
-
_class_call_check$
|
|
10614
|
+
_class_call_check$2a(this, PriorityQueue);
|
|
10615
10615
|
this._queue = [];
|
|
10616
10616
|
}
|
|
10617
|
-
_create_class$
|
|
10617
|
+
_create_class$1T(PriorityQueue, [
|
|
10618
10618
|
{
|
|
10619
10619
|
key: "enqueue",
|
|
10620
10620
|
value: function enqueue(run, options) {
|
|
@@ -10698,12 +10698,12 @@ function _async_to_generator$14(fn) {
|
|
|
10698
10698
|
});
|
|
10699
10699
|
};
|
|
10700
10700
|
}
|
|
10701
|
-
function _class_call_check$
|
|
10701
|
+
function _class_call_check$29(instance, Constructor) {
|
|
10702
10702
|
if (!(instance instanceof Constructor)) {
|
|
10703
10703
|
throw new TypeError("Cannot call a class as a function");
|
|
10704
10704
|
}
|
|
10705
10705
|
}
|
|
10706
|
-
function _defineProperties$
|
|
10706
|
+
function _defineProperties$1S(target, props) {
|
|
10707
10707
|
for(var i = 0; i < props.length; i++){
|
|
10708
10708
|
var descriptor = props[i];
|
|
10709
10709
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -10712,8 +10712,8 @@ function _defineProperties$1R(target, props) {
|
|
|
10712
10712
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
10713
10713
|
}
|
|
10714
10714
|
}
|
|
10715
|
-
function _create_class$
|
|
10716
|
-
if (protoProps) _defineProperties$
|
|
10715
|
+
function _create_class$1S(Constructor, protoProps, staticProps) {
|
|
10716
|
+
if (protoProps) _defineProperties$1S(Constructor.prototype, protoProps);
|
|
10717
10717
|
return Constructor;
|
|
10718
10718
|
}
|
|
10719
10719
|
function _get_prototype_of$1O(o) {
|
|
@@ -10886,7 +10886,7 @@ Promise queue with concurrency control.
|
|
|
10886
10886
|
_inherits$1O(PQueue, EventEmitter);
|
|
10887
10887
|
var _super = _create_super$1O(PQueue);
|
|
10888
10888
|
function PQueue(options) {
|
|
10889
|
-
_class_call_check$
|
|
10889
|
+
_class_call_check$29(this, PQueue);
|
|
10890
10890
|
var _this;
|
|
10891
10891
|
var _a, _b, _c, _d;
|
|
10892
10892
|
_this = _super.call(this);
|
|
@@ -10922,7 +10922,7 @@ Promise queue with concurrency control.
|
|
|
10922
10922
|
_this._isPaused = options.autoStart === false;
|
|
10923
10923
|
return _this;
|
|
10924
10924
|
}
|
|
10925
|
-
_create_class$
|
|
10925
|
+
_create_class$1S(PQueue, [
|
|
10926
10926
|
{
|
|
10927
10927
|
key: "_doesIntervalAllowAnother",
|
|
10928
10928
|
get: function get() {
|
|
@@ -11345,12 +11345,12 @@ function _async_to_generator$13(fn) {
|
|
|
11345
11345
|
});
|
|
11346
11346
|
};
|
|
11347
11347
|
}
|
|
11348
|
-
function _class_call_check$
|
|
11348
|
+
function _class_call_check$28(instance, Constructor) {
|
|
11349
11349
|
if (!(instance instanceof Constructor)) {
|
|
11350
11350
|
throw new TypeError("Cannot call a class as a function");
|
|
11351
11351
|
}
|
|
11352
11352
|
}
|
|
11353
|
-
function _defineProperties$
|
|
11353
|
+
function _defineProperties$1R(target, props) {
|
|
11354
11354
|
for(var i = 0; i < props.length; i++){
|
|
11355
11355
|
var descriptor = props[i];
|
|
11356
11356
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -11359,8 +11359,8 @@ function _defineProperties$1Q(target, props) {
|
|
|
11359
11359
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
11360
11360
|
}
|
|
11361
11361
|
}
|
|
11362
|
-
function _create_class$
|
|
11363
|
-
if (protoProps) _defineProperties$
|
|
11362
|
+
function _create_class$1R(Constructor, protoProps, staticProps) {
|
|
11363
|
+
if (protoProps) _defineProperties$1R(Constructor.prototype, protoProps);
|
|
11364
11364
|
return Constructor;
|
|
11365
11365
|
}
|
|
11366
11366
|
function _instanceof$A(left, right) {
|
|
@@ -11503,7 +11503,7 @@ var STATUS_RETRYABLE = [
|
|
|
11503
11503
|
* exponential backoff between each attempt.
|
|
11504
11504
|
*/ var AsyncCaller$1 = /*#__PURE__*/ function() {
|
|
11505
11505
|
function AsyncCaller(params) {
|
|
11506
|
-
_class_call_check$
|
|
11506
|
+
_class_call_check$28(this, AsyncCaller);
|
|
11507
11507
|
Object.defineProperty(this, "maxConcurrency", {
|
|
11508
11508
|
enumerable: true,
|
|
11509
11509
|
configurable: true,
|
|
@@ -11545,7 +11545,7 @@ var STATUS_RETRYABLE = [
|
|
|
11545
11545
|
}
|
|
11546
11546
|
this.onFailedResponseHook = params === null || params === void 0 ? void 0 : params.onFailedResponseHook;
|
|
11547
11547
|
}
|
|
11548
|
-
_create_class$
|
|
11548
|
+
_create_class$1R(AsyncCaller, [
|
|
11549
11549
|
{
|
|
11550
11550
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
11551
11551
|
key: "call",
|
|
@@ -12040,12 +12040,12 @@ var identifiers$1 = {
|
|
|
12040
12040
|
rcompareIdentifiers: rcompareIdentifiers
|
|
12041
12041
|
};
|
|
12042
12042
|
|
|
12043
|
-
function _class_call_check$
|
|
12043
|
+
function _class_call_check$27(instance, Constructor) {
|
|
12044
12044
|
if (!(instance instanceof Constructor)) {
|
|
12045
12045
|
throw new TypeError("Cannot call a class as a function");
|
|
12046
12046
|
}
|
|
12047
12047
|
}
|
|
12048
|
-
function _defineProperties$
|
|
12048
|
+
function _defineProperties$1Q(target, props) {
|
|
12049
12049
|
for(var i = 0; i < props.length; i++){
|
|
12050
12050
|
var descriptor = props[i];
|
|
12051
12051
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -12054,8 +12054,8 @@ function _defineProperties$1P(target, props) {
|
|
|
12054
12054
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
12055
12055
|
}
|
|
12056
12056
|
}
|
|
12057
|
-
function _create_class$
|
|
12058
|
-
if (protoProps) _defineProperties$
|
|
12057
|
+
function _create_class$1Q(Constructor, protoProps, staticProps) {
|
|
12058
|
+
if (protoProps) _defineProperties$1Q(Constructor.prototype, protoProps);
|
|
12059
12059
|
return Constructor;
|
|
12060
12060
|
}
|
|
12061
12061
|
function _instanceof$z(left, right) {
|
|
@@ -12076,7 +12076,7 @@ var parseOptions = parseOptions_1;
|
|
|
12076
12076
|
var compareIdentifiers = identifiers$1.compareIdentifiers;
|
|
12077
12077
|
var SemVer$1 = /*#__PURE__*/ function() {
|
|
12078
12078
|
function SemVer(version, options) {
|
|
12079
|
-
_class_call_check$
|
|
12079
|
+
_class_call_check$27(this, SemVer);
|
|
12080
12080
|
options = parseOptions(options);
|
|
12081
12081
|
if (_instanceof$z(version, SemVer)) {
|
|
12082
12082
|
if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) {
|
|
@@ -12131,7 +12131,7 @@ var SemVer$1 = /*#__PURE__*/ function() {
|
|
|
12131
12131
|
this.build = m[5] ? m[5].split('.') : [];
|
|
12132
12132
|
this.format();
|
|
12133
12133
|
}
|
|
12134
|
-
_create_class$
|
|
12134
|
+
_create_class$1Q(SemVer, [
|
|
12135
12135
|
{
|
|
12136
12136
|
key: "format",
|
|
12137
12137
|
value: function format() {
|
|
@@ -12489,78 +12489,70 @@ var cmp_1 = cmp;
|
|
|
12489
12489
|
|
|
12490
12490
|
var _require = reExports; _require.safeRe; _require.t;
|
|
12491
12491
|
|
|
12492
|
-
|
|
12493
|
-
|
|
12494
|
-
|
|
12495
|
-
|
|
12496
|
-
if (hasRequiredLrucache) return lrucache;
|
|
12497
|
-
hasRequiredLrucache = 1;
|
|
12498
|
-
function _class_call_check(instance, Constructor) {
|
|
12499
|
-
if (!(instance instanceof Constructor)) {
|
|
12500
|
-
throw new TypeError("Cannot call a class as a function");
|
|
12501
|
-
}
|
|
12502
|
-
}
|
|
12503
|
-
function _defineProperties(target, props) {
|
|
12504
|
-
for(var i = 0; i < props.length; i++){
|
|
12505
|
-
var descriptor = props[i];
|
|
12506
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
12507
|
-
descriptor.configurable = true;
|
|
12508
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
12509
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
12510
|
-
}
|
|
12511
|
-
}
|
|
12512
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
12513
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
12514
|
-
return Constructor;
|
|
12515
|
-
}
|
|
12516
|
-
var LRUCache = /*#__PURE__*/ function() {
|
|
12517
|
-
function LRUCache() {
|
|
12518
|
-
_class_call_check(this, LRUCache);
|
|
12519
|
-
this.max = 1000;
|
|
12520
|
-
this.map = new Map();
|
|
12521
|
-
}
|
|
12522
|
-
_create_class(LRUCache, [
|
|
12523
|
-
{
|
|
12524
|
-
key: "get",
|
|
12525
|
-
value: function get(key) {
|
|
12526
|
-
var value = this.map.get(key);
|
|
12527
|
-
if (value === undefined) {
|
|
12528
|
-
return undefined;
|
|
12529
|
-
} else {
|
|
12530
|
-
// Remove the key from the map and add it to the end
|
|
12531
|
-
this.map.delete(key);
|
|
12532
|
-
this.map.set(key, value);
|
|
12533
|
-
return value;
|
|
12534
|
-
}
|
|
12535
|
-
}
|
|
12536
|
-
},
|
|
12537
|
-
{
|
|
12538
|
-
key: "delete",
|
|
12539
|
-
value: function _delete(key) {
|
|
12540
|
-
return this.map.delete(key);
|
|
12541
|
-
}
|
|
12542
|
-
},
|
|
12543
|
-
{
|
|
12544
|
-
key: "set",
|
|
12545
|
-
value: function set(key, value) {
|
|
12546
|
-
var deleted = this.delete(key);
|
|
12547
|
-
if (!deleted && value !== undefined) {
|
|
12548
|
-
// If cache is full, delete the least recently used item
|
|
12549
|
-
if (this.map.size >= this.max) {
|
|
12550
|
-
var firstKey = this.map.keys().next().value;
|
|
12551
|
-
this.delete(firstKey);
|
|
12552
|
-
}
|
|
12553
|
-
this.map.set(key, value);
|
|
12554
|
-
}
|
|
12555
|
-
return this;
|
|
12556
|
-
}
|
|
12557
|
-
}
|
|
12558
|
-
]);
|
|
12559
|
-
return LRUCache;
|
|
12560
|
-
}();
|
|
12561
|
-
lrucache = LRUCache;
|
|
12562
|
-
return lrucache;
|
|
12492
|
+
function _class_call_check$26(instance, Constructor) {
|
|
12493
|
+
if (!(instance instanceof Constructor)) {
|
|
12494
|
+
throw new TypeError("Cannot call a class as a function");
|
|
12495
|
+
}
|
|
12563
12496
|
}
|
|
12497
|
+
function _defineProperties$1P(target, props) {
|
|
12498
|
+
for(var i = 0; i < props.length; i++){
|
|
12499
|
+
var descriptor = props[i];
|
|
12500
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
12501
|
+
descriptor.configurable = true;
|
|
12502
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
12503
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
12504
|
+
}
|
|
12505
|
+
}
|
|
12506
|
+
function _create_class$1P(Constructor, protoProps, staticProps) {
|
|
12507
|
+
if (protoProps) _defineProperties$1P(Constructor.prototype, protoProps);
|
|
12508
|
+
return Constructor;
|
|
12509
|
+
}
|
|
12510
|
+
var LRUCache = /*#__PURE__*/ function() {
|
|
12511
|
+
function LRUCache() {
|
|
12512
|
+
_class_call_check$26(this, LRUCache);
|
|
12513
|
+
this.max = 1000;
|
|
12514
|
+
this.map = new Map();
|
|
12515
|
+
}
|
|
12516
|
+
_create_class$1P(LRUCache, [
|
|
12517
|
+
{
|
|
12518
|
+
key: "get",
|
|
12519
|
+
value: function get(key) {
|
|
12520
|
+
var value = this.map.get(key);
|
|
12521
|
+
if (value === undefined) {
|
|
12522
|
+
return undefined;
|
|
12523
|
+
} else {
|
|
12524
|
+
// Remove the key from the map and add it to the end
|
|
12525
|
+
this.map.delete(key);
|
|
12526
|
+
this.map.set(key, value);
|
|
12527
|
+
return value;
|
|
12528
|
+
}
|
|
12529
|
+
}
|
|
12530
|
+
},
|
|
12531
|
+
{
|
|
12532
|
+
key: "delete",
|
|
12533
|
+
value: function _delete(key) {
|
|
12534
|
+
return this.map.delete(key);
|
|
12535
|
+
}
|
|
12536
|
+
},
|
|
12537
|
+
{
|
|
12538
|
+
key: "set",
|
|
12539
|
+
value: function set(key, value) {
|
|
12540
|
+
var deleted = this.delete(key);
|
|
12541
|
+
if (!deleted && value !== undefined) {
|
|
12542
|
+
// If cache is full, delete the least recently used item
|
|
12543
|
+
if (this.map.size >= this.max) {
|
|
12544
|
+
var firstKey = this.map.keys().next().value;
|
|
12545
|
+
this.delete(firstKey);
|
|
12546
|
+
}
|
|
12547
|
+
this.map.set(key, value);
|
|
12548
|
+
}
|
|
12549
|
+
return this;
|
|
12550
|
+
}
|
|
12551
|
+
}
|
|
12552
|
+
]);
|
|
12553
|
+
return LRUCache;
|
|
12554
|
+
}();
|
|
12555
|
+
var lrucache = LRUCache;
|
|
12564
12556
|
|
|
12565
12557
|
var range;
|
|
12566
12558
|
var hasRequiredRange;
|
|
@@ -12864,7 +12856,7 @@ function requireRange () {
|
|
|
12864
12856
|
return Range;
|
|
12865
12857
|
}();
|
|
12866
12858
|
range = Range;
|
|
12867
|
-
var LRU =
|
|
12859
|
+
var LRU = lrucache;
|
|
12868
12860
|
var cache = new LRU();
|
|
12869
12861
|
var parseOptions = parseOptions_1;
|
|
12870
12862
|
var Comparator = requireComparator();
|