@uipath/test-manager-tool 1.206.0-preview.311 → 1.206.0-preview.323
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-8tsnwy9w.js → index-g7z0gczy.js} +2 -2
- package/dist/index.js +4 -4
- package/dist/{migration-import-run-eazzhh0h.js → migration-import-run-zsb56hqa.js} +2 -2
- package/dist/{tool-0650qfw3.js → tool-m04xq6t6.js} +72 -10
- package/dist/{tool-584bn9db.js → tool-s1wmffpr.js} +1 -1
- package/dist/{tool-eq9maz4v.js → tool-vnk7nvea.js} +7 -7
- package/dist/{tool-967s3mts.js → tool-vszp11m0.js} +1 -1
- package/dist/tool.js +4 -4
- package/package.json +2 -2
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
createApiClient2,
|
|
9
9
|
resolveFolder2,
|
|
10
10
|
quoteODataStringLiteral2
|
|
11
|
-
} from "./tool-
|
|
12
|
-
import"./tool-
|
|
11
|
+
} from "./tool-vszp11m0.js";
|
|
12
|
+
import"./tool-m04xq6t6.js";
|
|
13
13
|
import"./tool-6mpkbszw.js";
|
|
14
14
|
export {
|
|
15
15
|
FolderDtoFeedTypeEnum2 as FolderDtoFeedTypeEnum,
|
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
import {
|
|
3
3
|
Command
|
|
4
|
-
} from "./tool-
|
|
4
|
+
} from "./tool-m04xq6t6.js";
|
|
5
5
|
import"./tool-6mpkbszw.js";
|
|
6
6
|
import"./tool-1nkyed5m.js";
|
|
7
7
|
import"./tool-vgc9gpy6.js";
|
|
8
|
-
import"./tool-
|
|
8
|
+
import"./tool-s1wmffpr.js";
|
|
9
9
|
import {
|
|
10
10
|
metadata2,
|
|
11
11
|
registerCommands2
|
|
12
|
-
} from "./tool-
|
|
13
|
-
import"./tool-
|
|
12
|
+
} from "./tool-vnk7nvea.js";
|
|
13
|
+
import"./tool-vszp11m0.js";
|
|
14
14
|
|
|
15
15
|
// src/index.ts
|
|
16
16
|
var program = new Command;
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
SuccessOutput,
|
|
8
8
|
OutputFormatter,
|
|
9
9
|
processContext
|
|
10
|
-
} from "./tool-
|
|
10
|
+
} from "./tool-m04xq6t6.js";
|
|
11
11
|
import"./tool-6mpkbszw.js";
|
|
12
12
|
import {
|
|
13
13
|
UiPathTestManagementHubProjectMigrationAbstractionsEnumsMigrationJobStatus2,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
checkContentSelection,
|
|
41
41
|
waitForMigrationJob,
|
|
42
42
|
recheckJobHint
|
|
43
|
-
} from "./tool-
|
|
43
|
+
} from "./tool-s1wmffpr.js";
|
|
44
44
|
|
|
45
45
|
// ../../node_modules/fflate/esm/index.mjs
|
|
46
46
|
import { createRequire } from "module";
|
|
@@ -2139,12 +2139,26 @@ class NodeFileSystem {
|
|
|
2139
2139
|
throw error;
|
|
2140
2140
|
}
|
|
2141
2141
|
}
|
|
2142
|
-
async writeFile(filePath, data) {
|
|
2142
|
+
async writeFile(filePath, data, options) {
|
|
2143
2143
|
const dir = path.dirname(filePath);
|
|
2144
2144
|
if (dir) {
|
|
2145
2145
|
await fs.mkdir(dir, { recursive: true });
|
|
2146
2146
|
}
|
|
2147
|
-
|
|
2147
|
+
if (options?.mode === undefined || process.platform === "win32") {
|
|
2148
|
+
if (options?.exclusive) {
|
|
2149
|
+
await fs.writeFile(filePath, data, { flag: "wx" });
|
|
2150
|
+
} else {
|
|
2151
|
+
await fs.writeFile(filePath, data);
|
|
2152
|
+
}
|
|
2153
|
+
return;
|
|
2154
|
+
}
|
|
2155
|
+
const handle = await fs.open(filePath, options.exclusive ? "wx" : "w", options.mode);
|
|
2156
|
+
try {
|
|
2157
|
+
await handle.chmod(options.mode);
|
|
2158
|
+
await handle.writeFile(data);
|
|
2159
|
+
} finally {
|
|
2160
|
+
await handle.close();
|
|
2161
|
+
}
|
|
2148
2162
|
}
|
|
2149
2163
|
async appendFile(filePath, data) {
|
|
2150
2164
|
const dir = path.dirname(filePath);
|
|
@@ -2179,7 +2193,8 @@ class NodeFileSystem {
|
|
|
2179
2193
|
isDirectory: () => stats.isDirectory(),
|
|
2180
2194
|
size: stats.size,
|
|
2181
2195
|
mtimeMs: stats.mtimeMs,
|
|
2182
|
-
ctimeMs: stats.ctimeMs
|
|
2196
|
+
ctimeMs: stats.ctimeMs,
|
|
2197
|
+
mode: stats.mode
|
|
2183
2198
|
};
|
|
2184
2199
|
} catch (error) {
|
|
2185
2200
|
if (this.isEnoent(error))
|
|
@@ -2190,8 +2205,13 @@ class NodeFileSystem {
|
|
|
2190
2205
|
async exists(filePath) {
|
|
2191
2206
|
return existsSync(filePath);
|
|
2192
2207
|
}
|
|
2193
|
-
async mkdir(dirPath) {
|
|
2194
|
-
await fs.mkdir(dirPath, { recursive: true });
|
|
2208
|
+
async mkdir(dirPath, options) {
|
|
2209
|
+
await fs.mkdir(dirPath, { recursive: true, mode: options?.mode });
|
|
2210
|
+
}
|
|
2211
|
+
async chmod(targetPath, mode) {
|
|
2212
|
+
if (process.platform === "win32")
|
|
2213
|
+
return;
|
|
2214
|
+
await fs.chmod(targetPath, mode);
|
|
2195
2215
|
}
|
|
2196
2216
|
async acquireLock(lockPath) {
|
|
2197
2217
|
const canonicalPath = await this.canonicalizeLockTarget(lockPath);
|
|
@@ -7601,6 +7621,8 @@ var readTokenScopes = (accessToken) => accessToken ? pickScopes(decodeClaims(acc
|
|
|
7601
7621
|
// ../auth/src/constants.ts
|
|
7602
7622
|
var UIPATH_HOME_DIR = ".uipath";
|
|
7603
7623
|
var AUTH_FILENAME = ".auth";
|
|
7624
|
+
var AUTH_FILE_MODE = 384;
|
|
7625
|
+
var AUTH_DIR_MODE = 448;
|
|
7604
7626
|
var DEFAULT_BASE_URL = "https://cloud.uipath.com";
|
|
7605
7627
|
var DEFAULT_AUTH_TIMEOUT_MS2 = 5 * 60 * 1000;
|
|
7606
7628
|
|
|
@@ -8265,6 +8287,38 @@ var loadEnvFileAsync = async ({ envPath }) => {
|
|
|
8265
8287
|
}
|
|
8266
8288
|
return parseEnvContent(content);
|
|
8267
8289
|
};
|
|
8290
|
+
var findAuthHomeDir = (fs, dir) => {
|
|
8291
|
+
let current = dir;
|
|
8292
|
+
for (;; ) {
|
|
8293
|
+
if (fs.path.basename(current) === UIPATH_HOME_DIR)
|
|
8294
|
+
return current;
|
|
8295
|
+
const parent = fs.path.dirname(current);
|
|
8296
|
+
if (parent === current)
|
|
8297
|
+
return;
|
|
8298
|
+
current = parent;
|
|
8299
|
+
}
|
|
8300
|
+
};
|
|
8301
|
+
var TEMP_FILE_ATTEMPTS = 5;
|
|
8302
|
+
var isFileExists = (error) => error instanceof Error && error.code === "EEXIST";
|
|
8303
|
+
var writeTempFile = async (fs, targetPath, content) => {
|
|
8304
|
+
for (let attempt = 1;; attempt++) {
|
|
8305
|
+
const tempPath = `${targetPath}.${crypto.randomUUID()}.tmp`;
|
|
8306
|
+
try {
|
|
8307
|
+
await fs.writeFile(tempPath, content, {
|
|
8308
|
+
mode: AUTH_FILE_MODE,
|
|
8309
|
+
exclusive: true
|
|
8310
|
+
});
|
|
8311
|
+
return tempPath;
|
|
8312
|
+
} catch (error) {
|
|
8313
|
+
if (!isFileExists(error)) {
|
|
8314
|
+
await fs.rm(tempPath).catch(() => {});
|
|
8315
|
+
throw error;
|
|
8316
|
+
}
|
|
8317
|
+
if (attempt === TEMP_FILE_ATTEMPTS)
|
|
8318
|
+
throw error;
|
|
8319
|
+
}
|
|
8320
|
+
}
|
|
8321
|
+
};
|
|
8268
8322
|
var saveEnvFileAsync = async ({
|
|
8269
8323
|
envPath,
|
|
8270
8324
|
data,
|
|
@@ -8292,10 +8346,18 @@ var saveEnvFileAsync = async ({
|
|
|
8292
8346
|
`)}
|
|
8293
8347
|
`;
|
|
8294
8348
|
const dir = fs.path.dirname(absolutePath);
|
|
8295
|
-
await fs.mkdir(dir);
|
|
8296
|
-
const
|
|
8297
|
-
|
|
8298
|
-
|
|
8349
|
+
await fs.mkdir(dir, { mode: AUTH_DIR_MODE });
|
|
8350
|
+
const authHomeDir = findAuthHomeDir(fs, dir);
|
|
8351
|
+
if (authHomeDir !== undefined) {
|
|
8352
|
+
await fs.chmod?.(authHomeDir, AUTH_DIR_MODE);
|
|
8353
|
+
}
|
|
8354
|
+
const tempPath = await writeTempFile(fs, absolutePath, content);
|
|
8355
|
+
try {
|
|
8356
|
+
await fs.rename(tempPath, absolutePath);
|
|
8357
|
+
} catch (error) {
|
|
8358
|
+
await fs.rm(tempPath).catch(() => {});
|
|
8359
|
+
throw error;
|
|
8360
|
+
}
|
|
8299
8361
|
};
|
|
8300
8362
|
|
|
8301
8363
|
// ../auth/src/loginStatus.ts
|
|
@@ -8892,4 +8954,4 @@ var TENANT_SELECTION_CODES = new Set([
|
|
|
8892
8954
|
]);
|
|
8893
8955
|
export { getFileSystem, catchError, isCliErrorCode, isRetryHint, isHtmlDocument, extractErrorDetails2, extractErrorMessage, instructionsFor, RESULTS, notSupportedFailure, InvalidArgumentError, Command, Option, getOutputSink, LogLevel, logger, configureLogger, EXIT_CODES, Pagination, SuccessOutput, OutputFormatter, processContext, mapWithConcurrency, requireConfirmation, isGuid, resolveDeprecatedOptionAlias, warnDeprecatedOptionAlias, addDeprecatedOptionAlias, createHiddenDeprecatedTenantOption, parseLimit, parseOffset, parseBoundedInt, PollOutcome, ErrorDecision, mapPollFailure, pollUntil, quoteForShell, resolveSessionIdentity, getAuthContext };
|
|
8894
8956
|
|
|
8895
|
-
//# debugId=
|
|
8957
|
+
//# debugId=7E07CECF601A356464756E2164756E21
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
pollUntil,
|
|
29
29
|
quoteForShell,
|
|
30
30
|
getAuthContext
|
|
31
|
-
} from "./tool-
|
|
31
|
+
} from "./tool-m04xq6t6.js";
|
|
32
32
|
import {
|
|
33
33
|
Configuration2,
|
|
34
34
|
ResponseError2,
|
|
@@ -159,7 +159,7 @@ import {
|
|
|
159
159
|
writeZipResponse,
|
|
160
160
|
registerProjectExportCommand,
|
|
161
161
|
registerMigrationCommand
|
|
162
|
-
} from "./tool-
|
|
162
|
+
} from "./tool-s1wmffpr.js";
|
|
163
163
|
import {
|
|
164
164
|
FolderDtoFeedTypeEnum2,
|
|
165
165
|
FoldersApi2,
|
|
@@ -170,7 +170,7 @@ import {
|
|
|
170
170
|
createApiClient2,
|
|
171
171
|
resolveFolder2,
|
|
172
172
|
quoteODataStringLiteral2
|
|
173
|
-
} from "./tool-
|
|
173
|
+
} from "./tool-vszp11m0.js";
|
|
174
174
|
import {
|
|
175
175
|
__toESM,
|
|
176
176
|
__commonJS,
|
|
@@ -9260,7 +9260,7 @@ var package_default = {
|
|
|
9260
9260
|
name: "@uipath/test-manager-tool",
|
|
9261
9261
|
author: "UiPath",
|
|
9262
9262
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
9263
|
-
version: "1.206.0-preview.
|
|
9263
|
+
version: "1.206.0-preview.323",
|
|
9264
9264
|
description: "Manage test cases, test sets, executions, and results.",
|
|
9265
9265
|
private: false,
|
|
9266
9266
|
repository: {
|
|
@@ -18623,7 +18623,7 @@ var IMPORT_EXAMPLES = [
|
|
|
18623
18623
|
];
|
|
18624
18624
|
var registerProjectImportCommand = (parent) => {
|
|
18625
18625
|
parent.command("import").description("Import a .tmh package into a project, an existing one or one created from the package. The file is uploaded in chunks and the service processes it as a background job; this returns the job id unless --wait is given.").addOption(projectKeyOption()).addOption(projectIdOption()).requiredOption("--file <path>", "The .tmh package to import. It is read into memory whole, and packages over 2 GiB are refused").option("--create-project", "Create the target project from the name, key and description recorded in the package, instead of importing into an existing one. It stays inactive until the import finishes").option("--new-project-name <name>", "Name for the project --create-project makes, instead of the package's").option("--new-project-key <key>", "Key for the project --create-project makes, instead of the package's. Must be free in this tenant").addOption(new Option("--include <content...>", `Content to bring in, space-separated. ${describeContentDefaults(IMPORT_CONTENT)}`).choices(IMPORT_CONTENT_CHOICES)).addOption(new Option("--exclude <content...>", `Content to leave out, space-separated. ${describeContentDefaults(IMPORT_CONTENT)}`).choices(IMPORT_CONTENT_CHOICES)).option("--wait", "Poll until the import finishes").option("--timeout <seconds>", "Maximum seconds to wait (0 = no timeout). Requires --wait.", String(DEFAULT_IMPORT_TIMEOUT_MS / 1000)).option("--poll-interval <seconds>", "Seconds between status checks. Requires --wait.", String(DEFAULT_MIGRATION_INTERVAL_MS / 1000)).addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--log-level <level>", "Log verbosity: debug, info, warn, error", "Information").examples(IMPORT_EXAMPLES).trackedAction(processContext, async (options) => {
|
|
18626
|
-
const { executeImport } = await import("./migration-import-run-
|
|
18626
|
+
const { executeImport } = await import("./migration-import-run-zsb56hqa.js");
|
|
18627
18627
|
await executeImport(options);
|
|
18628
18628
|
});
|
|
18629
18629
|
};
|
|
@@ -22372,7 +22372,7 @@ function toTestCaseRun(log, assertions) {
|
|
|
22372
22372
|
async function lookUpFolderName(folderKey, tenant) {
|
|
22373
22373
|
if (!folderKey)
|
|
22374
22374
|
return "";
|
|
22375
|
-
const { resolveFolder } = await import("./index-
|
|
22375
|
+
const { resolveFolder } = await import("./index-g7z0gczy.js");
|
|
22376
22376
|
const [error, folder] = await catchError(resolveFolder({ folderKey }, { tenant }));
|
|
22377
22377
|
if (error) {
|
|
22378
22378
|
logger.debug(`Could not read folder ${folderKey} for the report: ${error.message}`);
|
|
@@ -32757,4 +32757,4 @@ var registerCommands2 = async (program) => {
|
|
|
32757
32757
|
|
|
32758
32758
|
export { metadata2, registerCommands2 };
|
|
32759
32759
|
|
|
32760
|
-
//# debugId=
|
|
32760
|
+
//# debugId=1B759812C67D068864756E2164756E21
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
logger,
|
|
10
10
|
resolveSessionIdentity,
|
|
11
11
|
getAuthContext
|
|
12
|
-
} from "./tool-
|
|
12
|
+
} from "./tool-m04xq6t6.js";
|
|
13
13
|
|
|
14
14
|
// ../orchestrator-sdk/generated/src/runtime.ts
|
|
15
15
|
var BASE_PATH = "https://alpha.uipath.com/Ada/byoa/orchestrator_".replace(/\/+$/, "");
|
package/dist/tool.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
metadata2,
|
|
3
3
|
registerCommands2
|
|
4
|
-
} from "./tool-
|
|
5
|
-
import"./tool-
|
|
4
|
+
} from "./tool-vnk7nvea.js";
|
|
5
|
+
import"./tool-s1wmffpr.js";
|
|
6
6
|
import"./tool-vgc9gpy6.js";
|
|
7
|
-
import"./tool-
|
|
8
|
-
import"./tool-
|
|
7
|
+
import"./tool-vszp11m0.js";
|
|
8
|
+
import"./tool-m04xq6t6.js";
|
|
9
9
|
import"./tool-1nkyed5m.js";
|
|
10
10
|
import"./tool-6mpkbszw.js";
|
|
11
11
|
export {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@uipath/test-manager-tool",
|
|
3
3
|
"author": "UiPath",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
|
-
"version": "1.206.0-preview.
|
|
5
|
+
"version": "1.206.0-preview.323",
|
|
6
6
|
"description": "Manage test cases, test sets, executions, and results.",
|
|
7
7
|
"private": false,
|
|
8
8
|
"repository": {
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"files": [
|
|
28
28
|
"dist"
|
|
29
29
|
],
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "a752d8a8d78de138e3be0a19642620fec7893d99"
|
|
31
31
|
}
|