@uipath/rpa-tool 1.195.0 → 1.195.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/packager-tool.js +1 -1
- package/dist/tool.js +33 -21
- package/package.json +1 -1
package/dist/packager-tool.js
CHANGED
|
@@ -21919,7 +21919,7 @@ Command.prototype.trackedAction = function(context, fn, properties) {
|
|
|
21919
21919
|
};
|
|
21920
21920
|
|
|
21921
21921
|
// src/resolution/helm-config.ts
|
|
21922
|
-
var DEFAULT_HELM_VERSION = "1.195.
|
|
21922
|
+
var DEFAULT_HELM_VERSION = "1.195.1";
|
|
21923
21923
|
var helmConfig = {
|
|
21924
21924
|
helmVersion: DEFAULT_HELM_VERSION
|
|
21925
21925
|
};
|
package/dist/tool.js
CHANGED
|
@@ -28147,19 +28147,19 @@ var __create4, __getProtoOf4, __defProp4, __getOwnPropNames4, __hasOwnProp4, __t
|
|
|
28147
28147
|
}
|
|
28148
28148
|
const subprocess = childProcess34.spawn(command, cliArguments, childProcessOptions);
|
|
28149
28149
|
if (options.wait) {
|
|
28150
|
-
return new Promise((
|
|
28150
|
+
return new Promise((resolve7, reject) => {
|
|
28151
28151
|
subprocess.once("error", reject);
|
|
28152
28152
|
subprocess.once("close", (exitCode) => {
|
|
28153
28153
|
if (!options.allowNonzeroExitCode && exitCode !== 0) {
|
|
28154
28154
|
reject(new Error(`Exited with code ${exitCode}`));
|
|
28155
28155
|
return;
|
|
28156
28156
|
}
|
|
28157
|
-
|
|
28157
|
+
resolve7(subprocess);
|
|
28158
28158
|
});
|
|
28159
28159
|
});
|
|
28160
28160
|
}
|
|
28161
28161
|
if (isFallbackAttempt) {
|
|
28162
|
-
return new Promise((
|
|
28162
|
+
return new Promise((resolve7, reject) => {
|
|
28163
28163
|
subprocess.once("error", reject);
|
|
28164
28164
|
subprocess.once("spawn", () => {
|
|
28165
28165
|
subprocess.once("close", (exitCode) => {
|
|
@@ -28169,17 +28169,17 @@ var __create4, __getProtoOf4, __defProp4, __getOwnPropNames4, __hasOwnProp4, __t
|
|
|
28169
28169
|
return;
|
|
28170
28170
|
}
|
|
28171
28171
|
subprocess.unref();
|
|
28172
|
-
|
|
28172
|
+
resolve7(subprocess);
|
|
28173
28173
|
});
|
|
28174
28174
|
});
|
|
28175
28175
|
});
|
|
28176
28176
|
}
|
|
28177
28177
|
subprocess.unref();
|
|
28178
|
-
return new Promise((
|
|
28178
|
+
return new Promise((resolve7, reject) => {
|
|
28179
28179
|
subprocess.once("error", reject);
|
|
28180
28180
|
subprocess.once("spawn", () => {
|
|
28181
28181
|
subprocess.off("error", reject);
|
|
28182
|
-
|
|
28182
|
+
resolve7(subprocess);
|
|
28183
28183
|
});
|
|
28184
28184
|
});
|
|
28185
28185
|
}, open4 = (target, options) => {
|
|
@@ -47733,6 +47733,9 @@ function withTrailingSeparator(p) {
|
|
|
47733
47733
|
return p.endsWith("/") || p.endsWith("\\") ? p : `${p}/`;
|
|
47734
47734
|
}
|
|
47735
47735
|
|
|
47736
|
+
// src/tool.ts
|
|
47737
|
+
import { resolve as resolve7 } from "node:path";
|
|
47738
|
+
|
|
47736
47739
|
// node_modules/@uipath/common/dist/index.js
|
|
47737
47740
|
import { createRequire as createRequire2 } from "node:module";
|
|
47738
47741
|
import { existsSync } from "node:fs";
|
|
@@ -57627,7 +57630,7 @@ var {
|
|
|
57627
57630
|
// package.json
|
|
57628
57631
|
var package_default = {
|
|
57629
57632
|
name: "@uipath/rpa-tool",
|
|
57630
|
-
version: "1.195.
|
|
57633
|
+
version: "1.195.1",
|
|
57631
57634
|
description: "Tool for creating and managing UiPath RPA projects",
|
|
57632
57635
|
keywords: [
|
|
57633
57636
|
"uipcli-tool",
|
|
@@ -57835,6 +57838,9 @@ var registerListInstancesCommand = (program3) => {
|
|
|
57835
57838
|
program3.command("list-instances", { hidden: true }).description(description).trackedAction(processContext, action);
|
|
57836
57839
|
};
|
|
57837
57840
|
|
|
57841
|
+
// src/commands/packager/packager-shared.ts
|
|
57842
|
+
import { resolve as resolve4 } from "node:path";
|
|
57843
|
+
|
|
57838
57844
|
// src/load-packager-tool.ts
|
|
57839
57845
|
async function loadPackagerTool() {
|
|
57840
57846
|
const _warn = console.warn;
|
|
@@ -57884,7 +57890,12 @@ async function buildBaseOptions(opts) {
|
|
|
57884
57890
|
return options;
|
|
57885
57891
|
}
|
|
57886
57892
|
async function runPackagerCommand(opts, config) {
|
|
57887
|
-
const
|
|
57893
|
+
const rawProjectDir = opts.projectDir ?? process.cwd();
|
|
57894
|
+
if (!rawProjectDir.trim()) {
|
|
57895
|
+
OutputFormatter.error(new FailureOutput("Failure", `${config.label} failed: project directory must not be empty.`, config.hint));
|
|
57896
|
+
return false;
|
|
57897
|
+
}
|
|
57898
|
+
const projectDir = resolve4(rawProjectDir);
|
|
57888
57899
|
opts = { ...opts, projectDir };
|
|
57889
57900
|
const LOGGER_LEVELS = {
|
|
57890
57901
|
Debug: LogLevel.DEBUG,
|
|
@@ -58037,10 +58048,10 @@ function registerPackCommand(program4) {
|
|
|
58037
58048
|
// src/commands/packager/restore.ts
|
|
58038
58049
|
import { mkdtempSync } from "node:fs";
|
|
58039
58050
|
import { tmpdir as tmpdir5 } from "node:os";
|
|
58040
|
-
import { isAbsolute as isAbsolute4, join as join5, relative as relative4, resolve as
|
|
58051
|
+
import { isAbsolute as isAbsolute4, join as join5, relative as relative4, resolve as resolve5 } from "node:path";
|
|
58041
58052
|
function isWithinOrEqual(parent, candidate) {
|
|
58042
58053
|
const norm = process.platform === "win32" ? (p) => p.toLowerCase() : (p) => p;
|
|
58043
|
-
const rel = relative4(norm(
|
|
58054
|
+
const rel = relative4(norm(resolve5(parent)), norm(resolve5(candidate)));
|
|
58044
58055
|
if (rel === "")
|
|
58045
58056
|
return true;
|
|
58046
58057
|
return !rel.startsWith("..") && !isAbsolute4(rel);
|
|
@@ -59163,7 +59174,7 @@ class IpcCall {
|
|
|
59163
59174
|
const call = operation(this.proxy, this.ict);
|
|
59164
59175
|
if (this.timeoutMs == null)
|
|
59165
59176
|
return call;
|
|
59166
|
-
return new Promise((
|
|
59177
|
+
return new Promise((resolve6, reject) => {
|
|
59167
59178
|
let settled = false;
|
|
59168
59179
|
const timer = setTimeout(() => {
|
|
59169
59180
|
if (settled)
|
|
@@ -59176,7 +59187,7 @@ class IpcCall {
|
|
|
59176
59187
|
if (!settled) {
|
|
59177
59188
|
settled = true;
|
|
59178
59189
|
clearTimeout(timer);
|
|
59179
|
-
|
|
59190
|
+
resolve6(val);
|
|
59180
59191
|
}
|
|
59181
59192
|
}, (err2) => {
|
|
59182
59193
|
if (!settled) {
|
|
@@ -59374,7 +59385,7 @@ var defaultResolverDeps = {
|
|
|
59374
59385
|
child.unref();
|
|
59375
59386
|
},
|
|
59376
59387
|
sleep(ms) {
|
|
59377
|
-
return new Promise((
|
|
59388
|
+
return new Promise((resolve6) => setTimeout(resolve6, ms));
|
|
59378
59389
|
},
|
|
59379
59390
|
log(_message) {},
|
|
59380
59391
|
fetchFeatures(pipeName) {
|
|
@@ -59532,7 +59543,7 @@ function findCachedHelmPackage(packageId, version) {
|
|
|
59532
59543
|
return null;
|
|
59533
59544
|
}
|
|
59534
59545
|
function spawnWithHeartbeat(command, args, heartbeatMessage, env) {
|
|
59535
|
-
return new Promise((
|
|
59546
|
+
return new Promise((resolve6, reject) => {
|
|
59536
59547
|
const spawnEnv = env ? { ...process.env, ...env } : undefined;
|
|
59537
59548
|
const child = spawn3(command, args, {
|
|
59538
59549
|
stdio: ["ignore", "pipe", "pipe"],
|
|
@@ -59562,7 +59573,7 @@ function spawnWithHeartbeat(command, args, heartbeatMessage, env) {
|
|
|
59562
59573
|
child.on("close", (code) => {
|
|
59563
59574
|
cleanup();
|
|
59564
59575
|
if (code === 0) {
|
|
59565
|
-
|
|
59576
|
+
resolve6();
|
|
59566
59577
|
return;
|
|
59567
59578
|
}
|
|
59568
59579
|
const stderr = Buffer.concat(stderrChunks).toString("utf8").trim();
|
|
@@ -59703,7 +59714,7 @@ function filterByBackend(instances, preference) {
|
|
|
59703
59714
|
}
|
|
59704
59715
|
}
|
|
59705
59716
|
// src/resolution/helm-config.ts
|
|
59706
|
-
var DEFAULT_HELM_VERSION = "1.195.
|
|
59717
|
+
var DEFAULT_HELM_VERSION = "1.195.1";
|
|
59707
59718
|
var helmConfig = {
|
|
59708
59719
|
helmVersion: DEFAULT_HELM_VERSION
|
|
59709
59720
|
};
|
|
@@ -60594,7 +60605,7 @@ function mergeEnv(extra) {
|
|
|
60594
60605
|
return { ...process.env, ...extra };
|
|
60595
60606
|
}
|
|
60596
60607
|
function spawnForward(exePath, args, env) {
|
|
60597
|
-
return new Promise((
|
|
60608
|
+
return new Promise((resolve7, reject) => {
|
|
60598
60609
|
const child = spawn4(exePath, args, {
|
|
60599
60610
|
stdio: "inherit",
|
|
60600
60611
|
env: mergeEnv(env)
|
|
@@ -60603,12 +60614,12 @@ function spawnForward(exePath, args, env) {
|
|
|
60603
60614
|
reject(new Error(`Failed to spawn '${exePath}': ${err2.message}`));
|
|
60604
60615
|
});
|
|
60605
60616
|
child.on("close", (code) => {
|
|
60606
|
-
|
|
60617
|
+
resolve7(code ?? 1);
|
|
60607
60618
|
});
|
|
60608
60619
|
});
|
|
60609
60620
|
}
|
|
60610
60621
|
function spawnCapture(exePath, args, env) {
|
|
60611
|
-
return new Promise((
|
|
60622
|
+
return new Promise((resolve7, reject) => {
|
|
60612
60623
|
const child = spawn4(exePath, args, {
|
|
60613
60624
|
stdio: ["inherit", "pipe", "pipe"],
|
|
60614
60625
|
env: mergeEnv(env)
|
|
@@ -60624,7 +60635,7 @@ function spawnCapture(exePath, args, env) {
|
|
|
60624
60635
|
reject(new Error(`Failed to spawn '${exePath}': ${err2.message}`));
|
|
60625
60636
|
});
|
|
60626
60637
|
child.on("close", (code) => {
|
|
60627
|
-
|
|
60638
|
+
resolve7({
|
|
60628
60639
|
exitCode: code ?? 1,
|
|
60629
60640
|
stdout: Buffer.concat(stdoutChunks).toString("utf8"),
|
|
60630
60641
|
stderr: Buffer.concat(stderrChunks).toString("utf8")
|
|
@@ -63375,7 +63386,7 @@ var metadata = {
|
|
|
63375
63386
|
commandPrefix: "rpa"
|
|
63376
63387
|
};
|
|
63377
63388
|
var registerCommands = async (program4, options) => {
|
|
63378
|
-
const resolved = options
|
|
63389
|
+
const resolved = options ? { ...options } : {
|
|
63379
63390
|
projectDir: extractArg(process.argv, "project-dir") ?? process.cwd(),
|
|
63380
63391
|
studioDir: extractArg(process.argv, "studio-dir"),
|
|
63381
63392
|
robotDir: extractArg(process.argv, "robot-dir"),
|
|
@@ -63384,6 +63395,7 @@ var registerCommands = async (program4, options) => {
|
|
|
63384
63395
|
hostStudioPid: process.env.UIPATH_STUDIO_PID ? parseInt(process.env.UIPATH_STUDIO_PID, 10) : undefined,
|
|
63385
63396
|
timeoutSeconds: parseInt(extractArg(process.argv, "timeout", "300") ?? "300", 10)
|
|
63386
63397
|
};
|
|
63398
|
+
resolved.projectDir = resolve7(resolved.projectDir);
|
|
63387
63399
|
if (!options) {
|
|
63388
63400
|
program4.option("--project-dir <path>", "Project directory to match against running Studio instances", process.cwd()).option("--studio-dir <path>", "Path to Studio installation directory").option("--robot-dir <path>", "Path to Robot installation directory").option("--timeout <seconds>", "Timeout in seconds", "300").option("--verbose", "Enable verbose logging");
|
|
63389
63401
|
}
|