@uipath/packager-tool-flow 1.198.0 → 1.199.0-preview.105

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/agents.d.ts CHANGED
@@ -1,2 +1,19 @@
1
1
  import type { IFileSystem, IToolLogger } from "@uipath/solutionpackager-tool-core";
2
+ export interface InlineAgentContract {
3
+ agentJson: Record<string, unknown>;
4
+ bindingsJson: {
5
+ version: string;
6
+ resources: Record<string, unknown>[];
7
+ };
8
+ }
9
+ /**
10
+ * Build the execution contract for one inline agent with the same migration,
11
+ * validation, and binding pipeline used by normal solution packaging.
12
+ */
13
+ export declare function buildInlineAgentContract(config: {
14
+ fileSystem: IFileSystem;
15
+ logger: IToolLogger;
16
+ projectPath: string;
17
+ outputPath: string;
18
+ }): Promise<InlineAgentContract>;
2
19
  export declare const processAgents: (fileSystem: IFileSystem, logger: IToolLogger, projectPath: string, contentFolder: string) => Promise<void>;
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export { buildInlineAgentContract, type InlineAgentContract, } from "./agents.js";
1
2
  export { replaceExporterVersion } from "./exporter-version.js";
2
3
  export { type FlowIoLogger, migrateRawWorkflow, readFlowWorkflow, } from "./flow-io.js";
3
4
  export { FlowTool } from "./flow-tool.js";
