@uipath/agent-tool 1.206.0-preview.296 → 1.206.0-preview.297
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/THIRD-PARTY-NOTICES.md +63 -1
- package/dist/browser-strategy-gnftxwsf.js +98 -0
- package/dist/executor-tool.js +8 -7
- package/dist/{index-ybw87d41.js → index-18dnd3nk.js} +5 -4
- package/dist/{index-aytc7vwb.js → index-gsagrm9w.js} +3 -3
- package/dist/index-kvhrzcvf.js +22 -0
- package/dist/{index-41ykvvtr.js → index-r7ff4pb0.js} +9 -8
- package/dist/index.js +9 -8
- package/dist/{memory-runtime-service-cp5eqzvz.js → memory-runtime-service-tt5y1af6.js} +7 -6
- package/dist/node-strategy-fk02jqd8.js +463 -0
- package/dist/packager-tool-1qg04b7q.js +13 -0
- package/dist/{packager-tool-z6a5nr2d.js → packager-tool-2dd1qswc.js} +7 -7
- package/dist/{packager-tool-0fh43aka.js → packager-tool-35n6334n.js} +96 -54
- package/dist/{packager-tool-4j09ztk2.js → packager-tool-3t6d1zdz.js} +1 -1
- package/dist/{packager-tool-qvsazy59.js → packager-tool-9nh85680.js} +4 -4
- package/dist/{packager-tool-qr8dtv3r.js → packager-tool-9xrkfzn1.js} +542 -135
- package/dist/{packager-tool-1373myfq.js → packager-tool-b0fh39zt.js} +8 -8
- package/dist/{packager-tool-21r3phhc.js → packager-tool-dy6gcgks.js} +30 -2
- package/dist/packager-tool-xd2w5pct.js +31 -0
- package/dist/{packager-tool-cc2sgsw1.js → packager-tool-xt86c1ek.js} +6 -20
- package/dist/packager-tool-zdqbp34f.js +14 -0
- package/dist/solution-auth-4zs3axft.js +11 -0
- package/dist/tool.js +10 -9
- package/package.json +2 -2
- package/dist/solution-auth-wmeqt2hh.js +0 -10
|
@@ -9,26 +9,26 @@ import {
|
|
|
9
9
|
readAttachmentSpecs,
|
|
10
10
|
logger,
|
|
11
11
|
OutputFormatter
|
|
12
|
-
} from "./packager-tool-
|
|
12
|
+
} from "./packager-tool-dy6gcgks.js";
|
|
13
13
|
import {
|
|
14
14
|
PersonalWorkspacesApi2,
|
|
15
15
|
createApiClient2,
|
|
16
16
|
JobAttachmentUploadError2,
|
|
17
17
|
uploadJobAttachment2
|
|
18
|
-
} from "./packager-tool-
|
|
18
|
+
} from "./packager-tool-2dd1qswc.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./packager-tool-
|
|
20
|
+
getAuthContext2
|
|
21
|
+
} from "./packager-tool-9xrkfzn1.js";
|
|
22
22
|
import {
|
|
23
23
|
finalizeZip642,
|
|
24
24
|
bundleSolution2,
|
|
25
25
|
uploadOrOverwriteSolution2
|
|
26
|
-
} from "./packager-tool-
|
|
26
|
+
} from "./packager-tool-xt86c1ek.js";
|
|
27
27
|
import {
|
|
28
28
|
updateUipxSolutionId2,
|
|
29
29
|
findSolutionFile2,
|
|
30
30
|
updateSolutionFile2
|
|
31
|
-
} from "./packager-tool-
|
|
31
|
+
} from "./packager-tool-3t6d1zdz.js";
|
|
32
32
|
import {
|
|
33
33
|
zipSync
|
|
34
34
|
} from "./packager-tool-wbksf242.js";
|
|
@@ -523,7 +523,7 @@ function toForwardSlash(path) {
|
|
|
523
523
|
return path.replace(/\\/g, "/");
|
|
524
524
|
}
|
|
525
525
|
async function resolveStudioWebConfig() {
|
|
526
|
-
const auth = await
|
|
526
|
+
const auth = await getAuthContext2({ requireOrganizationName: true });
|
|
527
527
|
return {
|
|
528
528
|
baseUrl: auth.baseUrl,
|
|
529
529
|
tenantId: auth.tenantId,
|
|
@@ -963,4 +963,4 @@ function parseOutput(outputArguments) {
|
|
|
963
963
|
|
|
964
964
|
export { migrateLegacyToolGuardrailPolicies, AgentProjectService, resolveStudioWebConfig, AgentLocalWorkspaceEvalPreparer, AttachmentInputError, toAttachmentSummaries, prepareAttachmentInputs, AgentDebugCancelledError, AgentDebugAttachmentUploadError, AgentDebugStartOutcomeUnknownError, AgentDebugService };
|
|
965
965
|
|
|
966
|
-
//# debugId=
|
|
966
|
+
//# debugId=3AA2DB82C441A8ED64756E2164756E21
|
|
@@ -3423,6 +3423,23 @@ async function readAttachmentSpecs(specs) {
|
|
|
3423
3423
|
};
|
|
3424
3424
|
}));
|
|
3425
3425
|
}
|
|
3426
|
+
// ../common/src/auth-challenge.ts
|
|
3427
|
+
var TOKEN_SHAPED = /\beyJ[A-Za-z0-9_-]{6,}\.[A-Za-z0-9_-]+(?:\.[A-Za-z0-9_-]*)?|\bBearer\s+[A-Za-z0-9._~+/=-]{8,}/gi;
|
|
3428
|
+
function redactTokens(text) {
|
|
3429
|
+
return text.replace(TOKEN_SHAPED, "[REDACTED]");
|
|
3430
|
+
}
|
|
3431
|
+
var MAX_CHALLENGE_DESCRIPTION = 200;
|
|
3432
|
+
function parseAuthChallenge(header) {
|
|
3433
|
+
if (!header)
|
|
3434
|
+
return {};
|
|
3435
|
+
const code = /\berror="([^"]*)"/.exec(header)?.[1]?.trim();
|
|
3436
|
+
const raw = /\berror_description="([^"]*)"/.exec(header)?.[1]?.trim();
|
|
3437
|
+
const description = raw ? redactTokens(raw).slice(0, MAX_CHALLENGE_DESCRIPTION) : undefined;
|
|
3438
|
+
return {
|
|
3439
|
+
error: code || undefined,
|
|
3440
|
+
description: description || undefined
|
|
3441
|
+
};
|
|
3442
|
+
}
|
|
3426
3443
|
// ../common/src/error-instructions.ts
|
|
3427
3444
|
function extractHttpStatus(err) {
|
|
3428
3445
|
if (!err || typeof err !== "object")
|
|
@@ -3513,6 +3530,17 @@ var RESULTS = {
|
|
|
3513
3530
|
|
|
3514
3531
|
// ../common/src/classified-failure.ts
|
|
3515
3532
|
var MAX_QUOTED_BODY_CHARS = 200;
|
|
3533
|
+
async function classifiedFailure(message, error) {
|
|
3534
|
+
const details = await extractErrorDetails(error);
|
|
3535
|
+
return {
|
|
3536
|
+
Result: details.result,
|
|
3537
|
+
ErrorCode: details.errorCode,
|
|
3538
|
+
Message: message,
|
|
3539
|
+
Instructions: details.message,
|
|
3540
|
+
Retry: details.retry,
|
|
3541
|
+
...details.context ? { Context: details.context } : {}
|
|
3542
|
+
};
|
|
3543
|
+
}
|
|
3516
3544
|
async function authContextFailure(error, sessionInstructions) {
|
|
3517
3545
|
const details = await extractErrorDetails(error);
|
|
3518
3546
|
const missingIdentity = hasIdentityInstructionContext(error);
|
|
@@ -6832,6 +6860,6 @@ function unsupportedSolutionProjectType(projectType) {
|
|
|
6832
6860
|
var shippedKeysSlot = singleton("ShipSucceededDedupeKeys");
|
|
6833
6861
|
// ../common/src/tool-provider.ts
|
|
6834
6862
|
var factorySlot = singleton("PackagerFactoryProvider");
|
|
6835
|
-
export { catchError, extractErrorDetails, extractErrorMessage, extractErrorMessageSync, appendOption, ATTACHMENT_UPLOAD_INSTRUCTIONS, parseAttachmentSpec, readAttachmentSpecs, RESULTS, authContextFailure, summarizePlatformBody, Command, logger, OutputFormatter, processContext, isGuid, mimeTypeForFileName, parseBoundedInt, getSdkUserAgentToken, addSdkUserAgentHeader, installSdkUserAgentHeader, quoteForShell, unsupportedSolutionProjectType };
|
|
6863
|
+
export { catchError, extractErrorDetails, extractErrorMessage, extractErrorMessageSync, appendOption, ATTACHMENT_UPLOAD_INSTRUCTIONS, parseAttachmentSpec, readAttachmentSpecs, redactTokens, parseAuthChallenge, RESULTS, classifiedFailure, authContextFailure, summarizePlatformBody, Command, logger, OutputFormatter, processContext, isGuid, mimeTypeForFileName, parseBoundedInt, getSdkUserAgentToken, addSdkUserAgentHeader, installSdkUserAgentHeader, quoteForShell, unsupportedSolutionProjectType };
|
|
6836
6864
|
|
|
6837
|
-
//# debugId=
|
|
6865
|
+
//# debugId=DE50ED1E551B672764756E2164756E21
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// ../auth/src/catch-error.ts
|
|
2
|
+
function isPromiseLike(value) {
|
|
3
|
+
return value !== null && typeof value === "object" && typeof value.then === "function";
|
|
4
|
+
}
|
|
5
|
+
function catchError2(fnOrPromise) {
|
|
6
|
+
if (isPromiseLike(fnOrPromise)) {
|
|
7
|
+
return settlePromiseLike(fnOrPromise);
|
|
8
|
+
}
|
|
9
|
+
try {
|
|
10
|
+
const result = fnOrPromise();
|
|
11
|
+
if (isPromiseLike(result)) {
|
|
12
|
+
return settlePromiseLike(result);
|
|
13
|
+
}
|
|
14
|
+
return [undefined, result];
|
|
15
|
+
} catch (error) {
|
|
16
|
+
return [
|
|
17
|
+
error instanceof Error ? error : new Error(String(error)),
|
|
18
|
+
undefined
|
|
19
|
+
];
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
function settlePromiseLike(thenable) {
|
|
23
|
+
return Promise.resolve(thenable).then((data) => [undefined, data]).catch((error) => [
|
|
24
|
+
error instanceof Error ? error : new Error(String(error)),
|
|
25
|
+
undefined
|
|
26
|
+
]);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { catchError2 };
|
|
30
|
+
|
|
31
|
+
//# debugId=5BBFFF71F3FAF6A164756E2164756E21
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
catchError,
|
|
3
|
+
redactTokens,
|
|
4
|
+
parseAuthChallenge,
|
|
3
5
|
RESULTS,
|
|
4
6
|
summarizePlatformBody,
|
|
5
7
|
logger,
|
|
6
8
|
getSdkUserAgentToken,
|
|
7
9
|
addSdkUserAgentHeader,
|
|
8
10
|
installSdkUserAgentHeader
|
|
9
|
-
} from "./packager-tool-
|
|
11
|
+
} from "./packager-tool-dy6gcgks.js";
|
|
10
12
|
import {
|
|
11
13
|
readUipxFile
|
|
12
|
-
} from "./packager-tool-
|
|
14
|
+
} from "./packager-tool-3t6d1zdz.js";
|
|
13
15
|
import {
|
|
14
16
|
zipSync
|
|
15
17
|
} from "./packager-tool-wbksf242.js";
|
|
@@ -502,7 +504,7 @@ var package_default = {
|
|
|
502
504
|
name: "@uipath/solution-sdk",
|
|
503
505
|
author: "UiPath",
|
|
504
506
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
505
|
-
version: "1.206.0-preview.
|
|
507
|
+
version: "1.206.0-preview.297",
|
|
506
508
|
repository: {
|
|
507
509
|
type: "git",
|
|
508
510
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -1214,22 +1216,6 @@ function requestPath(url) {
|
|
|
1214
1216
|
const [, parsed] = catchError(() => new URL(url));
|
|
1215
1217
|
return parsed ? `${parsed.pathname}${parsed.search}` : url;
|
|
1216
1218
|
}
|
|
1217
|
-
var TOKEN_SHAPED = /\beyJ[A-Za-z0-9_-]{6,}\.[A-Za-z0-9_-]+(?:\.[A-Za-z0-9_-]*)?|\bBearer\s+[A-Za-z0-9._~+/=-]{8,}/gi;
|
|
1218
|
-
function redactTokens(text) {
|
|
1219
|
-
return text.replace(TOKEN_SHAPED, "[REDACTED]");
|
|
1220
|
-
}
|
|
1221
|
-
var MAX_CHALLENGE_DESCRIPTION = 200;
|
|
1222
|
-
function parseAuthChallenge(header) {
|
|
1223
|
-
if (!header)
|
|
1224
|
-
return {};
|
|
1225
|
-
const code = /\berror="([^"]*)"/.exec(header)?.[1]?.trim();
|
|
1226
|
-
const raw = /\berror_description="([^"]*)"/.exec(header)?.[1]?.trim();
|
|
1227
|
-
const description = raw ? redactTokens(raw).slice(0, MAX_CHALLENGE_DESCRIPTION) : undefined;
|
|
1228
|
-
return {
|
|
1229
|
-
error: code || undefined,
|
|
1230
|
-
description: description || undefined
|
|
1231
|
-
};
|
|
1232
|
-
}
|
|
1233
1219
|
function summarizeAuthRefusalBody(body) {
|
|
1234
1220
|
return summarizePlatformBody(redactTokens(body));
|
|
1235
1221
|
}
|
|
@@ -1431,4 +1417,4 @@ async function uploadOrOverwriteSolution2(config, organizationName, fileBufferOr
|
|
|
1431
1417
|
}
|
|
1432
1418
|
export { StudioWebIncompatibleProjectError2, finalizeZip642, UipignoreExcludesProjectError2, bundleSolution2, isSolutionUploadHttpError2, buildSolutionUploadFailureOutput2, uploadOrOverwriteSolution2 };
|
|
1433
1419
|
|
|
1434
|
-
//# debugId=
|
|
1420
|
+
//# debugId=F9C1CF173548A1FB64756E2164756E21
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// ../auth/src/utils/platform.ts
|
|
2
|
+
function isBrowser2() {
|
|
3
|
+
return typeof globalThis !== "undefined" && "window" in globalThis && "document" in globalThis;
|
|
4
|
+
}
|
|
5
|
+
function getGlobalThis() {
|
|
6
|
+
if (typeof globalThis !== "undefined") {
|
|
7
|
+
return globalThis;
|
|
8
|
+
}
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { isBrowser2, getGlobalThis };
|
|
13
|
+
|
|
14
|
+
//# debugId=BB900EA7514A888D64756E2164756E21
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getSolutionAuthContext2
|
|
3
|
+
} from "./packager-tool-9nh85680.js";
|
|
4
|
+
import"./packager-tool-9xrkfzn1.js";
|
|
5
|
+
import"./packager-tool-0ajs8pnk.js";
|
|
6
|
+
import"./packager-tool-1qg04b7q.js";
|
|
7
|
+
export {
|
|
8
|
+
getSolutionAuthContext2 as getSolutionAuthContext
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
//# debugId=8C64D22B8E0C22F864756E2164756E21
|
package/dist/tool.js
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
metadata2,
|
|
3
3
|
registerCommands2
|
|
4
|
-
} from "./packager-tool-
|
|
5
|
-
import"./packager-tool-
|
|
6
|
-
import"./packager-tool-
|
|
7
|
-
import"./packager-tool-
|
|
8
|
-
import"./packager-tool-
|
|
9
|
-
import"./packager-tool-
|
|
10
|
-
import"./packager-tool-
|
|
11
|
-
import"./packager-tool-0ajs8pnk.js";
|
|
4
|
+
} from "./packager-tool-35n6334n.js";
|
|
5
|
+
import"./packager-tool-b0fh39zt.js";
|
|
6
|
+
import"./packager-tool-2dd1qswc.js";
|
|
7
|
+
import"./packager-tool-9xrkfzn1.js";
|
|
8
|
+
import"./packager-tool-xt86c1ek.js";
|
|
9
|
+
import"./packager-tool-3t6d1zdz.js";
|
|
10
|
+
import"./packager-tool-dy6gcgks.js";
|
|
12
11
|
import"./packager-tool-bh92xy8d.js";
|
|
12
|
+
import"./packager-tool-0ajs8pnk.js";
|
|
13
|
+
import"./packager-tool-1qg04b7q.js";
|
|
13
14
|
export {
|
|
14
15
|
metadata2 as metadata,
|
|
15
16
|
registerCommands2 as registerCommands
|
|
16
17
|
};
|
|
17
18
|
|
|
18
|
-
//# debugId=
|
|
19
|
+
//# debugId=AC0F61B59142B50164756E2164756E21
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@uipath/agent-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.297",
|
|
6
6
|
"description": "cli plugin for creating and managing UiPath low-code agents",
|
|
7
7
|
"private": false,
|
|
8
8
|
"repository": {
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"files": [
|
|
30
30
|
"dist"
|
|
31
31
|
],
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "8d037366da44f2a20a0bf10d0270d137a408f9f5"
|
|
33
33
|
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getSolutionAuthContext2
|
|
3
|
-
} from "./packager-tool-qvsazy59.js";
|
|
4
|
-
import"./packager-tool-qr8dtv3r.js";
|
|
5
|
-
import"./packager-tool-0ajs8pnk.js";
|
|
6
|
-
export {
|
|
7
|
-
getSolutionAuthContext2 as getSolutionAuthContext
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
//# debugId=D0318E126BDC065664756E2164756E21
|