@intlayer/cli 9.7.0 → 9.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/IntlayerEventListener.cjs +1 -2
- package/dist/cjs/_virtual/_rolldown/runtime.cjs +1 -2
- package/dist/cjs/_virtual/_utils_asset.cjs +2 -3
- package/dist/cjs/auth/login.cjs +8 -9
- package/dist/cjs/auth/sessionToken.cjs +1 -2
- package/dist/cjs/auth/setupRepository.cjs +6 -7
- package/dist/cjs/build.cjs +2 -3
- package/dist/cjs/bundle.cjs +1 -2
- package/dist/cjs/ci.cjs +2 -3
- package/dist/cjs/cli.cjs +5 -6
- package/dist/cjs/cli.cjs.map +1 -1
- package/dist/cjs/config.cjs +2 -3
- package/dist/cjs/editor.cjs +3 -4
- package/dist/cjs/extract.cjs +7 -8
- package/dist/cjs/fill/deepMergeContent.cjs +1 -2
- package/dist/cjs/fill/extractTranslatableContent.cjs +1 -2
- package/dist/cjs/fill/fill.cjs +9 -10
- package/dist/cjs/fill/formatAutoFilledFilePath.cjs +2 -3
- package/dist/cjs/fill/formatFillData.cjs +2 -3
- package/dist/cjs/fill/getAvailableLocalesInDictionary.cjs +1 -2
- package/dist/cjs/fill/getFilterMissingContentPerLocale.cjs +1 -2
- package/dist/cjs/fill/index.cjs +2 -2
- package/dist/cjs/fill/listTranslationsTasks.cjs +4 -5
- package/dist/cjs/fill/translateDictionary.cjs +6 -7
- package/dist/cjs/fill/writeFill.cjs +4 -5
- package/dist/cjs/getTargetDictionary.cjs +2 -3
- package/dist/cjs/index.cjs +27 -27
- package/dist/cjs/init.cjs +12 -13
- package/dist/cjs/initChromeExtension.cjs +5 -6
- package/dist/cjs/initInfra.cjs +3 -4
- package/dist/cjs/initMCP.cjs +6 -7
- package/dist/cjs/initSkills.cjs +6 -7
- package/dist/cjs/listContentDeclaration.cjs +3 -4
- package/dist/cjs/listProjects.cjs +1 -2
- package/dist/cjs/liveSync.cjs +4 -5
- package/dist/cjs/loadPrompts.cjs +1 -2
- package/dist/cjs/pull.cjs +9 -11
- package/dist/cjs/pull.cjs.map +1 -1
- package/dist/cjs/push/pullLog.cjs +2 -3
- package/dist/cjs/push/push.cjs +10 -10
- package/dist/cjs/push/push.cjs.map +1 -1
- package/dist/cjs/pushConfig.cjs +4 -5
- package/dist/cjs/pushLog.cjs +2 -3
- package/dist/cjs/reviewDoc/reviewDoc.cjs +15 -15
- package/dist/cjs/reviewDoc/reviewDoc.cjs.map +1 -1
- package/dist/cjs/reviewDoc/reviewDocBlockAware.cjs +8 -9
- package/dist/cjs/reviewDoc/reviewDocLog.cjs +2 -3
- package/dist/cjs/reviewDoc/reviewDocProgress.cjs +2 -3
- package/dist/cjs/reviewDoc/reviewDocSynthesis.cjs +2 -3
- package/dist/cjs/scan.cjs +2 -3
- package/dist/cjs/searchDoc.cjs +2 -3
- package/dist/cjs/test/index.cjs +2 -2
- package/dist/cjs/test/listMissingTranslations.cjs +2 -3
- package/dist/cjs/test/test.cjs +3 -4
- package/dist/cjs/translateDoc/index.cjs +3 -3
- package/dist/cjs/translateDoc/translateDoc.cjs +12 -13
- package/dist/cjs/translateDoc/translateDoc.cjs.map +1 -1
- package/dist/cjs/translateDoc/translateFile.cjs +8 -9
- package/dist/cjs/translateDoc/validation.cjs +1 -2
- package/dist/cjs/upgrade.cjs +2 -3
- package/dist/cjs/utils/calculateChunks.cjs +1 -2
- package/dist/cjs/utils/checkAccess.cjs +5 -6
- package/dist/cjs/utils/checkConfigConsistency.cjs +1 -2
- package/dist/cjs/utils/checkFileModifiedRange.cjs +3 -4
- package/dist/cjs/utils/checkLastUpdateTime.cjs +1 -2
- package/dist/cjs/utils/chunkInference.cjs +2 -3
- package/dist/cjs/utils/detectGitRepository.cjs +2 -3
- package/dist/cjs/utils/fixChunkStartEndChars.cjs +1 -2
- package/dist/cjs/utils/formatLineRanges.cjs +1 -2
- package/dist/cjs/utils/formatTimeDiff.cjs +1 -2
- package/dist/cjs/utils/getIsFileUpdatedRecently.cjs +1 -2
- package/dist/cjs/utils/getOutputFilePath.cjs +1 -2
- package/dist/cjs/utils/getParentPackageJSON.cjs +2 -3
- package/dist/cjs/utils/isInteractiveTerminal.cjs +1 -2
- package/dist/cjs/utils/listSpecialChars.cjs +1 -2
- package/dist/cjs/utils/mapChunksBetweenFiles.cjs +2 -3
- package/dist/cjs/utils/openBrowser.cjs +1 -2
- package/dist/cjs/utils/parseChoice.cjs +1 -2
- package/dist/cjs/utils/reorderParagraphs.cjs +2 -3
- package/dist/cjs/utils/selectCmsEnvironment.cjs +2 -3
- package/dist/cjs/utils/setupAI.cjs +3 -4
- package/dist/cjs/watch.cjs +2 -3
- package/dist/esm/IntlayerEventListener.mjs +1 -2
- package/dist/esm/_virtual/_rolldown/runtime.mjs +1 -2
- package/dist/esm/_virtual/_utils_asset.mjs +2 -3
- package/dist/esm/auth/login.mjs +4 -5
- package/dist/esm/auth/sessionToken.mjs +1 -2
- package/dist/esm/auth/setupRepository.mjs +3 -4
- package/dist/esm/build.mjs +2 -3
- package/dist/esm/bundle.mjs +1 -2
- package/dist/esm/ci.mjs +2 -3
- package/dist/esm/cli.mjs +4 -5
- package/dist/esm/cli.mjs.map +1 -1
- package/dist/esm/config.mjs +2 -3
- package/dist/esm/editor.mjs +2 -3
- package/dist/esm/extract.mjs +5 -6
- package/dist/esm/fill/deepMergeContent.mjs +1 -2
- package/dist/esm/fill/extractTranslatableContent.mjs +1 -2
- package/dist/esm/fill/fill.mjs +3 -4
- package/dist/esm/fill/formatAutoFilledFilePath.mjs +2 -3
- package/dist/esm/fill/formatFillData.mjs +1 -2
- package/dist/esm/fill/getAvailableLocalesInDictionary.mjs +1 -2
- package/dist/esm/fill/getFilterMissingContentPerLocale.mjs +1 -2
- package/dist/esm/fill/index.mjs +1 -1
- package/dist/esm/fill/listTranslationsTasks.mjs +2 -3
- package/dist/esm/fill/translateDictionary.mjs +2 -3
- package/dist/esm/fill/writeFill.mjs +2 -3
- package/dist/esm/getTargetDictionary.mjs +2 -3
- package/dist/esm/index.mjs +13 -13
- package/dist/esm/init.mjs +6 -7
- package/dist/esm/initChromeExtension.mjs +2 -3
- package/dist/esm/initInfra.mjs +1 -2
- package/dist/esm/initMCP.mjs +3 -4
- package/dist/esm/initSkills.mjs +2 -3
- package/dist/esm/listContentDeclaration.mjs +3 -4
- package/dist/esm/listProjects.mjs +1 -2
- package/dist/esm/liveSync.mjs +2 -3
- package/dist/esm/loadPrompts.mjs +1 -2
- package/dist/esm/pull.mjs +6 -8
- package/dist/esm/pull.mjs.map +1 -1
- package/dist/esm/push/pullLog.mjs +1 -2
- package/dist/esm/push/push.mjs +6 -6
- package/dist/esm/push/push.mjs.map +1 -1
- package/dist/esm/pushConfig.mjs +2 -3
- package/dist/esm/pushLog.mjs +1 -2
- package/dist/esm/reviewDoc/reviewDoc.mjs +8 -8
- package/dist/esm/reviewDoc/reviewDoc.mjs.map +1 -1
- package/dist/esm/reviewDoc/reviewDocBlockAware.mjs +3 -4
- package/dist/esm/reviewDoc/reviewDocLog.mjs +2 -3
- package/dist/esm/reviewDoc/reviewDocProgress.mjs +1 -2
- package/dist/esm/reviewDoc/reviewDocSynthesis.mjs +1 -2
- package/dist/esm/scan.mjs +1 -2
- package/dist/esm/searchDoc.mjs +2 -3
- package/dist/esm/test/listMissingTranslations.mjs +2 -3
- package/dist/esm/test/test.mjs +1 -2
- package/dist/esm/translateDoc/index.mjs +2 -2
- package/dist/esm/translateDoc/translateDoc.mjs +7 -8
- package/dist/esm/translateDoc/translateDoc.mjs.map +1 -1
- package/dist/esm/translateDoc/translateFile.mjs +4 -5
- package/dist/esm/translateDoc/validation.mjs +1 -2
- package/dist/esm/upgrade.mjs +1 -2
- package/dist/esm/utils/calculateChunks.mjs +1 -2
- package/dist/esm/utils/checkAccess.mjs +2 -3
- package/dist/esm/utils/checkConfigConsistency.mjs +1 -2
- package/dist/esm/utils/checkFileModifiedRange.mjs +1 -2
- package/dist/esm/utils/checkLastUpdateTime.mjs +1 -2
- package/dist/esm/utils/chunkInference.mjs +1 -2
- package/dist/esm/utils/detectGitRepository.mjs +2 -3
- package/dist/esm/utils/fixChunkStartEndChars.mjs +1 -2
- package/dist/esm/utils/formatLineRanges.mjs +1 -2
- package/dist/esm/utils/formatTimeDiff.mjs +1 -2
- package/dist/esm/utils/getIsFileUpdatedRecently.mjs +1 -2
- package/dist/esm/utils/getOutputFilePath.mjs +1 -2
- package/dist/esm/utils/getParentPackageJSON.mjs +2 -3
- package/dist/esm/utils/isInteractiveTerminal.mjs +1 -2
- package/dist/esm/utils/listSpecialChars.mjs +1 -2
- package/dist/esm/utils/mapChunksBetweenFiles.mjs +1 -2
- package/dist/esm/utils/openBrowser.mjs +1 -2
- package/dist/esm/utils/parseChoice.mjs +1 -2
- package/dist/esm/utils/reorderParagraphs.mjs +1 -2
- package/dist/esm/utils/selectCmsEnvironment.mjs +1 -2
- package/dist/esm/utils/setupAI.mjs +1 -2
- package/dist/esm/watch.mjs +2 -3
- package/dist/types/IntlayerEventListener.d.ts +0 -2
- package/dist/types/IntlayerEventListener.d.ts.map +1 -1
- package/dist/types/auth/login.d.ts +1 -2
- package/dist/types/auth/login.d.ts.map +1 -1
- package/dist/types/auth/sessionToken.d.ts +0 -2
- package/dist/types/auth/sessionToken.d.ts.map +1 -1
- package/dist/types/auth/setupRepository.d.ts +1 -2
- package/dist/types/auth/setupRepository.d.ts.map +1 -1
- package/dist/types/build.d.ts +1 -2
- package/dist/types/build.d.ts.map +1 -1
- package/dist/types/bundle.d.ts +0 -2
- package/dist/types/bundle.d.ts.map +1 -1
- package/dist/types/ci.d.ts +1 -2
- package/dist/types/ci.d.ts.map +1 -1
- package/dist/types/cli.d.ts +1 -2
- package/dist/types/cli.d.ts.map +1 -1
- package/dist/types/config.d.ts +1 -2
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/editor.d.ts +1 -2
- package/dist/types/editor.d.ts.map +1 -1
- package/dist/types/extract.d.ts +1 -2
- package/dist/types/extract.d.ts.map +1 -1
- package/dist/types/fill/deepMergeContent.d.ts +0 -2
- package/dist/types/fill/deepMergeContent.d.ts.map +1 -1
- package/dist/types/fill/extractTranslatableContent.d.ts +0 -2
- package/dist/types/fill/extractTranslatableContent.d.ts.map +1 -1
- package/dist/types/fill/fill.d.ts +0 -2
- package/dist/types/fill/fill.d.ts.map +1 -1
- package/dist/types/fill/formatAutoFilledFilePath.d.ts +0 -2
- package/dist/types/fill/formatAutoFilledFilePath.d.ts.map +1 -1
- package/dist/types/fill/formatFillData.d.ts +0 -2
- package/dist/types/fill/formatFillData.d.ts.map +1 -1
- package/dist/types/fill/getAvailableLocalesInDictionary.d.ts +0 -2
- package/dist/types/fill/getAvailableLocalesInDictionary.d.ts.map +1 -1
- package/dist/types/fill/getFilterMissingContentPerLocale.d.ts +0 -2
- package/dist/types/fill/getFilterMissingContentPerLocale.d.ts.map +1 -1
- package/dist/types/fill/listTranslationsTasks.d.ts +0 -2
- package/dist/types/fill/listTranslationsTasks.d.ts.map +1 -1
- package/dist/types/fill/translateDictionary.d.ts +2 -3
- package/dist/types/fill/translateDictionary.d.ts.map +1 -1
- package/dist/types/fill/writeFill.d.ts +0 -2
- package/dist/types/fill/writeFill.d.ts.map +1 -1
- package/dist/types/getTargetDictionary.d.ts +0 -2
- package/dist/types/getTargetDictionary.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/init.d.ts +1 -2
- package/dist/types/init.d.ts.map +1 -1
- package/dist/types/initChromeExtension.d.ts +0 -2
- package/dist/types/initChromeExtension.d.ts.map +1 -1
- package/dist/types/initInfra.d.ts +0 -2
- package/dist/types/initInfra.d.ts.map +1 -1
- package/dist/types/initMCP.d.ts +0 -2
- package/dist/types/initMCP.d.ts.map +1 -1
- package/dist/types/initSkills.d.ts +0 -2
- package/dist/types/initSkills.d.ts.map +1 -1
- package/dist/types/listContentDeclaration.d.ts +1 -2
- package/dist/types/listContentDeclaration.d.ts.map +1 -1
- package/dist/types/listProjects.d.ts +0 -2
- package/dist/types/listProjects.d.ts.map +1 -1
- package/dist/types/liveSync.d.ts +1 -2
- package/dist/types/liveSync.d.ts.map +1 -1
- package/dist/types/loadPrompts.d.ts +0 -2
- package/dist/types/loadPrompts.d.ts.map +1 -1
- package/dist/types/pull.d.ts +1 -2
- package/dist/types/pull.d.ts.map +1 -1
- package/dist/types/push/pullLog.d.ts +0 -2
- package/dist/types/push/pullLog.d.ts.map +1 -1
- package/dist/types/push/push.d.ts +1 -2
- package/dist/types/push/push.d.ts.map +1 -1
- package/dist/types/pushConfig.d.ts +1 -2
- package/dist/types/pushConfig.d.ts.map +1 -1
- package/dist/types/pushLog.d.ts +0 -2
- package/dist/types/pushLog.d.ts.map +1 -1
- package/dist/types/reviewDoc/reviewDoc.d.ts +1 -2
- package/dist/types/reviewDoc/reviewDoc.d.ts.map +1 -1
- package/dist/types/reviewDoc/reviewDocBlockAware.d.ts +0 -2
- package/dist/types/reviewDoc/reviewDocBlockAware.d.ts.map +1 -1
- package/dist/types/reviewDoc/reviewDocLog.d.ts +0 -2
- package/dist/types/reviewDoc/reviewDocLog.d.ts.map +1 -1
- package/dist/types/reviewDoc/reviewDocProgress.d.ts +0 -2
- package/dist/types/reviewDoc/reviewDocProgress.d.ts.map +1 -1
- package/dist/types/reviewDoc/reviewDocSynthesis.d.ts +0 -2
- package/dist/types/reviewDoc/reviewDocSynthesis.d.ts.map +1 -1
- package/dist/types/scan.d.ts +0 -2
- package/dist/types/scan.d.ts.map +1 -1
- package/dist/types/searchDoc.d.ts +1 -2
- package/dist/types/searchDoc.d.ts.map +1 -1
- package/dist/types/test/listMissingTranslations.d.ts +0 -2
- package/dist/types/test/listMissingTranslations.d.ts.map +1 -1
- package/dist/types/test/test.d.ts +1 -2
- package/dist/types/test/test.d.ts.map +1 -1
- package/dist/types/translateDoc/index.d.ts +1 -1
- package/dist/types/translateDoc/translateDoc.d.ts +0 -2
- package/dist/types/translateDoc/translateDoc.d.ts.map +1 -1
- package/dist/types/translateDoc/translateFile.d.ts +0 -2
- package/dist/types/translateDoc/translateFile.d.ts.map +1 -1
- package/dist/types/translateDoc/types.d.ts +0 -2
- package/dist/types/translateDoc/types.d.ts.map +1 -1
- package/dist/types/translateDoc/validation.d.ts +0 -2
- package/dist/types/translateDoc/validation.d.ts.map +1 -1
- package/dist/types/upgrade.d.ts +0 -2
- package/dist/types/upgrade.d.ts.map +1 -1
- package/dist/types/utils/calculateChunks.d.ts +0 -2
- package/dist/types/utils/calculateChunks.d.ts.map +1 -1
- package/dist/types/utils/checkAccess.d.ts +0 -2
- package/dist/types/utils/checkAccess.d.ts.map +1 -1
- package/dist/types/utils/checkConfigConsistency.d.ts +0 -2
- package/dist/types/utils/checkConfigConsistency.d.ts.map +1 -1
- package/dist/types/utils/checkFileModifiedRange.d.ts +1 -2
- package/dist/types/utils/checkFileModifiedRange.d.ts.map +1 -1
- package/dist/types/utils/checkLastUpdateTime.d.ts +0 -2
- package/dist/types/utils/checkLastUpdateTime.d.ts.map +1 -1
- package/dist/types/utils/chunkInference.d.ts +1 -2
- package/dist/types/utils/chunkInference.d.ts.map +1 -1
- package/dist/types/utils/detectGitRepository.d.ts +0 -2
- package/dist/types/utils/detectGitRepository.d.ts.map +1 -1
- package/dist/types/utils/fixChunkStartEndChars.d.ts +0 -2
- package/dist/types/utils/fixChunkStartEndChars.d.ts.map +1 -1
- package/dist/types/utils/formatLineRanges.d.ts +0 -2
- package/dist/types/utils/formatLineRanges.d.ts.map +1 -1
- package/dist/types/utils/formatTimeDiff.d.ts +0 -2
- package/dist/types/utils/formatTimeDiff.d.ts.map +1 -1
- package/dist/types/utils/getIsFileUpdatedRecently.d.ts +0 -2
- package/dist/types/utils/getIsFileUpdatedRecently.d.ts.map +1 -1
- package/dist/types/utils/getOutputFilePath.d.ts +0 -2
- package/dist/types/utils/getOutputFilePath.d.ts.map +1 -1
- package/dist/types/utils/getParentPackageJSON.d.ts +1 -2
- package/dist/types/utils/getParentPackageJSON.d.ts.map +1 -1
- package/dist/types/utils/isInteractiveTerminal.d.ts +0 -2
- package/dist/types/utils/isInteractiveTerminal.d.ts.map +1 -1
- package/dist/types/utils/listSpecialChars.d.ts +1 -2
- package/dist/types/utils/listSpecialChars.d.ts.map +1 -1
- package/dist/types/utils/mapChunksBetweenFiles.d.ts +0 -2
- package/dist/types/utils/mapChunksBetweenFiles.d.ts.map +1 -1
- package/dist/types/utils/openBrowser.d.ts +0 -2
- package/dist/types/utils/openBrowser.d.ts.map +1 -1
- package/dist/types/utils/parseChoice.d.ts +0 -2
- package/dist/types/utils/parseChoice.d.ts.map +1 -1
- package/dist/types/utils/reorderParagraphs.d.ts +0 -2
- package/dist/types/utils/reorderParagraphs.d.ts.map +1 -1
- package/dist/types/utils/selectCmsEnvironment.d.ts +0 -2
- package/dist/types/utils/selectCmsEnvironment.d.ts.map +1 -1
- package/dist/types/utils/setupAI.d.ts +1 -2
- package/dist/types/utils/setupAI.d.ts.map +1 -1
- package/dist/types/watch.d.ts +1 -2
- package/dist/types/watch.d.ts.map +1 -1
- package/package.json +13 -13
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
|
|
2
|
+
// src/fill/deepMergeContent.ts
|
|
3
3
|
/**
|
|
4
4
|
* Deep merge two plain objects (for per-locale content).
|
|
5
5
|
* The second object's values take precedence over the first.
|
|
@@ -22,6 +22,5 @@ const deepMergeContent = (target, source) => {
|
|
|
22
22
|
return result;
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
-
//#endregion
|
|
26
25
|
exports.deepMergeContent = deepMergeContent;
|
|
27
26
|
//# sourceMappingURL=deepMergeContent.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
|
|
2
|
+
// src/fill/extractTranslatableContent.ts
|
|
3
3
|
const extractTranslatableContent = (content, currentPath = [], state = {
|
|
4
4
|
currentIndex: 1,
|
|
5
5
|
extractedContent: [],
|
|
@@ -51,7 +51,6 @@ const reinsertTranslatedContent = (baseContent, extractedContentProps, translate
|
|
|
51
51
|
return result;
|
|
52
52
|
};
|
|
53
53
|
|
|
54
|
-
//#endregion
|
|
55
54
|
exports.extractTranslatableContent = extractTranslatableContent;
|
|
56
55
|
exports.reinsertTranslatedContent = reinsertTranslatedContent;
|
|
57
56
|
//# sourceMappingURL=extractTranslatableContent.cjs.map
|
package/dist/cjs/fill/fill.cjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require(
|
|
3
|
-
const require_getTargetDictionary = require(
|
|
4
|
-
const require_utils_setupAI = require(
|
|
5
|
-
const require_fill_listTranslationsTasks = require(
|
|
6
|
-
const require_fill_translateDictionary = require(
|
|
7
|
-
const require_fill_writeFill = require(
|
|
8
|
-
let _intlayer_engine_cli = require("@intlayer/engine/cli");
|
|
9
|
-
let node_path = require("node:path");
|
|
2
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_getTargetDictionary = require("../getTargetDictionary.cjs");
|
|
4
|
+
const require_utils_setupAI = require("../utils/setupAI.cjs");
|
|
5
|
+
const require_fill_listTranslationsTasks = require("./listTranslationsTasks.cjs");
|
|
6
|
+
const require_fill_translateDictionary = require("./translateDictionary.cjs");
|
|
7
|
+
const require_fill_writeFill = require("./writeFill.cjs");
|
|
10
8
|
let _intlayer_config_colors = require("@intlayer/config/colors");
|
|
11
9
|
_intlayer_config_colors = require_runtime.__toESM(_intlayer_config_colors);
|
|
12
10
|
let _intlayer_config_logger = require("@intlayer/config/logger");
|
|
13
11
|
let _intlayer_config_node = require("@intlayer/config/node");
|
|
12
|
+
let _intlayer_engine_cli = require("@intlayer/engine/cli");
|
|
13
|
+
let node_path = require("node:path");
|
|
14
14
|
let _intlayer_engine_utils = require("@intlayer/engine/utils");
|
|
15
15
|
let _intlayer_engine_build = require("@intlayer/engine/build");
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
// src/fill/fill.ts
|
|
18
18
|
const NB_CONCURRENT_TRANSLATIONS = 7;
|
|
19
19
|
/**
|
|
20
20
|
* Fill translations based on the provided options.
|
|
@@ -110,6 +110,5 @@ const fill = async (options) => {
|
|
|
110
110
|
};
|
|
111
111
|
};
|
|
112
112
|
|
|
113
|
-
//#endregion
|
|
114
113
|
exports.fill = fill;
|
|
115
114
|
//# sourceMappingURL=fill.cjs.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
let node_path = require("node:path");
|
|
3
2
|
let _intlayer_config_colors = require("@intlayer/config/colors");
|
|
4
3
|
let _intlayer_config_logger = require("@intlayer/config/logger");
|
|
4
|
+
let node_path = require("node:path");
|
|
5
5
|
let _intlayer_engine_utils = require("@intlayer/engine/utils");
|
|
6
6
|
let _intlayer_config_utils = require("@intlayer/config/utils");
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
// src/fill/formatAutoFilledFilePath.ts
|
|
9
9
|
const formatAutoFilledFilePath = async (autoFillField, dictionaryKey, dictionaryFilePath, baseDir, configuration, locale) => {
|
|
10
10
|
if (!autoFillField) throw new Error("autoFillField must be provided");
|
|
11
11
|
if (!dictionaryKey || typeof dictionaryKey !== "string") throw new Error("dictionaryKey must be a non-empty string");
|
|
@@ -41,6 +41,5 @@ const formatAutoFilledFilePath = async (autoFillField, dictionaryKey, dictionary
|
|
|
41
41
|
return (0, node_path.normalize)(result);
|
|
42
42
|
};
|
|
43
43
|
|
|
44
|
-
//#endregion
|
|
45
44
|
exports.formatAutoFilledFilePath = formatAutoFilledFilePath;
|
|
46
45
|
//# sourceMappingURL=formatAutoFilledFilePath.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_utils_getOutputFilePath = require(
|
|
2
|
+
const require_utils_getOutputFilePath = require("../utils/getOutputFilePath.cjs");
|
|
3
3
|
let node_path = require("node:path");
|
|
4
4
|
let _intlayer_engine_utils = require("@intlayer/engine/utils");
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/fill/formatFillData.ts
|
|
7
7
|
/** Merge FillData entries that resolve to the same file path. */
|
|
8
8
|
const groupByFilePath = (entries) => entries.reduce((acc, curr) => {
|
|
9
9
|
const existing = acc.find((item) => item.filePath === curr.filePath);
|
|
@@ -90,6 +90,5 @@ const formatFillData = async (fillField, localeList, filePath, dictionaryKey, co
|
|
|
90
90
|
return processPattern(fillField, localeList);
|
|
91
91
|
};
|
|
92
92
|
|
|
93
|
-
//#endregion
|
|
94
93
|
exports.formatFillData = formatFillData;
|
|
95
94
|
//# sourceMappingURL=formatFillData.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
|
|
2
|
+
// src/fill/getAvailableLocalesInDictionary.ts
|
|
3
3
|
/**
|
|
4
4
|
* Recursively traverses dictionary content to find all locales that have actual translations.
|
|
5
5
|
* Returns a Set of locale strings that are present in the translation nodes.
|
|
@@ -21,6 +21,5 @@ const getAvailableLocalesInDictionary = (dictionary) => {
|
|
|
21
21
|
return Array.from(localesSet);
|
|
22
22
|
};
|
|
23
23
|
|
|
24
|
-
//#endregion
|
|
25
24
|
exports.getAvailableLocalesInDictionary = getAvailableLocalesInDictionary;
|
|
26
25
|
//# sourceMappingURL=getAvailableLocalesInDictionary.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
|
|
2
|
+
// src/fill/getFilterMissingContentPerLocale.ts
|
|
3
3
|
/**
|
|
4
4
|
* Recursively compares source content with target content and returns only the missing parts.
|
|
5
5
|
* For per-locale files where content is simple JSON (not translation nodes).
|
|
@@ -46,6 +46,5 @@ const getFilterMissingContentPerLocale = (sourceDictionary, targetDictionary) =>
|
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
48
|
|
|
49
|
-
//#endregion
|
|
50
49
|
exports.getFilterMissingContentPerLocale = getFilterMissingContentPerLocale;
|
|
51
50
|
//# sourceMappingURL=getFilterMissingContentPerLocale.cjs.map
|
package/dist/cjs/fill/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const
|
|
3
|
-
const
|
|
2
|
+
const require_fill_fill = require("./fill.cjs");
|
|
3
|
+
const require_fill_writeFill = require("./writeFill.cjs");
|
|
4
4
|
|
|
5
5
|
exports.fill = require_fill_fill.fill;
|
|
6
6
|
exports.writeFill = require_fill_writeFill.writeFill;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require(
|
|
3
|
-
const require_test_listMissingTranslations = require(
|
|
4
|
-
let node_path = require("node:path");
|
|
2
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_test_listMissingTranslations = require("../test/listMissingTranslations.cjs");
|
|
5
4
|
let _intlayer_config_colors = require("@intlayer/config/colors");
|
|
6
5
|
_intlayer_config_colors = require_runtime.__toESM(_intlayer_config_colors);
|
|
7
6
|
let _intlayer_config_logger = require("@intlayer/config/logger");
|
|
7
|
+
let node_path = require("node:path");
|
|
8
8
|
let _intlayer_engine_utils = require("@intlayer/engine/utils");
|
|
9
9
|
let _intlayer_dictionaries_entry_unmerged = require("@intlayer/dictionaries-entry/unmerged");
|
|
10
10
|
let _intlayer_core_plugins = require("@intlayer/core/plugins");
|
|
11
11
|
let _intlayer_dictionaries_entry = require("@intlayer/dictionaries-entry");
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
// src/fill/listTranslationsTasks.ts
|
|
14
14
|
const listTranslationsTasks = (localIds, outputLocales, mode, baseLocale, configuration) => {
|
|
15
15
|
const appLogger = (0, _intlayer_config_logger.getAppLogger)(configuration);
|
|
16
16
|
const mergedDictionariesRecord = (0, _intlayer_dictionaries_entry.getDictionaries)(configuration);
|
|
@@ -68,6 +68,5 @@ const listTranslationsTasks = (localIds, outputLocales, mode, baseLocale, config
|
|
|
68
68
|
return translationTasks;
|
|
69
69
|
};
|
|
70
70
|
|
|
71
|
-
//#endregion
|
|
72
71
|
exports.listTranslationsTasks = listTranslationsTasks;
|
|
73
72
|
//# sourceMappingURL=listTranslationsTasks.cjs.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require(
|
|
3
|
-
const require_utils_checkAccess = require(
|
|
4
|
-
const require_fill_deepMergeContent = require(
|
|
5
|
-
const require_fill_extractTranslatableContent = require(
|
|
6
|
-
let node_path = require("node:path");
|
|
2
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_utils_checkAccess = require("../utils/checkAccess.cjs");
|
|
4
|
+
const require_fill_deepMergeContent = require("./deepMergeContent.cjs");
|
|
5
|
+
const require_fill_extractTranslatableContent = require("./extractTranslatableContent.cjs");
|
|
7
6
|
let _intlayer_config_colors = require("@intlayer/config/colors");
|
|
8
7
|
_intlayer_config_colors = require_runtime.__toESM(_intlayer_config_colors);
|
|
9
8
|
let _intlayer_config_logger = require("@intlayer/config/logger");
|
|
9
|
+
let node_path = require("node:path");
|
|
10
10
|
let _intlayer_engine_utils = require("@intlayer/engine/utils");
|
|
11
11
|
let _intlayer_config_utils = require("@intlayer/config/utils");
|
|
12
12
|
let _intlayer_dictionaries_entry_unmerged = require("@intlayer/dictionaries-entry/unmerged");
|
|
13
13
|
let _intlayer_core_plugins = require("@intlayer/core/plugins");
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
// src/fill/translateDictionary.ts
|
|
16
16
|
const createChunkPreset = (chunkIndex, totalChunks) => {
|
|
17
17
|
if (totalChunks <= 1) return "";
|
|
18
18
|
return (0, _intlayer_config_logger.colon)([
|
|
@@ -215,6 +215,5 @@ const translateDictionary = async (task, configuration, options) => {
|
|
|
215
215
|
})();
|
|
216
216
|
};
|
|
217
217
|
|
|
218
|
-
//#endregion
|
|
219
218
|
exports.translateDictionary = translateDictionary;
|
|
220
219
|
//# sourceMappingURL=translateDictionary.cjs.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_fill_formatFillData = require(
|
|
3
|
-
const require_fill_getAvailableLocalesInDictionary = require(
|
|
4
|
-
let node_path = require("node:path");
|
|
2
|
+
const require_fill_formatFillData = require("./formatFillData.cjs");
|
|
3
|
+
const require_fill_getAvailableLocalesInDictionary = require("./getAvailableLocalesInDictionary.cjs");
|
|
5
4
|
let _intlayer_config_logger = require("@intlayer/config/logger");
|
|
5
|
+
let node_path = require("node:path");
|
|
6
6
|
let _intlayer_engine_utils = require("@intlayer/engine/utils");
|
|
7
7
|
let _intlayer_engine_build = require("@intlayer/engine/build");
|
|
8
8
|
let _intlayer_dictionaries_entry = require("@intlayer/dictionaries-entry");
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
// src/fill/writeFill.ts
|
|
11
11
|
const writeFill = async (contentDeclarationFile, outputLocales, parentLocales, configuration) => {
|
|
12
12
|
const appLogger = (0, _intlayer_config_logger.getAppLogger)(configuration);
|
|
13
13
|
const fullDictionary = (0, _intlayer_dictionaries_entry.getDictionaries)(configuration)[contentDeclarationFile.key];
|
|
@@ -47,6 +47,5 @@ const writeFill = async (contentDeclarationFile, outputLocales, parentLocales, c
|
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
49
|
|
|
50
|
-
//#endregion
|
|
51
50
|
exports.writeFill = writeFill;
|
|
52
51
|
//# sourceMappingURL=writeFill.cjs.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
let _intlayer_config_node = require("@intlayer/config/node");
|
|
2
3
|
let _intlayer_engine_cli = require("@intlayer/engine/cli");
|
|
3
4
|
let node_path = require("node:path");
|
|
4
|
-
let _intlayer_config_node = require("@intlayer/config/node");
|
|
5
5
|
let _intlayer_dictionaries_entry_unmerged = require("@intlayer/dictionaries-entry/unmerged");
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/getTargetDictionary.ts
|
|
8
8
|
const ensureArray = (value) => [value].flat();
|
|
9
9
|
const getTargetUnmergedDictionaries = async (options) => {
|
|
10
10
|
const configuration = (0, _intlayer_config_node.getConfiguration)(options?.configOptions);
|
|
@@ -30,7 +30,6 @@ const getTargetUnmergedDictionaries = async (options) => {
|
|
|
30
30
|
return result;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
//#endregion
|
|
34
33
|
exports.ensureArray = ensureArray;
|
|
35
34
|
exports.getTargetUnmergedDictionaries = getTargetUnmergedDictionaries;
|
|
36
35
|
//# sourceMappingURL=getTargetDictionary.cjs.map
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const
|
|
2
|
+
const require_auth_login = require("./auth/login.cjs");
|
|
3
|
+
const require_auth_sessionToken = require("./auth/sessionToken.cjs");
|
|
4
|
+
const require_build = require("./build.cjs");
|
|
5
|
+
const require_bundle = require("./bundle.cjs");
|
|
6
|
+
const require_cli = require("./cli.cjs");
|
|
7
|
+
const require_editor = require("./editor.cjs");
|
|
8
|
+
const require_extract = require("./extract.cjs");
|
|
9
|
+
const require_fill_fill = require("./fill/fill.cjs");
|
|
10
|
+
const require_IntlayerEventListener = require("./IntlayerEventListener.cjs");
|
|
11
|
+
const require_test_listMissingTranslations = require("./test/listMissingTranslations.cjs");
|
|
12
|
+
const require_test_test = require("./test/test.cjs");
|
|
13
|
+
const require_init = require("./init.cjs");
|
|
14
|
+
const require_initChromeExtension = require("./initChromeExtension.cjs");
|
|
15
|
+
const require_initInfra = require("./initInfra.cjs");
|
|
16
|
+
const require_initSkills = require("./initSkills.cjs");
|
|
17
|
+
const require_listContentDeclaration = require("./listContentDeclaration.cjs");
|
|
18
|
+
const require_listProjects = require("./listProjects.cjs");
|
|
19
|
+
const require_liveSync = require("./liveSync.cjs");
|
|
20
|
+
const require_pull = require("./pull.cjs");
|
|
21
|
+
const require_push_push = require("./push/push.cjs");
|
|
22
|
+
const require_pushConfig = require("./pushConfig.cjs");
|
|
23
|
+
const require_reviewDoc_reviewDoc = require("./reviewDoc/reviewDoc.cjs");
|
|
24
|
+
const require_scan = require("./scan.cjs");
|
|
25
|
+
const require_searchDoc = require("./searchDoc.cjs");
|
|
26
|
+
const require_translateDoc_translateDoc = require("./translateDoc/translateDoc.cjs");
|
|
27
|
+
const require_utils_checkAccess = require("./utils/checkAccess.cjs");
|
|
28
|
+
const require_utils_checkConfigConsistency = require("./utils/checkConfigConsistency.cjs");
|
|
29
29
|
|
|
30
30
|
exports.BROWSER_EXTENSION_OPTIONS = require_initChromeExtension.BROWSER_EXTENSION_OPTIONS;
|
|
31
31
|
exports.CHROME_EXTENSION_URL = require_initChromeExtension.CHROME_EXTENSION_URL;
|
package/dist/cjs/init.cjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_auth_login = require(
|
|
3
|
-
const require_auth_setupRepository = require(
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
2
|
+
const require_auth_login = require("./auth/login.cjs");
|
|
3
|
+
const require_auth_setupRepository = require("./auth/setupRepository.cjs");
|
|
4
|
+
const require_initChromeExtension = require("./initChromeExtension.cjs");
|
|
5
|
+
const require_initInfra = require("./initInfra.cjs");
|
|
6
|
+
const require_initMCP = require("./initMCP.cjs");
|
|
7
|
+
const require_initSkills = require("./initSkills.cjs");
|
|
8
|
+
const require_loadPrompts = require("./loadPrompts.cjs");
|
|
9
|
+
const require_utils_detectGitRepository = require("./utils/detectGitRepository.cjs");
|
|
10
|
+
const require_utils_isInteractiveTerminal = require("./utils/isInteractiveTerminal.cjs");
|
|
11
|
+
const require_utils_parseChoice = require("./utils/parseChoice.cjs");
|
|
12
12
|
let _intlayer_engine_cli = require("@intlayer/engine/cli");
|
|
13
|
-
let node_fs = require("node:fs");
|
|
14
13
|
let node_path = require("node:path");
|
|
14
|
+
let node_fs = require("node:fs");
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
// src/init.ts
|
|
17
17
|
const findProjectRoot = (startDir) => {
|
|
18
18
|
let currentDir = startDir;
|
|
19
19
|
while (currentDir !== (0, node_path.resolve)(currentDir, "..")) {
|
|
@@ -473,7 +473,6 @@ const init = async (projectRoot, options, interactive) => {
|
|
|
473
473
|
await runInteractiveInit(resolveProjectRoot(projectRoot), options);
|
|
474
474
|
};
|
|
475
475
|
|
|
476
|
-
//#endregion
|
|
477
476
|
exports.CONTENT_LAYOUT_CHOICES = CONTENT_LAYOUT_CHOICES;
|
|
478
477
|
exports.DEFAULT_INIT_STEPS = DEFAULT_INIT_STEPS;
|
|
479
478
|
exports.ESLINT_CONFIG_FILES = ESLINT_CONFIG_FILES;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const require_utils_parseChoice = require(
|
|
2
|
+
const require_loadPrompts = require("./loadPrompts.cjs");
|
|
3
|
+
const require_utils_isInteractiveTerminal = require("./utils/isInteractiveTerminal.cjs");
|
|
4
|
+
const require_utils_openBrowser = require("./utils/openBrowser.cjs");
|
|
5
|
+
const require_utils_parseChoice = require("./utils/parseChoice.cjs");
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/initChromeExtension.ts
|
|
8
8
|
const CHROME_EXTENSION_URL = "https://chromewebstore.google.com/detail/intlayer_i18n_scanner/pmlehcgmjmfimmjnembihbakhnheiabc";
|
|
9
9
|
const MOZILLA_EXTENSION_URL = "https://addons.mozilla.org/en-US/firefox/addon/intlayer-i18n-scanner/";
|
|
10
10
|
const BROWSER_EXTENSION_OPTIONS = [{
|
|
@@ -48,7 +48,6 @@ const initChromeExtension = async (options = {}) => {
|
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
-
//#endregion
|
|
52
51
|
exports.BROWSER_EXTENSION_OPTIONS = BROWSER_EXTENSION_OPTIONS;
|
|
53
52
|
exports.CHROME_EXTENSION_URL = CHROME_EXTENSION_URL;
|
|
54
53
|
exports.EXTENSION_BROWSERS = EXTENSION_BROWSERS;
|
package/dist/cjs/initInfra.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_loadPrompts = require(
|
|
3
|
-
const require_utils_isInteractiveTerminal = require(
|
|
2
|
+
const require_loadPrompts = require("./loadPrompts.cjs");
|
|
3
|
+
const require_utils_isInteractiveTerminal = require("./utils/isInteractiveTerminal.cjs");
|
|
4
4
|
let node_path = require("node:path");
|
|
5
5
|
let node_child_process = require("node:child_process");
|
|
6
6
|
let node_os = require("node:os");
|
|
7
7
|
let node_fs_promises = require("node:fs/promises");
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// src/initInfra.ts
|
|
10
10
|
/** Setup modes understood by the hosted installer. */
|
|
11
11
|
const INFRA_MODES = [
|
|
12
12
|
"desktop",
|
|
@@ -102,7 +102,6 @@ const initInfra = async (options = {}) => {
|
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
104
|
|
|
105
|
-
//#endregion
|
|
106
105
|
exports.INFRA_MODES = INFRA_MODES;
|
|
107
106
|
exports.INSTALL_SCRIPT_URL = INSTALL_SCRIPT_URL;
|
|
108
107
|
exports.INSTALL_SCRIPT_URL_WINDOWS = INSTALL_SCRIPT_URL_WINDOWS;
|
package/dist/cjs/initMCP.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
2
|
+
const require_init = require("./init.cjs");
|
|
3
|
+
const require_initSkills = require("./initSkills.cjs");
|
|
4
|
+
const require_loadPrompts = require("./loadPrompts.cjs");
|
|
5
|
+
const require_utils_isInteractiveTerminal = require("./utils/isInteractiveTerminal.cjs");
|
|
6
|
+
const require_utils_parseChoice = require("./utils/parseChoice.cjs");
|
|
7
7
|
let _intlayer_engine_cli = require("@intlayer/engine/cli");
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// src/initMCP.ts
|
|
10
10
|
/** Validates a `--transport` value, ignoring case. */
|
|
11
11
|
const parseMCPTransport = (value) => require_utils_parseChoice.parseChoice(value, _intlayer_engine_cli.MCP_TRANSPORTS, "--transport");
|
|
12
12
|
/**
|
|
@@ -54,7 +54,6 @@ const initMCP = async (projectRoot, options = {}) => {
|
|
|
54
54
|
p.outro("Intlayer MCP Server initialization complete");
|
|
55
55
|
};
|
|
56
56
|
|
|
57
|
-
//#endregion
|
|
58
57
|
exports.initMCP = initMCP;
|
|
59
58
|
exports.parseMCPTransport = parseMCPTransport;
|
|
60
59
|
//# sourceMappingURL=initMCP.cjs.map
|
package/dist/cjs/initSkills.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require(
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
2
|
+
const require_runtime = require("./_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_init = require("./init.cjs");
|
|
4
|
+
const require_loadPrompts = require("./loadPrompts.cjs");
|
|
5
|
+
const require_utils_isInteractiveTerminal = require("./utils/isInteractiveTerminal.cjs");
|
|
6
|
+
const require_utils_parseChoice = require("./utils/parseChoice.cjs");
|
|
7
7
|
let _intlayer_engine_cli = require("@intlayer/engine/cli");
|
|
8
8
|
let enquirer = require("enquirer");
|
|
9
9
|
enquirer = require_runtime.__toESM(enquirer);
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
// src/initSkills.ts
|
|
12
12
|
const PLATFORM_OPTIONS = _intlayer_engine_cli.PLATFORMS.map((platform) => ({
|
|
13
13
|
value: platform,
|
|
14
14
|
label: _intlayer_engine_cli.PLATFORMS_METADATA[platform]?.label ?? "",
|
|
@@ -100,7 +100,6 @@ const initSkills = async (projectRoot, options = {}) => {
|
|
|
100
100
|
return platform;
|
|
101
101
|
};
|
|
102
102
|
|
|
103
|
-
//#endregion
|
|
104
103
|
exports.PLATFORM_OPTIONS = PLATFORM_OPTIONS;
|
|
105
104
|
exports.initSkills = initSkills;
|
|
106
105
|
exports.parsePlatform = parsePlatform;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
let _intlayer_engine_cli = require("@intlayer/engine/cli");
|
|
3
|
-
let node_path = require("node:path");
|
|
4
2
|
let _intlayer_config_logger = require("@intlayer/config/logger");
|
|
5
3
|
let _intlayer_config_node = require("@intlayer/config/node");
|
|
4
|
+
let _intlayer_engine_cli = require("@intlayer/engine/cli");
|
|
5
|
+
let node_path = require("node:path");
|
|
6
6
|
let _intlayer_engine_utils = require("@intlayer/engine/utils");
|
|
7
7
|
let _intlayer_dictionaries_entry_unmerged = require("@intlayer/dictionaries-entry/unmerged");
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// src/listContentDeclaration.ts
|
|
10
10
|
const listContentDeclarationRows = async (options) => {
|
|
11
11
|
const config = (0, _intlayer_config_node.getConfiguration)(options?.configOptions);
|
|
12
12
|
await (0, _intlayer_engine_cli.prepareIntlayer)(config);
|
|
@@ -39,7 +39,6 @@ const listContentDeclaration = async (options) => {
|
|
|
39
39
|
appLogger(`Total content declaration files: ${(0, _intlayer_config_logger.colorizeNumber)(rows.length)}`);
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
-
//#endregion
|
|
43
42
|
exports.listContentDeclaration = listContentDeclaration;
|
|
44
43
|
exports.listContentDeclarationRows = listContentDeclarationRows;
|
|
45
44
|
//# sourceMappingURL=listContentDeclaration.cjs.map
|
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
2
2
|
let _intlayer_engine_cli = require("@intlayer/engine/cli");
|
|
3
3
|
let node_path = require("node:path");
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/listProjects.ts
|
|
6
6
|
const listProjectsCommand = async (options) => {
|
|
7
7
|
const { searchDir, projectsPath } = await (0, _intlayer_engine_cli.listProjects)(options);
|
|
8
8
|
const projectsRelativePath = projectsPath.map((projectPath) => options?.absolute ? projectPath : (0, node_path.relative)(searchDir, projectPath)).map((projectPath) => projectPath === "" ? "." : projectPath);
|
|
@@ -23,6 +23,5 @@ const listProjectsCommand = async (options) => {
|
|
|
23
23
|
});
|
|
24
24
|
};
|
|
25
25
|
|
|
26
|
-
//#endregion
|
|
27
26
|
exports.listProjectsCommand = listProjectsCommand;
|
|
28
27
|
//# sourceMappingURL=listProjects.cjs.map
|
package/dist/cjs/liveSync.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require(
|
|
3
|
-
const require_IntlayerEventListener = require(
|
|
4
|
-
let node_http = require("node:http");
|
|
2
|
+
const require_runtime = require("./_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_IntlayerEventListener = require("./IntlayerEventListener.cjs");
|
|
5
4
|
let _intlayer_config_colors = require("@intlayer/config/colors");
|
|
6
5
|
_intlayer_config_colors = require_runtime.__toESM(_intlayer_config_colors);
|
|
7
6
|
let _intlayer_config_logger = require("@intlayer/config/logger");
|
|
8
7
|
let _intlayer_config_node = require("@intlayer/config/node");
|
|
8
|
+
let node_http = require("node:http");
|
|
9
9
|
let _intlayer_engine_utils = require("@intlayer/engine/utils");
|
|
10
10
|
let _intlayer_dictionaries_entry_unmerged = require("@intlayer/dictionaries-entry/unmerged");
|
|
11
11
|
let _intlayer_engine_build = require("@intlayer/engine/build");
|
|
@@ -14,7 +14,7 @@ let _intlayer_dictionaries_entry = require("@intlayer/dictionaries-entry");
|
|
|
14
14
|
let _intlayer_config_package_json = require("@intlayer/config/package.json");
|
|
15
15
|
_intlayer_config_package_json = require_runtime.__toESM(_intlayer_config_package_json);
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
// src/liveSync.ts
|
|
18
18
|
const writeDictionary = async (dictionary, configuration) => {
|
|
19
19
|
(0, _intlayer_config_logger.getAppLogger)(configuration)(`Writing dictionary ${dictionary.key}`);
|
|
20
20
|
await (0, _intlayer_engine_build.buildDictionary)([dictionary], configuration);
|
|
@@ -162,6 +162,5 @@ const liveSync = async (options) => {
|
|
|
162
162
|
process.on("exit", cleanup);
|
|
163
163
|
};
|
|
164
164
|
|
|
165
|
-
//#endregion
|
|
166
165
|
exports.liveSync = liveSync;
|
|
167
166
|
//# sourceMappingURL=liveSync.cjs.map
|
package/dist/cjs/loadPrompts.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
|
|
2
|
+
// src/loadPrompts.ts
|
|
3
3
|
/**
|
|
4
4
|
* Load the interactive prompt toolkit on demand.
|
|
5
5
|
*
|
|
@@ -13,6 +13,5 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
13
13
|
*/
|
|
14
14
|
const loadPrompts = async () => await import("@clack/prompts");
|
|
15
15
|
|
|
16
|
-
//#endregion
|
|
17
16
|
exports.loadPrompts = loadPrompts;
|
|
18
17
|
//# sourceMappingURL=loadPrompts.cjs.map
|
package/dist/cjs/pull.cjs
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require(
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const require_utils_selectCmsEnvironment = require(
|
|
6
|
-
let _intlayer_engine_cli = require("@intlayer/engine/cli");
|
|
7
|
-
let node_fs = require("node:fs");
|
|
8
|
-
let node_path = require("node:path");
|
|
2
|
+
const require_runtime = require("./_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_push_pullLog = require("./push/pullLog.cjs");
|
|
4
|
+
const require_utils_checkAccess = require("./utils/checkAccess.cjs");
|
|
5
|
+
const require_utils_selectCmsEnvironment = require("./utils/selectCmsEnvironment.cjs");
|
|
9
6
|
let _intlayer_config_colors = require("@intlayer/config/colors");
|
|
10
7
|
_intlayer_config_colors = require_runtime.__toESM(_intlayer_config_colors);
|
|
11
8
|
let _intlayer_config_logger = require("@intlayer/config/logger");
|
|
12
9
|
let _intlayer_config_node = require("@intlayer/config/node");
|
|
13
|
-
let
|
|
10
|
+
let _intlayer_engine_cli = require("@intlayer/engine/cli");
|
|
11
|
+
let node_path = require("node:path");
|
|
12
|
+
let node_fs = require("node:fs");
|
|
14
13
|
let _intlayer_config_utils = require("@intlayer/config/utils");
|
|
15
14
|
let _intlayer_dictionaries_entry_unmerged = require("@intlayer/dictionaries-entry/unmerged");
|
|
16
15
|
let _intlayer_engine_build = require("@intlayer/engine/build");
|
|
17
16
|
|
|
18
|
-
|
|
17
|
+
// src/pull.ts
|
|
19
18
|
/**
|
|
20
19
|
* Fetch distant dictionaries and write them locally,
|
|
21
20
|
* with progress indicators and concurrency control.
|
|
@@ -113,7 +112,7 @@ const pull = async (options) => {
|
|
|
113
112
|
}]);
|
|
114
113
|
}
|
|
115
114
|
};
|
|
116
|
-
await (0,
|
|
115
|
+
await (0, _intlayer_config_utils.parallelize)(dictionariesStatuses, processDictionary, 5);
|
|
117
116
|
logger.finish();
|
|
118
117
|
const iconFor = (status) => {
|
|
119
118
|
switch (status) {
|
|
@@ -150,6 +149,5 @@ const pull = async (options) => {
|
|
|
150
149
|
}
|
|
151
150
|
};
|
|
152
151
|
|
|
153
|
-
//#endregion
|
|
154
152
|
exports.pull = pull;
|
|
155
153
|
//# sourceMappingURL=pull.cjs.map
|