@uipath/rules-tool 1.204.0-preview.249 → 1.204.0-preview.250
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/DmnFactory-VWZOSZHH-jkpbxz3n.js +42 -0
- package/dist/DmnModelTypes-ATR7FVKZ-jp35cecy.js +18 -0
- package/dist/KieDmnMarshaller-6TTUU5B4-47q50gk4.js +20 -0
- package/dist/THIRD-PARTY-NOTICES.md +1054 -0
- package/dist/business-rules-bnr581tz.js +26 -0
- package/dist/{constants-za5vbzp8.js → constants-9pa118cj.js} +17 -10
- package/dist/{embedded-file-reader-wmsg31a8.js → embedded-file-reader-rf2g1kfj.js} +4 -1
- package/dist/first-party-service-sd8yaf73.js +27 -0
- package/dist/hitPolicyResult-4WDHTX4A-gk103w84.js +33 -0
- package/dist/index-2hzp9b97.js +116 -0
- package/dist/index-34pj9f36.js +48 -0
- package/dist/{index-zdwhfpt1.js → index-4c4exdzw.js} +370 -406
- package/dist/index-dqa169gp.js +25 -0
- package/dist/{index-we6zjs66.js → index-fs1nd5ap.js} +40 -4
- package/dist/{index-nzr4mx5p.js → index-sby22td6.js} +22 -2
- package/dist/{index-7wc0g78k.js → index-t4mx1a5e.js} +5 -2
- package/dist/index.js +9 -8
- package/dist/{jmespath-ab6tdc42.js → jmespath-231m3hyn.js} +1 -1
- package/dist/{js-yaml-a2bk27p6.js → js-yaml-88tdqrtd.js} +3 -1
- package/dist/rule-catalog-5gzpe93c.js +46 -0
- package/dist/rules-command-error-20gp2dv9.js +14 -0
- package/dist/{rules-debug-service-h1ahd6p3.js → rules-debug-service-cmgmbhyh.js} +36 -35
- package/dist/{rules-init-service-y678kjje.js → rules-init-service-b74thek5.js} +16 -12
- package/dist/{rules-refresh-service-btn64j8j.js → rules-refresh-service-jgk2kq9d.js} +14 -13
- package/dist/{rules-validate-service-sppr4x13.js → rules-validate-service-mr2fk58k.js} +13 -10
- package/dist/{tool-97x3zjcm.js → tool-19b4ect0.js} +158 -113
- package/dist/{tool-epsr41wx.js → tool-1de529jm.js} +3 -12
- package/dist/{tool-7xmarr97.js → tool-2cky8jwp.js} +2578 -1777
- package/dist/{tool-0bthsb3x.js → tool-4dfpdepw.js} +15 -15
- package/dist/tool-53w8skv5.js +262 -0
- package/dist/tool-7haj67tr.js +19 -0
- package/dist/{tool-e1mmqsjr.js → tool-8h4er38s.js} +411 -396
- package/dist/{tool-2trg1fpx.js → tool-8qy8pkp4.js} +8 -8
- package/dist/tool-av4mmsef.js +73 -0
- package/dist/{tool-8j9f6ns5.js → tool-eymjx05p.js} +11 -11
- package/dist/{tool-mm1x18d6.js → tool-gdtpsdn7.js} +28 -223
- package/dist/{tool-6sqt4zrx.js → tool-jxvk6306.js} +32 -29
- package/dist/tool-m41px07w.js +49 -0
- package/dist/{tool-k2s349kn.js → tool-mkn83w88.js} +17 -14
- package/dist/tool-pm3ewdxc.js +1115 -0
- package/dist/{tool-6rp0gx98.js → tool-tkcx6png.js} +107 -127
- package/dist/{tool-1dycs173.js → tool-wmh645tm.js} +202 -194
- package/dist/{tool-24mr6g8c.js → tool-x0z7hxqr.js} +9 -649
- package/dist/tool.js +8 -7
- package/package.json +2 -15
- package/dist/DmnFactory-SG3RP3T3-cr8e7mxz.js +0 -8
- package/dist/DmnFactory-VWZOSZHH-azx0zqcn.js +0 -8
- package/dist/DmnModelTypes-ATR7FVKZ-vkv7n0jn.js +0 -8
- package/dist/KieDmnMarshaller-6TTUU5B4-rsxhvw7a.js +0 -8
- package/dist/business-rules-d51977r1.js +0 -25
- package/dist/business-rules-dekge24t.js +0 -23
- package/dist/business-rules-ew76mbwg.js +0 -25
- package/dist/business-rules-jmwx05k2.js +0 -25
- package/dist/business-rules-zpzqxyce.js +0 -26
- package/dist/constants-4r8pfr16.js +0 -22
- package/dist/embedded-file-reader-0228j82a.js +0 -111
- package/dist/first-party-service-1qa6cp4d.js +0 -8
- package/dist/first-party-service-28dkctkz.js +0 -8
- package/dist/first-party-service-4fsz3cnj.js +0 -8
- package/dist/first-party-service-ahcc6xc6.js +0 -8
- package/dist/first-party-service-y1ccmsvp.js +0 -8
- package/dist/first-party-service-zpr1q3nd.js +0 -8
- package/dist/hitPolicyResult-4WDHTX4A-dbtkgpqp.js +0 -12
- package/dist/index-2zxy6zgp.js +0 -23
- package/dist/index-3nx77wfh.js +0 -23
- package/dist/index-43zg1wqe.js +0 -19621
- package/dist/index-47jera73.js +0 -23
- package/dist/index-70jn7cz1.js +0 -19631
- package/dist/index-8kb5kc5y.js +0 -24
- package/dist/index-97yad7ms.js +0 -8
- package/dist/index-dfn83hxf.js +0 -14
- package/dist/index-e301h23h.js +0 -24
- package/dist/index-frd259yv.js +0 -24
- package/dist/index-gc7cw2jh.js +0 -23
- package/dist/index-gya2v502.js +0 -8
- package/dist/index-hb3gk1wf.js +0 -24
- package/dist/index-nsnfdqd5.js +0 -24
- package/dist/index-vffktc0w.js +0 -166
- package/dist/index-xymrydfw.js +0 -3095
- package/dist/index-z2qk2qn6.js +0 -24
- package/dist/index-zecwgvg7.js +0 -23
- package/dist/rule-catalog-a5w86qns.js +0 -43
- package/dist/rule-catalog-etpf962f.js +0 -69
- package/dist/rule-catalog-q5cr17hf.js +0 -58
- package/dist/rule-catalog-vc98yg4n.js +0 -43
- package/dist/rule-catalog-z3h66kh5.js +0 -56
- package/dist/rules-command-error-10qmb5w7.js +0 -13
- package/dist/rules-command-error-5bdv4bcx.js +0 -13
- package/dist/rules-command-error-cmssf0w4.js +0 -13
- package/dist/rules-command-error-fsm3b1mv.js +0 -13
- package/dist/rules-debug-service-5rcdh3pj.js +0 -192
- package/dist/rules-debug-service-8q7mkd0r.js +0 -199
- package/dist/rules-debug-service-b9j29ejz.js +0 -192
- package/dist/rules-debug-service-v3jr3r1n.js +0 -192
- package/dist/rules-init-service-3c2yfa7p.js +0 -687
- package/dist/rules-init-service-3wgd9cqp.js +0 -100
- package/dist/rules-init-service-8fqytxq0.js +0 -685
- package/dist/rules-init-service-pspt7sje.js +0 -100
- package/dist/rules-init-service-sbtzw93j.js +0 -102
- package/dist/rules-init-service-x7paqa63.js +0 -687
- package/dist/rules-init-service-y7qzmxx0.js +0 -102
- package/dist/rules-refresh-service-4xxj6ex6.js +0 -65
- package/dist/rules-refresh-service-ba5jk1y9.js +0 -65
- package/dist/rules-refresh-service-qkmphj53.js +0 -65
- package/dist/rules-validate-service-dmgnfne7.js +0 -60
- package/dist/rules-validate-service-hk2d006t.js +0 -60
- package/dist/rules-validate-service-xp05n2d9.js +0 -60
- package/dist/tool-1pkqxwwd.js +0 -17472
- package/dist/tool-39fmkx2d.js +0 -611
- package/dist/tool-3e2q1x2y.js +0 -6578
- package/dist/tool-3j0747gg.js +0 -17077
- package/dist/tool-4z7zcq4z.js +0 -6058
- package/dist/tool-56smnjrh.js +0 -73
- package/dist/tool-5qygptrc.js +0 -6171
- package/dist/tool-5xx6x8pe.js +0 -6596
- package/dist/tool-7fkrd618.js +0 -1556
- package/dist/tool-89xzeteg.js +0 -361
- package/dist/tool-911s9czz.js +0 -570
- package/dist/tool-9bz2x04j.js +0 -40
- package/dist/tool-akh7nnqs.js +0 -704
- package/dist/tool-axfzew45.js +0 -1555
- package/dist/tool-b71jq9pt.js +0 -389
- package/dist/tool-bfj846v8.js +0 -141
- package/dist/tool-bvmc017m.js +0 -96
- package/dist/tool-bykz5ryf.js +0 -454
- package/dist/tool-c76qb8ap.js +0 -17052
- package/dist/tool-ca15515v.js +0 -570
- package/dist/tool-f9qs255w.js +0 -70
- package/dist/tool-ga79rety.js +0 -389
- package/dist/tool-gb547mcn.js +0 -141
- package/dist/tool-gta9rr4h.js +0 -68
- package/dist/tool-h2dfnxdq.js +0 -6486
- package/dist/tool-hg6vr5y9.js +0 -3769
- package/dist/tool-hgvnm4vh.js +0 -1843
- package/dist/tool-hjbf9aay.js +0 -571
- package/dist/tool-k5jm64n3.js +0 -5650
- package/dist/tool-ketztpgf.js +0 -73
- package/dist/tool-n1d88ryb.js +0 -6396
- package/dist/tool-nmqpwh9m.js +0 -6166
- package/dist/tool-pb80pswx.js +0 -73
- package/dist/tool-pcsgwpfw.js +0 -40
- package/dist/tool-q3c1bjyb.js +0 -454
- package/dist/tool-rwp1skmf.js +0 -40
- package/dist/tool-s3fbt22r.js +0 -454
- package/dist/tool-tmbst1r8.js +0 -68
- package/dist/tool-v6w109p0.js +0 -455
- package/dist/tool-w2js05qv.js +0 -389
- package/dist/tool-x67kek1m.js +0 -1838
- package/dist/tool-x89947ah.js +0 -17052
- package/dist/tool-xhksjdka.js +0 -4005
- package/dist/tool-yv3t4gg5.js +0 -108
- package/dist/tool-zbyb1ttx.js +0 -5650
- /package/dist/{tool-fbqnqf9k.js → tool-jd313s2x.js} +0 -0
- /package/dist/{tool-vyx8fpft.js → tool-qgqscsjc.js} +0 -0
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
-
__toESM,
|
|
3
2
|
__commonJS,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
} from "./tool-
|
|
3
|
+
__require,
|
|
4
|
+
__toESM
|
|
5
|
+
} from "./tool-1de529jm.js";
|
|
7
6
|
|
|
8
7
|
// ../../node_modules/commander/lib/error.js
|
|
9
8
|
var require_error = __commonJS(function(exports) {
|
|
@@ -125,7 +124,7 @@ var require_help = __commonJS(function(exports) {
|
|
|
125
124
|
this.helpWidth = this.helpWidth ?? contextOptions.helpWidth ?? 80;
|
|
126
125
|
}
|
|
127
126
|
visibleCommands(cmd) {
|
|
128
|
-
const visibleCommands = cmd.commands.filter((
|
|
127
|
+
const visibleCommands = cmd.commands.filter((cmd2) => !cmd2._hidden);
|
|
129
128
|
const helpCommand = cmd._getHelpCommand();
|
|
130
129
|
if (helpCommand && !helpCommand._hidden) {
|
|
131
130
|
visibleCommands.push(helpCommand);
|
|
@@ -605,8 +604,8 @@ var require_option = __commonJS(function(exports) {
|
|
|
605
604
|
}
|
|
606
605
|
}
|
|
607
606
|
function camelcase(str) {
|
|
608
|
-
return str.split("-").reduce((
|
|
609
|
-
return
|
|
607
|
+
return str.split("-").reduce((str2, word) => {
|
|
608
|
+
return str2 + word[0].toUpperCase() + word.slice(1);
|
|
610
609
|
});
|
|
611
610
|
}
|
|
612
611
|
function splitOptionFlags(flags) {
|
|
@@ -727,8 +726,8 @@ var require_suggestSimilar = __commonJS(function(exports) {
|
|
|
727
726
|
var require_command = __commonJS(function(exports) {
|
|
728
727
|
var EventEmitter = __require("node:events").EventEmitter;
|
|
729
728
|
var childProcess = __require("node:child_process");
|
|
730
|
-
var
|
|
731
|
-
var
|
|
729
|
+
var path2 = __require("node:path");
|
|
730
|
+
var fs2 = __require("node:fs");
|
|
732
731
|
var process2 = __require("node:process");
|
|
733
732
|
var { Argument, humanReadableArgName } = require_argument();
|
|
734
733
|
var { CommanderError } = require_error();
|
|
@@ -1177,44 +1176,44 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1177
1176
|
});
|
|
1178
1177
|
return source;
|
|
1179
1178
|
}
|
|
1180
|
-
_prepareUserArgs(
|
|
1181
|
-
if (
|
|
1179
|
+
_prepareUserArgs(argv, parseOptions) {
|
|
1180
|
+
if (argv !== undefined && !Array.isArray(argv)) {
|
|
1182
1181
|
throw new Error("first parameter to parse must be array or undefined");
|
|
1183
1182
|
}
|
|
1184
1183
|
parseOptions = parseOptions || {};
|
|
1185
|
-
if (
|
|
1184
|
+
if (argv === undefined && parseOptions.from === undefined) {
|
|
1186
1185
|
if (process2.versions?.electron) {
|
|
1187
1186
|
parseOptions.from = "electron";
|
|
1188
1187
|
}
|
|
1189
|
-
const
|
|
1190
|
-
if (
|
|
1188
|
+
const execArgv = process2.execArgv ?? [];
|
|
1189
|
+
if (execArgv.includes("-e") || execArgv.includes("--eval") || execArgv.includes("-p") || execArgv.includes("--print")) {
|
|
1191
1190
|
parseOptions.from = "eval";
|
|
1192
1191
|
}
|
|
1193
1192
|
}
|
|
1194
|
-
if (
|
|
1195
|
-
|
|
1193
|
+
if (argv === undefined) {
|
|
1194
|
+
argv = process2.argv;
|
|
1196
1195
|
}
|
|
1197
|
-
this.rawArgs =
|
|
1196
|
+
this.rawArgs = argv.slice();
|
|
1198
1197
|
let userArgs;
|
|
1199
1198
|
switch (parseOptions.from) {
|
|
1200
1199
|
case undefined:
|
|
1201
1200
|
case "node":
|
|
1202
|
-
this._scriptPath =
|
|
1203
|
-
userArgs =
|
|
1201
|
+
this._scriptPath = argv[1];
|
|
1202
|
+
userArgs = argv.slice(2);
|
|
1204
1203
|
break;
|
|
1205
1204
|
case "electron":
|
|
1206
1205
|
if (process2.defaultApp) {
|
|
1207
|
-
this._scriptPath =
|
|
1208
|
-
userArgs =
|
|
1206
|
+
this._scriptPath = argv[1];
|
|
1207
|
+
userArgs = argv.slice(2);
|
|
1209
1208
|
} else {
|
|
1210
|
-
userArgs =
|
|
1209
|
+
userArgs = argv.slice(1);
|
|
1211
1210
|
}
|
|
1212
1211
|
break;
|
|
1213
1212
|
case "user":
|
|
1214
|
-
userArgs =
|
|
1213
|
+
userArgs = argv.slice(0);
|
|
1215
1214
|
break;
|
|
1216
1215
|
case "eval":
|
|
1217
|
-
userArgs =
|
|
1216
|
+
userArgs = argv.slice(1);
|
|
1218
1217
|
break;
|
|
1219
1218
|
default:
|
|
1220
1219
|
throw new Error(`unexpected parse option { from: '${parseOptions.from}' }`);
|
|
@@ -1263,7 +1262,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1263
1262
|
this.processedArgs = [];
|
|
1264
1263
|
}
|
|
1265
1264
|
_checkForMissingExecutable(executableFile, executableDir, subcommandName) {
|
|
1266
|
-
if (
|
|
1265
|
+
if (fs2.existsSync(executableFile))
|
|
1267
1266
|
return;
|
|
1268
1267
|
const executableDirMessage = executableDir ? `searched for local subcommand relative to directory '${executableDir}'` : "no directory for search for local subcommand, use .executableDir() to supply a custom directory";
|
|
1269
1268
|
const executableMissing = `'${executableFile}' does not exist
|
|
@@ -1277,12 +1276,12 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1277
1276
|
let launchWithNode = false;
|
|
1278
1277
|
const sourceExt = [".js", ".ts", ".tsx", ".mjs", ".cjs"];
|
|
1279
1278
|
function findFile(baseDir, baseName) {
|
|
1280
|
-
const localBin =
|
|
1281
|
-
if (
|
|
1279
|
+
const localBin = path2.resolve(baseDir, baseName);
|
|
1280
|
+
if (fs2.existsSync(localBin))
|
|
1282
1281
|
return localBin;
|
|
1283
|
-
if (sourceExt.includes(
|
|
1282
|
+
if (sourceExt.includes(path2.extname(baseName)))
|
|
1284
1283
|
return;
|
|
1285
|
-
const foundExt = sourceExt.find((ext) =>
|
|
1284
|
+
const foundExt = sourceExt.find((ext) => fs2.existsSync(`${localBin}${ext}`));
|
|
1286
1285
|
if (foundExt)
|
|
1287
1286
|
return `${localBin}${foundExt}`;
|
|
1288
1287
|
return;
|
|
@@ -1294,23 +1293,23 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1294
1293
|
if (this._scriptPath) {
|
|
1295
1294
|
let resolvedScriptPath;
|
|
1296
1295
|
try {
|
|
1297
|
-
resolvedScriptPath =
|
|
1296
|
+
resolvedScriptPath = fs2.realpathSync(this._scriptPath);
|
|
1298
1297
|
} catch {
|
|
1299
1298
|
resolvedScriptPath = this._scriptPath;
|
|
1300
1299
|
}
|
|
1301
|
-
executableDir =
|
|
1300
|
+
executableDir = path2.resolve(path2.dirname(resolvedScriptPath), executableDir);
|
|
1302
1301
|
}
|
|
1303
1302
|
if (executableDir) {
|
|
1304
1303
|
let localFile = findFile(executableDir, executableFile);
|
|
1305
1304
|
if (!localFile && !subcommand._executableFile && this._scriptPath) {
|
|
1306
|
-
const legacyName =
|
|
1305
|
+
const legacyName = path2.basename(this._scriptPath, path2.extname(this._scriptPath));
|
|
1307
1306
|
if (legacyName !== this._name) {
|
|
1308
1307
|
localFile = findFile(executableDir, `${legacyName}-${subcommand._name}`);
|
|
1309
1308
|
}
|
|
1310
1309
|
}
|
|
1311
1310
|
executableFile = localFile || executableFile;
|
|
1312
1311
|
}
|
|
1313
|
-
launchWithNode = sourceExt.includes(
|
|
1312
|
+
launchWithNode = sourceExt.includes(path2.extname(executableFile));
|
|
1314
1313
|
let proc;
|
|
1315
1314
|
if (process2.platform !== "win32") {
|
|
1316
1315
|
if (launchWithNode) {
|
|
@@ -1737,18 +1736,18 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1737
1736
|
this.error(message, { code: "commander.missingMandatoryOptionValue" });
|
|
1738
1737
|
}
|
|
1739
1738
|
_conflictingOption(option, conflictingOption) {
|
|
1740
|
-
const findBestOptionFromValue = (
|
|
1741
|
-
const optionKey =
|
|
1739
|
+
const findBestOptionFromValue = (option2) => {
|
|
1740
|
+
const optionKey = option2.attributeName();
|
|
1742
1741
|
const optionValue = this.getOptionValue(optionKey);
|
|
1743
1742
|
const negativeOption = this.options.find((target) => target.negate && optionKey === target.attributeName());
|
|
1744
1743
|
const positiveOption = this.options.find((target) => !target.negate && optionKey === target.attributeName());
|
|
1745
1744
|
if (negativeOption && (negativeOption.presetArg === undefined && optionValue === false || negativeOption.presetArg !== undefined && optionValue === negativeOption.presetArg)) {
|
|
1746
1745
|
return negativeOption;
|
|
1747
1746
|
}
|
|
1748
|
-
return positiveOption ||
|
|
1747
|
+
return positiveOption || option2;
|
|
1749
1748
|
};
|
|
1750
|
-
const getErrorMessage = (
|
|
1751
|
-
const bestOption = findBestOptionFromValue(
|
|
1749
|
+
const getErrorMessage = (option2) => {
|
|
1750
|
+
const bestOption = findBestOptionFromValue(option2);
|
|
1752
1751
|
const optionKey = bestOption.attributeName();
|
|
1753
1752
|
const source = this.getOptionValueSource(optionKey);
|
|
1754
1753
|
if (source === "env") {
|
|
@@ -1899,13 +1898,13 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1899
1898
|
cmd.helpGroup(this._defaultCommandGroup);
|
|
1900
1899
|
}
|
|
1901
1900
|
nameFromFilename(filename) {
|
|
1902
|
-
this._name =
|
|
1901
|
+
this._name = path2.basename(filename, path2.extname(filename));
|
|
1903
1902
|
return this;
|
|
1904
1903
|
}
|
|
1905
|
-
executableDir(
|
|
1906
|
-
if (
|
|
1904
|
+
executableDir(path3) {
|
|
1905
|
+
if (path3 === undefined)
|
|
1907
1906
|
return this._executableDir;
|
|
1908
|
-
this._executableDir =
|
|
1907
|
+
this._executableDir = path3;
|
|
1909
1908
|
return this;
|
|
1910
1909
|
}
|
|
1911
1910
|
helpInformation(contextOptions) {
|
|
@@ -2002,11 +2001,11 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
2002
2001
|
}
|
|
2003
2002
|
help(contextOptions) {
|
|
2004
2003
|
this.outputHelp(contextOptions);
|
|
2005
|
-
let
|
|
2006
|
-
if (
|
|
2007
|
-
|
|
2004
|
+
let exitCode = Number(process2.exitCode ?? 0);
|
|
2005
|
+
if (exitCode === 0 && contextOptions && typeof contextOptions !== "function" && contextOptions.error) {
|
|
2006
|
+
exitCode = 1;
|
|
2008
2007
|
}
|
|
2009
|
-
this._exit(
|
|
2008
|
+
this._exit(exitCode, "commander.help", "(outputHelp)");
|
|
2010
2009
|
}
|
|
2011
2010
|
addHelpText(position, text) {
|
|
2012
2011
|
const allowedValues = ["beforeAll", "before", "after", "afterAll"];
|
|
@@ -2078,6 +2077,26 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
2078
2077
|
exports.useColor = useColor;
|
|
2079
2078
|
});
|
|
2080
2079
|
|
|
2080
|
+
// ../../node_modules/commander/index.js
|
|
2081
|
+
var require_commander = __commonJS(function(exports) {
|
|
2082
|
+
var { Argument } = require_argument();
|
|
2083
|
+
var { Command } = require_command();
|
|
2084
|
+
var { CommanderError, InvalidArgumentError } = require_error();
|
|
2085
|
+
var { Help } = require_help();
|
|
2086
|
+
var { Option } = require_option();
|
|
2087
|
+
exports.program = new Command;
|
|
2088
|
+
exports.createCommand = (name) => new Command(name);
|
|
2089
|
+
exports.createOption = (flags, description) => new Option(flags, description);
|
|
2090
|
+
exports.createArgument = (name, description) => new Argument(name, description);
|
|
2091
|
+
exports.Command = Command;
|
|
2092
|
+
exports.Option = Option;
|
|
2093
|
+
exports.Argument = Argument;
|
|
2094
|
+
exports.Help = Help;
|
|
2095
|
+
exports.CommanderError = CommanderError;
|
|
2096
|
+
exports.InvalidArgumentError = InvalidArgumentError;
|
|
2097
|
+
exports.InvalidOptionArgumentError = InvalidArgumentError;
|
|
2098
|
+
});
|
|
2099
|
+
|
|
2081
2100
|
// ../filesystem/src/node.ts
|
|
2082
2101
|
import { randomUUID } from "node:crypto";
|
|
2083
2102
|
import { existsSync } from "node:fs";
|
|
@@ -2108,7 +2127,7 @@ class NodeFileSystem {
|
|
|
2108
2127
|
};
|
|
2109
2128
|
utils = {
|
|
2110
2129
|
open: async (url) => {
|
|
2111
|
-
const { default: open } = await import("./index-
|
|
2130
|
+
const { default: open } = await import("./index-sby22td6.js");
|
|
2112
2131
|
await open(url);
|
|
2113
2132
|
}
|
|
2114
2133
|
};
|
|
@@ -2676,8 +2695,8 @@ function redactValueDetectors(value, maxLength = MAX_VALUE_LENGTH) {
|
|
|
2676
2695
|
return `${redactUrl(core)}${trailing}`;
|
|
2677
2696
|
});
|
|
2678
2697
|
out = out.replace(USER_HOME_PATTERN, (_match, sep1, folder, sep2) => `${sep1}${folder}${sep2}<user>`);
|
|
2679
|
-
out = out.replace(UNC_PATH_PATTERN, (_match, before,
|
|
2680
|
-
const [core, trailing] = peelTrailingPunctuation(
|
|
2698
|
+
out = out.replace(UNC_PATH_PATTERN, (_match, before, path2) => {
|
|
2699
|
+
const [core, trailing] = peelTrailingPunctuation(path2);
|
|
2681
2700
|
return `${before}unc#${pseudonymize(core)}${trailing}`;
|
|
2682
2701
|
});
|
|
2683
2702
|
out = out.replace(EMAIL_PATTERN, (match) => `email#${pseudonymize(match)}`);
|
|
@@ -2926,8 +2945,8 @@ var TLS_ERROR_CODES = new Set([
|
|
|
2926
2945
|
var TLS_INSTRUCTIONS = "The server's TLS certificate could not be verified. Most often a " + "corporate proxy/firewall re-signs HTTPS with a root CA that Node does " + "not trust — set NODE_EXTRA_CA_CERTS to that CA's PEM file (and HTTPS_PROXY " + "if you connect through a proxy). If the certificate is instead expired or " + "its hostname does not match, fix the endpoint URL or the system clock. " + "Then retry.";
|
|
2927
2946
|
var NETWORK_INSTRUCTIONS = "Could not reach the UiPath service. Check your network connection and " + "VPN, confirm any HTTP_PROXY/HTTPS_PROXY/NO_PROXY settings are correct, " + "then retry.";
|
|
2928
2947
|
var LOCAL_PERMISSION_MESSAGE_PATTERN = new RegExp(`\\b(${[...LOCAL_PERMISSION_ERROR_CODES].join("|")})\\b`);
|
|
2929
|
-
function localPermissionInstructions(code,
|
|
2930
|
-
const target =
|
|
2948
|
+
function localPermissionInstructions(code, path2) {
|
|
2949
|
+
const target = path2 !== undefined ? `'${path2}'` : "a local file or resource";
|
|
2931
2950
|
if (code === "EROFS") {
|
|
2932
2951
|
return `The filesystem containing ${target} is read-only (EROFS), so the ` + "CLI could not write to it. This is a local environment problem, " + "not a UiPath service error — retrying will not help. Use a " + "writable location, or give this environment write access to the " + "path.";
|
|
2933
2952
|
}
|
|
@@ -2964,12 +2983,12 @@ function describePermissionError(error) {
|
|
|
2964
2983
|
const code = matchLocalPermissionCode(cur.code, message);
|
|
2965
2984
|
if (!code)
|
|
2966
2985
|
continue;
|
|
2967
|
-
const
|
|
2986
|
+
const path2 = localPermissionPath(cur.path, message);
|
|
2968
2987
|
return {
|
|
2969
2988
|
code,
|
|
2970
2989
|
message: message ?? code,
|
|
2971
|
-
...
|
|
2972
|
-
instructions: localPermissionInstructions(code,
|
|
2990
|
+
...path2 !== undefined ? { path: path2 } : {},
|
|
2991
|
+
instructions: localPermissionInstructions(code, path2)
|
|
2973
2992
|
};
|
|
2974
2993
|
}
|
|
2975
2994
|
return;
|
|
@@ -2981,9 +3000,9 @@ function matchLocalPermissionCode(code, message) {
|
|
|
2981
3000
|
const match = message ? LOCAL_PERMISSION_MESSAGE_PATTERN.exec(message) : null;
|
|
2982
3001
|
return match ? match[1] : undefined;
|
|
2983
3002
|
}
|
|
2984
|
-
function localPermissionPath(
|
|
2985
|
-
if (typeof
|
|
2986
|
-
return
|
|
3003
|
+
function localPermissionPath(path2, message) {
|
|
3004
|
+
if (typeof path2 === "string")
|
|
3005
|
+
return path2;
|
|
2987
3006
|
return message ? /'([^']+)'/.exec(message)?.[1] : undefined;
|
|
2988
3007
|
}
|
|
2989
3008
|
function isHtmlDocument(body) {
|
|
@@ -3245,6 +3264,10 @@ async function extractErrorDetails(error, options) {
|
|
|
3245
3264
|
...parsedErrors ? { parsedErrors } : {}
|
|
3246
3265
|
};
|
|
3247
3266
|
}
|
|
3267
|
+
async function extractErrorMessage(error, options) {
|
|
3268
|
+
const { message } = await extractErrorDetails(error, options);
|
|
3269
|
+
return message;
|
|
3270
|
+
}
|
|
3248
3271
|
function extractErrorMessageSync(error) {
|
|
3249
3272
|
if (error instanceof Error) {
|
|
3250
3273
|
return error.message;
|
|
@@ -3293,8 +3316,8 @@ function getOutputSink() {
|
|
|
3293
3316
|
|
|
3294
3317
|
// ../common/src/logger.ts
|
|
3295
3318
|
var logFilePathSlot = singleton("logFilePath");
|
|
3296
|
-
function setGlobalLogFilePath(
|
|
3297
|
-
logFilePathSlot.set(
|
|
3319
|
+
function setGlobalLogFilePath(path2) {
|
|
3320
|
+
logFilePathSlot.set(path2);
|
|
3298
3321
|
}
|
|
3299
3322
|
function getGlobalLogFilePath() {
|
|
3300
3323
|
return logFilePathSlot.get("");
|
|
@@ -3362,14 +3385,14 @@ class SimpleLogger {
|
|
|
3362
3385
|
return this.fileLoggingEnabled || !!getGlobalLogFilePath();
|
|
3363
3386
|
}
|
|
3364
3387
|
writeToFile(formatted) {
|
|
3365
|
-
const
|
|
3366
|
-
if (!
|
|
3388
|
+
const path2 = this.logFilePath || getGlobalLogFilePath();
|
|
3389
|
+
if (!path2)
|
|
3367
3390
|
return;
|
|
3368
3391
|
const timestamp = new Date().toISOString();
|
|
3369
3392
|
this.pendingWrites = Promise.all([
|
|
3370
3393
|
this.pendingWrites,
|
|
3371
3394
|
this.pendingInit
|
|
3372
|
-
]).then(() => getFileSystem().appendFile(
|
|
3395
|
+
]).then(() => getFileSystem().appendFile(path2, `${timestamp} ${formatted}`).catch(() => {}));
|
|
3373
3396
|
}
|
|
3374
3397
|
write(formatted) {
|
|
3375
3398
|
if (this.isFileLoggingActive()) {
|
|
@@ -3419,17 +3442,17 @@ class SimpleLogger {
|
|
|
3419
3442
|
setGlobalLogFilePath("");
|
|
3420
3443
|
}
|
|
3421
3444
|
}
|
|
3422
|
-
setLogFile(
|
|
3423
|
-
this.logFilePath =
|
|
3424
|
-
setGlobalLogFilePath(
|
|
3425
|
-
if (!
|
|
3445
|
+
setLogFile(path2) {
|
|
3446
|
+
this.logFilePath = path2;
|
|
3447
|
+
setGlobalLogFilePath(path2);
|
|
3448
|
+
if (!path2)
|
|
3426
3449
|
return;
|
|
3427
3450
|
this.fileLoggingEnabled = true;
|
|
3428
|
-
const
|
|
3451
|
+
const fs2 = getFileSystem();
|
|
3429
3452
|
this.pendingInit = (async () => {
|
|
3430
3453
|
const [error] = await catchError((async () => {
|
|
3431
|
-
await
|
|
3432
|
-
await
|
|
3454
|
+
await fs2.mkdir(fs2.path.dirname(path2));
|
|
3455
|
+
await fs2.writeFile(path2, "");
|
|
3433
3456
|
})());
|
|
3434
3457
|
if (error)
|
|
3435
3458
|
this.fileLoggingEnabled = false;
|
|
@@ -3488,12 +3511,12 @@ var jmespathSlot = singleton("JmespathCodec");
|
|
|
3488
3511
|
async function loadOutputCodecsAsync(needed) {
|
|
3489
3512
|
const loads = [];
|
|
3490
3513
|
if (needed.yaml && yamlSlot.get() === undefined) {
|
|
3491
|
-
loads.push(import("./js-yaml-
|
|
3514
|
+
loads.push(import("./js-yaml-88tdqrtd.js").then((mod) => {
|
|
3492
3515
|
yamlSlot.set(mod);
|
|
3493
3516
|
}));
|
|
3494
3517
|
}
|
|
3495
3518
|
if (needed.filter && jmespathSlot.get() === undefined) {
|
|
3496
|
-
loads.push(import("./jmespath-
|
|
3519
|
+
loads.push(import("./jmespath-231m3hyn.js").then((m)=>__toESM(m.default,1)).then((mod) => {
|
|
3497
3520
|
jmespathSlot.set(mod);
|
|
3498
3521
|
}));
|
|
3499
3522
|
}
|
|
@@ -5302,8 +5325,8 @@ function carriesOnlyNulls(value) {
|
|
|
5302
5325
|
}
|
|
5303
5326
|
return false;
|
|
5304
5327
|
}
|
|
5305
|
-
function nameList(names,
|
|
5306
|
-
const shown = names.slice(0,
|
|
5328
|
+
function nameList(names, cap2 = 12) {
|
|
5329
|
+
const shown = names.slice(0, cap2).map((n) => `\`${n}\``);
|
|
5307
5330
|
const rest = names.length - shown.length;
|
|
5308
5331
|
return shown.join(", ") + (rest > 0 ? `, and ${rest} more` : "");
|
|
5309
5332
|
}
|
|
@@ -5630,64 +5653,21 @@ async function classifiedFailure(message, error) {
|
|
|
5630
5653
|
};
|
|
5631
5654
|
}
|
|
5632
5655
|
|
|
5633
|
-
// ../../node_modules/commander/index.js
|
|
5634
|
-
var exports_commander = {};
|
|
5635
|
-
__exportCjs(exports_commander, {
|
|
5636
|
-
program: () => $program,
|
|
5637
|
-
createCommand: () => $createCommand,
|
|
5638
|
-
createOption: () => $createOption,
|
|
5639
|
-
createArgument: () => $createArgument,
|
|
5640
|
-
Command: () => $Command,
|
|
5641
|
-
Option: () => $Option,
|
|
5642
|
-
Argument: () => $Argument,
|
|
5643
|
-
Help: () => $Help,
|
|
5644
|
-
CommanderError: () => $CommanderError,
|
|
5645
|
-
InvalidArgumentError: () => $InvalidArgumentError,
|
|
5646
|
-
InvalidOptionArgumentError: () => $InvalidOptionArgumentError
|
|
5647
|
-
}, {
|
|
5648
|
-
program: (value) => $program = value,
|
|
5649
|
-
createCommand: (value) => $createCommand = value,
|
|
5650
|
-
createOption: (value) => $createOption = value,
|
|
5651
|
-
createArgument: (value) => $createArgument = value,
|
|
5652
|
-
Command: (value) => $Command = value,
|
|
5653
|
-
Option: (value) => $Option = value,
|
|
5654
|
-
Argument: (value) => $Argument = value,
|
|
5655
|
-
Help: (value) => $Help = value,
|
|
5656
|
-
CommanderError: (value) => $CommanderError = value,
|
|
5657
|
-
InvalidArgumentError: (value) => $InvalidArgumentError = value,
|
|
5658
|
-
InvalidOptionArgumentError: (value) => $InvalidOptionArgumentError = value
|
|
5659
|
-
});
|
|
5660
|
-
var { Argument } = require_argument();
|
|
5661
|
-
var { Command: Command2 } = require_command();
|
|
5662
|
-
var { CommanderError, InvalidArgumentError } = require_error();
|
|
5663
|
-
var { Help } = require_help();
|
|
5664
|
-
var { Option: Option2 } = require_option();
|
|
5665
|
-
var $program = new Command2;
|
|
5666
|
-
var $createCommand = (name) => new Command2(name);
|
|
5667
|
-
var $createOption = (flags, description) => new Option2(flags, description);
|
|
5668
|
-
var $createArgument = (name, description) => new Argument(name, description);
|
|
5669
|
-
var $Command = Command2;
|
|
5670
|
-
var $Option = Option2;
|
|
5671
|
-
var $Argument = Argument;
|
|
5672
|
-
var $Help = Help;
|
|
5673
|
-
var $CommanderError = CommanderError;
|
|
5674
|
-
var $InvalidArgumentError = InvalidArgumentError;
|
|
5675
|
-
var $InvalidOptionArgumentError = InvalidArgumentError;
|
|
5676
|
-
|
|
5677
5656
|
// ../../node_modules/commander/esm.mjs
|
|
5657
|
+
var import__ = __toESM(require_commander(), 1);
|
|
5678
5658
|
var {
|
|
5679
5659
|
program,
|
|
5680
5660
|
createCommand,
|
|
5681
5661
|
createArgument,
|
|
5682
5662
|
createOption,
|
|
5683
|
-
CommanderError
|
|
5684
|
-
InvalidArgumentError
|
|
5663
|
+
CommanderError,
|
|
5664
|
+
InvalidArgumentError,
|
|
5685
5665
|
InvalidOptionArgumentError,
|
|
5686
5666
|
Command,
|
|
5687
|
-
Argument
|
|
5667
|
+
Argument,
|
|
5688
5668
|
Option,
|
|
5689
|
-
Help
|
|
5690
|
-
} =
|
|
5669
|
+
Help
|
|
5670
|
+
} = import__.default;
|
|
5691
5671
|
|
|
5692
5672
|
// ../common/src/telemetry/command-attribution.ts
|
|
5693
5673
|
var LEGACY_SKILL_NAMESPACE = "uipath:";
|
|
@@ -6432,14 +6412,14 @@ function parseOffset(raw, _previous) {
|
|
|
6432
6412
|
function parseBoundedInt(raw, optionName, bounds) {
|
|
6433
6413
|
const normalized = raw.trim();
|
|
6434
6414
|
if (normalized === "") {
|
|
6435
|
-
throw new
|
|
6415
|
+
throw new InvalidArgumentError(`${optionName} requires a value (got empty).`);
|
|
6436
6416
|
}
|
|
6437
6417
|
if (!/^-?\d+$/.test(normalized)) {
|
|
6438
|
-
throw new
|
|
6418
|
+
throw new InvalidArgumentError(`${optionName} must be an integer, got '${normalized}'.`);
|
|
6439
6419
|
}
|
|
6440
6420
|
const n = parseInt(normalized, 10);
|
|
6441
6421
|
if (n < bounds.min || n > bounds.max) {
|
|
6442
|
-
throw new
|
|
6422
|
+
throw new InvalidArgumentError(`${optionName} must be between ${bounds.min} and ${bounds.max}, got ${n}.`);
|
|
6443
6423
|
}
|
|
6444
6424
|
return n;
|
|
6445
6425
|
}
|
|
@@ -6573,6 +6553,6 @@ function unsupportedSolutionProjectType(projectType) {
|
|
|
6573
6553
|
var shippedKeysSlot = singleton("ShipSucceededDedupeKeys");
|
|
6574
6554
|
// ../common/src/tool-provider.ts
|
|
6575
6555
|
var factorySlot = singleton("PackagerFactoryProvider");
|
|
6576
|
-
export { getFileSystem, catchError, extractErrorMessageSync, logger, RESULTS, Pagination, OutputFormatter, classifiedFailure, Command, Option, processContext, DEFAULT_PAGE_SIZE, isGuid, createHiddenDeprecatedTenantOption, parseLimit, parseOffset, parseBoundedInt, getSdkUserAgentToken, addSdkUserAgentHeader, installSdkUserAgentHeader, unsupportedSolutionProjectType };
|
|
6556
|
+
export { getFileSystem, catchError, extractErrorMessage, extractErrorMessageSync, logger, RESULTS, Pagination, OutputFormatter, classifiedFailure, Command, Option, processContext, DEFAULT_PAGE_SIZE, isGuid, createHiddenDeprecatedTenantOption, parseLimit, parseOffset, parseBoundedInt, getSdkUserAgentToken, addSdkUserAgentHeader, installSdkUserAgentHeader, unsupportedSolutionProjectType };
|
|
6577
6557
|
|
|
6578
|
-
//# debugId=
|
|
6558
|
+
//# debugId=6D940CC4BBC2ACC564756E2164756E21
|