@uipath/cli 1.197.0-preview.66 → 1.197.0-preview.67
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.browser.js +19 -19
- package/dist/index.js +42 -6
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -45866,7 +45866,7 @@ var init_package = __esm(() => {
|
|
|
45866
45866
|
package_default = {
|
|
45867
45867
|
name: "@uipath/cli",
|
|
45868
45868
|
license: "MIT",
|
|
45869
|
-
version: "1.197.0-preview.
|
|
45869
|
+
version: "1.197.0-preview.67",
|
|
45870
45870
|
description: "Cross platform CLI for UiPath",
|
|
45871
45871
|
repository: {
|
|
45872
45872
|
type: "git",
|
|
@@ -108285,12 +108285,44 @@ async function isHttpsMarketplaceRegistered() {
|
|
|
108285
108285
|
const source = parsed[MARKETPLACE_NAME]?.source;
|
|
108286
108286
|
return source?.source === "git" && source?.url === MARKETPLACE_URL;
|
|
108287
108287
|
}
|
|
108288
|
+
function marketplacesCacheDir() {
|
|
108289
|
+
const fs7 = getFileSystem();
|
|
108290
|
+
return fs7.path.join(claudeConfigDir(), "plugins", "marketplaces");
|
|
108291
|
+
}
|
|
108292
|
+
async function removeStaleMarketplaceCache() {
|
|
108293
|
+
const fs7 = getFileSystem();
|
|
108294
|
+
const cacheDir = marketplacesCacheDir();
|
|
108295
|
+
const [readErr, entries] = await catchError(fs7.readdir(cacheDir));
|
|
108296
|
+
if (readErr || !entries)
|
|
108297
|
+
return;
|
|
108298
|
+
const stale = entries.filter((name) => name === MARKETPLACE_NAME || name.startsWith("temp_"));
|
|
108299
|
+
for (const name of stale) {
|
|
108300
|
+
const target = fs7.path.join(cacheDir, name);
|
|
108301
|
+
const [rmErr] = await catchError(fs7.rm(target));
|
|
108302
|
+
if (rmErr) {
|
|
108303
|
+
logger.warn(` claude: could not remove stale marketplace cache ${target}: ${rmErr.message}`);
|
|
108304
|
+
}
|
|
108305
|
+
}
|
|
108306
|
+
}
|
|
108288
108307
|
async function ensureHttpsMarketplace() {
|
|
108289
108308
|
if (await isHttpsMarketplaceRegistered())
|
|
108290
108309
|
return;
|
|
108291
|
-
|
|
108310
|
+
const addArgs = ["plugin", "marketplace", "add", MARKETPLACE_URL];
|
|
108311
|
+
const [addErr] = await catchError(runClaude(addArgs));
|
|
108312
|
+
if (!addErr)
|
|
108313
|
+
return;
|
|
108314
|
+
if (!FINALIZE_CACHE_ERROR.test(addErr.message))
|
|
108315
|
+
throw addErr;
|
|
108316
|
+
logger.warn(" claude: marketplace add hit a stale cache — clearing it and retrying once");
|
|
108317
|
+
await removeStaleMarketplaceCache();
|
|
108318
|
+
const [retryErr] = await catchError(runClaude(addArgs));
|
|
108319
|
+
if (!retryErr)
|
|
108320
|
+
return;
|
|
108321
|
+
throw Object.assign(retryErr, {
|
|
108322
|
+
instructions: `Close all running Claude Code sessions, delete ${getFileSystem().path.join(marketplacesCacheDir(), MARKETPLACE_NAME)} if it still exists, then re-run this command. ` + "If it keeps failing, an antivirus or another process is locking the directory."
|
|
108323
|
+
});
|
|
108292
108324
|
}
|
|
108293
|
-
var MARKETPLACE_REPO = "UiPath/skills", MARKETPLACE_URL, MARKETPLACE_NAME = "uipath-marketplace", PLUGIN_NAME = "uipath", PLUGIN_REF, def2;
|
|
108325
|
+
var MARKETPLACE_REPO = "UiPath/skills", MARKETPLACE_URL, MARKETPLACE_NAME = "uipath-marketplace", PLUGIN_NAME = "uipath", PLUGIN_REF, FINALIZE_CACHE_ERROR, def2;
|
|
108294
108326
|
var init_claude = __esm(() => {
|
|
108295
108327
|
init_src2();
|
|
108296
108328
|
init_src();
|
|
@@ -108298,6 +108330,7 @@ var init_claude = __esm(() => {
|
|
|
108298
108330
|
init_detect();
|
|
108299
108331
|
MARKETPLACE_URL = `https://github.com/${MARKETPLACE_REPO}.git`;
|
|
108300
108332
|
PLUGIN_REF = `${PLUGIN_NAME}@${MARKETPLACE_NAME}`;
|
|
108333
|
+
FINALIZE_CACHE_ERROR = /Failed to finalize marketplace cache/i;
|
|
108301
108334
|
def2 = {
|
|
108302
108335
|
localSubdir: [".claude", "skills"],
|
|
108303
108336
|
globalOnly: true,
|
|
@@ -109029,7 +109062,9 @@ async function runOneAgent(agent, operation, resolved) {
|
|
|
109029
109062
|
if (customHook) {
|
|
109030
109063
|
const [installError] = await catchError(customHook({ skills: selectedSkills, rootDir, storePath, isLocal }));
|
|
109031
109064
|
if (installError) {
|
|
109032
|
-
return new Error(`Failed to ${operation} skills for ${agent}: ${installError.message}`)
|
|
109065
|
+
return Object.assign(new Error(`Failed to ${operation} skills for ${agent}: ${installError.message}`), {
|
|
109066
|
+
instructions: installError.instructions
|
|
109067
|
+
});
|
|
109033
109068
|
}
|
|
109034
109069
|
return selectedSkills.map((s) => `${agent}:${s.name}`);
|
|
109035
109070
|
}
|
|
@@ -109081,7 +109116,8 @@ async function runAgentInstalls(resolved, operation = "install") {
|
|
|
109081
109116
|
if (failures.length > 0) {
|
|
109082
109117
|
const summary = failures.map((f) => f.error.message).join("; ");
|
|
109083
109118
|
const succeededNote = succeededAgents.length > 0 ? ` (${succeededAgents.join(", ")} succeeded)` : "";
|
|
109084
|
-
|
|
109119
|
+
const specific = failures.map((f) => f.error.instructions).filter((i) => !!i);
|
|
109120
|
+
throw new SkillsError(`${summary}${succeededNote}`, specific.length > 0 ? specific.join(" ") : "Check that each failed agent's CLI is installed and on PATH. Re-run for the failed agents only — the manifest already reflects the agents that succeeded.");
|
|
109085
109121
|
}
|
|
109086
109122
|
return installed;
|
|
109087
109123
|
}
|
|
@@ -115361,4 +115397,4 @@ export {
|
|
|
115361
115397
|
ready
|
|
115362
115398
|
};
|
|
115363
115399
|
|
|
115364
|
-
//# debugId=
|
|
115400
|
+
//# debugId=0E026C5F5F589BF464756E2164756E21
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/cli",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "1.197.0-preview.
|
|
4
|
+
"version": "1.197.0-preview.67",
|
|
5
5
|
"description": "Cross platform CLI for UiPath",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"mihaigirleanu",
|
|
35
35
|
"vlad-uipath"
|
|
36
36
|
],
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "579e7d41cb100fcb8130eec8ed1c9b5b55feaf0b"
|
|
38
38
|
}
|