@uipath/solutionpackager-tool-core 0.0.26

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.
Files changed (112) hide show
  1. package/README.md +308 -0
  2. package/dist/filesystem/file-system.d.ts +1 -0
  3. package/dist/filesystem/file-system.js +0 -0
  4. package/dist/filesystem/index.d.ts +5 -0
  5. package/dist/filesystem/index.js +3 -0
  6. package/dist/filesystem/path.d.ts +53 -0
  7. package/dist/filesystem/path.js +47 -0
  8. package/dist/filesystem/temporary-storage-service.d.ts +31 -0
  9. package/dist/filesystem/temporary-storage-service.js +46 -0
  10. package/dist/filesystem/zip-service.d.ts +25 -0
  11. package/dist/filesystem/zip-service.js +41 -0
  12. package/dist/i18n/i18n-manager.d.ts +128 -0
  13. package/dist/i18n/i18n-manager.js +104 -0
  14. package/dist/i18n/index.d.ts +15 -0
  15. package/dist/i18n/index.js +34 -0
  16. package/dist/i18n/locales/de.d.ts +37 -0
  17. package/dist/i18n/locales/de.js +38 -0
  18. package/dist/i18n/locales/en.d.ts +43 -0
  19. package/dist/i18n/locales/en.js +38 -0
  20. package/dist/i18n/locales/es-MX.d.ts +37 -0
  21. package/dist/i18n/locales/es-MX.js +38 -0
  22. package/dist/i18n/locales/es.d.ts +37 -0
  23. package/dist/i18n/locales/es.js +38 -0
  24. package/dist/i18n/locales/fr.d.ts +37 -0
  25. package/dist/i18n/locales/fr.js +38 -0
  26. package/dist/i18n/locales/ja.d.ts +37 -0
  27. package/dist/i18n/locales/ja.js +38 -0
  28. package/dist/i18n/locales/ko.d.ts +37 -0
  29. package/dist/i18n/locales/ko.js +38 -0
  30. package/dist/i18n/locales/pt-BR.d.ts +37 -0
  31. package/dist/i18n/locales/pt-BR.js +38 -0
  32. package/dist/i18n/locales/pt.d.ts +37 -0
  33. package/dist/i18n/locales/pt.js +38 -0
  34. package/dist/i18n/locales/ro.d.ts +37 -0
  35. package/dist/i18n/locales/ro.js +38 -0
  36. package/dist/i18n/locales/ru.d.ts +37 -0
  37. package/dist/i18n/locales/ru.js +38 -0
  38. package/dist/i18n/locales/tr.d.ts +37 -0
  39. package/dist/i18n/locales/tr.js +38 -0
  40. package/dist/i18n/locales/zh-CN.d.ts +37 -0
  41. package/dist/i18n/locales/zh-CN.js +38 -0
  42. package/dist/i18n/locales/zh-TW.d.ts +37 -0
  43. package/dist/i18n/locales/zh-TW.js +38 -0
  44. package/dist/i18n/locales/zu.d.ts +37 -0
  45. package/dist/i18n/locales/zu.js +38 -0
  46. package/dist/i18n/translation-service.d.ts +61 -0
  47. package/dist/i18n/translation-service.js +29 -0
  48. package/dist/i18n/types.d.ts +61 -0
  49. package/dist/i18n/types.js +20 -0
  50. package/dist/index.d.ts +5 -0
  51. package/dist/index.js +5 -0
  52. package/dist/models/build-configuration.d.ts +7 -0
  53. package/dist/models/build-configuration.js +6 -0
  54. package/dist/models/connection-info.d.ts +26 -0
  55. package/dist/models/connection-info.js +9 -0
  56. package/dist/models/index.d.ts +18 -0
  57. package/dist/models/index.js +8 -0
  58. package/dist/models/log-message.d.ts +28 -0
  59. package/dist/models/log-message.js +48 -0
  60. package/dist/models/nuget-constants.d.ts +34 -0
  61. package/dist/models/nuget-constants.js +10 -0
  62. package/dist/models/nuget-feed-model.d.ts +25 -0
  63. package/dist/models/nuget-feed-model.js +0 -0
  64. package/dist/models/nuget-package-info.d.ts +63 -0
  65. package/dist/models/nuget-package-info.js +0 -0
  66. package/dist/models/package-info.d.ts +29 -0
  67. package/dist/models/package-info.js +0 -0
  68. package/dist/models/project-options.d.ts +126 -0
  69. package/dist/models/project-options.js +7 -0
  70. package/dist/models/project-type.d.ts +21 -0
  71. package/dist/models/project-type.js +16 -0
  72. package/dist/models/solution-options.d.ts +72 -0
  73. package/dist/models/solution-options.js +0 -0
  74. package/dist/models/target-frameworks.d.ts +7 -0
  75. package/dist/models/target-frameworks.js +6 -0
  76. package/dist/models/tool-error-code.d.ts +18 -0
  77. package/dist/models/tool-error-code.js +7 -0
  78. package/dist/models/tool-result.d.ts +31 -0
  79. package/dist/models/tool-result.js +21 -0
  80. package/dist/models/uipath-project.d.ts +26 -0
  81. package/dist/models/uipath-project.js +0 -0
  82. package/dist/models/uipath-solution.d.ts +14 -0
  83. package/dist/models/uipath-solution.js +0 -0
  84. package/dist/package-descriptor/entry-points-file-model.d.ts +26 -0
  85. package/dist/package-descriptor/entry-points-file-model.js +0 -0
  86. package/dist/package-descriptor/index.d.ts +5 -0
  87. package/dist/package-descriptor/index.js +1 -0
  88. package/dist/package-descriptor/operate-file-model.d.ts +38 -0
  89. package/dist/package-descriptor/operate-file-model.js +0 -0
  90. package/dist/package-descriptor/package-descriptor-file-model.d.ts +12 -0
  91. package/dist/package-descriptor/package-descriptor-file-model.js +0 -0
  92. package/dist/package-descriptor/project-bindings-file-model.d.ts +82 -0
  93. package/dist/package-descriptor/project-bindings-file-model.js +7 -0
  94. package/dist/services/index.d.ts +10 -0
  95. package/dist/services/index.js +4 -0
  96. package/dist/services/nuget-packager.d.ts +39 -0
  97. package/dist/services/nuget-packager.js +105 -0
  98. package/dist/services/project-operation-context.d.ts +37 -0
  99. package/dist/services/project-operation-context.js +0 -0
  100. package/dist/services/project-tool-factory.d.ts +21 -0
  101. package/dist/services/project-tool-factory.js +0 -0
  102. package/dist/services/project-tool.d.ts +32 -0
  103. package/dist/services/project-tool.js +27 -0
  104. package/dist/services/solution-tool-factory.d.ts +14 -0
  105. package/dist/services/solution-tool-factory.js +0 -0
  106. package/dist/services/solution-tool.d.ts +32 -0
  107. package/dist/services/solution-tool.js +27 -0
  108. package/dist/services/tool-logger.d.ts +44 -0
  109. package/dist/services/tool-logger.js +0 -0
  110. package/dist/services/tools-factory-repository.d.ts +84 -0
  111. package/dist/services/tools-factory-repository.js +34 -0
  112. package/package.json +45 -0
