@uipath/cli 1.202.1 → 1.203.0-preview.180
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/README.md +101 -5
- package/dist/THIRD-PARTY-NOTICES.md +64 -7
- package/dist/{cli-p61a1vc8.js → cli-w7vb50ez.js} +4 -4
- package/dist/{index-tqczrxct.js → index-7pvwjzsq.js} +297 -25
- package/dist/{index-bhjtwzfa.js → index-hgvsratt.js} +14 -2
- package/dist/{index-vmj27s6h.js → index-mtdmza3c.js} +55 -32
- package/dist/{index-9d17sa6t.js → index-szrenqr6.js} +331 -39
- package/dist/{index-v5cj0bhj.js → index-vmn69waj.js} +127 -12
- package/dist/index.js +5 -5
- package/dist/{server-0243hbq7.js → server-z7wh3gfs.js} +6 -5
- package/dist/{telemetry-drain-wqmnr7t7.js → telemetry-drain-zkrm8xja.js} +1 -1
- package/dist/{updateService-mashkk31.js → updateService-n7hftkkv.js} +2 -2
- package/package.json +8 -12
- package/README.browser.md +0 -128
- package/dist/index.browser.js +0 -16410
- package/dist/services.feedback.browser.js +0 -90
- package/dist/services.markdown.browser.js +0 -4
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CONFIG_FILENAME,
|
|
3
|
+
OUTPUT_FORMATS,
|
|
3
4
|
OutputFormatter,
|
|
4
5
|
RESULTS,
|
|
5
6
|
UIPATH_HOME_DIR,
|
|
@@ -10,7 +11,7 @@ import {
|
|
|
10
11
|
logger,
|
|
11
12
|
processContext,
|
|
12
13
|
wasInteractiveFlagPassed
|
|
13
|
-
} from "./index-
|
|
14
|
+
} from "./index-7pvwjzsq.js";
|
|
14
15
|
import {
|
|
15
16
|
exports_external
|
|
16
17
|
} from "./index-hrt7fpkk.js";
|
|
@@ -548,8 +549,9 @@ var require_lib4 = __commonJS(function(exports, module) {
|
|
|
548
549
|
// package.json
|
|
549
550
|
var package_default = {
|
|
550
551
|
name: "@uipath/cli",
|
|
552
|
+
author: "UiPath",
|
|
551
553
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
552
|
-
version: "1.
|
|
554
|
+
version: "1.203.0-preview.180",
|
|
553
555
|
description: "Cross platform CLI for UiPath",
|
|
554
556
|
repository: {
|
|
555
557
|
type: "git",
|
|
@@ -560,20 +562,15 @@ var package_default = {
|
|
|
560
562
|
registry: "https://npm.pkg.github.com/@uipath"
|
|
561
563
|
},
|
|
562
564
|
type: "module",
|
|
565
|
+
engines: {
|
|
566
|
+
node: ">=22"
|
|
567
|
+
},
|
|
563
568
|
main: "./dist/index.js",
|
|
564
569
|
exports: {
|
|
565
|
-
".":
|
|
566
|
-
browser: "./dist/index.browser.js",
|
|
567
|
-
default: "./dist/index.js"
|
|
568
|
-
},
|
|
569
|
-
"./browser": "./dist/index.browser.js",
|
|
570
|
-
"./services/markdown-to-jira-wiki": "./dist/services.markdown.browser.js",
|
|
571
|
-
"./services/feedback/browser": "./dist/services.feedback.browser.js"
|
|
570
|
+
".": "./dist/index.js"
|
|
572
571
|
},
|
|
573
572
|
files: [
|
|
574
|
-
"dist"
|
|
575
|
-
"!dist/uip-browser.js",
|
|
576
|
-
"!dist/metafile.json"
|
|
573
|
+
"dist"
|
|
577
574
|
],
|
|
578
575
|
bin: {
|
|
579
576
|
uip: "./dist/index.js"
|
|
@@ -585,9 +582,8 @@ var package_default = {
|
|
|
585
582
|
"vlad-uipath"
|
|
586
583
|
],
|
|
587
584
|
scripts: {
|
|
588
|
-
build: "bun ./build.ts
|
|
585
|
+
build: "bun ./build.ts",
|
|
589
586
|
typecheck: "tsc --noEmit",
|
|
590
|
-
"browser:build": "bun run build-browser.ts",
|
|
591
587
|
test: "vitest run",
|
|
592
588
|
"test:coverage": "vitest run --coverage",
|
|
593
589
|
lint: "biome check ."
|
|
@@ -602,18 +598,13 @@ var package_default = {
|
|
|
602
598
|
"@uipath/auth": "workspace:*",
|
|
603
599
|
"@uipath/common": "workspace:*",
|
|
604
600
|
"@uipath/filesystem": "workspace:*",
|
|
605
|
-
"@uipath/insights-sdk": "workspace:*",
|
|
606
601
|
"@uipath/project-executor": "workspace:*",
|
|
607
|
-
"@uipath/project-packager": "workspace:*",
|
|
608
602
|
"@uipath/robot-client": "26.0.193-alpha22964",
|
|
609
603
|
applicationinsights: "^2.9.8",
|
|
610
604
|
commander: "^14.0.3",
|
|
611
|
-
esbuild: "^0.28.1",
|
|
612
|
-
fflate: "^0.8.2",
|
|
613
605
|
"js-md4": "0.3.2",
|
|
614
606
|
"js-yaml": "^4.3.2",
|
|
615
607
|
ora: "^9.3.0",
|
|
616
|
-
"path-browserify": "^1.0.1",
|
|
617
608
|
typescript: "^7.0.2",
|
|
618
609
|
zod: "^4.3.6"
|
|
619
610
|
},
|
|
@@ -654,7 +645,7 @@ async function withConfigLock(targetPath, fn) {
|
|
|
654
645
|
var VERSION_PIN_RE = /^(\d+)\.(\d+)(?:\.(\d+))?$/;
|
|
655
646
|
var ConfigSchema = exports_external.object({
|
|
656
647
|
core: exports_external.object({
|
|
657
|
-
output: exports_external.enum(
|
|
648
|
+
output: exports_external.enum(OUTPUT_FORMATS).optional(),
|
|
658
649
|
logLevel: exports_external.enum(["error", "warn", "info", "debug"]).optional(),
|
|
659
650
|
interactive: exports_external.enum(["never", "auto", "always"]).optional(),
|
|
660
651
|
updateChannel: exports_external.enum(CHANNELS).optional(),
|
|
@@ -1100,6 +1091,7 @@ var TOOLS_WHITELIST = new Map([
|
|
|
1100
1091
|
["@uipath/function-tool", "function"],
|
|
1101
1092
|
["@uipath/codedapp-tool", "codedapp"],
|
|
1102
1093
|
["@uipath/integrationservice-tool", "is"],
|
|
1094
|
+
["@uipath/eval-tool", "eval"],
|
|
1103
1095
|
["@uipath/orchestrator-tool", "or"],
|
|
1104
1096
|
["@uipath/rpa-tool", "rpa"],
|
|
1105
1097
|
["@uipath/test-manager-tool", "tm"],
|
|
@@ -2337,6 +2329,9 @@ class SkillsRegistryAuthError extends Error {
|
|
|
2337
2329
|
this.name = "SkillsRegistryAuthError";
|
|
2338
2330
|
}
|
|
2339
2331
|
}
|
|
2332
|
+
function isSkillsRegistryAuthError(error) {
|
|
2333
|
+
return error instanceof SkillsRegistryAuthError || error.name === "SkillsRegistryAuthError";
|
|
2334
|
+
}
|
|
2340
2335
|
|
|
2341
2336
|
class SkillsPackageMetadataError extends Error {
|
|
2342
2337
|
constructor(message) {
|
|
@@ -2393,7 +2388,9 @@ function resolveLocalRepoPath(input) {
|
|
|
2393
2388
|
}
|
|
2394
2389
|
return fs.path.resolve(input);
|
|
2395
2390
|
}
|
|
2396
|
-
|
|
2391
|
+
var MAX_LABEL_CHARS = 32;
|
|
2392
|
+
var MAX_BRANCH_CHARS = MAX_LABEL_CHARS / 2;
|
|
2393
|
+
function slugify(input, maxChars = MAX_LABEL_CHARS) {
|
|
2397
2394
|
const collapsed = input.toLowerCase().replace(/^[a-z]+:\/\//, "").replace(/[^a-z0-9]+/g, "-");
|
|
2398
2395
|
let start = 0;
|
|
2399
2396
|
let end = collapsed.length;
|
|
@@ -2401,16 +2398,22 @@ function slugify(input) {
|
|
|
2401
2398
|
start++;
|
|
2402
2399
|
while (end > start && collapsed[end - 1] === "-")
|
|
2403
2400
|
end--;
|
|
2401
|
+
if (end - start > maxChars) {
|
|
2402
|
+
start = end - maxChars;
|
|
2403
|
+
while (start < end && collapsed[start] === "-")
|
|
2404
|
+
start++;
|
|
2405
|
+
}
|
|
2404
2406
|
return collapsed.slice(start, end) || "repo";
|
|
2405
2407
|
}
|
|
2406
2408
|
function shortHash(input) {
|
|
2407
2409
|
return createHash("sha256").update(input).digest("hex").slice(0, 10);
|
|
2408
2410
|
}
|
|
2409
2411
|
function customStoreName(sourceKey, branch) {
|
|
2410
|
-
const suffix = branch ? `@${slugify(branch)}` : "";
|
|
2412
|
+
const suffix = branch ? `@${slugify(branch, MAX_BRANCH_CHARS)}` : "";
|
|
2411
2413
|
const hash = shortHash(`${sourceKey}
|
|
2412
2414
|
${branch ?? ""}`);
|
|
2413
|
-
|
|
2415
|
+
const label = slugify(sourceKey, MAX_LABEL_CHARS - suffix.length);
|
|
2416
|
+
return `${UIPATH_HOME_DIR}/.skill-repos/${label}${suffix}-${hash}`;
|
|
2414
2417
|
}
|
|
2415
2418
|
function resolveSkillSource(repo, branch) {
|
|
2416
2419
|
const trimmedRepo = repo?.trim();
|
|
@@ -3579,24 +3582,35 @@ function getSkillsSourceFailureDetails(error) {
|
|
|
3579
3582
|
if (isPermissionError(error)) {
|
|
3580
3583
|
return {
|
|
3581
3584
|
instructions: "Fix write access to the path in the error message (commonly the skills store under ~/.uipath/.skills, or the target project's .uipath/.skills when using --local or --path), then re-run the command.",
|
|
3582
|
-
retry: "RetryWillNotFix"
|
|
3585
|
+
retry: "RetryWillNotFix",
|
|
3586
|
+
errorCode: "local_permission_denied"
|
|
3587
|
+
};
|
|
3588
|
+
}
|
|
3589
|
+
if (isSkillsRegistryAuthError(error)) {
|
|
3590
|
+
return {
|
|
3591
|
+
instructions: "Configure registry authentication for @uipath/skills in .npmrc as described in the message, then re-run the command.",
|
|
3592
|
+
retry: "RetryWillNotFix",
|
|
3593
|
+
errorCode: "authentication_required"
|
|
3583
3594
|
};
|
|
3584
3595
|
}
|
|
3585
3596
|
if (isSkillsPackageMetadataError(error)) {
|
|
3586
3597
|
return {
|
|
3587
3598
|
instructions: "The registry lookup succeeded, but @uipath/skills metadata could not be read or did not include a usable tarball URL for the selected version. Check the package metadata in the configured npm registry, then retry.",
|
|
3588
|
-
retry: "RetryWillNotFix"
|
|
3599
|
+
retry: "RetryWillNotFix",
|
|
3600
|
+
errorCode: "configuration_error"
|
|
3589
3601
|
};
|
|
3590
3602
|
}
|
|
3591
3603
|
if (isSkillsPackOutputError(error)) {
|
|
3592
3604
|
return {
|
|
3593
3605
|
instructions: "Your npm version prints a `pack --json` shape this CLI cannot read. Update the CLI (`uip update`), or set UIP_SKILLS_PM=pnpm (or bun/yarn) to fetch skills with another package manager, which skips npm pack entirely.",
|
|
3594
|
-
retry: "RetryWillNotFix"
|
|
3606
|
+
retry: "RetryWillNotFix",
|
|
3607
|
+
errorCode: "configuration_error"
|
|
3595
3608
|
};
|
|
3596
3609
|
}
|
|
3597
3610
|
return {
|
|
3598
3611
|
instructions: "Check network connectivity and try again. Ensure the @uipath/skills package is available from the configured npm registry.",
|
|
3599
|
-
retry: "RetryLater"
|
|
3612
|
+
retry: "RetryLater",
|
|
3613
|
+
errorCode: "unknown_error"
|
|
3600
3614
|
};
|
|
3601
3615
|
}
|
|
3602
3616
|
|
|
@@ -8183,9 +8197,12 @@ async function readSkillOwnerId(fs, skillDir) {
|
|
|
8183
8197
|
const [, parsed] = catchError(() => JSON.parse(content));
|
|
8184
8198
|
return typeof parsed?.source === "string" ? parsed.source : null;
|
|
8185
8199
|
}
|
|
8200
|
+
function ownerIdentity(storeName) {
|
|
8201
|
+
return /-([0-9a-f]{10})$/.exec(storeName)?.[1] ?? storeName;
|
|
8202
|
+
}
|
|
8186
8203
|
async function isOwnedBy(fs, skillDir, owner) {
|
|
8187
8204
|
const id = await readSkillOwnerId(fs, skillDir);
|
|
8188
|
-
return id === null ? owner.isDefault : id === owner.id;
|
|
8205
|
+
return id === null ? owner.isDefault : ownerIdentity(id) === ownerIdentity(owner.id);
|
|
8189
8206
|
}
|
|
8190
8207
|
async function installSkill(agent, skill, skillsDir, owner) {
|
|
8191
8208
|
const fs = getFileSystem();
|
|
@@ -8626,6 +8643,7 @@ class SkillsError extends Error {
|
|
|
8626
8643
|
this.result = result;
|
|
8627
8644
|
}
|
|
8628
8645
|
}
|
|
8646
|
+
var NO_AGENT_DETECTED_REASON = "NoAgentDetected";
|
|
8629
8647
|
function sourceOf(resolved) {
|
|
8630
8648
|
return resolved.source ?? DEFAULT_SOURCE;
|
|
8631
8649
|
}
|
|
@@ -8678,7 +8696,9 @@ async function resolveSkillsContext(options, operation) {
|
|
|
8678
8696
|
OutputFormatter.error({
|
|
8679
8697
|
Result: RESULTS.Failure,
|
|
8680
8698
|
Message: "Interactive mode requested but prompting is disabled.",
|
|
8681
|
-
Instructions: `Run in an interactive terminal, or pass --agent <agent> (one of: ${ALL_AGENTS.join(", ")})
|
|
8699
|
+
Instructions: `Run in an interactive terminal, or pass --agent <agent> (one of: ${ALL_AGENTS.join(", ")}).`,
|
|
8700
|
+
ErrorCode: "invalid_argument",
|
|
8701
|
+
Retry: "RetryWillNotFix"
|
|
8682
8702
|
});
|
|
8683
8703
|
processContext.exit(1);
|
|
8684
8704
|
return null;
|
|
@@ -8715,7 +8735,7 @@ async function resolveSkillsContext(options, operation) {
|
|
|
8715
8735
|
isLocal,
|
|
8716
8736
|
source,
|
|
8717
8737
|
skipped: {
|
|
8718
|
-
reason:
|
|
8738
|
+
reason: NO_AGENT_DETECTED_REASON,
|
|
8719
8739
|
message: "No supported agent was found on PATH.",
|
|
8720
8740
|
instructions: `Install a supported agent CLI or re-run with --agent <agent> (one of: ${ALL_AGENTS.join(", ")}).`
|
|
8721
8741
|
}
|
|
@@ -8724,7 +8744,10 @@ async function resolveSkillsContext(options, operation) {
|
|
|
8724
8744
|
OutputFormatter.error({
|
|
8725
8745
|
Result: RESULTS.Failure,
|
|
8726
8746
|
Message: "No agents detected and prompting is disabled.",
|
|
8727
|
-
Instructions: `No supported agent was found on PATH. Pass --agent <agent> (one of: ${ALL_AGENTS.join(", ")}), or run from an interactive terminal with --interactive to select
|
|
8747
|
+
Instructions: `No supported agent was found on PATH. Pass --agent <agent> (one of: ${ALL_AGENTS.join(", ")}), or run from an interactive terminal with --interactive to select.`,
|
|
8748
|
+
ErrorCode: "configuration_error",
|
|
8749
|
+
Retry: "RetryWillNotFix",
|
|
8750
|
+
Data: { Reason: NO_AGENT_DETECTED_REASON }
|
|
8728
8751
|
});
|
|
8729
8752
|
processContext.exit(1);
|
|
8730
8753
|
return null;
|
|
@@ -9566,4 +9589,4 @@ function getManualCommandForInstallError(error, fallback) {
|
|
|
9566
9589
|
|
|
9567
9590
|
export { package_default, VALID_CHANNELS, HIDDEN_CHANNELS, PUBLIC_CHANNELS, withConfigLock, SECRET_FIELD_PATHS, migrateVersionConfig, versionMigrationNotice, resolveConfigFilePathAsync, loadConfigAsync, resolveUpdateChannel, resolveRuntimeChannel, isPreviewVersion, isValidVersionPin, majorOf, resolvePinnedVersion, isExactPin, versionLinePrefix, formatVersionPin, dist_default5 as dist_default, dist_default6 as dist_default1, dist_default7 as dist_default2, getGlobalNpmUipathDir, DISABLE_AUTOINSTALL_ENV, DISABLE_TOOL_LINE_CHECK_ENV, InstallRefusedError, isBundledDistribution, isAutoInstallDisabled, isToolLineCheckDisabled, TOOLS_WHITELIST, COMMAND_ALIASES, ALIASES_BY_COMMAND, WHITELIST_BY_COMMAND, WHITELIST_BY_SHORT_NAME, isValidSemver, compareSemver, resolveToolPackageName, parsePackageSpec, describeCandidateFailure, getEffectiveRegistry, isDevMode, truncateVersionsForDisplay, toolService, SkillSourceError, SkillsRegistryAuthError, resolveSkillSource, getContentStoreForRead, getAvailableSkills, readManifest, removeFromManifest, readExtraFiles, AGENT_DEFS, getSkillsDir, getSkillsDestinationHint, hasDistinctGlobalPath, skillOwnerOf, uninstallExtraFolders, uninstallSkill, rejectIfGlobalOnly, getSkillsSourceFailureDetails, buildSkillCatalog, removeSkillCatalog, searchSkillCatalog, ALL_AGENTS, AGENT_DISPLAY_NAMES, promptAgentSelection, SkillsError, resolveSkillsTargetVersion, resolveRootDir, resolveSkillsContext, runAgentInstalls, runSkillsUpdate, getInstalledTools, toolFailureRemediation, collapsePinnedLineErrors, todayLocal, readState, recordToolUpdateDate, mergeState, TOOLS_UPDATE_PHASES, runToolsUpdate, runUpdate };
|
|
9568
9591
|
|
|
9569
|
-
//# debugId=
|
|
9592
|
+
//# debugId=BB3F12DADEC60A4364756E2164756E21
|