@uipath/rpa-tool 1.1.0 → 1.195.0
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 +48 -30
- 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.
|
|
21922
|
+
var DEFAULT_HELM_VERSION = "1.195.0";
|
|
21923
21923
|
var helmConfig = {
|
|
21924
21924
|
helmVersion: DEFAULT_HELM_VERSION
|
|
21925
21925
|
};
|
package/dist/tool.js
CHANGED
|
@@ -57627,7 +57627,7 @@ var {
|
|
|
57627
57627
|
// package.json
|
|
57628
57628
|
var package_default = {
|
|
57629
57629
|
name: "@uipath/rpa-tool",
|
|
57630
|
-
version: "1.
|
|
57630
|
+
version: "1.195.0",
|
|
57631
57631
|
description: "Tool for creating and managing UiPath RPA projects",
|
|
57632
57632
|
keywords: [
|
|
57633
57633
|
"uipcli-tool",
|
|
@@ -59703,7 +59703,7 @@ function filterByBackend(instances, preference) {
|
|
|
59703
59703
|
}
|
|
59704
59704
|
}
|
|
59705
59705
|
// src/resolution/helm-config.ts
|
|
59706
|
-
var DEFAULT_HELM_VERSION = "1.
|
|
59706
|
+
var DEFAULT_HELM_VERSION = "1.195.0";
|
|
59707
59707
|
var helmConfig = {
|
|
59708
59708
|
helmVersion: DEFAULT_HELM_VERSION
|
|
59709
59709
|
};
|
|
@@ -60438,6 +60438,21 @@ function registerStartStudioCommand(program4, options) {
|
|
|
60438
60438
|
program4.command("start-studio", { hidden: true }).description(description).trackedAction(processContext, action);
|
|
60439
60439
|
}
|
|
60440
60440
|
|
|
60441
|
+
// src/external-cli/register-cli-commands.ts
|
|
60442
|
+
import { sep } from "node:path";
|
|
60443
|
+
|
|
60444
|
+
// src/external-cli/description-interpolation.ts
|
|
60445
|
+
var VARIABLE_PATTERN = /(\$?)\$\{([A-Z][A-Z0-9_]*)\}/g;
|
|
60446
|
+
function createInterpolator(values) {
|
|
60447
|
+
return (text) => text.replace(VARIABLE_PATTERN, (_match, escapeMarker, name) => {
|
|
60448
|
+
if (escapeMarker === "$") {
|
|
60449
|
+
return `\${${name}}`;
|
|
60450
|
+
}
|
|
60451
|
+
const value = values[name];
|
|
60452
|
+
return value !== undefined ? value : `\${${name}}`;
|
|
60453
|
+
});
|
|
60454
|
+
}
|
|
60455
|
+
|
|
60441
60456
|
// src/external-cli/discovery.ts
|
|
60442
60457
|
import { existsSync as existsSync7, readFileSync as readFileSync2 } from "node:fs";
|
|
60443
60458
|
import { join as join11 } from "node:path";
|
|
@@ -60729,8 +60744,12 @@ Underlying cause: ${cause.message}` : "";
|
|
|
60729
60744
|
});
|
|
60730
60745
|
return;
|
|
60731
60746
|
}
|
|
60747
|
+
const interpolate = createInterpolator({
|
|
60748
|
+
PROJECT_DIR: projectDir,
|
|
60749
|
+
PATH_SEPARATOR: sep
|
|
60750
|
+
});
|
|
60732
60751
|
for (const cmd of manifest.commands) {
|
|
60733
|
-
registerCommand(group, exePath, projectDir, cmd, config, resolvedDeps, [], defaultFormat);
|
|
60752
|
+
registerCommand(group, exePath, projectDir, cmd, config, resolvedDeps, [], interpolate, defaultFormat);
|
|
60734
60753
|
}
|
|
60735
60754
|
}
|
|
60736
60755
|
var PARENT_OPTION_DEFS = [
|
|
@@ -60740,23 +60759,23 @@ var PARENT_OPTION_DEFS = [
|
|
|
60740
60759
|
["--verbose", "Enable verbose logging"],
|
|
60741
60760
|
["--format <format>", "Output format"]
|
|
60742
60761
|
];
|
|
60743
|
-
function registerCommand(parent, exePath, projectDir, cmd, config, deps, commandPath, defaultFormat) {
|
|
60762
|
+
function registerCommand(parent, exePath, projectDir, cmd, config, deps, commandPath, interpolate, defaultFormat) {
|
|
60744
60763
|
const currentPath = [...commandPath, cmd.name];
|
|
60745
60764
|
if (cmd.commands?.length) {
|
|
60746
|
-
const group = parent.command(cmd.name, { hidden: cmd.hidden === true }).description(cmd.description);
|
|
60765
|
+
const group = parent.command(cmd.name, { hidden: cmd.hidden === true }).description(interpolate(cmd.description));
|
|
60747
60766
|
for (const sub4 of cmd.commands) {
|
|
60748
|
-
registerCommand(group, exePath, projectDir, sub4, config, deps, currentPath, defaultFormat);
|
|
60767
|
+
registerCommand(group, exePath, projectDir, sub4, config, deps, currentPath, interpolate, defaultFormat);
|
|
60749
60768
|
}
|
|
60750
60769
|
return;
|
|
60751
60770
|
}
|
|
60752
60771
|
const flags = commandEntryToOptionFlags(cmd, config);
|
|
60753
60772
|
const positionals = cmd.arguments ?? [];
|
|
60754
|
-
const sub3 = parent.command(cmd.name, { hidden: cmd.hidden === true }).description(cmd.description);
|
|
60773
|
+
const sub3 = parent.command(cmd.name, { hidden: cmd.hidden === true }).description(interpolate(cmd.description));
|
|
60755
60774
|
for (const arg of positionals) {
|
|
60756
|
-
sub3.argument(arg.isRequired ? `<${arg.name}>` : `[${arg.name}]`, arg.description);
|
|
60775
|
+
sub3.argument(arg.isRequired ? `<${arg.name}>` : `[${arg.name}]`, interpolate(arg.description));
|
|
60757
60776
|
}
|
|
60758
60777
|
for (const flag of flags) {
|
|
60759
|
-
addFlagToCommand2(sub3, flag);
|
|
60778
|
+
addFlagToCommand2(sub3, flag, interpolate);
|
|
60760
60779
|
}
|
|
60761
60780
|
for (const [optFlags, desc] of PARENT_OPTION_DEFS) {
|
|
60762
60781
|
const longFlag = optFlags.split(" ")[0];
|
|
@@ -60840,23 +60859,22 @@ function buildArgs(commandPath, positionals, opts, cmd, config, projectDir, form
|
|
|
60840
60859
|
continue;
|
|
60841
60860
|
args.push(String(value));
|
|
60842
60861
|
}
|
|
60843
|
-
const
|
|
60844
|
-
|
|
60845
|
-
|
|
60846
|
-
knownOptions.set(kebabToCamel(opt.name), opt.name);
|
|
60847
|
-
}
|
|
60848
|
-
}
|
|
60849
|
-
for (const [key, value] of Object.entries(opts)) {
|
|
60850
|
-
if (value === undefined || value === false)
|
|
60862
|
+
for (const opt of cmd.options ?? []) {
|
|
60863
|
+
const option = new Option2(buildFlagSyntax(optionEntryToFlag(opt)));
|
|
60864
|
+
if (!option.long)
|
|
60851
60865
|
continue;
|
|
60852
|
-
const
|
|
60853
|
-
if (
|
|
60866
|
+
const value = opts[option.attributeName()];
|
|
60867
|
+
if (option.negate) {
|
|
60868
|
+
if (value === false)
|
|
60869
|
+
args.push(option.long);
|
|
60854
60870
|
continue;
|
|
60855
|
-
if (value === true) {
|
|
60856
|
-
args.push(`--${kebabName}`);
|
|
60857
|
-
} else {
|
|
60858
|
-
args.push(`--${kebabName}`, String(value));
|
|
60859
60871
|
}
|
|
60872
|
+
if (value === undefined || value === false)
|
|
60873
|
+
continue;
|
|
60874
|
+
if (value === true)
|
|
60875
|
+
args.push(option.long);
|
|
60876
|
+
else
|
|
60877
|
+
args.push(option.long, String(value));
|
|
60860
60878
|
}
|
|
60861
60879
|
if (config.injectProjectDir && projectDir) {
|
|
60862
60880
|
const injectedFlag = config.injectProjectDir;
|
|
@@ -60873,9 +60891,9 @@ function buildArgs(commandPath, positionals, opts, cmd, config, projectDir, form
|
|
|
60873
60891
|
}
|
|
60874
60892
|
return args;
|
|
60875
60893
|
}
|
|
60876
|
-
function addFlagToCommand2(sub3, flag) {
|
|
60894
|
+
function addFlagToCommand2(sub3, flag, interpolate) {
|
|
60877
60895
|
const syntax = buildFlagSyntax(flag);
|
|
60878
|
-
const desc = flag.description;
|
|
60896
|
+
const desc = interpolate(flag.description);
|
|
60879
60897
|
const opt = new Option2(syntax, desc);
|
|
60880
60898
|
if (flag.allowedValues) {
|
|
60881
60899
|
const allowed = flag.allowedValues;
|
|
@@ -61539,7 +61557,7 @@ function findActivitiesTool(session) {
|
|
|
61539
61557
|
return createToolHandler(session, {
|
|
61540
61558
|
name: ToolName.FindActivities,
|
|
61541
61559
|
title: "Find Activities",
|
|
61542
|
-
description: "Find activities
|
|
61560
|
+
description: "Find activities by query and optional tags. " + 'Returns activity metadata, including triggerType for triggers: "integration" for server or external event triggers, "local" for Robot/runtime triggers.',
|
|
61543
61561
|
requiresProject: true,
|
|
61544
61562
|
inputSchema: {
|
|
61545
61563
|
type: "object",
|
|
@@ -62068,7 +62086,7 @@ function getVersionsTool(session) {
|
|
|
62068
62086
|
name: ToolName.GetVersions,
|
|
62069
62087
|
title: "Get Package Versions",
|
|
62070
62088
|
description: "List available versions of a NuGet package across all configured feeds, " + "sorted descending (newest first).",
|
|
62071
|
-
requiresProject:
|
|
62089
|
+
requiresProject: false,
|
|
62072
62090
|
inputSchema: {
|
|
62073
62091
|
type: "object",
|
|
62074
62092
|
properties: {
|
|
@@ -62101,7 +62119,7 @@ function getVersionsTool(session) {
|
|
|
62101
62119
|
};
|
|
62102
62120
|
}
|
|
62103
62121
|
try {
|
|
62104
|
-
const versions = await session2.execute((instance) => instance.services.package.getVersions(packageId, includePrerelease), { requiresProject:
|
|
62122
|
+
const versions = await session2.execute((instance) => instance.services.package.getVersions(packageId, includePrerelease), { requiresProject: false, backend: "helm" /* Helm */ });
|
|
62105
62123
|
return {
|
|
62106
62124
|
content: [
|
|
62107
62125
|
{
|
|
@@ -62467,12 +62485,12 @@ function installDataFabricEntitiesTool(session) {
|
|
|
62467
62485
|
add: {
|
|
62468
62486
|
type: "array",
|
|
62469
62487
|
items: { type: "string" },
|
|
62470
|
-
description: "Entity
|
|
62488
|
+
description: "Entity name to add to the installed set. " + 'Example: "Invoice". ' + "Pass multiple times for multiple entities " + '(e.g. "Invoice", "Customer"). ' + "At least one of `add` / `remove` must be non-empty."
|
|
62471
62489
|
},
|
|
62472
62490
|
remove: {
|
|
62473
62491
|
type: "array",
|
|
62474
62492
|
items: { type: "string" },
|
|
62475
|
-
description: "Entity
|
|
62493
|
+
description: "Entity name to remove from the installed set. " + 'Example: "LegacyOrder". ' + "Pass multiple times for multiple entities " + '(e.g. "LegacyOrder", "StaleCustomer"). ' + "At least one of `add` / `remove` must be non-empty."
|
|
62476
62494
|
},
|
|
62477
62495
|
serviceDocument: {
|
|
62478
62496
|
type: "string",
|