@uipath/flow-tool 1.202.0 → 1.202.1
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/{binding-service-bptej768.js → binding-service-4y4gk5rb.js} +8 -6
- package/dist/{connector-service-69wbcqx4.js → connector-service-n0jw38wq.js} +7 -5
- package/dist/{debug-conversation-trigger-s7zmkrwz.js → debug-conversation-trigger-9gwtwxn6.js} +6 -4
- package/dist/{edge-service-2b97wf2r.js → edge-service-pxwzsne6.js} +6 -4
- package/dist/{flow-debug-service-z52qzmdh.js → flow-debug-service-m2ch7mwg.js} +26 -16
- package/dist/{flow-eval-node-target-q6951hcp.js → flow-eval-node-target-3530n69r.js} +6 -4
- package/dist/{flow-eval-run-service-2dts1gez.js → flow-eval-run-service-pdkvt1tp.js} +17 -9
- package/dist/{flow-eval-service-1rwppd84.js → flow-eval-service-4zhncch4.js} +6 -4
- package/dist/{flow-init-service-wper25ak.js → flow-init-service-40r1q53q.js} +8 -5
- package/dist/{flow-io-y34mx0vh.js → flow-io-23wgj1sg.js} +6 -4
- package/dist/{flow-migrate-service-95kd56rw.js → flow-migrate-service-n8bjdds3.js} +6 -4
- package/dist/{flow-pack-service-4kzv9wvd.js → flow-pack-service-sw4dbxvr.js} +18 -10
- package/dist/{flow-validate-service-hr2e664c.js → flow-validate-service-k7s2rbgc.js} +11 -9
- package/dist/{hitl-service-zxtn9rmm.js → hitl-service-sztgwdqk.js} +6 -4
- package/dist/index.js +2 -2
- package/dist/init.js +8 -5
- package/dist/maestro-automate-entry-6bxz7zxn.js +22 -0
- package/dist/{node-service-7kdpce7j.js → node-service-n183yy2f.js} +8 -6
- package/dist/{node-yz5tz1jx.js → node-tgybta62.js} +5 -3
- package/dist/{packager-tool-1znrarvv.js → packager-tool-0d7tcvg1.js} +2 -897
- package/dist/{packager-tool-g4pc6ngd.js → packager-tool-0g00g1a5.js} +1 -1
- package/dist/packager-tool-2513jrxr.js +898 -0
- package/dist/packager-tool-3bra2c4j.js +53 -0
- package/dist/{packager-tool-fgdf2zh8.js → packager-tool-3g534a1a.js} +1 -1
- package/dist/{packager-tool-rt64yypa.js → packager-tool-5wmnpaf0.js} +6 -6
- package/dist/packager-tool-9cq9atem.js +2 -0
- package/dist/{packager-tool-dp4c0936.js → packager-tool-af8bw5wd.js} +35 -9
- package/dist/{packager-tool-2f0mt21x.js → packager-tool-cbvcyr3t.js} +1 -1
- package/dist/{packager-tool-wj9bvt17.js → packager-tool-gkhk6ty0.js} +10 -4
- package/dist/{packager-tool-f0tz69yq.js → packager-tool-p7c203yf.js} +59 -46
- package/dist/{packager-tool-vdajjr2d.js → packager-tool-pb1g4qnb.js} +2 -2
- package/dist/{packager-tool-rasvyrt4.js → packager-tool-rfkx60be.js} +1 -1
- package/dist/{packager-tool-bhddcaec.js → packager-tool-s7tgf9kh.js} +1 -1
- package/dist/{packager-tool-4tvdvr4h.js → packager-tool-vzj3dha7.js} +2 -2
- package/dist/{packager-tool-1gasqbew.js → packager-tool-yw0zcs7r.js} +6 -3
- package/dist/packager-tool.js +6 -4
- package/dist/services/flow-init-service.d.ts +12 -0
- package/dist/services/packaging-utils.d.ts +9 -1
- package/dist/{tidy-service-tfkx6266.js → tidy-service-4q2mrf2y.js} +7 -5
- package/dist/tool.js +2 -2
- package/dist/validation.js +11 -9
- package/dist/{variable-service-c0qjsy4j.js → variable-service-xm8dh1gw.js} +6 -4
- package/package.json +2 -2
- /package/dist/{localization-h8a53z6p.js → localization-1br6h143.js} +0 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Path
|
|
3
|
+
} from "./packager-tool-0d7tcvg1.js";
|
|
4
|
+
|
|
5
|
+
// ../packager/packager-tool-flow/src/maestro-automate.ts
|
|
6
|
+
var SENTINEL_FILE_NAME = ".maestro_automate";
|
|
7
|
+
var RuntimeProfile;
|
|
8
|
+
((RuntimeProfile2) => {
|
|
9
|
+
RuntimeProfile2["Lite"] = "Lite";
|
|
10
|
+
RuntimeProfile2["Standard"] = "Standard";
|
|
11
|
+
})(RuntimeProfile ||= {});
|
|
12
|
+
async function applyRuntimeProfile(fs, projectDir, profile) {
|
|
13
|
+
const sentinel = Path.join(projectDir, SENTINEL_FILE_NAME);
|
|
14
|
+
if (profile === "Lite" /* Lite */) {
|
|
15
|
+
await fs.writeFile(sentinel, "");
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
if (await fs.exists(sentinel)) {
|
|
19
|
+
await fs.rm(sentinel);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
async function resolveRuntimeProfile(fs, projectDir) {
|
|
23
|
+
const sentinel = Path.join(projectDir, SENTINEL_FILE_NAME);
|
|
24
|
+
return await fs.exists(sentinel) ? "Lite" /* Lite */ : "Standard" /* Standard */;
|
|
25
|
+
}
|
|
26
|
+
function isMaestroAutomateSentinel(fileName) {
|
|
27
|
+
return fileName === SENTINEL_FILE_NAME;
|
|
28
|
+
}
|
|
29
|
+
var PROJECT_FILE_NAME = "project.uiproj";
|
|
30
|
+
async function resolveRuntimeProfileForFlowFile(fs, flowFilePath) {
|
|
31
|
+
const flowDir = Path.dirname(flowFilePath);
|
|
32
|
+
let dir = flowDir;
|
|
33
|
+
for (;; ) {
|
|
34
|
+
if (await fs.exists(Path.join(dir, PROJECT_FILE_NAME))) {
|
|
35
|
+
return resolveRuntimeProfile(fs, dir);
|
|
36
|
+
}
|
|
37
|
+
const parent = Path.dirname(dir);
|
|
38
|
+
if (parent === dir)
|
|
39
|
+
break;
|
|
40
|
+
dir = parent;
|
|
41
|
+
}
|
|
42
|
+
return resolveRuntimeProfile(fs, flowDir);
|
|
43
|
+
}
|
|
44
|
+
function withRuntimeProfile(operateJson, profile) {
|
|
45
|
+
return {
|
|
46
|
+
...operateJson,
|
|
47
|
+
runtimeOptions: { ...operateJson.runtimeOptions, profile }
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export { RuntimeProfile, applyRuntimeProfile, resolveRuntimeProfile, isMaestroAutomateSentinel, resolveRuntimeProfileForFlowFile, withRuntimeProfile };
|
|
52
|
+
|
|
53
|
+
//# debugId=A108D59CC9ACB17B64756E2164756E21
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UI_ONLY_NODE_TYPES
|
|
3
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-cbvcyr3t.js";
|
|
4
4
|
import {
|
|
5
5
|
checkForwardMigration
|
|
6
|
-
} from "./packager-tool-
|
|
6
|
+
} from "./packager-tool-0g00g1a5.js";
|
|
7
7
|
import {
|
|
8
8
|
crossNodeBindingValidator,
|
|
9
9
|
isConnectorTriggerType,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
collectNodeBindingResourceKeys,
|
|
27
27
|
isProcessNode,
|
|
28
28
|
resolveProcessTarget
|
|
29
|
-
} from "./packager-tool-
|
|
29
|
+
} from "./packager-tool-vzj3dha7.js";
|
|
30
30
|
import {
|
|
31
31
|
loadRegistry
|
|
32
32
|
} from "./packager-tool-gaa5ss24.js";
|
|
@@ -42,13 +42,13 @@ import {
|
|
|
42
42
|
} from "./packager-tool-cphdcys0.js";
|
|
43
43
|
import {
|
|
44
44
|
resolveProjectFlowFile
|
|
45
|
-
} from "./packager-tool-
|
|
45
|
+
} from "./packager-tool-rfkx60be.js";
|
|
46
46
|
import {
|
|
47
47
|
canonicalAgentInputPath,
|
|
48
48
|
collectAgentInputLeaves,
|
|
49
49
|
createFlowRefResolver,
|
|
50
50
|
resolveWorkflowRefs
|
|
51
|
-
} from "./packager-tool-
|
|
51
|
+
} from "./packager-tool-af8bw5wd.js";
|
|
52
52
|
import {
|
|
53
53
|
OutputFormatter,
|
|
54
54
|
RESULTS,
|
|
@@ -321,7 +321,7 @@ async function ensureCatalogRegistered() {
|
|
|
321
321
|
if (catalogRegistered || !instance.isInitialized)
|
|
322
322
|
return;
|
|
323
323
|
try {
|
|
324
|
-
const { registerFlowExpressionModelI18n } = await import("./localization-
|
|
324
|
+
const { registerFlowExpressionModelI18n } = await import("./localization-1br6h143.js");
|
|
325
325
|
registerFlowExpressionModelI18n(instance);
|
|
326
326
|
} catch (error) {
|
|
327
327
|
logger.warn(`Expression type checking localization unavailable, falling back to English: ${extractErrorMessageSync(error)}`);
|
|
@@ -2,6 +2,14 @@ import {
|
|
|
2
2
|
addBinding,
|
|
3
3
|
createBinding
|
|
4
4
|
} from "./packager-tool-tn5e7wnb.js";
|
|
5
|
+
import {
|
|
6
|
+
isMaestroAutomateSentinel,
|
|
7
|
+
resolveRuntimeProfile,
|
|
8
|
+
withRuntimeProfile
|
|
9
|
+
} from "./packager-tool-3bra2c4j.js";
|
|
10
|
+
import {
|
|
11
|
+
getFileSystem
|
|
12
|
+
} from "./packager-tool-2513jrxr.js";
|
|
5
13
|
import {
|
|
6
14
|
NugetConstants,
|
|
7
15
|
NugetPackager,
|
|
@@ -12,10 +20,9 @@ import {
|
|
|
12
20
|
ToolErrorCodes,
|
|
13
21
|
ToolResult,
|
|
14
22
|
ensureProjectId,
|
|
15
|
-
getFileSystem,
|
|
16
23
|
toolsFactoryRepository,
|
|
17
24
|
writeContentOperateFile
|
|
18
|
-
} from "./packager-tool-
|
|
25
|
+
} from "./packager-tool-0d7tcvg1.js";
|
|
19
26
|
import {
|
|
20
27
|
en_default
|
|
21
28
|
} from "./packager-tool-rs6jm14d.js";
|
|
@@ -5598,11 +5605,12 @@ function assertVoiceAgentDefinitionsEmbedded(bpmn, nodes) {
|
|
|
5598
5605
|
// ../packager/packager-tool-flow/package.json
|
|
5599
5606
|
var package_default = {
|
|
5600
5607
|
name: "@uipath/packager-tool-flow",
|
|
5601
|
-
version: "1.202.
|
|
5608
|
+
version: "1.202.1",
|
|
5602
5609
|
description: "UiPath Flow tool implementation",
|
|
5603
5610
|
type: "module",
|
|
5604
5611
|
exports: {
|
|
5605
|
-
".": "./dist/index.js"
|
|
5612
|
+
".": "./dist/index.js",
|
|
5613
|
+
"./maestro-automate": "./dist/maestro-automate-entry.js"
|
|
5606
5614
|
},
|
|
5607
5615
|
repository: {
|
|
5608
5616
|
type: "git",
|
|
@@ -5614,7 +5622,7 @@ var package_default = {
|
|
|
5614
5622
|
},
|
|
5615
5623
|
types: "./dist/index.d.ts",
|
|
5616
5624
|
scripts: {
|
|
5617
|
-
build: "bun build ./src/index.ts --outdir dist --format esm --target browser --external @uipath/filesystem --external @uipath/solutionpackager-tool-core --external @uipath/tool-agent --external @uipath/flow-core --external @uipath/flow-converter --external @uipath/flow-migrations --external @uipath/flow-schema --sourcemap=linked && tsc --emitDeclarationOnly --outDir dist",
|
|
5625
|
+
build: "bun build ./src/index.ts --outdir dist --format esm --target browser --external @uipath/filesystem --external @uipath/solutionpackager-tool-core --external @uipath/tool-agent --external @uipath/flow-core --external @uipath/flow-converter --external @uipath/flow-migrations --external @uipath/flow-schema --sourcemap=linked && bun build ./src/maestro-automate-entry.ts --outdir dist --format esm --target browser --external @uipath/filesystem --external @uipath/solutionpackager-tool-core --sourcemap=linked && tsc --emitDeclarationOnly --outDir dist",
|
|
5618
5626
|
dev: "bun build ./src/index.ts --outdir dist --format esm --target browser --external @uipath/filesystem --external @uipath/solutionpackager-tool-core --external @uipath/tool-agent --external @uipath/flow-core --external @uipath/flow-converter --external @uipath/flow-migrations --external @uipath/flow-schema --watch",
|
|
5619
5627
|
test: "vitest run",
|
|
5620
5628
|
"test:browser": "vitest run --config=vitest.browser.config.ts",
|
|
@@ -17701,10 +17709,11 @@ class FlowTool extends ProjectTool {
|
|
|
17701
17709
|
this.logger.progress("Resolving process bindings...");
|
|
17702
17710
|
await this.resolveProcessBindings(contentFolder);
|
|
17703
17711
|
const projectId = options.projectStorageId ?? await ensureProjectId(options.projectPath, this.fileSystem);
|
|
17712
|
+
const profile = await resolveRuntimeProfile(this.fileSystem, options.projectPath);
|
|
17704
17713
|
this.logger.progress("Generating packaging artifacts from .flow...");
|
|
17705
17714
|
await this.generateFlowPackagingArtifacts(contentFolder, projectId, builtAgents);
|
|
17706
17715
|
this.logger.progress("Creating operate.json file...");
|
|
17707
|
-
await this.createOperateFile(contentFolder, projectId);
|
|
17716
|
+
await this.createOperateFile(contentFolder, projectId, profile);
|
|
17708
17717
|
this.logger.progress("Creating package-descriptor.json file...");
|
|
17709
17718
|
await this.createPackageDescriptor(localBuildFolder, contentFolder);
|
|
17710
17719
|
return new ToolResult(ToolErrorCodes.Success, "done", [
|
|
@@ -17911,7 +17920,7 @@ class FlowTool extends ProjectTool {
|
|
|
17911
17920
|
await this.copyDirectoryContents(sourceEntry, contentFolder);
|
|
17912
17921
|
}
|
|
17913
17922
|
} else if (stat?.isFile()) {
|
|
17914
|
-
if (entry === "project.uiproj") {
|
|
17923
|
+
if (entry === "project.uiproj" || isMaestroAutomateSentinel(entry)) {
|
|
17915
17924
|
continue;
|
|
17916
17925
|
}
|
|
17917
17926
|
const content = await this.fileSystem.readFile(sourceEntry);
|
|
@@ -17938,12 +17947,29 @@ class FlowTool extends ProjectTool {
|
|
|
17938
17947
|
}
|
|
17939
17948
|
}
|
|
17940
17949
|
}
|
|
17941
|
-
async createOperateFile(contentFolder, projectId) {
|
|
17950
|
+
async createOperateFile(contentFolder, projectId, profile) {
|
|
17942
17951
|
await writeContentOperateFile(this.fileSystem, {
|
|
17943
17952
|
contentFolder,
|
|
17944
17953
|
projectId,
|
|
17945
17954
|
contentType: ProjectTypes.Flow
|
|
17946
17955
|
});
|
|
17956
|
+
const operatePath = Path.join(contentFolder, NugetConstants.OperateFileName);
|
|
17957
|
+
const raw = await this.fileSystem.readFile(operatePath);
|
|
17958
|
+
if (!raw)
|
|
17959
|
+
return;
|
|
17960
|
+
const text = typeof raw === "string" ? raw : new TextDecoder().decode(raw);
|
|
17961
|
+
let operateJson;
|
|
17962
|
+
try {
|
|
17963
|
+
const parsed = JSON.parse(text);
|
|
17964
|
+
if (parsed === null || typeof parsed !== "object" || Array.isArray(parsed)) {
|
|
17965
|
+
throw new Error("not a JSON object");
|
|
17966
|
+
}
|
|
17967
|
+
operateJson = parsed;
|
|
17968
|
+
} catch (error40) {
|
|
17969
|
+
throw new Error(`Cannot set runtimeOptions.profile: ${NugetConstants.OperateFileName} is ` + `${error40 instanceof Error ? error40.message : String(error40)}. ` + "Fix or delete it and pack again; packaging regenerates a missing one.");
|
|
17970
|
+
}
|
|
17971
|
+
await this.fileSystem.writeFile(operatePath, `${JSON.stringify(withRuntimeProfile(operateJson, profile), null, 2)}
|
|
17972
|
+
`);
|
|
17947
17973
|
}
|
|
17948
17974
|
async createPackageDescriptor(localBuildFolder, contentFolder) {
|
|
17949
17975
|
const descriptorFiles = {};
|
|
@@ -17979,4 +18005,4 @@ toolsFactoryRepository.registerProjectToolFactory(new FlowToolFactory);
|
|
|
17979
18005
|
|
|
17980
18006
|
export { convertFlowToBpmn, buildInlineAgentContract, replaceExporterVersion, registerFlowMigrationsI18n, getMigrationChain, migrateWorkflowToFloor, minimumSupportedVersion, runtimeVersion, runtimeMigrations, checkNodeMigrations, applyNodeMigrations, createFlowRefResolver, resolveWorkflowRefs, resolveAndMigrateWorkflow, canonicalAgentInputPath, collectAgentInputLeaves, readInlineAgentSource, isInlineAgentNodeType, hydrateInlineAgentInputVariables, setPublishIntentOnInlineAgents, operateRuntimeOptions, voiceConvertOptions, assertVoiceAgentDefinitionsEmbedded, FlowToolFactory };
|
|
17981
18007
|
|
|
17982
|
-
//# debugId=
|
|
18008
|
+
//# debugId=1D4CFD77D0D3F32E64756E2164756E21
|
|
@@ -4,10 +4,14 @@ import {
|
|
|
4
4
|
} from "./packager-tool-cphdcys0.js";
|
|
5
5
|
import {
|
|
6
6
|
writeFlowWorkflow
|
|
7
|
-
} from "./packager-tool-
|
|
7
|
+
} from "./packager-tool-rfkx60be.js";
|
|
8
8
|
import {
|
|
9
9
|
createWorkflow
|
|
10
10
|
} from "./packager-tool-tn5e7wnb.js";
|
|
11
|
+
import {
|
|
12
|
+
applyRuntimeProfile,
|
|
13
|
+
withRuntimeProfile
|
|
14
|
+
} from "./packager-tool-3bra2c4j.js";
|
|
11
15
|
import {
|
|
12
16
|
VALID_PROJECT_NAME_REGEX
|
|
13
17
|
} from "./packager-tool-eypvc2kv.js";
|
|
@@ -71,7 +75,8 @@ async function flowInitAsync(name, options = {}) {
|
|
|
71
75
|
`);
|
|
72
76
|
const flowFile = fs.path.join(projectDir, `${name}.flow`);
|
|
73
77
|
await writeFlowWorkflow(flowFile, workflow);
|
|
74
|
-
const
|
|
78
|
+
const profile = options.profile === "Lite" ? "Lite" /* Lite */ : "Standard" /* Standard */;
|
|
79
|
+
const operateJson = withRuntimeProfile({
|
|
75
80
|
$schema: "https://cloud.uipath.com/draft/2024-12/operate",
|
|
76
81
|
projectId: flowId,
|
|
77
82
|
contentType: "Flow",
|
|
@@ -80,9 +85,10 @@ async function flowInitAsync(name, options = {}) {
|
|
|
80
85
|
requiresUserInteraction: false,
|
|
81
86
|
isAttended: false
|
|
82
87
|
}
|
|
83
|
-
};
|
|
88
|
+
}, profile);
|
|
84
89
|
await fs.writeFile(fs.path.join(projectDir, "operate.json"), `${JSON.stringify(operateJson, null, 2)}
|
|
85
90
|
`);
|
|
91
|
+
await applyRuntimeProfile(fs, projectDir, profile);
|
|
86
92
|
const registration = await tryRegisterProjectInParentSolution(fs, projectDir, { skipRegistration: options.skipRegistration });
|
|
87
93
|
const projectArtifacts = await maybeGenerateProjectArtifacts(registration, name);
|
|
88
94
|
return {
|
|
@@ -109,4 +115,4 @@ async function maybeGenerateProjectArtifacts(registration, projectName) {
|
|
|
109
115
|
|
|
110
116
|
export { flowInitAsync };
|
|
111
117
|
|
|
112
|
-
//# debugId=
|
|
118
|
+
//# debugId=A8B36EFB5586DC7D64756E2164756E21
|