@digipair/skill-llm 0.121.16 → 0.122.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.cjs.js +198 -206
- package/dist/index.esm.js +5 -5
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -348,12 +348,12 @@ function _array_with_holes$o(arr) {
|
|
|
348
348
|
function _array_without_holes$N(arr) {
|
|
349
349
|
if (Array.isArray(arr)) return _array_like_to_array$X(arr);
|
|
350
350
|
}
|
|
351
|
-
function _class_call_check$
|
|
351
|
+
function _class_call_check$V(instance, Constructor) {
|
|
352
352
|
if (!(instance instanceof Constructor)) {
|
|
353
353
|
throw new TypeError("Cannot call a class as a function");
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
|
-
function _defineProperties$
|
|
356
|
+
function _defineProperties$P(target, props) {
|
|
357
357
|
for(var i = 0; i < props.length; i++){
|
|
358
358
|
var descriptor = props[i];
|
|
359
359
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -362,9 +362,9 @@ function _defineProperties$O(target, props) {
|
|
|
362
362
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
|
-
function _create_class$
|
|
366
|
-
if (protoProps) _defineProperties$
|
|
367
|
-
if (staticProps) _defineProperties$
|
|
365
|
+
function _create_class$P(Constructor, protoProps, staticProps) {
|
|
366
|
+
if (protoProps) _defineProperties$P(Constructor.prototype, protoProps);
|
|
367
|
+
if (staticProps) _defineProperties$P(Constructor, staticProps);
|
|
368
368
|
return Constructor;
|
|
369
369
|
}
|
|
370
370
|
function _define_property$1b(obj, key, value) {
|
|
@@ -538,7 +538,7 @@ var Serializable = /*#__PURE__*/ function() {
|
|
|
538
538
|
for(var _len = arguments.length, _args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
|
|
539
539
|
_args[_key - 1] = arguments[_key];
|
|
540
540
|
}
|
|
541
|
-
_class_call_check$
|
|
541
|
+
_class_call_check$V(this, Serializable);
|
|
542
542
|
_define_property$1b(this, "lc_serializable", false);
|
|
543
543
|
_define_property$1b(this, "lc_kwargs", void 0);
|
|
544
544
|
if (this.lc_serializable_keys !== void 0) this.lc_kwargs = Object.fromEntries(Object.entries(kwargs || {}).filter(function(param) {
|
|
@@ -548,7 +548,7 @@ var Serializable = /*#__PURE__*/ function() {
|
|
|
548
548
|
}));
|
|
549
549
|
else this.lc_kwargs = kwargs !== null && kwargs !== void 0 ? kwargs : {};
|
|
550
550
|
}
|
|
551
|
-
_create_class$
|
|
551
|
+
_create_class$P(Serializable, [
|
|
552
552
|
{
|
|
553
553
|
key: "lc_id",
|
|
554
554
|
get: /**
|
|
@@ -3007,12 +3007,12 @@ function _assert_this_initialized$E(self) {
|
|
|
3007
3007
|
}
|
|
3008
3008
|
return self;
|
|
3009
3009
|
}
|
|
3010
|
-
function _class_call_check$
|
|
3010
|
+
function _class_call_check$U(instance, Constructor) {
|
|
3011
3011
|
if (!(instance instanceof Constructor)) {
|
|
3012
3012
|
throw new TypeError("Cannot call a class as a function");
|
|
3013
3013
|
}
|
|
3014
3014
|
}
|
|
3015
|
-
function _defineProperties$
|
|
3015
|
+
function _defineProperties$O(target, props) {
|
|
3016
3016
|
for(var i = 0; i < props.length; i++){
|
|
3017
3017
|
var descriptor = props[i];
|
|
3018
3018
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -3021,9 +3021,9 @@ function _defineProperties$N(target, props) {
|
|
|
3021
3021
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
3022
3022
|
}
|
|
3023
3023
|
}
|
|
3024
|
-
function _create_class$
|
|
3025
|
-
if (protoProps) _defineProperties$
|
|
3026
|
-
if (staticProps) _defineProperties$
|
|
3024
|
+
function _create_class$O(Constructor, protoProps, staticProps) {
|
|
3025
|
+
if (protoProps) _defineProperties$O(Constructor.prototype, protoProps);
|
|
3026
|
+
if (staticProps) _defineProperties$O(Constructor, staticProps);
|
|
3027
3027
|
return Constructor;
|
|
3028
3028
|
}
|
|
3029
3029
|
function _define_property$18(obj, key, value) {
|
|
@@ -3279,7 +3279,7 @@ function stringifyWithDepthLimit(obj, depthLimit) {
|
|
|
3279
3279
|
_inherits$E(_class, Serializable);
|
|
3280
3280
|
var _super = _create_super$E(_class);
|
|
3281
3281
|
function _class(arg) {
|
|
3282
|
-
_class_call_check$
|
|
3282
|
+
_class_call_check$U(this, _class);
|
|
3283
3283
|
var _this;
|
|
3284
3284
|
var fields = typeof arg === "string" || Array.isArray(arg) ? {
|
|
3285
3285
|
content: arg
|
|
@@ -3316,7 +3316,7 @@ function stringifyWithDepthLimit(obj, depthLimit) {
|
|
|
3316
3316
|
_this.id = fields.id;
|
|
3317
3317
|
return _this;
|
|
3318
3318
|
}
|
|
3319
|
-
_create_class$
|
|
3319
|
+
_create_class$O(_class, [
|
|
3320
3320
|
{
|
|
3321
3321
|
key: "lc_aliases",
|
|
3322
3322
|
get: function get() {
|
|
@@ -3552,10 +3552,10 @@ function _mergeObj(left, right) {
|
|
|
3552
3552
|
_inherits$E(BaseMessageChunk, BaseMessage);
|
|
3553
3553
|
var _super = _create_super$E(BaseMessageChunk);
|
|
3554
3554
|
function BaseMessageChunk() {
|
|
3555
|
-
_class_call_check$
|
|
3555
|
+
_class_call_check$U(this, BaseMessageChunk);
|
|
3556
3556
|
return _super.apply(this, arguments);
|
|
3557
3557
|
}
|
|
3558
|
-
_create_class$
|
|
3558
|
+
_create_class$O(BaseMessageChunk, null, [
|
|
3559
3559
|
{
|
|
3560
3560
|
key: "isInstance",
|
|
3561
3561
|
value: function isInstance(obj) {
|
|
@@ -3657,12 +3657,12 @@ function _assert_this_initialized$D(self) {
|
|
|
3657
3657
|
}
|
|
3658
3658
|
return self;
|
|
3659
3659
|
}
|
|
3660
|
-
function _class_call_check$
|
|
3660
|
+
function _class_call_check$T(instance, Constructor) {
|
|
3661
3661
|
if (!(instance instanceof Constructor)) {
|
|
3662
3662
|
throw new TypeError("Cannot call a class as a function");
|
|
3663
3663
|
}
|
|
3664
3664
|
}
|
|
3665
|
-
function _defineProperties$
|
|
3665
|
+
function _defineProperties$N(target, props) {
|
|
3666
3666
|
for(var i = 0; i < props.length; i++){
|
|
3667
3667
|
var descriptor = props[i];
|
|
3668
3668
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -3671,9 +3671,9 @@ function _defineProperties$M(target, props) {
|
|
|
3671
3671
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
3672
3672
|
}
|
|
3673
3673
|
}
|
|
3674
|
-
function _create_class$
|
|
3675
|
-
if (protoProps) _defineProperties$
|
|
3676
|
-
if (staticProps) _defineProperties$
|
|
3674
|
+
function _create_class$N(Constructor, protoProps, staticProps) {
|
|
3675
|
+
if (protoProps) _defineProperties$N(Constructor.prototype, protoProps);
|
|
3676
|
+
if (staticProps) _defineProperties$N(Constructor, staticProps);
|
|
3677
3677
|
return Constructor;
|
|
3678
3678
|
}
|
|
3679
3679
|
function _define_property$16(obj, key, value) {
|
|
@@ -3837,7 +3837,7 @@ function isDirectToolOutput(x) {
|
|
|
3837
3837
|
_inherits$D(ToolMessage, BaseMessage);
|
|
3838
3838
|
var _super = _create_super$D(ToolMessage);
|
|
3839
3839
|
function ToolMessage(fields, tool_call_id, name) {
|
|
3840
|
-
_class_call_check$
|
|
3840
|
+
_class_call_check$T(this, ToolMessage);
|
|
3841
3841
|
var _this;
|
|
3842
3842
|
var toolMessageFields = typeof fields === "string" || Array.isArray(fields) ? {
|
|
3843
3843
|
content: fields,
|
|
@@ -3866,7 +3866,7 @@ function isDirectToolOutput(x) {
|
|
|
3866
3866
|
_this.metadata = toolMessageFields.metadata;
|
|
3867
3867
|
return _this;
|
|
3868
3868
|
}
|
|
3869
|
-
_create_class$
|
|
3869
|
+
_create_class$N(ToolMessage, [
|
|
3870
3870
|
{
|
|
3871
3871
|
key: "lc_aliases",
|
|
3872
3872
|
get: function get() {
|
|
@@ -3907,7 +3907,7 @@ function isDirectToolOutput(x) {
|
|
|
3907
3907
|
_inherits$D(ToolMessageChunk, BaseMessageChunk);
|
|
3908
3908
|
var _super = _create_super$D(ToolMessageChunk);
|
|
3909
3909
|
function ToolMessageChunk(fields) {
|
|
3910
|
-
_class_call_check$
|
|
3910
|
+
_class_call_check$T(this, ToolMessageChunk);
|
|
3911
3911
|
var _this;
|
|
3912
3912
|
_this = _super.call(this, fields);
|
|
3913
3913
|
_define_property$16(_assert_this_initialized$D(_this), "type", "tool");
|
|
@@ -3928,7 +3928,7 @@ function isDirectToolOutput(x) {
|
|
|
3928
3928
|
_this.status = fields.status;
|
|
3929
3929
|
return _this;
|
|
3930
3930
|
}
|
|
3931
|
-
_create_class$
|
|
3931
|
+
_create_class$N(ToolMessageChunk, [
|
|
3932
3932
|
{
|
|
3933
3933
|
key: "concat",
|
|
3934
3934
|
value: function concat(chunk) {
|
|
@@ -5321,12 +5321,12 @@ function _assert_this_initialized$C(self) {
|
|
|
5321
5321
|
}
|
|
5322
5322
|
return self;
|
|
5323
5323
|
}
|
|
5324
|
-
function _class_call_check$
|
|
5324
|
+
function _class_call_check$S(instance, Constructor) {
|
|
5325
5325
|
if (!(instance instanceof Constructor)) {
|
|
5326
5326
|
throw new TypeError("Cannot call a class as a function");
|
|
5327
5327
|
}
|
|
5328
5328
|
}
|
|
5329
|
-
function _defineProperties$
|
|
5329
|
+
function _defineProperties$M(target, props) {
|
|
5330
5330
|
for(var i = 0; i < props.length; i++){
|
|
5331
5331
|
var descriptor = props[i];
|
|
5332
5332
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -5335,9 +5335,9 @@ function _defineProperties$L(target, props) {
|
|
|
5335
5335
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
5336
5336
|
}
|
|
5337
5337
|
}
|
|
5338
|
-
function _create_class$
|
|
5339
|
-
if (protoProps) _defineProperties$
|
|
5340
|
-
if (staticProps) _defineProperties$
|
|
5338
|
+
function _create_class$M(Constructor, protoProps, staticProps) {
|
|
5339
|
+
if (protoProps) _defineProperties$M(Constructor.prototype, protoProps);
|
|
5340
|
+
if (staticProps) _defineProperties$M(Constructor, staticProps);
|
|
5341
5341
|
return Constructor;
|
|
5342
5342
|
}
|
|
5343
5343
|
function _define_property$14(obj, key, value) {
|
|
@@ -5522,7 +5522,7 @@ var AIMessage = /*#__PURE__*/ function(BaseMessage) {
|
|
|
5522
5522
|
_inherits$C(AIMessage, BaseMessage);
|
|
5523
5523
|
var _super = _create_super$C(AIMessage);
|
|
5524
5524
|
function AIMessage(fields) {
|
|
5525
|
-
_class_call_check$
|
|
5525
|
+
_class_call_check$S(this, AIMessage);
|
|
5526
5526
|
var _this;
|
|
5527
5527
|
var initParams;
|
|
5528
5528
|
if (typeof fields === "string" || Array.isArray(fields)) initParams = {
|
|
@@ -5603,7 +5603,7 @@ var AIMessage = /*#__PURE__*/ function(BaseMessage) {
|
|
|
5603
5603
|
_this.usage_metadata = initParams.usage_metadata;
|
|
5604
5604
|
return _this;
|
|
5605
5605
|
}
|
|
5606
|
-
_create_class$
|
|
5606
|
+
_create_class$M(AIMessage, [
|
|
5607
5607
|
{
|
|
5608
5608
|
key: "lc_aliases",
|
|
5609
5609
|
get: function get() {
|
|
@@ -5684,7 +5684,7 @@ var AIMessage = /*#__PURE__*/ function(BaseMessage) {
|
|
|
5684
5684
|
_inherits$C(AIMessageChunk, BaseMessageChunk);
|
|
5685
5685
|
var _super = _create_super$C(AIMessageChunk);
|
|
5686
5686
|
function AIMessageChunk(fields) {
|
|
5687
|
-
_class_call_check$
|
|
5687
|
+
_class_call_check$S(this, AIMessageChunk);
|
|
5688
5688
|
var _this;
|
|
5689
5689
|
var initParams;
|
|
5690
5690
|
var _fields_tool_calls;
|
|
@@ -5786,7 +5786,7 @@ var AIMessage = /*#__PURE__*/ function(BaseMessage) {
|
|
|
5786
5786
|
_this.usage_metadata = initParams.usage_metadata;
|
|
5787
5787
|
return _this;
|
|
5788
5788
|
}
|
|
5789
|
-
_create_class$
|
|
5789
|
+
_create_class$M(AIMessageChunk, [
|
|
5790
5790
|
{
|
|
5791
5791
|
key: "lc_aliases",
|
|
5792
5792
|
get: function get() {
|
|
@@ -5897,12 +5897,12 @@ function _assert_this_initialized$B(self) {
|
|
|
5897
5897
|
}
|
|
5898
5898
|
return self;
|
|
5899
5899
|
}
|
|
5900
|
-
function _class_call_check$
|
|
5900
|
+
function _class_call_check$R(instance, Constructor) {
|
|
5901
5901
|
if (!(instance instanceof Constructor)) {
|
|
5902
5902
|
throw new TypeError("Cannot call a class as a function");
|
|
5903
5903
|
}
|
|
5904
5904
|
}
|
|
5905
|
-
function _defineProperties$
|
|
5905
|
+
function _defineProperties$L(target, props) {
|
|
5906
5906
|
for(var i = 0; i < props.length; i++){
|
|
5907
5907
|
var descriptor = props[i];
|
|
5908
5908
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -5911,9 +5911,9 @@ function _defineProperties$K(target, props) {
|
|
|
5911
5911
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
5912
5912
|
}
|
|
5913
5913
|
}
|
|
5914
|
-
function _create_class$
|
|
5915
|
-
if (protoProps) _defineProperties$
|
|
5916
|
-
if (staticProps) _defineProperties$
|
|
5914
|
+
function _create_class$L(Constructor, protoProps, staticProps) {
|
|
5915
|
+
if (protoProps) _defineProperties$L(Constructor.prototype, protoProps);
|
|
5916
|
+
if (staticProps) _defineProperties$L(Constructor, staticProps);
|
|
5917
5917
|
return Constructor;
|
|
5918
5918
|
}
|
|
5919
5919
|
function _define_property$13(obj, key, value) {
|
|
@@ -6053,7 +6053,7 @@ function _create_super$B(Derived) {
|
|
|
6053
6053
|
_inherits$B(ChatMessage, BaseMessage);
|
|
6054
6054
|
var _super = _create_super$B(ChatMessage);
|
|
6055
6055
|
function ChatMessage(fields, role) {
|
|
6056
|
-
_class_call_check$
|
|
6056
|
+
_class_call_check$R(this, ChatMessage);
|
|
6057
6057
|
var _this;
|
|
6058
6058
|
if (typeof fields === "string" || Array.isArray(fields)) fields = {
|
|
6059
6059
|
content: fields,
|
|
@@ -6065,7 +6065,7 @@ function _create_super$B(Derived) {
|
|
|
6065
6065
|
_this.role = fields.role;
|
|
6066
6066
|
return _this;
|
|
6067
6067
|
}
|
|
6068
|
-
_create_class$
|
|
6068
|
+
_create_class$L(ChatMessage, [
|
|
6069
6069
|
{
|
|
6070
6070
|
key: "_printableFields",
|
|
6071
6071
|
get: function get() {
|
|
@@ -6103,7 +6103,7 @@ function _create_super$B(Derived) {
|
|
|
6103
6103
|
_inherits$B(ChatMessageChunk, BaseMessageChunk);
|
|
6104
6104
|
var _super = _create_super$B(ChatMessageChunk);
|
|
6105
6105
|
function ChatMessageChunk(fields, role) {
|
|
6106
|
-
_class_call_check$
|
|
6106
|
+
_class_call_check$R(this, ChatMessageChunk);
|
|
6107
6107
|
var _this;
|
|
6108
6108
|
if (typeof fields === "string" || Array.isArray(fields)) fields = {
|
|
6109
6109
|
content: fields,
|
|
@@ -6115,7 +6115,7 @@ function _create_super$B(Derived) {
|
|
|
6115
6115
|
_this.role = fields.role;
|
|
6116
6116
|
return _this;
|
|
6117
6117
|
}
|
|
6118
|
-
_create_class$
|
|
6118
|
+
_create_class$L(ChatMessageChunk, [
|
|
6119
6119
|
{
|
|
6120
6120
|
key: "concat",
|
|
6121
6121
|
value: function concat(chunk) {
|
|
@@ -6171,12 +6171,12 @@ function _assert_this_initialized$A(self) {
|
|
|
6171
6171
|
}
|
|
6172
6172
|
return self;
|
|
6173
6173
|
}
|
|
6174
|
-
function _class_call_check$
|
|
6174
|
+
function _class_call_check$Q(instance, Constructor) {
|
|
6175
6175
|
if (!(instance instanceof Constructor)) {
|
|
6176
6176
|
throw new TypeError("Cannot call a class as a function");
|
|
6177
6177
|
}
|
|
6178
6178
|
}
|
|
6179
|
-
function _defineProperties$
|
|
6179
|
+
function _defineProperties$K(target, props) {
|
|
6180
6180
|
for(var i = 0; i < props.length; i++){
|
|
6181
6181
|
var descriptor = props[i];
|
|
6182
6182
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -6185,9 +6185,9 @@ function _defineProperties$J(target, props) {
|
|
|
6185
6185
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
6186
6186
|
}
|
|
6187
6187
|
}
|
|
6188
|
-
function _create_class$
|
|
6189
|
-
if (protoProps) _defineProperties$
|
|
6190
|
-
if (staticProps) _defineProperties$
|
|
6188
|
+
function _create_class$K(Constructor, protoProps, staticProps) {
|
|
6189
|
+
if (protoProps) _defineProperties$K(Constructor.prototype, protoProps);
|
|
6190
|
+
if (staticProps) _defineProperties$K(Constructor, staticProps);
|
|
6191
6191
|
return Constructor;
|
|
6192
6192
|
}
|
|
6193
6193
|
function _define_property$12(obj, key, value) {
|
|
@@ -6270,7 +6270,7 @@ function _create_super$A(Derived) {
|
|
|
6270
6270
|
_inherits$A(FunctionMessage, BaseMessage);
|
|
6271
6271
|
var _super = _create_super$A(FunctionMessage);
|
|
6272
6272
|
function FunctionMessage(fields) {
|
|
6273
|
-
_class_call_check$
|
|
6273
|
+
_class_call_check$Q(this, FunctionMessage);
|
|
6274
6274
|
var _this;
|
|
6275
6275
|
_this = _super.call(this, fields);
|
|
6276
6276
|
_define_property$12(_assert_this_initialized$A(_this), "type", "function");
|
|
@@ -6278,7 +6278,7 @@ function _create_super$A(Derived) {
|
|
|
6278
6278
|
_this.name = fields.name;
|
|
6279
6279
|
return _this;
|
|
6280
6280
|
}
|
|
6281
|
-
_create_class$
|
|
6281
|
+
_create_class$K(FunctionMessage, null, [
|
|
6282
6282
|
{
|
|
6283
6283
|
key: "lc_name",
|
|
6284
6284
|
value: function lc_name() {
|
|
@@ -6295,13 +6295,13 @@ function _create_super$A(Derived) {
|
|
|
6295
6295
|
_inherits$A(FunctionMessageChunk, BaseMessageChunk);
|
|
6296
6296
|
var _super = _create_super$A(FunctionMessageChunk);
|
|
6297
6297
|
function FunctionMessageChunk() {
|
|
6298
|
-
_class_call_check$
|
|
6298
|
+
_class_call_check$Q(this, FunctionMessageChunk);
|
|
6299
6299
|
var _this;
|
|
6300
6300
|
_this = _super.apply(this, arguments);
|
|
6301
6301
|
_define_property$12(_assert_this_initialized$A(_this), "type", "function");
|
|
6302
6302
|
return _this;
|
|
6303
6303
|
}
|
|
6304
|
-
_create_class$
|
|
6304
|
+
_create_class$K(FunctionMessageChunk, [
|
|
6305
6305
|
{
|
|
6306
6306
|
key: "concat",
|
|
6307
6307
|
value: function concat(chunk) {
|
|
@@ -6339,12 +6339,12 @@ function _assert_this_initialized$z(self) {
|
|
|
6339
6339
|
}
|
|
6340
6340
|
return self;
|
|
6341
6341
|
}
|
|
6342
|
-
function _class_call_check$
|
|
6342
|
+
function _class_call_check$P(instance, Constructor) {
|
|
6343
6343
|
if (!(instance instanceof Constructor)) {
|
|
6344
6344
|
throw new TypeError("Cannot call a class as a function");
|
|
6345
6345
|
}
|
|
6346
6346
|
}
|
|
6347
|
-
function _defineProperties$
|
|
6347
|
+
function _defineProperties$J(target, props) {
|
|
6348
6348
|
for(var i = 0; i < props.length; i++){
|
|
6349
6349
|
var descriptor = props[i];
|
|
6350
6350
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -6353,9 +6353,9 @@ function _defineProperties$I(target, props) {
|
|
|
6353
6353
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
6354
6354
|
}
|
|
6355
6355
|
}
|
|
6356
|
-
function _create_class$
|
|
6357
|
-
if (protoProps) _defineProperties$
|
|
6358
|
-
if (staticProps) _defineProperties$
|
|
6356
|
+
function _create_class$J(Constructor, protoProps, staticProps) {
|
|
6357
|
+
if (protoProps) _defineProperties$J(Constructor.prototype, protoProps);
|
|
6358
|
+
if (staticProps) _defineProperties$J(Constructor, staticProps);
|
|
6359
6359
|
return Constructor;
|
|
6360
6360
|
}
|
|
6361
6361
|
function _define_property$11(obj, key, value) {
|
|
@@ -6461,13 +6461,13 @@ function _create_super$z(Derived) {
|
|
|
6461
6461
|
_inherits$z(HumanMessage, BaseMessage);
|
|
6462
6462
|
var _super = _create_super$z(HumanMessage);
|
|
6463
6463
|
function HumanMessage(fields) {
|
|
6464
|
-
_class_call_check$
|
|
6464
|
+
_class_call_check$P(this, HumanMessage);
|
|
6465
6465
|
var _this;
|
|
6466
6466
|
_this = _super.call(this, fields);
|
|
6467
6467
|
_define_property$11(_assert_this_initialized$z(_this), "type", "human");
|
|
6468
6468
|
return _this;
|
|
6469
6469
|
}
|
|
6470
|
-
_create_class$
|
|
6470
|
+
_create_class$J(HumanMessage, null, [
|
|
6471
6471
|
{
|
|
6472
6472
|
key: "lc_name",
|
|
6473
6473
|
value: function lc_name() {
|
|
@@ -6490,13 +6490,13 @@ function _create_super$z(Derived) {
|
|
|
6490
6490
|
_inherits$z(HumanMessageChunk, BaseMessageChunk);
|
|
6491
6491
|
var _super = _create_super$z(HumanMessageChunk);
|
|
6492
6492
|
function HumanMessageChunk(fields) {
|
|
6493
|
-
_class_call_check$
|
|
6493
|
+
_class_call_check$P(this, HumanMessageChunk);
|
|
6494
6494
|
var _this;
|
|
6495
6495
|
_this = _super.call(this, fields);
|
|
6496
6496
|
_define_property$11(_assert_this_initialized$z(_this), "type", "human");
|
|
6497
6497
|
return _this;
|
|
6498
6498
|
}
|
|
6499
|
-
_create_class$
|
|
6499
|
+
_create_class$J(HumanMessageChunk, [
|
|
6500
6500
|
{
|
|
6501
6501
|
key: "concat",
|
|
6502
6502
|
value: function concat(chunk) {
|
|
@@ -6543,12 +6543,12 @@ function _assert_this_initialized$y(self) {
|
|
|
6543
6543
|
}
|
|
6544
6544
|
return self;
|
|
6545
6545
|
}
|
|
6546
|
-
function _class_call_check$
|
|
6546
|
+
function _class_call_check$O(instance, Constructor) {
|
|
6547
6547
|
if (!(instance instanceof Constructor)) {
|
|
6548
6548
|
throw new TypeError("Cannot call a class as a function");
|
|
6549
6549
|
}
|
|
6550
6550
|
}
|
|
6551
|
-
function _defineProperties$
|
|
6551
|
+
function _defineProperties$I(target, props) {
|
|
6552
6552
|
for(var i = 0; i < props.length; i++){
|
|
6553
6553
|
var descriptor = props[i];
|
|
6554
6554
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -6557,9 +6557,9 @@ function _defineProperties$H(target, props) {
|
|
|
6557
6557
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
6558
6558
|
}
|
|
6559
6559
|
}
|
|
6560
|
-
function _create_class$
|
|
6561
|
-
if (protoProps) _defineProperties$
|
|
6562
|
-
if (staticProps) _defineProperties$
|
|
6560
|
+
function _create_class$I(Constructor, protoProps, staticProps) {
|
|
6561
|
+
if (protoProps) _defineProperties$I(Constructor.prototype, protoProps);
|
|
6562
|
+
if (staticProps) _defineProperties$I(Constructor, staticProps);
|
|
6563
6563
|
return Constructor;
|
|
6564
6564
|
}
|
|
6565
6565
|
function _define_property$10(obj, key, value) {
|
|
@@ -6665,13 +6665,13 @@ function _create_super$y(Derived) {
|
|
|
6665
6665
|
_inherits$y(SystemMessage, BaseMessage);
|
|
6666
6666
|
var _super = _create_super$y(SystemMessage);
|
|
6667
6667
|
function SystemMessage(fields) {
|
|
6668
|
-
_class_call_check$
|
|
6668
|
+
_class_call_check$O(this, SystemMessage);
|
|
6669
6669
|
var _this;
|
|
6670
6670
|
_this = _super.call(this, fields);
|
|
6671
6671
|
_define_property$10(_assert_this_initialized$y(_this), "type", "system");
|
|
6672
6672
|
return _this;
|
|
6673
6673
|
}
|
|
6674
|
-
_create_class$
|
|
6674
|
+
_create_class$I(SystemMessage, null, [
|
|
6675
6675
|
{
|
|
6676
6676
|
key: "lc_name",
|
|
6677
6677
|
value: function lc_name() {
|
|
@@ -6694,13 +6694,13 @@ function _create_super$y(Derived) {
|
|
|
6694
6694
|
_inherits$y(SystemMessageChunk, BaseMessageChunk);
|
|
6695
6695
|
var _super = _create_super$y(SystemMessageChunk);
|
|
6696
6696
|
function SystemMessageChunk(fields) {
|
|
6697
|
-
_class_call_check$
|
|
6697
|
+
_class_call_check$O(this, SystemMessageChunk);
|
|
6698
6698
|
var _this;
|
|
6699
6699
|
_this = _super.call(this, fields);
|
|
6700
6700
|
_define_property$10(_assert_this_initialized$y(_this), "type", "system");
|
|
6701
6701
|
return _this;
|
|
6702
6702
|
}
|
|
6703
|
-
_create_class$
|
|
6703
|
+
_create_class$I(SystemMessageChunk, [
|
|
6704
6704
|
{
|
|
6705
6705
|
key: "concat",
|
|
6706
6706
|
value: function concat(chunk) {
|
|
@@ -6747,12 +6747,12 @@ function _assert_this_initialized$x(self) {
|
|
|
6747
6747
|
}
|
|
6748
6748
|
return self;
|
|
6749
6749
|
}
|
|
6750
|
-
function _class_call_check$
|
|
6750
|
+
function _class_call_check$N(instance, Constructor) {
|
|
6751
6751
|
if (!(instance instanceof Constructor)) {
|
|
6752
6752
|
throw new TypeError("Cannot call a class as a function");
|
|
6753
6753
|
}
|
|
6754
6754
|
}
|
|
6755
|
-
function _defineProperties$
|
|
6755
|
+
function _defineProperties$H(target, props) {
|
|
6756
6756
|
for(var i = 0; i < props.length; i++){
|
|
6757
6757
|
var descriptor = props[i];
|
|
6758
6758
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -6761,9 +6761,9 @@ function _defineProperties$G(target, props) {
|
|
|
6761
6761
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
6762
6762
|
}
|
|
6763
6763
|
}
|
|
6764
|
-
function _create_class$
|
|
6765
|
-
if (protoProps) _defineProperties$
|
|
6766
|
-
if (staticProps) _defineProperties$
|
|
6764
|
+
function _create_class$H(Constructor, protoProps, staticProps) {
|
|
6765
|
+
if (protoProps) _defineProperties$H(Constructor.prototype, protoProps);
|
|
6766
|
+
if (staticProps) _defineProperties$H(Constructor, staticProps);
|
|
6767
6767
|
return Constructor;
|
|
6768
6768
|
}
|
|
6769
6769
|
function _define_property$$(obj, key, value) {
|
|
@@ -6903,7 +6903,7 @@ function _create_super$x(Derived) {
|
|
|
6903
6903
|
_inherits$x(RemoveMessage, BaseMessage);
|
|
6904
6904
|
var _super = _create_super$x(RemoveMessage);
|
|
6905
6905
|
function RemoveMessage(fields) {
|
|
6906
|
-
_class_call_check$
|
|
6906
|
+
_class_call_check$N(this, RemoveMessage);
|
|
6907
6907
|
var _this;
|
|
6908
6908
|
_this = _super.call(this, _object_spread_props$C(_object_spread$O({}, fields), {
|
|
6909
6909
|
content: []
|
|
@@ -6915,7 +6915,7 @@ function _create_super$x(Derived) {
|
|
|
6915
6915
|
_this.id = fields.id;
|
|
6916
6916
|
return _this;
|
|
6917
6917
|
}
|
|
6918
|
-
_create_class$
|
|
6918
|
+
_create_class$H(RemoveMessage, [
|
|
6919
6919
|
{
|
|
6920
6920
|
key: "_printableFields",
|
|
6921
6921
|
get: function get() {
|
|
@@ -6949,7 +6949,7 @@ function _assert_this_initialized$w(self) {
|
|
|
6949
6949
|
}
|
|
6950
6950
|
return self;
|
|
6951
6951
|
}
|
|
6952
|
-
function _class_call_check$
|
|
6952
|
+
function _class_call_check$M(instance, Constructor) {
|
|
6953
6953
|
if (!(instance instanceof Constructor)) {
|
|
6954
6954
|
throw new TypeError("Cannot call a class as a function");
|
|
6955
6955
|
}
|
|
@@ -7084,7 +7084,7 @@ function _isToolCall(toolCall) {
|
|
|
7084
7084
|
_inherits$w(ToolInputParsingException, Error1);
|
|
7085
7085
|
var _super = _create_super$w(ToolInputParsingException);
|
|
7086
7086
|
function ToolInputParsingException(message, output) {
|
|
7087
|
-
_class_call_check$
|
|
7087
|
+
_class_call_check$M(this, ToolInputParsingException);
|
|
7088
7088
|
var _this;
|
|
7089
7089
|
_this = _super.call(this, message);
|
|
7090
7090
|
_define_property$_(_assert_this_initialized$w(_this), "output", void 0);
|
|
@@ -7778,12 +7778,12 @@ function _assert_this_initialized$v(self) {
|
|
|
7778
7778
|
}
|
|
7779
7779
|
return self;
|
|
7780
7780
|
}
|
|
7781
|
-
function _class_call_check$
|
|
7781
|
+
function _class_call_check$L(instance, Constructor) {
|
|
7782
7782
|
if (!(instance instanceof Constructor)) {
|
|
7783
7783
|
throw new TypeError("Cannot call a class as a function");
|
|
7784
7784
|
}
|
|
7785
7785
|
}
|
|
7786
|
-
function _defineProperties$
|
|
7786
|
+
function _defineProperties$G(target, props) {
|
|
7787
7787
|
for(var i = 0; i < props.length; i++){
|
|
7788
7788
|
var descriptor = props[i];
|
|
7789
7789
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -7792,9 +7792,9 @@ function _defineProperties$F(target, props) {
|
|
|
7792
7792
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
7793
7793
|
}
|
|
7794
7794
|
}
|
|
7795
|
-
function _create_class$
|
|
7796
|
-
if (protoProps) _defineProperties$
|
|
7797
|
-
if (staticProps) _defineProperties$
|
|
7795
|
+
function _create_class$G(Constructor, protoProps, staticProps) {
|
|
7796
|
+
if (protoProps) _defineProperties$G(Constructor.prototype, protoProps);
|
|
7797
|
+
if (staticProps) _defineProperties$G(Constructor, staticProps);
|
|
7798
7798
|
return Constructor;
|
|
7799
7799
|
}
|
|
7800
7800
|
function _define_property$Y(obj, key, value) {
|
|
@@ -7905,7 +7905,7 @@ __export(base_exports$1, {
|
|
|
7905
7905
|
* overridden in derived classes to handle various events during the
|
|
7906
7906
|
* execution of a LangChain application.
|
|
7907
7907
|
*/ var BaseCallbackHandlerMethodsClass = function BaseCallbackHandlerMethodsClass() {
|
|
7908
|
-
_class_call_check$
|
|
7908
|
+
_class_call_check$L(this, BaseCallbackHandlerMethodsClass);
|
|
7909
7909
|
};
|
|
7910
7910
|
function callbackHandlerPrefersStreaming(x) {
|
|
7911
7911
|
return "lc_prefer_streaming" in x && x.lc_prefer_streaming;
|
|
@@ -7919,7 +7919,7 @@ function callbackHandlerPrefersStreaming(x) {
|
|
|
7919
7919
|
_inherits$v(BaseCallbackHandler1, BaseCallbackHandlerMethodsClass);
|
|
7920
7920
|
var _super = _create_super$v(BaseCallbackHandler1);
|
|
7921
7921
|
function BaseCallbackHandler1(input) {
|
|
7922
|
-
_class_call_check$
|
|
7922
|
+
_class_call_check$L(this, BaseCallbackHandler1);
|
|
7923
7923
|
var _this;
|
|
7924
7924
|
_this = _super.call(this);
|
|
7925
7925
|
_define_property$Y(_assert_this_initialized$v(_this), "lc_serializable", false);
|
|
@@ -7950,7 +7950,7 @@ function callbackHandlerPrefersStreaming(x) {
|
|
|
7950
7950
|
}
|
|
7951
7951
|
return _this;
|
|
7952
7952
|
}
|
|
7953
|
-
_create_class$
|
|
7953
|
+
_create_class$G(BaseCallbackHandler1, [
|
|
7954
7954
|
{
|
|
7955
7955
|
key: "lc_namespace",
|
|
7956
7956
|
get: function get() {
|
|
@@ -8032,7 +8032,7 @@ function callbackHandlerPrefersStreaming(x) {
|
|
|
8032
8032
|
_inherits$v(Handler, BaseCallbackHandler);
|
|
8033
8033
|
var _super = _create_super$v(Handler);
|
|
8034
8034
|
function Handler() {
|
|
8035
|
-
_class_call_check$
|
|
8035
|
+
_class_call_check$L(this, Handler);
|
|
8036
8036
|
var _this;
|
|
8037
8037
|
_this = _super.call(this);
|
|
8038
8038
|
_define_property$Y(_assert_this_initialized$v(_this), "name", v4());
|
|
@@ -8632,12 +8632,12 @@ function getOtelEnabled() {
|
|
|
8632
8632
|
}
|
|
8633
8633
|
|
|
8634
8634
|
// Should not import any OTEL packages to avoid pulling in optional deps.
|
|
8635
|
-
function _class_call_check$
|
|
8635
|
+
function _class_call_check$K(instance, Constructor) {
|
|
8636
8636
|
if (!(instance instanceof Constructor)) {
|
|
8637
8637
|
throw new TypeError("Cannot call a class as a function");
|
|
8638
8638
|
}
|
|
8639
8639
|
}
|
|
8640
|
-
function _defineProperties$
|
|
8640
|
+
function _defineProperties$F(target, props) {
|
|
8641
8641
|
for(var i = 0; i < props.length; i++){
|
|
8642
8642
|
var descriptor = props[i];
|
|
8643
8643
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -8646,13 +8646,13 @@ function _defineProperties$E(target, props) {
|
|
|
8646
8646
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
8647
8647
|
}
|
|
8648
8648
|
}
|
|
8649
|
-
function _create_class$
|
|
8650
|
-
if (protoProps) _defineProperties$
|
|
8649
|
+
function _create_class$F(Constructor, protoProps, staticProps) {
|
|
8650
|
+
if (protoProps) _defineProperties$F(Constructor.prototype, protoProps);
|
|
8651
8651
|
return Constructor;
|
|
8652
8652
|
}
|
|
8653
8653
|
var MockTracer = /*#__PURE__*/ function() {
|
|
8654
8654
|
function MockTracer() {
|
|
8655
|
-
_class_call_check$
|
|
8655
|
+
_class_call_check$K(this, MockTracer);
|
|
8656
8656
|
Object.defineProperty(this, "hasWarned", {
|
|
8657
8657
|
enumerable: true,
|
|
8658
8658
|
configurable: true,
|
|
@@ -8660,7 +8660,7 @@ var MockTracer = /*#__PURE__*/ function() {
|
|
|
8660
8660
|
value: false
|
|
8661
8661
|
});
|
|
8662
8662
|
}
|
|
8663
|
-
_create_class$
|
|
8663
|
+
_create_class$F(MockTracer, [
|
|
8664
8664
|
{
|
|
8665
8665
|
key: "startActiveSpan",
|
|
8666
8666
|
value: function startActiveSpan(_name) {
|
|
@@ -8694,7 +8694,7 @@ var MockTracer = /*#__PURE__*/ function() {
|
|
|
8694
8694
|
}();
|
|
8695
8695
|
var MockOTELTrace = /*#__PURE__*/ function() {
|
|
8696
8696
|
function MockOTELTrace() {
|
|
8697
|
-
_class_call_check$
|
|
8697
|
+
_class_call_check$K(this, MockOTELTrace);
|
|
8698
8698
|
Object.defineProperty(this, "mockTracer", {
|
|
8699
8699
|
enumerable: true,
|
|
8700
8700
|
configurable: true,
|
|
@@ -8702,7 +8702,7 @@ var MockOTELTrace = /*#__PURE__*/ function() {
|
|
|
8702
8702
|
value: new MockTracer()
|
|
8703
8703
|
});
|
|
8704
8704
|
}
|
|
8705
|
-
_create_class$
|
|
8705
|
+
_create_class$F(MockOTELTrace, [
|
|
8706
8706
|
{
|
|
8707
8707
|
key: "getTracer",
|
|
8708
8708
|
value: function getTracer(_name, _version) {
|
|
@@ -8750,9 +8750,9 @@ var MockOTELTrace = /*#__PURE__*/ function() {
|
|
|
8750
8750
|
}();
|
|
8751
8751
|
var MockOTELContext = /*#__PURE__*/ function() {
|
|
8752
8752
|
function MockOTELContext() {
|
|
8753
|
-
_class_call_check$
|
|
8753
|
+
_class_call_check$K(this, MockOTELContext);
|
|
8754
8754
|
}
|
|
8755
|
-
_create_class$
|
|
8755
|
+
_create_class$F(MockOTELContext, [
|
|
8756
8756
|
{
|
|
8757
8757
|
key: "active",
|
|
8758
8758
|
value: function active() {
|
|
@@ -8775,9 +8775,9 @@ var mockOTELTrace = new MockOTELTrace();
|
|
|
8775
8775
|
var mockOTELContext = new MockOTELContext();
|
|
8776
8776
|
var OTELProvider = /*#__PURE__*/ function() {
|
|
8777
8777
|
function OTELProvider() {
|
|
8778
|
-
_class_call_check$
|
|
8778
|
+
_class_call_check$K(this, OTELProvider);
|
|
8779
8779
|
}
|
|
8780
|
-
_create_class$
|
|
8780
|
+
_create_class$F(OTELProvider, [
|
|
8781
8781
|
{
|
|
8782
8782
|
key: "getTraceInstance",
|
|
8783
8783
|
value: function getTraceInstance() {
|
|
@@ -8854,12 +8854,12 @@ function _array_like_to_array$N(arr, len) {
|
|
|
8854
8854
|
function _array_with_holes$h(arr) {
|
|
8855
8855
|
if (Array.isArray(arr)) return arr;
|
|
8856
8856
|
}
|
|
8857
|
-
function _class_call_check$
|
|
8857
|
+
function _class_call_check$J(instance, Constructor) {
|
|
8858
8858
|
if (!(instance instanceof Constructor)) {
|
|
8859
8859
|
throw new TypeError("Cannot call a class as a function");
|
|
8860
8860
|
}
|
|
8861
8861
|
}
|
|
8862
|
-
function _defineProperties$
|
|
8862
|
+
function _defineProperties$E(target, props) {
|
|
8863
8863
|
for(var i = 0; i < props.length; i++){
|
|
8864
8864
|
var descriptor = props[i];
|
|
8865
8865
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -8868,8 +8868,8 @@ function _defineProperties$D(target, props) {
|
|
|
8868
8868
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
8869
8869
|
}
|
|
8870
8870
|
}
|
|
8871
|
-
function _create_class$
|
|
8872
|
-
if (protoProps) _defineProperties$
|
|
8871
|
+
function _create_class$E(Constructor, protoProps, staticProps) {
|
|
8872
|
+
if (protoProps) _defineProperties$E(Constructor.prototype, protoProps);
|
|
8873
8873
|
return Constructor;
|
|
8874
8874
|
}
|
|
8875
8875
|
function _iterable_to_array_limit$g(arr, i) {
|
|
@@ -8926,7 +8926,7 @@ function getOperationName(runType) {
|
|
|
8926
8926
|
}
|
|
8927
8927
|
var LangSmithToOTELTranslator = /*#__PURE__*/ function() {
|
|
8928
8928
|
function LangSmithToOTELTranslator() {
|
|
8929
|
-
_class_call_check$
|
|
8929
|
+
_class_call_check$J(this, LangSmithToOTELTranslator);
|
|
8930
8930
|
Object.defineProperty(this, "spans", {
|
|
8931
8931
|
enumerable: true,
|
|
8932
8932
|
configurable: true,
|
|
@@ -8934,7 +8934,7 @@ var LangSmithToOTELTranslator = /*#__PURE__*/ function() {
|
|
|
8934
8934
|
value: new Map()
|
|
8935
8935
|
});
|
|
8936
8936
|
}
|
|
8937
|
-
_create_class$
|
|
8937
|
+
_create_class$E(LangSmithToOTELTranslator, [
|
|
8938
8938
|
{
|
|
8939
8939
|
key: "exportBatch",
|
|
8940
8940
|
value: function exportBatch(operations, otelContextMap) {
|
|
@@ -9673,7 +9673,7 @@ function _async_to_generator$A(fn) {
|
|
|
9673
9673
|
});
|
|
9674
9674
|
};
|
|
9675
9675
|
}
|
|
9676
|
-
function _class_call_check$
|
|
9676
|
+
function _class_call_check$I(instance, Constructor) {
|
|
9677
9677
|
if (!(instance instanceof Constructor)) {
|
|
9678
9678
|
throw new TypeError("Cannot call a class as a function");
|
|
9679
9679
|
}
|
|
@@ -9925,7 +9925,7 @@ var AbortError = /*#__PURE__*/ function(Error1) {
|
|
|
9925
9925
|
_inherits$u(AbortError, Error1);
|
|
9926
9926
|
var _super = _create_super$u(AbortError);
|
|
9927
9927
|
function AbortError(message) {
|
|
9928
|
-
_class_call_check$
|
|
9928
|
+
_class_call_check$I(this, AbortError);
|
|
9929
9929
|
var _this;
|
|
9930
9930
|
_this = _super.call(this);
|
|
9931
9931
|
if (_instanceof$f(message, Error)) {
|
|
@@ -10381,7 +10381,7 @@ function _assert_this_initialized$t(self) {
|
|
|
10381
10381
|
}
|
|
10382
10382
|
return self;
|
|
10383
10383
|
}
|
|
10384
|
-
function _class_call_check$
|
|
10384
|
+
function _class_call_check$H(instance, Constructor) {
|
|
10385
10385
|
if (!(instance instanceof Constructor)) {
|
|
10386
10386
|
throw new TypeError("Cannot call a class as a function");
|
|
10387
10387
|
}
|
|
@@ -10504,7 +10504,7 @@ var TimeoutError = /*#__PURE__*/ function(Error1) {
|
|
|
10504
10504
|
_inherits$t(TimeoutError, Error1);
|
|
10505
10505
|
var _super = _create_super$t(TimeoutError);
|
|
10506
10506
|
function TimeoutError(message) {
|
|
10507
|
-
_class_call_check$
|
|
10507
|
+
_class_call_check$H(this, TimeoutError);
|
|
10508
10508
|
var _this;
|
|
10509
10509
|
_this = _super.call(this, message);
|
|
10510
10510
|
_this.name = 'TimeoutError';
|
|
@@ -10577,12 +10577,12 @@ function lowerBound(array, value, comparator) {
|
|
|
10577
10577
|
}
|
|
10578
10578
|
lowerBound$1.default = lowerBound;
|
|
10579
10579
|
|
|
10580
|
-
function _class_call_check$
|
|
10580
|
+
function _class_call_check$G(instance, Constructor) {
|
|
10581
10581
|
if (!(instance instanceof Constructor)) {
|
|
10582
10582
|
throw new TypeError("Cannot call a class as a function");
|
|
10583
10583
|
}
|
|
10584
10584
|
}
|
|
10585
|
-
function _defineProperties$
|
|
10585
|
+
function _defineProperties$D(target, props) {
|
|
10586
10586
|
for(var i = 0; i < props.length; i++){
|
|
10587
10587
|
var descriptor = props[i];
|
|
10588
10588
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -10591,8 +10591,8 @@ function _defineProperties$C(target, props) {
|
|
|
10591
10591
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
10592
10592
|
}
|
|
10593
10593
|
}
|
|
10594
|
-
function _create_class$
|
|
10595
|
-
if (protoProps) _defineProperties$
|
|
10594
|
+
function _create_class$D(Constructor, protoProps, staticProps) {
|
|
10595
|
+
if (protoProps) _defineProperties$D(Constructor.prototype, protoProps);
|
|
10596
10596
|
return Constructor;
|
|
10597
10597
|
}
|
|
10598
10598
|
Object.defineProperty(priorityQueue, "__esModule", {
|
|
@@ -10601,10 +10601,10 @@ Object.defineProperty(priorityQueue, "__esModule", {
|
|
|
10601
10601
|
var lower_bound_1 = lowerBound$1;
|
|
10602
10602
|
var PriorityQueue = /*#__PURE__*/ function() {
|
|
10603
10603
|
function PriorityQueue() {
|
|
10604
|
-
_class_call_check$
|
|
10604
|
+
_class_call_check$G(this, PriorityQueue);
|
|
10605
10605
|
this._queue = [];
|
|
10606
10606
|
}
|
|
10607
|
-
_create_class$
|
|
10607
|
+
_create_class$D(PriorityQueue, [
|
|
10608
10608
|
{
|
|
10609
10609
|
key: "enqueue",
|
|
10610
10610
|
value: function enqueue(run, options) {
|
|
@@ -10688,12 +10688,12 @@ function _async_to_generator$z(fn) {
|
|
|
10688
10688
|
});
|
|
10689
10689
|
};
|
|
10690
10690
|
}
|
|
10691
|
-
function _class_call_check$
|
|
10691
|
+
function _class_call_check$F(instance, Constructor) {
|
|
10692
10692
|
if (!(instance instanceof Constructor)) {
|
|
10693
10693
|
throw new TypeError("Cannot call a class as a function");
|
|
10694
10694
|
}
|
|
10695
10695
|
}
|
|
10696
|
-
function _defineProperties$
|
|
10696
|
+
function _defineProperties$C(target, props) {
|
|
10697
10697
|
for(var i = 0; i < props.length; i++){
|
|
10698
10698
|
var descriptor = props[i];
|
|
10699
10699
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -10702,8 +10702,8 @@ function _defineProperties$B(target, props) {
|
|
|
10702
10702
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
10703
10703
|
}
|
|
10704
10704
|
}
|
|
10705
|
-
function _create_class$
|
|
10706
|
-
if (protoProps) _defineProperties$
|
|
10705
|
+
function _create_class$C(Constructor, protoProps, staticProps) {
|
|
10706
|
+
if (protoProps) _defineProperties$C(Constructor.prototype, protoProps);
|
|
10707
10707
|
return Constructor;
|
|
10708
10708
|
}
|
|
10709
10709
|
function _get_prototype_of$s(o) {
|
|
@@ -10876,7 +10876,7 @@ Promise queue with concurrency control.
|
|
|
10876
10876
|
_inherits$s(PQueue, EventEmitter);
|
|
10877
10877
|
var _super = _create_super$s(PQueue);
|
|
10878
10878
|
function PQueue(options) {
|
|
10879
|
-
_class_call_check$
|
|
10879
|
+
_class_call_check$F(this, PQueue);
|
|
10880
10880
|
var _this;
|
|
10881
10881
|
var _a, _b, _c, _d;
|
|
10882
10882
|
_this = _super.call(this);
|
|
@@ -10912,7 +10912,7 @@ Promise queue with concurrency control.
|
|
|
10912
10912
|
_this._isPaused = options.autoStart === false;
|
|
10913
10913
|
return _this;
|
|
10914
10914
|
}
|
|
10915
|
-
_create_class$
|
|
10915
|
+
_create_class$C(PQueue, [
|
|
10916
10916
|
{
|
|
10917
10917
|
key: "_doesIntervalAllowAnother",
|
|
10918
10918
|
get: function get() {
|
|
@@ -11335,12 +11335,12 @@ function _async_to_generator$y(fn) {
|
|
|
11335
11335
|
});
|
|
11336
11336
|
};
|
|
11337
11337
|
}
|
|
11338
|
-
function _class_call_check$
|
|
11338
|
+
function _class_call_check$E(instance, Constructor) {
|
|
11339
11339
|
if (!(instance instanceof Constructor)) {
|
|
11340
11340
|
throw new TypeError("Cannot call a class as a function");
|
|
11341
11341
|
}
|
|
11342
11342
|
}
|
|
11343
|
-
function _defineProperties$
|
|
11343
|
+
function _defineProperties$B(target, props) {
|
|
11344
11344
|
for(var i = 0; i < props.length; i++){
|
|
11345
11345
|
var descriptor = props[i];
|
|
11346
11346
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -11349,8 +11349,8 @@ function _defineProperties$A(target, props) {
|
|
|
11349
11349
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
11350
11350
|
}
|
|
11351
11351
|
}
|
|
11352
|
-
function _create_class$
|
|
11353
|
-
if (protoProps) _defineProperties$
|
|
11352
|
+
function _create_class$B(Constructor, protoProps, staticProps) {
|
|
11353
|
+
if (protoProps) _defineProperties$B(Constructor.prototype, protoProps);
|
|
11354
11354
|
return Constructor;
|
|
11355
11355
|
}
|
|
11356
11356
|
function _instanceof$d(left, right) {
|
|
@@ -11493,7 +11493,7 @@ var STATUS_RETRYABLE = [
|
|
|
11493
11493
|
* exponential backoff between each attempt.
|
|
11494
11494
|
*/ var AsyncCaller$1 = /*#__PURE__*/ function() {
|
|
11495
11495
|
function AsyncCaller(params) {
|
|
11496
|
-
_class_call_check$
|
|
11496
|
+
_class_call_check$E(this, AsyncCaller);
|
|
11497
11497
|
Object.defineProperty(this, "maxConcurrency", {
|
|
11498
11498
|
enumerable: true,
|
|
11499
11499
|
configurable: true,
|
|
@@ -11535,7 +11535,7 @@ var STATUS_RETRYABLE = [
|
|
|
11535
11535
|
}
|
|
11536
11536
|
this.onFailedResponseHook = params === null || params === void 0 ? void 0 : params.onFailedResponseHook;
|
|
11537
11537
|
}
|
|
11538
|
-
_create_class$
|
|
11538
|
+
_create_class$B(AsyncCaller, [
|
|
11539
11539
|
{
|
|
11540
11540
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
11541
11541
|
key: "call",
|
|
@@ -12030,12 +12030,12 @@ var identifiers$1 = {
|
|
|
12030
12030
|
rcompareIdentifiers: rcompareIdentifiers
|
|
12031
12031
|
};
|
|
12032
12032
|
|
|
12033
|
-
function _class_call_check$
|
|
12033
|
+
function _class_call_check$D(instance, Constructor) {
|
|
12034
12034
|
if (!(instance instanceof Constructor)) {
|
|
12035
12035
|
throw new TypeError("Cannot call a class as a function");
|
|
12036
12036
|
}
|
|
12037
12037
|
}
|
|
12038
|
-
function _defineProperties$
|
|
12038
|
+
function _defineProperties$A(target, props) {
|
|
12039
12039
|
for(var i = 0; i < props.length; i++){
|
|
12040
12040
|
var descriptor = props[i];
|
|
12041
12041
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -12044,8 +12044,8 @@ function _defineProperties$z(target, props) {
|
|
|
12044
12044
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
12045
12045
|
}
|
|
12046
12046
|
}
|
|
12047
|
-
function _create_class$
|
|
12048
|
-
if (protoProps) _defineProperties$
|
|
12047
|
+
function _create_class$A(Constructor, protoProps, staticProps) {
|
|
12048
|
+
if (protoProps) _defineProperties$A(Constructor.prototype, protoProps);
|
|
12049
12049
|
return Constructor;
|
|
12050
12050
|
}
|
|
12051
12051
|
function _instanceof$c(left, right) {
|
|
@@ -12066,7 +12066,7 @@ var parseOptions = parseOptions_1;
|
|
|
12066
12066
|
var compareIdentifiers = identifiers$1.compareIdentifiers;
|
|
12067
12067
|
var SemVer$1 = /*#__PURE__*/ function() {
|
|
12068
12068
|
function SemVer(version, options) {
|
|
12069
|
-
_class_call_check$
|
|
12069
|
+
_class_call_check$D(this, SemVer);
|
|
12070
12070
|
options = parseOptions(options);
|
|
12071
12071
|
if (_instanceof$c(version, SemVer)) {
|
|
12072
12072
|
if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) {
|
|
@@ -12121,7 +12121,7 @@ var SemVer$1 = /*#__PURE__*/ function() {
|
|
|
12121
12121
|
this.build = m[5] ? m[5].split('.') : [];
|
|
12122
12122
|
this.format();
|
|
12123
12123
|
}
|
|
12124
|
-
_create_class$
|
|
12124
|
+
_create_class$A(SemVer, [
|
|
12125
12125
|
{
|
|
12126
12126
|
key: "format",
|
|
12127
12127
|
value: function format() {
|
|
@@ -12479,78 +12479,70 @@ var cmp_1 = cmp;
|
|
|
12479
12479
|
|
|
12480
12480
|
var _require = reExports; _require.safeRe; _require.t;
|
|
12481
12481
|
|
|
12482
|
-
|
|
12483
|
-
|
|
12484
|
-
|
|
12485
|
-
|
|
12486
|
-
|
|
12487
|
-
|
|
12488
|
-
|
|
12489
|
-
|
|
12490
|
-
|
|
12491
|
-
|
|
12492
|
-
|
|
12493
|
-
|
|
12494
|
-
|
|
12495
|
-
|
|
12496
|
-
|
|
12497
|
-
|
|
12498
|
-
|
|
12499
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
12500
|
-
}
|
|
12501
|
-
}
|
|
12502
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
12503
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
12504
|
-
return Constructor;
|
|
12505
|
-
}
|
|
12506
|
-
var LRUCache = /*#__PURE__*/ function() {
|
|
12507
|
-
function LRUCache() {
|
|
12508
|
-
_class_call_check(this, LRUCache);
|
|
12509
|
-
this.max = 1000;
|
|
12510
|
-
this.map = new Map();
|
|
12511
|
-
}
|
|
12512
|
-
_create_class(LRUCache, [
|
|
12513
|
-
{
|
|
12514
|
-
key: "get",
|
|
12515
|
-
value: function get(key) {
|
|
12516
|
-
var value = this.map.get(key);
|
|
12517
|
-
if (value === undefined) {
|
|
12518
|
-
return undefined;
|
|
12519
|
-
} else {
|
|
12520
|
-
// Remove the key from the map and add it to the end
|
|
12521
|
-
this.map.delete(key);
|
|
12522
|
-
this.map.set(key, value);
|
|
12523
|
-
return value;
|
|
12524
|
-
}
|
|
12525
|
-
}
|
|
12526
|
-
},
|
|
12527
|
-
{
|
|
12528
|
-
key: "delete",
|
|
12529
|
-
value: function _delete(key) {
|
|
12530
|
-
return this.map.delete(key);
|
|
12531
|
-
}
|
|
12532
|
-
},
|
|
12533
|
-
{
|
|
12534
|
-
key: "set",
|
|
12535
|
-
value: function set(key, value) {
|
|
12536
|
-
var deleted = this.delete(key);
|
|
12537
|
-
if (!deleted && value !== undefined) {
|
|
12538
|
-
// If cache is full, delete the least recently used item
|
|
12539
|
-
if (this.map.size >= this.max) {
|
|
12540
|
-
var firstKey = this.map.keys().next().value;
|
|
12541
|
-
this.delete(firstKey);
|
|
12542
|
-
}
|
|
12543
|
-
this.map.set(key, value);
|
|
12544
|
-
}
|
|
12545
|
-
return this;
|
|
12546
|
-
}
|
|
12547
|
-
}
|
|
12548
|
-
]);
|
|
12549
|
-
return LRUCache;
|
|
12550
|
-
}();
|
|
12551
|
-
lrucache = LRUCache;
|
|
12552
|
-
return lrucache;
|
|
12482
|
+
function _class_call_check$C(instance, Constructor) {
|
|
12483
|
+
if (!(instance instanceof Constructor)) {
|
|
12484
|
+
throw new TypeError("Cannot call a class as a function");
|
|
12485
|
+
}
|
|
12486
|
+
}
|
|
12487
|
+
function _defineProperties$z(target, props) {
|
|
12488
|
+
for(var i = 0; i < props.length; i++){
|
|
12489
|
+
var descriptor = props[i];
|
|
12490
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
12491
|
+
descriptor.configurable = true;
|
|
12492
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
12493
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
12494
|
+
}
|
|
12495
|
+
}
|
|
12496
|
+
function _create_class$z(Constructor, protoProps, staticProps) {
|
|
12497
|
+
if (protoProps) _defineProperties$z(Constructor.prototype, protoProps);
|
|
12498
|
+
return Constructor;
|
|
12553
12499
|
}
|
|
12500
|
+
var LRUCache = /*#__PURE__*/ function() {
|
|
12501
|
+
function LRUCache() {
|
|
12502
|
+
_class_call_check$C(this, LRUCache);
|
|
12503
|
+
this.max = 1000;
|
|
12504
|
+
this.map = new Map();
|
|
12505
|
+
}
|
|
12506
|
+
_create_class$z(LRUCache, [
|
|
12507
|
+
{
|
|
12508
|
+
key: "get",
|
|
12509
|
+
value: function get(key) {
|
|
12510
|
+
var value = this.map.get(key);
|
|
12511
|
+
if (value === undefined) {
|
|
12512
|
+
return undefined;
|
|
12513
|
+
} else {
|
|
12514
|
+
// Remove the key from the map and add it to the end
|
|
12515
|
+
this.map.delete(key);
|
|
12516
|
+
this.map.set(key, value);
|
|
12517
|
+
return value;
|
|
12518
|
+
}
|
|
12519
|
+
}
|
|
12520
|
+
},
|
|
12521
|
+
{
|
|
12522
|
+
key: "delete",
|
|
12523
|
+
value: function _delete(key) {
|
|
12524
|
+
return this.map.delete(key);
|
|
12525
|
+
}
|
|
12526
|
+
},
|
|
12527
|
+
{
|
|
12528
|
+
key: "set",
|
|
12529
|
+
value: function set(key, value) {
|
|
12530
|
+
var deleted = this.delete(key);
|
|
12531
|
+
if (!deleted && value !== undefined) {
|
|
12532
|
+
// If cache is full, delete the least recently used item
|
|
12533
|
+
if (this.map.size >= this.max) {
|
|
12534
|
+
var firstKey = this.map.keys().next().value;
|
|
12535
|
+
this.delete(firstKey);
|
|
12536
|
+
}
|
|
12537
|
+
this.map.set(key, value);
|
|
12538
|
+
}
|
|
12539
|
+
return this;
|
|
12540
|
+
}
|
|
12541
|
+
}
|
|
12542
|
+
]);
|
|
12543
|
+
return LRUCache;
|
|
12544
|
+
}();
|
|
12545
|
+
var lrucache = LRUCache;
|
|
12554
12546
|
|
|
12555
12547
|
var range;
|
|
12556
12548
|
var hasRequiredRange;
|
|
@@ -12854,7 +12846,7 @@ function requireRange () {
|
|
|
12854
12846
|
return Range;
|
|
12855
12847
|
}();
|
|
12856
12848
|
range = Range;
|
|
12857
|
-
var LRU =
|
|
12849
|
+
var LRU = lrucache;
|
|
12858
12850
|
var cache = new LRU();
|
|
12859
12851
|
var parseOptions = parseOptions_1;
|
|
12860
12852
|
var Comparator = requireComparator();
|
package/dist/index.esm.js
CHANGED
|
@@ -22838,14 +22838,14 @@ function indent(str, spaces) {
|
|
|
22838
22838
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
22839
22839
|
// match is required
|
|
22840
22840
|
if (!match) {
|
|
22841
|
-
return tokens = tokens1,
|
|
22841
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
|
|
22842
22842
|
v: nextMatch1
|
|
22843
22843
|
};
|
|
22844
22844
|
}
|
|
22845
22845
|
var token = match.token, offset = match.offset;
|
|
22846
22846
|
i1 += offset;
|
|
22847
22847
|
if (token === ' ') {
|
|
22848
|
-
return tokens = tokens1,
|
|
22848
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
22849
22849
|
}
|
|
22850
22850
|
tokens1 = _to_consumable_array$4$1(tokens1).concat([
|
|
22851
22851
|
token
|
|
@@ -22864,7 +22864,7 @@ function indent(str, spaces) {
|
|
|
22864
22864
|
if (contextKeys.some(function(el) {
|
|
22865
22865
|
return el.startsWith(name);
|
|
22866
22866
|
})) {
|
|
22867
|
-
return tokens = tokens1,
|
|
22867
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
22868
22868
|
}
|
|
22869
22869
|
if (dateTimeIdentifiers.some(function(el) {
|
|
22870
22870
|
return el === name;
|
|
@@ -22883,9 +22883,9 @@ function indent(str, spaces) {
|
|
|
22883
22883
|
if (dateTimeIdentifiers.some(function(el) {
|
|
22884
22884
|
return el.startsWith(name);
|
|
22885
22885
|
})) {
|
|
22886
|
-
return tokens = tokens1,
|
|
22886
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
22887
22887
|
}
|
|
22888
|
-
return tokens = tokens1,
|
|
22888
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
|
|
22889
22889
|
v: nextMatch1
|
|
22890
22890
|
};
|
|
22891
22891
|
};
|