@uipath/cli 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +198 -50
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -48706,7 +48706,7 @@ var package_default;
|
|
|
48706
48706
|
var init_package = __esm(() => {
|
|
48707
48707
|
package_default = {
|
|
48708
48708
|
name: "@uipath/cli",
|
|
48709
|
-
version: "0.9.
|
|
48709
|
+
version: "0.9.1",
|
|
48710
48710
|
description: "Cross platform CLI for UiPath",
|
|
48711
48711
|
repository: {
|
|
48712
48712
|
type: "git",
|
|
@@ -49353,6 +49353,26 @@ var init_parseError = __esm(() => {
|
|
|
49353
49353
|
};
|
|
49354
49354
|
});
|
|
49355
49355
|
|
|
49356
|
+
// src/utils/unknownCommandGuard.ts
|
|
49357
|
+
function findUnknownToken(root, positionals) {
|
|
49358
|
+
let current = root;
|
|
49359
|
+
for (const token of positionals) {
|
|
49360
|
+
const child = current.commands.find((cmd) => cmd.name() === token || cmd.aliases().includes(token));
|
|
49361
|
+
if (!child) {
|
|
49362
|
+
return token;
|
|
49363
|
+
}
|
|
49364
|
+
current = child;
|
|
49365
|
+
}
|
|
49366
|
+
return;
|
|
49367
|
+
}
|
|
49368
|
+
function findUnknownHelpCommand(root, positionals, allArgs) {
|
|
49369
|
+
const hasHelp = allArgs.includes("--help") || allArgs.includes("-h");
|
|
49370
|
+
if (!hasHelp) {
|
|
49371
|
+
return;
|
|
49372
|
+
}
|
|
49373
|
+
return findUnknownToken(root, positionals);
|
|
49374
|
+
}
|
|
49375
|
+
|
|
49356
49376
|
// cli.core.ts
|
|
49357
49377
|
function errorMessage(error) {
|
|
49358
49378
|
return error instanceof Error ? error.message : String(error);
|
|
@@ -49445,6 +49465,19 @@ function finalizeProgram(args) {
|
|
|
49445
49465
|
}
|
|
49446
49466
|
async function parseAndExit(program2, cleanedArgs, context) {
|
|
49447
49467
|
logger.debug(`Parsing args: ${cleanedArgs.slice(2).join(" ")}`);
|
|
49468
|
+
const userArgs = cleanedArgs.slice(2);
|
|
49469
|
+
const firstToken = userArgs.find((a) => !a.startsWith("-"));
|
|
49470
|
+
const unknownRoot = firstToken && findUnknownHelpCommand(program2, [firstToken], userArgs);
|
|
49471
|
+
if (unknownRoot) {
|
|
49472
|
+
OutputFormatter.error({
|
|
49473
|
+
Result: RESULTS.ValidationError,
|
|
49474
|
+
Message: `error: unknown command '${unknownRoot}'`,
|
|
49475
|
+
Instructions: "Check command arguments and options. Run 'uip --help' for available commands."
|
|
49476
|
+
});
|
|
49477
|
+
await telemetryFlushAndShutdown();
|
|
49478
|
+
context.exit(process.exitCode ? Number(process.exitCode) : 1);
|
|
49479
|
+
return;
|
|
49480
|
+
}
|
|
49448
49481
|
const [parseError] = await catchError(program2.parseAsync(cleanedArgs));
|
|
49449
49482
|
if (parseError) {
|
|
49450
49483
|
await handleParseError(parseError, cleanedArgs, context);
|
|
@@ -67858,7 +67891,7 @@ var require_coreipc = __commonJS((exports, module) => {
|
|
|
67858
67891
|
if (S(n3))
|
|
67859
67892
|
return r3;
|
|
67860
67893
|
for (var i3 = function(e6) {
|
|
67861
|
-
var t5 =
|
|
67894
|
+
var t5 = T(e6, o2);
|
|
67862
67895
|
if (!k(t5))
|
|
67863
67896
|
throw new TypeError;
|
|
67864
67897
|
var r4 = t5.call(e6);
|
|
@@ -67921,7 +67954,7 @@ var require_coreipc = __commonJS((exports, module) => {
|
|
|
67921
67954
|
case 5:
|
|
67922
67955
|
return e5;
|
|
67923
67956
|
}
|
|
67924
|
-
var r3 = t4 === 3 ? "string" : t4 === 5 ? "number" : "default", o3 =
|
|
67957
|
+
var r3 = t4 === 3 ? "string" : t4 === 5 ? "number" : "default", o3 = T(e5, n2);
|
|
67925
67958
|
if (o3 !== undefined) {
|
|
67926
67959
|
var i3 = o3.call(e5, r3);
|
|
67927
67960
|
if (j(i3))
|
|
@@ -67958,10 +67991,10 @@ var require_coreipc = __commonJS((exports, module) => {
|
|
|
67958
67991
|
function k(e5) {
|
|
67959
67992
|
return typeof e5 == "function";
|
|
67960
67993
|
}
|
|
67961
|
-
function
|
|
67994
|
+
function C(e5) {
|
|
67962
67995
|
return typeof e5 == "function";
|
|
67963
67996
|
}
|
|
67964
|
-
function
|
|
67997
|
+
function T(e5, t4) {
|
|
67965
67998
|
var r3 = e5[t4];
|
|
67966
67999
|
if (r3 != null) {
|
|
67967
68000
|
if (!k(r3))
|
|
@@ -67996,13 +68029,13 @@ var require_coreipc = __commonJS((exports, module) => {
|
|
|
67996
68029
|
if (S(r3)) {
|
|
67997
68030
|
if (!M(e5))
|
|
67998
68031
|
throw new TypeError;
|
|
67999
|
-
if (!
|
|
68032
|
+
if (!C(t4))
|
|
68000
68033
|
throw new TypeError;
|
|
68001
68034
|
return function(e6, t5) {
|
|
68002
68035
|
for (var r4 = e6.length - 1;r4 >= 0; --r4) {
|
|
68003
68036
|
var n4 = (0, e6[r4])(t5);
|
|
68004
68037
|
if (!S(n4) && !P(n4)) {
|
|
68005
|
-
if (!
|
|
68038
|
+
if (!C(n4))
|
|
68006
68039
|
throw new TypeError;
|
|
68007
68040
|
t5 = n4;
|
|
68008
68041
|
}
|
|
@@ -68212,13 +68245,13 @@ var require_coreipc = __commonJS((exports, module) => {
|
|
|
68212
68245
|
Object.defineProperty(t2, "EmptyError", { enumerable: true, get: function() {
|
|
68213
68246
|
return k.EmptyError;
|
|
68214
68247
|
} });
|
|
68215
|
-
var
|
|
68248
|
+
var C = r(7628);
|
|
68216
68249
|
Object.defineProperty(t2, "NotFoundError", { enumerable: true, get: function() {
|
|
68217
|
-
return
|
|
68250
|
+
return C.NotFoundError;
|
|
68218
68251
|
} });
|
|
68219
|
-
var
|
|
68252
|
+
var T = r(740);
|
|
68220
68253
|
Object.defineProperty(t2, "ObjectUnsubscribedError", { enumerable: true, get: function() {
|
|
68221
|
-
return
|
|
68254
|
+
return T.ObjectUnsubscribedError;
|
|
68222
68255
|
} });
|
|
68223
68256
|
var A = r(6968);
|
|
68224
68257
|
Object.defineProperty(t2, "SequenceError", { enumerable: true, get: function() {
|
|
@@ -68428,13 +68461,13 @@ var require_coreipc = __commonJS((exports, module) => {
|
|
|
68428
68461
|
Object.defineProperty(t2, "debounceTime", { enumerable: true, get: function() {
|
|
68429
68462
|
return ke.debounceTime;
|
|
68430
68463
|
} });
|
|
68431
|
-
var
|
|
68464
|
+
var Ce = r(6204);
|
|
68432
68465
|
Object.defineProperty(t2, "defaultIfEmpty", { enumerable: true, get: function() {
|
|
68433
|
-
return
|
|
68466
|
+
return Ce.defaultIfEmpty;
|
|
68434
68467
|
} });
|
|
68435
|
-
var
|
|
68468
|
+
var Te = r(7752);
|
|
68436
68469
|
Object.defineProperty(t2, "delay", { enumerable: true, get: function() {
|
|
68437
|
-
return
|
|
68470
|
+
return Te.delay;
|
|
68438
68471
|
} });
|
|
68439
68472
|
var Ae = r(7532);
|
|
68440
68473
|
Object.defineProperty(t2, "delayWhen", { enumerable: true, get: function() {
|
|
@@ -68644,13 +68677,13 @@ var require_coreipc = __commonJS((exports, module) => {
|
|
|
68644
68677
|
Object.defineProperty(t2, "share", { enumerable: true, get: function() {
|
|
68645
68678
|
return kt.share;
|
|
68646
68679
|
} });
|
|
68647
|
-
var
|
|
68680
|
+
var Ct = r(4980);
|
|
68648
68681
|
Object.defineProperty(t2, "shareReplay", { enumerable: true, get: function() {
|
|
68649
|
-
return
|
|
68682
|
+
return Ct.shareReplay;
|
|
68650
68683
|
} });
|
|
68651
|
-
var
|
|
68684
|
+
var Tt = r(1400);
|
|
68652
68685
|
Object.defineProperty(t2, "single", { enumerable: true, get: function() {
|
|
68653
|
-
return
|
|
68686
|
+
return Tt.single;
|
|
68654
68687
|
} });
|
|
68655
68688
|
var At = r(7516);
|
|
68656
68689
|
Object.defineProperty(t2, "skip", { enumerable: true, get: function() {
|
|
@@ -74350,12 +74383,24 @@ var require_coreipc = __commonJS((exports, module) => {
|
|
|
74350
74383
|
static create() {
|
|
74351
74384
|
return new r;
|
|
74352
74385
|
}
|
|
74386
|
+
get(e3) {
|
|
74387
|
+
return this._map.get(e3);
|
|
74388
|
+
}
|
|
74353
74389
|
getOrCreateValue(e3, t3) {
|
|
74354
74390
|
if (this._map.has(e3))
|
|
74355
74391
|
return this._map.get(e3);
|
|
74356
74392
|
let r2 = t3(e3);
|
|
74357
74393
|
return this._map.set(e3, r2), r2;
|
|
74358
74394
|
}
|
|
74395
|
+
delete(e3) {
|
|
74396
|
+
return this._map.delete(e3);
|
|
74397
|
+
}
|
|
74398
|
+
values() {
|
|
74399
|
+
return this._map.values();
|
|
74400
|
+
}
|
|
74401
|
+
clear() {
|
|
74402
|
+
this._map.clear();
|
|
74403
|
+
}
|
|
74359
74404
|
}
|
|
74360
74405
|
t2.Dictionary = r;
|
|
74361
74406
|
}, 4444: function(e2, t2, r) {
|
|
@@ -75728,25 +75773,61 @@ Object name: '${e3}'.`), t3;
|
|
|
75728
75773
|
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);
|
|
75729
75774
|
}, 1816: (e2, t2) => {
|
|
75730
75775
|
Object.defineProperty(t2, "__esModule", { value: true });
|
|
75731
|
-
}, 5284: (e2, t2, r)
|
|
75776
|
+
}, 5284: function(e2, t2, r) {
|
|
75777
|
+
var n = this && this.__awaiter || function(e3, t3, r2, n2) {
|
|
75778
|
+
return new (r2 || (r2 = Promise))(function(o2, i3) {
|
|
75779
|
+
function s2(e4) {
|
|
75780
|
+
try {
|
|
75781
|
+
c2(n2.next(e4));
|
|
75782
|
+
} catch (e5) {
|
|
75783
|
+
i3(e5);
|
|
75784
|
+
}
|
|
75785
|
+
}
|
|
75786
|
+
function a2(e4) {
|
|
75787
|
+
try {
|
|
75788
|
+
c2(n2.throw(e4));
|
|
75789
|
+
} catch (e5) {
|
|
75790
|
+
i3(e5);
|
|
75791
|
+
}
|
|
75792
|
+
}
|
|
75793
|
+
function c2(e4) {
|
|
75794
|
+
var t4;
|
|
75795
|
+
e4.done ? o2(e4.value) : (t4 = e4.value, t4 instanceof r2 ? t4 : new r2(function(e5) {
|
|
75796
|
+
e5(t4);
|
|
75797
|
+
})).then(s2, a2);
|
|
75798
|
+
}
|
|
75799
|
+
c2((n2 = n2.apply(e3, t3 || [])).next());
|
|
75800
|
+
});
|
|
75801
|
+
};
|
|
75732
75802
|
Object.defineProperty(t2, "__esModule", { value: true }), t2.IpcBaseImpl = t2.IpcCoreBase = undefined;
|
|
75733
|
-
const
|
|
75803
|
+
const o = r(5188), i2 = r(3212), s = r(4104), a = r(2760), c = r(9100);
|
|
75734
75804
|
t2.IpcCoreBase = class {
|
|
75735
75805
|
constructor() {
|
|
75736
75806
|
this._db = new Map;
|
|
75737
75807
|
}
|
|
75738
75808
|
};
|
|
75739
75809
|
|
|
75740
|
-
class
|
|
75810
|
+
class u {
|
|
75741
75811
|
constructor(e3, t3, r2) {
|
|
75742
|
-
this.addressBuilder = e3, this.proxy = new
|
|
75812
|
+
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;
|
|
75743
75813
|
}
|
|
75744
75814
|
getAddress(e3) {
|
|
75745
75815
|
const t3 = new this.addressBuilder;
|
|
75746
75816
|
return e3(t3), t3.assertAddress();
|
|
75747
75817
|
}
|
|
75818
|
+
disposeChannel(e3) {
|
|
75819
|
+
return n(this, undefined, undefined, function* () {
|
|
75820
|
+
const t3 = this.getAddress(e3);
|
|
75821
|
+
yield this.wire.disposeChannel(t3.key);
|
|
75822
|
+
});
|
|
75823
|
+
}
|
|
75824
|
+
disposeAllChannels() {
|
|
75825
|
+
return n(this, undefined, undefined, function* () {
|
|
75826
|
+
yield this.wire.disposeAllChannels();
|
|
75827
|
+
});
|
|
75828
|
+
}
|
|
75748
75829
|
}
|
|
75749
|
-
t2.IpcBaseImpl =
|
|
75830
|
+
t2.IpcBaseImpl = u, function(e3) {
|
|
75750
75831
|
e3.ProxySource = class {
|
|
75751
75832
|
constructor(e4) {
|
|
75752
75833
|
this._serviceProvider = e4;
|
|
@@ -75762,7 +75843,7 @@ Object name: '${e3}'.`), t3;
|
|
|
75762
75843
|
this._serviceProvider = e4, this._address = t4;
|
|
75763
75844
|
}
|
|
75764
75845
|
withService(e4) {
|
|
75765
|
-
const t4 = new
|
|
75846
|
+
const t4 = new s.ProxyId(e4, this._address);
|
|
75766
75847
|
return this._serviceProvider.proxySource.resolve(t4);
|
|
75767
75848
|
}
|
|
75768
75849
|
}
|
|
@@ -75784,27 +75865,27 @@ Object name: '${e3}'.`), t3;
|
|
|
75784
75865
|
this._ipc = e4, this._address = t4;
|
|
75785
75866
|
}
|
|
75786
75867
|
setConnectHelper(e4) {
|
|
75787
|
-
(0,
|
|
75868
|
+
(0, o.assertArgument)({ value: e4 }, "function"), this._ipc.configStore.setConnectHelper(this._address, e4);
|
|
75788
75869
|
}
|
|
75789
75870
|
forAnyService() {
|
|
75790
|
-
return new
|
|
75871
|
+
return new n2(this._ipc, this._address);
|
|
75791
75872
|
}
|
|
75792
75873
|
forService(e4) {
|
|
75793
|
-
return new
|
|
75874
|
+
return new n2(this._ipc, this._address, e4);
|
|
75794
75875
|
}
|
|
75795
75876
|
}
|
|
75796
75877
|
e3.ConfigurationWithAddress = r2;
|
|
75797
75878
|
|
|
75798
|
-
class
|
|
75879
|
+
class n2 {
|
|
75799
75880
|
constructor(e4, t4, r3) {
|
|
75800
75881
|
this._ipc = e4, this._address = t4, this._service = r3;
|
|
75801
75882
|
}
|
|
75802
75883
|
setRequestTimeout(e4) {
|
|
75803
|
-
(0,
|
|
75884
|
+
(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);
|
|
75804
75885
|
}
|
|
75805
75886
|
}
|
|
75806
|
-
e3.ConfigurationWithAddressService =
|
|
75807
|
-
}(
|
|
75887
|
+
e3.ConfigurationWithAddressService = n2;
|
|
75888
|
+
}(u = t2.IpcBaseImpl || (t2.IpcBaseImpl = {}));
|
|
75808
75889
|
}, 3552: (e2, t2) => {
|
|
75809
75890
|
Object.defineProperty(t2, "__esModule", { value: true }), t2.IpcError = undefined, t2.IpcError = class {
|
|
75810
75891
|
constructor(e3, t3, r, n) {
|
|
@@ -75877,7 +75958,13 @@ Object name: '${e3}'.`), t3;
|
|
|
75877
75958
|
}
|
|
75878
75959
|
disposeAsync() {
|
|
75879
75960
|
return n(this, undefined, undefined, function* () {
|
|
75880
|
-
this._ctsLoop.cancel()
|
|
75961
|
+
this._ctsLoop.cancel();
|
|
75962
|
+
try {
|
|
75963
|
+
yield this._loop;
|
|
75964
|
+
} catch (e3) {
|
|
75965
|
+
e3 instanceof o.OperationCanceledError || o.Trace.log(o.UnknownError.ensureError(e3));
|
|
75966
|
+
}
|
|
75967
|
+
this._stream.dispose();
|
|
75881
75968
|
});
|
|
75882
75969
|
}
|
|
75883
75970
|
static toMessageTypeString(e3) {
|
|
@@ -76062,8 +76149,8 @@ ${e3.Data}`);
|
|
|
76062
76149
|
static create(e3, t3, r2, n2, o2, i3) {
|
|
76063
76150
|
return new a(e3, t3, r2, n2, o2, i3);
|
|
76064
76151
|
}
|
|
76065
|
-
constructor(e3, t3, r2, n2,
|
|
76066
|
-
this._observer =
|
|
76152
|
+
constructor(e3, t3, r2, n2, s2, c) {
|
|
76153
|
+
this._observer = s2, this._isDisposed = false, this._outgoingCalls = new a.OutgoingCallTable, this._networkObserver = new class {
|
|
76067
76154
|
constructor(e4) {
|
|
76068
76155
|
this._owner = e4;
|
|
76069
76156
|
}
|
|
@@ -76076,8 +76163,8 @@ ${e3.Data}`);
|
|
|
76076
76163
|
complete() {
|
|
76077
76164
|
this._owner.dispatchNetworkComplete();
|
|
76078
76165
|
}
|
|
76079
|
-
}(this), this._$messageStream = a.createMessageStream(e3, t3, r2, n2, this._networkObserver, i2.MessageStream.Factory.orDefault(
|
|
76080
|
-
this.disposeAsync();
|
|
76166
|
+
}(this), this._$messageStream = a.createMessageStream(e3, t3, r2, n2, this._networkObserver, i2.MessageStream.Factory.orDefault(c)), this._$messageStream.catch((e4) => {
|
|
76167
|
+
o.Trace.traceErrorNoThrow(this.disposeAsync());
|
|
76081
76168
|
});
|
|
76082
76169
|
}
|
|
76083
76170
|
disposeAsync() {
|
|
@@ -76316,6 +76403,12 @@ ${e3.Data}`);
|
|
|
76316
76403
|
complete() {}
|
|
76317
76404
|
}(this);
|
|
76318
76405
|
}
|
|
76406
|
+
disposeAsync() {
|
|
76407
|
+
return n(this, undefined, undefined, function* () {
|
|
76408
|
+
const e3 = this._latestChannel;
|
|
76409
|
+
this._latestChannel = undefined, e3 && !e3.isDisposed && (yield e3.disposeAsync());
|
|
76410
|
+
});
|
|
76411
|
+
}
|
|
76319
76412
|
invokeMethod(e3, t3, r2) {
|
|
76320
76413
|
return n(this, undefined, undefined, function* () {
|
|
76321
76414
|
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);
|
|
@@ -76470,18 +76563,55 @@ ${e3.Data}`);
|
|
|
76470
76563
|
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];
|
|
76471
76564
|
}
|
|
76472
76565
|
};
|
|
76473
|
-
}, 4156: (e2, t2, r)
|
|
76566
|
+
}, 4156: function(e2, t2, r) {
|
|
76567
|
+
var n = this && this.__awaiter || function(e3, t3, r2, n2) {
|
|
76568
|
+
return new (r2 || (r2 = Promise))(function(o2, i3) {
|
|
76569
|
+
function s2(e4) {
|
|
76570
|
+
try {
|
|
76571
|
+
c(n2.next(e4));
|
|
76572
|
+
} catch (e5) {
|
|
76573
|
+
i3(e5);
|
|
76574
|
+
}
|
|
76575
|
+
}
|
|
76576
|
+
function a(e4) {
|
|
76577
|
+
try {
|
|
76578
|
+
c(n2.throw(e4));
|
|
76579
|
+
} catch (e5) {
|
|
76580
|
+
i3(e5);
|
|
76581
|
+
}
|
|
76582
|
+
}
|
|
76583
|
+
function c(e4) {
|
|
76584
|
+
var t4;
|
|
76585
|
+
e4.done ? o2(e4.value) : (t4 = e4.value, t4 instanceof r2 ? t4 : new r2(function(e5) {
|
|
76586
|
+
e5(t4);
|
|
76587
|
+
})).then(s2, a);
|
|
76588
|
+
}
|
|
76589
|
+
c((n2 = n2.apply(e3, t3 || [])).next());
|
|
76590
|
+
});
|
|
76591
|
+
};
|
|
76474
76592
|
Object.defineProperty(t2, "__esModule", { value: true }), t2.Wire = undefined;
|
|
76475
|
-
const
|
|
76593
|
+
const o = r(3212), i2 = r(4104), s = r(5188);
|
|
76476
76594
|
t2.Wire = class {
|
|
76477
76595
|
invokeMethod(e3, t3, r2) {
|
|
76478
76596
|
return this.getOrCreateChannelManager(e3.address).invokeMethod(e3.service, t3, r2);
|
|
76479
76597
|
}
|
|
76480
|
-
constructor(e3, t3 =
|
|
76481
|
-
this._sp = e3, this._rpcChannelFactory = t3, this._messageStreamFactory = r2, this._map = new
|
|
76598
|
+
constructor(e3, t3 = o.RpcChannel, r2 = new o.MessageStream.Factory) {
|
|
76599
|
+
this._sp = e3, this._rpcChannelFactory = t3, this._messageStreamFactory = r2, this._map = new s.Dictionary;
|
|
76482
76600
|
}
|
|
76483
76601
|
getOrCreateChannelManager(e3) {
|
|
76484
|
-
return this._map.getOrCreateValue(e3.key, () => new
|
|
76602
|
+
return this._map.getOrCreateValue(e3.key, () => new i2.ChannelManager(this._sp, e3, this._rpcChannelFactory, this._messageStreamFactory));
|
|
76603
|
+
}
|
|
76604
|
+
disposeChannel(e3) {
|
|
76605
|
+
return n(this, undefined, undefined, function* () {
|
|
76606
|
+
const t3 = this._map.get(e3);
|
|
76607
|
+
t3 && (this._map.delete(e3), yield t3.disposeAsync());
|
|
76608
|
+
});
|
|
76609
|
+
}
|
|
76610
|
+
disposeAllChannels() {
|
|
76611
|
+
return n(this, undefined, undefined, function* () {
|
|
76612
|
+
const e3 = [...this._map.values()];
|
|
76613
|
+
this._map.clear(), yield Promise.all(e3.map((e4) => e4.disposeAsync()));
|
|
76614
|
+
});
|
|
76485
76615
|
}
|
|
76486
76616
|
};
|
|
76487
76617
|
}, 4104: function(e2, t2, r) {
|
|
@@ -77444,7 +77574,7 @@ ${e3.Data}`);
|
|
|
77444
77574
|
}
|
|
77445
77575
|
};
|
|
77446
77576
|
}, 5144: (e2, t2, r) => {
|
|
77447
|
-
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],
|
|
77577
|
+
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~]+$/;
|
|
77448
77578
|
|
|
77449
77579
|
class A extends n {
|
|
77450
77580
|
constructor(e3, t3, r2) {
|
|
@@ -77567,7 +77697,7 @@ ${e3.Data}`);
|
|
|
77567
77697
|
let g2, O2;
|
|
77568
77698
|
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) {
|
|
77569
77699
|
for (const e4 of r2) {
|
|
77570
|
-
if (typeof e4 != "string" || !
|
|
77700
|
+
if (typeof e4 != "string" || !T.test(e4) || m2.has(e4))
|
|
77571
77701
|
throw new SyntaxError("An invalid or duplicated subprotocol was specified");
|
|
77572
77702
|
m2.add(e4);
|
|
77573
77703
|
}
|
|
@@ -77666,7 +77796,7 @@ ${e3.Data}`);
|
|
|
77666
77796
|
const r3 = x(t3).length;
|
|
77667
77797
|
e3._socket ? e3._sender._bufferedBytes += r3 : e3._bufferedAmount += r3;
|
|
77668
77798
|
}
|
|
77669
|
-
r2 && r2(new Error(`WebSocket is not open: readyState ${e3.readyState} (${
|
|
77799
|
+
r2 && r2(new Error(`WebSocket is not open: readyState ${e3.readyState} (${C[e3.readyState]})`));
|
|
77670
77800
|
}
|
|
77671
77801
|
function W(e3, t3) {
|
|
77672
77802
|
const r2 = this[O];
|
|
@@ -77712,7 +77842,7 @@ ${e3.Data}`);
|
|
|
77712
77842
|
const e3 = this[O];
|
|
77713
77843
|
this.removeListener("error", J), this.on("error", w), e3 && (e3._readyState = A.CLOSING, this.destroy());
|
|
77714
77844
|
}
|
|
77715
|
-
Object.defineProperty(A, "CONNECTING", { enumerable: true, value:
|
|
77845
|
+
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) => {
|
|
77716
77846
|
Object.defineProperty(A.prototype, e3, { enumerable: true });
|
|
77717
77847
|
}), ["open", "error", "close", "message"].forEach((e3) => {
|
|
77718
77848
|
Object.defineProperty(A.prototype, `on${e3}`, { enumerable: true, get() {
|
|
@@ -84389,11 +84519,13 @@ var require_handle_consent_code_message = __commonJS((exports) => {
|
|
|
84389
84519
|
var coreipc_1 = require_coreipc();
|
|
84390
84520
|
|
|
84391
84521
|
class HandleConsentCodeMessage extends coreipc_1.Message {
|
|
84392
|
-
constructor(Accept, Domain, ConsentCode) {
|
|
84522
|
+
constructor(Accept, Domain, ConsentCode, SignInUrl) {
|
|
84393
84523
|
super();
|
|
84394
84524
|
this.Accept = Accept;
|
|
84395
84525
|
this.Domain = Domain;
|
|
84396
84526
|
this.ConsentCode = ConsentCode;
|
|
84527
|
+
this.SignInUrl = SignInUrl;
|
|
84528
|
+
this.RequestTimeout = coreipc_1.TimeSpan.fromSeconds(60);
|
|
84397
84529
|
}
|
|
84398
84530
|
}
|
|
84399
84531
|
exports.HandleConsentCodeMessage = HandleConsentCodeMessage;
|
|
@@ -85194,8 +85326,8 @@ var require_robotjs_services2 = __commonJS((exports) => {
|
|
|
85194
85326
|
constructor(_consentCodeServices) {
|
|
85195
85327
|
this._consentCodeServices = _consentCodeServices;
|
|
85196
85328
|
}
|
|
85197
|
-
HandleConsentCode(accept, domain2, consentCode) {
|
|
85198
|
-
return this._consentCodeServices.HandleConsentCode(new server.HandleConsentCodeMessage(accept, domain2, consentCode), coreipc_1.CancellationToken.none);
|
|
85329
|
+
HandleConsentCode(accept, domain2, consentCode, signInUrl) {
|
|
85330
|
+
return this._consentCodeServices.HandleConsentCode(new server.HandleConsentCodeMessage(accept, domain2, consentCode, signInUrl), coreipc_1.CancellationToken.none);
|
|
85199
85331
|
}
|
|
85200
85332
|
IsDomainAllowed(domain2) {
|
|
85201
85333
|
return this._consentCodeServices.IsDomainAllowed(new server.IsDomainAllowedMessage(domain2), coreipc_1.CancellationToken.none);
|
|
@@ -85337,7 +85469,10 @@ var require_robot_agent_proxy2 = __commonJS((exports) => {
|
|
|
85337
85469
|
this._robotJsServices = new robotjs_services_1.RobotJsServices(this._consentCodeServices);
|
|
85338
85470
|
}
|
|
85339
85471
|
CloseAsync() {
|
|
85340
|
-
return __awaiter(this, undefined, undefined, function* () {
|
|
85472
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
85473
|
+
yield coreipc_1.ipc.disposeChannel(coreipc_1.ipc.namedPipe(this._settings.pipeName));
|
|
85474
|
+
yield coreipc_1.ipc.disposeChannel(coreipc_1.ipc.namedPipe(this._robotJsSettings.pipeName));
|
|
85475
|
+
});
|
|
85341
85476
|
}
|
|
85342
85477
|
get RobotStatusChanged() {
|
|
85343
85478
|
return this._robotStatusChanged;
|
|
@@ -104780,6 +104915,19 @@ function registerToolCommands(program2, discovered, context) {
|
|
|
104780
104915
|
});
|
|
104781
104916
|
return;
|
|
104782
104917
|
}
|
|
104918
|
+
const toolArgs = context.args.slice(2);
|
|
104919
|
+
const prefixIdx = toolArgs.indexOf(entry.commandPrefix);
|
|
104920
|
+
const positionals = prefixIdx >= 0 ? toolArgs.slice(prefixIdx + 1).filter((a) => !a.startsWith("-")) : [];
|
|
104921
|
+
const unknownSub = findUnknownHelpCommand(realCommand, positionals, toolArgs);
|
|
104922
|
+
if (unknownSub) {
|
|
104923
|
+
OutputFormatter.error({
|
|
104924
|
+
Result: RESULTS.ValidationError,
|
|
104925
|
+
Message: `error: unknown command '${unknownSub}'`,
|
|
104926
|
+
Instructions: `Check command arguments and options. Run 'uip ${entry.commandPrefix} --help' for available subcommands.`
|
|
104927
|
+
});
|
|
104928
|
+
context.exit(process.exitCode ? Number(process.exitCode) : 1);
|
|
104929
|
+
return;
|
|
104930
|
+
}
|
|
104783
104931
|
await program2.parseAsync(context.args);
|
|
104784
104932
|
});
|
|
104785
104933
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/cli",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"description": "Cross platform CLI for UiPath",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
44
44
|
"@types/bun": "^1.3.9",
|
|
45
45
|
"@types/node": "^25.5.0",
|
|
46
|
-
"@uipath/auth": "0.9.
|
|
47
|
-
"@uipath/common": "0.9.
|
|
48
|
-
"@uipath/filesystem": "0.9.
|
|
46
|
+
"@uipath/auth": "0.9.1",
|
|
47
|
+
"@uipath/common": "0.9.1",
|
|
48
|
+
"@uipath/filesystem": "0.9.1",
|
|
49
49
|
"applicationinsights": "^2.9.8",
|
|
50
50
|
"commander": "^14.0.3",
|
|
51
51
|
"esbuild": "^0.27.3",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"typescript": "^5",
|
|
54
54
|
"zod": "^4.3.6"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "e8da2857e37a9495c4907cd39f47c9d6ed1a5566"
|
|
57
57
|
}
|