@@ -0,0 +1,38 @@
1
+ const zh_TW = {
2
+ toolCore: {
3
+ errors: {
4
+ internal: "Internal error: {message}",
5
+ fileNotFound: "File not found: {path}",
6
+ fileReadFailed: "Failed to read file: {path}",
7
+ fileWriteFailed: "Failed to write file: {path}",
8
+ directoryNotFound: "Directory not found: {path}",
9
+ invalidPath: "{path} is not a valid path",
10
+ operationCanceled: "Operation was canceled",
11
+ invalidParameter: "Invalid parameter: {parameter}"
12
+ },
13
+ progress: {
14
+ copying: "Copying files...",
15
+ building: "Building project...",
16
+ packaging: "Creating package...",
17
+ validating: "Validating...",
18
+ analyzing: "Analyzing...",
19
+ restoring: "Restoring dependencies..."
20
+ },
21
+ validation: {
22
+ requiredField: "{field} is required",
23
+ invalidValue: "Invalid value for {field}",
24
+ pathNotFound: "Path not found: {path}",
25
+ fileRequired: "File is required: {path}",
26
+ directoryRequired: "Directory is required: {path}"
27
+ },
28
+ info: {
29
+ operationComplete: "Operation completed successfully",
30
+ filesProcessed: {
31
+ zero: "No files processed",
32
+ one: "{count} file processed",
33
+ other: "{count} files processed"
34
+ }
35
+ }
36
+ }
37
+ };
38
+ export { zh_TW };
@@ -0,0 +1,37 @@
1
+ export declare const zu: {
2
+ toolCore: {
3
+ errors: {
4
+ internal: string;
5
+ fileNotFound: string;
6
+ fileReadFailed: string;
7
+ fileWriteFailed: string;
8
+ directoryNotFound: string;
9
+ invalidPath: string;
10
+ operationCanceled: string;
11
+ invalidParameter: string;
12
+ };
13
+ progress: {
14
+ copying: string;
15
+ building: string;
16
+ packaging: string;
17
+ validating: string;
18
+ analyzing: string;
19
+ restoring: string;
20
+ };
21
+ validation: {
22
+ requiredField: string;
23
+ invalidValue: string;
24
+ pathNotFound: string;
25
+ fileRequired: string;
26
+ directoryRequired: string;
27
+ };
28
+ info: {
29
+ operationComplete: string;
30
+ filesProcessed: {
31
+ zero: string;
32
+ one: string;
33
+ other: string;
34
+ };
35
+ };
36
+ };
37
+ };
@@ -0,0 +1,38 @@
1
+ const zu = {
2
+ toolCore: {
3
+ errors: {
4
+ internal: "Internal error: {message}",
5
+ fileNotFound: "File not found: {path}",
6
+ fileReadFailed: "Failed to read file: {path}",
7
+ fileWriteFailed: "Failed to write file: {path}",
8
+ directoryNotFound: "Directory not found: {path}",
9
+ invalidPath: "{path} is not a valid path",
10
+ operationCanceled: "Operation was canceled",
11
+ invalidParameter: "Invalid parameter: {parameter}"
12
+ },
13
+ progress: {
14
+ copying: "Copying files...",
15
+ building: "Building project...",
16
+ packaging: "Creating package...",
17
+ validating: "Validating...",
18
+ analyzing: "Analyzing...",
19
+ restoring: "Restoring dependencies..."
20
+ },
21
+ validation: {
22
+ requiredField: "{field} is required",
23
+ invalidValue: "Invalid value for {field}",
24
+ pathNotFound: "Path not found: {path}",
25
+ fileRequired: "File is required: {path}",
26
+ directoryRequired: "Directory is required: {path}"
27
+ },
28
+ info: {
29
+ operationComplete: "Operation completed successfully",
30
+ filesProcessed: {
31
+ zero: "No files processed",
32
+ one: "{count} file processed",
33
+ other: "{count} files processed"
34
+ }
35
+ }
36
+ }
37
+ };
38
+ export { zu };
@@ -0,0 +1,61 @@
1
+ /**
2
+ * TranslationService - Singleton service for managing translations.
3
+ * Configured once with a locale and provides translation methods.
4
+ */
5
+ import type { InterpolationParams } from "./i18n-manager.js";
6
+ /**
7
+ * Singleton service for translation management.
8
+ * Configure once at application startup with setLocale(), then use t() to translate.
9
+ */
10
+ export declare class TranslationService {
11
+ private static instance;
12
+ private currentLocale;
13
+ /**
14
+ * Private constructor - use getInstance() instead
15
+ */
16
+ private constructor();
17
+ /**
18
+ * Get the singleton instance
19
+ */
20
+ static getInstance(): TranslationService;
21
+ /**
22
+ * Configure the locale for all translations
23
+ * @param locale - Locale code (e.g., 'en', 'fr', 'de', 'es-MX', 'pt-BR')
24
+ */
25
+ setLocale(locale: string): void;
26
+ /**
27
+ * Get the currently configured locale
28
+ */
29
+ getLocale(): string;
30
+ /**
31
+ * Translate a key to a localized string using the configured locale
32
+ * @param key - Translation key in dot notation (e.g., 'toolCore.errors.fileNotFound')
33
+ * @param params - Optional interpolation parameters for {placeholder} replacement
34
+ * @returns Translated and interpolated string
35
+ */
36
+ t(key: string, params?: InterpolationParams): string;
37
+ /**
38
+ * Translate a key with a specific locale override
39
+ * @param key - Translation key
40
+ * @param locale - Locale override
41
+ * @param params - Optional interpolation parameters
42
+ * @returns Translated string
43
+ */
44
+ tLocale(key: string, locale: string, params?: InterpolationParams): string;
45
+ /**
46
+ * Check if a translation key exists
47
+ * @param key - Translation key to check
48
+ * @returns True if key exists
49
+ */
50
+ has(key: string): boolean;
51
+ /**
52
+ * Get all available locales
53
+ * @returns Array of locale codes
54
+ */
55
+ getAvailableLocales(): string[];
56
+ }
57
+ /**
58
+ * Singleton instance of the TranslationService for convenient access.
59
+ * Use translate.t("key") to translate strings.
60
+ */
61
+ export declare const translate: TranslationService;
@@ -0,0 +1,29 @@
1
+ import { I18nManager } from "./i18n-manager.js";
2
+ class TranslationService {
3
+ static instance;
4
+ currentLocale = "en";
5
+ static getInstance() {
6
+ if (!TranslationService.instance) TranslationService.instance = new TranslationService();
7
+ return TranslationService.instance;
8
+ }
9
+ setLocale(locale) {
10
+ this.currentLocale = I18nManager.setLocale(locale);
11
+ }
12
+ getLocale() {
13
+ return this.currentLocale;
14
+ }
15
+ t(key, params) {
16
+ return I18nManager.t(key, params, this.currentLocale);
17
+ }
18
+ tLocale(key, locale, params) {
19
+ return I18nManager.t(key, params, locale);
20
+ }
21
+ has(key) {
22
+ return I18nManager.has(key, this.currentLocale);
23
+ }
24
+ getAvailableLocales() {
25
+ return I18nManager.getAvailableLocales();
26
+ }
27
+ }
28
+ const translate = TranslationService.getInstance();
29
+ export { TranslationService, translate };
@@ -0,0 +1,61 @@
1
+ /**
2
+ * Type utilities for extracting translation keys from nested objects
3
+ * and validating interpolation parameters at compile time.
4
+ */
5
+ /**
6
+ * Recursively extract dot-notation paths from a nested object type.
7
+ * Converts { foo: { bar: string } } → 'foo' | 'foo.bar'
8
+ */
9
+ type PathImpl<T, K extends keyof T> = K extends string ? T[K] extends Record<string, unknown> ? T[K] extends ArrayLike<unknown> ? K | `${K}.${PathImpl<T[K], Exclude<keyof T[K], keyof unknown[]>>}` : K | `${K}.${PathImpl<T[K], keyof T[K]>}` : K : never;
10
+ /**
11
+ * Extract all possible dot-notation paths from an object type.
12
+ */
13
+ export type Path<T> = PathImpl<T, keyof T> | keyof T;
14
+ /**
15
+ * Get the value type at a specific dot-notation path in an object type.
16
+ * Example: Get<{ foo: { bar: string } }, 'foo.bar'> → string
17
+ */
18
+ export type Get<T, P extends string> = P extends `${infer K}.${infer Rest}` ? K extends keyof T ? Get<T[K], Rest> : never : P extends keyof T ? T[P] : never;
19
+ /**
20
+ * Extract parameter names from a string containing {param} placeholders.
21
+ * Example: ExtractParams<'Hello {name}, you are {age} years old'> → 'name' | 'age'
22
+ */
23
+ type ExtractParams<T extends string> = T extends `${string}{${infer Param}}${infer Rest}` ? Param | ExtractParams<Rest> : never;
24
+ /**
25
+ * Create a parameter object type from extracted parameter names.
26
+ * If no parameters exist, returns an empty object type.
27
+ */
28
+ export type ParamsFromKeys<Keys extends string> = [Keys] extends [never] ? Record<string, never> : {
29
+ [K in Keys]: string | number;
30
+ };
31
+ /**
32
+ * Extract and validate interpolation parameters for a translation key.
33
+ * Returns a Record type with required parameters if any exist.
34
+ */
35
+ export type TranslationParams<T extends Record<string, unknown>, K extends Path<T> & string> = Get<T, K> extends string ? ParamsFromKeys<ExtractParams<Get<T, K>>> : Record<string, never>;
36
+ /**
37
+ * Plural form keys for languages with multiple plural forms.
38
+ * Most languages use zero/one/other, some use more forms.
39
+ */
40
+ export interface PluralForms {
41
+ zero?: string;
42
+ one?: string;
43
+ two?: string;
44
+ few?: string;
45
+ many?: string;
46
+ other: string;
47
+ }
48
+ /**
49
+ * Translation value can be a simple string or plural forms.
50
+ */
51
+ export type TranslationValue = string | PluralForms;
52
+ /**
53
+ * Check if a translation value has plural forms.
54
+ */
55
+ export declare function isPluralForm(value: TranslationValue): value is PluralForms;
56
+ /**
57
+ * Select the appropriate plural form based on count.
58
+ * Uses simplified plural rules suitable for most European and Asian languages.
59
+ */
60
+ export declare function selectPluralForm(forms: PluralForms, count: number): string;
61
+ export {};
@@ -0,0 +1,20 @@
1
+ function isPluralForm(value) {
2
+ return "object" == typeof value && null !== value && "other" in value;
3
+ }
4
+ function selectPluralForm(forms, count) {
5
+ if (0 === count && void 0 !== forms.zero) return forms.zero;
6
+ if (1 === count && void 0 !== forms.one) return forms.one;
7
+ if (2 === count && void 0 !== forms.two) return forms.two;
8
+ if (void 0 !== forms.few) {
9
+ const mod10 = count % 10;
10
+ const mod100 = count % 100;
11
+ if (mod10 >= 2 && mod10 <= 4 && (mod100 < 10 || mod100 >= 20)) return forms.few;
12
+ }
13
+ if (void 0 !== forms.many) {
14
+ const mod10 = count % 10;
15
+ const mod100 = count % 100;
16
+ if (0 === count || 0 === mod10 && 0 !== mod100 || mod10 >= 5 && mod10 <= 9 || mod100 >= 11 && mod100 <= 14) return forms.many;
17
+ }
18
+ return forms.other;
19
+ }
20
+ export { isPluralForm, selectPluralForm };
@@ -0,0 +1,5 @@
1
+ export * from "./filesystem/index.js";
2
+ export * from "./i18n/index.js";
3
+ export * from "./models/index.js";
4
+ export * from "./package-descriptor/index.js";
5
+ export * from "./services/index.js";
package/dist/index.js ADDED
@@ -0,0 +1,5 @@
1
+ export * from "./filesystem/index.js";
2
+ export * from "./i18n/index.js";
3
+ export * from "./models/index.js";
4
+ export * from "./package-descriptor/index.js";
5
+ export * from "./services/index.js";
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Build configuration enum
3
+ */
4
+ export declare enum BuildConfiguration {
5
+ Debug = "Debug",
6
+ Release = "Release"
7
+ }
@@ -0,0 +1,6 @@
1
+ var build_configuration_BuildConfiguration = /*#__PURE__*/ function(BuildConfiguration) {
2
+ BuildConfiguration["Debug"] = "Debug";
3
+ BuildConfiguration["Release"] = "Release";
4
+ return BuildConfiguration;
5
+ }({});
6
+ export { build_configuration_BuildConfiguration as BuildConfiguration };
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Strips the origin from a URL, returning only the pathname with trailing slashes removed.
3
+ * This ensures fetch calls use relative URLs to avoid CORS issues in the browser.
4
+ */
5
+ export declare function toRelativeUrl(url: string): string;
6
+ /**
7
+ * Connection information for UiPath Cloud/Orchestrator
8
+ */
9
+ export interface ConnectionInfo {
10
+ /**
11
+ * The URL of the UiPath Cloud instance
12
+ */
13
+ cloudUrl?: string;
14
+ /**
15
+ * Access token for authentication
16
+ */
17
+ accessToken?: string;
18
+ /**
19
+ * Tenant identifier
20
+ */
21
+ tenantId?: string;
22
+ /**
23
+ * Folder identifier
24
+ */
25
+ folderId?: string;
26
+ }
@@ -0,0 +1,9 @@
1
+ function toRelativeUrl(url) {
2
+ try {
3
+ const parsed = new URL(url);
4
+ return parsed.pathname.replace(/\/+$/, "");
5
+ } catch {
6
+ return url.replace(/\/+$/, "");
7
+ }
8
+ }
9
+ export { toRelativeUrl };
@@ -0,0 +1,18 @@
1
+ export { BuildConfiguration } from "./build-configuration.js";
2
+ export type { ConnectionInfo } from "./connection-info.js";
3
+ export { toRelativeUrl } from "./connection-info.js";
4
+ export { LogLevel, LogMessage } from "./log-message.js";
5
+ export { NugetConstants } from "./nuget-constants.js";
6
+ export type { NugetFeedModel } from "./nuget-feed-model.js";
7
+ export type { NugetDependency, NugetPackageInfo, } from "./nuget-package-info.js";
8
+ export type { PackageInfo } from "./package-info.js";
9
+ export type { IProjectBuildOptions, IProjectOptions, IProjectPackOptions, IProjectRestoreOptions, IProjectValidateOptions, } from "./project-options.js";
10
+ export type { ProjectType } from "./project-type.js";
11
+ export { ProjectTypes } from "./project-type.js";
12
+ export type { ISolutionBuildOptions, ISolutionOptions, ISolutionPackOptions, ISolutionRestoreOptions, ISolutionValidateOptions, } from "./solution-options.js";
13
+ export { TargetFramework } from "./target-frameworks.js";
14
+ export type { ToolErrorCode } from "./tool-error-code.js";
15
+ export { ToolErrorCodes } from "./tool-error-code.js";
16
+ export { ToolResult } from "./tool-result.js";
17
+ export type { UiPathProject } from "./uipath-project.js";
18
+ export type { UiPathSolution } from "./uipath-solution.js";
@@ -0,0 +1,8 @@
1
+ export { BuildConfiguration } from "./build-configuration.js";
2
+ export { toRelativeUrl } from "./connection-info.js";
3
+ export { LogLevel, LogMessage } from "./log-message.js";
4
+ export { NugetConstants } from "./nuget-constants.js";
5
+ export { ProjectTypes } from "./project-type.js";
6
+ export { TargetFramework } from "./target-frameworks.js";
7
+ export { ToolErrorCodes } from "./tool-error-code.js";
8
+ export { ToolResult } from "./tool-result.js";
@@ -0,0 +1,28 @@
1
+ export declare enum LogLevel {
2
+ Debug = "Debug",
3
+ Info = "Information",
4
+ Warn = "Warning",
5
+ Error = "Error"
6
+ }
7
+ export declare class LogMessage {
8
+ message: string;
9
+ logLevel: LogLevel;
10
+ source?: string;
11
+ sourceTarget?: string;
12
+ progress?: number;
13
+ code?: string;
14
+ filePath?: string;
15
+ line?: string;
16
+ id?: string;
17
+ readonly timestamp: Date;
18
+ constructor(message: string, logLevel: LogLevel, options?: {
19
+ source?: string;
20
+ sourceTarget?: string;
21
+ progress?: number;
22
+ code?: string;
23
+ filePath?: string;
24
+ line?: string;
25
+ id?: string;
26
+ });
27
+ toFormattedString(): string;
28
+ }
@@ -0,0 +1,48 @@
1
+ var log_message_LogLevel = /*#__PURE__*/ function(LogLevel) {
2
+ LogLevel["Debug"] = "Debug";
3
+ LogLevel["Info"] = "Information";
4
+ LogLevel["Warn"] = "Warning";
5
+ LogLevel["Error"] = "Error";
6
+ return LogLevel;
7
+ }({});
8
+ class LogMessage {
9
+ message;
10
+ logLevel;
11
+ source;
12
+ sourceTarget;
13
+ progress;
14
+ code;
15
+ filePath;
16
+ line;
17
+ id;
18
+ timestamp;
19
+ constructor(message, logLevel, options){
20
+ this.message = message;
21
+ this.logLevel = logLevel;
22
+ this.source = options?.source;
23
+ this.sourceTarget = options?.sourceTarget;
24
+ this.progress = options?.progress;
25
+ this.code = options?.code;
26
+ this.filePath = options?.filePath;
27
+ this.line = options?.line;
28
+ this.id = options?.id;
29
+ this.timestamp = new Date();
30
+ }
31
+ toFormattedString() {
32
+ const parts = [];
33
+ parts.push(`[${this.timestamp.toISOString()}]`);
34
+ parts.push(`[${String(this.logLevel).toUpperCase()}]`);
35
+ if (this.source) parts.push(`[${this.source}]`);
36
+ if (this.sourceTarget) parts.push(`[${this.sourceTarget}]`);
37
+ const locationParts = [];
38
+ if (this.filePath) locationParts.push(this.filePath);
39
+ if (this.line) locationParts.push(`Line:${this.line}`);
40
+ if (this.id) locationParts.push(`Id:${this.id}`);
41
+ if (locationParts.length > 0) parts.push(`(${locationParts.join("")})`);
42
+ if (this.code) parts.push(`[${this.code}]`);
43
+ if (this.progress || 0 === this.progress) parts.push(`${this.progress}%`);
44
+ parts.push(this.message);
45
+ return parts.join(" ");
46
+ }
47
+ }
48
+ export { LogMessage, log_message_LogLevel as LogLevel };
@@ -0,0 +1,34 @@
1
+ /**
2
+ * NuGet packaging constants
3
+ * Matches the .NET NugetUtils constants
4
+ */
5
+ export declare const NugetConstants: {
6
+ /**
7
+ * Output folder name for build artifacts
8
+ */
9
+ readonly OutputFolderName: "bundle";
10
+ /**
11
+ * Content folder name within the output
12
+ */
13
+ readonly ContentFolderName: "content";
14
+ /**
15
+ * Operate file name
16
+ */
17
+ readonly OperateFileName: "operate.json";
18
+ /**
19
+ * Entry points file name
20
+ */
21
+ readonly EntryPointsFileName: "entry-points.json";
22
+ /**
23
+ * Package descriptor file name
24
+ */
25
+ readonly PackageDescriptorFileName: "package-descriptor.json";
26
+ /**
27
+ * Bindings v2 file name
28
+ */
29
+ readonly BindingsV2FileName: "bindings_v2.json";
30
+ /**
31
+ * Bindings file identifier in package descriptor
32
+ */
33
+ readonly BindingsFileId: "bindings.json";
34
+ };
@@ -0,0 +1,10 @@
1
+ const NugetConstants = {
2
+ OutputFolderName: "bundle",
3
+ ContentFolderName: "content",
4
+ OperateFileName: "operate.json",
5
+ EntryPointsFileName: "entry-points.json",
6
+ PackageDescriptorFileName: "package-descriptor.json",
7
+ BindingsV2FileName: "bindings_v2.json",
8
+ BindingsFileId: "bindings.json"
9
+ };
10
+ export { NugetConstants };
@@ -0,0 +1,25 @@
1
+ /**
2
+ * NuGet feed configuration model
3
+ */
4
+ export interface NugetFeedModel {
5
+ /**
6
+ * NuGet feed URL
7
+ */
8
+ url: string;
9
+ /**
10
+ * Access token for authentication
11
+ */
12
+ accessToken?: string;
13
+ /**
14
+ * API key for authentication
15
+ */
16
+ apiKey?: string;
17
+ /**
18
+ * Application ID for authentication
19
+ */
20
+ appId?: string;
21
+ /**
22
+ * Application secret for authentication
23
+ */
24
+ appSecret?: string;
25
+ }
File without changes
@@ -0,0 +1,63 @@
1
+ import type { PackageInfo } from "./package-info.js";
2
+ /**
3
+ * Dependency information for a NuGet package
4
+ */
5
+ export interface NugetDependency {
6
+ /**
7
+ * Package ID of the dependency
8
+ */
9
+ id: string;
10
+ /**
11
+ * Version or version range of the dependency
12
+ */
13
+ version: string;
14
+ }
15
+ /**
16
+ * NuGet-specific package information extending base package info
17
+ */
18
+ export interface NugetPackageInfo extends PackageInfo {
19
+ /**
20
+ * URL to the package icon
21
+ */
22
+ iconUrl?: string;
23
+ /**
24
+ * Project homepage URL
25
+ */
26
+ projectUrl?: string;
27
+ /**
28
+ * Package dependencies
29
+ */
30
+ dependencies?: NugetDependency[];
31
+ /**
32
+ * Package tags (space-separated) for NuGet metadata
33
+ */
34
+ tags?: string;
35
+ /**
36
+ * Copyright information
37
+ */
38
+ copyright?: string;
39
+ /**
40
+ * URL to the license
41
+ */
42
+ licenseUrl?: string;
43
+ /**
44
+ * Whether the package requires license acceptance
45
+ */
46
+ requireLicenseAcceptance?: boolean;
47
+ /**
48
+ * Repository type (e.g., "git")
49
+ */
50
+ repositoryType?: string;
51
+ /**
52
+ * Repository URL
53
+ */
54
+ repositoryUrl?: string;
55
+ /**
56
+ * Repository branch name
57
+ */
58
+ repositoryBranch?: string;
59
+ /**
60
+ * Repository commit hash
61
+ */
62
+ repositoryCommit?: string;
63
+ }
File without changes
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Package information for a UiPath solution package
3
+ */
4
+ export interface PackageInfo {
5
+ /**
6
+ * Package id
7
+ */
8
+ id: string;
9
+ /**
10
+ * Package version
11
+ */
12
+ version: string;
13
+ /**
14
+ * Package title (display name)
15
+ */
16
+ title?: string;
17
+ /**
18
+ * Package author
19
+ */
20
+ author?: string;
21
+ /**
22
+ * Package description
23
+ */
24
+ description?: string;
25
+ /**
26
+ * Release notes for this package version
27
+ */
28
+ releaseNotes?: string;
29
+ }
File without changes