package/dist/index.js CHANGED
@@ -32,7 +32,7 @@ import {
32
32
  // package.json
33
33
  var package_default = {
34
34
  name: "@uipath/packager-tool-flow",
35
- version: "1.198.0",
35
+ version: "1.199.0-preview.105",
36
36
  description: "UiPath Flow tool implementation",
37
37
  type: "module",
38
38
  exports: {
@@ -75,17 +75,17 @@ var package_default = {
75
75
  license: "ISC",
76
76
  peerDependencies: {
77
77
  "@uipath/filesystem": "workspace:*",
78
- "@uipath/flow-converter": "^0.8.2",
79
- "@uipath/flow-core": "^0.10.3",
80
- "@uipath/flow-migrations": "^0.8.0",
81
- "@uipath/flow-schema": "^0.10.3",
78
+ "@uipath/flow-converter": "^0.25.2",
79
+ "@uipath/flow-core": "^0.34.1",
80
+ "@uipath/flow-migrations": "^0.15.1",
81
+ "@uipath/flow-schema": "^0.22.1",
82
82
  "@uipath/solutionpackager-tool-core": "workspace:*",
83
83
  "@uipath/tool-agent": "^2.0.0"
84
84
  },
85
85
  devDependencies: {
86
86
  "@types/node": "^25.5.2",
87
87
  "@uipath/filesystem": "workspace:*",
88
- "@uipath/flow-core": "^0.10.3",
88
+ "@uipath/flow-core": "^0.34.1",
89
89
  "@uipath/solutionpackager-tool-core": "workspace:*",
90
90
  "@uipath/tool-agent": "^2.0.0",
91
91
  "@vitest/browser": "^4.1.6",
@@ -133,6 +133,19 @@ var mergeAgentBindings = async (fileSystem, contentFolder, agentBindingResources
133
133
  };
134
134
 
135
135
  // src/agents.ts
136
+ async function buildInlineAgentContract(config) {
137
+ const built = await buildAgent({
138
+ ...config,
139
+ options: { writeBindings: false }
140
+ });
141
+ return {
142
+ agentJson: built.agent,
143
+ bindingsJson: {
144
+ version: built.bindings.version,
145
+ resources: built.bindings.resources
146
+ }
147
+ };
148
+ }
136
149
  var processAgents = async (fileSystem, logger, projectPath, contentFolder) => {
137
150
  const agentResults = [];
138
151
  const entries = await fileSystem.readdir(projectPath);
@@ -702,8 +715,9 @@ export {
702
715
  replaceExporterVersion,
703
716
  readFlowWorkflow,
704
717
  migrateRawWorkflow,
718
+ buildInlineAgentContract,
705
719
  FlowToolFactory,
706
720
  FlowTool
707
721
  };
708
722
 
709
- //# debugId=965A70E3151BE33F64756E2164756E21
723
+ //# debugId=291EEE3AB85856C764756E2164756E21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/packager-tool-flow",
3
- "version": "1.198.0",
3
+ "version": "1.199.0-preview.105",
4
4
  "description": "UiPath Flow tool implementation",
5
5
  "type": "module",
6
6
  "exports": {
@@ -25,13 +25,13 @@
25
25
  "author": "",
26
26
  "license": "ISC",
27
27
  "peerDependencies": {
28
- "@uipath/filesystem": "1.198.0",
29
- "@uipath/flow-converter": "^0.8.2",
30
- "@uipath/flow-core": "^0.10.3",
31
- "@uipath/flow-migrations": "^0.8.0",
32
- "@uipath/flow-schema": "^0.10.3",
33
- "@uipath/solutionpackager-tool-core": "1.198.0",
28
+ "@uipath/filesystem": "1.199.0",
29
+ "@uipath/flow-converter": "^0.25.2",
30
+ "@uipath/flow-core": "^0.34.1",
31
+ "@uipath/flow-migrations": "^0.15.1",
32
+ "@uipath/flow-schema": "^0.22.1",
33
+ "@uipath/solutionpackager-tool-core": "1.199.0",
34
34
  "@uipath/tool-agent": "^2.0.0"
35
35
  },
36
- "gitHead": "1fadf03d7a8dd102742571dff569fdac11808afb"
36
+ "gitHead": "30a83200f41e8bb994929322e33176b4355f6707"
37
37
  }
package/src/agents.ts CHANGED
@@ -6,6 +6,41 @@ import { Path } from "@uipath/solutionpackager-tool-core";
6
6
  import { type AgentBuildResult, buildAgent } from "@uipath/tool-agent/build";
7
7
  import { mergeAgentBindings, toBindingsResources } from "./bindings.js";
8
8
 
9
+ export interface InlineAgentContract {
10
+ agentJson: Record<string, unknown>;
11
+ bindingsJson: {
12
+ version: string;
13
+ resources: Record<string, unknown>[];
14
+ };
15
+ }
16
+
17
+ /**
18
+ * Build the execution contract for one inline agent with the same migration,
19
+ * validation, and binding pipeline used by normal solution packaging.
20
+ */
21
+ export async function buildInlineAgentContract(config: {
22
+ fileSystem: IFileSystem;
23
+ logger: IToolLogger;
24
+ projectPath: string;
25
+ outputPath: string;
26
+ }): Promise<InlineAgentContract> {
27
+ const built = await buildAgent({
28
+ ...config,
29
+ options: { writeBindings: false },
30
+ });
31
+
32
+ return {
33
+ agentJson: built.agent as Record<string, unknown>,
34
+ bindingsJson: {
35
+ version: built.bindings.version,
36
+ resources: built.bindings.resources as unknown as Record<
37
+ string,
38
+ unknown
39
+ >[],
40
+ },
41
+ };
42
+ }
43
+
9
44
  export const processAgents = async (
10
45
  fileSystem: IFileSystem,
11
46
  logger: IToolLogger,
package/src/index.ts CHANGED
@@ -8,6 +8,10 @@
8
8
  import { toolsFactoryRepository } from "@uipath/solutionpackager-tool-core";
9
9
  import { FlowToolFactory } from "./flow-tool-factory.js";
10
10
 
11
+ export {
12
+ buildInlineAgentContract,
13
+ type InlineAgentContract,
14
+ } from "./agents.js";
11
15
  export { replaceExporterVersion } from "./exporter-version.js";
12
16
  export {
13
17
  type FlowIoLogger,