@uipath/project-packager 1.1.15 → 1.197.0-preview.64
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/browser.js +23607 -0
- package/dist/index.js +22552 -222
- package/dist/node.js +10395 -343
- package/dist/src/base-browser-packager-factory.d.ts +37 -0
- package/dist/src/base-node-packager-factory.d.ts +8 -1
- package/dist/src/browser-project-packager-factory.d.ts +30 -0
- package/dist/src/browser.d.ts +3 -0
- package/dist/src/i18n/locales/en.d.ts +30 -1
- package/dist/src/index.d.ts +8 -2
- package/dist/src/models/packager-config.d.ts +1 -1
- package/dist/src/models/project-build-options.d.ts +4 -0
- package/dist/src/models/project-models.d.ts +0 -11
- package/dist/src/node.d.ts +14 -3
- package/dist/src/publish/models/publish-options.d.ts +158 -0
- package/dist/src/publish/node-project-publisher-factory.d.ts +6 -0
- package/dist/src/publish/services/local-folder-publisher.d.ts +19 -0
- package/dist/src/publish/services/nuget-feed-publisher.d.ts +29 -0
- package/dist/src/publish/services/orchestrator-feed-types.d.ts +98 -0
- package/dist/src/publish/services/orchestrator-feeds-service.d.ts +44 -0
- package/dist/src/publish/services/orchestrator-publisher.d.ts +78 -0
- package/dist/src/publish/services/project-publisher.d.ts +29 -0
- package/dist/src/services/dotnet-discovery-service.d.ts +18 -0
- package/dist/src/services/nupkg-resolver.d.ts +20 -0
- package/dist/src/services/package-sign-service.d.ts +13 -2
- package/dist/src/services/package-signer.d.ts +25 -0
- package/dist/src/services/project-loader.d.ts +0 -1
- package/dist/src/services/project-packager.d.ts +9 -26
- package/dist/src/services/project-tool-executor.d.ts +4 -14
- package/dist/tests/project-packager.e2e.test.d.ts +1 -0
- package/dist/tests/project-tool-executor.spec.d.ts +1 -0
- package/dist/tests/publish/local-folder-publisher.spec.d.ts +1 -0
- package/dist/tests/publish/node-project-publisher-factory.spec.d.ts +1 -0
- package/dist/tests/publish/nuget-feed-publisher.spec.d.ts +1 -0
- package/dist/tests/publish/orchestrator-feeds-service.spec.d.ts +1 -0
- package/dist/tests/publish/orchestrator-publisher.spec.d.ts +1 -0
- package/dist/tests/publish/project-publisher.spec.d.ts +1 -0
- package/dist/tests/tools-factory-repository.spec.d.ts +1 -0
- package/package.json +39 -64
- package/dist/tests/project-packager-e2e.test.d.ts +0 -7
- /package/dist/tests/{governance-policy-service.test.d.ts → governance-policy-service.spec.d.ts} +0 -0
- /package/dist/tests/{pack-service.test.d.ts → pack-service.spec.d.ts} +0 -0
- /package/dist/tests/{project-tool-executor.test.d.ts → package-sign-service.spec.d.ts} +0 -0
- /package/dist/tests/{project-loader.test.d.ts → project-loader.spec.d.ts} +0 -0
- /package/dist/tests/{tools-factory-repository.test.d.ts → project-pack-options-builder.spec.d.ts} +0 -0
- /package/dist/tests/{project-packager.test.d.ts → project-packager.spec.d.ts} +0 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import type { IFileSystem } from "@uipath/solutionpackager-tool-core";
|
|
2
|
+
import { ToolResult } from "@uipath/solutionpackager-tool-core";
|
|
3
|
+
import { type OrchestratorDestination } from "../models/publish-options.js";
|
|
4
|
+
import { type IOrchestratorFeedsService } from "./orchestrator-feeds-service.js";
|
|
5
|
+
export declare const ORCHESTRATOR_RELATIVE_URL = "/orchestrator_";
|
|
6
|
+
export declare const PROCESSES_UPLOAD_PATH = "/odata/Processes/UiPath.Server.Configuration.OData.UploadPackage";
|
|
7
|
+
export declare const LIBRARIES_UPLOAD_PATH = "/odata/Libraries/UiPath.Server.Configuration.OData.UploadPackage";
|
|
8
|
+
/**
|
|
9
|
+
* Publishes .nupkg files to UiPath Orchestrator.
|
|
10
|
+
*
|
|
11
|
+
* For the PersonalWorkspace, TenantProcesses, and SharedLibraries kinds
|
|
12
|
+
* the publisher resolves the matching feed via
|
|
13
|
+
* `/api/PackageFeeds/GetFeeds`. Files are POSTed as
|
|
14
|
+
* `multipart/form-data` under the `file` field; the upload path
|
|
15
|
+
* (`Processes` vs `Libraries`) and `?feedId=` come from the resolved
|
|
16
|
+
* feed. The folder header (`X-UIPATH-OrganizationUnitId`) comes from
|
|
17
|
+
* the resolved feed for PersonalWorkspace and from the caller-supplied
|
|
18
|
+
* `folderId` for SharedLibraries.
|
|
19
|
+
*
|
|
20
|
+
* For the `OrchestratorCustom` kind the caller supplies the full upload
|
|
21
|
+
* URL — no feed resolution is performed and the URL is POSTed to
|
|
22
|
+
* verbatim. `connectionInfo` still drives the auth headers and the
|
|
23
|
+
* caller-supplied `folderId` (if any) is sent as
|
|
24
|
+
* `X-UIPATH-OrganizationUnitId`.
|
|
25
|
+
*/
|
|
26
|
+
export interface IOrchestratorPublisher {
|
|
27
|
+
publishAsync(packagePaths: string[], destination: OrchestratorDestination): Promise<ToolResult>;
|
|
28
|
+
}
|
|
29
|
+
export declare class OrchestratorPublisher implements IOrchestratorPublisher {
|
|
30
|
+
private readonly fileSystem;
|
|
31
|
+
private readonly logger;
|
|
32
|
+
private readonly feedsService;
|
|
33
|
+
constructor(fileSystem: IFileSystem, feedsService?: IOrchestratorFeedsService);
|
|
34
|
+
publishAsync(packagePaths: string[], destination: OrchestratorDestination): Promise<ToolResult>;
|
|
35
|
+
private postPackages;
|
|
36
|
+
/**
|
|
37
|
+
* Resolve the target feed for the destination kind.
|
|
38
|
+
*
|
|
39
|
+
* - Tenant Processes / Shared Libraries: tenant-scoped feed —
|
|
40
|
+
* pick the feed with the matching `purpose` and no `folderId`.
|
|
41
|
+
* - Personal Workspace: every folder feed comes back with
|
|
42
|
+
* `purpose: "Processes"`, so we can't tell PW from a regular
|
|
43
|
+
* folder feed by the feeds list alone. Studio resolves this via
|
|
44
|
+
* `/api/FoldersNavigation/GetAllFoldersForCurrentUser`, where the
|
|
45
|
+
* PW folder has `feedType: "PersonalWorkspace"`. We do the same:
|
|
46
|
+
* look up that folder, then match the feed by `folderId`.
|
|
47
|
+
*/
|
|
48
|
+
private resolveFeed;
|
|
49
|
+
private throwFeedNotFound;
|
|
50
|
+
/**
|
|
51
|
+
* Pick the publish URL for a resolved feed.
|
|
52
|
+
*
|
|
53
|
+
* The orchestrator's feed response carries a `publishUrl` — for OData
|
|
54
|
+
* feeds it points at the same `UploadPackage` endpoint we'd construct
|
|
55
|
+
* ourselves, for ApiKey-authed feeds it points at the NuGet v3 push
|
|
56
|
+
* endpoint that bypasses `CanPublishLibrariesAsync`. Prefer it when
|
|
57
|
+
* set; fall back to the constructed OData URL otherwise. `feedId` is
|
|
58
|
+
* always pinned via the query string (matches Studio Web's
|
|
59
|
+
* `PublishApiService.publishProjectFromSolution`).
|
|
60
|
+
*
|
|
61
|
+
* URLs are kept absolute so `fetch` works in Node — relative URLs
|
|
62
|
+
* throw `TypeError: Failed to parse URL` outside a browser. Same-origin
|
|
63
|
+
* absolute URLs are fine in browser callers (no CORS preflight).
|
|
64
|
+
*/
|
|
65
|
+
private buildPublishUrl;
|
|
66
|
+
/**
|
|
67
|
+
* Derive the orchestrator base URL from `connectionInfo.cloudUrl`.
|
|
68
|
+
*
|
|
69
|
+
* Keeps the URL absolute — Node's `fetch` rejects relative URLs with
|
|
70
|
+
* `TypeError: Failed to parse URL`, and absolute same-origin URLs
|
|
71
|
+
* still work fine in browser callers (no CORS preflight added).
|
|
72
|
+
*/
|
|
73
|
+
private deriveOrchestratorUrl;
|
|
74
|
+
private buildHeaders;
|
|
75
|
+
private buildCustomHeaders;
|
|
76
|
+
private buildAuthHeaders;
|
|
77
|
+
private safeReadBody;
|
|
78
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { IFileSystem } from "@uipath/solutionpackager-tool-core";
|
|
2
|
+
import { ToolResult } from "@uipath/solutionpackager-tool-core";
|
|
3
|
+
import { type ProjectPublishOptions } from "../models/publish-options.js";
|
|
4
|
+
import { type ILocalFolderPublisher } from "./local-folder-publisher.js";
|
|
5
|
+
import { type INugetFeedPublisher } from "./nuget-feed-publisher.js";
|
|
6
|
+
import { type IOrchestratorPublisher } from "./orchestrator-publisher.js";
|
|
7
|
+
/**
|
|
8
|
+
* Public API of the ProjectPublisher component.
|
|
9
|
+
*/
|
|
10
|
+
export interface IProjectPublisher {
|
|
11
|
+
/**
|
|
12
|
+
* Publish one or more .nupkg files to the destination configured in
|
|
13
|
+
* `options.destination`.
|
|
14
|
+
*/
|
|
15
|
+
publishAsync(options: ProjectPublishOptions): Promise<ToolResult>;
|
|
16
|
+
}
|
|
17
|
+
export declare class ProjectPublisher implements IProjectPublisher {
|
|
18
|
+
private readonly fileSystem;
|
|
19
|
+
private readonly logger;
|
|
20
|
+
private readonly localFolderPublisher;
|
|
21
|
+
private readonly nugetFeedPublisher;
|
|
22
|
+
private readonly orchestratorPublisher;
|
|
23
|
+
constructor(fileSystem: IFileSystem, publishers?: {
|
|
24
|
+
localFolder?: ILocalFolderPublisher;
|
|
25
|
+
nugetFeed?: INugetFeedPublisher;
|
|
26
|
+
orchestrator?: IOrchestratorPublisher;
|
|
27
|
+
});
|
|
28
|
+
publishAsync(options: ProjectPublishOptions): Promise<ToolResult>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Service for discovering the installed `dotnet` CLI on the host.
|
|
3
|
+
*/
|
|
4
|
+
export interface IDotnetDiscoveryService {
|
|
5
|
+
/** True when `dotnet --version` succeeds on the host. */
|
|
6
|
+
isDotnetAvailable(): boolean;
|
|
7
|
+
/** Trimmed `dotnet --version` output, or undefined if dotnet is not on PATH. */
|
|
8
|
+
getDotnetVersion(): string | undefined;
|
|
9
|
+
}
|
|
10
|
+
export declare class DotnetDiscoveryService implements IDotnetDiscoveryService {
|
|
11
|
+
/**
|
|
12
|
+
* Per-instance cache of a successful `dotnet --version` lookup. Negative
|
|
13
|
+
* results are not cached so a one-off failure does not pin the service.
|
|
14
|
+
*/
|
|
15
|
+
private cachedVersion;
|
|
16
|
+
isDotnetAvailable(): boolean;
|
|
17
|
+
getDotnetVersion(): string | undefined;
|
|
18
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { IFileSystem } from "@uipath/solutionpackager-tool-core";
|
|
2
|
+
/**
|
|
3
|
+
* Resolve a package path produced by a project tool to the actual `.nupkg`
|
|
4
|
+
* file(s) it represents.
|
|
5
|
+
*
|
|
6
|
+
* Most tools return a `.nupkg` path directly, but the workflow compiler (both
|
|
7
|
+
* the in-repo tool and the bundled copy shipped inside `@uipath/rpa-tool`)
|
|
8
|
+
* reports the package *content folder* instead — the produced `.nupkg` sits
|
|
9
|
+
* inside that folder or beside it in the build output dir. The copy path uses
|
|
10
|
+
* this to turn that folder into the real `.nupkg` before copying it to the
|
|
11
|
+
* destination (where signing later runs on the finalized file).
|
|
12
|
+
*
|
|
13
|
+
* Resolution:
|
|
14
|
+
* - a path already ending in `.nupkg` is returned as-is;
|
|
15
|
+
* - a directory is searched for `.nupkg` files, first inside it, then in its
|
|
16
|
+
* parent (the build output dir);
|
|
17
|
+
* - anything else (including a directory with no `.nupkg` anywhere) yields an
|
|
18
|
+
* empty array, leaving the caller to decide how to handle a missing package.
|
|
19
|
+
*/
|
|
20
|
+
export declare function resolveProducedNupkgsAsync(fileSystem: IFileSystem, packagePath: string): Promise<string[]>;
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import type { IToolLogger } from "@uipath/solutionpackager-tool-core";
|
|
2
2
|
import { ToolResult } from "@uipath/solutionpackager-tool-core";
|
|
3
|
+
import type { IDotnetDiscoveryService } from "./dotnet-discovery-service.js";
|
|
3
4
|
/**
|
|
4
5
|
* Provides package signing operations with availability checks.
|
|
5
6
|
*/
|
|
6
7
|
export interface IPackageSignService {
|
|
8
|
+
/**
|
|
9
|
+
* Sign NuGet packages using one dotnet nuget sign invocation.
|
|
10
|
+
* @param packagePaths - Paths to the .nupkg files to sign
|
|
11
|
+
* @param certificatePath - Path to the PFX certificate file
|
|
12
|
+
* @param certificatePassword - Optional password for the certificate
|
|
13
|
+
* @param timestampServer - Optional RFC 3161 timestamp server URL
|
|
14
|
+
* @returns ToolResult indicating success or failure
|
|
15
|
+
*/
|
|
16
|
+
signPackagesAsync?(packagePaths: string[], certificatePath: string, certificatePassword?: string, timestampServer?: string): Promise<ToolResult>;
|
|
7
17
|
/**
|
|
8
18
|
* Sign a NuGet package using dotnet nuget sign.
|
|
9
19
|
* @param packagePath - Path to the .nupkg file to sign
|
|
@@ -15,8 +25,9 @@ export interface IPackageSignService {
|
|
|
15
25
|
signPackageAsync(packagePath: string, certificatePath: string, certificatePassword?: string, timestampServer?: string): Promise<ToolResult>;
|
|
16
26
|
}
|
|
17
27
|
export declare class NodePackageSignService implements IPackageSignService {
|
|
28
|
+
private readonly dotnetDiscovery;
|
|
18
29
|
private readonly logger;
|
|
19
|
-
constructor(logger: IToolLogger);
|
|
30
|
+
constructor(dotnetDiscovery: IDotnetDiscoveryService, logger: IToolLogger);
|
|
20
31
|
signPackageAsync(packagePath: string, certificatePath: string, certificatePassword?: string, timestampServer?: string): Promise<ToolResult>;
|
|
21
|
-
|
|
32
|
+
signPackagesAsync(packagePaths: string[], certificatePath: string, certificatePassword?: string, timestampServer?: string): Promise<ToolResult>;
|
|
22
33
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ToolResult } from "@uipath/solutionpackager-tool-core";
|
|
2
|
+
import type { PackageSigningInfo } from "../models/packager-parameters.js";
|
|
3
|
+
import type { IPackageSignService } from "./package-sign-service.js";
|
|
4
|
+
/**
|
|
5
|
+
* Sign a set of finalized `.nupkg` files.
|
|
6
|
+
*
|
|
7
|
+
* This is the one place the signing loop lives, shared by the project and
|
|
8
|
+
* solution packagers. It signs files only — callers resolve their own paths to
|
|
9
|
+
* real `.nupkg`s first (the project packager signs files it already copied to
|
|
10
|
+
* the destination; the solution packager resolves the workflow-compiler content
|
|
11
|
+
* folders via `resolveProducedNupkgsAsync` before calling here).
|
|
12
|
+
*
|
|
13
|
+
* - A no-op returning success when signing isn't requested (no signing info or
|
|
14
|
+
* no certificate path).
|
|
15
|
+
* - An error when signing is requested but no sign service is wired (the host
|
|
16
|
+
* couldn't provide one, e.g. dotnet CLI missing).
|
|
17
|
+
* - Otherwise signs each distinct path in one `dotnet nuget sign` invocation
|
|
18
|
+
* when the sign service supports batching. This avoids concurrent dotnet
|
|
19
|
+
* sign processes loading the same PFX.
|
|
20
|
+
*
|
|
21
|
+
* @param signService The sign service, or undefined if none is available.
|
|
22
|
+
* @param nupkgPaths Finalized `.nupkg` file paths to sign.
|
|
23
|
+
* @param signingInfo Signing configuration, if signing was requested.
|
|
24
|
+
*/
|
|
25
|
+
export declare function signNupkgsAsync(signService: IPackageSignService | undefined, nupkgPaths: string[], signingInfo?: PackageSigningInfo): Promise<ToolResult>;
|
|
@@ -15,7 +15,6 @@ export interface IProjectLoader {
|
|
|
15
15
|
}
|
|
16
16
|
export declare class ProjectLoader implements IProjectLoader {
|
|
17
17
|
private readonly fileSystem;
|
|
18
|
-
static readonly ProjectFileName = "project.uiproj";
|
|
19
18
|
static readonly WebAppManifestFileName = "webAppManifest.json";
|
|
20
19
|
constructor(fileSystem: IFileSystem);
|
|
21
20
|
loadProject(projectPath: string): Promise<LoadedUiProject>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ITelemetryService } from "@uipath/common
|
|
1
|
+
import type { ITelemetryService } from "@uipath/common";
|
|
2
2
|
import { type IFileSystem, ToolResult } from "@uipath/solutionpackager-tool-core";
|
|
3
3
|
import type { ProjectBuildOptions } from "../models/project-build-options.js";
|
|
4
4
|
import type { ProjectPackOptions } from "../models/project-pack-options.js";
|
|
@@ -23,12 +23,6 @@ export interface IProjectPackager {
|
|
|
23
23
|
* File system instance
|
|
24
24
|
*/
|
|
25
25
|
readonly fileSystem: IFileSystem;
|
|
26
|
-
/**
|
|
27
|
-
* Check if the project can be packed by verifying the project type has a registered tool.
|
|
28
|
-
* @param projectPath Path to the project folder
|
|
29
|
-
* @returns True if the project type has a registered tool factory
|
|
30
|
-
*/
|
|
31
|
-
canPackProjectAsync(projectPath: string): Promise<boolean>;
|
|
32
26
|
/**
|
|
33
27
|
* Setup the temporary storage.
|
|
34
28
|
* @param input The project folder as a zip Uint8Array (extracts to temp folder) or a path string (uses as-is)
|
|
@@ -90,12 +84,6 @@ export declare class ProjectPackager implements IProjectPackager {
|
|
|
90
84
|
private readonly nugetPackager;
|
|
91
85
|
private readonly governancePolicyService;
|
|
92
86
|
constructor(fileSystem: IFileSystem, telemetryService: ITelemetryService, packageSignService?: IPackageSignService | undefined);
|
|
93
|
-
/**
|
|
94
|
-
* Check if the project can be packed by verifying the project type has a registered tool.
|
|
95
|
-
* @param projectPath Path to the project folder
|
|
96
|
-
* @returns True if the project type has a registered tool factory
|
|
97
|
-
*/
|
|
98
|
-
canPackProjectAsync(projectPath: string): Promise<boolean>;
|
|
99
87
|
/**
|
|
100
88
|
* Setup the temporary storage.
|
|
101
89
|
* @param input The project folder as a zip Uint8Array (extracts to temp folder) or a path string (uses as-is)
|
|
@@ -140,25 +128,20 @@ export declare class ProjectPackager implements IProjectPackager {
|
|
|
140
128
|
* shape they get from SolutionPackager — just with one project.
|
|
141
129
|
*/
|
|
142
130
|
private createOperationContext;
|
|
143
|
-
/**
|
|
144
|
-
* Find .nupkg files produced by the tool in the parent directory.
|
|
145
|
-
* Tools like WorkflowCompiler create the .nupkg in the output root
|
|
146
|
-
* while reporting the content subdirectory in OutputPackages[].Path.
|
|
147
|
-
* Only returns .nupkg files whose name starts with the subdirectory
|
|
148
|
-
* name (the package id) to avoid picking up unrelated packages.
|
|
149
|
-
*/
|
|
150
|
-
private findNupkgInParentDir;
|
|
151
131
|
/**
|
|
152
132
|
* Copy a single file to the destination, throwing if the read fails.
|
|
153
133
|
*/
|
|
154
134
|
private copyFileToDestination;
|
|
155
135
|
/**
|
|
156
|
-
* Copy packages
|
|
157
|
-
*
|
|
158
|
-
*
|
|
159
|
-
*
|
|
136
|
+
* Copy produced packages to the destination path.
|
|
137
|
+
*
|
|
138
|
+
* Most tools return a .nupkg file path (copied directly), but the workflow
|
|
139
|
+
* compiler reports the package content *folder*. For a folder, resolve it
|
|
140
|
+
* to the produced .nupkg(s) via the shared resolver and copy those. If the
|
|
141
|
+
* folder holds no .nupkg anywhere, pack it from content as a last resort.
|
|
142
|
+
* @param packagePaths Paths to the produced packages (files or folders)
|
|
160
143
|
* @param destinationPath Destination directory
|
|
161
|
-
* @param packageInfo NuGet package info for
|
|
144
|
+
* @param packageInfo NuGet package info for packing unpacked content
|
|
162
145
|
* @returns Paths to the copied package files
|
|
163
146
|
*/
|
|
164
147
|
private copyPackagesToDestination;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import type { ITelemetryService } from "@uipath/common
|
|
1
|
+
import type { ITelemetryService } from "@uipath/common";
|
|
2
2
|
import { type IProjectBuildOptions, type IProjectPackOptions, type IProjectRestoreOptions, type IProjectValidateOptions, type ProjectOperationContext, ToolResult } from "@uipath/solutionpackager-tool-core";
|
|
3
|
-
import type { PackageSigningInfo } from "../models/packager-parameters.js";
|
|
4
3
|
import type { UiPathProject } from "../models/project-models.js";
|
|
5
|
-
import type { IPackageSignService } from "./package-sign-service.js";
|
|
6
4
|
import type { IToolsFactory } from "./tools-factory.js";
|
|
7
5
|
/**
|
|
8
6
|
* Interface for executing project tool operations
|
|
@@ -11,26 +9,18 @@ export interface IProjectToolExecutor {
|
|
|
11
9
|
restoreAsync(options: IProjectRestoreOptions, project: UiPathProject, context?: ProjectOperationContext, cancellationToken?: AbortSignal): Promise<ToolResult>;
|
|
12
10
|
validateAsync(options: IProjectValidateOptions, project: UiPathProject, context?: ProjectOperationContext, cancellationToken?: AbortSignal): Promise<ToolResult>;
|
|
13
11
|
buildAsync(options: IProjectBuildOptions, project: UiPathProject, context?: ProjectOperationContext, cancellationToken?: AbortSignal): Promise<ToolResult>;
|
|
14
|
-
packAsync(options: IProjectPackOptions, project: UiPathProject, context?: ProjectOperationContext,
|
|
12
|
+
packAsync(options: IProjectPackOptions, project: UiPathProject, context?: ProjectOperationContext, cancellationToken?: AbortSignal): Promise<ToolResult>;
|
|
15
13
|
}
|
|
16
14
|
export declare class ProjectToolExecutor implements IProjectToolExecutor {
|
|
17
15
|
private readonly toolsFactory;
|
|
18
16
|
private readonly telemetry;
|
|
19
|
-
|
|
20
|
-
constructor(toolsFactory: IToolsFactory, telemetry: ITelemetryService, packageSignService?: IPackageSignService | undefined);
|
|
17
|
+
constructor(toolsFactory: IToolsFactory, telemetry: ITelemetryService);
|
|
21
18
|
restoreAsync(options: IProjectRestoreOptions, project: UiPathProject, context?: ProjectOperationContext, cancellationToken?: AbortSignal): Promise<ToolResult>;
|
|
22
19
|
validateAsync(options: IProjectValidateOptions, project: UiPathProject, context?: ProjectOperationContext, cancellationToken?: AbortSignal): Promise<ToolResult>;
|
|
23
20
|
buildAsync(options: IProjectBuildOptions, project: UiPathProject, context?: ProjectOperationContext, cancellationToken?: AbortSignal): Promise<ToolResult>;
|
|
24
|
-
packAsync(options: IProjectPackOptions, project: UiPathProject, context?: ProjectOperationContext,
|
|
21
|
+
packAsync(options: IProjectPackOptions, project: UiPathProject, context?: ProjectOperationContext, cancellationToken?: AbortSignal): Promise<ToolResult>;
|
|
25
22
|
/**
|
|
26
23
|
* Execute an operation on a project tool with proper creation and disposal.
|
|
27
24
|
*/
|
|
28
25
|
private executeToolOperationAsync;
|
|
29
|
-
/**
|
|
30
|
-
* Sign all packages using the package sign service.
|
|
31
|
-
* @param packages - Array of package paths to sign
|
|
32
|
-
* @param signingInfo - Signing configuration
|
|
33
|
-
* @returns ToolResult indicating success or failure
|
|
34
|
-
*/
|
|
35
|
-
private signPackagesAsync;
|
|
36
26
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../../src/i18n/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../../src/i18n/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../../src/i18n/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../../src/i18n/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../../src/i18n/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,68 +1,43 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"./node": {
|
|
13
|
-
"types": "./dist/src/node.d.ts",
|
|
14
|
-
"default": "./dist/node.js"
|
|
15
|
-
}
|
|
2
|
+
"name": "@uipath/project-packager",
|
|
3
|
+
"license": "MIT",
|
|
4
|
+
"version": "1.197.0-preview.64",
|
|
5
|
+
"description": "UiPath Project Packager - core library for packing individual UiPath projects",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/src/index.d.ts",
|
|
11
|
+
"default": "./dist/index.js"
|
|
16
12
|
},
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"url": "https://github.com/UiPath/cli.git",
|
|
21
|
-
"directory": "packages/packager/project-packager"
|
|
13
|
+
"./node": {
|
|
14
|
+
"types": "./dist/src/node.d.ts",
|
|
15
|
+
"default": "./dist/node.js"
|
|
22
16
|
},
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"peerDependencies": {
|
|
50
|
-
"fflate": "^0.8.2"
|
|
51
|
-
},
|
|
52
|
-
"devDependencies": {
|
|
53
|
-
"@types/node": "^25.5.0",
|
|
54
|
-
"@uipath/resource-builder-tool": "^2025.11.0-alpha2430-2948",
|
|
55
|
-
"@uipath/tool-agent": "^1.0.1",
|
|
56
|
-
"@uipath/packager-tool-apiworkflow": "0.0.18",
|
|
57
|
-
"@uipath/packager-tool-connector": "0.0.18",
|
|
58
|
-
"@uipath/packager-tool-flow": "0.0.18",
|
|
59
|
-
"@uipath/packager-tool-webapp": "1.0.5",
|
|
60
|
-
"@uipath/packager-tool-workflowcompiler": "0.0.15",
|
|
61
|
-
"@vitest/coverage-v8": "^4.0.14",
|
|
62
|
-
"jsdom": "^29.0.0",
|
|
63
|
-
"typescript": "^5.9.3",
|
|
64
|
-
"vite-tsconfig-paths": "^6.1.1",
|
|
65
|
-
"vitest": "^4.0.14"
|
|
66
|
-
},
|
|
67
|
-
"gitHead": "3f1b4d8e9f910be81e4cab956537f21dbd5d63ac"
|
|
17
|
+
"./browser": {
|
|
18
|
+
"types": "./dist/src/browser.d.ts",
|
|
19
|
+
"default": "./dist/browser.js"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"types": "./dist/src/index.d.ts",
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "https://github.com/UiPath/cli.git",
|
|
26
|
+
"directory": "packages/packager/project-packager"
|
|
27
|
+
},
|
|
28
|
+
"publishConfig": {
|
|
29
|
+
"registry": "https://registry.npmjs.org/"
|
|
30
|
+
},
|
|
31
|
+
"files": [
|
|
32
|
+
"dist"
|
|
33
|
+
],
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@uipath/filesystem": "1.197.0",
|
|
36
|
+
"@uipath/solutionpackager-tool-core": "1.197.0",
|
|
37
|
+
"@uipath/common": "1.197.0"
|
|
38
|
+
},
|
|
39
|
+
"peerDependencies": {
|
|
40
|
+
"fflate": "^0.8.2"
|
|
41
|
+
},
|
|
42
|
+
"gitHead": "3977b977945bf519336258da69fd271433eaaef4"
|
|
68
43
|
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import "@uipath/packager-tool-connector";
|
|
2
|
-
import "@uipath/packager-tool-workflowcompiler";
|
|
3
|
-
import "@uipath/packager-tool-apiworkflow";
|
|
4
|
-
import "@uipath/packager-tool-flow";
|
|
5
|
-
import "@uipath/tool-agent";
|
|
6
|
-
import "@uipath/packager-tool-webapp";
|
|
7
|
-
import "@uipath/resource-builder-tool";
|
/package/dist/tests/{governance-policy-service.test.d.ts → governance-policy-service.spec.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/tests/{tools-factory-repository.test.d.ts → project-pack-options-builder.spec.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|