@uipath/maestro-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 (2) hide show
  1. package/dist/tool.js +607 -199
  2. package/package.json +10 -10
package/dist/tool.js CHANGED
@@ -56115,7 +56115,7 @@ var require_coreipc3 = __commonJS((exports, module) => {
56115
56115
  if (S(n3))
56116
56116
  return r3;
56117
56117
  for (var i6 = function(e6) {
56118
- var t5 = C(e6, o2);
56118
+ var t5 = T(e6, o2);
56119
56119
  if (!k(t5))
56120
56120
  throw new TypeError;
56121
56121
  var r4 = t5.call(e6);
@@ -56178,7 +56178,7 @@ var require_coreipc3 = __commonJS((exports, module) => {
56178
56178
  case 5:
56179
56179
  return e5;
56180
56180
  }
56181
- var r3 = t4 === 3 ? "string" : t4 === 5 ? "number" : "default", o3 = C(e5, n2);
56181
+ var r3 = t4 === 3 ? "string" : t4 === 5 ? "number" : "default", o3 = T(e5, n2);
56182
56182
  if (o3 !== undefined) {
56183
56183
  var i6 = o3.call(e5, r3);
56184
56184
  if (j(i6))
@@ -56215,10 +56215,10 @@ var require_coreipc3 = __commonJS((exports, module) => {
56215
56215
  function k(e5) {
56216
56216
  return typeof e5 == "function";
56217
56217
  }
56218
- function T(e5) {
56218
+ function C(e5) {
56219
56219
  return typeof e5 == "function";
56220
56220
  }
56221
- function C(e5, t4) {
56221
+ function T(e5, t4) {
56222
56222
  var r3 = e5[t4];
56223
56223
  if (r3 != null) {
56224
56224
  if (!k(r3))
@@ -56253,13 +56253,13 @@ var require_coreipc3 = __commonJS((exports, module) => {
56253
56253
  if (S(r3)) {
56254
56254
  if (!M(e5))
56255
56255
  throw new TypeError;
56256
- if (!T(t4))
56256
+ if (!C(t4))
56257
56257
  throw new TypeError;
56258
56258
  return function(e6, t5) {
56259
56259
  for (var r4 = e6.length - 1;r4 >= 0; --r4) {
56260
56260
  var n4 = (0, e6[r4])(t5);
56261
56261
  if (!S(n4) && !P(n4)) {
56262
- if (!T(n4))
56262
+ if (!C(n4))
56263
56263
  throw new TypeError;
56264
56264
  t5 = n4;
56265
56265
  }
@@ -56469,13 +56469,13 @@ var require_coreipc3 = __commonJS((exports, module) => {
56469
56469
  Object.defineProperty(t2, "EmptyError", { enumerable: true, get: function() {
56470
56470
  return k.EmptyError;
56471
56471
  } });
56472
- var T = r(7628);
56472
+ var C = r(7628);
56473
56473
  Object.defineProperty(t2, "NotFoundError", { enumerable: true, get: function() {
56474
- return T.NotFoundError;
56474
+ return C.NotFoundError;
56475
56475
  } });
56476
- var C = r(740);
56476
+ var T = r(740);
56477
56477
  Object.defineProperty(t2, "ObjectUnsubscribedError", { enumerable: true, get: function() {
56478
- return C.ObjectUnsubscribedError;
56478
+ return T.ObjectUnsubscribedError;
56479
56479
  } });
56480
56480
  var A = r(6968);
56481
56481
  Object.defineProperty(t2, "SequenceError", { enumerable: true, get: function() {
@@ -56685,13 +56685,13 @@ var require_coreipc3 = __commonJS((exports, module) => {
56685
56685
  Object.defineProperty(t2, "debounceTime", { enumerable: true, get: function() {
56686
56686
  return ke.debounceTime;
56687
56687
  } });
56688
- var Te = r(6204);
56688
+ var Ce = r(6204);
56689
56689
  Object.defineProperty(t2, "defaultIfEmpty", { enumerable: true, get: function() {
56690
- return Te.defaultIfEmpty;
56690
+ return Ce.defaultIfEmpty;
56691
56691
  } });
56692
- var Ce = r(7752);
56692
+ var Te = r(7752);
56693
56693
  Object.defineProperty(t2, "delay", { enumerable: true, get: function() {
56694
- return Ce.delay;
56694
+ return Te.delay;
56695
56695
  } });
56696
56696
  var Ae = r(7532);
56697
56697
  Object.defineProperty(t2, "delayWhen", { enumerable: true, get: function() {
@@ -56901,13 +56901,13 @@ var require_coreipc3 = __commonJS((exports, module) => {
56901
56901
  Object.defineProperty(t2, "share", { enumerable: true, get: function() {
56902
56902
  return kt.share;
56903
56903
  } });
56904
- var Tt = r(4980);
56904
+ var Ct = r(4980);
56905
56905
  Object.defineProperty(t2, "shareReplay", { enumerable: true, get: function() {
56906
- return Tt.shareReplay;
56906
+ return Ct.shareReplay;
56907
56907
  } });
56908
- var Ct = r(1400);
56908
+ var Tt = r(1400);
56909
56909
  Object.defineProperty(t2, "single", { enumerable: true, get: function() {
56910
- return Ct.single;
56910
+ return Tt.single;
56911
56911
  } });
56912
56912
  var At = r(7516);
56913
56913
  Object.defineProperty(t2, "skip", { enumerable: true, get: function() {
@@ -62607,12 +62607,24 @@ var require_coreipc3 = __commonJS((exports, module) => {
62607
62607
  static create() {
62608
62608
  return new r;
62609
62609
  }
62610
+ get(e3) {
62611
+ return this._map.get(e3);
62612
+ }
62610
62613
  getOrCreateValue(e3, t3) {
62611
62614
  if (this._map.has(e3))
62612
62615
  return this._map.get(e3);
62613
62616
  let r2 = t3(e3);
62614
62617
  return this._map.set(e3, r2), r2;
62615
62618
  }
62619
+ delete(e3) {
62620
+ return this._map.delete(e3);
62621
+ }
62622
+ values() {
62623
+ return this._map.values();
62624
+ }
62625
+ clear() {
62626
+ this._map.clear();
62627
+ }
62616
62628
  }
62617
62629
  t2.Dictionary = r;
62618
62630
  }, 4444: function(e2, t2, r) {
@@ -63985,25 +63997,61 @@ Object name: '${e3}'.`), t3;
63985
63997
  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);
63986
63998
  }, 1816: (e2, t2) => {
63987
63999
  Object.defineProperty(t2, "__esModule", { value: true });
63988
- }, 5284: (e2, t2, r) => {
64000
+ }, 5284: function(e2, t2, r) {
64001
+ var n = this && this.__awaiter || function(e3, t3, r2, n2) {
64002
+ return new (r2 || (r2 = Promise))(function(o2, i6) {
64003
+ function s2(e4) {
64004
+ try {
64005
+ c2(n2.next(e4));
64006
+ } catch (e5) {
64007
+ i6(e5);
64008
+ }
64009
+ }
64010
+ function a2(e4) {
64011
+ try {
64012
+ c2(n2.throw(e4));
64013
+ } catch (e5) {
64014
+ i6(e5);
64015
+ }
64016
+ }
64017
+ function c2(e4) {
64018
+ var t4;
64019
+ e4.done ? o2(e4.value) : (t4 = e4.value, t4 instanceof r2 ? t4 : new r2(function(e5) {
64020
+ e5(t4);
64021
+ })).then(s2, a2);
64022
+ }
64023
+ c2((n2 = n2.apply(e3, t3 || [])).next());
64024
+ });
64025
+ };
63989
64026
  Object.defineProperty(t2, "__esModule", { value: true }), t2.IpcBaseImpl = t2.IpcCoreBase = undefined;
63990
- const n = r(5188), o = r(3212), i5 = r(4104), s = r(2760), a = r(9100);
64027
+ const o = r(5188), i5 = r(3212), s = r(4104), a = r(2760), c = r(9100);
63991
64028
  t2.IpcCoreBase = class {
63992
64029
  constructor() {
63993
64030
  this._db = new Map;
63994
64031
  }
63995
64032
  };
63996
64033
 
63997
- class c {
64034
+ class u {
63998
64035
  constructor(e3, t3, r2) {
63999
- 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 i5.ProxySource(this), this.dispatchProxies = new i5.DispatchProxyClassStore, this.wire = new i5.Wire(this), this.contractStore = new s.ContractStore, this.callbackStore = new i5.CallbackStoreImpl, this.$service = t3 != null ? t3 : new o.ServiceAnnotationsWrapper(this).iface, this.$operation = r2 != null ? r2 : new o.OperationAnnotationsWrapper(this).iface;
64036
+ this.addressBuilder = e3, this.proxy = new u.ProxySource(this), this.config = new u.Configuration(this), this.callback = new c.CallbackImpl(this), this.configStore = new i5.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 i5.ServiceAnnotationsWrapper(this).iface, this.$operation = r2 != null ? r2 : new i5.OperationAnnotationsWrapper(this).iface;
64000
64037
  }
64001
64038
  getAddress(e3) {
64002
64039
  const t3 = new this.addressBuilder;
64003
64040
  return e3(t3), t3.assertAddress();
64004
64041
  }
64042
+ disposeChannel(e3) {
64043
+ return n(this, undefined, undefined, function* () {
64044
+ const t3 = this.getAddress(e3);
64045
+ yield this.wire.disposeChannel(t3.key);
64046
+ });
64047
+ }
64048
+ disposeAllChannels() {
64049
+ return n(this, undefined, undefined, function* () {
64050
+ yield this.wire.disposeAllChannels();
64051
+ });
64052
+ }
64005
64053
  }
64006
- t2.IpcBaseImpl = c, function(e3) {
64054
+ t2.IpcBaseImpl = u, function(e3) {
64007
64055
  e3.ProxySource = class {
64008
64056
  constructor(e4) {
64009
64057
  this._serviceProvider = e4;
@@ -64019,7 +64067,7 @@ Object name: '${e3}'.`), t3;
64019
64067
  this._serviceProvider = e4, this._address = t4;
64020
64068
  }
64021
64069
  withService(e4) {
64022
- const t4 = new i5.ProxyId(e4, this._address);
64070
+ const t4 = new s.ProxyId(e4, this._address);
64023
64071
  return this._serviceProvider.proxySource.resolve(t4);
64024
64072
  }
64025
64073
  }
@@ -64041,27 +64089,27 @@ Object name: '${e3}'.`), t3;
64041
64089
  this._ipc = e4, this._address = t4;
64042
64090
  }
64043
64091
  setConnectHelper(e4) {
64044
- (0, n.assertArgument)({ value: e4 }, "function"), this._ipc.configStore.setConnectHelper(this._address, e4);
64092
+ (0, o.assertArgument)({ value: e4 }, "function"), this._ipc.configStore.setConnectHelper(this._address, e4);
64045
64093
  }
64046
64094
  forAnyService() {
64047
- return new o2(this._ipc, this._address);
64095
+ return new n2(this._ipc, this._address);
64048
64096
  }
64049
64097
  forService(e4) {
64050
- return new o2(this._ipc, this._address, e4);
64098
+ return new n2(this._ipc, this._address, e4);
64051
64099
  }
64052
64100
  }
64053
64101
  e3.ConfigurationWithAddress = r2;
64054
64102
 
64055
- class o2 {
64103
+ class n2 {
64056
64104
  constructor(e4, t4, r3) {
64057
64105
  this._ipc = e4, this._address = t4, this._service = r3;
64058
64106
  }
64059
64107
  setRequestTimeout(e4) {
64060
- (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);
64108
+ (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);
64061
64109
  }
64062
64110
  }
64063
- e3.ConfigurationWithAddressService = o2;
64064
- }(c = t2.IpcBaseImpl || (t2.IpcBaseImpl = {}));
64111
+ e3.ConfigurationWithAddressService = n2;
64112
+ }(u = t2.IpcBaseImpl || (t2.IpcBaseImpl = {}));
64065
64113
  }, 3552: (e2, t2) => {
64066
64114
  Object.defineProperty(t2, "__esModule", { value: true }), t2.IpcError = undefined, t2.IpcError = class {
64067
64115
  constructor(e3, t3, r, n) {
@@ -64134,7 +64182,13 @@ Object name: '${e3}'.`), t3;
64134
64182
  }
64135
64183
  disposeAsync() {
64136
64184
  return n(this, undefined, undefined, function* () {
64137
- this._ctsLoop.cancel(), yield this._loop, this._stream.dispose();
64185
+ this._ctsLoop.cancel();
64186
+ try {
64187
+ yield this._loop;
64188
+ } catch (e3) {
64189
+ e3 instanceof o.OperationCanceledError || o.Trace.log(o.UnknownError.ensureError(e3));
64190
+ }
64191
+ this._stream.dispose();
64138
64192
  });
64139
64193
  }
64140
64194
  static toMessageTypeString(e3) {
@@ -64319,8 +64373,8 @@ ${e3.Data}`);
64319
64373
  static create(e3, t3, r2, n2, o2, i6) {
64320
64374
  return new a(e3, t3, r2, n2, o2, i6);
64321
64375
  }
64322
- constructor(e3, t3, r2, n2, o2, s2) {
64323
- this._observer = o2, this._isDisposed = false, this._outgoingCalls = new a.OutgoingCallTable, this._networkObserver = new class {
64376
+ constructor(e3, t3, r2, n2, s2, c) {
64377
+ this._observer = s2, this._isDisposed = false, this._outgoingCalls = new a.OutgoingCallTable, this._networkObserver = new class {
64324
64378
  constructor(e4) {
64325
64379
  this._owner = e4;
64326
64380
  }
@@ -64333,8 +64387,8 @@ ${e3.Data}`);
64333
64387
  complete() {
64334
64388
  this._owner.dispatchNetworkComplete();
64335
64389
  }
64336
- }(this), this._$messageStream = a.createMessageStream(e3, t3, r2, n2, this._networkObserver, i5.MessageStream.Factory.orDefault(s2)), this._$messageStream.catch((e4) => {
64337
- this.disposeAsync();
64390
+ }(this), this._$messageStream = a.createMessageStream(e3, t3, r2, n2, this._networkObserver, i5.MessageStream.Factory.orDefault(c)), this._$messageStream.catch((e4) => {
64391
+ o.Trace.traceErrorNoThrow(this.disposeAsync());
64338
64392
  });
64339
64393
  }
64340
64394
  disposeAsync() {
@@ -64573,6 +64627,12 @@ ${e3.Data}`);
64573
64627
  complete() {}
64574
64628
  }(this);
64575
64629
  }
64630
+ disposeAsync() {
64631
+ return n(this, undefined, undefined, function* () {
64632
+ const e3 = this._latestChannel;
64633
+ this._latestChannel = undefined, e3 && !e3.isDisposed && (yield e3.disposeAsync());
64634
+ });
64635
+ }
64576
64636
  invokeMethod(e3, t3, r2) {
64577
64637
  return n(this, undefined, undefined, function* () {
64578
64638
  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 = i5.Converter.unwrapRpcResponse(f, n2);
@@ -64727,18 +64787,55 @@ ${e3.Data}`);
64727
64787
  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];
64728
64788
  }
64729
64789
  };
64730
- }, 4156: (e2, t2, r) => {
64790
+ }, 4156: function(e2, t2, r) {
64791
+ var n = this && this.__awaiter || function(e3, t3, r2, n2) {
64792
+ return new (r2 || (r2 = Promise))(function(o2, i6) {
64793
+ function s2(e4) {
64794
+ try {
64795
+ c(n2.next(e4));
64796
+ } catch (e5) {
64797
+ i6(e5);
64798
+ }
64799
+ }
64800
+ function a(e4) {
64801
+ try {
64802
+ c(n2.throw(e4));
64803
+ } catch (e5) {
64804
+ i6(e5);
64805
+ }
64806
+ }
64807
+ function c(e4) {
64808
+ var t4;
64809
+ e4.done ? o2(e4.value) : (t4 = e4.value, t4 instanceof r2 ? t4 : new r2(function(e5) {
64810
+ e5(t4);
64811
+ })).then(s2, a);
64812
+ }
64813
+ c((n2 = n2.apply(e3, t3 || [])).next());
64814
+ });
64815
+ };
64731
64816
  Object.defineProperty(t2, "__esModule", { value: true }), t2.Wire = undefined;
64732
- const n = r(3212), o = r(4104), i5 = r(5188);
64817
+ const o = r(3212), i5 = r(4104), s = r(5188);
64733
64818
  t2.Wire = class {
64734
64819
  invokeMethod(e3, t3, r2) {
64735
64820
  return this.getOrCreateChannelManager(e3.address).invokeMethod(e3.service, t3, r2);
64736
64821
  }
64737
- constructor(e3, t3 = n.RpcChannel, r2 = new n.MessageStream.Factory) {
64738
- this._sp = e3, this._rpcChannelFactory = t3, this._messageStreamFactory = r2, this._map = new i5.Dictionary;
64822
+ constructor(e3, t3 = o.RpcChannel, r2 = new o.MessageStream.Factory) {
64823
+ this._sp = e3, this._rpcChannelFactory = t3, this._messageStreamFactory = r2, this._map = new s.Dictionary;
64739
64824
  }
64740
64825
  getOrCreateChannelManager(e3) {
64741
- return this._map.getOrCreateValue(e3.key, () => new o.ChannelManager(this._sp, e3, this._rpcChannelFactory, this._messageStreamFactory));
64826
+ return this._map.getOrCreateValue(e3.key, () => new i5.ChannelManager(this._sp, e3, this._rpcChannelFactory, this._messageStreamFactory));
64827
+ }
64828
+ disposeChannel(e3) {
64829
+ return n(this, undefined, undefined, function* () {
64830
+ const t3 = this._map.get(e3);
64831
+ t3 && (this._map.delete(e3), yield t3.disposeAsync());
64832
+ });
64833
+ }
64834
+ disposeAllChannels() {
64835
+ return n(this, undefined, undefined, function* () {
64836
+ const e3 = [...this._map.values()];
64837
+ this._map.clear(), yield Promise.all(e3.map((e4) => e4.disposeAsync()));
64838
+ });
64742
64839
  }
64743
64840
  };
64744
64841
  }, 4104: function(e2, t2, r) {
@@ -65701,7 +65798,7 @@ ${e3.Data}`);
65701
65798
  }
65702
65799
  };
65703
65800
  }, 5144: (e2, t2, r) => {
65704
- const n = r(467), o = r(1256), i5 = 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: x2 } = r(3092), M = Symbol("kAborted"), k = [8, 13], T = ["CONNECTING", "OPEN", "CLOSING", "CLOSED"], C = /^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;
65801
+ const n = r(467), o = r(1256), i5 = 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: x2 } = r(3092), M = Symbol("kAborted"), k = [8, 13], C = ["CONNECTING", "OPEN", "CLOSING", "CLOSED"], T = /^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;
65705
65802
 
65706
65803
  class A extends n {
65707
65804
  constructor(e3, t3, r2) {
@@ -65824,7 +65921,7 @@ ${e3.Data}`);
65824
65921
  let g2, O2;
65825
65922
  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) {
65826
65923
  for (const e4 of r2) {
65827
- if (typeof e4 != "string" || !C.test(e4) || m2.has(e4))
65924
+ if (typeof e4 != "string" || !T.test(e4) || m2.has(e4))
65828
65925
  throw new SyntaxError("An invalid or duplicated subprotocol was specified");
65829
65926
  m2.add(e4);
65830
65927
  }
@@ -65923,7 +66020,7 @@ ${e3.Data}`);
65923
66020
  const r3 = x2(t3).length;
65924
66021
  e3._socket ? e3._sender._bufferedBytes += r3 : e3._bufferedAmount += r3;
65925
66022
  }
65926
- r2 && r2(new Error(`WebSocket is not open: readyState ${e3.readyState} (${T[e3.readyState]})`));
66023
+ r2 && r2(new Error(`WebSocket is not open: readyState ${e3.readyState} (${C[e3.readyState]})`));
65927
66024
  }
65928
66025
  function W(e3, t3) {
65929
66026
  const r2 = this[O];
@@ -65969,7 +66066,7 @@ ${e3.Data}`);
65969
66066
  const e3 = this[O];
65970
66067
  this.removeListener("error", J), this.on("error", w), e3 && (e3._readyState = A.CLOSING, this.destroy());
65971
66068
  }
65972
- 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) => {
66069
+ 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) => {
65973
66070
  Object.defineProperty(A.prototype, e3, { enumerable: true });
65974
66071
  }), ["open", "error", "close", "message"].forEach((e3) => {
65975
66072
  Object.defineProperty(A.prototype, `on${e3}`, { enumerable: true, get() {
@@ -72646,11 +72743,13 @@ var require_handle_consent_code_message3 = __commonJS((exports) => {
72646
72743
  var coreipc_1 = require_coreipc3();
72647
72744
 
72648
72745
  class HandleConsentCodeMessage extends coreipc_1.Message {
72649
- constructor(Accept, Domain, ConsentCode) {
72746
+ constructor(Accept, Domain, ConsentCode, SignInUrl) {
72650
72747
  super();
72651
72748
  this.Accept = Accept;
72652
72749
  this.Domain = Domain;
72653
72750
  this.ConsentCode = ConsentCode;
72751
+ this.SignInUrl = SignInUrl;
72752
+ this.RequestTimeout = coreipc_1.TimeSpan.fromSeconds(60);
72654
72753
  }
72655
72754
  }
72656
72755
  exports.HandleConsentCodeMessage = HandleConsentCodeMessage;
@@ -73451,8 +73550,8 @@ var require_robotjs_services6 = __commonJS((exports) => {
73451
73550
  constructor(_consentCodeServices) {
73452
73551
  this._consentCodeServices = _consentCodeServices;
73453
73552
  }
73454
- HandleConsentCode(accept, domain5, consentCode) {
73455
- return this._consentCodeServices.HandleConsentCode(new server.HandleConsentCodeMessage(accept, domain5, consentCode), coreipc_1.CancellationToken.none);
73553
+ HandleConsentCode(accept, domain5, consentCode, signInUrl) {
73554
+ return this._consentCodeServices.HandleConsentCode(new server.HandleConsentCodeMessage(accept, domain5, consentCode, signInUrl), coreipc_1.CancellationToken.none);
73456
73555
  }
73457
73556
  IsDomainAllowed(domain5) {
73458
73557
  return this._consentCodeServices.IsDomainAllowed(new server.IsDomainAllowedMessage(domain5), coreipc_1.CancellationToken.none);
@@ -73594,7 +73693,10 @@ var require_robot_agent_proxy6 = __commonJS((exports) => {
73594
73693
  this._robotJsServices = new robotjs_services_1.RobotJsServices(this._consentCodeServices);
73595
73694
  }
73596
73695
  CloseAsync() {
73597
- return __awaiter(this, undefined, undefined, function* () {});
73696
+ return __awaiter(this, undefined, undefined, function* () {
73697
+ yield coreipc_1.ipc.disposeChannel(coreipc_1.ipc.namedPipe(this._settings.pipeName));
73698
+ yield coreipc_1.ipc.disposeChannel(coreipc_1.ipc.namedPipe(this._robotJsSettings.pipeName));
73699
+ });
73598
73700
  }
73599
73701
  get RobotStatusChanged() {
73600
73702
  return this._robotStatusChanged;
@@ -190031,7 +190133,7 @@ var require_coreipc = __commonJS2((exports, module) => {
190031
190133
  if (S(n3))
190032
190134
  return r3;
190033
190135
  for (var i3 = function(e6) {
190034
- var t5 = C(e6, o2);
190136
+ var t5 = T(e6, o2);
190035
190137
  if (!k(t5))
190036
190138
  throw new TypeError;
190037
190139
  var r4 = t5.call(e6);
@@ -190094,7 +190196,7 @@ var require_coreipc = __commonJS2((exports, module) => {
190094
190196
  case 5:
190095
190197
  return e5;
190096
190198
  }
190097
- var r3 = t4 === 3 ? "string" : t4 === 5 ? "number" : "default", o3 = C(e5, n2);
190199
+ var r3 = t4 === 3 ? "string" : t4 === 5 ? "number" : "default", o3 = T(e5, n2);
190098
190200
  if (o3 !== undefined) {
190099
190201
  var i3 = o3.call(e5, r3);
190100
190202
  if (j(i3))
@@ -190131,10 +190233,10 @@ var require_coreipc = __commonJS2((exports, module) => {
190131
190233
  function k(e5) {
190132
190234
  return typeof e5 == "function";
190133
190235
  }
190134
- function T(e5) {
190236
+ function C(e5) {
190135
190237
  return typeof e5 == "function";
190136
190238
  }
190137
- function C(e5, t4) {
190239
+ function T(e5, t4) {
190138
190240
  var r3 = e5[t4];
190139
190241
  if (r3 != null) {
190140
190242
  if (!k(r3))
@@ -190169,13 +190271,13 @@ var require_coreipc = __commonJS2((exports, module) => {
190169
190271
  if (S(r3)) {
190170
190272
  if (!M(e5))
190171
190273
  throw new TypeError;
190172
- if (!T(t4))
190274
+ if (!C(t4))
190173
190275
  throw new TypeError;
190174
190276
  return function(e6, t5) {
190175
190277
  for (var r4 = e6.length - 1;r4 >= 0; --r4) {
190176
190278
  var n4 = (0, e6[r4])(t5);
190177
190279
  if (!S(n4) && !P(n4)) {
190178
- if (!T(n4))
190280
+ if (!C(n4))
190179
190281
  throw new TypeError;
190180
190282
  t5 = n4;
190181
190283
  }
@@ -190385,13 +190487,13 @@ var require_coreipc = __commonJS2((exports, module) => {
190385
190487
  Object.defineProperty(t2, "EmptyError", { enumerable: true, get: function() {
190386
190488
  return k.EmptyError;
190387
190489
  } });
190388
- var T = r(7628);
190490
+ var C = r(7628);
190389
190491
  Object.defineProperty(t2, "NotFoundError", { enumerable: true, get: function() {
190390
- return T.NotFoundError;
190492
+ return C.NotFoundError;
190391
190493
  } });
190392
- var C = r(740);
190494
+ var T = r(740);
190393
190495
  Object.defineProperty(t2, "ObjectUnsubscribedError", { enumerable: true, get: function() {
190394
- return C.ObjectUnsubscribedError;
190496
+ return T.ObjectUnsubscribedError;
190395
190497
  } });
190396
190498
  var A = r(6968);
190397
190499
  Object.defineProperty(t2, "SequenceError", { enumerable: true, get: function() {
@@ -190601,13 +190703,13 @@ var require_coreipc = __commonJS2((exports, module) => {
190601
190703
  Object.defineProperty(t2, "debounceTime", { enumerable: true, get: function() {
190602
190704
  return ke.debounceTime;
190603
190705
  } });
190604
- var Te = r(6204);
190706
+ var Ce = r(6204);
190605
190707
  Object.defineProperty(t2, "defaultIfEmpty", { enumerable: true, get: function() {
190606
- return Te.defaultIfEmpty;
190708
+ return Ce.defaultIfEmpty;
190607
190709
  } });
190608
- var Ce = r(7752);
190710
+ var Te = r(7752);
190609
190711
  Object.defineProperty(t2, "delay", { enumerable: true, get: function() {
190610
- return Ce.delay;
190712
+ return Te.delay;
190611
190713
  } });
190612
190714
  var Ae = r(7532);
190613
190715
  Object.defineProperty(t2, "delayWhen", { enumerable: true, get: function() {
@@ -190817,13 +190919,13 @@ var require_coreipc = __commonJS2((exports, module) => {
190817
190919
  Object.defineProperty(t2, "share", { enumerable: true, get: function() {
190818
190920
  return kt.share;
190819
190921
  } });
190820
- var Tt = r(4980);
190922
+ var Ct = r(4980);
190821
190923
  Object.defineProperty(t2, "shareReplay", { enumerable: true, get: function() {
190822
- return Tt.shareReplay;
190924
+ return Ct.shareReplay;
190823
190925
  } });
190824
- var Ct = r(1400);
190926
+ var Tt = r(1400);
190825
190927
  Object.defineProperty(t2, "single", { enumerable: true, get: function() {
190826
- return Ct.single;
190928
+ return Tt.single;
190827
190929
  } });
190828
190930
  var At = r(7516);
190829
190931
  Object.defineProperty(t2, "skip", { enumerable: true, get: function() {
@@ -196523,12 +196625,24 @@ var require_coreipc = __commonJS2((exports, module) => {
196523
196625
  static create() {
196524
196626
  return new r;
196525
196627
  }
196628
+ get(e3) {
196629
+ return this._map.get(e3);
196630
+ }
196526
196631
  getOrCreateValue(e3, t3) {
196527
196632
  if (this._map.has(e3))
196528
196633
  return this._map.get(e3);
196529
196634
  let r2 = t3(e3);
196530
196635
  return this._map.set(e3, r2), r2;
196531
196636
  }
196637
+ delete(e3) {
196638
+ return this._map.delete(e3);
196639
+ }
196640
+ values() {
196641
+ return this._map.values();
196642
+ }
196643
+ clear() {
196644
+ this._map.clear();
196645
+ }
196532
196646
  }
196533
196647
  t2.Dictionary = r;
196534
196648
  }, 4444: function(e2, t2, r) {
@@ -197901,25 +198015,61 @@ Object name: '${e3}'.`), t3;
197901
198015
  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);
197902
198016
  }, 1816: (e2, t2) => {
197903
198017
  Object.defineProperty(t2, "__esModule", { value: true });
197904
- }, 5284: (e2, t2, r) => {
198018
+ }, 5284: function(e2, t2, r) {
198019
+ var n = this && this.__awaiter || function(e3, t3, r2, n2) {
198020
+ return new (r2 || (r2 = Promise))(function(o2, i3) {
198021
+ function s2(e4) {
198022
+ try {
198023
+ c2(n2.next(e4));
198024
+ } catch (e5) {
198025
+ i3(e5);
198026
+ }
198027
+ }
198028
+ function a2(e4) {
198029
+ try {
198030
+ c2(n2.throw(e4));
198031
+ } catch (e5) {
198032
+ i3(e5);
198033
+ }
198034
+ }
198035
+ function c2(e4) {
198036
+ var t4;
198037
+ e4.done ? o2(e4.value) : (t4 = e4.value, t4 instanceof r2 ? t4 : new r2(function(e5) {
198038
+ e5(t4);
198039
+ })).then(s2, a2);
198040
+ }
198041
+ c2((n2 = n2.apply(e3, t3 || [])).next());
198042
+ });
198043
+ };
197905
198044
  Object.defineProperty(t2, "__esModule", { value: true }), t2.IpcBaseImpl = t2.IpcCoreBase = undefined;
197906
- const n = r(5188), o = r(3212), i2 = r(4104), s = r(2760), a = r(9100);
198045
+ const o = r(5188), i2 = r(3212), s = r(4104), a = r(2760), c = r(9100);
197907
198046
  t2.IpcCoreBase = class {
197908
198047
  constructor() {
197909
198048
  this._db = new Map;
197910
198049
  }
197911
198050
  };
197912
198051
 
197913
- class c {
198052
+ class u {
197914
198053
  constructor(e3, t3, r2) {
197915
- 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;
198054
+ 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;
197916
198055
  }
197917
198056
  getAddress(e3) {
197918
198057
  const t3 = new this.addressBuilder;
197919
198058
  return e3(t3), t3.assertAddress();
197920
198059
  }
198060
+ disposeChannel(e3) {
198061
+ return n(this, undefined, undefined, function* () {
198062
+ const t3 = this.getAddress(e3);
198063
+ yield this.wire.disposeChannel(t3.key);
198064
+ });
198065
+ }
198066
+ disposeAllChannels() {
198067
+ return n(this, undefined, undefined, function* () {
198068
+ yield this.wire.disposeAllChannels();
198069
+ });
198070
+ }
197921
198071
  }
197922
- t2.IpcBaseImpl = c, function(e3) {
198072
+ t2.IpcBaseImpl = u, function(e3) {
197923
198073
  e3.ProxySource = class {
197924
198074
  constructor(e4) {
197925
198075
  this._serviceProvider = e4;
@@ -197935,7 +198085,7 @@ Object name: '${e3}'.`), t3;
197935
198085
  this._serviceProvider = e4, this._address = t4;
197936
198086
  }
197937
198087
  withService(e4) {
197938
- const t4 = new i2.ProxyId(e4, this._address);
198088
+ const t4 = new s.ProxyId(e4, this._address);
197939
198089
  return this._serviceProvider.proxySource.resolve(t4);
197940
198090
  }
197941
198091
  }
@@ -197957,27 +198107,27 @@ Object name: '${e3}'.`), t3;
197957
198107
  this._ipc = e4, this._address = t4;
197958
198108
  }
197959
198109
  setConnectHelper(e4) {
197960
- (0, n.assertArgument)({ value: e4 }, "function"), this._ipc.configStore.setConnectHelper(this._address, e4);
198110
+ (0, o.assertArgument)({ value: e4 }, "function"), this._ipc.configStore.setConnectHelper(this._address, e4);
197961
198111
  }
197962
198112
  forAnyService() {
197963
- return new o2(this._ipc, this._address);
198113
+ return new n2(this._ipc, this._address);
197964
198114
  }
197965
198115
  forService(e4) {
197966
- return new o2(this._ipc, this._address, e4);
198116
+ return new n2(this._ipc, this._address, e4);
197967
198117
  }
197968
198118
  }
197969
198119
  e3.ConfigurationWithAddress = r2;
197970
198120
 
197971
- class o2 {
198121
+ class n2 {
197972
198122
  constructor(e4, t4, r3) {
197973
198123
  this._ipc = e4, this._address = t4, this._service = r3;
197974
198124
  }
197975
198125
  setRequestTimeout(e4) {
197976
- (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);
198126
+ (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);
197977
198127
  }
197978
198128
  }
197979
- e3.ConfigurationWithAddressService = o2;
197980
- }(c = t2.IpcBaseImpl || (t2.IpcBaseImpl = {}));
198129
+ e3.ConfigurationWithAddressService = n2;
198130
+ }(u = t2.IpcBaseImpl || (t2.IpcBaseImpl = {}));
197981
198131
  }, 3552: (e2, t2) => {
197982
198132
  Object.defineProperty(t2, "__esModule", { value: true }), t2.IpcError = undefined, t2.IpcError = class {
197983
198133
  constructor(e3, t3, r, n) {
@@ -198050,7 +198200,13 @@ Object name: '${e3}'.`), t3;
198050
198200
  }
198051
198201
  disposeAsync() {
198052
198202
  return n(this, undefined, undefined, function* () {
198053
- this._ctsLoop.cancel(), yield this._loop, this._stream.dispose();
198203
+ this._ctsLoop.cancel();
198204
+ try {
198205
+ yield this._loop;
198206
+ } catch (e3) {
198207
+ e3 instanceof o.OperationCanceledError || o.Trace.log(o.UnknownError.ensureError(e3));
198208
+ }
198209
+ this._stream.dispose();
198054
198210
  });
198055
198211
  }
198056
198212
  static toMessageTypeString(e3) {
@@ -198235,8 +198391,8 @@ ${e3.Data}`);
198235
198391
  static create(e3, t3, r2, n2, o2, i3) {
198236
198392
  return new a(e3, t3, r2, n2, o2, i3);
198237
198393
  }
198238
- constructor(e3, t3, r2, n2, o2, s2) {
198239
- this._observer = o2, this._isDisposed = false, this._outgoingCalls = new a.OutgoingCallTable, this._networkObserver = new class {
198394
+ constructor(e3, t3, r2, n2, s2, c) {
198395
+ this._observer = s2, this._isDisposed = false, this._outgoingCalls = new a.OutgoingCallTable, this._networkObserver = new class {
198240
198396
  constructor(e4) {
198241
198397
  this._owner = e4;
198242
198398
  }
@@ -198249,8 +198405,8 @@ ${e3.Data}`);
198249
198405
  complete() {
198250
198406
  this._owner.dispatchNetworkComplete();
198251
198407
  }
198252
- }(this), this._$messageStream = a.createMessageStream(e3, t3, r2, n2, this._networkObserver, i2.MessageStream.Factory.orDefault(s2)), this._$messageStream.catch((e4) => {
198253
- this.disposeAsync();
198408
+ }(this), this._$messageStream = a.createMessageStream(e3, t3, r2, n2, this._networkObserver, i2.MessageStream.Factory.orDefault(c)), this._$messageStream.catch((e4) => {
198409
+ o.Trace.traceErrorNoThrow(this.disposeAsync());
198254
198410
  });
198255
198411
  }
198256
198412
  disposeAsync() {
@@ -198489,6 +198645,12 @@ ${e3.Data}`);
198489
198645
  complete() {}
198490
198646
  }(this);
198491
198647
  }
198648
+ disposeAsync() {
198649
+ return n(this, undefined, undefined, function* () {
198650
+ const e3 = this._latestChannel;
198651
+ this._latestChannel = undefined, e3 && !e3.isDisposed && (yield e3.disposeAsync());
198652
+ });
198653
+ }
198492
198654
  invokeMethod(e3, t3, r2) {
198493
198655
  return n(this, undefined, undefined, function* () {
198494
198656
  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);
@@ -198643,18 +198805,55 @@ ${e3.Data}`);
198643
198805
  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];
198644
198806
  }
198645
198807
  };
198646
- }, 4156: (e2, t2, r) => {
198808
+ }, 4156: function(e2, t2, r) {
198809
+ var n = this && this.__awaiter || function(e3, t3, r2, n2) {
198810
+ return new (r2 || (r2 = Promise))(function(o2, i3) {
198811
+ function s2(e4) {
198812
+ try {
198813
+ c(n2.next(e4));
198814
+ } catch (e5) {
198815
+ i3(e5);
198816
+ }
198817
+ }
198818
+ function a(e4) {
198819
+ try {
198820
+ c(n2.throw(e4));
198821
+ } catch (e5) {
198822
+ i3(e5);
198823
+ }
198824
+ }
198825
+ function c(e4) {
198826
+ var t4;
198827
+ e4.done ? o2(e4.value) : (t4 = e4.value, t4 instanceof r2 ? t4 : new r2(function(e5) {
198828
+ e5(t4);
198829
+ })).then(s2, a);
198830
+ }
198831
+ c((n2 = n2.apply(e3, t3 || [])).next());
198832
+ });
198833
+ };
198647
198834
  Object.defineProperty(t2, "__esModule", { value: true }), t2.Wire = undefined;
198648
- const n = r(3212), o = r(4104), i2 = r(5188);
198835
+ const o = r(3212), i2 = r(4104), s = r(5188);
198649
198836
  t2.Wire = class {
198650
198837
  invokeMethod(e3, t3, r2) {
198651
198838
  return this.getOrCreateChannelManager(e3.address).invokeMethod(e3.service, t3, r2);
198652
198839
  }
198653
- constructor(e3, t3 = n.RpcChannel, r2 = new n.MessageStream.Factory) {
198654
- this._sp = e3, this._rpcChannelFactory = t3, this._messageStreamFactory = r2, this._map = new i2.Dictionary;
198840
+ constructor(e3, t3 = o.RpcChannel, r2 = new o.MessageStream.Factory) {
198841
+ this._sp = e3, this._rpcChannelFactory = t3, this._messageStreamFactory = r2, this._map = new s.Dictionary;
198655
198842
  }
198656
198843
  getOrCreateChannelManager(e3) {
198657
- return this._map.getOrCreateValue(e3.key, () => new o.ChannelManager(this._sp, e3, this._rpcChannelFactory, this._messageStreamFactory));
198844
+ return this._map.getOrCreateValue(e3.key, () => new i2.ChannelManager(this._sp, e3, this._rpcChannelFactory, this._messageStreamFactory));
198845
+ }
198846
+ disposeChannel(e3) {
198847
+ return n(this, undefined, undefined, function* () {
198848
+ const t3 = this._map.get(e3);
198849
+ t3 && (this._map.delete(e3), yield t3.disposeAsync());
198850
+ });
198851
+ }
198852
+ disposeAllChannels() {
198853
+ return n(this, undefined, undefined, function* () {
198854
+ const e3 = [...this._map.values()];
198855
+ this._map.clear(), yield Promise.all(e3.map((e4) => e4.disposeAsync()));
198856
+ });
198658
198857
  }
198659
198858
  };
198660
198859
  }, 4104: function(e2, t2, r) {
@@ -199617,7 +199816,7 @@ ${e3.Data}`);
199617
199816
  }
199618
199817
  };
199619
199818
  }, 5144: (e2, t2, r) => {
199620
- 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~]+$/;
199819
+ 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~]+$/;
199621
199820
 
199622
199821
  class A extends n {
199623
199822
  constructor(e3, t3, r2) {
@@ -199740,7 +199939,7 @@ ${e3.Data}`);
199740
199939
  let g2, O2;
199741
199940
  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) {
199742
199941
  for (const e4 of r2) {
199743
- if (typeof e4 != "string" || !C.test(e4) || m2.has(e4))
199942
+ if (typeof e4 != "string" || !T.test(e4) || m2.has(e4))
199744
199943
  throw new SyntaxError("An invalid or duplicated subprotocol was specified");
199745
199944
  m2.add(e4);
199746
199945
  }
@@ -199839,7 +200038,7 @@ ${e3.Data}`);
199839
200038
  const r3 = x(t3).length;
199840
200039
  e3._socket ? e3._sender._bufferedBytes += r3 : e3._bufferedAmount += r3;
199841
200040
  }
199842
- r2 && r2(new Error(`WebSocket is not open: readyState ${e3.readyState} (${T[e3.readyState]})`));
200041
+ r2 && r2(new Error(`WebSocket is not open: readyState ${e3.readyState} (${C[e3.readyState]})`));
199843
200042
  }
199844
200043
  function W(e3, t3) {
199845
200044
  const r2 = this[O];
@@ -199885,7 +200084,7 @@ ${e3.Data}`);
199885
200084
  const e3 = this[O];
199886
200085
  this.removeListener("error", J), this.on("error", w), e3 && (e3._readyState = A.CLOSING, this.destroy());
199887
200086
  }
199888
- 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) => {
200087
+ 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) => {
199889
200088
  Object.defineProperty(A.prototype, e3, { enumerable: true });
199890
200089
  }), ["open", "error", "close", "message"].forEach((e3) => {
199891
200090
  Object.defineProperty(A.prototype, `on${e3}`, { enumerable: true, get() {
@@ -206202,11 +206401,13 @@ var require_handle_consent_code_message = __commonJS2((exports) => {
206202
206401
  var coreipc_1 = require_coreipc();
206203
206402
 
206204
206403
  class HandleConsentCodeMessage extends coreipc_1.Message {
206205
- constructor(Accept, Domain, ConsentCode) {
206404
+ constructor(Accept, Domain, ConsentCode, SignInUrl) {
206206
206405
  super();
206207
206406
  this.Accept = Accept;
206208
206407
  this.Domain = Domain;
206209
206408
  this.ConsentCode = ConsentCode;
206409
+ this.SignInUrl = SignInUrl;
206410
+ this.RequestTimeout = coreipc_1.TimeSpan.fromSeconds(60);
206210
206411
  }
206211
206412
  }
206212
206413
  exports.HandleConsentCodeMessage = HandleConsentCodeMessage;
@@ -206979,8 +207180,8 @@ var require_robotjs_services2 = __commonJS2((exports) => {
206979
207180
  constructor(_consentCodeServices) {
206980
207181
  this._consentCodeServices = _consentCodeServices;
206981
207182
  }
206982
- HandleConsentCode(accept, domain2, consentCode) {
206983
- return this._consentCodeServices.HandleConsentCode(new server.HandleConsentCodeMessage(accept, domain2, consentCode), coreipc_1.CancellationToken.none);
207183
+ HandleConsentCode(accept, domain2, consentCode, signInUrl) {
207184
+ return this._consentCodeServices.HandleConsentCode(new server.HandleConsentCodeMessage(accept, domain2, consentCode, signInUrl), coreipc_1.CancellationToken.none);
206984
207185
  }
206985
207186
  IsDomainAllowed(domain2) {
206986
207187
  return this._consentCodeServices.IsDomainAllowed(new server.IsDomainAllowedMessage(domain2), coreipc_1.CancellationToken.none);
@@ -207120,7 +207321,10 @@ var require_robot_agent_proxy2 = __commonJS2((exports) => {
207120
207321
  this._robotJsServices = new robotjs_services_1.RobotJsServices(this._consentCodeServices);
207121
207322
  }
207122
207323
  CloseAsync() {
207123
- return __awaiter(this, undefined, undefined, function* () {});
207324
+ return __awaiter(this, undefined, undefined, function* () {
207325
+ yield coreipc_1.ipc.disposeChannel(coreipc_1.ipc.namedPipe(this._settings.pipeName));
207326
+ yield coreipc_1.ipc.disposeChannel(coreipc_1.ipc.namedPipe(this._robotJsSettings.pipeName));
207327
+ });
207124
207328
  }
207125
207329
  get RobotStatusChanged() {
207126
207330
  return this._robotStatusChanged;
@@ -415220,7 +415424,7 @@ var require_semver2 = __commonJS2((exports, module) => {
415220
415424
  });
415221
415425
  var package_default = {
415222
415426
  name: "@uipath/case-tool",
415223
- version: "0.9.0",
415427
+ version: "0.9.1",
415224
415428
  description: "Manage Case Management instances, processes, and incidents.",
415225
415429
  private: false,
415226
415430
  repository: {
@@ -473937,7 +474141,7 @@ var require_coreipc2 = __commonJS22((exports, module) => {
473937
474141
  if (S(n3))
473938
474142
  return r3;
473939
474143
  for (var i3 = function(e6) {
473940
- var t5 = C(e6, o2);
474144
+ var t5 = T(e6, o2);
473941
474145
  if (!k(t5))
473942
474146
  throw new TypeError;
473943
474147
  var r4 = t5.call(e6);
@@ -474000,7 +474204,7 @@ var require_coreipc2 = __commonJS22((exports, module) => {
474000
474204
  case 5:
474001
474205
  return e5;
474002
474206
  }
474003
- var r3 = t4 === 3 ? "string" : t4 === 5 ? "number" : "default", o3 = C(e5, n2);
474207
+ var r3 = t4 === 3 ? "string" : t4 === 5 ? "number" : "default", o3 = T(e5, n2);
474004
474208
  if (o3 !== undefined) {
474005
474209
  var i3 = o3.call(e5, r3);
474006
474210
  if (j(i3))
@@ -474037,10 +474241,10 @@ var require_coreipc2 = __commonJS22((exports, module) => {
474037
474241
  function k(e5) {
474038
474242
  return typeof e5 == "function";
474039
474243
  }
474040
- function T(e5) {
474244
+ function C(e5) {
474041
474245
  return typeof e5 == "function";
474042
474246
  }
474043
- function C(e5, t4) {
474247
+ function T(e5, t4) {
474044
474248
  var r3 = e5[t4];
474045
474249
  if (r3 != null) {
474046
474250
  if (!k(r3))
@@ -474075,13 +474279,13 @@ var require_coreipc2 = __commonJS22((exports, module) => {
474075
474279
  if (S(r3)) {
474076
474280
  if (!M(e5))
474077
474281
  throw new TypeError;
474078
- if (!T(t4))
474282
+ if (!C(t4))
474079
474283
  throw new TypeError;
474080
474284
  return function(e6, t5) {
474081
474285
  for (var r4 = e6.length - 1;r4 >= 0; --r4) {
474082
474286
  var n4 = (0, e6[r4])(t5);
474083
474287
  if (!S(n4) && !P(n4)) {
474084
- if (!T(n4))
474288
+ if (!C(n4))
474085
474289
  throw new TypeError;
474086
474290
  t5 = n4;
474087
474291
  }
@@ -474291,13 +474495,13 @@ var require_coreipc2 = __commonJS22((exports, module) => {
474291
474495
  Object.defineProperty(t2, "EmptyError", { enumerable: true, get: function() {
474292
474496
  return k.EmptyError;
474293
474497
  } });
474294
- var T = r(7628);
474498
+ var C = r(7628);
474295
474499
  Object.defineProperty(t2, "NotFoundError", { enumerable: true, get: function() {
474296
- return T.NotFoundError;
474500
+ return C.NotFoundError;
474297
474501
  } });
474298
- var C = r(740);
474502
+ var T = r(740);
474299
474503
  Object.defineProperty(t2, "ObjectUnsubscribedError", { enumerable: true, get: function() {
474300
- return C.ObjectUnsubscribedError;
474504
+ return T.ObjectUnsubscribedError;
474301
474505
  } });
474302
474506
  var A = r(6968);
474303
474507
  Object.defineProperty(t2, "SequenceError", { enumerable: true, get: function() {
@@ -474507,13 +474711,13 @@ var require_coreipc2 = __commonJS22((exports, module) => {
474507
474711
  Object.defineProperty(t2, "debounceTime", { enumerable: true, get: function() {
474508
474712
  return ke.debounceTime;
474509
474713
  } });
474510
- var Te = r(6204);
474714
+ var Ce = r(6204);
474511
474715
  Object.defineProperty(t2, "defaultIfEmpty", { enumerable: true, get: function() {
474512
- return Te.defaultIfEmpty;
474716
+ return Ce.defaultIfEmpty;
474513
474717
  } });
474514
- var Ce = r(7752);
474718
+ var Te = r(7752);
474515
474719
  Object.defineProperty(t2, "delay", { enumerable: true, get: function() {
474516
- return Ce.delay;
474720
+ return Te.delay;
474517
474721
  } });
474518
474722
  var Ae = r(7532);
474519
474723
  Object.defineProperty(t2, "delayWhen", { enumerable: true, get: function() {
@@ -474723,13 +474927,13 @@ var require_coreipc2 = __commonJS22((exports, module) => {
474723
474927
  Object.defineProperty(t2, "share", { enumerable: true, get: function() {
474724
474928
  return kt.share;
474725
474929
  } });
474726
- var Tt = r(4980);
474930
+ var Ct = r(4980);
474727
474931
  Object.defineProperty(t2, "shareReplay", { enumerable: true, get: function() {
474728
- return Tt.shareReplay;
474932
+ return Ct.shareReplay;
474729
474933
  } });
474730
- var Ct = r(1400);
474934
+ var Tt = r(1400);
474731
474935
  Object.defineProperty(t2, "single", { enumerable: true, get: function() {
474732
- return Ct.single;
474936
+ return Tt.single;
474733
474937
  } });
474734
474938
  var At = r(7516);
474735
474939
  Object.defineProperty(t2, "skip", { enumerable: true, get: function() {
@@ -480429,12 +480633,24 @@ var require_coreipc2 = __commonJS22((exports, module) => {
480429
480633
  static create() {
480430
480634
  return new r;
480431
480635
  }
480636
+ get(e3) {
480637
+ return this._map.get(e3);
480638
+ }
480432
480639
  getOrCreateValue(e3, t3) {
480433
480640
  if (this._map.has(e3))
480434
480641
  return this._map.get(e3);
480435
480642
  let r2 = t3(e3);
480436
480643
  return this._map.set(e3, r2), r2;
480437
480644
  }
480645
+ delete(e3) {
480646
+ return this._map.delete(e3);
480647
+ }
480648
+ values() {
480649
+ return this._map.values();
480650
+ }
480651
+ clear() {
480652
+ this._map.clear();
480653
+ }
480438
480654
  }
480439
480655
  t2.Dictionary = r;
480440
480656
  }, 4444: function(e2, t2, r) {
@@ -481807,25 +482023,61 @@ Object name: '${e3}'.`), t3;
481807
482023
  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);
481808
482024
  }, 1816: (e2, t2) => {
481809
482025
  Object.defineProperty(t2, "__esModule", { value: true });
481810
- }, 5284: (e2, t2, r) => {
482026
+ }, 5284: function(e2, t2, r) {
482027
+ var n = this && this.__awaiter || function(e3, t3, r2, n2) {
482028
+ return new (r2 || (r2 = Promise))(function(o2, i3) {
482029
+ function s2(e4) {
482030
+ try {
482031
+ c2(n2.next(e4));
482032
+ } catch (e5) {
482033
+ i3(e5);
482034
+ }
482035
+ }
482036
+ function a2(e4) {
482037
+ try {
482038
+ c2(n2.throw(e4));
482039
+ } catch (e5) {
482040
+ i3(e5);
482041
+ }
482042
+ }
482043
+ function c2(e4) {
482044
+ var t4;
482045
+ e4.done ? o2(e4.value) : (t4 = e4.value, t4 instanceof r2 ? t4 : new r2(function(e5) {
482046
+ e5(t4);
482047
+ })).then(s2, a2);
482048
+ }
482049
+ c2((n2 = n2.apply(e3, t3 || [])).next());
482050
+ });
482051
+ };
481811
482052
  Object.defineProperty(t2, "__esModule", { value: true }), t2.IpcBaseImpl = t2.IpcCoreBase = undefined;
481812
- const n = r(5188), o = r(3212), i22 = r(4104), s = r(2760), a = r(9100);
482053
+ const o = r(5188), i22 = r(3212), s = r(4104), a = r(2760), c = r(9100);
481813
482054
  t2.IpcCoreBase = class {
481814
482055
  constructor() {
481815
482056
  this._db = new Map;
481816
482057
  }
481817
482058
  };
481818
482059
 
481819
- class c {
482060
+ class u {
481820
482061
  constructor(e3, t3, r2) {
481821
- 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 i22.ProxySource(this), this.dispatchProxies = new i22.DispatchProxyClassStore, this.wire = new i22.Wire(this), this.contractStore = new s.ContractStore, this.callbackStore = new i22.CallbackStoreImpl, this.$service = t3 != null ? t3 : new o.ServiceAnnotationsWrapper(this).iface, this.$operation = r2 != null ? r2 : new o.OperationAnnotationsWrapper(this).iface;
482062
+ this.addressBuilder = e3, this.proxy = new u.ProxySource(this), this.config = new u.Configuration(this), this.callback = new c.CallbackImpl(this), this.configStore = new i22.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 i22.ServiceAnnotationsWrapper(this).iface, this.$operation = r2 != null ? r2 : new i22.OperationAnnotationsWrapper(this).iface;
481822
482063
  }
481823
482064
  getAddress(e3) {
481824
482065
  const t3 = new this.addressBuilder;
481825
482066
  return e3(t3), t3.assertAddress();
481826
482067
  }
482068
+ disposeChannel(e3) {
482069
+ return n(this, undefined, undefined, function* () {
482070
+ const t3 = this.getAddress(e3);
482071
+ yield this.wire.disposeChannel(t3.key);
482072
+ });
482073
+ }
482074
+ disposeAllChannels() {
482075
+ return n(this, undefined, undefined, function* () {
482076
+ yield this.wire.disposeAllChannels();
482077
+ });
482078
+ }
481827
482079
  }
481828
- t2.IpcBaseImpl = c, function(e3) {
482080
+ t2.IpcBaseImpl = u, function(e3) {
481829
482081
  e3.ProxySource = class {
481830
482082
  constructor(e4) {
481831
482083
  this._serviceProvider = e4;
@@ -481841,7 +482093,7 @@ Object name: '${e3}'.`), t3;
481841
482093
  this._serviceProvider = e4, this._address = t4;
481842
482094
  }
481843
482095
  withService(e4) {
481844
- const t4 = new i22.ProxyId(e4, this._address);
482096
+ const t4 = new s.ProxyId(e4, this._address);
481845
482097
  return this._serviceProvider.proxySource.resolve(t4);
481846
482098
  }
481847
482099
  }
@@ -481863,27 +482115,27 @@ Object name: '${e3}'.`), t3;
481863
482115
  this._ipc = e4, this._address = t4;
481864
482116
  }
481865
482117
  setConnectHelper(e4) {
481866
- (0, n.assertArgument)({ value: e4 }, "function"), this._ipc.configStore.setConnectHelper(this._address, e4);
482118
+ (0, o.assertArgument)({ value: e4 }, "function"), this._ipc.configStore.setConnectHelper(this._address, e4);
481867
482119
  }
481868
482120
  forAnyService() {
481869
- return new o2(this._ipc, this._address);
482121
+ return new n2(this._ipc, this._address);
481870
482122
  }
481871
482123
  forService(e4) {
481872
- return new o2(this._ipc, this._address, e4);
482124
+ return new n2(this._ipc, this._address, e4);
481873
482125
  }
481874
482126
  }
481875
482127
  e3.ConfigurationWithAddress = r2;
481876
482128
 
481877
- class o2 {
482129
+ class n2 {
481878
482130
  constructor(e4, t4, r3) {
481879
482131
  this._ipc = e4, this._address = t4, this._service = r3;
481880
482132
  }
481881
482133
  setRequestTimeout(e4) {
481882
- (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);
482134
+ (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);
481883
482135
  }
481884
482136
  }
481885
- e3.ConfigurationWithAddressService = o2;
481886
- }(c = t2.IpcBaseImpl || (t2.IpcBaseImpl = {}));
482137
+ e3.ConfigurationWithAddressService = n2;
482138
+ }(u = t2.IpcBaseImpl || (t2.IpcBaseImpl = {}));
481887
482139
  }, 3552: (e2, t2) => {
481888
482140
  Object.defineProperty(t2, "__esModule", { value: true }), t2.IpcError = undefined, t2.IpcError = class {
481889
482141
  constructor(e3, t3, r, n) {
@@ -481956,7 +482208,13 @@ Object name: '${e3}'.`), t3;
481956
482208
  }
481957
482209
  disposeAsync() {
481958
482210
  return n(this, undefined, undefined, function* () {
481959
- this._ctsLoop.cancel(), yield this._loop, this._stream.dispose();
482211
+ this._ctsLoop.cancel();
482212
+ try {
482213
+ yield this._loop;
482214
+ } catch (e3) {
482215
+ e3 instanceof o.OperationCanceledError || o.Trace.log(o.UnknownError.ensureError(e3));
482216
+ }
482217
+ this._stream.dispose();
481960
482218
  });
481961
482219
  }
481962
482220
  static toMessageTypeString(e3) {
@@ -482141,8 +482399,8 @@ ${e3.Data}`);
482141
482399
  static create(e3, t3, r2, n2, o2, i3) {
482142
482400
  return new a(e3, t3, r2, n2, o2, i3);
482143
482401
  }
482144
- constructor(e3, t3, r2, n2, o2, s2) {
482145
- this._observer = o2, this._isDisposed = false, this._outgoingCalls = new a.OutgoingCallTable, this._networkObserver = new class {
482402
+ constructor(e3, t3, r2, n2, s2, c) {
482403
+ this._observer = s2, this._isDisposed = false, this._outgoingCalls = new a.OutgoingCallTable, this._networkObserver = new class {
482146
482404
  constructor(e4) {
482147
482405
  this._owner = e4;
482148
482406
  }
@@ -482155,8 +482413,8 @@ ${e3.Data}`);
482155
482413
  complete() {
482156
482414
  this._owner.dispatchNetworkComplete();
482157
482415
  }
482158
- }(this), this._$messageStream = a.createMessageStream(e3, t3, r2, n2, this._networkObserver, i22.MessageStream.Factory.orDefault(s2)), this._$messageStream.catch((e4) => {
482159
- this.disposeAsync();
482416
+ }(this), this._$messageStream = a.createMessageStream(e3, t3, r2, n2, this._networkObserver, i22.MessageStream.Factory.orDefault(c)), this._$messageStream.catch((e4) => {
482417
+ o.Trace.traceErrorNoThrow(this.disposeAsync());
482160
482418
  });
482161
482419
  }
482162
482420
  disposeAsync() {
@@ -482395,6 +482653,12 @@ ${e3.Data}`);
482395
482653
  complete() {}
482396
482654
  }(this);
482397
482655
  }
482656
+ disposeAsync() {
482657
+ return n(this, undefined, undefined, function* () {
482658
+ const e3 = this._latestChannel;
482659
+ this._latestChannel = undefined, e3 && !e3.isDisposed && (yield e3.disposeAsync());
482660
+ });
482661
+ }
482398
482662
  invokeMethod(e3, t3, r2) {
482399
482663
  return n(this, undefined, undefined, function* () {
482400
482664
  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 = i22.Converter.unwrapRpcResponse(f, n2);
@@ -482549,18 +482813,55 @@ ${e3.Data}`);
482549
482813
  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];
482550
482814
  }
482551
482815
  };
482552
- }, 4156: (e2, t2, r) => {
482816
+ }, 4156: function(e2, t2, r) {
482817
+ var n = this && this.__awaiter || function(e3, t3, r2, n2) {
482818
+ return new (r2 || (r2 = Promise))(function(o2, i3) {
482819
+ function s2(e4) {
482820
+ try {
482821
+ c(n2.next(e4));
482822
+ } catch (e5) {
482823
+ i3(e5);
482824
+ }
482825
+ }
482826
+ function a(e4) {
482827
+ try {
482828
+ c(n2.throw(e4));
482829
+ } catch (e5) {
482830
+ i3(e5);
482831
+ }
482832
+ }
482833
+ function c(e4) {
482834
+ var t4;
482835
+ e4.done ? o2(e4.value) : (t4 = e4.value, t4 instanceof r2 ? t4 : new r2(function(e5) {
482836
+ e5(t4);
482837
+ })).then(s2, a);
482838
+ }
482839
+ c((n2 = n2.apply(e3, t3 || [])).next());
482840
+ });
482841
+ };
482553
482842
  Object.defineProperty(t2, "__esModule", { value: true }), t2.Wire = undefined;
482554
- const n = r(3212), o = r(4104), i22 = r(5188);
482843
+ const o = r(3212), i22 = r(4104), s = r(5188);
482555
482844
  t2.Wire = class {
482556
482845
  invokeMethod(e3, t3, r2) {
482557
482846
  return this.getOrCreateChannelManager(e3.address).invokeMethod(e3.service, t3, r2);
482558
482847
  }
482559
- constructor(e3, t3 = n.RpcChannel, r2 = new n.MessageStream.Factory) {
482560
- this._sp = e3, this._rpcChannelFactory = t3, this._messageStreamFactory = r2, this._map = new i22.Dictionary;
482848
+ constructor(e3, t3 = o.RpcChannel, r2 = new o.MessageStream.Factory) {
482849
+ this._sp = e3, this._rpcChannelFactory = t3, this._messageStreamFactory = r2, this._map = new s.Dictionary;
482561
482850
  }
482562
482851
  getOrCreateChannelManager(e3) {
482563
- return this._map.getOrCreateValue(e3.key, () => new o.ChannelManager(this._sp, e3, this._rpcChannelFactory, this._messageStreamFactory));
482852
+ return this._map.getOrCreateValue(e3.key, () => new i22.ChannelManager(this._sp, e3, this._rpcChannelFactory, this._messageStreamFactory));
482853
+ }
482854
+ disposeChannel(e3) {
482855
+ return n(this, undefined, undefined, function* () {
482856
+ const t3 = this._map.get(e3);
482857
+ t3 && (this._map.delete(e3), yield t3.disposeAsync());
482858
+ });
482859
+ }
482860
+ disposeAllChannels() {
482861
+ return n(this, undefined, undefined, function* () {
482862
+ const e3 = [...this._map.values()];
482863
+ this._map.clear(), yield Promise.all(e3.map((e4) => e4.disposeAsync()));
482864
+ });
482564
482865
  }
482565
482866
  };
482566
482867
  }, 4104: function(e2, t2, r) {
@@ -483523,7 +483824,7 @@ ${e3.Data}`);
483523
483824
  }
483524
483825
  };
483525
483826
  }, 5144: (e2, t2, r) => {
483526
- const n = r(467), o = r(1256), i22 = 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~]+$/;
483827
+ const n = r(467), o = r(1256), i22 = 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~]+$/;
483527
483828
 
483528
483829
  class A extends n {
483529
483830
  constructor(e3, t3, r2) {
@@ -483646,7 +483947,7 @@ ${e3.Data}`);
483646
483947
  let g2, O2;
483647
483948
  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) {
483648
483949
  for (const e4 of r2) {
483649
- if (typeof e4 != "string" || !C.test(e4) || m2.has(e4))
483950
+ if (typeof e4 != "string" || !T.test(e4) || m2.has(e4))
483650
483951
  throw new SyntaxError("An invalid or duplicated subprotocol was specified");
483651
483952
  m2.add(e4);
483652
483953
  }
@@ -483745,7 +484046,7 @@ ${e3.Data}`);
483745
484046
  const r3 = x(t3).length;
483746
484047
  e3._socket ? e3._sender._bufferedBytes += r3 : e3._bufferedAmount += r3;
483747
484048
  }
483748
- r2 && r2(new Error(`WebSocket is not open: readyState ${e3.readyState} (${T[e3.readyState]})`));
484049
+ r2 && r2(new Error(`WebSocket is not open: readyState ${e3.readyState} (${C[e3.readyState]})`));
483749
484050
  }
483750
484051
  function W(e3, t3) {
483751
484052
  const r2 = this[O];
@@ -483791,7 +484092,7 @@ ${e3.Data}`);
483791
484092
  const e3 = this[O];
483792
484093
  this.removeListener("error", J), this.on("error", w), e3 && (e3._readyState = A.CLOSING, this.destroy());
483793
484094
  }
483794
- 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) => {
484095
+ 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) => {
483795
484096
  Object.defineProperty(A.prototype, e3, { enumerable: true });
483796
484097
  }), ["open", "error", "close", "message"].forEach((e3) => {
483797
484098
  Object.defineProperty(A.prototype, `on${e3}`, { enumerable: true, get() {
@@ -490108,11 +490409,13 @@ var require_handle_consent_code_message2 = __commonJS22((exports) => {
490108
490409
  var coreipc_1 = require_coreipc2();
490109
490410
 
490110
490411
  class HandleConsentCodeMessage extends coreipc_1.Message {
490111
- constructor(Accept, Domain, ConsentCode) {
490412
+ constructor(Accept, Domain, ConsentCode, SignInUrl) {
490112
490413
  super();
490113
490414
  this.Accept = Accept;
490114
490415
  this.Domain = Domain;
490115
490416
  this.ConsentCode = ConsentCode;
490417
+ this.SignInUrl = SignInUrl;
490418
+ this.RequestTimeout = coreipc_1.TimeSpan.fromSeconds(60);
490116
490419
  }
490117
490420
  }
490118
490421
  exports.HandleConsentCodeMessage = HandleConsentCodeMessage;
@@ -490885,8 +491188,8 @@ var require_robotjs_services22 = __commonJS22((exports) => {
490885
491188
  constructor(_consentCodeServices) {
490886
491189
  this._consentCodeServices = _consentCodeServices;
490887
491190
  }
490888
- HandleConsentCode(accept, domain22, consentCode) {
490889
- return this._consentCodeServices.HandleConsentCode(new server.HandleConsentCodeMessage(accept, domain22, consentCode), coreipc_1.CancellationToken.none);
491191
+ HandleConsentCode(accept, domain22, consentCode, signInUrl) {
491192
+ return this._consentCodeServices.HandleConsentCode(new server.HandleConsentCodeMessage(accept, domain22, consentCode, signInUrl), coreipc_1.CancellationToken.none);
490890
491193
  }
490891
491194
  IsDomainAllowed(domain22) {
490892
491195
  return this._consentCodeServices.IsDomainAllowed(new server.IsDomainAllowedMessage(domain22), coreipc_1.CancellationToken.none);
@@ -491026,7 +491329,10 @@ var require_robot_agent_proxy22 = __commonJS22((exports) => {
491026
491329
  this._robotJsServices = new robotjs_services_1.RobotJsServices(this._consentCodeServices);
491027
491330
  }
491028
491331
  CloseAsync() {
491029
- return __awaiter(this, undefined, undefined, function* () {});
491332
+ return __awaiter(this, undefined, undefined, function* () {
491333
+ yield coreipc_1.ipc.disposeChannel(coreipc_1.ipc.namedPipe(this._settings.pipeName));
491334
+ yield coreipc_1.ipc.disposeChannel(coreipc_1.ipc.namedPipe(this._robotJsSettings.pipeName));
491335
+ });
491030
491336
  }
491031
491337
  get RobotStatusChanged() {
491032
491338
  return this._robotStatusChanged;
@@ -520987,7 +521293,7 @@ import"./packager-tool.js";
520987
521293
  // ../flow-tool/package.json
520988
521294
  var package_default2 = {
520989
521295
  name: "@uipath/flow-tool",
520990
- version: "1.0.1",
521296
+ version: "0.9.1",
520991
521297
  description: "Create, debug, and run UiPath Flow projects and jobs.",
520992
521298
  private: false,
520993
521299
  repository: {
@@ -548948,7 +549254,7 @@ var require_coreipc5 = __commonJS3((exports, module) => {
548948
549254
  if (S(n3))
548949
549255
  return r3;
548950
549256
  for (var i33 = function(e6) {
548951
- var t5 = C(e6, o2);
549257
+ var t5 = T(e6, o2);
548952
549258
  if (!k(t5))
548953
549259
  throw new TypeError;
548954
549260
  var r4 = t5.call(e6);
@@ -549011,7 +549317,7 @@ var require_coreipc5 = __commonJS3((exports, module) => {
549011
549317
  case 5:
549012
549318
  return e5;
549013
549319
  }
549014
- var r3 = t4 === 3 ? "string" : t4 === 5 ? "number" : "default", o3 = C(e5, n2);
549320
+ var r3 = t4 === 3 ? "string" : t4 === 5 ? "number" : "default", o3 = T(e5, n2);
549015
549321
  if (o3 !== undefined) {
549016
549322
  var i33 = o3.call(e5, r3);
549017
549323
  if (j(i33))
@@ -549048,10 +549354,10 @@ var require_coreipc5 = __commonJS3((exports, module) => {
549048
549354
  function k(e5) {
549049
549355
  return typeof e5 == "function";
549050
549356
  }
549051
- function T(e5) {
549357
+ function C(e5) {
549052
549358
  return typeof e5 == "function";
549053
549359
  }
549054
- function C(e5, t4) {
549360
+ function T(e5, t4) {
549055
549361
  var r3 = e5[t4];
549056
549362
  if (r3 != null) {
549057
549363
  if (!k(r3))
@@ -549086,13 +549392,13 @@ var require_coreipc5 = __commonJS3((exports, module) => {
549086
549392
  if (S(r3)) {
549087
549393
  if (!M(e5))
549088
549394
  throw new TypeError;
549089
- if (!T(t4))
549395
+ if (!C(t4))
549090
549396
  throw new TypeError;
549091
549397
  return function(e6, t5) {
549092
549398
  for (var r4 = e6.length - 1;r4 >= 0; --r4) {
549093
549399
  var n4 = (0, e6[r4])(t5);
549094
549400
  if (!S(n4) && !P(n4)) {
549095
- if (!T(n4))
549401
+ if (!C(n4))
549096
549402
  throw new TypeError;
549097
549403
  t5 = n4;
549098
549404
  }
@@ -549302,13 +549608,13 @@ var require_coreipc5 = __commonJS3((exports, module) => {
549302
549608
  Object.defineProperty(t2, "EmptyError", { enumerable: true, get: function() {
549303
549609
  return k.EmptyError;
549304
549610
  } });
549305
- var T = r(7628);
549611
+ var C = r(7628);
549306
549612
  Object.defineProperty(t2, "NotFoundError", { enumerable: true, get: function() {
549307
- return T.NotFoundError;
549613
+ return C.NotFoundError;
549308
549614
  } });
549309
- var C = r(740);
549615
+ var T = r(740);
549310
549616
  Object.defineProperty(t2, "ObjectUnsubscribedError", { enumerable: true, get: function() {
549311
- return C.ObjectUnsubscribedError;
549617
+ return T.ObjectUnsubscribedError;
549312
549618
  } });
549313
549619
  var A = r(6968);
549314
549620
  Object.defineProperty(t2, "SequenceError", { enumerable: true, get: function() {
@@ -549518,13 +549824,13 @@ var require_coreipc5 = __commonJS3((exports, module) => {
549518
549824
  Object.defineProperty(t2, "debounceTime", { enumerable: true, get: function() {
549519
549825
  return ke.debounceTime;
549520
549826
  } });
549521
- var Te = r(6204);
549827
+ var Ce = r(6204);
549522
549828
  Object.defineProperty(t2, "defaultIfEmpty", { enumerable: true, get: function() {
549523
- return Te.defaultIfEmpty;
549829
+ return Ce.defaultIfEmpty;
549524
549830
  } });
549525
- var Ce = r(7752);
549831
+ var Te = r(7752);
549526
549832
  Object.defineProperty(t2, "delay", { enumerable: true, get: function() {
549527
- return Ce.delay;
549833
+ return Te.delay;
549528
549834
  } });
549529
549835
  var Ae = r(7532);
549530
549836
  Object.defineProperty(t2, "delayWhen", { enumerable: true, get: function() {
@@ -549734,13 +550040,13 @@ var require_coreipc5 = __commonJS3((exports, module) => {
549734
550040
  Object.defineProperty(t2, "share", { enumerable: true, get: function() {
549735
550041
  return kt.share;
549736
550042
  } });
549737
- var Tt = r(4980);
550043
+ var Ct = r(4980);
549738
550044
  Object.defineProperty(t2, "shareReplay", { enumerable: true, get: function() {
549739
- return Tt.shareReplay;
550045
+ return Ct.shareReplay;
549740
550046
  } });
549741
- var Ct = r(1400);
550047
+ var Tt = r(1400);
549742
550048
  Object.defineProperty(t2, "single", { enumerable: true, get: function() {
549743
- return Ct.single;
550049
+ return Tt.single;
549744
550050
  } });
549745
550051
  var At = r(7516);
549746
550052
  Object.defineProperty(t2, "skip", { enumerable: true, get: function() {
@@ -555440,12 +555746,24 @@ var require_coreipc5 = __commonJS3((exports, module) => {
555440
555746
  static create() {
555441
555747
  return new r;
555442
555748
  }
555749
+ get(e3) {
555750
+ return this._map.get(e3);
555751
+ }
555443
555752
  getOrCreateValue(e3, t3) {
555444
555753
  if (this._map.has(e3))
555445
555754
  return this._map.get(e3);
555446
555755
  let r2 = t3(e3);
555447
555756
  return this._map.set(e3, r2), r2;
555448
555757
  }
555758
+ delete(e3) {
555759
+ return this._map.delete(e3);
555760
+ }
555761
+ values() {
555762
+ return this._map.values();
555763
+ }
555764
+ clear() {
555765
+ this._map.clear();
555766
+ }
555449
555767
  }
555450
555768
  t2.Dictionary = r;
555451
555769
  }, 4444: function(e2, t2, r) {
@@ -556818,25 +557136,61 @@ Object name: '${e3}'.`), t3;
556818
557136
  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);
556819
557137
  }, 1816: (e2, t2) => {
556820
557138
  Object.defineProperty(t2, "__esModule", { value: true });
556821
- }, 5284: (e2, t2, r) => {
557139
+ }, 5284: function(e2, t2, r) {
557140
+ var n = this && this.__awaiter || function(e3, t3, r2, n2) {
557141
+ return new (r2 || (r2 = Promise))(function(o2, i33) {
557142
+ function s2(e4) {
557143
+ try {
557144
+ c2(n2.next(e4));
557145
+ } catch (e5) {
557146
+ i33(e5);
557147
+ }
557148
+ }
557149
+ function a2(e4) {
557150
+ try {
557151
+ c2(n2.throw(e4));
557152
+ } catch (e5) {
557153
+ i33(e5);
557154
+ }
557155
+ }
557156
+ function c2(e4) {
557157
+ var t4;
557158
+ e4.done ? o2(e4.value) : (t4 = e4.value, t4 instanceof r2 ? t4 : new r2(function(e5) {
557159
+ e5(t4);
557160
+ })).then(s2, a2);
557161
+ }
557162
+ c2((n2 = n2.apply(e3, t3 || [])).next());
557163
+ });
557164
+ };
556822
557165
  Object.defineProperty(t2, "__esModule", { value: true }), t2.IpcBaseImpl = t2.IpcCoreBase = undefined;
556823
- const n = r(5188), o = r(3212), i22 = r(4104), s = r(2760), a = r(9100);
557166
+ const o = r(5188), i22 = r(3212), s = r(4104), a = r(2760), c = r(9100);
556824
557167
  t2.IpcCoreBase = class {
556825
557168
  constructor() {
556826
557169
  this._db = new Map;
556827
557170
  }
556828
557171
  };
556829
557172
 
556830
- class c {
557173
+ class u {
556831
557174
  constructor(e3, t3, r2) {
556832
- 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 i22.ProxySource(this), this.dispatchProxies = new i22.DispatchProxyClassStore, this.wire = new i22.Wire(this), this.contractStore = new s.ContractStore, this.callbackStore = new i22.CallbackStoreImpl, this.$service = t3 != null ? t3 : new o.ServiceAnnotationsWrapper(this).iface, this.$operation = r2 != null ? r2 : new o.OperationAnnotationsWrapper(this).iface;
557175
+ this.addressBuilder = e3, this.proxy = new u.ProxySource(this), this.config = new u.Configuration(this), this.callback = new c.CallbackImpl(this), this.configStore = new i22.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 i22.ServiceAnnotationsWrapper(this).iface, this.$operation = r2 != null ? r2 : new i22.OperationAnnotationsWrapper(this).iface;
556833
557176
  }
556834
557177
  getAddress(e3) {
556835
557178
  const t3 = new this.addressBuilder;
556836
557179
  return e3(t3), t3.assertAddress();
556837
557180
  }
557181
+ disposeChannel(e3) {
557182
+ return n(this, undefined, undefined, function* () {
557183
+ const t3 = this.getAddress(e3);
557184
+ yield this.wire.disposeChannel(t3.key);
557185
+ });
557186
+ }
557187
+ disposeAllChannels() {
557188
+ return n(this, undefined, undefined, function* () {
557189
+ yield this.wire.disposeAllChannels();
557190
+ });
557191
+ }
556838
557192
  }
556839
- t2.IpcBaseImpl = c, function(e3) {
557193
+ t2.IpcBaseImpl = u, function(e3) {
556840
557194
  e3.ProxySource = class {
556841
557195
  constructor(e4) {
556842
557196
  this._serviceProvider = e4;
@@ -556852,7 +557206,7 @@ Object name: '${e3}'.`), t3;
556852
557206
  this._serviceProvider = e4, this._address = t4;
556853
557207
  }
556854
557208
  withService(e4) {
556855
- const t4 = new i22.ProxyId(e4, this._address);
557209
+ const t4 = new s.ProxyId(e4, this._address);
556856
557210
  return this._serviceProvider.proxySource.resolve(t4);
556857
557211
  }
556858
557212
  }
@@ -556874,27 +557228,27 @@ Object name: '${e3}'.`), t3;
556874
557228
  this._ipc = e4, this._address = t4;
556875
557229
  }
556876
557230
  setConnectHelper(e4) {
556877
- (0, n.assertArgument)({ value: e4 }, "function"), this._ipc.configStore.setConnectHelper(this._address, e4);
557231
+ (0, o.assertArgument)({ value: e4 }, "function"), this._ipc.configStore.setConnectHelper(this._address, e4);
556878
557232
  }
556879
557233
  forAnyService() {
556880
- return new o2(this._ipc, this._address);
557234
+ return new n2(this._ipc, this._address);
556881
557235
  }
556882
557236
  forService(e4) {
556883
- return new o2(this._ipc, this._address, e4);
557237
+ return new n2(this._ipc, this._address, e4);
556884
557238
  }
556885
557239
  }
556886
557240
  e3.ConfigurationWithAddress = r2;
556887
557241
 
556888
- class o2 {
557242
+ class n2 {
556889
557243
  constructor(e4, t4, r3) {
556890
557244
  this._ipc = e4, this._address = t4, this._service = r3;
556891
557245
  }
556892
557246
  setRequestTimeout(e4) {
556893
- (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);
557247
+ (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);
556894
557248
  }
556895
557249
  }
556896
- e3.ConfigurationWithAddressService = o2;
556897
- }(c = t2.IpcBaseImpl || (t2.IpcBaseImpl = {}));
557250
+ e3.ConfigurationWithAddressService = n2;
557251
+ }(u = t2.IpcBaseImpl || (t2.IpcBaseImpl = {}));
556898
557252
  }, 3552: (e2, t2) => {
556899
557253
  Object.defineProperty(t2, "__esModule", { value: true }), t2.IpcError = undefined, t2.IpcError = class {
556900
557254
  constructor(e3, t3, r, n) {
@@ -556967,7 +557321,13 @@ Object name: '${e3}'.`), t3;
556967
557321
  }
556968
557322
  disposeAsync() {
556969
557323
  return n(this, undefined, undefined, function* () {
556970
- this._ctsLoop.cancel(), yield this._loop, this._stream.dispose();
557324
+ this._ctsLoop.cancel();
557325
+ try {
557326
+ yield this._loop;
557327
+ } catch (e3) {
557328
+ e3 instanceof o.OperationCanceledError || o.Trace.log(o.UnknownError.ensureError(e3));
557329
+ }
557330
+ this._stream.dispose();
556971
557331
  });
556972
557332
  }
556973
557333
  static toMessageTypeString(e3) {
@@ -557152,8 +557512,8 @@ ${e3.Data}`);
557152
557512
  static create(e3, t3, r2, n2, o2, i33) {
557153
557513
  return new a(e3, t3, r2, n2, o2, i33);
557154
557514
  }
557155
- constructor(e3, t3, r2, n2, o2, s2) {
557156
- this._observer = o2, this._isDisposed = false, this._outgoingCalls = new a.OutgoingCallTable, this._networkObserver = new class {
557515
+ constructor(e3, t3, r2, n2, s2, c) {
557516
+ this._observer = s2, this._isDisposed = false, this._outgoingCalls = new a.OutgoingCallTable, this._networkObserver = new class {
557157
557517
  constructor(e4) {
557158
557518
  this._owner = e4;
557159
557519
  }
@@ -557166,8 +557526,8 @@ ${e3.Data}`);
557166
557526
  complete() {
557167
557527
  this._owner.dispatchNetworkComplete();
557168
557528
  }
557169
- }(this), this._$messageStream = a.createMessageStream(e3, t3, r2, n2, this._networkObserver, i22.MessageStream.Factory.orDefault(s2)), this._$messageStream.catch((e4) => {
557170
- this.disposeAsync();
557529
+ }(this), this._$messageStream = a.createMessageStream(e3, t3, r2, n2, this._networkObserver, i22.MessageStream.Factory.orDefault(c)), this._$messageStream.catch((e4) => {
557530
+ o.Trace.traceErrorNoThrow(this.disposeAsync());
557171
557531
  });
557172
557532
  }
557173
557533
  disposeAsync() {
@@ -557406,6 +557766,12 @@ ${e3.Data}`);
557406
557766
  complete() {}
557407
557767
  }(this);
557408
557768
  }
557769
+ disposeAsync() {
557770
+ return n(this, undefined, undefined, function* () {
557771
+ const e3 = this._latestChannel;
557772
+ this._latestChannel = undefined, e3 && !e3.isDisposed && (yield e3.disposeAsync());
557773
+ });
557774
+ }
557409
557775
  invokeMethod(e3, t3, r2) {
557410
557776
  return n(this, undefined, undefined, function* () {
557411
557777
  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 = i22.Converter.unwrapRpcResponse(f, n2);
@@ -557560,18 +557926,55 @@ ${e3.Data}`);
557560
557926
  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];
557561
557927
  }
557562
557928
  };
557563
- }, 4156: (e2, t2, r) => {
557929
+ }, 4156: function(e2, t2, r) {
557930
+ var n = this && this.__awaiter || function(e3, t3, r2, n2) {
557931
+ return new (r2 || (r2 = Promise))(function(o2, i33) {
557932
+ function s2(e4) {
557933
+ try {
557934
+ c(n2.next(e4));
557935
+ } catch (e5) {
557936
+ i33(e5);
557937
+ }
557938
+ }
557939
+ function a(e4) {
557940
+ try {
557941
+ c(n2.throw(e4));
557942
+ } catch (e5) {
557943
+ i33(e5);
557944
+ }
557945
+ }
557946
+ function c(e4) {
557947
+ var t4;
557948
+ e4.done ? o2(e4.value) : (t4 = e4.value, t4 instanceof r2 ? t4 : new r2(function(e5) {
557949
+ e5(t4);
557950
+ })).then(s2, a);
557951
+ }
557952
+ c((n2 = n2.apply(e3, t3 || [])).next());
557953
+ });
557954
+ };
557564
557955
  Object.defineProperty(t2, "__esModule", { value: true }), t2.Wire = undefined;
557565
- const n = r(3212), o = r(4104), i22 = r(5188);
557956
+ const o = r(3212), i22 = r(4104), s = r(5188);
557566
557957
  t2.Wire = class {
557567
557958
  invokeMethod(e3, t3, r2) {
557568
557959
  return this.getOrCreateChannelManager(e3.address).invokeMethod(e3.service, t3, r2);
557569
557960
  }
557570
- constructor(e3, t3 = n.RpcChannel, r2 = new n.MessageStream.Factory) {
557571
- this._sp = e3, this._rpcChannelFactory = t3, this._messageStreamFactory = r2, this._map = new i22.Dictionary;
557961
+ constructor(e3, t3 = o.RpcChannel, r2 = new o.MessageStream.Factory) {
557962
+ this._sp = e3, this._rpcChannelFactory = t3, this._messageStreamFactory = r2, this._map = new s.Dictionary;
557572
557963
  }
557573
557964
  getOrCreateChannelManager(e3) {
557574
- return this._map.getOrCreateValue(e3.key, () => new o.ChannelManager(this._sp, e3, this._rpcChannelFactory, this._messageStreamFactory));
557965
+ return this._map.getOrCreateValue(e3.key, () => new i22.ChannelManager(this._sp, e3, this._rpcChannelFactory, this._messageStreamFactory));
557966
+ }
557967
+ disposeChannel(e3) {
557968
+ return n(this, undefined, undefined, function* () {
557969
+ const t3 = this._map.get(e3);
557970
+ t3 && (this._map.delete(e3), yield t3.disposeAsync());
557971
+ });
557972
+ }
557973
+ disposeAllChannels() {
557974
+ return n(this, undefined, undefined, function* () {
557975
+ const e3 = [...this._map.values()];
557976
+ this._map.clear(), yield Promise.all(e3.map((e4) => e4.disposeAsync()));
557977
+ });
557575
557978
  }
557576
557979
  };
557577
557980
  }, 4104: function(e2, t2, r) {
@@ -558534,7 +558937,7 @@ ${e3.Data}`);
558534
558937
  }
558535
558938
  };
558536
558939
  }, 5144: (e2, t2, r) => {
558537
- const n = r(467), o = r(1256), i22 = 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: x2 } = r(3092), M = Symbol("kAborted"), k = [8, 13], T = ["CONNECTING", "OPEN", "CLOSING", "CLOSED"], C = /^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;
558940
+ const n = r(467), o = r(1256), i22 = 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: x2 } = r(3092), M = Symbol("kAborted"), k = [8, 13], C = ["CONNECTING", "OPEN", "CLOSING", "CLOSED"], T = /^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;
558538
558941
 
558539
558942
  class A extends n {
558540
558943
  constructor(e3, t3, r2) {
@@ -558657,7 +559060,7 @@ ${e3.Data}`);
558657
559060
  let g2, O2;
558658
559061
  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) {
558659
559062
  for (const e4 of r2) {
558660
- if (typeof e4 != "string" || !C.test(e4) || m2.has(e4))
559063
+ if (typeof e4 != "string" || !T.test(e4) || m2.has(e4))
558661
559064
  throw new SyntaxError("An invalid or duplicated subprotocol was specified");
558662
559065
  m2.add(e4);
558663
559066
  }
@@ -558756,7 +559159,7 @@ ${e3.Data}`);
558756
559159
  const r3 = x2(t3).length;
558757
559160
  e3._socket ? e3._sender._bufferedBytes += r3 : e3._bufferedAmount += r3;
558758
559161
  }
558759
- r2 && r2(new Error(`WebSocket is not open: readyState ${e3.readyState} (${T[e3.readyState]})`));
559162
+ r2 && r2(new Error(`WebSocket is not open: readyState ${e3.readyState} (${C[e3.readyState]})`));
558760
559163
  }
558761
559164
  function W(e3, t3) {
558762
559165
  const r2 = this[O];
@@ -558802,7 +559205,7 @@ ${e3.Data}`);
558802
559205
  const e3 = this[O];
558803
559206
  this.removeListener("error", J), this.on("error", w), e3 && (e3._readyState = A.CLOSING, this.destroy());
558804
559207
  }
558805
- 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) => {
559208
+ 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) => {
558806
559209
  Object.defineProperty(A.prototype, e3, { enumerable: true });
558807
559210
  }), ["open", "error", "close", "message"].forEach((e3) => {
558808
559211
  Object.defineProperty(A.prototype, `on${e3}`, { enumerable: true, get() {
@@ -565119,11 +565522,13 @@ var require_handle_consent_code_message5 = __commonJS3((exports) => {
565119
565522
  var coreipc_1 = require_coreipc5();
565120
565523
 
565121
565524
  class HandleConsentCodeMessage extends coreipc_1.Message {
565122
- constructor(Accept, Domain, ConsentCode) {
565525
+ constructor(Accept, Domain, ConsentCode, SignInUrl) {
565123
565526
  super();
565124
565527
  this.Accept = Accept;
565125
565528
  this.Domain = Domain;
565126
565529
  this.ConsentCode = ConsentCode;
565530
+ this.SignInUrl = SignInUrl;
565531
+ this.RequestTimeout = coreipc_1.TimeSpan.fromSeconds(60);
565127
565532
  }
565128
565533
  }
565129
565534
  exports.HandleConsentCodeMessage = HandleConsentCodeMessage;
@@ -565896,8 +566301,8 @@ var require_robotjs_services23 = __commonJS3((exports) => {
565896
566301
  constructor(_consentCodeServices) {
565897
566302
  this._consentCodeServices = _consentCodeServices;
565898
566303
  }
565899
- HandleConsentCode(accept, domain22, consentCode) {
565900
- return this._consentCodeServices.HandleConsentCode(new server.HandleConsentCodeMessage(accept, domain22, consentCode), coreipc_1.CancellationToken.none);
566304
+ HandleConsentCode(accept, domain22, consentCode, signInUrl) {
566305
+ return this._consentCodeServices.HandleConsentCode(new server.HandleConsentCodeMessage(accept, domain22, consentCode, signInUrl), coreipc_1.CancellationToken.none);
565901
566306
  }
565902
566307
  IsDomainAllowed(domain22) {
565903
566308
  return this._consentCodeServices.IsDomainAllowed(new server.IsDomainAllowedMessage(domain22), coreipc_1.CancellationToken.none);
@@ -566037,7 +566442,10 @@ var require_robot_agent_proxy23 = __commonJS3((exports) => {
566037
566442
  this._robotJsServices = new robotjs_services_1.RobotJsServices(this._consentCodeServices);
566038
566443
  }
566039
566444
  CloseAsync() {
566040
- return __awaiter(this, undefined, undefined, function* () {});
566445
+ return __awaiter(this, undefined, undefined, function* () {
566446
+ yield coreipc_1.ipc.disposeChannel(coreipc_1.ipc.namedPipe(this._settings.pipeName));
566447
+ yield coreipc_1.ipc.disposeChannel(coreipc_1.ipc.namedPipe(this._robotJsSettings.pipeName));
566448
+ });
566041
566449
  }
566042
566450
  get RobotStatusChanged() {
566043
566451
  return this._robotStatusChanged;
@@ -607982,7 +608390,7 @@ var registerCommands2 = async (program4) => {
607982
608390
  // package.json
607983
608391
  var package_default3 = {
607984
608392
  name: "@uipath/maestro-tool",
607985
- version: "0.9.0",
608393
+ version: "0.9.1",
607986
608394
  description: "Create, debug, and run Maestro projects and jobs.",
607987
608395
  private: false,
607988
608396
  repository: {