@xpert-ai/plugin-sdk 0.0.3-0 → 3.6.0-beta.6
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/index.cjs.js +211 -193
- package/index.esm.js +211 -194
- package/package.json +2 -2
- package/src/lib/core/i18n.d.ts +2 -0
- package/src/lib/core/index.d.ts +1 -0
- package/src/lib/core/schema.d.ts +2 -2
- package/src/lib/integration/strategy.interface.d.ts +1 -0
- package/src/lib/rag/source/strategy.interface.d.ts +10 -0
- package/src/lib/rag/transformer/strategy.interface.d.ts +2 -17
- package/src/lib/types.d.ts +8 -8
package/index.cjs.js
CHANGED
|
@@ -8,6 +8,8 @@ var http = require('http');
|
|
|
8
8
|
var https = require('https');
|
|
9
9
|
var fsPromises = require('fs/promises');
|
|
10
10
|
var path = require('path');
|
|
11
|
+
var i18next = require('i18next');
|
|
12
|
+
var FsBackend = require('i18next-fs-backend');
|
|
11
13
|
|
|
12
14
|
// Current version.
|
|
13
15
|
var VERSION = "1.13.7";
|
|
@@ -2659,7 +2661,7 @@ function _assert_this_initialized$n(self) {
|
|
|
2659
2661
|
}
|
|
2660
2662
|
return self;
|
|
2661
2663
|
}
|
|
2662
|
-
function _class_call_check$
|
|
2664
|
+
function _class_call_check$G(instance, Constructor) {
|
|
2663
2665
|
if (!(instance instanceof Constructor)) {
|
|
2664
2666
|
throw new TypeError("Cannot call a class as a function");
|
|
2665
2667
|
}
|
|
@@ -2681,7 +2683,7 @@ function _construct$7(Parent, args, Class) {
|
|
|
2681
2683
|
}
|
|
2682
2684
|
return _construct$7.apply(null, arguments);
|
|
2683
2685
|
}
|
|
2684
|
-
function _defineProperties$
|
|
2686
|
+
function _defineProperties$A(target, props) {
|
|
2685
2687
|
for(var i = 0; i < props.length; i++){
|
|
2686
2688
|
var descriptor = props[i];
|
|
2687
2689
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -2690,9 +2692,9 @@ function _defineProperties$z(target, props) {
|
|
|
2690
2692
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
2691
2693
|
}
|
|
2692
2694
|
}
|
|
2693
|
-
function _create_class$
|
|
2694
|
-
if (protoProps) _defineProperties$
|
|
2695
|
-
if (staticProps) _defineProperties$
|
|
2695
|
+
function _create_class$A(Constructor, protoProps, staticProps) {
|
|
2696
|
+
if (protoProps) _defineProperties$A(Constructor.prototype, protoProps);
|
|
2697
|
+
if (staticProps) _defineProperties$A(Constructor, staticProps);
|
|
2696
2698
|
return Constructor;
|
|
2697
2699
|
}
|
|
2698
2700
|
function _get_prototype_of$n(o) {
|
|
@@ -2830,7 +2832,7 @@ var ZodError = /*#__PURE__*/ function _target(Error1) {
|
|
|
2830
2832
|
_inherits$n(ZodError, Error1);
|
|
2831
2833
|
var _super = _create_super$n(ZodError);
|
|
2832
2834
|
function ZodError(issues) {
|
|
2833
|
-
_class_call_check$
|
|
2835
|
+
_class_call_check$G(this, ZodError);
|
|
2834
2836
|
var _this;
|
|
2835
2837
|
_this = _super.call(this);
|
|
2836
2838
|
_this.issues = [];
|
|
@@ -2854,7 +2856,7 @@ var ZodError = /*#__PURE__*/ function _target(Error1) {
|
|
|
2854
2856
|
_this.issues = issues;
|
|
2855
2857
|
return _this;
|
|
2856
2858
|
}
|
|
2857
|
-
_create_class$
|
|
2859
|
+
_create_class$A(ZodError, [
|
|
2858
2860
|
{
|
|
2859
2861
|
key: "errors",
|
|
2860
2862
|
get: function get() {
|
|
@@ -3142,12 +3144,12 @@ function _async_to_generator$q(fn) {
|
|
|
3142
3144
|
});
|
|
3143
3145
|
};
|
|
3144
3146
|
}
|
|
3145
|
-
function _class_call_check$
|
|
3147
|
+
function _class_call_check$F(instance, Constructor) {
|
|
3146
3148
|
if (!(instance instanceof Constructor)) {
|
|
3147
3149
|
throw new TypeError("Cannot call a class as a function");
|
|
3148
3150
|
}
|
|
3149
3151
|
}
|
|
3150
|
-
function _defineProperties$
|
|
3152
|
+
function _defineProperties$z(target, props) {
|
|
3151
3153
|
for(var i = 0; i < props.length; i++){
|
|
3152
3154
|
var descriptor = props[i];
|
|
3153
3155
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -3156,9 +3158,9 @@ function _defineProperties$y(target, props) {
|
|
|
3156
3158
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
3157
3159
|
}
|
|
3158
3160
|
}
|
|
3159
|
-
function _create_class$
|
|
3160
|
-
if (protoProps) _defineProperties$
|
|
3161
|
-
if (staticProps) _defineProperties$
|
|
3161
|
+
function _create_class$z(Constructor, protoProps, staticProps) {
|
|
3162
|
+
if (protoProps) _defineProperties$z(Constructor.prototype, protoProps);
|
|
3163
|
+
if (staticProps) _defineProperties$z(Constructor, staticProps);
|
|
3162
3164
|
return Constructor;
|
|
3163
3165
|
}
|
|
3164
3166
|
function _define_property$O(obj, key, value) {
|
|
@@ -3390,10 +3392,10 @@ function addIssueToContext(ctx, issueData) {
|
|
|
3390
3392
|
}
|
|
3391
3393
|
var ParseStatus = /*#__PURE__*/ function() {
|
|
3392
3394
|
function ParseStatus() {
|
|
3393
|
-
_class_call_check$
|
|
3395
|
+
_class_call_check$F(this, ParseStatus);
|
|
3394
3396
|
this.value = "valid";
|
|
3395
3397
|
}
|
|
3396
|
-
_create_class$
|
|
3398
|
+
_create_class$z(ParseStatus, [
|
|
3397
3399
|
{
|
|
3398
3400
|
key: "dirty",
|
|
3399
3401
|
value: function dirty() {
|
|
@@ -3651,12 +3653,12 @@ function _async_to_generator$p(fn) {
|
|
|
3651
3653
|
});
|
|
3652
3654
|
};
|
|
3653
3655
|
}
|
|
3654
|
-
function _class_call_check$
|
|
3656
|
+
function _class_call_check$E(instance, Constructor) {
|
|
3655
3657
|
if (!(instance instanceof Constructor)) {
|
|
3656
3658
|
throw new TypeError("Cannot call a class as a function");
|
|
3657
3659
|
}
|
|
3658
3660
|
}
|
|
3659
|
-
function _defineProperties$
|
|
3661
|
+
function _defineProperties$y(target, props) {
|
|
3660
3662
|
for(var i = 0; i < props.length; i++){
|
|
3661
3663
|
var descriptor = props[i];
|
|
3662
3664
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -3665,9 +3667,9 @@ function _defineProperties$x(target, props) {
|
|
|
3665
3667
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
3666
3668
|
}
|
|
3667
3669
|
}
|
|
3668
|
-
function _create_class$
|
|
3669
|
-
if (protoProps) _defineProperties$
|
|
3670
|
-
if (staticProps) _defineProperties$
|
|
3670
|
+
function _create_class$y(Constructor, protoProps, staticProps) {
|
|
3671
|
+
if (protoProps) _defineProperties$y(Constructor.prototype, protoProps);
|
|
3672
|
+
if (staticProps) _defineProperties$y(Constructor, staticProps);
|
|
3671
3673
|
return Constructor;
|
|
3672
3674
|
}
|
|
3673
3675
|
function _define_property$N(obj, key, value) {
|
|
@@ -3928,14 +3930,14 @@ function _ts_generator$q(thisArg, body) {
|
|
|
3928
3930
|
}
|
|
3929
3931
|
var ParseInputLazyPath = /*#__PURE__*/ function() {
|
|
3930
3932
|
function ParseInputLazyPath(parent, value, path, key) {
|
|
3931
|
-
_class_call_check$
|
|
3933
|
+
_class_call_check$E(this, ParseInputLazyPath);
|
|
3932
3934
|
this._cachedPath = [];
|
|
3933
3935
|
this.parent = parent;
|
|
3934
3936
|
this.data = value;
|
|
3935
3937
|
this._path = path;
|
|
3936
3938
|
this._key = key;
|
|
3937
3939
|
}
|
|
3938
|
-
_create_class$
|
|
3940
|
+
_create_class$y(ParseInputLazyPath, [
|
|
3939
3941
|
{
|
|
3940
3942
|
key: "path",
|
|
3941
3943
|
get: function get() {
|
|
@@ -4016,7 +4018,7 @@ function processCreateParams(params) {
|
|
|
4016
4018
|
var ZodType = /*#__PURE__*/ function() {
|
|
4017
4019
|
function ZodType(def) {
|
|
4018
4020
|
var _this = this;
|
|
4019
|
-
_class_call_check$
|
|
4021
|
+
_class_call_check$E(this, ZodType);
|
|
4020
4022
|
/** Alias of safeParseAsync */ this.spa = this.safeParseAsync;
|
|
4021
4023
|
this._def = def;
|
|
4022
4024
|
this.parse = this.parse.bind(this);
|
|
@@ -4051,7 +4053,7 @@ var ZodType = /*#__PURE__*/ function() {
|
|
|
4051
4053
|
}
|
|
4052
4054
|
};
|
|
4053
4055
|
}
|
|
4054
|
-
_create_class$
|
|
4056
|
+
_create_class$y(ZodType, [
|
|
4055
4057
|
{
|
|
4056
4058
|
key: "description",
|
|
4057
4059
|
get: function get() {
|
|
@@ -4564,10 +4566,10 @@ var ZodString = /*#__PURE__*/ function(ZodType) {
|
|
|
4564
4566
|
_inherits$m(ZodString, ZodType);
|
|
4565
4567
|
var _super = _create_super$m(ZodString);
|
|
4566
4568
|
function ZodString() {
|
|
4567
|
-
_class_call_check$
|
|
4569
|
+
_class_call_check$E(this, ZodString);
|
|
4568
4570
|
return _super.apply(this, arguments);
|
|
4569
4571
|
}
|
|
4570
|
-
_create_class$
|
|
4572
|
+
_create_class$y(ZodString, [
|
|
4571
4573
|
{
|
|
4572
4574
|
key: "_parse",
|
|
4573
4575
|
value: function _parse(input) {
|
|
@@ -5389,7 +5391,7 @@ var ZodAny = /*#__PURE__*/ function(ZodType) {
|
|
|
5389
5391
|
_inherits$m(ZodAny, ZodType);
|
|
5390
5392
|
var _super = _create_super$m(ZodAny);
|
|
5391
5393
|
function ZodAny() {
|
|
5392
|
-
_class_call_check$
|
|
5394
|
+
_class_call_check$E(this, ZodAny);
|
|
5393
5395
|
var _this;
|
|
5394
5396
|
_this = _super.call.apply(_super, [
|
|
5395
5397
|
this
|
|
@@ -5398,7 +5400,7 @@ var ZodAny = /*#__PURE__*/ function(ZodType) {
|
|
|
5398
5400
|
_this._any = true;
|
|
5399
5401
|
return _this;
|
|
5400
5402
|
}
|
|
5401
|
-
_create_class$
|
|
5403
|
+
_create_class$y(ZodAny, [
|
|
5402
5404
|
{
|
|
5403
5405
|
key: "_parse",
|
|
5404
5406
|
value: function _parse(input) {
|
|
@@ -5417,10 +5419,10 @@ var ZodNever = /*#__PURE__*/ function(ZodType) {
|
|
|
5417
5419
|
_inherits$m(ZodNever, ZodType);
|
|
5418
5420
|
var _super = _create_super$m(ZodNever);
|
|
5419
5421
|
function ZodNever() {
|
|
5420
|
-
_class_call_check$
|
|
5422
|
+
_class_call_check$E(this, ZodNever);
|
|
5421
5423
|
return _super.apply(this, arguments);
|
|
5422
5424
|
}
|
|
5423
|
-
_create_class$
|
|
5425
|
+
_create_class$y(ZodNever, [
|
|
5424
5426
|
{
|
|
5425
5427
|
key: "_parse",
|
|
5426
5428
|
value: function _parse(input) {
|
|
@@ -5445,10 +5447,10 @@ var ZodArray = /*#__PURE__*/ function(ZodType) {
|
|
|
5445
5447
|
_inherits$m(ZodArray, ZodType);
|
|
5446
5448
|
var _super = _create_super$m(ZodArray);
|
|
5447
5449
|
function ZodArray() {
|
|
5448
|
-
_class_call_check$
|
|
5450
|
+
_class_call_check$E(this, ZodArray);
|
|
5449
5451
|
return _super.apply(this, arguments);
|
|
5450
5452
|
}
|
|
5451
|
-
_create_class$
|
|
5453
|
+
_create_class$y(ZodArray, [
|
|
5452
5454
|
{
|
|
5453
5455
|
key: "_parse",
|
|
5454
5456
|
value: function _parse(input) {
|
|
@@ -5606,7 +5608,7 @@ var ZodObject = /*#__PURE__*/ function(ZodType) {
|
|
|
5606
5608
|
_inherits$m(ZodObject, ZodType);
|
|
5607
5609
|
var _super = _create_super$m(ZodObject);
|
|
5608
5610
|
function ZodObject() {
|
|
5609
|
-
_class_call_check$
|
|
5611
|
+
_class_call_check$E(this, ZodObject);
|
|
5610
5612
|
var _this;
|
|
5611
5613
|
_this = _super.call.apply(_super, [
|
|
5612
5614
|
this
|
|
@@ -5654,7 +5656,7 @@ var ZodObject = /*#__PURE__*/ function(ZodType) {
|
|
|
5654
5656
|
* */ _this.augment = _this.extend;
|
|
5655
5657
|
return _this;
|
|
5656
5658
|
}
|
|
5657
|
-
_create_class$
|
|
5659
|
+
_create_class$y(ZodObject, [
|
|
5658
5660
|
{
|
|
5659
5661
|
key: "_getCached",
|
|
5660
5662
|
value: function _getCached() {
|
|
@@ -6239,10 +6241,10 @@ var ZodUnion = /*#__PURE__*/ function(ZodType) {
|
|
|
6239
6241
|
_inherits$m(ZodUnion, ZodType);
|
|
6240
6242
|
var _super = _create_super$m(ZodUnion);
|
|
6241
6243
|
function ZodUnion() {
|
|
6242
|
-
_class_call_check$
|
|
6244
|
+
_class_call_check$E(this, ZodUnion);
|
|
6243
6245
|
return _super.apply(this, arguments);
|
|
6244
6246
|
}
|
|
6245
|
-
_create_class$
|
|
6247
|
+
_create_class$y(ZodUnion, [
|
|
6246
6248
|
{
|
|
6247
6249
|
key: "_parse",
|
|
6248
6250
|
value: function _parse(input) {
|
|
@@ -6497,10 +6499,10 @@ var ZodIntersection = /*#__PURE__*/ function(ZodType) {
|
|
|
6497
6499
|
_inherits$m(ZodIntersection, ZodType);
|
|
6498
6500
|
var _super = _create_super$m(ZodIntersection);
|
|
6499
6501
|
function ZodIntersection() {
|
|
6500
|
-
_class_call_check$
|
|
6502
|
+
_class_call_check$E(this, ZodIntersection);
|
|
6501
6503
|
return _super.apply(this, arguments);
|
|
6502
6504
|
}
|
|
6503
|
-
_create_class$
|
|
6505
|
+
_create_class$y(ZodIntersection, [
|
|
6504
6506
|
{
|
|
6505
6507
|
key: "_parse",
|
|
6506
6508
|
value: function _parse(input) {
|
|
@@ -6568,10 +6570,10 @@ var ZodTuple = /*#__PURE__*/ function(ZodType) {
|
|
|
6568
6570
|
_inherits$m(ZodTuple, ZodType);
|
|
6569
6571
|
var _super = _create_super$m(ZodTuple);
|
|
6570
6572
|
function ZodTuple() {
|
|
6571
|
-
_class_call_check$
|
|
6573
|
+
_class_call_check$E(this, ZodTuple);
|
|
6572
6574
|
return _super.apply(this, arguments);
|
|
6573
6575
|
}
|
|
6574
|
-
_create_class$
|
|
6576
|
+
_create_class$y(ZodTuple, [
|
|
6575
6577
|
{
|
|
6576
6578
|
key: "_parse",
|
|
6577
6579
|
value: function _parse(input) {
|
|
@@ -6659,10 +6661,10 @@ var ZodEnum = /*#__PURE__*/ function(ZodType) {
|
|
|
6659
6661
|
_inherits$m(ZodEnum, ZodType);
|
|
6660
6662
|
var _super = _create_super$m(ZodEnum);
|
|
6661
6663
|
function ZodEnum() {
|
|
6662
|
-
_class_call_check$
|
|
6664
|
+
_class_call_check$E(this, ZodEnum);
|
|
6663
6665
|
return _super.apply(this, arguments);
|
|
6664
6666
|
}
|
|
6665
|
-
_create_class$
|
|
6667
|
+
_create_class$y(ZodEnum, [
|
|
6666
6668
|
{
|
|
6667
6669
|
key: "_parse",
|
|
6668
6670
|
value: function _parse(input) {
|
|
@@ -6803,10 +6805,10 @@ var ZodPromise = /*#__PURE__*/ function(ZodType) {
|
|
|
6803
6805
|
_inherits$m(ZodPromise, ZodType);
|
|
6804
6806
|
var _super = _create_super$m(ZodPromise);
|
|
6805
6807
|
function ZodPromise() {
|
|
6806
|
-
_class_call_check$
|
|
6808
|
+
_class_call_check$E(this, ZodPromise);
|
|
6807
6809
|
return _super.apply(this, arguments);
|
|
6808
6810
|
}
|
|
6809
|
-
_create_class$
|
|
6811
|
+
_create_class$y(ZodPromise, [
|
|
6810
6812
|
{
|
|
6811
6813
|
key: "unwrap",
|
|
6812
6814
|
value: function unwrap() {
|
|
@@ -6848,10 +6850,10 @@ var ZodEffects = /*#__PURE__*/ function(ZodType) {
|
|
|
6848
6850
|
_inherits$m(ZodEffects, ZodType);
|
|
6849
6851
|
var _super = _create_super$m(ZodEffects);
|
|
6850
6852
|
function ZodEffects() {
|
|
6851
|
-
_class_call_check$
|
|
6853
|
+
_class_call_check$E(this, ZodEffects);
|
|
6852
6854
|
return _super.apply(this, arguments);
|
|
6853
6855
|
}
|
|
6854
|
-
_create_class$
|
|
6856
|
+
_create_class$y(ZodEffects, [
|
|
6855
6857
|
{
|
|
6856
6858
|
key: "innerType",
|
|
6857
6859
|
value: function innerType() {
|
|
@@ -7044,10 +7046,10 @@ var ZodOptional = /*#__PURE__*/ function(ZodType) {
|
|
|
7044
7046
|
_inherits$m(ZodOptional, ZodType);
|
|
7045
7047
|
var _super = _create_super$m(ZodOptional);
|
|
7046
7048
|
function ZodOptional() {
|
|
7047
|
-
_class_call_check$
|
|
7049
|
+
_class_call_check$E(this, ZodOptional);
|
|
7048
7050
|
return _super.apply(this, arguments);
|
|
7049
7051
|
}
|
|
7050
|
-
_create_class$
|
|
7052
|
+
_create_class$y(ZodOptional, [
|
|
7051
7053
|
{
|
|
7052
7054
|
key: "_parse",
|
|
7053
7055
|
value: function _parse(input) {
|
|
@@ -7077,10 +7079,10 @@ var ZodNullable = /*#__PURE__*/ function(ZodType) {
|
|
|
7077
7079
|
_inherits$m(ZodNullable, ZodType);
|
|
7078
7080
|
var _super = _create_super$m(ZodNullable);
|
|
7079
7081
|
function ZodNullable() {
|
|
7080
|
-
_class_call_check$
|
|
7082
|
+
_class_call_check$E(this, ZodNullable);
|
|
7081
7083
|
return _super.apply(this, arguments);
|
|
7082
7084
|
}
|
|
7083
|
-
_create_class$
|
|
7085
|
+
_create_class$y(ZodNullable, [
|
|
7084
7086
|
{
|
|
7085
7087
|
key: "_parse",
|
|
7086
7088
|
value: function _parse(input) {
|
|
@@ -7110,10 +7112,10 @@ var ZodDefault = /*#__PURE__*/ function(ZodType) {
|
|
|
7110
7112
|
_inherits$m(ZodDefault, ZodType);
|
|
7111
7113
|
var _super = _create_super$m(ZodDefault);
|
|
7112
7114
|
function ZodDefault() {
|
|
7113
|
-
_class_call_check$
|
|
7115
|
+
_class_call_check$E(this, ZodDefault);
|
|
7114
7116
|
return _super.apply(this, arguments);
|
|
7115
7117
|
}
|
|
7116
|
-
_create_class$
|
|
7118
|
+
_create_class$y(ZodDefault, [
|
|
7117
7119
|
{
|
|
7118
7120
|
key: "_parse",
|
|
7119
7121
|
value: function _parse(input) {
|
|
@@ -7151,10 +7153,10 @@ var ZodCatch = /*#__PURE__*/ function(ZodType) {
|
|
|
7151
7153
|
_inherits$m(ZodCatch, ZodType);
|
|
7152
7154
|
var _super = _create_super$m(ZodCatch);
|
|
7153
7155
|
function ZodCatch() {
|
|
7154
|
-
_class_call_check$
|
|
7156
|
+
_class_call_check$E(this, ZodCatch);
|
|
7155
7157
|
return _super.apply(this, arguments);
|
|
7156
7158
|
}
|
|
7157
|
-
_create_class$
|
|
7159
|
+
_create_class$y(ZodCatch, [
|
|
7158
7160
|
{
|
|
7159
7161
|
key: "_parse",
|
|
7160
7162
|
value: function _parse(input) {
|
|
@@ -7218,10 +7220,10 @@ var ZodBranded = /*#__PURE__*/ function(ZodType) {
|
|
|
7218
7220
|
_inherits$m(ZodBranded, ZodType);
|
|
7219
7221
|
var _super = _create_super$m(ZodBranded);
|
|
7220
7222
|
function ZodBranded() {
|
|
7221
|
-
_class_call_check$
|
|
7223
|
+
_class_call_check$E(this, ZodBranded);
|
|
7222
7224
|
return _super.apply(this, arguments);
|
|
7223
7225
|
}
|
|
7224
|
-
_create_class$
|
|
7226
|
+
_create_class$y(ZodBranded, [
|
|
7225
7227
|
{
|
|
7226
7228
|
key: "_parse",
|
|
7227
7229
|
value: function _parse(input) {
|
|
@@ -7247,10 +7249,10 @@ var ZodPipeline = /*#__PURE__*/ function(ZodType) {
|
|
|
7247
7249
|
_inherits$m(ZodPipeline, ZodType);
|
|
7248
7250
|
var _super = _create_super$m(ZodPipeline);
|
|
7249
7251
|
function ZodPipeline() {
|
|
7250
|
-
_class_call_check$
|
|
7252
|
+
_class_call_check$E(this, ZodPipeline);
|
|
7251
7253
|
return _super.apply(this, arguments);
|
|
7252
7254
|
}
|
|
7253
|
-
_create_class$
|
|
7255
|
+
_create_class$y(ZodPipeline, [
|
|
7254
7256
|
{
|
|
7255
7257
|
key: "_parse",
|
|
7256
7258
|
value: function _parse(input) {
|
|
@@ -7342,10 +7344,10 @@ var ZodReadonly = /*#__PURE__*/ function(ZodType) {
|
|
|
7342
7344
|
_inherits$m(ZodReadonly, ZodType);
|
|
7343
7345
|
var _super = _create_super$m(ZodReadonly);
|
|
7344
7346
|
function ZodReadonly() {
|
|
7345
|
-
_class_call_check$
|
|
7347
|
+
_class_call_check$E(this, ZodReadonly);
|
|
7346
7348
|
return _super.apply(this, arguments);
|
|
7347
7349
|
}
|
|
7348
|
-
_create_class$
|
|
7350
|
+
_create_class$y(ZodReadonly, [
|
|
7349
7351
|
{
|
|
7350
7352
|
key: "_parse",
|
|
7351
7353
|
value: function _parse(input) {
|
|
@@ -9087,12 +9089,12 @@ function _array_with_holes$j(arr) {
|
|
|
9087
9089
|
function _array_without_holes$z(arr) {
|
|
9088
9090
|
if (Array.isArray(arr)) return _array_like_to_array$H(arr);
|
|
9089
9091
|
}
|
|
9090
|
-
function _class_call_check$
|
|
9092
|
+
function _class_call_check$D(instance, Constructor) {
|
|
9091
9093
|
if (!(instance instanceof Constructor)) {
|
|
9092
9094
|
throw new TypeError("Cannot call a class as a function");
|
|
9093
9095
|
}
|
|
9094
9096
|
}
|
|
9095
|
-
function _defineProperties$
|
|
9097
|
+
function _defineProperties$x(target, props) {
|
|
9096
9098
|
for(var i = 0; i < props.length; i++){
|
|
9097
9099
|
var descriptor = props[i];
|
|
9098
9100
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -9101,9 +9103,9 @@ function _defineProperties$w(target, props) {
|
|
|
9101
9103
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
9102
9104
|
}
|
|
9103
9105
|
}
|
|
9104
|
-
function _create_class$
|
|
9105
|
-
if (protoProps) _defineProperties$
|
|
9106
|
-
if (staticProps) _defineProperties$
|
|
9106
|
+
function _create_class$x(Constructor, protoProps, staticProps) {
|
|
9107
|
+
if (protoProps) _defineProperties$x(Constructor.prototype, protoProps);
|
|
9108
|
+
if (staticProps) _defineProperties$x(Constructor, staticProps);
|
|
9107
9109
|
return Constructor;
|
|
9108
9110
|
}
|
|
9109
9111
|
function _define_property$L(obj, key, value) {
|
|
@@ -9274,7 +9276,7 @@ var Serializable = /*#__PURE__*/ function() {
|
|
|
9274
9276
|
_args[_key - 1] = arguments[_key];
|
|
9275
9277
|
}
|
|
9276
9278
|
var _this = this;
|
|
9277
|
-
_class_call_check$
|
|
9279
|
+
_class_call_check$D(this, Serializable);
|
|
9278
9280
|
Object.defineProperty(this, "lc_serializable", {
|
|
9279
9281
|
enumerable: true,
|
|
9280
9282
|
configurable: true,
|
|
@@ -9297,7 +9299,7 @@ var Serializable = /*#__PURE__*/ function() {
|
|
|
9297
9299
|
this.lc_kwargs = kwargs !== null && kwargs !== void 0 ? kwargs : {};
|
|
9298
9300
|
}
|
|
9299
9301
|
}
|
|
9300
|
-
_create_class$
|
|
9302
|
+
_create_class$x(Serializable, [
|
|
9301
9303
|
{
|
|
9302
9304
|
key: "lc_id",
|
|
9303
9305
|
get: /**
|
|
@@ -9529,12 +9531,12 @@ function _assert_this_initialized$l(self) {
|
|
|
9529
9531
|
}
|
|
9530
9532
|
return self;
|
|
9531
9533
|
}
|
|
9532
|
-
function _class_call_check$
|
|
9534
|
+
function _class_call_check$C(instance, Constructor) {
|
|
9533
9535
|
if (!(instance instanceof Constructor)) {
|
|
9534
9536
|
throw new TypeError("Cannot call a class as a function");
|
|
9535
9537
|
}
|
|
9536
9538
|
}
|
|
9537
|
-
function _defineProperties$
|
|
9539
|
+
function _defineProperties$w(target, props) {
|
|
9538
9540
|
for(var i = 0; i < props.length; i++){
|
|
9539
9541
|
var descriptor = props[i];
|
|
9540
9542
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -9543,9 +9545,9 @@ function _defineProperties$v(target, props) {
|
|
|
9543
9545
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
9544
9546
|
}
|
|
9545
9547
|
}
|
|
9546
|
-
function _create_class$
|
|
9547
|
-
if (protoProps) _defineProperties$
|
|
9548
|
-
if (staticProps) _defineProperties$
|
|
9548
|
+
function _create_class$w(Constructor, protoProps, staticProps) {
|
|
9549
|
+
if (protoProps) _defineProperties$w(Constructor.prototype, protoProps);
|
|
9550
|
+
if (staticProps) _defineProperties$w(Constructor, staticProps);
|
|
9549
9551
|
return Constructor;
|
|
9550
9552
|
}
|
|
9551
9553
|
function _get_prototype_of$l(o) {
|
|
@@ -9630,7 +9632,7 @@ function _create_super$l(Derived) {
|
|
|
9630
9632
|
* overridden in derived classes to handle various events during the
|
|
9631
9633
|
* execution of a LangChain application.
|
|
9632
9634
|
*/ var BaseCallbackHandlerMethodsClass = function BaseCallbackHandlerMethodsClass() {
|
|
9633
|
-
_class_call_check$
|
|
9635
|
+
_class_call_check$C(this, BaseCallbackHandlerMethodsClass);
|
|
9634
9636
|
};
|
|
9635
9637
|
/**
|
|
9636
9638
|
* Abstract base class for creating callback handlers in the LangChain
|
|
@@ -9641,7 +9643,7 @@ function _create_super$l(Derived) {
|
|
|
9641
9643
|
_inherits$l(BaseCallbackHandler, BaseCallbackHandlerMethodsClass);
|
|
9642
9644
|
var _super = _create_super$l(BaseCallbackHandler);
|
|
9643
9645
|
function BaseCallbackHandler(input) {
|
|
9644
|
-
_class_call_check$
|
|
9646
|
+
_class_call_check$C(this, BaseCallbackHandler);
|
|
9645
9647
|
var _this;
|
|
9646
9648
|
_this = _super.call(this);
|
|
9647
9649
|
Object.defineProperty(_assert_this_initialized$l(_this), "lc_serializable", {
|
|
@@ -9717,7 +9719,7 @@ function _create_super$l(Derived) {
|
|
|
9717
9719
|
}
|
|
9718
9720
|
return _this;
|
|
9719
9721
|
}
|
|
9720
|
-
_create_class$
|
|
9722
|
+
_create_class$w(BaseCallbackHandler, [
|
|
9721
9723
|
{
|
|
9722
9724
|
key: "lc_namespace",
|
|
9723
9725
|
get: function get() {
|
|
@@ -9799,7 +9801,7 @@ function _create_super$l(Derived) {
|
|
|
9799
9801
|
_inherits$l(Handler, BaseCallbackHandler);
|
|
9800
9802
|
var _super = _create_super$l(Handler);
|
|
9801
9803
|
function Handler() {
|
|
9802
|
-
_class_call_check$
|
|
9804
|
+
_class_call_check$C(this, Handler);
|
|
9803
9805
|
var _this;
|
|
9804
9806
|
_this = _super.call(this);
|
|
9805
9807
|
Object.defineProperty(_assert_this_initialized$l(_this), "name", {
|
|
@@ -10766,12 +10768,12 @@ function getOtelEnabled() {
|
|
|
10766
10768
|
}
|
|
10767
10769
|
|
|
10768
10770
|
// Should not import any OTEL packages to avoid pulling in optional deps.
|
|
10769
|
-
function _class_call_check$
|
|
10771
|
+
function _class_call_check$B(instance, Constructor) {
|
|
10770
10772
|
if (!(instance instanceof Constructor)) {
|
|
10771
10773
|
throw new TypeError("Cannot call a class as a function");
|
|
10772
10774
|
}
|
|
10773
10775
|
}
|
|
10774
|
-
function _defineProperties$
|
|
10776
|
+
function _defineProperties$v(target, props) {
|
|
10775
10777
|
for(var i = 0; i < props.length; i++){
|
|
10776
10778
|
var descriptor = props[i];
|
|
10777
10779
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -10780,13 +10782,13 @@ function _defineProperties$u(target, props) {
|
|
|
10780
10782
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
10781
10783
|
}
|
|
10782
10784
|
}
|
|
10783
|
-
function _create_class$
|
|
10784
|
-
if (protoProps) _defineProperties$
|
|
10785
|
+
function _create_class$v(Constructor, protoProps, staticProps) {
|
|
10786
|
+
if (protoProps) _defineProperties$v(Constructor.prototype, protoProps);
|
|
10785
10787
|
return Constructor;
|
|
10786
10788
|
}
|
|
10787
10789
|
var MockTracer = /*#__PURE__*/ function() {
|
|
10788
10790
|
function MockTracer() {
|
|
10789
|
-
_class_call_check$
|
|
10791
|
+
_class_call_check$B(this, MockTracer);
|
|
10790
10792
|
Object.defineProperty(this, "hasWarned", {
|
|
10791
10793
|
enumerable: true,
|
|
10792
10794
|
configurable: true,
|
|
@@ -10794,7 +10796,7 @@ var MockTracer = /*#__PURE__*/ function() {
|
|
|
10794
10796
|
value: false
|
|
10795
10797
|
});
|
|
10796
10798
|
}
|
|
10797
|
-
_create_class$
|
|
10799
|
+
_create_class$v(MockTracer, [
|
|
10798
10800
|
{
|
|
10799
10801
|
key: "startActiveSpan",
|
|
10800
10802
|
value: function startActiveSpan(_name) {
|
|
@@ -10828,7 +10830,7 @@ var MockTracer = /*#__PURE__*/ function() {
|
|
|
10828
10830
|
}();
|
|
10829
10831
|
var MockOTELTrace = /*#__PURE__*/ function() {
|
|
10830
10832
|
function MockOTELTrace() {
|
|
10831
|
-
_class_call_check$
|
|
10833
|
+
_class_call_check$B(this, MockOTELTrace);
|
|
10832
10834
|
Object.defineProperty(this, "mockTracer", {
|
|
10833
10835
|
enumerable: true,
|
|
10834
10836
|
configurable: true,
|
|
@@ -10836,7 +10838,7 @@ var MockOTELTrace = /*#__PURE__*/ function() {
|
|
|
10836
10838
|
value: new MockTracer()
|
|
10837
10839
|
});
|
|
10838
10840
|
}
|
|
10839
|
-
_create_class$
|
|
10841
|
+
_create_class$v(MockOTELTrace, [
|
|
10840
10842
|
{
|
|
10841
10843
|
key: "getTracer",
|
|
10842
10844
|
value: function getTracer(_name, _version) {
|
|
@@ -10884,9 +10886,9 @@ var MockOTELTrace = /*#__PURE__*/ function() {
|
|
|
10884
10886
|
}();
|
|
10885
10887
|
var MockOTELContext = /*#__PURE__*/ function() {
|
|
10886
10888
|
function MockOTELContext() {
|
|
10887
|
-
_class_call_check$
|
|
10889
|
+
_class_call_check$B(this, MockOTELContext);
|
|
10888
10890
|
}
|
|
10889
|
-
_create_class$
|
|
10891
|
+
_create_class$v(MockOTELContext, [
|
|
10890
10892
|
{
|
|
10891
10893
|
key: "active",
|
|
10892
10894
|
value: function active() {
|
|
@@ -10909,9 +10911,9 @@ var mockOTELTrace = new MockOTELTrace();
|
|
|
10909
10911
|
var mockOTELContext = new MockOTELContext();
|
|
10910
10912
|
var OTELProvider = /*#__PURE__*/ function() {
|
|
10911
10913
|
function OTELProvider() {
|
|
10912
|
-
_class_call_check$
|
|
10914
|
+
_class_call_check$B(this, OTELProvider);
|
|
10913
10915
|
}
|
|
10914
|
-
_create_class$
|
|
10916
|
+
_create_class$v(OTELProvider, [
|
|
10915
10917
|
{
|
|
10916
10918
|
key: "getTraceInstance",
|
|
10917
10919
|
value: function getTraceInstance() {
|
|
@@ -10988,12 +10990,12 @@ function _array_like_to_array$D(arr, len) {
|
|
|
10988
10990
|
function _array_with_holes$g(arr) {
|
|
10989
10991
|
if (Array.isArray(arr)) return arr;
|
|
10990
10992
|
}
|
|
10991
|
-
function _class_call_check$
|
|
10993
|
+
function _class_call_check$A(instance, Constructor) {
|
|
10992
10994
|
if (!(instance instanceof Constructor)) {
|
|
10993
10995
|
throw new TypeError("Cannot call a class as a function");
|
|
10994
10996
|
}
|
|
10995
10997
|
}
|
|
10996
|
-
function _defineProperties$
|
|
10998
|
+
function _defineProperties$u(target, props) {
|
|
10997
10999
|
for(var i = 0; i < props.length; i++){
|
|
10998
11000
|
var descriptor = props[i];
|
|
10999
11001
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -11002,8 +11004,8 @@ function _defineProperties$t(target, props) {
|
|
|
11002
11004
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
11003
11005
|
}
|
|
11004
11006
|
}
|
|
11005
|
-
function _create_class$
|
|
11006
|
-
if (protoProps) _defineProperties$
|
|
11007
|
+
function _create_class$u(Constructor, protoProps, staticProps) {
|
|
11008
|
+
if (protoProps) _defineProperties$u(Constructor.prototype, protoProps);
|
|
11007
11009
|
return Constructor;
|
|
11008
11010
|
}
|
|
11009
11011
|
function _iterable_to_array_limit$g(arr, i) {
|
|
@@ -11056,7 +11058,7 @@ function getOperationName(runType) {
|
|
|
11056
11058
|
}
|
|
11057
11059
|
var LangSmithToOTELTranslator = /*#__PURE__*/ function() {
|
|
11058
11060
|
function LangSmithToOTELTranslator() {
|
|
11059
|
-
_class_call_check$
|
|
11061
|
+
_class_call_check$A(this, LangSmithToOTELTranslator);
|
|
11060
11062
|
Object.defineProperty(this, "spans", {
|
|
11061
11063
|
enumerable: true,
|
|
11062
11064
|
configurable: true,
|
|
@@ -11064,7 +11066,7 @@ var LangSmithToOTELTranslator = /*#__PURE__*/ function() {
|
|
|
11064
11066
|
value: new Map()
|
|
11065
11067
|
});
|
|
11066
11068
|
}
|
|
11067
|
-
_create_class$
|
|
11069
|
+
_create_class$u(LangSmithToOTELTranslator, [
|
|
11068
11070
|
{
|
|
11069
11071
|
key: "exportBatch",
|
|
11070
11072
|
value: function exportBatch(operations, otelContextMap) {
|
|
@@ -11803,7 +11805,7 @@ function _async_to_generator$n(fn) {
|
|
|
11803
11805
|
});
|
|
11804
11806
|
};
|
|
11805
11807
|
}
|
|
11806
|
-
function _class_call_check$
|
|
11808
|
+
function _class_call_check$z(instance, Constructor) {
|
|
11807
11809
|
if (!(instance instanceof Constructor)) {
|
|
11808
11810
|
throw new TypeError("Cannot call a class as a function");
|
|
11809
11811
|
}
|
|
@@ -12055,7 +12057,7 @@ var AbortError = /*#__PURE__*/ function(Error1) {
|
|
|
12055
12057
|
_inherits$k(AbortError, Error1);
|
|
12056
12058
|
var _super = _create_super$k(AbortError);
|
|
12057
12059
|
function AbortError(message) {
|
|
12058
|
-
_class_call_check$
|
|
12060
|
+
_class_call_check$z(this, AbortError);
|
|
12059
12061
|
var _this;
|
|
12060
12062
|
_this = _super.call(this);
|
|
12061
12063
|
if (_instanceof$f(message, Error)) {
|
|
@@ -12511,7 +12513,7 @@ function _assert_this_initialized$j(self) {
|
|
|
12511
12513
|
}
|
|
12512
12514
|
return self;
|
|
12513
12515
|
}
|
|
12514
|
-
function _class_call_check$
|
|
12516
|
+
function _class_call_check$y(instance, Constructor) {
|
|
12515
12517
|
if (!(instance instanceof Constructor)) {
|
|
12516
12518
|
throw new TypeError("Cannot call a class as a function");
|
|
12517
12519
|
}
|
|
@@ -12634,7 +12636,7 @@ var TimeoutError = /*#__PURE__*/ function(Error1) {
|
|
|
12634
12636
|
_inherits$j(TimeoutError, Error1);
|
|
12635
12637
|
var _super = _create_super$j(TimeoutError);
|
|
12636
12638
|
function TimeoutError(message) {
|
|
12637
|
-
_class_call_check$
|
|
12639
|
+
_class_call_check$y(this, TimeoutError);
|
|
12638
12640
|
var _this;
|
|
12639
12641
|
_this = _super.call(this, message);
|
|
12640
12642
|
_this.name = "TimeoutError";
|
|
@@ -12707,12 +12709,12 @@ function lowerBound(array, value, comparator) {
|
|
|
12707
12709
|
}
|
|
12708
12710
|
lowerBound$1.default = lowerBound;
|
|
12709
12711
|
|
|
12710
|
-
function _class_call_check$
|
|
12712
|
+
function _class_call_check$x(instance, Constructor) {
|
|
12711
12713
|
if (!(instance instanceof Constructor)) {
|
|
12712
12714
|
throw new TypeError("Cannot call a class as a function");
|
|
12713
12715
|
}
|
|
12714
12716
|
}
|
|
12715
|
-
function _defineProperties$
|
|
12717
|
+
function _defineProperties$t(target, props) {
|
|
12716
12718
|
for(var i = 0; i < props.length; i++){
|
|
12717
12719
|
var descriptor = props[i];
|
|
12718
12720
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -12721,8 +12723,8 @@ function _defineProperties$s(target, props) {
|
|
|
12721
12723
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
12722
12724
|
}
|
|
12723
12725
|
}
|
|
12724
|
-
function _create_class$
|
|
12725
|
-
if (protoProps) _defineProperties$
|
|
12726
|
+
function _create_class$t(Constructor, protoProps, staticProps) {
|
|
12727
|
+
if (protoProps) _defineProperties$t(Constructor.prototype, protoProps);
|
|
12726
12728
|
return Constructor;
|
|
12727
12729
|
}
|
|
12728
12730
|
Object.defineProperty(priorityQueue, "__esModule", {
|
|
@@ -12731,10 +12733,10 @@ Object.defineProperty(priorityQueue, "__esModule", {
|
|
|
12731
12733
|
var lower_bound_1 = lowerBound$1;
|
|
12732
12734
|
var PriorityQueue = /*#__PURE__*/ function() {
|
|
12733
12735
|
function PriorityQueue() {
|
|
12734
|
-
_class_call_check$
|
|
12736
|
+
_class_call_check$x(this, PriorityQueue);
|
|
12735
12737
|
this._queue = [];
|
|
12736
12738
|
}
|
|
12737
|
-
_create_class$
|
|
12739
|
+
_create_class$t(PriorityQueue, [
|
|
12738
12740
|
{
|
|
12739
12741
|
key: "enqueue",
|
|
12740
12742
|
value: function enqueue(run, options) {
|
|
@@ -12818,12 +12820,12 @@ function _async_to_generator$m(fn) {
|
|
|
12818
12820
|
});
|
|
12819
12821
|
};
|
|
12820
12822
|
}
|
|
12821
|
-
function _class_call_check$
|
|
12823
|
+
function _class_call_check$w(instance, Constructor) {
|
|
12822
12824
|
if (!(instance instanceof Constructor)) {
|
|
12823
12825
|
throw new TypeError("Cannot call a class as a function");
|
|
12824
12826
|
}
|
|
12825
12827
|
}
|
|
12826
|
-
function _defineProperties$
|
|
12828
|
+
function _defineProperties$s(target, props) {
|
|
12827
12829
|
for(var i = 0; i < props.length; i++){
|
|
12828
12830
|
var descriptor = props[i];
|
|
12829
12831
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -12832,8 +12834,8 @@ function _defineProperties$r(target, props) {
|
|
|
12832
12834
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
12833
12835
|
}
|
|
12834
12836
|
}
|
|
12835
|
-
function _create_class$
|
|
12836
|
-
if (protoProps) _defineProperties$
|
|
12837
|
+
function _create_class$s(Constructor, protoProps, staticProps) {
|
|
12838
|
+
if (protoProps) _defineProperties$s(Constructor.prototype, protoProps);
|
|
12837
12839
|
return Constructor;
|
|
12838
12840
|
}
|
|
12839
12841
|
function _get_prototype_of$i(o) {
|
|
@@ -13006,7 +13008,7 @@ Promise queue with concurrency control.
|
|
|
13006
13008
|
_inherits$i(PQueue, EventEmitter);
|
|
13007
13009
|
var _super = _create_super$i(PQueue);
|
|
13008
13010
|
function PQueue(options) {
|
|
13009
|
-
_class_call_check$
|
|
13011
|
+
_class_call_check$w(this, PQueue);
|
|
13010
13012
|
var _this;
|
|
13011
13013
|
var _a, _b, _c, _d;
|
|
13012
13014
|
_this = _super.call(this);
|
|
@@ -13042,7 +13044,7 @@ Promise queue with concurrency control.
|
|
|
13042
13044
|
_this._isPaused = options.autoStart === false;
|
|
13043
13045
|
return _this;
|
|
13044
13046
|
}
|
|
13045
|
-
_create_class$
|
|
13047
|
+
_create_class$s(PQueue, [
|
|
13046
13048
|
{
|
|
13047
13049
|
key: "_doesIntervalAllowAnother",
|
|
13048
13050
|
get: function get() {
|
|
@@ -13465,12 +13467,12 @@ function _async_to_generator$l(fn) {
|
|
|
13465
13467
|
});
|
|
13466
13468
|
};
|
|
13467
13469
|
}
|
|
13468
|
-
function _class_call_check$
|
|
13470
|
+
function _class_call_check$v(instance, Constructor) {
|
|
13469
13471
|
if (!(instance instanceof Constructor)) {
|
|
13470
13472
|
throw new TypeError("Cannot call a class as a function");
|
|
13471
13473
|
}
|
|
13472
13474
|
}
|
|
13473
|
-
function _defineProperties$
|
|
13475
|
+
function _defineProperties$r(target, props) {
|
|
13474
13476
|
for(var i = 0; i < props.length; i++){
|
|
13475
13477
|
var descriptor = props[i];
|
|
13476
13478
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -13479,8 +13481,8 @@ function _defineProperties$q(target, props) {
|
|
|
13479
13481
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
13480
13482
|
}
|
|
13481
13483
|
}
|
|
13482
|
-
function _create_class$
|
|
13483
|
-
if (protoProps) _defineProperties$
|
|
13484
|
+
function _create_class$r(Constructor, protoProps, staticProps) {
|
|
13485
|
+
if (protoProps) _defineProperties$r(Constructor.prototype, protoProps);
|
|
13484
13486
|
return Constructor;
|
|
13485
13487
|
}
|
|
13486
13488
|
function _instanceof$d(left, right) {
|
|
@@ -13623,7 +13625,7 @@ var STATUS_RETRYABLE = [
|
|
|
13623
13625
|
* exponential backoff between each attempt.
|
|
13624
13626
|
*/ var AsyncCaller$1 = /*#__PURE__*/ function() {
|
|
13625
13627
|
function AsyncCaller(params) {
|
|
13626
|
-
_class_call_check$
|
|
13628
|
+
_class_call_check$v(this, AsyncCaller);
|
|
13627
13629
|
Object.defineProperty(this, "maxConcurrency", {
|
|
13628
13630
|
enumerable: true,
|
|
13629
13631
|
configurable: true,
|
|
@@ -13665,7 +13667,7 @@ var STATUS_RETRYABLE = [
|
|
|
13665
13667
|
}
|
|
13666
13668
|
this.onFailedResponseHook = params === null || params === void 0 ? void 0 : params.onFailedResponseHook;
|
|
13667
13669
|
}
|
|
13668
|
-
_create_class$
|
|
13670
|
+
_create_class$r(AsyncCaller, [
|
|
13669
13671
|
{
|
|
13670
13672
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13671
13673
|
key: "call",
|
|
@@ -14149,12 +14151,12 @@ var identifiers$1 = {
|
|
|
14149
14151
|
rcompareIdentifiers: rcompareIdentifiers
|
|
14150
14152
|
};
|
|
14151
14153
|
|
|
14152
|
-
function _class_call_check$
|
|
14154
|
+
function _class_call_check$u(instance, Constructor) {
|
|
14153
14155
|
if (!(instance instanceof Constructor)) {
|
|
14154
14156
|
throw new TypeError("Cannot call a class as a function");
|
|
14155
14157
|
}
|
|
14156
14158
|
}
|
|
14157
|
-
function _defineProperties$
|
|
14159
|
+
function _defineProperties$q(target, props) {
|
|
14158
14160
|
for(var i = 0; i < props.length; i++){
|
|
14159
14161
|
var descriptor = props[i];
|
|
14160
14162
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -14163,8 +14165,8 @@ function _defineProperties$p(target, props) {
|
|
|
14163
14165
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
14164
14166
|
}
|
|
14165
14167
|
}
|
|
14166
|
-
function _create_class$
|
|
14167
|
-
if (protoProps) _defineProperties$
|
|
14168
|
+
function _create_class$q(Constructor, protoProps, staticProps) {
|
|
14169
|
+
if (protoProps) _defineProperties$q(Constructor.prototype, protoProps);
|
|
14168
14170
|
return Constructor;
|
|
14169
14171
|
}
|
|
14170
14172
|
function _instanceof$c(left, right) {
|
|
@@ -14185,7 +14187,7 @@ var parseOptions = parseOptions_1;
|
|
|
14185
14187
|
var compareIdentifiers = identifiers$1.compareIdentifiers;
|
|
14186
14188
|
var SemVer$1 = /*#__PURE__*/ function() {
|
|
14187
14189
|
function SemVer(version, options) {
|
|
14188
|
-
_class_call_check$
|
|
14190
|
+
_class_call_check$u(this, SemVer);
|
|
14189
14191
|
options = parseOptions(options);
|
|
14190
14192
|
if (_instanceof$c(version, SemVer)) {
|
|
14191
14193
|
if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) {
|
|
@@ -14240,7 +14242,7 @@ var SemVer$1 = /*#__PURE__*/ function() {
|
|
|
14240
14242
|
this.build = m[5] ? m[5].split(".") : [];
|
|
14241
14243
|
this.format();
|
|
14242
14244
|
}
|
|
14243
|
-
_create_class$
|
|
14245
|
+
_create_class$q(SemVer, [
|
|
14244
14246
|
{
|
|
14245
14247
|
key: "format",
|
|
14246
14248
|
value: function format() {
|
|
@@ -14576,78 +14578,70 @@ var cmp_1 = cmp;
|
|
|
14576
14578
|
|
|
14577
14579
|
var _require = reExports; _require.safeRe; _require.t;
|
|
14578
14580
|
|
|
14579
|
-
|
|
14580
|
-
|
|
14581
|
-
|
|
14582
|
-
|
|
14583
|
-
|
|
14584
|
-
|
|
14585
|
-
|
|
14586
|
-
|
|
14587
|
-
|
|
14588
|
-
|
|
14589
|
-
|
|
14590
|
-
|
|
14591
|
-
|
|
14592
|
-
|
|
14593
|
-
|
|
14594
|
-
|
|
14595
|
-
|
|
14596
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
14597
|
-
}
|
|
14598
|
-
}
|
|
14599
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
14600
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
14601
|
-
return Constructor;
|
|
14602
|
-
}
|
|
14603
|
-
var LRUCache = /*#__PURE__*/ function() {
|
|
14604
|
-
function LRUCache() {
|
|
14605
|
-
_class_call_check(this, LRUCache);
|
|
14606
|
-
this.max = 1000;
|
|
14607
|
-
this.map = new Map();
|
|
14608
|
-
}
|
|
14609
|
-
_create_class(LRUCache, [
|
|
14610
|
-
{
|
|
14611
|
-
key: "get",
|
|
14612
|
-
value: function get(key) {
|
|
14613
|
-
var value = this.map.get(key);
|
|
14614
|
-
if (value === undefined) {
|
|
14615
|
-
return undefined;
|
|
14616
|
-
} else {
|
|
14617
|
-
// Remove the key from the map and add it to the end
|
|
14618
|
-
this.map.delete(key);
|
|
14619
|
-
this.map.set(key, value);
|
|
14620
|
-
return value;
|
|
14621
|
-
}
|
|
14622
|
-
}
|
|
14623
|
-
},
|
|
14624
|
-
{
|
|
14625
|
-
key: "delete",
|
|
14626
|
-
value: function _delete(key) {
|
|
14627
|
-
return this.map.delete(key);
|
|
14628
|
-
}
|
|
14629
|
-
},
|
|
14630
|
-
{
|
|
14631
|
-
key: "set",
|
|
14632
|
-
value: function set(key, value) {
|
|
14633
|
-
var deleted = this.delete(key);
|
|
14634
|
-
if (!deleted && value !== undefined) {
|
|
14635
|
-
// If cache is full, delete the least recently used item
|
|
14636
|
-
if (this.map.size >= this.max) {
|
|
14637
|
-
var firstKey = this.map.keys().next().value;
|
|
14638
|
-
this.delete(firstKey);
|
|
14639
|
-
}
|
|
14640
|
-
this.map.set(key, value);
|
|
14641
|
-
}
|
|
14642
|
-
return this;
|
|
14643
|
-
}
|
|
14644
|
-
}
|
|
14645
|
-
]);
|
|
14646
|
-
return LRUCache;
|
|
14647
|
-
}();
|
|
14648
|
-
lrucache = LRUCache;
|
|
14649
|
-
return lrucache;
|
|
14581
|
+
function _class_call_check$t(instance, Constructor) {
|
|
14582
|
+
if (!(instance instanceof Constructor)) {
|
|
14583
|
+
throw new TypeError("Cannot call a class as a function");
|
|
14584
|
+
}
|
|
14585
|
+
}
|
|
14586
|
+
function _defineProperties$p(target, props) {
|
|
14587
|
+
for(var i = 0; i < props.length; i++){
|
|
14588
|
+
var descriptor = props[i];
|
|
14589
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
14590
|
+
descriptor.configurable = true;
|
|
14591
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
14592
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
14593
|
+
}
|
|
14594
|
+
}
|
|
14595
|
+
function _create_class$p(Constructor, protoProps, staticProps) {
|
|
14596
|
+
if (protoProps) _defineProperties$p(Constructor.prototype, protoProps);
|
|
14597
|
+
return Constructor;
|
|
14650
14598
|
}
|
|
14599
|
+
var LRUCache = /*#__PURE__*/ function() {
|
|
14600
|
+
function LRUCache() {
|
|
14601
|
+
_class_call_check$t(this, LRUCache);
|
|
14602
|
+
this.max = 1000;
|
|
14603
|
+
this.map = new Map();
|
|
14604
|
+
}
|
|
14605
|
+
_create_class$p(LRUCache, [
|
|
14606
|
+
{
|
|
14607
|
+
key: "get",
|
|
14608
|
+
value: function get(key) {
|
|
14609
|
+
var value = this.map.get(key);
|
|
14610
|
+
if (value === undefined) {
|
|
14611
|
+
return undefined;
|
|
14612
|
+
} else {
|
|
14613
|
+
// Remove the key from the map and add it to the end
|
|
14614
|
+
this.map.delete(key);
|
|
14615
|
+
this.map.set(key, value);
|
|
14616
|
+
return value;
|
|
14617
|
+
}
|
|
14618
|
+
}
|
|
14619
|
+
},
|
|
14620
|
+
{
|
|
14621
|
+
key: "delete",
|
|
14622
|
+
value: function _delete(key) {
|
|
14623
|
+
return this.map.delete(key);
|
|
14624
|
+
}
|
|
14625
|
+
},
|
|
14626
|
+
{
|
|
14627
|
+
key: "set",
|
|
14628
|
+
value: function set(key, value) {
|
|
14629
|
+
var deleted = this.delete(key);
|
|
14630
|
+
if (!deleted && value !== undefined) {
|
|
14631
|
+
// If cache is full, delete the least recently used item
|
|
14632
|
+
if (this.map.size >= this.max) {
|
|
14633
|
+
var firstKey = this.map.keys().next().value;
|
|
14634
|
+
this.delete(firstKey);
|
|
14635
|
+
}
|
|
14636
|
+
this.map.set(key, value);
|
|
14637
|
+
}
|
|
14638
|
+
return this;
|
|
14639
|
+
}
|
|
14640
|
+
}
|
|
14641
|
+
]);
|
|
14642
|
+
return LRUCache;
|
|
14643
|
+
}();
|
|
14644
|
+
var lrucache = LRUCache;
|
|
14651
14645
|
|
|
14652
14646
|
var range;
|
|
14653
14647
|
var hasRequiredRange;
|
|
@@ -14951,7 +14945,7 @@ function requireRange () {
|
|
|
14951
14945
|
return Range;
|
|
14952
14946
|
}();
|
|
14953
14947
|
range = Range;
|
|
14954
|
-
var LRU =
|
|
14948
|
+
var LRU = lrucache;
|
|
14955
14949
|
var cache = new LRU();
|
|
14956
14950
|
var parseOptions = parseOptions_1;
|
|
14957
14951
|
var Comparator = requireComparator();
|
|
@@ -56359,6 +56353,29 @@ BuiltinToolset.provider = '';
|
|
|
56359
56353
|
}
|
|
56360
56354
|
}
|
|
56361
56355
|
|
|
56356
|
+
async function createI18nInstance(pluginDir, language) {
|
|
56357
|
+
const instance = i18next.createInstance();
|
|
56358
|
+
const i18nDir = path.join(pluginDir, 'i18n');
|
|
56359
|
+
// detect available languages dynamically
|
|
56360
|
+
const lngs = fs.readdirSync(i18nDir).filter((f)=>f.endsWith('.json')).map((f)=>f.replace('.json', ''));
|
|
56361
|
+
await instance.use(FsBackend).init({
|
|
56362
|
+
lng: language,
|
|
56363
|
+
fallbackLng: 'en',
|
|
56364
|
+
preload: lngs,
|
|
56365
|
+
ns: [
|
|
56366
|
+
'default'
|
|
56367
|
+
],
|
|
56368
|
+
defaultNS: 'default',
|
|
56369
|
+
backend: {
|
|
56370
|
+
loadPath: path.join(i18nDir, '{{lng}}.json')
|
|
56371
|
+
},
|
|
56372
|
+
interpolation: {
|
|
56373
|
+
escapeValue: false
|
|
56374
|
+
}
|
|
56375
|
+
});
|
|
56376
|
+
return instance;
|
|
56377
|
+
}
|
|
56378
|
+
|
|
56362
56379
|
exports.BaseTool = BaseTool;
|
|
56363
56380
|
exports.BaseToolset = BaseToolset;
|
|
56364
56381
|
exports.BuiltinToolset = BuiltinToolset;
|
|
@@ -56387,6 +56404,7 @@ exports.WorkflowNodeStrategy = WorkflowNodeStrategy;
|
|
|
56387
56404
|
exports.WorkflowTriggerStrategy = WorkflowTriggerStrategy;
|
|
56388
56405
|
exports.XpFileSystem = XpFileSystem;
|
|
56389
56406
|
exports.XpertServerPlugin = XpertServerPlugin;
|
|
56407
|
+
exports.createI18nInstance = createI18nInstance;
|
|
56390
56408
|
exports.createPluginLogger = createPluginLogger;
|
|
56391
56409
|
exports.downloadRemoteFile = downloadRemoteFile;
|
|
56392
56410
|
exports.isRemoteFile = isRemoteFile;
|