@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,7 +1,7 @@
|
|
|
1
1
|
import { getAuthenticatedAPI } from "./checkAccess.mjs";
|
|
2
2
|
import { retryManager } from "@intlayer/config/utils";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/utils/chunkInference.ts
|
|
5
5
|
/**
|
|
6
6
|
* Translates a single chunk via the OpenAI API.
|
|
7
7
|
* Includes retry logic if the call fails.
|
|
@@ -40,6 +40,5 @@ const processContent = (content) => {
|
|
|
40
40
|
return content.replaceAll("///chunksStart///", "").replaceAll("///chunkStart///", "").replaceAll("///chunksEnd///", "").replaceAll("///chunkEnd///", "").replaceAll("///chunksStart///", "").replaceAll("chunkStart///", "").replaceAll("chunksEnd///", "").replaceAll("chunkEnd///", "").replaceAll("///chunksStart", "").replaceAll("///chunkStart", "").replaceAll("///chunksEnd", "").replaceAll("///chunkEnd", "").replaceAll("chunksStart", "").replaceAll("chunkStart", "").replaceAll("chunksEnd", "").replaceAll("chunkEnd", "");
|
|
41
41
|
};
|
|
42
42
|
|
|
43
|
-
//#endregion
|
|
44
43
|
export { chunkInference };
|
|
45
44
|
//# sourceMappingURL=chunkInference.mjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { relative, sep } from "node:path";
|
|
2
1
|
import { searchConfigurationFile } from "@intlayer/config/node";
|
|
2
|
+
import { relative, sep } from "node:path";
|
|
3
3
|
import { spawnSync } from "node:child_process";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/utils/detectGitRepository.ts
|
|
6
6
|
const HOST_PROVIDERS = {
|
|
7
7
|
"github.com": "github",
|
|
8
8
|
"gitlab.com": "gitlab",
|
|
@@ -80,6 +80,5 @@ const detectGitRepository = (projectRoot) => {
|
|
|
80
80
|
};
|
|
81
81
|
};
|
|
82
82
|
|
|
83
|
-
//#endregion
|
|
84
83
|
export { detectGitRepository, parseGitRemoteUrl };
|
|
85
84
|
//# sourceMappingURL=detectGitRepository.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utils/fixChunkStartEndChars.ts
|
|
2
2
|
const CHAR_TO_CHECK_FORMATTING = [
|
|
3
3
|
"```",
|
|
4
4
|
"\n\n",
|
|
@@ -22,6 +22,5 @@ const fixChunkStartEndChars = (reviewedChunkResult, baseChunkContext) => {
|
|
|
22
22
|
return result;
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
-
//#endregion
|
|
26
25
|
export { fixChunkStartEndChars };
|
|
27
26
|
//# sourceMappingURL=fixChunkStartEndChars.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utils/formatLineRanges.ts
|
|
2
2
|
/**
|
|
3
3
|
* Formats a list of line numbers into a compact, human-readable string where
|
|
4
4
|
* runs of consecutive lines are collapsed into ranges.
|
|
@@ -37,6 +37,5 @@ const formatLineRanges = (lineNumbers, separator = ", ") => {
|
|
|
37
37
|
return groups.join(separator);
|
|
38
38
|
};
|
|
39
39
|
|
|
40
|
-
//#endregion
|
|
41
40
|
export { formatLineRanges };
|
|
42
41
|
//# sourceMappingURL=formatLineRanges.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utils/formatTimeDiff.ts
|
|
2
2
|
const formatTimeDiff = (realtiveTime) => {
|
|
3
3
|
const diff = realtiveTime.getTime();
|
|
4
4
|
const MS_IN_SECOND = 1e3;
|
|
@@ -14,6 +14,5 @@ const formatTimeDiff = (realtiveTime) => {
|
|
|
14
14
|
return `${minutes}m ${seconds}s`;
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
//#endregion
|
|
18
17
|
export { formatTimeDiff };
|
|
19
18
|
//# sourceMappingURL=formatTimeDiff.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { statSync } from "node:fs";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/utils/getIsFileUpdatedRecently.ts
|
|
4
4
|
const SKIP_RANGE_OF_LAST_UPDATE_TIME = 0;
|
|
5
5
|
/**
|
|
6
6
|
* Check if file was updated recently, to skip re-translation
|
|
@@ -10,6 +10,5 @@ const getIsFileUpdatedRecently = (localeFilePath) => {
|
|
|
10
10
|
return new Date(stats.mtime) > /* @__PURE__ */ new Date(Date.now() - SKIP_RANGE_OF_LAST_UPDATE_TIME);
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
-
//#endregion
|
|
14
13
|
export { getIsFileUpdatedRecently };
|
|
15
14
|
//# sourceMappingURL=getIsFileUpdatedRecently.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { resolveRelativePath } from "@intlayer/engine/utils";
|
|
2
2
|
import { parseStringPattern } from "@intlayer/config/utils";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/utils/getOutputFilePath.ts
|
|
5
5
|
/**
|
|
6
6
|
* Get the output file path by replacing the base locale with the target locale
|
|
7
7
|
*
|
|
@@ -101,6 +101,5 @@ const resolveOutputPattern = async (output, locale, context, sourceFilePath, bas
|
|
|
101
101
|
return resolveRelativePath(rawPath, sourceFilePath, baseDir);
|
|
102
102
|
};
|
|
103
103
|
|
|
104
|
-
//#endregion
|
|
105
104
|
export { getOutputFilePath, getPatternForLocale, resolveOutputPattern };
|
|
106
105
|
//# sourceMappingURL=getOutputFilePath.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { existsSync, readFileSync } from "node:fs";
|
|
2
1
|
import { dirname, resolve } from "node:path";
|
|
2
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/utils/getParentPackageJSON.ts
|
|
5
5
|
const getParentPackageJSON = (startDir) => {
|
|
6
6
|
let currentDir = startDir;
|
|
7
7
|
while (currentDir !== dirname(currentDir)) {
|
|
@@ -14,6 +14,5 @@ const getParentPackageJSON = (startDir) => {
|
|
|
14
14
|
throw new Error(`No package.json found in any parent directory of ${startDir}`);
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
//#endregion
|
|
18
17
|
export { getParentPackageJSON };
|
|
19
18
|
//# sourceMappingURL=getParentPackageJSON.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utils/isInteractiveTerminal.ts
|
|
2
2
|
/**
|
|
3
3
|
* Whether the process can prompt: both stdin and stdout are attached to a
|
|
4
4
|
* terminal. False for AI agents, CI and piped runs, where a prompt would print
|
|
@@ -6,6 +6,5 @@
|
|
|
6
6
|
*/
|
|
7
7
|
const isInteractiveTerminal = () => Boolean(process.stdin.isTTY && process.stdout.isTTY);
|
|
8
8
|
|
|
9
|
-
//#endregion
|
|
10
9
|
export { isInteractiveTerminal };
|
|
11
10
|
//# sourceMappingURL=isInteractiveTerminal.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utils/listSpecialChars.ts
|
|
2
2
|
const SPECIAL_CHARS = [
|
|
3
3
|
" ",
|
|
4
4
|
"\\",
|
|
@@ -48,6 +48,5 @@ const listSpecialChars = (text) => {
|
|
|
48
48
|
return results;
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
-
//#endregion
|
|
52
51
|
export { listSpecialChars };
|
|
53
52
|
//# sourceMappingURL=listSpecialChars.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { chunkText } from "./calculateChunks.mjs";
|
|
2
2
|
import { splitTextByLines } from "@intlayer/engine/utils";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/utils/mapChunksBetweenFiles.ts
|
|
5
5
|
/**
|
|
6
6
|
* Maps chunks from base file to corresponding chunks in updated file,
|
|
7
7
|
* handling insertions, deletions, and modifications properly.
|
|
@@ -96,6 +96,5 @@ const determineIfChunkHasChanges = (baseChunk, updatedChunk, changedLines) => {
|
|
|
96
96
|
return baseChunk.content !== updatedChunk.content;
|
|
97
97
|
};
|
|
98
98
|
|
|
99
|
-
//#endregion
|
|
100
99
|
export { mapChunksBetweenFiles };
|
|
101
100
|
//# sourceMappingURL=mapChunksBetweenFiles.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { exec } from "node:child_process";
|
|
2
2
|
import { platform } from "node:os";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/utils/openBrowser.ts
|
|
5
5
|
const openBrowser = (url) => {
|
|
6
6
|
const osPlatform = platform();
|
|
7
7
|
let command = "";
|
|
@@ -13,6 +13,5 @@ const openBrowser = (url) => {
|
|
|
13
13
|
});
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
-
//#endregion
|
|
17
16
|
export { openBrowser };
|
|
18
17
|
//# sourceMappingURL=openBrowser.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utils/parseChoice.ts
|
|
2
2
|
/**
|
|
3
3
|
* Resolves a command-line value against its allowed choices, ignoring case.
|
|
4
4
|
*
|
|
@@ -15,6 +15,5 @@ const parseChoice = (value, choices, optionName) => {
|
|
|
15
15
|
return choice;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
-
//#endregion
|
|
19
18
|
export { parseChoice };
|
|
20
19
|
//# sourceMappingURL=parseChoice.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { listSpecialChars } from "./listSpecialChars.mjs";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/utils/reorderParagraphs.ts
|
|
4
4
|
/**
|
|
5
5
|
* Split a text into paragraphs.
|
|
6
6
|
*
|
|
@@ -88,6 +88,5 @@ const reorderParagraphs = (textToReorder, baseFileContent) => {
|
|
|
88
88
|
return [...leadingExtras, ...result].join("\n\n");
|
|
89
89
|
};
|
|
90
90
|
|
|
91
|
-
//#endregion
|
|
92
91
|
export { reorderParagraphs };
|
|
93
92
|
//# sourceMappingURL=reorderParagraphs.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as ANSIColors from "@intlayer/config/colors";
|
|
2
2
|
import { colorize, getAppLogger } from "@intlayer/config/logger";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/utils/selectCmsEnvironment.ts
|
|
5
5
|
/**
|
|
6
6
|
* Selects the CMS project environment that matches `environmentName`.
|
|
7
7
|
*
|
|
@@ -39,6 +39,5 @@ const selectCmsEnvironment = async (environmentName, intlayerAPI, config) => {
|
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
-
//#endregion
|
|
43
42
|
export { selectCmsEnvironment };
|
|
44
43
|
//# sourceMappingURL=selectCmsEnvironment.mjs.map
|
|
@@ -2,7 +2,7 @@ import { checkAIAccess } from "./checkAccess.mjs";
|
|
|
2
2
|
import * as ANSIColors from "@intlayer/config/colors";
|
|
3
3
|
import { colorize, getAppLogger } from "@intlayer/config/logger";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/utils/setupAI.ts
|
|
6
6
|
globalThis.AI_SDK_LOG_WARNINGS = false;
|
|
7
7
|
const logAIConfig = (aiOptions, appLogger) => {
|
|
8
8
|
appLogger([
|
|
@@ -60,6 +60,5 @@ const setupAI = async (configuration, aiOptions) => {
|
|
|
60
60
|
};
|
|
61
61
|
};
|
|
62
62
|
|
|
63
|
-
//#endregion
|
|
64
63
|
export { setupAI };
|
|
65
64
|
//# sourceMappingURL=setupAI.mjs.map
|
package/dist/esm/watch.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { logConfigDetails } from "@intlayer/engine/cli";
|
|
2
1
|
import { getAppLogger } from "@intlayer/config/logger";
|
|
3
2
|
import { getConfiguration } from "@intlayer/config/node";
|
|
3
|
+
import { logConfigDetails } from "@intlayer/engine/cli";
|
|
4
4
|
import { claimCliContentWatcher, reportRedundantContentWatcher, runParallel } from "@intlayer/engine/utils";
|
|
5
5
|
import { watch } from "@intlayer/engine/watcher";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/watch.ts
|
|
8
8
|
/**
|
|
9
9
|
* Grace period granted to the `--with` child (e.g. Next.js/Turbopack) to exit
|
|
10
10
|
* after SIGTERM before it is force-killed with SIGKILL. Detached dev servers
|
|
@@ -67,6 +67,5 @@ const watchContentDeclaration = async (options) => {
|
|
|
67
67
|
process.on("SIGTERM", handleShutdown);
|
|
68
68
|
};
|
|
69
69
|
|
|
70
|
-
//#endregion
|
|
71
70
|
export { watchContentDeclaration };
|
|
72
71
|
//# sourceMappingURL=watch.mjs.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DictionaryAPI } from "@intlayer/api";
|
|
2
2
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
3
|
-
//#region src/IntlayerEventListener.d.ts
|
|
4
3
|
export type IntlayerMessageEvent = MessageEvent;
|
|
5
4
|
/**
|
|
6
5
|
* IntlayerEventListener class to listen for dictionary changes via SSE (Server-Sent Events).
|
|
@@ -83,5 +82,4 @@ export declare class IntlayerEventListener {
|
|
|
83
82
|
*/
|
|
84
83
|
private handleError;
|
|
85
84
|
}
|
|
86
|
-
//#endregion
|
|
87
85
|
//# sourceMappingURL=IntlayerEventListener.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IntlayerEventListener.d.ts","names":[],"sources":["../../src/IntlayerEventListener.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"IntlayerEventListener.d.ts","names":[],"sources":["../../src/IntlayerEventListener.ts"],"mappings":";;YAOY,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;qBA0BtB;UAoCD;UAnCF;UAEA;UACA;UACA;UACA;UACA;UACA;;;;EAKD,qBAAqB,YAAY;;;;EAKjC,sBAAsB,YAAY;;;;EAKlC,uBAAuB,YAAY;;;;EAKnC;;;;EAKA,qBAAqB,OAAO;EAEnC,YACU,iBAAgB,KAAK;;;;;EAYlB,cAAc;;;;UAQb;;;;EAmDP;;;;UAiBC;;;;;UAoCM;;;;UA8CN"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { GetConfigurationOptions } from "@intlayer/config/node";
|
|
2
|
-
//#region src/auth/login.d.ts
|
|
3
2
|
type LoginOptions = {
|
|
4
3
|
cmsUrl?: string;
|
|
5
4
|
configOptions?: GetConfigurationOptions;
|
|
@@ -26,5 +25,5 @@ type LoginOptions = {
|
|
|
26
25
|
signal?: AbortSignal;
|
|
27
26
|
};
|
|
28
27
|
export declare const login: (options?: LoginOptions) => Promise<void>;
|
|
29
|
-
|
|
28
|
+
export {};
|
|
30
29
|
//# sourceMappingURL=login.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login.d.ts","names":[],"sources":["../../../src/auth/login.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"login.d.ts","names":[],"sources":["../../../src/auth/login.ts"],"mappings":";KAiEK;EACH;EACA,gBAAgB;;;;;;EAMhB;;;;;;;EAOA,iBAAiB;IACf;IACA;eACW;;;;;EAKb,SAAS;;qBAGE,QAAK,UAAmB,iBAAY"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
|
-
//#region src/auth/sessionToken.d.ts
|
|
3
2
|
export type CliSessionData = {
|
|
4
3
|
token: string;
|
|
5
4
|
expiresAt: string;
|
|
@@ -7,5 +6,4 @@ export type CliSessionData = {
|
|
|
7
6
|
export declare const writeCliSessionToken: (config: IntlayerConfig, token: string, expiresAt: Date) => Promise<void>;
|
|
8
7
|
export declare const readCliSessionToken: (config: IntlayerConfig) => Promise<CliSessionData | null>;
|
|
9
8
|
export declare const clearCliSessionToken: (config: IntlayerConfig) => Promise<void>;
|
|
10
|
-
//#endregion
|
|
11
9
|
//# sourceMappingURL=sessionToken.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sessionToken.d.ts","names":[],"sources":["../../../src/auth/sessionToken.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"sessionToken.d.ts","names":[],"sources":["../../../src/auth/sessionToken.ts"],"mappings":";YAMY;EACV;EACA;;qBAMW,uBAAoB,QACvB,gBAAc,eACT,WACF,SACV;qBASU,sBAAmB,QACtB,mBACP,QAAQ;qBAsBE,uBAAoB,QACvB,mBACP"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DetectedGitRepository } from "../utils/detectGitRepository.js";
|
|
2
2
|
import { GetConfigurationOptions } from "@intlayer/config/node";
|
|
3
|
-
//#region src/auth/setupRepository.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Search params pre-filling the repository page with the local repository.
|
|
6
5
|
* Empty when none was detected: the user then picks it in the browser.
|
|
@@ -21,5 +20,5 @@ export type SetupRepositoryResult = {
|
|
|
21
20
|
* call back the local server once the repository and build settings are set.
|
|
22
21
|
*/
|
|
23
22
|
export declare const setupRepository: (options?: SetupRepositoryOptions) => Promise<SetupRepositoryResult>;
|
|
24
|
-
|
|
23
|
+
export {};
|
|
25
24
|
//# sourceMappingURL=setupRepository.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setupRepository.d.ts","names":[],"sources":["../../../src/auth/setupRepository.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"setupRepository.d.ts","names":[],"sources":["../../../src/auth/setupRepository.ts"],"mappings":";;;;;;qBAqCa,4BAAyB,oBAChB,6CACnB;KAkBE;EACH;EACA,gBAAgB;;EAEhB,qBAAqB;;;YAIX;EACV;;;;;;qBAOW,kBAAe,UACjB,2BACR,QAAQ"}
|
package/dist/types/build.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { GetConfigurationOptions } from "@intlayer/config/node";
|
|
2
|
-
//#region src/build.d.ts
|
|
3
2
|
type BuildOptions = {
|
|
4
3
|
watch?: boolean;
|
|
5
4
|
skipPrepare?: boolean;
|
|
@@ -11,5 +10,5 @@ type BuildOptions = {
|
|
|
11
10
|
* Watch mode available to get the change in the .content.{json|ts|tsx|js|jsx|mjs|cjs}
|
|
12
11
|
*/
|
|
13
12
|
export declare const build: (options?: BuildOptions) => Promise<void>;
|
|
14
|
-
|
|
13
|
+
export {};
|
|
15
14
|
//# sourceMappingURL=build.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","names":[],"sources":["../../src/build.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"build.d.ts","names":[],"sources":["../../src/build.ts"],"mappings":";KAaK;EACH;EACA;EACA;EACA,gBAAgB;;;;;;qBAOL,QAAK,UAAoB,iBAAY"}
|
package/dist/types/bundle.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle.d.ts","names":[],"sources":["../../src/bundle.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"bundle.d.ts","names":[],"sources":["../../src/bundle.ts"],"mappings":";qBA8Ca,SAAM,SAAmB,0BAAwB"}
|
package/dist/types/ci.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/ci.d.ts
|
|
2
1
|
/** Command used to run the locally installed `intlayer` binary. */
|
|
3
2
|
type PackageManagerCommand = {
|
|
4
3
|
command: string;
|
|
@@ -51,5 +50,5 @@ export declare const removeCIFlag: (args: string[]) => string[];
|
|
|
51
50
|
* failed in at least one project, `0` otherwise.
|
|
52
51
|
*/
|
|
53
52
|
export declare const runCI: (commands: string[]) => Promise<number>;
|
|
54
|
-
|
|
53
|
+
export {};
|
|
55
54
|
//# sourceMappingURL=ci.d.ts.map
|
package/dist/types/ci.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ci.d.ts","names":[],"sources":["../../src/ci.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ci.d.ts","names":[],"sources":["../../src/ci.ts"],"mappings":";KAuBK;EACH;EACA;;;;;;;;qBASW,2BAAwB,8BAElC;;;;;;;;;;qBAuCU,+BAA4B,aAC5B,qBACQ;;;;;;;;qBA2BR,sBAAmB,2BACL,mBACR;EAEd;EAAyB;;;qBAoBjB;;;;;qBAMA,eAAY;;;;;;;;;;;;qBAcZ,QAAK,uBAA+B"}
|
package/dist/types/cli.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Command } from "commander";
|
|
2
|
-
//#region src/cli.d.ts
|
|
3
2
|
export declare const dirname: string;
|
|
4
3
|
type LogOptions = {
|
|
5
4
|
prefix?: string;
|
|
@@ -21,5 +20,5 @@ export type ConfigurationOptions = {
|
|
|
21
20
|
* npm run intlayer push --dictionaries id1 id2 id3 --deleteLocaleDir
|
|
22
21
|
*/
|
|
23
22
|
export declare const setAPI: () => Command;
|
|
24
|
-
|
|
23
|
+
export {};
|
|
25
24
|
//# sourceMappingURL=cli.d.ts.map
|
package/dist/types/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","names":[],"sources":["../../src/cli.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"cli.d.ts","names":[],"sources":["../../src/cli.ts"],"mappings":";qBAqBa;KAuJR;EACH;EACA;;YAGU;EACV;EACA;EACA;EACA;EACA;IACE;;;;;;;;;qBAiES,cAAa"}
|
package/dist/types/config.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { GetConfigurationOptions } from "@intlayer/config/node";
|
|
2
|
-
//#region src/config.d.ts
|
|
3
2
|
type ConfigOptions = {
|
|
4
3
|
configOptions?: GetConfigurationOptions;
|
|
5
4
|
};
|
|
6
5
|
export declare const getConfig: (options?: ConfigOptions) => void;
|
|
7
|
-
|
|
6
|
+
export {};
|
|
8
7
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","names":[],"sources":["../../src/config.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.d.ts","names":[],"sources":["../../src/config.ts"],"mappings":";KAOK;EACH,gBAAgB;;qBAgBL,YAAS,UAAc"}
|
package/dist/types/editor.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/editor.d.ts
|
|
2
1
|
type StartEditorOptions = {
|
|
3
2
|
env?: string;
|
|
4
3
|
envFile?: string;
|
|
@@ -14,5 +13,5 @@ export declare const getRemoteEditorRunners: (cliVersion: string | undefined) =>
|
|
|
14
13
|
* not installed).
|
|
15
14
|
*/
|
|
16
15
|
export declare const startEditor: (options: StartEditorOptions) => void;
|
|
17
|
-
|
|
16
|
+
export {};
|
|
18
17
|
//# sourceMappingURL=editor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor.d.ts","names":[],"sources":["../../src/editor.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"editor.d.ts","names":[],"sources":["../../src/editor.ts"],"mappings":"A,KAYK;EACH;EACA;;;;;;qBAaW,yBAAsB,oCAE/B,iBAAiB;;;;;;qBA8DR,cAAW,SAAa"}
|
package/dist/types/extract.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { GetConfigurationOptions } from "@intlayer/config/node";
|
|
2
2
|
import { FilePathPattern } from "@intlayer/types/filePathPattern";
|
|
3
|
-
//#region src/extract.d.ts
|
|
4
3
|
type ExtractOptions = {
|
|
5
4
|
files?: string[];
|
|
6
5
|
output?: FilePathPattern;
|
|
@@ -9,5 +8,5 @@ type ExtractOptions = {
|
|
|
9
8
|
declarationOnly?: boolean;
|
|
10
9
|
};
|
|
11
10
|
export declare const extract: (options: ExtractOptions) => Promise<void>;
|
|
12
|
-
|
|
11
|
+
export {};
|
|
13
12
|
//# sourceMappingURL=extract.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extract.d.ts","names":[],"sources":["../../src/extract.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"extract.d.ts","names":[],"sources":["../../src/extract.ts"],"mappings":";;KAgBK;EACH;EACA,SAAS;EACT,gBAAgB;EAChB;EACA;;qBAGW,UAAO,SAAmB,mBAAc"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/fill/deepMergeContent.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Deep merge two plain objects (for per-locale content).
|
|
4
3
|
* The second object's values take precedence over the first.
|
|
@@ -8,5 +7,4 @@
|
|
|
8
7
|
* @returns The merged object
|
|
9
8
|
*/
|
|
10
9
|
export declare const deepMergeContent: <T = any>(target: T, source: T) => T;
|
|
11
|
-
//#endregion
|
|
12
10
|
//# sourceMappingURL=deepMergeContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deepMergeContent.d.ts","names":[],"sources":["../../../src/fill/deepMergeContent.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"deepMergeContent.d.ts","names":[],"sources":["../../../src/fill/deepMergeContent.ts"],"mappings":";;;;;;;;qBAQa,mBAAoB,SAAO,QAAU,GAAC,QAAU,MAAI"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/fill/extractTranslatableContent.d.ts
|
|
2
1
|
export type ExtractedContentProps = {
|
|
3
2
|
index: number;
|
|
4
3
|
path: (string | number)[];
|
|
@@ -15,5 +14,4 @@ export declare const extractTranslatableContent: (content: any, currentPath?: (s
|
|
|
15
14
|
translatableDictionary: Record<number, string>;
|
|
16
15
|
}) => ExtractedContentResult;
|
|
17
16
|
export declare const reinsertTranslatedContent: (baseContent: any, extractedContentProps: ExtractedContentProps[], translatedDictionary: Record<number, string>) => any;
|
|
18
|
-
//#endregion
|
|
19
17
|
//# sourceMappingURL=extractTranslatableContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extractTranslatableContent.d.ts","names":[],"sources":["../../../src/fill/extractTranslatableContent.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"extractTranslatableContent.d.ts","names":[],"sources":["../../../src/fill/extractTranslatableContent.ts"],"mappings":"A,YAAY;EACV;EACA;EACA;EACA,cAAc;;YAGJ;EACV,kBAAkB;EAClB,wBAAwB;;qBAGb,6BAA0B,cACzB,mCACoB;EAE9B;EACA,kBAAwB;EACxB,wBAA8B;MAE/B;qBA6CU,4BAAyB,kBACpB,uBACO,yBAAuB,sBACxB"}
|
|
@@ -2,7 +2,6 @@ import { GetTargetDictionaryOptions } from "../getTargetDictionary.js";
|
|
|
2
2
|
import { AIOptions } from "@intlayer/ai";
|
|
3
3
|
import { ListGitFilesOptions } from "@intlayer/engine/cli";
|
|
4
4
|
import { Locale } from "@intlayer/types/allLocales";
|
|
5
|
-
//#region src/fill/fill.d.ts
|
|
6
5
|
export type FillOptions = {
|
|
7
6
|
sourceLocale?: Locale;
|
|
8
7
|
outputLocales?: Locale | Locale[];
|
|
@@ -40,5 +39,4 @@ export type FillResult = {
|
|
|
40
39
|
* MCP) can tell a completed run from one that translated nothing.
|
|
41
40
|
*/
|
|
42
41
|
export declare const fill: (options?: FillOptions) => Promise<FillResult>;
|
|
43
|
-
//#endregion
|
|
44
42
|
//# sourceMappingURL=fill.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fill.d.ts","names":[],"sources":["../../../src/fill/fill.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fill.d.ts","names":[],"sources":["../../../src/fill/fill.ts"],"mappings":";;;;YA2CY;EACV,eAAe;EACf,gBAAgB,SAAS;EACzB;EACA,aAAa;EACb,YAAY;EACZ;EACA;EACA;EACA;EACA;IACE;;YAGQ;;EAGN;;EAEA;;;EAIA;;EAGA;;EAEA;;EAEA;;EAEA;;;;;;;;qBASO,OAAI,UAAoB,gBAAc,QAAQ"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
2
|
import { FilePathPattern } from "@intlayer/types/filePathPattern";
|
|
3
3
|
import { Locale } from "@intlayer/types/allLocales";
|
|
4
|
-
//#region src/fill/formatAutoFilledFilePath.d.ts
|
|
5
4
|
export declare const formatAutoFilledFilePath: (autoFillField: FilePathPattern, dictionaryKey: string, dictionaryFilePath: string, baseDir: string, configuration: IntlayerConfig, locale?: Locale) => Promise<string>;
|
|
6
|
-
//#endregion
|
|
7
5
|
//# sourceMappingURL=formatAutoFilledFilePath.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatAutoFilledFilePath.d.ts","names":[],"sources":["../../../src/fill/formatAutoFilledFilePath.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"formatAutoFilledFilePath.d.ts","names":[],"sources":["../../../src/fill/formatAutoFilledFilePath.ts"],"mappings":";;;qBASa,2BAAwB,eACpB,iBAAe,uBACT,4BACK,iBACX,eACA,gBAAc,SACpB,WACR"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
2
|
import { Locale } from "@intlayer/types/allLocales";
|
|
3
3
|
import { DictionaryKey, Fill } from "@intlayer/types/dictionary";
|
|
4
|
-
//#region src/fill/formatFillData.d.ts
|
|
5
4
|
export type FillData = {
|
|
6
5
|
localeList: Locale[];
|
|
7
6
|
filePath: string;
|
|
8
7
|
isPerLocale: boolean;
|
|
9
8
|
};
|
|
10
9
|
export declare const formatFillData: (fillField: Fill, localeList: Locale[], filePath: string, dictionaryKey: DictionaryKey, configuration: IntlayerConfig) => Promise<FillData[]>;
|
|
11
|
-
//#endregion
|
|
12
10
|
//# sourceMappingURL=formatFillData.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatFillData.d.ts","names":[],"sources":["../../../src/fill/formatFillData.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"formatFillData.d.ts","names":[],"sources":["../../../src/fill/formatFillData.ts"],"mappings":";;;YAWY;EACV,YAAY;EACZ;EACA;;qBAmBW,iBAAc,WACd,MAAI,YACH,UAAQ,kBACJ,eACD,eAAa,eACb,mBACd,QAAQ"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { Locale } from "@intlayer/types/allLocales";
|
|
2
2
|
import { Dictionary } from "@intlayer/types/dictionary";
|
|
3
|
-
//#region src/fill/getAvailableLocalesInDictionary.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Gets all locales that have actual translations in the dictionary content.
|
|
6
5
|
* Only returns locales that are present in at least one translation node.
|
|
7
6
|
*/
|
|
8
7
|
export declare const getAvailableLocalesInDictionary: (dictionary: Dictionary) => Locale[];
|
|
9
|
-
//#endregion
|
|
10
8
|
//# sourceMappingURL=getAvailableLocalesInDictionary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAvailableLocalesInDictionary.d.ts","names":[],"sources":["../../../src/fill/getAvailableLocalesInDictionary.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"getAvailableLocalesInDictionary.d.ts","names":[],"sources":["../../../src/fill/getAvailableLocalesInDictionary.ts"],"mappings":";;;;;;qBAqCa,kCAA+B,YAC9B,eACX"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Dictionary } from "@intlayer/types/dictionary";
|
|
2
|
-
//#region src/fill/getFilterMissingContentPerLocale.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Filters a dictionary to only include content that's missing in the target dictionary.
|
|
5
4
|
* Used for per-locale content declarations in 'complete' mode.
|
|
@@ -9,5 +8,4 @@ import { Dictionary } from "@intlayer/types/dictionary";
|
|
|
9
8
|
* @returns A dictionary with only the missing content
|
|
10
9
|
*/
|
|
11
10
|
export declare const getFilterMissingContentPerLocale: (sourceDictionary: Dictionary, targetDictionary: Dictionary | undefined) => Dictionary;
|
|
12
|
-
//#endregion
|
|
13
11
|
//# sourceMappingURL=getFilterMissingContentPerLocale.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFilterMissingContentPerLocale.d.ts","names":[],"sources":["../../../src/fill/getFilterMissingContentPerLocale.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"getFilterMissingContentPerLocale.d.ts","names":[],"sources":["../../../src/fill/getFilterMissingContentPerLocale.ts"],"mappings":";;;;;;;;;qBAgEa,mCAAgC,kBACzB,YAAU,kBACV,2BACjB"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
2
|
import { Locale } from "@intlayer/types/allLocales";
|
|
3
3
|
import { LocalDictionaryId } from "@intlayer/types/dictionary";
|
|
4
|
-
//#region src/fill/listTranslationsTasks.d.ts
|
|
5
4
|
export type TranslationTask = {
|
|
6
5
|
dictionaryKey: string;
|
|
7
6
|
dictionaryLocalId: LocalDictionaryId;
|
|
@@ -11,5 +10,4 @@ export type TranslationTask = {
|
|
|
11
10
|
dictionaryFilePath: string;
|
|
12
11
|
};
|
|
13
12
|
export declare const listTranslationsTasks: (localIds: LocalDictionaryId[], outputLocales: Locale[], mode: 'complete' | 'review', baseLocale: Locale, configuration: IntlayerConfig) => TranslationTask[];
|
|
14
|
-
//#endregion
|
|
15
13
|
//# sourceMappingURL=listTranslationsTasks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listTranslationsTasks.d.ts","names":[],"sources":["../../../src/fill/listTranslationsTasks.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"listTranslationsTasks.d.ts","names":[],"sources":["../../../src/fill/listTranslationsTasks.ts"],"mappings":";;;YAkBY;EACV;EACA,mBAAmB;EACnB,cAAc;EACd,eAAe;EACf;EACA;;qBAGW,wBAAqB,UACtB,qBAAmB,eACd,UAAQ,6BACI,YACf,QAAM,eACH,mBACd"}
|