@uipath/docsai-tool 0.9.0 → 0.9.1
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/tool.js +152 -50
- package/package.json +4 -4
package/dist/tool.js
CHANGED
|
@@ -10430,7 +10430,7 @@ var require_coreipc = __commonJS((exports, module) => {
|
|
|
10430
10430
|
if (S(n3))
|
|
10431
10431
|
return r3;
|
|
10432
10432
|
for (var i3 = function(e6) {
|
|
10433
|
-
var t5 =
|
|
10433
|
+
var t5 = T(e6, o2);
|
|
10434
10434
|
if (!k(t5))
|
|
10435
10435
|
throw new TypeError;
|
|
10436
10436
|
var r4 = t5.call(e6);
|
|
@@ -10493,7 +10493,7 @@ var require_coreipc = __commonJS((exports, module) => {
|
|
|
10493
10493
|
case 5:
|
|
10494
10494
|
return e5;
|
|
10495
10495
|
}
|
|
10496
|
-
var r3 = t4 === 3 ? "string" : t4 === 5 ? "number" : "default", o3 =
|
|
10496
|
+
var r3 = t4 === 3 ? "string" : t4 === 5 ? "number" : "default", o3 = T(e5, n2);
|
|
10497
10497
|
if (o3 !== undefined) {
|
|
10498
10498
|
var i3 = o3.call(e5, r3);
|
|
10499
10499
|
if (j(i3))
|
|
@@ -10530,10 +10530,10 @@ var require_coreipc = __commonJS((exports, module) => {
|
|
|
10530
10530
|
function k(e5) {
|
|
10531
10531
|
return typeof e5 == "function";
|
|
10532
10532
|
}
|
|
10533
|
-
function
|
|
10533
|
+
function C(e5) {
|
|
10534
10534
|
return typeof e5 == "function";
|
|
10535
10535
|
}
|
|
10536
|
-
function
|
|
10536
|
+
function T(e5, t4) {
|
|
10537
10537
|
var r3 = e5[t4];
|
|
10538
10538
|
if (r3 != null) {
|
|
10539
10539
|
if (!k(r3))
|
|
@@ -10568,13 +10568,13 @@ var require_coreipc = __commonJS((exports, module) => {
|
|
|
10568
10568
|
if (S(r3)) {
|
|
10569
10569
|
if (!M(e5))
|
|
10570
10570
|
throw new TypeError;
|
|
10571
|
-
if (!
|
|
10571
|
+
if (!C(t4))
|
|
10572
10572
|
throw new TypeError;
|
|
10573
10573
|
return function(e6, t5) {
|
|
10574
10574
|
for (var r4 = e6.length - 1;r4 >= 0; --r4) {
|
|
10575
10575
|
var n4 = (0, e6[r4])(t5);
|
|
10576
10576
|
if (!S(n4) && !P(n4)) {
|
|
10577
|
-
if (!
|
|
10577
|
+
if (!C(n4))
|
|
10578
10578
|
throw new TypeError;
|
|
10579
10579
|
t5 = n4;
|
|
10580
10580
|
}
|
|
@@ -10784,13 +10784,13 @@ var require_coreipc = __commonJS((exports, module) => {
|
|
|
10784
10784
|
Object.defineProperty(t2, "EmptyError", { enumerable: true, get: function() {
|
|
10785
10785
|
return k.EmptyError;
|
|
10786
10786
|
} });
|
|
10787
|
-
var
|
|
10787
|
+
var C = r(7628);
|
|
10788
10788
|
Object.defineProperty(t2, "NotFoundError", { enumerable: true, get: function() {
|
|
10789
|
-
return
|
|
10789
|
+
return C.NotFoundError;
|
|
10790
10790
|
} });
|
|
10791
|
-
var
|
|
10791
|
+
var T = r(740);
|
|
10792
10792
|
Object.defineProperty(t2, "ObjectUnsubscribedError", { enumerable: true, get: function() {
|
|
10793
|
-
return
|
|
10793
|
+
return T.ObjectUnsubscribedError;
|
|
10794
10794
|
} });
|
|
10795
10795
|
var A = r(6968);
|
|
10796
10796
|
Object.defineProperty(t2, "SequenceError", { enumerable: true, get: function() {
|
|
@@ -11000,13 +11000,13 @@ var require_coreipc = __commonJS((exports, module) => {
|
|
|
11000
11000
|
Object.defineProperty(t2, "debounceTime", { enumerable: true, get: function() {
|
|
11001
11001
|
return ke.debounceTime;
|
|
11002
11002
|
} });
|
|
11003
|
-
var
|
|
11003
|
+
var Ce = r(6204);
|
|
11004
11004
|
Object.defineProperty(t2, "defaultIfEmpty", { enumerable: true, get: function() {
|
|
11005
|
-
return
|
|
11005
|
+
return Ce.defaultIfEmpty;
|
|
11006
11006
|
} });
|
|
11007
|
-
var
|
|
11007
|
+
var Te = r(7752);
|
|
11008
11008
|
Object.defineProperty(t2, "delay", { enumerable: true, get: function() {
|
|
11009
|
-
return
|
|
11009
|
+
return Te.delay;
|
|
11010
11010
|
} });
|
|
11011
11011
|
var Ae = r(7532);
|
|
11012
11012
|
Object.defineProperty(t2, "delayWhen", { enumerable: true, get: function() {
|
|
@@ -11216,13 +11216,13 @@ var require_coreipc = __commonJS((exports, module) => {
|
|
|
11216
11216
|
Object.defineProperty(t2, "share", { enumerable: true, get: function() {
|
|
11217
11217
|
return kt.share;
|
|
11218
11218
|
} });
|
|
11219
|
-
var
|
|
11219
|
+
var Ct = r(4980);
|
|
11220
11220
|
Object.defineProperty(t2, "shareReplay", { enumerable: true, get: function() {
|
|
11221
|
-
return
|
|
11221
|
+
return Ct.shareReplay;
|
|
11222
11222
|
} });
|
|
11223
|
-
var
|
|
11223
|
+
var Tt = r(1400);
|
|
11224
11224
|
Object.defineProperty(t2, "single", { enumerable: true, get: function() {
|
|
11225
|
-
return
|
|
11225
|
+
return Tt.single;
|
|
11226
11226
|
} });
|
|
11227
11227
|
var At = r(7516);
|
|
11228
11228
|
Object.defineProperty(t2, "skip", { enumerable: true, get: function() {
|
|
@@ -16922,12 +16922,24 @@ var require_coreipc = __commonJS((exports, module) => {
|
|
|
16922
16922
|
static create() {
|
|
16923
16923
|
return new r;
|
|
16924
16924
|
}
|
|
16925
|
+
get(e3) {
|
|
16926
|
+
return this._map.get(e3);
|
|
16927
|
+
}
|
|
16925
16928
|
getOrCreateValue(e3, t3) {
|
|
16926
16929
|
if (this._map.has(e3))
|
|
16927
16930
|
return this._map.get(e3);
|
|
16928
16931
|
let r2 = t3(e3);
|
|
16929
16932
|
return this._map.set(e3, r2), r2;
|
|
16930
16933
|
}
|
|
16934
|
+
delete(e3) {
|
|
16935
|
+
return this._map.delete(e3);
|
|
16936
|
+
}
|
|
16937
|
+
values() {
|
|
16938
|
+
return this._map.values();
|
|
16939
|
+
}
|
|
16940
|
+
clear() {
|
|
16941
|
+
this._map.clear();
|
|
16942
|
+
}
|
|
16931
16943
|
}
|
|
16932
16944
|
t2.Dictionary = r;
|
|
16933
16945
|
}, 4444: function(e2, t2, r) {
|
|
@@ -18300,25 +18312,61 @@ Object name: '${e3}'.`), t3;
|
|
|
18300
18312
|
Object.defineProperty(t2, "__esModule", { value: true }), o(r(1476), t2), o(r(9108), t2), o(r(4236), t2), o(r(2988), t2), o(r(5276), t2), o(r(7540), t2), o(r(2432), t2), o(r(712), t2);
|
|
18301
18313
|
}, 1816: (e2, t2) => {
|
|
18302
18314
|
Object.defineProperty(t2, "__esModule", { value: true });
|
|
18303
|
-
}, 5284: (e2, t2, r)
|
|
18315
|
+
}, 5284: function(e2, t2, r) {
|
|
18316
|
+
var n = this && this.__awaiter || function(e3, t3, r2, n2) {
|
|
18317
|
+
return new (r2 || (r2 = Promise))(function(o2, i3) {
|
|
18318
|
+
function s2(e4) {
|
|
18319
|
+
try {
|
|
18320
|
+
c2(n2.next(e4));
|
|
18321
|
+
} catch (e5) {
|
|
18322
|
+
i3(e5);
|
|
18323
|
+
}
|
|
18324
|
+
}
|
|
18325
|
+
function a2(e4) {
|
|
18326
|
+
try {
|
|
18327
|
+
c2(n2.throw(e4));
|
|
18328
|
+
} catch (e5) {
|
|
18329
|
+
i3(e5);
|
|
18330
|
+
}
|
|
18331
|
+
}
|
|
18332
|
+
function c2(e4) {
|
|
18333
|
+
var t4;
|
|
18334
|
+
e4.done ? o2(e4.value) : (t4 = e4.value, t4 instanceof r2 ? t4 : new r2(function(e5) {
|
|
18335
|
+
e5(t4);
|
|
18336
|
+
})).then(s2, a2);
|
|
18337
|
+
}
|
|
18338
|
+
c2((n2 = n2.apply(e3, t3 || [])).next());
|
|
18339
|
+
});
|
|
18340
|
+
};
|
|
18304
18341
|
Object.defineProperty(t2, "__esModule", { value: true }), t2.IpcBaseImpl = t2.IpcCoreBase = undefined;
|
|
18305
|
-
const
|
|
18342
|
+
const o = r(5188), i2 = r(3212), s = r(4104), a = r(2760), c = r(9100);
|
|
18306
18343
|
t2.IpcCoreBase = class {
|
|
18307
18344
|
constructor() {
|
|
18308
18345
|
this._db = new Map;
|
|
18309
18346
|
}
|
|
18310
18347
|
};
|
|
18311
18348
|
|
|
18312
|
-
class
|
|
18349
|
+
class u {
|
|
18313
18350
|
constructor(e3, t3, r2) {
|
|
18314
|
-
this.addressBuilder = e3, this.proxy = new
|
|
18351
|
+
this.addressBuilder = e3, this.proxy = new u.ProxySource(this), this.config = new u.Configuration(this), this.callback = new c.CallbackImpl(this), this.configStore = new i2.ConfigStore(this), this.proxySource = new s.ProxySource(this), this.dispatchProxies = new s.DispatchProxyClassStore, this.wire = new s.Wire(this), this.contractStore = new a.ContractStore, this.callbackStore = new s.CallbackStoreImpl, this.$service = t3 != null ? t3 : new i2.ServiceAnnotationsWrapper(this).iface, this.$operation = r2 != null ? r2 : new i2.OperationAnnotationsWrapper(this).iface;
|
|
18315
18352
|
}
|
|
18316
18353
|
getAddress(e3) {
|
|
18317
18354
|
const t3 = new this.addressBuilder;
|
|
18318
18355
|
return e3(t3), t3.assertAddress();
|
|
18319
18356
|
}
|
|
18357
|
+
disposeChannel(e3) {
|
|
18358
|
+
return n(this, undefined, undefined, function* () {
|
|
18359
|
+
const t3 = this.getAddress(e3);
|
|
18360
|
+
yield this.wire.disposeChannel(t3.key);
|
|
18361
|
+
});
|
|
18362
|
+
}
|
|
18363
|
+
disposeAllChannels() {
|
|
18364
|
+
return n(this, undefined, undefined, function* () {
|
|
18365
|
+
yield this.wire.disposeAllChannels();
|
|
18366
|
+
});
|
|
18367
|
+
}
|
|
18320
18368
|
}
|
|
18321
|
-
t2.IpcBaseImpl =
|
|
18369
|
+
t2.IpcBaseImpl = u, function(e3) {
|
|
18322
18370
|
e3.ProxySource = class {
|
|
18323
18371
|
constructor(e4) {
|
|
18324
18372
|
this._serviceProvider = e4;
|
|
@@ -18334,7 +18382,7 @@ Object name: '${e3}'.`), t3;
|
|
|
18334
18382
|
this._serviceProvider = e4, this._address = t4;
|
|
18335
18383
|
}
|
|
18336
18384
|
withService(e4) {
|
|
18337
|
-
const t4 = new
|
|
18385
|
+
const t4 = new s.ProxyId(e4, this._address);
|
|
18338
18386
|
return this._serviceProvider.proxySource.resolve(t4);
|
|
18339
18387
|
}
|
|
18340
18388
|
}
|
|
@@ -18356,27 +18404,27 @@ Object name: '${e3}'.`), t3;
|
|
|
18356
18404
|
this._ipc = e4, this._address = t4;
|
|
18357
18405
|
}
|
|
18358
18406
|
setConnectHelper(e4) {
|
|
18359
|
-
(0,
|
|
18407
|
+
(0, o.assertArgument)({ value: e4 }, "function"), this._ipc.configStore.setConnectHelper(this._address, e4);
|
|
18360
18408
|
}
|
|
18361
18409
|
forAnyService() {
|
|
18362
|
-
return new
|
|
18410
|
+
return new n2(this._ipc, this._address);
|
|
18363
18411
|
}
|
|
18364
18412
|
forService(e4) {
|
|
18365
|
-
return new
|
|
18413
|
+
return new n2(this._ipc, this._address, e4);
|
|
18366
18414
|
}
|
|
18367
18415
|
}
|
|
18368
18416
|
e3.ConfigurationWithAddress = r2;
|
|
18369
18417
|
|
|
18370
|
-
class
|
|
18418
|
+
class n2 {
|
|
18371
18419
|
constructor(e4, t4, r3) {
|
|
18372
18420
|
this._ipc = e4, this._address = t4, this._service = r3;
|
|
18373
18421
|
}
|
|
18374
18422
|
setRequestTimeout(e4) {
|
|
18375
|
-
(0,
|
|
18423
|
+
(0, o.assertArgument)({ value: e4 }, "number", o.TimeSpan), typeof e4 == "number" && (e4 = o.TimeSpan.fromMilliseconds(e4)), this._ipc.configStore.setRequestTimeout(this._address, this._service, e4);
|
|
18376
18424
|
}
|
|
18377
18425
|
}
|
|
18378
|
-
e3.ConfigurationWithAddressService =
|
|
18379
|
-
}(
|
|
18426
|
+
e3.ConfigurationWithAddressService = n2;
|
|
18427
|
+
}(u = t2.IpcBaseImpl || (t2.IpcBaseImpl = {}));
|
|
18380
18428
|
}, 3552: (e2, t2) => {
|
|
18381
18429
|
Object.defineProperty(t2, "__esModule", { value: true }), t2.IpcError = undefined, t2.IpcError = class {
|
|
18382
18430
|
constructor(e3, t3, r, n) {
|
|
@@ -18449,7 +18497,13 @@ Object name: '${e3}'.`), t3;
|
|
|
18449
18497
|
}
|
|
18450
18498
|
disposeAsync() {
|
|
18451
18499
|
return n(this, undefined, undefined, function* () {
|
|
18452
|
-
this._ctsLoop.cancel()
|
|
18500
|
+
this._ctsLoop.cancel();
|
|
18501
|
+
try {
|
|
18502
|
+
yield this._loop;
|
|
18503
|
+
} catch (e3) {
|
|
18504
|
+
e3 instanceof o.OperationCanceledError || o.Trace.log(o.UnknownError.ensureError(e3));
|
|
18505
|
+
}
|
|
18506
|
+
this._stream.dispose();
|
|
18453
18507
|
});
|
|
18454
18508
|
}
|
|
18455
18509
|
static toMessageTypeString(e3) {
|
|
@@ -18634,8 +18688,8 @@ ${e3.Data}`);
|
|
|
18634
18688
|
static create(e3, t3, r2, n2, o2, i3) {
|
|
18635
18689
|
return new a(e3, t3, r2, n2, o2, i3);
|
|
18636
18690
|
}
|
|
18637
|
-
constructor(e3, t3, r2, n2,
|
|
18638
|
-
this._observer =
|
|
18691
|
+
constructor(e3, t3, r2, n2, s2, c) {
|
|
18692
|
+
this._observer = s2, this._isDisposed = false, this._outgoingCalls = new a.OutgoingCallTable, this._networkObserver = new class {
|
|
18639
18693
|
constructor(e4) {
|
|
18640
18694
|
this._owner = e4;
|
|
18641
18695
|
}
|
|
@@ -18648,8 +18702,8 @@ ${e3.Data}`);
|
|
|
18648
18702
|
complete() {
|
|
18649
18703
|
this._owner.dispatchNetworkComplete();
|
|
18650
18704
|
}
|
|
18651
|
-
}(this), this._$messageStream = a.createMessageStream(e3, t3, r2, n2, this._networkObserver, i2.MessageStream.Factory.orDefault(
|
|
18652
|
-
this.disposeAsync();
|
|
18705
|
+
}(this), this._$messageStream = a.createMessageStream(e3, t3, r2, n2, this._networkObserver, i2.MessageStream.Factory.orDefault(c)), this._$messageStream.catch((e4) => {
|
|
18706
|
+
o.Trace.traceErrorNoThrow(this.disposeAsync());
|
|
18653
18707
|
});
|
|
18654
18708
|
}
|
|
18655
18709
|
disposeAsync() {
|
|
@@ -18888,6 +18942,12 @@ ${e3.Data}`);
|
|
|
18888
18942
|
complete() {}
|
|
18889
18943
|
}(this);
|
|
18890
18944
|
}
|
|
18945
|
+
disposeAsync() {
|
|
18946
|
+
return n(this, undefined, undefined, function* () {
|
|
18947
|
+
const e3 = this._latestChannel;
|
|
18948
|
+
this._latestChannel = undefined, e3 && !e3.isDisposed && (yield e3.disposeAsync());
|
|
18949
|
+
});
|
|
18950
|
+
}
|
|
18891
18951
|
invokeMethod(e3, t3, r2) {
|
|
18892
18952
|
return n(this, undefined, undefined, function* () {
|
|
18893
18953
|
const [n2, a, c, u] = s.RpcRequestFactory.create({ sp: this._sp, service: e3, address: this._address, methodName: t3, args: r2 }), l = yield this.ensureConnection(o.Timeout.infiniteTimeSpan, c), f = yield l.call(n2, u, c), d = i2.Converter.unwrapRpcResponse(f, n2);
|
|
@@ -19042,18 +19102,55 @@ ${e3.Data}`);
|
|
|
19042
19102
|
return !d || e3.args.length !== 0 && e3.args[e3.args.length - 1] instanceof n.CancellationToken || (y = [...y, n.CancellationToken.none]), [o.Converter.toRpcRequest(l, f, y, b), p, v, b];
|
|
19043
19103
|
}
|
|
19044
19104
|
};
|
|
19045
|
-
}, 4156: (e2, t2, r)
|
|
19105
|
+
}, 4156: function(e2, t2, r) {
|
|
19106
|
+
var n = this && this.__awaiter || function(e3, t3, r2, n2) {
|
|
19107
|
+
return new (r2 || (r2 = Promise))(function(o2, i3) {
|
|
19108
|
+
function s2(e4) {
|
|
19109
|
+
try {
|
|
19110
|
+
c(n2.next(e4));
|
|
19111
|
+
} catch (e5) {
|
|
19112
|
+
i3(e5);
|
|
19113
|
+
}
|
|
19114
|
+
}
|
|
19115
|
+
function a(e4) {
|
|
19116
|
+
try {
|
|
19117
|
+
c(n2.throw(e4));
|
|
19118
|
+
} catch (e5) {
|
|
19119
|
+
i3(e5);
|
|
19120
|
+
}
|
|
19121
|
+
}
|
|
19122
|
+
function c(e4) {
|
|
19123
|
+
var t4;
|
|
19124
|
+
e4.done ? o2(e4.value) : (t4 = e4.value, t4 instanceof r2 ? t4 : new r2(function(e5) {
|
|
19125
|
+
e5(t4);
|
|
19126
|
+
})).then(s2, a);
|
|
19127
|
+
}
|
|
19128
|
+
c((n2 = n2.apply(e3, t3 || [])).next());
|
|
19129
|
+
});
|
|
19130
|
+
};
|
|
19046
19131
|
Object.defineProperty(t2, "__esModule", { value: true }), t2.Wire = undefined;
|
|
19047
|
-
const
|
|
19132
|
+
const o = r(3212), i2 = r(4104), s = r(5188);
|
|
19048
19133
|
t2.Wire = class {
|
|
19049
19134
|
invokeMethod(e3, t3, r2) {
|
|
19050
19135
|
return this.getOrCreateChannelManager(e3.address).invokeMethod(e3.service, t3, r2);
|
|
19051
19136
|
}
|
|
19052
|
-
constructor(e3, t3 =
|
|
19053
|
-
this._sp = e3, this._rpcChannelFactory = t3, this._messageStreamFactory = r2, this._map = new
|
|
19137
|
+
constructor(e3, t3 = o.RpcChannel, r2 = new o.MessageStream.Factory) {
|
|
19138
|
+
this._sp = e3, this._rpcChannelFactory = t3, this._messageStreamFactory = r2, this._map = new s.Dictionary;
|
|
19054
19139
|
}
|
|
19055
19140
|
getOrCreateChannelManager(e3) {
|
|
19056
|
-
return this._map.getOrCreateValue(e3.key, () => new
|
|
19141
|
+
return this._map.getOrCreateValue(e3.key, () => new i2.ChannelManager(this._sp, e3, this._rpcChannelFactory, this._messageStreamFactory));
|
|
19142
|
+
}
|
|
19143
|
+
disposeChannel(e3) {
|
|
19144
|
+
return n(this, undefined, undefined, function* () {
|
|
19145
|
+
const t3 = this._map.get(e3);
|
|
19146
|
+
t3 && (this._map.delete(e3), yield t3.disposeAsync());
|
|
19147
|
+
});
|
|
19148
|
+
}
|
|
19149
|
+
disposeAllChannels() {
|
|
19150
|
+
return n(this, undefined, undefined, function* () {
|
|
19151
|
+
const e3 = [...this._map.values()];
|
|
19152
|
+
this._map.clear(), yield Promise.all(e3.map((e4) => e4.disposeAsync()));
|
|
19153
|
+
});
|
|
19057
19154
|
}
|
|
19058
19155
|
};
|
|
19059
19156
|
}, 4104: function(e2, t2, r) {
|
|
@@ -20016,7 +20113,7 @@ ${e3.Data}`);
|
|
|
20016
20113
|
}
|
|
20017
20114
|
};
|
|
20018
20115
|
}, 5144: (e2, t2, r) => {
|
|
20019
|
-
const n = r(467), o = r(1256), i2 = r(3755), s = r(5256), a = r(192), { randomBytes: c, createHash: u } = r(7968), { Readable: l } = r(8378), { URL: f } = r(8716), d = r(516), p = r(6804), h = r(957), { BINARY_TYPES: v, EMPTY_BUFFER: b, GUID: y, kForOnEventAttribute: _, kListener: m, kStatusCode: g, kWebSocket: O, NOOP: w } = r(5820), { EventTarget: { addEventListener: S, removeEventListener: P } } = r(2584), { format: j, parse: E } = r(1056), { toBuffer: x } = r(3092), M = Symbol("kAborted"), k = [8, 13],
|
|
20116
|
+
const n = r(467), o = r(1256), i2 = r(3755), s = r(5256), a = r(192), { randomBytes: c, createHash: u } = r(7968), { Readable: l } = r(8378), { URL: f } = r(8716), d = r(516), p = r(6804), h = r(957), { BINARY_TYPES: v, EMPTY_BUFFER: b, GUID: y, kForOnEventAttribute: _, kListener: m, kStatusCode: g, kWebSocket: O, NOOP: w } = r(5820), { EventTarget: { addEventListener: S, removeEventListener: P } } = r(2584), { format: j, parse: E } = r(1056), { toBuffer: x } = r(3092), M = Symbol("kAborted"), k = [8, 13], C = ["CONNECTING", "OPEN", "CLOSING", "CLOSED"], T = /^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;
|
|
20020
20117
|
|
|
20021
20118
|
class A extends n {
|
|
20022
20119
|
constructor(e3, t3, r2) {
|
|
@@ -20139,7 +20236,7 @@ ${e3.Data}`);
|
|
|
20139
20236
|
let g2, O2;
|
|
20140
20237
|
if (s2.createConnection = l2 ? F : R, s2.defaultPort = s2.defaultPort || v2, s2.port = a2.port || v2, s2.host = a2.hostname.startsWith("[") ? a2.hostname.slice(1, -1) : a2.hostname, s2.headers = { ...s2.headers, "Sec-WebSocket-Version": s2.protocolVersion, "Sec-WebSocket-Key": b2, Connection: "Upgrade", Upgrade: "websocket" }, s2.path = a2.pathname + a2.search, s2.timeout = s2.handshakeTimeout, s2.perMessageDeflate && (g2 = new d(s2.perMessageDeflate !== true ? s2.perMessageDeflate : {}, false, s2.maxPayload), s2.headers["Sec-WebSocket-Extensions"] = j({ [d.extensionName]: g2.offer() })), r2.length) {
|
|
20141
20238
|
for (const e4 of r2) {
|
|
20142
|
-
if (typeof e4 != "string" || !
|
|
20239
|
+
if (typeof e4 != "string" || !T.test(e4) || m2.has(e4))
|
|
20143
20240
|
throw new SyntaxError("An invalid or duplicated subprotocol was specified");
|
|
20144
20241
|
m2.add(e4);
|
|
20145
20242
|
}
|
|
@@ -20238,7 +20335,7 @@ ${e3.Data}`);
|
|
|
20238
20335
|
const r3 = x(t3).length;
|
|
20239
20336
|
e3._socket ? e3._sender._bufferedBytes += r3 : e3._bufferedAmount += r3;
|
|
20240
20337
|
}
|
|
20241
|
-
r2 && r2(new Error(`WebSocket is not open: readyState ${e3.readyState} (${
|
|
20338
|
+
r2 && r2(new Error(`WebSocket is not open: readyState ${e3.readyState} (${C[e3.readyState]})`));
|
|
20242
20339
|
}
|
|
20243
20340
|
function W(e3, t3) {
|
|
20244
20341
|
const r2 = this[O];
|
|
@@ -20284,7 +20381,7 @@ ${e3.Data}`);
|
|
|
20284
20381
|
const e3 = this[O];
|
|
20285
20382
|
this.removeListener("error", J), this.on("error", w), e3 && (e3._readyState = A.CLOSING, this.destroy());
|
|
20286
20383
|
}
|
|
20287
|
-
Object.defineProperty(A, "CONNECTING", { enumerable: true, value:
|
|
20384
|
+
Object.defineProperty(A, "CONNECTING", { enumerable: true, value: C.indexOf("CONNECTING") }), Object.defineProperty(A.prototype, "CONNECTING", { enumerable: true, value: C.indexOf("CONNECTING") }), Object.defineProperty(A, "OPEN", { enumerable: true, value: C.indexOf("OPEN") }), Object.defineProperty(A.prototype, "OPEN", { enumerable: true, value: C.indexOf("OPEN") }), Object.defineProperty(A, "CLOSING", { enumerable: true, value: C.indexOf("CLOSING") }), Object.defineProperty(A.prototype, "CLOSING", { enumerable: true, value: C.indexOf("CLOSING") }), Object.defineProperty(A, "CLOSED", { enumerable: true, value: C.indexOf("CLOSED") }), Object.defineProperty(A.prototype, "CLOSED", { enumerable: true, value: C.indexOf("CLOSED") }), ["binaryType", "bufferedAmount", "extensions", "isPaused", "protocol", "readyState", "url"].forEach((e3) => {
|
|
20288
20385
|
Object.defineProperty(A.prototype, e3, { enumerable: true });
|
|
20289
20386
|
}), ["open", "error", "close", "message"].forEach((e3) => {
|
|
20290
20387
|
Object.defineProperty(A.prototype, `on${e3}`, { enumerable: true, get() {
|
|
@@ -26961,11 +27058,13 @@ var require_handle_consent_code_message = __commonJS((exports) => {
|
|
|
26961
27058
|
var coreipc_1 = require_coreipc();
|
|
26962
27059
|
|
|
26963
27060
|
class HandleConsentCodeMessage extends coreipc_1.Message {
|
|
26964
|
-
constructor(Accept, Domain, ConsentCode) {
|
|
27061
|
+
constructor(Accept, Domain, ConsentCode, SignInUrl) {
|
|
26965
27062
|
super();
|
|
26966
27063
|
this.Accept = Accept;
|
|
26967
27064
|
this.Domain = Domain;
|
|
26968
27065
|
this.ConsentCode = ConsentCode;
|
|
27066
|
+
this.SignInUrl = SignInUrl;
|
|
27067
|
+
this.RequestTimeout = coreipc_1.TimeSpan.fromSeconds(60);
|
|
26969
27068
|
}
|
|
26970
27069
|
}
|
|
26971
27070
|
exports.HandleConsentCodeMessage = HandleConsentCodeMessage;
|
|
@@ -27766,8 +27865,8 @@ var require_robotjs_services2 = __commonJS((exports) => {
|
|
|
27766
27865
|
constructor(_consentCodeServices) {
|
|
27767
27866
|
this._consentCodeServices = _consentCodeServices;
|
|
27768
27867
|
}
|
|
27769
|
-
HandleConsentCode(accept, domain2, consentCode) {
|
|
27770
|
-
return this._consentCodeServices.HandleConsentCode(new server.HandleConsentCodeMessage(accept, domain2, consentCode), coreipc_1.CancellationToken.none);
|
|
27868
|
+
HandleConsentCode(accept, domain2, consentCode, signInUrl) {
|
|
27869
|
+
return this._consentCodeServices.HandleConsentCode(new server.HandleConsentCodeMessage(accept, domain2, consentCode, signInUrl), coreipc_1.CancellationToken.none);
|
|
27771
27870
|
}
|
|
27772
27871
|
IsDomainAllowed(domain2) {
|
|
27773
27872
|
return this._consentCodeServices.IsDomainAllowed(new server.IsDomainAllowedMessage(domain2), coreipc_1.CancellationToken.none);
|
|
@@ -27909,7 +28008,10 @@ var require_robot_agent_proxy2 = __commonJS((exports) => {
|
|
|
27909
28008
|
this._robotJsServices = new robotjs_services_1.RobotJsServices(this._consentCodeServices);
|
|
27910
28009
|
}
|
|
27911
28010
|
CloseAsync() {
|
|
27912
|
-
return __awaiter(this, undefined, undefined, function* () {
|
|
28011
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
28012
|
+
yield coreipc_1.ipc.disposeChannel(coreipc_1.ipc.namedPipe(this._settings.pipeName));
|
|
28013
|
+
yield coreipc_1.ipc.disposeChannel(coreipc_1.ipc.namedPipe(this._robotJsSettings.pipeName));
|
|
28014
|
+
});
|
|
27913
28015
|
}
|
|
27914
28016
|
get RobotStatusChanged() {
|
|
27915
28017
|
return this._robotStatusChanged;
|
|
@@ -34638,7 +34740,7 @@ var require_dist2 = __commonJS((exports, module) => {
|
|
|
34638
34740
|
// package.json
|
|
34639
34741
|
var package_default = {
|
|
34640
34742
|
name: "@uipath/docsai-tool",
|
|
34641
|
-
version: "0.9.
|
|
34743
|
+
version: "0.9.1",
|
|
34642
34744
|
description: "Search UiPath documentation with AI-powered answers.",
|
|
34643
34745
|
private: false,
|
|
34644
34746
|
repository: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/docsai-tool",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"description": "Search UiPath documentation with AI-powered answers.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"repository": {
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
"test:coverage": "vitest run --coverage"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@uipath/auth": "0.9.
|
|
38
|
-
"@uipath/common": "0.9.
|
|
37
|
+
"@uipath/auth": "0.9.1",
|
|
38
|
+
"@uipath/common": "0.9.1",
|
|
39
39
|
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
40
40
|
"@types/node": "^25.5.0",
|
|
41
41
|
"commander": "^14.0.3",
|
|
42
42
|
"typescript": "^5"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "e8da2857e37a9495c4907cd39f47c9d6ed1a5566"
|
|
45
45
|
}
|