@uipath/case-tool 1.195.0 → 1.197.0-preview.59
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 +2 -0
- package/dist/packager-tool.js +1021 -38
- package/dist/tool.js +58585 -22489
- package/package.json +2 -2
package/dist/packager-tool.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
// ../../node_modules/fflate/esm/index.mjs
|
|
2
2
|
import { createRequire } from "module";
|
|
3
3
|
var require2 = createRequire("/");
|
|
4
|
+
var _a;
|
|
4
5
|
var Worker;
|
|
6
|
+
var isMarkedAsUntransferable;
|
|
5
7
|
try {
|
|
6
|
-
|
|
8
|
+
_a = require2("worker_threads"), Worker = _a.Worker, isMarkedAsUntransferable = _a.isMarkedAsUntransferable;
|
|
7
9
|
} catch (e) {}
|
|
8
10
|
var u8 = Uint8Array;
|
|
9
11
|
var u16 = Uint16Array;
|
|
@@ -489,7 +491,7 @@ var fltn = function(d, p, t, o) {
|
|
|
489
491
|
var val = d[k], n = p + k, op = o;
|
|
490
492
|
if (Array.isArray(val))
|
|
491
493
|
op = mrg(o, val[1]), val = val[0];
|
|
492
|
-
if (val
|
|
494
|
+
if (ArrayBuffer.isView(val))
|
|
493
495
|
t[n] = [val, op];
|
|
494
496
|
else {
|
|
495
497
|
t[n += "/"] = [new u8(0), op];
|
|
@@ -734,7 +736,7 @@ class TemporaryStorageService {
|
|
|
734
736
|
} catch {
|
|
735
737
|
return;
|
|
736
738
|
}
|
|
737
|
-
const
|
|
739
|
+
const _pathToCleanup = this._tempFolderPath;
|
|
738
740
|
await this.fileSystem.rm(this._tempFolderPath);
|
|
739
741
|
this._tempFolderPath = null;
|
|
740
742
|
} catch {}
|
|
@@ -1596,6 +1598,138 @@ class ToolResult {
|
|
|
1596
1598
|
return new ToolResult(errorCode, message);
|
|
1597
1599
|
}
|
|
1598
1600
|
}
|
|
1601
|
+
var OPERATE_FILE = "operate.json";
|
|
1602
|
+
var PROJECT_FILE = "project.json";
|
|
1603
|
+
function isNonEmptyString(value) {
|
|
1604
|
+
return typeof value === "string" && value.length > 0;
|
|
1605
|
+
}
|
|
1606
|
+
async function readJsonObject(fs, filePath) {
|
|
1607
|
+
let content;
|
|
1608
|
+
try {
|
|
1609
|
+
content = await fs.readFile(filePath, "utf-8");
|
|
1610
|
+
} catch {
|
|
1611
|
+
return;
|
|
1612
|
+
}
|
|
1613
|
+
if (content === null) {
|
|
1614
|
+
return;
|
|
1615
|
+
}
|
|
1616
|
+
try {
|
|
1617
|
+
const parsed = JSON.parse(content);
|
|
1618
|
+
if (parsed === null || typeof parsed !== "object") {
|
|
1619
|
+
return;
|
|
1620
|
+
}
|
|
1621
|
+
return parsed;
|
|
1622
|
+
} catch {
|
|
1623
|
+
return;
|
|
1624
|
+
}
|
|
1625
|
+
}
|
|
1626
|
+
async function writeJsonObject(fs, filePath, data) {
|
|
1627
|
+
await fs.writeFile(filePath, `${JSON.stringify(data, null, 2)}
|
|
1628
|
+
`);
|
|
1629
|
+
}
|
|
1630
|
+
async function ensureProjectId(projectPath, fs) {
|
|
1631
|
+
const operatePath = Path.join(projectPath, OPERATE_FILE);
|
|
1632
|
+
const operateExists = await fs.exists(operatePath);
|
|
1633
|
+
if (operateExists) {
|
|
1634
|
+
const operate = await readJsonObject(fs, operatePath);
|
|
1635
|
+
if (operate && isNonEmptyString(operate.projectId)) {
|
|
1636
|
+
return operate.projectId;
|
|
1637
|
+
}
|
|
1638
|
+
if (operate) {
|
|
1639
|
+
const id = crypto.randomUUID();
|
|
1640
|
+
await writeJsonObject(fs, operatePath, {
|
|
1641
|
+
...operate,
|
|
1642
|
+
projectId: id
|
|
1643
|
+
});
|
|
1644
|
+
return id;
|
|
1645
|
+
}
|
|
1646
|
+
return crypto.randomUUID();
|
|
1647
|
+
}
|
|
1648
|
+
const projectFilePath = Path.join(projectPath, PROJECT_FILE);
|
|
1649
|
+
const projectFileExists = await fs.exists(projectFilePath);
|
|
1650
|
+
if (projectFileExists) {
|
|
1651
|
+
const projectFile = await readJsonObject(fs, projectFilePath);
|
|
1652
|
+
if (projectFile && isNonEmptyString(projectFile.projectId)) {
|
|
1653
|
+
return projectFile.projectId;
|
|
1654
|
+
}
|
|
1655
|
+
if (projectFile) {
|
|
1656
|
+
const id = crypto.randomUUID();
|
|
1657
|
+
await writeJsonObject(fs, projectFilePath, {
|
|
1658
|
+
...projectFile,
|
|
1659
|
+
projectId: id
|
|
1660
|
+
});
|
|
1661
|
+
return id;
|
|
1662
|
+
}
|
|
1663
|
+
return crypto.randomUUID();
|
|
1664
|
+
}
|
|
1665
|
+
return crypto.randomUUID();
|
|
1666
|
+
}
|
|
1667
|
+
async function ensureProjectIdInOperateFile(operateFilePath, fallbackProjectId, fs) {
|
|
1668
|
+
if (!await fs.exists(operateFilePath)) {
|
|
1669
|
+
return;
|
|
1670
|
+
}
|
|
1671
|
+
const parsed = await readJsonObject(fs, operateFilePath);
|
|
1672
|
+
if (!parsed) {
|
|
1673
|
+
return;
|
|
1674
|
+
}
|
|
1675
|
+
if (isNonEmptyString(parsed.projectId)) {
|
|
1676
|
+
return;
|
|
1677
|
+
}
|
|
1678
|
+
await writeJsonObject(fs, operateFilePath, {
|
|
1679
|
+
...parsed,
|
|
1680
|
+
projectId: fallbackProjectId
|
|
1681
|
+
});
|
|
1682
|
+
}
|
|
1683
|
+
async function writeOrBackfillOperateProjectId(operateFilePath, projectId, fs, createIfMissing) {
|
|
1684
|
+
if (await fs.exists(operateFilePath)) {
|
|
1685
|
+
await ensureProjectIdInOperateFile(operateFilePath, projectId, fs);
|
|
1686
|
+
return;
|
|
1687
|
+
}
|
|
1688
|
+
await createIfMissing();
|
|
1689
|
+
}
|
|
1690
|
+
var OPERATE_SCHEMA = "https://cloud.uipath.com/draft/2024-12/operate";
|
|
1691
|
+
async function resolveEntryPointMain(fs, sourceFolder) {
|
|
1692
|
+
const entryPointsFilePath = Path.join(sourceFolder, NugetConstants.EntryPointsFileName);
|
|
1693
|
+
if (!await fs.exists(entryPointsFilePath)) {
|
|
1694
|
+
return "";
|
|
1695
|
+
}
|
|
1696
|
+
const content = await fs.readFile(entryPointsFilePath);
|
|
1697
|
+
if (!content) {
|
|
1698
|
+
return "";
|
|
1699
|
+
}
|
|
1700
|
+
try {
|
|
1701
|
+
const parsed = JSON.parse(new TextDecoder().decode(content));
|
|
1702
|
+
return parsed.entryPoints?.[0]?.filePath ?? "";
|
|
1703
|
+
} catch {
|
|
1704
|
+
return "";
|
|
1705
|
+
}
|
|
1706
|
+
}
|
|
1707
|
+
async function writeContentOperateFile(fs, params) {
|
|
1708
|
+
const operateFilePath = Path.join(params.contentFolder, NugetConstants.OperateFileName);
|
|
1709
|
+
await writeOrBackfillOperateProjectId(operateFilePath, params.projectId, fs, async () => {
|
|
1710
|
+
const main = await resolveEntryPointMain(fs, params.contentFolder);
|
|
1711
|
+
const operateFileModel = {
|
|
1712
|
+
$schema: OPERATE_SCHEMA,
|
|
1713
|
+
contentType: params.contentType,
|
|
1714
|
+
projectId: params.projectId,
|
|
1715
|
+
main,
|
|
1716
|
+
targetFramework: "Portable",
|
|
1717
|
+
runtimeOptions: {
|
|
1718
|
+
isAttended: false,
|
|
1719
|
+
requiresUserInteraction: false
|
|
1720
|
+
}
|
|
1721
|
+
};
|
|
1722
|
+
await fs.writeFile(operateFilePath, JSON.stringify(operateFileModel, null, 2));
|
|
1723
|
+
});
|
|
1724
|
+
}
|
|
1725
|
+
async function ensureContentOperateFile(fs, params) {
|
|
1726
|
+
const projectId = params.projectStorageId ?? await ensureProjectId(params.projectPath, fs);
|
|
1727
|
+
await writeContentOperateFile(fs, {
|
|
1728
|
+
contentFolder: params.contentFolder,
|
|
1729
|
+
projectId,
|
|
1730
|
+
contentType: params.contentType
|
|
1731
|
+
});
|
|
1732
|
+
}
|
|
1599
1733
|
function escapeXml(str) {
|
|
1600
1734
|
if (str === null || str === undefined) {
|
|
1601
1735
|
return "";
|
|
@@ -1758,8 +1892,11 @@ class ToolsFactoryRepository {
|
|
|
1758
1892
|
solutionFactory = null;
|
|
1759
1893
|
registerProjectToolFactory(factory) {
|
|
1760
1894
|
for (const type of factory.supportedTypes) {
|
|
1761
|
-
|
|
1762
|
-
|
|
1895
|
+
const existing = this.projectFactoryMap.get(type);
|
|
1896
|
+
if (existing) {
|
|
1897
|
+
if (existing.constructor?.name !== factory.constructor?.name) {
|
|
1898
|
+
console.warn(`Tool factory conflict for project type '${type}': ` + `'${existing.constructor?.name}' already registered, ` + `ignoring '${factory.constructor?.name}'.`);
|
|
1899
|
+
}
|
|
1763
1900
|
continue;
|
|
1764
1901
|
}
|
|
1765
1902
|
this.projectFactoryMap.set(type, factory);
|
|
@@ -1880,39 +2017,12 @@ class CaseTool extends ProjectTool {
|
|
|
1880
2017
|
}
|
|
1881
2018
|
}
|
|
1882
2019
|
async createOperateFile(options, contentFolder) {
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
async createOperateJsonFile(projectPath, projectId, filePath) {
|
|
1890
|
-
const entryPointsFilePath = Path.join(projectPath, CaseConstants.EntryPointsFileName);
|
|
1891
|
-
let mainPath = "";
|
|
1892
|
-
const entryPointsExists = await this.fileSystem.exists(entryPointsFilePath);
|
|
1893
|
-
if (entryPointsExists) {
|
|
1894
|
-
const entryPointsContent = await this.fileSystem.readFile(entryPointsFilePath);
|
|
1895
|
-
if (entryPointsContent) {
|
|
1896
|
-
try {
|
|
1897
|
-
const entryPointsText = new TextDecoder().decode(entryPointsContent);
|
|
1898
|
-
const entryPoints = JSON.parse(entryPointsText);
|
|
1899
|
-
mainPath = entryPoints.entryPoints?.[0]?.filePath ?? "";
|
|
1900
|
-
} catch {}
|
|
1901
|
-
}
|
|
1902
|
-
}
|
|
1903
|
-
const operateFileModel = {
|
|
1904
|
-
$schema: "https://cloud.uipath.com/draft/2024-12/operate",
|
|
1905
|
-
contentType: ProjectTypes.CaseManagement,
|
|
1906
|
-
projectId,
|
|
1907
|
-
main: mainPath,
|
|
1908
|
-
targetFramework: "Portable",
|
|
1909
|
-
runtimeOptions: {
|
|
1910
|
-
isAttended: false,
|
|
1911
|
-
requiresUserInteraction: false
|
|
1912
|
-
}
|
|
1913
|
-
};
|
|
1914
|
-
const operateJsonString = JSON.stringify(operateFileModel, null, 2);
|
|
1915
|
-
await this.fileSystem.writeFile(filePath, operateJsonString);
|
|
2020
|
+
await ensureContentOperateFile(this.fileSystem, {
|
|
2021
|
+
contentFolder,
|
|
2022
|
+
projectPath: options.projectPath,
|
|
2023
|
+
projectStorageId: options.projectStorageId,
|
|
2024
|
+
contentType: ProjectTypes.CaseManagement
|
|
2025
|
+
});
|
|
1916
2026
|
}
|
|
1917
2027
|
async createPackageDescriptor(localBuildFolder, contentFolder) {
|
|
1918
2028
|
const descriptorFiles = {};
|
|
@@ -1946,3 +2056,876 @@ class CaseToolFactory {
|
|
|
1946
2056
|
|
|
1947
2057
|
// ../packager/packager-tool-case/src/index.ts
|
|
1948
2058
|
toolsFactoryRepository.registerProjectToolFactory(new CaseToolFactory);
|
|
2059
|
+
// ../packager/packager-core/src/i18n/types.ts
|
|
2060
|
+
function isPluralForm2(value) {
|
|
2061
|
+
return typeof value === "object" && value !== null && "other" in value;
|
|
2062
|
+
}
|
|
2063
|
+
function selectPluralForm2(forms, count) {
|
|
2064
|
+
if (count === 0 && forms.zero !== undefined) {
|
|
2065
|
+
return forms.zero;
|
|
2066
|
+
}
|
|
2067
|
+
if (count === 1 && forms.one !== undefined) {
|
|
2068
|
+
return forms.one;
|
|
2069
|
+
}
|
|
2070
|
+
if (count === 2 && forms.two !== undefined) {
|
|
2071
|
+
return forms.two;
|
|
2072
|
+
}
|
|
2073
|
+
if (forms.few !== undefined) {
|
|
2074
|
+
const mod10 = count % 10;
|
|
2075
|
+
const mod100 = count % 100;
|
|
2076
|
+
if (mod10 >= 2 && mod10 <= 4 && (mod100 < 10 || mod100 >= 20)) {
|
|
2077
|
+
return forms.few;
|
|
2078
|
+
}
|
|
2079
|
+
}
|
|
2080
|
+
if (forms.many !== undefined) {
|
|
2081
|
+
const mod10 = count % 10;
|
|
2082
|
+
const mod100 = count % 100;
|
|
2083
|
+
if (count === 0 || mod10 === 0 && mod100 !== 0 || mod10 >= 5 && mod10 <= 9 || mod100 >= 11 && mod100 <= 14) {
|
|
2084
|
+
return forms.many;
|
|
2085
|
+
}
|
|
2086
|
+
}
|
|
2087
|
+
return forms.other;
|
|
2088
|
+
}
|
|
2089
|
+
|
|
2090
|
+
// ../packager/packager-core/src/i18n/i18n-manager.ts
|
|
2091
|
+
class I18nManager2 {
|
|
2092
|
+
static translations = {};
|
|
2093
|
+
static currentLocale = "en";
|
|
2094
|
+
static fallbackLocale = "en";
|
|
2095
|
+
static registerTranslations(locale, catalog) {
|
|
2096
|
+
if (!I18nManager2.translations[locale]) {
|
|
2097
|
+
I18nManager2.translations[locale] = {};
|
|
2098
|
+
}
|
|
2099
|
+
I18nManager2.translations[locale] = I18nManager2.deepMerge(I18nManager2.translations[locale], catalog);
|
|
2100
|
+
}
|
|
2101
|
+
static setLocale(locale) {
|
|
2102
|
+
const normalized = I18nManager2.normalizeLocale(locale);
|
|
2103
|
+
if (I18nManager2.translations[normalized]) {
|
|
2104
|
+
I18nManager2.currentLocale = normalized;
|
|
2105
|
+
return normalized;
|
|
2106
|
+
}
|
|
2107
|
+
const baseLocale = normalized.split("-")[0];
|
|
2108
|
+
if (baseLocale !== normalized && I18nManager2.translations[baseLocale]) {
|
|
2109
|
+
I18nManager2.currentLocale = baseLocale;
|
|
2110
|
+
return baseLocale;
|
|
2111
|
+
}
|
|
2112
|
+
return I18nManager2.currentLocale;
|
|
2113
|
+
}
|
|
2114
|
+
static getLocale() {
|
|
2115
|
+
return I18nManager2.currentLocale;
|
|
2116
|
+
}
|
|
2117
|
+
static setFallbackLocale(locale) {
|
|
2118
|
+
I18nManager2.fallbackLocale = I18nManager2.normalizeLocale(locale);
|
|
2119
|
+
}
|
|
2120
|
+
static t(key, params, locale) {
|
|
2121
|
+
const targetLocale = locale ? I18nManager2.normalizeLocale(locale) : I18nManager2.currentLocale;
|
|
2122
|
+
let value = I18nManager2.getTranslationValue(key, targetLocale);
|
|
2123
|
+
if (value === undefined && targetLocale !== I18nManager2.fallbackLocale) {
|
|
2124
|
+
value = I18nManager2.getTranslationValue(key, I18nManager2.fallbackLocale);
|
|
2125
|
+
}
|
|
2126
|
+
if (value === undefined) {
|
|
2127
|
+
return key;
|
|
2128
|
+
}
|
|
2129
|
+
if (isPluralForm2(value) && params && "count" in params) {
|
|
2130
|
+
const count = typeof params.count === "number" ? params.count : Number(params.count);
|
|
2131
|
+
value = selectPluralForm2(value, count);
|
|
2132
|
+
} else if (isPluralForm2(value)) {
|
|
2133
|
+
value = value.other;
|
|
2134
|
+
}
|
|
2135
|
+
if (typeof value !== "string") {
|
|
2136
|
+
return key;
|
|
2137
|
+
}
|
|
2138
|
+
return params ? I18nManager2.interpolate(value, params) : value;
|
|
2139
|
+
}
|
|
2140
|
+
static has(key, locale) {
|
|
2141
|
+
const targetLocale = locale ? I18nManager2.normalizeLocale(locale) : I18nManager2.currentLocale;
|
|
2142
|
+
const value = I18nManager2.getTranslationValue(key, targetLocale);
|
|
2143
|
+
if (value !== undefined) {
|
|
2144
|
+
return true;
|
|
2145
|
+
}
|
|
2146
|
+
if (targetLocale !== I18nManager2.fallbackLocale) {
|
|
2147
|
+
return I18nManager2.getTranslationValue(key, I18nManager2.fallbackLocale) !== undefined;
|
|
2148
|
+
}
|
|
2149
|
+
return false;
|
|
2150
|
+
}
|
|
2151
|
+
static getAvailableLocales() {
|
|
2152
|
+
return Object.keys(I18nManager2.translations);
|
|
2153
|
+
}
|
|
2154
|
+
static clearTranslations() {
|
|
2155
|
+
I18nManager2.translations = {};
|
|
2156
|
+
I18nManager2.currentLocale = "en";
|
|
2157
|
+
}
|
|
2158
|
+
static getTranslationValue(key, locale) {
|
|
2159
|
+
const catalog = I18nManager2.translations[locale];
|
|
2160
|
+
if (!catalog) {
|
|
2161
|
+
return;
|
|
2162
|
+
}
|
|
2163
|
+
const keys = key.split(".");
|
|
2164
|
+
let value = catalog;
|
|
2165
|
+
for (const k of keys) {
|
|
2166
|
+
if (value && typeof value === "object" && k in value) {
|
|
2167
|
+
value = value[k];
|
|
2168
|
+
} else {
|
|
2169
|
+
return;
|
|
2170
|
+
}
|
|
2171
|
+
}
|
|
2172
|
+
return value;
|
|
2173
|
+
}
|
|
2174
|
+
static interpolate(template, params) {
|
|
2175
|
+
return template.replace(/\{(\w+)\}/g, (_, key) => {
|
|
2176
|
+
const value = params[key];
|
|
2177
|
+
return value !== undefined ? String(value) : `{${key}}`;
|
|
2178
|
+
});
|
|
2179
|
+
}
|
|
2180
|
+
static normalizeLocale(locale) {
|
|
2181
|
+
const normalized = locale.toLowerCase().replace(/_/g, "-");
|
|
2182
|
+
const specialLocales = ["es-mx", "pt-br", "zh-cn", "zh-tw"];
|
|
2183
|
+
if (specialLocales.includes(normalized)) {
|
|
2184
|
+
return normalized;
|
|
2185
|
+
}
|
|
2186
|
+
return normalized.split("-")[0];
|
|
2187
|
+
}
|
|
2188
|
+
static deepMerge(target, source) {
|
|
2189
|
+
const result = { ...target };
|
|
2190
|
+
for (const key of Object.keys(source)) {
|
|
2191
|
+
const sourceValue = source[key];
|
|
2192
|
+
const targetValue = result[key];
|
|
2193
|
+
if (sourceValue && typeof sourceValue === "object" && !Array.isArray(sourceValue) && targetValue && typeof targetValue === "object" && !Array.isArray(targetValue)) {
|
|
2194
|
+
result[key] = I18nManager2.deepMerge(targetValue, sourceValue);
|
|
2195
|
+
} else {
|
|
2196
|
+
result[key] = sourceValue;
|
|
2197
|
+
}
|
|
2198
|
+
}
|
|
2199
|
+
return result;
|
|
2200
|
+
}
|
|
2201
|
+
}
|
|
2202
|
+
|
|
2203
|
+
// ../packager/packager-core/src/i18n/locales/de.ts
|
|
2204
|
+
var de2 = {
|
|
2205
|
+
toolCore: {
|
|
2206
|
+
errors: {
|
|
2207
|
+
internal: "Internal error: {message}",
|
|
2208
|
+
fileNotFound: "File not found: {path}",
|
|
2209
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
2210
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
2211
|
+
directoryNotFound: "Directory not found: {path}",
|
|
2212
|
+
invalidPath: "{path} is not a valid path",
|
|
2213
|
+
operationCanceled: "Operation was canceled",
|
|
2214
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
2215
|
+
},
|
|
2216
|
+
progress: {
|
|
2217
|
+
copying: "Copying files...",
|
|
2218
|
+
building: "Building project...",
|
|
2219
|
+
packaging: "Creating package...",
|
|
2220
|
+
validating: "Validating...",
|
|
2221
|
+
analyzing: "Analyzing...",
|
|
2222
|
+
restoring: "Restoring dependencies..."
|
|
2223
|
+
},
|
|
2224
|
+
validation: {
|
|
2225
|
+
requiredField: "{field} is required",
|
|
2226
|
+
invalidValue: "Invalid value for {field}",
|
|
2227
|
+
pathNotFound: "Path not found: {path}",
|
|
2228
|
+
fileRequired: "File is required: {path}",
|
|
2229
|
+
directoryRequired: "Directory is required: {path}"
|
|
2230
|
+
},
|
|
2231
|
+
warnings: {
|
|
2232
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
2233
|
+
},
|
|
2234
|
+
info: {
|
|
2235
|
+
operationComplete: "Operation completed successfully",
|
|
2236
|
+
filesProcessed: {
|
|
2237
|
+
zero: "No files processed",
|
|
2238
|
+
one: "{count} file processed",
|
|
2239
|
+
other: "{count} files processed"
|
|
2240
|
+
}
|
|
2241
|
+
}
|
|
2242
|
+
}
|
|
2243
|
+
};
|
|
2244
|
+
|
|
2245
|
+
// ../packager/packager-core/src/i18n/locales/en.ts
|
|
2246
|
+
var en2 = {
|
|
2247
|
+
toolCore: {
|
|
2248
|
+
errors: {
|
|
2249
|
+
internal: "Internal error: {message}",
|
|
2250
|
+
fileNotFound: "File not found: {path}",
|
|
2251
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
2252
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
2253
|
+
directoryNotFound: "Directory not found: {path}",
|
|
2254
|
+
invalidPath: "{path} is not a valid path",
|
|
2255
|
+
operationCanceled: "Operation was canceled",
|
|
2256
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
2257
|
+
},
|
|
2258
|
+
progress: {
|
|
2259
|
+
copying: "Copying files...",
|
|
2260
|
+
building: "Building project...",
|
|
2261
|
+
packaging: "Creating package...",
|
|
2262
|
+
validating: "Validating...",
|
|
2263
|
+
analyzing: "Analyzing...",
|
|
2264
|
+
restoring: "Restoring dependencies..."
|
|
2265
|
+
},
|
|
2266
|
+
validation: {
|
|
2267
|
+
requiredField: "{field} is required",
|
|
2268
|
+
invalidValue: "Invalid value for {field}",
|
|
2269
|
+
pathNotFound: "Path not found: {path}",
|
|
2270
|
+
fileRequired: "File is required: {path}",
|
|
2271
|
+
directoryRequired: "Directory is required: {path}"
|
|
2272
|
+
},
|
|
2273
|
+
warnings: {
|
|
2274
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
2275
|
+
},
|
|
2276
|
+
info: {
|
|
2277
|
+
operationComplete: "Operation completed successfully",
|
|
2278
|
+
filesProcessed: {
|
|
2279
|
+
zero: "No files processed",
|
|
2280
|
+
one: "{count} file processed",
|
|
2281
|
+
other: "{count} files processed"
|
|
2282
|
+
}
|
|
2283
|
+
}
|
|
2284
|
+
}
|
|
2285
|
+
};
|
|
2286
|
+
|
|
2287
|
+
// ../packager/packager-core/src/i18n/locales/es.ts
|
|
2288
|
+
var es2 = {
|
|
2289
|
+
toolCore: {
|
|
2290
|
+
errors: {
|
|
2291
|
+
internal: "Internal error: {message}",
|
|
2292
|
+
fileNotFound: "File not found: {path}",
|
|
2293
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
2294
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
2295
|
+
directoryNotFound: "Directory not found: {path}",
|
|
2296
|
+
invalidPath: "{path} is not a valid path",
|
|
2297
|
+
operationCanceled: "Operation was canceled",
|
|
2298
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
2299
|
+
},
|
|
2300
|
+
progress: {
|
|
2301
|
+
copying: "Copying files...",
|
|
2302
|
+
building: "Building project...",
|
|
2303
|
+
packaging: "Creating package...",
|
|
2304
|
+
validating: "Validating...",
|
|
2305
|
+
analyzing: "Analyzing...",
|
|
2306
|
+
restoring: "Restoring dependencies..."
|
|
2307
|
+
},
|
|
2308
|
+
validation: {
|
|
2309
|
+
requiredField: "{field} is required",
|
|
2310
|
+
invalidValue: "Invalid value for {field}",
|
|
2311
|
+
pathNotFound: "Path not found: {path}",
|
|
2312
|
+
fileRequired: "File is required: {path}",
|
|
2313
|
+
directoryRequired: "Directory is required: {path}"
|
|
2314
|
+
},
|
|
2315
|
+
warnings: {
|
|
2316
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
2317
|
+
},
|
|
2318
|
+
info: {
|
|
2319
|
+
operationComplete: "Operation completed successfully",
|
|
2320
|
+
filesProcessed: {
|
|
2321
|
+
zero: "No files processed",
|
|
2322
|
+
one: "{count} file processed",
|
|
2323
|
+
other: "{count} files processed"
|
|
2324
|
+
}
|
|
2325
|
+
}
|
|
2326
|
+
}
|
|
2327
|
+
};
|
|
2328
|
+
|
|
2329
|
+
// ../packager/packager-core/src/i18n/locales/es-MX.ts
|
|
2330
|
+
var es_MX2 = {
|
|
2331
|
+
toolCore: {
|
|
2332
|
+
errors: {
|
|
2333
|
+
internal: "Internal error: {message}",
|
|
2334
|
+
fileNotFound: "File not found: {path}",
|
|
2335
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
2336
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
2337
|
+
directoryNotFound: "Directory not found: {path}",
|
|
2338
|
+
invalidPath: "{path} is not a valid path",
|
|
2339
|
+
operationCanceled: "Operation was canceled",
|
|
2340
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
2341
|
+
},
|
|
2342
|
+
progress: {
|
|
2343
|
+
copying: "Copying files...",
|
|
2344
|
+
building: "Building project...",
|
|
2345
|
+
packaging: "Creating package...",
|
|
2346
|
+
validating: "Validating...",
|
|
2347
|
+
analyzing: "Analyzing...",
|
|
2348
|
+
restoring: "Restoring dependencies..."
|
|
2349
|
+
},
|
|
2350
|
+
validation: {
|
|
2351
|
+
requiredField: "{field} is required",
|
|
2352
|
+
invalidValue: "Invalid value for {field}",
|
|
2353
|
+
pathNotFound: "Path not found: {path}",
|
|
2354
|
+
fileRequired: "File is required: {path}",
|
|
2355
|
+
directoryRequired: "Directory is required: {path}"
|
|
2356
|
+
},
|
|
2357
|
+
warnings: {
|
|
2358
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
2359
|
+
},
|
|
2360
|
+
info: {
|
|
2361
|
+
operationComplete: "Operation completed successfully",
|
|
2362
|
+
filesProcessed: {
|
|
2363
|
+
zero: "No files processed",
|
|
2364
|
+
one: "{count} file processed",
|
|
2365
|
+
other: "{count} files processed"
|
|
2366
|
+
}
|
|
2367
|
+
}
|
|
2368
|
+
}
|
|
2369
|
+
};
|
|
2370
|
+
|
|
2371
|
+
// ../packager/packager-core/src/i18n/locales/fr.ts
|
|
2372
|
+
var fr2 = {
|
|
2373
|
+
toolCore: {
|
|
2374
|
+
errors: {
|
|
2375
|
+
internal: "Internal error: {message}",
|
|
2376
|
+
fileNotFound: "File not found: {path}",
|
|
2377
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
2378
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
2379
|
+
directoryNotFound: "Directory not found: {path}",
|
|
2380
|
+
invalidPath: "{path} is not a valid path",
|
|
2381
|
+
operationCanceled: "Operation was canceled",
|
|
2382
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
2383
|
+
},
|
|
2384
|
+
progress: {
|
|
2385
|
+
copying: "Copying files...",
|
|
2386
|
+
building: "Building project...",
|
|
2387
|
+
packaging: "Creating package...",
|
|
2388
|
+
validating: "Validating...",
|
|
2389
|
+
analyzing: "Analyzing...",
|
|
2390
|
+
restoring: "Restoring dependencies..."
|
|
2391
|
+
},
|
|
2392
|
+
validation: {
|
|
2393
|
+
requiredField: "{field} is required",
|
|
2394
|
+
invalidValue: "Invalid value for {field}",
|
|
2395
|
+
pathNotFound: "Path not found: {path}",
|
|
2396
|
+
fileRequired: "File is required: {path}",
|
|
2397
|
+
directoryRequired: "Directory is required: {path}"
|
|
2398
|
+
},
|
|
2399
|
+
warnings: {
|
|
2400
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
2401
|
+
},
|
|
2402
|
+
info: {
|
|
2403
|
+
operationComplete: "Operation completed successfully",
|
|
2404
|
+
filesProcessed: {
|
|
2405
|
+
zero: "No files processed",
|
|
2406
|
+
one: "{count} file processed",
|
|
2407
|
+
other: "{count} files processed"
|
|
2408
|
+
}
|
|
2409
|
+
}
|
|
2410
|
+
}
|
|
2411
|
+
};
|
|
2412
|
+
|
|
2413
|
+
// ../packager/packager-core/src/i18n/locales/ja.ts
|
|
2414
|
+
var ja2 = {
|
|
2415
|
+
toolCore: {
|
|
2416
|
+
errors: {
|
|
2417
|
+
internal: "Internal error: {message}",
|
|
2418
|
+
fileNotFound: "File not found: {path}",
|
|
2419
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
2420
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
2421
|
+
directoryNotFound: "Directory not found: {path}",
|
|
2422
|
+
invalidPath: "{path} is not a valid path",
|
|
2423
|
+
operationCanceled: "Operation was canceled",
|
|
2424
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
2425
|
+
},
|
|
2426
|
+
progress: {
|
|
2427
|
+
copying: "Copying files...",
|
|
2428
|
+
building: "Building project...",
|
|
2429
|
+
packaging: "Creating package...",
|
|
2430
|
+
validating: "Validating...",
|
|
2431
|
+
analyzing: "Analyzing...",
|
|
2432
|
+
restoring: "Restoring dependencies..."
|
|
2433
|
+
},
|
|
2434
|
+
validation: {
|
|
2435
|
+
requiredField: "{field} is required",
|
|
2436
|
+
invalidValue: "Invalid value for {field}",
|
|
2437
|
+
pathNotFound: "Path not found: {path}",
|
|
2438
|
+
fileRequired: "File is required: {path}",
|
|
2439
|
+
directoryRequired: "Directory is required: {path}"
|
|
2440
|
+
},
|
|
2441
|
+
warnings: {
|
|
2442
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
2443
|
+
},
|
|
2444
|
+
info: {
|
|
2445
|
+
operationComplete: "Operation completed successfully",
|
|
2446
|
+
filesProcessed: {
|
|
2447
|
+
zero: "No files processed",
|
|
2448
|
+
one: "{count} file processed",
|
|
2449
|
+
other: "{count} files processed"
|
|
2450
|
+
}
|
|
2451
|
+
}
|
|
2452
|
+
}
|
|
2453
|
+
};
|
|
2454
|
+
|
|
2455
|
+
// ../packager/packager-core/src/i18n/locales/ko.ts
|
|
2456
|
+
var ko2 = {
|
|
2457
|
+
toolCore: {
|
|
2458
|
+
errors: {
|
|
2459
|
+
internal: "Internal error: {message}",
|
|
2460
|
+
fileNotFound: "File not found: {path}",
|
|
2461
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
2462
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
2463
|
+
directoryNotFound: "Directory not found: {path}",
|
|
2464
|
+
invalidPath: "{path} is not a valid path",
|
|
2465
|
+
operationCanceled: "Operation was canceled",
|
|
2466
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
2467
|
+
},
|
|
2468
|
+
progress: {
|
|
2469
|
+
copying: "Copying files...",
|
|
2470
|
+
building: "Building project...",
|
|
2471
|
+
packaging: "Creating package...",
|
|
2472
|
+
validating: "Validating...",
|
|
2473
|
+
analyzing: "Analyzing...",
|
|
2474
|
+
restoring: "Restoring dependencies..."
|
|
2475
|
+
},
|
|
2476
|
+
validation: {
|
|
2477
|
+
requiredField: "{field} is required",
|
|
2478
|
+
invalidValue: "Invalid value for {field}",
|
|
2479
|
+
pathNotFound: "Path not found: {path}",
|
|
2480
|
+
fileRequired: "File is required: {path}",
|
|
2481
|
+
directoryRequired: "Directory is required: {path}"
|
|
2482
|
+
},
|
|
2483
|
+
warnings: {
|
|
2484
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
2485
|
+
},
|
|
2486
|
+
info: {
|
|
2487
|
+
operationComplete: "Operation completed successfully",
|
|
2488
|
+
filesProcessed: {
|
|
2489
|
+
zero: "No files processed",
|
|
2490
|
+
one: "{count} file processed",
|
|
2491
|
+
other: "{count} files processed"
|
|
2492
|
+
}
|
|
2493
|
+
}
|
|
2494
|
+
}
|
|
2495
|
+
};
|
|
2496
|
+
|
|
2497
|
+
// ../packager/packager-core/src/i18n/locales/pt.ts
|
|
2498
|
+
var pt2 = {
|
|
2499
|
+
toolCore: {
|
|
2500
|
+
errors: {
|
|
2501
|
+
internal: "Internal error: {message}",
|
|
2502
|
+
fileNotFound: "File not found: {path}",
|
|
2503
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
2504
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
2505
|
+
directoryNotFound: "Directory not found: {path}",
|
|
2506
|
+
invalidPath: "{path} is not a valid path",
|
|
2507
|
+
operationCanceled: "Operation was canceled",
|
|
2508
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
2509
|
+
},
|
|
2510
|
+
progress: {
|
|
2511
|
+
copying: "Copying files...",
|
|
2512
|
+
building: "Building project...",
|
|
2513
|
+
packaging: "Creating package...",
|
|
2514
|
+
validating: "Validating...",
|
|
2515
|
+
analyzing: "Analyzing...",
|
|
2516
|
+
restoring: "Restoring dependencies..."
|
|
2517
|
+
},
|
|
2518
|
+
validation: {
|
|
2519
|
+
requiredField: "{field} is required",
|
|
2520
|
+
invalidValue: "Invalid value for {field}",
|
|
2521
|
+
pathNotFound: "Path not found: {path}",
|
|
2522
|
+
fileRequired: "File is required: {path}",
|
|
2523
|
+
directoryRequired: "Directory is required: {path}"
|
|
2524
|
+
},
|
|
2525
|
+
warnings: {
|
|
2526
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
2527
|
+
},
|
|
2528
|
+
info: {
|
|
2529
|
+
operationComplete: "Operation completed successfully",
|
|
2530
|
+
filesProcessed: {
|
|
2531
|
+
zero: "No files processed",
|
|
2532
|
+
one: "{count} file processed",
|
|
2533
|
+
other: "{count} files processed"
|
|
2534
|
+
}
|
|
2535
|
+
}
|
|
2536
|
+
}
|
|
2537
|
+
};
|
|
2538
|
+
|
|
2539
|
+
// ../packager/packager-core/src/i18n/locales/pt-BR.ts
|
|
2540
|
+
var pt_BR2 = {
|
|
2541
|
+
toolCore: {
|
|
2542
|
+
errors: {
|
|
2543
|
+
internal: "Internal error: {message}",
|
|
2544
|
+
fileNotFound: "File not found: {path}",
|
|
2545
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
2546
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
2547
|
+
directoryNotFound: "Directory not found: {path}",
|
|
2548
|
+
invalidPath: "{path} is not a valid path",
|
|
2549
|
+
operationCanceled: "Operation was canceled",
|
|
2550
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
2551
|
+
},
|
|
2552
|
+
progress: {
|
|
2553
|
+
copying: "Copying files...",
|
|
2554
|
+
building: "Building project...",
|
|
2555
|
+
packaging: "Creating package...",
|
|
2556
|
+
validating: "Validating...",
|
|
2557
|
+
analyzing: "Analyzing...",
|
|
2558
|
+
restoring: "Restoring dependencies..."
|
|
2559
|
+
},
|
|
2560
|
+
validation: {
|
|
2561
|
+
requiredField: "{field} is required",
|
|
2562
|
+
invalidValue: "Invalid value for {field}",
|
|
2563
|
+
pathNotFound: "Path not found: {path}",
|
|
2564
|
+
fileRequired: "File is required: {path}",
|
|
2565
|
+
directoryRequired: "Directory is required: {path}"
|
|
2566
|
+
},
|
|
2567
|
+
warnings: {
|
|
2568
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
2569
|
+
},
|
|
2570
|
+
info: {
|
|
2571
|
+
operationComplete: "Operation completed successfully",
|
|
2572
|
+
filesProcessed: {
|
|
2573
|
+
zero: "No files processed",
|
|
2574
|
+
one: "{count} file processed",
|
|
2575
|
+
other: "{count} files processed"
|
|
2576
|
+
}
|
|
2577
|
+
}
|
|
2578
|
+
}
|
|
2579
|
+
};
|
|
2580
|
+
|
|
2581
|
+
// ../packager/packager-core/src/i18n/locales/ro.ts
|
|
2582
|
+
var ro2 = {
|
|
2583
|
+
toolCore: {
|
|
2584
|
+
errors: {
|
|
2585
|
+
internal: "Internal error: {message}",
|
|
2586
|
+
fileNotFound: "File not found: {path}",
|
|
2587
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
2588
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
2589
|
+
directoryNotFound: "Directory not found: {path}",
|
|
2590
|
+
invalidPath: "{path} is not a valid path",
|
|
2591
|
+
operationCanceled: "Operation was canceled",
|
|
2592
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
2593
|
+
},
|
|
2594
|
+
progress: {
|
|
2595
|
+
copying: "Copying files...",
|
|
2596
|
+
building: "Building project...",
|
|
2597
|
+
packaging: "Creating package...",
|
|
2598
|
+
validating: "Validating...",
|
|
2599
|
+
analyzing: "Analyzing...",
|
|
2600
|
+
restoring: "Restoring dependencies..."
|
|
2601
|
+
},
|
|
2602
|
+
validation: {
|
|
2603
|
+
requiredField: "{field} is required",
|
|
2604
|
+
invalidValue: "Invalid value for {field}",
|
|
2605
|
+
pathNotFound: "Path not found: {path}",
|
|
2606
|
+
fileRequired: "File is required: {path}",
|
|
2607
|
+
directoryRequired: "Directory is required: {path}"
|
|
2608
|
+
},
|
|
2609
|
+
warnings: {
|
|
2610
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
2611
|
+
},
|
|
2612
|
+
info: {
|
|
2613
|
+
operationComplete: "Operation completed successfully",
|
|
2614
|
+
filesProcessed: {
|
|
2615
|
+
zero: "No files processed",
|
|
2616
|
+
one: "{count} file processed",
|
|
2617
|
+
other: "{count} files processed"
|
|
2618
|
+
}
|
|
2619
|
+
}
|
|
2620
|
+
}
|
|
2621
|
+
};
|
|
2622
|
+
|
|
2623
|
+
// ../packager/packager-core/src/i18n/locales/ru.ts
|
|
2624
|
+
var ru2 = {
|
|
2625
|
+
toolCore: {
|
|
2626
|
+
errors: {
|
|
2627
|
+
internal: "Internal error: {message}",
|
|
2628
|
+
fileNotFound: "File not found: {path}",
|
|
2629
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
2630
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
2631
|
+
directoryNotFound: "Directory not found: {path}",
|
|
2632
|
+
invalidPath: "{path} is not a valid path",
|
|
2633
|
+
operationCanceled: "Operation was canceled",
|
|
2634
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
2635
|
+
},
|
|
2636
|
+
progress: {
|
|
2637
|
+
copying: "Copying files...",
|
|
2638
|
+
building: "Building project...",
|
|
2639
|
+
packaging: "Creating package...",
|
|
2640
|
+
validating: "Validating...",
|
|
2641
|
+
analyzing: "Analyzing...",
|
|
2642
|
+
restoring: "Restoring dependencies..."
|
|
2643
|
+
},
|
|
2644
|
+
validation: {
|
|
2645
|
+
requiredField: "{field} is required",
|
|
2646
|
+
invalidValue: "Invalid value for {field}",
|
|
2647
|
+
pathNotFound: "Path not found: {path}",
|
|
2648
|
+
fileRequired: "File is required: {path}",
|
|
2649
|
+
directoryRequired: "Directory is required: {path}"
|
|
2650
|
+
},
|
|
2651
|
+
warnings: {
|
|
2652
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
2653
|
+
},
|
|
2654
|
+
info: {
|
|
2655
|
+
operationComplete: "Operation completed successfully",
|
|
2656
|
+
filesProcessed: {
|
|
2657
|
+
zero: "No files processed",
|
|
2658
|
+
one: "{count} file processed",
|
|
2659
|
+
other: "{count} files processed"
|
|
2660
|
+
}
|
|
2661
|
+
}
|
|
2662
|
+
}
|
|
2663
|
+
};
|
|
2664
|
+
|
|
2665
|
+
// ../packager/packager-core/src/i18n/locales/tr.ts
|
|
2666
|
+
var tr2 = {
|
|
2667
|
+
toolCore: {
|
|
2668
|
+
errors: {
|
|
2669
|
+
internal: "Internal error: {message}",
|
|
2670
|
+
fileNotFound: "File not found: {path}",
|
|
2671
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
2672
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
2673
|
+
directoryNotFound: "Directory not found: {path}",
|
|
2674
|
+
invalidPath: "{path} is not a valid path",
|
|
2675
|
+
operationCanceled: "Operation was canceled",
|
|
2676
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
2677
|
+
},
|
|
2678
|
+
progress: {
|
|
2679
|
+
copying: "Copying files...",
|
|
2680
|
+
building: "Building project...",
|
|
2681
|
+
packaging: "Creating package...",
|
|
2682
|
+
validating: "Validating...",
|
|
2683
|
+
analyzing: "Analyzing...",
|
|
2684
|
+
restoring: "Restoring dependencies..."
|
|
2685
|
+
},
|
|
2686
|
+
validation: {
|
|
2687
|
+
requiredField: "{field} is required",
|
|
2688
|
+
invalidValue: "Invalid value for {field}",
|
|
2689
|
+
pathNotFound: "Path not found: {path}",
|
|
2690
|
+
fileRequired: "File is required: {path}",
|
|
2691
|
+
directoryRequired: "Directory is required: {path}"
|
|
2692
|
+
},
|
|
2693
|
+
warnings: {
|
|
2694
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
2695
|
+
},
|
|
2696
|
+
info: {
|
|
2697
|
+
operationComplete: "Operation completed successfully",
|
|
2698
|
+
filesProcessed: {
|
|
2699
|
+
zero: "No files processed",
|
|
2700
|
+
one: "{count} file processed",
|
|
2701
|
+
other: "{count} files processed"
|
|
2702
|
+
}
|
|
2703
|
+
}
|
|
2704
|
+
}
|
|
2705
|
+
};
|
|
2706
|
+
|
|
2707
|
+
// ../packager/packager-core/src/i18n/locales/zh-CN.ts
|
|
2708
|
+
var zh_CN2 = {
|
|
2709
|
+
toolCore: {
|
|
2710
|
+
errors: {
|
|
2711
|
+
internal: "Internal error: {message}",
|
|
2712
|
+
fileNotFound: "File not found: {path}",
|
|
2713
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
2714
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
2715
|
+
directoryNotFound: "Directory not found: {path}",
|
|
2716
|
+
invalidPath: "{path} is not a valid path",
|
|
2717
|
+
operationCanceled: "Operation was canceled",
|
|
2718
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
2719
|
+
},
|
|
2720
|
+
progress: {
|
|
2721
|
+
copying: "Copying files...",
|
|
2722
|
+
building: "Building project...",
|
|
2723
|
+
packaging: "Creating package...",
|
|
2724
|
+
validating: "Validating...",
|
|
2725
|
+
analyzing: "Analyzing...",
|
|
2726
|
+
restoring: "Restoring dependencies..."
|
|
2727
|
+
},
|
|
2728
|
+
validation: {
|
|
2729
|
+
requiredField: "{field} is required",
|
|
2730
|
+
invalidValue: "Invalid value for {field}",
|
|
2731
|
+
pathNotFound: "Path not found: {path}",
|
|
2732
|
+
fileRequired: "File is required: {path}",
|
|
2733
|
+
directoryRequired: "Directory is required: {path}"
|
|
2734
|
+
},
|
|
2735
|
+
warnings: {
|
|
2736
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
2737
|
+
},
|
|
2738
|
+
info: {
|
|
2739
|
+
operationComplete: "Operation completed successfully",
|
|
2740
|
+
filesProcessed: {
|
|
2741
|
+
zero: "No files processed",
|
|
2742
|
+
one: "{count} file processed",
|
|
2743
|
+
other: "{count} files processed"
|
|
2744
|
+
}
|
|
2745
|
+
}
|
|
2746
|
+
}
|
|
2747
|
+
};
|
|
2748
|
+
|
|
2749
|
+
// ../packager/packager-core/src/i18n/locales/zh-TW.ts
|
|
2750
|
+
var zh_TW2 = {
|
|
2751
|
+
toolCore: {
|
|
2752
|
+
errors: {
|
|
2753
|
+
internal: "Internal error: {message}",
|
|
2754
|
+
fileNotFound: "File not found: {path}",
|
|
2755
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
2756
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
2757
|
+
directoryNotFound: "Directory not found: {path}",
|
|
2758
|
+
invalidPath: "{path} is not a valid path",
|
|
2759
|
+
operationCanceled: "Operation was canceled",
|
|
2760
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
2761
|
+
},
|
|
2762
|
+
progress: {
|
|
2763
|
+
copying: "Copying files...",
|
|
2764
|
+
building: "Building project...",
|
|
2765
|
+
packaging: "Creating package...",
|
|
2766
|
+
validating: "Validating...",
|
|
2767
|
+
analyzing: "Analyzing...",
|
|
2768
|
+
restoring: "Restoring dependencies..."
|
|
2769
|
+
},
|
|
2770
|
+
validation: {
|
|
2771
|
+
requiredField: "{field} is required",
|
|
2772
|
+
invalidValue: "Invalid value for {field}",
|
|
2773
|
+
pathNotFound: "Path not found: {path}",
|
|
2774
|
+
fileRequired: "File is required: {path}",
|
|
2775
|
+
directoryRequired: "Directory is required: {path}"
|
|
2776
|
+
},
|
|
2777
|
+
warnings: {
|
|
2778
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
2779
|
+
},
|
|
2780
|
+
info: {
|
|
2781
|
+
operationComplete: "Operation completed successfully",
|
|
2782
|
+
filesProcessed: {
|
|
2783
|
+
zero: "No files processed",
|
|
2784
|
+
one: "{count} file processed",
|
|
2785
|
+
other: "{count} files processed"
|
|
2786
|
+
}
|
|
2787
|
+
}
|
|
2788
|
+
}
|
|
2789
|
+
};
|
|
2790
|
+
|
|
2791
|
+
// ../packager/packager-core/src/i18n/locales/zu.ts
|
|
2792
|
+
var zu2 = {
|
|
2793
|
+
toolCore: {
|
|
2794
|
+
errors: {
|
|
2795
|
+
internal: "Internal error: {message}",
|
|
2796
|
+
fileNotFound: "File not found: {path}",
|
|
2797
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
2798
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
2799
|
+
directoryNotFound: "Directory not found: {path}",
|
|
2800
|
+
invalidPath: "{path} is not a valid path",
|
|
2801
|
+
operationCanceled: "Operation was canceled",
|
|
2802
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
2803
|
+
},
|
|
2804
|
+
progress: {
|
|
2805
|
+
copying: "Copying files...",
|
|
2806
|
+
building: "Building project...",
|
|
2807
|
+
packaging: "Creating package...",
|
|
2808
|
+
validating: "Validating...",
|
|
2809
|
+
analyzing: "Analyzing...",
|
|
2810
|
+
restoring: "Restoring dependencies..."
|
|
2811
|
+
},
|
|
2812
|
+
validation: {
|
|
2813
|
+
requiredField: "{field} is required",
|
|
2814
|
+
invalidValue: "Invalid value for {field}",
|
|
2815
|
+
pathNotFound: "Path not found: {path}",
|
|
2816
|
+
fileRequired: "File is required: {path}",
|
|
2817
|
+
directoryRequired: "Directory is required: {path}"
|
|
2818
|
+
},
|
|
2819
|
+
warnings: {
|
|
2820
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
2821
|
+
},
|
|
2822
|
+
info: {
|
|
2823
|
+
operationComplete: "Operation completed successfully",
|
|
2824
|
+
filesProcessed: {
|
|
2825
|
+
zero: "No files processed",
|
|
2826
|
+
one: "{count} file processed",
|
|
2827
|
+
other: "{count} files processed"
|
|
2828
|
+
}
|
|
2829
|
+
}
|
|
2830
|
+
}
|
|
2831
|
+
};
|
|
2832
|
+
|
|
2833
|
+
// ../packager/packager-core/src/i18n/translation-service.ts
|
|
2834
|
+
class TranslationService2 {
|
|
2835
|
+
static instance;
|
|
2836
|
+
currentLocale = "en";
|
|
2837
|
+
constructor() {}
|
|
2838
|
+
static getInstance() {
|
|
2839
|
+
if (!TranslationService2.instance) {
|
|
2840
|
+
TranslationService2.instance = new TranslationService2;
|
|
2841
|
+
}
|
|
2842
|
+
return TranslationService2.instance;
|
|
2843
|
+
}
|
|
2844
|
+
setLocale(locale) {
|
|
2845
|
+
this.currentLocale = I18nManager2.setLocale(locale);
|
|
2846
|
+
}
|
|
2847
|
+
getLocale() {
|
|
2848
|
+
return this.currentLocale;
|
|
2849
|
+
}
|
|
2850
|
+
t(key, params) {
|
|
2851
|
+
return I18nManager2.t(key, params, this.currentLocale);
|
|
2852
|
+
}
|
|
2853
|
+
tLocale(key, locale, params) {
|
|
2854
|
+
return I18nManager2.t(key, params, locale);
|
|
2855
|
+
}
|
|
2856
|
+
has(key) {
|
|
2857
|
+
return I18nManager2.has(key, this.currentLocale);
|
|
2858
|
+
}
|
|
2859
|
+
getAvailableLocales() {
|
|
2860
|
+
return I18nManager2.getAvailableLocales();
|
|
2861
|
+
}
|
|
2862
|
+
}
|
|
2863
|
+
var translate2 = TranslationService2.getInstance();
|
|
2864
|
+
|
|
2865
|
+
// ../packager/packager-core/src/i18n/index.ts
|
|
2866
|
+
I18nManager2.registerTranslations("en", en2);
|
|
2867
|
+
I18nManager2.registerTranslations("de", de2);
|
|
2868
|
+
I18nManager2.registerTranslations("es", es2);
|
|
2869
|
+
I18nManager2.registerTranslations("es-mx", es_MX2);
|
|
2870
|
+
I18nManager2.registerTranslations("fr", fr2);
|
|
2871
|
+
I18nManager2.registerTranslations("ja", ja2);
|
|
2872
|
+
I18nManager2.registerTranslations("ko", ko2);
|
|
2873
|
+
I18nManager2.registerTranslations("pt", pt2);
|
|
2874
|
+
I18nManager2.registerTranslations("pt-br", pt_BR2);
|
|
2875
|
+
I18nManager2.registerTranslations("ro", ro2);
|
|
2876
|
+
I18nManager2.registerTranslations("ru", ru2);
|
|
2877
|
+
I18nManager2.registerTranslations("tr", tr2);
|
|
2878
|
+
I18nManager2.registerTranslations("zh-cn", zh_CN2);
|
|
2879
|
+
I18nManager2.registerTranslations("zh-tw", zh_TW2);
|
|
2880
|
+
I18nManager2.registerTranslations("zu", zu2);
|
|
2881
|
+
I18nManager2.setLocale("en");
|
|
2882
|
+
// ../packager/packager-core/src/services/tools-factory-repository.ts
|
|
2883
|
+
class ToolsFactoryRepository2 {
|
|
2884
|
+
projectFactoryMap = new Map;
|
|
2885
|
+
solutionFactory = null;
|
|
2886
|
+
registerProjectToolFactory(factory) {
|
|
2887
|
+
for (const type of factory.supportedTypes) {
|
|
2888
|
+
const existing = this.projectFactoryMap.get(type);
|
|
2889
|
+
if (existing) {
|
|
2890
|
+
if (existing.constructor?.name !== factory.constructor?.name) {
|
|
2891
|
+
console.warn(`Tool factory conflict for project type '${type}': ` + `'${existing.constructor?.name}' already registered, ` + `ignoring '${factory.constructor?.name}'.`);
|
|
2892
|
+
}
|
|
2893
|
+
continue;
|
|
2894
|
+
}
|
|
2895
|
+
this.projectFactoryMap.set(type, factory);
|
|
2896
|
+
}
|
|
2897
|
+
}
|
|
2898
|
+
registerSolutionToolFactory(factory) {
|
|
2899
|
+
this.solutionFactory = factory;
|
|
2900
|
+
}
|
|
2901
|
+
getSolutionToolFactory() {
|
|
2902
|
+
if (!this.solutionFactory) {
|
|
2903
|
+
throw new Error("No solution tool factory is registered");
|
|
2904
|
+
}
|
|
2905
|
+
return this.solutionFactory;
|
|
2906
|
+
}
|
|
2907
|
+
canHandleProject(projectType) {
|
|
2908
|
+
return this.projectFactoryMap.has(projectType);
|
|
2909
|
+
}
|
|
2910
|
+
getProjectToolFactory(projectType) {
|
|
2911
|
+
const factory = this.projectFactoryMap.get(projectType);
|
|
2912
|
+
if (!factory) {
|
|
2913
|
+
throw new Error(`No tool factory found for project type '${projectType}'`);
|
|
2914
|
+
}
|
|
2915
|
+
return factory;
|
|
2916
|
+
}
|
|
2917
|
+
reset() {
|
|
2918
|
+
this.projectFactoryMap.clear();
|
|
2919
|
+
this.solutionFactory = null;
|
|
2920
|
+
}
|
|
2921
|
+
}
|
|
2922
|
+
var REGISTRY_KEY2 = Symbol.for("@uipath/solutionpackager-tool-core/toolsFactoryRepository");
|
|
2923
|
+
var _global2 = globalThis;
|
|
2924
|
+
if (!_global2[REGISTRY_KEY2]) {
|
|
2925
|
+
_global2[REGISTRY_KEY2] = new ToolsFactoryRepository2;
|
|
2926
|
+
}
|
|
2927
|
+
var toolsFactoryRepository2 = _global2[REGISTRY_KEY2];
|
|
2928
|
+
// src/packager-tool.ts
|
|
2929
|
+
toolsFactoryRepository2.registerProjectToolFactory(new CaseToolFactory);
|
|
2930
|
+
|
|
2931
|
+
//# debugId=68E4F5A39F4EC1A864756E2164756E21
|