@uipath/codedapp-tool 1.203.0-preview.230 → 1.203.0-preview.233
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.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
metadata,
|
|
4
4
|
registerCommands
|
|
5
|
-
} from "./packager-tool-
|
|
5
|
+
} from "./packager-tool-7cqx6z4h.js";
|
|
6
6
|
import {
|
|
7
7
|
Command
|
|
8
8
|
} from "./packager-tool-f1ptyxe1.js";
|
|
@@ -10,7 +10,7 @@ import"./packager-tool-bvm4jqr1.js";
|
|
|
10
10
|
import"./packager-tool-0gctz400.js";
|
|
11
11
|
import"./packager-tool-qyctya2j.js";
|
|
12
12
|
import"./packager-tool-yc4kw997.js";
|
|
13
|
-
import"./packager-tool-
|
|
13
|
+
import"./packager-tool-7ssjxrp3.js";
|
|
14
14
|
import"./packager-tool-aybzcdfg.js";
|
|
15
15
|
import"./packager-tool-1yh8g550.js";
|
|
16
16
|
|
|
@@ -33,8 +33,10 @@ import {
|
|
|
33
33
|
ACTION_SCHEMA_FILE_NAME,
|
|
34
34
|
WEBAPP_MANIFEST_FILE_NAME,
|
|
35
35
|
WebAppToolFactory,
|
|
36
|
-
parseActionSchema
|
|
37
|
-
|
|
36
|
+
parseActionSchema,
|
|
37
|
+
readProjectName,
|
|
38
|
+
validateActionSchema
|
|
39
|
+
} from "./packager-tool-7ssjxrp3.js";
|
|
38
40
|
import {
|
|
39
41
|
__commonJS,
|
|
40
42
|
__export,
|
|
@@ -20618,7 +20620,7 @@ var package_default = {
|
|
|
20618
20620
|
name: "@uipath/codedapp-tool",
|
|
20619
20621
|
author: "UiPath",
|
|
20620
20622
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
20621
|
-
version: "1.203.0-preview.
|
|
20623
|
+
version: "1.203.0-preview.233",
|
|
20622
20624
|
description: "Build, pack, publish, deploy, and manage UiPath Coded Web Applications.",
|
|
20623
20625
|
keywords: [
|
|
20624
20626
|
"cli-tool",
|
|
@@ -21179,6 +21181,7 @@ var API_ENDPOINTS = {
|
|
|
21179
21181
|
CONNECTIONS_RETRIEVE: "/orchestrator_/odata/Connections('{connectionKey}')",
|
|
21180
21182
|
STUDIO_WEB_CREATE_REFERENCED_RESOURCE: "/studio_/backend/api/resourcebuilder/solutions/{solutionId}/resources/reference",
|
|
21181
21183
|
DEPLOYED_APPS: "/apps_/default/api/v1/default/models/deployed/apps",
|
|
21184
|
+
DEPLOYED_CODED_APP: "/apps_/default/api/v1/default/models/deployed/codedapps/{packageName}",
|
|
21182
21185
|
DEPLOY_APP: "/apps_/default/api/v1/default/models/{systemName}/publish/versions/{deployVersion}/deploy",
|
|
21183
21186
|
EDIT_DEPLOYED_APP: "/apps_/default/api/v1/default/models/deployed/apps/{appId}",
|
|
21184
21187
|
PUBLISHED_APPS: "/apps_/default/api/v1/default/models/tenants/{tenantId}/publish/apps",
|
|
@@ -21453,6 +21456,7 @@ var MESSAGES = {
|
|
|
21453
21456
|
PUSH_DISALLOWED_EXTENSIONS: "Push blocked: files with disallowed extensions found. Only web-related file types are allowed.",
|
|
21454
21457
|
PUSH_FILE_TOO_LARGE: "Push blocked: one or more files exceed the 10 MB size limit. Consider uploading large assets to cloud storage and referencing them in your code instead.",
|
|
21455
21458
|
PUSH_LARGE_FILES_DECLINED: "Push cancelled by user.",
|
|
21459
|
+
PUSH_ALLOW_LARGE_FILES_REQUIRED: "Push blocked: one or more files exceed 2 MB. Pass --allow-large-files to push them.",
|
|
21456
21460
|
PUSH_BUILD_DIR_NOT_FOUND: "Build directory not found.",
|
|
21457
21461
|
PUSH_BUILD_DIR_NOT_DIRECTORY: "Build path is not a directory.",
|
|
21458
21462
|
PUSH_BUILD_DIR_STEPS: `Steps:
|
|
@@ -28659,12 +28663,13 @@ async function ensureFolderKey(logger2, explicitFolderKey, personalWorkspace) {
|
|
|
28659
28663
|
|
|
28660
28664
|
// src/actions/deploy.ts
|
|
28661
28665
|
var PUBLISHED_APP_LOOKUP_RETRY_DELAYS_MS = [1000, 2000, 4000, 8000];
|
|
28662
|
-
|
|
28663
|
-
|
|
28664
|
-
|
|
28666
|
+
var HTTP_NOT_FOUND = 404;
|
|
28667
|
+
async function getDeployedApp(appName, envConfig, legacyAppName) {
|
|
28668
|
+
const packageNames = [
|
|
28669
|
+
...new Set([appName, legacyAppName].filter((name) => Boolean(name)))
|
|
28665
28670
|
];
|
|
28666
|
-
for (const
|
|
28667
|
-
const url = appendQueryParams(`${envConfig.baseUrl}/${envConfig.orgId}${API_ENDPOINTS.
|
|
28671
|
+
for (const packageName of packageNames) {
|
|
28672
|
+
const url = appendQueryParams(`${envConfig.baseUrl}/${envConfig.orgId}${API_ENDPOINTS.DEPLOYED_CODED_APP.replace("{packageName}", encodeURIComponent(packageName))}`, BASIC_ORIGIN_QUERY_PARAMS);
|
|
28668
28673
|
const response = await fetch(url, {
|
|
28669
28674
|
method: "GET",
|
|
28670
28675
|
headers: createHeaders({
|
|
@@ -28673,12 +28678,11 @@ async function getDeployedApp(appName, displayTitle, envConfig, legacyAppName) {
|
|
|
28673
28678
|
folderKey: envConfig.folderKey
|
|
28674
28679
|
})
|
|
28675
28680
|
});
|
|
28681
|
+
if (response.status === HTTP_NOT_FOUND)
|
|
28682
|
+
continue;
|
|
28676
28683
|
if (!response.ok)
|
|
28677
28684
|
await handleHttpError(response, MESSAGES.ERROR_CONTEXT.APP_DEPLOYMENT);
|
|
28678
|
-
|
|
28679
|
-
const match = data.value.find((app) => searchTerms.includes(app.title));
|
|
28680
|
-
if (match)
|
|
28681
|
-
return match;
|
|
28685
|
+
return await response.json();
|
|
28682
28686
|
}
|
|
28683
28687
|
return null;
|
|
28684
28688
|
}
|
|
@@ -28839,7 +28843,7 @@ async function waitForUpgradeToLand(params) {
|
|
|
28839
28843
|
for (let poll = 0;poll < maxPolls; poll++) {
|
|
28840
28844
|
if (poll > 0)
|
|
28841
28845
|
await sleep(UPGRADE_VERIFY_POLL_INTERVAL_MS);
|
|
28842
|
-
const [lookupError, deployedApp] = await catchError(getDeployedApp(params.appName, params.
|
|
28846
|
+
const [lookupError, deployedApp] = await catchError(getDeployedApp(params.appName, params.envConfig, params.legacyAppName));
|
|
28843
28847
|
if (lookupError) {
|
|
28844
28848
|
consecutiveLookupFailures++;
|
|
28845
28849
|
if (consecutiveLookupFailures >= UPGRADE_VERIFY_MAX_CONSECUTIVE_LOOKUP_FAILURES) {
|
|
@@ -28956,7 +28960,7 @@ async function executeDeploy(options) {
|
|
|
28956
28960
|
validateAppNameLength(routingName);
|
|
28957
28961
|
let spinner = ora(MESSAGES.INFO.CHECKING_DEPLOYMENT_STATUS).start();
|
|
28958
28962
|
const [deployError, deployResult] = await catchError((async () => {
|
|
28959
|
-
const deployedApp = await getDeployedApp(appName,
|
|
28963
|
+
const deployedApp = await getDeployedApp(appName, envConfig, legacyAppName);
|
|
28960
28964
|
let operationResult;
|
|
28961
28965
|
if (deployedApp) {
|
|
28962
28966
|
spinner.text = MESSAGES.INFO.UPGRADING_APP;
|
|
@@ -28975,7 +28979,6 @@ async function executeDeploy(options) {
|
|
|
28975
28979
|
await upgradeApp({
|
|
28976
28980
|
appId: deployedApp.id,
|
|
28977
28981
|
appName,
|
|
28978
|
-
displayTitle,
|
|
28979
28982
|
currentDeploymentTitle: deployedApp.deploymentTitle,
|
|
28980
28983
|
deploymentTitleOverride,
|
|
28981
28984
|
legacyAppName,
|
|
@@ -29408,7 +29411,7 @@ var package_default2 = {
|
|
|
29408
29411
|
name: "@uipath/solution-sdk",
|
|
29409
29412
|
author: "UiPath",
|
|
29410
29413
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
29411
|
-
version: "1.203.0-preview.
|
|
29414
|
+
version: "1.203.0-preview.233",
|
|
29412
29415
|
repository: {
|
|
29413
29416
|
type: "git",
|
|
29414
29417
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -30433,7 +30436,13 @@ var registerPackCommand = (program) => {
|
|
|
30433
30436
|
};
|
|
30434
30437
|
|
|
30435
30438
|
// src/utils/action-schema.ts
|
|
30436
|
-
async function readAndParseActionSchema() {
|
|
30439
|
+
async function readAndParseActionSchema(appName) {
|
|
30440
|
+
return parseActionSchema(await readActionSchemaFile(), appName);
|
|
30441
|
+
}
|
|
30442
|
+
async function validateActionSchemaFile() {
|
|
30443
|
+
validateActionSchema(await readActionSchemaFile());
|
|
30444
|
+
}
|
|
30445
|
+
async function readActionSchemaFile() {
|
|
30437
30446
|
const fs = getFileSystem();
|
|
30438
30447
|
const cwd = fs.env.cwd();
|
|
30439
30448
|
const actionSchemaPath = fs.path.join(cwd, ACTION_SCHEMA_FILE_NAME);
|
|
@@ -30441,7 +30450,7 @@ async function readAndParseActionSchema() {
|
|
|
30441
30450
|
if (raw === null) {
|
|
30442
30451
|
throw new Error(`action-schema.json not found at ${actionSchemaPath}`);
|
|
30443
30452
|
}
|
|
30444
|
-
return
|
|
30453
|
+
return raw;
|
|
30445
30454
|
}
|
|
30446
30455
|
|
|
30447
30456
|
// src/actions/publish.ts
|
|
@@ -30534,7 +30543,8 @@ async function registerCodedApp(metadata, envConfig, isActionApp, feedId, logger
|
|
|
30534
30543
|
const url = appendQueryParams(`${envConfig.baseUrl}/${envConfig.orgId}${API_ENDPOINTS.PUBLISH_CODED_APP}`, BASIC_ORIGIN_QUERY_PARAMS);
|
|
30535
30544
|
let actionSchema = {};
|
|
30536
30545
|
if (isActionApp) {
|
|
30537
|
-
const
|
|
30546
|
+
const appName = feedId ? `${metadata.packageName}@${feedId}` : metadata.packageName;
|
|
30547
|
+
const [schemaError, parsedSchema] = await catchError(readAndParseActionSchema(appName));
|
|
30538
30548
|
if (schemaError) {
|
|
30539
30549
|
logger2.log("");
|
|
30540
30550
|
logger2.log(source_default.red(`${MESSAGES.ERRORS.FAILED_TO_PARSE_ACTION_SCHEMA} ${schemaError instanceof Error ? schemaError.message : MESSAGES.ERRORS.UNKNOWN_ERROR}`));
|
|
@@ -33388,7 +33398,8 @@ async function runUpdateResourceConfiguration(config) {
|
|
|
33388
33398
|
if (!await fs.exists(schemaPath)) {
|
|
33389
33399
|
config.logger.log(source_default.yellow(MESSAGES.ERRORS.ACTION_SCHEMA_REQUIRED_REMOTE));
|
|
33390
33400
|
} else {
|
|
33391
|
-
const
|
|
33401
|
+
const appName = await readProjectName(fs, config.rootDir, projectName);
|
|
33402
|
+
const parsedSchema = await readAndParseActionSchema(appName);
|
|
33392
33403
|
payload.actionSchema = JSON.stringify(parsedSchema);
|
|
33393
33404
|
}
|
|
33394
33405
|
}
|
|
@@ -33438,6 +33449,7 @@ function validateExtensions(allFiles, logger2) {
|
|
|
33438
33449
|
});
|
|
33439
33450
|
if (disallowed.length === 0)
|
|
33440
33451
|
return;
|
|
33452
|
+
logger2.stopSpinner?.();
|
|
33441
33453
|
logger2.log(source_default.red(`
|
|
33442
33454
|
Files with disallowed extensions:`));
|
|
33443
33455
|
for (const f of disallowed) {
|
|
@@ -33450,6 +33462,7 @@ function validateOversized(allFiles, logger2) {
|
|
|
33450
33462
|
const oversized = allFiles.filter((f) => f.content.length >= PUSH_FILE_SIZE_BLOCK_BYTES);
|
|
33451
33463
|
if (oversized.length === 0)
|
|
33452
33464
|
return;
|
|
33465
|
+
logger2.stopSpinner?.();
|
|
33453
33466
|
logger2.log(source_default.red(`
|
|
33454
33467
|
Files exceeding 10 MB size limit:`));
|
|
33455
33468
|
for (const f of oversized) {
|
|
@@ -33462,6 +33475,7 @@ async function validateLargeFiles(allFiles, logger2) {
|
|
|
33462
33475
|
const large = allFiles.filter((f) => f.content.length >= PUSH_FILE_SIZE_WARN_BYTES && f.content.length < PUSH_FILE_SIZE_BLOCK_BYTES);
|
|
33463
33476
|
if (large.length === 0)
|
|
33464
33477
|
return;
|
|
33478
|
+
logger2.stopSpinner?.();
|
|
33465
33479
|
logger2.log(source_default.yellow(`
|
|
33466
33480
|
Large files detected (> 2 MB):`));
|
|
33467
33481
|
for (const f of large) {
|
|
@@ -33470,7 +33484,7 @@ Large files detected (> 2 MB):`));
|
|
|
33470
33484
|
logger2.log(source_default.yellow(`Consider uploading large assets to cloud storage instead.
|
|
33471
33485
|
`));
|
|
33472
33486
|
if (!canPrompt()) {
|
|
33473
|
-
throw new Error(MESSAGES.ERRORS.
|
|
33487
|
+
throw new Error(MESSAGES.ERRORS.PUSH_ALLOW_LARGE_FILES_REQUIRED);
|
|
33474
33488
|
}
|
|
33475
33489
|
const { proceed } = await esm_default15.prompt([
|
|
33476
33490
|
{
|
|
@@ -33483,18 +33497,19 @@ Large files detected (> 2 MB):`));
|
|
|
33483
33497
|
if (!proceed) {
|
|
33484
33498
|
throw new Error(MESSAGES.ERRORS.PUSH_LARGE_FILES_DECLINED);
|
|
33485
33499
|
}
|
|
33500
|
+
logger2.startSpinner?.("Pushing...");
|
|
33486
33501
|
}
|
|
33487
|
-
async function
|
|
33502
|
+
async function validateActionSchema2(rootDir) {
|
|
33488
33503
|
const fs = getFileSystem();
|
|
33489
33504
|
const schemaPath = fs.path.join(rootDir, ACTION_SCHEMA_CONSTANTS.ACTION_SCHEMA_FILENAME);
|
|
33490
33505
|
if (!await fs.exists(schemaPath))
|
|
33491
33506
|
return;
|
|
33492
|
-
const [schemaErr] = await catchError(
|
|
33507
|
+
const [schemaErr] = await catchError(validateActionSchemaFile());
|
|
33493
33508
|
if (schemaErr) {
|
|
33494
33509
|
throw new Error(`${MESSAGES.ERRORS.INVALID_ACTION_SCHEMA} ${schemaErr.message}`);
|
|
33495
33510
|
}
|
|
33496
33511
|
}
|
|
33497
|
-
async function validatePushFiles(rootDir, bundlePath, logger2) {
|
|
33512
|
+
async function validatePushFiles(rootDir, bundlePath, logger2, options = {}) {
|
|
33498
33513
|
const buildFiles = await collectLocalFiles(rootDir, bundlePath);
|
|
33499
33514
|
const sourceFiles = await collectSourceFiles(rootDir, bundlePath);
|
|
33500
33515
|
const allFiles = [...buildFiles, ...sourceFiles];
|
|
@@ -33502,8 +33517,10 @@ async function validatePushFiles(rootDir, bundlePath, logger2) {
|
|
|
33502
33517
|
return;
|
|
33503
33518
|
validateExtensions(allFiles, logger2);
|
|
33504
33519
|
validateOversized(allFiles, logger2);
|
|
33505
|
-
|
|
33506
|
-
|
|
33520
|
+
if (!options.allowLargeFiles) {
|
|
33521
|
+
await validateLargeFiles(allFiles, logger2);
|
|
33522
|
+
}
|
|
33523
|
+
await validateActionSchema2(rootDir);
|
|
33507
33524
|
}
|
|
33508
33525
|
|
|
33509
33526
|
// src/actions/push.ts
|
|
@@ -33805,7 +33822,9 @@ async function executePush(options) {
|
|
|
33805
33822
|
if (preconditionErr) {
|
|
33806
33823
|
throw new Error(preconditionErr.message || MESSAGES.ERRORS.PUSH_VALIDATION_FAILED);
|
|
33807
33824
|
}
|
|
33808
|
-
await validatePushFiles(rootDir, bundlePath, logger2
|
|
33825
|
+
await validatePushFiles(rootDir, bundlePath, logger2, {
|
|
33826
|
+
allowLargeFiles: options.allowLargeFiles
|
|
33827
|
+
});
|
|
33809
33828
|
const handler = new WebAppFileHandler(config);
|
|
33810
33829
|
await handler.push();
|
|
33811
33830
|
await handler.importReferencedResources(options.ignoreResources ?? false);
|
|
@@ -33830,7 +33849,7 @@ var PUSH_EXAMPLES = [
|
|
|
33830
33849
|
}
|
|
33831
33850
|
];
|
|
33832
33851
|
var registerPushCommand = (program) => {
|
|
33833
|
-
program.command("push").description("Push local source code to Studio Web").option("--project-id <id>", "WebApp Project ID").option("--build-dir <dir>", "Build output directory", "dist").option("--ignore-resources", "Skip importing referenced resources").option("-v, --version <version>", "Set an explicit code version (e.g. 2.0.0)").option("--verbose", "Show detailed progress logs").option("--base-url <url>", "UiPath base URL").option("--org-id <id>", "Organization ID").option("--tenant-id <id>", "Tenant ID").option("--access-token <token>", "Access token").examples(PUSH_EXAMPLES).trackedAction(processContext, async (options) => {
|
|
33852
|
+
program.command("push").description("Push local source code to Studio Web").option("--project-id <id>", "WebApp Project ID").option("--build-dir <dir>", "Build output directory", "dist").option("--ignore-resources", "Skip importing referenced resources").option("--allow-large-files", "Allow pushing files between 2 MB and 10 MB").option("-v, --version <version>", "Set an explicit code version (e.g. 2.0.0)").option("--verbose", "Show detailed progress logs").option("--base-url <url>", "UiPath base URL").option("--org-id <id>", "Organization ID").option("--tenant-id <id>", "Tenant ID").option("--access-token <token>", "Access token").examples(PUSH_EXAMPLES).trackedAction(processContext, async (options) => {
|
|
33834
33853
|
const verbose = options.verbose ?? false;
|
|
33835
33854
|
getOutputSink().writeErr(`${source_default.blue(MESSAGES.INFO.PUSH_HEADER)}
|
|
33836
33855
|
|
|
@@ -33840,6 +33859,7 @@ var registerPushCommand = (program) => {
|
|
|
33840
33859
|
projectId: options.projectId,
|
|
33841
33860
|
buildDir: options.buildDir,
|
|
33842
33861
|
ignoreResources: options.ignoreResources,
|
|
33862
|
+
allowLargeFiles: options.allowLargeFiles,
|
|
33843
33863
|
codeVersion: options.version,
|
|
33844
33864
|
baseUrl: options.baseUrl,
|
|
33845
33865
|
orgId: options.orgId,
|
|
@@ -33916,4 +33936,4 @@ var registerCommands = async (program) => {
|
|
|
33916
33936
|
|
|
33917
33937
|
export { metadata, registerCommands };
|
|
33918
33938
|
|
|
33919
|
-
//# debugId=
|
|
33939
|
+
//# debugId=AD2D83837F55475664756E2164756E21
|
|
@@ -12657,6 +12657,15 @@ function appSubTypeFor(manifest) {
|
|
|
12657
12657
|
const row = SUBTYPE_BY_VARIANT[manifest?.type ?? "Coded" /* Coded */];
|
|
12658
12658
|
return isActionApp(manifest) ? row.action : row.app;
|
|
12659
12659
|
}
|
|
12660
|
+
async function readProjectName(fs7, projectDir, fallbackName) {
|
|
12661
|
+
const uiprojPath = fs7.path.join(projectDir, ProjectTool.ProjectFileName);
|
|
12662
|
+
const [readError, raw] = await catchError(fs7.readFile(uiprojPath, "utf-8"));
|
|
12663
|
+
if (readError || !raw)
|
|
12664
|
+
return fallbackName;
|
|
12665
|
+
const [parseError, parsed] = catchError(() => JSON.parse(raw));
|
|
12666
|
+
const name = parseError ? undefined : parsed?.Name;
|
|
12667
|
+
return typeof name === "string" && name.length > 0 ? name : fallbackName;
|
|
12668
|
+
}
|
|
12660
12669
|
|
|
12661
12670
|
// ../../node_modules/zod/v4/classic/external.js
|
|
12662
12671
|
var exports_external = {};
|
|
@@ -26988,10 +26997,16 @@ var JsonActionSchemaValidator = exports_external.object({
|
|
|
26988
26997
|
});
|
|
26989
26998
|
|
|
26990
26999
|
// ../packager/packager-tool-webapp/src/action-schema/parse.ts
|
|
26991
|
-
function parseActionSchema(raw) {
|
|
27000
|
+
function parseActionSchema(raw, appName) {
|
|
27001
|
+
if (typeof appName !== "string" || appName.length === 0) {
|
|
27002
|
+
throw new Error("parseActionSchema needs the app name to derive the schema key.");
|
|
27003
|
+
}
|
|
26992
27004
|
const parsed = JSON.parse(raw);
|
|
26993
27005
|
const validated = validate(parsed);
|
|
26994
|
-
return transformToParsedSchema(validated);
|
|
27006
|
+
return transformToParsedSchema(validated, appName);
|
|
27007
|
+
}
|
|
27008
|
+
function validateActionSchema(raw) {
|
|
27009
|
+
transformSections(validate(JSON.parse(raw)));
|
|
26995
27010
|
}
|
|
26996
27011
|
function validate(schema2) {
|
|
26997
27012
|
try {
|
|
@@ -27081,7 +27096,7 @@ function transformProperty(path3, name, propDef) {
|
|
|
27081
27096
|
properties
|
|
27082
27097
|
};
|
|
27083
27098
|
}
|
|
27084
|
-
function
|
|
27099
|
+
function transformSections(schema2) {
|
|
27085
27100
|
const transformSection = (section, sectionName) => section?.properties ? Object.keys(section.properties).map((name) => transformProperty(`${sectionName}.${name}`, name, section.properties[name])) : [];
|
|
27086
27101
|
const outcomes = schema2.outcomes?.properties ? Object.keys(schema2.outcomes.properties).map((name) => ({
|
|
27087
27102
|
name,
|
|
@@ -27094,17 +27109,22 @@ function transformToParsedSchema(schema2) {
|
|
|
27094
27109
|
version: 0
|
|
27095
27110
|
})) : [];
|
|
27096
27111
|
return {
|
|
27097
|
-
key: deterministicUuid("root"),
|
|
27098
|
-
version: 0,
|
|
27099
|
-
description: "Action Schema",
|
|
27100
|
-
id: `ID${deterministicUuid("root.id").replace(/-/g, "")}`,
|
|
27101
|
-
name: "ActionSchema",
|
|
27102
27112
|
inputs: transformSection(schema2.inputs, "inputs"),
|
|
27103
27113
|
outputs: transformSection(schema2.outputs, "outputs"),
|
|
27104
27114
|
inOuts: transformSection(schema2.inOuts, "inOuts"),
|
|
27105
27115
|
outcomes
|
|
27106
27116
|
};
|
|
27107
27117
|
}
|
|
27118
|
+
function transformToParsedSchema(schema2, appName) {
|
|
27119
|
+
return {
|
|
27120
|
+
key: deterministicUuid(`root:${appName}`),
|
|
27121
|
+
version: 0,
|
|
27122
|
+
description: "Action Schema",
|
|
27123
|
+
id: `ID${deterministicUuid(`root.id:${appName}`).replace(/-/g, "")}`,
|
|
27124
|
+
name: "ActionSchema",
|
|
27125
|
+
...transformSections(schema2)
|
|
27126
|
+
};
|
|
27127
|
+
}
|
|
27108
27128
|
|
|
27109
27129
|
// ../packager/packager-tool-webapp/src/action-schema/describe-action-app.ts
|
|
27110
27130
|
var ARTEFACT_KIND_APP = "app";
|
|
@@ -27162,7 +27182,8 @@ async function describeActionApp(projectDir, fs7) {
|
|
|
27162
27182
|
]
|
|
27163
27183
|
};
|
|
27164
27184
|
}
|
|
27165
|
-
const
|
|
27185
|
+
const appName = await readProjectName(fs7, projectDir, fs7.path.basename(projectDir));
|
|
27186
|
+
const [parseError, parsed] = catchError(() => parseActionSchema(raw, appName));
|
|
27166
27187
|
if (parseError) {
|
|
27167
27188
|
return {
|
|
27168
27189
|
projectSubType,
|
|
@@ -27192,6 +27213,6 @@ class WebAppContributingToolFactory extends WebAppToolFactory {
|
|
|
27192
27213
|
return describeActionApp(projectDir, fs7);
|
|
27193
27214
|
}
|
|
27194
27215
|
}
|
|
27195
|
-
export { WEBAPP_MANIFEST_FILE_NAME, ACTION_SCHEMA_FILE_NAME, parseActionSchema, WebAppToolFactory, WebAppContributingToolFactory };
|
|
27216
|
+
export { WEBAPP_MANIFEST_FILE_NAME, ACTION_SCHEMA_FILE_NAME, readProjectName, parseActionSchema, validateActionSchema, WebAppToolFactory, WebAppContributingToolFactory };
|
|
27196
27217
|
|
|
27197
|
-
//# debugId=
|
|
27218
|
+
//# debugId=B1004F3D57AD230164756E2164756E21
|
package/dist/packager-tool.js
CHANGED
package/dist/tool.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
metadata,
|
|
3
3
|
registerCommands
|
|
4
|
-
} from "./packager-tool-
|
|
4
|
+
} from "./packager-tool-7cqx6z4h.js";
|
|
5
5
|
import"./packager-tool-f1ptyxe1.js";
|
|
6
6
|
import"./packager-tool-bvm4jqr1.js";
|
|
7
7
|
import"./packager-tool-0gctz400.js";
|
|
8
8
|
import"./packager-tool-qyctya2j.js";
|
|
9
9
|
import"./packager-tool-yc4kw997.js";
|
|
10
|
-
import"./packager-tool-
|
|
10
|
+
import"./packager-tool-7ssjxrp3.js";
|
|
11
11
|
import"./packager-tool-aybzcdfg.js";
|
|
12
12
|
import"./packager-tool-1yh8g550.js";
|
|
13
13
|
export {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@uipath/codedapp-tool",
|
|
3
3
|
"author": "UiPath",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
|
-
"version": "1.203.0-preview.
|
|
5
|
+
"version": "1.203.0-preview.233",
|
|
6
6
|
"description": "Build, pack, publish, deploy, and manage UiPath Coded Web Applications.",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"cli-tool",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"publishConfig": {
|
|
30
30
|
"registry": "https://registry.npmjs.org/"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "641614a6f9817662baaf51dabdebbfa2a9334b1b"
|
|
33
33
|
}
|