@uipath/tasks-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.
Files changed (3) hide show
  1. package/dist/index.js +152 -50
  2. package/dist/tool.js +152 -50
  3. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -10554,7 +10554,7 @@ var require_coreipc = __commonJS((exports, module) => {
10554
10554
  if (S(n3))
10555
10555
  return r3;
10556
10556
  for (var i3 = function(e6) {
10557
- var t5 = C(e6, o2);
10557
+ var t5 = T(e6, o2);
10558
10558
  if (!k(t5))
10559
10559
  throw new TypeError;
10560
10560
  var r4 = t5.call(e6);
@@ -10617,7 +10617,7 @@ var require_coreipc = __commonJS((exports, module) => {
10617
10617
  case 5:
10618
10618
  return e5;
10619
10619
  }
10620
- var r3 = t4 === 3 ? "string" : t4 === 5 ? "number" : "default", o3 = C(e5, n2);
10620
+ var r3 = t4 === 3 ? "string" : t4 === 5 ? "number" : "default", o3 = T(e5, n2);
10621
10621
  if (o3 !== undefined) {
10622
10622
  var i3 = o3.call(e5, r3);
10623
10623
  if (j(i3))
@@ -10654,10 +10654,10 @@ var require_coreipc = __commonJS((exports, module) => {
10654
10654
  function k(e5) {
10655
10655
  return typeof e5 == "function";
10656
10656
  }
10657
- function T(e5) {
10657
+ function C(e5) {
10658
10658
  return typeof e5 == "function";
10659
10659
  }
10660
- function C(e5, t4) {
10660
+ function T(e5, t4) {
10661
10661
  var r3 = e5[t4];
10662
10662
  if (r3 != null) {
10663
10663
  if (!k(r3))
@@ -10692,13 +10692,13 @@ var require_coreipc = __commonJS((exports, module) => {
10692
10692
  if (S(r3)) {
10693
10693
  if (!M(e5))
10694
10694
  throw new TypeError;
10695
- if (!T(t4))
10695
+ if (!C(t4))
10696
10696
  throw new TypeError;
10697
10697
  return function(e6, t5) {
10698
10698
  for (var r4 = e6.length - 1;r4 >= 0; --r4) {
10699
10699
  var n4 = (0, e6[r4])(t5);
10700
10700
  if (!S(n4) && !P(n4)) {
10701
- if (!T(n4))
10701
+ if (!C(n4))
10702
10702
  throw new TypeError;
10703
10703
  t5 = n4;
10704
10704
  }
@@ -10908,13 +10908,13 @@ var require_coreipc = __commonJS((exports, module) => {
10908
10908
  Object.defineProperty(t2, "EmptyError", { enumerable: true, get: function() {
10909
10909
  return k.EmptyError;
10910
10910
  } });
10911
- var T = r(7628);
10911
+ var C = r(7628);
10912
10912
  Object.defineProperty(t2, "NotFoundError", { enumerable: true, get: function() {
10913
- return T.NotFoundError;
10913
+ return C.NotFoundError;
10914
10914
  } });
10915
- var C = r(740);
10915
+ var T = r(740);
10916
10916
  Object.defineProperty(t2, "ObjectUnsubscribedError", { enumerable: true, get: function() {
10917
- return C.ObjectUnsubscribedError;
10917
+ return T.ObjectUnsubscribedError;
10918
10918
  } });
10919
10919
  var A = r(6968);
10920
10920
  Object.defineProperty(t2, "SequenceError", { enumerable: true, get: function() {
@@ -11124,13 +11124,13 @@ var require_coreipc = __commonJS((exports, module) => {
11124
11124
  Object.defineProperty(t2, "debounceTime", { enumerable: true, get: function() {
11125
11125
  return ke.debounceTime;
11126
11126
  } });
11127
- var Te = r(6204);
11127
+ var Ce = r(6204);
11128
11128
  Object.defineProperty(t2, "defaultIfEmpty", { enumerable: true, get: function() {
11129
- return Te.defaultIfEmpty;
11129
+ return Ce.defaultIfEmpty;
11130
11130
  } });
11131
- var Ce = r(7752);
11131
+ var Te = r(7752);
11132
11132
  Object.defineProperty(t2, "delay", { enumerable: true, get: function() {
11133
- return Ce.delay;
11133
+ return Te.delay;
11134
11134
  } });
11135
11135
  var Ae = r(7532);
11136
11136
  Object.defineProperty(t2, "delayWhen", { enumerable: true, get: function() {
@@ -11340,13 +11340,13 @@ var require_coreipc = __commonJS((exports, module) => {
11340
11340
  Object.defineProperty(t2, "share", { enumerable: true, get: function() {
11341
11341
  return kt.share;
11342
11342
  } });
11343
- var Tt = r(4980);
11343
+ var Ct = r(4980);
11344
11344
  Object.defineProperty(t2, "shareReplay", { enumerable: true, get: function() {
11345
- return Tt.shareReplay;
11345
+ return Ct.shareReplay;
11346
11346
  } });
11347
- var Ct = r(1400);
11347
+ var Tt = r(1400);
11348
11348
  Object.defineProperty(t2, "single", { enumerable: true, get: function() {
11349
- return Ct.single;
11349
+ return Tt.single;
11350
11350
  } });
11351
11351
  var At = r(7516);
11352
11352
  Object.defineProperty(t2, "skip", { enumerable: true, get: function() {
@@ -17046,12 +17046,24 @@ var require_coreipc = __commonJS((exports, module) => {
17046
17046
  static create() {
17047
17047
  return new r;
17048
17048
  }
17049
+ get(e3) {
17050
+ return this._map.get(e3);
17051
+ }
17049
17052
  getOrCreateValue(e3, t3) {
17050
17053
  if (this._map.has(e3))
17051
17054
  return this._map.get(e3);
17052
17055
  let r2 = t3(e3);
17053
17056
  return this._map.set(e3, r2), r2;
17054
17057
  }
17058
+ delete(e3) {
17059
+ return this._map.delete(e3);
17060
+ }
17061
+ values() {
17062
+ return this._map.values();
17063
+ }
17064
+ clear() {
17065
+ this._map.clear();
17066
+ }
17055
17067
  }
17056
17068
  t2.Dictionary = r;
17057
17069
  }, 4444: function(e2, t2, r) {
@@ -18424,25 +18436,61 @@ Object name: '${e3}'.`), t3;
18424
18436
  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);
18425
18437
  }, 1816: (e2, t2) => {
18426
18438
  Object.defineProperty(t2, "__esModule", { value: true });
18427
- }, 5284: (e2, t2, r) => {
18439
+ }, 5284: function(e2, t2, r) {
18440
+ var n = this && this.__awaiter || function(e3, t3, r2, n2) {
18441
+ return new (r2 || (r2 = Promise))(function(o2, i3) {
18442
+ function s2(e4) {
18443
+ try {
18444
+ c2(n2.next(e4));
18445
+ } catch (e5) {
18446
+ i3(e5);
18447
+ }
18448
+ }
18449
+ function a2(e4) {
18450
+ try {
18451
+ c2(n2.throw(e4));
18452
+ } catch (e5) {
18453
+ i3(e5);
18454
+ }
18455
+ }
18456
+ function c2(e4) {
18457
+ var t4;
18458
+ e4.done ? o2(e4.value) : (t4 = e4.value, t4 instanceof r2 ? t4 : new r2(function(e5) {
18459
+ e5(t4);
18460
+ })).then(s2, a2);
18461
+ }
18462
+ c2((n2 = n2.apply(e3, t3 || [])).next());
18463
+ });
18464
+ };
18428
18465
  Object.defineProperty(t2, "__esModule", { value: true }), t2.IpcBaseImpl = t2.IpcCoreBase = undefined;
18429
- const n = r(5188), o = r(3212), i2 = r(4104), s = r(2760), a = r(9100);
18466
+ const o = r(5188), i2 = r(3212), s = r(4104), a = r(2760), c = r(9100);
18430
18467
  t2.IpcCoreBase = class {
18431
18468
  constructor() {
18432
18469
  this._db = new Map;
18433
18470
  }
18434
18471
  };
18435
18472
 
18436
- class c {
18473
+ class u {
18437
18474
  constructor(e3, t3, r2) {
18438
- this.addressBuilder = e3, this.proxy = new c.ProxySource(this), this.config = new c.Configuration(this), this.callback = new a.CallbackImpl(this), this.configStore = new o.ConfigStore(this), this.proxySource = new i2.ProxySource(this), this.dispatchProxies = new i2.DispatchProxyClassStore, this.wire = new i2.Wire(this), this.contractStore = new s.ContractStore, this.callbackStore = new i2.CallbackStoreImpl, this.$service = t3 != null ? t3 : new o.ServiceAnnotationsWrapper(this).iface, this.$operation = r2 != null ? r2 : new o.OperationAnnotationsWrapper(this).iface;
18475
+ 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;
18439
18476
  }
18440
18477
  getAddress(e3) {
18441
18478
  const t3 = new this.addressBuilder;
18442
18479
  return e3(t3), t3.assertAddress();
18443
18480
  }
18481
+ disposeChannel(e3) {
18482
+ return n(this, undefined, undefined, function* () {
18483
+ const t3 = this.getAddress(e3);
18484
+ yield this.wire.disposeChannel(t3.key);
18485
+ });
18486
+ }
18487
+ disposeAllChannels() {
18488
+ return n(this, undefined, undefined, function* () {
18489
+ yield this.wire.disposeAllChannels();
18490
+ });
18491
+ }
18444
18492
  }
18445
- t2.IpcBaseImpl = c, function(e3) {
18493
+ t2.IpcBaseImpl = u, function(e3) {
18446
18494
  e3.ProxySource = class {
18447
18495
  constructor(e4) {
18448
18496
  this._serviceProvider = e4;
@@ -18458,7 +18506,7 @@ Object name: '${e3}'.`), t3;
18458
18506
  this._serviceProvider = e4, this._address = t4;
18459
18507
  }
18460
18508
  withService(e4) {
18461
- const t4 = new i2.ProxyId(e4, this._address);
18509
+ const t4 = new s.ProxyId(e4, this._address);
18462
18510
  return this._serviceProvider.proxySource.resolve(t4);
18463
18511
  }
18464
18512
  }
@@ -18480,27 +18528,27 @@ Object name: '${e3}'.`), t3;
18480
18528
  this._ipc = e4, this._address = t4;
18481
18529
  }
18482
18530
  setConnectHelper(e4) {
18483
- (0, n.assertArgument)({ value: e4 }, "function"), this._ipc.configStore.setConnectHelper(this._address, e4);
18531
+ (0, o.assertArgument)({ value: e4 }, "function"), this._ipc.configStore.setConnectHelper(this._address, e4);
18484
18532
  }
18485
18533
  forAnyService() {
18486
- return new o2(this._ipc, this._address);
18534
+ return new n2(this._ipc, this._address);
18487
18535
  }
18488
18536
  forService(e4) {
18489
- return new o2(this._ipc, this._address, e4);
18537
+ return new n2(this._ipc, this._address, e4);
18490
18538
  }
18491
18539
  }
18492
18540
  e3.ConfigurationWithAddress = r2;
18493
18541
 
18494
- class o2 {
18542
+ class n2 {
18495
18543
  constructor(e4, t4, r3) {
18496
18544
  this._ipc = e4, this._address = t4, this._service = r3;
18497
18545
  }
18498
18546
  setRequestTimeout(e4) {
18499
- (0, n.assertArgument)({ value: e4 }, "number", n.TimeSpan), typeof e4 == "number" && (e4 = n.TimeSpan.fromMilliseconds(e4)), this._ipc.configStore.setRequestTimeout(this._address, this._service, e4);
18547
+ (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);
18500
18548
  }
18501
18549
  }
18502
- e3.ConfigurationWithAddressService = o2;
18503
- }(c = t2.IpcBaseImpl || (t2.IpcBaseImpl = {}));
18550
+ e3.ConfigurationWithAddressService = n2;
18551
+ }(u = t2.IpcBaseImpl || (t2.IpcBaseImpl = {}));
18504
18552
  }, 3552: (e2, t2) => {
18505
18553
  Object.defineProperty(t2, "__esModule", { value: true }), t2.IpcError = undefined, t2.IpcError = class {
18506
18554
  constructor(e3, t3, r, n) {
@@ -18573,7 +18621,13 @@ Object name: '${e3}'.`), t3;
18573
18621
  }
18574
18622
  disposeAsync() {
18575
18623
  return n(this, undefined, undefined, function* () {
18576
- this._ctsLoop.cancel(), yield this._loop, this._stream.dispose();
18624
+ this._ctsLoop.cancel();
18625
+ try {
18626
+ yield this._loop;
18627
+ } catch (e3) {
18628
+ e3 instanceof o.OperationCanceledError || o.Trace.log(o.UnknownError.ensureError(e3));
18629
+ }
18630
+ this._stream.dispose();
18577
18631
  });
18578
18632
  }
18579
18633
  static toMessageTypeString(e3) {
@@ -18758,8 +18812,8 @@ ${e3.Data}`);
18758
18812
  static create(e3, t3, r2, n2, o2, i3) {
18759
18813
  return new a(e3, t3, r2, n2, o2, i3);
18760
18814
  }
18761
- constructor(e3, t3, r2, n2, o2, s2) {
18762
- this._observer = o2, this._isDisposed = false, this._outgoingCalls = new a.OutgoingCallTable, this._networkObserver = new class {
18815
+ constructor(e3, t3, r2, n2, s2, c) {
18816
+ this._observer = s2, this._isDisposed = false, this._outgoingCalls = new a.OutgoingCallTable, this._networkObserver = new class {
18763
18817
  constructor(e4) {
18764
18818
  this._owner = e4;
18765
18819
  }
@@ -18772,8 +18826,8 @@ ${e3.Data}`);
18772
18826
  complete() {
18773
18827
  this._owner.dispatchNetworkComplete();
18774
18828
  }
18775
- }(this), this._$messageStream = a.createMessageStream(e3, t3, r2, n2, this._networkObserver, i2.MessageStream.Factory.orDefault(s2)), this._$messageStream.catch((e4) => {
18776
- this.disposeAsync();
18829
+ }(this), this._$messageStream = a.createMessageStream(e3, t3, r2, n2, this._networkObserver, i2.MessageStream.Factory.orDefault(c)), this._$messageStream.catch((e4) => {
18830
+ o.Trace.traceErrorNoThrow(this.disposeAsync());
18777
18831
  });
18778
18832
  }
18779
18833
  disposeAsync() {
@@ -19012,6 +19066,12 @@ ${e3.Data}`);
19012
19066
  complete() {}
19013
19067
  }(this);
19014
19068
  }
19069
+ disposeAsync() {
19070
+ return n(this, undefined, undefined, function* () {
19071
+ const e3 = this._latestChannel;
19072
+ this._latestChannel = undefined, e3 && !e3.isDisposed && (yield e3.disposeAsync());
19073
+ });
19074
+ }
19015
19075
  invokeMethod(e3, t3, r2) {
19016
19076
  return n(this, undefined, undefined, function* () {
19017
19077
  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);
@@ -19166,18 +19226,55 @@ ${e3.Data}`);
19166
19226
  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];
19167
19227
  }
19168
19228
  };
19169
- }, 4156: (e2, t2, r) => {
19229
+ }, 4156: function(e2, t2, r) {
19230
+ var n = this && this.__awaiter || function(e3, t3, r2, n2) {
19231
+ return new (r2 || (r2 = Promise))(function(o2, i3) {
19232
+ function s2(e4) {
19233
+ try {
19234
+ c(n2.next(e4));
19235
+ } catch (e5) {
19236
+ i3(e5);
19237
+ }
19238
+ }
19239
+ function a(e4) {
19240
+ try {
19241
+ c(n2.throw(e4));
19242
+ } catch (e5) {
19243
+ i3(e5);
19244
+ }
19245
+ }
19246
+ function c(e4) {
19247
+ var t4;
19248
+ e4.done ? o2(e4.value) : (t4 = e4.value, t4 instanceof r2 ? t4 : new r2(function(e5) {
19249
+ e5(t4);
19250
+ })).then(s2, a);
19251
+ }
19252
+ c((n2 = n2.apply(e3, t3 || [])).next());
19253
+ });
19254
+ };
19170
19255
  Object.defineProperty(t2, "__esModule", { value: true }), t2.Wire = undefined;
19171
- const n = r(3212), o = r(4104), i2 = r(5188);
19256
+ const o = r(3212), i2 = r(4104), s = r(5188);
19172
19257
  t2.Wire = class {
19173
19258
  invokeMethod(e3, t3, r2) {
19174
19259
  return this.getOrCreateChannelManager(e3.address).invokeMethod(e3.service, t3, r2);
19175
19260
  }
19176
- constructor(e3, t3 = n.RpcChannel, r2 = new n.MessageStream.Factory) {
19177
- this._sp = e3, this._rpcChannelFactory = t3, this._messageStreamFactory = r2, this._map = new i2.Dictionary;
19261
+ constructor(e3, t3 = o.RpcChannel, r2 = new o.MessageStream.Factory) {
19262
+ this._sp = e3, this._rpcChannelFactory = t3, this._messageStreamFactory = r2, this._map = new s.Dictionary;
19178
19263
  }
19179
19264
  getOrCreateChannelManager(e3) {
19180
- return this._map.getOrCreateValue(e3.key, () => new o.ChannelManager(this._sp, e3, this._rpcChannelFactory, this._messageStreamFactory));
19265
+ return this._map.getOrCreateValue(e3.key, () => new i2.ChannelManager(this._sp, e3, this._rpcChannelFactory, this._messageStreamFactory));
19266
+ }
19267
+ disposeChannel(e3) {
19268
+ return n(this, undefined, undefined, function* () {
19269
+ const t3 = this._map.get(e3);
19270
+ t3 && (this._map.delete(e3), yield t3.disposeAsync());
19271
+ });
19272
+ }
19273
+ disposeAllChannels() {
19274
+ return n(this, undefined, undefined, function* () {
19275
+ const e3 = [...this._map.values()];
19276
+ this._map.clear(), yield Promise.all(e3.map((e4) => e4.disposeAsync()));
19277
+ });
19181
19278
  }
19182
19279
  };
19183
19280
  }, 4104: function(e2, t2, r) {
@@ -20140,7 +20237,7 @@ ${e3.Data}`);
20140
20237
  }
20141
20238
  };
20142
20239
  }, 5144: (e2, t2, r) => {
20143
- 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], T = ["CONNECTING", "OPEN", "CLOSING", "CLOSED"], C = /^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;
20240
+ 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~]+$/;
20144
20241
 
20145
20242
  class A extends n {
20146
20243
  constructor(e3, t3, r2) {
@@ -20263,7 +20360,7 @@ ${e3.Data}`);
20263
20360
  let g2, O2;
20264
20361
  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) {
20265
20362
  for (const e4 of r2) {
20266
- if (typeof e4 != "string" || !C.test(e4) || m2.has(e4))
20363
+ if (typeof e4 != "string" || !T.test(e4) || m2.has(e4))
20267
20364
  throw new SyntaxError("An invalid or duplicated subprotocol was specified");
20268
20365
  m2.add(e4);
20269
20366
  }
@@ -20362,7 +20459,7 @@ ${e3.Data}`);
20362
20459
  const r3 = x(t3).length;
20363
20460
  e3._socket ? e3._sender._bufferedBytes += r3 : e3._bufferedAmount += r3;
20364
20461
  }
20365
- r2 && r2(new Error(`WebSocket is not open: readyState ${e3.readyState} (${T[e3.readyState]})`));
20462
+ r2 && r2(new Error(`WebSocket is not open: readyState ${e3.readyState} (${C[e3.readyState]})`));
20366
20463
  }
20367
20464
  function W(e3, t3) {
20368
20465
  const r2 = this[O];
@@ -20408,7 +20505,7 @@ ${e3.Data}`);
20408
20505
  const e3 = this[O];
20409
20506
  this.removeListener("error", J), this.on("error", w), e3 && (e3._readyState = A.CLOSING, this.destroy());
20410
20507
  }
20411
- Object.defineProperty(A, "CONNECTING", { enumerable: true, value: T.indexOf("CONNECTING") }), Object.defineProperty(A.prototype, "CONNECTING", { enumerable: true, value: T.indexOf("CONNECTING") }), Object.defineProperty(A, "OPEN", { enumerable: true, value: T.indexOf("OPEN") }), Object.defineProperty(A.prototype, "OPEN", { enumerable: true, value: T.indexOf("OPEN") }), Object.defineProperty(A, "CLOSING", { enumerable: true, value: T.indexOf("CLOSING") }), Object.defineProperty(A.prototype, "CLOSING", { enumerable: true, value: T.indexOf("CLOSING") }), Object.defineProperty(A, "CLOSED", { enumerable: true, value: T.indexOf("CLOSED") }), Object.defineProperty(A.prototype, "CLOSED", { enumerable: true, value: T.indexOf("CLOSED") }), ["binaryType", "bufferedAmount", "extensions", "isPaused", "protocol", "readyState", "url"].forEach((e3) => {
20508
+ 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) => {
20412
20509
  Object.defineProperty(A.prototype, e3, { enumerable: true });
20413
20510
  }), ["open", "error", "close", "message"].forEach((e3) => {
20414
20511
  Object.defineProperty(A.prototype, `on${e3}`, { enumerable: true, get() {
@@ -27085,11 +27182,13 @@ var require_handle_consent_code_message = __commonJS((exports) => {
27085
27182
  var coreipc_1 = require_coreipc();
27086
27183
 
27087
27184
  class HandleConsentCodeMessage extends coreipc_1.Message {
27088
- constructor(Accept, Domain, ConsentCode) {
27185
+ constructor(Accept, Domain, ConsentCode, SignInUrl) {
27089
27186
  super();
27090
27187
  this.Accept = Accept;
27091
27188
  this.Domain = Domain;
27092
27189
  this.ConsentCode = ConsentCode;
27190
+ this.SignInUrl = SignInUrl;
27191
+ this.RequestTimeout = coreipc_1.TimeSpan.fromSeconds(60);
27093
27192
  }
27094
27193
  }
27095
27194
  exports.HandleConsentCodeMessage = HandleConsentCodeMessage;
@@ -27890,8 +27989,8 @@ var require_robotjs_services2 = __commonJS((exports) => {
27890
27989
  constructor(_consentCodeServices) {
27891
27990
  this._consentCodeServices = _consentCodeServices;
27892
27991
  }
27893
- HandleConsentCode(accept, domain2, consentCode) {
27894
- return this._consentCodeServices.HandleConsentCode(new server.HandleConsentCodeMessage(accept, domain2, consentCode), coreipc_1.CancellationToken.none);
27992
+ HandleConsentCode(accept, domain2, consentCode, signInUrl) {
27993
+ return this._consentCodeServices.HandleConsentCode(new server.HandleConsentCodeMessage(accept, domain2, consentCode, signInUrl), coreipc_1.CancellationToken.none);
27895
27994
  }
27896
27995
  IsDomainAllowed(domain2) {
27897
27996
  return this._consentCodeServices.IsDomainAllowed(new server.IsDomainAllowedMessage(domain2), coreipc_1.CancellationToken.none);
@@ -28033,7 +28132,10 @@ var require_robot_agent_proxy2 = __commonJS((exports) => {
28033
28132
  this._robotJsServices = new robotjs_services_1.RobotJsServices(this._consentCodeServices);
28034
28133
  }
28035
28134
  CloseAsync() {
28036
- return __awaiter(this, undefined, undefined, function* () {});
28135
+ return __awaiter(this, undefined, undefined, function* () {
28136
+ yield coreipc_1.ipc.disposeChannel(coreipc_1.ipc.namedPipe(this._settings.pipeName));
28137
+ yield coreipc_1.ipc.disposeChannel(coreipc_1.ipc.namedPipe(this._robotJsSettings.pipeName));
28138
+ });
28037
28139
  }
28038
28140
  get RobotStatusChanged() {
28039
28141
  return this._robotStatusChanged;
@@ -34239,7 +34341,7 @@ var {
34239
34341
  // package.json
34240
34342
  var package_default = {
34241
34343
  name: "@uipath/tasks-tool",
34242
- version: "0.9.0",
34344
+ version: "0.9.1",
34243
34345
  description: "Manage Action Center tasks.",
34244
34346
  type: "module",
34245
34347
  main: "./dist/tool.js",
package/dist/tool.js CHANGED
@@ -10552,7 +10552,7 @@ var require_coreipc = __commonJS((exports, module) => {
10552
10552
  if (S(n3))
10553
10553
  return r3;
10554
10554
  for (var i3 = function(e6) {
10555
- var t5 = C(e6, o2);
10555
+ var t5 = T(e6, o2);
10556
10556
  if (!k(t5))
10557
10557
  throw new TypeError;
10558
10558
  var r4 = t5.call(e6);
@@ -10615,7 +10615,7 @@ var require_coreipc = __commonJS((exports, module) => {
10615
10615
  case 5:
10616
10616
  return e5;
10617
10617
  }
10618
- var r3 = t4 === 3 ? "string" : t4 === 5 ? "number" : "default", o3 = C(e5, n2);
10618
+ var r3 = t4 === 3 ? "string" : t4 === 5 ? "number" : "default", o3 = T(e5, n2);
10619
10619
  if (o3 !== undefined) {
10620
10620
  var i3 = o3.call(e5, r3);
10621
10621
  if (j(i3))
@@ -10652,10 +10652,10 @@ var require_coreipc = __commonJS((exports, module) => {
10652
10652
  function k(e5) {
10653
10653
  return typeof e5 == "function";
10654
10654
  }
10655
- function T(e5) {
10655
+ function C(e5) {
10656
10656
  return typeof e5 == "function";
10657
10657
  }
10658
- function C(e5, t4) {
10658
+ function T(e5, t4) {
10659
10659
  var r3 = e5[t4];
10660
10660
  if (r3 != null) {
10661
10661
  if (!k(r3))
@@ -10690,13 +10690,13 @@ var require_coreipc = __commonJS((exports, module) => {
10690
10690
  if (S(r3)) {
10691
10691
  if (!M(e5))
10692
10692
  throw new TypeError;
10693
- if (!T(t4))
10693
+ if (!C(t4))
10694
10694
  throw new TypeError;
10695
10695
  return function(e6, t5) {
10696
10696
  for (var r4 = e6.length - 1;r4 >= 0; --r4) {
10697
10697
  var n4 = (0, e6[r4])(t5);
10698
10698
  if (!S(n4) && !P(n4)) {
10699
- if (!T(n4))
10699
+ if (!C(n4))
10700
10700
  throw new TypeError;
10701
10701
  t5 = n4;
10702
10702
  }
@@ -10906,13 +10906,13 @@ var require_coreipc = __commonJS((exports, module) => {
10906
10906
  Object.defineProperty(t2, "EmptyError", { enumerable: true, get: function() {
10907
10907
  return k.EmptyError;
10908
10908
  } });
10909
- var T = r(7628);
10909
+ var C = r(7628);
10910
10910
  Object.defineProperty(t2, "NotFoundError", { enumerable: true, get: function() {
10911
- return T.NotFoundError;
10911
+ return C.NotFoundError;
10912
10912
  } });
10913
- var C = r(740);
10913
+ var T = r(740);
10914
10914
  Object.defineProperty(t2, "ObjectUnsubscribedError", { enumerable: true, get: function() {
10915
- return C.ObjectUnsubscribedError;
10915
+ return T.ObjectUnsubscribedError;
10916
10916
  } });
10917
10917
  var A = r(6968);
10918
10918
  Object.defineProperty(t2, "SequenceError", { enumerable: true, get: function() {
@@ -11122,13 +11122,13 @@ var require_coreipc = __commonJS((exports, module) => {
11122
11122
  Object.defineProperty(t2, "debounceTime", { enumerable: true, get: function() {
11123
11123
  return ke.debounceTime;
11124
11124
  } });
11125
- var Te = r(6204);
11125
+ var Ce = r(6204);
11126
11126
  Object.defineProperty(t2, "defaultIfEmpty", { enumerable: true, get: function() {
11127
- return Te.defaultIfEmpty;
11127
+ return Ce.defaultIfEmpty;
11128
11128
  } });
11129
- var Ce = r(7752);
11129
+ var Te = r(7752);
11130
11130
  Object.defineProperty(t2, "delay", { enumerable: true, get: function() {
11131
- return Ce.delay;
11131
+ return Te.delay;
11132
11132
  } });
11133
11133
  var Ae = r(7532);
11134
11134
  Object.defineProperty(t2, "delayWhen", { enumerable: true, get: function() {
@@ -11338,13 +11338,13 @@ var require_coreipc = __commonJS((exports, module) => {
11338
11338
  Object.defineProperty(t2, "share", { enumerable: true, get: function() {
11339
11339
  return kt.share;
11340
11340
  } });
11341
- var Tt = r(4980);
11341
+ var Ct = r(4980);
11342
11342
  Object.defineProperty(t2, "shareReplay", { enumerable: true, get: function() {
11343
- return Tt.shareReplay;
11343
+ return Ct.shareReplay;
11344
11344
  } });
11345
- var Ct = r(1400);
11345
+ var Tt = r(1400);
11346
11346
  Object.defineProperty(t2, "single", { enumerable: true, get: function() {
11347
- return Ct.single;
11347
+ return Tt.single;
11348
11348
  } });
11349
11349
  var At = r(7516);
11350
11350
  Object.defineProperty(t2, "skip", { enumerable: true, get: function() {
@@ -17044,12 +17044,24 @@ var require_coreipc = __commonJS((exports, module) => {
17044
17044
  static create() {
17045
17045
  return new r;
17046
17046
  }
17047
+ get(e3) {
17048
+ return this._map.get(e3);
17049
+ }
17047
17050
  getOrCreateValue(e3, t3) {
17048
17051
  if (this._map.has(e3))
17049
17052
  return this._map.get(e3);
17050
17053
  let r2 = t3(e3);
17051
17054
  return this._map.set(e3, r2), r2;
17052
17055
  }
17056
+ delete(e3) {
17057
+ return this._map.delete(e3);
17058
+ }
17059
+ values() {
17060
+ return this._map.values();
17061
+ }
17062
+ clear() {
17063
+ this._map.clear();
17064
+ }
17053
17065
  }
17054
17066
  t2.Dictionary = r;
17055
17067
  }, 4444: function(e2, t2, r) {
@@ -18422,25 +18434,61 @@ Object name: '${e3}'.`), t3;
18422
18434
  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);
18423
18435
  }, 1816: (e2, t2) => {
18424
18436
  Object.defineProperty(t2, "__esModule", { value: true });
18425
- }, 5284: (e2, t2, r) => {
18437
+ }, 5284: function(e2, t2, r) {
18438
+ var n = this && this.__awaiter || function(e3, t3, r2, n2) {
18439
+ return new (r2 || (r2 = Promise))(function(o2, i3) {
18440
+ function s2(e4) {
18441
+ try {
18442
+ c2(n2.next(e4));
18443
+ } catch (e5) {
18444
+ i3(e5);
18445
+ }
18446
+ }
18447
+ function a2(e4) {
18448
+ try {
18449
+ c2(n2.throw(e4));
18450
+ } catch (e5) {
18451
+ i3(e5);
18452
+ }
18453
+ }
18454
+ function c2(e4) {
18455
+ var t4;
18456
+ e4.done ? o2(e4.value) : (t4 = e4.value, t4 instanceof r2 ? t4 : new r2(function(e5) {
18457
+ e5(t4);
18458
+ })).then(s2, a2);
18459
+ }
18460
+ c2((n2 = n2.apply(e3, t3 || [])).next());
18461
+ });
18462
+ };
18426
18463
  Object.defineProperty(t2, "__esModule", { value: true }), t2.IpcBaseImpl = t2.IpcCoreBase = undefined;
18427
- const n = r(5188), o = r(3212), i2 = r(4104), s = r(2760), a = r(9100);
18464
+ const o = r(5188), i2 = r(3212), s = r(4104), a = r(2760), c = r(9100);
18428
18465
  t2.IpcCoreBase = class {
18429
18466
  constructor() {
18430
18467
  this._db = new Map;
18431
18468
  }
18432
18469
  };
18433
18470
 
18434
- class c {
18471
+ class u {
18435
18472
  constructor(e3, t3, r2) {
18436
- this.addressBuilder = e3, this.proxy = new c.ProxySource(this), this.config = new c.Configuration(this), this.callback = new a.CallbackImpl(this), this.configStore = new o.ConfigStore(this), this.proxySource = new i2.ProxySource(this), this.dispatchProxies = new i2.DispatchProxyClassStore, this.wire = new i2.Wire(this), this.contractStore = new s.ContractStore, this.callbackStore = new i2.CallbackStoreImpl, this.$service = t3 != null ? t3 : new o.ServiceAnnotationsWrapper(this).iface, this.$operation = r2 != null ? r2 : new o.OperationAnnotationsWrapper(this).iface;
18473
+ 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;
18437
18474
  }
18438
18475
  getAddress(e3) {
18439
18476
  const t3 = new this.addressBuilder;
18440
18477
  return e3(t3), t3.assertAddress();
18441
18478
  }
18479
+ disposeChannel(e3) {
18480
+ return n(this, undefined, undefined, function* () {
18481
+ const t3 = this.getAddress(e3);
18482
+ yield this.wire.disposeChannel(t3.key);
18483
+ });
18484
+ }
18485
+ disposeAllChannels() {
18486
+ return n(this, undefined, undefined, function* () {
18487
+ yield this.wire.disposeAllChannels();
18488
+ });
18489
+ }
18442
18490
  }
18443
- t2.IpcBaseImpl = c, function(e3) {
18491
+ t2.IpcBaseImpl = u, function(e3) {
18444
18492
  e3.ProxySource = class {
18445
18493
  constructor(e4) {
18446
18494
  this._serviceProvider = e4;
@@ -18456,7 +18504,7 @@ Object name: '${e3}'.`), t3;
18456
18504
  this._serviceProvider = e4, this._address = t4;
18457
18505
  }
18458
18506
  withService(e4) {
18459
- const t4 = new i2.ProxyId(e4, this._address);
18507
+ const t4 = new s.ProxyId(e4, this._address);
18460
18508
  return this._serviceProvider.proxySource.resolve(t4);
18461
18509
  }
18462
18510
  }
@@ -18478,27 +18526,27 @@ Object name: '${e3}'.`), t3;
18478
18526
  this._ipc = e4, this._address = t4;
18479
18527
  }
18480
18528
  setConnectHelper(e4) {
18481
- (0, n.assertArgument)({ value: e4 }, "function"), this._ipc.configStore.setConnectHelper(this._address, e4);
18529
+ (0, o.assertArgument)({ value: e4 }, "function"), this._ipc.configStore.setConnectHelper(this._address, e4);
18482
18530
  }
18483
18531
  forAnyService() {
18484
- return new o2(this._ipc, this._address);
18532
+ return new n2(this._ipc, this._address);
18485
18533
  }
18486
18534
  forService(e4) {
18487
- return new o2(this._ipc, this._address, e4);
18535
+ return new n2(this._ipc, this._address, e4);
18488
18536
  }
18489
18537
  }
18490
18538
  e3.ConfigurationWithAddress = r2;
18491
18539
 
18492
- class o2 {
18540
+ class n2 {
18493
18541
  constructor(e4, t4, r3) {
18494
18542
  this._ipc = e4, this._address = t4, this._service = r3;
18495
18543
  }
18496
18544
  setRequestTimeout(e4) {
18497
- (0, n.assertArgument)({ value: e4 }, "number", n.TimeSpan), typeof e4 == "number" && (e4 = n.TimeSpan.fromMilliseconds(e4)), this._ipc.configStore.setRequestTimeout(this._address, this._service, e4);
18545
+ (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);
18498
18546
  }
18499
18547
  }
18500
- e3.ConfigurationWithAddressService = o2;
18501
- }(c = t2.IpcBaseImpl || (t2.IpcBaseImpl = {}));
18548
+ e3.ConfigurationWithAddressService = n2;
18549
+ }(u = t2.IpcBaseImpl || (t2.IpcBaseImpl = {}));
18502
18550
  }, 3552: (e2, t2) => {
18503
18551
  Object.defineProperty(t2, "__esModule", { value: true }), t2.IpcError = undefined, t2.IpcError = class {
18504
18552
  constructor(e3, t3, r, n) {
@@ -18571,7 +18619,13 @@ Object name: '${e3}'.`), t3;
18571
18619
  }
18572
18620
  disposeAsync() {
18573
18621
  return n(this, undefined, undefined, function* () {
18574
- this._ctsLoop.cancel(), yield this._loop, this._stream.dispose();
18622
+ this._ctsLoop.cancel();
18623
+ try {
18624
+ yield this._loop;
18625
+ } catch (e3) {
18626
+ e3 instanceof o.OperationCanceledError || o.Trace.log(o.UnknownError.ensureError(e3));
18627
+ }
18628
+ this._stream.dispose();
18575
18629
  });
18576
18630
  }
18577
18631
  static toMessageTypeString(e3) {
@@ -18756,8 +18810,8 @@ ${e3.Data}`);
18756
18810
  static create(e3, t3, r2, n2, o2, i3) {
18757
18811
  return new a(e3, t3, r2, n2, o2, i3);
18758
18812
  }
18759
- constructor(e3, t3, r2, n2, o2, s2) {
18760
- this._observer = o2, this._isDisposed = false, this._outgoingCalls = new a.OutgoingCallTable, this._networkObserver = new class {
18813
+ constructor(e3, t3, r2, n2, s2, c) {
18814
+ this._observer = s2, this._isDisposed = false, this._outgoingCalls = new a.OutgoingCallTable, this._networkObserver = new class {
18761
18815
  constructor(e4) {
18762
18816
  this._owner = e4;
18763
18817
  }
@@ -18770,8 +18824,8 @@ ${e3.Data}`);
18770
18824
  complete() {
18771
18825
  this._owner.dispatchNetworkComplete();
18772
18826
  }
18773
- }(this), this._$messageStream = a.createMessageStream(e3, t3, r2, n2, this._networkObserver, i2.MessageStream.Factory.orDefault(s2)), this._$messageStream.catch((e4) => {
18774
- this.disposeAsync();
18827
+ }(this), this._$messageStream = a.createMessageStream(e3, t3, r2, n2, this._networkObserver, i2.MessageStream.Factory.orDefault(c)), this._$messageStream.catch((e4) => {
18828
+ o.Trace.traceErrorNoThrow(this.disposeAsync());
18775
18829
  });
18776
18830
  }
18777
18831
  disposeAsync() {
@@ -19010,6 +19064,12 @@ ${e3.Data}`);
19010
19064
  complete() {}
19011
19065
  }(this);
19012
19066
  }
19067
+ disposeAsync() {
19068
+ return n(this, undefined, undefined, function* () {
19069
+ const e3 = this._latestChannel;
19070
+ this._latestChannel = undefined, e3 && !e3.isDisposed && (yield e3.disposeAsync());
19071
+ });
19072
+ }
19013
19073
  invokeMethod(e3, t3, r2) {
19014
19074
  return n(this, undefined, undefined, function* () {
19015
19075
  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);
@@ -19164,18 +19224,55 @@ ${e3.Data}`);
19164
19224
  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];
19165
19225
  }
19166
19226
  };
19167
- }, 4156: (e2, t2, r) => {
19227
+ }, 4156: function(e2, t2, r) {
19228
+ var n = this && this.__awaiter || function(e3, t3, r2, n2) {
19229
+ return new (r2 || (r2 = Promise))(function(o2, i3) {
19230
+ function s2(e4) {
19231
+ try {
19232
+ c(n2.next(e4));
19233
+ } catch (e5) {
19234
+ i3(e5);
19235
+ }
19236
+ }
19237
+ function a(e4) {
19238
+ try {
19239
+ c(n2.throw(e4));
19240
+ } catch (e5) {
19241
+ i3(e5);
19242
+ }
19243
+ }
19244
+ function c(e4) {
19245
+ var t4;
19246
+ e4.done ? o2(e4.value) : (t4 = e4.value, t4 instanceof r2 ? t4 : new r2(function(e5) {
19247
+ e5(t4);
19248
+ })).then(s2, a);
19249
+ }
19250
+ c((n2 = n2.apply(e3, t3 || [])).next());
19251
+ });
19252
+ };
19168
19253
  Object.defineProperty(t2, "__esModule", { value: true }), t2.Wire = undefined;
19169
- const n = r(3212), o = r(4104), i2 = r(5188);
19254
+ const o = r(3212), i2 = r(4104), s = r(5188);
19170
19255
  t2.Wire = class {
19171
19256
  invokeMethod(e3, t3, r2) {
19172
19257
  return this.getOrCreateChannelManager(e3.address).invokeMethod(e3.service, t3, r2);
19173
19258
  }
19174
- constructor(e3, t3 = n.RpcChannel, r2 = new n.MessageStream.Factory) {
19175
- this._sp = e3, this._rpcChannelFactory = t3, this._messageStreamFactory = r2, this._map = new i2.Dictionary;
19259
+ constructor(e3, t3 = o.RpcChannel, r2 = new o.MessageStream.Factory) {
19260
+ this._sp = e3, this._rpcChannelFactory = t3, this._messageStreamFactory = r2, this._map = new s.Dictionary;
19176
19261
  }
19177
19262
  getOrCreateChannelManager(e3) {
19178
- return this._map.getOrCreateValue(e3.key, () => new o.ChannelManager(this._sp, e3, this._rpcChannelFactory, this._messageStreamFactory));
19263
+ return this._map.getOrCreateValue(e3.key, () => new i2.ChannelManager(this._sp, e3, this._rpcChannelFactory, this._messageStreamFactory));
19264
+ }
19265
+ disposeChannel(e3) {
19266
+ return n(this, undefined, undefined, function* () {
19267
+ const t3 = this._map.get(e3);
19268
+ t3 && (this._map.delete(e3), yield t3.disposeAsync());
19269
+ });
19270
+ }
19271
+ disposeAllChannels() {
19272
+ return n(this, undefined, undefined, function* () {
19273
+ const e3 = [...this._map.values()];
19274
+ this._map.clear(), yield Promise.all(e3.map((e4) => e4.disposeAsync()));
19275
+ });
19179
19276
  }
19180
19277
  };
19181
19278
  }, 4104: function(e2, t2, r) {
@@ -20138,7 +20235,7 @@ ${e3.Data}`);
20138
20235
  }
20139
20236
  };
20140
20237
  }, 5144: (e2, t2, r) => {
20141
- 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], T = ["CONNECTING", "OPEN", "CLOSING", "CLOSED"], C = /^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;
20238
+ 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~]+$/;
20142
20239
 
20143
20240
  class A extends n {
20144
20241
  constructor(e3, t3, r2) {
@@ -20261,7 +20358,7 @@ ${e3.Data}`);
20261
20358
  let g2, O2;
20262
20359
  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) {
20263
20360
  for (const e4 of r2) {
20264
- if (typeof e4 != "string" || !C.test(e4) || m2.has(e4))
20361
+ if (typeof e4 != "string" || !T.test(e4) || m2.has(e4))
20265
20362
  throw new SyntaxError("An invalid or duplicated subprotocol was specified");
20266
20363
  m2.add(e4);
20267
20364
  }
@@ -20360,7 +20457,7 @@ ${e3.Data}`);
20360
20457
  const r3 = x(t3).length;
20361
20458
  e3._socket ? e3._sender._bufferedBytes += r3 : e3._bufferedAmount += r3;
20362
20459
  }
20363
- r2 && r2(new Error(`WebSocket is not open: readyState ${e3.readyState} (${T[e3.readyState]})`));
20460
+ r2 && r2(new Error(`WebSocket is not open: readyState ${e3.readyState} (${C[e3.readyState]})`));
20364
20461
  }
20365
20462
  function W(e3, t3) {
20366
20463
  const r2 = this[O];
@@ -20406,7 +20503,7 @@ ${e3.Data}`);
20406
20503
  const e3 = this[O];
20407
20504
  this.removeListener("error", J), this.on("error", w), e3 && (e3._readyState = A.CLOSING, this.destroy());
20408
20505
  }
20409
- Object.defineProperty(A, "CONNECTING", { enumerable: true, value: T.indexOf("CONNECTING") }), Object.defineProperty(A.prototype, "CONNECTING", { enumerable: true, value: T.indexOf("CONNECTING") }), Object.defineProperty(A, "OPEN", { enumerable: true, value: T.indexOf("OPEN") }), Object.defineProperty(A.prototype, "OPEN", { enumerable: true, value: T.indexOf("OPEN") }), Object.defineProperty(A, "CLOSING", { enumerable: true, value: T.indexOf("CLOSING") }), Object.defineProperty(A.prototype, "CLOSING", { enumerable: true, value: T.indexOf("CLOSING") }), Object.defineProperty(A, "CLOSED", { enumerable: true, value: T.indexOf("CLOSED") }), Object.defineProperty(A.prototype, "CLOSED", { enumerable: true, value: T.indexOf("CLOSED") }), ["binaryType", "bufferedAmount", "extensions", "isPaused", "protocol", "readyState", "url"].forEach((e3) => {
20506
+ 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) => {
20410
20507
  Object.defineProperty(A.prototype, e3, { enumerable: true });
20411
20508
  }), ["open", "error", "close", "message"].forEach((e3) => {
20412
20509
  Object.defineProperty(A.prototype, `on${e3}`, { enumerable: true, get() {
@@ -27083,11 +27180,13 @@ var require_handle_consent_code_message = __commonJS((exports) => {
27083
27180
  var coreipc_1 = require_coreipc();
27084
27181
 
27085
27182
  class HandleConsentCodeMessage extends coreipc_1.Message {
27086
- constructor(Accept, Domain, ConsentCode) {
27183
+ constructor(Accept, Domain, ConsentCode, SignInUrl) {
27087
27184
  super();
27088
27185
  this.Accept = Accept;
27089
27186
  this.Domain = Domain;
27090
27187
  this.ConsentCode = ConsentCode;
27188
+ this.SignInUrl = SignInUrl;
27189
+ this.RequestTimeout = coreipc_1.TimeSpan.fromSeconds(60);
27091
27190
  }
27092
27191
  }
27093
27192
  exports.HandleConsentCodeMessage = HandleConsentCodeMessage;
@@ -27888,8 +27987,8 @@ var require_robotjs_services2 = __commonJS((exports) => {
27888
27987
  constructor(_consentCodeServices) {
27889
27988
  this._consentCodeServices = _consentCodeServices;
27890
27989
  }
27891
- HandleConsentCode(accept, domain2, consentCode) {
27892
- return this._consentCodeServices.HandleConsentCode(new server.HandleConsentCodeMessage(accept, domain2, consentCode), coreipc_1.CancellationToken.none);
27990
+ HandleConsentCode(accept, domain2, consentCode, signInUrl) {
27991
+ return this._consentCodeServices.HandleConsentCode(new server.HandleConsentCodeMessage(accept, domain2, consentCode, signInUrl), coreipc_1.CancellationToken.none);
27893
27992
  }
27894
27993
  IsDomainAllowed(domain2) {
27895
27994
  return this._consentCodeServices.IsDomainAllowed(new server.IsDomainAllowedMessage(domain2), coreipc_1.CancellationToken.none);
@@ -28031,7 +28130,10 @@ var require_robot_agent_proxy2 = __commonJS((exports) => {
28031
28130
  this._robotJsServices = new robotjs_services_1.RobotJsServices(this._consentCodeServices);
28032
28131
  }
28033
28132
  CloseAsync() {
28034
- return __awaiter(this, undefined, undefined, function* () {});
28133
+ return __awaiter(this, undefined, undefined, function* () {
28134
+ yield coreipc_1.ipc.disposeChannel(coreipc_1.ipc.namedPipe(this._settings.pipeName));
28135
+ yield coreipc_1.ipc.disposeChannel(coreipc_1.ipc.namedPipe(this._robotJsSettings.pipeName));
28136
+ });
28035
28137
  }
28036
28138
  get RobotStatusChanged() {
28037
28139
  return this._robotStatusChanged;
@@ -34221,7 +34323,7 @@ var require_src6 = __commonJS((exports) => {
34221
34323
  // package.json
34222
34324
  var package_default = {
34223
34325
  name: "@uipath/tasks-tool",
34224
- version: "0.9.0",
34326
+ version: "0.9.1",
34225
34327
  description: "Manage Action Center tasks.",
34226
34328
  type: "module",
34227
34329
  main: "./dist/tool.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/tasks-tool",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "Manage Action Center tasks.",
5
5
  "type": "module",
6
6
  "main": "./dist/tool.js",
@@ -19,8 +19,8 @@
19
19
  },
20
20
  "devDependencies": {
21
21
  "@types/node": "^25.5.0",
22
- "@uipath/auth": "0.9.0",
23
- "@uipath/common": "0.9.0",
22
+ "@uipath/auth": "0.9.1",
23
+ "@uipath/common": "0.9.1",
24
24
  "@uipath/uipath-typescript": "^1.3.1",
25
25
  "commander": "^14.0.3",
26
26
  "typescript": "^5"
@@ -28,5 +28,5 @@
28
28
  "publishConfig": {
29
29
  "registry": "https://registry.npmjs.org/"
30
30
  },
31
- "gitHead": "3f1b4d8e9f910be81e4cab956537f21dbd5d63ac"
31
+ "gitHead": "e8da2857e37a9495c4907cd39f47c9d6ed1a5566"
32
32
  }